/* KREW.RAIDIO: the KREW brand template. #060A0F, teal #00FFB2 for the active state only, IBM Plex, no border-radius,
   no emoji. Teal appears only on .on, [aria-pressed=true], .now and the beat that is sounding. */
:root {
  --bg: #060A0F; --panel: #0C1218; --line: #1C2630; --fg: #F2F4F5; --mute: #8A949C; --teal: #00FFB2; --amber: #FFB800;
  --mono: "IBM Plex Mono", "Courier New", monospace; --sans: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; border-radius: 0 !important; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.45 var(--sans); }
body { padding: env(safe-area-inset-top) 0 calc(84px + env(safe-area-inset-bottom)); min-height: 100vh; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, .wordmark, .tab, .seg, .btn, .tag, .ai, .d, .n, .times, .big { font-family: var(--mono); letter-spacing: .02em; }
h2 { font-size: 15px; font-weight: 600; margin: 18px 16px 8px; }
h3 { font-size: 13px; font-weight: 600; margin: 20px 0 8px; color: var(--mute); }
.mute { color: var(--mute); } .small { font-size: 12px; } .pad { padding: 0 16px; } .err { color: var(--amber); min-height: 1.4em; }
.splash { font: 500 18px var(--mono); text-align: center; margin-top: 40vh; }
.wordmark { font-weight: 600; font-size: 16px; }
#top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
#top:empty { display: none; }
#top .modes { margin-left: auto; display: flex; }
.btn, .seg, .tab, .ico, .link { background: none; border: 1px solid var(--line); padding: 8px 12px; cursor: pointer; }
.btn.primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn.ghost { border-color: transparent; color: var(--mute); }
.link { border: 0; padding: 0; color: var(--fg); text-decoration: underline; }
.seg + .seg { border-left: 0; }
.on, [aria-pressed="true"] { color: var(--teal) !important; border-color: var(--teal) !important; }
.tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); }
.tab { border: 0; border-bottom: 2px solid transparent; padding: 12px 9px; font-size: 13px; color: var(--mute); white-space: nowrap; flex: 1 0 auto; }
.tab.on { border-bottom-color: var(--teal); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); cursor: pointer; }
.list li.now b { color: var(--teal); }
.list .n { width: 24px; color: var(--mute); font-size: 12px; text-align: right; }
.list .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.list .t b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .t small { color: var(--mute); }
.list .d { color: var(--mute); font-size: 12px; }
.ico { border: 0; padding: 8px; min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; font: 12px var(--mono); }
.ico svg { width: 22px; height: 22px; fill: currentColor; }
.ico.big svg { width: 34px; height: 34px; }
.ai { font-size: 10px; border: 1px solid var(--mute); color: var(--mute); padding: 0 4px; margin-left: 4px; }
.tag { font-size: 10px; color: var(--mute); margin-left: 8px; }
.signin { max-width: 380px; margin: 14vh auto 0; padding: 0 16px; }
.signin form, .party label, .sheet form { display: flex; flex-direction: column; gap: 10px; }
label { display: flex; flex-direction: column; gap: 4px; font: 12px var(--mono); color: var(--mute); }
input:not([type=range]) { background: var(--panel); border: 1px solid var(--line); padding: 10px; color: var(--fg); }
input:focus-visible, button:focus-visible { outline: 1px solid var(--fg); outline-offset: 1px; }
#mini { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; align-items: center; gap: 12px; padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); background: var(--panel); border-top: 1px solid var(--line); cursor: pointer; }
#mini img, #mini .noart { width: 48px; height: 48px; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; background: var(--line); font: 600 18px var(--mono); }
#mini .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#mini b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
#mini small { color: var(--mute); }
#full { position: fixed; inset: 0; z-index: 8; background: var(--bg); overflow-y: auto; padding: calc(12px + env(safe-area-inset-top)) 20px 40px; }
#full .art { width: min(78vw, 420px); aspect-ratio: 1; margin: 12px auto 18px; background: var(--panel); display: flex; align-items: center; justify-content: center; }
#full .art img { width: 100%; height: 100%; object-fit: cover; }
#full .noart { font: 600 22px var(--mono); }
#full h2 { margin: 0; font-size: 20px; } #full p { margin: 6px 0; }
#full .controls { display: flex; justify-content: space-between; max-width: 420px; margin: 8px auto; }
#full .row2 { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 12px 0; }
#hostcard { border: 1px solid var(--line); padding: 10px; margin: 10px 0; }
input[type=range] { width: 100%; accent-color: var(--fg); margin: 14px 0 0; }
.times { display: flex; justify-content: space-between; color: var(--mute); font-size: 12px; }
#sheet { position: fixed; inset: 0; z-index: 9; background: rgba(6, 10, 15, .92); overflow-y: auto; }
.sheet { max-width: 560px; margin: 0 auto; padding: calc(12px + env(safe-area-inset-top)) 16px 40px; }
.sheet header { display: flex; align-items: center; justify-content: space-between; }
.sheet header h2 { margin: 0; }
.sheet .actions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.sheet dl dt { font: 12px var(--mono); color: var(--mute); margin-top: 10px; } .sheet dl dd { margin: 2px 0 0; white-space: pre-wrap; }
.seggroup { display: flex; flex-wrap: wrap; }
.live .big { font-size: 28px; margin: 16px 0 8px; }
.beats { display: flex; gap: 8px; } .beats span { width: 40px; height: 40px; border: 1px solid var(--line); } .beats span.on { background: var(--teal); border-color: var(--teal); }
#toast { position: fixed; left: 16px; right: 16px; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 10; background: var(--fg); color: var(--bg); padding: 10px 12px; font: 13px var(--mono); }
@media (min-width: 900px) { #view { max-width: 900px; margin: 0 auto; } }
