/* Serverpaneel — Liquid Glass-thema (zie ~/tutorials/liquid-glass-theme.md) */
:root {
  --lg-accent: #0a84ff;
  --lg-accent-soft: rgba(10, 132, 255, .28);
  --lg-tint: rgba(255, 255, 255, .07);
  --lg-tint-hover: rgba(255, 255, 255, .13);
  --lg-tint-selected: rgba(255, 255, 255, .18);
  --lg-tint-strong: rgba(28, 28, 34, .55);
  --lg-edge: rgba(255, 255, 255, .18);
  --lg-blur: blur(28px) saturate(190%);
  --lg-blur-strong: blur(40px) saturate(200%);
  --lg-radius: 22px;
  --lg-radius-sm: 14px;
  --lg-shine: inset 0 1px 0 rgba(255, 255, 255, .35),
              inset 0 -1px 0 rgba(255, 255, 255, .05),
              inset 0 0 18px rgba(255, 255, 255, .04);
  --lg-shadow: 0 10px 40px rgba(0, 0, 0, .35);
  --lg-ease: cubic-bezier(.2, .8, .2, 1);
  --text-muted: rgba(255, 255, 255, .7);
  --link: #5ab0ff;
  --ok: #30d158;
  --warn: #ffd60a;
  --danger: #ff5a50;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html {
  min-height: 100%;
  color: #fff;
  background:
    radial-gradient(1100px 750px at 8% -10%, rgba(94, 72, 220, .55), transparent 60%),
    radial-gradient(950px 700px at 105% 5%, rgba(0, 140, 190, .45), transparent 58%),
    radial-gradient(900px 800px at 55% 115%, rgba(200, 60, 140, .38), transparent 60%),
    #07070b;
  background-attachment: fixed;
  font-family: system-ui, -apple-system, "Segoe UI", Inter, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
body { margin: 0; min-height: 100vh; background: transparent; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.2; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .8em; }
.muted { color: var(--text-muted); }
.small { font-size: .85rem; }
.hidden { display: none !important; }
.spacer { flex: 1; }
.mt { margin-top: 14px; }
.mb { margin-bottom: 14px; }
.tabs.wrap { flex-wrap: wrap; }
[hidden] { display: none !important; }

/* ---------- glas ---------- */
.glass {
  background: var(--lg-tint);
  -webkit-backdrop-filter: var(--lg-blur);
  backdrop-filter: var(--lg-blur);
  border: 1px solid var(--lg-edge);
  border-radius: var(--lg-radius);
  box-shadow: var(--lg-shine), var(--lg-shadow);
}
.glass--strong {
  background: var(--lg-tint-strong);
  -webkit-backdrop-filter: var(--lg-blur-strong);
  backdrop-filter: var(--lg-blur-strong);
}
.panel { padding: 20px 22px; }
.panel + .panel, .stack > * + * { margin-top: 14px; }

/* ---------- header ---------- */
.header {
  position: fixed; top: 10px; left: 14px; right: 14px; z-index: 10;
  display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.brand img { width: 26px; height: 26px; }
.header .spacer { flex: 1; }
.mt { margin-top: 14px; }
.mb { margin-bottom: 14px; }
.tabs.wrap { flex-wrap: wrap; }
.who { color: var(--text-muted); font-size: .9rem; white-space: nowrap; }

/* ---------- tabs ---------- */
.tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; }
.tab {
  border: 0; background: transparent; color: inherit; font: inherit; padding: 6px 14px;
  border-radius: 999px; cursor: pointer; transition: background .2s var(--lg-ease);
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.tab:hover { background: var(--lg-tint-hover); }
.tab[aria-selected="true"] { background: var(--lg-tint-selected); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4); }
.badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; font-size: .72rem; font-weight: 700;
  background: var(--lg-accent); display: inline-grid; place-items: center;
}

