/*
 * The public site (src/site.ts, src/blog.ts): home, how to, blog, sign in, and
 * the small print. Rebuilt 2026-11-18 to the Stream + Script Reader brand
 * system (Figma r7glQFN9NF2ZTNE98upaTe, page "Stream · Pages"): one family, two
 * products; Stream lives on Ink. Every colour below is one of the system's
 * nineteen semantic tokens; every size is from its type scale and its Space
 * scale (8, 16, 24, 32, 48, 64, 96, 128). Rules, not boxes: a hairline
 * separates, a card is for something you can act on. The one chroma is the red
 * dot (#FF0000) and it is only ever a shape; words in red use text/accent.
 */

/* ---- faces ----
 * Neue Montreal speaks (headlines, body, interface), Neue Montreal Mono states
 * facts (eyebrows, dates, counts, prices, code), Courier Prime is the script and
 * is never restyled. All three are Stream's own files in public/fonts: the two
 * Pangram Pangram faces under Joseph's web licence (2026-11-18), Courier Prime
 * under the OFL. Regular and Medium do the work; Semibold is the strong weight
 * (this cut has no Bold); the mono's Bold is there for code that asks for it. */
@font-face { font-family: 'Neue Montreal'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/PPNeueMontreal-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Neue Montreal'; font-weight: 400; font-style: italic; font-display: swap; src: url('/fonts/PPNeueMontreal-Italic.woff2') format('woff2'); }
@font-face { font-family: 'Neue Montreal'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/PPNeueMontreal-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Neue Montreal'; font-weight: 500; font-style: italic; font-display: swap; src: url('/fonts/PPNeueMontreal-MediumItalic.woff2') format('woff2'); }
@font-face { font-family: 'Neue Montreal'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/PPNeueMontreal-Semibold.woff2') format('woff2'); }
@font-face { font-family: 'Neue Montreal Mono'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/PPNeueMontrealMono-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Neue Montreal Mono'; font-weight: 400; font-style: italic; font-display: swap; src: url('/fonts/PPNeueMontrealMono-RegularItalic.woff2') format('woff2'); }
@font-face { font-family: 'Neue Montreal Mono'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/PPNeueMontrealMono-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Neue Montreal Mono'; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/PPNeueMontrealMono-Bold.woff2') format('woff2'); }
@font-face { font-family: 'Courier Prime'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/courier-prime-400.woff2') format('woff2'); }
@font-face { font-family: 'Courier Prime'; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/courier-prime-700.woff2') format('woff2'); }
/* The admin dashboard keeps its own face (body.admin, below). */
@font-face { font-family: 'DM Sans'; font-weight: 100 1000; font-style: normal; font-display: swap; src: url('/fonts/dm-sans.woff2') format('woff2'); }

/* ---- tokens ----
 * Dark is Stream's default (Script Reader's is light); html[data-theme="light"]
 * flips every token to the Paper set. The names are the Figma variables'.
 * Paper moved closer to white on 2026-11-18 (Joseph): paper/50 #FAF9F7, paper/100
 * #F1EFEB, paper/200 #E4E1DB; surfaces stay white, the hairline does the separating. */
:root {
  color-scheme: dark;
  --bg-canvas: #0A0A0A;
  --bg-surface: #161616;
  --bg-sunken: #222220;
  --bg-inverse: #FAF9F7;
  --text-primary: #FAF9F7;
  --text-secondary: #C4C1B9;
  --text-tertiary: #8A877F;
  --text-inverse: #0A0A0A;
  --text-accent: #FF4D3D;
  --text-disabled: #343431;
  --border-subtle: #222220;
  --border-default: #343431;
  --border-strong: #FAF9F7;
  --accent-dot: #FF0000;
  --accent-focus: #FF0000;
  --action-primary-bg: #FAF9F7;
  --action-primary-fg: #0A0A0A;
  --action-primary-bg-hover: #FFFFFF;
  --action-disabled-bg: #222220;

  --space-xs: 4px; --space-sm: 8px; --space-md: 16px; --space-lg: 24px; --space-xl: 32px; --space-2xl: 48px; --space-3xl: 64px; --space-4xl: 96px; --space-5xl: 128px;
  --radius-sm: 4px; --radius-md: 8px; --radius-full: 999px;
  /* The page is the window, less the gutters; inside it a twelve-column grid with 24 between the columns (2026-11-18, Joseph). Content takes columns, not a measure. */
  --gutter: 56px; --gap: 24px; --bar: 48px; --control: 44px; --control-sm: 32px;

  /* The AI's colour: the editor's rainbow (src/editor/rainbow.ts), orange to blue the short way round. The one chroma beside the red dot, and it means the AI and nothing else. */
  --sweep: linear-gradient(90deg, #ee6c2b 0%, #e8386a 20%, #d33fb0 40%, #a54be0 60%, #7a5cf0 80%, #3e82f5 100%);
  /* Motion (2026-11-18, Joseph): smooth, elevated, never showy. One curve for everything. */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sans: 'Neue Montreal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Neue Montreal Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --script: 'Courier Prime', 'Courier New', Courier, monospace;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg-canvas: #FAF9F7;
  --bg-surface: #FFFFFF;
  --bg-sunken: #F1EFEB;
  --bg-inverse: #0A0A0A;
  --text-primary: #0A0A0A;
  --text-secondary: #5A5852;
  --text-tertiary: #8A877F;
  --text-inverse: #FAF9F7;
  --text-accent: #D40000;
  --text-disabled: #C4C1B9;
  --border-subtle: #E4E1DB;
  --border-default: #C4C1B9;
  --border-strong: #0A0A0A;
  --action-primary-bg: #0A0A0A;
  --action-primary-fg: #FAF9F7;
  --action-primary-bg-hover: #222220;
  --action-disabled-bg: #E4E1DB;
}

/* ---- the page ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 1px); }
body { margin: 0; background: var(--bg-canvas); color: var(--text-primary); font: 400 17px/27px var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
/* A column, so a short page's footer sits at the foot of the window. */
body.home, body.doc { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body.home > main, body.doc > main { flex: 1 0 auto; width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease), text-decoration-thickness .3s var(--ease); }
a:hover { text-decoration-thickness: 2px; }
img, svg { max-width: 100%; }
p { margin: 0 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent-focus); outline-offset: 2px; }

/* The type scale: ten sans sizes, three mono. Headings are Medium; reading is Regular. */
h1, h2, h3 { margin: 0; font-weight: 500; color: var(--text-primary); }
b, strong { font-weight: 600; }
/* The display: Neue Montreal Medium, as big as the window allows — 9vw between 64 and 144 (2026-11-18, Joseph). */
.display, h1.display { font-size: clamp(64px, 9vw, 144px); line-height: 0.95; letter-spacing: -0.03em; }
h1 { font-size: 44px; line-height: 48px; letter-spacing: -0.015em; }
h2 { font-size: 48px; line-height: 52px; letter-spacing: -0.02em; }
h3 { font-size: 24px; line-height: 30px; letter-spacing: -0.005em; }
.lead { font-size: 22px; line-height: 32px; color: var(--text-secondary); }
.small, .fine { font-size: 15px; line-height: 22px; }
.caption, .agree, .said { font-size: 13px; line-height: 18px; }
.fine, .caption { color: var(--text-tertiary); }
/* Facts in mono: the eyebrow is caps with the red full stop before it — the one place the dot sits beside words. */
.eyebrow, .label { margin: 0; font: 500 12px/16px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-tertiary); }
.eyebrow { display: flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-dot); }
.mono { font-family: var(--mono); }
/* Words in the AI's colour: the hero's third line, and "its own colour" in the AI feature's title. */
.sweep { background: var(--sweep); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* A list with the dot for a bullet. */
ul.dots, .words ul, .plan ul, .legal-doc ul, .howto ul, .post .body ul { margin: 0; padding: 0; list-style: none; }
ul.dots li, .words ul li, .plan ul li, .legal-doc ul li, .howto ul li, .post .body ul li { position: relative; padding-left: 18px; }
ul.dots li::before, .words ul li::before, .plan ul li::before, .legal-doc ul li::before, .howto ul li::before, .post .body ul li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-dot); }
hr { height: 1px; margin: 0; border: 0; background: var(--border-subtle); }

/* The grid: twelve columns between the gutters. Every child spans them all until the window is wide enough for columns; the .c… classes then place it. */
main { padding: 0 var(--gutter); }
.container { width: 100%; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.grid > * { grid-column: 1 / -1; min-width: 0; }
@media (min-width: 601px) {
  .c12 { grid-column: 1 / -1; }
  .c1-5 { grid-column: 1 / span 5; }
  .c1-6 { grid-column: 1 / span 6; }
  .c1-7 { grid-column: 1 / span 7; }
  .c1-8 { grid-column: 1 / span 8; }
  .c6-12 { grid-column: 6 / -1; }
  .c7-12 { grid-column: 7 / -1; }
  .c8-12 { grid-column: 8 / -1; }
  .c9-12 { grid-column: 9 / -1; }
  /* A two-column section whose shot comes after its words in the markup but sits to their left: both on the one row, or auto-placement would drop the shot to a second. */
  .grid.flip > *, .reader > * { grid-row: 1; }
  /* The words take five of their half's six columns and sit against the outer gutter, so every seam, shot edge and card edge lines up down the page and a column of air stays between the words and the seam. */
  :is(.block, .mac, .reader) > .words { max-width: calc((100% - 5 * var(--gap)) * 5 / 6 + 4 * var(--gap)); }
  :is(.block.flip, .reader) > .words { justify-self: end; }
}

/* ---- controls ----
 * Buttons are Ink on Paper and Paper on Ink; secondary is a hairline; never red.
 * Medium 44 for page actions, Small 32 for the bar. */
.btn, .start button, .google, a.button.door { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--control); padding: 0 18px; border: 1px solid transparent; border-radius: var(--radius-full); font: 500 15px/20px var(--sans); color: var(--text-primary); background: transparent; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .45s var(--ease), border-color .45s var(--ease), color .45s var(--ease); }
.btn.primary, .start button, a.button.door { color: var(--action-primary-fg); background: var(--action-primary-bg); }
.btn.primary:hover, .start button:hover, a.button.door:hover { background: var(--action-primary-bg-hover); }
.btn.secondary, .google { border-color: var(--border-strong); }
.btn.secondary:hover, .google:hover { background: var(--bg-inverse); color: var(--text-inverse); border-color: var(--bg-inverse); }
.btn.small { height: var(--control-sm); padding: 0 14px; font-size: 13px; line-height: 16px; }
/* The label lift (from Pangram Pangram's own site): on hover the label rises out and a copy rises in under it, inside a clip, so the button never changes size. The copy is made by /site.js; without it the button just swaps colour. */
.lbl-wrap { position: relative; display: inline-block; overflow: hidden; vertical-align: top; }
.lbl { display: block; transition: transform .45s var(--ease), opacity .45s var(--ease); }
.lbl[aria-hidden] { position: absolute; inset: 0; transform: translateY(50%) skewY(4deg); opacity: 0; transition-delay: 40ms; }
:is(.btn, .start button, .google, a.button.door, .top nav a.in):hover .lbl:not([aria-hidden]) { transform: translateY(-50%) skewY(4deg); opacity: 0; }
:is(.btn, .start button, .google, a.button.door, .top nav a.in):hover .lbl[aria-hidden] { transform: none; opacity: 1; }
/* An arrow on a link nudges along its direction. */
.arrow, .reader-link svg { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(2px); }
.reader-link:hover svg { transform: translate(1.5px, -1.5px); }
.btn:disabled, .start button:disabled { color: var(--text-tertiary); background: var(--action-disabled-bg); cursor: default; }
input[type=email], input[type=text], input[type=search] { font: 400 15px/22px var(--sans); }
.start input { width: 100%; min-width: 0; height: var(--control); padding: 0 12px; color: var(--text-primary); background: var(--bg-surface); border: 1px solid var(--border-default); border-radius: var(--radius-sm); }
.start input::placeholder { color: var(--text-tertiary); }
.start input { transition: border-color .15s var(--ease); }
.start input:focus { outline: none; border-color: var(--accent-focus); }
/* The sign-in form: the address and the button on one line, the small print under them. */
.start { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; width: 100%; max-width: 460px; margin: 0; }
.start .said { grid-column: 1 / -1; margin: 0; color: var(--text-primary); }
.start .fine, .door-start .fine { grid-column: 1 / -1; margin: 8px 0 0; }
.door-start p { margin: 0; }
.door-start .agree { display: block; }
.start .agree, .door-start .agree { grid-column: 1 / -1; margin: 8px 0 0; color: var(--text-tertiary); }
.start .agree a, .door-start .agree a, .fine a { color: var(--text-secondary); }
/* A card that goes somewhere inverts under the pointer; its button flips with it. Shots that go nowhere don't react. */
.card-link { transition: background-color .7s var(--ease), color .7s var(--ease), border-color .7s var(--ease); }
.card-link * { transition: color .7s var(--ease), border-color .7s var(--ease), background-color .7s var(--ease); }
/* A card that also reveals on scroll keeps both transitions (the reveal rule is the more specific one). */
html.js .card-link.reveal { transition: background-color .7s var(--ease), color .7s var(--ease), border-color .7s var(--ease), opacity .6s var(--ease), transform .6s var(--ease); }
.card-link:hover { background: var(--bg-inverse); color: var(--text-inverse); border-color: var(--bg-inverse); }
.card-link:hover :is(h2, h3, b, .price, .score, .what, .read, .areas b, .verdicts b, .drafts b) { color: var(--text-inverse); }
.card-link:hover :is(.or, li, .label, .when, .areas li, .caption, h3.label) { color: var(--text-tertiary); }
.card-link:hover .or { border-color: var(--text-tertiary); }
.card-link:hover .btn, .card-link:hover .btn:hover { background: var(--bg-canvas); color: var(--text-primary); border-color: var(--bg-canvas); }
.card-link:hover .badge { background: var(--accent-dot); color: #fff; }
/* A badge: the one red shape carrying one short word. */
.badge { display: inline-block; padding: 2px 8px; border-radius: var(--radius-full); background: var(--accent-dot); color: #fff; font: 500 12px/16px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; vertical-align: 1px; }
.alt { display: grid; gap: 16px; max-width: 460px; margin: 0 0 16px; }
.alt .google { justify-self: start; }
.signin .alt .google { justify-self: stretch; }
.alt .or { display: flex; align-items: center; gap: 16px; font: 500 12px/16px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-tertiary); }
.alt .or::before, .alt .or::after { content: ''; flex: 1; height: 1px; background: var(--border-subtle); }
.door-start { display: block; }
.fine { margin: 16px 0 0; }

/* ---- motion ----
 * Reveal on scroll: a section's words are one group, each shot or card its
 * own; from 12px below and transparent to rest over 600ms, siblings 60ms
 * apart, once, when 15% of it is in view. The hero does the same on load,
 * 80ms apart. The hidden state exists only once the script has run
 * (html.js), so a page without it is simply visible. Nothing scales or blurs. */
/* Lenis (src/client/scroll.client.js) drives the window's own scroll; this is its own stylesheet, lenis.css 1.3.27, plus the one line that hands in-page anchors to it. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent], .lenis [data-lenis-prevent-wheel], .lenis [data-lenis-prevent-touch], .lenis [data-lenis-prevent-vertical], .lenis [data-lenis-prevent-horizontal] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }
.lenis.lenis-autoToggle { transition-property: overflow; transition-duration: 1ms; transition-behavior: allow-discrete; }
html.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--stagger, 0ms); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---- the top bar ----
 * One line, 48 tall, edge to edge of the window — hairline too — with its
 * contents at the page gutters, not inside the column (2026-11-18, Joseph):
 * the monogram on the left, the pages in the middle at UI Small, one small
 * action on the right. On phones the pages fold into a Menu (a <details>, so
 * no script). */
.top { position: sticky; top: 0; z-index: 40; padding: 0 var(--gutter); border-bottom: 1px solid var(--border-subtle); background: var(--bg-canvas); }
.top .bar { display: flex; align-items: center; gap: 24px; height: var(--bar); }
.top .mark { display: inline-flex; align-items: center; flex: none; height: 18px; color: var(--text-primary); text-decoration: none; }
.top .mark svg { display: block; height: 18px; width: auto; }
.top nav { display: flex; align-items: center; gap: 24px; flex: 1; justify-content: center; }
.top nav a { font: 500 13px/16px var(--sans); color: var(--text-secondary); text-decoration: none; white-space: nowrap; }
.top nav a:hover { color: var(--text-primary); }
.top nav a.reader-link { display: inline-flex; align-items: center; gap: 6px; }
.top nav a.reader-link .short { display: none; }
.top nav a.in { margin-left: auto; height: var(--control-sm); padding: 0 14px; border-radius: var(--radius-full); display: inline-flex; align-items: center; color: var(--action-primary-fg); background: var(--action-primary-bg); }
.top nav a.in:hover { background: var(--action-primary-bg-hover); }
.top .menu { display: none; }
/* The account's pages and the admin keep the old wordmark image (src/pages.ts, admin.ts). */
.mark .wm { display: block; height: 15px; width: auto; }
.mark .wm-dark { display: none; }
:root[data-theme="light"] .mark .wm-dark { display: block; }
:root[data-theme="light"] .mark .wm-light { display: none; }

/* ---- the footer ----
 * A quiet sign-off, not a section (2026-11-18): a hairline, the wordmark small,
 * three short columns of links at Caption size, and one Mono Small line under:
 * who makes it, the theme switch, where. */
/* Edge to edge like the bar, its hairline too, the contents at the page gutters (2026-11-18). */
.foot { margin: 96px 0 0; padding: 0 var(--gutter); border-top: 1px solid var(--border-subtle); background: var(--bg-canvas); color: var(--text-secondary); }
.foot .inner { padding: 32px 0; }
.foot .row { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; }
.foot .wordmark { display: block; height: 18px; color: var(--text-primary); }
.foot .wordmark svg { display: block; height: 18px; width: auto; }
.foot .cols { display: flex; gap: 32px; }
.foot .cols div { display: flex; flex-direction: column; gap: 6px; }
.foot .cols .label { margin: 0 0 2px; font: 400 12px/16px var(--mono); letter-spacing: 0; text-transform: none; }
.foot a { font-size: 13px; line-height: 18px; color: var(--text-secondary); text-decoration: none; }
.foot a:hover { color: var(--text-primary); }
.foot .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 24px; margin-top: 24px; font: 400 12px/16px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-tertiary); }
.foot .bottom a { font: inherit; color: inherit; }
.foot .bottom .right { display: flex; align-items: center; gap: 8px; }
/* The theme switch: two mono words, the one in force underlined. */
/* Chips: the theme choices invert under the pointer and when chosen. */
.theme { display: inline-flex; gap: 4px; }
.theme button { padding: 2px 8px; border: 0; border-radius: var(--radius-full); background: none; font: inherit; color: inherit; cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease); }
.theme button:hover, .theme button[aria-pressed="true"] { background: var(--text-primary); color: var(--bg-canvas); }

