/* Soon reader — plain. One stylesheet: tokens, base, layout, then components. Classes only. */

/* ───────── 1. Tokens ───────── */
:root {
  --bg: #ffffff;
  --ink: #222222;
  --ink-2: #474747;
  --ink-3: #686868;
  --on-ink: #ffffff;
  --visited: #6e6e6e;
  --rule: #e4e4e4;
  --rule-2: #c9c9c9;
  --tint: #f6f6f6;
  --tint-2: #ededed;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --t-11: 11px; --t-12: 12px; --t-13: 13px; --t-14: 14px; --t-15: 15px; --t-17: 17px; --t-22: 22px;
  --s-1: 2px; --s-2: 4px; --s-3: 8px; --s-4: 12px; --s-5: 16px; --s-6: 24px; --s-7: 32px;
  --r: 3px;
  --wrap: 1360px;
  --rail: 300px;

  /* Stickers: one lightness and chroma, hue varies */
  --stk-lol: oklch(0.9 0.1 95);
  --stk-wtf: oklch(0.9 0.1 25);
  --stk-fire: oklch(0.9 0.1 60);
  --stk-poop: oklch(0.9 0.1 75);
  --stk-omg: oklch(0.9 0.1 340);
  --stk-sus: oklch(0.9 0.1 300);
  --stk-yawn: oklch(0.9 0.1 235);
  --stk-called: oklch(0.9 0.1 150);

  /* Avatar stand-ins for X pictures */
  --av-1: oklch(0.82 0.08 30); --av-2: oklch(0.82 0.08 100); --av-3: oklch(0.82 0.08 160);
  --av-4: oklch(0.82 0.08 220); --av-5: oklch(0.82 0.08 280); --av-6: oklch(0.82 0.08 340);

  /* People who work for Soon */
  --soon: oklch(0.9 0.17 95);
}

/* ───────── 2. Base ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 52px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.45 var(--font); }
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 2px; }
a:hover { text-decoration-color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
code { font-family: var(--mono); font-size: 0.92em; }
[hidden] { display: none !important; }

/* ───────── 3. Utilities ───────── */
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.small { font-size: var(--t-13); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ───────── 4. Layout ───────── */
.page { min-height: 100vh; display: flex; flex-direction: column; }
.page-main { flex: 1; padding-bottom: var(--s-7); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s-4); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
.layout-rail { min-width: 0; }
.prose { max-width: 720px; }
.doc { max-width: 680px; }
.doc p, .doc ul, .doc ol { margin-top: var(--s-3); text-wrap: pretty; }
.doc .sec > :first-child + * { margin-top: 0; }
.doc ul { padding-left: 1.2em; list-style: disc; }
.doc ol { padding-left: 1.4em; list-style: decimal; }
.doc li + li { margin-top: var(--s-1); }
.editing-guide { margin-inline: auto; }
.editing-guide .ph { padding-top: var(--s-6); }
.editing-guide .ph-title { font-size: 1.75rem; }
.editing-guide .sec-h { font-size: var(--t-17); }
.editing-guide nav { display: flex; flex-wrap: wrap; gap: var(--s-5); margin-top: var(--s-4); font-size: var(--t-13); }
.guide-shots { margin-top: var(--s-4); }
.guide-shots img { display: block; max-width: 100%; height: auto; border: 1px solid var(--rule-2); border-radius: var(--r); }
.guide-shots figcaption { margin-top: var(--s-2); font-size: var(--t-13); color: var(--ink-3); }
@media (min-width: 700px) { .wrap { padding: 0 var(--s-5); } }
@media (min-width: 1000px) {
  .wrap { padding: 0 var(--s-6); }
  .layout { grid-template-columns: minmax(0, 1fr) 270px; gap: var(--s-7); }
}
@media (min-width: 1300px) { .layout { grid-template-columns: minmax(0, 1fr) var(--rail); } }

/* Page header */
.ph { padding: var(--s-5) 0 var(--s-3); }
.ph-title { font-size: var(--t-22); line-height: 1.2; font-weight: 600; overflow-wrap: anywhere; text-wrap: balance; }
.ph-meta { margin-top: var(--s-2); font-size: var(--t-13); color: var(--ink-3); display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); }
.ph-lede { margin-top: var(--s-3); max-width: 720px; color: var(--ink-2); text-wrap: pretty; }

/* Date strip: retired from the product (header 2a). Kept only because the Motto explorations record page still draws it. */
.strip { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); padding: var(--s-3) 0; font-size: var(--t-12); color: var(--ink-3); border-bottom: 1px solid var(--rule); }
.strip b { color: var(--ink); font-weight: 600; }

/* Section heading (Wikipedia-style rule under) */
.sec { margin-top: var(--s-6); }
.sec:first-child { margin-top: 0; }
/* Child-component mounts: keep section spacing (the section is the mount's first child) */
.sc-host > .sec { margin-top: var(--s-6); }
.story-rail > .sc-host:first-child > .sec { margin-top: 0; }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); padding-bottom: var(--s-2); margin-bottom: var(--s-3); border-bottom: 1px solid var(--rule-2); font-size: var(--t-15); font-weight: 600; }
.sec-h > span + span:last-child, .sec-h > a { font-size: var(--t-12); font-weight: 400; color: var(--ink-3); }
.sec-h > a { white-space: nowrap; }
.sec-note { font-size: var(--t-12); color: var(--ink-3); margin: calc(var(--s-2) * -1) 0 var(--s-3); text-wrap: pretty; }

/* Tabs (plain text links) */
.tabs { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); font-size: var(--t-13); margin: var(--s-3) 0; }
.tabs a[aria-current="page"] { font-weight: 600; text-decoration: none; }
.tabs-label { color: var(--ink-3); }

/* Notices and empty states */
.notice { padding: var(--s-3) var(--s-4); background: var(--tint); border: 1px solid var(--rule); border-radius: var(--r); font-size: var(--t-13); color: var(--ink-2); text-wrap: pretty; }
.notice a { color: var(--ink); }
.notice--flash { margin-top: var(--s-3); }
.empty { padding: var(--s-4) 0; color: var(--ink-3); font-size: var(--t-13); }

/* Key–value list */
.kv { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-1) var(--s-5); font-size: var(--t-13); }
.kv dt { color: var(--ink-3); }
.kv dd { margin-bottom: var(--s-3); overflow-wrap: anywhere; }
@media (min-width: 600px) { .kv { grid-template-columns: 180px minmax(0, 1fr); } .kv dd { margin-bottom: var(--s-2); } }