/* ---------- knoppen ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 18px; border-radius: 999px; color: #fff; font: inherit; font-weight: 550; cursor: pointer;
  background: var(--lg-tint-hover);
  -webkit-backdrop-filter: var(--lg-blur); backdrop-filter: var(--lg-blur);
  border: 1px solid var(--lg-edge); box-shadow: var(--lg-shine);
  transition: filter .2s, transform .15s var(--lg-ease);
  text-decoration: none; white-space: nowrap;
}
.btn:hover { filter: brightness(1.15); text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: default; filter: none; transform: none; }
.btn--primary { background: linear-gradient(180deg, rgba(64, 160, 255, .9), rgba(10, 132, 255, .85)); }
.btn--danger { background: linear-gradient(180deg, rgba(255, 90, 80, .85), rgba(220, 45, 45, .8)); }
.btn--sm { padding: 5px 12px; font-size: .85rem; }
.btn--lg { padding: 12px 28px; font-size: 1.05rem; }
.btn--ghost { background: transparent; border-color: transparent; box-shadow: none; }
.btn--ghost:hover { background: var(--lg-tint-hover); }
.icon-btn {
  width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 0; background: transparent;
  color: inherit; cursor: pointer; display: inline-grid; place-items: center; font-size: 1rem;
  transition: background .2s var(--lg-ease);
}
.icon-btn:hover { background: var(--lg-tint-hover); }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--lg-accent-soft) !important; }

/* ---------- formulieren ---------- */
label { display: block; font-size: .85rem; color: var(--text-muted); margin-bottom: 4px; }
.input, select.input {
  width: 100%; padding: 10px 14px; color: #fff; font: inherit;
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--lg-edge); border-radius: var(--lg-radius-sm);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
select.input option { background: #1c1c22; }
.input:focus { border-color: var(--lg-accent); box-shadow: 0 0 0 3px var(--lg-accent-soft); }
textarea.input { resize: vertical; min-height: 70px; }
.field { margin-bottom: 12px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.check { display: flex; align-items: center; gap: 10px; color: #fff; font-size: .95rem; cursor: pointer; margin: 6px 0; }
.check input { width: 18px; height: 18px; accent-color: var(--lg-accent); }

/* schakelaar */
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; position: absolute; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid var(--lg-edge); transition: background .2s var(--lg-ease); }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.4); transition: transform .2s var(--lg-ease); }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { box-shadow: 0 0 0 3px var(--lg-accent-soft); }

/* ---------- layout ---------- */
.center { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 420px; padding: 28px; }
.auth-card .tabs { display: flex; margin-bottom: 18px; }
.auth-card .tabs .tab { flex: 1; justify-content: center; }
.hero-icon { width: 54px; height: 54px; margin-bottom: 10px; }
.share-card { width: 100%; max-width: 480px; padding: 32px; text-align: center; }
.share-name { word-break: break-word; }
.eyebrow { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.footer-note { margin-top: 16px; font-size: .85rem; color: var(--text-muted); }

/* ---------- statistiek / voortgang ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.stat { padding: 14px 16px; border-radius: var(--lg-radius-sm); background: var(--lg-tint); border: 1px solid var(--lg-edge); box-shadow: var(--lg-shine); }
.stat .k { font-size: .8rem; color: var(--text-muted); }
.stat .v { font-size: 1.35rem; font-weight: 650; }
.progress { height: 8px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
.progress > i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--lg-accent); transition: width .25s var(--lg-ease); }
.progress.warn > i { background: var(--warn); }
.progress.full > i { background: var(--danger); }

/* ---------- dropzone ---------- */
.drop {
  border: 1.5px dashed rgba(255,255,255,.3); border-radius: var(--lg-radius); padding: 30px 20px; text-align: center;
  cursor: pointer; transition: background .2s var(--lg-ease), border-color .2s;
}
.drop:hover, .drop.over { background: var(--lg-tint-hover); border-color: var(--lg-accent); }
.drop strong { font-size: 1.05rem; }
.uploads { margin-top: 12px; }
.upload-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 8px 0; font-size: .9rem; }
.upload-item .progress { grid-column: 1 / -1; }

