/* ═══════════════════════════════════════════════════════════════════════════
   BIOME DESIGN SYSTEM — tokens and surfaces

   The look that grew out of the desktop sign-in window, the sphere splash and
   the home screen, made official: near-black canvas with drifting colour,
   glass cards with a top sheen, lime pill for the one thing to do, ghost
   pills for everything else, lavender eyebrow labels, spring motion.

   - Rust components in crates/biome-ui/src/ds wrap these classes; reach for
     those first. docs/DESIGN_SYSTEM.md is the guide; /design is the gallery.
   - assets/ds-chat.css (loaded right after this) adds only what chat alone
     has — the server rail, message rows, the composer — on these tokens and
     pieces; it has no tokens, spheres, panels or switches of its own.
   - Every colour is a token. Light mode redefines the tokens (crates/
     biome-app/index.html, `.light { --ds-… }`), so a component never needs
     its own light override.
   - A section tints a subtree by setting --ds-accent-rgb (the .ds-accent-*
     classes, or ds::Canvas { accent }). Cards, ghost hovers, chips, tabs and
     the canvas mesh all pick it up.
   - These rules are unlayered, like the rest of main.css, so they beat
     Tailwind utilities on the same property. Size and tone come from the
     component props (ds-btn-sm, ds-btn-primary…), not from h-8 / text-xs.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    /* canvas + surfaces */
    --ds-canvas: #0a0508;
    --ds-canvas-top: #1d0c17;
    --ds-mesh: 1;                              /* canvas drift layer opacity */
    --ds-surface: rgba(18, 8, 16, 0.78);       /* glass card */
    --ds-surface-solid: #120810;
    --ds-fill: rgba(255, 255, 255, 0.03);      /* pills, chips, tracks */
    --ds-fill-hover: rgba(255, 255, 255, 0.06);
    --ds-line: rgba(255, 255, 255, 0.10);      /* hairline */
    --ds-line-soft: rgba(255, 255, 255, 0.07);
    --ds-line-hover: rgba(255, 255, 255, 0.18);
    --ds-sheen: rgba(255, 255, 255, 0.10);     /* top inner light */
    --ds-sheen-soft: rgba(255, 255, 255, 0.06);
    --ds-gloss: rgba(255, 255, 255, 0.22);     /* the light on a round button (the wheel) */
    --ds-gloss-soft: rgba(255, 255, 255, 0.14);
    --ds-gloss-hi: rgba(255, 255, 255, 0.3);
    --ds-shade: rgba(0, 0, 0, 0.6);            /* bottom inner shade */
    --ds-glow: rgba(150, 48, 118, 0.45);        /* card drop shadow */
    --ds-bloom: 0.20;                          /* accent bloom strength */
    --ds-bloom-b: hsla(336, 70%, 42%, 0.20);
    --ds-bloom-c: hsla(228, 75%, 52%, 0.10);
    --ds-scrim-rgb: 18, 8, 16;                 /* fades over imagery */

    /* Pictures keep a dark scrim and white ink in every worn style
       (SKINS_SPEC §4), including the signature's sky and black top bar. */
    --ds-picture-ink-rgb: 255, 255, 255;
    --ds-on-picture: rgb(var(--ds-picture-ink-rgb));
    --ds-picture-scrim-rgb: 4, 6, 10;
    --ds-picture-edge-rgb: 6, 8, 14;
    --ds-picture-black-rgb: 0, 0, 0;
    --ds-picture-text-shadow: 0 1px 8px rgba(var(--ds-picture-black-rgb), 0.45);
    --ds-brand-pink: #ff71ce;
    --ds-on-brand-pink: #050507;
    --ds-bluesky: #208bfe;

    /* Origin badges identify authorship across store and home artwork;
       their chrome and paper stay readable independently of the skin. */
    --ds-origin-cyborg-ink: #dff9ff;
    --ds-origin-cyborg-rgb: 159, 231, 255;
    --ds-origin-cyborg-fill: linear-gradient(120deg, #11151d 0%, #2a3140 40%, #0e1218 62%, #1d2a33 100%);
    --ds-origin-human-ink: #2a1608;
    --ds-origin-human-rgb: 42, 22, 8;
    --ds-origin-human-fill: linear-gradient(120deg, #fff4dc 0%, #ffe2b0 100%);
    --ds-origin-human-mark: #e2631d;

    /* ink */
    --ds-ink: #f3f4f6;
    --ds-ink-2: rgba(209, 213, 219, 0.85);
    --ds-ink-3: rgba(156, 163, 175, 0.9);
    --ds-label: rgba(232, 182, 226, 0.8);

    /* accents */
    --ds-accent-rgb: 208, 116, 206;            /* lavender until a section sets one */
    --ds-lime-hi: #d9ff8a;
    --ds-lime-lo: #7fd400;
    --ds-lime-glow: rgba(127, 212, 0, 0.55);
    --ds-lime-glow-hi: rgba(127, 212, 0, 0.7);
    --ds-on-lime: #0b1014;
    --ds-lime-rgb: 190, 242, 100;              /* lime ink: you, dots, sub-labels */
    --ds-lime-wash: rgba(127, 212, 0, 0.075);  /* a row that @mentions you */
    --ds-link: #5eead4;
    /* A sentence taken apart (gloss.rs): nouns, verbs and adjectives in their
       own ink, each letter edged so it reads on any ground. */
    --ds-pos-noun: #6cb6ff;
    --ds-pos-verb: #ffa94d;
    --ds-pos-adj: #69db7c;
    --ds-word-edge: #000000;
    --ds-link-hover: #99f6e4;
    --ds-warn: #fde68a;
    --ds-warn-line: rgba(251, 191, 36, 0.4);
    --ds-danger: #ffb27a;
    --ds-danger-line: rgba(255, 125, 17, 0.55);

    /* chart series: categorical slots in a FIXED order (a thing keeps its
       slot whatever the filter). Validated (dataviz validate_palette.js,
       dark, on the admin desk's card #100e16): lightness band, chroma floor,
       CVD separation (worst adjacent ΔE 8.4), normal-vision floor, 3:1
       contrast. Never the status colours. Light mode: index.html's .light. */
    --ds-series-1: #3987e5;
    --ds-series-2: #d95926;
    --ds-series-3: #199e70;
    --ds-series-4: #c98500;
    --ds-series-5: #d55181;
    --ds-series-6: #008300;
    --ds-series-7: #9085e9;
    --ds-series-8: #e66767;
    /* diverging (the money chart's profit view): a blue pole above zero, a
       red pole below, the neutral --ds-line at zero. The poles are series-1
       and -8, so they pass the same checks. */
    --ds-diverge-pos: #3987e5;
    --ds-diverge-neg: #e66767;
    /* The brand pink as text (the landing's door headlines): itself on a dark
       ground, deeper on a light one (index.html .light, skin.rs LIGHT) so it
       keeps 3:1 there. */
    --ds-pink-ink: #ff71ce;

    /* type */
    --ds-serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;  /* loaded by index.html / custom_head.rs */
    /* Page headlines and section headings (h1 / h2 in the serif): the cyber face. */
    --ds-headline: 'Oxanium', 'Rajdhani', 'Arial Narrow', sans-serif;
    --ds-mono: 'Share Tech Mono', ui-monospace, monospace;

    /* chrome: the floating bar, the drawer panel, the jelly */
    --ds-bar: rgba(10, 7, 22, 0.62);           /* floating bar glass */
    --ds-bar-bloom: hsla(250, 85%, 55%, 0.18); /* its glow at the brand end */
    --ds-bar-shadow: rgba(0, 0, 0, 0.8);
    --ds-panel: rgba(9, 6, 20, 0.84);          /* drawer glass */
    --ds-panel-shadow: rgba(0, 0, 0, 0.9);
    --ds-ring: #0c0918;                        /* gap around stacked spheres */
    /* The jelly is an object: the same in both themes (only its glow and
       drop soften in light mode). */
    --ds-jelly-base: #17031c;
    --ds-jelly-a: hsla(300, 72%, 62%, 0.85);   /* orchid */
    --ds-jelly-b: hsla(332, 80%, 60%, 0.75);   /* rose */
    --ds-jelly-c: hsla(268, 85%, 60%, 0.65);   /* violet */
    --ds-jelly-fill:
        radial-gradient(at 30% 26%, var(--ds-jelly-a) 0px, transparent 55%),
        radial-gradient(at 78% 22%, var(--ds-jelly-b) 0px, transparent 52%),
        radial-gradient(at 72% 78%, var(--ds-jelly-c) 0px, transparent 55%);
    --ds-jelly-glow: rgba(170, 60, 160, 0.8);
    --ds-jelly-drop: rgba(0, 0, 0, 0.6);
    --ds-jelly-rim: rgba(255, 255, 255, 0.14);   /* a jelly's edge */
    --ds-jelly-shade: rgba(0, 0, 0, 0.55);        /* its inner bottom */
    --ds-jelly-gloss: rgba(255, 255, 255, 0.5);   /* its inner top */
    --ds-on-jelly: #ffffff;

    /* shape — one radius scale, the store's sharp, slightly rounded corners
       (2026-10-21). Every corner in the app is one of these; Tailwind's
       rounded-* utilities read them too (tailwind.config.js). Pills (9999px)
       and circles (50%) stay round; device mock-ups and avatar squircles keep
       their own shape. */
    --ds-r-xs: 3px;     /* tags, badges on art */
    --ds-r-sm: 4px;     /* small controls, thumbnails */
    --ds-r-md: 6px;     /* fields, menu rows */
    --ds-r-lg: 8px;     /* cards, tiles, popovers */
    --ds-r-xl: 12px;    /* panels, heroes, dialogs */
    --ds-r-card: var(--ds-r-xl);
    --ds-r-tile: var(--ds-r-lg);
    --ds-r-field: var(--ds-r-md);

    /* type and shape a worn style changes (docs/SKINS_SPEC.md) */
    --ds-sans: 'Inter', sans-serif;
    --ds-display: 'Rajdhani', sans-serif;   /* buttons, tabs, labels */
    --ds-case: uppercase;                   /* display type's case */
    --ds-track: 1;                          /* scales display letter-spacing */
    --ds-r-pill: 9999px;                    /* pills: buttons, tabs, chips, bars */
    --ds-lift: 1;                           /* hover lift and spring */

    /* motion */
    --ds-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ds-ease: cubic-bezier(0.65, 0, 0.35, 1);
}

/* The app shell's bars, for pages that fill the screen (routing.rs
   MainLayout sizes <main> with these):
   - top: the black top bar (46px on every screen; routing/header.rs),
     plus the voice-call row while it is shown. Home and the clubs pages
     open on the signature, with the bar fixed over the page, so there the
     header takes no room (`has-sign`).
   - bottom: what a full-screen page leaves free at the bottom — the
     phone's floating bar (56px + 8px off the edge + the home indicator),
     the desktop chin (42px, 5px off the edge, so 3rem clears it). */
:root {
    --ds-shell-header: 2.875rem;
    --ds-shell-top: var(--ds-shell-header);
    --ds-shell-bottom: calc(4rem + env(safe-area-inset-bottom));
}
.ds-shell {
    --ds-shell-call: 0px;
    --ds-shell-top: calc(var(--ds-shell-header) + var(--ds-shell-call));
}
.ds-shell:has(> .ds-parts-callbar) { --ds-shell-call: 48px; }
.ds-shell.has-sign { --ds-shell-header: 0px; }

/* A full-bleed page runs under the top bar, so the bar floats on the page's
   own canvas instead of a band of shell colour. <main> starts the header's
   height higher and pads it back down, so content, sticky rails (they stick
   inside the padding) and scroll targets all stay below the bar; the canvas
   alone reaches up behind it. */
.ds-shell-under {
    margin-top: calc(-1 * var(--ds-shell-header));
    padding-top: var(--ds-shell-header);
    scroll-padding-top: var(--ds-shell-header);
}
.ds-shell-under > .ds-canvas {
    margin-top: calc(-1 * var(--ds-shell-header));
    padding-top: var(--ds-shell-header);
}
/* Keep the desktop navigation anchored independently of generated utilities. */
.ds-shell-chin {
    display: none;
    position: fixed;
    bottom: 5px;
    left: 12px;
    right: 12px;
    z-index: 40;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    pointer-events: none;
}
@media (min-width: 768px) {
    .ds-shell-chin { display: flex; }
    :root {
        --ds-shell-bottom: 3rem;
    }
}

/* ── Scrolling stops hard ─────────────────────────────────────────────────
   At the end of a scroll there is no stretch, bounce or glow, and the
   scroll doesn't carry on into whatever is behind. Covers the page (the
   document on phones, the shell's <main> from md up) and every Tailwind
   overflow-*-auto box; a ds class that scrolls sets it beside its own
   overflow. A sideways strip sets only the x axis, so a vertical scroll
   over it still moves the page — which is why this is not a rule on
   every element. */
html, body, main,
[class*="overflow-auto"], [class*="overflow-y-auto"] { overscroll-behavior: none; }
[class*="overflow-x-auto"] { overscroll-behavior-x: none; }

/* Section accents — the same hues home.rs gives each jelly button. */
.ds-accent-home     { --ds-accent-rgb: 200, 110, 210; }
.ds-accent-forum    { --ds-accent-rgb: 142, 230, 190; }
.ds-accent-guilds   { --ds-accent-rgb: 216, 104, 196; }
.ds-accent-live     { --ds-accent-rgb: 255, 72, 48; }
.ds-accent-discover { --ds-accent-rgb: 251, 176, 59; }
.ds-accent-market   { --ds-accent-rgb: 255, 91, 139; }
.ds-accent-vote     { --ds-accent-rgb: 150, 230, 60; }
.ds-accent-music    { --ds-accent-rgb: 255, 159, 67; }
.ds-accent-shop     { --ds-accent-rgb: 45, 200, 230; }

/* ── Canvas — a page's ground: vignette + a still, blurred mesh ───────── */
.ds-canvas {
    position: relative;
    isolation: isolate;
    overflow: clip;
    background-color: var(--ds-canvas);
    background-image: radial-gradient(ellipse at top, var(--ds-canvas-top) 0%, var(--ds-canvas) 80%);
}
.ds-canvas::before {
    content: '';
    position: absolute;
    inset: -20%;
    z-index: -1;
    pointer-events: none;
    opacity: var(--ds-mesh);
    background-image:
        radial-gradient(at 28% 22%, rgba(var(--ds-accent-rgb), 0.20) 0px, transparent 50%),
        radial-gradient(at 75% 70%, hsla(334, 62%, 28%, 0.24) 0px, transparent 50%);
    filter: blur(60px);
}
@keyframes ds-drift {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(4vw, -3vh) scale(1.08); }
}