/* Plain list with rules */
.list > li { padding: var(--s-2) 0; border-bottom: 1px solid var(--rule); font-size: var(--t-13); display: flex; justify-content: space-between; gap: var(--s-4); }
.list > li > :first-child { min-width: 0; overflow-wrap: anywhere; }
.list-sub { display: block; color: var(--ink-3); font-size: var(--t-12); }
.list-end { color: var(--ink-3); white-space: nowrap; font-size: var(--t-12); }

/* Tables */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: var(--t-13); }
.tbl th { text-align: left; font-weight: 600; font-size: var(--t-12); color: var(--ink-3); padding: var(--s-2) var(--s-3) var(--s-2) 0; border-bottom: 1px solid var(--rule-2); white-space: nowrap; }
.tbl td { padding: var(--s-2) var(--s-3) var(--s-2) 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.tbl .r { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .nw { white-space: nowrap; }
.tbl-sub { display: block; color: var(--ink-3); font-size: var(--t-12); }

/* Infobox (company facts) */
.infobox { border: 1px solid var(--rule-2); background: var(--tint); padding: var(--s-4); font-size: var(--t-13); }
.infobox-h { font-weight: 600; margin-bottom: var(--s-3); }
.infobox dl { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: var(--s-2) var(--s-4); }
.infobox dt { color: var(--ink-3); }
.infobox dd { overflow-wrap: anywhere; }
.infobox-foot { margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--rule); font-size: var(--t-12); color: var(--ink-3); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); }

/* ───────── 5. Components ───────── */

/* Masthead */
/* A black bar that stays at the top of the window. Same HTML at every width: the logo (the only front-page link) and, signed
   out, "Sign in" as a button. Signed in, the person's picture (else their name) opens a native <details> menu
   (no JavaScript) under the right of the bar, over the page: who they are, Account, Log out and, for staff, the Admin links.
   Staff pictures carry a white ring. */
.mh { position: sticky; top: 0; z-index: 20; background: var(--ink); color: var(--on-ink); }
.mh-row { display: flex; flex-wrap: nowrap; align-items: center; gap: var(--s-3) var(--s-5); min-height: 44px; }
.mh-logo { display: block; flex: none; }
.mh-left { display: flex; align-items: center; min-width: 0; }
/* Yellow means only an admin sees it: the "Admin" link in the corner, and the tag, page name and line on an admin page. */
.mh-admin { display: inline-flex; flex: none; align-items: center; white-space: nowrap; height: 22px; padding: 0 7px; border-radius: var(--r); background: var(--soon); color: var(--ink); font-size: var(--t-12); font-weight: 700; text-decoration: none; }
.mh-admin:hover { text-decoration: underline; }
.mh-admin:focus-visible { outline: 2px solid var(--on-ink); outline-offset: 2px; }
.mh--admin { box-shadow: inset 0 -3px 0 var(--soon); }
.mh-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; margin-left: 12px; border-radius: var(--r); background: var(--soon); color: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
/* Beta: a quiet grey label beside the logo on reader pages. Not a link; square corner because it is not something to tap. */
.mh-beta { display: inline-flex; flex: none; align-items: center; height: 18px; padding: 0 7px; margin-left: 10px; border-radius: var(--r); background: #8c8c8c; color: var(--ink); font-size: var(--t-11); font-weight: 700; line-height: 1; letter-spacing: 0.02em; user-select: none; }
.mh-crumb { margin-left: 12px; font-size: var(--t-13); color: var(--on-ink); opacity: 0.8; white-space: nowrap; }
.mh-logo svg { width: 139px; height: 16px; display: block; fill: var(--on-ink); }
@media (max-width: 499px) {
  .mh-row { gap: var(--s-2); }
  .mh-left { flex: none; }
  .mh-crumb { display: none; }
  .mh-logo svg { width: clamp(80px, calc(100vw - 240px), 139px); }
}
/* Turbo replaces <body> on every page change and only <html> survives, so the fill runs on <html>: once per real page load. */
@property --logo-unfilled { syntax: "<percentage>"; inherits: true; initial-value: -1%; }
html { animation: logoFill 900ms cubic-bezier(.2, .8, .3, 1) 150ms both; }
@keyframes logoFill { from { --logo-unfilled: 100%; } }
.mh-logo-bar { clip-path: inset(-1% var(--logo-unfilled) -1% -1%); }
.mh-user { margin-left: auto; display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 44px; font-size: var(--t-13); }
.mh-user a.mh-signin { display: inline-flex; align-items: center; min-height: 26px; padding: 0 var(--s-3); font-size: var(--t-13); line-height: 1; white-space: nowrap; text-decoration: none; color: var(--on-ink); background: var(--ink); border: 1px solid var(--on-ink); border-radius: var(--r); }
.mh-user a.mh-signin:hover, .mh-user a.mh-signin:focus-visible { color: var(--ink); background: var(--on-ink); text-decoration: none; }
.mh-user a.mh-signin:focus-visible { outline: none; }
.mh-logo:focus-visible, .mh-menu > summary:focus-visible { outline: 2px solid var(--on-ink); outline-offset: 1px; }
.mh-menu { position: relative; min-width: 0; }
.mh-menu > summary { list-style: none; cursor: pointer; display: flex; align-items: center; min-height: 44px; min-width: 0; color: var(--on-ink); }
.mh-menu > summary::-webkit-details-marker { display: none; }
.mh-menu > summary .cmt-av { width: 24px; height: 24px; font-size: 10px; }
.mh-menu-name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mh-menu > summary:hover .mh-menu-name, .mh-menu[open] .mh-menu-name { text-decoration: underline; }
.mh-menu--staff > summary .cmt-av, .mh-menu--staff .mh-menu-name { box-shadow: 0 0 0 2px var(--on-ink); }
.mh-menu--staff .mh-menu-name { padding: 0 4px; border-radius: var(--r); }
.mh-menu-panel { position: absolute; right: 0; top: 100%; z-index: 10; min-width: 200px; max-width: calc(100vw - 2 * var(--s-4)); background: var(--bg); color: var(--ink); border: 1px solid var(--rule-2); border-top: 0; box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06); padding: 0 var(--s-4); }
.mh-menu-who { display: flex; align-items: center; min-height: 44px; font-size: var(--t-13); color: var(--ink-3); overflow-wrap: anywhere; }
.mh-menu-panel a, .mh-menu-panel button { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0; border: 0; border-top: 1px solid var(--rule); background: none; font: inherit; font-size: var(--t-15); color: var(--ink); text-align: left; text-decoration: none; cursor: pointer; }
.mh-menu-panel a:hover, .mh-menu-panel button:hover { text-decoration: underline; }
.mh-menu-panel a[aria-current="page"] { font-weight: 600; }
.mh-menu-panel nav { margin: 0 calc(-1 * var(--s-4)); padding: 0 var(--s-4); border-top: 1px solid var(--rule-2); }
.mh-menu-label { display: flex; align-items: center; min-height: 32px; font-size: var(--t-12); }
.staff { background: var(--soon); color: var(--ink); padding: 0 5px; border-radius: var(--r); font-weight: 600; }

