/*
  Codedogs - built for readers who want big, clear, calm pages.
  Type: Atkinson Hyperlegible, designed by the Braille Institute for
  low-vision readers. Base size is 20px. Links are always underlined.
  Every control is at least 48px tall, and keyboard focus is a thick yellow ring.
*/
:root {
  --ink: #15243a;
  --ink-soft: #3c4b5f;
  --paper: #fcfcfa;
  --panel: #ffffff;
  --line: #d5dbe1;
  --teal: #1d6a66;
  --teal-dark: #134c49;
  --teal-wash: #e5f1ef;
  --marigold: #f2b632;
  --marigold-wash: #fdf3d6;
  --danger: #a3341f;
  --ok: #1f6b3a;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --measure: 68ch;
}

* { box-sizing: border-box; }

html { font-size: 20px; }

body {
  margin: 0;
  font-family: "Atkinson Hyperlegible", Verdana, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; font-weight: 700; }
h1 { font-size: 2.2rem; letter-spacing: -0.01em; }
h2 { font-size: 1.5rem; margin-top: 1.6em; }
h3 { font-size: 1.2rem; margin-top: 1.4em; }
p { margin: 0 0 1em; }

a { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
a:hover { color: var(--ink); text-decoration-color: var(--marigold); }

:focus-visible { outline: 4px solid var(--marigold); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.measure { max-width: var(--measure); }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 12px 18px; z-index: 50; }
.skip-link:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header { background: var(--panel); border-bottom: 3px solid var(--ink); }
.header-inner { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "logo account" "nav nav"; align-items: center; gap: 8px 24px; padding-top: 14px; }
.logo { grid-area: logo; }
.main-nav { grid-area: nav; }
.account-nav { grid-area: account; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 1.45rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.logo:hover { color: var(--ink); }
.logo svg { width: 38px; height: 38px; flex: none; }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-left: -12px; }
.main-nav a, .account-nav a, .account-nav .link-button {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px;
  color: var(--ink); text-decoration: none; font-weight: 700; border-radius: var(--radius-sm);
}
.main-nav a:hover, .account-nav a:hover, .account-nav .link-button:hover { background: var(--teal-wash); }
.main-nav a.active { box-shadow: inset 0 -4px 0 var(--marigold); border-radius: 0; }
.account-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px 8px; }
.account-nav a.button, .account-nav a.button:hover { color: #fff; padding: 0 16px; }
.account-nav a.button:hover { background: var(--teal-dark); }
.account-nav form { margin: 0; }

/* ---------- Buttons & forms ---------- */
.button, button.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px;
  font: inherit; font-weight: 700; font-size: 1rem; color: #fff; background: var(--teal);
  border: 2px solid var(--teal); border-radius: var(--radius-sm); text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.button.button-quiet { background: var(--panel); color: var(--teal-dark); }
.button.button-quiet:hover { background: var(--teal-wash); color: var(--ink); }
.button.button-danger { background: var(--panel); color: var(--danger); border-color: var(--danger); }
.button.button-danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.button-small { min-height: 44px; padding: 0 16px; font-size: 0.9rem; }

.link-button { font: inherit; background: none; border: 0; padding: 0; color: var(--teal-dark); text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }

.form { display: grid; gap: 22px; max-width: 560px; }
.form label { display: grid; gap: 6px; font-weight: 700; }
.form .hint { font-weight: 400; color: var(--ink-soft); font-size: 0.9rem; }
.form input[type=text], .form input[type=number], .form input[type=url], .form input[type=time], .form input[type=email], .form input[type=password], .form select, .form textarea {
  width: 100%; font: inherit; font-weight: 400; color: var(--ink); background: #fff;
  min-height: 52px; padding: 10px 14px; border: 2px solid #8a96a3; border-radius: var(--radius-sm);
}
.form textarea { min-height: 180px; line-height: 1.55; resize: vertical; }
.form textarea.tall { min-height: 460px; font-size: 0.95rem; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--teal); }
.check { display: flex !important; align-items: center; gap: 12px; font-weight: 400 !important; }
.check input { width: 26px; height: 26px; accent-color: var(--teal); }
.password-row { display: flex; gap: 10px; }
.password-row input { flex: 1; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { padding: 16px 20px; border-left: 6px solid var(--teal); background: var(--teal-wash); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 0 0 24px; }
.notice-error { border-left-color: var(--danger); background: #fbe9e5; }
.notice-warm { border-left-color: var(--marigold); background: var(--marigold-wash); }

/* ---------- Page frame ---------- */
main { padding: 48px 0 72px; }
.page-title { margin-bottom: 0.4em; }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: var(--measure); }

/* ---------- Home hero ---------- */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding-bottom: 56px; border-bottom: 2px solid var(--line); }
.hero h1 { font-size: 2.7rem; line-height: 1.12; }
.hero .lede { font-size: 1.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* The memorable thing: a real-looking exchange with an AI, showing the whole idea in one glance. */
.chat-demo { background: var(--panel); border: 3px solid var(--ink); border-radius: var(--radius-lg); padding: 22px; box-shadow: 8px 8px 0 var(--marigold); }
.chat-demo .who { display: block; font-size: 0.8rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 4px; }
.chat-demo .bubble { padding: 14px 16px; border-radius: 10px; margin: 0 0 16px; font-size: 0.95rem; line-height: 1.5; }
.chat-demo .you { background: var(--teal-wash); margin-left: 32px; }
.chat-demo .ai { background: #f1f3f5; margin-right: 32px; }
.chat-demo .ai:last-child { margin-bottom: 0; }
.chat-demo code { font-size: 0.85rem; white-space: nowrap; }

/* ---------- Home sections ---------- */
.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; padding: 48px 0; border-bottom: 2px solid var(--line); }
.promise h2 { font-size: 1.2rem; margin-top: 0; }
.promise p { color: var(--ink-soft); margin: 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 24px; margin: 48px 0 8px; }
.section-head h2 { margin: 0; }

/* ---------- Article list ---------- */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { padding: 28px 0; border-bottom: 1px solid var(--line); }
.post-list li:last-child { border-bottom: 0; }
.post-list h3 { font-size: 1.35rem; margin: 0 0 6px; }
.post-list h3 a { color: var(--ink); text-decoration-color: var(--marigold); text-decoration-thickness: 3px; }
.post-list p { margin: 6px 0 0; color: var(--ink-soft); max-width: var(--measure); }
.meta { color: var(--ink-soft); font-size: 0.9rem; }
.badge { display: inline-block; font-size: 0.8rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--marigold-wash); border: 1px solid var(--marigold); color: var(--ink); }
.badge-live { background: #e3f2e8; border-color: #8cc59f; }

/* ---------- Single article ---------- */
.article { max-width: var(--measure); }
.article h1 { font-size: 2.4rem; margin-bottom: 0.3em; }
.article .meta { margin-bottom: 32px; }
.article-body { font-size: 1.05rem; }
.article-body ul, .article-body ol { padding-left: 1.4em; margin: 0 0 1em; }
.article-body li { margin-bottom: 0.4em; }
.article-body code, .comment-body code { font-family: Menlo, Consolas, monospace; font-size: 0.88em; background: #eef1f4; padding: 2px 6px; border-radius: 4px; }
.article-body h2 { border-top: 2px solid var(--line); padding-top: 1em; }

/* ---------- Comments ---------- */
.comments { max-width: var(--measure); margin-top: 56px; padding-top: 8px; border-top: 3px solid var(--ink); }
.comment { padding: 20px 0; border-bottom: 1px solid var(--line); }
.comment-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; align-items: baseline; }
.comment-head strong { font-size: 1.05rem; }
.comment-body { margin-top: 6px; }
.comment-body p:last-child { margin-bottom: 0; }
.comment form { margin: 0; }
.comment-form { margin-top: 28px; }
.join-box { margin-top: 28px; padding: 24px; background: var(--marigold-wash); border: 2px solid var(--marigold); border-radius: var(--radius-lg); }
.join-box p:last-child { margin-bottom: 0; }

/* ---------- Content pages ---------- */
.prose { max-width: var(--measure); }
.prose ul { padding-left: 1.4em; }
.prose li { margin-bottom: 0.5em; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 24px 0; max-width: var(--measure); }
.steps li { counter-increment: step; position: relative; padding: 0 0 22px 64px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 44px; height: 44px; display: grid; place-items: center; font-weight: 700; color: var(--ink); background: var(--marigold); border-radius: 50%; }
.steps h3 { margin: 0 0 4px; font-size: 1.1rem; }
.steps p { margin: 0; color: var(--ink-soft); }
.offer { max-width: var(--measure); padding: 24px 28px; border: 2px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); margin: 0 0 20px; }
.offer h2 { margin-top: 0; font-size: 1.25rem; }
.offer p:last-child { margin-bottom: 0; }

