/* scenepack.org — interface. Near-black canvas, dark only.
   Desktop is one dark frame: the sidebar and the top bar sit straight on it, and the page shows
   through a rounded panel that floats inside it. Phones get the page edge to edge.
   Neutral throughout: cream is the one accent (primary buttons, the active segment), mint marks
   a downloaded file. Hover changes colour or border, never position. No decorative motion. */

/* Geist everywhere, served from this origin. The second file holds the accented Latin that titles
   like "Yōtei" need; the browser only fetches it when a page actually uses one of those letters. */
@font-face {
    font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url(/sorg/geist.woff2?v=1) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url(/sorg/geist-ext.woff2?v=1) format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url(/sorg/geistmono.woff2?v=1) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --frame: #090908;         /* the window: sidebar, top bar and the margin around the panel */
    --ui: #141413;            /* the panel the page sits on — change this one value to re-tint it */
    --ui-rgb: 20, 20, 19;     /* the same colour, for translucent bars and fades */
    --ui-2: #1a1a19;
    --ui-3: #0b0b0a;
    --panel: #161615;
    --raise: #222220;
    --raise-2: #2d2d2a;
    --line: rgba(255, 255, 255, .06);
    --line-2: rgba(255, 255, 255, .11);
    --line-3: rgba(255, 255, 255, .26);
    --tx: #f2f1ea;
    --tx-2: rgba(242, 241, 234, .7);
    --tx-3: rgba(242, 241, 234, .5);
    --mint: #4be3ac;
    --cream: #f2f1ea;
    --ink: #111110;
    --sel: rgba(255, 255, 255, .06);
    --r-s: 10px;
    --r-m: 14px;
    --r-l: 20px;
    --r-xl: 28px;
    --r-pane: 22px;           /* corner of the floating panel */
    --sbw: 248px;
    --tbh: 64px;
    --pad: 36px;
    --gap: 14px;              /* frame showing below the panel */
    /* …and beside it: the same margin, less whatever a classic scrollbar already takes up there */
    --gap-r: max(calc(var(--gap) - (100vw - 100%)), 2px);
    --under: 0px;             /* how far a backdrop runs up underneath the top bar */
    --font: "Geist", system-ui, sans-serif;
    --display: var(--font);   /* headings: same family, set heavier and tighter where they are used */
    --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    --ease: cubic-bezier(.3, .7, .2, 1);
    --out: cubic-bezier(.16, 1, .3, 1);
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
    background: var(--frame);
    -webkit-text-size-adjust: 100%;
    scrollbar-color: rgba(255, 255, 255, .2) transparent;
}

body {
    margin: 0;
    background: var(--frame);
    color: var(--tx);
    font: 400 14px/1.45 var(--font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

h1, h2, h3, p, dl, dd, dt, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
::selection { background: rgba(242, 241, 234, .28); color: #fff; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--tx); outline-offset: 2px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.ic {
    width: 18px; height: 18px; flex: none;
    fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

kbd {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 22px; height: 22px; padding: 0 6px; margin: 0 1px;
    border-radius: 7px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--line-2);
    font: 500 11px/1 var(--mono); color: var(--tx-2);
}

/* ── layout: the frame, and the panel floating in it ───────────────────────── */
.sb {
    position: fixed; inset: 0 auto 0 0; z-index: 40;
    width: var(--sbw);
    display: flex; flex-direction: column;
    background: var(--frame);
    transition: transform .3s var(--out);
}

/* The page column. It carries the panel colour; .frame below trims it into a rounded panel. */
.win {
    margin: 0 var(--gap-r) var(--gap) var(--sbw);
    min-height: calc(100vh - var(--gap)); min-height: calc(100dvh - var(--gap));
    display: flex; flex-direction: column;
    overflow-x: clip;
    background: var(--ui);
    transition: margin-left .3s var(--out);
}

#view { flex: 1; position: relative; z-index: 0; }

/* The panel's outline. It stays put while the page scrolls underneath: everything outside the
   rounded rectangle is painted in the frame colour, so the page only shows through the panel
   and the document keeps its ordinary scrolling (wheel, keyboard, find-in-page all untouched). */
.frame {
    position: fixed; z-index: 20; pointer-events: none;
    inset: var(--tbh) var(--gap-r) var(--gap) var(--sbw);
    border-radius: var(--r-pane);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .075), 0 0 0 200vmax var(--frame);
    transition: left .3s var(--out);
}

html[data-sb="off"] .sb { transform: translateX(-100%); }
html[data-sb="off"] .win { margin-left: var(--gap); }
html[data-sb="off"] .frame { left: var(--gap); }

/* the window's own scrollbar rides on the frame, level with the panel */
@media (min-width: 861px) and (pointer: fine) {
    html { scrollbar-gutter: stable; }
    @supports selector(::-webkit-scrollbar) {
        html { scrollbar-color: auto; }
        body { scrollbar-color: rgba(255, 255, 255, .2) transparent; }
        html::-webkit-scrollbar { width: 14px; background: var(--frame); }
        html::-webkit-scrollbar-track { margin: var(--tbh) 0 var(--gap); background: var(--frame); }
        html::-webkit-scrollbar-thumb {
            border: 4px solid transparent; border-radius: 99px;
            background: rgba(255, 255, 255, .17); background-clip: content-box;
        }
        html::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 255, 255, .3); }
    }
}

.scrim {
    position: fixed; inset: 0; z-index: 35;
    background: rgba(0, 0, 0, .66);
    opacity: 0; pointer-events: none;
    transition: opacity .2s var(--ease);
}

/* ── sidebar ───────────────────────────────────────────────────────────────── */
.sb-brand, .tb-brand, .ft-brand {
    display: flex; align-items: center; gap: 9px;
    font: 800 18px/1 var(--display); letter-spacing: -.035em; color: var(--tx);
}
.sb-brand img, .tb-brand img, .ft-brand img { flex: none; }
.sb-brand i, .tb-brand i, .ft-brand i { font-style: normal; font-weight: 500; color: var(--tx-3); }

/* the brand row is as tall as the top bar, so the logo and the search field share a centre line */
.sb-top { flex: none; height: var(--tbh); display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px 0 20px; }
.sb-brand img { width: 32px; height: 32px; }
.sb-top .tbb { width: 32px; height: 32px; color: var(--tx-3); }
.sb-top .tbb .ic { width: 17px; height: 17px; }

.sb-nav {
    flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
    padding: 0 10px 12px;
    scrollbar-width: none;
}
.sb-nav::-webkit-scrollbar { display: none; }
.sb-h { padding: 20px 13px 8px; font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--tx-3); }
.sb-i {
    display: flex; align-items: center; gap: 10px;
    height: 36px; padding: 0 13px; border-radius: 99px;
    color: var(--tx-2); font-size: 13.5px; font-weight: 500;
    transition: background .15s, color .15s;
}
.sb-i .ic { width: 17px; height: 17px; color: var(--tx-3); transition: color .15s; }
.sb-i span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-i em { font: 500 11px/1 var(--mono); font-style: normal; color: var(--tx-3); font-variant-numeric: tabular-nums; }
.sb-i:hover { background: rgba(255, 255, 255, .05); color: var(--tx); }
.sb-i:hover .ic { color: var(--tx); }
.sb-i[aria-current] { background: rgba(255, 255, 255, .085); color: var(--tx); font-weight: 600; }
.sb-i[aria-current] .ic { color: var(--tx); }
.sb-i[aria-current] em { color: var(--tx-2); }
.sb-foot { flex: none; padding: 8px 10px 14px; border-top: 1px solid var(--line); }

.sb-legal { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px 7px 0; }
.sb-legal a { padding: 3px 6px; border-radius: 7px; font-size: 11.5px; color: var(--tx-3); transition: background .15s, color .15s; }
.sb-legal a:hover { background: rgba(255, 255, 255, .05); color: var(--tx); }
.sb-legal a[aria-current] { background: var(--sel); color: var(--tx); }

/* ── toolbar ───────────────────────────────────────────────────────────────── */
/* On desktop the bar belongs to the frame: it spans exactly the panel's width, search flush with
   the panel's left edge and the actions flush with its right. */
.tb {
    position: sticky; top: 0; z-index: 30;
    height: var(--tbh); flex: none;
    display: flex; align-items: center; gap: 6px;
    background: var(--frame);
}

