/* frn_adn – same glass design as the DMR Die N8schicht dashboard, logo: Auf der NachtSchicht */
: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; --green: #30d158; --amber: #ffd60a; --red: #ff453a; --violet: #bf5af2;
    --text: var(--user-text, #f5f7fb); --text-dim: var(--user-muted, rgba(235, 240, 250, 0.62)); --text-faint: rgba(235, 240, 250, 0.42);
    --mono: ui-monospace, "SF Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; padding: 16px; min-height: 100vh; color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif; font-size: 14px;
    background:
        radial-gradient(1100px 700px at 8% -10%, var(--theme-glow-a, rgba(10, 132, 255, 0.35)), transparent 60%),
        radial-gradient(900px 650px at 100% 0%, var(--theme-glow-b, rgba(191, 90, 242, 0.28)), transparent 60%),
        radial-gradient(900px 700px at 50% 110%, var(--theme-glow-c, rgba(48, 209, 88, 0.18)), transparent 60%),
        linear-gradient(180deg, var(--theme-page-top, #070b17) 0%, var(--theme-page-bottom, #0b1224) 100%);
    background-attachment: fixed; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
.container { max-width: 1400px; margin: 0 auto; }
.glass, header, .card, .tile, .modal {
    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);
}
.hidden { display: none !important; }
.dim { color: var(--text-dim); }
.mono { font-family: var(--mono); }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Header */
header { position: sticky; top: 10px; z-index: 50; border-radius: var(--radius-lg); padding: 10px 16px;
         display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--theme-header, rgba(20, 26, 45, 0.55)); }
.container > header { margin-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand img { height: 56px; width: 56px; border-radius: 14px; filter: drop-shadow(0 4px 12px var(--theme-accent-glow, rgba(90, 200, 250, 0.35))); }
.brand h1 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -0.02em;
            background: linear-gradient(90deg, var(--text) 0%, var(--accent) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand .sub { color: var(--text-dim); font-size: 13px; margin-top: 2px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip { border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 13px; border: 1px solid var(--glass-border);
        background: var(--glass-bg); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.chip.ok { background: rgba(48, 209, 88, 0.22); color: #7ef0a0; border-color: rgba(48, 209, 88, 0.45); }
.chip.warn { background: rgba(255, 214, 10, 0.18); color: #ffe36a; border-color: rgba(255, 214, 10, 0.4); }
.chip.bad { background: rgba(255, 69, 58, 0.22); color: #ff8a80; border-color: rgba(255, 69, 58, 0.45); }
.chip.info { background: rgba(10, 132, 255, 0.22); color: #9bd0ff; border-color: rgba(10, 132, 255, 0.45); }
.btn { border-radius: 999px; padding: 7px 14px; font-weight: 600; border: 1px solid var(--glass-border); background: var(--glass-bg-strong);
       cursor: pointer; transition: background .15s, transform .1s; }
.btn:hover { background: rgba(255, 255, 255, 0.14); }
.btn:active { transform: scale(0.98); }
.btn.primary { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent), #6e5ce6 45%)); border-color: var(--theme-accent-border, rgba(255, 255, 255, 0.25)); }
.btn.danger { background: rgba(255, 69, 58, 0.25); border-color: rgba(255, 69, 58, 0.5); color: #ffb3ad; }
.btn.good { background: rgba(48, 209, 88, 0.25); border-color: rgba(48, 209, 88, 0.5); color: #9ff5b8; }
.btn.small { padding: 4px 10px; font-size: 12px; }
.btn:disabled { opacity: .45; cursor: default; }

/* Banners */
.banner { margin: 14px 0 0; border-radius: var(--radius-md); padding: 12px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; }
.banner.warn { background: linear-gradient(135deg, rgba(255, 159, 10, 0.25), rgba(255, 214, 10, 0.10)); border: 1px solid rgba(255, 214, 10, 0.45); }
.banner.info { background: linear-gradient(135deg, rgba(10, 132, 255, 0.25), rgba(94, 92, 230, 0.12)); border: 1px solid rgba(10, 132, 255, 0.45); }

/* Tabs */
.tabs { display: flex; gap: 6px; margin: 16px 0 4px; padding: 4px; border-radius: 999px; width: fit-content; max-width: 100%; overflow-x: auto;
        background: var(--glass-bg); border: 1px solid var(--glass-border); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.tabs button { background: transparent; border: 0; color: var(--text-dim); font-size: 14px; font-weight: 650; padding: 8px 18px; border-radius: 999px;
               cursor: pointer; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.tabs button:hover { color: var(--text); }
.tabs .t-short { display: none; }
.tabs button.active { background: var(--theme-accent-soft, rgba(90, 200, 250, 0.18)); color: var(--text); box-shadow: inset 0 0 0 1px var(--theme-accent-border, rgba(90, 200, 250, 0.35)); }
.tabs.sub { margin: 4px 0 14px; }
.tabs.sub button { font-size: 13px; padding: 6px 14px; }
.seg { display: inline-flex; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--glass-border); border-radius: 999px; padding: 3px; gap: 2px; }
.seg { max-width: 100%; overflow-x: auto; }
.seg button { white-space: nowrap; background: transparent; border: 0; color: var(--text-dim); font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.seg button:hover { color: var(--text); }
.seg button.active { background: var(--theme-accent-soft, rgba(90, 200, 250, 0.18)); color: var(--text); box-shadow: inset 0 0 0 1px var(--theme-accent-border, rgba(90, 200, 250, 0.35)); }

.section-header { color: var(--text-dim); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; margin: 22px 4px 10px;
                  display: flex; align-items: center; gap: 8px; }
.section-header .count { color: var(--accent); }
.card { border-radius: var(--radius-lg); padding: 14px 16px; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.live-top { margin-top: 14px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.st-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.users-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.stats-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.stat { border-radius: var(--radius-md); padding: 14px 16px; background: var(--glass-bg); border: 1px solid var(--glass-border);
        box-shadow: inset 0 1px 0 var(--glass-highlight), var(--glass-shadow); transition: transform .2s; }
.stat:hover { transform: translateY(-2px); }
.stat .k { color: var(--text-dim); font-size: 11px; font-weight: 600; letter-spacing: .02em; }
.stat .v { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.stat .v small { font-size: 13px; color: var(--text-dim); font-weight: 600; margin-left: 4px; }

/* Slots */
.slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.slot { border-radius: var(--radius-lg); padding: 16px 18px; position: relative; overflow: hidden; min-height: 132px;
        background: var(--glass-bg); border: 1px solid var(--glass-border); box-shadow: inset 0 1px 0 var(--glass-highlight), var(--glass-shadow); }
.slot .lbl { font-size: 12px; font-weight: 700; color: var(--text-dim); letter-spacing: .08em; text-transform: uppercase; display: flex; justify-content: space-between; align-items: center; }
.slot.idle .idle-text { color: var(--text-faint); font-size: 15px; margin-top: 30px; text-align: center; }
.slot.active.rf { background: linear-gradient(135deg, rgba(255, 69, 58, 0.30), rgba(255, 159, 10, 0.12)); border-color: rgba(255, 105, 97, 0.6);
                  box-shadow: 0 0 0 1px rgba(255, 69, 58, 0.25), 0 10px 40px rgba(255, 69, 58, 0.25); }
.slot.active.network { background: linear-gradient(135deg, rgba(48, 209, 88, 0.28), rgba(10, 132, 255, 0.10)); border-color: rgba(48, 209, 88, 0.55);
                       box-shadow: 0 0 0 1px rgba(48, 209, 88, 0.25), 0 10px 40px rgba(48, 209, 88, 0.22); }
.slot .who { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 18px; flex: none;
          background: linear-gradient(135deg, #5e5ce6, #0a84ff); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); }
.avatar { position: relative; overflow: hidden; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 30px; height: 30px; font-size: 12px; }
.avatar.xl { width: 92px; height: 92px; font-size: 30px; box-shadow: 0 0 0 3px rgba(255,255,255,.12), 0 10px 30px rgba(0,0,0,.45); }
.frid { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .04em; color: #9ff5b8; background: rgba(48,209,88,.18);
        border: 1px solid rgba(48,209,88,.45); border-radius: 6px; padding: 0 5px; vertical-align: 2px; margin-left: 4px; }
.station-link { cursor: pointer; }
.station-link:hover b, .station-link:hover .call { text-decoration: underline; text-decoration-color: rgba(90,200,250,.6); text-underline-offset: 3px; }
.modal.wide { width: min(720px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; }
.st-head { display: flex; gap: 18px; align-items: center; }
.st-call { font-size: 28px; font-weight: 800; letter-spacing: -.01em; }
.slot .call { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }
.slot .name { color: var(--text-dim); font-size: 13px; }
.slot .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.slot .timer { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; margin-left: auto; }
.pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700;
        background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); white-space: nowrap; }
.pill.rf { background: rgba(255, 69, 58, 0.22); border-color: rgba(255, 69, 58, 0.5); color: #ffb3ad; }
.pill.net { background: rgba(10, 132, 255, 0.22); border-color: rgba(10, 132, 255, 0.5); color: #9bd0ff; }
.pill.tg { background: rgba(90, 200, 250, 0.12); border-color: rgba(90, 200, 250, 0.32); color: var(--text); }
.pill.air { background: rgba(48, 209, 88, 0.25); border-color: rgba(48, 209, 88, 0.55); color: #9ff5b8; }
.pill.air::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #30d158; box-shadow: 0 0 8px #30d158; animation: pulse 1.2s infinite; }
.pill.ok { background: rgba(48, 209, 88, 0.18); border-color: rgba(48, 209, 88, 0.45); color: #9ff5b8; }
.pill.warn { background: rgba(255, 214, 10, 0.16); border-color: rgba(255, 214, 10, 0.4); color: #ffe36a; }
.pill.bad { background: rgba(255, 69, 58, 0.2); border-color: rgba(255, 69, 58, 0.45); color: #ffb3ad; }
@keyframes pulse { 50% { opacity: .35; } }

/* Info list */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 13.5px; }
.kv .k { color: var(--text-dim); }
.kv .v { font-weight: 600; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Tables */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.tbl th { text-align: left; color: var(--text-dim); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
          padding: 8px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); white-space: nowrap; }
.tbl td { padding: 8px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.new td { animation: flash 2s ease-out; }
@keyframes flash { from { background: rgba(48, 209, 88, 0.25); } to { background: transparent; } }
.tbl .who { display: inline-flex; align-items: center; gap: 9px; }
.tbl .who b { font-size: 14px; }
.tbl .who small { color: var(--text-dim); display: block; font-size: 11.5px; }
.empty { color: var(--text-dim); text-align: center; padding: 26px 8px; }

/* Forms / settings */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 14px; align-items: start; }
.tile { border-radius: var(--radius-lg); padding: 16px 18px; }
.tile h3 { margin: 0 0 4px; font-size: 13px; letter-spacing: .07em; text-transform: uppercase; }
.tile .subt { color: var(--text-dim); font-size: 12.5px; margin-bottom: 10px; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 6px 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.row:last-of-type { border-bottom: 0; }
.row label { font-size: 13.5px; }
.row .help { grid-column: 1 / -1; color: var(--text-faint); font-size: 12px; margin-top: -2px; }
.row.wide { grid-template-columns: 1fr; }
input[type=text], input[type=password], input[type=number], input[type=time], select, textarea {
    width: 100%; background: var(--theme-input-bg, rgba(0, 0, 0, 0.28)); border: 1px solid var(--theme-input-border, rgba(255, 255, 255, 0.14)); border-radius: 10px; padding: 8px 10px; outline: none; }
textarea { min-height: 96px; resize: vertical; font-family: var(--mono); font-size: 12.5px; }
input:focus, select:focus, textarea:focus { border-color: var(--theme-accent-focus, rgba(90, 200, 250, 0.6)); box-shadow: 0 0 0 3px var(--theme-accent-shadow, rgba(90, 200, 250, 0.15)); }
select option { background: var(--theme-option-bg, #151b30); color: var(--text); }
.switch { position: relative; width: 46px; height: 26px; justify-self: end; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.16); transition: .2s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + span { background: #30d158; }
.switch input:checked + span::before { transform: translateX(20px); }
.actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; flex-wrap: wrap; }
.restart-tag { font-size: 10px; font-weight: 700; color: #ffd60a; border: 1px solid rgba(255, 214, 10, 0.4); border-radius: 6px; padding: 0 5px; margin-left: 6px; vertical-align: 1px; }
.pw-wrap { display: flex; gap: 6px; }

/* Modal */
.overlay { position: fixed; inset: 0; background: rgba(4, 7, 16, 0.6); z-index: 200; display: grid; place-items: center; padding: 16px;
           -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal { border-radius: var(--radius-lg); padding: 22px; width: min(420px, 100%); background: rgba(22, 28, 48, 0.88); }
.modal h2 { margin: 0 0 4px; font-size: 20px; }
.modal .row { grid-template-columns: 1fr; border: 0; padding: 6px 0; }
.modal .err { color: #ff8a80; font-size: 13px; min-height: 18px; margin-top: 6px; }
.modal .logo { width: 64px; height: 64px; border-radius: 16px; display: block; margin: 0 auto 10px; }

/* Charts (same as the N8schicht statistics) */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.kpi { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius-sm); padding: 10px 12px; }
.kpi .k { color: var(--text-dim); font-size: 11px; font-weight: 600; }
.kpi .v { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 2px; }
.panel { background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius-md); padding: 12px 14px 10px; min-width: 0; }
.panel h3 { margin: 0 0 8px; font-size: 12px; font-weight: 700; color: var(--text-dim); letter-spacing: .06em; text-transform: uppercase;
            display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.panel h3 small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font-family: inherit; font-variant-numeric: tabular-nums; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 8px; font-size: 12px; color: var(--text-dim); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i, .tgdot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.tip { position: fixed; z-index: 3000; pointer-events: none; background: rgba(16, 22, 40, 0.96); border: 1px solid var(--glass-border); border-radius: 10px;
       padding: 8px 10px; font-size: 12px; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45); min-width: 150px; display: none; }
.tip b { display: block; margin-bottom: 4px; }
.tip .r { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.tip .r span:first-child { display: inline-flex; gap: 6px; align-items: center; color: var(--text-dim); }
.tip i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.share { display: inline-flex; align-items: center; gap: 8px; min-width: 120px; }
.share .bar { flex: 1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.share .bar > div { height: 100%; border-radius: 3px; background: var(--accent); }

.term { background: rgba(0, 0, 0, 0.38); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius-sm); padding: 10px 12px; font-family: var(--mono);
        font-size: 12px; line-height: 1.5; height: 220px; overflow-y: auto; white-space: pre-wrap; color: #cfd6ea; }
.logview { height: 460px; }
.logview .w { color: #ffe36a; } .logview .e { color: #ff8a80; } .logview .t { color: var(--text-faint); } .logview .g { color: #9bd0ff; }
pre.ini { margin: 0; max-height: 520px; overflow: auto; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.dot.on { background: #30d158; box-shadow: 0 0 8px #30d158; } .dot.off { background: #ff453a; } .dot.unk { background: #8e8e93; }
footer { text-align: center; color: var(--text-faint); font-size: 12px; margin: 30px 0 10px; }

@media (max-width: 900px) {
    .g2, .g3, .live-top, .st-grid, .users-grid { grid-template-columns: 1fr; }
    .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tiles { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    body { padding: 10px; }
    header { top: 6px; padding: 8px 12px; }
    .brand img { height: 42px; width: 42px; }
    .brand h1 { font-size: 19px; }
    .chip { padding: 5px 10px; font-size: 12px; }
    .tabs { width: 100%; }
    .tabs button { flex: 1 1 0; min-width: 0; justify-content: center; padding: 8px 2px; font-size: 12.5px; gap: 3px; }
    .tabs .t-long { display: none; } .tabs .t-short { display: inline; }
    .stat .v { font-size: 21px; }
    .slot .call { font-size: 22px; }
    .hide-sm { display: none; }
    .row { grid-template-columns: 1fr; }
    .switch { justify-self: start; }
}

/* ---------- FRN: on air, rooms, stations ---------- */
.onair { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.onair .slot { min-height: 0; }
.slot.active.frn { background: linear-gradient(135deg, rgba(48, 209, 88, 0.28), rgba(10, 132, 255, 0.10)); border-color: rgba(48, 209, 88, 0.55);
                   box-shadow: 0 0 0 1px rgba(48, 209, 88, 0.25), 0 10px 40px rgba(48, 209, 88, 0.22); }
.onair-empty { color: var(--text-faint); text-align: center; padding: 18px 8px; font-size: 14px; }
.rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; align-items: start; }
.room { min-width: 0; border-radius: var(--radius-lg); padding: 14px 16px 10px; background: var(--glass-bg); border: 1px solid var(--glass-border);
        box-shadow: inset 0 1px 0 var(--glass-highlight), var(--glass-shadow); transition: border-color .3s, box-shadow .3s; }
.room.live { border-color: rgba(48, 209, 88, 0.55); box-shadow: 0 0 0 1px rgba(48, 209, 88, 0.25), 0 10px 36px rgba(48, 209, 88, 0.18); }
.room-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.room-head h3 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-count { font-size: 12px; font-weight: 800; border-radius: 999px; padding: 2px 9px; background: var(--theme-accent-soft, rgba(90, 200, 250, 0.16)); border: 1px solid var(--theme-accent-border, rgba(90, 200, 250, 0.35)); }
.room-count.zero { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); color: var(--text-dim); }
.room .src { font-size: 11px; color: var(--text-faint); }
.st-row { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-top: 1px solid rgba(255, 255, 255, 0.05); border-radius: 10px; }
.st-row:first-of-type { border-top: 0; }
.st-row.talk { background: rgba(48, 209, 88, 0.16); border-top-color: transparent; }
.st-row.talk + .st-row { border-top-color: transparent; }
.st-row .c { min-width: 0; flex: 1; }
.st-row .c b { font-size: 14px; }
.st-row .c small { display: block; color: var(--text-dim); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-row .r { text-align: right; font-size: 11.5px; color: var(--text-dim); white-space: nowrap; max-width: 46%; overflow: hidden; text-overflow: ellipsis; }
.st-row .mic { width: 8px; height: 8px; border-radius: 50%; background: #30d158; box-shadow: 0 0 8px #30d158; animation: pulse 1.2s infinite; display: inline-block; margin-left: 6px; vertical-align: 1px; }
.room .none { color: var(--text-faint); font-size: 13px; padding: 10px 4px 12px; }
.flag { font-size: 14px; line-height: 1; }
.band { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--text-dim); }
.feed { display: grid; gap: 0; }
.feed .ev { display: flex; gap: 10px; align-items: center; padding: 6px 2px; border-top: 1px solid rgba(255, 255, 255, 0.05); font-size: 13px; }
.feed .ev:first-child { border-top: 0; }
.feed .ev .t { color: var(--text-faint); font-variant-numeric: tabular-nums; font-size: 12px; min-width: 62px; }
.lh-top { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); margin-top: 0; }
.live-activity { display:grid; grid-template-columns:minmax(0,1fr); gap:14px; }
.live-activity-wide { min-width:0; }
.room-tabs { display:flex; flex-wrap:wrap; gap:7px; margin:0 0 10px; padding:0 0 7px; border-bottom:1px solid var(--glass-border); }
.room-tab { display:inline-flex; align-items:center; gap:8px; min-width:0; max-width:100%; padding:8px 11px; border-radius:12px; color:var(--text-dim); background:rgba(255,255,255,.035); border:1px solid var(--glass-border); cursor:pointer; font:inherit; font-size:12px; font-weight:700; transition:background .15s,border-color .15s,color .15s; }
.room-tab:hover { background:rgba(255,255,255,.08); color:var(--text); }
.room-tab.active { color:var(--text); background:var(--theme-accent-soft,rgba(90,200,250,.15)); border-color:var(--theme-accent-border,rgba(90,200,250,.48)); box-shadow:inset 0 0 0 1px var(--theme-accent-shadow,rgba(90,200,250,.08)); }
.room-tab-dot { width:7px; height:7px; flex:0 0 7px; border-radius:50%; background:var(--text-faint); }
.room-tab.is-live .room-tab-dot { background:#30d158; box-shadow:0 0 9px rgba(48,209,88,.75); }
.room-tab-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.room-tabs + .room { margin-top:0; }
.addr { font-family: var(--mono); font-size: 12.5px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 8px; padding: 2px 8px; }

/* heatmap */
.heat { display: grid; grid-template-columns: 30px repeat(24, minmax(0, 1fr)); gap: 3px; font-size: 10.5px; color: var(--text-dim); }
.heat .cell { aspect-ratio: 1.6; border-radius: 4px; background: rgba(255, 255, 255, 0.04); }
.heat .lbl { display: flex; align-items: center; }
.heat .hl { text-align: center; }
.heat-legend { display: flex; align-items: center; gap: 4px; justify-content: flex-end; margin-top: 8px; font-size: 11px; color: var(--text-dim); }
.heat-legend i { width: 16px; height: 10px; border-radius: 3px; display: inline-block; }

/* chat */
.chat-list { display: grid; gap: 8px; max-height: 640px; overflow-y: auto; }
.msg { display: flex; gap: 10px; align-items: flex-start; }
.msg .bubble { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 14px; padding: 7px 12px; min-width: 0; }
.msg .bubble .h { font-size: 12px; color: var(--text-dim); margin-bottom: 2px; }
.msg .bubble .h b { color: var(--text); }
.msg .txt { white-space: pre-wrap; word-break: break-word; }

/* admin: rooms editor, lists */
.room-list { display: grid; gap: 6px; }
.room-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; cursor: pointer; border: 1px solid transparent; }
.room-item:hover { background: rgba(255, 255, 255, 0.05); }
.room-item.active { background: var(--theme-accent-soft, rgba(90, 200, 250, 0.14)); border-color: var(--theme-accent-border, rgba(90, 200, 250, 0.35)); }
.room-item .n { flex: 1; font-weight: 650; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rooms-admin { grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); }
.acl { width: 100%; }
.acl td { padding: 4px 4px; }
.acl input[type=text] { padding: 6px 8px; }
.acl-room { margin-top:14px; padding:14px; border:1px solid var(--glass-border); border-radius:16px; background:rgba(255,255,255,.025); }
.acl-room > h3 { margin:0 0 10px; font-size:15px; letter-spacing:0; text-transform:none; }
.acl-mode { display:flex; flex-wrap:wrap; align-items:center; gap:10px 18px; padding:10px 12px; border-radius:12px; background:rgba(255,255,255,.035); }
.acl-mode > label:not(.acl-notice) { display:inline-flex; align-items:center; gap:7px; font-size:13px; }
.acl-mode input[type=checkbox], .acl-check input { width:16px; height:16px; accent-color:var(--accent); }
.acl-notice { flex:1 1 100%; display:grid; gap:5px; color:var(--text-dim); font-size:12px; }
.acl-notice textarea { min-height:64px; }
.acl-mode .acl-actions { margin:0 0 0 auto; }
.acl-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:12px; align-items:start; }
.acl-list { min-width:0; padding:12px; border:1px solid var(--glass-border); border-radius:14px; background:rgba(255,255,255,.025); }
.acl-list h4 { margin:0 0 10px; font-size:13px; letter-spacing:.04em; text-transform:uppercase; }
.acl-entry { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; padding:10px; margin:8px 0; border:1px solid rgba(255,255,255,.08); border-radius:11px; background:rgba(0,0,0,.12); }
.acl-entry label { min-width:0; display:grid; gap:4px; color:var(--text-dim); font-size:11px; }
.acl-entry input[type=text], .acl-entry select { min-width:0; padding:6px 8px; font-size:12px; }
.acl-entry input[readonly] { opacity:.7; }
.acl-entry .acl-check { display:flex; align-items:center; gap:7px; color:var(--text); font-size:12px; }
.acl-add { border-style:dashed; }
.acl-add-title { grid-column:1/-1; color:var(--text-dim); font-weight:700; font-size:12px; }
.acl-pick { grid-column:1/-1; }
.acl-actions { grid-column:1/-1; display:flex; justify-content:flex-end; gap:6px; margin-top:2px; }
.acl-empty { padding:14px 4px; }
textarea.json { min-height: 520px; font-size: 12px; line-height: 1.45; tab-size: 2; }
.notice-box { background: rgba(255, 214, 10, 0.08); border: 1px solid rgba(255, 214, 10, 0.3); border-radius: 12px; padding: 10px 12px; font-size: 13px; color: #ffe9a0; margin: 6px 0 4px; }
.mgr { border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 10px 12px; margin: 8px 0; background: rgba(255, 255, 255, 0.03); }
.mgr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.mgr-grid label { display: grid; gap: 4px; font-size: 12px; color: var(--text-dim); }
.mgr-grid .m-on-l { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; color: var(--text); font-size: 13px; }
.mon-rooms { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

@media (max-width: 900px) {
    .lh-top, .rooms-admin, .acl-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .rooms { grid-template-columns: minmax(0, 1fr); }
    .st-row .band-txt { display: none; }
    .onair { grid-template-columns: 1fr; }
    .heat { grid-template-columns: 24px repeat(24, minmax(0, 1fr)); gap: 2px; font-size: 9px; }
}

/* collapsible section headers – as on the DMR dashboard */
.collapsible { cursor: pointer; user-select: none; }
.collapse-caret { display: inline-block; width: .9em; margin-right: 2px; font-size: 1.2em; color: #64748b; transition: transform .15s ease; }
.collapsible:hover .collapse-caret { color: var(--accent); }
.collapsed .collapse-caret { transform: rotate(-90deg); }
.st-row { position: relative; }
.st-row .mod { padding: 2px 8px; margin-left: 4px; }
.room-head .btn.small { padding: 2px 8px; }
.acl { width: 100%; border-collapse: collapse; }
.acl td { padding: 3px 4px 3px 0; }
.banner code { background: rgba(0,0,0,.3); padding: 1px 6px; border-radius: 6px; font-size: 12px; }

/* HBlink4-inspired links popover and configurable accent */
.links-menu { position:relative; display:inline-flex; flex:0 0 auto; z-index:80; }
.links-trigger { display:inline-flex; align-items:center; gap:8px; min-height:36px; white-space:nowrap; }
.links-pop { display:none; position:absolute; right:0; top:calc(100% + 9px); width:min(300px, calc(100vw - 28px)); max-height:min(60vh, 420px); overflow:auto;
 z-index:500; padding:7px; border-radius:14px; background:var(--theme-popover,rgba(16,22,40,.985)); border:1px solid var(--glass-border);
 box-shadow:0 14px 40px rgba(0,0,0,.55); -webkit-backdrop-filter:blur(20px); backdrop-filter:blur(20px); }
.links-menu.open .links-pop { display:block; }
.links-pop a { display:flex; align-items:center; gap:10px; min-height:40px; padding:10px 12px; border-radius:10px;
 color:var(--text); text-decoration:none; font-size:13px; font-weight:600; overflow-wrap:anywhere; }
.links-pop a:hover, .links-pop a:focus-visible { background:var(--theme-accent-soft,rgba(90,200,250,.16)); outline:none; }
.site-icon-wrap { width:22px; height:22px; display:inline-grid; place-items:center; flex:0 0 22px; font-size:17px; }
.site-icon-wrap img { width:22px; height:22px; object-fit:contain; border-radius:4px; grid-area:1/1; }
.site-icon-wrap .site-icon-fallback { grid-area:1/1; }
.links-bar { display:flex; justify-content:center; flex-wrap:wrap; gap:7px; margin:0 0 12px; }
.links-bar[hidden] { display:none; }
.links-bar a { display:inline-flex; align-items:center; gap:7px; color:var(--text); text-decoration:none; border:1px solid var(--glass-border); background:var(--glass-bg); padding:6px 11px; border-radius:999px; font-size:12px; font-weight:650; }
.links-bar a:hover { border-color:var(--accent); }
.links-loading { padding:12px; color:var(--text-dim); font-size:13px; }
.chips { min-width:0; }
.links-editor label, .import-drop label { display:block; margin:10px 0 6px; font-weight:650; }
.links-editor .actions { justify-content:flex-end; }
.links-editor-options, .theme-colors { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:12px; margin:12px 0; }
.link-editor-row { display:grid; grid-template-columns:minmax(120px,.8fr) minmax(220px,1.6fr) 85px 110px auto; align-items:center; gap:10px; margin:10px 0; padding:12px; border:1px solid var(--glass-border); border-radius:14px; background:rgba(255,255,255,.025); }
.link-editor-row label, .theme-colors label { min-width:0; display:grid; gap:5px; color:var(--text-dim); font-size:12px; }
.link-editor-row input[type=text], .theme-colors input[type=text] { width:100%; min-width:0; }
.link-editor-row .link-row-preview { display:flex; align-items:center; gap:7px; }
.link-editor-row .link-row-preview img { width:22px; height:22px; object-fit:contain; }
.link-row-options { display:flex; flex-direction:column; gap:8px; font-size:11px; }
.link-row-options label, .theme-toggle { display:flex; align-items:center; gap:6px; white-space:nowrap; }
.link-row-actions { display:flex; gap:4px; }
.theme-assets { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:14px 0; }
.theme-asset { display:grid; grid-template-columns:88px minmax(0,1fr); gap:12px; align-items:center; padding:14px; border:1px solid var(--glass-border); border-radius:14px; background:rgba(255,255,255,.025); }
.theme-asset-preview { width:80px; height:80px; display:grid; place-items:center; border-radius:14px; background:rgba(0,0,0,.16); border:1px solid var(--glass-border); overflow:hidden; }
.theme-asset-preview img { max-width:100%; max-height:100%; object-fit:contain; }
.theme-card { max-width:1050px; }
.import-card { max-width:820px; }
.import-drop { display:flex; align-items:center; flex-wrap:wrap; gap:12px; padding:16px; border:1px dashed var(--glass-border); border-radius:14px; background:rgba(255,255,255,.025); }
.import-drop label { flex:1 0 100%; margin:0; }
.import-drop input[type=file] { flex:1 1 260px; min-width:0; max-width:100%; }
body { --accent: var(--user-accent, #5ac8fa); }
@media (max-width: 900px) {
    header { align-items:flex-start; }
    .chips { justify-content:flex-start; width:100%; }
    .link-editor-row { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
    .chips { gap:6px; }
    .links-pop { right:auto; left:0; }
    .import-drop { align-items:stretch; }
    .import-drop .btn { width:100%; }
    .theme-assets, .link-editor-row { grid-template-columns:1fr; }
    .link-row-actions { justify-content:flex-end; }
}


/* Compact live overview: key activity and rooms fit above the fold */
.live-page { display:flex; flex-direction:column; gap:12px; }
.live-overview { display:grid; grid-template-columns:minmax(0, 1.02fr) minmax(360px, .98fr); gap:14px; align-items:start; }
.live-primary, .live-rooms { min-width:0; border:1px solid var(--glass-border); border-radius:var(--radius-lg); padding:12px;
    background:rgba(255,255,255,.025); box-shadow:inset 0 1px 0 var(--glass-highlight); }
.live-primary .section-header, .live-rooms .section-header { margin:2px 3px 9px; }
.live-primary .stats-bar { grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.live-primary .stat { padding:10px 12px; }
.live-primary .stat .v { font-size:23px; }
.live-primary .onair { grid-template-columns:minmax(0,1fr); gap:8px; }
.live-primary .onair .slot { padding:12px 14px; }
.live-rooms .rooms { grid-template-columns:minmax(0,1fr); max-height:590px; overflow-y:auto; overscroll-behavior:contain; padding:0 4px 2px 0; gap:8px; }
.live-rooms .room { padding:10px 12px 8px; }
.live-rooms .room-head h3 { font-size:15px; }
.live-rooms .st-row { padding:5px 3px; }
.live-activity { margin-top:0 !important; }
@media (max-width:1050px) {
    .live-overview { grid-template-columns:minmax(0,1fr); }
    .live-rooms .rooms { grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); max-height:440px; }
}
@media (max-width:600px) {
    .live-primary, .live-rooms { padding:9px; }
    .live-primary .stats-bar { grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
    .live-primary .stat { padding:9px 10px; }
    .live-primary .stat .v { font-size:21px; }
    .live-rooms .rooms { grid-template-columns:minmax(0,1fr); max-height:none; overflow:visible; }
}


/* Slimmer live header: keep Quiet only in the On air panel, not in the global status row. */
#chipAir { display:none !important; }
header { padding:7px 12px; gap:9px; }
.brand { gap:10px; }
.brand img { width:46px; height:46px; border-radius:12px; }
.brand h1 { font-size:21px; }
.brand .sub { font-size:12px; margin-top:1px; }
.chips { gap:6px; }
.chip { padding:5px 10px; font-size:12px; gap:5px; }
.links-trigger, #userArea .btn { min-height:31px; padding:5px 11px; font-size:12px; }
.tabs { padding:4px; gap:4px; }
.tabs button { padding:7px 12px; font-size:12px; }
@media (max-width:600px) {
    header { padding:7px 9px; gap:7px; }
    .brand img { width:40px; height:40px; }
    .brand h1 { font-size:18px; }
    .chip { padding:4px 8px; font-size:11px; }
    .links-trigger, #userArea .btn { min-height:29px; padding:4px 9px; font-size:11px; }
}

/* client software avatars and role badges (2.3) */
.avatar.sw { background: none; border-radius: 28%; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.avatar.sw.sm { border-radius: 9px; }
.avatar.sw.xl { border-radius: 24px; }
.st-call { display: inline-flex; align-items: center; gap: 5px; }
.role-badge { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; font-size: 12px; line-height: 1; flex: none; }
.role-badge.owner { background: rgba(255, 214, 10, .18); box-shadow: inset 0 0 0 1px rgba(255, 214, 10, .45); }
.role-badge.admin { background: rgba(10, 132, 255, .18); box-shadow: inset 0 0 0 1px rgba(10, 132, 255, .45); }
.cl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin-top: 10px; }
.cl-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); background: rgba(127, 127, 127, .08); border: 1px solid var(--glass-border); }
.cl-item .avatar { width: 36px; height: 36px; }
.cl-txt { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.cl-txt small { color: var(--text-dim); font-size: 11.5px; }
.cl-item label.btn { cursor: pointer; }

/* 🔁 Master & Backup */
.cl-box { margin: 4px 0 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); font-size: 13px; }
.cl-grid { display: grid; grid-template-columns: max-content 1fr; gap: 5px 14px; align-items: baseline; }
.cl-grid > span { color: var(--dim, #9aa4b8); }
.cl-ok { color: #4ade80; } .cl-bad { color: #f87171; } .cl-warn { color: #fbbf24; }
.cl-box .actions { margin-top: 10px; gap: 8px; flex-wrap: wrap; align-items: center; }
.cl-steps > div { padding: 4px 0; }