/* ---- sections of the home page ----
 * Every section is the same shape: eyebrow, title, a paragraph or two in the
 * 640 column, then the shot. Sections are 96 apart, with a hairline between. */
section.block { padding: 128px 0; align-items: center; }
section.block + section.block, .mac, .pricing, .reader, .last { border-top: 1px solid var(--border-subtle); }
.block .eyebrow { margin-bottom: 24px; }
.block h2 { margin-bottom: 24px; }
.block .words p, .block .words li { color: var(--text-secondary); }
.block .words p { margin: 0 0 24px; }
.block .words ul { margin: 0 0 24px; }
.block .words li { margin: 0 0 16px; }
.block .words li b { color: var(--text-primary); }
.block .actions { margin-top: 8px; }

/* the hero: the headline across every column, the lead and the call in the first six, the shot across every column again. */
.hero { padding: 96px 0 64px; row-gap: 0; }
.hero h1 { margin: 24px 0 40px; }
.hero .lead { margin: 0 0 32px; }
.hero .cta .start { max-width: 520px; }
.hero .cta .alt { margin: 24px 0 0; }
.hero .fine { margin: 0; }
.hero .shot-wrap { margin-top: 48px; }

/* A shot's frame stretches to its row — its top and bottom meet the words' — with what it shows centred on the surface; a shot taller than its words is the row, and the words centre against it. */
.fill { align-self: stretch; display: flex; }
/* Equal air on all four sides (32), and inside it content amounted to fill the row — never centred in empty surface. A page grows to the frame; a page with room at its foot is still a page. */
.fill > .shot { flex: 1 1 auto; width: 100%; min-height: 100%; display: flex; flex-direction: column; justify-content: flex-start; }
.fill > .shot > .sheet { flex: 1 1 auto; }
.fill > .shot.two { flex-direction: row; align-items: stretch; }
.fill > .shot.board, .fill > .shot.world, .fill > .shot.import { display: grid; align-content: start; }
.fill > .shot.coverage { justify-content: space-between; }
/* a shot: the product's own type on a surface, as wide as its columns. */
.shot { padding: 32px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--bg-surface); }
.shot.two { display: flex; gap: 24px; align-items: flex-start; }
.shot.two > :first-child { flex: 1 1 0; min-width: 0; }
.shot.two > .side { flex: 0 0 220px; }
/* The script is Courier Prime 14 on 20, as the page writes it; never restyled. */
.sheet.script { padding: 24px 32px; border-radius: var(--radius-sm); background: var(--bg-sunken); font: 400 14px/20px var(--script); color: var(--text-primary); }
/* A page keeps a page's measure however wide its surface is. */
.script p { margin: 0 0 12px; max-width: 62ch; }
.script p:last-child { margin-bottom: 0; }
.script .num { color: var(--text-tertiary); }
.script .slugline { text-transform: uppercase; }
.script .cue { text-transform: uppercase; text-align: center; }
.script .line { max-width: 36ch; margin-left: 0; }
.script .ai, .script .red { color: var(--text-accent); }
/* In the AI feature's own shot the AI's line wears its colour, the sweep, as the hero's third line does. */
.ai-demo .script .ai { background: var(--sweep); -webkit-background-clip: text; background-clip: text; color: transparent; }
.script .status { margin: 24px 0 0; font: 500 12px/16px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-tertiary); }
/* Beside the hero's page: who is here, and what the AI just did. */
.side { display: flex; flex-direction: column; gap: 16px; }
.presence { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 8px 12px 8px 10px; border: 1px solid var(--border-subtle); border-radius: var(--radius-full); font: 500 13px/16px var(--sans); color: var(--text-secondary); }
.presence .faces { display: flex; gap: 4px; }
.faces i { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font: 400 12px/16px var(--mono); font-style: normal; color: var(--text-inverse); background: var(--bg-inverse); }
.ai-note { padding: 12px 14px; border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); font-size: 15px; line-height: 22px; color: var(--text-secondary); }
.ai-note .label { margin-bottom: 6px; color: var(--text-accent); }