.tbb {
    width: 36px; height: 36px; flex: none; padding: 0; border: 0; border-radius: 50%;
    display: grid; place-items: center;
    background: none; color: var(--tx-2);
    transition: background .15s, color .15s, opacity .15s;
}
.tbb .ic { width: 19px; height: 19px; }
.tbb:hover:not(:disabled) { background: rgba(255, 255, 255, .08); color: var(--tx); }
.tbb:active:not(:disabled) { background: rgba(255, 255, 255, .13); }
.tbb:disabled { opacity: .28; cursor: default; }
.tb-nav { display: flex; }

.tb-brand { font-size: 17px; }
.tb-brand img { width: 30px; height: 30px; }
/* the page's name: comes in once its own heading has scrolled out of the panel */
.tb-title {
    min-width: 0;
    font: 700 15px/1.2 var(--display); letter-spacing: -.02em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    opacity: 0; pointer-events: none;
    transition: opacity .2s var(--ease);
}
.tb.is-scrolled .tb-title { opacity: 1; }

.tb-act { flex: none; display: flex; align-items: center; gap: 2px; }
.tb-pill {
    display: inline-flex; align-items: center; gap: 8px;
    height: 38px; margin-right: 8px; padding: 0 16px 0 14px; border-radius: 99px;
    box-shadow: inset 0 0 0 1px var(--line-2);
    color: var(--tx-2); font-size: 13px; font-weight: 600; white-space: nowrap;
    transition: background .15s, color .15s, box-shadow .15s;
}
.tb-pill .ic { width: 16px; height: 16px; }
.tb-pill:hover { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line-3); color: var(--tx); }
a.tbb[aria-current] { color: var(--tx); background: rgba(255, 255, 255, .085); }

@media (min-width: 861px) {
    /* laid out by order, so the phone bar can keep the same markup in its own sequence */
    .tb-id { display: contents; }
    #sbToggle, .tb-brand { display: none; }
    html[data-sb="off"] #sbToggle { display: grid; order: 0; margin-left: -4px; }
    html[data-sb="off"] .tb-brand { display: flex; order: 1; margin-right: 16px; }
    .srch { order: 2; }
    .tb-nav { order: 3; margin-left: 2px; }
    .tb-title { order: 4; flex: 1; margin: 0 16px 0 6px; }
    .tb-act { order: 5; }
}

.field {
    display: flex; align-items: center; gap: 8px;
    height: 36px; padding: 0 12px; border-radius: 99px;
    background: rgba(255, 255, 255, .04);
    box-shadow: inset 0 0 0 1px var(--line-2);
    color: var(--tx-3);
    transition: box-shadow .15s, background .15s;
}
.field > .ic { width: 16px; height: 16px; transition: color .15s; }
.field input {
    flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: none;
    color: var(--tx); font-size: 13.5px; text-overflow: ellipsis;
    -webkit-appearance: none; appearance: none;
}
.field input::placeholder { color: var(--tx-3); text-overflow: ellipsis; }
.field:hover { background: rgba(255, 255, 255, .06); }
.field:focus-within { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(242, 241, 234, .5); }
.field:focus-within > .ic { color: var(--tx); }
.field input:focus-visible { outline: none; }
.field kbd { min-width: 0; height: 20px; padding: 0 6px; background: none; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 10px; color: var(--tx-3); white-space: nowrap; }
.field:focus-within kbd, .field input:not(:placeholder-shown) ~ kbd { display: none; }
.field-sm { width: 200px; height: 34px; }
.srch { flex: none; width: clamp(300px, 31vw, 500px); height: 40px; margin: 0; padding: 0 10px 0 16px; background: rgba(255, 255, 255, .035); }
#srchOpen, #srchClose { display: none; }

/* ── controls ──────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 36px; padding: 0 16px; border: 0; border-radius: 99px;
    background: var(--raise); color: var(--tx);
    box-shadow: inset 0 0 0 1px var(--line-2);
    font-size: 13.5px; font-weight: 600; white-space: nowrap;
    transition: background .15s, color .15s;
}
.btn:hover { background: var(--raise-2); }
.btn .ic { width: 16px; height: 16px; }
.btn i { font-style: normal; font-weight: 500; opacity: .62; }
.btn-pri { background: var(--cream); color: var(--ink); box-shadow: none; }
.btn-pri:hover { background: #fff; }
.btn-pri:active { background: #dddcd4; }
.btn-pri .ic { stroke-width: 2.1; }
.btn-pri i { margin-left: 2px; padding: 4px 8px; border-radius: 99px; background: rgba(17, 17, 16, .1); font: 500 11px/1 var(--mono); opacity: 1; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; }
.btn-lg .ic { width: 18px; height: 18px; }

.linkbtn {
    padding: 0; border: 0; background: none;
    color: var(--tx); font-weight: 600;
    text-decoration: underline; text-decoration-color: var(--tx-3); text-underline-offset: 3px;
}
.linkbtn:hover { text-decoration-color: currentColor; }

.seg {
    display: inline-flex; flex: none; gap: 2px; padding: 3px; border-radius: 99px;
    background: rgba(255, 255, 255, .04);
    box-shadow: inset 0 0 0 1px var(--line);
}
.seg > * {
    display: inline-flex; align-items: center; justify-content: center;
    height: 28px; padding: 0 13px; border: 0; border-radius: 99px;
    background: none; color: var(--tx-2);
    font-size: 13px; font-weight: 500; white-space: nowrap;
    transition: background .15s, color .15s;
}
.seg > *:hover { color: var(--tx); background: rgba(255, 255, 255, .06); }
.seg > [aria-current], .seg > [aria-pressed="true"],
html:not([data-view="list"]) .seg > [data-view="grid"], html[data-view="list"] .seg > [data-view="list"] {
    background: var(--cream); color: var(--ink); font-weight: 600;
}
.seg-ic > * { width: 36px; padding: 0; }
.seg-ic .ic { width: 16px; height: 16px; }
.seg-scroll { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg-scroll::-webkit-scrollbar { display: none; }

.pop { position: relative; display: inline-flex; flex: none; }
.pop select {
    height: 34px; padding: 0 34px 0 15px; border: 0; border-radius: 99px;
    background: var(--raise); color: var(--tx);
    box-shadow: inset 0 0 0 1px var(--line-2);
    font-size: 13px; font-weight: 600; cursor: pointer;
    -webkit-appearance: none; appearance: none;
    transition: background .15s;
}
.pop select:hover { background: var(--raise-2); }
.pop select option { background: var(--ui-2); color: var(--tx); }
.pop .ic {
    position: absolute; right: 11px; top: 50%; margin-top: -8px;
    width: 16px; height: 16px; color: var(--tx-3); stroke-width: 2; pointer-events: none;
}

/* the download pill: quiet at rest, cream once its row is hovered */
.get {
    flex: none; display: inline-flex; align-items: center; justify-content: center;
    min-width: 62px; height: 28px; padding: 0 14px; border-radius: 99px;
    background: rgba(255, 255, 255, .08); color: var(--tx);
    font: 600 11px/1 var(--mono); letter-spacing: .09em; text-transform: uppercase;
    transition: background .15s, color .15s;
}

.chips { display: flex; gap: 6px; min-width: 0; flex: 1; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
.chips::-webkit-scrollbar { display: none; }
.chip {
    flex: none; display: inline-flex; align-items: center; height: 30px; padding: 0 13px; border-radius: 99px;
    background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line);
    color: var(--tx-2); font-size: 13px; font-weight: 500; white-space: nowrap;
    transition: background .15s, color .15s, box-shadow .15s;
}
.chip i { margin-left: 7px; font: 500 10.5px/1 var(--mono); font-style: normal; color: var(--tx-3); font-variant-numeric: tabular-nums; }
.chip:hover { background: rgba(255, 255, 255, .09); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--tx); }
.chips-lg { flex-wrap: wrap; overflow: visible; gap: 8px; -webkit-mask-image: none; mask-image: none; }
.chips-lg .chip { height: 36px; padding: 0 16px; font-size: 14px; }

/* ── views ─────────────────────────────────────────────────────────────────── */
.v { max-width: 1520px; margin: 0 auto; padding: 22px var(--pad) 64px; }

.eyebrow { font: 500 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--tx-3); }
.vh { padding: 14px 0 0; }
.vh h1 { font: 700 clamp(30px, 3.3vw, 46px)/1.02 var(--display); letter-spacing: -.038em; }
.vh .eyebrow + h1 { margin-top: 8px; }
.vh-n { margin-top: 8px; color: var(--tx-3); }
.lede { margin-top: 12px; max-width: 62ch; font-size: 15.5px; line-height: 1.55; color: var(--tx-2); }
.muted { color: var(--tx-3); }

