/* 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);
  --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); }
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; }

/* ---- 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;
  /* 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);
}
.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 .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; }
}

/* 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; }

/* A list of links, not cards: a title and a line of summary. /tools reads this
   way. */
/* Scoped to .read-page so it outranks the generic list rule below. */
.read-page .post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { margin: 0; border-top: 1px solid rgba(var(--tint-rgb), .12); }
.post-list a {
  display: flex; flex-direction: column; gap: .3rem;
  padding: 1.35rem 0;
  color: inherit;
}
.post-list a:hover { text-decoration: none; }

/* The blog index: the two newest posts large, the rest three across, each a
   cover over its date and title. No card around them, a cover is already an
   object. */
.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; }
.read-page .post-grid img { margin: 0 0 .5rem; }
.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;
}
:is(.post-list, .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; }
.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 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 .post-shot { margin: 1.3rem 0 1.7rem; }
.post .post-shot img { display: block; margin: 0 auto; }
.post .post-shot figcaption { margin-top: .6rem; color: var(--faint); font-size: var(--t-meta); text-align: center; }
.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); }
@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; }
}

.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); border-left-color: var(--blue); }
.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 { 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(68rem, 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; }
.has-cadence:has(#cadence-year:checked) .price-offer:not(.cad-year),
.has-cadence:not(:has(#cadence-year:checked)) .price-offer:not(.cad-month) { display: none; }

.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.price-card {
  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 { 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); }
.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 .price-limits b { color: var(--ink); font-family: var(--mono); font-variant-numeric: tabular-nums; }
.price-packs .btn { align-self: flex-start; }
.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; }

@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; }
/* 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 { color: var(--blue-soft); text-underline-offset: .18em; }
.connect-account > .note a:hover, .cell 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); }
}

/* ---- 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: the agents down the left, in two groups by how they get
   in, and the one picked set up on the right. Without scripting the list
   never shows and every setup does, one under another. */
.agent-connect {
  display: flex; flex-wrap: wrap; align-items: stretch; margin-bottom: 8px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: var(--surface); overflow: hidden;
}
.agent-pick {
  flex: 1 1 232px; max-width: 248px; display: flex; flex-direction: column; gap: 2px;
  padding: 12px 8px; border-right: 1px solid var(--line); background: var(--raised);
}
.agent-pick[hidden] { display: none; }
.agent-group { margin: 0; padding: 14px 10px 6px; color: var(--faint); font: 500 var(--t-label)/1.2 var(--sans); }
.agent-group:first-child { padding-top: 4px; }
.agent-pick [role="tablist"] { display: flex; flex-direction: column; gap: 2px; }
.agent-pick [role="tab"] {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 6px 10px;
  border-radius: var(--radius); color: var(--text-1); text-align: left;
  transition: color .15s, background-color .15s;
}
.agent-pick [role="tab"]:hover { background: var(--raised-hover); color: var(--ink); }
.agent-pick [aria-selected="true"] { background: var(--surface-hi); color: var(--ink); box-shadow: 0 0 0 1px var(--line-strong); }
.agent-pick [role="tab"] > svg { flex: none; font-size: 16px; }
.agent-tab-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.agent-tab-name { font: 500 var(--t-meta)/1.3 var(--sans); }
.agent-tab-where { color: var(--faint); font: 400 var(--t-label)/1.3 var(--sans); }
.agent-panes { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; }
.setup { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.agent-connect:not(.tabbed) .setup + .setup { border-top: 1px solid var(--line-strong); }
.setup-head { display: flex; align-items: center; gap: 12px; padding: 18px 24px 16px; border-bottom: 1px solid var(--line); }
.setup-mark {
  display: grid; place-items: center; flex: none; width: 36px; height: 36px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--raised); font-size: 18px;
}
.setup-name { flex: 1; min-width: 0; margin: 0; color: var(--ink); font: 500 var(--t-lede)/1.25 var(--serif); }
.setup-how {
  display: inline-flex; align-items: center; gap: 6px; flex: none; height: 24px; padding: 0 8px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  color: var(--text-2); font: 500 var(--t-label)/1 var(--sans); white-space: nowrap;
}
.setup-how svg { font-size: 13px; }
.setup-how.signs { border-color: rgba(var(--sky-rgb), .45); background: rgba(28, 92, 255, .12); color: var(--on-tint); }
.setup-note { margin: 14px 24px 0; color: var(--dim); font-size: var(--t-meta); text-wrap: pretty; }
/* Each step in one grid: its number, what to do, and beside it what to
   paste, so the copy fields of one step line up with the next. A step with
   nothing to paste reads across both columns. */
.setup-steps { margin: 0; padding: 4px 24px 8px; list-style: none; counter-reset: step; }
.setup-steps > li {
  display: grid; grid-template-columns: 24px minmax(0, 1fr) minmax(0, 1.25fr); column-gap: 16px; align-items: start;
  padding: 16px 0; border-top: 1px solid var(--line); color: var(--text-1); line-height: 1.55; counter-increment: step;
}
.setup-steps > li:first-child { border-top: 0; }
.setup-steps > li::before {
  content: counter(step); grid-column: 1; display: grid; place-items: center; width: 24px; height: 24px;
  border: 1px solid var(--line-strong); border-radius: 50%;
  color: var(--text-2); font: 500 var(--t-label)/1 var(--mono); font-variant-numeric: tabular-nums;
}
.setup-steps > li > p { grid-column: 2; margin: 0; padding-top: 1px; text-wrap: pretty; }
.setup-steps > li > p:last-child { grid-column: 2 / -1; }
.step-value { grid-column: 3; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.setup-field { display: flex; align-items: center; gap: 10px; min-width: 0; }
.setup-label { flex: none; width: 3.25rem; color: var(--faint); font-size: var(--t-meta); }
.setup-field > .copy-field { flex: 1; }
.setup-plain { padding: 6px 0; color: var(--ink); font-weight: 500; }
.setup-or {
  display: flex; align-items: center; gap: 12px; margin: 4px 24px;
  color: var(--faint); font: 500 var(--t-label) var(--sans);
}
.setup-or::before, .setup-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.setup-aside { margin: 0 24px 16px 64px; color: var(--dim); font-size: var(--t-meta); text-wrap: pretty; }
.setup a { color: var(--blue-soft); text-decoration: underline; text-underline-offset: .18em; }
.setup b { color: var(--ink); font-weight: 600; }
.setup p code { padding: 0 4px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--raised); }
.setup code { font-family: var(--mono); font-size: var(--t-meta); color: var(--ink); overflow-wrap: anywhere; }
/* 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; }
.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); }
.setup .snippet { display: flex; align-items: flex-start; margin: 0; background: var(--field); }
.setup .snippet pre { flex: 1; min-width: 0; padding: 10px 12px; }
.setup .snippet code { white-space: pre-wrap; overflow-wrap: anywhere; font-size: var(--t-meta); line-height: 1.6; }
/* Inset 4px inside an 8px frame and its 1px edge, so its corners follow the
   frame's. */
.panel-body .setup .snippet .copy { position: relative; flex: none; margin: 4px 4px 0 0; border-radius: calc(var(--radius-lg) - 5px); }
/* 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: 900px) {
  .setup-steps > li { grid-template-columns: 24px minmax(0, 1fr); }
  .step-value { grid-column: 2; margin-top: 10px; }
}
/* A phone lists the agents two to a row above the setup. */
@media (max-width: 720px) {
  .agent-pick {
    max-width: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 4px;
    border-right: 0; border-bottom: 1px solid var(--line);
  }
  .agent-pick[hidden] { display: none; }
  .agent-group { grid-column: 1 / -1; }
  .agent-pick [role="tablist"] { display: contents; }
  .setup-head, .setup-steps, .agent-live { padding-left: 16px; padding-right: 16px; }
  .setup-note, .setup-or { margin-left: 16px; margin-right: 16px; }
  .setup-aside { margin-left: 56px; margin-right: 16px; }
  .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;
}

/* ---- 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);
}
/* 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 img {
  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-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 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 { 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[data-look] .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)); }
.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 img { display: block; width: 100%; height: auto; }
.look-media.many img { height: 100%; aspect-ratio: 1; object-fit: cover; }
.look-card .preview-tile { min-height: 120px; border: 0; border-radius: 0; font-size: 13px; }
.look-quote { overflow-wrap: anywhere; }

/* 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-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) img { 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 img { 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; }
.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); }

@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 { 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; }
.plans[data-interval] .offer.off { display: none; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.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-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; }

/* 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; }
}

.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; }
.banner-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);
}
.banner-drop:is(:hover, :focus-within), [data-dropping] .banner-drop { border-color: rgba(var(--sky-rgb), .7); color: var(--ink); }
.tool-fields .banner-drop input { 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-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; }

/* ---- 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. */
@media (min-width: 1100px) {
  .panel-page #page { padding-left: 232px; }
  .panel-page header.top {
    inset: 0 auto 0 0; width: 232px;
    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; }

  .top-meta {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px;
    margin: auto 0 0; padding-top: 10px; border-top: 1px solid var(--line);
  }
  .top-email {
    display: block; grid-column: 1 / -1; padding: 0 10px 4px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    color: var(--dim); font: var(--t-meta) var(--mono);
  }
  .top-account { grid-column: 1 / -1; }
  .top-meta .ghost { grid-row: 3; grid-column: 1; justify-self: start; margin-left: 4px; }
  .top-meta .theme-toggle { grid-row: 3; grid-column: 2; }

  .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. */
  .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; }
}
/* 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 { transition: none; }
  .post-preview[open], .post-preview[open]:not(:modal) { animation-name: preview-fade; }
}

/* ── 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-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-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); }
.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; }
.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: 6px; margin: 0 12px 10px; padding: 0; list-style: none; }
.composer-tiles[hidden] { display: none; }
.composer-tile { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: var(--t-label); }
.composer-tile-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.composer-tile-bar { flex: 1; height: 3px; overflow: hidden; border-radius: 2px; background: var(--track); }
.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 and the steps all 44px. */
  .composer-account, .composer-tabs button { height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .composer[open], .composer[open]::backdrop, .composer-check, .composer-tile.fresh, .composer-reply.fresh,
  .composer[data-step] [data-pane] { animation: none; }
  .composer-tile-bar span { 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; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.bf-listed img { width: auto; height: 40px; }
.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; }
