@font-face { font-family: "Geist"; font-style: normal; font-display: swap; font-weight: 100 900;
             src: url(/static/fonts/geist-latin-wght-normal.woff2) format("woff2-variations"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-display: swap; font-weight: 100 900;
             src: url(/static/fonts/geist-mono-latin-wght-normal.woff2) format("woff2-variations"); }

/* Tokens wie status.stacktra.de */
:root {
  --bg: #0c0e11; --bg-top: #ffffff0b; --glass: #ffffff07; --glass-2: #ffffff0f; --glass-h: #ffffff0a;
  --stroke: #ffffff13; --stroke-2: #ffffff24; --hi: #ffffff0b; --solid: #171a1ff7;
  --fg: #ededef; --muted: #9a9ea7; --faint: #5f646d;
  --accent: #ededef; --accent-fg: #0c0e11; --accent-soft: #ffffff1f;
  --up: #3fb950; --warn: #d29922; --down: #f85149; --paused: #ffffff29;
  --shadow: 0 1px 0 #0003, 0 10px 30px #0000002e; --pop: 0 16px 48px #00000080; --scrim: #00000080;
  --r-l: 14px; --r-m: 8px; --r-s: 6px;
  --f: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --m: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme=dark]) {
    --bg: #f6f7f8; --bg-top: #ffffffe6; --glass: #ffffffb8; --glass-2: #fff; --glass-h: #0a141e09;
    --stroke: #0a141e14; --stroke-2: #0a141e26; --hi: #ffffffe6; --solid: #fffffffa;
    --fg: #111317; --muted: #5d636d; --faint: #9ba1a9;
    --accent: #111317; --accent-fg: #fff; --accent-soft: #0a141e1a;
    --up: #1f9d55; --warn: #c27c0e; --down: #d93636; --paused: #0a141e26;
    --shadow: 0 1px 2px #0a141e0a, 0 8px 24px #0a141e0d; --pop: 0 16px 40px #0a141e24; --scrim: #0a141e33;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; color: var(--fg); font-family: var(--f); font-size: 14px; line-height: 1.5;
       -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
       background: radial-gradient(1100px 520px at 50% -260px, var(--bg-top), transparent 70%), var(--bg); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
.mono { font-family: var(--m); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); } .faint { color: var(--faint); }
.hidden { display: none !important; }
svg.i { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2;
        stroke-linecap: round; stroke-linejoin: round; }
svg.i.lg { width: 18px; height: 18px; }