/* the board */
.board { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.board .colours { grid-column: 1 / -1; }
.board .colours .legend { flex-direction: row; flex-wrap: wrap; gap: 12px 24px; }
.deck { display: flex; flex-direction: column; gap: 16px; }
.deck .label { margin-bottom: 8px; }
.card { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg-sunken); }
.card i { display: block; margin-bottom: 6px; font: 400 12px/16px var(--script); font-style: normal; text-transform: uppercase; color: var(--text-secondary); }
.card span { font-size: 15px; line-height: 22px; color: var(--text-primary); }
.legend { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; font-size: 15px; line-height: 22px; color: var(--text-secondary); }
.board .colours .label { margin-bottom: 10px; }
.legend li { display: flex; align-items: center; gap: 10px; }
.legend li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--text-disabled); }
.legend li.on::before { background: var(--accent-dot); }

/* the room */
.people { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; list-style: none; }
.people .label { margin-bottom: 4px; }
.people li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 15px; line-height: 22px; }
.people li b { font: 400 12px/16px var(--mono); color: var(--text-tertiary); }
.people + .label { margin-top: 24px; margin-bottom: 8px; }

/* the AI */
.ai-demo { display: flex; flex-direction: column; gap: 16px; }
.chat p { margin: 0; }
.chat .you { padding: 12px 16px; border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); }
.chat .label { display: block; margin-bottom: 4px; }
.chat .them { padding: 0 0 0; font-size: 15px; line-height: 22px; color: var(--text-secondary); }
.chat .them .label { display: block; margin-bottom: 4px; color: var(--text-accent); }

