/* meme it: newsprint board. A sharper, denser imageboard-meets-X feel: one sans (Inter) for all UI
   chrome — handles, times, tabs and the nav included — heavy tight Inter Display for the masthead and
   headings (full-mock voice, 2026-11-14: the approved feed mock's type system went site-wide; the
   mono chrome voice retired). Square geometry, hairline rules, ink buttons. Colour stays limited to
   the green pressed upvote and an optional personal background. */
@font-face { font-family: "InterV"; src: url("/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
/* Inter Display (Inter's opsz cut): the italic sets the "meme it." masthead, the upright sets headings. SIL OFL 1.1. */
@font-face { font-family: "InterD"; src: url("/fonts/inter-display-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "InterD"; src: url("/fonts/inter-display.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
/* IBM Plex Mono (SIL OFL 1.1, assets/PLEX-OFL.txt): retired from the chrome voice (full-mock,
   2026-11-14) — one survival only: the community tiles' letters (.cav, identity tiles, not
   avatars). The colour sheet's slider labels (.hsb-row) went with the brightness slider
   (removed 2026-11-17). */
@font-face { font-family: "Plex"; src: url("/fonts/plex-mono.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex"; src: url("/fonts/plex-mono-medium.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }
/* Matched fallbacks so swap doesn't reflow body copy or the wordmark. */
@font-face { font-family: "InterV Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Helvetica"); size-adjust: 107%; ascent-override: 90%; descent-override: 22%; line-gap-override: 0%; }
@font-face { font-family: "InterD Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Helvetica"); size-adjust: 107%; ascent-override: 90%; descent-override: 22%; line-gap-override: 0%; }
@font-face { font-family: "Plex Fallback"; src: local("ui-monospace"), local("SFMono-Regular"), local("Menlo"), local("Consolas"); size-adjust: 100%; ascent-override: 80%; descent-override: 20%; line-gap-override: 0%; }

/* Light is the default: warm newsprint paper. */
:root {
  --bg: #efece4; --fg: #141412; --mute: #5c5a54; --faint: #66635b; --line: #d9d5cc; --soft: #e7e3d9; --edge: #c9c4b8; --field: #f5f3ed; --panel: var(--bg);
  --inv-bg: #141412; --inv-fg: #efece4; --av0: #e2ddd1; --av1: #d6d0c3; --av2: #cbc5b6; --av3: #ebe7de;
  --up: #157a3a; /* upvote / mention green: the only accent colour. Picked for AA contrast on newsprint. */
  --bad: #a31f12; /* error / danger voice: field errors, destructive treatments. AA on bg, field and soft (5.9:1+). */
  /* Motion tokens (audit fix round): the house curve and the standard durations already in use —
     new code takes them from here; existing rules keep their literals. The expressive register
     (motion voice, owner ruling 2026-11-15) adds ONE curve beside them: --ease-settle, the capped
     overshoot the rationed expressive set runs on. Round 1's set: the upvote burst, the wordmark
     hop and the sheets' settle entrance. Round 2 (owner verdicts 2026-11-15) extends the ration
     to seven more named treatments: Top chart life (row travel + rank roll), the drawer's
     expressive entrance, the viewer open morph, the publish drop, feed arrival, the save pop
     and the bell badge pop. The stream swap spring (owner ruling 2026-11-17) adds one more:
     the shared swap-in rise of the home streams and the template results (12px of travel,
     260ms on the settle curve). Nothing else takes the settle curve or an expressive treatment
     without the owner asking; everything else stays on the productive register above. */
  --ease: cubic-bezier(.2,.8,.2,1); --mot-fast: 160ms; --mot: 200ms; --mot-slow: 260ms;
  --ease-settle: cubic-bezier(.3,1.3,.4,1);
  --col: 600px; --pad: 14px;
  --sans: "InterV", "InterV Fallback", ui-sans-serif, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display: "InterD", "InterD Fallback", "InterV", ui-sans-serif, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Plex", "Plex Fallback", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  /* Shared @handle type (full-mock voice, 2026-11-14): the byline/reply meta measure from the
     approved mock — the one sans at 13px / 1.35, muted; in-text mentions are the same sans at
     full size in the upvote green (see .mention). */
  --handle-font: var(--sans);
  --handle-size: 13px;
  --handle-weight: 400;
  --handle-leading: 1.35;
  --handle-tracking: 0;
  color-scheme: light;
}
/* Dark: true black. Chosen in Settings, or Device on a phone/computer in dark mode. */
:root[data-theme="dark"] { --bg: #000; --fg: #f3f3f0; --mute: #8c8c88; --faint: #7d7d79; --line: #222; --soft: #111; --edge: #2e2e2e; --field: #0b0b0b; --panel: #0a0a0a;
  --inv-bg: #f3f3f0; --inv-fg: #000; --av0: #161616; --av1: #1e1e1e; --av2: #262626; --av3: #0e0e0e; --up: #3ccf72; --bad: #ff9d94; color-scheme: dark; }
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] { --bg: #000; --fg: #f3f3f0; --mute: #8c8c88; --faint: #7d7d79; --line: #222; --soft: #111; --edge: #2e2e2e; --field: #0b0b0b; --panel: #0a0a0a;
    --inv-bg: #f3f3f0; --inv-fg: #000; --av0: #161616; --av1: #1e1e1e; --av2: #262626; --av3: #0e0e0e; --up: #3ccf72; --bad: #ff9d94; color-scheme: dark; }
}
/* ---------- base ---------- */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 160ms; animation-timing-function: cubic-bezier(.2,.8,.2,1); }
::view-transition-group(masthead) { animation: none; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); scroll-padding-top: 112px; /* anchors (#p…, #r…, #replies) land below the sticky masthead */
  -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: var(--bg); color: var(--fg);
  font: 400 14.5px/1.4 var(--sans); letter-spacing: -0.006em; text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01"; font-optical-sizing: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: inherit; text-decoration: none; }
/* text selection wears the one accent only where rule 11 sanctions it — text fields (the
   editor's own editing text deepens it: .tx-edit::selection). The rest of
   the page keeps the platform default, so a stray selection never paints a green wash
   over pictures (B4). */
input::selection, textarea::selection { background: color-mix(in srgb, var(--up) 26%, transparent); }
/* every hover underline in this sheet is gated behind (hover: hover) (rider sweep, 2026-11-17):
   on touch the tap fires :hover and it sticks, so an un-gated hover underline renders on phones
   as a standing decoration — the .act opt-out's leak (see the press-polish note below) turned
   out to be a class, not a case. Desktop keeps each affordance; touch never sees one. */
@media (hover: hover) { a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; } }
:focus-visible { outline: 2px solid var(--up); outline-offset: 2px; border-radius: 0; }
h1 { font-family: var(--display); font-weight: 850; font-size: 26px; line-height: 1.05; letter-spacing: -0.032em; word-spacing: 0.1em;
  font-variation-settings: "opsz" 32; margin: 0 0 6px; text-wrap: balance; }
p { text-wrap: pretty; }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.quiet { color: var(--mute); }
.small { font-size: 13px; line-height: 1.45; letter-spacing: 0; }
.lede { color: var(--mute); font-size: 13.5px; margin: 4px 0 14px; }
.col { max-width: var(--col); margin: 0 auto; padding: 0 var(--pad) 64px; }
@media (min-width: 640px) { body:not(.bare) .col { border-left: 1px solid var(--line); border-right: 1px solid var(--line); min-height: calc(100vh - 56px); min-height: calc(100dvh - 56px); } }
/* a focused surface (edit profile) carries no masthead, so the masthead's 56px is not
   subtracted from its column height */
@media (min-width: 640px) { body.focused .col { min-height: 100vh; min-height: 100dvh; } }
.empty { color: var(--mute); padding: 32px 0; font-size: 14.5px; line-height: 1.5; }
/* an empty state's next step is a real way forward, set in ink like .aux links — not lost in the muted sentence */
.empty a { color: var(--fg); font-weight: 600; }
fieldset { border: 0; padding: 0; margin: 0; }
/* section labels: heavy tight Inter Display, like the mock */
.sec { font-family: var(--display); font-size: 15px; font-weight: 800; line-height: 1.3; letter-spacing: -0.02em; font-variation-settings: "opsz" 32;
  color: var(--fg); margin: 22px 0 6px; }
.sec .k, h1 .k { font: 500 11px/1 var(--sans); letter-spacing: 0; color: var(--faint); margin-left: 6px; font-feature-settings: normal; }
/* Legacy utility class (the drawer's handle line, the image picker's meta line): it named the
   mono meta voice; the voice is the sans now (full-mock, 2026-11-14), the class name stays so
   the markup doesn't churn. Every other chrome element takes the sans from its own rule or by
   inheritance — there is no mono list anymore. */
.mono { font-family: var(--sans); font-feature-settings: normal; }

/* ---------- masthead: heavy italic grotesque wordmark + the upvote-arrow stop ---------- */
.mark { display: inline-flex; align-items: baseline; line-height: 1; color: var(--fg); white-space: nowrap; padding-right: .06em;
  font-family: var(--display); font-style: italic; font-weight: 900; font-size: 27px; font-feature-settings: normal; position: relative; }
/* the wordmark's box is its glyph height (27px in the 56px bar): its hit area reaches the
   frame's 44px floor through an overlay, so the baseline seating above never moves
   (sweep fix round, 2026-11-14). */
.mark::after { content: ""; position: absolute; left: 0; right: 0; top: -9px; bottom: -9px; }
.mark:hover { text-decoration: none; }
.mark-name { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 27px; letter-spacing: -0.062em; word-spacing: 0.06em;
  text-transform: lowercase; font-variation-settings: "opsz" 32; }
/* The stop is the upvote board-arrow (X6): solid --up, sheared to the italic lean in the SVG itself,
   ~0.33em of the mark's size, seated on the baseline (the flex baseline of an SVG is its bottom edge,
   and the viewBox is cropped so that edge is the path's baseline) and kissing the final t. */
.mark-arrow { height: .33em; width: auto; margin-left: -.012em; flex: none; }
/* The wordmark hop (motion voice, owner ruling 2026-11-15): the arrow stop rises 18% of the
   mark's size and lands with a squash to .92, 320ms on the settle curve — played by app.js once
   on arrival and again when the mark is tapped; never loops. Reduced motion: app.js never adds
   the class, and the animation is off here too. */
@keyframes wm-hop { 0% { transform: translateY(0) scaleY(1); } 42% { transform: translateY(-.18em) scaleY(1); } 78% { transform: translateY(0) scaleY(.92); } 100% { transform: translateY(0) scaleY(1); } }
.mark-arrow.hopping { animation: wm-hop 320ms var(--ease-settle); transform-origin: 50% 100%; }
@media (prefers-reduced-motion: reduce) { .mark-arrow.hopping { animation: none; } }
.auth-mark { margin-bottom: 32px; }
.auth-mark .mark, .auth-mark .mark-name, .auth-mark .mark-arrow { font-size: 44px; }
/* the front door's nameplate: the wordmark over a hard ink rule, one quiet line of what this place is */
.auth-tag { margin: 16px 0 0; padding-top: 12px; border-top: 2px solid var(--fg);
  font: 500 11px/1.4 var(--sans); letter-spacing: .05em; color: var(--mute); font-feature-settings: normal; }

/* ---------- top bar: solid paper + a hard hairline, no glass.
   Menu left, centered wordmark, Create (plus) on the right. Equal side columns keep the wordmark centered. ---------- */
.top { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top);
  view-transition-name: masthead; }
/* Media sits flush (legacy-furniture fixes, 2026-11-17): on a profile the banner band is the
   first thing under the masthead, and the header's hairline drew a grey seam across the
   picture's top edge — so a page carrying a profile head drops the border and the banner
   meets the header directly. Every other page keeps the hairline. */
body:has(main .prof) .top { border-bottom-color: transparent; }
.top-in { max-width: var(--col); margin: 0 auto; padding: 0 var(--pad); height: 56px; display: grid; grid-template-columns: 88px 1fr 88px; align-items: center; }
/* The guest masthead shares the member construction (fixed equal side columns) since
   2026-11-18: its old 1fr auto 1fr let a wide right cluster (search icon + join free, 145px)
   grow its track past the fr share and push the wordmark off centre at phone widths. Fixed
   columns keep the mark at true centre in both mastheads; the clusters overflow their
   columns symmetrically instead, like the member row's three icons do. */
/* masthead finish (2026-11-14): the guest masthead speaks the tab strip's sans, not the frame's
   mono meta — join free is a filled 44px button (ink on paper, inverting on hover; never
   green — rule 11's primaries are enumerated) */
.guest-join { color: var(--fg); white-space: nowrap; display: inline-flex; align-items: center; height: 44px; font: 600 14px/1 var(--sans); letter-spacing: 0; border: 1px solid var(--fg); background: var(--fg); color: var(--bg); padding: 0 16px; border-radius: 2px; }
.guest-join:hover { text-decoration: none; background: var(--bg); color: var(--fg); }
/* guest masthead (guest drawer, 2026-11-18): the member chrome's own cells and one row at every
   width — the same hamburger in the left seat (the guest drawer carries templates and sign in),
   the wordmark centred, the magnifier and join free on the right. The bare "sign in · templates"
   text pair that used to sit on the left is gone: it read as scaffolding and its wide cluster
   pushed the wordmark off centre. No Make a meme up here: making gets its one home in the guest
   home's create row (and on the template pages themselves). */
.top-in.guest .mright { gap: 10px; }
.mleft { justify-self: start; min-width: 0; width: 100%; display: flex; align-items: center; }
.top-in > .mark { justify-self: center; }
/* the compose shell's slim header (2026-11-19): the centred wordmark alone in the
   masthead's own row — a single centred element, no clusters to keep clearances for */
.top-in.slim-in { display: flex; justify-content: center; }
.mright { justify-self: end; width: 100%; display: flex; align-items: center; justify-content: flex-end; gap: 0; }
.mright .create, .mright .hdr-bell, .mright .hdr-search { display: grid; place-items: center; width: 44px; height: 44px; color: var(--fg); flex: none; position: relative; }
.mright .create:hover, .mright .hdr-bell:hover, .mright .hdr-search:hover { text-decoration: none; }
.mright .create .ico, .mright .hdr-bell .ico, .mright .hdr-search .ico { width: 20px; height: 20px; }
.mright .hdr-bell .udot { position: absolute; top: 11px; right: 11px; width: 6px; height: 6px; border-radius: 1px; background: var(--up); pointer-events: none; }
/* Bell badge pop (motion round 2, owner verdicts 2026-11-15): the FIRST time the unread marker
   appears in a session view it pops in on the settle curve and the bell hops once — app.js
   gates it to that first appearance (a session flag; a marker that was already there and seen
   never replays). The marker itself stays the shipped green square; a pop, never a shake. */
@keyframes badge-pop { 0% { transform: scale(0); } 60% { transform: scale(1.45); } 100% { transform: scale(1); } }
.hdr-bell .udot.pop { animation: badge-pop 300ms var(--ease-settle) both; }
@keyframes bell-hop { 0% { transform: translateY(0); } 45% { transform: translateY(-3.5px); } 100% { transform: translateY(0); } }
.hdr-bell .ico.hop { animation: bell-hop 280ms var(--ease-settle); }
@media (prefers-reduced-motion: reduce) { .hdr-bell .udot.pop, .hdr-bell .ico.hop { animation: none; } }
/* narrow phones: the mastheads tighten rather than crowd. The guest row used to carry a
   two-link left cluster whose box touched the wordmark's at 390px and crossed it below
   (sweep fix round, 2026-11-14); since the guest drawer (2026-11-18) the guest left seat
   is the same 44px hamburger as the member's, so the left side needs no tier of its own —
   what remains is the shared wordmark step at ≤420px, the guest right cluster's gap
   closing there, and the ≤384px tier below. Nothing else about the finish changes: join
   free stays the filled button, the wordmark keeps its treatment. */
@media (max-width: 420px) {
  .top-in.guest .mright { gap: 0; }
  .top-in .mark, .top-in .mark-name { font-size: 26px; }
}
@media (max-width: 384px) {
  /* the masthead's right cluster (search + join free for guests, 2026-11-18): at the narrowest
     widths the wordmark steps down and the guest's join button trims its padding so the
     magnifier keeps a real gap — the same tightens-rather-than-crowds move as ever. */
  .top-in .mark, .top-in .mark-name { font-size: 20px; }
  .top-in.guest .guest-join { padding: 0 12px; }
}
/* The narrowest tier (2026-11-18): at ≤340px a centred wordmark and the three-icon cluster
   cannot both fit at full size — the row's inner width is 292px and the parts ask for
   ~337px — so the masthead icons' boxes trim to 38px wide (their height, and every target
   at standard widths, stays 44px) and the wordmark steps to 18px. The wordmark stays at
   true centre and the magnifier's glyph clears its ink instead of sitting on it. */
@media (max-width: 340px) {
  .top-in .mark, .top-in .mark-name { font-size: 18px; }
  .mright .create, .mright .hdr-bell, .mright .hdr-search { width: 38px; }
  .top-in.guest .guest-join { padding: 0 10px; }
}
/* no extra rule between the wordmark row and a slim bar under it (feed tabs, back strip) */
.top-bar { max-width: var(--col); margin: 0 auto; }

/* sub-tabs (following / discover, posts / saved): same sans, same hard rule; 44px targets */
.tabs { display: flex; align-items: stretch; gap: 28px; height: 44px; padding: 0 var(--pad); }
.tabs > a { position: relative; display: flex; align-items: center; font: 500 12px/1 var(--sans); letter-spacing: -0.01em; color: var(--mute); }
.tabs > a:hover { color: var(--fg); text-decoration: none; }
.tabs > a.on, .tabs > a[aria-current="true"] { color: var(--fg); }
.tabs > a[aria-current="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--fg); }
.tabs-aux { margin-left: auto; display: flex; align-items: center; font: 400 11px/1 var(--sans); color: var(--faint); letter-spacing: 0; font-feature-settings: normal; }
/* the saved screen's segment switch (posts | templates, saved-templates build 2026-11-21)
   rides at the top of the body — its back strip is unchanged — so the shared .tabs row
   drops the bar's gutter padding there: the column already pads. */
.tabs.saved-segs { padding: 0; }
/* home stream tabs (discover | following | top): the mock's centred equal thirds — the ONE .tabs
   surface in the same sans. Three equal grid segments divide the full row; each link IS its segment
   (centred label, the shared ::after underline spanning the segment, seated on the hairline as
   above). Sans 14px upright, mute → fg, never green (rule 11). The shared .tabs stays untouched. */
.stream-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 0; }
.stream-tabs > a { justify-content: center; font: 500 14px/1 var(--sans); letter-spacing: 0; }
/* stripTabs (templates, community): the back arrow leads the one bar row, sized like the strip's back control */
.tabs-strip > a.back { display: grid; place-items: center; width: 44px; height: 44px; margin-left: -14px; color: var(--fg); flex: none; }
/* back strip on an opened post */
.strip { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 var(--pad); }
.strip .back { display: grid; place-items: center; width: 44px; height: 44px; margin-left: -14px; color: var(--fg); }
/* slim strip title (settings redesign, 2026-11-20): the shared rule behind every backStrip
   title leaves the display cut for the page-title's voice — 15px/600 sans — so every strip
   on the site speaks the same way; titles themselves render lowercase (the rider). */
.strip-t { font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip-aux { margin-left: auto; font: 400 11px/1 var(--sans); color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Home ---------- */
.bell { display: inline-flex; align-items: center; gap: 6px; font: 400 11px/1 var(--sans); color: var(--faint); }
.bell:hover { color: var(--fg); text-decoration: none; }
.bell .quiet { color: inherit; }
.bell .dot { width: 6px; height: 6px; border: 1px solid var(--faint); }
.bell.on { color: var(--fg); font-weight: 500; }
.bell.on .dot { background: var(--fg); border-color: var(--fg); }
/* one search design everywhere (home .search, templates/communities .srch): a borderless pill in the
   iOS search-field form (search pill + spaced flat, 2026-11-15) — a 44px pill on a 48px row, filled
   var(--soft) at a field's 12px radius, the 18px magnifier at a 12px inset with a 6px gap so glyph and
   word read as one unit, Clear when active — the same geometry on every surface with a search field */
.search { display: flex; align-items: center; gap: 6px; margin: 12px 0 2px; padding: 0 16px 0 12px; height: 44px; border-radius: 12px; background: var(--soft); color: var(--faint); }
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--mute); stroke-width: 1.7; flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0; outline: none; font-size: 16px; border-radius: 0; caret-color: var(--up); }
.search input:focus { background: transparent; }
.search:focus-within { box-shadow: inset 0 0 0 1px var(--up); } /* focus lights the pill green (editor fix v5 rider, owner-settled 2026-11-16): the caret and the ring are the product acting — rule 11's focus family — never a standing tint */
.search input::placeholder { color: var(--faint); }
.search input::-webkit-search-cancel-button { display: none; }
.search .clear, .srch .clear { flex: none; display: flex; align-items: center; align-self: stretch; padding: 0 0 0 8px; font: 400 12px/1.2 var(--sans); color: var(--mute); }
.search .clear:hover, .srch .clear:hover { color: var(--fg); }

/* ---------- piece rows: the post as a block (feed post-block rebuild, 2026-11-14) ----------
   One block everywhere the piece renders — home streams, post-page continuations, communities,
   Made with it, search, the family page and the post page itself: air between posts (a ~26px
   separation carried by the block's own padding over its hairline since the feed-gap rider,
   2026-11-21 — the stacked 26px margin that once showed the page through is retired), the
   byline as avatar + a two-line who column, the media full-bleed below the WHOLE byline, the
   words under the media, and a full-width action row. */
.piece { position: relative; margin: 0 calc(-1 * var(--pad)) 0; padding: 14px var(--pad) 12px; border-bottom: 1px solid var(--line); background: var(--bg); }
/* feed rows: the whole body opens the post (links without JS, empty space with JS) — the action
   band's dead space included (row-door fix, 2026-11-21), so the band takes the row's cursor too;
   only the inline reply form keeps its own */
.piece:not(.piece-full) { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.piece:not(.piece-full) .reply-inline { cursor: auto; }
.by { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.by-av { line-height: 0; flex: none; }
.by-who { display: flex; flex-direction: column; min-width: 0; }
.by-name { font-weight: 650; letter-spacing: -0.012em; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.piece .by-name { font-size: 15px; font-weight: 600; line-height: 1.25; }
.by-meta { color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px;
  font-family: var(--handle-font); font-weight: var(--handle-weight); font-size: var(--handle-size); line-height: var(--handle-leading);
  letter-spacing: var(--handle-tracking); min-width: 0; font-feature-settings: normal; }
.by-meta a { color: inherit; }
/* the post Options trigger rides the byline's right end (post-menu build, 2026-11-20):
   it carries the auto margin that seats the header's right cluster, so when Top's rank
   numeral follows it the numeral gives up its own auto margin and the pair sits
   together — trigger immediately left of the numeral, the numeral on the edge. */
.pmenu-btn { margin-left: auto; flex: none; align-self: center; background: none; border: 0; }
.pmenu-btn + .rk-n { margin-left: 0; }
/* person avatars are round in every context (full-mock voice, 2026-11-14); sizes stay per
   context except the post/reply byline, which takes the mock's 36px (.av-b). Community icons
   (.cav) are identity tiles, not avatars — their shape deliberately does not follow. */
.av { flex: none; display: inline-grid; place-items: center; border-radius: 50%; font-weight: 600; color: var(--fg); letter-spacing: -0.02em; }
/* (Avatars sit clean: the 1px --edge ring the .av rule used to carry is retired —
   legacy-furniture fixes, 2026-11-17. The profile's large avatar keeps only its
   --bg cutout ring below, which is separation from the banner, not an outline.) */
.av-s { width: 32px; height: 32px; font-size: 12px; }
.av-b { width: 36px; height: 36px; font-size: 13px; }
.av-m { width: 40px; height: 40px; font-size: 14px; }
.av-l { width: 64px; height: 64px; font-size: 22px; }
.av-t0 { background: var(--av0); } .av-t1 { background: var(--av1); } .av-t2 { background: var(--av2); } .av-t3 { background: var(--av3); }
.av-img { object-fit: cover; display: inline-block; background: var(--soft); } /* seeded photos; initials stay the fallback */
.text { display: block; margin: 14px 0 0; color: var(--fg); white-space: pre-wrap; overflow-wrap: anywhere;
  font-size: 15px; line-height: 1.5; letter-spacing: -0.011em; }
.text a.js-open { color: inherit; font-weight: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.text a.js-open:hover { text-decoration: none; }
.text.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
/* @mentions: the mock's treatment — the body sans at full size, weight 600, upvote green. */
.mention, .act-sent a.mention {
  color: var(--up);
  font-weight: 600; line-height: inherit; font-style: normal;
  text-decoration: none; vertical-align: baseline;
}
.mention:hover, .act-sent a.mention:hover { color: var(--up); } /* the green is a rule-11 @you signal and holds on every device; only the underline is hover-gated (2026-11-17) */
@media (hover: hover) { .mention:hover, .act-sent a.mention:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; } }
/* media: sharp, 1px edge, full column */
.media { position: relative; margin: 8px 0 0; }
/* image-forward: in a post the picture bleeds exactly to the block's edges — negative margins
   equal to the block's own side padding, on the post page as on feed rows (the old gutter pull
   overshot the full piece by a gutter's width and cropped baked captions at the screen edge). */
.piece .media { margin: 10px calc(-1 * var(--pad)) 0; }
.track { display: flex; align-items: flex-start; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; gap: 0; scrollbar-width: none; overscroll-behavior-x: contain; }
.track::-webkit-scrollbar { display: none; }
.slide { margin: 0; flex: 0 0 100%; scroll-snap-align: start; background: var(--soft); overflow: hidden; }
/* each slide is the picture's own ratio (inline aspect-ratio), so tall images make a tall post: no side bars. In a set,
   slides keep their own height (not stretched to the tallest); app.js fits the track to the slide on screen. */
html.js .slide img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .2s cubic-bezier(.2,.8,.2,1); }
html.js .slide img.is-in { opacity: 1; }
.slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { html.js .slide img { opacity: 1; transition: none; } }
/* the same considered arrival for the template tiles, the picker sheet and the template page's hero image:
   each rests on its --soft paper until the picture is really there (app.js fadeImgs drives all of them) */
html.js .tc .ti img, html.js .pk-i img, html.js .tpl-big img { opacity: 0; transition: opacity .2s cubic-bezier(.2,.8,.2,1); }
html.js .tc .ti img.is-in, html.js .pk-i img.is-in, html.js .tpl-big img.is-in { opacity: 1; }
@media (prefers-reduced-motion: reduce) { html.js .tc .ti img, html.js .pk-i img, html.js .tpl-big img { opacity: 1; transition: none; } }
.slide[data-ratio="auto"] img { height: auto; }
.view { display: block; width: 100%; height: 100%; cursor: zoom-in; -webkit-tap-highlight-color: transparent; } /* image link; JS opens the viewer */
/* Post pictures leave through the marked download, not the OS: a long-press on a post picture (or
   the link wrapping it) gets no callout menu and starts no selection — a selection would paint its
   wash over the picture and strand it there after the menu goes away.
   Template pictures and avatars keep the platform behaviour; no context menu is blocked anywhere. */
.media .slide a.view, .media .slide img { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
/* Navigation tiles get the same treatment (X5): template grid cards
   and Made-with-it cards are pictures you tap through, and the stuck iOS selection wash (the
   selection highlight over a selected image, which never clears) bites on them exactly as it did on
   post pictures. The template page's hero (.tpl-big) and avatars (.av/.cav) are picture-as-content
   and keep platform behaviour — no rule here touches them. */
a.tc, .tc a, .tc img { -webkit-user-select: none; user-select: none; }
.tc img { -webkit-touch-callout: none; }
/* a set's per-picture download on the post page: a quiet link over the picture's corner */
.piece-full .slide { position: relative; }
.slide .dl { position: absolute; left: 8px; bottom: 8px; z-index: 2; font: 500 12px/1 var(--sans); padding: 5px 7px;
  background: color-mix(in srgb, var(--bg) 78%, transparent); color: var(--fg); }
@media (hover: hover) { .slide .dl:hover { text-decoration: underline; text-underline-offset: 3px; } }
.slide .dl::after { content: ""; position: absolute; inset: -10px -7px; } /* the visible link is a quiet 12px line over the picture; its hit area reaches the 44px floor invisibly (controls sweep, 2026-11-17) */
.count { position: absolute; right: 7px; top: 7px; font: 500 12px/1 var(--sans); letter-spacing: 0; padding: 4px 5px; border-radius: 1px; font-variant-numeric: tabular-nums;
  background: rgba(0,0,0,.78); color: #f3f3f0; }
/* credit + versions: one quiet line */
.meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-top: 6px; font-size: 12.5px; color: var(--mute); }
.meta > p { margin: 0; }
.credit a { font: 400 12px/1.3 var(--sans); color: var(--fg); }
.versions a { font: 400 12px/1.3 var(--sans); color: var(--mute); text-decoration: underline; text-decoration-color: var(--edge); text-underline-offset: 3px; }
.versions a:hover { color: var(--fg); }
.credit + .versions::before { content: "·"; color: var(--faint); margin-right: 6px; }
.note { margin: 8px 0 0; font-size: 13px; color: var(--mute); border-left: 2px solid var(--fg); padding-left: 8px; }
/* opened post: the same block as every row (the .piece rules above), given the page
   treatment (post/replies premium build, 2026-11-20 — the approved mock's hero): the
   words at the larger page scale, the stamp grown into the quiet meta line (time · date ·
   counted views — app.js localises the time; the view count is the first-party counter's,
   the owner's own views excluded, and it lives on this page and the focused reply page
   only, never in feed rows), and the action row bracketed by full-bleed hairlines, its
   bottom line closing the block (the block's own border steps aside so the bracket is
   the one line). Feed rows keep the compact scale and the unbracketed row. */
.stamp { margin: 10px 0 0; font: 400 13.5px/1.35 var(--sans); color: var(--mute); }
.stamp a { color: inherit; }
.piece-full { padding-bottom: 0; border-bottom: 0; }
.piece-full .text { font-size: 17px; line-height: 1.45; }
.piece-full .acts { margin: 12px calc(-1 * var(--pad)) 0; padding: 3px var(--pad); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* icon actions: Upvote, the replies button and Remix on the left; Save and Options
   pushed right — one row, the same order on every surface the block renders */
.acts { position: relative; display: flex; align-items: center; margin: 6px -10px 0; color: var(--mute); }
.act { background: none; border: 0; padding: 0; font-size: 13px; font-weight: 600; color: var(--mute); cursor: pointer; }
/* The .act underline opt-out must NOT sit inside the hover media gate (press polish, 2026-11-16):
   touch devices don't match (hover: hover), but iOS still applies :hover on tap, so the global
   a:hover underline leaked onto the replies and remix controls on phones while desktop stayed
   clean. The opt-out now holds in every state and media, for the control and its children (the
   reply count, the remix label) alike; only the colour lift stays a fine-pointer nicety. (The
   same gated pattern was checked on every other control opt-out in this sheet: .act was the
   only one trapped — the remaining hover-gated rules govern colour, border and background,
   and .tc's own opt-out is ungated.) */
.act, .act:hover, .act:active, .act:focus, .act *, .act *:hover, .act *:active { text-decoration: none; }
@media (hover: hover) { .act:hover { color: var(--fg); } }
.act[aria-pressed="true"] { color: var(--fg); }
.ico-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 0;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; color: var(--mute); }
/* the block's action row (feed post-block rebuild, 2026-11-14): every control is a 48px-minimum
   pill hit area, pulled 10px out on both sides so the first glyph aligns with the byline/media
   edge. The pill is hit/press geometry only — the glyphs stay bare, nothing paints a pill at
   rest; icons are 19px and the counts sit beside them on the same baseline. */
.acts .act { display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  width: auto; height: auto; min-width: 48px; min-height: 48px; padding: 0 10px; border-radius: 999px; }
.acts .ico { width: 19px; height: 19px; }
.acts .act:active { background: var(--soft); }
.acts-sp { flex: 1; }
/* ---- template feed cards (2026-11-21; composition: the approved template-feed-cards-mock):
   the post block's family — the same box, byline, full-bleed media and words voice — but
   not posts: the root is .tpl-card, never .piece, so the viewer, the back-sync patcher and
   the feed-arrival head-check (all keyed on article.piece) never see a card, and the
   arrival count stays pieces-only by construction. ---- */
.tpl-card { position: relative; margin: 0 calc(-1 * var(--pad)) 0; padding: 14px var(--pad) 12px; border-bottom: 1px solid var(--line); background: var(--bg); }
.tpl-card .by-name { font-size: 15px; font-weight: 600; line-height: 1.25; }
.tpl-label { font-size: 12px; color: var(--mute); margin-top: 8px; letter-spacing: .01em; }
.tpl-card .media { margin: 10px calc(-1 * var(--pad)) 0; }
.tpl-card .media a { display: block; line-height: 0; }
.tpl-card .media img { display: block; width: 100%; height: auto; }
.tpl-card-name { margin-top: 10px; }
.tpl-card-name a { color: inherit; text-decoration: none; }
.tpl-card .acts { margin: 10px 0 0; }
.tpl-make { display: inline-flex; align-items: center; min-height: 36px; padding: 7px 14px; border: 1px solid var(--edge); border-radius: 999px; background: var(--bg); color: var(--fg); font-size: 13.5px; font-weight: 600; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.tpl-make:active { background: var(--soft); }
/* the bookmark's seat at the card row's far right, wired by the saved-templates build
   (2026-11-21): the control is the post save's own (the shared .ico-btn.js-save rules give
   it the fill, the ink pressed state and the pop), trimmed to the seat's box — 36px tall,
   the glyph at 20px — so the row's shape is the one the reserved glyph held. The form
   wrapping it adds no size, as in a post's action row. */
.tpl-save { width: 32px; height: 36px; min-height: 36px; background: none; border: 0; }
.tpl-save .ico { width: 20px; height: 20px; }
/* the drop card: one batch, one card (drop-rail build, 2026-11-21 — the whole-card link
   is gone: the batch rides a rail of per-template links, below). The label and the
   browse line are the card's two doors to the library's new tab (.tpl-drop-door).
   The rail rules stay scoped under .tpl-card: an unscoped .tpl-strip (the create door's
   52px thumbnail span) and .tpl-name (the template page's H1) already exist in this file —
   the card's name class is .tpl-card-name for the same reason. */
.tpl-drop-door { display: block; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.tpl-card .tpl-rail { gap: 3px; margin-top: 10px; padding-bottom: 0; }
.tpl-rail-tile { flex: 0 0 88px; width: 88px; line-height: 0; -webkit-tap-highlight-color: transparent; }
.tpl-rail-tile img { display: block; width: 88px; height: 88px; aspect-ratio: 1; object-fit: cover; background: var(--soft); border: 0; border-radius: 0; }
.tpl-hint { font-size: 15px; line-height: 1.45; margin-top: 10px; }
.tpl-chev { color: var(--mute); }
/* Controls are not text (press polish, 2026-11-16): the pressable chrome — the action row and
   button-role elements generally — never takes a text selection, the way X's controls don't
   (a long press or a drag across "remix" or a reply count highlighted the label). Prose stays
   selectable exactly as today: bylines, post text, credit lines and every input/textarea are
   untouched by this rule. */
button, summary, [role="button"], [role="tab"], .btn, .act, .ico-btn, .trig, .tabs > a, .chartwin a, .pager a {
  -webkit-user-select: none; user-select: none; }
.ico { display: block; overflow: visible; }
.ico .fillable { fill: transparent; }
.ico-btn:not(.js-upvote) .fillable { transition: fill .16s cubic-bezier(.2,.8,.2,1); }
.ico-btn[aria-pressed="true"] .fillable { fill: currentColor; }
.ico-btn:focus-visible { outline-offset: -3px; }
.btn, .ico-btn:not(.js-upvote), .r-go, .create, .hdr-bell, .hdr-search, .trig, .rowbtn, .link {
  transition: color .16s cubic-bezier(.2,.8,.2,1), background-color .16s cubic-bezier(.2,.8,.2,1), border-color .16s cubic-bezier(.2,.8,.2,1), opacity .16s cubic-bezier(.2,.8,.2,1), transform .16s cubic-bezier(.2,.8,.2,1);
}
.btn:active, .ico-btn:not(.js-upvote):active, .r-go:active, .create:active, .hdr-bell:active, .hdr-search:active, .trig:active, .rowbtn:active {
  opacity: .85; transform: scale(.97);
}
@media (prefers-reduced-motion: reduce) {
  .btn, .ico-btn:not(.js-upvote), .r-go, .create, .hdr-bell, .hdr-search, .trig, .rowbtn, .link { transition: none; }
  .btn:active, .ico-btn:not(.js-upvote):active, .r-go:active, .create:active, .hdr-bell:active, .hdr-search:active, .trig:active, .rowbtn:active { transform: none; opacity: 1; }
}
/* the replies button (full-mock voice, 2026-11-14): grouped with the other actions on the
   left — it is an action (open the post), not a stat at the edge. Its count is the mock's
   measure — 13px tabular sans, ALWAYS rendered, 0 included (the upvote count beside it keeps
   hide-at-0). It replaced the F4 inline reply field and the quiet "N replies" link. */
.acts .rcount { font: 400 13px/1 var(--sans); font-variant-numeric: tabular-nums; }

/* Remix wears its word (owner ruling, 2026-11-15 — the Remix Label Mock's variant 2, values
   from the mock): the chasing-arrows glyph + lowercase "remix" inside a quiet soft-ground
   chip, because the bare icon read as a share button. The chip is the ONE pill that paints
   at rest in the row; it stays neutral — ink on soft, no green (rule 11), no border — and
   the anchor keeps the row's 48px pill hit area around it. */
.acts .rx-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--soft);
  border-radius: 999px; padding: 8px 13px; color: var(--fg); }
.acts .rx-lbl { font-size: 13px; font-weight: 500; line-height: 1; color: var(--fg); }

/* upvote: the arrow is an outline until pressed, then solid bright green with a heavier stroke
   (server-rendered, so it's the same with and without JS). On a landed vote the arrow plays the
   burst (motion voice, owner ruling 2026-11-15 — reversing the old no-upvote-animation rule):
   app.js adds .bursting to the arrow and spawns the ring + dots below; un-vote is silent, and
   under reduced motion nothing plays. The control itself still carries no press motion — the
   burst lives on the arrow and on transient children that remove themselves. */
.js-upvote { position: relative; }
.js-upvote[aria-pressed="true"] { color: var(--up); }
.js-upvote[aria-pressed="true"] .ico { stroke-width: 2.8; }
@media (hover: hover) { .js-upvote[aria-pressed="true"]:hover { color: var(--up); } }
@keyframes burstpop { 0% { transform: scale(1); } 18% { transform: scale(.72); } 55% { transform: scale(1.18); } 75% { transform: scale(.96); } 100% { transform: scale(1); } }
.ico.bursting { animation: burstpop 540ms var(--ease); }
.burst-ring { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 2px solid var(--up); border-radius: 999px; opacity: 0; pointer-events: none; }
.burst-ring.go { animation: ringx 480ms var(--ease) forwards; }
@keyframes ringx { from { transform: scale(.3); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
.burst-dot { position: absolute; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 999px; pointer-events: none; }
.burst-dot.mini { width: 4px; height: 4px; margin: -2px 0 0 -2px; }
@media (prefers-reduced-motion: reduce) { .ico.bursting, .burst-ring.go { animation: none; } }

/* Save, alive (motion round 2, owner verdicts 2026-11-15): on save the bookmark pops on the
   settle curve with a mini-burst of INK dots only (the bookmark is not a green verb), and the
   saved state is legible at rest — the button takes the ink colour, so the fillable path's
   currentColor fill (.ico-btn[aria-pressed="true"] .fillable, above) reads as a SOLID ink
   bookmark instead of the action row's muted tone. Unsave returns to the outline silently. */
.js-save { position: relative; }
.ico-btn.js-save[aria-pressed="true"] { color: var(--fg); }
@keyframes icon-pop { 0% { transform: scale(1); } 35% { transform: scale(1.38); } 70% { transform: scale(.94); } 100% { transform: scale(1); } }
.ico.popping { animation: icon-pop 300ms var(--ease-settle); }
@media (prefers-reduced-motion: reduce) { .ico.popping { animation: none; } }

/* quiet profile menu (details/summary) — the one .pmenu surface left since the post
   menu moved to the byline + bottom sheet (post-menu build, 2026-11-20; its rules are
   the .menu-sheet block below). The list speaks the designed sheet language
   (share-row restyle, 2026-11-18): the sheet's panel ground and 2px radius, its soft
   30px shadow mirrored downward, and an entrance on the expressive --ease-settle curve
   the sheets rise on — the old flat bordered dropdown was the original site's idiom. */
.pmenu { position: relative; }
.pmenu > summary { list-style: none; cursor: pointer; }
.pmenu > summary::-webkit-details-marker { display: none; }
details.pmenu > summary.ico-btn { display: inline-grid; }
.pmenu[open] > summary { color: var(--fg); }
/* The list anchors to the trigger's RIGHT edge and opens leftward: the profile header's
   trigger sits at its row's right edge, so a left anchor pushed the 180px list off
   a phone's screen. (The profile menu's old override is the base rule now.) */
.pmenu-list { position: absolute; left: auto; right: 0; top: calc(100% + 2px); z-index: 6; min-width: 180px; display: grid; padding: 6px 0;
  background: var(--panel); border: 1px solid var(--edge); border-radius: 2px; box-shadow: 0 8px 30px rgba(0,0,0,.18); font-size: 14px; }
.pmenu-list > a, .pmenu-list button { display: block; width: 100%; text-align: left; padding: 13px 12px; min-height: 44px; background: none; border: 0; cursor: pointer; font-size: 14px; color: var(--fg); }
.pmenu-list > a:hover, .pmenu-list button:hover { background: var(--soft); text-decoration: none; }
/* flipped upward by app.js when the menu would run off the bottom of the screen (F9) */
.pmenu-list.up { top: auto; bottom: calc(100% + 2px); }
/* menus arrive the way the sheets do: a short rise on the settle curve (share-row
   restyle, 2026-11-18 — the old 160ms fade on the productive curve was the remnant idiom) */
details.pmenu[open] > .pmenu-list { animation: menu-in .26s var(--ease-settle); }
details.pmenu[open] > .pmenu-list.up { animation-name: menu-in-up; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-5px); } }
@keyframes menu-in-up { from { opacity: 0; transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) { details.pmenu[open] > .pmenu-list { animation: none; } }

/* paging */
.pager { padding: 16px 0 8px; }
.pager a { display: inline-flex; align-items: center; min-height: 44px; font: 500 12px/1 var(--sans); color: var(--mute); }
.pager a::after { content: " ↓"; }
.pager a:hover { color: var(--fg); }
.pager a[aria-busy="true"] { color: var(--faint); pointer-events: none; }
/* Infinite scroll (X4): on meme streams the More link hides once JS arms the scroll sentinel —
   the link stays in the markup as the no-JS path and reappears if a fetch fails. The loading
   note shows only mid-fetch; the sentinel is a 1px tripwire after the pager. */
.pager .pager-load { display: none; }
.pager[data-loading="1"] .pager-load { display: block; text-align: center; font: 500 12px/1 var(--sans); color: var(--up); padding: 2px 0 6px; }
.pager.armed a.js-more { display: none; }
.sentinel { height: 1px; }

/* ---------- people rows (search + follow lists) ---------- */
/* one ruled-list row rhythm with settings/activity: 12px row padding (P5; was 9px) */
.person { display: grid; grid-template-columns: 32px 1fr auto; column-gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; color: inherit; }
.person .btn { justify-self: end; }
.person:hover { text-decoration: none; }
@media (hover: hover) { .person:hover .by-name { text-decoration: underline; } }
.pn { display: flex; gap: 6px; align-items: baseline; min-width: 0; font-size: 14px; }
.pb { grid-column: 2; color: var(--mute); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- profile: header, then the work ---------- */
.prof { padding: 0 0 12px; }
/* the header band (approved profile-header mock, 2026-11-14): a shallow 3:1 band bleeding to the
   column's edges; unset it is the plain surface colour — no stock image, no gradient. The avatar
   alone crosses its bottom seam (the -32px pull below); the action row sits fully under the band,
   its top edge 14px below the band's bottom edge (the seam rule: controls never hug a media edge). */
.prof-band { margin: 0 calc(-1 * var(--pad)); aspect-ratio: 3 / 1; background: var(--soft); position: relative; overflow: hidden; }
.prof-band img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* (the band camera pill — .prof-campill — was removed 2026-11-17 with its markup:
   redundant beside the Edit profile button directly under it; the edit form banner
   field is the banner one home.) */
.prof-hd { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.prof-hd .av-l { margin-top: -32px; position: relative; z-index: 2; box-shadow: 0 0 0 4px var(--bg); }
.prof-id { min-width: 0; }
/* the name is the page's title: the display cut in italic, the wordmark's slant (profiles redesign) */
.prof-id h1 { margin: 10px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: italic; font-size: 32px; line-height: 1.08; }
.prof .by-meta { display: block; margin: 3px 0 0; }
.prof-acts { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; justify-content: flex-end; margin-top: 14px; }
/* blocked state in the profile header: a quiet fact and the Unblock itself — block/unblock live
   in both natural homes, here and in Settings → Blocked (owner decision 2026-11-13) */
.blocked-note { font-size: 13px; color: var(--mute); }
.blocked-note a { color: var(--fg); font-weight: 600; }
.bio { margin: 8px 0 0; max-width: 46ch; font-size: 15.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
/* long bios clamp at three lines (app.js adds the toggle); the identity block keeps one height */
.bio.clamped { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bio-more { display: inline-flex; align-items: center; margin-top: 2px; padding: 8px 8px 8px 0; min-height: 44px; font: 500 12px/1 var(--sans); color: var(--mute); background: none; border: 0; cursor: pointer; }
/* stats are one chunk of three doors (posts · followers · following): the number carries the
   weight, the word stays quiet; every stat is a link with a full-height hit area */
.counts { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 2px 0 0; font: 400 13px/1.3 var(--sans); color: var(--mute); font-variant-numeric: tabular-nums; }
.counts b { color: var(--fg); font-weight: 700; margin-right: 5px; }
.counts a { color: inherit; display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; }
.counts a:hover { color: var(--fg); text-decoration: none; }
@media (hover: hover) { .counts a:hover b { text-decoration: underline; text-underline-offset: 3px; } }
/* (No hairline over the profile's posts area: the .prof + .feed border-top that used to
   stand here drew a seam between the profile head and its grid — retired with the other
   media seams, legacy-furniture fixes, 2026-11-17. The grid meets the head flush.) */

/* ---------- the meme grid: profiles' posts area and the saved shelf (3-across, hairline gaps,
   spanning the column pad to pad like the feed's media; one grid for every list of memes) ---------- */
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; margin: 0 calc(-1 * var(--pad)); }
.gtile { display: block; aspect-ratio: 1; overflow: hidden; background: var(--soft); -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.gtile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gtile-text { display: flex; align-items: center; padding: 10px; }
.gtile-text span { font-size: 13px; line-height: 1.4; color: var(--fg); display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }

/* ---------- your templates (own profile only): thumb, name, the graduation state in words ---------- */
.prof-tpls { padding: 20px 0 8px; }
.prof-tpls-h { font: 600 13px/1.3 var(--sans); letter-spacing: .02em; color: var(--mute); margin: 0 0 4px; }
.tplrow { display: flex; align-items: center; gap: 12px; padding: 8px 0; min-height: 56px; color: var(--fg); }
.tplrow img { width: 48px; height: 48px; object-fit: cover; border-radius: 4px; flex: none; background: var(--soft); }
.tplrow-main { display: grid; min-width: 0; }
.tplrow-name { font-weight: 600; font-size: 15px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tplrow-state { font-size: 13.5px; color: var(--mute); line-height: 1.35; }
@media (hover: hover) { .tplrow:hover .tplrow-name { text-decoration: underline; text-underline-offset: 3px; } }

/* ---------- post-page continuation: the list a post was opened from continues below the thread ---------- */
.morehead { display: flex; align-items: center; gap: 12px; margin: 20px 0 2px; font: 600 13px/1.3 var(--sans); letter-spacing: .02em; color: var(--mute); }
.morehead::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.cont-end { text-align: center; color: var(--mute); font-size: 14px; padding: 24px 0 8px; margin: 0; }
/* the end line inside a grid spans it (the activity page closes with its own .act-end) */
.pgrid .cont-end, .tgrid .cont-end { grid-column: 1 / -1; }
/* the feed skeleton: the post block's quiet stand-in during a stream swap — same block box
   (the feed-gap rider's separation included, 2026-11-21), same byline anatomy (round 36px
   avatar, two stacked lines), same full-bleed media. No shimmer */
.skel { margin: 0 calc(-1 * var(--pad)) 0; padding: 14px var(--pad) 12px; border-bottom: 1px solid var(--line); }
.skel-hd { display: flex; align-items: flex-start; gap: 10px; }
.skel-av { width: 36px; height: 36px; border-radius: 50%; background: var(--soft); flex: none; }
.skel-who { display: flex; flex-direction: column; gap: 5px; flex: 1; padding-top: 2px; }
.skel-ln { height: 11px; background: var(--soft); display: block; }
.skel-ln.w4 { width: 38%; }
.skel-ln.w3 { width: 24%; }
.skel-ln.w7 { width: 68%; margin-top: 14px; }
.skel-img { aspect-ratio: 4 / 3; background: var(--soft); margin: 10px calc(-1 * var(--pad)) 0; }
/* a failed stream swap says so in place, with its retry (phase 3) */
.feed-fail { padding-bottom: 24px; }
.feed-fail .empty { padding-bottom: 10px; }
/* Top's empty window: the chart bar stays, the body is the chart's own empty state (phase 3) */
.chart-empty { border: 1px solid var(--line); padding: 26px 18px; text-align: center; margin-top: 14px; }
.chart-empty .empty { padding: 0; }
.chart-empty .quiet { margin-top: 6px; }
/* the guest's line in the reply composer's slot */
.r-join { color: var(--mute); font-size: 14px; margin: 10px 0 0; }
.r-join a { color: var(--fg); font-weight: 600; }

/* ---------- buttons + forms: square, ink fill ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 14px; background: var(--inv-bg); color: var(--inv-fg);
  border: 1px solid var(--inv-bg); border-radius: 2px; font: 600 13.5px/1 var(--sans); letter-spacing: -0.005em; cursor: pointer; white-space: nowrap; }
.btn:hover { text-decoration: none; opacity: .86; }
.btn:active { opacity: .72; }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--edge); }
.btn.ghost:hover { border-color: var(--fg); opacity: 1; }
/* The compose action bar's two quieter treatments (compose overhaul, 2026-11-17 — the approved
   Space `compose-page-mock`'s ready state): Cancel is a borderless muted text button, and
   Save a copy a bordered field-ground secondary. Neither is green (rule 11). */
.btn.quiet { background: transparent; color: var(--mute); border-color: transparent; }
.btn.quiet:hover { color: var(--fg); opacity: 1; }
.btn.soft { background: var(--field); color: var(--fg); border-color: var(--line); }
.btn.sm { height: 30px; padding: 0 12px; font-size: 13px; }
/* The green button (X7 brand discipline): --up marks the single primary action when it is the
   product's point — exactly three: the composer's Post, the guest row's Make a meme, Create
   account. White text on the light theme's #157a3a is 5.4:1; the dark theme's bright #3ccf72
   takes black (10.5:1; white would fail at 2:1). Hover/active are the base .btn opacity steps. */
.btn.go { background: var(--up); border-color: var(--up); color: #fff; }
:root[data-theme="dark"] .btn.go { color: #000; }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] .btn.go { color: #000; } }
/* The danger button: the confirm sheet's destructive action (full-mock voice, Scope D). The
   --bad fill carries the treatment the modbox's red text carries in place; text flips white →
   black across themes on the same contrast logic as .btn.go (light #a31f12 takes white at
   ~7.9:1; dark #ff9d94 takes black). */
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
:root[data-theme="dark"] .btn.danger { color: #000; }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] .btn.danger { color: #000; } }
.link { background: none; border: 0; padding: 0; color: var(--mute); cursor: pointer; font-size: 13px; }
.link:hover { color: var(--fg); }
@media (hover: hover) { .link:hover { text-decoration: underline; text-underline-offset: 3px; } }
.stack { display: grid; gap: 14px; }
.narrow { max-width: 420px; }
.fld { display: grid; gap: 5px; }
.fld > span { font: 500 11px/1.2 var(--sans); color: var(--mute); text-transform: lowercase; }
/* Filled fields (field dialect unification, owner ruling 2026-11-17 — "Go filled — unify every
   form", judged on the field-dialect comparison mock): every form field takes the search pill's
   dialect — a var(--field) fill, no border, a 12px radius (a field's radius, never the 999px
   capsule), 13px 14px padding, which puts a single-line field on the ~48px row (16px text at 1.4
   line-height + 26px padding — the 44px hit floor, as P4 required), and focus in the pill's own
   family: an inset --up ring and the green caret (rule 11's focus exception, owner-settled for
   search in the editor fix v5 rider and extended to form fields by this ruling). This retires
   the hairline system (transparent paper, a 1px bottom rule that darkened on focus) everywhere
   it lived: .fld on auth/settings/edit-profile/house forms, .ink on the create/community/
   template forms, and the composer's textareas. The labels above the fields are unchanged. */
.ink, .fld input, .fld textarea, .composer textarea {
  width: 100%; background: var(--field); border: 0; border-radius: 12px;
  padding: 13px 14px; outline: none; font-size: 16px; caret-color: var(--up); } /* 16px: no iOS zoom */
.ink:focus, .fld input:focus, .fld textarea:focus, .composer textarea:focus { box-shadow: inset 0 0 0 1px var(--up); }
/* Autofill keeps the dialect (owner catch, 2026-11-17): the browser paints an autofilled field its
   own pale yellow as an "this was autofilled" signal and ignores background-color, so the cover is
   an inset shadow in the field fill (the lever autofill does honour), the text fill is set
   explicitly, and the caret stays in the family treatment. Holds in both themes — the fill and ink
   are the theme's own tokens. The :focus variant stacks the family's inset ring over the cover, so
   an autofilled field being driven still rings green like a typed one. */
.ink:-webkit-autofill, .fld input:-webkit-autofill, .fld textarea:-webkit-autofill {
  -webkit-box-shadow: inset 0 0 0 1000px var(--field); box-shadow: inset 0 0 0 1000px var(--field);
  -webkit-text-fill-color: var(--fg); caret-color: var(--up); }
.ink:-webkit-autofill:focus, .fld input:-webkit-autofill:focus, .fld textarea:-webkit-autofill:focus {
  -webkit-box-shadow: inset 0 0 0 1px var(--up), inset 0 0 0 1000px var(--field); box-shadow: inset 0 0 0 1px var(--up), inset 0 0 0 1000px var(--field);
  -webkit-text-fill-color: var(--fg); caret-color: var(--up); }
/* Password fields: the input plus a quiet show/hide eye at its end (app.js flips the type; without JS the
   field simply stays a password field, and the eye is inert). */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 48px; }
.pw-eye { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; background: none; border: 0; color: var(--mute); cursor: pointer; }
.pw-eye:hover { color: var(--fg); }
.pw-eye .ico { display: block; }
.pw-eye .pw-hide { display: none; }
.pw-eye[aria-pressed="true"] .pw-hide { display: block; }
.pw-eye[aria-pressed="true"] .pw-show { display: none; }
.ink::placeholder, .fld input::placeholder, .fld textarea::placeholder, .composer textarea::placeholder { color: var(--faint); }
.check { display: flex; gap: 9px; align-items: center; min-height: 44px; font-size: 13.5px; line-height: 1.35; cursor: pointer; }
.check input { margin: 1px 0 0; accent-color: var(--fg); width: 16px; height: 16px; flex: none; border-radius: 0; }
.flash { margin: 12px 0 0; padding: 8px 12px; border-left: 2px solid var(--fg); background: var(--soft); font-size: 13.5px;
  animation: flash-in 180ms cubic-bezier(.2,.8,.2,1); }
/* a success flash (a completed action) swaps its left rule to --up — the flash's one green (X7) */
.flash.ok { border-left-color: var(--up); }
.flash.out { opacity: 0; transform: translateY(-4px); transition: opacity 180ms cubic-bezier(.2,.8,.2,1), transform 180ms cubic-bezier(.2,.8,.2,1); }
@keyframes flash-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .flash { animation: none; } .flash.out { transition: none; } }
/* The publish moment (motion round 2, owner verdicts 2026-11-15): landing on the just-posted
   piece, the meme drops in on the settle curve while the "Posted." confirmation pops and its
   board-arrow (app.js sets it at the head of the flash) fires a mini-burst. The drop keyframe
   is shared with feed arrival's rows (.arr-drop). Rare class — once per publish — and pure
   decoration: nothing about the landing waits on it. */
@keyframes drop-in { 0% { opacity: 0; transform: translateY(-36px) scale(.97); } 55% { opacity: 1; } 100% { opacity: 1; transform: translateY(0) scale(1); } }
.piece.pub-drop, .arr-drop { animation: drop-in 340ms var(--ease-settle) both; }
@keyframes pill-pop { 0% { transform: scale(.55); opacity: 0; } 60% { transform: scale(1.14); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
.flash.pub-pop { animation: pill-pop 320ms var(--ease-settle) both; }
.pub-arrow { display: inline-flex; width: 14px; height: 14px; margin-right: 7px; position: relative; vertical-align: -2px; }
.pub-arrow svg { width: 100%; height: 100%; display: block; overflow: visible; }
.pub-arrow svg path { fill: var(--up); }
@media (prefers-reduced-motion: reduce) { .piece.pub-drop, .arr-drop, .flash.pub-pop { animation: none; } }
/* In-place form feedback (audit fix round): a failed field says so under itself, in the danger
   voice; a settings section confirms its own save in the flash's shape, at the section. Both are
   JS-rendered (the no-JS round-trip keeps the flash); the words are the server's own. */
.ferr { color: var(--bad); font-size: 13px; line-height: 1.4; margin: 5px 0 0; }
.ferr.form-err { margin: 0 0 4px; }
.fld.has-err input, .fld.has-err textarea { box-shadow: inset 0 0 0 1px var(--bad); } /* the filled dialect's error voice: the --bad ring replaces the hairline era's red underline; it sits after the :focus rule so an errored field keeps its ring even while focused */
.saved-note { margin: 12px 0 0; padding: 8px 12px; border-left: 2px solid var(--up); background: var(--soft); font-size: 13.5px;
  animation: flash-in var(--mot-fast) var(--ease); }
@media (prefers-reduced-motion: reduce) { .saved-note { animation: none; } }
.proto { font-size: 13px; color: var(--mute); background: var(--soft); border: 1px solid var(--line); border-radius: 2px; padding: 12px; margin: 16px 0; }
.proto strong { color: var(--fg); }
.proto form { margin-top: 10px; }
.aux { font-size: 13px; color: var(--mute); margin-top: 18px; }
.aux a { color: var(--fg); font-weight: 600; }
/* segmented choice: square, ink fill on the picked one */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 0; justify-self: start; background: var(--field); }
.seg label { position: relative; cursor: pointer; display: flex; }
.seg label + label { border-left: 1px solid var(--line); }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; min-height: 30px; padding: 0 14px; font-size: 12.5px; font-weight: 600; color: var(--mute); }
.seg input:checked + span { background: var(--fg); color: var(--bg); }
.seg input:focus-visible + span { outline: 2px solid var(--up); outline-offset: 2px; }

/* ---------- auth ---------- */
body.bare .col { max-width: 380px; }
.auth { padding-top: 12vh; }
/* B2 (legacy-furniture fixes, 2026-11-17): the auth screens' title takes the slim
   page-title weight — the 44px nameplate above it is the screen's one display moment,
   so the h1 steps down from the global 26px display cut to the utility title. */
.auth h1 { font-family: var(--sans); font-weight: 600; font-size: 17px; line-height: 1.3; letter-spacing: -0.01em; word-spacing: normal; font-variation-settings: normal; margin-bottom: 16px; }
.auth .btn { height: 38px; }
/* the age confirmation is a form control like any other: its row carries the 44px hit minimum */
.auth .check { min-height: 44px; align-items: center; }

/* ---------- pages ---------- */
/* Sub-pages all use the one sticky back strip in the masthead bar (backStrip / stripTabs in views.ts);
   the in-body pagehead family is retired (F1). */
.back { font: 500 12px/1.2 var(--sans); color: var(--mute); }
.back:hover { color: var(--fg); text-decoration: none; }
.panel { padding: 24px 0; }
/* Plain-language text pages (/terms, /copyright): reading measure, quiet lists, links set in ink. */
.doc { padding-top: 6px; }
/* long-form prose reads at the prose line-height (1.5 — the standard the frame's empty states and
   the profile bio already use); the 1.4 body base is the dense feed's, not a reading page's (P5) */
.doc p { margin: 0 0 10px; max-width: 62ch; line-height: 1.5; }
.doc ul { margin: 0 0 12px; padding-left: 20px; max-width: 62ch; }
.doc li { margin: 0 0 6px; line-height: 1.5; }
.doc a { color: var(--fg); font-weight: 600; }
.row-actions { display: flex; gap: 8px; margin-top: 12px; }
.credited { margin-top: 18px; }
.credited .feed { opacity: .92; }
.credited > p { margin: 0 0 4px; }

/* ---------- Settings ---------- */
.set-sec { padding: 2px 0 6px; }
.set-sec .sec { margin-top: 22px; }
/* the theme form's Save is the no-JS path only: with JS the rows apply and save on tap (app.js) */
html.js .theme-form .save-row { display: none; }
.theme-form .save-row { margin-top: 14px; }
/* Quiet grouped rows (settings redesign, 2026-11-20 — the approved mock's composition):
   lowercase labels in ink at 15px regular, values right-aligned in mute, hairlines inset
   to the text column and used sparingly — group air does most of the separation. The same
   .settings shell carries the Blocked list (a ul; the index is a div of groups). */
.settings { list-style: none; padding: 0; margin: 0; }
.sgroup { margin: 0 0 26px; }
.sgroup.signout-group { margin-top: 40px; }
.srow { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 48px; padding: 10px 0;
  background: none; border: 0; color: var(--fg); text-align: left; font-size: 15px; }
button.srow { cursor: pointer; }
.srow:hover { text-decoration: none; }
@media (hover: hover) { .srow:hover .slab { text-decoration: underline; text-underline-offset: 3px; } }
.srow .slab { flex: none; }
.srow .val { margin-left: auto; color: var(--mute); font-size: 14.5px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srow.hair::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); }
/* Appearance rows (the mock): the current choice is marked by a soft ground on its row —
   no checkmark (standing ban). The radio rides the row invisibly, exactly as the retired
   segment's did, so app.js's tap-to-apply never knew the furniture changed. */
.arow { position: relative; display: flex; align-items: center; width: 100%; min-height: 48px; padding: 10px 12px; margin: 0 0 2px;
  border-radius: 10px; color: var(--fg); font-size: 15px; cursor: pointer; }
.arow:has(input:checked) { background: var(--soft); }
.arow input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.arow:has(input:focus-visible) { outline: 2px solid var(--up); outline-offset: 2px; }
/* the settings pages' quiet aside: a 12px mute line under a group or a form */
.set-aside { margin: 10px 2px 0; font-size: 12px; color: var(--mute); }
.set-aside.lead { margin-top: 0; } /* "lead", not "top": .top is the masthead's class (sticky, bordered) */
.stack .set-aside { margin-top: 0; } /* inside a .stack form the grid gap already gives the air */
/* the settings save: the filled primary at the mock's measure — ink ground, never green */
.btn.set-save { width: 100%; height: 44px; font-size: 15px; font-weight: 500; }
/* Blocked: person rows in the followers-list dialect — round avatar, name over @handle,
   a quiet borderless unblock in mute on the right (the mock's 40px target inside a 56px row) */
.settings li.blk { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 0; }
.settings li.blk .blk-av { flex: none; display: grid; }
.settings li.blk .blk-who { min-width: 0; display: grid; flex: 1; }
.settings li.blk .blk-who:hover { text-decoration: none; }
@media (hover: hover) { .settings li.blk .blk-who:hover .blk-name { text-decoration: underline; text-underline-offset: 3px; } }
.settings li.blk .blk-name { font-size: 15px; line-height: 1.25; }
.settings li.blk .blk-handle { font-size: 13px; color: var(--mute); line-height: 1.25; }
.settings li.blk form { margin-left: auto; flex: none; }
.settings li.blk .link { display: inline-flex; align-items: center; min-height: 40px; padding: 10px 4px; font-size: 14px; }
.kv { margin: 12px 0 16px; border-top: 1px solid var(--line); }
.kv div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--mute); } .kv dd { margin: 0; font: 500 12.5px/1.4 var(--sans); }
.plain { padding-left: 18px; color: var(--mute); margin: 0 0 18px; display: grid; gap: 6px; }
.stats { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 12px; }
.stats th { text-align: left; font: 500 11px/1.2 var(--sans); color: var(--mute); padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); }
.stats td { padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.stats td:not(:first-child), .stats th:not(:first-child) { text-align: right; font-family: var(--sans); font-size: 12.5px; white-space: nowrap; }
/* Admin dashboard glance tiles (/admin): hairline-topped numbers in the one sans — no colour, counts are never green. */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; margin: 6px 0 10px; }
.tile { border-top: 1px solid var(--line); padding: 10px 0 12px; }
.tile-n { font-size: 20px; font-weight: 700; line-height: 1.2; }
.tile-l { font-size: 11px; color: var(--mute); margin-top: 2px; }
@media (max-width: 420px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.sw-opt { position: relative; cursor: pointer; }
.sw-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.swatch { display: inline-block; width: 30px; height: 30px; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--edge); vertical-align: middle; }
.sw-opt input:checked + .swatch { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--fg); }
.sw-opt input:focus-visible + .swatch { outline: 2px solid var(--up); outline-offset: 4px; }

/* ---------- Activity ---------- */
/* The roomy notifications page (approved profile-header mock, 2026-11-14): a 28px type-glyph
   column, the actor's 36px avatar over a 15px sentence, the piece's 56px thumb at the right,
   16px row padding, new/earlier group labels, and unread rows carrying a 2px brand-green left
   rule — the green is the @you signal (rule 11), never a wash. System notes keep a tile in
   place of the avatar, carrying the brand arrow. The list container is .act-list — NOT .acts,
   which is the post block's flex action row (the two collided in the first screenshot pass). */
.act-label { margin: 0; font-size: 13px; font-weight: 600; color: var(--mute); text-transform: lowercase; padding: 18px 0 2px; letter-spacing: .01em; }
.act-row { display: grid; grid-template-columns: 28px minmax(0,1fr) auto; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--line); position: relative; align-items: start; }
/* the row is one link (notification-rows build, 2026-11-16): the anchor carries no link styling
   of its own — the resting row is the div row it replaces, pixel for pixel */
a.act-row { text-decoration: none; color: inherit; }
.act-row.unread { box-shadow: inset 2px 0 0 var(--up); padding-left: 12px; margin-left: -2px; }
.act-glyph { width: 28px; display: flex; justify-content: center; padding-top: 2px; color: var(--mute); }
.act-glyph svg { width: 20px; height: 20px; flex: none; }
.act-glyph .upglyph { fill: var(--mute); }
.act-body { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.act-av { display: block; line-height: 0; margin-bottom: 7px; }
.act-tile { width: 36px; height: 36px; border-radius: 3px; flex: none; border: 1px solid var(--edge); display: flex; align-items: center; justify-content: center; background: var(--bg); margin-bottom: 7px; }
.act-tile svg { width: 17px; height: 17px; fill: var(--up); }
.act-sent { font-size: 15px; line-height: 1.45; color: var(--fg); overflow-wrap: anywhere; }
.act-row.read .act-sent { color: var(--mute); }
.act-sent .who { color: var(--fg); font-weight: 700; }
.act-meta { font-size: 12px; line-height: 1.35; color: var(--mute); opacity: .85; margin-top: 4px; }
.act-thumb { width: 56px; height: 56px; border-radius: 2px; flex: none; display: block; background: var(--soft); align-self: center; overflow: hidden; }
.act-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.act-end { text-align: center; color: var(--mute); font-size: 13.5px; padding: 26px 0 8px; }
.act-empty { padding: 56px 12px 20px; text-align: center; }
.act-empty p { font-size: 15.5px; line-height: 1.55; color: var(--mute); margin: 0 auto; max-width: 36ch; }
.act-empty a { color: var(--fg); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; display: inline-block; margin-top: 14px; font-size: 15px; min-height: 44px; }

/* ---------- edit profile (redesign, 2026-11-20) / edited mark ---------- */
/* The approved mock's composition: the page is a focused surface (no masthead, no back
   strip) with its own bar — cancel / edit profile / done on a 1fr auto 1fr grid — the
   media in place exactly as the profile head wears it (banner full-bleed, the avatar
   overlapping its bottom-left at the mock's 80px, a camera badge centred on each), and
   name/bio as borderless rows: the owner's scoped ruling for this page only (rows, not
   the filled dialect — do not cite as precedent for other forms). Done rests muted until
   the form is dirty; app.js undims it (.ready) — without JS it is a plain submit, always
   active. Change/remove live in the media sheet app.js builds (.ep-sheet below, on the
   house sheet machinery with this page's own values); the remove state is the same
   remove_avatar/remove_banner checkbox as always, now hidden in the form, rendered only
   while its photo exists. A <noscript> strip under the media keeps both doors working
   without JS (labels keyed by for= to the same inputs; the .rm-btn rules below). */
.ep-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 52px; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); }
.ep-cancel { justify-self: start; display: inline-flex; align-items: center; height: 44px; font-size: 15px; color: var(--fg); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.ep-cancel:active { opacity: .6; }
.ep-title { font-weight: 700; font-size: 15.5px; letter-spacing: -0.015em; white-space: nowrap; }
.ep-done { justify-self: end; height: 44px; padding: 0; background: none; border: 0; font: inherit; font-size: 15px; font-weight: 500; color: var(--mute); cursor: pointer; transition: color 160ms var(--ease); -webkit-tap-highlight-color: transparent; }
.ep-done.ready { color: var(--fg); font-weight: 600; }
.ep-done:active { opacity: .6; }
.ep-media { border: 0; padding: 0; margin: 0; min-width: 0; }
.ep-media .ferr { margin-top: 10px; }
.ep-bandbtn { display: block; width: calc(100% + 2 * var(--pad)); margin: 0 calc(-1 * var(--pad)); padding: 0; border: 0; background: none; cursor: pointer; position: relative; -webkit-tap-highlight-color: transparent; }
.ep-bandprev { display: block; aspect-ratio: 3 / 1; background: var(--soft); overflow: hidden; line-height: 0; transition: opacity 160ms var(--ease); }
.ep-bandprev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ep-avbtn { display: block; position: relative; width: 80px; height: 80px; margin: -40px 0 0; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; -webkit-tap-highlight-color: transparent; }
.ep-avprev { display: block; line-height: 0; transition: opacity 160ms var(--ease); }
.ep-avprev .av-l { width: 80px; height: 80px; font-size: 26px; box-shadow: 0 0 0 4px var(--bg); }
.ep-avprev img.av { object-fit: cover; }
.ep-bandbtn:active, .ep-avbtn:active { opacity: .85; }
.ep-bandbtn.ep-gone .ep-bandprev, .ep-avbtn.ep-gone .ep-avprev { opacity: .35; }
.ep-cambadge { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 38px; height: 38px; border-radius: 50%; background: rgba(12, 12, 12, .55); color: #fff; display: grid; place-items: center; pointer-events: none; }
.ep-cambadge svg { width: 19px; height: 19px; display: block; }
.ep-avbtn .ep-cambadge { width: 34px; height: 34px; }
.ep-avbtn .ep-cambadge svg { width: 17px; height: 17px; }
.ep-ns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
/* the no-JS remove toggle's armed paint: its label is keyed to the checkbox by for=, so
   the form's :has() state paints it (the in-label :has(input:checked) rules below cannot
   reach across to a sibling label) */
.ep-form:has(#ep-rm-avatar:checked) .ep-ns-rm[for="ep-rm-avatar"], .ep-form:has(#ep-rm-banner:checked) .ep-ns-rm[for="ep-rm-banner"] { background: var(--bad); border-color: var(--bad); color: #fff; }
:root[data-theme="dark"] .ep-form:has(#ep-rm-avatar:checked) .ep-ns-rm[for="ep-rm-avatar"], :root[data-theme="dark"] .ep-form:has(#ep-rm-banner:checked) .ep-ns-rm[for="ep-rm-banner"] { color: #000; }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] .ep-form:has(#ep-rm-avatar:checked) .ep-ns-rm[for="ep-rm-avatar"], :root[data-theme="system"] .ep-form:has(#ep-rm-banner:checked) .ep-ns-rm[for="ep-rm-banner"] { color: #000; } }
.ep-form:has(#ep-rm-avatar:checked) .ep-ns-rm[for="ep-rm-avatar"] .rm-off, .ep-form:has(#ep-rm-banner:checked) .ep-ns-rm[for="ep-rm-banner"] .rm-off { display: none; }
.ep-form:has(#ep-rm-avatar:checked) .ep-ns-rm[for="ep-rm-avatar"] .rm-on, .ep-form:has(#ep-rm-banner:checked) .ep-ns-rm[for="ep-rm-banner"] .rm-on { display: inline; }
.ep-fields { margin: 20px calc(-1 * var(--pad)) 0; padding-bottom: 56px; border-top: 1px solid var(--line); }
.ep-frow { display: grid; grid-template-columns: 62px 1fr; column-gap: 14px; align-items: start; padding: 13px var(--pad); border-bottom: 1px solid var(--line); }
.ep-flabel { font-weight: 600; font-size: 15px; line-height: 1.35; padding-top: 1px; }
.ep-fcontrol { min-width: 0; }
.ep-fcontrol input, .ep-fcontrol textarea { width: 100%; margin: 0; padding: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 16px; line-height: 1.35; color: inherit; caret-color: var(--up); resize: none; }
.ep-fcontrol textarea { min-height: 76px; display: block; }
.ep-frow .ferr { grid-column: 2; margin-top: 5px; }
/* the media sheet: the house sheet machinery with this page's own values (the mock's soft
   ground, hairline top, grab and 52px rows) */
.ep-sheet { background: var(--soft); border-top: 1px solid var(--line); border-radius: 16px 16px 0 0; }
.ep-sheet .sheet-in { padding: 8px var(--pad) calc(12px + env(safe-area-inset-bottom)); }
.ep-sheet .sheet-grab { background: var(--edge); margin: 2px auto 8px; }
.ep-row { display: flex; align-items: center; width: 100%; height: 52px; padding: 0; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 500; color: var(--fg); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ep-row:active { opacity: .6; }
.ep-row.danger { color: var(--bad); }
.ep-row[hidden] { display: none; }
.ep-sdiv { height: 1px; background: var(--line); margin: 4px 0; }
@media (prefers-reduced-motion: reduce) { .ep-done, .ep-bandprev, .ep-avprev { transition: none; } }
/* Remove photo / header (legacy-furniture fixes, 2026-11-17): the native checkbox row is a
   designed danger-quiet toggle. The checkbox itself stays — it is the field that posts.
   Since the edit-profile redesign (2026-11-20) the toggle's one remaining seat is the
   page's <noscript> strip, where the label is keyed to the hidden checkbox by for= (the
   form-level :has() rules in the ep block above paint its armed state there); with JS the
   media sheet arms the same checkbox. The 44px hit minimum the old .check row carried
   (P5) carries over. */
.rm-btn { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 2px; background: transparent; color: var(--bad); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.rm-btn input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.rm-btn .rm-on { display: none; }
.rm-btn:has(input:checked) { background: var(--bad); border-color: var(--bad); color: #fff; }
:root[data-theme="dark"] .rm-btn:has(input:checked) { color: #000; }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] .rm-btn:has(input:checked) { color: #000; } }
.rm-btn:has(input:checked) .rm-off { display: none; }
.rm-btn:has(input:checked) .rm-on { display: inline; }
.rm-btn:has(> input:focus-visible) { outline: 2px solid var(--up); outline-offset: 2px; }
.av-pick { cursor: pointer; }
.av-pick:focus-within { outline: 2px solid var(--up); outline-offset: 2px; }
.edited { color: var(--faint); }
.composer-edit .cbar { gap: 8px; }
.composer-edit .cbar .counter { margin: 0 auto 0 0; }

/* ---------- match review ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0 22px; }
.match-block .compare { margin-bottom: 8px; }
.img-choices { display: grid; gap: 6px; margin: 0 0 22px; }
/* Per-image choices are designed rows in the page's own .choice dialect (legacy-furniture
   fixes, 2026-11-17 — they were native radio rows with paragraph labels): a bordered box,
   a designed radio dot, a strong line over a muted one. The radio input rides invisible
   over the row (the .seg/.pto pattern), so the field, its name/value and the no-JS flow
   are untouched. A one-line option still carries the 44px hit minimum (P5). */
.img-choice { position: relative; display: flex; gap: 10px; align-items: flex-start; min-height: 44px; border: 1px solid var(--line); border-radius: 2px; padding: 12px 14px; cursor: pointer; }
.img-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.img-choice .rd { margin-top: 2px; }
.img-choice:has(input:checked) { border-color: var(--fg); }
.img-choice:has(input:checked) .rd { border-color: var(--fg); }
.img-choice:has(input:checked) .rd::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--fg); }
.img-choice:has(> input:focus-visible) { outline: 2px solid var(--up); outline-offset: 2px; }
.img-choice-tx { display: grid; gap: 4px; font-size: 13.5px; line-height: 1.35; }
.img-choice-tx span { color: var(--mute); }
/* the picked row of a decided block takes the emphasis in place (audit fix round) */
.img-choices .img-choice.picked { background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.back-edit { margin-top: 14px; }
.compare figure { margin: 0; }
.compare img { width: 100%; aspect-ratio: 1; object-fit: contain; border: 1px solid var(--edge); border-radius: 1px; background: var(--soft); display: block; }
.compare figcaption { font: 400 12px/1.3 var(--sans); color: var(--mute); margin-top: 6px; }
.choices { display: grid; gap: 8px; }
.choice { text-align: left; background: transparent; border: 1px solid var(--line); border-radius: 2px; padding: 12px 14px; cursor: pointer; display: grid; gap: 4px; }
.choice:hover { border-color: var(--fg); }
.choice span { color: var(--mute); font-size: 13.5px; }
.choice:first-child { border-color: var(--fg); }
.choice.plain { border: 0; padding: 8px 0; color: var(--mute); min-height: 44px; align-content: center; } /* the one-line choice meets the same 44px floor as its two-line siblings (controls sweep, 2026-11-17) */

/* ---------- admin ---------- */
.case { padding: 8px 0 20px; border-bottom: 2px solid var(--line); }
.case .sec { margin-top: 14px; }

/* ---------- Create: captions first, then a fold of edits (Remix: text only) ---------- */
.composer { padding: 14px 0 20px; position: relative; }
/* The create surfaces' slim title (compose overhaul, 2026-11-17): a 15px lowercase label
   replaces the 26px display title and its lede — the doors below say everything the lede did. */
.page-title { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; margin: 0; padding: 4px 0 12px; }
/* The create page's three doors (compose overhaul — the approved Space `compose-page-mock`):
   full-width rows bleeding to the column's edges, a hairline under each. The template door
   carries a strip of real library thumbs plus a "+N" tile; the other two carry a soft icon
   tile. The doors stand only while no source is locked in. */
.doors { margin: 0 calc(-1 * var(--pad)); }
.doors[hidden] { display: none; }
.door { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px var(--pad); border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--fg); font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.door-main { flex: 1; min-width: 0; display: grid; gap: 5px; justify-items: start; }
.door-label { font-size: 15px; font-weight: 500; }
.door-sub { font-size: 12px; color: var(--mute); }
.door-chev { color: var(--mute); font-size: 20px; line-height: 1; flex: none; }
.door-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--soft); display: grid; place-items: center; flex: none; color: var(--fg); }
.tpl-strip { display: flex; gap: 6px; }
.tpl-strip img { width: 52px; height: 52px; border-radius: 6px; border: 1px solid var(--line); object-fit: cover; display: block; }
.tpl-strip-more { width: 52px; height: 52px; border-radius: 6px; background: var(--soft); display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--mute); }
.remix-src { margin: 0 0 4px; }
.remix-src[hidden] { display: none; }
.remix-src img { display: block; width: 100%; height: auto; border: 1px solid var(--edge); background: var(--soft); }
.meme-stage { margin: 10px 0 4px; position: relative; }
.meme-stage[hidden] { display: none; }
.meme-canvas { display: block; position: absolute; border: 0; background: transparent; -webkit-user-select: none; user-select: none; }
/* the text layer (panel model): the placed texts are elements in the stage, positioned
   by app.js in stage coordinates over the canvas's picture — display-only at rest, and
   the selected one becomes the editing surface itself while typing (editor v6). The
   layer itself never intercepts a press (the stage's gesture machine hit-tests the
   same layout that positioned them); the frame is the selection's corner-mark outline (the mock's: a quiet
   white outline grown past the ink, with an L-shaped mark at two corners); the measurer
   is the layout's hidden wrap-measure element. */
/* the stage's inner view layer (editor consistency build, 2026-11-18, item 3): wraps
   every painted child of the stage so the typing presentation can transform the whole
   view — picture and texts together — while the stage's own box never moves. At rest
   it carries no transform and paints exactly as the children did directly under the
   stage; while typing it transitions on the house tokens (one motion with the
   keyboard), and under reduced motion it simply cuts. */
.stage-view { position: absolute; inset: 0; transition: transform var(--mot) var(--ease); }
@media (prefers-reduced-motion: reduce) { .stage-view { transition: none; } }
/* the typing dim (same build): a black veil over the picture and the other texts at
   ~50% while typing; the editing textarea paints above it (same z, later in the DOM),
   the type bar and Done are panel chrome outside the stage and never dim. Fades on
   the house tokens; app.js clears it on every typing exit path. */
.tx-dim { position: absolute; inset: 0; z-index: 3; background: #000; opacity: 0; pointer-events: none; transition: opacity var(--mot) var(--ease); }
@media (prefers-reduced-motion: reduce) { .tx-dim { transition: none; } }
.tx-layer { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.tx-bar { position: absolute; pointer-events: none; }
.tx-frame { position: absolute; z-index: 4; outline: 1.5px solid rgba(255, 255, 255, .55); pointer-events: none; }
.tx-frame[hidden] { display: none; }
.tx-frame::before, .tx-frame::after { content: ""; position: absolute; width: 10px; height: 10px; border: 2px solid #fff; }
.tx-frame::before { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.tx-frame::after { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }
/* A side the canvas clamp cut (app.js seats the fm-* classes) pulls its corner
   mark inside the frame, so the frame's painted extent truly stops at the
   picture's edge (editor polish build, 2026-11-18). */
.tx-frame.fm-l::before { left: 0; }
.tx-frame.fm-t::before { top: 0; }
.tx-frame.fm-r::after { right: 0; }
.tx-frame.fm-b::after { bottom: 0; }
.tx-meas { position: absolute; left: 0; top: 0; z-index: -1; visibility: hidden; pointer-events: none; white-space: pre-wrap; overflow-wrap: break-word; padding: 0; }
/* a placed text: a display-only div — it takes no press and paints the words
   from the same fitted geometry the bake uses, ALWAYS: while its box is being
   typed in it hides, and the stage's one textarea (below) is the only
   rendering of the words. paint-order: stroke fill makes its
   -webkit-text-stroke render like the bake — stroke centred on the glyph edge, fill
   over the inner half (round 7, R7-2). An empty box paints NOTHING (editor polish
   iteration 6, 2026-11-19 — the placeholder word is removed on the owner's
   ruling; the box keeps its measured geometry for the frame and the hit test,
   and while it is edited the caret is its only mark). */
.tx-in { position: absolute; margin: 0; padding: 0; overflow: hidden; pointer-events: none;
  white-space: pre-wrap; overflow-wrap: break-word; paint-order: stroke fill;
  font-family: "MemeItCaption", var(--sans);
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
/* the typing element (editor foundations, step 4 — the v6 contenteditable is
   retired): ONE textarea for the whole stage, seated by layout() over the box
   being edited and styled as the text itself — transparent ground, the box's
   own face/colour/outline treatment copied onto it by app.js, the brand-green
   caret (rule 11: the editor's caret is a product verb, as the retired panel
   field's was), the house green selection wash, no border, no resize handle,
   no scrollbars (overflow hidden — the fitted rule owns the height), and no
   UA focus ring around the whole text. A textarea's value IS its text: no
   structural walk back into the model, no caret save/restore by offset — the
   machinery that detached the v6 frame and welded typed spaces shut is gone
   with the element it served. The element is mounted on the BODY, outside the
   composer form entirely (editor polish build, 2026-11-18 — see app.js: iOS
   Password AutoFill is a form feature, and this textarea is not a form field),
   so the bare class selector is safe: no .composer field dialect can reach it,
   and the resets below strip the UA textarea dressing — fill, radius, padding,
   focus ring, resize handle and all. It is viewport-fixed above the stage
   (z 44) and seated in viewport coordinates by app.js. */
.tx-edit { position: fixed; z-index: 45; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent;
  box-shadow: none; resize: none; overflow: hidden; white-space: pre-wrap; overflow-wrap: break-word; min-height: 0; min-width: 0;
  caret-color: var(--up); cursor: text; -webkit-user-select: text; user-select: text; touch-action: none;
  paint-order: stroke fill; box-sizing: border-box; font-family: "MemeItCaption", var(--sans);
  -webkit-tap-highlight-color: transparent;
  /* the typing float's glide (2026-11-19): the presentation transform — the float to the
     visible centre on entry, the glide home on release — moves on the house slow token */
  transition: transform var(--mot-slow) var(--ease); }
@media (prefers-reduced-motion: reduce) { .tx-edit { transition: none; } }
.tx-edit[hidden] { display: none; }
.tx-edit:focus { outline: none; box-shadow: none; }
.tx-edit::selection { background: color-mix(in srgb, var(--up) 35%, transparent); }
/* snap guides: hairlines in the mock's pink over the picture, shown only while a text is
   dragged (app.js positions them and fades them on the house curve; they never print in
   the bake) */
.snap-guide { position: absolute; z-index: 3; background: #ff5470; opacity: 0; pointer-events: none; transition: opacity .2s cubic-bezier(.2,.8,.2,1); }
.snap-guide.v { width: 1px; }
.snap-guide.h { height: 1px; }
/* the guide is 1px at ~55% opacity in every state (editor consistency build, 2026-11-18):
   app.js seats the shown opacity at 0.55 — the old .lock thickening on engage is deleted. */
@media (prefers-reduced-motion: reduce) { .snap-guide { transition: none; } }
.stage-hint { margin: 6px 0 0; }
.stage-hint[hidden], .mm-note[hidden] { display: none; }
.previews { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 8px 0; }
/* the composer's way back into the editor (owner ruling 2026-11-19, item (k)):
   a quiet link row under the preview, standing only while a picture stands
   in page mode — entering the stage is a choice now, never an ambush. */
.stage-edit-row { margin: 8px 0 0; }
.stage-edit-row[hidden] { display: none; }
.previews:empty { display: none; }
.previews img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--edge); display: block; }
.previews > p { grid-column: 1 / -1; margin: 0; } /* a note in the strip (an unreadable upload, a failed source load) is a full-width quiet line, never squeezed into one grid column */
.meme-tools { display: grid; gap: 0; margin: 10px 0 12px; }
.meme-tools > legend { font: 500 11px/1 var(--sans); color: var(--faint); letter-spacing: 0; margin: 0 0 6px; padding: 0; text-transform: lowercase; }
/* caption fields: one ruled list, quiet labels on the left */
.meme-tools > .fld { display: grid; grid-template-columns: 62px 1fr; gap: 0; align-items: center; border: 1px solid var(--line); border-top: 0; background: var(--field); min-height: 40px; }
.meme-tools > legend + .fld { border-top: 1px solid var(--line); }
.meme-tools > .fld > span { padding-left: 10px; font-size: 11px; }
.meme-tools > .fld input { border: 0; background: transparent; padding: 9px 10px 9px 0; }
.stage-bar .seg { display: flex; justify-self: stretch; }
.stage-bar .seg label { flex: 1; }
.stage-bar .seg span { flex: 1; width: 100%; min-height: 32px; }
.meme-more { margin-top: 10px; }
.meme-more > summary { display: flex; align-items: baseline; gap: 6px; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--fg); list-style: none;
  padding: 10px 0; border-bottom: 1px solid var(--line); }
.meme-more > summary::-webkit-details-marker { display: none; }
.meme-more > summary::after { content: "+"; margin-left: auto; font: 400 13px/1 var(--sans); color: var(--mute); }
.meme-more[open] > summary::after { content: "−"; }
.mm-sum { font-weight: 400; font-size: 12.5px; text-transform: lowercase; }
.meme-more[open] .mm-sum { display: none; }
.mm { display: grid; gap: 16px; padding: 12px 0 6px; }
.mm-group { display: grid; gap: 8px; }
[data-img-tools][hidden] { display: none; } /* app.js hides the group while a template is the source */
.mm-h { font-family: var(--display); font-size: 15px; font-weight: 800; margin: 0; letter-spacing: -0.02em; font-variation-settings: "opsz" 32; color: var(--fg); }
.mm-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 32px; }
.mm-l { width: 58px; flex: none; font: 500 11px/1.2 var(--sans); color: var(--mute); text-transform: lowercase; }
.mm .fld { gap: 5px; }
.mm .seg span { padding: 0 11px; font-size: 12.5px; min-height: 28px; }
.mm-colors { display: flex; gap: 6px; }
.swatch.sm2 { width: 24px; height: 24px; }
.swatch.auto { background: linear-gradient(135deg, #fff 50%, #111 50%); }
.swatch.custom { background: conic-gradient(#e5383b, #ffd60a, #3ccf72, #3a86ff, #b26bff, #e5383b); }
.mm-sel { font-size: 16px; color: var(--fg); background: var(--field); border: 0; border-radius: 12px; padding: 10px 12px; outline: none; } /* the surviving no-JS selects take the filled dialect's fill and radius too (field unification, 2026-11-17), at the tools' denser padding */
.mm-sel:focus { box-shadow: inset 0 0 0 1px var(--up); }
.mm-sel[hidden] { display: none; } /* with JS, a designed control drives the select; the select it drives hides */
.mm-range { flex: 1; min-width: 140px; max-width: 280px; accent-color: var(--fg); }
/* text-box list: the editor's plain form face (what no-JS sees, and the form's data layer with JS —
   app.js hides it and the texts are edited on the picture). One ruled row per box, no cards.
   The reveal is delayed a beat (overhaul F3): app.js runs at the end of the body and hides the
   list as it builds the stage, so on a JS visit the plain form never flashes first; without JS
   the list simply fades in a moment later, fully usable. */
@keyframes mm-reveal { from { opacity: 0; } }
.box-list { display: grid; animation: mm-reveal .01s .3s backwards; }
@media (prefers-reduced-motion: reduce) { .box-list { animation: none; } }
.box-list[hidden] { display: none; }
.box-row { display: grid; gap: 7px; padding: 10px 0 12px; border-bottom: 1px solid var(--line); }
.box-row:first-child { padding-top: 2px; }
.box-row:last-child { border-bottom: 0; padding-bottom: 2px; }
.box-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.box-n { font: 500 11px/1.2 var(--sans); color: var(--mute); text-transform: lowercase; }
.box-acts { display: flex; gap: 14px; }
.composer .box-row textarea { margin-top: 0; min-height: 46px; }
.box-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.box-ctl .bc { display: inline-flex; align-items: center; gap: 8px; }
.box-ctl .mm-l { width: auto; }
.box-ctl .seg span { padding: 0 10px; min-height: 28px; font-size: 12.5px; }
.box-addrow { display: flex; align-items: baseline; gap: 12px; }
.box-addrow[hidden] { display: none; } /* app.js hides the row (the stage's "+ add text" is the JS home); the plain form keeps it */
.box-acts .link, .box-addrow .link { display: inline-flex; align-items: center; min-height: 44px; } /* the plain form's text buttons meet the same 44px floor as their row-action twins (.r-del, the Blocked list's Unblock) — controls sweep, 2026-11-17 */

/* ---------- editor stage pass (2026-11-13): the stage is the editor's presentation ----------
   With JS and a picture loaded, the stage wrapper becomes a full-viewport stage — a state of
   this same page (app.js sets its height/top from visualViewport). It follows the site's
   theme like every other surface (defect batch, 2026-11-20 — it was true black in BOTH
   themes until the owner called it out): newsprint light, true black dark, every chrome
   colour from the theme tokens; only what paints OVER the picture (the selection frame,
   the crop frame, the typing dim) keeps its own over-image values. Its grid is the whole
   chrome: a top row (close pill, undo/redo pill), the stage, a bottom row (the text pill +
   the surface's primary action), and the panel row (the panel model, 2026-11-16: the text
   panel or the meme panel — see the panel section below). In the page (stage off, or no
   JS) the wrapper is just the canvas in the column and none of the rows render. The stage's
   green is the theme's --up, exactly .btn.go's treatment; it colours exactly what rule 11
   allows: the primary pill and the editing text's caret/selection. (The snap guides are
   the mock's pink, not green.)
   Motion is the house system: transform/opacity only, 120–260ms on
   cubic-bezier(.2,.8,.2,1), exits faster than entries, and prefers-reduced-motion turns it off. */
.stage-wrap { position: relative; }
/* the ARMED stage (round 8, R8-1): from the choosing gesture until the
   picture's first painted frame, the wrapper is already the full-viewport
   stage in the theme's ground — but with every chrome row hidden, so entry
   is one frame: ground, then picture + chrome together, never chrome over
   the page and never the page through the stage */
.stage-wrap.stage-arm { position: fixed; inset: 0; z-index: 44; background: var(--bg); }
.stage-wrap.stage-arm > * { visibility: hidden; }
html.stage-arm, html.stage-arm body { overflow: hidden; overscroll-behavior: none; }
/* the armed stage's one sign of life (polish rider, 2026-11-19): while the
   picture loads the stage is the solid theme ground by design (R8-1) — a
   centred "loading…" in the stage's quiet voice says the ground is working,
   not broken. It rides the arm class alone: no JS, and it is gone the frame
   the stage turns on. The pager's loading note is the idiom it follows. */
.stage-load { display: none; }
.stage-wrap.stage-arm .stage-load { display: flex; position: absolute; inset: 0; align-items: center; justify-content: center;
  visibility: visible; margin: 0; font: 500 12.5px/1 var(--sans); color: var(--mute); }
html.stage-arm form.composer > *:not(.stage-wrap) { visibility: hidden; }

.stage-wrap.stage-on { position: fixed; inset: 0; z-index: 44; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); background: var(--bg); color: var(--fg); }
/* the stationary panel never scrolls, so no row may size the track by its content:
   without this the font strip's full width stretched the stage past the viewport
   and pushed the top bar's primary off-screen (v4 fix, found by the rig) */
.stage-wrap.stage-on > * { min-width: 0; }
html.stage-on, html.stage-on body { overflow: hidden; overscroll-behavior: none; }
/* While the stage is engaged the page underneath is hidden, not merely covered
   (round 3, H3): the form's own children — heading, lede, tools and its primary
   button row — can never bleed through a stage transition or double the stage's
   primary. The stage wrap and the (retired, always-hidden) bar ground are the
   form's other children and keep their own rules, so only they show. */
html.stage-on form.composer > *:not(.stage-wrap) { visibility: hidden; }
.stage-wrap.stage-on .meme-stage { margin: 0; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 6px; overflow: hidden; }
.stage-wrap.stage-on .meme-canvas { width: auto; height: auto; max-width: 100%; max-height: 100%; border: 0; border-radius: 6px; background: transparent; }
/* the stage canvas never wears the UA focus ring (round 5, R5-5): Done's exit focuses the
   canvas programmatically, and the global :focus-visible ring then drew a green outline
   around the WHOLE picture (recording #7, ~39–41s). The editor's keyboard focus has its
   own visible home — the dashed selection ring the canvas paints — so the outline goes
   here, on the stage canvas only; every other element keeps the ring. */
.stage-wrap.stage-on .meme-canvas:focus { outline: none; }
.stage-wrap.stage-on .stage-hint { display: none; }
/* the stage rows render only on the stage (JS adds .stage-on); without JS they never appear */
.stage-top { display: none; }
.stage-wrap.stage-on .stage-top { display: flex; align-items: center; justify-content: space-between; padding: calc(10px + env(safe-area-inset-top)) 12px 4px; }
.stage-cluster { display: inline-flex; align-items: center; gap: 10px; }
/* glass pills in the theme's own ink: the stage's one chrome language */
.stage-x, .stage-history, .stage-pill { background: color-mix(in srgb, var(--fg) 11%, var(--bg)); color: var(--fg); border: 0; -webkit-tap-highlight-color: transparent; }
.stage-x { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; cursor: pointer; transition: transform .12s cubic-bezier(.2,.8,.2,1); }
.stage-history { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; }
/* undo/redo leave the bar while typing (owner ruling, 2026-11-20 — a mid-typing
 * undo tore the session down on his phone): the wrap carries .typing for
 * exactly the session's life, so the pill hides and returns with it.
 * visibility, not display: the bar's other items (× left, save/done right)
 * never move. The × itself stays — it steps back out of typing. */
.stage-wrap.typing .stage-history { visibility: hidden; }
.stage-hist { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; background: none; border: 0; border-radius: 50%; color: var(--fg); cursor: pointer; transition: transform .12s cubic-bezier(.2,.8,.2,1); }
.stage-hist[disabled] { opacity: .32; cursor: default; }
.stage-pill[disabled] { opacity: .32; cursor: default; } /* the text door's dim (editor fix build #2, 2026-11-19): the stage chrome's one disabled dialect */
.stage-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 999px; font: 600 14px/1 var(--sans); cursor: pointer; transition: transform .12s cubic-bezier(.2,.8,.2,1); }
.stage-pill[hidden] { display: none; }
.stage-x:active, .stage-hist:not([disabled]):active, .stage-pill:active { transform: scale(.97); }
/* the surface's primary action: solid brand green, exactly .btn.go's themed treatment */
.btn.stage-primary { background: var(--up); border-color: var(--up); color: #fff; border-radius: 999px; min-height: 44px; padding: 0 22px; font-weight: 700; transition: transform .12s cubic-bezier(.2,.8,.2,1); }
:root[data-theme="dark"] .btn.stage-primary { color: #000; }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] .btn.stage-primary { color: #000; } }
.btn.stage-primary:active { transform: scale(.97); }
/* the style bar: the meme-level style seg's page home, directly under the stage (the meme
   panel's style seg drives the same radios while the stage is up) */
.stage-bar { margin: 6px 0 2px; }
.stage-bar[hidden] { display: none; }
/* ---------- panel state (v4 stationary panel, editor fix 2026-11-16): editing lives under the stage ----------
   The stage is a pure preview; the PANEL is a grid row of the stage wrap, in normal flow.
   ONE panel stands in the row — it never scrolls, never swaps, and always edits the
   current text. While typing the wrap's height follows the visualViewport
   (app.js), so the panel docks at the visible bottom edge — directly above the keyboard —
   and the stage keeps the rest. The panel is the stage's own surface in the site's
   theme (defect batch, 2026-11-20): --panel ground, hairline top border, --field
   fields, --fg-ringed selected dots, inverted Done. */
.stage-wrap.stage-on { touch-action: none; }
.editor-panel { display: none; }
@media (pointer: coarse) {
  .editor-panel .font-opt, .editor-panel .done-btn, .editor-panel .cycle-btn { min-height: 44px; }
}
.stage-wrap.stage-on .editor-panel:not([hidden]) { display: block; position: relative; background: var(--panel); color: var(--fg);
  border-top: 1px solid var(--line); padding: 12px 14px calc(16px + env(safe-area-inset-bottom));
  /* the dock (app.js's dockChrome transform) glides on the house motion when
     the seat is applied once per viewport settle (editor follow-up build,
     2026-11-19) — the typing view has carried the same transition all along,
     so bar and text now land as one motion instead of the bar snapping. */
  transition: transform var(--mot) var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .stage-wrap.stage-on .editor-panel:not([hidden]) { transition: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .stage-wrap.stage-on .editor-panel:not([hidden]) { animation: panel-in .16s var(--ease); }
}
@keyframes panel-in { from { opacity: 0; transform: translateY(5px); } }
/* the panel's rows (v4; v6 removed the field row): the panel NEVER scrolls — its
   height is its content, fixed across option presses — and while typing (.typing on
   the wrap) the control rows go invisible IN PLACE and the slim type bar stands in
   for them, docked above the keyboard (foundations step 2: the panel is translated
   by the keyboard inset, app.js's dockChrome — the wrap itself never resizes).
   The rows keep their height while invisible on purpose: the panel is a grid row
   under the stage, so a height change would resize the stage and refit the
   picture the moment typing starts — the stage's box is constant across the
   whole typing cycle instead. The font strip is the panel's only scroller,
   horizontal. */
.done-btn { flex: none; background: var(--inv-bg); color: var(--inv-fg); border: 0; min-height: 38px; padding: 6px 18px; border-radius: 999px;
  font: 600 14px/1 var(--sans); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.done-btn:active { transform: scale(.97); }
.stage-wrap.typing .panel-rows { visibility: hidden; }
/* While typing, the docked panel OVERLAPS the stage's lower area (its box is
   translated up by the keyboard inset) — so its bulk goes fully transparent and
   click-through: the picture shows where the invisible rows float, and presses
   there still reach the stage (a text under the float stays tappable — the
   text-to-text handoff presses exactly there). Nothing in the panel paints
   while typing (the type bar's turn to stand down is the rule below). */
.stage-wrap.stage-on.typing .editor-panel:not([hidden]) { background: transparent; border-top-color: transparent; pointer-events: none; }
/* the type bar (editor v6, the approved in-place mock's slim bar): the panel's
   typing-state stand-in. It renders only on the stage; its compact font strip
   retires while typing (editor consistency build, 2026-11-18, item 1: the strip
   was a second font home duplicating the panel's, and a mid-typing font switch
   was never reachable from it), and the panel (and its strip) returns whole on
   exit. In the typing state the bar itself no longer PAINTS at all (owner
   verdict, 2026-11-19, staging iteration 3): its last typing content was its
   Done button, removed in the same verdict as redundant — every exit (Esc,
   the stage's done and ×, a tap outside the text, keyboard dismissal) already
   ends typing, and the pill rendered under the typing dim besides — so the
   bar's black shell, hairline and 96px skirt (the 2026-11-17 dock fix's
   answer to iOS reporting its bottom edge high) stood between the dimmed
   stage and the keyboard as an empty black slab, a leftover of the bar's
   earlier lives. With the bar unpainted the dimmed stage runs down to the
   keyboard uninterrupted, and presses in that zone reach the stage as they
   do everywhere else in the typing panel. */
.type-bar { display: none; }
.stage-wrap.stage-on .type-bar:not([hidden]) { display: flex; align-items: center; gap: 10px; }
.stage-wrap.typing .type-bar .font-row { display: none; }
.stage-wrap.typing .type-bar:not([hidden]) { display: none; }
.type-bar .font-row.slim { flex: 1; min-width: 0; }
.type-bar .font-row.slim .font-opt { min-height: 36px; padding: 3px 12px; font-size: 13.5px; }
/* ---------- the freehand crop (2026-11-19): crop mode is a view state over the stage.
   The panel's rows hide IN PLACE (their height stands, so the stage's box never moves),
   the top bar's clusters go quiet, the texts hide, and the crop bar stands in the
   panel's seat with the mode's cancel/done — the typing pattern throughout. The frame
   is a white hairline over the full picture, the area outside it dimmed by the frame's
   own shadow; the handles are 30px touch squares wearing one small white grip. */
.stage-wrap.cropping .panel-rows { visibility: hidden; }
.stage-wrap.cropping .stage-top .stage-cluster { visibility: hidden; }
.stage-wrap.cropping .tx-layer, .stage-wrap.cropping .tx-frame, .stage-wrap.cropping .tx-dim { display: none; }
.crop-bar { display: none; }
.stage-wrap.stage-on.cropping .crop-bar:not([hidden]) { display: flex; align-items: center; justify-content: space-between;
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px calc(16px + env(safe-area-inset-bottom));
  background: var(--panel); border-top: 1px solid var(--line); }
.crop-cancel { background: none; border: 0; color: var(--fg); font: 600 14px/1 var(--sans); min-height: 38px; padding: 6px 10px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.crop-cancel:active { transform: scale(.97); }
.crop-frame { position: absolute; z-index: 3; border: 1.5px solid rgba(255, 255, 255, .95); box-shadow: 0 0 0 9999px rgba(0, 0, 0, .55); touch-action: none; cursor: move; }
.crop-h { position: absolute; width: 40px; height: 40px; margin: -20px 0 0 -20px; touch-action: none; }
.crop-h::after { content: ""; position: absolute; left: 14px; top: 14px; width: 12px; height: 12px; border-radius: 3px; background: #fff; box-shadow: 0 1px 5px rgba(0, 0, 0, .55); }
.crop-h[data-ch="nw"] { left: 0; top: 0; cursor: nwse-resize; }
.crop-h[data-ch="n"] { left: 50%; top: 0; cursor: ns-resize; }
.crop-h[data-ch="ne"] { left: 100%; top: 0; cursor: nesw-resize; }
.crop-h[data-ch="e"] { left: 100%; top: 50%; cursor: ew-resize; }
.crop-h[data-ch="se"] { left: 100%; top: 100%; cursor: nwse-resize; }
.crop-h[data-ch="s"] { left: 50%; top: 100%; cursor: ns-resize; }
.crop-h[data-ch="sw"] { left: 0; top: 100%; cursor: nesw-resize; }
.crop-h[data-ch="w"] { left: 0; top: 50%; cursor: ew-resize; }
.panel-rows > * { margin-top: 12px; }
.panel-rows.is-empty > *:not(.panel-empty):not(.panel-gate) { opacity: .38; pointer-events: none; }
.panel-empty { margin-bottom: 0; text-align: center; font-size: 13.5px; color: var(--mute); }
/* the hint's slot is RESERVED in every state (owner ruling, 2026-11-20,
   from his live test): while hidden the line keeps its layout box and
   only its visibility goes — display:none shrank the panel by the line's
   whole weight (height + margin) each time a selection hid it, and the
   stage row grew into the space, so the picture jumped up and down as
   the hint came and went. The text itself still shows only in the
   states it shows today (syncPanel's hidden toggle is untouched). */
.panel-empty[hidden] { display: block; visibility: hidden; }
/* the upload gate's notice (2026-11-17): one quiet line in the panel, in the same seat as
   the "no text" line it replaces while the gate stands — the panel's own mute voice */
.panel-gate { margin-bottom: 0; text-align: center; font-size: 12px; color: var(--mute); }
.panel-gate[hidden] { display: none; }
/* the size slider: a 3px track filled in the theme ink to the thumb (--p from app.js),
   the same 22px thumb (the track treatment the retired H/S/B sliders shared) */
.size-slider { display: block; width: 100%; -webkit-appearance: none; appearance: none; height: 26px; background: transparent; cursor: pointer; }
.size-slider::-webkit-slider-runnable-track { height: 3px; border-radius: 2px;
  background: linear-gradient(to right, var(--fg) var(--p, 14%), color-mix(in srgb, var(--fg) 28%, transparent) var(--p, 14%)); }
.size-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin-top: -9.5px;
  border-radius: 50%; background: var(--fg); border: 0; box-shadow: 0 1px 4px rgba(0, 0, 0, .45); }
.size-slider::-moz-range-track { height: 3px; border-radius: 2px; background: color-mix(in srgb, var(--fg) 28%, transparent); }
.size-slider::-moz-range-progress { height: 3px; border-radius: 2px; background: var(--fg); }
.size-slider::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--fg); border: 0; box-shadow: 0 1px 4px rgba(0, 0, 0, .45); }
.font-row { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.font-row::-webkit-scrollbar { display: none; }
/* the colour dots: per-text presets + the rainbow custom dot; the selected dot rings
   in the theme ink against the panel ground, the house selected-state language */
.color-row { display: flex; align-items: center; }
.dot-strip { display: flex; gap: 10px; flex-wrap: nowrap; }
.cdot { width: 28px; height: 28px; flex: none; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 25%, transparent); -webkit-tap-highlight-color: transparent; }
.cdot.is-on { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--fg); }
.cdot.custom { background: conic-gradient(#e5383b, #ffd60a, #3ccf72, #3a86ff, #e5383b); position: relative; display: inline-block; }
/* the custom dot IS the native colour picker (editor polish build, 2026-11-18):
   the input fills the dot invisibly, so the tap lands on the input itself and
   the OS picker opens directly — the old in-panel "pick a colour" popover row
   grew the panel and shoved the stage ~37px on every open, so the row is gone
   and nothing in the panel ever reflows for colour. */
.cdot.custom input[type="color"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; padding: 0; cursor: pointer; }
.cdot.custom:focus-within { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--fg); }
.cdot.custom.is-inert { opacity: .38; }
/* no selection (editor polish build, 2026-11-18): a tap on the empty picture
   deselects, and the panel's per-text controls go inert — disabled and dimmed —
   while + text stays live; selecting a text re-arms them (syncPanel). */
.editor-panel .panel-rows.no-sel :disabled { opacity: .38; }
/* the cycle row: four glyph-only tap-cycle buttons, ~44px targets, no labels — each
   glyph reads its state at rest (app.js paints the glyph per state) */
.cycle-row { display: flex; }
.cycle-btn { flex: 1; min-height: 44px; padding: 4px 0; display: flex; align-items: center; justify-content: center;
  background: none; border: 0; color: var(--fg); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cycle-btn:active { transform: scale(.94); }
.g-case { font: 600 16px/1 var(--sans); }
.g-ol { font-weight: 700; font-size: 18px; line-height: 1; font-family: "MemeItCaption", var(--sans); padding: 2px 6px; border-radius: 4px; }
.g-ol[data-ol="off"] { color: color-mix(in srgb, var(--fg) 85%, transparent); }
.g-ol[data-ol="thin"] { -webkit-text-stroke: 0.7px var(--fg); color: transparent; }
.g-ol[data-ol="standard"] { -webkit-text-stroke: 1.2px var(--fg); color: transparent; }
.g-ol[data-ol="thick"] { -webkit-text-stroke: 2.4px var(--fg); color: transparent; }
.panel-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; margin-top: 14px; }
.panel-act { min-height: 44px; padding: 8px 2px; border: 0; background: none;
  color: var(--fg); font: 500 14px/1 var(--sans); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.panel-act:active { transform: scale(.97); }
.panel-acts .delete-btn { margin-left: auto; min-height: 44px; display: inline-flex; align-items: center; }
.delete-btn { background: none; border: 0; padding: 4px 0; color: var(--bad); font: 500 14px/1 var(--sans); cursor: pointer; }
/* the meme panel's moved-in rows (the colour row, the outline row, Adjust image) keep their
   plain-form styles in the form; on the panel they take the theme's own values, like the page */
.editor-panel .mm-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; min-height: 44px; }
.editor-panel .mm-l { width: 34px; flex: none; font-size: 13px; color: var(--mute); text-transform: lowercase; }
.editor-panel .mm-colors { gap: 9px; flex-wrap: wrap; }
.editor-panel .swatch.sm2 { width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 25%, transparent); }
.editor-panel .sw-opt input:checked + .swatch { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--fg); }
.editor-panel .check { color: var(--fg); }
.editor-panel input[type="checkbox"] { accent-color: var(--fg); }
.editor-panel .mm-h { color: var(--fg); }
.editor-panel .mm-sel { color: var(--fg); background: var(--field); } /* on the panel a select takes the theme's field fill, as on the page (field unification, 2026-11-17) */
.editor-panel [data-img-tools] { margin-top: 12px; }
/* the H/S/B slider rows (.hsb-rows/.hsb-row) are deleted with the brightness
   slider itself (owner ruling 2026-11-17: the slider "causes more problems
   than it's worth") — the colour popover is the native picker alone now. */
/* Tier 1 (2026-11-15): the font options render in their own faces (registered by app.js
   from the same TTFs the bake uses); the pressed option takes the filled inverted state.
   In the panel model they are the text panel's font pills. */
.font-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.font-opt { min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--edge);
.editor-panel .font-opt { flex: none; padding: 6px 13px; font-size: 13.5px; white-space: nowrap; }
  background: var(--soft); color: var(--fg); font: 500 14px/1.2 var(--sans); cursor: pointer; }
.font-opt[aria-pressed="true"] { background: var(--inv-bg); border-color: var(--inv-bg); color: var(--inv-fg); }
/* font-chip label centring (defect batch, 2026-11-20): the pill centres the label's LINE BOX,
   but each face's glyph ink sits at its own height inside that box — the gap between the face's
   CSS ascent and its actual ink ascent (worst on two-line labels) — so labels rode high by a
   face-specific amount (rigidly measured on the rig at the chip size: anton 1.25px, archivo
   1.75px, luckiest guy 2.75px, bangers 1px, lilita one .75px; classic's ink already centres).
   The label span carries the measured per-face shift; the pill's box never moves. */
.font-opt .font-lbl { display: inline-block; transform: translateY(var(--chip-dy, 0px)); }
.font-opt[data-font-opt="anton"] { --chip-dy: 1.25px; }
.font-opt[data-font-opt="archivo"] { --chip-dy: 1.75px; }
.font-opt[data-font-opt="luckiest"] { --chip-dy: 2.75px; }
.font-opt[data-font-opt="bangers"] { --chip-dy: 1px; }
.font-opt[data-font-opt="lilita"] { --chip-dy: .75px; }
.font-opt[data-font-opt="anton"] { font-family: "MemeItAnton", "MemeItCaption", var(--sans); }
.font-opt[data-font-opt="archivo"] { font-family: "MemeItArchivo", "MemeItCaption", var(--sans); }
.font-opt[data-font-opt="luckiest"] { font-family: "MemeItLuckiest", "MemeItCaption", var(--sans); }
.font-opt[data-font-opt="bangers"] { font-family: "MemeItBangers", "MemeItCaption", var(--sans); }
.font-opt[data-font-opt="lilita"] { font-family: "MemeItLilita", "MemeItCaption", var(--sans); }
/* the tools' outline row keeps its plain-form seat in the form; in the panel it is the
   meme panel's outline row — never display:none'd by its old parked rule */
/* the draft prompt (round 5, R5-1; rebuilt editor fix v5 to the approved
   confirm-sheet mock): a full-width bottom sheet over its own scrim — grab handle,
   lowercase title, the mock's sub, and the mock's stacked 48px treatments. It wears
   the confirm sheet's own themed values (light ground, dark override), like every
   sheet on the site (defect batch, 2026-11-20: it once pinned the mock's dark
   values at every theme because the stage behind it was always black; the stage
   follows the theme now, so the sheet does too). Its rise runs on the settle
   curve (motion voice, owner ruling 2026-11-15) like the house sheets'. The
   .cs-* treatments are shared with the confirm sheet (bottom of this file) and
   apply here unpinned. */
.draft-scrim { position: fixed; inset: 0; background: rgba(28,26,20,.45); z-index: 60; opacity: 0; transition: opacity .2s cubic-bezier(.2,.8,.2,1); }
:root[data-theme="dark"] .draft-scrim { background: rgba(0,0,0,.58); }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] .draft-scrim { background: rgba(0,0,0,.58); } }
.draft-scrim.on { opacity: 1; }
.draft-sheet { position: fixed; left: 0; right: 0; bottom: 0; transform: translateY(14px); z-index: 61; background: #f8f6f0; border-top: 1px solid var(--line); border-radius: 18px 18px 0 0; padding: 10px 16px calc(18px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; opacity: 0; transition: transform 300ms var(--ease-settle), opacity 200ms var(--ease); }
:root[data-theme="dark"] .draft-sheet { background: #161616; }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] .draft-sheet { background: #161616; } }
.draft-sheet.on { transform: translateY(0); opacity: 1; }
/* the draft sheet's exit (owner ruling 2026-11-21): the entrance keeps the settle
   treatment above; leaving runs ~200 ms on the standard tokens — the transition is
   read from the after-change style, so the resting (not-.on) state declares it. */
.draft-sheet:not(.on) { transition: transform var(--mot) var(--ease), opacity var(--mot) var(--ease); }
.draft-sheet .sheet-grab { background: #cfccc2; margin: 0 auto 16px; }
:root[data-theme="dark"] .draft-sheet .sheet-grab { background: #3d3d3d; }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] .draft-sheet .sheet-grab { background: #3d3d3d; } }
.draft-acts { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.sheet-grab { width: 38px; height: 4.5px; border-radius: 3px; background: rgba(255, 255, 255, .35); margin: 2px auto 10px; touch-action: none; cursor: grab; }
@media (prefers-reduced-motion: reduce) { .draft-sheet, .draft-scrim { transition: none; } }
/* the guest maker's LOCKED finish screen (round 2, G11): Done lands here — the finished
   meme alone on the black stage, all editing chrome gone, no path back into the editor.
   The picture is a plain <img>, so a long-press saves it natively (right-click on a
   desktop); the small Download file link covers the contexts long-press doesn't reach,
   and Make another starts a fresh maker. */
.make-finish { position: fixed; inset: 0; z-index: 44; background: #000; color: #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; padding: calc(14px + env(safe-area-inset-top)) 16px calc(14px + env(safe-area-inset-bottom)); }
.make-finish[hidden] { display: none; }
.make-finish-x { position: absolute; top: calc(10px + env(safe-area-inset-top)); left: 12px; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; background: rgba(28, 28, 30, .85); color: #fff; -webkit-tap-highlight-color: transparent; }
.make-finish-img { display: block; max-width: 100%; max-height: 72vh; width: auto; height: auto; background: #000; }
.make-finish-hint { margin: 0; font: 500 12.5px/1.4 var(--sans); color: rgba(255, 255, 255, .65); }
/* the finish screen's guidance follows the pointer (polish rider,
   2026-11-19): press-and-hold is a touch gesture, so touch keeps the
   original line exactly; a fine pointer (desktop) is led by the download
   instead. The screen's model — ×, the marked image, download file ·
   make another — is untouched in both. */
.make-finish-hint.hint-fine { display: none; }
@media (pointer: fine) {
  .make-finish-hint.hint-touch { display: none; }
  .make-finish-hint.hint-fine { display: block; }
}
.make-finish-alt { margin: 0; font: 500 13.5px/1.4 var(--sans); color: rgba(255, 255, 255, .65); }
.make-finish-alt .link { color: #fff; }
.make-finish-alt .link { display: inline-flex; align-items: center; min-height: 44px; } /* the finish screen's two exits meet the 44px floor (controls sweep, 2026-11-17) */
/* the editor's toast (drag-to-bin's 5-second Undo road back; the stage
   save's ~2.5s confirmation): ONE stage system (round 8, R8-10) — a glass
   pill in the stage's own chrome language, in the theme's inverted pair
   (--inv-bg/--inv-fg: dark pill on the light stage, light pill on the dark
   stage — defect batch, 2026-11-20), seated ABOVE the stage's bottom row
   so the save pill stays visible under it, arriving on the house curve */
.mm-toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 47;
  display: flex; align-items: center; gap: 14px; padding: 10px 16px; background: var(--inv-bg); color: var(--inv-fg);
  border: 1px solid var(--line); border-radius: 999px;
  font: 500 13px/1.3 var(--sans); box-shadow: 0 6px 24px rgb(0 0 0 / .35); animation: mm-toast-in .2s cubic-bezier(.2,.8,.2,1); }
@keyframes mm-toast-in { from { opacity: 0; transform: translate(-50%, 6px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .mm-toast { animation: none; } }
.mm-toast[hidden] { display: none; }
.mm-toast .link { color: inherit; font-weight: 700; }
/* touch discipline (v4 C9): editor controls never double-tap-zoom; the stage canvas's own
   touch-action is managed by app.js (none while a gesture owns it, pan-y while it yields scroll) */
.composer :is(button, .seg label, .sw-opt, select, input[type="range"]) { touch-action: manipulation; }
.mm .check { align-items: center; }
.mm .check input { margin: 0; }
.composer textarea { display: block; margin-top: 12px; line-height: 1.42; letter-spacing: -0.011em; resize: vertical; min-height: 64px; }
.cbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; flex-wrap: wrap; }
.composer .cbar .btn { height: 44px; } /* the mock's ready-state action bar: full-height buttons (compose overhaul) */
/* The Post button's empty state (compose tidy, 2026-11-21): while the form holds no picture
   the button rests muted on the soft ground — the house dimmed idiom — and editor.js disables it;
   the moment a picture exists the class drops and the full green .btn.go stands. JS-only: with
   no JS the button stays live and the server's picture rule is the backstop. */
.composer .btn.go.post-idle { background: var(--soft); border-color: var(--soft); color: var(--faint); opacity: 1; }
.cbar .counter { font: 400 11px/1 var(--sans); color: var(--faint); }
.cbtns { display: flex; align-items: center; gap: 8px; }
.body-lab { margin: 10px 0 -8px; }
/* The composer's own action bar pins to the bottom of the screen on phones while the (long) form scrolls,
   so Post is always in reach (F13). It belongs to the form — Create and Edit only — not a site tab bar. */
@media (max-width: 639px) {
  .composer .cbar { position: sticky; bottom: 0; z-index: 3; background: var(--bg); border-top: 1px solid var(--line);
    margin: 6px calc(-1 * var(--pad)) 0; padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom)); }
}

/* ---------- full-screen image viewer (JS only; without JS the image link opens /media/:file) ----------
   Swipe to dismiss: --dim fades the backdrop and controls as you drag.
   JR chunk 5 (the phase-1 (f) spec): the viewer is a media surface — true black in BOTH
   themes (the editor stage's always-dark precedent), so it carries the dark token set for
   its own chrome: the bar, the edge steppers and the post's action row in the foot all
   read in dark ink on the black ground, whichever theme the page behind it wears. The
   --dim drag still fades the black toward the page, exactly as it faded the theme ground. */
@property --dim { syntax: "<number>"; inherits: true; initial-value: 1; }
.viewer { --dim: 1; position: fixed; inset: 0; z-index: 30; display: grid; grid-template-rows: auto 1fr auto; overscroll-behavior: contain; touch-action: none;
  --bg: #000; --fg: #f3f3f0; --mute: #8c8c88; --faint: #7d7d79; --line: #222; --soft: #111; --edge: #2e2e2e; --field: #0b0b0b; --panel: #0a0a0a;
  --inv-bg: #f3f3f0; --inv-fg: #000; --up: #3ccf72; --bad: #ff9d94; color-scheme: dark;
  background: color-mix(in srgb, #000 calc(var(--dim) * 100%), transparent); -webkit-user-select: none; user-select: none;
  opacity: 0; transition: opacity .18s cubic-bezier(.2,.8,.2,1), --dim .26s cubic-bezier(.2,.8,.2,1); }
.viewer.open { opacity: 1; }
.viewer-bar { display: flex; justify-content: space-between; align-items: center; padding: calc(8px + env(safe-area-inset-top)) 12px 8px 16px; }
.viewer-bar, .viewer-foot, .viewer-step { opacity: calc(var(--dim) * 1.2 - .2); }
.viewer-count { font: 500 12px/1 var(--sans); color: var(--mute); }
/* the viewer's one door into the post: the author's handle (F5) */
.viewer-post { font: 500 12px/1 var(--sans); color: var(--mute); font-feature-settings: normal; display: inline-flex; align-items: center; min-height: 44px; } /* the bar's post link meets the 44px floor like its .viewer-close neighbour (controls sweep, 2026-11-17) */
.viewer-post:hover { color: var(--fg); text-decoration: none; }
.viewer-close, .viewer-step { color: var(--fg); background: none; border: 0; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
/* the viewer's right-hand cluster: Close alone — the bar carries no download of its own
   (post-actions final setup, 2026-11-19): the foot's borrowed row is the one action row */
.viewer-tools { display: flex; align-items: center; }
.viewer-track { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none;
  overscroll-behavior: contain; touch-action: pan-x; -webkit-overflow-scrolling: touch; min-height: 0; }
.viewer-track::-webkit-scrollbar { display: none; }
.viewer-slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; display: grid; place-items: center; padding: 0; min-height: 0; }
.viewer-slide img { width: 100%; height: auto; max-height: 100%; object-fit: contain; display: block; border-radius: 0;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: transform .26s cubic-bezier(.2,.8,.2,1); will-change: transform; }
.viewer.dragging, .viewer.dragging .viewer-slide img { transition: none; }
/* viewer zoom (2026-11-21): while a pinch / pan / wheel gesture runs, the picture's
   transform tracks the fingers with no transition (.zooming — the .dragging rule's
   sibling); the double-tap toggle rides the img's standing .26s transition instead.
   While zoomed (.zoomed) the track stops offering its pan-x, so a drag pans the
   picture instead of paging the set (app.js also pins the track's scroll). */
.viewer.zooming, .viewer.zooming .viewer-slide img { transition: none; }
.viewer.zoomed .viewer-track { touch-action: none; }
.viewer-slide img { cursor: zoom-in; }
.viewer.zoomed .viewer-slide img { cursor: grab; }
.viewer.leaving { transition: opacity .2s cubic-bezier(.2,.8,.2,1), --dim .2s cubic-bezier(.2,.8,.2,1); opacity: 0; }
.viewer.leaving .viewer-slide img { transition: transform .2s cubic-bezier(.2,.8,.2,1); }
.viewer-foot { display: flex; align-items: center; padding: 6px 16px calc(10px + env(safe-area-inset-bottom)); min-height: 52px; }
/* the post's own action row, mounted in the foot for the visit (app.js moves the node):
   it spans the foot, and its article pull-out margin (the byline alignment pull) is
   neutralised — the foot's own padding seats it under the bar instead */
.viewer-foot .acts { flex: 1; margin: 0; }
/* the row shows in the foot exactly as on the timeline, control for control
   (post-actions final setup, owner ruling 2026-11-19): the viewer has no download of
   its own — the bar's old .viewer-dl is gone, the save-move's foot save-photo link
   (2026-11-20) is gone too (share-sheet build, owner ruling 2026-11-21: downloading
   from the viewer goes through the row's share control → the share sheet), and no
   part of the borrowed row hides. */
/* the set steppers ride the track's left/right edges, overlaid on the picture (X-style);
   touch never sees them (the hover:none rule below) — swipe paging is theirs */
.viewer-step { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.viewer-step.prev { left: 6px; }
.viewer-step.next { right: 6px; }
/* Viewer open morph (motion round 2, owner verdicts 2026-11-15): on a morph open the chrome
   waits out of sight while the picture flies from its tile (app.js FLIPs the image itself),
   then fades in at +140ms; app.js drops both classes once the fade lands, so the swipe-dismiss
   dimming (the --dim opacity above) owns the bar again. Plain opens carry neither class. */
.viewer.chrome-wait .viewer-bar, .viewer.chrome-wait .viewer-foot, .viewer.chrome-wait .viewer-step { opacity: 0; }
.viewer.chrome-in .viewer-bar, .viewer.chrome-in .viewer-foot, .viewer.chrome-in .viewer-step { transition: opacity 200ms var(--ease); }
@media (prefers-reduced-motion: reduce) { .viewer.chrome-in .viewer-bar, .viewer.chrome-in .viewer-foot, .viewer.chrome-in .viewer-step { transition: none; } }
.viewer-step[disabled] { opacity: calc((var(--dim) * 1.2 - .2) * .25); cursor: default; }
@media (hover: none) { .viewer-step { display: none; } }
html.viewer-on, html.viewer-on body { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .ico .fillable, .viewer, .viewer-slide img, .viewer.leaving .viewer-slide img { transition: none; }
}

/* Replies: a nested oldest-first thread on the post page. */
.thread { margin: 0 calc(-1 * var(--pad)) 24px; }
.thread > .reply-form { padding: 8px var(--pad) 10px; margin: 0; border-bottom: 1px solid var(--line); } /* the hairline under the form is the thread's row separator, not a field border — the field itself is bare (boxless replies, 2026-11-21: no fill anywhere; focus reads on the green caret alone) */
/* the thread's heading is a quiet count row now (post/replies premium build, 2026-11-20 —
   the approved mock's composition, superseding the tidy build's plain label and, before
   it, the display heading): one mute line, "replies · N", its .k the count app.js keeps
   current as replies land. It sits under the composer zone, over the list. */
.thread-h { margin: 0; padding: 16px var(--pad) 2px; font: 400 13.5px/1.35 var(--sans); letter-spacing: 0; color: var(--mute); }
.thread-h .k { font: inherit; color: inherit; margin: 0; }
/* the composer bar (premium build; boxless, owner ruling 2026-11-21): the member's
   at-rest composer — NO pill: the viewer's avatar, the ghost words and the picture
   glyph sit directly on the page ground, no fill, no capsule. The full row stays
   one tap target (the min-height below stands) and any tap on it — glyph included;
   the glyph is part of the bar, not a door of its own — opens the composer sheet.
   app.js wakes it (it renders hidden) and puts the page's reply form away behind
   it. Without JS it never shows. The de-fill is scoped to .cbar-wrap so the compose
   form's own .cbar action bars keep their standing treatment. (Compose tidy,
   2026-11-21, ported 2026-11-22: the pill rules are scoped to .cbar-wrap as well —
   that is what flattens the compose bars — and the de-fill now rides BELOW them:
   both sides sit at (0,2,0), so the later rule wins and this bar stays bare.) */
.cbar-wrap { padding: 12px var(--pad) 2px; }
.cbar-wrap .cbar { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 6px 14px 6px 6px;
  background: var(--field); border: 0; border-radius: 999px; color: var(--faint); font: 400 15px/1.3 var(--sans);
  letter-spacing: 0; cursor: pointer; text-align: left; -webkit-tap-highlight-color: transparent; }
.cbar-wrap .cbar .av { flex: none; }
.cbar-ghost { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cbar-wrap .cbar .ico { width: 20px; height: 20px; flex: none; color: var(--mute); }
.cbar-wrap .cbar:active { background: var(--soft); }
.cbar-wrap .cbar[hidden] { display: none; } /* the bar renders hidden; app.js wakes it — the author display rule above must not outrank the attribute */
.cbar-wrap .cbar { background: transparent; border-radius: 0; padding: 6px 0; }
.cbar-wrap .cbar:active { background: transparent; }
/* a thread page's own reply form while the composer bar stands in for it (premium build):
   app.js parks the form behind the bar and lends it to the composer sheet on a tap. */
.cmp-away { display: none !important; }
.thread > .r-empty, .thread > .pager, .thread > .quiet { padding-left: var(--pad); padding-right: var(--pad); }
.reply-form { margin: 4px 0 8px; }
/* the reply field is BARE in every seat (boxless replies, owner ruling 2026-11-21,
   superseding the filled dialect of the 2026-11-17 field unification for replies
   only — the compose form's and settings' filled fields are untouched): transparent
   ground, no radius, no inset focus ring; the one focus signal is the brand-green
   caret. The seat values are the composer sheet's own bare-field values, promoted
   to the base rule so the sheet, the inline forms, the focused page and the no-JS
   rest all read identical. */
.reply-form textarea { display: block; width: 100%; background: transparent; border: 0; border-radius: 0; padding: 4px 0; outline: none; caret-color: var(--up);
  font-size: 17px; line-height: 1.45; resize: none; field-sizing: content; min-height: 1.5em; max-height: 9em; } /* 17px: no iOS zoom */
.reply-form textarea::placeholder { color: var(--faint); }
.r-bar { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 4px; min-height: 20px; }
.r-bar .counter, .reply-inline .counter { font: 400 11px/1 var(--sans); color: var(--faint); letter-spacing: 0; font-variant-numeric: tabular-nums; }
/* quiet Reply; hidden until there's text when :has is available, otherwise always shown (no-JS / older browsers) */
.r-go { font: 500 12px/1 var(--sans); letter-spacing: 0; background: none; border: 0; padding: 10px 0; margin: 0; color: var(--fg); cursor: pointer; border-radius: 0; }
.r-go:hover { text-decoration: none; }
.reply-form:not(.reply-inline) .r-go { display: inline-flex; align-items: center; min-height: 44px; } /* the post page's Reply is a primary submit: the 44px floor at every pointer, like its .r-do/.r-del twins (controls sweep, 2026-11-17) */
.reply-inline .r-go { position: relative; }
.reply-inline .r-go::after { content: ""; position: absolute; inset: -12px -6px; } /* inside the inline form the button's face stays compact; its hit area reaches 44px invisibly */
@supports selector(:has(*)) {
  .reply-form:not(.has-text):not(.has-img):has(textarea:placeholder-shown) .r-go,
  .reply-form:not(.has-text):not(.has-img):has(textarea:placeholder-shown) .counter { opacity: 0; pointer-events: none; }
}
/* feed / under-a-reply: the form stands bare on the ground like every reply seat
   (boxless replies, 2026-11-21 — the form-as-filled-box of the 2026-11-17 unification
   is retired for replies): no fill, no radius, no ring; the textarea inside is the
   base bare field, flexed into the row. */
.reply-inline { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 0 10px; min-height: 0; margin: 0 0 8px; padding: 5px 0; border: 0; }
.reply-form textarea { overflow: hidden; transition: height 160ms cubic-bezier(.2,.8,.2,1); }
@media (prefers-reduced-motion: reduce) { .reply-form textarea { transition: none; } }
.reply-inline textarea { flex: 1 1 8rem; min-width: 0; min-height: 28px; margin: 0; padding: 4px 0; background: transparent; }
.reply-inline .r-bar { margin: 0; flex: none; }
.reply-inline .counter { align-self: center; padding: 0 0 7px; white-space: nowrap; }
.reply-inline .r-go { flex: none; padding: 0 0 8px; }
.r-box:not(.open) { display: none; }
.r-box.open { display: flex; margin: 6px 0 2px; }
.replies, .r-kids { list-style: none; padding: 0; margin: 0; }
/* children indent one avatar width per level through the list's own margin (36px avatar +
   the 9px column gap), so a child's avatar lands under its parent's words; past the third
   level the list sits flat (.flat — renderReply caps it, as the old --d indent did) and the
   depth-3 context link carries the parent's name instead (post/replies premium build,
   2026-11-20 — the approved mock's thread geometry). */
.r-kids { grid-column: 1 / -1; margin-left: 45px; }
.r-kids.flat { margin-left: 0; }
.reply { display: grid; grid-template-columns: 36px 1fr; gap: 9px; align-items: start; position: relative;
  padding: 12px var(--pad); }
.replies > .reply { border-bottom: 1px solid var(--line); }
.r-kids .reply { padding: 12px 0 2px; }
/* the thread line (premium build): a parent with children draws one continuous line down
   its avatar's centre, through the children to the row's foot — 1.5px on the stronger
   hairline token. It replaces the per-child indent rail (and its collapse): the approved
   mock's line is a drawn thread, not a control. */
.reply.has-kids::before { content: ""; position: absolute; left: calc(var(--pad) + 17px); top: 54px; bottom: 6px;
  width: 1.5px; border-radius: 1px; background: var(--edge); }
.r-kids .reply.has-kids::before { left: 17px; }
.r-av { display: block; line-height: 0; margin-top: 1px; }
.r-main { min-width: 0; }
/* the reply byline is ONE line now (premium build, superseding the joint review's two-line
   composition): the name (15px/600, the post byline's own voice) and the @handle · time
   meta on the same baseline, the meta in the shared handle token. The name ellipsises
   first; the row may wrap when a depth-3 context link rides along, so the context link
   wraps rather than clips, exactly the guarantee the two-line composition kept. */
.r-by { margin: 0; display: flex; flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 6px; min-width: 0; font-size: 15px; line-height: 1.3; }
.r-by .by-name { color: var(--fg); min-width: 0; font-weight: 600; }
.r-meta { display: inline-flex; align-items: baseline; gap: 6px; min-width: 0; }
.r-meta .by-meta { margin-top: 0; flex: 0 1 auto; min-width: 0; }
.r-text { margin: 2px 0 0; font-size: 15.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; cursor: pointer; }
/* reply pictures (2026-11-19): one picture under the words, capped so the thread stays
   scannable; borderless like all streamed media, and the tap opens the viewer through the
   post media's own .media/.slide construction. A GIF's play toggle (reduced motion rests it
   on its first frame) is a small dark pill over the corner. */
.r-media { margin-top: 6px; }
/* in a thread row the picture sits in the words' column with the mock's soft 8px corners
   (post/replies premium build, 2026-11-20); the focused page's hero picture is full-bleed
   and square, scoped below under .r-hero. */
.reply .r-media { margin-top: 9px; }
.reply .r-media .slide { border-radius: 8px; overflow: hidden; }
.reply .r-media img { border-radius: 8px; }
.r-media .slide { position: relative; }
.r-media a { display: block; line-height: 0; }
.r-media img { display: block; max-width: min(320px, 100%); height: auto; }
.r-gif-btn { position: absolute; left: 8px; bottom: 8px; border: 0; border-radius: 999px; padding: 7px 11px;
  background: rgba(0, 0, 0, .55); color: #fff; font: 600 11px/1 var(--sans); letter-spacing: 0; cursor: pointer; }
/* the reply composer's picture doors (left of the bar; the counter and reply stay right) and
   the attached-picture chip — the maker's chip and the file picker's preview share it */
.r-doors { margin-right: auto; display: inline-flex; align-items: center; gap: 4px; }
.r-add { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; font: 500 12px/1 var(--sans); color: var(--mute); cursor: pointer; }
.r-add:hover { color: var(--fg); text-decoration: none; }
/* the attachment doors as ONE icon (owner ruling 2026-11-21): with JS awake the two
   word doors stand down and this button — the site's image glyph, the resting bar's
   own — is the only attachment door; it opens the attach sheet (photo library /
   make from a template, below with the sheet family). Without JS the word doors
   stand exactly as rendered and this button never exists. */
.r-doors.doors-icon .r-add { display: none; }
.r-attach-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 6px; background: none; border: 0; color: var(--mute); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.r-attach-btn:hover { color: var(--fg); }
.r-attach-btn .ico { width: 20px; height: 20px; display: block; }
.cmp-slot .r-attach-btn { padding: 8px 10px; }
.r-attach { display: flex; align-items: center; gap: 9px; margin-top: 6px; }
.reply-inline .r-attach { flex: 1 1 100%; }
.r-attach img { width: 40px; height: 40px; object-fit: cover; display: block; }
.r-attach .link { font: 500 12px/1 var(--sans); display: inline-flex; align-items: center; min-height: 44px; }
.r-acts { display: flex; align-items: center; margin-top: 3px; min-height: 36px; }
/* the row's two verbs spread across the words' column (post/replies premium build,
   2026-11-20 — the approved mock's action row): upvote at the left, the reply bubble with
   its direct-child count at the spread's right edge; the delete form, when it rides,
   stays at the row's own right. */
.r-spread { display: flex; align-items: center; justify-content: space-between; width: 62%; max-width: 230px; }
/* a reply row's upvote carries its count inside the button like the post block's does, so the
   button is a flex pill at the reply density — width follows the count, height stays 36px */
.r-acts .ico-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; width: auto; min-width: 36px; height: 36px; padding: 0 5px; margin-left: -6px; }
.r-do { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 36px; min-height: 36px; padding: 0 5px; color: var(--mute); letter-spacing: 0; }
.r-do:hover { color: var(--fg); text-decoration: none; }
.r-do .ico { width: 17px; height: 17px; }
.r-kcount { font: 400 13px/1 var(--sans); font-variant-numeric: tabular-nums; }
.r-ctx { flex: 0 1 auto; min-width: 0; color: var(--mute); font: 400 12px/1.25 var(--sans); letter-spacing: -0.01em; overflow: visible; overflow-wrap: anywhere; }
.r-ctx:hover { color: var(--fg); }
.r-del { margin: 0 0 0 auto; }
/* Delete carries the frame's 44px reach like its row-mate .r-do (sweep pattern; the glyph
   itself keeps its 11px size) */
.r-del .link { font: 400 11px/1 var(--sans); color: var(--faint); display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
.r-empty { padding: 10px 0 4px; font-size: 14.5px; }
/* the indent rail and its collapse retired with the premium build (2026-11-20): the thread
   line is drawn by .reply.has-kids::before above — a passive thread, not a control. */

/* ---------- the focused reply page (premium build) ----------
   The reply promoted to the post page's hero treatment: the same byline, its picture
   full-bleed like the post's, its words at the page scale (17px, the post page's own),
   its meta line (the shared .stamp, carrying the focused page's own counted views), and
   its action bar bracketed by the same hairlines as the post hero's — upvote + the
   thread count only; a reply carries no remix, save or share. */
.r-hero { margin: 0 calc(-1 * var(--pad)); padding: 4px var(--pad) 0; }
.r-hero .r-media { margin: 12px calc(-1 * var(--pad)) 0; }
.r-hero .r-media .slide { max-width: none; }
.r-hero .r-media img { max-width: 100%; width: 100%; }
.r-hero-words { margin-top: 14px; font-size: 17px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.r-hero .stamp { margin-top: 10px; }
.acts.r-hero-acts { margin: 12px calc(-1 * var(--pad)) 0; padding: 3px var(--pad); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- the composer sheet (premium build) ----------
   The house sheet frame (grab handle, settle rise, light-dismiss) carrying the thread's
   own reply form, borrowed for the visit the way the viewer borrows a post's action row:
   the parent reply compact at the top, a thread line from its avatar down to the viewer's,
   the quiet "replying to @handle", then the viewer's avatar beside the form — its field
   borderless at the page scale, its doors row under a hairline, and its own reply button
   riding in the sheet's header as the filled ink pill (never green; dimmed until the
   reply has words or a picture). One form, one set of posting semantics — the sheet is
   presentation only. */
.cmp-sheet, .cmp-sheet .sheet-in { max-height: 92dvh; }
.cmp-top { display: flex; align-items: center; justify-content: space-between; padding: 2px 0 6px; }
.cmp-back { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: -12px;
  background: none; border: 0; color: var(--fg); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cmp-back svg { width: 21px; height: 21px; }
.cmp-top .r-go { min-height: 40px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--inv-bg); color: var(--inv-fg);
  font: 600 15px/1 var(--sans); letter-spacing: 0; cursor: pointer; }
.cmp-top .r-go:disabled { opacity: .45; cursor: default; }
.cmp-parent { display: flex; gap: 10px; }
.cmp-avcol { display: flex; flex-direction: column; align-items: center; width: 36px; flex: none; }
.cmp-avcol .vline { width: 1.5px; flex: 1; min-height: 20px; margin-top: 5px; border-radius: 1px; background: var(--edge); }
.cmp-pmain { flex: 1; min-width: 0; }
.cmp-pflex { display: flex; gap: 12px; align-items: flex-start; }
.cmp-ptext { flex: 1; min-width: 0; }
.cmp-pbody { margin: 2px 0 0; font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.cmp-thumb { width: 56px; height: 56px; flex: none; object-fit: cover; border-radius: 8px; }
.cmp-replying { margin: 10px 0 0; font-size: 13.5px; color: var(--mute); }
.cmp-mine { display: flex; gap: 10px; margin-top: 10px; }
.cmp-slot { flex: 1; min-width: 0; }
/* the borrowed form in its sheet context: the base field is already the sheet's bare
   dialect (boxless replies, 2026-11-21), so the seat keeps only its taller rest height
   and the doors row's hairline. */
.cmp-slot .reply-form { margin: 0; }
.cmp-slot .reply-form textarea { min-height: 76px; }
.cmp-slot .reply-form > .r-bar { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 12px; }
.cmp-slot .reply-inline { display: block; padding: 0; }
.cmp-slot .reply-inline .r-bar { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 12px; }
.cmp-slot .reply-inline .counter { padding: 0; }
.cmp-slot .reply-inline .r-go { padding: 0; }
/* the doors at the sheet's scale: quiet labelled actions with their glyphs, as the mock draws them */
.cmp-slot .r-add { gap: 8px; min-height: 44px; padding: 8px 10px; font-size: 15px; font-weight: 400; }
.cmp-slot .r-add .ico { width: 20px; height: 20px; color: var(--mute); }

/* confirm-your-email strip: typographic, under the masthead, never blocks anything */
.verify-bar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px;
  margin: 12px 0 0; padding: 8px 0; border-top: 2px solid var(--fg); border-bottom: 1px solid var(--line); font-size: 13.5px; }
.verify-bar p { margin: 0; }
.verify-bar strong { font-weight: 650; }
.verify-bar .vb-addr { font: 400 12.5px/1.3 var(--sans); }
.verify-bar form { margin: 0; }
.verify-bar .link { font: 500 12px/1 var(--sans); color: var(--fg); text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; } /* Resend meets the 44px floor (controls sweep, 2026-11-17) */

/* ---------- side menu + communities (same tokens, same hairlines) ---------- */
:root { --scrim: rgba(20,20,18,.46); }
:root[data-theme="dark"] { --scrim: rgba(0,0,0,.66); }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] { --scrim: rgba(0,0,0,.66); } }

header .trig, .trig { display: inline-flex; align-items: center; justify-content: flex-start; position: relative; width: 44px; height: 44px; margin-left: -4px; color: var(--fg); cursor: pointer; font-feature-settings: normal; -webkit-tap-highlight-color: transparent; }
.trig:hover { color: var(--fg); }
.trig .bars { display: grid; gap: 3px; width: 14px; }
.trig .bars i { display: block; height: 2px; background: currentColor; }
.trig .udot { position: absolute; top: 11px; left: 16px; width: 6px; height: 6px; border-radius: 1px; background: var(--up); pointer-events: none; }

body:has(#nav-open:checked), body:has(.drawer.shown) { overflow: hidden; }
.scrim, .drawer { display: none; }
#nav-open:checked ~ .scrim { display: block; }
#nav-open:checked ~ .drawer { display: flex; }
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 20; cursor: pointer; }
.drawer { position: fixed; top: 0; left: 0; bottom: 0; width: 304px; max-width: 86vw; z-index: 21; background: var(--panel);
  border-right: 1px solid var(--edge); flex-direction: column; padding-top: env(safe-area-inset-top); overflow: auto; }
/* JS-enhanced: slide + fade, still display:none when fully closed so nothing sits on the bottom edge. */
html.js #nav-open ~ .scrim, html.js #nav-open ~ .drawer { display: none; }
html.js #nav-open ~ .scrim.shown { display: block; }
html.js #nav-open ~ .drawer.shown { display: flex; }
html.js .scrim { opacity: 0; transition: opacity 200ms var(--ease); }
html.js .scrim.in { opacity: 1; }
html.js .drawer { transform: translateX(-103%); transition: transform 340ms var(--ease-settle); }
html.js .drawer.in { transform: translateX(0); }
/* Drawer entrance, expressive (motion round 2, owner verdicts 2026-11-15): the panel settles
   (340ms on the settle curve, above) and the contents deal in — profile block first, then the
   rows top to bottom — each a 260ms rise at 30ms offsets (app.js deals the .d-play classes and
   the delays, capped so a full community list still lands fast). Exit, Escape, light-dismiss
   and focus behaviour are untouched: this is the entrance only. */
@keyframes drawer-in { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: translateX(0); } }
.drawer .d-play { animation: drawer-in 260ms var(--ease) both; }
@media (prefers-reduced-motion: reduce) { .drawer .d-play { animation: none; } }
@media (prefers-reduced-motion: reduce) {
  html.js .scrim, html.js .drawer { transition: none; }
}
@media (min-width: 640px) { .drawer { left: max(0px, calc(50vw - (var(--col) / 2))); } }
/* Refined drawer (2026-11-14, the approved profile-header mock's composition): a profile block
   replaces the wordmark header row — 48px round avatar, name at 800 20px, @handle and a
   following/followers counts line at 15px — with the close control in its top-right corner.
   Nav rows are 56px at 700 20px on a 40px icon column (glyphs 24px); community sub-rows keep
   44px at 500 15px with their tiles in the same column, so sub-row names align with nav labels.
   Rows carry no hairlines; settings and sign out form a bottom group pinned by margin-top:auto
   under one hairline, at 600 17px. */
.drawer .dprof { position: relative; flex: none; }
/* the guest drawer's head (2026-11-18): no profile block to host the close control, so a slim
   positioned strip seats it in the same top-right corner at the same offsets. */
.drawer .dhead { position: relative; flex: none; height: 60px; }
.drawer .dclose { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--mute); cursor: pointer; }
.drawer .dclose:hover { color: var(--fg); background: var(--soft); }
.drawer .dclose svg { width: 20px; height: 20px; }
.drawer .dprof-main { display: block; padding: 20px 16px 12px; color: inherit; }
.drawer .dprof-main:hover { text-decoration: none; background: var(--soft); }
.drawer .dprof .av { width: 48px; height: 48px; font-size: 17px; font-weight: 700; }
.drawer .dprof-name { display: block; font-size: 20px; font-weight: 800; line-height: 1.25; margin-top: 10px; }
.drawer .dprof-handle { display: block; font-size: 15px; line-height: 1.35; color: var(--mute); }
.drawer .dprof-counts { display: flex; gap: 18px; margin-top: 8px; font-size: 15px; }
.drawer .dprof-counts b { font-weight: 700; font-variant-numeric: tabular-nums; }
.drawer .dprof-counts .lbl { color: var(--mute); }
.dl { display: flex; align-items: center; height: 56px; padding: 0 16px; font: 700 20px/1 var(--sans); letter-spacing: 0; color: var(--fg); }
.dl:hover { text-decoration: none; background: var(--soft); }
.dl .ix { width: 40px; flex: none; display: flex; align-items: center; }
.dl .ix svg { width: 24px; height: 24px; }
.dc { display: flex; align-items: center; height: 44px; padding: 0 16px; font: 500 15px/1 var(--sans); letter-spacing: 0; color: inherit; }
.dc:hover { text-decoration: none; background: var(--soft); }
.dc .ix { width: 40px; flex: none; display: flex; align-items: center; }
.dc .aux { margin: 0 0 0 auto; font: 400 11px/1 var(--sans); color: var(--faint); font-feature-settings: normal; display: flex; align-items: center; }
.dc .aux.new { color: var(--fg); }
.cav { flex: none; width: 20px; height: 20px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px var(--edge); display: grid; place-items: center; background: var(--soft); font: 600 10px/1 var(--mono); color: var(--fg); }
.cav-m { width: 40px; height: 40px; border-radius: 3px; font-size: 15px; }
.cav-l { width: 56px; height: 56px; border-radius: 4px; font-size: 22px; }
.dl.q { font-size: 17px; font-weight: 600; }
.dl.dpin { margin-top: auto; border-top: 1px solid var(--line); }
/* the drawer's sign-out row is a POST form (drawer sign out, 2026-11-14): the form adds no box of
   its own and the button sheds its UA chrome so it reads as the .dl row it carries. The form also
   carries the drawer's bottom safe-area padding, so the pinned bottom group sits flush at the
   drawer's foot (the form is always the drawer's last element). */
.dl-form { margin: 0; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
button.dl { width: 100%; background: none; border: 0; text-align: left; cursor: pointer; }

/* quiet 'in <community>' on feeds that aren't the community page */
.in-comm { font: 400 12px/1.3 var(--sans); color: var(--fg); font-feature-settings: normal; }
.in-comm a { color: inherit; }
.in-comm + .credit::before, .in-comm + .versions::before, .credit + .versions::before { content: "·"; color: var(--faint); margin-right: 6px; }

/* tile grid (templates, "made with it") */
.tgrid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 14px 8px; padding: 12px 0 0; }
/* guest home create row (big door, 2026-11-14 — supersedes the v2 slim row): one full-width
   Make a meme button above the feed, 52px tall on 4px of air, so the row's zone measures the
   same 60px the slim row's did (8px + the 44px coarse-pointer button + 8px) and the feed starts
   where it always has. The v2 thumbnail strip is retired — the button is the row's only content. */
.guest-make-row { display: flex; align-items: center; margin: 0 calc(-1 * var(--pad)); padding: 4px var(--pad); border-bottom: 1px solid var(--line); }
.guest-make-row .btn { flex: 1; height: 52px; font-size: 16px; }
.tc { color: inherit; min-width: 0; }
.tc:hover { text-decoration: none; }
.tc .tc-img { display: block; }
.tc .tm a { color: inherit; }
.tc .ti { position: relative; aspect-ratio: 1; border: 1px solid var(--edge); border-radius: 1px; overflow: hidden; background: var(--soft); line-height: 0; }
.tc .ti img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.tc .tm { margin-top: 6px; font: 500 12px/1.25 var(--sans); color: var(--fg); font-feature-settings: normal; }
.tc .tm2 { margin-top: 2px; font: 400 11px/1.3 var(--sans); color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-feature-settings: normal; }
/* "most made this week" rail (recognition mock §4): a horizontal shelf above the library. The
   head sits in the page gutter; the rail bleeds to the screen edge (the house full-bleed margin)
   with the gutter as its inline padding, so tiles scroll off-edge and the first tile aligns with
   the library below. Tiles reuse the library card's .tc/.ti/.tm/.tm2 treatment outright. */
.rail-head { font-size: 13px; font-weight: 600; color: var(--mute); padding: 18px 0 8px; }
.rail { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad) 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rail::-webkit-scrollbar { display: none; }
.rail-tile { flex: 0 0 96px; width: 96px; }
.rail .tm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The create-with strip (post pages for guests, profiles for everyone): the rail-head's own
   dialect — one quiet muted header line with the library door at its right — over the rail
   itself. Its tiles are the rail's own (.tc/.ti/.tm, no sub-line: the strip carries no counts). */
.create-with { padding: 2px 0 10px; }
.cw-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 18px 0 8px; }
.cw-title { font-size: 13px; font-weight: 600; color: var(--mute); }
.cw-all { font-size: 12.5px; font-weight: 500; color: var(--mute); padding: 4px 0; white-space: nowrap; }
.blurb { padding: 9px 0; margin: 0 calc(-1 * var(--pad)); padding-left: var(--pad); padding-right: var(--pad); border-bottom: 1px solid var(--line); font: 400 11px/1.4 var(--sans); color: var(--faint); font-feature-settings: normal; text-transform: lowercase; }

/* communities directory */
.srch { display: flex; align-items: center; gap: 6px; margin: 12px 0 2px; padding: 0 16px 0 12px; height: 44px; border-radius: 12px; background: var(--soft); color: var(--faint); }
.srch svg { width: 18px; height: 18px; fill: none; stroke: var(--mute); stroke-width: 1.7; flex: none; }
.srch input { flex: 1; border: 0; background: transparent; padding: 0; outline: none; font-size: 16px; min-width: 0; caret-color: var(--up); }
.srch:focus-within { box-shadow: inset 0 0 0 1px var(--up); } /* focus lights the pill green (editor fix v5 rider, owner-settled 2026-11-16): the caret and the ring are the product acting — rule 11's focus family — never a standing tint */
.srch input::placeholder { color: var(--faint); }
.srch input::-webkit-search-cancel-button { display: none; }
.shd { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 14px 0 6px; border-bottom: 1px solid var(--line); }
.shd .sec { margin: 0; }
.shd .aux, .shd .aux a { margin: 0; font: 400 11px/1 var(--sans); color: var(--faint); font-weight: 400; font-feature-settings: normal; }
/* the section head's action carries the frame's 44px reach too (sweep fix round, 2026-11-14):
   a 44px box on negative margins, so the head's own height and the glyphs never move — the
   stretched zone reaches only into the head's own padding and the row padding below it */
.shd .aux a { display: inline-flex; align-items: center; height: 44px; margin: -16px 0; }
.shd .aux a:hover { color: var(--fg); text-decoration: none; }
.crow { display: grid; grid-template-columns: 40px 1fr auto; column-gap: 12px; align-items: center; margin: 0 calc(-1 * var(--pad)); padding: 10px var(--pad); border-bottom: 1px solid var(--line); }
.crow-m { min-width: 0; color: inherit; align-self: stretch; display: flex; flex-direction: column; justify-content: center; min-height: 44px; }
.crow-m:hover { text-decoration: none; }
.crow b { display: block; font-size: 14.5px; font-weight: 650; letter-spacing: -0.012em; line-height: 1.2; }
.crow .d { font-size: 13px; color: var(--mute); line-height: 1.3; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crow .m { font: 400 11px/1.3 var(--sans); color: var(--faint); margin-top: 3px; font-feature-settings: normal; }
.crow .m .new { color: var(--fg); }
/* community page */
.chead { padding: 14px 0 12px; border-bottom: 1px solid var(--line); }
/* the header follows the profile rhythm (P1): the room's mark and its one action on the top row,
   then the identity block — so profiles and communities read as siblings */
.chead-hd { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.chead-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
/* the name is the page's title: the display cut in italic, the wordmark's slant — the treatment
   the profile name and the template name get; the document/OG titles keep "<Name> on meme it" */
.chead h1 { margin: 10px 0 0; font-style: italic; font-size: 32px; line-height: 1.08; overflow-wrap: anywhere; }
.chead-m { font: 400 12px/1.35 var(--sans); color: var(--mute); margin: 4px 0 0; font-feature-settings: normal; font-variant-numeric: tabular-nums; }
.chead-m b { color: var(--fg); font-weight: 600; }
.chead-desc { margin: 9px 0 0; font-size: 14.5px; line-height: 1.5; max-width: 62ch; overflow-wrap: anywhere; }
.chead .about { display: block; margin-top: 10px; }
.about { display: inline; }
/* a text-link disclosure, same as Moderators (F6): only real actions are button-shaped */
.about > summary { list-style: none; cursor: pointer; font: 500 11px/1 var(--sans); color: var(--mute); font-feature-settings: normal; }
.about > summary:hover { color: var(--fg); }
.about > summary::-webkit-details-marker { display: none; }
.about-body { margin: 10px 0 0; font-size: 14px; line-height: 1.4; color: var(--mute); }
.about-body p { margin: 0 0 8px; }
.rules { margin: 0; white-space: pre-wrap; font: 400 13.5px/1.45 var(--sans); color: var(--fg); }
/* Moderation is its own zone (audit fix round, item 31): set apart from the member furniture
   in the danger voice — the destructive actions read as administration, not page content. */
.modbox { margin-top: 12px; border: 1px solid var(--line); border-left: 2px solid var(--bad); padding: 10px 12px; }
.modbox > summary { font: 500 11px/1 var(--sans); color: var(--bad); cursor: pointer; font-feature-settings: normal; }
.mod-list .link { color: var(--bad); display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; } /* Remove meets the 44px floor, the .r-del/.blk pattern (controls sweep, 2026-11-17) */
.modbox-body { margin-top: 8px; }
.mod-list { list-style: none; padding: 0; margin: 0 0 10px; }
.mod-list li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.mod-list .av { width: 24px; height: 24px; font-size: 10px; }
.mod-list form { margin-left: auto; }
.mod-add { display: flex; gap: 8px; align-items: center; }
.mod-add .ink { flex: 1; min-width: 0; }
.compose { display: flex; align-items: center; gap: 10px; margin: 0 calc(-1 * var(--pad)); padding: 9px var(--pad); border-bottom: 1px solid var(--line); }
.compose .in { flex: 1; min-height: 44px; display: flex; align-items: center; border: 0; border-radius: 12px; background: var(--field); padding: 0 14px; font-size: 13.5px; color: var(--faint); } /* the compose teaser is a field-shaped door, so it wears the filled dialect too (field unification, 2026-11-17) */
.compose .in:hover { text-decoration: none; color: var(--mute); }
.compose .btn { height: 34px; }

/* new community form */
.cnew { padding-top: 12px; }
.lab { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 5px; font: 500 11px/1 var(--sans); color: var(--mute); font-feature-settings: normal; }
.lab .opt { color: var(--faint); font-weight: 400; }
.inp { min-height: 48px; border: 0; border-radius: 12px; background: var(--field); padding: 13px 14px; display: flex; align-items: center; font-size: 15px; white-space: nowrap; overflow: hidden; } /* the slug readout is a field-shaped box, so it wears the filled dialect too (field unification, 2026-11-17) */
.inp .pre { font: 400 13px/1 var(--sans); color: var(--faint); font-feature-settings: normal; }
.inp .val { font: 400 13px/1 var(--sans); color: var(--fg); font-feature-settings: normal; }
.hint { margin-top: 5px; font: 400 11px/1.4 var(--sans); color: var(--faint); font-feature-settings: normal; }
.ta2 { min-height: 62px; resize: vertical; }
.imgpick { display: flex; gap: 12px; align-items: center; cursor: pointer; }
.imgpick .slot { width: 64px; height: 64px; border: 1px dashed var(--edge); border-radius: 3px; display: grid; place-items: center; font: 400 20px/1 var(--sans); color: var(--faint); overflow: hidden; }
.imgpick .slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.imgpick .t { font-size: 13.5px; }
.imgpick .t .mono { display: block; color: var(--faint); font-size: 11px; margin-top: 3px; }
/* Template upload's picture picker (legacy-furniture fixes, 2026-11-17): the dashed slot is
   retired here — the picker is a soft door row in the create page's door dialect (soft icon
   tile, label over a muted sub, chevron) on the filled field ground. The tile is app.js's
   [data-slot]: it holds the + at rest and the picked picture's preview once one is chosen.
   (.imgpick above survives only on the gated community form.) */
.tpl-pick { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px; border: 0; border-radius: 12px; background: var(--field); color: var(--fg); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tpl-pick-tile { width: 44px; height: 44px; border-radius: 10px; background: var(--soft); display: grid; place-items: center; flex: none; font: 400 20px/1 var(--sans); color: var(--mute); overflow: hidden; }
.tpl-pick-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tpl-pick:focus-within { box-shadow: inset 0 0 0 1px var(--up); }
/* house bulk import: one picker + name per row, and the results list (name left, outcome right) */
.bulk-row { margin-top: 16px; }
.bulk-name { margin-top: 8px; width: 100%; }
.bulk-res { list-style: none; margin: 12px 0; padding: 0; }
.bulk-res li { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.bulk-res .why { color: var(--mute); font-size: 13px; text-align: right; }
.fbar { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 14px; }
.fbar .mute { font: 400 11px/1 var(--sans); color: var(--faint); }

/* post-to picker on Create */
.pto-lab { margin-top: 12px; }
.pto { border-top: 1px solid var(--line); margin-top: 6px; }
.pto .o { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.pto .o + .o { border-top: 1px solid var(--line); }
.pto .o.off { opacity: .5; cursor: default; }
.pto .o input { position: absolute; opacity: 0; pointer-events: none; }
.rd { flex: none; width: 14px; height: 14px; border: 1px solid var(--edge); border-radius: 50%; display: grid; place-items: center; }
.pto .o:has(input:checked) .rd { border-color: var(--fg); }
.pto .o:has(input:checked) .rd::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--fg); }
.pto .o .t { font-size: 14px; font-weight: 600; letter-spacing: -0.012em; }
.pto .o .s { font: 400 11px/1 var(--sans); color: var(--faint); margin-left: auto; font-feature-settings: normal; }
.pto .pick { position: relative; margin: 0 0 10px 24px; min-height: 44px; border: 1px solid var(--fg); display: flex; align-items: center; gap: 8px; padding: 0 9px; font-size: 14px; }
.pto:not(:has(input[value="community"]:checked)) .pick { display: none; }
.pto .pick select { position: absolute; inset: 0; opacity: 0; cursor: pointer; font: inherit; }
.pto .pick .chev { margin-left: auto; font: 400 11px/1 var(--sans); color: var(--mute); }
.pto-hint { margin: 8px 0 4px 24px; font: 400 11px/1.4 var(--sans); color: var(--faint); }

.pmenu-list form { margin: 0; }
.pmenu-list form button { display: block; width: 100%; text-align: left; padding: 13px 12px; min-height: 44px; background: none; border: 0; cursor: pointer; font-size: 14px; color: var(--fg); }
.pmenu-list form button:hover { background: var(--soft); }

/* ---------- public upvote counts: small tabular sans beside the arrow; green when you've upvoted; hidden at 0 ---------- */
.up-f { display: inline-flex; align-items: center; }
.upn { font: 400 12px/1 var(--sans); font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; letter-spacing: 0; color: var(--mute); }
.upn[hidden] { display: none; }
.js-upvote[aria-pressed="true"] .upn { color: var(--up); }
/* in the post block's action row the count takes the mock's measure — 13px tabular, muted ink,
   riding inside the pill beside the arrow (green with it when pressed, via the rule above and
   the button's own colour) */
.acts .upn { font: 400 13px/1 var(--sans); color: inherit; }


/* ---------- templates ---------- */
/* the provenance line ("made on meme it ›") wears the retired credit stack's exact dialect —
   one meta voice (provenance build, 2026-11-18: it replaces the template credit + origin line) */
.prov { margin: 0; font: 400 12px/1.3 var(--sans); color: var(--mute); font-feature-settings: normal; }
.prov-open { color: inherit; text-decoration: none; }
.prov-open:hover { color: var(--fg); text-decoration: none; }
.prov-ar { color: var(--faint); }
.in-comm + .prov::before, .credit + .prov::before, .prov + .versions::before { content: "·"; color: var(--faint); margin-right: 6px; }
.tabs-act { display: flex; align-items: center; align-self: stretch; color: var(--fg); font: 500 12px/1 var(--sans); white-space: nowrap; }
.tabs-act:hover { text-decoration: none; opacity: .75; }
.tpl-grid .tc .tm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tpl-head { padding: 12px 0 4px; }
.tpl-big { margin: 0; border: 1px solid var(--edge); background: var(--soft); line-height: 0; }
.tpl-big img { display: block; width: 100%; height: auto; max-height: 70vh; object-fit: contain; }
.tpl-name { margin: 12px 0 2px; font-style: italic; font-size: 32px; line-height: 1.08; overflow-wrap: anywhere; }
.tpl-aka { margin: 0 0 2px; font: 400 12px/1.35 var(--sans); color: var(--faint); font-feature-settings: normal; }
.tpl-by { margin: 2px 0 0; font: 400 12px/1.35 var(--sans); color: var(--mute); font-feature-settings: normal; }
.tpl-by .mention { font-size: 1em; }
/* (.tpl-about retired, legacy-furniture fixes, 2026-11-17: the template page's visible SEO
   explainer paragraph is gone — the page's Make button already says it. The string lives on
   invisibly as the page's meta description and JSON-LD.) */
.tpl-acts { display: flex; align-items: center; gap: 16px; margin: 14px 0 6px; }
.tpl-acts .btn { height: 38px; padding: 0 20px; }
.tpl-acts form .link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; } /* the row's admin text actions meet the 44px floor (controls sweep, 2026-11-17) */
.tpl-made { margin-top: 18px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
/* composer: the chosen-source chip (a template, or the blank canvas) */
.tpl-chosen { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--edge); background: var(--field); }
.tpl-chosen[hidden] { display: none; }
.tpl-chosen .link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; } /* the chip's remove meets the 44px floor inside the chip's own height (controls sweep, 2026-11-17) */
.tpl-thumb { width: 40px; height: 40px; object-fit: cover; border: 1px solid var(--edge); flex: none; }
.tpl-nm { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tpl-k { font: 400 11px/1 var(--sans); color: var(--mute); font-weight: 400; margin-right: 4px; }
/* picker sheet: slides up from the bottom over a scrim; same type and grid as the library */
.sheet { border: 0; padding: 0; margin: auto auto 0; width: min(100%, 640px); max-width: 100%; max-height: 86vh; max-height: 86dvh; background: var(--panel); color: var(--fg);
  border-top: 1px solid var(--edge); box-shadow: 0 -8px 30px rgba(0,0,0,.18); }
.sheet::backdrop { background: rgba(0,0,0,.42); }
.sheet[open] { animation: sheet-up 300ms var(--ease-settle); }
.sheet[open]::backdrop { animation: scrim-in .26s cubic-bezier(.2,.8,.2,1); }
/* the settle entrance (motion voice, owner ruling 2026-11-15): the sheet rises its whole height
   and seats with the settle curve's capped overshoot — a stamp landing, not a fade. The old
   24px rise + fade is retired. (The exit joined it in the performance build, 2026-11-21 —
   see the .closing rules below.) */
@keyframes sheet-up { from { transform: translateY(105%); } to { transform: none; } }
@keyframes scrim-in { from { opacity: 0; } to { opacity: 1; } }
/* the exit (owner ruling 2026-11-21): closing takes ~200 ms on the standard tokens —
   app.js marks the dialog .closing and lands the real close() as the exit finishes, so
   the sheet slides back down and the scrim fades instead of vanishing in one frame. */
.sheet[open].closing { animation: sheet-down var(--mot) var(--ease) forwards; }
.sheet[open].closing::backdrop { animation: scrim-out var(--mot) var(--ease) forwards; }
@keyframes sheet-down { from { transform: none; } to { transform: translateY(105%); } }
@keyframes scrim-out { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sheet[open], .sheet[open]::backdrop { animation: none; } }
@media (prefers-reduced-motion: reduce) { .sheet[open].closing, .sheet[open].closing::backdrop { animation: none; } }
/* A sheet never wears the focus ring itself, and its opening focus landing is ringless
   (share-row rider, owner catches 2026-11-18): the picker focuses the dialog on open and
   the global :focus-visible outline painted the whole full-width dialog — only its top
   edge on screen, a bright green stripe; showModal's automatic first focus did the same
   to the provenance sheet's close button, a tall green rectangle on touch, where no
   keyboard was involved. app.js marks an opening sheet data-land (the draft sheet's div
   included); the mark clears on the first keydown, so rings belong to actual keyboard
   navigation only — a sheet is a container, not an action target. */
.sheet:focus-visible { outline: none; }
[data-land]:focus-visible, [data-land] :focus-visible { outline: none; }
html.sheet-open { overflow: hidden; }
.sheet-in { --pad: 16px; padding: 0 var(--pad) 18px; max-height: 86vh; max-height: 86dvh; overflow-y: auto; overscroll-behavior: contain; }
/* the Templates sheet (defect 8, video #4): capped so its top edge can never rise
   into the composer's "Make a meme" lede — 120px of the page always stays above it */
.tpl-sheet, .tpl-sheet .sheet-in { max-height: calc(100dvh - 120px); }
.sheet-hd { position: sticky; top: 0; z-index: 1; display: flex; align-items: baseline; justify-content: space-between; padding: 14px 0 8px; background: var(--panel); }
.sheet-hd .sec { margin: 0; }
.sheet-hd .link { display: inline-flex; align-items: center; min-height: 44px; margin: -13px 0; } /* a sheet's close reaches the 44px floor by stretching into the header's own padding, the .shd .aux trick — the header's height and face are unchanged (controls sweep, 2026-11-17) */
/* the provenance sheet and the post page's about block (provenance build, 2026-11-18): the
   quiet grouped-row dialect — 15px labels, mute subs, hairlines inset to the text column
   (a thumbnail row's line starts under its label), rows at a 52px measure. One rule set
   serves both homes: the sheet app.js builds and the no-JS block under a post. */
.prov-rows { margin-top: 2px; }
.prov-row { position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 7px 0; color: var(--fg); }
a.prov-row { text-decoration: none; -webkit-tap-highlight-color: transparent; }
.prov-rows > .prov-row:not(:last-child)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; border-bottom: 1px solid var(--line); }
.prov-rows > .prov-row:has(.prov-th):not(:last-child)::after { left: 56px; }
.prov-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.prov-l { font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.prov-l a, .prov-first a { color: inherit; font-weight: 600; }
.prov-s { font: 400 13px/1.35 var(--sans); color: var(--mute); font-feature-settings: normal; }
.prov-s .mention { font-size: 1em; }
.prov-th { width: 44px; height: 44px; object-fit: cover; border: 1px solid var(--edge); flex: none; }
.prov-ch { flex: none; color: var(--faint); font-size: 17px; line-height: 1; }
.prov-first p { margin: 0; font-size: 15px; line-height: 1.45; }
@media (hover: hover) { a.prov-row:hover .prov-l { text-decoration: underline; text-underline-offset: 3px; } }
.prov-block { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.prov-h { margin: 0 0 2px; font-size: 15px; font-weight: 600; letter-spacing: -0.011em; }
/* the designed confirm sheet (full-mock voice, Scope D, 2026-11-14; rebuilt editor
   fix v5 to the approved confirm-sheet mock, Space confirm-sheet-mock): the one
   replacement for every native confirm and alert dialog the product fires — same
   .sheet dialog system as the template picker. Built by app.js only when first
   needed, so no-JS pages never carry it and their server-rendered confirmation
   pages stand untouched. The mock's composition: a full-width sheet on its own
   ground (dark #161616 / light #f8f6f0), grab handle, a lowercase 20px title, a
   muted sub, and full-width 48px buttons stacked at a 10px gap in four treatments
   — primary green, danger-solid, danger-soft, quiet — buttons sentence case. */
.confirm-sheet { background: #f8f6f0; border-radius: 18px 18px 0 0; }
:root[data-theme="dark"] .confirm-sheet { background: #161616; }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] .confirm-sheet { background: #161616; } }
.confirm-sheet::backdrop { background: rgba(28,26,20,.45); }
:root[data-theme="dark"] .confirm-sheet::backdrop { background: rgba(0,0,0,.58); }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] .confirm-sheet::backdrop { background: rgba(0,0,0,.58); } }
.confirm-sheet .sheet-in { padding: 10px 16px calc(18px + env(safe-area-inset-bottom)); }
.confirm-sheet .sheet-grab { background: #cfccc2; margin: 0 auto 16px; }
:root[data-theme="dark"] .confirm-sheet .sheet-grab { background: #3d3d3d; }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] .confirm-sheet .sheet-grab { background: #3d3d3d; } }
.cs-title { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; color: var(--fg); }
.cs-sub { margin: 6px 0 0; font-size: 14px; line-height: 1.45; color: var(--mute); }
.cs-sub[hidden] { display: none; }
.cs-acts { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.cs-btn { appearance: none; width: 100%; height: 48px; border: 0; border-radius: 2px; font: inherit; font-size: 15.5px; font-weight: 600; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .08s var(--ease), filter .12s var(--ease); }
.cs-btn:active { transform: scale(.982); filter: brightness(.93); }
.cs-btn[hidden] { display: none; }
.cs-primary { background: var(--up); color: #fff; }
:root[data-theme="dark"] .cs-primary { color: #06130a; }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] .cs-primary { color: #06130a; } }
.cs-quiet { background: #e7e3d9; color: #141412; }
:root[data-theme="dark"] .cs-quiet { background: #262626; color: #f3f3f0; }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] .cs-quiet { background: #262626; color: #f3f3f0; } }
.cs-danger { background: #c93a33; color: #fff; }
:root[data-theme="dark"] .cs-danger { background: #d6453d; }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] .cs-danger { background: #d6453d; } }
.cs-danger-soft { background: #f7e3e0; color: #b3352c; }
:root[data-theme="dark"] .cs-danger-soft { background: #2e1715; color: #f0837a; }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] .cs-danger-soft { background: #2e1715; color: #f0837a; } }
/* the post options sheet (post-menu build, 2026-11-20, to the approved post-menu-mock):
   the confirm sheet's ground, radius, backdrop and grab — the dialect above — carrying
   the post's own jobs as full-width rows instead of an ask: the owner's edit / delete
   (delete in the danger voice) and a moderator's community remove, divided hairline to
   hairline, with the confirm sheet's quiet cancel under them (.cs-acts / .cs-btn ride
   along unchanged). app.js builds it lazily and clones the row's <template
   class="pmenu-data"> items in, so no-JS pages never carry it. The share sheet
   (share-sheet build, 2026-11-21) is its sibling: same ground, radius, backdrop, grab,
   rows (.pmenu-row) and quiet cancel — the selectors below name both, so the two
   sheets can never drift apart. The attach sheet (boxless build, 2026-11-21) is the
   third sibling — the reply composer's attachment submenu (photo library / make from
   a template) — and joins every group below for the same reason. */
.menu-sheet, .share-sheet, .attach-sheet { background: #f8f6f0; border-radius: 18px 18px 0 0; }
:root[data-theme="dark"] .menu-sheet, :root[data-theme="dark"] .share-sheet, :root[data-theme="dark"] .attach-sheet { background: #161616; }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] .menu-sheet, :root[data-theme="system"] .share-sheet, :root[data-theme="system"] .attach-sheet { background: #161616; } }
.menu-sheet::backdrop, .share-sheet::backdrop, .attach-sheet::backdrop { background: rgba(28,26,20,.45); }
:root[data-theme="dark"] .menu-sheet::backdrop, :root[data-theme="dark"] .share-sheet::backdrop, :root[data-theme="dark"] .attach-sheet::backdrop { background: rgba(0,0,0,.58); }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] .menu-sheet::backdrop, :root[data-theme="system"] .share-sheet::backdrop, :root[data-theme="system"] .attach-sheet::backdrop { background: rgba(0,0,0,.58); } }
.menu-sheet .sheet-in, .share-sheet .sheet-in, .attach-sheet .sheet-in { padding: 10px 16px calc(18px + env(safe-area-inset-bottom)); }
.menu-sheet .sheet-grab, .share-sheet .sheet-grab, .attach-sheet .sheet-grab { background: #cfccc2; margin: 0 auto 16px; }
:root[data-theme="dark"] .menu-sheet .sheet-grab, :root[data-theme="dark"] .share-sheet .sheet-grab, :root[data-theme="dark"] .attach-sheet .sheet-grab { background: #3d3d3d; }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] .menu-sheet .sheet-grab, :root[data-theme="system"] .share-sheet .sheet-grab, :root[data-theme="system"] .attach-sheet .sheet-grab { background: #3d3d3d; } }
.pmenu-row { display: flex; align-items: center; width: 100%; min-height: 56px; padding: 0 6px; border: 0; border-radius: 6px; background: none; font: inherit; font-size: 16px; font-weight: 500; color: var(--fg); text-align: left; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pmenu-row:active { background: var(--soft); }
@media (hover: hover) { .pmenu-row:hover { background: var(--soft); } }
.pmenu-row.danger { color: var(--bad); }
.pmenu-slot form { margin: 0; }
.pmenu-div { height: 1px; background: var(--line); margin: 4px 0; }
.pk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; padding-top: 12px; }
.pk-grid .empty, .pk-more { grid-column: 1 / -1; }
.pk-more { justify-self: center; padding: 8px 0; display: inline-flex; align-items: center; min-height: 44px; } /* the picker sheet's More meets the 44px floor (controls sweep, 2026-11-17) */
.pk { display: grid; gap: 5px; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; min-width: 0; -webkit-tap-highlight-color: transparent; }
.pk-i { position: relative; display: block; aspect-ratio: 1; border: 1px solid var(--edge); overflow: hidden; background: var(--soft); line-height: 0; }
.pk-i img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pk-n { font: 500 11px/1.25 var(--sans); color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-feature-settings: normal; }
.pk:focus-visible .pk-i { outline: 2px solid var(--up); outline-offset: 2px; }
@media (hover: hover) { .pk:hover .pk-i { border-color: var(--fg); } }
/* The picker sheet's segments (template discovery extension, 2026-11-21; composition: the
   approved template-feed-cards-mock): two quiet words under the sheet's title — the library
   strip's popular | new, same words, same order — the active one ink and bold over a short
   ink bar. Never green (rule 11: tabs don't take the brand colour). */
.pk-segs { display: flex; gap: 22px; }
.pk-seg { position: relative; padding: 6px 2px 8px; border: 0; background: none; font: inherit; font-size: 14.5px; color: var(--mute); min-height: 38px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pk-seg.on { color: var(--fg); font-weight: 700; }
.pk-seg.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2.5px; border-radius: 2px; background: var(--fg); }
/* The add-a-template row (briefed as its own build, 2026-11-17; it lands with the segments,
   2026-11-21): one quiet row at the sheet's foot — a hairline above it, a + and the
   lowercase label, mute, a full-width target. It lives OUTSIDE the results region, so
   search states and More paging never move, repeat or replace it, and it stands under
   both segments. Not green: the sheet's primary act is picking; this is a secondary exit. */
.pk-add { display: flex; align-items: center; gap: 8px; min-height: 48px; margin-top: 8px; padding: 0 2px; border-top: 1px solid var(--line); color: var(--mute); font-size: 14.5px; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.pk-add:active { color: var(--fg); }
.pk-add-plus { font-size: 17px; line-height: 1; }
/* The compose picker sheet is a fixed-height column (the mock's sheet): header, segments,
   search and the foot row stand still while the results grid scrolls between them. Scoped
   to .pk-sheet — the reply maker's picker sheet keeps the standing whole-sheet scroll. */
.pk-sheet .sheet-in { display: flex; flex-direction: column; overflow: hidden; height: min(86dvh, calc(100dvh - 120px)); }
.pk-sheet .pk-grid { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 6px; }

/* ---- the Top chart bar (feed redesign, 2026-11-13): eyebrow, display-cut title with the brand
   arrow riding beside it, one explainer line, and the window pill. The pill is GLOSS without glass:
   a sheen gradient + hairline + soft shadow over a mostly-opaque fill (no frosted-glass effects —
   they are banned site-wide) — and it is ink, never green: tabs and washes don't take the brand colour. ---- */
.chartbar { padding: 16px 0 2px; }
.chart-eyebrow { font: 500 11px/1 var(--sans); letter-spacing: .05em; color: var(--mute); margin: 0 0 6px; }
.chart-title { display: flex; align-items: baseline; gap: 8px; font-family: var(--display); font-style: italic; font-weight: 800;
  font-size: 26px; line-height: 1.1; letter-spacing: -0.03em; }
.chart-arrow { height: .58em; width: auto; flex: none; }
.chart-sub { margin: 6px 0 0; font-size: 13px; line-height: 1.4; color: var(--mute); }
.chartwin { position: relative; display: flex; margin-top: 14px; padding: 3px; border: 1px solid var(--edge); border-radius: 999px;
  background: color-mix(in srgb, var(--fg) 5%, var(--panel)); touch-action: pan-y; -webkit-tap-highlight-color: transparent; }
.chartwin a { position: relative; z-index: 1; flex: 1 1 0; text-align: center; padding: 7px 0; border-radius: 999px;
  font: 500 13.5px/1.3 var(--sans); letter-spacing: -0.006em; font-feature-settings: "cv11", "ss01"; color: var(--mute); }
.chartwin a:hover { text-decoration: none; color: var(--fg); }
.chartwin a[aria-current="true"] { color: var(--fg); font-weight: 650; }
.chart-pill { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 5); border-radius: 999px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--fg) 13%, var(--panel)), color-mix(in srgb, var(--fg) 6%, var(--panel)));
  border: 1px solid var(--edge); box-shadow: 0 1px 5px rgba(0,0,0,.16), inset 0 1px 0 color-mix(in srgb, #fff 22%, transparent);
  transition: transform .2s cubic-bezier(.2,.8,.2,1); }
.chartwin.gliding .chart-pill { transition: none; }
@media (pointer: coarse) { .chartwin a { padding: 11px 0; min-height: 44px; } } /* each window segment is a full 44px target on touch (controls sweep, 2026-11-17: the padded link alone measured 39.5px) */
/* Stream and results swaps REPLACE, they never blend (recording fix, 2026-11-14): app.js
   clears the region in the tap's own task and the incoming content rises from empty on this
   one keyframe. The old .is-loading crossfade — the region dimmed to .35 with the outgoing
   content still inside it, the incoming content then fading up through the same layer — is
   what ghosted the old chart title through the new one on every Top window switch. */
@keyframes swap-in { from { opacity: 0; transform: translateY(12px); } }
[data-feed-list].swap-in, [data-tpl-results].swap-in { animation: swap-in 260ms var(--ease-settle); }
@media (prefers-reduced-motion: reduce) { .chart-pill { transition: none; } [data-feed-list].swap-in, [data-tpl-results].swap-in { animation: none; } }
/* rank: Top's signature at the post header's RIGHT — the display cut (italic, the wordmark's slant),
   tabular, ink (never green), a bare numeral: no badge, no background, no "#". */
.rk-n { flex: none; margin-left: auto; padding-left: 12px; align-self: center; font-family: var(--display); font-style: italic;
  font-weight: 800; font-size: 30px; line-height: 1; letter-spacing: -0.02em; color: var(--fg);
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
/* Top chart life (motion round 2, owner verdicts 2026-11-15): on a window switch the rows
   FLIP-travel (app.js, inline transforms on the settle curve) and each changed rank numeral
   rolls masked to its new value — old over new in a one-line window, 260ms on the house curve.
   The roll scaffolding exists only while a roll plays; at rest the numeral is the plain span
   above. Rank stays ink, never green. */
.rk-n.roll { overflow: hidden; height: 1em; }
.rk-n .rk-track { display: flex; flex-direction: column; will-change: transform; }
.rk-n .rk-num { display: block; height: 1em; line-height: 1; }
/* Feed arrival (motion round 2, owner verdicts 2026-11-15): the "new posts" pill floats over
   the stream's top while a member reads — it pops in (opacity on the house curve, scale on the
   settle), and tapping it drops the new rows in (the shared drop-in keyframe, staggered by
   app.js) while the pill counts itself away. Ink pill, green board-arrow — the mark, not a
   wash. Members only, never in Top, never for guests (app.js gates all three). */
.new-pill { position: fixed; top: calc(110px + env(safe-area-inset-top)); left: 50%; z-index: 6;
  transform: translateX(-50%) scale(.7); display: inline-flex; align-items: center; gap: 7px;
  background: var(--fg); color: var(--bg); font: 700 13px/1 var(--sans); border: 0; border-radius: 999px;
  padding: 8px 16px; min-height: 44px; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.35); white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 180ms var(--ease), transform 240ms var(--ease-settle); }
.new-pill.show { opacity: 1; pointer-events: auto; transform: translateX(-50%) scale(1); }
.new-pill svg { width: 14px; height: 14px; display: block; }
@media (prefers-reduced-motion: reduce) { .new-pill { transition: none; } }

/* polish pass, superseded by the field unification (2026-11-17): keyboard focus on the old
   hairline fields once got a doubled underline here; filled fields take the one inset --up ring
   on :focus itself (mouse and keyboard alike, the search pill's family), so no separate
   :focus-visible treatment remains for fields. */
/* polish pass: desktop feed rows acknowledge the pointer */
@media (hover: hover) { .piece:not(.piece-full):hover { background: color-mix(in srgb, var(--fg) 3%, var(--bg)); } }
/* polish pass: coarse pointers get full-size targets on the small controls too — buttons and segments
   rise to the 44px minimum (research A2); min-height so taller explicit heights elsewhere still win.
   The extra .seg selectors outrank the editor's tighter segment rules, which are desktop-density only. */
.btn:disabled { opacity: .55; cursor: default; } /* an in-flight submit reads as spent, not broken (controls sweep, 2026-11-17: app.js disables submits during inline/publish sends and no state style existed) */
@media (pointer: coarse) { .btn { min-height: 44px; } .btn.sm { min-height: 44px; } .seg span, .mm .seg span, .stage-bar .seg span, .box-ctl .seg span { min-height: 44px; } }
/* P5, same A2 pattern on the secondary surfaces: a people row's doors (the avatar and name links)
   and a reply row's upvote are full 44px targets on touch — the desktop density (the name's line
   box, the reply button's 36px) is a fine-pointer size, like the segments above. */
@media (pointer: coarse) {
  .person .pn { min-height: 44px; align-items: center; }
  .person .person-av { display: flex; align-items: center; min-height: 44px; }
  .r-acts .ico-btn { min-width: 44px; height: 44px; }
  .r-acts .r-do { min-width: 44px; min-height: 44px; } /* the reply bubble takes the same touch size as its upvote twin (premium build, 2026-11-20) */
}


/* premium pass: quiet controls ease their colour instead of snapping, and tiles / community rows answer the
   pointer the way feed rows and picker tiles already do — one feedback language everywhere */
.tabs > a, .bell, .r-do, .pager a, .back, .viewer-post { transition: color .16s cubic-bezier(.2,.8,.2,1); }
.choice, .tc .ti { transition: border-color .16s cubic-bezier(.2,.8,.2,1); }
.crow { transition: background-color .16s cubic-bezier(.2,.8,.2,1); }
@media (hover: hover) {
  .piece:not(.piece-full) { transition: background-color .16s cubic-bezier(.2,.8,.2,1); }
  .tc:hover .ti { border-color: var(--fg); }
  .crow:hover { background: color-mix(in srgb, var(--fg) 3%, var(--bg)); }
}
@media (prefers-reduced-motion: reduce) {
  .tabs > a, .bell, .r-do, .pager a, .back, .viewer-post, .choice, .tc .ti, .crow, .piece:not(.piece-full) { transition: none; }
}
