:root { --bg: #f4f5f3; --surface: #fff; --line: #e1e4e0; --accent: #3764ff; --text: #151a22; --muted: #64707d; --ok: #1a7f4b; --bad: #b3261e; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
.muted { color: var(--muted); }
.center { text-align: center; }
h1 { font-size: 22px; margin: 0 0 8px; }
h2 { font-size: 17px; margin: 0 0 10px; }
.wrap { max-width: 900px; margin: 0 auto; padding: 16px; }
.top { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 12px 0 18px; flex-wrap: wrap; }
.brand { font-weight: 700; color: var(--accent); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-bottom: 16px; }
.narrow { max-width: 420px; margin: 12vh auto 0; }
form { display: grid; gap: 12px; }
label { font-weight: 600; font-size: 14px; }
input, textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: inherit; }
textarea { min-height: 90px; resize: vertical; }
:focus-visible { outline: 3px solid rgba(55, 100, 255, 0.45); outline-offset: 2px; }
.btn { font: inherit; font-weight: 600; padding: 9px 16px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--text); cursor: pointer; min-height: 40px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.small { padding: 4px 10px; min-height: 32px; font-size: 14px; }
.btn:disabled { opacity: 0.6; cursor: default; }
.banner { background: #fdecea; border: 1px solid #f3b9b4; color: var(--bad); border-radius: 8px; padding: 10px 12px; margin-bottom: 14px; }
.banner.info { background: #eef2ff; border-color: #c9d4ff; color: #223a99; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.list a, .list button.item { display: block; width: 100%; text-align: left; font: inherit; color: inherit; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; }
.list a:hover, .list button.item:hover { border-color: var(--accent); }
.badge { display: inline-block; font-size: 12px; font-weight: 600; background: #eef2ff; color: #223a99; border-radius: 99px; padding: 1px 9px; margin-left: 6px; }
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
td.wrapcell { white-space: normal; min-width: 140px; }
th { color: var(--muted); font-weight: 600; }
td.num, th.num { text-align: right; }
a { color: var(--accent); }
.msgs { display: grid; gap: 10px; margin-bottom: 14px; }
.msg { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; max-width: 85%; }
.msg.klant { justify-self: end; background: #eef2ff; border-color: #c9d4ff; }
.msg .who { font-size: 12px; color: var(--muted); }
.msg .body { white-space: pre-wrap; overflow-wrap: anywhere; }
.overlay { position: fixed; inset: 0; background: rgba(11, 16, 35, 0.5); display: grid; place-items: center; padding: 16px; z-index: 10; }
.dialog { background: #fff; border-radius: 12px; padding: 22px; width: min(100%, 420px); }
.dialog .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.ok { color: var(--ok); font-weight: 600; }
@media (max-width: 600px) { .msg { max-width: 100%; } .wrap { padding: 12px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
