/* Radio station studio (the presenter): .studiox and .sx* classes. */
/* A broadcast desk in the app's own language: graphite, the faint 24 px
   grid, signal green, music violet, ice for voices, amber for attention,
   red only for a hot microphone and the ON AIR lamp; mono capitals for the
   labels, LED dots for the numbers, flap cells on the board. */

.studiox { --mu: var(--violet); --mu-glow: rgba(185, 162, 255, .35); --amb: #ffc44d; --hot: var(--danger);
  background:
    linear-gradient(rgba(159, 232, 112, .035) 1px, transparent 1px) 50% 0 / 24px 24px,
    linear-gradient(90deg, rgba(159, 232, 112, .035) 1px, transparent 1px) 50% 0 / 24px 24px,
    #0b0e0c; }
.studiox .grow { flex: 1; min-width: 0; }
.sxlabel { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.sxsec { display: flex; align-items: center; gap: 8px; min-height: 30px; margin: 16px 2px 6px; }
.sxsec .sxlabel { overflow: hidden; text-overflow: ellipsis; }
.sxsec .btn.small { height: 30px; }
.sxcount { font-size: 11px; color: var(--text-3); }
.sxhint { font-size: 12.5px; line-height: 1.4; color: var(--text-3); margin: 6px 2px 0; }
.sxhint.amber { color: var(--amber); }
.sxempty { padding: 14px 12px; border-radius: 14px; border: 1px dashed var(--line-2); color: var(--text-3); font-size: 13px; line-height: 1.45; text-align: center; }
.sxled { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #26332a; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.sxsq { width: 9px; height: 9px; flex: none; border-radius: 2px; background: currentColor; }
.sxpix { display: block; image-rendering: pixelated; image-rendering: crisp-edges; }

/* ---------- head: name, ON AIR lamp, listeners, calls ---------- */
.sxhead { display: flex; align-items: center; gap: 4px; min-height: 56px; padding: max(8px, env(safe-area-inset-top)) 6px 6px 8px; flex: none; }
.sxid { flex: 1; min-width: 0; padding: 0 4px; container-type: inline-size; }
.sxname { font-size: 16px; font-weight: 650; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sxfreq { font-size: 10.5px; letter-spacing: .1em; color: rgba(159, 232, 112, .7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; text-transform: uppercase; }
.sxfreqk { color: var(--text-3); }
/* A narrow head (the lamp is lit): the frequency alone. */
@container (max-width: 150px) { .sxfreqk { display: none; } }
/* The lamp: a little lit box, as over a studio door. */
.sxlamp { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 9px 0 8px; border-radius: 8px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  color: var(--text-3); background: #0d110e; border: 1px solid var(--line-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
  transition: color .25s, background-color .25s, border-color .25s, box-shadow .25s; }
.sxlamp i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; opacity: .55; }
.sxlamp[data-state=music] { color: var(--mu); border-color: rgba(185, 162, 255, .4); background: rgba(185, 162, 255, .08); box-shadow: 0 0 14px -6px var(--mu-glow); }
.sxlamp[data-state=music] i { opacity: 1; box-shadow: 0 0 6px var(--mu); }
.sxlamp[data-state=live] { color: #fff3f1; border-color: rgba(255, 120, 108, .8); background: linear-gradient(#e8665d, #b9352d);
  box-shadow: 0 0 22px -4px rgba(224, 87, 79, .75), inset 0 1px 0 rgba(255, 255, 255, .25); animation: sxbreath 1.8s ease-in-out infinite; }
.sxlamp[data-state=live] i { opacity: 1; background: #fff; box-shadow: 0 0 6px #fff; }
.sxlamp[data-state=call] { color: var(--amb); border-color: rgba(255, 196, 77, .55); background: rgba(255, 196, 77, .1); box-shadow: 0 0 16px -6px rgba(255, 196, 77, .6); }
.sxlamp[data-state=call] i { opacity: 1; box-shadow: 0 0 6px var(--amb); animation: blink 1.4s infinite; }
.sxlamp[data-state=offline] { color: var(--text-3); animation: blink 1.2s steps(1) infinite; }
@keyframes sxbreath { 50% { box-shadow: 0 0 34px -2px rgba(224, 87, 79, .9), inset 0 1px 0 rgba(255, 255, 255, .25); } }
.sxears { flex: none; display: inline-flex; align-items: center; gap: 3px; padding: 0 4px 0 6px; font-size: 12.5px; color: var(--accent); }
.sxcalls { position: relative; width: 38px; }
.sxcalls.on { color: var(--amb); }
.sxcalls .badge { position: absolute; top: 2px; right: 0; box-shadow: 0 0 0 2px #0b0e0c; }
.studiox .sxhead > .iconbtn { width: 38px; }

/* ---------- the board in one line, with the clock or the countdown ---------- */
.sxboard { display: flex; gap: 6px; padding: 0 12px 8px; flex: none; }
.studiox .sxboard .oaboard.compact { flex: 1; min-width: 0; height: 42px; margin: 0; }
.sxbside { --bng: 159, 232, 112; flex: none; width: 70px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 2px;
  border: 1.5px solid rgba(var(--bng), .35); background: radial-gradient(circle, rgba(255, 255, 255, .035) 0 30%, transparent 38%) 0 0 / 4px 4px, linear-gradient(#0c140d, #050906);
  box-shadow: inset 0 0 18px -12px rgba(var(--bng), .6); transition: border-color .3s; }
.sxbside[data-level=warn] { --bng: 255, 196, 77; }
.sxbside[data-level=alarm] { --bng: 255, 90, 79; }
.sxbside[data-level=vip] { --bng: 255, 207, 90; }
.sxbclock, .sxbleft { font-size: 15px; font-weight: 600; letter-spacing: .04em; color: rgb(var(--bng)); text-shadow: 0 0 8px rgba(var(--bng), .6);
  -webkit-mask-image: radial-gradient(circle, #000 60%, rgba(0, 0, 0, .6) 74%); mask-image: radial-gradient(circle, #000 60%, rgba(0, 0, 0, .6) 74%);
  -webkit-mask-size: 2.5px 2.5px; mask-size: 2.5px 2.5px; font-variant-numeric: tabular-nums; }
.sxbclock { color: rgba(var(--bng), .75); }
.sxbclock i { font-style: normal; animation: oacolon 1s steps(1) infinite; }
/* Wide enough for «60:00» and ✕, and the same for 9:59 and 10:00. */
.sxbside.notice { width: 86px; justify-content: space-between; padding: 0 3px 0 8px; }
.sxbleft { font-size: 13.5px; }
.sxbclear { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 8px; color: rgb(var(--bng)); background: rgba(var(--bng), .1); border: 1px solid rgba(var(--bng), .3); }
.sxbclear:active { transform: var(--press); }

/* ---------- the middle, scrolling ---------- */
.sxscroll { position: relative; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 0 12px 18px; overscroll-behavior: contain; }
.sxmake { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 2px 0 10px; border-radius: 16px; font-size: 13px; line-height: 1.4; color: var(--text-2);
  border: 1px dashed rgba(159, 232, 112, .4); background: rgba(159, 232, 112, .04); }
.sxmake b { display: block; color: var(--text); font-size: 14.5px; margin-bottom: 2px; }
.sxnote { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; margin: 0 0 10px; border-radius: 12px; font-size: 12.5px; line-height: 1.35; color: var(--text-2);
  background: rgba(140, 216, 255, .06); border: 1px solid rgba(140, 216, 255, .24); }
.sxnote > .icon { color: var(--ice); flex: none; }
.sxnote.amber { background: rgba(255, 207, 110, .06); border-color: rgba(255, 207, 110, .26); margin: 8px 0 0; }
.sxnote.amber > .icon { color: var(--amber); }
.sxnote .btn { flex: none; }

/* The show: one line, a tap away from its sheet. */
.sxshow { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 6px 10px 6px 8px; margin: 0 0 8px; border-radius: 14px; text-align: left;
  background: var(--sheen), var(--surface); border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s; }
.sxshow:active { transform: var(--press); }
.sxshowic { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 9px; color: var(--text-3); background: var(--surface-2); }
.sxshow .grow { display: flex; flex-direction: column; min-width: 0; }
.sxshowk { font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.sxshowt { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sxshowm { flex: none; font-size: 11px; color: var(--text-2); white-space: nowrap; max-width: 46%; overflow: hidden; text-overflow: ellipsis; }
.sxshow .chev { color: var(--text-3); display: grid; flex: none; }
.sxshow.live { border-color: rgba(159, 232, 112, .5); background: linear-gradient(180deg, #131b15, #101411); box-shadow: 0 0 26px -14px var(--accent-glow); }
.sxshow.live .sxshowic { background: var(--accent-dim); }
.sxshow.live .sxshowk, .sxshow.live .sxshowm { color: var(--accent); }
.sxshow.slot .sxshowic { color: var(--accent); background: var(--accent-dim); }
.sxshow.slot .sxshowk { color: var(--amber); }

/* ---------- the decks ---------- */
.sxdecks { border-radius: 18px; padding: 10px 12px 10px; background: linear-gradient(180deg, #16131c, #111014); border: 1px solid rgba(185, 162, 255, .28);
  box-shadow: 0 0 30px -20px var(--mu-glow); }
.sxdeck + .sxdeck { margin-top: 10px; padding-top: 9px; border-top: 1px dashed rgba(185, 162, 255, .2); }
.sxdh { display: flex; align-items: center; gap: 7px; min-height: 18px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.sxdk { width: 18px; height: 18px; flex: none; display: grid; place-items: center; border-radius: 5px; font-size: 11px; font-weight: 600; letter-spacing: 0;
  color: #1a1030; background: linear-gradient(180deg, #d6c9ff, var(--mu) 70%); box-shadow: 0 0 10px -3px var(--mu-glow); }
.sxdeck.next .sxdk { color: var(--mu); background: rgba(185, 162, 255, .12); box-shadow: inset 0 0 0 1px rgba(185, 162, 255, .3); }
.sxdrole { color: var(--mu); font-weight: 600; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sxdeck.next .sxdrole { color: var(--text-2); font-weight: 500; }
.sxdline { flex: 1; min-width: 12px; height: 0; border-top: 1px dashed rgba(185, 162, 255, .18); }
.sxdtag { flex: none; color: var(--text-3); }
.sxdtag.ok { color: var(--accent); }
.sxdtag.warn { color: var(--amb); }
.sxdeck.cur .sxdtag:not(.warn) { color: rgba(159, 232, 112, .8); }
.sxdbody { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.sxdmain { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.sxdmain .steq { width: 34px; height: 34px; }
.sxdeck.heard .steq i { opacity: 1; animation: steq 1s ease-in-out infinite; }
.sxtitle { font-size: 16px; font-weight: 650; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sxartist { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sxartist.none { color: var(--text-3); }
/* Back-timing: big LED digits on an unlit LED field, with a level meter. */
.sxbackbox { flex: none; width: 128px; display: flex; flex-direction: column; align-items: stretch; gap: 3px; padding: 5px 6px 6px; border-radius: 10px;
  background: radial-gradient(circle, rgba(255, 255, 255, .05) 0 30%, transparent 38%) 0 0 / 3px 3px, #08070b; box-shadow: inset 0 0 0 1px rgba(185, 162, 255, .18), inset 0 0 18px -8px rgba(0, 0, 0, .9); }
.sxbackcap { font-size: 8.5px; letter-spacing: .16em; text-transform: uppercase; color: rgba(185, 162, 255, .55); text-align: right; line-height: 1; }
.sxback { font-size: 27px; font-weight: 600; line-height: 1; text-align: right; letter-spacing: .02em; color: #d9ccff; font-variant-numeric: tabular-nums;
  text-shadow: 0 0 8px rgba(185, 162, 255, .85), 0 0 20px rgba(185, 162, 255, .35);
  -webkit-mask-image: radial-gradient(circle, #000 58%, rgba(0, 0, 0, .55) 72%); mask-image: radial-gradient(circle, #000 58%, rgba(0, 0, 0, .55) 72%);
  -webkit-mask-size: 2.5px 2.5px; mask-size: 2.5px 2.5px; }
.sxback[data-warn=soon] { color: #ffd98a; text-shadow: 0 0 8px rgba(255, 196, 77, .85), 0 0 20px rgba(255, 196, 77, .35); }
.sxback[data-warn=hot] { color: #ffb0a6; text-shadow: 0 0 8px rgba(255, 90, 79, .9), 0 0 20px rgba(255, 90, 79, .4); animation: sxhot .5s steps(1) infinite; }
@keyframes sxhot { 50% { opacity: .35; } }
.sxdeck.cur[data-state=paused] .sxback { color: #ffd98a; text-shadow: 0 0 8px rgba(255, 196, 77, .85); }
/* The level meter: 24 square LEDs, green → amber → red. */
.sxvu { display: grid; grid-template-columns: repeat(24, 1fr); gap: 1px; height: 4px; }
.sxvu i { background: #1c251e; border-radius: 1px; transition: background-color .08s; }
.sxvu i.on { background: var(--accent); box-shadow: 0 0 4px rgba(159, 232, 112, .7); }
.sxvu i:nth-child(n+17).on { background: var(--amb); box-shadow: 0 0 4px rgba(255, 196, 77, .7); }
.sxvu i:nth-child(n+22).on { background: #ff6a5a; box-shadow: 0 0 4px rgba(255, 90, 79, .8); }
/* The progress: pixel segments; ┃ marks the crossfade, amber the intro. */
.sxprog { position: relative; height: 8px; margin: 10px 0 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .08) 0 3px, transparent 3px 4px); }
.sxprog i { position: absolute; top: 0; bottom: 0; left: 0; }
.sxbar { width: 0; background: repeating-linear-gradient(90deg, var(--mu) 0 3px, transparent 3px 4px); filter: drop-shadow(0 0 4px var(--mu-glow)); transition: width .25s linear; }
.sxintro { top: auto !important; height: 2px; bottom: -4px !important; background: repeating-linear-gradient(90deg, var(--amb) 0 3px, transparent 3px 4px); opacity: .9; }
.sxmix { width: 2px; top: -3px !important; bottom: -3px !important; margin-left: -1px; border-radius: 1px; background: #fff; box-shadow: 0 0 6px rgba(255, 255, 255, .8), 0 0 10px var(--mu-glow); }
.sxdeck.cur[data-state=paused] .sxbar { background: repeating-linear-gradient(90deg, var(--amb) 0 3px, transparent 3px 4px); filter: none; }
.sxdf { display: flex; align-items: center; gap: 8px; margin-top: 7px; font-size: 11px; color: var(--text-3); min-height: 14px; }
.sxintrot { color: var(--amb); letter-spacing: .1em; text-transform: uppercase; font-weight: 600; text-shadow: 0 0 8px rgba(255, 196, 77, .5); }
.sxdeck.cur[data-state=paused] { --mu: var(--amb); }
.sxdeck.cur[data-state=paused] .sxdk { background: linear-gradient(180deg, #ffe3a8, var(--amb) 70%); color: #2a1d00; }
/* No music yet, or switched off. */
.sxdempty { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 4px 0 2px; }
.sxdemptyt { font-size: 15px; font-weight: 650; }
.sxdempts { font-size: 12.5px; color: var(--text-3); line-height: 1.35; margin-top: 1px; }
.sxdemptyb { flex: none; }
.btn.sxdbtn { color: var(--mu); border-color: rgba(185, 162, 255, .4); background: linear-gradient(rgba(185, 162, 255, .12), rgba(185, 162, 255, .04)); }
.btn.sxairbtn { color: #1a1030; border-color: transparent; background: linear-gradient(180deg, #d6c9ff, var(--mu) 65%); box-shadow: 0 0 18px -6px var(--mu-glow); }
.sxdbtn .icon { color: inherit; }
.sxdeck.cur[data-state=off] .sxdk, .sxdeck.cur[data-state=empty] .sxdk { background: var(--surface-3); color: var(--text-3); box-shadow: none; }
.sxdeck.cur[data-state=off] .sxdrole, .sxdeck.cur[data-state=empty] .sxdrole { color: var(--text-3); }
/* The next deck: one line, its readiness at the right of the head. */
.sxnrow { display: flex; align-items: center; gap: 6px; margin-top: 6px; min-height: 34px; }
.sxnmain { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.sxnrow .sxtitle { font-size: 14.5px; font-weight: 600; min-width: 0; }
.sxnsub { flex: none; font-size: 11.5px; color: var(--text-3); white-space: nowrap; max-width: 45%; overflow: hidden; text-overflow: ellipsis; }
.sxnrow .iconbtn.sm { width: 32px; height: 32px; color: var(--text-2); }
.sxnrow .iconbtn.sm:disabled { opacity: .3; }
.sxdeck.next[data-ready="1"] .sxdk { color: var(--accent); background: var(--accent-dim); box-shadow: inset 0 0 0 1px var(--accent-line); }
.sxdeck.next.locked .sxdk { color: var(--amb); background: rgba(255, 196, 77, .1); box-shadow: inset 0 0 0 1px rgba(255, 196, 77, .4); }
.sxdeck.next.none .sxtitle { color: var(--text-3); font-weight: 500; font-size: 13px; }
/* The outgoing deck in a crossfade: its fader falls. */
.sxdeck.next.out .sxdrole { color: var(--amb); }
.sxfader { flex: none; width: 96px; height: 10px; padding: 1px; border-radius: 3px; background: #0b0a0e; box-shadow: inset 0 0 0 1px rgba(185, 162, 255, .2); }
.sxfader i { display: block; height: 100%; width: 100%; background: repeating-linear-gradient(90deg, var(--mu) 0 3px, transparent 3px 4px); transition: width .2s linear; }
.sxfpct { flex: none; width: 40px; text-align: right; font-size: 11.5px; color: var(--text-2); }

/* ---------- the transport ---------- */
.sxtrans { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 12px 0 10px; }
.sxtrans .stbtn { width: 44px; height: 44px; }
.sxtrans .stbtn.main { width: 58px; height: 58px; color: #1a1030; background: linear-gradient(180deg, #d6c9ff, var(--mu) 65%); border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 0 22px -6px var(--mu-glow); }
.sxtrans .stbtn.main.paused { background: linear-gradient(180deg, #ffe3a8, var(--amb) 65%); color: #2a1d00; box-shadow: 0 0 22px -6px rgba(255, 196, 77, .6); }
.sxtrans .stbtn:disabled { opacity: .35; cursor: default; transform: none; }
.stbtn.sxfade { width: auto !important; padding: 0 14px 0 11px; border-radius: 22px; gap: 6px; display: inline-flex; align-items: center;
  font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--mu); border-color: rgba(185, 162, 255, .4); background: rgba(185, 162, 255, .08); }
.stbtn.sxstop:not(:disabled) { color: #ff9d94; }
/* «STOP AFTER» and the crossfade length. */
.sxxf { display: flex; align-items: center; gap: 8px; }
.sxstopafter { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 11px; border-radius: 12px; font-size: 10.5px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); background: var(--sheen), var(--surface); border: 1px solid var(--line); white-space: nowrap; }
.sxstopafter.on { color: var(--amb); border-color: rgba(255, 196, 77, .5); background: rgba(255, 196, 77, .09); box-shadow: 0 0 16px -8px rgba(255, 196, 77, .7); }
.sxstopafter.on .sxled { background: var(--amb); box-shadow: 0 0 6px var(--amb); }
.sxstopafter:active { transform: var(--press); }
.seg.sxxfseg { flex: 1; min-width: 0; margin: 0; padding: 2px; gap: 1px; align-items: center; }
.sxxfseg button { height: 30px; min-width: 0; padding: 0 2px; font: 600 12px var(--mono); }
.sxxfseg button.on { color: var(--mu); box-shadow: inset 0 0 0 1px rgba(185, 162, 255, .5), 0 4px 12px -8px var(--mu-glow); }
.sxxfi { flex: none; display: grid; place-items: center; width: 22px; color: var(--text-3); }

/* ---------- the tabs ---------- */
.sxtabs { position: sticky; top: 0; z-index: 3; margin: 12px -12px 0; padding: 8px 12px 6px; background: linear-gradient(#0b0e0c 80%, rgba(11, 14, 12, 0)); }
.sxtabs .wseg button { font-size: 13.5px; gap: 5px; padding: 0 2px; }
.sxtabn { font-size: 10.5px; color: var(--text-3); }
.sxtabn:empty { display: none; }
.sxtabs .wseg button.on .sxtabn { color: var(--accent); }
.sxtabs .wseg button.hot .sxtabn { color: var(--amb); }
.sxbody { padding-top: 6px; }

/* ---------- the pads ---------- */
.sxpads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sxpad { --pc: #9fe870; --pcg: 159, 232, 112; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 5px; min-height: 88px; padding: 8px 9px 7px;
  border-radius: 14px; text-align: left; color: var(--pc); touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  background: linear-gradient(rgba(var(--pcg), .11), rgba(var(--pcg), .035)), #0d100e; border: 1px solid rgba(var(--pcg), .32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 2px 8px -6px rgba(0, 0, 0, .8);
  transition: transform .1s var(--ease), border-color .15s, box-shadow .2s, opacity .2s; }
.sxpad[data-color=ice] { --pc: #8cd8ff; --pcg: 140, 216, 255; }
.sxpad[data-color=violet] { --pc: #c4a6ff; --pcg: 196, 166, 255; }
.sxpad[data-color=amber] { --pc: #ffc44d; --pcg: 255, 196, 77; }
.sxpad[data-color=red] { --pc: #ff7a6b; --pcg: 255, 122, 107; }
.sxpad[data-color=pink] { --pc: #ff3fd8; --pcg: 255, 63, 216; }
.sxpad:active { transform: scale(.96); }
.sxpad > * { position: relative; z-index: 1; }
.sxfill { position: absolute !important; z-index: 0 !important; left: 0; top: 0; bottom: 0; width: 0; background: rgba(var(--pcg), .35); box-shadow: 2px 0 10px -2px rgba(var(--pcg), .7); }
.sxptop { display: flex; align-items: flex-start; gap: 4px; }
.sxpic { width: 24px; height: 24px; flex: none; display: grid; place-items: center; filter: drop-shadow(0 0 4px rgba(var(--pcg), .55)); }
.sxnum { font-size: 10.5px; color: rgba(var(--pcg), .55); line-height: 1; padding-top: 2px; }
.sxduck { font-size: 11px; line-height: 1; color: rgba(var(--pcg), .75); padding-top: 1px; }
.sxpname { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; line-height: 1.25; color: var(--pc); text-shadow: 0 0 8px rgba(var(--pcg), .45);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: auto; }
.sxpfoot { display: flex; align-items: center; gap: 6px; min-height: 13px; }
.sxpms { font-size: 10.5px; color: rgba(var(--pcg), .6); }
.sxdots { display: none; gap: 3px; }
.sxdots i { width: 4px; height: 4px; border-radius: 1px; background: var(--pc); box-shadow: 0 0 4px var(--pc); animation: blink .9s ease-in-out infinite; }
.sxdots i:nth-child(2) { animation-delay: .15s; }
.sxdots i:nth-child(3) { animation-delay: .3s; }
.sxpad[data-state=loading] { opacity: .6; }
.sxpad[data-state=loading] .sxdots { display: inline-flex; }
.sxpad[data-state=loading] .sxpms { display: none; }
.sxpad[data-state=armed] { border-color: var(--pc); box-shadow: inset 0 0 0 1px var(--pc), 0 0 18px -6px rgba(var(--pcg), .8); }
.sxpad[data-state=playing] { border-color: var(--pc); box-shadow: inset 0 0 0 1px rgba(var(--pcg), .8), 0 0 24px -6px rgba(var(--pcg), .9); }
.sxpad[data-state=playing] .sxpms { color: var(--pc); font-weight: 600; }
.sxpad.empty { color: var(--text-3); border: 1px dashed var(--line-2); background: rgba(255, 255, 255, .015); box-shadow: none; }
.sxpad.empty .sxpname, .sxpad.empty .sxnum { color: var(--text-3); text-shadow: none; }
.sxplus { font-size: 20px; line-height: 1; color: var(--text-3); }
.sxpad.missing { border-style: dashed; border-color: rgba(255, 196, 77, .55); opacity: .75; }
.sxpad.missing .sxpms { color: var(--amb); }
/* Pre-listen: dashed ice frames, nothing goes on air. */
.sxpadtab.pfl .sxpad:not(.empty) { border-style: dashed; border-color: rgba(140, 216, 255, .7); box-shadow: none; }
.sxpadtab.editing .sxpad:not(.empty) { border-style: dashed; }
.sxpadtab.editing .sxpad::after { content: "✎"; position: absolute; right: 7px; bottom: 5px; z-index: 1; font-size: 12px; color: var(--text-2); }
.sxpadbar { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.btn.sxstoppads { color: #ff9d94; border-color: rgba(224, 87, 79, .3); background: rgba(224, 87, 79, .07); }
.sxpflb { flex: 1; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 10px; border-radius: 11px;
  font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); background: var(--sheen), var(--surface-2); border: 1px solid var(--line); }
.sxpflb .sxled { margin-left: 2px; }
.sxpflb.on { color: var(--ice); border-color: rgba(140, 216, 255, .5); background: rgba(140, 216, 255, .08); box-shadow: 0 0 14px -8px var(--ice-glow); }
.sxpflb.on .sxled { background: var(--ice); box-shadow: 0 0 6px var(--ice); }
.sxpflb:active { transform: var(--press); }
.iconbtn.sxeditb { width: 34px; height: 34px; border-radius: 11px; }

/* ---------- the board tab ---------- */
.sxbig .oaboard { margin: 0; }
.sxbiglt { color: var(--amb); }
.btn.sxclearb { margin-top: 8px; color: #ff9d94; border-color: rgba(224, 87, 79, .3); background: rgba(224, 87, 79, .07); }
.sxquick { --bng: 159, 232, 112; display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 16px; background: var(--sheen), var(--surface); border: 1px solid var(--line);
  border-left: 3px solid rgba(var(--bng), .7); transition: border-color .2s; }
.sxquick[data-level=warn] { --bng: 255, 196, 77; }
.sxquick[data-level=alarm] { --bng: 255, 90, 79; }
.sxqline { display: flex; gap: 8px; align-items: stretch; }
.sxqline textarea { flex: 1; min-width: 0; min-height: 64px; font-size: 14px; }
.btn.sxgo { flex: none; height: auto; min-height: 64px; width: 72px; padding: 0 8px; flex-direction: column; gap: 3px; border-radius: 14px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.btn.sxgo .icon { color: inherit; }
.sxquick .seg { margin: 0; }
.sxquick .bnseg button { height: 30px; font-size: 12.5px; }
.sxlv .bnseg button:nth-child(2).on { color: var(--amb); box-shadow: inset 0 0 0 1px rgba(255, 196, 77, .5); }
.sxlv .bnseg button:nth-child(3).on { color: #ff8a7d; box-shadow: inset 0 0 0 1px rgba(255, 90, 79, .55); }
.sxqfoot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sxqfoot > .sxlabel, .sxqfoot > .bnlabel { margin: 0; }
.sxchimeslot { flex: 1 1 120px; min-width: 0; display: flex; }
.sxchime { flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 9px 0 7px; border-radius: 10px; font-size: 13px; color: var(--amb);
  background: rgba(255, 196, 77, .06); border: 1px solid rgba(255, 196, 77, .3); text-align: left; }
.sxchime .grow { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sxchime > .icon:last-child { color: var(--text-3); }
.sxcheck { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.sxcheck .stcheck { margin: 0; accent-color: var(--hot); }
/* Presets: a tap airs one; its level colours the left edge. */
.sxpres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sxpres .sxempty { grid-column: 1 / -1; }
.sxpre { --bng: 159, 232, 112; position: relative; display: flex; flex-direction: column; gap: 5px; min-height: 58px; padding: 9px 10px; border-radius: 13px; text-align: left; overflow: hidden;
  background: linear-gradient(rgba(var(--bng), .07), rgba(var(--bng), .02)), var(--surface); border: 1px solid rgba(var(--bng), .25); border-left: 3px solid rgb(var(--bng));
  touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: transform .1s var(--ease), box-shadow .2s; }
.sxpre[data-level=warn] { --bng: 255, 196, 77; }
.sxpre[data-level=alarm] { --bng: 255, 90, 79; }
.sxpre[data-level=vip] { --bng: 255, 207, 90; }
.sxpre[data-kind=vip]::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--pal, linear-gradient(90deg, #ffcf5a, #ff9f1c)); }
.sxpre:active { transform: scale(.97); }
.sxprel { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: rgb(var(--bng)); text-shadow: 0 0 8px rgba(var(--bng), .4);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sxpres2 { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-3); }
.sxpres2 .grow { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sxpre.flash { animation: sxflash .7s ease-out; }
@keyframes sxflash { 0%, 30% { box-shadow: 0 0 0 1px rgb(var(--bng)), 0 0 26px -2px rgba(var(--bng), .9); background-color: rgba(var(--bng), .25); } }
.sximports { display: flex; gap: 8px; margin-top: 10px; }
.sximports .btn { flex: 1; min-width: 0; padding: 0 8px; }
.sximports .btn .icon { color: var(--amber); }
.sxlook { display: flex; flex-direction: column; gap: 10px; }
.sxlook .seg { margin: 0; }
.sxpals { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.sxpal { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 7px 3px 6px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface-2); font-size: 11px; color: var(--text-2); min-width: 0; }
.sxpal i { width: 100%; height: 10px; border-radius: 5px; }
.sxpal span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sxpal.on { border-color: var(--accent-line); color: var(--text); box-shadow: inset 0 0 0 1px var(--accent-line), 0 0 12px -6px var(--accent-glow); }
.sxboardtab .card.group { margin-top: 14px; }

/* ---------- the queue ---------- */
.sxqnext { padding: 2px 10px 6px; margin-top: 4px; border-radius: 16px; background: linear-gradient(180deg, #16131c, #111014); border: 1px solid rgba(185, 162, 255, .25); }
.sxqnext .sxsec { margin: 8px 0 2px; }
.sxqnext .sxsec .mono { font-size: 11px; color: var(--text-2); }
.sxlocked { display: inline-flex; align-items: center; gap: 4px; color: var(--amb) !important; letter-spacing: .06em; }
.sxqlist { display: flex; flex-direction: column; }
.sxqrow { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 2px; border-bottom: 1px solid var(--line); }
.sxqrow:last-child { border-bottom: 0; }
.sxqrow .title { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sxqrow .sub { font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sxqrow .dim { font-size: 11.5px; flex: none; }
.sxqrow.next .title { color: var(--mu); }
.sxqrow.head .sxqn { color: var(--mu); background: rgba(185, 162, 255, .12); }
.sxqn { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 8px; font-size: 12px; color: var(--text-3); background: var(--surface-2); }
.sxqrow.next .sxqn { color: var(--mu); background: rgba(185, 162, 255, .12); }
.sxord { display: flex; gap: 2px; flex: none; }
.sxord .iconbtn.sm { width: 30px; height: 30px; }
.sxord .iconbtn:disabled { opacity: .25; }
.sxord .sxdel { color: var(--danger); }
.sxqueuetab .card.group { margin-top: 2px; }

/* ---------- the library ---------- */
.sxup { padding: 12px; }
.sxupbtns { display: flex; gap: 8px; }
.sxupbtns .btn { flex: 1; min-width: 0; }
.sxupbtns .btn .icon { color: inherit; }
.btn.sxupjingle { color: var(--ice); border-color: rgba(140, 216, 255, .4); background: linear-gradient(rgba(140, 216, 255, .1), rgba(140, 216, 255, .03)); }
.sxtracks .row { min-height: 54px; gap: 9px; padding: 7px 2px; }
.sxtr .title { font-size: 14px; }
.sxtr .sub { font-size: 12px; display: flex; align-items: center; gap: 6px; }
.sxsubt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sxtr.onair { background: rgba(185, 162, 255, .07); border-radius: 12px; padding-left: 4px; padding-right: 4px; }
.sxtr.onair .title { color: var(--mu); }
.sxtr.pfl { background: rgba(140, 216, 255, .06); border-radius: 12px; }
.sxtrn { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 9px; background: var(--surface-2); font-size: 11.5px; color: var(--text-3); }
.sxtrn .steq { width: 32px; height: 32px; padding: 7px 6px; }
.sxtr.onair .steq i { opacity: 1; animation: steq 1s ease-in-out infinite; }
.sxtr.jingle .sxtrn { background: rgba(140, 216, 255, .08); }
.sxtag { flex: none; font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mu); padding: 1px 5px; border-radius: 5px; background: rgba(185, 162, 255, .1); }
.sxloud { flex: none; display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; color: var(--text-2); }
.sxloud b { color: var(--accent); font-weight: 600; }
.sxloud.warn { color: var(--amb); }
.sxtr .iconbtn.sm { width: 32px; height: 32px; flex: none; }
.sxpflt { color: var(--ice); }
.sxpflt.on { color: var(--ice); border-color: rgba(140, 216, 255, .5); background: rgba(140, 216, 255, .1); }
.sxmore { color: var(--text-2); }
.btn.sxlevel { margin-top: 8px; color: var(--accent); }
.btn.sxlevel .icon { color: inherit; }

/* ---------- the dock: the dip under a voice, the talk timer, the microphone ---------- */
.sxdock { flex: none; padding: 8px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #0c0f0d; }
.sxdrow { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; min-height: 30px; }
.seg.sxduckseg { margin: 0; padding: 2px; gap: 1px; align-items: center; }
.sxduckseg button { flex: none; width: 36px; height: 26px; font: 600 11.5px var(--mono); }
.sxdb { font-size: 10.5px; color: var(--text-3); padding: 0 5px 0 3px; }
.sxdrow .sxlabel { letter-spacing: .07em; }
.sxtalk { flex: none; display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; color: var(--text-3); letter-spacing: .02em; white-space: nowrap; }
.sxtalk.on { color: #ff9d94; text-shadow: 0 0 8px rgba(224, 87, 79, .6); }
.sxtalk.late { animation: blink 1s steps(1) infinite; }
.sxmvu { display: inline-flex; gap: 1px; align-items: flex-end; height: 12px; opacity: .35; transition: opacity .2s; }
.sxmvu.on { opacity: 1; }
.sxmvu i { width: 3px; border-radius: 1px; background: #1c251e; }
.sxmvu i:nth-child(1) { height: 4px; } .sxmvu i:nth-child(2) { height: 5px; } .sxmvu i:nth-child(3) { height: 6px; } .sxmvu i:nth-child(4) { height: 7px; }
.sxmvu i:nth-child(5) { height: 8px; } .sxmvu i:nth-child(6) { height: 9px; } .sxmvu i:nth-child(7) { height: 10px; } .sxmvu i:nth-child(8) { height: 12px; }
.sxmvu i.on { background: var(--accent); box-shadow: 0 0 4px var(--accent-glow); }
.sxmvu i:nth-child(n+7).on { background: var(--amb); }
/* The air chain while the presenter talks: HD or 16k, compression, clip. */
.sxhd, .sxgr, .sxclip { flex: none; font-size: 10.5px; letter-spacing: .04em; white-space: nowrap; border-radius: 4px; padding: 1px 4px; }
.sxhd { color: var(--text-3); border: 1px solid var(--line, rgba(255,255,255,.14)); }
.sxhd.on { color: var(--accent); border-color: var(--accent); box-shadow: 0 0 6px var(--accent-glow); }
.sxgr { color: var(--text-3); }
.sxgr.hot { color: var(--amb); }
.sxdrow.air > .sxlabel { display: none; }
.sxclip { color: #fff; background: #d8473f; box-shadow: 0 0 8px rgba(216, 71, 63, .7); font-weight: 700; }
.sxdock .wrow3 { gap: 10px; }
.wround.sxmon.off { color: var(--text-3); }
.wround.sxfx { color: var(--ice); }
.wptt.sxmic { height: 58px; border-radius: 29px; }
.sxmicl { display: inline-flex; align-items: center; justify-content: center; gap: 10px; max-width: 100%; padding: 0 12px; }
.sxmicic { flex: none; display: grid; color: var(--accent); }
.sxmicw { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; line-height: 1.15; }
.sxmicw b { font-size: 14.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.sxmicw small { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
/* A hot microphone is red, as the lamp; someone else on air is ice. */
.studiox .wptt.sxmic[data-state=transmitting] { border-color: var(--hot); color: #fff3f1; background: radial-gradient(120% 140% at 50% 30%, #3a1714, #1a0c0b 70%);
  box-shadow: 0 0 0 6px rgba(224, 87, 79, .12), 0 0 44px -6px rgba(224, 87, 79, .75); animation: sxmichot 1.8s ease-in-out infinite; }
.studiox .wptt.sxmic[data-state=transmitting] .sxmicic { color: #ff8a7d; }
.studiox .wptt.sxmic[data-state=transmitting] small { color: #ffb0a6; }
@keyframes sxmichot { 50% { box-shadow: 0 0 0 9px rgba(224, 87, 79, .16), 0 0 56px -4px rgba(224, 87, 79, .9); } }
.studiox .wptt.sxmic[data-state=requesting] { border-color: var(--hot); color: #ffb0a6; background: radial-gradient(120% 140% at 50% 30%, #2a1514, #140d0c 70%); box-shadow: none; }
.studiox .wptt.sxmic[data-state=requesting] .sxmicic { color: inherit; }
.studiox .wptt.sxmic[data-state=busy] { border-color: rgba(140, 216, 255, .6); color: var(--ice); background: radial-gradient(120% 140% at 50% 30%, #121c22, #0c1114 70%); box-shadow: none; }
.studiox .wptt.sxmic[data-state=busy] .sxmicic, .studiox .wptt.sxmic[data-state=busy] small { color: inherit; }
.studiox .wptt.sxmic[data-state=busy] small { opacity: .8; }
.studiox .wptt.sxmic[data-state=turn] .sxmicic { color: var(--amber); }
.studiox .wptt.sxmic[data-state=unavailable] { border-color: #2b332e; color: var(--text-3); box-shadow: none; }
.studiox .wptt.sxmic[data-state=away] { border-color: rgba(159, 232, 112, .4); box-shadow: none; }
.studiox .wptt.sxmic[data-state=unavailable] .sxmicic { color: inherit; }
.btn.sxcut { flex: none; height: 50px; border-radius: 25px; padding: 0 14px; color: #ff9d94; border-color: rgba(224, 87, 79, .45); background: rgba(224, 87, 79, .1); }
.btn.sxcut .icon { color: inherit; }
/* A narrow phone: «Cut in» without its icon, so «AIR BUSY» fits the microphone. */
@media (max-width: 389px) { .btn.sxcut { padding: 0 10px; } .btn.sxcut .icon { display: none; } }

/* ---------- sheets ---------- */
.sxflabel { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--text-2); }
.sxcountin, .sxval { font-size: 11px; color: var(--text-3); }
.sxval { font-size: 12px; color: var(--accent); }
/* The pad's editor: its tile on top, the sounds as a grid of pixel icons. */
.sxpadhead { display: flex; align-items: center; gap: 14px; }
.sxpad.sxpadprev { width: 118px; flex: none; pointer-events: none; }
.sxsnds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.sxjgls { display: flex; flex-direction: column; gap: 6px; }
.sxsnd { --pc: #9fe870; --pcg: 159, 232, 112; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; min-height: 70px; padding: 8px 3px 6px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text-2); font-size: 11px; line-height: 1.15; text-align: center;
  transition: transform .1s var(--ease), border-color .15s, background-color .15s; }
.sxsnd[data-color=ice] { --pc: #8cd8ff; --pcg: 140, 216, 255; }
.sxsnd[data-color=violet] { --pc: #c4a6ff; --pcg: 196, 166, 255; }
.sxsnd[data-color=amber] { --pc: #ffc44d; --pcg: 255, 196, 77; }
.sxsnd[data-color=red] { --pc: #ff7a6b; --pcg: 255, 122, 107; }
.sxsnd[data-color=pink] { --pc: #ff3fd8; --pcg: 255, 63, 216; }
.sxsnd img { filter: drop-shadow(0 0 3px rgba(var(--pcg), .5)); }
.sxsnd span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 10.5px; letter-spacing: -.01em; hyphens: auto; -webkit-hyphens: auto; }
.sxsnd small { font-size: 10px; color: var(--text-3); }
.sxsnd:active { transform: scale(.95); }
.sxsnd.on { color: var(--pc); border-color: var(--pc); background: rgba(var(--pcg), .1); box-shadow: inset 0 0 0 1px var(--pc), 0 0 14px -6px rgba(var(--pcg), .8); font-weight: 600; }
.sxsnd.wide { flex-direction: row; min-height: 44px; padding: 6px 12px; gap: 10px; text-align: left; font-size: 13px; }
.sxsnd.wide span { flex: 1; -webkit-line-clamp: 1; font-size: 13px; letter-spacing: 0; }
.btn.sxclearpad { align-self: flex-start; }
.sxcolors { display: flex; gap: 10px; }
.sxcolors button { width: 34px; height: 34px; border-radius: 10px; border: 2px solid transparent; background: var(--c); box-shadow: 0 0 12px -6px var(--c); }
.sxcolors button[data-color=green] { --c: #9fe870; }
.sxcolors button[data-color=ice] { --c: #8cd8ff; }
.sxcolors button[data-color=violet] { --c: #c4a6ff; }
.sxcolors button[data-color=amber] { --c: #ffc44d; }
.sxcolors button[data-color=red] { --c: #ff7a6b; }
.sxcolors button[data-color=pink] { --c: #ff3fd8; }
.sxcolors button.on { border-color: #fff; box-shadow: inset 0 0 0 2px var(--surface), 0 0 16px -4px var(--c); }
.sxpadsheet .sxsec, .sxpresheet .sxsec { margin: 8px 2px 0; }
.sxpadsheet .fxrange { margin-top: -6px; }
/* The preset's editor: the board on top, sticky. */
.sxpvboard { position: sticky; top: -10px; z-index: 3; margin: -2px -16px 0; padding: 2px 16px 8px; background: var(--surface); }
.sxpvboard .oaboard { margin: 0; }
.sxpresheet .bnlabel { margin-bottom: -2px; }
.sxpresheet .seg { margin: 0; }
.sxprefoot .btn.danger { flex: none; width: 46px; padding: 0; }
.sxprefoot .btn .icon { color: inherit; }
/* The show. */
.sxlivebox { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 16px; border: 1px solid rgba(159, 232, 112, .45); background: linear-gradient(180deg, #131b15, #101411);
  box-shadow: 0 0 30px -16px var(--accent-glow); }
.sxlivebox .sxlabel { color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.sxlivet { font-size: 18px; font-weight: 650; }
.sxlivebox .sxhint { margin: 0; }
.sxlivebox .btn .icon { color: inherit; }
.sxlivebox .hstack { flex-wrap: wrap; }
.sxslot .sxslottime { width: 92px; flex: none; font-size: 12px; color: var(--text-2); }
.sxslot.now .sxslottime { color: var(--accent); }
.livedot.dark { background: var(--accent-ink); box-shadow: none; }
.btn.sxgolive { gap: 9px; }
/* The programme. */
.sxshowrow { gap: 10px; }
.sxshowrow.bad { background: rgba(224, 87, 79, .08); border-radius: 12px; box-shadow: inset 3px 0 0 var(--danger); }
.sxdays { width: 76px; flex: none; font-size: 11px; color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sxshowrow .chev { color: var(--text-3); display: grid; }
.sxdaychips { display: flex; gap: 5px; flex-wrap: wrap; }
.sxdaychips .pill { padding: 0 11px; }
.sxtwo { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; align-items: start; }
.sxtwo .seg { margin: 0; flex-wrap: wrap; }
.sxtwo .bnseg button { flex: 1 0 auto; padding: 0 6px; font-size: 12px; }
.sxtwo input[type=number] { margin-top: 6px; }
.sxprog2.shake { animation: kpshake .3s; }
/* The calls. */
.sxonair { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; border: 1px solid rgba(140, 216, 255, .4); background: rgba(140, 216, 255, .06); }
.sxonair b { font-size: 15px; }
.sxonairic { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--ice); background: rgba(140, 216, 255, .12); animation: cdot 1.4s ease-in-out infinite; }
.sxhand { gap: 10px; }
.sxhandic { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--amb); background: rgba(255, 196, 77, .1); }
.sxhandic.on { color: var(--ice); background: rgba(140, 216, 255, .1); }
.sxhand .btn .icon { color: inherit; }
/* The settings. */
.sxsethead { display: flex; align-items: center; gap: 12px; margin: -4px 0 2px; }
/* Sheets live in #app, outside .studiox: the name shrinks here with its «…». */
.sxsethead > .grow { flex: 1; min-width: 0; }
.sxsetname { font-size: 19px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sxsethead .sxhint { margin: 2px 0 0; }
.sxset .stseg { flex-wrap: nowrap; }
.sxset .stseg button { padding: 0 2px; font-size: 12.5px; }
/* Which pad a jingle goes on. */
.sxslots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sxslotb { --pcg: 159, 232, 112; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 60px; padding: 8px 9px; border-radius: 12px; text-align: left;
  border: 1px solid rgba(var(--pcg), .3); background: rgba(var(--pcg), .05); font-size: 12px; color: var(--text-2); }
.sxslotb[data-color=""] { --pcg: 108, 117, 112; border-style: dashed; }
.sxslotb[data-color=ice] { --pcg: 140, 216, 255; }
.sxslotb[data-color=violet] { --pcg: 196, 166, 255; }
.sxslotb[data-color=amber] { --pcg: 255, 196, 77; }
.sxslotb[data-color=red] { --pcg: 255, 122, 107; }
.sxslotb[data-color=pink] { --pcg: 255, 63, 216; }
.sxslotb .sxnum { color: rgb(var(--pcg)); font-size: 11px; }
.sxslotn { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sxslotb:active { transform: scale(.96); }

@media (max-width: 370px) {
  .sxmvu, .sxgr { display: none; }
  .sxmicw small { letter-spacing: .03em; }
  .sxbackbox { width: 112px; }
  .sxback { font-size: 23px; }
  .sxlamp { padding: 0 7px; letter-spacing: .08em; }
  .sxtrans { gap: 7px; }
  .stbtn.sxfade { padding: 0 10px 0 8px; }
  .sxpname { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .sxlamp, .sxlamp i, .sxback, .sxtalk, .sxdots i, .sxonairic, .sxbclock i, .studiox .wptt.sxmic[data-state=transmitting], .sxdeck .steq i, .sxtr .steq i { animation: none !important; }
  .sxbar, .sxfader i, .sxfill, .sxpad, .sxpre { transition: none !important; }
  .sxpre.flash { animation: none; }
}
/* Energy saving (app.css) stills the same, but for the dots of a pad still
   loading. The transitions stay. */
:where(:root.eco) .sxlamp, :where(:root.eco) .sxlamp i, :where(:root.eco) .sxback, :where(:root.eco) .sxtalk, :where(:root.eco) .sxonairic,
:where(:root.eco) .sxbclock i, :where(:root.eco) .studiox .wptt.sxmic[data-state=transmitting], :where(:root.eco) .sxdeck .steq i, :where(:root.eco) .sxtr .steq i { animation: none !important; }
:where(:root.eco) .sxpre.flash { animation: none; }

/* The chat tab: listeners' requests and the wave's chat. */
.sxreqs .sxreq { align-items: flex-start; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.sxreqs .sxreq:last-child { border-bottom: 0; }
.sxreq .sxreqtext { white-space: normal; font-weight: 600; font-size: 14px; line-height: 1.35; margin: 2px 0; overflow-wrap: anywhere; }
.sxreq .sub b { color: var(--text); font-weight: 600; }
.sxreq[data-state=new] { box-shadow: inset 3px 0 0 var(--amb); padding-left: 10px; }
.sxreq[data-state=declined] .sxreqtext, .sxreq[data-state=done] .sxreqtext { color: var(--text-3); font-weight: 500; }
.sxreqstate { color: var(--accent); }
.sxreq[data-state=declined] .sxreqstate { color: var(--text-3); }
.sxreqacts { flex: none; display: flex; align-items: center; gap: 4px; }
.sxreqquote { font-size: 14px; color: var(--text-2); line-height: 1.4; overflow-wrap: anywhere; }
.sxmsgs { max-height: 320px; min-height: 90px; overflow-y: auto; overscroll-behavior: contain; padding: 6px 2px; display: flex; flex-direction: column; gap: 6px; }
.sxmsg { font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.sxmsgwho { font-weight: 700; color: var(--ice, #7fd8ff); }
.sxmsg.mine .sxmsgwho { color: var(--accent); }
.sxmsg.gone .sxmsgtext { color: var(--text-3); font-style: italic; }
.sxmsgat { margin-left: 6px; font-size: 10.5px; color: var(--text-3); }
.sxchatform { display: flex; align-items: flex-end; gap: 8px; margin-top: 8px; }
.sxchatin { flex: 1; min-width: 0; resize: none; max-height: 120px; min-height: 40px; padding: 9px 12px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--text); font: inherit; font-size: 15px; }
.sxchatsend { flex: none; }
.sxlog .aolrow { min-height: 48px; }
