@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --bg: #080b0f;
  --bg-2: #0d1117;
  --panel: rgba(18, 23, 30, 0.94);
  --panel-strong: #141a21;
  --panel-soft: #10151b;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f6f4;
  --muted: #89929d;
  --dim: #616b76;
  --accent-a: #c7ff43;
  --accent-a-rgb: 199, 255, 67;
  --accent-b: #ff5f56;
  --accent-b-rgb: 255, 95, 86;
  --accent-c: #5cf1df;
  --danger: #ff5f6d;
  --warning: #ffbf4c;
  --success: #6bf29b;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --browser-height: 330px;
  color-scheme: dark;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="cobalt"] {
  --accent-a: #5ea0ff;
  --accent-a-rgb: 94, 160, 255;
  --accent-b: #48e4ff;
  --accent-b-rgb: 72, 228, 255;
  --accent-c: #9b7cff;
}

html[data-theme="amber"] {
  --accent-a: #ffc84a;
  --accent-a-rgb: 255, 200, 74;
  --accent-b: #ff55a9;
  --accent-b-rgb: 255, 85, 169;
  --accent-c: #ff8b4a;
}

html[data-density="compact"] { --browser-height: 250px; }
html[data-density="expanded"] { --browser-height: 450px; }
html[data-no-motion="true"] *, html[data-no-motion="true"] *::before, html[data-no-motion="true"] *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
}

