/* vsadmin – Oberfläche */
:root {
  --bg: #f4f6f9; --panel: #ffffff; --panel2: #f8fafc; --line: #e2e8f0; --line2: #cbd5e1;
  --text: #0f172a; --muted: #64748b; --faint: #94a3b8;
  --accent: #1d4ed8; --accent-soft: #dbeafe; --accent-text: #1e40af;
  --ok: #15803d; --ok-soft: #dcfce7; --warn: #b45309; --warn-soft: #fef3c7; --bad: #b91c1c; --bad-soft: #fee2e2;
  --c1: #2563eb; --c2: #0d9488; --c3: #d97706;
  --s1: #257de0; --s2: #f47230; --s3: #00b894; --s4: #f2a600; --s5: #ee7fac; --s6: #008a17; --s7: #6a4ce2; --s8: #ec4647;
  --side: #0f172a; --side-text: #cbd5e1; --side-hover: #1e293b; --side-active: #1d4ed8;
  --radius: 10px; --shadow: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.08);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "DejaVu Sans Mono", Menlo, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
    --bg: #0b1120; --panel: #111827; --panel2: #0f172a; --line: #1f2a3c; --line2: #334155;
    --text: #e5e7eb; --muted: #94a3b8; --faint: #64748b;
    --accent: #3b82f6; --accent-soft: #172554; --accent-text: #93c5fd;
    --ok: #4ade80; --ok-soft: #052e16; --warn: #fbbf24; --warn-soft: #422006; --bad: #f87171; --bad-soft: #450a0a;
    --c1: #60a5fa; --c2: #2dd4bf; --c3: #fbbf24;
    --s1: #338ced; --s2: #e76624; --s3: #00a888; --s4: #d28e05; --s5: #e24d8b; --s6: #0aac23; --s7: #9887ef; --s8: #eb6263;
    --side: #060b16; --side-hover: #111827;
    --shadow: none; color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif; background: var(--bg); color: var(--text); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
.booting { display: grid; place-items: center; height: 100%; color: var(--muted); }

