/* 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.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: 84px; height: 84px; 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: 30px; font-family: var(--n8-mono, ui-monospace, Menlo, monospace); letter-spacing: .02em; 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: 34px; font-weight: 700; color: var(--text); min-width: 120px; 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) {
  .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; }
  .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); }

/* Dienste (System) – schlank */
.svc-tbl td { vertical-align: middle; }
.svc-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; background: #8e8e93; vertical-align: 1px; }
.svc-dot.ok { background: var(--led-ok, #30d158); box-shadow: 0 0 8px rgba(48,209,88,.6); }
.svc-dot.off { background: #ff453a; }
.svc-dot.warn { background: #ffd60a; }
.svc-b { padding: 4px 10px; margin: 2px; min-width: 38px; }
/* Keep-Alive (N8 Admin-Kit) */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px 16px; align-items: end; }
.form-grid > label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--text-dim); }
.form-grid > label.switch { flex-direction: row; align-items: center; color: var(--text); }

/* ---------- OnAir als Funkgerät: Display, Lampen, Instrumente ---------- */
.onair { border-radius: var(--radius-lg); padding: 14px 16px; margin-bottom: 12px; position: relative; overflow: hidden; display: block; }
.oa-top { display: flex; align-items: center; gap: 16px; }
.oa-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.lcd { font-family: var(--n8-mono, ui-monospace, "SF Mono", Menlo, monospace); font-variant-numeric: tabular-nums; }
.oa-route { margin-left: 6px; display: inline-flex; gap: 4px; align-items: center; text-transform: none; letter-spacing: 0; }
.oa-lamps { display: flex; gap: 6px; }
.lamp { font-size: 11px; font-weight: 800; letter-spacing: .08em; padding: 3px 9px; border-radius: 7px; border: 1px solid var(--line);
  color: var(--text-dim); background: rgba(0,0,0,.25); }
.lamp.rx.on { color: #fff; background: rgba(var(--led-rx-rgb), .85); border-color: rgba(var(--led-rx-rgb), 1); box-shadow: 0 0 14px rgba(var(--led-rx-rgb), .7); }
.lamp.tx.on { color: #fff; background: rgba(255, 69, 58, .85); border-color: #ff453a; box-shadow: 0 0 14px rgba(255, 69, 58, .7); }
.oa-inst { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.inst { background: rgba(0, 0, 0, .28); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 11px 8px;
  display: flex; flex-direction: column; gap: 6px; min-width: 0; box-shadow: inset 0 1px 6px rgba(0,0,0,.35); }
.inst-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 10.5px; font-weight: 750; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-dim); }
.inst-h b { font-size: 14px; color: var(--accent); letter-spacing: 0; text-transform: none; }
.inst-f { font-size: 11.5px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vu { display: grid; grid-template-columns: repeat(30, 1fr); gap: 2px; height: 26px; }
.vu i { border-radius: 2px; background: rgba(255,255,255,.07); }
.vu i.g.lit { background: #30d158; box-shadow: 0 0 6px rgba(48,209,88,.6); }
.vu i.y.lit { background: #ffd60a; box-shadow: 0 0 6px rgba(255,214,10,.6); }
.vu i.r.lit { background: #ff453a; box-shadow: 0 0 6px rgba(255,69,58,.6); }
.vu i.peak { background: #fff !important; }
.vu-scale { display: flex; justify-content: space-between; font-size: 9.5px; color: var(--text-dim); font-family: var(--n8-mono, ui-monospace, monospace); }
.oa-canvas { width: 100%; height: 70px; display: block; }
.oa-voc { display: flex; align-items: center; gap: 10px; height: 70px; }
.ring { width: 62px; height: 62px; transform: rotate(-90deg); flex: none; }
.ring-bg { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 5; }
.ring-fg { fill: none; stroke: var(--green); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 113.1; stroke-dashoffset: 113.1; transition: stroke-dashoffset .4s, stroke .4s; }
.voc-t { font-size: 12px; line-height: 1.5; color: var(--text-dim); min-width: 0; }
.voc-t b { color: var(--text); font-family: var(--n8-mono, ui-monospace, monospace); font-weight: 600; }
.onair:not(.live) .inst { opacity: .82; }
@media (max-width: 1100px) { .oa-inst { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .oa-inst { grid-template-columns: 1fr; } .onair .big-av { width: 60px; height: 60px; } .oa-name { font-size: 22px; } .oa-timer { font-size: 24px; min-width: 0; } }

/* ---------- Netz-Karten: kompakt, symmetrisch, mit Logo der Plattform ---------- */
.net-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin-bottom: 4px; }
.net-card { padding: 10px 12px 10px; gap: 6px; }
.nc-head { gap: 10px; }
.nc-logo { width: 46px; height: 46px; border-radius: 13px; flex: none; position: relative; overflow: hidden; display: grid; place-items: center; font-size: 24px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--col) 55%, transparent), rgba(255,255,255,.06)); border: 1px solid rgba(255,255,255,.14); }
.nc-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 5px; border-radius: inherit; opacity: 0; }
.nc-logo img.ok { opacity: 1; background: rgba(255,255,255,.94); }
.net-card .nc-title { font-size: 15px; display: flex; align-items: center; gap: 6px; }
.nc-dot { width: 8px; height: 8px; border-radius: 50%; background: #64748b; flex: none; }
.nc-dot.on { background: var(--green); box-shadow: 0 0 8px var(--green); } .nc-dot.off { background: var(--red); } .nc-dot.warn { background: var(--amber); }
.net-card .rt span { font-size: 10px; padding: 2px 6px; }
.nc-now { min-height: 20px; font-size: 13px; }
.nc-meta { font-size: 11.5px; gap: 4px 6px; }
.nc-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.nc-routes .badge { font-size: 10px; padding: 1px 7px; }
.net-card.voc { --col: #bf5af2; }
.onair:not(.live) .oa-timer { color: var(--text-dim); opacity: .55; }

/* ===================================================================================
   1.23.0: der Crosslink als Funkgerät (Vorlage: N8 Hotspot) – LEDs, Displays, Instrumente,
   Kanäle (Netze) und Tageszahlen in einem Gerät über die ganze Breite
   =================================================================================== */
.radio { position: relative; border-radius: 26px; padding: 14px 14px 12px;
    background: linear-gradient(180deg, rgba(42, 48, 66, .92), rgba(20, 24, 36, .96));
    border: 1px solid rgba(255, 255, 255, .10);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 -2px 0 rgba(0, 0, 0, .45), 0 18px 50px rgba(0, 0, 0, .45); }
.radio::before { content: ""; position: absolute; inset: 6px; border-radius: 21px; pointer-events: none;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .018) 0 2px, transparent 2px 5px); }
.radio-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 6px 10px; flex-wrap: wrap; position: relative; }
.radio-brand { display: flex; align-items: center; gap: 8px; }
.radio-badge { font-weight: 800; font-size: 12px; letter-spacing: .08em; padding: 3px 7px; border-radius: 7px; color: #0b1224;
    background: linear-gradient(180deg, var(--accent), #2a8bd8); box-shadow: 0 0 14px rgba(90, 200, 250, .35); }
.radio-model { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); font-weight: 700; }

.leds { display: flex; gap: 12px; flex-wrap: wrap; }
.led { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; color: rgba(235, 240, 250, .38); }
.led b { font-weight: 800; }
.led i { width: 11px; height: 11px; border-radius: 50%; background: #262b38; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06); }
.led.on { color: var(--text); }
.led.dim i { background: #3a4152; }
.led.on.g i { background: radial-gradient(circle at 35% 30%, #c9ffd6, #30d158 45%, #14802f); box-shadow: 0 0 10px #30d158, 0 0 2px #fff inset; }
.led.on.r i { background: radial-gradient(circle at 35% 30%, #ffd1cc, #ff453a 45%, #a3150c); box-shadow: 0 0 12px #ff453a, 0 0 2px #fff inset; }
.led.on.a i { background: radial-gradient(circle at 35% 30%, #fff3b8, #ffd60a 45%, #a98400); box-shadow: 0 0 10px #ffd60a; }
.led.on.m i { background: radial-gradient(circle at 35% 30%, #ffd1f5, #ff2dd1 45%, #a3007f); box-shadow: 0 0 12px #ff2dd1, 0 0 2px #fff inset; }
.led.on.m.pulse i { animation: ledpulse-m 1s ease-in-out infinite; }
@keyframes ledpulse-m { 50% { filter: brightness(1.35); box-shadow: 0 0 18px #ff2dd1; } }
.led.on.b i { background: radial-gradient(circle at 35% 30%, #d4f0ff, #5ac8fa 45%, #1b6fa8); box-shadow: 0 0 10px #5ac8fa; }
.led.pulse i { animation: ledpulse 1s ease-in-out infinite; }
.led.blink i { animation: ledblink 1.2s steps(2, start) infinite; }
@keyframes ledpulse { 50% { filter: brightness(1.35); box-shadow: 0 0 18px #30d158; } }
@keyframes ledblink { to { visibility: hidden; } }

.lcd { position: relative; border-radius: 16px; padding: 10px 14px 9px; overflow: hidden;
    background: radial-gradient(120% 140% at 30% 0%, rgba(90, 200, 250, .16), transparent 60%), linear-gradient(180deg, #0a1a24, #07121b);
    border: 1px solid rgba(90, 200, 250, .25); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .6), inset 0 8px 30px rgba(0, 0, 0, .55), 0 0 30px rgba(90, 200, 250, .08);
    color: #cfefff; font-variant-numeric: tabular-nums; }
.lcd::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px); }
.lcd-top, .lcd-bot { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-family: var(--n8-mono, ui-monospace, monospace); font-size: 12.5px; color: rgba(207, 239, 255, .78); }
.lcd-top { padding-bottom: 8px; border-bottom: 1px dashed rgba(90, 200, 250, .22); }
.lcd-bot { padding-top: 7px; border-top: 1px dashed rgba(90, 200, 250, .22); font-size: 11.5px; color: rgba(207, 239, 255, .55); }
.lcd-call { font-weight: 800; color: #eaf8ff; letter-spacing: .06em; }
.radio-today { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 10px; position: relative; }
.radio-today .rt { display: flex; flex-direction: column; padding: 7px 10px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); }
.radio-today small { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); font-weight: 700; }
.radio-today b { font-size: 18px; font-variant-numeric: tabular-nums; }
.radio-today b small { font-size: 11px; letter-spacing: 0; text-transform: none; margin-left: 4px; color: var(--text-dim); }


.xl-radio { margin-bottom: 14px; display: flex; flex-direction: column; gap: 10px; -webkit-backdrop-filter: none; backdrop-filter: none; }
.xl-radio.live { box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 0 0 1px rgba(var(--led-rx-rgb), .45), 0 0 40px rgba(var(--led-rx-rgb), .18), 0 18px 50px rgba(0,0,0,.45); }
.xl-radio .radio-bar { padding-bottom: 0; }
.xl-radio .rd-note { margin-left: 10px; font-size: 11.5px; color: var(--text-dim); text-transform: none; letter-spacing: 0; }
/* LEDs: RX Magenta · TX Rot · Dienst ok Grün */
.led.on.m i { background: radial-gradient(circle at 35% 30%, #ffd1f5, #ff2dd1 45%, #a3007f); box-shadow: 0 0 12px #ff2dd1, 0 0 2px #fff inset; }
.led.on.m.pulse i { animation: ledpulse-m 1s ease-in-out infinite; }
@keyframes ledpulse-m { 50% { filter: brightness(1.35); box-shadow: 0 0 18px #ff2dd1; } }
.xl-radio .rd-main { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 10px; position: relative; }
.xl-radio .rd-main > .lcd { display: flex; flex-direction: column; min-width: 0; }
.xl-radio .oa-top { display: flex; align-items: center; gap: 14px; flex: 1; padding: 10px 0; }
.xl-radio .big-av { width: 78px; height: 78px; border-radius: 18px; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 22px;
  background: rgba(90, 200, 250, .08); border: 1px solid rgba(90, 200, 250, .25); color: #8fdcff; font-family: var(--n8-mono, monospace); }
.xl-radio.live .big-av { border-color: rgba(var(--led-rx-rgb), .7); box-shadow: 0 0 18px rgba(var(--led-rx-rgb), .35); }
.xl-radio .oa-main { flex: 1; min-width: 0; }
.xl-radio .oa-name { font-family: var(--n8-mono, monospace); font-size: 28px; font-weight: 800; color: #f4fbff; letter-spacing: .04em; margin: 0 0 4px;
  text-shadow: 0 0 12px rgba(143, 220, 255, .35); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xl-radio .oa-sub { font-size: 12.5px; color: rgba(207, 239, 255, .7); }
.xl-radio .oa-timer { font-family: var(--n8-mono, monospace); font-size: 34px; font-weight: 800; color: #f4fbff; min-width: 0; text-align: right; }
.xl-radio:not(.live) .oa-timer { color: rgba(207, 239, 255, .35); opacity: 1; }
.xl-radio .oa-route { display: inline-flex; gap: 4px; align-items: center; }
.xl-radio .lcd-bot { flex-wrap: nowrap; }
.xl-radio .lcd-bot .vu { flex: 1; height: 14px; grid-template-columns: repeat(30, 1fr); gap: 2px; }
.xl-radio .lcd-bot b { color: #eaf8ff; min-width: 54px; text-align: right; }
.xl-radio .lcd-bot .grow-r { margin-left: auto; }
.xl-radio .vu i { background: rgba(207, 239, 255, .10); }
.xl-radio .lcd-chart .oa-canvas { flex: 1; min-height: 120px; height: auto; margin: 8px 0; }
.xl-radio .rd-inst { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 10px; margin: 0; position: relative; }
.xl-radio .inst { background: linear-gradient(180deg, rgba(8, 18, 27, .85), rgba(7, 14, 22, .92)); border: 1px solid rgba(90, 200, 250, .18);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .5), inset 0 6px 22px rgba(0, 0, 0, .45); border-radius: 14px; opacity: 1; }
.xl-radio .inst-h b { font-family: var(--n8-mono, monospace); color: #8fdcff; }
.xl-radio .radio-today { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 0; }
.xl-radio .radio-today .rt.hl b { color: #ff7ae4; }
.xl-radio .radio-today b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Kanäle (Netze) im Gerät: kleiner, Logo größer und ohne weißen Rand */
.xl-radio .net-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px; margin: 0; position: relative; }
.xl-radio .net-card { padding: 8px 10px; gap: 4px; border-radius: 14px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); -webkit-backdrop-filter: none; backdrop-filter: none; }
.xl-radio .net-card::before { height: 2px; }
.xl-radio .nc-logo { width: 52px; height: 52px; border-radius: 14px; background: rgba(0, 0, 0, .25); border: 0; font-size: 26px; }
.xl-radio .nc-logo img { padding: 0; object-fit: cover; border-radius: inherit; }
.xl-radio .nc-logo img.ok { background: none; }
.xl-radio .net-card .nc-title { font-size: 14px; }
.xl-radio .nc-sub { font-size: 11.5px; }
.xl-radio .nc-now { font-size: 12px; min-height: 18px; }
.xl-radio .nc-meta { font-size: 11px; }
.xl-radio .net-card .badge, .xl-radio .nc-routes .badge { font-size: 9.5px; padding: 1px 6px; line-height: 1.5; }
.xl-radio .net-card .rt span { font-size: 9.5px; padding: 1px 5px; }
.xl-radio .net-card.txing { box-shadow: 0 0 0 1px rgba(255, 69, 58, .5), 0 0 20px rgba(255, 69, 58, .15); }
.xl-radio .net-card.rxing { box-shadow: 0 0 0 1px rgba(var(--led-rx-rgb), .55), 0 0 20px rgba(var(--led-rx-rgb), .18); }
@media (max-width: 1100px) { .xl-radio .rd-main { grid-template-columns: 1fr; } .xl-radio .radio-today { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .xl-radio .rd-inst { grid-template-columns: 1fr; } .xl-radio .oa-name { font-size: 20px; } .xl-radio .big-av { width: 56px; height: 56px; }
  .xl-radio .oa-timer { font-size: 22px; } .xl-radio .leds { gap: 8px; } }
.xl-radio .lcd-clock { margin-left: auto; color: #eaf8ff; font-weight: 700; }
.xl-radio .oa-top { flex: 1 1 auto; }
.xl-radio .lcd-chart .oa-canvas { flex: none; height: 150px; min-height: 0; }
.xl-radio .rd-inst .oa-canvas { height: 70px; }
.xl-radio .rd-main { align-items: stretch; }

/* FRN: Raum-Auswahl */
.room-pick { display: flex; gap: 8px; align-items: stretch; }
.room-pick select { flex: 1; min-width: 0; }
.room-pick .btn { padding: 0 14px; flex: none; }
.room-note.ok { color: #6ee7a0; }
.room-note.warn { color: #fbbf24; }