/* Button */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); padding: 3px 10px; min-height: 28px; font-size: var(--t-13); line-height: 1.3; color: var(--ink); background: var(--tint); border: 1px solid var(--rule-2); border-radius: var(--r); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--tint-2); border-color: #b5b5b5; }
.btn:active { background: #e4e4e4; }
.btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--primary:hover { background: #3a3a3a; border-color: #3a3a3a; }
.btn--s { min-height: 24px; padding: 1px 8px; font-size: var(--t-12); }
.btn--block { width: 100%; min-height: 36px; }
.btn--link { min-height: 0; padding: 0; background: none; border: 0; color: var(--ink-3); text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 2px; font-size: inherit; }
.btn--link:hover { background: none; color: var(--ink); text-decoration-color: var(--ink); }
.btn[disabled] { opacity: 0.5; cursor: default; }
@media (pointer: coarse) { .btn { min-height: 36px; } .btn--s { min-height: 32px; } .btn--link { min-height: 0; } }

/* Field */
.field { display: grid; gap: var(--s-2); margin-bottom: var(--s-4); }
.field-label { font-size: var(--t-13); font-weight: 600; }
.field-input { width: 100%; padding: 6px 8px; font-size: var(--t-14); background: #fff; border: 1px solid var(--rule-2); border-radius: var(--r); }
.field-input:focus { border-color: var(--ink); outline: none; }
textarea.field-input { min-height: 72px; resize: vertical; line-height: 1.45; }
.field-hint { font-size: var(--t-12); color: var(--ink-3); }
.field-err { font-size: var(--t-12); color: #a3241b; }
.field--error .field-input { border-color: #a3241b; }
.field-row { display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; }
.field-row .field-input { flex: 1; min-width: 160px; width: auto; }
fieldset.field { border: 0; padding: 0; margin-inline: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: var(--s-2); }
.field-choice { display: flex; gap: var(--s-3); align-items: center; font-size: var(--t-14); }
.field-choice input { margin: 0; }
.report-subject { margin: var(--s-5) 0; padding: var(--s-4); background: var(--tint); }

/* Pill (company, label, badge) */
.pill { display: inline-block; max-width: 100%; padding: 0 6px; font-size: var(--t-12); line-height: 18px; color: var(--ink-2); background: #fff; border: 1px solid var(--rule-2); border-radius: var(--r); text-decoration: none; overflow-wrap: anywhere; }
a.pill:hover { border-color: var(--ink-3); color: var(--ink); }
.pill--new { background: var(--ink); border-color: var(--ink); color: #fff; font-size: var(--t-11); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.pill--soon { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 700; }
.pill--quiet { border-color: transparent; background: var(--tint-2); }
.pills { display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* Sticker (display) */
.stk { display: inline-flex; align-items: center; gap: 3px; padding: 0 6px; height: 20px; border-radius: 10px; font-size: var(--t-12); font-weight: 700; color: var(--ink); white-space: nowrap; }
.stk-e { font-size: 13px; line-height: 1; }
.stk-t { text-transform: uppercase; letter-spacing: 0.03em; font-size: var(--t-11); }
.stk-n { font-weight: 600; font-variant-numeric: tabular-nums; }
.stk--lol { background: var(--stk-lol); } .stk--wtf { background: var(--stk-wtf); } .stk--fire { background: var(--stk-fire); } .stk--poop { background: var(--stk-poop); }
.stk--omg { background: var(--stk-omg); } .stk--sus { background: var(--stk-sus); } .stk--yawn { background: var(--stk-yawn); } .stk--called { background: var(--stk-called); }
.stks { display: inline-flex; flex-wrap: wrap; gap: 3px; }

/* Reaction bar (eight stickers, one tap each) */
.rx { display: flex; flex-wrap: wrap; gap: 6px; }
.rx-btn { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px; border: 1px solid transparent; border-radius: 15px; font-size: var(--t-13); font-weight: 700; color: var(--ink); cursor: pointer; }
.rx-btn .stk-e { font-size: 15px; }
.rx-btn:hover { border-color: var(--ink-3); }
.rx-btn[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.rx-nudge { margin-top: var(--s-3); }

/* Upvote */
.vote { display: inline-flex; align-items: center; gap: 5px; font-size: var(--t-12); color: var(--ink-3); }
.vote-btn { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 20px; padding: 0; font-size: 10px; line-height: 1; color: var(--ink-3); background: #fff; border: 1px solid var(--rule-2); border-radius: var(--r); cursor: pointer; transition: transform 90ms ease-out, background-color 140ms ease-out, color 140ms ease-out, border-color 140ms ease-out; }
.vote-btn:active { transform: scale(0.92); }
.vote-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.vote-btn[aria-pressed="true"] { color: #fff; background: var(--ink); border-color: var(--ink); }
.vote-n { font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.vote--l .vote-btn { width: 30px; height: 30px; font-size: 13px; }
.vote--l { font-size: var(--t-13); }
.vote--l .vote-n { font-size: var(--t-15); }
@media (pointer: coarse) { .vote-btn { width: 32px; height: 28px; } }

/* Story row */
.srows { border-top: 1px solid var(--rule); }
.srow { padding: 7px 0 8px; border-bottom: 1px solid var(--rule); }
.srow-title { font-size: var(--t-15); font-weight: 600; line-height: 1.3; text-decoration: none; overflow-wrap: anywhere; text-wrap: pretty; }
.srow-title:hover { text-decoration: underline; }
.srow-title:visited { color: var(--visited); }
.srow-why { margin-top: 1px; max-width: 78ch; font-size: var(--t-13); line-height: 1.4; color: var(--ink-2); text-wrap: pretty; }
.srow-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 4px; font-size: var(--t-12); color: var(--ink-3); }
.srow-cm { color: var(--ink-2); font-weight: 600; }
.srow-none { font-style: italic; }
.srow--pick { border: 2px solid var(--ink); border-radius: var(--r); margin: var(--s-3) 0; padding: var(--s-4) var(--s-3); }
.srow--pick + .srow--pick { margin-top: 0; }
.srow--pick .srow-title { font-size: var(--t-17); }
.srow--img > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); grid-template-areas: "img text" "meta meta" "top top"; column-gap: var(--s-5); align-items: start; }
.pick-text { grid-area: text; min-width: 0; }
.pick-img { grid-area: img; display: grid; gap: 3px; margin: 2px 0; }
.pick-img img { display: block; width: 150px; height: 100px; object-fit: cover; border-radius: var(--r); background: var(--tint-2); }
.pick-img figcaption { font-size: var(--t-11); color: var(--ink-3); line-height: 1.3; }
.srow--img .srow-meta { grid-area: meta; }
.srow--img .srow-top { grid-area: top; }
@media (max-width: 999px) {
  .srow--img > div { grid-template-columns: minmax(0, 1fr); grid-template-areas: "img" "text" "meta" "top"; }
  .pick-img img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
}
.list-pin form { display: inline; }
.list-pin-position { width: 3.5em; font: inherit; text-align: right; }
.list-pin-note { width: 16em; max-width: 100%; font: inherit; }
.sortable-ghost { opacity: 0.4; }
.sortable-chosen { cursor: grabbing; }
@media (min-width: 1000px) { .srow--pick .srow-title { font-size: var(--t-22); } }
/* Headline + age: below 700 the age follows the headline inline; 700+ it gets its own top-right column. Same HTML. */
.srow-head { display: block; }
.srow-age { margin-left: var(--s-3); font-size: var(--t-12); color: var(--ink-3); white-space: nowrap; }
/* Top comment preview: a header line (label, picture, name, count), then the quote on up to two lines. Below 700 the quote sits under the name; 700+ it runs the full width. Same HTML. */
.srow-top { display: grid; grid-template-columns: 20px auto minmax(0, 1fr); grid-template-areas: "av name n" "av q q"; justify-content: start; align-items: center; gap: 0 6px; margin-top: 5px; font-size: var(--t-12); color: var(--ink-3); }
.srow-top .srow-top-av { grid-area: av; align-self: start; width: 20px; height: 20px; font-size: 9px; margin-top: 1px; }
.srow-top-who { grid-area: name; display: flex; align-items: center; gap: 4px; min-width: 0; }
.srow-top-ai { flex: none; }
.srow-top-name { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--ink); font-weight: 600; }
.srow-top-q { grid-area: q; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; min-width: 0; max-width: 78ch; overflow: hidden; overflow-wrap: anywhere; font-size: var(--t-13); line-height: 1.4; color: var(--ink-2); text-decoration: none; }
.srow-top-q:hover { text-decoration: underline; }
.srow-top-n { grid-area: n; justify-self: start; white-space: nowrap; }
.srow-top--note { grid-template-areas: "label label label" "av name n" "av q q"; }
.srow-top-label { grid-area: label; font-weight: 700; color: var(--ink); white-space: nowrap; }
@media (min-width: 700px) {
  .srow-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s-4); align-items: baseline; }
  .srow-age { margin-left: 0; }
  .srow-top { grid-template-columns: 16px max-content max-content minmax(0, 1fr); grid-template-areas: "av name n ." "q q q q"; row-gap: 2px; }
  .srow-top .srow-top-av { width: 16px; height: 16px; align-self: center; margin-top: 0; }
  .srow-top-n { margin-left: 4px; }
  .srow-top--note { grid-template-columns: max-content 16px max-content max-content minmax(0, 1fr); grid-template-areas: "label av name n ." "q q q q q"; }
  .srow-top-label { margin-right: 4px; }
}

/* Comment */
.cmt { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 0 var(--s-3); padding: 10px 0; border-top: 1px solid var(--rule); }
.cmt--reply { border-top: 0; padding: 8px 0 0; }
.cmt-av { width: 24px; height: 24px; border-radius: 50%; background: var(--tint-2); color: var(--ink-2); display: grid; place-items: center; font-size: var(--t-11); font-weight: 700; overflow: hidden; }
.cmt-av > * { grid-area: 1 / 1; }
.cmt-av img { width: 100%; height: 100%; object-fit: cover; }
/* AI characters: dark square avatar and a muted "AI · description" line. Not colour- or hover-dependent. */
.cmt-av-ai { width: 24px; height: 24px; border-radius: var(--r); background: var(--ink); color: #fff; display: grid; place-items: center; font-size: var(--t-11); font-weight: 700; }
.cmt-ai-desc { font-size: var(--t-12); color: var(--ink-3); }
.cmt-av--l { width: 48px; height: 48px; font-size: var(--t-22); }
.char-q { font-size: var(--t-18); font-weight: 600; text-wrap: balance; }
.char-list { list-style: none; padding: 0; }
.char-list li + li { margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--rule); }
.char-on { margin-top: var(--s-1); font-size: var(--t-12); color: var(--ink-3); }
.char-on a { color: var(--ink-2); }
.cmt-av--x1 { background: var(--av-1); } .cmt-av--x2 { background: var(--av-2); } .cmt-av--x3 { background: var(--av-3); }
.cmt-av--x4 { background: var(--av-4); } .cmt-av--x5 { background: var(--av-5); } .cmt-av--x6 { background: var(--av-6); }
.cmt-why { font-size: var(--t-12); font-weight: 700; color: var(--ink); }
.cmt-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--s-3); font-size: var(--t-12); color: var(--ink-3); }
.cmt-name { font-weight: 600; color: var(--ink); font-size: var(--t-13); overflow-wrap: anywhere; min-width: 0; }
.cmt-handle { color: var(--ink-3); }
.soon-badge { flex: none; align-self: center; padding: 0 5px; border-radius: var(--r); background: var(--ink); color: #fff; font-size: var(--t-11); font-weight: 700; line-height: 16px; letter-spacing: 0.01em; }
.cmt-body { margin-top: 2px; max-width: 720px; font-size: var(--t-14); overflow-wrap: anywhere; text-wrap: pretty; }
.cmt-body p + p { margin-top: var(--s-3); }
.cmt-body--gone { color: var(--ink-3); font-style: italic; font-size: var(--t-13); }
.cmt-body--held { color: var(--ink-2); }
.cmt-body--clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.cmt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); margin-top: var(--s-2); font-size: var(--t-12); color: var(--ink-3); }
.cmt-replies { margin-top: var(--s-1); padding-left: var(--s-3); border-left: 2px solid var(--rule); }
.cmt-form { margin-top: var(--s-3); }
.cmt-form-actions { display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; }
.cmts-h-sort { font-weight: 400; color: var(--ink-3); }

/* Nudge (signed-out prompt) */
.nudge { font-size: var(--t-12); color: var(--ink-2); background: var(--tint); border: 1px solid var(--rule); border-radius: var(--r); padding: 4px 8px; display: inline-block; }


/* Story page */
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
.story-main, .story-cmts { min-width: 0; }
.story-rail { min-width: 0; }
@media (min-width: 1000px) {
  .story-grid { grid-template-columns: minmax(0, 1fr) 270px; grid-template-areas: "main rail" "cmts rail"; column-gap: var(--s-7); align-items: start; }
  .story-main { grid-area: main; } .story-rail { grid-area: rail; } .story-cmts { grid-area: cmts; }
  /* Puts the Sources heading on the headline's first baseline. */
  .story-rail { padding-top: 21px; }
}
@media (min-width: 1300px) { .story-grid { grid-template-columns: minmax(0, 1fr) var(--rail); } }
.story-acts { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--s-4); margin: var(--s-4) 0; }
.story-body p { margin-top: var(--s-3); max-width: 720px; text-wrap: pretty; }
.story-body p:first-child { margin-top: 0; }
.story-fig { margin: var(--s-4) 0 0; max-width: 720px; }
.story-fig img { display: block; width: auto; max-width: 100%; height: auto; max-height: 405px; background: var(--tint-2); }
.story-fig figcaption { margin-top: 4px; font-size: var(--t-12); color: var(--ink-3); }
.sources li { display: grid; grid-template-columns: minmax(0, 1fr); padding: 5px 0; border-bottom: 1px solid var(--rule); font-size: var(--t-13); }
.sources-pub { font-weight: 600; }
.sources-when { color: var(--ink-3); font-size: var(--t-12); }

/* Video tile */
.vt { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-2); min-width: 0; }
.vt-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--tint-2); overflow: hidden; border-radius: var(--r); }
.vt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vt-len { position: absolute; right: 4px; bottom: 4px; padding: 0 4px; font-size: var(--t-11); font-weight: 600; line-height: 16px; color: #fff; background: rgba(0, 0, 0, 0.8); border-radius: 2px; font-variant-numeric: tabular-nums; }
.vt--short .vt-thumb { aspect-ratio: 9 / 16; }
.vt-labels { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.vt-title { font-size: var(--t-14); font-weight: 600; line-height: 1.3; text-decoration: none; overflow-wrap: anywhere; }
.vt-title:hover { text-decoration: underline; }
.vt-meta { font-size: var(--t-12); color: var(--ink-3); }
.vt-about { font-size: var(--t-12); color: var(--ink-3); display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.vt-text { display: grid; gap: 3px; align-content: start; min-width: 0; }
.vt--pinned .vt-thumb { outline: 2px solid var(--ink); outline-offset: 1px; }
.vgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--s-4); }
@media (min-width: 700px) { .vgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .vgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1300px) { .vgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.vgrid--shorts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 700px) { .vgrid--shorts { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1300px) { .vgrid--shorts { grid-template-columns: repeat(7, minmax(0, 1fr)); } }

/* Front page: the two column headings, and "New from Soon" as full-width stills that open YouTube */
.day-h { margin: 0; font-size: var(--t-22); line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
@media (max-width: 999px) { .day-h { font-size: var(--t-17); } }
.col-head { padding: var(--s-5) 0 var(--s-3); }
.home-vids-list { display: grid; gap: var(--s-5); }
.vstill { display: grid; gap: var(--s-2); text-decoration: none; color: var(--ink); }
.vstill img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); background: var(--tint-2); }
.vstill-t { font-size: var(--t-14); font-weight: 600; line-height: 1.3; text-wrap: pretty; }
.vstill-m { font-size: var(--t-12); color: var(--ink-3); }
.vstill:hover .vstill-t { text-decoration: underline; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
/* Below 1000: stories, then videos. 1000+: stories left, videos in the rail. */
.home-grid { grid-template-areas: "main" "vids"; }
.home-main { grid-area: main; min-width: 0; } .home-vids-rail { grid-area: vids; }
.home-main .srows { border-top: 0; }
.home-main .srows > .srow:first-child:not(.srow--pick) { padding-top: 0; }
.home-main .srows > .srow--pick:first-child { margin-top: 0; }
@media (min-width: 1000px) {
  .home-grid { grid-template-columns: minmax(0, 1fr) 270px; grid-template-areas: "main vids"; column-gap: var(--s-7); align-items: start; }
}
@media (min-width: 1300px) { .home-grid { grid-template-columns: minmax(0, 1fr) var(--rail); } }

/* Hot this week */
.hot-what { font-size: var(--t-12); color: var(--ink-3); margin: calc(var(--s-2) * -1) 0 var(--s-2); text-wrap: pretty; }
.hot-row { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto auto 30px; gap: 0 var(--s-3); align-items: baseline; padding: 4px 0; border-bottom: 1px solid var(--rule); font-size: var(--t-13); }
.hot-rank { color: var(--ink-3); text-align: right; font-size: var(--t-12); font-variant-numeric: tabular-nums; }
.hot-name { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; min-width: 0; }
.hot-name:hover { text-decoration: underline; }
.hot-rise { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.hot-n { color: var(--ink-3); font-size: var(--t-12); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hot-foot { margin-top: var(--s-2); font-size: var(--t-12); }
.nw { white-space: nowrap; }
.home-none { padding: var(--s-5) 0; border-top: 1px solid var(--rule); }
.home-none .empty { padding: 0 0 var(--s-2); font-size: var(--t-15); color: var(--ink-2); }
.hot-jobs { text-align: right; font-size: var(--t-12); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.hot-row--head { padding: 0 0 2px; font-size: var(--t-11); color: var(--ink-3); border-bottom-color: var(--rule-2); }
.hot-row--head .hot-rise, .hot-row--head .hot-n, .hot-row--head .hot-jobs { font-weight: 400; font-size: var(--t-11); color: var(--ink-3); }
@media (max-width: 999px) { .hot--rail .hot-row:nth-child(n+6) { display: none; } }

/* Company page */
.co-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); }
.co-head .ph-title { min-width: 0; }
.co-badges { margin-top: var(--s-3); display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; font-size: var(--t-13); }
.co-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
.co-grid > .infobox { order: -1; }
@media (min-width: 1000px) { .co-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s-7); align-items: start; } .co-grid > .infobox { order: 0; } }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--s-2) var(--s-5); font-size: var(--t-13); }
.people li { padding: 4px 0; border-bottom: 1px solid var(--rule); }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s-3) var(--s-5); margin-bottom: var(--s-4); }
.stat-k { font-size: var(--t-12); color: var(--ink-3); }
.stat-v { font-size: var(--t-17); font-weight: 600; font-variant-numeric: tabular-nums; }
.stat-n { font-size: var(--t-12); color: var(--ink-3); }