/* the world */
.world { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 24px; }
.tabs { display: flex; gap: 28px; margin: 0 0 24px; padding: 0 0 16px; border-bottom: 1px solid var(--border-subtle); font: 400 15px/22px var(--sans); color: var(--text-tertiary); }
.tabs .on { color: var(--text-primary); font-weight: 500; }
.note .label { margin-bottom: 16px; }
.note p { margin: 0; color: var(--text-primary); }
.drafts { margin: 0; padding: 0; list-style: none; }
.world > div > .label { margin-bottom: 12px; }
.drafts li { margin: 0 0 20px; }
.drafts b { display: block; font-weight: 400; font-size: 15px; line-height: 22px; color: var(--text-primary); }
.drafts span { font: 400 12px/16px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-tertiary); }

/* the vault */
.vault .label { margin-bottom: 8px; }
.vault ul { margin: 0; padding: 0; list-style: none; font: 400 14px/22px var(--mono); color: var(--text-secondary); }
.vault li { padding-left: 16px; margin: 0 0 6px; }
.vault .dir { padding-left: 0; color: var(--text-primary); }
.vault .dir ~ .dir { padding-left: 16px; }
.vault .deep { padding-left: 32px; }

/* the import */
.import { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.import .label { margin-bottom: 8px; }
.import ul { margin: 0; padding: 0; list-style: none; font: 400 14px/22px var(--mono); color: var(--text-secondary); }
.import li { padding-left: 16px; margin: 0 0 6px; }
.import .dir { color: var(--text-primary); }
.import .dir:first-child { padding-left: 0; }
.import .imported li { padding: 0 0 12px; font-family: var(--sans); }
.import .imported b { display: block; font-weight: 500; font-size: 15px; line-height: 22px; color: var(--text-primary); }
.import .imported span { font: 400 12px/16px var(--mono); color: var(--text-tertiary); }
.import .done { margin: 8px 0 0; font: 500 12px/16px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-tertiary); }