/* Layout */
.layout { display: grid; grid-template-columns: 228px 1fr; min-height: 100vh; }
.side { background: var(--side); color: var(--side-text); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; color: #fff; font-weight: 650; letter-spacing: .2px; }
.brand img { width: 26px; height: 26px; }
.brand small { display: block; font-weight: 400; color: var(--faint); font-size: 12px; }
.nav { list-style: none; margin: 6px 0; padding: 0 10px; flex: 1; overflow-y: auto; min-height: 0; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 8px; color: var(--side-text); text-decoration: none; margin-bottom: 2px; }
.nav a:hover { background: var(--side-hover); color: #fff; }
.nav a.active { background: var(--side-active); color: #fff; }
.nav svg, .ico { width: 18px; height: 18px; flex: none; }
.nav .count { margin-left: auto; background: var(--warn); color: #111; border-radius: 9px; font-size: 11px; padding: 0 7px; font-weight: 600; }
.side-foot { padding: 12px 18px 16px; border-top: 1px solid #1e293b; font-size: 12px; color: var(--faint); }
.side-foot button { background: none; border: 0; color: var(--side-text); display: flex; gap: 8px; align-items: center; padding: 6px 0; cursor: pointer; }
.side-foot button:hover { color: #fff; }
main { padding: 26px 32px 60px; max-width: 1400px; width: 100%; }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { font-size: 22px; margin: 0; font-weight: 650; }
.page-head .sub { color: var(--muted); }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* Karten */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(460px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; min-width: 0; }
.card + .card { margin-top: 0; }
.stack > * + * { margin-top: 16px; }
.card h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin: 0 0 12px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.card h2 .right { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 400; }
.card h3 { margin: 0 0 8px; font-size: 16px; }
.big { font-size: 26px; font-weight: 650; letter-spacing: -.3px; }
.big small { font-size: 13px; color: var(--muted); font-weight: 400; margin-left: 6px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 5px 16px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.muted { color: var(--muted); } .small { font-size: 12px; } .mono { font-family: var(--mono); font-size: 12.5px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.chart { width: 100%; height: 110px; display: block; margin-top: 10px; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.legend i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }

/* Balken */
.bar { height: 8px; background: var(--line); border-radius: 5px; overflow: hidden; display: flex; }
.bar > span { display: block; height: 100%; background: var(--accent); }
.bar > span.b2 { background: var(--c2); } .bar > span.b3 { background: var(--faint); }
.bar.warn > span:first-child { background: var(--warn); } .bar.bad > span:first-child { background: var(--bad); }
.meter { margin: 8px 0 12px; }
.meter .row { font-size: 13px; margin-bottom: 4px; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 99px; padding: 1px 9px; font-size: 12px; font-weight: 600; background: var(--line); color: var(--muted); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); } .badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); } .badge.info { background: var(--accent-soft); color: var(--accent-text); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--faint); }
.dot.ok { background: var(--ok); } .dot.bad { background: var(--bad); } .dot.warn { background: var(--warn); }

/* Tabellen */
.table-wrap { overflow-x: auto; margin: 0 -18px; padding: 0 18px; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .4px; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tr.group td { background: var(--panel2); color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; font-weight: 600; padding: 5px 10px; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.act { text-align: right; white-space: nowrap; }
td.act .btn + .btn { margin-left: 4px; }
.tree { display: inline-block; }
.indent-1 { padding-left: 22px; } .indent-2 { padding-left: 44px; } .indent-3 { padding-left: 66px; }

/* Formulare */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line2); background: var(--panel); color: var(--text); border-radius: 8px; padding: 6px 13px; cursor: pointer; font-weight: 550; line-height: 1.3; }
.btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover:not(:disabled) { filter: brightness(1.08); color: #fff; }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, var(--line2)); }
.btn.danger.solid { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn.sm { padding: 3px 9px; font-size: 12.5px; border-radius: 7px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.busy { opacity: .7; cursor: progress; }
label.f { display: block; margin-bottom: 12px; }
label.f > span { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; font-weight: 550; }
input[type=text], input[type=url], input[type=email], input[type=password], input[type=number], select, textarea, input[list] {
  width: 100%; background: var(--panel); border: 1px solid var(--line2); border-radius: 8px; padding: 7px 10px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { font-family: var(--mono); font-size: 12.5px; min-height: 80px; resize: vertical; }
.check { display: flex; align-items: center; gap: 8px; margin: 6px 0; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 16px; }
.seg { display: inline-flex; border: 1px solid var(--line2); border-radius: 8px; overflow: hidden; margin-bottom: 12px; }
.seg button { border: 0; background: var(--panel); padding: 6px 14px; cursor: pointer; }
.seg button.on { background: var(--accent); color: #fff; }
.hint { background: var(--accent-soft); color: var(--accent-text); border-radius: 8px; padding: 9px 12px; font-size: 13px; margin: 8px 0 12px; }
.hint.warn { background: var(--warn-soft); color: var(--warn); } .hint.bad { background: var(--bad-soft); color: var(--bad); }
.hint.ok { background: var(--ok-soft); color: var(--ok); }
pre.cmd { background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-family: var(--mono); font-size: 12px; white-space: pre-wrap; word-break: break-all; margin: 6px 0 10px; }
pre.log { background: #0b1020; color: #d1d5db; border-radius: 8px; padding: 12px 14px; font-family: var(--mono); font-size: 12px; line-height: 1.5; max-height: 62vh; overflow: auto; white-space: pre-wrap; word-break: break-word; margin: 0; }
pre.log .err { color: #fca5a5; } pre.log .cmdl { color: #93c5fd; }

/* Laufwerksauswahl */
.disks { border: 1px solid var(--line); border-radius: 8px; max-height: 280px; overflow: auto; margin-bottom: 12px; }
.disk { display: grid; grid-template-columns: 22px 1fr auto; gap: 4px 10px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.disk:last-child { border-bottom: 0; }
.disk.off { opacity: .55; cursor: not-allowed; }
.disk input { width: 16px; height: 16px; accent-color: var(--accent); }
.disk .name { font-weight: 600; } .disk .meta { grid-column: 2 / 4; font-size: 12px; color: var(--muted); }

/* Dialog */
.overlay { position: fixed; inset: 0; background: rgba(2,6,23,.55); display: grid; place-items: center; z-index: 50; padding: 20px; }
.dialog { background: var(--panel); border-radius: 12px; width: min(640px, 100%); max-height: 92vh; display: flex; flex-direction: column; box-shadow: 0 20px 50px rgba(0,0,0,.35); border: 1px solid var(--line); }
.dialog header { padding: 16px 20px 6px; font-size: 17px; font-weight: 650; }
.dialog .body { padding: 8px 20px; overflow: auto; }
.dialog footer { padding: 12px 20px 16px; display: flex; gap: 8px; justify-content: flex-end; border-top: 1px solid var(--line); margin-top: 8px; }
.dialog .err { color: var(--bad); background: var(--bad-soft); border-radius: 8px; padding: 8px 10px; margin: 4px 0 8px; white-space: pre-wrap; font-size: 13px; }

/* Banner, Toasts */
.banner { display: flex; gap: 12px; align-items: center; background: var(--warn-soft); color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 18px; flex-wrap: wrap; }
.banner b { color: var(--text); }
.toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 60; }
.toast { background: var(--side); color: #e5e7eb; border-radius: 9px; padding: 10px 14px; max-width: 420px; box-shadow: 0 8px 24px rgba(0,0,0,.25); border-left: 4px solid var(--accent); white-space: pre-wrap; }
.toast.ok { border-color: #22c55e; } .toast.bad { border-color: #ef4444; }
.empty { color: var(--muted); text-align: center; padding: 26px 10px; }
.loading { color: var(--muted); padding: 40px 0; }
.error-box { background: var(--bad-soft); color: var(--bad); padding: 14px 16px; border-radius: var(--radius); white-space: pre-wrap; }

/* Anmeldung */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(1200px 600px at 20% 0%, var(--accent-soft), transparent), var(--bg); }
.login .card { width: min(380px, 100%); padding: 26px 26px 20px; }
.login .brandl { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.login .brandl img { width: 38px; height: 38px; }
.login .brandl b { font-size: 18px; display: block; }
.login .btn { width: 100%; justify-content: center; padding: 9px; margin-top: 4px; }
.login .err { color: var(--bad); font-size: 13px; min-height: 20px; margin: 4px 0; }

.pool-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.pool-head h3 { margin: 0; font-size: 18px; }
.pool-stats { display: flex; gap: 22px; flex-wrap: wrap; margin: 6px 0 12px; font-size: 13px; }
.pool-stats div span { display: block; color: var(--muted); font-size: 12px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs button { background: none; border: 0; padding: 8px 14px; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 550; }
.tabs button.on { color: var(--accent); border-color: var(--accent); }

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .side { position: static; height: auto; }
  .nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .nav a { margin: 0; }
  .side-foot { display: none; }
  main { padding: 18px 14px 40px; }
  .grid.wide { grid-template-columns: 1fr; }
}

/* Leiste oben rechts: Auto-Refresh */
.topbar { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 14px 32px 0; font-size: 12.5px; color: var(--muted); }
.topbar .rf-info.paused { color: var(--warn); }
.topbar .rf-sel { display: flex; align-items: center; gap: 6px; }
.topbar select { width: auto; padding: 3px 8px; font-size: 12.5px; }
main { padding-top: 12px; }

/* Kopfleiste: Sprache, Dark Mode */
.topbar .ui-lang select { padding: 3px 8px; font-size: 12.5px; }
.theme-wrap { display: flex; align-items: center; gap: 7px; cursor: pointer; }
.theme-sw { position: relative; width: 36px; height: 20px; border-radius: 10px; border: 1px solid var(--line2); background: var(--line); padding: 0; cursor: pointer; }
.theme-sw .knob { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--panel); box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: left .15s; }
.theme-sw.on { background: var(--accent); border-color: var(--accent); }
.theme-sw.on .knob { left: 18px; background: #fff; }
.topbar .sep { width: 1px; height: 18px; background: var(--line2); }

/* Navigation: Gruppen */
.nav .chev-w { margin-left: auto; display: flex; padding: 2px; border-radius: 4px; }
.nav .chev-w:hover { background: rgba(255,255,255,.12); }
.nav .chev { width: 14px; height: 14px; transition: transform .15s; opacity: .75; }
.nav .grp.open .chev { transform: rotate(90deg); }
.nav .sub { list-style: none; margin: 0 0 4px; padding: 0 0 0 18px; display: none; }
.nav .grp.open .sub { display: block; }
.nav .sub a { padding: 6px 10px; font-size: 13.5px; }
.nav .sub a .ico { width: 15px; height: 15px; }

/* Kacheln (Storage, Container) */
.tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.tile { display: block; text-decoration: none; color: inherit; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.tile:hover { border-color: var(--accent); }
.tile .t-head { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 650; margin-bottom: 8px; }
.tile .t-head .ico { width: 26px; height: 26px; color: var(--accent); }
.tile.disabled { opacity: .55; pointer-events: none; }

/* SMART */
.smart td, .smart th { white-space: nowrap; }
.smart .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: middle; background: var(--faint); }
.smart .dot.ok { background: var(--ok); } .smart .dot.warn { background: var(--warn); } .smart .dot.bad { background: var(--bad); }

/* Terminal */
.term-box { background: #0b0f19; border-radius: var(--radius); padding: 8px; height: calc(100vh - 200px); min-height: 360px; border: 1px solid var(--line); }
.term-box .xterm { height: 100%; }
body.term-only { background: #0b0f19; }
body.term-only .term-box { height: 100vh; border: 0; border-radius: 0; padding: 4px; }

/* Docker */
.upd-badge { cursor: help; }
.ctab td.act { white-space: nowrap; }
.ctab td.act .btn { margin-left: 4px; }
.stack > .card + .card { margin-top: 16px; }
/* Backup-Aufträge */
.bk-job { display: flex; flex-direction: column; }
.bk-job.paused { opacity: .75; }
.bk-job .bk-last { min-height: 40px; }
.bk-job .bk-act { margin-top: auto; padding-top: 12px; gap: 6px; flex-wrap: wrap; border-top: 1px solid var(--line); }
.bk-job .bk-act .spacer { flex: 1; }
details.adv { margin: 10px 0 4px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; }
details.adv summary { cursor: pointer; font-weight: 550; font-size: 13px; color: var(--muted); }
details.adv[open] summary { margin-bottom: 4px; }
td.num.small, td.num { white-space: nowrap; }
.side-foot { flex-shrink: 0; }
/* Übersicht: Kasten „Speicherplatz“ über zwei Spalten; Zahlen in Belegungsbalken nie umbrechen */
.grid > .card.span2 { grid-column: span 2; }
@media (max-width: 760px) { .grid > .card.span2 { grid-column: auto; } }
.meter .row { flex-wrap: nowrap; }
.meter .row > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meter .row > .muted, .meter .row > b { white-space: nowrap; flex-shrink: 0; }
.grid.dense { grid-auto-flow: row dense; }
/* Benachrichtigungen */
.nt-groups { columns: 3 320px; column-gap: 26px; }
.nt-group { break-inside: avoid; margin-bottom: 16px; }
.nt-group h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 6px; }
.nt-ev { padding: 6px 0; border-top: 1px solid var(--line); }
.nt-ev .check { margin: 0; font-weight: 500; }
.nt-ev .check .badge { font-size: 10px; padding: 0 5px; margin-left: 4px; vertical-align: 1px; }
.nt-ev > .small { margin-left: 24px; }
.nt-thr { margin-top: 4px; }
.nt-thr input { padding: 2px 6px; height: 26px; }
.form-grid.nt-srv { grid-template-columns: 2fr 1fr 1.4fr; }
/* Virtualisierung */
.dialog.wide { width: min(1080px, 100%); }
.vm-list { display: flex; flex-direction: column; }
.vm-row { display: flex; gap: 14px; align-items: center; padding: 12px 4px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.vm-row:first-child { border-top: 0; }
.vm-main { flex: 1 1 420px; min-width: 0; }
.vm-title { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 15px; }
.vm-facts { display: flex; gap: 6px 16px; flex-wrap: wrap; margin-top: 4px; color: var(--muted); }
.vm-acts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.menu-w { position: relative; }
.menu { position: absolute; right: 0; top: 110%; z-index: 30; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.25); min-width: 210px; padding: 4px; }
.menu-it { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 7px 10px; border-radius: 6px; color: inherit; font: inherit; cursor: pointer; }
.menu-it:hover { background: var(--hover, rgba(127,127,127,.12)); }
.menu-it.danger { color: var(--bad); }
.vm-dlg details.adv { margin: 0 0 10px; }
.vm-sub { display: flex; flex-direction: column; gap: 6px; margin: 6px 0; }
.vm-line { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.vm-line input[type=text], .vm-line select { width: auto; }
.vm-line code { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vm-addrow { display: flex; gap: 6px; margin: 4px 0 6px; flex-wrap: wrap; }
.vm-checks { display: flex; flex-direction: column; gap: 4px; max-height: 240px; overflow: auto; }
.vnc-wrap { display: flex; flex-direction: column; height: 100vh; background: #111; }
.vnc-bar { display: flex; gap: 8px; align-items: center; padding: 6px 10px; background: var(--panel); border-bottom: 1px solid var(--line); }
.vnc-screen { flex: 1; min-height: 0; overflow: hidden; }
.iso-sec { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 14px; }
.iso-sec h3 { font-size: 14px; margin: 0 0 8px; }
input[type=file] { font: inherit; font-size: 13px; color: var(--muted); padding: 6px 0; max-width: 100%; }
input[type=file]::file-selector-button { font: inherit; font-size: 13px; padding: 6px 12px; margin-right: 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); color: var(--text); cursor: pointer; }
.badge.solid.bad { background: var(--bad); color: #fff; } .badge.solid.warn { background: var(--warn); color: #fff; }
.badge.solid.info { background: var(--accent); color: #fff; }
.vm-opts { display: inline-flex; gap: 10px; margin-left: 4px; } .vm-opts .check { margin: 0; font-size: 13px; }
/* Neustart / Ausschalten */
.login.down .card { width: min(460px, 100%); }
.down-steps { list-style: none; padding: 0; margin: 16px 0 14px; display: grid; gap: 10px; }
.down-steps li { display: flex; align-items: center; gap: 10px; color: var(--faint); }
.down-steps li .dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); flex: none; box-sizing: border-box; }
.down-steps li.now { color: var(--text, inherit); font-weight: 600; }
.down-steps li.now .dot { border-color: var(--accent); border-top-color: transparent; animation: vs-spin .9s linear infinite; }
.down-steps li.done { color: var(--text, inherit); }
.down-steps li.done .dot { background: var(--ok, #16a34a); border-color: var(--ok, #16a34a); }
@keyframes vs-spin { to { transform: rotate(360deg); } }
/* WireGuard: Container-Auswahl */
.ct-pick { max-height: 220px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; margin-bottom: 8px; }
.ct-pick .check { margin: 4px 0; }

/* Verlauf */
.tchart-wrap { position: relative; margin-top: 6px; }
.tchart { width: 100%; display: block; cursor: crosshair; }
.ttip { position: absolute; z-index: 5; pointer-events: none; background: var(--panel); border: 1px solid var(--line2); border-radius: 8px; box-shadow: 0 4px 14px rgba(0,0,0,.12); padding: 6px 9px; font-size: 12px; white-space: nowrap; }
.ttip i, .legend i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.ttip b { font-variant-numeric: tabular-nums; }
.seg { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.daychk { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; }
.legend { flex-wrap: wrap; }
