/* AirDeck Studio – Broadcast-Design (dunkel, dicht, Neon-Akzente) */
:root {
  --bg: #050b17;
  --bg-2: #081226;
  --panel: rgba(13, 24, 46, .82);
  --panel-solid: #0d182e;
  --panel-2: #12213e;
  --line: rgba(88, 132, 214, .18);
  --line-2: rgba(88, 132, 214, .32);
  --text: #e8eefb;
  --muted: #8195b8;
  --primary: #2f8cff;
  --accent: #8b5cf6;
  --cyan: #22d3ee;
  --green: #22c55e;
  --amber: #f59e0b;
  --red: #ef4444;
  --radius: 12px;
  --deck-a: #2f8cff;
  --deck-b: #22c55e;
  --deck-c: #f59e0b;
  --deck-d: #a855f7;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(47, 140, 255, .14), transparent 60%),
    radial-gradient(900px 500px at 110% 10%, rgba(139, 92, 246, .12), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 13px/1.35 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
h2 { font-size: 13px; font-weight: 650; margin: 0; letter-spacing: .01em; }
button, select, input, textarea { font: inherit; color: inherit; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; text-align: right; }
.hint { color: var(--muted); font-size: 11px; margin: 0 0 8px; }
.ico { flex: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }

/* Grundgerüst */
/* height:100% statt 100vh: in WebView2/Edge wird die vh-Einheit bei DPI-Wechsel oder Restore-nach-
   Maximieren nicht immer neu berechnet (bekannter Layout-Bug: kleiner oberer Bereich, riesige
   Leerfläche darunter) - die Prozent-Kette html/body/.app (Zeile 27) ist dagegen robust. */
.app { display: flex; height: 100%; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* Seitenleiste */
.sidebar { width: 206px; flex: none; display: flex; flex-direction: column; gap: 14px; padding: 14px 10px; background: linear-gradient(180deg, rgba(10, 20, 40, .96), rgba(6, 12, 26, .96)); border-right: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 10px; padding: 4px 8px 10px; font-weight: 800; letter-spacing: .22em; font-size: 16px; color: #fff; }
.logo img { border-radius: 9px; filter: drop-shadow(0 0 10px rgba(47, 140, 255, .55)); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav button, .nav a.nav-link { text-decoration: none; }
.nav button, .nav a.nav-link { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 1px solid transparent; border-radius: 9px; padding: 8px 10px; color: #b6c4de; cursor: pointer; text-align: left; }
/* Label als eigenes Flex-Kind: ohne min-width:0 kann Text in einer Flex-Reihe nicht schrumpfen und
   überläuft statt sauber abzuschneiden - bei längeren Bezeichnungen wirkte das neben dem Tastenkürzel
   (<kbd>) wie zusammenhangloses Zeichengewirr. */
.nav button span, .nav a.nav-link span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav a.nav-link:hover, .nav button:hover { background: rgba(47, 140, 255, .08); color: #fff; }
.nav button[aria-pressed="true"] { background: linear-gradient(90deg, rgba(47, 140, 255, .35), rgba(47, 140, 255, .12)); border-color: rgba(47, 140, 255, .45); color: #fff; box-shadow: 0 0 18px rgba(47, 140, 255, .18) inset; }
.nav-badge { margin-left: auto; background: #ff3b5c; color: #fff; font-size: 10px; font-weight: 700; border-radius: 8px; padding: 1px 6px; text-transform: uppercase; }
.side-foot { margin-top: auto; }
.side-label { color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding: 0 8px 6px; }
.side-outputs { display: flex; flex-direction: column; gap: 4px; padding: 0 4px; }
.side-out { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 4px 6px; border-radius: 7px; background: rgba(255, 255, 255, .03); }
.side-out .dot, .st-auto .dot, .chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #475569; flex: none; }
.side-out.on .dot, .chip.on .dot, .st-auto.on .dot { background: var(--green); box-shadow: 0 0 8px var(--green); }
.side-out.err .dot, .chip.err .dot { background: var(--red); }

/* Kopfzeile */
.top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 9px 14px; border-bottom: 1px solid var(--line); background: rgba(6, 13, 28, .7); backdrop-filter: blur(10px); }
.station-pick { display: flex; align-items: center; gap: 10px; }
.station-logo { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; font-weight: 900; font-size: 13px; color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: 0 0 16px rgba(139, 92, 246, .35); }
.station-text { display: flex; flex-direction: column; }
#station-select { background: transparent; border: 0; font-weight: 700; font-size: 15px; padding: 0; cursor: pointer; }
#station-select option { background: var(--panel-solid); }
.brand-sub { color: var(--muted); font-size: 11px; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.onair { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: 12px; letter-spacing: .05em; background: rgba(255, 255, 255, .05); color: var(--muted); border: 1px solid var(--line); }
.onair .dot { width: 9px; height: 9px; border-radius: 50%; background: #475569; }
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red); animation: pulse 1s infinite; }
.onair[data-state="on"] { color: #86efac; border-color: rgba(34, 197, 94, .5); background: rgba(34, 197, 94, .12); }
.onair[data-state="on"] .dot { background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 1.6s infinite; }
.onair[data-state="live"] { color: #fecaca; border-color: rgba(239, 68, 68, .6); background: rgba(239, 68, 68, .16); }
.onair[data-state="live"] .dot { background: var(--red); box-shadow: 0 0 10px var(--red); animation: pulse 1s infinite; }
/* Betriebsart: Manuell (selbst live) | 24/7 AutoDJ */
.mode-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.mode-switch button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 0; background: rgba(255, 255, 255, .04); color: var(--muted); font-weight: 800; font-size: 12px; letter-spacing: .04em; cursor: pointer; }
.mode-switch button + button { border-left: 1px solid var(--line); }
.mode-switch button:hover { color: var(--text); background: rgba(255, 255, 255, .08); }
.mode-switch #btn-manual[aria-pressed="true"] { color: #fde68a; background: rgba(234, 179, 8, .16); }
.mode-switch #btn-auto[aria-pressed="true"] { color: #86efac; background: rgba(34, 197, 94, .16); }
.deck-vol[hidden] { display: none; }
.mode-chip { padding: 6px 10px; border-radius: 999px; font-weight: 800; font-size: 11px; letter-spacing: .06em; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); color: var(--muted); }
.mode-chip[data-mode="AUTO"] { color: #86efac; border-color: rgba(34, 197, 94, .5); }
.mode-chip[data-mode="MANUAL"] { color: #fde68a; border-color: rgba(234, 179, 8, .6); background: rgba(234, 179, 8, .12); }
.mode-chip[data-mode="LIVE"] { color: #fecaca; border-color: rgba(239, 68, 68, .6); background: rgba(239, 68, 68, .16); }
.mode-chip[data-mode="EMERGENCY"] { color: #fff; border-color: #ef4444; background: #b91c1c; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.top-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.clock { text-align: right; }
#clock-time { font-size: 21px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
#clock-date { color: var(--muted); font-size: 11px; }
.conn { width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.conn.ok { background: var(--green); box-shadow: 0 0 8px var(--green); }
.top .mobile-only { display: none; }

/* Buttons */
.btn, .toggle, .icon-btn, .deck-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(180deg, rgba(30, 50, 90, .7), rgba(18, 33, 62, .7)); border: 1px solid var(--line-2); border-radius: 9px;
  padding: 6px 11px; cursor: pointer; user-select: none; color: var(--text);
}
.btn:hover, .toggle:hover, .icon-btn:hover, .deck-btn:hover { border-color: var(--primary); box-shadow: 0 0 12px rgba(47, 140, 255, .25); }
.btn.small, .toggle.small { padding: 3px 9px; font-size: 12px; }
.btn.primary { background: linear-gradient(180deg, #3b95ff, #1f6fe0); border-color: #3b95ff; color: #fff; font-weight: 650; }
.btn.success { background: linear-gradient(180deg, #2fd46b, #16a34a); border-color: var(--green); color: #03140a; font-weight: 650; }
.btn.success:hover { box-shadow: 0 0 12px rgba(34, 197, 94, .35); }
.btn.danger { border-color: rgba(239, 68, 68, .55); color: #fca5a5; }
/* Zurückhaltend/neutral - für Abbrechen & andere Zweithandlungen neben einer .primary/.success-Hauptaktion. */
.btn.ghost { background: transparent; border-color: var(--line); color: var(--muted); }
.btn.ghost:hover { border-color: var(--line-2); color: var(--text); box-shadow: none; }
.toggle { font-weight: 750; letter-spacing: .04em; font-size: 12px; }
.toggle[aria-pressed="true"] { background: linear-gradient(180deg, #2fd46b, #16a34a); border-color: var(--green); color: #03140a; }
#btn-stream[aria-pressed="true"], #btn-mic[aria-pressed="true"], #po-mic[aria-pressed="true"] { background: linear-gradient(180deg, #f25555, #d42a2a); border-color: var(--red); color: #fff; }
.chk { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); cursor: pointer; font-size: 12px; }
button:disabled { opacity: .45; cursor: not-allowed; box-shadow: none !important; }

/* Panels */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; min-height: 0; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .03); }
.lautfm-auto-banner { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 12px; border-color: rgba(139, 92, 246, .4); background: linear-gradient(90deg, rgba(139, 92, 246, .12), transparent); }
.lautfm-auto-banner i { color: #8b5cf6; flex: none; }
.panel-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.panel-head h2 { margin-right: auto; }
.panel-head input[type=search], .panel-head select { background: var(--panel-2); border: 1px solid var(--line); border-radius: 7px; padding: 3px 7px; min-width: 0; max-width: 150px; }
.drop-hint { border: 1px dashed var(--line); color: var(--muted); font-size: 13px; padding: 10px 12px; text-align: center; }
.drop-hint.drop { outline: 2px dashed var(--primary); border-style: solid; }
.plain-list { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.row-btns { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.pill { font-size: 10px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: #1e2c49; color: var(--muted); white-space: nowrap; }
.pill.active, .pill.connected, .pill.running { background: rgba(34, 197, 94, .18); color: #86efac; box-shadow: 0 0 10px rgba(34, 197, 94, .35); }
.pill.standby, .pill.takeover_pending, .pill.connecting { background: rgba(47, 140, 255, .18); color: #93c5fd; box-shadow: 0 0 10px rgba(47, 140, 255, .35); }
.pill.failed, .pill.error, .pill.blocked { background: rgba(239, 68, 68, .2); color: #fca5a5; box-shadow: 0 0 10px rgba(239, 68, 68, .35); }
.pill.unsupported, .pill.restarting { background: rgba(245, 158, 11, .2); color: #fcd34d; box-shadow: 0 0 10px rgba(245, 158, 11, .35); }
/* Dashboard (Senderübersicht) */
.ov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.ov-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 8px; background: rgba(255, 255, 255, .02); }
.ov-head { display: flex; align-items: center; gap: 10px; }
.ov-logo { width: 40px; height: 40px; border-radius: 10px; flex: none; display: grid; place-items: center; font-weight: 900; font-size: 13px; color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent)); overflow: hidden; }
.ov-logo.has-img img { width: 100%; height: 100%; object-fit: cover; }
.ov-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ov-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-now { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.tag.live { background: rgba(34, 197, 94, .18); color: #86efac; }
.tabs { display: flex; gap: 3px; flex-wrap: wrap; }
.tabs button { background: none; border: 1px solid transparent; border-radius: 7px; padding: 2px 9px; color: var(--muted); cursor: pointer; font-size: 12px; }
.tabs button[aria-pressed="true"] { background: rgba(47, 140, 255, .18); border-color: rgba(47, 140, 255, .45); color: #fff; }

/* Dashboard-Raster */
.dash { flex: 1; min-height: 0; overflow: auto; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 12px; padding: 12px; }
.dash-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 12px; }
.row3 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) 250px; gap: 12px; min-height: 360px; }
.row3 > .panel { max-height: 520px; }
.stack { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

/* Decks */
.decks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.deck { --c: var(--deck-a); position: relative; border-radius: var(--radius); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 16%, #0d182e), #0b1528 60%); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); box-shadow: 0 0 22px color-mix(in srgb, var(--c) 18%, transparent), inset 0 1px 0 rgba(255, 255, 255, .05); overflow: hidden; display: flex; flex-direction: column; }
.deck[data-deck="B"] { --c: var(--deck-b); }
.deck[data-deck="C"] { --c: var(--deck-c); }
.deck[data-deck="D"] { --c: var(--deck-d); }
.deck.drop { outline: 2px solid var(--c); }
.deck[data-status="playing"] { box-shadow: 0 0 30px color-mix(in srgb, var(--c) 35%, transparent), inset 0 1px 0 rgba(255, 255, 255, .06); }
.deck-head { display: flex; align-items: center; gap: 8px; padding: 7px 10px; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 45%, transparent), color-mix(in srgb, var(--c) 12%, transparent)); font-weight: 700; }
.deck-head { white-space: nowrap; overflow: hidden; }
.deck-head .role { color: color-mix(in srgb, var(--c) 60%, #fff); font-weight: 600; }
.deck-status { margin-left: auto; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.deck[data-status="playing"] .deck-status { color: #fff; }
.deck-body { display: grid; grid-template-columns: 58px minmax(0, 1fr) 10px; gap: 10px; padding: 10px; align-items: center; }
.deck-title { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deck-artist { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.deck-time { display: flex; justify-content: space-between; align-items: baseline; font-variant-numeric: tabular-nums; margin-top: 3px; }
.deck-remain { font-size: 17px; font-weight: 700; }
.deck-remain.warn { color: var(--amber); }
.deck-remain.end { color: var(--red); animation: pulse 1s infinite; }
.vu-deck { width: 8px; height: 58px; border-radius: 4px; background: #0a1427; overflow: hidden; display: flex; align-items: flex-end; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04); }
.vu-deck i { display: block; width: 100%; height: 0; background: linear-gradient(0deg, var(--green) 0 65%, var(--amber) 65% 85%, var(--red) 85%); box-shadow: 0 0 8px 1px rgba(34, 197, 94, .5); transition: height .08s linear; }
.progress { height: 5px; margin: 0 10px; background: rgba(255, 255, 255, .08); border-radius: 3px; overflow: hidden; cursor: pointer; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 40%, #fff)); box-shadow: 0 0 8px var(--c); }
.deck-ctrl { display: flex; gap: 5px; align-items: center; padding: 9px 10px 6px; }
.deck-btn { padding: 5px 8px; border-radius: 8px; }
.deck-btn.play { width: 40px; height: 32px; border-radius: 50%; background: color-mix(in srgb, var(--c) 30%, #0d182e); border-color: var(--c); }
.deck-btn.play[aria-pressed="true"] { background: var(--c); color: #04101f; box-shadow: 0 0 14px var(--c); }
.deck-btn.cue { font-size: 11px; font-weight: 750; letter-spacing: .05em; }
.deck-btn.cue[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: #1f1300; }
.deck-ctrl input[type=range] { flex: 1; min-width: 30px; accent-color: var(--c); }
.deck-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 0 10px 10px; font-size: 11px; }
.deck-stats div { background: rgba(0, 0, 0, .22); border-radius: 6px; padding: 3px 6px; display: flex; flex-direction: column; }
.deck-stats span:first-child { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.deck-stats span:last-child { font-variant-numeric: tabular-nums; font-weight: 650; }

/* Cover */
.cover { width: 58px; height: 58px; border-radius: 9px; overflow: hidden; flex: none; display: grid; place-items: center; font-weight: 800; color: rgba(255, 255, 255, .85); background: linear-gradient(135deg, var(--c, var(--primary)), #1b2a52); font-size: 16px; }
.cover.small { width: 32px; height: 32px; border-radius: 6px; font-size: 11px; }
.cover.big { width: 74px; height: 74px; font-size: 20px; }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Cardwall */
.carts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; }
.cart {
  position: relative; border-radius: 11px; padding: 9px 10px; min-height: 84px; cursor: pointer; text-align: left;
  border: 1px solid color-mix(in srgb, var(--c) 70%, #fff 0%); color: #fff; display: flex; flex-direction: column; gap: 4px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--c) 85%, #fff 8%), color-mix(in srgb, var(--c) 55%, #000 35%));
  box-shadow: 0 6px 18px color-mix(in srgb, var(--c) 28%, transparent), inset 0 1px 0 rgba(255, 255, 255, .2);
  transition: transform .08s ease;
}
.cart:hover { transform: translateY(-1px); }
.cart:active { transform: scale(.98); }
.cart .cart-top { display: flex; align-items: center; gap: 7px; }
.cart .cart-ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .18); }
.cart.empty { background: rgba(255, 255, 255, .03); border: 1px dashed var(--line-2); color: var(--muted); box-shadow: none; }
.cart.empty .cart-ico { background: rgba(255, 255, 255, .05); }
.cart.playing { outline: 2px solid #fff; box-shadow: 0 0 22px var(--c); }
.cart.drop { outline: 2px dashed #fff; }
.cart-label { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-sub { font-size: 11px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-dur { position: absolute; right: 9px; bottom: 7px; font-size: 11px; font-variant-numeric: tabular-nums; opacity: .9; }
.cart-edit { position: absolute; top: 4px; right: 5px; background: none; border: 0; color: inherit; opacity: .75; cursor: pointer; font-size: 14px; }

/* Now Playing */
.np-card { display: flex; gap: 12px; align-items: center; }
.np-text { min-width: 0; }
.np-title { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-artist { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-time { color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 3px; font-size: 12px; }
.np-bar { height: 4px; background: rgba(255, 255, 255, .08); border-radius: 2px; margin: 10px 0; overflow: hidden; }
.np-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--accent)); }
.np-next-head { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.next-list { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.next-list li { display: flex; align-items: center; gap: 8px; }
.next-list .t { min-width: 0; flex: 1; }
.next-list .t div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.next-list .t div:last-child { color: var(--muted); font-size: 11px; }

/* Listen */
.table-wrap { flex: 1; overflow: auto; min-height: 120px; position: relative; border-radius: 8px; }
.table-wrap.drop { outline: 2px dashed var(--primary); }
table.list { width: 100%; border-collapse: collapse; }
.list th { position: sticky; top: 0; z-index: 1; background: var(--panel-solid); color: var(--muted); font-weight: 550; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; text-align: left; padding: 5px 6px; border-bottom: 1px solid var(--line); }
.queue-panel .list td:nth-child(2) { max-width: 0; width: 100%; }
.list td { padding: 4px 6px; border-bottom: 1px solid rgba(88, 132, 214, .08); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.list tr[draggable="true"] { cursor: grab; }
.list tbody tr:hover { background: rgba(47, 140, 255, .08); }
.list tbody tr.current td { background: rgba(34, 197, 94, .14); color: #bbf7d0; }
.list tr.drop-before td { box-shadow: 0 2px 0 var(--primary) inset; }
.list .act { text-align: right; width: 1%; }
.list .act button, .list .act select { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0 4px; }
.list .act button:hover { color: var(--text); }
.tag { font-size: 10px; padding: 1px 6px; border-radius: 5px; background: rgba(47, 140, 255, .14); color: #9cc4ff; }
.tag.cat { background: color-mix(in srgb, var(--c, #2f8cff) 22%, transparent); color: color-mix(in srgb, var(--c, #2f8cff) 55%, #fff); }
.empty { color: var(--muted); padding: 18px; text-align: center; }

/* Schnelltrigger & Live-Voice */
.quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.quick button { display: flex; align-items: center; gap: 7px; padding: 7px 8px; border-radius: 8px; background: color-mix(in srgb, var(--c) 10%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); color: var(--text); cursor: pointer; text-align: left; font-size: 12px; }
.quick button:hover { border-color: var(--c); background: color-mix(in srgb, var(--c) 22%, transparent); box-shadow: 0 0 12px color-mix(in srgb, var(--c) 35%, transparent); }
.quick button .ico { color: var(--c); }

/* Quick-Action-Karten: farblich getönte Aktionsboxen (z. B. laut.fm Radioadmin „Station“-Reiter),
   dieselbe --c-Farblogik wie Schnellzugriff/Cardwall/Decks. */
.qa-stack { display: flex; flex-direction: column; gap: 10px; }
.qa-card { --c: var(--primary); border-radius: 10px; padding: 10px 12px; background: color-mix(in srgb, var(--c) 8%, transparent); border: 1px solid color-mix(in srgb, var(--c) 25%, transparent); }
.qa-card.qa-success { --c: var(--green); }
.qa-card.qa-warning { --c: var(--amber); }
.qa-card.qa-danger { --c: var(--red); }
.qa-card.qa-purple { --c: var(--accent); }
.qa-card-head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; color: color-mix(in srgb, var(--c) 70%, #fff); }
.qa-card-head .ico { color: var(--c); flex: none; }
.qa-card-desc { color: var(--muted); font-size: 12px; margin: 3px 0 0; }
.qa-card-actions { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.lv-body { display: grid; grid-template-columns: 14px auto 1fr; gap: 12px; align-items: center; }
.vu-v { width: 10px; height: 76px; border-radius: 5px; background: #0a1427; overflow: hidden; display: flex; align-items: flex-end; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04); }
.vu-v i { display: block; width: 100%; height: 0; background: linear-gradient(0deg, var(--green) 0 65%, var(--amber) 65% 85%, var(--red) 85%); box-shadow: 0 0 8px 1px rgba(34, 197, 94, .5); transition: height .08s linear; }
.mic-btn { width: 76px; height: 76px; border-radius: 50%; border: 2px solid rgba(47, 140, 255, .6); background: radial-gradient(circle at 35% 30%, #4aa3ff, #1d5fd0); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: 0 0 24px rgba(47, 140, 255, .45); }
.mic-btn.on { background: radial-gradient(circle at 35% 30%, #ff6b6b, #c81e1e); border-color: #ff8a8a; box-shadow: 0 0 28px rgba(239, 68, 68, .6); animation: pulse 1.4s infinite; }
.lv-side { display: flex; flex-direction: column; gap: 6px; }

/* Rechte Spalte */
.stream-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; }
.stream-sum div { background: rgba(0, 0, 0, .2); border-radius: 8px; padding: 6px 8px; display: flex; flex-direction: column; }
.stream-sum span { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.stream-sum strong { font-size: 16px; font-variant-numeric: tabular-nums; }
.sources, .outputs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.src, .out { background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 9px; padding: 7px 8px; display: grid; grid-template-columns: auto 1fr auto; gap: 2px 8px; align-items: center; }
.src.active { border-color: rgba(34, 197, 94, .7); background: rgba(34, 197, 94, .08); box-shadow: 0 0 14px rgba(34, 197, 94, .15); }
.prio { font-weight: 800; font-variant-numeric: tabular-nums; border-radius: 7px; padding: 3px 7px; background: rgba(47, 140, 255, .18); color: #93c5fd; grid-row: span 2; text-align: center; min-width: 36px; }
.src-name, .out-name { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.src-meta, .out-meta { color: var(--muted); font-size: 11px; grid-column: 2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.src-actions { grid-row: span 2; display: flex; gap: 4px; }
.po-title { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.po-meta { font-size: 11px; margin: 2px 0 8px; }
.po-actions { display: flex; gap: 5px; flex-wrap: wrap; }
.fader-row, .sys-row { display: grid; grid-template-columns: 62px 1fr 62px; gap: 8px; align-items: center; margin: 4px 0; color: var(--muted); font-size: 12px; }
.fader-row input { width: 100%; }

/* Regler als leuchtender runder Knopf statt der schlichten Browser-Vorgabe - reiner visueller Stil,
   dieselbe echte Funktion (Master/Ducking/Vorhören, Deck-Lautstärke usw.). Erbt --c vom umgebenden
   Element (z. B. .deck), damit jeder Deck-Regler in seiner eigenen Akzentfarbe leuchtet. */
input[type="range"] {
  --c: var(--primary);
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 20px;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--c) 0%, color-mix(in srgb, var(--c) 35%, transparent) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--c) 0%, color-mix(in srgb, var(--c) 35%, transparent) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--c) 62%);
  border: 2px solid color-mix(in srgb, var(--c) 70%, #fff);
  box-shadow: 0 0 10px 2px color-mix(in srgb, var(--c) 55%, transparent);
  transition: box-shadow .15s ease;
}
input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 2px solid color-mix(in srgb, var(--c) 70%, #fff);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--c) 62%);
  box-shadow: 0 0 10px 2px color-mix(in srgb, var(--c) 55%, transparent);
  transition: box-shadow .15s ease;
}
input[type="range"]:hover::-webkit-slider-thumb, input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 14px 3px color-mix(in srgb, var(--c) 70%, transparent); }
input[type="range"]:hover::-moz-range-thumb, input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 14px 3px color-mix(in srgb, var(--c) 70%, transparent); }
input[type="range"]:disabled { opacity: .4; cursor: default; }
.vu-h { height: 16px; border-radius: 4px; background: repeating-linear-gradient(90deg, #0a1427 0 5px, #081021 5px 7px); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04); }
.vu-h i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green) 0 60%, #a3e635 60% 72%, var(--amber) 72% 86%, var(--red) 86%); -webkit-mask: repeating-linear-gradient(90deg, #000 0 5px, transparent 5px 7px); mask: repeating-linear-gradient(90deg, #000 0 5px, transparent 5px 7px); box-shadow: 0 0 8px 1px rgba(34, 197, 94, .4); transition: width .08s linear; }
.meter-row { display: grid; grid-template-columns: 40px 1fr 40px 1fr; gap: 6px; align-items: center; margin-top: 6px; color: var(--muted); font-size: 12px; }
.meter-row.small { grid-template-columns: 52px 1fr 40px; }
.meter { height: 7px; background: #0a1427; border-radius: 4px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04); }
.meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green) 0 70%, var(--amber) 70% 88%, var(--red) 88%); box-shadow: 0 0 6px 1px rgba(34, 197, 94, .4); transition: width .15s linear; }
.meter.gr i { background: var(--accent); box-shadow: 0 0 6px 1px color-mix(in srgb, var(--accent) 55%, transparent); }
.sys-row .meter i { background: linear-gradient(90deg, var(--primary), var(--cyan)); box-shadow: 0 0 6px 1px color-mix(in srgb, var(--cyan) 45%, transparent); }
.silence { margin-top: 8px; padding: 4px 8px; border-radius: 6px; background: rgba(239, 68, 68, .2); color: #fecaca; font-weight: 700; text-align: center; }

/* Statusleiste */
.status { display: flex; align-items: center; gap: 18px; padding: 6px 14px; border-top: 1px solid var(--line); background: rgba(5, 11, 23, .9); font-size: 12px; white-space: nowrap; overflow: hidden; }
.st-auto { display: inline-flex; align-items: center; gap: 6px; }
.st-next strong { font-weight: 600; }
.st-msg { color: var(--muted); overflow: hidden; text-overflow: ellipsis; flex: 1; }
#status-text.err { color: #fca5a5; }
.st-chips { display: flex; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.bottom-nav { display: none; }

/* Mobil-Übersicht */
.m-home { display: none; }
@media (max-width: 900px) {
  .m-home { display: flex; flex-direction: column; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
  .m-np { display: flex; gap: 12px; align-items: center; }
  .m-np-text { min-width: 0; }
  .m-transport { display: flex; justify-content: center; align-items: center; gap: 22px; }
  .m-transport .icon-btn { width: 52px; height: 52px; border-radius: 50%; }
  .m-play { width: 74px; height: 74px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; cursor: pointer; background: radial-gradient(circle at 35% 30%, #4aa3ff, #1d5fd0); box-shadow: 0 0 26px rgba(47, 140, 255, .5); }
  .m-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .m-tiles button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 12px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(30, 50, 90, .6), rgba(18, 33, 62, .6)); color: var(--text); font-size: 12px; cursor: pointer; }
  .m-tiles .ico { color: #6fb1ff; }
  .m-stream { font-size: 12px; }
  .decks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Dialog */
dialog { background: var(--panel-solid); color: var(--text); border: 1px solid var(--line-2); border-radius: 14px; padding: 16px; width: min(460px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
dialog::backdrop { background: rgba(2, 6, 16, .7); backdrop-filter: blur(3px); }
dialog h3 { margin: 0 0 12px; font-size: 15px; }
.field { display: flex; flex-direction: column; gap: 3px; margin-bottom: 10px; }
.field label { color: var(--muted); font-size: 12px; }
.field input, .field select { background: var(--panel-2); border: 1px solid var(--line); border-radius: 7px; padding: 6px 8px; }
.field input[type=checkbox] { align-self: flex-start; }
.field small { color: var(--muted); font-size: 11px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }

/* Responsiv */
@media (max-width: 1500px) {
  .row3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .row3 .stack { grid-column: span 2; flex-direction: row; }
  .row3 .stack > .panel { flex: 1; }
  .carts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1200px) {
  .dash { grid-template-columns: minmax(0, 1fr); }
  .side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .decks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; box-shadow: 20px 0 60px rgba(0, 0, 0, .6); }
  /* Tastenkürzel (Alt+1 …) sind ohne Tastatur nutzlos und kosten hier nur Platz neben ohnehin schon
     schmalen Bezeichnungen. */
  .nav kbd { display: none; }
  .top .mobile-only { display: inline-flex; }
  .top-actions { margin-left: 0; width: 100%; order: 5; overflow-x: auto; }
  .clock { margin-left: auto; }
  .row3 { grid-template-columns: minmax(0, 1fr); }
  .row3 .stack { grid-column: auto; flex-direction: column; }
  .side { grid-template-columns: minmax(0, 1fr); }
  .status { display: none; }
  .bottom-nav { display: flex; justify-content: space-around; border-top: 1px solid var(--line); background: rgba(5, 11, 23, .96); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bottom-nav button { display: flex; flex-direction: column; align-items: center; gap: 2px; background: none; border: 0; color: var(--muted); font-size: 11px; cursor: pointer; }
  .bottom-nav button[aria-pressed="true"] { color: var(--primary); }
}
@media (max-width: 560px) {
  .decks { grid-template-columns: minmax(0, 1fr); }
  .carts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cart { min-height: 72px; }
  .dash { padding: 8px; gap: 8px; }
  .brand-sub { display: none; }
  #clock-date { display: none; }
}
/* Bereiche */
.views { margin-left: 4px; }
.view-page { flex: 1; min-height: 0; overflow: auto; padding: 10px; }
.view-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); align-items: start; }
.view-grid .table-wrap { max-height: 420px; }
/* Verwaltungs- und Tabellenansichten duerfen die Hauptspalte nie breiter druecken als den
   verfuegbaren Platz. Breite Tabellen scrollen horizontal statt Sidebar/Content zu ueberlagern. */
.view-page, .view-grid, .view-grid > *, .panel, .table-wrap { min-width: 0; }
.table-wrap { overflow-x: auto; max-width: 100%; }
.table-wrap table { width: 100%; min-width: 680px; }
.panel .actions, .panel .toolbar, .view-page .actions { flex-wrap: wrap; }
@media (max-width: 900px) {
  .table-wrap table { min-width: 560px; }
}
tr.active-row td { background: rgba(34,197,94,.08); }
.days { display: flex; gap: 6px; flex-wrap: wrap; }
.field textarea { background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; font: 12px/1.4 ui-monospace, monospace; color: var(--text); }
.pl { border-bottom: 1px solid var(--line); padding: 6px 0; }
.pl-head { display: flex; align-items: center; gap: 8px; }
.pl-head .act { margin-left: auto; }
.pl-head .act button, .pl-items .act button { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0 4px; }
.pl-dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.pl-name { background: none; border: 0; color: var(--text); font-weight: 600; cursor: pointer; padding: 0; text-align: left; }
.pl-items { margin: 6px 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.pl-items li { display: flex; gap: 8px; align-items: center; }
.pl-items li > span:first-child { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-now { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.podcast-head p { margin: 0 0 8px; }
.podcast-feed-url { display: flex; gap: 6px; margin-bottom: 8px; }
.podcast-feed-url input { flex: 1; min-width: 0; font-family: monospace; font-size: 12px; }
.pl-head[draggable] { cursor: grab; }
/* Sendeplan-Gitter (Drag & Drop) */
.sp-grid { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.sp-head { display: grid; grid-template-columns: 44px repeat(7, 1fr); background: var(--panel-solid); }
.sp-corner { border-right: 1px solid var(--line); }
.sp-day { padding: 5px 0; text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; border-left: 1px solid var(--line); }
.sp-scroll { max-height: 480px; overflow-y: auto; }
.sp-body { display: grid; grid-template-columns: 44px repeat(7, 1fr); position: relative; height: 1440px; }
.sp-hours { position: relative; border-right: 1px solid var(--line); }
.sp-hourlabel { position: absolute; left: 0; right: 4px; text-align: right; transform: translateY(-6px); font-size: 10px; color: var(--muted); }
.sp-col { position: relative; border-left: 1px solid var(--line); background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 59px, var(--line) 59px, var(--line) 60px); }
.sp-col:first-of-type { border-left: 0; }
.sp-block { position: absolute; left: 2px; right: 2px; border-radius: 6px; background: linear-gradient(135deg, rgba(47, 140, 255, .35), rgba(139, 92, 246, .28)); border: 1px solid var(--line-2); padding: 3px 5px; font-size: 11px; overflow: hidden; cursor: grab; display: flex; flex-direction: column; gap: 1px; }
.sp-block.active { border-color: #22c55e; box-shadow: 0 0 0 1px #22c55e inset; }
.sp-label { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-time { color: var(--muted); font-size: 10px; }
.sp-resize { position: absolute; left: 0; right: 0; bottom: 0; height: 7px; cursor: ns-resize; }
.sp-resize::after { content: ''; position: absolute; left: 50%; bottom: 2px; width: 20px; height: 2px; margin-left: -10px; background: var(--line-2); border-radius: 2px; }
/* laut.fm */
.lf-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.lf-content { display: flex; flex-direction: column; gap: 10px; }
.lf-split { display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: 10px; align-items: start; }
.lf-pl { display: flex; flex-direction: column; gap: 4px; max-height: 60vh; overflow: auto; }
.lf-pl-item { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; color: var(--text); cursor: pointer; text-align: left; }
.lf-pl-item:hover { border-color: var(--primary); }
.lf-search { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.lf-search input { background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; min-width: 0; flex: 1 1 120px; }
.row-btns { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border-bottom: 1px solid rgba(31,45,74,.5); }
.kv > span:last-child { text-align: right; overflow-wrap: anywhere; }
.lf-grid { border-collapse: collapse; width: 100%; font-size: 11px; }
.lf-grid th, .lf-grid td { border: 1px solid var(--line); padding: 2px 4px; }
.lf-grid td { cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px; height: 20px; }
.lf-grid td:hover { outline: 1px solid var(--primary); }
.lf-form { display: grid; gap: 4px; }
.lf-logo { max-width: 160px; border-radius: 10px; display: block; margin-bottom: 8px; }
.bars { display: flex; gap: 4px; align-items: flex-end; height: 120px; margin-top: 10px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; font-size: 9px; color: var(--muted); }
.bar i { width: 100%; background: linear-gradient(180deg, var(--primary), var(--accent)); border-radius: 3px 3px 0 0; min-height: 2px; }
@media (max-width: 720px) { .lf-split { grid-template-columns: 1fr; } .views { width: 100%; order: 5; } }
.field output.info { display: block; padding: 8px 10px; background: rgba(255,255,255,.04); border-radius: 8px; white-space: pre-line; }

/* ---------- Navigation ---------- */
.nav-group { color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding: 12px 10px 4px; }
.nav-group:first-child { padding-top: 0; }
.nav kbd { margin-left: auto; font: 10px/1 inherit; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 2px 5px; opacity: .7; }
.nav .nav-badge + kbd { margin-left: 6px; }

/* ---------- Fenster-System (Desktop) ---------- */
.dash.ws-mode { display: block; }
.dash.ws-mode > .dash-main, .dash.ws-mode > .side { display: none; }
.ws { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 44px; grid-auto-flow: row dense; gap: 12px; }
.ws > .win { position: relative; overflow: auto; min-width: 0; scrollbar-width: thin; }
.ws > .win > .win-handle { position: sticky; top: -10px; z-index: 2; margin: -10px -12px 8px; padding: 8px 12px; background: var(--panel); border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; }
.ws:not(.locked) .win-handle { cursor: grab; }
.ws:not(.locked) .win-handle:active { cursor: grabbing; }
.ws.locked .win-resize, .ws.locked .win-tools [data-act] { display: none; }
.win-frame > .decks { flex: 1; }
.win-tools { display: inline-flex; gap: 2px; order: 99; }
.win-btn { background: none; border: 1px solid transparent; color: var(--muted); border-radius: 6px; width: 22px; height: 22px; display: grid; place-items: center; cursor: pointer; font-size: 16px; line-height: 1; padding: 0; }
.win-btn:hover { color: #fff; border-color: var(--line); background: rgba(255, 255, 255, .05); }
.win-resize { position: sticky; float: right; bottom: -10px; right: -12px; width: 16px; height: 16px; margin: -6px -10px -10px auto; cursor: nwse-resize; background: linear-gradient(135deg, transparent 50%, rgba(140, 170, 220, .5) 50%, transparent 62%, rgba(140, 170, 220, .5) 72%, transparent 80%); border-radius: 0 0 var(--radius) 0; z-index: 3; }
.ws > .win.floating { z-index: 50; box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(47, 140, 255, .35); }
.ws > .win.dragging { opacity: .85; z-index: 60; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.ws > .win.drop-before { outline: 2px dashed var(--accent, #2f8cff); outline-offset: 3px; }
.flash { animation: win-flash 1.2s ease-out; }
@keyframes win-flash { 0%, 30% { box-shadow: 0 0 0 3px rgba(47, 140, 255, .8), 0 0 30px rgba(47, 140, 255, .5); } 100% { box-shadow: none; } }
@media (prefers-reduced-motion: reduce) { .flash { animation: none; } }

.station-logo.has-img { background: #0b1628; padding: 0; overflow: hidden; }
.station-logo img { width: 100%; height: 100%; object-fit: cover; }

.ai-pending { border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; margin-bottom: 8px; background: rgba(139, 92, 246, .06); }
.ai-pending p { margin: 6px 0; }
.list td.err { color: #ff8a9b; }
.with-list { display: contents; }
.with-action { display: flex; gap: 6px; align-items: center; }
.with-action input { flex: 1; min-width: 0; }
.algo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-bottom: 10px; }
.algo { border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: rgba(255, 255, 255, .02); display: flex; flex-direction: column; gap: 6px; }
.algo.on { border-color: rgba(34, 197, 94, .45); }
.algo-head { display: flex; align-items: center; gap: 8px; }
.algo-head .pill { margin-left: auto; }
.algo p { margin: 0; font-size: 12px; }

/* ---------- Nextcloud ---------- */
.mh-toolbar { margin: 12px 0; align-items: center; }
.mh-toolbar input { flex: 1; min-width: 190px; }
.mh-toolbar [role="status"] { white-space: nowrap; }
.mh-filters { margin-bottom: 12px; }
.mh-grid { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(300px, 2fr); gap: 12px; margin-bottom: 12px; }
.mh-page-info { margin: 6px 0 10px; }
.mh-entry { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 8px 0; border-bottom: 1px solid rgba(155, 180, 220, .14); overflow-wrap: anywhere; }
.mh-entry strong { min-width: 0; }
.mh-entry > .btn { margin-left: auto; }
.mh-actions { flex-wrap: wrap; margin-top: 6px; }
@media (max-width: 700px) { .mh-grid { grid-template-columns: 1fr; } .mh-toolbar [role="status"] { white-space: normal; } }
.nc-crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.nc-list { list-style: none; margin: 0; padding: 0; }
.nc-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; border-bottom: 1px solid var(--line); min-height: 48px; }
.nc-row.off { opacity: .45; }
.nc-chk { display: grid; place-items: center; height: 100%; }
.nc-chk input { width: 20px; height: 20px; }
.nc-name { display: flex; align-items: center; gap: 10px; background: none; border: 0; color: inherit; text-align: left; padding: 12px 6px; cursor: pointer; min-width: 0; font: inherit; }
.nc-name span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nc-row.dir .nc-name { font-weight: 600; }
.nc-bar { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 0 2px; background: var(--panel); }

/* Setup-Assistent */
.wizard-head h3 { margin: 2px 0 8px; }
.wizard-bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); margin-bottom: 12px; overflow: hidden; }
.wizard-bar i { display: block; height: 100%; background: var(--accent, #19c3e6); transition: width .2s; }
.wizard-error { color: #fecaca; background: rgba(239, 68, 68, .15); border: 1px solid rgba(239, 68, 68, .5); border-radius: 8px; padding: 8px 10px; }
.track-warn { color: #fbbf24; cursor: help; }
/* Preflight-Prüfung */
.pf-status { border-radius: 12px; padding: 2px 9px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pf-status.pf-ok { background: rgba(34, 197, 94, .15); color: #86efac; }
.pf-status.pf-warning { background: rgba(245, 158, 11, .15); color: #fcd34d; }
.pf-status.pf-empty, .pf-status.pf-missing { background: rgba(239, 68, 68, .15); color: #fca5a5; }

/* Uhr-Vorlage (Kategorien-Takt) */
.clock-slots { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.clock-chip { display: flex; align-items: center; gap: 6px; background: color-mix(in srgb, var(--c, #2f8cff) 22%, transparent); border: 1px solid color-mix(in srgb, var(--c, #2f8cff) 55%, transparent); color: color-mix(in srgb, var(--c, #2f8cff) 65%, #fff); border-radius: 20px; padding: 4px 6px 4px 12px; font-size: 13px; cursor: grab; }
.clock-chip button { background: none; border: 0; color: inherit; opacity: .7; cursor: pointer; border-radius: 50%; width: 18px; height: 18px; line-height: 1; }
.clock-chip button:hover { opacity: 1; background: rgba(255, 255, 255, .12); }

/* Hörer-Posteingang */
.inbox-item { border-top: 1px solid var(--line); padding: 10px 2px; display: grid; gap: 6px; }
.inbox-item.new { border-left: 3px solid var(--accent, #19c3e6); padding-left: 8px; }

/* Handbuch (In-App-Ansicht, Inhalt aus handbuch.html geladen, eigener Variablen-Satz statt globaler Kollision) */
#view-handbuch { --hb-bg: #07101f; --hb-panel: #0d1a30; --hb-line: #1f2d4a; --hb-text: #e6edf8; --hb-muted: #8fa3c4; --hb-accent: #2f8cff; --hb-ok: #22c55e; --hb-warn: #f59e0b; color: var(--hb-text); }
#view-handbuch .hb-wrap { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; max-width: 1200px; margin: 0 auto; }
#view-handbuch a { color: #7cb8ff; }
#view-handbuch nav.toc { position: sticky; top: 0; align-self: start; max-height: calc(100vh - 120px); overflow: auto; font-size: 14px; }
#view-handbuch nav.toc a { display: block; padding: 5px 8px; border-radius: 6px; text-decoration: none; color: var(--hb-muted); }
#view-handbuch nav.toc a:hover { background: rgba(47, 140, 255, .12); color: #fff; }
#view-handbuch nav.toc .grp { color: var(--hb-muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; margin: 12px 8px 4px; }
#view-handbuch main section { background: var(--hb-panel); border: 1px solid var(--hb-line); border-radius: 12px; padding: 16px 20px; margin-bottom: 16px; scroll-margin-top: 12px; }
#view-handbuch h1 { font-size: 26px; margin: 8px 0 4px; }
#view-handbuch h2 { font-size: 20px; margin: 0 0 8px; }
#view-handbuch h3 { font-size: 16px; margin: 16px 0 6px; color: #cfe0ff; }
#view-handbuch .lead { color: var(--hb-muted); margin-top: 0; }
#view-handbuch kbd { border: 1px solid var(--hb-line); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; font-size: 12px; background: #0b1628; }
#view-handbuch code { background: #0b1628; border: 1px solid var(--hb-line); border-radius: 4px; padding: 0 4px; font-size: 13px; overflow-wrap: anywhere; }
#view-handbuch table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 14px; }
#view-handbuch th, #view-handbuch td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--hb-line); vertical-align: top; }
#view-handbuch th { color: var(--hb-muted); font-weight: 600; }
#view-handbuch .tip, #view-handbuch .warn, #view-handbuch .todo { border-radius: 8px; padding: 8px 12px; margin: 10px 0; }
#view-handbuch .tip { background: rgba(34, 197, 94, .08); border-left: 3px solid var(--hb-ok); }
#view-handbuch .warn { background: rgba(245, 158, 11, .08); border-left: 3px solid var(--hb-warn); }
#view-handbuch .todo { background: rgba(143, 163, 196, .08); border-left: 3px solid var(--hb-muted); color: var(--hb-muted); }
#view-handbuch ol, #view-handbuch ul { padding-left: 22px; }
#view-handbuch .hb-search { width: 100%; margin-bottom: 10px; background: var(--hb-panel); border: 1px solid var(--hb-line); border-radius: 7px; padding: 6px 9px; color: var(--hb-text); }
@media (max-width: 860px) {
  #view-handbuch .hb-wrap { grid-template-columns: minmax(0, 1fr); }
  #view-handbuch nav.toc { position: static; max-height: none; background: var(--hb-panel); border: 1px solid var(--hb-line); border-radius: 12px; padding: 8px; }
  #view-handbuch nav.toc a { padding: 9px 8px; }
  #view-handbuch main section { padding: 14px; }
  #view-handbuch table { display: block; overflow-x: auto; }
}


/* ========================================================================
   AirDeck UI 2026 – Referenzdesign
   Verbindliche Studio-Optik: klar gruppierte Navigation, kompakter Header,
   Neon-Rahmen, deutliche Arbeitsflaechen und einheitliche Broadcast-Karten.
   ======================================================================== */
:root {
  --bg: #020817;
  --bg-2: #061126;
  --panel: rgba(7, 20, 42, .9);
  --panel-solid: #07162d;
  --panel-2: #0a1c38;
  --line: rgba(0, 170, 255, .22);
  --line-2: rgba(0, 196, 255, .42);
  --primary: #0b8cff;
  --accent: #8d37ff;
  --cyan: #00d8ff;
  --green: #16e080;
  --radius: 10px;
}

body {
  background:
    radial-gradient(1100px 650px at 42% -15%, rgba(0, 132, 255, .19), transparent 58%),
    radial-gradient(950px 700px at 88% 12%, rgba(138, 51, 255, .15), transparent 58%),
    linear-gradient(180deg, #020716 0%, #031026 48%, #020713 100%);
}

.sidebar {
  width: 220px;
  padding: 12px 9px;
  gap: 8px;
  background:
    linear-gradient(180deg, rgba(5, 16, 36, .99), rgba(2, 8, 20, .99));
  border-right: 1px solid rgba(0, 174, 255, .34);
  box-shadow: 14px 0 40px rgba(0, 0, 0, .22);
  overflow-y: auto;
  scrollbar-width: thin;
}

.logo {
  min-height: 54px;
  margin: 0 4px 4px;
  padding: 6px 8px 12px;
  border-bottom: 1px solid rgba(0, 176, 255, .18);
  font-size: 18px;
  letter-spacing: .12em;
}
.logo img {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  filter: drop-shadow(0 0 12px rgba(0, 210, 255, .46)) drop-shadow(0 0 18px rgba(139, 92, 246, .22));
}

.nav { gap: 5px; }
.nav-section {
  border: 0;
  margin: 0;
  min-width: 0;
}
.nav-section > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 26px;
  padding: 5px 10px 4px;
  color: #6f89b2;
  cursor: pointer;
  user-select: none;
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
}
.nav-section > summary::-webkit-details-marker { display: none; }
.nav-section > summary::after {
  content: '›';
  margin-left: auto;
  transform: rotate(0deg);
  transition: transform .16s ease;
  color: #5aaef7;
  font-size: 15px;
}
.nav-section[open] > summary::after { transform: rotate(90deg); }
.nav-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav button, .nav a.nav-link {
  min-height: 34px;
  padding: 7px 9px;
  border-radius: 8px;
  color: #c8d7ef;
}
.nav button .ico, .nav a.nav-link .ico { color: #8bc9ff; }
.nav a.nav-link:hover, .nav button:hover {
  background: linear-gradient(90deg, rgba(0, 149, 255, .13), rgba(139, 92, 246, .06));
  border-color: rgba(0, 187, 255, .22);
}
.nav button[aria-pressed="true"] {
  background: linear-gradient(90deg, rgba(0, 145, 255, .92), rgba(83, 53, 235, .88));
  border-color: rgba(0, 220, 255, .84);
  box-shadow: 0 0 18px rgba(0, 153, 255, .35), inset 0 1px 0 rgba(255,255,255,.18);
}
.nav button[aria-pressed="true"] .ico { color: #fff; }

.side-foot {
  border-top: 1px solid rgba(0, 179, 255, .16);
  padding-top: 9px;
}
.side-out {
  border: 1px solid rgba(0, 178, 255, .12);
  background: rgba(8, 29, 55, .66);
}

.top {
  min-height: 70px;
  padding: 9px 15px;
  gap: 12px;
  background: linear-gradient(180deg, rgba(4, 16, 38, .97), rgba(4, 13, 31, .93));
  border-bottom: 1px solid rgba(0, 190, 255, .34);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
}
.station-pick {
  min-width: 260px;
  padding: 6px 10px;
  border: 1px solid rgba(0, 178, 255, .28);
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(8, 36, 66, .78), rgba(19, 20, 59, .78));
}
.station-logo { width: 42px; height: 42px; }
#station-select { font-size: 14px; }
.onair {
  min-height: 38px;
  border-radius: 8px;
  padding: 7px 13px;
  background: rgba(12, 25, 47, .88);
}
.onair[data-state="on"], .onair[data-state="live"] {
  box-shadow: 0 0 18px rgba(255, 31, 105, .18);
}
.mode-switch {
  border-radius: 8px;
  background: rgba(6, 21, 42, .8);
}
.mode-switch button { padding: 8px 12px; }
.clock {
  min-width: 118px;
  padding: 4px 9px;
  border-left: 1px solid rgba(0, 182, 255, .2);
}
#clock-time { font-size: 24px; font-weight: 750; }

.panel {
  border-color: rgba(0, 176, 255, .3);
  background:
    linear-gradient(180deg, rgba(7, 24, 48, .94), rgba(5, 17, 37, .94));
  box-shadow:
    0 9px 28px rgba(0,0,0,.24),
    inset 0 1px 0 rgba(255,255,255,.025),
    0 0 0 1px rgba(4, 120, 255, .025);
}
.panel:hover { border-color: rgba(0, 192, 255, .4); }
.panel-head {
  min-height: 30px;
  margin: -2px -2px 8px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(0, 159, 255, .13);
}
.panel-head h2 {
  font-size: 14px;
  color: #eaf6ff;
}

.dash {
  grid-template-columns: minmax(0, 1fr) 305px;
  gap: 10px;
  padding: 10px;
}
.dash-main, .side { gap: 10px; }
.decks { gap: 8px; }
.deck {
  border-width: 1px;
  box-shadow: 0 0 18px color-mix(in srgb, var(--c) 13%, transparent);
}
.deck-head { min-height: 36px; }
.deck-body { padding: 9px; }
.deck-ctrl { padding-top: 7px; }

.carts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cart {
  min-height: 104px;
  padding: 10px;
  padding-bottom: 34px;
  border-radius: 9px;
}
.cart-actions {
  position: absolute;
  left: 8px;
  bottom: 6px;
  display: flex;
  gap: 5px;
}
.cart-play, .cart-cue {
  width: 26px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 6px;
  color: #fff;
  background: rgba(0,0,0,.25);
  cursor: pointer;
}
.cart-play:hover, .cart-cue:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.56);
}
.cart-cue[aria-pressed="true"] {
  color: #061427;
  background: #62dcff;
  border-color: #62dcff;
  box-shadow: 0 0 12px rgba(0,210,255,.6);
}
.cart-dur { bottom: 10px; right: 9px; }

.view-page { padding: 12px; }
.planning-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 185, 255, .34);
  border-radius: 10px;
  background:
    linear-gradient(100deg, rgba(0, 117, 255, .16), rgba(139, 48, 255, .11) 60%, rgba(4, 17, 39, .9));
}
.planning-hero > div { display: flex; flex-direction: column; gap: 2px; }
.planning-hero strong { font-size: 18px; }
.planning-hero span { color: var(--muted); font-size: 12px; }
.planning-workspace {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.planning-workspace .planning-schedule { grid-column: 1 / -1; }
.planning-schedule-help {
  margin: -1px 0 9px;
  color: #89a6c9;
  font-size: 11px;
}
.planning-now-pill {
  margin-left: auto;
  color: #7ee9b1;
  font-size: 10px;
  font-weight: 700;
}
.sp-grid {
  border-color: rgba(0, 183, 255, .29);
  border-radius: 9px;
  background: #041126;
}
.sp-head {
  background: linear-gradient(180deg, #0b2242, #081a34);
  border-bottom: 1px solid rgba(0, 191, 255, .24);
}
.sp-day { color: #9bc8f2; padding: 7px 0; }
.sp-col {
  border-color: rgba(0, 168, 255, .14);
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 59px, rgba(0, 160, 255, .12) 59px, rgba(0, 160, 255, .12) 60px);
}
.sp-block {
  border-color: rgba(0, 202, 255, .52);
  background: linear-gradient(135deg, rgba(0, 137, 255, .72), rgba(84, 70, 230, .66));
  box-shadow: 0 5px 18px rgba(0, 99, 255, .18);
}
.sp-block:nth-child(3n+2) {
  background: linear-gradient(135deg, rgba(0, 191, 124, .68), rgba(0, 120, 151, .68));
}
.sp-block:nth-child(3n) {
  background: linear-gradient(135deg, rgba(194, 43, 121, .7), rgba(123, 43, 204, .68));
}
.sp-block.active {
  border-color: #ff3b76;
  box-shadow: 0 0 0 1px #ff3b76 inset, 0 0 18px rgba(255, 28, 111, .26);
}

.table-wrap {
  border-radius: 8px;
  border: 1px solid rgba(0, 167, 255, .12);
  background: rgba(1, 10, 24, .32);
}
.list thead th {
  color: #89a6ca;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.list tbody tr:hover td { background: rgba(0, 134, 255, .08); }

@media (max-width: 1450px) {
  .sidebar { width: 206px; }
  .dash { grid-template-columns: minmax(0, 1fr) 285px; }
  .carts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .top { align-items: flex-start; }
  .station-pick { min-width: 220px; }
  .dash { grid-template-columns: minmax(0, 1fr); }
  .side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .planning-workspace { grid-template-columns: minmax(0, 1fr); }
  .planning-workspace .planning-schedule { grid-column: auto; }
}
@media (max-width: 900px) {
  .sidebar { width: min(86vw, 280px); }
  .nav-section > summary { min-height: 32px; }
  .nav button, .nav a.nav-link { min-height: 40px; }
  .carts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .planning-hero { align-items: flex-start; flex-direction: column; }
}


/* Dashboard nach Referenzlayout */
.ov-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 12px;
  padding: 18px;
  border: 1px solid rgba(0, 184, 255, .34);
  border-radius: 12px;
  background:
    radial-gradient(420px 180px at 78% 18%, rgba(141, 55, 255, .22), transparent 70%),
    linear-gradient(110deg, rgba(0, 121, 255, .18), rgba(4, 18, 42, .95) 52%, rgba(20, 9, 47, .92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 14px 34px rgba(0,0,0,.2);
}
.ov-hero-copy { min-width: 0; }
.ov-kicker {
  display: block;
  margin-bottom: 5px;
  color: #55dfff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .17em;
}
.ov-hero h1 { margin: 0 0 5px; font-size: clamp(22px, 3vw, 32px); line-height: 1.05; }
.ov-hero p { margin: 0; max-width: 660px; color: #9db0cf; }
.ov-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  gap: 8px;
}
.ov-stat {
  min-width: 92px;
  padding: 11px 13px;
  border: 1px solid rgba(0, 190, 255, .24);
  border-radius: 9px;
  background: rgba(3, 16, 37, .68);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ov-stat span { color: #7f97ba; font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }
.ov-stat strong { margin-top: 2px; font-size: 21px; color: #f2fbff; font-variant-numeric: tabular-nums; }
.ov-stations-panel { padding: 12px; }
.ov-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.ov-card {
  position: relative;
  overflow: hidden;
  gap: 10px;
  padding: 13px;
  background:
    linear-gradient(155deg, rgba(9, 31, 59, .92), rgba(5, 17, 36, .95));
  border-color: rgba(0, 177, 255, .25);
}
.ov-card::after {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  right: -80px;
  top: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(54, 122, 255, .18), transparent 68%);
  pointer-events: none;
}
.ov-card.is-onair {
  border-color: rgba(18, 224, 128, .44);
  box-shadow: 0 0 24px rgba(18, 224, 128, .08), inset 0 1px 0 rgba(255,255,255,.03);
}
.ov-logo { width: 48px; height: 48px; border-radius: 10px; }
.ov-title strong { font-size: 15px; }
.ov-now-card {
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid rgba(0, 177, 255, .14);
  background: rgba(1, 11, 26, .46);
}
.ov-now-label {
  display: block;
  margin-bottom: 2px;
  color: #7c94b7;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.ov-now { display: block; font-size: 12px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-actions { display: flex; gap: 7px; margin-top: auto; }
.ov-actions .btn:last-child { margin-left: auto; }

@media (max-width: 850px) {
  .ov-hero { grid-template-columns: minmax(0, 1fr); }
  .ov-hero-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 540px) {
  .ov-hero { padding: 14px; }
  .ov-hero-stats { grid-template-columns: 1fr; }
  .ov-grid { grid-template-columns: minmax(0, 1fr); }
}


/* Medien- und Playlist-Arbeitsbereiche */
.media-hero, .playlist-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 184, 255, .32);
  border-radius: 11px;
  background:
    radial-gradient(360px 150px at 82% 20%, rgba(135, 47, 255, .2), transparent 72%),
    linear-gradient(110deg, rgba(0, 124, 255, .15), rgba(4, 17, 39, .94) 55%, rgba(21, 8, 49, .9));
}
.media-hero h1, .playlist-hero h1 { margin: 0 0 3px; font-size: 22px; }
.media-hero p, .playlist-hero p { margin: 0; color: #91a7c7; font-size: 12px; }
.media-hero-actions, .playlist-hero-stats { flex: none; }
.media-count, .playlist-hero-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(0, 190, 255, .26);
  border-radius: 8px;
  color: #cfeeff;
  background: rgba(2, 16, 36, .66);
  font-variant-numeric: tabular-nums;
}
.media-workspace, .playlist-workspace { padding: 12px; }
.media-workspace > .row:first-of-type {
  gap: 5px;
  margin-bottom: 10px;
}
.media-workspace > .row:first-of-type .btn {
  min-height: 32px;
  border-radius: 8px;
}
.media-workspace .drop-hint {
  margin: 8px 0 10px;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  border-color: rgba(0, 190, 255, .32);
  background: linear-gradient(135deg, rgba(0, 111, 255, .07), rgba(140, 53, 255, .05));
}
.media-workspace .table-wrap { max-height: calc(100vh - 365px); }
.media-workspace .act button, .playlist-workspace .act button {
  min-width: 25px;
  min-height: 25px;
  border-radius: 6px;
  color: #a9d9ff;
}
.media-workspace .act button:hover, .playlist-workspace .act button:hover {
  background: rgba(0, 150, 255, .13);
  color: #fff;
}
.playlist-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr));
  gap: 9px;
}
.playlist-workspace .pl {
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(0, 174, 255, .2);
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(7, 29, 56, .84), rgba(4, 16, 35, .88));
}
.playlist-workspace .pl-head {
  min-height: 35px;
  flex-wrap: wrap;
}
.playlist-workspace .pl-dot { width: 12px; height: 34px; border-radius: 5px; }
.playlist-workspace .pl-name { font-size: 14px; font-weight: 700; }
.playlist-workspace .pl-items {
  margin: 8px 0 0;
  padding: 8px 0 0;
  border-top: 1px solid rgba(0, 174, 255, .13);
  list-style-position: inside;
}
.playlist-workspace .pl-items li {
  min-height: 30px;
  padding: 4px 5px;
  border-radius: 6px;
}
.playlist-workspace .pl-items li:hover { background: rgba(0, 139, 255, .07); }

.lifehack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 7px;
  margin: 10px 0;
}
.lifehack-result {
  margin: 12px 0;
  padding: 10px;
  border: 1px solid rgba(179, 136, 255, .25);
  border-radius: 9px;
  background: rgba(179, 136, 255, .06);
}
.lifehack-result ul { margin: 4px 0 10px; padding-left: 18px; }
.lifehack-card { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(0, 174, 255, .13); }
.lifehack-delete-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 6px;
  margin: 8px 0;
}
.lifehack-delete-list label { display: flex; align-items: center; gap: 6px; font-size: 12px; }

@media (max-width: 700px) {
  .media-hero, .playlist-hero { align-items: flex-start; flex-direction: column; }
  .media-workspace .table-wrap { max-height: none; }
  .playlist-cards { grid-template-columns: minmax(0, 1fr); }
  .lifehack-grid { grid-template-columns: minmax(0, 1fr); }
}


/* Verwaltung, Verbindungen, Hörer – Referenzdesign */
.admin-hero, .bridge-hero, .listener-hero {
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  margin-bottom:10px; padding:14px 16px;
  border:1px solid rgba(0,184,255,.32); border-radius:11px;
  background:
    radial-gradient(360px 160px at 82% 18%, rgba(141,55,255,.19), transparent 72%),
    linear-gradient(110deg, rgba(0,124,255,.14), rgba(4,17,39,.95) 56%, rgba(20,8,47,.9));
}
.admin-hero h1, .bridge-hero h1, .listener-hero h1 { margin:0 0 3px; font-size:22px; }
.admin-hero p, .bridge-hero p, .listener-hero p { margin:0; color:#91a7c7; font-size:12px; }
.admin-hero-actions, .listener-hero-actions { display:flex; align-items:center; gap:8px; }
.admin-count, .listener-count {
  min-height:34px; display:inline-flex; align-items:center; padding:7px 11px;
  border:1px solid rgba(0,190,255,.26); border-radius:8px;
  background:rgba(2,16,36,.66); color:#d5efff;
}
#view-users > .panel, #view-bridges > .panel, #view-listeners > .panel {
  margin-bottom:10px;
}
#view-users .kv, #view-bridges .kv {
  padding:7px 3px; border-bottom:1px solid rgba(0,161,255,.11);
}
#view-users .table-wrap, #view-listeners .table-wrap { border-color:rgba(0,177,255,.16); }
#view-listeners .inbox-item {
  margin:6px 0; padding:10px;
  border:1px solid rgba(0,177,255,.15); border-radius:8px;
  background:linear-gradient(145deg,rgba(8,29,56,.76),rgba(4,16,34,.8));
}
#view-listeners .inbox-item.new {
  border-left:3px solid var(--cyan);
  box-shadow:inset 3px 0 18px rgba(0,216,255,.05);
}
#view-bridges > .panel:not(:first-of-type) {
  position:relative; overflow:hidden;
}
#view-bridges > .panel:not(:first-of-type)::after {
  content:''; position:absolute; right:-55px; top:-55px; width:120px; height:120px; border-radius:50%;
  background:radial-gradient(circle,rgba(0,159,255,.11),transparent 70%); pointer-events:none;
}
dialog {
  border-color:rgba(0,190,255,.35);
  background:linear-gradient(180deg,#081a34,#061326);
  box-shadow:0 30px 90px rgba(0,0,0,.68),0 0 0 1px rgba(0,190,255,.06);
}
dialog h3 { font-size:17px; color:#f2fbff; }
.field input, .field select, .field textarea {
  border-color:rgba(0,177,255,.2);
  background:#081a34;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color:rgba(0,210,255,.66); outline:none; box-shadow:0 0 0 2px rgba(0,181,255,.09);
}

@media (max-width:700px) {
  .admin-hero, .bridge-hero, .listener-hero { align-items:flex-start; flex-direction:column; }
  .admin-hero-actions, .listener-hero-actions { width:100%; justify-content:space-between; }
}


/* ========================================================================
   AirDeck Studio 2026 – Desktop-Struktur nach verbindlichem Referenzbild
   ======================================================================== */
@media (min-width: 1101px) {
  #view-studio.dash {
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 10px;
    padding: 8px 10px 10px;
    align-items: start;
  }

  #view-studio .dash-main {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, .8fr);
    grid-template-areas:
      "title title"
      "np np"
      "decks decks"
      "lib carts"
      "queue carts"
      "schedule schedule";
    gap: 9px;
    min-width: 0;
  }

  #view-studio .studio-titlebar { grid-area: title; }
  #view-studio .decks { grid-area: decks; }
  #view-studio .row2,
  #view-studio .row3 { display: contents; }
  #view-studio .np-panel { grid-area: np; }
  #view-studio .lib-panel { grid-area: lib; }
  #view-studio .queue-panel { grid-area: queue; }
  #view-studio .carts-panel { grid-area: carts; }
  #view-studio .studio-schedule { grid-area: schedule; }
  #view-studio #live-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; }

  #view-studio .np-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(220px, .7fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 82px;
    padding: 9px 12px;
  }
  #view-studio .np-panel .panel-head { display:none; }
  #view-studio .np-card { min-width: 0; }
  #view-studio .np-card .cover.big { width: 56px; height: 56px; }
  #view-studio .np-bar { margin: 0; }
  #view-studio .np-next-head,
  #view-studio .next-list { display:none; }
  #view-studio #btn-meta { margin:0; white-space:nowrap; }

  #view-studio .decks {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
  }
  #view-studio .deck { min-width: 0; }

  #view-studio .carts-panel { min-height: 100%; }
  #view-studio .carts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #view-studio .lib-panel,
  #view-studio .queue-panel { min-height: 280px; }

  #view-studio > .side {
    position: sticky;
    top: 8px;
    max-height: calc(100vh - 105px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding-right: 2px;
    scrollbar-width: thin;
  }

  #view-studio > .side [data-win="stream"] { order: 1; }
  #view-studio > .side #live-panel { order: 2; }
  #view-studio > .side [data-win="playout"] { order: 3; }
  #view-studio > .side [data-win="meters"] { order: 4; }
  #view-studio > .side [data-win="processing"] { order: 5; }
  #view-studio > .side [data-win="sources"] { order: 6; }
  #view-studio > .side [data-win="system"] { order: 7; }
}

.studio-titlebar {
  min-height: 42px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:7px 10px;
  border:1px solid rgba(0,188,255,.32);
  border-radius:9px;
  background:linear-gradient(90deg,rgba(4,26,52,.96),rgba(7,18,41,.94) 58%,rgba(39,13,68,.76));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035);
}
.studio-title {
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}
.studio-title > .ico { color:#56dfff; }
.studio-title strong { font-size:17px; letter-spacing:.01em; }
.studio-live-chip {
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-height:24px;
  padding:3px 8px;
  border:1px solid rgba(255,62,119,.34);
  border-radius:999px;
  color:#ffd7e4;
  background:rgba(255,20,88,.12);
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.studio-live-chip .dot {
  width:7px;height:7px;border-radius:50%;
  background:#ff3f75;
  box-shadow:0 0 9px rgba(255,46,108,.8);
}
.studio-title-actions { display:flex; gap:6px; flex-wrap:wrap; justify-content:flex-end; }

@media (max-width: 1100px) {
  .studio-titlebar { margin-bottom: 8px; }
}
@media (max-width: 620px) {
  .studio-titlebar { align-items:flex-start; flex-direction:column; }
  .studio-title-actions { width:100%; }
  .studio-title-actions .btn { flex:1; justify-content:center; }
}


/* Kompakter Sendeplan im Studio – gleiche Daten wie die vollständige Planungsansicht */
.studio-schedule {
  min-height: 154px;
  overflow: hidden;
}
.studio-schedule .panel-head {
  margin-bottom: 6px;
}
.studio-schedule .panel-head .muted {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}
.studio-schedule-hours {
  position: relative;
  height: 22px;
  margin: 0 10px 0 10px;
  border-bottom: 1px solid rgba(0, 177, 255, .18);
}
.studio-schedule-hours span {
  position: absolute;
  bottom: 4px;
  transform: translateX(-50%);
  color: #7893b8;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}
.studio-schedule-track {
  position: relative;
  min-height: 86px;
  margin: 0 10px 8px;
  border: 1px solid rgba(0, 176, 255, .22);
  border-radius: 8px;
  overflow: hidden;
  background:
    repeating-linear-gradient(90deg,
      rgba(0, 170, 255, .065) 0,
      rgba(0, 170, 255, .065) 1px,
      transparent 1px,
      transparent calc(100% / 9)),
    linear-gradient(180deg, rgba(5, 23, 47, .92), rgba(3, 14, 31, .96));
}
.studio-plan-block {
  position: absolute;
  top: 13px;
  height: 58px;
  min-width: 42px;
  padding: 7px 9px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  overflow: hidden;
  border: 1px solid rgba(0, 214, 255, .55);
  border-radius: 7px;
  color: #eefbff;
  background: linear-gradient(135deg, rgba(0, 126, 255, .82), rgba(74, 67, 219, .78));
  box-shadow: 0 6px 18px rgba(0, 87, 255, .18);
  cursor: pointer;
  text-align: left;
}
.studio-plan-block:nth-of-type(3n+1) {
  background: linear-gradient(135deg, rgba(0, 171, 118, .82), rgba(0, 111, 159, .78));
}
.studio-plan-block:nth-of-type(3n+2) {
  background: linear-gradient(135deg, rgba(179, 39, 130, .82), rgba(104, 40, 194, .78));
}
.studio-plan-block strong,
.studio-plan-block span {
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.studio-plan-block strong { font-size: 11px; }
.studio-plan-block span { color: rgba(255,255,255,.78); font-size: 9px; }
.studio-plan-block b {
  position: absolute;
  right: 5px;
  top: 5px;
  padding: 2px 5px;
  border-radius: 999px;
  background: #ff285f;
  color: #fff;
  font-size: 8px;
  letter-spacing: .04em;
}
.studio-plan-block.active {
  border-color: #ff4b7d;
  box-shadow: 0 0 0 1px rgba(255,75,125,.4), 0 0 20px rgba(255,28,103,.24);
}
.studio-schedule-now {
  position: absolute;
  z-index: 5;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #ff315f;
  box-shadow: 0 0 9px rgba(255,49,95,.85);
  pointer-events: none;
}
.studio-schedule-now::before {
  content: '';
  position: absolute;
  top: 0;
  left: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff315f;
}
.studio-schedule .empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #7188a8;
  background: transparent;
}

@media (max-width: 1100px) {
  .studio-schedule { margin: 8px 0; }
}
@media (max-width: 700px) {
  .studio-schedule-hours span:nth-child(even) { display:none; }
  .studio-schedule .panel-head { flex-wrap: wrap; }
}


/* Topbar nach Referenz: Sender · On Air · Now Playing · Uhr/System */
.top-now {
  flex: 1 1 420px;
  min-width: 280px;
  max-width: 560px;
  height: 50px;
  display: grid;
  grid-template-columns: 40px minmax(0,1fr) 110px auto;
  align-items: center;
  gap: 9px;
  padding: 5px 9px;
  border: 1px solid rgba(0, 185, 255, .28);
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(7,28,56,.9), rgba(14,16,51,.88));
  overflow: hidden;
}
.top-now-cover {
  width: 40px;
  height: 40px;
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(0,149,255,.24), rgba(140,50,255,.24));
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 12px rgba(0,168,255,.12);
}
.top-now-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.top-now-copy > span {
  color: #4ddfff;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.top-now-copy strong,
.top-now-copy small {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.top-now-copy strong { font-size: 13px; color: #f2f8ff; }
.top-now-copy small { color: #9eb2ce; font-size: 10px; }
.top-now-wave {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.top-now-wave i {
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg,#00e5ff,#2478ff 52%,#a63dff);
  box-shadow: 0 0 6px rgba(0,206,255,.32);
  animation: topwave 1.2s ease-in-out infinite alternate;
}
.top-now-wave i:nth-child(1), .top-now-wave i:nth-child(10) { height: 8px; }
.top-now-wave i:nth-child(2), .top-now-wave i:nth-child(9) { height: 15px; animation-delay:.1s; }
.top-now-wave i:nth-child(3), .top-now-wave i:nth-child(8) { height: 23px; animation-delay:.2s; }
.top-now-wave i:nth-child(4), .top-now-wave i:nth-child(7) { height: 13px; animation-delay:.3s; }
.top-now-wave i:nth-child(5), .top-now-wave i:nth-child(6) { height: 26px; animation-delay:.4s; }
@keyframes topwave { from { transform:scaleY(.62); opacity:.65 } to { transform:scaleY(1); opacity:1 } }
.top-now-time {
  min-width: 82px;
  color: #9eb4d2;
  font-size: 10px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 1320px) {
  .top-now { grid-template-columns: 38px minmax(0,1fr) 70px auto; }
  .top-now-wave { gap:2px; }
  .top-now-wave i { width:2px; }
}
@media (max-width: 1080px) {
  .top-now { order: 8; flex-basis: 100%; max-width:none; width:100%; }
}
@media (max-width: 620px) {
  .top-now { display:none; }
}


/* Referenz-Finetuning: Playlist/Queue kompakt, Cardwall als feste Broadcast-Matrix */
#view-studio .lib-panel .table-wrap,
#view-studio .queue-panel .table-wrap {
  max-height: 300px;
  overflow: auto;
}
#view-studio .lib-panel .panel-head,
#view-studio .queue-panel .panel-head,
#view-studio .carts-panel .panel-head {
  min-height: 34px;
  margin-bottom: 6px;
}
#view-studio .lib-panel .row-btns,
#view-studio .queue-panel .row-btns {
  margin: 0 0 6px;
  gap: 5px;
}
#view-studio .list th,
#view-studio .list td {
  padding-top: 6px;
  padding-bottom: 6px;
}
#view-studio .queue-row {
  cursor: grab;
}
#view-studio .queue-row:active {
  cursor: grabbing;
}
#view-studio .queue-row.drop-before td {
  box-shadow: inset 0 2px 0 #39d9ff;
}
#view-studio .queue-row td:first-child {
  color: #6fcfff;
}
#view-studio .queue-row td:nth-child(2) {
  font-weight: 650;
  color: #e9f6ff;
}
#view-studio .queue-row .tag {
  margin-left: 5px;
}

@media (min-width: 1101px) {
  #view-studio .carts-panel {
    align-self: stretch;
    min-height: 100%;
  }
  #view-studio .carts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(86px, 1fr);
    align-content: start;
    gap: 7px;
  }
  #view-studio .cart {
    min-height: 86px;
    padding: 8px 9px 31px;
    border-radius: 8px;
  }
  #view-studio .cart-top {
    gap: 6px;
  }
  #view-studio .cart-label {
    font-size: 11px;
    font-weight: 800;
  }
  #view-studio .cart-sub {
    margin-top: 4px;
    font-size: 10px;
  }
  #view-studio .cart-actions {
    left: 7px;
    bottom: 5px;
  }
  #view-studio .cart-play,
  #view-studio .cart-cue {
    width: 25px;
    height: 22px;
  }
  #view-studio .cart-edit {
    top: 6px;
    right: 6px;
  }
}

#view-studio .lib-panel,
#view-studio .queue-panel,
#view-studio .carts-panel {
  border-color: rgba(0, 188, 255, .34);
}
#view-studio .lib-panel::before,
#view-studio .queue-panel::before,
#view-studio .carts-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}


/* Rechte Broadcast-Spalte nach Referenz: Status, Mic, Schnellzugriff, Pegel */
@media (min-width: 1101px) {
  #view-studio > .side {
    width: 310px;
  }

  #view-studio > .side > .panel,
  #view-studio > .side > .stack > .panel {
    margin: 0;
    border-radius: 9px;
    background:
      radial-gradient(180px 90px at 100% 0, rgba(84,45,255,.10), transparent 72%),
      linear-gradient(180deg, rgba(7,24,49,.97), rgba(4,15,33,.97));
  }

  #view-studio > .side [data-win="stream"] {
    border-color: rgba(0,216,255,.42);
    box-shadow: 0 0 18px rgba(0,158,255,.08);
  }
  #view-studio > .side [data-win="stream"] .stream-sum {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:6px;
    margin-bottom:7px;
  }
  #view-studio > .side [data-win="stream"] .stream-sum > div {
    padding:7px 5px;
    border:1px solid rgba(0,174,255,.14);
    border-radius:7px;
    background:rgba(0,16,36,.42);
    text-align:center;
  }
  #view-studio > .side [data-win="stream"] .stream-sum strong {
    display:block;
    margin-top:2px;
    font-size:13px;
    color:#e9fbff;
  }

  #view-studio > .side #live-panel {
    gap:7px;
  }
  #view-studio > .side [data-win="live"] {
    border-color:rgba(255,54,114,.38);
    background:
      radial-gradient(180px 100px at 100% 0, rgba(255,22,100,.12), transparent 70%),
      linear-gradient(180deg,rgba(30,12,37,.95),rgba(12,14,34,.96));
  }
  #view-studio > .side [data-win="live"] .lv-body {
    min-height:86px;
    grid-template-columns:16px 68px minmax(0,1fr);
    gap:10px;
  }
  #view-studio > .side [data-win="live"] .mic-btn {
    width:66px;
    height:66px;
    border-radius:50%;
    border:2px solid rgba(255,55,112,.66);
    background:radial-gradient(circle at 35% 30%,rgba(255,85,137,.25),rgba(80,10,45,.5));
    box-shadow:0 0 22px rgba(255,31,101,.16);
  }
  #view-studio > .side [data-win="live"] .mic-btn[aria-pressed="true"] {
    background:radial-gradient(circle at 35% 30%,#ff638f,#e91f5e 58%,#78102f);
    box-shadow:0 0 26px rgba(255,34,101,.6);
  }

  #view-studio > .side [data-win="quick"] .quick {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:6px;
  }
  #view-studio > .side [data-win="quick"] .quick button {
    min-height:38px;
    border:1px solid rgba(0,185,255,.24);
    border-radius:7px;
    background:linear-gradient(135deg,rgba(0,112,210,.16),rgba(85,40,180,.13));
  }

  #view-studio > .side [data-win="meters"] {
    border-color:rgba(141,77,255,.35);
  }
  #view-studio > .side [data-win="meters"] .vu-h {
    height:16px;
    border-radius:999px;
  }
  #view-studio > .side [data-win="meters"] .meter-row {
    font-size:10px;
  }

  #view-studio > .side [data-win="playout"],
  #view-studio > .side [data-win="processing"],
  #view-studio > .side [data-win="sources"],
  #view-studio > .side [data-win="system"] {
    opacity:.95;
  }
}


/* Referenz-Responsive: Desktop bleibt 4-Deck, Laptop/Tablet wird lesbar statt gequetscht */
@media (min-width: 701px) and (max-width: 1100px) {
  #view-studio.dash {
    padding: 9px;
    gap: 9px;
  }
  #view-studio .dash-main {
    min-width: 0;
  }
  #view-studio .decks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  #view-studio .row2,
  #view-studio .row3 {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }
  #view-studio .carts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }
  #view-studio > .side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  #view-studio > .side #live-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  #view-studio .studio-schedule {
    min-width: 0;
  }
}
@media (min-width: 561px) and (max-width: 700px) {
  #view-studio .decks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #view-studio .carts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #view-studio > .side,
  #view-studio > .side #live-panel {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 560px) {
  #view-studio.dash { padding: 7px; }
  #view-studio .panel { border-radius: 9px; }
  #view-studio .studio-schedule { min-height: 140px; }
  #view-studio .studio-schedule-track { margin-inline: 6px; }
  #view-studio .lib-panel .table-wrap,
  #view-studio .queue-panel .table-wrap { max-height: 250px; }
  #view-studio .cart { min-height: 76px; }
}


/* Sidebar-Feinschliff nach verbindlicher Referenzstruktur */
.nav-section > summary {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 9px;
  font-weight: 800;
  color: #6783a9;
}
.nav-section[open] > summary {
  color: #8fb6df;
}
.nav-section[data-nav-section="studio"] > summary,
.nav-section[data-nav-section="planning"] > summary {
  color: #74dfff;
}
.nav-section[data-nav-section="tools"] > summary {
  color: #b49cff;
}
.nav-section[data-nav-section="settings"] > summary {
  color: #8ea5c5;
}
