/* postmoderno marketing site
   direction: black ground, ultramarine glow, hairline-edged floating panels;
   the light theme (Halo) keeps the glow on a white ground.
   type: IBM Plex Serif (headlines) + IBM Plex Sans (body) + IBM Plex Mono
   (labels/times/buttons) — the product lives in terminals and agents, so
   mono is its native habitat; the serif is the voice for the people it
   serves. One superfamily, so the three match by design. */

@font-face {
  font-family: "Plex Mono";
  src: url("../fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("../fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500; font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("../fonts/plex-mono-600.woff2") format("woff2");
  font-weight: 600; font-display: swap;
}
@font-face {
  font-family: "Plex Sans";
  src: url("../fonts/plex-sans-var.woff2") format("woff2");
  font-weight: 100 700; font-display: swap;
}
@font-face {
  font-family: "Plex Serif";
  src: url("../fonts/plex-serif-500.woff2") format("woff2");
  font-weight: 500; font-display: swap;
}
/* Inter 4 with its optical-size axis, the file Bluesky ships, for the
   Bluesky and Mastodon cards: their lines break where the platforms' do only
   in it. Declared under both names the cards ask for, so an older Inter
   installed on the reader's computer never stands in. Split by script
   (scripts/subset-inter.py writes these rules): a card in English fetches the
   103 KB Latin file, not all 344 KB. Licence: inter-OFL.txt. */
@font-face {
  font-family: InterVariable;
  src: url("../fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0000, U+0020-007E, U+00A0-00AC, U+00AE-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+2000-200B, U+2010-2027, U+202F-2055, U+2057, U+205F, U+20AC, U+2122, U+2190-2193, U+2212, U+FEFF;
}
@font-face {
  font-family: InterVariable;
  src: url("../fonts/inter-var-letters.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-0130, U+0132-0148, U+014A-0151, U+0154-01C3, U+01C5-0254, U+0256-027B, U+027E-0284, U+0286-0290, U+0292-02A4, U+02A6-02BA, U+02BD-02C5, U+02C7-02D9, U+02DB, U+02DD-0303, U+0306-0307, U+0309-030A, U+030C, U+030F, U+0313, U+0315, U+031B, U+0323, U+0326-0328, U+032C, U+0337-0338, U+0342-0343, U+0346-036F, U+0374-0376, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03D7, U+03DC-03DD, U+03F0-03F6, U+03F9-03FA, U+03FC-0479, U+0480-049D, U+04A0-04FF, U+052F, U+1D00, U+1D0D, U+1D1B, U+1D43, U+1D47-1D49, U+1D4D, U+1D4F-1D50, U+1D52, U+1D56-1D58, U+1D5B, U+1D62-1D65, U+1D9C, U+1DA0, U+1DBB, U+1DBF, U+1E00-1E9B, U+1E9D-1F15, U+1F18-1F1D, U+1F20-1F45, U+1F48-1F4D, U+1F50-1F57, U+1F59, U+1F5B, U+1F5D, U+1F5F-1F7D, U+1F80-1FB4, U+1FB6-1FC4, U+1FC6-1FD3, U+1FD6-1FDB, U+1FDD-1FEF, U+1FF2-1FF4, U+1FF6-1FFE, U+20A0-20AB, U+20AD-20AF, U+20B1-20B5, U+20B8-20BA, U+20BC-20C0, U+2DFF, U+A69F, U+A7FF;
}
@font-face {
  font-family: InterVariable;
  src: url("../fonts/inter-var-symbols.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0E3F, U+1DC0-1DF5, U+1DFC-1DFF, U+2070-2071, U+2074-208E, U+2090-209C, U+20DB-20DE, U+20E8, U+20F0, U+2100-2101, U+2103, U+2105-2106, U+2109, U+2113, U+2116-2117, U+211E-2121, U+2126, U+212A-212B, U+212E, U+2132, U+213B, U+214D, U+2150-217F, U+2183-2186, U+2189, U+2194-2199, U+21A9-21AA, U+21B0-21B1, U+21B3-21B5, U+21BA-21BB, U+21D0, U+21D2, U+21D4, U+21DE-21DF, U+21E4-21E5, U+21E7, U+21EA, U+2202, U+2205-2206, U+220F, U+2211, U+221A, U+221E, U+222B, U+2236, U+2248, U+2260, U+2264-2265, U+2295-2298, U+2303-2305, U+2318, U+2325-2327, U+232B, U+2380, U+2387, U+238B, U+23CE-23CF, U+2423, U+2460-2468, U+24B6-24CF, U+24EA, U+25A0-25A2, U+25AA, U+25B2-25B3, U+25B6-25B7, U+25BA-25BD, U+25C0-25C1, U+25C4-25C7, U+25CA-25CB, U+25CF, U+25E6, U+25EF, U+2600, U+2605-2606, U+263C, U+2661, U+2665, U+266A-266B, U+26A0, U+2713, U+2717, U+2756, U+2764, U+2780-2788, U+27EF, U+27F5-27FA, U+2913, U+2A38, U+2B06, U+2B12-2B13, U+2B1C, U+2B24, U+2C7C, U+2C7F, U+2E18, U+A92E, U+E000, U+E002-E05E, U+E06A-E0BD, U+E0C8-E0CC, U+E0DC-E0E6, U+E0F3-E0F5, U+E106, U+E109-E10A, U+E10C-E10F, U+E111-E113, U+E117-E118, U+E121-E122, U+E124, U+E12A-E15E, U+E163, U+E1C3, U+E1D2-E1DF, U+E1E1-E2DC, U+EE01-EE07, U+EE09-EE0A, U+EE0C-EE12, U+EE14, U+EE17, U+EE1D-EE45, U+EE47-EE84, U+EE87-EED6, U+EED8-EEE1, U+F6C3, U+1F12F-1F149, U+1F16A-1F16B, U+1F850, U+1F852;
}
@font-face {
  font-family: Inter;
  src: url("../fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0000, U+0020-007E, U+00A0-00AC, U+00AE-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+2000-200B, U+2010-2027, U+202F-2055, U+2057, U+205F, U+20AC, U+2122, U+2190-2193, U+2212, U+FEFF;
}
@font-face {
  font-family: Inter;
  src: url("../fonts/inter-var-letters.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-0130, U+0132-0148, U+014A-0151, U+0154-01C3, U+01C5-0254, U+0256-027B, U+027E-0284, U+0286-0290, U+0292-02A4, U+02A6-02BA, U+02BD-02C5, U+02C7-02D9, U+02DB, U+02DD-0303, U+0306-0307, U+0309-030A, U+030C, U+030F, U+0313, U+0315, U+031B, U+0323, U+0326-0328, U+032C, U+0337-0338, U+0342-0343, U+0346-036F, U+0374-0376, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03D7, U+03DC-03DD, U+03F0-03F6, U+03F9-03FA, U+03FC-0479, U+0480-049D, U+04A0-04FF, U+052F, U+1D00, U+1D0D, U+1D1B, U+1D43, U+1D47-1D49, U+1D4D, U+1D4F-1D50, U+1D52, U+1D56-1D58, U+1D5B, U+1D62-1D65, U+1D9C, U+1DA0, U+1DBB, U+1DBF, U+1E00-1E9B, U+1E9D-1F15, U+1F18-1F1D, U+1F20-1F45, U+1F48-1F4D, U+1F50-1F57, U+1F59, U+1F5B, U+1F5D, U+1F5F-1F7D, U+1F80-1FB4, U+1FB6-1FC4, U+1FC6-1FD3, U+1FD6-1FDB, U+1FDD-1FEF, U+1FF2-1FF4, U+1FF6-1FFE, U+20A0-20AB, U+20AD-20AF, U+20B1-20B5, U+20B8-20BA, U+20BC-20C0, U+2DFF, U+A69F, U+A7FF;
}
@font-face {
  font-family: Inter;
  src: url("../fonts/inter-var-symbols.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0E3F, U+1DC0-1DF5, U+1DFC-1DFF, U+2070-2071, U+2074-208E, U+2090-209C, U+20DB-20DE, U+20E8, U+20F0, U+2100-2101, U+2103, U+2105-2106, U+2109, U+2113, U+2116-2117, U+211E-2121, U+2126, U+212A-212B, U+212E, U+2132, U+213B, U+214D, U+2150-217F, U+2183-2186, U+2189, U+2194-2199, U+21A9-21AA, U+21B0-21B1, U+21B3-21B5, U+21BA-21BB, U+21D0, U+21D2, U+21D4, U+21DE-21DF, U+21E4-21E5, U+21E7, U+21EA, U+2202, U+2205-2206, U+220F, U+2211, U+221A, U+221E, U+222B, U+2236, U+2248, U+2260, U+2264-2265, U+2295-2298, U+2303-2305, U+2318, U+2325-2327, U+232B, U+2380, U+2387, U+238B, U+23CE-23CF, U+2423, U+2460-2468, U+24B6-24CF, U+24EA, U+25A0-25A2, U+25AA, U+25B2-25B3, U+25B6-25B7, U+25BA-25BD, U+25C0-25C1, U+25C4-25C7, U+25CA-25CB, U+25CF, U+25E6, U+25EF, U+2600, U+2605-2606, U+263C, U+2661, U+2665, U+266A-266B, U+26A0, U+2713, U+2717, U+2756, U+2764, U+2780-2788, U+27EF, U+27F5-27FA, U+2913, U+2A38, U+2B06, U+2B12-2B13, U+2B1C, U+2B24, U+2C7C, U+2C7F, U+2E18, U+A92E, U+E000, U+E002-E05E, U+E06A-E0BD, U+E0C8-E0CC, U+E0DC-E0E6, U+E0F3-E0F5, U+E106, U+E109-E10A, U+E10C-E10F, U+E111-E113, U+E117-E118, U+E121-E122, U+E124, U+E12A-E15E, U+E163, U+E1C3, U+E1D2-E1DF, U+E1E1-E2DC, U+EE01-EE07, U+EE09-EE0A, U+EE0C-EE12, U+EE14, U+EE17, U+EE1D-EE45, U+EE47-EE84, U+EE87-EED6, U+EED8-EEE1, U+F6C3, U+1F12F-1F149, U+1F16A-1F16B, U+1F850, U+1F852;
}

:root {
  --bg: #030509;
  --ink: #e7ecf5;
  --dim: #8b96a8;
  --faint: #7a8497;
  --hairline: rgba(var(--tint-rgb), 0.14);
  --blue: #1c5cff;          /* unslop-ignore: chosen accent, ultramarine */
  --blue-hi: #7fa8ff;
  --blue-dim: rgba(28, 92, 255, 0.35);
  --ok: #4cd7a4;
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --sans: "Plex Sans", -apple-system, "Segoe UI", sans-serif;
  --serif: "Plex Serif", Georgia, serif;

  /* Type scale. Ten steps, and every rule in this file picks one of them — the
     panel alone had seventeen sizes, arrived at one .74rem at a time, and its
     whole interactive layer had drifted under 12px. Pixels, not rem: these are
     interface sizes and must not drift with a page's own font-size, which the
     panel and the story both raise.

     The exception is the display heading a single page is built around — the
     hero, the login h1, the story's act headings. Those are compositions with
     one viewport each and keep their own clamp; everything that repeats picks
     a step. */
  --t-display: clamp(2.4rem, 5.4vw, 4.2rem);
  --t-h2: clamp(1.7rem, 2.9vw, 2.4rem);
  --t-body: 17px;   /* the thing being read: a post, a paragraph, a field */
  --t-ui: 14px;     /* anything you click, and the data in a row */
  --t-meta: 13px;   /* what qualifies the thing above it */
  --t-label: 12px;  /* a field's label, a badge, a small button, a row's second line */
  --t-micro: 11px;  /* labels, badges, counters — and the story's post cards,
                       the one place it carries prose */
  --t-section: 26px; /* a blog post's section titles */
  --t-lede: 20px;    /* a blog post's summary */
  --t-cell: 15px;    /* a blog post's tables, read rather than scanned */

  /* What every control on the site is built from: neutral greys behind 1px
     edges, 32px tall and 28px small, 6px corners, and the blue kept for the
     main action, what is picked and the focus ring. A touch screen gets
     taller controls, under the light theme. */
  --ctl: 32px;
  --ctl-sm: 28px;
  --ctl-lg: 40px;    /* a page's own call to action, the sign-in card's fields */
  --radius-sm: 4px;  /* badges, menu items */
  --radius: 6px;     /* buttons, fields */
  --radius-lg: 8px;  /* cards, lists, menus */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  /* A spring: overshoots a little, settles. */
  --spring: linear(0, 0.009, 0.035 2.1%, 0.141 4.4%, 0.723 15.5%, 0.938 20.7%, 1.017 24.8%, 1.051 28.9%, 1.06 33.1%, 1.052 37.4%, 1.032 42.9%, 1.006 51.6%, 0.995 61.3%, 1);
  --text-2: #b6c0d2;
  --danger: #ff9b93;
  --danger-tint: rgba(var(--danger-rgb), .14);  /* a danger badge, a danger control hovered */
  --danger-wash: rgba(var(--danger-rgb), .08);  /* behind a confirmation or a refusal */
  --image-edge: rgba(255, 255, 255, .1);        /* an image's rim, on any ground */
  --destructive: #d2463c;                       /* the button that deletes */
  --destructive-hover: #df5248;

  /* Theme. Everything below has a light value in the block that follows.
     The -rgb triples are for rgba(var(--x-rgb), alpha): one hue at the many
     strengths the hairlines, washes and glows use. */
  color-scheme: dark;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .14);
  --surface: #111317;           /* a card, a list */
  --surface-hi: #262931;        /* the picked part of a switch */
  --raised: rgba(255, 255, 255, .045);
  --raised-hover: rgba(255, 255, 255, .08);
  --overlay: #16181c;           /* what opens over the page: menus, dialogs */
  --menu-shadow: 0 10px 28px rgba(0, 0, 0, .5);
  --field: #0d0f12;             /* inside a text field */
  /* A tick box's rim and an off switch's track: each the only edge its
     control has, so each at 3:1 against the ground it sits on. */
  --edge: rgba(255, 255, 255, .38);
  --track: #63676f;
  --blue-hover: #3069ff;
  --blue-press: #1650e0;
  --ink-rgb: 231, 236, 245;
  --ink-strong: #fff;       /* text lit up: a hovered footer link, a mock key press */
  --text-1: #cdd6e4;
  --text-3: #9ca7ba;
  --blue-soft: #8fb1ff;     /* links and the open tab */
  --blue-pale: #b9cbf2;     /* code inside prose */
  --on-tint: #cddcff;       /* text on an accent wash */
  --ring-core: #d2e0ff;     /* the brightest point of the header's orbit */
  --err: #e78c84;
  --ok-hi: #7fe4bd;
  --tint-rgb: 140, 170, 255;  /* hairlines and washes */
  --hi-rgb: 127, 168, 255;    /* lit edges */
  --sky-rgb: 95, 143, 255;    /* chosen and focused edges */
  --ground-rgb: 3, 5, 9;      /* the page itself: pools behind copy, fades */
  --well-rgb: 4, 9, 22;       /* what sits on the page: fields, cards, the header */
  --lift-rgb: 255, 255, 255;  /* a hover's lift */
  --ok-rgb: 76, 215, 164;
  --danger-rgb: 196, 85, 77;
  --beam-rgb: 61, 107, 255;
  --shade-rgb: 0, 0, 0;
  --shade-k: 1;               /* how much of each shadow's alpha a theme keeps */
  --text-glow-k: 1;
  --haze: none;
  --word-ink: #142c78;
  --word-top: #1d3fa3;
  --word-bottom: #060b22;
  --brand-bluesky: #4f9bff;
  --brand-mastodon: #8c8dff;
  --brand-claude: #d97757;
  --hue-0: #5ccfe6;
  --hue-1: #f0b46b;
  --hue-2: #b99cff;
  --hue-3: #ee8fd5;
  --hue-4: #b5de6e;
  --hue-5: #e8d36a;
  /* The two poles of a chart that shows reward against penalty. Checked
     together for colour-blind separation and against the surface, as are the
     light theme's pair. */
  --chart-reward: #1c5cff;
  --chart-penalty: #c27f2c;
}

/* Halo. boot.js sets data-theme before first paint, from the visitor's own
   choice or else the system's, so with no script the site stays dark. */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f8faff;
  --ink: #070f24;
  --ink-rgb: 7, 15, 36;
  --ink-strong: #070f24;
  --text-1: #1a2440;
  --text-2: #26324d;
  --text-3: #3a4762;
  --dim: #45516c;
  --faint: #55617b;
  --blue-hi: #1648d6;
  --blue-soft: #1648d6;
  --blue-pale: #1d3577;
  --on-tint: #0f2f8f;
  --ring-core: #1c5cff;
  --ok: #08704e;
  --ok-hi: #0a7a55;
  --danger: #b8322a;
  --err: #b8322a;
  --line: rgba(13, 17, 23, .08);
  --line-strong: rgba(13, 17, 23, .15);
  --surface: #fff;
  --surface-hi: #fff;
  --raised: rgba(13, 17, 23, .04);
  --raised-hover: rgba(13, 17, 23, .07);
  --overlay: #fff;
  --menu-shadow: 0 10px 28px rgba(15, 20, 30, .12);
  --field: #fff;
  --edge: rgba(13, 17, 23, .5);
  --track: #8a8f98;
  --blue-hover: #1550e6;
  --blue-press: #1245cc;
  --image-edge: rgba(0, 0, 0, .1);
  --tint-rgb: 28, 92, 255;
  --hi-rgb: 28, 92, 255;
  --sky-rgb: 28, 92, 255;
  --ground-rgb: 248, 250, 255;
  --well-rgb: 255, 255, 255;
  --lift-rgb: 28, 92, 255;
  --ok-rgb: 8, 112, 78;
  --danger-rgb: 184, 50, 42;
  --beam-rgb: 28, 92, 255;
  --shade-rgb: 28, 50, 120;
  --shade-k: .3;
  --text-glow-k: .45;
  --haze:
    radial-gradient(55% 45% at 18% 22%, rgba(28, 92, 255, .14), transparent 70%),
    radial-gradient(45% 40% at 86% 30%, rgba(28, 92, 255, .11), transparent 70%);
  --word-ink: #7d9cff;
  --word-top: #8aa6ff;
  --word-bottom: #eef3ff;
  --brand-bluesky: #0a6fe8;
  --brand-mastodon: #5b5cf0;
  --brand-claude: #c4643f;
  --hue-0: #0e8aa6;
  --hue-1: #b0670c;
  --hue-2: #7a52e0;
  --hue-3: #c0459e;
  --hue-4: #5a8410;
  --hue-5: #8f7400;
  --chart-reward: #1648d6;
  --chart-penalty: #b0670c;
}

/* A finger needs a bigger target than a pointer does. */
@media (pointer: coarse) {
  :root { --ctl: 36px; --ctl-sm: 32px; }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  /* At the root, so every surface renders at one weight. macOS paints text
     heavier than drawn; on a black ground that reads as mud. */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Landing only: the router scrolls to top on navigation, and smooth
   behaviour would animate that instead of placing it. */
html:has(body.home) { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-ui);
  line-height: 1.55;
  overflow-x: hidden;
}
/* Fixed, so the haze stays put while the page scrolls; behind everything. */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background: var(--haze);
  pointer-events: none;
}

/* The story reads at a larger size than the other pages — a place you spend
   time, not a form you pass through. The panel's words sit at the size of
   its rows; a post in it keeps the reading size its own rules give it. */
body.home { font-size: var(--t-body); line-height: 1.6; }

/* The footer belongs at the bottom of the window even when a page is too
   short to push it there, as an empty blog is. */
#page {
  display: flex; flex-direction: column;
  min-height: 100vh; min-height: 100svh;
}
#page > main { flex: 1 0 auto; }

::selection { background: var(--blue); color: #fff; }

a { color: inherit; text-decoration: none; }
/* One ring for everything a keyboard reaches. :where keeps the elements out
   of the weight, which leaves one pseudo-class: any rule with a class, as the
   footer links and the text fields' travelling edge have, still sets its own
   cue. tabindex="-1" is focused by script only, never by Tab. */
:where(a, button, summary, select, input[type="checkbox"], input[type="radio"], [tabindex]:not([tabindex="-1"])):focus-visible {
  outline: 2px solid var(--blue-hi); outline-offset: 2px;
}
code {
  font-family: var(--mono); font-size: 0.85em;
  color: var(--blue-hi);
  background: rgba(28, 92, 255, 0.08);
  border: 1px solid var(--hairline);
  border-radius: 4px; padding: 0.1em 0.35em;
}
/* Plex Sans ships upright only, so an italic would be the browser's own slant. */
em { font-style: normal; font-weight: 500; }

.skip {
  position: fixed; top: 16px; left: 16px; z-index: 20;
  padding: 11px 17px; border-radius: 8px;
  background: var(--blue); color: #fff;
  font: 500 var(--t-ui) var(--mono);
  translate: 0 -200%;
}
.skip:focus { translate: none; }
/* Focusable only so the skip link can land on it; a click inside it must not draw a ring. */
#main:focus { outline: none; }

/* Cross-document transitions. Both documents in a navigation must opt in, so
   this pairs with the same rule in the app stylesheet — it is what makes
   landing → blog a crossfade rather than a white flash. */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
}

/* ---- underglow ---- */

/* Persistent chrome, so it survives navigation — but only the story wants it.
   Shown by body class rather than by being absent, or arriving on a page that
   never had one would leave the story without it after a swap. */
.underglow { display: none; }
body.home .underglow,
body.panel-page .underglow {
  display: block;
  position: fixed; left: 50%; bottom: -42vh;
  width: 130vw; height: 80vh;
  transform: translateX(-50%);
  background: radial-gradient(ellipse closest-side,
    rgba(28, 92, 255, 0.28), rgba(20, 60, 200, 0.10) 45%, transparent 72%);
  z-index: 0; pointer-events: none;
}

/* Lifts the page above the underglow. The header is left out on purpose: it is
   already fixed and already above it, and naming it here would give it
   position: relative — more specific than the rule that fixes it — which drops
   it back into the flow and scrolls it away with the story. */
.home main, .home footer {
  position: relative; z-index: 1;
  transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.7s ease;
  will-change: transform;
}

/* ---- header ---- */

@property --menu-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

header.top {
  position: fixed; top: 16px; left: 50%; z-index: 10;
  width: min(1240px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 13px 12px 24px;
  background: rgba(var(--well-rgb), 0.62);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  backdrop-filter: blur(18px) saturate(135%);
  border: 1px solid rgba(var(--tint-rgb), 0.16);
  border-radius: 20px;
  box-shadow: 0 12px 42px rgba(var(--shade-rgb), calc(0.28 * var(--shade-k))), inset 0 1px rgba(255, 255, 255, 0.035);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s,
    transform 0.9s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.7s ease;
}
header.top::before,
header.top::after {
  content: "";
  position: absolute; inset: -1px;
  z-index: 0; pointer-events: none;
  padding: 1.5px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--menu-angle),
    transparent 0 41%,
    rgba(var(--sky-rgb), 0.06) 44%,
    rgba(var(--hi-rgb), 0.95) 49%,
    var(--ring-core) 50%,
    rgba(var(--sky-rgb), 0.82) 51%,
    rgba(28, 92, 255, 0.04) 56%,
    transparent 59% 100%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  filter: drop-shadow(0 0 5px rgba(var(--sky-rgb), 0.9));
  animation: menu-orbit 5.5s linear infinite;
}
header.top::after {
  opacity: 0.78;
  --menu-angle: 180deg;
  animation-name: menu-orbit-reverse;
  animation-duration: 5.5s;
}
.wordmark, .top-nav, .top-meta { position: relative; z-index: 1; }
@keyframes menu-orbit {
  to { --menu-angle: 360deg; }
}
@keyframes menu-orbit-reverse {
  from { --menu-angle: 180deg; }
  to { --menu-angle: 540deg; }
}
header.top.scrolled {
  background: rgba(var(--well-rgb), 0.86);
  border-color: rgba(var(--tint-rgb), 0.24);
  box-shadow: 0 16px 48px rgba(var(--shade-rgb), calc(0.38 * var(--shade-k))), 0 0 24px rgba(28, 92, 255, 0.06);
}
.wordmark {
  font-family: var(--mono); font-weight: 600; font-size: var(--t-body);
  letter-spacing: -0.02em;
}
.caret {
  display: inline-block; width: 8px; height: 16px;
  margin-left: 3px; vertical-align: -2px;
  background: var(--blue);
  animation: blink 1.2s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.top-nav { display: flex; gap: 7px; align-items: center; }
.nav-links { display: flex; gap: 4px; align-items: center; margin-right: 7px; }
.nav-toggle { display: none; }
.top-nav a {
  display: inline-flex; align-items: center;
  height: var(--ctl-lg); padding: 0 14px;
  /* 8px, not 6: the pill is 20px with 12px of padding, and a nested corner
     has to be the outer radius minus that padding or it looks pinched. */
  border-radius: var(--radius-lg);
  color: var(--dim); font: 500 var(--t-meta) var(--sans);
  transition: color .15s, background-color .15s;
}
.top-nav a:hover { color: var(--ink); background: var(--raised-hover); }
.top-nav .top-cta {
  color: #fff; background: var(--blue);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.top-nav .top-cta:hover { background: var(--blue-hover); }
.top-nav .top-cta:active { background: var(--blue-press); }

/* The theme switch offers the other theme: a sun on dark, a moon on light.
   Which one shows, and so what the button is called, follows data-theme
   here rather than in script, so a page the router swaps in matches already.
   It holds its place but stays unseen until the header script can answer a
   press; with no script at all it takes no place either. */
.theme-toggle {
  display: grid; place-items: center; flex: none;
  width: var(--ctl-lg); height: var(--ctl-lg); border-radius: var(--radius-lg);
  color: var(--dim);
  visibility: hidden;
  transition: color .15s, background-color .15s;
}
header.top.theme-ready .theme-toggle { visibility: visible; }
.theme-toggle:hover { color: var(--ink); background: var(--raised-hover); }
.theme-toggle > span { display: grid; }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .to-dark, :root[data-theme="light"] .theme-toggle .to-light { display: none; }
:root[data-theme="light"] .theme-toggle .to-dark { display: grid; }
.top-meta .theme-toggle { width: var(--ctl); height: var(--ctl); border-radius: var(--radius); }
/* Named only in the panel rail, where the row has room. The bar keeps the icon. */
.theme-label { display: none; }
html.no-js .theme-toggle { display: none; }

/* ---- shared ---- */

.index {
  font-family: var(--mono); font-size: var(--t-micro); font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--blue-hi); margin-bottom: 20px;
}
.home :is(h1, h2) {
  font-family: var(--serif); font-weight: 500;
  letter-spacing: -0.02em; line-height: 1.1;
  text-wrap: balance;
}
/* The platforms title is a label set at heading size, so it keeps the label's face. */
.home h2.index { font-family: var(--mono); font-weight: 600; letter-spacing: -0.035em; }
.home h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-bottom: 20px; }

/* A page's own call to action: the panel's buttons at the taller size. */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: var(--ctl-lg); padding: 0 18px;
  border: 1px solid transparent; border-radius: var(--radius);
  font: 500 var(--t-ui)/1 var(--sans); white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--blue); border-color: rgba(255, 255, 255, .1); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); }
.btn-primary:active { background: var(--blue-press); }
.btn-ghost { background: var(--raised); border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: var(--raised-hover); }
.btn-ghost:active { background: var(--line-strong); }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.dim { color: var(--dim); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* ---- the hero's rotor ---- */

/* The words share one grid cell, so the slot's baseline is the words' own.
   Its width is set from script to the current word's, and the line around
   it slides to follow. The track is held to that width too: sized by its
   content it would take the widest word's, and every shorter one would
   centre off to the right of its slot. Unselectable, so copying the heading
   copies the hidden sentence, not every word in the stack. */
.rotor-reel {
  display: inline-grid; grid-template-columns: minmax(0, 1fr);
  user-select: none;
  transition: width 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.rotor-word {
  grid-area: 1 / 1; justify-self: center;
  white-space: nowrap;
  opacity: 0; translate: 0 0.55em;
  transition: opacity 0.4s ease, translate 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.rotor-word.now { opacity: 1; translate: 0 0; transition-delay: 0.08s; }
.rotor-word.gone { translate: 0 -0.55em; }
.rotor-word.reset, .rotor-reel.measuring { transition: none; }
.rotor[data-break="after"]::after,
.rotor[data-break="around"]::before,
.rotor[data-break="around"]::after { content: "\A"; white-space: pre; }

/* ---- code to copy, on the landing page's neighbours and in the panel ---- */

.snippet {
  position: relative; margin-bottom: 18px;
  border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  background: rgba(var(--well-rgb), 0.75);
  box-shadow: 0 0 40px rgba(28, 92, 255, 0.08);
  overflow: hidden;
}
.snippet figcaption {
  font-family: var(--mono); font-size: var(--t-micro); letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--faint);
  padding: 12px 20px 0;
}
/* A caption that wraps on a phone stays clear of the copy button. */
.snippet:has(.copy) figcaption { padding-right: 104px; }
.snippet pre { padding: 12px 20px 18px; overflow-x: auto; }
.snippet code {
  background: none; border: none; padding: 0;
  font-size: var(--t-meta); line-height: 1.75; color: var(--ink);
}
.copy {
  position: absolute; top: 10px; right: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  height: var(--ctl-sm); padding: 0 10px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--raised); color: var(--text-2);
  font: 500 var(--t-label)/1 var(--sans); cursor: pointer;
  transition: color .15s, background-color .15s;
}
.copy:hover { color: var(--ink); background: var(--raised-hover); }
.connect-skills { margin-top: 28px; max-width: 560px; color: var(--dim); font-size: var(--t-ui); }
.connect-skills a {
  color: var(--ink);
  text-decoration: underline; text-underline-offset: .18em; text-decoration-color: var(--blue-dim);
}
.connect-skills a:hover, .connect-skills a:focus-visible { text-decoration-color: currentColor; }

/* The line a person pastes into an agent: one command line, framed like a
   terminal prompt, with its copy button inside the frame. The frame is as
   wide as the line; where the screen is narrower, the line wraps at its
   space and before /setup.md. */
.setup-prompt { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; max-width: 100%; }
.setup-prompt-lede { margin: 0; color: var(--dim); font-size: var(--t-meta); }
.setup-prompt-line {
  display: inline-flex; align-items: stretch; max-width: 100%; min-height: var(--ctl-lg);
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--field);
}
.setup-prompt-mark { flex: none; align-self: center; padding-left: 14px; color: var(--blue-hi); font: 500 var(--t-meta)/1 var(--mono); }
.setup-prompt-line code {
  align-self: center; min-width: 0; padding: 9px 16px 9px 10px;
  border: 0; border-radius: 0; background: none; color: var(--ink);
  font-size: var(--t-meta); line-height: 1.5; overflow-wrap: break-word;
}
.setup-prompt-line .copy {
  position: relative; inset: auto; flex: none; height: auto; padding: 0 14px;
  border: 0; border-left: 1px solid var(--line-strong);
  border-radius: 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0;
  background: transparent; color: var(--text-2);
}
.setup-prompt-line .copy:hover { background: var(--raised-hover); color: var(--ink); }
.lp-hero .setup-prompt { margin-top: 36px; }
/* A phone keeps the address on one row under the words before it. */
@media (max-width: 600px) {
  .setup-prompt-mark { display: none; }
  .setup-prompt-line code { padding: 9px 12px; font-size: var(--t-label); }
  .setup-prompt-line .copy { padding: 0 12px; }
}

/* ---- landing ----
   The landing page draws the product with the product's own parts: the
   panel's post cards and rows, and the chat's preview card in a frame. Every
   motion here runs from somewhere toward the layout as written, so a browser
   without scroll timelines, a reader who asks for less motion and a page
   without script all show the page at rest. */

.lp {
  --lp-max: 1240px;
}
.lp :is(h1, h2, h3) { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; text-wrap: balance; }
:where(.lp) p { margin: 0; }
/* The page's own words, not the cards': those break their lines where the
   platform does. */
:where(.lp p:not(.look-card *)) { text-wrap: pretty; }

.kicker {
  font-family: var(--mono); font-size: var(--t-micro); letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--dim); margin-bottom: 24px;
}

/* The hero: what it is on the left, the post it makes on the right. */
.lp-hero {
  max-width: var(--lp-max); margin: 0 auto;
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center; gap: 48px;
  padding: 128px 24px 72px;
}
.lp-hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
.lp-hero h1 { font-size: clamp(2.6rem, 5.2vw, 4.4rem); line-height: 1.04; margin-bottom: 24px; }
.lp-hero .rotor { color: var(--blue-hi); }
.lp-hero .rotor-word { justify-self: start; }
.lp-hero .sub { max-width: 34rem; color: var(--dim); font-size: var(--t-body); line-height: 1.6; margin-bottom: 32px; }
.lp-works { margin-top: 22px; font-family: var(--mono); font-size: var(--t-label); color: var(--faint); }

/* The deck: the panel's four cards fanned behind the draft. Each card is laid
   out at its platform's width and scaled into its slot (landing.js), and
   leans with the pointer through --lean-x and --lean-y. */
.lp-deck { position: relative; height: 460px; margin: 0; perspective: 1600px; }
.lp-deck-cards {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(calc(var(--lean-y, 0) * -5deg)) rotateY(calc(var(--lean-x, 0) * 7deg));
  transition: transform .6s var(--ease-out);
}
/* Two classes: the card's box is also a .look-fit, which is full width and
   clips. Here the card is only ever drawn smaller than its box lays it out,
   so nothing needs clipping, and each platform's scale is known before
   landing.js measures it: the deck is right on its first frame, and without
   script. */
.lp .lp-deck-card {
  position: absolute; left: 50%; top: 50%; width: 320px; margin: -165px 0 0 -160px;
  overflow: visible;
  /* In pixels: the box's height changes once landing.js measures the card,
     and a pivot in percent of it would move the whole fan with it. */
  transform-origin: 160px 260px;
  transform: translate(var(--dx), var(--dy)) rotate(var(--r));
}
.lp-deck-card:has(.look-x) { --look-scale: .5333; }
.lp-deck-card:has(.look-li) { --look-scale: .5797; }
.lp-deck-card:has(.look-bs) { --look-scale: .5316; }
.lp-deck-card:has(.look-ma) { --look-scale: .5333; }
.lp-deck-card .look-card { border-radius: 16px; box-shadow: 0 40px 90px rgba(var(--shade-rgb), calc(.35 * var(--shade-k))); }
.lp-deck-card:nth-child(1) { --dx: -150px; --dy: 26px; --r: -17deg; }
.lp-deck-card:nth-child(2) { --dx: -76px; --dy: 8px; --r: -8deg; }
.lp-deck-card:nth-child(3) { --dx: 76px; --dy: 8px; --r: 8deg; }
.lp-deck-card:nth-child(4) { --dx: 150px; --dy: 26px; --r: 17deg; }
/* At half size the deck's Bluesky and Mastodon cards are a picture of a
   card, so they keep the system's face: Inter's Latin is 103 KB, and the full-size
   row below brings it when it nears the screen. */
.lp-deck :is(.look-bs, .look-ma) { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.lp-draft {
  position: absolute; left: 50%; top: 50%; width: 300px; margin: -130px 0 0 -150px;
  display: flex; flex-direction: column; gap: 14px; padding: 22px;
  border-radius: 12px; background: var(--blue); color: #fff;
  box-shadow: 0 30px 60px rgba(28, 92, 255, calc(.4 * var(--shade-k) + .1));
}
.lp-draft-head, .lp-draft-foot { display: flex; justify-content: space-between; gap: 12px; font: 500 var(--t-label)/1.3 var(--mono); }
.lp-draft-text { font: 500 18px/1.4 var(--sans); }
.lp-draft-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lp-draft-chips span { padding: 3px 8px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .18); font: 500 var(--t-label)/1.3 var(--mono); }
.lp-draft-foot { margin-top: 4px; }
.rotor-echo { display: inline-block; }
.rotor-echo.turn { animation: echo-turn .5s var(--ease-out); }
@keyframes echo-turn { from { opacity: 0; translate: 0 .4em; filter: blur(4px); } }

/* How it works: three cards, the reader's part in the middle. */
.lp-steps { padding: 120px 24px 150px; background: var(--surface); border-block: 1px solid var(--line); }
.lp-head { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.lp-head .index { margin-bottom: 14px; }
.lp-head h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.06; margin: 0; }
.lp-head > p:not(.index) { margin-top: 16px; color: var(--dim); font-size: var(--t-body); }
.lp-head-wide { max-width: var(--lp-max); margin: 0 auto 40px; padding: 0 24px; text-align: left; }
.lp-cards {
  list-style: none; margin: 0 auto; padding: 0; max-width: 1200px;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 24px;
}
.lp-card {
  position: relative; flex: 0 1 372px; min-width: 0; min-height: 580px;
  display: flex; flex-direction: column; gap: 12px; padding: 28px;
  border-radius: 12px;
  box-shadow: 0 30px 60px rgba(var(--shade-rgb), calc(.25 * var(--shade-k)));
  transform: translateY(var(--lift, 0)) rotate(var(--tilt, 0deg));
}
.lp-card h3 { margin: 0; font-size: 28px; line-height: 1.12; }
.lp-card > p { font-size: var(--t-ui); line-height: 1.55; }
.lp-num { position: absolute; top: 24px; right: 26px; font: 500 var(--t-label) var(--mono); }
.lp-eyebrow { font: 500 var(--t-label) var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.lp-ask { --tilt: -4deg; --lift: 26px; --from: 396px; background: #0b1020; color: #e7ecf5; }
.lp-ask .lp-eyebrow { color: #8fb1ff; }
.lp-ask > p, .lp-ask .lp-num { color: #b4bdcd; }
.lp-check { --from: 0px; background: var(--blue); color: #fff; z-index: 1; }
.lp-posted { --tilt: 4deg; --lift: 26px; --from: -396px; background: var(--bg); color: var(--ink); border: 1px solid var(--line-strong); }
.lp-posted .lp-eyebrow { color: var(--blue-hi); }
.lp-posted > p { color: var(--dim); }
.lp-posted .lp-num { color: var(--faint); }

.lp-chat { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.lp-chat > p { max-width: 88%; padding: 9px 12px; border-radius: var(--radius-lg); font-size: var(--t-meta); line-height: 1.45; }
.lp-chat .lp-you { align-self: flex-end; background: var(--blue); color: #fff; }
.lp-chat .lp-who { align-self: flex-start; padding: 6px 0 0; font: 500 var(--t-label) var(--mono); color: #b4bdcd; }
.lp-chat .lp-agent { align-self: flex-start; display: grid; background: #1a2033; color: #e7ecf5; }
.lp-typing, .lp-reply { grid-area: 1 / 1; }
.lp-typing { display: none; align-items: center; gap: 4px; }
.lp-typing i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .5; }

/* The chat's card, framed. Until it has drawn, the panel's X card holds its
   place; the frame then takes the height the card reports (card-host.js). */
.lp-widget { position: relative; margin: auto 0 0; padding: 10px; border-radius: 24px; background: var(--surface); min-height: 330px; overflow: hidden; }
.card-frame { position: absolute; top: 10px; left: 10px; width: calc(100% - 20px); height: 0; border: 0; opacity: 0; transition: opacity .4s ease; }
.lp-widget.drawn .card-frame { position: relative; top: 0; left: 0; width: 100%; opacity: 1; }
.lp-widget.drawn .lp-widget-still { display: none; }

.lp-rows { margin: auto 0 0; }
.lp-rows .list { margin: 0; }

/* In the app: the panel's composer, styled by its own rules below, writing
   one post by itself while in view (compose-demo.js). It holds its height
   whatever it holds, so the page never moves under it, and it comes
   finished: what a reader without script or motion sees. */
.lp-compose { padding: 120px 24px; content-visibility: auto; contain-intrinsic-size: auto 1140px; }
.lp-compose .lp-head { margin-bottom: 48px; }
.lp-compose-demo { max-width: 1100px; margin: 0 auto; }
.lp-composer {
  display: flex; flex-direction: column; height: 640px; overflow: hidden; text-align: left;
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: var(--overlay); color: var(--text-2);
  box-shadow: 0 24px 60px rgba(var(--shade-rgb), calc(.6 * var(--shade-k)));
  transition: opacity .4s var(--ease-out);
}
.lp-composer.resting { opacity: .45; }
.lp-composer [hidden] { display: none; }
.lp-composer .composer-title { color: var(--ink); font: 600 var(--t-ui) var(--sans); }
/* The text as the field holds it, the caret where the writing is. */
.lp-composer-text {
  min-height: 150px; padding: 14px; white-space: pre-wrap; overflow-wrap: anywhere;
  color: var(--ink); font: var(--t-body)/1.5 var(--sans);
}
.lp-composer .lp-composer-reply { min-height: 72px; padding-top: 4px; }
.lp-composer-text:empty::before { content: attr(data-placeholder); color: var(--faint); }
.lp-composer-text.typing::after {
  content: ""; display: inline-block; width: 1.5px; height: 1.2em; margin-left: 1px; vertical-align: text-bottom;
  background: var(--blue-soft); animation: blink 1s steps(1) infinite;
}
.lp-composer-text.chosen { background: rgba(var(--sky-rgb), .2); }
.lp-composer :is(.composer-field, .composer-reply).active { border-color: rgba(var(--sky-rgb), .6); box-shadow: 0 0 0 3px rgba(var(--sky-rgb), .18); }
/* A press, as a finger or a click makes it. */
.lp-composer :is(.composer-account, .composer-tabs button, .when-pick, .action, .composer-steps button) {
  transition: scale .15s var(--ease-out), background-color .15s, border-color .15s, color .15s;
}
.lp-composer .pressed { scale: .96; }
.lp-composer .pressed:not(.primary) { background-color: var(--raised-hover); }
.lp-compose-demo .lp-compose-said { width: max-content; max-width: 100%; margin: 16px auto 0; transition: opacity .3s var(--ease-out), translate .3s var(--ease-out); }
.lp-compose-said.away { opacity: 0; translate: 0 6px; }
@media (max-width: 720px) {
  .lp-compose { padding: 88px 16px; }
  .lp-composer { height: 660px; }
  .lp-composer [data-pane] { display: none; }
  .lp-composer[data-step="write"] [data-pane="write"],
  .lp-composer[data-step="when"] [data-pane="when"] { display: flex; }
  .lp-composer[data-step="look"] [data-pane="look"] { display: block; }
  .lp-composer[data-step="when"] .composer-body { display: none; }
}
/* The demo alone (/embed/compose-demo), framed by a post: the post's ground
   shows through, and the composer casts no shadow the frame's edges would
   cut square. */
body.embed { background: none; }
body.embed::before { content: none; }
body.embed .lp-composer { box-shadow: none; }

/* Platforms: the panel's four cards in a cascade, the picked one in front
   and the rest a step further back each, up and to the right. stack.js sets
   each card's data-depth and the stack's height; the picker turns by itself
   on the timer its own bar draws, so pausing the bar pauses the turning.
   Laid out only as it nears the screen, so the font its Bluesky and
   Mastodon cards need is fetched then, not with the first screen. */
.lp-platforms { padding: 120px 24px; content-visibility: auto; contain-intrinsic-size: auto 760px; }
.lp-plat {
  max-width: var(--lp-max); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); align-items: center; gap: 64px;
}
.lp-plat-copy .index { margin-bottom: 14px; }
.lp-plat-copy h2 { margin: 0; font-size: clamp(2rem, 3.8vw, 3rem); line-height: 1.06; }
.lp-plat-sub { margin-top: 16px; color: var(--dim); font-size: var(--t-body); line-height: 1.6; }
.lp-picks { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lp-pick {
  position: relative; overflow: hidden; width: 100%; min-height: 52px; padding: 0 16px;
  display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--surface);
  color: var(--text-2); font: 500 var(--t-ui)/1.3 var(--sans); text-align: left; cursor: pointer;
  transition: border-color .15s, background-color .15s, color .15s;
}
.lp-pick:hover { border-color: rgba(var(--sky-rgb), .5); background: rgba(var(--sky-rgb), .04); color: var(--ink); }
.lp-pick[aria-pressed="true"] { border-color: var(--blue); background: rgba(var(--sky-rgb), .08); color: var(--ink); }
.lp-pick-mark { display: grid; place-items: center; }
.lp-pick-mark svg { width: 18px; height: 18px; }
.lp-pick-fact { font: 400 var(--t-label) var(--mono); color: var(--faint); }
.lp-pick-time { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: 0 50%; }
.lp-platforms.turning .lp-pick[aria-pressed="true"] .lp-pick-time { animation: lp-time 3.07s linear forwards; }
/* As specific as the rule that starts it: its shorthand sets the state too. */
.lp-platforms.turning.held .lp-pick[aria-pressed="true"] .lp-pick-time { animation-play-state: paused; }
@keyframes lp-time { to { transform: scaleX(1); } }

/* The cards share a bottom edge, so a taller card behind shows more of its
   top and none of it hangs below the card in front. */
.lp-stack { --step-x: 40px; --step-y: 34px; position: relative; height: var(--stack-h, 440px); }
.lp .lp-layer {
  position: absolute; left: 0; bottom: 0; width: calc(100% - 3 * var(--step-x));
  /* The box is wider than a card that is drawn at its own size, so only the
     card itself takes the pointer: the box's empty side would cover the
     cards behind. */
  overflow: visible; pointer-events: none;
  transform-origin: 0 100%;
  transform: translate(calc(var(--d) * var(--step-x)), calc(var(--d) * var(--step-y) * -1)) scale(calc(1 - var(--d) * .03));
  transition: transform .8s var(--spring), translate .35s var(--ease-out);
}
/* The cards behind stay solid, so no line shows through another, and sink
   into the page's own ground a little more with each step back. */
.lp-layer .look-card { position: relative; pointer-events: auto; }
.lp-layer:not([data-depth="0"]) .look-card { cursor: pointer; }
.lp-layer .look-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: rgb(var(--ground-rgb)); opacity: calc(var(--d) * .14);
  transition: opacity .5s ease;
}
.lp-layer[data-depth="0"] { --d: 0; z-index: 4; }
.lp-layer[data-depth="1"] { --d: 1; z-index: 3; }
.lp-layer[data-depth="2"] { --d: 2; z-index: 2; }
.lp-layer[data-depth="3"] { --d: 3; z-index: 1; }
.lp-layer:not([data-depth="0"]):hover { translate: 0 -12px; }
.lp-layer .look-card { box-shadow: 0 30px 70px rgba(var(--shade-rgb), calc(.22 * var(--shade-k))); }
.lp-layer:not([data-depth="0"]):hover .look-card::after { opacity: calc(var(--d) * .06); }

/* Control. */
.lp-control { padding: 40px 0 120px; }
.lp-keys {
  list-style: none; margin: 0 auto; padding: 0 24px; max-width: var(--lp-max);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px;
}
/* Read, not pressed: no hover state, which would promise a link. */
.lp-keys li { border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); padding: 22px; }
.lp .lp-keys h3 { margin: 0 0 8px; font: 600 16px/1.3 var(--sans); letter-spacing: 0; }
.lp-keys p { color: var(--dim); font-size: var(--t-ui); line-height: 1.55; }

/* Guides: what Postmoderno is in one line, then where to read on. */
.lp-guides { padding: 0 0 120px; }
.lp-guides .lp-head > p:not(.index) { max-width: 46rem; line-height: 1.6; }
.lp-guide-cols {
  margin: 0 auto; padding: 0 24px; max-width: var(--lp-max);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px;
}
.lp-guide-col { display: flex; flex-direction: column; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); padding: 22px; }
.lp .lp-guide-col h3 { margin: 0 0 8px; font: 600 16px/1.3 var(--sans); letter-spacing: 0; }
.lp-guide-col ul { list-style: none; margin: 0 0 16px; padding: 0; }
.lp-guide-col li + li { border-top: 1px solid var(--line); }
.lp-guide-col li a {
  display: block; padding: 11px 0; color: var(--text-2); font-size: var(--t-ui); line-height: 1.45;
  transition: color .15s;
}
.lp-guide-col li a:hover, .lp-guide-col li a:focus-visible { color: var(--blue-hi); }
.lp-guide-more { margin-top: auto; align-self: flex-start; color: var(--ink); font: 500 var(--t-ui)/1.3 var(--mono); }
.lp-guide-more:hover, .lp-guide-more:focus-visible { color: var(--blue-hi); }

/* Free to start: the sign-in card itself, working. */
.lp-start {
  max-width: calc(var(--lp-max) - 48px); margin: 0 auto 120px; padding: 64px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); align-items: center; gap: 48px;
  border-radius: 16px; background: #0b1020; color: #e7ecf5;
}
.lp-start .index { color: #8fb1ff; margin-bottom: 14px; }
.lp-start h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 16px; }
.lp-start-copy > p:not(.index) { color: #b4bdcd; max-width: 30rem; }
.lp-start .connect-skills a { color: #fff; }
.lp-signed-in { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }

/* Plays once its card is on screen (reveal.js adds .in), and rests on its
   last frame. */
@media (prefers-reduced-motion: no-preference) {
  html.js .lp-ask:not(.in) :is(.lp-who, .lp-agent, .lp-yes) { opacity: 0; }
  html.js .lp-ask.in .lp-who { animation: lp-pop .35s var(--ease-out) .5s both; }
  html.js .lp-ask.in .lp-agent { animation: lp-pop .35s var(--ease-out) .6s both; }
  html.js .lp-ask.in .lp-typing { display: inline-flex; animation: lp-gone 0s 1.9s both; }
  html.js .lp-ask.in .lp-typing i { animation: lp-dot .9s ease-in-out 2; }
  html.js .lp-ask.in .lp-typing i:nth-child(2) { animation-delay: .15s; }
  html.js .lp-ask.in .lp-typing i:nth-child(3) { animation-delay: .3s; }
  html.js .lp-ask.in .lp-reply { animation: lp-show .3s ease 1.9s both; }
  html.js .lp-ask.in .lp-yes { animation: lp-pop .35s var(--ease-out) 2.8s both; }

  html.js .lp-posted:not(.in) .post-row { opacity: 0; }
  html.js .lp-posted.in .post-row { animation: lp-pop .5s var(--ease-out) .4s both; }
  html.js .lp-posted.in .post-row:nth-child(2) { animation-delay: .75s; }
  html.js .lp-posted.in .post-row:nth-child(3) { animation-delay: 1.1s; }
  html.js .lp-posted.in .post-row .badge { animation: lp-stamp .45s var(--spring) .7s both; }
  html.js .lp-posted.in .post-row:nth-child(2) .badge { animation-delay: 1.05s; }
  html.js .lp-posted.in .post-row:nth-child(3) .badge { animation-delay: 1.4s; }

  /* The hero's lines rise from the first paint, not on .reveal, which waits
     for the whole module graph. The heading stays put: it is the page's
     largest paint, and Chrome counts it only once a fade has made it
     visible, which held LCP 1.4 s behind the first paint on a slow phone. */
  .lp-hero-copy > :not(h1) { animation: reveal-rise .7s ease both; }
  /* The deck deals itself on arrival and the draft settles over it. */
  .lp-deck-card { animation: lp-deal 1.1s var(--spring) both; }
  .lp-deck-card:nth-child(2) { animation-delay: .08s; }
  .lp-deck-card:nth-child(3) { animation-delay: .16s; }
  .lp-deck-card:nth-child(4) { animation-delay: .24s; }
  .lp-draft { animation: lp-arrive .9s var(--spring) .4s both, lp-float 6s ease-in-out 1.6s infinite; }
}
@keyframes lp-pop { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
@keyframes lp-show { from { opacity: 0; } to { opacity: 1; } }
@keyframes lp-gone { to { visibility: hidden; } }
@keyframes lp-dot { 50% { opacity: 1; translate: 0 -2px; } }
@keyframes lp-stamp { from { opacity: 0; scale: 1.6; } to { opacity: 1; scale: 1; } }
@keyframes lp-deal { from { opacity: 0; transform: translate(0, 70px) rotate(0deg) scale(.92); } }
@keyframes lp-arrive { from { opacity: 0; transform: translateY(26px) scale(.96); } }
@keyframes lp-float { 50% { translate: 0 -8px; } }

/* Tied to the scroll where the browser can: the hero lets go as it leaves,
   the three cards come out of one pile, the rest settle in as they arrive. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .lp-hero { view-timeline: --lp-hero block; }
    .lp-hero-copy { animation: lp-leave linear both; animation-timeline: --lp-hero; animation-range: exit 5% exit 85%; }
    .lp-deck-card {
      animation: lp-deal 1.1s var(--spring) both, lp-spread linear both;
      animation-timeline: auto, --lp-hero; animation-range: normal, exit 0% exit 100%;
    }
    .lp-deck-card:nth-child(2) { animation-delay: .08s, 0s; }
    .lp-deck-card:nth-child(3) { animation-delay: .16s, 0s; }
    .lp-deck-card:nth-child(4) { animation-delay: .24s, 0s; }
    .lp-deck-card .look-card { animation: lp-fade linear both; animation-timeline: --lp-hero; animation-range: exit 20% exit 100%; }
    .lp-card { animation: lp-splay linear both; animation-timeline: view(); animation-range: entry 0% cover 42%; }
    .lp-head { animation: lp-focus linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
    :is(.lp-picks li, .lp-keys li) { animation: lp-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
    /* The cascade deals itself as it arrives, back card first. */
    .lp-stack { view-timeline: --lp-stack block; }
    .lp-layer { animation: lp-layer-in linear both; animation-timeline: --lp-stack; }
    .lp-layer[data-layer="3"] { animation-range: entry 0% cover 30%; }
    .lp-layer[data-layer="2"] { animation-range: entry 8% cover 34%; }
    .lp-layer[data-layer="1"] { animation-range: entry 16% cover 38%; }
    .lp-layer[data-layer="0"] { animation-range: entry 24% cover 42%; }
  }
}
@keyframes lp-leave { to { opacity: 0; translate: 0 -48px; } }
@keyframes lp-spread { to { translate: calc(var(--dx) * .8) -110px; rotate: calc(var(--r) * .7); } }
@keyframes lp-fade { to { opacity: .15; } }
@keyframes lp-splay { from { translate: var(--from) 0; rotate: calc(var(--tilt, 0deg) * -1); } }
@keyframes lp-focus { from { opacity: 0; filter: blur(8px); translate: 0 24px; } }
@keyframes lp-rise { from { opacity: 0; translate: 0 40px; } }
/* No fade: a card half see-through would show the lines of the one behind. */
@keyframes lp-layer-in { from { translate: -60px 110px; rotate: -5deg; } }

@media (max-width: 960px) {
  .lp-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; min-height: 0; padding-top: 112px; }
  .lp-deck { height: 400px; }
  .lp-card { --tilt: 0deg; --lift: 0px; --from: 0px; flex-basis: 100%; max-width: 560px; min-height: 0; }
  .lp-chat, .lp-widget, .lp-rows { margin-top: 12px; }
  .lp-plat { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .lp-picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-pick { grid-template-columns: 22px minmax(0, 1fr); }
  .lp-pick-fact { grid-column: 2; margin-top: -10px; padding-bottom: 8px; }
  .lp-stack { --step-x: 12px; --step-y: 16px; }
  .lp-start { grid-template-columns: minmax(0, 1fr); padding: 36px 24px; margin-inline: 16px; }
}
@media (max-width: 600px) {
  .lp-deck { height: 330px; }
  .lp-deck-cards { scale: .78; }
  .lp-steps { padding: 80px 16px 96px; }
  .lp-head { margin-bottom: 40px; }
}

/* ---- footer ---- */

/* Every page's closing section: a slow diagonal beam behind the link
   columns, and the wordmark set full-width and cut off by the bottom edge so
   the beam runs through it. beam-footer.js moves the beam and splits the word
   into letters; without it this is the same picture, standing still.

   Each letter paints the footer-sized beam and glow, shifted back by its own
   offset, so the light reads as one shaft rather than eleven. */
.beam-foot {
  --bf-acc: var(--beam-rgb);
  --bf-ang: 118deg;
  --bf-b: 58%;          /* where the beam crosses, along its gradient line */
  --bf-px: 50%; --bf-py: 50%;
  --bf-g: 0;            /* pointer glow, 0 → 1 */
  --bf-rw: 100%; --bf-rh: 100%;
  position: relative; z-index: 1;
  isolation: isolate;
  overflow: hidden;
  background: var(--bg);
}
.beam-foot::before {
  content: "";
  position: absolute; inset: 0 0 auto; z-index: 3;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--bf-acc), .15),
    rgba(var(--bf-acc), .55) var(--bf-b), rgba(var(--bf-acc), .15));
}

.bf-sky, .bf-sky > * { position: absolute; inset: 0; pointer-events: none; }
.bf-sky { z-index: 0; }
.bf-wash {
  background:
    radial-gradient(120% 90% at 8% 0%, rgba(var(--bf-acc), .2), transparent 55%),
    radial-gradient(90% 70% at 92% 8%, rgba(var(--bf-acc), .14), transparent 60%),
    linear-gradient(180deg, rgba(var(--bf-acc), .06), transparent 70%);
}
.bf-bands {
  background: repeating-linear-gradient(90deg,
    rgba(var(--bf-acc), .05) 0 1.6vw, transparent 1.6vw 4.2vw);
  -webkit-mask-image: linear-gradient(100deg, #000, transparent 55%);
  mask-image: linear-gradient(100deg, #000, transparent 55%);
}
.bf-beam {
  filter: blur(calc(1px + 1.6vw));
  background:
    linear-gradient(var(--bf-ang),
      transparent calc(var(--bf-b) - 11%),
      rgba(var(--bf-acc), .10) calc(var(--bf-b) - 5%),
      rgba(var(--bf-acc), .34) var(--bf-b),
      rgba(var(--bf-acc), .08) calc(var(--bf-b) + 4%),
      transparent calc(var(--bf-b) + 9%)),
    linear-gradient(var(--bf-ang),
      transparent calc(var(--bf-b) - 34%),
      rgba(var(--bf-acc), .10) calc(var(--bf-b) - 27%),
      transparent calc(var(--bf-b) - 20%));
}
.bf-glow {
  opacity: var(--bf-g);
  background: radial-gradient(circle 26vw at var(--bf-px) var(--bf-py),
    rgba(var(--bf-acc), .16), transparent 70%);
}

.bf-cols {
  position: relative; z-index: 2;
  max-width: 1120px; margin: 0 auto;
  padding: clamp(48px, 8.5vw, 104px) clamp(24px, 6vw, 88px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(0, .86fr) minmax(0, .86fr);
  column-gap: clamp(24px, 4vw, 48px); row-gap: 40px;
}
.bf-col:first-child { max-width: 420px; }
.bf-col:nth-child(2) { --bf-d: 90ms; }
.bf-col:nth-child(3) { --bf-d: 180ms; }
/* Hidden only once beam-footer.js has armed the footer, since it alone brings
   the columns back. */
.beam-foot.armed .bf-cols:not(.in) .bf-col { opacity: 0; }
.bf-cols.in .bf-col { animation: reveal-rise .7s ease var(--bf-d, 0ms) both; }
.bf-label { position: relative; margin-bottom: 0; padding-bottom: 13px; }
.bf-label::after {
  content: "";
  position: absolute; inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--bf-acc), .55), rgba(var(--bf-acc), .28));
  transform-origin: 0 50%;
}
.bf-cols.in .bf-label::after { animation: bf-line 1.1s cubic-bezier(.2, .7, .1, 1) calc(var(--bf-d, 0ms) + 150ms) both; }
@keyframes bf-line { from { transform: scaleX(0); } }

.bf-note {
  margin-top: 18px;
  font-size: var(--t-ui); line-height: 1.55; color: var(--dim);
}
.bf-note + .bf-note { margin-top: 6px; }
.bf-note a {
  font-family: var(--mono); color: var(--ink);
  overflow-wrap: anywhere;
  background: linear-gradient(var(--blue-hi), var(--blue-hi)) 0 100% / 0 1px no-repeat;
  transition: background-size .35s cubic-bezier(.2, .8, .2, 1), color .25s;
}
.bf-note a:hover, .bf-note a:focus-visible { background-size: 100% 1px; color: var(--ink-strong); outline: none; }

.bf-links { list-style: none; margin-top: 13px; }
.bf-links a {
  position: relative;
  display: inline-flex; align-items: center;
  padding: 6px 0;
  font-family: var(--mono); font-size: var(--t-ui); line-height: 21px;
  color: rgba(var(--ink-rgb), .78);
  transition: color .25s, padding-left .35s cubic-bezier(.2, .8, .2, 1);
}
.bf-links a::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  width: 6px; height: 1px;
  background: var(--blue-hi);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.bf-links a::after {
  content: "→";
  margin-left: 8px;
  color: var(--blue-hi);
  opacity: 0; translate: -6px 0;
  transition: opacity .25s, translate .35s cubic-bezier(.2, .8, .2, 1);
}
/* The text moves by padding rather than translate: a translated link carries
   its hit area away from a pointer resting on its left edge, and flickers. */
.bf-links a:hover, .bf-links a:focus-visible { color: var(--ink-strong); padding-left: 12px; outline: none; }
.bf-links a:hover::before, .bf-links a:focus-visible::before { transform: scaleX(1); }
.bf-links a:hover::after, .bf-links a:focus-visible::after { opacity: 1; translate: 0 0; }
.bf-links a:focus-visible {
  text-decoration: underline; text-underline-offset: 4px;
  text-decoration-color: rgba(var(--bf-acc), .8);
}

/* The word fills the column width by arithmetic rather than measurement: Plex
   Mono advances every glyph 0.6em, so eleven of them at -0.045em tracking are
   6.105em wide. Its baseline sits 0.875em down a line-height:1 box; the box
   ends 0.135em below that, and the footer's overflow:hidden cuts the
   descender there. */
.bf-word {
  position: relative; z-index: 1;
  container-type: inline-size;
  max-width: 1120px;
  margin: clamp(28px, 7vw, 96px) auto 0;
  padding-inline: clamp(24px, 6vw, 88px);
}
.bf-word-in {
  --bf-fs: calc(100cqw / 6.105);
  height: calc(var(--bf-fs) * 1.01);
  font: 600 var(--bf-fs)/1 var(--mono);
  letter-spacing: -.045em;
  white-space: nowrap;
  color: var(--word-ink);
  user-select: none; -webkit-user-select: none;
}
/* As wide as the screen, not the word, or its edges show against the beam;
   the footer's overflow clips the excess. */
.bf-word::after {
  content: "";
  position: absolute; bottom: 0; left: 50%; z-index: 2;
  width: 100vw; height: 34%;
  translate: -50% 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(var(--ground-rgb), .55) 55%, var(--bg));
}
.bf-lw { display: inline-block; }
.bf-word:not(.in) .bf-lw { translate: 0 100%; }
.bf-word.in .bf-lw { animation: bf-rise 1.25s cubic-bezier(.16, .84, .2, 1) var(--bf-d, 0ms) both; }
@keyframes bf-rise { from { translate: 0 100%; } }
.bf-l {
  display: inline-block;
  color: transparent;
  -webkit-background-clip: text; background-clip: text;
  background-repeat: no-repeat;
  background-image:
    radial-gradient(circle 22vw at var(--bf-px) var(--bf-py),
      rgba(var(--bf-acc), calc(var(--bf-g) * .85)), transparent 70%),
    linear-gradient(var(--bf-ang),
      transparent calc(var(--bf-b) - 9%),
      rgba(var(--bf-acc), .55) calc(var(--bf-b) - 1.5%),
      rgba(var(--bf-acc), .7) var(--bf-b),
      rgba(var(--bf-acc), .2) calc(var(--bf-b) + 3.5%),
      transparent calc(var(--bf-b) + 8%)),
    linear-gradient(180deg, var(--word-top), var(--word-bottom) 92%);
  background-size: var(--bf-rw) var(--bf-rh), var(--bf-rw) var(--bf-rh), 100% 100%;
  background-position:
    calc(var(--bf-x, 0px) * -1) calc(var(--bf-y, 0px) * -1),
    calc(var(--bf-x, 0px) * -1) calc(var(--bf-y, 0px) * -1),
    0 0;
  transform-origin: 50% 100%;
  transition: transform .5s cubic-bezier(.2, .9, .25, 1.2), filter .4s;
}
.bf-l:hover { transform: translateY(-.045em); filter: brightness(1.35) saturate(1.1); }
/* translate and scale rather than transform: the hop ends where it began and
   leaves :hover's lift alone, so nothing snaps when the class comes off. */
.bf-l.is-hop { animation: bf-hop .75s cubic-bezier(.2, .8, .2, 1); }
@keyframes bf-hop {
  18% { translate: 0 .02em; scale: 1.06 .9; }
  45% { translate: 0 -.14em; scale: .97 1.05; }
  70% { translate: 0 .01em; scale: 1.02 .97; }
}
/* The same page swapped in again: already risen, so no entrance. */
.beam-foot.settled .bf-col,
.beam-foot.settled .bf-lw,
.beam-foot.settled .bf-label::after { animation: none; }

@media (max-width: 760px) {
  .bf-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .bf-col:first-child { grid-column: 1 / -1; max-width: none; }
}

/* ---- sign-in panel sliding over the landing page ---- */

body.auth-open { overflow: hidden; }
body.auth-open main,
body.auth-open footer {
  transform: translateX(-100vw);
  opacity: 0;
}
body.auth-open header.top {
  transform: translateX(calc(-50% - 100vw));
  opacity: 0;
}
/* Only the slide lives here: what's inside is the same .auth-shell /login
   lays out, and .auth-shell's margin:auto centres it in this flex box. */
.story-auth {
  position: fixed; inset: 0; z-index: 5;
  display: flex;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  overflow-y: auto;
  transform: translateX(100vw);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.7s ease,
    visibility 0s linear 0.9s;
  will-change: transform;
}
body.auth-open .story-auth {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

/* ---- reveal on scroll ----------------------------------------------------
   Gated on html.js, which boot.js sets and then lifts again if the modules
   never turn up — so neither scripting being off nor a module failing to load
   can leave a page hidden. */

/* An animation, not a transition. A transition only runs if the browser
   painted the from-state first, and this class is added by a module during
   page load — whether a paint happened by then is a race, and the panel lost
   it every time, so its heading appeared instead of rising. Keyframes run
   from their first frame whenever they are attached, which makes the reveal
   the same on every page and on every connection. */
html.js .reveal { opacity: 0; }
html.js .reveal.in { animation: reveal-rise 0.7s ease forwards; }


@keyframes reveal-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

/* ---- responsive ---- */

@media (max-width: 720px) {
  header.top { top: 10px; width: calc(100% - 20px); padding: 9px 10px 9px 16px; border-radius: 16px; }
  .top-nav a { height: var(--ctl); padding: 0 12px; border-radius: 7px; } /* 16 − 9px padding */
  .wordmark { font-size: var(--t-ui); }
  /* The site menu's links fold into a dropdown behind a "menu" button, which
     the header script shows once it can open it; with no script there is no
     button, pricing and the blog stay in the footer, and the sections are a
     scroll away. The panel's tab strip, also .nav-links, keeps its own rules. */
  .site-nav .nav-links {
    display: none; position: absolute; top: calc(100% + 18px); right: -10px;
    flex-direction: column; align-items: stretch; gap: 2px;
    min-width: 12rem; margin: 0; padding: 6px;
    /* Solid: inside the header, which blurs its own backdrop, a blur of
       the dropdown's own would not reach the page behind it. */
    background: var(--overlay);
    border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
    box-shadow: var(--menu-shadow);
  }
  .site-nav .nav-links a { height: var(--ctl-lg); padding: 0 12px; border-radius: var(--radius); color: var(--text-2); }
  header.top.nav-open .site-nav .nav-links { display: flex; }
  header.top.nav-ready .nav-toggle {
    display: inline-flex; align-items: center;
    height: var(--ctl); padding: 0 12px; border-radius: 7px;
    color: var(--dim); font: 500 var(--t-meta) var(--sans);
    transition: color .15s, background-color .15s;
  }
  .nav-toggle:hover, header.top.nav-open .nav-toggle { color: var(--ink); background: var(--raised-hover); }
  .theme-toggle { width: var(--ctl); height: var(--ctl); border-radius: 7px; }
}
/* The wordmark, the menu, the theme switch and the call to action share a
   phone's width: each gives up a few pixels, so "open app →" still fits on
   one line at 320px. */
@media (max-width: 400px) {
  header.top { padding-left: 12px; }
  .wordmark { font-size: var(--t-meta); }
  .top-nav { gap: 2px; }
  header.top.nav-ready .nav-toggle { padding-inline: 8px; }
  .theme-toggle { width: var(--ctl-sm); height: var(--ctl-sm); }
  .top-nav .top-cta { padding-inline: 10px; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; animation: none; }
  .caret, header.top::before, header.top::after { animation: none; }
  .lp-deck-cards { transition: none; }
  .lp .lp-layer { transition-duration: .01ms; }
  main, footer, header.top, .story-auth { transition-duration: .01ms; }
  .bf-word:not(.in) .bf-lw { translate: none; }
  .bf-cols.in .bf-col, .bf-word.in .bf-lw, .bf-cols.in .bf-label::after { animation: none; }
  .bf-l, .bf-links a, .bf-links a::before, .bf-links a::after, .bf-note a { transition: none; }
}

/* ---- form and text primitives ----------------------------------------------
   Written for the public site directly. These used to be amber operations-panel
   rules that every blue page overrode one at a time, which is what made small
   changes here a specificity fight. */

.hidden { display: none !important; } /* must beat .stack's display:flex */
.quiet { color: var(--dim); }
.small { font-size: var(--t-meta); }
.mono { font-family: var(--mono); font-size: var(--t-ui); }
.err { color: var(--err); }

.stack { display: flex; flex-direction: column; gap: 1.35rem; }
label {
  display: flex; flex-direction: column; gap: 6px;
  color: var(--text-2);
  font: 500 var(--t-label)/1.3 var(--sans);
}
.hint { color: var(--dim); font-size: var(--t-meta); letter-spacing: 0; }

/* One text field for the whole site. On a touch screen the type never drops
   under 16px, below which iOS zooms the page in on every focus. */
:root { --field-min: 0px; }
@media (pointer: coarse) {
  :root { --field-min: 16px; }
}
input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"]), select {
  width: 100%; height: var(--ctl); padding: 0 10px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background-color: var(--field); color: var(--ink);
  font: 400 max(var(--t-meta), var(--field-min)) var(--sans);
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
select {
  appearance: none; padding-right: 28px; cursor: pointer;
  background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%238b909a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 9px center / 12px 12px no-repeat;
}
/* A transparent outline, not none: forced colours drop the ring and paint
   the outline, so focus still shows there. */
:is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"]), select, textarea):focus {
  outline: 2px solid transparent;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(28, 92, 255, .25);
}
:is(input, select, textarea)[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(var(--danger-rgb), .14);
}
:is(input:not([type="checkbox"], [type="radio"]), select, textarea):disabled {
  background-color: var(--raised); color: var(--faint); cursor: not-allowed;
}
/* A field's wrapper, which places it; the field draws its own focus. */
.field { position: relative; display: block; width: 100%; }

/* Reset rather than style: every button here carries a class that says what
   kind it is. Without this an unclassed one arrives in the platform's grey,
   which on a black page is the loudest thing on it. */
button {
  border: 0; border-radius: 0;
  background: none; color: inherit;
  font: 500 var(--t-meta) var(--sans); cursor: pointer;
}
[aria-busy="true"] { opacity: .55; cursor: progress; }

.row-between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }

.notice {
  margin: 1rem 0 0; padding: 8px 12px;
  border: 1px solid rgba(var(--sky-rgb), .25); border-radius: var(--radius);
  background: rgba(28, 92, 255, .07);
  color: var(--blue-soft);
  font: var(--t-meta)/1.5 var(--sans);
}
.notice.err { border-color: rgba(var(--danger-rgb), .3); background: rgba(var(--danger-rgb), .07); color: var(--err); }

.legal { max-width: 46rem; }

/* ---- authentication, reading and blog pages -------------------------------- */

body.auth-page {
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 68% 52%, rgba(28, 92, 255, 0.12), transparent 34%),
    radial-gradient(ellipse at 50% 115%, rgba(28, 92, 255, 0.17), transparent 48%),
    var(--bg);
}
/* The sign-in card's glow reaches past the card, and on a phone past the
   screen, where a phone widens the whole page to show it rather than clip it
   as body's overflow-x asks. Clipped here, at the screen's edges: on these
   pages main is as wide as the window. A reading page's main is a column,
   and holds no card. */
.home main, .auth-page:not(.read-page) main { overflow-x: clip; }
.auth-page main {
  position: relative; z-index: 1;
  max-width: none; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  padding: clamp(1.5rem, 4vw, 3.5rem);
}
.auth-shell {
  width: min(1020px, 100%);
  margin: auto;
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(360px, 1fr);
  gap: clamp(3rem, 8vw, 7.5rem);
  align-items: center;
}
/* Reset, verification and invite acceptance have no story column to balance,
   so they centre a single card under the wordmark. */
.auth-shell.solo {
  width: min(30rem, 100%);
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
.solo .auth-brand { margin-bottom: clamp(1.4rem, 4vh, 2.4rem); }

.auth-intro { max-width: 31rem; }
.auth-brand {
  display: inline-flex; align-items: center;
  margin-bottom: clamp(4rem, 9vh, 7rem);
  color: var(--ink); font: 500 var(--t-body) var(--mono);
  letter-spacing: -.02em;
}
.auth-brand:hover { text-decoration: none; }
.auth-brand span {
  width: 7px; height: 15px; margin-left: 4px;
  background: #1c5cff;
  box-shadow: 0 0 10px rgba(28, 92, 255, .7);
  animation: auth-caret 1.4s steps(1) infinite;
}
@keyframes auth-caret { 50% { opacity: .18; } }
.auth-kicker,
.auth-card-label,
.auth-status,
.auth-trust {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .16em;
}
.auth-kicker {
  margin: 0 0 1.1rem;
  color: var(--blue-hi); font-size: var(--t-micro);
}
/* h1 on /login, h2 inside the landing panel — same heading, one level down
   where the hero already holds the h1. See authshell-heading in the templates. */
.auth-intro :is(h1, h2) {
  max-width: 32rem; margin: 0;
  color: var(--ink);
  font: 500 clamp(2rem, 4vw, 3.5rem)/1.06 var(--serif);
  letter-spacing: -.02em;
  text-wrap: balance;
  text-shadow: 0 0 45px rgba(28, 92, 255, calc(.17 * var(--text-glow-k)));
}
.auth-intro :is(h1, h2)::before { content: none; }
.auth-copy {
  max-width: 29rem; margin: 1.5rem 0 1.8rem;
  color: var(--dim); font-size: var(--t-body); line-height: 1.65;
}
.auth-back {
  color: var(--faint); font: 500 var(--t-meta) var(--mono);
  transition: color .2s;
}
.auth-back:hover { color: var(--ink); text-decoration: none; }

.auth-card {
  position: relative; isolation: isolate;
  margin: 0; padding: clamp(1.5rem, 3vw, 2.15rem);
  border: 1px solid rgba(var(--hi-rgb), .2);
  border-radius: 18px;
  background: rgba(var(--well-rgb), .78);
  -webkit-backdrop-filter: blur(22px) saturate(125%);
  backdrop-filter: blur(22px) saturate(125%);
  box-shadow:
    0 28px 80px rgba(var(--shade-rgb), calc(.46 * var(--shade-k))),
    0 0 55px rgba(28, 92, 255, .1),
    inset 0 1px rgba(255, 255, 255, .035);
}
.auth-card::before {
  content: "";
  position: absolute; inset: -1px; z-index: -1;
  padding: 1px; border-radius: inherit;
  background: linear-gradient(135deg, rgba(var(--hi-rgb), .72), transparent 28%, transparent 68%, rgba(28, 92, 255, .5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.auth-card::after {
  content: "";
  position: absolute; inset: 12% -18% -18%; z-index: -2;
  border-radius: 45%; pointer-events: none;
  background: radial-gradient(ellipse, rgba(28, 92, 255, .28), transparent 68%);
  filter: blur(22px);
  opacity: .75;
}
.auth-card-head {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  margin-bottom: 1.45rem;
}
.auth-card-label { margin: 0; color: var(--text-2); font-size: var(--t-micro); }
/* Beats the amber, lowercased h2 the operations panel above sets. */
.auth-card h2 {
  margin: 0 0 .5rem;
  color: var(--ink);
  font: 600 var(--t-body)/1.2 var(--mono);
  letter-spacing: -.035em;
  text-transform: none;
}
.auth-card h2.err { color: var(--err); }
.auth-card .auth-copy { margin: 0 0 1.5rem; font-size: var(--t-ui); }
.auth-status {
  display: inline-flex; align-items: center; gap: .45rem;
  color: var(--faint); font-size: var(--t-micro); letter-spacing: .1em;
}
.auth-status i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 8px rgba(var(--ok-rgb), .65);
}
/* The password field under the login rows, deliberately quiet: it sits under
   a list nobody edits most visits. */
.login-confirm { margin: 1rem 0 0; max-width: 22rem; }

/* Social login. Outlined rather than filled: these sit above the primary
   submit, and a stack of solid buttons would outshout the control that
   actually finishes the form. */
.social-logins { display: grid; gap: .55rem; margin: 0 0 1.15rem; }
.social-logins form { margin: 0; }
.social-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: var(--ctl-lg); padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--raised); color: var(--ink);
  font: 500 var(--t-ui) var(--sans);
  transition: border-color .15s, background-color .15s;
}
.social-btn:hover { background: var(--raised-hover); }
.social-btn svg { flex: none; width: 20px; height: 20px; }
/* Google's button is Google's, not ours: its sign-in branding guidelines set
   the face (dark on the dark theme, light on the light), the stroke, the type
   colour and the G, and its brand review checks them. Hover is its own 8%
   wash of the type colour. The guidelines allow a pill or a rectangle with
   4px corners; the rectangle sits with the controls around it. */
.social-btn[data-provider="google"], .social-btn[data-provider="x"], .social-btn[data-provider="linkedin"] {
  min-height: 44px; padding: 0 12px; gap: 10px; border-radius: var(--radius-sm);
  font: 500 14px/20px Roboto, Arial, sans-serif; letter-spacing: .25px;
}
.social-btn[data-provider="google"], .social-btn[data-provider="linkedin"] { border-color: #8e918f; background: #131314; color: #e3e3e3; }
.social-btn[data-provider="google"]:hover, .social-btn[data-provider="linkedin"]:hover { border-color: #8e918f; background: #242425; }
:root[data-theme="light"] .social-btn[data-provider="google"],
:root[data-theme="light"] .social-btn[data-provider="linkedin"] {
  border-color: #747775; background: #fff; color: #1f1f1f;
}
:root[data-theme="light"] .social-btn[data-provider="google"]:hover,
:root[data-theme="light"] .social-btn[data-provider="linkedin"]:hover { background: #ededed; }
/* X's mark is only ever black or white, so its button keeps Google's cut and
   stroke, which it sits under, and swaps the face for pure black or white:
   the mark takes the text colour. */
.social-btn[data-provider="x"] { border-color: #8e918f; background: #000; color: #fff; }
.social-btn[data-provider="x"]:hover { border-color: #8e918f; background: #1d1d1d; }
:root[data-theme="light"] .social-btn[data-provider="x"] {
  border-color: #747775; background: #fff; color: #000;
}
:root[data-theme="light"] .social-btn[data-provider="x"]:hover { background: #ededed; }
/* LinkedIn's button wears Google's faces rather than LinkedIn's blue one: a
   filled blue button would outshout X's, which X's policy wants at least as
   prominent as any other. LinkedIn allows its [in] mark only blue, black or
   white and unaltered, and prefers blue on white: blue on the light face,
   white on the dark. */
.social-btn[data-provider="linkedin"] svg { color: #fff; }
:root[data-theme="light"] .social-btn[data-provider="linkedin"] svg { color: #0a66c2; }
.social-divider {
  display: flex; align-items: center; gap: .8rem;
  margin: 0 0 1.25rem;
  color: var(--dim);
  font: var(--t-label) var(--sans);
}
.social-divider::before, .social-divider::after {
  content: ""; flex: 1; height: 1px;
  background: var(--line-strong);
}

.auth-card .stack { gap: 1rem; margin-top: 0; }
/* The card's fields at the call-to-action height: a sign-in is the whole
   page, and its fields are what the eye is there for. */
.auth-card input:not([type="checkbox"], [type="radio"]) {
  height: var(--ctl-lg); padding: 0 12px;
  font-size: max(var(--t-ui), var(--field-min));
}
.auth-card .row-between { margin: .25rem 0 0; }
.auth-submit {
  display: inline-flex; justify-content: center; align-items: center; gap: 10px;
  /* The arrow side is 2px tighter than the text side; equal padding reads as
     the arrow being pushed out past the label. */
  min-width: 8.5rem; height: var(--ctl-lg); padding: 0 16px 0 18px;
  border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius);
  background: var(--blue); color: #fff;
  font: 500 var(--t-ui)/1 var(--sans);
  transition: background-color .15s;
}
.auth-submit span { transition: transform .2s var(--ease-out); }
.auth-submit:hover { background: var(--blue-hover); }
.auth-submit:hover span { transform: translateX(3px); }
.auth-submit:active { background: var(--blue-press); }
/* Consent's Allow, with every permission cleared: the press would decline. */
.auth-submit:disabled, .auth-submit:disabled:hover {
  opacity: .4; cursor: not-allowed; background: var(--blue);
}
.auth-submit:disabled:hover span { transform: none; }
/* In a column of fields the control sizes to its label; stretching it to the
   field width makes the form read as two stacked inputs. */
.stack > .auth-submit, a.auth-submit { align-self: flex-start; }
a.auth-submit:hover { text-decoration: none; color: #fff; }
.auth-card [data-auth-forgot] { font: 500 var(--t-meta) var(--sans); }
.auth-card [data-auth-forgot]:hover { color: var(--blue-soft); text-decoration: none; }
.auth-form-note { margin: 0 0 .3rem; color: var(--dim); font-size: var(--t-ui); }

/* The sign-in code: a real input stretched invisibly over eight drawn cells
   (otp.js). The input keeps focus, selection and autofill; the cells only
   show what it holds. */
.otp { position: relative; display: block; }
.otp > .otp-cells + input {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; padding: 0;
  border: 0; border-radius: 0; background: transparent; box-shadow: none;
  color: transparent; caret-color: transparent;
  transition: none;
}
.otp > .otp-cells + input:focus { background: transparent; }
.otp > .otp-cells + input::selection { background: transparent; color: transparent; }
/* Kept for screen readers, which hear it as the field's hint; the cells already
   show it. */
.otp > .otp-cells + input::placeholder { color: transparent; }
/* Safari's autofill paints the field yellow, over the cells. */
.otp > .otp-cells + input:autofill {
  -webkit-text-fill-color: transparent;
  transition: background-color 0s 600000s;
}
.otp-cells { display: flex; align-items: center; gap: .45rem; }
.otp-cell {
  flex: 1 1 0; min-width: 0; max-width: 3.1rem; height: 3.25rem;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--field);
  color: var(--ink);
  font: 500 var(--t-body) var(--mono);
  font-variant-numeric: tabular-nums;
  transition: border-color .15s, box-shadow .15s;
}
.otp-cell > span, .otp-cell::after { grid-area: 1 / 1; }
.otp-cell.filled { border-color: var(--edge); }
.otp-cell.active { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(28, 92, 255, .25); }
/* A text caret of its own rather than the wordmark's block: a thin bar that
   breathes instead of snapping on and off, so the field reads as waiting
   for input, not as the logo repeated. */
.otp-cell.active:not(.filled)::after {
  content: "";
  width: 2px; height: 1.3rem;
  border-radius: 1px;
  background: var(--blue-hi);
  animation: otp-caret 1.1s ease-in-out infinite;
}
@keyframes otp-caret { 50% { opacity: .12; } }
.otp-sep { flex: 0 0 .7rem; height: 1px; background: var(--edge); }
.otp.err .otp-cell { border-color: var(--danger); box-shadow: none; }
.otp.err .otp-cell > span { color: var(--err); }
.auth-trust {
  margin: 1.5rem 0 0; padding-top: 1rem;
  border-top: 1px solid rgba(var(--tint-rgb), .1);
  color: var(--faint); font-size: var(--t-micro); line-height: 1.6; text-align: center;
  /* Three claims that no longer fit on one line at a readable size. Balanced,
     so it breaks into two even lines instead of orphaning "revocable access"
     under a full one. */
  letter-spacing: .1em; text-wrap: balance;
}

/* Legal pages: the same cool-blue ground as login, but a reading column
   instead of a centred card. */
/* The login pages paint their glow straight onto the body, which is fine when
   nothing scrolls. These documents do scroll — and so does the control panel,
   which shares this ground — so the glow moves to its own fixed layer;
   background-attachment: fixed would repaint the whole viewport on every
   scroll frame. */
.read-page, .panel-page { background: var(--bg); }
.read-page::before, .panel-page::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 68% 52%, rgba(28, 92, 255, 0.12), transparent 34%),
    radial-gradient(ellipse at 50% 115%, rgba(28, 92, 255, 0.17), transparent 48%);
}
.read-page main {
  display: block; min-height: 0;
  width: min(46rem, 100%); margin-inline: auto;
  padding: clamp(2.5rem, 7vh, 5rem) clamp(1.25rem, 5vw, 2rem) 3rem;
}
.read-page .auth-brand { margin-bottom: clamp(2rem, 6vh, 3.2rem); }
/* The menu is fixed over the page, so the column starts below it — where the
   wordmark it replaces would have ended. */
.read-page header.top + main { padding-top: calc(86px + clamp(2rem, 6vh, 3.2rem)); }
.read-page .legal { max-width: none; }
.read-page h1 {
  margin: 0 0 .5rem;
  color: var(--ink);
  font: 500 var(--t-h2)/1.1 var(--serif);
  letter-spacing: -.02em;
}
.read-page h1::before { content: none; }
.read-page h2 {
  margin: 2.4rem 0 .55rem;
  color: var(--blue-soft);
  font: 600 var(--t-body) var(--mono);
  letter-spacing: -.01em; text-transform: none;
}
/* main, not the page: the menu above and the footer below keep their own
   type and colours. :where keeps these rules, and the list rules further
   down, at the weight they had before they were scoped. */
.read-page :where(main) p { margin: 0 0 .9rem; color: var(--text-2); font-size: var(--t-body); line-height: 1.7; }
.read-page :where(main) a { color: var(--blue-soft); }
.read-page .quiet { color: var(--dim); }
.read-page .mono { font-family: var(--mono); color: var(--text-1); }
.read-page .legal-nav { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(var(--tint-rgb), .12); }
/* Cross-document transitions: a full navigation crossfades instead of
   flashing white. Browsers without support navigate exactly as before. The
   same rule lives in the marketing stylesheet — both documents in a
   navigation have to opt in for it to happen. */
@view-transition { navigation: auto; }

/* The post title is a shared element: the browser moves the same box from its
   row on the index to the article heading. Slower than the surrounding
   crossfade, because it is the thing worth following. */
::view-transition-group(*) { animation-duration: .3s; }
::view-transition-group(post-title) {
  animation-duration: .45s;
  animation-timing-function: cubic-bezier(.4, 0, .2, 1);
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
}

/* After every swap the router lands focus on the new page's h1 so a screen
   reader follows the navigation. The move is the router's, not the reader's,
   so no page draws a ring for it — one rule at the router's level rather
   than a copy per page. */
#page h1:focus-visible { outline: none; }

.read-head { margin-bottom: 2.6rem; }
.read-head .quiet { margin: .6rem 0 0; }

/* The blog index and the tools index: the first two large, the rest three
   across, each a cover over its line and title. No card around them, a cover
   is already an object. The blog's line is a date; a tool's is its network. */
.read-page main:has(> .post-grid) { width: min(70rem, 100%); }
.read-page .post-grid {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2.4rem 1.4rem;
  list-style: none; margin: 0; padding: 0;
}
.read-page .post-grid li { grid-column: span 2; min-width: 0; margin: 0; }
.read-page .post-grid li:nth-child(-n+2) { grid-column: span 3; }
/* A cover sits in a frame, so it can grow inside it under the pointer without
   moving the text below. The frame takes the edge the image had. */
.post-grid .cover-frame {
  display: block; overflow: hidden; margin: 0 0 .5rem; border-radius: var(--radius-lg);
  outline: 1px solid var(--image-edge); outline-offset: -1px;
  transition: outline-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.read-page .post-grid img { display: block; margin: 0; border-radius: 0; outline: 0; transition: scale .5s var(--ease-out); }
.post-grid a:is(:hover, :focus-visible) img { scale: 1.035; }
.post-grid a:is(:hover, :focus-visible) .cover-frame {
  outline-color: rgba(var(--sky-rgb), .6); box-shadow: 0 12px 40px -14px rgba(28, 92, 255, .5);
}
.post-grid a:active img { scale: 1.015; }
/* Cards arrive in reading order when the page opens. The rows further down
   rise as they are scrolled to, where the browser can tie that to the scroll;
   elsewhere they have arrived before anyone gets there. translate, not
   transform, so the arrival and the cover's hover scale stay apart. */
@media (prefers-reduced-motion: no-preference) {
  .post-grid li { animation: post-arrive .6s var(--ease-out) backwards; }
  /* The first two hold the page's largest image. They slide without the
     fade, so the browser counts that image as painted from the first frame. */
  .post-grid li:nth-child(-n+2) { animation-name: post-settle; }
  .post-grid li:nth-child(2) { animation-delay: 60ms; }
  .post-grid li:nth-child(3) { animation-delay: 120ms; }
  .post-grid li:nth-child(4) { animation-delay: 180ms; }
  .post-grid li:nth-child(5) { animation-delay: 240ms; }
  .post-grid li:nth-child(n+6) { animation-delay: 300ms; }
  @supports (animation-timeline: view()) {
    .post-grid li:nth-child(n+6) {
      animation: post-arrive linear both; animation-timeline: view(); animation-range: entry 0% entry 70%;
    }
  }
}
@keyframes post-arrive { from { opacity: 0; translate: 0 16px; } }
@keyframes post-settle { from { translate: 0 16px; } }
/* The index narrows to one topic. Links, not buttons: each list has its own
   address, so the choice survives a reload and can be sent to someone. Drawn
   as the site's small switch; the picked one keeps a name across the page
   swap, so the browser slides it from the old choice to the new. */
.read-head:has(+ .post-topics) { margin-bottom: 1.5rem; }
.read-page .post-topics {
  display: inline-flex; flex-wrap: wrap; gap: 2px; margin: 0 0 2.2rem; padding: 2px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--raised);
}
.read-page .post-topics a {
  display: flex; align-items: center; gap: .45rem; height: var(--ctl-sm); padding: 0 12px; border-radius: var(--radius);
  color: var(--text-2); font: 500 var(--t-meta) var(--sans);
  transition: background-color .15s, color .15s;
}
.read-page .post-topics a:hover { color: var(--ink); text-decoration: none; }
.read-page .post-topics a[aria-current] {
  background: var(--surface-hi); color: var(--ink); view-transition-name: post-topic;
  box-shadow: 0 1px 2px rgba(var(--shade-rgb), calc(.3 * var(--shade-k))), 0 0 0 1px var(--line-strong);
}
.read-page .post-topics a:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 2px; }
.post-topics-n { color: var(--faint); font: 400 var(--t-micro) var(--mono); font-variant-numeric: tabular-nums; }
/* Past one page of posts, the way to the next and the one before. */
.read-page .post-pager {
  display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.6rem; padding-top: 1.2rem;
  border-top: 1px solid rgba(var(--tint-rgb), .12); font: 500 var(--t-meta) var(--mono);
}
.post-pager a[rel="next"] { margin-left: auto; }
/* A post ends with three more to read, in the index's own cards at one size.
   They rise as they are scrolled to, not when the page opens above them. */
.post .post-next { margin-top: 2.8rem; }
.post .post-next-title { margin: 0 0 1.1rem; color: var(--ink); font: 500 var(--t-lede)/1.3 var(--serif); }
.read-page .post .post-grid { gap: 1.4rem 1rem; }
.read-page .post .post-grid li, .read-page .post .post-grid li:nth-child(-n+2) { grid-column: span 2; }
.read-page .post .post-grid li:nth-child(-n+2) .post-title { font-size: var(--t-body); line-height: 1.25; }
/* The post's link rule underlines every link in it; a card is not a link in a sentence. */
.read-page .post .post-grid a { text-decoration: none; }
@media (max-width: 600px) {
  .read-page .post .post-grid li, .read-page .post .post-grid li:nth-child(-n+2) { grid-column: auto; }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .read-page .post .post-grid li { animation: post-arrive linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .post-grid .cover-frame, .read-page .post-grid img { transition: none; }
  .post-grid a:is(:hover, :focus-visible, :active) img { scale: none; }
}
.read-page .post-grid li:nth-child(-n+2) .post-title { font-size: var(--t-section); line-height: 1.15; }
.post-grid a { display: flex; flex-direction: column; gap: .4rem; color: inherit; }
.post-grid a:hover { text-decoration: none; }
.post-grid .post-title { text-wrap: balance; }
@media (max-width: 860px) {
  .read-page .post-grid li { grid-column: span 3; }
  .read-page .post-grid li:nth-child(-n+2) .post-title { font-size: var(--t-lede); line-height: 1.25; }
}
@media (max-width: 600px) {
  .read-page .post-grid { grid-template-columns: minmax(0, 1fr); }
  .read-page .post-grid li, .read-page .post-grid li:nth-child(-n+2) { grid-column: auto; }
  .read-page .post-grid .post-title { font-size: var(--t-lede); }
  .post-grid .post-summary { display: none; }
}

.post-meta {
  color: var(--faint);
  font: 500 var(--t-micro) var(--mono);
  text-transform: uppercase; letter-spacing: .13em;
}
.post-title {
  color: var(--ink);
  font: 500 var(--t-body)/1.25 var(--serif);
  letter-spacing: -.01em;
  transition: color .2s;
}
.post-grid a:hover .post-title { color: var(--blue-soft); }
.post-summary { color: var(--text-3); font-size: var(--t-ui); line-height: 1.6; }

/* Post bodies come from markdown, so every element it can emit needs a rule
   here. */
.post .read-head .post-meta { margin: 0 0 .9rem; font-size: var(--t-micro); line-height: 1.6; }
.post .read-head .post-meta a { color: var(--faint); }
.post .post-cover { display: block; margin: 0 0 2.6rem; }
.read-page h3 {
  margin: 1.9rem 0 .5rem;
  color: var(--text-2);
  font: 600 var(--t-ui) var(--mono);
  letter-spacing: .02em;
}
.read-page :where(main) :is(ul, ol) { margin: 0 0 1rem; padding-left: 1.4rem; color: var(--text-2); font-size: var(--t-body); line-height: 1.7; }
.read-page :where(main) li { margin-bottom: .35rem; }
.read-page strong { color: var(--ink); font-weight: 600; }
.read-page code {
  padding: .1em .38em; border-radius: 4px;
  border: 1px solid rgba(var(--tint-rgb), .14);
  background: rgba(28, 92, 255, .07);
  color: var(--blue-pale);
  font: .84em var(--mono);
}
.read-page pre {
  margin: 0 0 1.2rem; padding: .95rem 1.1rem;
  border: 1px solid rgba(var(--tint-rgb), .14); border-radius: 10px;
  background: rgba(var(--well-rgb), .6);
  overflow-x: auto;
}
.read-page pre code { padding: 0; border: 0; background: none; font-size: var(--t-meta); line-height: 1.6; }
.read-page blockquote {
  margin: 0 0 1.2rem; padding: .2rem 0 .2rem 1.1rem;
  border-left: 2px solid rgba(var(--sky-rgb), .45);
  color: var(--text-3); font-size: var(--t-body);
}
.read-page blockquote p:last-child { margin-bottom: 0; }
/* A neutral hairline, white on dark and ink on light, not the blue one the
   rest of the page uses: an outline that picks up a tint reads as dirt along
   the image edge. Inset, so it costs the image no layout. */
.read-page img {
  max-width: 100%; height: auto; border-radius: var(--radius-lg); margin: .4rem 0 1.2rem;
  outline: 1px solid var(--image-edge); outline-offset: -1px;
}
.read-page hr { margin: 2.2rem 0; border: 0; border-top: 1px solid rgba(var(--tint-rgb), .12); }
.read-page table { width: 100%; margin: 0 0 1.2rem; border-collapse: collapse; font-size: var(--t-ui); }
.read-page :is(th, td) { padding: .5rem .6rem; border-bottom: 1px solid rgba(var(--tint-rgb), .12); text-align: left; }
.read-page th { color: var(--text-2); font: 600 var(--t-micro) var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.read-page td { color: var(--text-2); }

/* A blog post, and /about, which shares its article: the panel's cards for
   tables and lists, and quotes as chat, because a post only quotes a
   conversation with an agent. All of it styles what Markdown renders, so no
   post has to change. */
.post h1 { margin-bottom: 1rem; font-size: clamp(2.2rem, 4.4vw, 3rem); line-height: 1.08; text-wrap: balance; }
.post h2 { margin: 3rem 0 .9rem; color: var(--ink); font: 500 var(--t-section)/1.2 var(--serif); letter-spacing: -.015em; text-wrap: balance; }
.post h3 { margin: 2rem 0 .5rem; color: var(--blue-soft); font: 600 var(--t-ui) var(--mono); letter-spacing: .01em; }
.post .post-lede { margin-top: 1.1rem; color: var(--text-1); font-size: var(--t-lede); line-height: 1.5; }
.post > :is(p, ul, ol) { color: var(--text-1); }
.post > :not(.read-head, .legal-nav) a {
  text-decoration: underline; text-decoration-thickness: 1px;
  text-decoration-color: rgba(var(--sky-rgb), .45); text-underline-offset: .2em;
}
.post > :not(.read-head, .legal-nav) a:hover { text-decoration-color: currentColor; }
/* A link that leaves the site opens in a new tab (the renderer sets the
   target), and a chip with an arrow says so before the click. The chip is one
   mask over the link colour: a faint square and a solid arrow, so it follows
   the theme with no second rule. The second content line gives it a spoken
   name; a browser that can't read that line keeps the first. */
.post a[target="_blank"]::after {
  content: "";
  content: "" / " (opens in a new tab)";
  display: inline-block; width: 1.02em; height: 1.02em; margin-left: .26em; vertical-align: -.16em;
  background: var(--blue-soft);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect width='16' height='16' rx='3.7' fill-opacity='.15'/%3E%3Cpath d='M5.5 10.5 10.5 5.5M6.6 5.5h3.9v3.9' fill='none' stroke='%23000' stroke-width='1.05' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect width='16' height='16' rx='3.7' fill-opacity='.15'/%3E%3Cpath d='M5.5 10.5 10.5 5.5M6.6 5.5h3.9v3.9' fill='none' stroke='%23000' stroke-width='1.05' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .16s ease-out;
}
.post a[target="_blank"]:is(:hover, :focus-visible)::after { transform: translate(.06em, -.06em); }
@media (prefers-reduced-motion: reduce) {
  .post a[target="_blank"]::after { transition: none; }
  .post a[target="_blank"]:is(:hover, :focus-visible)::after { transform: none; }
}
/* Forced colours repaint a background with the page's, which would erase the
   chip; it keeps its fill and takes the system's link colour instead. */
@media (forced-colors: active) {
  .post a[target="_blank"]::after { forced-color-adjust: none; background: LinkText; }
}
.post table {
  margin: 1.2rem 0 1.6rem;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  border-collapse: separate; border-spacing: 0; overflow: hidden;
  background: rgba(var(--well-rgb), .6);
  font-size: var(--t-cell); font-variant-numeric: tabular-nums;
}
.post :is(th, td) { padding: .7rem .95rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.post th { background: var(--raised); color: var(--text-3); }
.post td { color: var(--ink); }
.post td:first-child { color: var(--text-3); }
.post tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 460px) {
  .post :is(th, td) { padding: .6rem .55rem; }
}
/* A table wider than a phone scrolls sideways in its own box, rather than
   widening the page under it. As wide as its content up to the column. */
@media (max-width: 720px) {
  .read-page table { display: block; width: fit-content; max-width: 100%; overflow-x: auto; }
}
.post > ul {
  margin: 1.1rem 0 1.5rem; padding: 0; list-style: none;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: rgba(var(--well-rgb), .6);
}
.post > ul > li { margin: 0; padding: .7rem .95rem; border-top: 1px solid var(--line); line-height: 1.55; }
.post > ul > li:first-child { border-top: 0; }
.post > ol { margin: 1.1rem 0 1.5rem; padding: 0; list-style: none; counter-reset: step; }
.post > ol > li {
  position: relative; margin: 0 0 .55rem; padding: .7rem .95rem .7rem 3.1rem;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: rgba(var(--well-rgb), .6);
  counter-increment: step; line-height: 1.55;
}
.post > ol > li::before {
  content: counter(step);
  position: absolute; left: .85rem; top: .72rem;
  display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: rgba(var(--tint-rgb), .14); color: var(--blue-soft);
  font: 600 var(--t-meta) var(--mono);
}
/* A flow figure: the words of a process drawn as a pipeline, a row of
   steps in the wide column and a column of them on a phone. The text stays
   text, so the page reads the same to a screen reader or a crawler. */
.post .post-flow { margin: 1.4rem 0 1.8rem; }
.post .post-flow :is(ul, ol) { margin: 0; padding: 0; list-style: none; }
.post .flow-in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.post .flow-in li, .post .flow-out {
  margin: 0; padding: .5rem .75rem; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg);
  color: var(--text-2); font-size: var(--t-meta); line-height: 1.35;
}
.post .flow-in small { display: block; margin-top: .15rem; color: var(--faint); font: var(--t-micro)/1.35 var(--mono); }
.post .post-flow .flow-steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.05rem; margin: 1.5rem 0; counter-reset: flow; }
.post .flow-steps li {
  position: relative; margin: 0; padding: .6rem .6rem .7rem;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(var(--well-rgb), .6);
  counter-increment: flow; color: var(--text-3); font-size: var(--t-micro); line-height: 1.4;
}
.post .flow-steps b { display: block; margin-bottom: .3rem; color: var(--ink); font: 600 var(--t-meta)/1.2 var(--mono); white-space: nowrap; }
.post .flow-steps b::before { content: counter(flow) " "; color: var(--blue-soft); }
.post .flow-steps .flow-key { border-color: rgba(var(--tint-rgb), .6); background: rgba(var(--tint-rgb), .08); }
/* Chevrons between the steps, into the first and out of the last. */
.post .flow-steps li::after, .post .flow-steps li:first-child::before, .post .flow-out::before {
  content: ""; position: absolute; width: .42rem; height: .42rem;
  border-top: 1.5px solid var(--faint); border-right: 1.5px solid var(--faint);
}
.post .flow-steps li::after { right: -.72rem; top: 50%; transform: translateY(-50%) rotate(45deg); }
.post .flow-steps li:last-child::after { display: none; }
.post .flow-steps li:first-child::before { left: 50%; top: -1rem; transform: translateX(-50%) rotate(135deg); }
.post .flow-out { position: relative; width: fit-content; margin: 0 0 0 auto; border-style: solid; color: var(--ink); }
.post .flow-out::before { left: 50%; top: -1rem; transform: translateX(-50%) rotate(135deg); }
.post .post-flow figcaption { margin-top: .8rem; color: var(--faint); font-size: var(--t-micro); }
@media (max-width: 720px) {
  .post .flow-in, .post .post-flow .flow-steps { grid-template-columns: minmax(0, 1fr); }
  .post .post-flow .flow-steps { gap: .9rem; }
  .post .flow-steps li { font-size: var(--t-meta); }
  .post .flow-steps li::after { right: auto; left: 1.2rem; top: auto; bottom: -.72rem; transform: rotate(135deg); }
  .post .flow-steps li:first-child::before { left: 1.2rem; transform: rotate(135deg); }
  .post .flow-out { margin-left: 0; }
  .post .flow-out::before { left: 1.2rem; transform: rotate(135deg); }
}
/* A post's live preview of the anti-AI font: the generator's own drawing in
   a frame the width of the column, always in the video's colors whatever the
   theme. The post keeps it hidden until its script has drawn it, so with no
   script, or one that did not arrive, there is no empty frame. */
.post .post-motion { margin: 1.4rem 0 1.8rem; }
.post .post-motion-stage {
  position: relative; aspect-ratio: 8 / 3; overflow: hidden;
  border-radius: var(--radius-lg); background: #05070c; box-shadow: 0 0 0 1px var(--line-strong);
}
.post .post-motion-stage canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; cursor: pointer; }
.post .post-motion-toggle {
  position: absolute; left: 12px; bottom: 12px; display: grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%;
  background: rgba(8, 10, 14, .78); backdrop-filter: blur(10px); color: #fff;
  transition: background-color .2s, transform .3s var(--ease-out);
}
.post .post-motion-toggle:hover { background: rgba(8, 10, 14, .92); }
.post .post-motion-toggle:active { transform: scale(.94); }
/* The icon of what a press does next: two bars while it plays, a triangle
   once it is paused, nudged right because its weight sits left of its box. */
.post .post-motion-toggle::before {
  content: ""; width: 12px; height: 14px;
  background: linear-gradient(90deg, currentColor 0 4px, transparent 4px 8px, currentColor 8px);
}
.post .post-motion[data-state="paused"] .post-motion-toggle::before {
  width: 13px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); translate: 1px 0;
}
.post .post-motion figcaption { margin-top: .6rem; color: var(--faint); font-size: var(--t-meta); text-align: center; }
/* On a phone the frame is short, and a full-size button would sit on the
   letters. The dots take a press too. */
@media (max-width: 30rem) {
  .post .post-motion-toggle { left: 8px; bottom: 8px; width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .post .post-motion-toggle { transition: none; }
}
/* Forced colours repaint a background with the page's, which would erase an
   icon drawn as one; it keeps its shape in the system's button text. */
@media (forced-colors: active) {
  .post .post-motion-toggle::before {
    forced-color-adjust: none;
    background: linear-gradient(90deg, ButtonText 0 4px, transparent 4px 8px, ButtonText 8px);
  }
  .post .post-motion[data-state="paused"] .post-motion-toggle::before { background: ButtonText; }
}
/* A post's life in For You: a 48-hour bar with its first two hours filled,
   drawn to scale so the reader sees how short the boost window is. The cards
   under it carry the words; the bar adds only the proportion. */
.post .post-life { margin: 1.4rem 0 1.8rem; }
.post .life-bar {
  position: relative; height: .7rem; overflow: hidden;
  border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(var(--well-rgb), .6);
}
.post .life-bar::before { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(100% * 2 / 48); background: var(--blue); }
.post .life-keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; margin: .8rem 0 0; padding: 0; list-style: none; }
.post .life-keys li {
  margin: 0; padding: .6rem .7rem .7rem;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(var(--well-rgb), .6);
  color: var(--text-3); font-size: var(--t-meta); line-height: 1.4;
}
.post .life-keys b { display: block; margin-bottom: .3rem; color: var(--ink); font: 600 var(--t-meta)/1.2 var(--mono); }
.post .life-keys .life-key { border-color: rgba(var(--tint-rgb), .6); background: rgba(var(--tint-rgb), .08); }
.post .post-life figcaption { margin-top: .8rem; color: var(--faint); font-size: var(--t-micro); }
@media (max-width: 720px) {
  .post .life-keys { grid-template-columns: minmax(0, 1fr); }
}
/* Motion a post ties to the scroll, where the browser can do that itself, so
   no script runs while someone reads.
   - A line across the top grows from the moment the post fills the window to
     the moment its end comes up: how far through the reader is.
   - The 48-hour figure draws its two hours and sets down its three cards as
     it is scrolled to; the flow figure's steps come up in their order. */
@supports (animation-timeline: view()) {
  .post-shell > .post { view-timeline: --post-read block; }
  .post-shell > .post::before {
    content: ""; position: fixed; inset: 0 0 auto; z-index: 30; height: 2px;
    background: var(--blue); transform-origin: 0 50%; scale: 0 1;
    animation: post-read linear both; animation-timeline: --post-read; animation-range: contain 0% contain 100%;
  }
  @media (prefers-reduced-motion: no-preference) {
    .post :is(.post-life, .post-flow) { view-timeline: --post-figure block; }
    .post .life-bar::before { transform-origin: 0 50%; animation: figure-draw linear both; animation-timeline: --post-figure; animation-range: cover 18% cover 42%; }
    .post :is(.life-keys, .flow-steps) > li { animation: figure-step linear both; animation-timeline: --post-figure; animation-range: cover 8% cover 26%; }
    .post :is(.life-keys, .flow-steps) > li:nth-child(2) { animation-range: cover 12% cover 30%; }
    .post :is(.life-keys, .flow-steps) > li:nth-child(3) { animation-range: cover 16% cover 34%; }
    .post .flow-steps > li:nth-child(4) { animation-range: cover 20% cover 38%; }
    .post .flow-steps > li:nth-child(5) { animation-range: cover 24% cover 42%; }
    .post .flow-steps > li:nth-child(6) { animation-range: cover 28% cover 46%; }
  }
}
@keyframes post-read { to { scale: 1 1; } }
@keyframes figure-draw { from { scale: 0 1; } }
@keyframes figure-step { from { opacity: 0; translate: 0 12px; } }
/* On paper nothing scrolls into view, so nothing may wait for it. */
@media print {
  .post-grid li, .post :is(.life-keys, .flow-steps) > li, .post .life-bar::before { animation: none !important; }
  .post-shell > .post::before { display: none; }
}
/* A screenshot in a post. Centred, because a dialog is narrower than the
   column. The image's own margin goes, or it would open a gap above the
   caption. */
.post :is(.post-shot, .post-demo) { margin: 1.3rem 0 1.7rem; }
.post .post-shot img { display: block; margin: 0 auto; }
.post :is(.post-shot, .post-demo) figcaption { margin-top: .6rem; color: var(--faint); font-size: var(--t-meta); text-align: center; }
/* The composer demo, framed from /embed/compose-demo at a phone's width so it
   plays the phone's steps. Its height, set in the post, holds the composer
   and the line under it at that line's lowest, as it sits while hidden: the
   post never moves while it plays, and nothing scrolls inside the frame. */
.post .post-demo iframe { display: block; max-width: 100%; margin: 0 auto; border: 0; }
/* A screenshot opens larger over the page when clicked (post-zoom.js), and
   grows from where it sat where the browser can animate that. */
.post .post-shot .shot-open {
  display: block; width: fit-content; max-width: 100%; margin: 0 auto; padding: 0; border: 0;
  border-radius: var(--radius-lg); background: none; cursor: zoom-in;
}
.post .post-shot .shot-open:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 3px; }
.shot-zoom {
  inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 4vmin; border: 0;
  background: rgba(var(--well-rgb), .88); cursor: zoom-out;
}
/* One cell that cannot grow past the window, so a tall picture is fitted to
   it instead of stretching the row and scrolling. */
.shot-zoom[open] { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; }
.shot-zoom::backdrop { background: none; }
.shot-zoom img {
  width: auto; height: auto; max-width: 100%; max-height: 100%; margin: 0;
  border-radius: var(--radius-lg); outline: 1px solid var(--image-edge); outline-offset: -1px;
}
::view-transition-group(shot-zoom) { animation-duration: .35s; animation-timing-function: var(--ease-out); }
.post > :is(ul, ol) > li > p { font: inherit; }
.post > :is(ul, ol) > li > p:last-child { margin-bottom: 0; }
.post pre { border-radius: var(--radius-lg); }
.post blockquote {
  width: fit-content; max-width: min(34rem, 92%); margin: 1rem 0 1.3rem; padding: .75rem 1.05rem;
  border: 1px solid rgba(var(--sky-rgb), .3); border-radius: 16px 16px 16px 4px;
  background: rgba(var(--tint-rgb), .09);
  color: var(--ink); line-height: 1.5;
}
.post blockquote p { color: inherit; font: inherit; }
/* A paragraph written bold from start to end is the post's key passage: a
   rule down its left side and the words in ink at reading weight, a note in
   the margin rather than a block of bold. */
.post .post-key { margin: 1.2rem 0 1.5rem; padding: .15rem 0 .15rem 1.1rem; border-left: 3px solid var(--blue); }
.post .post-key strong { color: var(--ink); font-weight: 500; }
/* Ids from the markdown let a link land on a section; the margin keeps the
   heading clear of the fixed menu. */
.post :is(h2, h3)[id] { scroll-margin-top: 104px; }
/* Faint until the heading is hovered: there for whoever wants the address,
   out of the way of reading. Touch has no hover, so it stays faint there. */
.post :is(h2, h3) > .heading-anchor {
  margin-left: .45rem; color: var(--faint);
  font: 400 .78em var(--mono); text-decoration: none; user-select: none;
  opacity: .45; transition: opacity .2s, color .2s;
}
.post :is(h2, h3):hover > .heading-anchor { opacity: 1; color: var(--blue-soft); }
/* Following the # also copies the section's address; post-links.js says so
   here for a moment. */
.post :is(h2, h3) > .heading-anchor[data-said] { opacity: 1; color: var(--blue-soft); }
.post :is(h2, h3) > .heading-anchor[data-said]::after {
  content: attr(data-said); margin-left: .5em;
  font: 500 var(--t-micro) var(--mono); letter-spacing: .1em; text-transform: uppercase;
  animation: said-in .25s var(--ease-out) backwards;
}
@keyframes said-in { from { opacity: 0; translate: -4px 0; } }
@media (prefers-reduced-motion: reduce) {
  .post :is(h2, h3) > .heading-anchor[data-said]::after { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .post :is(h2, h3) > .heading-anchor { transition: none; }
}

/* A question folds over its answer, set as a chat: the reader asks in a blue
   bubble, as they would ask their agent, and opening it brings the reply.
   The summary is only as wide as its bubble, so the empty side of the row
   is not a hidden button and the focus ring hugs the bubble. The heading's
   # stays out: a link inside the bubble would split it in two. */
.post > details.post-faq { margin: 0 0 .7rem; }
.post > :not(details.post-faq) + details.post-faq { margin-top: 1.2rem; }
.post > details.post-faq[open] { margin-bottom: 1.3rem; }
.post > details.post-faq:not(:has(+ details.post-faq)) { margin-bottom: 1.8rem; }
.post-faq > summary {
  width: fit-content; max-width: 85%; margin-left: auto;
  border-radius: 16px 16px 4px 16px; list-style: none; cursor: pointer;
}
.post-faq > summary::-webkit-details-marker { display: none; }
.post .post-faq > summary h3 {
  margin: 0; padding: .55rem 1rem; border-radius: inherit;
  background: var(--blue); color: #fff; font: 500 var(--t-ui)/1.45 var(--sans); letter-spacing: 0;
  box-shadow: 0 0 22px rgba(28, 92, 255, .22); transition: box-shadow .2s, filter .2s;
}
/* Dimmed by darkening, not by fading: a faded bubble lets a light page
   through and the white text drops under 4.5:1. */
.post .post-faq:not([open]) > summary h3 { filter: brightness(.85); }
.post .post-faq > summary:hover h3 { filter: none; box-shadow: 0 0 30px rgba(28, 92, 255, .45); }
.post .post-faq > summary .heading-anchor { display: none; }
.post .post-faq-answer {
  width: fit-content; max-width: 88%; margin-top: .55rem; padding: .8rem 1rem;
  border: 1px solid var(--line-strong); border-radius: 4px 16px 16px 16px; background: var(--overlay);
}
/* The post's own rules reach only its direct children, so whatever an
   answer holds is set here, at the reply's size. */
.post .post-faq-answer :is(p, ul, ol) { color: var(--text-1); font-size: var(--t-ui); line-height: 1.6; }
.post .post-faq-answer :is(ul, ol) { margin: 0 0 .9rem; padding-left: 1.2rem; }
.post .post-faq-answer li { margin-bottom: .25rem; }
.post .post-faq-answer > :last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) {
  .post .post-faq > summary h3 { transition: none; }
}
/* An answer opens over a moment instead of snapping, where the browser can
   animate to a height it has to measure. Elsewhere it opens as it did. */
@supports (interpolate-size: allow-keywords) {
  @media (prefers-reduced-motion: no-preference) {
    .post-faq { interpolate-size: allow-keywords; }
    .post-faq::details-content {
      height: 0; overflow: clip; opacity: 0;
      transition: height .4s var(--ease-out), opacity .3s var(--ease-out), content-visibility .4s allow-discrete;
    }
    .post-faq[open]::details-content { height: auto; opacity: 1; }
  }
}

/* The two algorithm posts point at the changelog, which stays current.
   This is the one filled surface on a post: blue is otherwise only the action. */
.post .read-head:has(+ a.post-band) { margin-bottom: 1.35rem; }
.post > a.post-band {
  display: block; margin: 0 0 1.5rem; padding: 1.5rem 1.55rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius-lg);
  background: var(--blue); color: #fff; text-decoration: none;
  transition: background-color .15s;
}
.post > a.post-band:hover { background: var(--blue-hover); text-decoration: none; }
.post > a.post-band:active { background: var(--blue-press); }
.post .post-band p { margin: 0; max-width: 36rem; color: rgba(255, 255, 255, .92); font-size: var(--t-body); line-height: 1.5; text-wrap: pretty; }
.post .post-band .post-band-kicker {
  margin: 0 0 .55rem; color: rgba(255, 255, 255, .92);
  font: 500 var(--t-micro)/1.4 var(--mono); letter-spacing: .22em; text-transform: uppercase;
}
.post .post-band .post-band-title {
  margin: 0 0 .7rem; color: #fff;
  font: 500 34px/1.15 var(--serif); letter-spacing: -.02em; text-wrap: balance;
}
.post .post-band .btn {
  margin-top: 1.15rem; background: #fff; border-color: #fff; color: #142c78;
  text-decoration: none; transition: transform .15s;
}
.post > a.post-band:active .btn { transform: scale(.96); }
@media (prefers-reduced-motion: reduce) {
  .post > a.post-band, .post .post-band .btn { transition: none; }
  .post > a.post-band:active .btn { transform: none; }
}

.post .post-tldr {
  margin: 0 0 2.4rem; padding: 1.3rem 1.4rem 1.25rem;
  border: 1px solid rgba(var(--sky-rgb), .3); border-radius: var(--radius-lg);
  background: rgba(var(--tint-rgb), .07);
}
.post .post-tldr-title { margin: 0 0 .8rem; color: var(--ink); font: 500 var(--t-lede)/1.3 var(--serif); }
.post .post-tldr ul { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.post .post-tldr li { position: relative; margin: 0; padding-left: 1.15rem; color: var(--text-1); font-size: var(--t-body); line-height: 1.55; }
.post .post-tldr li::before {
  content: ""; position: absolute; left: 0; top: .66em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--blue-hi);
}

/* The closing card, on every post: what to do once the reading is done. */
.post .post-end {
  margin-top: 3.2rem; padding: clamp(1.25rem, 3.5vw, 2rem);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: rgba(var(--well-rgb), .6);
}
.post .post-end-title { margin: 0 0 .7rem; color: var(--ink); font: 500 var(--t-section)/1.2 var(--serif); letter-spacing: -.015em; text-wrap: balance; }
.post .post-end p:not(.post-end-title) { margin: 0; color: var(--text-1); }
.post .post-end .cta-row { margin-top: 1.4rem; gap: .75rem; }
.post .post-end .btn { text-decoration: none; }

/* A post's frame. Wide enough for three columns, its contents stand on the
   left and a sign-up card on the right, both held in view while the article
   scrolls. Narrower, the contents fold into one row under the head and the
   card waits at the end of the article. */
.post-toc, .post-side { display: none; }
.post .post-toc-mini {
  margin: 0 0 1.8rem; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: rgba(var(--well-rgb), .6);
}
.post-toc-mini summary { padding: .8rem 1rem; color: var(--text-2); font: 500 var(--t-ui) var(--mono); cursor: pointer; }
.read-page .post-toc-mini ol { margin: 0; padding: 0 1rem .9rem 2.4rem; font-size: var(--t-ui); line-height: 1.5; }
.read-page .post-toc-mini li { margin: 0 0 .3rem; }
.post .post-toc-mini a { color: var(--text-2); text-decoration: none; }
.post .post-toc-mini a:hover { color: var(--ink); }
@media (min-width: 1240px) {
  .read-page main:has(.post-shell) { width: min(84rem, 100%); }
  .post-shell {
    display: grid; grid-template-columns: 12rem minmax(0, 42rem) 15rem;
    gap: 2.25rem; justify-content: center; align-items: start;
  }
  .post-toc, .post-side { display: block; position: sticky; top: 112px; }
  /* Placed, not flowed: a post with no h2 has no rail, and its article must
     still take the middle column. */
  .post-toc { grid-column: 1; }
  .post-shell > .post { grid-column: 2; }
  .post-side { grid-column: 3; }
  .post .post-toc-mini { display: none; }
}
.read-page .post-toc-label, .read-page .post-side-label {
  margin: 0 0 .7rem; color: var(--faint);
  font: 500 var(--t-micro)/1.4 var(--mono); letter-spacing: .22em; text-transform: uppercase;
}
/* A long list scrolls inside the rail rather than running off a short screen.
   The guide line is an inset shadow, which the scroll box does not clip. */
.read-page .post-toc ol {
  max-height: calc(100vh - 112px - 4rem); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
  margin: 0; padding: 0; list-style: none; box-shadow: inset 1px 0 var(--line);
  font-size: var(--t-meta); line-height: 1.4;
}
.read-page .post-toc li { margin: 0; }
.read-page .post-toc a {
  display: block; padding: .4rem 0 .4rem .9rem;
  border-left: 2px solid transparent; color: var(--dim);
  transition: color .2s, border-color .2s;
}
.read-page .post-toc a:hover { color: var(--ink); text-decoration: none; }
.read-page .post-toc a[aria-current] { color: var(--ink); }
/* The mark is one line that slides to the section being read. post-toc.js
   gives the list its place and height; the links keep their clear border so
   the text does not shift. The rail's own list only: a positioned sub-list
   is what its links would be measured from, and would draw a line too. */
.read-page .post-toc > ol { position: relative; }
.read-page .post-toc > ol::before {
  content: ""; position: absolute; top: 0; left: 0; width: 2px; height: var(--mark-h, 0px);
  background: var(--blue); opacity: var(--mark-on, 0); translate: 0 var(--mark-y, 0px);
  transition: translate .35s var(--ease-out), height .35s var(--ease-out), opacity .2s;
}
.post-side {
  padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: 0 0 40px rgba(28, 92, 255, .08);
  -webkit-backdrop-filter: blur(18px) saturate(135%); backdrop-filter: blur(18px) saturate(135%);
}
.read-page .post-side-title { margin: 0 0 .5rem; color: var(--ink); font: 500 var(--t-lede)/1.25 var(--serif); text-wrap: balance; }
.read-page .post-side p:not([class]) { margin: 0 0 1.1rem; color: var(--text-2); font-size: var(--t-ui); line-height: 1.55; }
.read-page .post-side .btn { display: flex; padding-inline: .75rem; font-size: var(--t-meta); }
.read-page .post-side .post-side-note { margin: .7rem 0 0; color: var(--faint); font-size: var(--t-meta); line-height: 1.45; }
@media (prefers-reduced-motion: reduce) {
  .read-page .post-toc a, .read-page .post-toc > ol::before { transition: none; }
}

/* Pricing. Wider than prose: the cards are compared side by side. The
   interval radios pick which offer each card shows with :has(), so a browser
   without it shows both rather than neither. */
.pricing-page main { width: min(72rem, 100%); }
.cadence { position: relative; display: inline-flex; gap: 2px; margin: 0 0 1.4rem; padding: 2px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--raised); }
.cadence input { position: absolute; opacity: 0; pointer-events: none; }
.cadence label {
  display: flex; flex-direction: row; align-items: center; height: var(--ctl-sm); padding: 0 12px; border-radius: var(--radius); cursor: pointer;
  color: var(--text-2); font: 500 var(--t-meta) var(--sans);
  transition: background-color .15s, color .15s;
}
.cadence label:hover { color: var(--ink); }
.cadence input:checked + label {
  background: var(--surface-hi); color: var(--ink);
  box-shadow: 0 1px 2px rgba(var(--shade-rgb), calc(.3 * var(--shade-k))), 0 0 0 1px var(--line-strong);
}
.cadence input:focus-visible + label { outline: 2px solid var(--blue-hi); outline-offset: 2px; }
/* Kept in the tree, clipped, so the struck price and the badge finish their
   entrance once. display:none would start that entrance again on every
   switch of the interval. */
.has-cadence:has(#cadence-year:checked) .price-offer:not(.cad-year),
.has-cadence:not(:has(#cadence-year:checked)) .price-offer:not(.cad-month) {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; visibility: hidden; pointer-events: none;
}

.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.price-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 1.5rem; border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: var(--surface);
}
.read-page .price-card h2 { margin: 0 0 1rem; color: var(--ink); font-size: var(--t-body); }
.read-page .price-amount { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 0; color: var(--dim); font-size: var(--t-ui); }
.price-amount b { color: var(--ink); font: 600 2.1rem/1.1 var(--mono); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.read-page .price-note { margin: .35rem 0 1.2rem; color: var(--dim); font-size: var(--t-meta); line-height: 1.5; }
.price-card .btn { display: flex; }
.read-page .btn-primary { color: #fff; }
.read-page .btn-ghost { color: var(--ink); }
.read-page a.btn:hover { text-decoration: none; }
.read-page .price-limits { list-style: none; margin: 1.4rem 0 0; padding: 0; font-size: var(--t-ui); line-height: 1.5; }
.read-page .price-limits li { margin: 0; padding: .45rem 0; border-top: 1px solid rgba(var(--tint-rgb), .1); }
/* What Stats is, on every card: a plan without it shows the same lines,
   dashed and dimmed, under where it is. */
.price-stats { margin-top: 1.4rem; padding: .85rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--raised); }
.price-stats-locked { border-style: dashed; background: none; }
.read-page .price-stats-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin: 0 0 .5rem; color: var(--ink); font: 500 var(--t-ui) var(--sans); }
.price-stats-head > span:last-child { display: inline-flex; align-items: center; gap: 4px; font-size: var(--t-meta); font-weight: 400; text-align: right; }
.price-stats-on { color: var(--blue-soft); }
.read-page .price-stats-locked .price-stats-head { color: var(--dim); }
.price-stats-off { color: var(--dim); }
.read-page .price-stats-lines { list-style: none; margin: 0; padding: 0; color: var(--text-2); font-size: var(--t-meta); line-height: 1.5; }
.read-page .price-stats-lines li { margin: 0; padding: .2rem 0; }
.read-page .price-stats-locked .price-stats-lines { color: var(--faint); }
.price-aside { margin-top: 1rem; }
.read-page .price-aside .price-note { max-width: 46rem; margin-bottom: 0; }
.read-page .price-packs .price-limits { margin-bottom: 1.4rem; }
.price-packs .packs { margin-top: 1.2rem; }
.price-packs .btn { align-self: flex-start; margin-top: 1.2rem; }
.price-legal { margin-top: 2rem; max-width: 46rem; }
.read-page .price-legal p { color: var(--dim); font-size: var(--t-meta); line-height: 1.6; }

/* Introductory price. The struck amount is what the charge becomes when the
   badge comes off. The line is the static cue; the badge and the struck
   amount then settle in, the same spring the landing page stamps a status
   with. A billing section waits until it is on screen, or the settle would
   finish while the section was still hidden. */
.sale-meta {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 8px;
  min-height: 20px; max-width: 100%; margin-right: 8px; vertical-align: middle;
}
.price-amount .sale-meta, .price .sale-meta, .pack-price .sale-meta { margin-right: 0; }
.sale-now { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; max-width: 100%; }
.sale-full {
  color: var(--faint); font: 500 var(--t-ui)/1 var(--mono); letter-spacing: -.03em;
  font-variant-numeric: tabular-nums; text-decoration: line-through;
  text-decoration-thickness: 1px; white-space: nowrap;
}
.sale-badge {
  display: inline-flex; align-items: center; height: 20px; padding: 0 6px;
  border: 1px solid rgba(28, 92, 255, .28); border-radius: var(--radius-sm);
  background: rgba(28, 92, 255, .12); color: var(--blue-soft);
  font: 500 var(--t-label)/1 var(--mono); font-variant-numeric: tabular-nums;
  letter-spacing: -.02em; white-space: nowrap;
}
@media (prefers-reduced-motion: no-preference) {
  .sale-full { animation: sale-was .45s var(--ease-out) .1s both; }
  .sale-badge { animation: sale-in .5s var(--spring) .28s both; }
  html.js .panel-section.reveal:not(.in) :is(.sale-full, .sale-badge) { animation: none; }
  .pricing .price-card { animation: reveal-rise .7s var(--ease-out) both; }
  .pricing .price-grid .price-card:nth-child(2) { animation-delay: .08s; }
  .pricing .price-grid .price-card:nth-child(3) { animation-delay: .16s; }
  .pricing .price-grid .price-card:nth-child(4) { animation-delay: .24s; }
  .pricing .price-grid .price-card:nth-child(2) .sale-full { animation-delay: .2s; }
  .pricing .price-grid .price-card:nth-child(3) .sale-full { animation-delay: .28s; }
  .pricing .price-grid .price-card:nth-child(4) .sale-full { animation-delay: .36s; }
  .pricing .price-grid .price-card:nth-child(2) .sale-badge { animation-delay: .36s; }
  .pricing .price-grid .price-card:nth-child(3) .sale-badge { animation-delay: .44s; }
  .pricing .price-grid .price-card:nth-child(4) .sale-badge { animation-delay: .52s; }
  .pricing .price-aside { animation-delay: .22s; }
  .pricing .price-aside ~ .price-aside { animation-delay: .3s; }
  .pricing .price-packs .sale-full { animation-delay: .4s; }
  .pricing .price-packs .pack:nth-child(2) .sale-full { animation-delay: .48s; }
  .pricing .price-packs .pack:nth-child(3) .sale-full { animation-delay: .56s; }
  .pricing .price-packs .sale-badge { animation-delay: .48s; }
  .pricing .price-packs .pack:nth-child(2) .sale-badge { animation-delay: .56s; }
  .pricing .price-packs .pack:nth-child(3) .sale-badge { animation-delay: .64s; }
  .packs .pack:nth-child(2) .sale-badge { animation-delay: .36s; }
  .packs .pack:nth-child(3) .sale-badge { animation-delay: .44s; }
  .price-grid .price-card,
  .plan-cards .plan,
  .packs .pack { translate: 0 0; transition: translate .45s var(--ease-out), border-color .45s var(--ease-out); }
  @media (hover: hover) {
    .price-grid .price-card:hover,
    .plan-cards .plan:not(.recommended, .yours):hover,
    .packs .pack:hover { translate: 0 -2px; border-color: rgba(var(--hi-rgb), .55); }
    .plan-cards .plan:is(.recommended, .yours):hover { translate: 0 -2px; }
  }
  .price-card .btn,
  .plan .action,
  .pack .action { transition: background-color .15s, border-color .15s, color .15s, scale .15s var(--ease-out); }
  .price-card .btn:active,
  .plan .action:not(:disabled):active,
  .pack .action:not(:disabled):active { scale: 0.96; }
}
@keyframes sale-was {
  from { opacity: 0; filter: blur(4px); translate: 0 4px; }
  to { opacity: 1; filter: blur(0); translate: 0 0; }
}
@keyframes sale-in {
  from { opacity: 0; filter: blur(4px); translate: 0 4px; }
  to { opacity: 1; filter: blur(0); translate: 0 0; }
}

@media (max-width: 820px) {
  .auth-page main { padding: 1.25rem; }
  .auth-shell { grid-template-columns: 1fr; gap: 2.25rem; max-width: 32rem; }
  .auth-intro { text-align: center; }
  .auth-brand { margin-bottom: 2.8rem; }
  .auth-copy { margin-inline: auto; }
  .auth-intro :is(h1, h2) { font-size: clamp(1.85rem, 8vw, 2.7rem); }
  .auth-back { display: none; }
  /* In the sliding panel the back link is the close control — keep it. */
  .story-auth .auth-back { display: inline-block; margin-top: 1rem; }
}
@media (max-width: 460px) {
  .auth-page main { padding: .8rem; }
  .auth-intro { padding: 1rem .5rem 0; }
  .auth-brand { margin-bottom: 2rem; }
  .auth-copy { font-size: var(--t-ui); }
  .auth-card { padding: 1.25rem; border-radius: 15px; }
  .auth-status { display: none; }
  .auth-card .row-between { align-items: flex-start; flex-direction: column-reverse; }
  .auth-submit { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-brand span, .otp-cell.active:not(.filled)::after { animation: none; }
  .auth-submit, .auth-submit span, .otp-cell { transition: none; }
}

/* ---- control panel ----------------------------------------------------------
   The authenticated surface, on the same ground and the same shell as the rest
   of the site. Structure carried over from the story: a floating pill of
   chrome, numbered sections, hairline rows. Data stays mono because tokens,
   handles and times ARE the data — that has always been true of this page and
   is the one thing worth keeping from the panel it replaces. */

.panel-page {
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
}
/* The header stays out of this for the same reason it does on the story: it is
   fixed, and a position here would beat the rule that fixes it. */
/* Clipped across only: each section's pool reaches past the column, and on a
   phone that is past the screen. */
.panel-page main {
  position: relative; z-index: 1;
  display: block;
  padding: clamp(7.5rem, 15vh, 9rem) clamp(1rem, 4vw, 2rem) 4rem;
  overflow-x: clip;
}
.panel-shell { width: min(800px, 100%); margin-inline: auto; }
/* Clears the fixed header when a section link jumps to one: with scripting
   off every section shows and the tabs are plain jumps. */
.panel-page section[id] { scroll-margin-top: 6.5rem; }
/* With the tabs on, the open section is the top of the page. Browsers jump to
   the fragment again once the page has loaded, and that jump has to land at
   the top rather than cut off what sits above the section. */
html.js .panel-page section[id] { scroll-margin-top: 100vh; }

.top-meta { display: flex; align-items: center; gap: 7px; margin-left: 7px; }
.top-meta .ghost {
  position: relative; display: inline-flex; align-items: center; flex-shrink: 0;
  height: var(--ctl-sm); padding: 0 10px; border-radius: var(--radius);
  border: 1px solid var(--line-strong); background: var(--raised);
  color: var(--text-2); font: 500 var(--t-label) var(--sans);
  transition: color .15s, background-color .15s;
}
.top-meta .ghost:hover { color: var(--ink); background: var(--raised-hover); }
/* Drawn at 28px, pressed at 40. In the rail Account sits 6px above it, so
   there the band reaches up only half that gap. */
.top-meta .ghost::before { content: ""; position: absolute; inset: -6px 0; }
@media (min-width: 1100px) {
  .top-meta .ghost::before { top: -3px; }
}
.nav-links a[aria-current="page"], .top-account[aria-current="page"] { color: var(--ink); background: var(--raised-hover); }

/* The workspace, in the bar: its name alone, where the rail adds its letter
   and a line under it. Several workspaces drop down from it as links. */
.org-initial, .org-sub, .org-list-head, .top-email { display: none; }
.top-org, .org-switch { margin-left: auto; min-width: 0; }
.org-chip { display: flex; align-items: center; gap: 10px; min-width: 0; }
.org-name { display: flex; flex-direction: column; min-width: 0; }
.org-name .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-org .org-chip {
  padding: 0 6px; color: var(--faint);
  font: 500 var(--t-meta) var(--sans);
}
.org-switch { position: relative; }
/* Capped, so a long workspace name cannot push the meta controls off the
   line. */
.org-switch > summary {
  display: flex; align-items: center; gap: 6px; max-width: 14rem;
  height: var(--ctl); padding: 0 8px 0 10px; border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--raised); color: var(--ink);
  font: 500 var(--t-meta) var(--sans);
  list-style: none; cursor: pointer;
  transition: background-color .15s;
}
.org-switch > summary:hover { background: var(--raised-hover); }
.org-switch > summary::-webkit-details-marker { display: none; }
.org-switch > summary > svg { flex: none; color: var(--faint); transition: rotate .2s var(--ease-out); }
.org-switch[open] > summary > svg { rotate: 180deg; }
.org-list {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 2;
  min-width: 12rem; max-width: min(20rem, calc(100vw - 32px));
  max-height: min(24rem, 70vh); overflow-y: auto;
  padding: 4px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: var(--overlay);
  box-shadow: var(--menu-shadow);
}
.org-list ul { list-style: none; }
.org-list a {
  display: flex; align-items: baseline; gap: 8px;
  padding: 7px 8px; border-radius: var(--radius-sm);
  color: var(--text-1); font-size: var(--t-meta);
}
.org-list a .mono { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.org-role { margin-left: auto; color: var(--faint); font-size: var(--t-micro); }
/* A workspace with an account to sign in again. */
.org-dot { flex: none; align-self: center; width: 6px; height: 6px; border-radius: 50%; background: var(--danger); }
.org-name .org-all { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--sans); }
.org-list a:hover { background: var(--raised-hover); color: var(--ink); }
.org-list a[aria-current="page"] { color: var(--ink); background: var(--raised-hover); }
.org-list a:focus-visible { outline-offset: -2px; }
/* Account sits with the meta controls, a sibling of the tabs in the bar. */
.top-account {
  display: flex; align-items: center; gap: 10px; flex: none;
  height: var(--ctl); padding: 0 10px; border-radius: var(--radius);
  color: var(--dim); font: 500 var(--t-meta) var(--sans);
  transition: color .15s, background-color .15s;
}
.top-account:hover { color: var(--ink); background: var(--raised-hover); }
.panel-page .top-nav svg, .top-account svg { display: none; flex: none; font-size: 16px; }

/* ---- page head ---- */

/* The open tab's title is the page's heading, under its name: people come for
   one setup step, and a title of its own put that step below the fold. */
.panel-section-head .section-lede { margin-top: 4px; color: var(--dim); font-size: var(--t-ui); text-wrap: pretty; }

/* ---- sections ---- */

/* No card: a pool of the ground behind each section keeps the page's glow
   out of the rows. An ellipse across the column, because the rows need all
   of it. */
.panel-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.9rem;
  margin-bottom: clamp(2rem, 6vh, 4rem);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(var(--tint-rgb), .12);
}
.panel-section::before {
  content: "";
  position: absolute; inset: -8% -14%;
  z-index: -1; pointer-events: none;
  background: radial-gradient(60% 55% at 50% 50%,
    rgba(var(--ground-rgb), .96), rgba(var(--ground-rgb), .82) 58%, transparent 88%);
}
/* A tab switch is a click away from the next one, so it rises faster than the
   story's sections do. */
html.js .panel-section.reveal.in { animation-duration: .35s; }
/* A tab drawn again for a change made on it stays where it stood: the
   router's crossfade carries the change. */
html.js .panel-section.reveal.in[data-still] { animation: none; opacity: 1; }
/* Opening a tab moves focus to its title, as the router does with a page's
   h1, and like it draws no ring there: the title is not a control. */
.panel-section h2:focus-visible { outline: none; }
/* The open tab's title is the page's heading. */
.panel-page h2 {
  margin: 0;
  color: var(--ink);
  font: 500 28px/1.2 var(--serif); letter-spacing: -.01em;
  text-wrap: balance;
  text-shadow: 0 0 60px rgba(28, 92, 255, calc(.35 * var(--text-glow-k)));
}
/* Short prose everywhere on this page: stop the last line landing on one
   orphaned word. Not balance — these are not headings. */
.panel-body p, .hint, .post-summary, .read-page :where(main) :is(p, li) { text-wrap: pretty; }

/* ---- controls --------------------------------------------------------------
   One system for every control on the panel, from the shared tokens: buttons
   32px tall and 28px small, Plex Sans on everything you click or read about,
   and mono kept for what is data — handles, key names, times, code. */

.panel-body .mono { font-family: var(--mono); }
/* Controls the script reveals carry hidden until it does; the display each
   one sets must not show them first. */
.panel-body [hidden] { display: none; }
.panel-body .subhead { margin: 2.5rem 0 .75rem; color: var(--ink); font: 600 var(--t-ui)/1.4 var(--sans); }
/* The section head already sets a tab off; a subhead opening its body adds
   no gap of its own. */
.panel-body > .subhead:first-child { margin-top: 0; }
.panel-body .empty { color: var(--dim); font-size: var(--t-ui); }
.panel-body .note { margin-top: 1rem; color: var(--faint); font-size: var(--t-meta); }
.panel-body .warn { color: var(--err); }

.action {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--ctl); padding: 0 12px;
  border: 1px solid transparent; border-radius: var(--radius);
  font: 500 var(--t-meta)/1 var(--sans); white-space: nowrap;
  cursor: pointer; list-style: none;
  transition: background-color .15s, border-color .15s, color .15s;
}
.action::-webkit-details-marker { display: none; }
.action svg { flex: none; font-size: 15px; }
a.action:hover { text-decoration: none; }
.action.small { height: var(--ctl-sm); padding: 0 10px; gap: 6px; font-size: var(--t-label); }
.action.block { width: 100%; }
.action.primary { background: var(--blue); border-color: rgba(255, 255, 255, .1); color: #fff; }
.action.primary:hover { background: var(--blue-hover); color: #fff; }
.action.primary:active { background: var(--blue-press); }
.action.secondary { background: var(--raised); border-color: var(--line-strong); color: var(--ink); }
.action.secondary:hover { background: var(--raised-hover); }
.action.secondary:active { background: var(--line-strong); }
.action.quiet { background: none; color: var(--text-2); }
.action.quiet:hover { background: var(--raised-hover); color: var(--ink); }
/* A button waiting on its request turns a spinner beside its label, so a
   click that takes the provider a second or two visibly took. */
.action[aria-busy="true"]::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: action-spin .7s linear infinite;
}
@keyframes action-spin { to { rotate: 1turn; } }
.action:disabled { opacity: .4; cursor: not-allowed; }
.action.danger { color: var(--danger); }
.action.danger:hover { background: rgba(var(--danger-rgb), .1); color: var(--danger); }
.action.destructive { background: var(--destructive); border-color: rgba(255, 255, 255, .1); color: #fff; }
.action.destructive:hover { background: var(--destructive-hover); }

.icon-button {
  position: relative; display: grid; place-items: center; width: var(--ctl-sm); height: var(--ctl-sm);
  border-radius: var(--radius); color: var(--text-2); font-size: 16px;
  transition: background-color .15s, color .15s;
}
/* Drawn at 28px, pressed at 40: the band reaches past the square. */
.icon-button::before { content: ""; position: absolute; inset: -6px; }
.icon-button:hover, .icon-button[aria-expanded="true"] { background: var(--raised-hover); color: var(--ink); }

/* A platform's mark, or a key or envelope where the row is not a platform. */
.mark {
  display: grid; place-items: center; flex: none;
  width: 32px; height: 32px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--raised-hover);
  color: var(--ink); font: 600 var(--t-label) var(--sans);
}
.mark svg { font-size: 16px; }
.mark.large { width: 36px; height: 36px; }
.mark.large svg { font-size: 18px; }
.mark.tiny { width: 16px; height: 16px; border: 0; background: none; border-radius: 0; display: inline-grid; font-size: var(--t-micro); }
.mark.tiny svg { font-size: 14px; }
/* Brand marks in their own colour, lifted to read on the dark ground. */
.brand-bluesky { color: var(--brand-bluesky); }
.brand-mastodon { color: var(--brand-mastodon); }
.brand-claude { color: var(--brand-claude); }

/* A workspace stands for itself by its first letter. */
.mark.org-mark { color: var(--text-1); text-transform: uppercase; }

.list {
  display: flex; flex-direction: column; list-style: none;
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: var(--surface);
}
.item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 10px 10px 14px; border-top: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.item:first-child { border-top: 0; }
/* A row's fill, a hover or a confirmation, follows the list's corners. */
.list > :first-child { border-top-left-radius: calc(var(--radius-lg) - 1px); border-top-right-radius: calc(var(--radius-lg) - 1px); }
.list > :last-child { border-bottom-left-radius: calc(var(--radius-lg) - 1px); border-bottom-right-radius: calc(var(--radius-lg) - 1px); }
.item-main { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.item-title { color: var(--ink); font: 500 var(--t-ui)/1.35 var(--sans); overflow-wrap: anywhere; }
.item-title.mono { font-weight: 400; }
.item-sub { color: var(--faint); font: 400 var(--t-label)/1.45 var(--sans); }

.badge {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  height: 20px; padding: 0 6px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--raised-hover); color: var(--text-2);
  font: 500 var(--t-label)/1 var(--sans); white-space: nowrap; vertical-align: middle;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
/* Two states carry meaning: working, and wanting attention. Anything
   mid-flight stays neutral rather than earning a third hue. */
.badge:is(.active, .published, .trialing) { color: var(--ok); background: rgba(var(--ok-rgb), .1); border-color: rgba(var(--ok-rgb), .22); }
.badge:is(.needs_reauth, .failed, .partial, .past_due, .closing, .near, .full, .broken) { color: var(--danger); background: rgba(var(--danger-rgb), .1); border-color: rgba(var(--danger-rgb), .28); }
.badge:is(.scheduled, .connector) { color: var(--blue-soft); background: rgba(28, 92, 255, .12); border-color: rgba(28, 92, 255, .28); }
.badge.accent { color: #fff; background: var(--blue); border-color: transparent; }
.badge:is(.accent, .connector, :not([class*=" "]))::before { display: none; }

/* ---- the "⋯" menu and the confirmation in place ---- */

.more { position: relative; flex: none; }
.menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 5;
  min-width: 12rem; padding: 4px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: var(--overlay); box-shadow: var(--menu-shadow);
}
/* A menu settles in rather than blinking on. Only on the way in: it goes at
   once, and it never moves on a page's first paint, when none is open. */
@media (prefers-reduced-motion: no-preference) {
  .menu { transition: opacity .12s var(--ease-out), translate .12s var(--ease-out); }
  @starting-style { .menu { opacity: 0; translate: 0 -4px; } }
}
.menu-item {
  display: flex; align-items: center; gap: 8px; width: 100%; height: calc(var(--ctl-sm) + 2px); padding: 0 8px;
  border-radius: var(--radius-sm); color: var(--text-2); font: 500 var(--t-meta) var(--sans); text-align: left;
}
.menu-item svg { font-size: 15px; }
.menu-item:hover, .menu-item:focus-visible { background: var(--raised-hover); color: var(--ink); }
.menu-item.danger, .menu-item.danger:hover { color: var(--danger); }
.menu-item.danger:hover, .menu-item.danger:focus-visible { background: rgba(var(--danger-rgb), .12); }

.confirm {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 10px 10px 14px;
  border-top: 1px solid rgba(var(--danger-rgb), .3); background: rgba(var(--danger-rgb), .07);
}
.confirm > svg { flex: none; font-size: 16px; color: var(--danger); }
.confirm .item-title { font-size: var(--t-meta); }
.item:has(+ .confirm) { background: rgba(var(--danger-rgb), .04); }

/* ---- desk ---- */

/* The Desk: a card for each kind of trouble with its name along the top, then
   what goes out next. Only what is broken takes the danger colour, and only
   what waits on a person the accent. */
.desk-group {
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: var(--surface); overflow: hidden;
}
.desk-group + .desk-group, .desk-steps + .desk-group { margin-top: 12px; }
.desk-group > h3 {
  display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px;
  color: var(--ink); font: 600 var(--t-meta)/1.4 var(--sans);
}
.desk-group > h3 > :is(.desk-hint, a) { margin-left: auto; font-weight: 400; }
.desk-hint { color: var(--faint); }
.desk-group > h3 > a { color: var(--blue-soft); font-weight: 500; }
.desk-group > h3 > a:hover { color: var(--blue-pale); }
.desk-group.broken > h3 { color: var(--danger); }
.desk-group.waiting > h3 { color: var(--blue-soft); }
.desk-group > .list {
  border: 0; border-top: 1px solid var(--line); border-radius: 0;
  background: none; backdrop-filter: none;
}
.desk-group > .empty { padding: 14px; border-top: 1px solid var(--line); font-size: var(--t-ui); }
.desk-group .item:not(.post-row) { min-height: 52px; padding: 8px 10px 8px 14px; }
.desk-group .item-title { font-size: var(--t-ui); font-weight: 600; }
.desk-group .item-sub { color: var(--text-2); }
/* Across workspaces, a row's workspace follows what it is about. */
.desk-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; }
.desk-org { color: var(--faint); font-size: var(--t-meta); overflow-wrap: anywhere; }
.desk-org:hover { color: var(--blue-soft); }
/* The rows past the first few, folded under them. */
.desk-more > summary {
  display: flex; align-items: center; min-height: 40px; padding: 0 14px;
  border-top: 1px solid var(--line);
  color: var(--blue-soft); font: 500 var(--t-meta)/1.4 var(--sans); cursor: pointer;
}
.desk-more > summary:hover { color: var(--blue-pale); }
.desk-more > summary:focus-visible { outline-offset: -2px; }
.desk-more > .list {
  border: 0; border-top: 1px solid var(--line); border-radius: 0;
  background: none; backdrop-filter: none;
}
.desk-more[open] > summary { color: var(--text-2); }
/* What goes out next, a line each: the queue has room for the whole text. */
.desk-group .post-text { -webkit-line-clamp: 1; line-clamp: 1; font-size: var(--t-ui); }

/* The steps to a first post, the one to take next outlined. */
.desk-steps { display: flex; flex-direction: column; gap: 14px; list-style: none; }
.desk-step {
  display: flex; gap: 14px; padding: 16px 18px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--surface);
}
.desk-step.current { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.desk-step-mark {
  display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--text-2); font: 600 var(--t-meta)/1 var(--sans);
}
.desk-step.current .desk-step-mark { background: var(--blue); box-shadow: none; color: #fff; }
.desk-step.done .desk-step-mark { background: rgba(var(--ok-rgb), .16); box-shadow: none; color: var(--ok); }
.desk-step-main { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; flex: 1; min-width: 0; }
.desk-step h3 { display: flex; align-items: center; gap: 10px; color: var(--ink); font: 600 var(--t-body)/26px var(--sans); }
.desk-done { color: var(--ok); font: 500 var(--t-meta) var(--sans); }
.desk-optional { color: var(--faint); font: 500 var(--t-meta) var(--sans); }
/* Who acts on a row or a step whose control the reader's role lacks, in
   place of that control. */
.desk-who { flex: none; max-width: 16rem; color: var(--faint); font: 400 var(--t-meta)/1.45 var(--sans); text-align: right; }
.desk-step .desk-who { max-width: none; text-align: left; }
/* The one line a tab says of what the reader's role leaves out. */
.panel-body > .note.role-line:first-child { margin-top: 0; }
.panel-body > .note.role-line:first-child:has(+ *) { margin-bottom: 12px; }
.desk-say { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; align-self: stretch; }
.desk-say q { flex: 1 1 280px; color: var(--text-1); font-size: var(--t-body); line-height: 1.5; }
.panel-body .desk-say .copy { position: relative; top: auto; right: auto; flex: none; }
/* The agent as the other way, under the step's own button. */
.desk-say.or { padding-top: 10px; border-top: 1px solid var(--line); }
.desk-say.or > span { flex: none; color: var(--dim); font-size: var(--t-ui); }
/* An empty list's way to a post: what it says, then the composer's button
   with what to tell an agent beside it. */
.empty-write { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.empty-write-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--dim); font-size: var(--t-ui); }
.empty-write-act q { color: var(--text-1); }
.desk-group > .empty-write { padding: 14px; border-top: 1px solid var(--line); }
.posts-page > .empty-write { padding: 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }
.posts-page > .empty-write > .empty { color: var(--ink); }

@media (max-width: 720px) {
  /* A row keeps its mark beside the words, and its badge and button drop
     under them rather than squeezing them. */
  .desk-group .item:not(.post-row) {
    display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; column-gap: 12px; row-gap: 8px;
    padding-block: 12px;
  }
  .desk-group .item:not(.post-row) > :first-child { grid-row: 1 / span 3; }
  .desk-group .item:not(.post-row) > :is(.item-main, .badge, .action) { grid-column: 2; justify-self: start; }
  .desk-step { padding: 14px; }
}

/* ---- connections ---- */

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 12px; }
.tile {
  display: flex; flex-direction: column; gap: 16px; padding: 16px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: var(--surface);
}
.tile:has(details[open]) { grid-column: 1 / -1; }
.tile-head { display: flex; align-items: center; gap: 12px; }
.tile .item-title { font-size: var(--t-ui); font-weight: 600; }
.tile > .hint { color: var(--faint); font-size: var(--t-meta); }
/* The action sits on the tile's floor, so a row of tiles lines theirs up
   whatever their copy runs to. */
.tile > details, .tile > form { margin-top: auto; }
.tile details[open] > summary { display: none; }
.tile .stack { max-width: 30rem; gap: 16px; }
/* A platform this install cannot connect yet: drawn, so the gap reads as
   pending, but quieter than the tiles that work. */
.tile.soon { border-style: dashed; background: none; }
.tile.soon .mark { color: var(--faint); background: none; }
.tile.soon .item-title { color: var(--text-2); }
.tile.soon > .badge { margin-top: auto; align-self: flex-start; }

/* ---- forms ---- */

.panel-body .stack > label, .panel-body legend { color: var(--text-2); font: 500 var(--t-label)/1.3 var(--sans); }
.panel-body .stack > label .hint, .panel-body legend .hint { color: var(--faint); font: 400 var(--t-meta) var(--sans); }
.panel-body .stack .hint { color: var(--faint); font: 400 var(--t-meta)/1.5 var(--sans); }
/* A field's help link sits under its field, outside the label, so a tap
   meant for the input never opens it; flex-start keeps the row's empty end
   from becoming part of the link. */
.panel-body .stack > a.hint {
  align-self: flex-start; margin-top: -8px;
  text-decoration: underline; text-underline-offset: .18em;
}
/* A name, an address or a role is a line long: a field the width of the
   window reads as a box for a paragraph. */
.panel-body .stack .field { max-width: 30rem; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.card {
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(var(--shade-rgb), calc(.18 * var(--shade-k)));
}

/* ---- keys ---- */

.panel-body .stack.card { padding: 20px; gap: 20px; }
.panel-body fieldset:is(.presets, .picks) { display: block; padding: 0; border: 0; }
.panel-body fieldset:is(.presets, .picks) > legend { margin-bottom: 8px; padding: 0; }
.preset-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: 8px; }
.pick-list { display: flex; flex-wrap: wrap; gap: 8px; }
/* A preset is a choice of one, so it carries a radio's mark in its corner. */
.preset {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 10px 30px 10px 12px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--field);
  cursor: pointer; transition: border-color .15s, background-color .15s;
}
.preset::after {
  content: ""; box-sizing: border-box; position: absolute; top: 11px; right: 10px; width: 14px; height: 14px;
  border: 1px solid var(--edge); border-radius: 50%; background: var(--field);
}
.preset input, .pick input { position: absolute; opacity: 0; pointer-events: none; }
.preset:has(input:checked), .pick:has(input:checked) {
  border-color: var(--blue); background: rgba(28, 92, 255, .07); box-shadow: inset 0 0 0 1px var(--blue);
}
.preset:has(input:checked)::after { border: 4px solid var(--blue); background: #fff; }
.preset:has(input:focus-visible), .pick:has(input:focus-visible) { outline: 2px solid var(--blue-hi); outline-offset: 2px; }
.preset-name { color: var(--ink); font: 500 var(--t-meta)/1.35 var(--sans); }
.preset-about { color: var(--faint); font: 400 var(--t-label)/1.4 var(--sans); }
.customise { margin-top: -8px; }
.customise > summary {
  display: flex; align-items: center; gap: 6px; width: fit-content;
  color: var(--blue-soft); font: 500 var(--t-meta) var(--sans); cursor: pointer; list-style: none;
}
.customise > summary::-webkit-details-marker { display: none; }
.customise > summary svg { transition: rotate .3s var(--ease-out); }
.customise[open] > summary { margin-bottom: 12px; }
.customise[open] > summary svg { rotate: 180deg; }
.panel-body fieldset.switches { padding: 0; gap: 0; border-color: var(--line-strong); border-radius: var(--radius); }
.switches label.check {
  justify-content: space-between; min-height: 36px; padding: 6px 12px;
  color: var(--text-2); font: 400 var(--t-meta) var(--sans);
}
.switches label.check + label.check { border-top: 1px solid var(--line); }
.pick {
  position: relative; display: inline-flex; flex-direction: row; align-items: center; gap: 8px;
  height: var(--ctl); padding: 0 12px 0 10px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--raised);
  color: var(--text-2); font: 400 var(--t-meta) var(--sans); cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.pick:has(input:checked) { color: var(--ink); }
/* A handle in a chip at the chip's size, not the 14px .mono gives a row. */
:is(.pick, .account-toggle, .scope .account, .preview-to .account) .mono { font-size: inherit; }
.keys .item { align-items: flex-start; }
.keys .item > .mark { margin-top: 2px; color: var(--blue-soft); }
/* A key that came in while the page was open, so it is found again below. */
.keys .item.fresh:not(:has(+ .confirm)) { background: rgba(var(--ok-rgb), .07); }
.scope { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.scope .account {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px 2px 6px;
  border-radius: var(--radius-sm); background: var(--raised); color: var(--text-2); font-size: var(--t-meta);
}

/* ---- lists in columns ---- */

/* Accounts and Agents. A row's facts make one more line under its name; from
   the rail's width they line up in columns instead, every row on the list's
   own tracks (subgrid) under a row of their names. Each cell names itself for
   a screen reader, and on that line for the eye as well. */
.trouble { color: var(--danger); }
.connect-account { margin-bottom: 24px; }
.connect-account > summary { width: fit-content; list-style: none; }
.connect-account > summary::-webkit-details-marker { display: none; }
.connect-account[open] > summary { margin-bottom: 16px; }
.panel-body .connect-account > .note { margin-top: 12px; }
.connect-account > .note a, .cell a, .stats-locked-line a { color: var(--blue-soft); text-underline-offset: .18em; }
.connect-account > .note a:hover, .cell a:hover, .stats-locked-line a:hover { text-decoration: underline; }
.cell a.post-problem { color: var(--danger); }
.columns .faint { color: var(--faint); }
.panel-body .note:has(+ .list) { margin-bottom: 12px; }
.list-head { display: none; }
.list-head + .item { border-top: 0; }
.list.columns > .item { flex-wrap: wrap; }
.item-facts {
  order: 1; display: flex; flex-wrap: wrap; flex-basis: 100%; gap: 4px 16px;
  padding-left: 44px; /* under the name: past the 32px mark and its gap */
  color: var(--text-2); font: 400 var(--t-meta)/1.45 var(--sans);
}
.cell { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; }
.cell-sub { color: var(--faint); font-size: var(--t-meta); }
.cell > *, .cell .scope .account { max-width: 100%; }
.cell .scope { margin-top: 0; }
.cell .scope .account .mono { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1099.98px) {
  .item-facts .visually-hidden {
    position: static; width: auto; height: auto; margin: 0; overflow: visible; clip-path: none;
    color: var(--faint);
  }
}
@media (min-width: 1100px) {
  .list.columns {
    display: grid; column-gap: 16px;
    grid-template-columns: auto minmax(0, 1.5fr) minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(0, 1fr) auto;
  }
  .list.columns.accounts { grid-template-columns: auto minmax(0, 1.6fr) auto minmax(0, 1fr) minmax(0, 1fr) auto auto; }
  .list.columns.workspaces { grid-template-columns: auto minmax(0, 1.5fr) minmax(0, .9fr) minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1.5fr); }
  .list.columns > * { grid-column: 1 / -1; }
  .list.columns[hidden] { display: none; }
  .list.columns > :is(.item, .list-head) { display: grid; grid-template-columns: subgrid; align-items: center; }
  .list.columns > .item > *, .list.columns .item-facts > .cell { grid-row: 1; }
  .list-head { padding: 10px 12px 8px 16px; color: var(--faint); font: 500 var(--t-meta)/1.4 var(--sans); }
  .list-head > :first-child { grid-column: 1 / 3; }
  .list-head + .item { border-top: 1px solid var(--line); }
  .list.columns > .item > :is(.mark, .account-mark) { grid-column: 1; }
  .list.columns > .item > .item-main { grid-column: 2; }
  .item-facts { display: contents; }
  .col-a { grid-column: 3; }
  .col-b { grid-column: 4; }
  .col-c { grid-column: 5; }
  .col-d { grid-column: 6; }
  .list.columns > .item > .action { grid-column: -3; }
  .list.columns > .item > .more { grid-column: -2; justify-self: end; }
  .cell { flex-direction: column; align-items: flex-start; font: 400 var(--t-meta)/1.45 var(--sans); color: var(--text-2); }
}

/* ---- what is read ---- */

/* Followers, their change over 30 days and the switch for what is read,
   after an account's posts. Across workspaces each workspace's accounts fold
   under a line of their own, and every group keeps the same tracks, so the
   columns line up from one to the next. */
.sync-legend { margin: 2px 0 0; color: var(--dim); font-size: var(--t-meta); line-height: 1.5; text-wrap: pretty; }
.sync-legend strong { color: var(--text-1); font-weight: 600; }
.sync-switch button { height: 24px; padding: 0 9px; font-size: var(--t-label); font-weight: 600; }
.sync-line { color: var(--dim); font-size: var(--t-label); line-height: 1.35; }
.sync-line a { color: var(--blue-soft); font-weight: 500; text-decoration: underline; text-underline-offset: .18em; }
/* What switching up costs, asked under the row before the switch moves
   (panel.js): it unfolds out of the row, its buttons fade in, and it folds
   back into the row as it goes. */
.sync-cost { display: grid; grid-template-rows: 1fr; }
.sync-cost[data-shut] { grid-template-rows: 0fr; }
.sync-cost-fold { min-height: 0; overflow: clip; border-radius: inherit; }
.sync-cost-body {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 10px 10px 14px; border-radius: inherit;
  border-top: 1px solid rgba(var(--sky-rgb), .3); background: rgba(var(--sky-rgb), .07);
}
.sync-cost-body > svg { flex: none; font-size: 16px; color: var(--blue-soft); }
.sync-cost-text { flex: 1; min-width: 0; margin: 0; color: var(--text-2); font-size: var(--t-meta); line-height: 1.5; text-wrap: pretty; }
.sync-cost-actions { display: flex; flex: none; gap: 8px; }
.item:has(+ .sync-cost:not([data-shut])) { background: rgba(var(--sky-rgb), .04); }
@media (prefers-reduced-motion: no-preference) {
  .sync-cost { transition: grid-template-rows .22s var(--ease-out); }
  .sync-cost-body { transition: opacity .22s var(--ease-out); }
  .sync-cost[data-shut] .sync-cost-body { opacity: 0; }
  @starting-style {
    .sync-cost { grid-template-rows: 0fr; }
    .sync-cost-body { opacity: 0; }
  }
  .sync-cost .action { animation: preview-fade .2s var(--ease-out) .1s both; }
  .item:has(+ .sync-cost) { transition: background-color .22s var(--ease-out); }
  /* A pause is said, not alarmed: its line fades in, on a row once a page
     (pausesArrive). */
  .sync-line.paused[data-enter], .numbers-waiting.paused { animation: preview-fade .3s var(--ease-out) .1s both; }
}
@media (max-width: 720px) {
  .sync-cost-body { flex-wrap: wrap; }
  .sync-cost-text { flex-basis: calc(100% - 40px); }
  .sync-cost-actions { margin-left: 28px; }
}
/* A long handle is cut, as the workspace list cuts a long name; the row's
   title holds it whole. */
.list.columns.accounts .item-title.mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.num-on { color: var(--faint); font-size: var(--t-label); }
.account-groups { display: flex; flex-direction: column; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--surface); overflow: clip; }
.account-groups .list { border: 0; border-radius: 0; background: none; }
.account-groups .list > * { border-radius: 0; }
.account-groups > .list:first-child { display: none; }
.account-group { border-top: 1px solid var(--line); }
.account-groups > .account-group:nth-child(2) { border-top: 0; }
.account-group > summary {
  display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 14px;
  background: var(--raised); color: var(--dim); font-size: var(--t-label); cursor: pointer; list-style: none;
}
.account-group > summary::-webkit-details-marker { display: none; }
.account-group > summary:hover { background: var(--raised-hover); }
.account-group > summary a { color: var(--ink); font-size: var(--t-meta); text-underline-offset: .18em; }
.account-group > summary a:hover { text-decoration: underline; }
.group-caret { display: grid; place-items: center; color: var(--dim); transition: rotate .15s; }
.group-caret svg { width: 12px; height: 12px; }
.account-group[open] .group-caret { rotate: 90deg; }
.account-group > .list { border-top: 1px solid var(--line); }
@media (min-width: 1100px) {
  .list.columns.accounts.numbered {
    grid-template-columns: auto minmax(0, 1.6fr) auto minmax(0, 1fr) minmax(0, 1fr) auto auto minmax(0, auto) auto auto;
  }
  .account-groups > .list:first-child { display: grid; }
  .list.columns.accounts.across { grid-template-columns: auto minmax(0, 1.6fr) 124px minmax(0, 1fr) minmax(0, 1fr) 128px; }
  .list.columns.accounts.across.numbered {
    grid-template-columns: auto minmax(0, 1.6fr) 124px minmax(0, 1fr) minmax(0, 1fr) 72px 60px 212px 128px;
  }
  .list.columns.accounts.across > .item > .action { grid-column: -2; justify-self: end; }
  .col-e { grid-column: 6; }
  .col-f { grid-column: 7; }
  .col-g { grid-column: 8; }
  .cell.num { align-items: flex-end; text-align: right; }
  .list-head > .num { justify-self: end; }
  .cell.sync { gap: 4px; min-width: 196px; }
  /* The switch sets the column's width; a line under it wraps to that. */
  .cell.sync .sync-line { width: 0; min-width: 100%; }
}

/* ---- stats ---- */

/* How the posts did: the few that did best and least against their own
   account's usual post, every post in a table, and followers in a thin strip
   last. The two poles keep the chart colours: blue is better than usual,
   amber worse, as text a step lighter than as a bar. */
.stats-body {
  --stats-up: #a9c2ff; --stats-down: #f4b886;
  --stats-up-bar: #4f7fff; --stats-down-bar: #d98a45;
  display: flex; flex-direction: column; gap: 12px;
}
:root[data-theme="light"] .stats-body {
  --stats-up: var(--chart-reward); --stats-down: #9a5a0a;
  --stats-up-bar: var(--chart-reward); --stats-down-bar: var(--chart-penalty);
}
.stats-body .faint { color: var(--faint); }
.stats-body .mono { font-size: inherit; }
/* Stats on a plan without it: the tab of a made-up business, dimmed under a
   veil from the first frame and faded out at its foot, about one screen of
   it, with the card over it. The card is the only part a screen reader gets. */
.stats-locked { position: relative; min-height: 34rem; }
.stats-locked-sample {
  position: relative;
  display: flex; flex-direction: column; gap: 12px;
  max-height: min(52rem, 100vh); margin-top: -1.9rem; padding-top: 1.9rem; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent);
  mask-image: linear-gradient(to bottom, #000 65%, transparent);
  user-select: none;
}
.stats-locked-sample::after { content: ""; position: absolute; inset: 0; background: rgba(var(--ground-rgb), .78); }
.stats-locked-card {
  position: absolute; z-index: 1; top: 200px; inset-inline: 0;
  display: flex; flex-direction: column; gap: 14px;
  width: 400px; max-width: 100%; margin-inline: auto; padding: 24px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--surface);
  box-shadow: 0 18px 48px rgba(var(--shade-rgb), calc(.5 * var(--shade-k)));
}
.stats-locked-card h3 { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ink); font: 600 var(--t-body)/1.4 var(--sans); }
.stats-locked-card h3 svg { flex: none; width: 15px; height: 15px; }
.stats-locked-lines { list-style: none; margin: 0; padding: 0; }
.stats-locked-lines li { padding: .45rem 0; border-top: 1px solid rgba(var(--tint-rgb), .1); color: var(--text-1); font-size: var(--t-ui); }
.stats-locked-note { margin: 0; color: var(--dim); font-size: var(--t-meta); }
@media (max-width: 640px) {
  .stats-locked-card { top: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .stats-locked-card { animation: reveal-rise .35s ease both; }
}

/* The lede and the period sit under the tab's title, as a head's lede does:
   they come with the tab's contents, which may arrive after the head. */
.stats-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin-top: calc(4px - 1.9rem); }
.stats-lede { flex: 1 1 240px; color: var(--dim); font-size: var(--t-ui); }
.stats-periods { margin-left: auto; }
.stats-empty a, .stats-cell-why a, .stats-strip a, .stats-pages a, .stats-cards-head a { color: var(--blue-soft); font-weight: 500; text-underline-offset: .18em; }
.stats-empty a:hover, .stats-cell-why a:hover, .stats-strip a:hover, .stats-pages a:hover, .stats-cards-head a:hover { text-decoration: underline; }

.stats-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.stats-filters { display: contents; }
.stats-filters select { width: auto; max-width: 100%; font-weight: 500; }
html.js .stats-apply { display: none; }
.stats-paid {
  display: inline-flex; align-items: center; gap: 8px; height: var(--ctl); padding: 0 10px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  color: var(--text-1); font: 500 var(--t-meta)/1 var(--sans);
}
.stats-paid:hover { background: var(--raised-hover); color: var(--ink); text-decoration: none; }
.stats-tick {
  display: grid; place-items: center; width: 15px; height: 15px;
  border: 1px solid var(--edge); border-radius: var(--radius-sm); color: transparent;
}
.stats-tick svg { font-size: 11px; }
.stats-paid[aria-checked="true"] .stats-tick { border-color: var(--blue); background: var(--blue); color: #fff; }
.stats-paid-n { color: var(--faint); font-weight: 400; font-variant-numeric: tabular-nums; }
.stats-totals { margin-left: auto; color: var(--dim); font-size: var(--t-meta); font-variant-numeric: tabular-nums; }

.stats-lists { display: flex; flex-wrap: wrap; gap: 12px; }
.stats-cards {
  flex: 1 1 420px; min-width: 0;
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden;
}
.stats-cards-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-height: 34px; padding: 9px 12px 6px; }
.stats-cards-head :is(h3, a) { white-space: nowrap; }
.stats-body h3 { margin: 0; color: var(--ink); font: 600 var(--t-ui)/1.4 var(--sans); }
.stats-cards-head .faint { font-size: var(--t-label); }
.stats-cards-head a { margin-left: auto; font-size: var(--t-label); }
.stats-cards ol { margin: 0; padding: 0; list-style: none; }
.stats-cards li { border-top: 1px solid var(--line); }
.stats-card {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 4px 12px;
  border: 0; background: none; color: var(--text-1); font: inherit; text-align: left; cursor: pointer;
}
.stats-card:hover { background: var(--raised-hover); }
.stats-card:focus-visible { outline-offset: -2px; }
.stats-multiple { flex: none; width: 62px; font: 600 20px/1 var(--sans); font-variant-numeric: tabular-nums; }
.stats-card.up .stats-multiple { color: var(--stats-up); }
.stats-card.down .stats-multiple { color: var(--stats-down); }
.stats-mark {
  display: grid; place-items: center; flex: none; width: 24px; height: 24px;
  border-radius: var(--radius); background: rgba(var(--tint-rgb), .1); color: var(--ink);
}
.stats-mark svg { font-size: 12px; }
.stats-mark.small { width: 18px; height: 18px; border-radius: var(--radius-sm); }
.stats-mark.small svg { font-size: 9px; }
.stats-card-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.stats-text { display: flex; align-items: center; gap: 6px; min-width: 0; }
.stats-card-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--t-meta); }
.stats-tag {
  display: inline-flex; align-items: center; flex: none; height: 18px; padding: 0 6px;
  border: 1px solid rgba(var(--tint-rgb), .22); border-radius: var(--radius-sm);
  color: var(--text-2); font: 500 var(--t-micro)/1 var(--sans);
}
/* When a post went out, and how long ago, stay whole; who posted it is cut. */
.stats-meta { display: flex; min-width: 0; color: var(--dim); font-size: var(--t-label); white-space: nowrap; }
.stats-meta-who { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.stats-meta-when { flex: none; white-space: pre; }
.stats-handle { color: var(--hue); }
.stats-age { color: var(--faint); }
.stats-measure { display: flex; flex-direction: column; flex: none; width: 104px; text-align: right; font-variant-numeric: tabular-nums; }
.stats-measure b { color: var(--ink); font: 500 var(--t-meta)/1.4 var(--sans); }
.stats-measure span { color: var(--faint); font-size: var(--t-label); }
.stats-short { padding: 10px 12px; border-top: 1px solid var(--line); color: var(--dim); font-size: var(--t-label); }
.stats-cards-head + .stats-short { border-top: 1px solid var(--line); }

.stats-explain { display: flex; flex-direction: column; gap: 2px; }
.stats-explain p:first-child { color: var(--text-2); font-size: var(--t-meta); }
.stats-explain p + p { color: var(--faint); font-size: var(--t-label); }

.stats-all { display: flex; flex-direction: column; gap: 8px; }
.stats-all-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.stats-all-head .faint { font-size: var(--t-label); }
.stats-note { color: var(--text-2); font-size: var(--t-meta); }
.stats-scroll { overflow-x: auto; overflow-y: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--surface); }
.stats-table {
  width: 100%; min-width: 1112px; border-collapse: collapse; table-layout: fixed;
  font-size: var(--t-meta); font-variant-numeric: tabular-nums;
}
.stats-table .c-when { width: 136px; }
.stats-table .c-account { width: 196px; }
.stats-table.across .c-when { width: 112px; }
.stats-table.across .c-account { width: 236px; }
.stats-table .c-against { width: 164px; }
.stats-table .c-views { width: 64px; }
.stats-table .c-likes { width: 60px; }
.stats-table .c-replies { width: 80px; }
.stats-table .c-reposts { width: 68px; }
.stats-table .c-quotes { width: 62px; }
.stats-table .c-saves { width: 56px; }
.stats-table .c-shares { width: 64px; }
.stats-table th {
  height: 30px; padding: 0 8px;
  background: var(--surface); color: var(--faint); font: 600 var(--t-label)/1 var(--sans); text-align: left; white-space: nowrap;
}
.stats-table th a { color: var(--faint); }
.stats-table th a:hover, .stats-table th a.on { color: var(--ink); text-decoration: none; }
.stats-arrow { margin-left: 3px; }
.stats-table td { height: 31px; padding: 0 8px; border-top: 1px solid var(--line); color: var(--text-1); }
.stats-table :is(th, td):first-child { padding-left: 14px; }
.stats-table :is(th, td):last-child { padding-right: 14px; }
.stats-table .num { text-align: right; }
.stats-table td.num { color: var(--ink); }
.stats-table td.when { color: var(--text-2); font: 400 var(--t-meta)/1.4 var(--mono); white-space: nowrap; }
.stats-table td.when .stats-age { margin-left: 4px; font: 400 var(--t-label)/1 var(--sans); }
.stats-who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.stats-who .stats-handle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--t-meta); }
/* The handle says whose post it is; the workspace or platform beside it
   gives way first, down to a few letters. A handle that shrank in step
   with it, however little, would lose its end to the ellipsis. */
.stats-who > .faint { min-width: 3ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--t-label); }
.stats-table .stats-who .stats-handle { flex: none; max-width: calc(100% - 28px - 8px - 3ch - 6px); }
.stats-table .stats-mark { width: 20px; height: 20px; }
.stats-table .stats-mark svg { font-size: 10px; }
.stats-open {
  min-width: 0; overflow: hidden; padding: 0; border: 0; background: none;
  color: var(--text-1); font: inherit; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer;
}
.stats-open:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .18em; }
.stats-against { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.stats-against .up { color: var(--stats-up); }
.stats-against .down { color: var(--stats-down); }
.stats-scale { flex: none; }
.stats-scale .mid { fill: rgba(var(--tint-rgb), .3); }
.stats-scale .up { fill: var(--stats-up-bar); }
.stats-scale .down { fill: var(--stats-down-bar); }
.stats-why { color: var(--dim); font-size: var(--t-label); white-space: nowrap; }
.stats-table td.stats-none { height: auto; padding: 14px; color: var(--dim); }
.stats-pages { color: var(--faint); font-size: var(--t-label); font-variant-numeric: tabular-nums; }

.stats-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 8px 12px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--surface);
}
.stats-strip h3 { color: var(--text-2); font: 600 var(--t-label)/1.4 var(--sans); }
.stats-strip h3 span { display: block; color: var(--faint); font-weight: 400; }
.stats-cell { display: flex; flex-direction: column; gap: 1px; flex: 1 1 120px; min-width: 0; }
.stats-cell .stats-who { gap: 6px; }
.stats-cell .stats-handle { font-size: var(--t-label); }
.stats-cell-n { color: var(--text-2); font-size: var(--t-label); font-variant-numeric: tabular-nums; }
.stats-cell-n b { color: var(--ink); font-size: var(--t-meta); font-weight: 600; }
.stats-cell-why { color: var(--dim); font-size: var(--t-label); }
.stats-strip.line { display: block; color: var(--text-2); font-size: var(--t-label); line-height: 1.6; font-variant-numeric: tabular-nums; }
.stats-strip.line b { color: var(--ink); font-size: var(--t-meta); font-weight: 600; }
.stats-line-title { margin-right: 4px; font-weight: 600; }

/* A phone has no room for eleven columns: each post folds into a few lines,
   its numbers named, and the headers that sort it stay a row of links. */
@media (max-width: 759.98px) {
  .stats-head { align-items: flex-start; }
  .stats-periods { margin-left: 0; }
  .stats-totals { flex-basis: 100%; margin-left: 0; }
  .stats-cards { flex-basis: 100%; }
  .stats-multiple { width: 52px; font-size: 17px; }
  .stats-card .stats-mark { display: none; }
  .stats-measure { width: auto; max-width: 30%; }
  .stats-scroll { overflow: visible; }
  .stats-table, .stats-table :is(thead, tbody, tr, td) { display: block; min-width: 0; }
  .stats-table colgroup, .stats-table th.plain { display: none; }
  .stats-table thead tr { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 8px 14px; }
  .stats-table th { height: auto; padding: 0; background: none; }
  .stats-table :is(th, td):is(:first-child, :last-child) { padding: 0; }
  .stats-table tbody tr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 10px 14px; border-top: 1px solid var(--line); }
  .stats-table td { height: auto; padding: 0; border: 0; }
  .stats-table td:nth-child(2) { flex: 1; min-width: 0; }
  .stats-table td:nth-child(3), .stats-table td:nth-child(4) { flex-basis: 100%; }
  .stats-table td.num { color: var(--ink); font-size: var(--t-label); }
  .stats-table td.num::before { content: attr(data-label) " "; color: var(--faint); }
  .stats-table td.num:has(.faint) { display: none; }
}

/* A post's row answers the pointer; a press sinks it. */
.stats-card:active { background: var(--line-strong); }
.stats-table tbody tr:hover:not(:has(.stats-none)) { background: rgba(var(--tint-rgb), .04); }
/* The paid box ticks as it is pressed, ahead of the page that answers. */
.stats-paid[data-to="true"] .stats-tick { border-color: var(--blue); background: var(--blue); color: #fff; }
.stats-paid[data-to="false"] .stats-tick { border-color: var(--edge); background: none; color: transparent; }
.stats-paid:is([aria-checked="false"]:not([data-to="true"]), [data-to="false"]) .stats-tick svg { scale: .5; }

/* Stats arriving (stats-motion.js): the short lists and the table's first
   rows rise in turn, each bar grows out of the usual line, and the strip
   comes last. Another page of the table brings its rows alone. --d is when
   an element's turn comes. */
@media (prefers-reduced-motion: no-preference) {
  .stats-card, .stats-table tbody tr { transition: background-color .15s var(--ease-out); }
  .stats-tick { transition: background-color .15s var(--ease-out), border-color .15s var(--ease-out), color .15s var(--ease-out); }
  .stats-tick svg { transition: scale .2s var(--ease-out); }
  .stats-body[data-enter] .stats-cards li { animation: sq-line .3s var(--ease-out) calc(60ms + var(--d, 0ms)) both; }
  .stats-body:is([data-enter], [data-rows]) .stats-table tbody tr { animation: sq-line .28s var(--ease-out) calc(var(--lag) + var(--d, 0ms)) both; }
  .stats-body:is([data-enter], [data-rows]) .stats-scale :is(.up, .down) {
    transform-box: view-box; transform-origin: 27.5px 6px;
    animation: figure-draw .3s var(--ease-out) calc(var(--lag) + 60ms + var(--d, 0ms)) both;
  }
  .stats-body[data-enter] { --lag: 100ms; }
  /* The rows of the page before go out in the router's crossfade first. */
  .stats-body[data-rows] { --lag: 150ms; }
  .stats-body[data-enter] .stats-cell { animation: sq-line .3s var(--ease-out) calc(240ms + var(--d, 0ms)) both; }
  .stats-body[data-enter] .stats-strip.line { animation: sq-line .3s var(--ease-out) .24s both; }
}
/* A figure counting up: its own text holds its place unseen, and the count
   runs in the same cell over it, on the same baseline. */
.counting { display: inline-grid; }
.counting > * { grid-area: 1 / 1; white-space: nowrap; }
.counting > .count-real { opacity: 0; }

/* ---- team ---- */

/* A person stands for themselves by their initials, in a round mark. */
.mark.person-mark { border-radius: 50%; color: var(--text-1); font: 600 var(--t-meta)/1 var(--sans); }
.team-invites { margin-top: 16px; }
.team-invites .item-sub.trouble { color: var(--danger); }
/* An invite has no mark, so it stays a wrapping row on a phone too: the
   address, then what it is and its actions. */
.team-invites .list > .item { display: flex; flex-wrap: wrap; }
.team-invites .item-main { flex: 1 1 18rem; }
.invite-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.invite-role { flex: none; color: var(--text-2); font-size: var(--t-meta); }
.role-select { width: auto; height: var(--ctl-sm); max-width: 100%; padding-left: 8px; font-size: max(var(--t-meta), var(--field-min)); }
.row-alert { flex-basis: 100%; order: 2; padding-left: 44px; color: var(--danger); font-size: var(--t-meta); }
.row-alert[hidden] { display: none; }
.team-leave { margin-top: 24px; }
.team-more { margin-top: 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); overflow: hidden; }
.team-more > .list.columns { border: 0; border-radius: 0; }
/* A list flush under a heading has square corners, and so do its rows. */
:is(.desk-group, .desk-more, .team-more) > .list > * { border-radius: 0; }
.team-places .places a { color: var(--blue-soft); }
.places-more > summary { color: var(--blue-soft); cursor: pointer; font-size: var(--t-meta); }
@media (min-width: 1100px) {
  .list.columns.team-across { grid-template-columns: auto minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.6fr); }
}
.invite-link { margin-bottom: 16px; }
.invite-link[hidden] { display: none; }
@media (min-width: 1100px) {
  .list.columns > .item > .row-alert { grid-row: 2; grid-column: 2 / -1; padding-left: 0; }
}

/* ---- agents ---- */

/* Connect an agent: one card, the agents as tabs along its top, a pill that
   slides to the one picked (panel.js measures it), and the picked agent's
   setup below. Without scripting there are no tabs, and every setup shows
   under its own name, one under another. */
.agent-connect {
  margin-bottom: 8px; overflow: hidden;
  border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(var(--lift-rgb), .03), 0 24px 48px -32px rgba(var(--shade-rgb), calc(.6 * var(--shade-k)));
}
.agent-pick { padding: 10px 10px 0; }
.agent-pick[hidden] { display: none; }
.agent-pick [role="tablist"] {
  position: relative; display: flex; gap: 2px; padding: 3px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--field);
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
}
.agent-pick [role="tablist"]::-webkit-scrollbar { display: none; }
.agent-pick [role="tab"] {
  position: relative; z-index: 1; flex: 1 0 auto;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 36px; padding: 0 14px; border-radius: 7px;
  color: var(--dim); font: 500 var(--t-meta)/1 var(--sans); white-space: nowrap;
  transition: color .2s var(--ease-out);
}
.agent-pick [role="tab"][hidden] { display: none; }
.agent-pick [role="tab"]:hover, .agent-pick [aria-selected="true"] { color: var(--ink); }
.agent-pick [role="tab"] > svg { flex: none; font-size: 15px; transition: opacity .2s var(--ease-out), filter .2s var(--ease-out); }
.agent-pick [role="tab"]:not([aria-selected="true"]):not(:hover) > svg { opacity: .65; filter: grayscale(1); }
.agent-pick [role="tab"]:focus-visible { outline: 2px solid rgba(var(--sky-rgb), .8); outline-offset: -2px; }
.agent-pick [role="tablist"]::after {
  content: ""; position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 0;
  width: var(--pill-w, 0); translate: var(--pill-x, 0) 0;
  border-radius: 7px; background: var(--surface-hi);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 1px 2px rgba(var(--shade-rgb), calc(.35 * var(--shade-k)));
}
/* Until the pill has been placed, the picked tab draws its own. */
.agent-connect:not([data-pill]) .agent-pick [role="tablist"]::after { display: none; }
.agent-connect:not([data-pill]) .agent-pick [aria-selected="true"] { background: var(--surface-hi); box-shadow: inset 0 0 0 1px var(--line-strong); }
@media (prefers-reduced-motion: no-preference) {
  .agent-connect[data-pill="moving"] .agent-pick [role="tablist"]::after { transition: translate .45s var(--spring), width .45s var(--spring); }
  .setup[data-enter] .setup-flow { animation: setup-in .32s var(--ease-out) both; }
  .setup[data-enter] .setup-body > figure { animation: setup-in .36s var(--ease-out) .05s both; }
  .setup[data-enter] .setup-try { animation: setup-in .32s var(--ease-out) .08s both; }
}
@keyframes setup-in { from { opacity: 0; translate: 0 6px; filter: blur(2px); } }

.setup { display: flex; flex-direction: column; min-width: 0; }
.agent-connect:not(.tabbed) .setup + .setup { border-top: 1px solid var(--line-strong); }
.setup-name { margin: 20px 24px 0; color: var(--ink); font: 500 var(--t-lede)/1.25 var(--serif); }
.agent-connect.tabbed .setup-name { display: none; }
/* The steps on the left, what the person will see on the right. */
.setup-body {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; gap: 32px;
  padding: 26px 24px 24px;
}
/* A setup with nothing to show beside its steps, such as a command, uses the
   whole row rather than leaving an empty column. */
.setup-body:not(:has(> figure)) { grid-template-columns: minmax(0, 1fr); }
.setup-flow { min-width: 0; }
.setup a { color: var(--blue-soft); text-decoration: underline; text-underline-offset: .18em; }
.setup b { color: var(--ink); font-weight: 600; }

/* Each step a number on a thread, its words, and under them what it asks
   to paste. The thread turns blue up to the step a replay is on. */
.setup-steps { display: grid; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.setup-steps > li {
  position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 14px;
  padding-bottom: 22px; counter-increment: step;
}
.setup-steps > li:last-child { padding-bottom: 0; }
.setup-steps > li::before {
  content: counter(step); grid-row: 1 / span 2; display: grid; place-items: center; width: 24px; height: 24px;
  border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface);
  color: var(--text-2); font: 500 var(--t-label)/1 var(--mono); font-variant-numeric: tabular-nums;
}
.setup-steps > li:not(:last-child)::after {
  content: ""; position: absolute; left: 11.5px; top: 30px; bottom: 6px; width: 1px;
  background: linear-gradient(var(--line-strong), var(--line));
}
.setup-steps > li.now::before { border-color: var(--blue-hi); color: var(--blue-hi); box-shadow: 0 0 0 4px rgba(28, 92, 255, .16); }
.setup-steps > li.done::before {
  content: ""; border-color: var(--blue); background: var(--blue) no-repeat center / 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='white' d='M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z'/%3E%3C/svg%3E");
}
.setup-steps > li.done:not(:last-child)::after { background: linear-gradient(var(--blue), var(--line-strong)); }
@media (prefers-reduced-motion: no-preference) {
  .setup-steps > li::before { transition: border-color .3s var(--ease-out), background-color .3s var(--ease-out), box-shadow .3s var(--ease-out), color .3s var(--ease-out); }
}
.setup-cap { grid-column: 2; margin: 0; padding-top: 2px; color: var(--text-2); font-size: var(--t-ui); line-height: 1.55; text-wrap: pretty; }
.setup-cap code, .setup-keynote code {
  padding: 0 4px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--raised);
  color: var(--ink); font: var(--t-label) var(--mono);
}
.setup-val { grid-column: 2; display: flex; flex-direction: column; gap: 8px; min-width: 0; margin-top: 12px; }
.setup-aside, .setup-keynote { display: flex; align-items: center; gap: 8px; margin: 20px 0 0 38px; color: var(--dim); font-size: var(--t-meta); text-wrap: pretty; }
.setup-keynote {
  align-items: flex-start; margin: 0 0 22px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--raised); color: var(--text-2);
}
.setup-aside > svg, .setup-keynote > svg { flex: none; font-size: 14px; color: var(--faint); }
.setup-keynote > svg { margin-top: 2px; }
/* The one action an agent's own app offers, where it has one. */
.setup .setup-primary {
  position: relative; align-self: flex-start; height: var(--ctl-lg); padding: 0 18px;
  color: #fff; font: 600 var(--t-ui)/1 var(--sans); text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -2px 3px rgba(0, 0, 0, .2);
}
/* What the button copied, under it, for the moment copy.js says so. Above it
   would cover the step's own words. The words of the button stay, so it does
   not change width under the pointer. The step keeps the room, so the next
   one does not jump when the tip appears. */
.setup-steps > li:has(.setup-primary[data-copy]) { padding-bottom: 40px; }
.setup-primary[data-said]::before {
  content: attr(data-said); position: absolute; z-index: 3; top: calc(100% + 6px); left: 0;
  padding: 5px 8px; border-radius: var(--radius-sm); background: var(--ink); color: var(--bg);
  font: 500 var(--t-label)/1 var(--sans); white-space: nowrap; pointer-events: none;
  box-shadow: 0 4px 12px rgba(var(--shade-rgb), calc(.3 * var(--shade-k)));
}
.setup-primary svg { font-size: 14px; transition: translate .2s var(--ease-out); }
.setup-primary:hover svg { translate: 2px -2px; }
@media (prefers-reduced-motion: no-preference) {
  .setup .setup-primary { transition: background-color .15s, scale .15s var(--ease-out); }
  .setup .setup-primary:active { scale: .97; }
  .setup-primary[data-said]::before { animation: copy-said .18s var(--ease-out) both; }
}
.setup-more { margin: 22px 0 0 38px; }
.setup-more > summary {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none;
  color: var(--dim); font: 500 var(--t-meta)/1 var(--sans);
}
.setup-more > summary::-webkit-details-marker { display: none; }
.setup-more > summary:hover { color: var(--ink); }
.setup-more > summary svg { font-size: 12px; rotate: -90deg; transition: rotate .2s var(--ease-out); }
.setup-more[open] > summary svg { rotate: 0deg; }
.setup-more > .setup-cap { margin-top: 14px; }

/* A value to paste: what it is inside the frame on the left, the copy an
   icon on the right. A command is cut to one row and copies whole. */
.setup-box { width: 100%; min-height: 38px; }
.setup .copy-field.setup-box code {
  flex: 1 1 auto; align-self: center; min-width: 0; padding: 8px 12px 8px 0;
  border: 0; background: none; color: var(--ink);
  font: var(--t-meta)/1.5 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere;
}
.box-label, .box-prefix {
  flex: none; display: flex; align-items: center; padding: 0 8px 0 12px;
  color: var(--faint); font: 500 var(--t-label)/1 var(--sans);
}
.box-label { min-width: 4.4rem; margin-right: 10px; padding-right: 10px; border-right: 1px solid var(--line); }
.box-prefix { font: 500 var(--t-meta)/1 var(--mono); }
.setup-line .box-prefix { color: var(--blue-hi); }
.setup .copy-field.setup-command code { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.setup .copy-field.setup-fixed code { font: 500 var(--t-meta)/1.5 var(--sans); }
.setup-box > .copy {
  position: relative; inset: auto; flex: none; width: 38px; height: auto; padding: 0; justify-content: center;
  border: 0; border-left: 1px solid var(--line); border-radius: 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0;
  background: transparent; color: var(--dim);
}
.setup-box > .copy:hover { background: var(--raised-hover); color: var(--ink); }
/* A copy button here is its icon: the words stay for a screen reader, and
   what copy.js says shows over it a moment. */
:is(.setup-box, .sq-file) .copy .copy-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.agent-connect .copy svg { font-size: 15px; }
.agent-connect .copy svg + svg, .key-result .copy svg + svg { display: none; }
.agent-connect .copy[data-said="Copied"] svg:first-of-type, .key-result .copy[data-said="Copied"] svg:first-of-type { display: none; }
.agent-connect .copy[data-said="Copied"] svg + svg, .key-result .copy[data-said="Copied"] svg + svg { display: block; }
/* What it said, above it: ::before, since ::after is the button's grown hit
   area. */
:is(.setup-box, .sq-file) .copy[data-said]::before {
  content: attr(data-said); position: absolute; z-index: 3; bottom: calc(100% + 6px); left: 50%; translate: -50% 0;
  padding: 5px 8px; border-radius: var(--radius-sm); background: var(--ink); color: var(--bg);
  font: 500 var(--t-label)/1 var(--sans); white-space: nowrap; pointer-events: none;
  box-shadow: 0 4px 12px rgba(var(--shade-rgb), calc(.3 * var(--shade-k)));
}
/* A command's copy sits on the right edge of the card, so a centred tip runs
   out of it. The tip sits on that edge. */
.setup-command > .copy[data-said]::before { left: auto; right: 0; translate: none; }
.agent-connect .copy[data-said="Copied"], .agent-connect .copy[data-said="Copied"]:hover { color: var(--ok); }
@media (prefers-reduced-motion: no-preference) {
  .agent-connect .copy[data-said="Copied"] svg + svg { animation: copy-tick .35s var(--ease-out) both; }
  :is(.setup-box, .sq-file) .copy[data-said]::before { animation: copy-said .18s var(--ease-out) both; }
}
@keyframes copy-tick { from { scale: .6; opacity: 0; } }
@keyframes copy-said { from { opacity: 0; scale: .92; } }

/* The first thing to ask the agent once it is in. */
.setup-try {
  display: grid; gap: 10px; margin: 0 24px 22px; padding: 14px 14px 14px 16px;
  border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); background: var(--raised);
}
.setup-try-label { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--dim); font: 500 var(--t-meta)/1 var(--sans); }
.setup-try-label svg { font-size: 13px; color: var(--blue-hi); }
.setup .copy-field.setup-ask code { padding-left: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: var(--t-ui)/1.5 var(--sans); }
/* The line that says when the agent got in, and the guide beside it. */
.setup-foot { display: flex; align-items: center; margin-top: auto; border-top: 1px solid var(--line); background: var(--raised); transition: background-color .3s var(--ease-out); }
.setup-foot:has(.agent-live[data-state="done"]) { background: rgba(var(--ok-rgb), .1); }
.setup-foot .agent-live { flex: 1; border: 0; background: none; }
.setup .setup-guide { flex: none; margin-right: 24px; color: var(--dim); font-size: var(--t-meta); text-decoration-color: var(--line-strong); }
.setup .setup-guide:hover { color: var(--ink); text-decoration-color: currentColor; }

/* What the agent did, said without a reload: a ring while the panel waits
   on it, and the line turns green once it got in. */
.agent-live {
  display: flex; align-items: center; gap: 10px; margin: auto 0 0; padding: 13px 24px;
  border-top: 1px solid var(--line); background: var(--raised);
  color: var(--text-2); font-size: var(--t-meta); line-height: 1.45; text-wrap: pretty;
}
.agent-live-mark { position: relative; flex: none; width: 14px; height: 14px; border: 1.5px solid var(--line-strong); border-radius: 50%; }
/* Dashed while nothing is under way, so the ring does not read as a radio. */
.agent-live[data-state="idle"] .agent-live-mark { border-style: dashed; }
.agent-live[data-state="waiting"] .agent-live-mark { border-top-color: var(--blue-hi); animation: action-spin .8s linear infinite; }
.agent-live[data-state="done"] { background: rgba(var(--ok-rgb), .1); color: var(--ink); }
.agent-live[data-state="done"] .agent-live-mark { border-color: var(--ok); background: var(--ok); }
.agent-live[data-state="done"] .agent-live-mark::after {
  content: ""; position: absolute; left: 3.5px; top: 1px; width: 3px; height: 6px;
  border: solid var(--bg); border-width: 0 1.5px 1.5px 0; rotate: 45deg;
}
.agent-live a { color: var(--blue-soft); }
@media (prefers-reduced-motion: reduce) {
  .agent-live[data-state="waiting"] .agent-live-mark { animation: none; border-color: var(--blue-hi); }
}
/* The line warms to green rather than switching, and its tick arrives from
   small and soft. Words and colour say it too, so nothing is lost without
   the motion. */
@media (prefers-reduced-motion: no-preference) {
  .agent-live { transition: background-color .3s var(--ease-out), color .3s var(--ease-out); }
  .agent-live[data-arrived] .agent-live-mark { animation: live-arrive .3s cubic-bezier(.2, 0, 0, 1); }
}
@keyframes live-arrive { from { scale: .25; opacity: 0; filter: blur(4px); } }
.subhead-count { margin-left: 4px; color: var(--faint); font-weight: 400; font-variant-numeric: tabular-nums; }

/* ---- Agents tab: what each setup shows beside its steps ----
   A terminal agent's own screen, replayed (setup-demo.js), a chat app's
   trip to our consent screen, or the file a key goes in. A terminal is
   dark in either theme, as a terminal is; our own pages in it are drawn in
   the reader's theme. */
.sq-term {
  position: relative; min-width: 0; margin: 0; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .09); border-radius: var(--radius-lg);
  background: #0b0d11; color: #d5d8de;
  box-shadow: 0 30px 70px -30px rgba(var(--shade-rgb), calc(.7 * var(--shade-k))), 0 0 48px rgba(28, 92, 255, .08);
}
.sq-term-bar {
  position: relative; display: flex; align-items: center; justify-content: space-between; height: 36px; padding: 0 10px 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .07); background: #13161b;
}
.sq-dots { display: inline-flex; gap: 7px; }
.sq-dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a3f48; }
.sq-term-title {
  position: absolute; left: 50%; translate: -50% 0;
  color: #858c97; font: 12px/1 var(--mono); white-space: nowrap;
}
.sq-replay {
  height: 24px; padding: 0 9px; border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius-sm);
  background: transparent; color: #a7adb7; font: 500 11px/1 var(--mono); cursor: pointer;
  transition: background-color .15s, color .15s;
}
.sq-replay:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.sq-screen { position: relative; display: flex; flex-direction: column; height: 380px; padding: 14px 16px 10px; font: 12px/1.6 var(--mono); }
/* New lines arrive at the bottom and push the old ones up and out, as a
   terminal scrolls. */
.sq-lines {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 9px; flex: 1; min-height: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 36px); mask-image: linear-gradient(transparent, #000 36px);
}
.sq-lines p { display: grid; grid-template-columns: 2ch minmax(0, 1fr); margin: 0; overflow-wrap: anywhere; }
.sq-you { margin-inline: -6px; padding: 3px 6px; border-radius: 3px; background: rgba(255, 255, 255, .05); color: #a1a8b3; }
.sq-tool > span:first-child { color: #4eba65; }
.sq-tool b, .sq-say b { color: #fff; font-weight: 600; }
.sq-lines .sq-out { grid-template-columns: 2ch 3ch minmax(0, 1fr); color: #858c97; }
.sq-out > span:first-child { grid-column: 2; }
.sq-say > span:first-child { color: #e8e8e8; }
.sq-busy { color: #d77757; }
.sq-input {
  display: flex; align-items: center; gap: 1ch; min-height: 38px; margin-top: 14px; padding: 7px 2px;
  border-block: 1px solid #343941; color: #eceef1;
}
.sq-input > span:first-child { color: #858c97; }
.sq-typed { overflow-wrap: anywhere; }
.sq-caret { flex: none; width: 7px; height: 15px; margin-left: -1ch; background: #d5d8de; }
.sq-hint { margin: 6px 2px 0; color: #5f6672; font-size: 11px; }

/* The browser the sign-in opens, over the terminal: the consent screen as
   the page draws it, at a smaller size. */
.sq-browser {
  position: absolute; left: 50%; top: 47%; width: min(88%, 440px); translate: -50% -50%;
  overflow: hidden; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .75);
}
.sq-browser-bar {
  display: flex; align-items: center; gap: 12px; height: 30px; margin: 0; padding: 0 10px;
  border-bottom: 1px solid var(--line); background: var(--raised);
}
.sq-url {
  flex: 1; margin-right: 46px; padding: 3px 10px; border-radius: var(--radius-sm); background: var(--field);
  color: var(--dim); font: 11px/1.4 var(--mono); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sq-consent { zoom: .74; margin: 28px; }
.sq-consent .auth-submit { transition: background-color .15s, scale .15s; }
.sq-consent .auth-submit.on { background: var(--blue-press); scale: .96; }

/* What is shown when. Without scripting, and at rest, every line shows and
   nothing passing does: the last frame. */
.sq-term [data-until] { display: none; }
.sq-term[data-state="playing"] .sq-lines > [data-at]:not(.on) { display: none; }
.sq-term[data-state="playing"] .sq-lines > [data-until].on { display: grid; }
.sq-term[data-state="playing"] .sq-browser.on { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .sq-term[data-state="playing"] .sq-lines > .on { animation: sq-line .22s var(--ease-out) both; }
  .sq-term[data-state="playing"] .sq-browser.on { animation: sq-pop .4s var(--spring) both; }
  .sq-term[data-state="playing"] .sq-browser.leaving { animation: sq-leave .25s ease both; }
  .sq-caret { animation: sq-blink 1.05s steps(1) infinite; }
}
@keyframes sq-line { from { opacity: 0; translate: 0 6px; } }
@keyframes sq-pop { from { opacity: 0; scale: .94; translate: -50% -44%; } }
@keyframes sq-leave { to { opacity: 0; scale: .97; } }
@keyframes sq-blink { 50% { opacity: 0; } }

/* Codex draws on the same dark screen with its own marks: "›" for what
   the person sends, a header framing its name, and approvals that take the
   place of the prompt until one is chosen. */
.sq-codex .sq-screen { height: 420px; }
.sq-codex .sq-lines > .cx-head {
  display: block; margin-bottom: 14px; padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 4px;
}
.cx-head > span { display: block; }
.cx-head b { color: #fff; }
.sq-codex .cx-dim { color: #7d848f; }
.sq-codex .sq-you { color: #d5d8de; }
.sq-codex .sq-busy { color: #a1a8b3; }
.sq-codex .sq-busy > span:first-child { color: #7d848f; }
.sq-codex .sq-busy b { color: #d5d8de; font-weight: 600; }
.cx-ok { color: #a1a8b3; }
.cx-ok > span:first-child { color: #4eba65; }
/* An empty prompt shows its placeholder, the cursor on its first letter. */
.sq-typed:empty::before { content: attr(data-placeholder); color: #6b717c; }
.sq-input:has(.sq-typed[data-placeholder]:empty) .sq-caret { order: 1; margin: 0 -7px 0 0; }
.sq-input:has(.sq-typed[data-placeholder]:empty) .sq-typed { order: 2; }
.cx-approve { flex: none; margin: 10px -16px -10px; padding: 12px 16px 14px; border-top: 1px solid rgba(255, 255, 255, .1); color: #d5d8de; }
.sq-screen:has(.cx-approve.on) :is(.sq-input, .sq-hint) { display: none; }
.cx-approve p { margin: 0; }
.cx-approve b { color: #fff; }
.cx-approve i { color: #a1a8b3; }
.cx-reason, .cx-cmd { margin-bottom: 10px !important; }
.cx-cmd { color: #fff; }
.cx-opt { white-space: pre-wrap; }
/* The choice under the cursor, drawn reversed as the TUI draws it, lit as
   it is pressed. */
.cx-pick { margin-inline: -16px; padding-inline: 16px; background: #d5d8de; color: #0b0d11; font-weight: 700; transition: background-color .12s; }
.cx-pick.on { background: #fff; }
.sq-term[data-state="playing"] .cx-approve.on { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .sq-term[data-state="playing"] .cx-approve.on { animation: cx-up .26s var(--ease-out) both; }
  .sq-term[data-state="playing"] .cx-approve.leaving { animation: sq-leave .25s ease both; }
}
@keyframes cx-up { from { opacity: 0; translate: 0 10px; } }

/* A chat app sends the person to our consent screen in their browser, and
   on to the Agents tab, drawn smaller as a browser this size shows it. */
.sq-web {
  min-width: 0; margin: 0; overflow: hidden;
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--bg);
  box-shadow: 0 30px 70px -30px rgba(var(--shade-rgb), calc(.7 * var(--shade-k))), 0 0 48px rgba(28, 92, 255, .08);
}
.sq-web-bar { display: flex; align-items: center; gap: 12px; height: 36px; padding: 0 10px 0 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.sq-web .sq-dots i { background: var(--line-strong); }
.sq-web-url {
  flex: 1; display: flex; align-items: center; justify-content: center; min-width: 0; height: 22px;
  border-radius: 6px; background: var(--field); color: var(--dim); font: 11px/1 var(--mono); white-space: nowrap; overflow: hidden;
}
.sq-web .sq-replay { color: var(--dim); border-color: var(--line-strong); }
.sq-web .sq-replay:hover { background: var(--raised-hover); color: var(--ink); }
.sq-web-screen { display: grid; place-items: center; min-height: 330px; padding: 24px; }
.sq-web-consent { display: grid; place-items: center; }
.sq-web-form { display: grid; place-items: center; width: min(100%, 380px); }
.sq-connector {
  width: 100%; padding: 14px 14px 12px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--surface);
}
.sq-connector-head { margin: 0 0 12px; color: var(--ink); font: 600 var(--t-ui)/1.2 var(--sans); }
.sq-field { display: grid; gap: 5px; margin: 0 0 10px; }
.sq-field > span:first-child { color: var(--dim); font: 500 var(--t-label)/1 var(--sans); }
.sq-field-value {
  display: flex; align-items: center; gap: 1px; min-width: 0; min-height: 34px; padding: 0 10px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--field);
  color: var(--ink); font: 12px/1.3 var(--mono);
}
.sq-field-value > [data-demo-fill] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sq-field-caret { display: none; flex: none; width: 1px; height: 14px; background: var(--ink); }
.sq-web[data-state="playing"] .sq-field:not(:has(.on)) .sq-field-caret { display: block; }
.sq-web[data-state="playing"] .sq-field:not(:has(.on)) ~ .sq-field .sq-field-caret { display: none; }
.sq-connector-add {
  display: inline-flex; align-items: center; height: 32px; margin-top: 2px; padding: 0 12px;
  border-radius: var(--radius); background: var(--ink); color: var(--bg);
  font: 600 var(--t-label)/1 var(--sans);
  transition: background-color .15s, scale .15s;
}
.sq-connector-add.on { scale: .96; }
.sq-web-screen .sq-consent { zoom: .82; max-width: 440px; margin: 0; }
.sq-web-page { zoom: .8; align-self: start; width: 100%; }
.sq-web-page .panel-section-head { margin-bottom: 26px; }
.sq-web-page .list { margin: 0; }
/* The list as a narrow panel draws it: a wide screen's columns would not
   fit the window, so there the row keeps to one line. */
@media (min-width: 1100px) {
  .sq-web-page .list.columns { display: block; }
  .sq-web-page .list.columns > .item { display: flex; flex-wrap: nowrap; }
  .sq-web-page .item-facts { display: flex; flex: none; padding-left: 0; }
}
.sq-web [data-until] { display: none; }
.sq-web[data-state="playing"] :is(.sq-web-screen, .sq-web-url) > [data-at]:not(.on) { display: none; }
.sq-web[data-state="playing"] .sq-web-url > [data-until].on { display: inline; }
.sq-web[data-state="playing"] .sq-web-consent.on,
.sq-web[data-state="playing"] .sq-web-form.on { display: grid; }
@media (prefers-reduced-motion: no-preference) {
  .sq-field-caret { animation: sq-blink 1.05s steps(1) infinite; }
  .sq-web[data-state="playing"] .sq-web-consent.on,
  .sq-web[data-state="playing"] .sq-web-form.on { animation: sq-pop-in .4s var(--spring) both; }
  .sq-web[data-state="playing"] .sq-web-consent.leaving,
  .sq-web[data-state="playing"] .sq-web-form.leaving { animation: sq-leave .25s ease both; }
  .sq-web[data-state="playing"] .sq-web-page.on { animation: sq-line .22s var(--ease-out) both; }
  .sq-web[data-state="playing"] .sq-web-page.on .item { animation: sq-row .6s var(--ease-out) .25s both; }
}
@keyframes sq-pop-in { from { opacity: 0; scale: .94; } }
@keyframes sq-row { from { opacity: 0; translate: 0 8px; } 40% { background: rgba(var(--ok-rgb), .14); } }

/* The file a key goes in, or the request it rides on: the key itself
   lit, and written in once one is made. */
.sq-file .sq-term-bar { justify-content: flex-start; gap: 12px; }
.sq-file .sq-term-title { position: static; flex: 1; translate: none; text-align: center; overflow: hidden; text-overflow: ellipsis; }
.sq-file .copy {
  position: relative; inset: auto; width: 28px; height: 24px; padding: 0; justify-content: center;
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 5px; background: transparent; color: #a1a8b3;
}
.sq-file .copy:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.sq-file .copy[data-said]::before { top: calc(100% + 6px); bottom: auto; left: auto; right: 0; translate: none; }
.sq-file-code { margin: 0; padding: 16px 18px 20px; overflow-x: auto; color: #d5d8de; font: 12.5px/1.7 var(--mono); }
.sq-file-code code { padding: 0; border: 0; background: none; color: inherit; font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }
.sq-file-code i { color: #8fb1ff; font-style: normal; }
.sq-file-code s { color: #9fd8a8; text-decoration: none; }
.sq-file-code b { color: #fff; }
.sq-file-code u { padding: 0 3px; border-radius: 3px; background: rgba(255, 196, 90, .16); color: #ffcf7a; text-decoration: none; }
.sq-file-caret { display: inline-block; width: 7px; height: 14px; vertical-align: -2px; background: #d5d8de; }
@media (prefers-reduced-motion: no-preference) { .sq-file-caret { animation: sq-blink 1.05s steps(1) infinite; } }

@media (max-width: 980px) {
  .setup-body { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .sq-screen { height: 340px; }
  .sq-codex .sq-screen { height: 400px; }
}
@media (max-width: 600px) {
  .agent-connect { margin-inline: -4px; border-radius: 10px; }
  .agent-pick [role="tablist"] { mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
  .agent-pick [role="tab"] { flex: none; padding: 0 12px; }
  .setup-body { padding: 20px 16px 18px; }
  .setup-try { margin: 0 16px 18px; }
  .setup-foot { flex-wrap: wrap; }
  .setup-foot .agent-live { padding-inline: 16px; }
  .setup .setup-guide { margin: 0 16px 12px 40px; }
  .setup-aside, .setup-more { margin-left: 0; }
  .box-label { min-width: 3.6rem; }
  .sq-screen { height: 360px; padding: 12px; font-size: 11px; }
  .sq-term:not(.sq-file) .sq-term-title { display: none; }
}
.panel-body .snippet { margin: 0 0 12px; border-color: var(--line-strong); border-radius: var(--radius-lg); background: var(--surface); box-shadow: none; }
.panel-body .snippet figcaption { padding: 14px 16px 0; color: var(--faint); font: 400 var(--t-meta) var(--sans); letter-spacing: 0; text-transform: none; }
.panel-body .snippet pre { padding: 10px 2.5rem 16px 16px; }
.panel-body .snippet code { line-height: 1.7; }
.panel-body .copy svg { font-size: 14px; }
/* One line to paste, framed with its copy button so the two never come
   apart. A line wider than the frame wraps inside it, so all of what the
   button copies shows, a key put in after the fact included. The button is
   relative, not static: its enlarged hit area is positioned against it, and
   would otherwise cover the line. It sits flush in the frame, so it changes
   colour rather than shrinking or drawing a border of its own. */
.copy-field {
  display: flex; align-items: stretch; min-width: 0; max-width: 100%;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--field);
}
:is(.setup, .key-maker) .copy-field code {
  flex: 1 1 auto; min-width: 0; padding: 7px 12px;
  border: 0; border-radius: 0; background: none;
  font-size: var(--t-meta); line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere;
}
.panel-body .copy-field .copy {
  position: relative; inset: auto; flex: none; height: auto;
  border: 0; border-left: 1px solid var(--line-strong);
  border-radius: 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0;
}
.panel-body .copy-field .copy:hover { background: var(--raised-hover); }
/* The key form in a step: the presets as one switch of three, with what the
   picked one allows said under it. */
.key-maker { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.key-form { display: flex; flex-direction: column; gap: 14px; }
.key-form .preset-grid {
  display: flex; gap: 2px; padding: 2px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--raised);
}
.key-form .preset {
  flex: 1 1 auto; flex-direction: row; align-items: center; justify-content: center;
  min-height: var(--ctl-sm); padding: 4px 10px; border: 0; border-radius: var(--radius); background: none; text-align: center;
}
.key-form .preset::after { content: none; }
.key-form .preset .preset-about { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.key-form .preset:has(input:checked) {
  border: 0; background: var(--surface-hi);
  box-shadow: 0 1px 2px rgba(var(--shade-rgb), calc(.3 * var(--shade-k))), 0 0 0 1px var(--line-strong);
}
.key-form .preset-name { color: var(--text-2); font-size: var(--t-meta); }
.key-form .preset:has(input:checked) .preset-name { color: var(--ink); }
.preset-said { margin: 6px 0 0; color: var(--faint); font-size: var(--t-label); line-height: 1.4; text-wrap: pretty; }
.preset-said:empty { display: none; }
.key-form .customise { margin-top: -4px; }
.key-result { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.key-result:focus { outline: none; }
@media (prefers-reduced-motion: no-preference) {
  .key-result { transition: opacity .2s var(--ease-out), translate .2s var(--ease-out); }
  @starting-style { .key-result { opacity: 0; translate: 0 4px; } }
}
.key-result .banner { margin: 0; }
.key-result .copy-field { align-self: stretch; }
.key-result code { color: var(--blue-pale); user-select: all; }
.setup-plain-note { margin: 0; padding-top: 1px; color: var(--dim); font-size: var(--t-meta); }
@media (max-width: 720px) {
  .panel-body .snippet code { white-space: pre-wrap; overflow-wrap: anywhere; }
}

/* ---- queue ---- */

.queue-head {
  display: flex; align-items: baseline; gap: 8px; margin: 2rem 0 .75rem;
  color: var(--ink); font: 600 var(--t-ui)/1.4 var(--sans);
}
.queue-head:first-child { margin-top: 0; }
.queue-count { color: var(--faint); font: 400 var(--t-meta) var(--mono); }

/* A row is the post as it goes out. The whole row opens it: the button's
   ::after covers the row, and the "⋯" sits above that. Its corners follow the
   list's, so the hover fill does not poke past them. */
.post-row {
  position: relative; align-items: flex-start; padding: 14px 10px 14px 14px;
  transition: background-color .2s var(--ease-out);
}
.post-row:hover { background: var(--raised); }
.post-row:has(> .post-open:focus-visible) { outline: 2px solid var(--blue-hi); outline-offset: -2px; }
.post-open:focus-visible { outline: none; }
.post-open {
  display: flex; align-items: flex-start; gap: 12px; flex: 1; min-width: 0;
  color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.post-open::after { content: ""; position: absolute; inset: 0; }
.post-row > .more { z-index: 1; margin: -4px -4px 0 0; }

/* Who it goes out as: the first account's mark. */
.post-avatar { position: relative; flex: none; width: 32px; height: 32px; }
.post-avatar .mark { position: absolute; inset: 0; }
.post-avatar .mark.none { border-style: dashed; background: none; }

.post-main { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.post-line {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px;
  color: var(--faint); font: 400 var(--t-meta)/1.5 var(--sans); font-variant-numeric: tabular-nums;
}
.post-who { color: var(--text-2); overflow-wrap: anywhere; }
.post-more { color: var(--faint); }
.post-line .badge { margin-left: auto; }
/* The post's workspace, on a list across workspaces. */
.post-org { margin-left: auto; color: var(--faint); font-size: var(--t-meta); }
.post-line .badge ~ .post-org { margin-left: 0; }
.post-text {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
  color: var(--ink); font: 400 var(--t-body)/1.5 var(--sans); overflow-wrap: anywhere; text-wrap: pretty;
}
.post-facts { display: flex; flex-wrap: wrap; gap: 2px 16px; margin-top: 4px; color: var(--faint); font-size: var(--t-meta); }
.post-problem { color: var(--danger); }
.post-thumb {
  flex: none; width: 64px; height: 64px; object-fit: cover;
  border-radius: var(--radius); background: var(--raised);
  outline: 1px solid var(--image-edge); outline-offset: -1px;
}
button :is(video.post-thumb, video.lane-thumb) { pointer-events: none; }

/* ---- the queue's views ---- */

/* Each account wears a colour of its own, kept clear of the status hues:
   green is gone out, red wants attention, blue is the brand's. A disconnected
   account has none and is drawn in the faint grey. */
:root { --hue: var(--faint); }
.hue-0 { --hue: var(--hue-0); }
.hue-1 { --hue: var(--hue-1); }
.hue-2 { --hue: var(--hue-2); }
.hue-3 { --hue: var(--hue-3); }
.hue-4 { --hue: var(--hue-4); }
.hue-5 { --hue: var(--hue-5); }
.account-name { color: var(--hue); }
:is(#queue, #calendar) .faint { color: var(--faint); }

/* Two letters of the account's name in its colour, its platform's mark in
   the corner: three X accounts no longer look like one. */
.account-mark {
  position: relative; display: grid; place-items: center; flex: none;
  width: 32px; height: 32px; border-radius: var(--radius);
  background: color-mix(in srgb, var(--hue) 15%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hue) 42%, transparent);
  color: var(--hue); font: 600 var(--t-meta)/1 var(--mono); letter-spacing: .02em;
}
.account-platform {
  position: absolute; right: -6px; bottom: -6px; display: grid; place-items: center;
  width: 18px; height: 18px; border-radius: var(--radius-sm);
  background: var(--overlay); box-shadow: 0 0 0 1px var(--line-strong); color: var(--ink);
}
.account-platform svg { font-size: 10px; }
.account-photo { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }

/* A set of tabs or a switch between views: a sunken track, and the one picked
   lifted out of it. */
.segmented {
  display: inline-flex; gap: 2px; padding: 2px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--raised);
}
.segmented :is(a, button) {
  display: inline-flex; align-items: center; gap: 8px; height: var(--ctl-sm); padding: 0 10px;
  border-radius: var(--radius); color: var(--text-2); font: 500 var(--t-meta)/1 var(--sans);
  transition: background-color .15s, color .15s;
}
.segmented :is(a, button) svg { flex: none; font-size: 15px; }
.segmented :is(a, button):hover { color: var(--ink); }
.segmented :is(a[aria-current="page"], button[aria-pressed="true"]) {
  background: var(--surface-hi); color: var(--ink);
  box-shadow: 0 1px 2px rgba(var(--shade-rgb), calc(.3 * var(--shade-k))), 0 0 0 1px var(--line-strong);
}
/* Where a script has measured it, the picked part is one pill under the
   options, which slides from one to the next (stats-motion.js). */
.segmented[data-pill] { position: relative; isolation: isolate; }
.segmented[data-pill]::before {
  content: ""; position: absolute; z-index: -1; top: 0; left: 0;
  width: var(--pill-w, 0); height: var(--pill-h, 0); translate: var(--pill-x, 0) var(--pill-y, 0);
  border-radius: var(--radius); background: var(--surface-hi);
  box-shadow: 0 1px 2px rgba(var(--shade-rgb), calc(.3 * var(--shade-k))), 0 0 0 1px var(--line-strong);
}
.segmented[data-pill] :is(a[aria-current="page"], button[aria-pressed="true"]) { background: none; box-shadow: none; }
.segmented [data-pill-to] { color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .segmented[data-pill="moving"]::before { transition: translate .26s var(--ease-out), width .26s var(--ease-out), height .26s var(--ease-out); }
}
/* The list's tabs, one per state, and at the end of their row the small
   switch between the list and the lanes. */
.posts-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 24px; }
.posts-tabs { flex-wrap: wrap; }
.tab-count {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: var(--radius-sm); background: var(--line-strong);
  color: var(--text-2); font: 500 var(--t-micro)/1 var(--mono);
}
.posts-tabs a[aria-current="page"] .tab-count { background: rgba(28, 92, 255, .18); color: var(--blue-soft); }
.posts-switch { margin-left: auto; }
.posts-new { flex: none; }
.posts-tabs + .posts-new, .posts-bar > .posts-new:first-child { margin-left: auto; }
.posts-switch a { gap: 6px; padding: 0 8px; font-size: var(--t-label); }
.posts-switch a svg { font-size: 14px; }
.posts-day + .posts-day { margin-top: 1.5rem; }
.posts-day .queue-head { margin: 0 0 .75rem; }
.posts-more { margin: 1.5rem 0 0; }
.posts-start { margin: 0 0 1rem; font-size: var(--t-meta); }
.posts-start a { color: var(--blue-hi); }

/* The overview: a tile per account, which narrows the list under it. */
.account-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.account-tile {
  display: flex; flex-direction: column; gap: 12px; padding: 16px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--faint); font-size: var(--t-meta); line-height: 1.5;
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.account-tile:hover { background: var(--raised); }
.account-tile[aria-current] {
  border-color: color-mix(in srgb, var(--hue) 60%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hue) 60%, transparent);
}
.account-tile.idle { border-style: dashed; }
.tile-account { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tile-name { display: flex; flex-direction: column; min-width: 0; }
.tile-name .mono { overflow: hidden; color: var(--ink); font-size: var(--t-ui); text-overflow: ellipsis; white-space: nowrap; }
.tile-count { display: flex; align-items: flex-end; gap: 8px; }
.tile-figure {
  color: var(--ink); font: 500 var(--t-h2)/1 var(--mono); letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.account-tile.idle .tile-figure { color: var(--faint); }
.week-bars { display: grid; grid-template-columns: repeat(7, 14px); gap: 4px; align-items: end; margin-left: auto; }
.day-bar { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--faint); font: 400 var(--t-micro)/1 var(--mono); }
.day-bar i { width: 100%; height: 4px; border-radius: 3px; background: var(--line-strong); }
.day-bar:not(.level-0) i { background: var(--hue); }
.day-bar.level-1 i { height: 8px; }
.day-bar.level-2 i { height: 14px; }
.day-bar.level-3 i { height: 20px; }
.day-bar.level-4 i { height: 28px; }
.day-bar.today { color: var(--ink); }
.tile-line strong { color: var(--ink); font-weight: 500; }
.panel-body .queue-filter { margin: 16px 0 24px; color: var(--faint); font-size: var(--t-meta); }
.queue-filter a { color: var(--blue-hi); }
.queue-filter a:hover { color: var(--ink); }

/* By account and the calendar take the window's width: a lane per account,
   or seven days, do not fit the panel's column. */
.queue-wide { position: relative; width: min(1240px, calc(100vw - 32px)); margin-left: 50%; translate: -50% 0; }
.lanes { display: flex; align-items: flex-start; gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.lane {
  display: flex; flex: 1 0 272px; flex-direction: column; max-width: 360px; max-height: 76vh; overflow: hidden;
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--overlay) 94%, transparent); scroll-snap-align: start;
}
.lane.idle { border-style: dashed; }
.lane-head {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--hue) 7%, transparent);
}
.lane-title { display: flex; flex-direction: column; min-width: 0; color: var(--faint); font-size: var(--t-meta); }
.lane-title .mono { overflow: hidden; color: var(--ink); font-size: var(--t-ui); text-overflow: ellipsis; white-space: nowrap; }
.lane-body { display: flex; flex-direction: column; gap: 8px; padding: 8px; overflow-y: auto; overscroll-behavior: contain; }
.lane-post {
  display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 12px;
  border: 1px solid transparent; border-radius: var(--radius); background: var(--raised);
  color: inherit; font: inherit; text-align: left; cursor: pointer;
  transition: background-color .2s var(--ease-out), border-color .2s var(--ease-out);
}
.lane-post:hover { background: var(--raised-hover); border-color: color-mix(in srgb, var(--hue) 40%, transparent); }
.lane-post.gone { opacity: .62; }
.lane-when { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; color: var(--text-2); font-size: var(--t-meta); font-variant-numeric: tabular-nums; }
.lane-when .badge { margin-left: auto; }
.lane-thumb { width: 100%; height: 120px; object-fit: cover; border-radius: var(--radius-sm); outline: 1px solid var(--image-edge); outline-offset: -1px; }
.lane-text {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden;
  color: var(--ink); font: 400 var(--t-ui)/1.5 var(--sans); overflow-wrap: anywhere;
}
.lane-post .post-facts { margin-top: 0; }
.lane-write { align-self: flex-start; }
.lane-part { margin: 8px 4px 0; color: var(--faint); font: 500 var(--t-meta)/1.4 var(--sans); }
.panel-body :is(.lane-empty, .lane-note) { margin: 0; padding: 8px; color: var(--faint); font-size: var(--t-meta); line-height: 1.5; }
/* Too narrow for lanes side by side: each stacks under the last, and a post
   reads as a row, its time over its text and its image beside them. */
@media (max-width: 1000px) {
  .lanes { flex-direction: column; align-items: stretch; overflow: visible; }
  .lane { flex: none; max-width: none; max-height: none; }
  .lane-body { overflow: visible; }
  .lane-post { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .lane-post > * { grid-column: 1; }
  .lane-post > .lane-thumb { grid-column: 2; grid-row: 1 / span 3; width: 48px; height: 48px; }
  .lane-text { -webkit-line-clamp: 2; line-clamp: 2; }
}

/* The calendar. */
.calendar-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.calendar-nav { display: flex; align-items: center; gap: 4px; }
.calendar-title { margin: 0 0 0 12px; color: var(--ink); font: 500 var(--t-h2)/1.1 var(--serif); letter-spacing: -.02em; }
.calendar-summary { margin: 0 0 12px; color: var(--dim); font-size: var(--t-ui); font-variant-numeric: tabular-nums; }
.calendar-summary strong { color: var(--ink); font-weight: 600; }
.calendar-accounts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.account-toggle {
  display: inline-flex; align-items: center; gap: 8px; height: var(--ctl); padding: 0 10px 0 4px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface);
  color: var(--text-2); font: 400 var(--t-meta)/1 var(--sans); cursor: pointer;
  transition: background-color .2s var(--ease-out), border-color .2s var(--ease-out), opacity .2s var(--ease-out);
}
.account-toggle:hover { background: var(--raised-hover); }
.account-toggle[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--hue) 50%, transparent);
  background: color-mix(in srgb, var(--hue) 12%, transparent); color: var(--ink);
}
.account-toggle[aria-pressed="false"] { opacity: .5; }
/* Too small to carry the platform's mark too: the handle beside it does. */
.account-toggle .account-mark { width: 22px; height: 22px; border-radius: var(--radius-sm); font-size: var(--t-micro); }
.account-toggle .account-platform { display: none; }

.calendar-scroll {
  overflow-x: auto; border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--overlay) 94%, transparent);
}
.calendar-scroll table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.calendar-scroll :is(th, td) {
  padding: 8px; border-top: 1px solid var(--line); border-left: 1px solid var(--line);
  text-align: left; vertical-align: top;
}
.calendar-scroll :is(th, td):first-child { border-left: 0; }
.calendar-scroll thead th { border-top: 0; padding: 12px 8px; color: var(--faint); font: 400 var(--t-meta)/1.4 var(--sans); }
.calendar-scroll thead th > span:first-child { display: block; color: var(--text-2); font-weight: 500; }
.calendar-scroll .today { background: rgba(28, 92, 255, .08); }
.calendar-scroll th.today > span:first-child { color: var(--blue-hi); }
.calendar-scroll td.past:not(.today) { background: rgba(var(--shade-rgb), calc(.16 * var(--shade-k))); }
.calendar-week { min-width: 1100px; }
.calendar-week thead th:first-child { width: 216px; }
.calendar-week td { height: 88px; }
.calendar-week tbody th { position: sticky; left: 0; z-index: 1; padding: 12px; background: var(--overlay); font-weight: 400; }
.calendar-account { display: flex; align-items: center; gap: 12px; min-width: 0; }
.calendar-account-name { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: var(--t-micro); }
.calendar-account .mono { overflow: hidden; color: var(--ink); font-size: var(--t-ui); text-overflow: ellipsis; white-space: nowrap; }
.calendar-post {
  display: flex; align-items: baseline; gap: 8px; width: 100%; min-width: 0; margin: 0 0 4px; padding: 4px 8px;
  border: 1px solid color-mix(in srgb, var(--hue) 28%, transparent); border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--hue) 12%, transparent); color: var(--text-2);
  font: 400 var(--t-meta)/1.35 var(--sans); text-align: left; cursor: pointer;
  transition: background-color .2s var(--ease-out);
}
.calendar-post:hover { background: color-mix(in srgb, var(--hue) 24%, transparent); }
.calendar-post time { flex: none; color: var(--hue); font-family: var(--mono); }
.calendar-others { flex: none; color: var(--faint); font-family: var(--mono); }
.calendar-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-post.out { opacity: .55; }
.calendar-post > svg { flex: none; align-self: center; font-size: 12px; }
.calendar-post:is(.failed, .partial) { border-color: color-mix(in srgb, var(--danger) 40%, transparent); background: var(--danger-tint); }
.calendar-post:is(.failed, .partial) time { color: var(--danger); }
.calendar-month { min-width: 340px; }
.calendar-month td { height: 120px; }
.calendar-month td.outside > * { opacity: .4; }
.calendar-day {
  display: inline-grid; place-items: center; min-width: 24px; height: 24px; margin: 0 0 4px; padding: 0 4px;
  border-radius: 12px; color: var(--text-2); font: 400 var(--t-meta)/1 var(--mono);
}
.calendar-month td.today .calendar-day { background: var(--blue); color: #fff; }
.calendar-month .calendar-post { padding: 2px 6px; border: 0; font-size: var(--t-micro); }
.calendar-month .calendar-post.spill { display: none; }
.calendar-more { display: inline-block; padding: 2px 6px; color: var(--blue-hi); font-size: var(--t-micro); }
.calendar-more:hover { color: var(--ink); }
.calendar-key { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin: 12px 4px 32px; color: var(--faint); font-size: var(--t-meta); }
.calendar-key .key { display: inline-block; width: 10px; height: 10px; margin-right: 8px; border: 1px solid var(--text-2); border-radius: 3px; vertical-align: -1px; }
.calendar-key .key.out { border: 0; background: var(--text-2); opacity: .45; }
.calendar-key .key.failed { border: 0; background: var(--danger); }
.calendar-drafts { margin: -16px 4px 32px; font-size: var(--t-ui); }
.calendar-drafts a { display: inline-flex; align-items: center; gap: 6px; color: var(--blue-soft); }
.calendar-drafts a:hover { color: var(--ink); }
/* A phone's month is a grid of dots, each in its account's colour. */
@media (max-width: 720px) {
  .calendar-month td { height: 64px; padding: 4px; }
  .calendar-month .calendar-post {
    display: inline-flex; width: 14px; height: 14px; margin: 0 2px 2px 0; padding: 0;
    border-radius: 50%; background: var(--hue);
  }
  .calendar-month .calendar-post :is(time, .calendar-text, .calendar-others) { display: none; }
  .calendar-month .calendar-post.out { opacity: .45; }
  .calendar-month .calendar-post:is(.failed, .partial) { background: var(--danger); }
  .calendar-title { flex-basis: 100%; margin: 8px 0 0; }
  .calendar-nav { flex-wrap: wrap; }
  .calendar-week thead th:first-child { width: 160px; }
  .calendar-week tbody th .account-mark { display: none; }
}

/* ---- a queue row opened ---- */

/* margin: auto puts back the browser's centring of a modal dialog, which the
   reset's margin: 0 takes away and leaves it in the top left corner. */
.post-preview {
  width: min(560px, calc(100vw - 32px)); max-height: min(85vh, 760px);
  margin: auto; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: var(--overlay); color: var(--text-2); box-shadow: 0 24px 60px rgba(var(--shade-rgb), calc(.6 * var(--shade-k)));
}
.post-preview[open] { display: flex; flex-direction: column; animation: preview-in .25s var(--ease-out); }
.post-preview::backdrop { background: rgba(var(--ground-rgb), .72); }
.post-preview[open]::backdrop { animation: preview-fade .25s var(--ease-out); }
@keyframes preview-in { from { opacity: 0; translate: 0 8px; scale: .985; } }
@keyframes preview-fade { from { opacity: 0; } }
/* Opened without the modal, from 1280px, the same preview is a pane down the
   right of the window, beside the list, with no backdrop. Drawn so at any
   width, for one an editor holding unsaved text kept open as the window
   narrowed. */
.post-preview:not(:modal) {
  position: fixed; inset: 0 0 0 auto; z-index: 20;
  width: min(400px, 100vw); height: 100%; max-height: none; margin: 0;
  border: 0; border-left: 1px solid var(--line-strong); border-radius: 0;
  box-shadow: -16px 0 40px rgba(var(--shade-rgb), calc(.35 * var(--shade-k)));
}
.post-preview[open]:not(:modal) { animation: pane-in .25s var(--ease-out); }
@keyframes pane-in { from { opacity: 0; translate: 12px 0; } }
/* The row a preview shows. */
.post-row:has(> .post-open[aria-current="true"]),
.lane-post[aria-current="true"] { background: color-mix(in srgb, var(--blue) 14%, transparent); }
.calendar-post[aria-current="true"] { outline: 2px solid var(--blue-soft); outline-offset: 1px; }
.preview-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 20px; border-bottom: 1px solid var(--line);
}
.preview-head h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; font: 500 var(--t-ui)/1.4 var(--sans); }
.preview-head .when { color: var(--ink); }
.preview-head .rel { color: var(--faint); font-weight: 400; }
/* The page under an open preview stays put: a wheel over a preview with
   nothing left to scroll would otherwise move the page behind the backdrop.
   The panel always keeps a scrollbar's room, so locking it shifts nothing,
   whether or not the page had a scrollbar to lose. */
html:has(body.panel-page) { scrollbar-gutter: stable; }
html:has(.post-preview:modal) { overflow: hidden; }
.preview-scroll { display: flex; flex: 1 1 auto; flex-direction: column; gap: 18px; min-height: 0; padding: 20px; overflow: auto; overscroll-behavior: contain; }
/* Ends at the right, so a row the controls wrap onto lines up under the ones
   above it; Close's own margin still holds it to the left. */
.preview-actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px;
  padding: 12px 16px; border-top: 1px solid var(--line);
}
.preview-actions [data-close-dialog] { margin-right: auto; }
.preview-to { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }
.preview-label { color: var(--faint); font-size: var(--t-meta); }
.preview-to .account {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px 2px 6px;
  border-radius: var(--radius-sm); background: var(--raised); font-size: var(--t-meta);
}
.preview-chain { display: flex; flex-direction: column; gap: 22px; }
.preview-post { position: relative; display: flex; flex-direction: column; gap: 10px; }
/* A thread's posts hang off one rail: a dot on each post's first line, the
   root's filled, and a line from each dot down to the next. */
.thread .preview-post { padding-left: 26px; }
.thread .preview-post::before {
  content: ""; position: absolute; left: 3px; top: 9px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--blue-hi); box-shadow: 0 0 0 4px var(--hairline);
}
.thread .reply::before { top: 5px; border: 1.5px solid var(--blue-hi); background: var(--overlay); box-shadow: none; }
.thread .preview-post:not(:last-child)::after {
  content: ""; position: absolute; left: 7px; top: 22px; bottom: -23px; width: 1px; background: var(--line-strong);
}
.thread .reply:not(:last-child)::after { top: 18px; }
.preview-body { margin: 0; color: var(--ink); font-size: var(--t-body); line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.preview-body .accent { color: var(--blue-hi); }
.preview-after { margin: 0; color: var(--faint); font-size: var(--t-meta); overflow-wrap: anywhere; }
.preview-media { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.preview-media :is(img, video) {
  display: block; width: 100%; max-height: 360px; object-fit: contain;
  border-radius: var(--radius); background: var(--raised);
  outline: 1px solid var(--image-edge); outline-offset: -1px;
}
.preview-media video { background: #000; }
.preview-tile {
  display: flex; align-items: center; justify-content: center; min-height: 96px; padding: 12px;
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
  color: var(--faint); font-size: var(--t-meta); text-align: center;
}
.preview-error {
  display: flex; gap: 8px; margin: 0; padding: 10px 12px; border-radius: var(--radius);
  background: var(--danger-wash); color: var(--danger); font-size: var(--t-meta);
}
.preview-error svg { flex: none; margin-top: 2px; }

/* A post that went out, folded to one row over its numbers: its first image
   or its video's first frame, its text cut at two lines, what it was, and the
   button that unfolds it. A post opened from Stats has its text alone, which
   the button opens in place. */
.preview-strip {
  display: flex; flex: none; align-items: center; gap: 12px; padding: 10px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--raised);
}
.preview-strip-thumb {
  position: relative; flex: none; width: 96px; aspect-ratio: 16 / 9; overflow: hidden;
  border: 1px solid var(--image-edge); border-radius: var(--radius); background: #000;
}
.preview-strip-thumb :is(img, video) { display: block; width: 100%; height: 100%; object-fit: cover; }
.preview-strip-play { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.preview-strip-play svg { box-sizing: content-box; padding: 7px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; }
.preview-strip-dur {
  position: absolute; right: 4px; bottom: 4px; padding: 0 4px; border-radius: 3px;
  background: rgba(0, 0, 0, .7); color: #fff; font: 500 10px/1.6 var(--mono); font-variant-numeric: tabular-nums;
}
.preview-strip-text { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.preview-strip-text p { margin: 0; }
.preview-strip-body {
  display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
  color: var(--ink); font-size: var(--t-ui); line-height: 1.4; overflow-wrap: anywhere;
}
.preview-strip-body.faint { color: var(--faint); }
.preview-strip-body .accent { color: var(--blue-hi); }
/* A text read from its platform is drawn here alone, so it keeps the line
   breaks it was written with, cut or opened. */
.preview-strip-body[data-strip-text] { white-space: pre-wrap; }
.preview-strip-body[data-open] { display: block; -webkit-line-clamp: none; line-clamp: none; }
.preview-strip-meta { color: var(--faint); font-size: var(--t-label); }
.preview-strip-toggle { flex: none; }
/* Beside a text opened in place the button stays at its top, not half way
   down it. A narrow window gives the text the row, and the button the next. */
.preview-strip:has([data-strip-text][data-open]) { align-items: flex-start; }
@media (max-width: 600px) {
  .preview-strip { flex-wrap: wrap; }
  .preview-strip-toggle { flex: 1 1 100%; justify-content: center; }
}
.preview-strip-toggle svg { color: var(--faint); }
.preview-strip-toggle[aria-expanded="true"] svg { rotate: 180deg; }
/* The post whole, under the switch, opened by its grid row from none of its
   height to all of it. Closed, it takes back the gap before it, so the
   numbers sit under the switch as if it were not there. It keeps its width
   either way, which is what post-look.js lays the cards out to. */
.preview-fold { display: grid; flex: none; grid-template-rows: 0fr; margin-top: -18px; visibility: hidden; }
.preview-fold[data-open] { grid-template-rows: 1fr; visibility: visible; }
/* The row cuts its height alone, so a focus ring at its side stays whole,
   and it may be narrower than a card's own width, which the card is then
   scaled to. */
.preview-fold-clip { min-width: 0; min-height: 0; overflow-y: clip; }
.preview-fold-body { display: flex; flex-direction: column; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
/* This popup is as wide as the numbers need, not as its cards are: a card
   sits in the middle of it at its platform's width, and what is said under
   the card keeps to that width rather than setting it. */
.preview-fold .preview-looks { align-items: center; }
.preview-fold .look { max-width: 100%; }
.preview-fold .look-facts { contain: inline-size; }
.preview-fold .look-facts p { overflow-wrap: anywhere; }
@media (prefers-reduced-motion: no-preference) {
  .preview-fold { transition: grid-template-rows .28s var(--ease-out), visibility .28s; }
  .preview-fold-body { transition: opacity .28s var(--ease-out), translate .28s var(--ease-out); }
  .preview-fold:not([data-open]) .preview-fold-body { opacity: 0; translate: 0 6px; }
  .preview-strip-toggle svg { transition: rotate .28s var(--ease-out); }
  /* An account picked on the switch brings its card in. */
  .preview-fold .look.picked { animation: preview-fade .2s var(--ease-out); }
}

/* A post's numbers, under the strip: when it went out, its paid mark, the
   numbers, and how they grew, drawn and as a table. A preview that has them
   takes the width the table needs, and keeps its top where a full one's is:
   its height changes with the account picked and the post unfolded, and
   centred again each time, the switch would move from under the pointer. */
.post-preview:modal:has(.post-numbers) { width: min(720px, calc(100vw - 32px)); margin-top: max(0px, calc((100dvh - min(85vh, 760px)) / 2)); }
.post-numbers { display: flex; flex-direction: column; gap: 14px; }
.numbers-picks { flex-wrap: wrap; align-self: flex-start; }
.numbers-picks .mono { font-size: var(--t-meta); }
/* The pressed chip already says whose numbers show. */
.post-preview:has(.numbers-picks) .numbers-who { display: none; }
.numbers { display: flex; flex-direction: column; gap: 14px; }
.numbers[hidden] { display: none; }
.numbers-who { display: flex; align-items: center; gap: 10px; }
.numbers-who .item-main { display: flex; flex-direction: column; min-width: 0; }
.numbers-who .item-title { color: var(--ink); font-size: var(--t-meta); }
.numbers-who .item-sub { color: var(--faint); font-size: var(--t-label); }
.numbers-went { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0; font-size: var(--t-meta); }
.numbers-went time { color: var(--ink); font-weight: 500; }
.numbers-went-label { color: var(--ok); font-weight: 500; }
.numbers-sep { color: var(--faint); }
.numbers-went a { display: inline-flex; align-items: center; gap: 5px; color: var(--blue-soft); font-weight: 500; text-underline-offset: .18em; }
.numbers-went a:hover { text-decoration: underline; }
.numbers-went a svg { width: 13px; height: 13px; }
.numbers-paid { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; color: var(--text-2); font-size: var(--t-meta); }
.paid-tag {
  display: inline-flex; align-items: center; height: 18px; padding: 0 6px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); color: var(--text-2); font-size: var(--t-micro); font-weight: 500;
}
.numbers-read { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-block: 1px solid var(--line); }
.numbers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 10px 8px; margin: 0; }
.numbers-grid > div { display: flex; flex-direction: column; gap: 2px; }
.numbers-grid dt { color: var(--faint); font-size: var(--t-label); font-weight: 600; }
.numbers-grid dd { margin: 0; color: var(--ink); font-size: 20px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.numbers-grid dd.faint { color: var(--faint); }
.numbers-note { margin: 0; color: var(--faint); font-size: var(--t-label); line-height: 1.45; }
.numbers-note.numbers-waiting { color: var(--text-2); font-size: var(--t-meta); }
.numbers-waiting a { color: var(--blue-soft); font-weight: 500; text-decoration: underline; text-underline-offset: .18em; }
.numbers-usual { margin: 0; color: var(--text-1); font-size: var(--t-meta); line-height: 1.5; }
.numbers-grew { display: flex; flex-direction: column; gap: 8px; }
.numbers-grew h4 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 0; color: var(--ink); font: 600 var(--t-ui)/1.4 var(--sans); }
.numbers-grew h4 span { color: var(--faint); font-size: var(--t-label); font-weight: 400; }
.grow { display: block; width: 100%; height: auto; font: 400 12px/1 var(--sans); font-variant-numeric: tabular-nums; }
.grow-grid { fill: none; stroke: var(--line); stroke-width: 1; }
.grow-come { fill: none; stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 3 4; }
.grow-line { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.grow-dot { fill: var(--blue); }
.grow-tick, .grow-age.come, .grow-later { fill: var(--dim); }
.grow-age { fill: var(--text-2); }
.grow-later { font-size: 11px; }
.readings-wrap { overflow-x: auto; overflow-y: hidden; border: 1px solid var(--line); border-radius: var(--radius); }
.readings { width: 100%; min-width: 520px; border-collapse: collapse; font-size: var(--t-meta); font-variant-numeric: tabular-nums; }
.readings th, .readings td { height: 30px; padding: 0 8px; text-align: left; white-space: nowrap; }
.readings :is(th, td):first-child { padding-left: 12px; }
.readings :is(th, td):last-child { padding-right: 12px; }
.readings thead th { height: 28px; color: var(--faint); font-size: var(--t-label); font-weight: 600; }
.readings tbody tr { border-top: 1px solid var(--line); }
.readings tbody th { color: var(--ink); font-weight: 500; }
.readings td { color: var(--text-1); }
.readings td.mono { color: var(--text-2); font-size: var(--t-meta); }
.readings .num { text-align: right; }
.readings .faint { color: var(--faint); }
.readings tr.later :is(th, td) { color: var(--dim); }
/* A delivery's numbers opening (stats-motion.js): the line draws from the
   first reading to the last, each dot as the line reaches it (--at), the
   readings follow, and the line beside the usual comes once the figures
   have counted. A paid mark drawn again brings in only what it changed. */
@media (prefers-reduced-motion: no-preference) {
  .numbers[data-enter] .grow-line { animation: grow-draw .45s var(--ease-out) .12s both; }
  .numbers[data-enter] .grow-dot {
    transform-box: fill-box; transform-origin: center;
    animation: copy-tick .24s var(--ease-out) calc(.1s + var(--at, 0) * .45s) both;
  }
  .numbers[data-enter] .grow-come { animation: preview-fade .3s var(--ease-out) .5s both; }
  .numbers[data-enter] .readings tbody tr { animation: sq-line .26s var(--ease-out) calc(.18s + var(--d, 0ms)) both; }
  .numbers[data-enter] .numbers-usual { animation: preview-fade .3s var(--ease-out) .42s both; }
  .numbers-paid[data-changed] > * { animation: said-in .22s var(--ease-out) both; }
  .numbers-paid[data-changed] > .paid-tag { animation: copy-tick .22s var(--ease-out) both; }
  .numbers-usual[data-changed] { animation: preview-fade .3s var(--ease-out) both; }
}
/* Measured on the line's own box, so its end is reached as the clip opens. */
@keyframes grow-draw {
  from { clip-path: inset(0 100% 0 0) stroke-box; }
  to { clip-path: inset(0) stroke-box; }
}

/* A preview's two modes: reading, and picking a time. Each footer control
   says which modes it belongs to. */
.post-preview [data-show] { display: none; }
.post-preview:not([data-mode]) [data-show~="view"],
.post-preview[data-mode="view"] [data-show~="view"],
.post-preview[data-mode="when"] [data-show~="when"] { display: inline-flex; }
.preview-actions .push { margin-right: auto; }
.preview-actions .icon-only { width: var(--ctl-sm); padding: 0; }

/* ---- a post as its platform will show it ---- */

/* Which reads the post: the card, where there is one. With a switch above
   the card, the plain text's own line of accounts would say them twice. */
.preview-plain { display: flex; flex-direction: column; gap: 18px; }
.post-preview[data-look="card"] .preview-plain,
.post-preview[data-looks="many"] .preview-plain .preview-to,
.shared-post[data-look="card"] .preview-plain,
.shared-post[data-looks="many"] .preview-plain .preview-to { display: none; }
.preview-looks { display: flex; flex-direction: column; gap: 14px; }
/* A scrollbar that came and went with the card's height would change the
   room the card is scaled to, and so its height again. */
.post-preview:is([data-look], :has(.preview-fold)) .preview-scroll { scrollbar-gutter: stable; }
/* As wide as its widest card at the card's own size, whichever account
   shows, while the window has the room. post-look.js sets it. */
.post-preview[data-look]:modal { width: min(var(--look-room, 560px), calc(100vw - 32px)); }
.post-preview[data-look]:modal:has(.post-numbers) { width: min(max(var(--look-room, 560px), 720px), calc(100vw - 32px)); }
.look-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.look-switch-label { color: var(--faint); font-size: var(--t-meta); }
.look-picks { flex-wrap: wrap; }
.look-picks .mono { font-size: var(--t-meta); }
.look { display: none; flex-direction: column; gap: 10px; min-width: 0; }
.look.picked { display: flex; }
/* The card keeps its platform's width whatever the room, and is drawn
   smaller to fit it: laid out narrower, its lines would break elsewhere.
   post-look.js sets the scale, and the height the scaled card takes. */
.look-fit { width: 100%; height: var(--look-height, auto); overflow: hidden; }
.look-card { transform: scale(var(--look-scale, 1)); transform-origin: 0 0; }
.look-facts { display: flex; flex-direction: column; gap: 6px; }
.look-facts p { margin: 0; font-size: var(--t-meta); }
.look-counts { display: flex; flex-direction: column; gap: 2px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.look-note { color: var(--faint); }
.look-fold { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.look-fold[hidden] { display: none; }
.look-fold p { flex: 1 1 180px; color: var(--text-2); }
.look-facts .look-scaled { color: var(--faint); }

/* The cards are drawn in their platform's own type and colours: they are
   there to look like the feed, not like Postmoderno. Each takes its
   platform's dark look in our dark theme and its light look in our light
   one, as a reader whose device is set either way sees it. */
.look-card { box-sizing: border-box; text-align: left; }
.look-photo { display: grid; flex: none; place-items: center; border-radius: 50%; background: #3b4a6b; color: #fff; font-weight: 600; object-fit: cover; }
.look-media { display: grid; gap: 2px; }
.look-media.many { grid-template-columns: 1fr 1fr; }
.look-media :is(img, video) { display: block; width: 100%; height: auto; }
.look-media.many :is(img, video) { height: 100%; aspect-ratio: 1; object-fit: cover; }
.look-media video { background: #000; }
.look-card .preview-tile { min-height: 120px; border: 0; border-radius: 0; font-size: 13px; }
.look-quote { overflow-wrap: anywhere; }

/* TikTok: one post fills the screen, and its feed is dark whatever the
   device is set to. */
.look-tt {
  width: 300px; background: #000; color: #fff;
  font: 400 14px/19px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.tt-frame { position: relative; aspect-ratio: 9 / 16; overflow: hidden; }
.tt-frame > :is(img, video) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.tt-frame > .preview-tile { position: absolute; inset: 0; background: #121212; color: rgba(255, 255, 255, .7); }
.tt-frame::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); pointer-events: none; }
.tt-none { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 0 64px 0 24px; color: rgba(255, 255, 255, .7); text-align: center; }
.tt-rail { position: absolute; z-index: 1; right: 8px; bottom: 72px; display: flex; flex-direction: column; align-items: center; gap: 14px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); pointer-events: none; }
.tt-rail .look-photo { width: 40px; height: 40px; margin-bottom: 4px; border: 1px solid #fff; font-size: 14px; }
.tt-rail svg { width: 26px; height: 26px; }
.tt-words { position: absolute; z-index: 1; left: 12px; right: 64px; bottom: 16px; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.tt-handle { font-size: 15px; font-weight: 600; }
.tt-text { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: break-word; }
.look-tt .accent { font-weight: 600; }
.tt-more { padding: 0; border: 0; background: none; color: #fff; font: inherit; font-weight: 600; text-shadow: inherit; cursor: pointer; }
.tt-dots { position: absolute; z-index: 1; left: 0; right: 0; bottom: 6px; display: flex; justify-content: center; gap: 4px; }
.tt-dots span { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .4); }
.tt-dots .on { background: #fff; }

/* X: Lights out, and Default. */
.look-x {
  --x-bg: #000; --x-ink: #e7e9ea; --x-grey: #71767b; --x-line: #2f3336; --x-rail: #333639; --x-tile: #16181c;
  width: 600px; padding: 12px 16px 0; border: 1px solid var(--x-line); background: var(--x-bg); color: var(--x-ink);
  font: 400 15px/20px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
:root[data-theme="light"] .look-x { --x-bg: #fff; --x-ink: #0f1419; --x-grey: #536471; --x-line: #eff3f4; --x-rail: #cfd9de; --x-tile: #f7f9f9; }
.look-x :is(.accent, a), .x-more { color: #1d9bf0; }
.x-post { display: flex; gap: 8px; }
.x-side { display: flex; flex: none; flex-direction: column; align-items: center; width: 40px; }
.x-side .look-photo { width: 40px; height: 40px; font-size: 14px; }
.x-rail { flex: 1; width: 2px; margin: 4px 0; background: var(--x-rail); }
.x-main { display: flex; flex: 1; flex-direction: column; min-width: 0; padding-bottom: 12px; }
.x-name { display: flex; align-items: center; height: 20px; color: var(--x-grey); white-space: nowrap; }
.x-display { flex: none; max-width: 70%; overflow: hidden; color: var(--x-ink); font-weight: 700; text-overflow: ellipsis; }
.x-handle { min-width: 0; margin-left: 4px; overflow: hidden; text-overflow: ellipsis; }
.x-dot { flex: none; padding: 0 4px; }
.x-date { flex: none; }
.x-menu { flex: none; margin-left: auto; }
.x-text { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: break-word; }
.x-more { display: block; padding: 0; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.look-x .look-media { margin-top: 12px; overflow: hidden; border: 1px solid var(--x-line); border-radius: 16px; }
.look-x .preview-tile { background: var(--x-tile); color: var(--x-grey); }
.look-x .look-quote { margin: 12px 0 0; color: var(--x-grey); }
/* X's label on a paid partnership, at the sizes x.com drew it in December
   2026. */
.x-paid { display: flex; align-items: center; gap: 4px; margin: 8px 0 0 1px; color: var(--x-grey); font-size: 13px; line-height: 16px; }
.x-paid svg { flex: none; }
.x-actions { display: flex; align-items: center; margin-top: 12px; color: var(--x-grey); }
.x-actions > span { display: flex; flex: 1; }
.x-actions svg { flex: none; }
.x-actions > svg:last-child { margin-left: 12px; }

/* LinkedIn: dark mode, and its light one. */
.look-li {
  --li-bg: #1d2226; --li-ink: rgba(255, 255, 255, .9); --li-grey: rgba(255, 255, 255, .6); --li-line: rgba(255, 255, 255, .12);
  --li-bar: rgba(255, 255, 255, .12); --li-tile: #293138; --li-icon: rgba(255, 255, 255, .75); --li-link: #70b5f9;
  width: 552px; overflow: hidden; border: 1px solid var(--li-line); border-radius: 8px; background: var(--li-bg); color: var(--li-ink);
  font: 400 14px/20px -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
:root[data-theme="light"] .look-li {
  --li-bg: #fff; --li-ink: #191919; --li-grey: #666; --li-line: #e8e8e8;
  --li-bar: #e6e6e3; --li-tile: #f3f2ef; --li-icon: #404040; --li-link: #0a66c2;
}
.look-li :is(.accent, a) { color: var(--li-link); }
.li-head { display: flex; align-items: flex-start; gap: 8px; padding: 12px 8px 0 12px; color: var(--li-grey); }
.li-head > svg { flex: none; }
.li-head > svg:last-child { margin-left: 4px; }
.li-head .look-photo { width: 48px; height: 48px; font-size: 16px; }
.li-who { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.li-name { height: 20px; overflow: hidden; color: var(--li-ink); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.li-headline { display: flex; align-items: center; height: 16px; }
.li-headline span { width: 300px; max-width: 100%; height: 8px; border-radius: 4px; background: var(--li-bar); }
.li-time { display: flex; align-items: center; gap: 4px; height: 16px; font-size: 12px; line-height: 16px; }
.li-text { margin: 8px 12px; white-space: pre-wrap; overflow-wrap: break-word; }
.li-more { padding: 0; border: 0; background: none; color: var(--li-grey); font: inherit; cursor: pointer; }
.look-li .preview-tile { background: var(--li-tile); color: var(--li-grey); }
.look-li .look-quote { margin: 0 12px 8px; color: var(--li-grey); }
.li-actions { display: flex; align-items: center; height: 44px; padding: 0 16px; color: var(--li-icon); }
.li-actions .look-photo { width: 24px; height: 24px; font-size: 9px; }
.li-actions > svg { flex: none; margin-left: 4px; }
.li-acts { display: flex; gap: 16px; margin-left: 10px; }

/* Bluesky: Dim, and Light, in Inter as the app sets it. Its column is 600px
   inside its borders. */
.look-bs {
  --bs-bg: #151d28; --bs-ink: #fff; --bs-grey: #abb8c9; --bs-icon: #6f839f; --bs-link: #4d97ff; --bs-line: #2c3a4e; --bs-tile: #1e2936;
  width: 602px; padding-top: 9px; border: 1px solid var(--bs-line); background: var(--bs-bg); color: var(--bs-ink);
  font: 400 15px/20px InterVariable, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-variant-ligatures: no-contextual; -webkit-font-smoothing: antialiased;
}
:root[data-theme="light"] .look-bs { --bs-bg: #fff; --bs-ink: #000; --bs-grey: #405168; --bs-icon: #667b99; --bs-link: #006aff; --bs-line: #dce2ea; --bs-tile: #f1f3f5; }
.look-bs :is(.accent, a) { color: var(--bs-link); }
.bs-post { display: flex; padding: 0 15px 0 10px; }
.bs-side { display: flex; flex: none; flex-direction: column; align-items: center; width: 60px; padding: 0 10px 0 8px; }
.bs-side .look-photo { width: 42px; height: 42px; font-size: 15px; }
.bs-rail { flex: 1; width: 2px; margin-top: 4px; background: var(--bs-line); }
.bs-main { flex: 1; min-width: 0; padding-bottom: 8px; }
.bs-meta { display: flex; height: 17px; margin-bottom: 4px; color: var(--bs-grey); line-height: 17px; white-space: nowrap; }
.bs-display { flex: none; max-width: 70%; overflow: hidden; color: var(--bs-ink); font-weight: 600; text-overflow: ellipsis; }
.bs-handle { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.bs-time { flex: none; padding-left: 4px; }
.bs-text { margin: 0 0 2px; white-space: pre-wrap; overflow-wrap: break-word; }
.look-bs .look-media { margin-top: 8px; gap: 4px; overflow: hidden; border-radius: 12px; }
.look-bs .look-media:not(.many) { justify-items: start; }
.look-bs .look-media:not(.many) :is(img, video) { width: auto; max-width: 100%; max-height: 515px; border-radius: 12px; }
.look-bs .preview-tile { background: var(--bs-tile); color: var(--bs-grey); }
.look-bs .look-quote { margin: 8px 0 0; color: var(--bs-grey); }
.bs-actions { display: flex; align-items: center; height: 28px; margin-top: 4px; color: var(--bs-icon); }
.bs-acts { display: flex; flex: 1; max-width: 320px; margin-left: -6px; }
.bs-acts > span { display: flex; flex: 1; padding: 5px; }
.bs-end { display: flex; gap: 8px; margin-left: auto; }
.bs-end svg { box-sizing: content-box; padding: 5px; }

/* Mastodon: its dark scheme, and its light one, in Inter. */
.look-ma {
  --ma-bg: #15151e; --ma-ink: #eeedf3; --ma-grey: #c3c2c8; --ma-link: #d1c7ff; --ma-line: #3b394b; --ma-tile: #222230;
  width: 600px; border: 1px solid var(--ma-line); background: var(--ma-bg); color: var(--ma-ink);
  font: 400 15px/1.46 Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
:root[data-theme="light"] .look-ma { --ma-bg: #fff; --ma-ink: #21212c; --ma-grey: #4d4d56; --ma-link: #47309c; --ma-line: #e3dff7; --ma-tile: #f3f1fb; }
.look-ma :is(.accent, a) { color: var(--ma-link); }
.ma-post { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px 8px; }
.ma-post + .ma-post { border-top: 1px solid var(--ma-line); }
.ma-head { display: flex; gap: 8px; }
.ma-head .look-photo { width: 40px; height: 40px; font-size: 14px; }
.ma-who { display: flex; flex-direction: column; min-width: 0; }
.ma-name { display: flex; gap: 4px; color: var(--ma-grey); white-space: nowrap; }
.ma-display { min-width: 0; overflow: hidden; color: var(--ma-ink); font-weight: 600; text-overflow: ellipsis; }
.ma-dot, .ma-time { flex: none; }
.ma-handle { overflow: hidden; color: var(--ma-grey); font-size: 13px; line-height: 1.3; letter-spacing: .01em; text-overflow: ellipsis; white-space: nowrap; }
.ma-text, .ma-indent { margin-left: 48px; }
.ma-text p { margin: 0; white-space: pre-wrap; overflow-wrap: break-word; }
.ma-text p:not(:last-child) { margin-block-end: .6lh; }
.look-ma .look-media { overflow: hidden; border-radius: 16px; }
.look-ma .look-media :is(img, video) { max-height: 566px; object-fit: cover; }
.look-ma .preview-tile { background: var(--ma-tile); color: var(--ma-grey); }
.look-ma .look-quote { margin: 0; color: var(--ma-grey); }
/* Buttons of 32px side by side, the first with its icon under the text. */
.ma-actions { display: flex; align-items: center; margin-left: 42px; color: var(--ma-grey); opacity: .7; }
.ma-actions svg { box-sizing: content-box; padding: 6px; }
.ma-end { display: flex; margin-left: auto; }

/* Picking a time: under the header, so the post stays in view below it. */
.preview-when {
  display: flex; flex-direction: column; gap: 14px; padding: 16px 20px;
  border-bottom: 1px solid var(--line); background: rgba(var(--sky-rgb), .05);
}
.preview-when[hidden] { display: none; }
.preview-when-title { margin: 0; color: var(--ink); font: 600 var(--t-ui)/1.3 var(--sans); }
.when-fields { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 10px; }
.when-fields label { display: flex; flex-direction: column; gap: 6px; }
.when-fields input { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.when-zone { padding-bottom: 9px; color: var(--faint); font-size: var(--t-meta); }
.when-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.when-pick {
  height: var(--ctl-sm); padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--raised); color: var(--text-2); font: 500 var(--t-label)/1 var(--sans);
  transition: background-color .15s, border-color .15s, color .15s;
}
.when-pick:hover { background: var(--raised-hover); color: var(--ink); }
.when-pick[aria-pressed="true"] { border-color: var(--blue); background: rgba(28, 92, 255, .1); color: var(--ink); box-shadow: inset 0 0 0 1px var(--blue); }
[data-when-facts][aria-busy="true"] { opacity: .55; transition: opacity .3s var(--ease-out); }
.when-list {
  display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 12px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--raised); font-size: var(--t-meta);
}
.when-list > div { display: flex; gap: 10px; }
.when-list dt { flex: 0 0 88px; color: var(--faint); }
.when-list dd { min-width: 0; margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.when-list .bad dd { color: var(--danger); }
.when-list .note dd { color: var(--text-2); }

/* What the dialog itself has to say: a refusal, or that a save landed. The
   page's status line sits behind the backdrop while the dialog is open. */
.preview-alert {
  display: flex; gap: 8px; margin: 0 16px; padding: 10px 12px; border-radius: var(--radius);
  background: var(--danger-wash); color: var(--danger); font-size: var(--t-meta);
}
.preview-alert[hidden] { display: none; }

/* The public link: under the header like the time strip, and out of the way
   while the text or the time is being changed. */
.preview-share {
  display: flex; flex-direction: column; gap: 10px; padding: 14px 20px;
  border-bottom: 1px solid var(--line); background: rgba(var(--sky-rgb), .05);
}
.preview-share[hidden],
.post-preview[data-mode="when"] .preview-share { display: none; }
.preview-share-note { margin: 0; color: var(--text-2); font-size: var(--t-meta); }
.preview-share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.preview-share .copy-field { flex: 1 1 260px; }
.preview-share .copy-field code {
  flex: 1 1 auto; min-width: 0; padding: 6px 10px;
  border: 0; border-radius: 0; background: none; color: var(--ink);
  font-size: var(--t-meta); line-height: 1.6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* The button is its icon alone, so a live link is said by its tint. */
[data-share-toggle][data-shared] { background: rgba(var(--sky-rgb), .12); border-color: rgba(var(--sky-rgb), .35); color: rgb(var(--sky-rgb)); }
[data-share-toggle][aria-expanded="true"] { border-color: rgba(var(--sky-rgb), .6); }

/* ---- a post opened by its shared link ---- */

/* The panel's preview as a page of its own: one card under the wordmark, for
   a reader who has never seen the panel. */
.shared-shell { width: min(560px, 100%); margin: auto; }
/* As wide as its widest card at the card's own size, while the window has
   the room: post-look.js sets it, and before it does the room is the widest
   platform's, so a card is not drawn cut off. */
.shared-shell:has(> .shared-post[data-look]) { width: min(var(--look-room, 644px), 100%); }
.shared-shell .auth-brand { margin-bottom: clamp(1.4rem, 4vh, 2.4rem); }
.shared-post {
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: var(--overlay); color: var(--text-2);
}
.shared-post .preview-head { padding: 12px 20px; }
.shared-post .preview-head h1 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; font: 500 var(--t-ui)/1.4 var(--sans); }
.shared-post .preview-scroll { overflow: visible; }
.shared-gone { padding: 28px 24px; }
.shared-gone h1 { margin: 0 0 8px; color: var(--ink); font: 500 var(--t-body)/1.4 var(--sans); }
.shared-gone p { margin: 0; font-size: var(--t-ui); line-height: 1.55; }
.shared-note { margin: 16px 4px 0; color: var(--faint); font-size: var(--t-meta); line-height: 1.55; }
.shared-note a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }
.shared-note a:hover { color: var(--ink); }

/* ---- billing ---- */

/* The plan beside what the wallet has left: the two things a visit here is
   usually for, read before anything below them. */
.bento { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 12px; }
.bento > :only-child { grid-column: 1 / -1; }
.plan-tile, .wallet-tile { display: flex; flex-direction: column; gap: 6px; padding: 24px; }
.tile-kicker { color: var(--faint); font: 500 var(--t-meta) var(--sans); }
.plan-tile-name { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.current-plan { color: var(--ink); font: 500 var(--t-h2)/1.2 var(--serif); }
.plan-tile .portal-links { margin-top: auto; padding-top: 16px; }
.wallet-tile { border-color: rgba(var(--sky-rgb), .35); background: rgba(28, 92, 255, .08); }
.wallet-figure, .stat-figure b, .pack-figure {
  color: var(--ink); font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums;
}
.wallet-figure { margin-top: 8px; font-size: var(--t-display); line-height: 1; letter-spacing: -.04em; }
.wallet-unit, .pack-unit { color: var(--text-2); font-size: var(--t-ui); }
.panel-body .wallet-lines { margin-top: 8px; color: var(--faint); font-size: var(--t-meta); }

/* One tile per limit, its count first. The bar is a native progress, which
   the policy's ban on inline styles leaves as the way to draw a share. */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr)); gap: 12px; list-style: none; }
.stat { gap: 6px; }
.stat-figure { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; row-gap: 4px; min-height: var(--t-h2); color: var(--faint); font: 400 var(--t-meta) var(--mono); }
.stat-figure b { font-size: var(--t-h2); line-height: 1; letter-spacing: -.03em; }
.stat-figure .badge { margin-left: auto; align-self: center; }
.stat:is(.near, .full) .stat-figure b { color: var(--danger); }
.stat-label { color: var(--text-2); font: 400 var(--t-ui)/1.35 var(--sans); }
.stat-label::first-letter, .stat .item-sub::first-letter { text-transform: uppercase; }
.gauge {
  appearance: none; display: block; width: 100%; height: 4px; margin-top: auto; translate: 0 4px;
  overflow: hidden; border: 0; border-radius: 999px; background: rgba(var(--tint-rgb), .1);
}
.gauge::-webkit-progress-bar { background: transparent; }
/* A share too small to see still shows it has started; none shows nothing. */
.gauge::-webkit-progress-value { min-width: 4px; border-radius: inherit; background: var(--blue-hi); transform-origin: left; animation: gauge-fill .8s var(--ease-out) both; }
.gauge::-moz-progress-bar { min-width: 4px; border-radius: 999px; background: var(--blue-hi); }
.gauge[value="0"]::-webkit-progress-value { min-width: 0; }
.gauge[value="0"]::-moz-progress-bar { min-width: 0; }
.stat:is(.near, .full) .gauge::-webkit-progress-value { background: var(--danger); }
.stat:is(.near, .full) .gauge::-moz-progress-bar { background: var(--danger); }
@keyframes gauge-fill { from { scale: 0 1; } }
@media (prefers-reduced-motion: reduce) { .gauge::-webkit-progress-value { animation: none; } }

/* A plan change is drawn like a purchase: a card per plan, its periods side
   by side, the buttons level across cards whatever sits above them. */
.changes .plan { gap: 8px; }
.plan.yours { border-color: rgba(var(--sky-rgb), .45); }
.change-offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: 12px; margin-top: auto; padding-top: 16px; }
.change-offers .offer .action { margin-top: auto; }

.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 12px; }
.pack { gap: 24px; padding: 20px; }
.pack-reach { display: flex; flex-direction: column; gap: 2px; }
.pack-figure { font-size: var(--t-h2); line-height: 1.05; letter-spacing: -.03em; }
.pack-buy { display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
.pack-price { color: var(--faint); font-size: var(--t-meta); }
.pack-price b { color: var(--ink); font: 500 var(--t-ui) var(--mono); font-variant-numeric: tabular-nums; }

@media (max-width: 600px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* From the rail's width the column is wide enough to leave holes: the plan
   tile a box of air beside the wallet, the ten limits six and four, a plan's
   list one narrow line down a wide card. */
@media (min-width: 1100px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .plan-cards .plan-limits { columns: 2 14rem; column-gap: 24px; }
  .plan-cards .plan-limits li { break-inside: avoid; }
}
.panel-body .billing-wanted, .panel-body .plan-preview, .panel-body .billing-activating, .panel-body .billing-keep { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; padding: 18px 20px; border-color: rgba(var(--sky-rgb), .45); }
.billing-wanted .action, .plan-preview .action, .billing-keep .action { align-self: flex-start; }
.plan-preview-head { color: var(--ink); font-weight: 600; }
.plan-preview-due { font-variant-numeric: tabular-nums; }
.panel-body .plan-preview-busy .note { margin-top: 10px; }
.plan-preview-limits { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.plan-preview-included { color: var(--faint); font: 500 var(--t-meta) var(--sans); }
.plan-preview-limits .plan-limits { columns: 2 14rem; column-gap: 24px; }
.plan-preview-limits .plan-limits li { break-inside: avoid; }

/* A wait on the payment provider whose length nobody knows: a segment
   crossing a hairline, not a bar that pretends to fill. */
.progress { position: relative; height: 2px; overflow: hidden; border-radius: 1px; background: var(--hairline); }
.progress::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 40%;
  background: linear-gradient(90deg, transparent, var(--blue-hi), transparent);
  animation: progress-cross 1.3s var(--ease-out) infinite;
}
@keyframes progress-cross { from { translate: -100% 0; } to { translate: 250% 0; } }
@keyframes progress-breathe { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
  .progress::before { width: 100%; background: var(--blue-dim); animation: progress-breathe 2s ease-in-out infinite; }
  .action[aria-busy="true"]::after { animation: progress-breathe 1.4s ease-in-out infinite; }
}
.plans { display: flex; flex-direction: column; gap: 16px; }
.interval {
  display: inline-flex; gap: 2px; width: fit-content; padding: 2px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--raised);
}
.interval button { height: var(--ctl-sm); padding: 0 10px; border-radius: var(--radius); color: var(--text-2); font: 500 var(--t-meta) var(--sans); }
.interval button:hover { color: var(--ink); }
.interval [aria-pressed="true"] { background: var(--surface-hi); color: var(--ink); box-shadow: 0 1px 2px rgba(var(--shade-rgb), calc(.3 * var(--shade-k))), 0 0 0 1px var(--line-strong); }
.plan-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 12px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 24px; }
.plan.recommended { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
/* As tall as the Recommended badge, so every card's price and list start level. */
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 24px; }
.plan-name { color: var(--ink); font: 600 var(--t-body) var(--sans); }
.offer { display: flex; flex-direction: column; gap: 8px; }
.offer .action { margin-top: 8px; }
/* Clipped rather than display:none, for the same reason as a pricing
   offer: the badge's entrance must not replay when the period changes. */
.plans[data-interval] .offer.off {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; visibility: hidden; pointer-events: none;
}
.price, .pack-price { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; max-width: 100%; }
.amount { color: var(--ink); font: 500 var(--t-h2)/1 var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.per { color: var(--faint); font-size: var(--t-meta); }
.plan-limits { margin: 0; padding: 0; list-style: none; color: var(--text-2); font: 400 var(--t-meta)/1.5 var(--sans); }
.plan-limits li { padding: 8px 0; border-top: 1px solid var(--line); }
.plan-limits li::first-letter { text-transform: uppercase; }
.portal-links { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---- logins ---- */

.add-login { margin-top: 16px; }
.add-login[open] > summary { margin-bottom: 16px; }
.add-login .social-logins { max-width: 24rem; }

/* Deleting the account sits apart, under a rule, and opens in place as a
   card: the same danger wash a confirmation row wears, given room for the
   list of what goes and the address to type. */
.danger-zone { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.danger-zone h3 { margin: 0 0 4px; font: 600 var(--t-ui)/1.4 var(--sans); }
.danger-zone > p { margin: 0 0 16px; color: var(--text-2); }
.action.danger-outline { background: none; border-color: rgba(var(--danger-rgb), .5); color: var(--err); }
.action.danger-outline:hover { background: var(--danger-wash); border-color: rgba(var(--danger-rgb), .7); }
.danger-card {
  padding: 18px 20px; border: 1px solid rgba(var(--danger-rgb), .38); border-radius: var(--radius-lg);
  background: var(--danger-wash);
}
.danger-step { display: grid; gap: 14px; }
.danger-step[hidden] { display: none; }
.danger-step h4 { display: flex; align-items: center; gap: 8px; margin: 0; font: 600 var(--t-ui)/1.4 var(--sans); }
.danger-step h4 svg { flex: none; font-size: 20px; color: var(--danger); }
.danger-step p { margin: 0; color: var(--text-2); }
.danger-step ul { display: grid; gap: 4px; margin: 0; padding-left: 18px; color: var(--text-2); }
.danger-step label { display: block; color: var(--text-2); }
.danger-step label .mono { color: var(--ink); }
.danger-step label .field { margin-top: 8px; }
.danger-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

/* ---- banners ---- */

.banner {
  margin-bottom: 1.5rem; padding: 10px 14px;
  border: 1px solid rgba(var(--danger-rgb), .3); border-radius: var(--radius);
  background: rgba(var(--danger-rgb), .07);
  color: var(--err); font: var(--t-meta)/1.6 var(--sans);
}
.banner.ok {
  margin: 0 0 .8rem;
  border-color: rgba(var(--ok-rgb), .3); background: rgba(var(--ok-rgb), .07);
  color: var(--ok-hi);
}
.banner p { margin: 0; }
.verify-code {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  margin-top: .7rem;
}
.verify-code .field { flex: 0 0 11rem; }
.verify-code input { text-align: center; letter-spacing: .22em; }
/* The banner is its own colour, so a bare button reads as text beside the
   quiet one next to it. */
.verify-code button[type="submit"] {
  height: var(--ctl); padding: 0 12px; border-radius: var(--radius);
  border: 1px solid rgba(var(--danger-rgb), .45); background: rgba(var(--danger-rgb), .16);
  color: var(--danger); font: 500 var(--t-meta) var(--sans); cursor: pointer;
}
.verify-code button[type="submit"]:hover { background: rgba(var(--danger-rgb), .26); }

.panel-shell > .notice { margin: 0 0 1.5rem; }

/* ---- shared form furniture ---- */

fieldset {
  display: flex; flex-direction: column; gap: .5rem;
  padding: .8rem 1rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
}
legend { padding: 0 .35rem; color: var(--text-2); font: 500 var(--t-label)/1.3 var(--sans); }
label.check {
  flex-direction: row; align-items: center; gap: 10px;
  color: var(--text-2); font: var(--t-meta) var(--sans);
  cursor: pointer;
}

/* A permission is on or off, so it is drawn as a switch. The input itself is
   the track: the form post, the label's click and consent.js all keep the
   native checkbox. */
input[type="checkbox"][role="switch"] {
  appearance: none;
  position: relative; flex: none;
  width: 28px; height: 16px; margin: 0; padding: 0;
  border: 0; border-radius: 999px;
  background: var(--track);
  cursor: pointer;
  transition: background-color .15s;
}
input[type="checkbox"][role="switch"]::before {
  content: "";
  position: absolute; top: 2px; left: 2px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .3);
  transition: translate .15s var(--ease-out);
}
input[type="checkbox"][role="switch"]:checked { background: var(--blue); }
input[type="checkbox"][role="switch"]:checked::before { translate: 12px 0; }
/* A yes or no that is not a setting — agreeing to the terms, numbering the
   posts — stays a box, and a choice of one a round mark. */
input[type="checkbox"]:not([role="switch"]), input[type="radio"] {
  appearance: none;
  flex: none; width: 16px; height: 16px; margin: 0;
  border: 1px solid var(--edge); border-radius: var(--radius-sm);
  background: var(--field) center / 12px 12px no-repeat;
  cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
input[type="radio"] { border-radius: 50%; }
label:hover > input:is([type="checkbox"]:not([role="switch"]), [type="radio"]):not(:checked, :disabled) { border-color: var(--text-3); }
input[type="checkbox"]:not([role="switch"]):checked {
  border-color: var(--blue);
  background-color: var(--blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
input[type="radio"]:checked { border: 5px solid var(--blue); background: #fff; }
input:is([type="checkbox"], [type="radio"]):disabled { opacity: .4; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) {
  input[type="checkbox"][role="switch"]::before { transition: none; }
}
/* Forced colours repaint the fills these controls show state with, so on and
   off would look alike; the platform's own box carries it instead. Important,
   because the drawn controls' own rules, checked states included, are more
   specific than one selector here can be. */
@media (forced-colors: active) {
  input:is([type="checkbox"], [type="radio"]) {
    appearance: auto !important; width: 16px !important; height: 16px !important;
    border: 0 !important; background: none !important;
  }
  input[type="checkbox"][role="switch"]::before { display: none; }
}

/* ---- free tools ------------------------------------------------------------
   A tool wants the width of two panes; its prose stays at reading width. */

.read-page main:has(.tool-panes) { width: min(70rem, 100%); }
.read-page main:has(.tool-panes) .read-head { max-width: 46rem; }
.tool-prose { max-width: 42rem; margin-top: 3.5rem; }
.tool-prose td code { overflow-wrap: anywhere; white-space: normal; }

/* The X algorithm changelog. */
.read-page :where(main) .xalgo-status { margin: 1.1rem 0 0; color: var(--text-3); font: 400 var(--t-ui)/1.5 var(--mono); }
.xalgo-unit {
  margin-left: .35rem; padding: .05rem .4rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  color: var(--text-3); font: 500 var(--t-micro) var(--mono);
}

/* The list of changes: a day to a row, hung on a line with the chart's own
   dots, a ring for a day a weight moved and a grey one for switches alone. */
.xl { --xl-when: 5rem; --xl-gap: 2.2rem; margin-top: 1.4rem; }
.read-page :where(main) .xl-month-name { margin: 2.2rem 0 .5rem; color: var(--ink); font: 500 var(--t-lede)/1.3 var(--serif); }
.xl-month:first-child .xl-month-name { margin-top: 0; }
.xl-month-name { scroll-margin-top: 104px; }
.xl-day { position: relative; display: grid; grid-template-columns: var(--xl-when) minmax(0, 1fr); column-gap: var(--xl-gap); padding: .5rem 0; }
.xl-day::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--xl-when) + var(--xl-gap) / 2);
  width: 1px; background: rgba(var(--sky-rgb), .3);
}
.xl-day::after {
  content: ""; position: absolute; top: 1.02rem; left: calc(var(--xl-when) + var(--xl-gap) / 2);
  width: 7px; height: 7px; margin-left: -3px; border-radius: 50%; background: var(--faint);
  box-shadow: 0 0 0 4px var(--bg);
}
.xl-day.has-weights::after {
  top: .88rem; width: 12px; height: 12px; margin-left: -5.5px;
  border: 1.5px solid var(--blue-soft); background: var(--bg);
}
.xl-when { padding-top: .32rem; text-align: right; }
.post .xl-when h3 { margin: 0; color: var(--ink); font: 500 var(--t-ui)/1.4 var(--mono); letter-spacing: 0; scroll-margin-top: 104px; }
.xl-day.is-quiet .xl-when h3 { color: var(--text-3); }
.post .xl .xl-commit { color: var(--faint); font: 400 var(--t-micro) var(--mono); text-decoration: none; }
.post .xl .xl-commit:hover { color: var(--blue-soft); }
.read-page :where(main) .xl-note { margin: .3rem 0 .4rem; color: var(--text-2); font-size: var(--t-ui); line-height: 1.55; }
.xl .xl-items, .xl .xl-raw { margin: 0; padding: 0; list-style: none; }
.xl .xl-item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .1rem 1.2rem; align-items: baseline;
  margin: 0; padding: .45rem 0; border-top: 1px solid var(--line); scroll-margin-top: 104px;
}
.xl .xl-item:first-child { border-top: 0; padding-top: .3rem; }
.xl-name { color: var(--ink); font-size: var(--t-cell); font-weight: 500; line-height: 1.4; }
.xl-move { color: var(--text-1); font-size: var(--t-cell); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.xl-delta { margin-left: .7rem; color: var(--text-3); font-size: var(--t-ui); }
.xl-tag {
  display: inline-block; padding: 0 .4rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  color: var(--text-3); font: 500 var(--t-micro)/1.5 var(--mono); vertical-align: .08em; white-space: nowrap;
}
.xl-tag.is-new, .xl-tag.is-on { border-color: currentColor; color: var(--blue-soft); }
.xl-move .xl-tag { margin-right: .15rem; }
.xl .xl-code { grid-column: 1 / -1; justify-self: start; padding: 0; border: 0; background: none; color: var(--faint); font-size: var(--t-micro); overflow-wrap: anywhere; white-space: normal; }
.read-page :where(main) .xl-about { grid-column: 1 / -1; max-width: 36rem; margin: .15rem 0 .1rem; color: var(--text-2); font-size: var(--t-ui); line-height: 1.5; }
.xl-tip { grid-column: 1 / -1; display: grid; gap: .2rem; max-width: 36rem; margin: .6rem 0 .1rem; padding: .62rem .75rem .7rem; border-radius: var(--radius); background: var(--raised); }
.xl-tip-label { display: flex; gap: .4rem; align-items: center; color: var(--blue-soft); font: 500 var(--t-micro)/1.4 var(--mono); }
.read-page :where(main) .xl-tip p { margin: 0; color: var(--ink); font-size: var(--t-ui); line-height: 1.5; }
.xl-more > summary {
  display: inline-flex; align-items: center; gap: .4rem; padding: .32rem 0; list-style: none;
  color: var(--text-3); font: 500 var(--t-ui)/1.4 var(--mono); cursor: pointer;
}
.xl-more > summary::-webkit-details-marker { display: none; }
.xl-more > summary svg { flex: none; width: 11px; height: 11px; fill: currentColor; transition: transform .2s; }
.xl-more[open] > summary svg { transform: rotate(90deg); }
.xl-more > summary:hover { color: var(--ink); }
.xl-items + .xl-more { margin-top: .1rem; }
.xl .xl-raw li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto); gap: 0 1.2rem; margin: 0; padding: .35rem 0; border-top: 1px solid var(--line); }
.xl .xl-raw code { padding: 0; border: 0; background: none; color: var(--text-2); font-size: var(--t-ui); overflow-wrap: anywhere; white-space: normal; }
.xl-raw .xl-move { max-width: 22rem; color: var(--text-1); font-size: var(--t-ui); white-space: normal; overflow-wrap: anywhere; }
.xl-area { grid-column: 1 / -1; color: var(--faint); font-size: var(--t-micro); }
@media (max-width: 640px) {
  .xl-day { grid-template-columns: minmax(0, 1fr); padding-left: 1.5rem; }
  .xl-day::before, .xl-day::after { left: .3rem; }
  .xl-when { display: flex; align-items: baseline; gap: .7rem; padding-top: 0; text-align: left; }
  .xl-day::after { top: .78rem; }
  .xl-day.has-weights::after { top: .64rem; }
  .xl .xl-item { grid-template-columns: minmax(0, 1fr); }
  .xl-move { text-align: left; white-space: normal; }
  .xl-raw .xl-move { max-width: none; }
  .xl .xl-raw li { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .xl-more > summary svg { transition: none; }
}
.xalgo + .tool-next { margin-top: 3rem; }
/* The labels that hide posts: a card for each label X's code has been read
   for, rows for the ones named for what they are, and the rest folded. */
.lb .lb-list, .lb .lb-rows, .lb .xl-raw { margin: 1.2rem 0 0; padding: 0; color: var(--text-1); font-size: var(--t-ui); line-height: 1.5; list-style: none; }
.lb-item { margin: 0; padding: 1.1rem 0 1.2rem; border-top: 1px solid var(--line); scroll-margin-top: 104px; }
.lb-item:first-child { border-top: 0; padding-top: .2rem; }
.read-page :where(main) .lb-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; margin: 0; }
.lb-name { color: var(--ink); font: 500 var(--t-lede)/1.3 var(--serif); }
.lb .xl-code { padding: 0; border: 0; background: none; color: var(--faint); font-size: var(--t-micro); overflow-wrap: anywhere; white-space: normal; }
.read-page :where(main) .lb .xl-about { margin: .35rem 0 0; }
.lb-facts { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: .5rem 1rem; max-width: 40rem; margin: .8rem 0 0; }
.lb-facts dt { padding-top: .1rem; color: var(--text-3); font: 500 var(--t-micro)/1.6 var(--mono); }
.lb-facts dd { margin: 0; color: var(--text-1); font-size: var(--t-ui); line-height: 1.5; }
.lb-facts ul { margin: 0; padding: 0; color: inherit; font-size: inherit; line-height: inherit; list-style: none; }
.lb-facts li { margin: 0 0 .35rem; padding: 0; }
.lb-facts li:last-child { margin-bottom: 0; }
.lb-facts code { overflow-wrap: anywhere; }
.lb-where { display: block; color: var(--ink); font-weight: 500; }
.lb-other { color: var(--text-3); }
.lb-item .xl-tip { margin-top: .8rem; }
.read-page :where(main) .lb-sub { margin: 2.2rem 0 0; color: var(--ink); font: 500 var(--t-cell)/1.4 var(--sans); }
.lb-rows li {
  display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: .25rem 1.2rem;
  margin: 0; padding: .6rem 0; border-top: 1px solid var(--line); font-size: var(--t-ui); line-height: 1.5; scroll-margin-top: 104px;
}
.lb-rows li:first-child { border-top: 0; }
.lb-row-name { color: var(--ink); font-weight: 500; }
.lb-row-name .xl-code { display: block; margin-top: .1rem; font-weight: 400; }
.lb-row-where { color: var(--text-1); }
.lb-rest { margin-top: 1.2rem; }
.read-page :where(main) .lb-note { max-width: 40rem; margin: .35rem 0 0; color: var(--text-2); font-size: var(--t-ui); line-height: 1.5; }
.lb .lb-rows + .xl-tip { max-width: 40rem; margin-top: .8rem; }
.lb .xl-raw li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto); gap: 0 1.2rem; margin: 0; padding: .35rem 0; border-top: 1px solid var(--line); scroll-margin-top: 104px; }
.lb .xl-raw code { padding: 0; border: 0; background: none; color: var(--text-2); font-size: var(--t-ui); overflow-wrap: anywhere; white-space: normal; }
@media (max-width: 640px) {
  .lb-facts, .lb-rows li, .lb .xl-raw li { grid-template-columns: minmax(0, 1fr); }
  .lb-facts { gap: .15rem 0; }
  .lb-facts dt { padding-top: .5rem; }
  .lb-facts dt:first-child { padding-top: 0; }
}


/* Its chart: a row for every weight and a bar for its value. The
   bars are SVG so their lengths are attributes: the policy the pages are
   served under allows no style written into the markup. */
.xc { margin: 0 0 1rem; }
/* The days sit on a line where they fell in the calendar, a bigger dot for a
   day X moved more weights, and a few at a time: the arrows bring the next. */
.xc-pick { margin: 1.2rem 0 1rem; }
html.no-js .xc-pick { display: none; }
/* The arrows and the strip are for a history longer than the line, and the
   classes that lay them out would otherwise show them regardless. */
.xc-pick [hidden] { display: none; }
.xc-line { display: flex; align-items: flex-start; gap: .6rem; }
.xc-play, .xc-step {
  flex: none; height: var(--ctl); display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--raised);
  color: var(--text-2); font: 500 var(--t-meta) var(--sans); cursor: pointer;
  transition: background-color .15s, color .15s;
}
.xc-play { padding: 0 12px; }
.xc-step { width: var(--ctl); font-size: 14px; }
:is(.xc-play, .xc-step):hover:not(:disabled) { background: var(--raised-hover); color: var(--ink); }
.xc-step:disabled { opacity: .35; cursor: default; }
.xc-play.is-playing { border-color: var(--blue); background: rgba(28, 92, 255, .1); color: var(--ink); box-shadow: inset 0 0 0 1px var(--blue); }
.xc-rail { position: relative; flex: 1; min-width: 0; height: 66px; margin: 0 14px; }
.xc-rail::before { content: ""; position: absolute; left: -14px; right: -14px; top: 21px; height: 1px; background: rgba(var(--sky-rgb), .45); }
.xc-month { position: absolute; top: 15px; width: 1px; height: 13px; background: rgba(var(--sky-rgb), .45); }
.xc-month span { position: absolute; top: -17px; left: 4px; color: var(--faint); font: 500 var(--t-micro) var(--mono); white-space: nowrap; }
.xc-dot {
  position: absolute; top: 21px; width: 24px; height: 44px; padding: 0; border: 0; background: none;
  transform: translate(-50%, -15px); display: flex; flex-direction: column; align-items: center; cursor: pointer;
}
.xc-dot i {
  display: block; margin-top: calc(15px - var(--r)); width: calc(var(--r) * 2); height: calc(var(--r) * 2);
  border: 1.5px solid var(--blue-soft); border-radius: 50%; background: var(--bg); transition: transform .15s;
}
.xc-dot:hover i { transform: scale(1.15); }
/* A day X changed only switches: on the line, and no bar moves on it. */
.xc-dot.is-quiet i { border-color: var(--faint); background: var(--faint); }
.xc-dot[aria-pressed="true"] { z-index: 1; }
.xc-dot[aria-pressed="true"] i { border-color: var(--blue); background: var(--blue); box-shadow: 0 0 0 4px rgba(28, 92, 255, .2); }
.xc-dot span { position: absolute; top: 33px; padding: 0 4px; color: var(--faint); font: 500 var(--t-micro) var(--mono); white-space: nowrap; opacity: 0; pointer-events: none; }
.xc-dot:is([aria-pressed="true"], :hover, :focus-visible) span { opacity: 1; }
.xc-dot[aria-pressed="true"] span { background: var(--bg); color: var(--ink); }
/* All the days the chart holds, in one strip: brighter where X moved more,
   underlined where the line above is looking. */
.xc-mini { display: flex; gap: 1px; height: 14px; margin-bottom: .8rem; border-radius: 3px; overflow: hidden; cursor: pointer; }
.xc-mini i { flex: 1 1 0; background: var(--blue-soft); opacity: calc(.12 + var(--d) * .7); }
.xc-mini i.is-on { box-shadow: inset 0 -3px 0 var(--ink); }
.read-page :where(main) :is(.xc-range, .xc-legend) { margin: .4rem 0 0; color: var(--faint); font: 400 var(--t-micro) var(--mono); }
.xc-legend { display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; }
.xc-legend span { display: inline-flex; align-items: center; gap: .45rem; }
.xc-legend i { flex: none; width: 10px; height: 10px; border: 1.5px solid var(--blue-soft); border-radius: 50%; }
.xc-legend i.is-quiet { width: 6px; height: 6px; border-color: var(--faint); background: var(--faint); }
.xc-frame {
  padding: 1rem 1.1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: rgba(var(--well-rgb), .6);
}
.read-page :where(main) .xc-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .8rem; margin: 0 0 .9rem; }
.xc-head strong { color: var(--ink); font: 500 var(--t-lede)/1.3 var(--serif); }
.xc-head span { color: var(--text-3); font: 400 var(--t-ui) var(--mono); }
.xc .xc-rows { margin: 0; padding: 0; list-style: none; }
.xc-axis, .xc-row { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr) 4.5rem; column-gap: 1rem; }
.xc-ends { grid-column: 2; display: flex; justify-content: space-between; color: var(--faint); font: 500 var(--t-micro) var(--mono); }
.xc-scale { grid-column: 2; width: 100%; height: 16px; margin-bottom: .2rem; overflow: visible; }
.xc-scale text { fill: var(--text-3); font: 500 var(--t-micro) var(--mono); font-variant-numeric: tabular-nums; text-anchor: middle; }
.xc .xc-row { margin: 0; border-top: 1px solid var(--line); align-items: center; }
.xc-what { display: flex; flex-direction: column; padding: .34rem 0; }
.xc-name { color: var(--text-2); font-size: var(--t-ui); line-height: 1.35; overflow-wrap: anywhere; }
.xc-note { color: var(--text-3); font-size: var(--t-micro); line-height: 1.4; font-variant-numeric: tabular-nums; }
.xc-note:empty { display: none; }
.xc-val { color: var(--text-2); font-size: var(--t-ui); font-variant-numeric: tabular-nums; text-align: right; }
.xc-row.is-today :is(.xc-name, .xc-val) { color: var(--ink); font-weight: 500; }
/* The drawing fills its track whatever the height of the words beside it, so
   the line at 0 runs unbroken from the first row to the last. */
.xc-track { position: relative; align-self: stretch; min-height: 26px; }
.xc-bar { position: absolute; inset: 0; width: 100%; height: 100%; }
.xc-zero { stroke: var(--faint); stroke-width: 1; }
.xc-grid { stroke: var(--line); stroke-width: 1; }
/* Full colour is for what moved on the day shown. The rest keep their bars,
   paler, so the day's own moves stand out against them. */
.xc-fill { opacity: .5; }
.xc-row.is-today .xc-fill { opacity: 1; }
.xc-bar.is-reward .xc-fill { fill: var(--chart-reward); }
.xc-bar.is-penalty .xc-fill { fill: var(--chart-penalty); }
/* The bar a weight had before the day it moved, as an outline from the middle:
   over the new bar, so a rise shows the old end inside it and a cut the old
   bar past its end, or alone where the weight went to 0. */
.xc-was { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 3 2; visibility: hidden; }
.xc-was.is-set { visibility: visible; }
.read-page :where(main) .xc-key { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.3rem; margin: .9rem 0 0; padding-top: .8rem; border-top: 1px solid var(--line); color: var(--text-3); font-size: var(--t-micro); line-height: 1.5; }
.xc-key-item { display: inline-flex; align-items: center; gap: .5rem; }
.xc-swatch { width: 18px; height: 8px; border-radius: 2px; background: linear-gradient(90deg, var(--chart-penalty) 50%, var(--chart-reward) 50%); opacity: .5; }
.xc-swatch.is-today { opacity: 1; }
.xc-was-key { width: 18px; height: 8px; border: 1.5px dashed var(--ink); border-radius: 2px; }
.xc-key-note { flex-basis: 100%; }
.read-page :where(main) .xc-more { margin: .7rem 0 0; font-size: var(--t-ui); }
@media (max-width: 640px) {
  .xc-frame { padding: .9rem .8rem 1rem; }
  .xc-axis, .xc-row { grid-template-columns: minmax(0, 1fr) auto; }
  .xc-ends, .xc-scale { grid-column: 1 / -1; }
  .xc-what { padding-bottom: 0; }
  .xc-track { grid-column: 1 / -1; grid-row: 2; min-height: 18px; margin-bottom: .2rem; }
  .xc-line { gap: .4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .xc-dot i { transition: none; }
}

/* The changelog's rails. Where the window has room, the page's contents
   stand on the left, and wider still the newest days and the tips on the
   right, each held in view while the page scrolls. The chart takes the room
   between them, and the prose keeps its measure. Narrower, a rail is left
   out: everything in it is in the page. The contents rail is a post's, and
   its script marks the section being read. */
.xr-side { display: none; }
@media (min-width: 1240px) {
  /* The column starts where the rails stick, and the chart's first rows
     reach a 1080-pixel screen. */
  .read-page header.top + main:has(.xr) { width: 100%; padding-top: 112px; }
  .xr {
    display: grid; grid-template-columns: 13rem minmax(0, 56rem);
    column-gap: 3rem; justify-content: center; align-items: start;
  }
  .xr > .xalgo, .xr > .tool-next { grid-column: 2; }
  /* The prose stands in the middle of the column, and the chart, wider,
     reaches past it on both sides. */
  .xr .xalgo > :not(.xc), .xr > .tool-next, .xr .xc > :not(.xc-pick, .xc-frame) { max-width: 42rem; margin-inline: auto; }
  /* The head starts where the prose does and runs to the column's end: the
     summary's type is larger, so as many words fit a line of it. */
  .xr .xalgo > .read-head { max-width: none; margin-inline: max(0px, (100% - 42rem) / 2) 0; }
  .xr-toc { grid-row: 1 / span 2; }
  .read-page .xr-toc ol ol { max-height: none; overflow: visible; box-shadow: none; }
  .read-page .xr-toc ol ol a { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; padding-left: 1.7rem; }
  .xr-count { flex: none; color: var(--faint); font: 400 var(--t-micro) var(--mono); }
  /* The chart's names get the width the rails leave, and the day line's
     legend and range share a row where they fit. */
  .xr .xc-axis, .xr .xc-row { grid-template-columns: minmax(0, 18rem) minmax(0, 1fr) 4.5rem; }
  .xr .xc-pick { display: flex; flex-wrap: wrap; column-gap: 1.2rem; align-items: baseline; }
  .xr .xc-pick > :is(.xc-mini, .xc-line) { flex: 1 0 100%; }
  .xr .xc-range { margin-left: auto; }
}
@media (min-width: 1440px) {
  .xr { grid-template-columns: 13rem minmax(0, 56rem) 18rem; }
  .xr-side {
    grid-column: 3; grid-row: 1 / span 2; display: grid; gap: 1.4rem;
    position: sticky; top: 112px;
    max-height: calc(100vh - 112px - 1.5rem); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
  }
}
@media (min-width: 1680px) {
  .xr { grid-template-columns: 13rem minmax(0, 56rem) 20rem; }
}
.read-page :where(main) .xr-side p { margin: 0; }
.read-page :where(main) .xr-side .xr-date { margin: 0 0 .9rem; color: var(--ink); font: 500 var(--t-lede)/1.25 var(--serif); }
.read-page :where(main) .xr-days { display: grid; gap: .65rem; margin: 0; padding: 0; list-style: none; }
.read-page :where(main) .xr-days li { margin: 0; }
.read-page :where(main) .xr-days a {
  display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: .6rem;
  color: var(--text-2); font-size: var(--t-ui); line-height: 1.45; text-decoration: none;
}
.read-page :where(main) .xr-days a:hover { color: var(--ink); }
.xr-days time { padding-top: .1rem; color: var(--faint); font: 400 var(--t-label) var(--mono); }
.xr-name { color: var(--ink); font-weight: 500; }
.xr-move { color: var(--text-1); font-variant-numeric: tabular-nums; white-space: nowrap; }
.read-page :where(main) .xr-side .xr-all { margin: .9rem 0 0; font: 400 var(--t-meta) var(--mono); }
.xr-tips { display: grid; gap: .7rem; padding: .8rem .9rem .9rem; border-radius: var(--radius); background: var(--raised); }
.read-page :where(main) .xr-tips ul { display: grid; gap: .9rem; margin: 0; padding: 0; list-style: none; }
.read-page :where(main) .xr-tips li { margin: 0; }
.read-page :where(main) .xr-tips li p { color: var(--ink); font-size: var(--t-ui); line-height: 1.5; }
.read-page :where(main) .xr-tips li a { display: inline-block; margin-top: .2rem; font: 400 var(--t-micro)/1.5 var(--mono); text-decoration: none; }
.read-page :where(main) .xr-tips li a:hover { text-decoration: underline; }
.read-page :where(main) .xr-links { display: flex; gap: 1.2rem; font: 400 var(--t-meta) var(--mono); }

.tool-panes {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px;
  align-items: start;
}
@media (max-width: 860px) {
  .tool-panes { grid-template-columns: minmax(0, 1fr); }
}
html.no-js :is(.tool-bar, .tool-foot, .tool-preview, .tool-presets) { display: none; }

.tool-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tool-bar button {
  min-width: var(--ctl); height: var(--ctl); padding: 0 10px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--raised);
  color: var(--text-2); font: 500 var(--t-meta)/1 var(--sans); cursor: pointer;
  transition: background-color .15s, color .15s;
}
.tool-bar button:hover { background: var(--raised-hover); color: var(--ink); }
.tool-bar button:active { background: var(--line-strong); }
/* A font button shows its own font. */
.tool-bar .fmt-serif { font-family: var(--serif); }
.tool-bar .fmt-mono { font-family: var(--mono); }
.tool-bar :is(b, i) { font-size: var(--t-body); font-family: var(--serif); }

.tool-panes textarea {
  display: block; width: 100%; min-height: 340px; padding: 12px 14px; resize: vertical;
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: var(--field); color: var(--ink);
  font: 400 var(--t-body)/1.6 var(--sans);
  transition: border-color .15s, box-shadow .15s;
}

.tool-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.tool-count { color: var(--dim); font: 400 var(--t-meta)/1 var(--mono); font-variant-numeric: tabular-nums; }
.tool-count.over { color: var(--err); }
.tool-foot .copy { position: relative; top: auto; right: auto; display: inline-flex; align-items: center; gap: 6px; }
.tool-foot .copy:disabled { opacity: .5; cursor: default; }
.read-page :where(main) .tool-status { min-height: 1.4em; margin: 10px 0 0; color: var(--text-3); font-size: var(--t-meta); line-height: 1.4; }

.tool-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; min-height: 42px; }
.read-page :where(main) .tool-label { margin: 0; color: var(--text-2); font: 500 var(--t-label)/1 var(--sans); }

/* The system's own face, not Plex: the page has to show the styled letters as
   a reader's device draws them, and no webfont here carries them. */
.tool-card {
  padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: rgb(var(--well-rgb));
  font-family: -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
}
.tool-card[data-device="phone"] { max-width: 360px; margin-inline: auto; }
.tool-author { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.tool-avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--raised-hover); }
.tool-who { display: grid; gap: 2px; min-width: 0; font-size: var(--t-meta); color: var(--text-3); line-height: 1.3; }
.tool-who strong { color: var(--ink); font-size: var(--t-ui); font-weight: 600; }
.read-page :where(main) .tool-body {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
  margin: 0; color: var(--ink); font-size: var(--t-ui); line-height: 1.5;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.read-page :where(main) .tool-body.empty { color: var(--faint); }
.tool-card[data-open] .tool-body { display: block; }
.tool-more {
  display: block; margin: 4px 0 0 auto; padding: 4px 0; background: none; border: 0;
  color: var(--text-3); font-family: inherit; font-size: var(--t-meta); font-weight: 500; line-height: 1.3; cursor: pointer;
}
.tool-more:hover { color: var(--ink); text-decoration: underline; }
.tool-more[hidden] { display: none; }
/* The LinkedIn counter measures the fold on a ruler: the desktop feed's own
   column and type, kept off the page, so the cut lands in the same place on
   any screen. What it found shows in the card, in the same type and, where the
   page is wide enough to give the card that column, on the same lines. On a
   narrower page the card wraps sooner, and shows the same text on more lines. */
.li-ruler, .read-page :where(main) .li-shown {
  font: 400 14px/20px -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  white-space: pre-wrap; overflow-wrap: break-word; text-wrap: wrap;
}
.li-ruler { position: absolute; top: 0; left: -9999px; width: 526px; visibility: hidden; }
.read-page :where(main) .li-shown { width: 526px; max-width: 100%; margin: 0; color: var(--ink); }
.read-page :where(main) .li-shown.empty { color: var(--faint); }
.li-cut { color: var(--text-3); }
[data-li-counter] .tool-presets { margin-bottom: 10px; }
@media (min-width: 1080px) {
  /* 526px of text and the card's padding and border. */
  [data-li-counter].tool-panes { grid-template-columns: minmax(0, 1fr) 560px; }
}
.tool-foot .tool-check {
  display: inline-flex; flex-direction: row; align-items: center; gap: 8px; margin: 0;
  color: var(--text-2); font: 400 var(--t-meta)/1.3 var(--sans); letter-spacing: normal; text-transform: none; cursor: pointer;
}
.tool-foot .tool-check input { margin: 0; }
.read-page :where(main) .tool-empty { margin: 0; color: var(--faint); font-size: var(--t-ui); }

.tool-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.tool-fields label:not(.tool-check) { gap: 6px; }
.tool-fields input:not([type="checkbox"], [type="range"], [type="file"]) { height: var(--ctl-lg); padding: 0 12px; font-size: max(var(--t-ui), var(--field-min)); }
.tool-presets { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.tool-presets .segmented { display: flex; flex-wrap: wrap; }
.tool-foot-end { justify-content: flex-end; }
.read-page :where(main) .tool-output.empty { color: var(--faint); }

.read-page main .x-posts { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.read-page main .x-post { margin: 0; }
.read-page main .x-posts[hidden], .tool-empty[hidden] { display: none; }
.read-page :where(main) .x-post .tool-label { margin-bottom: 10px; }
.read-page :where(main) .tool-output { margin: 0; color: var(--ink); font-size: var(--t-ui); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }

.read-page :where(main) .tool-note { margin: 10px 0 0; color: var(--faint); font-size: var(--t-meta); line-height: 1.4; }

.tool-next {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px;
  margin-top: 32px; padding: 20px 22px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgb(var(--well-rgb));
}
.read-page :where(main) .tool-next p { flex: 1 1 22rem; margin: 0; color: var(--text-2); font-size: var(--t-ui); line-height: 1.5; }

/* The banner checker. The stage's bottom padding is a share of its width, which
   is what leaves room for a photo that hangs past the banner. The guide is drawn
   over any picture, so it is two-toned rather than a theme colour. */
html.no-js [data-banner-checker] { display: none; }
@media (max-width: 860px) {
  [data-banner-checker] .tool-preview { order: -1; }
}
[data-banner-download]:disabled { opacity: .5; box-shadow: none; cursor: default; }

/* The anti-AI font maker. Only the stage leaves the column: it is shown as
   large as the video is made, the screen allows and the picked preview size
   lets it, centred on the page, and everything else stays where the column
   puts it. A wide frame is never narrower than the column. On a short screen
   the stage stops growing, so the whole frame stays in view under the menu. */
html.no-js [data-motion-font] { display: none; }
.motion-tool { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
/* The stage is the ground's color until the first frame is drawn, and the
   light under it is the dots' own. What it casts is named on the page, where
   the picture of the stage being moved can read it too. */
:root {
  --mf-cast:
    0 0 0 1px var(--line-strong),
    0 28px 56px -32px rgba(var(--shade-rgb), calc(.9 * var(--shade-k))),
    0 40px 96px -72px color-mix(in srgb, var(--mf-lit, #e7ecf5) 45%, transparent);
}
.motion-stage {
  --native: 1280px; --ratio: 16 / 9;
  --fit: min(var(--native), 100vw - 4rem, (100vh - 14rem) * var(--ratio));
  --wide: max(100%, var(--fit));
  position: relative; width: var(--wide); max-width: none; aspect-ratio: var(--ratio);
  margin-inline: calc((100% - var(--wide)) / 2);
  overflow: hidden; border-radius: var(--radius-lg); background: var(--mf-dark, #05070c);
  box-shadow: var(--mf-cast);
  animation: motion-arrive .8s var(--ease-out) both;
}
[data-shape="square"] .motion-stage { --native: 960px; --ratio: 1; --wide: max(min(100%, 14rem), var(--fit)); }
[data-shape="tall"] .motion-stage { --native: 720px; --ratio: 9 / 16; --wide: max(min(100%, 14rem), var(--fit)); }
/* A picked preview size is that many pixels wide whatever the screen's height:
   it is there to be judged at that width. */
[data-view="500"] .motion-stage { --wide: min(500px, 100vw - 4rem); }
[data-view="350"] .motion-stage { --wide: min(350px, 100vw - 4rem); }
.motion-stage canvas {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%; cursor: pointer;
  opacity: 0; transition: opacity .6s var(--ease-out);
}
[data-ready] .motion-stage canvas { opacity: 1; }
@keyframes motion-arrive {
  from { opacity: 0; transform: translateY(14px); }
}
/* What is said over the video is not in the video: both are the page's own,
   dark on any pair of colors. */
.motion-stage .motion-still {
  position: absolute; left: 50%; bottom: 14px; width: max-content; max-width: calc(100% - 24px);
  margin: 0; padding: 6px 12px; border-radius: var(--radius);
  background: rgba(8, 10, 14, .78); backdrop-filter: blur(10px); color: #fff;
  font: 500 var(--t-meta)/1.35 var(--sans); text-align: center; text-wrap: balance; pointer-events: none;
  opacity: 0; visibility: hidden; translate: -50% 8px;
  transition: opacity .3s var(--ease-out), translate .5s var(--ease-out), visibility 0s .3s;
}
[data-state="paused"] .motion-still { opacity: 1; visibility: visible; translate: -50% 0; transition-delay: 0s; }
.motion-bezel {
  position: absolute; inset: 0; display: grid; place-items: center; width: 72px; height: 72px; margin: auto;
  border-radius: 50%; background: rgba(8, 10, 14, .62); color: #fff; font-size: 28px;
  opacity: 0; pointer-events: none;
}
.motion-bezel svg { grid-area: 1 / 1; }
[data-flip="play"] .motion-bezel svg:last-child, [data-flip="pause"] .motion-bezel svg:first-child { display: none; }
.motion-bezel svg:first-child { translate: 2px 0; }
/* Two names for one flash: a change of name is what starts it again. */
[data-flip="play"] .motion-bezel { animation: motion-flash-play .7s ease-out; }
[data-flip="pause"] .motion-bezel { animation: motion-flash-pause .7s ease-out; }
@keyframes motion-flash-play {
  0% { opacity: 0; scale: .8; }
  20%, 50% { opacity: 1; scale: 1; }
  100% { opacity: 0; scale: 1.2; }
}
@keyframes motion-flash-pause {
  0% { opacity: 0; scale: .8; }
  20%, 50% { opacity: 1; scale: 1; }
  100% { opacity: 0; scale: 1.2; }
}

/* The dock under the stage: pause, the video's shape, the dots' shape,
   download. Its corners follow the round buttons at its ends. Where a screen
   can't hold it in one row, the two buttons keep the first row and the dots'
   shape takes the next. */
.motion-bar {
  position: relative; justify-content: center; gap: 6px; width: fit-content; max-width: 100%;
  margin: 20px auto 0; padding: 6px;
  border: 1px solid var(--line); border-radius: 29px; background: var(--surface);
  box-shadow: 0 16px 40px -24px rgba(var(--shade-rgb), calc(.8 * var(--shade-k)));
  animation: motion-arrive .7s var(--ease-out) .1s both;
}
.motion-picks { display: flex; align-items: center; gap: 13px; padding-inline: 7px; }
.motion-picks .segmented { padding: 0; border: 0; background: none; }
.motion-picks .segmented :is(a, button) { height: var(--ctl); }
.motion-picks .segmented + .segmented::after {
  content: ""; position: absolute; left: -7px; top: 6px; bottom: 6px; width: 1px; background: var(--line-strong);
}
/* Each shape is drawn as itself: a frame of the video's proportions, and the
   dot's own outline. */
.motion-ratio { flex: none; width: 15px; aspect-ratio: 16 / 9; border: 1.5px solid currentColor; border-radius: 2px; }
[data-mf-shape="square"] .motion-ratio { width: 11px; aspect-ratio: 1; }
[data-mf-shape="tall"] .motion-ratio { width: 9px; aspect-ratio: 9 / 16; }
.motion-picks [data-mf-mark] { justify-content: center; width: 36px; padding: 0; }
.motion-mark { width: 12px; height: 12px; background: currentColor; }
[data-mf-mark="round"] .motion-mark { border-radius: 50%; }
[data-mf-mark="triangle"] .motion-mark { width: 14px; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
[data-mf-mark="diamond"] .motion-mark { width: 14px; height: 14px; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
/* Forced colours repaint a background with the page's, which would erase a
   shape drawn as one; it keeps its fill in the system's button text. */
@media (forced-colors: active) {
  .motion-mark { forced-color-adjust: none; background: ButtonText; }
}
@media (max-width: 40rem) {
  .motion-bar { display: grid; grid-template-columns: auto 1fr auto; justify-items: center; width: auto; }
  .motion-bar > :first-child { grid-area: 1 / 1; }
  .motion-bar > :last-child { grid-area: 1 / 3; }
  .motion-picks { display: contents; }
  .motion-picks > :first-child { grid-area: 1 / 2; }
  .motion-picks > :last-child { grid-area: 2 / 1 / auto / -1; margin-bottom: 4px; }
  .motion-picks .segmented + .segmented::after { content: none; }
}
/* Pause and download: round, and the size a thumb needs. */
.motion-round {
  position: relative; display: grid; place-items: center; flex: none; width: 44px; height: 44px;
  border: 1px solid var(--line-strong); border-radius: 50%;
  background: var(--raised); color: var(--ink); font-size: 18px;
  transition: background-color .2s, transform .3s var(--ease-out);
}
.motion-round:not(:disabled):hover { background: var(--raised-hover); }
.motion-round:not(:disabled):active { transform: scale(.94); }
.motion-round:focus-visible { outline: 2px solid rgba(var(--sky-rgb), .9); outline-offset: 2px; }
.motion-round-go { border-color: rgba(255, 255, 255, .1); background: var(--blue); color: #fff; }
.motion-round-go:not(:disabled):hover { background: var(--blue-hover); }
.motion-round-go:not(:disabled):active { background: var(--blue-press); }
/* One icon at a time, and the other turns into it: pause while it plays and
   play while it is paused, the arrow until a video is made and a tick once
   it is. A triangle's weight sits left of its box, so it is nudged to look
   centred. */
.motion-round svg { grid-area: 1 / 1; transition: opacity .2s, scale .35s var(--ease-out), rotate .35s var(--ease-out); }
[data-mf-toggle][data-playing] svg:last-child, [data-mf-toggle]:not([data-playing]) svg:first-child,
[data-mf-download]:not([data-state="done"]) svg:last-child, [data-mf-download][data-state="done"] svg:first-child {
  opacity: 0; scale: .4; rotate: -90deg;
}
[data-mf-toggle] svg:last-child { translate: 1px 0; }
/* The ring fills as the frames are encoded. */
.motion-round-go::before {
  content: ""; position: absolute; inset: 2px; border-radius: 50%;
  background: conic-gradient(#fff calc(var(--done, 0) * 1turn), rgba(255, 255, 255, .22) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  opacity: 0; transition: opacity .3s;
}
.motion-round-go[data-state="busy"]::before { opacity: 1; }
.motion-round-go[data-state="busy"] svg { scale: .8; }
[data-mf-download]:disabled { opacity: .5; box-shadow: none; cursor: default; }

/* Under the dock: what the video will be, then anything there is to say. */
.motion-notes { display: grid; justify-items: center; gap: 2px; text-align: center; animation: motion-arrive .7s var(--ease-out) .16s both; }
.motion-notes .motion-spec { margin: 12px 0 0; color: var(--faint); font: 400 var(--t-label)/1.5 var(--mono); font-variant-numeric: tabular-nums; }
.motion-notes .tool-status { max-width: 34rem; margin: 0; text-wrap: balance; }
.motion-notes .tool-status:not(:empty) { animation: motion-say .3s var(--ease-out); }
@keyframes motion-say {
  from { opacity: 0; transform: translateY(4px); }
}

/* The settings: one card, a row for each, its name on the left. A line parts
   what is written from how it moves, the dots and the file. Every switch is
   as wide as the row, so the rows end together. */
.motion-fields {
  display: block; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgb(var(--well-rgb));
  animation: motion-arrive .7s var(--ease-out) var(--lag, .22s) both;
}
.motion-group { display: grid; gap: 2px; padding: 10px 0; animation: motion-arrive .6s var(--ease-out) calc(var(--lag, .22s) + var(--turn, 0s)) both; }
.motion-group + .motion-group { border-top: 1px solid var(--line); }
.motion-group:nth-child(2) { --turn: .06s; }
.motion-group:nth-child(3) { --turn: .12s; }
.motion-group:nth-child(4) { --turn: .18s; }
/* Out of sight when the page opened: they wait for the reader, then arrive. */
.motion-fields[data-wait] { opacity: 0; animation: none; }
.motion-fields[data-wait] .motion-group { animation: none; }
.motion-fields[data-seen] { --lag: 0s; }
.motion-fields :is(label, div).motion-row {
  display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); align-items: center; gap: 6px 16px;
  padding: 6px 16px; color: var(--text-2); font: 500 var(--t-meta)/1.3 var(--sans);
}
.motion-fields .motion-hint { grid-column: 2; margin: 0; color: var(--faint); font: 400 var(--t-label)/1.4 var(--sans); }
.motion-row .segmented { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.motion-row .segmented :is(a, button) { justify-content: center; gap: 0; padding: 0 2px; white-space: pre; }
/* Seven dot sizes on a phone: the unit is said once, beside the name. */
.motion-unit-once { display: none; }
@media (max-width: 26rem) {
  .motion-unit { display: none; }
  .motion-unit-once { display: inline; }
}
/* One plate marks what is picked in a switch, and slides to the next pick.
   The script says where it sits; until it has, the picked button keeps the
   plate every switch on the site draws. */
.motion-tool .segmented { position: relative; isolation: isolate; }
.motion-tool .segmented[data-glide]::before {
  content: ""; position: absolute; z-index: -1; top: 0; left: 0; width: var(--w); height: var(--h);
  border-radius: var(--radius); background: var(--surface-hi);
  box-shadow: 0 1px 2px rgba(var(--shade-rgb), calc(.3 * var(--shade-k))), 0 0 0 1px var(--line-strong);
  transform: translate(var(--x), var(--y));
  transition: transform .4s var(--ease-out), width .4s var(--ease-out);
}
.motion-tool .segmented[data-glide] button[aria-pressed="true"] { background: none; box-shadow: none; }
/* The letter size: a thin track filled as far as the thumb, and the size it
   gave beside it. */
.motion-slide { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.motion-read { min-width: 3.2rem; color: var(--ink); font: 500 var(--t-meta)/1 var(--sans); font-variant-numeric: tabular-nums; text-align: right; }
.tool-fields .motion-size input {
  --at: calc(9px + var(--p, .5) * (100% - 18px));
  appearance: none; width: 100%; height: 24px; margin: 0; padding: 0; border: 0; background: none; cursor: pointer;
}
.motion-size input::-webkit-slider-runnable-track {
  height: 4px; border-radius: 2px;
  background: linear-gradient(to right, var(--blue) var(--at), var(--line-strong) var(--at));
}
.motion-size input::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line-strong); }
.motion-size input::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--blue); }
.motion-size input::-webkit-slider-thumb {
  appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 1px rgba(var(--shade-rgb), .16), 0 2px 6px rgba(var(--shade-rgb), .35);
  transition: box-shadow .2s, scale .3s var(--ease-out);
}
.motion-size input::-moz-range-thumb {
  width: 18px; height: 18px; border: 0; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 1px rgba(var(--shade-rgb), .16), 0 2px 6px rgba(var(--shade-rgb), .35);
  transition: box-shadow .2s, scale .3s var(--ease-out);
}
.motion-size input:hover::-webkit-slider-thumb { box-shadow: 0 0 0 1px rgba(var(--shade-rgb), .16), 0 2px 6px rgba(var(--shade-rgb), .35), 0 0 0 6px rgba(var(--sky-rgb), .18); }
.motion-size input:hover::-moz-range-thumb { box-shadow: 0 0 0 1px rgba(var(--shade-rgb), .16), 0 2px 6px rgba(var(--shade-rgb), .35), 0 0 0 6px rgba(var(--sky-rgb), .18); }
.motion-size input:active::-webkit-slider-thumb { scale: 1.12; box-shadow: 0 0 0 1px rgba(var(--shade-rgb), .16), 0 2px 6px rgba(var(--shade-rgb), .35), 0 0 0 8px rgba(var(--sky-rgb), .26); }
.motion-size input:active::-moz-range-thumb { scale: 1.12; box-shadow: 0 0 0 1px rgba(var(--shade-rgb), .16), 0 2px 6px rgba(var(--shade-rgb), .35), 0 0 0 8px rgba(var(--sky-rgb), .26); }
.motion-size input:focus-visible { outline: 2px solid rgba(var(--sky-rgb), .9); outline-offset: 2px; border-radius: var(--radius-sm); }
/* The two colors: a swatch that opens the picker, and the color it holds. */
.motion-colors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.motion-fields label.motion-color {
  display: flex; flex-direction: row; align-items: center; gap: 8px; height: calc(var(--ctl-sm) + 6px); padding: 0 10px 0 6px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--raised);
  color: var(--text-2); font: 500 var(--t-meta)/1 var(--sans); cursor: pointer;
  transition: background-color .2s, color .2s;
}
.motion-fields .motion-color:hover { background: var(--raised-hover); color: var(--ink); }
.tool-fields .motion-color input {
  flex: none; width: 22px; height: 22px; padding: 0; border: 0; border-radius: var(--radius-sm);
  background: none; box-shadow: 0 0 0 1px var(--line-strong); cursor: pointer;
}
/* The swatch's rim is a shadow, which is what the site's fields ring with
   when they are focused, so its focus is an outline of its own. */
.tool-fields .motion-color input:focus-visible { outline: 2px solid rgba(var(--sky-rgb), .9); outline-offset: 2px; }
.motion-color input::-webkit-color-swatch-wrapper { padding: 0; }
.motion-color input::-webkit-color-swatch { border: 0; border-radius: var(--radius-sm); }
.motion-color input::-moz-color-swatch { border: 0; border-radius: var(--radius-sm); }
.motion-hex { margin-left: auto; overflow: hidden; color: var(--faint); font: 400 var(--t-label)/1 var(--mono); text-overflow: ellipsis; }
/* A screen too narrow for a 500 pixel preview already shows the video about as
   small as a feed does. */
@media (max-width: 35.25rem) {
  .motion-fields div.motion-view { display: none; }
}
@media (max-width: 30rem) {
  .motion-fields :is(label, div).motion-row { grid-template-columns: minmax(0, 1fr); padding-inline: 12px; }
  .motion-fields .motion-hint { grid-column: 1; }
}
/* The narrowest phones: the proportions and the swatches say enough alone. */
@media (max-width: 23rem) {
  .motion-ratio, .motion-hex { display: none; }
}
/* A new shape or preview size moves the stage and what is under it, where it
   would have jumped. The names are there only while that happens, so a
   change of page stays the plain crossfade it is everywhere else. The menu
   is named too: it hangs over the page, and has to stay over the stage. */
[data-mf-morph] .motion-stage { view-transition-name: motion-stage; }
[data-mf-morph] .motion-bar { view-transition-name: motion-bar; }
[data-mf-morph] .motion-notes { view-transition-name: motion-notes; }
[data-mf-morph] .motion-fields { view-transition-name: motion-fields; }
[data-mf-morph] .motion-tool ~ .tool-next { view-transition-name: motion-next; }
[data-mf-morph] .motion-tool ~ .tool-prose { view-transition-name: motion-prose; }
[data-mf-morph] header.top { view-transition-name: motion-top; }
/* A press lands on the page, not on the picture of it being moved. */
[data-mf-morph]::view-transition { pointer-events: none; }
::view-transition-group(motion-stage), ::view-transition-group(motion-bar), ::view-transition-group(motion-notes),
::view-transition-group(motion-fields), ::view-transition-group(motion-next), ::view-transition-group(motion-prose) {
  animation-duration: .45s; animation-timing-function: cubic-bezier(.22, 1, .36, 1);
}
/* The old frame and the new are each cut to the box as it changes, not
   squeezed into it, and the box casts what the stage does. */
::view-transition-group(motion-stage) { border-radius: var(--radius-lg); box-shadow: var(--mf-cast); }
::view-transition-old(motion-stage), ::view-transition-new(motion-stage) {
  height: 100%; overflow: clip; border-radius: var(--radius-lg); object-fit: cover;
}
/* A file control the tools share: the whole box is the input, and a file
   held over the page lights it (file-drop.js). The input is see-through, so
   the box wears its focus ring. */
.file-drop {
  position: relative; display: grid; place-items: center; min-height: 112px; padding: 16px;
  border: 1px dashed var(--line-strong); border-radius: var(--radius-lg);
  background: rgb(var(--well-rgb)); color: var(--text-2);
  font: 400 var(--t-ui)/1.4 var(--sans); text-align: center; cursor: pointer;
  transition: border-color .2s var(--ease-out), color .2s var(--ease-out);
}
.file-drop:is(:hover, :focus-within), [data-dropping] .file-drop { border-color: rgba(var(--sky-rgb), .7); color: var(--ink); }
.file-drop:has(input:focus-visible) { outline: 2px solid rgba(var(--sky-rgb), .9); outline-offset: 2px; }
.file-drop input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; opacity: 0; cursor: pointer; }
.tool-fields .banner-zoom input { width: 100%; padding: 0; border: 0; background: none; accent-color: var(--blue); }
.tool-fields .banner-zoom input:disabled { opacity: .45; }
.tool-fields .banner-zoom input:focus-visible { outline: 2px solid rgba(var(--sky-rgb), .9); outline-offset: 2px; }
.banner-card { padding: 0; overflow: hidden; }
.banner-stage { padding-bottom: calc(var(--photo-below, 0) * 100% + 16px); }
.banner-frame {
  position: relative; aspect-ratio: var(--frame-shape, 4); background: var(--raised-hover);
}
.banner-frame:focus-visible { outline: 2px solid rgba(var(--sky-rgb), .9); outline-offset: -2px; }
.banner-card[data-loaded] .banner-frame { cursor: grab; touch-action: none; user-select: none; }
.banner-card[data-loaded] .banner-frame:active { cursor: grabbing; }
.banner-frame canvas { display: block; width: 100%; height: 100%; object-fit: cover; }
.read-page :where(main) .banner-size {
  position: absolute; inset: 0 0 0 calc(var(--clear-left, 0) * 100%); display: grid; place-items: center; margin: 0;
  color: var(--dim); font: 500 var(--t-ui)/1 var(--mono); font-variant-numeric: tabular-nums;
}
.banner-card[data-loaded] .banner-size { display: none; }
.banner-clear {
  position: absolute; display: none; align-items: flex-start; justify-content: flex-end;
  top: calc(var(--clear-trim, 0) * 100%); bottom: calc(var(--clear-trim, 0) * 100%);
  left: calc(var(--clear-left, 0) * 100%); right: 0;
  border: 1px dashed #fff; outline: 1px solid rgba(0, 0, 0, .4); outline-offset: -1px; pointer-events: none;
}
.banner-card[data-guide] .banner-clear { display: flex; }
.banner-clear span {
  padding: 2px 6px; background: rgba(var(--well-rgb), .78); color: var(--ink);
  font: 500 var(--t-micro)/1.3 var(--mono);
}
.banner-photo {
  position: absolute; aspect-ratio: 1; border: 3px solid rgb(var(--well-rgb)); border-radius: 50%;
  left: calc(var(--photo-left, 0) * 100%); top: calc(var(--photo-top, 0) * 100%); width: calc(var(--photo-size, 0) * 100%);
  background: linear-gradient(var(--raised-hover), var(--raised-hover)), rgb(var(--well-rgb)); pointer-events: none;
}
.banner-card[data-target="linkedin-company"] .banner-photo { border-radius: 15%; }

/* The shadowban test. A step stays readable while it waits for a username, so
   only its controls dim. */
html.no-js :is([data-shadowban], [data-shadow-results]) { display: none; }
.shadow-test textarea { min-height: 96px; }
.read-page main .shadow-steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: shadow-step; }
.read-page main .shadow-step {
  margin: 0; padding: 16px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgb(var(--well-rgb));
}
.read-page main .shadow-step h2 { margin: 0 0 6px; color: var(--ink); font-size: var(--t-ui); }
.read-page main .shadow-steps .shadow-step h2::before {
  counter-increment: shadow-step; content: counter(shadow-step) ".";
  margin-right: 8px; color: var(--dim); font-variant-numeric: tabular-nums;
}
.read-page :where(main) .shadow-step p { margin: 0; color: var(--text-2); font-size: var(--t-ui); line-height: 1.5; }
.shadow-act { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 12px; }
.shadow-act .segmented { display: flex; flex-wrap: wrap; }
.shadow-act .segmented button:disabled { cursor: default; }
.read-page :where(main) .shadow-open { font: 500 var(--t-meta)/1.3 var(--mono); }
.read-page :where(main) .shadow-open[aria-disabled="true"] { color: var(--faint); }
.shadow-step[data-off] .shadow-act .segmented { opacity: .45; }
.read-page :where(main) .shadow-own { margin: 20px 0 10px; }
.shadow-share { display: grid; justify-items: start; gap: 10px; }
.shadow-share .copy { position: relative; top: auto; right: auto; display: inline-flex; align-items: center; gap: 6px; }
.shadow-share .copy:disabled { opacity: .5; cursor: default; }
.read-page :where(main) .shadow-share .tool-note { margin: 0; }
.shadow-results {
  max-width: 42rem; margin-top: 32px; padding: 20px 22px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
}
.shadow-results[hidden], .shadow-results [hidden] { display: none; }
.read-page main .shadow-results h2 { margin: 1.4rem 0 .4rem; }
.read-page :where(main) .shadow-results .tool-label + .tool-note { margin: 8px 0 0; }
.read-page :where(main) .shadow-results p:last-child { margin-bottom: 0; }
.read-page :where(main) .shadow-results > p:last-child { margin-top: 1.2rem; }
.read-page :where(main) .shadow-report .shadow-how { margin: 10px 0 0; padding-left: 1.3rem; color: var(--text-2); font-size: var(--t-ui); line-height: 1.5; }
.read-page :where(main) .shadow-report .shadow-how li { margin: 0; }
.shadow-report .file-drop { min-height: 88px; margin-top: 14px; }
.read-page :where(main) .shadow-report .tool-status { margin: 10px 0 0; }
.read-page :where(main) .shadow-report .tool-status:empty { min-height: 0; margin: 0; }
/* X's report on the page. Its words sit under a quiet caption that says
   whose they are. */
[data-shadow-answers]:not([hidden]) + .uth-verdict:not([hidden]) { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.read-page :where(main) .uth-verdict > .tool-note { margin: 1.4rem 0 0; }
.read-page main .uth-labels { display: grid; gap: 12px; margin: 1rem 0 0; padding: 0; list-style: none; }
.read-page main .uth-label {
  display: grid; gap: 6px; margin: 0; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgb(var(--well-rgb));
}
.read-page :where(main) .uth-label p { margin: 0; color: var(--text-2); font-size: var(--t-ui); line-height: 1.5; }
.read-page :where(main) .uth-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; }
.read-page :where(main) .uth-head code { color: var(--ink); font-size: var(--t-ui); overflow-wrap: anywhere; }
.read-page :where(main) .uth-label .uth-amount { color: var(--ink); font-variant-numeric: tabular-nums; }
.uth-said { color: var(--text-3); }
.read-page :where(main) .uth-label p.uth-said { margin-top: 4px; color: var(--text-3); }
.read-page main .uth-posts {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 2px 16px;
  margin: 4px 0 0; padding: 0; list-style: none; font: 400 var(--t-meta)/1.5 var(--mono);
}
.read-page main .uth-posts li { margin: 0; }
.read-page :where(main) .uth-label .uth-more { font: 400 var(--t-meta)/1.5 var(--mono); }
@media (prefers-reduced-motion: no-preference) {
  .uth-verdict:not([hidden]) { animation: preview-fade .25s var(--ease-out); }
}

/* ---- press feedback and hit areas ------------------------------------------
   The copy button is smaller than a finger, so the box that takes the pointer
   is grown past the box that is painted, vertically only, and nothing moves. */

.copy::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 50%;
  height: 40px; transform: translateY(-50%);
}

/* The section links are the panel's tabs, so every width keeps them. They
   scroll sideways rather than push the header past the screen, and where one
   line cannot hold them beside the wordmark and a capped workspace switcher
   they take a line of their own. The end padding is as wide as the fade, so
   the last tab clears it once scrolled to. */
.panel-page .top-nav { min-width: 0; margin-left: auto; }
.panel-page .nav-links { min-width: 0; overflow-x: auto; scrollbar-width: none; }
.panel-page .nav-links::-webkit-scrollbar { display: none; }
.panel-page .nav-links a { flex: none; }
/* Inside the tab: the strip scrolls, so it clips anything drawn past it. */
.panel-page .nav-links a:focus-visible { outline-offset: -2px; }
@media (max-width: 1099.98px) {
  .panel-page header.top { flex-wrap: wrap; row-gap: 6px; padding-bottom: 7px; }
  .panel-page .top-nav { order: 3; flex: 1 0 100%; margin: 0 0 0 -11px; }
  .panel-page .nav-links {
    display: flex; flex: 1;
    margin-right: 0; padding-right: 28px; gap: 2px;
    mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  }
  .panel-page .nav-links a { height: var(--ctl); padding: 0 10px; }
  .panel-page main { padding-top: 8.4rem; }
  .panel-page section[id] { scroll-margin-top: 8rem; }
}
/* From 1100px the header is a rail down the left, opaque, and the page reads
   beside it at a width of its own rather than in the story's centred column.
   The rail scrolls by itself when a long list of workspaces outgrows it.
   --rail is that width. Folding it to icons changes the variable, and the
   rail and the page move together. */
@media (min-width: 1100px) {
  .panel-page { --rail: 232px; }
  html[data-rail="icons"] .panel-page { --rail: 72px; }
  .panel-page #page { padding-left: var(--rail); }
  .panel-page header.top {
    inset: 0 auto 0 0; width: var(--rail); min-width: 0;
    transform: none;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 12px;
    padding: 16px 12px;
    overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
    background: rgb(var(--well-rgb));
    -webkit-backdrop-filter: none; backdrop-filter: none;
    border: 0; border-right: 1px solid var(--line); border-radius: 0;
    box-shadow: none;
  }
  .panel-page header.top::before, .panel-page header.top::after { display: none; }
  .panel-page header.top.scrolled { background: rgb(var(--well-rgb)); border-color: var(--line); box-shadow: none; }
  .panel-page .wordmark { display: flex; align-items: center; flex: none; height: 32px; padding: 0 10px; }

  .panel-page :is(.top-org, .org-switch) { flex: none; margin-left: 0; }
  .top-org .org-chip, .org-switch > summary {
    height: 48px; max-width: none; padding: 0 10px;
    border: 1px solid var(--line-strong); border-radius: var(--radius);
    background: none; color: var(--ink);
    font: 400 var(--t-meta)/1.4 var(--sans);
  }
  .org-switch > summary { background: var(--raised); }
  .org-switch > summary .org-chip { flex: 1; }
  .org-initial {
    display: grid; place-items: center; flex: none;
    width: 28px; height: 28px; border-radius: var(--radius);
    background: var(--raised-hover); color: var(--text-1);
    font: 600 var(--t-meta)/1 var(--sans); text-transform: uppercase;
  }
  .org-name :is(.mono, .org-all) { color: var(--ink); font-size: var(--t-meta); }
  .org-initial.all svg { font-size: 16px; }
  .org-sub { display: block; color: var(--faint); font-size: var(--t-micro); }
  /* Opened by the panel module while the rail shows: the list is the
     switcher, so the button that opens it has nothing left to do. */
  .org-switch[open] > summary { display: none; }
  .org-list {
    position: static; min-width: 0; max-width: none; max-height: none; overflow: visible;
    padding: 0; border: 0; background: none; box-shadow: none;
  }
  .org-list-head {
    display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px;
    color: var(--faint); font: 600 var(--t-micro) var(--sans);
  }
  .org-list-head span { font-weight: 400; }
  .org-list a { align-items: center; min-height: var(--ctl-sm); padding: 4px 10px; }

  .panel-page .top-nav { display: block; flex: none; margin: 0; }
  .panel-page .nav-links { flex-direction: column; align-items: stretch; gap: 2px; margin: 0; overflow: visible; }
  .panel-page .top-nav a, .top-account {
    display: flex; align-items: center; gap: 10px;
    height: var(--ctl); padding: 0 10px; border-radius: var(--radius);
    color: var(--text-2); font: 500 var(--t-meta) var(--sans);
  }
  .panel-page .top-nav a:hover, .top-account:hover { color: var(--ink); background: var(--raised); }
  .panel-page .nav-links a[aria-current="page"], .top-account[aria-current="page"] { color: var(--ink); background: var(--raised-hover); }
  .panel-page .nav-links a[aria-current="page"] svg { color: var(--blue-soft); }
  .panel-page .top-nav svg, .top-account svg { display: block; }

  /* One row per control, icon in the same column as the sections. Folding
     the rail then only fades the words: nothing has to cross the rail. */
  .top-meta {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    margin: 0; padding-top: 10px; border-top: 1px solid var(--line);
  }
  .top-email {
    display: block; padding: 0 10px 4px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    color: var(--dim); font: var(--t-meta) var(--mono);
  }
  .panel-page .top-meta .ghost {
    display: grid; grid-template-columns: 16px minmax(0, 1fr); align-items: center; column-gap: 10px;
    width: 100%; height: var(--ctl); margin: 0; padding: 0 10px; border: 0; background: none;
    color: var(--text-2); font: 500 var(--t-meta) var(--sans);
  }
  .panel-page .top-meta .ghost:hover { color: var(--ink); background: var(--raised); }
  .panel-page .top-meta .ghost svg { display: block; width: 16px; height: 16px; }
  .panel-page .top-meta .ghost::before { inset: 0; }
  .panel-page .top-meta .theme-toggle {
    justify-items: stretch; align-items: center;
    width: auto; height: var(--ctl); padding: 0 10px; color: var(--text-2);
  }
  .panel-page .top-meta .theme-toggle:hover { color: var(--ink); background: var(--raised); }
  .panel-page .top-meta .theme-toggle > span {
    grid-template-columns: 16px minmax(0, 1fr); align-items: center; column-gap: 10px; width: 100%;
  }
  .panel-page .top-meta .theme-toggle svg { width: 16px; height: 16px; }
  .panel-page .top-meta .theme-label { display: block; }

  .panel-page main { padding: 28px clamp(1.5rem, 3vw, 2.5rem) 4rem; }
  /* The calendar's grid takes the room the rail leaves; the rest of the panel
     keeps a column that reads. From 1600px the feed is on the right and these
     caps come off, or the spare width sits as an empty band beside it. */
  .panel-shell { width: min(1600px, 100%); margin-inline: 0; }
  .panel-shell > :not(#calendar) { max-width: 1160px; }
  .panel-page section[id] { scroll-margin-top: 1.5rem; }
  .queue-wide { width: auto; margin-left: 0; translate: none; }

  /* Labels clip as the rail narrows, and fade before the width finishes, so
     a word never squashes. Icons keep the inset they have when the rail is
     open, which is what keeps them from sliding. */
  .panel-page .rail-label {
    min-width: 0; overflow: hidden; white-space: nowrap;
    transition: opacity .14s var(--ease-out);
  }
  .panel-page .wordmark { position: relative; overflow: hidden; min-width: 0; }
  .panel-page .wordmark-mark {
    position: absolute; left: 14px; top: 50%; width: 8px; height: 16px; margin-top: -8px;
    background: var(--blue); opacity: 0; pointer-events: none;
    transition: opacity .18s var(--ease-out);
  }
  .panel-page :is(.nav-links a, .top-account, .rail-toggle, .compose-button, .org-switch > summary, .top-org .org-chip, .top-meta .ghost, .top-meta .theme-toggle) { min-width: 0; overflow: hidden; }
  /* The ring sits inside the row: the row clips, and an outside ring would be cut off. */
  .panel-page :is(.wordmark, .compose-button, .rail-toggle, .top-account, .nav-links a, .org-switch > summary, .top-meta .ghost, .top-meta .theme-toggle):focus-visible { outline-offset: -2px; }
  /* The workspace letter stays put. The caret beside the name gives up its
     width as the rail narrows, or it would crowd the letter once folded. */
  .panel-page .org-switch > summary { transition: background-color .15s; }
  .panel-page .org-switch > summary > svg { width: 16px; height: 16px; overflow: hidden; }
  .panel-page .nav-links a { display: grid; grid-template-columns: 16px minmax(0, 1fr); align-items: center; column-gap: 10px; }
  .panel-page .top-account { display: grid; grid-template-columns: 16px minmax(0, 1fr); align-items: center; column-gap: 10px; }
  .panel-page .org-chip { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; column-gap: 10px; flex: 1; min-width: 0; }

  .panel-page .rail-toggle {
    display: flex; align-items: center; gap: 10px;
    height: var(--ctl); margin-top: auto; padding: 0 10px; border-radius: var(--radius);
    color: var(--text-2); text-align: left;
    transition: background-color .15s var(--ease-out), color .15s var(--ease-out), scale .15s var(--ease-out);
  }
  .panel-page .rail-toggle:hover { color: var(--ink); background: var(--raised); }
  .panel-page .rail-toggle:active { scale: 0.96; }
  .rail-toggle-icon { position: relative; flex: none; width: 16px; height: 16px; }
  .rail-toggle-icon span {
    display: grid; place-items: center; width: 16px; height: 16px;
    transition: opacity .3s cubic-bezier(0.2, 0, 0, 1), filter .3s cubic-bezier(0.2, 0, 0, 1), scale .3s cubic-bezier(0.2, 0, 0, 1);
  }
  .rail-toggle-icon svg { width: 16px; height: 16px; }
  .rail-to-icons { opacity: 1; scale: 1; filter: blur(0px); }
  .rail-to-full { position: absolute; inset: 0; opacity: 0; scale: 0.25; filter: blur(4px); }
  .rail-key {
    display: grid; place-items: center; flex: none; margin-left: auto;
    min-width: 18px; height: 18px; padding: 0 4px; border-radius: var(--radius-sm);
    background: var(--raised-hover); color: var(--faint); font: 500 var(--t-micro) var(--mono);
  }
  .rail-toggle-label { flex: 1; text-align: left; }

  @media (prefers-reduced-motion: no-preference) {
    .panel-page #page { transition: padding-left .28s var(--ease-out); }
    .panel-page header.top { transition: width .28s var(--ease-out), background .3s, border-color .3s, box-shadow .3s; }
    .panel-page .top-email { transition: opacity .14s var(--ease-out), max-height .28s var(--ease-out), padding .28s var(--ease-out); }
    .panel-page .org-switch > summary { transition: background-color .15s, gap .28s var(--ease-out); }
    .panel-page .org-switch > summary > svg { transition: opacity .14s var(--ease-out), width .28s var(--ease-out), rotate .2s var(--ease-out); }
    .panel-page :is(.compose-key, .rail-key) { transition: opacity .14s var(--ease-out); }
  }

  html[data-rail="icons"] .panel-page header.top { overflow: visible; }
  html[data-rail="icons"] .panel-page header.top > * { min-width: 0; }
  /* The section list scrolls on a short window. The rest of the rail stays
     put, and a menu that opens beside it is not inside this scroller. */
  html[data-rail="icons"] .panel-page .top-nav { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; }
  html[data-rail="icons"] .panel-page .rail-toggle { margin-top: 0; }
  html[data-rail="icons"] .panel-page .rail-label { opacity: 0; }
  html[data-rail="icons"] .panel-page .wordmark-mark { opacity: 1; animation: blink 1.2s steps(1) infinite .18s; }
  .panel-page .top-email { max-height: 3rem; }
  html[data-rail="icons"] .panel-page .top-email {
    max-height: 0; min-height: 0; margin: 0; padding: 0; overflow: hidden; opacity: 0;
  }
  html[data-rail="icons"] .panel-page .org-switch > summary { gap: 0; }
  html[data-rail="icons"] .org-switch > summary > svg { width: 0; min-width: 0; opacity: 0; }
  html[data-rail="icons"] .org-switch[open] > summary { display: flex; }
  html[data-rail="icons"] .panel-page .org-list {
    position: absolute; top: 0; left: calc(100% + 20px); right: auto; z-index: 30;
    min-width: 14rem; max-width: min(20rem, calc(100vw - 96px));
    max-height: min(24rem, 70vh); overflow-y: auto;
    padding: 4px; border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
    background: var(--overlay); box-shadow: var(--menu-shadow);
  }
  html[data-rail="icons"] .panel-page .compose-slot { display: block; position: relative; }
  html[data-rail="icons"] .panel-page .compose-key,
  html[data-rail="icons"] .panel-page .rail-key { opacity: 0; }
  html[data-rail="icons"] .panel-page .compose-picker {
    position: absolute; top: 0; left: calc(100% + 20px); right: auto; z-index: 30;
    width: min(280px, calc(100vw - 96px));
    padding: 6px; border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
    background: var(--overlay); box-shadow: var(--menu-shadow);
  }
  html[data-rail="icons"] .rail-to-icons { opacity: 0; scale: 0.25; filter: blur(4px); }
  html[data-rail="icons"] .rail-to-full { opacity: 1; scale: 1; filter: blur(0px); }
}

/* The folded rail's name, clear of the rail. It repeats the control's own
   name, so it is not announced. */
.rail-tip {
  position: fixed; z-index: 40; margin: 0;
  padding: 5px 8px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--overlay); box-shadow: var(--menu-shadow);
  color: var(--ink); font: 500 var(--t-meta)/1.3 var(--sans); white-space: nowrap;
  pointer-events: none;
  translate: -4px -50%; opacity: 0;
  transition: opacity .12s var(--ease-out), translate .12s var(--ease-out);
}
.rail-tip.on { translate: 0 -50%; opacity: 1; }
.rail-tip[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .panel-page .rail-label,
  .panel-page .top-email,
  .panel-page .rail-toggle,
  .rail-toggle-icon span,
  .rail-tip { transition: none; }
  .panel-page .wordmark-mark,
  html[data-rail="icons"] .panel-page .wordmark-mark { transition: none; animation: none; }
  .panel-page .rail-toggle:active { scale: none; }
}
/* From 1280px a post opens in a 400px pane on the right. The Desk and Posts
   give it that width, so nothing of theirs sits under it; the calendar's grid
   lies under its edge. The pane is off for now, as panel.js's paneWide
   says, and this rule with it. */
@media not all {
  .panel-page:has(.post-preview[open]:not(:modal)):not(:has(#calendar:not(.hidden))) main {
    padding-right: calc(400px + clamp(1.5rem, 3vw, 2.5rem));
  }
}
@media (max-width: 720px) {
  .org-switch > summary { max-width: 8rem; }
  .top-account, .org-switch > summary { border-radius: 7px; } /* 16 − 9px padding */
  /* Account by its icon alone, so the bar's first line holds it beside a
     long workspace name. */
  .top-account { padding: 0 8px; }
  .top-account svg { display: block; }
  .top-account-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  /* A row keeps its mark and "⋯" beside the name, and everything else drops
     under the name rather than squeezing it. */
  .item:has(> .mark), .list.columns > .item:has(> .account-mark) { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; column-gap: 12px; row-gap: 8px; }
  .item > .mark, .list.columns > .item > .account-mark { grid-row: 1 / span 3; }
  .item > .item-main { grid-column: 2; }
  .item > .more { grid-column: 3; grid-row: 1; }
  .item > :is(.badge, .action) { grid-column: 2; justify-self: start; }
  .list.columns > .item > :is(.cell, .item-facts) { grid-column: 2; justify-self: start; }
  .list.columns > .item:is(:has(> .mark), :has(> .account-mark)) > .item-facts { padding-left: 0; }
  .posts .item { display: flex; }
  .post-thumb { width: 48px; height: 48px; }
  /* The time drops under the account here, and a dot would end the line. */
  .post-dot { display: none; }
  .confirm { flex-wrap: wrap; }
  .confirm .item-main { flex-basis: calc(100% - 40px); }
  .panel-body .stack.card { padding: 16px; }
}
@media (max-width: 460px) {
  .top-org { display: none; }
  /* Room for the theme switch beside the wordmark on a phone, where the
     workspace and log out would otherwise drop to a row of their own. */
  .org-switch > summary { max-width: 5.25rem; }
  .top-org + .top-nav + .top-meta { margin-left: auto; }
  .top-meta { gap: 4px; }
  .top-meta .ghost { padding-inline: 8px; }
  .top-meta .theme-toggle { width: var(--ctl-sm); height: var(--ctl-sm); }
}
@media (prefers-reduced-motion: reduce) {
  .action, .icon-button, .preset, .customise > summary svg, .motion-round { transition: none; }
  /* Everything in the anti-AI font maker changes at once: whatever is added
     to it later is still under this. */
  .motion-tool *, .motion-tool *::before, .motion-tool *::after { animation: none !important; transition: none !important; }
  /* Each engine's own, in a rule of its own: a name one of them does not
     know would void the rule for all. */
  .motion-size input::-webkit-slider-thumb { transition: none; }
  .motion-size input::-moz-range-thumb { transition: none; }
  .post-preview[open], .post-preview[open]:not(:modal) { animation-name: preview-fade; }
}

/* ── Live feed ───────────────────────────────────────────────────────────
   From 1600px a column down the right mirrors the rail on the left: posts
   going out, each in its platform's own card, scaled like the preview scales
   one and blurred. It shows only with script, which fills it, and the page
   gives it its width from the first paint, so nothing sits under it and
   nothing moves when the script lands. */
.panel-page { --feed-w: clamp(320px, 20vw, 400px); }
.live-feed {
  --feed-pad: 20px;
  --feed-veil: 7px;
  position: fixed; inset: 0 0 0 auto; z-index: 20;
  display: none; flex-direction: column;
  width: var(--feed-w); box-sizing: border-box;
  border-left: 1px solid var(--line);
  background: rgb(var(--well-rgb));
  color: var(--text-1);
  font: 400 var(--t-meta)/1.45 var(--sans);
}
@media (min-width: 1600px) {
  html.js .live-feed { display: flex; }
  html.js .panel-page:has(.live-feed) #page { padding-right: var(--feed-w); }
  /* The middle is the one flexible column between the rail and the feed.
     #page already reserves both, and main's padding is the gutter, so the
     shell fills what is left. A max-width here would pin the sections to the
     left again and reopen the band. Folding the rail gives this column the
     width the rail gives up, because --rail is the page's own padding. */
  html.js .panel-page:has(.live-feed) .panel-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: auto;
    max-width: none;
  }
  html.js .panel-page:has(.live-feed) .panel-shell > :not(#calendar) {
    max-width: none;
    min-width: 0;
  }
  html.js .panel-page:has(.live-feed) .panel-shell > #calendar { min-width: 0; }
}

.feed-head { flex: none; display: grid; gap: 6px; padding: 24px var(--feed-pad) 18px; border-bottom: 1px solid var(--line); }
.feed-title { display: flex; align-items: center; gap: 10px; min-height: var(--ctl); }
.feed-title h2 { margin: 0; color: var(--ink); font: 600 var(--t-ui)/1.3 var(--sans); letter-spacing: 0; text-wrap: wrap; text-shadow: none; }
.feed-sub { margin: 0; color: var(--faint); line-height: 1.5; text-wrap: pretty; }
.feed-live { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.feed-live::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 1.5px solid var(--ok); opacity: 0; scale: .4;
}
.feed-live.ping::after { animation: feed-ping .9s var(--ease-out); }
@keyframes feed-ping { from { opacity: .9; scale: .4; } to { opacity: 0; scale: 1.6; } }

.feed-body {
  position: relative; flex: 1; min-height: 0; overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent 0, #000 14px, #000 calc(100% - 140px), transparent 100%);
}
.feed-list { margin: 0; padding: 16px var(--feed-pad) 0; list-style: none; }
.feed-item { overflow: hidden; }
.feed-item-in { display: grid; gap: 7px; padding-bottom: 16px; }
.feed-meta { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--faint); font: 400 var(--t-micro)/1 var(--sans); }
.feed-meta .mark.tiny { width: 12px; height: 12px; color: var(--text-2); }
.feed-meta .mark.tiny svg { font-size: 11px; }
.feed-meta b { color: var(--text-2); font-weight: 500; }
.feed-meta time { margin-left: auto; font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* The card at its platform's width, in a box of its scaled size. */
.feed-fit { position: relative; height: calc(var(--h, 0px) * var(--s, 1)); }
.feed-fit > .look-card { --look-scale: var(--s, 1); position: absolute; top: 0; left: 0; box-shadow: 0 1px 0 rgba(var(--shade-rgb), calc(.12 * var(--shade-k))); }
.feed-fit > .look-ma { font-family: InterVariable, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.feed-fit :is(.x-text, .li-text, .bs-text, .ma-text, .x-display, .x-handle, .li-name, .li-headline, .bs-display, .bs-handle, .ma-display, .ma-handle, .look-photo, .look-media) { filter: blur(var(--feed-veil)); }
/* The light that runs along a card's top edge as it arrives. */
.feed-fit::after {
  content: ""; position: absolute; z-index: 1; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--beam-rgb), 1) 50%, transparent) no-repeat -50% 0 / 50% 100%;
  opacity: 0; pointer-events: none;
}
.feed-fit.beam::after { animation: feed-sweep 1.1s var(--ease-out); }
@keyframes feed-sweep { 0% { opacity: 1; background-position: -60% 0; } 85% { opacity: 1; } 100% { opacity: 0; background-position: 160% 0; } }

.feed-foot { flex: none; display: flex; align-items: center; gap: 8px; padding: 12px var(--feed-pad); border-top: 1px solid var(--line); color: var(--faint); font-size: var(--t-micro); }
.feed-foot svg { flex: none; font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  .feed-live.ping::after, .feed-fit.beam::after { animation: none; }
}

/* ── New post ────────────────────────────────────────────────────────────
   The button that opens the composer: a plus in the bar, the panel's one
   blue button at the top of the rail, with its key beside it. At All
   workspaces it asks which workspace first. */
.compose-slot { display: contents; }
.rail-toggle { display: none; }
html.no-js .rail-toggle { display: none; }
.top-meta .ghost svg { display: none; }
.compose-button {
  display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 8px;
  width: var(--ctl); height: var(--ctl); padding: 0; border: 0; border-radius: var(--radius);
  background: var(--blue); color: #fff; font: 500 var(--t-meta) var(--sans); cursor: pointer;
  transition: background-color .15s var(--ease-out);
}
.compose-button:hover { background: var(--blue-hover); }
.compose-button:active { background: var(--blue-press); }
.compose-button[aria-expanded="true"] { background: var(--blue-press); }
.compose-button svg { width: 16px; height: 16px; fill: currentColor; }
.compose-label, .compose-key { display: none; }
.compose-key {
  place-items: center; min-width: 18px; height: 18px; padding: 0 4px; box-sizing: border-box;
  border-radius: var(--radius-sm); background: rgba(255, 255, 255, .18); font: 500 var(--t-micro) var(--mono);
}
.compose-picker {
  position: absolute; top: calc(100% + 6px); right: 8px; z-index: 30; width: min(320px, calc(100vw - 32px));
  padding: 6px; border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: var(--overlay); box-shadow: var(--menu-shadow);
}
.compose-picker[hidden] { display: none; }
.compose-picker-head { margin: 2px 6px 6px; color: var(--ink); font: 600 var(--t-meta) var(--sans); }
.compose-picker ul { margin: 0; padding: 0; list-style: none; }
.compose-picker button {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 4px 8px;
  border: 0; border-radius: var(--radius-sm); background: none; color: var(--ink); text-align: left; cursor: pointer;
}
.compose-picker button:hover:not(:disabled), .compose-picker button:focus-visible { background: var(--raised-hover); }
.compose-picker button:disabled { color: var(--text-3); cursor: not-allowed; }
.compose-picker .org-initial { display: grid; }
.compose-picker-why { margin-left: auto; color: var(--faint); font-size: var(--t-label); }
@media (min-width: 1100px) {
  .panel-page .compose-button { width: 100%; height: 36px; justify-content: flex-start; padding: 0 8px 0 10px; }
  .panel-page .compose-button svg { flex: none; }
  .panel-page .compose-label { display: block; flex: 1; text-align: left; }
  .panel-page .compose-key { display: grid; }
  /* The rail lists the workspaces open, so it lists these the same way. */
  .panel-page .compose-picker { position: static; width: auto; padding: 4px 0; border: 0; background: none; box-shadow: none; }
}
/* Where a day or an account offers it, the plus waits out of sight until the
   pointer or the focus comes to it. */
.calendar-add {
  display: grid; place-items: center; width: 24px; height: 24px; margin-top: 4px; padding: 0;
  border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); background: none; color: var(--text-2);
  opacity: 0; cursor: pointer; transition: opacity .15s var(--ease-out), background-color .15s var(--ease-out);
}
.calendar-add svg { width: 14px; height: 14px; fill: currentColor; }
td:hover > .calendar-add, .calendar-add:focus-visible { opacity: 1; }
.calendar-add:hover { background: var(--raised-hover); color: var(--ink); }
@media (hover: none) { .calendar-add { opacity: .6; } }
@media (max-width: 720px) { .compose-row-label { display: none; } }

/* ── the composer ────────────────────────────────────────────────────────
   On a wide screen the text and its cards side by side, the time under
   them; on a phone the whole screen, a step at a time. */
.composer {
  width: min(1100px, calc(100vw - 32px)); max-width: none; height: min(780px, calc(100dvh - 32px)); max-height: none;
  margin: auto; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: var(--overlay); color: var(--text-2);
  box-shadow: 0 24px 60px rgba(var(--shade-rgb), calc(.6 * var(--shade-k)));
}
.composer[open] { display: flex; flex-direction: column; animation: preview-in .25s var(--ease-out); }
.composer::backdrop { background: rgba(var(--ground-rgb), .72); }
.composer[open]::backdrop { animation: preview-fade .25s var(--ease-out); }
.composer-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 20px; border-bottom: 1px solid var(--line); }
.composer-head h2 { margin: 0; color: var(--ink); font: 600 var(--t-ui) var(--sans); }
.composer-where { color: var(--text-3); font-size: var(--t-meta); }
.composer-where .mono { color: var(--text-1); }
.composer-saved { margin-left: auto; color: var(--text-3); font-size: var(--t-label); }
.composer-steps { display: none; }
.composer-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px 20px; }
.composer-empty p { margin: 0; color: var(--text-1); }
.composer-body { display: grid; flex: 1; grid-template-columns: minmax(0, 470px) minmax(0, 1fr); min-height: 0; }
.composer-write { display: flex; flex-direction: column; gap: 12px; min-height: 0; padding: 16px 20px; overflow-y: auto; }
.composer-look { min-height: 0; padding: 16px 22px; overflow-y: auto; border-left: 1px solid var(--line); background: rgba(var(--ground-rgb), .5); }
.composer-look-head { margin: 0 0 10px; color: var(--text-3); font: 600 var(--t-label) var(--sans); }
.composer-look-empty { margin: 32px 0 0; color: var(--text-3); font-size: var(--t-meta); text-align: center; }

.composer-to { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.composer-to-label { margin-right: 4px; color: var(--text-3); font: 600 var(--t-label) var(--sans); }
.composer-accounts { display: flex; flex-wrap: wrap; gap: 6px; }
.composer-account {
  position: relative; display: inline-flex; flex-direction: row; align-items: center; gap: 8px; height: var(--ctl); padding: 0 10px 0 5px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--text-2);
  font: 400 var(--t-label) var(--sans); cursor: pointer; transition: background-color .15s var(--ease-out), border-color .15s var(--ease-out), color .15s var(--ease-out);
}
.composer-account input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: inherit; }
.composer-account:hover:not(.off) { background: var(--raised); }
.composer-account:has(input:checked) { border-color: rgba(var(--sky-rgb), .6); background: rgba(var(--sky-rgb), .14); color: var(--ink); }
.composer-account:has(input:focus-visible) { outline: 2px solid var(--blue-soft); outline-offset: 2px; }
.composer-account .account-mark { width: 22px; height: 22px; font-size: 9px; }
.composer-account .account-platform { right: -5px; bottom: -5px; width: 13px; height: 13px; }
.composer-account .account-platform svg { width: 9px; height: 9px; }
.composer-account-label { font-family: var(--mono); }
.composer-account.off { opacity: .55; cursor: not-allowed; }
.composer-account-why { color: var(--faint); font-size: var(--t-micro); }

.composer-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); }
.composer-tabs[hidden] { display: none; }
.composer-tabs button {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; margin-bottom: -1px;
  border: 0; border-bottom: 2px solid transparent; background: none; color: var(--text-3);
  font: 500 var(--t-meta) var(--sans); cursor: pointer; transition: color .15s var(--ease-out), border-color .2s var(--ease-out);
}
.composer-tabs button:hover { color: var(--ink); }
.composer-tabs [aria-pressed="true"] { border-bottom-color: var(--blue); color: var(--ink); }
.composer-own {
  padding: 0 5px; border-radius: var(--radius-sm); background: rgba(var(--sky-rgb), .18);
  color: var(--on-tint); font-size: 10px; font-weight: 600; line-height: 16px;
}
.composer-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: -4px 0 0; color: var(--text-3); font-size: var(--t-label); }
.composer-hint[hidden] { display: none; }
.composer-from { margin: 0; color: var(--text-2); font-size: var(--t-ui); }
/* What the post carries on a platform that asks for more than words and
   files: who may see it, what others may do with it. Drawn by the server from
   that platform's own rules, in the panel's own controls. */
.composer-settings { display: flex; flex-direction: column; gap: 10px; }
.composer-settings[hidden] { display: none; }
.composer-set { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); }
.composer-set-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.composer-set-name { color: var(--ink); font: 600 var(--t-meta) var(--sans); }
.composer-set-as { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-left: auto; color: var(--text-3); font-size: var(--t-label); }
.composer-set-rows { display: flex; flex-direction: column; gap: 10px; }
.composer-set-pick, .composer-set-switch { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; cursor: pointer; }
.composer-set-pick select { flex: none; width: auto; min-width: 160px; }
.composer-set-tick { flex-direction: row; align-items: flex-start; gap: 8px; cursor: pointer; }
.composer-set-tick input { margin-top: 1px; }
.composer-set-tick.off { cursor: not-allowed; }
.composer-set-label { display: flex; flex: 1 1 0; flex-direction: column; gap: 2px; min-width: 0; color: var(--text-2); font: 400 var(--t-meta) var(--sans); }
.composer-set-label small { color: var(--faint); font-size: var(--t-label); }
.composer-set-pick .composer-set-label { flex-basis: 150px; }
.composer-set-sub { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; padding-left: 12px; border-left: 1px solid var(--line); }
.composer-set-note { margin: 0; color: var(--text-3); font-size: var(--t-label); }
.composer-set-note.bad { color: var(--danger); }
.composer-set-note.consent { color: var(--text-2); }
.composer-consent { margin: 0 20px 8px; color: var(--text-2); font-size: var(--t-label); text-align: right; }
.composer-consent[hidden] { display: none; }
.composer-reset { position: relative; padding: 0; border: 0; background: none; color: var(--blue-soft); font: inherit; cursor: pointer; }
/* A link-sized button, pressed as easily as the tabs above it. */
.composer-reset::after { content: ""; position: absolute; inset: -6px -4px; }

.composer-field { border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--field); transition: border-color .15s var(--ease-out), box-shadow .15s var(--ease-out); }
.composer-field:focus-within, .composer-reply:focus-within { border-color: rgba(var(--sky-rgb), .6); box-shadow: 0 0 0 3px rgba(var(--sky-rgb), .18); }
.composer-field textarea, .composer-reply textarea {
  display: block; box-sizing: border-box; width: 100%; padding: 14px; border: 0; outline: 0; resize: vertical;
  background: transparent; color: var(--ink); font: var(--t-body)/1.5 var(--sans);
}
.composer-field textarea { min-height: 150px; }
.composer-reply textarea { min-height: 72px; padding-top: 4px; font-size: max(var(--field-min, 15px), 15px); }
.composer-tools { display: flex; align-items: center; gap: 4px; padding: 4px 8px; border-top: 1px solid var(--line); }
/* Four pixels from the field's corner: its radius less that. */
.composer-tools .action { border-radius: var(--radius-sm); }
.composer-image { position: relative; flex-direction: row; overflow: hidden; transition: scale .15s var(--ease-out), background-color .15s, color .15s; }
.composer-image:active { scale: .96; }
.composer-image input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.composer-image:has(input:focus-visible) { outline: 2px solid var(--blue-soft); outline-offset: 2px; }
.composer-image svg { width: 16px; height: 16px; fill: currentColor; }
.composer-counts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 12px; margin-left: auto; color: var(--text-3); font-size: var(--t-label); font-variant-numeric: tabular-nums; }
.composer-counts .bad { color: var(--danger); }
.composer-tiles { display: flex; flex-direction: column; gap: 10px; margin: 0 12px 10px; padding: 0; list-style: none; }
.composer-tiles[hidden] { display: none; }
.composer-tile { position: relative; display: flex; align-items: flex-start; gap: 10px; color: var(--text-2); font-size: var(--t-label); }
.composer-tile-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
/* With a picture, the name stays at its top and the description at its
   bottom, so the upload line sits on that shared edge. */
.composer-tile:has(.composer-preview:not([hidden])) .composer-tile-main {
  min-height: 72px; justify-content: space-between;
}
.composer-tile-row { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 28px; }
/* The description sits in the row with the picture: a quiet badge, then the
   words, the count only once they are long. The row carries the focus, so
   the input inside it does not draw a second ring. */
.composer-alt {
  position: relative; display: flex; flex-direction: row; align-items: center; gap: 8px;
  width: 100%; min-width: 0; min-height: var(--ctl); margin: 0; padding: 0 8px 0 6px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  cursor: text;
  transition: border-color .15s var(--ease-out), box-shadow .15s var(--ease-out);
}
.composer-alt:focus-within { border-color: rgba(var(--sky-rgb), .6); box-shadow: 0 0 0 3px rgba(var(--sky-rgb), .18); }
.composer-alt-name {
  flex: none; padding: 0 5px; border-radius: var(--radius-sm); background: var(--raised);
  color: var(--text-3); font: 600 10px/16px var(--sans); letter-spacing: .06em; text-transform: uppercase;
  transition: background-color .15s var(--ease-out), color .15s var(--ease-out);
}
.composer-alt:has(input:not(:placeholder-shown)) .composer-alt-name { background: rgba(var(--sky-rgb), .18); color: var(--on-tint); }
.composer-alt input {
  flex: 1; width: auto; min-width: 0; height: auto; padding: 0 2.8em 0 0;
  border: 0; border-radius: 0; background: transparent; box-shadow: none;
}
.composer-alt input:focus { border-color: transparent; box-shadow: none; outline: 2px solid transparent; }
.composer-alt-count {
  position: absolute; right: 8px; top: 50%; translate: 0 -50%; opacity: 0;
  color: var(--text-3); font: 500 var(--t-micro) var(--sans); font-variant-numeric: tabular-nums;
  pointer-events: none; transition: opacity .15s var(--ease-out);
}
.composer-alt-count.on { opacity: 1; }
.composer-alt-count.bad { color: var(--danger); }
.composer-tile.fresh .composer-alt { animation: composer-alt-in .42s var(--ease-out) .1s both; }
@keyframes composer-alt-in { from { opacity: 0; translate: 0 8px; filter: blur(4px); } }
.composer-preview {
  flex: none; width: 72px; height: 72px; overflow: hidden;
  border-radius: var(--radius-sm); background: var(--raised);
  outline: 1px solid var(--image-edge); outline-offset: -1px;
}
.composer-preview[hidden] { display: none; }
.composer-preview :is(img, video) { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }
.composer-tile-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.composer-tile-row .action { flex: none; }
.composer-alt:has(input:read-only) {
  border-color: transparent; background: transparent; padding-left: 0; cursor: default;
}
.composer-alt:has(input:read-only):not(:focus-within) { box-shadow: none; }
.composer-alt input:read-only {
  padding-right: 0; border-color: transparent; background: transparent; box-shadow: none; color: var(--text-2); cursor: default;
}
.composer-tile-bar {
  position: absolute; left: 0; right: 0; bottom: 0; width: auto; height: 3px;
  overflow: hidden; border-radius: 2px; background: var(--track); pointer-events: none;
  opacity: 1; transition: opacity .28s var(--ease-out);
}
/* It turns green, then leaves. Absolute, so the description does not jump. */
.composer-tile.arrived .composer-tile-bar { opacity: 0; transition-delay: .18s; }
.composer-tile-bar span {
  display: block; height: 100%; background: var(--blue);
  transform: scaleX(0); transform-origin: left; transition: transform .2s linear;
}
.composer-tile.arrived .composer-tile-bar span { background: var(--ok); }
/* The post quoted: its link under the text, and where a quote of it goes. */
.composer-quote { margin: 0 12px 10px; }
.composer-quote[hidden] { display: none; }
.composer-quote-field { display: flex; align-items: center; gap: 6px; }
.composer-quote-field input {
  flex: 1; min-width: 0; height: var(--ctl); padding: 0 10px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface);
  color: var(--ink); font: max(var(--field-min, 13px), 13px) var(--mono);
}
.composer-quote-field input:focus-visible { outline: 2px solid var(--blue-soft); outline-offset: 1px; }
.composer-quote-said { margin: 6px 0 0; color: var(--text-3); font-size: var(--t-label); }
.composer-quote-said:empty { display: none; }
.composer-quote-said.bad { color: var(--danger); }
.composer-tools [data-quote-add] svg { width: 16px; height: 16px; fill: currentColor; }
.composer-tools [data-quote-add][hidden] { display: none; }

.composer-replies { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.composer-replies[hidden] { display: none; }
.composer-reply { border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--field); }
/* Only what the person adds arrives with motion; what the composer opens
   with is simply there. */
.composer-reply.fresh, .composer-tile.fresh { animation: composer-pop .25s var(--ease-out); }
.composer-reply-head { display: flex; align-items: center; gap: 8px; padding: 4px 4px 0 14px; color: var(--text-3); font-size: var(--t-label); }
.composer-reply-head .action { margin-left: auto; }
.composer-reply > .composer-counts { padding: 0 14px 8px; }
.composer-reply-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.composer-reply-row [data-add-reply] { border-style: dashed; }
.composer-reply-row [data-add-reply][hidden] { display: none; }
.composer-reply-note { color: var(--text-3); font-size: var(--t-label); }

.composer-when { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 20px; border-top: 1px solid var(--line); }
.composer-when .when-fields { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.composer-check { flex-basis: 100%; animation: composer-rise .3s var(--ease-out); }
.composer-check[hidden] { display: none; }
.composer-alert { margin: 0 20px 8px; }
.composer-alert[hidden] { display: none; }
.composer-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 10px 20px; border-top: 1px solid var(--line); }
.composer-foot [data-back] { margin-right: auto; }
.composer-foot [hidden] { display: none; }
@keyframes composer-pop { from { opacity: 0; scale: .94; } }
@keyframes composer-rise { from { opacity: 0; translate: 0 10px; } }
@keyframes composer-sheet { from { translate: 0 100%; } }
@keyframes composer-step { from { opacity: 0; translate: 16px 0; } }

/* Too narrow for the cards beside the text: they go under it. */
@media (min-width: 721px) and (max-width: 900px) {
  /* Rows as tall as what they hold, so the body scrolls rather than lay the
     cards over the text. */
  .composer-body { grid-template-columns: minmax(0, 1fr); grid-auto-rows: max-content; overflow-y: auto; }
  .composer-write, .composer-look { overflow: visible; }
  .composer-look { border-top: 1px solid var(--line); border-left: 0; }
}
@media (max-width: 720px) {
  .composer {
    width: 100vw; height: calc(100dvh - 12px); margin: 12px 0 0; border-bottom: 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .composer[open] { animation: composer-sheet .4s var(--ease-out); }
  .composer-head { padding-left: 16px; }
  .composer-where { display: none; }
  .composer-steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0 12px; border-bottom: 1px solid var(--line); }
  .composer-steps button {
    display: flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0;
    border: 0; border-bottom: 2px solid transparent; background: none; color: var(--text-3); font: 500 var(--t-meta) var(--sans);
  }
  .composer-steps [aria-current="step"] { border-bottom-color: var(--blue); color: var(--ink); }
  .composer-step-n { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; background: var(--raised-hover); font-size: var(--t-micro); }
  .composer-steps [aria-current="step"] .composer-step-n { background: var(--blue); color: #fff; }
  .composer-body { display: block; overflow-y: auto; }
  .composer [data-pane] { display: none; }
  .composer[data-step="write"] [data-pane="write"],
  .composer[data-step="look"] [data-pane="look"],
  .composer[data-step="when"] [data-pane="when"] { display: flex; animation: composer-step .3s var(--ease-out); }
  .composer[data-step="look"] [data-pane="look"] { display: block; }
  .composer-write, .composer-look { padding: 14px 16px; overflow: visible; }
  .composer-look { border-left: 0; background: none; }
  .composer-when { flex: 1; flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: flex-start; padding: 14px 16px; border-top: 0; overflow-y: auto; }
  .composer-check { flex: none; }
  .composer[data-step="when"] .composer-body { display: none; }
  .composer-foot { padding: 10px 16px max(16px, env(safe-area-inset-bottom)); }
  /* "Schedule for Tue 24 Nov, 09:00" wraps rather than push Back off. */
  .composer-foot [data-next] { flex: 1; min-width: 0; height: auto; min-height: 44px; padding-block: 6px; white-space: normal; line-height: 1.2; text-align: center; }
  /* A thumb's reach: the chips, the tabs, the steps and the description field. */
  .composer-account, .composer-tabs button { height: 44px; }
  .composer-alt:not(:has(input:read-only)) { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .composer[open], .composer[open]::backdrop, .composer-check, .composer-tile.fresh, .composer-reply.fresh,
  .composer-tile.fresh .composer-alt, .composer[data-step] [data-pane],
  .lp-composer-text.typing::after { animation: none; }
  .composer-tile-bar, .composer-tile-bar span, .composer-alt, .composer-alt-name, .composer-alt-count, .composer-image { transition: none; }
  .compose-button, .calendar-add, .composer-account, .composer-tabs button { transition: none; }
}

/* ── consent ─────────────────────────────────────────────────────────────
   The authorize screen. Wider than the login card because it is a decision,
   not a form: what is granted has to be readable in one pass, without
   scrolling past the buttons that act on it. */
.consent-card { max-width: 34rem; }

.consent-form { display: grid; gap: 1.35rem; margin-top: 1.5rem; }

.consent-group {
  margin: 0; padding: .9rem 1rem 1rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: var(--raised);
}
.consent-group legend { padding: 0 .35rem; }

.consent-row {
  /* A label is a stacked field elsewhere (caption above input); here the
     control sits beside what it names, so the direction is set back. */
  display: flex; flex-direction: row; align-items: center; gap: .7rem;
  padding: .42rem 0;
  color: var(--ink); font-size: var(--t-ui); font-weight: 400;
  line-height: 1.45;
  cursor: pointer;
}
.consent-row small { color: var(--dim); font: 400 var(--t-meta) var(--mono); }
.consent-row input { flex: none; margin: 0; }
/* On a scope row the key sits under its sentence rather than trailing it, so
   a long description and a short one break the same way. */
.consent-row.scope small { display: block; margin-top: .1rem; }
/* The documents a box accepts, or sits beside, have to read as links: a tick
   is only worth recording if the text it agrees to was plainly offered. */
.consent-row a, .auth-form-note a {
  color: var(--blue-soft); text-decoration: underline; text-underline-offset: .18em;
}
.consent-hint {
  margin: 0 0 .6rem;
  color: var(--dim); font-size: var(--t-meta); line-height: 1.55;
}

.consent-actions { display: flex; align-items: center; gap: 1.1rem; }

/* Deny is a real outcome, not a way out of a mistake: it redirects the client
   with access_denied. Quiet, but never hidden behind a link. */
.auth-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  height: var(--ctl-lg); padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--raised); color: var(--ink);
  font: 500 var(--t-ui)/1 var(--sans);
  cursor: pointer;
  transition: background-color .15s;
}
.auth-secondary:hover { background: var(--raised-hover); }

/* ---- analytics cookie choice ---------------------------------------------- */

/* Pinned over every page, outside #page so it survives client-side moves.
   Both answers wear the same button: saying no has to be as easy to find as
   saying yes. */
.cookie-choice {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 30;
  max-width: 30rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: var(--surface);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--text-2);
  font: var(--t-meta)/1.5 var(--sans);
}
.cookie-choice[hidden] { display: none; }
.cookie-choice p { flex: 1 1 16rem; margin: 0; }
.cookie-choice a { color: var(--blue-soft); text-decoration: underline; text-underline-offset: .18em; }
.cookie-choice-actions { display: flex; gap: 8px; }
.cookie-choice .btn { height: var(--ctl); padding: 0 14px; font-size: var(--t-meta); }

.listed-on a { display: inline-block; line-height: 0; }
.bf-listed { margin-top: 18px; }
.bf-listed-track { display: flex; }
.bf-listed-set { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0; }
.bf-listed img { width: auto; height: 40px; }
/* A running line only once badge-rail.js has measured the set: without
   script, and for a reader who asked for less motion, the badges wrap. */
.bf-listed.is-live {
  /* Room for a badge's focus ring, which the clip would cut. */
  margin-block: 12px -6px; padding-block: 6px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.bf-listed.is-live .bf-listed-track { width: max-content; animation: bf-listed-run var(--bf-listed-lap, 40s) linear infinite; }
/* The gap after the last badge rides with the set, so one lap ends exactly
   where the copy begins. */
.bf-listed.is-live .bf-listed-set { flex: none; flex-wrap: nowrap; padding-right: 14px; }
/* A badge the keyboard reaches stops clear of the faded edges. */
.bf-listed.is-live a { scroll-margin-inline: 32px; }
.bf-listed.is-live:hover .bf-listed-track, .bf-listed.is-live:focus-within .bf-listed-track { animation-play-state: paused; }
@keyframes bf-listed-run { to { translate: -50% 0; } }
.listed-on img { display: block; margin: 0; border-radius: 0; outline: 0; }
.listed-on .on-light, :root[data-theme="light"] .listed-on .on-dark { display: none; }
:root[data-theme="light"] .listed-on .on-light { display: block; }

/* ---- following the X changelog ---------------------------------------------
   One button on the changelog opens a sheet with a tab for each way to get
   every change. A dialog in the middle of the window; from 640px down, a
   sheet that slides up from the bottom and is dragged down to close. Each
   tab replays a change arriving where it goes. */

.read-page :where(main) .follow-cta { margin: 1rem 0 0; }
.follow-open {
  display: inline-flex; align-items: center; gap: 8px; height: var(--ctl-lg); padding: 0 16px;
  border-radius: var(--radius); background: var(--blue); color: #fff;
  font: 500 var(--t-ui)/1 var(--sans); text-decoration: none;
  box-shadow: 0 8px 24px -10px rgba(28, 92, 255, .6);
  transition: background-color .15s, box-shadow .2s, scale .15s;
}
.read-page :where(main) a.follow-open { color: #fff; text-decoration: none; }
.follow-open:hover { background: var(--blue-hover); box-shadow: 0 10px 28px -10px rgba(28, 92, 255, .75); }
.follow-open:active { background: var(--blue-press); scale: .98; }
.follow-open svg { width: 16px; height: 16px; fill: currentColor; transform-origin: 50% 12%; }
.read-page :where(main) .xr-side .xr-all { display: flex; justify-content: space-between; gap: 12px; }
.xr-follow { display: inline-flex; align-items: center; gap: 5px; }
.xr-follow svg { width: 13px; height: 13px; fill: currentColor; transform-origin: 50% 12%; }
@media (prefers-reduced-motion: no-preference) {
  /* The bell rings once when the page opens, and again under the pointer. */
  .follow-cta:first-of-type .follow-open svg { animation: bell-ring .9s 1.4s var(--ease-out) both; }
  .follow-open:hover svg, .xr-follow:hover svg { animation: bell-ring .9s var(--ease-out); }
}
@keyframes bell-ring {
  0%, 100% { rotate: 0deg; } 12% { rotate: 16deg; } 26% { rotate: -14deg; }
  40% { rotate: 10deg; } 54% { rotate: -6deg; } 68% { rotate: 3deg; } 82% { rotate: -1deg; }
}

.follow {
  width: min(600px, calc(100vw - 32px)); max-width: none; max-height: min(88vh, 860px);
  margin: auto; padding: 0; overflow: hidden;
  border: 1px solid var(--line-strong); border-radius: 14px;
  background: var(--overlay); color: var(--ink);
  box-shadow: 0 40px 90px -20px rgba(var(--shade-rgb), calc(.55 * var(--shade-k))), 0 0 0 1px rgba(28, 92, 255, .04);
}
.follow[open] { display: flex; }
.follow::backdrop { background: rgba(var(--ground-rgb), .55); backdrop-filter: blur(8px) saturate(1.2); }
html:has(.follow:modal) { overflow: hidden; scrollbar-gutter: stable; }
.follow-body {
  display: flex; flex-direction: column; gap: 18px; width: 100%; min-height: 0;
  padding: 24px 24px 26px; overflow: auto; overscroll-behavior: contain;
}
.follow-grip { display: none; }
.follow-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.follow-head h2 { margin: 0; font: 500 26px/1.2 var(--serif, "Plex Serif", Georgia, serif); color: var(--ink); }
.follow-head p { margin: 6px 0 0; color: var(--dim); font-size: var(--t-ui); line-height: 1.5; }
.follow-close {
  display: grid; place-items: center; flex: none; width: var(--ctl); height: var(--ctl);
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: transparent; color: var(--dim); cursor: pointer;
  transition: background-color .15s, color .15s, rotate .3s var(--ease-out);
}
.follow-close:hover { background: var(--raised-hover); color: var(--ink); rotate: 90deg; }
.follow-close svg { width: 16px; height: 16px; fill: currentColor; }

/* The tabs, with the mark under the picked one sliding to the next. */
.follow-tabs {
  position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; padding: 3px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--raised);
}
.follow-tab-mark {
  position: absolute; top: 3px; bottom: 3px; left: 0; width: var(--w, 0); translate: var(--x, 0) 0;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface);
  box-shadow: 0 1px 3px rgba(var(--shade-rgb), calc(.18 * var(--shade-k)));
}
.follow-tabs [role="tab"] {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-width: 0; height: 38px; padding: 0 8px; border: 0; border-radius: var(--radius);
  background: none; color: var(--dim); font: 500 var(--t-ui)/1 var(--sans); white-space: nowrap; cursor: pointer;
  transition: color .2s;
}
.follow-tabs [role="tab"]:hover, .follow-tabs [aria-selected="true"] { color: var(--ink); }
.follow-tabs [role="tab"] svg { flex: none; width: 15px; height: 15px; fill: currentColor; }
.follow-tabs [role="tab"]:focus-visible { outline: 2px solid var(--blue-soft); outline-offset: -2px; }

.follow-panels { position: relative; }
.follow-panel { display: flex; flex-direction: column; gap: 14px; }
.follow-panel[hidden] { display: none; }
.follow-step { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--text-2); font-size: var(--t-ui); line-height: 1.5; }
.follow-step > span {
  display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: color-mix(in srgb, var(--blue) 14%, transparent); color: var(--blue-soft); font: 600 12px/1 var(--mono);
}
.follow-alt { margin-top: 4px; }
.follow-note { margin: 0; color: var(--dim); font-size: var(--t-meta); line-height: 1.55; }
.follow-note a { color: var(--blue-soft); }
.follow-address code {
  flex: 1 1 auto; min-width: 0; padding: 10px 12px; border: 0; background: none;
  color: var(--ink); font: 400 var(--t-meta)/1.4 var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.follow-address .copy {
  position: relative; inset: auto; flex: none; height: auto; padding: 0 14px;
  border: 0; border-left: 1px solid var(--line-strong); border-radius: 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0;
  background: var(--raised);
}
.follow-address .copy svg { width: 14px; height: 14px; fill: currentColor; }
.follow-address .copy[data-said] { color: var(--blue-soft); }
@media (prefers-reduced-motion: no-preference) {
  :is(.follow-address, .follow-ask) .copy[data-said] .copy-label { display: inline-block; animation: copy-said .22s var(--spring) both; }
}
.follow-readers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.follow-readers a, .follow-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--ctl-lg);
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--raised);
  color: var(--ink); font: 500 var(--t-ui)/1 var(--sans); text-decoration: none;
  transition: background-color .15s, border-color .15s, translate .15s;
}
.follow-readers a:hover { background: var(--raised-hover); border-color: var(--edge); }
.follow-readers svg { width: 13px; height: 13px; fill: currentColor; opacity: .7; transition: translate .2s var(--ease-out); }
.follow-readers a:hover svg { translate: 2px -2px; }
.follow-primary { border-color: transparent; background: var(--blue); color: #fff; }
.follow-primary:hover { background: var(--blue-hover); }
.follow-primary svg { width: 17px; height: 17px; fill: currentColor; }
.follow .setup-prompt-line { width: 100%; }
.follow-ask code {
  flex: 1 1 auto; min-width: 0; padding: 10px 12px; border: 0; background: none;
  color: var(--ink); font: 400 var(--t-meta)/1.55 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere;
}
.follow-ask .copy {
  position: relative; inset: auto; flex: none; height: auto; padding: 0 14px;
  border: 0; border-left: 1px solid var(--line-strong); border-radius: 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0;
  background: var(--raised);
}
.follow-ask .copy svg { width: 14px; height: 14px; fill: currentColor; }
.follow-ask .copy[data-said] { color: var(--blue-soft); }
.follow-more { margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line); }

/* The replays: a feed reader, the channel, and the agent's terminal. */
.fl-replay { margin: 4px 0 0; }
.follow .sq-screen { height: 320px; }
/* The reading styles' inline code, which the page's own rules for the
   setup line come before. */
.follow .setup-prompt-line code { padding: 9px 16px 9px 10px; border: 0; border-radius: 0; background: none; color: var(--ink); font: 400 var(--t-meta)/1.5 var(--mono); }
.fl-reader, .fl-tg {
  position: relative; overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 24px 50px -28px rgba(var(--shade-rgb), calc(.5 * var(--shade-k)));
}
.fl-bar {
  position: relative; display: flex; align-items: center; justify-content: space-between; height: 34px; padding: 0 10px 0 14px;
  border-bottom: 1px solid var(--line); background: var(--raised);
}
.fl-bar .sq-dots i { background: var(--line-strong); }
.fl-bar-title { position: absolute; left: 50%; translate: -50% 0; color: var(--dim); font: 12px/1 var(--mono); white-space: nowrap; }
.fl-bar .sq-replay { border-color: var(--line-strong); color: var(--dim); }
.fl-bar .sq-replay:hover { background: var(--raised-hover); color: var(--ink); }
.fl-list {
  display: flex; flex-direction: column; height: 360px; margin: 0; padding: 6px; list-style: none;
  overflow: auto; overscroll-behavior: contain; scrollbar-width: thin;
}
.fl-entry {
  position: relative; display: grid; grid-template-columns: 14px minmax(0, 1fr); column-gap: 8px; row-gap: 3px;
  padding: 10px 12px 10px 8px; border-radius: var(--radius);
}
.fl-entry + .fl-entry { border-top: 1px solid var(--line); border-radius: 0; }
.fl-dot { grid-row: 1 / 3; align-self: start; width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--blue); }
.fl-source, .fl-title { grid-column: 2; }
.fl-source { color: var(--faint); font: 400 11px/1.4 var(--mono); }
.fl-title { color: var(--text-2); font-size: var(--t-ui); line-height: 1.45; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fl-entry.is-new .fl-title { color: var(--ink); font-weight: 600; }

.fl-tg-screen {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; height: 360px; padding: 14px 14px 16px;
  overflow: auto; overscroll-behavior: contain; scrollbar-width: thin;
  background:
    radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--blue) 9%, transparent), transparent 55%),
    radial-gradient(circle at 85% 80%, color-mix(in srgb, var(--blue) 7%, transparent), transparent 50%),
    var(--raised);
}
.fl-tg-date {
  align-self: center; margin: 0; padding: 3px 10px; border-radius: 999px;
  background: rgba(var(--shade-rgb), calc(.18 * var(--shade-k))); color: var(--dim); font: 500 11px/1.4 var(--sans);
}
.fl-tg-post {
  position: relative; max-width: 92%; padding: 9px 12px 20px; border-radius: 14px 14px 14px 4px;
  background: var(--overlay); box-shadow: 0 1px 2px rgba(var(--shade-rgb), calc(.2 * var(--shade-k)));
  transform-origin: 0 100%;
}
.fl-tg-text { color: var(--ink); font: 400 13px/1.5 var(--sans); white-space: pre-wrap; overflow-wrap: anywhere; }
.fl-tg-text a { color: var(--blue-soft); }
.fl-tg-time { position: absolute; right: 10px; bottom: 5px; color: var(--faint); font: 11px/1 var(--sans); }

/* What shows when, as for the Agents tab's replays: at rest and without
   scripting, the last frame. The list and the channel are a fixed height,
   like the agent's screen, so the window stays put while rows arrive and
   the extra ones scroll inside it. */
.fl-replay[data-state="playing"] [data-at]:not(.on) { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .fl-reader[data-state="playing"] .fl-entry.on { animation: fl-arrive .6s var(--spring) both, fl-glow 2.4s .3s ease-out both; }
  .fl-reader .fl-entry.is-new .fl-dot { animation: fl-ping 1.8s 1s ease-out 2; }
  .fl-tg[data-state="playing"] .fl-tg-post.on { animation: fl-bubble .5s var(--spring) both; }
  .follow .sq-term[data-state="playing"] .sq-lines > .on { animation: sq-line .22s var(--ease-out) both; }
}
@keyframes fl-arrive { from { opacity: 0; translate: 0 -14px; scale: .98; } }
@keyframes fl-glow { from { background: color-mix(in srgb, var(--blue) 16%, transparent); } to { background: transparent; } }
@keyframes fl-ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--blue) 55%, transparent); } 100% { box-shadow: 0 0 0 9px transparent; } }
@keyframes fl-bubble { from { opacity: 0; translate: 0 12px; scale: .9; } }

/* Opening and closing: the dialog rises into place over a blurring page,
   and falls back as it closes. */
@media (prefers-reduced-motion: no-preference) {
  .follow {
    transition: opacity .2s var(--ease-out), translate .38s var(--spring), scale .38s var(--spring),
      overlay .38s allow-discrete, display .38s allow-discrete;
  }
  .follow:not([open]) { opacity: 0; translate: 0 14px; scale: .96; }
  @starting-style { .follow[open] { opacity: 0; translate: 0 14px; scale: .96; } }
  .follow::backdrop { transition: background-color .3s, backdrop-filter .3s, overlay .3s allow-discrete, display .3s allow-discrete; }
  .follow:not([open])::backdrop { background-color: transparent; backdrop-filter: blur(0); }
  @starting-style { .follow[open]::backdrop { background-color: transparent; backdrop-filter: blur(0); } }
  .follow-tab-mark { transition: translate .42s var(--spring), width .42s var(--spring); }
  /* A tab's content comes in from the side it was picked from, line by line. */
  .follow-panel:not([hidden]) > * { animation: follow-rise .45s var(--ease-out) both; }
  .follow-panel[data-from="left"]:not([hidden]) > * { animation-name: follow-rise-left; }
  .follow-panel[data-from="right"]:not([hidden]) > * { animation-name: follow-rise-right; }
  .follow-panel > :nth-child(2) { animation-delay: .04s; }
  .follow-panel > :nth-child(3) { animation-delay: .08s; }
  .follow-panel > :nth-child(4) { animation-delay: .12s; }
  .follow-panel > :nth-child(n+5) { animation-delay: .16s; }
}
@keyframes follow-rise { from { opacity: 0; translate: 0 8px; } }
@keyframes follow-rise-left { from { opacity: 0; translate: -18px 0; } }
@keyframes follow-rise-right { from { opacity: 0; translate: 18px 0; } }

/* On a phone the dialog is a sheet along the bottom, with a grip to drag
   it down by, and the tabs show their icons over their names. */
@media (max-width: 640px) {
  .follow {
    width: 100vw; max-height: 92dvh; margin: auto 0 0; border-width: 1px 0 0; border-radius: 18px 18px 0 0;
  }
  .follow-body { padding: 8px 16px calc(22px + env(safe-area-inset-bottom)); }
  .follow-grip {
    display: block; align-self: center; flex: none; width: 40px; height: 5px; margin: 4px 0 2px; border-radius: 3px;
    background: var(--line-strong); cursor: grab; touch-action: none;
  }
  .follow-grip::before { content: ""; display: block; height: 28px; margin: -12px -40px 0; }
  .follow-head h2 { font-size: 22px; }
  .follow-tabs [role="tab"] { flex-direction: column; gap: 4px; height: 52px; font-size: var(--t-label); }
  .follow-readers { grid-template-columns: minmax(0, 1fr); }
  .follow .sq-screen, .fl-list, .fl-tg-screen { height: 240px; }
  .follow-close:hover { rotate: none; }
}
@media (max-width: 640px) and (prefers-reduced-motion: no-preference) {
  .follow { transition: translate .42s var(--ease-out), overlay .42s allow-discrete, display .42s allow-discrete; }
  .follow:not([open]) { opacity: 1; translate: 0 100%; scale: 1; }
  @starting-style { .follow[open] { opacity: 1; translate: 0 100%; scale: 1; } }
  .follow[data-dragging] { transition: none; }
}

/* Sponsorship calculator. The blue rate card is the live output, including
   during playback. Its chart bars share a scale within each set of posts. */
.read-page main:has(.sponsor) { width: min(70rem, 100%); }
.sponsor { -webkit-font-smoothing: antialiased; }
.sponsor-head { margin-bottom: clamp(24px, 4vw, 42px); }
.sponsor-back { display: inline-flex; align-items: center; min-height: 44px; font: 500 var(--t-label) var(--mono); }
.read-page .sponsor-head h1 {
  margin: 10px 0 14px; font-size: clamp(2.35rem, 5.2vw, 4.25rem);
  letter-spacing: -.048em; line-height: 1.02; text-wrap: balance;
}
.sponsor-head p { max-width: 58ch; margin: 0; text-wrap: pretty; font-size: var(--t-lede); line-height: 1.45; }
.sponsor-workspace { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 16px; }
.sponsor-inputs, .sponsor-card { min-width: 0; border-radius: 16px; }
.sponsor-inputs {
  background: var(--surface); padding: clamp(18px, 2.6vw, 32px);
  box-shadow: inset 0 0 0 1px var(--line), 0 8px 32px rgba(var(--shade-rgb), .07);
}
.sponsor-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sponsor-inputs h2 { margin: 0; color: var(--ink); font: 500 var(--t-section)/1.2 var(--serif); }
.sponsor-field { display: grid; align-content: start; gap: 6px; min-width: 0; margin-top: 20px; }
.sponsor-field label { display: block; }
.sponsor-field label, .sponsor-check { font: 500 var(--t-ui)/1.45 var(--sans); color: var(--ink); }
.sponsor-field small { color: var(--dim); font: 400 var(--t-meta)/1.45 var(--sans); }
.sponsor-field :is(textarea, select, input), .sponsor-reply textarea {
  display: block; min-width: 0; width: 100%; border: 1px solid var(--line-strong); border-radius: 8px;
  color: var(--ink); background-color: var(--field); padding: 10px 12px;
  font: 400 var(--t-ui)/1.55 var(--mono); font-variant-numeric: tabular-nums;
}
.sponsor textarea { resize: vertical; }
.sponsor-field select, .sponsor-field input { height: 44px; }
.sponsor-field [aria-invalid="true"] { border-color: var(--danger); }
.sponsor .sponsor-error { color: var(--danger); }
.sponsor-error:empty { display: none; }
.sponsor-presets { display: flex; gap: 6px; flex-wrap: wrap; }
.sponsor-presets button {
  flex: 1; min-height: 44px; border: 1px solid var(--line-strong); border-radius: 7px;
  background: var(--field); color: var(--text-2); cursor: pointer; font: 500 var(--t-meta) var(--mono);
  transition: color .15s, background-color .15s, transform .15s;
}
.sponsor-presets button[aria-pressed="true"] { color: var(--blue-soft); background: var(--raised); border-color: currentColor; }
.sponsor-industry { margin-top: 4px; }
.sponsor-deal { margin-block: 12px; border-block: 1px solid var(--line); }
.sponsor-deal summary { padding-block: 13px; color: var(--text-2); font: 500 var(--t-ui)/1.4 var(--sans); cursor: pointer; }
.sponsor-deal .sponsor-field { margin-top: 0; }
.sponsor #rate-typical { font-size: var(--t-body); }
.sponsor-money { position: relative; }
.sponsor-money span { position: absolute; top: 50%; left: 12px; transform: translateY(-50%); font: 400 var(--t-ui) var(--mono); color: var(--dim); }
.sponsor-money input { padding-left: 27px; }
.sponsor-check { display: flex; flex-direction: row; gap: 9px; align-items: center; width: fit-content; min-height: 44px; margin: 10px 0; cursor: pointer; }
.sponsor-check input { width: 16px; height: 16px; accent-color: var(--blue); }
.sponsor :is(.btn, .sponsor-play, .copy, .sponsor-link) { min-height: 44px; transition: transform .16s var(--ease-out), background-color .16s, color .16s; }
.sponsor button:active { transform: scale(.96); }
.sponsor-play, .sponsor-link { color: var(--blue-soft); border: 0; cursor: pointer; background: transparent; font: 500 var(--t-meta)/1.4 var(--sans); }
.sponsor-play { display: inline-flex; align-items: center; gap: 7px; padding: 0 8px; border-radius: 6px; }
.sponsor-play:hover, .sponsor-link:hover { background-color: var(--raised-hover); }
.sponsor-play-icon { width: 0; height: 0; border-block: 5px solid transparent; border-left: 8px solid currentColor; }
.sponsor[data-stage] .sponsor-play-icon { width: 8px; height: 8px; border: 0; background: currentColor; }
.sponsor-card {
  display: flex; flex-direction: column; color: white; overflow: hidden;
  background: radial-gradient(ellipse at 90% 5%, #526dfc, transparent 70%), linear-gradient(135deg, #233daa, #101f62);
  box-shadow: inset 0 0 0 1px #ffffff2e, 0 8px 28px #0b174126;
  font-variant-numeric: tabular-nums;
}
.sponsor-card-top { padding: 16px clamp(20px, 2.6vw, 32px); border-bottom: 1px solid #ffffff38; }
.sponsor-card-top span, .sponsor-chart-caption, .sponsor-verdict span { font: 400 var(--t-label)/1.4 var(--mono); color: #ebefff; }
.sponsor-card-top span:first-child { display: flex; align-items: center; gap: 9px; text-transform: uppercase; letter-spacing: .1em; }
.sponsor-card-top svg { font-size: 15px; }
.sponsor-card-body { display: flex; flex-direction: column; flex: 1; padding: 24px clamp(20px, 2.6vw, 32px) 18px; }
.sponsor-card-body h2 { margin: 0 0 6px; color: white; font: 500 var(--t-ui) var(--sans); }
.sponsor-card .sponsor-price { color: white; display: block; font: 500 clamp(2.4rem, 4.8vw, 4rem)/1.08 var(--serif); letter-spacing: -.06em; overflow-wrap: anywhere; }
.sponsor-card-body p { margin: 8px 0 20px; color: #edf0ff; font-size: var(--t-meta); line-height: 1.45; }
.sponsor-chart {
  display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; margin-top: auto; height: clamp(56px, 6vw, 86px);
  border-bottom: 1px solid #ffffff85;
  background: repeating-linear-gradient(to top, transparent 0 17px, #ffffff24 17px 18px);
}
.sponsor-chart i { background: linear-gradient(0deg, #a6bbf5, #f4f7ff); border-radius: 3px 3px 0 0; transform: scaleY(0); transform-origin: bottom; transition: transform .38s var(--ease-out); }
.sponsor-chart-caption { margin-top: 8px; }
.sponsor-chart[hidden] + .sponsor-chart-caption { margin-top: auto; padding-top: 16px; border-top: 1px solid #ffffff45; }
.sponsor-verdict { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; padding: 16px clamp(20px, 2.6vw, 32px); border-top: 1px solid #ffffff3b; background: #070e3938; }
.sponsor-verdict strong { color: white; font: 500 var(--t-ui) var(--sans); }
.sponsor-share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 0 clamp(20px, 2.6vw, 32px) 18px; background: #070e3938; }
.sponsor-share .btn { background: #fff; color: #172c87; border: 1px solid #fff; }
.sponsor-share .btn:hover { background: #ebefff; }
.sponsor-share button.btn { background: transparent; border-color: #ffffff70; color: white; }
.sponsor-share button.btn:hover { background: #ffffff18; }
.sponsor-share .btn:is(:disabled, [aria-disabled="true"]) { opacity: .6; cursor: default; }
.sponsor-share :is(span, label) { color: white; font: 500 var(--t-meta)/1.4 var(--sans); }
.sponsor-share label { width: 100%; }
.sponsor-reply { margin: 8px 0 16px; }
.sponsor-reply label { color: var(--ink); font: 500 var(--t-ui)/1.45 var(--sans); }
.sponsor-reply .copy { position: static; }
.sponsor-reply textarea { margin: 6px 0 8px; font: 400 var(--t-body)/1.5 var(--sans); }
.sponsor [hidden] { display: none; }
.sponsor :is(input, select, textarea):disabled { opacity: 1; }
.sponsor-link { padding: 0 4px; }
.sponsor-guide { margin-inline: auto; }
.sponsor :is(button, input, textarea, select, summary, a):focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 3px; }
.sponsor #rate-heading { scroll-margin-top: 100px; }
.no-js .sponsor-workspace { display: none; }
.sponsor[data-stage="reach"] #rate-typical, .sponsor[data-stage="offer"] #rate-offer, .sponsor[data-stage="reply"] #rate-quote { border-color: var(--blue-hi); box-shadow: 0 0 0 3px var(--blue-dim); }
@media (prefers-reduced-motion: no-preference) {
  .sponsor[data-stage="offer"] .sponsor-verdict, .sponsor[data-stage="reply"] .sponsor-reply .copy { animation: sponsor-settle .45s var(--ease-out); }
  @keyframes sponsor-settle { from { opacity: .55; transform: translateY(4px); } }
}
@media (max-width: 720px) {
  .sponsor-workspace { grid-template-columns: minmax(0, 1fr); }
  .sponsor-head p { font-size: var(--t-body); }
  .sponsor-field :is(textarea, select, input) { font-size: 16px; }
  .sponsor-card-body { padding-block: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .sponsor *, .sponsor *::before { transition: none !important; animation: none !important; }
  .sponsor button:active { transform: none; }
}