/* Coming from the Mac, the deal, Script Reader, fade out. */
/* The Mac note and the cross-promo are two-column sections like the features, and take their turn in the alternation. */
.mac, .pricing, .reader, .last { padding: 128px 0; }
.mac, .reader { align-items: center; }
/* On phones the words come first whichever side they take on desktop. */
.reader .words { order: -1; }
@media (min-width: 601px) { .reader .words { order: 0; } }
.pricing .head, .last .eyebrow { margin-bottom: 0; }
.mac .words p, .reader .words p { color: var(--text-secondary); margin: 0 0 24px; }
.mac .eyebrow, .pricing .eyebrow, .reader .eyebrow { margin-bottom: 24px; }
.mac h2, .reader h2 { margin-bottom: 24px; }
.pricing h2 { margin-bottom: 32px; }
/* The two plans are grid items themselves now: columns 1–6 and 7–12. */
.pricing .plan { margin-top: 8px; }
.plan { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--bg-surface); }
.plan.pro { background: var(--bg-canvas); border-color: var(--border-strong); }
.plan h3 { margin: 0 0 24px; font: 500 12px/16px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-tertiary); }
.plan .price { margin: 0 0 16px; font-size: 44px; line-height: 48px; letter-spacing: -0.015em; font-weight: 500; color: var(--text-primary); }
.plan .price small { font-size: inherit; font-weight: inherit; }
.plan .or { margin: 0 0 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border-subtle); font-size: 15px; line-height: 22px; color: var(--text-secondary); }
.plan ul { margin: 0 0 32px; font-size: 15px; line-height: 22px; color: var(--text-secondary); }
.plan li { margin: 0 0 16px; }
.plan .btn { align-self: flex-start; margin-top: auto; }
.pricing .caption { margin: 24px 0 0; }
/* Script Reader's card is the other product's room: Paper in both themes, its own tokens, its R. in the eyebrow row; the hover inverts relative to Paper. */
.coverage { --bg-canvas: #FAF9F7; --bg-surface: #FFFFFF; --bg-sunken: #F1EFEB; --bg-inverse: #0A0A0A; --text-primary: #0A0A0A; --text-secondary: #5A5852; --text-tertiary: #8A877F; --text-inverse: #FAF9F7; --text-accent: #D40000; --border-subtle: #E4E1DB; --border-default: #C4C1B9; --border-strong: #0A0A0A; --action-primary-bg: #0A0A0A; --action-primary-fg: #FAF9F7; --action-primary-bg-hover: #222220; color: var(--text-primary); background: var(--bg-surface); border-color: var(--border-subtle); }
.coverage .who { display: flex; align-items: center; gap: 12px; margin: 0 0 32px; }
.coverage .rmark { display: inline-flex; height: 24px; color: var(--text-primary); }
.coverage .rmark svg { display: block; height: 24px; width: auto; }
.coverage .report { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.coverage .synopsis { margin: 32px 0; font-size: 15px; line-height: 22px; color: var(--text-secondary); }
.coverage .actions { margin: 0; }
.card-link.coverage:hover .synopsis, .card-link.coverage:hover .who .label { color: var(--text-tertiary); }
.coverage .label { margin-bottom: 16px; }
.coverage .score { margin: 0 0 24px; font-size: 44px; line-height: 48px; letter-spacing: -0.015em; font-weight: 500; }
.coverage .score b { font-weight: inherit; }
.coverage .verdicts { display: flex; gap: 24px; }
.coverage .verdicts .label { margin-bottom: 4px; }
.coverage .verdicts b { font-weight: 500; }
.coverage .areas { margin: 0; padding: 0; list-style: none; font-size: 15px; line-height: 22px; color: var(--text-secondary); }
.coverage .areas li { display: flex; justify-content: space-between; margin: 0 0 8px; }
.coverage .areas b { font: 400 14px/22px var(--mono); color: var(--text-primary); }
.last .eyebrow { margin-bottom: 24px; }
.last h2 { margin: 0 0 40px; }

/* ---- a document: how to, the small print, the blog, sign in ----
 * Text in columns 1–8 from the gutter; the contents box in 9–12, a sticky list
 * beside the text on desktop and above it on phones; the sign-in form in 1–5. */
.doc main > * { margin-top: 96px; }
.legal-doc, .howto, .blog, .post, .signin { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
:is(.legal-doc, .howto, .blog, .post, .signin) > * { grid-column: 1 / -1; min-width: 0; }
@media (min-width: 601px) {
  :is(.legal-doc, .howto, .blog, .post) > * { grid-column: 1 / span 8; }
  :is(.legal-doc, .howto) > .toc { grid-column: 9 / -1; grid-row: 1 / span 2; position: sticky; top: calc(var(--bar) + 24px); margin: 0; }
  .signin > * { grid-column: 1 / span 5; }
  .signin.clerk.wide > * { grid-column: 1 / span 8; }
}
.legal-doc .eyebrow, .howto .eyebrow, .blog .eyebrow, .post .eyebrow { margin-bottom: 24px; }
.legal-doc h1, .howto h1, .blog h1, .post h1 { margin: 0 0 24px; }
.legal-doc .lead, .howto .lead, .blog .lead, .post .lead { margin: 0 0 32px; }
.legal-doc p, .legal-doc li, .howto p, .howto li { color: var(--text-secondary); }
.legal-doc p, .howto p { margin: 0 0 16px; }
.legal-doc ul, .legal-doc ol, .howto ul { margin: 0 0 16px; }
.legal-doc li, .howto li { margin: 0 0 8px; }
.legal-doc ol { padding-left: 24px; }
.legal-doc ol li::marker { font: 400 14px/22px var(--mono); color: var(--text-tertiary); }
.legal-doc a, .howto a { color: var(--text-primary); overflow-wrap: anywhere; }
.legal-doc b, .legal-doc strong, .howto b { color: var(--text-primary); }
.legal-doc blockquote, .legal-doc .agent { margin: 16px 0; padding: 16px 24px; border-left: 1px solid var(--border-default); }
/* The contents: a box (it is something you act on), the sections numbered in mono. */
.toc { margin: 0 0 32px; padding: 24px; border: 1px solid var(--border-default); border-radius: var(--radius-md); }
.toc .label { margin-bottom: 12px; }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; display: flex; gap: 12px; align-items: baseline; margin: 0 0 12px; font-size: 15px; line-height: 22px; }
.toc li:last-child { margin-bottom: 0; }
.toc li::before { content: counter(toc, decimal-leading-zero); flex: none; font: 400 12px/16px var(--mono); color: var(--text-tertiary); }
.toc a { color: var(--text-primary); text-decoration: none; }
.toc a:hover { text-decoration: underline; }
/* The small print's sections: a hairline, the number in mono, the heading at H3 — the words are the lawyer's, only the setting is ours. */
.legal-doc { counter-reset: sec; }
.legal-doc h2 { counter-increment: sec; display: flex; gap: 16px; align-items: baseline; margin: 32px 0 16px; padding-top: 32px; border-top: 1px solid var(--border-subtle); font-size: 24px; line-height: 30px; letter-spacing: -0.005em; scroll-margin-top: 96px; }
.legal-doc h2::before { content: counter(sec, decimal-leading-zero); flex: none; font: 400 14px/22px var(--mono); color: var(--text-tertiary); }
.legal-doc h3 { margin: 24px 0 8px; font-size: 17px; line-height: 27px; letter-spacing: 0; }
.legal-doc .updated { font: 400 12px/16px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-tertiary); }
.legal-doc .eyebrow .updated { display: inline; }
/* The privacy policy's short version: a sunken block before the full policy. */
.legal-doc .short { margin: 0 0 32px; padding: 24px; border-radius: var(--radius-md); background: var(--bg-surface); }
.legal-doc .short h2 { counter-increment: none; margin: 0 0 16px; padding: 0; border: 0; font-size: 12px; line-height: 16px; font-family: var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-tertiary); }
.legal-doc .short h2::before { content: none; }
.legal-doc .short p:last-child { margin: 0; }
/* How to: the sections numbered as eyebrows, the titles at H2; keys in mono. */
.howto section { padding: 32px 0 16px; border-top: 1px solid var(--border-subtle); scroll-margin-top: 96px; }
.howto section .eyebrow { margin-bottom: 16px; }
.howto section h2 { margin: 0 0 24px; }
.howto kbd { display: inline-block; padding: 0 6px; border: 1px solid var(--border-default); border-radius: var(--radius-sm); font: 400 12px/20px var(--mono); color: var(--text-primary); white-space: nowrap; }
.legal-doc code, .howto code, .post .body code { font: 400 0.85em/1.4 var(--mono); color: var(--text-primary); }