/* ---------- lijsten / tabellen ---------- */
.list { padding: 6px; }
.list-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--lg-radius-sm);
  transition: background .2s var(--lg-ease);
}
.list-item:hover { background: var(--lg-tint-hover); }
.list-item .main { flex: 1; min-width: 0; }
.list-item .title { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item .meta { font-size: .82rem; color: var(--text-muted); }
.file-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none;
  background: linear-gradient(155deg, rgba(255,255,255,.22), rgba(255,255,255,.06)); border: 1px solid var(--lg-edge); font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.empty { padding: 26px; text-align: center; color: var(--text-muted); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; font-weight: 550; color: var(--text-muted); font-size: .8rem; padding: 10px 12px; }
td { padding: 10px 12px; border-top: 1px solid rgba(255,255,255,.08); vertical-align: middle; }
tr:hover td { background: rgba(255,255,255,.04); }

.chip { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 600;
  background: var(--lg-tint-hover); border: 1px solid var(--lg-edge); white-space: nowrap; }
.chip--ok { background: rgba(48, 209, 88, .2); border-color: rgba(48, 209, 88, .45); }
.chip--warn { background: rgba(255, 214, 10, .18); border-color: rgba(255, 214, 10, .45); }
.chip--danger { background: rgba(255, 90, 80, .2); border-color: rgba(255, 90, 80, .5); }
.chip--accent { background: var(--lg-accent-soft); border-color: rgba(10, 132, 255, .6); }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.subtabs { margin-bottom: 14px; }

.notice { padding: 14px 16px; border-radius: var(--lg-radius-sm); background: var(--lg-accent-soft); border: 1px solid rgba(10,132,255,.5); }
.copybox { display: flex; gap: 8px; margin-top: 8px; }
.copybox .input { font-family: ui-monospace, Menlo, monospace; font-size: .82rem; }

/* ---------- dialoog ---------- */
dialog {
  border: 1px solid var(--lg-edge); border-radius: var(--lg-radius); padding: 24px; color: #fff;
  width: min(520px, calc(100vw - 32px));
  background: var(--lg-tint-strong); -webkit-backdrop-filter: var(--lg-blur-strong); backdrop-filter: var(--lg-blur-strong);
  box-shadow: var(--lg-shine), 0 20px 60px rgba(0,0,0,.55);
}
dialog::backdrop { background: rgba(0, 0, 0, .35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; flex-wrap: wrap; }

/* ---------- toast ---------- */
#toasts { position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; width: calc(100% - 28px); max-width: 460px; }
.toast { padding: 10px 18px; border-radius: 999px; font-size: .92rem; animation: pop .25s var(--lg-ease); text-align: center; }
.toast--error { border-color: rgba(255, 90, 80, .6); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } }

/* ---------- scrollbalk ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .18); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- toegankelijkheid ---------- */
@media (prefers-reduced-transparency: reduce) {
  :root { --lg-tint: rgba(30, 30, 36, .92); --lg-tint-strong: rgba(30, 30, 36, .96); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* =================== Serverpaneel-layout =================== */
:root { --s1: #2f8cf0; --s2: #e8559e; --side-w: 236px; }
code, pre, .mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .85rem; }

.sidebar {
  position: fixed; top: 10px; bottom: 10px; left: 10px; width: var(--side-w); z-index: 20;
  display: flex; flex-direction: column; padding: 14px 10px; overflow-y: auto;
}
.sidebar .brand { padding: 4px 10px 14px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: var(--lg-radius-sm);
  color: #fff; text-decoration: none; transition: background .2s var(--lg-ease); font-size: .95rem;
}
.nav a:hover { background: var(--lg-tint-hover); text-decoration: none; }
.nav a.active { background: var(--lg-accent-soft); box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
.nav a svg { width: 18px; height: 18px; flex: none; opacity: .9; }
.nav .sep { height: 1px; background: rgba(255,255,255,.1); margin: 8px 10px; }
.side-foot { margin-top: auto; padding: 12px 10px 2px; font-size: .82rem; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.side-foot .spacer { flex: 1; }

.topbar { display: none; }
main.app { margin-left: calc(var(--side-w) + 20px); padding: 22px 22px 40px 10px; max-width: 1500px; }
.page-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 16px; }
.page-head h1 { margin: 0; }
.page-head .spacer { flex: 1; }

.grid { display: grid; gap: 14px; }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card-pad { padding: 18px 20px; }
.kpi .k { font-size: .82rem; color: var(--text-muted); display: flex; justify-content: space-between; gap: 8px; }
.kpi .v { font-size: 1.7rem; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .sub { font-size: .82rem; color: var(--text-muted); }
.kpi .progress { margin-top: 8px; }
.num { font-variant-numeric: tabular-nums; }

.chart-box { position: relative; height: 150px; margin-top: 6px; }
.chart-box canvas { width: 100%; height: 100%; display: block; }
.chart-tip { position: absolute; pointer-events: none; padding: 6px 10px; border-radius: 10px; font-size: .78rem; white-space: nowrap;
  background: rgba(20,20,28,.92); border: 1px solid var(--lg-edge); transform: translate(-50%, -110%); top: 0; z-index: 2; }
.legend { display: flex; gap: 14px; font-size: .8rem; color: var(--text-muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

.cores { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; margin-top: 10px; }
.core { height: 38px; border-radius: 9px; background: rgba(255,255,255,.08); position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.1); }
.core > i { position: absolute; left: 0; right: 0; bottom: 0; background: var(--s1); border-radius: 0; transition: height .4s var(--lg-ease); }
.core > span { position: absolute; inset: 0; display: grid; place-items: center; font-size: .7rem; font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,.6); }

.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; background: rgba(255,255,255,.35); }
.dot.ok { background: var(--ok); box-shadow: 0 0 8px rgba(48,209,88,.6); }
.dot.warn { background: var(--warn); }
.dot.bad { background: var(--danger); }

.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.toolbar .input { width: auto; min-width: 180px; }
.input.sm { padding: 6px 12px; font-size: .9rem; }
.actions-cell { white-space: nowrap; text-align: right; }
.actions-cell .btn + .btn { margin-left: 4px; }
td.wrap { word-break: break-all; }
.truncate { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

pre.log {
  margin: 0; padding: 14px 16px; max-height: 65vh; overflow: auto; white-space: pre-wrap; word-break: break-word;
  background: rgba(0,0,0,.35); border-radius: var(--lg-radius-sm); border: 1px solid rgba(255,255,255,.1); line-height: 1.45;
}
dialog.wide { width: min(1100px, calc(100vw - 24px)); }
dialog.full { width: calc(100vw - 24px); max-width: none; height: calc(100vh - 24px); max-height: none; display: flex; flex-direction: column; padding: 16px; }
dialog.full > form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
dialog .dlg-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
dialog .dlg-head h2 { margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
textarea.code { font-family: ui-monospace, Menlo, monospace; font-size: .86rem; line-height: 1.5; tab-size: 4; white-space: pre; flex: 1; min-height: 300px; resize: none; }

/* ---------- bestanden ---------- */
.fm { display: flex; flex-direction: column; }
.crumbs { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; font-size: .92rem; }
.crumbs button { border: 0; background: transparent; color: #fff; font: inherit; padding: 4px 8px; border-radius: 8px; cursor: pointer; }
.crumbs button:hover { background: var(--lg-tint-hover); }
.crumbs .sl { color: var(--text-muted); }
.fm-table td { padding: 7px 10px; }
.fm-table tr.sel td { background: var(--lg-accent-soft); }
.fm-table tr { cursor: default; user-select: none; }
.fm-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fm-name .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; font-size: .6rem; font-weight: 700; text-transform: uppercase;
  background: linear-gradient(155deg, rgba(255,255,255,.2), rgba(255,255,255,.05)); border: 1px solid var(--lg-edge); }
.fm-name .ic.dir { background: linear-gradient(155deg, rgba(64,160,255,.7), rgba(10,132,255,.35)); }
.fm-name .ic svg { width: 15px; height: 15px; }
.fm-name a, .fm-name span.n { color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-drop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(10,132,255,.18); border: 3px dashed var(--lg-accent);
  font-size: 1.4rem; font-weight: 650; pointer-events: none; }
.uploads-box { position: fixed; right: 14px; bottom: 14px; width: min(380px, calc(100vw - 28px)); z-index: 30; padding: 14px 16px; max-height: 50vh; overflow: auto; }
.check-cell { width: 34px; }
.check-cell input { width: 16px; height: 16px; accent-color: var(--lg-accent); }
.preview-img { max-width: 100%; max-height: 75vh; display: block; margin: 0 auto; border-radius: 10px; }

/* ---------- terminal ---------- */
.term-wrap { padding: 10px; height: calc(100vh - 140px); min-height: 320px; display: flex; flex-direction: column; }
.term { flex: 1; min-height: 0; border-radius: var(--lg-radius-sm); overflow: hidden; background: rgba(0,0,0,.55); padding: 8px; }
.term .xterm-viewport { background: transparent !important; }
.term-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; align-items: center; }

/* ---------- docs (markdown) ---------- */
.md { line-height: 1.6; }
.md h1 { font-size: 1.5rem; margin-top: .4em; }
.md h2 { font-size: 1.2rem; margin-top: 1.4em; padding-top: .6em; border-top: 1px solid rgba(255,255,255,.1); }
.md h3 { margin-top: 1.2em; }
.md table { margin: 10px 0; display: block; overflow-x: auto; }
.md code { background: rgba(255,255,255,.1); padding: 1px 6px; border-radius: 6px; }
.md pre { background: rgba(0,0,0,.35); padding: 12px 14px; border-radius: 12px; overflow-x: auto; }
.md pre code { background: none; padding: 0; }
.md blockquote { margin: 10px 0; padding: 4px 14px; border-left: 3px solid var(--lg-accent); color: var(--text-muted); }
.md ul, .md ol { padding-left: 22px; }
.docs-layout { display: grid; grid-template-columns: 240px 1fr; gap: 14px; align-items: start; }
.docs-list a { display: block; padding: 7px 12px; border-radius: 10px; color: #fff; font-size: .92rem; }
.docs-list a:hover { background: var(--lg-tint-hover); text-decoration: none; }
.docs-list a.active { background: var(--lg-accent-soft); }
.docs-list h3 { font-size: .78rem; color: var(--text-muted); margin: 10px 12px 4px; font-weight: 600; }

/* ---------- inloggen ---------- */
.auth-card .field { text-align: left; }
.otp-input { text-align: center; font-size: 1.6rem; letter-spacing: .35em; font-variant-numeric: tabular-nums; }
.qr { background: #fff; padding: 10px; border-radius: 14px; width: 200px; margin: 10px auto; }
.qr svg { display: block; width: 100%; height: auto; }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; padding: 14px; border-radius: var(--lg-radius-sm); background: rgba(0,0,0,.3); font-family: ui-monospace, monospace; text-align: center; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: .85rem; margin: 16px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.15); }
.auth-card .btn--lg { width: 100%; }

/* ---------- mobiel ---------- */
@media (max-width: 900px) {
  .sidebar { transform: translateX(calc(-100% - 20px)); transition: transform .25s var(--lg-ease); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; z-index: 15; background: rgba(0,0,0,.35); backdrop-filter: blur(4px); }
  .topbar { display: flex; position: sticky; top: 10px; margin: 10px 14px 0; z-index: 10; align-items: center; gap: 10px; padding: 6px 12px; }
  main.app { margin-left: 0; padding: 14px 14px 40px; }
  .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; }
  .docs-layout { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  .term-wrap { height: calc(100vh - 150px); }
}
