/* =================================================================================
// FILE: static/style.css
// LOCATION: /volume2/Volume 2/web/plex-community-app/static/style.css
// DESCRIPTION: Global Stylesheet and Tailwind Injector
// UPDATED: May 17, 2026 @ 11:35 AM MDT
// CHANGES: 
//   - OPACITY BOOST: Increased maximum visibility from 0.5 to 0.75 across both 
//     bubbly float directions to satisfy design requirements.
// ================================================================================= */

@tailwind base;
@tailwind components;
@tailwind utilities;

/* ============================================================================================
   THE APP'S OWN TYPEFACES — SELF-HOSTED, SAME-ORIGIN.   desktop-containment, 2026-08-08
   ============================================================================================

   Josh, 2026-08-07:
     "theres a ton of stuff thats not being contained to the mobile layout including the splash
      screen ... WHICH SOMETIMES STARTS AS A DIFFERNT FONT TOO ... dont know what thats about"

   WHAT IT WAS. templates/index.html fetched Outfit + Poppins + Silkscreen from
   fonts.googleapis.com with 'display=swap'. That is a TWO-HOP third-party dependency sitting on
   the boot path: the CSS comes from googleapis, and only once it has been fetched and parsed does
   the browser learn the woff2 URLs on gstatic. 'swap' then means, by definition — paint in the
   fallback NOW, change the typeface when the real face arrives. The flash was never a bug in that
   strategy. It WAS that strategy. Josh's "sometimes" is simply cache state.

   MEASURED, not assumed (WebKit — the engine the wrapped app runs — against staging, 2026-08-08,
   _handoff/bblink/dc-font.mjs). At first paint all three faces measured IDENTICAL to the plain
   system fallback, i.e. none of the app's own typography existed yet. They landed at t=138ms and
   the text changed width on screen:

       Silkscreen    570.8px -> 798.4px    (+39.9%)   <- the splash's status line
       Poppins 800   570.8px -> 652.0px    (+14.2%)   <- the PARALEX wordmark
       Outfit        557.3px -> 558.8px    ( +0.3%)   <- body copy; imperceptible

   AND THAT IS WHY IT IS THE SPLASH HE NOTICED. Silkscreen is used in exactly ONE place in the
   entire app (SplashScreen.jsx) and Poppins 800 draws the wordmark right beside it — so the very
   first thing the app paints is built from the two faces that swing hardest. Everything else in
   the app is Outfit, which moves 0.3% and is invisible.

   WHY SELF-HOSTING IS THE FIX AND NOT A PREFERENCE. Same origin means no DNS + TLS handshake to
   two further hosts before a single glyph can even be requested, and the <link rel=preload> in the
   templates is issued by the PARSER instead of after a stylesheet round-trip. The largest of these
   files is 32 KB against a React bundle that must download, parse and execute before
   <SplashScreen> exists at all — so the font cannot lose that race. It is the same argument that
   already removed the Tailwind Play CDN as a boot tax, and the same one the store-wrap rule makes:
   a splash screen whose typography depends on reaching Google is not offline-safe, and "it works
   in a browser tab" is not the bar we ship to.

   WHY NOT 'font-display: optional'. It is the tempting one-word fix and it is REJECTED ON PURPOSE.
   'optional' gives the face ~100ms and then, if it has not arrived, keeps the FALLBACK for the
   rest of the page's life. That removes the snap by making the wrong font PERMANENT for that load.
   Josh's words are "sometimes starts as a different font" — 'optional' would freeze exactly the
   thing he is complaining about instead of fixing it. 'swap' + preload + a metric-matched fallback
   removes the CAUSE.

   LICENCE — not optional, and checked rather than assumed. All three families are SIL Open Font
   License 1.1, which grants the right to "use, study, copy, merge, EMBED, modify, redistribute".
   Verified 2026-08-08 against google/fonts METADATA.pb (license: OFL) and each family's OFL.txt
   grant clause. The OFL's one real obligation is that the licence travels with the files, so
   static/webfonts/ carries OFL.txt beside them. Do not delete it.

   ⚠ THESE FILES ARE SERVED 'immutable' FOR A YEAR by the /static/webfonts/ route in app.py. That is
   safe ONLY because a font file here is version-pinned content (Outfit v15's latin subset, etc.)
   that is never edited in place. IF YOU EVER CHANGE A TYPEFACE, ADD A NEW FILENAME — do not
   overwrite these bytes, or every device that has already cached them keeps the old face for a
   year with no way to bust it.
   ============================================================================================ */

/* Outfit is a VARIABLE font: ONE file covers the whole 100..900 axis. Confirmed by measurement,
   not by reading Google's CSS — the same URL rendered 479.6 / 481.6 / 497.3 / 512.9 px at weights
   400 / 500 / 700 / 900. Declaring it once with a weight RANGE is therefore correct and is why
   there are two Outfit files here rather than six. */
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/static/webfonts/outfit-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/static/webfonts/outfit-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Poppins is only ever used at 800 (.plex-font-title and the SVG wordmark), so only 800 is
   vendored. Google's devanagari subset is deliberately NOT vendored: Poppins is a wordmark/heading
   face here, body copy is Outfit, and no surface in this app renders devanagari in a heading. */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('/static/webfonts/poppins800-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('/static/webfonts/poppins800-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Poppins 700 — ONE use: the new content post's "N EPISODES" count line (Josh's final pick 2026-10-15,
   countFont "poppins" = Poppins BOLD, which he chose in the sampler against Google's 700 face). Latin only: the
   line is digits + "EPISODES". Without it a 700 request would render the 800 face. OFL like the rest. */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/static/webfonts/poppins700-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Silkscreen';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/static/webfonts/silkscreen-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Silkscreen';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/static/webfonts/silkscreen-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── THE METRIC-MATCHED FALLBACK — belt and braces for the ONE face that swings hard ──────────
   Preloading a same-origin 8 KB file should mean Silkscreen is always there before React has even
   mounted. "Should" is not "does", so this is the seatbelt: if a gap ever opens, the text is drawn
   in a MONOSPACE face at the SAME ADVANCE WIDTH instead of a proportional one at 71% of it.

   Two independent improvements, and they are worth separating:
     1. THE FAMILY. Silkscreen is a fixed-width pixel face. Falling back to the browser's default
        proportional font is the single most visible glyph change in the app, which is why this is
        the line Josh saw change. Monospace is close enough in character that you would not call it
        "a different font".
     2. THE WIDTH. size-adjust keeps the centred status line from shifting sideways if a swap ever
        does happen. It is measured — and the FIRST number I measured was WRONG in a way worth
        leaving on the record.

        I derived 119.8% from a mixed-case sample string at 32px. This element renders SIXTEEN
        UPPERCASE CHARACTERS at 7px. Silkscreen is not uniformly proportioned against Courier New,
        so the ratio is SAMPLE-DEPENDENT: the same two faces give 119.8% on that sample and 111.9%
        on the text this element actually draws. 119.8% overshot the real face by ~7% — it was
        still better than no adjustment at all (which is ~10.7% short), but it was wrong in the
        opposite direction, and I only found that by measuring the rendered element instead of
        re-reading my own arithmetic.

        Measured on the real string, at the real casing, with the face verified loaded:
            Silkscreen 75.25px · monospace 67.22px  ->  111.9%   (lands within 0.1%)

        ⚠️ AND THE MEASUREMENT TRAP UNDERNEATH IT: the run before this one reported Silkscreen,
        monospace and sans-serif all within 1% of each other, which "proved" the adjustment was
        harmful. They were within 1% because ALL THREE were rendering in the same fallback — the
        face had never been fetched, since nothing on that page uses it and unicode-range faces
        load lazily. `document.fonts.ready` does NOT wait for a face nobody has asked for. Force it
        with `document.fonts.load()` and assert `document.fonts.check()` before believing any width.

   The src is pinned to NAMED local faces rather than the generic 'monospace' keyword, because
   size-adjust is only meaningful against a known set of metrics — a generic resolves differently
   per platform and the adjustment would be wrong everywhere but here. Courier New covers
   Windows/macOS/iOS, Menlo macOS/iOS, Roboto Mono Android, DejaVu Sans Mono Linux. On an engine
   too old for size-adjust the descriptor is simply ignored and you still get the monospace family,
   which is the larger half of the win. */
@font-face {
    font-family: 'Silkscreen Fallback';
    font-style: normal;
    font-weight: 400;
    src: local('Courier New'), local('CourierNewPSMT'), local('Menlo'), local('Roboto Mono'), local('DejaVu Sans Mono');
    size-adjust: 111.9%;
}

/* The 'Terminator Real NFI' @font-face that used to sit here has been REMOVED. It declared
   src: url('/static/Fonts/terminator-real-nfi.ttf') — and static/Fonts/ DOES NOT EXIST; there is
   no .ttf anywhere in the repository. It was also declared in templates/login.html and
   templates/signup.html, and NOTHING in the entire app ever set font-family to it. Three copies of
   a declaration for a missing file that no rule could ever trigger: Gemini-era debt, now gone.
   tests/test_app_font_delivery.js asserts that every local @font-face src resolves to a file that
   really exists on disk, so this cannot come back silently. */


/* --- GLOBAL FONT OVERRIDE --- */
/* Belt-and-suspenders: Tailwind's preflight sets font-family on html via its
   fontFamily.sans theme value (updated in tailwind.config.js), but we also
   set it here so the cascade is unambiguous for every rendering path. */
html {
    font-family: 'Outfit', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    /* Do NOT set a px font-size on <html>. Tailwind's entire sizing scale (text,
       spacing, widths, modal dimensions) is rem-based and resolves against this
       root size; pinning it to 18px scaled the whole UI up ~12.5% and made every
       popup huge. Leave it at the browser default (16px) so rem math stays correct.
       To enlarge body copy, do it on `body` or with utility classes, not here. */
    font-weight: 400;
}

/* Inputs and textareas don't inherit font-family from body by default in
   browsers that haven't applied a full CSS reset — force it here. */
input, textarea, select, button {
    font-family: inherit;
}

/* --- GLOBAL APP LOCK --- */
html {
    height: 100%;
    width: 100%;
    overflow: hidden;
    position: fixed;
    background-color: #000000;
    overscroll-behavior-y: none; /* Prevents root rubber-banding */
    overscroll-behavior-x: none; /* CRITICAL: Kills swipe-to-back/forward and horizontal drift */
}

body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: fixed;
    background-color: #18181b;
    color: #ffffff;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.01em;
    -webkit-overflow-scrolling: touch;
    touch-action: none; /* Disables browser handling of gestures at root */
    display: flex;
    justify-content: center;
    align-items: center;
}

#root {
    width: 100vw;
    height: 100vh;
    max-width: 420px;
    background-color: #18181b;
    overflow: hidden; /* Ensures the app container never scrolls itself */
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* On actual phone screens, always fill edge-to-edge — no 420px cap */
@media (max-width: 480px) {
    #root {
        max-width: 100vw;
        width: 100vw;
    }
}

/* 📺 THE TV IS NEVER THE PHONE COLUMN (Josh 12-02 #582n + 12-04 #750n: "It always shows the portrait mode of the dark gray background
   when nothing is showing or something is still loading" / "even when the sampler is loading, it still does it"). The 420px cap above +
   its zinc-900 fill + side shadow is the phone column; everything drawn INSIDE #root before TvApp's `fixed inset-0` mounts (the boot wait,
   the TvApp chunk's Suspense fallback) showed as that grey box centred on the 1920 TV. The rule lives HERE, in style.css, because every TV
   document loads this file: templates/index.html (ss-tvapp = the TV shell UA, ss-tvpage = /tv in any browser, both set pre-paint in <head>)
   AND the TV sampler's app.html (tests/tv_rig/publish_sampler.js: <html class="... ss-tvapp ss-tv">), which never had index.html's inline
   copy of this rule - why #582n held on the TV but not in the sampler. :root.x beats html.dk #root (website shell) on specificity.
   Guard: tests/test_tv_full_bleed_root.js */
:root.ss-tvapp #root, :root.ss-tvpage #root, :root.ss-tv #root { width: 100vw; max-width: none; box-shadow: none; background-color: #09090b; }
:root.ss-tvapp body, :root.ss-tvpage body, :root.ss-tv body { background-color: #09090b; }

/* --- SCROLL CONTAINER UTILITIES --- */
/* Apply this to any scrollable area to strict-lock horizontal movement */
.vertical-scroll-only {
    overflow-y: auto;
    overflow-x: hidden; /* Clips content that is too wide */
    overscroll-behavior-x: none; /* Prevents horizontal rubber banding */
    touch-action: pan-y; /* Tells browser: "Only handle vertical swipes here" */
    -webkit-overflow-scrolling: touch;
}

/* Keep .portal-layout, .no-select, .plex-font-title, etc. */
.portal-layout {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

body.no-select, .no-select {
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* --- GLOBAL: never let a long-press save/copy or drag any image --- */
/* iOS Safari shows a "Save Image / Copy" callout on long-press; this kills it
   app-wide. pointer-events is left untouched so images still respond to taps. */
img {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.plex-font-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
}

/* ── RAIL-STYLE TITLES — THE ONE DEFINITION (Josh 2026-11-25, rules #175 / #184 / #193) ─────────────
   "I want them to be the same size through the entire app. The sub menu ones should all be the same size as well."
   Sent from the r2 sampler: page28, section18. TWO tiers app-wide, nothing in between:
     .ttl-page = every PAGE title            30 px at 430  (r3 Send #271 "page30"; r2 was 28)
     .ttl-sec  = every SECTION / sub-menu    22 px at 430  (r3 Send #271 "section22"; r2 was 18)
   Style = the TV rail-row title (static/tv/tvUi.jsx TvRail + TvApp.jsx rail-title block): Outfit 700, -0.025em,
   white, Title Case (text is written in Title Case - no uppercase transform), the TV rail shadow, no Bifrost dot.
   Sizes scale the house way: n x clamp(360px, 100vw, 440px) / 430 (NewAdditionsCard.jsx sz()).
   A title never sets its own size, font, case or colour - tests/test_rail_titles_census.js fails it if it does.
   Exempt: the Event page's fit-to-width title, a member's earned cosmetic name font, content names (a movie,
   a person), modals / wizards / pop-ups other than the media pop-up's panels. */
.ttl-page, .ttl-sec {
    font-family: 'Outfit', ui-sans-serif, system-ui, sans-serif;
    font-weight: 700;
    font-style: normal;
    letter-spacing: -0.025em;
    text-transform: none;
    line-height: 1.15;
    color: #fff;
    -webkit-text-fill-color: currentColor;
    background: none;
    text-shadow: 0 1px 3px rgba(0,0,0,.75), 0 2px 12px rgba(0,0,0,.45);
}
.ttl-page { --ttl-page-fs: clamp(25.1px, 6.977vw, 30.7px); font-size: var(--ttl-page-fs); }   /* 30 at 430 (Josh r3 Send #271; was 28) */
.ttl-sec  { font-size: clamp(18.4px, 5.116vw, 22.5px); }   /* 22 at 430 (Josh r3 Send #271; was 18) */

.text-xxs { font-size: 0.65rem; line-height: 0.85rem; }
.text-xxxs { font-size: 0.55rem; line-height: 0.75rem; }

.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

.request-banner {
    position: absolute;
    top: 12px;
    left: -34px;
    transform: rotate(-45deg);
    width: 120px;
    text-align: center;
    color: white;
    font-weight: bold;
    font-size: 0.75rem;
    padding: 2px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    z-index: 10;
}
.request-banner.open { background-color: rgba(239, 68, 68, 0.7); }
.request-banner.filled { background-color: rgba(34, 197, 94, 0.7); }
.request-banner.caught { background-color: rgba(13, 148, 136, 0.82); font-size: 0.6rem; letter-spacing: 0; width: 150px; left: -46px; top: 16px; white-space: nowrap; }

.comment-mentions { width: 100%; }
.comment-mentions__control { width: 100%; }
.comment-mentions__input {
    width: 100%;
    background-color: transparent;
    font-size: 0.875rem;
    outline: none;
}
.comment-mentions__suggestions__list {
    background-color: #27272a;
    border: 1px solid #3f3f46;
    border-radius: 6px;
    font-size: 0.875rem;
    max-height: 200px;
    overflow-y: auto;
}
.comment-mentions__suggestions__item { padding: 8px 12px; }
.comment-mentions__suggestions__item--focused { background-color: #3f3f46; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px) scale(0.98); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
@keyframes jiggle { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
.jiggle { animation: jiggle 0.2s ease-in-out infinite; transform-origin: center 60%; }
.wizard-backdrop { animation: fadeIn 0.3s ease-out forwards; }
.wizard-content { animation: slideUp 0.3s ease-out forwards; }

.check-dot {
    width: 1rem;
    height: 1rem;
    border-radius: 9999px;
    border: 2px solid #a1a1aa;
    transition: all 0.2s;
    flex-shrink: 0;
}
.check-dot.checked { background-color: #f59e0b; border-color: #f59e0b; }
.plex-gradient { background-image: linear-gradient(180deg, #2e2615 0%, #18181b 40%); }
/* 🧠 Trivia "I'm ready": one-time green swarm pulse off the avatar + 👍 badge pop-in */
@keyframes trivia-ready-pulse {
    from { box-shadow: 0 0 0 0 rgba(61, 220, 87, 0.75); }
    to   { box-shadow: 0 0 0 22px rgba(61, 220, 87, 0); }
}
/* the pop must carry the pill's own translateX(-50%) — a bare scale() keyframe
   OVERRIDES the class transform mid-animation, so the pill rendered off-center
   (next to the score) then snapped left when the animation released */
@keyframes trivia-ready-pop {
    from { transform: translateX(-50%) scale(0); }
    to   { transform: translateX(-50%) scale(1); }
}
/* the trivia corner READY! (top-right, no centring transform) */
@keyframes trivia-ready-pop-r {
    from { transform: scale(0); }
    to   { transform: scale(1); }
}
.unread-story-ring { padding: 2px; background: linear-gradient(45deg, #facc15, #a16207); }
.read-story-ring { padding: 2px; background: linear-gradient(45deg, #71717a, #3f3f46); }

/* (the Spotify note keyframes that lived here are gone: the notes are drawn by static/components/spotifyNotes.js since 2026-09-25) */

/* --- DONATE HEART: Animated bifrost glow on the stream header donate button --- */
/* 🔋 PERF 2026-10-13 (Lane 4): the glow never changes — only the hue turns. The old keyframes animated the
   WHOLE chain `drop-shadow drop-shadow hue-rotate`, and Core Animation cannot animate a drop-shadow filter,
   so on an iPhone WebKit ran this in software: a main-thread restyle + repaint of the heart, every frame, for
   as long as the Stream was open. Now the glow is a still filter on the heart and only `hue-rotate` (which CA
   animates natively) turns, on the wrapper App.jsx puts around it. Same picture: filters apply in order, and
   hue-rotate on the wrapper rotates exactly what the old chain's last step rotated — the heart AND its glow. */
@keyframes heartBifrost {
    from { filter: hue-rotate(0deg); }
    to   { filter: hue-rotate(360deg); }
}
.donate-heart-svg {
    filter: drop-shadow(0 0 3px rgba(200,150,255,0.9)) drop-shadow(0 0 7px rgba(200,150,255,0.4));
}
.donate-heart-hue {
    display: block;   /* a block, not inline-block: the heart keeps the exact line box (and pixel row) it had */
    animation: heartBifrost 10s linear infinite;
}

/* --- BIFROST GLASS: Animated iridescent rainbow border for post cards --- */
@property --iri-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* ═══ THE BIFROST TOKENS (2026-10-14, Josh: "we would just change the bounding color on all the boxes that already
   have the bifrost … a Tron theme … a Halloween orange and red theme"). EVERY strictly-Bifrost colour in the app reads
   one of these — rims, buttons, rings, glows, the Quick Draw canvas (static/bifrostTheme.js reads the SAME tokens via
   getComputedStyle). A theme is ONE block: `html[data-bif-theme="tron"] { --bif-1: …; … }`. Art washes and the
   art-derived ring on auto-post / check-in cards never read these (they are not the Bifrost).
   Each token is an `r, g, b` triplet so every surface keeps its own alpha: `rgba(var(--bif-1), .55)`.
   tests/test_bifrost_tokens_census.py fails a hard-coded Bifrost stop anywhere outside this block / bifrostTheme.js.
   Plain (unregistered, inheriting) custom properties: nothing animates them, so they add no per-frame work — the
   only thing that turns is still the one registered --iri-angle above. */
:root {
    /* the house ramp, in conic order */
    --bif-1: 200, 150, 255;  /* lilac  */
    --bif-2: 120, 180, 255;  /* blue   */
    --bif-3: 100, 230, 220;  /* teal   */
    --bif-4: 180, 255, 180;  /* mint   */
    --bif-5: 255, 240, 130;  /* butter */
    --bif-6: 255, 180, 100;  /* apricot*/
    --bif-7: 255, 150, 200;  /* pink   */
    /* the halo pair the rims glow with */
    --bif-halo-1: 160, 110, 255;
    --bif-halo-2: 100, 160, 255;
    /* .bifrost-btn's blue-dominant ramp (its on-ramp stops use --bif-1/3/7) */
    --bif-btn-1: 80, 160, 255;
    --bif-btn-2: 100, 200, 255;
    --bif-btn-3: 120, 190, 255;
    --bif-btn-4: 160, 140, 255;
    --bif-btn-5: 255, 220, 110;
    --bif-btn-6: 255, 170, 80;
    --bif-btn-7: 120, 170, 255;
    /* the bifrost-ink typing stroke */
    --bif-ink-1: 168, 85, 247;
    --bif-ink-2: 56, 189, 248;
    --bif-ink-3: 45, 212, 191;
    --bif-ink-4: 163, 230, 53;
    --bif-ink-5: 244, 114, 182;
    /* the muted, still Bifrost the soap glyphs wear */
    --bif-mute-1: 190, 162, 220;
    --bif-mute-2: 143, 176, 217;
    --bif-mute-3: 140, 212, 206;
    --bif-mute-4: 200, 241, 200;
    --bif-mute-5: 245, 236, 176;
    --bif-mute-6: 227, 186, 142;
    --bif-mute-7: 224, 167, 194;
}

/* PERF (2026-08-01): the rim was the single biggest cost in the whole app — an idle chat screen
   ran at 11.9 fps and repainted a full-screen conic-gradient 60x/second, forever, with nothing
   happening. A registered @property angle interpolates every frame, so every frame is a fresh
   full-screen RASTER (not layout, not script — measured: 0.000 layouts/frame, ~0.014ms script).
   A chat screen carries SEVEN live rims: the open sheet plus the conversation list behind it,
   which stays mounted and keeps repainting rainbows nobody can see.

   A keyframe-level animation-timing-function overrides the animation's easing for that segment,
   so redefining THIS ONE BLOCK reaches all 15 iri-spin call sites at once — every
   `animation: iri-spin 10s linear infinite` in the app stays exactly as written.

   Measured: 28.4 fps -> 147.6 fps (5.2x). Zero DOM change, zero extra composited layers, zero
   extra layer memory. The obvious alternative (rotate a static conic via transform) measured
   SLOWER at 111.2 fps and cost a 5-20 MB composited layer.

   Trade-off: the hue advances in 60 discrete steps per 10s turn (a 6deg nudge every 167ms on a
   1.5px rim) instead of continuously. If it is ever visible, steps(120) keeps most of the win.
   DO NOT remove the steps() without re-measuring — see _handoff/chat-fx-performance.md. */
/* 2026-09-25: 60 → 30 steps. Josh, having watched both side by side on the rim-options page: "30 steps
   looks good if it's truly gonna make everything run much better and save battery". Every Bifrost rim
   repaints half as often (a 12deg nudge three times a second). His phone's main thread showed no cost
   either way; the saving is GPU raster and battery, and it matters most on older phones. */
@keyframes iri-spin {
    from { --iri-angle: 0deg; animation-timing-function: steps(30); }
    to   { --iri-angle: 360deg; }
}

/* PERF (2026-09-24): MOTION NOBODY CAN SEE IS PAUSED. static/components/ambientMotion.js watches
   every element running an infinite CSS animation and sets this attribute while it is well off
   screen; it seeks each animation back to its exact phase when the attribute comes off, so a rim
   returns at the angle it would have had. `!important` is what beats an inline `animation:`
   shorthand (Shared.jsx paletteRingStyle, TriviaGame, BirthdayCard). Measured: an idle profile
   page 954 -> 697 ms/s of main thread at 4x CPU in Chrome. Nothing visible changes. */
[data-ambient-off], [data-ambient-off]::before, [data-ambient-off]::after {
    animation-play-state: paused !important;
}
/* PERF (2026-10-26, Phase 1b): a chat's looping animations hold still while its list scrolls (ambientMotion.js
   createScrollHold) and carry on from the same spot ~160 ms after the last scroll. Same switch as above. */
[data-ambient-held], [data-ambient-held]::before, [data-ambient-held]::after {
    animation-play-state: paused !important;
}

.post-bifrost-wrap {
    animation: iri-spin 10s linear infinite;
    background: conic-gradient(
        from var(--iri-angle),
        rgba(var(--bif-1), 0.55),
        rgba(var(--bif-2), 0.50),
        rgba(var(--bif-3), 0.45),
        rgba(var(--bif-4), 0.40),
        rgba(var(--bif-5), 0.45),
        rgba(var(--bif-6), 0.50),
        rgba(var(--bif-7), 0.55),
        rgba(var(--bif-1), 0.55)
    );
    border-radius: 16px;
    padding: 1.5px;
    /* Soft colored halo bleeds outward so the border radiates rather than cuts hard */
    box-shadow:
        0 0 18px rgba(var(--bif-halo-1), 0.18),
        0 0 40px rgba(var(--bif-halo-2), 0.10),
        0 6px 36px rgba(0,0,0,0.82);
}

.post-bifrost-inner {
    isolation: isolate;
    background: rgba(10, 10, 14, 0.88);
    border-radius: 14.5px;
    box-shadow:
        inset 0 2px 0 rgba(255,255,255,0.09),
        inset 0 -1.5px 0 rgba(0,0,0,0.40),
        inset 1.5px 0 0 rgba(255,255,255,0.05),
        inset -1px 0 0 rgba(0,0,0,0.15);
}

/* Trivia promo card: the live bifrost frame that spins on top of the one baked into
   the promo PNG. Same 10s clock as every other bifrost surface, so the whole feed
   turns together. The palette is the SATURATED one from the rendered card (promo.html
   #head) rather than .post-bifrost-wrap's softer alphas — a translucent ring laid over
   an opaque printed one just reads as a colour mismatch. The +210deg keeps the baked
   card's starting orientation, so the swap from printed to live is seamless on load. */
.trivia-promo-ring {
    animation: iri-spin 10s linear infinite;
    background: conic-gradient(
        from calc(var(--iri-angle) + 210deg),
        rgba(var(--bif-1), 0.95),
        rgba(var(--bif-2), 0.92),
        rgba(var(--bif-3), 0.90),
        rgba(var(--bif-4), 0.88),
        rgba(var(--bif-5), 0.90),
        rgba(var(--bif-6), 0.92),
        rgba(var(--bif-7), 0.95),
        rgba(var(--bif-1), 0.95)
    );
}

/* Reduced motion: drop the overlay entirely rather than freezing it — the PNG
   underneath already carries a finished static frame, so the card loses nothing. */
@media (prefers-reduced-motion: reduce) {
    .trivia-promo-ring { display: none; }
}

/* Full rainbow button background — blue-dominant, warm colors compressed */
.bifrost-btn {
    animation: iri-spin 10s linear infinite;
    background: conic-gradient(
        from var(--iri-angle),
        rgba(var(--bif-btn-1), 0.48)   0%,
        rgba(var(--bif-btn-2), 0.46)  15%,
        rgba(var(--bif-3), 0.45)  30%,
        rgba(var(--bif-btn-3), 0.46)  45%,
        rgba(var(--bif-btn-4), 0.45)  58%,
        rgba(var(--bif-1), 0.44)  68%,
        rgba(var(--bif-7), 0.40)  76%,
        rgba(var(--bif-btn-5), 0.38)  83%,
        rgba(var(--bif-btn-6), 0.38)  88%,
        rgba(var(--bif-btn-7), 0.46)  94%,
        rgba(var(--bif-btn-1), 0.48) 100%
    );
}

/* Animated rainbow gradient text — matches the bifrost border palette */
.bifrost-text {
    animation: iri-spin 10s linear infinite;
    background: conic-gradient(
        from var(--iri-angle),
        rgb(var(--bif-1)),
        rgb(var(--bif-2)),
        rgb(var(--bif-3)),
        rgb(var(--bif-4)),
        rgb(var(--bif-5)),
        rgb(var(--bif-6)),
        rgb(var(--bif-7)),
        rgb(var(--bif-1))
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter:
        drop-shadow(0 0 6px rgba(var(--bif-1), 0.9))
        drop-shadow(0 0 14px rgba(var(--bif-2), 0.7));
}

/* ═══ THE ACTION STRIP — sample G "Outlined" (Josh, 2026-09-16: "I like Outline.") ═══════════
   static/components/ActionStrip.jsx. Hollow discs wearing a thin Bifrost ring on the SAME 10s
   iri-spin clock as every other Bifrost surface; the ring thickens + glows while pressed. Plex's
   ring is gold, a watchlisted title's is green. The strip is 72px and never grows — the popup
   body above keeps its size. Spec: [[action-strip-g-outlined-is-the-spec]]. */
@property --astrip-rw { syntax: '<length>'; inherits: true; initial-value: 1.5px; }
.astrip {
    position: relative; flex-shrink: 0;
    display: flex; justify-content: center; align-items: flex-start; gap: 14px;
    min-height: 72px; padding: 8px 10px 6px;
    border-top: 1px solid rgba(255,255,255,0.09);
    background: rgba(24,24,27,0.96);
}
.astrip::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent); }
.astrip-slot { display: flex; flex-direction: column; align-items: center; gap: 5px; flex: 0 1 60px; min-width: 0; }
.astrip-disc {
    position: relative; width: 46px; height: 46px; border-radius: 9999px;
    background: #0d0d11; color: #fff; display: grid; place-items: center;
    border: 0; padding: 0; margin: 0; cursor: pointer; text-decoration: none;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none;
    transition: transform 0.18s cubic-bezier(0.2, 1.4, 0.3, 1);
    --astrip-rw: 1.5px;
}
.astrip-disc:active { transform: scale(0.9); }
.astrip-disc svg { width: 22px; height: 22px; display: block; position: relative; z-index: 1; }
.astrip-disc[disabled] { opacity: 0.35; pointer-events: none; }
.astrip-ring {
    position: absolute; inset: 0; border-radius: 9999px; pointer-events: none;
    animation: iri-spin 10s linear infinite;
    background: conic-gradient(
        from var(--iri-angle),
        rgb(var(--bif-1)), rgb(var(--bif-2)), rgb(var(--bif-3)), rgb(var(--bif-4)),
        rgb(var(--bif-5)), rgb(var(--bif-6)), rgb(var(--bif-7)), rgb(var(--bif-1))
    );
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--astrip-rw) - 0.5px), #000 calc(100% - var(--astrip-rw)));
            mask: radial-gradient(farthest-side, transparent calc(100% - var(--astrip-rw) - 0.5px), #000 calc(100% - var(--astrip-rw)));
    transition: --astrip-rw 0.2s, filter 0.2s;
}
.astrip-disc:active .astrip-ring, .astrip-disc.is-busy .astrip-ring {
    --astrip-rw: 3.5px;
    filter: drop-shadow(0 0 8px rgba(var(--bif-1), 0.8));
}
/* the two rings that say a STATE rather than "tap me": Plex gold, watchlisted green (#3ddc57, never emerald) */
.astrip-disc.tone-gold  .astrip-ring { background: linear-gradient(to bottom, #fcd34d, #f59e0b); animation: none; }
.astrip-disc.tone-green .astrip-ring { background: #3ddc57; animation: none; }
.astrip-disc.tone-gold:active .astrip-ring  { filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.8)); }
.astrip-disc.tone-green:active .astrip-ring { filter: drop-shadow(0 0 8px rgba(61, 220, 87, 0.8)); }
.astrip-disc.is-busy svg { opacity: 0.55; }
.astrip-word {
    font-size: 0.5625rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
    color: #a1a1aa; text-align: center; white-space: nowrap; max-width: 68px; overflow: hidden; text-overflow: ellipsis;
}
/* 68 (was 64): "Play on TV" (64.5 px at 9 px Outfit 800, measured) and "Requested" (65.4) were cut to an ellipsis; at 375 px with
   five discs the slot pitch is ~70 px, so the words still never touch (Josh 11-25 #170) */
@media (prefers-reduced-motion: reduce) { .astrip-ring { animation: none; transition: none; } .astrip-disc { transition: none; } }

/* 🟡 THE HOUSE PLEX-GOLD GRADIENT TEXT — the ADMIN pill, the recap reel title, the room
   announcement eyebrow, the watch-group name, the empty Favorites card.
   Josh, 2026-11-03: *"That's like a really bad gold gradient that doesn't match anything else on
   the app... It's definitely supposed to be Plex gold gradient, but it's not supposed to look like
   that all brown and glowing"*. This class WAS a spinning conic with a brown stop (160,100,6) and
   two gold drop-shadow glows. It is now the app's one gold title gradient, the same ramp as
   `.pop-hero-title h2` / `.mph-gold` / Tailwind `from-amber-300 to-amber-500` (amber-300 -> amber-500,
   top to bottom): no brown, no glow, no animation (so nothing for the iri clock to tick). */
.plex-gold-text {
    background: linear-gradient(to bottom, #fcd34d, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* 🟡🌀 THE SPINNING PLEX GOLD — the room-ADMIN pill ONLY (Shared.jsx AdminBadge).
   Josh 2026-11-03, asked "keep it still gold, or make it spin again to match VIP?": "Yes soon the
   admin pills" (= yes, spin). Same conic technique + same --iri-angle spin + same iri clock as the
   VIP pill's .bifrost-text, so the two pills under one avatar turn as one family — but in the house
   Plex-gold stops ONLY (amber-300 / amber-400 / amber-500 + an amber-200 highlight): no brown stop,
   no drop-shadow glow (his 11-03 rule: "not supposed to look like that all brown and glowing").
   Every other gold surface keeps the static .plex-gold-text above. */
.plex-gold-spin {
    animation: iri-spin 10s linear infinite;
    background: conic-gradient(
        from var(--iri-angle),
        #f59e0b,
        #fbbf24,
        #fcd34d,
        #fde68a,
        #fcd34d,
        #fbbf24,
        #f59e0b
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
@media (prefers-reduced-motion: reduce) {
    .plex-gold-spin { animation: none; }
}

/* Bevel inset shadows only — modals keep their own background */
/* PERF — keyboard slide. The chat sheet uses .post-bifrost-wrap, but unlike a post card it is
   FULL SCREEN, and the keyboard animation changes its `top`, i.e. it RESIZES every frame. That
   forces the animated conic-gradient (which @property --iri-angle makes uncacheable) and all
   three blurred shadows to re-rasterize at full-screen size on every single frame. Measured on
   device: 60-100ms/frame, so a 250ms slide only got painted 4-6 times — the "dive and snap".
   While the panel is moving we swap the rim to a flat colour and kill the shadows. The rim is
   1.5px wide and this lasts ~300ms, so the look is unchanged in practice. */
/* ⚠️ NOT DURING THE KEYBOARD MOTION ANY MORE (2026-10-02, round 6). This strip existed because the keyboard slide used to
   RESIZE the sheet every frame. The morph (hooks/useKeyboardMotion.js) moves it by transform only, so there is nothing
   per-frame left to save — and toggling the strip on at the start and off at the landing re-rasterized the full-screen rim
   and its three blurred shadows TWICE per motion, exactly on the two frames Josh's round-6 probe showed stalling
   (130-200ms each). Kept for zone drags, which do still resize the sheet per frame. */
.post-bifrost-wrap.kb-anim {
    animation: none;
    background-image: none;
    background-color: rgba(150, 140, 180, 0.45);
    box-shadow: none;
}

/* PERF DEAD ENDS — recorded so nobody re-runs them. All three were measured on device with a
   per-frame ms log, and all three changed the painted-frame count by ZERO:
     1. suppressing the scroller's mask-image during the slide
     2. suppressing the header's backdrop-filter
     3. suppressing EVERY backdrop-filter in the sheet (per-message chips included)
   Cutting the HUD's own ~7 re-renders per animation also did nothing, which rules out React.
   What the numbers actually say:
     idle, nothing moving        16-17ms   <- the phone is entirely capable
     first frame after focus     45-51ms
     second frame                38-40ms
   The device cannot paint for ~120ms after the keyboard focus event, and the cost tracks how
   much message content is loaded (club sH 1925 is worse than individual sH 1157). That is the
   layout cost of resizing a scroll container full of messages, and it is not cheaply removable.
   The fix therefore is NOT to make those frames cheap — it is to stop scheduling most of the
   animation into them. See KB_CURVE_OPEN in MessagingPage.jsx / ChatView.jsx. */

/* NOTE: the FX layers are handled structurally instead — see the fixed-height backdrop wrapper
   in ChatView, which stops them resizing at all. Freezing them here (display:none, or pausing
   the gradient drift) was the earlier attempt and it visibly blinked, so nothing else is
   suppressed during the slide. */

.bifrost-bevel {
    background: #18181b; /* dark fallback — prevents bifrost gradient bleeding through */
    box-shadow:
        inset 0 2px 0 rgba(255,255,255,0.09),
        inset 0 -1.5px 0 rgba(0,0,0,0.40),
        inset 1.5px 0 0 rgba(255,255,255,0.05),
        inset -1px 0 0 rgba(0,0,0,0.15);
}

/* When a chat has a custom background, it sits inside bifrost-bevel and overrides the fallback */
.bifrost-bevel > .chat-custom-bg {
    background: #18181b; /* secondary fallback for the bg layer itself */
}

/* Notification highlight — a loud Bifrost welcome so a tapped notification can't
   be missed: an animated rainbow RING (like the post bounding box) with an outward
   halo, a vivid fill wash sitting BEHIND the text (readable), and a quick springy
   grow-pulse to yank the eye. ~3s total, then it fades back to a normal bubble. */
@keyframes bifrost-flash-grow {
    0%   { transform: scale(1);     }
    10%  { transform: scale(1.10);  }
    26%  { transform: scale(1.03);  }
    40%  { transform: scale(1.06);  }
    100% { transform: scale(1);     }
}
@keyframes bifrost-flash-halo {
    0%   { box-shadow: 0 0 0 0 rgba(var(--bif-halo-1), 0); }
    10%  { box-shadow: 0 0 22px 2px rgba(var(--bif-halo-1), 0.5), 0 0 46px 8px rgba(var(--bif-halo-2), 0.28); }
    72%  { box-shadow: 0 0 20px 1px rgba(var(--bif-halo-1), 0.42), 0 0 42px 6px rgba(var(--bif-halo-2), 0.22); }
    100% { box-shadow: 0 0 0 0 rgba(var(--bif-halo-1), 0); }
}
@keyframes bifrost-flash-fill {
    0%   { opacity: 0;    }
    10%  { opacity: 0.82; }
    72%  { opacity: 0.70; }
    100% { opacity: 0;    }
}
@keyframes bifrost-flash-outline {
    0%   { opacity: 0; }
    10%  { opacity: 1; }
    72%  { opacity: 1; }
    100% { opacity: 0; }
}

.bifrost-flash-active {
    position: relative;
    z-index: 0;
    transform-origin: center;
    animation:
        bifrost-flash-grow 3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
        bifrost-flash-halo 3s ease-out forwards;
}

/* Text + interactive children ride above the fill wash so they stay readable */
.bifrost-flash-active > * {
    position: relative;
    z-index: 2;
}

/* FILL — vivid rainbow wash above the bubble background, below the text */
.bifrost-flash-active::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: 1;
    pointer-events: none;
    background: conic-gradient(
        from var(--iri-angle, 0deg),
        rgba(var(--bif-1), 0.85),
        rgba(var(--bif-2), 0.80),
        rgba(var(--bif-3), 0.72),
        rgba(var(--bif-4), 0.68),
        rgba(var(--bif-5), 0.72),
        rgba(var(--bif-6), 0.80),
        rgba(var(--bif-7), 0.85),
        rgba(var(--bif-1), 0.85)
    );
    animation: bifrost-flash-fill 3s ease-out forwards, iri-spin 3s linear infinite;
}

/* RING — bright animated rainbow outline hugging the bubble edge (mask = border only) */
.bifrost-flash-active::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2.5px;
    z-index: 3;
    pointer-events: none;
    background: conic-gradient(
        from var(--iri-angle, 0deg),
        rgb(var(--bif-1)),
        rgb(var(--bif-2)),
        rgb(var(--bif-3)),
        rgb(var(--bif-4)),
        rgb(var(--bif-5)),
        rgb(var(--bif-6)),
        rgb(var(--bif-7)),
        rgb(var(--bif-1))
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask-composite: exclude;
    filter:
        drop-shadow(0 0 5px rgba(var(--bif-1), 0.75))
        drop-shadow(0 0 12px rgba(var(--bif-2), 0.45));
    animation: bifrost-flash-outline 3s ease-out forwards, iri-spin 3s linear infinite;
}

/* 🫧 BUBBLE ARRIVAL BLOOM (2026-09-27, static/components/bubbleArrival.js). The flash above, unchanged in
   look, run for --bba-ms (Josh's pick: 1s) after a comment / reply / chat bubble is born in front of him.
   Its own class so a deep link's 3s .bifrost-flash-active timer can never cut it short. iri-spin keeps 3s. */
.bba-bloom {
    position: relative;
    z-index: 0;
    transform-origin: center;
    animation:
        bifrost-flash-grow var(--bba-ms, 1s) cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
        bifrost-flash-halo var(--bba-ms, 1s) ease-out forwards;
}
.bba-bloom > * { position: relative; z-index: 2; }
.bba-bloom::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: 1; pointer-events: none;
    background: conic-gradient(from var(--iri-angle, 0deg), rgba(var(--bif-1), 0.85), rgba(var(--bif-2), 0.80), rgba(var(--bif-3), 0.72), rgba(var(--bif-4), 0.68), rgba(var(--bif-5), 0.72), rgba(var(--bif-6), 0.80), rgba(var(--bif-7), 0.85), rgba(var(--bif-1), 0.85));
    animation: bifrost-flash-fill var(--bba-ms, 1s) ease-out forwards, iri-spin 3s linear infinite;
}
.bba-bloom::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 2.5px; z-index: 3; pointer-events: none;
    background: conic-gradient(from var(--iri-angle, 0deg), rgb(var(--bif-1)), rgb(var(--bif-2)), rgb(var(--bif-3)), rgb(var(--bif-4)), rgb(var(--bif-5)), rgb(var(--bif-6)), rgb(var(--bif-7)), rgb(var(--bif-1)));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask-composite: exclude;
    filter: drop-shadow(0 0 5px rgba(var(--bif-1), 0.75)) drop-shadow(0 0 12px rgba(var(--bif-2), 0.45));
    animation: bifrost-flash-outline var(--bba-ms, 1s) ease-out forwards, iri-spin 3s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .bba-bloom, .bba-bloom::before, .bba-bloom::after { animation: none; } }

/* Subtle notification highlight — used in CHATS (DMs + event chat). Overlay-only
   (no transforms / stacking changes) so it never disturbs the delicate iOS
   keyboard + scroll layout. The loud ring/grow above is for posts/comments. */
@keyframes bifrost-flash-subtle-io {
    0%   { opacity: 0; }
    12%  { opacity: 0.55; }
    70%  { opacity: 0.48; }
    100% { opacity: 0; }
}
.bifrost-flash-subtle {
    position: relative;
}
.bifrost-flash-subtle::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: conic-gradient(
        from var(--iri-angle, 0deg),
        rgba(var(--bif-1), 0.55),
        rgba(var(--bif-2), 0.50),
        rgba(var(--bif-3), 0.45),
        rgba(var(--bif-4), 0.40),
        rgba(var(--bif-5), 0.45),
        rgba(var(--bif-6), 0.50),
        rgba(var(--bif-7), 0.55),
        rgba(var(--bif-1), 0.55)
    );
    animation: bifrost-flash-subtle-io 2.5s ease-out forwards, iri-spin 3s linear infinite;
    pointer-events: none;
    z-index: 10;
}

/* Reaction notification highlight — element grows with rainbow glow then settles */
@keyframes bifrost-react-pop {
    0%   { transform: scale(1);    filter: brightness(1); }
    15%  { transform: scale(1.3);  filter: brightness(1.7) drop-shadow(0 0 10px rgba(var(--bif-1), 0.9)); }
    45%  { transform: scale(1.2);  filter: brightness(1.4) drop-shadow(0 0 7px rgba(var(--bif-2), 0.7)); }
    75%  { transform: scale(1.07); filter: brightness(1.15) drop-shadow(0 0 4px rgba(var(--bif-3), 0.5)); }
    100% { transform: scale(1);    filter: brightness(1); }
}

.bifrost-react-pop {
    animation: bifrost-react-pop 1.8s ease-out forwards;
    transform-origin: center;
}

/* ===== ATTENTION BIFROST =====
   A recurring bifrost "wash" that sweeps an element every 3s to pull the eye
   toward something new/unread — layered ON TOP of the existing gold icon +
   red count badge, never replacing them. The wash happens in the first ~1.1s
   of each cycle, then the element rests (gold) until the 3s loop repeats.
   This is the reusable engine for the feature-spotlight system. */
@keyframes attention-bifrost-icon {
    0%   { color: #e5a00d; transform: scale(1);    filter: drop-shadow(0 0 0 rgba(var(--bif-1),0)); }
    6%   { color: rgb(var(--bif-1)); transform: scale(1.22); filter: drop-shadow(0 0 7px rgba(var(--bif-1),0.95)); }
    13%  { color: rgb(var(--bif-2)); transform: scale(1.10); filter: drop-shadow(0 0 8px rgba(var(--bif-2),0.90)); }
    20%  { color: rgb(var(--bif-3)); transform: scale(1.16); filter: drop-shadow(0 0 7px rgba(var(--bif-3),0.85)); }
    27%  { color: rgb(var(--bif-6)); transform: scale(1.06); filter: drop-shadow(0 0 6px rgba(var(--bif-6),0.80)); }
    36%  { color: #e5a00d; transform: scale(1);    filter: drop-shadow(0 0 0 rgba(var(--bif-1),0)); }
    100% { color: #e5a00d; transform: scale(1);    filter: drop-shadow(0 0 0 rgba(var(--bif-1),0)); }
}
/* ⚡ PERF 2026-09-24 — THE SAME WASH, WITHOUT THE 1.9 SECONDS OF NOTHING.
   `color` cannot run on the compositor, so the 3s loop above kept the main thread painting frames
   60 times a second for the whole cycle — including the 64% of it (36%→100%) where every value is
   the resting one and nothing on screen changes. Every header icon with an unread count wears it,
   on every page, for as long as the count stands. This is the moving 36% of that loop, rescaled to
   1.08s with the same values, the same per-segment ease-in-out and a `both` fill that holds the
   resting frame. ambientMotion.js (REST_GAPS) replays it 3000ms after each start, so the cadence
   is exactly the old one: a 1.08s wash, a still icon, every 3 seconds. Offsets are old/36. */
@keyframes attention-bifrost-wash {
    0%       { color: #e5a00d; transform: scale(1);    filter: drop-shadow(0 0 0 rgba(var(--bif-1),0)); }
    16.667%  { color: rgb(var(--bif-1)); transform: scale(1.22); filter: drop-shadow(0 0 7px rgba(var(--bif-1),0.95)); }
    36.111%  { color: rgb(var(--bif-2)); transform: scale(1.10); filter: drop-shadow(0 0 8px rgba(var(--bif-2),0.90)); }
    55.556%  { color: rgb(var(--bif-3)); transform: scale(1.16); filter: drop-shadow(0 0 7px rgba(var(--bif-3),0.85)); }
    75%      { color: rgb(var(--bif-6)); transform: scale(1.06); filter: drop-shadow(0 0 6px rgba(var(--bif-6),0.80)); }
    100%     { color: #e5a00d; transform: scale(1);    filter: drop-shadow(0 0 0 rgba(var(--bif-1),0)); }
}
/* Icon variant: washes the icon glyph itself (currentColor) + a soft rainbow
   halo + a gentle scale pulse. Targets the direct-child <svg> so a sibling
   count badge is left untouched. */
.attention-bifrost > svg {
    animation: attention-bifrost-wash 1.08s ease-in-out both;
    transform-origin: center center;
    will-change: transform, filter;
}
@media (prefers-reduced-motion: reduce) {
    .attention-bifrost > svg { animation: none; }
}

/* 🔔 THE SAME WASH, ON THE GRAPHICS CHIP — what the header icons wear since 2026-10-13 (Josh: "Def go with the cheaper
   ones, I can barely tell a difference haha"). The block above stays as the spec it was measured against; the icons now
   render IconComponents.jsx's WashGlyph: five copies of the icon, each already in one of the wash's colour stops with
   that stop's glow, ADDED together (plus-lighter) with opacities that hand each stop to the next — the outgoing copy
   fades 1 -> 0 while the incoming fades 0 -> 1, out*(1-e) + in*e, the same colour mix the colour animation computes.
   Only opacity and transform move, so neither engine restyles or repaints a frame of it. Same offsets, same per-segment
   ease-in-out, same 1.08 s, replayed every 3 s by ambientMotion.js (REST_GAPS). Copy 0 is the resting gold. */
@keyframes awg-scale { 0% { transform: scale(1); } 16.667% { transform: scale(1.22); } 36.111% { transform: scale(1.10); } 55.556% { transform: scale(1.16); } 75% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes awg-w0 { 0% { opacity: 1; } 16.667% { opacity: 0; } 36.111% { opacity: 0; } 55.556% { opacity: 0; } 75% { opacity: 0; } 100% { opacity: 1; } }
@keyframes awg-w1 { 0% { opacity: 0; } 16.667% { opacity: 1; } 36.111% { opacity: 0; } 55.556% { opacity: 0; } 75% { opacity: 0; } 100% { opacity: 0; } }
@keyframes awg-w2 { 0% { opacity: 0; } 16.667% { opacity: 0; } 36.111% { opacity: 1; } 55.556% { opacity: 0; } 75% { opacity: 0; } 100% { opacity: 0; } }
@keyframes awg-w3 { 0% { opacity: 0; } 16.667% { opacity: 0; } 36.111% { opacity: 0; } 55.556% { opacity: 1; } 75% { opacity: 0; } 100% { opacity: 0; } }
@keyframes awg-w4 { 0% { opacity: 0; } 16.667% { opacity: 0; } 36.111% { opacity: 0; } 55.556% { opacity: 0; } 75% { opacity: 1; } 100% { opacity: 0; } }
.awg-s { position: relative; display: block; isolation: isolate; transform-origin: center center; animation: awg-scale 1.08s ease-in-out both; }
.awg-s > .awg-c { mix-blend-mode: plus-lighter; animation-duration: 1.08s; animation-timing-function: ease-in-out; animation-fill-mode: both; }
.awg-s > .awg-c ~ .awg-c { position: absolute; left: 0; top: 0; }
.awg-s > .awg-c0 { animation-name: awg-w0; }
@media (prefers-reduced-motion: no-preference) { .awg-s > .awg-c0 { color: #e5a00d; } }   /* the resting gold the old wash held */
.awg-s > .awg-c1 { color: rgb(var(--bif-1)); filter: drop-shadow(0 0 7px rgba(var(--bif-1), 0.95)); animation-name: awg-w1; }
.awg-s > .awg-c2 { color: rgb(var(--bif-2)); filter: drop-shadow(0 0 8px rgba(var(--bif-2), 0.90)); animation-name: awg-w2; }
.awg-s > .awg-c3 { color: rgb(var(--bif-3)); filter: drop-shadow(0 0 7px rgba(var(--bif-3), 0.85)); animation-name: awg-w3; }
.awg-s > .awg-c4 { color: rgb(var(--bif-6)); filter: drop-shadow(0 0 6px rgba(var(--bif-6), 0.80)); animation-name: awg-w4; }
/* Reduced motion = what `.attention-bifrost > svg { animation: none }` gave: the plain icon in its own colour. */
@media (prefers-reduced-motion: reduce) {
    .awg-s, .awg-s > .awg-c { animation: none; }
    .awg-s > .awg-c ~ .awg-c { display: none; }
}

/* Element variant — a bifrost glow washes over a whole row/card. Persistent
   ('-row', loops every 3s until dismissed) or one-shot ('-once', a single pass).
   Glow-only (box-shadow) so it never obscures the row's own text/content, and
   the inset ring follows the element's existing border-radius. */
@keyframes attention-bifrost-glow {
    0%   { background-color: rgba(160,130,255,0);    box-shadow: 0 0 0 0 rgba(var(--bif-1),0); }
    8%   { background-color: rgba(var(--bif-1),0.20); box-shadow: 0 0 16px 3px rgba(var(--bif-1),0.50), inset 0 0 14px 2px rgba(var(--bif-1),0.30), inset 0 0 0 2px rgba(var(--bif-1),0.80); }
    18%  { background-color: rgba(var(--bif-2),0.18); box-shadow: 0 0 16px 3px rgba(var(--bif-2),0.46), inset 0 0 14px 2px rgba(var(--bif-2),0.28), inset 0 0 0 2px rgba(var(--bif-2),0.75); }
    28%  { background-color: rgba(var(--bif-3),0.15); box-shadow: 0 0 14px 2px rgba(var(--bif-3),0.42), inset 0 0 12px 2px rgba(var(--bif-3),0.24), inset 0 0 0 1.6px rgba(var(--bif-3),0.68); }
    38%  { background-color: rgba(var(--bif-6),0.13); box-shadow: 0 0 12px 2px rgba(var(--bif-6),0.36), inset 0 0 10px 1px rgba(var(--bif-6),0.20), inset 0 0 0 1.2px rgba(var(--bif-6),0.58); }
    50%  { background-color: rgba(160,130,255,0);    box-shadow: 0 0 0 0 rgba(var(--bif-1),0); }
    100% { background-color: rgba(160,130,255,0);    box-shadow: 0 0 0 0 rgba(var(--bif-1),0); }
}
/* ⚡ PERF 2026-09-24 — same treatment as the icon wash above: the moving half of the loop (0-50%),
   rescaled to 1.5s with the same values and a `both` fill holding the resting frame, replayed
   every 3000ms from its start by ambientMotion.js REST_GAPS. Every unread conversation row wore
   the infinite version, repainting box-shadows for the still second half of every cycle. */
@keyframes attention-bifrost-row-wash {
    0%   { background-color: rgba(160,130,255,0);    box-shadow: 0 0 0 0 rgba(var(--bif-1),0); }
    16%  { background-color: rgba(var(--bif-1),0.20); box-shadow: 0 0 16px 3px rgba(var(--bif-1),0.50), inset 0 0 14px 2px rgba(var(--bif-1),0.30), inset 0 0 0 2px rgba(var(--bif-1),0.80); }
    36%  { background-color: rgba(var(--bif-2),0.18); box-shadow: 0 0 16px 3px rgba(var(--bif-2),0.46), inset 0 0 14px 2px rgba(var(--bif-2),0.28), inset 0 0 0 2px rgba(var(--bif-2),0.75); }
    56%  { background-color: rgba(var(--bif-3),0.15); box-shadow: 0 0 14px 2px rgba(var(--bif-3),0.42), inset 0 0 12px 2px rgba(var(--bif-3),0.24), inset 0 0 0 1.6px rgba(var(--bif-3),0.68); }
    76%  { background-color: rgba(var(--bif-6),0.13); box-shadow: 0 0 12px 2px rgba(var(--bif-6),0.36), inset 0 0 10px 1px rgba(var(--bif-6),0.20), inset 0 0 0 1.2px rgba(var(--bif-6),0.58); }
    100% { background-color: rgba(160,130,255,0);    box-shadow: 0 0 0 0 rgba(var(--bif-1),0); }
}
.attention-bifrost-row {
    animation: attention-bifrost-row-wash 1.5s ease-in-out both;
}
/* One-shot target wash — a SMOOTH ramp-up, hue cycle, then graceful fade to
   nothing over the full 3s (ends fully transparent, so no abrupt cut-off). */
/* One-shot target — the SAME prominent fill + ring as the hold, but a single
   smooth fade-in → hold → fade-out over 3s (ends at opacity 0, so no snap). The
   fade lives on the pseudo-elements' opacity, so the card's own bg is never touched. */
@keyframes attention-bifrost-once-fade {
    0%   { opacity: 0; }
    14%  { opacity: 1; }
    66%  { opacity: 1; }
    100% { opacity: 0; }
}
.attention-bifrost-once {
    position: relative;
    z-index: 0;
}
.attention-bifrost-once > * {
    position: relative;
    z-index: 2;
}
.attention-bifrost-once::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: 1;
    pointer-events: none;
    background: conic-gradient(
        from var(--iri-angle, 0deg),
        rgba(var(--bif-1),0.90), rgba(var(--bif-2),0.85), rgba(var(--bif-3),0.75),
        rgba(var(--bif-4),0.70), rgba(var(--bif-5),0.75), rgba(var(--bif-6),0.85),
        rgba(var(--bif-7),0.90), rgba(var(--bif-1),0.90)
    );
    animation: iri-spin 6s linear infinite, attention-bifrost-once-fade 3s ease-in-out 1 both;
}
.attention-bifrost-once::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: 3;
    pointer-events: none;
    padding: 2px;
    background: conic-gradient(from var(--iri-angle, 0deg),
        rgb(var(--bif-1)), rgb(var(--bif-2)), rgb(var(--bif-3)), rgb(var(--bif-4)),
        rgb(var(--bif-5)), rgb(var(--bif-6)), rgb(var(--bif-7)), rgb(var(--bif-1)));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask-composite: exclude;
    animation: iri-spin 6s linear infinite, attention-bifrost-once-fade 3s ease-in-out 1 both;
}

/* Persistent prominent Attention Bifrost — a continuously lit rainbow FILL (behind
   the text) + a rainbow ring. Stays lit the whole time; direct children ride on top
   (z-index 2) so text stays readable. Use for a guide element that must hold
   attention until the user reaches the target (which then does the one-shot). */
.attention-bifrost-hold {
    position: relative;
    z-index: 0;
}
.attention-bifrost-hold > * {
    position: relative;
    z-index: 2;
}
@keyframes attention-bifrost-breathe {
    0%, 100% { opacity: 0.60; }
    50%      { opacity: 0.84; }
}
.attention-bifrost-hold::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: 1;
    pointer-events: none;
    background: conic-gradient(
        from var(--iri-angle, 0deg),
        rgba(var(--bif-1),0.90), rgba(var(--bif-2),0.85), rgba(var(--bif-3),0.75),
        rgba(var(--bif-4),0.70), rgba(var(--bif-5),0.75), rgba(var(--bif-6),0.85),
        rgba(var(--bif-7),0.90), rgba(var(--bif-1),0.90)
    );
    animation: iri-spin 6s linear infinite, attention-bifrost-breathe 3.2s ease-in-out infinite;
}
.attention-bifrost-hold::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: 3;
    pointer-events: none;
    padding: 2px;
    background: conic-gradient(from var(--iri-angle, 0deg),
        rgb(var(--bif-1)), rgb(var(--bif-2)), rgb(var(--bif-3)), rgb(var(--bif-4)),
        rgb(var(--bif-5)), rgb(var(--bif-6)), rgb(var(--bif-7)), rgb(var(--bif-1)));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask-composite: exclude;
    animation: iri-spin 6s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
    .attention-bifrost-row, .attention-bifrost-once { animation: none; }
    .attention-bifrost-hold::before { animation: none; opacity: 0.72; }
    .attention-bifrost-hold::after { animation: none; }
}

/* msg-flash kept as empty class — animation is now handled imperatively */
.msg-flash {}

/* Donator avatar ring — solid animated Bifrost ring, no glow */
.donator-avatar-ring {
    animation: iri-spin 5s linear infinite;
    background: conic-gradient(
        from var(--iri-angle),
        rgb(var(--bif-1)),
        rgb(var(--bif-2)),
        rgb(var(--bif-3)),
        rgb(var(--bif-4)),
        rgb(var(--bif-5)),
        rgb(var(--bif-6)),
        rgb(var(--bif-7)),
        rgb(var(--bif-1))
    );
    border-radius: 9999px;
    padding: 2.5px;
    display: inline-flex;
    flex-shrink: 0;
}

/* Notification / message count badge — Bifrost border, red fill */
/* 🔋 PERF 2026-10-13 (Lane 4, Josh: "I'm sure the Bifrost drawing over and over is a problem too… like an
   animated GIF almost where it's just kind of a set it and forget it"). THE BADGE RIM IS PAINTED ONCE AND THE
   GPU TURNS IT. Until today the ring was `iri-spin 3s` on the shared step clock: 30 steps per 3s = the clock
   flipped <html> TEN times a second for as long as ANY count badge was on screen (the nav bell, Messages, the
   Stream's chats button — i.e. nearly always), and every flip was a main-thread restyle + a repaint. Measured
   (tests/test_effects_budget.js rig, Chromium, an idle page whose only motion is one badge): 29 style recalcs/s
   and 57 paints/s -> see the commit for after.
   SAME LOOK, EXACTLY: the badge is a circle, and a conic gradient turned by θ inside a circle IS that circle
   rotated by θ. So the identical gradient (from 0deg) sits on ::before, behind the red disc, and `iri-rot`
   rotates it — on the compositor, no repaint, ever. `iri-rot` holds each of 30 angles for 1/30 of the turn
   and jumps 12deg in 0.3ms: Josh's stepped 30-steps-per-turn look, written as keyframes (not `steps()`) so
   WebKit can hand it to Core Animation. ambientMotion.js lines every `iri-rot` up on the old clock's grid
   (startTime 0), so two badges still turn in phase, at the angles the clock used to give them.
   `position: relative` is the fallback for an unplaced badge — Tailwind's `.absolute` loads after style.css and
   still wins where a caller places it. `isolation` keeps the ::before (z -1) above the page, under the disc. */
.bifrost-badge-wrap {
    position: relative;
    isolation: isolate;
    border-radius: 9999px;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    box-shadow: 0 0 8px rgba(220, 38, 38, 0.55), 0 0 18px rgba(220, 38, 38, 0.25);
    flex-shrink: 0;
}
.bifrost-badge-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    pointer-events: none;
    background: conic-gradient(
        from 0deg,
        rgb(var(--bif-1)),
        rgb(var(--bif-2)),
        rgb(var(--bif-3)),
        rgb(var(--bif-4)),
        rgb(var(--bif-5)),
        rgb(var(--bif-6)),
        rgb(var(--bif-7)),
        rgb(var(--bif-1))
    );
    animation: iri-rot 3s linear infinite;
}
/* A badge that is mounted but hidden (the Messages list keeps one at opacity-0 on every club with no unread)
   turns nothing — the old clock ticked for those too, because an invisible badge still "intersects". */
.bifrost-badge-wrap.opacity-0::before { animation: none; }
/* The rim's turn, in 30 held angles (see .bifrost-badge-wrap above). Transform only: the compositor's. */
@keyframes iri-rot {
    0%, 3.3233% { transform: rotate(0deg); }
    3.3333%, 6.6567% { transform: rotate(12deg); }
    6.6667%, 9.99% { transform: rotate(24deg); }
    10%, 13.3233% { transform: rotate(36deg); }
    13.3333%, 16.6567% { transform: rotate(48deg); }
    16.6667%, 19.99% { transform: rotate(60deg); }
    20%, 23.3233% { transform: rotate(72deg); }
    23.3333%, 26.6567% { transform: rotate(84deg); }
    26.6667%, 29.99% { transform: rotate(96deg); }
    30%, 33.3233% { transform: rotate(108deg); }
    33.3333%, 36.6567% { transform: rotate(120deg); }
    36.6667%, 39.99% { transform: rotate(132deg); }
    40%, 43.3233% { transform: rotate(144deg); }
    43.3333%, 46.6567% { transform: rotate(156deg); }
    46.6667%, 49.99% { transform: rotate(168deg); }
    50%, 53.3233% { transform: rotate(180deg); }
    53.3333%, 56.6567% { transform: rotate(192deg); }
    56.6667%, 59.99% { transform: rotate(204deg); }
    60%, 63.3233% { transform: rotate(216deg); }
    63.3333%, 66.6567% { transform: rotate(228deg); }
    66.6667%, 69.99% { transform: rotate(240deg); }
    70%, 73.3233% { transform: rotate(252deg); }
    73.3333%, 76.6567% { transform: rotate(264deg); }
    76.6667%, 79.99% { transform: rotate(276deg); }
    80%, 83.3233% { transform: rotate(288deg); }
    83.3333%, 86.6567% { transform: rotate(300deg); }
    86.6667%, 89.99% { transform: rotate(312deg); }
    90%, 93.3233% { transform: rotate(324deg); }
    93.3333%, 96.6567% { transform: rotate(336deg); }
    96.6667%, 100% { transform: rotate(348deg); }
}
.bifrost-badge-inner {
    background: #dc2626;
    border-radius: 9999px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.9);
}

/* ➕ THE "+" ADD TILE — New Chat / New Club (MessagingComponents.jsx) and the guest list's Invite (EventPage.jsx), ONE
   component: Shared.jsx AddCircleBubble. Josh, 2026-11-08: "They don't really fit the app anymore, def thinking bifrost
   lines for it" -> he picked B4 "Dashed Bifrost" in the sampler (https://claude.ai/artifact/5ZymRNG71dBKs25ootyaJq, send
   c1lwx4uyet092etlf0x3: ring 1.5px, brightness 65%, glyph 100%, "This one :)"), then "Slowly turns, make sure it's good
   on battery and phone processing", and Invite "Yes" (same look).
   THE LOOK: twelve iridescent dashes (16deg on / 14deg off) in a 1.5px ring round a dark disc, the "+" white, both at 65%.
   ⚠️ THE DASHES NEVER MOVE — ONLY THE COLOUR DOES. Josh, 2026-11-08, after eca755a223 turned the whole dashed ring:
   "That + circle fix wasn't supposed to be rotating the dotted line, just the bifrost. I Never approved a version that was
   spinning like that because on the sample it wasn't spinning either." So: the dash mask is STATIC on ::before and the
   conic gradient's angle sweeps `from var(--iri-angle)` exactly like every other Bifrost rim (.seen-ring-bifrost,
   .qtile::before …): the `iri-spin 10s` here is the stylesheet's statement of period and steps, and ambientMotion.js's step
   clock (IRI_CLOCKS `.add-bubble::before`, watch `.add-bubble`) replaces it — 30 held angles per 10 s written as an
   attribute step on the host, in phase with every post-bifrost-wrap, only while the tile is on screen (the clock's own
   IntersectionObserver), never on a hidden page, and reduced motion leaves a still rainbow. One repaint of a 56px disc 3x a
   second, no per-frame work. NO transform here, ever: a transform would turn the dashes.
   Measured: tests/add_tile_rig/battery.js -> _handoff/add-tile-battery-2026-11-08.md. Guard: tests/test_add_tile_bifrost_webkit.js. */
.add-bubble {
    position: relative;
    isolation: isolate;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(24, 24, 27, 0.9);
}
.add-bubble::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0.65;
    animation: iri-spin 10s linear infinite;
    background: conic-gradient(
        from var(--iri-angle),
        rgb(var(--bif-1)),
        rgb(var(--bif-2)),
        rgb(var(--bif-3)),
        rgb(var(--bif-4)),
        rgb(var(--bif-5)),
        rgb(var(--bif-6)),
        rgb(var(--bif-7)),
        rgb(var(--bif-1))
    );
    /* the ring (1.5px, soft inner edge) ∩ the twelve dashes — STATIC; the colour moves under it */
    -webkit-mask-image: radial-gradient(farthest-side, transparent calc(100% - 2.1px), #000 calc(100% - 1.5px)),
                        repeating-conic-gradient(from -7deg, #000 0 16deg, transparent 16deg 30deg);
    -webkit-mask-composite: source-in;
    mask-image: radial-gradient(farthest-side, transparent calc(100% - 2.1px), #000 calc(100% - 1.5px)),
                repeating-conic-gradient(from -7deg, #000 0 16deg, transparent 16deg 30deg);
    mask-composite: intersect;
}
.add-bubble-plus {
    position: relative;
    color: rgba(255, 255, 255, 0.65);
}
@media (prefers-reduced-motion: reduce) { .add-bubble::before { animation: none; } }

/* Gradient text for inline post mentions */
.mention-user {
    color: #fbbf24;
    background: linear-gradient(90deg, #fbbf24 0%, #fde047 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.mention-media {
    color: #2dd4bf;
    background: linear-gradient(90deg, #2dd4bf 0%, #5eead4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.mention-episode {
    color: #f472b6;
    background: linear-gradient(90deg, #f472b6 0%, #f9a8d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.mention-hashtag {
    color: #fbbf24;
    background: linear-gradient(90deg, #f59e0b 0%, #fde047 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* No underline - Josh, 2026-10-06: "I don't like underlines for Hashtaghed items." The gold stays. */
    text-decoration: none;
}
.mention-tag {
    color: #60a5fa;
    background: linear-gradient(90deg, #60a5fa 0%, #93c5fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── Slide-up entrance used by modals / cards ── */
@keyframes slide-up-fast {
    from { transform: translateY(16px) scale(0.97); opacity: 0; }
    to   { transform: translateY(0)    scale(1);    opacity: 1; }
}
.animate-slide-up-fast {
    animation: slide-up-fast 0.22s ease-out forwards;
}

/* ── Comment / reply bubble-pop entrance ── */
@keyframes comment-pop-in {
    0%   { transform: scale(0.82) translateY(8px);  opacity: 0; }
    60%  { transform: scale(1.04) translateY(-2px); opacity: 1; }
    100% { transform: scale(1)    translateY(0);    opacity: 1; }
}
@keyframes reply-pop-in {
    0%   { transform: scale(0.82) translateX(-10px); opacity: 0; }
    60%  { transform: scale(1.04) translateX(2px);   opacity: 1; }
    100% { transform: scale(1)    translateX(0);     opacity: 1; }
}
.comment-pop-in {
    animation: comment-pop-in 0.30s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transform-origin: bottom left;
}
.reply-pop-in {
    animation: reply-pop-in 0.30s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transform-origin: bottom left;
}

/* ── Reaction details modal bounce-in ── */
@keyframes modal-bubble-bounce {
    0%   { transform: scale(0.65); opacity: 0; }
    55%  { transform: scale(1.06); opacity: 1; }
    75%  { transform: scale(0.97); }
    100% { transform: scale(1);    opacity: 1; }
}
.modal-bubble-bounce {
    /* ⚠️ `backwards`, NOT `forwards`, AND THE DIFFERENCE IS NOT COSMETIC. Measured in headless
       Chrome (_bouncelab/run.js) before this class went onto another two dozen popups:

           forwards  -> computed transform stays `matrix(1, 0, 0, 1, 0, 0)`, and a
                        `position: fixed` child of the bounced box rendered at 410,50 — the
                        BOX's corner — instead of 10,10, the viewport's.
           backwards -> computed transform returns to `none`, fixed child correct at 10,10.

       An identity matrix is still a transform, so `forwards` leaves the element a containing
       block for fixed descendants forever. That is the same trap that re-rooted the chat's
       mention list twice on 2026-09-01, and several prompts getting this class contain fixed
       children.

       The last keyframe is scale(1)/opacity(1) — exactly the base style — so dropping
       `forwards` changes nothing anybody can see. `backwards` additionally applies the 0% state
       BEFORE the animation starts, removing a one-frame flash at full size that `forwards`
       never covered. */
    animation: modal-bubble-bounce 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
    transform-origin: center bottom;
}

/* ── Wizard step-advance flash on the step indicator dots ── */
@keyframes step-pulse {
    0%   { transform: scale(1);    box-shadow: none; }
    40%  { transform: scale(1.35); box-shadow: 0 0 8px rgba(245,158,11,0.8); }
    100% { transform: scale(1);    box-shadow: none; }
}
.step-pulse {
    animation: step-pulse 0.35s ease-out forwards;
}

/* ── Unlockable-reaction promo: seamless scrolling marquee ── */
/* Two identical copies of the content sit side-by-side; translating the track by -50% loops
   seamlessly (the second copy is exactly where the first started). PromoBanner.jsx pins BOTH
   copies to the same whole-number pixel width, so -50% is exactly one copy — see the note there.
   The animation-duration below is a fallback only: the component overrides it per banner so the
   scroll pace stays constant no matter how long the message is. */
@keyframes reaction-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.reaction-marquee-track {
    display: inline-flex;
    flex-wrap: nowrap;
    white-space: nowrap;
    /* will-change alone promotes the track to its own layer. The old translateZ(0) here was dead
       (the animation's own transform overrode it) and backface-visibility:hidden was a legacy
       layer hint; both are known to make WebKit re-rasterise a promoted layer at the animation's
       iteration boundary, which is exactly the flash this banner was reported for. */
    will-change: transform;
    animation: reaction-marquee 26s linear infinite;
}
/* Message already fits, or the user asked for reduced motion: no track animation at all, just a
   centred line. No will-change, so a non-scrolling banner costs no compositor layer either. */
.reaction-marquee-static {
    display: block;
    width: 100%;
}
/* NOTE: intentionally NO :hover pause — on touch devices a tap registers as hover and would
   freeze the marquee until the next interaction. It should always keep scrolling. */
@media (prefers-reduced-motion: reduce) {
    .reaction-marquee-track { animation: none; }
}

/* Portrait-only lock — blocks landscape on phones */
@media screen and (orientation: landscape) and (max-height: 500px) {
    #landscape-block {
        display: flex !important;
    }
}
/* Chat long-press: while a finger is down in a messages list, NOTHING on the page is
   selectable. Making just the bubbles user-select:none made iOS long-press escalate and
   select the nearest selectable ancestor — the ENTIRE page lit up blue. Applied on
   touchstart / removed on touchend by the chat views (utils.js setHoldNoSelect). */
.plx-hold-noselect, .plx-hold-noselect * {
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
}

/* ── Quick Picks: a tile leaving because it moved into Trending (task #157) ──────────────
   An ANIMATION, not a transition, and deliberately so.

   `AdminTrendingPage` defines PickCard/Poster/TitleRow/Card inside its own function body, so
   every state change hands React a NEW component type and the tile's DOM node is destroyed and
   rebuilt rather than updated. Measured in headless Chrome, not assumed: the node's identity
   does not survive the state change (`sameNode: false`), and a `transition` therefore has no
   previous value to animate FROM — computed opacity went 1.00 -> 0.00 in a single frame while
   the element still sat in the grid for another 300ms as an invisible hole. An animation runs
   on mount, so it plays correctly on the freshly-created node. This is the same reason the
   house entrance effects above (.comment-pop-in, .modal-bubble-bounce, .step-pulse) are all
   animations. Keep this in sync with PICK_EXIT_MS in AdminSettingsPage.jsx — a test asserts it. */
@keyframes quick-pick-exit {
    0%   { opacity: 1; transform: scale(1)    translateY(0); }
    100% { opacity: 0; transform: scale(0.90) translateY(-8px); }
}
.quick-pick-exit {
    animation: quick-pick-exit 0.30s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    transform-origin: center center;
}
@media (prefers-reduced-motion: reduce) {
    /* No perceptible motion, but still no pop: land on the end state immediately rather than
       holding the tile at full opacity until it is unmounted. */
    .quick-pick-exit { animation-duration: 0.01s; }
}

/* ── WATCH-GROUP PICKER — the SELECTED row, task #170 round 2 ────────────────────────────
   Josh, 2026-08-02:
     "Plus I don't like the 'radio' buttons look. It just doesn't looks as fun and bubbly and
      futuristic as everything else."

   What he was looking at was a literal radio control: an 18px hollow circle with a 2px grey
   border and a 10px dot dropped into the middle of it. That is a 1995 form widget sitting in
   the middle of a Bifrost popup, and it is the ONLY control in the app that reads that way.

   THE REPLACEMENT IS THE HOUSE RING, NOT A NEW MOTIF. `.wg-picked` reuses the exact
   pseudo-element technique `.attention-bifrost-hold` already uses (a conic gradient at
   `inset: 0` masked with `mask-composite: exclude` so only a `padding`-wide rim paints) and,
   critically, the SAME `iri-spin` clock. There is one registered `--iri-angle` in the app and
   one @keyframes driving it, so this ring turns in phase with every post card's rim, the
   trivia promo frame and every `.bifrost-btn` on screen. A second, independent rainbow would
   have been visibly out of step — that is why this is not its own animation.

   `--iri-angle` is REGISTERED (`@property`, ~line 262), so the fallback in
   `var(--iri-angle, 0deg)` only matters in a browser without @property support; there the ring
   is a static rainbow rather than a spinning one, which degrades to "pretty" rather than "off".

   PERF: the `steps(60)` in `iri-spin` is what took an idle chat screen from 11.9 to 147.6 fps.
   This block adds two more painted rims, but ONLY on the one selected row inside an open modal
   — never in the feed, never more than one at a time, and never while the popup is closed.
   Do not lift this onto every row "for consistency"; that is the failure mode the perf work
   was about.

   SELECTION MUST BE UNMISTAKABLE AT A GLANCE, on light or dark content underneath, so it is
   carried by FOUR independent signals and not one: the spinning rim, a warm gold inner fill,
   an outward glow, and the orb on the left going from hollow to a filled gold bubble with a
   tick (that last one lives in the JSX). Any single signal failing still leaves three.
   Colour alone is never the selection cue — the tick is a shape. */
.wg-picked {
    position: relative;
    z-index: 0;
    box-shadow:
        0 0 18px rgba(229, 160, 13, 0.20),
        0 0 34px rgba(var(--bif-halo-1), 0.12);
}
/* Direct children ride above both pseudo-elements so the group name and the member list stay
   fully legible on top of the fill. Same contract as .attention-bifrost-hold > *. */
.wg-picked > * {
    position: relative;
    z-index: 2;
}
/* The warm inner fill — gold-dominant on purpose. The rim is the full Bifrost rainbow, which
   is the app's "this is alive" signal; the fill is Plex gold, which is the app's "this is
   chosen" signal (same palette as .plex-gold-text and the Post button). */
.wg-picked::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        135deg,
        rgba(229, 160, 13, 0.22) 0%,
        rgba(255, 215, 106, 0.10) 45%,
        rgba(var(--bif-halo-1), 0.14) 100%
    );
}
/* The rim itself. `padding` is the rim's thickness; the two masks cancel everywhere except
   inside that padding band. */
.wg-picked::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: 3;
    pointer-events: none;
    padding: 2px;
    background: conic-gradient(from var(--iri-angle, 0deg),
        rgb(var(--bif-1)), rgb(var(--bif-2)), rgb(var(--bif-3)), rgb(var(--bif-4)),
        rgb(var(--bif-5)), rgb(var(--bif-6)), rgb(var(--bif-7)), rgb(var(--bif-1)));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask-composite: exclude;
    animation: iri-spin 10s linear infinite;
}

/* The orb. A bubble, not a radio dot: it INFLATES into place with an overshoot rather than a
   dot appearing inside a ring. An animation and not a transition, for the reason written up
   on .quick-pick-exit — the row is re-rendered on every pick, so there is often no previous
   computed value to animate from and a transition silently plays nothing. */
@keyframes wg-orb-pop {
    0%   { transform: scale(0.4); opacity: 0; }
    62%  { transform: scale(1.14); opacity: 1; }
    100% { transform: scale(1);   opacity: 1; }
}
.wg-orb-pop {
    animation: wg-orb-pop 0.26s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@media (prefers-reduced-motion: reduce) {
    /* Hold the ring lit rather than hiding it — it is a SELECTION cue, so removing it would
       remove information, not just motion. Only the spin and the pop stop. */
    .wg-picked::after { animation: none; }
    .wg-orb-pop { animation-duration: 0.01s; }
}

/* ── THE POST PHOTO'S BIFROST RIM — task #170 round 2 ────────────────────────────────────
   Josh, 2026-08-02: "Oh and the post photo should have the Bifrost theme around it too"

   🚨 THIS IS THE STATIC RIM, AND THAT IS A MEASURED DECISION, NOT A COMPROMISE.

   The obvious implementation was to reuse `.post-bifrost-wrap` on the photo. It was benched
   first (`_handoff/checkinrig/rimperf.js`, raw numbers in `rimperf.json`), because twelve hours
   ago that exact class was the single biggest performance cost in the entire app — an idle chat
   screen at 11.9 fps — and this request puts a SECOND, NESTED rim inside every post that has a
   photo, on the most-scrolled surface there is. The post CARD already wears one (Post.jsx:603),
   so this doubles the rim count per photo post.

   Measured, headless, 430x932, CPU over a 4s idle window (Performance.getMetrics TaskDuration):

     posts   card rim only    + ANIMATED photo rim    + STATIC photo rim
      12        203 ms            363 ms  (+79%)         199 ms  (-2%)
      25        363 ms            699 ms  (+93%)         380 ms  (+5%)
     120       1549 ms           3071 ms  (+98%)        1547 ms  (-0%)

   **The animated rim DOUBLES the cost of an idle feed. The static rim is free.**

   And the cost is not raster — it is RecalcStyleDuration (320ms -> 600ms at 25 posts, at an
   identical 241 recalc COUNT). That is the registered `@property --iri-angle`: every element
   reading `var(--iri-angle)` is restyled on every tick of the shared animation, on screen or
   not. `steps(60)` cut how OFTEN that happens; it did nothing to the per-element cost, so
   doubling the elements doubles the bill. Note the rim count ON SCREEN was only 2 -> 4 while
   MOUNTED went 120 -> 240 and CPU went 1549 -> 3071: the price is paid for rims nobody can see.
   That is the same mechanism as the chat sheet repainting rainbows behind itself, re-confirmed.

   Frame rate stayed at 60 in every configuration, so on a desktop this is invisible. It is not
   invisible on a phone: 1.5 extra seconds of CPU per 4 seconds of a feed sitting still is
   battery and heat, and "performance and battery are review criteria" is a written store rule.

   ⚠️ IF ANYONE MAKES THIS ANIMATE, RE-RUN THE BENCH FIRST. `animation: iri-spin` is one line
   away and it is a 2x regression on the feed.

   The palette and geometry are `.post-bifrost-wrap`'s, so the two read as one family; the fixed
   `from 210deg` matches the trivia promo card's baked starting orientation, i.e. the angle the
   house already treats as its "resting" one. */
.photo-bifrost-rim {
    background: conic-gradient(
        from 210deg,
        rgba(var(--bif-1), 0.55),
        rgba(var(--bif-2), 0.50),
        rgba(var(--bif-3), 0.45),
        rgba(var(--bif-4), 0.40),
        rgba(var(--bif-5), 0.45),
        rgba(var(--bif-6), 0.50),
        rgba(var(--bif-7), 0.55),
        rgba(var(--bif-1), 0.55)
    );
    border-radius: 10px;
    padding: 1.5px;
    /* Softer than the card's halo on purpose: the photo sits INSIDE a card that already
       radiates, and two full-strength glows 3px apart just read as a smudge. */
    box-shadow:
        0 0 12px rgba(var(--bif-halo-1), 0.13),
        0 0 26px rgba(var(--bif-halo-2), 0.07);
    /* The rim is a padding band; without this a fractional layout width can let a hairline of
       gradient show through the photo's own corner radius. */
    overflow: hidden;
    line-height: 0;
}
/* The photo keeps its own radius, 1.5px tighter so the band is even all the way round. */
.photo-bifrost-rim > * {
    border-radius: 8.5px;
    display: block;
    width: 100%;
}

/* ══════════════════════════════════════════════════════════════════════════════════════════
   POST COMPOSER — MOCKUP A ("console").  Task #170, Josh 2026-08-03: "def mockup A for post
   creator."   APPEND-ONLY BLOCK — nothing above this line is modified.

   Only ONE rule lives here, and it is here rather than in the JSX for a specific reason:
   `dist/tailwind.css` is NOT tracked by git and is stale, and Tailwind is JIT — an arbitrary
   value like `shadow-[0_4px_14px_rgba(235,177,41,0.28)]` that has never been built is simply
   ABSENT from the stylesheet. Production rebuilds on deploy so it would eventually appear
   there, but every screenshot taken against the checked-in dist would understate the design,
   and a reviewer would be judging a button nobody will ever see. Round 2 lost an afternoon to
   exactly this: `w-[22px]` painted a 4px dot and read as a design mistake, not a stale
   stylesheet. A plain class cannot be JIT-purged and renders identically everywhere.
   ══════════════════════════════════════════════════════════════════════════════════════════ */

/* Mockup A's Post button: a GOLD pill casting a GOLD glow. Tailwind's `shadow-lg` is a black
   drop shadow, which under a saturated gold pill reads as dirt rather than lift. */
.composer-post-btn {
    box-shadow: 0 4px 14px rgba(235, 177, 41, 0.28);
}

/* A disabled Post button is zinc-600. A gold halo around a grey, non-tappable control is a
   false affordance — it says "press me" about the one state that refuses. */
.composer-post-btn:disabled {
    box-shadow: none;
}

/* ══════════════════════════════════════════════════════════════════════════════════════════
   COMPOSER LAYOUT — the two bugs Josh found in Chrome on 2026-08-04 (task #170).
   Josh: "search goes up off the screen and gets cut off? Plus the layout buttons look so big
   they pushed 'Post' button to the next line... i dont like that it should all fit on one line.
   Worst case, maybe when a user taps it expands the box and fades away the avatar to give more
   space to create the post? idk, just spitballing..."

   THE CAUSE OF THE WRAP, MEASURED, BECAUSE IT IS NOT WHAT IT LOOKS LIKE.
   `#root` above is capped at `max-width: 420px` on EVERY desktop (see :74-92). The three action
   row labels were gated on Tailwind's `hidden sm:inline`, and `sm:` is `@media (min-width:640px)`
   — a VIEWPORT query. So on a desktop the viewport sails past 640px and the labels switch on
   inside a column that is still 326px wide. Measured with the real component: the row needs
   410.2px and has 326px. THE BREAKPOINT WAS MEASURING THE WRONG BOX. That is also why the bug is
   invisible on a phone and why a 430x932 rig could never have caught it.
   ══════════════════════════════════════════════════════════════════════════════════════════ */

/* 1 ── THE ROW CAN NEVER WRAP. This is the hard guarantee Josh asked for, and it does not depend
   on any of the sizing below being right: with `nowrap`, `Post` cannot be pushed to a second line
   whatever happens to the tools beside it. `min-width:0` + `overflow:hidden` on the tool group is
   the escape valve — if the row is ever over-filled again the TOOLS clip, they do not shove the
   submit button off the line. `flex:0 0 auto` on Post means it is never the thing that shrinks. */
.composer-action-row {
    flex-wrap: nowrap;
}
.composer-action-row > .composer-post-btn {
    flex: 0 0 auto;
}
.composer-action-tools {
    min-width: 0;
    overflow: hidden;
    /* Replaces `space-x-3` (12px). Measured: 12px gaps + `px-2` on four controls cost 62px the row
       does not have. 2px here plus `.composer-tool`'s padding below buys it back without the
       targets getting smaller than a thumb — each control is still >= 32px wide and 30px tall. */
    gap: 2px;
}
.composer-tool {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    min-width: 0;
    /* The anchor for the held label below. */
    position: relative;
    /* 🚨 iOS ESCALATES A LONG PRESS INTO A SELECTION AND A CALLOUT MENU unless both of these are
       set — and one of these controls is a `<label>`, which is selectable text as far as WebKit is
       concerned. Holding it to read its name must never leave a blue selection or a share sheet
       behind. `touch-action: manipulation` also removes the 300ms double-tap delay, so a real tap
       still feels instant. [[ios-longpress-selection-escalation]] */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
    /* Replaces `space-x-2` (8px) between each icon and its label. It lives here rather than as a
       utility so that every number this row's width depends on is in ONE place and can be reasoned
       about together; `space-x-*` also injects margins on children, which fights `min-width:0`.
       ⚠️ CORRECTION, recorded so nobody repeats it: I first wrote this comment claiming `gap-1.5`
       was ABSENT from the built `dist/tailwind.css` and that the class would silently do nothing.
       THAT WAS FALSE — `.gap-1\.5` IS in the build, and the measured row width is identical either
       way (330.2px). The claim came from a mis-escaped grep, not a measurement. */
    gap: 0.375rem;
}

/* 2 ── THE LABELS ARE GATED ON THE CONTAINER, NOT THE VIEWPORT.
   `@container` asks the box that actually decides — the composer's own column — instead of asking
   the window, which in this app is never the same thing.

   ⚠️ WHY THE CONTAINMENT SITS ON A DEDICATED WRAPPER AND NOT ON THE COLUMN OR THE COMPOSER SHELL.
   `container-type: inline-size` implies `contain: layout`, and layout containment CREATES A
   STACKING CONTEXT — see memory `z-index-stacking-context-trap`. Putting it on the column or the
   shell would have silently trapped the check-in / tag panels' deliberate `z-[80]` lift (added so
   they beat StreamPage's `z-[70]` sort row) inside a new context, re-creating by accident the
   exact bug `3bfa138d24` fixed on purpose. `.composer-row-shell` wraps ONLY the action row, which
   contains nothing that needs to escape it.

   FALLBACK IS SAFE: where `@container` is unsupported (Safari < 16) the rule below never applies,
   the labels stay hidden, and the row is the icons-only row that already fits everywhere. */
.composer-row-shell {
    container-type: inline-size;
    container-name: composerrow;
}
.composer-action-label {
    display: none;
}
@container composerrow (min-width: 356px) {
    .composer-action-label {
        display: inline;
    }
}

/* 2b ── HOLD AN ICON TO SEE ITS NAME. Josh, 2026-08-04, choosing this over labelling the row:
   "I liked just the icons but I get that it's kind vague if you don't know what you're looking
   at…" With the avatar staying (see below) there is no room for four words, so the name is shown
   only while a finger is down on the icon.

   🚨 IT MUST COST ZERO LAYOUT WIDTH — this row is the one that wrapped `Post` onto a second line,
   and a label that took part in layout would re-open exactly that bug. `position: absolute` takes
   it out of flow entirely; the row measures the same with a label up as without one.

   It sits ABOVE the icon, which is safe here in a way the RESULT MENUS were not (see 4 below):
   this is ~24px tall and lands inside the composer card, whereas those were 12rem lists escaping
   the top of the scroll container. Height is the whole difference; do not read this as licence to
   move the menus back up.

   `pointer-events: none` matters — the label appears UNDER the finger that summoned it, and a box
   that swallowed the touch would break the very gesture showing it. */
.composer-tool-tip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 6px;
    padding: 3px 9px;
    border-radius: 8px;
    background: rgba(24, 24, 27, 0.97);
    border: 1px solid rgba(229, 160, 13, 0.45);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
    color: #e5a00d;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    pointer-events: none;
    z-index: 90;            /* above the transient panels' z-[80] lift */
}

/* 3 ── THE AVATAR STAYS PUT. (It used to stand aside while you were writing — Josh's own idea,
   built 2026-08-04 and withdrawn by him the same day once he saw it: "I don't think we need to
   hide the avatar, it should just stay there like it was before I think with everything else
   below.")

   🔴 READ THIS BEFORE WIDENING THE ACTION ROW. The collapse was buying 52px — a 40px avatar plus
   the shell's 12px `gap-3` — which took the writing column from 326px to 378px. The label gate
   above opens at 356px. So with the avatar present the column is 326px, the gate stays shut, and
   the row is ICONS-ONLY BY DESIGN. That is the same rule doing its job with less room, not a
   regression, and it is the look Josh said he preferred. Any future request for permanent text
   labels on that row is a request for ~30px that does not exist unless something else gives it
   back. Deliberately no rule here at all: `.composer-avatar` is a hook for the geometry suite and
   for whatever comes next. `overflow` in particular must never be added — `.donator-avatar-ring`
   wraps the avatar in a 2.5px conic-gradient ring, and clipping this box would shave it. */

/* 4 ── THE RESULT MENUS OPEN DOWNWARD, IN FLOW, UNDER THE FIELD YOU ARE TYPING IN.
   They were `absolute bottom-full`: unconditionally upward, no direction choice, no clamp. The
   composer is the FIRST card in the feed, so "up" is into the stream header and then off the top
   of the screen. Measured on the real component, driven by real clicks and keystrokes: the
   check-in list rendered at `contentTop = -35`, i.e. 35px ABOVE the top of the scrollable
   content, where NO amount of scrolling can ever reveal it — and scrolling the feed grew the
   visible loss to 155px while `contentTop` stayed -35. The tag list has the same shape and was
   sitting at +29, one row from the same bug.

   WHY A FIXED DOWNWARD DIRECTION AND NOT A JS FLIP-AND-CLAMP. A positioner would have to measure
   the viewport, the keyboard and every clipping ancestor on scroll and on `visualViewport` resize
   — in a component whose own standing rule is that it never measures the keyboard (see
   `standard-keyboard-setup`, and `PostCreator.jsx`'s own note: StreamPage already grows the feed's
   padding on focusin so the composer can always be scrolled clear). It would also re-render the
   composer on scroll. In flow there is nothing to measure and nothing to get stale: the menu is
   part of the scrolled content, so its top can never be above the content's top and it is always
   reachable. The measured space bears the direction out — with the composer at the top of the
   feed there is 383-719px below the panel and at most 96px above it. */
[data-composer-menu] {
    max-height: 12rem;          /* was `max-h-48`; unchanged, so the list is the same size */
    overflow-y: auto;
    overscroll-behavior: contain;   /* the feed must not start scrolling when the list bottoms out */
}
[data-composer-menu="tag"] {
    max-height: 8rem;           /* was `max-h-32`; unchanged */
}

/* ══════════════════════════════════════════════════════════════════════════════════════════
   COMPOSER — THE HOUSE LANGUAGE PASS.  Task #170.  APPEND-ONLY BLOCK — nothing above this line
   is modified.

   Josh, 2026-08-04, on live screenshots of the composer in POLL mode and TAG mode:
     "And a lot of this still looks like radio buttons too?"
     "Can't we fill this out better? Or lay everything out better?"

   HE DOES NOT MEAN `<input type="radio">` — there is not one in this component. "Radio buttons"
   is his shorthand for A PLAIN GREY WEB FORM, and he used the same words about the profile
   wizard: "there's a lot of radio buttons which really doesn't fit where I wanted this app to be
   at this point." What he was actually looking at was `bg-zinc-900/50 + border-zinc-700` panels
   holding `bg-zinc-800 + border-zinc-600` inputs — five near-identical grey rectangles stacked in
   a card that is otherwise Bifrost.

   AND THE STANDING RULE THAT MAKES THIS A WHOLE-SURFACE JOB, in his words (memory
   `no-radio-buttons-fix-the-whole-surface`): "whenever I'm asking to fix something like this…
   the team needs to be smart enough to look at the whole thing altogether. What does the entire
   [surface] look like? What doesn't match? What can we improve?" So this block covers EVERY
   state of the composer — resting, focused, check-in, tag, watch-group, poll, link preview,
   media preview — not the two he screenshotted.

   ── THE FIVE THINGS THIS BLOCK MUST NOT DO, EACH ONE A BUG SOMEBODY ALREADY PAID FOR ───────
   1. NO `container-type` / `contain` ON ANY COMPOSER SELECTOR EXCEPT `.composer-row-shell`.
      Containment CREATES A STACKING CONTEXT and would trap the check-in / tag panels' deliberate
      `z-[80]` lift, re-creating `3bfa138d24` by accident ([[z-index-stacking-context-trap]]).
      `tests/test_composer_layout_geometry.js` C6b asserts this and it must keep passing.
   2. NOTHING HERE TOUCHES THE ACTION ROW. `.composer-action-row`, `.composer-action-tools`,
      `.composer-tool`, `.composer-action-label`, `.composer-row-shell`, `.composer-post-btn` and
      `.composer-avatar` are all left exactly as composer-layout shipped them on 2026-08-04. The
      row is ICONS-ONLY BY DESIGN — Josh chose icons + hold-to-reveal — and a restyle that widened
      anything on that line would re-open the `Post`-wraps-to-a-second-line bug.
   3. NO `overflow` ON `.composer-menu`. `[data-composer-menu]` above already sets
      `max-height` + `overflow-y: auto`, and the two selectors have IDENTICAL specificity (0,1,0)
      — so a plain `overflow: hidden` here, being later in the file, would win and silently make
      a long result list unscrollable. The rounded corners are done with `:first-child` /
      `:last-child` radii on the rows instead. This is not a style preference; it is the one
      collision in this file that would have shipped as "the list stops after six results".
   4. NOTHING HERE MEASURES OR CHASES THE KEYBOARD. Not one line. `57b780677f` / `881a54c85f`.
   5. NO CHANGE TO A MENTION'S ADVANCE WIDTH. `react-mentions` paints what you SEE in a
      highlighter div and owns the CARET in an invisible textarea stacked on top of it, so bold,
      horizontal padding or a border-WIDTH change desynchronises the two and the caret lands in
      the wrong place. Colour, background and border-RADIUS are free; metrics are not. The poll
      fields' padding is changed on BOTH layers together, in `pollInputStyle`, or not at all —
      and the rig measures the two boxes rather than trusting the style object.

   ── THE MATERIAL, so the next person can extend it without guessing ────────────────────────
   Three surfaces, and everything below is one of them:
     * PANE    — a recessed console panel. Dark glass, a hair of gold warmth in the top-left, one
                 fading gold hairline along its top edge (the same figure the stream header draws
                 under the search bar, so it reads as the same app).
     * FIELD   — a pill you type into. Black inset, invisible at rest, GOLD when focused. It is
                 the same shape as the composer's own body field and the same gold as the Post
                 button, which is the point: one family, three sizes.
     * CHIP    — a pill that carries a person or a group. Never a rectangle, never a form widget.
   Gold is `#e5a00d` / `#ebb129` (the app's Plex gold, see [[futuristic-design-direction]]);
   the watch-group green `#79b05f` is the established token for group identity and is kept.
   ══════════════════════════════════════════════════════════════════════════════════════════ */

/* ── PANE ──────────────────────────────────────────────────────────────────────────────────
   Replaces `bg-zinc-900/50 p-2 rounded-lg border border-zinc-700` on the check-in panel, the tag
   panel and every poll section. Those four were the "identical grey rectangles". */
.composer-pane {
    position: relative;
    padding: 10px 10px 12px;
    border-radius: 14px;
    background:
        radial-gradient(120% 120% at 0% 0%, rgba(229, 160, 13, 0.07), transparent 58%),
        linear-gradient(180deg, rgba(32, 32, 38, 0.92), rgba(9, 9, 12, 0.94));
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        inset 0 -1px 0 rgba(0, 0, 0, 0.45),
        0 8px 24px rgba(0, 0, 0, 0.40);
}
/* The gold hairline along the top edge. Deliberately the SAME figure `#stream-header` draws under
   the search bar — a horizontal gradient that fades out at both ends — because the composer sits
   directly beneath it and two different accent treatments 60px apart is what "doesn't match"
   looks like. `pointer-events:none` because it lies over the panel's own padding. */
.composer-pane::before {
    content: '';
    position: absolute;
    top: 0;
    left: 14px;
    right: 14px;
    height: 1px;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(to right, transparent, rgba(229, 160, 13, 0.55), transparent);
}

/* Each pane now SAYS WHAT IT IS. This is the direct answer to "lay everything out better": the
   old panels opened with an unlabelled grey input and you were expected to remember which button
   you had pressed. Small caps, wide tracking, gold — the same eyebrow treatment the champion card
   and the trivia promo use. */
.composer-pane-title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(235, 177, 41, 0.78);
}
.composer-pane-title > svg {
    width: 0.85rem;
    height: 0.85rem;
    flex-shrink: 0;
}

/* A quiet explanatory line inside a pane — the empty state of the tag panel, "Searching…", and
   the poll builder's hint. An empty panel that says nothing is the other half of "dead space". */
.composer-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 4px 2px;
    font-size: 0.6875rem;
    line-height: 1.35;
    color: #71717a;
}

/* ── FIELD ─────────────────────────────────────────────────────────────────────────────────
   Replaces `bg-zinc-800 p-2 rounded border border-zinc-600 focus:border-yellow-500` on both
   search inputs. Same black-inset material as the composer's own body field (see the
   `shadow-[inset…]` on the text field in PostCreator.jsx), so the thing you type a search into
   and the thing you type a post into are visibly the same object at two sizes. */
.composer-field {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 0 18px rgba(0, 0, 0, 0.55);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
/* `:focus-within`, not `:focus`, because the focusable thing is the bare <input> INSIDE the pill
   and the ring belongs to the pill. */
.composer-field:focus-within {
    border-color: rgba(229, 160, 13, 0.55);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 0 3px rgba(229, 160, 13, 0.12),
        0 0 18px rgba(229, 160, 13, 0.16);
}
.composer-field > svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    color: rgba(229, 160, 13, 0.65);
    transition: color 0.18s ease;
}
.composer-field:focus-within > svg {
    color: #e5a00d;
}
/* The input itself carries no chrome at all — the pill IS the control. */
.composer-field-input {
    flex: 1 1 auto;
    min-width: 0;
    background: transparent;
    border: 0;
    outline: none;
    padding: 0;
    color: #ffffff;
    font-size: 0.875rem;
    line-height: 1.4;
}
.composer-field-input::placeholder {
    color: #71717a;
}

/* ── MENU ──────────────────────────────────────────────────────────────────────────────────
   The two result lists. `[data-composer-menu]`'s max-height / overflow-y stay where they are —
   see constraint 3 in the header: NOTHING here may set `overflow`. */
.composer-menu {
    border-radius: 12px;
    background: rgba(9, 9, 12, 0.97);
    border: 1px solid rgba(229, 160, 13, 0.22);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
}
.composer-menu-row {
    display: flex;
    gap: 12px;
    padding: 8px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.15s ease;
}
.composer-menu-row:hover {
    background-color: rgba(229, 160, 13, 0.10);
}
.composer-menu-row:last-child {
    border-bottom: 0;
}
/* The corner radii live on the ROWS rather than on a clipping parent, precisely because the
   parent may not clip (constraint 3). */
.composer-menu-row:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}
.composer-menu-row:last-child {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* ── CHIP ──────────────────────────────────────────────────────────────────────────────────
   The tagged-people row. It was `bg-zinc-700 border border-zinc-600` — a grey capsule with a
   name in it. Now it carries the person's FACE, which is both the house language (full names and
   avatars everywhere) and a real usability gain: at 12px, "Brittany Allwein" and "Brittany
   Allwein" are the same word twice, and the avatar is what tells them apart. */
.composer-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 4px 3px 3px;
    border-radius: 9999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    max-width: 100%;
}
.composer-chip-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* The remove control. 18px is above the 44px-target guidance only because it sits inside a chip
   that is itself the target's padding — the whole chip is 26px tall and the X has 6px of chip
   around it on three sides. It is also the ONLY destructive control in the composer, so it goes
   red on contact rather than announcing itself in red at rest. */
.composer-chip-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.08);
    color: #d4d4d8;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.composer-chip-x:hover {
    background: rgba(239, 68, 68, 0.85);
    color: #ffffff;
}
/* The watch-group chip. GREEN IS THE GROUP TOKEN — `#79b05f` is what the app already uses for a
   watch group everywhere else, and this is the one place in the composer that is not gold, on
   purpose: it is the only chip that stands for a set of people rather than a person. */
.composer-chip-wg {
    padding-left: 10px;
    background: linear-gradient(180deg, rgba(121, 176, 95, 0.24), rgba(121, 176, 95, 0.10));
    border-color: rgba(121, 176, 95, 0.45);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        0 0 14px rgba(121, 176, 95, 0.16);
    color: #b9e39c;
    font-weight: 700;
}

/* ── THE WATCH-GROUP CONTROL inside the tag panel ──────────────────────────────────────────
   Josh, 2026-08-02: "I don't like the wording 'whole' watch group. I think it should just say Tag
   a Watch Group." The copy was fixed then; the CONTROL was still a flat outlined slab. It is now
   the same pill family as everything else, in the group's own green.

   ⚠️ IT MUST STAY COMPATIBLE WITH `.wg-picked` (round 2, ~line 1019). That class paints a warm
   fill in `::before` (z-index 1), a spinning Bifrost rim in `::after` (z-index 3), and lifts
   `> *` to z-index 2. So this rule sets only the element's OWN background, border and colour —
   never `position`, never a `z-index`, never a pseudo-element — and the picked state is expressed
   as `.composer-wg-btn.wg-picked` so it wins on specificity without touching the rim. */
.composer-wg-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 8px 14px;
    border-radius: 9999px;
    background: linear-gradient(180deg, rgba(121, 176, 95, 0.16), rgba(121, 176, 95, 0.07));
    border: 1px solid rgba(121, 176, 95, 0.40);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
    color: #8fc473;
    font-size: 0.75rem;
    font-weight: 700;
    transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.composer-wg-btn:hover {
    border-color: rgba(121, 176, 95, 0.65);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 0 16px rgba(121, 176, 95, 0.18);
}
.composer-wg-btn.wg-picked {
    background: linear-gradient(180deg, rgba(121, 176, 95, 0.22), rgba(121, 176, 95, 0.10));
    border-color: transparent;   /* the Bifrost rim IS the border once it is picked */
    color: #c3e8a8;
}
.composer-wg-btn > svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

/* ── POLL BUILDER ──────────────────────────────────────────────────────────────────────────
   This is the screen Josh screenshotted. It was: a grey card, a bare gold text input, two
   identical grey option rectangles, a grey "Add Option" text link, a gold-outlined square "Add
   New Section", and a toggle. Six controls, five materials, no hierarchy. */

/* The section's own title. A bottom rule that LIGHTS UP rather than a bordered box — the title
   of a section is a heading, and a heading in a box reads as another field to fill in. */
.composer-poll-head {
    width: 100%;
    padding: 2px 0 5px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    outline: none;
    color: #ebb129;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: border-color 0.18s ease;
}
.composer-poll-head::placeholder {
    color: #52525b;
    font-weight: 600;
}
.composer-poll-head:focus {
    border-bottom-color: rgba(229, 160, 13, 0.6);
}

.composer-opt-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
/* 🚨 THE NUMBER IS A ROUNDED SQUARE, NOT A CIRCLE, AND THAT IS THE WHOLE POINT.
   The complaint being answered here is literally "this still looks like radio buttons". A small
   CIRCLE beside each option — however pretty — is the exact silhouette he is rejecting, and round
   2 already learned the harder version of this lesson on the watch-group picker: "a ring that
   gains a blob is the exact shape Josh rejected, whatever the blob is." A numbered key-cap is
   unambiguous: it labels the row, it is never selectable, and nothing about it invites a tap. */
.composer-opt-num {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(229, 160, 13, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
    color: rgba(235, 177, 41, 0.85);
    font-size: 0.625rem;
    font-weight: 800;
    line-height: 1;
}

/* A small square icon button — the two trash controls. They were bare glyphs floating in the
   layout with nothing to sit in. */
.composer-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #71717a;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.composer-icon-btn:hover {
    background: rgba(239, 68, 68, 0.16);
    border-color: rgba(239, 68, 68, 0.45);
    color: #f87171;
}

/* "Add Option". A DASHED ghost pill: dashed says "there is a gap here you can fill", which is
   exactly what the control does, and it is visibly subordinate to every solid control near it. */
.composer-ghost-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.16);
    color: #a1a1aa;
    font-size: 0.6875rem;
    font-weight: 700;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.composer-ghost-btn:hover {
    background: rgba(229, 160, 13, 0.08);
    border-color: rgba(229, 160, 13, 0.45);
    color: #ebb129;
}
.composer-ghost-btn > svg {
    width: 0.875rem;
    height: 0.875rem;
    flex-shrink: 0;
}

/* "Add New Section". Gold, but OUTLINED AND TINTED — never filled.
   ⚠️ DELIBERATE, AND THE CONSTRAINT IS WRITTEN DOWN: the composer has exactly ONE filled gold
   control, `Post`. This button was already gold before today (`text-yellow-500 bg-yellow-500/10
   border-yellow-500/30`), so keeping it gold preserves the existing hierarchy rather than adding
   a second primary — but it must stay a rank below Post, and filling it would make the poll
   builder look like it has two submit buttons. */
.composer-accent-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 9999px;
    background: linear-gradient(180deg, rgba(229, 160, 13, 0.18), rgba(229, 160, 13, 0.07));
    border: 1px solid rgba(229, 160, 13, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
    color: #f0c04d;
    font-size: 0.6875rem;
    font-weight: 800;
    transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.composer-accent-btn:hover {
    background: linear-gradient(180deg, rgba(229, 160, 13, 0.28), rgba(229, 160, 13, 0.12));
    border-color: rgba(229, 160, 13, 0.65);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 16px rgba(229, 160, 13, 0.18);
}
.composer-accent-btn > svg {
    width: 0.875rem;
    height: 0.875rem;
    flex-shrink: 0;
}

/* The "allow others to add options" switch. It was already a custom toggle rather than a
   checkbox, so this is material only: a recessed track that fills with the app's gold and gains a
   halo when it is on, so at a glance you can tell the state from across the card. The hidden
   `<input class="sr-only">` still owns focus and keyboard operation — that is not changed. */
.composer-switch-track {
    display: block;
    width: 36px;
    height: 20px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.09);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
    transition: background 0.22s ease, box-shadow 0.22s ease;
}
.composer-switch-track.is-on {
    background: linear-gradient(180deg, #f0c04d, #e5a00d);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 0 14px rgba(229, 160, 13, 0.35);
}
.composer-switch-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    border-radius: 9999px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.composer-switch-knob.is-on {
    transform: translateX(16px);
}

/* ── PREVIEWS ──────────────────────────────────────────────────────────────────────────────
   The link-preview card's frame and the two "remove this" buttons. The X was a zinc circle on a
   zinc card; it is now the same dark-glass-with-a-gold-hairline as everything else, and it turns
   red only when you are actually on it. */
/* 🔴 DELIBERATELY BORDERLESS, and this was CORRECTED AFTER LOOKING AT THE RENDER.
   My first version gave this a gold border and a fill. `LinkPreview.jsx` already draws its own
   gold-hairline card (`border: 1px solid rgba(229,160,13,0.35)` on the portrait layout), so the
   composer showed TWO concentric gold frames 2px apart — see
   `_handoff/comphouse/AFTER--phone-430--linkpreview.png` before this correction. The wrapper's
   only jobs are to clip the card's corners and to give the X button something to sit against, so
   it now carries a radius and nothing else. The BEFORE version had the same double frame in grey,
   where it was merely dull rather than obviously wrong. */
.composer-preview-frame {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;      /* safe here: this element has no [data-composer-menu] rule on it */
}
.composer-x-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 9999px;
    background: rgba(12, 12, 15, 0.95);
    border: 1px solid rgba(229, 160, 13, 0.35);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
    color: #ffffff;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.composer-x-btn:hover {
    background: rgba(220, 38, 38, 0.92);
    border-color: rgba(248, 113, 113, 0.8);
}

/* Reduced motion: every transition above is decorative — the STATE is always carried by colour
   and shape as well, never by the movement — so they can all simply stop. The switch knob is the
   one that matters: it still ends up in the right place, it just gets there instantly. */
@media (prefers-reduced-motion: reduce) {
    .composer-field,
    .composer-wg-btn,
    .composer-menu-row,
    .composer-chip-x,
    .composer-icon-btn,
    .composer-ghost-btn,
    .composer-accent-btn,
    .composer-switch-track,
    .composer-switch-knob,
    .composer-x-btn,
    .composer-poll-head {
        transition: none;
    }
}

/* ══════════════════════════════════════════════════════════════════════════════════════════
   🔴 THE ACTION ROW IS ICONS-ONLY AGAIN — a REGRESSION FOUND BY RENDERING, 2026-08-05.
   One declaration. Delete this rule and the labels come back.

   WHAT I FOUND. Josh, 2026-08-04, on the composer:
     "I also think it's weird that the icons, 3 of them have text and one doesn't."
   The answer he chose was ICONS PLUS HOLD-TO-REVEAL, not labels — it is written into
   01-PRODUCT-RULES.md ("So the action row is icons-only, by design") and into the hold-to-reveal
   comment in PostCreator.jsx ("Josh chose this, 2026-08-04, over labelling the row").
   ON THE LIVE TREE TODAY THE LABELS ARE ON, and the camera is still the one with no word beside
   it. His exact complaint is back on the screen. Photographed at 430x932:
   _handoff/comphouse/BEFORE--phone-430--row.png

   WHY IT CAME BACK, AND IT IS NOBODY'S MISTAKE. The gate above is
   "@container composerrow (min-width: 356px)", and the arithmetic it was set against is written
   in the block above this one: "with the avatar present the column is 326px, the gate stays shut,
   and the row is ICONS-ONLY BY DESIGN." That was true while the avatar owned a 52px gutter down
   the WHOLE card. Then 015ff64d94 — correctly, and at Josh's own request — moved the avatar onto
   row one only, so every block beneath it became full width. THE ACTION ROW WENT FROM 326px TO
   388px ON A 430px PHONE and sailed straight past the 356px gate. Two changes, each right on its
   own, and the design decision between them fell over silently. The comment above now describes a
   column width that no longer exists; it is left exactly as it is because it explains the gate's
   ORIGIN, and this rule explains its PRESENT.

   ⚠️ THE HOLD-TO-REVEAL FEATURE ONLY MAKES SENSE WITH THIS RULE. Holding an icon to be told its
   name is redundant while the name is printed beside it — so without this line the app carries two
   answers to one question, and the more awkward one is the one on screen.

   ⚠️ THE 356px GATE ITSELF IS LEFT ALONE ON PURPOSE. It lives inside another department's shipped
   block and this file is APPEND-ONLY for me. A later unconditional rule of equal specificity
   simply wins, which is also why reverting this is a one-line delete rather than a hunt.

   ⚠️ IF JOSH WANTS THE LABELS: delete this rule. Both pictures are rendered side by side in
   _handoff/comphouse/COMPARE.html so he can choose from images rather than from this paragraph.
   ══════════════════════════════════════════════════════════════════════════════════════════ */
.composer-action-label {
    display: none;
}

/* ══════════════════════════════════════════════════════════════════════════════════════════
   @-TAGGING SUGGESTION LIST — THE ROW, AND WHERE THE LIST IS ALLOWED TO GO
   event-tagging, 2026-08-05. APPENDED. Nothing above this line was touched.

   Josh: "Event page comment section is still not fixed for tagging system".

   Two blocks, two different jobs.

   1. `.mention-row*` — the row itself, imported from `MentionSuggestion.jsx` by every surface
      that offers tagging. Hand-written rather than Tailwind utilities on purpose: these class
      names are brand new, `dist/tailwind.css` is generated at deploy from a content glob, and a
      utility that has never existed before is exactly what renders in a rig and arrives naked
      somewhere else.
      ⚠️ The `<li>` that react-mentions draws already owns the row's BACKGROUND, its
      BORDER-BOTTOM and its focused tint (`mentionStyle.js`, `suggestions.item`). This row must
      not restate any of them or every divider doubles to 2px.
      ⚠️ NO FONT-WEIGHT ABOVE 400 ANYWHERE IN HERE. The matched substring is picked out in gold
      (`suggestions.item.highlight`), never in bold — colour is free, weight is not.

   2. `[data-docked-mentions]` — placement, opt-in, one attribute per input.
      WHAT IT FIXES: react-mentions positions the list at the CARET's x and y. On a comment bar
      welded to the bottom of the screen that means a narrow box floating at whatever column you
      happened to type in, with `top` computed from a height measured a frame earlier. Anchoring
      to the FIELD instead (`bottom: 100%`) makes the list the width of the writing column and
      puts it directly on top of the bar, every time, for every caret position.
      WHY OPT-IN AND NOT A BLANKET RULE: `bottom: 100%` means "always upward", which is only
      right for an input pinned to the bottom of the screen. `Post.jsx`'s edit-in-place box sits
      mid-feed and correctly uses `allowSuggestionsAboveCursor` to choose a direction; forcing it
      upward there would push the list off the top — the exact bug Josh reported on the composer's
      search menu. So the attribute goes ON A DOCKED BAR ONLY.
      `!important` is required and is not laziness: react-mentions writes `top` as an INLINE
      style, and an inline style outranks any class rule without it.
      THE BOUND: `min(250px, 40dvh)` is the clamp. `dvh` tracks the dynamic viewport, so on a
      short screen the list shrinks and scrolls instead of running off the top edge. It is a
      belt to the brace of `bottom: 100%`, which already cannot produce a negative offset.
   ══════════════════════════════════════════════════════════════════════════════════════════ */
.mention-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    min-width: 0;
}
.mention-row-avatar {
    width: 24px;
    height: 24px;
    border-radius: 9999px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.mention-row-poster {
    width: 24px;
    height: 36px;
    border-radius: 2px;
    object-fit: cover;
    flex-shrink: 0;
}
.mention-row-name {
    font-size: 0.875rem;
    font-weight: 400;
    color: inherit;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mention-row-name-media {
    font-size: 0.8125rem;
}

[data-docked-mentions] .comment-mentions__suggestions {
    top: auto !important;
    bottom: 100% !important;
    left: 0 !important;
    right: 0 !important;
    max-height: min(250px, 40dvh);
    overflow-y: auto;
}

/* =====================================================================================
   ⭕ SEEN RING — BIFROST TONE  (discover-polish, 2026-08-05)   APPEND-ONLY BLOCK
   -------------------------------------------------------------------------------------
   Josh: "It would also be really cool if we could do the biFrost effect outside ring to all
   the history items on Discover page… You guys can do whatever you need to do to make it run
   smooth since I know you said sometimes the bifrost theme can be a bit taxing."

   Rendered by <SeenRing tone="bifrost"> (components/Shared.jsx).

   ⚡ WHY THIS IS CHEAP, AND WHY IT IS A CLASS RATHER THAN AN INLINE STYLE
   It rides the SHARED `iri-spin` @keyframes declared at style.css:283. That block carries the
   2026-08-01 `steps(60)` fix (28.4 -> 147.6 fps, 5.2x, measured — _handoff/chat-fx-performance.md),
   so these rings repaint 6x a second, not 60, and any future change to that one block reaches
   them too. Declaring the animation inline here would have quietly opted out of all of it.

   The cost of a conic gradient is its RASTERISED AREA. The rim that pinned an idle chat screen
   to 11.9 fps was full-screen (~3.0 Mpx). Ten 56px rings are ~0.031 Mpx — about 1% of it — and
   only the ~6 that fit the 345px rail are ever on screen; the rest sit in the horizontal
   overflow and are not rastered at all. Measured cost is in the department log.

   ⚠️ DO NOT give this element `contain:` or `container-type: inline-size`. Both create a
   STACKING CONTEXT, and the rail's jiggle-mode delete button (z-30) sits above a sibling at
   z-20 — trapping that lift is a bug this codebase has already paid for.
   ===================================================================================== */
.seen-ring-bifrost {
    animation: iri-spin 10s linear infinite;
    background: conic-gradient(
        from var(--iri-angle),
        rgba(var(--bif-1), 0.95),
        rgba(var(--bif-2), 0.92),
        rgba(var(--bif-3), 0.90),
        rgba(var(--bif-4), 0.88),
        rgba(var(--bif-5), 0.90),
        rgba(var(--bif-6), 0.92),
        rgba(var(--bif-7), 0.95),
        rgba(var(--bif-1), 0.95)
    );
    /* A whisper of halo so the ring reads as lit rather than drawn. Kept small deliberately:
       a large blurred shadow on N rings is N large blurred layers. */
    box-shadow:
        0 0 6px rgba(var(--bif-halo-1), 0.20),
        0 0 14px rgba(var(--bif-halo-2), 0.10);
}

/* ⚡ PAUSED BY DEFAULT. ARMED ONLY WHEN VISIBLE.
   MEASURED (dlab, isolated rail, round-robined configs, control bracket 160.2/160.0/160.1/160.2):
     10 rings animating  143.2 ms/s main thread   0.894 ms/frame
     30 rings animating  335.6 ms/s              2.100 ms/frame   <- SAME 6 rings on screen
     paused / static / no-ring-at-all   ~20 ms/s  ~0.125 ms/frame  <- the floor
   Cost scales with rings in the DOM, NOT with rings on screen: Chrome keeps repainting the ones
   parked in the rail's horizontal overflow. `recently-played` is not length-capped, so this
   default is what stops a heavy watcher paying a 2.1 ms/frame idle tax on the top of the page.

   `.seen-ring-armed` is added by an IntersectionObserver in DiscoverPage's RecentlyPlayedBar.
   THE DEFAULT IS THE CHEAP ONE ON PURPOSE — if that effect never runs, the rail degrades to a
   static ring, never to the expensive state.

   `animation-play-state`, not `animation: none`: pausing freezes the timeline, so a ring that
   scrolls back into view RESUMES rather than jumping to a different hue. */
.seen-ring-bifrost:not(.seen-ring-armed) {
    animation-play-state: paused;
}

/* ⭕🟡 THE GOLD RING TRAVELS. Josh, 2026-09-10: "animated and actually go around it like the Bifrost does
   with everything else… without losing the current colors." Same RING_GOLD conic gradient (inline, from
   Shared.jsx), painted once on this layer; the LAYER rotates — a composited transform, no gradient repaint
   per frame (the story bar has a dozen of these on screen at once). */
.seen-ring-gold-layer {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 300%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%) rotate(0deg);
    animation: seen-ring-gold-spin 8s linear infinite;
    will-change: transform;
    pointer-events: none;
    z-index: 0;
}
@keyframes seen-ring-gold-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.seen-ring-paused .seen-ring-gold-layer { animation-play-state: paused; }

/* Host-controlled pause. The rail sets this on itself when the document is hidden, so a
   backgrounded app is not spending battery turning rings nobody can see. One class toggle on
   one ancestor — never a per-element timer. */
.seen-ring-paused .seen-ring-bifrost {
    animation-play-state: paused;
}

/* Accessibility + battery. `--iri-angle` is a registered @property with initial-value 0deg, so
   with the animation off the ring still paints — a static rainbow, not a broken one.
   (chat-fx-performance §7.4 flagged that NO iri-spin selector was in a reduced-motion block.
   This one is.) */
@media (prefers-reduced-motion: reduce) {
    .seen-ring-bifrost {
        animation: none;
    }
    .seen-ring-gold-layer {
        animation: none;
    }
}

/* ── A TEXT FIELD IS ALWAYS SELECTABLE. APPEND-ONLY BLOCK — chat-input, 2026-08-06. ──────────
   Josh: "it's having a problem with the spellchecker with my phone… if I spelt something wrong
   and it has the red line underneath it and I tap it and it's supposed to give me the right
   spelling of the words nothing's happening when I tap it."

   `.plx-hold-noselect` (above, :955) is applied to <html> while a finger is down in a messages
   list, and its selector is `.plx-hold-noselect *` with `!important` — so for the duration of
   that touch, EVERY element on the page is unselectable and has no touch callout, including the
   composer you are about to type in.

   That would be harmless if it always came off. It does not always come off. ChatView adds it on
   the scroll container's `onTouchStart` and removes it on `onTouchEnd`, through React's
   ROOT-DELEGATED event system — so if the touched node leaves the DOM before the finger lifts,
   and the message poll swaps that list routinely, the touchend is dispatched into a detached tree,
   never reaches the root, and the class stays on. MEASURED in the chat rig: touch down → class on;
   detach the node; touch up → class STILL ON, and the composer's <textarea> then computes
   `user-select: none`.

   On iOS `user-select: none` and `-webkit-touch-callout: none` are the same machinery as tap-to-
   place-the-caret, the magnifier, the selection handles and the callout/edit menu — and the
   spelling suggestions live in that menu. A field you cannot select is a field whose misspelling
   you cannot tap.

   So: text-entry elements are carved out of the hold, unconditionally. Nothing else is weakened —
   bubbles, avatars and the rest still go unselectable on a long-press, which is the behaviour that
   rule exists to produce. Scoped to `.plx-hold-noselect` deliberately: this does NOT reach into
   any surface that has its own reason to make an input unselectable. */
.plx-hold-noselect textarea,
.plx-hold-noselect input,
.plx-hold-noselect [contenteditable="true"] {
    -webkit-user-select: text !important;
    user-select: text !important;
    -webkit-touch-callout: default !important;
}

/* ⌨️ RULE 2, EVERYWHERE — A TEXT FIELD IS ALWAYS NATIVE. 2026-09-23.
   Josh: *"I can't tap a word that's spelled wrong to open auto correct options, I can't hold and
   drag the cursor around… It's happening everywhere."*

   The carve-out above only fires while `.plx-hold-noselect` is on. Every OTHER way a field can
   inherit "not selectable" was still open, and one was live: a comment's EDIT box
   (Comment.jsx) is rendered INSIDE its bubble, and the bubble carries Tailwind `select-none` so a
   long-press does not paint the page blue — so the box you type your correction into computed
   `user-select: none`. `user-select` resolves through the ancestors (an `auto` under a `none` is
   a `none`), so any future `select-none` wrapper would do the same to whatever field it holds.
   This is Rule 2 of 01-PRODUCT-RULES ("a `user-select: none` may never reach an <input>, a
   <textarea> or a contenteditable") made structural instead of per-surface.

   TWO HALVES:
   1. SELECTION. Every text-entry element states `user-select: text` and the default callout
      itself, so no ancestor can take the caret, the magnifier, the handles or the spelling menu
      away from it. Buttons, checkboxes and ranges are deliberately NOT in the list.
   2. TOUCH-ACTION. `body` has carried `touch-action: none` since the first commit. WebKit
      resolves a descendant's touch behaviour as the INTERSECTION of every `touch-action` between
      it and its nearest SCROLL CONTAINER (overflow auto/scroll), and a `none` anywhere in that
      run wins. Measured in the live app (staging, real bundle): the DM/club composer, the event
      chat composer and the event page's comment bar have NO scroll container between the field
      and <body> — `main` is `overflow: hidden` on those routes and react-mentions pins its
      textarea to `overflow: hidden` — so on iOS every one of those fields sat in a
      `touch-action: none` region. The stream's comment boxes live inside a scroller and never did,
      which is the "fine in one place, broken in another" shape.
      `overflow-x: auto` makes the FIELD ITSELF the nearest scroll container, which resets its
      touch behaviour to the platform default. It has nothing to scroll: a textarea soft-wraps, so
      its content is never wider than it is, and the vertical axis is untouched (react-mentions'
      `overflow-y: hidden` and every autosize stay exactly as they were).
      ⚠️ Single-line <input>s (and contenteditables, of which the app has none today) are NOT
         given the overflow half: WebKit lays an input's text out in its own inner box, and on a
         contenteditable `overflow-x: auto` would turn a `visible` y-axis into `auto`. I cannot
         verify either without the phone. They get the selection half.
   ⚠️ NOT VERIFIABLE IN THE RIG: Blink ignores both `-webkit-touch-callout` and, for this purpose,
      the effective touch-action. [[headless-chrome-hides-webkit-bugs]]
   Held by tests/test_text_fields_are_native.js. */
textarea,
input:not([type]),
input[type="text"],
input[type="search"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="password"],
input[type="number"],
[contenteditable=""],
[contenteditable="true"],
[contenteditable="plaintext-only"] {
    -webkit-user-select: text !important;
    user-select: text !important;
    -webkit-touch-callout: default !important;
}
textarea {
    overflow-x: auto !important;
}

/* ══════════════════════════════════════════════════════════════════════════════════════════════
   THE APP SHELL'S WIDTH, AS A TOKEN — and the one primitive that keeps a `position: fixed`
   element inside it. APPEND-ONLY BLOCK — desktop-containment, 2026-08-07.

   Josh, 2026-08-07, with a desktop browser screenshot:
   > "if i open the site on a browser theres a ton of stuff thats not being contained to the
   > mobile layout including the splash screen"

   ── THE MECHANISM, MEASURED, NOT ASSUMED ───────────────────────────────────────────────────
   `#root` (:74-92) is the app. It is `max-width: 420px` and `html` centres it, so on a 1440px
   monitor the app occupies x=510..930. `#root` is `position: relative`, which contains ABSOLUTE
   descendants — but NOT fixed ones. A `position: fixed` element takes its offsets from the
   initial containing block, i.e. THE BROWSER WINDOW. On a phone the window and the app are the
   same box, which is precisely why this class of bug is invisible in every phone test and
   glaring the moment anyone opens a laptop or an iPad.

   Measured live on staging at 1440px (WebKit, `_handoff/bblink/dc-audit.mjs`): the splash screen
   rendered 1440px wide at x=0 while `#root` was 420px wide at x=510, and `SidePanel`'s drawer sat
   at x=1440 — 930px to the right of the app it belongs to.

   ── WHY THIS AND NOT THE ONE-LINE TRICK ────────────────────────────────────────────────────
   The tempting fix is `transform: translateZ(0)` (or `container-type`, or `contain: layout`) on
   `#root`, because any of those makes it a containing block for fixed descendants and captures
   every offender at once. It is REJECTED, for two reasons that are worth more than the brevity:

     1. `<div id="modal-root">` is a SIBLING of `#root` (templates/index.html:91-92) and a large
        share of this app's overlays are React portals into it. An ancestor trick on `#root`
        cannot reach a single one of them, so it would look like a class fix and be half of one.
     2. All three of those properties create a STACKING CONTEXT. The composer block at :1249-1255
        already records what that costs here: it would trap deliberate `z-[80]` lifts and
        re-create by accident the exact bug `3bfa138d24` fixed on purpose. A one-line fix that
        silently re-orders every z-index in the app is not a class fix, it is a class outage.

   ── WHY THE AUTO-MARGIN IDIOM, SPECIFICALLY ────────────────────────────────────────────────
   This is NOT a new mechanism. Four surfaces already hand-rolled it —
   `w-full max-w-[420px] mx-auto left-0 right-0` in `CastList`, `ChatSettingsModal`,
   `GroupChatSettings` and `EditProfileWizard` — and the rig measured it working
   (computed `margin-left: 302px; margin-right: 302px` at 1024px). What was wrong was that the
   420 was copy-pasted four times, and a fifth copy (`EventInvitePopup`) used `max-w-md` = 448px,
   which is WIDER than the shell and therefore still escaped. This block gives that idiom a name
   and ONE source for the number.

   It survives whatever width utility is already on the element, which a `left: <inset>` approach
   would not: `max-width` clamps `w-full` and `w-screen` alike, and CSS 2.1 §10.3.7 then splits
   the leftover space equally between two `auto` margins. No `transform` is used, so elements
   that animate with one (the side panel slides on `translate-x-full`) are unaffected.

   ⚠️ THE 420/480 GAP IS DELIBERATE AND MUST NOT BE "TIDIED" TO `min(100vw, 420px)`.
   `#root` is 100vw up to 480px and 420px above it (:86-92). Between 421px and 480px the shell is
   therefore WIDER than 420. `min(100vw, 420px)` would be wrong across that whole 60px band —
   which includes real foldables and split-screen tablets — so the token below reproduces the
   same two rules rather than re-guessing them.

   ⚠️ `dist/tailwind.css` is linked AFTER this file (see tailwind.config.js and index.html:74-80),
   so a Tailwind utility BEATS these declarations. Converting an offender therefore means removing
   the utility it conflicts with (`max-w-md`, `right-4`, …), not stacking a class on top of it and
   hoping. `tests/test_desktop_containment.js` fails if a converted element keeps one.
   ══════════════════════════════════════════════════════════════════════════════════════════════ */
:root {
    --app-shell-width: 100vw;
}
@media (min-width: 481px) {
    :root {
        --app-shell-width: 420px;
    }
}

/* THE PRIMITIVE. Put this on any `position: fixed` element that belongs to the app rather than to
   the browser, and it will track the column at every viewport width. At phone widths every
   declaration below evaluates to exactly what an uncontained full-bleed element already did —
   `max-width: 100vw` clamps nothing and the auto margins resolve to 0 — so a correct conversion
   is a NO-OP on a phone. That is the property the before/after shots at 430x932 prove. */
.app-shell-fixed {
    left: 0;
    right: 0;
    max-width: var(--app-shell-width);
    margin-left: auto;
    margin-right: auto;
}

/* A BAND, for the things that are pinned to an EDGE rather than stretched across the shell —
   floating action buttons, corner pills. Those cannot simply take `.app-shell-fixed`, because
   `right-4` on a fixed element means "16px from the right of the MONITOR" and stretching the
   button to shell width would be worse than leaving it. The band is shell-wide and invisible; the
   control aligns itself inside it with flexbox and keeps its own padding. `pointer-events` is the
   load-bearing part: a shell-wide transparent band that ate taps would break the whole column. */
.app-shell-band {
    pointer-events: none;
}
.app-shell-band > * {
    pointer-events: auto;
}

/* ── MARQUEE TITLES — a single-line title that reveals itself when it does not fit ──────────── */
/*
   Josh, 2026-08-08, on a link-preview card reading "X-MEN '97 - RISE OF APOCALYP":
     "anyway we can make that text auto scroll over slowly to reveal the entire title?
      i feel like a few app areas could benefit from that too."

   Driven by static/components/MarqueeText.jsx, which decides ON or OFF and supplies two custom
   properties. Nothing here runs unless that component has measured a real overflow AND the title
   is on screen AND the app is in the foreground.

   TRANSFORM ONLY. No layout property is animated, ever. The travel leg is 12%->55% of the cycle
   and MarqueeText solves the duration backwards from that share, so the pace is the same for a
   title that overflows by 20px and one that overflows by 300px.
   ⚠️ MARQUEE_TRAVEL_FRACTION in that file IS these percentages. Move one, move the other.

   IT COMES BACK, it does not loop. The resting state is the START of the title, which is the
   readable default; a seamless loop (what the promo banner does, correctly, for a broadcast strip)
   would park a title mid-word with no clue where its beginning is.

   NO :hover PAUSE — on a touch device a tap registers as hover and would freeze it until the next
   interaction. Same reason the reaction marquee above refuses one. :active IS honoured, so a
   finger held on a title stops it moving under that finger.
*/
@keyframes plx-mq-reveal {
    0%,   12% { transform: translateX(0); }
    55%,  70% { transform: translateX(var(--plx-mq-shift, 0px)); }
    92%, 100% { transform: translateX(0); }
}
/* The clipping box. It owns the overflow and the nowrap; the caller owns colour, size and weight,
   which live on the track below. `min-width:0` so the frame can actually shrink inside a flex row
   instead of pushing its own container wide — the failure that makes "truncate" do nothing. */
.plx-mq-frame {
    /* ONE NUMBER, ONE PLACE. The soft right edge's width. `MarqueeText.jsx` reads the same figure
       to size the travel's tail (MARQUEE_EDGE_FADE_PX), and the suite asserts the two agree by
       reading this custom property off the live computed style — so they cannot drift. */
    --plx-mq-fade: 14px;
    overflow: hidden;
    white-space: nowrap;
    min-width: 0;
}
/* inline-block ALWAYS, in both states. A transform does nothing to a non-replaced inline box, so
   the running state needs inline-block — and switching between the two would relayout the text on
   every scroll-in. Stable box, class-only toggle, zero reflow. */
.plx-mq-track {
    display: inline-block;
    white-space: nowrap;
    max-width: none;
}
/* The "there is more" hint, and the reason this component does not use an ellipsis: an ellipsis is
   `text-overflow`, which cannot reach text inside an inline-block child. A soft edge reads better
   on a card anyway and works over any background, which an ellipsis-plus-fade-strip does not. */
.plx-mq-clip {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - var(--plx-mq-fade)), transparent 100%);
            mask-image: linear-gradient(to right, #000 calc(100% - var(--plx-mq-fade)), transparent 100%);
}
/* 🔴 THE LEFT FADE IS GONE, 2026-08-11, AND IT WAS FOUND BY LOOKING AT THE RENDER — no assertion
   in the suite could see it. `.plx-mq-run` used to override the mask with
   `transparent 0, #000 10px, …`, i.e. a soft LEFT edge as well. But the resting state of this
   component is deliberately THE START OF THE TITLE, and it is where a title spends most of its
   cycle and all of its time before the observer ever fires — so that rule was erasing the FIRST
   CHARACTER of every scrolling title at rest. In the 390px render of Josh's own card the "X" of
   "X-MEN '97" is visibly half gone.

   A soft exit on the left was never worth a faded first glyph. Text now leaves through the frame's
   own `overflow: hidden` edge, which is what every marquee does and reads perfectly well against
   the card. `.plx-mq-clip` is present on every overflowing title anyway, so removing this rule
   leaves exactly the right-hand "there is more" hint and nothing else.

   The only class that costs anything is the one below: `will-change` is there and NOT on
   `.plx-mq-track`, so a title that fits — the overwhelming majority — never gets a compositor
   layer at all. */
.plx-mq-run > .plx-mq-track {
    will-change: transform;
    animation: plx-mq-reveal var(--plx-mq-dur, 12000ms) linear infinite;
}
/* A finger held on the title stops it sliding out from under that finger, so a long-press still
   lands where it was aimed. Nothing else about selection is touched: MarqueeText declares no
   `user-select` and attaches no pointer handler, so it cannot change selection behaviour anywhere
   it is adopted. */
.plx-mq-run:active > .plx-mq-track {
    animation-play-state: paused;
}
/* A member who has asked for less motion gets none. MarqueeText already refuses to apply
   `.plx-mq-run` in that case; this is the second, independent line of defence, so the rule holds
   even if a future caller reaches for the class by hand. */
@media (prefers-reduced-motion: reduce) {
    .plx-mq-run > .plx-mq-track { animation: none; }
}

/* ⌨️💬 THE HOUSE "SOMEONE IS COMPOSING" WAVE — three dots that lift in sequence.
   ------------------------------------------------------------------------------------------
   This is the app's ONE typing indicator. It was declared inside `ChatView.jsx`'s inline
   <style> block, which is the only reason the ParalexBot assistant chat could not use it
   without copy-pasting the keyframes a second time. RULE 3 of the composer ledger
   (`_handoff/01-PRODUCT-RULES.md`, "ONE COMMENT COMPOSER LOOK, AND SIX FILES DRAW IT") is
   exactly about that shape, so the declaration is promoted here instead.

   Values are byte-identical to ChatView's copy — this is a MOVE of the definition, not a new
   look. ChatView's inline copy is deliberately left in place for now (that file is 2,600 lines
   of live chat owned elsewhere); it declares the same rule with the same values, so whichever
   wins the cascade paints the same animation. LEDGER: remove ChatView's inline copy next time
   that file is opened for a real reason.

   Callers: `ChatView.jsx` (DMs/club chat), `ParalexBotPage.jsx` (Server Assistant). */
@keyframes typing-wave {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
    30%           { transform: translateY(-5px); opacity: 1; }
}
.animate-typing-wave { animation: typing-wave 1.4s ease-in-out infinite; }

/* A member who has asked for less motion still gets the indicator — it just stops bouncing.
   The dots keep their resting opacity so "it is working" is still legible without motion. */
@media (prefers-reduced-motion: reduce) {
    .animate-typing-wave { animation: none; opacity: 0.75; }
}

/* 🌈 TYPING BIFROST — variant "A · Iri peak". Josh 2026-09-30: *"it would be cool if the ellipses animation has
   a bifrost thing to the dots when they jump"*; his pick from the sampler (THE SPEC,
   https://claude.ai/artifact/DGTcFB6XpNDoJjgdPfQHTZ): {"variant":"A · Iri peak","jump_px":5,"wave_ms":1400,
   "dot_stagger_ms":180,"bifrost_intensity":0.77,"trail":false}.
   The sampler's per-frame maths, ported to pure CSS (no JS, no per-frame script):
     fill = mix(dot colour, palette(pos), min(1, k * 1.15) * 0.77)
     k    = the dot's lift 0..1 (the SAME keyframes + easing + delay as typing-wave, so it peaks at 30%)
     pos  = spin (7 palette steps per 10s, + 1.1 steps per dot) + sweep (0 -> 2 steps across 0..60% of the wave)
   The mix is a palette overlay (::after) over the dot's own colour at opacity min(1, 1.15k) * .77 — the same
   per-channel lerp. The palette is bifrostFx.js's BIF, laid out 80px a step on a 560px strip; the strip slides so
   the dot's CENTRE sits on palette(pos). No trail, no glow (variants B/C were not picked).
   The intensity .77 lives in ONE place (the ::after opacity); the keyframes only drive k, never an alpha.
   Selector is two classes on purpose: ChatView/EventChatView still carry an inline `.animate-typing-wave` copy
   that comes later in the cascade. Callers take the class from typingStack.js (TYPING_DOT_FX).
   tests/test_typing_row_is_one_unit.js §bif. */
@property --typing-k     { syntax: '<number>'; inherits: true;  initial-value: 0; }
@property --typing-sweep { syntax: '<number>'; inherits: true;  initial-value: 0; }
@property --typing-spin  { syntax: '<number>'; inherits: false; initial-value: 0; }
@keyframes typing-bif-k {
    0%, 60%, 100% { --typing-k: 0; }
    30%           { --typing-k: 1; }
}
@keyframes typing-bif-sweep {
    0%        { --typing-sweep: 0; }
    60%, 100% { --typing-sweep: 2; }
}
@keyframes typing-bif-spin {
    from { --typing-spin: 0; }
    to   { --typing-spin: 7; }
}
.animate-typing-wave.typing-bifrost-dot {
    position: relative;
    animation: typing-wave 1.4s ease-in-out infinite,
               typing-bif-k 1.4s ease-in-out infinite,
               typing-bif-sweep 1.4s linear infinite;
}
.animate-typing-wave.typing-bifrost-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background-image: linear-gradient(90deg, rgb(var(--bif-1)) 0px, rgb(var(--bif-2)) 80px, rgb(var(--bif-3)) 160px, rgb(var(--bif-4)) 240px,
                                             rgb(var(--bif-5)) 320px, rgb(var(--bif-6)) 400px, rgb(var(--bif-7)) 480px, rgb(var(--bif-1)) 560px);
    background-size: 560px 100%;
    background-repeat: repeat-x;
    background-position: calc(4px - 80px * (var(--typing-spin) + var(--typing-sweep))) 0;
    opacity: calc(min(1, var(--typing-k) * 1.15) * 0.77);
    animation: typing-bif-spin 10s linear infinite;
}
/* + 1.1 palette steps per dot = 1.1 * 10s / 7 ahead on the spin */
.animate-typing-wave.typing-bifrost-dot:nth-child(2)::after { animation-delay: -1.5714s; }
.animate-typing-wave.typing-bifrost-dot:nth-child(3)::after { animation-delay: -3.1429s; }
@media (prefers-reduced-motion: reduce) {
    /* still: no bounce, no colour (the sampler's reduced branch holds k = 0) */
    .animate-typing-wave.typing-bifrost-dot { animation: none; opacity: 0.75; }
    .animate-typing-wave.typing-bifrost-dot::after { animation: none; opacity: 0; }
}

/* ═══ BIFROST MOTION ═══════════════════════════════════════════════════════════════════════
   The layers static/components/bifrostFx.js paints into. Approved 2026-09-11: the send and
   bubble gesture is sample A "Quick draw" with the overload button
   (claude.ai/code/artifact/aa5c989b-6405-468c-b1e3-b54028ea4b31) and arrivals and departures
   are sample C "Surge" (claude.ai/code/artifact/4a7fc56e-1a36-4923-885c-aed8a88173e0).

   ⚠️ NOT ONE OF THESE RULES MAY AFFECT LAYOUT. Josh, 2026-09-11: "we're only sending the
      animations, we don't wanna mess the layout of anything up." Every selector below is
      position:absolute and pointer-events:none, so nothing here can push a bubble, widen a
      row or change a gap. If a rule in this block ever sets a size on something the chat
      lays out, that rule is the bug.
   ══════════════════════════════════════════════════════════════════════════════════════════ */
.bifrost-trace, .bifrost-ringlayer {
    position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; z-index: 2;
    filter: drop-shadow(0 0 9px rgba(var(--bif-1),.5)) drop-shadow(0 0 20px rgba(var(--bif-2),.24));
}
.bifrost-ringlayer { z-index: 23; }
.bifrost-trace path, .bifrost-ringlayer path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.bifrost-bfx { position: absolute; inset: 0; pointer-events: none; overflow: visible; z-index: 3; }

/* the unstable energy ball. It is never a clean disc — bifrostFx re-rolls its corners and its
   two axes every frame, so the border-radius here is only its resting shape. */
.bifrost-orb {
    position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
    pointer-events: none; will-change: transform, opacity;
    background: radial-gradient(circle at 50% 42%, #fff 0%, rgb(var(--bif-5)) 22%, rgb(var(--bif-6)) 42%, rgb(var(--bif-1)) 62%, rgba(var(--bif-2),0) 74%);
}
.bifrost-orb.bifrost-live { filter: drop-shadow(0 0 6px rgba(255,240,190,.9)); }
.bifrost-spark { position: absolute; width: 3px; height: 3px; border-radius: 99px; margin: -1.5px 0 0 -1.5px; pointer-events: none; }
.bifrost-arc { position: absolute; height: 1.5px; border-radius: 2px; transform-origin: left center; pointer-events: none; }

/* A member who has asked for less motion gets the message and the person, not the fireworks. */
@media (prefers-reduced-motion: reduce) {
    .bifrost-trace, .bifrost-ringlayer, .bifrost-bfx, .bifrost-orb, .bifrost-spark, .bifrost-arc { display: none !important; }
}

/* the QUICK DRAW send button: two absolutely-positioned layers inside the 32px button the
   composer already lays out. The host keeps its own size — nothing here sets one. */
.qd-glyph, .qd-line { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.qd-glyph { transform-origin: 50% 50%; }
.qd-line { pointer-events: none; }
.qd-line path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .qd-line { display: none !important; } }

/* SURGE — the arrival and departure spawn. Both layers are absolutely positioned inside the
   chat header, which already has `relative`, so neither can move the HERE NOW bar.
   Approved 2026-09-11, sample C: claude.ai/code/artifact/4a7fc56e-1a36-4923-885c-aed8a88173e0 */
.bifrost-hole  { position: absolute; pointer-events: none; z-index: 20; will-change: opacity; }
.bifrost-spawn { position: absolute; border-radius: 50%; pointer-events: none; z-index: 22;
                 overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.55);
                 will-change: transform, clip-path, filter; }
@media (prefers-reduced-motion: reduce) { .bifrost-hole, .bifrost-spawn { display: none !important; } }

/* 🩹 A ROSTER SLOT THAT IS BEING SPAWNED INTO. Josh, 2026-09-11: "in messages under Chats and Clubs
   the Avatar Spawn isn't working, so I can't tell if the Surge Steps are working."
   The claim lives on the CELL, which is stable, rather than as an inline opacity on the <img>,
   which the regular chat destroys mid-gesture: coming online flips that face from a bare <img> to
   the same <img> inside three overlay wrappers, and React replaces the node.
   `animation: none` is the other half. ChatView stamps its own presence pop on the very cell the
   spawn is working on, and re-stamps it on every render, so removing the class once could never
   hold — the two were scaling the same slot against each other. Nothing here moves the cell or
   changes its box: it still occupies exactly the space it did. */
.bifrost-claimed > * { visibility: hidden; }
.bifrost-claimed { animation: none !important; }

/* ══ SIGNING OFF ══════════════════════════════════════════════════════════════════════════════
   Josh, 2026-09-11: "their avatars need to still be color. We just need to signify that they have
   signed off… even if it fades the black-and-white or something, the color version needs to creep
   back in when it's all done."
   There is deliberately NO class here that leaves a face grey. The black and white is a CLONE laid
   over the real avatar, so "the colour creeping back" is that clone being removed, and a gesture
   cut off halfway cannot strand anybody in monochrome. Approved sample:
   https://claude.ai/code/artifact/456d2506-03d2-49fc-9850-4cbbee55d5ff */
/* 2026-09-25 — the sign-off ghost v4 (approved sampler, design "puff"; FINAL.json). One engine,
   offlineGhost.js, used by the app-wide sign-off AND the chat / club / event-chat departure.
   ⚠️ NOTHING THAT MOVES CARRIES A filter, blur or shadow — transform and opacity only. The one filter
      here is on the grey copy INSIDE the level, which never animates itself.
   ⚠️ No display:none under reduced motion: the engine has its own reduced path (a crossfade, and a
      ghost that fades in place), so hiding the layers would strand the gesture half-drawn. */
.sg-veil { position: absolute; border-radius: 50%; overflow: hidden; pointer-events: none; z-index: 25; }
.sg-veil .sg-pic { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%;
                   object-fit: cover; display: block; }
.sg-veil .sg-grey { filter: grayscale(1) brightness(.78); }
.sg-lvl { position: absolute; inset: 0; pointer-events: none; transform: translateY(calc(-100% - 10px)); will-change: transform; }
.sg-lvl-in { position: absolute; inset: 0; pointer-events: none; transform: translateY(calc(100% + 10px)); }
.sg-wave { position: absolute; left: 0; top: 100%; width: 200%; height: 8px; display: block; pointer-events: none; }
.sg-ring { position: absolute; border-radius: 50%; pointer-events: none; z-index: 26; opacity: 0;
           border: 2.5px solid rgba(239,68,68,.95); box-sizing: border-box; }
/* ⚠️ THE STAGE. Josh, 2026-09-11: "make sure the avatar spawns and de-spawns do not mess with
   users who are actively typing… without any weird bugs or the keyboard closing by itself."
   `contain: strict` is the load-bearing line: it tells the engine that nothing inside may influence
   layout, size or paint anywhere else, so a ghost that flies past the edge can never extend what
   the page thinks is scrollable — which on iOS is how a page grows under a focused input and takes
   the keyboard with it. `overflow: hidden` clips at the viewport, `pointer-events: none` means
   every tap goes straight through to whatever is underneath, and there is nothing focusable inside,
   so the caret never moves. */
#bifrost-stage { position: fixed; inset: 0; overflow: hidden; pointer-events: none;
                 z-index: 9000; contain: strict; }
.sg-ghost { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none;
            visibility: hidden; will-change: transform, opacity; }
.sg-ghost svg { position: absolute; display: block; overflow: visible; }
.sg-glow { position: absolute; left: 0; top: 0; border-radius: 50%; pointer-events: none; opacity: 0;
           will-change: transform, opacity; }
/* the thread of light between the body and the soul */
.sg-thread { position: absolute; left: 0; top: 0; width: 6px; border-radius: 3px; pointer-events: none;
             transform-origin: 50% 100%; opacity: 0; will-change: transform, opacity;
             background: linear-gradient(to top, rgba(255,255,255,.95), rgba(220,245,255,.6) 55%, rgba(255,255,255,0)); }

/* THE ONLINE PULSE — one green breath around a face after its Quick Draw ring.
   ⚠️ #3ddc57 IS THE GREEN. Josh, 2026-09-11, twice: "when I say green, I actually mean green not
      that weird teal color you keep putting everywhere." Tailwind's emerald (#34d399) is a
      blue-green and is not it. This is the app's own green, the trivia READY ring's. */
.bifrost-online-pulse {
    position: absolute; border-radius: 50%; pointer-events: none; opacity: 0; z-index: 23;
    box-shadow: 0 0 0 2px #3ddc57, 0 0 14px 2px rgba(61,220,87,.55);
    will-change: opacity, transform;
}
@media (prefers-reduced-motion: reduce) { .bifrost-online-pulse { display: none !important; } }

/* ⏯ THE COMMENT SLOT. Josh, 2026-09-11: "I feel like it should be the camera at the end, when
   someone starts typing it slides over to the left and the play button transforms into existence."
   The slot has NO WIDTH at rest, which is what puts the camera last in the row; it opens to 32px
   when there is something to send, and the flex row slides the camera left on its own.
   ⚠️ The width transitions; the glyph inside does NOT fade. It arrives by transforming — a quarter
      turn and a slight overshoot — because a fade would read as it appearing rather than forming. */
.qd-slot { overflow: visible; transition: width .26s cubic-bezier(.2,.9,.25,1), margin-left .26s cubic-bezier(.2,.9,.25,1); }
.qd-slot-shut { width: 0; margin-left: -0.75rem; pointer-events: none; }
.qd-slot-open { width: 2rem; margin-left: 0; }
/* ⚠️ THE DISC COMES INTO VIEW; IT DOES NOT SPIN IN. Josh, 2026-09-11: "I don't like that it just
   rotates in. I think it would be cool if the gold circle came into view and it did the online
   spawn around the circle as the play button arrives in a transformer morphing way."
   The rotation is gone from this keyframe on purpose — it was doing the job the MORPH should be
   doing, and a spinning disc hides the very thing worth watching. All this does now is bring the
   circle into view. The ring around it and the pause-to-play transformation are mounted in
   CommentComposer, on top of this. */
.qd-slot-open .qd-glyph { animation: qd-form .3s cubic-bezier(.2,1.55,.35,1) both; }
@keyframes qd-form {
    0%   { transform: scale(.12); opacity: 0; }
    52%  { transform: scale(1.16); opacity: 1; }
    76%  { transform: scale(.95); }
    100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .qd-slot { transition: none; }
    .qd-slot-open .qd-glyph { animation: none; }
}

/* ══ HOLD TO PICK ═════════════════════════════════════════════════════════════════════════════
   Josh, 2026-09-11, approved from the sample at hold 90ms / slop 10px:
   https://claude.ai/code/artifact/80176a4d-980a-4786-9249-136e1fb9a8c0
   "hold their finger on the watch group picker on the stream page and slide down into the picker
   and release the finger selects one… Don't lose the tap version."
   Two classes, and neither touches layout: the row your thumb is over, and the trigger while the
   gesture owns it. Both are pure paint, because a row that changed size under a moving finger
   would move the target the finger is aiming at. */
.hp-hot {
    background: linear-gradient(90deg, rgba(229,160,13,.26), rgba(229,160,13,.10)) !important;
    box-shadow: inset 0 0 0 1px rgba(229,160,13,.55);
    color: #fbbf24 !important;
}
.hp-held { border-color: rgba(234,179,8,.6) !important; }
@media (prefers-reduced-motion: reduce) { .hp-hot { box-shadow: none; } }


/* 🖊️ (2026-10-15) THE BLOCK BELOW IS GONE: the Discover nav nudge is Josh's Quick Draw now (static/components/DiscoverNudge.jsx +
   discoverNudge.js, "Discover nudge FINAL — build it"). Kept as history: 💡 THE DISCOVER NUDGE ON THE NAV ICON. Josh, 2026-09-13: *"It would be nice if we could also
   add the light sheen to the actual Discover tab icon as well so they can see that it's asking
   them to tap that and check out the new stuff? I think this might be more of a subtle nudge
   rather than having a full on notification for it."*
   The same wave the Discover tab switcher wears, sized to an icon and clipped to it — a nudge,
   not a badge, so nothing is added to the layout and nothing needs dismissing. */
/* 🎭 THE SHEEN IS CLIPPED TO THE ICON, NOT ITS BOX. Josh, 2026-09-16: *"there's a whole square
   of sheen light that goes across it rather than tracing just the icon."* The span is masked with
   the icon's own image (`--nav-icon`, set inline by App.jsx to the inactive art): the <img> inside
   is that very picture, so masking it by itself changes nothing, and the ::after wave can only
   show through the icon's opaque pixels. The 2px inset matches the img's `p-0.5`. */


/* ⌨️✨ THE TYPING INK — a 0.4px outline on each character whose colour walks the Bifrost ramp,
   for as long as somebody is typing. Approved sample, and it IS the spec:
     https://claude.ai/code/artifact/53b59eed-9659-4241-b720-4f6861ecba2d
   Josh, 2026-09-13: *"a bifrost glow that actually has movement to it? I'd really only want it
   for when users are typing in the text input boxes app-wide."*

   ⚠️ HE TURNED THE GLOW OFF. He dialled the bench himself and handed back both halo alphas at
      0.00 with the stroke at 0.4px / 100%. The bloom was what I offered; the OUTLINE is what he
      kept. There is deliberately no text-shadow here — do not "restore" it.

   ⚠️ CSS DRIVES THE COLOUR, NOT JAVASCRIPT. The bench walked the ramp on rAF because it also
      had to feed a readout; here a keyframe does it on the compositor, so a phone spends nothing
      per frame while somebody types. One animation, five stops, four seconds — his number.

   ⚠️ `paint-order: stroke fill` keeps the stroke OUTSIDE the letterform. Without it the stroke
      is painted under the fill and eats into thin glyphs, which at 0.4px on 15px text reads as
      the font having gone slightly wrong rather than as an outline. */
@keyframes bifrost-ink {
    /* ⚠️ THE ALPHA LIVES HERE TOO. An animation on `-webkit-text-stroke-color` replaces the
       colour the rule below sets, alpha and all, so lowering it in one place only would have
       been overwritten the moment the first keyframe landed. Both are .38 -- 68, 58, 48, 38 across 2026-09-13 as he dialled it in by eye. */
    0%   { -webkit-text-stroke-color: rgba(var(--bif-ink-1), .38); }
    20%  { -webkit-text-stroke-color: rgba(var(--bif-ink-2), .38); }
    40%  { -webkit-text-stroke-color: rgba(var(--bif-ink-3), .38); }
    60%  { -webkit-text-stroke-color: rgba(var(--bif-ink-4), .38); }
    80%  { -webkit-text-stroke-color: rgba(var(--bif-ink-5), .38); }
    100% { -webkit-text-stroke-color: rgba(var(--bif-ink-1), .38); }
}
/* ⚖️ LIGHTER THAN THE BENCH AT THE SAME NUMBERS, AND ON PURPOSE. Josh, 2026-09-13: *"It seems
   a bit more intense than what I had seen in the sample."*
   He is right, and the numbers were not the difference — the TEXT was. The bench draws one short
   line of Outfit 400 at 15px in #e4e4e7; the app's composers run at 16px (iOS zooms a smaller
   field on focus) and several of them sit on white or near-white at a heavier weight. A 0.4px
   stroke is a fixed width, so the heavier and larger the glyph, the more of it the outline
   covers and the louder it reads. Same ink, more surface.
   So the WIDTH stays at his 0.4px — it is what makes it an outline rather than a smudge — and
   the ALPHA carries the correction. A stroke that is present but not shouting is the thing he
   picked off the bench. */
input[data-typing], textarea[data-typing], [contenteditable][data-typing] {
    -webkit-text-stroke: 0.4px rgba(var(--bif-ink-1), .38);
    paint-order: stroke fill;
    animation: bifrost-ink 4s linear infinite;
}
/* ⚡🛑 THE WALK PAUSES. THE INK DOES NOT CHANGE. — 2026-09-22
   Josh: *"the text [lag] is still happening, it's so bad that is messed texting in chats and even
   [event] chats up… I think it has to do with the color lighting effect in the text input
   characters. It looks amazing but maybe it's overly tasking on people phones to run it… I don't
   wanna have to give up the colored text."*

   ⭐ HIS LEAD WAS RIGHT, AND THE COMMENT ABOVE THIS ONE WAS WRONG. It claims a keyframe does the
      colour walk *"on the compositor, so a phone spends nothing per frame while somebody types."*
      `-webkit-text-stroke-color` IS NOT A COMPOSITED PROPERTY. Only transform and opacity get the
      free ride. MEASURED, headless Blink, the real stylesheet, over 2 seconds of an IDLE page:

        ink OFF                           0 paint events     0 style recalcs    0.61 ms/s
        ink ON                          240 paint events   123 style recalcs   19.33 ms/s
        control: transform (composited)   0 paint events     0 style recalcs
        control: box-shadow (never composited)
                                        242 paint events   121 style recalcs

      The ink lands exactly on the PAINTING control and nowhere near the composited one. It was
      forcing a style recalc and a full repaint of the composer's glyphs — each one drawn twice,
      because `paint-order: stroke fill` — sixty times a second, `infinite`, for as long as the
      field held a single character. That is a phone spending ~19 ms of every second on an effect
      nobody is looking at, and it is why nobody thought to look here.

   THE FIX IS A PAUSE, NOT A CUT. Every number below is untouched: the 0.4px width, the .38 alpha
   in all seven places, the five Bifrost stops, `paint-order: stroke fill`. All that changes is
   WHEN the colour crawls, and it crawls in the two states where somebody can actually see it
   crawl — not while their own keystrokes are landing, and not on a box they have walked away from.

     • WHILE KEYS ARE ARRIVING (`data-ink-still`, set on `input`, cleared 150ms after the last
       key). Nobody watches a 4-second colour crawl in the middle of a word; they are watching
       the letters appear. MEASURED at 6x CPU throttle: 8.86 → 4.46 ms per keystroke, which is
       the ENTIRE ink cost, and the difference between beating a 16.7ms frame and missing it.
     • ON ANY FIELD THAT IS NOT FOCUSED. `App.jsx`'s `mark()` sets the ink on blur too, whenever
       a field still holds words — so a draft left behind in one composer kept repainting at
       60fps after the member walked away, and each additional one stacked: 20.9 → 24.1 → 30.1
       → 39.4 ms/s at one, two, four and seven inked fields. A paused walk holds a Bifrost
       colour instead of crawling through them, which on a box nobody is in is not a look he
       has ever seen change.

   ⚠️ A PAUSE, NOT `animation: none`. `none` would drop back to the rule's own violet and snap
      the colour; `animation-play-state: paused` holds the exact frame it was on, so resuming is
      seamless and no keystroke ever makes the colour jump.
   ⚠️ NOT VERIFIED ON WEBKIT — the rig is Blink and Josh is not. [[headless-chrome-hides-webkit-bugs]] */
input[data-typing]:not(:focus),
textarea[data-typing]:not(:focus),
[contenteditable][data-typing]:not(:focus),
input[data-typing][data-ink-still],
textarea[data-typing][data-ink-still],
[contenteditable][data-typing][data-ink-still] {
    animation-play-state: paused;
}
/* 🔗↩️ A LONG URL WRAPS INSIDE THE BOX, AND SEND STAYS ON SCREEN — 2026-10-08. Josh (LIVE event chat, pasted an x.com
   link): *"This pasted strange and no me I have no send button cause it went outside the box"*
   (samples/composer-long-url-overflow-2026-10-08.png). `overflow-wrap: break-word` breaks a long word only when it
   would overflow, but it does NOT shrink the word's min-content width — so in the composer's flex row the unbreakable
   URL made the field as wide as the URL and shoved the send button off the right edge. `anywhere` lets the min-content
   width shrink too. It goes on BOTH layers, identically: the textarea (caret) and the highlighter (the words) must break
   at the same character, or the caret drifts off the text. `min-width: 0` on the field's flex column is the second
   lock: nothing inside it may ever widen the row again. Every react-mentions composer (club/DM, event chat, comments,
   posts) uses these two classes. */
[class*="mentions__highlighter"],
textarea[class*="mentions__input"] {
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}
[data-composer-field] > .flex-1,
[class*="mentions--multiLine"],
[class*="mentions__control"] { min-width: 0; }
/* 🚫✍️ NOTHING ANIMATES ON THE FIELD YOU ARE TYPING IN — the chat + comment composers, 2026-10-08.
   Josh (LIVE): *"the rainbow color text for the input bar on the live site is still pausing and locking the screen when
   I type longer messages or if I type too fast … I keep typing and eventually it all shows up really fast"*; then
   *"the lock up lasts for about 20 seconds"*. He keeps the effect: *"I really don't wanna lose that feature"* (10-01).
   WHAT 10-01 DID AND WHY IT LOCKED UP: an infinite `filter` keyframe (`bifrost-walk-gpu`) on the react-mentions
   TEXTAREA itself. A filtered element gets its own layer, and every keystroke re-rasterises the whole field's text
   through the filter — longer message, bigger layer, bigger bill per key; type faster than it clears and WebKit queues
   the keys behind it (the "shows up all at once").
   NOW: the textarea's fill is transparent — react-mentions' HIGHLIGHTER, a non-editable mirror right behind it, paints
   the words. So the ink goes on the MIRROR (typingInk.js mirrors `data-typing` / `data-ink-still` onto it, once per
   flip / burst, never per key) and the textarea carries no stroke, no animation, no filter, ever.
   ⭐ THE LOOK IS UNCHANGED: same 0.4px, same .38, same five stops (the house `bifrost-ink` keyframes), same 4s loop.
      `paint-order: normal` on the mirror = the stroke drawn OVER its white fill, which is exactly what the textarea's
      stroke over the mirror's fill used to draw.
   ⏸️ The walk holds still while keys are arriving and resumes INK_IDLE_MS (600ms) after the last one, and while the
      field is not focused — the colour is held on the frame it reached, never snapped. */
textarea[class*="mentions__input"][data-typing],
input[class*="mentions__input"][data-typing] {
    -webkit-text-stroke: 0 transparent;
    animation: none;
    filter: none;
}
[class*="mentions__highlighter"][data-typing] {
    -webkit-text-stroke: 0.4px rgba(var(--bif-ink-1), .38);
    paint-order: normal;
    animation: bifrost-ink 4s linear infinite;
}
[class*="mentions__highlighter"][data-typing][data-ink-still],
[class*="mentions__control"]:not(:focus-within) > [data-typing][class*="mentions__highlighter"] { animation-play-state: paused; }
/* ⚡ ORDER MATTERS (TV speed audit M113, 2026-11-25): a [class*=] on the LEFT of a combinator makes Chrome re-check, on EVERY class change
   anywhere (the ring moving, the TV root's tv-nav-on / tv-libs-open), the descendants that match the RIGHT side's first attribute.
   [class*=...] first = every element with a class (the whole TV app, ~1,350 restyled per header / panel step); [data-typing] first =
   only the one typing mirror. Same elements matched, same pause. tests/test_tv_speed_audit.js guards it. */
/* The stroke itself is the effect, so it stays; only the colour stops moving. */
@media (prefers-reduced-motion: reduce) {
    input[data-typing], textarea[data-typing], [contenteditable][data-typing] { animation: none; }
    [class*="mentions__highlighter"][data-typing] { animation: none; }
}


/* ═══ THE SETTINGS SWEEP — 2026-09-17 ═══════════════════════════════════════════════════════
   Josh: "Find pages that are still using the old radio button model… make them match the rest of
   the UI while keeping all buttons wired properly." Samples approved as shown
   (https://claude.ai/artifact/9Wvg4anFSx8RHNVW8pRyeS). Four house controls, plain CSS on purpose:
   a class new to the app is not in dist/tailwind.css until the next CSS build, and these must
   look right on staging too. Every rim below rides the shared 10s iri-spin clock. */

/* ── PickRow: the wizards' green check on the right, a Bifrost rim when chosen ─────────── */
.pickrow { position: relative; display: flex; align-items: center; gap: 12px; width: 100%;
    padding: 11px 12px; border-radius: 14px; text-align: left; font: inherit; color: #d4d4d8; font-weight: 600;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); cursor: pointer;
    -webkit-tap-highlight-color: transparent; user-select: none; touch-action: manipulation;
    transition: transform 0.16s cubic-bezier(0.2,1.4,0.3,1), background 0.2s, border-color 0.2s, color 0.2s; }
.pickrow:active { transform: scale(0.985); }
.pickrow.dis { opacity: 0.38; cursor: not-allowed; }
.pickrow.on { color: #fff; background: rgba(255,255,255,0.07); border-color: transparent; }
.pickrow-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pickrow-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.875rem; }
.pickrow-sub { font-size: 0.625rem; color: #71717a; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 1px; }
.pickrow-rim { position: absolute; inset: -1.5px; border-radius: 15.5px; padding: 1.5px; pointer-events: none; opacity: 0;
    transition: opacity 0.25s; animation: iri-spin 10s linear infinite;
    background: conic-gradient(from var(--iri-angle), rgba(var(--bif-1),0.55), rgba(var(--bif-2),0.50), rgba(var(--bif-3),0.45), rgba(var(--bif-4),0.40), rgba(var(--bif-5),0.45), rgba(var(--bif-6),0.50), rgba(var(--bif-7),0.55), rgba(var(--bif-1),0.55));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
.pickrow.on .pickrow-rim { opacity: 1; }
.pickrow.on.tone-gold .pickrow-rim { background: linear-gradient(to bottom, #fcd34d, #d99a0a); animation: none; }
.pickrow.on.tone-red  .pickrow-rim { background: linear-gradient(to bottom, #fb7185, #be123c); animation: none; }
.pickrow.on.tone-blue .pickrow-rim { background: linear-gradient(to bottom, #93c5fd, #2563eb); animation: none; }
.pickrow-chk { width: 22px; height: 22px; border-radius: 9999px; flex: 0 0 auto; display: grid; place-items: center; color: #052e16;
    border: 1.5px solid rgba(255,255,255,0.18); background: rgba(0,0,0,0.35);
    transition: background 0.2s, border-color 0.2s, transform 0.2s cubic-bezier(0.2,1.4,0.3,1), box-shadow 0.2s; }
.pickrow-chk svg { width: 13px; height: 13px; opacity: 0; transform: scale(0.4); transition: opacity 0.18s, transform 0.22s cubic-bezier(0.2,1.4,0.3,1); }
.pickrow.on .pickrow-chk { background: #39d98a; border-color: #39d98a; transform: scale(1.05); box-shadow: 0 0 12px rgba(57,217,138,0.45); }
.pickrow.on .pickrow-chk svg { opacity: 1; transform: none; }
.pickrow.on.tone-gold .pickrow-chk { background: #e5a00d; border-color: #e5a00d; box-shadow: 0 0 12px rgba(229,160,13,0.45); color: #1c1200; }
.pickrow.on.tone-red  .pickrow-chk { background: #fb7185; border-color: #fb7185; box-shadow: 0 0 12px rgba(251,113,133,0.45); color: #3f0a14; }
.pickrow.on.tone-blue .pickrow-chk { background: #60a5fa; border-color: #60a5fa; box-shadow: 0 0 12px rgba(96,165,250,0.45); color: #0b1f44; }
.pickrow-badge { font-size: 0.5625rem; padding: 2px 6px; border-radius: 6px; border: 1px solid; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; flex: 0 0 auto; }
.pickrow-avatar { width: 30px; height: 30px; border-radius: 9999px; flex: 0 0 auto; object-fit: cover; border: 1px solid rgba(255,255,255,0.1); display: grid; place-items: center; background: #3f3f46; color: #d4d4d8; font-size: 0.6875rem; font-weight: 800; }

/* ── DaysPicker: preset chips + a stepper ──────────────────────────────────────────────── */
.dayspick { display: flex; flex-direction: column; gap: 10px; }
.dayspick.dis { opacity: 0.45; pointer-events: none; }
.dayspick-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dayspick-chip { font: inherit; font-weight: 800; font-size: 0.6875rem; letter-spacing: 0.06em; padding: 8px 12px; border-radius: 9999px;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.10); color: #d4d4d8; cursor: pointer; -webkit-tap-highlight-color: transparent;
    transition: transform 0.16s cubic-bezier(0.2,1.4,0.3,1), background 0.2s, color 0.2s; }
.dayspick-chip:active { transform: scale(0.94); }
.dayspick-chip.on { background: linear-gradient(to bottom, #f3b52a, #d99a0a); color: #111; border-color: rgba(255,220,130,0.6); box-shadow: 0 4px 14px rgba(229,160,13,0.3); }
.dayspick-step { display: inline-flex; align-self: flex-start; }
.dayspick-step-in { display: flex; align-items: center; background: rgba(9,9,12,0.97); border-radius: 9999px; }
.dayspick-step-in button { font: inherit; width: 38px; height: 38px; border: 0; background: transparent; color: #fff; font-size: 1.25rem; line-height: 1; cursor: pointer; border-radius: 9999px; }
.dayspick-step-in button:active { background: rgba(255,255,255,0.08); }
.dayspick-step-in button:disabled { opacity: 0.3; cursor: default; }
.dayspick-num { min-width: 64px; text-align: center; font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1rem; color: #fde68a; font-variant-numeric: tabular-nums; line-height: 1.05; }
.dayspick-num small { display: block; font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 0.5625rem; letter-spacing: 0.16em; color: #71717a; text-transform: uppercase; margin-top: 2px; }

/* ── .house-range: a real <input type=range>, dressed — gold fill to the value, dark glass thumb ── */
.house-range { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; margin: 0; cursor: pointer; }
.house-range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, #fcd34d 0%, #e5a00d var(--p, 50%), rgba(255,255,255,0.12) var(--p, 50%)); }
.house-range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 9999px; background: #0d0d11; border: 2.5px solid #fcd34d; box-shadow: 0 0 0 4px rgba(229,160,13,0.18), 0 4px 12px rgba(0,0,0,0.6); }
.house-range::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(255,255,255,0.12); }
.house-range::-moz-range-progress { height: 6px; border-radius: 3px; background: linear-gradient(90deg, #fcd34d, #e5a00d); }
.house-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 9999px; background: #0d0d11; border: 2.5px solid #fcd34d; }

/* ── Penalty chips (Master → Flagged Members): a severity scale, then one red Apply ───────── */
.penchips { display: flex; gap: 8px; }
.penchip { flex: 1; font: inherit; font-weight: 800; font-size: 0.6875rem; letter-spacing: 0.06em; padding: 10px 6px; border-radius: 14px;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10); color: #d4d4d8; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; gap: 4px; -webkit-tap-highlight-color: transparent; }
.penchip i { width: 10px; height: 10px; border-radius: 9999px; display: block; background: var(--pc, #e5a00d); }
.penchip.on { color: #fff; background: rgba(255,255,255,0.09); border-color: transparent; box-shadow: 0 0 0 1.5px var(--pc, #e5a00d); }
.pendesc { margin: 10px 0 12px; padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.06); font-size: 0.75rem; color: #d4d4d8; min-height: 38px; }
.pendesc b { display: block; font-size: 0.625rem; letter-spacing: 0.16em; text-transform: uppercase; color: #71717a; margin-bottom: 2px; }

/* ── Colour swatches (Reaction Creator): the palette first, the OS picker behind the last one ── */
.swatches { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.swatch { width: 30px; height: 30px; border-radius: 9999px; border: 2px solid transparent; cursor: pointer; padding: 0; position: relative; -webkit-tap-highlight-color: transparent; }
.swatch.on { border-color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,0.25); }
.swatch.custom { background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); overflow: hidden; }
.swatch.custom input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }

/* ── A dressed native date box (Donation add modal) — still <input type=date>, just the house plate ── */
.house-date { width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 14px; background: rgba(9,9,12,0.97); border: 1px solid rgba(229,160,13,0.22); color: #fff; font: inherit; font-weight: 700; color-scheme: dark; }
.house-date::-webkit-calendar-picker-indicator { filter: invert(0.8) sepia(1) saturate(4) hue-rotate(5deg); cursor: pointer; }

@media (prefers-reduced-motion: reduce) { .pickrow-rim, .dayspick-step { animation: none; } }


/* ═══ SETTINGS SWEEP II — the menu grammar, 2026-09-17 ═══════════════════════════════════════
   Josh: "any other settings pages that still have that old gemini look… so we can get everything
   uniform." Samples approved as shown (https://claude.ai/artifact/XjWyiWwGUhg1jDiDy8uqst). The
   reference is the Settings menu: gold section titles, rimmed groups (post-bifrost-wrap / bifrost-bevel
   — already in this file), quiet rows with chevrons. These are the small shared atoms every swept page
   uses, plain CSS so they exist on staging without a Tailwind rebuild. */
.hs-gtitle { margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }   /* type = .ttl-sec */
.hs-gtitle .hs-tag { font-family: 'Outfit', sans-serif; font-size: 0.5rem; letter-spacing: 0.16em; padding: 3px 7px; border-radius: 9999px; background: rgba(139,92,246,0.2); color: #c4b5fd; border: 1px solid rgba(139,92,246,0.4); }
.hs-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 10px; border-radius: 12px; color: #e4e4e7; font-weight: 600; font-size: 0.875rem; text-align: left; background: transparent; border: 0; font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background 0.15s; }
.hs-row:hover, .hs-row:active { background: rgba(255,255,255,0.05); }
.hs-row .hs-sub { display: block; font-size: 0.6875rem; color: #71717a; font-weight: 500; margin-top: 1px; }
.hs-row .hs-chev { margin-left: auto; color: #71717a; width: 16px; height: 16px; flex: 0 0 auto; }
.hs-row .hs-ico { width: 30px; height: 30px; border-radius: 10px; background: rgba(255,255,255,0.06); display: grid; place-items: center; font-size: 0.875rem; flex: 0 0 auto; }
.hs-pill { font-size: 0.5rem; letter-spacing: 0.14em; padding: 3px 8px; border-radius: 9999px; font-weight: 800; text-transform: uppercase; border: 1px solid; white-space: nowrap; }
.hs-pill.gold { background: rgba(229,160,13,0.15); color: #fbbf24; border-color: rgba(229,160,13,0.35); }
.hs-pill.blue { background: rgba(96,165,250,0.15); color: #93c5fd; border-color: rgba(96,165,250,0.35); }
.hs-pill.red  { background: rgba(239,68,68,0.18); color: #fca5a5; border-color: rgba(239,68,68,0.35); }
.hs-pill.green { background: rgba(57,217,138,0.12); color: #39d98a; border-color: rgba(57,217,138,0.35); }
.hs-pill.grey { background: rgba(255,255,255,0.06); color: #a1a1aa; border-color: rgba(255,255,255,0.1); }
.hs-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9999px; background: #e5a00d; color: #111; font-size: 0.625rem; font-weight: 900; display: inline-grid; place-items: center; }
.hs-goldbar { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 46px; border-radius: 14px; border: 0; background: linear-gradient(to bottom, #f3b52a, #d99a0a); color: #111; font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; box-shadow: 0 6px 18px rgba(229,160,13,0.3); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform 0.16s cubic-bezier(0.2,1.4,0.3,1); }
.hs-goldbar:active { transform: scale(0.98); }
.hs-goldbar:disabled { opacity: 0.45; cursor: default; }
.hs-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 12px; border-radius: 9999px; font: inherit; font-size: 0.625rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: #e4e4e7; cursor: pointer; -webkit-tap-highlight-color: transparent; white-space: nowrap; }
.hs-ghost.gold { color: #fbbf24; border-color: rgba(229,160,13,0.35); background: rgba(229,160,13,0.10); }
.hs-ghost.red  { color: #fca5a5; border-color: rgba(239,68,68,0.35); background: rgba(239,68,68,0.10); }
.hs-ghost:disabled { opacity: 0.4; cursor: default; }
/* 📏 the Builder's 7 / 10 / 14 / 30 DAYS row (2026-10-23: at 375 "30 DAYS" touched the card's right edge). At 430 and
   up it is exactly the old row (8px gap, 12px chip sides); below 430 the gap and the chip sides ease with the phone so
   the four fit inside the card's 16px padding at 360-440. Wraps (never clips) on anything narrower. */
.hs-days { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(6px, calc(8px - (430px - 100vw) * 0.03), 8px); }
.hs-days > .hs-ghost { padding-left: clamp(8px, calc(12px - (430px - 100vw) * 0.05), 12px); padding-right: clamp(8px, calc(12px - (430px - 100vw) * 0.05), 12px); }
.hs-xdisc { width: 30px; height: 30px; border-radius: 9999px; display: grid; place-items: center; background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; cursor: pointer; flex: 0 0 auto; padding: 0; -webkit-tap-highlight-color: transparent; }
.hs-xdisc svg { width: 12px; height: 12px; }
.hs-xdisc.lg { width: 46px; height: 46px; border-radius: 14px; } .hs-xdisc.lg svg { width: 18px; height: 18px; }
.hs-prow { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); }
.hs-prow .hs-nm { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-prow .hs-nm small { display: block; color: #71717a; font-size: 0.625rem; font-weight: 600; }
.hs-plate { display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; padding: 11px 14px; border-radius: 14px; background: rgba(9,9,12,0.97); border: 1px solid rgba(229,160,13,0.22); color: #fff; font: inherit; font-size: 0.8125rem; }
.hs-plate::placeholder { color: #71717a; }
.hs-plate:focus { outline: none; border-color: rgba(229,160,13,0.55); }
/* 🔎 VIP builder search bar (Josh 2026-10-20): STATIC — sticks to the top of the scroller while the
   rails scroll under it; the band carries the card's own colour so nothing shows through. The ✕
   clears text + results + drill-down (ChallengeSearchBar, AdminSettingsPage.jsx). */
.hs-search { position: sticky; top: 0; z-index: 6; padding: 6px 12px; background: #27272a; }
.hs-search-walk { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; background: rgba(39,39,42,0.98); }
.hs-search-pop { position: relative; top: auto; padding: 0 24px 10px; background: transparent; }
.hs-search .hs-search-field { padding-right: 44px; min-height: 42px; }
.hs-search-door .hs-search-field { cursor: pointer; text-align: left; }
.hs-search-q, .hs-search-ph { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-search-ph { color: #71717a; }
.hs-search-x { position: absolute; top: 50%; right: 20px; transform: translateY(-50%); width: 28px; height: 28px; padding: 0;
    display: flex; align-items: center; justify-content: center; border-radius: 9999px; cursor: pointer;
    border: 1px solid rgba(229,160,13,0.35); background: #3f3f46; color: #f4f4f5; }
.hs-search-walk .hs-search-x { right: 24px; }
.hs-search-pop .hs-search-x { right: 32px; top: calc(50% - 5px); }
.hs-search-x svg { width: 14px; height: 14px; }
.hs-search-x:active { transform: translateY(-50%) scale(0.92); }
.hs-seg { display: flex; gap: 2px; padding: 3px; border-radius: 9999px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); }
.hs-seg button { flex: 1; font: inherit; font-weight: 800; font-size: 0.625rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 8px 6px; border: 0; border-radius: 9999px; background: transparent; color: #a1a1aa; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; -webkit-tap-highlight-color: transparent; }
.hs-seg button.on { background: linear-gradient(to bottom, #f3b52a, #d99a0a); color: #111; }
.hs-seg button .hs-count { background: rgba(255,255,255,0.1); color: #e4e4e7; }
.hs-seg button.on .hs-count { background: rgba(0,0,0,0.25); color: #111; }
.hs-kv { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 0.8125rem; }
.hs-kv:last-child { border-bottom: 0; }
.hs-kv > span:first-child { color: #a1a1aa; } .hs-kv b { font-weight: 700; text-align: right; }
.hs-stat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hs-stat { text-align: center; padding: 12px 6px; border-radius: 14px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); }
.hs-stat b { display: block; font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.375rem; color: #fff; }
.hs-stat span { font-size: 0.5625rem; letter-spacing: 0.16em; text-transform: uppercase; color: #71717a; font-weight: 800; }
.hs-empty { padding: 26px 12px; text-align: center; color: #71717a; font-size: 0.8125rem; }
.hs-tier { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 12px; border-radius: 14px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); cursor: pointer; font: inherit; color: #fff; text-align: left; -webkit-tap-highlight-color: transparent; }
.hs-tier:active { background: rgba(255,255,255,0.07); }
.hs-tier b { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1rem; }
.hs-tier .hs-days { font-weight: 900; font-size: 0.75rem; letter-spacing: 0.06em; animation: iri-spin 10s linear infinite;
    background: conic-gradient(from var(--iri-angle), rgb(var(--bif-1)), rgb(var(--bif-2)), rgb(var(--bif-3)), rgb(var(--bif-4)), rgb(var(--bif-5)), rgb(var(--bif-6)), rgb(var(--bif-7)), rgb(var(--bif-1)));
    -webkit-background-clip: text; background-clip: text; color: transparent; }
.hs-ring { width: 64px; height: 64px; border-radius: 9999px; margin: 0 auto; padding: 3px; animation: iri-spin 10s linear infinite;
    background: conic-gradient(from var(--iri-angle), rgb(var(--bif-1)), rgb(var(--bif-2)), rgb(var(--bif-3)), rgb(var(--bif-4)), rgb(var(--bif-5)), rgb(var(--bif-6)), rgb(var(--bif-7)), rgb(var(--bif-1))); }
.hs-ring > div { width: 100%; height: 100%; border-radius: 9999px; background: #0a0a0c; display: grid; place-items: center; font-size: 1.625rem; }
.hs-rpill { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 9999px; font-size: 0.6875rem; font-weight: 800; color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,0.3); box-shadow: inset 0 1px 0 rgba(255,255,255,0.35); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .hs-tier .hs-days, .hs-ring { animation: none; } }


/* ═══ RAILS — Trending Maintain + VIP Challenge Builder, 2026-09-17 ══════════════════════════
   Josh: "i dont like it being tons of posters to scroll though… side scrollers like plex's dashboard
   admins are used to." Round-two sample approved (https://claude.ai/artifact/6f5uc6qvFWLgg9PJZtAQ3V).
   One rail vocabulary for both admin screens. Snap + rubber-band like every strip in the app
   ([[ios-rubber-band-everywhere]]); scrollbars hidden. Plain CSS so staging sees it unbuilt. */
.hs-rail { display: flex; gap: 10px; overflow-x: auto; padding: 4px 12px 8px; scroll-snap-type: x mandatory; scroll-padding-left: 12px;
    -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scrollbar-width: none; }
.hs-rail::-webkit-scrollbar { display: none; }
/* 📏 A TILE IS ITS POSTER'S WIDTH, NEVER ITS CAPTION'S (Josh 2026-10-22: "make sure that the titles are scrolling so the
   spacing between the posters always remains the same" / "this poster spacing is exactly what I asked NOT to happen").
   A flex item's default `min-width: auto` is its min-content, and a nowrap title's min-content is the WHOLE title, so a
   long one widened its tile to ~370px. `min-width: 0` pins every tile to its basis; the title is a MarqueeText that
   scrolls INSIDE it. Same for `.hs-etile`. Guard: tests/test_picker_rail_tiles_webkit.js [G]. */
.hs-tile { flex: 0 0 96px; min-width: 0; scroll-snap-align: start; position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hs-tile-art { width: 96px; aspect-ratio: 2 / 3; border-radius: 10px; background: #15151c; position: relative; overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.06); transition: transform 0.18s cubic-bezier(0.2,1.4,0.3,1); }
.hs-tile:active .hs-tile-art { transform: scale(0.96); }
/* ⏱️ THE POSTER IS OUT OF FLOW (absolute, inset 0) — same 94x142 box, but not a `height: 100%` IN-FLOW child. Measured
   2026-10-22 on the 208-title collection rail (WebKit rig): an in-flow percent-height image is re-laid-out whenever its
   flex rail is, and railLock suspends/restores the rail's scroll-snap-type around every swipe (a layout change) — 19 ms
   each way with in-flow images, 1 ms with these. tests/test_picker_rail_tiles_webkit.js [P2]. */
.hs-tile-art img, .hs-tile-art .hs-tile-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hs-tile-cap { margin-top: 5px; font-size: 0.5625rem; color: #71717a; font-weight: 700; letter-spacing: 0.04em; line-height: 1.2; }
.hs-tile-cap b { display: block; color: #e4e4e7; font-size: 0.625rem; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-tile-add { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 9999px; border: 0; padding: 0; cursor: pointer;
    background: linear-gradient(to bottom, #f3b52a, #d99a0a); color: #111; display: grid; place-items: center; font-weight: 900; font-size: 1rem; line-height: 1;
    box-shadow: 0 3px 10px rgba(0,0,0,0.5); transition: background 0.2s, transform 0.2s cubic-bezier(0.2,1.4,0.3,1); -webkit-tap-highlight-color: transparent; }
.hs-tile.on .hs-tile-add { background: #39d98a; color: #052e16; }
.hs-tile.on .hs-tile-art::after { content: ''; position: absolute; inset: 0; border-radius: 10px; box-shadow: inset 0 0 0 2px #39d98a; pointer-events: none; }
.hs-tile-x { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 9999px; border: 1px solid rgba(255,255,255,0.15); padding: 0; cursor: pointer;
    background: rgba(0,0,0,0.7); color: #fff; display: grid; place-items: center; font-size: 0.6875rem; -webkit-tap-highlight-color: transparent; }
.hs-tile-badge { position: absolute; top: 6px; left: 6px; font-size: 0.4375rem; letter-spacing: 0.14em; font-weight: 900; text-transform: uppercase; padding: 2px 5px; border-radius: 6px;
    background: rgba(0,0,0,0.65); color: #fde68a; border: 1px solid rgba(229,160,13,0.4); pointer-events: none; }
.hs-tile-badge.auto { color: #c4b5fd; border-color: rgba(139,92,246,0.45); }
.hs-tile.door .hs-tile-art::before { content: '▸ episodes'; position: absolute; left: 6px; top: 6px; z-index: 1; font-size: 0.4375rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 900;
    color: #fff; background: rgba(0,0,0,0.6); padding: 2px 5px; border-radius: 6px; pointer-events: none; }
.hs-tile.sm { flex-basis: 72px; } .hs-tile.sm .hs-tile-art { width: 72px; }
.hs-tile.wide { flex-basis: 150px; } .hs-tile.wide .hs-tile-art { width: 150px; aspect-ratio: 16 / 10; }

/* the countdown pill — "5d left · day 5". Red under 24h. */
.hs-cd { display: inline-flex; align-items: stretch; border-radius: 9999px; overflow: hidden; border: 1px solid rgba(255,255,255,0.12);
    font-size: 0.5rem; font-weight: 900; letter-spacing: 0.06em; margin-top: 5px; white-space: nowrap; }
.hs-cd span { padding: 3px 6px; }
.hs-cd .hs-cd-left { background: linear-gradient(to bottom, #f3b52a, #d99a0a); color: #111; }
.hs-cd .hs-cd-shown { background: rgba(255,255,255,0.07); color: #d4d4d8; }
.hs-cd.warn .hs-cd-left { background: linear-gradient(to bottom, #fb7185, #be123c); color: #fff; }

/* episode tiles: the still is the tile, the code sits on the frame */
.hs-etile { flex: 0 0 148px; min-width: 0; scroll-snap-align: start; cursor: pointer; position: relative; -webkit-tap-highlight-color: transparent; }
.hs-etile-still { width: 148px; aspect-ratio: 16 / 9; border-radius: 10px; background: #15151c; position: relative; overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06); box-shadow: 0 8px 20px rgba(0,0,0,0.5); }
.hs-etile-still img, .hs-etile-still .hs-tile-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hs-etile-code { position: absolute; left: 6px; top: 6px; font-size: 0.5rem; font-weight: 900; letter-spacing: 0.12em; color: #fde68a; background: rgba(0,0,0,0.65); padding: 2px 6px; border-radius: 6px; pointer-events: none; }
.hs-etile .hs-tile-add { top: auto; bottom: 6px; width: 26px; height: 26px; }
.hs-etile.on .hs-tile-add { background: #39d98a; color: #052e16; }
.hs-etile.on .hs-etile-still::after { content: ''; position: absolute; inset: 0; border-radius: 10px; box-shadow: inset 0 0 0 2px #39d98a; pointer-events: none; }
.hs-etile-cap { margin-top: 5px; font-size: 0.59375rem; color: #71717a; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hs-etile-cap b { display: block; color: #e4e4e7; font-size: 0.65625rem; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* breadcrumb chips (show › season) */
.hs-crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hs-crumb { font: inherit; font-size: 0.625rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 10px; border-radius: 9999px;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); color: #d4d4d8; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hs-crumb.on { color: #fde68a; border-color: rgba(229,160,13,0.4); background: rgba(229,160,13,0.1); }
.hs-crumbs i { color: #71717a; font-size: 0.6875rem; font-style: normal; }

/* the line-up ring: fill = picked / cap */
.hs-lring { width: 56px; height: 56px; border-radius: 9999px; flex: 0 0 auto; display: grid; place-items: center; position: relative;
    background: conic-gradient(#e5a00d calc(var(--p, 0) * 1%), rgba(255,255,255,0.08) 0); }
.hs-lring::after { content: ''; position: absolute; inset: 5px; border-radius: 9999px; background: #0b0b0f; }
.hs-lring b { position: relative; z-index: 1; font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 0.8125rem; color: #fff; text-align: center; line-height: 1; }
.hs-lring b small { display: block; font-family: 'Outfit', sans-serif; font-size: 0.5rem; letter-spacing: 0.14em; color: #71717a; margin-top: 2px; }
.hs-rail-title { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: #e4e4e7; margin: 6px 12px 4px; display: flex; align-items: center; gap: 8px; }
.hs-rail-title .hs-more { margin-left: auto; font-family: 'Outfit', sans-serif; font-size: 0.625rem; letter-spacing: 0.12em; color: #71717a; font-weight: 800; }

/* ═══ VIP BUILDER — 2026-09-17 ═══════════════════════════════════════════════════════════════
   The VIP Challenge Builder reuses the RAILS block above verbatim (.hs-rail / .hs-tile / .hs-cd /
   .hs-etile / .hs-crumbs / .hs-lring / .hs-rail-title). Only two atoms were missing, both tiny,
   both here so nothing in another block has to move.
   Josh, 2026-09-17: "we def need a walkthough tab and a Challenge Builder tab". */

/* A whole tile that IS a button (the season tiles in the episode popup). Stripping the browser's
   button chrome in the stylesheet rather than with an inline style keeps the rule in one place
   and out of the JSX — and an inline `background:none` on a <button> is the kind of thing a
   later "tidy" deletes without noticing it was load-bearing. */
.hs-tilebtn { background: transparent; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; text-align: left; }

/* A multi-line plate — the challenge description. `.hs-plate` is a flex ROW built for one-line
   inputs; a <textarea> in it needs its rows back and its own scrollbar.
   ⚠️ SCOPED TO `textarea` ON PURPOSE. Four `<input className="hs-plate">` elements already
   shipped on this page (Settings Sweep II, 2026-09-17) and a bare `input.hs-plate { width:100% }`
   here would silently resize all of them. Width on MY inputs is a Tailwind `w-full` utility on
   the element instead — zero blast radius. */
textarea.hs-plate { display: block; width: 100%; box-sizing: border-box; min-height: 64px; line-height: 1.4; }

/* ═══ TRENDING FLAME — 2026-09-19 (Josh's one-piece original, dialled on the Flame Creator) ═══
   Sample H's CSS motion (.tflame-tongue / .tflame-ember keyframes) is gone: the flame is now ONE
   traced outline whose points bend on their own, so its motion is geometry, driven by a
   requestAnimationFrame loop in `static/components/TrendingFlame.jsx` (reduced motion = one still
   frame, decided there). Nothing in this file styles the flame any more; the class `.tflame` is
   kept on the <svg> as a hook for tests and the inspector. */

/* ═══════════════════════════════════════════════════════════════════════════════════════════════
   THE SHELL — 2026-09-18. Two unrelated asks, one block, because both are shell geometry.
   ═══════════════════════════════════════════════════════════════════════════════════════════════

   ── A. THE EMBERS GET OUT OF <main> ────────────────────────────────────────────────────────────
   Josh: "the embers from the new trending logo should be going up over the header too. Currently
   they get cut off at the header."

   MEASURED on staging 2026-09-18 (CDP, 430x932, the real ancestor chain above `.tflame`):
       #app-main-content   overflow-x: hidden  overflow-y: auto   top 64   height 868
       #app-header         z-index 30          bottom 64
       the flame's <svg>   top 72              embers reach top 16..51
   So the embers travel to y≈16, the header ends at y=64, and main's top edge IS y=64. Main was
   clipping them before the header ever got the chance to paint over them — the z-index was only
   HALF the cause, and fixing it alone would have changed nothing on screen.

   WHY THIS IS A CSS RULE AND NOT A CHANGE IN App.jsx. `<main>`'s className already switches
   overflow on four conditions and `tests/test_main_cannot_outgrow_the_shell.js` pins that
   expression character-for-character, for a good reason: dropping `.vertical-scroll-only` also
   drops its `touch-action: pan-y` and `overscroll-behavior-x: none`, which are what kill
   swipe-to-go-back. Overriding `overflow` ALONE keeps both of those, and `:has()` scopes it to the
   exact condition that matters — the Stream's chrome being mounted inside main — with no route
   string to go stale and no cleanup to forget when the page unmounts.

   SAFE BECAUSE MAIN NEVER SCROLLS ITSELF ON THE STREAM: StreamPage's root is `h-full` of main and
   all of its scrolling happens in `#stream-scroll-container`, so main's scrollHeight has always
   equalled its clientHeight there (measured). `min-h-0` on main still bounds the BOX — it is
   min-height, not clipping, so the shell still cannot be outgrown
   (tests/test_main_cannot_outgrow_the_shell.js is untouched and still green).
   Specificity: two IDs (`:has()` takes its argument's specificity) beats Tailwind's classes in the
   later stylesheet, so no `!important` is needed. The other half of the fix is `z-[35]` on
   `#stream-chrome` — see the long comment there. */
#app-main-content:has(#stream-chrome) { overflow: visible; }

/* ── B. BROWSER MODE — the shell is the DYNAMIC viewport ────────────────────────────────────────
   Josh: "if someone opens the app in a browser we can force the header and nav bar to be shown?
   Because the browser bars usually hide them. It just has to be smart so it doesn't mess with the
   app version people have installed."

   `html.in-browser` is stamped by App.jsx at boot and ONLY when the app is not installed — the
   full reasoning, including why the viewport meta is deliberately NOT changed, is in the comment
   above that stamp. Nothing below this line can execute in the installed PWA, so the standalone
   shell is unchanged by construction.

   THREE ELEMENTS, because all three are sized off the LARGE viewport today and a short `#root`
   inside a tall `body` would just be centred in it (body is `display:flex; align-items:center`)
   and hang below the visible band — fixing `#root` alone makes the bug WORSE, not better.
       html  height: 100%   (of the initial containing block = the large viewport)
       body  height: 100%   (same; and it is `position: fixed`, so the same containing block)
       #root height: 100vh  (set in style.css AND again in templates/index.html's inline <style>)

   The three declarations per rule are one cascade, not three options: a browser that knows none of
   them keeps `100vh` (today's behaviour), one that knows `-webkit-fill-available` but not `dvh`
   (iOS < 15.4) gets the visible height, and everything current lands on `100dvh`. Order is
   load-bearing — the last one the parser understands wins.

   `#root` needs the `html.in-browser` prefix to outrank the inline `#root { height: 100vh }` in
   index.html, which sits AFTER style.css in <head> and would otherwise win the tie.

   The nav's `padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 4px)` is deliberately NOT
   touched: with the browser's toolbar occupying the bottom of the screen the inset reports 0 and
   the calc already degrades to the same 4px it uses everywhere else. */
html.in-browser,
html.in-browser body {
    height: 100vh;
    height: -webkit-fill-available;
    height: 100dvh;
}
html.in-browser #root {
    height: 100vh;
    height: -webkit-fill-available;
    height: 100dvh;
}

/* ═══ EDIT PROFILE ON THE COVER — sample C, 2026-09-18 ══════════════════════════════════════════
   Josh: "Yup C at 65% looks great." — a CLEAR disc ("the inside of the icon… should be transparent"),
   the action strip's Bifrost ring (.astrip-ring, same iri-spin clock), a pencil, the whole control at
   65%. Sized to the sample's 34px; the ring keeps its 1.5px weight and its press-to-thicken. */
.astrip-disc.cover-edit { position: absolute; top: 8px; right: 8px; z-index: 10;   /* beats .astrip-disc's position:relative regardless of sheet order */
    width: 34px; height: 34px; background: transparent; opacity: 0.65; }
.astrip-disc.cover-edit svg { width: 18px; height: 18px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.85)); }

/* ═══ REQUESTS "FULL BIFROST" — request details = variant C, requests tab = B1 + E (2026-09-23) ═══
   Josh: "Def full Bifrost! But make sure those horizontal breaker lines are the plex gold gradient
   they are right now, but you can give them an animation too. Just don't make it too tasking on
   users phones to run all the cool stuff".
   Specs: _handoff/samples/2026-09-23-request-details-SPEC-variant-C.src.html,
          _handoff/samples/2026-09-23-requests-page-SPEC-B1.html (+ -requests-hero-SPEC-variant-E.html)
   Components: static/components/RequestBifrost.jsx · particles: static/components/requestsFx.js

   ⚡ THE PERFORMANCE CONTRACT (tests/test_requests_bifrost_spec.js enforces it):
     · Every @keyframes here moves transform and/or opacity ONLY. No looping box-shadow, filter,
       background-position or text-stroke. A breathing glow is a pseudo-element's OPACITY.
     · Glints, sheens, the band sweep and the glow pulses are ONE-SHOT el.animate() passes fired by
       useTwinkle() only while the element is live (on screen + app in the foreground); between
       passes nothing is animating. The few CSS loops left (the backdrop light drift, typing dots)
       are declared under `.rqx-live`, which useLive() sets on the same condition.
     · The only SPINNING rim is `.post-bifrost-wrap` (the poster / the hero) on the house clock.
       Every other rim below is a STATIC conic from 210deg — the `.photo-bifrost-rim` precedent,
       measured free, where an animated one doubled an idle feed's cost.
     · prefers-reduced-motion: the block at the bottom turns all of it off. */

/* the static Bifrost ramps (same palette as .post-bifrost-wrap, frozen at the house resting angle) */
:root {
    --rqx-bfs: conic-gradient(from 210deg, rgba(var(--bif-1),.55), rgba(var(--bif-2),.50), rgba(var(--bif-3),.45), rgba(var(--bif-4),.40), rgba(var(--bif-5),.45), rgba(var(--bif-6),.50), rgba(var(--bif-7),.55), rgba(var(--bif-1),.55));
    --rqx-bfx: conic-gradient(from 210deg, rgba(var(--bif-1),.95), rgba(var(--bif-2),.92), rgba(var(--bif-3),.90), rgba(var(--bif-4),.88), rgba(var(--bif-5),.90), rgba(var(--bif-6),.92), rgba(var(--bif-7),.95), rgba(var(--bif-1),.95));
    --rqx-bf-line: linear-gradient(to bottom, transparent, rgb(var(--bif-1)) 22%, rgb(var(--bif-2)) 38%, rgb(var(--bif-3)) 50%, rgb(var(--bif-5)) 64%, rgb(var(--bif-7)) 78%, transparent);
}

/* ── the poster rim: the brighter C ramp on the SAME shared spinning clock (one rim, not two) ── */
.post-bifrost-wrap.rqx-rim-bright {
    background: conic-gradient(from var(--iri-angle), rgba(var(--bif-1),.95), rgba(var(--bif-2),.92), rgba(var(--bif-3),.90), rgba(var(--bif-4),.88), rgba(var(--bif-5),.90), rgba(var(--bif-6),.92), rgba(var(--bif-7),.95), rgba(var(--bif-1),.95));
    box-shadow: 0 0 18px rgba(var(--bif-halo-1),.30), 0 6px 36px rgba(0,0,0,.82);
}

/* ── the living backdrop: LIGHT moves, the art never does ── */
.rqx-light { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.rqx-light i { position: absolute; left: -25%; top: -15%; width: 150%; height: 130%; opacity: .6;
    background:
        radial-gradient(closest-side at 22% 20%, rgba(120,180,255,.34), rgba(120,180,255,.12) 55%, transparent),
        radial-gradient(closest-side at 80% 52%, rgba(200,150,255,.30), rgba(200,150,255,.10) 55%, transparent),
        radial-gradient(closest-side at 45% 88%, rgba(255,240,130,.22), rgba(255,240,130,.07) 55%, transparent);
    background-size: 62% 48%, 62% 48%, 62% 48%; background-repeat: no-repeat;
    background-position: 0% 0%, 100% 45%, 40% 100%; }
/* steps(120) over 27s: the light moves ~0.5px per step, ~4 updates a second instead of 60 — the
   iri-spin trick (see @keyframes iri-spin), invisible on a blurred drift and a fraction of the cost. */
.rqx-light.rqx-live i { animation: rqx-ld 27s steps(120) infinite alternate; }
@keyframes rqx-ld { 0% { transform: translate(0, 0); } 50% { transform: translate(7%, 5%); } 100% { transform: translate(-6%, -4%); } }

/* ── THE HORIZONTAL BREAKERS: Plex gold, never Bifrost, the gold FLOWING slowly along them ──
   Josh 2026-09-28: "a Plex gold gradient that just slowly moves through the existing breaker bars."
   .rqx-flow is twice the bar's width carrying TWO identical periods of the ramp (deep > Plex > pale > Plex > deep),
   slid left-to-right by exactly one period, so the loop is seamless. TRANSFORM only (never background-position),
   and only on a live bar. GoldBreaker phases every bar's delay to the page clock: one flow, not three.
   The bar's own background is the static fallback; the mask keeps the old fade-out edges. */
.rqx-brk { position: relative; height: 2px; width: 100%; overflow: hidden; contain: strict;
    background: linear-gradient(to right, transparent, rgba(250,204,21,.5), transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 25%, #000 75%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 25%, #000 75%, transparent); }
.rqx-brk.rqx-brk-thin { height: 1px; background: linear-gradient(to right, transparent, rgba(250,204,21,.45) 20%, rgba(250,204,21,.45) 80%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 20%, #000 80%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 20%, #000 80%, transparent); }
.rqx-flow { position: absolute; left: 0; top: 0; width: 200%; height: 100%; opacity: .9; pointer-events: none; transform: translateX(-50%);
    background: linear-gradient(90deg, #a8700a 0%, #e5a00d 12.5%, #ffe7a8 25%, #e5a00d 37.5%, #a8700a 50%, #e5a00d 62.5%, #ffe7a8 75%, #e5a00d 87.5%, #a8700a 100%); }
.rqx-brk-thin .rqx-flow { opacity: .8; }
/* 7s: keep in step with BRK_FLOW_MS in RequestBifrost.jsx */
.rqx-brk.rqx-live .rqx-flow { animation: rqx-brkflow 7s linear infinite; }
@keyframes rqx-brkflow { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ── the title sheen: a light band passes over the gold title (transform, never background-position) ── */
.rqx-ttl { position: relative; overflow: hidden; }
.rqx-ttl-sheen { position: absolute; top: 0; bottom: 0; left: 0; width: 40%; pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255,246,191,.55) 50%, transparent); mix-blend-mode: color-dodge;
    transform: translateX(-120%); opacity: 0; }

/* ── the plot's soft fades (C) now come from the shared nested scroller ([data-nest-scroll], end of file):
   bottom while text is hidden below, top once scrolled, nothing at an end with nothing past it (Josh 2026-10-02:
   "that bottom line in the plot is fading before the poster end"). RequestPlot passes fade 18. ── */

/* requester + timestamp on ONE line, always: the name gives way, the stamp never wraps */
.rqx-who { min-width: 0; flex: 0 1 auto; }
.rqx-who p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rqx-stamp { white-space: nowrap; flex: 0 0 auto; }
.rqx-vline { width: 1px; height: 12px; flex: 0 0 auto; background: var(--rqx-bf-line); }

/* ── chips (quality / edition) in a static Bifrost rim ── */
.rqx-chip { font-size: 0.75rem; line-height: 1rem; font-weight: 700; color: #fff6bf; padding: 2px 8px; border-radius: 9999px;
    border: 1px solid transparent; background: linear-gradient(#1a1a1f, #1a1a1f) padding-box, var(--rqx-bfx) border-box;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }

/* ── Notify Me: glass when off, a Bifrost rim when on ── */
.rqx-notify:not(:disabled) { background: linear-gradient(to bottom, #2c2c31, #232327); box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 2px 6px rgba(0,0,0,.4); }
.rqx-notify.on:not(:disabled) { border-color: transparent; background: linear-gradient(#1c1c20, #1c1c20) padding-box, var(--rqx-bfx) border-box; color: #facc15; }

/* ── THE MEDIA BAND: stills / trailer, edge to edge, one slot ── */
.rqx-band { position: relative; margin: 4px -16px 0; --tw: 208px; --th: 117px; contain: layout paint; }
.rqx-bhd { margin: 0 0 6px; padding: 0 16px; font-size: 0.75rem; line-height: 1rem; font-weight: 700; text-transform: uppercase; color: #a1a1aa; }
.rqx-rail-wrap { position: relative; }
.rqx-rail { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-left: 16px; scrollbar-width: none;
    padding: 2px 16px 6px;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 28px), transparent); }
.rqx-rail::-webkit-scrollbar { display: none; }
.rqx-track { display: flex; gap: 10px; width: max-content; }
.rqx-tile { position: relative; flex: 0 0 auto; width: var(--tw); height: var(--th); border-radius: 12px; overflow: hidden; scroll-snap-align: start;
    border: 0; padding: 0; background: #07080c; color: #fff; text-align: left; box-shadow: 0 8px 22px rgba(0,0,0,.55);
    transition: transform .15s; -webkit-tap-highlight-color: transparent; }
.rqx-tile:active { transform: scale(.96); }
.rqx-tile::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: var(--rqx-bfs); z-index: 3; pointer-events: none;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
.rqx-tile.more { display: grid; place-items: center; width: 108px; background: rgba(255,255,255,.035); box-shadow: none; }
.rqx-tile.more::before { padding: 1px; opacity: .7; }
.rqx-tile.more b { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 0.75rem; color: #facc15; letter-spacing: .06em; }
.rqx-tile-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* SAMPLER B (Josh 2026-10-02): the season chips are ONE single-line swipe rail (never wraps), elastic via
   useElasticStrip; the band's own 16px gutter is the rail's padding AND its scroll-padding. */
.rqx-srail { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; padding: 2px 16px 6px; scroll-padding-left: 16px; }
.rqx-srail::-webkit-scrollbar { display: none; }
.rqx-srail-track { display: flex; flex-wrap: nowrap; gap: 6px; width: max-content; }
.rqx-season { flex: 0 0 auto; white-space: nowrap; font-size: 0.71875rem; line-height: 0.9375rem; font-weight: 700; padding: 5px 11px; border-radius: 9999px;
    color: #a1a1aa; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.12); -webkit-tap-highlight-color: transparent; transition: transform .15s; }
.rqx-season:active { transform: scale(.95); }
.rqx-season small { font-size: inherit; font-weight: 600; opacity: .75; }
/* Josh 2026-10-02: "put the REQUESTED: on the same lines as the season pills" - the label heads the chip rail. */
.rqx-shead { display: flex; align-items: center; padding-left: 16px; }
.rqx-shead .rqx-bhd-in { flex: 0 0 auto; margin: 0 8px 4px 0; padding: 0; }   /* the 4px offsets the rail's 2px/6px padding so text and chips share a centre */
.rqx-shead .rqx-srail { flex: 1 1 auto; min-width: 0; padding-left: 0; scroll-padding-left: 0; }
.rqx-season.on { color: #f4f4f5; border-color: transparent; background: linear-gradient(#141418, #141418) padding-box, var(--rqx-bfx) border-box; }
/* before stills exist: B's smaller tile, the season poster washed in glass (no "Soon" tag — the RELEASE DATE pill says it) */
.rqx-band.rqx-band-wash { --tw: 150px; --th: 86px; }
.rqx-wash { position: absolute; inset: 0; overflow: hidden; background: #101015; }
.rqx-wash-art { position: absolute; left: -20%; top: -20%; width: 140%; height: 140%; object-fit: cover; filter: blur(14px) saturate(1.4); opacity: .7; }
.rqx-wash::after { content: ''; position: absolute; inset: 0;
    background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,0) 42%), linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,.05) 70%); }
.rqx-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 18px 8px 6px; display: grid; gap: 1px;
    background: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,0)); }
.rqx-cap b { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 0.53125rem; letter-spacing: .14em; color: #facc15; text-transform: uppercase; line-height: 1.2; }
.rqx-cap span { font-size: 0.65625rem; line-height: 0.8125rem; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* play disc: static Bifrost ring; its pulse is a pseudo-element's opacity */
.rqx-pd { position: absolute; left: 50%; top: 42%; z-index: 2; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center; background: rgba(0,0,0,.55); color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.6); }
.rqx-pd.big { width: 56px; height: 56px; top: 50%; }
.rqx-pd svg { width: 18px; height: 18px; margin-left: 2px; position: relative; z-index: 1; }
.rqx-pd::before { content: ''; position: absolute; inset: 0; border-radius: 50%; padding: 1.5px; background: var(--rqx-bfx);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
.rqx-pd-glow { position: absolute; inset: -4px; border-radius: 50%; box-shadow: 0 0 18px rgba(200,170,255,.55); opacity: 0; pointer-events: none; }
/* the band's YouTube trailer: the Stream's <TrailerEmbed/> at the tile's footprint (its rim wrapper carries mt-2) */
.rqx-trl { width: var(--tw); margin: -8px 16px 0; padding-bottom: 6px; }

/* ── the centred media / episode popup, in a static Bifrost rim ── */
.rqx-pop { border-radius: 16px; padding: 1.5px; background: var(--rqx-bfs); box-shadow: 0 0 18px rgba(var(--bif-halo-1),.18), 0 0 40px rgba(var(--bif-halo-2),.1), 0 6px 36px rgba(0,0,0,.82); }
.rqx-pop-in { border-radius: 14.5px; background: #18181b; padding: 16px; box-shadow: inset 0 2px 0 rgba(255,255,255,.09), inset 0 -1.5px 0 rgba(0,0,0,.4); }
.rqx-eyeb { margin: 0 0 6px; font-size: 0.625rem; font-weight: 900; text-transform: uppercase; letter-spacing: .14em; color: #facc15; }
.rqx-pop-title { margin: 0 0 8px; font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 0.875rem; letter-spacing: .02em; color: #fff; line-height: 1.3; }
.rqx-still { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #07080c; margin-bottom: 8px; }
.rqx-still iframe, .rqx-still video, .rqx-still-art { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; display: block; }
.rqx-still video { object-fit: contain; background: #000; }
.rqx-pop-close { margin-top: 12px; width: 100%; padding: 8px; border: 0; border-radius: 12px; background: #3f3f46; color: #fff; font-size: 0.875rem; font-weight: 700; }

/* ── the vote / expedite block: gold hairlines above and below (glinting), glass inside ── */
.rqx-vblk { background: linear-gradient(to bottom, rgba(255,255,255,.04), rgba(255,255,255,.012)); }
.rqx-sep { width: 1px; height: 40px; align-self: center; flex: 0 0 auto; background: var(--rqx-bf-line); }

/* ── THE NEW EXPEDITE BUTTON: Poppins 800 + a gold bolt, Bifrost rim, embers ── */
.rqx-xwrap { position: relative; width: 100%; height: 100%; display: flex; align-items: center; }
.rqx-embers { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: calc(100% + 64px); pointer-events: none; z-index: 3; }
.rqx-xnew { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 50px; /* 68 -> 50 (Josh 2026-10-02: "thin the expedite button from top to bottom a bit") */ border: 0; border-radius: 16px;
    padding: 1.5px; background: var(--rqx-bfx); color: #facc15; cursor: pointer; text-align: left; overflow: hidden;
    box-shadow: 0 0 16px rgba(var(--bif-halo-1),.25), 0 6px 20px rgba(0,0,0,.5); transition: transform .15s; -webkit-tap-highlight-color: transparent; }
.rqx-xnew:active { transform: scale(.96); }
.rqx-xin { position: absolute; inset: 1.5px; border-radius: 14.5px; background: rgba(12,12,18,.94); box-shadow: inset 0 2px 0 rgba(255,255,255,.09), inset 0 -1.5px 0 rgba(0,0,0,.4); }
.rqx-xglow { position: absolute; inset: 0; border-radius: 16px; box-shadow: 0 0 26px rgba(var(--bif-halo-1),.5); opacity: 0; pointer-events: none; }
.rqx-bolt { position: relative; z-index: 1; width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; color: #facc15; }
.rqx-bolt svg { position: relative; width: 26px; height: 26px; filter: drop-shadow(0 0 7px rgba(250,204,21,.85)); }
.rqx-boltglow { position: absolute; inset: -6px; border-radius: 50%; background: radial-gradient(closest-side, rgba(250,204,21,.55), transparent); opacity: 0; }
.rqx-xt { position: relative; z-index: 1; display: grid; gap: 3px; min-width: 0; }
.rqx-xt b { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 0.8125rem; line-height: 1.05; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
    background: linear-gradient(100deg, #fff6bf, #facc15 40%, #ffb464 70%, #fff6bf); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rqx-xt small { font-size: 0.59375rem; line-height: 1; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #fde68a; opacity: .85; white-space: nowrap; }
.rqx-sheen { position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: 16px;
    background: linear-gradient(100deg, transparent 35%, rgba(255,255,255,.22) 50%, transparent 65%); transform: translateX(-140%); }


/* ── the green vote pill (.vmini) + the red down pill ── */
.rqx-vmini { position: relative; overflow: hidden; display: flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px 0 7px; border-radius: 9999px;
    font-size: 0.78125rem; font-weight: 800; flex: 0 0 auto; color: #fff; background: rgba(61,220,87,.12); border: 1px solid rgba(61,220,87,.45);
    -webkit-tap-highlight-color: transparent; }
.rqx-vmini .rqx-vico { width: 14px; height: 14px; color: #3ddc57; flex: 0 0 auto; }
.rqx-vmini.on { background: #3ddc57; color: #06210c; box-shadow: 0 0 14px rgba(61,220,87,.45); }
.rqx-vmini.on .rqx-vico { color: #06210c; }
.rqx-vmini .rqx-num { line-height: 1; min-width: 14px; text-align: center; font-variant-numeric: tabular-nums; }
.rqx-vsheen { position: absolute; inset: 0; border-radius: 9999px; pointer-events: none; opacity: 0;
    background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); transform: translateX(-140%); }
.rqx-vmini:disabled, .rqx-vdn:disabled { opacity: .6; }
.rqx-vdn { display: grid; place-items: center; height: 26px; width: 26px; padding: 0; border-radius: 9999px; flex: 0 0 auto;
    background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.35); color: #f87171; -webkit-tap-highlight-color: transparent; }
.rqx-vdn .rqx-vico { width: 13px; height: 13px; }
.rqx-vdn.on { background: #ef4444; color: #fff; box-shadow: 0 0 12px rgba(239,68,68,.4); }
.rqx-plus1 { position: fixed; z-index: 260; pointer-events: none; font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 0.875rem; color: #3ddc57;
    text-shadow: 0 0 10px rgba(61,220,87,.7); transform: translate(-50%, 0); animation: rqx-rise .9s ease-out forwards; }
.rqx-plus1.red { color: #f87171; text-shadow: 0 0 10px rgba(248,113,113,.7); }
@keyframes rqx-rise { to { transform: translate(-50%, -34px); opacity: 0; } }

/* ── comments on THIS page only: a Bifrost trim on the bubble, a gold spine down each reply thread.
      CommentSection is shared with the Stream, so every rule is scoped under .rqx-cmts. ── */
.rqx-cmts [data-comment-bubble] { background: linear-gradient(135deg, rgba(30,30,40,.94), rgba(40,40,52,.94)) !important; }
.rqx-cmts [data-comment-bubble]::before { content: ''; position: absolute; inset: -1px; border-radius: 13px; padding: 1px; background: var(--rqx-bfs); opacity: .7; pointer-events: none;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
.rqx-cmts [data-comment-replies] { position: relative; }
.rqx-cmts [data-comment-replies]::before { content: ''; position: absolute; left: -24px; top: 10px; bottom: 10px; width: 1px; pointer-events: none;
    background: linear-gradient(to bottom, transparent, rgba(250,204,21,.45), transparent); }

/* ════ REQUESTS TAB (B1 hero + rails, E counts) ════ */
.rqx-hero { margin: 14px 16px 2px; }
.rqx-hero-in { position: relative; display: grid; grid-template-columns: 104px 1fr; gap: 12px; align-items: stretch; overflow: hidden;
    border-radius: 16.5px; background: rgba(14,14,18,.94); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.rqx-hp { position: relative; width: 104px; aspect-ratio: 2 / 3; border-radius: 16.5px 0 0 16.5px; overflow: hidden; background: #27272a; }
.rqx-hp-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rqx-xbadge { position: absolute; top: 7px; right: 7px; z-index: 11; display: flex; align-items: center; gap: 2px; padding: 3px 5px; border-radius: 4px;
    background: #facc15; color: #000; font-size: 0.625rem; font-weight: 900; line-height: 1; }
.rqx-xbadge svg { width: 10px; height: 10px; }
.rqx-hi { min-width: 0; height: 156px; display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 8px 0; }
.rqx-eyebrow { font-size: 0.59375rem; letter-spacing: .2em; font-weight: 800; text-transform: uppercase; color: #facc15; line-height: 1.2; }
.rqx-ht { margin: 0; font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.0625rem; line-height: 1.15; color: #fff;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 0 0 auto; }
.rqx-ht small { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 0.75rem; color: #a1a1aa; }
.rqx-plot { position: relative; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    font-size: 0.75rem; line-height: 1.125rem; color: #d4d4d8; padding: 4px 0; }   /* fades: [data-nest-scroll] (useNestedScroll) */
.rqx-plot::-webkit-scrollbar { display: none; }
.rqx-plot p { margin: 0; padding: 0 0 12px; }
.rqx-hfoot { position: relative; flex: 0 0 26px; height: 26px; display: flex; align-items: center; gap: 7px; min-width: 0; cursor: default; }

/* the live ticker: a STATIC Bifrost rim (the hero's rim is the one that spins) */
.rqx-tick { flex: 1 1 auto; min-width: 0; height: 26px; padding: 1.5px; border: 0; border-radius: 9999px; background: var(--rqx-bfs); color: #fff; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.rqx-tick-in { display: flex; align-items: center; gap: 6px; height: 100%; min-width: 0; padding: 0 9px 0 7px; border-radius: 9999px; background: #101016; }
.rqx-n { position: relative; display: grid; place-items: center; width: 18px; height: 18px; flex: 0 0 auto; }
.rqx-nico { width: 14px; height: 14px; }
.rqx-n b { position: absolute; right: -6px; top: -5px; min-width: 13px; height: 13px; padding: 0 3px; border-radius: 9999px; display: grid; place-items: center;
    font-size: 0.53125rem; font-weight: 900; line-height: 1; color: #111; background: var(--rqx-bfx); font-variant-numeric: tabular-nums; }
.rqx-win { position: relative; flex: 1; min-width: 0; height: 23px; overflow: hidden; margin-left: 4px;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent); }
.rqx-rows { display: block; transition: transform .5s cubic-bezier(.3,1.2,.5,1); }
.rqx-rows.jump { transition: none; }
.rqx-trow { height: 23px; display: flex; align-items: center; gap: 4px; font-size: 0.6875rem; color: #d4d4d8; white-space: nowrap; overflow: hidden; min-width: 0; text-align: left; }
.rqx-trow .t { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rqx-face { width: 15px; height: 15px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: #3f3f46; }
.rqx-tdots { display: inline-flex; gap: 3px; flex: 0 0 auto; margin-left: 2px; }
.rqx-tdots i { width: 5px; height: 5px; border-radius: 50%; background: #e4e4e7; opacity: .45; }
.rqx-live .rqx-tdots i { animation: rqx-td 1.1s ease-in-out infinite; }
.rqx-live .rqx-tdots i:nth-child(2) { animation-delay: .15s; } .rqx-live .rqx-tdots i:nth-child(3) { animation-delay: .3s; }
@keyframes rqx-td { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-3px); opacity: 1; } }

/* the request bar — centred, never in the header; static Bifrost rim */
.rqx-req { display: block; width: calc(100% - 32px); margin: 12px 16px 0; padding: 1.5px; border: 0; border-radius: 14px; background: var(--rqx-bfx); color: #fff;
    box-shadow: 0 0 18px rgba(160,140,255,.35); cursor: pointer; transition: transform .15s; -webkit-tap-highlight-color: transparent; }
.rqx-req:active { transform: scale(.97); }
.rqx-req > span { display: flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: 12.5px; background: #0e0e15; }
.rqx-req i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--rqx-bfx); color: #111; font-size: 1.125rem; font-weight: 700; line-height: 1; }
.rqx-req b { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 0.8125rem; letter-spacing: .08em; text-transform: uppercase; }

/* rails */
.rqx-rh { display: flex; align-items: center; gap: 8px; padding: 14px 16px 8px; }
.rqx-rh b { min-width: 0; }   /* type = .ttl-sec */
.rqx-rh em { font-style: normal; font-size: 0.59375rem; letter-spacing: .08em; font-weight: 700; padding: 2px 8px; border-radius: 9999px; background: rgba(255,255,255,.07); color: #d4d4d8; }
.rqx-rh em.g { color: #3ddc57; }
.rqx-rh .r { margin-left: auto; font-size: 0.625rem; font-weight: 600; color: #71717a; }
.rqx-lane { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-left: 16px; scrollbar-width: none; padding: 2px 16px 6px; }
.rqx-lane::-webkit-scrollbar { display: none; }
.rqx-lane .rqx-track { gap: 10px; }
.rqx-cell { flex: 0 0 108px; width: 108px; scroll-snap-align: start; }
.rqx-cell.sm { flex-basis: 92px; width: 92px; }
/* RequestCard's stats row is sized for a 1/3-width grid cell; at the spec's 92px it clipped the
   comment count. Tighten it inside the small rail only (the card itself is unchanged elsewhere). */
.rqx-cell.sm .text-xs { font-size: 0.65625rem; }
.rqx-cell.sm svg { width: 12px; height: 12px; }
.rqx-cell.sm .space-x-2 > :not([hidden]) ~ :not([hidden]) { margin-left: 5px; }
.rqx-cell.sm .space-x-1 > :not([hidden]) ~ :not([hidden]) { margin-left: 2px; }
.rqx-empty { text-align: center; color: #71717a; font-size: 0.875rem; padding: 8px 16px 12px; }

@media (prefers-reduced-motion: reduce) {
    .rqx-light, .rqx-embers { display: none !important; }
    .rqx-flow { animation: none !important; }   /* the static gold ramp stays */
    .rqx-ttl-sheen, .rqx-sheen, .rqx-vsheen, .rqx-xglow, .rqx-pd-glow, .rqx-boltglow { animation: none !important; opacity: 0 !important; }
    .rqx-tdots i { animation: none !important; }
    .rqx-rows { transition: none !important; }
}

/* ═══ REACTION SPAWNING — the Soap Halo water pill + the spawning layer (2026-09-24) ═════════════════
   Ported from the approved sample (_handoff/samples/2026-09-24-reaction-spawning-SPEC.src.html, `.glass`
   + `.W` + `.L-soaphalo`) at HIS dialled numbers: tint .54 black, refraction .15, border .5, highlight 1,
   fade width 3px, backdrop blur 6 ON. The engine is static/components/reactionSpawn.js. The pill is only
   the CONTAINER: where it sits is still decided by the wrapper each surface already had. */
.rx-glass{position:relative;height:30px;width:max-content;border-radius:999px;display:flex;align-items:center;padding:0 5px;cursor:pointer;
  --icon:26px;--ov:-6px;--tintc:0,0,0;--tinta:.54;--blur:6px;--bord:.5;--refr:.15;--fade:3px;--hl:1;--pc:#facc15;--pcrgb:250,204,21;--haloa:0;
  isolation:isolate;transform-origin:50% 50%;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none}
.rx-glass .rxg-back,.rx-glass .rxg-rim{position:absolute;inset:0;border-radius:inherit;pointer-events:none}
.rx-glass .rxg-back{background:radial-gradient(ellipse 70% 60% at 50% 115%,rgba(var(--pcrgb),calc(var(--tinta)*.9)),rgba(var(--pcrgb),0) 70%),
  linear-gradient(180deg,rgba(255,255,255,calc(.16*var(--hl))) 0%,rgba(255,255,255,.03) 45%,rgba(0,0,0,.10) 100%),rgba(var(--tintc),var(--tinta));
  /* Soap Halo: no dark drop shadow under the water, so nothing reads as a gap between it and the halo */
  box-shadow:inset 0 -3px 5px rgba(0,0,0,.28),inset 0 1px 1px rgba(255,255,255,calc(.6*var(--hl))),inset 0 0 0 1px rgba(255,255,255,calc(.3*var(--bord)));
  isolation:isolate;}
.rx-glass .rxg-rim{box-shadow:inset 0 0 calc(var(--refr)*7px) rgba(255,255,255,calc(var(--refr)*.22));
  background:conic-gradient(from 210deg,rgba(168,85,247,.4),rgba(56,189,248,.35),rgba(45,212,191,.3),rgba(163,230,53,.3),rgba(244,114,182,.4),rgba(168,85,247,.4));opacity:.55;mix-blend-mode:screen}
/* Josh 2026-09-27, pill highlights sampler: "Shouldn't they have a fade or a blended effect?" -> his FINAL:
   blur 6px + fully tapered sides, top shine .7, spot shine .85 at 47% wide, corner splash .65 / 35% / 5.75px / 8% from right.
   One rule set, so the small pill and the giant reactions-popup pill both get it. */
.rx-glass .rxg-spec,.rx-soap .rxg-spec{position:absolute;left:7%;top:8%;width:47%;height:34%;border-radius:999px;pointer-events:none;background:linear-gradient(180deg,rgba(255,255,255,calc(.55*var(--hl))),rgba(255,255,255,0));opacity:.85;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 50%,transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 50%,transparent 100%);filter:blur(6px)}
.rx-glass .rxg-men,.rx-soap .rxg-men{position:absolute;left:12%;right:12%;top:1px;height:38%;border-radius:999px;pointer-events:none;background:linear-gradient(180deg,rgba(255,255,255,calc(.42*var(--hl))),rgba(255,255,255,0) 80%);opacity:.7;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 50%,transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 50%,transparent 100%);filter:blur(6px)}
.rx-glass .rxg-caus,.rx-soap .rxg-caus{position:absolute;right:8%;bottom:10%;width:35%;height:46%;border-radius:999px;pointer-events:none;background:radial-gradient(ellipse at 55% 55%,rgba(255,255,255,calc(.5*var(--hl))),rgba(255,255,255,0) 70%);opacity:.65;filter:blur(5.75px)}
.rx-glass .rxg-icons{position:relative;display:flex;align-items:center;height:100%;z-index:2}
.rx-glass .rxg-icons img{width:var(--icon);height:var(--icon);object-fit:contain;flex:none;filter:drop-shadow(-3px 0 2px rgba(0,0,0,.35));-webkit-user-drag:none}
.rx-glass .rxg-icons img+img,.rx-glass .rxg-mag img+img{margin-left:var(--ov)}
.rx-glass .rxg-icons.faded{-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 var(--fade),#000 100%);mask-image:linear-gradient(90deg,transparent 0,#000 var(--fade),#000 100%)}
.rx-glass .rxg-mag{position:absolute;inset:0;z-index:3;pointer-events:none;display:flex;align-items:center;padding:0 5px;opacity:min(1,calc(var(--refr)*1.6));transform:scale(calc(1 + var(--refr)*.14));
  -webkit-mask-image:radial-gradient(ellipse 58% 52% at 50% 44%,#000 62%,transparent 70%);mask-image:radial-gradient(ellipse 58% 52% at 50% 44%,#000 62%,transparent 70%)}
.rx-glass .rxg-mag img{width:var(--icon);height:var(--icon);object-fit:contain;flex:none}
/* 🧛 VAMP (Josh 2026-09-27): the glow stack is ONE box — icon + teeth + halos all left:0/top:0/100%, the halos grown
   from the centre by transform (never a bigger box with a negative inset: `img{max-width:100%}` squeezed that one off
   centre). Opacities are written by components/vampGlow.jsx. */
.vg{position:relative;display:inline-block;flex:none;vertical-align:middle}
.vg>img{position:absolute;display:block;left:0!important;top:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;margin:0!important;object-fit:fill!important;transform-origin:50% 50%}
.vg>.vg-b,.vg>.vg-h,.vg>.vg-w{opacity:0;pointer-events:none;filter:none!important;will-change:opacity}
.vg>.vg-h{transform:scale(1.5)}.vg>.vg-w{transform:scale(2)}
/* 🦌 Rudolph'd (Josh 2026-11-14 sampler r4): a red light 2.33x his art (2.1x the icon box since the art is baked at 90%; grown by transform, never a bigger box) centred ON his nose, over his face, and a white-hot
   point on the nose. Opacity = the glow ramp (vampGlow.jsx .vgt); in the reaction card (.rxd-vg) they are simply on. */
.vg-cloud,.vg-spark{position:absolute;border-radius:50%;pointer-events:none;mix-blend-mode:screen;opacity:0}
.vg-cloud{left:62.5%;top:57.7%;width:100%;height:100%;transform:translate(-50%,-50%) scale(2.1);background:radial-gradient(circle,rgba(255,130,110,1) 0%,rgba(255,55,40,.9) 3%,rgba(255,45,35,.55) 8%,rgba(255,45,35,.28) 18%,rgba(255,45,35,.11) 36%,rgba(255,45,35,.03) 55%,rgba(255,45,35,0) 70%)}
.vg-spark{left:62.5%;top:57.7%;width:39.6%;height:39.6%;transform:translate(-50%,-50%);background:radial-gradient(circle,rgba(255,245,235,1) 0%,rgba(255,170,150,.9) 12%,rgba(255,60,45,.55) 32%,rgba(255,45,35,.15) 52%,rgba(255,45,35,0) 70%)}
.rx-glass .rxg-icons>.vg,.rx-glass .rxg-mag>.vg{width:var(--icon);height:var(--icon)}
.rx-glass .rxg-icons>.vg+*,.rx-glass .rxg-icons>*+.vg,.rx-glass .rxg-mag>.vg+*,.rx-glass .rxg-mag>*+.vg{margin-left:var(--ov)}
/* 🫧 THE "YOUR REACTION" PILL = SOAP BUBBLE, look C "Tinted bubble" (Josh 2026-09-27, spec _handoff/samples/soap-pills-2026-09-27):
   tint .3, pool .54, fill .45, halo 0, irid .7, blur 6, border .5, refract .15, highlight 1, white text, no wobble.
   The shine (.rxg-spec/.rxg-men/.rxg-caus) is the .rx-glass rule set above. Markup: components/soapPill.jsx.
   The reaction colour in the glass is a linear-gradient layer: a bare rgba() in a non-last layer voids the declaration. */
.rx-soap{position:relative;isolation:isolate;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.55);
  --pc:#eab308;--pcrgb:234,179,8;--tinta:.3;--pool:.54;--fill:.45;--irid:.7;--blur:6px;--bord:.5;--refr:.15;--hl:1}
.rx-soap .rxs-l{position:absolute;inset:0;border-radius:inherit;pointer-events:none}
.rx-soap .rxs-back{z-index:0;background:radial-gradient(ellipse 70% 60% at 50% 115%,rgba(var(--pcrgb),calc(var(--pool)*.9)),rgba(var(--pcrgb),0) 70%),
  linear-gradient(180deg,rgba(255,255,255,calc(.16*var(--hl))) 0%,rgba(255,255,255,.03) 45%,rgba(0,0,0,.10) 100%),
  linear-gradient(rgba(var(--pcrgb),var(--fill)),rgba(var(--pcrgb),var(--fill))),rgba(0,0,0,var(--tinta));
  box-shadow:inset 0 -3px 5px rgba(0,0,0,.28),inset 0 1px 1px rgba(255,255,255,calc(.6*var(--hl))),inset 0 0 0 1px rgba(255,255,255,calc(.3*var(--bord)));
  isolation:isolate;}
.rx-soap .rxs-rim{z-index:1;box-shadow:inset 0 0 calc(var(--refr)*7px) rgba(255,255,255,calc(var(--refr)*.22));
  background:conic-gradient(from 210deg,rgba(168,85,247,.4),rgba(56,189,248,.35),rgba(45,212,191,.3),rgba(163,230,53,.3),rgba(244,114,182,.4),rgba(168,85,247,.4));opacity:calc(.55*var(--irid));mix-blend-mode:screen}
.rx-soap .rxs-clip{z-index:2;overflow:hidden}
.rx-soap>img{z-index:3}
.rx-soap .rxs-t{position:relative;z-index:3}
/* 🧛 Vamp's pill is his blood-band art on white (inline background), with the same shine and no drop shadow */
.rx-soap.rx-soap-vamp{box-shadow:inset 0 0 0 1px rgba(0,0,0,.12)}
.rx-glass .rxg-tintover{position:absolute;inset:0;border-radius:inherit;z-index:4;pointer-events:none;background:linear-gradient(180deg,rgba(var(--tintc),0) 30%,rgba(var(--tintc),calc(var(--tinta)*.9)) 100%);mix-blend-mode:soft-light}
.rx-glass .rxg-count{font-size:0.6875rem;font-weight:700;color:#fff;margin:0 3px 0 5px;text-shadow:0 1px 2px rgba(0,0,0,.6);position:relative;z-index:5;font-variant-numeric:tabular-nums;line-height:1}
/* the halo HUGS the pill (inset 0 + a spread shadow, no dark ring between them) and is a child of it, so the
   spring's squash and stretch carry it along; it lights on contact and fades on his haloHold / haloFade */
.rx-glass .rxg-halo{position:absolute;inset:0;border-radius:inherit;pointer-events:none;opacity:var(--haloa);box-shadow:0 0 12px 3px var(--pc),0 0 26px 6px rgba(var(--pcrgb),.35)}
.rx-glass .rxg-clip{position:absolute;inset:0;border-radius:inherit;overflow:hidden;z-index:6;pointer-events:none}
.rx-glass .rxg-dimple{position:absolute;top:50%;width:22px;height:22px;border-radius:50%;pointer-events:none;background:radial-gradient(circle at 50% 45%,rgba(0,0,0,.35) 0,rgba(0,0,0,.12) 40%,rgba(255,255,255,.55) 62%,rgba(255,255,255,0) 72%)}
.rx-glass .rxg-wave{position:absolute;top:50%;border-radius:50%;border-style:solid;box-sizing:border-box;pointer-events:none}
.rx-glass.rx-hidden{opacity:0}
.rx-glass .rx-fadein{animation:rx-fadein .22s ease-out both}
@keyframes rx-fadein{from{opacity:0}to{opacity:1}}
@keyframes rx-tap{0%{transform:scale(1)}30%{transform:scale(.78)}65%{transform:scale(1.22)}85%{transform:scale(.94)}100%{transform:scale(1)}}
.rx-glass.rx-tap{animation:rx-tap .28s cubic-bezier(.34,1.56,.64,1)}
/* the spawning layer: fixed, click-through, above the surfaces it crosses; empty whenever nothing moves */
.rxs-layer{position:fixed;inset:0;z-index:90;pointer-events:none;overflow:hidden;contain:strict}
.rxs-embers{position:absolute;left:0;top:0;pointer-events:none}
.rxs-ring{position:absolute;left:0;top:0;overflow:visible;pointer-events:none;filter:drop-shadow(0 0 6px rgba(var(--bif-1),.7)) drop-shadow(0 0 14px rgba(var(--bif-2),.25))}
.rxs-ring path{fill:none;stroke-linecap:round;stroke-linejoin:round}
/* the flyer is a REAL box (never 0x0): its centre is the point it is translated to */
/* ⚡ THE MESSAGE LIST'S ROW SPACING, WITHOUT A SIBLING COMBINATOR (2026-10-13, tests/busy_chat_rig). Both chats' lists were
   `space-y-0` — Tailwind's `.space-y-0 > :not([hidden]) ~ :not([hidden])` — whose `~` makes every row insert, collapse or
   removal invalidate the WHOLE list's subtree for a style pass (825 subtree invalidations in 8 s of a busy room). Same
   effect, same specificity (0,3,0), no `~`: every child but the first gets zero vertical margin (that is what zeroes the
   typing row's mt-2 / mb-3, exactly as before). No child of these lists carries `hidden` (measured), so the two match the
   same elements. */
.chat-rows > :not(:first-child):not([hidden]){--tw-space-y-reverse:0;margin-top:0px;margin-bottom:0px}
.rxs-flyer{position:absolute;left:0;top:0;width:var(--fs);height:var(--fs);margin:calc(var(--fs)/-2) 0 0 calc(var(--fs)/-2);will-change:transform,opacity;pointer-events:none}
.rxs-flyer{isolation:isolate}
.rxs-flyer img{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:contain;-webkit-user-drag:none;z-index:3;opacity:1;visibility:visible}
.rxs-flyer>.rxs-glow,.rxs-flyer>.rxs-tail{z-index:1}
.rxs-glow{position:absolute;left:50%;top:50%;width:270%;height:270%;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(circle,var(--c) 0%,transparent 62%);opacity:0}
/* 🎯 THE NOTIFICATION LANDING (2026-09-27, reactionSpawn.js launchNotif): one disc — the reactor, then the reaction. */
.rxs-flyer.rxn .rxn-face{position:absolute;inset:0;border-radius:50%;overflow:hidden;z-index:4;display:grid;place-items:center;font-weight:800;font-size:calc(var(--fs)*.4);color:#fff;background:radial-gradient(circle at 30% 25%,#ffb46a,#e0459b 55%,#5b2bd6);box-shadow:inset 0 0 0 1px rgba(255,255,255,.18),0 2px 10px rgba(0,0,0,.4)}
.rxs-flyer.rxn .rxn-face img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:50%}
.rxs-flyer.rxn .rxn-flash{position:absolute;inset:0;border-radius:50%;background:#fff;opacity:0;z-index:6;pointer-events:none}
.rxs-flyer.rxn .rxn-cv{position:absolute;inset:0;width:100%;height:100%;border-radius:50%;z-index:5;image-rendering:pixelated}
.rxs-flyer.star .rxs-glow{background:radial-gradient(circle,#fff 0%,#ffe9a8 16%,rgba(255,233,168,0) 58%)}
/* the shooting star's tail: ONE pre-built tapered streak behind the head, rotated along the velocity */
.rxs-tail{position:absolute;left:50%;top:50%;width:120px;height:calc(var(--fs)*.42);margin:calc(var(--fs)*-.21) 0 0 -120px;transform-origin:100% 50%;border-radius:999px;clip-path:polygon(0 50%,100% 0,100% 100%);
  background:linear-gradient(90deg,rgba(var(--crgb),0) 0%,rgba(var(--crgb),.5) 55%,rgba(255,240,200,.95) 100%);opacity:0;pointer-events:none}
.rxs-twinkle{position:absolute;left:0;top:0;width:9px;height:9px;pointer-events:none;opacity:0;background:linear-gradient(#fff,#fff) center/100% 1.5px no-repeat,linear-gradient(#fff,#fff) center/1.5px 100% no-repeat;filter:drop-shadow(0 0 3px var(--c,#fff))}
@media (prefers-reduced-motion: reduce){ .rxs-layer{display:none!important} .rx-glass.rx-tap{animation:none} }

/* ═══ WATCHING-AS ROW PULSE (wa-confirm, 2026-09-25) — BEGIN ═══════════════════════════════
   Josh's approved Watching As confirmation (`_handoff/samples/watching-as-2026-09-25/`, FINAL row
   "qdPulse"): the picked row's Bifrost pulse is the sampler's radial `.bf-sweep` "pulse", 520ms,
   transform + opacity only. `.wa-qd-box` is the rounded inset box the row's Quick Draw runs round,
   so the stroke is never clipped by the square row. Both are appended overlays that remove
   themselves (WatchingAsSelector.jsx). */
.wa-qd-box{position:absolute;inset:4px 6px;border-radius:12px;pointer-events:none}
.wa-row-pulse{position:absolute;inset:0;pointer-events:none;z-index:2;opacity:0;
  background:radial-gradient(120% 140% at 30% 50%,rgba(180,139,255,.42),rgba(94,242,255,.22) 45%,transparent 75%);
  animation:wa-row-pulse 520ms ease-out both}
@keyframes wa-row-pulse{0%{opacity:0;transform:scale(.9)}30%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1.04)}}
@media (prefers-reduced-motion: reduce){ .wa-row-pulse{animation:none;display:none} }
/* ═══ WATCHING-AS ROW PULSE — END ═══ */

/* ═══ REACTION VIEWER — THE STAGE RAIL (2026-09-26) ═══════════════════════════════════════════════
   Josh: "This one please :)" — _handoff/samples/reaction-viewer-rail-2026-09-26/ layout D at FINAL.json
   (pill 44, icon 80, avatar 31, spacing 14, no halo, name under pill). The component is
   ReactionStageRail in Shared.jsx; the scale/opacity of the few cells near centre are written by its
   rAF, everything else sits on the base below (.78 scale, .55 opacity). No backdrop-filter here:
   the one giant pill carries the .rx-glass blur. */
.rv-count{font:600 0.75rem 'Outfit',system-ui,sans-serif;color:#a1a1aa;margin-left:8px;letter-spacing:0;text-transform:none}
.rv-body{max-height:60vh;overflow:hidden;padding:0 0 16px}
/* THE PULSE RING NEEDS HEADROOM (Josh 2026-09-27: "the pulse is ring cut off at the top of the avatar"). The scroller
   is overflow-x:auto, so it clips vertically at its padding box; the Plex ring's pulse blooms --ringx (12px spread +
   20px blur, PlexAvatarOverlay `plex-soft-pulse` at 70%) past the face, and the centred face is x--rvmax with its
   origin at the bottom, so its top also rises av*(rvmax-1). --pt holds all of it; the 14px .rv-body padding moved in
   here so the popup grows ~20px, not 35. tests/test_rv_ring_headroom.js measures the peak in headless Chrome. */
.rv-rail{position:relative;margin:0 12px;--ph:67px;--ic:78px;--av:43px;--gap:14px;--rvmax:1.3;--ringx:32px;--nmfs:9px;--nmoff:4px;--nmh:calc(var(--nmfs)*1.25*2);--nmrow:0px;
  --bloom:calc(var(--av)*(var(--rvmax) - 1) + var(--ringx)*var(--rvmax));--pt:calc(var(--bloom) + 4px);
  --n:1;--rvx:0px;--seatpad:8px;--seat:calc(max(var(--ic)*var(--rvmax),64px) + 2*var(--seatpad));--hugw:calc(var(--seat) + (var(--n) - 1)*(64px + var(--gap)))}
/* THE REACTOR NAME'S FOUR POSITIONS (RV_STAGE.reactorName -> data-name; Josh 2026-09-27 picked none, asked for an "above
   their avatars" option): --nmrow is the name row's height in the flow so the pill's top tracks it. 'top' puts the row
   ABOVE the ring's bloom (its bottom margin is the bloom), so the headroom moves out of --pt into the row. */
.rv-rail[data-name="avatar"]{--nmrow:calc(var(--nmh) + var(--nmoff))}
/* 'top' (Josh 2026-09-27: "I need them right above them"): the row sits --nmoff above ITS avatar and the rAF moves it with that
   avatar's top. The ring's glow reaches --ringx*rvmax above the face, so at a small offset it passes BEHIND the name (the name
   paints over the avatar's stacking context, z-index 4 > 3); the headroom holds whichever reaches higher, the glow or the name. */
.rv-rail[data-name="top"]{--nmrow:calc(var(--nmh) + var(--nmoff));--pt:calc(max(var(--bloom) - var(--nmrow), var(--av)*(var(--rvmax) - 1)) + 4px)}
/* THE PILL HUGS ITS REACTORS AND RIDES WITH THEM (Josh 2026-09-27/28): one --seat per reactor (the magnified icon + --seatpad
   each side, so a lone reactor gets a trigger-style bubble round its icon, not a squashed giant); never wider than the rail.
   Its left is the FIRST seat's left in the scroll content minus the scroll (--rvx, written by the rail's rAF), clamped inside
   the rail: it moves with the icons as the rail snaps ("gently nudging the first reaction over"), and the clamp alone makes
   it full width once the seats outgrow the rail (117 -> 195 -> 273 -> 351 -> full). Live arrivals ease .25s; not while moving. */
.rv-rail>.rx-glass.rv-giant{position:absolute;right:auto;left:clamp(0px,calc(50% - var(--seat)/2 - var(--rvx)),calc(100% - var(--hugw)));width:min(100%,var(--hugw));height:var(--ph);top:calc(var(--pt) + var(--nmrow) + var(--av) + 6px);padding:0;cursor:default;
  transition:left .25s cubic-bezier(.22,1,.36,1),width .25s cubic-bezier(.22,1,.36,1)}
.rv-rail.rv-moving>.rx-glass.rv-giant{transition:none}
@media (prefers-reduced-motion: reduce){ .rv-rail>.rx-glass.rv-giant{transition:none} }
.rv-rail>.rx-glass.rv-giant .rxg-back{box-shadow:inset 0 -6px 10px rgba(0,0,0,.3),inset 0 1.5px 1.5px rgba(255,255,255,calc(.6*var(--hl))),inset 0 0 0 1px rgba(255,255,255,calc(.3*var(--bord)))}
.rv-scroller{position:relative;z-index:2;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;scrollbar-width:none;
  scroll-snap-type:x mandatory;padding:var(--pt) calc(50% - 32px) 4px;scroll-padding-inline:0;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 30px,#000 calc(100% - 30px),transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 30px,#000 calc(100% - 30px),transparent 100%)}
.rv-scroller::-webkit-scrollbar{display:none}
.rv-track{display:flex;gap:var(--gap);width:max-content}
.rv-cell{flex:none;width:64px;scroll-snap-align:center;scroll-snap-stop:normal}
.rv-inner{display:flex;flex-direction:column;align-items:center;width:100%;opacity:.55}
.rv-av{display:block;width:var(--av);height:var(--av);flex:none;transform:scale(.78);transform-origin:50% 100%;-webkit-tap-highlight-color:transparent;position:relative;z-index:3}
.rv-av .rv-av-img{display:block;width:var(--av);height:var(--av);box-shadow:0 3px 10px rgba(0,0,0,.55)}
.rv-slot{height:var(--ph);display:flex;align-items:center;justify-content:center;margin-top:6px;width:100%}
/* Josh 2026-09-28: "I want it so the avatar sits underneath the reaction icon" -> the icon (z 5) paints over the avatar (z 3) and its name (z 4). */
.rv-icon{appearance:none;background:none;border:0;padding:0;margin:0;flex:none;width:var(--ic);height:var(--ic);transform:scale(.78);cursor:pointer;-webkit-tap-highlight-color:transparent;position:relative;z-index:5}
.rv-icon-art{display:block;width:100%;height:100%;background-size:contain;background-repeat:no-repeat;background-position:center;filter:drop-shadow(-3px 0 2px rgba(0,0,0,.35));pointer-events:none}
/* the chat avatar name, exact: ChatView/EventChatView `text-[0.5625rem] leading-tight text-zinc-300` + its shadow */
.rv-nm{font-size:var(--nmfs);line-height:1.25;color:#d4d4d8;font-weight:400;text-align:center;width:100%;margin-top:var(--nmoff);text-shadow:0 1px 3px rgba(0,0,0,.9),0 0 2px rgba(0,0,0,.8);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:break-word;-webkit-tap-highlight-color:transparent;position:relative;z-index:4}
/* NO NAME IS EVER COVERED (2026-09-27): the icon (80) is taller than the pill (44) and the centred one is x1.3,
   so it overhangs the slot by (80*1.3 - 44)/2 = 30px. The name row is reserved BELOW that magnified box
   (+4px), for every cell, so no icon, centred or neighbour, can sit on any name. --rvmax = the stage's top scale. */
.rv-rail[data-name="pill"] .rv-nm{margin-top:calc((var(--ic)*var(--rvmax) - var(--ph))/2 + var(--nmoff))}
.rv-rail[data-name="avatar"] .rv-nm{height:var(--nmh);margin-top:var(--nmoff);margin-bottom:0}
/* the row is two lines tall for every cell (so the pill's top is one number) and the text hugs its BOTTOM, right above the face */
.rv-rail[data-name="top"] .rv-nm{height:var(--nmh);margin:0 0 var(--nmoff);display:flex;flex-direction:column;justify-content:flex-end;overflow:hidden;will-change:transform}
/* no name row under the slot: reserve the magnified icon's overhang so the scroller's clip never cuts its bottom */
.rv-rail:not([data-name="pill"]) .rv-inner::after{content:"";display:block;height:max(0px,calc((var(--ic)*var(--rvmax) - var(--ph))/2))}
/* the caption = the soap "your reaction" pill (RvCaptionPill, Shared.jsx); the outgoing pill sits over the incoming one and crossfades */
.rv-cap{position:relative;display:flex;justify-content:center;align-items:center;margin:6px 16px 0;min-height:24px}
.rv-cap .rv-cap-pill{position:relative;white-space:nowrap}
.rv-cap .rv-cap-out{position:absolute;left:50%;top:0;transform:translateX(-50%);animation:rv-cap-out .18s ease-out both;pointer-events:none}
.rv-cap .rv-cap-in{animation:rv-cap-in .18s ease-out both}
@keyframes rv-cap-out{from{opacity:1}to{opacity:0}}
@keyframes rv-cap-in{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion: reduce){ .rv-cap .rv-cap-out{display:none} .rv-cap .rv-cap-in{animation:none} }
/* ═══ REACTION VIEWER STAGE RAIL — END ═══ */

/* ═══ QUEUED TILE — a reaction / photo / video waiting above a text bar for Send (static/components/QueuedTile.jsx) ═══
   Josh 2026-09-27, approved design A: {"design":"A (Glass tile)","size_px":84,"position":"right","bifrost":0.85,
   "shimmer":true,"photo_follows":true} — "make sure the bifrost fits around all image sizes, and attached videos too".
   Soap glass + a THIN Bifrost rim. The rim is a masked ::before of the tile itself (inset 0, content-box excluded), so it
   is always exactly the tile's outline whatever the tile's aspect — and never a field of colour (the favourites rule).
   It turns on the app's one clock: iri-spin 10s on --iri-angle. bifrost 0.85 = rim alpha .35 + .65*.85 = .90. */
@property --qt-comet { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.qtile{position:relative;flex:0 0 auto;display:grid;place-items:center;transform-origin:50% 100%;
  background:rgba(12,12,18,.55);isolation:isolate;
  box-shadow:inset 0 1.5px 0 rgba(255,255,255,.12),inset 0 -1px 0 rgba(0,0,0,.4),
             0 0 15px rgba(var(--bif-halo-1),.24),0 0 34px rgba(var(--bif-halo-2),.14),0 6px 24px rgba(0,0,0,.6)}
.qtile::before,.qtile::after{content:"";position:absolute;border-radius:inherit;pointer-events:none;
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;
  mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask-composite:exclude}
.qtile::before{inset:0;padding:2px;opacity:.9;z-index:1;animation:iri-spin 10s linear infinite;
  background:conic-gradient(from var(--iri-angle,0deg),rgb(var(--bif-1)),rgb(var(--bif-2)),rgb(var(--bif-3)),rgb(var(--bif-4)),
    rgb(var(--bif-5)),rgb(var(--bif-6)),rgb(var(--bif-7)),rgb(var(--bif-1)))}
/* the Quick-Draw arrival: a #3ddc57 comet laps the rim once, then it is gone */
.qtile::after{inset:-3px;padding:3px;opacity:0;z-index:2;
  background:conic-gradient(from var(--qt-comet),transparent 0 62%,rgba(61,220,87,0) 62%,rgba(61,220,87,.55) 80%,#fff 96%,transparent 100%)}
.qtile.qt-in{animation:qt-in .62s cubic-bezier(.34,1.56,.64,1) both}
.qtile.qt-in::after{animation:qt-comet .8s .05s cubic-bezier(.3,.7,.2,1) both,qt-comet-fade .9s .05s ease-out both}
.qtile.qt-out{animation:qt-out .22s ease-in both;pointer-events:none}
@keyframes qt-in{0%{transform:scale(.55) translateY(14px);opacity:0;filter:blur(6px)}55%{filter:blur(0)}100%{transform:none;opacity:1;filter:none}}
@keyframes qt-out{to{transform:scale(.8) translateY(6px);opacity:0;filter:blur(8px)}}
@keyframes qt-comet{from{--qt-comet:0deg}to{--qt-comet:360deg}}
@keyframes qt-comet-fade{0%{opacity:1}75%{opacity:1}100%{opacity:0}}
/* idle shimmer: one soft sweep every 4.2s, clipped to the tile */
.qtile-shim{position:absolute;inset:0;border-radius:inherit;overflow:hidden;pointer-events:none;z-index:1}
/* the sweep moves on the COMPOSITOR: a transform, never `left` (animating `left` forced a layout every frame while any queued
   tile, reply chip or Draft bubble was on screen). Same path: left -60% → 130% of the shim = 190% of the shim = 475% of this
   40%-wide streak; translate is listed first so it moves in the shim's frame and the skew stays the streak's own. */
.qtile-shim::after{content:"";position:absolute;top:-30%;bottom:-30%;left:-60%;width:40%;transform:translateX(0) skewX(-18deg);will-change:transform;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.16),transparent);animation:qt-sweep 4.2s ease-in-out infinite}
@keyframes qt-sweep{0%,55%{transform:translateX(0) skewX(-18deg)}100%{transform:translateX(475%) skewX(-18deg)}}
/* the small glass ✕ on the corner, with its own hairline rim; the hit area reaches 10px past the disc */
.qtile-x{position:absolute;top:-7px;right:-7px;z-index:3;width:22px;height:22px;border-radius:50%;padding:0;border:0;
  display:grid;place-items:center;cursor:pointer;color:#fff;background:rgba(10,10,16,.72);
  isolation:isolate;box-shadow:inset 0 0 0 1px rgba(255,255,255,.22),0 2px 8px rgba(0,0,0,.5)}
.qtile-x::after{content:"";position:absolute;inset:-10px;border-radius:50%}
.qtile-x svg{width:10px;height:10px;stroke:#fff;stroke-width:2.6;fill:none;stroke-linecap:round}
/* 🫧 THE DRAFT BUBBLE (multiAttach.jsx QueueDraftBubble; Josh's v6 queue pick "Draft bubble"): the sent Grid at 80%, one ✕ on
   its corner (the sampler's qBubble: zoom .8, margin-right 8, the ✕ 7px out). The ✕ is counter-zoomed (inline) so it stays 22px. */
.qdraft{position:relative;margin-right:8px;flex:0 0 auto}
/* the Grid's count badge + a video cell's play mark (the sampler's sGrid .badge / .play) — the sent Grid AND the Draft bubble */
.chat-grid-count{position:absolute;top:8px;right:8px;z-index:4;min-width:20px;height:20px;padding:0 6px;border-radius:999px;display:grid;place-items:center;
  font:800 0.65625rem Poppins,system-ui,sans-serif;color:#fff;background:rgba(10,10,16,.72);box-shadow:inset 0 0 0 1px rgba(255,255,255,.22);pointer-events:none}
.chat-grid-play{position:absolute;left:50%;top:50%;width:24px;height:24px;margin:-12px 0 0 -12px;border-radius:50%;display:grid;place-items:center;pointer-events:none;
  background:rgba(10,10,16,.66);isolation:isolate;box-shadow:inset 0 0 0 1px rgba(255,255,255,.28),0 2px 6px rgba(0,0,0,.45)}
.chat-grid-play svg{width:12px;height:12px;fill:#fff;margin-left:1px}
.qdraft-progress{position:absolute;left:6px;right:6px;bottom:6px;text-align:center;font-size:0.75rem;font-weight:600;line-height:1.3;color:#fff;
  padding:2px 6px;border-radius:8px;background:rgba(0,0,0,.62);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qtile-x:active{transform:scale(.88)}
/* a queued video: its first frame and a small glass play glyph — it never plays in the composer */
.qtile-play{position:absolute;left:50%;top:50%;width:24px;height:24px;margin:-12px 0 0 -12px;border-radius:50%;
  display:grid;place-items:center;pointer-events:none;background:rgba(10,10,16,.66);
  isolation:isolate;box-shadow:inset 0 0 0 1px rgba(255,255,255,.28),0 2px 6px rgba(0,0,0,.45)}
.qtile-play svg{width:12px;height:12px;fill:#fff;margin-left:1px}
@media (prefers-reduced-motion: reduce){
  .qtile::before,.qtile-shim::after{animation:none!important}
  .qtile.qt-in{animation:qt-fade .25s ease-out both}
  .qtile.qt-in::after{animation:none!important}
  .qtile.qt-out{animation:none}
}
@keyframes qt-fade{from{opacity:0}to{opacity:1}}

/* 💬↩ THE REPLY — the Slim chip, in the composer AND on the sent reply (ReplyQuote.jsx; Reply Redesign FINAL 2026-10-01,
   SPEC https://claude.ai/artifact/StofhJPEgXakzEKsDUytFw). The .qtile glass with a THIN (1.5px) rim that HUGS the pill:
   the rim is a masked ::before of the glass, and the glass's padding beside the pill is exactly that 1.5px, so no dark
   glass ever shows between the rim and the pill (Josh: "make sure that the bifrost hugs the reply pill properly").
   The rim draws OVER the pill's edge (z 3), never under it. */
.rq-glass{position:relative;display:inline-flex;align-items:center;flex:0 0 auto;max-width:100%;
  background:rgba(12,12,18,.55);isolation:isolate;
  box-shadow:inset 0 1.5px 0 rgba(255,255,255,.12),inset 0 -1px 0 rgba(0,0,0,.4),
             0 0 15px rgba(var(--bif-halo-1),.3),0 0 34px rgba(var(--bif-halo-2),.14),0 6px 24px rgba(0,0,0,.6)}
.rq-glass::before{content:"";position:absolute;inset:0;border-radius:inherit;padding:1.5px;pointer-events:none;z-index:3;opacity:.9;
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;
  mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask-composite:exclude;
  animation:iri-spin 10s linear infinite;
  background:conic-gradient(from var(--iri-angle,0deg),rgb(var(--bif-1)),rgb(var(--bif-2)),rgb(var(--bif-3)),rgb(var(--bif-4)),
    rgb(var(--bif-5)),rgb(var(--bif-6)),rgb(var(--bif-7)),rgb(var(--bif-1)))}
.rq-chip.qt-in{animation:qt-in .62s cubic-bezier(.34,1.56,.64,1) both;transform-origin:100% 100%}
.rq-row{position:relative;z-index:2;display:flex;align-items:center;min-width:0}
.rq-pill{position:relative;z-index:2;display:flex;align-items:center;flex-shrink:0;overflow:hidden}
.rq-words{flex-shrink:1;min-width:0;line-height:1.25;box-shadow:0 1px 4px rgba(0,0,0,.35)}
.rq-words>span{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;word-break:break-word}
.rq-av{display:block;border-radius:50%;object-fit:cover;flex-shrink:0;box-shadow:0 0 0 1px rgba(255,255,255,.25)}
.rq-play{position:absolute;left:50%;top:50%;border-radius:50%;display:grid;place-items:center;pointer-events:none;
  background:rgba(10,10,16,.66);isolation:isolate;box-shadow:inset 0 0 0 1px rgba(255,255,255,.28),0 2px 6px rgba(0,0,0,.45)}
.rq-play.yt{background:rgba(255,0,0,.85);box-shadow:0 2px 8px rgba(0,0,0,.5)}
.rq-play svg{fill:#fff;margin-left:1px}
.qtile-x.rq-x{width:18px;height:18px;top:-5px;right:-5px;z-index:4}
.qtile-x.rq-x svg{width:8px;height:8px}
/* the SENT reply = "Top overlap" (c-top, Josh's v6 pick): a strip as tall as the chip minus its overlap, stretched to the
   message column; the chip rides its top-right corner and its bottom 5px tucks UNDER the bubble. Josh 2026-10-08: "the
   overlap it a bit too much… It's kinda casting a shadow on my text bubble. Maybe it should go behind it?" → z 0 (the
   text bubble is z-10, so its top edge draws over the chip) and no drop shadow, only the rim's glow. */
/* 2026-10-13 (Josh): 2 lines / a 2-line thumbnail, wider, and on the OUTER top corner for its side (mine right, incoming
   LEFT; ReplyQuote.jsx sets justify-content). The strip is IN THE FLOW (it reserves the chip's real height, 1 line or 2)
   but adds NO width to the column (contain:inline-size), so a short bubble never widens; the chip overflows the strip
   toward the middle of the screen, capped by SENT_MAX_W. margin-bottom:-5px (inline) is the tuck. */
.rq-sent{position:relative;z-index:0;align-self:stretch;flex:0 0 auto;display:flex;align-items:flex-start;contain:inline-size}
.rq-chip-sent{position:relative;flex:0 0 auto;width:max-content;cursor:pointer;-webkit-tap-highlight-color:transparent;
  box-shadow:inset 0 1.5px 0 rgba(255,255,255,.12),inset 0 -1px 0 rgba(0,0,0,.4),0 0 15px rgba(var(--bif-halo-1),.3),0 0 34px rgba(var(--bif-halo-2),.14)}
.rq-chip-sent:active{transform:scale(.97)}
/* the composer chip's name (chipUnit: 600, font+1, white) and a media quote's words beside its thumbnail */
.rq-chip-name{font-family:Poppins,system-ui,sans-serif;font-weight:600;color:#fff;white-space:nowrap;position:relative;z-index:2;flex-shrink:0}
.rq-caption{color:#c9c9d2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:150px;min-width:0;position:relative;z-index:2}
/* the Bifrost reply arrow: the ↩ glyph as a mask, the house ramp painted through it on the shared spin */
.rq-arw{display:inline-flex;flex-shrink:0;line-height:0;position:relative;z-index:2}
.rq-arw i{display:block;width:100%;height:100%;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 14 4 9l5-5'/%3E%3Cpath d='M4 9h10a6 6 0 0 1 6 6v4'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 14 4 9l5-5'/%3E%3Cpath d='M4 9h10a6 6 0 0 1 6 6v4'/%3E%3C/svg%3E") center/contain no-repeat;
  background:conic-gradient(from var(--iri-angle,0deg),rgb(var(--bif-1)),rgb(var(--bif-2)),rgb(var(--bif-3)),rgb(var(--bif-4)),
    rgb(var(--bif-5)),rgb(var(--bif-6)),rgb(var(--bif-7)),rgb(var(--bif-1)));animation:iri-spin 10s linear infinite}
@media (prefers-reduced-motion: reduce){
  .rq-glass::before,.rq-arw i{animation:none!important}
  .rq-chip.qt-in{animation:qt-fade .25s ease-out both}
}
/* ═══ QUEUED TILE — END ═══ */

/* ═══ EDIT FRAME — the house edit look (EditFrame.jsx; Josh 2026-09-28, variant A "Bifrost frame",
   SPEC https://claude.ai/artifact/66HmTfyNnBimVUUyNtVPye). No transform/animation on any box that CONTAINS a text
   field (the caret rides it — tests/test_post_editor_caret_is_still.js): the rim turns by animating --iri-angle on the
   house clock; the comet, glow and chip are sibling overlays, pointer-events:none. ═══ */
@property --efx-qd { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.efx-host{position:relative}
/* the saturated flowing rim (the post card: `.post-bifrost-wrap.efx-rim`; elsewhere `.efx-frame`) */
.efx-rim,.post-bifrost-wrap.efx-rim{animation:iri-spin 10s linear infinite;
  background:conic-gradient(from var(--iri-angle),rgb(var(--bif-1)),rgb(var(--bif-2)),rgb(var(--bif-3)),rgb(var(--bif-4)),
    rgb(var(--bif-5)),rgb(var(--bif-6)),rgb(var(--bif-7)),rgb(var(--bif-1)));
  box-shadow:0 0 22px rgba(var(--bif-halo-1),.28),0 0 50px rgba(var(--bif-halo-2),.16),0 10px 40px rgba(0,0,0,.85)}
.efx-frame{display:block;padding:1.5px;border-radius:16px}
.efx-inner{position:relative;border-radius:14.5px;padding:12px 12px 10px;background:rgba(10,10,14,.94);
  box-shadow:inset 0 2px 0 rgba(255,255,255,.09),inset 0 -1.5px 0 rgba(0,0,0,.4),inset 0 0 40px rgba(0,0,0,.35)}
/* the edit area plate (Post's content plate while editing): a warmer gold hairline */
.efx-plate{box-shadow:0 0 0 1px rgba(251,191,36,.35),inset 0 1.5px 0 rgba(255,255,255,.18),inset 0 0 40px rgba(0,0,0,.45)!important}
/* EDITING badge on the rim, top-left */
.efx-badge{position:absolute;top:-10px;left:14px;z-index:8;display:inline-flex;align-items:center;gap:5px;padding:3px 9px;border-radius:999px;
  font-size:0.59375rem;font-weight:900;letter-spacing:.18em;text-transform:uppercase;line-height:1.2;pointer-events:none;
  background:#0a0a0e;box-shadow:inset 0 0 0 1px rgba(255,255,255,.14),0 2px 12px rgba(0,0,0,.6)}
.efx-badge i{width:6px;height:6px;border-radius:50%;background:#3ddc57;box-shadow:0 0 8px #3ddc57;animation:efx-blink 1.6s ease-in-out infinite}
@keyframes efx-blink{50%{opacity:.35}}
.efx-bift{animation:iri-spin 10s linear infinite;background:conic-gradient(from var(--iri-angle),rgb(var(--bif-1)),rgb(var(--bif-2)),rgb(var(--bif-3)),
  rgb(var(--bif-4)),rgb(var(--bif-5)),rgb(var(--bif-6)),rgb(var(--bif-7)),rgb(var(--bif-1)));-webkit-background-clip:text;background-clip:text;color:transparent}
/* Quick Draw comet: laps the rim once (green on enter, gold on save) */
.efx-qd{position:absolute;inset:-4px;border-radius:20px;pointer-events:none;z-index:9;opacity:0;padding:3px;
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;
  mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask-composite:exclude;
  background:conic-gradient(from var(--efx-qd),transparent 0 62%,rgba(61,220,87,0) 62%,rgba(61,220,87,.6) 80%,#fff 96%,transparent 100%);
  animation:efx-lap .8s cubic-bezier(.3,.7,.2,1) both,efx-lapfade .9s ease-out both}
.efx-qd.efx-qd-gold{background:conic-gradient(from var(--efx-qd),transparent 0 62%,rgba(250,204,21,0) 62%,rgba(250,204,21,.7) 80%,#fff 96%,transparent 100%);
  animation:efx-lap .7s cubic-bezier(.3,.7,.2,1) both,efx-lapfade .8s ease-out both}
@keyframes efx-lap{from{--efx-qd:0deg}to{--efx-qd:360deg}}
@keyframes efx-lapfade{0%{opacity:1}75%{opacity:1}100%{opacity:0}}
/* after Save: a gold settle glow + the green "Saved" chip */
.efx-glow{position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:9;box-shadow:0 0 18px 2px rgba(250,204,21,.45);animation:efx-glow .9s ease-out both}
@keyframes efx-glow{from{opacity:1}to{opacity:0}}
.efx-saved{position:absolute;right:12px;top:-12px;z-index:10;display:inline-flex;align-items:center;gap:5px;padding:4px 10px;border-radius:999px;pointer-events:none;
  font-size:0.65625rem;font-weight:900;letter-spacing:.06em;text-transform:uppercase;line-height:1.2;color:#052e16;
  background:linear-gradient(90deg,#86efac,#3ddc57);box-shadow:0 4px 14px rgba(61,220,87,.45);
  animation:efx-pop .5s cubic-bezier(.34,1.56,.64,1) both,efx-fadeout .5s 1.6s ease both}
.efx-saved svg{width:11px;height:11px;stroke:#052e16;stroke-width:3;fill:none;stroke-linecap:round;stroke-linejoin:round}
@keyframes efx-pop{from{transform:translateY(8px) scale(.6);opacity:0}to{transform:none;opacity:1}}
@keyframes efx-fadeout{to{opacity:0;transform:translateY(-6px)}}
/* the bottom row of the edit area: words changed left, the queued tile RIGHT (the chat tray) */
.efx-status{display:flex;align-items:flex-end;justify-content:space-between;gap:8px;margin-top:8px;min-height:16px}
.efx-diff{font-size:0.65625rem;color:#71717a;display:inline-flex;align-items:center;padding-bottom:1px;white-space:nowrap}
.efx-diff b{color:#fbbf24;font-weight:800}
.efx-diff.efx-same b{color:#71717a}
.efx-tray{margin:0 4px 0 0;flex:0 1 auto;min-width:0}
/* the glass dock */
.efx-dock{display:flex;align-items:center;gap:5px;margin-top:10px;flex-wrap:nowrap;min-width:0}
.efx-sp{flex:1 1 0;min-width:0}
.efx-gp{display:inline-flex;align-items:center;justify-content:center;gap:5px;height:36px;min-width:34px;padding:0 8px;border-radius:999px;border:0;flex:none;
  color:#d4d4d8;background:rgba(255,255,255,.07);isolation:isolate;cursor:pointer;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.14),inset 0 1px 0 rgba(255,255,255,.12);transition:transform .12s,background-color .2s,color .2s;
  -webkit-tap-highlight-color:transparent;user-select:none}
.efx-gp:active{transform:scale(.92)}
.efx-gp svg{flex:none}
.efx-ico{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.efx-gp.efx-on{color:#facc15;background:rgba(234,179,8,.14);box-shadow:inset 0 0 0 1px rgba(234,179,8,.45)}
.efx-lbl{font-size:0.71875rem;font-weight:700;max-width:78px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.efx-quiet{background:none;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;color:#71717a;font-size:0.75rem;font-weight:700;padding:0 6px}
.efx-quiet:active{color:#d4d4d8}
.efx-gold{background:linear-gradient(180deg,#fde68a,#facc15 45%,#d69e07);color:#1a1200;font-weight:900;font-size:0.78125rem;letter-spacing:.04em;padding:0 14px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 4px 16px rgba(250,204,21,.35)}
.efx-gold:disabled{filter:grayscale(1) brightness(.6);box-shadow:none;cursor:default}
/* the glass x on a card inside the edit area (event card, link preview) — the tile x's look */
.efx-x{position:absolute;top:-7px;right:-7px;z-index:12;width:22px;height:22px;border-radius:50%;padding:0;border:0;display:grid;place-items:center;cursor:pointer;
  color:#fff;background:rgba(10,10,16,.72);isolation:isolate;box-shadow:inset 0 0 0 1px rgba(255,255,255,.22),0 2px 8px rgba(0,0,0,.5)}
.efx-x::after{content:"";position:absolute;inset:-10px;border-radius:50%}
.efx-x svg{width:10px;height:10px;stroke:#fff;stroke-width:2.6;fill:none;stroke-linecap:round}
.efx-x:active{transform:scale(.88)}
/* the post date while editing: a gold chip, not a grey form field */
.efx-datechip{display:inline-flex;align-items:center;padding:3px 9px;border-radius:999px;border:0;outline:0;font-size:0.65625rem;font-weight:700;color:#fbbf24;
  background:rgba(234,179,8,.08);box-shadow:inset 0 0 0 1px rgba(234,179,8,.35);color-scheme:dark;cursor:pointer;font-family:inherit}
.efx-datechip:focus{box-shadow:inset 0 0 0 1px rgba(234,179,8,.8)}
/* the tag-people panel, in glass */
.efx-tagpanel{margin-top:8px;padding:8px;border-radius:14px;position:relative;z-index:20;background:rgba(255,255,255,.04);box-shadow:inset 0 0 0 1px rgba(255,255,255,.1)}
.efx-tagpanel input{width:100%;font-size:0.875rem;color:#fff;padding:8px 12px;border-radius:999px;border:0;outline:0;background:rgba(0,0,0,.35);box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)}
.efx-tagpanel input:focus{box-shadow:inset 0 0 0 1px rgba(234,179,8,.6)}
@media (prefers-reduced-motion: reduce){
  .efx-rim,.post-bifrost-wrap.efx-rim,.efx-bift,.efx-badge i{animation:none!important}
  .efx-qd,.efx-glow{display:none}
  .efx-saved{animation:efx-fadeout .4s 1.8s ease both}
}
/* ═══ EDIT FRAME — END ═══ */

/* ═════ REACTION DETAIL CARD — variant E "Halloween glow" (Josh's FINAL pick 2026-09-28) ═════
   Spec: https://claude.ai/artifact/DAWfM4qwMh7a24qdrDJMUx {light 1, float on, background "tint", no pioneer rows}.
   Shared.jsx ReactionZoom. --lc = the light (reaction colour; near-black -> bone white), --gc = the glow (pack glow
   colour, else --lc), --cc = the chip/timeline colour, --k = light intensity (1). */
.rxd{position:relative;overflow:hidden;--ink:#f4f4f5;--ink2:#a1a1aa;--ink3:#71717a}
.rxd-wash{position:absolute;inset:-20%;pointer-events:none;opacity:.45;filter:blur(26px) saturate(1.9);
  background:radial-gradient(ellipse 60% 50% at 50% 30%,var(--lc),transparent 70%),#0c0c10}
.rxd-veil{position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(10,10,14,.3),rgba(10,10,14,.85))}
.rxd-fog{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.rxd-fog i{position:absolute;width:70%;height:40%;border-radius:50%;filter:blur(30px);opacity:calc(.35*var(--k));background:var(--gc);animation:rxd-fog 9s ease-in-out infinite alternate}
.rxd-fog i:nth-child(1){left:-15%;bottom:20%}
.rxd-fog i:nth-child(2){right:-20%;bottom:34%;animation-delay:-4s;opacity:calc(.22*var(--k))}
.rxd-fog i:nth-child(3){left:20%;top:-10%;width:60%;opacity:calc(.18*var(--k))}
@keyframes rxd-fog{from{transform:translateX(0) scale(1)}to{transform:translateX(9%) scale(1.15)}}
.rxd-scan{position:absolute;inset:0;pointer-events:none;opacity:.5;background:repeating-linear-gradient(180deg,transparent 0 3px,rgba(0,0,0,.18) 3px 4px)}
.rxd-vig{position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 50% 40%,transparent 45%,rgba(0,0,0,.7))}
.rxd-body{position:relative;z-index:2;padding:14px 18px 18px;display:flex;flex-direction:column;align-items:center;text-align:center}
/* 📐 the art box is 320x320 (Josh 2026-11-14 Reaction Sizes send: "Looks good like this!" card {w:320,h:320}; was 200) */
.rxd-stage{position:relative;width:min(320px,100%);aspect-ratio:1;height:auto;margin-bottom:12px;flex:none}
.rxd-halo{position:absolute;left:50%;top:50%;width:115%;height:115%;transform:translate(-50%,-50%);border-radius:50%;pointer-events:none;
  background:radial-gradient(circle,color-mix(in srgb,var(--gc) calc(55%*var(--k)),transparent),transparent 65%);filter:blur(10px);animation:rxd-breathe 3.2s ease-in-out infinite reverse}
.rxd-art{position:relative;z-index:2;width:100%;height:100%;animation:rxd-float 4.2s ease-in-out infinite}
.rxd-art>img,.rxd-vg{position:absolute;inset:0;width:100%;height:100%}
.rxd-img{width:100%;height:100%;object-fit:contain;display:block;-webkit-user-drag:none;user-select:none;animation:rxd-breathe 3.2s ease-in-out infinite;
  /* the thin rim light first, so a black icon separates from a black card; then the glow */
  filter:drop-shadow(0 0 1.5px rgba(255,255,255,.45)) drop-shadow(0 0 calc(10px*var(--k)) var(--gc)) drop-shadow(0 0 calc(30px*var(--k)) color-mix(in srgb,var(--gc) 65%,transparent))}
.rxd-vg>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}
.rxd-vg>.rxd-lh{transform:scale(1.5)}.rxd-vg>.rxd-lw{transform:scale(2)}
@keyframes rxd-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
@keyframes rxd-breathe{0%,100%{opacity:1}50%{opacity:.86}}
.rxd-lore{margin-top:14px;width:100%;display:flex;flex-direction:column;align-items:center;gap:9px}
.rxd-chip{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;font-size:0.625rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;line-height:1.2;
  background:color-mix(in srgb,var(--cc) 18%,rgba(255,255,255,.04));color:color-mix(in srgb,var(--cc) 65%,#fff);border:1px solid color-mix(in srgb,var(--cc) 40%,transparent)}
.rxd-chip i{flex:none;width:6px;height:6px;border-radius:99px;background:var(--cc);box-shadow:0 0 8px var(--cc)}
.rxd[data-closed="1"] .rxd-chip i{background:#ef4444;box-shadow:0 0 8px #ef4444}
.rxd-story{display:flex;flex-direction:column;align-items:center;gap:1px;font-size:0.75rem;line-height:1.3;color:var(--ink2)}
.rxd-story b{color:var(--ink);font-weight:700;font-size:0.78125rem}
.rxd-who{display:inline-flex;align-items:center;gap:6px}
.rxd-av{flex:none;width:21px;height:21px;border-radius:999px;object-fit:cover;box-shadow:0 0 0 1.5px rgba(255,255,255,.22),0 2px 6px rgba(0,0,0,.45)}
.rxd-how{font-size:0.75rem;color:var(--ink);font-weight:600}
.rxd-yours{font-size:0.71875rem;color:var(--ink2)}
.rxd-vault{font-size:0.71875rem;color:var(--ink2);max-width:260px}
.rxd-titles{width:100%;overflow-x:auto;padding:2px 6px 4px;scrollbar-width:none;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;-webkit-mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent)}
.rxd-titles::-webkit-scrollbar{display:none}
.rxd-track{display:flex;gap:8px;width:max-content;margin:0 auto}   /* centred when it fits, scrolls from the first chip when it does not */
.rxd-tchip{flex:none;width:56px;scroll-snap-align:start;text-align:center}
.rxd-p{width:42px;height:60px;margin:0 auto 4px;border-radius:7px;position:relative;overflow:hidden;display:grid;place-items:center;
  background:color-mix(in srgb,var(--cc) 30%,#16161c);box-shadow:0 0 0 1px rgba(255,255,255,.12),0 6px 14px rgba(0,0,0,.5);font-size:1rem;font-weight:900;color:rgba(255,255,255,.85)}
.rxd-p img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.rxd-p::after{content:"";position:absolute;inset:0;background:linear-gradient(160deg,rgba(255,255,255,.22),transparent 45%);pointer-events:none}
.rxd-p.rxd-seen::before{content:"\2713";position:absolute;z-index:2;right:3px;bottom:3px;width:14px;height:14px;border-radius:99px;background:#3ddc57;color:#052;font-size:0.5625rem;display:grid;place-items:center;font-weight:900}
.rxd-tchip small{display:block;font-size:0.5625rem;line-height:1.15;color:var(--ink2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rxd-more{width:42px;height:60px;margin:0 auto 4px;border-radius:7px;border:1px dashed rgba(255,255,255,.2);display:grid;place-items:center;font-size:0.6875rem;font-weight:800;color:var(--ink2)}
.rxd-tl{display:flex;align-items:center;width:100%;max-width:260px;font-size:0.625rem;color:var(--ink2);margin-top:2px}
.rxd-n{flex:none;text-align:center;line-height:1.2}
.rxd-n b{display:block;color:var(--ink);font-size:0.6875rem}
.rxd-d{width:8px;height:8px;border-radius:99px;background:var(--cc);box-shadow:0 0 10px var(--cc);margin:0 auto 4px}
.rxd-d.rxd-o{background:transparent;border:1.5px solid var(--ink3);box-shadow:none}
.rxd-bar{flex:1;height:2px;margin:0 6px 20px;border-radius:2px;background:linear-gradient(90deg,var(--cc) var(--prog),rgba(255,255,255,.14) var(--prog))}
.rxd-back{margin-top:16px;padding:9px 20px 9px 16px;border-radius:999px;border:1px solid rgba(255,255,255,.14);color:#fff;font-size:0.75rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;
  background:linear-gradient(180deg,rgba(255,255,255,.12),rgba(255,255,255,.04));box-shadow:0 6px 18px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.15);
  isolation:isolate;transition:transform .12s}
.rxd-back:active{transform:scale(.95)}
@media (prefers-reduced-motion:reduce){.rxd-fog i,.rxd-halo,.rxd-art,.rxd-img{animation:none}}
/* ═══ REACTION DETAIL CARD — END ═══ */

/* ═══ SETTINGS KIT — variant A "Bifrost frame", 2026-09-28 ═══════════════════════════════════════
   Josh picked variant A for the Donation Settings screen:
     {"sample":"screens-upgrade","date":"2026-09-28","screen":"donation-settings","variant":"A","state":"filled","pending":3}
   SPEC https://claude.ai/artifact/DVNhCdrXh2DQbxy6zSCM2J  (census: _handoff/basic-screens-census-2026-09-28.md)
   and, verbatim: "Just make sure the platform drop-down pills aren't touching the box below it like it
   is in the sample" -> .sk-pick keeps >= 12px to the next box, closed AND open (tests/test_settings_kit_donation.js).

   One kit for all 35 census screens, adopted one screen at a time. Components: static/components/settingsKit.jsx.
   (It lives HERE, not in an imported .css: the app never imports CSS from JS; style.css is the one sheet.)
   The rim is the app's own `.post-bifrost-wrap` (style.css) so it shares the ONE iri-spin clock and
   every perf rule already written for it; this file only adds the glass, the rows and the controls.
   Every class is `sk-` so nothing here can reach another surface.
   VISUAL CONTRACT = the all-screens sampler's classes (_handoff/samples/all-screens-2026-09-28/all-screens.head.html):
   .sec/.bif/.sec-in -> .sk-sec/.sk-rim/.sk-glass · .nrow/.rdisc -> .sk-nrow/.sk-ring · .fld -> .sk-fld · .tog -> .sk-tog
   .peek/.mini -> .sk-prev/.sk-prev-pill · .dock/.gp -> .sk-dock/.sk-gp · .pcard -> .sk-item · .sel -> .sk-pick-btn · .gx -> .sk-x
   Same values; the ONE deliberate difference is .sk-pick's bottom margin (Josh: pills must not touch the box below). */

.sk-screen { padding: 16px 16px 128px; display: flex; flex-direction: column; gap: 16px; }

/* header — glass back disc + gold gradient title + small kicker */
.sk-hdr { display: flex; align-items: center; gap: 12px; min-height: 40px; }
.sk-disc { width: 36px; height: 36px; border-radius: 9999px; display: grid; place-items: center; flex: none; padding: 0; border: 0; cursor: pointer;
    color: #e4e4e7; background: rgba(255,255,255,0.07); isolation: isolate;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14), inset 0 1px 0 rgba(255,255,255,0.12);
    transition: transform 0.12s; -webkit-tap-highlight-color: transparent; }
.sk-disc:active { transform: scale(0.9); }
.sk-disc svg { width: 18px; height: 18px; }
.sk-title { margin: 0; }   /* type = .ttl-page (the one title definition, top of this file) */
.sk-sub { font-size: 0.625rem; letter-spacing: 0.16em; text-transform: uppercase; color: #71717a; font-weight: 800; margin-top: 2px; }

/* section — kicker line, then the Bifrost rim over dark glass */
.sk-sec { position: relative; }
.sk-kick { display: flex; align-items: center; gap: 7px; margin: 0 0 8px 2px; min-height: 12px; }   /* type = .ttl-sec */
/* a card's own eyebrow (not a page section - the bot's "Server change" card, the watch-group feed head): the old kicker type */
.sk-eyebrow { display: flex; align-items: center; gap: 7px; font-size: 0.59375rem; font-weight: 900; letter-spacing: 0.18em; text-transform: uppercase; color: #fbbf24; min-height: 12px; }
.sk-eyebrow.sk-live, .sk-eyebrow.sk-evsec { margin: 0 0 8px 2px; }   /* the Events page sections keep their own look (Josh 11-25 #256 / #271) */
.sk-eyebrow.sk-live { color: #f87171; }   /* Events "Live Now": the camera REC look (Josh 11-25 #256) */
.sk-eyebrow.sk-dim { color: #71717a; }
.sk-eyebrow.sk-dim .sk-dot { background: #52525b; box-shadow: none; }
.sk-eyebrow.sk-live .sk-dot { background: #ef4444 !important; box-shadow: 0 0 8px rgba(239,68,68,0.6) !important; }
.sk-kick .sk-dot, .sk-eyebrow .sk-dot { width: 7px; height: 7px; border-radius: 9999px; flex: none; box-shadow: 0 0 8px rgba(var(--bif-halo-1),0.5);
    background: conic-gradient(rgb(var(--bif-1)), rgb(var(--bif-2)), rgb(var(--bif-3)), rgb(var(--bif-4)), rgb(var(--bif-5)), rgb(var(--bif-6)), rgb(var(--bif-7)), rgb(var(--bif-1))); }
.sk-kick .sk-sp { flex: 1; }
.sk-kick .sk-hint { font-weight: 700; letter-spacing: 0.06em; color: #71717a; text-transform: none; font-size: 0.625rem; text-align: right; }
/* `.post-bifrost-wrap` keeps the ONE iri-spin clock and its perf rules; the contract's `.bif` is the saturated rim + deeper halo */
.sk-rim.post-bifrost-wrap { padding: 1.5px; border-radius: 18px;
    background: conic-gradient(from var(--iri-angle), rgb(var(--bif-1)), rgb(var(--bif-2)), rgb(var(--bif-3)), rgb(var(--bif-4)), rgb(var(--bif-5)), rgb(var(--bif-6)), rgb(var(--bif-7)), rgb(var(--bif-1)));
    box-shadow: 0 0 18px rgba(var(--bif-halo-1),0.2), 0 0 40px rgba(var(--bif-halo-2),0.1), 0 8px 36px rgba(0,0,0,0.82); }
.sk-glass { border-radius: 16.5px; background: rgba(10,10,14,0.9); padding: 10px; display: grid; gap: 8px;
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.09), inset 0 -1.5px 0 rgba(0,0,0,0.4); }
.sk-enter { animation: sk-card-in 0.55s cubic-bezier(0.34,1.56,0.64,1) both; }
@keyframes sk-card-in { 0% { transform: scale(0.975) translateY(8px); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* nav row — ring disc, two lines, gold count, chevron */
.sk-nrow { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; border-radius: 14px; text-align: left; border: 0;
    font: inherit; color: #e4e4e7; cursor: pointer; -webkit-tap-highlight-color: transparent;
    background: rgba(255,255,255,0.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.07), inset 0 1px 0 rgba(255,255,255,0.05);
    transition: background 0.15s, transform 0.12s; }
.sk-nrow:active { transform: scale(0.985); background: rgba(255,255,255,0.07); }
.sk-ring { position: relative; width: 36px; height: 36px; border-radius: 9999px; flex: none; display: grid; place-items: center; color: #fbbf24; background: #0a0a0e; }
.sk-ring::before { content: ""; position: absolute; inset: 0; border-radius: 9999px; padding: 2px; animation: iri-spin 10s linear infinite;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
    background: conic-gradient(from var(--iri-angle), rgb(var(--bif-1)), rgb(var(--bif-2)), rgb(var(--bif-3)), rgb(var(--bif-4)), rgb(var(--bif-5)), rgb(var(--bif-6)), rgb(var(--bif-7)), rgb(var(--bif-1))); }
.sk-ring svg { width: 16px; height: 16px; position: relative; }
.sk-nrow .sk-tx { flex: 1; min-width: 0; }
.sk-nrow .sk-tx b { display: block; font-size: 0.875rem; color: #fff; font-weight: 700; }
.sk-nrow .sk-tx span { display: block; font-size: 0.6875rem; color: #71717a; margin-top: 1px; line-height: 1.35; }
.sk-nrow .sk-chev { width: 16px; height: 16px; color: #71717a; flex: none; }
.sk-cnt { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 9999px; display: inline-grid; place-items: center; flex: none;
    background: linear-gradient(180deg, #fde68a, #facc15 45%, #d69e07); color: #1a1200; font-size: 0.65625rem; font-weight: 900;
    box-shadow: 0 0 12px rgba(250,204,21,0.35); font-variant-numeric: tabular-nums; }

/* item card inside a section (one per payment method, one per rule, ...) */
.sk-item { display: grid; gap: 8px; padding: 10px; border-radius: 14px; transition: opacity 0.25s;
    background: rgba(255,255,255,0.035); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.07), inset 0 1px 0 rgba(255,255,255,0.05); }
.sk-item.sk-off { opacity: 0.55; }
.sk-item.sk-off .sk-prev-pill { filter: grayscale(1) brightness(0.8); }

/* pill picker — replaces a dropdown; the options open INLINE as pills under the trigger row.
   ⚠️ Josh 2026-09-28: the pills must not touch the box below. The wrap carries its own bottom
   margin so the gap holds whatever the parent's `gap` is: 6px + the item's 8px = 14px. */
.sk-pick { display: grid; gap: 10px; margin-bottom: 6px; }
.sk-pick-row { display: flex; align-items: center; gap: 8px; }
.sk-pick-row .sk-sp { flex: 1; }
.sk-pick-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 12px; border-radius: 9999px; border: 0; cursor: pointer;
    font: inherit; color: #e4e4e7; text-align: left; -webkit-tap-highlight-color: transparent; min-width: 0; max-width: 100%;
    background: rgba(255,255,255,0.07); isolation: isolate;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14), inset 0 1px 0 rgba(255,255,255,0.12); transition: transform 0.12s, box-shadow 0.2s; }
.sk-pick-btn:active { transform: scale(0.96); }
.sk-pick-btn[aria-expanded="true"] { box-shadow: inset 0 0 0 1px rgba(251,191,36,0.55), 0 0 14px rgba(250,204,21,0.18); }
.sk-pick-btn small { font-size: 0.53125rem; letter-spacing: 0.14em; text-transform: uppercase; color: #71717a; font-weight: 800; margin-right: 2px; }
.sk-pick-btn b { font-size: 0.8125rem; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-pick-btn svg { width: 13px; height: 13px; color: #a1a1aa; flex: none; transition: transform 0.2s; }
.sk-pick-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.sk-pick-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 0 0; animation: sk-pick-in 0.28s cubic-bezier(0.34,1.56,0.64,1) both; }
@keyframes sk-pick-in { from { opacity: 0; transform: translateY(-4px) scale(0.98); } to { opacity: 1; transform: none; } }
.sk-chip { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px; border-radius: 9999px; border: 0; cursor: pointer;
    font: inherit; font-size: 0.75rem; font-weight: 700; color: #d4d4d8; -webkit-tap-highlight-color: transparent;
    background: rgba(255,255,255,0.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12); transition: transform 0.12s; }
.sk-chip:active { transform: scale(0.94); }
.sk-chip[aria-selected="true"] { background: linear-gradient(180deg, #fde68a, #facc15 45%, #d69e07); color: #1a1200; font-weight: 900;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 3px 10px rgba(250,204,21,0.3); }

/* glass toggle — goes Quick Draw green (#3ddc57, bifrostFx ONLINE_GREEN) */
.sk-togwrap { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.sk-tog { position: relative; width: 46px; height: 26px; border-radius: 9999px; flex: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent;
    background: rgba(255,255,255,0.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12), inset 0 1px 2px rgba(0,0,0,0.5); transition: background 0.25s, box-shadow 0.25s; }
.sk-tog i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 9999px; background: linear-gradient(180deg, #fafafa, #a1a1aa);
    box-shadow: 0 2px 6px rgba(0,0,0,0.5); transition: transform 0.32s cubic-bezier(0.34,1.56,0.64,1), background 0.25s, box-shadow 0.25s; }
.sk-tog.sk-on { background: rgba(61,220,87,0.16); box-shadow: inset 0 0 0 1px rgba(61,220,87,0.55), inset 0 1px 2px rgba(0,0,0,0.4); }
.sk-tog.sk-on i { transform: translateX(20px); background: radial-gradient(circle at 35% 30%, #b9ffc6, #3ddc57 60%, #15803d); box-shadow: 0 0 12px rgba(61,220,87,0.65), 0 2px 6px rgba(0,0,0,0.5); }
.sk-tlbl { font-size: 0.5625rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #71717a; width: 22px; text-align: right; font-variant-numeric: tabular-nums; flex: none; }
.sk-tlbl.sk-on { color: #3ddc57; }

/* small round glass X (remove) */
.sk-x { width: 30px; height: 30px; border-radius: 9999px; display: grid; place-items: center; color: #fff; flex: none; border: 0; padding: 0; cursor: pointer;
    -webkit-tap-highlight-color: transparent; background: rgba(10,10,16,0.72); isolation: isolate;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22), 0 2px 8px rgba(0,0,0,0.5); transition: transform 0.12s; }
.sk-x:active { transform: scale(0.88); }
.sk-x svg { width: 11px; height: 11px; stroke-width: 2.6; }

/* gold-hairline field */
.sk-fld { position: relative; display: grid; gap: 3px; padding: 8px 12px 9px; border-radius: 12px; cursor: text;
    background: linear-gradient(145deg, rgba(251,191,36,0.07) 0%, #1e1e20 20%, #1a1a1c 80%, rgba(45,212,191,0.03) 100%);
    box-shadow: 0 0 0 1px rgba(251,191,36,0.22), inset 0 1.5px 0 rgba(255,255,255,0.14), inset 0 -1px 0 rgba(0,0,0,0.5), inset 0 0 30px rgba(0,0,0,0.4);
    transition: box-shadow 0.2s; }
.sk-fld:focus-within { box-shadow: 0 0 0 1.5px rgba(251,191,36,0.6), 0 0 18px rgba(250,204,21,0.18), inset 0 1.5px 0 rgba(255,255,255,0.14), inset 0 0 30px rgba(0,0,0,0.4); }
.sk-fld small { font-size: 0.53125rem; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(251,191,36,0.75); }
.sk-fld input, .sk-fld textarea { width: 100%; background: transparent; border: 0; outline: 0; padding: 0; font: inherit; font-size: 0.875rem; line-height: 1.4; resize: none; color: #fff; caret-color: #facc15; }
.sk-fld input.sk-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8125rem; color: #e4e4e7; }
.sk-fld input::placeholder, .sk-fld textarea::placeholder { color: #52525b; }

/* "Members see" — a live preview of what the setting does, where the Notes box used to explain it */
.sk-prev { display: flex; align-items: center; gap: 8px; padding: 2px 2px 0; font-size: 0.59375rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #71717a; min-height: 26px; }
.sk-prev .sk-sp { flex: 1; }
.sk-prev-pill { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 9999px; font-size: 0.65625rem; font-weight: 800;
    letter-spacing: 0.02em; text-transform: none; color: #d4d4d8; max-width: 70%; min-width: 0; white-space: nowrap; overflow: hidden;
    background: rgba(255,255,255,0.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14); }
.sk-prev-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk-prev-pill svg { width: 11px; height: 11px; flex: none; }
.sk-prev-pill.sk-gold { background: linear-gradient(180deg, #fde68a, #facc15 45%, #d69e07); color: #1a1200; box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 3px 10px rgba(250,204,21,0.3); }
.sk-prev-pill.sk-muted { color: #71717a; background: rgba(255,255,255,0.03); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); }

/* add — glass pill with a gold plus and Bifrost text */
.sk-add { width: 100%; height: 42px; border-radius: 9999px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
    font: inherit; font-size: 0.78125rem; font-weight: 800; color: #d4d4d8; -webkit-tap-highlight-color: transparent;
    background: rgba(255,255,255,0.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12), inset 0 1px 0 rgba(255,255,255,0.08); transition: transform 0.12s; }
.sk-add:active { transform: scale(0.97); }
.sk-add .sk-plus { width: 22px; height: 22px; border-radius: 9999px; display: grid; place-items: center; color: #facc15;
    background: rgba(234,179,8,0.14); box-shadow: inset 0 0 0 1px rgba(234,179,8,0.45); }
.sk-add .sk-plus svg { width: 12px; height: 12px; }
.sk-bift { animation: iri-spin 10s linear infinite; -webkit-background-clip: text; background-clip: text; color: transparent;
    background-image: conic-gradient(from var(--iri-angle), rgb(var(--bif-1)), rgb(var(--bif-2)), rgb(var(--bif-3)), rgb(var(--bif-4)), rgb(var(--bif-5)), rgb(var(--bif-6)), rgb(var(--bif-7)), rgb(var(--bif-1))); }

/* empty state */
.sk-empty { display: grid; justify-items: center; gap: 8px; padding: 22px 14px 18px; text-align: center; }
.sk-empty b { font-size: 0.9375rem; color: #fff; margin-top: 4px; }
.sk-empty p { margin: 0; font-size: 0.75rem; color: #a1a1aa; line-height: 1.45; max-width: 260px; }

/* save dock — note left, glass/gold pills right */
.sk-dock { display: flex; align-items: center; gap: 8px; min-height: 38px; }
.sk-dock .sk-sp { flex: 1; }
.sk-dock .sk-note { flex: 1; min-width: 0; }
.sk-note { margin: 0; padding: 0 4px; font-size: 0.65625rem; color: #71717a; line-height: 1.45; }
.sk-gp { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; min-width: 38px; padding: 0 12px; border-radius: 9999px; border: 0; cursor: pointer;
    font: inherit; font-size: 0.78125rem; font-weight: 800; color: #d4d4d8; -webkit-tap-highlight-color: transparent; white-space: nowrap;
    background: rgba(255,255,255,0.07); isolation: isolate;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14), inset 0 1px 0 rgba(255,255,255,0.12); transition: transform 0.12s, background 0.2s, opacity 0.2s; }
.sk-gp:active { transform: scale(0.93); }
.sk-gp:disabled { opacity: 0.5; cursor: default; }
.sk-gp svg { width: 14px; height: 14px; }
.sk-gp.sk-gold { background: linear-gradient(180deg, #fde68a, #facc15 45%, #d69e07); color: #1a1200; font-weight: 900; letter-spacing: 0.04em; padding: 0 18px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 4px 16px rgba(250,204,21,0.35); }
.sk-gp.sk-saved { background: linear-gradient(180deg, #b9ffc6, #3ddc57 55%, #22a544); color: #052e16; font-weight: 900; box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 4px 14px rgba(61,220,87,0.35); }
.sk-err { margin: 0; text-align: right; font-size: 0.75rem; font-weight: 800; color: #f87171; }

@media (prefers-reduced-motion: reduce) {
    .sk-ring::before, .sk-bift { animation: none; }
    .sk-enter, .sk-pick-list { animation: none; }
}

/* ═══ SETTINGS KIT — rollout additions, 2026-09-28 (kit-settings-pages) ════════════════════════
   The all-screens sampler Josh approved ("If I didn't talk about it here, that means I liked it and it can ship")
   SPEC https://claude.ai/artifact/V8pvCL3G41rBCYAM1dG9FT — contract: all-screens.head.html + all-screens.extra.css.
   Sampler class -> kit class: .trow -> .sk-trow · .sw/.tog.sm -> .sk-sw/.sk-tog.sk-sm · .opt -> .sk-opt · .pick -> .sk-check
   .chips/.ch -> .sk-chips/.sk-ch · .gp.quiet/.red/.green/.wide -> .sk-gp.sk-* · .modal/.mt -> .sk-modal/.sk-mt · .phd -> .sk-phd
   .lrow/.rt -> .sk-lrow/.sk-rt · .ban -> .sk-ban · .tag -> .sk-tag · the rest keep their sampler names behind sk-. Same values. */
.sk-hdr .sk-hdr-tt { flex: 1; min-width: 0; }
.sk-nrow { text-decoration: none; }
.sk-nrow.sk-danger .sk-tx b, .sk-nrow.sk-danger .sk-ring { color: #f87171; }
.sk-cnt.sk-red { background: linear-gradient(180deg, #fca5a5, #ef4444); color: #fff; box-shadow: 0 0 12px rgba(239,68,68,0.35); }
.sk-ring.sk-ring-sm { width: 30px; height: 30px; }
.sk-ring.sk-ring-sm svg { width: 14px; height: 14px; }
.sk-ring img { width: 100%; height: 100%; border-radius: 9999px; object-fit: cover; position: relative; padding: 2px; }
.sk-ring b { position: relative; font-size: 0.75rem; }

.sk-emo { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: 0.9375rem; flex: none;
    background: rgba(255,255,255,0.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); }
.sk-emo.sk-lg { width: 40px; height: 40px; font-size: 1.25rem; border-radius: 12px; }

/* toggle row */
.sk-trow { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 14px;
    background: rgba(255,255,255,0.035); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.07), inset 0 1px 0 rgba(255,255,255,0.05); }
.sk-trow .sk-tx, .sk-opt .sk-tx, .sk-check .sk-tx, .sk-phd .sk-tx, .sk-lrow .sk-tx { flex: 1; min-width: 0; }
.sk-trow .sk-tx b { display: block; font-size: 0.84375rem; color: #fff; font-weight: 700; }
.sk-trow .sk-tx span { display: block; font-size: 0.6875rem; color: #71717a; margin-top: 1px; line-height: 1.35; }
.sk-trow.sk-off { opacity: 0.55; }
.sk-tog.sk-sm { width: 34px; height: 20px; }
.sk-tog.sk-sm i { width: 14px; height: 14px; }
.sk-tog.sk-sm.sk-on i { transform: translateX(14px); }
.sk-tog:disabled { cursor: default; opacity: 0.6; }
.sk-sw { display: grid; justify-items: center; gap: 3px; flex: none; }
.sk-sw small { font-size: 0.46875rem; letter-spacing: 0.12em; text-transform: uppercase; color: #71717a; font-weight: 800; }

/* tags */
.sk-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 9999px; font-size: 0.5625rem; font-weight: 900; letter-spacing: 0.1em;
    text-transform: uppercase; color: #d4d4d8; background: rgba(255,255,255,0.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14); white-space: nowrap; flex: none; }
.sk-tag.sk-gold { color: #facc15; box-shadow: inset 0 0 0 1px rgba(234,179,8,0.5); background: rgba(234,179,8,0.1); }
.sk-tag.sk-green { color: #3ddc57; box-shadow: inset 0 0 0 1px rgba(61,220,87,0.5); background: rgba(61,220,87,0.1); }
.sk-tag.sk-red { color: #f87171; box-shadow: inset 0 0 0 1px rgba(248,113,113,0.5); background: rgba(248,113,113,0.1); }
.sk-tag.sk-purple { color: #c084fc; box-shadow: inset 0 0 0 1px rgba(192,132,252,0.5); background: rgba(192,132,252,0.1); }
.sk-tag.sk-blue { color: #60a5fa; box-shadow: inset 0 0 0 1px rgba(96,165,250,0.5); background: rgba(96,165,250,0.1); }
.sk-tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* option (one of many) + check (many of many) — no radio anywhere */
.sk-opt { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; border-radius: 14px; text-align: left; border: 0; cursor: pointer;
    font: inherit; color: #e4e4e7; -webkit-tap-highlight-color: transparent; transition: transform 0.12s, background 0.2s, box-shadow 0.2s;
    background: rgba(255,255,255,0.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.07); }
.sk-opt:active { transform: scale(0.985); }
.sk-opt:disabled { opacity: 0.5; cursor: default; }
.sk-opt.sk-on { background: rgba(250,204,21,0.09); box-shadow: inset 0 0 0 1.5px rgba(250,204,21,0.6); }
.sk-opt .sk-tx b { display: block; font-size: 0.84375rem; color: #fff; font-weight: 700; }
.sk-opt .sk-tx span { display: block; font-size: 0.6875rem; color: #71717a; margin-top: 1px; line-height: 1.35; }
.sk-oring { width: 20px; height: 20px; border-radius: 9999px; flex: none; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.2); }
.sk-check { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; text-align: left; border: 0; cursor: pointer;
    font: inherit; color: #e4e4e7; -webkit-tap-highlight-color: transparent; transition: transform 0.12s;
    background: rgba(255,255,255,0.035); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.07); }
.sk-check:active { transform: scale(0.985); }
.sk-check .sk-tx b { display: block; font-size: 0.8125rem; color: #fff; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk-check .sk-tx span { display: block; font-size: 0.6875rem; color: #71717a; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk-cring { width: 22px; height: 22px; border-radius: 9999px; flex: none; display: grid; place-items: center; color: #052e16; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.18); }
.sk-cring svg { width: 12px; height: 12px; opacity: 0; }
.sk-check.sk-on .sk-cring { background: radial-gradient(circle at 35% 30%, #b9ffc6, #3ddc57 60%, #15803d); box-shadow: 0 0 10px rgba(61,220,87,0.55); }
.sk-check.sk-on .sk-cring svg { opacity: 1; }
.sk-check.sk-lock, .sk-check:disabled { opacity: 0.6; cursor: default; }

/* chips — segmented choices */
.sk-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.sk-ch { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 9999px; border: 0; cursor: pointer;
    font: inherit; font-size: 0.75rem; font-weight: 800; color: #d4d4d8; white-space: nowrap; flex: none; -webkit-tap-highlight-color: transparent; transition: transform 0.12s;
    background: rgba(255,255,255,0.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12); }
.sk-ch:active { transform: scale(0.94); }
.sk-ch:disabled { opacity: 0.5; cursor: default; }
.sk-ch.sk-on { background: linear-gradient(180deg, #fde68a, #facc15 45%, #d69e07); color: #1a1200; box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 3px 10px rgba(250,204,21,0.3); }
.sk-ch svg { width: 12px; height: 12px; }
.sk-chips.sk-fill .sk-ch { flex: 1; }

/* pill variants */
.sk-gp { text-decoration: none; }
.sk-gp.sk-quiet { background: none; box-shadow: none; color: #71717a; font-weight: 700; padding: 0 8px; -webkit-backdrop-filter: none; backdrop-filter: none; }
.sk-gp.sk-red { color: #f87171; box-shadow: inset 0 0 0 1px rgba(248,113,113,0.45); background: rgba(248,113,113,0.08); }
.sk-gp.sk-green { color: #052e16; background: linear-gradient(180deg, #b9ffc6, #3ddc57 55%, #22a544); box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 4px 14px rgba(61,220,87,0.35); font-weight: 900; }
.sk-gp.sk-wide { width: 100%; }
/* the lit / quiet halves of an either-or pair (User Maintenance -> Library Access, Josh 2026-10-20): the action that would CHANGE the
   member's state is lit, the one matching where they already are is quiet */
.sk-gp.sk-red-lit { color: #fff; background: linear-gradient(180deg, #fca5a5, #ef4444 55%, #b91c1c); box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 4px 14px rgba(239,68,68,0.35); font-weight: 900; text-shadow: 0 1px 1px rgba(0,0,0,0.35); }
.sk-gp.sk-green-quiet { color: #4ade80; box-shadow: inset 0 0 0 1px rgba(74,222,128,0.45); background: rgba(74,222,128,0.08); }
.sk-btns { display: flex; gap: 8px; }
.sk-btns > .sk-gp { flex: 1; min-width: 0; }

/* field extras */
.sk-fld .sk-pre { display: flex; align-items: center; gap: 6px; }
.sk-fld .sk-pre .sk-fx { color: #71717a; font-size: 0.8125rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; flex: none; }
.sk-fld.sk-has-aft { padding-right: 56px; }
.sk-fld .sk-aft { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: #71717a; font-size: 0.6875rem; font-weight: 800; }
.sk-fld.sk-ro { opacity: 0.7; }
.sk-fld textarea { display: block; }

/* modal card (the caller keeps its own fixed overlay) */
.sk-modal { width: 100%; max-width: 390px; }
.sk-glass.sk-modal-in { padding: 14px; gap: 10px; max-height: calc(100dvh - 48px); overflow-y: auto; }
.sk-mt { display: grid; gap: 4px; text-align: center; justify-items: center; padding-top: 4px; }
.sk-mt h2 { margin: 0; font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.125rem; color: #fff; line-height: 1.2; text-wrap: balance; }
.sk-mt p { margin: 0; font-size: 0.78125rem; color: #a1a1aa; line-height: 1.5; }
.sk-mt .sk-ring { width: 54px; height: 54px; margin-bottom: 4px; }
.sk-mt .sk-ring svg { width: 24px; height: 24px; }

/* card head / hero / numbers */
.sk-phd { display: flex; align-items: center; gap: 8px; min-height: 36px; }
.sk-phd .sk-tx b { display: block; font-size: 0.875rem; color: #fff; font-weight: 700; }
.sk-phd .sk-tx span { display: block; font-size: 0.6875rem; color: #71717a; line-height: 1.35; }
.sk-hero { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 6px 6px 2px; }
.sk-hero .sk-ring { width: 56px; height: 56px; }
.sk-hero .sk-ring svg { width: 24px; height: 24px; }
.sk-hero h2 { margin: 4px 0 0; font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.1875rem; color: #fff; line-height: 1.15; text-wrap: balance; }
.sk-hero p { margin: 0; font-size: 0.75rem; color: #a1a1aa; line-height: 1.5; }
.sk-hero p.sk-big { color: #e4e4e7; font-size: 0.8125rem; }
.sk-bignum { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 2.5rem; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.sk-bignum small { font-size: 0.75rem; color: #71717a; font-family: inherit; font-weight: 800; margin-left: 6px; }
.sk-kv { display: flex; justify-content: space-between; gap: 10px; font-size: 0.75rem; color: #a1a1aa; padding: 0 4px; }
.sk-kv b { color: #fff; font-variant-numeric: tabular-nums; text-align: right; }

/* list rows */
.sk-lrow { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 14px; text-align: left; width: 100%; color: #e4e4e7; border: 0; font: inherit;
    background: rgba(255,255,255,0.035); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.07), inset 0 1px 0 rgba(255,255,255,0.05); }
.sk-lrow .sk-tx b { display: block; font-size: 0.8125rem; color: #fff; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk-lrow .sk-tx span { display: block; font-size: 0.6875rem; color: #71717a; margin-top: 1px; line-height: 1.35; }
.sk-lrow.sk-col { display: grid; gap: 8px; }
.sk-lrow.sk-off { opacity: 0.55; }
button.sk-lrow { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sk-rt { display: grid; gap: 2px; text-align: right; flex: none; }
.sk-rt b { font-size: 0.8125rem; color: #facc15; font-variant-numeric: tabular-nums; }
.sk-rt span { font-size: 0.625rem; color: #71717a; font-weight: 800; }
.sk-rt .sk-grn { color: #3ddc57; } .sk-rt .sk-red { color: #f87171; } .sk-rt .sk-gold { color: #facc15; } .sk-rt .sk-blue { color: #60a5fa; }

/* banners and text */
.sk-ban { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,0.035); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.07); }
.sk-ban .sk-tx { flex: 1; min-width: 0; font-size: 0.75rem; color: #d4d4d8; line-height: 1.4; }
.sk-ban .sk-tx b { display: block; color: #fff; font-size: 0.8125rem; }
.sk-ban.sk-gold { background: rgba(234,179,8,0.08); box-shadow: inset 0 0 0 1px rgba(234,179,8,0.35); }
.sk-ban.sk-green { background: rgba(61,220,87,0.08); box-shadow: inset 0 0 0 1px rgba(61,220,87,0.4); }
.sk-ban.sk-red { background: rgba(248,113,113,0.08); box-shadow: inset 0 0 0 1px rgba(248,113,113,0.4); }
.sk-ban.sk-purple { background: rgba(192,132,252,0.08); box-shadow: inset 0 0 0 1px rgba(192,132,252,0.4); }
.sk-help { margin: 0; padding: 0 2px; font-size: 0.75rem; color: #a1a1aa; line-height: 1.5; }
.sk-help b { color: #e4e4e7; }
.sk-note b { color: #a1a1aa; }
.sk-legal { margin: 0; padding: 0 4px; font-size: 0.625rem; color: #71717a; line-height: 1.5; }
.sk-legal a, .sk-note a, .sk-help a { color: #fbbf24; text-decoration: none; }
.sk-card-note { padding: 10px 12px; border-radius: 12px; font-size: 0.71875rem; color: #a1a1aa; line-height: 1.5; background: rgba(255,255,255,0.03); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.07); }
.sk-card-note b { color: #e4e4e7; }
.sk-card-note p { margin: 0; }
.sk-card-note p + p { margin-top: 6px; }
.sk-lbl { display: block; font-size: 0.5625rem; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; color: #fbbf24; padding: 0 2px; }
.sk-lbl.sk-g { color: #3ddc57; } .sk-lbl.sk-p { color: #c084fc; } .sk-lbl.sk-r { color: #f87171; } .sk-lbl.sk-t { color: #2dd4bf; }
.sk-callout { padding: 8px 10px; border-radius: 10px; font-size: 0.6875rem; color: #d4d4d8; line-height: 1.45; background: rgba(250,204,21,0.06); box-shadow: inset 0 0 0 1px rgba(250,204,21,0.3); }
.sk-callout b { color: #facc15; }
.sk-tip { display: grid; gap: 4px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,0.035); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.07); }
.sk-tip b { font-size: 0.8125rem; color: #fff; }
.sk-tip p { margin: 0; font-size: 0.71875rem; color: #a1a1aa; line-height: 1.45; }
.sk-handle { display: block; padding: 10px 12px; border-radius: 12px; font: 0.8125rem ui-monospace, SFMono-Regular, Menlo, monospace; color: #facc15; text-align: center;
    background: rgba(250,204,21,0.06); box-shadow: inset 0 0 0 1px rgba(250,204,21,0.3); word-break: break-all; }
.sk-divider { height: 1px; background: rgba(255,255,255,0.07); margin: 2px 4px; }
.sk-ol { margin: 0; padding: 0 0 0 4px; display: grid; gap: 6px; list-style: none; counter-reset: skol; }
.sk-ol > li { display: flex; gap: 10px; font-size: 0.75rem; color: #d4d4d8; line-height: 1.45; align-items: flex-start; }
.sk-ol > li::before { counter-increment: skol; content: counter(skol); width: 20px; height: 20px; border-radius: 9999px; flex: none; display: grid; place-items: center;
    font-size: 0.625rem; font-weight: 900; color: #1a1200; background: linear-gradient(180deg, #fde68a, #facc15 45%, #d69e07); margin-top: 1px; }
.sk-ol > li > span { flex: 1; min-width: 0; }

/* meters */
.sk-steps { display: flex; align-items: center; gap: 6px; padding: 0 2px; }
.sk-steps i { flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.1); }
.sk-steps i.sk-done { background: linear-gradient(90deg, #d69e07, #facc15); }
.sk-steps i.sk-cur { background: conic-gradient(from 90deg, rgb(var(--bif-1)), rgb(var(--bif-2)), rgb(var(--bif-3)), rgb(var(--bif-4)), rgb(var(--bif-5)), rgb(var(--bif-6)), rgb(var(--bif-7)), rgb(var(--bif-1))); }
.sk-steps span { font-size: 0.625rem; color: #71717a; font-weight: 800; font-variant-numeric: tabular-nums; margin-left: 4px; }
.sk-dots { display: flex; gap: 6px; flex-wrap: wrap; }
.sk-dots i { width: 16px; height: 16px; border-radius: 9999px; background: rgba(255,255,255,0.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1); }
.sk-dots i.sk-on { background: linear-gradient(180deg, #fde68a, #facc15 45%, #d69e07); box-shadow: 0 0 8px rgba(250,204,21,0.35); }
.sk-dots i.sk-pend { background: rgba(250,204,21,0.25); box-shadow: inset 0 0 0 1px rgba(250,204,21,0.5); }
.sk-loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 28px 0; font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.14em;
    text-transform: uppercase; color: #71717a; }
.sk-spin { width: 22px; height: 22px; border-radius: 9999px; border: 2px solid rgba(255,255,255,0.1); border-top-color: #facc15; animation: sk-spin 0.8s linear infinite; }
@keyframes sk-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sk-spin { animation-duration: 2.4s; } }

/* ── SETTINGS KIT · ADMIN SCREENS additions (2026-09-28, kit-admin) ──────────────────────────────
   For AdminSettingsPage.jsx's admin screens; builds on the rollout additions above. Contract: the sampler's
   .tabs2 / .search / .dayrow + .stepper / .stats + .stat / .kvs / .modal wash. Josh 2026-09-28: "User Maintenance
   pills look weird and extra long" -> tags and chips stay CONTENT-width; "the gate button is absolutely ginormous
   compared to the restore access button" -> buttons in a row share one height and one width (.sk-btns). */
.sk-tabs { display: flex; gap: 4px; padding: 3px; border-radius: 9999px; background: rgba(255,255,255,0.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1); }
.sk-tabs > button { flex: 1; min-width: 0; height: 30px; border-radius: 9999px; border: 0; padding: 0 6px; background: none; cursor: pointer; font: inherit;
    font-size: 0.75rem; font-weight: 800; color: #a1a1aa; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -webkit-tap-highlight-color: transparent; }
.sk-tabs > button.sk-on { background: linear-gradient(180deg, #fde68a, #facc15 45%, #d69e07); color: #1a1200; }
.sk-tabs .sk-n { font-size: 0.625rem; opacity: 0.7; margin-left: 4px; font-variant-numeric: tabular-nums; }
.sk-search { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px 0 14px; border-radius: 9999px; color: #71717a; font-size: 0.8125rem; cursor: text;
    background: rgba(255,255,255,0.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12), inset 0 1px 0 rgba(255,255,255,0.08); transition: box-shadow 0.2s; }
.sk-search:focus-within { box-shadow: inset 0 0 0 1.5px rgba(251,191,36,0.6), 0 0 14px rgba(250,204,21,0.15); }
.sk-search > svg { width: 15px; height: 15px; color: #fbbf24; flex: none; }
.sk-search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; padding: 0; font: inherit; font-size: 0.875rem; color: #fff; caret-color: #facc15; }
.sk-search input::placeholder { color: #71717a; }
.sk-dayrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sk-stepper { display: inline-flex; align-items: center; height: 32px; border-radius: 9999px; flex: none; background: rgba(255,255,255,0.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12); }
.sk-stepper button { width: 32px; height: 32px; display: grid; place-items: center; color: #d4d4d8; border: 0; background: none; padding: 0; cursor: pointer; }
.sk-stepper button:disabled { opacity: 0.35; cursor: default; }
.sk-stepper button svg { width: 12px; height: 12px; }
.sk-stepper b { min-width: 30px; text-align: center; font-size: 0.8125rem; color: #fff; font-variant-numeric: tabular-nums; }
.sk-kvs { display: grid; gap: 6px; padding: 4px 2px; }
.sk-kv > span { flex: none; }
.sk-kv > b { min-width: 0; overflow-wrap: anywhere; }
.sk-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sk-stats.sk-cols-2 { grid-template-columns: 1fr 1fr; } .sk-stats.sk-cols-4 { grid-template-columns: repeat(4, 1fr); }
.sk-stat { display: grid; gap: 2px; padding: 10px; border-radius: 14px; min-width: 0; background: rgba(255,255,255,0.035); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.07); }
.sk-stat > b { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.125rem; color: #fff; font-variant-numeric: tabular-nums; line-height: 1.1; overflow-wrap: anywhere; }
.sk-stat > span { font-size: 0.5625rem; letter-spacing: 0.14em; text-transform: uppercase; color: #71717a; font-weight: 800; line-height: 1.3; }
.sk-c-green { color: #3ddc57 !important; } .sk-c-red { color: #f87171 !important; } .sk-c-blue { color: #60a5fa !important; }
.sk-c-gold { color: #facc15 !important; } .sk-c-purple { color: #c084fc !important; } .sk-c-dim { color: #71717a !important; }
.sk-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sk-two > * { min-width: 0; }
.sk-av { width: 34px; height: 34px; border-radius: 9999px; flex: none; object-fit: cover; box-shadow: 0 0 0 1.5px rgba(255,255,255,0.18); }
.sk-lrow .sk-tx b.sk-wrap, .sk-lrow .sk-tx .sk-wrap { white-space: normal; overflow-wrap: anywhere; }
.sk-modal-wash { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; overflow-y: auto;
    padding: max(16px, env(safe-area-inset-top)) 14px max(16px, env(safe-area-inset-bottom));
    background: radial-gradient(circle at 50% 30%, rgba(120,80,220,0.14), transparent 60%), rgba(5,5,7,0.865);
    isolation: isolate; }
.sk-modal-wash > .sk-modal { width: 100%; max-width: 400px; }
@media (prefers-reduced-motion: reduce) { .sk-modal-wash .sk-enter { animation: none; } }
/* the ONE library-config row (static/components/LibraryConfigList.jsx), shared by Admin › Active Libraries and the
   Room onboarding wizard. Josh 2026-09-28: the type choice lives with the name, and long names must wrap cleanly. */
.lcl-list { display: grid; gap: 8px; }
.lcl-row { display: grid; gap: 10px; padding: 10px; border-radius: 14px; transition: box-shadow 0.2s, opacity 0.2s;
    background: rgba(255,255,255,0.035); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.07), inset 0 1px 0 rgba(255,255,255,0.05); }
.lcl-row.lcl-on { background: rgba(61,220,87,0.05); box-shadow: inset 0 0 0 1px rgba(61,220,87,0.38), inset 0 1px 0 rgba(255,255,255,0.05); }
.lcl-row.lcl-lock { opacity: 0.6; }
.lcl-hit { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit;
    text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lcl-lock .lcl-hit { cursor: default; }
.lcl-ring { width: 22px; height: 22px; border-radius: 9999px; flex: none; display: grid; place-items: center; color: #052e16;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.18); transition: background 0.2s, box-shadow 0.2s; }
.lcl-ring svg { width: 12px; height: 12px; opacity: 0; transition: opacity 0.15s; }
.lcl-on .lcl-ring { background: radial-gradient(circle at 35% 30%, #b9ffc6, #3ddc57 60%, #15803d); box-shadow: 0 0 10px rgba(61,220,87,0.55); }
.lcl-on .lcl-ring svg { opacity: 1; }
.lcl-name { flex: 1; min-width: 0; font-size: 0.84375rem; font-weight: 700; color: #fff; line-height: 1.3; overflow-wrap: anywhere; }
.lcl-types { padding-left: 32px; }
.lcl-types .sk-ch { height: 30px; padding: 0 11px; font-size: 0.71875rem; }
/* ── SETTINGS KIT · WIZARDS / LISTS additions (2026-09-28, kit-wizards) ─────────────────────────
   RequestWizard, RecommendationWizard, EventWizard, EventListPage, RequestArchivePage, SearchPage.
   Josh 2026-09-28: "Leave request wizard as it is now. Or model it identical to now just with an updated
   theme." (same words for the event wizard, the event page and the request archive). So these are
   SURFACE-ONLY classes: they paint the kit's glass/gold/rim on an element and set NO size, padding or
   layout, so every step, field and measured height stays exactly where it was. */
.sk-wiz { background: rgba(10,10,14,0.94); border-radius: 16.5px;
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.09), inset 0 -1.5px 0 rgba(0,0,0,0.4); }
.sk-wiz-bar { background: rgba(10,10,14,0.79); isolation: isolate; border-color: rgba(255,255,255,0.07) !important; }
.sk-wiz-x { width: 32px; height: 32px; border-radius: 9999px; display: grid; place-items: center; flex: none; border: 0; padding: 0; cursor: pointer; color: #e4e4e7;
    background: rgba(255,255,255,0.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14), inset 0 1px 0 rgba(255,255,255,0.12); transition: transform 0.12s; }
.sk-wiz-x:active { transform: scale(0.9); }
.sk-wiz-x svg { width: 14px; height: 14px; }
.sk-wiz-title { font-family: 'Poppins', sans-serif; font-weight: 800; letter-spacing: 0.01em; text-transform: none;
    background: linear-gradient(90deg, #fde68a, #facc15, #f59e0b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sk-wiz .sk-steps { min-width: 64px; }
.sk-in { background: linear-gradient(145deg, rgba(251,191,36,0.07) 0%, #1e1e20 20%, #1a1a1c 80%, rgba(45,212,191,0.03) 100%) !important;
    border: 1px solid transparent !important; outline: 0; color: #fff; caret-color: #facc15; /* the 1px the old bordered field had: same height */
    box-shadow: 0 0 0 1px rgba(251,191,36,0.22), inset 0 1.5px 0 rgba(255,255,255,0.14), inset 0 -1px 0 rgba(0,0,0,0.5); transition: box-shadow 0.2s; }
.sk-in:focus { box-shadow: 0 0 0 1.5px rgba(251,191,36,0.6), 0 0 18px rgba(250,204,21,0.18), inset 0 1.5px 0 rgba(255,255,255,0.14); }
.sk-in::placeholder { color: #52525b; }
.sk-surf { background: rgba(255,255,255,0.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.07), inset 0 1px 0 rgba(255,255,255,0.05); border: 0 !important; }
.sk-surf.sk-on { background: rgba(250,204,21,0.09); box-shadow: inset 0 0 0 1.5px rgba(250,204,21,0.6); }
.sk-surf.sk-lift { background: rgba(255,255,255,0.08); box-shadow: inset 0 0 0 1.5px rgba(250,204,21,0.6), 0 8px 24px rgba(0,0,0,0.6); }
.sk-drop { background: rgba(255,255,255,0.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12); border: 0 !important;
    outline: 1.5px dashed rgba(251,191,36,0.38); outline-offset: -7px; }
.sk-mini { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 9999px; cursor: pointer; font-weight: 800;
    color: #d4d4d8; background: rgba(255,255,255,0.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14); transition: transform 0.12s; -webkit-tap-highlight-color: transparent; }
.sk-mini:active { transform: scale(0.94); }
.sk-mini.sk-on { background: linear-gradient(180deg, #fde68a, #facc15 45%, #d69e07); color: #1a1200; box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 3px 10px rgba(250,204,21,0.3); }
.sk-menu { background: rgba(14,14,18,0.96); isolation: isolate; border: 0 !important;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 0 18px rgba(var(--bif-halo-1),0.14), 0 14px 40px rgba(0,0,0,0.75); }
.sk-menu .sk-menu-sep { height: 1px; background: rgba(255,255,255,0.07); }
.sk-menu .sk-menu-on { color: #facc15; background: rgba(250,204,21,0.08); }
.sk-poster-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

/* ── SETTINGS KIT · SETTINGS PAGES additions 2 (2026-09-28, kit-settings-pages) ─────────────────── */
/* the Settings header's room switcher: the sampler's `.sel` pill; the 28px avatar sits concentric in the 36px pill */
.sk-pick-btn.sk-room-pill { padding: 0 4px 0 10px; gap: 6px; flex: none; }
.sk-pick-btn.sk-room-pill svg { width: 16px; height: 16px; }
.sk-room-drop { border-radius: 16px; background: rgba(10,10,14,0.96); isolation: isolate;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12), inset 0 1px 0 rgba(255,255,255,0.08), 0 0 18px rgba(var(--bif-halo-1),0.16), 0 14px 40px rgba(0,0,0,0.8); }
/* the admin's floating ParalexBot pill */
.sk-bot-chat { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 4px; border-radius: 9999px; pointer-events: auto; text-decoration: none;
    color: #facc15; font-size: 0.8125rem; font-weight: 800; background: rgba(10,10,14,0.88); isolation: isolate;
    box-shadow: inset 0 0 0 1px rgba(251,191,36,0.45), inset 0 1px 0 rgba(255,255,255,0.1), 0 6px 22px rgba(0,0,0,0.7); transition: transform 0.12s; }
.sk-bot-chat:active { transform: scale(0.95); }
.sk-bot-chat img { box-shadow: 0 0 0 1.5px rgba(251,191,36,0.55); }
/* sampler `.mini` — a small status pill (green / red / gold / purple / blue); wraps instead of clipping */
.sk-mini { display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 4px 10px; border-radius: 9999px; font-size: 0.65625rem; font-weight: 800;
    letter-spacing: 0.02em; text-transform: none; line-height: 1.3; color: #d4d4d8; max-width: 100%;
    background: rgba(255,255,255,0.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14); }
.sk-mini svg { width: 11px; height: 11px; flex: none; }
.sk-mini.sk-green { color: #3ddc57; box-shadow: inset 0 0 0 1px rgba(61,220,87,0.5); background: rgba(61,220,87,0.1); }
.sk-mini.sk-red { color: #f87171; box-shadow: inset 0 0 0 1px rgba(248,113,113,0.5); background: rgba(248,113,113,0.1); }
.sk-mini.sk-gold { color: #facc15; box-shadow: inset 0 0 0 1px rgba(234,179,8,0.5); background: rgba(234,179,8,0.1); }
.sk-mini.sk-purple { color: #c084fc; box-shadow: inset 0 0 0 1px rgba(192,132,252,0.5); background: rgba(192,132,252,0.1); }
.sk-mini.sk-blue { color: #60a5fa; box-shadow: inset 0 0 0 1px rgba(96,165,250,0.5); background: rgba(96,165,250,0.1); }
.sk-mini.sk-solid { background: linear-gradient(180deg, #fde68a, #facc15 45%, #d69e07); color: #1a1200; box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 3px 10px rgba(250,204,21,0.3); }
a.sk-mini { text-decoration: none; }
/* a <form> inside a section keeps the section's rhythm */
.sk-form { display: grid; gap: 8px; }
/* the in-app legal document inside its glass card */
.sk-legal-doc { padding: 4px 6px 8px; overflow-wrap: anywhere; }
.lcl-tags { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; flex: none; max-width: 45%; }
.sk-lrow .sk-chev { width: 16px; height: 16px; color: #71717a; flex: none; display: grid; place-items: center; }
.sk-lrow .sk-chev svg { width: 16px; height: 16px; }
.sk-lrow .sk-tx b.sk-wrap, .sk-lrow .sk-tx .sk-wrap { white-space: normal; overflow-wrap: anywhere; }
.sk-results { display: grid; gap: 6px; }
/* kit-admin (money screens, 2026-09-28): Donation History swipe row + the paywall poster grid (sampler .pgrid/.pg/.pst/.bd, .poster) */
.sk-swipe { overflow: hidden; border-radius: 14px; }
.sk-swipe-del { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; cursor: pointer; color: #fff;
    background: linear-gradient(180deg, #f87171, #dc2626); font: inherit; font-size: 0.5625rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.sk-swipe-del svg { width: 16px; height: 16px; }
.sk-pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sk-pg { display: grid; gap: 5px; min-width: 0; align-content: start; }
.sk-pst { position: relative; display: grid; place-items: center; aspect-ratio: 2 / 3; width: 100%; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: pointer;
    color: #52525b; background: linear-gradient(160deg, #3b2a5e, #0f0f14 70%); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12); -webkit-tap-highlight-color: transparent; }
.sk-pst svg { width: 28px; height: 28px; }
.sk-pst .sk-bd { position: absolute; top: 6px; right: 6px; padding: 2px 6px; border-radius: 9999px; font-size: 0.5625rem; font-weight: 900; color: #1a1200;
    background: linear-gradient(180deg, #fde68a, #facc15 45%, #d69e07); font-variant-numeric: tabular-nums; }
.sk-pst .sk-bd.sk-bd-force { color: #fff; background: linear-gradient(180deg, #d8b4fe, #9333ea); }
.sk-pg > b { font-size: 0.6875rem; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk-pg > span { font-size: 0.59375rem; color: #71717a; }
.sk-pg-reset { height: 26px; border: 0; border-radius: 9999px; cursor: pointer; font: inherit; font-size: 0.59375rem; font-weight: 800; color: #f87171;
    background: rgba(248,113,113,0.08); box-shadow: inset 0 0 0 1px rgba(248,113,113,0.35); }
.sk-poster { width: 34px; height: 50px; border-radius: 7px; flex: none; object-fit: cover; display: block;
    background: linear-gradient(160deg, #3b2a5e, #0f0f14 70%); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12); }
.sk-plus-disc { width: 30px; height: 30px; border-radius: 9999px; display: grid; place-items: center; flex: none; color: #facc15;
    background: rgba(234,179,8,0.14); box-shadow: inset 0 0 0 1px rgba(234,179,8,0.45); }
.sk-plus-disc svg { width: 12px; height: 12px; }

/* ── SETTINGS KIT · WATCH GROUP / CLUB additions (2026-09-28, kit-wg-club) ─────────────────────────
   Josh: "Club settings customization menu, looks good just make sure instead of color codes, it's a color
   chooser, but have an option to type in your own color code." -> .sk-cc (settingsKit.jsx ColorChooser).
   And "I don't like any of the Watch Group pages can you kinda mirror what they look like now but with the
   new theme?" -> the .sk-wg- pieces keep WatchGroupSettingsPage's own layout inside kit surfaces. */
.sk-cc { display: grid; gap: 8px; min-width: 0; }
.sk-two > .sk-cc.sk-open { grid-column: 1 / -1; }
.sk-cc-btn { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; padding: 8px 10px 8px 8px; border-radius: 12px; border: 0; cursor: pointer;
    font: inherit; text-align: left; color: #e4e4e7; -webkit-tap-highlight-color: transparent;
    background: linear-gradient(145deg, rgba(251,191,36,0.07) 0%, #1e1e20 20%, #1a1a1c 80%, rgba(45,212,191,0.03) 100%);
    box-shadow: 0 0 0 1px rgba(251,191,36,0.22), inset 0 1.5px 0 rgba(255,255,255,0.14), inset 0 -1px 0 rgba(0,0,0,0.5); transition: box-shadow 0.2s, transform 0.12s; }
.sk-cc-btn:active { transform: scale(0.98); }
.sk-cc-btn[aria-expanded="true"] { box-shadow: 0 0 0 1.5px rgba(251,191,36,0.6), 0 0 18px rgba(250,204,21,0.18), inset 0 1.5px 0 rgba(255,255,255,0.14); }
.sk-cc-dot { width: 26px; height: 26px; border-radius: 9999px; flex: none; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.35), 0 2px 8px rgba(0,0,0,0.5); }
.sk-cc-tx { flex: 1; min-width: 0; display: grid; }
.sk-cc-tx small { font-size: 0.53125rem; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(251,191,36,0.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-cc-tx b { font: 600 0.78125rem ui-monospace, SFMono-Regular, Menlo, monospace; color: #e4e4e7; }
.sk-cc-btn > svg { width: 13px; height: 13px; color: #a1a1aa; flex: none; transition: transform 0.2s; }
.sk-cc-btn[aria-expanded="true"] > svg { transform: rotate(180deg); }
.sk-cc-panel { display: grid; gap: 10px; padding: 10px; border-radius: 14px; animation: sk-pick-in 0.28s cubic-bezier(0.34,1.56,0.64,1) both;
    background: rgba(255,255,255,0.035); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.07), inset 0 1px 0 rgba(255,255,255,0.05); }
.sk-cc-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 7px; }
.sk-cc-sw { aspect-ratio: 1; width: 100%; min-width: 0; border-radius: 9999px; border: 0; padding: 0; cursor: pointer; display: grid; place-items: center;
    -webkit-tap-highlight-color: transparent; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.22), 0 2px 6px rgba(0,0,0,0.45); transition: transform 0.12s, box-shadow 0.2s; }
.sk-cc-sw:active { transform: scale(0.88); }
.sk-cc-sw[aria-selected="true"] { box-shadow: 0 0 0 2px #0a0a0e, 0 0 0 3.5px #facc15, 0 0 12px rgba(250,204,21,0.45); }
.sk-cc-sw svg { width: 12px; height: 12px; }
.sk-cc-custom { display: flex; align-items: stretch; gap: 8px; }
.sk-cc-hex { flex: 1; min-width: 0; }
.sk-cc-hex.sk-bad { box-shadow: 0 0 0 1.5px rgba(248,113,113,0.7), inset 0 1.5px 0 rgba(255,255,255,0.14), inset 0 0 30px rgba(0,0,0,0.4); }
.sk-cc-prev { width: 52px; flex: none; border-radius: 12px; display: grid; place-items: center; font-weight: 900; font-size: 0.9375rem;
    box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.25), 0 2px 8px rgba(0,0,0,0.5); transition: background 0.2s, color 0.2s; }
.sk-cc-err { margin: 0; padding: 0 2px; font-size: 0.6875rem; font-weight: 700; color: #f87171; line-height: 1.4; }

/* glass slider — a real <input type="range">, restyled (settingsKit.jsx RangeField) */
.sk-range { display: grid; gap: 8px; padding: 8px 12px 10px; border-radius: 12px; background: rgba(255,255,255,0.035); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.07); min-width: 0; }
.sk-range-lb { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: #d4d4d8; font-weight: 700; min-width: 0; }
.sk-range-lb b { margin-left: auto; color: #facc15; font-variant-numeric: tabular-nums; }
.sk-range input { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; margin: 0; background: transparent; cursor: pointer; }
.sk-range input::-webkit-slider-runnable-track { height: 6px; border-radius: 9999px;
    background: linear-gradient(90deg, #d69e07, #facc15 var(--sk-pct, 50%), rgba(255,255,255,0.09) var(--sk-pct, 50%)); box-shadow: inset 0 1px 2px rgba(0,0,0,0.5); }
.sk-range input::-moz-range-track { height: 6px; border-radius: 9999px; background: rgba(255,255,255,0.09); }
.sk-range input::-moz-range-progress { height: 6px; border-radius: 9999px; background: linear-gradient(90deg, #d69e07, #facc15); }
.sk-range input::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; margin-top: -7px; border-radius: 9999px; border: 0;
    background: radial-gradient(circle at 35% 30%, #fff, #fde68a 45%, #d69e07); box-shadow: 0 0 10px rgba(250,204,21,0.5), 0 2px 6px rgba(0,0,0,0.5); }
.sk-range input::-moz-range-thumb { width: 20px; height: 20px; border-radius: 9999px; border: 0;
    background: radial-gradient(circle at 35% 30%, #fff, #fde68a 45%, #d69e07); box-shadow: 0 0 10px rgba(250,204,21,0.5), 0 2px 6px rgba(0,0,0,0.5); }
.sk-range input:disabled { opacity: 0.45; cursor: default; }
.sk-ranges3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sk-ranges3 .sk-range { padding: 8px 8px 8px; }
.sk-ranges3 .sk-range-lb { font-size: 0.65625rem; }

/* round glass X in red (delete / leave) */
.sk-x.sk-red { color: #f87171; }

/* collapsible section kicker (club / chat settings: Theme & Appearance, Members) */
.sk-kick-btn { width: 100%; border: 0; padding: 0; background: none; cursor: pointer; font: inherit; text-align: left; -webkit-tap-highlight-color: transparent; }
.sk-kick-btn .sk-kick { margin-bottom: 0; }
.sk-kick-btn .sk-kick svg { width: 12px; height: 12px; color: #a1a1aa; flex: none; transition: transform 0.2s; }
.sk-kick-btn[aria-expanded="true"] .sk-kick svg { transform: rotate(180deg); }
.sk-sec.sk-collapsed .sk-kick-btn { margin-bottom: 0; }
.sk-sec .sk-kick-btn + .sk-rim { margin-top: 8px; }
.sk-chat-prev { height: 176px; flex: none; }

/* Watch Groups — the page's OWN layout in kit surfaces (the card keeps its header / avatar row / button / panel bands) */
.sk-wg-bar { display: flex; align-items: center; gap: 10px; min-height: 38px; }
.sk-wg-bar .sk-kick { margin: 0; flex: 1; }
.sk-wg-list { display: grid; gap: 16px; }
.sk-wg-card > .sk-glass { padding: 0; gap: 8px; overflow: hidden; }
.sk-wg-hd { display: flex; align-items: flex-start; gap: 8px; padding: 16px 16px 0 18px; }
.sk-wg-hd .sk-tx { flex: 1; min-width: 0; display: grid; }
.sk-wg-name { margin: 0; font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.1875rem; line-height: 1.2; color: #facc15; text-transform: uppercase; letter-spacing: 0.02em;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk-wg-sub { margin-top: 3px; font-size: 0.71875rem; color: #71717a; }
.sk-wg-sub .sk-wg-pend { color: #fbbf24; margin-left: 4px; }
.sk-wg-acts { display: flex; align-items: center; gap: 8px; flex: none; margin-top: 2px; }
.sk-live { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 4px; font-size: 0.5625rem; font-weight: 900; letter-spacing: 0.14em; color: #f87171; }
.sk-live::before { content: ""; width: 6px; height: 6px; border-radius: 9999px; background: #f87171; box-shadow: 0 0 8px #f87171; animation: sk-live-pulse 1.6s ease-in-out infinite; }
@keyframes sk-live-pulse { 50% { opacity: 0.35; } }
.sk-wg-band { padding: 6px 16px; }
.sk-wg-band:last-child { padding-bottom: 16px; }
.sk-wg-empty { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.sk-wg-empty p { margin: 0; font-size: 0.8125rem; color: #a1a1aa; line-height: 1.4; }
.sk-wg-empty b { color: #facc15; }
.sk-avrow { display: flex; align-items: flex-end; gap: 12px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.sk-avrow::-webkit-scrollbar { display: none; }
.sk-avrow .sk-avp { flex: none; display: grid; justify-items: center; gap: 6px; width: 56px; }
.sk-avrow .sk-avp > span:last-child { font-size: 0.625rem; color: #d4d4d8; font-weight: 600; max-width: 56px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.sk-avrow .sk-avp.sk-pend { opacity: 0.5; }
.sk-avrow .sk-avp.sk-pend > span:last-child { color: #fbbf24; font-weight: 900; font-size: 0.5625rem; }
.sk-avrow .sk-avp.sk-pend img { filter: grayscale(1); }
.sk-avface { width: 56px; height: 56px; border-radius: 9999px; box-shadow: 0 0 0 2px rgba(255,255,255,0.14), 0 4px 12px rgba(0,0,0,0.5); }
.sk-avdash { width: 56px; height: 56px; border-radius: 9999px; display: grid; place-items: center; border: 0; padding: 0; cursor: pointer; color: #facc15; flex: none;
    background: rgba(250,204,21,0.06); box-shadow: inset 0 0 0 1.5px rgba(250,204,21,0.45); -webkit-tap-highlight-color: transparent; transition: transform 0.2s, background 0.2s, box-shadow 0.2s; }
.sk-avdash svg { width: 20px; height: 20px; }
.sk-avdash svg { transition: transform 0.2s; }
.sk-avdash[aria-expanded="true"] svg { transform: rotate(45deg); }
.sk-avdash[aria-expanded="true"] { background: rgba(250,204,21,0.14); box-shadow: inset 0 0 0 1.5px rgba(250,204,21,0.8), 0 0 14px rgba(250,204,21,0.3); }
.sk-wg-hint { margin: 8px 0 0; text-align: center; font-size: 0.65625rem; color: #71717a; line-height: 1.4; }
.sk-wg-panel { display: grid; gap: 10px; padding: 14px 16px 16px; background: rgba(0,0,0,0.25); box-shadow: inset 0 1px 0 rgba(255,255,255,0.07); }
.sk-wg-panel .sk-phd { min-height: 30px; }
.sk-wg-list6 { display: grid; gap: 6px; }
.sk-wg-panel .sk-lrow .sk-gp { height: 32px; font-size: 0.75rem; }
.sk-wg-title-sm { flex: 1; font-size: 0.8125rem; color: #facc15; font-weight: 900; }
@media (prefers-reduced-motion: reduce) { .sk-live::before, .sk-cc-panel { animation: none; } }
/* ── SETTINGS KIT · NEWS REVIEW pieces (2026-09-28, kit-admin / #23) — the sampler's .sentence, .composer and the
   muted-title minis. Nothing else reads these. */
.sk-sentence { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 0.75rem; color: #d4d4d8; padding: 0 2px; line-height: 1.5; }
.sk-sentence > .sk-sel { flex: none; width: 64px; }
.sk-composer { display: flex; align-items: center; gap: 8px; }
.sk-composer > .sk-fld { flex: 1; min-width: 0; }
.sk-mute { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 4px 0 10px; border-radius: 9999px; font-size: 0.6875rem; font-weight: 700;
    color: #e4e4e7; max-width: 100%; min-width: 0; background: rgba(255,255,255,0.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14); }
.sk-mute > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.sk-mute > i { font-style: normal; color: #71717a; flex: none; }
.sk-mute > button { width: 20px; height: 20px; border-radius: 9999px; flex: none; border: 0; padding: 0; cursor: pointer; display: grid; place-items: center;
    color: #fff; font-size: 0.5625rem; background: rgba(255,255,255,0.12); }
.sk-news-title { margin: 0; font-size: 0.875rem; font-weight: 700; color: #fff; line-height: 1.3; overflow-wrap: anywhere; transition: filter 0.3s; }
.sk-news-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 0.6875rem; color: #a1a1aa; padding: 0 2px; }
.sk-news-meta b { color: #d4d4d8; font-weight: 700; }
.sk-news-meta a { color: #facc15; text-decoration: underline; }
.sk-thumb { position: relative; width: 64px; height: 40px; flex: none; border-radius: 10px; overflow: hidden; background: #18181b; }
.sk-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sk-thumb > span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 0.875rem; background: rgba(0,0,0,0.3); }
.sk-stack { display: grid; gap: 16px; }
.sk-hide { visibility: hidden; }
.sk-botrow { display: flex; align-items: center; gap: 10px; }
.sk-botav { width: 52px; height: 52px; border-radius: 9999px; object-fit: cover; flex: none; box-shadow: 0 0 0 2px rgba(250,204,21,0.45), 0 0 14px rgba(250,204,21,0.3); }
.sk-qbub { position: relative; padding: 8px 12px; border-radius: 14px; font-size: 0.78125rem; font-weight: 700; color: #fff; background: rgba(255,255,255,0.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12); }
.sk-roomdisc { width: 36px; height: 36px; border-radius: 9999px; flex: none; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 0.875rem;
    background: linear-gradient(135deg, #7c6bff, #38e1ff); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.3); }
.sk-phd .sk-tx { flex: 1; min-width: 0; }
.sk-x.sk-x-red { color: #f87171; box-shadow: inset 0 0 0 1px rgba(248,113,113,0.45), 0 2px 8px rgba(0,0,0,0.5); }
.sk-x svg { width: 12px; height: 12px; }
.sk-av-initial { display: grid; place-items: center; font-weight: 900; font-size: 0.75rem; color: #1a1200; background: linear-gradient(145deg, #fde68a, #d69e07); }
.sk-av.sk-av-sm { width: 26px; height: 26px; }
.sk-linkbtn { justify-self: start; border: 0; background: none; padding: 2px 4px; cursor: pointer; font: inherit; font-size: 0.65625rem; font-weight: 800;
    letter-spacing: 0.12em; text-transform: uppercase; color: #fbbf24; text-decoration: underline; text-underline-offset: 3px; }
.sk-pre-text { white-space: pre-line; max-height: 176px; overflow-y: auto; color: #d4d4d8; }
.sk-lrow > .sk-gp, .sk-lrow > .sk-tag { flex: none; }

/* kit-admin (User Maintenance + Block Activity, 2026-09-28). Josh: "User Maintenance pills look weird and extra long"
   -> a member row's badges are content-width .sk-tag beside the name (they wrap under it, never stretch), and the
   value column of the detail is plain text, not a pill per value. .sk-utx is its own class so the kit's
   `.sk-lrow .sk-tx span` sub-line rule cannot restyle the tags. */
.sk-lrow.sk-tap { cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform 0.12s, opacity 0.25s; }
.sk-lrow.sk-tap:active { transform: scale(0.985); }
.sk-utx { flex: 1; min-width: 0; display: grid; gap: 2px; }
.sk-utx > b { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 0.8125rem; color: #fff; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.sk-utx > small { display: block; font-size: 0.6875rem; color: #71717a; line-height: 1.35; overflow-wrap: anywhere; }
.sk-utx > small.sk-it { font-style: italic; }
.sk-avbtn { flex: none; padding: 0; border: 0; background: none; border-radius: 9999px; cursor: pointer; line-height: 0; }
.sk-avwrap { position: relative; flex: none; line-height: 0; }
.sk-avwrap .sk-avx { position: absolute; right: -2px; bottom: -2px; width: 14px; height: 14px; border-radius: 9999px; display: grid; place-items: center;
    color: #fff; background: #ef4444; box-shadow: 0 0 0 2px #0a0a0e; }
.sk-avwrap .sk-avx svg { width: 8px; height: 8px; }
.sk-av.sk-av-lg { width: 52px; height: 52px; }
.sk-lrow.sk-flash { box-shadow: inset 0 0 0 1.5px rgba(251,146,60,0.75), 0 0 14px rgba(251,146,60,0.25); }
.sk-chips.sk-scrollx { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.sk-chips.sk-scrollx::-webkit-scrollbar { display: none; }
.sk-chips.sk-scrollx > .sk-ch { flex: none; }
.sk-rowhead { display: flex; align-items: center; gap: 8px; min-height: 32px; }
.sk-rowhead > .sk-sp { flex: 1; }
.sk-gp.sk-icon-only { width: 38px; padding: 0; }

/* ── SETTINGS KIT · PARALEXBOT chat (2026-09-28, kit-wg-club, census #28 — ships as sampled) ─────── */
.sk-bot-hdr { background: rgba(10,10,14,0.85); isolation: isolate; box-shadow: inset 0 -1px 0 rgba(255,255,255,0.07); }
.sk-bot-face { box-shadow: 0 0 0 2px rgba(250,204,21,0.55), 0 0 14px rgba(250,204,21,0.35); }
.sk-bot-msg { color: #e4e4e7; background: rgba(255,255,255,0.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1); }
.sk-bot-msg.sk-me { color: #fff; background: linear-gradient(180deg, rgba(250,204,21,0.22), rgba(250,204,21,0.12)); box-shadow: inset 0 0 0 1px rgba(250,204,21,0.4); }
.sk-bot-card { margin-top: 8px; display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: rgba(10,10,14,0.55);
    box-shadow: 0 0 0 1px rgba(251,191,36,0.35), inset 0 1px 0 rgba(255,255,255,0.08), 0 0 16px rgba(250,204,21,0.08); }
.sk-bot-card > .sk-btns { margin-top: 4px; }
.sk-bot-desc { display: block; padding: 10px 12px; border-radius: 12px; font: 0.78125rem ui-monospace, SFMono-Regular, Menlo, monospace; color: #facc15;
    background: rgba(250,204,21,0.06); box-shadow: inset 0 0 0 1px rgba(250,204,21,0.3); overflow-wrap: anywhere; white-space: normal; }
.sk-bot-sugg { font-size: 0.8125rem; }
.sk-bot-sugg .sk-tx { white-space: normal; color: #d4d4d8; line-height: 1.4; }
.sk-bot-bar { background: rgba(10,10,14,0.9); isolation: isolate; box-shadow: inset 0 1px 0 rgba(255,255,255,0.07); }
.sk-bot-ta { border: 0; background: linear-gradient(145deg, rgba(251,191,36,0.07) 0%, #1e1e20 20%, #1a1a1c 80%, rgba(45,212,191,0.03) 100%);
    box-shadow: 0 0 0 1px rgba(251,191,36,0.22), inset 0 1.5px 0 rgba(255,255,255,0.14), inset 0 -1px 0 rgba(0,0,0,0.5); caret-color: #facc15; transition: box-shadow 0.2s; }
.sk-bot-ta:focus { box-shadow: 0 0 0 1.5px rgba(251,191,36,0.6), 0 0 18px rgba(250,204,21,0.18), inset 0 1.5px 0 rgba(255,255,255,0.14); }
.sk-bot-ta::placeholder { color: #52525b; }
/* (kit-settings-pages) the in-app legal document's headings inside its glass card */
.sk-legal-doc h1, .sk-legal-doc h2, .sk-legal-doc h3 { color: #fff; font-weight: 800; line-height: 1.3; margin: 14px 0 6px; }
.sk-legal-doc h1:first-child, .sk-legal-doc h2:first-child { margin-top: 0; }
.sk-legal-doc p, .sk-legal-doc ul, .sk-legal-doc ol { margin: 0 0 10px; }
.sk-legal-doc a { color: #fbbf24; }
/* the review cards hold NewsReviewEvidence (two images + the feed-rendered body): its min-content must never widen
   the card past the screen — the column is capped at the rim. */
[data-news-list] > .sk-rim > .sk-glass, [data-news-card] { grid-template-columns: minmax(0, 1fr); }
[data-news-card] > * { min-width: 0; }
/* a status tag inside a row's name stays a CONTENT-width pill (the rows' `.sk-tx span {display:block}` must not stretch it).
   Josh 2026-09-28: "pills look weird and extra long". */
.sk-tx b > .sk-tag { display: inline-flex; width: auto; margin: 0 0 0 4px; vertical-align: middle; font-size: 0.5625rem; line-height: 1; color: inherit; }
.sk-tx b > .sk-tag.sk-gold { color: #facc15; } .sk-tx b > .sk-tag.sk-purple { color: #c084fc; } .sk-tx b > .sk-tag.sk-green { color: #3ddc57; }
.sk-tx b > .sk-tag.sk-red { color: #f87171; } .sk-tx b > .sk-tag.sk-blue { color: #60a5fa; }

/* ── SETTINGS KIT · SETTINGS PAGES additions 3 (2026-09-28, kit-settings-pages) ─────────────────── */
/* the REAL ToggleSwitch (a named checkbox the privacy suites require) worn as the kit's glass toggle row */
.sk-tsw { padding-top: 7px; padding-bottom: 7px; }
.sk-tsw > label { flex: 1; min-width: 0; display: flex; flex-direction: row-reverse; justify-content: space-between; gap: 10px; }
.sk-tsw > label > .ml-3 { margin-left: 0; font-size: 0.84375rem; font-weight: 700; color: #fff; min-width: 0; }
.sk-tsw > label > .relative > .block { width: 46px !important; height: 26px !important; border-radius: 9999px;
    background: rgba(255,255,255,0.06) !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12), inset 0 1px 2px rgba(0,0,0,0.5); transition: background 0.25s, box-shadow 0.25s; }
.sk-tsw > label > .relative > .dot { top: 3px !important; left: 3px !important; width: 20px !important; height: 20px !important;
    background: linear-gradient(180deg, #fafafa, #a1a1aa) !important; box-shadow: 0 2px 6px rgba(0,0,0,0.5); transform: none;
    transition: transform 0.32s cubic-bezier(0.34,1.56,0.64,1), background 0.25s, box-shadow 0.25s; }
.sk-tsw > label > .relative > input:checked + .block { background: rgba(61,220,87,0.16) !important; box-shadow: inset 0 0 0 1px rgba(61,220,87,0.55), inset 0 1px 2px rgba(0,0,0,0.4); }
.sk-tsw > label > .relative > input:checked ~ .dot { transform: translateX(20px) !important;
    background: radial-gradient(circle at 35% 30%, #b9ffc6, #3ddc57 60%, #15803d) !important; box-shadow: 0 0 12px rgba(61,220,87,0.65), 0 2px 6px rgba(0,0,0,0.5); }
.sk-center { text-align: center; }
/* kit-wizards: the wizard's micro-labels and bordered choice pills keep the old 10px / 1px so every measured step height is unchanged */
.sk-wiz .sk-lbl { font-size: 0.625rem; }
.sk-mini.sk-keep-b { border: 1px solid transparent; }
/* Master Controls sub-pages (kit-settings-pages): a list card is rim + glass with its own block flow */
.sk-glass.sk-mc { display: block; padding: 12px; }
.sk-glass.sk-mc.sk-mc-flush { padding: 0; }
.sk-ring .sk-emo-in { font-size: 0.9375rem; font-weight: 400; line-height: 1; }
.sk-gp.sk-purple { color: #c084fc; box-shadow: inset 0 0 0 1px rgba(192,132,252,0.45); background: rgba(192,132,252,0.08); }
.sk-input { display: block; height: 42px; padding: 0 16px; border-radius: 9999px; border: 0; outline: 0; font: inherit; font-size: 0.84375rem; color: #fff; caret-color: #facc15;
    background: rgba(255,255,255,0.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12), inset 0 1px 0 rgba(255,255,255,0.08); transition: box-shadow 0.2s; }
.sk-input:focus { box-shadow: 0 0 0 1.5px rgba(251,191,36,0.6), 0 0 18px rgba(250,204,21,0.18); }
.sk-input::placeholder { color: #71717a; }
.sk-lrow .sk-tx .sk-wrap { white-space: normal; }
/* prompts, modals and the expedite wizard (kit-settings-pages) */
.sk-disc.sk-disc-sm { width: 30px; height: 30px; }
.sk-disc.sk-disc-sm svg { width: 15px; height: 15px; }
.sk-poster-sm { width: 44px; height: 66px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12); }
.sk-btns > .sk-gp.sk-grow-0 { flex: none; }
.sk-gp.sk-dim-pill { cursor: default; color: #71717a; font-size: 0.6875rem; white-space: normal; text-align: center; line-height: 1.25; }
.sk-fld.sk-fld-err { box-shadow: 0 0 0 1.5px rgba(248,113,113,0.7), inset 0 1.5px 0 rgba(255,255,255,0.14), inset 0 0 30px rgba(0,0,0,0.4); }
.sk-plist { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.sk-plist li { display: flex; gap: 8px; font-size: 0.71875rem; color: #a1a1aa; }
.sk-plist li > span { color: #facc15; }
.sk-glass.sk-scroll-88 { max-height: 88vh; }
.sk-glass.sk-members { display: flex; flex-direction: column; gap: 10px; max-height: inherit; overflow: hidden; }
.sk-members-list { flex: 1; min-height: 0; overflow-y: auto; display: grid; gap: 8px; align-content: start; }
[data-sk-modal][style*="max-height"] { display: flex; flex-direction: column; }
/* page pieces used by the rolled-out screens (kit-settings-pages) */
.sk-ban-line { display: block; margin-top: 2px; font-size: 0.71875rem; color: #a1a1aa; text-align: left; }
.sk-linkbtn { border: 0; background: none; padding: 0; font: inherit; cursor: pointer; }
.sk-gold-link { color: #fbbf24; font-weight: 700; }
.sk-ovr { display: inline-block; width: 6px; height: 6px; border-radius: 9999px; margin-left: 6px; vertical-align: middle; background: #facc15; box-shadow: 0 0 6px rgba(250,204,21,0.7); }
.sk-sec.sk-raise { z-index: 30; }
.sk-pick-btn.sk-room-tile { width: 100%; height: auto; min-height: 52px; padding: 8px 12px 8px 8px; gap: 10px; border-radius: 16px; }
.sk-room-tile .sk-tx { flex: 1; min-width: 0; display: grid; gap: 1px; }
.sk-room-tile .sk-tx b { font-size: 0.84375rem; }
.sk-room-tile .sk-tx span { font-size: 0.6875rem; color: #71717a; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-room-init { width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center; font-weight: 900; font-size: 0.875rem; color: #fff; }
.sk-room-init.sk-sm { width: 28px; height: 28px; border-radius: 8px; font-size: 0.75rem; }
.sk-ring.sk-bell { border: 0; padding: 0; cursor: pointer; }
.sk-ring.sk-bell svg { width: 16px; height: 16px; position: relative; }
.sk-ring.sk-bell:not(.sk-on)::before { opacity: 0.35; }
.sk-brand { width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center; font-weight: 900; font-size: 0.9375rem; }
.sk-brand.sk-brand-lg { width: 60px; height: 60px; border-radius: 16px; font-size: 1.5rem; }
.sk-gp.sk-static { cursor: default; color: #71717a; font-size: 0.6875rem; white-space: normal; text-align: center; line-height: 1.25; }
.sk-fld.sk-fld-warn { box-shadow: 0 0 0 1.5px rgba(250,204,21,0.8), 0 0 16px rgba(250,204,21,0.25), inset 0 1.5px 0 rgba(255,255,255,0.14), inset 0 0 30px rgba(0,0,0,0.4); }
.sk-note.sk-note-warn { color: #facc15; }
.sk-glass.sk-pin { max-height: calc(100dvh - 48px); overflow: hidden; display: flex; flex-direction: column; }
.sk-modal-scroll { overflow-y: auto; display: grid; gap: 10px; min-height: 0; }
/* help guides */
.sk-glass.sk-guide { gap: 10px; font-size: 0.8125rem; color: #d4d4d8; line-height: 1.55; }
.sk-guide p { margin: 0; }
.sk-guide ul, .sk-guide ol:not(.sk-ol) { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.sk-guide ul { list-style: disc; } .sk-guide ol:not(.sk-ol) { list-style: decimal; }
.sk-step { display: flex; gap: 10px; align-items: flex-start; }
.sk-step-n { width: 20px; height: 20px; border-radius: 9999px; flex: none; display: grid; place-items: center; margin-top: 1px;
    font-size: 0.625rem; font-weight: 900; color: #1a1200; background: linear-gradient(180deg, #fde68a, #facc15 45%, #d69e07); }
.sk-step > p { flex: 1; min-width: 0; margin: 0; font-size: 0.78125rem; color: #d4d4d8; line-height: 1.5; }
.sk-tip-body { font-size: 0.71875rem; color: #a1a1aa; line-height: 1.5; display: grid; gap: 6px; }
.sk-code { font: 0.75rem ui-monospace, SFMono-Regular, Menlo, monospace; color: #facc15; padding: 1px 6px; border-radius: 6px; background: rgba(250,204,21,0.08); box-shadow: inset 0 0 0 1px rgba(250,204,21,0.25); }
.sk-card-note.sk-flush { padding: 0; overflow: hidden; }
.sk-ring .sk-ring-emo { position: relative; font-size: 1rem; line-height: 1; }
/* feedback case rows */
.sk-lrow.sk-case { cursor: pointer; }
.sk-case-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sk-case-top .sk-sp { flex: 1; }
.sk-case-id { font-size: 0.65625rem; font-weight: 700; color: #71717a; white-space: nowrap; }
.sk-case .sk-tx { display: grid; gap: 2px; }
.sk-case .sk-tx > span { white-space: normal; }
.sk-case-who { font-size: 0.6875rem; font-weight: 700; color: #a1a1aa; }

/* ═══ EDIT IN PLACE — "EDITING…" under the spoiler blur + the "Cancel edit" pill (static/components/editIntoComposer.js) ═══
   Josh 2026-09-29: "maybe the comment or whatever they are editing and get the spoiler blur over it? But make it so no one
   can tap to reveal it? Maybe even put "EDITING…" over the blur with animated ellipses?"
   The veil IS the house spoiler (SpoilerComponents.jsx: black/50 over a 5px blur), laid over the whole original — words,
   photo, reply quote, reactions. .eic-veil swallows every tap (EditingVeil), and everything under it is pointer-events:none.
   Lifting it is a short un-blur (.eic-leaving), never a pop: it is the saved words being revealed, not a new message. */
.eic-veiled{position:relative;isolation:isolate;min-width:108px}
.eic-veiled>*:not(.eic-veil){filter:blur(5px);pointer-events:none!important;-webkit-user-select:none;user-select:none;transition:filter .38s ease}
.eic-veiled.eic-leaving>*:not(.eic-veil){filter:blur(0)}
.eic-veil{position:absolute;inset:0;z-index:40;border-radius:1rem;background:rgba(0,0,0,.5);display:flex;align-items:center;
  justify-content:center;pointer-events:auto;cursor:default;-webkit-tap-highlight-color:transparent;transition:opacity .38s ease}
.eic-veiled.eic-leaving>.eic-veil{opacity:0;pointer-events:none}
.eic-veil-label{font-size:0.625rem;line-height:1;font-weight:900;letter-spacing:.18em;color:#fff;white-space:nowrap;
  text-shadow:0 0 6px rgba(0,0,0,.9),0 1px 2px rgba(0,0,0,.8)}
.eic-dots{display:inline-block;width:1.4em;text-align:left;letter-spacing:.05em}
.eic-dots i{font-style:normal;display:inline-block;animation:eic-dot 1.2s infinite ease-in-out both}
.eic-dots i:nth-child(2){animation-delay:.2s}
.eic-dots i:nth-child(3){animation-delay:.4s}
@keyframes eic-dot{0%,80%,100%{opacity:.15}40%{opacity:1}}
/* the pill: soap glass + the thin Bifrost rim of the queued tile (same masked ::before, same iri-spin clock) */
.eic-cancel-row{display:flex;justify-content:center;align-self:stretch}   /* Josh 2026-10-08: "Actually just center it" */
.eic-cancel{position:relative;display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 12px 0 10px;border:0;border-radius:999px;
  font-size:0.75rem;font-weight:700;letter-spacing:.01em;color:#fff;cursor:pointer;-webkit-tap-highlight-color:transparent;
  background:rgba(12,12,18,.55);isolation:isolate;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 0 12px rgba(var(--bif-halo-1),.2),0 4px 14px rgba(0,0,0,.5)}
.eic-cancel::before{content:"";position:absolute;inset:0;padding:1.5px;border-radius:inherit;pointer-events:none;opacity:.85;
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;
  mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask-composite:exclude;animation:iri-spin 10s linear infinite;
  background:conic-gradient(from var(--iri-angle,0deg),rgb(var(--bif-1)),rgb(var(--bif-2)),rgb(var(--bif-3)),rgb(var(--bif-4)),
    rgb(var(--bif-5)),rgb(var(--bif-6)),rgb(var(--bif-7)),rgb(var(--bif-1)))}
.eic-cancel svg{width:10px;height:10px;stroke:#fff;stroke-width:2.4;fill:none;stroke-linecap:round}
.eic-cancel:active{transform:scale(.95)}
@media (prefers-reduced-motion: reduce){ .eic-dots i{animation:none;opacity:.8} .eic-cancel::before{animation:none} }
/* ═══ EDIT IN PLACE — END ═══ */
/* ═══ REACTION PICKER — OUTSIDE DISCS + EDGE BUMP (Josh's picks, 2026-09-30) ═══
   Spec: https://claude.ai/artifact/KH5ZHEEU7dfNTixYPagojf (source _handoff/samples/picker-edge-bump-2026-09-30/), variant A.
   The page arrow and the ✕ leave the picker as two glass discs on its right: the house G-outlined disc (the action strip's
   .astrip-ring Bifrost rim, reused) at --rx-oc-alpha (0.7, set by ReactionPicker.jsx from PICKER_V2.outAlpha). Size and
   placement are inline, from PICKER_V2. The arrow lights green while the finger is on it and fills over its 250ms dwell;
   the ✕ goes red when it would remove your reaction. .rx-edge is the bump's green cue on the side the thumb left by. */
.rx-oc {
    position: absolute; left: 0; border-radius: 9999px; display: grid; place-items: center; cursor: pointer;
    color: #e4e4e7; background: rgba(255,255,255,0.10);
    isolation: isolate;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16), 0 6px 18px rgba(0,0,0,0.45);
    opacity: var(--rx-oc-alpha, 0.7); pointer-events: auto; --astrip-rw: 1.5px;
    -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
    transition: opacity 150ms, background 150ms, box-shadow 150ms, color 150ms,
                left var(--rx-oc-mv, 200ms) cubic-bezier(.2,.9,.25,1), top var(--rx-oc-mv, 200ms) cubic-bezier(.2,.9,.25,1);   /* 2026-10-01: the arrow rides the page swipe (follow) */
}
.rx-oc-ring { opacity: 0.9; }
.rx-oc-glyph { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; pointer-events: none; }
.rx-oc svg { display: block; width: 18px; height: 18px; }
.rx-oc.nav.has-n svg { width: 14px; height: 14px; }   /* chevron + count stack (14+1+9) clears the 1.5px rim of a 32px disc */
.rx-oc-n { font-size: 0.5625rem; font-weight: 800; line-height: 1; color: #3ddc57; }
.rx-oc.x { color: #a1a1aa; }
.rx-oc.x.has { color: #f87171; }
.rx-oc.hot { opacity: 1; color: #fff; }
.rx-oc.nav.hot { background: rgba(61,220,87,0.22); box-shadow: inset 0 0 0 1px rgba(61,220,87,0.9), 0 0 14px rgba(61,220,87,0.45); }
.rx-oc.nav.hot .rx-oc-n { color: #fff; }
.rx-oc.x.hot { background: rgba(255,255,255,0.16); }
.rx-oc.x.has.hot { background: rgba(239,68,68,0.32); box-shadow: inset 0 0 0 1px rgba(239,68,68,0.9), 0 0 14px rgba(239,68,68,0.45); }
.rx-oc-fill { position: absolute; inset: 0; border-radius: inherit; background: rgba(61,220,87,0.38); transform: scaleY(0); transform-origin: 50% 100%; pointer-events: none; }
.rx-edge { position: absolute; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: #3ddc57; box-shadow: 0 0 10px rgba(61,220,87,0.8);
    transform: scaleY(0); transform-origin: 50% 100%; opacity: 0.95; pointer-events: none; z-index: 37; }
.rx-edge.L { left: 3px; }
.rx-edge.R { right: 3px; }
@media (prefers-reduced-motion: reduce) { .rx-oc { transition: none; } .rx-oc-ring { animation: none; } }
/* ═══ REACTION PICKER — OUTSIDE DISCS + EDGE BUMP — END ═══ */
/* ═══ REACTION PICKER — CHAT ACTION ROW + ⋯ MORE + STATIC SORT (Josh's picks, 2026-10-02) ═══
   Spec: ACTIONS_FINAL.json, sampler https://claude.ai/artifact/KH5ZHEEU7dfNTixYPagojf (source _handoff/samples/picker-edge-bump-2026-09-30/
   page.src.html: .arow / .ab / .st-disc / .more-menu / .gbar, ported). CHATS ONLY: a row of 32px glass discs with words ABOVE the box,
   right-aligned, at the outside opacity (--rx-oc-alpha, 0.86), dimmed to 30% while a reaction is lifted over it. ⋯ More opens a glass
   menu away from the box holding Copy / Report and "Sort reactions" Static | Frequency. Static draws 1px 30% hairlines in the existing
   gaps between Base | Seasonal | Unlocked. Posts never render any of this. */
.rx-arow { position: absolute; z-index: 30; display: flex; align-items: flex-start; gap: 8px; pointer-events: none;
    opacity: var(--rx-oc-alpha, 0.86); transition: opacity 150ms; }
.rx-arow.dimmed { opacity: 0.3; }
.rx-ab { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; flex: none; cursor: pointer; color: #e4e4e7;
    pointer-events: auto; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.rx-ab-face { position: relative; display: flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; border-radius: 9999px;
    background: rgba(255,255,255,0.10); isolation: isolate;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16), 0 6px 18px rgba(0,0,0,0.45); transition: background 150ms, box-shadow 150ms; --astrip-rw: 1.5px; }
.rx-ab-ring { opacity: 0.9; }
.rx-ab-ic { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.rx-ab-ic svg { width: 18px; height: 18px; display: block; }
.rx-ab-lb { position: relative; z-index: 1; font-size: 0.65625rem; font-weight: 700; line-height: 0.6875rem; color: #d4d4d8; white-space: nowrap; pointer-events: none; }
.rx-ab.bad .rx-ab-ic, .rx-ab.bad .rx-ab-lb { color: #f87171; }
.rx-ab.hot .rx-ab-face { background: rgba(255,255,255,0.24); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.7), 0 0 14px rgba(255,255,255,0.25); }
.rx-ab.bad.hot .rx-ab-face { background: rgba(239,68,68,0.32); box-shadow: inset 0 0 0 1px rgba(239,68,68,0.9); }
.rx-ab.open .rx-ab-face { background: rgba(255,255,255,0.22); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6); }
.rx-mm { position: absolute; z-index: 39; padding: 4px; min-width: 136px; border-radius: 16px; display: flex; flex-direction: column;
    background: rgba(24,24,27,0.92); isolation: isolate;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14), 0 12px 28px rgba(0,0,0,0.6); pointer-events: auto; }
.rx-mi { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 12px 0 10px; border-radius: 12px; color: #e4e4e7;
    font-size: 0.84375rem; font-weight: 600; white-space: nowrap; cursor: pointer; -webkit-user-select: none; user-select: none; }
.rx-mi svg { width: 18px; height: 18px; flex: none; }
.rx-mi.bad { color: #f87171; }
.rx-mi.hot { background: rgba(255,255,255,0.12); }
.rx-mi.bad.hot { background: rgba(239,68,68,0.22); }
.rx-ms { height: 64px; margin-top: 4px; padding: 8px 6px 0; border-top: 1px solid rgba(255,255,255,0.1); display: flex; flex-direction: column; gap: 6px; }
.rx-ms:first-child { margin-top: 0; border-top: 0; }   /* a sticker of yours has no Copy: the switch alone */
.rx-ms > span { font-size: 0.65625rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #71717a; line-height: 0.75rem; padding-left: 4px; }
.rx-sw { display: flex; gap: 3px; height: 30px; padding: 2px; border-radius: 9999px; background: rgba(255,255,255,0.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1); }
.rx-sw > div { flex: 1; display: flex; align-items: center; justify-content: center; border-radius: 9999px; color: #a1a1aa; font-size: 0.78125rem; font-weight: 700;
    padding: 0 10px; cursor: pointer; -webkit-user-select: none; user-select: none; }
.rx-sw > div.on { background: rgba(61,220,87,0.16); box-shadow: inset 0 0 0 1px rgba(61,220,87,0.7); color: #fff; }
.rx-sw > div.hot { background: rgba(255,255,255,0.14); }
/* 🏷️ STATIC'S SET TITLES (Josh, 2026-10-02 FINAL: micro label, 5px, white at .4, with ">"): "BASE REACTIONS >",
   "SEASONAL >", "REWARDED >" in the existing top padding above each set's first icon. Absolute, so no cell moves. */
.rx-gttl { position: absolute; white-space: nowrap; line-height: 1; font-weight: 700; letter-spacing: .16em; font-size: 0.3125rem;
    color: rgba(255,255,255,0.4); pointer-events: none; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif; }
.rx-gbar { position: absolute; width: 1px; height: 26px; margin-left: -0.5px; border-radius: 1px; background: rgba(255,255,255,0.3);
    box-shadow: 0 0 4px rgba(255,255,255,0.12); pointer-events: none; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .rx-ab-ring { animation: none; } .rx-arow { transition: none; } }
/* the lone ⋯ disc beside a post's box (Static universal, 2026-10-02): an .rx-oc like the arrow + ✕, lit while its menu is open */
.rx-oc.more { color: #d4d4d8; }
.rx-oc.more.hot, .rx-oc.more.open { opacity: 1; color: #fff; background: rgba(255,255,255,0.16); }
/* ═══ REACTION PICKER — CHAT ACTION ROW — END ═══ */


/* =================================================================================================
   🫧 THE SOAP SMILEY + CAMERA (Josh, 2026-10-02 FINAL — _handoff/samples/picker-titles-icons-2026-10-02/FINAL.json).
   Markup + the tap: components/soapGlyph.jsx. His dials: icon opacity 85, Bifrost saturation 55, Bifrost opacity 60
   (the sampler's applyBif() at those values gives the seven stops below). The icon is a mask over light grey with the
   spinning Bifrost on top; the pill is the .rx-soap recipe with a neutral pool, a pill-oval like the reaction viewer's.
   ================================================================================================= */
.sg-ic { display: inline-block; flex: none; vertical-align: middle; opacity: .85; background: currentColor;
    -webkit-mask: var(--sg-m) center / contain no-repeat; mask: var(--sg-m) center / contain no-repeat; }
.sg-ic.sg-spin { background: conic-gradient(from var(--iri-angle), rgba(var(--bif-mute-1),.6), rgba(var(--bif-mute-2),.6), rgba(var(--bif-mute-3),.6),
        rgba(var(--bif-mute-4),.6), rgba(var(--bif-mute-5),.6), rgba(var(--bif-mute-6),.6), rgba(var(--bif-mute-7),.6), rgba(var(--bif-mute-1),.6)), #d4d4d8; }
/* 🌀 THE SPIN LIVES ONLY IN A CHAT'S INPUT SECTION (Josh, 2026-10-02): "only the chat input section. The rest can just have
   the static bifrost if it'll run smoother." Every other glyph — the smiley under every message row, the comment and post
   composers — wears the same Bifrost STILL (--iri-angle at its registered 0deg; it does not inherit, so nothing upstream can
   move it). MEASURED on the heavy-club bench: 46 infinite custom-property animations, 37 of them these glyphs, each one a
   restyle + repaint every frame. The chat composers (ChatView, EventChatView, EventPage's event chat) mark their input row
   [data-bifrost-live]. */
[data-bifrost-live] .sg-ic.sg-spin { animation: iri-spin 10s linear infinite; }
.sg-pill { position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 2px; box-sizing: border-box;
    border-radius: 999px; flex: none; vertical-align: middle; }
.sg-pill.sg-sm { height: 32px; padding: 0 4px; }
.sg-pill.sg-lg { height: 36px; padding: 0 5px; }
.sg-pill > [data-soap-btn] { position: relative; z-index: 3; display: grid; place-items: center; border-radius: 999px; flex: none;
    -webkit-tap-highlight-color: transparent; cursor: pointer; background: transparent; border: 0; padding: 0; margin: 0; color: #a1a1aa; }
.sg-pill.sg-sm > [data-soap-btn] { width: 32px; height: 32px; }
.sg-pill.sg-lg > [data-soap-btn] { width: 36px; height: 36px; }
.sg-pill > [data-soap-btn] + [data-soap-btn]::before { content: ""; position: absolute; left: -1.5px; top: 9px; bottom: 9px; width: 1px; background: rgba(255,255,255,.12); }
.sg-pill .sg-l { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.sg-pill .sg-l1 { background: radial-gradient(ellipse 70% 60% at 50% 115%, rgba(160,190,255,.22), rgba(160,190,255,0) 70%),
        linear-gradient(180deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,.03) 45%, rgba(0,0,0,.10) 100%), rgba(0,0,0,.3);
    box-shadow: inset 0 -3px 5px rgba(0,0,0,.28), inset 0 1px 1px rgba(255,255,255,.6), inset 0 0 0 1px rgba(255,255,255,.15);
    isolation: isolate; }
.sg-pill .sg-l2 { background: conic-gradient(from 210deg, rgba(168,85,247,.4), rgba(56,189,248,.35), rgba(45,212,191,.3), rgba(163,230,53,.3), rgba(244,114,182,.4), rgba(168,85,247,.4));
    opacity: .3; mix-blend-mode: screen; box-shadow: inset 0 0 1px rgba(255,255,255,.04); filter: saturate(.55); }
.sg-pill .sg-l3 { position: absolute; left: 9%; top: 7%; width: 46%; height: 36%; border-radius: 999px; pointer-events: none;
    background: linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,0)); opacity: .8; filter: blur(3px);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 50%, transparent); mask-image: linear-gradient(90deg, transparent, #000 50%, transparent); }
/* ⌨️ KB-FREEZE BACKDROP ROOT — the smiley under a bubble stops paying for a blur nobody can see (2026-10-20).
   Josh, 2026-10-16: "Ugh the keyboard freeze and lock up is back when I type too much or too fast" (busy event / club
   chats); and "I don't wanna pause anything if we don't have to and I def wanna keep the rainbow text."
   Every message row's reaction smiley (ChatView + EventChatView: `[data-msg-actions] > div`, the wrapper with
   `filter: drop-shadow(0px 1px 3px rgba(0,0,0,0.35))`) holds a soap pill whose glass layer `.sg-l1` carries
   `backdrop-filter: blur(6px) saturate(1.25)`. A `filter` makes its element a BACKDROP ROOT: a backdrop-filter inside it
   only sees what is painted inside that wrapper (nothing — the glass is the bottom layer), never the chat behind it. So
   that blur draws NOTHING; MEASURED on the real bundle, smiley rows in the busy club chat, blur on vs off: WebKit 0 px
   differ at 375 AND 430 (max 0/255); Chromium 2 px (edge anti-aliasing). What it did cost: a backdrop-filter is always
   its own compositing layer, so each smiley wrapper became a composited layer with a drop-shadow over a backdrop
   sub-layer — re-composited every frame (the chat's ambience moves under it), one per bubble on screen, while he types.
   The drop-shadow, the glass fill, the rim, the shine and the icon are all untouched; only the invisible blur goes.
   ⚠️ If the drop-shadow wrapper is ever removed, the blur would start to show the chat behind — delete this rule with it
   (tests/test_kb_freeze_backdrop_root.js fails if the wrapper loses its filter). Rig: tests/kb_freeze_rig/. */
[data-msg-actions] > div .sg-pill .sg-l1 { -webkit-backdrop-filter: none; backdrop-filter: none; }
.sg-pill .sg-clip { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; z-index: 2; pointer-events: none; }
.sg-pill .sg-dimple { position: absolute; top: 50%; border-radius: 999px; pointer-events: none;
    background: radial-gradient(circle at 50% 45%, rgba(0,0,0,.35) 0, rgba(0,0,0,.12) 40%, rgba(255,255,255,.55) 62%, rgba(255,255,255,0) 72%); }
.sg-pill .sg-wave { position: absolute; top: 50%; border-radius: 999px; border-style: solid; box-sizing: border-box; pointer-events: none; }
.sg-popfx { position: fixed; width: 0; height: 0; overflow: visible; pointer-events: none; z-index: 400; }
.sg-popfx .sg-drop { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform, opacity;
    background: radial-gradient(circle at 35% 30%, #fff 0, rgba(255,255,255,.85) 18%, rgba(var(--pcrgb),.55) 55%, rgba(var(--pcrgb),.15) 100%);
    box-shadow: 0 0 4px rgba(var(--pcrgb),.5); }
.sg-popfx .sg-ring { position: absolute; left: 0; top: 0; border-radius: 999px; padding: 1.5px; box-sizing: border-box;
    background: conic-gradient(from 210deg, rgba(168,85,247,.9), rgba(56,189,248,.85), rgba(45,212,191,.8), rgba(163,230,53,.8), rgba(244,114,182,.9), rgba(168,85,247,.9));
    -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); }


/* =====================================================================================================================
   🧪 COMPOSER LAYOUT A / B — STAGING ONLY (static/components/composerLayout.js sets <html data-composer-layout>; with no
   attribute, i.e. production, nothing below applies and every text bar is exactly as it was).
   Josh, 2026-10-02: "I think I'm gonna go with A · Pill outside, send inside, but I wanna see B on staging first before I
   commit... hard to tell if that text input is gonna be too small from right to left."
     A  the soap pill OUTSIDE the field on the left, bottom-aligned; SPOILER + send INSIDE.
     B  the pill outside left AND send outside right; the field holds only the words (+ SPOILER).
   Both: everything sits where it does for a one-line message and only the BOX grows upward as the text wraps.
   How: the row keeps its children but drops its own fill/border (border-WIDTH 0, so its border COLOUR — including the
   focus-within gold — is still computed and the box ::before inherits it), and the box is redrawn as ::before spanning
   from after the pill to the right edge (A) or to before the send slot (B). Items align to the BOTTOM.
   ===================================================================================================================== */
html[data-composer-layout] [data-composer-field] {
    align-items: flex-end !important; background: transparent !important; border-width: 0 !important; box-shadow: none !important;
    /* NO vertical padding (round 6, Josh: "the text input bar isn't proportionate to the text inside it like it used to
       be"): with the pill and send outside, the row's 7px above and below made a 61px box around a 21px line. The textarea
       already draws 12px above and below its line, so the box IS the textarea — 47px for one line, the words centred. */
    padding: 0 !important; position: relative; isolation: isolate; --cl-pill: 74px;
}
html[data-composer-layout] [data-composer-field]:has(> [data-soap-pill="solo"]) { --cl-pill: 40px; }
html[data-composer-layout] [data-composer-field]::before {
    content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--cl-pill) + 6px); right: 0; z-index: -1;
    border-radius: 22px; border: 1px solid; border-color: inherit; background: rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05); transition: border-color .2s, box-shadow .2s; pointer-events: none;
}
html[data-composer-layout] [data-composer-field]:focus-within::before { box-shadow: 0 0 0 1px rgba(234, 179, 8, 0.5), inset 0 2px 4px 0 rgba(0, 0, 0, 0.05); }
html[data-composer-layout] [data-composer-field] > [data-soap-pill] { margin-left: 0 !important; margin-bottom: 7.5px; }
/* pill + send (32px) centred on a ONE-line box (47px), then pinned there as the box grows upward */
html[data-composer-layout] [data-composer-field] > .qd-slot { margin-bottom: 7.5px; }
html[data-composer-layout] [data-composer-field] > .flex-1 { padding-left: 10px; }
/* SPOILER keeps its one-line spot: it was centred in the 32px row, so 6px off the bottom */
html[data-composer-layout] [data-composer-field] > [data-composer-spoiler] { align-self: flex-end; margin-bottom: 13.5px; }
/* A: send inside, off the box's right edge */
html[data-composer-layout="A"] [data-composer-field] { padding-right: 6px !important; }
/* B: send outside on the right. The slot keeps its width even before there is anything to send, so the words never
   change width under the finger; the box ends 6px before it. */
html[data-composer-layout="B"] [data-composer-field]::before { right: calc(2rem + 6px); }
/* ▶️ SEND REVEALS LIKE THE STREAM COMMENT BAR (Josh 2026-10-08 ~14:30/14:33: "as soon as they start typing, it shrinks inward a
   little bit and reveals the send button" / "make sure it actually starts on the right side as well and then slides over nice
   and smooth when everything shrinks"). REPLACES the B rule that kept the empty slot 2rem wide (the empty gap on the right):
   empty, the slot is the comment bar's shut slot (width 0) and the box runs to the right edge with SPOILER at its corner; the
   first character opens the slot with the comment bar's own .qd-slot transition (.26s cubic-bezier(.2,.9,.25,1)), and the box
   edge and SPOILER ride that same curve. */
html[data-composer-layout="B"] [data-composer-field] > .qd-slot-shut { width: 0 !important; margin-left: 0 !important; }
/* GROWHOLD's cut line on the chat lists' fade (hooks/useComposerGrowHold.js): NOT inherited, so moving it restyles the scroller only */
@property --gh-cut { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --kb-cut { syntax: '<length>'; inherits: false; initial-value: 0px; }
html[data-composer-layout="B"] [data-composer-field]::before { transition: border-color .2s, box-shadow .2s, right .26s cubic-bezier(.2,.9,.25,1); }
html[data-composer-layout="B"] [data-composer-field]:has(> .qd-slot-shut)::before { right: 0; }
html[data-composer-layout="B"] [data-composer-field] > .flex-1 { padding-right: 8px; }

/* The comment / reply bars (CommentComposer's shell): the same two layouts. The pill is ordered FIRST (ahead of the
   avatar gutter, which stays inside the box), the right group holds the send. */
html[data-composer-layout] [data-composer-shell] {
    align-items: flex-end !important; background: transparent !important; border-width: 0 !important; box-shadow: none !important;
    padding: 5px 0 !important; isolation: isolate; --cl-pill: 74px;
}
html[data-composer-layout] [data-composer-shell]:has(> [data-soap-pill="solo"]) { --cl-pill: 40px; }
html[data-composer-layout] [data-composer-shell]::before {
    content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--cl-pill) + 8px); right: 0; z-index: -1;
    border-radius: 1rem; border: 1px solid; border-color: inherit; background: #09090b;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04); transition: border-color .2s; pointer-events: none;
}
html[data-composer-layout] [data-composer-shell] > [data-soap-pill] { order: -1; margin-right: 8px !important; margin-bottom: 3.5px; }
html[data-composer-layout] [data-composer-shell] .qd-slot { margin-bottom: 3.5px; }
/* THE AVATAR RIDES THE SAME LINE (Josh 2026-10-29: "the avatar is sitting lower. It's not lined up horizontally with everything
   else."). The shell is flex-end, so the 28px avatar sat on the 39px line's floor, 5.5px under the pill and Send; lifted by
   (39 - 28) / 2 it shares their centre, and still rides the last line as the box grows. Guard: tests/test_comment_avatar_centred.js */
html[data-composer-layout] [data-composer-shell] > [data-composer-avatar] { margin-bottom: 5.5px; }
html[data-composer-layout] [data-composer-shell] > :first-child { margin-left: 12px; }
html[data-composer-layout="A"] [data-composer-shell] > :last-child { margin-right: 12px; }
html[data-composer-layout="B"] [data-composer-shell]::before { right: calc(2rem + 8px); }
/* ▶️ THE STREAM COMMENT BAR IS FULL WIDTH UNTIL THERE IS SOMETHING TO SEND (Josh 2026-10-08 ~23:10: "It's supposed to go all
   the way to the right side and then when someone starts typing it shrinks and the animation for the send button appears").
   This rule used to keep the EMPTY slot 2rem wide, so once 8706fa0f7e put layout B on every host the comment / reply bar
   stopped short of the card's right edge. Empty: the slot is shut (width 0) and the box runs to the right edge; the first
   character opens the slot with the bar's own .qd-slot curve and the box edge rides the same curve in. SHELL ONLY: the chat
   field ([data-composer-field]) has its own rules above. Guard: tests/test_stream_comment_bar_webkit.js */
html[data-composer-layout="B"] [data-composer-shell] .qd-slot-shut { width: 0 !important; margin-left: 0 !important; }
html[data-composer-layout="B"] [data-composer-shell]::before { transition: border-color .2s, right .26s cubic-bezier(.2,.9,.25,1); }
html[data-composer-layout="B"] [data-composer-shell]:has(.qd-slot-shut)::before { right: 0; }
html[data-composer-layout="B"] [data-composer-shell] > .flex-1 { margin-right: 12px; }
/* SPOILER sits fully inside the rim (Josh, round 6: "the spoiler tag needs to move to the left some it over lapping the text
   input edging"): in B the box ends 6px before the send slot, so the tag's own 4px right margin left it ON the rim. */
/* (B in-box SPOILER margin retired 2026-10-08: the tag sits above send) */
/* 🏷️ B v3 — THE WORDS FILL THE BOX, ONLY THE BOTTOM LINE MAKES ROOM FOR SPOILER (Josh 2026-10-06: "it would be nice if the text
   filled the box more on the upper lines and morphed aroud the spoiler tag" -> "yeah b is good now"). The tag leaves the row and
   floats bottom-right INSIDE the box, on the one-line spot it always had (13.5px off the bottom, >= 6px inside the rim), so the
   textarea runs the full width. composerLayout.attachSpoilerFlow sets [data-spoiler-drop] when the last line would run under
   the tag; the box then grows one line (12px pad + 21px line) and the tag sits on its own bottom line - a float's behaviour. */
/* 🏷️ SPOILER LIVES ABOVE SEND, OUTSIDE THE BOX (Josh 2026-10-08 ~14:35/~14:37 — REPLACES B v3's in-box float): hidden while the
   message is empty or one line (line 1 gets the box's full width, no reserved gap), fades in once a 2nd line starts
   ([data-ml], set by hooks/useComposerGrowHold.js), fades out on the way back to one line unless spoiler is ON ([data-on]).
   Opacity + transform only. It sits in the send column (send: 32px wide, 7.5px off the bottom) 4px above send; the 60px tag is
   as far right as the sheet allows (its right edge at the block's edge), so it rides up with the bar and never covers the words. */
html[data-composer-layout="B"] [data-composer-field] > [data-composer-spoiler] {
    position: absolute !important; right: -6px; bottom: 43.5px; margin: 0 !important; z-index: 2;
    opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
html[data-composer-layout="B"] [data-composer-field][data-ml] > [data-composer-spoiler],
html[data-composer-layout="B"] [data-composer-field] > [data-composer-spoiler][data-on] { opacity: 1; transform: none; pointer-events: auto; }
/* 📏 ROOM ABOVE THE TAG (Josh 2026-10-07: "that line above, it is literally almost sitting on top of the spoiler tag"). With a
   21px line the 20px tag filled its line and the line above sat on it. Lines are 24px in the B chat field (both chats, so the
   bars match) and the pad is 10.5px (+1px rim), so ONE line is still the 47px box and the bottom line's centre (1 + 10.5 + 12 = 23.5px off the
   bottom) is exactly the pill's, send's and the tag's centre (7.5 + 16 / 13.5 + 10). The tag now has 2px of its own line above
   it, and every line above is 3px further up. */
html[data-composer-layout="B"] [data-composer-field] .chat-mentions__highlighter,
html[data-composer-layout="B"] [data-composer-field] .chat-mentions__input {
    line-height: 1.5rem !important; padding-top: 10.5px !important; padding-bottom: 10.5px !important;
}
/* 📏 THE CEILING FOLLOWS THESE LINES (Bug Report #0019, nightly 2026-10-23): mentionStyle.js CHAT_COMPOSER_MAX_H reads this
   var. It was 5 x 21px + 26px = 131px, the default metrics, while B draws 24px lines + 21px pad + 2px rim — 4.46 lines, so a
   5-line message (the nightly's at 375) scrolled inside the box. 5 lines here = 5 x 1.5rem + 23px (143px), or 20vh if smaller.
   Change the line-height or the pad above and change this with it. Guard: tests/test_composer_long_message_webkit.js
   ⚠️ RESTORED 2026-10-27 (Bug Report #0020): 742b5a29eb added this line and 37f8679213 (a stale-tree commit) dropped it 23
   minutes later, so prod never had it. tests/test_composer_ceiling_var.js reads the COMMITTED tree for it. */
html[data-composer-layout="B"] [data-composer-field] { --chat-composer-max: min(calc(5 * 1.5rem + 23px), 20vh); }
/* (the [data-spoiler-drop] extra bottom line is retired: SPOILER no longer sits inside the box — see above send, 2026-10-08) */

/* REMOVED (round 9, 2026-10-02): a while-moving `content-visibility:auto` on message rows. Green on the Blink rig, but on
   Josh's iPhone it re-measured the whole list at the tap AND at the landing (scrollHeight 1521 -> 1747 -> 1481) - two
   80-150ms frozen frames that made motion ON rougher than motion OFF ("Motion off was way smoother with this one"). */

/* ⚡ PROMOTED AT REST, NOT AT THE TAP (round 8, 2026-10-02). Creating a layer is a full rasterization of it, and doing that
   at touchstart put it inside the first frame of the keyboard motion. Only the app header and the club chat's message
   content are promoted permanently: both are free of position:fixed descendants (the pickers and menus portal out), so the
   containing block a will-change creates cannot move anything. The sheet, its container and the composer still promote at
   the tap and drop it at the landing — the composer's mention list is position:fixed and must keep the viewport.
   Memory: WebKit tiles a tall composited layer, so a long chat costs about its visible area, not its full height. */
#app-header[data-kb-morph] { will-change: translate; }
/* (round 9, 2026-10-03: the club message content is no longer promoted — the club now runs the event chat's per-frame
   geometry and nothing in it translates. A permanent layer the size of the whole chat bought nothing.) */

/* ═══ 🧊 SPOILER — C3 "ETCHED GLASS" (static/components/spoilerVeil.jsx). Josh 2026-10-08 ~14:40 → ~17:05, his dials verbatim:
   {veil_tag_opacity .8, tag_size .75, tag_position below, tag_rotation_deg 4, tag_gap_px 7, prompt_opacity 1, prompt_text, cursor_blink,
    word_blur_px 6, frost 0, dot_matrix .8, rim_opacity .25, mini_tag_opacity 1, composer_tag_size .8, composer_tag_angle_deg 0,
    composer_tag_offset_px 9, composer_tag_squish .8, reveal pixel 1600ms, pixel_block_px 28} + the tag centred on its RECTANGLE body.
   Spec = the sampler https://claude.ai/artifact/KSrzFmMYGEPSUvu77KBm3B (v6), its CSS ported here. Frost is 0, so its terms are gone. ═══ */

/* THE TAG, SIZED TO ITS WORD (the R no longer hangs off the end): the point is half the height, the hole at a third of it, the
   body grows with the text, so no font can push a letter out. */
.spv-tagw { display: inline-flex; flex: none; --s: 1; }
.spv-tg {
    --h: calc(20px * var(--s)); display: inline-flex; align-items: center; height: var(--h);
    padding: 0 calc(var(--h) * .34) 0 calc(var(--h) * .72);
    font-size: calc(9px * var(--s)); line-height: 1; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
    clip-path: polygon(calc(var(--h) / 2) 0, 100% 0, 100% 100%, calc(var(--h) / 2) 100%, 0 50%);
    -webkit-mask: radial-gradient(circle at calc(var(--h) / 3) 50%, transparent calc(var(--h) * .104), #000 calc(var(--h) * .104 + .6px));
            mask: radial-gradient(circle at calc(var(--h) / 3) 50%, transparent calc(var(--h) * .104), #000 calc(var(--h) * .104 + .6px));
}
.spv-tg > b { font-weight: inherit; margin-top: calc(1px * var(--s)); }
.spv-tagw.on .spv-tg { font-weight: 900; }
.spv-tagw.mini { --s: .7; }   /* mini_tag_size .7 (round 5) */

/* ┌─ TAG FINISH: FLAT (the default; Josh ~22:00). EVERY paint property of the SPOILER / "Mark as spoiler" tags lives here and
   │  ONLY here, so his pending pick (a soap-bubble 3D finish, sampler toggle) is a swap of this one block. ─┐ */
.spv-tagw { filter: drop-shadow(0 4px 3px rgba(0,0,0,.07)) drop-shadow(0 2px 2px rgba(0,0,0,.06)); }
.spv-tg { color: #d4d4d8; background: #52525b; transition: background .2s, color .2s; }
.spv-tagw.on .spv-tg { background: #dc2626; color: #fff; }
.spv-tagw.mini { filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); }
/* SOAP (Josh's FINAL ~22:15: tag_finish "soap", soap_shine .65) - the sampler v9 recipe, verbatim: a pool + depth layer and a
   screen-blended shine layer over the flat paint, on every tag (veil, mini, composer) and the Edited pill. Clipped by the tag's own
   clip-path / mask, so the shape and the hole are unchanged. */
:root { --soap: .65; }
.spv-tg { position: relative; isolation: isolate; --pool: 255,130,130; }
.spv-tagw:not(.on) .spv-tg { --pool: 200,200,210; }
.spv-tg > b { position: relative; z-index: 2; text-shadow: 0 1px 2px rgba(0,0,0,.45); }
.spv-tg::before, .spv-tg::after, .spv-edp::before, .spv-edp::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.spv-tg::before, .spv-edp::before { z-index: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 115%, rgba(var(--pool), calc(.49 * var(--soap))), rgba(var(--pool), 0) 70%),
        linear-gradient(180deg, rgba(255,255,255,calc(.16 * var(--soap))) 0%, rgba(255,255,255,.03) 45%, rgba(0,0,0,calc(.10 * var(--soap))) 100%);
    box-shadow: inset 0 calc(var(--h) * -.16) calc(var(--h) * .26) rgba(0,0,0,calc(.28 * var(--soap))), inset 0 1px 1px rgba(255,255,255,calc(.6 * var(--soap))),
        inset 0 0 0 .5px rgba(255,255,255,calc(.15 * var(--soap))); }
.spv-tg::after, .spv-edp::after { z-index: 1; mix-blend-mode: screen;
    background: radial-gradient(ellipse 26% 24% at 30% 25%, rgba(255,255,255,calc(.47 * var(--soap))), rgba(255,255,255,0) 100%),
        linear-gradient(180deg, rgba(255,255,255,calc(.3 * var(--soap))) 0, rgba(255,255,255,0) 40%),
        radial-gradient(ellipse 19% 26% at 74% 67%, rgba(255,255,255,calc(.33 * var(--soap))), rgba(255,255,255,0) 100%),
        conic-gradient(from 210deg, rgba(168,85,247,calc(.15 * var(--soap))), rgba(56,189,248,calc(.13 * var(--soap))), rgba(45,212,191,calc(.12 * var(--soap))),
            rgba(163,230,53,calc(.12 * var(--soap))), rgba(244,114,182,calc(.15 * var(--soap))), rgba(168,85,247,calc(.15 * var(--soap)))); }
/* the Edited pill: the same soap with a neutral pool, like the reaction viewer's */
.spv-edp { isolation: isolate; --pool: 220,220,235; --h: calc(16px * var(--e)); text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.spv-edp > * { position: relative; z-index: 2; }
/* └─ TAG FINISH: END ─┘ */

/* THE SPOILER BUBBLE: only as wide as the veil genuinely needs (Josh 18:30: every bubble hugs its longest line). Measured in the
   WebKit rig: the widest veil line ("HOLD TO REVEAL" + cursor) is 115px + the bubble's 2 x 14px padding = 143px; 152px leaves the
   glass a little air. The sampler's 176px was a mock-up width, not a need. */
[data-chat-text-bubble][data-spv],
.spv-host[data-marked] [data-chat-text-bubble] { min-width: 152px; }
[data-chat-text-bubble][data-spv] > p,
.spv-host[data-marked] [data-chat-text-bubble] > p { min-height: 3.25em; }
/* THE WORDS UNDER THE GLASS: a STATIC blur (word_blur 6px), switched only while the pixel blocks fully cover it. Busy and not yet
   sharp = still blurred (the unfold swaps it under the blocks). */
[data-chat-text-bubble][data-spv]:has(> .spv-veil:is([data-state="veiled"], [data-busy]):not([data-sharp])) > p,
.spv-host:has(> .spv-veil:is([data-state="veiled"], [data-busy]):not([data-sharp])) > [data-spoiler-body] [data-chat-text-bubble] > :is(p, div:not([aria-hidden])) {
    filter: blur(6px) saturate(.6); opacity: .55;
}
/* a marked message's photos / videos / cards: blurred harder (a picture survives 6px) */
.spv-host:has(> .spv-veil:is([data-state="veiled"], [data-busy]):not([data-sharp])) > [data-spoiler-body] > :not([data-chat-text-bubble]) {
    filter: blur(16px) saturate(.6);
}

/* THE VEIL: glass (dot matrix + rainbow rim) + "Hold to reveal" with the SPOILER tag below it. It takes the touch while veiled
   (the hold), and while a transition runs (so nothing reaches the row's picker). */
.spv-veil {
    position: absolute; inset: 0; border-radius: inherit; overflow: hidden; z-index: 3; visibility: hidden; pointer-events: none;
    --spv-dot-a: .128; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
.spv-veil.spv-ink-dark { --spv-dot-a: .36; }
.spv-veil[data-state="veiled"], .spv-veil[data-busy] { visibility: visible; pointer-events: auto; }
.spv-veil[data-state="veiled"] { cursor: pointer; }
.spv-veil > * { position: absolute; inset: 0; border-radius: inherit; }
.spv-glass { background-image: radial-gradient(rgba(255,255,255,var(--spv-dot-a)) .6px, transparent .9px); background-size: 5px 5px; }
.spv-glass::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; opacity: .25; pointer-events: none;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
    background: conic-gradient(from 210deg, rgb(var(--bif-1)), rgb(var(--bif-2)), rgb(var(--bif-3)), rgb(var(--bif-4)), rgb(var(--bif-5)), rgb(var(--bif-6)), rgb(var(--bif-7)), rgb(var(--bif-1)));
}
/* tag BELOW the prompt, 7px apart, tag at 75% / 80% opacity / 4deg */
.spv-label { display: flex; flex-direction: column-reverse; align-items: center; justify-content: center; gap: 7px; pointer-events: none; }
.spv-label .spv-tagw { opacity: .8; --s: .75; transform: rotate(4deg); }
/* CENTRED ON THE BODY, NOT THE POINT (Josh 17:05): a -h/2 margin takes the tapered point out of the centring box, so the
   rectangle sits dead centre and the point hangs off to its left. Same above send (.spv-ctag). */
.spv-label .spv-tg { margin-left: calc(var(--h) * -.5); }
.spv-pr {
    white-space: nowrap; line-height: 1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 300; font-size: 0.53125rem;
    letter-spacing: .3em; text-transform: uppercase;
    color: rgba(255,255,255,.82); text-shadow: 0 0 8px rgba(var(--bif-1),.55), 0 0 2px rgba(255,255,255,.35);
}
.spv-ink-dark .spv-pr { color: rgba(40,28,0,.66); text-shadow: 0 0 6px rgba(255,255,255,.7); }
.spv-blink { display: inline-block; width: .55em; height: 1px; background: currentColor; vertical-align: .1em; margin-left: .35em; animation: spv-blink 1.1s steps(2, end) infinite; }
/* CENTRED ON THE WORDS ONLY (Josh ~20:20: "the blinking_should not count for the centering only the actual text should"): the
   cursor leaves the flow (absolute, after the text) and the last letter's trailing .3em tracking is taken back, so the
   centre of "HOLD TO REVEAL" is the centre of its ink. */
.spv-veil .spv-pr { position: relative; margin-right: -.3em; }
.spv-veil .spv-pr > .spv-blink { position: absolute; left: 100%; bottom: .2em; margin-left: .05em; }
@keyframes spv-blink { 0% { opacity: 1; } 50%, 100% { opacity: 0; } }
/* the pixel unfold's blocks (built per transition, removed after): transform / opacity only */
.spv-cells { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; z-index: 2; pointer-events: none; }
.spv-cells i { position: absolute; display: block; backface-visibility: hidden; will-change: transform, opacity; }
/* a MARKED message's host holds whole bubbles (each its own z-10 layer): the blocks and the glass go over them */
.spv-host > .spv-cells { z-index: 29; }
.spv-host > .spv-veil { z-index: 30; }

/* ═ THE BADGES ON THE TOP-RIGHT EDGE (Josh ~20:20 → round 5 ~22:00; sampler v8 .bdg): the mini SPOILER tag (revealed only; TAP =
   blur again) and the EDITED pill sit ON the bubble's top edge, 3px in from its right corner (badge_inset_px), overlapping it by
   5px (badge_overlap_px); the pill slides 5px (badge_gap_px) left of the tag when both show. Pinned to the bubble element itself,
   so they ride the bubble-hug width. --spv-room = the tallest badge - overlap + 2px is reserved above every bubble that can wear
   one (edited / spoiler), held while veiled: a reveal never moves the row, nothing reaches the bubble, pill or viewer above. ═ */
:root { --spv-bdg-h: max(calc(20px * .7), calc(16px * .9)); --spv-room: calc(var(--spv-bdg-h) - 5px + 2px); }
.spv-bdg { position: absolute; top: 0; right: 3px; width: 0; height: var(--spv-bdg-h); transform: translateY(calc(-100% + 5px));
    z-index: 5; pointer-events: none; white-space: nowrap; line-height: 1; }
.spv-bdg > * { position: absolute; top: 50%; right: 0; }
.spv-bdg-host { top: var(--spv-room); }   /* a marked photo-only message: on the media's top edge */
/* the mini tag = the re-blur button (Josh 16:00): a generous invisible hit area around the tag */
.spv-mini {
    display: inline-flex; background: none; border: 0; padding: 0; margin: 0; line-height: 1; -webkit-tap-highlight-color: transparent;
    opacity: 0; transform: translateY(calc(-50% + 3px)) scale(.85); transform-origin: 100% 50%; pointer-events: none;
    transition: opacity .28s .08s, transform .32s cubic-bezier(.2,.9,.25,1) .08s;
}
.spv-mini[data-state="revealed"] { opacity: 1; transform: translateY(-50%); pointer-events: auto; cursor: pointer; }
.spv-mini::after { content: ""; position: absolute; inset: -12px -10px -10px -12px; }
/* THE EDITED PILL (edited_pill_size .9) — replaces the "(edited)" text in both chats */
.spv-edp { --e: .9; display: inline-flex; align-items: center; gap: calc(3px * var(--e)); height: calc(16px * var(--e));
    padding: 0 calc(7px * var(--e)) 0 calc(6px * var(--e)); border-radius: 999px; font-size: calc(9px * var(--e)); font-weight: 700;
    letter-spacing: .02em; color: #e4e4e7; background: rgba(24,24,27,.92); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), 0 2px 6px rgba(0,0,0,.45);
    transform: translateY(-50%); transition: transform .32s cubic-bezier(.2,.9,.25,1); }
.spv-edp svg { width: calc(8px * var(--e)); height: calc(8px * var(--e)); fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.spv-bdg[data-state="revealed"] > .spv-edp { transform: translateY(-50%) translateX(calc(-1 * (var(--spv-tagw, 0px) + 5px))); }
/* WHO TAGGED IT, INSIDE THE BUBBLE (Josh 2026-10-08 ~18:30): the tagger's mini avatar + "tagged spoiler". In the bubble it is
   the bottom line, always in the layout (a reveal never resizes the bubble), shown once revealed; in the veil it sits under
   the SPOILER tag in the prompt's mono type. */
.spv-tagged { display: flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 0.65625rem; line-height: 0.875rem; font-weight: 500;
    white-space: nowrap; opacity: .78; transition: opacity .28s .08s; pointer-events: none; }
.spv-tagged[data-state="veiled"]:not(.in-veil) { opacity: 0; }
.spv-tagged-av { width: 14px; height: 14px; border-radius: 9999px; object-fit: cover; flex: none; box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
.spv-tagged.in-veil { margin: 0; opacity: .9; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 300; font-size: 0.53125rem;
    letter-spacing: .12em; color: rgba(255,255,255,.82); text-shadow: 0 0 6px rgba(var(--bif-1),.5); }
.spv-tagged.in-veil .spv-tagged-av { width: 12px; height: 12px; }
.spv-ink-dark .spv-tagged.in-veil { color: rgba(40,28,0,.7); text-shadow: 0 0 6px rgba(255,255,255,.7); }
/* a MARKED message: the host keeps the --spv-room strip the badges poke into (the bubble's own top margin folds into it),
   and the glass starts BELOW it, on the bubble's top edge */
.spv-host[data-marked] { padding-top: var(--spv-room); }
.spv-host[data-marked] > [data-spoiler-body] [data-chat-text-bubble] { margin-top: 0 !important; }
.spv-host[data-marked] > .spv-veil, .spv-host[data-marked] > .spv-cells { top: var(--spv-room); }
.spv-tagged-media { align-self: flex-start; margin: 4px 2px 0; color: rgba(255,255,255,.85); text-shadow: 0 0 3px rgba(0,0,0,.9); }

/* THE COMPOSER TAG, round 5 (Josh ~20:20 "sits on the top right corner of the text input bubble and just rises up with it" + "says
   the full text Mark as spoiler"; ~22:00 size .65, height 1.5, squish .8, x 0, y 1). Anchored to the box's TOP edge (the field's
   top; the box grows upward, so the tag rides up with it) and its RIGHT edge (2rem + 6px in from the field's right, where the box
   ends beside send), centred on that edge line (a 0-tall flex row), right-anchored so it grows leftward inside the box's width.
   Shown/hidden by the [data-ml] / [data-spv-ml] / [data-on] rules. --cc-x / --cc-y = CORNER_TAG_X_PX / _Y_PX (spoilerVeil.jsx). */
html[data-composer-layout="B"] [data-composer-field] > [data-composer-spoiler] {
    top: var(--cc-y, 1px); bottom: auto; right: calc(2rem + 6px - var(--cc-x, 0px)); width: auto; height: 0;
    display: flex; align-items: center; justify-content: flex-end; overflow: visible; background: none; border: 0; padding: 0;
}
/* SELF-SUFFICIENT (so this block works on its own at HEAD, before or without the keyboard dept's composer CSS): the tag is out of
   the row, hidden until line 2 (or spoiler ON with words), opacity + transform only; HEAD's B v3 "drop" bottom line is retired
   (the tag no longer sits in the box). Duplicates of club-sheet-1006's rules are harmless once theirs land. */
html[data-composer-layout="B"] [data-composer-field] > [data-composer-spoiler] {
    position: absolute !important; margin: 0 !important; z-index: 2;
    opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
html[data-composer-layout="B"] [data-composer-field][data-ml] > [data-composer-spoiler],
html[data-composer-layout="B"] [data-composer-field] > [data-composer-spoiler][data-on] { opacity: 1; transform: none; pointer-events: auto; }
html[data-composer-layout="B"] [data-composer-field][data-spoiler-drop] .chat-mentions__highlighter,
html[data-composer-layout="B"] [data-composer-field][data-spoiler-drop] .chat-mentions__input { padding-bottom: 10.5px !important; }
/* empty = no tag, even with spoiler ON (the sampler's rule: the tag needs words to belong to) */
/* 2+ lines by spoilerVeil's own count (attachComposerLines) shows the tag too: a RESTORED DRAFT included (Josh ~20:20) */
html[data-composer-layout="B"] [data-composer-field][data-spv-ml] > [data-composer-spoiler] { opacity: 1; transform: none; pointer-events: auto; }
html[data-composer-layout="B"] [data-composer-field]:not([data-ml]):not([data-spv-ml]) > [data-composer-spoiler][data-on][data-empty] { opacity: 0; transform: translateY(4px); pointer-events: none; }
/* 2026-10-20 (Josh: "Chat/clubs/event chats: mark as spoiler button should appear when first letter is typed."): any words in the
   box = the tag shows, one line included; an empty box still hides it (both chats set [data-empty] the same way). */
html[data-composer-layout="B"] [data-composer-field] > [data-composer-spoiler]:not([data-empty]) { opacity: 1; transform: none; pointer-events: auto; }
.spv-ctag { --s: .65; --hk: 1.5; }   /* corner_tag_size .65, corner_tag_height 1.5 */
/* THE EDITING VEIL IN BOTH CHATS = the same etched glass (the sampler's spoiler + editing pair): no black wash, dot matrix + rim
   over the bubble's own colour, the words 6px / saturate .6 / .55 like a veiled spoiler, "EDITING..." in the prompt's mono type.
   Comments keep the house veil (EditingVeil without `glass`). */
.eic-veil.eic-glass { background: transparent; --spv-dot-a: .128; }
/* the editing veil spans the whole edit column (bubble + photo + quote), so its prompt is ALWAYS the light, glowing one and the
   dots the light alpha, whatever the bubble's ink: dark ink over a photo is unreadable (WebKit rig, 2026-10-08) */
.eic-veil.eic-glass.spv-ink-dark { --spv-dot-a: .128; }
.eic-veil.eic-glass > .eic-veil-label.spv-pr { color: rgba(255,255,255,.9); text-shadow: 0 0 8px rgba(var(--bif-1),.6), 0 0 3px rgba(0,0,0,.9), 0 1px 2px rgba(0,0,0,.8); }
.eic-veil.eic-glass > .spv-glass { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.eic-veil.eic-glass > .eic-veil-label { position: relative; font-weight: 300; font-size: 0.53125rem; letter-spacing: .3em; }
.eic-veiled:has(> .eic-veil.eic-glass) > *:not(.eic-veil) { filter: blur(6px) saturate(.6); opacity: .55; transition: filter .38s ease, opacity .38s ease; }
.eic-veiled.eic-leaving:has(> .eic-veil.eic-glass) > *:not(.eic-veil) { filter: blur(0); opacity: 1; }
/* (REMOVED 2026-10-09, Josh ~02:25: "I don't like the purple and dot matrix in the text input". The chat text input NEVER takes
   the etched-glass look; spoiler state shows only on the "Mark as spoiler" corner tag. Guard: tests/test_spoiler_veil.js §composer-plain) */
.spv-ctag .spv-tg {
    --h: calc(20px * var(--s) * var(--hk)); font-size: calc(9px * var(--s) * (1 + (var(--hk) - 1) * .6));
    margin-left: 0; letter-spacing: calc(.1em + (.8 - 1) * .45em);
    padding-left: calc(var(--h) * .72 * min(1, .8)); padding-right: calc(var(--h) * .34 * .8);
}

@media (prefers-reduced-motion: reduce) {
    .spv-blink { animation: none; }
    .spv-mini { transition: opacity .15s; transform: translateY(-50%); }
    .spv-edp { transition: none; }
}

/* ══ NESTED SCROLLERS (plot-scroll-1008) — every plot / overview / bio box that scrolls inside a page or a sheet ══
   Josh 2026-10-08 ~20:30: "if they're touching that area, it shouldn't mess with the rest of the page scrolling" and
   "it has a hard cut off edge on the top rather than a fade like it does on the bottom". Set by useNestedScroll()
   (static/hooks/useNestedScroll.js): data-nest-scroll on the box, data-nest-above / data-nest-below while text is
   hidden past that edge. `contain` keeps the box's OWN rubber band (`none` would kill it) and stops the chain. */
[data-nest-scroll] { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
[data-nest-scroll][data-nest-below] {
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--nest-fade, 22px)), transparent 100%);
    mask-image: linear-gradient(to bottom, #000 calc(100% - var(--nest-fade, 22px)), transparent 100%); }
[data-nest-scroll][data-nest-above] {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--nest-fade, 22px));
    mask-image: linear-gradient(to bottom, transparent 0, #000 var(--nest-fade, 22px)); }
[data-nest-scroll][data-nest-above][data-nest-below] {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--nest-fade, 22px), #000 calc(100% - var(--nest-fade, 22px)), transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 var(--nest-fade, 22px), #000 calc(100% - var(--nest-fade, 22px)), transparent 100%); }

/* 🪄 HEX'D = THE MAGIC PILL (Josh 2026-10-11: "a violet gradient baby blue magic looking pill that gets left behind";
   "Ok go with the hat. Hex is the winner."). The MEDIUM variant of the magic-reaction sampler (artifact P6bNNhsyu79n63mVp2B7Gr,
   _handoff/samples/magic-reaction-2026-10-11/sampler.html), ported 1:1: its own violet -> baby-blue body in place of .rxs-back,
   the soap rim and shine kept on top, a row of white sparkles that twinkles and a sheen that sweeps every 4.6s. White words.
   Markup: components/soapPill.jsx (MAGIC_PILLS). Guard: tests/test_hex_magic_pill.js. Reduced motion: still pill, no shimmer. */
.rx-soap.rx-magic{--pc:#8b5cf6;--pcrgb:139,92,246}
.rx-soap.rx-magic .rxm-grad{z-index:0}
.rx-soap.rx-magic .rxm-spark{z-index:2;background-repeat:repeat-x;background-size:72px 24px;background-position:0 0;animation:rxm-twinkle 2.8s ease-in-out infinite alternate;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 24'%3E%3Cg fill='%23fff'%3E%3Cpath d='M14 4l.9 2.1L17 7l-2.1.9L14 10l-.9-2.1L11 7l2.1-.9z'/%3E%3Cpath d='M44 13l.7 1.6 1.6.7-1.6.7-.7 1.6-.7-1.6-1.6-.7 1.6-.7z' opacity='.85'/%3E%3Cpath d='M62 5l.6 1.3 1.3.6-1.3.6-.6 1.3-.6-1.3-1.3-.6 1.3-.6z' opacity='.75'/%3E%3Ccircle cx='28' cy='17' r='.9' opacity='.7'/%3E%3Ccircle cx='6' cy='18' r='.7' opacity='.6'/%3E%3Ccircle cx='54' cy='19' r='.8' opacity='.55'/%3E%3Ccircle cx='36' cy='6' r='.6' opacity='.6'/%3E%3C/g%3E%3C/svg%3E")}
/* 2026-10-20 (Josh): "Hexed pill doesn't need an animated sheen" - the sweeping glint is gone; the sparkles stay. */
@keyframes rxm-twinkle{0%{opacity:calc(var(--sparkle,.7)*.45)}100%{opacity:var(--sparkle,.7)}}
/* M = MEDIUM: a real violet -> baby-blue body, TOP -> BOTTOM like every pill (Josh 10-11: "gradient from top to the bottom like all the other pills"), the soap shading and rim kept on top of it */
.rx-soap.rx-magic-medium{--sparkle:.75}
.rx-soap.rx-magic-medium .rxm-grad{background:linear-gradient(180deg,rgba(255,255,255,.14) 0%,rgba(255,255,255,0) 45%,rgba(0,0,0,.14) 100%),linear-gradient(180deg,#6d3df0 0%,#8d66f6 44%,#7cc4ff 100%);
  box-shadow:inset 0 -3px 5px rgba(0,0,0,.28),inset 0 1px 1px rgba(255,255,255,.6),inset 0 0 0 1px rgba(255,255,255,.18)}
/* S = SYNTH (Classic'd, Josh 2026-10-20). His words: "the blue should only be under the text", "separated floating pieces ...
   a split canvas ... up and down", "a smooth gradient between the pink and blue", "the slices ... should thin out like a real
   Synthwave design", "the text just goes right over the top of all of it", "corners to be rounded for each slice", "more
   subtle", "the top ... round like the others". ONE smooth pink -> blue body cut into four slices of the house pill (2026-11-02: the
   top keeps the pill's round top, the middle is a rectangle, the bottom two are buns); the gaps show what is behind the pill; the words sit
   on top, whole. Still - no sparkles, no motion. EVERY NUMBER below = Josh's tuner JSON (01-PRODUCT-RULES, 2026-10-20,
   artifact FuujProsmNoaNu84JZ1h95). .rxm-grad keeps the body (the house top -> bottom rule reads it) but the bars draw it. */
.rx-soap.rx-magic-synth .rxm-grad{background:linear-gradient(180deg,#ff4fb0 0%,#ff4fb0 14%,#e047c8 32.9%,#9a4cf0 53.9%,#3f7cff 70%,#2f7bff 100%);visibility:hidden}
.rx-soap.rx-magic-synth .rxm-spark,.rx-soap.rx-magic-synth .rxs-rim,.rx-soap.rx-magic-synth .rxs-clip{display:none}
.rx-soap.rx-magic-synth .rxm-slices{z-index:1}
/* the icon reads over the bars (Josh 10-20: "the icon itself doesnt seem to have the neon glow ... it needs a drop shadow behind it"):
   a dark silhouette shadow, then a blurred, brightened copy of the icon = every tube glows ITS OWN colour at 17px, then the icon. */
.rx-soap.rx-magic-synth > :not(.rxs-l):not(.rxs-t){z-index:2}
.rx-soap.rx-magic-synth > .rxm-ico-shadow{filter:brightness(0) blur(1.3px);opacity:1;scale:1.1}
.rx-soap.rx-magic-synth > .rxm-ico-plate{position:absolute;left:-3.75px;top:50%;width:32.5px;height:16.5px;margin-top:-8.25px;border-radius:50%;pointer-events:none;
  background:radial-gradient(closest-side,rgba(10,6,24,1) 0%,rgba(10,6,24,0.56) 59%,rgba(10,6,24,0) 100%)}
.rx-soap.rx-magic-synth > .rxm-ico-glow{filter:blur(0.2px) saturate(2.1) brightness(3);opacity:1}
/* 2026-11-02 (Josh, tuner send 5cgtam4rmczd8rckmugr "done"): "The idea was slices taken out of the pill". The bars are now the
   house pill itself with horizontal cuts through it, drawn by soapPill.jsx SynthSlices as ONE inline SVG sized to the pill
   (the tuner's slicePath/sliceBands/bars verbatim, the same pink -> blue stops); it overhangs nothing and never moves. */
.rx-soap.rx-magic-synth .rxm-slices>svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible;display:block}
/* reduced motion: the sparkles hold at their resting strength */
@media (prefers-reduced-motion: reduce){.rx-soap.rx-magic .rxm-spark{animation:none;opacity:var(--sparkle,.7)}}

/* ⬛⬜ THE BLACK & WHITE SCREEN (static/components/bwScreen.js). On the ROOT only: a filter on <html> is the one place it
   does not become the containing block for position:fixed (Filter Effects 1 §5), so every popup, portal, canvas, video
   and iframe opened on a B&W profile / B&W shelf is grey with nothing re-anchored. Josh 2026-10-14. */
html[data-bw-screen] { filter: grayscale(1); }

/* ⌨️ POST TYPING DOTS (2026-10-14) — ThreadTyping.jsx, under every post thread. Josh: "the 3 dot ellipses too when a
   user is writing a reply or comment under a post too app-wide" + "less taxing processing on people's phones".
   The chats' look (the wave + the Bifrost at the top of each jump, typing-bifrost-dot above), rebuilt on the
   COMPOSITOR: every keyframe here is transform or opacity — no registered-property spin, so nothing restyles per frame.
     .ptd-dot        the wave (translateY + opacity, the chats' typing-wave numbers)
       > i           k: the Bifrost's strength, 0 -> .77 at the top of the jump (opacity)
         > b         sweep: 0 -> 2 palette steps across 0..60% of the wave (translateX)
           ::before  spin: the 7-step palette strip turning once per 10s (translateX), +1.1 steps per dot
   Off screen it pauses with every other loop (ambientMotion); reduced motion = still dots, no colour. */
@keyframes ptd-wave { 0%, 60%, 100% { transform: translateY(0); opacity: 0.45; } 30% { transform: translateY(-5px); opacity: 1; } }
@keyframes ptd-k { 0%, 60%, 100% { opacity: 0; } 30% { opacity: 0.77; } }
@keyframes ptd-sweep { 0% { transform: translateX(4px); } 60%, 100% { transform: translateX(-156px); } }
@keyframes ptd-spin { from { transform: translateX(0); } to { transform: translateX(-560px); } }
@keyframes ptd-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ptd-fade-out { from { opacity: 1; } to { opacity: 0; } }
.ptd-in { animation: ptd-fade-in 320ms ease-out both; }
.ptd-out { animation: ptd-fade-out 320ms ease-in both; }
.ptd-dot { position: relative; display: block; width: 8px; height: 8px; border-radius: 9999px; overflow: hidden;
    animation: ptd-wave 1.4s ease-in-out infinite; animation-delay: var(--ptd-d, 0ms); }
.ptd-dot > i { position: absolute; inset: 0; opacity: 0; animation: ptd-k 1.4s ease-in-out infinite; animation-delay: var(--ptd-d, 0ms); }
.ptd-dot > i > b { position: absolute; top: 0; left: -556px; width: 1400px; height: 100%;
    animation: ptd-sweep 1.4s linear infinite; animation-delay: var(--ptd-d, 0ms); }
.ptd-dot > i > b::before { content: ''; position: absolute; inset: 0;
    background-image: linear-gradient(90deg, rgb(var(--bif-1)) 0px, rgb(var(--bif-2)) 80px, rgb(var(--bif-3)) 160px, rgb(var(--bif-4)) 240px,
                                             rgb(var(--bif-5)) 320px, rgb(var(--bif-6)) 400px, rgb(var(--bif-7)) 480px, rgb(var(--bif-1)) 560px);
    background-size: 560px 100%; background-repeat: repeat-x;
    animation: ptd-spin 10s linear infinite; }
.ptd-dot:nth-child(2) > i > b::before { animation-delay: -1.5714s; }
.ptd-dot:nth-child(3) > i > b::before { animation-delay: -3.1429s; }
@media (prefers-reduced-motion: reduce) {
    .ptd-dot { animation: none; opacity: 0.75; }
    .ptd-dot > i { display: none; }
    .ptd-in, .ptd-out { animation: none; }
}

/* ═══ META CHIPS + THE ALBUM POPUP (variant C) — Josh's media-popup FINAL, 2026-10-15 ═══
   01-PRODUCT-RULES.md "Media popup FINAL — build it"; spec sampler v7 https://claude.ai/artifact/N7E2KVZBR46LL2NCuVaiLK
   (_handoff/samples/media-popup-2026-10-15/). static/components/MetaChips.jsx paints, metaChips.js decides the rows.
   SIZE: chip_size 0.85 × the phone factor clamp(.85, 100vw / 440, 1), as ONE length: --mc-u = 1px × k
   (0.7225px at ≤374 wide, 0.19318vw between, 0.85px from 440 up), so font, padding, glyph, height and gaps scale together. */
.mchips { --mc-u: clamp(0.7225px, 0.19318vw, 0.85px); position: relative; min-width: 0; max-width: 100%; }
.mchips-rail { display: block; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain; padding: 1px 0; --fl: 0px; --fr: 0px;
    /* the fade lives only on a side that hides something (MetaChips sets --fl/--fr on scroll): never a hard cut */
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%); }
.mchips-rail::-webkit-scrollbar { display: none; }
.mchips-rows { display: flex; flex-direction: column; align-items: flex-start; gap: calc(6 * var(--mc-u)); width: max-content; }
.mchips-row { display: flex; flex-wrap: nowrap; align-items: center; gap: calc(6 * var(--mc-u)) calc(8 * var(--mc-u)); }
.mchips-row > * { flex: none; }
/* style 4 · a glass chip with a glyph */
.mchips .mc-f { display: inline-flex; align-items: center; gap: calc(5 * var(--mc-u)); white-space: nowrap;
    font: 600 calc(10 * var(--mc-u) + 0.5px)/1.3 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: calc(4 * var(--mc-u)) calc(10 * var(--mc-u)) calc(4 * var(--mc-u)) calc(8 * var(--mc-u));
    border-radius: 999px; color: #d4d4d8; letter-spacing: normal; text-transform: none;
    background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.mchips .mc-f svg { width: calc(11 * var(--mc-u)); height: calc(11 * var(--mc-u)); flex: none; opacity: 0.8; }
/* the TYPE and DONATOR chips: the SAME frosted glass as every chip, gold word, and the white hairline he picked drawn as
   the chip's own 1px border (Josh 2026-10-15: "there still black or Something behind the type and donation pills. I want
   them frosted like the others" - the padded-box rim needed an opaque inner plate; a solid white rim does not). */
.mchips .mc-rim { display: inline-flex; padding: 0; margin: 0; border: 0; border-radius: 999px; background: transparent;
    font: inherit; color: inherit; vertical-align: middle; }
.mchips .mc-rim > .mc-f { border-color: rgba(255, 255, 255, 0.26); }
.mchips .mc-tin, .mchips .mc-din { color: #fcd34d; }   /* type / donator: gold word on the shared glass */
.mchips button.mc-rim { cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform 0.18s cubic-bezier(0.2, 1.4, 0.3, 1); }
.mchips button.mc-rim:active { transform: scale(0.94); }
.mchips-measure { position: absolute; left: 0; top: 0; width: 0; height: 0; overflow: hidden; visibility: hidden; pointer-events: none; }
.mchips-measure .mchips-row { width: max-content; }
/* THE TV's title / request pills ([data-tv-pills], Josh 12-03 #672n "super blurry compared to the pills underneath it"): one flat row painted with the
   page - no sideways scroller, no fade mask (nothing scrolls on a TV row; the mask + scroller is a separately composited, masked surface under
   the pills' zoom + scale, the only thing that row has and the crisp specs row under it does not). Guard: tests/test_tv_coll_top_1203.js */
[data-tv-pills] .mchips-rail { overflow: visible; -webkit-mask-image: none; mask-image: none; }
/* A TV RAIL THE LAYOUT MOVED RIGHT (tvLayout.js railEnd: the collection's titles rail): its end padding grows by the move, so the last card +
   its focus ring stop inside the page, never cut at its edge (Josh 12-03 #673n follow-up, 4-point rule 1). Guard: tests/test_tv_coll_top_1203.js */
html.ss-tv section[style*="--tvl-end"] > .tv-rail { padding-right: calc(48px + var(--tvl-end)) !important; }
/* 💊 A FACT CHIP THAT OPENS SOMETHING (2026-10-29, Josh: "some of these pills should be tappable in mediapopuo") — the same
   glass chip, a small chevron after the word, the house press. "N Seasons" -> the season view; "Collection" -> its titles.
   A long collection name ends in an ellipsis instead of widening the rail. */
.mchips button.mc-tap { cursor: pointer; -webkit-tap-highlight-color: transparent; margin: 0; vertical-align: middle;
    padding-right: calc(7 * var(--mc-u)); transition: transform 0.18s cubic-bezier(0.2, 1.4, 0.3, 1); }
.mchips button.mc-tap:active { transform: scale(0.94); }
.mchips .mc-tap-word { max-width: calc(150 * var(--mc-u)); overflow: hidden; text-overflow: ellipsis; }
.mchips .mc-f svg.mc-chev { width: calc(9 * var(--mc-u)); height: calc(9 * var(--mc-u)); opacity: 0.55; margin-left: calc(-1 * var(--mc-u)); }
/* the season view the "N Seasons" chip opens (static/components/MediaPopupPanels.jsx): the season chips are the SAME glass
   chip on one sideways rail (railLock: one axis, rubber band, edge fades); the picked season wears the gold word + rim. */
.mpp-srail { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 12px 0 2px; }
.mpp-srail::-webkit-scrollbar { display: none; }
.mpp-srail-track { display: flex; gap: 6px; width: max-content; padding: 0 16px; }
.mpp-season { flex: none; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent;
    font: 600 11px/1.3 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: #d4d4d8;
    padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); transition: transform 0.18s cubic-bezier(0.2, 1.4, 0.3, 1); }
.mpp-season:active { transform: scale(0.94); }
.mpp-season.on { color: #fcd34d; border-color: rgba(229, 160, 13, 0.6); background: rgba(229, 160, 13, 0.1); }
.mpp-code { position: absolute; left: 4px; bottom: 4px; font: 700 9px/1 'Outfit', -apple-system, sans-serif; color: #fff;
    padding: 3px 5px; border-radius: 6px; background: rgba(0, 0, 0, 0.62); letter-spacing: 0.02em; }

/* 🖱️ railLock's mouse branch (every driving rail in the app): a rail that can scroll shows the grab hand */
[data-rail-lock="drive"][data-rail-mouse] { cursor: grab; }
[data-rail-lock="drive"][data-rail-dragging] { cursor: grabbing; -webkit-user-select: none; user-select: none; }
[data-rail-lock="drive"][data-rail-dragging] * { pointer-events: none; }

/* 🪤 a popup's overlay never hands a scroll to the page behind it (useNestedScroll.js attachScrollTrap) */
[data-scroll-trap] { overscroll-behavior: contain; }

/* ART follows the phone (Josh's art_sizes): poster 2:3 clamp(84px, 24vw, 110px), album cover clamp(104px, 30vw, 136px) */
.mp-art-poster { width: clamp(84px, 24vw, 110px); flex: none; align-self: flex-start; }
/* 📏 the popup body is a column whose ONE shrinkable child is the poster row, floored at the poster's height. Since
   2026-10-22 ("the plot still needs to stop at the bottom of the poster") the plot asks for no height of its own, so the
   row IS the poster's height and the plot scrolls inside it. */
[data-mp-body] { display: flex; flex-direction: column; }
[data-mp-body] > * { flex-shrink: 0; }
[data-mp-body] > .mp-art-row { flex: 0 1 auto; min-height: calc(clamp(84px, 24vw, 110px) * 1.5); }
/* THE PILL RAIL SITS CENTRED between the poster row and the cast faces (Josh 2026-11-09: "they're not really centered from
   top to bottom in their specific rail"). Measured in Chrome 375/430: 9px above the pills (art row mb-2 8 + rail pad 1) but
   23px below them to the first face (chip row mb-2 8 + rail pad 1 + the cast slot's EMPTY 10px label line + its mb-1 4).
   7px of the row's 8px bottom margin moves above it: 16 / 16, and the popup box keeps its exact height (8 = 7 + 1).
   Only while the cast slot follows (an unresolved item has none, so the plain mb-2 stays). */
[data-mp-body] > [data-mp-chips][data-mp-chips-over-cast] { margin-top: 7px; margin-bottom: 1px; }
/* THE MEDIA POP-UP'S PILLS AT 1.26x (Josh 2026-11-09: "I think the pills are a little small" -> sampler
   https://claude.ai/artifact/8v57ZkiGtPG5HMk2vDNTWk, his send: "Yeah on pill size send", scale 1.26). The same phone rule as
   .mchips (clamp(.7225px, .19318vw, .85px)) times 1.26, so text, height, padding, icons and gaps grow together:
   430 -> --mc-u 1.0466px (text 10.97px), 375 -> 0.9128px (text 9.63px). Only the pop-up's own pill row. */
[data-mp-body] > [data-mp-chips] .mchips { --mc-u: clamp(0.91035px, 0.24341vw, 1.071px); }
.mp-art-cover  { width: clamp(104px, 30vw, 136px); flex: none; }

/* THE ALBUM / AUDIOBOOK POPUP — variant C: cover left, facts right, every track listed in a Bifrost-rimmed panel that
   scrolls INSIDE itself (cozy 44px rows, two-line titles, gold numbers), backdrop sharp, the G strip at the bottom. */
.apc-top { display: flex; gap: 16px; padding: 6px 16px 12px; flex: none; }
.apc-cover { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); }
.apc-facts { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.apc-sum { font-size: 0.78125rem; line-height: 1.5; color: #d4d4d8; overflow-wrap: anywhere; white-space: pre-wrap; max-height: 4.5em; overflow-y: auto;
    scrollbar-width: none; text-align: left; }
.apc-sum::-webkit-scrollbar { display: none; }
.apc-rim.post-bifrost-wrap { margin: 0 14px 14px; padding: 1px; border-radius: 14px; box-shadow: none; display: flex; flex-direction: column;
    min-height: 0; flex: 1 1 auto;
    background: conic-gradient(from var(--iri-angle), rgba(var(--bif-1), .7), rgba(var(--bif-2), .6), rgba(var(--bif-3), .55), rgba(var(--bif-4), .5),
        rgba(var(--bif-5), .55), rgba(var(--bif-6), .6), rgba(var(--bif-7), .7), rgba(var(--bif-1), .7)); }
.apc-panel { border-radius: 13px; background: rgba(10, 10, 14, 0.82); display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07); overflow: hidden; }
.apc-thead { display: flex; align-items: baseline; justify-content: space-between; padding: 10px 14px 6px; flex: none;
    font-size: 0.625rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: #a1a1aa; }
.apc-thead .apc-sum-t { color: #71717a; letter-spacing: 0.04em; font-weight: 600; font-size: 0.65625rem; font-variant-numeric: tabular-nums; }
.apc-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #52525b transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.08); }
.apc-row { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 14px; border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: #e4e4e7; font-size: 0.8125rem; }
.apc-row:first-child { border-top: 0; }
.apc-row .n { width: 20px; flex: none; text-align: right; font-variant-numeric: tabular-nums; color: #e5a00d; font-weight: 600; font-size: 0.75rem; }
.apc-row .t { flex: 1; min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; padding: 5px 0; }
.apc-row .d { flex: none; font-variant-numeric: tabular-nums; color: #8b8b95; font-size: 0.75rem; }
.apc-nolink { margin: auto; font-size: 0.75rem; color: #52525b; font-style: italic; align-self: center; }

/* ═══ 📏 LAYOUT SWEEP 2026-10-22 — fixes 5-7 (01-PRODUCT-RULES "Layout sweep"; _handoff/layout-sweep-2026-10-22.md) ═══ */
/* 👆 fix 6: a primary control's TAP area is at least 44x44 while its LOOK does not move. The hit area is an empty
   ::after centred on the control (a pseudo-element hit-tests as its element), grown only on the axes that are
   short of 44px. `position: relative` comes first so a control that is already absolute/fixed (Tailwind, loaded
   later) keeps its own position. Guard: tests/test_layout_sweep_fixes.js (hit-tests points outside each box). */
.hit44 { position: relative; }
.hit44::after { content: ""; position: absolute;
    top: min(0px, calc((100% - 44px) / 2)); bottom: min(0px, calc((100% - 44px) / 2));
    left: min(0px, calc((100% - 44px) / 2)); right: min(0px, calc((100% - 44px) / 2)); }
/* a control on the top edge of a clipped sheet (the event chat's EVENTS back) cannot grow upward past the sheet: it
   takes the 6px above it and grows DOWN the rest (over the non-interactive HERE NOW label). */
.hit44-down { position: relative; }
.hit44-down::after { content: ""; position: absolute; top: -6px; bottom: min(0px, calc(100% - 38px));
    left: min(0px, calc((100% - 44px) / 2)); right: min(0px, calc((100% - 44px) / 2)); }
/* the composer's soap pill (camera | smiley) and send: 44px tall; sideways only as far as the free space goes, so a
   neighbour's own pixels are never taken (camera|smiley share a 2px seam; the field gives 6px before send). */
[data-composer-field] .sg-pill.sg-sm > [data-soap-btn]::after { content: ""; position: absolute; top: -6px; bottom: -6px; left: -1px; right: -1px; }
[data-composer-field] .sg-pill.sg-sm > [data-soap-btn]:first-child::after { left: -9px; }
[data-composer-field] .sg-pill.sg-sm > [data-soap-btn]:last-child::after { right: -7px; }
/* 🫧 the SMILEY's slot is only a wrapper (composerSticker.jsx): its press handlers live on ReactionPicker's trigger
   ([role="button"]) inside it. A hit area drawn on the wrapper paints OVER that trigger and eats every tap (prod
   2026-10-22 -> 10-25: the composer smiley never opened the bank). So the trigger fills the slot and wears the 44px
   area itself, the same insets; the wrapper draws none. transform:none drops the trigger's identity scale-100 layer,
   which shifted its hit area up 1px in WebKit (the balloon keyframes still win while they run). Guards:
   tests/test_soap_pill_icons.js (hit-tests the trigger) + tests/test_layout_sweep_fixes.js [6]. */
[data-composer-field] .sg-pill.sg-sm > [data-composer-sticker]::after { content: none; }
[data-composer-field] .sg-pill.sg-sm > [data-composer-sticker] > .inline-block { position: absolute; inset: 0; display: flex; }
[data-composer-field] .sg-pill.sg-sm > [data-composer-sticker] > .inline-block > [role="button"] { position: relative; width: 100%; height: 100%; transform: none; }
[data-composer-field] .sg-pill.sg-sm > [data-composer-sticker] > .inline-block > [role="button"]::after { content: ""; position: absolute; top: -6px; bottom: -6px; left: -1px; right: -1px; }
[data-composer-field] .sg-pill.sg-sm > [data-composer-sticker]:first-child > .inline-block > [role="button"]::after { left: -9px; }
[data-composer-field] .sg-pill.sg-sm > [data-composer-sticker]:last-child > .inline-block > [role="button"]::after { right: -7px; }
[data-composer-field] > .qd-slot-open::after { content: ""; position: absolute; inset: -6px; }
/* 🤖 fix 5: the floating ParalexBot "Chat" pill (bottom 96px, 44 tall) — the Settings list ends clear of it, so every
   row can be scrolled out from under the pill (the spacer is rendered only while the pill is). */
/* the pill sits at bottom-24 (6rem, it grows with big text) + 44px; the list ends 128px + one 16px gap above the
   bottom; so the spacer is 6rem - 84px: 12px at the default text size, more as the pill rises */
.sk-bot-chat-spacer { height: calc(6rem - 84px); flex: none; }
/* 🔠 big text: the club/DM chat header's member faces are pinned in px (they are faces, not words) and, once the
   text is scaled up, the row clips sideways at its own edge instead of running under the ⋯ menu. Only while scaled
   (static/textScale.js sets data-text-scale): at the default size the portal / glow bleed is exactly as approved. */
html[data-text-scale] [data-chat-roster] { overflow-x: clip; }
/* ✂️ fix 7: the room switcher's name uses the header's free width (it was capped at 110px: two rooms that start
   "Movie Night Cre…" looked identical). The "Settings" title keeps its own width; only the name gives way. */
.sk-home .sk-hdr .sk-hdr-tt { flex: 1 0 auto; }
.sk-home .sk-hdr > .relative { min-width: 0; flex: 0 1 auto; }
.sk-home .sk-pick-btn.sk-room-pill { max-width: 100%; }
.sk-home .sk-pick-btn.sk-room-pill b { min-width: 0; }


/* ═══ 🏆 THE VIP CHALLENGE CARD — 2026-10-22 additions (static/components/ChallengeCard.jsx) ═══ */

/* 📺 THE EPISODE PILL — Josh's tuner numbers, verbatim (https://claude.ai/artifact/MKtBiL8ETH4oRDSEJN39An):
   fill glass · ring bifrostSpin 1px · "EPISODE" 8.25px/800/.08em · h 11.5 · pad 7 · radius 12 · scale .78 ·
   shadow .45 · centre +18px right / +1px down from the poster's top-centre (it straddles the top edge).
   The ring is the house Bifrost conic on the registered --iri-angle, stepped by `iri-spin` like every rim. */
.cc-ep {
    position: absolute; left: 50%; top: 0; z-index: 3;
    display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
    font-family: inherit; font-weight: 800; text-transform: uppercase; pointer-events: none;
    transform: translate(calc(-50% + 18px), calc(-50% + 1px)) scale(.78);
    height: 11.5px; padding: 0 7px; border-radius: 12px; font-size: 0.515625rem; letter-spacing: .08em; line-height: 1;
    box-shadow: 0 2px 6px rgba(0,0,0,.45);
    background: rgba(10,10,14,.79); color: #facc15; isolation: isolate;
}
.cc-ep-txt { position: relative; z-index: 2; }
.cc-ep-ring {
    position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: 1; pointer-events: none;
    background: conic-gradient(from var(--iri-angle), rgb(var(--bif-1)), rgb(var(--bif-2)), rgb(var(--bif-3)),
                rgb(var(--bif-4)), rgb(var(--bif-5)), rgb(var(--bif-6)), rgb(var(--bif-7)), rgb(var(--bif-1)));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    animation: iri-spin 3s linear infinite;
}

/* ⇄ ON BOTH BOARDS — the individual card's shared-title chip (sample C) */
.cc-roomtoo {
    position: absolute; top: 3px; left: 50%; transform: translateX(-50%); z-index: 3;
    display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; pointer-events: none;
    font-size: 0.40625rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: #111;
    background: linear-gradient(180deg, #fff6d0, #ffd75e); padding: 2px 5px; border-radius: 9999px;
    box-shadow: 0 1px 4px rgba(0,0,0,.5); text-shadow: none;
}
.cc-roomtoo.ep { top: 9px; }
.cc-roomtoo.ro { top: auto; bottom: 21px; }
.cc-legend-dot { width: 6px; height: 6px; border-radius: 9999px; flex-shrink: 0;
    background: linear-gradient(180deg, #fff6d0, #ffd75e); box-shadow: 0 0 6px rgba(250,204,21,.6); }

/* 🎯 THE INDIVIDUAL HEADER (sample C "Compact"): the member big in a gold ring, the admin as a badge */
.cc-ind-ring { border-radius: 9999px; padding: 2.5px; display: inline-grid; place-items: center;
    background: linear-gradient(135deg, #fff6d0, #ffd75e 35%, #facc15 60%, #e5a00d);
    box-shadow: 0 0 14px rgba(250,204,21,.35), 0 4px 14px rgba(0,0,0,.5); }
.cc-ind-by { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
    display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px 2px 2px; border-radius: 9999px;
    background: rgba(10,10,14,.92); box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 4px 12px rgba(0,0,0,.6); }
.cc-ind-by > span:last-child { font-size: 0.5rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    color: #d4d4d8; white-space: nowrap; }

/* 🖐️ THE IN-CARD REORDER (sample: _handoff/samples/challenge-reorder-2026-10-22/). Transform/opacity only. */
.cc-tile[data-rc-i] { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.cc-rn { position: absolute; top: 3px; left: 3px; z-index: 4; min-width: 16px; height: 16px; padding: 0 4px;
    border-radius: 9999px; background: rgba(0,0,0,.7); color: rgba(234,179,8,.9); font-size: 0.5625rem; font-weight: 900;
    font-variant-numeric: tabular-nums; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.cc-rn::after { content: attr(data-n); }
.cc-rn[data-live-n]::after { content: attr(data-live-n); }
.cc-rx { position: absolute; top: 3px; right: 3px; z-index: 4; width: 22px; height: 22px; border-radius: 9999px;
    background: rgba(0,0,0,.7); color: #fff; font-size: 0.6875rem; display: flex; align-items: center; justify-content: center; }
.cc-rx.ep { top: 9px; }
.cc-rx:active { background: #ef4444; }
.cc-grip { position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); z-index: 4; height: 14px;
    padding: 0 6px; border-radius: 9999px; background: rgba(0,0,0,.55); color: rgba(255,255,255,.75);
    font-size: 0.5625rem; letter-spacing: 1px; line-height: 0.875rem; pointer-events: none; }
.cc-drop { position: absolute; left: 0; top: 0; border-radius: 8px; border: 1.5px dashed rgba(250,204,21,.5);
    background: rgba(250,204,21,.07); pointer-events: none; opacity: 0;
    transition: transform 180ms cubic-bezier(.2,.8,.2,1), opacity .12s; }
.cc-drop.on { opacity: 1; }
.cc-lane[data-rc-dragging] .cc-move { transition: transform 180ms cubic-bezier(.2,.8,.2,1); }
.cc-held { position: relative; z-index: 10; }
.cc-lane[data-rc-dragging] .cc-held .cc-move { transition: none; }
.cc-held .cc-pst > [role="button"] { box-shadow: 0 0 0 1px rgba(250,204,21,.55), 0 14px 28px rgba(0,0,0,.6) !important; }
.cc-held .plx-mq-frame { opacity: 0; transition: opacity .15s; }
/* 📳 the iOS home-screen wobble on the OTHERS while one is lifted — on the inner poster, so the slide
   transform on `.cc-move` is never fought */
@keyframes cc-wob { 0% { transform: rotate(var(--wa)); } 50% { transform: rotate(calc(var(--wa) * -1)); } 100% { transform: rotate(var(--wa)); } }
.cc-lane[data-rc-dragging] .cc-tile:not(.cc-held) .cc-pst {
    will-change: transform; animation: cc-wob var(--wd, .6s) ease-in-out infinite; animation-delay: var(--wdl, 0s); }
/* and the dropped one lands with a springy overshoot */
@keyframes cc-bounce { 0% { transform: scale(1); } 30% { transform: scale(1.12); } 55% { transform: scale(.96); } 75% { transform: scale(1.03); } 100% { transform: scale(1); } }
.cc-bounce .cc-pst { animation: cc-bounce 480ms cubic-bezier(.3,.7,.4,1) both; }
@media (prefers-reduced-motion: reduce) {
    .cc-ep-ring { animation: none; }
    .cc-lane[data-rc-dragging] .cc-tile:not(.cc-held) .cc-pst, .cc-bounce .cc-pst { animation: none; }
    .cc-lane[data-rc-dragging] .cc-move, .cc-drop { transition: none; }
}

/* ══ STREAMSCAPE HEADER (Josh's APPROVED HEADER 2026-10-23, Logo Tuner v10 RRuoBUctjVFTnxQ7X3BwWd; streamscapeLockup.js) ══
   His numbers, at 430 (where he tunes) and 375, eased linearly between (no breakpoint jump) and held beyond:
     icon gap 14px (375: 11px, floor 10), icons 22px (375: 20.5px), heart 31.5px (375: 34px), left +2px, right +7px;
     mark = the tuner's formula: max(96, min(466.42·32/80 = 186.57, shell − 2·(3 icons + 2 gaps) − 25)) — 186.57 at 430,
     183 at 375 (it overhangs the 151px slot into the empty sides, as he tuned it).
   Measured in his tuner: 430 icon centres 338 / 374 / 410, logo→bell 21.7, heart right 49.5;
                          375 icon centres 292.8 / 324.3 / 355.8, logo→bell 6.5, heart right 52.
   All px (his numbers are px; big text no longer changes the header's fit). Static transforms only.
   Guard: tests/test_streamscape_logo.js [2]. */
:root {
    --ss-igap: clamp(10px, calc(11px + (var(--app-shell-width) - 375px) * 0.054545), 14px);
    --ss-ipx: clamp(20.5px, calc(20.5px + (var(--app-shell-width) - 375px) * 0.027273), 22px);
    --ss-hpx: clamp(31.5px, calc(34px - (var(--app-shell-width) - 375px) * 0.045455), 34px);
}
.ss-hdr-left { transform: translateX(2px); }
.ss-hdr-right { gap: var(--ss-igap); transform: translateX(7px); }
.ss-hdr-right > * { flex: none; }
.ss-hdr-right svg { width: var(--ss-ipx); height: var(--ss-ipx); }   /* beats Tailwind's .w-6/.h-6 on specificity (0,1,1) */
.ss-hdr-mark {
    display: block; flex: 0 0 auto; height: auto;
    width: max(96px, min(186.57px, calc(var(--app-shell-width) - 2 * (3 * var(--ss-ipx) + 2 * var(--ss-igap)) - 25px)));
}
/* THE DONATE HEART (BifrostDollar.jsx, Josh's FINAL 2026-10-23): the outline as the splash ring line (still 7-stop Bifrost
   gradient, 1.5px, no glow), THE ONE $ filled inside it, and the tiny DONATE label pinned at the heart's point (a 0x0 svg,
   1 unit = 1px, so it is exactly 5px at every heart size). No animation. The label hangs below the box (it does not move
   the heart): at 375 its baseline sits ~53px down the 64px bar. */
.ss-heart { display: block; position: relative; width: var(--ss-hpx); height: var(--ss-hpx); }
.ss-heart .ss-heart-core { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; display: block; }
.ss-donate-label { position: absolute; left: 50%; width: 0; height: 0; overflow: visible; display: block; pointer-events: none; }
.ss-heart .ss-donate-label-heart { top: calc(var(--ss-hpx) * 21.23 / 24); }   /* the heart's point */
.hw-donate .ss-donate-label-moon { left: calc(50% - 21px); top: calc(50% - 21px); }   /* its 42px box = the moon's (curveBottom draws in it) */
/* the Halloween moon's $ + ring (BifrostDollar.jsx MoonDollar), centred on the moon's 34px slot like its 42px art */
.hw-donate .ss-moon-ring { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); overflow: visible; pointer-events: none; display: block; }
.hw-donate .ss-moon-dollar { position: absolute; left: 50%; top: 50%; width: 42px; height: 42px; transform: translate(-50%, -50%); overflow: visible; pointer-events: none; display: block; }

/* ═══ FAV CARDS = THE MEDIAPOPUP SKELETON, VARIANT B HERO (Josh 2026-10-23: "The height and width needs to match the
   media pop-up…" + "And I like the hero card version of music and games") ═══════════════════════════════════════════
   static/components/PopupSkeleton.jsx. The hero REGION is exactly MediaPopup's header (60px) + its poster row
   (mt-1 4px + the 2:3 poster at --pop-art-w + mb-2 8px), so the three popups are the same height by construction.
   Inside it: the band (the room's artist art / IGDB key art, Josh's B dials), title + socials on the band beside the
   Bifrost-rimmed art tile, which lifts 42% of its width up into the band; the plot fills the column under the band
   and STOPS at the art's bottom edge (scrolls inside). The band gives to fit the region: it is what is left above the
   lifted tile. Static layers only; the rim rides the house 10s iri-spin clock (off with reduced motion). */
:root { --pop-art-w: clamp(84px, 24vw, 110px); }
.pop-hero-region {
    --pop-region-h: calc(72px + var(--pop-art-w) * 1.5);
    --hero-art-w: calc(var(--pop-art-w) * var(--hero-art-scale, 1));
    --hero-art-h: calc(var(--hero-art-w) * var(--hero-art-hr, 1));
    --hero-art-top: calc(var(--pop-region-h) - 8px - var(--hero-art-h));
    --hero-band-h: calc(var(--hero-art-top) + var(--hero-art-w) * 0.42);
    --hero-col-x: calc(16px + var(--hero-art-w) + 14px);
    position: relative; flex: none; height: var(--pop-region-h); width: 100%;
}
.pop-hero-music { --hero-art-hr: 1; }
.pop-hero-games { --hero-art-hr: 1.3333; }
.pop-hero-band { position: absolute; left: 0; right: 0; top: 0; height: var(--hero-band-h); overflow: hidden; }
.pop-hero-img { position: absolute; inset: -6px; background-size: cover; background-repeat: no-repeat; }
.pop-hero-fade { position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0.55) 70%, #000 100%); }
.pop-hero-dim { position: absolute; inset: 0; }
.pop-hero-title { position: absolute; left: var(--hero-col-x); right: 12px; bottom: 8px; z-index: 2;
    display: flex; flex-direction: column; gap: 6px; align-items: flex-start; min-width: 0; }
.pop-hero-title h2 { margin: 0; line-height: 1.02; letter-spacing: 0.1em; text-transform: uppercase; text-align: left;
    text-wrap: balance; overflow-wrap: anywhere; max-width: 100%;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    background: linear-gradient(to bottom, #fcd34d, #f59e0b); -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.7)); }
.pop-hero-art { position: absolute; left: 16px; top: var(--hero-art-top); width: var(--hero-art-w); height: var(--hero-art-h); z-index: 3; }
.pop-hero-art::before { content: ''; position: absolute; inset: -2px; border-radius: 10px; z-index: -1; animation: iri-spin 10s linear infinite;
    background: conic-gradient(from var(--iri-angle), rgba(var(--bif-1),.8), rgba(var(--bif-3),.7), rgba(var(--bif-5),.7), rgba(var(--bif-7),.8), rgba(var(--bif-1),.8)); }
.pop-hero-art img, .pop-hero-art .pop-hero-art-ph { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 8px; background: #18181b;
    box-shadow: 0 10px 24px rgba(0,0,0,0.5); }
.pop-hero-plot { position: absolute; left: var(--hero-col-x); right: 16px; top: calc(var(--hero-band-h) + 6px); bottom: 8px;
    overflow: hidden; isolation: isolate; }
.pop-socials { display: flex; gap: 6px; align-items: center; flex-wrap: nowrap; }
.pop-socials a { width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; color: #e4e4e7; flex: none;
    background: rgba(0,0,0,0.38); border: 1px solid rgba(255,255,255,0.18); box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
    -webkit-tap-highlight-color: transparent; transition: transform 0.18s cubic-bezier(0.2, 1.4, 0.3, 1); }
.pop-socials a:active { transform: scale(0.9); }
.pop-socials svg { width: 13px; height: 13px; }
/* the one rail's label line (the cast strip's 10px spacer, given words) */
.pop-rail-label { display: flex; justify-content: space-between; align-items: center; padding: 0 2px; font-size: 0.5625rem; line-height: 10px;
    font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #71717a; white-space: nowrap; overflow: hidden; }
.pop-rail-label b { color: #a1a1aa; font-weight: 700; }
/* Top tracks tiles: the cast cell's 56 × 82 */
.pop-track { width: 56px; height: 82px; flex: none; display: flex; flex-direction: column; gap: 2px; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.pop-track-cover { position: relative; width: 56px; height: 56px; border-radius: 6px; overflow: hidden; background: #27272a;
    border: 1px solid rgba(255,255,255,0.12); flex: none; }
.pop-track-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pop-track-cover b { position: absolute; left: 3px; top: 3px; font-size: 0.5rem; font-weight: 800; line-height: 1; color: #fff; background: rgba(0,0,0,0.6);
    padding: 2px 4px; border-radius: 999px; }
.pop-track-capf { width: 100%; height: 12px; line-height: 12px; flex: none; }
.pop-track-cap { font-size: 0.5625rem; line-height: 12px; color: #e4e4e7; }
.pop-track-sub { width: 100%; font-size: 0.5rem; line-height: 10px; color: #71717a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pop-face { width: 56px; height: 82px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pop-face img { width: 48px; height: 48px; border-radius: 999px; object-fit: cover; border: 1px solid #52525b; background: #3f3f46; }
.pop-face span { font-size: 0.5625rem; line-height: 11px; color: #d4d4d8; width: 100%; text-align: center;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .pop-hero-art::before { animation: none; } .pop-socials a { transition: none; } }
/* the Fav cards' body = MediaPopup's [data-mp-body] column (chips, the one rail, the media slot; nothing shrinks) */
[data-pop-body] { display: flex; flex-direction: column; }
[data-pop-body] > * { flex-shrink: 0; }

/* ❄️ FROST SWAP (2026-10-26) — every live backdrop blur became a cheap look-alike. Josh, after flipping every tab of the
   Frost Swap sampler (https://claude.ai/artifact/VAmZorMufxkX8LQ9FMRhYj): "i dont see any difference lol" = APPROVED, the
   sampler's defaults (_handoff/01-PRODUCT-RULES.md, 2026-10-26 "Frost swap"). A backdrop-filter re-reads and re-blurs what
   is behind it on every frame anything under it changes; these draw once.
   · near-opaque glass (card faces 88%, menus, bars, pills on a card face): no blur, the SAME tint
   · glass on a poster/photo: .fs-bake = a blurred copy of the art drawn ONCE inside the glass, aligned to the art, today's
     tint on top (BakedGlass, static/components/frostSwap.jsx). Art that cannot be baked (a <video> frame, a chip on a
     poster's edge) and dims/bars under 85% over moving content: a slightly darker tint, t' = 1 - (1 - t) * 0.75
   · a popup's dim: .fs-wash = the popup's own art blurred once under its dark veil (ArtWash); no art = the plain dim
   Kept: the MediaPopup meta chips (.mchips .mc-f) — 7% glass on the popup's art, where no blur shows the art sharp.
   Guard: tests/test_frost_swap.js — no live backdrop blur in static/ outside its allowlist. */
.fs-bake { position: absolute; inset: 0; z-index: -1; border-radius: inherit; overflow: hidden; pointer-events: none; }
.fs-bake > i { position: absolute; display: block; background-repeat: no-repeat; visibility: hidden; }
.fs-bake > i.fs-on { visibility: visible; }
.fs-bake > b { position: absolute; inset: 0; display: block; }
.fs-wash { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.fs-wash > img { position: absolute; left: -40px; top: -40px; width: calc(100% + 80px); height: calc(100% + 80px); max-width: none;
    object-fit: cover; filter: blur(26px) saturate(1.9); }
.fs-wash > b { position: absolute; inset: 0; display: block; }

/* ═══ POPUP CLOSE — the media popups' close button (2026-10-27) ═══════════════════════════════════════════════════════════
   Josh, 2026-10-26: "For the media pop-up, the close button is supposed to have a bifrost ring around it". ONE button for all
   six media popups (static/components/PopupSkeleton.jsx PopupClose): a dark disc, white ✕, ringed by the action strip's own
   `.astrip-ring` (above: the same Bifrost ring as the popup's discs, on the shared iri-spin clock via ambientMotion.js — no
   per-frame work, held still off screen). Its size + offset come from popupWidth.js (POPUP_CLOSE_PX / POPUP_CLOSE_GAP_PX),
   inline, so the overlay's clearance and the button can never disagree. No frost (no backdrop-filter): the disc is opaque.
   Motion: the press is a transform (scale) only; the ring thickens + glows while pressed, like the strip's discs. */
.pop-close {
    position: absolute; right: 0; z-index: 50; padding: 0; margin: 0; border: 0; border-radius: 9999px;
    display: grid; place-items: center; color: #fff; background: #0d0d11; cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none;
    transition: transform 0.18s cubic-bezier(0.2, 1.4, 0.3, 1);
    --astrip-rw: 1.5px;
}
/* a 44px finger target around the 28px disc — reaching up and out, never down onto the box (the gap below is 6px) */
.pop-close::after { content: ''; position: absolute; top: -8px; left: -8px; right: -8px; bottom: -4px; border-radius: 9999px; }
.pop-close:active { transform: scale(0.9); }
.pop-close:active .astrip-ring { --astrip-rw: 3px; filter: drop-shadow(0 0 6px rgba(var(--bif-1), 0.8)); }
.pop-close-x { width: 12px; height: 12px; display: block; position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .pop-close { transition: none; } }
/* ═══ END POPUP CLOSE ═══ */

/* ═══ TAG ON YELLOW — Josh 10-31: "Sent yellow tag" (sampler https://claude.ai/artifact/WM6hURU4CxmhZyWCEgHXqo, send
   mbv567a66ums27lsv7tu: look "ink", hsl(30 100% 45%) = hue 30 / richness 100 / darkness 45, OWN BUBBLES ONLY).
   A gold #title tag (utils.js TAG_MEDIA, class tag-title) on your own yellow chat bubble switches to this deeper amber;
   everyone else's bubbles, posts and comments keep the gold. The own text bubble carries data-own-bubble
   (ChatView.jsx + EventChatView.jsx). Static colour, nothing animates. tests/test_tag_on_yellow.js ═══ */
[data-own-bubble] .tag-title{color:hsl(30 100% 45%)}

/* ═══ REACTION ART: SIZES + FACE CENTRING — Josh's batch-2 sampler (https://claude.ai/artifact/9y2ws2GEyPhZdS17ZfqPxR):
   "This is fine to send" (send 2ilyjv1yt4bbl8akd3kz), values = his latest send 2fpxpq6rqezg15xupm9l.
   Keyed by the art's FILE NAME, so every surface that draws it gets it: the pills (<img>), the picker cells and the viewer
   rail (a div / span with an inline background-image), the reaction flight's <img>. Sizes under 100% are baked into the
   PNG itself (Predict'd 79%, Gift'd 81%); these three hang past their square, which a square file cannot hold.
   SNOOZED (Josh 11-08: "the Zzz's won't count"; 11-10: "get the bottom of the couch to actually sit in the same line that
   rest sit on"): snoozed.png stands the couch's feet on y=980 of 1000, the floor every 960-fit icon stands on, and it
   grows UP from that floor (transform-origin 50% 98%). The `scale` property wraps an element's own `transform`, so an
   icon placed with transform: translateY(-50%) would rise with it: the pills place their 17px icon with margin-top
   instead (ReactionPicker.jsx trigger, Shared.jsx rvCapIconStyle). Measured in every surface (alpha, DPR 3, 375 + 430,
   Chrome + WebKit): tests/test_reaction_couch_baseline_webkit.js.
   FACES (Josh 11-08: "the accents coming off the faces shouldn't count for centering the icon"; his pick: centre on the
   face, Wow'd on the head with the cloud overhanging): translate = the face body's centre to the box centre (face.py).
   Pinned: tests/test_reaction_icon_swap_1110.py. ═══ */
img[src*="/reactions/buddy"],[style*="/reactions/buddy"]{scale:1.35}
img[src*="/reactions/snoozed"],[style*="/reactions/snoozed"]{scale:1.43;transform-origin:50% 98%}
img[src*="/reactions/classic"],[style*="/reactions/classic"]{scale:1.2}
img[src*="/reactions/huhd"],[style*="/reactions/huhd"]{translate:4.3% -8.3%}
img[src*="/reactions/shook"],[style*="/reactions/shook"]{translate:1.5% -7.3%}
img[src*="/reactions/yikes"],[style*="/reactions/yikes"]{translate:2.9% -7.9%}
img[src*="/reactions/laugh"],[style*="/reactions/laugh"]{translate:4.5% -6.3%}
img[src*="/reactions/vibed"],[style*="/reactions/vibed"]{translate:1.1% -2.3%}
img[src*="/reactions/wow"],[style*="/reactions/wow"]{translate:0.4% -18.8%}
img[src*="/reactions/sad"],[style*="/reactions/sad"]{translate:0.3% 2.9%}
img[src*="/reactions/died"],[style*="/reactions/died"]{translate:1.3% -0.1%}
/* the detail card (tap a reaction: ONE icon on its own 200px stage, 14px under the card's clipped top edge) shows each file exactly
   as drawn - a size or a lift there would be cut off at the card's top (the Zzz, Wow'd's cloud, Buddy'd's hat) and its water mask
   (rxdWaterClip.js) is cut from the file as drawn. The couch file already keeps its Zzz inside its square. */
.rxd .rxd-img{scale:none;translate:none}

/* 🌈 Beta poster hover (Josh 2026-11-18 ~10:30: "it should just get the Bifrost ring outline while you're hovering and maybe a
   slight grow"): the ring (.post-bifrost-wrap behind the poster, Cards.jsx PosterCard) shows and spins ONLY while hovered */
[data-ss-ring] { opacity: 0; animation-play-state: paused; transition: opacity .18s ease-out; }
@media (hover: hover) { [data-ss-card]:hover [data-ss-ring] { opacity: 1; animation-play-state: running; } }
/* the pencil (the profile page's disc) on every poster and card: shown, and its ring turning, only while the card is hovered */
[data-ss-card-edit] { opacity: 0; transition: opacity .18s ease-out; z-index: 2; }
[data-ss-card-edit] .astrip-disc.cover-edit { top: auto; right: auto; bottom: 9px; left: 5px; }   /* bottom-LEFT like Plex (Josh 11-25 #195), clear of the progress bar */
[data-ss-card-edit] .astrip-ring { animation-play-state: paused; }
@media (hover: hover) {
    [data-ss-card]:hover [data-ss-card-edit], [data-ss-wide]:hover [data-ss-card-edit], [data-ss-person]:hover [data-ss-card-edit], [data-ss-card-edit]:focus-within { opacity: 1; }
    [data-ss-card]:hover [data-ss-card-edit] .astrip-ring, [data-ss-wide]:hover [data-ss-card-edit] .astrip-ring, [data-ss-person]:hover [data-ss-card-edit] .astrip-ring { animation-play-state: running; }
}
/* a touch screen: Continue Watching keeps its ✎ (Remove) always showing; every other card is edited from its title page */
@media (hover: none) { [data-ss-card-edit]:not([data-ss-cw-edit]) { display: none; } [data-ss-cw-edit] { opacity: 1; } }

/* 🍂 SEASONAL LAYER BEHIND THE SERVER BETA (Josh 2026-11-18 ~10:05: "the holiday overlay stuff (leaves falling) is on top of
   everything rather than behind it"). The layer is z-1 between every page's backdrop and its content (SeasonalAmbience.jsx
   "WHERE THE LAYER SITS"); every page lifts its content into a `relative z-10` block. The beta's root did not, so its header and
   scroller (positioned, z auto) painted UNDER the leaves. Same house z here: the scroller at 10, its header above it. */
[data-sserver-root] > [data-ss-scroll] { position: relative; z-index: 10; }
[data-sserver-root] > header { position: relative; z-index: 20; }

/* ═══ 🖥️ WEBSITE SHELL — desktop + iPad (Josh 2026-11-10: "go ahead and send the web version to production") ═════════
   EVERY rule here is under `html.dk`, which static/deviceClass.js stamps ONCE before the first render and ONLY when the
   device is not a phone. A phone (even with "Request Desktop Website") never has the class, so not one declaration here
   reaches it — tests/test_phone_shell_untouched.js proves it pixel for pixel against HEAD.
   Spec: _handoff/desktop-build-plan.md + the mockup (https://claude.ai/artifact/UNor13XfHgWAX2g2s4c7jb).
   - 16:9 frame: fluid to 1920, centred beyond it with the ambient backdrop on the sides (Josh r4 "regular 16:9").
   - The header is the app's own #app-header, stretched across the frame (Josh r2 "more like the app but stretched out").
   - The left rail is the app's own bottom bar (#app-bottom-nav: its PNG tabs, Quick Draw, badges) stood on its side,
     plus DesktopShell.jsx's extra doors under it. Centre = the real pages (`--app-shell-width` = the centre column, so
     every `.app-shell-fixed` overlay, the seasonal layer and the toasts ride the centre column). Right = Room + search,
     Now Playing, Events, Chats (DesktopShell.jsx DesktopRight; it hides below 900 — iPad portrait = the narrow layout).
   - No native scrollbars anywhere (Josh r3). Layout is CSS only: nothing reads the window but the device class. */
html.dk {
    /* --dk-right-w = THE ONE NUMBER Josh dials for the right column (11-18 ~11:05: "the stream feed needs to be wider. The far
       right column should be about half the width it is now" -> ~500px at a 2000px window, was ~950); the centre takes the rest */
    --dk-gutter: 22px; --dk-gap: 26px; --dk-rail: 112px; --dk-right-w: clamp(300px, 25vw, 520px);
    /* Josh 11-18 ~14:15: the website runs edge to edge on any monitor (social and server alike, no jolt between them);
       the HEADER's content stays inside a centred 16:9 frame (--dk-hdr-w), so its icons never fly to an ultrawide's edges */
    --dk-frame: 100vw;
    --dk-hdr-w: min(100vw, calc(100vh * 16 / 9));
    --dk-c: max(540px, calc(var(--dk-frame) - 2 * var(--dk-gutter) - var(--dk-rail) - 2 * var(--dk-gap) - var(--dk-right-w)));
    --dk-c-left: calc((100vw - var(--dk-frame)) / 2 + var(--dk-gutter) + var(--dk-rail) + var(--dk-gap));
    --app-shell-width: var(--dk-c);
}
@media (max-width: 1199px) { html.dk { --dk-gutter: 14px; --dk-gap: 16px; } }
@media (max-width: 899px) {
    html.dk { --dk-c: calc(var(--dk-frame) - 2 * var(--dk-gutter) - var(--dk-rail) - var(--dk-gap)); }
    html.dk .dk-right { display: none !important; }
}
html.dk body {
    background: radial-gradient(1100px 520px at 50% -8%, rgba(229,160,13,.10), transparent 62%),
                radial-gradient(800px 700px at -4% 104%, rgba(160,110,255,.09), transparent 60%),
                radial-gradient(800px 700px at 104% 104%, rgba(100,160,255,.08), transparent 60%), #09090b;
}
html.dk #landscape-block { display: none !important; }   /* an iPad turns: the website has both orientations */
html.dk #root { width: 100vw; max-width: none; background: transparent; box-shadow: none; }
@media (min-width: 1960px) {
    html.dk #root { border-left: 0; border-right: 0; box-shadow: none; }
}
html.dk *, html.dk *::before, html.dk *::after { scrollbar-width: none; }
html.dk *::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* the grid: header across · rail | centre | right */
html.dk #root > div:has(> #app-header) {
    display: grid;
    grid-template-columns: var(--dk-rail) var(--dk-c) minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr);
    column-gap: var(--dk-gap);
    padding: 0 var(--dk-gutter);
    background: radial-gradient(1100px 520px at 50% -8%, rgba(229,160,13,.08), transparent 62%), rgba(9,9,11,.55);
}
@media (max-width: 899px) { html.dk #root > div:has(> #app-header) { grid-template-columns: var(--dk-rail) minmax(0, 1fr); } }
html.dk #app-header { grid-column: 1 / -1; grid-row: 1; margin: 0 calc(-1 * var(--dk-gutter));
    padding-left: calc((100vw - var(--dk-hdr-w)) / 2 + var(--dk-gutter)); padding-right: calc((100vw - var(--dk-hdr-w)) / 2 + var(--dk-gutter)); overflow: visible; }
/* [bell][chat][gear][room]: both sides share the width so the wordmark stays centred */
html.dk #app-header > .ss-hdr-left, html.dk #app-header > .ss-hdr-right { flex: 1 1 0; width: auto; min-width: 0; }
html.dk #app-header > .ss-hdr-right { align-items: center; gap: 2px; }
html.dk #app-header > .flex-1 { flex: none; }
html.dk .dk-hdr-room { margin-left: 10px; position: relative; }
html.dk .dk-hdr-room .sk-room-drop { right: 0; left: auto; z-index: 80; }
/* Donate moved to the top of the rail (Josh 11-18 ~14:25): the header keeps only its back button */
html.dk #app-header > .ss-hdr-left > :not(button) { display: none; }
.dk-rail-donate { display: none; }
html.dk .dk-rail-donate { display: flex; justify-content: center; padding: 4px 0 10px; margin-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,.07); }
/* 📐 FEED POST MEDIA - ONE calculated rule on the website (Josh 11-18 ~14:15): a shared media height --dk-media-h; a movie
   poster (2:3) and an episode still (16:9) are the same height (siblings), the still is never cropped; a trailer / news video
   is capped so no single post outgrows ~60% of the screen. The phone keeps its own sizes. */
html.dk { --dk-media-h: clamp(200px, 26vh, 300px); --dk-media-max: min(60vh, 560px); }
html.dk [data-lp-media="poster"] { width: calc(var(--dk-media-h) * 2 / 3) !important; height: var(--dk-media-h); aspect-ratio: auto; }
html.dk [data-lp-card="episode"] { height: var(--dk-media-h); }
html.dk [data-lp-media="still"] { width: calc(var(--dk-media-h) * 16 / 9); }
html.dk [data-lp-media="video"] { width: 100%; max-width: calc(var(--dk-media-max) * 16 / 9); margin-left: auto; margin-right: auto; }
/* the inbox row's ⋯ (Josh 11-18 ~14:30): mouse only, shown on hover */
.inbox-more { display: none; }
@media (hover: hover) and (pointer: fine) { .inbox-more { display: flex; opacity: 0; transition: opacity .15s; } a:hover > .inbox-more, .inbox-more:focus-visible { opacity: 1; } }
html.dk #app-main-content {
    grid-column: 2; grid-row: 2 / 4; width: auto; min-width: 0;
    background: #09090b; border-left: 1px solid rgba(255,255,255,.06); border-right: 1px solid rgba(255,255,255,.06);
}
/* the centre CLIPS sideways: on a phone the root's own edge is the clip (the Stream's main is overflow: visible for the
   docked composer, style.css #app-main-content:has(#stream-chrome)), but here the closed Settings panel parked at
   translateX(100%) would otherwise sit over the right column. `clip`, not hidden: no scroll container, the top stays open. */
html.dk #app-main-content, html.dk #app-main-content:has(#stream-chrome) { overflow-x: clip; }

/* every fixed overlay that belongs to the app rides the CENTRE column (the primitive's website form) */
html.dk .app-shell-fixed { left: var(--dk-c-left); right: auto; width: var(--dk-c); max-width: none; margin-left: 0; margin-right: 0; }

/* the left rail = the app's own tab bar, stood on its side */
html.dk #app-bottom-nav {
    position: relative; inset: auto; grid-column: 1; grid-row: 2; z-index: 5;
    flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 4px;
    border-top: 0; background: none !important; min-height: 0 !important; padding: 14px 0 0 !important;
}
html.dk #app-bottom-nav > .border-l { display: none; }
html.dk #app-bottom-nav > a { width: 100%; height: auto; padding: 6px 0; border-radius: 16px; }
html.dk #app-bottom-nav > a:hover, html.dk .dk-rail-item:hover { background: rgba(255,255,255,.05); }
html.dk .dk-rail-more { grid-column: 1; grid-row: 3; display: flex; flex-direction: column; gap: 4px; min-height: 0; overflow-y: auto; padding-bottom: 16px; }
html.dk .dk-rail-sep { flex: none; height: 1px; margin: 8px 14px; background: linear-gradient(to right, transparent, rgba(255,255,255,.16), transparent); }
html.dk .dk-rail-item { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 64px; padding: 8px 0; border-radius: 16px; color: #a1a1aa; }
html.dk .dk-rail-item.is-on { color: #e5a00d; }
html.dk .dk-rail-glyph { width: 28px; height: 28px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.6)); }
html.dk .dk-rail-word { font-family: Poppins, Outfit, sans-serif; font-weight: 800; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }

/* the right column */
html.dk .dk-right { grid-column: 3; grid-row: 2 / 4; display: flex; flex-direction: column; gap: 16px; min-height: 0; min-width: 0; overflow-y: auto; padding: 14px 0 24px; }

/* 🛰️ SERVER MODE = FULL WIDTH (Josh 2026-11-18 ~10:05: "expand the website across the whole screen like how plex's dashboard
   does. so lose the extra column with now playing and chats"). static/sserver/useWideShell.js sets <html data-dk-wide> while the
   beta is mounted: no right column (DesktopRight also renders nothing on /sserver), and the centre takes the freed width. */
/* ...and it fills ANY screen edge to edge, ultrawide too (Josh 11-18 ~11:10): no 1920 frame, no 16:9 lock - the normal site keeps both */
html.dk[data-dk-wide] { --dk-frame: 100vw; --dk-c: calc(var(--dk-frame) - 2 * var(--dk-gutter) - var(--dk-rail) - var(--dk-gap)); }
html.dk[data-dk-wide] #root { max-width: none; border-left: 0; border-right: 0; box-shadow: none; }
html.dk[data-dk-wide] #root > div:has(> #app-header) { grid-template-columns: var(--dk-rail) minmax(0, 1fr); }
html.dk[data-dk-wide] .dk-right { display: none !important; }
/* the beta's screens use the room: grids fill the width with as many columns as fit, rail posters grow, the detail hero
   gets a real poster column and a readable plot measure (phones keep 3 across: none of this reaches them) */
html.dk [data-ss-grid="poster"] { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); column-gap: 16px; row-gap: 22px; }
html.dk [data-ss-grid="wide"] { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); column-gap: 16px; row-gap: 22px; }
html.dk [data-ss-card]:not(.w-full) { width: 150px; }
html.dk [data-ss-hero-grid="poster"] { grid-template-columns: 220px minmax(0, 1fr); }
html.dk [data-ss-hero-grid="wide"] { grid-template-columns: 340px minmax(0, 1fr); }
/* Plex's pre-play on a big screen: the poster on the left spanning both rows; title / meta, then the Play row and the PLOT
   (Josh 11-18 ~10:25: the plot first), then the specs, all in the column beside it */
html.dk [data-ss-hero-grid] { align-items: start; }
html.dk [data-ss-hero-grid] > :nth-child(1) { grid-row: 1 / span 2; align-self: start; }
html.dk [data-ss-hero-grid] > :nth-child(2) { align-self: end; }
html.dk [data-ss-hero-grid] > :nth-child(3) { grid-column: 2 / 3; }
html.dk [data-ss-hero-grid] [data-ss-overview], html.dk [data-ss-hero-grid] [data-ss-streams], html.dk [data-ss-hero-grid] [data-ss-versions] { max-width: 860px; }
html.dk .dk-card {
    position: relative; flex: none; border-radius: 18px; background: rgba(24,24,27,.72); border: 1px solid rgba(255,255,255,.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 10px 30px rgba(0,0,0,.45); padding: 12px 14px 14px; min-width: 0;
}
/* Now Playing and Events bring their own Bifrost box / rail (the app's), so their slot is frameless — never a box in a box */
html.dk .dk-np, html.dk .dk-events { padding: 0; background: none; border: 0; box-shadow: none; }
html.dk .dk-room-row { display: flex; justify-content: flex-start; margin-bottom: 10px; }
html.dk .dk-search { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 999px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.12); }
html.dk .dk-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #fff; font: inherit; font-size: 14px; }
html.dk .dk-search input::placeholder { color: #71717a; }
html.dk .dk-search:focus-within { border-color: rgba(229,160,13,.6); }
html.dk .dk-chats { padding: 10px 0 6px; }
html.dk .dk-chats-switch { display: flex; align-items: center; gap: 6px; padding: 0 14px 8px; }
html.dk .dk-chats-switch button { position: relative; font-family: Poppins, Outfit, sans-serif; font-weight: 800; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #71717a; padding: 6px 10px; border-radius: 999px; }
html.dk .dk-chats-switch button.is-on { color: #e5a00d; background: rgba(229,160,13,.12); }
html.dk .dk-dot { position: absolute; top: 4px; right: 2px; width: 6px; height: 6px; border-radius: 999px; background: #ef4444; }
html.dk .dk-link { margin-left: auto; font-weight: 600; font-size: 13px; color: #e5a00d; }
html.dk .dk-chats-list { max-height: 520px; overflow-y: auto; }
/* InboxList is built to fill the Messages page (absolute, bottom 0, pb-24 under the phone nav); in the card it flows */
html.dk .dk-chats-list > div { position: relative; inset: auto; padding-bottom: 6px; }
html.dk .dk-chats-list > div > div { min-height: 0; margin-left: 10px; margin-right: 10px; }

/* notifications = the same NotificationsPage in the same SidePanel, hung UNDER THE BELL as a popover (plan §2:
   "rendered in a popover anchored under the bell … not the SidePanel" drawer). The band leaves the centre column and
   sits on the frame's right gutter, the drawer becomes a rounded card; the centre's dim stays as the click-away. */
html.dk .app-shell-band:has(> .max-w-xs.flex-col) {
    left: auto; right: calc((100vw - var(--dk-hdr-w)) / 2 + var(--dk-gutter) - 6px); width: 420px; max-width: calc(100vw - 32px);
    top: 70px; bottom: auto; height: min(680px, calc(100vh - 92px)); border-radius: 18px;
}
html.dk .app-shell-band:has(> .max-w-xs.flex-col) > .max-w-xs {
    max-width: none; border-radius: 18px; border: 1px solid rgba(255,255,255,.10);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 24px 60px rgba(0,0,0,.7);
}
html.dk .app-shell-fixed.top-16.bottom-20:not(.app-shell-band) { bottom: 0; }
/* review 11-10 (desktop-rev): the room drop opens from the pill's LEFT edge, as the approved mockup drew it (`left-0`).
   Anchored right (its Settings-header placement) it ran ~100px past the right column's left edge, and the column's own
   scroller cut the room names off. */
html.dk .dk-room-row .sk-room-drop { left: 0; right: auto; }
/* the room switcher LIVES at the top of the right column on the website (mockup: "room switcher lives at the top of the
   right column"), so Settings' own header pill would be the same control twice on one screen. Below 900 the right column
   is gone (iPad portrait), so there it stays. */
html.dk .sk-home > .sk-hdr > .relative:has(> .sk-room-pill) { display: none; }   /* the header carries the room switcher on the website (11-18 ~14:20) */
/* the Messages page (and the chat sheet inside it) sits IN the centre column. Its container is position:fixed at an
   explicit px width (min(window, 420)) centred on the WINDOW - the phone column's keyboard-wobble fix, MessagingPage.jsx
   containerStyle - so on the website it floated window-centred: over the right column from 1920 up (3440: 1510-1930).
   Inline styles, hence !important; the marker is its own child [data-occluded] (MessagingPage.jsx only). */
html.dk [data-kb-ride][data-kb-morph]:has(> [data-occluded]) { left: var(--dk-c-left) !important; right: auto !important; width: var(--dk-c) !important; margin: 0 !important; }

/* 🧪 THE EVENT-CHAT FREEZE A/B (audit A4, 2026-11-24; static/ecArm.js deals the arm per session, <html data-ec-arm>).
   Compositing hints only - the pixels are identical in every arm.
   A: the held message list keeps its keyboard-up translate (useKeyboardMotion.js [data-kb-held][data-kb-morph]) but not
      its own layer (~75% of the chat's layer area on the rig: .chat-rows 399x19769).
   B: the poster wash (EventPage, blur 60px) on its own layer, so content repainting over it never re-runs the blur. */
html[data-ec-arm="A"] .chat-rows[data-kb-held][data-kb-morph] { will-change: auto; }
html[data-ec-arm="B"] [data-ec-wash] { will-change: transform; }

/* ── TV KIT: the phone's own pieces at 10-foot size (Josh 12-02 #569n UI parity; the phone is home base for every visual) ──────────
   .tv-gp / .tv-gold = the phone's glass pill / gold pill (.sk-gp / .sk-gp.sk-gold above, same gradients) for every TV pop-up button
   (tvUi TvButton). .tv-on = the phone's picked look (dark, the glowing house-green #3ddc57 rim, green words - .sk-tog.sk-on, the
   EventPage RSVP) for TvSecondary tone="on". .tv-ring-disc = the phone's EmptyState ring disc (.sk-ring) scaled for TvEmpty. */
.tv-gp { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; min-width: 56px; padding: 0 32px; border-radius: 9999px; border: 0;
    font-size: 19px; font-weight: 800; white-space: nowrap; color: #d4d4d8; background: rgba(255,255,255,0.07); isolation: isolate;
    box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.14), inset 0 1px 0 rgba(255,255,255,0.12); }
.tv-gp.tv-gold { background: linear-gradient(180deg, #fde68a, #facc15 45%, #d69e07); color: #1a1200; font-weight: 900; letter-spacing: 0.04em;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 6px 22px rgba(250,204,21,0.35); }
.tv-gp:disabled { opacity: 0.5; }
.tv-gp svg { flex: none; }
.tv-on { color: #3ddc57 !important; box-shadow: inset 0 0 0 2px rgba(61,220,87,0.75), 0 0 22px rgba(61,220,87,0.45), inset 0 0 14px rgba(61,220,87,0.12); }
.tv-hero-btn.tv-on::before { display: none; }   /* the green rim replaces the greyed Bifrost outline at rest; focus still brings the ring */
.sk-ring.tv-ring-disc { width: 96px; height: 96px; }
.sk-ring.tv-ring-disc::before { padding: 3px; }
.sk-ring.tv-ring-disc svg { width: 42px; height: 42px; }
/* the server dashboard's main buttons = the phone's gold pill (settingsKit GoldPill / .sk-gp.sk-gold; Josh 12-02 #569n parity #7) -
   each button keeps its own size, only the face is the phone's. tests/test_ui_parity_buttons.js keeps flat yellow pills out. */
.ss-gold { background: linear-gradient(180deg, #fde68a, #facc15 45%, #d69e07); color: #1a1200; font-weight: 900; letter-spacing: 0.02em;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 4px 16px rgba(250,204,21,0.35); }
.sk-ring.ss-ring-disc { width: 56px; height: 56px; }
.sk-ring.ss-ring-disc svg { width: 24px; height: 24px; }

/* 💬 QA 12-03 M9: on a light chat theme (the pink DM) the browser's grey "Type a message…" vanished into the field.
   A soft white with a faint shadow reads on dark AND light themes; dark themes look the same as before. */
.chat-mentions__input::placeholder { color: rgba(255,255,255,0.6); text-shadow: 0 1px 2px rgba(0,0,0,0.28); }