/* the blog (src/blog.ts) */
.blog .lead { margin-bottom: 48px; }
.posts { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border-subtle); }
.posts li { position: relative; padding: 32px 24px; margin: 0 -24px; border-radius: var(--radius-md); }
.posts li::after { content: ''; position: absolute; left: 24px; right: 24px; bottom: 0; height: 1px; background: var(--border-subtle); }
.posts .when .badge { margin-left: 8px; }
.posts .when, .post .when { margin: 0 0 12px; font: 500 12px/16px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-tertiary); }
.posts .when { display: block; }
.posts h2 { margin: 0 0 8px; }
.posts h2 a { text-decoration: none; }
.posts h2 a:hover { text-decoration: underline; }
.posts .what { margin: 0 0 16px; color: var(--text-secondary); }
.posts .read { font: 500 15px/20px var(--sans); color: var(--text-primary); }
.posts .draft { color: var(--text-accent); }
.blog .none { color: var(--text-secondary); }
.post .when { display: flex; align-items: center; gap: 8px; }
.post .when::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-dot); }
.post .when a { text-decoration: none; }
.post .by { margin: -8px 0 48px; font-size: 15px; line-height: 22px; color: var(--text-tertiary); }
.post .body { color: var(--text-primary); }
.post .body p { margin: 0 0 24px; }
.post .body h2 { margin: 48px 0 16px; }
.post .body h3 { margin: 32px 0 16px; }
.post .body ul, .post .body ol { margin: 0 0 24px; }
.post .body ol { padding-left: 24px; }
.post .body li { margin: 0 0 8px; }
.post .body blockquote { margin: 0 0 24px; padding: 0 0 0 24px; border-left: 1px solid var(--border-default); color: var(--text-secondary); }
.post .body img { display: block; max-width: 100%; height: auto; margin: 32px 0; border-radius: var(--radius-md); }
.post .body hr { margin: 48px 0; }
.post .more { margin: 48px 0 0; font: 500 15px/20px var(--sans); }
.post .more a { color: var(--text-secondary); text-decoration: none; }
.post .more a:hover { color: var(--text-primary); }
.draft-note { margin: 0 0 32px; padding: 12px 16px; border: 1px solid var(--border-default); border-radius: var(--radius-sm); font-size: 15px; line-height: 22px; color: var(--text-secondary); }

