/* ===== Keystone Command: huisstijl ===== */
:root {
  --bg: #f3f5f8;
  --panel: #ffffff;
  --panel-2: #f7f9fb;
  --ink: #0d1726;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e3e8ef;
  --accent: #0f766e;
  --accent-2: #0b5e57;
  --accent-soft: #e0f5f2;
  --ok: #15803d;
  --warn: #b45309;
  --bad: #dc2626;
  --ok-soft: #dcfce7;
  --warn-soft: #fef3c7;
  --bad-soft: #fee2e2;
  --side: #0a1220;
  --side-2: #101b2d;
  --side-ink: #b8c4d6;
  --side-line: #1a2740;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(13, 23, 38, .05), 0 2px 6px rgba(13, 23, 38, .04);
  --shadow-lg: 0 24px 60px rgba(2, 6, 23, .28);
  --mono: ui-monospace, SFMono-Regular, "Cascadia Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #080d16;
    --panel: #0f1724;
    --panel-2: #0c1320;
    --ink: #e6ebf2;
    --ink-2: #c3ccd9;
    --muted: #8a99ad;
    --line: #1c2838;
    --accent: #14b8a6;
    --accent-2: #2dd4bf;
    --accent-soft: #0d2b2a;
    --ok: #34d399;
    --warn: #fbbf24;
    --bad: #f87171;
    --ok-soft: #0e2a1d;
    --warn-soft: #2e230b;
    --bad-soft: #321417;
    --side: #060a12;
    --side-2: #0d1626;
    --side-line: #152035;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font: 14px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 24px; margin: 0; letter-spacing: -.02em; font-weight: 700; }
h2 { font-size: 15px; margin: 0 0 12px; font-weight: 650; letter-spacing: -.01em; }
h3 { font-size: 14px; margin: 0 0 8px; font-weight: 650; }
code, pre, .mono { font-family: var(--mono); font-size: 12.5px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.hidden { display: none !important; }
.grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.txt-bad { color: var(--bad); }
.ico { flex: none; display: inline-block; vertical-align: middle; }

/* ---------- layout ---------- */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side {
  background: linear-gradient(180deg, var(--side), var(--side-2)); color: var(--side-ink);
  padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh;
  border-right: 1px solid var(--side-line);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 20px; color: #fff; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, #14b8a6, #0f766e); box-shadow: 0 4px 14px rgba(20, 184, 166, .35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text span { font-weight: 750; font-size: 15px; letter-spacing: -.01em; }
.brand-text small { font-size: 11px; color: #7d8ba1; font-weight: 500; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 9px; color: var(--side-ink); font-weight: 520;
}
.nav a span:first-of-type { flex: 1; }
.nav a .ico { opacity: .75; }
.nav a:hover { background: rgba(255,255,255,.05); text-decoration: none; color: #fff; }
.nav a.active { background: rgba(20, 184, 166, .14); color: #fff; }
.nav a.active .ico { color: #2dd4bf; opacity: 1; }
.nav .count { background: var(--bad); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 7px; font-weight: 700; flex: none !important; }
.side-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--side-line); display: flex; align-items: center; gap: 4px; }
.usercard { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; background: transparent; border: 0; color: var(--side-ink); padding: 6px; border-radius: 9px; text-align: left; }
.usercard:hover { background: rgba(255,255,255,.05); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: #1f3350; color: #dbe7f6; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.who span { color: #e8eef7; font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who small { color: #7d8ba1; font-size: 11.5px; }
.side-foot .ghost { color: var(--side-ink); }
.side-foot .ghost:hover { background: rgba(255,255,255,.06); color: #fff; }
.main { padding: 28px 32px 56px; min-width: 0; max-width: 1480px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head .sub { color: var(--muted); margin-top: 3px; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.crumb a { color: var(--muted); }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .side { position: sticky; z-index: 20; height: auto; flex-direction: row; align-items: center; padding: 8px 10px; gap: 4px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--side-line); }
  .brand { padding: 0 6px 0 0; }
  .brand-text { display: none; }
  .nav { flex-direction: row; gap: 2px; }
  .nav a { padding: 8px 9px; white-space: nowrap; font-size: 13px; gap: 6px; }
  .nav a .ico { display: none; }
  .side-foot { margin: 0 0 0 auto; border: 0; padding: 0; }
  .usercard .who { display: none; }
  .main { padding: 18px 14px 44px; }
  .hide-sm { display: none !important; }
  h1 { font-size: 21px; }
}

/* ---------- panels ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel-pad { padding: 18px 20px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-head h2 { margin: 0; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ov-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 1060px) { .grid-2, .ov-grid { grid-template-columns: 1fr; } }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

/* KPI's */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
@media (max-width: 1060px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.kpi { display: flex; align-items: center; gap: 14px; padding: 16px 18px; color: var(--ink); }
a.kpi:hover { text-decoration: none; border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.kpi-ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.kpi .label { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.kpi .value { font-size: 26px; font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1.15; letter-spacing: -.02em; }
.kpi .value small { font-size: 14px; color: var(--muted); font-weight: 550; letter-spacing: 0; }
.kpi.bad .kpi-ico { background: var(--bad-soft); color: var(--bad); } .kpi.bad .value { color: var(--bad); }
.kpi.warn .kpi-ico { background: var(--warn-soft); color: var(--warn); } .kpi.warn .value { color: var(--warn); }
.kpi.on .kpi-ico { background: var(--ok-soft); color: var(--ok); } .kpi.on .value { color: var(--ok); }

/* ---------- formulieren & knoppen ---------- */
button, .btn {
  font: inherit; font-weight: 600; font-size: 13px; cursor: pointer;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  padding: 8px 13px; border-radius: 9px; display: inline-flex; align-items: center; gap: 7px;
  white-space: nowrap; text-decoration: none; transition: background .12s, border-color .12s;
}
button:hover, .btn:hover { border-color: color-mix(in srgb, var(--muted) 60%, var(--line)); text-decoration: none; background: var(--panel-2); }
button:disabled { opacity: .45; cursor: not-allowed; }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(15, 118, 110, .3); }
button.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
button.danger, .menu button.danger { color: var(--bad); }
button.danger:hover { border-color: var(--bad); }
button.ghost { border-color: transparent; background: transparent; }
button.ghost:hover { background: var(--panel-2); }
button.icon { padding: 7px; }
button.sm, .btn.sm { padding: 5px 10px; font-size: 12.5px; }
button.block { width: 100%; justify-content: center; padding: 10px; }
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line);
  border-radius: 9px; padding: 8px 11px; min-width: 0;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
textarea.code { font-family: var(--mono); font-size: 12.5px; width: 100%; min-height: 220px; resize: vertical; tab-size: 4; }
label.field { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: var(--muted); }
label.field input, label.field select, label.field textarea { font-weight: 400; color: var(--ink); font-size: 14px; }
.hint { font-weight: 400; color: var(--muted); font-size: 12px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.search { min-width: 240px; }
@media (max-width: 860px) { .search { min-width: 0; flex: 1 1 100%; } .panel-head > .row { width: 100%; } }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); }
.code-input { font-family: var(--mono); font-size: 18px; letter-spacing: .2em; width: 170px; text-align: center; }

/* schakelaar */
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 4px 0; cursor: pointer; }
.switch-row > span:first-child { display: flex; flex-direction: column; gap: 2px; }
.switch { position: relative; width: 40px; height: 23px; flex: none; }
.switch input { opacity: 0; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: var(--line); border-radius: 99px; transition: background .15s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 17px; height: 17px; background: #fff; border-radius: 50%; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(17px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* segmenten */
.seg { display: inline-flex; background: var(--panel-2); border: 1px solid var(--line); border-radius: 9px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 5px 12px; border-radius: 7px; color: var(--muted); }
.seg button.active { background: var(--panel); color: var(--ink); box-shadow: var(--shadow); }

/* dropdown */
.dropdown { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 250px; background: var(--panel); border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow-lg); padding: 6px; display: flex; flex-direction: column; }
.menu button { border: 0; background: transparent; justify-content: flex-start; font-weight: 500; padding: 8px 10px; border-radius: 7px; color: var(--ink); }
.menu button:hover:not(:disabled) { background: var(--panel-2); }

/* ---------- tabellen ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--panel-2); white-space: nowrap; }
tbody tr:hover { background: var(--panel-2); }
tbody tr:last-child td { border-bottom: 0; }
tr.clickable { cursor: pointer; }
td.nowrap { white-space: nowrap; }
.empty { padding: 38px 18px; text-align: center; color: var(--muted); }
@media (max-width: 860px) { th, td { padding: 9px 8px; } }

/* ---------- badges ---------- */
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--muted); flex: none; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.dot.off { background: #94a3b8; }
.dot.critical { background: var(--bad); }
.dot.warning { background: var(--warn); }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); white-space: nowrap; line-height: 1.6; }
.pill.on { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.pill.off { color: var(--muted); }
.pill.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.pill.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.pill.acc { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.tag { font-family: var(--mono); font-size: 11px; padding: 1px 6px; border-radius: 5px; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); }
.bar { width: 86px; height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; display: inline-block; vertical-align: middle; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.bar.warn > i { background: var(--warn); }
.bar.bad > i { background: var(--bad); }
.barcell { display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; font-size: 12.5px; }
.barcell .n { width: 34px; text-align: right; color: var(--muted); }
.host { font-weight: 650; color: var(--ink); }
.host:hover { color: var(--accent); }
.os { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); }
.os .ico { color: var(--muted); }

/* ---------- mappen ---------- */
tr.folder { cursor: pointer; background: var(--panel-2); user-select: none; }
tr.folder:hover { background: var(--accent-soft); }
tr.folder td { padding-top: 12px; padding-bottom: 12px; }
.folder-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.folder-head strong { font-size: 14.5px; }
.folder-head .chev { display: inline-block; width: 10px; color: var(--muted); font-size: 18px; line-height: 1; transition: transform .15s ease; }
tr.folder.open .chev { transform: rotate(90deg); }
.folder-ico { color: var(--accent); display: inline-flex; }
.folder-ico.big { width: 42px; height: 42px; border-radius: 11px; background: var(--accent-soft); display: grid; place-items: center; }
td.dev-name { padding-left: 46px; }
@media (max-width: 860px) { td.dev-name { padding-left: 26px; } .bar { width: 56px; } }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs button { border: 0; background: none; border-radius: 0; padding: 10px 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button:hover { background: none; color: var(--ink); }
.tabs button.active { color: var(--ink); border-bottom-color: var(--accent); }
.tabs button .count { font-size: 11px; color: var(--muted); font-weight: 600; }

/* ---------- apparaat ---------- */
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.gauges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 860px) { .gauges { grid-template-columns: repeat(2, 1fr); } .kv { grid-template-columns: 120px 1fr; } }
.gauge .label { font-size: 12px; color: var(--muted); font-weight: 600; }
.gauge .value { font-size: 24px; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.gauge .bar { width: 100%; height: 8px; margin-top: 6px; }
.chart { width: 100%; height: auto; display: block; }
.chart text { fill: var(--muted); font-size: 10px; font-family: inherit; }
.chart .grid line { stroke: var(--line); }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }

/* beveiliging */
.sec-head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.score-ring { --c: var(--muted); width: 84px; height: 84px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--line) 0); }
.score-ring span { width: 66px; height: 66px; border-radius: 50%; background: var(--panel); display: grid; place-items: center; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.score-ring.on { --c: var(--ok); } .score-ring.warn { --c: var(--warn); } .score-ring.bad { --c: var(--bad); }
.checks, .issues, .client-health, .activity, .script-list { list-style: none; margin: 0; padding: 0; }
.checks li, .issues li a, .client-health li a, .script-list li { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.checks li:last-child, .issues li:last-child a, .client-health li:last-child a, .script-list li:last-child { border-bottom: 0; }
.issues li a, .client-health li a { color: var(--ink); }
.issues li a:hover, .client-health li a:hover { background: var(--panel-2); text-decoration: none; }
.issues .chev { color: var(--muted); font-size: 18px; }
.sev { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.sev.critical { background: var(--bad-soft); color: var(--bad); }
.sev.warning { background: var(--warn-soft); color: var(--warn); }
.sev.info { background: var(--accent-soft); color: var(--accent); }
.sev.ok { background: var(--ok-soft); color: var(--ok); }
.activity li { display: flex; gap: 12px; padding: 10px 20px; border-bottom: 1px solid var(--line); font-size: 13px; align-items: baseline; }
.activity li:last-child { border-bottom: 0; }
.activity li .muted { width: 92px; flex: none; }

/* checklist */
.checklist { margin-bottom: 18px; }
.check-step { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.check-step:last-child { border-bottom: 0; }
.step-num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: var(--panel-2); border: 1px solid var(--line); flex: none; }
.check-step.done .step-num { background: var(--ok); color: #fff; border-color: var(--ok); }
.check-step.done strong { color: var(--muted); }

/* scripts */
.cat-head { display: flex; align-items: center; gap: 8px; padding: 14px 20px 8px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--panel-2); border-bottom: 1px solid var(--line); }
.os-badge { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); flex: none; }
.script-list .grow strong { font-weight: 600; }
.pick-list { max-height: 220px; overflow: auto; border: 1px solid var(--line); border-radius: 9px; padding: 6px 10px; }
.pick { padding: 4px 0; font-weight: 400; }

/* klanten & onboarding */
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.client-card { padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.client-top { display: flex; align-items: center; gap: 12px; }
.client-top h2 { margin: 0; }
.client-actions { margin-top: auto; }
.ob { display: flex; flex-direction: column; gap: 12px; }
.ob-opt { display: flex; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.ob-opt.rec { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--accent-soft) 45%, var(--panel)); }
.ob-opt h3 { display: flex; align-items: center; gap: 8px; margin: 0; }
.ob-opt p { margin: 4px 0 10px; }
.ob-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }

/* 2FA */
.tfa { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.tfa img { border-radius: 10px; background: #fff; padding: 8px; border: 1px solid var(--line); }
.secret { letter-spacing: .08em; font-size: 13px; color: var(--ink); }
.error { color: var(--bad); font-size: 13px; min-height: 18px; }

/* ---------- code / uitvoer ---------- */
pre.out { margin: 0; padding: 12px 14px; background: #0a1220; color: #cfe8dc; border-radius: 9px; max-height: 440px; overflow: auto; white-space: pre-wrap; word-break: break-word; }
pre.out.err { color: #fecaca; }
.cmd { display: flex; gap: 8px; align-items: stretch; }
.cmd pre { flex: 1; margin: 0; padding: 9px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; font-size: 12px; }

/* ---------- modal & toast ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(2, 6, 23, .55); backdrop-filter: blur(2px); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { background: var(--panel); border-radius: 14px; width: min(560px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.modal.wide { width: min(880px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 16px; }
.modal-body { padding: 18px 20px; overflow: auto; }
.modal-body section + section { border-top: 1px solid var(--line); padding-top: 16px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.toasts { position: fixed; bottom: 18px; right: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 60; }
.toast { background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 9px; box-shadow: var(--shadow-lg); max-width: 380px; font-weight: 550; }
.toast.bad { background: var(--bad); color: #fff; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 20px;
  background: radial-gradient(900px 500px at 15% -10%, rgba(20,184,166,.20), transparent), radial-gradient(700px 400px at 100% 110%, rgba(99,102,241,.12), transparent), var(--bg); }
.login-card { width: min(400px, 100%); padding: 30px; }
.login-card.wide { width: min(620px, 100%); }
.login-card .brand { color: var(--ink); padding: 0 0 22px; }
.login-card .brand-text small { color: var(--muted); }
.login-card h1 { font-size: 20px; margin-bottom: 2px; }

.notice { padding: 12px 14px; border-radius: 9px; background: var(--warn-soft); color: var(--ink); font-size: 13px; }
.notice.info { background: var(--accent-soft); }
.list-plain { margin: 0; padding: 0; list-style: none; }
.list-plain li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.list-plain li:last-child { border-bottom: 0; }
.spin { width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.brand-mark { color: #fff; font-weight: 800; }

/* ---------- verfijningen ---------- */
.kpis > *, .grid > * { min-width: 0; }
@media (max-width: 600px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 12px 14px; gap: 10px; }
  .kpi-ico { display: none; }
  .kpi .label { font-size: 11px; }
  .kpi .value { font-size: 22px; }
  .activity li .muted { width: 74px; }
  .check-step, .checks li, .issues li a, .client-health li a, .script-list li { padding-left: 14px; padding-right: 14px; }
  .script-list li { flex-wrap: wrap; }
}
.ob-opt .grow > .btn, .ob-opt .grow > a.btn { align-self: flex-start; }
.dev-name .host { white-space: nowrap; }
.title-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
