/* Dashboard. Kleuren, typografie, radius en schaduw komen uit ../t/platform.css. */
:root { --top:66px; }
* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
body { margin:0; font-family:var(--font-body); font-size:16px; line-height:1.5; color:var(--ink); background:var(--cream); -webkit-font-smoothing:antialiased; }
body.has-modal { overflow:hidden; }
h1,h2,h3 { font-family:var(--font-display); font-weight:400; color:var(--head); letter-spacing:.01em; margin:0; line-height:1.2; }
h1 { font-size:34px; }
h2 { font-size:22px; }
h3 { font-size:18px; }
p { margin:0; }
a { color:var(--link); text-underline-offset:3px; text-decoration-thickness:1px; }
a:hover { color:var(--head); }
button, input, select, textarea { font:inherit; color:inherit; }
::selection { background:var(--apricot-200); color:var(--petrol-950); }
:focus-visible { outline:2px solid var(--edge-ink); outline-offset:2px; box-shadow:0 0 0 5px var(--apricot); border-radius:var(--r-sm); }
[hidden] { display:none !important; }
.sr { position:absolute !important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; padding:0; margin:-1px; }
.skip { position:absolute; left:12px; top:-60px; background:var(--petrol-900); color:#fff; padding:10px 14px; border-radius:var(--r-sm); z-index:200; }
.skip:focus { top:12px; color:#fff; }
.mono { font-family:var(--font-mono); font-size:.92em; }
.muted { color:var(--ink2); }
.small { font-size:13px; }
.ic { flex:none; }

.boot, .loading { display:flex; align-items:center; justify-content:center; gap:12px; padding:80px 20px; color:var(--ink2); }
.spinner { width:18px; height:18px; border-radius:50%; border:2px solid var(--line-strong); border-top-color:var(--edge-accent); animation:spin .7s linear infinite; flex:none; }
@keyframes spin { to { transform:rotate(360deg); } }

/* ---------- basis ---------- */
.row { display:flex; align-items:center; gap:8px; }
.row.center { justify-content:center; }
.row.wrap { flex-wrap:wrap; }
.stack { display:flex; flex-direction:column; gap:20px; min-width:0; }
.narrow { max-width:760px; }
.card { background:var(--paper); border:1px solid var(--line); border-radius:var(--r); }
.card.pad { padding:24px; }
.card.pad > h2, .card.pad > h3 { margin-bottom:6px; }
.card.pad > h2 + .field, .card.pad > h2 + .grid2 { margin-top:16px; }
.card.pad > h2 + .muted, .card.pad > h3 + .muted { margin-bottom:16px; }
.card-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; flex-wrap:wrap; }
.center-card { max-width:460px; margin:60px auto; text-align:center; display:grid; gap:14px; }
.grid2 { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 16px; }
.grid2.grid-21 { grid-template-columns:minmax(0,2fr) minmax(0,1fr); }

.badge { display:inline-flex; align-items:center; font-size:11.5px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; line-height:1; padding:5px 8px 4px; border-radius:3px; background:var(--sand); color:var(--ink2); white-space:nowrap; box-shadow:inset 0 0 0 1px rgba(11,46,53,.08); }
.badge-green { background:var(--petrol-600); color:#fff; box-shadow:none; }
.badge-amber { background:var(--apricot-100); color:var(--apricot-ink); }
.badge-blue { background:var(--petrol-100); color:var(--link); }
.badge-purple { background:var(--plum-soft); color:var(--plum); }

.notice { display:flex; gap:12px; align-items:flex-start; padding:14px 16px; border-radius:var(--r-sm); background:var(--sand); color:var(--ink); font-size:15px; border-left:3px solid var(--line-strong); }
.notice > .ic { margin-top:2px; color:var(--ink2); }
.notice > div { min-width:0; }
.notice-info { background:var(--petrol-50); border-left-color:var(--edge-hover); }
.notice-ok { background:var(--petrol-100); border-left-color:var(--edge-accent); } .notice-ok > .ic { color:var(--link); }
.notice-warn { background:var(--apricot-100); border-left-color:var(--apricot-600); } .notice-warn > .ic { color:var(--apricot-ink); }
.notice-danger { background:var(--danger-soft); border-left-color:var(--danger); } .notice-danger > .ic { color:var(--danger); }

.empty { text-align:center; padding:52px 24px; display:grid; justify-items:center; gap:8px; }
.empty-ic { width:54px; height:54px; position:relative; color:var(--link); display:grid; place-items:center; margin-bottom:14px; }
.empty-ic::before { content:''; position:absolute; inset:5px; transform:rotate(45deg); background:var(--petrol-50); border:1px solid var(--gold-soft); box-shadow:0 0 0 4px var(--paper), 0 0 0 5px var(--gold-soft); }
.empty-ic .ic { position:relative; }
.empty h3 { font-size:22px; }
.empty p { color:var(--ink2); max-width:420px; }
.empty .btn { margin-top:10px; }

/* ---------- knoppen ---------- */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:9px 18px; border-radius:var(--r-sm); border:1px solid var(--line-strong); background:var(--paper); color:var(--head); font-weight:500; font-size:15.5px; letter-spacing:.02em; text-decoration:none; cursor:pointer; white-space:nowrap; transition:border-color .15s, background .15s, box-shadow .15s; }
.btn:hover { border-color:var(--edge-accent); color:var(--head); background:var(--raise); }
.btn:active { transform:scale(.985); }
.btn:disabled { opacity:.5; cursor:default; transform:none; }
.btn:disabled:hover { border-color:var(--line-strong); }
.btn-primary { background:var(--apricot); border-color:var(--apricot-600); color:var(--petrol-950); font-weight:600; box-shadow:0 1px 0 rgba(255,255,255,.35) inset, 0 1px 2px rgba(11,46,53,.12); }
.btn-primary:hover { color:var(--petrol-950); border-color:var(--apricot-600); background:var(--apricot-600); box-shadow:0 6px 16px -4px rgba(232,147,90,.55); }
.btn-primary:disabled { box-shadow:none; background:var(--apricot); }
.btn-danger { background:var(--danger-fill); border-color:transparent; color:#fff; }
.btn-danger:hover { color:#fff; border-color:transparent; filter:brightness(1.08); }
.btn-danger-ghost { color:var(--danger); }
.btn-danger-ghost:hover { border-color:var(--danger); color:var(--danger); background:var(--danger-soft); }
.btn-lg { min-height:52px; padding:12px 30px; font-size:17px; letter-spacing:.04em; }
.btn-sm { min-height:34px; padding:5px 11px; font-size:13.5px; border-radius:var(--r-sm); gap:6px; }
.btn-block { width:100%; }
.btn.is-busy { position:relative; color:transparent !important; }
.btn.is-busy > * { visibility:hidden; }
.btn.is-busy::after { content:''; position:absolute; width:16px; height:16px; border-radius:50%; border:2px solid rgba(0,0,0,.2); border-top-color:var(--edge-ink); animation:spin .7s linear infinite; }
.btn-danger.is-busy::after { border-color:rgba(255,255,255,.4); border-top-color:#fff; }
.icon-btn { display:inline-grid; place-items:center; width:36px; height:36px; border-radius:var(--r-sm); border:0; background:none; color:var(--ink2); cursor:pointer; text-decoration:none; flex:none; }
.icon-btn:hover { background:var(--sand); color:var(--head); }
.icon-btn:disabled { opacity:.3; cursor:default; background:none; }
.icon-btn.icon-danger:hover { background:var(--danger-soft); color:var(--danger); }
.icon-btn.is-busy { opacity:.5; }
.link-btn { background:none; border:0; padding:4px; color:var(--link); text-decoration:underline; text-underline-offset:3px; cursor:pointer; font-weight:500; }

/* ---------- formulieren ---------- */
.field { margin-bottom:16px; min-width:0; }
.field > label, .field > .label { display:block; font-size:14.5px; font-weight:500; color:var(--head); margin-bottom:6px; letter-spacing:.01em; }
.opt { font-weight:400; color:var(--ink3); }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=search], input[type=datetime-local], select, textarea {
  width:100%; min-height:44px; padding:10px 12px; border:1px solid var(--line-strong); border-radius:var(--r-sm); background:var(--paper); color:var(--ink); font-size:16px; line-height:1.4; transition:border-color .15s, box-shadow .15s; min-width:0; }
@media (min-width:720px) { input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=search], input[type=datetime-local], select, textarea { font-size:15px; } }
textarea { resize:vertical; min-height:80px; }
select { appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236A6A6A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 12px center; padding-right:36px; }
input:hover, select:hover, textarea:hover { border-color:var(--edge-hover); }
input:focus, select:focus, textarea:focus { outline:none; border-color:var(--edge-accent); box-shadow:0 0 0 3px var(--apricot-200); }
input[readonly] { background:var(--sand); color:var(--ink); }
input[aria-invalid=true], textarea[aria-invalid=true] { border-color:var(--danger); }
::placeholder { color:var(--ink3); }
.hint { font-size:14px; color:var(--ink2); margin-top:6px; }
.error, .form-error { font-size:14px; color:var(--danger); margin-top:6px; font-weight:500; }
.form-error { background:var(--danger-soft); padding:10px 12px; border-radius:var(--r); margin:0 0 14px; }
.form-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:8px; flex-wrap:wrap; }
.form-actions.start { justify-content:flex-start; margin-top:16px; }
.affix { position:relative; }
.affix > span { position:absolute; left:13px; top:50%; transform:translateY(-50%); color:var(--ink2); pointer-events:none; }
.affix > input { padding-left:30px; }
.hp { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

.switch { display:flex; align-items:flex-start; gap:12px; cursor:pointer; position:relative; }
.switch input { position:absolute; opacity:0; width:44px; height:26px; margin:0; cursor:pointer; }
.switch-track { flex:none; width:44px; height:26px; border-radius:999px; background:#B7C4C3; position:relative; transition:background .15s; }
.switch-track::after { content:''; position:absolute; top:3px; left:3px; width:20px; height:20px; border-radius:50%; background:var(--paper); box-shadow:0 1px 3px rgba(0,0,0,.25); transition:transform .15s; }
.switch input:checked + .switch-track { background:var(--petrol-600); }
.switch input:checked + .switch-track::after { transform:translateX(18px); }
.switch input:focus-visible + .switch-track { outline:2px solid var(--edge-ink); outline-offset:2px; box-shadow:0 0 0 5px var(--apricot); }
.switch input:disabled + .switch-track { opacity:.5; }
.switch-text { display:grid; gap:2px; padding-top:2px; font-weight:600; color:var(--head); font-size:14px; }
.switch-text:empty { display:none; }
.switch-text small { font-weight:400; color:var(--ink2); font-size:13px; }
.switches { display:grid; gap:14px; margin:6px 0 16px; padding:16px; background:var(--sand); border-radius:var(--r); }

.seg { display:inline-flex; background:var(--sand); border-radius:var(--r); padding:3px; gap:2px; max-width:100%; }
.seg button { display:inline-flex; align-items:center; gap:6px; border:0; background:none; padding:8px 14px; border-radius:var(--r-sm); font-weight:600; font-size:14px; color:var(--ink2); cursor:pointer; white-space:nowrap; }
.seg button.is-on { background:var(--paper); color:var(--head); box-shadow:0 1px 3px rgba(11,46,53,.18), inset 0 -2px 0 var(--apricot); }
.seg-sm button { padding:6px 10px; font-size:13px; }
.checks { display:grid; gap:2px; margin-top:10px; border:1px solid var(--line); border-radius:var(--r); padding:6px; }
.checkline { display:flex; align-items:center; gap:10px; padding:8px; border-radius:var(--r-sm); cursor:pointer; }
.checkline:hover { background:var(--sand); }
.checkline input { width:18px; height:18px; accent-color:var(--petrol-600); flex:none; }
.copy-row { display:flex; gap:8px; }
.copy-row input { flex:1; }
.qr { background:var(--paper); border:1px solid var(--line); border-radius:var(--r); padding:6px; flex:none; }
.qr svg { display:block; width:100%; height:100%; }
.qr-box { display:grid; justify-items:center; gap:10px; text-align:center; }
.qr-box .hint { margin:0; max-width:170px; }

/* ---------- toasts en modals ---------- */
#toasts { position:fixed; left:50%; bottom:20px; transform:translateX(-50%); z-index:300; display:grid; gap:8px; width:max-content; max-width:calc(100vw - 24px); pointer-events:none; }
.toast { display:flex; align-items:flex-start; gap:10px; background:var(--petrol-900); color:var(--on-dark); padding:12px 18px 12px 14px; border-radius:var(--r-sm); border-left:3px solid var(--apricot); font-size:15px; font-weight:500; box-shadow:var(--shadow-lg); animation:toast-in .2s ease; max-width:520px; justify-self:center; }
.toast .ic { margin-top:2px; color:var(--apricot); }
.toast-err { background:#7A1F0C; } .toast-err .ic { color:#FFC9B8; }
.toast.out { opacity:0; transform:translateY(6px); transition:opacity .2s, transform .2s; }
@keyframes toast-in { from { opacity:0; transform:translateY(8px); } }
.modal-back { position:fixed; inset:0; z-index:100; background:rgba(7,36,42,.55); display:flex; align-items:center; justify-content:center; padding:16px; animation:fade .15s ease; }
.modal-back.is-side { justify-content:flex-end; padding:0; }
@keyframes fade { from { opacity:0; } }
.modal { background:var(--paper); border-radius:var(--r); width:100%; max-width:500px; max-height:calc(100dvh - 32px); display:flex; flex-direction:column; box-shadow:var(--shadow-lg); border-top:4px double var(--apricot-600); }
.modal-wide { max-width:640px; }
.modal-side { max-width:540px; height:100dvh; max-height:none; border-radius:var(--r) 0 0 var(--r); animation:slide .2s ease; }
@keyframes slide { from { transform:translateX(30px); opacity:.6; } }
.modal-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:18px 16px 14px 24px; border-bottom:1px solid var(--line); }
.modal-head h2 { font-size:24px; }
.modal-body { padding:22px 24px; overflow-y:auto; flex:1; }
.modal-foot { display:flex; justify-content:flex-end; gap:10px; padding:14px 24px; border-top:1px solid var(--line); flex-wrap:wrap; }
.confirm-text { display:grid; gap:10px; color:var(--ink); }

/* ---------- kader ---------- */
.top { position:sticky; top:0; z-index:50; background:var(--lattice), var(--petrol-900); color:var(--on-dark); box-shadow:inset 0 -1px 0 rgba(184,147,90,.75), inset 0 -3px 0 var(--petrol-900), inset 0 -4px 0 rgba(184,147,90,.4); }
.top-in { max-width:1360px; margin:0 auto; padding:0 24px; height:var(--top); display:flex; align-items:center; gap:30px; }
.logo { color:var(--on-dark); text-decoration:none; display:inline-flex; flex:none; }
.logo:hover { color:#fff; }
.top-nav { display:flex; gap:2px; flex:1; align-self:stretch; min-width:0; }
.nav-link { display:inline-flex; align-items:center; gap:8px; min-height:40px; padding:0 14px; border:0; background:none; color:rgba(250,245,236,.8); font-weight:500; font-size:15.5px; letter-spacing:.04em; text-decoration:none; cursor:pointer; position:relative; white-space:nowrap; }
.nav-link:hover { color:#fff; }
.nav-link.is-on { color:#fff; }
.nav-link.is-on::after { content:''; position:absolute; left:14px; right:14px; bottom:9px; height:2px; background:var(--apricot); }
.top-right { display:flex; align-items:center; gap:6px; min-width:0; }
.org-name { font-size:14.5px; color:rgba(250,245,236,.72); max-width:220px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; padding-right:6px; }
.top :focus-visible { outline-color:var(--apricot); box-shadow:none; }
.main { outline:none; }
.page { max-width:1160px; margin:0 auto; padding:36px 24px 96px; display:flex; flex-direction:column; gap:22px; }
.page-narrow { max-width:820px; }
.page-event { max-width:1360px; }
.page-head { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; flex-wrap:wrap; padding-bottom:18px; border-bottom:3px double var(--line-strong); }
.page-head .muted { margin-top:4px; }
.page-head .eyebrow { margin-bottom:6px; }
.back { display:inline-flex; align-items:center; gap:4px; color:var(--ink2); text-decoration:none; font-weight:500; font-size:14.5px; align-self:flex-start; margin-bottom:-8px; }
.back:hover { color:var(--head); }

/* ---------- inloggen ---------- */
.auth { min-height:100dvh; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
.auth-solo { grid-template-columns:1fr; background:radial-gradient(900px 420px at 50% -80px, var(--apricot-100), transparent 70%), var(--cream); }
.auth-main { display:flex; flex-direction:column; align-items:center; padding:32px 24px 48px; gap:32px; }
.auth-main > .logo { align-self:flex-start; color:var(--head); }
.auth-main > .logo:hover { color:var(--link); }
.auth-solo .auth-main > .logo { align-self:center; }
.auth-card { width:100%; max-width:420px; margin:auto 0; }
.auth-card h1 { margin-bottom:8px; font-size:38px; }
.auth-card > .deco-rule { margin:0 0 20px; }
.auth-card > .muted { margin-bottom:22px; }
.auth-card > .hint { margin:-10px 0 16px; }
.auth-alt { text-align:center; margin-top:18px; color:var(--ink2); font-size:15px; }
.auth-forgot { text-align:right; margin:-8px 0 16px; font-size:14.5px; }
.pw-wrap { position:relative; }
.pw-wrap input { padding-right:46px; }
.pw-eye { position:absolute; right:4px; top:4px; }
.pw-eye[aria-pressed=true] { color:var(--link); }
.welcome { max-width:500px; background:var(--paper); border:1px solid var(--line-strong); border-radius:var(--r); padding:40px 36px 34px; box-shadow:var(--shadow); margin:0; position:relative; }
.welcome::before { content:''; position:absolute; inset:6px; border:1px solid var(--gold-soft); border-radius:calc(var(--r) - 2px); pointer-events:none; }
.welcome > * { position:relative; }
.welcome .orn-burst { width:132px; color:var(--apricot-600); margin:0 auto 16px; }
.welcome .eyebrow, .welcome h1 { text-align:center; }
.welcome .eyebrow { margin-bottom:8px; }
.welcome h1 { font-size:32px; }
.welcome > .deco-rule { margin:14px auto 18px; }
.auth-side { background:var(--lattice), linear-gradient(160deg,var(--petrol-800),var(--petrol-900) 62%); color:var(--on-dark); display:flex; align-items:center; padding:56px 48px; position:relative; overflow:hidden; }
.auth-side::before, .auth-side::after { content:''; position:absolute; pointer-events:none; border:1px solid rgba(220,200,160,.38); }
.auth-side::before { inset:16px; } .auth-side::after { inset:22px; border-color:rgba(220,200,160,.2); }
.auth-side-in { max-width:440px; margin:0 auto; position:relative; z-index:1; }
.auth-side .orn-burst { width:230px; color:var(--apricot); margin:0 auto 26px; }
.auth-side h2 { color:var(--on-dark); font-size:36px; line-height:1.14; margin-bottom:18px; text-align:center; }
.auth-side .deco-rule { color:var(--gold-pale); margin:0 auto 30px; max-width:260px; }
.steps { list-style:none; padding:0; margin:0 0 30px; display:grid; gap:22px; }
.steps li { display:flex; gap:16px; }
.step-n { flex:none; position:relative; width:36px; height:36px; color:var(--apricot); font-family:var(--font-display); font-size:17px; display:grid; place-items:center; }
.step-n::before { content:''; position:absolute; inset:5px; border:1px solid var(--apricot); transform:rotate(45deg); }
.steps strong { font-size:17px; font-weight:500; letter-spacing:.01em; }
.steps p { color:rgba(250,245,236,.76); font-size:15.5px; margin-top:2px; }
.auth-foot { color:rgba(250,245,236,.76); font-size:14.5px; border-top:1px solid rgba(220,200,160,.3); padding-top:20px; }

/* ---------- events ---------- */
.ev-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(320px,1fr)); gap:18px; }
.ev-card { display:flex; flex-direction:column; border:1px solid var(--line); border-radius:var(--r); text-decoration:none; color:var(--ink); overflow:hidden; background:var(--paper); transition:box-shadow .2s, transform .2s, border-color .2s; }
.ev-card:hover { box-shadow:var(--shadow); transform:translateY(-2px); border-color:var(--line-strong); color:var(--ink); }
.ev-card.is-archived { opacity:.72; }
.ev-thumb { height:96px; background:color-mix(in srgb, var(--c) 12%, var(--paper)); display:grid; place-items:center; border-bottom:1px solid var(--line); position:relative; }
.ev-thumb::before { content:''; position:absolute; left:0; right:0; top:0; height:4px; background:var(--c); }
.ev-thumb img { max-height:56px; max-width:60%; object-fit:contain; }
.ev-thumb span { width:50px; height:50px; border-radius:var(--r-sm); background:var(--c); color:#fff; font-family:var(--font-display); font-size:26px; display:grid; place-items:center; box-shadow:0 0 0 3px var(--paper), 0 0 0 4px var(--c); }
.ev-body { padding:16px 18px 18px; display:grid; gap:6px; }
.ev-top { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; margin-bottom:2px; }
.ev-top h3 { font-size:21px; overflow-wrap:anywhere; }
.ev-meta { display:flex; align-items:center; gap:7px; color:var(--ink2); font-size:13.5px; }
.ev-stats { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:10px 0 0; padding-top:12px; border-top:1px solid var(--line); }
.ev-stats dt { font-size:12.5px; color:var(--ink2); }
.ev-stats dd { margin:0; font-size:20px; font-weight:500; font-variant-numeric:tabular-nums; color:var(--head); }
.archived summary { cursor:pointer; font-weight:600; color:var(--ink2); padding:8px 0; margin-bottom:8px; }

.how { margin:4px 0 20px; padding-left:20px; display:grid; gap:8px; }
.how li::marker { color:var(--link); font-weight:700; }
.danger-zone { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; border-top:1px solid var(--line); margin-top:20px; padding-top:16px; }
.plain { list-style:none; margin:10px 0 0; padding:0; display:grid; gap:10px; }
.plain li { display:flex; gap:10px; align-items:flex-start; }
.plain .ic { color:var(--link); margin-top:3px; }
#pay-result:not(:empty) { margin-top:16px; }

/* ---------- event ---------- */
.ev-title-row { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.ev-title h1 { overflow-wrap:anywhere; }
.ev-layout { display:grid; grid-template-columns:200px minmax(0,1fr); gap:36px; align-items:start; margin-top:4px; }
.tabs { position:sticky; top:calc(var(--top) + 20px); display:grid; gap:2px; }
.tab { display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:var(--r-sm); color:var(--ink2); text-decoration:none; font-weight:500; font-size:15.5px; white-space:nowrap; position:relative; }
.tab:hover { background:var(--sand); color:var(--head); }
.tab.is-on { background:var(--petrol-100); color:var(--head); box-shadow:inset 3px 0 0 var(--apricot-600); }
.tab.has-dot::after { content:''; width:8px; height:8px; border-radius:50%; background:var(--apricot-600); margin-left:auto; flex:none; }
.tab-body { min-width:0; }
.tab-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.tab-head > div:first-child { flex:1 1 320px; min-width:0; }
.tab-head .muted { margin-top:4px; max-width:640px; }

.live-card { display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; padding:28px; border-radius:var(--r); background:var(--lattice), linear-gradient(135deg,var(--petrol-800),var(--petrol-900)); color:var(--on-dark); position:relative; }
.live-card::before { content:''; position:absolute; inset:6px; border:1px solid rgba(220,200,160,.4); border-radius:calc(var(--r) - 2px); pointer-events:none; }
.live-card > * { position:relative; }
.live-card > div { flex:1 1 320px; display:grid; gap:8px; min-width:0; }
.live-card h2 { color:var(--on-dark); font-size:26px; display:flex; align-items:center; gap:10px; }
.live-card p { color:rgba(250,245,236,.82); overflow-wrap:anywhere; }
.live-card a { color:var(--apricot-pale); }
.live-card .notice { color:var(--ink); margin-top:6px; }
.live-card .notice a { color:var(--link); font-weight:600; }
.live-card.is-on { background:var(--paper); color:var(--ink); border:1px solid var(--edge-soft); }
.live-card.is-on::before { border-color:var(--gold-soft); }
.live-card.is-on h2 { color:var(--head); } .live-card.is-on p { color:var(--ink); } .live-card.is-on a { color:var(--link); }
.live-card.is-off { background:var(--sand); } .live-card.is-off h2 { color:var(--head); } .live-card.is-off p { color:var(--ink2); }
.live-card.is-off::before { border-color:var(--line-strong); }
.warn-text { display:flex; align-items:center; gap:6px; color:var(--amber) !important; font-weight:600; font-size:13.5px; }
.pulse { width:10px; height:10px; border-radius:50%; background:var(--apricot-600); box-shadow:0 0 0 0 rgba(232,147,90,.6); animation:pulse 2s infinite; flex:none; }
@keyframes pulse { 70% { box-shadow:0 0 0 9px rgba(232,147,90,0); } 100% { box-shadow:0 0 0 0 rgba(232,147,90,0); } }
@media (prefers-reduced-motion:reduce) { *, *::before, *::after { animation-duration:.01ms !important; transition-duration:.01ms !important; } }

.progress { height:8px; background:var(--sand); border-radius:999px; overflow:hidden; }
.progress span { display:block; height:100%; background:var(--petrol-600); border-radius:999px; min-width:0; transition:width .3s; }
.progress span.is-full { background:var(--apricot-600); }
.check { list-style:none; padding:0; margin:14px 0 0; }
.check li { display:flex; align-items:center; gap:14px; padding:13px 0; border-top:1px solid var(--line); }
.check li:first-child { border-top:0; }
.check-mark { flex:none; width:30px; height:30px; border-radius:50%; border:1.5px solid var(--line-strong); color:var(--ink2); font-family:var(--font-display); font-size:15px; display:grid; place-items:center; }
.check li.is-done .check-mark { background:var(--petrol-600); border-color:var(--petrol-600); color:#fff; }
.check li.is-next .check-mark { border-color:var(--apricot-600); background:var(--apricot-100); color:var(--apricot-ink); }
.check-text { flex:1; min-width:0; }
.check-text strong { color:var(--head); font-weight:600; }
.check-text p { color:var(--ink2); font-size:13.5px; }
.check li.is-done .check-text strong { color:var(--ink2); font-weight:500; }
.check li.is-done .check-text p { display:none; }

.kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.kpi { border:1px solid var(--line); border-top:3px double var(--gold-soft); border-radius:var(--r); padding:16px 20px 18px; background:var(--paper); min-width:0; }
.kpi-label { font-size:12px; color:var(--ink2); font-weight:600; letter-spacing:.12em; text-transform:uppercase; }
.kpi-value { font-size:28px; font-weight:500; font-variant-numeric:tabular-nums; color:var(--head); line-height:1.25; margin-top:6px; white-space:nowrap; }
.kpi-sub { font-size:13.5px; color:var(--ink2); }
.kpi-inline { padding:12px 18px; flex:none; }
.kpi-inline .kpi-value { font-size:22px; }

.chart { display:flex; gap:10px; }
.chart-y { display:flex; flex-direction:column; justify-content:space-between; font-size:12px; color:var(--ink3); height:160px; text-align:right; min-width:18px; }
.chart-area { flex:1; position:relative; min-width:0; }
.chart-plot { height:160px; display:flex; align-items:flex-end; gap:2px; border-bottom:1px solid var(--line-strong); background:linear-gradient(var(--line),var(--line)) top/100% 1px no-repeat; }
.chart-col { flex:1; height:100%; display:flex; align-items:flex-end; justify-content:center; min-width:0; outline-offset:-2px; cursor:default; }
.chart-bar { width:100%; max-width:24px; background:var(--petrol-600); border-radius:2px 2px 0 0; }
.chart-bar.is-zero { background:var(--line-strong); border-radius:0; }
.chart-col:hover .chart-bar, .chart-col:focus .chart-bar { background:var(--apricot-600); }
.chart-col:hover { background:rgba(11,46,53,.04); }
.chart-tip { position:absolute; top:-6px; transform:translate(-50%,-100%); background:var(--petrol-900); color:#fff; padding:7px 10px; border-radius:var(--r-sm); font-size:12.5px; display:grid; white-space:nowrap; pointer-events:none; z-index:2; }
.chart-tip span { color:rgba(255,255,255,.75); }
.chart-x { display:flex; justify-content:space-between; font-size:12px; color:var(--ink3); margin-top:6px; }
.chart-empty { color:var(--ink2); padding:20px 0 8px; }
.type-bars { list-style:none; margin:0; padding:0; display:grid; gap:16px; }
.type-bars-top { display:flex; justify-content:space-between; gap:12px; margin-bottom:6px; font-weight:600; color:var(--head); flex-wrap:wrap; }
.type-bars-top .muted { font-weight:400; font-size:13.5px; }
.type-bars-top .badge { margin-left:8px; }

/* ---------- lijsten: tickets en codes ---------- */
.list { list-style:none; margin:0; padding:0; }
.trow, .crow { display:grid; align-items:center; gap:16px; padding:16px 18px; border-top:1px solid var(--line); }
.trow:first-child, .crow:first-child { border-top:0; }
.trow { grid-template-columns:auto minmax(0,1fr) 96px 130px auto; }
.crow { grid-template-columns:minmax(0,1fr) 100px 110px auto; }
.trow.is-off .trow-main, .trow.is-off .trow-price, .crow.is-off .crow-main, .crow.is-off .crow-val { opacity:.55; }
.trow-order { display:grid; }
.trow-order .icon-btn { width:30px; height:26px; }
.trow-name { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.trow-name strong { color:var(--head); font-size:17px; font-weight:600; overflow-wrap:anywhere; }
.trow-desc { color:var(--ink); font-size:13.5px; margin-top:2px; }
.trow-meta { color:var(--ink2); font-size:13px; margin-top:3px; overflow-wrap:anywhere; }
.trow-price { font-weight:700; color:var(--head); text-align:right; white-space:nowrap; }
.trow-sold { font-size:13.5px; display:grid; gap:5px; }
.trow-sold small { color:var(--ink3); }
.trow-actions { display:flex; align-items:center; gap:6px; justify-content:flex-end; }
.crow-val, .crow-used { font-weight:700; color:var(--head); display:grid; }
.crow-val small, .crow-used small { font-weight:400; color:var(--ink2); font-size:12.5px; }
.code-chip { background:var(--sand); padding:4px 9px; border-radius:var(--r-sm); letter-spacing:.03em; }

.qlist { display:grid; gap:14px; }
.qcard-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.qcard-n { font-family:var(--font-display); font-size:18px; color:var(--head); }
.savebar { position:sticky; bottom:14px; z-index:20; display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; padding:10px 12px 10px 18px; background:var(--paper); border:1px solid var(--line-strong); border-radius:var(--r); box-shadow:0 10px 30px rgba(11,46,53,.12); }
.savebar-state { font-size:14px; color:var(--ink2); font-weight:500; }
.savebar.is-dirty { border-color:var(--apricot); background:var(--apricot-100); }
.savebar.is-dirty .savebar-state { color:var(--amber); font-weight:600; }
.savebar.is-dirty .savebar-state::before { content:''; display:inline-block; width:8px; height:8px; border-radius:50%; background:var(--apricot-600); margin-right:8px; }

/* ---------- op je site, scannen ---------- */
.link-qr { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:28px; align-items:start; }
.link-qr-main .field:last-child { margin-bottom:0; }
.codewrap { border:1px solid var(--line); border-radius:var(--r); overflow:hidden; }
.codewrap-head { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 12px 10px 14px; background:var(--sand); flex-wrap:wrap; }
.codeblock { margin:0; padding:14px; background:var(--petrol-950); color:#E6F0EE; font-family:var(--font-mono); font-size:12.5px; line-height:1.6; white-space:pre-wrap; word-break:break-all; }
.embed-grid { gap:16px; margin-bottom:24px; }
.how-list { display:grid; gap:8px; margin-top:12px; }
.how-item { border:1px solid var(--line); border-radius:var(--r); padding:0 14px; }
.how-item summary { cursor:pointer; font-weight:600; color:var(--head); padding:12px 0; }
.how-item ol { margin:0 0 14px; padding-left:20px; display:grid; gap:6px; color:var(--ink); }
.scan-list { list-style:none; margin:0; padding:0; display:grid; gap:14px; }
.scan-card { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:28px; align-items:start; }
.scan-card.is-off .qr { opacity:.25; }
.scan-name { display:flex; gap:8px; margin-bottom:16px; align-items:center; }
.scan-name input { font-weight:700; color:var(--head); max-width:320px; }
.scan-actions { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:14px; flex-wrap:wrap; }
.add-row { display:flex; align-items:flex-end; gap:10px; flex-wrap:wrap; }
.add-row .field { flex:1 1 240px; margin:0; }

/* ---------- huisstijl ---------- */
.brand { display:grid; grid-template-columns:minmax(0,430px) minmax(0,1fr); gap:28px; align-items:start; }
.brand-col { display:flex; flex-direction:column; gap:16px; min-width:0; }
.brand-left { display:grid; gap:16px; }
.brand-left .card.pad { padding:20px; }
.brand-left .card.pad > h3 { margin-bottom:14px; font-size:16px; }
.brand-left .field:last-child { margin-bottom:0; }
.pv { position:sticky; top:calc(var(--top) + 20px); min-width:0; }
.pv-bar { display:flex; align-items:center; gap:12px; margin-bottom:10px; }
.pv-bar strong { color:var(--head); margin-right:auto; }
.pv-frame { height:calc(100dvh - var(--top) - 120px); min-height:440px; border:1px solid var(--line-strong); border-radius:var(--r); overflow:hidden; background:var(--sand); position:relative; }
.pv-iframe { border:0; display:block; transform-origin:0 0; background:var(--paper); position:absolute; top:0; left:0; }
.pv-frame.is-mobile .pv-iframe { box-shadow:0 0 0 1px var(--line-strong), 0 12px 40px rgba(0,0,0,.12); }
.pv-hint { text-align:center; }
.extract { border-color:var(--edge-soft); background:linear-gradient(180deg,var(--petrol-50),var(--paper) 70%); }
.drop { width:100%; display:grid; justify-items:center; gap:6px; text-align:center; padding:24px 18px; border:2px dashed var(--edge-soft); border-radius:var(--r); background:rgba(255,255,255,.7); cursor:pointer; color:var(--ink2); font-size:13.5px; transition:border-color .15s, background .15s; }
.drop strong { color:var(--head); font-size:15.5px; }
.drop:hover, .drop.is-over { border-color:var(--edge-accent); background:var(--petrol-100); }
.drop.is-busy { opacity:.6; cursor:progress; }
.drop-ic { width:48px; height:48px; border-radius:50%; background:var(--petrol-100); color:var(--link); display:grid; place-items:center; margin-bottom:4px; }
.drop-status:not(:empty) { margin-top:12px; }
.sug { margin-top:16px; padding-top:16px; border-top:1px solid var(--line); display:grid; gap:14px; }
.sug-head { display:flex; align-items:center; gap:12px; }
.sug-head .hint { margin:0; overflow-wrap:anywhere; }
.sug-thumb { width:52px; height:52px; object-fit:contain; border:1px solid var(--line); border-radius:var(--r); background:var(--paper); flex:none; }
.sug-chips { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.sug-chip { display:flex; align-items:center; gap:8px; padding:8px; border:1px solid var(--line); border-radius:var(--r); background:var(--paper); min-width:0; }
.sug-chip div { display:grid; min-width:0; }
.sug-chip small { color:var(--ink2); font-size:11.5px; }
.sug-chip .mono { font-size:12px; }
.sug-c, .swatch-c { background:var(--c); border-radius:var(--r-sm); box-shadow:inset 0 0 0 1px rgba(0,0,0,.1); flex:none; }
.sug-c { width:30px; height:30px; }
.sug-fonts { display:flex; gap:8px; font-size:13.5px; align-items:flex-start; }
.sug-fonts .ic { color:var(--link); margin-top:3px; }
.sug-sub { font-size:13px; color:var(--ink2); }
.swatches { display:flex; flex-wrap:wrap; gap:8px; }
.swatch { display:grid; justify-items:center; gap:4px; padding:5px; border:1.5px solid transparent; border-radius:var(--r); background:none; cursor:pointer; }
.swatch:hover { background:var(--sand); }
.swatch.is-on { border-color:var(--edge-ink); background:var(--paper); }
.swatch-c { width:38px; height:38px; }
.swatch-hex { font-size:10.5px; color:var(--ink2); }
.sw-actions { display:flex; flex-wrap:wrap; align-items:center; gap:6px; font-size:13.5px; }
.up { display:flex; gap:14px; align-items:center; padding:12px 0; }
.up + .up { border-top:1px solid var(--line); }
.up:first-of-type { padding-top:0; } .up:last-child { padding-bottom:0; }
.up-thumb { flex:none; width:84px; height:64px; border:1px solid var(--line); border-radius:var(--r); display:grid; place-items:center; color:var(--ink3); overflow:hidden; background:repeating-conic-gradient(#f3f3f3 0 25%, #fff 0 50%) 0 0/14px 14px; }
.up-thumb img { max-width:100%; max-height:100%; object-fit:contain; }
.up-cover_url img { width:100%; height:100%; object-fit:cover; }
.up-body { min-width:0; display:grid; gap:4px; }
.up-body .hint { margin:0 0 4px; }
.color-row { display:flex; gap:8px; align-items:center; }
.color-row input[type=color] { flex:none; width:44px; height:44px; padding:3px; border:1px solid var(--line-strong); border-radius:var(--r); background:var(--paper); cursor:pointer; }
.color-row input[type=text] { flex:1; }
.font-pick { position:relative; }
.font-btn { width:100%; min-height:44px; display:flex; align-items:center; justify-content:space-between; gap:8px; padding:8px 12px; border:1px solid var(--line-strong); border-radius:var(--r-sm); background:var(--paper); cursor:pointer; text-align:left; }
.font-btn:hover { border-color:var(--edge-hover); }
.font-cur { font-size:17px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.font-list { position:absolute; z-index:30; left:0; right:0; top:calc(100% + 4px); max-height:300px; overflow-y:auto; background:var(--paper); border:1px solid var(--line-strong); border-radius:var(--r); box-shadow:0 14px 40px rgba(0,0,0,.16); padding:4px; display:grid; }
.font-opt { display:flex; justify-content:space-between; align-items:baseline; gap:8px; border:0; background:none; padding:9px 10px; border-radius:var(--r-sm); font-size:17px; text-align:left; cursor:pointer; }
.font-opt small { font:400 12px var(--font-body); color:var(--ink3); }
.font-opt:hover, .font-opt:focus { background:var(--sand); }
.font-opt.is-on { background:var(--petrol-100); color:var(--head); }
.range-row { display:flex; align-items:center; gap:12px; }
.range-row input { flex:1; accent-color:var(--petrol-600); min-height:28px; padding:0; }
.range-out { font-weight:600; color:var(--head); min-width:48px; text-align:right; font-variant-numeric:tabular-nums; }

/* ---------- bestellingen ---------- */
.orders-tools { display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.search { position:relative; flex:1 1 280px; }
.search .ic { position:absolute; left:13px; top:50%; transform:translateY(-50%); color:var(--ink3); }
.search input { padding-left:38px; }
.chips { display:flex; gap:6px; flex-wrap:wrap; }
.chip { border:1px solid var(--line-strong); background:var(--paper); border-radius:var(--r-sm); padding:7px 13px; font-weight:500; font-size:14.5px; color:var(--ink2); cursor:pointer; }
.chip:hover { border-color:var(--edge-ink); color:var(--head); }
.chip.is-on { background:var(--petrol-900); border-color:var(--petrol-900); color:var(--on-dark); }
.orders-list.is-loading { opacity:.55; transition:opacity .15s; }
.otable { overflow:hidden; }
.orow { display:grid; grid-template-columns:120px minmax(0,1.3fr) minmax(0,1.4fr) 96px 150px; gap:16px; align-items:center; width:100%; padding:13px 18px; border:0; border-top:1px solid var(--line); background:none; text-align:left; cursor:pointer; font-size:14px; }
.orow:hover { background:var(--cream); }
.orow.ohead { cursor:default; background:var(--sand); border-top:0; font-size:12px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:var(--ink2); padding:11px 18px; }
.orow > span { display:grid; min-width:0; gap:1px; }
.orow strong { color:var(--head); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.orow small { color:var(--ink2); font-size:12.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.o-items > span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.o-total { font-weight:700; color:var(--head); }
.orow > .o-status { display:flex; gap:5px; flex-wrap:wrap; }
.pager { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; font-size:13.5px; }
.order { display:grid; gap:24px; }
.order section { display:grid; gap:6px; }
.order h3 { font-family:var(--font-body); font-size:12px; text-transform:uppercase; letter-spacing:.12em; color:var(--ink2); font-weight:600; margin-bottom:4px; }
.order-top { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; flex-wrap:wrap; }
.order-ref { font-size:22px; font-weight:600; color:var(--head); letter-spacing:.04em; }
.sum { display:grid; gap:6px; }
.sum-row { display:flex; justify-content:space-between; gap:16px; }
.sum-row span:last-child { white-space:nowrap; font-variant-numeric:tabular-nums; }
.sum-total { border-top:1px solid var(--line); padding-top:8px; margin-top:4px; font-weight:700; color:var(--head); font-size:16px; }
.answers { margin:0; display:grid; gap:2px; }
.answers dt { color:var(--ink2); font-size:13px; margin-top:8px; }
.answers dt:first-child { margin-top:0; }
.answers dd { margin:0; font-weight:500; overflow-wrap:anywhere; }
.tk-list { list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.tk { border:1px solid var(--line); border-radius:var(--r); padding:12px 14px; display:grid; gap:10px; }
.order-actions { display:flex !important; flex-wrap:wrap; gap:8px; border-top:1px solid var(--line); padding-top:20px; }

/* ---------- kleiner scherm ---------- */
@media (max-width:1180px) {
  .brand { grid-template-columns:minmax(0,1fr); }
  .pv { position:static; order:2; }
  .pv-frame { height:620px; }
}
@media (max-width:1023px) {
  .ev-layout { grid-template-columns:minmax(0,1fr); gap:20px; }
  .tabs { position:sticky; top:var(--top); z-index:30; display:flex; gap:2px; overflow-x:auto; scrollbar-width:none; background:var(--paper); margin:0 -24px; padding:8px 24px; border-bottom:1px solid var(--line); }
  .tabs::-webkit-scrollbar { display:none; }
  .tab { padding:8px 12px; }
  .tab.is-on { box-shadow:inset 0 -2px 0 var(--apricot-600); }
  .tab.has-dot::after { margin-left:0; }
  .kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .trow { grid-template-columns:auto minmax(0,1fr) auto; }
  .trow-sold { grid-column:2 / 3; grid-row:2; max-width:220px; }
  .trow-actions { grid-column:1 / -1; justify-content:flex-start; flex-wrap:wrap; }
  .trow-price { grid-column:3; grid-row:1; }
  .orow { grid-template-columns:minmax(0,1fr) auto; gap:4px 12px; }
  .orow.ohead { display:none; }
  .otable .orow:nth-child(2) { border-top:0; }
  .o-ref { grid-column:1; } .o-total { grid-column:2; grid-row:1; text-align:right; }
  .o-buyer { grid-column:1 / -1; } .o-items { grid-column:1 / -1; }
  .orow > .o-status { grid-column:1 / -1; margin-top:4px; }
}
@media (max-width:820px) {
  .auth { grid-template-columns:1fr; }
  .auth-side { display:none; }
  .auth-main > .logo { align-self:center; }
  .link-qr, .scan-card { grid-template-columns:1fr; }
  .grid2.embed-grid { grid-template-columns:1fr; }
  .crow { grid-template-columns:minmax(0,1fr) auto auto; }
  .crow .trow-actions { grid-column:1 / -1; justify-content:flex-start; }
}
@media (max-width:640px) {
  :root { --top:0px; }
  h1 { font-size:28px; } h2 { font-size:21px; }
  .top { position:static; }
  .top-in { padding:0 16px; gap:0 10px; height:auto; flex-wrap:wrap; }
  .logo { padding:16px 0 12px; } .top-right { margin-left:auto; }
  .top-nav { order:3; flex:1 0 100%; margin:0 -16px; padding:0 6px; overflow-x:auto; scrollbar-width:none; border-top:1px solid rgba(220,200,160,.25); }
  .top-nav::-webkit-scrollbar { display:none; }
  .nav-link { padding:0 10px; min-height:46px; font-size:15px; } .nav-link.is-on::after { left:10px; right:10px; bottom:8px; }
  .org-name, .nav-out span { display:none; }
  .page { padding:22px 16px 88px; gap:16px; }
  .page-head { padding-bottom:14px; }
  .auth-card h1 { font-size:32px; }
  .tabs { margin:0 -16px; padding:8px 16px; }
  .card.pad { padding:18px; }
  .grid2, .grid2.grid-21 { grid-template-columns:1fr; }
  .kpi { padding:14px 16px; } .kpi-value { font-size:22px; }
  .live-card { padding:20px; } .live-card .btn { width:100%; }
  .check li { flex-wrap:wrap; }
  .check-text { flex:1 1 calc(100% - 46px); }
  .check li .btn { margin-left:44px; }
  .ev-grid { grid-template-columns:1fr; }
  .modal-back { padding:0; align-items:flex-end; }
  .modal, .modal-side { max-width:none; border-radius:var(--r) var(--r) 0 0; max-height:94dvh; height:auto; animation:rise .2s ease; }
  .modal-side { height:94dvh; }
  @keyframes rise { from { transform:translateY(30px); opacity:.6; } }
  .modal-body { padding:18px; } .modal-head { padding-left:18px; } .modal-foot { padding:12px 18px; }
  .modal-foot .btn { flex:1; }
  .copy-row { flex-wrap:wrap; } .copy-row input { flex:1 1 100%; }
  .scan-name { flex-wrap:wrap; }
  .sug-chips { grid-template-columns:1fr; }
  .savebar { bottom:10px; padding:10px 12px; }
  .savebar .row { flex:1; } .savebar .btn { flex:1; }
  .page-head .btn { width:100%; }
  .tab-head > .btn { width:100%; }
  .pv-frame { height:560px; }
  .welcome { padding:32px 22px 26px; }
  #toasts { bottom:12px; }
  .danger-zone .btn, .form-actions .btn { flex:1 1 auto; }
}
@media (max-width:420px) {
  .top-nav .nav-link .ic { display:none; }
  .wm { font-size:19px; }
}
.up-body .row { flex-wrap:wrap; }

/* ---------- trackinglinks ---------- */
.tl-new .field { margin:16px 0 0; }
.tl-new .copy-row .btn { flex:none; }
.tl-created { margin-top:18px; padding:16px 18px 18px; background:var(--petrol-50); border-left:3px solid var(--edge-accent); border-radius:var(--r-sm); }
.tl-created .field { margin:0; }
.tl-list { display:grid; gap:14px; min-width:0; }
.tl-head-row { align-items:center; }
.tl-sort { display:flex; align-items:center; gap:10px; }
.tl-sort label { font-size:14.5px; color:var(--ink2); white-space:nowrap; }
.tl-sort select { width:auto; min-width:176px; }
.tl-table { overflow:hidden; }
.tl-row { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; align-items:start; padding:16px 18px; border-top:1px solid var(--line); }
.tl-row.tl-head { display:none; }
.tl-table .tl-row:nth-child(2) { border-top:0; }
.tl-row.is-new { box-shadow:inset 3px 0 0 var(--apricot-600); }
.tl-rest { background:var(--cream); }
.tl-main { grid-column:1 / -1; min-width:0; }
.tl-main strong { color:var(--head); font-size:17px; font-weight:600; overflow-wrap:anywhere; }
.tl-url { grid-column:1 / -1; color:var(--ink2); font-size:13px; overflow-wrap:anywhere; }
.tl-url.mono { font-size:12.5px; }
.tl-stat { display:grid; gap:1px; min-width:0; font-variant-numeric:tabular-nums; }
.tl-stat small { font-size:11.5px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--ink2); }
.tl-stat b { font-weight:600; color:var(--head); white-space:nowrap; }
.tl-stat.is-none b { font-weight:400; color:var(--ink3); font-size:13.5px; }
.tl-stat.is-blank { display:none; }
.tl-actions { grid-column:1 / -1; display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.tl-actions-end { margin-left:auto; display:flex; gap:2px; }
.tl-foot { margin:0; }
.tl-examples { justify-content:center; margin-top:10px; }
.tl-qr { display:grid; gap:18px; }
.tl-break { overflow-wrap:anywhere; text-align:center; margin:0; }
.tl-site { display:grid; gap:16px; }
.tl-site .field { margin:0; }
@media (min-width:821px) {
  .tl-row { grid-template-columns:minmax(0,1fr) 64px 108px 64px 108px 92px; gap:4px 16px; align-items:center; }
  .tl-row.tl-head { display:grid; background:var(--sand); border-top:0; padding:11px 18px; font-size:12px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:var(--ink2); }
  .tl-head span:not(:first-child), .tl-stat { text-align:right; }
  .tl-main { grid-column:1; }
  .tl-stat small { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
  .tl-stat.is-blank { display:block; }
  .tl-actions { margin-top:8px; }
}

@media (max-width:420px) {
  .tl-row { gap:12px 8px; }
  .tl-stat small { font-size:10.5px; letter-spacing:.04em; }
}

/* ---------- ticket overdragen ---------- */
.tk-transfer { border-top:1px solid var(--line); padding-top:14px; }
.tk-transfer-title { font-weight:600; color:var(--head); margin-bottom:10px; }
.tk-transfer .notice { font-size:14.5px; padding:12px 14px; margin-bottom:14px; }
.tk-transfer .field { margin-bottom:12px; }
.tk-transfer .form-actions { margin-top:4px; }
.tk-note-actions { margin-top:10px; }
.order .notice p + p { margin-top:4px; }

/* ---------- betalingen: de keuze ---------- */
.pay-choice { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin:18px 0 0; }
.pay-opt { position:relative; border:1px solid var(--line-strong); border-radius:var(--r); padding:24px 22px 22px; background:var(--paper); display:flex; flex-direction:column; gap:14px; min-width:0; }
.pay-opt.is-active { border-color:var(--edge-accent); box-shadow:inset 0 0 0 1px var(--petrol-600), inset 0 0 0 5px var(--paper), inset 0 0 0 6px var(--gold-soft); }
.pay-opt.is-soon { background:var(--sand); border-style:dashed; }
.pay-opt.is-soon h3, .pay-opt.is-soon .plain { color:var(--ink2); }
.pay-opt-head { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; min-height:26px; }
.pay-opt-kicker { font-size:12px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:var(--ink2); }
.pay-opt h3 { font-size:24px; }
.pay-opt .plain { margin:0; font-size:15.5px; }
.pay-opt .how { margin:0; font-size:15px; }
.pay-opt details > summary { cursor:pointer; font-weight:500; color:var(--link); padding:4px 0; }
.pay-opt details[open] > summary { margin-bottom:10px; }
.pay-now { display:grid; gap:2px; padding:12px 14px; background:var(--petrol-50); border-left:3px solid var(--edge-accent); border-radius:var(--r-sm); font-size:15px; min-width:0; }
.pay-now strong { color:var(--head); font-weight:600; }
.pay-opt-foot { margin-top:auto; display:grid; gap:12px; }
.pay-opt-foot .form-actions { justify-content:flex-start; margin-top:0; }
.pay-form { border-top:1px solid var(--line); padding-top:16px; }
.pay-form .field:last-of-type { margin-bottom:12px; }
.pay-note { margin-top:16px; }
.iban { font-family:var(--font-mono); font-size:.9em; letter-spacing:.02em; white-space:nowrap; }
.iban-cell { display:inline-flex; align-items:center; gap:2px; }
.iban-cell .icon-btn { width:32px; height:32px; }

/* ---------- uitbetalingen en platformbeheer ---------- */
.kpis-3 { grid-template-columns:repeat(3,minmax(0,1fr)); }
.kpi-value.is-neg { color:var(--danger); }
.kpi.is-key { background:var(--lattice), var(--petrol-800); border-color:var(--petrol-800); border-top-color:var(--apricot); }
.kpi.is-key .kpi-label { color:var(--apricot-pale); } .kpi.is-key .kpi-value { color:var(--on-dark); } .kpi.is-key .kpi-sub { color:rgba(250,245,236,.8); }
.table-wrap { overflow-x:auto; }
.page-wide { max-width:1360px; }
.dtable { width:100%; border-collapse:collapse; font-size:15.5px; }
.dtable th { text-align:left; font-size:12px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:var(--ink2); background:var(--sand); padding:11px 16px; white-space:nowrap; }
.dtable td { padding:13px 16px; border-top:1px solid var(--line); vertical-align:middle; }
.dtable .num { text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
.dtable .strong { font-weight:600; color:var(--head); }
.dtable td small { display:block; color:var(--ink2); font-size:13.5px; }
.dtable .act { text-align:right; }
.dtable .act .btn { white-space:nowrap; }
.dtable .act .muted { display:inline-block; max-width:190px; text-align:right; }
.section-head { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.section-head .muted { margin-top:4px; max-width:640px; }
.confirm-sum { display:grid; gap:6px; padding:14px 16px; background:var(--petrol-50); border-left:3px solid var(--edge-accent); border-radius:var(--r-sm); }
.confirm-sum .sum-row strong { color:var(--head); }
.steps-plain { margin:0; padding-left:22px; display:grid; gap:6px; }
.steps-plain li::marker { color:var(--apricot-ink); font-weight:600; }
@media (max-width:860px) {
  .pay-choice { grid-template-columns:1fr; }
  .kpis-3 { grid-template-columns:1fr; }
  .dtable thead { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
  .dtable, .dtable tbody { display:block; }
  .dtable tr { display:grid; gap:3px; padding:14px 16px; border-top:1px solid var(--line); }
  .dtable tbody tr:first-child { border-top:0; }
  .dtable td { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:2px 0; border:0; text-align:right; min-width:0; overflow-wrap:anywhere; }
  .dtable td::before { content:attr(data-label); color:var(--ink2); font-size:13.5px; text-align:left; flex:none; }
  .dtable td small { display:inline; }
  .dtable .act { padding-top:8px; } .dtable .act::before { display:none; } .dtable .act .btn { width:100%; }
}

/* ---------- assistent ---------- */
.assist-fab { position:fixed; right:20px; bottom:20px; z-index:60; display:inline-flex; align-items:center; gap:10px; min-height:50px; padding:0 20px 0 15px; border:0; border-radius:var(--r-sm); background:var(--lattice), var(--petrol-900); color:var(--on-dark); font-weight:500; font-size:15.5px; letter-spacing:.04em; cursor:pointer; box-shadow:inset 0 0 0 1px rgba(184,147,90,.8), inset 0 0 0 3px var(--petrol-900), inset 0 0 0 4px rgba(184,147,90,.4), var(--shadow-lg); transition:transform .15s, background-color .15s; }
.assist-fab:hover { background:var(--lattice), var(--petrol-800); transform:translateY(-1px); }
.assist-fab-orn { width:24px; height:24px; color:var(--apricot); }
/* De knop mag de balk met Opslaan niet afdekken. */
body:has(.savebar) .assist-fab { bottom:92px; }

.assist { position:fixed; top:0; right:0; bottom:0; z-index:80; width:400px; max-width:100vw; display:flex; flex-direction:column; background:var(--cream); border-left:1px solid var(--line-strong); box-shadow:var(--shadow-lg); animation:slide .2s ease; }
.assist-head { flex:none; display:flex; align-items:center; gap:6px; height:var(--top); padding:0 10px 0 20px; background:var(--lattice), var(--petrol-900); color:var(--on-dark); box-shadow:inset 0 -1px 0 rgba(184,147,90,.75), inset 0 -3px 0 var(--petrol-900), inset 0 -4px 0 rgba(184,147,90,.4); }
.assist-title { display:flex; align-items:center; gap:11px; flex:1; min-width:0; }
.assist-title-orn { width:26px; height:26px; color:var(--apricot); flex:none; }
.assist-title h2 { color:var(--on-dark); font-size:18px; letter-spacing:.18em; text-transform:uppercase; padding-top:2px; }
.assist-new { display:inline-flex; align-items:center; gap:6px; min-height:36px; padding:0 10px; border:0; border-radius:var(--r-sm); background:none; color:rgba(250,245,236,.82); font-size:14px; font-weight:500; letter-spacing:.02em; cursor:pointer; white-space:nowrap; }
.assist-new:hover { color:#fff; background:rgba(250,245,236,.1); }
.assist-new:disabled { opacity:.4; cursor:default; background:none; }
.assist-close { color:rgba(250,245,236,.82); }
.assist-close:hover { color:#fff; background:rgba(250,245,236,.1); }
.assist-head :focus-visible { outline-color:var(--apricot); box-shadow:none; }

.assist-scroll { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:20px 18px; display:flex; flex-direction:column; gap:12px; }
.assist-scroll:focus-visible { outline-offset:-4px; box-shadow:none; }
.assist-log { display:flex; flex-direction:column; gap:12px; }
.assist-log:empty { display:none; }
.assist-msg { max-width:88%; padding:10px 14px; border-radius:var(--r); font-size:15.5px; line-height:1.5; }
.assist-text { white-space:pre-wrap; overflow-wrap:anywhere; }
.assist-msg.is-user { align-self:flex-end; background:var(--petrol-800); color:var(--on-dark); border-bottom-right-radius:0; }
.assist-msg.is-assistant { align-self:flex-start; background:var(--paper); border:1px solid var(--line); border-bottom-left-radius:0; }
.assist-msg.is-error { background:var(--danger-soft); border-color:transparent; border-left:3px solid var(--danger); border-radius:var(--r-sm); max-width:100%; align-self:stretch; }
.assist-typing { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.assist-dots { display:inline-flex; gap:5px; padding:7px 2px; }
.assist-dots i { width:7px; height:7px; border-radius:50%; background:var(--petrol-400); animation:assist-dot 1.2s ease-in-out infinite; }
.assist-dots i:nth-child(2) { animation-delay:.18s; }
.assist-dots i:nth-child(3) { animation-delay:.36s; }
@keyframes assist-dot { 0%, 70%, 100% { opacity:.3; transform:translateY(0); } 35% { opacity:1; transform:translateY(-3px); } }
.assist-wait { font-size:13.5px; color:var(--ink2); }

.assist-card { align-self:stretch; display:grid; gap:10px; padding:16px; background:var(--paper); border:1px solid var(--line-strong); border-top:4px double var(--apricot-600); border-radius:var(--r); font-size:15px; }
.assist-card h3 { font-size:19px; overflow-wrap:anywhere; }
.assist-card .notice { font-size:14.5px; padding:12px 14px; }
.assist-card .notice a { color:var(--link); font-weight:600; }
.assist-card-actions { display:flex; justify-content:flex-end; gap:8px; flex-wrap:wrap; margin-top:2px; }
.assist-card-ok { display:flex; align-items:flex-start; gap:8px; color:var(--ok); font-weight:500; }
.assist-card-ok .ic { margin-top:4px; }
.assist-card.is-done, .assist-card.is-cancelled { border-top-color:var(--line-strong); }

.assist-empty { display:flex; flex-direction:column; gap:10px; margin:auto 0; padding:4px 2px; }
.assist-burst { width:112px; color:var(--gold); margin:0 auto 4px; }
.assist-empty h3 { font-size:24px; text-align:center; }
.assist-lead { text-align:center; color:var(--ink2); font-size:15.5px; }
.assist-label { margin-top:12px; font-size:12px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:var(--ink3); }
.assist-examples { list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.assist-example { width:100%; display:flex; align-items:center; justify-content:space-between; gap:12px; text-align:left; padding:11px 12px 11px 14px; background:var(--paper); border:1px solid var(--line); border-left:3px solid var(--gold-soft); border-radius:var(--r-sm); font-size:15px; line-height:1.4; cursor:pointer; transition:border-color .15s, background .15s; }
.assist-example:hover { border-color:var(--edge-accent); border-left-color:var(--apricot-600); background:var(--raise); }
.assist-example .ic { color:var(--ink3); }
.assist-limits { margin-top:10px; padding-top:14px; border-top:3px double var(--line-strong); display:grid; gap:6px; font-size:14px; color:var(--ink2); }
.assist-limits strong { color:var(--ink); font-weight:600; }

.assist-foot { flex:none; padding:12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background:var(--paper); border-top:1px solid var(--line-strong); display:grid; gap:8px; }
.assist-ctx { font-size:13.5px; color:var(--ink2); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.assist-ctx strong { font-weight:600; color:var(--ink); }
.assist-form { display:flex; align-items:flex-end; gap:8px; }
.assist-form textarea { flex:1; min-width:0; min-height:46px; max-height:150px; resize:none; padding:10px 12px; line-height:1.45; font-size:16px; }
.assist-form textarea:disabled { background:var(--sand); color:var(--ink3); border-color:var(--line); box-shadow:none; }
.assist-send { flex:none; width:46px; height:46px; display:inline-grid; place-items:center; border-radius:var(--r-sm); border:1px solid var(--apricot-600); background:var(--apricot); color:var(--petrol-950); cursor:pointer; position:relative; transition:background .15s, box-shadow .15s; }
.assist-send:hover { background:var(--apricot-600); }
.assist-send:disabled { opacity:.45; cursor:default; background:var(--apricot); }
.assist-send.is-busy > * { visibility:hidden; }
.assist-send.is-busy::after { content:''; position:absolute; width:16px; height:16px; border-radius:50%; border:2px solid rgba(0,0,0,.2); border-top-color:var(--edge-ink); animation:spin .7s linear infinite; }
.assist-meta { display:flex; justify-content:space-between; gap:12px; font-size:12.5px; color:var(--ink3); min-height:18px; }
.assist-left { color:var(--amber); font-weight:500; }
.assist-count { margin-left:auto; text-align:right; font-variant-numeric:tabular-nums; }
.assist-count.is-warn { color:var(--amber); font-weight:500; }
.assist-count.is-over { color:var(--danger); font-weight:600; }
.assist-block .notice { font-size:14.5px; padding:12px 14px; }

/* Breed scherm: de pagina schuift op, zodat het paneel niets afdekt. Smaller ligt het paneel over de pagina tot je het sluit. */
@media (min-width:1440px) {
  body.has-assist { padding-right:400px; }
  body.has-assist #toasts { left:calc(50% - 200px); }
  .assist { box-shadow:none; }
}
/* Met het paneel open is de inhoud smaller dan 1180 px: de huisstijl krijgt dan dezelfde indeling als op een smal scherm. */
@media (min-width:1440px) and (max-width:1579px) {
  body.has-assist .brand { grid-template-columns:minmax(0,1fr); }
  body.has-assist .pv { position:static; order:2; }
  body.has-assist .pv-frame { height:620px; }
}
@media (max-width:640px) {
  .assist { width:100%; border-left:0; animation:fade .15s ease; }
  .assist-head { height:60px; padding-left:16px; }
  .assist-scroll { padding:16px 14px; }
  .assist-foot { padding-left:12px; padding-right:12px; }
  body.has-assist { overflow:hidden; }
  .assist-fab { right:12px; bottom:14px; min-height:46px; padding:0 16px 0 12px; font-size:15px; }
  .assist-meta { min-height:0; }
  body:has(.savebar) .assist-fab { bottom:128px; }
  .assist-meta-l #assist-hint { display:none; }
}

/* ---------- klantweergave: de kaart op Platformbeheer ---------- */
.vb-card .card-head { margin-bottom:6px; }
.vb-group { margin-top:18px; }
.vb-group-label { font-size:12.5px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:var(--ink2); margin-bottom:8px; }
.vb-links { display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:10px; }
.vb-link { display:flex; align-items:center; gap:12px; min-height:68px; padding:12px 14px; border:1px solid var(--line-strong); border-radius:var(--r-sm); background:var(--paper); color:var(--head); text-decoration:none; transition:border-color .12s, background .12s; }
.vb-link:hover { border-color:var(--edge-accent); background:var(--petrol-50); color:var(--head); }
.vb-link-ic { flex:none; display:grid; place-items:center; width:38px; height:38px; border-radius:var(--r-sm); background:var(--apricot-100); color:var(--apricot-ink); }
.vb-link-text { flex:1; min-width:0; display:grid; gap:1px; }
.vb-link-text strong { font-weight:600; line-height:1.3; }
.vb-link-text small { font-size:13.5px; line-height:1.4; color:var(--ink2); }
.vb-link > .ic:last-child { color:var(--ink2); }
.vb-card .notice { margin-top:18px; }

/* ---------- klantweergave: de balk in voorbeeldmodus ---------- */
/* De balk staat vast bovenaan; alles wat aan de bovenkant plakt, schuift zijn hoogte (--vb-h) op. */
.vb-bar { position:sticky; top:0; z-index:55; display:flex; align-items:center; justify-content:center; gap:8px 18px; min-height:42px; padding:6px 16px; background:var(--apricot-pale); color:var(--petrol-950); font-size:14.5px; line-height:1.35; box-shadow:inset 0 -1px 0 var(--apricot-600); }
.vb-bar p { display:flex; align-items:center; gap:9px; min-width:0; }
.vb-bar strong { font-weight:600; }
.vb-close { flex:none; display:inline-flex; align-items:center; gap:6px; min-height:30px; padding:3px 11px; border:1px solid #96481A; border-radius:var(--r-sm); background:#FFFDF8; color:var(--petrol-950); font-size:13.5px; font-weight:500; cursor:pointer; }
.vb-close:hover { background:#fff; }
body.is-voorbeeld .top { top:var(--vb-h,42px); }
body.is-voorbeeld .tabs, body.is-voorbeeld .pv { top:calc(var(--vb-h,42px) + var(--top) + 20px); }
body.is-voorbeeld .pv-frame { height:calc(100dvh - var(--vb-h,42px) - var(--top) - 120px); }
body.is-voorbeeld .auth { min-height:calc(100dvh - var(--vb-h,42px)); }
body.is-voorbeeld .assist { top:var(--vb-h,42px); }
body.is-voorbeeld .skip:focus { top:calc(var(--vb-h,42px) + 12px); }
@media (max-width:1180px) { body.is-voorbeeld .pv-frame { height:620px; } }
@media (max-width:1023px) { body.is-voorbeeld .tabs { top:calc(var(--vb-h,42px) + var(--top)); } }
@media (max-width:640px) { .vb-bar { justify-content:space-between; font-size:13.5px; padding:6px 12px; } }
.pv-stub { position:absolute; inset:0; display:grid; align-content:center; justify-items:center; gap:10px; padding:28px; text-align:center; background:var(--paper); }
.pv-stub p { max-width:42ch; color:var(--ink2); }
.pv-stub-ic { display:grid; place-items:center; width:54px; height:54px; border-radius:50%; background:var(--petrol-50); color:var(--link); }
.toast-info { border-left-color:var(--gold-soft); } .toast-info .ic { color:var(--gold-pale); }

/* ---------- assistent: vet en opsommingen in een antwoord ---------- */
.assist-par { display:block; }
.assist-list { display:block; margin:6px 0; padding-left:20px; white-space:normal; }
.assist-list:first-child { margin-top:0; } .assist-list:last-child { margin-bottom:0; }
.assist-list li { margin:2px 0; }
.assist-text strong { font-weight:600; }
/* Breed scherm met het paneel open: de pagina schuift op, de balk blijft over de hele breedte staan. */
@media (min-width:1440px) { body.is-voorbeeld.has-assist .vb-bar { margin-right:-400px; } }

/* ---------- donker: de paar plekken waar de tokens alleen niet genoeg zijn ---------- */
:root[data-theme="dark"] .drop { background:rgba(255,255,255,.03); }
:root[data-theme="dark"] .chip.is-on { background:var(--petrol-600); border-color:var(--petrol-600); }
:root[data-theme="dark"] .switch-track { background:#3A5F66; }
