/* Audio-native screens, ported from the design concepts: Soundfield (room), Constellation (sky), Chorus, Currents (radio), Pocket.
   Each screen is a fixed full-viewport composition whose backdrop is drawn by .ap-screen.X:before. Reduced motion respected. */
.ap-screen.sf:before,.ap-screen.sky:before,.ap-screen.cu:before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none}

/* --- Soundfield --- */
.ap-screen.sf:before{background:radial-gradient(120% 80% at 50% 55%,#1b1530 0%,#0a0812 60%,#050409 100%)}
[data-theme=light] .ap-screen.sf:before{background:radial-gradient(120% 80% at 50% 55%,#fff6ea 0%,#f1e9f4 60%,#e9e3ee 100%)}
.sf .top{position:fixed}
.sf-modes{position:fixed;top:calc(var(--tp) + 42px);left:0;right:0;z-index:5}
.sf-room{position:fixed;inset:0;z-index:1;touch-action:none;outline:none}
.sf-room:focus-visible .sf-you{box-shadow:0 0 0 3px var(--gold)}
.sf-canvas{position:absolute;inset:0;width:100%;height:100%}
.sf-you{position:absolute;transform:translate(-50%,-50%);width:58px;height:58px;border-radius:50%;border:1.5px solid rgba(244,239,230,.5);display:grid;place-items:center;font-size:10px;letter-spacing:.2em;text-transform:uppercase;z-index:4;pointer-events:none}
/* Dark theme: the "you" is dark on the main Room tab, so it reads against the pale moon
   (Nov 2026). The moon covers the 58px "you" exactly, and the light text vanished against
   it. Scoped to the soundfield, where the moon is: a post's room has no moon behind its
   "you", so it keeps the light text on the dark background. The light theme is untouched. */
html:not([data-theme=light]) .sf[data-screen="soundfield"] .sf-you{color:#17120c}
.sf-you:after{content:"";position:absolute;inset:-14px;border-radius:50%;border:1px dashed rgba(244,239,230,.18)}
[data-theme=light] .sf-you{border-color:rgba(20,16,30,.45)}
/* A realistic celestial body behind the "you" (Nov 2026): a canvas sun in the light theme, a realistic
   full moon in the dark theme, both drawn by ap_celestial.js. The canvas (.ap-celestial) sits behind the
   "you" text (z-index:-1 puts it above the Room canvas, below the text); the dashed ring (::after) stays.
   The sun is a fiery, granulated orb turning very slowly, with plasma arcs bursting at random intervals
   from random points on the limb; the moon is a grey full moon (maria + craters), always full, static.
   Reduced motion: the sun is drawn once, statically (no rotation, no arcs) — handled in JS, no CSS here. */
.sf-you .ap-celestial{position:absolute;left:50%;top:50%;width:240px;height:240px;transform:translate(-50%,-50%);z-index:-1;pointer-events:none}
[data-theme=light] .sf-you::after{border-color:rgba(255,157,0,.45)}
.sf-voice{position:absolute;transform:translate(-50%,0);font:inherit;font-size:11px;color:inherit;background:none;border:0;padding:4px 6px;text-align:center;white-space:nowrap;z-index:4;transition:opacity .3s,filter .3s;cursor:pointer;min-height:44px}
.sf-voice b{display:block;font:400 14px/1.2 var(--serif);max-width:44vw;overflow:hidden;text-overflow:ellipsis}
.sf-voice.is-focus b{font-size:15px}
.sf-voice.is-far b{display:none}
.sf-voice.is-gold b{color:var(--gold)}
.sf-voice.is-sens b{font-style:italic;opacity:.8}
.sf-hint{position:fixed;z-index:5}
.sf-sheet .title{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.sf-sheet .who a{color:inherit;text-decoration:none}
.sf-card[hidden]{display:none}
.sf-cover{display:block;width:100%;min-height:44px;margin:8px 0;border-radius:16px;border:1px dashed var(--line);background:var(--chip);color:inherit;font:inherit;font-size:13px}
.sf-cover ~ .sf-words{filter:blur(6px)}
.sf-sheet:not(:has(.sf-card:not([hidden]))){display:none}
/* Start: one green button steps into the room (murmur on, turning on); then only a small stop icon stays */
/* The Start button lives in the middle of the room, a circle, with its hint under it (Nov 2026). */
.sf-start-wrap{position:fixed;z-index:8;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:14px}
.sf-start{position:static;display:inline-flex;align-items:center;justify-content:center;width:128px;height:128px;min-width:0;padding:0;border:0;border-radius:50%;background:#2fbf71;color:#04170c;font:700 18px/1 var(--sans,system-ui,sans-serif);letter-spacing:.02em;box-shadow:0 8px 30px rgba(47,191,113,.38);cursor:pointer;touch-action:manipulation}
.sf-start-hint{margin:0;color:var(--ink);font:600 14px/1.4 var(--sans,system-ui,sans-serif);text-align:center;text-shadow:0 1px 12px var(--bg)}
.sf-start-i{display:none;width:22px;height:22px;fill:currentColor}
/* While the room is on, the wrapper carries the small stop button to the top-right corner. */
.sf-start-wrap:has(.sf-start[aria-pressed=true]){left:auto;right:14px;top:calc(var(--tp) + 92px);transform:none}
.sf-start-wrap:has(.sf-start[aria-pressed=true]) .sf-start-hint{display:none}
.sf-start[aria-pressed=true]{min-width:44px;width:44px;height:44px;padding:0;background:var(--glass,rgba(18,16,24,.82));color:var(--ink,#f4efe6);border:1px solid var(--line);box-shadow:none;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}
.sf-start[aria-pressed=true] .sf-start-t{display:none}.sf-start[aria-pressed=true] .sf-start-i{display:block}

/* "Turn to the voice" hint: a phone turning, shown for ~2.5 s after Start is pressed (Nov 2026). */
.sf-turn-hint{position:fixed;z-index:9;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:16px;text-align:center;pointer-events:none;opacity:0}
.sf-turn-hint p{margin:0;color:var(--ink);font:600 17px/1.4 var(--sans,system-ui,sans-serif);text-shadow:0 1px 12px var(--bg)}
.sf-turn-phone{width:56px;height:84px;color:var(--ink)}
.sf-turn-hint.is-on{animation:sf-turn 2.5s ease forwards}
.sf-turn-hint.is-on .sf-turn-phone{animation:sf-turn-phone 2.5s ease}
@keyframes sf-turn{0%{opacity:0}15%{opacity:1}80%{opacity:1}100%{opacity:0}}
@keyframes sf-turn-phone{0%{transform:rotate(0deg)}35%{transform:rotate(90deg)}65%{transform:rotate(90deg)}100%{transform:rotate(0deg)}}
@media (prefers-reduced-motion:reduce){.sf-turn-hint.is-on,.sf-turn-hint.is-on .sf-turn-phone{animation:none}.sf-turn-hint.is-on{opacity:1}}
.sf-void{position:relative;padding-top:calc(var(--tp) + 96px)}
@media (prefers-reduced-motion:reduce){.sf-voice{transition:none}}

/* --- Constellation --- */
.ap-screen.sky:before{background:radial-gradient(120% 80% at 50% 40%,#0b1020 0%,#04060d 70%)}
[data-theme=light] .ap-screen.sky:before{background:radial-gradient(120% 80% at 50% 40%,#f4f2fb 0%,#e7e4f1 70%)}
.sky .top{position:fixed}
.sky-tools{position:fixed;top:calc(var(--tp) + 42px);left:0;right:0;z-index:5;align-items:center}
.sky-tools button[data-zoom]{min-width:34px;font-size:13px}
.sky-filter select{font:inherit;font-size:11px;color:inherit;background:none;border:1px solid var(--line);border-radius:99px;padding:5px 10px;opacity:.75;appearance:none}
.sky-filter select option{color:#000}
.sky-stage{position:fixed;inset:0;z-index:1}
.sky-stage canvas{width:100%;height:100%;display:block;touch-action:none}
.sky-labels{position:absolute;inset:0;pointer-events:none}
.sky-lbl{position:absolute;transform:translateX(-50%);font-size:10.5px;text-align:center;opacity:.75;white-space:nowrap;z-index:4}
.sky-lbl b{display:block;font:400 13px var(--serif);max-width:150px;overflow:hidden;text-overflow:ellipsis}
.sky-time{position:absolute;right:14px;top:calc(var(--tp) + 96px);bottom:calc(var(--dock) + var(--mini) + 190px);width:2px;margin:0;background:linear-gradient(var(--gold),transparent);z-index:4;pointer-events:none}
.sky-time i{position:absolute;right:8px;font-size:10px;font-style:normal;opacity:.5;white-space:nowrap}
.sky-time i:nth-child(1){top:0}.sky-time i:nth-child(2){top:45%}.sky-time i:nth-child(3){bottom:0}
.sky-card[hidden],.sky-idle[hidden],.sky-sheet [hidden]{display:none}
.sky-sheet .title{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.sky-list{position:fixed;inset:140px 0 calc(var(--dock) + var(--mini) + 200px);overflow:auto;margin:0;padding:0 22px 0 40px;z-index:6;background:var(--bg)}
.sky-list>li{padding:10px 0;border-bottom:1px solid var(--line)}
.sky-list>li[aria-current]{color:var(--gold)}.sky-list ul{margin:6px 0 0;padding-left:16px;font-size:13px;opacity:.75}
.sky-li-text{display:block;font:400 15px/1.3 var(--serif);opacity:.8;overflow-wrap:anywhere}
.sky-list a{color:inherit}
.sky-void{position:relative;padding-top:calc(var(--tp) + 96px)}

/* --- Chorus (concept: always warm paper, ink waves) --- */
.ch{position:fixed;inset:0;background:#f3ece0;color:#1c1712;--ink:#1c1712;--line:rgba(0,0,0,.1)}
.ch .brand{color:#1c1712}.ch .pill,.ch .ap-tool{background:rgba(0,0,0,.05);border-color:rgba(0,0,0,.1);color:#1c1712}
.ch-head-text{position:absolute;top:calc(var(--tp) + 50px);left:22px;right:22px;z-index:4}.ch-head-text .who{opacity:.55}
.ch-quote{font-size:30px;margin:6px 0 0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.ch-score{position:absolute;inset:0;pointer-events:none}.ch-canvas{position:absolute;inset:0;width:100%;height:100%}
.ch-lane{position:absolute;left:22px;right:22px;z-index:4;pointer-events:auto}
.ch-solo{display:flex;gap:6px;align-items:center;font:11px/1.2 inherit;color:#1c1712;background:none;border:0;padding:4px 0;min-height:28px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
.ch-solo i{width:8px;height:8px;border-radius:50%;flex:none}.ch-solo[aria-pressed=true]{font-weight:700;text-decoration:underline}
.ch-lane.is-live .ch-solo i{box-shadow:0 0 0 3px rgba(0,0,0,.08)}
.ch-empty{position:absolute;left:22px;right:22px;top:420px;font:400 17px/1.4 var(--serif);opacity:.6}
.ch .sheet{background:rgba(255,252,245,.8);border-color:rgba(0,0,0,.08);color:#1c1712}
.ch .btn{border-color:rgba(0,0,0,.12);background:rgba(0,0,0,.03);color:#1c1712}
.ch-seek{width:100%;margin:10px 0 2px;accent-color:#1c1712;height:18px}
.ch-rec{display:contents}.ch-hold{touch-action:none;user-select:none;-webkit-user-select:none}
.ch .sf-cover{position:relative;margin-top:8px}.ch-hp{margin:6px 0 0;color:#1c1712;opacity:.55;font-size:11px}
.ch-tip{text-transform:none;letter-spacing:0;white-space:normal;font-size:13px;opacity:.7}
/* --- Currents (radio nouveau: no frequencies, no dial) --- */
.ap-screen.cu:before{background:radial-gradient(120% 70% at 50% 45%,#0f1d2b 0%,#070b12 62%,#04060a 100%)}
[data-theme=light] .ap-screen.cu:before{background:radial-gradient(120% 70% at 50% 45%,#eef6fb 0%,#e4edf3 62%,#dde5ec 100%)}
.cu .top{position:fixed}
.cu-field{position:fixed;inset:0;z-index:1;touch-action:pan-y;outline:none}
.cu-field:focus-visible .cu-nm{text-decoration:underline 2px var(--gold);text-underline-offset:8px}
.cu-canvas{position:absolute;inset:0;width:100%;height:100%}
.cu-cur{position:absolute;top:calc(var(--tp) + 64px);left:22px;right:22px;z-index:4;pointer-events:none}
.cu-k{margin:0;font:600 11px/1 var(--mono);letter-spacing:.3em;text-transform:uppercase;opacity:.55}
.cu-nm{margin:12px 0 0;font:italic 400 clamp(30px,9vw,44px)/1.1 var(--serif);letter-spacing:-.02em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cu-pr{display:flex;gap:8px;align-items:center;margin:16px 0 0;font-size:13px;opacity:.85}
.cu-pr i{width:8px;height:8px;flex:none;border-radius:50%;background:#ff5a46;box-shadow:0 0 10px #ff5a46;animation:cu-blink 1.4s infinite}
.cu-pr i[hidden]{display:none}
@keyframes cu-blink{50%{opacity:.3}}
.cu-mix{position:absolute;inset:0;z-index:4;pointer-events:none}
.cu-mix[hidden],.cu-cur[hidden]{display:none}
.cu-mixn{position:absolute;top:calc(var(--tp) + 66px);margin:0;font:italic clamp(24px,7vw,40px)/1.05 var(--serif);max-width:46%}
.cu-mixn.is-a{left:22px}.cu-mixn.is-b{right:22px;text-align:right}
.cu-mixn small{display:block;font:11px var(--mono);letter-spacing:.25em;opacity:.55;margin-bottom:10px;font-style:normal}
.cu-mixn span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.cu-knob{position:absolute;top:52%;width:44px;height:44px;margin:-22px 0 0 -22px;border-radius:50%;background:var(--ink);box-shadow:0 0 30px rgba(244,239,230,.6)}
.cu-edge{position:absolute;top:47%;z-index:4;font:italic 15px var(--serif);color:inherit;background:none;border:0;opacity:.4;min-height:44px;padding:0 10px;max-width:40%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cu-edge.is-l{left:0}.cu-edge.is-r{right:0}
.cu-sheet .cu-air{cursor:pointer}
.cu-golive{max-width:420px;width:calc(100% - 24px);border-radius:30px;border:1px solid var(--line);background:var(--glass);-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px);color:var(--ink);padding:20px;display:none;flex-direction:column;gap:12px}
.cu-golive[open]{display:flex;max-height:calc(100dvh - 32px);overflow:auto}
.cu-golive::backdrop{background:rgba(4,6,10,.6)}
.cu-golive .btn{text-decoration:none;flex:none}
.live-currents{display:flex;flex-direction:column;gap:10px;font-size:13px}
.live-currents-h{margin:4px 0 0;font:600 11px/1 var(--mono);letter-spacing:.25em;text-transform:uppercase;opacity:.7}
.live-currents .meta{margin:0;opacity:.7}
.live-currents input[type=text]{width:100%;min-height:44px;border-radius:14px;border:1px solid var(--line);background:var(--chip);color:inherit;padding:0 12px;font:inherit}
.live-currents fieldset{border:1px solid var(--line);border-radius:18px;padding:10px 12px;display:flex;flex-direction:column;gap:8px}
.live-currents .jit-warn{color:#ff6b78}
.live-currents .chipbox{display:flex;flex-wrap:wrap;gap:6px;align-items:center;min-height:44px;border-radius:14px;border:1px solid var(--line);background:var(--chip);padding:6px 8px}
.live-currents .chiplist{display:contents;list-style:none;margin:0;padding:0}
.live-currents .tagchip{display:inline-flex;align-items:center;gap:4px;padding:4px 6px 4px 10px;border-radius:99px;background:rgba(246,197,107,.16);color:var(--gold);font-size:12px}
.live-currents .tagchip-x{border:0;background:none;color:inherit;opacity:.7;min-width:24px;min-height:24px;font:inherit}
.live-currents .chip-typer{flex:1;min-width:90px;border:0;background:none;color:inherit;font:inherit;outline:none;min-height:30px}
.live-currents .chipbox input[type=text]{border:0;background:none;min-height:30px}
.live-currents .tag-count{margin:0;font-size:11px;opacity:.55}
.live-currents label{display:flex;gap:8px;align-items:flex-start;flex-wrap:wrap}
.live-currents label:has(>input[type=checkbox]),.live-currents label:has(>input[type=radio]){flex-wrap:nowrap}
.cu-void{position:relative;padding-top:calc(var(--tp) + 96px)}
@media (prefers-reduced-motion:reduce){.cu-pr i{animation:none}}

/* --- Gesture guide (Nov 2026): replaces pocket mode. Slightly transparent overlay; the
   multi-finger rows grey out while the "simple gestures only" checkbox is checked. --- */
.ap-gesture-guide{position:fixed;inset:0;z-index:60;background:rgb(0 0 0 / .86);color:#ddd;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;padding:32px;overflow:auto;text-align:center}
.ap-gesture-guide[hidden]{display:none}
.gi-simple{font-size:15px;display:flex;gap:10px;align-items:center;cursor:pointer}
.gi-simple input{width:20px;height:20px;accent-color:#c9a227}
.gi-list{list-style:none;padding:0;margin:0;display:grid;gap:14px;font-size:14px;line-height:1.4}
.gi-item{display:flex;gap:12px;align-items:center;text-align:left}
.gi-item img{width:40px;height:40px;flex:none}
.ap-gesture-guide.gi-multi-off .gi-multi{opacity:.35}
.gi-close{min-height:48px;padding:0 20px;border-radius:24px;border:1px solid #444;background:none;color:#ddd;font:inherit}
.ap-gesture-btn{color:var(--ink,#f4efe6)}
.ap-gesture-btn svg{width:14px;height:14px;display:block}
/* Desktop (mouse): the gesture guide is a touch feature, hide its button. */
@media (hover:hover) and (pointer:fine){.ap-gesture-btn{display:none}}

@media (min-width:760px){
 .sf-room{width:520px}.sf-sheet,.sky-card{max-width:640px;margin-inline:auto}
}
@media (prefers-reduced-motion:reduce){
 .ap-void-rings i,.ap-void-stars i,.ch-hold.is-rec{animation:none}.sf-voice,.tu-scale{transition:none}
}

/* --- Room listening (a post and its answers, seated around you) --- */
.rm-room{position:fixed;inset:0;z-index:1;touch-action:none}
/* The way home (Nov 2026, universe): inside a post's system the top-left control is the moon
   (dark theme) or the sun (light theme) — the same bodies that stand behind "you" on the main
   Room. Tapping it zooms all the way back out to the main room. At level 0 there is no such
   button and the brand shows instead (the universe hides one and shows the other). */
.ap-home-btn{position:fixed;right:12px;top:20%;width:44px;height:44px;z-index:6}
.ap-home-btn[hidden]{display:none}
.ap-home-disc{display:block;width:30px;height:30px;border-radius:50%;
 background:radial-gradient(circle at 35% 32%,#f6efce 0%,#ece3c2 55%,#cbbd97 100%);
 box-shadow:0 0 12px rgba(240,238,214,.35)}
[data-theme=light] .ap-home-disc{background:radial-gradient(circle at 35% 32%,#ffd34d 0%,#ff9d00 60%,#e85d04 100%);
 box-shadow:0 0 12px rgba(255,157,0,.45)}
/* The parent rings (Nov 2026, universe): circles in world coordinates for the centred node and
   its ancestors — the room's transform carries them, so once zoomed in they read as large arcs
   at the edge of the screen. The circles are painted by the universe into this SVG. */
.rm-rings{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:2}
.rm-rings circle{fill:none;stroke:currentColor;opacity:.14;stroke-width:1}
/* A lazily loaded child fades in once (its rings fade on the canvas instead). */
@keyframes rm-fadein{from{opacity:0}}
.rm-voice.is-new,.sf-voice.is-new{animation:rm-fadein .6s ease-out}
.rm-you{left:50%;top:50%}
.rm-voice{position:absolute;transform:translate(-50%,-50%);background:none;border:0;color:inherit;font:inherit;font-size:11px;display:flex;flex-direction:column;align-items:center;gap:4px;min-width:44px;min-height:44px;cursor:pointer;z-index:4;transition:opacity .6s,filter .6s,left .5s ease-in-out,top .5s ease-in-out,transform .5s}
.rm-voice i{width:22px;height:22px;border-radius:50%;background:hsl(var(--h) 70% 62%);box-shadow:0 0 0 6px hsl(var(--h) 70% 62% / .14),0 0 0 14px hsl(var(--h) 70% 62% / .06)}
.rm-voice b{font:400 13px/1.2 var(--serif);max-width:28vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rm-voice .rm-n{position:absolute;top:-4px;right:calc(50% - 22px);text-decoration:none;font-size:10px;min-width:16px;height:16px;border-radius:8px;background:var(--ink);color:var(--bg);display:grid;place-items:center}
.rm-voice.is-sens b{font-style:italic;opacity:.7}
/* The centre star is a star, not a round (Nov 2026): it is the tapped voice zoomed in and
   centred, so it keeps the same 22px disc and 13px label as every orbiting voice. The old
   46px centre disc (with its glow) is gone — it appeared in place of the star and read as a
   big unnecessary circle in the middle of the post's room. Playback does not live here: the
   compact player bar plays/pauses, and tapping a star plays it. */
/* Light theme: the room's voice dots at full saturation, so they read on the white background (Nov 2026). */
[data-theme=light] .rm-voice i{background:hsl(var(--h) 100% 50%);box-shadow:0 0 0 6px hsl(var(--h) 100% 50% / .18),0 0 0 14px hsl(var(--h) 100% 50% / .08)}
/* Orbital threads (Nov 2026): the room sheet is gone, so the sensitive covers stand alone as pills
   under the centre shape — the centre post's own cover, and an orbiting voice's cover lower still. */
.rm-cover-centre{position:absolute;left:50%;top:calc(50% + 64px);transform:translateX(-50%);z-index:5;width:auto;max-width:86vw;text-align:center}
.rm-cover-orbit{position:absolute;left:50%;top:calc(50% + 116px);transform:translateX(-50%);z-index:5;width:auto;max-width:86vw;text-align:center}
.rm[data-state=solo] .rm-voice[data-i]{opacity:.12;filter:blur(1.5px)}
.rm[data-state=solo] .rm-centre i{animation:rm-breathe 1.6s ease-in-out infinite}
.rm[data-state=murmur] .rm-voice[data-i]{opacity:.6}
.rm[data-state=murmur] .rm-voice[data-i] i{animation:rm-murmur 2.4s ease-in-out infinite}
.rm[data-state=focus] .rm-voice{opacity:.25}
.rm[data-state=focus] .rm-voice.is-focus{opacity:1;transform:translate(-50%,-50%) scale(1.25)}
.rm[data-state=focus] .rm-voice.is-focus i{animation:rm-breathe 1.2s ease-in-out infinite}
/* The shift state retired with the page swap (Nov 2026, universe): zooming in no longer hides
   the other voices — they stay where they are, orbiting, because the room never leaves. */
.rm-hp{position:fixed;top:calc(var(--tp) + 46px);z-index:5;animation:rm-in .4s ease-out}
.rm-sheet .btn[hidden]{display:none}
@keyframes rm-breathe{50%{transform:scale(1.15)}}
@keyframes rm-murmur{50%{opacity:.55}}
@keyframes rm-in{from{opacity:0;transform:translateY(-6px)}}
@media (prefers-reduced-motion:reduce){.rm-voice{transition:none}.rm-voice i,.rm-hp{animation:none!important}.rm-voice.is-new,.sf-voice.is-new{animation:none}}

/* Just-in-time notice: appears only at the moment it matters, a one-second nudge, then stays quiet. */
.jit-warn{color:#e2354a;font-size:13px;margin:4px 0 0;font-weight:600;animation:jit-in .9s ease-out}
.jit-warn[hidden]{display:none}
@keyframes jit-in{0%{opacity:0;transform:translateX(-4px)}30%{opacity:1;transform:translateX(3px)}45%{transform:translateX(-2px)}60%{transform:none}}
@media (prefers-reduced-motion:reduce){.jit-warn{animation:none}}

/* --- Sky sheet, compact (Nov 2026): the focused card was too big on a phone --- */
.sky-sheet{padding:12px 14px 14px}
.sky-sheet .title{font-size:20px;-webkit-line-clamp:2;margin:4px 0 8px}
.sky-sheet .btn{height:44px}
.sky-sheet .rec{width:44px;height:44px}

/* --- Sky legend: what the link colours mean (colours match ap_sky.js COLORS) --- */
.sky-legend{position:fixed;top:calc(var(--tp) + 84px);left:12px;right:12px;z-index:5;margin:0}
.sky-legend summary{display:inline-flex;align-items:center;min-height:32px;padding:0 12px;border-radius:99px;border:1px solid var(--line);background:var(--glass);-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px);font-size:12px;cursor:pointer;list-style:none}
.sky-legend summary::-webkit-details-marker{display:none}
.sky-legend ul{list-style:none;margin:8px 0 0;padding:10px 12px;border-radius:16px;border:1px solid var(--line);background:var(--glass);-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px);font-size:12px;line-height:1.9}
.sky-legend li{display:flex;align-items:center;gap:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sky-legend i{flex:none;width:18px;height:3px;border-radius:2px;background:var(--c)}
.sky-legend i.ring{width:10px;height:10px;border-radius:50%;background:none;border:2px solid #f6c56b;box-shadow:0 0 8px rgba(246,197,107,.6)}
[data-theme=light] .sky-legend i.ring{border-color:#ff9d00;box-shadow:0 0 8px rgba(255,157,0,.6)}

/* --- Room + Radio sheets, compact (Nov 2026): the same oversized card Sky had --- */
.rm-sheet,.cu-sheet{padding:12px 14px 14px}
.rm-sheet .title,.cu-sheet .title{font-size:20px;-webkit-line-clamp:2;margin:4px 0 8px}
.rm-sheet .btn,.cu-sheet .btn{height:44px}
.rm-sheet .rec,.cu-sheet .rec{width:44px;height:44px}
.cu-sheet .row{display:flex;gap:8px;align-items:center}
.cu-sheet .row>.btn{flex:1;min-width:0}

/* --- Radio: type a hashtag or a place to jump to its current --- */
.cu-find{position:fixed;top:calc(var(--tp) + 52px);left:12px;right:12px;z-index:5;display:flex;gap:8px}
.cu-find input{flex:1;min-width:0;height:44px;padding:0 14px;border-radius:22px;border:1px solid var(--line);background:var(--glass);-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px);color:inherit;font:inherit}
.cu-find input::placeholder{color:var(--ink2)}
.cu-find a{flex:none;width:44px;height:44px;border-radius:50%;border:1px solid var(--line);background:var(--chip);color:inherit;font-size:18px;display:grid;place-items:center;text-decoration:none;cursor:pointer}
/* --- Radio find suggestions (ap_currents.js): the currents the page already carries, at most 6 rows --- */
.cu-sugg{position:fixed;top:calc(var(--tp) + 52px + 44px + 6px);left:12px;right:12px;z-index:6;border-radius:14px;border:1px solid var(--line);background:var(--glass);-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px);overflow:hidden}
.cu-sugg-row{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:44px;padding:6px 14px;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
.cu-sugg-row + .cu-sugg-row{border-top:1px solid var(--line)}
.cu-sugg-row[aria-selected="true"]{background:var(--chip)}
.cu-sugg-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cu-sugg-meta{flex:none;font-size:12px;opacity:.65;white-space:nowrap}
.cu-find[hidden]{display:none}
.cu-split{position:fixed;top:calc(var(--tp) + 52px);left:12px;right:12px;z-index:5;display:flex;gap:8px}
.cu-split[hidden]{display:none}
.cu-split input{flex:1;min-width:0;height:44px;padding:0 14px;border-radius:22px;border:1px solid var(--line);background:var(--glass);-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px);color:inherit;font:inherit}
.cu-split input::placeholder{color:var(--ink2)}
.cu-sugg-a{left:12px;right:calc(50% + 4px)}
.cu-sugg-b{left:calc(50% + 4px);right:12px}
/* The find bar sits under the header, so the current name and mix names move down the same amount. */
.cu-cur{top:calc(var(--tp) + 108px)}
.cu-mixn{top:calc(var(--tp) + 110px)}

/* --- Room sheet, compact again (Nov 2026): still too big after the first pass --- */
.rm-sheet{padding:10px 12px 10px}
.rm-sheet .title{-webkit-line-clamp:1;margin:2px 0 6px}
.rm-sheet .btn{height:40px}
.rm-sheet .rec{width:40px;height:40px}

/* --- Room-tab feed sheet, compact (Nov 2026): the card on the home screen was never touched ---
   Rounds 1-3 compacted .rm-sheet (the per-post room page). The card the user sees is the feed
   sheet (feed.html): <section class="sheet sf-sheet"> with .sf-card articles — no .rm-sheet
   ancestor, so none of those rules ever applied. Its excerpt was clamp:3 at 24px, its .rec the
   64px base with a 40px-blur glow that reads ~105px wide, and its Play pill is sized by .hs-icon
   (hs_player.css loads after this file): a bare height is not enough, min-height must be set too. */
.sf-sheet{padding:10px 12px 10px}
.sf-sheet .title{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;font-size:20px;-webkit-line-clamp:1;margin:2px 0 6px}
.sf-sheet .btn{height:40px;min-height:40px}
.sf-sheet .rec{width:40px;height:40px;box-shadow:0 0 0 3px rgba(226,53,74,.15),0 0 16px rgba(255,90,70,.35)}
.sf-sheet .rec.is-rec{animation:none}
.sf-sheet .sf-card .hs-share-btn{min-width:40px;min-height:40px}
.sf-sheet .hs-sheet-seek{height:20px;margin:4px 0 2px}
