/* Qshare: huisstijl van qastan.be (Poppins, navy vlakken, oranje acties) */
@font-face { font-family: Poppins; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/poppins-400.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/poppins-500.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/poppins-600.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/poppins-700.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-style: italic; font-weight: 700; font-display: swap; src: url(fonts/poppins-700-italic.woff2) format('woff2'); }

:root {
  --navy-950: #0a1628;
  --navy-800: #13284a;
  --navy: #1e4882;
  --puffin: #07688e;
  --sky: #26a7df;
  --orange: #eb7a1e;
  --orange-hover: #d96c12;
  --orange-soft: #fdf1e6;
  --bg: #f2f4f7;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --line: #dde1e7;
  --line-strong: #c3c9d2;
  --text: #404040;
  --text-2: #5f6773;
  --heading: #0a1628;
  --ok: #1a7f4e;
  --ok-soft: #e7f5ee;
  --warn: #9a5b00;
  --warn-soft: #fff6e5;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --radius: 4px;
  --radius-card: 10px;
  --shadow: 0 1px 2px rgba(10, 22, 40, .06), 0 8px 24px rgba(10, 22, 40, .08);
  --mono: ui-monospace, 'Cascadia Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Poppins, 'Segoe UI', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
h1, h2, h3 { color: var(--heading); font-weight: 700; line-height: 1.2; margin: 0; }
a { color: var(--puffin); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

/* Kop en heldenvlak */
.topbar { background: var(--navy-950); color: #fff; }
.topbar-inner { max-width: 1120px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; }
.brand img { height: 34px; width: auto; display: block; }
.brand-divider { width: 1px; height: 26px; background: rgba(255, 255, 255, .3); }
.brand-name { font-weight: 600; font-size: 15px; letter-spacing: .2px; }
.topbar-link { color: rgba(255, 255, 255, .85); text-decoration: none; font-size: 14px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 7px; padding: 5px 14px; }
.topbar-link:hover { color: #fff; border-color: #fff; }

.hero { background: linear-gradient(180deg, var(--navy-950) 0%, var(--navy-800) 100%); color: #fff; padding: 34px 20px 92px; }
.hero-inner { max-width: 1120px; margin: 0 auto; }
.hero h1 { color: #fff; font-size: clamp(26px, 4.2vw, 40px); }
.hero h1 em { color: var(--orange); font-style: italic; }
.hero p { margin: 10px 0 0; color: rgba(255, 255, 255, .8); max-width: 640px; font-size: 16px; }
.hero.compact { padding-bottom: 80px; }

main { flex: 1; width: 100%; max-width: 1120px; margin: -64px auto 0; padding: 0 20px 48px; }
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 920px) { .grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }

.card { background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: 24px; }
.card + .card { margin-top: 20px; }
.grid > .card + .card { margin-top: 0; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.card-head h2 { font-size: 20px; }
.card-head .step { font-size: 13px; color: var(--text-2); }
.narrow { max-width: 640px; margin-left: auto; margin-right: auto; }

/* Knoppen */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: var(--radius); padding: 11px 20px;
  font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; line-height: 1.2;
  transition: background-color .15s, border-color .15s, color .15s;
  min-height: 44px;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-hover); }
.btn-secondary { background: var(--surface); color: var(--heading); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--navy); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--puffin); padding-left: 10px; padding-right: 10px; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: transparent; color: var(--danger); border-color: transparent; }
.btn-danger:hover { background: var(--danger-soft); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn.is-done { background: var(--ok); color: #fff; border-color: var(--ok); }

/* Generator */
.pw-out {
  display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 6px 6px 6px 14px; margin-bottom: 10px;
}
.pw-out output {
  flex: 1; min-width: 0; font-family: var(--mono); font-size: 20px; color: var(--heading);
  overflow-wrap: break-word; padding: 8px 0; letter-spacing: .3px;
}
.pw-out output .d { color: var(--puffin); }
.pw-out output .s { color: var(--orange-hover); }
.icon-btn {
  flex: none; width: 44px; height: 44px; border-radius: var(--radius); border: 1px solid transparent;
  background: transparent; color: var(--navy); cursor: pointer; display: inline-grid; place-items: center;
}
.icon-btn:hover { background: #e8ecf2; }
.icon-btn svg { width: 20px; height: 20px; }

.strength { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text-2); margin-bottom: 18px; }
.strength-bar { flex: 1; height: 6px; background: #e6e9ee; border-radius: 3px; overflow: hidden; }
.strength-bar span { display: block; height: 100%; width: 0; background: var(--danger); transition: width .25s, background-color .25s; }
.strength[data-level="2"] .strength-bar span { background: #d08a00; }
.strength[data-level="3"] .strength-bar span { background: var(--ok); }
.strength[data-level="4"] .strength-bar span { background: var(--puffin); }
.strength strong { color: var(--heading); font-weight: 600; }

.segmented { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 3px; margin-bottom: 16px; }
.segmented button { border: 0; background: transparent; padding: 8px 6px; border-radius: 4px; cursor: pointer; font-size: 14px; color: var(--text-2); font-weight: 500; min-height: 40px; }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--heading); box-shadow: 0 1px 3px rgba(10, 22, 40, .15); font-weight: 600; }
.mode-hint { font-size: 13px; color: var(--text-2); margin: -6px 0 14px; }

.opts { display: grid; gap: 14px; }
.opt-range label { display: flex; justify-content: space-between; font-size: 14px; font-weight: 500; color: var(--heading); margin-bottom: 6px; }
.field > label { display: block; font-size: 14px; font-weight: 500; color: var(--heading); margin-bottom: 6px; }
.opt-range output { font-weight: 600; color: var(--puffin); }
input[type="range"] { width: 100%; accent-color: var(--orange); height: 28px; margin: 0; }
.toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 6px 12px; font-size: 13px; cursor: pointer; user-select: none; background: var(--surface); min-height: 36px;
}
.chip input:checked + span { border-color: var(--navy); background: #eaf0f8; color: var(--navy); font-weight: 500; }
.chip input:checked + span::before { content: '✓'; font-weight: 700; }
.chip input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }

/* Formulier */
.field { margin-bottom: 16px; }
.field .hint { font-size: 13px; color: var(--text-2); margin-top: 6px; }
input[type="text"], input[type="email"], input[type="password"], select, textarea {
  width: 100%; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface);
  padding: 10px 12px; font-size: 15px; min-height: 44px;
}
textarea { resize: vertical; min-height: 96px; font-family: var(--mono); font-size: 15px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(38, 167, 223, .25); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.input-group { display: flex; gap: 8px; }
.input-group > input { flex: 1; min-width: 0; }

.dropzone {
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius-card); padding: 16px; text-align: center;
  color: var(--text-2); font-size: 14px; background: var(--surface-2); cursor: pointer; transition: border-color .15s, background-color .15s;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--orange); background: var(--orange-soft); }
.dropzone strong { color: var(--puffin); font-weight: 600; }
.dropzone small { display: block; margin-top: 2px; font-size: 12px; }
.files { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.files .btn { padding: 8px 14px; min-height: 40px; font-size: 14px; flex: none; }
.files li { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 6px 6px 12px; background: var(--surface); font-size: 14px; }
.files li > svg { width: 18px; height: 18px; color: var(--puffin); flex: none; }
.files .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--heading); }
.files .size { color: var(--text-2); font-size: 13px; white-space: nowrap; }
.files .icon-btn { width: 36px; height: 36px; }

