/* ============================================================
   Ticko dashboard: rustig, zakelijk, licht + donker
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-subtle: #fafafa;
  --bg-muted: #f4f4f5;
  --surface: #ffffff;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --text: #09090b;
  --text-muted: #71717a;
  --text-subtle: #a1a1aa;
  --primary: #18181b;
  --primary-hover: #3f3f46;
  --primary-fg: #fafafa;
  --accent: #2563eb;
  --focus: rgba(37, 99, 235, .35);
  --success: #16a34a;
  --success-bg: #f0fdf4;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  --warning: #b45309;
  --warning-bg: #fffbeb;
  --warning-border: #fde68a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 16px rgba(0, 0, 0, .06);
  --radius: 8px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #09090b;
    --bg-subtle: #0f0f11;
    --bg-muted: #18181b;
    --surface: #0f0f11;
    --border: #27272a;
    --border-strong: #3f3f46;
    --text: #fafafa;
    --text-muted: #a1a1aa;
    --text-subtle: #71717a;
    --primary: #fafafa;
    --primary-hover: #d4d4d8;
    --primary-fg: #09090b;
    --accent: #60a5fa;
    --focus: rgba(96, 165, 250, .4);
    --success: #4ade80;
    --success-bg: rgba(74, 222, 128, .08);
    --danger: #f87171;
    --danger-bg: rgba(248, 113, 113, .08);
    --danger-border: rgba(248, 113, 113, .3);
    --warning: #fbbf24;
    --warning-bg: rgba(251, 191, 36, .08);
    --warning-border: rgba(251, 191, 36, .3);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #09090b;
  --bg-subtle: #0f0f11;
  --bg-muted: #18181b;
  --surface: #0f0f11;
  --border: #27272a;
  --border-strong: #3f3f46;
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --text-subtle: #71717a;
  --primary: #fafafa;
  --primary-hover: #d4d4d8;
  --primary-fg: #09090b;
  --accent: #60a5fa;
  --focus: rgba(96, 165, 250, .4);
  --success: #4ade80;
  --success-bg: rgba(74, 222, 128, .08);
  --danger: #f87171;
  --danger-bg: rgba(248, 113, 113, .08);
  --danger-border: rgba(248, 113, 113, .3);
  --warning: #fbbf24;
  --warning-bg: rgba(251, 191, 36, .08);
  --warning-border: rgba(251, 191, 36, .3);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .4);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
a.link { color: var(--accent); }
a.link:hover { text-decoration: underline; }
h1, h2, h3, p { margin: 0; }
.muted { color: var(--text-muted); }
.subtle { color: var(--text-subtle); }
.mono { font-variant-numeric: tabular-nums; }
code { font-family: var(--mono); font-size: 12px; background: var(--bg-muted); border: 1px solid var(--border); padding: 1px 5px; border-radius: 4px; }
.icon { width: 16px; height: 16px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon.sm { width: 14px; height: 14px; }
.icon.fill { fill: currentColor; stroke: none; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  height: 56px; padding: 0 20px;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.logo { width: 24px; height: 24px; border-radius: 6px; }
.crumb-sep { color: var(--border-strong); font-size: 20px; font-weight: 300; }
.switcher { position: relative; display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 6px; font-weight: 500; }
.switcher:hover { background: var(--bg-muted); }
.switcher select { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.topbar .spacer { flex: 1; }
.user { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }

/* ---------- Avatars ---------- */
.avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--bg-muted); flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: var(--text-muted); border: 1px solid var(--border); }
.avatar.xs { width: 20px; height: 20px; font-size: 10px; }
.avatar.sq { border-radius: 6px; }
.avatar.lg { width: 40px; height: 40px; border-radius: 8px; font-size: 15px; }

/* ---------- Knoppen ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: 6px;
  background: var(--surface); color: var(--text);
  font: 500 13px var(--font); cursor: pointer; white-space: nowrap;
  transition: background .12s, border-color .12s, color .12s;
}
.btn:hover { background: var(--bg-muted); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .nav a:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--focus); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-fg); }
.btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.danger:hover { opacity: .9; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--text-muted); }
.btn.ghost:hover { background: var(--bg-muted); color: var(--text); }
.btn.icon-only { width: 34px; padding: 0; }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12px; }
.btn.sm.icon-only { width: 28px; }
.btn.block { width: 100%; height: 40px; font-size: 14px; }

/* ---------- Inloggen ---------- */
.auth { min-height: calc(100vh - 56px); display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 380px; }
.auth-card .logo { width: 40px; height: 40px; border-radius: 10px; margin-bottom: 24px; }
.auth-card h1 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 6px; }
.auth-card p { color: var(--text-muted); margin-bottom: 24px; }
.auth-card .foot { margin-top: 20px; font-size: 12px; color: var(--text-subtle); }

/* ---------- Pagina-opbouw ---------- */
.container { max-width: 760px; margin: 0 auto; padding: 48px 20px 80px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.page-head p { color: var(--text-muted); margin-top: 4px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 13px; margin-bottom: 16px; }
.back-link:hover { color: var(--text); }

.layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: calc(100vh - 56px); }
.layout > * { min-width: 0; }
.sidebar { border-right: 1px solid var(--border); background: var(--bg-subtle); padding: 16px 12px; }
.nav-label { font-size: 11px; font-weight: 500; color: var(--text-subtle); text-transform: uppercase; letter-spacing: .06em; padding: 16px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px; border-radius: 6px; color: var(--text-muted); font-weight: 500; }
.nav a:hover { background: var(--bg-muted); color: var(--text); }
.nav a.active { background: var(--bg-muted); color: var(--text); }
.nav a .count { margin-left: auto; font-size: 12px; color: var(--text-subtle); font-variant-numeric: tabular-nums; }
.content { padding: 40px 48px 96px; max-width: 1040px; width: 100%; }

/* ---------- Panelen (instellingenblokken) ---------- */
.panel { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin-bottom: 20px; overflow: hidden; }
.panel-body { padding: 24px; }
.panel-body h2 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.panel-body > .desc { color: var(--text-muted); margin-top: 4px; margin-bottom: 20px; }
.panel-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 24px; background: var(--bg-subtle); border-top: 1px solid var(--border); font-size: 13px; color: var(--text-muted); min-height: 58px; }
.panel.danger { border-color: var(--danger-border); }
.panel.danger .panel-footer { background: var(--danger-bg); border-top-color: var(--danger-border); }

/* ---------- Formulieren ---------- */
.field { margin-bottom: 20px; }
.field:last-child { margin-bottom: 0; }
.field > label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.hint { color: var(--text-muted); font-size: 12px; margin-top: 6px; line-height: 1.7; }
.hint code { white-space: nowrap; }
input[type=text], select, textarea {
  width: 100%; height: 36px; padding: 0 10px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: 6px;
  font: 14px var(--font);
  transition: border-color .12s, box-shadow .12s;
}
input[type=text]:hover, select:hover, textarea:hover { border-color: var(--border-strong); }
textarea { height: auto; min-height: 100px; padding: 8px 10px; resize: vertical; line-height: 1.5; }
select { appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 15 5 5 5-5'/%3E%3Cpath d='m7 9 5-5 5 5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; background-size: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
/* Velden naast elkaar: de ruimte zit onder het hele blok (ook als ze op mobiel onder elkaar staan) */
.grid-2 > .field { margin-bottom: 0; }
.grid-2:has(> .field) { margin-bottom: 20px; }
.grid-2:has(> .field):last-child { margin-bottom: 0; }
.color-field { display: flex; gap: 8px; }
.color-field input[type=color] { width: 36px; height: 36px; padding: 3px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); cursor: pointer; }
.color-field input[type=text] { width: 120px; font-family: var(--mono); }

/* Schakelaar */
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 0; border-top: 1px solid var(--border); }
.setting-row:first-of-type { border-top: 0; padding-top: 0; }
.setting-row:last-child { padding-bottom: 0; }
.setting-row .title { font-weight: 500; }
.setting-row .desc { color: var(--text-muted); font-size: 13px; margin-top: 2px; }
.switch { position: relative; width: 36px; height: 20px; flex-shrink: 0; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: var(--border-strong); border-radius: 20px; transition: background .15s; }
.switch span::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; background: #fff; border-radius: 50%; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.switch input:checked + span { background: var(--primary); }
:root[data-theme="dark"] .switch input:checked + span::after { background: var(--primary-fg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .switch input:checked + span::after { background: var(--primary-fg); } }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { box-shadow: 0 0 0 3px var(--focus); }

/* ---------- Meldingsbalken ---------- */
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); border: 1px solid; margin-bottom: 20px; font-size: 13px; }
.notice .icon { margin-top: 2px; }
.notice.warning { background: var(--warning-bg); border-color: var(--warning-border); color: var(--warning); }
.notice.error { background: var(--danger-bg); border-color: var(--danger-border); color: var(--danger); }
.notice b { font-weight: 600; }