/* Layout */
.shell { max-width: 1040px; margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-left)) 64px; }
.nav { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .3em; white-space: nowrap; }
.brand::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--fg); }
.nav .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.tabs { position: sticky; top: 0; z-index: 20; margin: 0 -20px 18px; padding: 8px 20px;
        background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--stroke); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs .seg { flex-wrap: nowrap; }
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 6px 0 20px; }
.top h1 { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.top .sub { margin-top: 2px; color: var(--muted); font-size: 13.5px; }
.top .end { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.grid2 > .grp { margin-bottom: 0; }
.stack { display: grid; gap: 16px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.nowrap { flex-wrap: nowrap; }
.grow { flex: 1; min-width: 0; }
.sp { height: 16px; }

.card { background: var(--glass); border: 1px solid var(--stroke); border-radius: var(--r-l);
        backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%);
        box-shadow: var(--shadow), inset 0 1px 0 var(--hi); }
.grp { margin-bottom: 16px; min-width: 0; }
.grp-h { display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-bottom: 1px solid var(--stroke); min-height: 50px; flex-wrap: wrap; }
.grp-h h2 { margin: 0; font-size: 14px; font-weight: 600; }
.grp-h .cnt { margin-left: auto; font-family: var(--m); font-size: 12.5px; color: var(--muted); }
.grp-h .cnt ~ .btn, .grp-h .cnt ~ .sw, .grp-h .cnt ~ .seg { margin-left: 4px; }
.grp-h > .end { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.grp-b { padding: 14px 18px; }
.grp-f { font-family: var(--m); color: var(--faint); padding: 0 18px 12px; font-size: 11px; display: flex; justify-content: space-between; gap: 10px; }
.svc { padding: 13px 18px; border-top: 1px solid var(--stroke); }
.svc:first-child { border-top: 0; }
.svc-h { display: flex; align-items: center; gap: 10px; min-width: 0; }
.svc-h .n { font-weight: 500; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svc-h .st { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.svc-h .st.up { color: var(--up); } .svc-h .st.warn { color: var(--warn); } .svc-h .st.down { color: var(--down); }
.svc-h .end { margin-left: auto; display: flex; align-items: center; gap: 6px; flex: none; }
.meta { margin-top: 2px; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty { text-align: center; color: var(--muted); padding: 28px 16px; font-size: 13.5px; }
.empty-c { text-align: center; color: var(--muted); border-radius: var(--r-m); border: 1px dashed var(--stroke-2); padding: 26px 16px; font-size: 13.5px; }
.hint { padding: 12px 18px; color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--stroke); }
.hint b, .empty b { color: var(--fg); font-weight: 500; }
.note { font-size: 12.5px; color: var(--faint); }
.note.warn { color: var(--warn); }
code, .code { font-family: var(--m); font-size: 12px; background: var(--glass-2); border: 1px solid var(--stroke); border-radius: var(--r-s); padding: 1px 5px; }
pre.code { display: block; padding: 10px 12px; overflow: auto; white-space: pre-wrap; word-break: break-all; margin: 8px 0 0; }

/* Status-Punkte & Tags */
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--paused); display: inline-block; }
.dot.up { background: var(--up); } .dot.warn { background: var(--warn); } .dot.down { background: var(--down); }
.dot.ping { --ring: color-mix(in srgb, var(--warn) 50%, transparent); animation: ping 1.8s infinite; }
.dot.down.ping { --ring: color-mix(in srgb, var(--down) 50%, transparent); }
.top h1 .dot { width: 10px; height: 10px; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 var(--ring); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }
.tag { color: var(--muted); white-space: nowrap; align-items: center; gap: 6px; font-size: 12.5px; display: inline-flex; }
.badge { font-family: var(--m); border-radius: 4px; font-size: 11px; display: inline-flex; overflow: hidden; white-space: nowrap; vertical-align: 1px; }
.badge .l { color: #e8edf2; background: #3a3f47; padding: 2px 6px; }
.badge .r { color: #fff; padding: 2px 6px; font-weight: 500; background: #56606c; }
.badge .r.up { background: #2b8a46; } .badge .r.warn { background: #b07b16; } .badge .r.down { background: #c63d3d; }
.pill { font-family: var(--m); font-size: 11px; padding: 1px 7px; border-radius: 99px; border: 1px solid var(--stroke-2); color: var(--muted); white-space: nowrap; }
.pill.up { color: var(--up); border-color: color-mix(in srgb, var(--up) 50%, transparent); }
.pill.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 50%, transparent); }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; overflow: hidden; }
.kpi { padding: 16px 20px; border-left: 1px solid var(--stroke); min-width: 0; }
.kpi:first-child { border-left: 0; }
.kpi small { display: block; color: var(--muted); font-size: 12.5px; }
.kpi b { display: block; font-family: var(--m); font-size: 20px; font-weight: 500; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi b span { color: var(--faint); } .kpi b.up { color: var(--up); } .kpi b.warn { color: var(--warn); } .kpi b.down { color: var(--down); }
.kpi em { display: block; font-family: var(--m); font-style: normal; font-size: 11.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; white-space: nowrap;
       border-radius: var(--r-m); border: 1px solid var(--stroke-2); background: var(--glass); font-size: 13.5px; font-weight: 500; }
.btn:hover { background: var(--glass-2); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--accent); color: var(--accent-fg); border-color: transparent; }
.btn.primary:hover { opacity: .9; background: var(--accent); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn.xs { height: 26px; padding: 0 8px; font-size: 12.5px; border-radius: var(--r-s); }
.btn.quiet { color: var(--muted); background: none; border-color: transparent; }
.btn.quiet:hover { color: var(--fg); background: var(--glass-h); }
.btn.danger:hover { color: var(--down); }
.btn.danger-solid { background: var(--down); color: #fff; border-color: transparent; }
.btn.ic { width: 34px; padding: 0; justify-content: center; }
.btn.sm.ic { width: 30px; } .btn.xs.ic { width: 26px; }
.btn.on { color: var(--up); border-color: color-mix(in srgb, var(--up) 50%, transparent); }
.btn.round { border-radius: 999px; }
.btn.big { height: 44px; width: 44px; border-radius: 999px; padding: 0; justify-content: center; }
.btn.big svg.i { width: 18px; height: 18px; }

.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--r-m); border: 1px solid var(--stroke); background: var(--glass); flex-wrap: wrap; }
.seg button { height: 26px; padding: 0 10px; border-radius: var(--r-s); color: var(--muted); font-size: 12.5px; font-weight: 500; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.seg button:hover { color: var(--fg); }
.seg button[aria-pressed=true] { background: var(--glass-2); color: var(--fg); box-shadow: 0 1px 2px #00000026, inset 0 0 0 1px var(--stroke); }
.seg.lg button { height: 30px; padding: 0 12px; font-size: 13px; }
.chips { flex-wrap: wrap; gap: 6px; display: flex; }
.chip { border-radius: var(--r-s); border: 1px solid var(--stroke-2); height: 28px; color: var(--muted); align-items: center; gap: 7px; padding: 0 10px; font-size: 12.5px; display: inline-flex; white-space: nowrap; }
.chip:hover { color: var(--fg); }
.chip[aria-pressed=true] { background: var(--glass-2); border-color: var(--muted); color: var(--fg); }

/* Schalter */
.sw { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; color: var(--muted); font-size: 13px; position: relative; user-select: none; }
.sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw .track { position: relative; width: 34px; height: 20px; border-radius: 999px; background: var(--paused); transition: background .18s; flex: none; }
.sw .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
                    background: #fff; box-shadow: 0 1px 3px #0000004d; transition: transform .2s cubic-bezier(.3,.7,.4,1); }
.sw input:checked + .track { background: var(--up); }
.sw input:checked + .track::after { transform: translateX(14px); }
.sw input:focus-visible + .track { box-shadow: 0 0 0 3px var(--accent-soft); }
.sw input:disabled + .track { opacity: .4; }

/* Formulare */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field > .lb { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.field .hint2 { color: var(--faint); font-size: 12px; }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.inp { border-radius: var(--r-m); border: 1px solid var(--stroke-2); background: var(--glass); outline: none; width: 100%;
       height: 36px; padding: 0 12px; transition: border-color .15s, box-shadow .15s; min-width: 0; }
textarea.inp { height: auto; min-height: 80px; padding: 9px 12px; resize: vertical; }
select.inp { appearance: none; -webkit-appearance: none; padding-right: 30px; cursor: pointer;
             background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
             background-position: calc(100% - 15px) 15px, calc(100% - 10px) 15px; background-size: 5px 5px; background-repeat: no-repeat; }
select.inp option { background: var(--bg); color: var(--fg); }
.inp::placeholder { color: var(--faint); }
.inp:focus { border-color: var(--muted); box-shadow: 0 0 0 3px var(--accent-soft); }
.inp.sm { height: 30px; font-size: 13px; padding: 0 9px; }
.inp.num { width: 84px; font-family: var(--m); text-align: right; }

/* Regler */
.vol { display: grid; grid-template-columns: 30px 1fr 52px; align-items: center; gap: 12px; }
.vol .pc, .pc { font-family: var(--m); font-size: 12.5px; color: var(--muted); text-align: right; white-space: nowrap; }
.slider { display: grid; grid-template-columns: minmax(90px, 150px) 1fr 70px; gap: 12px; align-items: center; padding: 6px 0; }
.slider > label { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; margin: 0; cursor: pointer; --p: 50%; touch-action: pan-y; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 99px; background: linear-gradient(to right, var(--fg) var(--p), var(--stroke-2) var(--p)); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 99px; background: var(--stroke-2); }
input[type=range]::-moz-range-progress { height: 4px; border-radius: 99px; background: var(--fg); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; margin-top: -5.5px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 1px 3px #00000066, 0 0 0 1px #0000001a; }
input[type=range]::-moz-range-thumb { width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 1px 3px #00000066; }
input[type=range]:focus-visible { outline: none; }
input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--accent-soft); }
input[type=range].center::-webkit-slider-runnable-track { background: linear-gradient(to right, var(--stroke-2) 0 calc(50% - 1px), var(--muted) calc(50% - 1px) calc(50% + 1px), var(--stroke-2) calc(50% + 1px)); }
.muted-row input[type=range] { opacity: .45; }

/* Pegelanzeigen */
.meters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.meter { min-width: 0; }
.meter .lb { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.meter .lb span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meter .bar { position: relative; height: 10px; border-radius: 3px; background: var(--glass-2); border: 1px solid var(--stroke); overflow: hidden; }
.meter .bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 2px; transition: width .06s linear;
                background: linear-gradient(90deg, var(--up) 0 70%, var(--warn) 85%, var(--down) 97%); background-size: var(--full, 300px) 100%; }
.meter .bar b { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--fg); opacity: .7; left: 0; transition: left .2s; }
.meter .val { font-family: var(--m); font-size: 11.5px; color: var(--faint); margin-top: 4px; display: flex; justify-content: space-between; }
.meter.clip .bar { border-color: var(--down); box-shadow: 0 0 0 2px color-mix(in srgb, var(--down) 30%, transparent); }
.meter.clip .val .c { color: var(--down); }
.mini-meter { display: flex; flex-direction: column; gap: 3px; width: 100%; }
.mini-meter .bar { height: 6px; }

/* EQ-Grafik */
.eqplot { width: 100%; height: 220px; display: block; }
.eqplot .gridl { stroke: var(--stroke); stroke-width: 1; }
.eqplot .axis { fill: var(--faint); font: 10px var(--m); }
.eqplot .curve { fill: none; stroke: var(--fg); stroke-width: 2; }
.eqplot .curve.room { stroke: var(--up); stroke-width: 1.5; stroke-dasharray: 4 3; }
.eqplot .curve.meas { stroke: var(--warn); stroke-width: 1.5; }
.eqplot .curve.after { stroke: var(--up); stroke-width: 2; }
.eqplot .curve.target { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 3; }
.eqplot .curve.fill { fill: var(--accent-soft); stroke: none; }
.eqplot .handle { fill: var(--bg); stroke: var(--fg); stroke-width: 2; cursor: grab; }
.eqplot .handle.sel { fill: var(--fg); }
.eqplot .hl { fill: var(--muted); font: 10px var(--m); text-anchor: middle; }
.bands { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.band { border: 1px solid var(--stroke); border-radius: var(--r-m); padding: 6px 4px; text-align: center; cursor: pointer; min-width: 0; }
.band:hover { border-color: var(--stroke-2); }
.band.sel { border-color: var(--muted); background: var(--glass-2); }
.band b { display: block; font-family: var(--m); font-size: 12px; font-weight: 500; }
.band small { display: block; font-family: var(--m); font-size: 10.5px; color: var(--faint); white-space: nowrap; overflow: hidden; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 14px; height: 2px; vertical-align: 3px; margin-right: 6px; background: var(--fg); }
.legend i.meas { background: var(--warn); } .legend i.after { background: var(--up); } .legend i.target { background: var(--muted); }

/* Wiedergabe */
.player { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; }
.cover { width: 72px; height: 72px; border-radius: 10px; background: var(--glass-2) center/cover no-repeat; border: 1px solid var(--stroke);
         display: grid; place-items: center; color: var(--faint); overflow: hidden; }
.cover.lg { width: 100%; height: auto; aspect-ratio: 1; border-radius: 14px; }
.cover svg.i { width: 26px; height: 26px; }
.player .t { font-size: 15.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .a { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctl { display: flex; gap: 6px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.progress { display: grid; grid-template-columns: 44px 1fr 44px; gap: 10px; align-items: center; margin-top: 8px; }
.progress span { font-family: var(--m); font-size: 11.5px; color: var(--faint); }
.progress span:last-child { text-align: right; }
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; padding: 14px 18px; }
.album { cursor: pointer; min-width: 0; }
.album .cover { width: 100%; height: auto; aspect-ratio: 1; }
.album .t { font-weight: 500; font-size: 13px; margin-top: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.album .a { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list .svc { display: flex; align-items: center; gap: 10px; padding: 9px 18px; }
.list .svc.click { cursor: pointer; }
.list .svc.click:hover { background: var(--glass-h); }
.list .svc.cur .n { color: var(--up); }
.drop { display: block; border: 1px dashed var(--stroke-2); border-radius: var(--r-m); padding: 18px; text-align: center; color: var(--muted); font-size: 13px; cursor: pointer; }
.drop.over { border-color: var(--fg); color: var(--fg); background: var(--glass-2); }

/* Dialog & Toast */
.scrim { position: fixed; inset: 0; z-index: 60; background: var(--scrim); display: grid; place-items: center; padding: 20px; animation: fade .15s; }
.dialog { width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--solid); border: 1px solid var(--stroke-2);
          border-radius: var(--r-l); box-shadow: var(--pop); animation: pop .16s ease-out; }
.dialog.wide { width: min(900px, 100%); }
.dialog .grp-h { position: sticky; top: 0; background: var(--solid); z-index: 1; }
.dialog .foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--stroke); }
@keyframes pop { from { transform: translateY(6px) scale(.98); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
#toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 80; display: none;
         max-width: calc(100% - 32px); padding: 10px 14px; border-radius: var(--r-m); font-size: 13px;
         background: var(--solid); border: 1px solid var(--stroke-2); box-shadow: var(--pop); }
#toast .dot { margin-right: 8px; vertical-align: 1px; }
.banner { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--r-m); margin-bottom: 16px; font-size: 13px;
          border: 1px solid color-mix(in srgb, var(--down) 60%, transparent); background: color-mix(in srgb, var(--down) 12%, var(--glass)); }
.banner.warn { border-color: color-mix(in srgb, var(--warn) 60%, transparent); background: color-mix(in srgb, var(--warn) 10%, var(--glass)); }
.logrow { display: grid; grid-template-columns: 70px 110px 1fr; gap: 10px; padding: 6px 18px; font-size: 12.5px; border-top: 1px solid var(--stroke); }
.logrow:first-child { border-top: 0; }
.logrow .t { font-family: var(--m); color: var(--faint); }
.logrow .s { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logrow.warn .m { color: var(--warn); } .logrow.error .m { color: var(--down); }
pre.journal { margin: 0; padding: 14px 18px; font: 11.5px/1.55 var(--m); white-space: pre-wrap; word-break: break-word; color: var(--muted); max-height: 60vh; overflow: auto; }
.days { display: flex; gap: 4px; flex-wrap: wrap; }
.days button { width: 34px; height: 28px; border-radius: var(--r-s); border: 1px solid var(--stroke-2); font-size: 12px; color: var(--muted); }
.days button[aria-pressed=true] { background: var(--accent); color: var(--accent-fg); border-color: transparent; }
.scene-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; padding: 14px 18px; }
.scene { border: 1px solid var(--stroke-2); border-radius: var(--r-m); padding: 12px; text-align: left; background: var(--glass); display: flex; flex-direction: column; gap: 2px; }
.scene:hover { background: var(--glass-2); }
.scene b { font-weight: 600; font-size: 13.5px; }
.scene small { color: var(--faint); font-family: var(--m); font-size: 11px; }
.rssi { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; vertical-align: -1px; }
.rssi i { width: 3px; background: var(--stroke-2); border-radius: 1px; }
.rssi i.on { background: var(--muted); }
footer { margin-top: 40px; text-align: center; color: var(--faint); font-size: 12px; font-family: var(--m); }
footer a { color: var(--muted); text-underline-offset: 3px; text-decoration: underline; text-decoration-color: var(--stroke-2); }

@media (max-width: 820px) {
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .bands { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .meters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { padding: 12px 14px; }
  .kpi:nth-child(3) { border-left: 0; }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--stroke); }
  .kpi b { font-size: 16px; }
  .slider { grid-template-columns: 1fr 64px; }
  .slider > label { grid-column: 1 / -1; margin-bottom: -6px; }
  .logrow { grid-template-columns: 60px 1fr; }
  .logrow .s { display: none; }
  .albums { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
  .nav .right .hide-sm { display: none; }
}
.stack > .grp { margin-bottom: 0; }
.mini-meter .meter .lb { margin-bottom: 3px; }
.mini-meter .meter .val { display: none; }
a.btn, a.chip { text-decoration: none; }
@media (max-width: 640px) {
  .svc-h { flex-wrap: wrap; }
  .svc-h .end { margin-left: auto; }
}

/* Ultradrive */
.dcx-mix { display: flex; padding: 14px 12px 16px; overflow-x: auto; scrollbar-width: thin; }
.dcx-grp { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 0 6px; }
.dcx-grp.in { flex: 4 0 auto; } .dcx-grp.out { flex: 6 0 auto; }
.dcx-grp + .dcx-grp { border-left: 1px solid var(--stroke); padding-left: 14px; margin-left: 8px; }
.dcx-gl { font: 500 10.5px var(--m); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); padding-left: 2px; }
.dcx-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(80px, 1fr); gap: 8px; }
.dcx-strip { display: flex; flex-direction: column; gap: 8px; padding-bottom: 10px; min-width: 0; border-radius: var(--r-m);
             border: 1px solid var(--stroke); background: var(--glass); overflow: hidden; transition: border-color .15s, background .15s; }
.dcx-strip::before { content: ""; height: 3px; background: var(--c); }
.dcx-strip:hover { border-color: var(--stroke-2); }
.dcx-strip.sel { border-color: color-mix(in srgb, var(--c) 60%, var(--stroke-2)); background: var(--glass-2);
                 box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 35%, transparent); }
.dcx-head { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 2px 6px 0; min-width: 0; text-align: center; }
.dcx-head .lb { font: 500 10.5px var(--m); color: var(--faint); letter-spacing: .06em; }
.dcx-head b { font-size: 13px; font-weight: 600; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dcx-head small { font: 10.5px var(--m); color: var(--muted); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dcx-body { display: flex; justify-content: center; gap: 12px; height: 156px; padding: 0 8px; }
.dcx-led { display: flex; flex-direction: column-reverse; gap: 3px; width: 7px; padding: 8px 0; }
.dcx-led i { flex: 1; border-radius: 2px; background: var(--stroke-2); transition: background .08s; }
.dcx-led i.on { background: var(--up); } .dcx-led i.warn { background: var(--warn); } .dcx-led i.clip { background: var(--down); }
.dcx-led.none { opacity: .35; }
.fader { position: relative; width: 28px; height: 100%; cursor: ns-resize; touch-action: none; outline: none; --p: .5; }
.fader .ft, .fader .ff { position: absolute; left: 50%; width: 4px; margin-left: -2px; border-radius: 99px; }
.fader .ft { top: 8px; bottom: 8px; background: var(--stroke-2); }
.fader .ff { background: var(--c); top: calc(8px + (100% - 16px) * min(var(--p), .5)); bottom: calc(8px + (100% - 16px) * (1 - max(var(--p), .5))); }
.fader .tk { position: absolute; left: 6px; right: 6px; height: 1px; background: var(--stroke-2); top: calc(8px + (100% - 16px) * var(--t)); }
.fader .tk.z { left: 2px; right: 2px; background: var(--faint); }
.fader .fk { position: absolute; left: 2px; right: 2px; height: 16px; margin-top: -8px; top: calc(8px + (100% - 16px) * var(--p)); border-radius: 4px;
             background: linear-gradient(#fafafa, #d9dce1); box-shadow: 0 1px 3px #0009, 0 0 0 1px #0002; }
.fader .fk::after { content: ""; position: absolute; left: 4px; right: 4px; top: 7.5px; height: 1px; background: #0006; }
.fader:focus-visible .fk { box-shadow: 0 0 0 3px var(--accent-soft), 0 1px 3px #0009; }
.dcx-strip.muted .ff { background: var(--faint); }
.dcx-strip.muted .dcx-val { color: var(--faint); text-decoration: line-through; }
.dcx-val { text-align: center; font-size: 12.5px; font-weight: 500; }
.dcx-btns { display: flex; justify-content: center; gap: 5px; }
.mbtn { width: 30px; height: 24px; border-radius: 5px; border: 1px solid var(--stroke-2); font: 600 11.5px var(--m); color: var(--muted); background: var(--glass); }
.mbtn:hover { color: var(--fg); }
.mbtn.mute.on { background: var(--down); color: #fff; border-color: transparent; }
.mbtn.pol.on { background: var(--warn); color: #fff; border-color: transparent; }
.dcx-src { height: 24px; margin: 0 8px; border-radius: 5px; border: 1px solid var(--stroke); background: transparent; font: 11px var(--m);
           color: var(--muted); text-align: center; text-align-last: center; cursor: pointer; appearance: none; -webkit-appearance: none; }
.dcx-src:hover { border-color: var(--stroke-2); color: var(--fg); }
.dcx-src option { background: var(--bg); color: var(--fg); }
.dcx-src.ph { border-color: transparent; cursor: default; }
.dcx-flags { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 0 8px; }
.dcx-flags button { font: 600 9.5px var(--m); letter-spacing: .04em; padding: 2px 0; border-radius: 3px; color: var(--faint); border: 1px solid var(--stroke); }
.dcx-flags button:hover { color: var(--fg); }
.dcx-flags button.on { color: var(--fg); border-color: var(--stroke-2); background: var(--glass-2); }
.dcx-flags button.act { color: #fff; background: var(--warn); border-color: transparent; }
.dcx-plot { touch-action: pan-y; }
.dcx-plot .eqh circle { fill: var(--bg); stroke-width: 2; cursor: grab; }
.dcx-plot .eqh text { font: 600 9.5px var(--m); fill: var(--fg); text-anchor: middle; pointer-events: none; }
.dcx-plot .eqh.sel circle { fill: var(--fg); } .dcx-plot .eqh.sel text { fill: var(--bg); }
.dcx-plot .eqh.off { opacity: .4; }
.dcx-plot .xh rect { fill: var(--bg); stroke-width: 2; cursor: ew-resize; }
.dcx-plot .xh .hl { font: 10px var(--m); fill: var(--muted); text-anchor: middle; pointer-events: none; }
.dcx-legend { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.dcx-legend .chip i, .dialog .chip i { width: 12px; height: 3px; border-radius: 2px; background: var(--c); }
.dcx-legend .chip.dim { opacity: .6; }
.dcx-sw { width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex: none; }
.dcx-tabs { padding: 12px 18px 0; overflow-x: auto; scrollbar-width: none; }
.dcx-tabs .seg { flex-wrap: nowrap; }
.dcx-tabs .seg .dot { width: 6px; height: 6px; }
.dcx-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 36px; }
.dcx-h3 { font: 500 10.5px var(--m); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin: 14px 0 4px; }
.dcx-cols .dcx-h3, .grp-b > .dcx-h3:first-child { margin-top: 2px; }
.dcx-cols > div > .dcx-h3 { margin-top: 10px; }
.slider > .cell2 { grid-column: span 2; display: flex; align-items: center; min-width: 0; }
.slider input[type=range]:disabled { opacity: .35; cursor: not-allowed; }
.dcx-range { display: flex; flex-direction: column; gap: 4px; padding: 6px 0; }
.dcx-range b { font: 500 18px var(--m); letter-spacing: -.01em; }
.dcx-eqbar { gap: 16px; margin-bottom: 12px; }
.bands.dcx-bands { grid-template-columns: repeat(9, minmax(0, 1fr)); }
.band.off b { color: var(--faint); } .band.off { border-style: dashed; }
.band small + small { font-family: var(--f); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: 13px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-family: var(--m); text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dcx-more { margin-top: 12px; border-top: 1px solid var(--stroke); padding-top: 10px; }
.dcx-more summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.dcx-more summary:hover { color: var(--fg); }
@media (max-width: 820px) {
  .dcx-cols { grid-template-columns: minmax(0, 1fr); }
  .bands.dcx-bands { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .dcx-mix { flex-direction: column; gap: 14px; padding: 12px 12px 14px; overflow: visible; }
  .dcx-grp { padding: 0; }
  .dcx-grp + .dcx-grp { border-left: 0; margin-left: 0; padding-left: 0; padding-top: 12px; border-top: 1px solid var(--stroke); }
  .dcx-row { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .dcx-grp.out .dcx-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dcx-body { height: 128px; }
  .dcx-tabs { padding: 10px 14px 0; }
}
.grid2 { margin-bottom: 16px; }
