/* Ordava 1.0 — huisstijl afgeleid van het logo (navy + blauw/cyaan) */
:root {
  --navy: #0B1730; --navy-2: #12224A; --navy-3: #1B2F5E;
  --accent: #2563EB; --accent-2: #0EA5E9; --cyan: #22D3EE;
  --grad: linear-gradient(135deg, #2563EB 0%, #0EA5E9 60%, #22D3EE 100%);
  --bg: #F4F6FA; --surface: #FFFFFF; --surface-2: #F8FAFD; --hover: #F1F5FB; --sel: #EAF1FF;
  --ink: #0F1B33; --ink-2: #44526B; --muted: #7A879C; --line: #E5EAF2; --line-2: #EEF2F7;
  --red: #DC2626; --red-bg: #FEECEC; --orange: #EA7A0C; --orange-bg: #FFF2E2; --green: #15924F; --green-bg: #E5F6EC;
  --yellow-bg: #FFF8DB; --purple: #7C3AED; --purple-bg: #F1EAFE; --blue-bg: #E8F0FE;
  --radius: 14px; --radius-sm: 9px; --shadow: 0 1px 2px rgba(15,27,51,.04), 0 4px 16px rgba(15,27,51,.05);
  --shadow-lg: 0 10px 40px rgba(15,27,51,.14);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
html[data-theme="donker"] {
  --bg: #0A1222; --surface: #111C33; --surface-2: #0E182D; --hover: #17233F; --sel: #1A2C55;
  --ink: #E8EEF9; --ink-2: #B4C0D6; --muted: #8391AA; --line: #22304D; --line-2: #1B2843;
  --red-bg: #3A1720; --orange-bg: #3A2512; --green-bg: #11321F; --yellow-bg: #33300F; --purple-bg: #2A1C4A; --blue-bg: #15284F;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] {
    --bg: #0A1222; --surface: #111C33; --surface-2: #0E182D; --hover: #17233F; --sel: #1A2C55;
    --ink: #E8EEF9; --ink-2: #B4C0D6; --muted: #8391AA; --line: #22304D; --line-2: #1B2843;
    --red-bg: #3A1720; --orange-bg: #3A2512; --green-bg: #11321F; --yellow-bg: #33300F; --purple-bg: #2A1C4A; --blue-bg: #15284F;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); font-size: 14px; line-height: 1.5; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 24px; letter-spacing: -.5px; margin: 0 0 4px; font-weight: 750; }
h2 { font-size: 16px; margin: 0 0 12px; font-weight: 700; letter-spacing: -.2px; }
h3 { font-size: 14px; margin: 0 0 8px; font-weight: 700; }
p { margin: 0 0 10px; }
small, .muted { color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }

/* ---------- app shell ---------- */
.app { display: grid; grid-template-columns: 236px 1fr; height: 100vh; }
.nav { background: var(--navy); color: #C9D5EA; display: flex; flex-direction: column; padding: 18px 12px; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 18px; color: #fff; font-weight: 800; letter-spacing: 2px; font-size: 15px; }
.brand img { width: 30px; height: 30px; }
.brand small { display: block; color: #7E90B3; letter-spacing: .8px; font-size: 9.5px; font-weight: 700; margin-top: -2px; }
.nav .compose-btn { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--grad); color: #fff; font-weight: 700;
  border-radius: 11px; padding: 10px; margin: 0 4px 16px; box-shadow: 0 6px 18px rgba(37,99,235,.35); }
.nav .compose-btn:hover { text-decoration: none; filter: brightness(1.06); }
.nav-sec { font-size: 10.5px; font-weight: 800; letter-spacing: 1.3px; color: #6F82A8; padding: 14px 10px 6px; }
.nav a.item { display: flex; align-items: center; gap: 10px; color: #C9D5EA; padding: 8px 10px; border-radius: 9px; font-weight: 550; }
.nav a.item:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.nav a.item.on { background: rgba(37,99,235,.28); color: #fff; box-shadow: inset 3px 0 0 var(--cyan); }
.nav a.item .ic { width: 18px; text-align: center; opacity: .9; font-size: 14px; }
.nav a.item .cnt { margin-left: auto; background: rgba(255,255,255,.12); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; }
.nav a.item .cnt.hot { background: #EF4444; }
.nav .spacer { flex: 1; }
.nav .me { border-top: 1px solid rgba(255,255,255,.08); margin-top: 12px; padding: 12px 8px 0; display: flex; align-items: center; gap: 10px; }
.nav .me .who { flex: 1; min-width: 0; }
.nav .me .who b { color: #fff; display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav .me .who a { color: #8FA2C5; font-size: 12px; }
.nav .me button { background: none; border: 0; color: #8FA2C5; cursor: pointer; font-size: 12px; padding: 4px; }
.nav .me button:hover { color: #fff; }

.main { overflow-y: auto; min-width: 0; }
.page { padding: 26px 32px 48px; max-width: 1320px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head .sub { color: var(--muted); margin: 0; }

/* ---------- components ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.card + .card { margin-top: 16px; }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-head h2 { margin: 0; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .g-side { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.stat .lbl { color: var(--muted); font-size: 12px; font-weight: 650; }
.stat .val { font-size: 26px; font-weight: 800; letter-spacing: -.8px; margin-top: 2px; }
.stat .hint { color: var(--muted); font-size: 12px; }
.hero { background: var(--navy) ; background: linear-gradient(120deg, #0B1730 0%, #14295A 58%, #1D5FD8 100%); color: #fff; border-radius: 18px;
  padding: 24px 28px; margin-bottom: 20px; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.hero::after { content: ""; position: absolute; right: -60px; top: -80px; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,.35), transparent 65%); }
.hero h1 { color: #fff; } .hero p { color: #BFD0EE; margin: 0; }
.hero .eyebrow { color: #7DE3F4; font-size: 11px; font-weight: 800; letter-spacing: 1.6px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font: inherit; font-weight: 650; font-size: 13px; padding: 7px 13px; border-radius: var(--radius-sm); cursor: pointer;
  white-space: nowrap; line-height: 1.3; }
.btn:hover { background: var(--hover); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.07); background: var(--accent); }
.btn.grad { background: var(--grad); border: 0; color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--hover); }
.btn.danger { color: var(--red); }
.btn.sm { padding: 4px 9px; font-size: 12px; border-radius: 7px; }
.btn.lg { padding: 10px 18px; font-size: 14px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; filter: none; }
.btn.loading { pointer-events: none; opacity: .7; }
.btn.loading::after { content: ""; width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
form.inline { display: inline; }

input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 8px 11px; outline: none; transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
label.f { display: block; font-weight: 650; font-size: 12.5px; color: var(--ink-2); margin: 12px 0 5px; }
label.f:first-child { margin-top: 0; }
.help { color: var(--muted); font-size: 12px; margin-top: 4px; }
.check { display: flex; align-items: flex-start; gap: 9px; margin: 10px 0; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--accent); }
.check b { display: block; font-weight: 650; }
.check span { color: var(--muted); font-size: 12.5px; }

.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px;
  background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.badge.p-Kritiek { background: var(--red-bg); color: var(--red); }
.badge.p-Hoog { background: var(--orange-bg); color: var(--orange); }
.badge.p-Normaal { background: var(--blue-bg); color: var(--accent); }
.badge.p-Laag { background: var(--line-2); color: var(--muted); }
.badge.s-open { background: var(--blue-bg); color: var(--accent); }
.badge.s-wacht { background: var(--yellow-bg); color: #9A6B00; }
.badge.s-afgerond { background: var(--green-bg); color: var(--green); }
.badge.s-spam { background: var(--line-2); color: var(--muted); }
.badge.ai { background: var(--purple-bg); color: var(--purple); }
.badge.test { background: var(--yellow-bg); color: #8A6100; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; flex: none; }

.avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none;
  font-weight: 750; font-size: 12.5px; color: #fff; background: var(--grad); letter-spacing: .3px; }
.avatar.sm { width: 26px; height: 26px; font-size: 10.5px; }
.avatar.out { background: linear-gradient(135deg, #334155, #64748B); }
.avatar.c1 { background: linear-gradient(135deg, #7C3AED, #A78BFA); } .avatar.c2 { background: linear-gradient(135deg, #0D9488, #2DD4BF); }
.avatar.c3 { background: linear-gradient(135deg, #DB2777, #F472B6); } .avatar.c4 { background: linear-gradient(135deg, #EA580C, #FB923C); }

table.t { width: 100%; border-collapse: collapse; }
table.t th { text-align: left; font-size: 11.5px; font-weight: 750; color: var(--muted); text-transform: uppercase; letter-spacing: .6px;
  padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
table.t td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr:hover td { background: var(--hover); }
table.t td.num { text-align: right; font-variant-numeric: tabular-nums; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 9px 14px; color: var(--ink-2); font-weight: 650; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.on { color: var(--accent); border-color: var(--accent); }
.seg { display: inline-flex; background: var(--line-2); border-radius: 10px; padding: 3px; gap: 2px; }
.seg a { padding: 5px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 650; font-size: 12.5px; }
.seg a.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.seg a:hover { text-decoration: none; }

.empty { text-align: center; color: var(--muted); padding: 48px 20px; }
.empty .big { font-size: 36px; margin-bottom: 8px; opacity: .6; }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.list-plain li:last-child { border-bottom: 0; }
.list-plain .grow { flex: 1; min-width: 0; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- toasts ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: flex; flex-direction: column; gap: 8px; max-width: 420px; }
.toast { background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); font-weight: 550;
  display: flex; gap: 10px; align-items: flex-start; animation: toast-in .25s ease-out; }
.toast.error { background: #B91C1C; }
.toast button { background: none; border: 0; color: #fff; opacity: .7; cursor: pointer; margin-left: auto; font-size: 16px; line-height: 1; }
@keyframes toast-in { from { transform: translateY(10px); opacity: 0; } }

/* ---------- banner ---------- */
.banner { display: flex; align-items: center; gap: 10px; padding: 9px 16px; font-size: 13px; font-weight: 600; border-bottom: 1px solid var(--line); }
.banner.test { background: var(--yellow-bg); color: #7A5600; }
.banner.off { background: var(--line-2); color: var(--ink-2); }
html[data-theme="donker"] .banner.test { color: #F3D27A; }

/* ---------- inbox (3 panelen) ---------- */
.inbox { display: grid; grid-template-columns: 372px minmax(0, 1fr); height: 100vh; }
.inbox.has-banner { height: calc(100vh - 39px); }
.tl { border-right: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; min-height: 0; }
.tl-head { padding: 14px 14px 10px; border-bottom: 1px solid var(--line); }
.tl-head .row { display: flex; gap: 8px; align-items: center; }
.tl-head h1 { font-size: 18px; margin: 0; flex: 1; }
.search { position: relative; margin-top: 10px; }
.search input { padding-left: 32px; background: var(--surface-2); }
.search::before { content: "⌕"; position: absolute; left: 11px; top: 6px; color: var(--muted); font-size: 16px; }
.views { display: flex; gap: 4px; margin-top: 10px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.views a { font-size: 12px; font-weight: 650; padding: 4px 10px; border-radius: 99px; color: var(--ink-2); background: var(--line-2); white-space: nowrap; }
.views a.on { background: var(--navy); color: #fff; }
html[data-theme="donker"] .views a.on { background: var(--accent); }
.views a:hover { text-decoration: none; }
.filters { display: flex; gap: 6px; margin-top: 8px; }
.filters select { padding: 4px 8px; font-size: 12px; border-radius: 7px; }
.tl-items { overflow-y: auto; flex: 1; }
.ti { display: flex; gap: 11px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); color: var(--ink); position: relative; }
.ti:hover { background: var(--hover); text-decoration: none; }
.ti.on { background: var(--sel); }
.ti.on::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.ti .body { flex: 1; min-width: 0; }
.ti .l1 { display: flex; align-items: center; gap: 6px; }
.ti .name { font-weight: 600; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ti.unread .name, .ti.unread .subj { font-weight: 800; }
.ti .time { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.ti .subj { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ti .snip { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ti .tags { display: flex; gap: 4px; margin-top: 5px; flex-wrap: wrap; align-items: center; }
.ti .tags .meta { color: var(--muted); font-size: 11px; }

.conv { display: grid; grid-template-columns: minmax(0, 1fr) 330px; min-height: 0; }
.conv-main { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.conv-head { padding: 14px 22px; border-bottom: 1px solid var(--line); background: var(--surface); display: flex; align-items: flex-start; gap: 12px; }
.conv-head .title { flex: 1; min-width: 0; }
.conv-head h2 { font-size: 17px; margin: 0 0 4px; }
.conv-head .meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 12.5px; }
.toolbar { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.msgs { overflow-y: auto; flex: 1; padding: 20px 22px 8px; background: var(--bg); }
.msg { display: flex; gap: 12px; margin-bottom: 14px; }
.msg .bubble { flex: 1; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 13px 16px; box-shadow: var(--shadow); }
.msg.out .bubble { background: linear-gradient(0deg, var(--surface), var(--surface)); border-color: #C9DAFB; }
html[data-theme="donker"] .msg.out .bubble { border-color: #284A8A; }
.msg.out { flex-direction: row-reverse; }
.msg.out .bubble { border-top-right-radius: 4px; } .msg.in .bubble { border-top-left-radius: 4px; }
.msg .mh { display: flex; gap: 8px; align-items: baseline; margin-bottom: 6px; flex-wrap: wrap; }
.msg .mh b { font-weight: 700; }
.msg .mh .addr { color: var(--muted); font-size: 12px; }
.msg .mh .time { margin-left: auto; color: var(--muted); font-size: 12px; }
.msg .text { white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; color: var(--ink); }
.msg .quoted { margin-top: 8px; }
.msg .quoted summary { color: var(--muted); font-size: 12px; cursor: pointer; list-style: none; }
.msg .quoted summary::-webkit-details-marker { display: none; }
.msg .quoted .text { color: var(--muted); border-left: 3px solid var(--line); padding-left: 10px; margin-top: 6px; font-size: 13px; }
.msg.collapsed .text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.atts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.att { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; background: var(--surface-2);
  color: var(--ink); font-size: 12.5px; max-width: 280px; }
.att:hover { border-color: var(--accent); text-decoration: none; }
.att .ext { font-size: 10px; font-weight: 800; color: #fff; background: var(--accent); border-radius: 5px; padding: 2px 5px; text-transform: uppercase; }
.att .ext.pdf { background: #DC2626; } .att .ext.xlsx, .att .ext.xls, .att .ext.csv { background: #15924F; }
.att .ext.docx, .att .ext.doc { background: #2563EB; } .att .ext.png, .att .ext.jpg, .att .ext.jpeg { background: #7C3AED; }
.att .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.att .sz { color: var(--muted); font-size: 11px; }
.att-links { display: inline-flex; gap: 6px; font-size: 11px; }

.composer { border-top: 1px solid var(--line); background: var(--surface); padding: 12px 22px 14px; }
.composer .ai-bar { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.composer .ai-bar input[type=text] { flex: 1; min-width: 180px; padding: 6px 10px; font-size: 13px; }
.composer textarea { min-height: 110px; max-height: 46vh; font-size: 14px; border-radius: 12px; }
.composer .row2 { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.composer .addr { display: grid; grid-template-columns: 34px 1fr 34px 1fr; gap: 6px; align-items: center; margin-bottom: 8px; font-size: 12.5px; color: var(--muted); }
.composer .addr input { padding: 5px 9px; font-size: 13px; }
.composer .warn { background: var(--yellow-bg); border-radius: 10px; padding: 8px 12px; font-size: 12.5px; margin-bottom: 8px; color: #7A5600; }
html[data-theme="donker"] .composer .warn { color: #F3D27A; }
.composer .saved { color: var(--muted); font-size: 12px; }
.file-label { cursor: pointer; }
.file-label input { display: none; }
.file-names { color: var(--muted); font-size: 12px; }
.send-confirm { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); margin-left: auto; }

details.menu { position: relative; }
details.menu > summary { list-style: none; }
details.menu > summary::-webkit-details-marker { display: none; }
details.menu .pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; min-width: 210px; }
details.menu.up .pop { top: auto; bottom: calc(100% + 6px); left: 0; right: auto; }
details.menu .pop button, details.menu .pop a { display: block; width: 100%; text-align: left; background: none; border: 0; font: inherit; color: var(--ink);
  padding: 7px 10px; border-radius: 8px; cursor: pointer; font-size: 13px; }
details.menu .pop button:hover, details.menu .pop a:hover { background: var(--hover); text-decoration: none; }
details.menu .pop .sep { border-top: 1px solid var(--line); margin: 5px 0; }
details.menu .pop .lbl { font-size: 11px; color: var(--muted); font-weight: 700; padding: 6px 10px 2px; text-transform: uppercase; letter-spacing: .5px; }

.side { border-left: 1px solid var(--line); background: var(--surface); overflow-y: auto; padding: 16px; }
.side .sec { margin-bottom: 18px; }
.side .sec-t { font-size: 11px; font-weight: 800; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; margin-bottom: 8px;
  display: flex; align-items: center; justify-content: space-between; }
.ai-card { border-radius: 12px; background: linear-gradient(160deg, rgba(37,99,235,.08), rgba(34,211,238,.06)); border: 1px solid rgba(37,99,235,.18); padding: 12px 13px; }
.ai-card .sum { font-weight: 550; margin-bottom: 8px; }
.ai-card .intent { font-size: 12.5px; color: var(--ink-2); }
.kv { display: grid; grid-template-columns: 92px 1fr; gap: 4px 8px; font-size: 12.5px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; word-break: break-word; }
.task { display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; font-size: 13px; }
.task.done .tt { text-decoration: line-through; color: var(--muted); }
.task .due { color: var(--muted); font-size: 11.5px; }
.task .due.late { color: var(--red); font-weight: 700; }
.task form { display: inline; }
.task .chk { width: 16px; height: 16px; border: 1.5px solid var(--muted); border-radius: 5px; background: none; cursor: pointer; flex: none; margin-top: 2px; padding: 0; }
.task.done .chk { background: var(--green); border-color: var(--green); }
.mini-form { display: flex; gap: 6px; margin-top: 6px; }
.mini-form input { padding: 5px 8px; font-size: 12.5px; }

.blank { display: flex; align-items: center; justify-content: center; flex-direction: column; color: var(--muted); height: 100%; text-align: center; padding: 30px; }
.blank img { width: 64px; opacity: .9; margin-bottom: 14px; }
.blank h2 { color: var(--ink); }
.kbd { display: inline-block; font-size: 11px; font-weight: 700; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; color: var(--ink-2); background: var(--surface); }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth .art { background: linear-gradient(135deg, #0B1730 0%, #14295A 55%, #1D5FD8 100%); color: #fff; padding: 56px; display: flex; flex-direction: column;
  justify-content: space-between; position: relative; overflow: hidden; }
.auth .art::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,.35), transparent 65%); }
.auth .art h1 { font-size: 34px; color: #fff; max-width: 440px; line-height: 1.15; letter-spacing: -1px; }
.auth .art p { color: #BFD0EE; max-width: 420px; font-size: 15px; }
.auth .art ul { padding: 0; list-style: none; color: #DCE6F7; }
.auth .art li { margin: 8px 0; } .auth .art li::before { content: "✓  "; color: var(--cyan); font-weight: 800; }
.auth .formside { display: flex; align-items: center; justify-content: center; padding: 40px; background: var(--surface); }
.auth form { width: 100%; max-width: 360px; }

/* ---------- bars ---------- */
.bar-row { display: grid; grid-template-columns: 140px 1fr 44px; gap: 10px; align-items: center; margin: 7px 0; font-size: 13px; }
.bar { height: 9px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--grad); border-radius: 99px; }
.cols { display: flex; align-items: flex-end; gap: 3px; height: 150px; padding-top: 10px; }
.cols .c { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; min-width: 4px; }
.cols .c i { display: block; border-radius: 3px 3px 0 0; }
.cols .c i.in { background: #93B4F5; } .cols .c i.out { background: var(--accent); }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.steps li .n { width: 30px; height: 30px; border-radius: 50%; background: var(--line-2); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--ink-2); }
.steps li.ok .n { background: var(--green); color: #fff; }
.steps li .grow { flex: 1; font-weight: 600; }
.briefing { white-space: pre-wrap; line-height: 1.7; }

@media (max-width: 1280px) { .conv { grid-template-columns: minmax(0, 1fr); } .side { display: none; } .conv.show-side .side { display: block; } }
@media (max-width: 1000px) {
  .app { grid-template-columns: 64px 1fr; } .nav .brand span, .nav .nav-sec, .nav a.item .lbl, .nav .me .who, .nav .compose-btn .lbl { display: none; }
  .nav a.item { justify-content: center; } .nav a.item .cnt { display: none; }
  .inbox { grid-template-columns: 300px minmax(0, 1fr); } .g4, .g3 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g-side, .g2 { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; } .auth .art { display: none; }
}

.send-group { display: flex; gap: 8px; align-items: center; margin-left: auto; flex-wrap: nowrap; }
.send-group .send-confirm { margin-left: 0; }
.composer.busy textarea { opacity: .55; }
.ai-instr { flex: 1; min-width: 160px; padding: 6px 10px !important; font-size: 13px !important; }

/* ---------- 1.1: selectie, agenda, 2FA ---------- */
.ti { padding: 0; gap: 0; }
.ti .selbox { padding: 12px 0 12px 14px; cursor: pointer; display: flex; align-items: flex-start; }
.ti .selbox input { display: none; width: 18px; height: 18px; margin: 8px; accent-color: var(--accent); }
.ti:hover .selbox input, .tl.selecting .selbox input { display: block; }
.ti:hover .selbox .avatar, .tl.selecting .selbox .avatar { display: none; }
.ti .ti-link { flex: 1; min-width: 0; padding: 12px 14px 12px 11px; color: var(--ink); }
.ti .ti-link:hover { text-decoration: none; }
.bulkbar { display: flex; gap: 6px; align-items: center; padding: 8px 14px; background: var(--sel); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.bulkbar .bulk-n { font-size: 12.5px; margin-right: 4px; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.day { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-height: 360px; padding: 10px; box-shadow: var(--shadow); }
.day.off { background: var(--surface-2); }
.day.today { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(37,99,235,.15); }
.day-h { display: flex; align-items: baseline; gap: 6px; padding: 2px 4px 10px; border-bottom: 1px solid var(--line-2); margin-bottom: 8px; color: var(--muted); }
.day-h b { font-size: 20px; color: var(--ink); } .day.today .day-h b { color: var(--accent); }
.day-h span { text-transform: uppercase; font-size: 11px; font-weight: 800; letter-spacing: .5px; }
.ev { border-left: 3px solid var(--accent); background: var(--blue-bg); border-radius: 8px; padding: 7px 9px; margin-bottom: 7px; font-size: 12.5px; }
.ev.ext { border-left-color: var(--muted); background: var(--line-2); }
.ev-t { font-weight: 800; font-size: 11.5px; color: var(--accent); } .ev.ext .ev-t { color: var(--muted); }
.ev-n { font-weight: 650; margin: 1px 0; word-break: break-word; }
.ev-l { color: var(--ink-2); font-size: 11.5px; }
.ev-a { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 11.5px; margin-top: 4px; align-items: center; }
.day-empty { color: var(--muted); font-size: 12px; text-align: center; padding-top: 20px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--red); cursor: pointer; font: inherit; font-size: 11.5px; }
details.plan > summary { list-style: none; margin-top: 6px; } details.plan > summary::-webkit-details-marker { display: none; }
.plan-form { margin-top: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.plan-form label.f { margin-top: 8px; } .plan-form input, .plan-form select { padding: 6px 9px; font-size: 13px; }
.slots { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.slot { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 4px 10px; font-size: 12px; cursor: pointer; font-weight: 600; color: var(--ink); }
.slot:hover, .slot.on { border-color: var(--accent); color: var(--accent); background: var(--blue-bg); }
.cal-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--accent); margin-top: 5px; flex: none; }
.task .grow { flex: 1; min-width: 0; }
.secret { font-family: ui-monospace, Menlo, monospace; font-size: 17px; letter-spacing: 2px; background: var(--surface-2); border: 1px dashed var(--line);
  border-radius: 10px; padding: 12px; text-align: center; word-break: break-all; margin: 8px 0; }
.code-input { font-size: 24px !important; letter-spacing: 8px; text-align: center; font-variant-numeric: tabular-nums; }
.daypick input { display: none; } .daypick span { display: inline-block; width: 38px; text-align: center; padding: 6px 0; border-radius: 9px; border: 1px solid var(--line); font-weight: 700; cursor: pointer; }
.daypick input:checked + span { background: var(--accent); color: #fff; border-color: var(--accent); }
details.menu .pop button.danger { color: var(--red); }
.newmail { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 60; background: var(--navy); color: #fff; padding: 9px 16px; border-radius: 99px; box-shadow: var(--shadow-lg); font-weight: 650; }
.newmail a { color: var(--cyan); margin-left: 8px; }
@media (max-width: 1000px) { .week { grid-template-columns: 1fr; } .day { min-height: 0; } }
/* rollen en mailboxtoegang */
.access-form { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.access-form select { width: auto; }
.mb-list { display: flex; flex-direction: column; gap: 4px; margin: 4px 0; font-size: 13px; }
.mb-list label { display: flex; gap: 6px; align-items: center; font-weight: 400; }
/* demo */
.banner.demo { background: linear-gradient(90deg, #EEF4FF, #F3EEFF); color: #1E2A4A; border-bottom: 1px solid #D9E3F7; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.banner.demo .btn { margin-left: auto; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent, #2563EB); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }
.demo-cta { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line, #E5E9F2); display: flex; flex-direction: column; gap: 8px; text-align: center; }
.demo-cta .btn { width: 100%; justify-content: center; }