/* ---------- Lijsten ---------- */
.list { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.list-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-top: 1px solid var(--border); }
.list-row:first-child { border-top: 0; }
a.list-row:hover, .list-row.clickable:hover { background: var(--bg-subtle); }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row .sub { color: var(--text-muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row .chev { color: var(--text-subtle); }
.type-emoji { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-subtle); display: grid; place-items: center; font-size: 18px; flex-shrink: 0; }

/* Status */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--text-muted); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--text-subtle); }
.status.open::before, .status.active::before { background: var(--success); }
.status.closed::before { background: var(--text-subtle); }

/* ---------- Statistieken ---------- */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin-bottom: 20px; overflow: hidden; }
.kpi { padding: 20px 24px; border-left: 1px solid var(--border); border-top: 1px solid var(--border); margin: -1px 0 0 -1px; }
.kpi .label { font-size: 13px; color: var(--text-muted); }
.kpi .value { font-size: 30px; font-weight: 600; letter-spacing: -.03em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .value small { font-size: 13px; color: var(--text-muted); font-weight: 400; margin-left: 6px; letter-spacing: 0; }
.bar { height: 6px; background: var(--bg-muted); border-radius: 6px; overflow: hidden; margin-top: 8px; }
.bar > div { height: 100%; background: var(--text); border-radius: 6px; }
.rank { width: 20px; font-size: 12px; color: var(--text-subtle); font-variant-numeric: tabular-nums; }
.checklist .list-row { padding: 12px 16px; }
.check { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--border-strong); display: grid; place-items: center; flex-shrink: 0; }
.check.done { background: var(--success); border-color: var(--success); color: #fff; }
.check.done .icon { width: 11px; height: 11px; stroke-width: 3; }

/* ---------- Tabellen ---------- */
.segmented { display: inline-flex; padding: 3px; background: var(--bg-muted); border-radius: 8px; margin-bottom: 16px; }
.segmented button { height: 28px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: var(--text-muted); font: 500 13px var(--font); cursor: pointer; }
.segmented button.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.table-wrap { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-weight: 500; color: var(--text-muted); padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--bg-subtle); white-space: nowrap; }
td { padding: 12px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
tbody tr { cursor: pointer; transition: background .1s; }
tbody tr:hover { background: var(--bg-subtle); }
tbody tr:last-child td { border-bottom: 0; }
.user-cell { display: inline-flex; align-items: center; gap: 8px; }
.pagination { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; font-size: 13px; color: var(--text-muted); }
.empty { padding: 56px 24px; text-align: center; color: var(--text-muted); }
.empty .icon { width: 24px; height: 24px; margin-bottom: 10px; color: var(--text-subtle); }
.empty .title { color: var(--text); font-weight: 500; margin-bottom: 2px; }

/* Ticketdetail */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.props { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 4px 16px; }
.prop { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); font-size: 13px; }
.prop:first-child { border-top: 0; }
.prop .k { color: var(--text-muted); }
.prop .v { text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.transcript-frame { width: 100%; height: 72vh; border: 1px solid var(--border); border-radius: var(--radius); background: #313338; display: block; }
.answers .q { font-size: 13px; color: var(--text-muted); margin-top: 14px; }
.answers .q:first-child { margin-top: 0; }
.answers .a { white-space: pre-wrap; margin-top: 2px; }
.section-title { font-size: 14px; font-weight: 600; margin: 28px 0 12px; }

/* Vragen-editor */
.question-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.question-row .num { width: 20px; font-size: 12px; color: var(--text-subtle); text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Discord-voorbeeld ---------- */
.with-preview { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.preview { position: sticky; top: 80px; }
.preview-label { font-size: 12px; font-weight: 500; color: var(--text-muted); margin-bottom: 8px; }
.discord { background: #313338; border-radius: var(--radius); padding: 16px; color: #dbdee1; font-family: "gg sans", "Noto Sans", "Segoe UI", sans-serif; font-size: 14px; border: 1px solid var(--border); }
.dc-msg { display: flex; gap: 12px; }
.dc-msg + .dc-msg { margin-top: 18px; }
.dc-avatar { width: 36px; height: 36px; border-radius: 50%; background: #5865f2; flex-shrink: 0; object-fit: cover; }
.dc-name { font-weight: 600; color: #f2f3f5; }
.dc-tag { background: #5865f2; color: #fff; font-size: 10px; font-weight: 600; padding: 0 4px; border-radius: 3px; margin-left: 4px; vertical-align: 1px; }
.dc-embed { margin-top: 4px; background: #2b2d31; border-left: 4px solid #5865f2; border-radius: 4px; padding: 10px 14px 12px; overflow-wrap: anywhere; line-height: 1.4; }
.dc-embed .t { font-weight: 600; color: #f2f3f5; margin-bottom: 6px; }
.dc-embed code { background: #1e1f22; border: 0; color: #dbdee1; }
.dc-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.dc-btn { background: #5865f2; color: #fff; padding: 5px 14px; border-radius: 4px; font-weight: 500; }
.dc-btn.red { background: #da373c; }
.dc-btn.green { background: #248046; }
.dc-select { margin-top: 8px; background: #1e1f22; color: #949ba4; padding: 8px 12px; border-radius: 4px; }
.mention { background: rgba(88, 101, 242, .3); color: #c9cdfb; padding: 0 2px; border-radius: 3px; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 100; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); font-size: 13px; max-width: 380px; animation: toast-in .18s ease-out; }
.toast .icon { color: var(--success); }
.toast.error .icon { color: var(--danger); }
@keyframes toast-in { from { transform: translateY(6px); opacity: 0; } }

.skeleton { height: 14px; border-radius: 4px; background: linear-gradient(90deg, var(--bg-muted), var(--border), var(--bg-muted)); background-size: 200% 100%; animation: shimmer 1.2s infinite; margin-bottom: 12px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Mobiel ---------- */
@media (max-width: 960px) {
  .with-preview, .detail { grid-template-columns: 1fr; }
  .preview { position: static; }
}
@media (max-width: 760px) {
  .layout { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--border); padding: 8px 12px; }
  .nav { display: flex; gap: 2px; overflow-x: auto; }
  .nav-label { display: none; }
  .nav a { white-space: nowrap; }
  .content { padding: 24px 16px 64px; }
  .grid-2 { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { padding: 16px; }
  .kpi .value { font-size: 24px; }
  .topbar { gap: 8px; }
  .brand span, .crumb-sep { display: none; }
  .switcher > span { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .page-head h1 { font-size: 22px; }
  .topbar { padding: 0 12px; }
  .user .name { display: none; }
  .panel-body { padding: 20px 16px; }
  .panel-footer { padding: 12px 16px; }
}

/* ============================================================
   Uitbreidingen: filters, grafieken, notities, openingstijden
   ============================================================ */

/* Prioriteit */
.priority { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--text-muted); }
.priority::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--border-strong); }
.priority.low::before { background: #22c55e; }
.priority.high::before { background: #f97316; }
.priority.urgent { color: var(--danger); }
.priority.urgent::before { background: #ef4444; }

/* Werkbalk met zoeken en filters */
.toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .segmented { margin-bottom: 0; }
.toolbar select { width: auto; min-width: 150px; height: 34px; }
.search { position: relative; flex: 1; min-width: 200px; display: flex; align-items: center; }
.search .icon { position: absolute; left: 10px; color: var(--text-subtle); pointer-events: none; }
.search input { padding-left: 32px; height: 34px; }

/* Grafieken */
.chart svg { display: block; width: 100%; fill: var(--text); }
.chart rect { opacity: .85; transition: opacity .1s; }
.chart rect:hover { opacity: 1; fill: var(--accent); }
.chart-labels { position: relative; height: 18px; margin-top: 6px; font-size: 11px; color: var(--text-subtle); }
.chart-labels span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.chart-labels span:first-child { transform: none; }

/* Notities */
.note { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.note:first-child { padding-top: 0; }
.note .grow { flex: 1; min-width: 0; }
.note-head { display: flex; gap: 8px; align-items: baseline; font-size: 13px; }
.note-body { white-space: pre-wrap; margin-top: 2px; overflow-wrap: anywhere; }
.note-form { margin-top: 12px; }

/* Keuzerondjes als kaarten */
.choice-group { display: grid; gap: 8px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: border-color .12s, background .12s; }
.choice:hover { background: var(--bg-subtle); }
.choice:has(input:checked) { border-color: var(--text); background: var(--bg-subtle); }
.choice input { margin: 3px 0 0; accent-color: var(--text); }
.choice .title { font-weight: 500; }
.choice .desc { color: var(--text-muted); font-size: 13px; }

/* Openingstijden */
.days { margin-top: 8px; border-top: 1px solid var(--border); padding-top: 8px; }
.day-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.day-name { width: 96px; font-weight: 500; }
input[type=time] { height: 34px; padding: 0 8px; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 6px; font: 14px var(--font); font-variant-numeric: tabular-nums; }
input[type=time]:disabled { opacity: .4; }
input[type=time]:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--focus); }

/* Live-indicator */
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); margin-right: 4px; }
.live span { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 var(--success); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 60%, transparent); } 70% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* Tabellen: niet-klikbare rijen en tekst die mag doorlopen */
tbody tr.static { cursor: default; }
td.wrap { white-space: normal; min-width: 200px; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 20px; font-size: 12px; font-weight: 500; background: var(--bg-muted); color: var(--text-muted); border: 1px solid var(--border); }

@media (max-width: 760px) {
  .toolbar select { flex: 1; }
  .day-row { flex-wrap: wrap; gap: 8px; }
  .day-name { width: auto; flex: 1 1 60%; }
  .day-row input[type=time] { flex: 1; }
  .setting-row { flex-wrap: wrap; }
  .setting-row select { width: 100% !important; }
  .live { display: none; }
}

/* Blok zonder beschrijving: eerste instelling direct onder de titel, zonder lijn */
.panel-body > h2 + .setting-row { border-top: 0; margin-top: 12px; padding-top: 4px; }
.panel-body > h2 + select, .panel-body > h2 + .field { margin-top: 16px; }

/* ============================================================
   Panelen, embed-editor, gesprek, rollen, opslaan-balk
   ============================================================ */

.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.nav-note { font-size: 12px; color: var(--text-subtle); padding: 16px 10px 0; line-height: 1.45; }

/* Discord-voorbeeld: meer onderdelen van een bericht */
.dc-time { color: #949ba4; font-size: 12px; margin-left: 6px; }
.dc-content { margin-top: 2px; }
.dc-emoji { width: 1.2em; height: 1.2em; vertical-align: -0.25em; object-fit: contain; }
.dc-embed { max-width: 520px; }
.dc-embed-grid { display: flex; gap: 16px; }
.dc-embed-main { flex: 1; min-width: 0; }
.dc-embed .t { font-size: 15px; }
.dc-author { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #f2f3f5; margin-bottom: 6px; }
.dc-author img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.dc-link { color: #00a8fc; }
.dc-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; margin-top: 8px; }
.dc-embed.has-thumb .dc-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dc-embed { overflow-wrap: break-word; }
@media (min-width: 1200px) { .with-preview { grid-template-columns: minmax(0, 1fr) 400px; } }
.dc-field { grid-column: 1 / -1; min-width: 0; font-size: 13px; }
.dc-field.inline { grid-column: auto; }
.dc-field .n { font-weight: 600; color: #f2f3f5; margin-bottom: 2px; }
.dc-thumb { width: 80px; height: 80px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.dc-image { display: block; max-width: 100%; max-height: 300px; border-radius: 4px; margin-top: 12px; object-fit: cover; }
.dc-footer { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; color: #b5bac1; }
.dc-footer img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.dc-embed h1, .dc-embed h2, .dc-embed h3 { margin: 8px 0 4px; color: #f2f3f5; line-height: 1.25; font-weight: 700; }
.dc-embed h1 { font-size: 20px; }
.dc-embed h2 { font-size: 17px; }
.dc-embed h3 { font-size: 15px; }
.dc-quote { border-left: 4px solid #4e5058; padding-left: 10px; margin: 2px 0; }
.dc-rows { margin-top: 8px; display: grid; gap: 8px; }
.dc-rows .dc-buttons { margin-top: 0; }
.dc-btn { display: inline-flex; align-items: center; gap: 6px; }
.dc-btn.primary { background: #5865f2; }
.dc-btn.secondary { background: #4e5058; }
.dc-btn.success { background: #248046; }
.dc-btn.danger { background: #da373c; }
.dc-select { display: flex; align-items: center; justify-content: space-between; gap: 8px; max-width: 420px; border: 1px solid #1e1f22; }
.button-preview { margin-top: 4px; padding: 14px 16px; }

/* Kleurbolletje van een knopkleur */
.btn-dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: #5865f2; flex-shrink: 0; }
.btn-dot.secondary { background: #4e5058; }
.btn-dot.success { background: #248046; }
.btn-dot.danger { background: #da373c; }

/* Uitklapbare onderdelen in de editor */
.fold { border: 1px solid var(--border); border-radius: var(--radius); margin-top: 12px; background: var(--bg); }
.fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-weight: 500; font-size: 13px; user-select: none; border-radius: var(--radius); }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary:hover { background: var(--bg-subtle); }
.fold > summary:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--focus); }
.fold > summary .icon { color: var(--text-subtle); transition: transform .15s; }
.fold[open] > summary .icon { transform: rotate(90deg); }
.fold > summary .count { margin-left: auto; color: var(--text-subtle); font-weight: 400; font-size: 12px; font-variant-numeric: tabular-nums; }
.fold-body { padding: 6px 14px 14px; }
.fold-body .field:last-child { margin-bottom: 0; }

.ee-field { border: 1px solid var(--border); border-radius: 6px; padding: 10px; margin-bottom: 8px; background: var(--surface); }
.ee-field-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 12px; color: var(--text-muted); }
.ee-field-head .grow { flex: 1; font-weight: 500; }
.inline-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); cursor: pointer; margin-top: 4px; }
.inline-check input { accent-color: var(--text); margin: 0; width: 15px; height: 15px; }
.ee-field-head .inline-check { margin: 0 6px 0 0; font-size: 12px; }
.input-with-btn { display: flex; gap: 8px; }
.input-with-btn > input, .input-with-btn > select { flex: 1; min-width: 0; }
.input-with-btn > .btn { height: 36px; }
.input-with-btn > .btn.sm { height: 32px; }
.input-with-btn:has(.btn.sm) > input { height: 32px; font-size: 13px; }

/* Keuzekaarten naast elkaar */
.choice-group.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-group.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Soorten op een paneel: aan/uit en volgorde */
.type-order { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 10px; }
.type-order[hidden] { display: none; }
.type-order .item { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 12px; border-top: 1px solid var(--border); }
.type-order .item:first-child { border-top: 0; }
.type-order .item .grow { flex: 1; min-width: 0; font-weight: 500; }
.type-order .item.off .grow, .type-order .item.off .type-emoji { opacity: .5; }
.type-order input[type=checkbox] { accent-color: var(--text); width: 15px; height: 15px; margin: 0; }
.type-emoji.sm { width: 28px; height: 28px; font-size: 15px; border-radius: 6px; }

/* Panelenlijst */
.tile { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-subtle); display: grid; place-items: center; color: var(--text-muted); flex-shrink: 0; }
.pill { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 500; border: 1px solid var(--border); color: var(--text-muted); white-space: nowrap; }
.pill.ok { color: var(--success); border-color: color-mix(in srgb, var(--success) 35%, transparent); background: var(--success-bg); }

/* Rollen als chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 5px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); min-height: 36px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 2px 0 8px; border-radius: 12px; background: var(--bg-muted); border: 1px solid var(--border); font-size: 12px; font-weight: 500; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.chip button { border: 0; background: transparent; color: var(--text-muted); cursor: pointer; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; padding: 0; }
.chip button:hover { background: var(--border); color: var(--text); }
.chip button .icon { width: 12px; height: 12px; }
.chips select { width: auto; flex: 1; min-width: 150px; height: 26px; border: 0; background-color: transparent; font-size: 13px; color: var(--text-muted); padding: 0 28px 0 6px; }

/* Knopkleuren */
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 10px; border: 1px solid var(--border); border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 500; background: var(--bg); }
.swatch:hover { background: var(--bg-subtle); }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch .c { width: 16px; height: 16px; border-radius: 4px; }
.swatch:has(input:checked) { border-color: var(--text); background: var(--bg-subtle); }
.swatch:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--focus); }

/* Gesprek in een ticket */
.chat { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.chat-log { max-height: 520px; min-height: 140px; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.chat-msg { display: flex; gap: 12px; }
.chat-msg > .avatar { width: 34px; height: 34px; }
.chat-msg .grow { flex: 1; min-width: 0; }
.chat-head { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.chat-head b { font-weight: 600; }
.chat-head .subtle { font-size: 12px; }
.chat-head .dc-tag { margin-left: 0; }
.chat-text { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 1px; }
.chat-embed { margin-top: 6px; border-left: 3px solid var(--border-strong); padding: 8px 12px; background: var(--bg-subtle); border-radius: 4px; font-size: 13px; max-width: 520px; }
.chat-embed .t { font-weight: 600; }
.chat-embed .a { color: var(--text-muted); font-size: 12px; font-weight: 600; margin-bottom: 2px; }
.chat-field { margin-top: 6px; }
.chat-img { display: block; max-width: 280px; max-height: 220px; border-radius: 6px; margin-top: 6px; border: 1px solid var(--border); }
.chat-file { display: inline-flex; gap: 6px; align-items: center; margin-top: 6px; color: var(--accent); font-size: 13px; }
.composer { border-top: 1px solid var(--border); padding: 12px; background: var(--bg-subtle); }
.composer textarea { min-height: 76px; background: var(--surface); }
.composer-bar { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.composer-bar select { width: auto; flex: 0 1 260px; height: 30px; font-size: 13px; }
.composer-bar .hint { margin: 0 0 0 auto; }

/* Zijkant van een ticket */
.side-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 14px 16px; margin-top: 16px; }
.side-card h3 { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.side-card h3 .icon { color: var(--text-muted); }
.member-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 13px; min-height: 34px; }
.member-row .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prop select { height: 28px; width: 150px; font-size: 13px; padding-left: 8px; }
.prop .v:has(select) { overflow: visible; flex-shrink: 0; }
.prop .k { white-space: nowrap; }

/* Balk bij niet-opgeslagen wijzigingen */
.savebar { position: sticky; bottom: 16px; z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 10px 10px 16px; margin-top: 4px; background: var(--primary); color: var(--primary-fg); border-radius: var(--radius); box-shadow: var(--shadow); font-size: 13px; font-weight: 500; animation: toast-in .18s ease-out; }
.savebar[hidden] { display: none; }
.savebar-actions { display: flex; gap: 6px; flex-shrink: 0; }
.savebar .btn.ghost { color: var(--primary-fg); opacity: .75; }
.savebar .btn.ghost:hover { background: color-mix(in srgb, var(--primary-fg) 12%, transparent); color: var(--primary-fg); opacity: 1; }
.savebar .btn.primary { background: var(--primary-fg); color: var(--primary); border-color: var(--primary-fg); }
.savebar .btn.primary:hover { opacity: .9; }

/* Venster (dialog) */
dialog.modal { border: 1px solid var(--border); border-radius: 12px; padding: 0; width: min(440px, calc(100vw - 32px)); background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
dialog.modal::backdrop { background: rgba(0, 0, 0, .5); }
.modal-body { padding: 22px 22px 4px; }
.modal-body h2 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.modal-body .desc { color: var(--text-muted); margin-bottom: 18px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 22px 22px; }

@media (max-width: 760px) {
  .choice-group.two, .choice-group.three { grid-template-columns: 1fr; }
  .dc-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .composer-bar .hint { display: none; }
  .composer-bar select { flex: 1; }
  .savebar { flex-direction: column; align-items: stretch; }
  .savebar-actions .btn { flex: 1; }
  .prop select { width: 140px; }
  .list-row .pill { display: none; }
}

/* Taalknop */
.lang-switch { font-weight: 600; min-width: 34px; letter-spacing: .02em; }

/* Voorkeuren: compacte weergave en minder animaties */
body.compact .content { padding-top: 24px; }
body.compact .panel-body { padding: 16px 18px; }
body.compact .panel { margin-bottom: 12px; }
body.compact .list-row { padding: 9px 14px; }
body.compact td { padding: 8px 14px; }
body.compact .page-head { margin-bottom: 18px; }
body.compact .setting-row { padding: 10px 0; }
body.compact .field { margin-bottom: 14px; }
body.reduce-motion *, body.reduce-motion *::before, body.reduce-motion *::after { animation: none !important; transition: none !important; }
dialog.modal .setting-row:first-of-type { border-top: 1px solid var(--border); padding-top: 14px; }

/* Labels */
.tags { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; vertical-align: middle; margin-left: 6px; }
td > .tags { display: flex; margin: 5px 0 0; max-width: 260px; }
.prop-block { display: block; }
.prop-tags { margin-top: 8px; }
.prop-tags .tags { margin-left: 0; }
.tag-chip { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 12px; font-weight: 500; white-space: nowrap;
  color: var(--text); background: color-mix(in srgb, var(--tag) 14%, transparent); border: 1px solid color-mix(in srgb, var(--tag) 45%, transparent); }
.tag-chip:has(button) { padding-right: 2px; }
.tag-chip img.emoji { width: 14px; height: 14px; }
.tag-chip button { border: 0; background: transparent; color: var(--text-muted); cursor: pointer; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; padding: 0; }
.tag-chip button:hover { background: color-mix(in srgb, var(--tag) 25%, transparent); color: var(--text); }
.tag-chip button .icon { width: 11px; height: 11px; }
.prop-tags select.tag-add { width: auto; height: 24px; font-size: 12px; padding: 0 24px 0 8px; border-radius: 12px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { position: relative; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch span { display: block; width: 28px; height: 28px; border-radius: 50%; background: var(--tag); border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border); }
.swatch input:checked + span { box-shadow: 0 0 0 2px var(--text); }
.swatch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Slimme regels */
.notice.info { background: var(--bg-subtle); border-color: var(--border); color: var(--text-muted); }
.rule-actions { display: inline-flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.rule-stats { font-size: 12px; color: var(--text-subtle); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rule-test { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; font-size: 13px; }
.rule-test .icon { margin-top: 2px; flex-shrink: 0; }
.rule-test.hit { color: var(--success); }
.rule-test.miss { color: var(--text-muted); }

/* Eerdere tickets en supporters */
.history-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 13px; border-top: 1px solid var(--border); color: inherit; text-decoration: none; }
.history-row:first-of-type { border-top: 0; }
.history-row:hover .mono { text-decoration: underline; }
.history-row .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-row .status::before { margin: 0; }
table.supporters td, table.supporters th { white-space: nowrap; }
table.supporters tbody tr { cursor: default; }
@media (max-width: 760px) {
  .rule-actions, .rule-stats { display: none; }
}

/* Wat is er nieuw */
.news-btn { position: relative; }
.news-btn.unseen::after { content: ""; position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 2px var(--bg); }
.modal.wide { width: min(600px, calc(100vw - 32px)); }
.releases { max-height: min(60vh, 520px); overflow-y: auto; margin: 4px -4px 0; padding: 0 4px; }
.release { padding: 14px 0; border-top: 1px solid var(--border); }
.release:first-child { border-top: 0; padding-top: 4px; }
.release-head { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.version { font-family: ui-monospace, monospace; font-weight: 600; padding: 1px 8px; border-radius: 10px; background: var(--bg-muted); border: 1px solid var(--border); }
.version.latest { background: var(--success-bg); color: var(--success); border-color: color-mix(in srgb, var(--success) 35%, transparent); }
.release-title { font-weight: 600; margin: 8px 0 6px; }
.release ul { margin: 0; padding-left: 18px; color: var(--text-muted); font-size: 13px; line-height: 1.7; }
.release li b { color: var(--text); }

/* Ranglijst */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 28px 0 12px; }
.section-head .section-title { margin: 0; }
.section-head .segmented { margin-bottom: 0; }
.segmented.sm button { height: 24px; padding: 0 10px; font-size: 12px; }
.medal { width: 20px; text-align: center; font-size: 15px; }
.medal .rank { width: auto; }
#transcript-url { font-size: 12px; font-family: ui-monospace, monospace; }

/* v1.5: team, reactiedoelen, keuzevragen, back-up */
.badge.red { background: var(--danger-bg); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, transparent); margin-top: 4px; }
.pill.away { color: #b45309; border-color: color-mix(in srgb, #f59e0b 45%, transparent); background: color-mix(in srgb, #f59e0b 12%, transparent); }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.sla-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sla-grid .field { margin-bottom: 0; }
.sla-grid .field > label { display: flex; }
@media (max-width: 760px) { .sla-grid { grid-template-columns: 1fr 1fr; } }
.question-block + .question-block { margin-top: 2px; }
.question-row .question-kind { width: 140px; flex-shrink: 0; }
.question-options { width: calc(100% - 28px); margin: 0 0 8px 28px; min-height: 84px; display: block; }
ul.warnings { margin: 8px 0; padding-left: 18px; }
label.btn input[type=file] { display: none; }

/* ============================================================
   v1.6: Ticko-huisstijl (paars) en de openbare website
   ============================================================ */
:root {
  --brand: #5b5bf6;
  --brand-strong: #4338ca;
  --brand-soft: #eef0ff;
  --primary: #5b5bf6;
  --primary-hover: #4f46e5;
  --primary-fg: #ffffff;
  --accent: #5b5bf6;
  --focus: rgba(91, 91, 246, .35);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #8b8bff;
    --brand-strong: #6d6af8;
    --brand-soft: rgba(124, 124, 255, .12);
    --primary: #6d6af8;
    --primary-hover: #5b5bf6;
    --primary-fg: #ffffff;
    --accent: #9b9bff;
    --focus: rgba(139, 139, 255, .4);
  }
}
:root[data-theme="dark"] {
  --brand: #8b8bff;
  --brand-strong: #6d6af8;
  --brand-soft: rgba(124, 124, 255, .12);
  --primary: #6d6af8;
  --primary-hover: #5b5bf6;
  --primary-fg: #ffffff;
  --accent: #9b9bff;
  --focus: rgba(139, 139, 255, .4);
}
:root[data-theme="dark"] .switch input:checked + span::after { background: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .switch input:checked + span::after { background: #fff; } }

/* Dashboard: rustige accenten in de huisstijl */
.btn.primary { box-shadow: 0 1px 2px rgba(67, 56, 202, .25); }
.nav a.active { background: var(--brand-soft); color: var(--text); }
.nav a.active .icon { color: var(--brand); }
.chart svg { fill: var(--brand); }
.chart rect:hover { fill: var(--brand-strong); }
.bar > div { background: var(--brand); }
.savebar { background: var(--text); color: var(--bg); }
.savebar .btn.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.sidebar-server { display: flex; align-items: center; gap: 10px; padding: 8px; margin-bottom: 8px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.sidebar-server:hover { border-color: var(--border-strong); }
.sidebar-server .grow { flex: 1; min-width: 0; }
.sidebar-server .title { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-server .sub { font-size: 12px; color: var(--text-muted); }
.sidebar-server .icon { color: var(--text-subtle); }
@media (max-width: 960px) { .sidebar-server { display: none; } }

/* Serverlijst als kaarten */
.container.wide { max-width: 1040px; }
.server-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.server-card { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); transition: border-color .15s, box-shadow .15s, transform .15s; min-width: 0; }
a.server-card:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); box-shadow: var(--shadow); transform: translateY(-1px); }
.server-card.inactive { background: var(--bg-subtle); }
.server-card-body { min-width: 0; width: 100%; display: grid; gap: 6px; justify-items: start; }
.server-card-body .title { font-weight: 600; font-size: 15px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.server-card-cta { margin-top: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 500; color: var(--brand); }
.avatar.xl { width: 48px; height: 48px; border-radius: 12px; font-size: 18px; }

/* ---------- Openbare website ---------- */
.topbar.public { gap: 20px; }
.site-links { display: flex; gap: 4px; margin-left: 12px; }
.site-links a { padding: 6px 10px; border-radius: 6px; color: var(--text-muted); font-weight: 500; }
.site-links a:hover { color: var(--text); background: var(--bg-muted); }
.site-actions { display: flex; gap: 8px; align-items: center; }
.site { overflow-x: clip; }
.site-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.site-wrap.narrow { max-width: 760px; }
.btn.lg { height: 46px; padding: 0 20px; font-size: 15px; border-radius: 10px; }
.btn.light { background: #fff; color: #312e81; border-color: #fff; }
.btn.light:hover { background: #eef0ff; }

.hero { position: relative; padding: 88px 0 72px; background:
  radial-gradient(60% 70% at 85% 10%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 70%),
  radial-gradient(40% 50% at 0% 100%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 20px; font-size: 13px; font-weight: 500; color: var(--brand); background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent); }
.hero h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -.035em; font-weight: 700; margin: 20px 0 18px; }
.lead { font-size: 18px; line-height: 1.6; color: var(--text-muted); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-points { display: flex; gap: 20px; flex-wrap: wrap; list-style: none; padding: 0; margin: 24px 0 0; color: var(--text-muted); font-size: 14px; }
.hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.hero-points .icon { color: var(--success); }
.mock-window { border-radius: 14px; overflow: hidden; background: #1e1f22; border: 1px solid #2b2d31; box-shadow: 0 30px 60px -20px rgba(30, 27, 75, .45); transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #1e1f22; border-bottom: 1px solid #2b2d31; }
.mock-bar > span { width: 10px; height: 10px; border-radius: 50%; background: #3f4147; }
.mock-channel { margin-left: 10px; color: #b5bac1; font-size: 13px; font-weight: 600; }
.mock-body { border: 0; border-radius: 0; padding: 20px; }
.mock-body .dc-msg + .dc-msg { margin-top: 22px; }

.stats-band { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-subtle); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; padding-top: 28px; padding-bottom: 28px; }
.stats-grid b { display: block; font-size: 32px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stats-grid span { color: var(--text-muted); font-size: 14px; }

.site-section { padding: 88px 0; }
.site-section.alt { background: var(--bg-subtle); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.site-section.page-top { padding-top: 64px; }
.section-intro { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-intro.left { text-align: left; margin: 0 0 32px; }
.section-intro h1, .section-intro h2, .showcase h2, .cta-band h2, .legal h1 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.15; letter-spacing: -.03em; font-weight: 700; }
.section-intro p { color: var(--text-muted); font-size: 17px; line-height: 1.6; margin-top: 12px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { padding: 24px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); transition: border-color .15s, transform .15s, box-shadow .15s; }
.feature:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); transform: translateY(-2px); box-shadow: var(--shadow); }
.feature-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); margin-bottom: 16px; }
.feature-icon .icon { width: 20px; height: 20px; }
.feature h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.feature p { color: var(--text-muted); line-height: 1.6; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { position: relative; padding: 24px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.step-num { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 14px; }
.steps h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.steps p { color: var(--text-muted); line-height: 1.6; }

.showcase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.showcase .lead { margin: 14px 0 24px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check-list .icon { color: var(--brand); margin-top: 3px; }
.dash-mock { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); padding: 20px; display: grid; gap: 16px; }
.dash-mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dash-mock-kpis > div { border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.dash-mock-kpis span, .dash-mock-chart > span { display: block; font-size: 12px; color: var(--text-muted); }
.dash-mock-kpis b { font-size: 22px; letter-spacing: -.02em; }
.dash-mock-chart { border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.dash-mock-bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; margin-top: 10px; }
.dash-mock-bars i { flex: 1; background: linear-gradient(180deg, var(--brand), var(--brand-strong)); border-radius: 4px 4px 2px 2px; opacity: .9; }

.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 0 20px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 600; font-size: 15px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .15s; color: var(--text-muted); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { color: var(--text-muted); line-height: 1.65; padding-bottom: 18px; }

.cta-band { padding: 80px 0; text-align: center; color: #fff; background: linear-gradient(120deg, #6d6af8, #4f46e5 55%, #312e81); }
.cta-band p { opacity: .9; font-size: 17px; margin: 12px 0 28px; }

.cmd-group { font-size: 18px; font-weight: 600; margin: 36px 0 12px; }
.cmd-list { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); }
.cmd-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--border); }
.cmd-row:first-child { border-top: 0; }
.cmd-row code { justify-self: start; color: var(--brand); background: var(--brand-soft); border-color: transparent; font-size: 13px; }
.cmd-row span { color: var(--text-muted); }

.legal h1 { margin-bottom: 6px; }
.legal h2 { font-size: 18px; font-weight: 600; margin: 32px 0 8px; }
.legal p { color: var(--text-muted); line-height: 1.75; font-size: 15px; }

.site-footer { border-top: 1px solid var(--border); background: var(--bg-subtle); padding: 48px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-size: 13px; font-weight: 600; margin: 0 0 12px; }
.footer-grid a:not(.brand) { display: block; color: var(--text-muted); padding: 3px 0; }
.footer-grid a:not(.brand):hover { color: var(--text); }
.footer-grid .muted { margin-top: 10px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-subtle); font-size: 13px; }

@media (max-width: 960px) {
  .hero-grid, .showcase { grid-template-columns: 1fr; gap: 40px; }
  .mock-window { transform: none; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-links { display: none; }
}
@media (max-width: 640px) {
  .hero { padding: 56px 0 48px; }
  .feature-grid, .steps, .footer-grid { grid-template-columns: 1fr; }
  .stats-grid b { font-size: 24px; }
  .site-section { padding: 64px 0; }
  .cmd-row { grid-template-columns: 1fr; gap: 6px; }
  .hide-sm { display: none; }
  .topbar.public { gap: 8px; }
  .site-actions .btn.ghost { padding: 0 8px; }
}
body.reduce-motion .feature:hover, body.reduce-motion a.server-card:hover { transform: none; }

/* ============================================================
   v1.7: klikbare demo, "gemaakt voor jouw server", aandacht nodig, snel zoeken
   ============================================================ */

/* Klikbare demo op de homepage */
.demo-steps { display: flex; gap: 6px; justify-content: center; margin-bottom: 14px; flex-wrap: wrap; }
.demo-steps span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 20px; font-size: 12px; font-weight: 500; color: var(--text-muted); background: var(--surface); border: 1px solid var(--border); transition: all .2s; }
.demo-steps b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--bg-muted); font-size: 11px; }
.demo-steps .active { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 40%, transparent); background: var(--brand-soft); }
.demo-steps .active b { background: var(--brand); color: #fff; }
.demo-steps .done b { background: var(--success); color: #fff; }
.demo-body { position: relative; min-height: 360px; }
.demo-click { border: 0; font: inherit; font-weight: 500; cursor: pointer; transition: filter .12s, transform .12s; }
.demo-click:hover:not(:disabled) { filter: brightness(1.12); transform: translateY(-1px); }
.demo-click:disabled { opacity: .5; cursor: not-allowed; }
.step-0 .demo-click { animation: demo-glow 2.4s ease-in-out infinite; }
.demo-body > .dc-msg:only-child .demo-click { animation: demo-glow 2.4s ease-in-out infinite; }
@keyframes demo-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(88, 101, 242, 0); } 50% { box-shadow: 0 0 0 4px rgba(88, 101, 242, .35); } }
.demo-hint { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; font-size: 13px; font-weight: 500; color: var(--brand); }
.demo-modal { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .55); padding: 20px; }
.demo-modal-card { width: 100%; max-width: 340px; background: #313338; border-radius: 8px; padding: 18px; box-shadow: 0 12px 32px rgba(0, 0, 0, .45); }
.demo-modal-title { font-weight: 700; font-size: 16px; color: #f2f3f5; margin-bottom: 14px; }
.demo-modal-card label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; color: #b5bac1; margin-bottom: 8px; letter-spacing: .02em; }
.demo-input { min-height: 64px; background: #1e1f22; border-radius: 4px; padding: 10px; color: #dbdee1; font-size: 14px; }
.caret { display: inline-block; width: 1px; height: 16px; background: #dbdee1; vertical-align: -3px; margin-left: 1px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.demo-modal-foot { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 16px; }
.demo-link { background: none; border: 0; color: #dbdee1; font: inherit; cursor: pointer; padding: 6px 4px; }
.demo-link:hover { text-decoration: underline; }
.demo-staff { display: grid; place-items: center; background: #248046; color: #fff; font-weight: 700; }
.demo-close { margin: 14px 0 0 48px; }
.demo-dm { margin-top: 18px; padding: 12px; border-radius: 8px; background: #2b2d31; border: 1px solid #3f4147; }
.demo-dm-head { font-size: 12px; font-weight: 600; color: #b5bac1; margin-bottom: 10px; }
.demo-star.on { background: #f0b232; color: #1e1f22; }
.demo-thanks { margin: 12px 0 4px 48px; color: #57f287; font-weight: 600; }
.demo-restart { margin-left: 44px; color: #949cf7; }
.pop { animation: pop-in .35s ease-out both; }
@keyframes pop-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Gemaakt voor jouw server */
.use-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.use-card { padding: 24px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.use-emoji { font-size: 30px; line-height: 1; margin-bottom: 6px; }
.use-card h3 { font-size: 16px; font-weight: 600; }
.use-card p { color: var(--text-muted); line-height: 1.6; flex: 1; }
.use-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.use-tags span { font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 20px; background: var(--brand-soft); color: var(--brand); }

/* Zacht verschijnen tijdens het scrollen */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.feature-grid .reveal:nth-child(3n + 2), .use-grid .reveal:nth-child(4n + 2), .steps .reveal:nth-child(2) { transition-delay: .08s; }
.feature-grid .reveal:nth-child(3n + 3), .use-grid .reveal:nth-child(4n + 3), .steps .reveal:nth-child(3) { transition-delay: .16s; }
.use-grid .reveal:nth-child(4n + 4) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .pop, .demo-click, .caret { animation: none !important; } }
body.reduce-motion .reveal { opacity: 1; transform: none; transition: none; }
body.reduce-motion .pop, body.reduce-motion .demo-click { animation: none !important; }

@media (max-width: 960px) { .use-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .use-grid { grid-template-columns: 1fr; } .demo-steps span { padding-right: 8px; } .demo-body { min-height: 320px; } }

/* Overzicht: tellers en "Aandacht nodig" */
.pulse { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 8px; }
.pulse-tile { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.pulse-tile:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.pulse-tile b { display: block; font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pulse-tile span:not(.pulse-icon) { font-size: 12px; color: var(--text-muted); line-height: 1.3; display: block; }
.pulse-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--bg-muted); color: var(--text-muted); flex-shrink: 0; }
.pulse-tile.warn .pulse-icon { background: var(--warning-bg); color: var(--warning); }
.pulse-tile.brand .pulse-icon { background: var(--brand-soft); color: var(--brand); }
.attention-row { color: inherit; }
.attention-row:hover { background: var(--bg-subtle); }
.attention-num { font-size: 13px; color: var(--text-muted); width: 52px; flex-shrink: 0; }
.attention-badges { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.attention-badges .badge { margin-top: 0; }
.attention-wait { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-muted); white-space: nowrap; width: 72px; justify-content: flex-end; font-variant-numeric: tabular-nums; }
.badge.amber { background: var(--warning-bg); color: var(--warning); border-color: var(--warning-border); }
@media (max-width: 960px) { .pulse { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .attention-badges { display: none; } }

/* Snel zoeken */
.search-btn { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px 0 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-subtle); color: var(--text-muted); font: 13px var(--font); cursor: pointer; min-width: 220px; }
.search-btn:hover { border-color: var(--border-strong); color: var(--text); }
.search-btn kbd { margin-left: auto; }
kbd { font: 11px var(--mono); padding: 1px 6px; border-radius: 4px; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); }
@media (max-width: 760px) { .search-btn { min-width: 0; width: 34px; height: 34px; padding: 0; justify-content: center; } }
dialog.palette { width: min(600px, calc(100vw - 32px)); margin-top: 12vh; padding: 0; overflow: hidden; }
.palette-input { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--text-muted); }
.palette-input input { flex: 1; border: 0; outline: 0; background: transparent; font: 15px var(--font); color: var(--text); height: 28px; padding: 0; box-shadow: none !important; }
.palette-list { max-height: min(50vh, 420px); overflow-y: auto; padding: 6px; }
.palette-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 6px; background: transparent; color: var(--text); font: 14px var(--font); text-align: left; cursor: pointer; }
.palette-item .icon { color: var(--text-muted); }
.palette-item .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette-item.active, .palette-item:hover { background: var(--brand-soft); }
.palette-item.active .icon { color: var(--brand); }
.palette-hint { font-size: 12px; color: var(--text-subtle); white-space: nowrap; }
.palette-empty { padding: 20px; text-align: center; color: var(--text-muted); }
.palette-foot { display: flex; gap: 16px; padding: 8px 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-subtle); background: var(--bg-subtle); }
.palette-foot kbd { margin-right: 2px; }

.list.attention { margin-bottom: 28px; }

/* ============================================================
   v1.7: wizard, bord, snelle filters, selecteren, inzichten, handleiding, status
   ============================================================ */

/* Installatiewizard */
.wizard-banner { display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin-bottom: 20px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent); background: linear-gradient(120deg, var(--brand-soft), transparent); }
.wizard-banner .grow { flex: 1; min-width: 0; }
.wizard-banner b { display: block; font-size: 15px; }
.wizard-banner span:not(.wizard-banner-icon) { color: var(--text-muted); font-size: 13px; }
.wizard-banner-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--brand); color: #fff; flex-shrink: 0; }
.wizard-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 20px; }
.wizard-steps > div { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); font-weight: 500; font-size: 13px; }
.wizard-steps b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--bg-muted); font-size: 12px; flex-shrink: 0; }
.wizard-steps .active { border-color: color-mix(in srgb, var(--brand) 45%, transparent); color: var(--text); }
.wizard-steps .active b { background: var(--brand); color: #fff; }
.wizard-steps .done b { background: var(--success); color: #fff; }
.wizard .panel-body { padding: 28px; }
.wizard .panel-body > h2 { font-size: 20px; }
.wizard-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.wizard-type { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; background: var(--surface); transition: border-color .15s, background .15s; }
.wizard-type input { position: absolute; opacity: 0; pointer-events: none; }
.wizard-type:has(input:checked), .wizard-type.on { border-color: var(--brand); background: var(--brand-soft); }
.wizard-type div { min-width: 0; display: grid; }
.wizard-type div span { font-size: 12px; color: var(--text-muted); }
.wizard-emoji { font-size: 24px; line-height: 1; }
.wizard-tick { margin-left: auto; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--border-strong); color: transparent; flex-shrink: 0; }
.wizard-type:has(input:checked) .wizard-tick { background: var(--brand); border-color: var(--brand); color: #fff; }
.wizard-done { text-align: center; padding: 24px 0; }
.wizard-check { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--success-bg); color: var(--success); margin-bottom: 16px; }
.wizard-check .icon { width: 32px; height: 32px; }
.wizard-done h2 { font-size: 22px !important; margin-bottom: 6px; }
@media (max-width: 760px) { .wizard-steps { grid-template-columns: repeat(2, 1fr); } .wizard-banner { flex-wrap: wrap; } }

/* Ticketlijst: weergave, snelle filters, selecteren */
.view-toggle { margin-bottom: 0; }
.view-toggle button { display: inline-flex; align-items: center; gap: 6px; }
.page-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.quick-filters { display: flex; gap: 6px; flex-wrap: wrap; margin: -4px 0 16px; }
.quick { height: 28px; padding: 0 12px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); font: 500 12px var(--font); cursor: pointer; }
.quick:hover { color: var(--text); border-color: var(--border-strong); }
.quick.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.check-cell { width: 36px; padding-right: 0 !important; }
.check-cell input { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }
tr.selected td { background: var(--brand-soft); }
.bulk-bar { position: sticky; bottom: 16px; z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; padding: 10px 12px 10px 16px; border-radius: 12px; background: var(--text); color: var(--bg); box-shadow: var(--shadow); animation: toast-in .18s ease-out; }
.bulk-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bulk-bar select { height: 28px; width: auto; font-size: 12px; }
.bulk-bar .btn.ghost { color: var(--bg); }

/* Bord */
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.board-col { background: var(--bg-subtle); border: 1px solid var(--border); border-radius: 12px; padding: 10px; min-height: 200px; }
.board-col-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 4px 6px 10px; }
.board-col-head b { display: block; font-size: 14px; }
.board-col-head span:not(.count) { font-size: 12px; color: var(--text-muted); }
.board-col-head .count { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); }
.board-list { display: grid; gap: 8px; }
.board-card { display: grid; gap: 8px; padding: 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.board-card:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); box-shadow: var(--shadow); transform: translateY(-1px); }
.board-card.alert { border-left: 3px solid var(--danger); }
.board-card-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-muted); }
.board-card-reason { font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.board-card-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.board-card-badges:empty { display: none; }
.board-card-badges .badge, .board-card-badges .tags { margin: 0; }
.board-card-foot { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.board-card-foot .subtle { margin-left: auto; white-space: nowrap; }
.board-empty { text-align: center; color: var(--text-subtle); font-size: 13px; padding: 24px 0; }
@media (max-width: 960px) { .board { grid-template-columns: 1fr; } }

/* Inzichten op het overzicht */
.insights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.chart-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 18px; }
.chart-card h3 { font-size: 14px; font-weight: 600; }
.chart-card > p.muted { font-size: 12px; margin: 2px 0 14px; }
.chart-empty { color: var(--text-subtle); font-size: 13px; padding: 24px 0; text-align: center; }
.hbars { display: grid; gap: 10px; }
.hbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 10px; align-items: center; font-size: 13px; }
.hbar .bar { margin-top: 0; }
.hbar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1100px) { .insights { grid-template-columns: 1fr; } }

/* Telefoonmeldingen */
.push-status { font-size: 13px; }

/* Handleiding */
.docs-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: start; }
.docs-nav { position: sticky; top: 80px; display: grid; gap: 2px; }
.docs-nav-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-subtle); padding: 0 10px 8px; }
.docs-nav a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; color: var(--text-muted); font-weight: 500; }
.docs-nav a:hover { background: var(--bg-muted); color: var(--text); }
.docs-nav a.active { background: var(--brand-soft); color: var(--text); }
.docs-nav a.active .icon { color: var(--brand); }
.doc { max-width: 720px; }
.doc-kicker { color: var(--brand); font-weight: 600; font-size: 13px; margin-bottom: 8px; }
.doc h1 { font-size: clamp(28px, 3.2vw, 36px); letter-spacing: -.03em; line-height: 1.15; font-weight: 700; }
.doc > .lead { margin: 12px 0 8px; }
.doc h2 { font-size: 19px; font-weight: 600; margin: 32px 0 10px; }
.doc p { color: var(--text-muted); line-height: 1.75; font-size: 15px; }
.doc-steps { padding-left: 0; list-style: none; counter-reset: step; display: grid; gap: 10px; margin: 0; }
.doc-steps li { counter-increment: step; position: relative; padding: 10px 14px 10px 46px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); line-height: 1.6; }
.doc-steps li::before { content: counter(step); position: absolute; left: 12px; top: 10px; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 12px; display: grid; place-items: center; }
.doc-tip { display: flex; gap: 10px; align-items: flex-start; margin-top: 28px; padding: 14px 16px; border-radius: 10px; background: var(--brand-soft); color: var(--text); font-size: 14px; }
.doc-tip .icon { color: var(--brand); margin-top: 3px; }
.doc-next { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); display: grid; gap: 8px; }
.doc-next > span { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-subtle); }
.doc-next a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; font-weight: 500; }
.doc-next a:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); }
.doc-next a .icon:last-child { margin-left: auto; color: var(--text-subtle); }
@media (max-width: 860px) { .docs-layout { grid-template-columns: 1fr; gap: 24px; } .docs-nav { position: static; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }

/* Wat is er nieuw: tijdlijn */
.timeline { position: relative; display: grid; gap: 28px; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding: 20px 22px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.timeline-dot { position: absolute; left: -28px; top: 26px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--border-strong); }
.timeline-dot.latest { border-color: var(--brand); background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.timeline-head { display: flex; gap: 10px; align-items: center; font-size: 13px; }
.timeline-item h2 { font-size: 18px; font-weight: 600; margin: 10px 0 8px; }
.timeline-item ul { margin: 0; padding-left: 18px; color: var(--text-muted); line-height: 1.75; }
.timeline-item li b { color: var(--text); }

/* Status */
.status-banner { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-radius: 12px; font-size: 17px; }
.status-banner .icon { width: 22px; height: 22px; }
.status-banner.ok { background: var(--success-bg); color: var(--success); border: 1px solid color-mix(in srgb, var(--success) 30%, transparent); }
.status-banner.down { background: var(--danger-bg); color: var(--danger); border: 1px solid var(--danger-border); }
.status-list { margin-top: 16px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); }
.status-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-top: 1px solid var(--border); }
.status-row:first-child { border-top: 0; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }
.status-pill i { width: 9px; height: 9px; border-radius: 50%; }
.status-pill.ok { color: var(--success); }
.status-pill.ok i { background: var(--success); box-shadow: 0 0 0 4px var(--success-bg); }
.status-pill.down { color: var(--danger); }
.status-pill.down i { background: var(--danger); }
.status-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.status-stats > div { border: 1px solid var(--border); border-radius: 12px; padding: 14px; background: var(--surface); }
.status-stats span { display: block; font-size: 12px; color: var(--text-muted); }
.status-stats b { font-size: 20px; letter-spacing: -.02em; }
.status-checked { margin-top: 14px; font-size: 13px; }
@media (max-width: 640px) { .status-stats { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   v1.8: inklapbaar menu, instellingenoverzicht, meldingenbel, inbox, ideeën, contact, uptime
   ============================================================ */

/* Menu: groepen inklappen */
.nav-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; border: 0; background: none; cursor: pointer; font: inherit; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--text-subtle); padding: 16px 10px 6px; }
.nav-toggle:hover { color: var(--text-muted); }
.nav-toggle .icon { transition: transform .15s; }
.nav-toggle[aria-expanded="false"] .icon { transform: rotate(-90deg); }
.nav-group.collapsed { display: none; }

/* Alle instellingen */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.hub-card { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.hub-card:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); box-shadow: var(--shadow); transform: translateY(-1px); }
.hub-card .feature-icon { margin: 0; flex-shrink: 0; }
.hub-card .grow { flex: 1; min-width: 0; display: grid; gap: 2px; }
.hub-card .grow span { font-size: 13px; color: var(--text-muted); line-height: 1.45; }
.hub-card em { font-style: normal; font-size: 12px; color: var(--text-subtle); margin-top: 4px; }
.hub-card em.todo { color: var(--warning); }

/* Meldingenbel */
.bell-btn { position: relative; }
.bell-count { position: absolute; top: 3px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #ef4444; color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); }
.bell-menu { position: fixed; z-index: 60; width: min(380px, calc(100vw - 24px)); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; animation: toast-in .15s ease-out; }
.bell-head { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 13px; }
.bell-list { max-height: min(60vh, 420px); overflow-y: auto; }
.bell-item { display: flex; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--border); font-size: 13px; color: inherit; }
.bell-item:first-child { border-top: 0; }
.bell-item:hover { background: var(--bg-subtle); }
.bell-item.unread { background: var(--brand-soft); }
.bell-item .grow { flex: 1; min-width: 0; display: grid; gap: 2px; }
.bell-item .subtle { font-size: 12px; }
.bell-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--bg-muted); color: var(--text-muted); flex-shrink: 0; }
.bell-icon.opened { background: var(--brand-soft); color: var(--brand); }
.bell-icon.escalated, .bell-icon.sla { background: var(--danger-bg); color: var(--danger); }
.bell-icon.rating, .bell-icon.solved { background: var(--success-bg); color: var(--success); }
.bell-empty { padding: 24px; text-align: center; color: var(--text-muted); font-size: 13px; }

/* Inbox */
.quick-count { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 8px; background: var(--bg-muted); color: var(--text-muted); font-size: 11px; }
.quick.active .quick-count { background: rgba(255, 255, 255, .25); color: #fff; }
.badge.brand { background: var(--brand-soft); color: var(--brand); border-color: color-mix(in srgb, var(--brand) 30%, transparent); margin-top: 0; }

/* Ideeënbord */
.idea-tabs { margin-bottom: 20px; }
.idea-form { display: grid; gap: 10px; padding: 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); margin-bottom: 20px; }
.idea-form h2 { font-size: 17px; font-weight: 600; }
.idea-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; }
.idea-form textarea { min-height: 90px; }
.idea-form-foot { display: flex; justify-content: flex-end; }
.idea-login { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 18px; border: 1px dashed var(--border-strong); border-radius: 12px; margin-bottom: 20px; color: var(--text-muted); }
.ideas { display: grid; gap: 10px; }
.idea { display: flex; gap: 14px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.vote { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 54px; min-height: 58px; flex-shrink: 0; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-subtle); color: var(--text-muted); cursor: pointer; font: inherit; transition: all .15s; }
.vote b { font-size: 16px; color: var(--text); }
.vote:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.vote.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.vote.on b { color: #fff; }
.vote:disabled { cursor: default; }
.idea-body { flex: 1; min-width: 0; }
.idea-head { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; }
.idea-head h3 { font-size: 15px; font-weight: 600; line-height: 1.4; }
.idea-body p { color: var(--text-muted); margin-top: 6px; line-height: 1.6; white-space: pre-line; }
.idea-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; font-size: 12px; color: var(--text-subtle); }
.idea-meta select { height: 26px; width: auto; font-size: 12px; }
.link-btn { border: 0; background: none; color: var(--danger); cursor: pointer; font: inherit; padding: 0; }
.idea-status { flex-shrink: 0; font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 10px; background: var(--bg-muted); color: var(--text-muted); white-space: nowrap; }
.idea-status.planned { background: var(--brand-soft); color: var(--brand); }
.idea-status.progress { background: var(--warning-bg); color: var(--warning); }
.idea-status.done { background: var(--success-bg); color: var(--success); }
.idea-status.declined { background: var(--danger-bg); color: var(--danger); }
.roadmap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.roadmap-col { background: var(--bg-subtle); border: 1px solid var(--border); border-radius: 12px; padding: 10px; display: grid; gap: 8px; align-content: start; }
.roadmap-head { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 4px; font-size: 12px; color: var(--text-muted); }
.roadmap-card { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; }
.roadmap-card span { display: inline-flex; align-items: center; gap: 2px; color: var(--text-muted); font-size: 12px; white-space: nowrap; }
@media (max-width: 760px) { .roadmap { grid-template-columns: 1fr; } }

/* Contact */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 28px; }
.contact-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: inherit; transition: border-color .15s, transform .15s, box-shadow .15s; }
.contact-card:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); transform: translateY(-2px); box-shadow: var(--shadow); }
.contact-card .feature-icon { margin-bottom: 8px; }
.contact-card h3 { font-size: 15px; font-weight: 600; }
.contact-card p { color: var(--text-muted); font-size: 13px; line-height: 1.55; flex: 1; }
.contact-cta { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; color: var(--brand); font-weight: 500; font-size: 13px; }
.contact-form-wrap > h2 { font-size: 17px; font-weight: 600; margin-bottom: 12px; }

/* Gebruikt door */
.showcase-strip { padding: 48px 0 8px; }
.showcase-title { text-align: center; color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }
.showcase-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.showcase-card { display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border: 1px solid var(--border); border-radius: 40px; background: var(--surface); }
.showcase-card img, .showcase-fallback { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.showcase-fallback { display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.showcase-card div { display: grid; line-height: 1.25; }
.showcase-card b { font-size: 14px; }
.showcase-card span { font-size: 12px; color: var(--text-muted); }

/* Uptime-balkjes */
.uptime { margin-top: 16px; border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; background: var(--surface); }
.uptime-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; font-size: 14px; }
.uptime-head span { color: var(--success); font-weight: 600; font-variant-numeric: tabular-nums; }
.uptime-bars { display: grid; grid-template-columns: repeat(30, 1fr); gap: 3px; height: 34px; }
.uptime-bars i { border-radius: 3px; background: var(--border); }
.uptime-bars i.ok { background: var(--success); }
.uptime-bars i.warn { background: #f59e0b; }
.uptime-bars i.down { background: var(--danger); }
.uptime-foot { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--text-subtle); }

/* ---------- v1.9: sollicitaties, DM-tickets, FAQ, hulppagina en eigenaarspaneel ---------- */
.btn.success { background: var(--success); border-color: var(--success); color: #fff; }
.btn.success:hover { opacity: .9; }
.badge.green { background: var(--success-bg); color: var(--success); border-color: color-mix(in srgb, var(--success) 35%, transparent); }
.badge .icon { width: 12px; height: 12px; vertical-align: -2px; }
.composer-note { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--brand); margin-bottom: 8px; }
.input-prefix { display: flex; align-items: stretch; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); overflow: hidden; max-width: 520px; }
.input-prefix span { display: flex; align-items: center; padding: 0 10px; background: var(--bg-subtle); color: var(--text-muted); font-size: 13px; border-right: 1px solid var(--border); white-space: nowrap; }
.input-prefix input { border: 0; border-radius: 0; flex: 1; min-width: 0; }
.input-prefix:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

.faq-row { gap: 10px; padding: 10px 16px 10px 8px; }
.faq-order { display: flex; flex-direction: column; gap: 2px; }
.faq-order .btn { height: 22px; width: 26px; }
.faq-link { color: inherit; text-decoration: none; }
.faq-views { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }

.owner-grid { margin-top: 0; }
.owner-grid .panel-body h2 .icon { vertical-align: -3px; }
.owner-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.owner-head input { max-width: 260px; height: 32px; font-size: 13px; }
.owner-table td, .owner-table th { white-space: nowrap; }
.owner-table tbody tr { cursor: default; }
.owner-errors { display: grid; gap: 8px; }
.owner-error { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 10px 14px; }
.owner-error-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.owner-error-head .badge { margin-top: 0; }
.owner-error pre { margin: 0; font-size: 12px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; color: var(--text-muted); max-height: 160px; overflow: auto; }

/* Openbare hulppagina */
.help-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.help-head h1 { font-size: 34px; letter-spacing: -.03em; margin: 0; }
.help-head p { margin: 4px 0 0; }
.help-icon { width: 64px; height: 64px; border-radius: 18px; flex: none; object-fit: cover; display: grid; place-items: center; font-size: 26px; font-weight: 700; color: #fff; background: var(--help, var(--brand)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--help, var(--brand)) 18%, transparent); }
.help-intro { font-size: 16px; line-height: 1.65; color: var(--text-muted); margin: 0 0 24px; }
.help-search { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 0 14px; margin-bottom: 16px; }
.help-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.help-search .icon { color: var(--text-muted); flex: none; }
.help-search input { border: 0; background: transparent; height: 48px; font-size: 15px; padding: 0; box-shadow: none !important; }
.help-list { display: grid; gap: 10px; }
.help-answer { color: var(--text-muted); line-height: 1.7; padding-bottom: 18px; }
.help-answer code { background: var(--bg-muted); padding: 1px 5px; border-radius: 4px; font-size: 13px; }
.help-none { margin-top: 12px; }
.help-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 32px; padding: 22px 24px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--help, var(--brand)) 30%, var(--border)); background: color-mix(in srgb, var(--help, var(--brand)) 7%, var(--surface)); }
.help-cta h2 { font-size: 18px; margin: 0 0 4px; }
.help-cta p { margin: 0; color: var(--text-muted); }
.help-cta .btn { flex: none; }
.help-missing { text-align: center; padding: 60px 0; display: grid; justify-items: center; gap: 14px; }
.help-missing .icon { width: 40px; height: 40px; color: var(--text-muted); }
.help-missing h1 { font-size: 22px; }
@media (max-width: 640px) {
  .help-head h1 { font-size: 26px; }
  .help-icon { width: 52px; height: 52px; border-radius: 14px; }
  .help-cta { flex-direction: column; align-items: flex-start; }
  .owner-head { flex-direction: column; align-items: flex-start; }
  .owner-head input { max-width: none; width: 100%; }
}
