/* Open Sans (huisstijl ZOËZO), zelf gehost: geen verzoek naar een externe partij. Licentie: /fonts/OFL.txt */
@font-face { font-family: "Open Sans"; src: url("/fonts/opensans.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("/fonts/opensans-italic.woff2") format("woff2"); font-weight: 300 800; font-style: italic; font-display: swap; }

:root {
  --bg: #f4f5f2;
  --surface: #ffffff;
  --ink: #16201d;
  --muted: #5d6965;
  --line: #dde2dd;
  --accent: #0e5c4a;
  --accent-ink: #ffffff;
  --accent-soft: #e3efe9;
  --danger: #a3342a;
  --danger-soft: #f8e6e3;
  --warn-soft: #fbf3dc;
  --radius: 10px;
  --font: "Open Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 720px; margin: 0 auto; padding: 32px 20px 64px; }
.wrap.narrow { max-width: 560px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -0.01em; margin-bottom: 40px; }
.brand-link { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
/* Logo: slot met een envelop als slotkast (zie /logo.svg). */
.logo { width: 28px; height: 28px; flex: none; background: url("/logo.svg") center / contain no-repeat; }
.tag { font-size: 12px; font-weight: 500; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 1px 8px; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 12px; text-wrap: balance; }
h1 { font-size: clamp(26px, 4vw, 34px); font-weight: 700; }
h2 { font-size: 20px; font-weight: 650; }
h3 { font-size: 16px; }
p { margin: 0 0 12px; }
.intro { margin-bottom: 28px; }
.lead { font-size: 18px; color: var(--muted); max-width: 60ch; }
.eyebrow { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 6px; }
.muted { color: var(--muted); }
.small { font-size: 14px; margin-top: 20px; }
code { font-family: var(--mono); font-size: 0.95em; background: var(--accent-soft); padding: 2px 6px; border-radius: 4px; user-select: all; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 1px 2px rgba(22, 32, 29, 0.04);
}
.card pre { white-space: pre-wrap; word-break: break-word; font-family: var(--mono); font-size: 14px; margin: 0; }

.field { display: block; margin-bottom: 18px; }
.field > span { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field > span em { font-style: normal; font-weight: 400; color: var(--muted); margin-left: 4px; }
.field small { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; line-height: 1.45; }

input:not([type=checkbox]):not([type=file]), select, textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 140px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[readonly] { background: var(--bg); font-family: var(--mono); font-size: 13px; }
input.code { font-family: var(--mono); font-size: 24px; letter-spacing: 0.4em; max-width: 220px; text-align: center; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } .card { padding: 20px; } }
.inline { display: flex; gap: 8px; }
.inline input { flex: 1; min-width: 0; }

.drop {
  display: flex; align-items: center; justify-content: center; text-align: center;
  border: 1.5px dashed var(--line); border-radius: 8px; padding: 22px; color: var(--muted);
  cursor: pointer; transition: border-color .15s, background .15s;
}
.drop strong { color: var(--accent); }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.files { list-style: none; margin: 10px 0 0; padding: 0; }
.files li {
  display: flex; align-items: center; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid var(--line); font-size: 15px;
}
.files li > :first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files a { color: var(--accent); font-weight: 600; }

.options { border: 0; border-top: 1px solid var(--line); margin: 24px 0 0; padding: 20px 0 0; }
.options legend { font-weight: 700; font-size: 15px; padding: 0 8px 0 0; }
.checks { display: flex; flex-direction: column; gap: 8px; padding-top: 28px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.note { font-size: 14px; color: var(--muted); background: var(--bg); border-radius: 8px; padding: 10px 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 600; font-size: 15px;
  border-radius: 8px; padding: 10px 18px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, opacity .15s;
}
.btn:disabled { opacity: .55; cursor: default; }
.btn:focus-visible, .link:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover:not(:disabled) { background: #0a4a3c; }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover:not(:disabled) { border-color: var(--muted); }
.btn.danger { background: var(--danger-soft); color: var(--danger); }
.btn.danger:hover:not(:disabled) { border-color: var(--danger); }
form > .btn.primary { width: 100%; padding: 13px; font-size: 16px; margin-top: 8px; }
.link { background: none; border: 0; color: var(--danger); font: inherit; font-size: 14px; cursor: pointer; padding: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.error { color: var(--danger); background: var(--danger-soft); border-radius: 8px; padding: 10px 12px; font-size: 15px; margin: 12px 0 0; }
.status { color: var(--muted); font-size: 14px; text-align: center; margin: 10px 0 0; min-height: 1.4em; }
.callout { background: var(--warn-soft); border-radius: 8px; padding: 14px 16px; margin: 18px 0; }
.callout p { margin: 4px 0 0; }

.result { border-color: var(--accent); }
.body { white-space: pre-wrap; word-break: break-word; font-size: 16px; padding: 16px 0 8px; border-top: 1px solid var(--line); margin-top: 16px; }
#msg-files-wrap { margin-top: 20px; }

.how { padding: 8px 4px; }
.how ol { margin: 0; padding-left: 20px; color: var(--muted); }
.how li { margin-bottom: 10px; }
.how strong { color: var(--ink); }



/* ---------- app-shell ---------- */
.app-header { justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-weight: 500; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 6px; }
.nav a:hover { color: var(--ink); background: var(--surface); }
.nav a.active { color: var(--accent); background: var(--accent-soft); }
.link.plain { color: var(--muted); padding: 6px 10px; font-size: 15px; }
.link.plain:hover { color: var(--ink); }

.row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.intro.row { align-items: center; }
.intro.row h1 { margin: 0; }
.from-line { font-size: 15px; margin-bottom: 18px; }
.back { color: var(--muted); text-decoration: none; font-size: 15px; }
.back:hover { color: var(--ink); }
.nowrap { white-space: nowrap; }

.card.flush { padding: 0; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tr.clickable { cursor: pointer; }
.table tr.clickable:hover td, .table tr.clickable:focus td { background: var(--bg); }
.table tr.clickable:focus { outline: none; }
.empty { padding: 24px 16px; margin: 0; }

.badge {
  display: inline-block; font-size: 12px; font-weight: 600; line-height: 1.4;
  padding: 2px 9px; border-radius: 99px; background: var(--bg); color: var(--muted); white-space: nowrap;
}
.badge.ok { background: var(--accent-soft); color: var(--accent); }
.badge.info { background: #e6eef8; color: #1f4f86; }
.badge.warn { background: var(--warn-soft); color: #7a5a00; }
.badge.neutral { background: #eef0ec; color: var(--ink); }
.badge.muted { background: var(--bg); color: var(--muted); margin-left: 6px; }

.meta { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 20px 0; font-size: 15px; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; word-break: break-word; }
@media (max-width: 560px) { .meta { grid-template-columns: 1fr; gap: 2px; } .meta dd { margin-bottom: 10px; } }

.timeline { list-style: none; margin: 16px 0 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 18px 14px; display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -25px; top: 6px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--muted);
}
.timeline .muted { font-size: 13px; }
.timeline li.ev-opened::before, .timeline li.ev-otp_verified::before { border-color: var(--accent); background: var(--accent); }
.timeline li.ev-otp_failed::before, .timeline li.ev-revoked::before { border-color: var(--danger); }

.verified { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 3px 10px; border-radius: 99px; }
.verified::before { content: "✓"; }

.secret { font-family: var(--mono); font-size: 20px; letter-spacing: 0.08em; background: var(--bg); border-radius: 8px; padding: 14px 16px; user-select: all; word-break: break-all; }
.steps { padding-left: 20px; }
.steps li { margin-bottom: 8px; }

/* ---------- privacy ---------- */
.prose h2 { margin-top: 36px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose .card { margin-top: 24px; }
.prose .table td:first-child { font-weight: 500; }
.checklist { list-style: none; padding-left: 0 !important; margin: 0; }
.checklist li { position: relative; padding-left: 26px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.prose a { color: var(--accent); }

.site-footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted);
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }

[hidden] { display: none !important; }

/* ---------- authenticator koppelen ---------- */
.qr { display: flex; justify-content: center; margin: 8px 0 16px; }
.qr svg { border: 1px solid var(--line); border-radius: 8px; max-width: 100%; height: auto; }
.manual { margin: 8px 0 12px; font-size: 15px; }
.manual summary { cursor: pointer; color: var(--accent); font-weight: 500; }
.manual[open] summary { margin-bottom: 10px; }
.secret { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.secret span { white-space: nowrap; }
.mobile-only { display: none; }
@media (hover: none) and (pointer: coarse) { .mobile-only { display: block; } }

/* Voortgang bij versturen en ophalen */
.progress { margin: 14px 0 0; display: grid; gap: 6px; }
.progress span { color: var(--muted); font-size: 14px; text-align: center; font-variant-numeric: tabular-nums; }
.progress progress { width: 100%; height: 8px; appearance: none; -webkit-appearance: none; border: 0; border-radius: 999px; background: var(--accent-soft); overflow: hidden; }
.progress progress::-webkit-progress-bar { background: var(--accent-soft); border-radius: 999px; }
.progress progress::-webkit-progress-value { background: var(--accent); border-radius: 999px; transition: width .2s ease; }
.progress progress::-moz-progress-bar { background: var(--accent); border-radius: 999px; }
.progress[hidden] { display: none; }
.progress progress:not([value]) { background: linear-gradient(90deg, var(--accent-soft) 0 35%, var(--accent) 35% 65%, var(--accent-soft) 65%) 0 0 / 300% 100%; animation: sm-indeterminate 1.2s linear infinite; }
.progress progress:not([value])::-webkit-progress-bar { background: transparent; }
.progress progress:not([value])::-moz-progress-bar { background: transparent; }
@keyframes sm-indeterminate { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .progress progress:not([value]) { animation: none; background: var(--accent-soft); } }

/* =====================================================================
   Webmail-indeling (alleen de app zelf: body.mail)
   ===================================================================== */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:where(body.mail, body.guest) svg:where(:not(.sprite)) { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

body.mail { --topbar: 60px; --side: 236px; --list: 380px; height: 100vh; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }

/* bovenbalk */
.topbar {
  height: var(--topbar); flex: none; display: flex; align-items: center; gap: 16px;
  padding: 0 16px 0 20px; background: var(--surface); border-bottom: 1px solid var(--line);
}
.topbar .brand-link { font-weight: 650; letter-spacing: -0.01em; width: calc(var(--side) - 36px); flex: none; }
.search {
  flex: 1; max-width: 560px; display: flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1px solid transparent; border-radius: 10px; padding: 0 12px; color: var(--muted);
}
.search:focus-within { background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search input { border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 9px 0 !important; }
.account { margin-left: auto; display: flex; align-items: center; gap: 10px; min-width: 0; }
.account-text { display: flex; flex-direction: column; line-height: 1.2; font-size: 13px; min-width: 0; }
.account-text strong { font-size: 14px; }
.account-text span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none; display: inline-grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 650; font-size: 13px; letter-spacing: 0.02em;
}
.avatar.small { width: 28px; height: 28px; font-size: 12px; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; border: 0; background: none; color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--bg); }
.menu-toggle { display: none; margin-left: -8px; }
.small-btn { padding: 7px 12px; font-size: 14px; gap: 6px; }
.btn svg { width: 17px; height: 17px; }
.btn.block { width: 100%; padding: 12px; }

/* indeling */
.shell { flex: 1; display: flex; min-height: 0; }
.sidebar {
  width: var(--side); flex: none; display: flex; flex-direction: column; gap: 18px;
  padding: 18px 12px; border-right: 1px solid var(--line); background: var(--bg); overflow-y: auto;
}
.compose-btn { justify-content: flex-start; gap: 10px; padding: 13px 18px; border-radius: 14px; box-shadow: 0 1px 2px rgba(22,32,29,.12), 0 4px 12px rgba(14,92,74,.14); }
.folders { display: flex; flex-direction: column; gap: 2px; }
.folders a {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 99px;
  color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500;
}
.folders a svg { color: var(--muted); }
.folders a:hover { background: #e9ece7; }
.folders a.active { background: var(--accent-soft); color: var(--accent); font-weight: 650; }
.folders a.active svg { color: var(--accent); }
.count { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sidebar-foot { margin-top: auto; font-size: 12px; color: var(--muted); padding: 0 12px; }
.sidebar-foot p { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; }
.sidebar-foot svg { width: 14px; height: 14px; }
.sidebar-foot a { color: var(--muted); }
.sidebar-foot a:hover { color: var(--ink); }

.content { flex: 1; min-width: 0; overflow: hidden; background: var(--surface); display: flex; }
.content > section { flex: 1; min-width: 0; }
.page { overflow-y: auto; padding: 28px 32px 48px; }
.page > * { max-width: 820px; }
.page > h1 { font-size: 24px; margin-bottom: 20px; }
.pane-center { display: grid; place-items: center; padding: 24px; overflow-y: auto; }
.narrow-card { width: 100%; max-width: 460px; }

/* lijst + leesvenster */
.split { display: flex; min-height: 0; }
.list-pane { width: var(--list); flex: none; border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 12px; border-bottom: 1px solid var(--line); }
.list-head h1 { font-size: 20px; margin: 0; }
.list-head .muted { font-size: 13px; }
.maillist { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; }
.maillist:empty { flex: 0; }
.maillist li a {
  display: grid; grid-template-columns: auto 1fr auto; gap: 2px 12px; align-items: start;
  padding: 12px 20px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none;
  border-left: 3px solid transparent;
}
.maillist li a:hover { background: var(--bg); }
.maillist li a.active { background: var(--accent-soft); border-left-color: var(--accent); }
.maillist .avatar { grid-row: span 3; margin-top: 2px; }
.ml-who { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-when { font-size: 12px; color: var(--muted); white-space: nowrap; padding-top: 2px; }
.ml-subject { grid-column: 2 / 4; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-meta { grid-column: 2 / 4; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); min-width: 0; }
.ml-meta svg { width: 14px; height: 14px; }
.ml-meta .badge { font-size: 11px; padding: 1px 8px; margin: 0; }
.contacts .ml-subject { color: var(--muted); }
.empty { padding: 24px 20px; margin: 0; }
mark { background: #fbe7a1; color: inherit; border-radius: 2px; }

.reader { flex: 1; min-width: 0; overflow-y: auto; padding: 24px 32px 48px; }
.reader > * { max-width: 860px; }
.reader-empty { height: 100%; max-width: none; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--muted); gap: 4px; }
.reader-empty svg { width: 44px; height: 44px; stroke-width: 1.2; margin-bottom: 8px; opacity: .55; }
.reader-empty p { margin: 0; max-width: 36ch; }
.reader-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.reader-head h1 { font-size: 24px; margin-bottom: 10px; }
.to-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; font-size: 15px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0; }
.toolbar .btn { padding: 8px 14px; font-size: 14px; }
.reader .back, .reader form .back { display: none; }
.reader .body { margin-top: 0; }
.reader .meta { background: var(--bg); border-radius: var(--radius); padding: 16px 18px; margin: 16px 0; }
.audit { margin-top: 28px; }
.audit h2 { font-size: 17px; margin-bottom: 4px; }
.small-note { font-size: 13px; margin: 8px 0 0; }
.link.accent { color: var(--accent); font-weight: 600; }
.link.accent:hover { text-decoration: underline; }
#contact-form h1 { font-size: 22px; margin-bottom: 20px; }

/* opstellen */
.compose { max-width: 860px; }
.compose-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.compose-head h1 { font-size: 24px; margin: 0; }
.lock-hint { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--accent); }
.lock-hint svg { width: 15px; height: 15px; }
.compose-row { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); min-height: 50px; }
.compose-label { width: 84px; flex: none; color: var(--muted); font-size: 15px; }
.compose-value { font-size: 15px; }
.compose input.bare, .compose .picker-wrap > input {
  border: 0 !important; border-radius: 0; padding: 12px 0; background: transparent; box-shadow: none !important;
}
.compose-row:focus-within { border-bottom-color: var(--accent); }
.picker-wrap { position: relative; flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.picker-wrap > input { flex: 1; min-width: 0; }
.picker-name { font-size: 13px; color: var(--accent); background: var(--accent-soft); border-radius: 99px; padding: 2px 10px; white-space: nowrap; }
.picker-name:empty { display: none; }
.suggest {
  position: absolute; top: calc(100% + 2px); left: -8px; right: 0; z-index: 20; max-height: 280px; overflow-y: auto;
  list-style: none; margin: 0; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 10px 30px rgba(22,32,29,.14);
}
.suggest li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px; cursor: pointer; }
.suggest li[aria-selected=true], .suggest li:hover { background: var(--accent-soft); }
.suggest .s-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.suggest .s-text span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.compose-body { border: 0 !important; box-shadow: none !important; border-radius: 0; padding: 16px 0; min-height: 260px; resize: vertical; font-size: 16px; line-height: 1.6; }
.attach { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px; margin: 0 -12px; border-radius: 10px; border: 1.5px dashed transparent; transition: border-color .15s, background .15s; }
.attach.over { border-color: var(--accent); background: var(--accent-soft); }
.attach-btn { position: relative; gap: 8px; padding: 8px 14px; font-size: 14px; }
.attach-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.attach-btn:focus-within { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
.attach-hint { font-size: 13px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.chips:empty { display: none; }
.chips li { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 6px 6px 6px 10px; font-size: 14px; }
.chips li > span:first-of-type { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 280px; }
.chips svg { width: 15px; height: 15px; color: var(--muted); }
.chips button { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 6px; background: none; cursor: pointer; color: var(--muted); }
.chips button:hover { background: var(--danger-soft); color: var(--danger); }
.compose-options {
  border: 0; margin: 12px 0 0; padding: 18px; background: var(--bg); border-radius: var(--radius);
  display: grid; grid-template-columns: 1.5fr .8fr 1fr; gap: 0 18px; align-items: start;
}
.compose-options .field { margin-bottom: 0; }
.compose-options .checks { padding-top: 26px; }
.compose-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.compose-foot .btn { gap: 8px; padding: 12px 22px; }
.compose-foot .small-note { margin: 0; flex: 1; min-width: 200px; }
#view-new .progress { max-width: 860px; }

/* smalle schermen */
@media (max-width: 1180px) { body.mail { --list: 320px; } .compose-options { grid-template-columns: 1fr 1fr; } .opt-pass { grid-column: 1 / -1; margin-bottom: 14px !important; } .compose-options .checks { padding-top: 0; } }
@media (max-width: 900px) {
  .menu-toggle { display: inline-grid; }
  .topbar .brand-link { width: auto; }
  .brand-name, .account-text { display: none; }
  .sidebar { position: fixed; top: var(--topbar); bottom: 0; left: 0; z-index: 40; transform: translateX(-100%); visibility: hidden; transition: transform .2s ease, visibility .2s; }
  body.menu-open .sidebar { transform: none; visibility: visible; box-shadow: 0 0 40px rgba(0,0,0,.15); }
  body.menu-open .scrim { display: block !important; }
  .scrim { position: fixed; inset: var(--topbar) 0 0 0; background: rgba(22,32,29,.25); z-index: 30; }
  .split .list-pane { width: 100%; border-right: 0; }
  .split .reader { display: none; padding: 18px 18px 40px; }
  .split.has-selection .list-pane { display: none; }
  .split.has-selection .reader { display: block; }
  .reader .back, .reader form .back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 12px; }
  .page { padding: 20px 18px 40px; }
  .compose-options { grid-template-columns: 1fr; }
  .compose-options .field { margin-bottom: 14px; }
}
@media (max-width: 560px) { .compose-label { width: 72px; } .reader-head { flex-direction: column; } .search { display: none; } }
@media (prefers-reduced-motion: reduce) { .sidebar { transition: none; } }
.save-contact { background: var(--accent-soft); border-radius: 8px; padding: 12px 14px; margin: 0 0 16px; display: grid; gap: 8px; font-size: 15px; }
.save-contact input { background: var(--surface); }

.ok-callout { background: var(--accent-soft); }

/* meerdere ontvangers */
.picker-wrap { flex-wrap: wrap; padding: 6px 0; }
.rcpt-chips { list-style: none; display: contents; }
.rcpt-chips li {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  background: var(--accent-soft); color: var(--ink); border-radius: 99px; padding: 3px 4px 3px 4px; font-size: 14px;
}
.rcpt-chips li.invalid { background: var(--danger-soft); color: var(--danger); }
.rcpt-chips .avatar { width: 22px; height: 22px; font-size: 10px; background: var(--surface); }
.rcpt-chips li > span:not(.avatar) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.rcpt-chips button { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 50%; background: none; cursor: pointer; color: var(--muted); }
.rcpt-chips button:hover { background: var(--surface); color: var(--danger); }
.compose .picker-wrap > input { min-width: 180px; padding: 8px 0 !important; }

.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.link-list li { display: grid; grid-template-columns: minmax(120px, 200px) 1fr auto; gap: 8px; align-items: center; }
.link-list li > span { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { .link-list li { grid-template-columns: 1fr auto; } .link-list li > span { grid-column: 1 / -1; } }

.recipients { margin-top: 28px; }
.recipients h2 { font-size: 17px; margin-bottom: 4px; }
.rcpt-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.rcpt-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.rcpt-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rcpt-head .who { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; flex: 1; }
.rcpt-head .who span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.rcpt-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rcpt-actions .btn { padding: 6px 12px; font-size: 13px; }
.replies { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.reply { background: var(--bg); border-radius: 8px; padding: 10px 12px; }
.reply.unread { background: #eef6f2; box-shadow: inset 3px 0 0 var(--accent); }
.reply-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.reply-head strong { flex: 1; }
.reply .body { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; font-size: 15px; }
.audit-details { margin-top: 10px; font-size: 14px; }
.audit-details summary { cursor: pointer; color: var(--muted); }
.audit-details summary:hover { color: var(--ink); }
.audit-details .timeline { margin-top: 12px; }
.ml-unread .ml-who, .ml-unread .ml-subject { font-weight: 700; }
.reply-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 99px; padding: 1px 8px; }

/* ---------- opgemaakte tekst ---------- */
.body.rich, .mail-body.rich { white-space: normal; }
.rich p, .rte-area p { margin: 0 0 .7em; }
.rich p:last-child, .rte-area p:last-child { margin-bottom: 0; }
.rich ul, .rich ol, .rte-area ul, .rte-area ol { margin: 0 0 .7em; padding-left: 1.5em; }
.rich li, .rte-area li { margin: .15em 0; }
.rich blockquote, .rte-area blockquote { margin: 0 0 .7em; padding-left: 12px; border-left: 3px solid var(--line); color: var(--muted); }
.rich h2, .rich h3 { font-size: 1.1em; margin: .8em 0 .4em; }
.rich a, .rte-area a { color: var(--accent); text-decoration: underline; }

.rte { display: flex; flex-direction: column; min-height: 0; }
.rte-toolbar { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.rte-btn {
  min-width: 34px; height: 32px; padding: 0 8px; border: 0; border-radius: 6px; background: none; cursor: pointer;
  color: var(--ink); font: inherit; font-size: 14px; line-height: 1;
}
.rte-btn:hover { background: var(--bg); }
.rte-btn.on { background: var(--accent-soft); color: var(--accent); }
.rte-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.rte-bold { font-weight: 800; }
.rte-italic { font-style: italic; font-family: Georgia, serif; }
.rte-underline { text-decoration: underline; }
.rte-area { position: relative; min-height: 160px; padding: 14px 0; outline: none; font-size: 16px; line-height: 1.55; overflow-wrap: anywhere; }
.rte-area.empty::before { content: attr(data-placeholder); color: var(--muted); pointer-events: none; position: absolute; }
.compose .rte { flex: 1; }
.compose .rte-area { flex: 1; min-height: 240px; }

/* ---------- ontvanger: bericht als mailweergave ---------- */
.wrap.wide { max-width: 880px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.thread-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 8px 0 18px; }
.thread-head h1 { flex: 1; min-width: 200px; margin: 0; font-size: 26px; }
.thread-tools { display: flex; align-items: center; gap: 6px; }
.mail-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px 28px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.mail-card + .mail-card, #thread-replies .mail-card { margin-top: 14px; }
.mail-card.mine { border-left: 3px solid var(--accent); }
.mail-head { display: flex; align-items: flex-start; gap: 12px; }
.mail-head .avatar { width: 42px; height: 42px; font-size: 15px; }
.mail-who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.mail-who strong { font-size: 16px; }
.mail-who span { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.mail-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.mail-side time { font-size: 13px; color: var(--muted); white-space: nowrap; }
.mail-actions { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.btn.small { padding: 6px 12px; font-size: 14px; gap: 6px; }
.mail-body { padding: 22px 0 6px; font-size: 16px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.mail-files { margin-top: 22px; }
.mail-files h2 { font-size: 16px; margin: 0 0 12px; }
.att-grid { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.att {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 8px; color: var(--ink); text-decoration: none; min-width: 0;
}
.att:hover { background: var(--bg); }
.att svg { color: var(--accent); width: 22px; height: 22px; }
.att span { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.att strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att em { font-style: normal; font-size: 13px; color: var(--muted); }

.menu-wrap { position: relative; }
.menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 270px; list-style: none; margin: 0; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.12);
}
.menu button {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 6px;
  background: none; font: inherit; font-size: 14px; color: var(--ink); text-align: left; cursor: pointer;
}
.menu button:hover, .menu button:focus-visible { background: var(--bg); outline: none; }
.menu button.danger { color: var(--danger); }
.menu .sep { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }

#reply-start { margin-top: 16px; }
.composer { margin-top: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 4px 18px rgba(0,0,0,.06); }
.composer-bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 20px; background: var(--ink); color: #fff; }
.composer-bar .icon-btn { color: #fff; }
.composer-bar .icon-btn:hover { background: rgba(255,255,255,.12); }
.composer-to { padding: 12px 20px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.composer-to span { color: var(--ink); }
.composer form { padding: 0 20px 16px; }
.composer .rte-area { min-height: 180px; }
.composer-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); }
.composer-foot .btn.primary { margin-right: 6px; }
.composer-foot label.icon-btn { position: relative; }
.composer-foot label.icon-btn:focus-within { outline: 2px solid var(--accent); }
.composer-note { margin-left: auto; font-size: 13px; color: var(--muted); }
.composer-note svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 6px; }
.composer.over { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.chip-files { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip-files li { display: inline-flex; align-items: center; gap: 6px; background: var(--bg); border-radius: 99px; padding: 4px 6px 4px 12px; font-size: 13px; max-width: 100%; }
.chip-files li > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.chip-files button { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 50%; background: none; cursor: pointer; color: var(--muted); }
.chip-files button:hover { background: var(--surface); color: var(--danger); }
.chip-files svg { width: 14px; height: 14px; }

@media (max-width: 600px) {
  .mail-card { padding: 18px 16px; }
  .mail-head { flex-wrap: wrap; }
  .mail-side { flex-direction: row-reverse; align-items: center; width: 100%; justify-content: space-between; }
  .thread-head h1 { font-size: 22px; }
  .composer form { padding: 0 14px 14px; }
  .composer-note { margin-left: 0; width: 100%; }
}

/* ---------- printen / opslaan als PDF ---------- */
@media print {
  body { background: #fff !important; }
  .brand, .thread-tools, .mail-actions .menu-wrap, #reply-start, .composer, .site-footer, main > .muted.small,
  #burn-note, #reply-done, #dl-all, .sprite { display: none !important; }
  .wrap, .wrap.wide { max-width: none; padding: 0; }
  .mail-card { border: 0; box-shadow: none; padding: 0; break-inside: auto; }
  #thread-replies .mail-card { border-top: 1px solid #ccc; padding-top: 16px; margin-top: 24px; border-radius: 0; }
  .att { border: 1px solid #ccc; }
  .rich a::after { content: " (" attr(href) ")"; font-size: 12px; color: #555; }
}
.rte.compose-body { padding: 0; min-height: 0; resize: none; }
.rte.compose-body .rte-toolbar { position: sticky; top: 0; background: var(--surface); z-index: 1; }
.guest .btn { gap: 8px; }

/* ---------- verzonden: gesprekken met ingesprongen antwoorden ---------- */
.ml-subject { display: flex; align-items: center; gap: 8px; }
.ml-subject > :first-child { overflow: hidden; text-overflow: ellipsis; }
.ml-snippet {
  grid-column: 2 / 4; font-size: 13px; color: var(--muted); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ml-snippet svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px; }
.ml-thread {
  margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 4px 0 8px;
  border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--muted);
  font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
}
.ml-thread:hover { border-color: var(--muted); color: var(--ink); }
.ml-thread svg { width: 14px; height: 14px; transition: transform .15s; transform: rotate(-90deg); }
.ml-thread.open svg { transform: none; }
.ml-parent.has-thread > a { border-bottom-color: transparent; }
.maillist .ml-child > a {
  grid-template-columns: 1fr auto; padding: 9px 20px 10px 66px; background: var(--bg); position: relative;
  border-bottom-color: transparent;
}
.maillist .ml-child > a::before { content: ""; position: absolute; left: 36px; top: 0; bottom: 0; border-left: 2px solid var(--line); }
.maillist .ml-child.last > a { border-bottom-color: var(--line); }
.maillist .ml-child.last > a::before { bottom: 50%; }
.maillist .ml-child > a::after { content: ""; position: absolute; left: 36px; top: 50%; width: 18px; border-top: 2px solid var(--line); }
.maillist .ml-child > a:hover { background: #ecefea; }
.maillist .ml-child > a.active { background: var(--accent-soft); border-left-color: var(--accent); }
.ml-child .ml-who { font-size: 14px; display: flex; align-items: center; gap: 6px; }
.ml-child .ml-snippet { grid-column: 1 / -1; }
.ml-child:not(.ml-unread) .ml-who { font-weight: 500; }
.ml-unread .ml-snippet { color: var(--ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }

/* ---------- archief: slepen en neerzetten ---------- */
.maillist a[draggable="true"] { -webkit-user-drag: element; }
.maillist .drag-src > a { opacity: .45; }
body.dragging-msg #nav a[data-folder]:not(.active) { outline: 2px dashed var(--line); outline-offset: -2px; }
#nav a.drop-over { background: var(--accent-soft) !important; color: var(--accent); outline: 2px solid var(--accent) !important; outline-offset: -2px; }
#nav a.drop-over svg { color: var(--accent); }
.drag-ghost {
  position: fixed; top: -100px; left: -100px; display: inline-flex; align-items: center; gap: 8px; max-width: 280px;
  padding: 8px 14px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.drag-ghost svg { width: 16px; height: 16px; }
.drop-hint { line-height: 1.5; }
.toolbar .btn { gap: 8px; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 16px;
  padding: 12px 14px 12px 18px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.toast[hidden] { display: none; }
.toast button { border: 0; background: none; color: #9fd8c3; font: inherit; font-weight: 650; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.toast button:hover { background: rgba(255,255,255,.1); }

/* ---------- postvak IN ---------- */
.count.unread:not(:empty) { color: var(--accent); font-weight: 700; }
.ml-inbox:not(.ml-unread) .ml-who { font-weight: 500; }
.ml-inbox .ml-who { display: flex; align-items: center; gap: 6px; }
.reply-count { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.reply-count svg { width: 14px; height: 14px; }

/* handtekening in instellingen */
.signature-box { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 0 12px; }
.signature-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.signature-box .rte-area { min-height: 110px; padding: 10px 0; font-size: 15px; }

/* =====================================================================
   Inlogpagina: tweeluik (links uitleg, rechts formulier)
   ===================================================================== */
body.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--surface); }
.auth-side svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.auth-side {
  --deep: #0b3a30;
  position: sticky; top: 0; height: 100vh; height: 100dvh;
  display: flex; flex-direction: column; padding: 56px clamp(32px, 6vw, 80px) 40px;
  color: #e8f1ed; overflow: hidden;
  background:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.07) 1px, transparent 0) 0 0 / 22px 22px,
    radial-gradient(ellipse 70% 60% at 75% 55%, rgba(120,190,160,.22), transparent 70%),
    linear-gradient(160deg, #0f4d3f 0%, var(--deep) 55%, #072821 100%);
}
.auth-brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; font-weight: 650; font-size: 19px; letter-spacing: -0.01em; }
.auth-side .logo { width: 40px; height: 40px; background-image: url("/logo-light.svg"); box-shadow: 0 6px 18px rgba(0, 0, 0, .18); border-radius: 10px; }
.auth-pitch { margin: auto 0; padding: 48px 0 32px; max-width: 560px; }
.auth-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #9cc5b4; margin-bottom: 22px; }
.auth-title { font-size: clamp(32px, 3.6vw, 50px); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; color: #fff; margin-bottom: 22px; }
.auth-title span { color: #8fd3b6; }
.auth-lead { font-size: 18px; line-height: 1.6; color: #c3d8cf; max-width: 46ch; margin-bottom: 44px; }

.auth-cards { position: relative; height: 290px; max-width: 520px; }
.auth-card { position: absolute; background: #fff; color: var(--ink); border-radius: 16px; padding: 20px 22px; box-shadow: 0 20px 50px -18px rgba(0,0,0,.5); }
.auth-card-msg { left: 0; top: 0; width: 300px; z-index: 2; }
.auth-card-msg strong { display: block; font-size: 22px; letter-spacing: -0.02em; margin: 14px 0 4px; }
.auth-card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.auth-pill { font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 99px; padding: 3px 10px; white-space: nowrap; }
.auth-card-sub { font-size: 14px; color: var(--muted); }
.auth-card-lock { left: 270px; top: 70px; width: 250px; padding-left: 50px; background: #f6f8f6; z-index: 1; }
.auth-cipher { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 14px 0 12px; }
.auth-cipher i { height: 22px; border-radius: 5px; background: #d5e6de; }
.auth-cipher i:nth-child(3n) { background: #b4d3c5; }
.auth-cipher i:nth-child(5) { background: var(--accent); }
.auth-card-mono { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.auth-toast { position: absolute; left: 44px; top: 210px; z-index: 3; display: flex; align-items: center; gap: 12px; background: #fff; color: var(--ink); font-weight: 600; font-size: 15px; border-radius: 99px; padding: 10px 22px 10px 10px; box-shadow: 0 16px 40px -14px rgba(0,0,0,.55); }
.auth-toast-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 15px; }
.auth-foot { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #9cc5b4; margin: 0; }
.auth-foot a { color: #d7ebe2; }

.auth-main { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 48px 24px 24px; min-height: 100vh; min-height: 100dvh; }
.auth-box { width: 100%; max-width: 440px; margin: auto 0; }
.auth-brand-mobile { display: none; color: var(--ink); margin-bottom: 32px; }
.auth .card { border: 0; box-shadow: none; padding: 0; background: transparent; margin: 0; }
.auth #step-login h1 { text-align: center; font-size: 24px; font-weight: 600; margin-bottom: 8px; }
.auth-sub { text-align: center; color: var(--ink); margin-bottom: 36px; }
.auth .field > span { font-weight: 500; font-size: 15px; margin-bottom: 8px; }
.auth input:not([type=checkbox]):not([type=file]) { padding: 12px 14px; }
.auth input::placeholder { color: #9aa49f; }
.auth form > .btn.primary { margin-top: 14px; }
.auth #step-login .muted.small { text-align: center; }
.auth-main .site-footer { width: 100%; max-width: 440px; justify-content: center; text-align: center; border-top: 0; }

@media (max-width: 900px) {
  body.auth { grid-template-columns: 1fr; background: var(--bg); }
  .auth-side { display: none; }
  .auth-main { padding-top: 40px; }
  .auth-box { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 32px 24px; margin-top: 0; }
  .auth-brand-mobile { display: inline-flex; }
}

/* =====================================================================
   Intropagina /over
   ===================================================================== */
body.about { background: var(--surface); }
.about svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.about h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 700; letter-spacing: -0.025em; margin-bottom: 16px; }
.about h3 { font-size: 17px; font-weight: 650; margin-bottom: 8px; }
.about section p { color: var(--muted); }
.ab-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.ab-narrow { max-width: 760px; }
.about .btn { gap: 8px; }
.small-btn { padding: 7px 14px; font-size: 14px; }

.ab-top { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.ab-top-inner { display: flex; align-items: center; gap: 24px; height: 64px; font-weight: 650; }
.ab-nav { display: flex; gap: 4px; margin-left: auto; font-weight: 500; font-size: 15px; }
.ab-nav a { color: var(--muted); text-decoration: none; padding: 6px 12px; border-radius: 6px; }
.ab-nav a:hover { color: var(--ink); background: var(--bg); }

.ab-hero { padding: 80px 0 88px; background:
  radial-gradient(ellipse 60% 70% at 85% 30%, var(--accent-soft), transparent 70%), var(--surface); }
.ab-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.ab-hero h1 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -0.035em; margin-bottom: 20px; }
.ab-hero .lead { margin-bottom: 28px; }
.ab-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.ab-cta .btn { padding: 12px 22px; font-size: 16px; }
.ab-proof { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: var(--muted); }
.ab-proof li { display: flex; align-items: center; gap: 8px; }
.ab-proof svg { width: 18px; height: 18px; color: var(--accent); }

.ab-visual { margin: 0; display: grid; gap: 14px; }
.ab-mock { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 60px -28px rgba(14,92,74,.45); overflow: hidden; }
.ab-mock-bar { display: flex; gap: 6px; padding: 12px 14px; background: var(--bg); border-bottom: 1px solid var(--line); }
.ab-mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.ab-mock-body { padding: 18px 20px 20px; display: grid; gap: 12px; font-size: 14px; }
.ab-mock-row { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.ab-mock-row b { width: 82px; color: var(--muted); font-weight: 500; }
.ab-mock-row i { font-style: normal; }
.ab-mock .chip { background: var(--accent-soft); color: var(--accent); border-radius: 99px; padding: 2px 10px; font-size: 13px; }
.ab-mock-lines { display: grid; gap: 8px; padding: 4px 0; }
.ab-mock-lines i { height: 8px; border-radius: 4px; background: var(--bg); }
.ab-mock-lines i.short { width: 60%; }
.ab-mock-file { display: inline-flex; align-items: center; gap: 8px; justify-self: start; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-weight: 500; }
.ab-mock-file svg { color: var(--accent); }
.ab-cipher { display: flex; align-items: center; gap: 12px; background: var(--ink); color: #9fe0c3; border-radius: 12px; padding: 14px 18px; }
.ab-cipher code { background: none; color: inherit; padding: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-visual figcaption { font-size: 13px; color: var(--muted); text-align: center; }

.ab-section { padding: 88px 0; }
.ab-alt { background: var(--bg); }
.ab-intro { font-size: 18px; max-width: 70ch; margin-bottom: 44px; }
.ab-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ab-features article { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.ab-features p { margin: 0; font-size: 15px; }
.ab-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }

.ab-steps { list-style: none; padding: 0; margin: 40px 0 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: none; }
.ab-steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.ab-steps p { margin: 0; font-size: 15px; }
.ab-step-nr { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 16px; }
.ab-note { display: flex; flex-wrap: wrap; gap: 6px 10px; background: var(--accent-soft); border-radius: 12px; padding: 16px 20px; color: var(--ink); }
.ab-note span { color: var(--muted); }

.ab-security { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; margin-bottom: 40px; }
.ab-security article { padding: 22px 0 22px 20px; border-top: 1px solid var(--line); position: relative; }
.ab-security article::before { content: ""; position: absolute; left: 0; top: 28px; width: 4px; height: 18px; border-radius: 2px; background: var(--accent); }
.ab-security p { margin: 0; font-size: 15px; }
.ab-honest { background: var(--warn-soft); border-radius: 14px; padding: 26px 28px; }
.ab-honest ul { margin: 0 0 14px; padding-left: 20px; }
.ab-honest li { margin-bottom: 8px; color: var(--ink); }
.ab-honest .muted { margin: 0; font-size: 14px; }
.ab-honest a, .ab-faq a { color: var(--accent); }

.ab-faq { margin-top: 28px; display: grid; gap: 10px; }
.ab-faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.ab-faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.ab-faq summary::-webkit-details-marker { display: none; }
.ab-faq summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; }
.ab-faq details[open] summary::after { content: "−"; }
.ab-faq details p { padding-bottom: 16px; margin: 0; }

.ab-final { padding: 80px 0; text-align: center; background: linear-gradient(160deg, #0f4d3f, #072821); color: #fff; }
.ab-final h2 { color: #fff; }
.ab-final p { color: #c3d8cf; margin-bottom: 26px; }
.ab-final .btn.primary { background: #fff; color: var(--accent); padding: 13px 28px; font-size: 16px; }
.ab-final .btn.primary:hover { background: var(--accent-soft); }
.ab-footer { margin-top: 0; padding-top: 24px; padding-bottom: 32px; border-top: 0; }

@media (max-width: 960px) {
  .ab-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .ab-features { grid-template-columns: repeat(2, 1fr); }
  .ab-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .ab-nav { display: none; }
  .ab-top-inner { justify-content: space-between; }
  .ab-hero { padding: 48px 0 56px; }
  .ab-section { padding: 56px 0; }
  .ab-features, .ab-steps, .ab-security { grid-template-columns: 1fr; }
  .ab-honest { padding: 22px 20px; }
}
.ab-section { scroll-margin-top: 64px; }
.auth .card:not([hidden]) ~ .card:not([hidden]) { margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--line); }

/* =====================================================================
   Privacypagina (zelfde jasje als /over)
   ===================================================================== */
.pv-hero { padding: 72px 0 64px; }
.pv-hero h1 { max-width: 22ch; }
.pv-hero .lead { max-width: 68ch; margin: 0; }
.pv-first { padding-top: 24px; }
.pv-short { grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 32px; }
.pv-short article { padding: 22px 20px; }
.pv-short h3 { font-size: 16px; }

.pv-steps { list-style: none; counter-reset: pv; margin: 36px 0 48px; padding: 0; display: grid; gap: 14px; max-width: 860px; }
.pv-steps li { counter-increment: pv; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px 22px 76px; }
.pv-steps li::before { content: counter(pv); position: absolute; left: 24px; top: 20px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; }
.pv-steps h3 { margin-bottom: 6px; }
.pv-steps p { margin: 0; font-size: 15px; }
.pv-sub { font-size: 20px; margin-bottom: 18px; }
.pv-checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 32px; }
.pv-checks li { position: relative; padding-left: 30px; color: var(--ink); font-size: 15px; }
.pv-checks li::before { content: "✓"; position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; }
.pv-checks-single { grid-template-columns: 1fr; }
.pv-checks a { color: var(--accent); }

.pv-table { margin: 32px 0 20px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.pv-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.pv-table th { text-align: left; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--muted); background: var(--bg); padding: 14px 20px; border-bottom: 1px solid var(--line); }
.pv-table td { padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
.pv-table td:first-child { color: var(--ink); font-weight: 500; width: 38%; }
.pv-table td:last-child { width: 30%; }
.pv-table tr:last-child td { border-bottom: 0; }
.pv-never { margin-bottom: 56px; }
.pv-two { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 48px; }
.pv-two p { margin: 0; font-size: 15px; }
.pv-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.pv-own { margin-top: 32px; }
.pv-own p { margin: 0; color: var(--ink); }

.pv-contact p { margin-bottom: 14px; }
.pv-contact .pv-org { color: #e8f1ed; line-height: 1.7; }
.pv-contact .btn { margin-bottom: 26px; }
.pv-contact .pv-updated { font-size: 13px; color: #9cc5b4; margin: 0; }

@media (max-width: 1100px) { .pv-short { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
  .pv-short, .pv-checks, .pv-two { grid-template-columns: 1fr; }
  .pv-steps li { padding: 20px 20px 20px 66px; }
  .pv-steps li::before { left: 18px; }
  .pv-table thead { display: none; }
  .pv-table tr { display: block; padding: 16px 18px; border-bottom: 1px solid var(--line); }
  .pv-table tr:last-child { border-bottom: 0; }
  .pv-table td { display: block; width: auto !important; padding: 2px 0; border: 0; font-size: 14px; }
  .pv-table td:first-child { font-size: 15px; margin-bottom: 6px; }
  .pv-table td:last-child::before { content: "Bewaartermijn: "; color: var(--ink); font-weight: 500; }
}

/* Antwoorden in een gesprek */
.compose-thread { display: flex; align-items: center; gap: 8px; padding: 9px 12px; margin: 10px 0 2px; border-radius: 8px; background: var(--accent-soft); color: var(--ink); font-size: 14px; }
.compose-thread svg { width: 16px; height: 16px; color: var(--accent); }
.compose-thread span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compose-thread .link.plain { padding: 2px 6px; font-size: 13px; }
.reply-head .btn, #d-reply { gap: 6px; }
.reply-head .btn svg { width: 15px; height: 15px; }
.ml-own .ml-who svg { width: 14px; height: 14px; color: var(--accent); }
.ml-own .ml-who .muted { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.rich blockquote + p, .rte-area blockquote + p { margin-top: 1.4em; }

/* Gespreksweergave in het leesvenster */
.conv-wrap { margin: 4px 0 28px; }
.conv-title { font-size: 17px; margin: 0 0 12px; }
.conv-title .muted { font-weight: 400; font-size: 15px; }
.conv { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.conv-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: var(--surface); scroll-margin-top: 12px; }
.conv-own { background: #f7f9f7; }
.conv-item.current { border-color: #b8d3c7; }
.conv-reply.unread { box-shadow: inset 3px 0 0 var(--accent); }
.conv-item.focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.conv-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.conv-who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-when { font-size: 13px; }
.conv-link { font-size: 13px; color: var(--accent); }
.conv-head .btn.small-btn { padding: 5px 12px; font-size: 13px; gap: 6px; }
.conv-head .btn.small-btn svg { width: 14px; height: 14px; }
.conv-body { margin-top: 10px; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.conv-body:not(.rich) { white-space: pre-wrap; }
.conv-body .btn.small-btn { padding: 5px 12px; font-size: 13px; }
.conv-more { display: inline-block; margin: 6px 0 2px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); border-radius: 6px; padding: 0 9px; font: inherit; font-weight: 700; letter-spacing: .12em; line-height: 18px; cursor: pointer; }
.conv-more:hover, .conv-more[aria-expanded="true"] { color: var(--ink); border-color: var(--muted); }
.conv-files { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.conv-files li { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 99px; padding: 3px 12px 3px 10px; font-size: 13px; background: var(--surface); }
.conv-files svg { width: 14px; height: 14px; color: var(--muted); }
.conv-item > .files { margin-top: 10px; }

/* Ontvanger: eerdere berichten in het gesprek */
.history { margin-bottom: 14px; display: grid; gap: 8px; }
.history-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); padding: 0 4px; }
.history-toggle { font-size: 13px; color: var(--accent); }
.mail-card.past { padding: 0; overflow: hidden; }
.past-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 20px; background: none; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.past-head:hover { background: #f7f9f7; }
.past-head .avatar { width: 34px; height: 34px; font-size: 13px; }
.past-who { flex: 1; min-width: 0; display: flex; gap: 10px; align-items: baseline; }
.past-who strong { flex: none; font-size: 15px; }
.past-snippet { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.past-head time { flex: none; font-size: 13px; color: var(--muted); }
.past-head svg { width: 15px; height: 15px; color: var(--muted); }
.past-full { padding: 0 28px 20px; }
.past-full .mail-body { padding-top: 6px; }
.mail-card.past.collapsed .past-full { display: none; }
.mail-card.past:not(.collapsed) .past-snippet { display: none; }
@media (max-width: 560px) { .past-who { flex-direction: column; gap: 0; } .past-full { padding: 0 18px 18px; } .past-head { padding: 12px 16px; } }

/* Versie in de zijbalk */
.app-version { display: flex; width: fit-content; align-items: center; gap: 6px; margin-top: 4px; }
.new-badge { font-size: 11px; font-weight: 700; color: var(--accent-ink); background: var(--accent); border-radius: 99px; padding: 1px 7px; text-decoration: none; }

/* Pagina "Wat is er nieuw" */
.cl { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.cl-release { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px 26px; scroll-margin-top: 80px; }
.cl-release:first-child { border-color: #b8d3c7; box-shadow: 0 12px 30px -20px rgba(14,92,74,.5); }
.cl-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; margin-bottom: 6px; }
.cl-version { font-family: var(--mono); font-weight: 600; color: var(--accent); }
.cl-latest { font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 99px; padding: 2px 9px; }
.cl-meta time { color: var(--muted); margin-left: auto; }
.about .cl-release h2 { font-size: 21px; margin-bottom: 14px; }
.cl-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cl-items li { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: baseline; font-size: 15px; }
.cl-tag { justify-self: start; font-size: 12px; font-weight: 600; border-radius: 99px; padding: 2px 9px; }
.cl-nieuw { background: var(--accent-soft); color: var(--accent); }
.cl-beter { background: #e6eef8; color: #1f4f86; }
.cl-opgelost { background: var(--warn-soft); color: #7a5a00; }
@media (max-width: 560px) { .cl-items li { grid-template-columns: 1fr; gap: 4px; } .cl-release { padding: 20px; } .cl-meta time { margin-left: 0; } }

/* ---------- eigen mappen ---------- */
.nav-group { display: flex; flex-direction: column; gap: 2px; margin: 6px 0 4px; padding-top: 8px; border-top: 1px solid var(--line); }
.nav-label { margin: 2px 12px 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
#nav-folders { display: flex; flex-direction: column; gap: 2px; }
.nav-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-add { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; border: 0; border-radius: 99px; background: none; color: var(--muted); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.nav-add:hover { background: #e9ece7; color: var(--ink); }
.nav-add svg { color: var(--muted); }
.nav-new { padding: 2px 4px; }
.nav-new input { width: 100%; padding: 8px 10px; font-size: 14px; }
body.dragging-msg #nav a[data-folder="inbox"] { outline: none !important; }
.folder-tools { display: flex; gap: 8px; padding: 10px 20px; border-bottom: 1px solid var(--line); }
.folder-tools[hidden] { display: none; }
.move-select { position: relative; display: inline-flex; align-items: center; }
.move-select svg { position: absolute; left: 12px; width: 16px; height: 16px; pointer-events: none; color: var(--muted); }
.move-select select { appearance: none; padding: 8px 32px 8px 36px; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6965' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 14px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.move-select select:hover { background-color: var(--bg); }
.move-select select:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }

/* ---------- kleur per contact ---------- */
.avatar.c-blauw { background: #e3ecf9; color: #1e4f91; }
.avatar.c-paars { background: #ece6f7; color: #5b3a9a; }
.avatar.c-roze { background: #f9e4ee; color: #9a2c62; }
.avatar.c-rood { background: #f9e3e0; color: #a3342a; }
.avatar.c-oranje { background: #fbe9da; color: #a0521a; }
.avatar.c-geel { background: #f8f0cc; color: #7a6210; }
.avatar.c-groen { background: #dcefd8; color: #2f6b25; }
.avatar.c-grijs { background: #e8eae8; color: #4a5250; }
.color-field { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.color-field legend { padding: 0; margin-bottom: 8px; font-weight: 600; font-size: 14px; }
.color-field legend em { font-style: normal; font-weight: 400; color: var(--muted); margin-left: 4px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 6px; }
.swatch { position: relative; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.swatch input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.swatch:has(input:checked) { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.swatch:has(input:focus-visible) { outline: 3px solid var(--accent-soft); outline-offset: 4px; }
.swatch.none { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); background-image: linear-gradient(135deg, transparent 46%, var(--line) 46%, var(--line) 54%, transparent 54%); }
.swatch.none:has(input:checked) { box-shadow: inset 0 0 0 1px var(--line), 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.swatch.c-blauw { background: #3b73c4; }
.swatch.c-paars { background: #7b55c4; }
.swatch.c-roze { background: #c84a87; }
.swatch.c-rood { background: #c9473b; }
.swatch.c-oranje { background: #d9772b; }
.swatch.c-geel { background: #d9b42b; }
.swatch.c-groen { background: #4a9a3d; }
.swatch.c-grijs { background: #7d8784; }

/* ---------- backupstatus in Beheer ---------- */
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.backup-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.backup-head h2 { margin: 0; }
.backup-summary { margin: 0 0 14px; color: var(--ink); }
.backup-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px; margin: 0 0 12px; font-size: 14px; }
.backup-facts dt { color: var(--muted); }
.backup-facts dd { margin: 0; font-variant-numeric: tabular-nums; }
.backup-versions summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--accent); }
.backup-versions ul { list-style: none; margin: 10px 0 0; padding: 0; font-size: 14px; }
.backup-versions li { display: flex; gap: 16px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.backup-versions li code { margin-left: auto; font-size: 12px; }
@media (max-width: 560px) { .backup-facts { grid-template-columns: 1fr; gap: 2px; } .backup-facts dd { margin-bottom: 8px; } }
