/* Showcase Schadedossier. Kleuren en vormen volgen het design system van de
   tool (HSL-tokens, radius 0.5rem, systeemfont). Alles schaalt vanaf een
   vast ontwerpvlak van 1920 x 1080. Geen externe fonts, geen CDN. */

:root {
  --background: 0 0% 100%;
  --foreground: 215 25% 27%;
  --card: 0 0% 100%;
  --primary: 147 100% 35%;
  --primary-foreground: 0 0% 100%;
  --secondary: 147 30% 95%;
  --secondary-foreground: 147 30% 25%;
  --muted: 210 40% 96.1%;
  --muted-foreground: 215.4 16.3% 46.9%;
  --destructive: 0 84.2% 60.2%;
  --border: 214.3 31.8% 91.4%;
  --input: 214.3 31.8% 91.4%;
  --warning: 33 100% 52%;
  --info: 199 89% 48%;
  --sidebar: 0 0% 98%;
  --sidebar-border: 220 13% 91%;
  --radius: 0.5rem;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  position: fixed;
  inset: 0;
  background: #0f1720;
  color: hsl(var(--foreground));
  font-family: var(--font);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ontwerpvlak */
#stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1920px;
  height: 1080px;
  transform-origin: center center;
  background: linear-gradient(135deg, hsl(var(--background)) 0%, hsl(var(--background)) 55%, hsl(var(--muted) / 0.6) 100%);
  overflow: hidden;
  user-select: none;
}
#scene { position: absolute; inset: 0; }
.scene { position: absolute; inset: 0; }

#fictief {
  position: absolute; right: 64px; top: 14px;
  font-size: 18px; color: hsl(var(--muted-foreground));
  background: hsl(var(--muted)); border: 1px solid hsl(var(--border));
  padding: 4px 14px; border-radius: 999px; z-index: 40; pointer-events: none;
}

#caption { position: absolute; left: 64px; right: 64px; top: 868px; height: 130px; z-index: 30; pointer-events: none; }
#caption h1 { margin: 0 0 8px; font-size: 44px; line-height: 1.1; font-weight: 700; letter-spacing: -0.01em; color: hsl(var(--foreground)); }
#caption p { margin: 0; font-size: 30px; line-height: 1.3; color: hsl(var(--muted-foreground)); max-width: 1500px; }
#caption .n { display: inline-block; min-width: 44px; height: 44px; line-height: 44px; text-align: center; border-radius: 12px; background: hsl(var(--primary)); color: #fff; font-size: 24px; margin-right: 14px; vertical-align: 6px; }

#timeline { position: absolute; left: 64px; right: 64px; top: 1012px; height: 40px; display: flex; gap: 8px; z-index: 30; }
#timeline .segm { position: relative; flex: 1; height: 40px; border-radius: 8px; background: hsl(var(--muted)); border: 1px solid hsl(var(--border)); overflow: hidden; cursor: pointer; }
#timeline .segm .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: hsl(var(--primary) / 0.22); }
#timeline .segm .bar { position: absolute; left: 0; bottom: 0; height: 5px; width: 0; background: hsl(var(--primary)); }
#timeline .segm .lbl { position: absolute; left: 14px; top: 0; line-height: 38px; font-size: 18px; color: hsl(var(--foreground)); white-space: nowrap; }
#timeline .segm.active .lbl { font-weight: 600; color: hsl(var(--secondary-foreground)); }
#timeline .segm.done .bar { width: 100%; }

#hint { position: absolute; right: 64px; top: 968px; font-size: 18px; color: hsl(var(--muted-foreground)); z-index: 30; pointer-events: none; }
#paused { position: absolute; left: 64px; top: 14px; font-size: 18px; color: hsl(var(--secondary-foreground)); background: hsl(var(--secondary)); border: 1px solid hsl(var(--primary) / 0.3); padding: 4px 14px; border-radius: 999px; z-index: 40; display: none; }
#paused.on { display: block; }