details.more { border-top: 1px solid var(--line); margin: 4px 0 16px; padding-top: 12px; }
details.more summary { cursor: pointer; font-weight: 500; color: var(--puffin); font-size: 14px; list-style: none; display: flex; align-items: center; gap: 6px; min-height: 32px; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: '›'; font-size: 18px; transition: transform .15s; display: inline-block; }
details.more[open] summary::before { transform: rotate(90deg); }
details.more .inner { padding-top: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--orange); flex: none; }

/* Meldingen */
.notice { border-radius: var(--radius); padding: 12px 14px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; }
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.notice.info { background: #eaf4fa; color: #0b4a66; }
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.notice.error { background: var(--danger-soft); color: var(--danger); }
.notice.ok { background: var(--ok-soft); color: var(--ok); }
.notice p { margin: 0; }
.notice p + p { margin-top: 4px; }

.progress { height: 6px; background: #e6e9ee; border-radius: 3px; overflow: hidden; margin: 10px 0 4px; }
.progress span { display: block; height: 100%; width: 0; background: var(--orange); transition: width .2s; }
.progress-label { font-size: 13px; color: var(--text-2); }

/* Resultaat */
.result-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.result-head .badge { width: 40px; height: 40px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; flex: none; }
.result-head .badge svg { width: 22px; height: 22px; }
.link-box { font-family: var(--mono); font-size: 14px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; padding: 0; list-style: none; }
.facts li { background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 13px; color: var(--text); }
.divider { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.section-title { font-size: 15px; font-weight: 600; color: var(--heading); margin: 0 0 10px; }
.status-line { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); flex: none; }
.dot.on { background: var(--ok); }

/* Recent */
.recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.recent li { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 8px 8px 12px; font-size: 14px; }
.recent .what { flex: 1; min-width: 0; }
.recent .what strong { display: block; color: var(--heading); font-weight: 500; }
.recent .what span { font-size: 12.5px; color: var(--text-2); }

/* Uitleg */
.how { margin-top: 20px; }
.how ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .how ol { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }
.how li { text-align: center; }
.how svg { width: 132px; height: auto; display: block; margin: 0 auto 10px; }
.how h3 { font-size: 16px; margin-bottom: 6px; }
.how p { margin: 0 auto; font-size: 14px; color: var(--text-2); max-width: 300px; }

/* Inhoud bekijken */
.secret {
  font-family: var(--mono); font-size: 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; white-space: pre-wrap; word-break: break-word; color: var(--heading); max-height: 50vh; overflow: auto; margin: 0 0 10px;
}
.secret.is-hidden { filter: blur(7px); user-select: none; }
.meta-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 6px; font-size: 14px; }
.meta-list li { display: flex; gap: 10px; align-items: center; }
.meta-list svg { width: 18px; height: 18px; color: var(--puffin); flex: none; }
.big-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #eaf0f8; color: var(--navy); margin-bottom: 14px; }
.big-icon svg { width: 28px; height: 28px; }
.big-icon.bad { background: var(--danger-soft); color: var(--danger); }

/* Beheer */
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin-bottom: 20px; }
@media (min-width: 760px) { .kpis { grid-template-columns: repeat(6, 1fr); } }
.kpi { background: var(--surface); border-radius: var(--radius-card); padding: 14px 16px; box-shadow: var(--shadow); }
.kpi span { display: block; font-size: 12.5px; color: var(--text-2); }
.kpi strong { font-size: 22px; color: var(--heading); font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
th { text-align: left; font-weight: 600; color: var(--text-2); font-size: 12.5px; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
td.mono { font-family: var(--mono); font-size: 13px; }
.tag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); margin-right: 4px; }
.tag.orange { background: var(--orange-soft); border-color: #f5c9a0; color: #8a4508; }
.settings { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: 14px; margin: 0; }
.settings dt { color: var(--text-2); }
.settings dd { margin: 0; color: var(--heading); word-break: break-word; }

.site-footer { padding: 8px 20px 40px; }
.footer-inner {
  max-width: 1080px; margin: 0 auto; padding-top: 32px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
}
.footer-logo img { height: 64px; width: auto; display: block; }
.site-footer p { margin: 0; font-size: 13px; color: var(--text-2); }
.site-footer p a { color: var(--puffin); font-weight: 500; text-decoration: none; }
.site-footer p a:hover { text-decoration: underline; }

@media (max-width: 520px) {
  .card { padding: 18px; }
  .hero { padding: 24px 16px 84px; }
  main { padding: 0 12px 32px; }
  .topbar-inner { padding: 12px 16px; }
  .brand img { height: 28px; }
  .brand-name { font-size: 14px; }
  .topbar-link { display: none; }
  .hero p { font-size: 15px; }
  .pw-out output { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Kleine hulpklassen (geen inline stijlen: de CSP laat ze niet toe) */
.mb-lg { margin-bottom: 22px; }
.m-0 { margin: 0; }
.mt-sm { margin-top: 10px; }
.mt-card { margin-top: 20px; }
.optional { font-weight: 400; color: var(--text-2); }
.h-md { font-size: 20px; }
.h-sm { font-size: 17px; }
.between { justify-content: space-between; }
.note { font-size: 13px; color: var(--text-2); margin: 10px 0 0; }
.center { text-align: center; }
.btn-reset { background: transparent; cursor: pointer; font: inherit; }
.field > label.check { display: flex; font-weight: 400; }
.hero.centered .hero-inner { text-align: center; }
.center .big-icon { margin-left: auto; margin-right: auto; }

/* Beheer: aanmelden */
.topbar-user { display: flex; align-items: center; gap: 14px; min-width: 0; }
.topbar-name { color: rgba(255, 255, 255, .85); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.login-card { max-width: 440px; text-align: center; padding: 36px 32px 32px; }
.login-card .big-icon { margin: 0 auto 16px; }
.login-text { margin: 8px 0 22px; color: var(--text-2); }
.login-card form { text-align: left; }
.btn-ms { width: 100%; background: var(--surface); color: #262626; border-color: #8c8c8c; font-weight: 600; gap: 12px; }
.btn-ms:hover { background: #f3f3f3; }
.btn-ms svg { width: 20px; height: 20px; }
.ms-r { fill: #f25022; } .ms-g { fill: #7fba00; } .ms-b { fill: #00a4ef; } .ms-y { fill: #ffb900; }

/* Beheer: overzicht */
.card-head.wrap { flex-wrap: wrap; align-items: center; }
.segmented.periods { grid-template-columns: repeat(4, auto); margin: 0; }
.segmented.periods button { padding: 6px 14px; min-height: 36px; font-size: 13.5px; }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 26px; }
@media (min-width: 860px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px 15px; border-top: 3px solid var(--navy); background: var(--surface); }
.stat.good { border-top-color: var(--ok); }
.stat.warn { border-top-color: var(--orange); }
.stat-label { display: block; font-size: 13px; color: var(--text-2); font-weight: 500; }
.stat-value { display: block; font-size: 30px; line-height: 1.15; margin: 4px 0 2px; color: var(--heading); font-variant-numeric: tabular-nums; }
.stat-sub { display: block; font-size: 12.5px; color: var(--text-2); line-height: 1.4; }
.h-xs { font-size: 14px; font-weight: 600; }
.chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin-bottom: 8px; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; font-size: 13px; color: var(--text-2); }
.legend li { display: flex; align-items: center; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.dot.links { background: var(--navy); }
.dot.opened { background: var(--orange); }
.dot.visitors { background: var(--sky); height: 3px; border-radius: 2px; }
.chart svg { display: block; width: 100%; height: 200px; overflow: visible; }
.chart-scale, .chart-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.chart-scale { margin-bottom: 4px; }
.chart-axis { margin-top: 6px; }
.grid-line { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 3 4; }
.base-line { stroke: var(--line-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.hover-zone { fill: transparent; }
g:hover > .hover-zone { fill: rgba(30, 72, 130, .06); }
.bar-links { fill: var(--navy); }
.bar-opened { fill: var(--orange); }
.line-visitors { fill: none; stroke: var(--sky); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }

/* Beheer: deellinks */
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px; padding: 5px 14px; font-size: 13.5px; cursor: pointer; color: var(--text-2); min-height: 34px; }
.filter:hover { border-color: var(--navy); color: var(--navy); }
.filter[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 500; }
table.links td { padding-top: 11px; padding-bottom: 11px; }
.badge { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); border-color: #b9e0cb; }
.badge.warn { background: var(--orange-soft); color: #8a4508; border-color: #f5c9a0; }
.badge.bad { background: var(--danger-soft); color: var(--danger); border-color: #f3c0bb; }
.cell-sub { display: block; font-size: 12.5px; color: var(--text-2); margin-top: 2px; white-space: nowrap; }
.warn-text { color: var(--danger); }
td.right { text-align: right; }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: 13.5px; }
.empty { color: var(--text-2); font-size: 14px; margin: 14px 0 0; }

/* Beheer: systeem */
.sys { display: grid; gap: 12px 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 8px; }
@media (min-width: 860px) { .sys { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sys-item span { display: block; font-size: 12.5px; color: var(--text-2); }
.sys-item strong { color: var(--heading); font-weight: 600; font-size: 15px; }
details.more { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; }
details.more summary { cursor: pointer; font-weight: 600; color: var(--heading); font-size: 15px; }
details.more[open] summary { margin-bottom: 12px; }
@media (max-width: 520px) {
  .topbar-name { display: none; }
  .topbar-user .topbar-link { display: inline-block; }
  .segmented.periods { width: 100%; grid-template-columns: repeat(4, 1fr); }
  .segmented.periods button { padding: 6px 4px; }
  .stat-value { font-size: 26px; }
  .login-card { padding: 28px 20px 24px; }
}

/* Deellinks op een smal scherm: één kaartje per link */
@media (max-width: 720px) {
  table.links thead { display: none; }
  table.links, table.links tbody { display: block; }
  table.links tr {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; padding: 14px 0;
    border-bottom: 1px solid var(--line);
    grid-template-areas: "ref status" "date status" "content seen" "sent action";
  }
  table.links td { border: 0; padding: 0; }
  .c-ref { grid-area: ref; font-weight: 600; color: var(--heading); }
  .c-date { grid-area: date; font-size: 13px; color: var(--text-2); }
  .c-content { grid-area: content; }
  .c-sent { grid-area: sent; font-size: 13px; color: var(--text-2); }
  .c-status { grid-area: status; text-align: right; }
  .c-seen { grid-area: seen; text-align: right; font-size: 13px; }
  .c-action { grid-area: action; text-align: right; }
  .c-status .cell-sub, .c-seen .cell-sub { white-space: normal; }
}

/* Beheer: koppelingen */
.integrations { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .integrations { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.integration { border: 1px solid var(--line); border-radius: 8px; padding: 18px 18px 6px; }
.int-head { display: flex; align-items: center; gap: 12px; }
.int-logo { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.int-logo.storage { background: #eaf0f8; color: var(--navy); }
.int-logo.storage svg { width: 20px; height: 20px; }
.int-logo.ms { background: var(--surface-2); border: 1px solid var(--line); }
.int-logo.ms svg { width: 20px; height: 20px; }
.int-title { flex: 1; min-width: 0; }
.int-title h3 { font-size: 16px; }
.int-title p { margin: 1px 0 0; font-size: 13px; color: var(--text-2); }
.pill { font-size: 12.5px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); border-color: #b9e0cb; }
.pill.bad { background: var(--danger-soft); color: var(--danger); border-color: #f3c0bb; }
.int-status { font-size: 14px; margin: 12px 0 0; color: var(--text); }
.int-form { border-top: 1px solid var(--line); padding: 12px 0; margin-top: 14px; }
.int-form summary { cursor: pointer; font-weight: 600; color: var(--puffin); font-size: 14px; }
.int-form[open] summary { margin-bottom: 14px; }
.int-form .btn-row { margin-bottom: 8px; }

/* Knop naar het beheer (alleen zichtbaar vanaf het beheernetwerk) */
.topbar-nav { display: flex; align-items: center; gap: 10px; }
.topbar-link.admin-link { display: inline-flex; align-items: center; gap: 7px; background: var(--orange); border-color: var(--orange); color: #fff; font-weight: 600; }
.topbar-link.admin-link:hover { background: var(--orange-hover); border-color: var(--orange-hover); color: #fff; }
.topbar-link.admin-link svg { width: 16px; height: 16px; }
.topbar-link.admin-link[hidden] { display: none; }
@media (max-width: 520px) { .topbar-link.admin-link { display: inline-flex; } .topbar-link.admin-link[hidden] { display: none; } }