/* ---------- Auth pages ---------- */
.auth-box { max-width: 560px; }
.auth-alt { margin-top: 28px; padding-top: 24px; border-top: 2px solid var(--line); }

/* ---------- Admin ---------- */
.admin-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; padding-bottom: 16px; border-bottom: 2px solid var(--line); }
.admin-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--radius-sm); font-weight: 700; text-decoration: none; background: #eef1f4; color: var(--ink); }
.admin-nav a.active { background: var(--ink); color: #fff; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.85rem; color: var(--ink-soft); border-bottom: 2px solid var(--ink); }
td form { display: inline; margin: 0; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.format-help { font-size: 0.9rem; background: #f3f5f7; border-radius: var(--radius-sm); padding: 16px 20px; }
.format-help code { font-family: Menlo, Consolas, monospace; background: #fff; padding: 1px 6px; border-radius: 4px; }
.format-help ul { margin: 8px 0 0; padding-left: 1.2em; }
.message-card { padding: 22px 0; border-bottom: 1px solid var(--line); }
.message-card pre { white-space: pre-wrap; font: inherit; margin: 10px 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 3px solid var(--ink); background: var(--panel); padding: 32px 0; font-size: 0.95rem; color: var(--ink-soft); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.footer-inner p { margin: 0; }

/* ---------- Small screens ---------- */
@media (max-width: 820px) {
  html { font-size: 19px; }
  .hero { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: 2.1rem; }
  .promise { grid-template-columns: 1fr; gap: 24px; }
  h1, .article h1 { font-size: 1.85rem; }
  .chat-demo { box-shadow: 5px 5px 0 var(--marigold); }
  .chat-demo .you { margin-left: 12px; }
  .chat-demo .ai { margin-right: 12px; }
  main { padding: 32px 0 56px; }
}
@media (max-width: 560px) {
  .header-inner { grid-template-columns: 1fr; grid-template-areas: "logo" "account" "nav"; }
  .account-nav { justify-content: flex-start; margin-left: -12px; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .password-row { flex-direction: column; }
}

/* =====================================================================
   Community: Discussions, Projects, member pages
   ===================================================================== */

.back-link { margin: 0 0 20px; }
.hint { color: var(--ink-soft); font-size: 0.9rem; font-weight: 400; margin: 0 0 8px; }
.hint.small { font-size: 0.85rem; margin: 10px 0 0; }
.empty, .empty-box { color: var(--ink-soft); }
.empty-box { padding: 32px; border: 2px dashed var(--line); border-radius: var(--radius-lg); text-align: center; }
.quiet-link { color: inherit; text-decoration: none; }
.quiet-link:hover { text-decoration: underline; }
.feed-wrap { max-width: 760px; }
.badge-warn { background: #fbe9e5; border-color: #e3a497; }

/* Avatars: a colored circle with an initial */
.avatar { flex: none; display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  font-weight: 700; font-size: 1.15rem; color: #fff; line-height: 1; }
.avatar-sm { width: 34px; height: 34px; font-size: 0.85rem; }
.avatar-lg { width: 88px; height: 88px; font-size: 2.2rem; }
.avatar-c0 { background: #1d6a66; }
.avatar-c1 { background: #7a4b9a; }
.avatar-c2 { background: #b4532a; }
.avatar-c3 { background: #2f5d9e; }
.avatar-c4 { background: #5d7a2a; }
.avatar-c5 { background: #9a3b5a; }
.me-link { gap: 8px; }

/* The "write a post" box */
.composer { background: var(--panel); border: 2px solid var(--ink); border-radius: var(--radius-lg); padding: 20px 22px; margin: 8px 0 36px; }
.composer-label { display: block; font-weight: 700; font-size: 1.1rem; }
.composer textarea { width: 100%; min-height: 120px; font: inherit; color: var(--ink); padding: 12px 14px;
  border: 2px solid #8a96a3; border-radius: var(--radius-sm); resize: vertical; line-height: 1.55; }
.composer textarea:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 4px var(--marigold); }
.composer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 14px; margin-top: 14px; }
.photo-pick { display: grid; gap: 6px; font-weight: 700; font-size: 0.95rem; min-width: 0; max-width: 100%; }
.composer-row > .photo-pick { flex: 1 1 240px; }
.photo-pick input[type=file] { font: inherit; font-size: 0.9rem; font-weight: 400; width: 100%; min-width: 0; }
.photo-pick input[type=file]::file-selector-button { font: inherit; font-weight: 700; min-height: 44px; padding: 0 16px; margin-right: 12px;
  border: 2px solid var(--teal); border-radius: var(--radius-sm); background: var(--panel); color: var(--teal-dark); cursor: pointer; }

/* A post in the feed */
.feed { display: grid; gap: 20px; }
.post { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 22px; scroll-margin-top: 16px; }
.post:target, .reply:target { box-shadow: 0 0 0 4px var(--marigold); }
.post-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.post-who { flex: 1; display: grid; line-height: 1.35; }
.post-author { font-weight: 700; color: var(--ink); text-decoration: none; }
.post-author:hover { text-decoration: underline; }
.post-body { overflow-wrap: anywhere; }
.post-body p:last-child, .post-body ul:last-child, .post-body ol:last-child { margin-bottom: 0; }
.post-body ul, .post-body ol { padding-left: 1.3em; margin: 0 0 1em; }
.post-body code { font-family: Menlo, Consolas, monospace; font-size: 0.88em; background: #eef1f4; padding: 2px 6px; border-radius: 4px; }
.post-photo { display: block; margin-top: 14px; }
.post-photo img { display: block; max-width: 100%; max-height: 520px; border-radius: var(--radius-sm); border: 1px solid var(--line); }

/* Like / Reply / Edit / Delete row */
.post-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.post-actions form { margin: 0; }
.action { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; font: inherit; font-weight: 700;
  font-size: 0.95rem; color: var(--ink-soft); background: none; border: 0; border-radius: var(--radius-sm); text-decoration: none; cursor: pointer; }
.action:hover { background: var(--teal-wash); color: var(--ink); }
.action.liked { color: #b02a4a; }
.action-danger:hover { background: #fbe9e5; color: var(--danger); }
.like-count { margin-right: 8px; }
.post-actions.small { margin: 0; padding: 0; border: 0; }
.post-actions.small .action { min-height: 40px; font-size: 0.85rem; padding: 0 10px; }

/* Replies */
.replies { margin-top: 14px; display: grid; gap: 12px; }
.view-all { margin: 0; font-size: 0.95rem; }
.reply { display: flex; gap: 10px; align-items: flex-start; border-radius: var(--radius-lg); scroll-margin-top: 16px; }
.reply-main { flex: 1; min-width: 0; }
.reply-bubble { background: #f1f3f5; border-radius: 14px; padding: 10px 14px; }
.reply-bubble .post-author { font-size: 0.95rem; }
.reply-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; padding-left: 6px; }
.reply-meta .meta { font-size: 0.85rem; margin-right: 4px; }
.reply-form { margin-top: 28px; }
.older { text-align: center; margin-top: 32px; }
.edit-photo { display: grid; gap: 10px; }
.edit-photo img { max-width: 280px; border-radius: var(--radius-sm); border: 1px solid var(--line); }

/* Project cards */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.project-stack { display: grid; gap: 16px; }
.project-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; color: var(--ink); text-decoration: none; }
.project-card:hover { border-color: var(--ink); color: var(--ink); }
.project-card:hover .project-card-title { text-decoration: underline; text-decoration-color: var(--marigold); text-decoration-thickness: 3px; }
.project-cover { display: block; aspect-ratio: 16 / 9; background: var(--teal-wash); border-bottom: 1px solid var(--line); }
.project-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-cover-letter { display: grid; place-items: center; height: 100%; font-size: 3rem; font-weight: 700; color: var(--teal); }
.project-card-body { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 16px 18px 18px; }
.project-card-title { flex-basis: 100%; font-size: 1.15rem; font-weight: 700; line-height: 1.3; margin-top: 2px; }
.project-card-summary { flex-basis: 100%; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.5; }
.project-card .meta { flex-basis: 100%; font-size: 0.85rem; }
.project-stack .project-card { flex-direction: row; }
.project-stack .project-cover { flex: none; width: 140px; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); }
.project-stack .project-cover-letter { font-size: 2.2rem; }

/* Project status labels */
.status { display: inline-block; font-size: 0.8rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; border: 1px solid; }
.status-IDEA { background: #f3eefa; border-color: #c7b3e0; color: #5a3a80; }
.status-IN_PROGRESS { background: var(--marigold-wash); border-color: var(--marigold); color: #6b4a00; }
.status-WORKING { background: #e3f2e8; border-color: #8cc59f; color: #1f5a33; }
.status-FINISHED { background: #e8edf3; border-color: #9fb0c4; color: #2d4058; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 28px; }
.filters a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--line);
  font-weight: 700; text-decoration: none; color: var(--ink); background: var(--panel); }
.filters a:hover { border-color: var(--ink); }
.filters a.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.mine { margin-bottom: 40px; padding: 20px 24px 28px; border-radius: var(--radius-lg); background: var(--marigold-wash); }
.mine h2 { margin-top: 0; font-size: 1.1rem; }

/* A project's own page */
.project-head { max-width: var(--measure); margin-bottom: 36px; }
.project-head h1 { margin-top: 10px; }
.by { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); }
.project-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.project-actions form { margin: 0; }
.link-note { font-size: 0.85rem; overflow-wrap: anywhere; margin-top: 10px; }
.files, .screenshots, .updates, .project-discussion, .danger-zone { margin-top: 48px; }
.files h2, .screenshots h2, .updates h2, .project-discussion h2, .danger-zone h2 { margin-top: 0; }
.file-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 14px; }
.file-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.file-list form { margin: 0; }
.shot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.shot { margin: 0; }
.shot img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.shot form { margin: 4px 0 0; }
.add-shots { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-top: 16px; }
.project-description { max-width: var(--measure); margin-top: 40px; font-size: 1.05rem; }
.project-description h2 { border-top: 2px solid var(--line); padding-top: 1em; }
.update-list { list-style: none; padding: 0; margin: 24px 0 0; max-width: var(--measure); border-left: 4px solid var(--marigold); }
.update-list li { padding: 0 0 22px 20px; }
.update-list form { margin: 4px 0 0; }
.danger-zone { padding-top: 24px; border-top: 2px solid var(--line); }
.danger-zone h2 { font-size: 1.1rem; }
.status-pick { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.status-pick legend { font-weight: 700; margin-bottom: 6px; }
.status-pick .check span { display: inline; }
details.format-help summary { cursor: pointer; font-weight: 700; min-height: 32px; }

/* Home page */
.welcome-back { padding-bottom: 32px; border-bottom: 2px solid var(--line); }
.welcome-back h1 { font-size: 2rem; }
.chat-demo figcaption { margin-top: 14px; font-size: 0.85rem; color: var(--ink-soft); }
.home-columns { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; }
.home-section { margin-top: 8px; }
.home-section .section-head { margin-top: 40px; }
.activity { list-style: none; padding: 0; margin: 16px 0 0; }
.activity li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.activity li:first-child { padding-top: 0; }
.activity-who { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-weight: 700; }
.activity-who a { color: var(--ink); text-decoration: none; }
.activity-who .meta { font-weight: 400; }
.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* Member page */
.member-head { display: flex; align-items: center; gap: 22px; margin-bottom: 20px; }
.member-head .page-title { margin: 0; }
.member-bio { max-width: var(--measure); font-size: 1.05rem; margin-bottom: 16px; }

@media (max-width: 820px) {
  .home-columns { grid-template-columns: 1fr; gap: 0; }
  .post { padding: 16px; }
  .avatar-lg { width: 64px; height: 64px; font-size: 1.6rem; }
}
@media (max-width: 480px) {
  .project-stack .project-cover { width: 96px; }
  .composer { padding: 16px; }
  .composer-row .button { width: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

.draft-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.draft-bar p { margin: 0; }
.draft-bar form { margin: 0; }


/* =====================================================================
   Lists (private to-do lists)
   ===================================================================== */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.account-nav a.active { box-shadow: inset 0 -4px 0 var(--marigold); border-radius: 0; }

.list-cards { list-style: none; padding: 0; margin: 8px 0 40px; display: grid; gap: 12px; }
.list-cards a { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 14px 20px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--ink); text-decoration: none; }
.list-cards a:hover { border-color: var(--ink); color: var(--ink); }
.list-card-name { font-weight: 700; font-size: 1.15rem; }

.list-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; }
.list-head .page-title { margin-bottom: 0.2em; }
.list-tools { display: flex; gap: 18px; flex-wrap: wrap; }
.other-lists { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 24px; }
.other-lists a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--line);
  font-weight: 700; font-size: 0.9rem; text-decoration: none; color: var(--ink); background: var(--panel); }
.other-lists a.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.add-task { background: var(--panel); border: 2px solid var(--ink); border-radius: var(--radius-lg); padding: 16px 18px; margin: 0 0 24px; }
.add-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.add-row input[type=text] { flex: 1 1 260px; min-width: 0; font: inherit; min-height: 52px; padding: 10px 14px; border: 2px solid #8a96a3; border-radius: var(--radius-sm); }
.add-row input[type=text]:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 4px var(--marigold); }
.add-row select { font: inherit; min-height: 52px; padding: 0 12px; border: 2px solid #8a96a3; border-radius: var(--radius-sm); background: #fff; }
.shortcuts { margin-top: 10px; font-size: 0.9rem; }
.shortcuts summary { cursor: pointer; font-weight: 700; min-height: 32px; }
.shortcuts ul { margin: 6px 0 0; padding-left: 1.2em; }
.shortcuts code, .form code { font-family: Menlo, Consolas, monospace; background: #eef1f4; padding: 1px 6px; border-radius: 4px; }

.view-tabs { display: flex; gap: 8px; margin: 0 0 16px; }
.view-tabs a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: var(--radius-sm); font-weight: 700;
  text-decoration: none; color: var(--ink); background: #eef1f4; }
.view-tabs a.active { background: var(--ink); color: #fff; }
.view-tabs a.view-mode { margin-left: auto; background: transparent; border: 2px solid #d5dbe1; }

.task-section { border-top: 2px solid var(--line); padding: 4px 0 12px; }
.task-section > summary { display: flex; align-items: baseline; gap: 12px; cursor: pointer; min-height: 52px; padding-top: 12px; list-style: none; }
.task-section > summary::-webkit-details-marker { display: none; }
.task-section > summary::before { content: "▸"; font-size: 0.9rem; color: var(--ink-soft); transition: transform 0.15s; }
.task-section[open] > summary::before { transform: rotate(90deg); }
.section-title { font-size: 1.25rem; font-weight: 700; }
.task-rows { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.task-rows li { display: flex; align-items: stretch; gap: 8px; }
.task-rows form { flex: 1; margin: 0; min-width: 0; }
.task-tap { width: 100%; display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 10px 14px; text-align: left; font: inherit;
  color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.task-tap:hover { border-color: var(--teal); background: var(--teal-wash); }
.tick { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border: 3px solid var(--teal); border-radius: 50%;
  font-weight: 700; color: #fff; }
.is-done .tick { background: var(--teal); }
.is-done .task-text > span:first-child { color: var(--ink-soft); }
/* Hide mode, like the app: plain lines, no circles; a tapped task drops out of the list */
.mode-hide .tick { display: none; }
.task-text { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.task-notes { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.task-notes .meta { font-size: 0.85rem; }
.count-pill { font-size: 0.8rem; font-weight: 700; padding: 1px 10px; border-radius: 999px; background: var(--marigold-wash); border: 1px solid var(--marigold); }
.task-edit { display: inline-flex; align-items: center; padding: 0 12px; min-height: 56px; font-weight: 700; font-size: 0.9rem; color: var(--ink-soft); text-decoration: none; border-radius: var(--radius-sm); }
.example-tag { font-size: 0.75rem; font-weight: 700; padding: 0 8px; border-radius: 999px; color: var(--teal-dark); border: 1px dashed var(--teal-dark); }
.example-intro { margin: 0 0 20px; padding: 14px 16px; border: 1px dashed var(--teal-dark); border-radius: var(--radius-sm); background: var(--teal-wash); }
.example-intro p { margin: 0 0 10px; }
.example-intro .form { gap: 12px; margin-bottom: 8px; }
.example-intro .form-actions { margin: 0; }
.task-edit:hover { background: #eef1f4; color: var(--ink); }
.empty-section { margin: 0 0 4px 26px; }
.section-actions { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; margin: 12px 0 0 2px; font-size: 0.9rem; }
.section-actions form { margin: 0; }
tfoot th { border-top: 2px solid var(--ink); border-bottom: 0; color: var(--ink); font-size: 0.95rem; }
@media (max-width: 480px) {
  .add-row button { width: 100%; }
  .add-row select { flex: 1; }
}

/* ---------- News front page ---------- */
.masthead { padding: 28px 0 22px; margin-bottom: 32px; border-bottom: 3px solid var(--ink); }
.masthead-date { margin: 0 0 6px; font-weight: 700; color: var(--ink-soft); font-size: 0.9rem; }
.masthead-title { font-size: 2.6rem; line-height: 1.05; margin: 0 0 8px; }
.masthead-sub { margin: 0; font-size: 1.15rem; color: var(--ink-soft); }

.front { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.lead-story { padding-bottom: 32px; }
.lead-image { display: block; margin-bottom: 20px; }
.lead-image img, .article-cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.lead-headline { font-size: 2.3rem; line-height: 1.12; margin: 0 0 12px; }
.lead-headline a, .story h2 a, .story h3 a { color: var(--ink); text-decoration: none; }
.lead-headline a:hover, .story h2 a:hover, .story h3 a:hover { text-decoration: underline; text-decoration-color: var(--marigold); text-decoration-thickness: 3px; }
.lead-dek { font-size: 1.2rem; color: var(--ink-soft); margin: 0 0 12px; max-width: var(--measure); }
.byline { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }

.rule-head { font-size: 1.1rem; margin: 0 0 4px; padding-top: 14px; border-top: 3px solid var(--ink); }
.more-stories { margin-top: 8px; }
.story { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.story h2, .story h3 { font-size: 1.3rem; margin: 0 0 6px; }
.story p { margin: 0 0 6px; }
.story-thumb img { display: block; width: 150px; height: 100px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); }

.no-news { padding: 28px 30px; background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius-lg); }
.no-news h2 { margin-top: 0; }

.front-side { display: grid; gap: 28px; }
.side-section h2 { font-size: 1.1rem; margin: 0 0 8px; padding-top: 14px; border-top: 3px solid var(--ink); }
.side-section > p { margin: 8px 0 0; font-size: 0.95rem; }
.side-list { list-style: none; padding: 0; margin: 0; }
.side-list li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; line-height: 1.45; }
.side-list .meta { display: block; font-size: 0.85rem; }
.side-snippet { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink); text-decoration: none; }
.side-snippet p { margin: 0; display: inline; }
.side-snippet:hover { text-decoration: underline; }
.side-actions { display: grid; gap: 4px; margin: 0; }
.join-box { padding: 22px; background: var(--marigold-wash); border: 3px solid var(--ink); border-radius: var(--radius-lg); box-shadow: 6px 6px 0 var(--teal); }
.join-box h2 { margin: 0 0 8px; font-size: 1.25rem; border: 0; padding: 0; }
.join-box p { font-size: 0.95rem; }

/* ---------- An article ---------- */
.news-article { padding-bottom: 40px; }
.article-kicker { margin: 8px 0 10px; font-weight: 700; font-size: 0.9rem; }
.article-headline { font-size: 2.5rem; line-height: 1.1; margin: 0 0 14px; }
.article-dek { font-size: 1.25rem; color: var(--ink-soft); margin: 0 0 14px; }
.news-article .byline { padding-bottom: 22px; }
.article-cover { max-width: 1040px; margin: 0 auto 32px; padding: 0 24px; }
.article-body { margin-top: 8px; }
.article-body p, .article-body li { max-width: var(--measure); }
.article-project { margin: 40px 0 28px; padding: 22px 24px; background: var(--teal-wash); border-left: 6px solid var(--teal); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.article-project h2 { margin: 0 0 8px; font-size: 1.25rem; }
.news-article .join-box { margin: 28px 0; }
.notice-draft { border-left-color: var(--marigold); background: var(--marigold-wash); }
.project-stories { margin: 24px 0; padding: 18px 22px; border: 2px solid var(--line); border-radius: var(--radius-lg); }
.project-stories h2 { margin: 0 0 8px; font-size: 1.15rem; }
.project-stories ul { margin: 0; padding-left: 1.2em; }

/* ---------- Admin: articles ---------- */
.article-editor { min-height: 520px; }
.cover-pick { border: 2px solid var(--line); border-radius: var(--radius-lg); padding: 16px 20px; display: grid; gap: 16px; }
.cover-pick legend { font-weight: 700; padding: 0 6px; }
.current-cover img { display: block; max-width: 320px; width: 100%; border-radius: var(--radius-sm); margin-bottom: 8px; }
.idea-done { opacity: 0.6; }

/* ---------- Apps ---------- */
.app-feature { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 32px; margin: 32px 0; padding: 32px; background: var(--panel); border: 3px solid var(--ink); border-radius: var(--radius-lg); }
.app-icon img { display: block; width: 120px; height: 120px; }
.app-text h2 { margin: 0; font-size: 1.8rem; }
.app-by { color: var(--ink-soft); margin: 2px 0 14px; }
.app-text > p { max-width: var(--measure); }
.app-facts { padding-left: 1.2em; margin: 0 0 20px; }
.app-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 0; }
.app-yours { margin-top: 40px; }

/* ---------- Services price list ---------- */
.price-list { display: grid; gap: 0; margin: 32px 0 16px; border-top: 3px solid var(--ink); }
.price-item { padding: 24px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 8px 40px; }
.price-item > :not(.price-head) { grid-column: 2; }
.price-head { grid-row: span 3; }
.price-head h2 { font-size: 1.3rem; margin: 0 0 6px; }
.price { margin: 0; font-size: 1.6rem; font-weight: 700; color: var(--teal-dark); }
.price span { display: block; font-size: 0.85rem; font-weight: 400; color: var(--ink-soft); }
.price-item p { margin: 0 0 10px; max-width: var(--measure); }
.price-item ul { margin: 0; padding-left: 1.2em; color: var(--ink-soft); }
.free-note { margin: 32px 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }

@media (max-width: 900px) {
  .front { grid-template-columns: 1fr; gap: 40px; }
  .price-item { grid-template-columns: 1fr; }
  .price-item > :not(.price-head) { grid-column: 1; }
  .price-head { grid-row: auto; }
}
@media (max-width: 560px) {
  .masthead-title { font-size: 2rem; }
  .lead-headline, .article-headline { font-size: 1.8rem; }
  .story { grid-template-columns: 1fr; }
  .story-thumb { order: -1; }
  .story-thumb img { width: 100%; height: auto; aspect-ratio: 3 / 2; }
  .app-feature { grid-template-columns: 1fr; padding: 22px; }
}

/* ---------- Lists guide ---------- */
.guide-toc { display: grid; gap: 4px; margin: 24px 0 8px; padding: 18px 22px; border-left: 6px solid var(--marigold); background: var(--marigold-wash); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.guide h2 { scroll-margin-top: 24px; }
.guide code { font-family: Menlo, Consolas, monospace; font-size: 0.9em; background: #eef1f4; padding: 2px 6px; border-radius: 4px; white-space: nowrap; }
.guide-table td:first-child { white-space: nowrap; }
.guide-table td { vertical-align: top; }
.guide-steps li { margin-bottom: 6px; }
.guide-cta { margin-top: 36px; }
@media (max-width: 560px) { .guide-table td:first-child, .guide-table code { white-space: normal; } .guide-table td:first-child { width: 40%; } }

/* ---------- Confirm-your-email banner ---------- */
.confirm-banner { background: var(--marigold-wash); border-bottom: 2px solid var(--marigold); }
.confirm-banner .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding-top: 10px; padding-bottom: 10px; }
.confirm-banner p { margin: 0; }
.confirm-banner form { margin: 0; }

/* ---------- Admin: member summary ---------- */
.member-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 16px 0 28px; }
.member-stats > div { padding: 14px 16px; border: 2px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); }
.member-stats dt { font-size: 0.9rem; font-weight: 700; color: var(--ink-soft); }
.member-stats dd { margin: 2px 0 0; font-size: 1.9rem; font-weight: 700; line-height: 1.1; }
.member-stats .meta { font-size: 0.85rem; }
.app-build-form { margin: 24px 0 28px; max-width: 420px; }
.app-build-form input[type=number] { max-width: 120px; }
.app-head { display: flex; gap: 18px; align-items: center; margin-bottom: 24px; }
.app-icon { border-radius: 16px; flex: none; }
.steps { padding-left: 1.4em; display: grid; gap: 10px; }
.invite-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.invite-list li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid #e3e7eb; }
/* ---------- Test teams ---------- */
.breadcrumb { margin: 0 0 6px; font-weight: 700; }
.tt-section { margin: 28px 0; }
.tt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 40px; }
.tt-steps { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; margin: 0 0 6px; }
.tt-steps li { font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #eef1f4; color: var(--ink-soft); }
.tt-steps li.done { background: var(--teal-dark); color: #fff; }
.tt-warn { color: #9a5b00; font-weight: 700; }
.tt-left td { opacity: 0.55; }
.tt-actions form { display: block; margin-bottom: 4px; }
.tt-feedback { border-top: 1px solid var(--line); padding: 12px 0; }
.tt-body { white-space: pre-wrap; }
.tt-update { margin: 20px 0; padding: 16px 18px; border: 2px solid var(--ink); border-radius: var(--radius-lg); background: #fdf3d8; }
.tt-update h2 { margin-top: 0; }
.tt-requests { padding: 16px 18px; border: 2px solid var(--ink); border-radius: var(--radius-lg); background: #fdf3d8; }
.tt-requests h2 { margin-top: 0; }
.tt-request { border-top: 1px solid var(--line); padding: 10px 0; }
.tt-request:first-of-type { border-top: 0; }
.project-testing { padding: 4px 0; }
.form-actions-end { margin-left: auto; }
.task-menu { position: absolute; z-index: 50; min-width: 140px; padding: 6px; background: #fff; border: 2px solid var(--ink);
  border-radius: var(--radius-sm); box-shadow: 0 6px 18px rgba(0,0,0,.15); display: grid; }
.task-menu a, .task-menu button { display: block; text-align: left; padding: 8px 12px; font: inherit; font-weight: 700; color: var(--ink);
  background: none; border: 0; border-radius: 6px; text-decoration: none; cursor: pointer; }
.task-menu a:hover, .task-menu a:focus, .task-menu button:hover, .task-menu button:focus { background: #eef1f4; outline: none; }
.task-menu .danger { color: #b3261e; }

/* Sign-up: a box only bots fill in, kept off screen */
.form-trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.bot-cleanup { margin: 24px 0 12px; }
.row-bot td { color: var(--ink-soft); }
.badge-bot { background: #fde8e6; color: #9b1c12; }

/* Apps: "Your apps" on the home page, the featured offer, member apps on the Apps page */
.app-tiles { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.app-tiles li, .app-card { display: flex; gap: 12px; align-items: center; }
.app-tile-icon { flex: none; width: 44px; height: 44px; border-radius: 10px; overflow: hidden; display: grid; place-items: center;
  background: var(--teal-wash); color: var(--teal-dark); font-weight: 700; text-decoration: none; }
.app-tile-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-tile-text { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.app-tile-text a:first-child { font-weight: 600; }
.app-open, .app-about { font-size: 0.9em; }
.featured-offer { border: 1px solid var(--line, #d9d4c7); border-radius: 10px; padding: 12px 14px; margin: 0 0 12px; }
.featured-offer p { margin: 0 0 8px; }
.featured-label { font-size: 0.85em; font-weight: 600; color: var(--teal-dark); margin: 0 0 4px; }
.more-apps { margin-top: 40px; }
.app-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.app-card { align-items: flex-start; }
.app-card .app-tile-icon { width: 64px; height: 64px; border-radius: 14px; font-size: 1.4em; }
.app-card h3 { margin: 0; }
.app-card p { margin: 4px 0; }
.app-card .app-actions { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.app-pick { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; }
.app-pick legend { font-weight: 600; margin-bottom: 6px; }

/* Ratings and reviews */
.rating-line { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: 6px 0 0; }
.rating-link { text-decoration: none; color: inherit; }
.rating-link span:last-child { text-decoration: underline; text-underline-offset: 0.18em; }
.stars { color: #b7791f; letter-spacing: 0.06em; }
.stars-big { font-size: 1.4em; }
.app-tag { font-size: 0.85em; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--teal-wash); color: var(--teal-dark); }
.reviews { margin-top: 40px; }
.review-summary { display: flex; gap: 10px; align-items: center; }
.review-form { max-width: 640px; margin: 16px 0 24px; }
.star-pick { border: 0; padding: 0; margin: 0; }
.star-pick legend { font-weight: 600; margin-bottom: 4px; }
.star-row { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-row label { font-size: 2rem; line-height: 1; color: #cfc8b8; cursor: pointer; padding: 2px; }
.star-row input:checked ~ label, .star-row label:hover, .star-row label:hover ~ label { color: #b7791f; }
.star-row input:focus-visible + label { outline: 2px solid var(--teal-dark); outline-offset: 2px; border-radius: 4px; }
.review-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.review-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 0; }
.review-body { margin: 6px 0 0; white-space: pre-line; }

/* What's new since your last visit (home page) */
.whats-new { border: 1px solid var(--line, #d9d4c7); border-left: 4px solid var(--teal-dark); border-radius: 10px;
  padding: 18px 20px; margin: 0 0 28px; background: var(--paper, #fff); }
.whats-new-top { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; justify-content: space-between; }
.whats-new h2 { margin: 0; font-size: 1.25rem; }
.whats-new-top .meta { margin: 0; }
.whats-new-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px 28px; margin: 14px 0; }
.whats-new-group h3 { font-size: 1rem; margin: 0 0 6px; }
.whats-new-group .count { display: inline-block; min-width: 1.5em; padding: 0 6px; border-radius: 999px; font-size: 0.8em;
  text-align: center; background: var(--teal-wash); color: var(--teal-dark); }
.whats-new-group ul { margin: 0; padding-left: 18px; }
.whats-new-group li { margin: 3px 0; }
.whats-new-actions { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.news-choices fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.news-choices legend { font-weight: 600; margin-bottom: 6px; }
.news-choices .hint { display: block; }

/* Services: the "not here to make money" note */
.services-note { border-left: 4px solid var(--teal-dark); padding: 4px 0 4px 16px; margin: 0 0 28px; }
.services-note p { margin: 0 0 8px; }
.services-note form { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; }

/* "No iPhone? Lists works in your browser" */
.web-lists { display: flex; gap: 16px; align-items: flex-start; border: 1px solid var(--line, #d9d4c7); border-radius: 12px;
  padding: 16px 18px; margin: 20px 0; background: var(--paper); max-width: 46rem; }
.web-lists img { flex: none; border-radius: 13px; }
.web-lists-head { font-size: 1.1rem; margin: 0 0 6px; }
.web-lists p { margin: 0 0 10px; }
.web-lists .hint { margin-bottom: 6px; }
.web-lists-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.install-line { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: -8px 0 16px; }
@media (max-width: 480px) { .web-lists { flex-direction: column; } }

/* "Something you haven't tried" (home page) */
.try-this { border: 1px solid var(--line, #d9d4c7); border-radius: 10px; padding: 14px 16px; }
.try-this p { margin: 0 0 8px; }
.try-link { font-weight: 700; font-size: 1.05em; }
.try-actions { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 4px 0 10px; }

/* Explore */
.explore-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; }
.explore-item { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  border: 1px solid var(--line, #d9d4c7); border-radius: 10px; padding: 14px 16px; }
.explore-text { flex: 1 1 22rem; }
.explore-text h2 { font-size: 1.15rem; margin: 0 0 4px; }
.explore-text p { margin: 0; }
.explore-actions { display: flex; gap: 10px; align-items: center; }
.explore-reset { margin-top: 28px; }
.explore-banner { background: var(--teal-wash); border-bottom: 1px solid var(--line, #d9d4c7); }
.explore-banner .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.explore-banner p { margin: 0; max-width: 46rem; }
.explore-banner-actions { display: flex; gap: 16px; align-items: center; }
.messages-link .unread { display: inline-block; min-width: 1.4em; margin-left: 4px; padding: 0 6px; border-radius: 999px;
  background: #b3261e; color: #fff; font-size: 0.8em; font-weight: 700; text-align: center; line-height: 1.5; }

/* Messages */
.conversations { list-style: none; padding: 0; margin: 20px 0; border-top: 1px solid var(--line, #d9d4c7); }
.conversations li { border-bottom: 1px solid var(--line, #d9d4c7); }
.conversations a { display: flex; gap: 12px; align-items: center; padding: 12px 4px; text-decoration: none; color: inherit; }
.conversations a:hover { background: var(--teal-wash); }
.conversation-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.conversation-top { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; }
.conversation-preview { color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.has-unread .conversation-preview { color: inherit; font-weight: 600; }
.conversations .unread, .thread .unread { display: inline-block; min-width: 1.5em; padding: 0 6px; border-radius: 999px;
  background: #b3261e; color: #fff; font-size: 0.8em; font-weight: 700; text-align: center; }
.thread { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 12px; }
.thread li { max-width: 34rem; padding: 10px 14px; border-radius: 12px; }
.thread .theirs { background: #f0eee8; justify-self: start; }
.thread .mine { background: var(--teal-wash); justify-self: end; }
.message-meta { margin: 0 0 4px; font-size: 0.85em; display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--ink-soft); }
.message-meta strong { color: var(--ink); }
.message-body { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.to-everyone { font-weight: 600; color: var(--teal-dark); }
.involved { columns: 2 16rem; padding-left: 18px; }

/* "Get Lists on your phone" on the Lists project's page; the visitor's own kind of phone comes first */
.get-it { margin: 32px 0; }
.get-it-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.get-it-card { border: 1px solid var(--line, #d9d4c7); border-radius: 12px; padding: 16px 18px; }
.get-it-card.is-yours { order: -1; border-color: var(--teal-dark); border-width: 2px; }
.get-it-card h3 { margin: 0 0 8px; }
.get-it-card p { margin: 0 0 10px; }
.get-it-card .steps { margin: 0 0 10px; padding-left: 20px; }
.get-it-card .steps li { margin: 4px 0; }

/* "Enjoying Codedogs?": the box that asks members to invite someone */
.invite-prompt {
  max-width: 30rem;
  width: calc(100% - 32px);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 12px 40px rgba(20, 40, 50, 0.18);
}
.invite-prompt::backdrop { background: rgba(20, 40, 50, 0.35); }
.invite-prompt h2 { margin-top: 0; }
.invite-prompt-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.invite-prompt-actions form { margin: 0; }
.invite-prompt-off { margin: 14px 0 0; font-size: 0.95rem; }

/* Two ways to take up a project: use it, or make it your own */
.two-ways { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin: 20px 0 4px; }
.two-ways > div { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: #fff; }
.two-ways h2 { font-size: 1.15rem; margin: 0 0 6px; }
.two-ways p { margin: 0 0 12px; color: var(--ink-soft); }
.two-ways form { margin: 0; }
.based-on { margin: 4px 0 8px; color: var(--ink-soft); }
.spin-off-list { list-style: none; padding: 0; }
.spin-off-list li { border-top: 1px solid var(--line); padding: 12px 0; }
.spin-off-list li p { margin: 6px 0; }
.spin-off-list .badge { margin-right: 6px; }

/* Teams: a member's checklist, the team, and questions */
.checklist { list-style: none; padding: 0; margin: 0 0 12px; counter-reset: step; }
.checklist li { border-top: 1px solid var(--line); padding: 10px 0; }
.checklist-line { display: flex; gap: 12px; align-items: flex-start; }
.checklist-tick { margin: 0; }
.checklist .tick { width: 28px; height: 28px; border: 2px solid var(--teal-dark); border-radius: 6px; background: #fff;
  color: #fff; font-weight: 700; cursor: pointer; flex: none; line-height: 1; }
.checklist .is-done .tick, .checklist li.is-done .tick { background: var(--teal-dark); }
.checklist li.is-done .step-text { color: var(--ink-soft); text-decoration: line-through; }
.checklist li.is-skipped .step-text { color: var(--ink-soft); }
.checklist-text { padding-top: 2px; }
.checklist-actions { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 4px 0 0 40px; font-size: 0.95rem; }
.checklist-actions form { margin: 0; }
.checklist-actions details .form { margin-top: 8px; }
.team-list { list-style: none; padding: 0; }
.team-list li { padding: 6px 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.team-question { border-top: 1px solid var(--line); padding: 14px 0; }
.team-question header { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.team-answers { margin-left: 24px; border-left: 3px solid var(--teal-wash); padding-left: 14px; }
.team-answer { padding: 6px 0; }
.team-answer p { margin: 4px 0 0; }
.finish-request { border-top: 1px solid var(--line); padding: 10px 0; }
.credit-form summary, details summary.link-button { cursor: pointer; display: inline; }
.step-number { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.checklist li.is-done .step-number { text-decoration: none; }

/* Tabs (Admin, Messages: real / probably spam) */
.tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--line); margin: 0 0 16px; }
.tabs a { padding: 8px 0; text-decoration: none; color: var(--ink-soft); border-bottom: 3px solid transparent; }
.tabs a.active { color: var(--ink); border-bottom-color: var(--teal-dark); font-weight: 600; }

/* An admin using their member account */
.switch-banner { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: center;
  background: #fff4d6; border-bottom: 1px solid #e8cf7a; padding: 8px 16px; font-size: 0.95rem; }
.switch-banner form { margin: 0; }
.switch-form { display: inline; margin: 0; }

/* The owner's one-line "what's switched on" */
.owner-status { background: var(--teal-wash); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px;
  margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; font-size: 0.97rem; }

.page-kicker { display: block; font-size: 1rem; font-weight: 600; color: var(--ink-soft); letter-spacing: 0; margin-bottom: 4px; }
.project-result { margin: 12px 0; padding: 10px 14px; border-left: 4px solid var(--teal); background: var(--teal-wash); border-radius: 0 8px 8px 0; font-size: 1.05rem; }
.project-result-label { font-weight: 700; margin-right: 4px; }
.project-result a { font-weight: 600; }

/* ---- Pieces: the wheel for picking a kind, the owner's list, and how pieces show on a project */
.wheel { display: flex; align-items: center; gap: 6px; margin: 8px 0 18px; }
.wheel-turn { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel);
  font-size: 1.6rem; line-height: 1; color: var(--ink); cursor: pointer; }
.wheel-turn:hover { border-color: var(--teal); color: var(--teal); }
.wheel-track { flex: 1; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 4px;
  scrollbar-width: none; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.wheel-track::-webkit-scrollbar { display: none; }
.wheel-item { flex: none; scroll-snap-align: center; width: 112px; padding: 14px 8px 10px; border: 1px solid var(--line);
  border-radius: var(--radius-lg); background: var(--panel); text-align: center; cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.wheel-item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wheel-item:has(input:focus-visible) { outline: 3px solid var(--marigold); outline-offset: 2px; }
.wheel-glyph { display: block; font-size: 1.9rem; line-height: 1.1; color: var(--teal); }
.wheel-label { display: block; font-weight: 700; margin-top: 4px; }
.wheel-item.is-on, .wheel-item:has(input:checked) { border-color: var(--teal); background: var(--teal-wash); transform: scale(1.08);
  box-shadow: 0 0 0 2px var(--teal); }
@media (prefers-reduced-motion: reduce) { .wheel-item { transition: none; } }
.wheel-ready .piece-form { display: none; }
.wheel-ready .piece-form.is-chosen { display: block; }
.piece-form { border-top: 1px solid var(--line); padding-top: 12px; margin-bottom: 18px; }
.piece-hint { color: var(--ink-soft); }
.piece-list { list-style: none; padding: 0; margin: 0 0 24px; border-top: 1px solid var(--line); }
.piece-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.piece-list li.is-editing { background: var(--marigold-wash); }
.piece-kind { flex: none; min-width: 72px; font-size: .85rem; font-weight: 700; color: var(--teal-dark); }
.piece-summary { flex: 1 1 240px; overflow-wrap: anywhere; }
.piece-actions { display: flex; gap: 12px; align-items: baseline; }
.piece-actions form { display: inline; }
.piece { margin: 28px 0; }
.piece-link a { font-weight: 600; }
.site-preview { position: relative; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--panel); }
.site-preview iframe { position: absolute; top: 0; left: 0; width: 1200px; height: 800px; border: 0; transform-origin: 0 0;
  pointer-events: none; }
.made-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.made-card p { margin: 6px 0; }
.made-card .site-preview { margin-bottom: 8px; }
.made-yours { margin: 28px 0; }
.made-yours.is-finished { padding: 14px 18px; border: 2px solid var(--marigold); border-radius: var(--radius-lg); background: var(--marigold-wash); }
a.site-preview { display: block; }
a.site-preview:hover { border-color: var(--teal); }
.piece-website .site-preview { max-width: 720px; }
.wheel-track { padding-inline: 18%; }
.review-banner { background: var(--teal-wash); border-bottom: 2px solid var(--teal); }
.review-banner .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding-top: 10px; padding-bottom: 10px; }
.review-banner p { margin: 0; }
.your-site { margin: 0 0 18px; padding: 12px 16px; border-radius: var(--radius-lg); border: 2px solid var(--line); background: var(--panel); }
.your-site p { margin: 4px 0; }
.your-site form { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 6px; }
.your-site-live { border-color: var(--teal); background: var(--teal-wash); font-size: 1.1rem; }
.your-site-live a { font-weight: 700; }
.your-site-waiting { border-color: var(--marigold); background: var(--marigold-wash); }
.checklist-group { margin: 8px 0 14px; }
.checklist-group > summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
.checklist-group.group-done > summary, .checklist-group.group-skipped > summary { color: var(--ink-soft); }
.checklist-progress { margin: 4px 0 10px; }
.whats-left { margin: 0 0 22px; padding: 14px 18px 6px; border: 2px solid var(--teal); border-radius: var(--radius-lg); background: var(--panel); }
.whats-left h2 { margin: 0 0 4px; font-size: 1.35rem; }
.whats-left .checklist li:first-child { border-top: 0; }
.whats-left li.is-next .step-text { font-weight: 700; }
.next-badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--marigold); color: var(--ink);
  font-size: .8rem; font-weight: 700; vertical-align: 2px; }

/* ---- The Codedogs project: requests, me too, the team */
.site-kicker { margin: 0 0 4px; font-weight: 700; color: var(--teal-dark); }
.kind-pick { border: 0; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.kind-pick legend { font-weight: 600; margin-bottom: 4px; }
.request-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.request { border-bottom: 1px solid var(--line); padding: 12px 0; }
.request-head { display: flex; gap: 14px; align-items: flex-start; }
.request-main { flex: 1; min-width: 0; }
.request-main p { margin: 2px 0; }
.request-title { font-size: 1.08rem; }
.request-note { color: var(--ink-soft); font-style: italic; }
.request-body, .request-reply { margin: 8px 0; padding-left: 12px; border-left: 3px solid var(--line); }
.request-reply .badge { margin-left: 6px; }
.metoo-button { display: flex; flex-direction: column; align-items: center; min-width: 64px; padding: 6px 8px; border: 2px solid var(--line);
  border-radius: var(--radius-sm); background: var(--panel); color: var(--ink); cursor: pointer; font: inherit; }
.metoo-button:hover:not(:disabled) { border-color: var(--teal); }
.metoo-button.is-on { border-color: var(--teal); background: var(--teal-wash); }
.metoo-button:disabled { cursor: default; opacity: .75; }
.metoo-count { font-size: 1.3rem; font-weight: 700; line-height: 1.1; }
.metoo-label { font-size: .8rem; }
.badge-NEW { background: var(--marigold-wash); }
.badge-PLANNED, .badge-DOING { background: var(--teal-wash); }
.badge-DONE { background: var(--teal); color: #fff; }
.status-form { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: flex-end; }
.volunteer-row { padding: 6px 0; border-top: 1px solid var(--line); }
.feature-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.feature { border-bottom: 1px solid var(--line); padding: 10px 0; }
.feature p { margin: 4px 0; }
.feature-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.feature-try { margin: 0; }
.feature-try .check { margin: 0; font-weight: 700; }
.feature-admin { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 6px; }
.feature-link { margin: 0; }
.feature-OFF { opacity: .7; }
.saved-flash { margin-left: 8px; font-size: .85rem; font-weight: 700; color: var(--teal-dark); transition: opacity .6s ease; }
@media (prefers-reduced-motion: reduce) { .saved-flash { transition: none; } }