/* ── Dusk — the brand's strip: a retro sunset in flat bands (ds::Dusk) ───
   Night violet at the top down through pink and coral to peach, cut into
   flat bands, with fine scan lines over the lower half and a film grain.
   It's the brand's, like the logo: the same in every style and in light
   mode. The bands sink slowly; with reduced motion they hold still. The
   element sizes it (the sign-in window's edge, the door's panel, the
   landing's hero); a rule that places it absolutely needs a parent in its
   selector to outrank the `position: relative` here. */
.ds-dusk {
    position: relative;
    overflow: hidden;
    pointer-events: none;
    /* The bands, top to bottom: the brand's, never a style's. */
    --ds-dusk-1: #14051f;
    --ds-dusk-2: #2c0a4a;
    --ds-dusk-3: #5a12a8;
    --ds-dusk-4: #a41fd0;
    --ds-dusk-5: #ff2e93;
    --ds-dusk-6: #ff71ce;
    --ds-dusk-7: #ff6a5c;
    --ds-dusk-8: #ffb08a;
    --ds-dusk-line: rgba(0, 0, 0, 0.55);
    --ds-dusk-bands: linear-gradient(180deg,
        var(--ds-dusk-1) 0 18%, var(--ds-dusk-2) 18% 32%, var(--ds-dusk-3) 32% 44%, var(--ds-dusk-4) 44% 54%,
        var(--ds-dusk-5) 54% 64%, var(--ds-dusk-6) 64% 74%, var(--ds-dusk-7) 74% 86%, var(--ds-dusk-8) 86% 100%);
    background-color: var(--ds-dusk-1);
    background-image: var(--ds-dusk-bands);
    background-size: 100% 114%;
    background-position: 50% 0%;
    animation: ds-dusk-sink 30s ease-in-out infinite alternate;
}
.ds-dusk::before,
.ds-dusk::after {
    content: "";
    position: absolute;
    inset: 0;
}
/* Scan lines, fading in from the middle down. */
.ds-dusk::before {
    background-image: repeating-linear-gradient(180deg, transparent 0 3px, var(--ds-dusk-line) 3px 4px);
    -webkit-mask-image: linear-gradient(180deg, transparent 48%, black 70%);
    mask-image: linear-gradient(180deg, transparent 48%, black 70%);
}
/* Film grain. */
.ds-dusk::after {
    opacity: 0.25;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
@keyframes ds-dusk-sink {
    from { background-position: 50% 0%; }
    to   { background-position: 50% 100%; }
}
/* With a sky (ds::Dusk `sky`): the day's photo, the bands over it in
   `color` blend so they tint the real stars and skyline, then the scan
   lines and the grain on top. The photo sits on its foot, so a strip or a
   panel of any height keeps the horizon. */
.ds-dusk.is-sky::before { z-index: 2; }
.ds-dusk.is-sky::after { z-index: 3; }
.ds-dusk-sky,
.ds-dusk-tint {
    position: absolute;
    inset: 0;
}
/* No colour of its own: until the photo lands the bands show through,
   instead of a night-coloured layer fading up over them. */
.ds-dusk-sky {
    z-index: 0;
    background-size: cover;
    background-position: 50% 100%;
    animation: ds-dusk-sky-in 0.9s ease both;
}
/* The day's photo, from the day the page stamped on <html> before it painted
   (index.html, custom_head.rs), so it loads with the page rather than after
   hydration. ds::Dusk also sets it inline once the app knows the day. */
html[data-dusk-day="sun"] .ds-dusk-sky.is-tall { background-image: url("https://covers.glitchclub.gg/assets/store-samples/dusk-skies/sun-tall.jpg"); }
html[data-dusk-day="sun"] .ds-dusk-sky.is-wide { background-image: url("https://covers.glitchclub.gg/assets/store-samples/dusk-skies/sun-wide.jpg"); }
html[data-dusk-day="mon"] .ds-dusk-sky.is-tall { background-image: url("https://covers.glitchclub.gg/assets/store-samples/dusk-skies/mon-tall.jpg"); }
html[data-dusk-day="mon"] .ds-dusk-sky.is-wide { background-image: url("https://covers.glitchclub.gg/assets/store-samples/dusk-skies/mon-wide.jpg"); }
html[data-dusk-day="tue"] .ds-dusk-sky.is-tall { background-image: url("https://covers.glitchclub.gg/assets/store-samples/dusk-skies/tue-tall.jpg"); }
html[data-dusk-day="tue"] .ds-dusk-sky.is-wide { background-image: url("https://covers.glitchclub.gg/assets/store-samples/dusk-skies/tue-wide.jpg"); }
html[data-dusk-day="wed"] .ds-dusk-sky.is-tall { background-image: url("https://covers.glitchclub.gg/assets/store-samples/dusk-skies/wed-tall.jpg"); }
html[data-dusk-day="wed"] .ds-dusk-sky.is-wide { background-image: url("https://covers.glitchclub.gg/assets/store-samples/dusk-skies/wed-wide.jpg"); }
html[data-dusk-day="thu"] .ds-dusk-sky.is-tall { background-image: url("https://covers.glitchclub.gg/assets/store-samples/dusk-skies/thu-tall.jpg"); }
html[data-dusk-day="thu"] .ds-dusk-sky.is-wide { background-image: url("https://covers.glitchclub.gg/assets/store-samples/dusk-skies/thu-wide.jpg"); }
html[data-dusk-day="fri"] .ds-dusk-sky.is-tall { background-image: url("https://covers.glitchclub.gg/assets/store-samples/dusk-skies/fri-tall.jpg"); }
html[data-dusk-day="fri"] .ds-dusk-sky.is-wide { background-image: url("https://covers.glitchclub.gg/assets/store-samples/dusk-skies/fri-wide.jpg"); }
html[data-dusk-day="sat"] .ds-dusk-sky.is-tall { background-image: url("https://covers.glitchclub.gg/assets/store-samples/dusk-skies/sat-tall.jpg"); }
html[data-dusk-day="sat"] .ds-dusk-sky.is-wide { background-image: url("https://covers.glitchclub.gg/assets/store-samples/dusk-skies/sat-wide.jpg"); }
.ds-dusk-tint {
    z-index: 1;
    mix-blend-mode: color;
    opacity: 0.85;
    background-image: var(--ds-dusk-bands);
    background-size: 100% 114%;
    background-position: 50% 0%;
    animation: ds-dusk-sink 30s ease-in-out infinite alternate;
}
/* Across (the black bar, the panel's head): the bands run left to right,
   and so do the scan lines and the drift. */
.ds-dusk.is-across {
    --ds-dusk-bands: linear-gradient(90deg,
        var(--ds-dusk-1) 0 18%, var(--ds-dusk-2) 18% 32%, var(--ds-dusk-3) 32% 44%, var(--ds-dusk-4) 44% 54%,
        var(--ds-dusk-5) 54% 64%, var(--ds-dusk-6) 64% 74%, var(--ds-dusk-7) 74% 86%, var(--ds-dusk-8) 86% 100%);
    background-size: 114% 100%;
    animation-name: ds-dusk-drift;
}
.ds-dusk.is-across::before {
    background-image: repeating-linear-gradient(90deg, transparent 0 3px, var(--ds-dusk-line) 3px 4px);
    -webkit-mask-image: linear-gradient(90deg, transparent 48%, black 70%);
    mask-image: linear-gradient(90deg, transparent 48%, black 70%);
}
.ds-dusk.is-across .ds-dusk-tint {
    background-size: 114% 100%;
    animation-name: ds-dusk-drift;
}
.ds-dusk.is-across .ds-dusk-sky { background-position: 50% 60%; }
@keyframes ds-dusk-drift {
    from { background-position: 0% 50%; }
    to   { background-position: 100% 50%; }
}
@keyframes ds-dusk-sky-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
/* The signature (ds::DuskSign): the wide sky through the bands with the
   logo in the middle, up on the violet bands where its pink .gg and star
   still read. */
.ds-dusk-sign {
    --ds-dusk-shade: rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
}
.ds-dusk-sign .ds-dusk-sign-sky { position: absolute; inset: 0; }
.ds-dusk-sign-sky .ds-dusk-sky { background-position: 50% 70%; }
.ds-dusk-sign-logo {
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 40%;
    width: min(46%, 380px);
    height: auto;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 4px 24px var(--ds-dusk-shade));
    pointer-events: none;
    user-select: none;
}
@media (prefers-reduced-motion: reduce) {
    .ds-dusk, .ds-dusk-tint, .ds-dusk-sky { animation: none; }
}

/* ── Card — glass tile with a top sheen and accent blooms ─────────────── */
.ds-card {
    position: relative;
    border-radius: var(--ds-r-card);
    border: 1px solid var(--ds-line);
    background-color: var(--ds-surface);
    background-image:
        radial-gradient(ellipse 70% 30% at 30% 0%, var(--ds-sheen-soft), transparent 70%),
        radial-gradient(at 10% 8%, rgba(var(--ds-accent-rgb), var(--ds-bloom)) 0px, transparent 50%),
        radial-gradient(at 95% 20%, var(--ds-bloom-b) 0px, transparent 50%),
        radial-gradient(at 88% 96%, var(--ds-bloom-c) 0px, transparent 50%);
    box-shadow:
        inset 0 1px 0 var(--ds-sheen),
        inset 0 -30px 60px -40px var(--ds-shade),
        0 30px 80px -30px var(--ds-glow);
}
/* For lists and dense stacks: same glass, no blooms or drop glow. */
.ds-card.ds-card-flat {
    background-image: radial-gradient(ellipse 70% 30% at 30% 0%, var(--ds-sheen-soft), transparent 70%);
    box-shadow: inset 0 1px 0 var(--ds-sheen);
}
.ds-card-hover {
    transition:
        transform 0.3s var(--ds-spring),
        border-color 0.25s ease,
        box-shadow 0.3s ease;
}
.ds-card-hover:hover {
    transform: translateY(calc(-2px * var(--ds-lift)));
    border-color: rgba(var(--ds-accent-rgb), 0.45);
}

/* Entrance: spring up; stagger with style="--ds-delay: 120ms". `backwards`
   so a hover transform still applies once it has landed. */
