/* ============================================================
   Fonts: the @font-face rules and the per-account choice (<html data-font>) are generated from lib/fonts.js and
   served as /look.css. --font below is only the fallback until it loads. Other scripts (Cyrillic names, emoji)
   fall back to the system font.
============================================================ */

/* ============================================================
   Theme tokens. Light by default; dark when the account picks it (data-theme="dark") or picks Auto and the
   system is dark. Every colour on the page comes from these.
============================================================ */
:root {
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --top-h: 56px;
  /* THE page width: a wide page (main.wide), the breadcrumb row and the top bar's contents all keep to it, so on a big
     screen they share one left and right edge. */
  --page-max: 1440px;
  --page-pad: 28px;
  --radius: 14px;
  /* THE button corner (2026-11-17, Curtis: "I don't like the rounder border radius, match the border radius of the box
     in the nav for all buttons"): the sidebar's selected item (.side-link), on every button and control (.btn, .pill,
     .follow-btn, selects, the search, the tabs). Badges (a count, the Live pill, a tag) stay round: they aren't pressed. */
  --btn-r: 10px;
  /* The front page's invented people (services/demo.js `hue`, partials/avatar.hbs data-hue): a colour each where a real
     account has its picture, the same in both themes. */
  --hue-1: linear-gradient(135deg, #ff5f8f, #ffaa5c);
  --hue-2: linear-gradient(135deg, #8b5cf6, #3b82f6);
  --hue-3: linear-gradient(135deg, #14b8a6, #84cc16);
  --hue-4: linear-gradient(135deg, #f97316, #ef4444);
  --hue-5: linear-gradient(135deg, #38bdf8, #22d3ee);
  --hue-6: linear-gradient(135deg, #f59e0b, #facc15);
  --hue-7: linear-gradient(135deg, #6366f1, #ec4899);
  --hue-8: linear-gradient(135deg, #10b981, #06b6d4);
  --on-hue: #ffffff;

  --bg: #f4f6f8;
  --surface: #ffffff;
  --hover: #f3f6f9;
  --ink: #0f1419;
  --muted: #5b6b78;
  --faint: #8d9aa5;
  --line: #e6eaee;
  --line-strong: #d5dce2;
  --accent: #1d9bf0;
  --accent-ink: #ffffff;
  --accent-soft: #e6f3fd;
  --me: #dfeefc;
  --them: #eef2f5;
  /* The post a conversation hangs on (.seed): a quiet panel, set apart from the chat under it. */
  --seed: #f6f8fa;
  --shadow: 0 1px 2px rgba(15, 20, 25, .04), 0 6px 20px rgba(15, 20, 25, .05);
  --top-bg: rgba(255, 255, 255, .82);
  /* Over a picture (a video's ▶ 1:02 badge): the same in both themes, since the picture decides the backdrop. */
  --scrim: rgba(0, 0, 0, .72);
  --on-scrim: #ffffff;
  /* A switch's knob: white on its track in both themes. */
  --knob: #ffffff;
  /* Hearts and the sidebar's counts are the ACCENT (2026-11-17, Curtis: "make the notification color the accent (and the
     hearts) so hearts are no longer just pink"): the --like / --like-soft tokens are gone; Pink is one of the accents
     (lib/accents.js). Done's green and the confetti's yellow (with --accent and --alert: four colours), both themes. */
  --done: #00ba7c;
  --done-soft: #e3f6ee;
  --gold: #ffd400;
  /* Amber, readable as text (X's yellow isn't on white): "You follow", a one-way follow of yours (partials/follow-badge.hbs). */
  --amber: #b45309;
  --amber-soft: #fdf1dc;
  /* A count that wants you (the Inbox tab's Waiting, Likes' and Follows' new; an unfollow's verb): X's notification
     red, white on it, in both themes. */
  --alert: #f4212e;
  --alert-ink: #ffffff;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0c0f;
    --surface: #121519;
    --hover: #181d22;
    --ink: #e8eaed;
    --muted: #95a3af;
    --faint: #66737f;
    --line: #22282e;
    --line-strong: #2e353c;
    --accent: #3aa7f5;
    --accent-ink: #04121c;
    --accent-soft: #10273a;
    --me: #14304a;
    --them: #1b2026;
    --seed: #171b20;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 28px rgba(0, 0, 0, .3);
    --top-bg: rgba(18, 21, 25, .82);
    --done-soft: #0e2a20;
    --amber: #f5b13d;
    --amber-soft: #2e2210;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0c0f;
  --surface: #121519;
  --hover: #181d22;
  --ink: #e8eaed;
  --muted: #95a3af;
  --faint: #66737f;
  --line: #22282e;
  --line-strong: #2e353c;
  --accent: #3aa7f5;
  --accent-ink: #04121c;
  --accent-soft: #10273a;
  --me: #14304a;
  --them: #1b2026;
  --seed: #171b20;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 28px rgba(0, 0, 0, .3);
  --top-bg: rgba(18, 21, 25, .82);
  --done-soft: #0e2a20;
  --amber: #f5b13d;
  --amber-soft: #2e2210;
  color-scheme: dark;
}

/* ============================================================
   Base
============================================================ */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* A full-height column, so the footer sits at the bottom of the window on a short page and after the content on a
   long one (main takes the room between). */
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
body > main { flex: 1 0 auto; width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1 { font-family: var(--font); font-size: 30px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; margin: 0 0 8px; }
h2.section { font-family: var(--font); font-size: 18px; font-weight: 650; letter-spacing: -.01em; margin: 32px 0 6px; }
.note { color: var(--muted); margin: 0 0 20px; }
.fine { margin-top: 14px; font-size: 13px; color: var(--muted); }
.muted { color: var(--muted); }
/* THE TOOLTIP: anything with data-tip="…" shows it above itself the moment the pointer is on it, ink on the page's
   background (both themes), never in the way of the pointer. CSS alone (the CSP: no script, no style=). A new tooltip
   is a data-tip, not a title (the browser's own waits a second and looks like nothing else here). */
[data-tip] { position: relative; }
/* Placement: above, centred, by default; .tip-below under it (the header: above would be off the window); .tip-end
   lined up with its right edge (something at the window's right). */
[data-tip].tip-below:hover::after { top: calc(100% + 6px); bottom: auto; }
[data-tip].tip-end:hover::after { left: auto; right: 0; transform: none; }
/* .tip-wide: a tooltip that explains in sentences (the header's "● Live") wraps at a reading width, never one long line. */
[data-tip].tip-wide:hover::after { width: max-content; max-width: 280px; white-space: normal; padding: 7px 10px; }
[data-tip]:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; z-index: 30; transform: translateX(-50%); padding: 4px 9px; font-size: 12px; font-weight: 500; line-height: 1.35; letter-spacing: 0; text-transform: none; white-space: nowrap; color: var(--bg); background: var(--ink); border-radius: 7px; box-shadow: var(--shadow); pointer-events: none; }
/* Read by screen readers, not shown. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
code { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* 20px under the header: the title sits level with the sidebar's first place (its 16px + the link's own padding;
   Curtis 2026-11-16: "slightly too much padding at the top"; it was 32px). */
main { max-width: 880px; margin: 0 auto; padding: 20px 20px 72px; }
main.wide { max-width: var(--page-max); padding: 20px var(--page-pad) 72px; }

/* ============================================================
   Header — sticky, translucent
============================================================ */
/* The bar's background spans the window; its contents keep to the page width (--page-max), so on a big screen the
   wordmark and the menu line up with a wide page's edges instead of the window's (Curtis 2026-11-16). */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; min-height: var(--top-h); padding: 10px max(var(--page-pad), calc((100% - var(--page-max)) / 2 + var(--page-pad))); background: var(--top-bg); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; font-family: var(--font); font-size: 21px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.brand:hover { text-decoration: none; color: var(--accent); }
.top-me { display: inline-flex; align-items: center; gap: 9px; padding: 3px 10px 3px 3px; border-radius: 999px; transition: background .15s; }
.top-me:hover { text-decoration: none; background: var(--hover); }
.top-me .avatar { width: 30px; height: 30px; font-size: 12px; }
.top-who { color: var(--muted); font-size: 13px; }
.top-handle { color: var(--ink); font-weight: 600; }
.top-stat { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.top-who .seg { white-space: nowrap; } /* wrap between phrases, never inside one */
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.top-actions form { margin: 0; }
/* THE page-loading bar (layouts/main.hbs, public/js/busy.js): 2px of the accent on the header's bottom edge while the
   next page loads. It waits 120 ms (a fast page never shows it), runs quickly to about half, then creeps toward the end
   (it never "finishes": the next page replaces it). Reduced motion: a still bar after the same wait. */
.nav-progress { position: absolute; left: 0; bottom: -1px; width: 0; height: 2px; background: var(--accent); opacity: 0; pointer-events: none; }
.nav-progress.on { animation: nav-progress 10s cubic-bezier(.08, .7, .2, 1) .12s forwards; }
@keyframes nav-progress { 0% { opacity: 1; width: 0; } 8% { width: 50%; } 100% { opacity: 1; width: 94%; } }
@media (prefers-reduced-motion: reduce) {
  .nav-progress.on { animation: nav-progress-still .01s linear .12s forwards; }
  @keyframes nav-progress-still { to { opacity: 1; width: 100%; } }
}
/* The sync STATUS (layouts/main.hbs; public/js/live.js flips .is-live), not a button: a soft green "● Live" pill while
   X pushes to this account, else "Synced 4m ago" in quiet text; the ↻ beside it is the button. The dot breathes once
   every few seconds (reduced motion: still). */
.sync-state { display: inline-flex; align-items: center; height: 28px; padding: 0 6px; font-size: 13px; color: var(--muted); white-space: nowrap; cursor: default; }
.sync-state .live-on { display: none; align-items: center; gap: 6px; }
.sync-state.is-live { padding: 0 11px; font-weight: 600; color: var(--done); background: var(--done-soft); border-radius: 999px; }
.sync-state.is-live .live-on { display: inline-flex; }
.sync-state.is-live .live-off { display: none; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--done); box-shadow: 0 0 0 3px color-mix(in srgb, var(--done) 22%, transparent); }
@media (prefers-reduced-motion: no-preference) {
  .live-dot { animation: live-breathe 3.2s ease-in-out infinite; }
}
@keyframes live-breathe { 0%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--done) 22%, transparent); } 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--done) 8%, transparent); } }

/* "3 new · Show" (partials/live-pill.hbs): what arrived live while the page was open, held at the top of the window
   under the header until pressed (which reloads). */
.live-pill-row { position: sticky; top: calc(var(--top-h) + 10px); z-index: 20; display: flex; justify-content: center; }
.live-pill-row.on { margin-bottom: 12px; } /* live.js sets .on with the pill (iOS Safari won't re-check :has()) */
.live-pill { font: inherit; font-size: 14px; font-weight: 600; color: var(--accent-ink); background: var(--accent); border: 0; border-radius: var(--btn-r); padding: 7px 16px; box-shadow: var(--shadow); cursor: pointer; }
.live-pill:hover { filter: brightness(1.08); }
@media (prefers-reduced-motion: no-preference) {
  .live-pill:not([hidden]) { animation: modal-in .2s cubic-bezier(.2, .8, .3, 1); }
}
/* The money figure (web.js headerBalance): your X credit if you're the owner, your balance if you pay. */
/* THE COUNTDOWN (partials/limits.hbs): X's limit used up, until when. The "● Live" pill's shape in the amber of
   "You follow": a wait, not an error. Each entry's minutes tick in place (tabular, so the pill doesn't jitter). */
.limits { display: inline-flex; align-items: center; gap: 6px; margin-right: 6px; font-size: 13px; color: var(--muted); white-space: nowrap; cursor: default; }
.limits[hidden] { display: none; }
.limit { display: inline-block; height: 28px; line-height: 28px; padding: 0 10px; border-radius: 999px; } /* not flex: it would trim the spaces beside the numbers */
.limit b { font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.limit.spent { background: var(--amber-soft); } /* a window used up: the amber wait (a class, not :has(): iOS Safari) */
.limit.spent, .limit.spent b { color: var(--amber); }
/* A phone's header: only a window that's SPENT, the soonest of them (2026-11-17, Curtis: "the reset math at the top messes
   with the header"; "Likes 49/50 · resets in 10:05" took a whole row for something that only matters when you're out). */
@media (max-width: 720px) { .limit:not(.spent), .limit.spent ~ .limit.spent { display: none; } }
.top-balance { margin-right: 6px; padding: 5px 10px; font-size: 13px; color: var(--muted); white-space: nowrap; border-radius: var(--btn-r); transition: background .15s, color .15s; }
.top-balance b { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.top-balance:hover { text-decoration: none; background: var(--hover); color: var(--ink); }
/* ============================================================
   THE SIDEBAR (views/partials/side-nav.hbs, signed in): the places down the left, under the header, the page in the
   column beside it (.shell / .shell-main). Open: icon + label + its red count, 224px. Folded (body.nav-collapsed,
   Account.navCollapsed): icons only, 64px, the count a small pill on the icon, the label its tooltip. A phone: a
   drawer behind the header's ☰ (#nav-open), always open-width, with a scrim.
============================================================ */
/* --app-max: THE width of the whole signed-in app, sidebar and page together (Curtis 2026-11-16: "lets have a max
   width across the app"): on a big screen it's one centred block and the header's contents keep to its edges, as the
   wide pages' --page-max did before the sidebar (the sidebar + a wide page's 1440). */
:root { --side-w: 224px; --side-w-folded: 64px; --app-max: 1680px; }
.nav-open { position: absolute; opacity: 0; pointer-events: none; }
@media (min-width: 721px) { .nav-open { display: none; } } /* the drawer is a phone's: no stop for the keyboard elsewhere */
.nav-open:focus-visible ~ .top .nav-burger { outline: 2px solid var(--accent); outline-offset: 2px; }
.top .nav-burger, .nav-scrim { display: none; } /* .top: the .btn it also is would show it */
/* The wordmark over the sidebar, the actions at the app's right edge; the bar's background still spans the window. */
.has-side .top { padding: 10px max(20px, calc((100% - var(--app-max)) / 2 + 20px)); }
.shell { display: flex; flex: 1 0 auto; align-items: stretch; width: 100%; max-width: var(--app-max); margin: 0 auto; }
.shell-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; container-type: inline-size; }
/* width: 100%: a flex column item with auto side margins shrinks to its content (an empty Inbox drew 787px wide and
   its toolbar wrapped, 2026-11-16); `body > main` had it before the sidebar. */
.shell-main > main { flex: 1 0 auto; width: 100%; }
/* Every signed-in page starts at the SAME left edge beside the sidebar, at its own width (Curtis 2026-11-16: "left align
   the likes feed to the same width from the menu as the inbox, follows and people ... I don't like how LIKES title
   moves"): a reading page (Likes, Settings, Usage, a conversation) was centred in the column and a wide one wasn't,
   so the title jumped sideways from page to page. Same padding for both, so their titles share an x. */
.shell-main > main, .shell-main > .crumbs-row { margin-left: 0; margin-right: auto; }
.shell-main > main:not(.wide) { max-width: calc(840px + 2 * var(--page-pad)); padding-left: var(--page-pad); padding-right: var(--page-pad); }
.side { flex: none; position: sticky; top: var(--top-h); align-self: flex-start; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; width: var(--side-w); height: calc(100vh - var(--top-h)); height: calc(100dvh - var(--top-h)); padding: 16px 12px; overflow-y: auto; border-right: 1px solid var(--line); background: var(--bg); }
.side-nav, .side-foot { display: grid; gap: 2px; }
.side-foot form { margin: 0; }
.side-link { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 12px; font: inherit; font-size: 15px; font-weight: 600; color: var(--muted); text-align: left; white-space: nowrap; background: none; border: 0; border-radius: var(--btn-r); cursor: pointer; transition: background .15s, color .15s; }
.side-link:hover { text-decoration: none; color: var(--ink); background: var(--hover); }
/* The page you're on: the card surface with a hairline (the sidebar sits on the page's own background, where --hover
   all but vanishes in light). */
.side-link.on { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.side-link .ico { width: 20px; height: 20px; transition: color .15s; }
/* Every item's icon turns the accent under the pointer (2026-11-17, Curtis: "make the hover over nav items have the
   icon change to the accent color (currently works only for likes)"; Likes' heart was the only one, 2026-11-16).
   Every icon fills with currentColor (.ico), so its colour is the one switch. */
.side-link:hover .ico { color: var(--accent); }
.side-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.side-foot .side-link { font-size: 14px; font-weight: 500; }
/* A module that isn't on: faded, still a link (its page says what it is and has its switch). */
.side-link.off { opacity: .55; }
.side-link.off:hover { opacity: 1; }
.side-off { font-size: 11px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
/* A place's red count: the Inbox's likes and replies owed, Likes' / Follows' new (public/js/live.js moves it; Curtis
   2026-11-16: "remove the bell and make it red"). Hidden at 0 (the [hidden] rule: display would override the
   attribute). A small shake whenever its number changes (Curtis 2026-11-16: "a lil shake just subtle"); reduced
   motion: it just changes. */
.nav-count { min-width: 20px; padding: 0 6px; font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; color: var(--accent-ink); background: var(--accent); border-radius: 999px; font-variant-numeric: tabular-nums; } /* the accent, like the hearts (2026-11-17: red, then the hearts' pink, then the accent); --alert stays for danger */
.nav-count[hidden], .nav-dot[hidden] { display: none; }
.nav-count.shake { animation: count-shake .5s ease-in-out; }
@keyframes count-shake { 0%, 100% { transform: none; } 20% { transform: translateX(-2px) rotate(-6deg); } 40% { transform: translateX(2px) rotate(5deg); } 60% { transform: translateX(-1.5px) rotate(-3deg); } 80% { transform: translateX(1px) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .nav-count.shake { animation: none; } }
/* Arriving on the feed it counts (web.js openFeed): the number you came for holds, then fades away. It stays in the
   page (hidden in all but looks), so a new one arriving later shows it again (live.js drops .clearing). Reduced
   motion: the same fade, without the shrink. */
.nav-count.clearing { animation: count-clear .7s ease-in 1.4s forwards; }
@keyframes count-clear { to { opacity: 0; transform: scale(.6); } }
@media (prefers-reduced-motion: reduce) {
  .nav-count.clearing { animation-name: count-clear-still; }
  @keyframes count-clear-still { to { opacity: 0; } }
}
/* The fold: its arrow points the way a press goes. */
.nav-collapsed .side-fold .ico { transform: scaleX(-1); }
@media (min-width: 721px) {
  .nav-collapsed .side { width: var(--side-w-folded); padding: 16px 8px; }
  .nav-collapsed .side-link { justify-content: center; padding: 10px 0; }
  .nav-collapsed .side-label, .nav-collapsed .side-off { display: none; }
  .nav-collapsed .nav-count { position: absolute; top: 2px; right: 4px; min-width: 16px; padding: 0 4px; font-size: 10.5px; line-height: 16px; }
}
@media (max-width: 720px) {
  .top .nav-burger { display: inline-flex; position: relative; order: 0; }
  .nav-dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--top-bg); }
  .side { position: fixed; top: 0; left: 0; z-index: 40; height: 100vh; height: 100dvh; width: min(280px, 82vw); padding-top: 20px; transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow); }
  .nav-open:checked ~ .shell .side { transform: none; }
  .nav-open:checked ~ .shell .nav-scrim { display: block; position: fixed; inset: 0; z-index: 39; background: var(--scrim); }
  .side-fold { display: none; }
}
.banner { margin: 0; padding: 10px 16px; background: var(--accent-soft); font-size: 14px; text-align: center; }

/* Buttons: .btn (outlined pill), .btn.ghost (quiet), .btn.ghost.icon (an icon alone), .pill (primary), .switch (on/off). */
/* --btn-h: THE height of a text button, so any two side by side line up across the app (Curtis 2026-11-16: "make these
   the same height across the app": the old Open on X button beside the Follow button). .btn and .follow-btn both take it; an icon
   button (.btn.icon) keeps its own square. */
:root { --btn-h: 34px; }
.btn { display: inline-flex; align-items: center; gap: 6px; height: var(--btn-h); font: inherit; font-size: 13px; font-weight: 500; color: var(--ink); background: transparent; border: 1px solid var(--line-strong); border-radius: var(--btn-r); padding: 0 14px; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { background: var(--hover); text-decoration: none; }
.btn.ghost { border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--ink); background: var(--hover); }
/* An icon on its own (the modal's ✕, the sort's reverse arrow, the layout toggle): no border, no fill until hover.
   .on = the one in use. */
.btn.icon { height: auto; padding: 6px; }
.btn.ghost.on { color: var(--accent); }
.ico.flip { transform: rotate(180deg); }
/* The ↻ that re-reads someone's profile (views/partials/refresh-profile.hbs), among a card's actions. */
form.refresh { display: inline-flex; margin: 0; }
.ico { width: 16px; height: 16px; flex: none; fill: currentColor; }
/* A line-drawn icon (partials/icon-reply.hbs): stroked, not filled. */
.ico.line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Every dropdown in the app looks the same (Font, Time zone, Syncing, the sort, the refill amount); a context only
   adjusts its size. */
select { max-width: 100%; font: inherit; font-size: 14px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--btn-r); padding: 7px 14px; }
select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.pill { font: inherit; font-size: 14px; font-weight: 600; color: var(--accent-ink); background: var(--accent); border: 0; border-radius: var(--btn-r); padding: 6px 16px; cursor: pointer; transition: filter .15s; }
.pill:hover { filter: brightness(1.08); }
/* A destructive primary (the reconciler's "Unfollow selected"): the alert red, X's own for unfollowing. */
.pill.danger { color: #ffffff; background: var(--alert); }
.pill.danger:disabled { opacity: .45; cursor: default; filter: none; }
.pill:disabled { cursor: default; filter: none; }
/* On its way (public/js/post-actions.js `sending`, public/js/busy.js): the label gives way to a small spinner in the
   button's own colour, same size button, so nothing shifts. Any button (.pill or .btn): the label's fill goes clear and
   the ring is drawn in its text colour. Reduced motion: the label stays, dimmed, no spin. */
/* A bulk like under way (post-actions.js likeAll): its number counts down what's still to go, a spinner beside it. */
.btn.counting { cursor: progress; }
.btn.counting::after { content: ""; flex: none; width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.counting:disabled { opacity: 1; color: var(--ink); cursor: progress; }
.btn.counting:disabled .ico { fill: var(--accent); stroke: none; } /* not the spent look (outline heart) while it works */
.pill.busy, .btn.busy { position: relative; -webkit-text-fill-color: transparent; }
.pill.busy::after, .btn.busy::after { content: ""; position: absolute; inset: 0; margin: auto; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* The ↻ (partials/refresh-profile.hbs) is its own spinner: the arrow turns while X is asked, no ring over it. */
.refresh .btn.busy::after { display: none; }
.refresh .btn.busy svg { animation: spin .7s linear infinite; }
/* A card the ↻ just redrew (post-actions.js `refresh`): SUCCESS, so a glow, not a shake (a shake reads as "no", a
   wrong password; Curtis 2026-11-16): its edge lights in the accent and the light spreads out and fades, with a 1% pop
   that settles. Reduced motion: the glow alone. */
.refreshed { animation: card-refreshed .9s ease-out; }
@keyframes card-refreshed {
  0% { transform: none; box-shadow: var(--shadow), 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
  25% { transform: scale(1.01); box-shadow: var(--shadow), 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent); }
  100% { transform: none; box-shadow: var(--shadow), 0 0 0 12px color-mix(in srgb, var(--accent) 0%, transparent); }
}
@keyframes card-refreshed-still {
  0%, 30% { box-shadow: var(--shadow), 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent); }
  100% { box-shadow: var(--shadow), 0 0 0 3px color-mix(in srgb, var(--accent) 0%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
  .pill.busy, .btn.busy { -webkit-text-fill-color: currentColor; opacity: .6; }
  .btn.counting::after { animation: none; border-right-color: currentColor; opacity: .5; } /* the count still moves */
  .pill.busy::after, .btn.busy::after { display: none; }
  .refresh .btn.busy svg { animation: none; }
  .refreshed { animation-name: card-refreshed-still; }
}
a.pill { display: inline-block; } /* a link to X's consent screen, styled as the button it sits beside */
a.pill:hover { text-decoration: none; }

/* ============================================================
   Leaderboard: toolbar, table, pager
============================================================ */
.page-head { margin-bottom: 22px; }
.page-head .note { max-width: 760px; margin: 0; }
/* The numbers under a page title: bold figure, muted label, dots between (never inside a phrase). */

/* A list's controls (Your people, the Inbox: partials/list-search.hbs): one row, every control the same height so the
   search, the dropdowns and the reverse arrow line up. */
.toolbar { --control-h: var(--seg-h); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }
.toolbar select { height: var(--control-h); padding: 0 14px; font-size: 14px; }
.toolbar .btn.icon { width: var(--control-h); height: var(--control-h); justify-content: center; padding: 0; }
.search { position: relative; flex: 1 1 260px; margin: 0; }
.search input { width: 100%; height: var(--control-h, 38px); font: inherit; font-size: 14px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--btn-r); padding: 0 14px 0 38px; transition: border-color .15s, box-shadow .15s; }
.search input::placeholder { color: var(--faint); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search-icon { position: absolute; left: 13px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); fill: var(--faint); pointer-events: none; }
.toolbar-count { margin-left: auto; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* The form only carries the GET; its pieces lay out as the toolbar's own items (display: contents), so a count or a
   layout toggle beside it lines up with them. ONE LINE ON A PHONE too (2026-11-18, Curtis: "make search and sort one
   line everywhere we can on mobile"; the search took its own line, the dropdowns the next): the search takes what the
   dropdown (its own width, at most about half) and the arrow leave. "1–50 of 853" hides there (the pager says where you
   are); the Inbox's Like N / Mark N done, when shown, take the next line. */
.search-sort { display: contents; }
/* The Inbox's Mark all done sits in the toolbar, the controls' height, never wrapping inside itself. */
.toolbar .all-done .btn { height: var(--control-h); white-space: nowrap; }
@media (max-width: 720px) {
  .search-sort .search { flex: 1 1 0; min-width: 120px; }
  .toolbar select { flex: 0 1 auto; min-width: 0; max-width: 48%; padding: 0 10px; }
  .toolbar-count { display: none; }
}
/* Above a list: its tabs (or title) on the left, how many it shows on the right. */
.list-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; }

/* The Inbox's layout (views/inbox.hbs): on a wide screen one centred block, the title across the top, then the rail
   beside the list (a reading page's column: 840 = main's 880 less its padding), the rail's first row level with the
   tabs (both boxes, so a highlighted row never sits off; Curtis 2026-11-16: "maybe move inbox above everyone"). The
   rail is always there, so an empty Inbox keeps its shape. In a column under 1000px, no rail: the one column. 320 wide
   (it was 240 until 2026-11-17, Curtis: "expand the width a little", for the rows' columns and presses). The list
   takes the rest of the wide page (--page-max), as every wide page does (2026-11-18, Curtis: "can we fill the width
   here might as well"; it was one 1188px block, short of the header's right edge on a big screen). */
.inbox-page { margin: 0; display: grid; grid-template-columns: 320px minmax(0, 1fr); column-gap: 28px; }
.inbox-page > .page-head { grid-column: 1 / -1; }
.rail-main { grid-column: 2; min-width: 0; }
.rail { grid-column: 1; align-self: start; position: sticky; top: calc(var(--top-h) + 24px); max-height: calc(100vh - var(--top-h) - 48px); overflow-y: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.rail a { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 10px; color: var(--muted); font-size: 14px; font-weight: 500; }
.rail a:hover { background: var(--hover); color: var(--ink); text-decoration: none; }
/* The one in view: the sidebar's own "you are here" (the card surface with a hairline): --hover all but vanished on the
   page's background in light (Curtis 2026-11-16: "this should have a little background on light mode"). */
.rail a.on { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-weight: 600; }
.rail .avatar, .rail-all { width: 28px; height: 28px; font-size: 12px; }
/* Everyone: the sidebar's People icon (it was 👥; Curtis 2026-11-16: "I don't like this little emoji"), in an avatar's
   room so the names line up. */
.rail-all { flex: none; display: inline-grid; place-items: center; color: var(--muted); }
.rail-all .ico { width: 18px; height: 18px; }
.rail a.on .rail-all { color: var(--ink); }
.rail-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail a[hidden], .rail-row[hidden] { display: none; }
/* A person's row (and Everyone's): the link that picks them (avatar, name), and THE COLUMNS at its right end, over the
   link's padding so the whole row lights: ↩ replies owed, ♥ likes owed (the button that likes them), ✓ done with them.
   Fixed columns, so every row's numbers line up; one at 0 keeps its place, blank (.is-zero). */
.rail-row { position: relative; }
.rail-row > a { padding-right: 132px; }
/* The columns sit over the link, so a click anywhere but on a button opens the row, the ↩ figure included (2026-11-17,
   Curtis: "the reply ... should be clickable just like the card nav"): the figures let clicks through, the buttons don't. */
.rail-acts { position: absolute; top: 0; bottom: 0; right: 6px; display: grid; grid-template-columns: 42px 52px 30px; gap: 2px; align-items: center; pointer-events: none; }
.rail-acts button { pointer-events: auto; }
.rail-acts form { display: contents; }
.is-zero { visibility: hidden; }
/* Each column's icon at the column's left edge, its number after it, so the ↩s and the ♥s stand in straight lines
   whatever the numbers' widths (2026-11-17, Curtis: "vertically align the heart and reply icons"). */
.rail-reply { grid-column: 1; justify-self: start; display: inline-flex; align-items: center; gap: 3px; padding-left: 4px; font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; }
.rail-reply b, .rail-like b { font-weight: 500; }
.rail-like { grid-column: 2; justify-self: stretch; display: inline-flex; align-items: center; justify-content: flex-start; gap: 4px; height: 30px; padding: 0 8px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rail-like.btn { font-size: 13px; }
span.rail-like { border: 1px solid transparent; } /* a total's ♥ in line with the buttons' (theirs sits inside a 1px border) */
.rail-like .ico { width: 14px; height: 14px; fill: var(--accent); }
.rail-acts .btn.rail-like:hover { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.rail-like:disabled { cursor: default; }
.rail-like:disabled .ico { fill: none; stroke: currentColor; stroke-width: 2; }
.rail-done { grid-column: 3; }
.rail-acts .btn.icon { width: 30px; height: 30px; padding: 0; justify-content: center; color: var(--muted); }
.rail-acts .btn.icon:hover { color: var(--done); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.rail-done { font-size: 15px; font-weight: 700; }
.rail-row.on .rail-reply { color: var(--muted); }
.rail-acts .rail-like.armed { color: var(--ink); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }

/* THE CLICK-AGAIN CONFIRM (public/js/confirm.js): an armed [data-confirm] button says it beside itself, to its LEFT
   (over its row's own text, so nothing scrolling clips it), in THE tooltip's ink, until the second click, a click
   elsewhere or a few seconds; it takes the tooltip's place (the same ::after). */
[data-confirm].armed::after, [data-tip][data-confirm].armed:hover::after { content: attr(data-confirm); position: absolute; top: 50%; bottom: auto; right: calc(100% + 6px); left: auto; z-index: 30; transform: translateY(-50%); padding: 4px 9px; font-size: 12px; font-weight: 600; line-height: 1.35; white-space: nowrap; color: var(--bg); background: var(--ink); border-radius: 7px; box-shadow: var(--shadow); pointer-events: none; }
[data-confirm] { position: relative; }
/* People / Posts (the rail lists who, or which post: inbox.railOfPosts): THE TABS above the rail, level with the
   list's (2026-11-18, Curtis: "can we add the underline to people and posts as well"; for an hour a text toggle with a
   dot, kept apart from the list's tabs). Only the rail rows' own look is undone here (.rail a: padding, background,
   corner, the flex gap). */
.rail .rail-modes { display: flex; margin: 0 0 6px; } /* at the rail's left edge, as the list's tabs at theirs */
.rail .rail-modes a { gap: 0; padding: 0; border-radius: 0; font-weight: 500; }
.rail .rail-modes a:hover, .rail .rail-modes a.on { background: none; box-shadow: none; font-weight: 500; }
/* A post in the rail: two lines of what it's about, beside whose it is; the face and its columns centred on the row,
   as a person's (2026-11-18, Curtis: "vertical align these when post is multiline"; they sat level with the first
   line). */
.rail-post { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 13px; line-height: 1.35; }

/* The Inbox's title with what's owed beside it ("♥ 88 to like · ↩ 74 to reply": together the red count). */
.inbox-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.inbox-title h1 { margin: 0; }
.owed-split { display: inline-flex; gap: 14px; margin: 0; font-size: 14px; color: var(--muted); }
.owed-split b { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.owed-like, .owed-reply { display: inline-flex; align-items: center; gap: 4px; }
.owed-like .ico { width: 14px; height: 14px; fill: var(--accent); }
.owed-reply .ico, .rail-reply .ico { width: 14px; height: 14px; }

/* Bulk like in the toolbar: the controls' height, the heart in the like colour; spent: plain and quiet. */
.like-all { display: contents; }
.like-all form { margin: 0; }
.toolbar .like-all-btn { height: var(--control-h); white-space: nowrap; font-weight: 600; }
.like-all-btn .ico { width: 15px; height: 15px; fill: var(--accent); }
.like-all-btn:disabled { color: var(--muted); cursor: default; }
.like-all-btn:disabled .ico { fill: none; stroke: currentColor; stroke-width: 2; }
.modal-actions .pill .ico { width: 14px; height: 14px; fill: currentColor; vertical-align: -2px; }

/* A long card's fold (inbox.capCard) with "Only this post" beside it: the card alone. */
.drill { display: inline-flex; align-items: center; gap: 2px; padding: 4px 0; font-size: 13px; font-weight: 600; }
.drill .ico { width: 14px; height: 14px; }
/* Measured on the page's column, not the window (.shell-main is the container): the sidebar beside it takes its share.
   1000 keeps the rail on a 1280 laptop with the sidebar open (a 730px list). */
@container (max-width: 1000px) {
  .inbox-page { display: block; max-width: 840px; }
  .rail { display: none; }
}
/* A row's text (views/inbox.hbs): the name line, and on a phone the time beside it and their newest owed reply under it. */
.rail-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rail-head { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.rail-time, .rail-preview, .inbox-back, .rail-empty { display: none; }

/* THE PHONE INBOX: two screens (2026-11-17, Curtis: "perhaps it is two screens in the inbox ... there is a main screen
   that shows the people and or posts and you drill into each one"). A row's presses sit in the same place on every row,
   whatever it owes: controls you use by the dozen must never move. `.listing` (the plain Waiting list) is THE RAIL, full width, as cards: the cards
   themselves hide. `.drilled` (one person or post) is their cards, with "← Inbox"; the rail hides. Done / All have no
   rail (nothing owed), so they keep the cards. */
@media (max-width: 720px) {
  .inbox-page.listing { display: flex; flex-direction: column; }
  .inbox-page.listing > .page-head { order: 1; }
  .inbox-page.listing .rail-main { display: contents; }
  .inbox-page.listing .list-head { order: 2; margin-bottom: 10px; }
  .inbox-page.listing .live-pill-row { order: 3; }
  /* align-self: the desktop rail's `start` would shrink it to its widest row here (a flex column): short replies drew
     a list stopping two thirds across. */
  .inbox-page.listing .rail { order: 4; align-self: stretch; display: grid; position: static; max-height: none; overflow: visible; gap: 0; }
  .inbox-page.listing .toolbar, .inbox-page.listing .threads, .inbox-page.listing [data-list-pager], .inbox-page.listing [data-list-empty] { display: none; }
  /* Everyone's totals are the head's breakdown already. */
  .inbox-page.listing .rail > .rail-row:not([data-rail-key]) { display: none; }
  .inbox-page.listing .rail-empty { display: block; }
  /* A row is a card of two lines (2026-11-17, Curtis: the foot row "what is his reply for on mobile? we don't really need
     it"): the name and when, their newest owed reply under it; ♥ and ✓ at its right, centred, the same place on every row.
     No ↩ N here (the head says how many replies are owed; the desktop rail keeps its column). The whole card opens it. */
  /* Edge to edge, a full-width line between rows, no rounded box (the same day, Curtis: "on a phone, we don't want
     rounted borders like this -- it takes up width, so full width line separation"): the page's 14px gutter is bled. */
  .inbox-page.listing .rail-row[data-rail-key] { margin: 0 -14px; border-top: 1px solid var(--line); }
  .inbox-page.listing .rail > .rail-row:last-of-type { border-bottom: 1px solid var(--line); }
  .inbox-page.listing .rail-row > a { align-items: flex-start; gap: 12px; padding: 12px 118px 12px 14px; border-radius: 0; color: var(--ink); font-weight: 400; }
  .inbox-page.listing .rail .avatar { width: 40px; height: 40px; font-size: 15px; }
  .inbox-page.listing .rail-head { gap: 6px; }
  .inbox-page.listing .rail-name { flex: 0 1 auto; font-size: 15px; font-weight: 650; }
  .inbox-page.listing .rail-post { font-weight: 500; font-size: 14.5px; }
  .inbox-page.listing .rail-time { display: inline; flex: none; font-size: 13px; color: var(--faint); }
  .inbox-page.listing .rail-time::before { content: "· "; }
  .inbox-page.listing .rail-preview { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 1.4; color: var(--ink); }
  .inbox-page.listing .rail-acts { top: 0; bottom: 0; left: auto; right: 12px; display: flex; align-items: center; gap: 8px; }
  .inbox-page.listing .rail-reply { display: none; }
  .inbox-page.listing .rail-like { height: 36px; padding: 0 12px; font-size: 14px; }
  .inbox-page.listing .rail-acts .btn { box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); }
  .inbox-page.listing .rail-acts .btn.icon { width: 36px; height: 36px; }

  /* Your own post in the Posts list: every row would wear your face (Curtis, the same day, circling them). Someone
     else's post (a quote of yours) keeps its face, which says whose it is. ("You:" is gone at every width, the same
     evening: "remove the 'you' here"; on a desktop the face says it.) */
  .inbox-page.listing .rail-row.own .avatar { display: none; }
  /* A drill-in is its cards alone: they and each reply carry their own Like and Done, so the toolbar's would be twice. */
  .inbox-page.drilled .rail, .inbox-page.drilled .inbox-title, .inbox-page.drilled .list-head, .inbox-page.drilled .toolbar { display: none; }
  .inbox-page.drilled .inbox-back { display: flex; align-items: center; gap: 14px; height: var(--btn-h); margin: 0; font-size: 16px; }
  .inbox-page.drilled .inbox-back a { font-weight: 600; color: var(--muted); }
  .inbox-page.drilled .inbox-back b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; color: var(--ink); }
  /* Their face beside their name, as every person is drawn (2026-11-17, Curtis: "put pfp up here for consistency"): the
     28px face a phone's posts wear. */
  .inbox-page.drilled .inbox-back-who { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
  .inbox-page.drilled .inbox-back-who .avatar { width: 28px; height: 28px; font-size: 11px; }
  /* What they answered, as context (X's "Replying to"): the replies are what you came for, not the post they hang on.
     It folds at 2 lines, not 6 (THE fold, public/js/more.js: its "Show more" opens it; a clamp of its own here once
     held it shut, 2026-11-17). Its pictures and quote are on X. */
  .inbox-page .seed .post-media, .inbox-page .seed .quote, .inbox-page .seed .post-foot { display: none; }
  .inbox-page .seed .text.folded { -webkit-line-clamp: 2; }
  /* THE CARD HEAD on a phone: edge to edge like the conversation under it, a tinted strip with no corners or side
     lines, pinned to the window's top (the header scrolls away). */
  .shell-main main .thread .card-done { top: 8px; margin: 0 -14px; padding: 4px 18px 4px 6px; border-radius: 0; box-shadow: 0 -8px 0 0 var(--bg); } /* the face at the gutter, the presses' text at THE right edge */
  .shell-main main .thread .post-corner .msg-done-btn { padding: 3px 8px; } /* THE right edge (a phone's .reply-to pads 6) */
  /* THE PHONE CONVERSATION, signed in (.shell-main: never the front page's drawn tour, which is the desktop scaled down).
     EDGE TO EDGE (the same day, Curtis: "on a phone, we don't want rounted borders like this -- it takes up width, so full
     width line separation ... remove the rounded borders completely, make full width"): no rounded box, shadow or
     bubble; a full-width line above each conversation, the page's 14px gutter bled. What's flat at every width (no
     bubble, yours at the left, the foot, Open on X by the time, the dashed line) is THE MINIMAL CONVERSATION further
     down; this block is only what a phone does differently, its rules one `main` stronger so that block can't undo
     them (it comes later in the file). */
  .shell-main main .thread { margin: 0 -14px; padding: 20px 14px; }
  .shell-main .thread .post-media { max-width: none; }
  /* THE PHONE MESSAGE ("I don't really like the [name] [handle] [copy] [time] [connection] thing at all ... a first
     principles look at how everything is displayed on mobile, it needs to fill the card properly"). What a reader needs,
     in order: who, when, what they said, what to do. ONE header line that never wraps: a 28px face, the name (it gives
     way only when it must), the time and Open on X at the right ("open on x next to time stamp"); no @handle or copy
     button; the connection only when it's a thing to DO ("Follow back": they follow you, you don't). Yours reads the
     same way, at the left. The message's column becomes its grid (display: contents), so the header shares a row with
     the face. THE BODY SITS IN THE NAME'S COLUMN, X's phone layout (2026-11-17, Curtis: "the mobile version doesn't have
     the nice vertical connectors that I like on desktop, lets fix"; a REVERSAL of the same day's full-width body, "no
     avatar column, the text and pictures take the whole width"): the text, pictures, likes and presses start under the
     name, so THE THREAD LINE runs down the 28px face's column without crossing a word. 36px of width is its price. */
  .shell-main main .thread :is(.msg, .msg.me) { grid-template-columns: 28px minmax(0, 1fr); column-gap: 8px; row-gap: 0; } /* .msg.me: the desktop's 40px column for yours out-weighed it, "You" sat 12px right of every name */
  .shell-main .thread .msg-col { display: contents; }
  .shell-main .thread .msg-col > * { grid-column: 2; justify-self: start; }
  .shell-main main .thread .msg.joins-next::after { left: 13px; top: 32px; } /* THE THREAD LINE: under the 28px face (a header-less message's from its top, as on a desktop) */
  .shell-main main .thread .fold-row { padding-left: 36px; } /* THE FOLD in the text column: the 28px face + 8px */  .shell-main .thread .msg-av { grid-row: 1; grid-column: 1; padding-top: 0; align-self: center; }
  .shell-main .thread .msg-av .avatar { width: 28px; height: 28px; font-size: 11px; }
  /* The same header for the seed (partials/topic-post.hbs: what they answered), its body the post's grid in the same way. */
  .shell-main .thread .seed-post { grid-template-columns: 28px minmax(0, 1fr); column-gap: 8px; row-gap: 0; }
  .shell-main .thread .seed-post > :is(.who-av, .avatar) { grid-row: 1; grid-column: 1; align-self: center; }
  .shell-main .thread .seed-post .avatar { width: 28px; height: 28px; font-size: 11px; }
  .shell-main .thread .seed-post:not(:last-child)::before { display: none; } /* the line down to the next seed post: no avatar column now */
  .shell-main .thread .seed-body { display: contents; }
  .shell-main .thread .seed-body > * { grid-column: 2; justify-self: start; } /* under the name, as a reply's body; "Show more" at the left, not stretched */
  .shell-main .thread .msg-col > .msg-meta, .shell-main .thread .seed-body > .post-meta { grid-row: 1; grid-column: 2; justify-self: stretch; display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; min-width: 0; margin: 0 0 5px; font-size: 13.5px; }
  :is(.shell-main .thread .msg-meta, .shell-main .thread .post-meta) .post-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
  :is(.shell-main .thread .msg-meta, .shell-main .thread .post-meta) .post-name ~ .handle-wrap { display: none; }
  :is(.shell-main .thread .msg-meta, .shell-main .thread .post-meta) .post-time { flex: none; }
  :is(.shell-main .thread .msg-meta, .shell-main .thread .post-meta) .msg-follow { order: 5; flex: none; margin: 0; }
  .shell-main .thread .msg-follow .ftag, .shell-main .thread .msg-follow .follow-btn.on, .shell-main .thread .msg-follow:not([data-follows-you]) .follow-btn { display: none; }
  /* The foot's presses a thumb's size. */
  /* As tall as the ♥ pill beside it (2026-11-17, Curtis: "dont like the height of the reply button on mobile when
     selected": its 8px of thumb padding drew a box taller than the pill once tinted). */
  .shell-main .thread .msg .reply-to { padding: 3px 10px; white-space: nowrap; } /* measured: 28px, the pill's */
}

/* THE person card: the leaderboard's (one per person) and the Follows page's (one per follow or unfollow). The head says
   who and the figure it's about (the back-and-forth count; what happened); the facts below (.facts: little uppercase
   headers) carry the rest. */
.pcards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
/* Only a card that OPENS reacts to the pointer (.opens, below): one that doesn't stays still, so the two read apart
   (Curtis 2026-11-16: "hard to tell as the others aren't disabled looking"; every card used to darken its edge). */
.pcard { display: grid; gap: 12px; padding: 14px 16px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: border-color .15s, background-color .15s, box-shadow .15s; }
.pcard-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pcard-head .who-link { flex: 1; }
/* ↻ (re-read the profile: views/partials/refresh-profile.hbs), the card's first column, quiet until hovered. */
.pcard-refresh { display: flex; align-items: center; }
.pcard-refresh .btn.icon { padding: 4px; color: var(--faint); }
.pcard-refresh .btn.icon:hover { color: var(--ink); }
.pcard-refresh .ico { width: 14px; height: 14px; }
.pcard-score { display: grid; justify-items: end; line-height: 1.1; white-space: nowrap; }
.pcard-score b { font-size: 24px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pcard-score span { font-size: 10.5px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.facts.pcard-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.pcard-facts dt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Both directions in one fact (Replies, Likes): yours ↔ theirs, each number with its tooltip. */
.pcard-facts dd.pair { white-space: nowrap; }
.pcard-facts dd.pair [data-tip] { cursor: default; }
.pair-sep { margin: 0 6px; color: var(--faint); }
/* A card's actions: THE EXIT (their profile on X) and THE Follow button (the Following extra), the
   card's foot at the right; in rows, its last column. */
.pcard-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.pcard-actions:empty { display: none; }
/* A card that opens a page says so: the › at its end, and on hover the card lights in the accent (its edge, a faint tint,
   the ›) and lifts (the shadow). Nothing moves (no transform), so a pointer passing over a list doesn't shake it. */
.pcard-go { display: inline-flex; color: var(--faint); transition: color .15s; }
/* A card that doesn't open (a Follows card for someone with no People page) keeps the ›'s room, so every card's
   buttons and facts line up down the page. */
.pcard-go.none { visibility: hidden; }
.pcard-go .ico { width: 18px; height: 18px; fill: currentColor; }
/* Hovered, it says "this opens": the accent's edge, a faint accent tint, the shadow, and the › in the accent. */
.pcard.opens:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, var(--surface)); box-shadow: 0 6px 18px rgba(15, 20, 25, .08), var(--shadow); }
.pcard.opens:hover .pcard-go { color: var(--accent); }
.pcard.opens .pcard-go { color: var(--muted); }
/* YOUR CIRCLE (views/partials/circle.hbs): a square board, each seat placed by /circle.css (generated from
   services/circle.js, percentages, so it scales); the rings' faint lines are that file's ::before background. Each seat
   is THE avatar at the seat's size, its initial scaled to the board (cqi); the inner ring ringed in the accent, you in
   ink. A seat that opens grows a little on hover (reduced motion: it doesn't). */
.circle-board { position: relative; width: min(100%, 600px); aspect-ratio: 1; container-type: inline-size; }
.circle-board::before { content: ""; position: absolute; inset: 0; border-radius: 50%; }
/* Seats overlap (services/circle.js RINGS): each face has a cut-out edge in the page's colour so two overlapping faces
   still read as two, and the closer rings sit on top (you, then the inner ring, ...). */
.circle-board .circle-dot { position: absolute; display: block; border-radius: 50%; }
.circle-dot .avatar { width: 100%; height: 100%; font-size: 3.5cqi; box-shadow: 0 0 0 3px var(--bg); }
.circle-dot.ring-3 { z-index: 1; }
.circle-dot.ring-2 { z-index: 2; }
.circle-dot.ring-1 { z-index: 3; }
.circle-dot.is-me { z-index: 4; }
.circle-dot.ring-1 .avatar { font-size: 5cqi; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent), 0 0 0 7px var(--bg); }
.circle-dot.is-me .avatar { font-size: 7cqi; box-shadow: 0 0 0 4px var(--bg), 0 0 0 7px var(--ink), 0 0 0 10px var(--bg); }
a.circle-dot .avatar { transition: transform .18s cubic-bezier(.3, 1.6, .5, 1); }
a.circle-dot:hover { z-index: 5; }
a.circle-dot:hover .avatar { transform: scale(1.15); }
a.circle-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  a.circle-dot .avatar { transition: none; }
  a.circle-dot:hover .avatar { transform: none; }
}
/* Your circle's page: the board, and beside it sharing it (one column when the page's column is narrow). */
.circle-page { display: grid; grid-template-columns: minmax(0, 600px) minmax(260px, 340px); gap: 40px; align-items: start; }
@container (max-width: 960px) { .circle-page { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) { .circle-page { grid-template-columns: minmax(0, 1fr); } }
.circle-share { display: grid; gap: 14px; margin: 0; padding: 18px 20px; }
.circle-share-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.circle-share h2 { margin: 0 0 4px; font-size: 16px; }
.circle-share .fine { margin: 0; }
.circle-link { display: flex; align-items: center; gap: 6px; min-width: 0; margin: 0; font-size: 14px; }
.circle-link a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.circle-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
/* A text button that copies (public/js/copy.js adds .copied for a moment): its label becomes "Copied". */
.copy-text .when-copied, .copy-text.copied .when-idle { display: none; }
.copy-text.copied .when-copied { display: inline; }
.copy-text.copied { color: var(--accent); border-color: var(--accent); }
/* A public circle (views/circle-public.hbs): one centred column, the board between who and "Make yours". */
.circle-public { display: grid; justify-items: center; gap: 28px; max-width: 640px; margin: 0 auto; text-align: center; }
.circle-public-head h1 { margin: 0 0 8px; }
.circle-public-head .fine { margin: 0; }
.circle-public-foot { margin: 0; }
/* Your people's title, with the way to your circle right after it. */
.page-head.with-action { display: flex; align-items: center; gap: 16px; }
.page-head.with-action h1 { margin: 0; }
/* "Your circle": the accent's soft tint with your three closest faces stacked in it; solid accent on hover. */
.circle-btn { gap: 10px; padding-left: 8px; font-size: 14px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-color: transparent; }
.circle-btn:hover { color: var(--accent-ink); background: var(--accent); }
.circle-btn .faces { display: inline-flex; }
.circle-btn .faces .avatar { width: 24px; height: 24px; font-size: 10px; box-shadow: 0 0 0 2px var(--accent-soft); transition: box-shadow .15s; }
.circle-btn .faces .avatar + .avatar { margin-left: -8px; }
.circle-btn:hover .faces .avatar { box-shadow: 0 0 0 2px var(--accent); }

/* The layout toggle (partials/view-toggle.hbs): two icon buttons; the one in use in the accent colour. Hidden until the
   column has room for rows (the container query below shows it). */
.view-toggle { display: none; gap: 2px; margin: 0; }
/* Rows (Account.boardView): THE LIKES ROW's look (2026-11-18, Curtis: "I like the new liked tab its clean ... we should
   match this style on the people and follows tabs, nice and clean simple rows"; they were boxed cards in a stack, each
   fact under an uppercase label): no box, a full-width line between rows, a light hover, and each fact said as the
   header says it, "741 followers", "12 ↔ 9 replies" (the label after the number, lowercase; where you stand and when
   need none). The back and forth and what happened sit beside the name at the text's size. Where the page's COLUMN
   has room (a container query on .shell-main: the sidebar takes its share) one line, the facts in columns that line
   up down the page like a table; narrower, two lines (who, then the facts); a phone has its own (below). The layout
   toggle shows only where one line fits (Curtis 2026-11-16: "hide these"). The front page's drawn rows (.tour-page)
   share the look and keep their own columns. */
@media (min-width: 721px) {
  .pcards.rows { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--line); }
  .pcards.rows .pcard { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "head acts" "facts acts"; align-items: center; gap: 2px 20px; min-height: 52px; padding: 8px 4px 8px 12px; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; }
  .pcards.rows .pcard:hover, .pcards.rows .pcard.opens:hover { background: var(--hover); border-color: var(--line); box-shadow: none; }
  .pcards.rows .fcard.fresh, .pcards.rows .fcard.fresh:hover { box-shadow: inset 3px 0 0 var(--accent); }
  .pcards.rows .pcard-head { grid-area: head; }
  .pcards.rows .pcard-actions { grid-area: acts; }
  .pcards.rows .avatar { width: 32px; height: 32px; font-size: 13px; }
  .pcards.rows .pcard-score, .pcards.rows .pcard-score.fcard-what { display: flex; align-items: baseline; gap: 6px; line-height: 1.3; }
  .pcards.rows .pcard-score b { font-size: 14px; font-weight: 500; letter-spacing: 0; }
  .pcards.rows .pcard-score span { font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); }
  .pcards.rows .fcard-what time { margin: 0; font-size: 14px; }
  .pcards.rows .names .handle-wrap { font-size: 14px; }
  .pcards.rows .pcard-facts { grid-area: facts; display: flex; flex-wrap: wrap; gap: 2px 16px; padding: 0 0 0 66px; border: 0; }
  .pcards.rows .pcard-facts > div { display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: baseline; gap: 5px; }
  .pcards.rows .pcard-facts dt { font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: lowercase; color: var(--muted); overflow: visible; }
  .pcards.rows .pcard-facts dd { margin: 0; font-size: 14px; }
  .pcards.rows .pcard-facts :is(.f-conn, .f-last) dt { display: none; }
  .pcards.rows .pcard-facts .f-last dd { color: var(--muted); }
}
@container (min-width: 1060px) {
  .view-toggle { display: inline-flex; }
  .pcards.rows .pcard { grid-template-columns: minmax(260px, 420px) minmax(0, 1fr) auto; grid-template-areas: "head facts acts"; gap: 0 24px; }
  .pcards.rows .pcard-facts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(max-content, 1fr); gap: 16px; padding: 0; }
}


/* ONE rounded clip for the whole table (overflow: clip, which, unlike hidden, makes no scroll container, so the sticky
   header still sticks to the window; checked in Edge). It replaced rounding the header's and the last row's corner
   cells: once the header stuck, rows slid under it and showed square through its rounded corners (Curtis
   2026-11-16). Stuck mid-table, the header is square, the clip's straight sides. Anything that must pop OUT of a
   table (a [data-tip] tooltip) would be clipped: none does. */
.board { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border-radius: var(--radius); overflow: clip; }
.board th, .board td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.board tbody tr:last-child td { border-bottom: 0; }
/* The header is a tinted band in full ink, so it reads as the key to the columns (it was faint small caps, easy to
   miss). Opaque: it sticks under the top bar. */
.board th { position: sticky; top: var(--top-h); z-index: 5; background: var(--hover); border-bottom-color: var(--line-strong); font-size: 13px; font-weight: 600; line-height: 1.2; vertical-align: middle; color: var(--ink); }
.board th .ico { width: 13px; height: 13px; margin-right: 4px; vertical-align: -2px; fill: var(--accent); }
.board .n { text-align: right; font-variant-numeric: tabular-nums; }
.board .strong { font-weight: 650; }
.board .when { color: var(--muted); font-variant-numeric: tabular-nums; }
.board tbody td { transition: background .12s; }
.board tbody tr:hover td { background: var(--hover); }
/* The text column takes whatever the number columns leave; max-width: 0 lets a table cell shrink so long text
   ellipsizes instead of widening the table. */
.board td.about { width: 100%; max-width: 0; }

/* "Your move": they had the last word; the one count worth acting on, so the one filled accent on the page. */

/* A card's who: picture and name open their page; the @handle under the name opens them on X (partials/handle.hbs). */
.who-link { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--ink); }
.who-av { flex: none; display: inline-flex; }
.who-av .avatar { transition: box-shadow .15s; }
.who-av:hover .avatar { box-shadow: 0 0 0 3px var(--accent-soft); }
.names { display: grid; justify-items: start; min-width: 0; line-height: 1.25; }
.names .name { max-width: 100%; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .15s; }
.names .name:hover { color: var(--accent); text-decoration: none; }
.names .handle { display: flex; max-width: 100%; min-width: 0; }
.names .handle-wrap { font-size: 13px; }

.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; margin: 22px 0 0; }
.pg { min-width: 36px; padding: 6px 10px; text-align: center; font-size: 14px; color: var(--muted); border-radius: 10px; font-variant-numeric: tabular-nums; transition: background .15s, color .15s; }
a.pg:hover { background: var(--surface); color: var(--ink); text-decoration: none; }
.pg.on { background: var(--ink); color: var(--bg); font-weight: 600; }
.pg.off { color: var(--faint); opacity: .5; }
.pg.gap { color: var(--faint); }
.empty { padding: 48px 0; text-align: center; color: var(--muted); }

/* ============================================================
   Avatars — the picture sits over its own initial, so a dead image link (public/js/images.js removes it)
   still leaves something to recognise.
============================================================ */
.avatar { position: relative; flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: var(--them); color: var(--muted); font-weight: 600; font-size: 14px; }
.avatar::before { content: attr(data-initial); }
.avatar[data-hue] { color: var(--on-hue); font-weight: 700; }
.avatar[data-hue="1"] { background: var(--hue-1); } .avatar[data-hue="2"] { background: var(--hue-2); }
.avatar[data-hue="3"] { background: var(--hue-3); } .avatar[data-hue="4"] { background: var(--hue-4); }
.avatar[data-hue="5"] { background: var(--hue-5); } .avatar[data-hue="6"] { background: var(--hue-6); }
.avatar[data-hue="7"] { background: var(--hue-7); } .avatar[data-hue="8"] { background: var(--hue-8); }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 84px; height: 84px; font-size: 32px; box-shadow: 0 0 0 4px var(--surface), var(--shadow); }
.avatar-sm { width: 20px; height: 20px; font-size: 10px; }

/* ============================================================
   Person page: profile, conversation table
============================================================ */
/* Where a page sits, above its title (views/partials/crumbs.hbs): a bordered pill, each step a link that lights on
   hover, the page itself in ink at the end. */
/* Its row (views/layouts/main.hbs): aligned with the wide pages, so it sits at the same place on every page. */
.crumbs-row { width: 100%; max-width: var(--page-max); margin: 0 auto; padding: 24px var(--page-pad) 0; }
main.under-crumbs { padding-top: 22px; }
/* Plain, no bar (2026-11-18, Curtis: "remove the border look of the breadcrumbs"; it was a bordered, shadowed pill):
   the steps alone, each lighting on hover (THE HOVER RULE), the first's padding given back so its words sit at the
   page's left edge. */
.crumbs { display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 2px; max-width: calc(100% + 12px); margin: 0 0 0 -12px; padding: 0; font-size: 13px; }
.crumbs a, .crumbs .here { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 7px; white-space: nowrap; }
.crumbs a { color: var(--muted); transition: background .15s, color .15s; }
.crumbs a:hover { color: var(--ink); background: var(--hover); text-decoration: none; }
.crumbs .ico { width: 15px; height: 15px; }
.crumbs .here { flex: 0 1 auto; min-width: 0; max-width: 340px; color: var(--ink); font-weight: 600; }
.crumbs .here-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.crumbs .avatar { width: 20px; height: 20px; font-size: 10px; }
.crumb-sep { flex: none; display: inline-flex; }
.crumb-sep .ico { width: 14px; height: 14px; fill: var(--faint); }
.profile { display: flex; gap: 20px; align-items: flex-start; margin: 4px 0 18px; }
.profile-text { min-width: 0; }
.profile h1 { margin: 6px 0 2px; }
/* Their name with THE Follow button beside it (the Following extra). */
.profile-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.profile .sub { color: var(--muted); margin: 0; }
.profile .sub-part + .sub-part::before { content: " · "; }
.profile .bio { margin: 10px 0 0; max-width: 720px; white-space: pre-wrap; overflow-wrap: anywhere; }
/* A board table standing on its own: its own border and shadow. */
.board.framed { border: 1px solid var(--line); box-shadow: var(--shadow); }
.convos .about-link { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--ink); }
.convos .about-link:hover { text-decoration: none; }
.convos .about-link:hover .about-text { color: var(--accent); }
.convos .about-text { overflow: hidden; text-overflow: ellipsis; transition: color .15s; }
.convos .last-word { color: var(--muted); }

/* ============================================================
   Conversation: one card. The SEED is what the conversation is about, shown as real posts (the way X shows the
   post you opened: avatar, name, handle, time, full-contrast text); then the chat (you right, them left), each
   run of one person's messages headed by their avatar, name and time. Every time links to that post on X.
============================================================ */
.threads { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.thread { min-width: 0; display: grid; gap: 18px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.text { white-space: pre-wrap; overflow-wrap: anywhere; }
.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
/* A long post, folded (public/js/more.js adds .folded, and the button only when the post runs past it). */
.text.folded { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.more-btn { display: block; margin: 2px 0 0; padding: 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--accent); background: none; border: 0; cursor: pointer; }
.more-btn:hover { text-decoration: underline; }
/* A message's foot (partials/bubble.hbs): who liked it, and on someone else's "↩ Reply", which opens the composer
   right under the message (.reply-here; public/js/post-actions.js), the whole width of the chat column. */
.post-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.msg.me .post-foot { justify-content: flex-end; }
.reply-to { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; padding: 3px 8px; font-size: 13px; color: var(--muted); border-radius: var(--btn-r); }
.reply-to .ico { width: 15px; height: 15px; }
.reply-to:hover { color: var(--ink); background: var(--hover); text-decoration: none; }
.reply-to.on { color: var(--accent); background: var(--accent-soft); }
.msg-done { margin: 0; } /* a form only for its button, pinned at the message's top right (THE MINIMAL CONVERSATION) */
/* Done is green everywhere, a message's as a card's (2026-11-17, Curtis: "done should be green everywhere, make them all
   the same"). */
.msg-done-btn { border: 0; background: none; font: inherit; font-size: 13px; color: var(--done); cursor: pointer; }
.msg-done-btn:hover { color: var(--done); background: var(--done-soft); }
.reply-here { justify-self: stretch; margin-top: 8px; }
/* Its message takes the whole card width while the composer is open (post-actions.js toggles .replying), so the
   composer is full width however short the message ("ty"). */
.msg.replying { max-width: none; justify-self: stretch; grid-template-columns: 40px minmax(0, 1fr); }
.gone { color: var(--muted); font-style: italic; margin: 0; }
.media { display: inline-block; padding: 0 6px; border: 1px solid var(--line-strong); border-radius: 6px; font-size: 12px; color: var(--muted); }

.post-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 5px; line-height: 1.3; margin-bottom: 4px; }
.post-name { font-weight: 650; color: var(--ink); }
.post-dot { color: var(--muted); font-size: 14px; }
/* Someone's @handle (partials/handle.hbs), everywhere a person shows: a quiet link to them on X, then a copy button
   that says "Copied" for a moment (public/js/copy.js). */
.handle-wrap { display: inline-flex; align-items: center; gap: 1px; min-width: 0; white-space: nowrap; font-size: 14px; }
.handle-link { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.handle-link:hover { color: var(--accent); text-decoration: none; }
.copy-handle { position: relative; flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0; color: var(--faint); background: none; border: 0; border-radius: 6px; cursor: pointer; transition: color .15s, background .15s; }
.copy-handle .ico { width: 13px; height: 13px; fill: currentColor; }
.copy-handle:hover { color: var(--ink); background: var(--hover); }
.copy-handle.copied { color: var(--accent); }
.copy-handle.copied::after { content: "Copied"; position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); padding: 2px 7px; font-size: 11px; font-weight: 600; color: var(--bg); background: var(--ink); border-radius: 6px; white-space: nowrap; pointer-events: none; }
.post-time { color: var(--muted); font-size: 14px; }
a.post-time:hover { color: var(--accent); } /* only where the time is a link (a quote card's): a post's own time opens nothing */
/* A name or a picture that opens someone's People page (or their X profile): quiet until hovered. */
a.post-name { color: var(--ink); }
a.post-name:hover { color: var(--accent); text-decoration: none; }
.who-av { display: inline-flex; align-self: start; border-radius: 50%; }
.who-av .avatar { transition: box-shadow .15s; }
.who-av:hover .avatar { box-shadow: 0 0 0 3px var(--accent-soft); }
/* Why a card is here, above its chat (the Inbox: "Mentioned you in a reply to …"). */
.thread-note { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
/* Every post opens on X (a seed post, a bubble, in a conversation and the Inbox): a link layer over the whole post.
   Its text sits under that layer (a click anywhere opens X); its own links, pictures, forms and the ♥ sit above. */
.post-open { position: absolute; inset: 0; z-index: 0; border-radius: inherit; }
/* Inside any post (a seed post, a bubble, a quote card in either), what you can click sits above that post's layer:
   its links (a handle, a link in the text), buttons (copy, the ♥), forms, and a quote card (itself a post). */
:is(.seed-post, .bubble, .quote) :is(a:not(.post-open), button, form, .quote) { position: relative; z-index: 1; }
.msg { position: relative; } /* its .post-corner sits at its top right (partials/bubble.hbs) */
/* The same layer over a person card that opens their page (.pcard.opens: Your people, a Follows card for someone you
   talk with): its links, buttons, forms and tooltips above it. */
.pcard.opens { position: relative; }
.pcard.opens :is(a:not(.post-open), button, form, label, [data-tip]) { position: relative; z-index: 1; }

/* --seed-gap is both the space between seed posts and how far the reply line reaches into it. */
/* The seed sits plain in its card, no panel of its own (2026-11-17, Curtis: "I don't want the main tweet to be in its
   separate padding anymore with extra border on either phone or desktop"; a REVERSAL of 2026-11-15's tinted panel, "so
   it is clear"). */
.seed { --seed-gap: 22px; display: grid; gap: var(--seed-gap); }
.seed-post { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 12px; }
.seed-post .avatar { width: 40px; height: 40px; }
/* X's reply line: from under one post's avatar down to the next post's avatar. */
.seed-post:not(:last-child)::before { content: ""; position: absolute; left: 19px; top: 46px; bottom: calc(-1 * var(--seed-gap) + 6px); width: 2px; border-radius: 1px; background: var(--line-strong); }
.seed-body { min-width: 0; }
/* The page's own 15px, as the chat bubbles and a Likes card's line (Curtis 2026-11-16: "harmonize the font sizes"; it
   was 16px, a size of its own). */
.seed-post .text { line-height: 1.5; }

.chat { display: grid; gap: 4px; }
/* THE FOLD (partials/thread.hbs, people.foldChat): the chat drawn whole, in order; while the checkbox is off, what's
   folded hides, and the lines / who-and-when heads meant for one state show only in it. A quiet "Show N earlier
   replies" pill (its label); above the chat, a line under it; below it, beside "Only this post". */
.fold-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.fold-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.fold-row.fold-above { padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--line); } /* not .top: that's the header's */
.fold-row:not(.fold-above) { margin-top: 8px; }
.fold-label { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; font-size: 13px; font-weight: 600; color: var(--muted); background: var(--hover); border-radius: var(--btn-r); cursor: pointer; user-select: none; }
.fold-label:hover { color: var(--ink); }
.fold-toggle:focus-visible ~ .fold-row .fold-label { outline: 2px solid var(--accent); outline-offset: 2px; }
.fold-toggle ~ .fold-row .if-open, .fold-toggle:checked ~ .fold-row .if-closed { display: none; }
.fold-toggle:checked ~ .fold-row .if-open { display: inline; }
.fold-toggle:not(:checked) ~ .chat .folded,
.fold-toggle:not(:checked) ~ .chat .when-open,
.fold-toggle:not(:checked) ~ .chat .head-when-open > .msg-av > *,
.fold-toggle:not(:checked) ~ .chat .head-when-open > .msg-col > .msg-meta,
.fold-toggle:checked ~ .chat .when-shut,
.fold-toggle:checked ~ .chat .head-when-shut > .msg-av > *,
.fold-toggle:checked ~ .chat .head-when-shut > .msg-col > .msg-meta { display: none; }
/* Chat pictures are the seed's size (40px): one size for a person's picture in any post (Curtis 2026-11-15). */
.msg { display: grid; grid-template-columns: 40px minmax(0, auto); gap: 12px; max-width: 80%; justify-self: start; }
.msg.me { grid-template-columns: minmax(0, auto) 40px; justify-self: end; }
.msg.me .msg-av { order: 2; }
.msg.run-start:not(:first-child) { margin-top: 12px; }
/* Between exchanges (partials/bubble.hbs ruleBefore): a thin full-width line; the message under it keeps its own space. */
.msg-rule { width: 100%; margin: 14px 0 2px; border: 0; border-top: 1px solid var(--line); }
.msg-rule + .msg.run-start { margin-top: 0; }
/* The face level with the header block (name over handle), not the bubble (2026-11-17, Curtis: "make the handle fall below
   the name and I want the pfp to line up vertically with that -- like here its too crampled"). */
.msg-av { align-self: start; padding-top: 0; }
.msg-av .avatar { width: 40px; height: 40px; font-size: 14px; }
/* THE HEADER, X's way (a message's and the seed's; a quote card keeps its own): one line, "Name @handle · 6h", then
   where you stand, and Open on X alone at the right (2026-11-17, Curtis: "the time stamp and open on x are too close
   maybe move the timestamp to the same place as where we have it on twitter and actually put the name and handle inline
   once more to match"; for an hour that day the handle sat under the name). The handle gives way first. Ordered with
   flex (the markup stays one partial, post-who: name then handle); a phone's header (the phone block above) leaves
   the handle out. */
.msg-meta, .seed-body > .post-meta { display: flex; flex-wrap: nowrap; align-items: center; column-gap: 6px; min-width: 0; }
:is(.msg-meta, .seed-body > .post-meta) .post-name { order: 1; flex: none; }
:is(.msg-meta, .seed-body > .post-meta) .handle-wrap { order: 2; min-width: 0; overflow: hidden; white-space: nowrap; }
:is(.msg-meta, .seed-body > .post-meta) :is(.msg-dot, .post-dot) { order: 3; }
:is(.msg-meta, .seed-body > .post-meta) .post-time { order: 4; flex: none; }
:is(.msg-meta, .seed-body > .post-meta) .msg-follow { order: 5; flex: none; margin-left: 2px; }
.msg-col { display: grid; justify-items: start; min-width: 0; }
.msg.me .msg-col { justify-items: end; }
/* The Likes page (partials/like-card.hbs): ONE compact row per post, a table's columns (2026-11-18, Curtis: "compact
   table, full width ... I don't need to read every single thing ... I don't want this background padding"; it was a
   card with your whole post in a tinted panel). Every row has the same columns, so they line up: the faces (room for
   5), ♥ and the count (no names, the same day: "too noise, perhaps just a count"), your post's first words (the column
   that gives), when, THE EXIT. A full-width line between rows, none around them. `fresh` (a live like since you last
   opened Likes) wears an accent edge at the left. A row that arrives live (public/js/live.js .arrive) drops in from
   above; reduced motion: it's just there. */
.like-rows { display: grid; border-top: 1px solid var(--line); }
.like-row { display: grid; grid-template-columns: 156px 64px minmax(0, 1fr) 44px 28px; align-items: center; column-gap: 16px; min-height: 52px; padding: 8px 4px 8px 12px; border-bottom: 1px solid var(--line); transition: background-color .15s; }
.like-row:hover { background: var(--hover); } /* a light hover, so the eye keeps its row across (2026-11-18: "a slight hover on the rows") */
.like-faces { display: flex; gap: 4px; }
.like-faces .who-av { display: inline-flex; } /* the tooltip sits on the face's own box, centred above it */
.like-faces .avatar { width: 28px; height: 28px; font-size: 12px; }
.like-n { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.like-n .ico { width: 15px; height: 15px; fill: var(--accent); }
.like-post { display: flex; align-items: center; gap: 10px; margin: 0; min-width: 0; font-size: 15px; color: var(--ink); }
.like-words { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Your post's picture, a small square (X's 150px `thumb`), "GIF" / "▶" on a moving one (THE media badge). */
.like-thumb { position: relative; flex: none; width: 36px; height: 36px; overflow: hidden; border-radius: 6px; background: var(--hover); }
.like-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.like-thumb .media-badge { left: 2px; bottom: 2px; padding: 0 3px; font-size: 8.5px; letter-spacing: 0; }
/* The whole row opens the post on X (THE link layer, .post-open); the faces and the exit sit above it. */
.like-row { position: relative; }
.like-row :is(.like-faces, .post-exit) { position: relative; z-index: 1; }
.like-post.gone { font-style: italic; color: var(--faint); }
.like-when { font-size: 14px; color: var(--faint); text-align: right; white-space: nowrap; }
.like-row > .post-exit { grid-column: 5; }
/* A phone: the faces, the count, when and the exit on the first line, your post's words under them. */
@media (max-width: 720px) {
  .shell-main .like-rows { margin: 0 -14px; }
  .like-row { grid-template-columns: auto minmax(0, 1fr) auto 28px; grid-template-areas: "faces n when exit" "post post post post"; row-gap: 4px; column-gap: 10px; padding: 10px 10px 10px 14px; }
  .like-faces { grid-area: faces; }
  .like-faces .avatar { width: 26px; height: 26px; }
  .like-n { grid-area: n; }
  .like-post { grid-area: post; }
  .like-when { grid-area: when; }
  .like-row > .post-exit { grid-area: exit; }
}
.like-row.fresh { box-shadow: inset 3px 0 0 var(--accent); }
.like-row.arrive { animation: like-in .35s cubic-bezier(.2, .8, .3, 1); }
@keyframes like-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .like-row.arrive { animation: none; } }
/* The Follows page's cards (partials/follow-card.hbs): People cards (.pcard, above), what happened in the score's place:
   "Followed you" in Done's green, "Unfollowed you" in the alert red, when under it. (Rows in one panel until
   2026-11-16, Curtis: "turn them into cards and match the style of the people app".) `fresh` (since you last opened
   Follows) and a live arrival as the Likes cards. is-follow / is-unfollow: a bare `.follow` was the old follow-badge's
   class (it shrank the text when reused). */
.fcard-what b { font-size: 15px; letter-spacing: 0; }
.fcard-what time { margin-top: 3px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.fcard.is-follow .fcard-what b { color: var(--done); }
.fcard.is-unfollow .fcard-what b { color: var(--alert); }
.fcard.fresh { box-shadow: inset 3px 0 0 var(--accent), var(--shadow); }
/* THE PHONE PERSON ROW (signed in only, never the front page's drawn tour): a People card, a Follows card and a Not
   following back card, built on THE LIKES ROW (2026-11-18, Curtis: "same look and feel as the likes page ... make sure
   all the spacing makes sense, no unused padding"; the phone sweep's rows of 2026-11-17 were ~97px, a boxed Follow
   button and a Mutual tag beside it). Line 1: the face (--face), the name, the row's figure (People: ↔ the back and
   forth, Likes' "♥ 4" style; Follows: what happened and when), THE EXIT at the far right where Likes has it. Line 2,
   starting exactly under the name (the face's width + the gap, one calc): one quiet line of facts (followers; People:
   when you last spoke), and the follow control as text at the right. Likes' spacing: 10px top and bottom, the 14px
   gutter, a full-width line between, the light hover. The card's head and actions are `display: contents`, so their
   pieces sit in this one grid; margins, not column gaps, space them (a row without a pick has no empty gap). No ↻,
   @handle, copy or ›: the row opens their page (else their name opens X). Which facts: the f-* classes. */
@media (max-width: 720px) {
  .shell-main .pcards, .shell-main .pcards.rows { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--line); }
  .shell-main .pcard, .shell-main .pcards.rows .pcard { --face: 32px; --face-gap: 10px; margin: 0 -14px; padding: 10px 10px 10px 14px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto 28px; grid-template-areas: "pick who score exit" "pick facts follow follow"; align-items: center; gap: 2px 0; min-height: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; background: transparent; }
  .shell-main .pcard:hover, .shell-main .pcard.opens:hover { box-shadow: none; background: var(--hover); border-color: var(--line); }
  .shell-main .fcard.fresh, .shell-main .fcard.fresh:hover { box-shadow: inset 3px 0 0 var(--accent); }
  .shell-main .pcard :is(.pcard-head, .pcard-actions) { display: contents; }
  .shell-main .pcard-refresh, .shell-main .pcard .names .handle, .shell-main .pcard-go { display: none; }
  .shell-main .pcard .pick-one { grid-area: pick; margin: 0 8px 0 -4px; }
  .shell-main .pcard .who-link { grid-area: who; gap: var(--face-gap); }
  .shell-main .pcard .who-link .avatar { width: var(--face); height: var(--face); font-size: 13px; }
  .shell-main .pcard .names .name { font-size: 15px; }
  .shell-main .pcard-score, .shell-main .pcard-score.fcard-what { grid-area: score; display: flex; align-items: baseline; gap: 5px; margin-left: 10px; line-height: 1.3; }
  .shell-main .pcard-score b { font-size: 14px; font-weight: 500; letter-spacing: 0; }
  .shell-main .pcard-score:not(.fcard-what) b::before { content: "\2194"; margin-right: 5px; font-weight: 500; color: var(--accent); } /* ↔, as Likes' ♥ */
  .shell-main .pcard-score span { display: none; }
  .shell-main .fcard-what b { font-size: 14px; font-weight: 500; }
  .shell-main .fcard-what time { margin: 0; font-size: 14px; }
  .shell-main .pcard .post-exit { grid-area: exit; justify-self: end; }
  .shell-main .pcard .follow-form { grid-area: follow; justify-self: end; margin-right: 6px; }
  .shell-main .facts.pcard-facts, .shell-main .pcards.rows .pcard-facts { grid-area: facts; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; padding: 0 0 0 calc(var(--face) + var(--face-gap)); border: 0; }
  .shell-main .pcard-facts > div { display: none; }
  .shell-main .pcard-facts > :is(.f-conn, .f-followers, .f-last) { display: flex; flex-direction: row-reverse; align-items: baseline; gap: 4px; }
  .shell-main .pcard-facts dd { margin: 0; font-size: 14px; color: var(--muted); }
  .shell-main .pcard-facts dt { font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: lowercase; color: var(--muted); }
  .shell-main .pcard-facts :is(.f-conn, .f-last) dt, .shell-main .pcard-facts .f-conn [data-ftag-dash].none { display: none; }
  /* Not following back's read and bulk unfollow (views/follows-back.hbs): no panel box or fine print (the price is on
     its button); Select all and Unfollow N on one row (X's limit: the header's countdown says it when it's reached). */
  .shell-main .panel.bulk-read { margin: 0 0 12px; padding: 0; border: 0; background: none; box-shadow: none; }
  .shell-main .bulk-read .fine, .shell-main .pick-note { display: none; }
  .shell-main .pick-bar { flex-wrap: nowrap; justify-content: space-between; }
  .shell-main .pick-bar .pill { flex: none; white-space: nowrap; }
}
/* Where you two stand (partials/follow-badge.hbs, THE tag: People cards, a Follows card, a person's page): Follows you /
   You follow quiet (X's grey tag), MUTUAL the one that matters (Curtis 2026-11-16: "a key tag"), ⇄. THE CONNECTION
   COLOURS (2026-11-17, Curtis: "I dont like the mutual and the mark done button both green. maybe mutual is blue ... we
   keep done for green ... look at the connection colors to make it coherent ... mutual should not be bold"): GREEN is
   done and live, nothing else; where you stand with someone is the ACCENT (Mutual, ✓ Following, + Follow), "You
   follow" amber (they don't follow back), "Follows you" grey, Follow back ink (the one to act on). Mutual was the
   "● Live" pill's green from 2026-11-16 ("mutual should be the live buttons green"), and bold. */
.ftag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; font-size: 12px; font-weight: 600; line-height: 1.4; color: var(--muted); background: var(--hover); border-radius: 6px; white-space: nowrap; }
.ftag[hidden] { display: none; }
.ftag.none { padding: 0; color: var(--faint); background: none; } /* "—": neither follows (a facts column) */
.sub .ftag { margin-left: 6px; vertical-align: 1px; } /* a person's page: at the end of the details line */
.ftag.mutual { color: var(--accent); background: var(--accent-soft); }
.ftag.mutual::before { content: "\21C4"; font-size: 13px; }
/* "You follow" (they don't follow back): amber (Curtis 2026-11-16: "you follow should be like an amber"). */
.ftag.oneway { color: var(--amber); background: var(--amber-soft); }
/* The Follow button (the Following extra): three states that must never look alike (an outline "Follow" and an outline
   "Following" did, 2026-11-16):
     "Follow back" (they follow you: the one worth a press) — solid ink
     "+ Follow" (they don't) — the accent's outline: an action, not a state
     "✓ Following" (you do) — a soft blue pill (the accent on its soft tint, what the Mutual tag wore until Curtis
       2026-11-16: "following should be the mutual buttons blue"; it was grey), which says "Unfollow" in red under the
       pointer. */
.follow-form { margin: 0; }
.follow-btn { min-width: 124px; /* wide enough for every label (Follow back, + Follow, ✓ Following): one width, so a column of them lines up */ height: var(--btn-h); padding: 0 16px; font: inherit; font-size: 14px; font-weight: 700; color: var(--accent); background: transparent; border: 1px solid var(--accent); border-radius: var(--btn-r); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.follow-btn:hover { background: var(--accent-soft); }
.follow-btn .if-off::before { content: "+ "; }
[data-follows-you] .follow-btn:not(.on), .follow-btn.solid { color: var(--bg); background: var(--ink); border-color: var(--ink); }
[data-follows-you] .follow-btn:not(.on):hover, .follow-btn.solid:hover { opacity: .88; }
/* FOLLOW A THREAD's line (partials/thread-follow.hbs): above the one card, what it says on the left, the presses right. */
.thread-follow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 12px; padding: 10px 12px 10px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.thread-follow form { margin: 0; }
.tf-what { flex: 1 1 220px; font-size: 14px; color: var(--muted); }
.tf-what b { color: var(--ink); font-weight: 650; }
.thread-follow .follow-btn { min-width: 0; white-space: nowrap; }
[data-follows-you] .follow-btn .if-off::before { content: none; }
.follow-btn.on { color: var(--accent); background: var(--accent-soft); border-color: transparent; }
.follow-btn.on .if-on::before { content: "\2713  "; }
.follow-btn.on:hover { color: var(--alert); background: transparent; border-color: var(--alert); }
.follow-btn .if-on, .follow-btn .if-on-hover, .follow-btn.on .if-off, .follow-btn.on:hover .if-on { display: none; }
.follow-btn.on .if-on, .follow-btn.on:hover .if-on-hover { display: inline; }
.follow-btn:disabled { opacity: .6; cursor: default; }
.missed-follows { margin-bottom: 16px; }
/* The reconciler's read (views/follows-back.hbs): what was read, then its priced choices (partials/bulk-option.hbs, the
   "how far back?" page's), in a reading-width panel above the cards. */
.panel.bulk-read { max-width: 840px; padding: 18px 20px 20px; margin: 0 0 18px; }
.bulk-read-line { margin: 0 0 4px; font-size: 15px; line-height: 1.5; }
.bulk-read .fine { margin: 0; }
.bulk-read .options { margin-top: 14px; }
/* The Follows head (partials/follows-head.hbs): one row of THE TABS, the reconciler the fourth, on the left. */
.follows-head { justify-content: flex-start; }
/* Its bulk unfollow: a checkbox on each card (.pick-one, before the ↻), and the bar above the cards: "Select all on this
   page", the note, and the red "Unfollow N selected" (it asks first in THE modal). The bar is inset by a card's border +
   padding (17px) and its box by the pick's own 4px, so its checkbox stands in the cards' checkbox column and the button
   ends where the cards' contents do. (Not `.pick`: that's Settings' Font / Time zone forms.) */
.pick-one { display: inline-flex; align-items: center; padding: 4px; cursor: pointer; }
.pick-one input, .pick-all input { width: 16px; height: 16px; margin: 0; accent-color: var(--alert); cursor: pointer; }
.pick-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 14px; padding: 0 17px; }
.pick-all { display: inline-flex; align-items: center; gap: 8px; padding-left: 4px; font-size: 14px; font-weight: 600; cursor: pointer; }
.pick-note { font-size: 13px; color: var(--muted); }
.pick-bar .pill { margin-left: auto; }
@media (max-width: 720px) {
  .follow-btn { min-width: 0; padding: 0 12px; font-size: 13px; }
}
.fcard.arrive { animation: like-in .35s cubic-bezier(.2, .8, .3, 1); }
@media (prefers-reduced-motion: reduce) { .fcard.arrive { animation: none; } }
/* Who liked a post, under it (views/partials/liked.hbs). */
/* Who liked a post: first class, a pink pill like X's liked state. "Not checked yet" stays quiet text beside it. */
.liked { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 4px 12px 4px 9px; font-size: 14px; font-weight: 500; line-height: 1.3; color: var(--ink); background: var(--accent-soft); border-radius: 999px; }
.liked .ico { width: 16px; height: 16px; fill: var(--accent); }
/* Its faces (partials/liked.hbs): small, apart, as the Likes page's; "+N" after them. */
.liked-faces { display: inline-flex; align-items: center; gap: 3px; }
.liked-faces .avatar { width: 20px; height: 20px; font-size: 9px; }
.liked-more { margin-left: 2px; font-size: 12.5px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
/* The ♥ button (Liking on, someone else's post): an outline heart that turns pink on hover; once you've liked it, the
   pink pill above (pressing it unlikes). */
.like-form { display: block; margin: 0; }
.like-btn { font: inherit; border: 0; cursor: pointer; }
.like-btn:not(.liked) { display: inline-flex; margin: 4px 0 0 -6px; padding: 6px; color: var(--muted); background: none; border-radius: var(--btn-r); transition: color .15s, background .15s; }
.like-btn:not(.liked) .ico { width: 18px; height: 18px; }
.like-btn:not(.liked):hover { color: var(--accent); background: var(--accent-soft); }
.like-btn:not(.on) .ico { fill: none; stroke: currentColor; stroke-width: 2; }
.like-btn.liked:hover { box-shadow: inset 0 0 0 1px var(--accent); }
/* The one delight: the heart pops once when you like (public/js/like.js adds .pop; without script the page lands back
   on the post, #p<id>, so :target). */
@media (prefers-reduced-motion: no-preference) {
  :target .like-btn.on .ico, .like-btn.pop .ico { animation: like-pop .45s ease-out; }
}
@keyframes like-pop { 0% { transform: scale(.4); } 55% { transform: scale(1.35); } 100% { transform: scale(1); } }
.msg-meta { margin: 0 4px 3px; font-size: 13px; color: var(--muted); }
/* Beside a name in a conversation (partials/follow-inline.hbs): THE tag and THE Follow button, at the meta line's size. */
.msg-follow { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; vertical-align: middle; }
.msg-follow .follow-form { margin: 0; }
.msg-follow .follow-btn { min-width: 0; height: 24px; padding: 0 10px; font-size: 12px; }
.msg-follow .ftag { padding: 1px 7px; font-size: 11.5px; }
/* THE FOLLOW CONTROL AS TEXT: beside a name in a conversation (.msg-follow) and on every People / Follows card (.pcard,
   2026-11-18, Curtis: the person rows "same look and feel as the likes page"; they had a boxed button beside a
   Connection tag). The control is where you stand, one press in four states: + Follow, Follow back, ✓ Following and,
   when they follow you too, ⇄ Mutual (2026-11-17, Curtis: "when there is a mutual we dont also need following"); any of
   them you follow reads a red Unfollow on hover. No tag beside it (a card draws its Connection fact only without the
   control). THE CONNECTION COLOURS (above, .ftag): the accent, never green (green is Mark done), never bold. A person's
   page keeps the button (its header isn't a .pcard). */
.msg-follow.with-btn .ftag { display: none; }
.follow-btn .if-mutual { display: none; }
:is(.msg-follow, .pcard)[data-follows-you] .follow-btn.on:not(:hover) .if-on { display: none; }
:is(.msg-follow, .pcard)[data-follows-you] .follow-btn.on:not(:hover) .if-mutual { display: inline; }
:is(.msg-follow, .pcard)[data-follows-you] .follow-btn.on:not(:hover) { color: var(--accent); }
:is(.msg-follow, .pcard)[data-follows-you] .follow-btn.on .if-mutual::before { content: "\21C4  "; }
/* Text, not a pill (2026-11-17, Curtis: "kill the background formatting on this its too busy"): the accent (+ Follow,
   Follow back, ✓ Following, ⇄ Mutual; red: Unfollow on hover), never bold. Follow back was ink (the solid button's
   colour) until 2026-11-18, Curtis: "this follow back needs some styling and shouldn't be bold": as plain ink it read
   as more of the header, not a press. Its words say it's back. The padding is the press's room (and THE HOVER RULE's
   background), given back as a negative margin so the words stay put. */
:is(.msg-follow, .pcard) .follow-btn, :is(.msg-follow, .pcard) .follow-btn.on, :is(.msg-follow, .pcard)[data-follows-you] .follow-btn:not(.on), :is(.msg-follow, .pcard)[data-follows-you] .follow-btn.on:not(:hover) { min-width: 0; height: auto; padding: 1px 6px; margin: 0 -4px; font-weight: 500; background: transparent; border-color: transparent; box-shadow: none; }
:is(.msg-follow, .pcard)[data-follows-you] .follow-btn:not(.on) { color: var(--accent); }
.pcard .follow-btn, .pcard .follow-btn.on, .pcard[data-follows-you] .follow-btn:not(.on), .pcard[data-follows-you] .follow-btn.on:not(:hover) { padding: 6px 8px; margin: -6px -8px; font-size: 14px; white-space: nowrap; }
/* THE EXIT last on a card, at one spot down the list whatever the control's words (Likes keeps it there too). */
.pcard .pcard-actions .post-exit { order: 2; }
.pcard .pcard-actions .pcard-go { order: 3; }
.msg-name, .msg-meta .post-name { font-weight: 600; color: var(--ink); }
.msg-meta .handle-wrap { font-size: 13px; vertical-align: middle; }
.bubble { position: relative; min-width: 0; max-width: 100%; padding: 8px 14px; border-radius: 18px; background: var(--them); line-height: 1.45; }
.msg.me .bubble { background: var(--me); }
.msg.them.run-start .bubble { border-top-left-radius: 6px; }
.msg.me.run-start .bubble { border-top-right-radius: 6px; }

/* THE MINIMAL CONVERSATION, every width (2026-11-17, Curtis, of the phone's flat look: "I actually prefer the
   minimalistic look of mobile now and want a similar vibe on desktop"), signed in (.shell-main: the front page's tour
   keeps its drawn cards). No card box, shadow or bubble, the text plain. Yours at the left like everyone's (it was a
   chat: yours at the right, in a blue bubble). The foot: ♥ and Reply at the left, Mark done (green) at the right; Open
   on X at the header's right. Lines: see THE UNIT below. The desktop keeps its 40px face column; a phone has its own
   grid and one-line header (the phone block near the top). */
.shell-main .threads { gap: 0; }
.shell-main .thread { padding: 20px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; background: transparent; }
.shell-main .threads > .thread:last-child { border-bottom: 1px solid var(--line); }
.shell-main .thread .msg, .shell-main .thread .msg.me { grid-template-columns: 40px minmax(0, 1fr); max-width: none; justify-self: stretch; }
.shell-main .thread .msg.me .msg-av { order: 0; }
.shell-main .thread .msg.me .msg-col { justify-items: start; }
.shell-main .thread .msg .bubble { padding: 0; background: none; border-radius: 0; } /* .msg: out-weighs .msg.me .bubble */
.shell-main .thread .msg-col > .post-foot { justify-self: stretch; flex-wrap: nowrap; justify-content: flex-start; gap: 4px; }
/* THE HEADER (the same day, Curtis: "we need a line here and open on x and the timestamp should be top right now I think
   on each card"): the name and where you stand at the left (the @handle under it on a desktop), the time and Open on X
   at the right, a message's and the seed's alike; the seed's Open on X leaves its foot for it. */
.shell-main .thread :is(.msg-col > .msg-meta, .seed-body > .post-meta) { justify-self: stretch; }
/* TWO SIZES, X's way (2026-11-17, Curtis: "I dont like how the tweets are different font sizes than the header.
   harmonize font sizes"; earlier the same evening the headers were made one scale, the name 14px, the rest 13px, the
   text 15px): what a POST says reads at ONE size, 15px, the header (name bold, handle, time, where you stand), "Replying
   to" and the text alike; what you PRESS is 14px: ♥ / Reply, Mark done, the finished ✓ Done, the fold's Show, the card
   head (its "Your post · …" too) and the toolbar's Like / Mark. Phones too. */
.shell-main .thread :is(.msg-meta, .seed-body > .post-meta),
.shell-main .thread :is(.msg-meta, .seed-body > .post-meta) :is(.post-name, .msg-name, .post-time, .handle-wrap, .handle, .msg-follow, .ftag, .follow-btn),
.shell-main .thread .msg-answering { font-size: 15px; }
.shell-main .thread :is(.msg-meta, .seed-body > .post-meta) :is(.post-name, .msg-name) { font-weight: 650; }
.shell-main .thread .msg-col > .msg-meta { margin-left: 0; margin-right: 0; } /* the bubble's 4px inset: a reply's name sat 4px right of the seed's */
.shell-main .thread :is(.reply-to, .msg-done-btn, .msg-finished, .fold-label, .drill),
.shell-main :is(.card-done .card-about, .card-done .card-like, .card-done .done-btn, .toolbar .like-all-btn, .toolbar .done-btn) { font-size: 14px; }
/* THE CORNER (2026-11-17, the evening's last word on leaving for X; Curtis: "I no longer want to make the whole card
   clickable, just a small exit link on each card directly beside the mark done that is much less noise, so the text
   should not be clickable to x"): each post's top right, level with its header, holds THE EXIT (partials/post-exit.hbs,
   a small muted arrow, the ONE way a post opens on X) and, on a reply still waiting, Mark done (the same evening: "the
   top right of each not bottom right"), or the finished ✓ Done. The text, the pictures, the time and the post itself
   go nowhere. REPLACED, all that one evening: an "Open on X" label on every post, a ↗ on the time, the whole post as a
   link that lit up under the pointer (and the 12px of padding that gave the light-up room). ONE RIGHT EDGE: Mark done's
   text ends 12px in from the column (8px of its own padding + 4px), as the card head's and the toolbar's do. The
   header, or a header-less message's text, keeps clear of the corner (wider with Mark done: `has-done`). */
.thread :is(.msg, .seed-post) > .post-corner { position: absolute; top: -4px; right: 4px; z-index: 2; display: flex; align-items: center; gap: 2px; }
.post-corner :is(.msg-done, .msg-done-btn, .msg-finished) { margin: 0; }
.post-exit { display: inline-grid; place-items: center; width: 28px; height: 26px; color: var(--faint); border-radius: var(--btn-r); transition: color .15s, background .15s; }
.post-exit:hover { color: var(--ink); background: var(--hover); text-decoration: none; }
.post-exit .ico { width: 15px; height: 15px; }
/* THE EXIT stands at ONE spot down the whole card (the same evening: "the arrow is consistently in the same place on
   scroll"): LAST in every corner and in the card head, whose padding (4px; a phone's 18px) puts it exactly over the
   posts' (the corner's 4px from the column edge; a phone's column 14px in + 4px). The card head's arrow is the seed's,
   so the seed drops its own in a card (a conversation's own page, with no head, keeps it). */
.shell-main .card-done > .post-exit { flex: none; }
.thread[data-inbox-card] .seed .post-corner { display: none; }
.thread .msg-col > .msg-meta, .thread .seed-body > .post-meta, .thread .msg:not(.run-start) > .msg-col > .bubble { padding-right: 36px; }
.thread .msg.has-done > .msg-col > .msg-meta, .thread .msg.has-done:not(.run-start) > .msg-col > .bubble { padding-right: 124px; }
/* WHOSE Like / Done (the same day, Curtis: "it isn't obvious which like 2 and Done belong to each card, it is no longer
   obvious which is a start and end of a conversation"): an Inbox card opens with THE CARD HEAD, a band holding its
   presses (below). A conversation's page starts with a stronger solid line and more room. */
.shell-main .thread { padding: 26px 0; border-top-color: var(--line-strong); }
/* THE CARD HEAD (2026-11-17, Curtis: "it isn't clear what these like and done are. I think that for each new convo we
   need a different color header perhaps to give it some separation and that is where the like and done dock"; it
   REPLACED the presses floating at the right of the seed's header line, which read as that post's): each Inbox card
   opens with a band drawn as the sidebar's selected item (the card surface, a hairline, THE button corner), sticky
   under the header while any of the card is on screen, the card's ♥ Like N and Mark done docked at its right as the
   message foot's own ♥ and Mark done (below: "this like button should be the same style as this one same with done"),
   and so are the toolbar's ♥ Like N and Mark N done ("these buttons dont match the style now (the should)"): plain
   text, an outline ♥, the green Mark; the hover is their only box. The band is the separation, so an Inbox card has no
   rule above it. */
.shell-main .thread[data-inbox-card] { padding-top: 0; padding-bottom: 30px; border-top: 0; } /* top and bottom only: a phone keeps its gutter */
.shell-main .threads > .thread[data-inbox-card]:last-child { border-bottom: 0; }
/* Pinned 12px under the header, not hugging it (the same evening, Curtis: "I don't like how this hugs completely to the
   top, give some space"); a second shadow in the page's colour fills those 12px, so the posts scrolling under it don't
   show through the gap. */
/* Not a box (2026-11-18, Curtis: "not a box, but a orange border with a bit of a background highlight", then of the
   accent edge it got: "I just dont like the side little border remove that"; it was the sidebar's selected item, the
   surface in a hairline): a light tint of the accent alone, opaque (the card scrolls under it while it's pinned). */
.shell-main .thread .card-done { top: calc(var(--top-h) + 12px); height: auto; margin: 0; padding: 4px; align-self: stretch; align-items: center; gap: 2px; background: color-mix(in srgb, var(--accent) 7%, var(--bg)); border-radius: var(--btn-r); box-shadow: 0 -12px 0 0 var(--bg); } /* THE corner (a phone's edge-to-edge strip keeps none) */
.card-about { display: none; }
.shell-main .card-done .card-about { display: inline-flex; align-items: center; gap: 8px; min-width: 0; margin-right: auto; padding-left: 8px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.shell-main .thread .card-done { min-width: 0; } /* a grid item: without it the one-line preview widened the whole card (off a phone's screen) */
.shell-main .card-done > form { flex: none; } /* the presses never give way: the preview does (a long one wrapped "Like 2" onto two lines) */
.shell-main .card-done :is(.card-like, .done-btn) { white-space: nowrap; }
.shell-main .card-done .card-about-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 400; color: var(--muted); }
.shell-main :is(.card-done .card-like, .card-done .done-btn, .toolbar .like-all-btn, .toolbar .done-btn) { padding: 0 8px; font-weight: 500; color: var(--muted); background: none; border: 0; box-shadow: none; }
.shell-main .card-done :is(.card-like, .done-btn) { height: 32px; }
.shell-main .toolbar :is(.like-all-btn, .done-btn) { padding: 0 12px; } /* no band around them: the 12px is their own */
.shell-main :is(.card-done .card-like, .toolbar .like-all-btn) .ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.shell-main :is(.card-done .card-like, .toolbar .like-all-btn):is(:hover, .armed):not(:disabled) { color: var(--accent); background: var(--accent-soft); box-shadow: none; }
.shell-main :is(.card-done, .toolbar) .done-btn { color: var(--done); }
.shell-main :is(.card-done, .toolbar) .done-btn:hover { background: var(--done-soft); }
.shell-main .thread.done .card-done .done-btn:not(.just-done) { color: var(--muted); background: none; }
.shell-main .thread.done .card-done .done-btn:not(.just-done):hover { color: var(--ink); background: var(--hover); }
/* The fold's "Show N earlier replies" draws no line of its own: the first reply under it opens with its own, and two
   lines sat 30px apart (2026-11-17, Curtis: "why is there a double line here?"). */
.shell-main .fold-row.fold-above { padding-bottom: 0; border-bottom: 0; }
/* THE FOLD reads as the text fold does (the same evening, Curtis: "the show 7 earlier replies needs some margin below it
   and it always feels kind of out of place"; it was the one grey pill in a conversation): "Show 7 earlier replies" is
   the accent words of a long post's "Show more" (.more-btn), standing in the TEXT column (under the names: the 40px
   face + 12px; a phone's 28px face + 8px), with room above and below. */
.shell-main .thread .fold-row { padding-left: 52px; }
.shell-main .thread .fold-row.fold-above { margin: 0 0 18px; }
.shell-main .thread .fold-row:not(.fold-above) { margin-top: 14px; }
/* Under the pointer both folds take a soft background, not an underline (the same evening, Curtis: "dont like the
   underline formatting on hover for the show 1 earlier reply, use a bg hover style"): THE button corner, padded, the
   padding given back as a negative margin so the words stay in the text column. */
.shell-main .thread :is(.fold-label, .more-btn) { display: inline-block; margin-left: -8px; padding: 3px 8px; font-weight: 600; color: var(--accent); background: none; border-radius: var(--btn-r); transition: background .15s; }
.shell-main .thread :is(.fold-label, .more-btn):hover { color: var(--accent); background: var(--accent-soft); text-decoration: none; }
/* THE HOVER RULE (the same evening, Curtis, of "← Inbox": "dont like the underline hover format ... either"): a link in
   prose (a post's text, a bio) underlines (`a:hover`, the base); a CONTROL that happens to be a link or a button
   takes a soft background instead: the folds above, "← Inbox", the Follow / Mutual beside a name. */
.inbox-back a { display: inline-block; margin-left: -8px; padding: 2px 8px; border-radius: var(--btn-r); transition: background .15s, color .15s; }
.inbox-back a:hover { color: var(--ink); background: var(--hover); text-decoration: none; }
:is(.msg-follow, .pcard) .follow-btn:hover { text-decoration: none; background: var(--hover); border-radius: var(--btn-r); }
/* THE UNIT IS THE BACK AND FORTH (2026-11-17, Curtis: "it isn't clear to me who I have responded to (each back and forth
   is a unit and we seemed to have lost that a bit with this new design"; a dashed line at every change of speaker made
   each reply its own item, and the branches' solid lines barely differed). ONE kind of line, solid, quiet, with room:
   under the seed and between branches (people.runsOf `ruleBefore`, hr.msg-rule). Inside a branch no line at all, and
   THE THREAD LINE, X's: from a face down to the next face when that message answers it (`joinsNext`, .joins-next), so
   who answered whom is drawn, not inferred. Desktop only: a phone's text runs under the face, where the line would
   cross it; its branches are the solid lines alone. */
.shell-main .thread .seed { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.shell-main .thread .msg-rule { margin: 22px 0 18px; }
.shell-main .thread .msg { position: relative; }
.shell-main .thread .msg.joins-next::after { content: ""; position: absolute; left: 19px; top: 46px; bottom: -12px; width: 2px; border-radius: 1px; background: var(--line-strong); pointer-events: none; }
.shell-main .thread .msg.joins-next:not(.run-start)::after { top: 0; }
.fold-toggle:not(:checked) ~ .chat .join-when-open::after, .fold-toggle:checked ~ .chat .join-when-shut::after { display: none; }
/* "Replying to Robert Scoble", X's words, under the header only where the drawing can't say whom it answers (people.runsOf
   `answering`). Hidden for the fold state it isn't for by the generic .when-open / .when-shut rules. */
.msg-answering { margin: -2px 0 4px; font-size: 13px; color: var(--muted); }
/* A reply with nothing left to do: a completed ✓ Done where the button was ("I want to see a completed done button if in
   fact completed"; inbox.js `finished`). */
.msg-finished { margin-left: auto; padding: 3px 8px; font-size: 13px; font-weight: 600; color: var(--done); background: var(--done-soft); border-radius: var(--btn-r); }
.shell-main .thread .msg-col > .reply-here { justify-self: stretch; }
.shell-main .thread .msg.run-start:not(:first-child) { margin-top: 18px; }
.shell-main .thread .msg-rule + .msg.run-start { margin-top: 0; } /* the line's own room */

/* A post's pictures: a preview (the post itself opens on X), so modest (Curtis 2026-11-16: "make the display images
   smaller"; they were up to 520 × 420). One: its own shape, up to 360 × 280. Several: a 2-column grid of even tiles,
   cropped. */
.post-media { display: grid; justify-items: start; gap: 4px; margin-top: 10px; max-width: 360px; }
.post-media.grid { grid-template-columns: 1fr 1fr; justify-items: stretch; }
.pm { position: relative; display: block; max-width: 100%; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); background: var(--line); }
.pm img { display: block; width: auto; max-width: 100%; height: auto; max-height: 280px; }
.post-media.grid .pm img { width: 100%; height: 130px; object-fit: cover; }
.pm-open { display: block; }
/* "+ Save" on someone else's photo or GIF (partials/media.hbs): a scrim chip at the top right, like the GIF badge at
   the bottom left; "✓ Saved" in the accent. Specific enough to beat the post layer's `form { position: relative }`. */
.post-media .pm > .pm-save { position: absolute; top: 8px; right: 8px; z-index: 2; margin: 0; }
.pm-save-btn { padding: 3px 10px; font: inherit; font-size: 12px; font-weight: 650; color: var(--on-scrim); background: var(--scrim); border: 0; border-radius: 7px; cursor: pointer; }
.pm-save-btn.on { color: var(--accent-ink); background: var(--accent); }
.pm-badge { position: absolute; left: 8px; bottom: 8px; padding: 2px 9px; border-radius: 999px; background: var(--scrim); color: var(--on-scrim); font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; }
.bubble .post-media { margin-top: 8px; margin-bottom: 4px; }
/* Inside a quote card: a smaller preview (the card is the quoted post in brief). */
.post-media.in-quote { margin-top: 6px; }
.post-media.in-quote .pm { border-radius: 10px; }
.post-media.in-quote .pm img { max-height: 180px; }
.post-media.in-quote.grid .pm img { height: 100px; }

.quote { position: relative; display: grid; margin-top: 8px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--ink); font-size: 14px; transition: border-color .15s; }
.quote:hover { text-decoration: none; border-color: var(--accent); }
/* The quote's header: X's small version of a post header (20px avatar, same name / handle / time pieces). */
/* One line, like X: a long name or handle gives way (ellipsis) before the time wraps. */
.quote-meta { flex-wrap: nowrap; align-items: center; gap: 0 6px; min-width: 0; margin-bottom: 4px; font-size: 14px; white-space: nowrap; }
.quote-meta .post-name, .quote-meta .handle-wrap { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.quote-meta .post-dot, .quote-meta .post-time { flex: none; }
/* 20px even inside a seed post, whose own avatar rule (40px) would otherwise reach in. */
.quote .quote-meta .avatar { flex: none; width: 20px; height: 20px; font-size: 10px; margin-right: 2px; }
.quote:hover .post-time { color: var(--muted); }

/* ============================================================
   Settings
============================================================ */
h3.subsection { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 22px 0 8px; }

/* Settings: Font and Time zone side by side, each a select + its buttons; stacked on a phone. */
.settings-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.pick { display: flex; align-items: center; gap: 10px; max-width: 420px; margin: 0; }
.pick .btn { flex: none; }
.pick select { flex: 1 1 0; min-width: 0; }
@media (max-width: 720px) {
  .settings-row { grid-template-columns: minmax(0, 1fr); }
}
/* Settings → Accent: a row of round swatches (each its accent in the theme being viewed: --swatch, /look.css); the
   radio itself is the ring, so the chosen one is marked without :has() (iOS Safari doesn't re-check it). */
.swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 6px; }
.swatch { position: relative; width: 30px; height: 30px; border-radius: 50%; background: var(--swatch); cursor: pointer; }
.swatch input { position: absolute; inset: -5px; width: auto; height: auto; margin: 0; border-radius: 50%; appearance: none; -webkit-appearance: none; background: none; cursor: pointer; }
.swatch input:checked { box-shadow: inset 0 0 0 2px var(--swatch); }
.swatch input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* A Settings panel (views/settings.hbs): one card, a row per thing you can set. Name + one short hint on the left,
   the control on the right, what it costs in the last column. A phone puts the control under the name. */
.panel { margin: 8px 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }.prow { display: grid; grid-template-columns: minmax(0, 1fr) auto 112px; align-items: center; gap: 8px 20px; padding: 14px 18px; border-top: 1px solid var(--line); }
.prow:first-child { border-top: 0; }
.prow-name { display: block; font-weight: 600; }
.prow-figure { margin-left: 6px; font-variant-numeric: tabular-nums; }
.prow-hint { display: block; font-size: 13px; color: var(--muted); }
.prow-hint.warn { color: var(--ink); }
/* How a row's price is worked out: the counts × the price per item. */
.prow-how { display: block; margin-top: 3px; font-size: 12.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.panel-lede { max-width: 720px; margin: -4px 0 10px; }
.prow-control { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.prow-control form { display: inline-flex; gap: 8px; margin: 0; }
.prow-cost { font-size: 13px; color: var(--muted); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* The panel's last row: what the rows above add up to. */
.prow-total { background: var(--hover); border-radius: 0 0 var(--radius) var(--radius); }
.prow-total .prow-cost { font-size: 15px; font-weight: 650; color: var(--ink); }
/* What you use: a module's row leads (its name a size up); what belongs to it sits under it, indented, with no rule
   between them, so a module and its own choices read as one block. */
.prow.module .prow-name { font-size: 16px; }
.prow.nested { padding-left: 42px; border-top: 0; padding-top: 4px; }
@media (max-width: 720px) {
  .prow { grid-template-columns: minmax(0, 1fr) auto; }
  .prow-control { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
  .prow.nested { padding-left: 30px; }
  /* A module in Settings' one-price panel (the phone sweep, 2026-11-17: the counts squeezed into wrapped labels, the
     price floated mid-row and the switch took a row of its own): the name, its price and its switch on one line, then
     what it is, then what it reads at the full width. The front page's two-price panel has its own (below). */
  .panel:not(.two-prices) .prow.module { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "name cost ctl" "hint hint hint" "reads reads reads"; align-items: center; gap: 4px 12px; }
  .panel:not(.two-prices) .prow.module .prow-text { display: contents; }
  .panel:not(.two-prices) .prow.module .prow-name { grid-area: name; }
  .panel:not(.two-prices) .prow.module .prow-hint { grid-area: hint; }
  .panel:not(.two-prices) .prow.module .reads { grid-area: reads; max-width: none; margin-top: 6px; }
  .panel:not(.two-prices) .prow.module .prow-cost { grid-area: cost; }
  .panel:not(.two-prices) .prow.module .prow-control { grid-area: ctl; grid-row: auto; grid-column: auto; }
}

/* An on/off switch (views/partials/switch.hbs): a button in a form, or a link when turning on goes off-site first. */
.switch { position: relative; flex: none; display: inline-block; width: 40px; height: 24px; padding: 0; border: 0; border-radius: 999px; background: var(--line-strong); cursor: pointer; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--knob); box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s; }
.switch.on { background: var(--accent); }
.switch.on::after { transform: translateX(16px); }
.switch:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--accent-soft); }

/* Facts with little uppercase headers (the leaderboard cards). */
.facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; }
.facts dt { font-size: 11px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.facts dd { margin: 2px 0 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.state { color: var(--muted); }
.state.on { color: var(--accent); font-weight: 650; }
.state.paused { color: var(--ink); }

/* The Inbox (views/inbox.hbs) is conversation cards (.threads / .thread), each with Open on X and Mark done floating
   at its top right (.card-done below). A card marked done folds out of the tab it no longer belongs in
   (public/js/post-actions.js), reduced-motion: it just goes. Marking done is the one celebrated beat: the button pops
   to a green "✓ Done" and confetti bursts from it (.burst, appended to the body so no card clips it), then the fold. */
.all-done { margin: 0; }

/* THE modal (views/partials/modal.hbs, a native <dialog>; public/js/modal.js opens it). Used by the Inbox's "Mark all
   done": a lead line, a note, then its actions on the right (Cancel, the primary .pill). */
.modal { width: min(440px, calc(100vw - 32px)); padding: 0; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow); }
.modal::backdrop { background: var(--scrim); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 12px 0 20px; }
.modal-head form { margin: 0; }
.modal-title { margin: 0; font-size: 18px; font-weight: 650; letter-spacing: -.01em; }
.modal-body { padding: 8px 20px 20px; }
.modal-lead { margin: 0 0 6px; font-size: 15px; }
.modal-body .note { margin: 0; }
.modal-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 18px; }
.modal-actions form { margin: 0; }
@media (prefers-reduced-motion: no-preference) {
  .modal[open] { animation: modal-in .18s cubic-bezier(.2, .8, .3, 1); }
}
@keyframes modal-in { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
.done-btn { font-weight: 600; }
/* Mark done at the card's top right, sticky while any of the card is on screen (partials/inbox-done.hbs; Curtis
   2026-11-15). It takes no room of its own (height 0, the card grid's gap given back), so the card starts beside it,
   and it's solid with a shadow so whatever scrolls under it stays legible around it. Under the header, or the top of
   the window on a phone (where the header scrolls away). This floating version is now only the front page's drawn
   tour's; signed in (.shell-main) THE CARD HEAD redraws it as a band. */
.card-done { position: sticky; top: calc(var(--top-h) + 20px); z-index: 6; height: 0; margin: -8px -8px -18px 0; display: flex; justify-content: flex-end; align-items: flex-start; gap: 6px; align-self: start; }
.card-done form { margin: 0; }
/* Green, so it reads as the card's one action (Curtis 2026-11-15: "a different color (green?)"); "Not done" on a done
   card stays quiet. */
.card-done .done-btn { color: var(--done); background: var(--done-soft); border-color: color-mix(in srgb, var(--done) 45%, transparent); box-shadow: var(--shadow); }
.card-done .done-btn:hover { background: color-mix(in srgb, var(--done) 22%, var(--surface)); }
/* The toolbar's "✓ Done N" in the same green as a card's Done (2026-11-17, Curtis: "done in the top row should be
   green"). */
.toolbar .done-btn { color: var(--done); background: var(--done-soft); border-color: color-mix(in srgb, var(--done) 45%, transparent); }
.toolbar .done-btn:hover { background: color-mix(in srgb, var(--done) 22%, var(--surface)); }
/* A card's own bulk like (partials/inbox-done.hbs), floating with Open on X and Done; nothing owed, gone. */
.card-done .card-like { height: var(--btn-h); background: var(--surface); box-shadow: var(--shadow); font-weight: 600; }
.card-done .card-like .ico { width: 14px; height: 14px; fill: var(--accent); }
.card-done .card-like.armed { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.card-done .is-zero { display: none; }
.thread.done .card-done .done-btn:not(.just-done) { color: var(--muted); background: var(--surface); border-color: var(--line-strong); }
@media (max-width: 720px) {
  .card-done { top: 16px; }
}
.thread.done .done-btn { color: var(--muted); }
.done-btn.just-done, .thread.done .done-btn.just-done { color: var(--done); border-color: var(--done); }
.burst { position: fixed; z-index: 60; width: 0; height: 0; pointer-events: none; }
.burst i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); opacity: 0; }
.burst i:nth-child(4n+2) { background: var(--alert); }
.burst i:nth-child(4n+3) { background: var(--done); }
.burst i:nth-child(4n+4) { background: var(--gold); }
.burst i:nth-child(3n) { border-radius: 2px; width: 7px; height: 11px; }
@media (prefers-reduced-motion: no-preference) {
  .msg.folding { overflow: hidden; margin-top: 0; margin-bottom: 0; opacity: 0; transition: height .3s ease, margin .3s ease, opacity .2s ease; }
  .thread.folding { overflow: hidden; padding-top: 0; padding-bottom: 0; border-width: 0; opacity: 0; transition: height .35s ease, padding .35s ease, opacity .25s ease; }
  .done-btn.just-done { animation: done-pop .4s cubic-bezier(.2, .8, .3, 1.4); }
  .burst i { animation: burst .7s cubic-bezier(.15, .7, .3, 1) forwards; }
}
@media (prefers-reduced-motion: reduce) { .burst { display: none; } }
@keyframes done-pop { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes burst {
  0% { opacity: 1; transform: translate(-50%, -50%) rotate(0) scale(1); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(var(--dx) - 50%), calc(var(--dy) - 50%)) rotate(var(--r)) scale(.5); }
}
/* The reply box (partials/reply-box.hbs) at a conversation card's foot: a quiet field that grows with the text
   (public/js/post-actions.js), its length and price on the left, Reply on the right. */
.reply-form { display: grid; gap: 6px; padding: 10px 12px 8px; background: var(--hover); border: 1px solid var(--line); border-radius: 14px; transition: border-color .15s; }
.reply-form:focus-within { border-color: var(--accent); }
.reply-form textarea { width: 100%; min-height: 26px; padding: 2px 0; resize: none; overflow: hidden; font: inherit; font-size: 15px; line-height: 1.45; color: var(--ink); background: transparent; border: 0; outline: none; }
.reply-foot { position: relative; display: flex; align-items: center; gap: 10px; }
.reply-meta { font-size: 12.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.reply-meta.warn { color: var(--ink); font-weight: 600; }
.reply-foot .pill { margin-left: auto; padding: 6px 16px; }
/* Emoji (public/js/emoji.js): the 😊 at the foot's start, and ONE panel per page that opens above whichever composer
   asked, a grid of the emoji people reply with and a pointer to the system's full picker. */
.emoji-btn { flex: none; width: 32px; height: 32px; padding: 0; font-size: 18px; line-height: 1; background: none; border: 0; border-radius: var(--btn-r); cursor: pointer; filter: grayscale(.4); opacity: .8; }
.emoji-btn:hover { filter: none; opacity: 1; background: var(--line); }
/* Pictures in a reply (public/js/attach.js): the 📎 is the 😊's twin; previews in a row above the foot, each with a ✕;
   files dragged over the box light it in the accent. */
.attach-strip { display: flex; flex-wrap: wrap; gap: 8px; }
.attach-item { position: relative; width: 84px; height: 84px; border-radius: 10px; overflow: hidden; background: var(--them); }
.attach-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.attach-remove { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; padding: 0; font-size: 11px; line-height: 22px; color: var(--on-scrim); background: var(--scrim); border: 0; border-radius: 50%; cursor: pointer; }
.reply-form.dropping { border-color: var(--accent); border-style: dashed; background: var(--accent-soft); }
/* THE media panel (public/js/attach.js): opens above the composer like the emoji panel. "Your media" and "From your
   computer" on top, then a scrolling grid of your photos and GIFs (views/media-library.hbs): pins first, a tile already
   in the reply ringed in the accent, the ☆ in a corner (gold ★ when pinned), GIFs badged. */
/* Big enough to browse (Curtis 2026-11-16: "this thing isn't big enough", of a 440 × 320 first try): about the reply
   box's width, most of the window's height, tiles ~120px. */
.media-panel { position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 10; width: min(720px, 100%); /* the reply box's own width (it sits in its foot): sized to the window, it ran off a phone's right edge once the box started under the name (2026-11-17) */ padding: 12px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow); }
.media-panel.below { bottom: auto; top: calc(100% + 8px); } /* no room above (near the page's top): it opens downward */
.media-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
.media-title { font-size: 13px; font-weight: 600; color: var(--muted); }
.media-body { max-height: min(62vh, 640px); overflow-y: auto; font-size: 13px; color: var(--muted); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.media-tile { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--them); }
.media-pick { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.media-pick img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .15s; }
.media-pick:hover img { transform: scale(1.05); }
.media-tile.chosen { box-shadow: inset 0 0 0 3px var(--accent); }
.media-tile.chosen .media-pick img { opacity: .75; }
.media-pin { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; padding: 0; font-size: 13px; line-height: 22px; color: var(--on-scrim); background: var(--scrim); border: 0; border-radius: 50%; cursor: pointer; opacity: 0; transition: opacity .15s; }
.media-tile:hover .media-pin, .media-tile.pinned .media-pin, .media-pin:focus-visible { opacity: 1; }
.media-tile.pinned .media-pin { color: var(--gold); }
.media-badge { position: absolute; left: 4px; bottom: 4px; padding: 1px 5px; font-size: 10px; font-weight: 700; letter-spacing: .04em; color: var(--on-scrim); background: var(--scrim); border-radius: 4px; pointer-events: none; }
.attach-item .media-badge { bottom: 4px; }
.media-empty { margin: 0; padding: 8px 2px; }
/* THE MEDIA PAGE (views/media.hbs): the same tiles, bigger, in a wall; each opens its post on X and says when. */
.media-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.media-wall .media-tile { border-radius: 12px; box-shadow: var(--shadow); }
.media-wall .media-tile form { position: absolute; top: 6px; right: 6px; margin: 0; }
.media-wall .media-pin { position: static; width: 28px; height: 28px; font-size: 15px; line-height: 28px; }
.media-when { position: absolute; right: 6px; bottom: 6px; padding: 1px 6px; font-size: 11px; font-weight: 600; color: var(--on-scrim); background: var(--scrim); border-radius: 4px; pointer-events: none; }
.media-wall .media-badge { left: 6px; bottom: 6px; }
/* A saved one is tagged with who it's from (views/media.hbs, media-library.hbs): their picture (and @handle on the
   page) at the top left; its ✕ (remove) beside the ☆. */
.media-from { position: absolute; left: 4px; top: 4px; display: inline-flex; align-items: center; gap: 5px; max-width: calc(100% - 40px); padding: 2px 8px 2px 2px; font-size: 11px; font-weight: 650; color: var(--on-scrim); background: var(--scrim); border-radius: 999px; pointer-events: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-grid .media-from { padding: 2px; }
.media-from .avatar { width: 20px; height: 20px; font-size: 10px; flex: none; }
.media-wall .media-from { left: 6px; top: 6px; max-width: calc(100% - 80px); }
.media-wall .media-tile form.media-unsave { right: 40px; }
@media (prefers-reduced-motion: reduce) { .media-pick img { transition: none; } .media-pick:hover img { transform: none; } }
.emoji-panel { position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 10; max-width: 100%; padding: 8px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow); }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 36px); gap: 2px; }
.emoji-pick { width: 36px; height: 36px; padding: 0; font-size: 20px; line-height: 1; background: none; border: 0; border-radius: 10px; cursor: pointer; }
.emoji-pick:hover { background: var(--hover); }
.emoji-hint { margin: 6px 4px 0; font-size: 12px; color: var(--muted); }
@media (max-width: 720px) {
  .emoji-grid { grid-template-columns: repeat(auto-fill, 36px); } /* as many as the reply box holds (the panel's max-width is the box's) */
  .emoji-panel { width: 100%; }
}
/* THE TABS over a list (the Inbox's Waiting / Done / All, Follows, Media's kinds, Usage's Day / Week / Month), each
   with its count: UNDERLINE TABS, X's own (2026-11-18, Curtis: the boxed "buttons inside of a box ... dont look good on
   mobile -- too much clutter", then "I'll take your recos ... minimalistic design always"; they were a bordered pill
   with a tinted pill inside). Plain words, the one in view in ink with a short accent bar under it, no box, no line
   under the row. 14px medium, THE ROW TYPE's second size. Still --seg-h tall, so they line up with the toolbar's
   controls (search, sort, Done, Like). A row wider than its column (Follows' four on a phone) scrolls sideways,
   never wraps. */
:root { --seg-h: 38px; }
.seg-tabs { display: inline-flex; align-items: stretch; gap: 20px; height: var(--seg-h); max-width: 100%; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.seg-tabs::-webkit-scrollbar { display: none; }
.seg-tabs a, .seg-tabs label { position: relative; display: inline-flex; align-items: center; flex: none; padding: 0; font-size: 14px; font-weight: 500; white-space: nowrap; color: var(--muted); transition: color .15s; }
.seg-tabs a:hover, .seg-tabs label:hover { text-decoration: none; color: var(--ink); }
/* The one in view: a link's .on, or Usage's checked radio's label (the chart switch works without script). */
.seg-tabs a.on, #spend-by-day:checked ~ .spend-tabs .spend-tab-day, #spend-by-week:checked ~ .spend-tabs .spend-tab-week, #spend-by-month:checked ~ .spend-tabs .spend-tab-month { color: var(--ink); }
.seg-tabs a.on::after, #spend-by-day:checked ~ .spend-tabs .spend-tab-day::after, #spend-by-week:checked ~ .spend-tabs .spend-tab-week::after, #spend-by-month:checked ~ .spend-tabs .spend-tab-month::after { /* a list, not :is(): :is() takes its ids' weight for the link too */ content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px; background: var(--accent); }
.seg-n { margin-left: 5px; font-weight: 500; color: var(--faint); font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { .seg-tabs { gap: 16px; } }

/* Usage (views/usage.hbs): the balance and the month up top, the chart, then one table, newest first. */
.usage-top { margin: 4px 0 20px; }
.eyebrow { font-size: 11.5px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.usage-num { font-size: 40px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.usage-line { margin: 6px 0 0; color: var(--muted); }
.usage-line b { color: var(--ink); font-variant-numeric: tabular-nums; }
.usage td.when { color: var(--muted); font-variant-numeric: tabular-nums; vertical-align: top; }
/* The first row of a day says it above its time, in ink: the day lines' job, without a line of their own. */
.usage .when-day { display: block; margin-bottom: 2px; font-weight: 650; color: var(--ink); }
.usage .credit { color: var(--done); }
.usage-more { margin: 14px 0 0; text-align: center; }
/* THE USAGE CHART (partials/spend-chart.hbs, services/spendChart.js): the Day / Week / Month switch (radios, THE
   TABS' look), the panel the checked one picks, its readout, then the bars: accent, an estimate paler, the
   one under the pointer full strength. The plot's top edge is the peak (its figure above it), its foot the zero line. */
.spend { position: relative; margin: 0 0 22px; padding: 16px 18px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.spend-by { position: absolute; opacity: 0; pointer-events: none; }
.spend-tabs { position: absolute; top: 12px; right: 14px; }
.spend-tabs label { cursor: pointer; }
.spend-panel { display: none; }
#spend-by-day:checked ~ .spend-day, #spend-by-week:checked ~ .spend-week, #spend-by-month:checked ~ .spend-month { display: block; }
#spend-by-day:focus-visible ~ .spend-tabs .spend-tab-day, #spend-by-week:focus-visible ~ .spend-tabs .spend-tab-week, #spend-by-month:focus-visible ~ .spend-tabs .spend-tab-month { outline: 2px solid var(--accent); outline-offset: 1px; }
.spend-readout { min-height: 24px; margin: 4px 0 26px; padding-right: 220px; font-variant-numeric: tabular-nums; }
.spend-readout b { font-weight: 650; }
.spend-plot { position: relative; border-top: 1px dashed var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.spend-peak { position: absolute; left: 0; bottom: 100%; margin-bottom: 3px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.spend-plot svg { display: block; width: 100%; height: 150px; }
.spend-hit { fill: transparent; }
.spend-bar { fill: var(--accent); opacity: .78; transition: opacity .12s; }
.spend-bar.est { opacity: .4; }
.spend-slot:hover .spend-bar { opacity: 1; }
.spend-axis { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin-top: 6px; font-size: 12px; color: var(--muted); }
.spend-axis span { text-align: center; white-space: nowrap; overflow: visible; }
@media (prefers-reduced-motion: reduce) { .spend-bar { transition: none; } }
/* What it was, then what it read under it: the widest cell, wrapping (views/partials/reads.hbs). */
.usage td.what { width: 100%; white-space: normal; }
.usage .what-name { display: block; }
.usage .reads { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.usage .read-part { white-space: nowrap; }
.usage .reads .sep { color: var(--faint); }
.usage td.n { vertical-align: top; }

/* ============================================================
   Sign-in, history choice, first pull
============================================================ */
/* Terms, Privacy: a reading page. The footer that links them, quiet. */
.legal { max-width: 680px; }
.legal p, .legal li { line-height: 1.6; }
.legal ul { padding-left: 20px; margin: 0 0 14px; }
.legal li { margin-bottom: 8px; }
.foot { padding: 0 20px 24px; font-size: 13px; color: var(--muted); text-align: center; }
.foot a, .settings-foot a { color: var(--muted); }
/* Signed in, the site's links close Settings (no footer in the app). */
.settings-foot { margin: 40px 0 0; font-size: 13px; color: var(--muted); }
/* The credit (FOOTER_MADE_BY / FOOTER_MADE_IN): its own line under the links. */
.foot-made { display: block; margin-top: 6px; }
/* The signed-out front page (views/landing.hbs). On a phone: one reading column, the pitch and sign-in up top, then
   what it does, how it works and the price list. From 900px wide (below): the pitch beside the demo, and the
   sections as pairs and a row of steps. The price tables are THE board table (.board.framed). */
.landing { max-width: 620px; margin: 8vh auto 0; }
.landing h1 { font-size: 42px; margin-bottom: 12px; }
.landing h1 em { font-style: normal; color: var(--accent); }
.brand-word { font-weight: 700; color: var(--accent); }
.landing .signin { margin: 0 0 12px; }
/* The hero (services/demo.js): the real Inbox cards, inert, fading out at the foot like a list that goes on. */
/* THE TOUR (views/landing.hbs): the use cases are labels for hidden radios; the checked one shows its page and lights
   its use case. One rule per slide (the five keys of services/demo.js TOUR_CASES). The pages fade out at the foot. */
.tour-pick { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
/* "Use cases": a small label, then one plain line each; the one showing is ink with the accent's bar, the rest muted. */
.tour-head { margin: 28px 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.tour-cases { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 2px; }
.tour-cases label { display: block; padding: 7px 0 7px 14px; font-size: 17px; font-weight: 600; color: var(--muted); border-left: 2px solid var(--line); cursor: pointer; transition: color .15s, border-color .15s; }
.tour-cases label:hover { color: var(--ink); }
#tour-inbox:checked ~ .landing-pitch [for="tour-inbox"],
#tour-like:checked ~ .landing-pitch [for="tour-like"],
#tour-thread:checked ~ .landing-pitch [for="tour-thread"],
#tour-follows:checked ~ .landing-pitch [for="tour-follows"],
#tour-back:checked ~ .landing-pitch [for="tour-back"],
#tour-people:checked ~ .landing-pitch [for="tour-people"],
#tour-circle:checked ~ .landing-pitch [for="tour-circle"] { color: var(--ink); border-left-color: var(--accent); }
.tour-pick:focus-visible ~ .landing-pitch .tour-cases { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 4px; }
/* Each screen: the desktop app at a laptop's size (1120 × 700: the sidebar beside a page), scaled to the column like a
   screenshot (`zoom`, by the column's width: a container query, no script), in a window with the app's own edge. */
.tour-slides { margin: 28px 0 0; container-type: inline-size; user-select: none; }
.tour-slide { display: none; }
.tour-screen { width: fit-content; max-width: 100%; margin: 0 0 0 auto; /* to the column's right edge, the page's */ overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); box-shadow: var(--shadow); }
/* Each step: the zoom whose 1120 × zoom fits the column. */
.tour-app { display: flex; width: 1120px; height: 700px; overflow: hidden; zoom: .28; }
@container (min-width: 360px) { .tour-app { zoom: .32; } }
@container (min-width: 426px) { .tour-app { zoom: .38; } }
@container (min-width: 493px) { .tour-app { zoom: .44; } }
@container (min-width: 560px) { .tour-app { zoom: .5; } }
@container (min-width: 616px) { .tour-app { zoom: .55; } }
@container (min-width: 672px) { .tour-app { zoom: .6; } }
@container (min-width: 728px) { .tour-app { zoom: .65; } }
@container (min-width: 784px) { .tour-app { zoom: .7; } }
/* The real sidebar, drawn: in place, full height (its foot at the bottom, as in the app), never the phone's drawer. */
.tour-app .side { position: static; transform: none; box-shadow: none; z-index: auto; width: var(--side-w); height: 100%; padding: 16px 12px; }
.tour-app .side-fold { display: block; }
.tour-page { flex: 1; min-width: 0; padding: 24px 28px; overflow: hidden; }
#tour-inbox:checked ~ .tour-slides [data-slide="inbox"],
#tour-like:checked ~ .tour-slides [data-slide="like"],
#tour-thread:checked ~ .tour-slides [data-slide="thread"],
#tour-follows:checked ~ .tour-slides [data-slide="follows"],
#tour-back:checked ~ .tour-slides [data-slide="back"],
#tour-people:checked ~ .tour-slides [data-slide="people"],
#tour-circle:checked ~ .tour-slides [data-slide="circle"] { display: block; }
@media (prefers-reduced-motion: no-preference) { .tour-slide { animation: tour-in .35s ease-out; } }
@keyframes tour-in { from { opacity: 0; transform: translateY(6px); } }
.tour-slide .list-head { margin-bottom: 12px; }
.tour-slide .thread-follow { margin-bottom: 12px; }
.tour-toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-bottom: 12px; }
.tour-toolbar .muted { margin-right: auto; font-size: 14px; }
.tour-page .threads { max-width: 840px; }
/* The people screens in ROWS (Curtis: "make these all table rows full width cleaner, use less data if required"): the
   app's rows layout (.pcards.rows, under @container 1060px above), here on a narrower drawn page that carries fewer
   facts (no Likes: web.js TOUR_VIEW), so the names have room. */
.tour-page .pcards.rows .pcard { grid-template-columns: minmax(280px, 320px) minmax(0, 1fr) auto; grid-template-areas: "head facts acts"; gap: 0 20px; }
/* Your circle beside its "Share it" (the circle page's own two columns, which the drawn page is too narrow for). */
.tour-page .circle-page { grid-template-columns: minmax(0, 440px) minmax(220px, 300px); gap: 28px; }
.tour-page .pcards.rows .pcard-facts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(max-content, 1fr); gap: 16px; padding: 0; }
.landing h2.section { margin-top: 44px; }
.landing-lead { margin: 4px 0 0; color: var(--muted); line-height: 1.55; }
/* THE MODULE PICKER (partials/module-picker.hbs, web.js moduleEstimate; the front page and the start page): the handle
   or the guesses, then Settings' own .panel / .prow rows and total (Curtis 2026-11-16: "copy the settings look and
   feel"), the page's full width, then the way on (sign in, start). */
.cost-form { margin: 0; }
.cost-form .panel { margin-top: 12px; }
.estimate-guess { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.estimate-guess select { margin: 0 4px; }
/* What a row reads a month, beside the price it makes: label · count, plain ink, numbers lined up. */
.reads { display: grid; gap: 4px; max-width: 560px; margin: 10px 0 0; font-size: 13.5px; }
.reads div { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.reads dt { color: var(--ink); }
.reads dt select { margin: 0 4px; }
.reads dd { margin: 0; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink); }
.cost-go { margin-top: 18px; }
/* Pay as you go (views/landing.hbs): THE board table, hosted beside self-hosted. Its cells are sentences, so they wrap;
   the two price columns share the width equally; not sticky (it's short). */
.pricing { margin-bottom: 8px; }
.pricing .landing-lead { margin-bottom: 12px; }
.pricing-table th { position: static; }
.pricing-table td { white-space: normal; vertical-align: top; }
.pricing-table td:first-child { width: 28%; color: var(--muted); }
.pricing-table th:not(:first-child), .pricing-table td:not(:first-child) { width: 36%; }
.pricing-table .n { text-align: left; }
.pricing-note { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
/* The math under the picker's rows (X's sum, the markup): the amounts in ink, as the total's, a step quieter. */
.prow.sum .prow-cost { color: var(--ink); }
/* The hosted cost chart (partials/module-picker.hbs, web.js costChart): by what X charges a month, X's price dashed in
   muted ink, the platform fee in the accent (as its row), the total in ink; the estimate as the dot (a surface ring
   keeps it off the lines); each line named at its end, never by colour alone; each strip a native tooltip. */
.fee-chart { margin: 28px 0 0; overflow-x: auto; }
.fee-chart-title { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
/* Full width; below ~640px it keeps its size and scrolls inside its own box (the page never scrolls sideways). */
.fee-chart svg { display: block; width: 100%; min-width: 640px; height: auto; overflow: visible; }
.fc-grid { stroke: var(--line); stroke-width: 1; }
.fc-tick { fill: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.fc-x { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 5 4; }
.fc-line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.fc-total { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.fc-end { font-size: 12.5px; font-weight: 600; fill: var(--ink); }
.fc-end-x { fill: var(--muted); font-weight: 500; }
.fc-end-fee { fill: var(--accent); }
.fc-knee-small { fill: var(--accent); }
/* The knee's footnote mark, and the same mark beginning its note under the chart. */
.fc-mark { fill: var(--accent); font-size: 11px; font-weight: 700; }
.fc-mark-inline { display: inline-block; min-width: 1em; color: var(--accent); font-size: 11px; font-weight: 700; vertical-align: super; line-height: 0; }
.fc-note { margin-bottom: 2px; }
.fc-you-guide { stroke: var(--faint); stroke-width: 1; stroke-dasharray: 3 3; }
.fc-you { fill: var(--ink); stroke: var(--bg); stroke-width: 3; }
.fc-you-fee { fill: var(--accent); stroke: var(--bg); stroke-width: 2; }
.fc-you-label { fill: var(--ink); font-size: 14px; font-weight: 700; }
/* The strips only carry the tooltip; no highlight on hover (Curtis: "remove the column hover effect"). */
.fc-hit { fill: transparent; }
/* "Pay as you go · Stop anytime" (partials/paygo.hbs) beside the button that starts someone paying. */
.signin-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0; }
.signin-row .signin { margin: 0; }
.paygo { font-size: 14px; font-weight: 600; color: var(--ink); }
/* Onboarding, once (the picker's last row): under the month's total, its own quiet line. */
.prow-total:not(:last-child) { border-radius: 0; }
.prow.once .prow-cost { color: var(--ink); }
/* "+ your server and database" under the self-hosted total: said, not priced. */
.cost-plus { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 500; color: var(--muted); white-space: normal; }
/* What you need: each answer in its own price column, wrapping, in ink like a price. */
.prow-cost.need-cell { white-space: normal; color: var(--ink); line-height: 1.4; }
/* The total and What you need line their columns up at the top (the self-hosted total carries a note under it). */
.panel.two-prices .prow-total, .panel.two-prices .prow.need { align-items: start; }
/* The platform fee in its own colour (Curtis 2026-11-16): X's price is X's, this line is the platform's. */
.prow.fee .prow-name, .prow.fee .fee-amount, .pricing-table tr.fee td:not(:last-child) { color: var(--accent); }
/* The front page's picker has two price columns, hosted and self-hosted (.two-prices), under a header row. */
.panel.two-prices .prow { grid-template-columns: minmax(0, 1fr) auto 150px 150px; }
.prow-head { padding-top: 10px; padding-bottom: 10px; }
.prow-head .prow-cost { font-size: 13px; font-weight: 600; color: var(--ink); }
@media (max-width: 720px) {
  /* A phone: the row's text takes the whole width; the switch and the two prices share the line under it. */
  .panel.two-prices .prow { grid-template-columns: minmax(0, 1fr) auto auto; }
  .panel.two-prices .prow-text { grid-column: 1 / -1; grid-row: 1; }
  .panel.two-prices .prow-control { grid-column: 1; grid-row: 2; }
  .panel.two-prices .prow-cost { grid-row: 2; }
  .prow-head .prow-control, .prow-head .prow-text { display: none; }
  .prow-head .prow-cost { grid-row: 1; }
  .prow-head .prow-cost:first-of-type { grid-column: 2; }
}
/* Settings' .switch drawn over a checkbox (a GET form's field, so the picker works without script): the checkbox
   takes the clicks, the span shows the state. */
.switch-check { position: relative; display: inline-flex; flex: none; }
.switch-check input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.switch-check input:checked + .switch { background: var(--accent); }
.switch-check input:checked + .switch::after { transform: translateX(16px); }
.switch-check input:focus-visible + .switch { box-shadow: 0 0 0 4px var(--accent-soft); }
/* The estimate from a real account (views/landing.hbs): the handle box and its button on one line, then what X counted. */
/* The Estimate button and the box one height (Curtis: "same height"), fixed rather than stretched: on a phone the box's
   column grows to hold the counts under it, and a stretched button became a circle. */
.estimate-handle { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin: 8px 0 12px; }
.estimate-handle input, .estimate-handle .pill { box-sizing: border-box; height: 44px; }
/* The box holds the input and, once X has counted for the handle, what it counted, at its right end. */
.handle-box { position: relative; flex: 1 1 180px; min-width: 0; display: flex; }
.estimate-handle input { flex: 1 1 auto; width: 100%; min-width: 0; padding: 9px 14px; font: inherit; font-size: 15px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--btn-r); }
.handle-box.measured input { padding-right: 430px; }
.handle-note { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 13.5px; color: var(--muted); white-space: nowrap; pointer-events: none; font-variant-numeric: tabular-nums; }
.handle-note b { color: var(--ink); }
@media (max-width: 720px) {
  .handle-box { flex-direction: column; gap: 6px; }
  .handle-box.measured input { padding-right: 14px; }
  .handle-note { position: static; transform: none; white-space: normal; padding-left: 14px; }
}
.estimate-handle input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.estimate-measured { margin: 0 0 8px; font-size: 15px; line-height: 1.5; }
.estimate-measured.warn { color: var(--muted); }
/* Settings: the measured line with Re-estimate at its right (wraps under it on a phone). */
.estimate-measured.has-action { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.estimate-measured.has-action .btn { flex: none; }
/* A laptop or wider: use the width (Curtis 2026-11-16: "too single vertical column on a laptop desktop"). */
@media (min-width: 900px) {
  /* 1240: the hero's screens are the app scaled down and need the width to read (2026-11-17, Curtis: "these little
     screenshots are not good, they need to be bigger"), and everything below keeps to the same edges ("match the
     width"). The use cases take the narrower share. */
  .landing { max-width: 1240px; margin-top: 6vh; }
  .landing-hero { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; align-items: start; }
  .landing-pitch { padding-top: 64px; }
  .landing h1 { font-size: 56px; line-height: 1.04; letter-spacing: -.03em; }
  .landing-pitch .note { font-size: 17px; }
  .tour-slides { margin: 0; padding-top: 64px; }
  .landing h2.section { margin-top: 80px; }
}
/* THE toast (views/partials/toast.hbs): bottom centre, the ink colour inverted so it reads over any page. It fades
   by itself after 6 s with CSS alone (no script needed); an error stays until dismissed. Reduced motion: it still
   goes, without the slide. */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 50; display: flex; align-items: center; gap: 10px; max-width: min(560px, calc(100vw - 32px)); padding: 10px 8px 10px 16px; font-size: 14px; color: var(--bg); background: var(--ink); border-radius: 12px; box-shadow: var(--shadow); transform: translateX(-50%); animation: toast-in .2s ease-out, toast-out .3s ease-in 6s forwards; }
.toast.error { animation: toast-in .2s ease-out; }
.toast-x { flex: none; display: inline-grid; place-items: center; padding: 4px; color: inherit; background: transparent; border: 0; border-radius: 8px; cursor: pointer; opacity: .7; }
.toast-x:hover { opacity: 1; }
.toast-x .ico { fill: currentColor; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }
@keyframes toast-out { to { opacity: 0; visibility: hidden; } }
/* A Done's toast offers Undo (partials/toast.hbs): a quiet text button in the accent, and 10 s to reach it. */
.toast.has-undo { animation: toast-in .2s ease-out, toast-out .3s ease-in 10s forwards; }
.toast-undo { margin: 0; }
.toast-undo-btn { padding: 4px 10px; font: inherit; font-weight: 700; color: var(--accent); background: transparent; border: 0; border-radius: 8px; cursor: pointer; }
.toast-undo-btn:hover { background: color-mix(in srgb, var(--bg) 14%, transparent); }
@media (prefers-reduced-motion: reduce) {
  .toast { animation: toast-out .01s linear 6s forwards; }
  .toast.has-undo { animation: toast-out .01s linear 10s forwards; }
  .toast.error { animation: none; }
}
/* Sign in with X (the front page and the signed-out header): the accent, as the app's primary buttons (.pill). */
.signin { display: inline-block; margin-top: 10px; padding: 12px 26px; border-radius: var(--btn-r); background: var(--accent); color: var(--accent-ink); font-weight: 600; transition: transform .15s, filter .15s; }
.signin:hover { text-decoration: none; transform: translateY(-1px); filter: brightness(1.1); }
/* The header's (signed out): the same button, header-sized. */
.signin.signin-sm { margin: 0 6px 0 0; padding: 7px 16px; font-size: 14px; }

.choose { max-width: 580px; margin: 6vh auto 0; }
/* The money side of a page that asks for it (history: the deposit). */
.funds { margin: 18px 0 0; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.funds-line { margin: 0; }
.funds-num { font-variant-numeric: tabular-nums; }
.funds-add { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.options { display: grid; gap: 10px; margin-top: 18px; }
.options form { margin: 0; }
/* A choice and, when the balance doesn't cover it, the one top-up that does, beside it (under it on a phone). */
.option-row { display: flex; align-items: center; gap: 12px; }
.option-row form { flex: 1; min-width: 0; }
.option-add { flex: none; min-width: 150px; text-align: center; white-space: nowrap; } /* one width, so the cards line up */
@media (max-width: 720px) { .option-row { flex-direction: column; align-items: stretch; } .option-add { text-align: center; } }
.option { display: grid; gap: 2px; width: 100%; text-align: left; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; cursor: pointer; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.option:hover { border-color: var(--accent); transform: translateY(-1px); }
.option:disabled { cursor: default; opacity: .55; border-color: var(--line); transform: none; }
.option-head { display: flex; justify-content: space-between; gap: 12px; }
.option-label { font-weight: 650; }
.option-cost { color: var(--muted); white-space: nowrap; }
.option-detail { font-size: 14px; color: var(--muted); }
.pull { appearance: none; width: 100%; height: 8px; border: 0; border-radius: 999px; overflow: hidden; background: var(--line); }
.pull::-webkit-progress-bar { background: var(--line); }
.pull::-webkit-progress-value { background: var(--accent); }
.pull::-moz-progress-bar { background: var(--accent); }

/* ============================================================
   Phones
============================================================ */
@media (max-width: 720px) {
  main, main.wide, .shell-main > main:not(.wide) { padding: 20px 14px 56px; }
  .crumbs-row { padding: 16px 14px 0; }
  main.under-crumbs { padding-top: 16px; }
  h1 { font-size: 24px; }
  /* Usage on a phone (the sweep, 2026-11-17: four columns squeezed what each row read into 4 or 5 wrapped lines): each
     row two lines, edge to edge, a line between, no box: the time, what it was and its cost on the first, what it read
     under them, the whole width. No column heads, balance or Charged (the big number at the top is the balance). The
     what cell's two parts become the row grid's own (display: contents). The chart's switch drops under its readout. */
  .usage.board, .usage.board tbody { display: block; }
  .usage.board { width: auto; margin: 0 -14px; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
  .usage thead, .usage.board td.bal { display: none; }
  .usage tr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "when name cost" "reads reads reads"; align-items: baseline; column-gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); }
  .usage tbody tr:last-child { border-bottom: 1px solid var(--line); }
  .usage.board td { display: block; padding: 0; border: 0; white-space: normal; } /* .board: out-weighs the phone's own .board td below */
  .usage td.when { grid-area: when; }
  .usage td.what { display: contents; }
  .usage .what-name { grid-area: name; min-width: 0; }
  .usage .reads { grid-area: reads; }
  .usage td.n:not(.bal) { grid-area: cost; }
  .usage .read-part { white-space: normal; }
  .spend { padding: 12px 12px 10px; }
  .spend-tabs { position: static; margin-bottom: 10px; }
  .spend-readout { padding-right: 0; }

  /* Header, two rows: ☰ (the sidebar's drawer) + wordmark + icon buttons, then you (avatar, handle, counts). Labels
     become tooltips. */
  .top, .has-side .top { flex-wrap: wrap; row-gap: 8px; column-gap: 8px; padding: 10px 14px; position: static; }
  .top .brand { order: 1; }
  .top-actions { order: 3; gap: 2px; }
  .top-me { order: 4; flex: 1 1 100%; padding: 0; }
  .top-me:hover { background: none; }
  .top-me .avatar { width: 26px; height: 26px; }
  /* Only the header's buttons become icons: a .btn anywhere else keeps its label. */
  .top-actions .btn { padding: 0; width: 36px; height: 36px; justify-content: center; }
  .top-actions .btn-label { display: none; }
  /* The sync status: "● Live" stays (the pill is small); "Synced 4m ago" goes (the ↻ is enough room's worth). */
  .sync-state:not(.is-live) { display: none; }
  .top-actions .ico { width: 18px; height: 18px; }

  /* Person header: avatar beside the name, then the details line and bio full width. */
  .profile { display: grid; grid-template-columns: 64px 1fr; gap: 6px 14px; align-items: center; }
  .profile .avatar-lg { width: 64px; height: 64px; font-size: 24px; }
  .profile-text { display: contents; }
  .profile-name { grid-column: 2; }
  .profile h1 { margin: 0; font-size: 26px; }
  .profile .sub { grid-column: 1 / -1; }
  .profile .bio { grid-column: 1 / -1; }
  /* The phone sweep (2026-11-17): the name, then Open on X and Follow on their own line under it; the facts as one line
     (followers · where · their site · Mutual); no ↻ or @handle here (Open on X has them). The first part shown starts
     without a dot (.sub-handle was the first). */
  .profile form.refresh, .profile .sub-handle { display: none; }
  .profile .sub-handle + .sub-part::before { content: none; }
  .profile-name .pcard-actions { flex-basis: 100%; justify-self: start; }

  .board th { position: static; }
  /* Conversations: what it's about + last word (the date and counts are on the conversation itself). */
  .board.convos th:nth-child(1), .board.convos td:nth-child(1),
  .board.convos th:nth-child(3), .board.convos td:nth-child(3), .board.convos th:nth-child(4), .board.convos td:nth-child(4), .board.convos .likes { display: none; }
  .board th, .board td { padding: 10px 8px; }
  /* Headers wrap so the text column keeps its width. */
  .board th { white-space: normal; font-size: 12px; }
  .who-link { gap: 10px; }
  .msg { max-width: 88%; }
}