/* Logo: --l 48px: company header. No image → first-letter tile. */
.logo { position: relative; display: inline-grid; place-items: center; flex: none; overflow: hidden; background: var(--tint-2); border: 1px solid var(--rule); border-radius: var(--r); color: var(--ink-2); font-weight: 700; line-height: 1; }
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.logo img[hidden] { display: none; }
.logo--l { width: 48px; height: 48px; font-size: var(--t-22); }

/* Story: lede */
.story-lede { margin-top: var(--s-3); max-width: 720px; font-size: var(--t-17); line-height: 1.4; color: var(--ink-2); text-wrap: pretty; }

/* Funding rounds (as reported): one line per round, after the article */
.fr-lines { max-width: 720px; margin: var(--s-5) 0 0; padding-top: var(--s-3); border-top: 1px solid var(--rule); }
.fr-lines-h { font-size: var(--t-12); color: var(--ink-3); margin-bottom: 4px; }
.fr-lines li { padding: 3px 0; font-size: var(--t-14); line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.fr-lines b { color: var(--ink); font-weight: 600; }
.fr-more { padding: 0; border: 0; background: none; font: inherit; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 2px; cursor: pointer; }
.fr-more:hover { color: var(--ink); text-decoration-color: var(--ink); }

/* Hiring */
.hire-count { font-size: var(--t-13); color: var(--ink-2); }
.hire-partial { margin-top: var(--s-1); font-size: var(--t-12); color: var(--ink-3); }
.hire-chg { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--s-3); margin: var(--s-3) 0 var(--s-4); font-size: var(--t-15); }
.hire-chg b { font-size: var(--t-22); font-weight: 600; font-variant-numeric: tabular-nums; }
.hire-chg > span + span::before { content: "·"; margin-right: var(--s-3); color: var(--ink-3); }
.hire-chg > .hire-since { color: var(--ink-3); font-size: var(--t-13); }
.hire-chg > .hire-since::before { content: none; }
.brks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--s-4) var(--s-5); margin-bottom: var(--s-4); }
.brk-h { margin: var(--s-4) 0 var(--s-2); font-size: var(--t-13); font-weight: 600; }
.brks .brk-h { margin-top: 0; }
.brk-list li { display: flex; justify-content: space-between; gap: var(--s-3); padding: 3px 0; border-bottom: 1px solid var(--rule); font-size: var(--t-13); }
.brk-list li > :first-child { min-width: 0; overflow-wrap: anywhere; }
.brk-list .brk-other { border-bottom: 0; color: var(--ink-3); font-size: var(--t-12); }

