/* N8 Crosslink – Die N8schicht Design (Glass-Theme wie dmr.die-n8schicht.de / frn.auf-der-nachtschicht.de) */
:root {
  --glass-bg: rgba(255, 255, 255, 0.055);
  --glass-bg-strong: rgba(255, 255, 255, 0.09);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-highlight: rgba(255, 255, 255, 0.18);
  --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  --glass-blur: blur(22px) saturate(170%);
  --radius-lg: 22px; --radius-md: 16px; --radius-sm: 12px;
  --accent: #5ac8fa; --accent-rgb: 90, 200, 250; --accent2: #9bd8ff; --title-to: #b4e2ff;
  --green: #30d158; --amber: #ffd60a; --red: #ff453a;
  /* LEDs: Rot = Senden, Magenta = Empfangen, Grün = Dienst ok */
  --led-tx: #ff453a; --led-rx: #ff2dd1; --led-rx-rgb: 255, 45, 209; --led-ok: #30d158;
  --text: #f5f7fb; --text-dim: rgba(235, 240, 250, 0.62);
  --surface: rgba(255, 255, 255, 0.05); --surface-2: rgba(255, 255, 255, 0.08); --line: rgba(255, 255, 255, 0.08);
  --frn: #0a84ff; --dmr: #30d158; --zello: #ff9f0a;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: #070b17; }
[hidden] { display: none !important; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", Inter, system-ui, sans-serif;
  color: var(--text); padding: 12px; min-height: 100vh;
  background:
    radial-gradient(1100px 700px at 8% -10%, rgba(10, 132, 255, 0.35), transparent 60%) fixed,
    radial-gradient(900px 650px at 100% 0%, rgba(191, 90, 242, 0.28), transparent 60%) fixed,
    radial-gradient(900px 700px at 50% 110%, rgba(48, 209, 88, 0.18), transparent 60%) fixed,
    linear-gradient(#070b17 0%, #0a101e 100%) fixed;
}
a { color: var(--accent); text-decoration: none; }
.container { max-width: 1600px; margin: 0 auto; }
button { font: inherit; }

/* ---------- Glass-Flächen ---------- */
header, .card, .stat-card, .modal-content, .net-card, .onair {
  background: var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border); box-shadow: inset 0 1px 0 var(--glass-highlight), var(--glass-shadow);
}

/* ---------- Kopfzeile + Statusleiste ---------- */
.topbar { position: sticky; top: 6px; z-index: 50; margin-bottom: 14px; }
header { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 6px 12px;
  border-radius: var(--radius-lg); background: rgba(20, 26, 45, 0.55); }
.header-branding { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo { height: 44px; width: 44px; flex: none; }
h1 { font-size: 21px; font-weight: 700; white-space: nowrap;
  background: linear-gradient(90deg, #fff 0%, var(--title-to) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.subtitle { color: #64748b; font-size: 12px; margin-top: 2px; white-space: nowrap; }
.main-tabs { display: flex; gap: 2px; margin: 0 auto; padding: 3px; border-radius: 999px; background: rgba(255,255,255,0.04);
  overflow-x: auto; scrollbar-width: none; }
.main-tabs::-webkit-scrollbar { display: none; }
.main-tabs button { background: transparent; border: 0; color: var(--text-dim); font-size: 13.5px; font-weight: 650;
  padding: 7px 14px; border-radius: 999px; cursor: pointer; transition: background .15s, color .15s;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.main-tabs button:hover { color: var(--text); }
.main-tabs button.active { background: rgba(var(--accent-rgb), .18); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .35); color: var(--text); }
.t-short { display: none; }
.hdr-right { display: flex; gap: 8px; align-items: center; flex: none; }
.hdr-btn, .links-btn { border: 1px solid var(--glass-border); background: rgba(255,255,255,0.06); color: var(--text);
  padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 650; cursor: pointer; }
.hdr-btn.login { background: linear-gradient(135deg, #0a84ff, #5ac8fa); border-color: transparent; color: #fff; }
.hdr-btn:hover, .links-btn:hover { filter: brightness(1.15); }
.links-menu { position: relative; }
.links-pop { display: none; position: absolute; right: 0; top: 110%; min-width: 230px; padding: 6px; border-radius: 14px;
  background: rgba(16, 22, 40, 0.96); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); }
.links-menu.open .links-pop { display: block; }
.links-pop a { display: block; padding: 8px 10px; border-radius: 10px; color: var(--text); font-size: 13px; }
.links-pop a:hover { background: rgba(255,255,255,0.07); }
.status-strip { display: flex; align-items: center; gap: 4px 16px; margin: -1px 24px 0; padding: 0 14px; height: 22px;
  font-size: 11.5px; border-radius: 0 0 14px 14px; position: relative; z-index: 1;
  background: rgba(12, 17, 34, 0.72); border: 1px solid var(--glass-border); border-top: 0;
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); overflow-x: auto; scrollbar-width: none; }
.status-strip::-webkit-scrollbar { display: none; }
.ss { display: inline-flex; align-items: center; font-weight: 600; color: var(--text-dim); white-space: nowrap; }
.ss::before { content: ''; margin-right: 6px; width: 7px; height: 7px; border-radius: 50%; background: #ff453a; box-shadow: 0 0 6px rgba(255,69,58,.7); }
.ss.on::before { background: var(--led-ok); box-shadow: 0 0 6px rgba(48,209,88,.8); }
.ss.warn::before { background: #ffd60a; box-shadow: 0 0 6px rgba(255,214,10,.7); }
.ss.tx::before { background: var(--led-tx); box-shadow: 0 0 7px rgba(255,69,58,.9); animation: blink .6s infinite alternate; }
.ss.rx::before { background: var(--led-rx); box-shadow: 0 0 7px rgba(var(--led-rx-rgb),.9); animation: blink .6s infinite alternate; }
.ss-spacer { flex: 1; }
@keyframes blink { from { opacity: 1; } to { opacity: .35; } }

/* ---------- Banner ---------- */
.banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; padding: 10px 14px; border-radius: var(--radius-md);
  background: rgba(var(--accent-rgb), .10); border: 1px solid rgba(var(--accent-rgb), .35); font-size: 13.5px; }
.banner.warn { background: rgba(255, 214, 10, .09); border-color: rgba(255, 214, 10, .4); }
.banner .grow { flex: 1; }
.btn { border: 0; border-radius: 999px; padding: 7px 16px; font-weight: 700; font-size: 13px; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, #0a84ff, #5ac8fa); }
.btn.secondary { background: rgba(255,255,255,0.08); border: 1px solid var(--glass-border); color: var(--text); }
.btn.danger { background: linear-gradient(135deg, #ff453a, #ff9f0a); }
.btn:disabled { opacity: .5; cursor: default; }

/* ---------- Kennzahlen ---------- */
.stats-bar { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.stat-card { border-radius: var(--radius-md); padding: 12px 14px; transition: transform .2s ease; min-width: 0; }
.stat-card:hover { transform: translateY(-2px); }
.stat-label { color: var(--text-dim); font-size: 11px; font-weight: 600; letter-spacing: .02em; display: flex; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-value { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-top: 4px; }
.stat-card.hl { background: linear-gradient(135deg, rgba(48, 209, 88, 0.22), rgba(48, 209, 88, 0.06)); border-color: rgba(48, 209, 88, 0.38); }
.stat-card.hl .stat-value { color: #8af5ab; }

/* ---------- On Air ---------- */
.onair { border-radius: var(--radius-lg); padding: 14px 18px; margin-bottom: 12px; display: flex; align-items: center; gap: 18px; position: relative; overflow: hidden; }
.onair.live { border-color: rgba(48, 209, 88, .55); box-shadow: 0 0 0 1px rgba(48,209,88,.25), 0 0 40px rgba(48,209,88,.15), var(--glass-shadow); }
.onair .big-av { width: 64px; height: 64px; border-radius: 20px; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.04)); border: 1px solid var(--glass-border); }
.onair.live .big-av { background: linear-gradient(135deg, var(--srccol, #30d158), rgba(255,255,255,.08)); }
.onair .oa-main { flex: 1; min-width: 0; }
.oa-kicker { font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); display: flex; gap: 8px; align-items: center; }
.oa-name { font-size: 26px; font-weight: 800; letter-spacing: -.01em; margin: 2px 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oa-sub { font-size: 13px; color: var(--text-dim); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.oa-timer { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); min-width: 84px; text-align: right; }
.onair-dot { width: 9px; height: 9px; border-radius: 50%; background: #64748b; }
.onair.live .onair-dot { background: #ff453a; box-shadow: 0 0 10px #ff453a; animation: blink .6s infinite alternate; }
.oa-side { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
/* Mithören im Kopfmenü: Knopf + kleiner Pfeil mit Lautstärke-Dropdown */
.listen-menu { position: relative; display: flex; }
.listen-menu .listen-btn { border-top-right-radius: 0; border-bottom-right-radius: 0; border-right: none; }
.listen-menu .listen-caret { border-top-left-radius: 0; border-bottom-left-radius: 0; padding-left: 7px; padding-right: 7px; font-size: 11px; }
.listen-menu .listen-btn.on { background: rgba(48,209,88,.22); border-color: rgba(48,209,88,.6); }
.listen-menu .listen-btn.on + .listen-caret { border-color: rgba(48,209,88,.6); }
.listen-pop { display: none; position: absolute; right: 0; top: 110%; width: 230px; padding: 12px 14px; border-radius: 14px; z-index: 60;
  background: rgba(20, 26, 45, .96); border: 1px solid var(--glass-border); box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.listen-menu.open .listen-pop { display: block; }
.listen-pop .lp-head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.listen-pop input[type=range] { width: 100%; accent-color: var(--accent); }
.listen-pop .lp-scale { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--text-dim); margin-top: 2px; }
#listenBtn.on { background: linear-gradient(135deg, #30d158, #0a84ff); color: #fff; border-color: transparent; box-shadow: 0 0 14px rgba(48,209,88,.45); }
/* Segmentierte Pegelanzeige in der Statusleiste (hinter dem Sprecher) */
.ss-talk { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.ss-talker { color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.ss-talk.live .ss-talker { color: var(--text); font-weight: 700; }
.seg-meter { display: inline-flex; gap: 2px; align-items: center; height: 12px; }
.seg-meter i { width: 5px; height: 12px; border-radius: 2px; background: rgba(255,255,255,.09); transition: background .08s; }
.seg-meter i.g.lit { background: #30d158; box-shadow: 0 0 4px rgba(48,209,88,.6); }
.seg-meter i.y.lit { background: #ffd60a; box-shadow: 0 0 4px rgba(255,214,10,.6); }
.seg-meter i.r.lit { background: #ff453a; box-shadow: 0 0 4px rgba(255,69,58,.7); }
.seg-meter i.peak { outline: 1px solid rgba(255,255,255,.8); }
.seg-db { font-size: 11px; color: var(--text-dim); font-variant-numeric: tabular-nums; min-width: 46px; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 750; padding: 2px 8px; border-radius: 999px; white-space: nowrap;
  background: rgba(255,255,255,.08); border: 1px solid var(--glass-border); color: var(--text); }
.badge.frn { background: rgba(10,132,255,.18); border-color: rgba(10,132,255,.5); color: #9ccaff; }
.badge.dmr { background: rgba(48,209,88,.16); border-color: rgba(48,209,88,.45); color: #8af5ab; }
.badge.zello { background: rgba(255,159,10,.16); border-color: rgba(255,159,10,.5); color: #ffd08a; }
.badge.ok { background: rgba(48,209,88,.16); border-color: rgba(48,209,88,.45); color: #8af5ab; }
.badge.off { background: rgba(255,69,58,.14); border-color: rgba(255,69,58,.45); color: #ffa39c; }
.badge.warn { background: rgba(255,214,10,.12); border-color: rgba(255,214,10,.45); color: #ffe680; }
.badge.dim { opacity: .55; }
.arrow { color: var(--text-dim); font-weight: 700; }

/* ---------- Netzkarten ---------- */
.net-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 4px; }
.net-card { border-radius: var(--radius-lg); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; position: relative; overflow: hidden; }
.net-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--col); opacity: .9; }
.net-card.frn { --col: var(--frn); } .net-card.dmr { --col: var(--dmr); } .net-card.zello { --col: var(--zello); }
.net-card.txing { box-shadow: 0 0 0 1px rgba(255,69,58,.45), 0 0 30px rgba(255,69,58,.15), var(--glass-shadow); }
.net-card.rxing { box-shadow: 0 0 0 1px rgba(var(--led-rx-rgb),.55), 0 0 30px rgba(var(--led-rx-rgb),.18), var(--glass-shadow); }
.nc-head { display: flex; align-items: center; gap: 10px; }
.nc-icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-size: 18px;
  background: linear-gradient(135deg, var(--col), rgba(255,255,255,.06)); flex: none; }
.nc-title { font-weight: 750; font-size: 15.5px; }
.nc-sub { font-size: 12px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nc-head .grow { flex: 1; min-width: 0; }
.rt { display: flex; gap: 6px; }
.rt span { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; padding: 3px 8px; border-radius: 8px; background: rgba(255,255,255,.06); color: var(--text-dim); border: 1px solid var(--line); }
.rt span.rx.on { background: rgba(var(--led-rx-rgb),.25); color: #ffc2f1; border-color: rgba(var(--led-rx-rgb),.65); }
.rt span.tx.on { background: rgba(255,69,58,.25); color: #ffc1bc; border-color: rgba(255,69,58,.6); }
.nc-now { min-height: 22px; font-size: 13.5px; display: flex; align-items: center; gap: 8px; }
.nc-now b { font-weight: 750; }
.nc-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--text-dim); }
.nc-routes { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- Abschnitte ---------- */
.section-header { color: var(--text-dim); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 650;
  margin: 18px 4px 8px; display: flex; align-items: center; gap: 8px; }
.collapsible { cursor: pointer; user-select: none; }
.collapse-caret { display: inline-block; transition: transform .2s; }
.collapsed .collapse-caret { transform: rotate(-90deg); }
.section-header .count { color: var(--accent); }
.section-header .grow { flex: 1; }
.card { border-radius: var(--radius-lg); padding: 6px 12px; }
.hidden { display: none !important; }

/* ---------- Last Heard ---------- */
.lh-row { display: grid; grid-template-columns: 74px minmax(170px, 1.6fr) 76px minmax(120px, 1fr) minmax(130px, 1fr) 62px 92px;
  gap: 10px; align-items: center; padding: 9px 4px; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 13px; }
.lh-row:last-child { border-bottom: 0; }
.lh-head { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); padding-top: 6px; }
.lh-row.live { background: linear-gradient(90deg, rgba(var(--led-rx-rgb),.12), transparent 60%); border-radius: 10px; }
.lh-row.blocked { opacity: .6; }
.lh-user { display: flex; align-items: center; gap: 8px; min-width: 0; }
.avatar { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: 11px; flex: none;
  background: linear-gradient(135deg, var(--col, #5ac8fa), rgba(255,255,255,.08)); }
.avatar, .big-av { position: relative; overflow: hidden; }
.avatar img, .big-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.frid-tag { font-size: 9.5px; font-weight: 800; letter-spacing: .05em; padding: 1px 6px; border-radius: 6px; color: #8af5ab; background: rgba(48,209,88,.16); border: 1px solid rgba(48,209,88,.45); }
.avatar.frn { --col: var(--frn); } .avatar.dmr { --col: var(--dmr); } .avatar.zello { --col: var(--zello); }
.lh-cs { font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lh-name { color: var(--text-dim); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lh-time, .lh-dur { font-variant-numeric: tabular-nums; color: var(--text-dim); }
.lh-detail { color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lh-targets { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.empty { padding: 18px; text-align: center; color: var(--text-dim); font-size: 13px; }
.show-more { display: block; margin: 8px auto 4px; }

/* ---------- Tabellen ---------- */
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); padding: 8px 6px; }
.tbl td { padding: 8px 6px; border-top: 1px solid rgba(255,255,255,0.06); }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Statistik ---------- */
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255,255,255,0.05); border: 1px solid var(--line); flex-wrap: wrap; }
.seg button { border: 0; background: transparent; color: var(--text-dim); padding: 5px 12px; border-radius: 999px; font-weight: 650; font-size: 12.5px; cursor: pointer; }
.seg button.active { background: rgba(var(--accent-rgb), .2); color: var(--text); }
.bars { display: flex; flex-direction: column; gap: 10px; padding: 10px 4px; }
.bar-row { display: grid; grid-template-columns: 70px 1fr 120px; gap: 10px; align-items: center; font-size: 13px; }
.bar { height: 12px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: var(--col, var(--accent)); }
.hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 4px; align-items: end; height: 120px; padding: 10px 4px 0; }
.hours div { background: linear-gradient(180deg, var(--accent), rgba(var(--accent-rgb), .25)); border-radius: 5px 5px 2px 2px; min-height: 2px; position: relative; }
.hours-lbl { display: grid; grid-template-columns: repeat(24, 1fr); gap: 4px; font-size: 10px; color: var(--text-dim); text-align: center; padding: 4px 4px 8px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- Netze-Details ---------- */
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 6px 12px; font-size: 13px; padding: 8px 4px; }
.kv dt { color: var(--text-dim); }
.kv dd { word-break: break-word; }

/* ---------- Admin ---------- */
.admin-nav { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 12px; }
.admin-nav button { border: 1px solid var(--glass-border); background: rgba(255,255,255,0.05); color: var(--text-dim); border-radius: 999px; padding: 6px 13px; font-weight: 650; font-size: 13px; cursor: pointer; }
.admin-nav button.active { background: rgba(var(--accent-rgb), .18); color: var(--text); border-color: rgba(var(--accent-rgb), .5); }
.form { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px 16px; padding: 12px 4px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field.wide { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 650; color: var(--text-dim); }
.field small { font-size: 11px; color: var(--text-dim); opacity: .85; }
.field input[type=text], .field input[type=number], .field input[type=password], .field select, .field textarea {
  background: rgba(0,0,0,0.25); border: 1px solid var(--glass-border); color: var(--text); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 13.5px; width: 100%; }
.field textarea { min-height: 90px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: rgba(var(--accent-rgb), .7); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .15); }
.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; padding: 6px 0; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch span { width: 40px; height: 23px; border-radius: 999px; background: rgba(127,127,127,.35); position: relative; transition: background .2s; flex: none; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(17px); }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; padding: 8px 4px 12px; flex-wrap: wrap; }
.route-matrix { display: grid; grid-template-columns: 110px repeat(3, 1fr); gap: 8px; align-items: center; padding: 12px 4px; max-width: 560px; }
.route-matrix .rh { font-size: 12px; font-weight: 700; color: var(--text-dim); text-align: center; }
.route-matrix .rl { font-weight: 700; }
.route-matrix .cell { display: flex; justify-content: center; }
.voc-choice { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; padding: 12px 4px 0; }
.voc-opt { border: 1px solid var(--glass-border); border-radius: var(--radius-md); padding: 12px 14px; cursor: pointer; background: rgba(255,255,255,0.04); }
.voc-opt.active { border-color: rgba(var(--accent-rgb), .7); box-shadow: 0 0 0 2px rgba(var(--accent-rgb), .25); background: rgba(var(--accent-rgb), .08); }
.voc-opt b { display: block; font-size: 14px; margin-bottom: 4px; }
.voc-opt small { color: var(--text-dim); font-size: 12px; line-height: 1.35; display: block; }
.ev-list { font-size: 12.5px; }
.ev-row { display: grid; grid-template-columns: 140px 1fr; gap: 10px; padding: 6px 4px; border-bottom: 1px solid rgba(255,255,255,.05); }
.ev-row.warn { color: #ffe680; }
.ev-row time { color: var(--text-dim); font-variant-numeric: tabular-nums; }

/* ---------- Modal / Toast ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(3, 6, 15, .6); display: none; align-items: center; justify-content: center; z-index: 100; padding: 16px; }
.modal-overlay.open { display: flex; }
.modal-content { width: 100%; max-width: 380px; border-radius: var(--radius-lg); padding: 20px; background: rgba(20, 26, 45, .9); }
.modal-content h2 { font-size: 19px; margin-bottom: 4px; }
.modal-content p { color: var(--text-dim); font-size: 13px; margin-bottom: 12px; }
.modal-content .field { margin-bottom: 10px; }
.err { color: #ffa39c; font-size: 12.5px; min-height: 16px; }
.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%) translateY(20px); opacity: 0; transition: all .25s;
  background: rgba(20, 26, 45, .95); border: 1px solid var(--glass-border); padding: 10px 16px; border-radius: 999px; font-size: 13px; z-index: 200; box-shadow: var(--glass-shadow); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

footer { text-align: center; color: var(--text-dim); font-size: 12px; padding: 22px 0 10px; }
footer a { color: var(--text-dim); text-decoration: underline; text-decoration-color: rgba(255,255,255,.2); }

/* ---------- Responsiv ---------- */
@media (max-width: 1200px) { .stats-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1000px) {
  .net-grid { grid-template-columns: 1fr; }
  .lh-row { grid-template-columns: 58px minmax(140px, 1.6fr) 62px minmax(100px, 1fr) 54px; }
  .lh-row .lh-detail, .lh-head .lh-detail, .lh-row .lh-status, .lh-head .lh-status { display: none; }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  header { flex-wrap: wrap; }
  .main-tabs { order: 3; width: 100%; margin: 0; }
  .main-tabs button { flex: 1 1 0; justify-content: center; padding: 6px 4px; font-size: 12px; }
  .t-long { display: none; } .t-short { display: inline; }
  .hdr-right { margin-left: auto; }
  .links-label { display: none; }
  .status-strip { margin: -1px 12px 0; }
  .ss .hdr-lbl { display: none; }
  .onair { flex-wrap: wrap; }
  .oa-name { font-size: 21px; }
  .seg-meter i { width: 3px; } .seg-db { display: none; } .ss-talker { max-width: 120px; }
}
@media (max-width: 560px) {
  body { padding: 8px; }
  .stats-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-value { font-size: 20px; }
  .subtitle { display: none; }
  .lh-row { grid-template-columns: 50px minmax(0, 1fr) 56px 46px; font-size: 12.5px; }
  .lh-row .lh-targets, .lh-head .lh-targets { display: none; }
  .kv { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 54px 1fr 90px; }
}

/* ---------- Status-Popup ---------- */
.status-pop { max-width: 440px; text-align: center; }
.status-pop .sp-icon { width: 64px; height: 64px; margin: 4px auto 10px; border-radius: 20px; display: grid; place-items: center; font-size: 30px;
  background: rgba(var(--accent-rgb), .14); border: 1px solid rgba(var(--accent-rgb), .4); }
.status-pop.ok .sp-icon { background: rgba(48,209,88,.16); border-color: rgba(48,209,88,.5); }
.status-pop.err .sp-icon { background: rgba(255,69,58,.14); border-color: rgba(255,69,58,.5); }
.status-pop p { white-space: pre-line; line-height: 1.5; color: var(--text); opacity: .85; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(255,255,255,.15); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* N8schicht-Vocoder: Klang-Popup */
.voc-pop { max-width: 760px; max-height: 92vh; overflow-y: auto; }
.vp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vp-head .btn { padding: 4px 10px; }
.vp-profiles { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 10px; }
.vp-profiles button.active { outline: 2px solid var(--accent, #4f8cff); }
.vp-sec { font-size: 14px; margin: 14px 0 6px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .04em; }
.vp-row { display: grid; grid-template-columns: 1fr 70px; gap: 2px 12px; align-items: center; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.vp-row label { font-size: 13px; font-weight: 600; }
.vp-row input[type=range] { grid-column: 1; width: 100%; accent-color: var(--accent, #4f8cff); }
.vp-row .vp-val { grid-column: 2; grid-row: 1 / span 2; text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.vp-row .vp-val.changed { color: #ffd60a; }
.vp-row small { grid-column: 1 / span 2; color: var(--text-dim); font-size: 11.5px; line-height: 1.35; }
.vp-prev { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.vp-prev input { flex: 1; min-width: 180px; background: rgba(255,255,255,.06); color: inherit; border: 1px solid rgba(255,255,255,.15); border-radius: 10px; padding: 8px 10px; font: inherit; }
.vp-file { cursor: pointer; }
.vp-res { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.vp-res audio { width: 100%; }
.vp-metrics { font-size: 12.5px; color: var(--text-dim); margin-top: 8px; }
.vp-bands { display: flex; gap: 4px; margin-top: 6px; }
.vp-bands div { flex: 1; text-align: center; font-size: 10.5px; padding: 4px 2px; border-radius: 6px; background: rgba(255,255,255,.05); }
.vp-bands b { display: block; font-size: 12px; }
@media (max-width: 640px) { .vp-res { grid-template-columns: 1fr; } }

/* Kurz-/Langtext in der Statusleiste (übersetzbar, N8 Kit) */
.hdr-sl { display: none; }
@media (max-width: 760px) { .status-strip .hdr-sl { display: inline; } }

/* 🔌 Ports */
.pt-in { width: 96px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--border, rgba(255,255,255,.15)); background: var(--input-bg, rgba(0,0,0,.25)); color: inherit; font: inherit; text-align: right; }
.pt-in:focus { outline: 2px solid var(--accent, #0a84ff); outline-offset: 1px; }

/* 🔐 Berechtigungen & sudo */
tr.perm-bad td { color: #ff6b61; }
tr.perm-warn td { color: #ffd60a; }
tr.perm-ok td:last-child { color: var(--text-dim); }