.vh-home { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); column-gap: 44px; align-items: end; padding: 20px 0 0; }
.vh-home .eyebrow { grid-column: 1 / -1; }
.vh-home h1 { font-size: clamp(38px, 4.8vw, 68px); line-height: .96; letter-spacing: -.045em; max-width: 12ch; }
.vh-home .lede { margin: 0 0 6px; font-size: 15px; }

.sec-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 46px 0 16px; }
.sec-h h2 { font: 700 23px/1.15 var(--display); letter-spacing: -.028em; }
.more {
    flex: none; display: inline-flex; align-items: center; gap: 3px;
    height: 28px; padding: 0 7px 0 12px; border-radius: 99px;
    box-shadow: inset 0 0 0 1px var(--line-2);
    font: 500 10.5px/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--tx-2);
    transition: background .15s, color .15s;
}
.more .ic { width: 13px; height: 13px; stroke-width: 2.2; }
.more:hover { background: rgba(255, 255, 255, .08); color: var(--tx); }
.count { margin-left: 8px; font: 500 12px/1 var(--mono); letter-spacing: 0; color: var(--tx-3); font-variant-numeric: tabular-nums; }

.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 20px 0 22px; }
.vt { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.bar-note { display: inline-flex; align-items: center; gap: 6px; color: var(--tx-3); font-size: 12.5px; }
.bar-note .ic { width: 15px; height: 15px; }

/* ── artwork + cards ───────────────────────────────────────────────────────── */
.art {
    position: relative; display: block; overflow: hidden;
    aspect-ratio: 2 / 3; border-radius: var(--r-m);
    background: var(--raise);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .07);
    transition: box-shadow .15s;
}
.art img { width: 100%; height: 100%; object-fit: cover; }
.art.noimg::after {
    content: attr(data-t); position: absolute; inset: 0; display: grid; place-items: center;
    font: 700 28px/1 var(--display); letter-spacing: -.02em; color: rgba(242, 241, 234, .28);
}
.badge {
    position: absolute; left: 7px; bottom: 7px; z-index: 2;
    padding: 4px 6px; border-radius: 7px;
    background: rgba(11, 11, 10, .8);
    color: #fff; font: 600 9.5px/1 var(--mono); letter-spacing: .06em;
}
.badge-new { left: auto; bottom: auto; right: 7px; top: 7px; background: var(--cream); color: var(--ink); font-weight: 700; text-transform: uppercase; }

.card { display: flex; flex-direction: column; min-width: 0; border-radius: var(--r-m); }
.card:focus-visible { outline-offset: 4px; }
.card-n {
    margin-top: 10px; font-size: 13.5px; font-weight: 600; line-height: 1.28; letter-spacing: -.005em;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-s { margin-top: 4px; font: 400 11px/1.3 var(--mono); color: var(--tx-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc { display: none; font-size: 12.5px; color: var(--tx-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-f, .cc-d { text-align: right; font-variant-numeric: tabular-nums; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(152px, 1fr)); gap: 28px 18px; }
.lh { display: none; }

/* list view */
html[data-view="list"] .grid { display: block; }
html[data-view="list"] .grid .lh,
html[data-view="list"] .grid .card {
    display: grid; grid-template-columns: 32px minmax(0, 1fr) 84px 100px 52px 68px 92px; gap: 14px; align-items: center;
    padding: 0 12px;
}
html[data-view="list"] .grid .lh {
    height: 30px; margin-bottom: 4px; border-bottom: 1px solid var(--line-2);
    font: 500 10.5px/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--tx-3);
}
html[data-view="list"] .grid .card { height: 58px; border-radius: 14px; transition: background .15s; }
html[data-view="list"] .grid .card:nth-child(odd) { background: rgba(255, 255, 255, .02); }
html[data-view="list"] .grid .card:hover { background: var(--sel); }
html[data-view="list"] .grid .art { width: 32px; border-radius: 7px; }
html[data-view="list"] .grid .art.noimg::after { font-size: 11px; }
html[data-view="list"] .grid .badge, html[data-view="list"] .grid .card-s { display: none; }
html[data-view="list"] .grid .card-n { margin: 0; -webkit-line-clamp: 1; }
html[data-view="list"] .grid .cc { display: block; }
html[data-view="list"] .grid .cc-y, html[data-view="list"] .grid .cc-f, html[data-view="list"] .grid .cc-q, html[data-view="list"] .grid .cc-d { font-family: var(--mono); font-size: 11.5px; }

/* ── shelves ───────────────────────────────────────────────────────────────── */
.shelf-w { position: relative; }
.shelf-r {
    display: flex; gap: 16px;
    margin: 0 calc(-1 * var(--pad)); padding: 8px var(--pad) 10px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x proximity; scroll-padding-inline: var(--pad);
    scrollbar-width: none;
}
.shelf-r::-webkit-scrollbar { display: none; }
.shelf-r .card { flex: 0 0 clamp(132px, 12.4vw, 172px); scroll-snap-align: start; }
.shelf-a {
    position: absolute; top: 0; bottom: 52px; margin: auto 0; z-index: 4;
    width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--cream); color: var(--ink);
    box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .7);
    opacity: 0;
    transition: opacity .15s, background .15s;
}
.shelf-p { left: -16px; }
.shelf-n { right: -16px; }
.shelf-w:hover .shelf-a, .shelf-a:focus-visible { opacity: 1; }
.shelf-a:hover { background: #fff; }
.shelf-a .ic { width: 17px; height: 17px; stroke-width: 2.4; }
@media (hover: none) { .shelf-a { display: none; } }

/* ── chart ─────────────────────────────────────────────────────────────────── */
.chart { display: grid; grid-auto-flow: column; grid-template-rows: repeat(3, auto); grid-auto-columns: minmax(0, 1fr); gap: 4px 20px; }
.ch {
    display: grid; grid-template-columns: 46px 46px minmax(0, 1fr) auto; gap: 14px; align-items: center;
    padding: 9px 14px 9px 4px; border-radius: 18px;
    transition: background .15s;
}
.ch:hover { background: var(--sel); }
.ch:active { background: rgba(255, 255, 255, .09); }
.ch-r {
    text-align: center; font: 700 26px/1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums;
    color: var(--tx-3); transition: color .15s;
}
.ch:hover .ch-r { color: var(--tx); }
.ch .art { border-radius: 9px; }
.ch .art.noimg::after { font-size: 14px; }
.ch-t { min-width: 0; }
.ch-t b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-t i { display: block; margin-top: 3px; font: 400 11px/1.3 var(--mono); font-style: normal; color: var(--tx-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── genre tiles / explainer ───────────────────────────────────────────────── */
.gt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 12px; }
.gt {
    display: flex; flex-direction: column; justify-content: flex-end; gap: 5px;
    min-height: 88px; padding: 16px 18px; border-radius: var(--r-l);
    background: var(--ui-2);
    box-shadow: inset 0 0 0 1px var(--line);
    transition: background .15s, box-shadow .15s;
}
.gt:hover { background: var(--raise); box-shadow: inset 0 0 0 1px var(--line-2); }
.gt b { font: 700 18px/1.05 var(--display); letter-spacing: -.03em; color: var(--tx); }
.gt span { font: 400 11px/1.2 var(--mono); color: var(--tx-3); }

.ex-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ex, .panel { padding: 24px; border-radius: 22px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); }
.ex .ic { width: 26px; height: 26px; color: var(--tx-2); stroke-width: 1.6; }
.ex h3 { margin: 14px 0 6px; font: 700 17px/1.2 var(--display); letter-spacing: -.02em; }
.ex p { font-size: 14px; line-height: 1.55; color: var(--tx-2); }

/* inline links: same colour as the text around them, told apart by the underline */
.ex a, .kv a, .prose a, .doc-main a:not(.btn), .files-note a {
    color: var(--tx);
    text-decoration: underline; text-decoration-color: rgba(242, 241, 234, .35); text-underline-offset: 3px;
}
.ex a:hover, .kv a:hover, .prose a:hover, .doc-main a:not(.btn):hover, .files-note a:hover { text-decoration-color: currentColor; }

/* ── detail ────────────────────────────────────────────────────────────────── */
.v-detail { position: relative; max-width: none; padding-top: 0; }
.v-detail > *:not(.dt-bd) { position: relative; z-index: 1; max-width: 1200px; margin-inline: auto; }
.dt-bd { position: absolute; z-index: 0; left: 0; right: 0; top: calc(-1 * var(--under)); height: 430px; overflow: hidden; pointer-events: none; }
.dt-bd img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; opacity: .5; }
.dt-bd.is-soft img { filter: blur(44px); transform: scale(1.35); opacity: .36; }
.dt-bd::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--ui-rgb), .35) 0%, rgba(var(--ui-rgb), .62) 44%, var(--ui) 100%); }