/* Company capital extras */
.cap-stmt { margin-bottom: var(--s-4); text-wrap: pretty; }

/* Forms on auth pages */
.auth { max-width: 380px; padding: var(--s-6) 0; }
.auth-h { font-size: var(--t-22); font-weight: 600; margin-bottom: var(--s-2); }
.auth-p { color: var(--ink-2); margin-bottom: var(--s-5); text-wrap: pretty; overflow-wrap: anywhere; }
.auth-foot { margin-top: var(--s-4); font-size: var(--t-13); color: var(--ink-3); }
.code-input { font-family: var(--mono); font-size: var(--t-22); letter-spacing: 0.3em; text-align: center; }

/* Account */
.acct-x { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.acct-x .cmt-av { width: 36px; height: 36px; font-size: var(--t-14); }

/* Search */
.search-form { display: flex; gap: var(--s-3); flex-wrap: wrap; max-width: 640px; margin: var(--s-3) 0 var(--s-2); }
.search-form .field-input { flex: 1; min-width: 200px; width: auto; }
.hl { background: oklch(0.95 0.08 95); color: inherit; padding: 0 1px; }

/* Error pages */
.err { padding: var(--s-7) 0; max-width: 560px; }
.err-code { font-family: var(--mono); color: var(--ink-3); font-size: var(--t-13); }

/* Index / inventory documents */
.doc-sec { margin-top: var(--s-7); }
.doc-frame { border: 1px solid var(--rule-2); background: #fff; overflow: hidden; }
.doc-frame iframe { border: 0; display: block; transform-origin: 0 0; }
.doc-specimen { border: 1px dashed var(--rule-2); padding: var(--s-4); margin-top: var(--s-3); }
.doc-specimen-l { font-family: var(--mono); font-size: var(--t-11); color: var(--ink-3); margin-bottom: var(--s-2); display: block; }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--s-4); }