.ds-rise { animation: ds-rise 0.6s var(--ds-spring) var(--ds-delay, 0ms) backwards; }
@keyframes ds-rise {
    from { opacity: 0; transform: translateY(18px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Glass — the pill surface (stat pills, tracks, icon buttons) ──────── */
.ds-glass {
    border: 1px solid var(--ds-line);
    background-color: var(--ds-fill);
    box-shadow: inset 0 1px 0 var(--ds-sheen-soft);
}

/* ── Type ──────────────────────────────────────────────────────────────── */
.ds-label {
    font-family: var(--ds-sans);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: calc(0.3em * var(--ds-track));
    text-transform: var(--ds-case);
    color: var(--ds-label);
}
.ds-title {
    font-family: var(--ds-display);
    font-weight: 700;
    text-transform: var(--ds-case);
    letter-spacing: calc(0.12em * var(--ds-track));
    line-height: 1.05;
    color: var(--ds-ink);
}
.ds-ink   { color: var(--ds-ink); }
.ds-ink-2 { color: var(--ds-ink-2); }
.ds-ink-3 { color: var(--ds-ink-3); }
.ds-link {
    color: var(--ds-link);
    transition: color 0.2s ease;
}
.ds-link:hover { color: var(--ds-link-hover); }
/* Breathing status line — "finding guilds…", "opening chat…". */
.ds-status {
    font-size: 10px;
    letter-spacing: calc(0.35em * var(--ds-track));
    text-transform: var(--ds-case);
    color: var(--ds-ink-2);
    animation: ds-breathe 2.4s ease-in-out infinite;
}
@keyframes ds-breathe {
    0%, 100% { opacity: 0.45; }
    50%      { opacity: 1; }
}

/* ── Buttons — lime primary, ghost, accent, quiet; sm / md / lg ───────── */
.ds-btn {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    gap: 0.55em;
    height: 40px;
    padding: 0 18px;
    border-radius: var(--ds-r-pill);
    border: 1px solid transparent;
    font-family: var(--ds-display);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: calc(0.2em * var(--ds-track));
    line-height: 1;
    text-transform: var(--ds-case);
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    transition:
        transform 0.3s var(--ds-spring),
        box-shadow 0.3s ease,
        border-color 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease,
        filter 0.2s ease;
}
.ds-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(var(--ds-accent-rgb), 0.35); }
.ds-btn:disabled { cursor: default; }
.ds-btn-sm { height: 30px; padding: 0 12px; font-size: 10px; }
.ds-btn-lg { height: 46px; padding: 0 24px; font-size: 12px; }
.ds-btn-icon { width: 40px; padding: 0; letter-spacing: 0; }
.ds-btn-icon.ds-btn-sm { width: 30px; }
.ds-btn-icon.ds-btn-lg { width: 46px; }

.ds-btn-primary {
    color: var(--ds-on-lime);
    background-image: linear-gradient(180deg, var(--ds-lime-hi) 0%, var(--ds-lime-lo) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        0 10px 28px -8px var(--ds-lime-glow);
}
.ds-btn-primary:hover:not(:disabled) {
    transform: translateY(calc(-2px * var(--ds-lift))) scale(calc(1 + 0.03 * var(--ds-lift)));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        0 14px 36px -8px var(--ds-lime-glow-hi);
}
.ds-btn-primary:disabled { filter: saturate(0.3) brightness(0.75); }

.ds-btn-ghost {
    color: var(--ds-ink-2);
    border-color: var(--ds-line-hover);
    background-color: var(--ds-fill);
    box-shadow: inset 0 1px 0 var(--ds-sheen-soft);
}
.ds-btn-ghost:hover:not(:disabled) {
    color: var(--ds-ink);
    border-color: rgba(var(--ds-accent-rgb), 0.5);
    background-color: rgba(var(--ds-accent-rgb), 0.10);
    transform: translateY(-1px);
}
.ds-btn-ghost:disabled { opacity: 0.5; }

/* Accent = a ghost that's switched on (following, joined, selected). */
.ds-btn-accent {
    color: var(--ds-ink);
    border-color: rgba(var(--ds-accent-rgb), 0.6);
    background-color: rgba(var(--ds-accent-rgb), 0.16);
    box-shadow: inset 0 1px 0 var(--ds-sheen-soft);
}
.ds-btn-accent:hover:not(:disabled) {
    background-color: rgba(var(--ds-accent-rgb), 0.24);
    transform: translateY(-1px);
}
.ds-btn-accent:disabled { opacity: 0.6; }

.ds-btn-danger {
    color: var(--ds-danger);
    border-color: var(--ds-danger-line);
    background-color: rgba(255, 125, 17, 0.10);
}
.ds-btn-danger:hover:not(:disabled) { background-color: rgba(255, 125, 17, 0.18); }

/* Quiet = text only, for "cancel", "back", inline actions. */
.ds-btn-quiet {
    color: var(--ds-ink-3);
    background: none;
}
.ds-btn-quiet:hover:not(:disabled) { color: var(--ds-ink); }
.ds-btn-quiet.is-danger, .ds-btn-quiet.is-danger:hover:not(:disabled) { color: var(--ds-danger); }
.ds-btn-quiet.ds-btn-icon:hover:not(:disabled) { background-color: var(--ds-fill-hover); }
.ds-btn-quiet:disabled, .ds-btn-ghost.ds-btn-icon:disabled { opacity: 0.35; cursor: default; }

/* Calm = sentence case in the reading font, for tools inside an editor (the
   page builder, the resume studio) where an all-caps label would shout. Any
   tone; Lg is its main action. */
.ds-btn.ds-btn-calm {
    height: auto;
    min-height: 30px;
    padding: 5px 12px;
    font-family: inherit;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: normal;
    text-transform: none;
    white-space: normal;
}
.ds-btn.ds-btn-calm.ds-btn-lg { padding: 9px 18px; font-size: 14px; font-weight: 700; }
.ds-btn.ds-btn-calm.ds-btn-sm { min-height: 24px; padding: 2px 10px; font-size: 12px; }

/* Link = a button that reads as a link: no fill, no border, underlined. */
.ds-btn-link {
    height: auto;
    padding: 0;
    border: 0;
    background: none;
    color: rgb(var(--ds-lime-rgb));
    text-decoration: underline;
    text-underline-offset: 3px;
}
.ds-btn.ds-btn-link.ds-btn-calm { padding: 0; min-height: 0; }
.ds-btn-link:hover:not(:disabled) { color: var(--ds-ink); }

/* Swap = every label a button can show (join / ✓ joined / leave) stacked in
   one cell, so it's as wide as the longest and its row never shifts when the
   label changes. `.on` is the label showing; in a hovered button, `.on-hover`
   shows and `.off-hover` hides. */
.ds-swap { display: inline-grid; justify-items: center; }
.ds-swap > * { grid-area: 1 / 1; visibility: hidden; }
.ds-swap > .on,
.ds-btn:hover:not(:disabled) .ds-swap > .on-hover { visibility: visible; }
.ds-btn:hover:not(:disabled) .ds-swap > .off-hover { visibility: hidden; }

/* An action that asks first (ds::AskFirst): its question and answers in a row. */
.ds-ask { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* A picture behind a warning (ds::Veil, ds::VeilCover): what's inside is
   blurred past recognising and can't be pressed; the cover over it carries
   the note and takes the press. The cover is a size container, so a small
   tile keeps only what fits: the note goes first, then "press to see it". */
.ds-veil { position: relative; overflow: hidden; }
.ds-veil.is-on > :not(.ds-veil-cover) { filter: blur(26px) saturate(0.55) brightness(0.8); pointer-events: none; }
.ds-veil-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    container-type: size;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 0;
    padding: 6px;
    border: 0;
    background: rgba(var(--ds-scrim-rgb), 0.42);
    color: var(--ds-ink);
    font: inherit;
    text-align: center;
    cursor: pointer;
}
.ds-veil-cover:focus-visible { outline: none; box-shadow: inset 0 0 0 3px rgba(var(--ds-accent-rgb), 0.55); }
.ds-veil-eye { font-size: 15px; line-height: 1; opacity: 0.85; }
.ds-veil-note { font-size: 13px; line-height: 1.25; max-width: 24ch; }
.ds-veil-press {
    font-family: var(--ds-mono);
    font-size: 10.5px;
    letter-spacing: calc(0.2em * var(--ds-track));
    text-transform: var(--ds-case);
    color: var(--ds-ink-2);
}
@container (max-width: 190px) { .ds-veil-note { display: none; } }
@container (max-width: 110px) { .ds-veil-press { display: none; } }
@container (max-height: 70px) { .ds-veil-note { display: none; } }
@container (max-height: 44px) { .ds-veil-press { display: none; } }

/* Every Fluent string draws in a span carrying its id (docs/STRINGS_SPEC.md:
   language learning, translation tools). It reads as the bare text it
   replaced: a section's `.x span` rule, written for its own spans (an
   arrow, a glyph), doesn't reach it. Found by before/after screenshots
   (2026-11-03): the store's "your library" had turned cyan at 16px and its
   "see what's coming" grey on lime. */
span[data-s][lang] {
    display: inline !important;
    position: static !important;
    color: inherit !important;
    font: inherit !important;
    letter-spacing: inherit !important;
    text-transform: inherit !important;
    text-decoration: inherit !important;
    text-shadow: inherit !important;
    white-space: inherit !important;
    vertical-align: baseline !important;
    opacity: 1 !important;
    background: none !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    transform: none !important;
}

/* ── Chips and badges ──────────────────────────────────────────────────── */
.ds-chip {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 0.4em;
    height: 26px;
    padding: 0 11px;
    border-radius: var(--ds-r-pill);
    border: 1px solid var(--ds-line);
    background-color: var(--ds-fill);
    font-family: var(--ds-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: calc(0.02em * var(--ds-track));
    color: var(--ds-ink-2);
    white-space: nowrap;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
button.ds-chip, a.ds-chip { cursor: pointer; }
button.ds-chip:hover, a.ds-chip:hover {
    color: var(--ds-ink);
    border-color: rgba(var(--ds-accent-rgb), 0.5);
}
.ds-chip.is-active {
    color: var(--ds-ink);
    border-color: rgba(var(--ds-accent-rgb), 0.6);
    background-color: rgba(var(--ds-accent-rgb), 0.16);
}
button.ds-chip:disabled { opacity: 0.45; cursor: default; }
/* A chip you can take back (a tag on a form) ends in its ✕. */
.ds-chip.has-remove { padding-right: 4px; }
.ds-chip-x {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 9px;
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.2s ease, background-color 0.2s ease;
}
.ds-chip-x:hover { opacity: 1; background-color: var(--ds-fill-hover); }
.ds-chip-x:focus-visible { outline: none; opacity: 1; box-shadow: 0 0 0 2px rgba(var(--ds-accent-rgb), 0.45); }
button.ds-chip:focus-visible, a.ds-chip:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(var(--ds-accent-rgb), 0.35); }
/* Calm = the reading font at reading size, for choices inside an editor (the
   page builder, the cursor kit), like the calm button beside it. */
.ds-chip.ds-chip-calm {
    justify-content: center;
    height: auto;
    padding: 5px 12px;
    font: inherit;
    font-size: 13px;
    letter-spacing: normal;
    color: var(--ds-ink);
    white-space: normal;
    text-decoration: none;
}

.ds-badge {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 0.4em;
    height: 22px;
    padding: 0 9px;
    border-radius: var(--ds-r-pill);
    font-family: var(--ds-display);
    font-weight: 700;
    font-size: 10px;
    letter-spacing: calc(0.15em * var(--ds-track));
    text-transform: var(--ds-case);
    white-space: nowrap;
}
.ds-badge-lime {
    color: var(--ds-on-lime);
    background-image: linear-gradient(180deg, var(--ds-lime-hi) 0%, var(--ds-lime-lo) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.ds-badge-accent {
    color: var(--ds-ink);
    border: 1px solid rgba(var(--ds-accent-rgb), 0.45);
    background-color: rgba(var(--ds-accent-rgb), 0.16);
}
.ds-badge-warn {
    color: var(--ds-warn);
    border: 1px solid var(--ds-warn-line);
    background-color: rgba(var(--ds-scrim-rgb), 0.6);
}

/* ── Tabs — a glass track; the active tab is the jelly ──────────────────── */
.ds-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: none;
    border-radius: var(--ds-r-pill);
    border: 1px solid var(--ds-line);
    background-color: var(--ds-fill);
    box-shadow: inset 0 1px 0 var(--ds-sheen-soft);
    scrollbar-width: none;
}
.ds-tabs::-webkit-scrollbar { display: none; }
.ds-tab {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 0.5em;
    height: 32px;
    padding: 0 14px;
    border: 0;
    border-radius: var(--ds-r-pill);
    background: transparent;
    font-family: var(--ds-display);
    font-weight: 700;
    font-size: 10px;
    letter-spacing: calc(0.2em * var(--ds-track));
    text-transform: var(--ds-case);
    white-space: nowrap;
    color: var(--ds-ink-3);
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.3s ease;
}
.ds-tab:hover { color: var(--ds-ink); background-color: var(--ds-fill-hover); }
/* .ds-tab.is-active wears the jelly: see Segmented under CHROME. */

/* ── Menu — a small panel under a button (promote ▾, ⋯) ────────────────── */
/* The floating solid surface: a Menu, and chat's pickers (.ds-pop: emoji,
   mentions, a message's ⋯). Solid, not glass: it opens over busy content. */
.ds-menu,
.ds-pop {
    z-index: 50;
    padding: 6px;
    border-radius: var(--ds-r-tile);
    border: 1px solid var(--ds-line-hover);
    background-color: var(--ds-surface-solid);
    box-shadow:
        inset 0 1px 0 var(--ds-sheen-soft),
        0 20px 50px -18px var(--ds-glow),
        0 10px 24px -12px var(--ds-shade);
    animation: ds-menu-in 0.18s var(--ds-ease);
}
.ds-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 280px;
    max-width: min(340px, calc(var(--app-w, 100vw) - 32px));
    transform-origin: top left;
}
.ds-menu-end { left: auto; right: 0; transform-origin: top right; }
@keyframes ds-menu-in {
    from { opacity: 0; transform: translateY(-4px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.ds-menu-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    width: 100%;
    padding: 9px 12px;
    border: 0;
    border-radius: var(--ds-r-lg);
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s ease;
}
.ds-menu-item:hover:not(:disabled),
.ds-menu-item:focus-visible {
    outline: none;
    background-color: rgba(var(--ds-accent-rgb), 0.12);
}
.ds-menu-item:disabled { opacity: 0.5; cursor: default; }
.ds-menu-label {
    font-family: var(--ds-display);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: calc(0.16em * var(--ds-track));
    line-height: 1.2;
    text-transform: var(--ds-case);
    color: var(--ds-ink);
}
.ds-menu-item.is-danger .ds-menu-label { color: var(--ds-danger); }
.ds-menu-note {
    font-family: var(--ds-sans);
    font-size: 11.5px;
    line-height: 1.4;
    color: var(--ds-ink-3);
}
.ds-menu-rule {
    height: 1px;
    margin: 4px 8px;
    background-color: var(--ds-line-soft);
}
/* A long menu (a field picker's dozens of choices): it scrolls, and its
   groups carry a small heading. */
.ds-menu.ds-menu-tall {
    max-height: min(62vh, 560px);
    overflow-y: auto;
    overscroll-behavior: contain;
}
.ds-menu-heading {
    padding: 10px 12px 4px;
    font-family: var(--ds-display);
    font-weight: 700;
    font-size: 10.5px;
    letter-spacing: calc(0.2em * var(--ds-track));
    text-transform: var(--ds-case);
    color: var(--ds-ink-3);
}
.ds-menu-heading:first-child { padding-top: 6px; }
.ds-menu-item.has-aside {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    column-gap: 16px;
    padding-top: 8px;
    padding-bottom: 8px;
}
.ds-menu-item.has-aside .ds-menu-note { flex-basis: 100%; }
.ds-menu-aside {
    font-family: var(--ds-mono, var(--ds-sans));
    font-size: 11.5px;
    color: var(--ds-ink-3);
    font-variant-numeric: tabular-nums;
}

/* ── Person menu — what clicking someone opens (components::person_menu) ── */
/* Beside the click, over everything (the bars, a drawer, a modal's page). */
.ds-person-menu-scrim { position: fixed; inset: 0; z-index: 70; }
.ds-menu.ds-person-menu {
    position: fixed;
    z-index: 71;
    width: 260px;
    min-width: 0;
    max-width: calc(var(--app-w, 100vw) - 16px);
    max-height: calc(var(--app-h, 100dvh) - 16px);
    overflow-y: auto;
    outline: none;
}
.ds-person-menu .ds-menu-item { padding: 8px 12px; }
.ds-person-menu-head {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 6px 8px 8px;
    border: 0;
    border-radius: var(--ds-r-lg);
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: var(--ds-ink);
    transition: background-color 0.15s ease;
}
.ds-person-menu-head:hover,
.ds-person-menu-head:focus-visible { outline: none; background-color: var(--ds-fill-hover); }
/* "vouched for by @ana in pixel club" under the head; @ana is a link. */
.ds-person-menu-vouch {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 0 8px 4px;
    padding: 6px 8px;
    border-radius: var(--ds-r-lg);
    background-color: rgba(var(--ds-accent-rgb), 0.08);
    font-family: var(--ds-sans);
    font-size: 11.5px;
    line-height: 1.4;
    color: var(--ds-ink-2);
}
.ds-person-menu-vouch-mark { color: rgb(var(--ds-lime-rgb)); }
.ds-person-menu-vouch-by {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-weight: 600;
    color: rgb(var(--ds-lime-rgb));
    cursor: pointer;
}
.ds-person-menu-vouch-by:hover,
.ds-person-menu-vouch-by:focus-visible { outline: none; text-decoration: underline; }
/* A guild in their guilds list. */
.ds-person-menu-guild {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 6px 10px;
    border: 0;
    border-radius: var(--ds-r-lg);
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: var(--ds-ink);
    transition: background-color 0.15s ease;
}
.ds-person-menu-guild:hover,
.ds-person-menu-guild:focus-visible { outline: none; background-color: rgba(var(--ds-accent-rgb), 0.12); }
.ds-person-menu-guild-name {
    font-family: var(--ds-sans);
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ds-person-menu-name {
    font-family: var(--ds-display);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: calc(0.03em * var(--ds-track));
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* A sphere that opens someone's menu (PersonSphere, a chat row's face). */
.ds-person-face {
    display: inline-flex;
    flex: none;
    padding: 0;
    border: 0;
    background: none;
    border-radius: var(--ds-r-pill);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ds-person-face:hover { transform: scale(1.05); }
.ds-person-face:focus-visible { outline: 2px solid rgb(var(--ds-lime-rgb)); outline-offset: 2px; }

/* ── Fields ────────────────────────────────────────────────────────────── */
.ds-field {
    width: 100%;
    height: 40px;
    padding: 0 14px;
    border-radius: var(--ds-r-field);
    border: 1px solid var(--ds-line);
    background-color: var(--ds-fill);
    color: var(--ds-ink);
    font-family: var(--ds-sans);
    font-size: 14px;
    outline: none;
    box-shadow:
        inset 0 1px 0 var(--ds-sheen-soft),
        inset 0 -6px 12px -8px var(--ds-shade);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
textarea.ds-field { height: auto; padding: 10px 14px; line-height: 1.5; resize: vertical; }
/* The open list of a select is drawn by the OS; give its options solid
   token colours so it isn't light-on-light over a translucent field. */
select.ds-field { cursor: pointer; }
select.ds-field option {
    background-color: var(--ds-surface-solid);
    color: var(--ds-ink);
}
.ds-field::placeholder { color: var(--ds-ink-3); opacity: 0.8; }
.ds-field:hover { border-color: var(--ds-line-hover); }
.ds-field:focus {
    border-color: rgba(var(--ds-accent-rgb), 0.65);
    background-color: var(--ds-fill-hover);
    box-shadow:
        0 0 0 3px rgba(var(--ds-accent-rgb), 0.18),
        inset 0 1px 0 var(--ds-sheen-soft);
}
.ds-field:disabled { opacity: 0.55; }

/* ── Tiles — rounded icon / avatar frames ─────────────────────────────── */
.ds-tile {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--ds-r-tile);
    border: 1px solid var(--ds-line-hover);
    background-color: var(--ds-fill-hover);
    color: rgba(var(--ds-accent-rgb), 0.85);
}
.ds-tile > img { width: 100%; height: 100%; object-fit: cover; }
/* Ringed: sits over imagery (a banner) and lifts off it. */
.ds-tile-ring {
    border: 3px solid var(--ds-surface-solid);
    box-shadow:
        0 0 0 1px var(--ds-line),
        0 14px 34px -12px rgba(0, 0, 0, 0.75);
}

/* ── Stat pill ─────────────────────────────────────────────────────────── */
.ds-stat {
    display: inline-flex;
    flex: none;
    align-items: baseline;
    gap: 0.45em;
    height: 36px;
    padding: 0 14px;
    border-radius: var(--ds-r-pill);
    border: 1px solid var(--ds-line);
    background-color: var(--ds-fill);
    box-shadow: inset 0 1px 0 var(--ds-sheen-soft);
    line-height: 36px;
}
.ds-stat-value {
    font-family: var(--ds-display);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: calc(0.06em * var(--ds-track));
    color: var(--ds-ink);
}
.ds-stat-label {
    font-family: var(--ds-sans);
    font-size: 10px;
    letter-spacing: calc(0.04em * var(--ds-track));
    color: var(--ds-ink-3);
}

/* ── Sparkline: a tile's trend ─────────────────────────────────────────── */
/* One series in the accent: a 2px line that never scales with the box, a
   soft area under it, the latest point as a dot. Values and labels stay in
   ink; the line only carries the shape. */
.ds-spark {
    display: block;
    width: 100%;
    overflow: visible;
    color: rgb(var(--ds-accent-rgb));
}
.ds-spark-line {
    fill: none;
    stroke: currentColor;
    stroke-width: 2px;
    stroke-linejoin: round;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}
.ds-spark-area {
    fill: currentColor;
    opacity: 0.12;
    stroke: none;
}
.ds-spark-dot {
    fill: none;
    stroke: currentColor;
    stroke-width: 6px;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}
.ds-spark-empty {
    stroke: var(--ds-line);
    stroke-width: 1px;
    stroke-dasharray: 3 4;
    vector-effect: non-scaling-stroke;
}
.ds-spark-hit { fill: transparent; }
.ds-spark-hit:hover { fill: rgba(var(--ds-accent-rgb), 0.08); }

/* ── Lines, scrims, skeletons ──────────────────────────────────────────── */
.ds-rule {
    height: 1px;
    background: linear-gradient(90deg, rgba(var(--ds-accent-rgb), 0.4), transparent);
}
.ds-hair-top { border-top: 1px solid var(--ds-line-soft); }
.ds-hair-bottom { border-bottom: 1px solid var(--ds-line-soft); }
/* Fade an image out into whatever it sits on (a card, the canvas) — no
   seam where the picture ends, in either theme. */
.ds-fade-bottom {
    -webkit-mask-image: linear-gradient(180deg, #000 35%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 35%, transparent 100%);
}
.ds-scrim-bottom {
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(var(--ds-scrim-rgb), 0.55) 45%,
        rgba(var(--ds-scrim-rgb), 0.92) 100%);
}
.ds-skeleton {
    border-radius: var(--ds-r-lg);
    background-color: var(--ds-fill-hover);
    background-image: linear-gradient(90deg, transparent 0%, var(--ds-sheen-soft) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: ds-shimmer 1.6s ease-in-out infinite;
}
@keyframes ds-shimmer {
    0%   { background-position: 150% 0; }
    100% { background-position: -50% 0; }
}

/* ── Accordion — a row that opens (ds::Accordion) ──────────────────────── */
/* The body animates both ways: rows ease the space open (0fr -> 1fr), the
   content drops in on the spring, and on close it fades and goes hidden so
   nothing inside stays focusable. */
.ds-accordion-group > .ds-accordion + .ds-accordion { border-top: 1px solid var(--ds-line-soft); }
.ds-accordion-head {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px 2px;
    border: 0;
    background: transparent;
    color: var(--ds-ink);
    text-align: left;
    cursor: pointer;
}
.ds-accordion-head:focus-visible { outline: 2px solid rgb(var(--ds-accent-rgb)); outline-offset: 2px; border-radius: var(--ds-r-sm); }
.ds-accordion-glyph {
    flex: none;
    min-width: 22px;
    font-family: var(--ds-serif);
    font-style: italic;
    font-size: 20px;
    line-height: 1;
    color: rgb(var(--ds-accent-rgb));
}
.ds-accordion-title {
    flex: 1;
    min-width: 0;
    font-family: var(--ds-serif);
    font-size: 21px;
    line-height: 1.15;
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
}
.ds-accordion-head:hover .ds-accordion-title { color: rgb(var(--ds-accent-rgb)); }
.ds-accordion-meta { flex: none; }
.ds-accordion-chev {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: var(--ds-r-pill);
    border: 1px solid var(--ds-line);
    background-color: var(--ds-fill);
    color: var(--ds-ink-2);
    font-size: 16px;
    line-height: 1;
    transition: transform 0.45s var(--ds-spring), border-color 0.2s ease, color 0.2s ease;
}
.ds-accordion.is-open .ds-accordion-chev {
    transform: rotate(90deg);
    border-color: rgba(var(--ds-accent-rgb), 0.5);
    color: rgb(var(--ds-accent-rgb));
}
.ds-accordion-wrap {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.45s cubic-bezier(.22, 1, .36, 1);
}
.ds-accordion.is-open > .ds-accordion-wrap { grid-template-rows: 1fr; }
.ds-accordion-clip { min-height: 0; overflow: hidden; }
.ds-accordion-body { padding: 0 2px 18px 36px; }
.ds-accordion.is-open .ds-accordion-body { animation: ds-accordion-in 0.6s var(--ds-spring) both; }
.ds-accordion:not(.is-open) .ds-accordion-body {
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.35s var(--ds-ease), visibility 0s 0.45s;
}
@keyframes ds-accordion-in { from { opacity: 0; transform: translateY(-12px); } }

@media (prefers-reduced-motion: reduce) {
    .ds-rise,
    .ds-status,
    .ds-menu,
    .ds-pop,
    .ds-skeleton { animation: none; }
    .ds-btn,
    .ds-card-hover { transition: none; }
    .ds-accordion.is-open .ds-accordion-body { animation: none; }
    .ds-accordion-wrap,
    .ds-accordion-chev,
    .ds-accordion:not(.is-open) .ds-accordion-body { transition: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   CHROME — Biome Zines' editor and TALK drawer, made part of the system
   (2026-10-07): the floating glass bar, the jelly segmented switch, the
   jelly round button, sphere avatars and their stack, the glass panel, the
   mark, the lime dot + spaced caps, the serif headline, the search pill,
   the count and the switch. Chat builds on these; assets/ds-chat.css only
   adds what only chat has.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Bar — a floating glass pill, inset from the window edges ──────────────
   No `display` of its own: callers show it per breakpoint (`hidden md:flex`),
   and an unlayered display here would beat those utilities. */
.ds-bar {
    align-items: center;
    border-radius: var(--ds-r-pill);
    border: 1px solid var(--ds-line);
    background-color: var(--ds-bar);
    background-image:
        radial-gradient(ellipse 60% 120% at 12% 0%, var(--ds-sheen-soft), transparent 70%),
        radial-gradient(at 5% 50%, var(--ds-bar-bloom) 0px, transparent 40%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    box-shadow:
        inset 0 1px 0 var(--ds-sheen),
        0 24px 60px -24px var(--ds-bar-shadow);
}
/* The desktop top bar short of room: topbar_fit.js sets these a step at a
   time. Padding first (in the segments, between them, round the bar), then
   the app icon for the wordmark, and only then "…" on the labels. */
/* The logo (logo::Logo): Glitch Club's own art, never a style's colours or
   fonts. Its height comes from the box; the dark version (white outline on
   the letters) reads on any ground, so the light one only shows in the
   light look with no style worn. */
.ds-logo { display: inline-flex; align-items: center; flex: none; }
.ds-logo img { display: block; height: 100%; width: auto; pointer-events: none; user-select: none; }
.ds-logo .ds-logo-light { display: none; }
body.light:not([data-skin]) .ds-logo .ds-logo-dark { display: none; }
body.light:not([data-skin]) .ds-logo .ds-logo-light { display: block; }
/* The top bar's logo (BrandLogo plate): white letters on a black plate, in
   every look and style (owner, 2026-11-19), shaped like the style's pills. */
.ds-logo.ds-logo-plate {
    --ds-logo-plate: #000;
    background: var(--ds-logo-plate);
    border-radius: var(--ds-r-pill);
    padding: 6px 14px;
    box-sizing: border-box;
}
/* The brand at a small size (logo::BrandMini), in a style's preview window. */
.ds-brand-mini { position: relative; display: inline-block; flex: none; width: 56px; height: 16px; }
.ds-brand-mini-word { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; user-select: none; }
.ds-brand-icon { display: none; }
.ds-topbar[data-fit-b] .ds-brand-icon { display: block; }
.ds-topbar[data-fit-b] .ds-brand-word { display: none; }
/* The phone bar is narrower still: the icon, never the wordmark (it used
   to come back below 768px after the desktop bar had given it up). */
.ds-topbar-phone .ds-brand-icon { display: block; }
.ds-topbar-phone .ds-brand-word { display: none; }
.ds-topbar-phone { gap: 10px; }
/* The sign-in and sign-up bar (auth_kit.rs AuthBrand): the same swap. */
.ds-auth-brand-icon { display: none; }
@media (max-width: 639px) {
    .ds-auth .ds-auth-brand-icon { display: block; }
    .ds-auth .ds-auth-brand-word { display: none; }
    /* The page's own heading says it; beside "back to Glitch Club" the word
       was cut to "SIG…". */
    .ds-auth header .ds-sublabel { display: none; }
}
.ds-topbar-phone .ds-sublabel { letter-spacing: calc(0.22em * var(--ds-track)); }
.ds-topbar[data-fit-pad="1"] #ds-topnav .ds-seg-btn { padding: 0 12px; }
.ds-topbar[data-fit-pad="2"] #ds-topnav .ds-seg-btn { padding: 0 9px; letter-spacing: calc(0.2em * var(--ds-track)); }
.ds-topbar[data-fit-pad="3"] #ds-topnav .ds-seg-btn { padding: 0 6px; gap: 0.4em; letter-spacing: calc(0.14em * var(--ds-track)); }
.ds-topbar[data-fit-pad="2"],
.ds-topbar[data-fit-pad="3"] { gap: 6px; }
.ds-topbar[data-fit-pad="3"] { padding-left: 10px; padding-right: 6px; }
.ds-topbar[data-fit-pad="3"] #ds-topnav .ds-seg { gap: 0; padding: 3px; }
.ds-topbar[data-fit-pad="2"] .ds-topbar-end { gap: 6px; }
.ds-topbar[data-fit-pad="3"] .ds-topbar-end { gap: 4px; }
.ds-topbar[data-fit-clip] #ds-topnav .ds-seg { min-width: 0; }
.ds-topbar[data-fit-clip] #ds-topnav .ds-seg > :not(.ds-vrule),
.ds-topbar[data-fit-clip] #ds-topnav .ds-seg-btn { flex: 0 1 auto; min-width: 0; }
.ds-topbar[data-fit-clip] #ds-topnav .ds-seg-glyph { flex: none; }
.ds-topbar[data-fit-clip] #ds-topnav .ds-seg-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* Drops in (or rises in, at the bottom) on the spring once, on mount. */
.ds-bar-in { animation: ds-drop-in 0.9s var(--ds-spring) 0.1s backwards; }
.ds-bar-up { animation: ds-rise-in 0.9s var(--ds-spring) 0.2s backwards; }

/* Tracer — now and then an orchid comet runs once round the bar's edge, a
   quiet nudge toward it. One lap (~2s), then it rests ~7s. The conic
   gradient turns about the centre; the mask keeps only a 1.5px ring. */
@property --ds-tracer-turn {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}
.ds-bar-tracer { position: relative; }
.ds-bar-tracer::after {
    content: '';
    position: absolute;
    inset: -1px;
    padding: 1.5px;
    border-radius: inherit;
    pointer-events: none;
    background: conic-gradient(from var(--ds-tracer-turn),
        transparent 0deg 290deg,
        rgba(214, 102, 255, 0.08) 300deg,
        rgba(214, 102, 255, 0.55) 350deg,
        rgba(236, 204, 255, 0.9) 358deg,
        transparent 360deg);
    -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 exclude, linear-gradient(#000 0 0);
    filter: drop-shadow(0 0 3px rgba(214, 102, 255, 0.45));
    opacity: 0;
    animation: ds-tracer 9s linear 3s infinite;
}
@keyframes ds-tracer {
    0%   { --ds-tracer-turn: 0deg;   opacity: 0; }
    3%   { opacity: 1; }
    19%  { opacity: 1; }
    22%  { --ds-tracer-turn: 360deg; opacity: 0; }
    100% { --ds-tracer-turn: 360deg; opacity: 0; }
}

/* LIVE's dot in the top bar: someone you follow is streaming. */
.ds-seg-livedot {
    position: absolute;
    top: 6px;
    right: 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    pointer-events: none;
    background: rgb(255, 72, 48);
    animation: ds-livedot 1.6s ease-out infinite;
}
@keyframes ds-livedot {
    0%   { box-shadow: 0 0 0 0 rgba(255, 72, 48, 0.75); }
    70%  { box-shadow: 0 0 0 6px rgba(255, 72, 48, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 72, 48, 0); }
}
@keyframes ds-drop-in { from { opacity: 0; transform: translateY(-24px) scale(0.97); } }
@keyframes ds-rise-in { from { opacity: 0; transform: translateY(24px) scale(0.97); } }

/* ── Segmented — a glass track; the switched-on segment is the jelly ───── */
.ds-seg {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    max-width: 100%;
    padding: 4px;
    overflow-x: auto;
    overscroll-behavior-x: none;
    border-radius: var(--ds-r-pill);
    border: 1px solid var(--ds-line-soft);
    background-color: var(--ds-fill);
    box-shadow: inset 0 1px 0 var(--ds-sheen-soft);
    scrollbar-width: none;
}
.ds-seg::-webkit-scrollbar { display: none; }
/* Segments share the width equally (TALK | DETAILS, MESSAGES | FRIENDS). */
.ds-seg-fill { display: flex; }
.ds-seg-fill > .ds-seg-btn { flex: 1 1 0; }
.ds-seg-btn {
    position: relative;
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    gap: 0.55em;
    height: 34px;
    padding: 0 16px;
    border: 0;
    border-radius: var(--ds-r-pill);
    background-color: transparent;
    font-family: var(--ds-display);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: calc(0.26em * var(--ds-track));
    line-height: 1;
    text-transform: var(--ds-case);
    white-space: nowrap;
    color: var(--ds-ink-3);
    cursor: pointer;
    user-select: none;
    transition:
        color 0.3s ease,
        background-color 0.3s ease,
        box-shadow 0.4s ease;
}
.ds-seg-sm .ds-seg-btn { height: 28px; padding: 0 12px; font-size: 10px; letter-spacing: calc(0.2em * var(--ds-track)); }
.ds-seg-lg .ds-seg-btn { height: 38px; padding: 0 20px; font-size: 12px; letter-spacing: calc(0.32em * var(--ds-track)); }
/* Only where a pointer really hovers: on a touch screen :hover sticks to
   the last thing tapped, which read as a second lit segment. */
@media (hover: hover) {
    .ds-seg-btn:hover { color: var(--ds-ink); background-color: var(--ds-fill-hover); }
}
.ds-seg-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(var(--ds-accent-rgb), 0.35); }
.ds-seg-btn:disabled { cursor: default; opacity: 0.45; }
.ds-seg-btn:disabled:hover { color: var(--ds-ink-3); background-color: transparent; }
/* The glyph keeps its own colour (a section hue) until the segment is on. */
.ds-seg-glyph { font-size: 12px; line-height: 1; letter-spacing: 0; }
/* Pending chat/mentions remain visible even when their panel is open.
   Static contrast and a number carry the state without constant motion. */
.ds-shell-chin .ds-seg-btn.ds-chin-alert {
    color: var(--ds-ink);
    box-shadow: inset 0 0 0 1.5px var(--ds-warn), 0 0 16px var(--ds-warn-line);
}
.ds-shell-chin .ds-chin-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    flex: none;
    border-radius: 999px;
    background: var(--ds-warn);
    color: var(--ds-on-lime);
    font-family: var(--ds-display);
    font-size: 11px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
    box-shadow: 0 0 0 2px var(--ds-surface-solid);
}
/* A line icon (ds::Icon) sized by the glyph's font size, a touch bigger than
   a text glyph so the strokes read. */
.ds-icon { display: block; width: 1.35em; height: 1.35em; flex: none; }
/* An icon in a button's lead / trail slot (ds::Button, ButtonLink): a touch
   larger than the label, which is set small and spaced. */
.ds-btn-ico { width: 1.45em; height: 1.45em; margin: -0.2em 0; }
/* An icon beside words that aren't a button (a link, a badge, a line of
   text): the text's own size, sitting on its baseline. Icons belong to the
   component, never typed into the words (docs/WRITING_STYLE.md). */
.ds-ico-lead,
.ds-ico-trail { display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; flex: none; }
.ds-ico-lead { margin-right: 0.35em; }
.ds-ico-trail { margin-left: 0.3em; }
/* In a button the gap does the spacing. */
.ds-btn > .ds-ico-lead,
.ds-btn > .ds-ico-trail { margin: 0; }
/* Switched on: the jelly. Tabs (and chat's open-conversation pills) share
   it, so the lime stays the one primary action on a page. */
.ds-seg-btn.is-on,
.ds-tab.is-active {
    color: var(--ds-on-jelly);
    background-color: var(--ds-jelly-base);
    background-image: var(--ds-jelly-fill);
    box-shadow:
        inset 0 -6px 12px -6px rgba(0, 0, 0, 0.55),
        inset 0 5px 10px -5px rgba(255, 255, 255, 0.5),
        0 8px 24px -8px var(--ds-jelly-glow);
    animation: ds-jelly-on 0.55s var(--ds-spring);
}
.ds-seg-btn.is-on .ds-seg-glyph { color: inherit !important; }
@keyframes ds-jelly-on { from { transform: scale(0.84); } }
/* A track whose segments open menus: let them out of the track. */
.ds-seg.ds-seg-open { overflow: visible; }
/* Glyph over label (a phone's bottom bar). */
/* A tap acts at once: no double-tap-to-zoom wait, no grey flash. */
.ds-seg-btn.ds-seg-stack,
.ds-seg-btn.ds-seg-row {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.ds-seg-btn.ds-seg-stack {
    flex: 1 1 0;
    transition: color 0.15s ease, background-color 0.15s ease, box-shadow 0.2s ease;
    flex-direction: column;
    gap: 4px;
    height: 46px;
    min-width: 0;
    padding: 0 6px;
    border-radius: var(--ds-r-xl);
    font-size: 9px;
    letter-spacing: calc(0.16em * var(--ds-track));
}
.ds-seg-btn.ds-seg-stack .ds-seg-glyph { font-size: 15px; }
/* ── The phone's navigation wheel (routing/phone.rs, nav_wheel.js) ──
   A round button in the bottom-left corner, in the hue of the page you're
   on. Open, it glides to the bottom-right corner as a ✕ and a rail of every
   destination sweeps in along the right edge onto an arc, each name to the
   left of its icon: the row on the middle line is out furthest, biggest
   and lit, with its ✓; the rest lean back along the ring, shrink and fade.
   The rows' arc, size and fade are set per frame by nav_wheel.js (on
   `.ds-wheel-arc`); the fly-in is on `.ds-wheel-inner`, so they compose. */
.ds-wheel-fab {
    position: fixed;
    left: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 53;  /* open: over the wheel (below) */
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    color: rgb(var(--hue));
    font-size: 22px;
    background:
        radial-gradient(circle at 32% 26%, var(--ds-gloss), transparent 42%),
        radial-gradient(circle at 50% 60%, rgba(var(--hue), 0.30), rgba(var(--hue), 0.08) 70%),
        var(--ds-panel);
    border: 1px solid rgba(var(--hue), 0.45);
    box-shadow:
        inset 0 1px 0 var(--ds-sheen),
        0 10px 30px -8px rgba(var(--hue), 0.55),
        0 0 0 4px rgba(var(--hue), 0.08);
    /* No backdrop blur: a blurred fixed button repaints on every scroll of
       a phone's page (2026-11-15, the owner: the menu button lags). */
    transition: left 0.32s cubic-bezier(0.2, 1.15, 0.3, 1), transform 0.2s var(--ds-spring), box-shadow 0.2s ease, color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.ds-wheel-fab:active { transform: scale(0.9); }
/* Open, the wheel is over everything on the page (the language card is 85),
   under toasts and dialogs (90 and up). */
.ds-wheel-fab.is-open {
    z-index: 88;
    /* The slide right: across to the other corner (a fixed box's 100% is
       the viewport without its scrollbar). */
    left: calc(100% - 72px);
    color: var(--ds-ink);
    box-shadow: inset 0 1px 0 var(--ds-sheen), 0 0 0 6px rgba(var(--hue), 0.14), 0 0 34px rgba(var(--hue), 0.55);
}
.ds-wheel-fab-face { display: grid; place-items: center; animation: ds-wheel-face 0.38s var(--ds-spring); }
.ds-wheel-fab-face svg { width: 24px; height: 24px; }
@keyframes ds-wheel-face { from { opacity: 0; transform: rotate(-120deg) scale(0.4); } }

.ds-wheel-scrim {
    position: fixed;
    inset: 0;
    z-index: 86;
    background:
        radial-gradient(ellipse 90% 70% at 100% 50%, rgba(var(--ds-accent-rgb), 0.16), transparent 70%),
        rgba(var(--ds-scrim-rgb), 0.7);
    /* A plain dim, no backdrop blur: blurring the whole page behind the
       wheel cost a phone's GPU every frame it was open. */
    animation: ds-wheel-fade 0.16s ease both;
    touch-action: none;
}
.ds-wheel-scrim.is-closing { animation: ds-wheel-fade-out 0.16s ease forwards; }
@keyframes ds-wheel-fade { from { opacity: 0; } }
@keyframes ds-wheel-fade-out { to { opacity: 0; } }

.ds-wheel {
    position: fixed;
    right: 0;
    top: calc(var(--ds-shell-top, 56px) + 4px);
    bottom: calc(86px + env(safe-area-inset-bottom));
    width: min(88vw, 340px);
    z-index: 87;
    animation: ds-wheel-in 0.26s cubic-bezier(0.16, 1.1, 0.3, 1) both;
}
.ds-wheel.is-closing { animation: ds-wheel-out 0.16s cubic-bezier(0.5, 0, 0.75, 0) forwards; }
/* Transform and opacity only (no filter): the compositor runs them off the
   main thread, so the wheel moves the frame it's tapped. */
@keyframes ds-wheel-in { from { transform: translateX(40%); opacity: 0; } }
@keyframes ds-wheel-out { to { transform: translateX(40%); opacity: 0; } }
/* The ring the rows ride: a circle of nav_wheel.js's R (420px) through the
   glyphs' column, 40px in from the right edge (18px padding + half a 44px
   glyph). */
.ds-wheel::before {
    content: "";
    position: absolute;
    right: calc(40px - 840px);
    top: calc(50% - 420px);
    width: 840px;
    height: 840px;
    border-radius: 50%;
    border: 1px solid rgba(var(--ds-accent-rgb), 0.28);
    box-shadow: 0 0 40px rgba(var(--ds-accent-rgb), 0.18), inset 0 0 60px rgba(var(--ds-accent-rgb), 0.10);
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent);
    mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent);
}
.ds-wheel-track {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    padding-right: 18px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 24%, black 76%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 24%, black 76%, transparent 100%);
}
.ds-wheel-track::-webkit-scrollbar { display: none; }
.ds-wheel-item {
    height: 56px;
    display: flex;
    align-items: center;
    scroll-snap-align: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
/* What nav_wheel.js bends onto the arc; the row around it never moves, so
   it stays a snap point however far out it leans. */
.ds-wheel-arc {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    transform-origin: calc(100% - 22px) 50%;
    will-change: transform, opacity;
}
/* Right to left: the icon on the ring, its name, then the dot and the ✓. */
.ds-wheel-inner {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 12px;
    min-width: 0;
    opacity: 0;
}
/* The rows arrive with the wheel: the middle one at once, the rest a few
   ms apart (until 2026-11-15 they waited 60 ms, then took 550 ms each, a
   row 38 ms after the last, with a blur: about a second to settle). */
.ds-wheel-track.is-ready .ds-wheel-inner {
    animation: ds-wheel-row-in 0.24s cubic-bezier(0.2, 1.2, 0.35, 1) both;
    animation-delay: calc(var(--k, 0) * 14ms);
}
@keyframes ds-wheel-row-in {
    from { opacity: 0; transform: translateX(48px); }
    to { opacity: 1; transform: none; }
}
.ds-wheel-glyph {
    flex: none;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    font-size: 18px;
    color: rgb(var(--hue));
    background: radial-gradient(circle at 35% 30%, var(--ds-gloss-soft), transparent 50%), rgba(var(--hue), 0.12);
    border: 1px solid rgba(var(--hue), 0.32);
    transition: box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}
.ds-wheel-glyph svg { width: 20px; height: 20px; }
.ds-wheel-label {
    font-family: var(--ds-serif);
    font-size: 21px;
    line-height: 1;
    color: var(--ds-ink-2);
    white-space: nowrap;
    text-align: right;
    transition: color 0.2s ease, text-shadow 0.25s ease;
}
/* Your last picks, at the top: tagged, with a gap before everything. */
.ds-wheel-recent {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgb(var(--ds-lime-rgb));
    opacity: 0.85;
}
.ds-wheel-item.is-recent-end { margin-bottom: 18px; }
.ds-wheel-item.is-focus .ds-wheel-glyph {
    background: radial-gradient(circle at 35% 30%, var(--ds-gloss-hi), transparent 50%), rgba(var(--hue), 0.32);
    border-color: rgba(var(--hue), 0.8);
    box-shadow: 0 0 0 5px rgba(var(--hue), 0.12), 0 0 26px rgba(var(--hue), 0.75);
}
.ds-wheel-item.is-focus .ds-wheel-label { color: var(--ds-ink); text-shadow: 0 0 18px rgba(var(--hue), 0.6); }
/* The page you're on: a lime dot after its name, wherever it rolls to. */
.ds-wheel-here {
    flex: none;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgb(var(--ds-lime-rgb));
    box-shadow: 0 0 10px var(--ds-lime-glow);
}
.ds-wheel-ok {
    flex: none;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-right: 4px;
    border-radius: 999px;
    font-size: 18px;
    font-weight: 700;
    color: var(--ds-on-lime);
    background: radial-gradient(circle at 35% 28%, var(--ds-lime-hi), var(--ds-lime-lo));
    box-shadow: inset 0 1px 0 var(--ds-jelly-gloss), 0 6px 18px -4px var(--ds-lime-glow-hi);
    opacity: 0;
    transform: scale(0.5) rotate(-30deg);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.3s var(--ds-spring);
}
.ds-wheel-item.is-focus .ds-wheel-ok { opacity: 1; transform: none; pointer-events: auto; }
.ds-wheel-ok:active { transform: scale(0.88); }
/* A full-width row (a drawer's list). */
.ds-seg-btn.ds-seg-row {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border-radius: var(--ds-r-lg);
    font-size: 12px;
    letter-spacing: calc(0.2em * var(--ds-track));
}

/* ── A number inside a phrase (ds::Counted: "55 comments") ─────────────
   In the style's body face, which is made for reading: a button face can
   be unreadable small (Vapor Mall's Rubik Mono One drew 55 as 88 at 10px).
   A little larger, so it holds its own beside wide display caps. */
.ds-num {
    font-family: var(--ds-sans);
    font-weight: 800;
    font-size: 1.2em;
    letter-spacing: 0;
    line-height: 1;
}

/* ── Count — a small lime number: unread, @mentions of you, requests ──── */
.ds-count {
    flex: none;
    display: inline-grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: var(--ds-r-pill);
    font-family: var(--ds-display);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: calc(0.02em * var(--ds-track));
    line-height: 1;
    color: var(--ds-on-lime);
    background-image: linear-gradient(180deg, var(--ds-lime-hi) 0%, var(--ds-lime-lo) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

/* ── Jelly — the round glossy button (a bar's icons, a panel's close) ──── */
.ds-btn-jelly {
    color: var(--ds-on-jelly);
    border-color: rgba(255, 255, 255, 0.14);
    background-color: var(--ds-jelly-base);
    background-image:
        radial-gradient(at 30% 20%, var(--ds-jelly-a) 0px, transparent 60%),
        radial-gradient(at 80% 90%, var(--ds-jelly-c) 0px, transparent 60%);
    box-shadow:
        inset 0 -8px 18px -6px rgba(0, 0, 0, 0.55),
        inset 0 6px 14px -6px rgba(255, 255, 255, 0.45),
        0 14px 30px -10px var(--ds-jelly-drop);
}
.ds-btn-jelly:hover:not(:disabled) {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow:
        inset 0 -8px 18px -6px rgba(0, 0, 0, 0.5),
        inset 0 9px 16px -6px rgba(255, 255, 255, 0.6),
        0 18px 40px -12px var(--ds-jelly-glow);
    animation: ds-wobble 0.7s ease-in-out;
}
.ds-btn-jelly:active:not(:disabled) { transform: scale(0.92); }
.ds-btn-jelly:disabled { opacity: 0.5; }
.ds-btn-jelly > svg { width: 15px; height: 15px; }
.ds-btn-jelly.ds-btn-sm > svg { width: 13px; height: 13px; }
/* The top bar's bell: as round as your sphere beside it (32px), the bell
   big enough to read inside it. */
.ds-btn-jelly.ds-btn-sm.ds-bell { width: 32px; height: 32px; }
.ds-btn-jelly.ds-btn-sm.ds-bell > svg { width: 18px; height: 18px; }
@keyframes ds-wobble {
    0%, 100% { scale: 1 1; }
    25%      { scale: 1.12 0.9; }
    50%      { scale: 0.92 1.08; }
    75%      { scale: 1.04 0.97; }
}

/* ── Sphere — a jelly ball: a person, a guild, a server ─────────────────
   The mesh comes from the name (ds::mesh_index → .ds-mesh-N); a picture
   sits inside the same gloss. `--s` is the diameter. The meshes are the
   home screen's jelly-button hues, the same in both themes (an object). */
.ds-sphere {
    position: relative;
    flex: none;
    display: inline-grid;
    place-items: center;
    width: var(--s, 32px);
    height: var(--s, 32px);
    border-radius: 50%;
    overflow: hidden;
    color: #fff;
    font-family: var(--ds-display);
    font-weight: 700;
    font-size: calc(var(--s, 32px) * 0.42);
    line-height: 1;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
    box-shadow: 0 8px 20px -10px rgba(10, 6, 40, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.ds-sphere > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Gloss on top, shade underneath — the jelly. */
.ds-sphere::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(ellipse 55% 38% at 34% 22%,
        rgba(255, 255, 255, 0.46), var(--ds-fill-hover) 45%, transparent 62%);
}
.ds-sphere::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 50%;
    pointer-events: none;
    box-shadow:
        inset 0 calc(var(--s, 32px) * -0.26) calc(var(--s, 32px) * 0.5) calc(var(--s, 32px) * -0.18) rgba(0, 0, 0, 0.6),
        inset 0 calc(var(--s, 32px) * 0.16) calc(var(--s, 32px) * 0.36) calc(var(--s, 32px) * -0.2) rgba(255, 255, 255, 0.35);
}
.ds-sphere > span { position: relative; z-index: 2; }
/* Lifts a sphere off what it overlaps (a stack, a banner). */
.ds-sphere.is-ring { box-shadow: 0 0 0 2px var(--ds-ring), 0 8px 20px -10px rgba(10, 6, 40, 0.65); }

/* ── Cosmetics (components/cosmetics.rs, docs/DISCORD_PARITY_SPEC.md §4) ──
   All pictures, nothing live: a 256-colour APNG and a still PNG each.
   Lists show the still and play the APNG while the row is hovered; a
   profile plays it (.is-live); reduced motion keeps the still. */
/* An avatar decoration: 1.2× the avatar, around it, above its gloss. */
.ds-deco-wrap { position: relative; display: inline-grid; flex: none; }
.ds-deco {
    position: absolute;
    inset: -10%;
    z-index: 3;
    pointer-events: none;
    background: var(--deco-still) center / contain no-repeat;
}
.ds-deco-wrap.is-live .ds-deco,
.ds-deco-wrap:hover .ds-deco,
.ds-chat-msg:hover .ds-deco,
.ds-chat-person:hover .ds-deco { background-image: var(--deco-anim); }
/* The presence dot stays on top of the decoration. */
.ds-deco-wrap .ds-presence > i, /* The presence dot stays on top of the decoration. */ .ds-deco-wrap .ds-presence > [data-s] > i { z-index: 4; }
/* A nameplate behind a row in a member list, fading in from the left so
   the name stays easy to read. */
.ds-chat-person.has-plate { position: relative; isolation: isolate; overflow: hidden; }
.ds-chat-person.has-plate::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: var(--plate-still) center / cover no-repeat;
    opacity: 0.6;
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.25), #000 55%);
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.25), #000 55%);
    transition: opacity 0.2s ease;
}
.ds-chat-person.has-plate:hover::before,
.ds-chat-person.has-plate.is-live::before { background-image: var(--plate-anim); opacity: 0.9; }
/* A profile card's frame and effect, over the card and never in the way. */
.ds-cos-card { position: absolute; inset: 0; z-index: 6; pointer-events: none; border-radius: inherit; overflow: hidden; }
.ds-cos-fx { position: absolute; inset: 0; background-image: var(--fx); }
.ds-cos-fx.is-tile { background-repeat: repeat-x; background-size: auto 100%; }
.ds-cos-fx.is-cover { background-repeat: no-repeat; background-size: cover; background-position: center; }
/* A frame is a 9-slice border: its corners stay true at any card size. */
.ds-cos-frame {
    position: absolute;
    inset: 0;
    border: calc(var(--slice) * var(--frame-scale, 0.5) * 1px) solid transparent;
    border-image-source: var(--frame-anim);
    border-image-slice: var(--slice);
    border-image-width: calc(var(--slice) * var(--frame-scale, 0.5) * 1px);
    border-image-repeat: var(--repeat, stretch);
}
/* The band runs over the card's edges: keep the card's foot (a profile's
   figures) clear of it. */
.ds-card:has(> .ds-cos-card > .ds-cos-frame) { padding-bottom: 20px; }
@media (prefers-reduced-motion: reduce) {
    .ds-deco-wrap .ds-deco { background-image: var(--deco-still) !important; }
    .ds-chat-person.has-plate::before { background-image: var(--plate-still) !important; }
    .ds-cos-frame { border-image-source: var(--frame-still); }
    .ds-cos-fx { display: none; }
}
/* The eight meshes — home.rs's jelly-button hues, in ds::accent's order
   (home, forum, guilds, live, discover, market, music, shop). */
.ds-mesh-0 { background-color: #0a0033; background-image: radial-gradient(at 20% 30%, hsla(245, 90%, 65%, 0.85) 0px, transparent 55%), radial-gradient(at 80% 20%, hsla(280, 85%, 60%, 0.75) 0px, transparent 50%), radial-gradient(at 50% 90%, hsla(220, 95%, 55%, 0.5) 0px, transparent 55%); }
.ds-mesh-1 { background-color: #001a2e; background-image: radial-gradient(at 25% 25%, hsla(200, 95%, 60%, 0.85) 0px, transparent 55%), radial-gradient(at 80% 75%, hsla(180, 90%, 55%, 0.75) 0px, transparent 50%), radial-gradient(at 60% 10%, hsla(220, 85%, 65%, 0.6) 0px, transparent 55%); }
.ds-mesh-2 { background-color: #18002a; background-image: radial-gradient(at 25% 30%, hsla(265, 95%, 65%, 0.85) 0px, transparent 55%), radial-gradient(at 80% 20%, hsla(290, 90%, 60%, 0.75) 0px, transparent 50%), radial-gradient(at 50% 90%, hsla(240, 85%, 60%, 0.6) 0px, transparent 55%); }
.ds-mesh-3 { background-color: #2a0500; background-image: radial-gradient(at 20% 20%, hsla(15, 95%, 60%, 0.9) 0px, transparent 55%), radial-gradient(at 80% 80%, hsla(0, 90%, 55%, 0.75) 0px, transparent 50%), radial-gradient(at 60% 50%, hsla(35, 95%, 60%, 0.55) 0px, transparent 55%); }
.ds-mesh-4 { background-color: #2a1500; background-image: radial-gradient(at 25% 30%, hsla(35, 95%, 60%, 0.85) 0px, transparent 55%), radial-gradient(at 80% 70%, hsla(15, 90%, 60%, 0.75) 0px, transparent 50%), radial-gradient(at 50% 90%, hsla(50, 95%, 60%, 0.6) 0px, transparent 55%); }
.ds-mesh-5 { background-color: #001f12; background-image: radial-gradient(at 20% 20%, hsla(120, 90%, 50%, 0.85) 0px, transparent 50%), radial-gradient(at 80% 80%, hsla(60, 95%, 55%, 0.75) 0px, transparent 50%), radial-gradient(at 60% 50%, hsla(90, 85%, 55%, 0.55) 0px, transparent 55%); }
.ds-mesh-6 { background-color: #200033; background-image: radial-gradient(at 20% 30%, hsla(310, 95%, 60%, 0.85) 0px, transparent 55%), radial-gradient(at 80% 20%, hsla(340, 90%, 60%, 0.75) 0px, transparent 50%), radial-gradient(at 60% 90%, hsla(280, 85%, 65%, 0.6) 0px, transparent 55%); }
.ds-mesh-7 { background-color: #001a33; background-image: radial-gradient(at 20% 30%, hsla(195, 90%, 60%, 0.85) 0px, transparent 55%), radial-gradient(at 80% 25%, hsla(220, 85%, 55%, 0.75) 0px, transparent 50%), radial-gradient(at 55% 85%, hsla(180, 90%, 50%, 0.6) 0px, transparent 55%); }
/* The forum's own: champagne, mint and cream (not one of the eight, so no
   name ever seeds into it). */
.ds-mesh-forum { background-color: #1c1710; background-image: radial-gradient(at 22% 25%, hsla(42, 62%, 80%, 0.85) 0px, transparent 55%), radial-gradient(at 80% 75%, hsla(155, 62%, 70%, 0.8) 0px, transparent 50%), radial-gradient(at 60% 10%, hsla(40, 85%, 94%, 0.6) 0px, transparent 55%); }
/* A deleted account: neutral grey glass, whatever the name was. An object
   like the meshes, so the same in both themes. */
.ds-sphere.is-gone { background-color: #24262d; background-image: radial-gradient(at 30% 25%, hsla(225, 8%, 62%, 0.5) 0px, transparent 55%), radial-gradient(at 75% 80%, hsla(225, 6%, 38%, 0.55) 0px, transparent 55%); }

/* Presence: a dot on a sphere's shoulder (lime: online; amber: away). */
.ds-presence {
    position: relative;
    flex: none;
    display: inline-flex;
}
.ds-presence > i, .ds-presence > [data-s] > i {
    position: absolute;
    right: -1px;
    bottom: -1px;
    z-index: 3;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--ds-ring);
    background: var(--ds-lime-lo);
    box-shadow: 0 0 8px var(--ds-lime-glow);
}
.ds-presence > i.is-away, .ds-presence > [data-s] > i.is-away { background: #f5b13d; box-shadow: none; }

/* You, on the top bar: your sphere, then your handle (from xl), one link
   to your profile. A pill like a segment: it lights on hover, sinks when
   pressed, and stays lit, the sphere ringed in the accent, while you're on
   your own profile (routing.rs, UserSection). */
.ds-me {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 2px;
    border-radius: var(--ds-r-pill);
    cursor: pointer;
    user-select: none;
    transition:
        background-color 0.2s ease,
        box-shadow 0.3s ease,
        transform 0.15s var(--ds-spring);
}
.ds-me > .ds-caps { padding-right: 10px; transition: color 0.2s ease; }
.ds-me > .ds-presence,
.ds-me > .ds-sphere { transition: transform 0.3s var(--ds-spring); }
.ds-me:hover { background-color: var(--ds-fill-hover); }
.ds-me:hover > .ds-caps,
.ds-me.is-on > .ds-caps { color: var(--ds-ink); }
.ds-me:hover > .ds-presence,
.ds-me:hover > .ds-sphere { transform: scale(1.06); }
.ds-me:active { transform: scale(0.94); }

/* Your Aura beside your name in the bar, like Reddit karma (header_end.rs,
   AuraChip): the byline's mark, a size up, lighting on hover. */
.ds-aura-chip {
    display: inline-flex;
    align-items: center;
    flex: none;
    border-radius: var(--ds-r-pill);
    transition: transform 0.15s var(--ds-spring), filter 0.2s ease;
}
.ds-aura-chip > .ds-aura-mark { font-size: 13px; padding: 0.3em 0.7em 0.32em; gap: 0.3em; }
.ds-aura-chip:hover > .ds-aura-mark,
.ds-aura-chip.is-on > .ds-aura-mark { background: color-mix(in srgb, currentColor 22%, transparent); }
.ds-aura-chip:active { transform: scale(0.94); }
.ds-me:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(var(--ds-accent-rgb), 0.35); }
.ds-me.is-on { background-color: rgba(var(--ds-accent-rgb), 0.14); }
.ds-me.is-on .ds-sphere { box-shadow: 0 0 0 2px rgb(var(--ds-accent-rgb)), 0 8px 20px -10px rgba(10, 6, 40, 0.65); }

/* The bug on the top bar, right of the bell (components/bug_report.rs): the
   lime glyph alone, no button behind it, `--s` square. It grows a little on
   hover and sinks when pressed, like the bar's jelly. */
.ds-bug {
    flex: none;
    display: inline-grid;
    place-items: center;
    width: var(--s, 40px);
    height: var(--s, 40px);
    padding: 0;
    border: 0;
    border-radius: var(--ds-r-pill);
    background: none;
    cursor: pointer;
    transition: transform 0.3s var(--ds-spring), filter 0.2s ease;
}
/* The glyph inside its round hit area, not filling it: beside the 32px bell
   and sphere a full-size bug read as the biggest thing on the bar. */
.ds-bug > svg { width: 66%; height: 66%; }
.ds-bug:hover { transform: scale(1.08); filter: drop-shadow(0 0 6px var(--ds-lime-glow)); }
.ds-bug:active { transform: scale(0.92); }
.ds-bug:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(var(--ds-accent-rgb), 0.35); }

/* A stack: spheres overlapping in a row, then "3 HERE NOW" in lime. */
.ds-spheres {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    max-width: 100%;
    padding-left: 2px;
}
.ds-spheres > .ds-sphere,
.ds-spheres > button > .ds-sphere { margin-right: -8px; }
.ds-spheres > button {
    flex: none;
    padding: 0;
    border: 0;
    background: none;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s var(--ds-spring);
}
.ds-spheres > button:hover { transform: translateY(-2px) scale(1.08); z-index: 1; }
.ds-spheres-label {
    min-width: 0;
    margin-left: 18px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--ds-mono);
    font-size: 10.5px;
    letter-spacing: calc(0.22em * var(--ds-track));
    line-height: 1.5;
    text-transform: var(--ds-case);
    white-space: nowrap;
    color: rgb(var(--ds-lime-rgb));
}
.ds-spheres-label.is-quiet { color: var(--ds-ink-3); }

/* ── Panel — the glass drawer (overlays and side panels, not long pages) ──
   No `position` or `display` of its own: panels are mostly fixed or
   absolute overlays laid out with flex, and an unlayered rule here would
   beat the caller's utilities. */
.ds-panel {
    color: var(--ds-ink);
    border-radius: var(--ds-r-xl);
    border: 1px solid var(--ds-line);
    background-color: var(--ds-panel);
    background-image:
        radial-gradient(ellipse 70% 20% at 30% 0%, var(--ds-sheen-soft), transparent 70%),
        radial-gradient(at 0% 0%, rgba(var(--ds-accent-rgb), 0.22) 0px, transparent 45%),
        radial-gradient(at 100% 100%, var(--ds-bloom-c) 0px, transparent 45%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    backdrop-filter: blur(20px) saturate(140%);
    box-shadow:
        inset 0 1px 0 var(--ds-sheen),
        0 40px 100px -30px var(--ds-panel-shadow),
        0 30px 80px -40px var(--ds-glow);
}
/* The same glass without the blur, for a panel that sits in a page. */
.ds-panel-solid { -webkit-backdrop-filter: none; backdrop-filter: none; }
/* Edge to edge: a desktop pop-out window (the window is the float). It
   looks like the same panel docked in the main window: the glass and its
   blooms, laid flat over the canvas the docked glass is seen against (a
   window has nothing behind it to blur). So a DM in its own window matches
   the servers, and a popped-out servers or chat panel matches itself.
   (#1009 had put pop-outs on the bare canvas; next to the purple servers
   panel the DM window then read as a different, green-black app.) A worn
   style replaces all of this with its panel role (skin/adapters.css). */
.ds-panel.ds-panel-flush {
    border-radius: 0;
    border: 0;
    background-color: var(--ds-canvas);
    background-image:
        radial-gradient(ellipse 70% 20% at 30% 0%, var(--ds-sheen-soft), transparent 70%),
        radial-gradient(at 0% 0%, rgba(var(--ds-accent-rgb), 0.22) 0px, transparent 45%),
        radial-gradient(at 100% 100%, var(--ds-bloom-c) 0px, transparent 45%),
        linear-gradient(var(--ds-panel), var(--ds-panel)),
        radial-gradient(ellipse at top, var(--ds-canvas-top) 0%, var(--ds-canvas) 80%);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: inset 0 1px 0 var(--ds-sheen);
}
/* Open drawers rest at `transform: none`, not translateX(0), so text isn't
   drawn through a lingering compositing layer (blurry glyphs). */
.ds-panel.biome-drawer-right-open,
.ds-panel.biome-drawer-left-open { transform: none; }

/* ── Mark — the square badge that names a thing (D2, 03, #, you) ──────── */
.ds-mark {
    display: grid;
    flex: none;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: var(--ds-r-lg);
    font-family: var(--ds-display);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: calc(0.06em * var(--ds-track));
    line-height: 1;
    color: var(--ds-on-lime);
    background-image: linear-gradient(180deg, var(--ds-lime-hi) 0%, var(--ds-lime-lo) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        0 10px 30px -10px var(--ds-lime-glow);
}
.ds-mark-sm { width: 30px; height: 30px; border-radius: var(--ds-r-lg); font-size: 12px; }
/* The jelly mark: a place rather than you, or a second mark beside a lime one. */
.ds-mark-jelly {
    color: var(--ds-on-jelly);
    background-color: var(--ds-jelly-base);
    background-image:
        radial-gradient(at 30% 26%, var(--ds-jelly-a) 0px, transparent 55%),
        radial-gradient(at 72% 78%, var(--ds-jelly-c) 0px, transparent 55%);
    box-shadow:
        inset 0 -6px 12px -6px rgba(0, 0, 0, 0.55),
        inset 0 5px 10px -5px rgba(255, 255, 255, 0.5);
}

/* ── Dot + caps — "● LUMEN & STONE · ISSUE 01" ─────────────────────────── */
.ds-dot {
    display: inline-block;
    flex: none;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgb(var(--ds-lime-rgb));
    box-shadow: 0 0 10px rgba(var(--ds-lime-rgb), 0.9);
}
.ds-dot.is-off { background: var(--ds-ink-3); box-shadow: none; opacity: 0.6; }
.ds-dot.ds-dot-warn { background: var(--ds-warn); box-shadow: 0 0 10px var(--ds-warn-line); }
.ds-caps {
    font-family: var(--ds-display);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: calc(0.24em * var(--ds-track));
    line-height: 1.2;
    text-transform: var(--ds-case);
    color: var(--ds-ink-2);
}
/* The lime word beside the wordmark ("biome ZINES"), and lime eyebrows. */
.ds-sublabel {
    font-family: var(--ds-display);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: calc(0.42em * var(--ds-track));
    line-height: 1;
    text-transform: var(--ds-case);
    white-space: nowrap;
    color: rgba(var(--ds-lime-rgb), 0.85);
}
/* Small mono caps under a title ("RIGHT HALF · TAP A STONE", "7 MEMBERS"). */
.ds-meta {
    font-family: var(--ds-mono);
    font-size: 10.5px;
    letter-spacing: calc(0.2em * var(--ds-track));
    line-height: 1.3;
    text-transform: var(--ds-case);
    color: var(--ds-ink-3);
}
/* Lime ink — you: your name, "● online", an @mention of you. */
.ds-ink-lime { color: rgb(var(--ds-lime-rgb)); }

/* ── Serif — the zines' editorial headline ─────────────────────────────── */
.ds-serif {
    font-family: var(--ds-serif);
    font-weight: 400;
    font-style: normal;
    letter-spacing: -0.01em;
    line-height: 1;
    text-transform: none;
    color: var(--ds-ink);
}
.ds-serif em, em.ds-serif { font-style: italic; }
/* Headlines only (the owner, 2026-11-14: "change JUST the headlines to a
   cyberpunk font. Not articles and other places using Serif"): an h1 or h2
   that wears the serif takes the cyber face, a little smaller so it sits in
   the serif's space (font-size-adjust matches the x-height). Card titles,
   quotes, numbers and an article (its title and its subheads) keep the
   serif, and so does anything under a worn style ([data-skin]). Accent words
   keep their colour but not the italic, which the cyber face doesn't have. */
:is(h1, h2).ds-serif:not([data-skin] *, .ds-article-page *) {
    font-family: var(--ds-headline);
    font-weight: 600;
    font-size-adjust: 0.42;
    letter-spacing: 0;
}
:is(h1, h2).ds-serif:not([data-skin] *, .ds-article-page *) :is(em, i) { font-style: normal; }
.ds-serif-accent { color: rgb(var(--ds-accent-rgb)); }

/* ── Switch — on / off ─────────────────────────────────────────────────── */
.ds-switch {
    position: relative;
    flex: none;
    width: 44px;
    height: 26px;
    padding: 0;
    border-radius: var(--ds-r-pill);
    border: 1px solid var(--ds-line-hover);
    background-color: var(--ds-fill);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}
.ds-switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--ds-ink-3);
    transition: transform 0.45s var(--ds-spring), background-color 0.25s ease, box-shadow 0.25s ease;
}
.ds-switch.is-on {
    border-color: rgba(var(--ds-accent-rgb), 0.7);
    background-color: rgba(var(--ds-accent-rgb), 0.32);
}
.ds-switch.is-on::after {
    transform: translateX(18px);
    background-color: #fff;
    box-shadow: 0 0 12px rgba(var(--ds-accent-rgb), 0.9);
}
.ds-switch:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(var(--ds-accent-rgb), 0.35); }

/* ── Checkbox — the box and its words (ds::Checkbox) ─────────────────────
   A little jelly box: ticked is the jelly. The words wrap beside it, the
   box on their first line. */
.ds-check { display: flex; align-items: flex-start; gap: 10px; min-width: 0; cursor: pointer; }
.ds-check:has(> .ds-check-box:disabled) { cursor: default; }
.ds-check-text { min-width: 0; }
.ds-check-text:empty { display: none; }
.ds-check-box {
    appearance: none;
    -webkit-appearance: none;
    flex: none;
    display: grid;
    place-content: center;
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    border-radius: var(--ds-r-md);
    border: 1px solid var(--ds-line-hover);
    background-color: var(--ds-fill);
    box-shadow: inset 0 1px 0 var(--ds-sheen-soft);
    cursor: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ds-check-box::after {
    content: "";
    width: 10px;
    height: 10px;
    background: var(--ds-on-jelly);
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
    transform: scale(0);
    transition: transform 0.25s var(--ds-spring);
}
.ds-check-box:checked {
    border-color: var(--ds-jelly-rim);
    background-color: var(--ds-jelly-base);
    background-image: var(--ds-jelly-fill);
    box-shadow:
        inset 0 -4px 8px -4px var(--ds-jelly-shade),
        inset 0 3px 6px -3px var(--ds-jelly-gloss),
        0 4px 12px -4px var(--ds-jelly-glow);
}
.ds-check-box:checked::after { transform: scale(1); }
.ds-check-box:hover:not(:disabled) { border-color: rgba(var(--ds-accent-rgb), 0.6); }
.ds-check-box:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(var(--ds-accent-rgb), 0.35); }
.ds-check-box:disabled { opacity: 0.5; }

/* Menus on the bars: a nav menu is narrower; the chin's opens upward;
   the page you're on is marked. */
.ds-menu.ds-menu-nav { min-width: 240px; }
.ds-menu.ds-menu-up {
    top: auto;
    bottom: calc(100% + 10px);
    min-width: 220px;
    transform-origin: bottom left;
}
.ds-menu-item.is-current { background-color: rgba(var(--ds-accent-rgb), 0.12); }

/* A pill-shaped field (search in a bar, a panel's filter). */
.ds-field.ds-field-pill { height: 36px; border-radius: var(--ds-r-pill); padding: 0 16px; font-size: 13px; }
/* Search: a pill field with a lens (an <svg> before the <input>). */
.ds-search { position: relative; }
.ds-search > .ds-field { padding-left: 36px; }
.ds-search > svg {
    position: absolute;
    left: 14px;
    top: 50%;
    z-index: 1;
    width: 14px;
    height: 14px;
    color: var(--ds-ink-3);
    transform: translateY(-50%);
    pointer-events: none;
}
/* A page's big search (guild discovery). */
.ds-search.ds-search-lg > .ds-field { height: 48px; padding-left: 46px; font-size: 15px; }
.ds-search.ds-search-lg > svg { left: 19px; width: 16px; height: 16px; }

/* A small label over a picture ("✎ change banner"): the scrim's colour, so
   it reads on any image in either theme. */
.ds-hint {
    color: var(--ds-ink);
    border: 1px solid var(--ds-line);
    background-color: rgba(var(--ds-scrim-rgb), 0.8);
}

/* A hairline that fades out at both ends, between groups on a bar. */
.ds-vrule {
    width: 1px;
    align-self: stretch;
    margin: 8px 2px;
    background: linear-gradient(180deg, transparent, var(--ds-line-hover), transparent);
}

/* ── Mentions — a person in text, and the @ picker ─────────────────────── */
/* The chip: "@Display Name" in the accent; hover shows "@handle" above it
   (two people can share a display name, never a handle). You are lime. */
.ds-mention {
    position: relative;
    display: inline;
    padding: 1px 5px;
    border: 0;
    border-radius: var(--ds-r-md);
    background-color: rgba(var(--ds-accent-rgb), 0.14);
    color: var(--ds-ink);
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    transition: background-color 0.15s ease;
}
.ds-mention:hover,
.ds-mention:focus-visible {
    outline: none;
    background-color: rgba(var(--ds-accent-rgb), 0.26);
}
.ds-mention.is-me {
    color: rgb(var(--ds-lime-rgb));
    background-color: var(--ds-lime-wash);
}
.ds-mention.is-missing {
    color: var(--ds-ink-3);
    background-color: var(--ds-fill);
    cursor: default;
}
.ds-mention-tip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    z-index: 30;
    padding: 3px 8px;
    border-radius: var(--ds-r-lg);
    border: 1px solid var(--ds-line-hover);
    background-color: var(--ds-surface-solid);
    box-shadow: 0 8px 20px -10px var(--ds-shade);
    color: var(--ds-ink-2);
    font-family: var(--ds-mono);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.4;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, 2px);
    transition: opacity 0.12s ease, transform 0.12s ease;
}
.ds-mention:hover > .ds-mention-tip,
.ds-mention:focus-visible > .ds-mention-tip {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* The field that owns a picker: fills its row (a composer line) or its
   column (a form), and anchors the picker. */
.ds-mention-field {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
}
/* The picker floats over the field (under it with .is-below); its surface
   is the .ds-pop. As wide as the field, between 240 and 340px, so it stays
   inside a narrow panel (stream chat, the DM panel). */
.ds-mention-pop {
    position: absolute;
    left: 0;
    bottom: calc(100% + 10px);
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: clamp(240px, 100%, 340px);
    max-width: calc(var(--app-w, 100vw) - 32px);
    max-height: min(320px, 50vh);
    overflow-y: auto;
    overscroll-behavior: none;
}
.ds-mention-pop.is-below { bottom: auto; top: calc(100% + 8px); }
.ds-mention-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 6px 10px;
    border: 0;
    border-radius: var(--ds-r-lg);
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.12s ease;
}
.ds-mention-row:hover,
.ds-mention-row.is-active { background-color: rgba(var(--ds-accent-rgb), 0.14); }
.ds-mention-row-who {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    line-height: 1.25;
}
.ds-mention-row-name,
.ds-mention-row-handle {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ds-mention-row-name {
    font-family: var(--ds-sans);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ds-ink);
}
.ds-mention-row-handle {
    font-family: var(--ds-mono);
    font-size: 11px;
    color: var(--ds-ink-3);
}
.ds-mention-row-tag {
    flex: none;
    font-family: var(--ds-display);
    font-weight: 700;
    font-size: 10px;
    letter-spacing: calc(0.18em * var(--ds-track));
    text-transform: var(--ds-case);
    color: var(--ds-label);
}
.ds-mention-empty {
    padding: 6px 10px 8px;
    font-family: var(--ds-sans);
    font-size: 12.5px;
    color: var(--ds-ink-3);
}
@media (pointer: coarse) {
    .ds-mention-row { min-height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
    .ds-bar-in,
    .ds-bar-up,
    .ds-seg-btn.is-on,
    .ds-tab.is-active,
    .ds-btn-jelly:hover:not(:disabled) { animation: none; }
    .ds-bar-tracer::after { display: none; }
    .ds-wheel, .ds-wheel-scrim, .ds-wheel-fab-face,
    .ds-wheel-track.is-ready .ds-wheel-inner { animation: none; opacity: 1; }
    .ds-seg-livedot { animation: none; }
    .ds-switch::after,
    .ds-check-box::after,
    .ds-spheres > button,
    .ds-me,
    .ds-me > .ds-presence,
    .ds-me > .ds-sphere,
    .ds-bug,
    .ds-mention-tip { transition: none; }
}

/* ── Coach marks — a short tutorial, one card at a time (ds/coach.rs) ───── */
/* A manual popover: the top layer, so no glass panel can trap it. Its UA
   popover box (inset 0, margin auto, Canvas colours) is reset here. */
.ds-coach {
    position: fixed;
    inset: auto 24px 24px auto;
    z-index: 70;
    width: min(340px, calc(var(--app-w, 100vw) - 32px));
    height: auto;
    margin: 0;
    padding: 16px 16px 12px;
    overflow: visible;
    border: 1px solid rgba(var(--ds-accent-rgb, 200, 110, 210), 0.45);
    border-radius: var(--ds-r-xl);
    color: var(--ds-ink);
    background-color: var(--ds-surface-solid);
    background-image:
        radial-gradient(ellipse 80% 40% at 20% 0%, rgba(var(--ds-accent-rgb, 200, 110, 210), 0.22), transparent 70%),
        radial-gradient(at 100% 100%, rgba(var(--ds-lime-rgb), 0.08), transparent 55%);
    box-shadow:
        inset 0 1px 0 var(--ds-sheen-soft),
        0 24px 60px -18px var(--ds-glow),
        0 12px 28px -14px var(--ds-shade);
    animation: ds-coach-in 0.4s var(--ds-spring) both;
}
.ds-coach:not(.is-docked)[data-side] { right: auto; bottom: auto; }
.ds-coach:focus { outline: none; }
.ds-coach-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ds-coach-count {
    color: var(--ds-label);
    font-family: var(--ds-mono);
    font-size: 10.5px;
    letter-spacing: calc(0.14em * var(--ds-track));
    text-transform: var(--ds-case);
}
.ds-coach-dots { display: inline-flex; gap: 5px; }
.ds-coach-dots > i, .ds-coach-dots > [data-s] > i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ds-line-hover);
    transition: background-color 0.2s ease, transform 0.3s var(--ds-spring);
}
.ds-coach-dots > i.is-done, .ds-coach-dots > [data-s] > i.is-done { background: rgba(var(--ds-accent-rgb, 200, 110, 210), 0.55); }
.ds-coach-dots > i.is-on, .ds-coach-dots > [data-s] > i.is-on { background: rgb(var(--ds-lime-rgb)); transform: scale(1.35); }
.ds-coach-skip {
    margin-left: auto;
    padding: 2px 4px;
    border: 0;
    color: var(--ds-ink-3);
    background: none;
    font-size: 12px;
    cursor: pointer;
}
.ds-coach-skip:hover { color: var(--ds-ink); }
.ds-coach-title {
    margin: 0 0 6px;
    font-family: var(--ds-serif);
    font-size: 24px;
    line-height: 1.12;
}
.ds-coach-body { margin: 0; color: var(--ds-ink-2); font-size: 13.5px; line-height: 1.55; }
.ds-coach-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 14px; }
/* What a step points at: a soft accent ring that breathes. */
.ds-coach-target {
    position: relative;
    z-index: 2;
    outline: 2px solid rgba(var(--ds-accent-rgb, 200, 110, 210), 0.85) !important;
    outline-offset: 3px;
    border-radius: inherit;
    animation: ds-coach-ring 1.8s ease-in-out infinite;
}
@keyframes ds-coach-in {
    from { opacity: 0; transform: translateY(8px) scale(0.97); }
    to { opacity: 1; transform: none; }
}
@keyframes ds-coach-ring {
    0%, 100% { box-shadow: 0 0 0 0 rgba(var(--ds-accent-rgb, 200, 110, 210), 0.35); }
    50% { box-shadow: 0 0 0 8px rgba(var(--ds-accent-rgb, 200, 110, 210), 0); }
}
@media (max-width: 639px) {
    .ds-coach { inset: auto 16px calc(var(--ds-shell-bottom, 0px) + 16px) 16px; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .ds-coach, .ds-coach-target { animation: none; }
}

/* The top bar's "home" turning into "archives" (routing.rs). */
.ds-word-swap { display: inline-block; animation: ds-word-swap 0.45s var(--ds-spring, ease) backwards; }
@keyframes ds-word-swap { from { opacity: 0; transform: translateY(0.45em); filter: blur(3px); } }
@media (prefers-reduced-motion: reduce) { .ds-word-swap { animation: none; } }

/* Text that moves (biome_core::chat_markup::Fx, components/chat_text.rs):
   `[wave]`, `[bounce]`, `[shake]`, `[shimmer]`, `[rainbow]` in chat
   messages and in what the nanomi says. Colours come from the ink and the
   accent (--ds-fx-glint, the coat inside the nanomi), mixed toward the ink
   so they read in dark and light. With reduced motion they hold still: a
   shimmer is a tinted word, a rainbow a still gradient. */
.ds-fx {
    --fx-glint: color-mix(in oklab, var(--ds-fx-glint, rgb(var(--ds-accent-rgb))) 72%, var(--ds-ink));
    --fx-glint-hi: color-mix(in oklab, var(--fx-glint) 55%, var(--ds-surface-solid, #fff));
    --fx-r1: color-mix(in oklab, #ff5d73 74%, var(--ds-ink));
    --fx-r2: color-mix(in oklab, #ffa63d 74%, var(--ds-ink));
    --fx-r3: color-mix(in oklab, #e8d84a 70%, var(--ds-ink));
    --fx-r4: color-mix(in oklab, #4fd88a 72%, var(--ds-ink));
    --fx-r5: color-mix(in oklab, #46b8ff 74%, var(--ds-ink));
    --fx-r6: color-mix(in oklab, #b67cff 74%, var(--ds-ink));
}
.ds-fx-l { display: inline-block; animation: ds-fx-wave 1.5s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes ds-fx-wave { 0%, 55%, 100% { transform: none; } 25% { transform: translateY(-0.26em); } }
.ds-fx-bounce { display: inline-block; transform-origin: 50% 100%; animation: ds-fx-bounce 2.4s cubic-bezier(0.3, 1.5, 0.5, 1) infinite; }
@keyframes ds-fx-bounce {
    0%, 38%, 100% { transform: none; }
    9% { transform: translateY(-0.34em) scale(1.04, 0.97); }
    18% { transform: translateY(0) scale(1.07, 0.9); }
    26% { transform: translateY(-0.1em); }
}
.ds-fx-shake { display: inline-block; animation: ds-fx-shake 2.8s ease-in-out infinite; }
@keyframes ds-fx-shake {
    0%, 16%, 100% { transform: none; }
    2% { transform: translateX(-1px) rotate(-3deg); }
    5% { transform: translateX(1px) rotate(3deg); }
    8% { transform: translateX(-1px) rotate(-2deg); }
    11% { transform: translateX(1px) rotate(1deg); }
}
.ds-fx-shimmer, .ds-fx-rainbow {
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.ds-fx-shimmer {
    background-image: linear-gradient(105deg, currentColor 0 36%, var(--fx-glint) 44%, var(--fx-glint-hi) 50%, var(--fx-glint) 56%, currentColor 64% 100%);
    background-size: 260% 100%;
    background-position: 100% 0;
    animation: ds-fx-shimmer 3.2s ease-in-out infinite;
}
@keyframes ds-fx-shimmer { 0% { background-position: 100% 0; } 55%, 100% { background-position: 0 0; } }
.ds-fx-rainbow {
    background-image: linear-gradient(90deg,
        var(--fx-r1), var(--fx-r2), var(--fx-r3), var(--fx-r4), var(--fx-r5), var(--fx-r6), var(--fx-r1));
    background-size: 200% 100%;
    animation: ds-fx-rainbow 4s linear infinite;
}
@keyframes ds-fx-rainbow { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
    .ds-fx-l, .ds-fx-bounce, .ds-fx-shake, .ds-fx-rainbow { animation: none; }
    .ds-fx-shimmer { animation: none; background: none; -webkit-text-fill-color: var(--fx-glint); color: var(--fx-glint); }
}

/* ── What people say (components::comments, docs/COMMENTS_SPEC.md) ────────
   Every comment, byline and comment box on Biome. Tokens only, so a worn
   style reaches them; a style's own CSS targets the data-ui hooks. */
.ds-byline { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ds-byline-line { display: flex; align-items: center; gap: 6px 8px; flex-wrap: wrap; min-width: 0; min-height: 22px; }
.ds-byline-name { color: var(--ds-ink); font: 600 13px/1.4 var(--ds-sans); }
a.ds-byline-name:hover { text-decoration: underline; }
.ds-when { color: var(--ds-ink-3); font: 11px/1.4 var(--ds-sans); white-space: nowrap; }
.ds-comment .ds-byline-line .ds-when { margin-left: auto; }

.ds-comment { position: relative; display: flex; gap: 12px; padding: 14px 0; scroll-margin-top: 110px; }
.ds-comment-main { flex: 1; min-width: 0; }
.ds-comment-body { margin-top: 3px; color: var(--ds-ink-2); white-space: pre-wrap; overflow-wrap: anywhere; font: 14px/1.65 var(--ds-sans); }
.ds-comment .ds-chat-reacts { margin-top: 6px; }
.ds-comment.is-compact { gap: 10px; padding: 8px 0; }
.ds-comment.is-compact .ds-comment-body { font-size: 13.5px; }
.ds-comment-main > .ds-comment { padding-bottom: 4px; }
.ds-comment-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 6px; min-height: 18px; transition: opacity .15s; }
/* In a comment they wait for the pointer; on their own they always show. */
.ds-comment > .ds-comment-main > .ds-comment-tools { opacity: 0; }
.ds-comment:hover > .ds-comment-main > .ds-comment-tools,
.ds-comment:focus-within > .ds-comment-main > .ds-comment-tools { opacity: 1; }
@media (hover: none) { .ds-comment > .ds-comment-main > .ds-comment-tools { opacity: 1; } }
.ds-comment-tool { padding: 0; background: none; border: none; color: var(--ds-ink-3); font: 11px/1.5 var(--ds-sans); cursor: pointer; }
.ds-comment-tool:hover { color: rgb(var(--ds-accent-rgb)); }
.ds-comment-tool.is-danger { color: var(--ds-danger); }
.ds-comment-tool:disabled { opacity: .5; cursor: default; }
.ds-comment-tool:focus-visible { outline: 2px solid rgb(var(--ds-accent-rgb)); outline-offset: 4px; }
.ds-comment-note { padding: 4px 0; }

.ds-composer { display: flex; flex-direction: column; gap: 8px; }
.ds-composer.is-line { flex-direction: row; align-items: flex-start; }
.ds-composer-field { flex: 1; min-width: 0; width: 100%; }
.ds-composer-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.ds-composer.is-signed-out { padding: 6px 0; }

/* ── Settings → accessibility (biome-kit/src/a11y.rs, docs/ACCESSIBILITY.md) ──
   Classes on <html>, put there before the first paint (index.html). */
/* Text size: the whole page, as the browser's own zoom would. */
/* The window's height and width as the page sees them: under a zoom, 100dvh
   would be zoomed too (taller than the window), so every full-window size is
   written var(--app-h, 100dvh) / var(--app-w, 100vw) and these divide it out. */
html.a11y-text-1 { --app-h: calc(100dvh / 1.125); --app-w: calc(100vw / 1.125); }
html.a11y-text-2 { --app-h: calc(100dvh / 1.25); --app-w: calc(100vw / 1.25); }
html.a11y-text-3 { --app-h: calc(100dvh / 1.5); --app-w: calc(100vw / 1.5); }
html.a11y-text-1 { zoom: 1.125; }
html.a11y-text-2 { zoom: 1.25; }
html.a11y-text-3 { zoom: 1.5; }
/* Reduce motion: whatever the system says. */
html.a11y-calm *, html.a11y-calm *::before, html.a11y-calm *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
}
/* Higher contrast: secondary text close to the main ink, borders you can see. */
html.a11y-contrast body {
    --ds-ink-2: #eef0f4;
    --ds-ink-3: #d3d8e0;
    --ds-line: rgba(255, 255, 255, 0.32);
    --ds-line-soft: rgba(255, 255, 255, 0.24);
    --ds-line-hover: rgba(255, 255, 255, 0.5);
}
html.a11y-contrast body.light {
    --ds-ink-2: #1f1a24;
    --ds-ink-3: #352c3a;
    --ds-line: #9c7f6c;
    --ds-line-soft: #b39582;
    --ds-line-hover: #6f5444;
}
/* Underline links: links don't rely on color. */
html.a11y-links a[href]:not(.ds-btn):not([role]) { text-decoration: underline; text-underline-offset: 2px; }

/* The skip link: off screen until a keyboard reaches it. */
.ds-skip {
    position: fixed;
    left: 12px;
    top: -100px;
    z-index: 10000;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--ds-ink);
    color: var(--ds-canvas);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}
.ds-skip:focus, .ds-skip:focus-visible { top: 12px; outline: 3px solid var(--ds-link); outline-offset: 2px; }
#biome-page-scroll:focus { outline: none; }
/* Anything drawn as a button, link or tab without being one shows where the
   keyboard is, like the real ones do. */
[role="button"]:not(button):focus-visible,
[role="link"]:not(a):focus-visible,
[role="tab"]:not(button):focus-visible { outline: 2px solid var(--ds-link); outline-offset: 2px; }

/* Language study's "cards ready" chip by the bell (header_end.rs StudyDueChip). */
.ds-study-chip { display: inline-flex; align-items: center; gap: 0.35em; font-family: var(--ds-mono); font-size: 13px; padding: 0.3em 0.7em; color: var(--ds-ink); }