* { box-sizing: border-box; }
html { min-width: 1120px; background: var(--bg); }
body {
  min-width: 1120px;
  min-height: 100vh;
  margin: 0;
  overflow-x: auto;
  background:
    radial-gradient(circle at 48% -20%, rgba(var(--accent-a-rgb), 0.07), transparent 36%),
    linear-gradient(180deg, #0a0e13 0%, var(--bg) 50%, #07090d 100%);
  color: var(--text);
  letter-spacing: -0.01em;
}

button, input, select, textarea { font: inherit; }
button { color: inherit; }
button:not(:disabled), input[type="range"], select { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.45; }
::selection { color: #0a0d10; background: var(--accent-a); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,.02); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.13); border: 2px solid transparent; border-radius: 99px; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.23); border: 2px solid transparent; background-clip: padding-box; }

.ambient {
  position: fixed;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .06;
  pointer-events: none;
}
.ambient-a { top: 90px; left: -260px; background: var(--accent-a); }
.ambient-b { top: 220px; right: -260px; background: var(--accent-b); }

.app-shell { width: 100%; min-height: 100vh; }
.topbar {
  position: sticky;
  z-index: 40;
  top: 0;
  height: 74px;
  display: grid;
  grid-template-columns: minmax(270px, 1fr) auto minmax(490px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 0 26px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 11, 15, .88);
  box-shadow: 0 8px 28px rgba(0,0,0,.18);
  backdrop-filter: blur(22px) saturate(130%);
}
.brand-lockup { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding: 9px 8px;
  border: 1px solid rgba(var(--accent-a-rgb), .25);
  border-radius: 11px;
  background: rgba(var(--accent-a-rgb), .06);
}
.brand-mark span { width: 5px; border-radius: 4px; background: var(--accent-a); box-shadow: 0 0 12px rgba(var(--accent-a-rgb), .55); }
.brand-mark span:nth-child(1) { height: 10px; }
.brand-mark span:nth-child(2) { height: 20px; }
.brand-mark span:nth-child(3) { height: 14px; }
.brand-name { font: 700 18px/1 "Space Grotesk", sans-serif; letter-spacing: .08em; }
.brand-name span { color: var(--accent-a); }
.brand-subtitle { margin-top: 6px; color: var(--dim); font: 600 9px/1 "Space Grotesk", sans-serif; letter-spacing: .18em; }

.system-pills { display: flex; gap: 8px; }
.status-pill {
  min-width: 116px;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.025);
  text-align: left;
  transition: .18s ease;
}
.status-pill:hover { border-color: var(--line-strong); background: rgba(255,255,255,.045); }
.status-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--warning); box-shadow: 0 0 0 4px rgba(255,191,76,.08); }
.status-pill.online .status-dot { background: var(--success); box-shadow: 0 0 0 4px rgba(107,242,155,.08), 0 0 10px rgba(107,242,155,.4); }
.status-pill.offline .status-dot { background: var(--danger); box-shadow: 0 0 0 4px rgba(255,95,109,.08); }
.status-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.status-copy b { font-size: 11px; line-height: 1; }
.status-copy small { max-width: 92px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

.top-actions { display: flex; justify-content: flex-end; align-items: center; gap: 4px; }
.toolbar-btn, .icon-btn {
  height: 40px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  transition: .18s ease;
}
.toolbar-btn { display: inline-flex; align-items: center; gap: 7px; padding: 0 10px; font-size: 11px; font-weight: 600; }
.toolbar-btn:hover, .icon-btn:hover { color: var(--text); border-color: var(--line); background: rgba(255,255,255,.045); }
.toolbar-btn.primary { color: #0c0f0b; background: var(--accent-a); box-shadow: 0 0 22px rgba(var(--accent-a-rgb), .13); }
.toolbar-btn.primary:hover { color: #090b08; border-color: transparent; background: color-mix(in srgb, var(--accent-a) 86%, white); transform: translateY(-1px); }
.toolbar-icon { min-width: 16px; color: currentColor; font-size: 16px; line-height: 1; text-align: center; }
.icon-btn { width: 40px; margin-left: 3px; font-size: 16px; }
.toolbar-divider { width: 1px; height: 23px; margin: 0 5px; background: var(--line); }
.live-ring { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(8,11,15,.14); }

.mix-ribbon {
  height: 92px;
  display: grid;
  grid-template-columns: 1fr minmax(400px, 600px) 1fr;
  align-items: center;
  gap: 28px;
  padding: 11px 26px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.018), transparent);
}
.mix-side { min-width: 0; display: flex; align-items: center; gap: 12px; }
.mix-side-a { grid-column: 1; }
.mix-side-b { justify-content: flex-end; text-align: right; }
.mix-side-b { grid-column: 3; }
.mix-side > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mix-side strong { overflow: hidden; font: 600 12px/1.2 "Space Grotesk", sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.mix-side small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.deck-token {
  width: 32px;
  height: 32px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(var(--accent-a-rgb), .38);
  border-radius: 9px;
  background: rgba(var(--accent-a-rgb), .09);
  color: var(--accent-a);
  font: 700 13px "Space Grotesk", sans-serif;
}
.mix-side-b .deck-token { border-color: rgba(var(--accent-b-rgb), .38); background: rgba(var(--accent-b-rgb), .09); color: var(--accent-b); }
.crossfader-block { grid-column: 2; width: 100%; }
.crossfader-labels { display: flex; justify-content: space-between; align-items: center; margin-bottom: 11px; color: var(--dim); font: 600 9px "Space Grotesk", sans-serif; letter-spacing: .12em; }
.crossfader-title-controls { display: flex; align-items: center; justify-content: center; gap: 9px; }
.mix-center-btn { border: 0; background: none; color: var(--muted); font: inherit; letter-spacing: .12em; }
.mix-center-btn:hover { color: var(--text); }
.crossfader-value {
  min-width: 54px;
  padding: 4px 7px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  background: rgba(0,0,0,.24);
  color: var(--text);
  font: 700 9px "Space Grotesk", sans-serif;
  letter-spacing: .06em;
  text-align: center;
}
.crossfader-float-btn, .crossfader-drag-handle {
  min-height: 25px;
  padding: 0 8px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 7px;
  background: rgba(255,255,255,.045);
  color: #aeb7c0;
  font: 700 8px "Space Grotesk", sans-serif;
  letter-spacing: .08em;
}
.crossfader-float-btn:hover, .crossfader-drag-handle:hover { border-color: rgba(var(--accent-a-rgb), .45); color: var(--text); }
.crossfader-drag-handle { display: none; cursor: grab; }
.crossfader-drag-handle:active { cursor: grabbing; }
.crossfader-block.is-floating {
  position: fixed;
  z-index: 240;
  width: min(620px, calc(100vw - 32px));
  padding: 17px 20px 19px;
  border: 1px solid rgba(var(--accent-a-rgb), .38);
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(24,31,39,.985), rgba(9,13,18,.99));
  box-shadow: 0 24px 70px rgba(0,0,0,.72), 0 0 0 1px rgba(var(--accent-b-rgb), .12), 0 0 40px rgba(var(--accent-a-rgb), .09);
}
.crossfader-block.is-floating .crossfader-labels { margin-bottom: 14px; }
.crossfader-block.is-floating .crossfader-drag-handle { display: inline-flex; align-items: center; }
.crossfader-block.is-floating .crossfader-wrap { height: 34px; }
.crossfader-block.is-floating .crossfader-meter { top: 14px; height: 7px; }
.crossfader-block.is-floating .crossfader { height: 34px; }
.crossfader-block.is-floating .crossfader::-webkit-slider-runnable-track { height: 7px; }
.crossfader-block.is-floating .crossfader::-moz-range-track { height: 7px; }
.crossfader-block.is-floating .crossfader::-webkit-slider-thumb { width: 34px; height: 34px; margin-top: -14px; border-width: 4px; }
.crossfader-block.is-floating .crossfader::-moz-range-thumb { width: 28px; height: 28px; border-width: 4px; }
.crossfader-block.is-floating .crossfader-center { top: 8px; bottom: 8px; }
.crossfader-wrap { position: relative; height: 26px; }
.crossfader-meter {
  position: absolute;
  top: 10px;
  right: 8px;
  left: 8px;
  height: 5px;
  display: flex;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255,255,255,.06);
}
.crossfader-meter span { width: 50%; transition: opacity .1s linear; }
#crossfadeFillA { background: linear-gradient(90deg, rgba(var(--accent-a-rgb), .16), var(--accent-a)); transform-origin: right; }
#crossfadeFillB { background: linear-gradient(90deg, var(--accent-b), rgba(var(--accent-b-rgb), .16)); transform-origin: left; }
.crossfader {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 26px;
  margin: 0;
  appearance: none;
  background: transparent;
  outline: 0;
}
.crossfader::-webkit-slider-runnable-track { height: 5px; background: transparent; }
.crossfader::-moz-range-track { height: 5px; background: transparent; }
.crossfader::-webkit-slider-thumb {
  width: 27px;
  height: 27px;
  margin-top: -11px;
  appearance: none;
  border: 3px solid #1d232b;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  box-shadow: 0 4px 18px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.25);
}
.crossfader::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 3px solid #1d232b;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  box-shadow: 0 4px 18px rgba(0,0,0,.55);
}
.crossfader-center { position: absolute; z-index: 1; top: 7px; bottom: 7px; left: 50%; width: 1px; background: rgba(255,255,255,.24); }