/* sign in: a 400 column, the monogram above the title; every control full width. */
.signin { margin: 128px 0 0; }
.signin .mark { display: block; height: 48px; margin-bottom: 32px; color: var(--text-primary); }
.signin .mark svg { display: block; height: 48px; width: auto; }
.signin h1 { margin: 0 0 16px; font-size: 32px; line-height: 38px; letter-spacing: -0.01em; }
.signin .lead { margin: 0 0 32px; font-size: 17px; line-height: 27px; }
.signin .start { grid-template-columns: 1fr; }
.signin .start label:not(.sr) { font: 500 13px/16px var(--sans); color: var(--text-secondary); }
.signin .start button { width: 100%; }
.signin .alt { margin: 16px 0 0; }
.signin .google { width: 100%; }
.signin .fine { margin-top: 32px; }
.signin.clerk #clerk-box { min-height: 320px; margin: 0 0 16px; }
.signin.clerk .agree { color: var(--text-tertiary); }
.signin .said { margin: 8px 0 0; }
.signin p + p { margin-top: 0; }

/* ---- phones and narrow windows ---- */
@media (max-width: 1100px) {
  /* A shot with a side column stacks once the columns are narrow (the stretched frame's row rule included), and the lines that filled the wide frame step aside so the stack doesn't tower over its words. */
  .shot.two, .fill > .shot.two { flex-direction: column; }
  .shot .more { display: none; }
  .board { grid-template-columns: 1fr 1fr; }
  .shot.two > .side { flex-basis: auto; width: 100%; }
  .world, .import { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root { --gutter: 24px; }
}
@media (max-width: 600px) {
  /* Display drops to H1; the bar folds; controls go full width; the plans stack. */
  /* The display stays at its floor, 64, and the hero's line breaks give way to the column's own (the markup keeps a space before each break). */
  .hero h1 br { display: none; }
  h1 { font-size: 32px; line-height: 38px; letter-spacing: -0.01em; }
  h2 { font-size: 32px; line-height: 38px; letter-spacing: -0.01em; }
  .lead { font-size: 17px; line-height: 27px; }
  .top .bar { gap: 16px; }
  .top nav { display: none; }
  .top .menu { display: block; margin-left: auto; }
  .top .menu summary { list-style: none; cursor: pointer; font: 500 12px/16px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-secondary); padding: 8px 0; }
  .top .menu summary::-webkit-details-marker { display: none; }
  .top .menu[open] summary { color: var(--text-primary); }
  .top .menu nav { position: absolute; left: 0; right: 0; top: var(--bar); display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 16px; border-bottom: 1px solid var(--border-subtle); background: var(--bg-canvas); }
  .top .menu nav a { padding: 12px 0; font-size: 17px; line-height: 27px; }
  .top .menu nav a.in { margin: 16px 0 0; height: var(--control); justify-content: center; font-size: 15px; line-height: 20px; }
  .top nav a.reader-link .long { display: none; }
  .top nav a.reader-link .short { display: inline; }
  section.block, .hero, .mac, .pricing, .reader, .last { padding: 80px 0; }
  .hero { padding-top: 48px; }
  .hero .cta .start { flex-basis: 100%; }
  .start { grid-template-columns: 1fr; max-width: none; }
  .start button, .btn:not(.small), .google, a.button.door { width: 100%; }
  .alt .google { justify-self: stretch; }
  .shot { padding: 16px; }
  .board { grid-template-columns: 1fr; }
  .coverage .report { grid-template-columns: 1fr; }
  .shot.two { flex-direction: column; gap: 16px; }
  .shot.two > .side { flex-basis: auto; width: 100%; }
  .sheet.script { padding: 16px; font-size: 12px; line-height: 17px; }
  .script .line { width: 80%; }
  .board { grid-template-columns: 1fr; gap: 16px; }
  .world, .import { grid-template-columns: 1fr; gap: 24px; }
  .pricing .plan + .plan { margin-top: 16px; }
  .plan { padding: 24px; }
  .plan .btn { align-self: stretch; }
  .doc main > * { margin-top: 48px; }
  .signin { margin-top: 48px; }
  .foot { margin-top: 64px; }
  .foot .row { flex-direction: column; gap: 24px; }
  .foot .cols { flex-wrap: wrap; gap: 16px 32px; }
  .foot .bottom { flex-direction: column; gap: 8px; }
  .toc { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .reveal { opacity: 1; transform: none; }
  .lbl[aria-hidden] { display: none; }
  :is(.btn, .start button, .google, a.button.door, .top nav a.in):hover .lbl { transform: none; opacity: 1; }
}

/* ---- the admin dashboard ----
   2026-11-04 (Joseph: "copy the design style from the Admin page on reader.upperstate.tv"):
   Script Reader's hand — its cool neutrals and indigo, flat panels on hairlines, no
   shadows, small uppercase labels, solid bars. Its own tokens, so the rest of the site
   keeps Stream's; its faces stay (DM Sans, no serif). Untouched by the 2026-11-18 rebuild. */
body.admin {
  --bg: #fbfbfc; --bg-2: #f3f4f6; --paper: #ffffff; --ink: #0f1011; --text: #0f1011; --dim: #6b6f76;
  --rule: rgba(15, 16, 17, 0.09); --hover: rgba(15, 16, 17, 0.05); --accent: #5e6ad2;
  --accent-2: color-mix(in srgb, var(--accent) 45%, #c86bfa);
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --code: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  color-scheme: light dark;
  background: var(--bg); color: var(--text);
  font: 400 14px/1.55 var(--sans);
}
@media (prefers-color-scheme: dark) {
  body.admin { --bg: #08090a; --bg-2: #0f1011; --paper: rgba(255, 255, 255, 0.03); --ink: #f7f8f8; --text: #f7f8f8; --dim: #8a8f98; --rule: rgba(255, 255, 255, 0.08); --hover: rgba(255, 255, 255, 0.05); --accent: #828fff; }
}
.admin a { color: inherit; }
.admin .mark .wm-dark { display: block; }
.admin .mark .wm-light { display: none; }
@media (prefers-color-scheme: dark) { .admin .mark .wm-dark { display: none; } .admin .mark .wm-light { display: block; } }
.adm-top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 20px; border-bottom: 1px solid var(--rule); background: color-mix(in srgb, var(--bg) 78%, transparent); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); }
.adm-top .mark { display: flex; }
.adm-top > span { font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.adm-top nav { margin-left: auto; display: flex; gap: 2px; font-size: 13px; }
.adm-top nav a { padding: 5px 11px; border-radius: 999px; text-decoration: none; color: var(--dim); }
.adm-top nav a:hover { color: var(--ink); background: var(--hover); }
.adm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; align-content: start; max-width: 1248px; margin: 0 auto; padding: 40px 20px 64px; }
.adm > * { grid-column: 1 / -1; }
.adm > .panel:not(.wide) { grid-column: auto; }
.adm-tabs { display: flex; flex-wrap: wrap; gap: 2px; width: max-content; max-width: 100%; margin: 0 0 22px; padding: 3px; border: 1px solid var(--rule); border-radius: 999px; font-size: 13px; }
.adm-tabs a, .adm .find .sorts a { padding: 5px 13px; border-radius: 999px; text-decoration: none; color: var(--dim); }
.adm-tabs a:hover, .adm .find .sorts a:hover { color: var(--ink); background: var(--hover); }
.adm-tabs a.on, .adm .find .sorts a.on { color: var(--ink); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--rule); }
.adm .stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 12px; background: var(--bg-2); }
.stat span { font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.stat b { font-size: 24px; font-weight: 600; line-height: 1.3; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat small { color: var(--dim); font-size: 12px; line-height: 1.4; }
.panel { min-width: 0; margin-bottom: 16px; padding: 18px 19px 19px; border: 1px solid var(--rule); border-radius: 12px; }
.panel h2 { margin: 0 0 14px; font: 500 11px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.panel .mini { display: grid; grid-template-columns: repeat(auto-fill, minmax(152px, 1fr)); gap: 10px; margin-bottom: 14px; }
.panel .mini:last-child { margin-bottom: 0; }
.panel .mini .stat { background: transparent; }
.panel .mini .stat b { font-size: 19px; }
.chart-box { position: relative; }
.mini + .chart-box { margin-top: 30px; }
.chart { display: block; width: 100%; height: 140px; }
.chart .bar-a { fill: var(--accent); }
.chart .bar-b { fill: var(--accent-2); opacity: .75; }
.chart-max { position: absolute; right: 0; top: -21px; font-size: 11px; color: var(--dim); font-variant-numeric: tabular-nums; }
.chart-axis { display: flex; justify-content: space-between; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--rule); font-size: 11px; color: var(--dim); font-variant-numeric: tabular-nums; }
.key { display: flex; gap: 16px; margin: -6px 0 22px; color: var(--dim); font-size: 12px; }
.key i { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 2px; vertical-align: -1px; background: var(--accent); }
.key i.b { background: var(--accent-2); opacity: .75; }
.ranked { margin: 0 0 10px; padding: 0; list-style: none; }
.ranked li { position: relative; display: flex; justify-content: space-between; gap: 16px; padding: 5px 10px; font-size: 13px; }
.ranked li i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); background: var(--accent); opacity: .1; border-radius: 6px; }
.ranked .lbl { position: relative; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.ranked .val { position: relative; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ranked .val small { color: var(--dim); }
.ranked code, .hint code { font: 12px var(--code); }
.none, .hint { color: var(--dim); font-size: 12.5px; }
.adm > .hint { margin: 6px 0 32px; max-width: 760px; }
.writers { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.writers th { text-align: left; font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); padding: 8px 10px 8px 0; border-bottom: 1px solid var(--rule); }
.writers td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--rule); vertical-align: top; white-space: nowrap; }
.writers td:first-child { white-space: normal; overflow-wrap: anywhere; color: var(--ink); }
.writers td b { font-weight: 600; }
@media (max-width: 1000px) { .adm .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .adm { grid-template-columns: 1fr; padding: 24px 16px 40px; }
  .adm > .panel:not(.wide) { grid-column: 1 / -1; }
  .adm .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adm-top { padding: 0 16px; }
  .writers th:nth-child(2), .writers td:nth-child(2), .writers th:nth-child(5), .writers td:nth-child(5) { display: none; }
}

