/*
 * Reachista design system (M10). Plain CSS, no build step (docs/adr.md ADR-089).
 * Documentation, token rationale and the component inventory: docs/design.md.
 *
 * Layers, lowest to highest priority:
 *   tokens      custom properties; colors use light-dark() so one list covers both themes
 *   base        element defaults and typography
 *   layout      page shells, containers, header, footer
 *   components  buttons, fields, cards, task card, badges, alerts, ...
 *   utilities   single-purpose helpers
 *
 * Theme: the system preference applies by default. data-theme="light" or
 * data-theme="dark" on <html> (or on any element, e.g. a gallery panel)
 * forces a theme for that subtree, because light-dark() follows color-scheme.
 */

@layer tokens, base, layout, components, utilities;

/* Self-hosted font, SIL OFL 1.1 (wwwroot/fonts/OFL-schibsted-grotesk.txt).
   font-display: optional + preload in the head: the font is used when it is
   ready for the first paint and the fallback is kept otherwise, so text
   never reflows after load (no layout shift). */
@font-face {
    font-family: "Schibsted Grotesk";
    font-style: normal;
    font-weight: 400 900;
    font-display: optional;
    src: url("../fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Schibsted Grotesk";
    font-style: normal;
    font-weight: 400 900;
    font-display: optional;
    src: url("../fonts/schibsted-grotesk-latin-ext-wght-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ------------------------------------------------------------------ tokens */
@layer tokens {
    :root {
        color-scheme: light dark;

        /* Color. Pairs are light-dark(light, dark). Every text/background pair
           listed in docs/design.md meets WCAG AA (4.5:1 for text). */
        --color-page:        light-dark(#f5f6f3, #0e1412);
        --color-surface:     light-dark(#ffffff, #151d1a);
        --color-surface-2:   light-dark(#eceee9, #1c2622);
        --color-sunken:      light-dark(#e6e9e3, #0a0f0d);
        --color-ink:         light-dark(#17201c, #e3eae6);
        --color-ink-muted:   light-dark(#4f5c56, #a3b0a9);
        --color-ink-faint:   light-dark(#5c6862, #86938c);
        --color-line:        light-dark(#d6dcd7, #2b3631);
        --color-line-strong: light-dark(#858f8a, #64736c);

        /* Pine: brand, primary actions, links. */
        --color-pine:        light-dark(#1d5c48, #8fd1b6);
        --color-pine-hover:  light-dark(#144636, #b0e2cc);
        --color-pine-soft:   light-dark(#e1eee8, #183229);
        --color-on-pine:     light-dark(#ffffff, #0b1410);

        /* Marker: the highlighter used on evidence quotes, nowhere decorative. */
        --color-marker:      light-dark(#f4df4d, #e8d44a);
        --color-new:         light-dark(#e8742c, #e8d44a);
        --color-on-new:      light-dark(#ffffff, #17201c);
        --color-on-marker:   #17201c;

        /* Status colors: text color, soft background, border. */
        --color-success:      light-dark(#1f6b3a, #86d49c);
        --color-success-soft: light-dark(#e3f2e7, #15291c);
        --color-warning:      light-dark(#7a4f00, #f0c25a);
        --color-warning-soft: light-dark(#fdf1d3, #2d2410);
        --color-danger:       light-dark(#a8321f, #f39a88);
        --color-danger-soft:  light-dark(#fbe7e3, #331a15);
        --color-info:         light-dark(#2a5680, #9cc3ea);
        --color-info-soft:    light-dark(#e4edf6, #16232f);

        /* Channel colors, used only as a small swatch next to the channel name. */
        --color-ch-reddit:    #e0531f;
        --color-ch-hn:        #e8742c;
        --color-ch-directory: light-dark(#5a6cc4, #8d9be0);
        --color-ch-article:   light-dark(#7a4fb0, #b496e0);
        --color-ch-other:     light-dark(#6b7771, #86938c);

        --color-focus: light-dark(#1d5c48, #f4df4d);

        /* Type. One family; weight and size carry hierarchy. */
        --font-sans: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
        --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;

        /* Classic scale (Bringhurst): 12 14 16 18 21 24 36 48 60 72. */
        --text-xs: 0.75rem;
        --text-sm: 0.875rem;
        --text-md: 1rem;
        --text-lg: 1.125rem;
        --text-xl: 1.3125rem;
        --text-2xl: 1.5rem;
        --text-3xl: clamp(1.75rem, 1.2rem + 2.2vw, 2.25rem);
        --text-4xl: clamp(2.125rem, 1.3rem + 3.4vw, 3rem);
        --text-5xl: clamp(2.5rem, 1.2rem + 5.2vw, 4.5rem);

        --leading-tight: 1.08;
        --leading-snug: 1.3;
        --leading-body: 1.55;

        --weight-regular: 400;
        --weight-medium: 500;
        --weight-semibold: 620;
        --weight-bold: 760;
        --weight-black: 860;

        --measure: 68ch;

        /* Space: 4px grid. */
        --space-1: 0.25rem;
        --space-2: 0.5rem;
        --space-3: 0.75rem;
        --space-4: 1rem;
        --space-5: 1.5rem;
        --space-6: 2rem;
        --space-7: 3rem;
        --space-8: 4rem;
        --space-9: 6rem;
        --space-10: 8rem;

        /* Radius: small things are nearly square, containers are softer. */
        --radius-xs: 3px;
        --radius-s: 6px;
        --radius-m: 10px;
        --radius-l: 16px;
        --radius-round: 999px;

        /* Shadow: borders do most of the work; shadows mark things that float. */
        --shadow-raised: 0 1px 2px light-dark(rgb(23 32 28 / 0.06), rgb(0 0 0 / 0.4));
        --shadow-float:  0 1px 2px light-dark(rgb(23 32 28 / 0.06), rgb(0 0 0 / 0.4)),
                         0 18px 40px -18px light-dark(rgb(23 32 28 / 0.28), rgb(0 0 0 / 0.7));

        --container: 72rem;
        --container-narrow: 44rem;
        --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);

        --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
        --duration-fast: 120ms;
        --duration: 200ms;
    }

    [data-theme="light"] { color-scheme: light; }
    [data-theme="dark"] { color-scheme: dark; }
}

/* -------------------------------------------------------------------- base */
@layer base {
    *, *::before, *::after { box-sizing: border-box; }

    html {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
        scroll-padding-top: 5rem;
    }

    @media (prefers-reduced-motion: no-preference) {
        html { scroll-behavior: smooth; }
    }

    body {
        margin: 0;
        min-height: 100dvh;
        font-family: var(--font-sans);
        font-size: var(--text-md);
        line-height: var(--leading-body);
        font-weight: var(--weight-regular);
        color: var(--color-ink);
        background: var(--color-page);
        font-kerning: normal;
        -webkit-font-smoothing: antialiased;
    }

    /* Any element carrying data-theme paints its own background, so a forced
       theme panel in the gallery looks like the real page. */
    [data-theme] { color: var(--color-ink); background-color: var(--color-page); }

    h1, h2, h3, h4, h5, h6 {
        margin: 0;
        line-height: var(--leading-tight);
        font-weight: var(--weight-bold);
        letter-spacing: -0.02em;
        text-wrap: balance;
    }

    h1 { font-size: var(--text-4xl); font-weight: var(--weight-black); letter-spacing: -0.03em; }
    h2 { font-size: var(--text-3xl); }
    h3 { font-size: var(--text-xl); letter-spacing: -0.01em; line-height: var(--leading-snug); }
    h4 { font-size: var(--text-lg); letter-spacing: 0; line-height: var(--leading-snug); }
    h5, h6 { font-size: var(--text-md); letter-spacing: 0; line-height: var(--leading-snug); }

    fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
    legend { padding: 0; }

    p, ul, ol, dl, blockquote, figure, pre { margin: 0; }
    p, blockquote, figcaption { text-wrap: pretty; }

    a {
        color: var(--color-pine);
        text-decoration-line: underline;
        text-decoration-thickness: 1px;
        text-underline-offset: 0.18em;
    }

    a:hover { color: var(--color-pine-hover); text-decoration-thickness: 2px; }

    strong, b { font-weight: var(--weight-semibold); }

    code, kbd, samp {
        font-family: var(--font-mono);
        font-size: 0.9em;
    }

    code {
        padding: 0.1em 0.3em;
        border-radius: var(--radius-xs);
        background: var(--color-surface-2);
    }

    img, svg, video { display: block; max-width: 100%; height: auto; }

    hr { border: 0; border-top: 1px solid var(--color-line); margin: var(--space-6) 0; }

    ::selection { background: var(--color-marker); color: var(--color-on-marker); }

    :focus-visible {
        outline: 3px solid var(--color-focus);
        outline-offset: 2px;
        border-radius: var(--radius-xs);
    }

    [hidden] { display: none !important; }

    /* The skip link focuses <main>; the focus ring there would frame the whole page. */
    main:focus { outline: none; }

    /* Controls that only work with JavaScript. The head script sets the js
       class before the first paint, so they never appear late. */
    :root:not(.js) [data-js-only] { display: none !important; }

    @media (prefers-reduced-motion: reduce) {
        *, *::before, *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
}

/* ------------------------------------------------------------------ layout */
@layer layout {
    .container {
        width: 100%;
        max-width: calc(var(--container) + 2 * var(--gutter));
        margin-inline: auto;
        padding-inline: var(--gutter);
    }

    .container--narrow { max-width: calc(var(--container-narrow) + 2 * var(--gutter)); }

    .skip-link {
        position: absolute;
        left: var(--space-4);
        top: -4rem;
        z-index: 100;
        padding: var(--space-2) var(--space-4);
        border-radius: var(--radius-s);
        background: var(--color-ink);
        color: var(--color-page);
        font-weight: var(--weight-semibold);
    }

    .skip-link:focus { top: var(--space-3); color: var(--color-page); }

    .shell { display: flex; flex-direction: column; min-height: 100dvh; }
    .shell > main { flex: 1; }

    /* Header, shared by marketing and application. */
    /* The header is a size container, so it adapts to the space it gets
       (also inside the gallery frames), not only to the viewport. */
    .site-header {
        container-type: inline-size;
        position: sticky;
        top: 0;
        z-index: 20;
        background: color-mix(in srgb, var(--color-page) 92%, transparent);
        backdrop-filter: saturate(1.4) blur(10px);
        border-bottom: 1px solid var(--color-line);
    }

    .site-header__bar {
        display: flex;
        align-items: center;
        gap: var(--space-4);
        min-height: 4rem;
    }

    .site-header__brand {
        display: inline-flex;
        align-items: center;
        color: var(--color-ink);
        text-decoration: none;
        margin-right: auto;
    }

    .site-header__brand:hover { color: var(--color-ink); }

    .site-nav { display: flex; align-items: center; gap: var(--space-1); }

    .site-nav a:not(.btn) {
        display: inline-flex;
        align-items: center;
        min-height: 2.5rem;
        padding: 0 var(--space-3);
        border-radius: var(--radius-s);
        color: var(--color-ink-muted);
        font-weight: var(--weight-medium);
        text-decoration: none;
    }

    .site-nav a:not(.btn):hover { color: var(--color-ink); background: var(--color-surface-2); }
    .site-nav a[aria-current="page"] { color: var(--color-ink); box-shadow: inset 0 -2px 0 var(--color-pine); border-radius: 0; }

    .site-header__actions { display: flex; align-items: center; gap: var(--space-2); }

    /* Below 52rem the section links move into a disclosure menu. */
    .site-menu { position: relative; display: none; }

    .site-menu > summary {
        list-style: none;
        cursor: pointer;
    }

    .site-menu > summary::-webkit-details-marker { display: none; }

    .site-menu__panel {
        position: absolute;
        right: 0;
        top: calc(100% + var(--space-2));
        min-width: 14rem;
        padding: var(--space-2);
        display: grid;
        gap: var(--space-1);
        background: var(--color-surface);
        border: 1px solid var(--color-line);
        border-radius: var(--radius-m);
        box-shadow: var(--shadow-float);
    }

    .site-menu__panel a {
        display: block;
        padding: var(--space-2) var(--space-3);
        border-radius: var(--radius-s);
        color: var(--color-ink);
        text-decoration: none;
    }

    .site-menu__panel a:hover { background: var(--color-surface-2); }

    /* Theme switch inside the menu, for widths where the header has no room for it. */
    .site-menu__theme {
        display: none;
        padding: var(--space-2) var(--space-3);
        border: 0;
        border-top: 1px solid var(--color-line);
        border-radius: 0;
        background: none;
        color: var(--color-ink);
        font: inherit;
        text-align: left;
        cursor: pointer;
    }

    .site-menu__theme[aria-pressed="true"]::after { content: " (on)"; color: var(--color-ink-muted); }

    .site-nav a:not(.btn) { white-space: nowrap; }

    @container (max-width: 56rem) {
        .site-header__bar .site-nav { display: none; }
        .site-menu { display: block; }
    }

    @container (max-width: 30rem) {
        .site-header__actions .btn--hide-narrow,
        .site-header:not(.app-header) .site-header__actions > .theme-toggle { display: none !important; }
        :root.js .site-menu__theme { display: block; }
    }

    /* Application header: brand, project, sections, account. */
    .app-header__project {
        display: inline-flex;
        align-items: center;
        gap: var(--space-2);
        padding-left: var(--space-4);
        margin-left: var(--space-1);
        border-left: 1px solid var(--color-line);
        color: var(--color-ink);
        font-weight: var(--weight-semibold);
        min-width: 0;
    }

    .app-header__project span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 14rem;
    }

    .app-header__brand-group { display: flex; align-items: center; margin-right: auto; min-width: 0; }
    .app-header__brand-group .site-header__brand { margin-right: 0; }

    .app-subnav { border-top: 1px solid var(--color-line); }

    /* Section links scroll sideways on narrow screens; the trial badge wraps
       to its own line instead of scrolling out of sight. */
    .app-subnav__bar {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 0 var(--space-4);
    }

    .app-subnav__bar > .badge { margin-block: var(--space-2); }

    .app-subnav .site-nav {
        display: flex;
        flex: 1 1 20rem;
        min-width: 0;
        min-height: 3rem;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .app-subnav .site-nav a:not(.btn) { white-space: nowrap; }

    .avatar {
        display: inline-grid;
        place-items: center;
        width: 2rem;
        height: 2rem;
        flex: none;
        border-radius: var(--radius-round);
        background: var(--color-pine-soft);
        color: var(--color-pine);
        font-weight: var(--weight-bold);
        font-size: var(--text-sm);
    }

    @container (max-width: 40rem) {
        .app-header__project { display: none; }
    }

    /* Product switcher (ADR-102, ADR-164): a disclosure next to the brand. Stays
       visible on phones, where the name is cut shorter. */
    .product-switch { position: relative; flex: 0 1 auto; min-width: 0; max-width: 16rem; margin-left: var(--space-1); }

    .product-switch > summary {
        display: flex;
        align-items: center;
        gap: var(--space-1);
        max-width: 100%;
        min-height: 2.5rem;
        padding: 0 var(--space-2) 0 var(--space-4);
        border-left: 1px solid var(--color-line);
        color: var(--color-ink);
        font-weight: var(--weight-semibold);
        list-style: none;
        cursor: pointer;
    }

    .product-switch > summary::-webkit-details-marker { display: none; }
    .product-switch > summary:hover .product-switch__name { text-decoration: underline; text-underline-offset: 0.2em; }

    .product-switch__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

    .product-switch__icon { flex: none; width: 1rem; height: 1rem; transition: transform 120ms ease; }
    .product-switch[open] .product-switch__icon { transform: rotate(180deg); }

    .product-switch__panel {
        position: absolute;
        left: var(--space-2);
        top: calc(100% + var(--space-2));
        z-index: 20;
        min-width: 15rem;
        max-width: min(22rem, calc(100vw - 2rem));
        padding: var(--space-2);
        display: grid;
        gap: var(--space-1);
        background: var(--color-surface);
        border: 1px solid var(--color-line);
        border-radius: var(--radius-m);
        box-shadow: var(--shadow-float);
    }

    .product-switch__panel a {
        display: block;
        padding: var(--space-2) var(--space-3);
        border-radius: var(--radius-s);
        color: var(--color-ink);
        text-decoration: none;
        overflow-wrap: anywhere;
    }

    .product-switch__panel a:hover { background: var(--color-surface-2); }
    .product-switch__panel a[aria-current] { font-weight: var(--weight-semibold); background: var(--color-pine-soft); }

    /* ADR-164: a head with the product count, each product with its stage,
       and a foot with "Add product" (or the limit) and "All products". */
    .product-switch__head {
        display: flex;
        justify-content: space-between;
        gap: var(--space-3);
        padding: var(--space-1) var(--space-3);
        color: var(--color-ink-muted);
        font-size: var(--text-xs);
        font-weight: var(--weight-semibold);
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .product-switch__list { display: grid; gap: var(--space-1); }

    .product-switch__panel .product-switch__list a {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: var(--space-2);
        align-items: center;
    }

    .product-switch__item { font-weight: var(--weight-semibold); }
    .product-switch__meta { grid-column: 1; color: var(--color-ink-muted); font-size: var(--text-xs); font-weight: var(--weight-regular); }
    .product-switch__check { grid-column: 2; grid-row: 1 / span 2; width: 1rem; height: 1rem; color: var(--color-pine); }

    .product-switch__foot {
        display: grid;
        gap: var(--space-1);
        margin-top: var(--space-1);
        padding-top: var(--space-2);
        border-top: 1px solid var(--color-line);
    }

    .product-switch__panel .product-switch__foot a { display: flex; align-items: center; gap: var(--space-2); color: var(--color-ink-muted); }
    .product-switch__foot a svg { width: 1rem; height: 1rem; flex: none; }
    .product-switch__limit { padding: var(--space-2) var(--space-3); color: var(--color-ink-muted); font-size: var(--text-sm); }
    .product-switch__panel .product-switch__limit a { display: inline; padding: 0; color: var(--color-pine); text-decoration: underline; }

    /* Account menu (ADR-164): avatar and chevron; the panel holds who is
       signed in, Settings, Plan and billing, Admin and Sign out. */
    .account-menu { position: relative; }

    .account-menu > summary {
        display: flex;
        align-items: center;
        gap: var(--space-1);
        min-height: 2.75rem;
        padding-inline: var(--space-1);
        border-radius: var(--radius-s);
        list-style: none;
        cursor: pointer;
    }

    .account-menu > summary::-webkit-details-marker { display: none; }
    .account-menu > summary:hover { background: var(--color-surface-2); }
    .account-menu__icon { width: 1rem; height: 1rem; color: var(--color-ink-muted); transition: transform 120ms ease; }
    .account-menu[open] .account-menu__icon { transform: rotate(180deg); }

    .account-menu__panel {
        position: absolute;
        right: 0;
        top: calc(100% + var(--space-2));
        z-index: 20;
        min-width: 15rem;
        max-width: calc(100vw - 2rem);
        padding: var(--space-2);
        display: grid;
        gap: var(--space-1);
        background: var(--color-surface);
        border: 1px solid var(--color-line);
        border-radius: var(--radius-m);
        box-shadow: var(--shadow-float);
    }

    .account-menu__who {
        display: grid;
        padding: var(--space-2) var(--space-3);
        border-bottom: 1px solid var(--color-line);
        font-size: var(--text-sm);
        overflow-wrap: anywhere;
    }

    .account-menu__who span { color: var(--color-ink-muted); }
    .account-menu__links { display: grid; gap: var(--space-1); }

    .account-menu__links a,
    .account-menu__out {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 2.5rem;
        padding: var(--space-2) var(--space-3);
        border: 0;
        border-radius: var(--radius-s);
        background: none;
        color: var(--color-ink);
        font: inherit;
        text-align: left;
        text-decoration: none;
        cursor: pointer;
    }

    .account-menu__links a:hover, .account-menu__out:hover { background: var(--color-surface-2); }
    .account-menu__links a[aria-current] { font-weight: var(--weight-semibold); background: var(--color-pine-soft); }
    .account-menu form { margin-top: var(--space-1); padding-top: var(--space-1); border-top: 1px solid var(--color-line); }

    /* Section row (ADR-164): Onboarding with its step or a check, a
       divider, then sections that stay in place, locked, until they apply. */
    .site-nav a:not(.btn) { gap: var(--space-2); }

    .site-nav__progress {
        padding: 0 var(--space-2);
        border-radius: var(--radius-round);
        background: var(--color-pine-soft);
        color: var(--color-pine);
        font-size: var(--text-xs);
        font-weight: var(--weight-semibold);
        line-height: 1.6;
    }

    /* What is new in a section (ADR-183): the shape of the step pill in the
       attention color. */
    .site-nav__new {
        min-width: 1.6em;
        padding: 0 var(--space-2);
        border-radius: var(--radius-round);
        background: var(--color-new);
        color: var(--color-on-new);
        font-size: var(--text-xs);
        font-weight: var(--weight-semibold);
        line-height: 1.6;
        text-align: center;
    }

    .site-nav__check {
        display: inline-grid;
        place-items: center;
        width: 1.25rem;
        height: 1.25rem;
        border-radius: var(--radius-round);
        background: var(--color-pine-soft);
        color: var(--color-pine);
    }

    .site-nav__check svg { width: 0.8rem; height: 0.8rem; }

    .site-nav__sep { width: 1px; align-self: stretch; margin: var(--space-3) var(--space-2); background: var(--color-line); }

    .site-nav__locked {
        display: inline-flex;
        align-items: center;
        gap: var(--space-1);
        min-height: 2.5rem;
        padding: 0 var(--space-3);
        color: var(--color-ink-faint);
        font-weight: var(--weight-medium);
        white-space: nowrap;
    }

    /* Locked items are links to the current onboarding step (ADR-167): faint
       with the lock, the usual hover background, never the current-page
       underline. */
    .site-nav a.site-nav__locked { gap: var(--space-1); color: var(--color-ink-faint); }
    .site-nav a.site-nav__locked:hover { color: var(--color-ink-muted); background: var(--color-surface-2); }

    .site-nav__locked svg { width: 0.875rem; height: 0.875rem; flex: none; }

    /* Phones: the logo mark alone makes room for the product name (the
       brand link keeps its accessible name). */
    @container (max-width: 30rem) {
        .product-switch > summary { padding-left: var(--space-3); }
        .app-header:has(.product-switch) .site-header__brand .wordmark > span {
            position: absolute;
            width: 1px;
            height: 1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .product-switch__icon, .account-menu__icon { transition: none; }
    }

    /* Narrow phones (320-384px): the decorative avatar goes (the address is
       already hidden below 40rem) and Sign out tightens, so the product
       name keeps enough room to be read. */
    @container (max-width: 30rem) {
        .app-header .site-header__bar { gap: var(--space-2); }
        .app-header .site-header__actions { gap: var(--space-1); }
        .app-header .site-header__actions .btn--s { padding-inline: var(--space-2); }
        .product-switch > summary { padding-inline: var(--space-2) var(--space-1); }
    }

    @container (max-width: 24rem) {
        .product-switch__name { font-size: var(--text-sm); }
    }

    /* Marketing header below 360px: wordmark, call to action and menu do
       not fit side by side, so the logo mark stands alone (the link keeps
       its accessible name). */
    @container (max-width: 22.5rem) {
        .site-header:not(.app-header) .site-header__brand .wordmark > span {
            position: absolute;
            width: 1px;
            height: 1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
        }
    }

    /* Phones and short landscape screens: the header scrolls away instead
       of staying on top (the app header with its section row takes a fifth
       of a 320px-wide phone screen), and the section links wrap instead of
       hiding behind a sideways scroll. relative + z-index keep the product
       menu above the page. */
    @media (max-width: 40rem) {
        .app-header { position: relative; }
        .app-subnav .site-nav { flex-wrap: wrap; overflow-x: visible; gap: 0; margin-inline: calc(var(--space-2) * -1); }
        .app-subnav .site-nav a:not(.btn), .app-subnav .site-nav__locked { padding-inline: 6px; }
        .app-subnav .site-nav__sep, .app-subnav .site-nav__locked svg { display: none; }
        .site-nav a:not(.btn) { gap: var(--space-1); }
        .site-nav__progress { padding-inline: var(--space-1); }
    }

    @media (max-height: 30rem) {
        .site-header { position: relative; }
    }

    .site-footer {
        margin-top: var(--space-9);
        padding: var(--space-7) 0 var(--space-6);
        border-top: 1px solid var(--color-line);
        color: var(--color-ink-muted);
        font-size: var(--text-sm);
    }

    .site-footer__grid {
        display: grid;
        gap: var(--space-6);
        grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(10rem, 1fr));
    }

    @media (max-width: 40rem) {
        .site-footer__grid { grid-template-columns: 1fr; }
    }

    .site-footer h2 {
        font-size: var(--text-sm);
        font-weight: var(--weight-semibold);
        letter-spacing: 0;
        color: var(--color-ink);
        margin-bottom: var(--space-3);
    }

    .site-footer ul { list-style: none; padding: 0; display: grid; gap: var(--space-2); }
    .site-footer a { color: var(--color-ink-muted); }
    .site-footer a:hover { color: var(--color-ink); }

    .site-footer__legal {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: var(--space-3);
        margin-top: var(--space-7);
        padding-top: var(--space-5);
        border-top: 1px solid var(--color-line);
    }

    .app-footer {
        margin-top: var(--space-8);
        padding: var(--space-5) 0;
        border-top: 1px solid var(--color-line);
        color: var(--color-ink-faint);
        font-size: var(--text-sm);
    }

    .app-footer .container { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
    .app-footer a { color: inherit; }

    .page { padding-block: var(--space-7) var(--space-8); }
    .page__head { display: grid; gap: var(--space-3); margin-bottom: var(--space-6); }
    .page__head p { color: var(--color-ink-muted); max-width: var(--measure); font-size: var(--text-lg); }

    .stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
    .stack > * { min-width: 0; }
    .stack--s { gap: var(--space-2); }
    .stack--l { gap: var(--space-6); }

    .cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
}

/* -------------------------------------------------------------- components */
@layer components {

    /* Wordmark: inline SVG mark + live text, so it scales and themes. */
    .wordmark {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        font-weight: var(--weight-black);
        font-size: 1.3125rem;
        letter-spacing: -0.035em;
        line-height: 1;
        color: inherit;
    }

    .wordmark svg { width: 1.6em; height: 1.6em; flex: none; }
    .wordmark__box { fill: var(--color-pine); }
    .wordmark__tick { stroke: var(--color-on-pine); }
    .wordmark__reach { stroke: var(--color-marker); }

    /* Buttons. */
    .btn {
        --btn-bg: var(--color-surface);
        --btn-fg: var(--color-ink);
        --btn-border: var(--color-line-strong);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: var(--space-2);
        min-height: 2.75rem;
        padding: 0 var(--space-5);
        border: 1px solid var(--btn-border);
        border-radius: var(--radius-s);
        background: var(--btn-bg);
        color: var(--btn-fg);
        font: inherit;
        font-weight: var(--weight-semibold);
        line-height: 1.1;
        text-decoration: none;
        text-align: center;
        cursor: pointer;
        white-space: nowrap;
        transition: background-color var(--duration-fast) ease, border-color var(--duration-fast) ease, color var(--duration-fast) ease;
    }

    .btn:hover { --btn-bg: var(--color-surface-2); color: var(--btn-fg); text-decoration: none; }
    .btn:active { translate: 0 1px; }
    .btn svg { width: 1.125em; height: 1.125em; flex: none; }

    .btn--primary {
        --btn-bg: var(--color-pine);
        --btn-fg: var(--color-on-pine);
        --btn-border: var(--color-pine);
    }

    .btn--primary:hover { --btn-bg: var(--color-pine-hover); --btn-border: var(--color-pine-hover); }

    .btn--quiet { --btn-bg: transparent; --btn-border: transparent; }
    .btn--quiet:hover { --btn-bg: var(--color-surface-2); }

    .btn--danger { --btn-fg: var(--color-danger); --btn-border: currentColor; }
    .btn--danger:hover { --btn-bg: var(--color-danger-soft); }

    .btn--s { min-height: 2.25rem; padding: 0 var(--space-3); font-size: var(--text-sm); }
    .btn--l { min-height: 3.25rem; padding: 0 var(--space-6); font-size: var(--text-lg); }
    .btn--block { width: 100%; }

    .btn:disabled, .btn[aria-disabled="true"] {
        cursor: not-allowed;
        opacity: 0.55;
        translate: none;
    }

    .btn[aria-busy="true"] { cursor: progress; }
    .btn[aria-busy="true"]::before {
        content: "";
        width: 1em;
        height: 1em;
        border-radius: 50%;
        border: 2px solid currentColor;
        border-right-color: transparent;
        animation: rs-spin 0.8s linear infinite;
    }

    @keyframes rs-spin { to { rotate: 360deg; } }

    .link-quiet { color: inherit; text-decoration-color: var(--color-line-strong); }
    .link-quiet:hover { color: var(--color-pine); text-decoration-color: currentColor; }

    .link-external::after {
        content: "";
        display: inline-block;
        width: 0.7em;
        height: 0.7em;
        margin-left: 0.25em;
        background: currentColor;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4 1h7v7M11 1 1 11' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
    }

    /* Form fields. */
    .field { display: grid; gap: var(--space-2); }

    .field__label { font-weight: var(--weight-semibold); }
    .field__optional { color: var(--color-ink-faint); font-weight: var(--weight-regular); }

    .field__help { color: var(--color-ink-muted); font-size: var(--text-sm); }

    .field__error {
        display: flex;
        gap: var(--space-2);
        color: var(--color-danger);
        font-size: var(--text-sm);
        font-weight: var(--weight-medium);
    }

    .field__error::before {
        content: "!";
        display: inline-grid;
        place-items: center;
        flex: none;
        width: 1.15rem;
        height: 1.15rem;
        margin-top: 0.1rem;
        border-radius: 50%;
        background: var(--color-danger);
        color: var(--color-surface);
        font-size: 0.75rem;
        font-weight: var(--weight-black);
    }

    .field__error:empty { display: none; }

    .input, .select, .textarea {
        width: 100%;
        min-height: 2.75rem;
        padding: var(--space-2) var(--space-3);
        border: 1px solid var(--color-line-strong);
        border-radius: var(--radius-s);
        background: var(--color-surface);
        color: var(--color-ink);
        font: inherit;
        line-height: 1.4;
        transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
    }

    .textarea { min-height: 7rem; resize: vertical; }

    .input::placeholder, .textarea::placeholder { color: var(--color-ink-faint); opacity: 1; }

    .input:hover, .select:hover, .textarea:hover { border-color: var(--color-ink-faint); }

    .input:focus-visible, .select:focus-visible, .textarea:focus-visible {
        outline: none;
        border-color: var(--color-pine);
        box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-pine) 30%, transparent);
    }

    .input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"],
    .input.input-validation-error, .textarea.input-validation-error {
        border-color: var(--color-danger);
        box-shadow: inset 3px 0 0 var(--color-danger);
    }

    .input:disabled, .select:disabled, .textarea:disabled {
        background: var(--color-surface-2);
        color: var(--color-ink-faint);
        cursor: not-allowed;
    }

    .choice {
        display: flex;
        align-items: flex-start;
        gap: var(--space-3);
        padding: var(--space-2) 0;
        cursor: pointer;
    }

    .choice input {
        flex: none;
        width: 1.125rem;
        height: 1.125rem;
        margin: 0.2rem 0 0;
        accent-color: var(--color-pine);
    }

    /* The URL field: the hook of the funnel. Input and button sit in one bar. */
    .url-form { display: grid; gap: var(--space-2); max-width: 36rem; }

    .url-form__bar {
        display: flex;
        gap: var(--space-2);
        padding: var(--space-2);
        border: 1px solid var(--color-line-strong);
        border-radius: var(--radius-m);
        background: var(--color-surface);
        box-shadow: var(--shadow-raised);
    }

    .url-form__bar:focus-within {
        border-color: var(--color-pine);
        box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-pine) 28%, transparent);
    }

    .url-form__bar .input {
        border: 0;
        box-shadow: none;
        min-height: 3rem;
        font-size: var(--text-lg);
        background: transparent;
    }

    .url-form__bar .input:focus-visible { box-shadow: none; }
    .url-form__bar .btn { min-height: 3rem; }

    .url-form__note { color: var(--color-ink-muted); font-size: var(--text-sm); }

    @media (max-width: 32rem) {
        .url-form__bar { flex-direction: column; }
        .url-form__bar .btn { width: 100%; }
    }

    /* Spinner for work that is running (analysis, strategy, teaser). */
    .spinner-line { display: flex; align-items: center; gap: var(--space-3); font-weight: var(--weight-medium); }

    .spinner {
        flex: none;
        width: 1.125rem;
        height: 1.125rem;
        border: 2px solid var(--color-line-strong);
        border-top-color: var(--color-pine);
        border-radius: 50%;
        animation: spin 0.9s linear infinite;
    }

    @keyframes spin { to { transform: rotate(360deg); } }

    /* "Back to ..." link above a page title. */
    .back-link {
        display: inline-flex;
        align-items: center;
        gap: var(--space-1);
        width: fit-content;
        color: var(--color-ink-muted);
        text-decoration: none;
    }

    .back-link svg { width: 1rem; height: 1rem; }
    .back-link:hover { color: var(--color-ink); text-decoration: underline; }

    /* A field and its button on one line; they stack on phones. */
    .inline-fields { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: stretch; }
    .inline-fields > .input, .inline-fields > .select { flex: 1 1 14rem; width: auto; min-width: 0; }
    .inline-fields > .btn { flex: none; }

    @media (max-width: 32rem) {
        .inline-fields > .btn { flex: 1 1 100%; }
    }

    /* A short page with one message and one action (unsubscribe, dev sign-in). */
    .notice-card { max-width: 34rem; margin-inline: auto; }
    .notice-card__title { font-size: var(--text-2xl); }

    /* Turnstile slot (ADR-142): hidden until Cloudflare asks the visitor to
       confirm; the status line says what the check is doing. */
    .url-form__check { min-height: 65px; }
    .url-form__check[hidden] { display: none; }
    .url-form__status { font-size: var(--text-sm); color: var(--color-ink-muted); }
    .url-form__status:empty { display: none; }
    .url-form__status[data-tone="error"] { color: var(--color-danger); font-weight: var(--weight-medium); }

    /* Cards: plain containers. Use them for things the user acts on, not for
       every paragraph. */
    .card {
        border: 1px solid var(--color-line);
        border-radius: var(--radius-l);
        background: var(--color-surface);
        padding: var(--space-5);
    }

    .card--flat { background: transparent; }
    .card--raised { box-shadow: var(--shadow-float); border-color: var(--color-line); }

    .card__title { font-size: var(--text-lg); margin-bottom: var(--space-2); }
    .card__meta { color: var(--color-ink-muted); font-size: var(--text-sm); }

    /* Check lists ("what you get", "what stays free") and the plan card
       (ADR-150): shared by the landing page, /pricing and the in-app plan
       page, so they live here rather than in marketing.css. */
    .checks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
    .checks li { display: flex; gap: var(--space-2); align-items: flex-start; }
    .checks svg { width: 1.25rem; height: 1.25rem; color: var(--color-success); flex: none; margin-top: 0.15rem; }

    .plan-card {
        display: grid;
        gap: var(--space-4);
        align-content: start;
        border: 1px solid var(--color-line-strong);
        border-radius: var(--radius-l);
        background: var(--color-surface);
        padding: clamp(var(--space-5), 3vw, var(--space-6));
        box-shadow: var(--shadow-float);
    }

    .plan-card__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
    .plan-card__name { font-size: var(--text-xl); margin: 0; }

    .plan-card__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--space-2); margin: 0; }
    .plan-card__amount { font-size: var(--text-4xl); font-weight: var(--weight-bold); letter-spacing: -0.03em; line-height: 1; }
    .plan-card__period { color: var(--color-ink-muted); font-size: var(--text-lg); }
    /* The per-day line belongs to the price, so it sits closer than the card's gap. */
    .plan-card__per-day { margin-top: calc(var(--space-2) - var(--space-4)); max-width: 44ch; }

    .plan-card__note { color: var(--color-ink-muted); max-width: 44ch; }
    .plan-card__state { padding: var(--space-3) var(--space-4); border-radius: var(--radius-m); background: var(--color-pine-soft); }

    .plan-card__actions { display: grid; gap: var(--space-2); }
    .plan-card__actions form { margin: 0; }

    .plan-card__label {
        padding-top: var(--space-4);
        border-top: 1px solid var(--color-line);
        font-weight: var(--weight-semibold);
    }

    /* Badges: channels and statuses. Rectangular tags, never pills, so they
       read as labels and not as buttons. */
    .badge {
        display: inline-flex;
        align-items: center;
        gap: 0.4em;
        min-height: 1.5rem;
        padding: 0.1rem 0.5rem;
        border: 1px solid var(--color-line);
        border-radius: var(--radius-xs);
        background: var(--color-surface);
        color: var(--color-ink-muted);
        font-size: var(--text-sm);
        font-weight: var(--weight-medium);
        line-height: 1.2;
        white-space: nowrap;
    }

    .badge__swatch {
        width: 0.55rem;
        height: 0.55rem;
        border-radius: 2px;
        background: var(--badge-swatch, var(--color-ch-other));
        flex: none;
    }

    .badge--reddit    { --badge-swatch: var(--color-ch-reddit); }
    .badge--hn        { --badge-swatch: var(--color-ch-hn); }
    .badge--directory { --badge-swatch: var(--color-ch-directory); }
    .badge--article   { --badge-swatch: var(--color-ch-article); }

    .badge--success { color: var(--color-success); background: var(--color-success-soft); border-color: transparent; }
    .badge--warning { color: var(--color-warning); background: var(--color-warning-soft); border-color: transparent; }
    .badge--danger  { color: var(--color-danger);  background: var(--color-danger-soft);  border-color: transparent; }
    .badge--info    { color: var(--color-info);    background: var(--color-info-soft);    border-color: transparent; }
    .badge--brand   { color: var(--color-pine);    background: var(--color-pine-soft);    border-color: transparent; }

    .badge--priority-high { color: var(--color-ink); border-color: var(--color-ink); font-weight: var(--weight-semibold); }

    /* Alerts. */
    .alert {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: var(--space-1) var(--space-3);
        padding: var(--space-4);
        border-radius: var(--radius-m);
        border: 1px solid transparent;
        background: var(--alert-soft, var(--color-surface-2));
        color: var(--color-ink);
    }

    .alert__icon {
        grid-row: span 2;
        width: 1.25rem;
        height: 1.25rem;
        margin-top: 0.15rem;
        color: var(--alert-color, var(--color-ink-muted));
    }

    .alert__title { font-weight: var(--weight-semibold); }
    .alert__body { color: var(--color-ink-muted); }
    .alert__body:only-of-type { grid-column: 2; }
    .alert a { color: inherit; }

    .alert--info    { --alert-color: var(--color-info);    --alert-soft: var(--color-info-soft); }
    .alert--success { --alert-color: var(--color-success); --alert-soft: var(--color-success-soft); }
    .alert--warning { --alert-color: var(--color-warning); --alert-soft: var(--color-warning-soft); }
    .alert--danger  { --alert-color: var(--color-danger);  --alert-soft: var(--color-danger-soft); }

    /* Next step: a finished milestone plus the one button to go on with. */
    .next-step {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: var(--space-3) var(--space-4);
        padding: var(--space-5);
        border: 1px solid var(--color-success);
        border-radius: var(--radius-m);
        background: var(--color-success-soft);
        color: var(--color-ink);
    }

    .next-step__icon { width: 1.5rem; height: 1.5rem; color: var(--color-success); align-self: start; }
    .next-step__text { display: grid; gap: var(--space-1); }
    .next-step__title { font-weight: var(--weight-semibold); }
    .next-step__body { color: var(--color-ink-muted); }

    @media (max-width: 40rem) {
        .next-step { grid-template-columns: auto 1fr; }
        .next-step__action { grid-column: 1 / -1; width: 100%; }
    }

    /* Today with two or more tasks (ADR-171): a switcher of compact rows at
       the top, the chosen task's card under it. */
    .today-switch { display: grid; gap: var(--space-5); scroll-margin-top: 8rem; }
    .today-switch__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
    .today-switch__list > li { margin: 0; }

    .today-switch__item {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: var(--space-3);
        padding: var(--space-3) var(--space-4);
        border: 1px solid var(--color-line);
        border-radius: var(--radius-m);
        background: var(--color-surface);
        color: var(--color-ink);
        text-decoration: none;
    }

    .today-switch__item:hover { background: var(--color-surface-2); text-decoration: none; }
    .today-switch__item[aria-current="true"] {
        border-color: var(--color-pine);
        box-shadow: inset 3px 0 0 var(--color-pine);
        background: var(--color-surface-2);
    }

    .today-switch__check svg { width: 1.25rem; height: 1.25rem; display: block; }
    .today-switch__check { color: var(--color-ink-faint); }
    .today-switch__item:not([data-status="open"]):not([data-status="inprogress"]) .today-switch__check { color: var(--color-success); }
    .today-switch__item[data-status="inprogress"] .today-switch__check { color: var(--color-pine); }

    .today-switch__main { display: grid; gap: var(--space-1); min-width: 0; }
    .today-switch__title { font-weight: var(--weight-semibold); overflow-wrap: anywhere; }
    .today-switch__item:not([data-status="open"]):not([data-status="inprogress"]) .today-switch__title { color: var(--color-ink-muted); }

    .today-switch__meta { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); font-size: var(--text-sm); color: var(--color-ink-muted); }
    .today-switch__urgent { color: var(--color-warning); font-weight: var(--weight-semibold); }
    .today-switch__status { font-weight: var(--weight-semibold); }
    .today-switch__panel[hidden] { display: none; }

    /* Empty state: always says what to do next. */
    .empty {
        display: grid;
        justify-items: start;
        gap: var(--space-3);
        padding: var(--space-6);
        border: 1px dashed var(--color-line-strong);
        border-radius: var(--radius-l);
        color: var(--color-ink-muted);
    }

    .empty__title { color: var(--color-ink); font-size: var(--text-xl); }
    .empty__body { max-width: 48ch; }
    .empty__items { display: grid; gap: var(--space-2); max-width: var(--measure); font-size: var(--text-sm); }
    .empty__items-label { font-weight: var(--weight-semibold); color: var(--color-ink); }
    .empty__items ul { margin: 0; padding-left: 1.1em; display: grid; gap: var(--space-1); }
    .empty__icon { width: 2.5rem; height: 2.5rem; color: var(--color-pine); }

    /* Locked: content behind sign-up or after the trial. The blurred part is
       decorative placeholder text (aria-hidden); the real content is never
       sent to the browser. */
    /* Filler and overlay share one grid cell, so the box grows to the
       taller of the two and a long message never clips its button. */
    .locked {
        position: relative;
        display: grid;
        border-radius: var(--radius-m);
        overflow: hidden;
        isolation: isolate;
    }

    .locked__content, .locked__overlay { grid-area: 1 / 1; min-width: 0; }

    .locked__content {
        filter: blur(6px);
        user-select: none;
        pointer-events: none;
        opacity: 0.75;
    }

    .locked__overlay {
        position: relative;
        display: grid;
        place-content: center;
        justify-items: center;
        gap: var(--space-3);
        padding: var(--space-4);
        text-align: center;
        background: color-mix(in srgb, var(--color-surface) 55%, transparent);
    }

    .locked__overlay p { max-width: 34ch; font-weight: var(--weight-medium); }

    .lock-icon { width: 1.5rem; height: 1.5rem; color: var(--color-ink); }

    /* Stepwise progress while an analysis runs. */
    .progress {
        list-style: none;
        padding: 0;
        display: grid;
        gap: 0;
        counter-reset: progress;
    }

    .progress__step {
        position: relative;
        display: grid;
        grid-template-columns: 2rem 1fr;
        column-gap: var(--space-3);
        padding-bottom: var(--space-5);
        color: var(--color-ink-faint);
    }

    .progress__step:last-child { padding-bottom: 0; }

    /* Connector line between markers. */
    .progress__step:not(:last-child)::after {
        content: "";
        position: absolute;
        left: calc(1rem - 1px);
        top: 2.1rem;
        bottom: 0.25rem;
        width: 2px;
        background: var(--color-line);
    }

    .progress__step[data-state="done"]:not(:last-child)::after { background: var(--color-pine); }

    .progress__marker {
        display: grid;
        place-items: center;
        width: 2rem;
        height: 2rem;
        border-radius: 50%;
        border: 2px solid var(--color-line-strong);
        background: var(--color-surface);
        font-size: var(--text-sm);
        font-weight: var(--weight-bold);
    }

    .progress__marker svg { width: 1rem; height: 1rem; }

    .progress__label { align-self: center; font-weight: var(--weight-medium); }
    .progress__detail { grid-column: 2; font-size: var(--text-sm); color: var(--color-ink-muted); }

    .progress__step[data-state="done"] { color: var(--color-ink-muted); }
    .progress__step[data-state="done"] .progress__marker {
        border-color: var(--color-pine);
        background: var(--color-pine);
        color: var(--color-on-pine);
    }

    .progress__step[data-state="current"] { color: var(--color-ink); }
    .progress__step[data-state="current"] .progress__label { font-weight: var(--weight-bold); }
    .progress__step[data-state="current"] .progress__marker {
        border-color: var(--color-pine);
        border-right-color: transparent;
        animation: rs-spin 1.1s linear infinite;
    }

    .progress__step[data-state="current"] .progress__marker > * { animation: rs-spin 1.1s linear infinite reverse; }

    .progress__step[data-state="failed"] { color: var(--color-ink); }
    .progress__step[data-state="failed"] .progress__marker {
        border-color: var(--color-danger);
        background: var(--color-danger);
        color: var(--color-surface);
    }

    @media (prefers-reduced-motion: reduce) {
        .progress__step[data-state="current"] .progress__marker { border-right-color: var(--color-pine); border-style: dashed; }
    }

    /* Results table. */
    .table-wrap {
        overflow-x: auto;
        border: 1px solid var(--color-line);
        border-radius: var(--radius-m);
        background: var(--color-surface);
    }

    .table {
        width: 100%;
        border-collapse: collapse;
        font-size: var(--text-sm);
    }

    .table caption {
        caption-side: top;
        text-align: left;
        padding: var(--space-4) var(--space-4) var(--space-2);
        font-weight: var(--weight-semibold);
        font-size: var(--text-md);
    }

    .table th, .table td {
        padding: var(--space-3) var(--space-4);
        text-align: left;
        vertical-align: top;
        border-bottom: 1px solid var(--color-line);
    }

    .table thead th {
        color: var(--color-ink-muted);
        font-weight: var(--weight-semibold);
        background: var(--color-surface-2);
        white-space: nowrap;
    }

    .table tbody tr:last-child > * { border-bottom: 0; }
    .table tbody tr:hover > * { background: color-mix(in srgb, var(--color-surface-2) 50%, transparent); }
    .table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
    .table tfoot td { font-weight: var(--weight-semibold); border-top: 1px solid var(--color-line-strong); border-bottom: 0; }

    /* table--stack: on phones every row becomes a block, each cell on its
       own line with its column name (data-label) in front, so the numbers
       are visible without scrolling the table sideways. */
    @media (max-width: 40rem) {
        .table--stack thead {
            position: absolute;
            width: 1px;
            height: 1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
        }

        .table--stack tbody, .table--stack tfoot, .table--stack tr { display: block; }
        .table--stack tbody th, .table--stack tbody td, .table--stack tfoot td { display: block; border: 0; padding: 0; }
        .table--stack tr { display: grid; gap: var(--space-1); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--color-line); }
        .table--stack tbody tr:last-child { border-bottom: 0; }
        .table--stack tfoot tr { display: flex; justify-content: space-between; gap: var(--space-3); border-top: 1px solid var(--color-line-strong); border-bottom: 0; }
        .table--stack tfoot td:empty { display: none; }

        .table--stack td[data-label] {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            gap: var(--space-3);
            text-align: right;
        }

        .table--stack td[data-label]::before {
            content: attr(data-label);
            color: var(--color-ink-muted);
            font-weight: var(--weight-medium);
            text-align: left;
        }

        .table--stack th[scope="row"] { min-width: 0; margin-bottom: var(--space-1); }
    }

    /* Marker highlight for evidence quotes. */
    .mark, mark {
        background: linear-gradient(transparent 8%, var(--color-marker) 8% 92%, transparent 92%);
        color: var(--color-on-marker);
        padding: 0 0.15em;
        box-decoration-break: clone;
        -webkit-box-decoration-break: clone;
    }

    .evidence {
        display: grid;
        gap: var(--space-2);
        padding-left: var(--space-4);
        border-left: 3px solid var(--color-marker);
    }

    /* balance, not pretty: Chrome skips pretty wrapping around the padded <mark>. */
    .evidence blockquote { font-size: var(--text-lg); line-height: 1.45; text-wrap: balance; }
    .evidence figcaption { color: var(--color-ink-muted); font-size: var(--text-sm); }

    /* Task card: the core object of the product. */
    .task {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-5);
        padding: var(--space-5);
        border: 1px solid var(--color-line);
        border-radius: var(--radius-l);
        background: var(--color-surface);
        min-width: 0;
    }

    .task--raised { box-shadow: var(--shadow-float); }

    /* "I've done it" celebration (reachista.js, initDoneCelebration): the
       button presses in and says "Done!" and confetti flies from it; the
       form posts after. Reduced motion skips it and the form posts at once. */
    .task.is-celebrating { position: relative; }
    .task__done .btn.is-done { flex: none; animation: done-press 0.35s ease; }
    .task__done .btn.is-done svg { animation: done-pop 0.5s 0.1s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
    .task__confetti { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
    .task__confetti span {
        position: absolute;
        left: var(--x);
        top: var(--y);
        width: 9px;
        height: 9px;
        border-radius: 2px;
        animation: done-fly 0.9s cubic-bezier(0.15, 0.75, 0.35, 1) forwards;
    }
    .task__confetti span:nth-child(odd) { border-radius: 50%; }
    @keyframes done-press { 0% { transform: scale(1); } 40% { transform: scale(0.9); } 100% { transform: scale(1); } }
    @keyframes done-pop { 0% { transform: scale(0.4); } 100% { transform: scale(1); } }
    @keyframes done-fly {
        0% { transform: translate(-50%, -50%) rotate(0) scale(1); opacity: 1; }
        70% { opacity: 1; }
        100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--rot)) scale(0.6); opacity: 0; }
    }

    .task__head { display: grid; gap: var(--space-3); }
    .task__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }

    /* Tabular figures only where numbers line up: this font's tnum feature
       also makes commas and periods fixed-width, which spaces out prose. */
    .task__minutes {
        font-variant-numeric: tabular-nums;
        display: inline-flex;
        align-items: center;
        gap: 0.35em;
        color: var(--color-ink-muted);
        font-size: var(--text-sm);
        font-weight: var(--weight-medium);
    }

    .task__minutes svg { width: 1rem; height: 1rem; }

    .task__title { font-size: var(--text-xl); line-height: var(--leading-snug); }
    .task__link { color: inherit; text-decoration: none; }
    .task__link:hover { text-decoration: underline; text-decoration-thickness: 2px; }
    .task__why { margin-top: calc(var(--space-1) * -1); }
    .task__posted { min-width: min(22rem, 100%); }
    .task[data-status="inprogress"] { border-color: var(--color-info); }
    .task__objective { color: var(--color-ink-muted); }

    .task__section { display: grid; gap: var(--space-3); }

    .task__label {
        font-size: var(--text-sm);
        font-weight: var(--weight-bold);
        color: var(--color-ink);
        letter-spacing: 0;
    }

    .task__steps {
        margin: 0;
        padding: 0;
        list-style: none;
        counter-reset: step;
        display: grid;
        gap: var(--space-3);
    }

    .task__steps li {
        counter-increment: step;
        display: grid;
        grid-template-columns: 1.75rem 1fr;
        gap: var(--space-3);
    }

    .task__steps li::before {
        content: counter(step);
        display: grid;
        place-items: center;
        width: 1.75rem;
        height: 1.75rem;
        border-radius: 50%;
        border: 1px solid var(--color-line-strong);
        font-size: var(--text-sm);
        font-weight: var(--weight-bold);
        color: var(--color-ink-muted);
    }

    .task__steps li > span { padding-top: 0.15rem; }

    .material {
        border: 1px solid var(--color-line);
        border-radius: var(--radius-m);
        background: var(--color-sunken);
        overflow: hidden;
    }

    .material__bar {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-3);
        padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4);
        border-bottom: 1px solid var(--color-line);
        background: var(--color-surface-2);
        font-size: var(--text-sm);
        color: var(--color-ink-muted);
    }

    .material__text {
        padding: var(--space-4);
        white-space: pre-wrap;
        overflow-wrap: anywhere;
        max-height: 22rem;
        overflow-y: auto;
        line-height: 1.6;
        text-wrap-style: pretty;
    }

    /* Several labelled materials on one card (M7): fields to copy into a
       form, points to write from, notes under the label. */
    .material__label { font-weight: var(--weight-semibold); color: var(--color-ink); }
    .material__tools { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--space-2); }
    .material__note {
        padding: var(--space-3) var(--space-4) 0;
        font-size: var(--text-sm);
        color: var(--color-ink-muted);
        max-width: var(--measure);
    }
    .material__points { margin: 0; padding: var(--space-3) var(--space-4) var(--space-4) calc(var(--space-4) + 1.1em); display: grid; gap: var(--space-2); }
    .material--field .material__text { padding: var(--space-3) var(--space-4); max-height: 10rem; }
    /* Tags: one copy button per item, since forms take them one by one. */
    .material__items { list-style: none; margin: 0; padding: var(--space-3) var(--space-4) var(--space-4); display: flex; flex-wrap: wrap; gap: var(--space-2); }
    .material__item {
        display: inline-flex;
        align-items: center;
        gap: var(--space-1);
        padding-inline-start: var(--space-3);
        border: 1px solid var(--color-line);
        border-radius: var(--radius-round);
        overflow-wrap: anywhere;
    }
    .material__item:not(:has(.copy-btn)) { padding: var(--space-1) var(--space-3); }
    .material__text.mono { font-size: var(--text-sm); }
    .task__section > .material + .material { margin-top: var(--space-1); }

    /* Logo and cover previews (ADR-197): shown only through <img>; the
       checkerboard shows transparent areas. */
    .asset { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); padding: var(--space-3) var(--space-4); }
    .asset__frame {
        flex: none;
        display: grid;
        place-items: center;
        width: 6rem;
        height: 6rem;
        border: 1px solid var(--color-line);
        border-radius: var(--radius-s);
        background: repeating-conic-gradient(var(--color-surface-2) 0 25%, var(--color-surface) 0 50%) 0 0 / 1rem 1rem;
        overflow: hidden;
    }
    .asset__frame--wide { width: 11rem; }
    .asset__frame img { max-width: 100%; max-height: 100%; object-fit: contain; }
    .asset__meta { display: grid; gap: var(--space-1); min-width: 0; font-size: var(--text-sm); color: var(--color-ink-muted); }
    .asset__meta strong { color: var(--color-ink); font-weight: var(--weight-semibold); }
    .asset__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); padding: 0 var(--space-4) var(--space-4); }
    .asset__upload .input { flex: 1 1 14rem; min-width: 0; }

    /* Image viewer (ADR-201): the preview is a link that reachista.js opens
       in a modal dialog; without script it opens the image itself. */
    .asset__open { cursor: zoom-in; color: inherit; text-decoration: none; }
    .asset__open:hover { border-color: var(--color-ink-muted); }

    .viewer {
        width: min(96vw, 1440px);
        max-width: none;
        max-height: 94vh;
        padding: 0;
        border: 1px solid var(--color-line);
        border-radius: var(--radius-m);
        background: var(--color-surface);
        color: var(--color-ink);
        box-shadow: var(--shadow-float);
        overflow: hidden;
    }
    .viewer::backdrop { background: rgb(10 14 12 / 0.78); }
    .viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
    .viewer__bar {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: var(--space-2) var(--space-3);
        padding: var(--space-2) var(--space-3) var(--space-2) var(--space-4);
        border-bottom: 1px solid var(--color-line);
    }
    .viewer__caption { flex: 1 1 12rem; min-width: 0; margin: 0; font-size: var(--text-sm); overflow-wrap: anywhere; }
    .viewer__count { font-size: var(--text-sm); color: var(--color-ink-muted); }
    .viewer__stage {
        position: relative;
        display: grid;
        place-items: center;
        min-height: 0;
        padding: var(--space-3);
        background: repeating-conic-gradient(var(--color-surface-2) 0 25%, var(--color-surface) 0 50%) 0 0 / 1rem 1rem;
    }
    .viewer__img { display: block; max-width: 100%; max-height: calc(94vh - 5.5rem); object-fit: contain; }
    .viewer__nav {
        position: absolute;
        top: 50%;
        translate: 0 -50%;
        width: 2.75rem;
        height: 2.75rem;
        border: 1px solid var(--color-line);
        border-radius: var(--radius-round);
        background: var(--color-surface);
        color: var(--color-ink);
        font-size: 1.75rem;
        line-height: 1;
        cursor: pointer;
        box-shadow: var(--shadow-raised);
    }
    .viewer__nav[hidden] { display: none; }
    .viewer__nav--prev { left: var(--space-2); }
    .viewer__nav--next { right: var(--space-2); }

    .copy-btn[data-copied="true"] { --btn-fg: var(--color-success); --btn-border: var(--color-success); }

    .destination {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: var(--space-3);
        padding: var(--space-3) var(--space-4);
        border-radius: var(--radius-m);
        background: var(--color-pine-soft);
    }

    .destination__url {
        flex: 1 1 12rem;
        min-width: 0;
        font-family: var(--font-mono);
        font-size: var(--text-sm);
        color: var(--color-ink);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .timer {
        display: inline-flex;
        align-items: center;
        gap: 0.4em;
        font-size: var(--text-sm);
        font-weight: var(--weight-semibold);
        color: var(--color-warning);
    }

    .timer svg { width: 1rem; height: 1rem; }
    .timer[data-state="expired"] { color: var(--color-ink-faint); font-weight: var(--weight-medium); }

    .task__actions {
        display: grid;
        gap: var(--space-4);
        padding-top: var(--space-4);
        border-top: 1px solid var(--color-line);
    }

    /* Done, start and skip on one row; wraps only on very narrow screens. */
    .task__buttons {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: var(--space-3);
    }

    .task__actions form { margin: 0; }

    .skip { position: relative; }
    .skip > summary { list-style: none; }
    .skip > summary::-webkit-details-marker { display: none; }

    .skip__panel {
        margin-top: var(--space-3);
        padding: var(--space-4);
        border: 1px solid var(--color-line);
        border-radius: var(--radius-m);
        background: var(--color-surface);
        display: grid;
        gap: var(--space-2);
        min-width: min(22rem, 100%);
    }

    .skip__panel fieldset { border: 0; padding: 0; margin: 0; }
    .skip__panel legend { font-weight: var(--weight-semibold); margin-bottom: var(--space-1); }

    .task[data-status="done"], .task[data-status="skipped"] { background: var(--color-surface-2); }
    .task[data-status="done"] .task__title, .task[data-status="skipped"] .task__title { color: var(--color-ink-muted); }

    .task__outcome {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-2) var(--space-3);
        align-items: center;
        color: var(--color-ink-muted);
        font-size: var(--text-sm);
    }

    /* Compact row for task lists. */
    .task-row {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: var(--space-3);
        padding: var(--space-3) var(--space-4);
        border-bottom: 1px solid var(--color-line);
    }

    .task-row:last-child { border-bottom: 0; }
    .task-row__title { font-weight: var(--weight-semibold); }
    .task-row__title a { color: inherit; text-decoration: none; }
    .task-row__title a:hover { text-decoration: underline; }

    /* Disclosure list (FAQ). */
    .faq { border-top: 1px solid var(--color-line); }

    .faq details { border-bottom: 1px solid var(--color-line); }

    .faq summary {
        display: flex;
        justify-content: space-between;
        gap: var(--space-4);
        padding: var(--space-4) 0;
        cursor: pointer;
        list-style: none;
        font-size: var(--text-lg);
        font-weight: var(--weight-semibold);
    }

    .faq summary::-webkit-details-marker { display: none; }

    .faq summary::after {
        content: "";
        flex: none;
        width: 0.75rem;
        height: 0.75rem;
        margin-top: 0.45rem;
        border-right: 2px solid var(--color-ink-muted);
        border-bottom: 2px solid var(--color-ink-muted);
        rotate: 45deg;
        transition: rotate var(--duration) var(--ease-out);
    }

    .faq details[open] summary::after { rotate: -135deg; margin-top: 0.7rem; }
    .faq summary:hover { color: var(--color-pine); }

    .faq__answer { padding: 0 0 var(--space-5); color: var(--color-ink-muted); max-width: var(--measure); display: grid; gap: var(--space-3); }

    /* Placeholder: content the owner still has to supply. Deliberately loud. */
    .placeholder {
        position: relative;
        padding: var(--space-5);
        border: 2px dashed var(--color-warning);
        border-radius: var(--radius-m);
        background: repeating-linear-gradient(-45deg, transparent 0 12px, color-mix(in srgb, var(--color-warning-soft) 70%, transparent) 12px 24px);
    }

    .placeholder__tag {
        position: absolute;
        top: -0.8rem;
        left: var(--space-4);
        padding: 0 var(--space-2);
        border-radius: var(--radius-xs);
        background: var(--color-warning);
        color: var(--color-surface);
        font-size: var(--text-xs);
        font-weight: var(--weight-bold);
        line-height: 1.6rem;
    }

    .placeholder-inline {
        color: var(--color-warning);
        text-decoration: underline dashed;
        text-underline-offset: 0.2em;
    }

    /* Draft banner for legal pages. */
    .draft-banner {
        padding: var(--space-3) var(--space-4);
        border-radius: var(--radius-m);
        background: var(--color-warning-soft);
        color: var(--color-warning);
        font-weight: var(--weight-semibold);
    }

    /* Prose: long-form text (legal drafts, help). */
    .prose { max-width: var(--measure); display: grid; gap: var(--space-4); }
    .prose h2 { font-size: var(--text-2xl); margin-top: var(--space-5); }
    .prose h3 { margin-top: var(--space-3); }
    .prose ul, .prose ol { padding-left: 1.25rem; display: grid; gap: var(--space-2); }

    /* Theme toggle. */
    .btn--icon { width: 2.75rem; padding: 0; }
    .theme-toggle .icon-moon { display: none; }
    :root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
    :root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

    @media (prefers-color-scheme: dark) {
        :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
        :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
    }

    /* Toast for transient confirmations ("Copied", preview-only actions). */
    .toast {
        position: fixed;
        left: 50%;
        bottom: var(--space-5);
        z-index: 50;
        translate: -50% 0;
        max-width: calc(100vw - 2rem);
        padding: var(--space-3) var(--space-5);
        border-radius: var(--radius-m);
        background: var(--color-ink);
        color: var(--color-page);
        font-weight: var(--weight-medium);
        box-shadow: var(--shadow-float);
    }

    /* Error pages. */
    .error-page { padding-block: var(--space-9); }
    .error-page__code {
        font-size: clamp(4rem, 2rem + 10vw, 9rem);
        font-weight: var(--weight-black);
        letter-spacing: -0.05em;
        line-height: 0.9;
        color: var(--color-line-strong);
    }

    .error-page h1 { margin-top: var(--space-4); }
    .error-page p:not(.error-page__code) { margin-top: var(--space-3); color: var(--color-ink-muted); max-width: 46ch; font-size: var(--text-lg); }
    .error-page .cluster { margin-top: var(--space-6); }

    /* Email preview frame (example of the daily email). */
    .email {
        border: 1px solid var(--color-line);
        border-radius: var(--radius-l);
        background: var(--color-surface);
        box-shadow: var(--shadow-float);
        overflow: hidden;
        font-size: var(--text-md);
    }

    .email__headers {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: var(--space-1) var(--space-3);
        padding: var(--space-4) var(--space-5);
        border-bottom: 1px solid var(--color-line);
        background: var(--color-surface-2);
        font-size: var(--text-sm);
    }

    .email__headers dt { color: var(--color-ink-faint); }
    .email__headers dd { margin: 0; color: var(--color-ink); min-width: 0; overflow-wrap: anywhere; }
    .email__headers .email__subject { font-weight: var(--weight-semibold); }

    .email__body { padding: var(--space-5); display: grid; gap: var(--space-4); }

    .email__list { list-style: none; padding: 0; display: grid; border: 1px solid var(--color-line); border-radius: var(--radius-m); }

    .email__item {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: var(--space-1) var(--space-3);
        padding: var(--space-3) var(--space-4);
        border-bottom: 1px solid var(--color-line);
    }

    .email__item:last-child { border-bottom: 0; }
    .email__item-title { font-weight: var(--weight-semibold); }
    .email__item-meta { grid-column: 1; display: flex; flex-wrap: wrap; gap: var(--space-2); }
    .email__item-min { grid-row: 1; grid-column: 2; color: var(--color-ink-muted); font-size: var(--text-sm); white-space: nowrap; }
    .email__foot { color: var(--color-ink-faint); font-size: var(--text-sm); }

    /* Touch screens and phones: every control is at least 44px tall (and
       icons 44px wide), the size a finger hits reliably. Links inside
       running text are exempt; links that stand alone (back links, link
       rows, menus) get the height as a flex box, not as larger text. */
    @media (pointer: coarse), (max-width: 40rem) {
        .btn--s { min-height: 2.75rem; }

        .site-footer ul { gap: 0; }
        .site-footer ul a,
        .site-footer__legal a {
            display: inline-flex;
            align-items: center;
            min-height: 2.75rem;
            min-width: 2.75rem;
        }
        .btn--icon { min-width: 2.75rem; }

        .skip-link,
        .site-header__brand,
        .back-link,
        .cluster > a:not(.btn) {
            display: inline-flex;
            align-items: center;
            min-height: 2.75rem;
        }

        .site-header__brand { min-width: 2.75rem; }

        .site-nav a:not(.btn),
        .product-switch > summary,
        .site-menu__theme { min-height: 2.75rem; }

        .site-menu__panel a,
        .product-switch__panel a,
        .account-menu__links a,
        .account-menu__out {
            display: flex;
            align-items: center;
            min-height: 2.75rem;
        }

        .choice { min-height: 2.75rem; align-items: center; }
        .choice input { margin-top: 0; }
    }

    /* Phones: a reply in a 22rem box with its own scroll traps the swipe
       (the box scrolls, the page doesn't), so prepared texts show in full.
       Only a long draft that also comes as a download keeps a window,
       sized to the screen. */
    @media (max-width: 40rem) {
        /* A long label ("Sign up free: 7-day trial, no card") wraps instead
           of pushing the page sideways. */
        .btn { white-space: normal; max-width: 100%; padding-block: var(--space-2); }
        /* Header buttons are short and must not shrink the wordmark. */
        .site-header .btn { white-space: nowrap; }

        .material__text { max-height: none; overflow-y: visible; }
        /* The destination address wraps (up to three lines) instead of
           ending in an ellipsis after 25 characters. */
        .destination__url {
            flex-basis: 100%;
            white-space: normal;
            overflow-wrap: anywhere;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 3;
            line-clamp: 3;
        }
        .material--long .material__text { max-height: 60dvh; overflow-y: auto; }
    }
}

/* --------------------------------------------------------------- utilities */
@layer utilities {
    .visually-hidden {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        margin: -1px !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        white-space: nowrap !important;
        border: 0 !important;
    }

    .muted { color: var(--color-ink-muted); }
    .small { font-size: var(--text-sm); }
    .lead { font-size: var(--text-lg); color: var(--color-ink-muted); max-width: var(--measure); }
    .mono { font-family: var(--font-mono); }
    .nowrap { white-space: nowrap; }
    .break-anywhere { overflow-wrap: anywhere; }
    .mt-0 { margin-top: 0; }
}