/* Symbol fallback keeps the supplied external-link arrow visible on Linux. */
.external-arrow { font-family: "DejaVu Sans", "Segoe UI Symbol", "Apple Symbols", sans-serif; }

/* Keep a production-sized comparison list contained without dropping rows. */
.hot-unranked { max-height: 70vh; overflow-y: auto; }
.hot--page .tbl { min-width: 640px; }
.hot--page .pill--new { white-space: nowrap; }
.tbl-companies { position: relative; }
.tbl-companies .tbl { min-width: 820px; }
.tbl-companies .pill--new { white-space: nowrap; }

.tbl-following td:first-child { white-space: normal; }

.vt-thumb iframe { display: block; width: 100%; height: 100%; border: 0; }

.vgrid .vt--playing { grid-column: span 2; }

/* ───────── 6. Chosen 11 Oct 2026 (E1 2a, E2 2b, E3 2a, E5 1–6) ───────── */

/* Press, settle, release: stickers and the row picker. One move each, then still. */
@keyframes rxSettle0 { 0% { transform: scale(0.94); } 55% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes rxSettle1 { 0% { transform: scale(0.94); } 55% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes rxRelease0 { 0% { transform: scale(0.95); } 100% { transform: scale(1); } }
@keyframes rxRelease1 { 0% { transform: scale(0.95); } 100% { transform: scale(1); } }
.is-settle0 { animation: rxSettle0 260ms cubic-bezier(.2, .8, .3, 1); } .is-settle1 { animation: rxSettle1 260ms cubic-bezier(.2, .8, .3, 1); }
.is-release0 { animation: rxRelease0 160ms ease-out; } .is-release1 { animation: rxRelease1 160ms ease-out; }

/* Story page sticker bar (E2 2b): grey until anyone uses one; colour + count once used; dark ring + bolder count when yours.
   The tap area is the visible sticker. The count slot is reserved so neighbours never shift. */
.rx2 { display: flex; flex-wrap: wrap; gap: 6px; }
.rx2-btn { display: inline-flex; align-items: center; height: 30px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--ink); -webkit-tap-highlight-color: transparent; }
.rx2-btn:focus { outline: none; }
.rx2-btn:focus-visible .rx2-pill { outline: 2px solid var(--ink); outline-offset: 2px; }
.rx2-pill { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px; border-radius: 15px; font-size: var(--t-13); font-weight: 700; background: #fff; box-shadow: inset 0 0 0 1px var(--rule-2); transition: transform 90ms ease-out, background-color 140ms ease-out, box-shadow 140ms ease-out; }
.rx2-btn:active .rx2-pill { transform: scale(0.94); }
.rx2-pill .stk-e { font-size: 15px; filter: grayscale(1); opacity: 0.45; }
.rx2-pill .stk-t { color: var(--ink-3); }
.rx2-n { min-width: 1ch; font-weight: 600; font-variant-numeric: tabular-nums; }
.rx2-pill.is-used { box-shadow: none; }
.rx2-pill.is-used.stk--lol { background: var(--stk-lol); } .rx2-pill.is-used.stk--wtf { background: var(--stk-wtf); } .rx2-pill.is-used.stk--fire { background: var(--stk-fire); } .rx2-pill.is-used.stk--poop { background: var(--stk-poop); } .rx2-pill.is-used.stk--omg { background: var(--stk-omg); } .rx2-pill.is-used.stk--sus { background: var(--stk-sus); } .rx2-pill.is-used.stk--yawn { background: var(--stk-yawn); } .rx2-pill.is-used.stk--called { background: var(--stk-called); }
.rx2-pill.is-used .stk-e { filter: none; opacity: 1; }
.rx2-pill.is-used .stk-t { color: var(--ink); }
.rx2-btn[aria-pressed="true"] .rx2-pill { box-shadow: inset 0 0 0 2px var(--ink); }
.rx2-btn[aria-pressed="true"] .rx2-n { font-weight: 800; }
.rx2-err { margin-top: var(--s-3); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: var(--t-13); color: #a3241b; }

/* Homepage row stickers (E1 2a): badges are buttons that add or remove yours; the grey 🙂+ opens all eight.
   Tap area is the visible badge (needs a real-phone check). */
.srow-meta { position: relative; }
.srow-stks { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 3px; }
.srow-stk { display: inline-flex; align-items: center; padding: 0; border: 0; background: none; cursor: pointer; color: var(--ink); border-radius: 10px; -webkit-tap-highlight-color: transparent; }
.srow-stk:focus { outline: none; }
.srow-stk:focus-visible > span { outline: 2px solid var(--ink); outline-offset: 2px; }
.srow-stk:active > span { transform: scale(0.92); }
.srow-stk > span { transition: transform 90ms ease-out, box-shadow 140ms ease-out; }
.stk--mine { box-shadow: inset 0 0 0 2px var(--ink); }
.srow-add > span { display: inline-flex; align-items: center; gap: 1px; height: 20px; padding: 0 6px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--rule-2); font-size: var(--t-12); font-weight: 700; color: var(--ink-3); }
.srow-add[aria-expanded="true"] > span { background: var(--tint-2); }
.srow-add-e { font-size: 13px; line-height: 1; filter: grayscale(1); opacity: 0.55; }
.rxpick { position: absolute; left: 0; top: calc(100% + 4px); z-index: 5; display: grid; grid-template-columns: repeat(4, 58px); gap: 2px; width: max-content; max-width: 100%; padding: 4px; background: #fff; border: 1px solid var(--rule-2); border-radius: var(--r); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1); }
@media (min-width: 700px) { .rxpick { grid-template-columns: repeat(8, 58px); } }
.rxpick-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 58px; height: 48px; padding: 0; border: 0; border-radius: var(--r); background: #fff; cursor: pointer; color: var(--ink); }
.rxpick-btn:hover { background: var(--tint-2); }
.rxpick-btn[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink); }
.rxpick-e { font-size: 18px; line-height: 1; }
.rxpick-t { font-size: 10px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; white-space: nowrap; }
.rxpick-nudge { grid-column: 1 / -1; padding: 4px; font-size: var(--t-12); color: var(--ink-2); }

/* Relative age (E5 6A): tap to switch between "2h ago" and the exact date. Screen readers hear both. */
.age-btn { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-decoration: underline dotted; text-decoration-color: var(--rule-2); text-underline-offset: 3px; white-space: nowrap; }
.age-btn:hover { text-decoration-color: var(--ink-3); }

/* Composer (E3 2a): one line until tapped, then grows and shows your public name. Plain textarea; no docked bar. */
.cmp { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 0 10px; align-items: start; margin: var(--s-2) 0 var(--s-4); }
.cmp > .cmt-av { margin-top: 5px; }
.cmp--reply { display: block; margin: var(--s-3) 0 0; padding-left: var(--s-3); border-left: 2px solid var(--ink); }
.cmp-to { margin-bottom: 4px; font-size: var(--t-12); color: var(--ink-3); }
.cmp-to b { color: var(--ink); }
.cmp-to .soon-badge, .report-subject .soon-badge { display: inline-block; margin-left: 6px; vertical-align: 1px; }
textarea.field-input.cmp-field { min-height: 0; resize: none; line-height: 1.45; }
textarea.field-input.cmp-field--one { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cmp-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; margin-top: 6px; }
.cmp-who { font-size: var(--t-12); color: var(--ink-3); text-wrap: pretty; }
.cmp-who b { color: var(--ink); }
.cmp-acts { display: flex; gap: var(--s-3); margin-left: auto; }
.cmp-sign { margin-top: var(--s-3); padding: 10px 12px; background: var(--tint); border: 1px solid var(--rule); border-radius: var(--r); display: flex; flex-direction: column; gap: var(--s-3); font-size: var(--t-13); }
.cmp-sign-acts { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.cmp-sim { font-size: var(--t-12); color: var(--ink-3); }
.cmp-err { margin-top: var(--s-3); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: var(--t-13); color: #a3241b; }
.cmp-status { margin-top: var(--s-3); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: var(--t-13); color: var(--ink-2); }
.cmts-empty { margin: 2px 0 var(--s-3); max-width: 720px; font-size: var(--t-14); color: var(--ink-2); text-wrap: pretty; }

/* Arriving at a comment: a soft highlight that fades once. In Rails this can be .cmt:target. None under reduced motion. */
@keyframes cmtArrive { 0% { background-color: oklch(0.95 0.06 95); } 70% { background-color: oklch(0.95 0.06 95 / 0.5); } 100% { background-color: transparent; } }
.cmt { scroll-margin-top: var(--s-4); }
.cmt.is-arrived, .cmt:target { animation: cmtArrive 2.4s ease-out 0.2s 1 both; }
.cmt-mine { color: var(--ink-3); }

/* The heading's rule is the only line above the comments: no rule on top of the first one. */
.cmts > .cmt:first-child { border-top: 0; padding-top: 4px; }
/* Admin actions sit on the Reply · Report line as solid yellow buttons. */
.cmt-adm { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.cmt-adm form, .cmt-hid form { display: inline-flex; }
.cmt-adm button, .cmt-hid button { padding: 0 6px; border: 0; border-radius: var(--r); background: var(--soon); font: inherit; font-weight: 600; line-height: 18px; color: var(--ink); cursor: pointer; }
.cmt-adm button:hover, .cmt-hid button:hover { text-decoration: underline; }
.cmt-hid { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 6px; font-size: var(--t-12); color: var(--ink-2); }
.srow-stks-set { display: contents; }
.cmt-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 6px; font-size: var(--t-12); color: var(--ink-2); }


/* Shape means job (E5 3B): square box = a page you go to (companies); rounded = something you tap here (stickers, 🙂+);
   no box = information (video labels, "First month"). */
.vt-kind { font-size: var(--t-12); color: var(--ink-3); }
.vt-kind b { color: var(--ink); font-weight: 700; }
.hot-first { font-size: var(--t-12); font-weight: 600; white-space: nowrap; }
.hot-key { margin: 6px 0 0; }

@media (prefers-reduced-motion: reduce) {
  .rx2-pill, .srow-stk > span, .vote-btn { transition: none; }
  .rx2-btn:active .rx2-pill, .srow-stk:active > span, .vote-btn:active { transform: none; }
  .is-settle0, .is-settle1, .is-release0, .is-release1, .cmt.is-arrived, .cmt:target, html { animation: none !important; }
}

.hot-row--moment { grid-template-columns: 18px minmax(0, 1fr); }
.hot-row--moment p { margin: 4px 0; }

/* Arrange page (admin): /admin/front, design A1 (E10, 18 Nov 2026). Its forms and links take the
   classes of the drawn buttons, and add nothing to the layout. */
.arr-page { padding-top: 16px; max-width: 980px; }
.arr-h1 { font-size: var(--t-22); font-weight: 600; line-height: 1.2; }
.arr-sub { margin-top: 4px; font-size: var(--t-13); color: var(--ink-3); }
.arr-sec { margin-top: var(--s-6); }
.arr-sec-h { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 4px; border-bottom: 1px solid var(--rule-2); font-size: var(--t-15); font-weight: 600; }
.arr-sec-h span { font-size: var(--t-12); font-weight: 400; color: var(--ink-3); }
.arr-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.arr-grip { display: grid; place-items: center; width: 28px; height: 32px; border: 0; background: none; color: var(--ink-3); cursor: grab; font-size: 15px; letter-spacing: -3px; }
.arr-t { min-width: 0; }
.arr-t b { display: block; font-size: var(--t-14); font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.arr-t small { display: block; font-size: var(--t-12); color: var(--ink-3); }
.arr-acts { display: inline-flex; gap: 4px; }
.arr-acts form, .arr-hidrow form { display: contents; }
.arr-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 30px; padding: 0 9px; border: 1px solid var(--rule-2); border-radius: var(--r); background: #fff; font: inherit; font-size: var(--t-13); color: var(--ink); text-decoration: none; cursor: pointer; }
.arr-btn:hover { border-color: var(--ink); }
.arr-btn:disabled { color: #8a8a8a; border-color: var(--rule); cursor: default; }
.arr-btn--y { background: var(--soon); border-color: var(--soon); font-weight: 600; }
.arr-btn--y:hover { border-color: var(--ink); }
.arr-note { grid-column: 2 / -1; display: grid; gap: 6px; padding: 8px 10px; border-left: 3px solid var(--soon); background: color-mix(in oklch, var(--soon) 14%, #fff); }
.arr-note label { font-size: var(--t-12); font-weight: 700; }
.arr-note textarea { width: 100%; min-height: 54px; padding: 6px 8px; border: 1px solid var(--rule-2); border-radius: var(--r); font: inherit; font-size: var(--t-14); resize: vertical; background: #fff; }
.arr-note-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: var(--t-12); color: var(--ink-3); }
.arr-note-text { grid-column: 2 / -1; font-size: var(--t-13); color: var(--ink-2); padding-left: 10px; border-left: 3px solid var(--soon); }
.arr-note-text b { color: var(--ink); }
.arr-hidrow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 8px 0 8px 38px; border-bottom: 1px solid var(--rule); font-size: var(--t-13); color: var(--ink-2); }
.arr-none { padding: 8px 0; font-size: var(--t-13); color: var(--ink-3); }
@media (max-width: 699px) {
  .arr-row { grid-template-columns: 24px minmax(0, 1fr); }
  .arr-acts { grid-column: 2; flex-wrap: wrap; }
  .arr-btn { height: 40px; min-width: 44px; }
  .arr-t b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .arr-note, .arr-note-text { grid-column: 1 / -1; }
}