#cursor { position: absolute; left: 0; top: 0; z-index: 60; pointer-events: none; will-change: transform; }
#cursor .ring { position: absolute; left: -16px; top: -16px; width: 34px; height: 34px; border-radius: 50%; border: 3px solid hsl(var(--primary)); opacity: 0; }

/* ---- App-schil, gebouwd naar de echte tool ---- */
.app {
  position: absolute; left: 64px; top: 48px; width: 1792px; height: 800px;
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  border-radius: 14px; box-shadow: 0 30px 80px rgba(15, 23, 32, 0.14), 0 2px 6px rgba(15, 23, 32, 0.06);
  overflow: hidden; display: flex;
}
.sidebar { width: 250px; background: hsl(var(--sidebar)); border-right: 1px solid hsl(var(--sidebar-border)); display: flex; flex-direction: column; }
.sidebar .logo { padding: 26px 20px 22px; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.sidebar .logo .mark { width: 22px; height: 22px; border-radius: 6px; background: hsl(var(--primary)); box-shadow: inset 0 0 0 5px hsl(var(--primary) / 0.35); }
.sidebar .menu { padding: 8px 12px; display: flex; flex-direction: column; gap: 4px; }
.sidebar .item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; font-size: 19px; color: hsl(var(--foreground)); }
.sidebar .item.active { background: hsl(var(--primary) / 0.1); color: hsl(var(--primary)); font-weight: 500; }
.sidebar .foot { margin-top: auto; border-top: 1px solid hsl(var(--sidebar-border)); padding: 16px; display: flex; align-items: center; gap: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: hsl(var(--primary)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 18px; }
.sidebar .foot .who { display: flex; flex-direction: column; }
.sidebar .foot .who b { font-size: 18px; font-weight: 500; }
.sidebar .foot .who span { font-size: 17px; color: hsl(var(--muted-foreground)); }

.mainwrap { flex: 1; display: flex; flex-direction: column; min-width: 0; background: linear-gradient(135deg, hsl(var(--background)), hsl(var(--muted) / 0.35)); }
.topbar { height: 62px; border-bottom: 1px solid hsl(var(--border)); background: hsl(var(--card)); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; }
.topbar h1 { margin: 0; font-size: 24px; font-weight: 700; }
.topbar .ic { color: hsl(var(--muted-foreground)); }

.stepper { margin: 12px 24px 0; padding: 8px 40px; display: flex; align-items: center; position: relative; }
.stepper .line { position: absolute; left: 70px; right: 70px; top: 27px; height: 3px; background: hsl(var(--border)); }
.stepper .line .p { height: 100%; background: hsl(var(--primary)); width: 0; }
.stepper .st { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.stepper .st:first-child { align-items: flex-start; }
.stepper .st:last-child { align-items: flex-end; }
.stepper .dot { width: 40px; height: 40px; border-radius: 50%; border: 2px solid hsl(var(--border)); background: hsl(var(--background)); color: hsl(var(--muted-foreground)); display: flex; align-items: center; justify-content: center; }
.stepper .st.done .dot, .stepper .st.cur .dot { background: hsl(var(--primary)); border-color: hsl(var(--primary)); color: #fff; }
.stepper .st.cur .dot { box-shadow: 0 0 0 5px hsl(var(--primary) / 0.2); }
.stepper .st span { font-size: 17px; font-weight: 500; color: hsl(var(--muted-foreground)); }
.stepper .st.done span, .stepper .st.cur span { color: hsl(var(--primary)); }

.main { flex: 1; padding: 14px 24px 18px; display: flex; gap: 20px; min-height: 0; position: relative; }

.card { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(15, 23, 32, 0.05); }
.card-h { padding: 18px 22px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-h h2 { margin: 0; font-size: 22px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.card-h h2 .ic { color: hsl(var(--primary)); }
.card-h .desc { font-size: 18px; color: hsl(var(--muted-foreground)); margin-top: 2px; }
.card-c { padding: 0 22px 20px; }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 17px; padding: 3px 12px; border-radius: 999px; background: hsl(var(--muted)); color: hsl(var(--foreground)); border: 1px solid transparent; white-space: nowrap; }
.badge.primary { background: hsl(var(--primary) / 0.1); color: hsl(var(--primary)); border-color: hsl(var(--primary) / 0.2); }
.badge.amber { background: rgba(245, 158, 11, 0.1); color: #d97706; border-color: rgba(245, 158, 11, 0.2); }
.badge.outline { background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); border-color: hsl(var(--border)); }

.btn { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 500; padding: 0 20px; height: 46px; border-radius: 8px; border: 1px solid transparent; white-space: nowrap; }
.btn.primary { background: hsl(var(--primary)); color: #fff; }
.btn.outline { background: hsl(var(--background)); border-color: hsl(var(--input)); color: hsl(var(--foreground)); }
.btn.ghost { background: transparent; color: hsl(var(--muted-foreground)); }
.btn.sm { height: 36px; font-size: 17px; padding: 0 14px; }
.btn.lg { height: 52px; font-size: 19px; padding: 0 26px; }
.btn.pressed { transform: scale(0.97); filter: brightness(0.94); }

.label { font-size: 18px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.input { height: 40px; border: 1px solid hsl(var(--input)); border-radius: 8px; padding: 0 12px; font-size: 18px; display: flex; align-items: center; background: hsl(var(--background)); position: relative; overflow: hidden; white-space: nowrap; }
.input.textarea { height: auto; min-height: 100px; align-items: flex-start; padding: 10px 12px; white-space: pre-wrap; line-height: 1.3; }
.input .ph { color: hsl(var(--muted-foreground)); }
.input.warn { border-color: hsl(var(--warning) / 0.5); background: hsl(var(--warning) / 0.05); }
.input.focus { box-shadow: 0 0 0 3px hsl(var(--primary) / 0.25); border-color: hsl(var(--primary)); }
.caret { display: inline-block; width: 2px; height: 22px; background: hsl(var(--foreground)); margin-left: 1px; vertical-align: -4px; }

.dropzone { border: 2px dashed hsl(var(--input)); border-radius: 8px; padding: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: hsl(var(--muted-foreground)); font-size: 17px; min-height: 84px; text-align: center; }
.dropzone.hot { border-color: hsl(var(--primary)); background: hsl(var(--primary) / 0.05); color: hsl(var(--primary)); }
.filechip { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; border: 1px solid hsl(var(--input)); background: hsl(var(--muted) / 0.5); font-size: 18px; min-height: 56px; }
.filechip .ic { color: hsl(var(--primary)); }
.filechip .kb { color: hsl(var(--muted-foreground)); font-size: 17px; margin-left: auto; }
.filechip .x { color: hsl(var(--muted-foreground)); }

.col2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.blk { display: flex; flex-direction: column; gap: 10px; }
.blk .hd { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 500; }
.blk .hd .ic { color: hsl(var(--primary)); }
.thumbs { display: grid; grid-template-columns: repeat(8, 1fr); grid-auto-rows: 92px; gap: 12px; }
.thumb { height: 92px; border-radius: 8px; overflow: hidden; border: 1px solid hsl(var(--input)); background: hsl(var(--muted) / 0.3); position: relative; }
.thumb .photo { width: 100%; height: 100%; display: block; }
.thumb.more { display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 600; color: hsl(var(--muted-foreground)); border-style: dashed; }
.photo { width: 100%; height: 100%; display: block; }

/* Overlay laden (echte tool: bg-background/90 + spinner) */
.overlay { position: absolute; inset: 0; background: hsl(var(--background) / 0.9); backdrop-filter: blur(3px); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; text-align: center; z-index: 5; }
.spinner { position: relative; width: 72px; height: 72px; margin: 0 auto 16px; }
.spinner .r1 { position: absolute; inset: 0; border-radius: 50%; border: 5px solid hsl(var(--primary) / 0.2); }
.spinner .r2 { position: absolute; inset: 0; border-radius: 50%; border: 5px solid hsl(var(--primary)); border-top-color: transparent; }
.spinner .ic { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: hsl(var(--primary)); }
.overlay h3 { margin: 0; font-size: 24px; font-weight: 600; }
.overlay p { margin: 6px 0 0; font-size: 18px; color: hsl(var(--muted-foreground)); }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: hsl(var(--primary)); display: block; }

/* Toast (sonner-stijl) */
.toast { position: absolute; right: 24px; bottom: 24px; min-width: 420px; max-width: 640px; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 10px; box-shadow: 0 12px 40px rgba(15, 23, 32, 0.16); padding: 14px 18px; display: flex; align-items: flex-start; gap: 12px; font-size: 18px; z-index: 50; }
.toast .ic { color: hsl(var(--primary)); flex-shrink: 0; margin-top: 2px; }
.toast.warn .ic { color: hsl(var(--warning)); }

/* Accordion-secties zoals in het formulier */
.section { border-bottom: 1px solid hsl(var(--border)); }
.section:last-child { border-bottom: 0; }
.sec-h { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-radius: 8px; }
.sec-h .ib { width: 36px; height: 36px; border-radius: 8px; background: hsl(var(--primary) / 0.1); color: hsl(var(--primary)); display: flex; align-items: center; justify-content: center; }
.sec-h .t { flex: 1; font-size: 19px; font-weight: 500; }
.sec-h .chev { color: hsl(var(--muted-foreground)); }
.sec-b { padding: 2px 14px 14px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fstat { min-height: 26px; }
.field .label .ic.ok { color: hsl(var(--primary)); }
.field .label .ic.nf { color: hsl(var(--warning)); }
.bron { display: flex; align-items: center; gap: 8px; padding: 3px 10px; background: hsl(var(--muted) / 0.4); border-radius: 4px; border-left: 3px solid hsl(var(--primary) / 0.5); font-size: 17px; min-height: 26px; }
.bron .ic { color: hsl(var(--primary) / 0.8); flex-shrink: 0; }
.bron .k { font-size: 15px; font-weight: 600; letter-spacing: 0.06em; color: hsl(var(--primary) / 0.8); text-transform: uppercase; }
.bron .q { font-family: var(--mono); color: hsl(var(--muted-foreground)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bron.plain { border-left-color: transparent; background: transparent; padding-left: 0; }
.bron.plain .q { font-family: var(--font); }
.nf-msg { display: flex; align-items: center; gap: 6px; font-size: 17px; color: hsl(var(--warning)); min-height: 26px; }
.field .hit { position: absolute; inset: -4px; border-radius: 10px; box-shadow: 0 0 0 3px hsl(var(--primary) / 0.35); opacity: 0; pointer-events: none; }
.field { position: relative; }

/* Tabellen (Begroting) */
.tbl { width: 100%; border-collapse: collapse; font-size: 18px; }
.tbl th { text-align: left; font-weight: 500; color: hsl(var(--muted-foreground)); font-size: 17px; padding: 6px 8px; border-bottom: 1px solid hsl(var(--border)); white-space: nowrap; }
.tbl td { padding: 5px 8px; border-bottom: 1px solid hsl(var(--border)); white-space: nowrap; vertical-align: middle; }
.tbl .r { text-align: right; }
.tbl .b { font-weight: 600; }
.tbl tr.sur td { background: hsl(var(--muted) / 0.3); }
.tbl tfoot td { border-bottom: 0; font-weight: 600; background: hsl(var(--muted) / 0.5); }
.tbl tr.row { position: relative; }
.tbl tr.hl td { background: hsl(var(--primary) / 0.1); box-shadow: inset 3px 0 0 hsl(var(--primary)); }
.tbl tr.edit td { background: hsl(var(--primary) / 0.05); }
.tbl .cell-edit { display: inline-block; border-radius: 4px; padding: 2px 6px; margin: -2px -6px; }
.tbl .cell-edit.focus { box-shadow: 0 0 0 2px hsl(var(--primary) / 0.35); background: #fff; }
.tbl .ellipsis { max-width: 250px; overflow: hidden; text-overflow: ellipsis; }

.totals { display: flex; flex-direction: column; gap: 12px; font-size: 18px; }
.totals .ln { display: flex; justify-content: space-between; gap: 12px; }
.totals .ln.mu span:first-child { color: hsl(var(--muted-foreground)); }
.totals .sep { border-top: 1px solid hsl(var(--border)); padding-top: 12px; }
.totals .grand { font-size: 24px; font-weight: 700; }
.totals .grand span:last-child { color: hsl(var(--primary)); }

/* Popover bron bij begrotingsregel */
.pop { position: absolute; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 10px; box-shadow: 0 14px 40px rgba(15, 23, 32, 0.18); padding: 12px 16px; font-size: 18px; z-index: 20; max-width: 520px; }
.pop .k { display: flex; align-items: center; gap: 8px; color: hsl(var(--primary)); font-weight: 600; font-size: 17px; margin-bottom: 4px; }
.pop .q { font-family: var(--mono); color: hsl(var(--muted-foreground)); font-size: 17px; }
.pop .m { color: hsl(var(--muted-foreground)); font-size: 17px; margin-top: 4px; }

/* Logboek-paneel (bron) */
.logboek { display: flex; flex-direction: column; min-height: 0; }
.logboek .chat { flex: 1; background: #efe9df; border-radius: 0 0 var(--radius) var(--radius); padding: 14px 14px 10px; display: flex; flex-direction: column; gap: 8px; position: relative; overflow: hidden; }
.bubble { position: relative; background: #e2f7cf; border-radius: 10px; padding: 8px 12px 8px; font-size: 18px; line-height: 1.32; max-width: 100%; box-shadow: 0 1px 1px rgba(0,0,0,0.08); }
.bubble .who { font-size: 16px; font-weight: 600; color: #0a7a3d; margin-bottom: 2px; }
.bubble .tm { font-size: 15px; color: rgba(0,0,0,0.45); text-align: right; margin-top: 2px; }
.bubble.read { background: #d6f2bf; }
.bubble.hl { box-shadow: 0 0 0 3px hsl(var(--primary)), 0 8px 24px hsl(var(--primary) / 0.25); background: #fff; }
.bubble .mark { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: hsl(var(--primary) / 0.12); border-radius: 10px; pointer-events: none; }
.leesbalk { position: absolute; left: 8px; right: 8px; height: 4px; border-radius: 2px; background: hsl(var(--primary)); box-shadow: 0 0 18px 4px hsl(var(--primary) / 0.45); top: 0; pointer-events: none; }
.leesbalk::after { content: ""; position: absolute; left: 0; right: 0; top: -30px; height: 30px; background: linear-gradient(to bottom, transparent, hsl(var(--primary) / 0.12)); }

.mailcard { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 10px; overflow: hidden; }
.mailcard .mh { padding: 12px 16px; border-bottom: 1px solid hsl(var(--border)); background: hsl(var(--muted) / 0.5); }
.mailcard .mh b { font-size: 18px; display: block; }
.mailcard .mh span { font-size: 17px; color: hsl(var(--muted-foreground)); }
.mailcard .mb { padding: 10px 16px; font-size: 18px; display: flex; flex-direction: column; gap: 6px; }
.mailcard .kv { display: flex; gap: 10px; }
.mailcard .kv span:first-child { color: hsl(var(--muted-foreground)); min-width: 220px; }

/* Verbindingslijnen bron -> veld */
.wires { position: absolute; inset: 0; pointer-events: none; z-index: 15; overflow: visible; }
.wires path { fill: none; stroke: hsl(var(--primary)); stroke-width: 3; stroke-linecap: round; }
.wires circle { fill: hsl(var(--primary)); }

/* Foto-slots (ImageGallery) */
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.slot { border: 1px solid hsl(var(--border)); border-radius: var(--radius); overflow: hidden; background: hsl(var(--card)); position: relative; }
.slot .sh { padding: 8px 12px; border-bottom: 1px solid hsl(var(--border)); background: hsl(var(--muted) / 0.5); display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 17px; font-weight: 500; }
.slot .sh .ic { color: hsl(var(--muted-foreground)); }
.slot .img { aspect-ratio: 3 / 2; position: relative; background: hsl(var(--muted) / 0.4); overflow: hidden; }
.slot .img .empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: hsl(var(--muted-foreground)); font-size: 17px; border: 2px dashed hsl(var(--muted-foreground) / 0.3); margin: 8px; border-radius: 8px; }
.slot .img .photo { position: absolute; inset: 0; }
.slot .img .hover { position: absolute; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; opacity: 0; }
.slot .sb { border-top: 1px solid hsl(var(--border)); background: hsl(var(--muted) / 0.3); padding: 6px 10px; display: flex; align-items: center; justify-content: space-between; font-size: 16px; color: hsl(var(--muted-foreground)); }
.slot .sb .ic { color: hsl(var(--primary)); }
.slot .reden { display: none; border-top: 1px solid hsl(var(--border)); background: hsl(var(--primary) / 0.05); border-left: 3px solid hsl(var(--primary)); padding: 6px 10px; font-size: 16px; font-style: italic; color: hsl(var(--muted-foreground)); line-height: 1.3; }
.slot.open .reden { display: block; }

/* Dialoog fotokiezer */
.dialog-bg { position: absolute; inset: 0; background: rgba(0,0,0,0.5); z-index: 30; display: flex; align-items: center; justify-content: center; }
.dialog { width: 920px; background: hsl(var(--card)); border-radius: 12px; border: 1px solid hsl(var(--border)); box-shadow: 0 30px 80px rgba(0,0,0,0.3); padding: 22px; }
.dialog h3 { margin: 0 0 14px; font-size: 22px; display: flex; align-items: center; gap: 10px; }
.dialog h3 .ic { color: hsl(var(--primary)); }
.dialog .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.dialog .pick { aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; position: relative; border: 2px solid transparent; }
.dialog .pick.sel { border-color: hsl(var(--primary)); }
.dialog .pick .chk { position: absolute; right: 8px; top: 8px; width: 28px; height: 28px; border-radius: 50%; background: hsl(var(--primary)); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; }
.dialog .pick .fn { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 8px; background: linear-gradient(to top, rgba(0,0,0,0.7), transparent); color: #fff; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dialog .pick.del { border: 2px dashed hsl(var(--destructive) / 0.5); background: hsl(var(--destructive) / 0.05); display: flex; align-items: center; justify-content: center; color: hsl(var(--destructive)); font-size: 17px; flex-direction: column; gap: 4px; }

/* Download-stap */
.dl-card { border-color: hsl(var(--primary) / 0.2); background: linear-gradient(135deg, hsl(var(--primary) / 0.05), hsl(var(--primary) / 0.1)); text-align: center; padding: 34px 30px; display: flex; flex-direction: column; align-items: center; gap: 12px; position: relative; }
.dl-card .circ { width: 84px; height: 84px; border-radius: 50%; background: hsl(var(--primary) / 0.1); display: flex; align-items: center; justify-content: center; color: hsl(var(--primary)); }
.dl-card h2 { margin: 6px 0 0; font-size: 28px; font-weight: 700; }
.dl-card p { margin: 0; font-size: 18px; color: hsl(var(--muted-foreground)); max-width: 520px; }
.dl-card .btns { display: flex; gap: 12px; margin-top: 8px; }

.pdf { position: absolute; width: 560px; height: 792px; background: #fff; box-shadow: 0 30px 70px rgba(15, 23, 32, 0.25), 0 0 0 1px hsl(var(--border)); border-radius: 4px; padding: 34px 40px; font-size: 15px; color: #1f2937; overflow: hidden; }
.pdf .ph { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 3px solid hsl(var(--primary)); padding-bottom: 10px; margin-bottom: 14px; }
.pdf .ph b { font-size: 24px; }
.pdf .ph span { font-size: 15px; color: #6b7280; display: block; }
.pdf h4 { margin: 12px 0 6px; font-size: 16px; color: hsl(var(--primary)); text-transform: uppercase; letter-spacing: 0.05em; }
.pdf .kv { display: grid; grid-template-columns: 210px 1fr; gap: 3px 10px; font-size: 15px; }
.pdf .kv span:nth-child(odd) { color: #6b7280; }
.pdf .fotos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 6px; }
.pdf .fotos .f { aspect-ratio: 4 / 3; border-radius: 3px; overflow: hidden; border: 1px solid #e5e7eb; }
.pdf .tot { display: flex; justify-content: space-between; font-size: 16px; padding: 3px 0; }
.pdf .tot.g { font-weight: 700; border-top: 1px solid #e5e7eb; margin-top: 4px; padding-top: 6px; font-size: 18px; }
.pdf .sig { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; font-size: 14px; color: #6b7280; }
.pdf .sig div { border-top: 1px solid #9ca3af; padding-top: 4px; }
.pdf .foot { position: absolute; left: 40px; right: 40px; bottom: 16px; font-size: 13px; color: #9ca3af; display: flex; justify-content: space-between; }

/* Scene 1: verspreide bronnen */
.phone { position: absolute; width: 250px; height: 470px; border-radius: 34px; background: #14161a; box-shadow: 0 30px 60px rgba(15,23,32,0.35), inset 0 0 0 3px #3a3d44; padding: 14px; }
.phone .scr { width: 100%; height: 100%; border-radius: 24px; background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.phone .bar { height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; font-size: 16px; font-weight: 600; color: #111; }
.phone .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 0 6px; }
.phone .grid .t { aspect-ratio: 1 / 1; overflow: hidden; border-radius: 4px; }
.phone .cnt { padding: 8px 12px; font-size: 16px; color: #555; }
.chatcard { position: absolute; width: 560px; background: #efe9df; border-radius: 16px; box-shadow: 0 30px 60px rgba(15,23,32,0.2); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.chatcard .ct { font-size: 18px; font-weight: 600; color: #333; padding: 2px 6px 6px; display: flex; align-items: center; gap: 8px; }
.chatcard .ct .ic { color: #0a7a3d; }
.sticky { position: absolute; background: #fff7c2; border-radius: 6px; padding: 14px 16px; font-size: 19px; box-shadow: 0 16px 40px rgba(15,23,32,0.18); width: 300px; line-height: 1.3; }
.sticky b { display: block; font-size: 16px; color: #8a6d00; margin-bottom: 4px; letter-spacing: 0.04em; }
.mailwrap { position: absolute; width: 640px; box-shadow: 0 30px 60px rgba(15,23,32,0.2); border-radius: 10px; }
.big-q { position: absolute; font-size: 30px; color: hsl(var(--muted-foreground)); font-weight: 500; }

/* Overzicht (Schaderapportages) */
.stat { flex: 1; padding: 14px 18px; }
.stat .k { font-size: 17px; color: hsl(var(--muted-foreground)); }
.stat .v { font-size: 30px; font-weight: 700; margin-top: 2px; }

/* Basisregels voor bewegingen */
.anim { will-change: transform, opacity; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