.dt-head { display: flex; align-items: flex-end; gap: 36px; padding-top: 104px; }
.dt-poster { flex: none; width: 214px; }
.dt-poster .art { border-radius: 20px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 30px 50px -28px rgba(0, 0, 0, .9); }
.dt-meta { flex: 1; min-width: 0; padding-bottom: 6px; }
.crumbs { display: flex; align-items: center; gap: 4px; margin-bottom: 12px; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--tx-2); }
.crumbs .ic { width: 12px; height: 12px; color: var(--tx-3); stroke-width: 2.2; }
.crumbs a { transition: color .15s; }
.crumbs a:hover { color: #fff; }
.dt-meta h1 { font: 700 clamp(30px, 4.2vw, 58px)/.98 var(--display); letter-spacing: -.038em; text-wrap: balance; }
.dt-meta h1 span { font-weight: 300; letter-spacing: -.03em; color: var(--tx-3); }
.dt-tag { margin-top: 12px; max-width: 62ch; font-size: 15.5px; line-height: 1.5; color: var(--tx-2); }
.dt-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* stat tiles */
.strip { display: flex; gap: 10px; margin-top: 34px; overflow-x: auto; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip > div {
    flex: 1 0 122px; padding: 14px 16px 13px; border-radius: 18px;
    background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line);
}
.strip dt { font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--tx-3); }
.strip dd { margin: 9px 0 5px; font: 700 23px/1 var(--display); letter-spacing: -.03em; color: var(--tx); white-space: nowrap; font-variant-numeric: tabular-nums; }
.strip small { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--tx-3); white-space: nowrap; }
.strip small .ic { width: 11px; height: 11px; }

.files { scroll-margin-top: calc(var(--tbh) + 4px); }
.files .sec-h { align-items: center; flex-wrap: wrap; }
.files-t { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.ft { border-radius: 22px; background: rgba(255, 255, 255, .02); box-shadow: inset 0 0 0 1px var(--line-2); overflow: hidden; }
.ft-h, .fr { display: grid; grid-template-columns: 36px minmax(0, 1fr) minmax(0, 200px) minmax(0, 116px) 68px; gap: 14px; align-items: center; padding: 0 16px 0 12px; }
.ft-h { height: 36px; font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--tx-3); }
.fr { min-height: 58px; padding-top: 8px; padding-bottom: 8px; border-top: 1px solid var(--line); transition: background .15s; }
.fr:hover { background: rgba(255, 255, 255, .04); }
.fr:active { background: rgba(255, 255, 255, .07); }
.fr:hover .get, .fr:focus-visible .get, .ch:hover .get, .cp-h:hover .get { background: var(--cream); color: var(--ink); }
.fr:focus-visible { outline-offset: -3px; }
.fr-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .05); color: var(--tx-2); transition: color .15s; }
.fr-ic .ic { width: 19px; height: 19px; stroke-width: 1.6; }
.fr:hover .fr-ic { color: var(--tx); }
.fr-n { min-width: 0; }
.fr-n b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-n i { display: block; margin-top: 3px; font: 400 11px/1.3 var(--mono); font-style: normal; color: var(--tx-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-q { display: flex; align-items: center; gap: 8px; min-width: 0; font: 400 11.5px/1.3 var(--mono); color: var(--tx-2); }
.fr-q span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cap { flex: none; padding: 4px 7px; border-radius: 7px; box-shadow: inset 0 0 0 1px var(--line-2); background: rgba(255, 255, 255, .05); color: var(--tx); font: 600 10px/1 var(--mono); font-style: normal; letter-spacing: .05em; }
.fr-e { min-width: 0; font: 400 11.5px/1.3 var(--mono); color: var(--tx-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ft-0 { padding: 30px 14px; border-top: 1px solid var(--line); text-align: center; color: var(--tx-3); }
.files-note { display: flex; align-items: flex-start; gap: 7px; margin-top: 12px; font-size: 12.5px; color: var(--tx-3); }
.files-note .ic { width: 14px; height: 14px; margin-top: 2px; }
.files-note span { min-width: 0; line-height: 1.45; }

.dt-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; }
.prose { font-size: 15px; line-height: 1.66; color: var(--tx-2); white-space: pre-line; max-width: 72ch; }
.prose.clamp { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
/* the summary written from the catalogue, then the synopsis */
.prose + .prose { margin-top: 12px; }
.about .linkbtn { margin-top: 8px; }
.notes { margin-top: 20px; padding: 16px 18px; border-radius: 18px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); }
.notes h3 { margin-bottom: 6px; font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--tx-3); }
.notes p { font-size: 14px; line-height: 1.55; color: var(--tx-2); white-space: pre-line; overflow-wrap: anywhere; }
.kv > div { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.kv > div:first-child { border-top: 0; padding-top: 0; }
.kv dt { padding-top: 3px; font: 500 10.5px/1.3 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--tx-3); }
.kv dd { overflow-wrap: anywhere; }

/* cast: portrait cards, every one a link */
.cast-r { display: flex; gap: 12px; margin: 0 calc(-1 * var(--pad)); padding: 6px var(--pad) 8px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--pad); scrollbar-width: none; }
.cast-r::-webkit-scrollbar { display: none; }
.cm { flex: 0 0 124px; display: block; min-width: 0; border-radius: 18px; scroll-snap-align: start; }
.cm-a {
    position: relative; display: block; overflow: hidden;
    aspect-ratio: 4 / 5; margin-bottom: 10px; border-radius: 18px;
    background: var(--raise);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .07);
    transition: box-shadow .15s;
}
.cm-i { position: absolute; inset: 0; display: grid; place-items: center; font: 700 28px/1 var(--display); letter-spacing: -.02em; color: rgba(242, 241, 234, .28); }
.cm-a img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.cm-go {
    position: absolute; right: 8px; top: 8px; z-index: 2;
    width: 26px; height: 26px; padding: 6px; border-radius: 50%;
    background: var(--cream); color: var(--ink); stroke-width: 2.6;
    opacity: 0; transition: opacity .15s;
}
.cm b { display: block; font-size: 13px; font-weight: 600; line-height: 1.25; }
.cm i { display: block; margin-top: 3px; font-style: normal; font-size: 12px; line-height: 1.3; color: var(--tx-3); }
.cm:hover .cm-go, .cm:focus-visible .cm-go { opacity: 1; }
.cm:focus-visible { outline-offset: 4px; }

/* ── about / empty ─────────────────────────────────────────────────────────── */
.v-about { max-width: 1060px; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; margin-top: 28px; }
.panel h2 { margin-bottom: 14px; font: 700 19px/1.2 var(--display); letter-spacing: -.022em; }
.panel p + p { margin-top: 14px; }
.panel .muted { margin-top: 12px; font-size: 13px; }
.steps { counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding-left: 38px; font-size: 14px; line-height: 1.5; color: var(--tx-2); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 25px; height: 25px; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: var(--tx); font: 600 11.5px/1 var(--mono); }
.steps b { color: var(--tx); font-weight: 600; }
.keys > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.keys > div:first-child { border-top: 0; padding-top: 0; }
.keys dt { color: var(--tx-3); white-space: nowrap; }
.keys dd { text-align: right; color: var(--tx-2); }
.faq details { border-top: 1px solid var(--line-2); }
.faq details:last-child { border-bottom: 1px solid var(--line-2); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 2px; cursor: pointer; list-style: none; font: 600 16px/1.3 var(--display); letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { width: 26px; height: 26px; padding: 6px; border-radius: 50%; background: rgba(255, 255, 255, .06); color: var(--tx-2); stroke-width: 2.4; transition: transform .2s var(--ease), background .15s, color .15s; }
.faq summary:hover .ic { background: rgba(255, 255, 255, .12); color: var(--tx); }
.faq details[open] summary .ic { transform: rotate(90deg); background: var(--cream); color: var(--ink); }
.faq details p { max-width: 72ch; padding: 0 2px 18px; font-size: 14.5px; line-height: 1.62; color: var(--tx-2); }
#dmca { margin-top: 30px; scroll-margin-top: calc(var(--tbh) + 12px); }

.empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 96px 20px 80px; }
.empty-ic { width: 72px; height: 72px; padding: 20px; border-radius: 22px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); color: var(--tx-2); stroke-width: 1.4; }
.empty h2 { margin-top: 22px; font: 700 26px/1.1 var(--display); letter-spacing: -.035em; overflow-wrap: anywhere; }
.empty p { margin-top: 8px; max-width: 46ch; font-size: 14.5px; line-height: 1.5; color: var(--tx-2); }
.empty-a { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }

/* ── legal documents ───────────────────────────────────────────────────────── */
.v-doc { max-width: 1060px; }
.doc-bar { margin: 22px 0 0; padding-bottom: 18px; border-bottom: 1px solid var(--line-2); }
.doc-up { font: 400 11.5px/1.4 var(--mono); color: var(--tx-3); font-variant-numeric: tabular-nums; }
.doc-cols { display: grid; grid-template-columns: 212px minmax(0, 1fr); gap: 48px; align-items: start; margin-top: 26px; }

.doc-toc {
    position: sticky; top: calc(var(--tbh) + 14px);
    max-height: calc(100vh - var(--tbh) - 28px); overflow-y: auto; scrollbar-width: none;
}
.doc-toc::-webkit-scrollbar { display: none; }
.doc-toc h2 { padding: 0 10px 10px; font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--tx-3); }
.doc-toc a { display: flex; gap: 9px; padding: 6px 10px; border-radius: 10px; font-size: 13px; line-height: 1.35; color: var(--tx-2); transition: background .15s, color .15s; }
.doc-toc a span { flex: none; width: 17px; padding-top: 2px; font: 400 10.5px/1.35 var(--mono); color: var(--tx-3); font-variant-numeric: tabular-nums; }
.doc-toc a:hover { background: rgba(255, 255, 255, .05); color: var(--tx); }

.doc-main { min-width: 0; }
.doc-main b { font-weight: 600; color: var(--tx); }

.ticks { display: grid; gap: 12px; }
.ticks li { display: flex; align-items: flex-start; gap: 11px; font-size: 14px; line-height: 1.5; color: var(--tx-2); overflow-wrap: anywhere; }
.ticks .ic { width: 20px; height: 20px; padding: 4px; margin-top: 1px; border-radius: 50%; background: rgba(75, 227, 172, .12); color: var(--mint); stroke-width: 3; }

.doc-s { padding: 28px 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--tbh) + 4px); }
.doc-tldr + .doc-s { margin-top: 6px; border-top: 0; }
.doc-s > * + * { margin-top: 12px; }
.doc-s h2 { display: flex; align-items: flex-start; gap: 11px; font: 700 20px/1.25 var(--display); letter-spacing: -.024em; }
.doc-s h2 span {
    flex: none; min-width: 26px; height: 24px; padding: 0 7px; margin-top: 1px; border-radius: 8px;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, .07); color: var(--tx-2);
    font: 500 11px/1 var(--mono); letter-spacing: 0; font-variant-numeric: tabular-nums;
}
.doc-s p, .doc-l li { max-width: 72ch; font-size: 14.5px; line-height: 1.68; color: var(--tx-2); overflow-wrap: anywhere; }
.doc-l { display: grid; gap: 8px; }
.doc-l li { position: relative; padding-left: 20px; }
.doc-l li::before { content: ""; position: absolute; left: 3px; top: .72em; width: 8px; height: 2px; border-radius: 2px; background: var(--tx-3); }
.doc-n { counter-reset: n; }
.doc-n li { counter-increment: n; padding-left: 30px; }
.doc-n li::before { content: counter(n, decimal-leading-zero); left: 0; top: .28em; width: auto; height: auto; border-radius: 0; background: none; color: var(--tx-3); font: 400 11px/1.4 var(--mono); font-variant-numeric: tabular-nums; }

.doc-tw { border-radius: 18px; background: rgba(255, 255, 255, .02); box-shadow: inset 0 0 0 1px var(--line-2); overflow: hidden; }
.doc-t { width: 100%; border-collapse: collapse; text-align: left; }
.doc-t th { height: 36px; padding: 0 16px; font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--tx-3); }
.doc-t td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; font-size: 13.5px; line-height: 1.5; color: var(--tx-2); }
.doc-t td:first-child { width: 27%; font-weight: 600; color: var(--tx); }
.doc-t td:last-child { width: 30%; }
.doc-t code { display: inline-block; padding: 2px 7px; border-radius: 7px; background: rgba(255, 255, 255, .08); font: 500 11.5px/1.5 var(--mono); color: var(--tx); }

.doc-contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 8px; }
.doc-contact > div:first-child { flex: 1 1 280px; min-width: 0; }
.doc-contact h2 { margin-bottom: 6px; }
.doc-contact p { font-size: 14px; line-height: 1.5; color: var(--tx-2); overflow-wrap: anywhere; }
.doc-contact-a, .panel-a { display: flex; flex-wrap: wrap; gap: 10px; }
.panel .panel-a { margin-top: 18px; }

/* ── footer / tab bar / hud ────────────────────────────────────────────────── */
.foot {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px;
    margin: 0 var(--pad); padding: 34px 0 30px;
    border-top: 1px solid var(--line);
    font-size: 12.5px; color: var(--tx-3);
}
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.foot a { transition: color .15s; }
.foot a:hover { color: var(--tx); }
.foot .ft-n { flex-basis: 100%; }
.foot .ft-top { flex-basis: 100%; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 28px; padding-bottom: 26px; }
.ft-brand img { width: 34px; height: 34px; }
.ft-top p { max-width: 46ch; font-size: 13.5px; line-height: 1.5; color: var(--tx-2); }
.foot .ft-cols { flex-basis: 100%; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px 24px; padding: 0 0 26px; }
.ft-cols h3 { margin-bottom: 10px; font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--tx-2); }
.ft-cols a { display: block; width: fit-content; padding: 4px 0; font-size: 13px; }

.tabbar { display: none; }

.skip {
    position: fixed; top: 10px; left: 10px; z-index: 90;
    padding: 10px 16px; border-radius: 99px;
    background: var(--cream); color: var(--ink); font-weight: 700;
    transform: translateY(-64px);
}
.skip:focus { transform: none; outline: 0; box-shadow: 0 0 0 3px rgba(255, 255, 255, .35); }

.hud {
    position: fixed; left: 50%; bottom: 36px; z-index: 60;
    padding: 12px 20px; border-radius: 99px;
    background: var(--cream); color: var(--ink);
    box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .8);
    font-weight: 600; white-space: nowrap;
    opacity: 0; transform: translate(-50%, 0); pointer-events: none;
    transition: opacity .15s var(--ease);
}
.hud.is-on { opacity: 1; }

/* ── explore: avatars, rows, collections, indexes ─────────────────────────── */
/* A real picture sits on top of the initials, so a missing or broken image still reads. */
.av {
    position: relative; flex: none; overflow: hidden;
    display: grid; place-items: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--raise);
    box-shadow: 0 0 0 1px var(--line-2);
    color: var(--tx-2); font: 600 13px/1 var(--display); letter-spacing: 0;
}
.av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.av-sq { border-radius: 10px; }                 /* studio logos: a square tile, not a face */
.av-sq img { object-position: center; }
.av-xl { width: 100px; height: 100px; font-size: 34px; letter-spacing: -.02em; }
.av-sq.av-xl { border-radius: 22px; }