.decks-grid { display: grid; grid-template-columns: minmax(520px, 1fr) minmax(520px, 1fr); gap: 14px; padding: 0 16px 54px; }
.deck-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(22,28,36,.97), rgba(12,16,21,.98));
  box-shadow: var(--shadow);
}
.deck-card.deck-b { --deck-accent: var(--accent-b); --deck-accent-rgb: var(--accent-b-rgb); }
.deck-card.deck-a { --deck-accent: var(--accent-a); --deck-accent-rgb: var(--accent-a-rgb); }
.deck-header {
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px 0 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.018);
}
.deck-identity { display: flex; align-items: center; gap: 10px; }
.deck-letter {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(var(--deck-accent-rgb), .11);
  color: var(--deck-accent);
  font: 700 12px "Space Grotesk", sans-serif;
}
.deck-identity > div { display: flex; flex-direction: column; gap: 3px; }
.deck-heading { font: 600 13px "Space Grotesk", sans-serif; letter-spacing: .03em; }
.deck-state { color: var(--deck-accent); font: 600 8px "Space Grotesk", sans-serif; letter-spacing: .15em; }
.deck-header-actions { display: flex; gap: 5px; }
.micro-btn {
  width: 31px;
  height: 29px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
  color: var(--muted);
  font-size: 14px;
  transition: .16s;
}
.micro-btn:hover { color: var(--text); border-color: var(--line-strong); background: rgba(255,255,255,.055); }
.micro-btn.active { color: var(--deck-accent); border-color: rgba(var(--deck-accent-rgb),.38); background: rgba(var(--deck-accent-rgb),.08); }

.stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8.65;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 65%, rgba(var(--deck-accent-rgb), .075), transparent 34%),
    linear-gradient(155deg, #0b0e12, #050608);
  isolation: isolate;
}
.stage::after {
  content: "";
  position: absolute;
  z-index: 20;
  inset: 0;
  border: 1px solid rgba(255,255,255,.04);
  pointer-events: none;
}
.stage-empty, .media-layer, .youtube-shell, .audio-visual { position: absolute; inset: 0; }
.stage-empty {
  display: flex;
  z-index: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--muted);
}
.stage-empty-icon { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 4px; border: 1px solid rgba(var(--deck-accent-rgb),.18); border-radius: 50%; background: rgba(var(--deck-accent-rgb),.05); color: var(--deck-accent); font: 500 25px serif; }
.stage-empty strong { color: #b6bec7; font: 600 13px "Space Grotesk", sans-serif; }
.stage-empty small { font-size: 10px; }
.youtube-shell { z-index: 3; display: none; }
.youtube-shell.active { display: block; }
.youtube-shell > div, .youtube-shell iframe { width: 100%; height: 100%; border: 0; }
.media-layer { z-index: 4; display: none; width: 100%; height: 100%; object-fit: contain; background: #000; }
.media-layer.active { display: block; }
.local-audio { display: none; }
.audio-visual {
  z-index: 4;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 42px;
  background: radial-gradient(circle at 50% 50%, rgba(var(--deck-accent-rgb), .075), transparent 46%);
}
.audio-visual.active { display: flex; }
.record-art {
  width: 130px;
  height: 130px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--deck-accent-rgb), .19);
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, rgba(255,255,255,.08) 0 1px, transparent 1px 7px),
    radial-gradient(circle at 50% 50%, #151b22 0 52%, #090b0e 53%);
  box-shadow: 0 24px 45px rgba(0,0,0,.45), inset 0 0 0 15px rgba(0,0,0,.15);
}
.record-art span { width: 34px; height: 34px; border: 8px solid var(--deck-accent); border-radius: 50%; background: #11161c; box-shadow: 0 0 24px rgba(var(--deck-accent-rgb), .28); }
.deck-card.playing .record-art { animation: spin 7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.audio-bars { height: 85px; display: flex; align-items: center; gap: 5px; }
.audio-bars i { width: 6px; height: 25%; border-radius: 99px; background: var(--deck-accent); opacity: .45; }
.deck-card.playing .audio-bars i { animation: bars .8s ease-in-out infinite alternate; }
.audio-bars i:nth-child(2n) { animation-delay: -.4s; }
.audio-bars i:nth-child(3n) { animation-delay: -.65s; }
.audio-bars i:nth-child(4n) { animation-delay: -.2s; }
@keyframes bars { from { height: 17%; opacity: .33; } to { height: 96%; opacity: 1; } }
.deck-card.visual-hidden .youtube-shell, .deck-card.visual-hidden .media-layer { visibility: hidden; }
.deck-card.visual-hidden .audio-visual { display: flex; }
.drop-overlay {
  position: absolute;
  z-index: 60;
  inset: 12px;
  display: none;
  place-items: center;
  border: 2px dashed var(--deck-accent);
  border-radius: 14px;
  background: rgba(8,11,15,.88);
  color: var(--deck-accent);
  font: 700 14px "Space Grotesk", sans-serif;
  letter-spacing: .13em;
  backdrop-filter: blur(12px);
}
.stage.dragover .drop-overlay { display: grid; }
.stage-badges { position: absolute; z-index: 40; top: 10px; right: 10px; left: 10px; display: flex; justify-content: space-between; pointer-events: none; }
.source-badge, .cue-badge { padding: 5px 7px; border: 1px solid rgba(255,255,255,.12); border-radius: 6px; background: rgba(5,7,10,.72); color: #a7afb8; font: 700 8px "Space Grotesk", sans-serif; letter-spacing: .1em; backdrop-filter: blur(8px); }
.cue-badge { display: none; border-color: rgba(var(--deck-accent-rgb),.38); color: var(--deck-accent); }
.deck-card.cueing .cue-badge { display: inline-flex; }

.now-playing {
  height: 57px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 0 14px;
  border-top: 1px solid rgba(255,255,255,.035);
  background: #10151b;
}
.track-art { width: 36px; height: 36px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: rgba(var(--deck-accent-rgb), .06); color: var(--deck-accent); }
.track-art img { width: 100%; height: 100%; object-fit: cover; }
.track-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.track-copy strong { overflow: hidden; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.track-copy small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.time-code { color: #acb5bf; font: 600 10px/1 "Space Grotesk", monospace; font-variant-numeric: tabular-nums; }
.seek-row { height: 14px; padding: 0 14px; background: #10151b; }
.seek-slider, .volume-field input, .field-inline input[type="range"], .field-block input[type="range"] { width: 100%; height: 3px; appearance: none; border-radius: 99px; background: rgba(255,255,255,.11); outline: none; }
.seek-slider::-webkit-slider-thumb, .volume-field input::-webkit-slider-thumb, .field-inline input[type="range"]::-webkit-slider-thumb, .field-block input[type="range"]::-webkit-slider-thumb {
  width: 11px;
  height: 11px;
  appearance: none;
  border: 2px solid #151b21;
  border-radius: 50%;
  background: var(--deck-accent, var(--accent-a));
  box-shadow: 0 0 0 1px rgba(255,255,255,.2);
}
.seek-slider:disabled { opacity: .35; cursor: not-allowed; }
.transport {
  min-height: 58px;
  display: grid;
  grid-template-columns: auto minmax(140px, 1fr) auto;
  align-items: center;
  gap: 15px;
  padding: 8px 14px 10px;
  border-bottom: 1px solid var(--line);
  background: #10151b;
}
.transport-left { display: flex; align-items: center; gap: 6px; }
.transport-btn {
  height: 34px;
  min-width: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
  color: #abb3bc;
  font: 700 10px "Space Grotesk", sans-serif;
  transition: .15s;
}
.transport-btn:hover { color: var(--text); border-color: var(--line-strong); background: rgba(255,255,255,.055); }
.transport-btn.play { width: 42px; color: #090b0e; border-color: transparent; background: var(--deck-accent); font-size: 13px; box-shadow: 0 0 18px rgba(var(--deck-accent-rgb), .12); }
.transport-btn.play:hover { transform: translateY(-1px); }
.transport-btn.cue.active { color: var(--deck-accent); border-color: rgba(var(--deck-accent-rgb),.42); background: rgba(var(--deck-accent-rgb),.09); }
.volume-field { display: grid; grid-template-columns: auto 1fr 25px; align-items: center; gap: 9px; }
.volume-field span, .rate-field span { color: var(--dim); font: 700 8px "Space Grotesk", sans-serif; letter-spacing: .1em; }
.volume-field output { color: #aab2bb; font: 600 9px "Space Grotesk", sans-serif; text-align: right; }
.transport-right { display: flex; align-items: center; }
.rate-field { display: flex; align-items: center; gap: 7px; }
.rate-field select {
  height: 31px;
  padding: 0 23px 0 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #171d24;
  color: #b8c0c9;
  font-size: 9px;
}

.browser-panel { background: #0d1116; }
.source-tabs {
  height: 47px;
  display: flex;
  align-items: flex-end;
  gap: 1px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: #11161c;
}
.source-tab {
  position: relative;
  height: 47px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}
.source-tab::after { content: ""; position: absolute; right: 9px; bottom: -1px; left: 9px; height: 2px; border-radius: 2px 2px 0 0; background: var(--deck-accent); opacity: 0; transform: scaleX(.5); transition: .16s; }
.source-tab:hover { color: #c1c7ce; }
.source-tab.active { color: var(--text); }
.source-tab.active::after { opacity: 1; transform: scaleX(1); }
.queue-count { min-width: 17px; height: 17px; display: inline-grid; place-items: center; margin-left: 4px; border-radius: 99px; background: rgba(255,255,255,.07); color: #b8c0c8; font-size: 8px; }
.source-tab.active .queue-count { background: rgba(var(--deck-accent-rgb), .13); color: var(--deck-accent); }
.source-pane { display: none; height: var(--browser-height); padding: 12px; overflow: hidden; }
.source-pane.active { display: flex; flex-direction: column; gap: 10px; }
.source-toolbar { display: flex; align-items: center; gap: 8px; min-height: 32px; }
.action-btn, .ghost-btn, .search-submit, .danger-link {
  min-height: 32px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  transition: .15s;
}
.action-btn, .search-submit { padding: 0 13px; border: 1px solid transparent; background: var(--accent-a); color: #0a0d0f; }
.deck-card .action-btn, .deck-card .search-submit { background: var(--deck-accent); }
.action-btn:hover, .search-submit:hover { filter: brightness(1.08); transform: translateY(-1px); }
.ghost-btn { padding: 0 12px; border: 1px solid var(--line); background: rgba(255,255,255,.025); color: #b3bbc4; }
.ghost-btn:hover { color: var(--text); border-color: var(--line-strong); background: rgba(255,255,255,.05); }
.danger-link { padding: 0 8px; border: 0; background: transparent; color: var(--danger); }
.danger-link:hover { background: rgba(255,95,109,.08); }
.folder-label { min-width: 0; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.search-line {
  position: relative;
  min-height: 37px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255,255,255,.025);
}
.search-symbol { padding-left: 11px; color: var(--dim); font-size: 17px; }
.search-line input { min-width: 0; height: 35px; flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 10px; }
.search-line input::placeholder, textarea::placeholder, input::placeholder { color: #606a74; }
.search-line select { align-self: stretch; padding: 0 10px; border: 0; border-left: 1px solid var(--line); border-radius: 0 9px 9px 0; outline: 0; background: #151b21; color: #a9b1ba; font-size: 9px; }
.search-submit { min-height: 29px; margin-right: 4px; }
.browser-list {
  min-height: 0;
  flex: 1;
  overflow: auto;
  border: 1px solid rgba(255,255,255,.055);
  border-radius: 10px;
  background: rgba(3,5,8,.28);
}
.empty-list { min-height: 100%; display: grid; place-items: center; padding: 20px; color: #69737e; font-size: 10px; text-align: center; }
.media-row, .result-row, .queue-row {
  min-height: 54px;
  display: grid;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: .13s;
}
.media-row:last-child, .result-row:last-child, .queue-row:last-child { border-bottom: 0; }
.media-row:hover, .result-row:hover, .queue-row:hover { background: rgba(var(--deck-accent-rgb), .045); }
.media-row { grid-template-columns: 29px minmax(0, 1fr) auto; }
.media-type-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 7px; background: rgba(var(--deck-accent-rgb),.07); color: var(--deck-accent); font-size: 11px; }
.row-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.row-copy strong { overflow: hidden; color: #cbd1d7; font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.row-copy small { overflow: hidden; color: #66717c; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.row-actions { display: flex; gap: 4px; opacity: .15; transition: .13s; }
.media-row:hover .row-actions, .result-row:hover .row-actions, .queue-row:hover .row-actions { opacity: 1; }
.row-icon-btn {
  height: 27px;
  min-width: 29px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255,255,255,.035);
  color: #b3bbc3;
  font-size: 9px;
}
.row-icon-btn:hover { color: var(--text); border-color: rgba(var(--deck-accent-rgb),.32); background: rgba(var(--deck-accent-rgb),.08); }
.row-icon-btn.primary { color: #080a0d; border-color: transparent; background: var(--deck-accent); }
.result-row { grid-template-columns: 75px minmax(0,1fr) auto; }
.result-thumb { width: 75px; height: 42px; object-fit: cover; border-radius: 6px; background: #06080b; }
.result-row.playlist-result { grid-template-columns: 75px minmax(0,1fr) auto; }
.result-meta { display: flex; gap: 8px; color: #67717c; font-size: 8px; }
.pagination { display: flex; justify-content: center; gap: 7px; }
.pagination:empty { display: none; }
.pagination button { min-height: 27px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.025); color: #a8b0b8; font-size: 9px; }
.pagination button:hover { border-color: var(--line-strong); color: var(--text); }
.suggestions { position: absolute; z-index: 80; top: calc(100% + 5px); right: 0; left: 0; display: none; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 10px; background: #171d24; box-shadow: 0 18px 40px rgba(0,0,0,.48); }
.suggestions.active { display: block; }
.suggestions button { width: 100%; min-height: 34px; padding: 0 12px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: #b9c1c9; font-size: 10px; text-align: left; }
.suggestions button:hover, .suggestions button.active { background: rgba(var(--deck-accent-rgb), .08); color: var(--text); }
.suggestions button.active { box-shadow: inset 3px 0 0 var(--deck-accent); }
.suggestions button:last-child { border-bottom: 0; }
.queue-options { min-height: 34px; display: flex; align-items: center; gap: 15px; }
.switch-line { display: inline-flex; align-items: center; gap: 7px; color: #9aa3ad; font-size: 9px; font-weight: 600; }
.switch-line input { position: absolute; opacity: 0; pointer-events: none; }
.switch-line > span { position: relative; width: 28px; height: 16px; border-radius: 99px; background: #252c34; box-shadow: inset 0 0 0 1px var(--line); transition: .18s; }
.switch-line > span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 10px; height: 10px; border-radius: 50%; background: #7a848e; transition: .18s; }
.switch-line input:checked + span { background: rgba(var(--deck-accent-rgb, var(--accent-a-rgb)),.25); box-shadow: inset 0 0 0 1px rgba(var(--deck-accent-rgb, var(--accent-a-rgb)),.4); }
.switch-line input:checked + span::after { left: 15px; background: var(--deck-accent, var(--accent-a)); box-shadow: 0 0 9px rgba(var(--deck-accent-rgb, var(--accent-a-rgb)),.4); }
.queue-actions { display: flex; gap: 4px; margin-left: auto; }
.queue-actions button { min-height: 29px; }
.queue-row { position: relative; grid-template-columns: 20px 24px 37px minmax(0,1fr) auto; }
.queue-row.dragging { opacity: .35; }
.queue-row.drop-before::before, .queue-row.drop-after::after { content: ""; position: absolute; right: 6px; left: 6px; height: 2px; background: var(--deck-accent); box-shadow: 0 0 8px rgba(var(--deck-accent-rgb), .45); }
.queue-row.drop-before::before { top: -1px; }
.queue-row.drop-after::after { bottom: -1px; }
.drag-handle { color: #505a64; font-size: 15px; text-align: center; cursor: grab; }
.queue-index { color: #68727c; font: 600 9px "Space Grotesk", sans-serif; }
.queue-thumb { width: 37px; height: 27px; display: grid; place-items: center; overflow: hidden; border-radius: 5px; background: rgba(var(--deck-accent-rgb),.06); color: var(--deck-accent); font-size: 9px; }
.queue-thumb img { width: 100%; height: 100%; object-fit: cover; }
.queue-row.current { background: rgba(var(--deck-accent-rgb),.075); box-shadow: inset 2px 0 var(--deck-accent); }
.link-loader { max-width: 640px; display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.link-loader label { display: flex; flex-direction: column; gap: 7px; color: #a9b1ba; font-size: 10px; font-weight: 600; }
.link-loader input, .field-block input, .field-block select, .field-block textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  background: #11171e;
  color: var(--text);
}
.link-loader input, .field-block input:not([type="range"]):not([type="color"]):not([type="file"]), .field-block select { height: 38px; padding: 0 11px; }
.field-block textarea { min-height: 86px; padding: 10px 11px; resize: vertical; }
.link-loader input:focus, .field-block input:focus, .field-block textarea:focus, .field-block select:focus { border-color: rgba(var(--accent-a-rgb),.45); box-shadow: 0 0 0 3px rgba(var(--accent-a-rgb),.05); }
.link-actions { display: flex; gap: 7px; }
.link-loader p { max-width: 540px; margin: 0; color: #69737d; font-size: 9px; line-height: 1.55; }

.statusbar {
  position: fixed;
  z-index: 35;
  right: 0;
  bottom: 0;
  left: 0;
  height: 35px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 18px;
  border-top: 1px solid var(--line);
  background: rgba(8,11,15,.92);
  color: #707a85;
  font-size: 9px;
  backdrop-filter: blur(18px);
}
.statusbar-group { display: flex; align-items: center; gap: 7px; }
.statusbar-center { color: #87919b; font: 600 9px "Space Grotesk", monospace; letter-spacing: .07em; }
.statusbar-right { justify-content: flex-end; }
.mini-led { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.mini-led.on { background: var(--success); box-shadow: 0 0 7px rgba(107,242,155,.5); }
.text-btn { padding: 0; border: 0; background: transparent; color: #7f8994; font-size: 9px; }
.text-btn:hover { color: var(--text); }
.separator { color: #424a52; }

dialog.modal {
  width: min(780px, calc(100vw - 80px));
  max-height: calc(100vh - 70px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: #11171e;
  color: var(--text);
  box-shadow: 0 35px 110px rgba(0,0,0,.72);
}
dialog.modal.wide { width: min(1000px, calc(100vw - 80px)); }
dialog.modal::backdrop { background: rgba(3,5,7,.78); backdrop-filter: blur(8px); }
dialog.modal[open] { animation: modalIn .18s ease-out; }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.modal-frame { max-height: calc(100vh - 70px); display: flex; flex-direction: column; margin: 0; }
.modal-header { min-height: 74px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.018); }
.eyebrow { display: block; margin-bottom: 5px; color: var(--accent-a); font: 700 8px "Space Grotesk", sans-serif; letter-spacing: .17em; }
.modal-header h2 { margin: 0; font: 600 22px/1 "Space Grotesk", sans-serif; }
.modal-close { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.025); color: var(--muted); font-size: 20px; }
.modal-close:hover { color: var(--text); border-color: var(--line-strong); background: rgba(255,255,255,.055); }
.modal-body { padding: 22px; overflow: auto; }
.modal-footer { min-height: 62px; display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 0 22px; border-top: 1px solid var(--line); background: rgba(255,255,255,.015); }
.modal-footer > span { margin-right: auto; color: var(--muted); font-size: 9px; }
.modal-footer.split { justify-content: space-between; }
.settings-layout { min-height: 510px; display: grid; grid-template-columns: 190px minmax(0,1fr); overflow: hidden; }
.settings-nav { display: flex; flex-direction: column; gap: 3px; padding: 15px 10px; border-right: 1px solid var(--line); background: #0d1218; }
.settings-nav button { min-height: 38px; padding: 0 11px; border: 0; border-radius: 8px; background: transparent; color: #7e8892; font-size: 10px; font-weight: 600; text-align: left; }
.settings-nav button:hover { color: #bdc4cc; background: rgba(255,255,255,.035); }
.settings-nav button.active { color: var(--text); background: rgba(var(--accent-a-rgb), .08); box-shadow: inset 2px 0 var(--accent-a); }
.settings-content { overflow: auto; }
.settings-pane { display: none; padding: 23px 25px 30px; }
.settings-pane.active { display: block; }
.setting-heading { margin-bottom: 20px; }
.setting-heading h3 { margin: 0 0 6px; font: 600 17px "Space Grotesk", sans-serif; }
.setting-heading p { max-width: 630px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.field-block { min-width: 0; display: flex; flex-direction: column; gap: 7px; color: #adb5bd; font-size: 10px; font-weight: 600; }
.field-block small { color: #68727d; font-size: 9px; font-weight: 400; line-height: 1.4; }
.field-block output { align-self: flex-end; margin-top: -3px; color: #8d97a1; font-size: 9px; }
.field-block input[type="color"] { width: 62px; height: 38px; padding: 3px; }
.field-block input[type="file"] { padding: 8px; color: #8f99a3; font-size: 9px; }
.field-block input[type="file"]::file-selector-button { margin-right: 9px; padding: 6px 8px; border: 0; border-radius: 6px; background: #242c35; color: #c4cbd2; }
.setting-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px 22px; }
.setting-grid.compact { grid-template-columns: 1fr; gap: 14px; }
.setting-switch { min-height: 38px; align-self: end; }
.setting-switch > span { --deck-accent: var(--accent-a); --deck-accent-rgb: var(--accent-a-rgb); }
.inline-actions { min-height: 42px; display: flex; align-items: center; gap: 8px; margin-top: 18px; }
.inline-status { color: var(--muted); font-size: 9px; }
.inline-status.success { color: var(--success); }
.inline-status.error { color: var(--danger); }
.settings-pane hr { margin: 24px 0; border: 0; border-top: 1px solid var(--line); }
.branding-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.logo-preview { height: 110px; display: grid; place-items: center; margin-top: 12px; overflow: hidden; border: 1px dashed var(--line-strong); border-radius: 10px; background: #080b0f; }
.logo-preview img { display: none; max-width: 90%; max-height: 88px; object-fit: contain; }
.logo-preview img.active { display: block; }
.logo-preview span { color: #606b75; font-size: 9px; }
.theme-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.theme-card { position: relative; min-height: 112px; display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; padding: 13px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #0c1116; cursor: pointer; }
.theme-card input { position: absolute; opacity: 0; }
.theme-card > span { position: absolute; top: 14px; right: 14px; left: 14px; height: 43px; border-radius: 8px; background: linear-gradient(135deg, #c7ff43, #ff5f56); opacity: .86; }
.theme-card.cobalt > span { background: linear-gradient(135deg, #5ea0ff, #48e4ff); }
.theme-card.amber > span { background: linear-gradient(135deg, #ffc84a, #ff55a9); }
.theme-card b { font: 600 11px "Space Grotesk", sans-serif; }
.theme-card small { color: var(--muted); font-size: 8px; }
.theme-card:has(input:checked) { border-color: rgba(var(--accent-a-rgb),.48); box-shadow: inset 0 0 0 1px rgba(var(--accent-a-rgb),.15), 0 0 24px rgba(var(--accent-a-rgb),.05); }
.data-actions { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.data-card { min-height: 84px; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.023); text-align: left; }
.data-card:hover { border-color: rgba(var(--accent-a-rgb),.3); background: rgba(var(--accent-a-rgb),.04); }
.data-card b { font: 600 11px "Space Grotesk", sans-serif; }
.data-card small { color: var(--muted); font-size: 9px; }
.data-card.danger:hover { border-color: rgba(255,95,109,.32); background: rgba(255,95,109,.04); }
.migration-report { margin-top: 15px; padding: 12px; border: 1px solid rgba(var(--accent-a-rgb),.2); border-radius: 9px; background: rgba(var(--accent-a-rgb),.04); color: #aeb7bf; font-size: 9px; line-height: 1.55; }

.quick-messages { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0 20px; }
.quick-messages button { min-height: 31px; padding: 0 10px; border: 1px solid var(--line); border-radius: 99px; background: rgba(255,255,255,.025); color: #aeb6bf; font-size: 9px; }
.quick-messages button:hover { color: var(--text); border-color: rgba(var(--accent-a-rgb),.3); background: rgba(var(--accent-a-rgb),.05); }
.sampler-toolbar { display: flex; align-items: center; gap: 13px; }
.field-inline { min-width: 250px; display: grid; grid-template-columns: auto 1fr 35px; align-items: center; gap: 8px; color: var(--muted); font-size: 9px; }
.field-inline output { text-align: right; }
.sampler-drop { min-height: 60px; display: grid; place-items: center; margin: 14px 0; border: 1px dashed var(--line-strong); border-radius: 11px; background: rgba(255,255,255,.018); color: #69737e; font-size: 9px; }
.sampler-drop.dragover { border-color: var(--accent-a); background: rgba(var(--accent-a-rgb),.05); color: var(--accent-a); }
.sampler-grid { min-height: 190px; display: grid; grid-template-columns: repeat(3, 1fr); align-content: start; gap: 9px; }
.sampler-grid > .empty-list { grid-column: 1 / -1; }
.sampler-pad { position: relative; min-height: 82px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 4px; padding: 11px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: linear-gradient(145deg, #1a2129, #11161c); text-align: left; }
.sampler-pad::before { content: ""; position: absolute; top: 10px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: #3b444e; }
.sampler-pad:hover { border-color: rgba(var(--accent-a-rgb),.28); background: linear-gradient(145deg, #1e2730, #131920); }
.sampler-pad.playing { border-color: rgba(var(--accent-a-rgb),.55); background: rgba(var(--accent-a-rgb),.08); transform: translateY(1px); }
.sampler-pad.playing::before { background: var(--accent-a); box-shadow: 0 0 11px rgba(var(--accent-a-rgb),.55); }
.sampler-pad b { max-width: 100%; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.sampler-pad small { color: var(--muted); font-size: 8px; }
.sampler-pad input[type="range"] { width: 100%; height: 3px; margin-top: 4px; appearance: none; border-radius: 99px; background: rgba(255,255,255,.12); }
.sampler-pad input[type="range"]::-webkit-slider-thumb { width: 9px; height: 9px; appearance: none; border-radius: 50%; background: var(--accent-a); }
.sampler-remove { position: absolute; top: 7px; left: 7px; width: 22px; height: 22px; border: 0; border-radius: 6px; background: transparent; color: #606a74; }
.sampler-remove:hover { color: var(--danger); background: rgba(255,95,109,.08); }
.sampler-note { margin: 13px 0 0; color: #66717b; font-size: 9px; }
.shortcut-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; padding: 18px; background: var(--line); }
.shortcut-grid > div { min-height: 52px; display: flex; align-items: center; gap: 12px; padding: 0 14px; background: #11171e; }
kbd { min-width: 36px; min-height: 28px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-bottom-width: 3px; border-radius: 7px; background: #1c232b; color: var(--accent-a); font: 700 10px "Space Grotesk", monospace; }
.shortcut-grid span { color: #a5aeb7; font-size: 10px; }
.confirm-modal { width: 410px !important; }
.confirm-modal .modal-frame { align-items: center; padding: 27px; text-align: center; }
.confirm-icon { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,95,109,.28); border-radius: 50%; background: rgba(255,95,109,.08); color: var(--danger); font: 700 18px "Space Grotesk", sans-serif; }
.confirm-modal h2 { margin: 15px 0 7px; font: 600 18px "Space Grotesk", sans-serif; }
.confirm-modal p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.confirm-actions { display: flex; gap: 8px; margin-top: 22px; }
.danger-action { background: var(--danger); color: white; }

.floating-output {
  position: fixed;
  z-index: 70;
  top: 95px;
  left: calc(50% - 310px);
  width: 620px;
  min-width: 400px;
  max-width: calc(100vw - 24px);
  height: 390px;
  min-height: 260px;
  overflow: hidden;
  resize: both;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: #050608;
  box-shadow: 0 28px 90px rgba(0,0,0,.72);
}
.floating-output[hidden] { display: none; }
.floating-output-header { height: 38px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 13px; border-bottom: 1px solid var(--line); background: #171d24; cursor: move; }
.floating-output-header strong { font: 600 10px "Space Grotesk", sans-serif; }
.floating-output-header div { display: flex; gap: 4px; }
.floating-output-header button { width: 27px; height: 27px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); }
.floating-output-header button:hover { color: var(--text); background: rgba(255,255,255,.07); }
.floating-output iframe { width: 100%; height: calc(100% - 38px); border: 0; background: #000; }

.toast-region { position: fixed; z-index: 200; right: 18px; bottom: 49px; width: 320px; display: flex; flex-direction: column; gap: 7px; pointer-events: none; }
.toast { display: grid; grid-template-columns: 7px 1fr auto; align-items: center; gap: 10px; min-height: 48px; padding: 8px 11px; border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(20,26,33,.96); box-shadow: 0 16px 45px rgba(0,0,0,.48); animation: toastIn .18s ease-out; backdrop-filter: blur(14px); }
.toast::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-a); }
.toast.error::before { background: var(--danger); }
.toast.warning::before { background: var(--warning); }
.toast span { color: #c4cbd2; font-size: 10px; line-height: 1.4; }
.toast button { border: 0; background: transparent; color: var(--muted); pointer-events: auto; }
@keyframes toastIn { from { opacity: 0; transform: translateX(12px); } }

.loading-row { min-height: 90px; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 9px; }
.loading-row::before { content: ""; width: 13px; height: 13px; border: 2px solid rgba(255,255,255,.12); border-top-color: var(--deck-accent, var(--accent-a)); border-radius: 50%; animation: spin .7s linear infinite; }
.error-box { margin: 9px; padding: 11px; border: 1px solid rgba(255,95,109,.2); border-radius: 8px; background: rgba(255,95,109,.05); color: #dba1a7; font-size: 9px; line-height: 1.5; }
.reconnect-box { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 18px; color: var(--muted); font-size: 9px; text-align: center; }

@media (min-width: 1650px) {
  .decks-grid { gap: 18px; padding-right: 22px; padding-left: 22px; }
  .stage { aspect-ratio: 16 / 8.8; }
  .source-tabs { padding-right: 16px; padding-left: 16px; }
  .source-tab { padding-right: 16px; padding-left: 16px; }
}

@media (max-height: 850px) {
  :root { --browser-height: 250px; }
  .mix-ribbon { height: 78px; }
  .stage { aspect-ratio: 16 / 8.2; }
}

@media print {
  body { display: none; }
}