/* The dashboard's reports and errors (2026-10-28). */
.admin .support section + section { margin-top: 28px; }
.reports { margin: 0; padding: 0; list-style: none; }
.reports li { padding: 12px 0; border-top: 1px solid var(--rule); }
.reports .rh { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.reports .rh small { color: var(--dim); font-size: 12px; }
.reports p { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.reports .shots a { margin-right: 12px; }
.admin .support code { font: 12px/1.4 var(--code); white-space: normal; overflow-wrap: anywhere; }

/* Admin › Users (2026-10-30): every account, one row each — in Script Reader's hand since 2026-11-04. */
.adm h2 .more { float: right; font: 500 12px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--dim); text-decoration: none; }
.adm h2 .more:hover { color: var(--ink); }
.adm .find { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.adm .find input[type=search] { flex: 1 1 224px; min-width: 0; padding: 8px 11px; border-radius: 8px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); font: inherit; outline: none; -webkit-appearance: none; }
.adm .find input[type=search]:focus { border-color: var(--accent); }
.adm .find button { padding: 8px 14px; border-radius: 8px; border: 1px solid var(--rule); background: transparent; color: var(--ink); font: inherit; cursor: pointer; }
.adm .find button:hover { background: var(--hover); }
.adm .find .sorts { margin-left: auto; display: flex; gap: 2px; padding: 3px; border: 1px solid var(--rule); border-radius: 999px; font-size: 13px; }
.adm .scroll { overflow-x: auto; }
.users td small { display: block; color: var(--dim); font-size: 12px; }
.users td small.warn { color: #d2492a; display: inline; }
.users td .dim { color: var(--dim); }
.users td:first-child { min-width: 192px; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .writers.users th:nth-child(2), .writers.users td:nth-child(2), .writers.users th:nth-child(5), .writers.users td:nth-child(5) { display: table-cell; }
  .adm .find .sorts { margin-left: 0; }
}