.rws { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2px 26px; margin: 0 -10px; }
.rws-w { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.rws-1 { grid-template-columns: minmax(0, 1fr); }
.rw {
    display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 13px; gap: 13px; align-items: center;
    min-height: 62px; padding: 8px 10px; border-radius: 16px;
    transition: background .15s;
}
.rw:hover { background: var(--sel); }
.rw:active { background: rgba(255, 255, 255, .09); }
.rw:focus-visible { outline-offset: -2px; }
.rw .art { width: 40px; border-radius: 8px; }
.rw .art.noimg::after { font-size: 12px; }
.rw-t { min-width: 0; }
.rw-t b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rw-t i { display: block; margin-top: 3px; font: 400 11px/1.3 var(--mono); font-style: normal; color: var(--tx-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rw-c { font: 400 11px/1 var(--mono); color: var(--tx-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rw-go { width: 13px; height: 13px; color: var(--tx-3); stroke-width: 2.2; opacity: .5; transition: opacity .15s, color .15s; }
.rw:hover .rw-go { opacity: 1; color: var(--tx); }

.sec-n { flex: none; font: 400 11px/1 var(--mono); color: var(--tx-3); font-variant-numeric: tabular-nums; }
.sec-h-t { align-items: center; flex-wrap: wrap; }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 44px; }
.x-more { margin-top: 36px; text-align: center; }

/* collection tile: up to three covers, side by side */
.co { display: flex; flex-direction: column; min-width: 0; border-radius: var(--r-l); }
.co-art {
    display: flex; align-items: center; justify-content: center; gap: 3.5%;
    aspect-ratio: 16 / 10; padding: 0 6%; border-radius: var(--r-l);
    position: relative; isolation: isolate; overflow: hidden;
    background: var(--ui-2);
}
/* the tile's own covers, out of focus and dimmed, as its backdrop */
.co-amb {
    position: absolute; inset: -14%; z-index: -1; display: flex;
    filter: blur(30px) saturate(1.2); opacity: .36;
    pointer-events: none; transition: opacity .2s;
}
.co-amb img { flex: 1 1 0; min-width: 0; height: 100%; object-fit: cover; }
.co-art::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .15s;
}
.co-p { flex: 0 1 27%; min-width: 0; }
.co-p .art { border-radius: 8px; box-shadow: 0 8px 22px rgba(0, 0, 0, .5); }
.co-n { margin-top: 12px; font: 700 16px/1.2 var(--display); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-s { margin-top: 4px; font: 400 11px/1.3 var(--mono); color: var(--tx-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co:focus-visible { outline-offset: 4px; }
.co-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 30px 18px; margin-top: 26px; }
.shelf-r .co { flex: 0 0 clamp(200px, 18vw, 250px); scroll-snap-align: start; }

/* entity pages: artwork of the most downloaded pack, far out of focus, behind the head.
   Anchored to #view so it runs edge to edge of the panel (and, on phones, up under the toolbar). */
.xbd {
    position: absolute; z-index: -1; left: 0; right: 0; top: calc(-1 * var(--under)); height: 500px;
    overflow: hidden; pointer-events: none;
    -webkit-mask-image: linear-gradient(180deg, #000 0, rgba(0, 0, 0, .7) 42%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0, rgba(0, 0, 0, .7) 42%, transparent 100%);
}
.xbd img {
    width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
    filter: blur(52px) saturate(1.25); transform: scale(1.3); opacity: .5;
}
.xh { display: flex; align-items: center; gap: 24px; padding-top: 18px; }
.xh-a { flex: none; }
.xh-a .art { width: 92px; border-radius: 14px; }
.xh-t { min-width: 0; }
.xh h1 { overflow-wrap: anywhere; text-wrap: balance; }
.xh h1 span { font-weight: 300; color: var(--tx-3); }
.xh .vh-n { max-width: 78ch; line-height: 1.5; }
.v-x > .strip { margin-top: 26px; }

.cp { margin-top: 28px; }
.cp-h { display: flex; align-items: center; gap: 13px; margin: 0 -10px 8px; padding: 8px 10px; border-radius: 16px; transition: background .15s; }
.cp-h:hover { background: var(--sel); }
.cp-h .art { flex: none; width: 36px; border-radius: 7px; }
.cp-h .art.noimg::after { font-size: 11px; }
.cp-t { flex: 1; min-width: 0; }
.cp-t b { display: block; font: 700 16px/1.2 var(--display); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-t i { display: block; margin-top: 3px; font: 400 11px/1.3 var(--mono); font-style: normal; color: var(--tx-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-go { flex: none; display: inline-flex; align-items: center; gap: 3px; font: 500 10.5px/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--tx-2); transition: color .15s; }
.cp-go .ic { width: 13px; height: 13px; stroke-width: 2.2; }
.cp-h:hover .cp-go { color: var(--tx); }
.cp .fr:first-child { border-top: 0; }

.az {
    position: sticky; top: var(--tbh); z-index: 3;
    display: flex; flex-wrap: wrap; gap: 3px;
    margin: 0 -6px; padding: 8px 6px; background: var(--ui);
}
.az a { display: grid; place-items: center; min-width: 30px; height: 30px; border-radius: 10px; font: 500 12px/1 var(--mono); color: var(--tx-2); transition: background .15s, color .15s; }
.az a:hover { background: rgba(255, 255, 255, .1); color: var(--tx); }
.azs { margin-top: 24px; scroll-margin-top: calc(var(--tbh) + 56px); }
.azs h3 { padding: 0 0 8px; border-bottom: 1px solid var(--line-2); font: 700 22px/1 var(--display); letter-spacing: -.03em; color: var(--tx-2); }
.az-l { columns: 240px; column-gap: 26px; margin: 8px -10px 0; }
.az-l a { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 6px 10px; border-radius: 10px; break-inside: avoid; transition: background .15s, color .15s; }
.az-l a:hover { background: var(--sel); color: #fff; }
.az-l span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.az-l i { flex: none; font: 400 11px/1 var(--mono); font-style: normal; color: var(--tx-3); font-variant-numeric: tabular-nums; }
.x0 { padding: 44px 14px; text-align: center; color: var(--tx-3); }

.lb { margin-top: 24px; }
.lb-h, .lb-r { display: grid; grid-template-columns: 30px 40px minmax(0, 1.5fr) 62px 62px 62px minmax(90px, 1fr); gap: 14px; align-items: center; padding: 0 12px; }
.lb-h { height: 30px; margin-bottom: 4px; border-bottom: 1px solid var(--line-2); font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--tx-3); }
.lb-r { min-height: 62px; border-radius: 16px; transition: background .15s; }
.lb-r:nth-child(even) { background: rgba(255, 255, 255, .02); }
.lb-r:hover { background: var(--sel); }
.lb-r:focus-visible { outline-offset: -2px; }
.lb-k { text-align: center; font: 700 15px/1 var(--display); letter-spacing: -.02em; color: var(--tx-3); font-variant-numeric: tabular-nums; }
.lb-t { min-width: 0; }
.lb-t b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-t i { display: block; margin-top: 3px; font: 400 11px/1.3 var(--mono); font-style: normal; color: var(--tx-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-n { text-align: right; font-variant-numeric: tabular-nums; }
.lb-r .lb-n { font: 400 12px/1 var(--mono); color: var(--tx-2); }
.lb-r .lb-b { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.lb-r .lb-b i { display: block; height: 100%; border-radius: 2px; background: rgba(242, 241, 234, .6); transform: scaleX(var(--w)); transform-origin: 0 50%; }

.sx { margin-top: 18px; border-bottom: 1px solid var(--line); }
.sx-g { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.sx-l { flex: none; width: 96px; padding-top: 9px; font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--tx-3); }
.sx-c { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.v-search .sx + .empty { padding-top: 56px; }

/* ── saved packs + downloaded ticks ────────────────────────────────────────── */
.btn-save[aria-pressed="true"] .sv-0, .btn-save:not([aria-pressed="true"]) .sv-1 { display: none; }
#sbSaved:empty { display: none; }
#saved { min-height: 46vh; }
.v-saved .empty { padding-top: 76px; }

.fr-ic .fr-ok { display: none; }
.fr.got .fr-ic, .fr.got:hover .fr-ic { background: rgba(75, 227, 172, .12); color: var(--mint); }
.fr.got .fr-ic .ic { display: none; }
.fr.got .fr-ic .fr-ok { display: block; width: 17px; height: 17px; stroke-width: 2.6; color: var(--mint); }
.fr.got .fr-n b { color: var(--tx-2); }
.fr.got:not(:hover):not(:focus-visible) .get { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--tx-3); }

/* ── editing guide ─────────────────────────────────────────────────────────── */
.v-guide .doc-cols { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line-2); }
@media (min-width: 861px) {
    .v-guide .doc-t td:first-child { width: 21%; }
    .v-guide .doc-t td:last-child { width: 40%; }
}
.doc-s > * + h3 { margin-top: 28px; }
.doc-s h3 { font: 700 16px/1.3 var(--display); letter-spacing: -.015em; color: var(--tx); }
.doc-s p code, .doc-s li code {
    padding: 2px 7px; border-radius: 7px; background: rgba(255, 255, 255, .08);
    font: 500 11.5px/1.5 var(--mono); color: var(--tx);
}
.doc-s li kbd { vertical-align: 1px; }
.doc-s .doc-cl { margin-top: 20px; font: 500 10.5px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--tx-3); }
.doc-s > .doc-cl + .doc-code { margin-top: 8px; }
.doc-code {
    display: flex; align-items: center; gap: 6px; max-width: 760px;
    padding: 5px 5px 5px 16px; border-radius: 16px;
    background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line-2);
}
.doc-code code {
    flex: 1; min-width: 0; padding: 8px 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none;
    font: 500 12px/1.5 var(--mono); color: var(--tx);
}
.doc-code code::-webkit-scrollbar { display: none; }
.doc-code .tbb { flex: none; width: 34px; height: 34px; }
.doc-code .tbb .ic { width: 16px; height: 16px; }

/* ── hover, only where a pointer can actually hover: a brighter edge, nothing moves ── */
@media (hover: hover) {
    .card:hover .art, .cm:hover .cm-a { box-shadow: 0 0 0 1px var(--line-3); }
    .co:hover .co-amb { opacity: .5; }
    .co:hover .co-art::after { box-shadow: inset 0 0 0 1px var(--line-2); }
    .card:hover .card-n, .cm:hover b, .co:hover .co-n { color: #fff; }
}
@media (hover: none) {
    .cm-go { opacity: .92; }
}

/* ── responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
    .chart { grid-template-rows: repeat(5, auto); }
    .dt-cols { gap: 32px; }
    .vh-home { grid-template-columns: minmax(0, 1fr); }
    .vh-home .lede { margin-top: 16px; }
    .tb-pill span { display: none; }
    .tb-pill { width: 38px; padding: 0; justify-content: center; margin-right: 4px; }
}

@media (max-width: 860px) {
    /* no frame on a phone: the page is the whole screen, in the one colour it always had */
    :root {
        --pad: 16px; --tbh: 52px; --under: var(--tbh);
        --frame: #111110; --ui: #111110; --ui-rgb: 17, 17, 16; --ui-2: #171716; --raise: #1f1f1d; --raise-2: #2a2a27;
    }
    body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }

    .frame { display: none; }
    .win, html[data-sb="off"] .win { margin: 0; min-height: 100vh; min-height: 100dvh; }
    /* the sidebar becomes a drawer: a rounded card that slides in over the page */
    .sb, html[data-sb="off"] .sb {
        inset: 8px auto 8px 8px; width: min(304px, 84vw); z-index: 50;
        border-radius: 24px; overflow: hidden;
        background: var(--panel); box-shadow: inset 0 0 0 1px var(--line);
        transform: translateX(calc(-100% - 16px));
        padding-bottom: env(safe-area-inset-bottom);
    }
    .sb-top { height: 60px; padding: 4px 12px 0 16px; }
    .sb-top .tbb { display: none; }
    .sb-brand img { width: 36px; height: 36px; }
    html.sb-open .sb { transform: none; box-shadow: inset 0 0 0 1px var(--line-2); }
    html.sb-open .scrim { opacity: 1; pointer-events: auto; z-index: 45; }
    html.sb-open { overflow: hidden; }
    .sb-i { height: 42px; padding: 0 12px; font-size: 15px; border-radius: 14px; }
    .sb-i .ic { width: 20px; height: 20px; }

    /* compact toolbar: menu, back (only once there is somewhere to go back to), brand, magnifier */
    .tb { padding: 0 8px; gap: 0; background: none; }
    .tb::before {
        content: ""; position: absolute; inset: 0; z-index: -1;
        background: rgba(var(--ui-rgb), .92);
        -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--line);
        opacity: 0; transition: opacity .2s var(--ease);
    }
    .tb.is-scrolled::before { opacity: 1; }
    .tb-act { display: none; }
    .tb > *, .tb-nav > * { transition: opacity .15s var(--ease), background .15s, color .15s; }
    #navFwd, #navBack:disabled { display: none; }
    .tbb { width: 40px; height: 40px; }
    .tbb .ic { width: 21px; height: 21px; }
    /* brand and page name share one slot and cross-fade as the page scrolls */
    .tb-id { flex: 1; min-width: 0; display: grid; align-items: center; margin-left: 4px; }
    .tb-id > * { grid-area: 1 / 1; min-width: 0; }
    .tb-brand { display: flex; justify-self: start; font-size: 16px; gap: 7px; transition: opacity .2s var(--ease); }
    .tb-brand img { width: 28px; height: 28px; }
    .tb-title { font-size: 16px; }
    .tb.is-scrolled .tb-brand { opacity: 0; pointer-events: none; }
    #srchOpen { display: grid; }

    /* the search field stays out of the way until the magnifier asks for it */
    .srch {
        position: absolute; inset: 6px 8px; z-index: 2; width: auto; height: auto;
        padding: 0 2px 0 14px; background: var(--ui-2);
        box-shadow: inset 0 0 0 1px var(--line-2);
        opacity: 0; pointer-events: none;
        transition: opacity .15s var(--ease), box-shadow .15s;
    }
    .srch:hover, .srch:focus-within { background: var(--ui-2); }
    html.srch-open .srch, html[data-route="search"] .srch { opacity: 1; pointer-events: auto; }
    html.srch-open .srch:focus-within, html[data-route="search"] .srch:focus-within { box-shadow: inset 0 0 0 1px rgba(242, 241, 234, .5); }
    html.srch-open .tb > :not(.srch), html[data-route="search"] .tb > :not(.srch) { opacity: 0; pointer-events: none; }
    .srch input { font-size: 16px; }
    .srch input::-webkit-search-cancel-button { display: none; }
    .srch kbd { display: none; }
    .srch > .ic { width: 18px; height: 18px; }
    #srchClose { display: grid; width: 36px; height: 36px; }
    #srchClose .ic { width: 17px; height: 17px; stroke-width: 2.2; }

    .v { padding-top: 2px; padding-bottom: 44px; }
    .vh { padding-top: 8px; }
    .vh h1 { font-size: 30px; }
    .lede { margin-top: 10px; font-size: 15px; }
    .vh-home { padding: 8px 0 0; }
    .vh-home h1 { font-size: clamp(34px, 10vw, 44px); }
    .vh-home .lede { display: none; }
    .eyebrow { font-size: 10px; }
    .sec-h { margin: 32px 0 12px; }
    .sec-h h2 { font-size: 20px; }

    .grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 20px 10px; }
    .art { border-radius: 12px; }
    .card-n { margin-top: 8px; font-size: 13px; }
    .card-s { font-size: 10px; }
    .shelf-r { gap: 10px; padding-top: 4px; }
    .shelf-r .card { flex-basis: 112px; }
    html[data-view="list"] .grid .lh,
    html[data-view="list"] .grid .card { grid-template-columns: 36px minmax(0, 1fr) 44px; gap: 12px; padding: 0 8px; }
    html[data-view="list"] .grid .art { width: 36px; }
    html[data-view="list"] .grid .card { height: 64px; }
    html[data-view="list"] .grid .cc-k, html[data-view="list"] .grid .cc-y,
    html[data-view="list"] .grid .cc-f, html[data-view="list"] .grid .cc-d { display: none; }
    html[data-view="list"] .grid .cc-q { text-align: right; }

    .bar { margin: 14px 0 16px; }
    .seg-tx { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
    .seg-tx::-webkit-scrollbar { display: none; }
    .seg > * { height: 32px; font-size: 13.5px; }
    .pop select { height: 38px; }
    .bar-note { display: none; }

    .chart { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0 -6px; }
    .ch { grid-template-columns: 34px 42px minmax(0, 1fr) auto; gap: 12px; padding: 8px 8px 8px 2px; }
    .ch-r { font-size: 22px; }
    .gt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .gt { min-height: 78px; padding: 14px 15px; border-radius: 18px; }
    .gt b { font-size: 16px; }
    .ex-grid, .about-grid, .dt-cols { grid-template-columns: minmax(0, 1fr); }
    .ex-grid { gap: 10px; }
    .ex, .panel { padding: 20px; border-radius: 20px; }
    .dt-cols { gap: 0; }

    .dt-bd { height: 400px; }
    .dt-head { flex-direction: column; align-items: center; gap: 18px; padding-top: 62px; text-align: center; }
    .dt-poster { width: 150px; }
    .dt-poster .art { border-radius: 18px; }
    .crumbs, .dt-acts { justify-content: center; }
    .crumbs { margin-bottom: 10px; }
    .dt-meta h1 { font-size: clamp(30px, 8.6vw, 38px); }
    .dt-tag { margin-inline: auto; font-size: 15px; }
    .dt-acts { margin-top: 18px; gap: 8px; }
    .dt-acts .btn { flex: 1; max-width: 230px; height: 48px; font-size: 15.5px; }
    .dt-acts .btn-ico { flex: none; width: 48px; padding: 0; }
    .dt-acts .btn-ico span { display: none; }
    .dt-acts .btn-ico .ic { width: 20px; height: 20px; }
    .strip, .v-detail > .strip, .v-x > .strip { max-width: none; margin: 24px calc(-1 * var(--pad)) 0; padding: 0 var(--pad); gap: 8px; scroll-snap-type: x proximity; scroll-padding-inline: var(--pad); }
    .strip > div { flex-basis: 112px; padding: 12px 14px; border-radius: 16px; scroll-snap-align: start; }
    .strip dd { font-size: 20px; }

    .files-t { flex-wrap: wrap; width: 100%; }
    .field-sm { flex: 1; width: auto; min-width: 150px; height: 38px; }
    .field-sm input { font-size: 16px; }
    .ft { border-radius: 20px; }
    .ft-h { display: none; }
    .fr { grid-template-columns: 36px auto minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 4px 10px; min-height: 60px; padding: 10px 12px 10px 10px; }
    .fr:first-of-type { border-top: 0; }
    .fr-ic { grid-row: 1 / 3; margin-right: 2px; }
    .fr-n { display: contents; }
    .fr-n b { grid-column: 2 / 4; grid-row: 1; align-self: end; font-size: 14.5px; }
    .fr-n i { grid-column: 3; grid-row: 2; align-self: center; margin: 0 0 0 -2px; font-size: 11.5px; }
    .fr-n i::before { content: "\b7\a0"; opacity: .7; }
    .fr-q { grid-column: 2; grid-row: 2; align-self: center; }
    .fr-n b:only-child { grid-row: 1; }
    .fr-e { display: none; }
    .fr .get { grid-column: 4; grid-row: 1 / 3; height: 32px; }

    .cast-r { gap: 10px; }
    .cm { flex-basis: 106px; }
    .cm-a { border-radius: 16px; }

    .doc-bar { margin-top: 18px; padding-bottom: 14px; }
    .doc-cols { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 16px; }
    .doc-toc { position: static; max-height: none; }
    .doc-s { padding: 24px 0; }
    .doc-s h2 { font-size: 19px; }
    .doc-s p, .doc-l li { font-size: 15px; }
    .doc-t thead { display: none; }
    .doc-t, .doc-t tbody, .doc-t tr, .doc-t td { display: block; }
    .doc-t tr { padding: 13px 16px; border-top: 1px solid var(--line); }
    .doc-t tr:first-child { border-top: 0; }
    .doc-t td, .doc-t td:first-child, .doc-t td:last-child { width: auto; padding: 0; border: 0; }
    .doc-t td:first-child { font-size: 14.5px; }
    .doc-t td + td { margin-top: 8px; }
    .doc-t td + td::before { content: attr(data-l); display: block; margin-bottom: 3px; font: 500 9.5px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--tx-3); }
    .doc-contact-a { width: 100%; }
    .doc-contact-a .btn, .panel-a .btn { flex: 1 1 150px; height: 44px; font-size: 14.5px; }
    .sb-legal { padding-top: 8px; }
    .sb-legal a { padding: 7px 9px; font-size: 13px; }

    .rws, .rws-w { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .rw { min-height: 62px; }
    .duo { grid-template-columns: minmax(0, 1fr); }
    .co-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 10px; margin-top: 20px; }
    .co-art { border-radius: 18px; }
    .co-p .art { border-radius: 6px; }
    .shelf-r .co { flex-basis: 172px; }
    .co-n { font-size: 15px; }
    .xbd { height: 400px; }
    .xbd img { filter: blur(40px) saturate(1.25); }
    .xh { gap: 16px; }
    .xh-a .art { width: 74px; border-radius: 12px; }
    .av-xl { width: 74px; height: 74px; font-size: 25px; }
    .av-sq.av-xl { border-radius: 18px; }
    .v-x > .strip { margin-top: 20px; }
    .v-x .crumbs { justify-content: flex-start; }
    .cp-go { font-size: 0; gap: 0; }
    .cp-go .ic { width: 15px; height: 15px; color: var(--tx-3); }
    .sec-h-t .field-sm { flex: 1 1 100%; }
    .az { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--pad)); padding: 8px var(--pad); }
    .az::-webkit-scrollbar { display: none; }
    .az a { flex: none; min-width: 36px; height: 36px; font-size: 13px; }
    .az-l { columns: 2; column-gap: 8px; margin-inline: -8px; }
    .az-l a { padding: 10px 8px; }
    .lb-h, .lb-r { grid-template-columns: 24px 40px minmax(0, 1fr) 46px 46px; gap: 10px; padding: 0 8px; }
    .lb-u, .lb-b, .lb-h .lb-b { display: none; }
    .sx-g { flex-direction: column; gap: 8px; }
    .sx-l { width: auto; padding-top: 0; }

    .foot { padding: 26px 0 20px; }
    .foot .ft-top { padding-bottom: 20px; }
    .foot .ft-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ft-cols a { padding: 7px 0; font-size: 14px; }

    .v-guide .doc-cols { margin-top: 18px; padding-top: 18px; }
    .doc-code { padding-left: 14px; }
    .doc-code .tbb { width: 38px; height: 38px; }
    #saved { min-height: 40vh; }
    .v-saved .empty { padding-top: 56px; }
    .empty { padding: 64px 12px 56px; }

    .hud { bottom: calc(84px + env(safe-area-inset-bottom)); }

    /* bottom dock */
    .tabbar {
        position: fixed; left: 10px; right: 10px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 30;
        display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px;
        padding: 5px; border-radius: 26px;
        background: rgba(22, 22, 21, .9);
        -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
        box-shadow: inset 0 0 0 1px var(--line-2);
    }
    .tabbar a {
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
        height: 48px; border-radius: 21px;
        color: var(--tx-3); font-size: 10px; font-weight: 600; letter-spacing: .01em;
        transition: color .15s, background .15s;
    }
    .tabbar .ic { width: 22px; height: 22px; }
    .tabbar a[aria-current] { color: var(--tx); background: rgba(255, 255, 255, .08); }

    /* "On this page" becomes one swipeable line of numbered pills */
    .doc-toc { padding: 0; margin: 0 calc(-1 * var(--pad)); }
    .doc-toc h2 { display: none; }
    .doc-toc ol { display: flex; gap: 6px; overflow-x: auto; padding: 2px var(--pad); scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: var(--pad); }
    .doc-toc ol::-webkit-scrollbar { display: none; }
    .doc-toc li { flex: none; scroll-snap-align: start; }
    .doc-toc a { align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 8px; border-radius: 999px; white-space: nowrap; font-size: 13px; line-height: 1; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); }
    .doc-toc a span { display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--tx-2); font-size: 10px; line-height: 1; }
    .doc-toc a:active { background: rgba(255, 255, 255, .09); }

    /* long chip clouds fold into two swipeable rows */
    .chips-w:has(> :nth-child(9)) {
        display: grid; grid-template-rows: repeat(2, auto); grid-auto-flow: column; grid-auto-columns: max-content; gap: 8px;
        overflow-x: auto; margin: 0 calc(-1 * var(--pad)); padding: 2px var(--pad); scrollbar-width: none;
        scroll-snap-type: x proximity; scroll-padding-inline: var(--pad);
    }
    .chips-w:has(> :nth-child(9))::-webkit-scrollbar { display: none; }
    .chips-w:has(> :nth-child(9)) > .chip { justify-content: space-between; scroll-snap-align: start; }

    /* file variant labels read as words, and may take a second line */
    .fr-n i { font: 400 12.5px/1.3 var(--font); letter-spacing: 0; white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
    .fr-n i { padding-left: 11px; text-indent: -11px; }
    .fr-n i::before { display: inline-block; width: 11px; text-indent: 0; opacity: .6; }
}

@media (max-width: 380px) {
    .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 8px; }
    .dt-acts .btn i { display: none; }
    .tb-brand span { font-size: 15px; }
}

/* sidebar list fades at its top and bottom edge instead of being cut by them */
.sb-nav {
    padding-bottom: 30px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12px, #000 calc(100% - 30px), transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 12px, #000 calc(100% - 30px), transparent 100%);
}
.sb-foot { border-top-color: transparent; box-shadow: 0 -1px 0 var(--line); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
