/* foursqr sign-off studio: huisstijl volgens docs/brand/BRANDBOOK.md (Midnight, AI Blue, Exo 2 en Manrope).
   Donker en licht met de kleuren uit docs/brand/tokens; de app zet data-theme op <html> (zie src/theme.ts). */
@font-face { font-family: "Exo 2"; src: url("/fonts/Exo2-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Exo 2"; src: url("/fonts/Exo2-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/fonts/Manrope-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/fonts/Manrope-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --blue: #0766ff; --midnight: #061326; --ice: #eaf2ff;
  --font: "Manrope", "Segoe UI", system-ui, sans-serif; --font-head: "Exo 2", "Manrope", system-ui, sans-serif;
  --mono: Menlo, Consolas, monospace;
  --cut: 10px; --r: 4px;
}
/* Donker: Midnight is het hoofdgebruik van het merk */
:root, [data-theme="dark"] {
  --bg: #061326; --card: #0b1d38; --fg: #ffffff; --text: #c9d8f2; --muted: #a3b8dc;
  --accent-text: #8db6ff; --focus: #8db6ff; --line-soft: rgba(7, 102, 255, .38); --line-control: #5a84c8; --input-bg: #061326;
  --btn: var(--blue); --btn-hover: #0558e0;
  --ok: #3ddc97; --ok-bg: rgba(61, 220, 151, .12); --warn-bg: rgba(255, 200, 87, .12);
  --danger: #ff8f8f; --danger-bg: rgba(255, 143, 143, .12);
  color-scheme: dark;
}
/* Licht: White en Ice */
[data-theme="light"] {
  --bg: #f6f9ff; --card: #ffffff; --fg: #061326; --text: #1f3354; --muted: #475d82;
  --accent-text: #0766ff; --focus: #0766ff; --line-soft: #dde8fa; --line-control: #6a88b6; --input-bg: #ffffff;
  --btn: var(--blue); --btn-hover: #0558e0;
  --ok: #0f7b4a; --ok-bg: #e3f6ee; --warn-bg: #fff6e0;
  --danger: #b3261e; --danger-bg: #fdecea;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2 { font-family: var(--font-head); font-weight: 700; color: var(--fg); line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; margin: 0 0 .4em; }
h1 { font-size: clamp(28px, 4vw, 44px); } h2 { font-size: clamp(20px, 2.4vw, 24px); line-height: 1.2; }
p { margin: 0 0 .6em; }
a { color: var(--accent-text); }
.muted { color: var(--muted); } .small { font-size: .85rem; } .mono { font-family: var(--mono); font-size: .85rem; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Raamwerk */
.shell { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand img { display: block; height: 26px; width: auto; }
.main { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: clamp(20px, 4vw, 40px) clamp(16px, 4vw, 32px); }

/* Bouwstenen */
.stack-l > * + * { margin-top: 28px; }
.lead { font-size: 1.1rem; color: var(--fg); }
.card { background: var(--card); border: 1px solid var(--line-soft); border-radius: 4px 16px 4px 16px; padding: clamp(18px, 2.8vw, 28px); }
.narrow { max-width: 460px; margin: 6vh auto; }
.steps { margin: 0; padding-left: 1.3em; }
.steps li + li { margin-top: 4px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .82rem; background: var(--warn-bg); color: var(--fg); }
.pill.ok { background: var(--ok-bg); color: var(--ok); }

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

/* Formulieren, knoppen en meldingen */
.stack > * + * { margin-top: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; color: var(--fg); font-size: .92rem; }
.field input { font: 400 1rem var(--font); color: var(--fg); background: var(--input-bg); border: 1px solid var(--line-control); border-radius: var(--r); padding: 10px 12px; }
.field input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field input.code { font-family: var(--mono); font-size: 1.3rem; letter-spacing: .3em; max-width: 12ch; }
.btn { display: inline-flex; align-items: center; justify-content: center; font: 600 .95rem var(--font-head); letter-spacing: .01em; color: #fff; background: var(--btn); border: 1px solid var(--btn); padding: 10px 18px; border-radius: 8px; cursor: pointer; }
.btn:hover { background: var(--btn-hover); border-color: var(--blue); }
.btn:disabled { opacity: .6; cursor: progress; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-text); cursor: pointer; text-decoration: underline; }
.notice { padding: 10px 14px; border-radius: var(--r); background: var(--warn-bg); color: var(--fg); }
.notice.ok { background: var(--ok-bg); color: var(--ok); }
.notice.error { background: var(--danger-bg); color: var(--danger); }
/* De QR-code blijft altijd donker op wit, anders lezen sommige apps hem niet */
.qr { display: block; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r); padding: 8px; }

/* Organisatie, domeinen en verwerkersovereenkomst */
.hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
.field select { font: 400 1rem var(--font); color: var(--fg); background: var(--input-bg); border: 1px solid var(--line-control); border-radius: var(--r); padding: 10px 12px; max-width: 20rem; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { margin-top: .3em; width: 1.1rem; height: 1.1rem; accent-color: var(--blue); flex: none; }
.domains { list-style: none; margin: 0; padding: 0; }
.domains > li + li { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.copy { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.copy code { word-break: break-all; }
.actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.inline-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.inline-form .field { flex: 1 1 16rem; }
.inline-form .notice { flex-basis: 100%; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.05rem; margin-top: 1.2em; }

/* Wizard en organisatiegegevens */
.group { border: 0; margin-inline: 0; margin-bottom: 0; padding: 0; min-width: 0; }
.group legend { font-family: var(--font-head); font-weight: 700; color: var(--fg); font-size: 1rem; margin-bottom: 10px; padding: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 14px 18px; }
.field-error { font-weight: 400; color: var(--danger); font-size: .85rem; }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.plan { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.plan-step { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.plan-step .pill { margin-left: auto; }
.plan-nr { flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: 700 .8rem var(--font-head); border: 1px solid var(--line-control); }
.plan-step.done, .plan-step.now { color: var(--fg); }
.plan-step.done .plan-nr { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.plan-step.now .plan-nr { background: var(--blue); color: #fff; border-color: var(--blue); }
.plan-step.now > span:nth-child(2) { font-weight: 700; }

/* Homepagina: zelfde opbouw als foursqr.ai (eyebrow, hero met bedienbaar voorbeeld, vier hoeken, stappen) */
.home { display: grid; gap: clamp(56px, 8vw, 96px); padding-block: clamp(8px, 3vw, 32px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0; font: 400 12px/18px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
.ai-dot { width: 8px; height: 8px; background: var(--blue); animation: blink 1.6s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.accent { color: var(--blue); }
.home h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.08; letter-spacing: -.01em; text-wrap: balance; margin: 0; }
.home h2 { font-size: clamp(24px, 3.4vw, 34px); line-height: 1.15; text-wrap: balance; margin: 0; }
.home .lead { font-size: 18px; line-height: 28px; color: var(--text); max-width: 46ch; margin: 0; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 56px); align-items: center; }
.hero-copy { display: grid; gap: 22px; justify-items: start; min-width: 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn--primary:hover { background: #0558e0; border-color: #0558e0; }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line-control); }
.btn--ghost:hover { background: transparent; border-color: var(--blue); }
a.btn { text-decoration: none; }
.trust { margin: 0; font: 400 12px/18px var(--mono); letter-spacing: .04em; color: var(--muted); }
@media (max-width: 860px) { .hero { grid-template-columns: minmax(0, 1fr); } }

/* Bedienbaar voorbeeld */
.demo { display: grid; gap: 14px; min-width: 0; }
.demo-controls { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
.seg { display: inline-flex; border: 1px solid var(--line-control); border-radius: 8px; padding: 3px; gap: 3px; }
.seg button { font: 600 .85rem var(--font-head); color: var(--muted); background: transparent; border: 0; border-radius: 6px; padding: 6px 12px; cursor: pointer; transition: background 160ms ease, color 160ms ease; }
.seg button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.mail { --m-bg: #ffffff; --m-fg: #242424; --m-muted: #5f6b7a; --m-line: #e3e8ef; --m-bar: #f2f5f9;
  border: 1px solid var(--m-line); border-radius: 12px; background: var(--m-bg); color: var(--m-fg); overflow: hidden;
  font: 400 14px/1.5 "Segoe UI", Arial, Helvetica, sans-serif; width: 100%; max-width: 560px; justify-self: center;
  transition: max-width 420ms ease, background 320ms ease, color 320ms ease; }
.mail--dark { --m-bg: #1f1f1f; --m-fg: #e6e6e6; --m-muted: #a8b0bb; --m-line: #343434; --m-bar: #2a2a2a; }
.mail--phone { max-width: 300px; border-radius: 22px; }
.mail-bar { display: flex; gap: 6px; padding: 10px 12px; background: var(--m-bar); border-bottom: 1px solid var(--m-line); }
.mail-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--m-line); }
.mail-head { padding: 10px 16px; border-bottom: 1px solid var(--m-line); font-size: 12px; color: var(--m-muted); }
.mail-k { display: inline-block; min-width: 5.5em; }
.mail-body { padding: 16px; }
.mail-body p { margin: 0 0 10px; }
.so { margin-top: 18px; animation: so-in 520ms ease both; font-size: 13px; line-height: 1.45; }
.so p { margin: 0; }
.so-line { font-size: 13px; }
.so-line + .so-line { padding-top: 2px; }
.so-small { font-size: 12px; }
.so-rule { display: block; width: 160px; height: 0; border-top: 1px solid #0766ff; margin-top: 12px; }
.so-logo { display: block; width: 160px; height: 25px; margin-top: 10px; border: 0; }
.so-payoff { margin-top: 4px !important; font-size: 11px; letter-spacing: .02em; color: #6e86b0; }
@keyframes so-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.prompt { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 10px 16px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--card); font: 400 13px/20px var(--mono); color: var(--fg); width: 100%; max-width: 560px; justify-self: center; }
.prompt-tag { flex: none; padding: 2px 8px; background: var(--blue); color: #fff; font-size: 11px; border-radius: 4px; }
.prompt-text { min-width: 0; overflow-wrap: anywhere; }
.caret { width: 8px; height: 16px; background: var(--accent-text); animation: blink 1s steps(2, jump-none) infinite; flex: none; }

/* Bewegend beeldmerk: één hoek tegelijk vol AI Blue, met de klok mee */

/* Vier hoeken */
.home-section { display: grid; gap: clamp(24px, 4vw, 40px); }
.section-head { display: grid; gap: 10px; max-width: 760px; }
/* "Elke hoek gedekt" zoals op foursqr.ai: vier kaarten rond één kern, verbonden met lijnen */
.why { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 901px) { .why { gap: 96px 140px; } }
.why-card { position: relative; z-index: 1; overflow: hidden; display: grid; align-content: start; gap: 10px; padding: 28px; background: var(--card); border: 1px solid var(--line-soft); transition: border-color .3s, background .3s; }
.why-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(260px circle at var(--mx, -300px) var(--my, -300px), rgba(7, 102, 255, .22), transparent 60%); }
.why-card.is-on { border-color: var(--blue); }
[data-theme="dark"] .why-card.is-on, :root:not([data-theme="light"]) .why-card.is-on { background: #0d264c; }
.why-card:nth-of-type(1) { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%); }
.why-card:nth-of-type(2) { clip-path: polygon(0 0, 100% 0, 100% 100%, 18px 100%, 0 calc(100% - 18px)); }
.why-card:nth-of-type(3) { clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%); }
.why-card:nth-of-type(4) { clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%, 0 18px); }
.why-card h3 { margin: 0; font: 700 1.25rem/1.3 var(--font-head); color: var(--fg); }
.why-card p { margin: 0; color: var(--muted); max-width: 46ch; }
.why-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 4px; }
.glyph { display: grid; grid-template-columns: repeat(4, 7px); gap: 3px; }
.glyph i { width: 7px; height: 7px; background: var(--line-soft); }
.glyph i.on { background: var(--blue); }
.glyph i.hi { background: var(--accent-text); }
.why-chip { font: 400 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); border: 1px solid var(--line-soft); padding: 3px 8px; white-space: nowrap; }
.why-links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 0; }
.why-links path { fill: none; stroke: var(--line-soft); stroke-width: 1.5; stroke-dasharray: 4 6; transition: stroke .3s; }
.why-links path.on { stroke: var(--blue); stroke-dasharray: none; }
.why-links .pk { fill: var(--accent-text); }
.why-core { position: absolute; left: 50%; top: 50%; z-index: 2; width: 96px; height: 96px; padding: 22px; transform: translate(-50%, -50%); background: var(--bg); border-radius: 16px; box-shadow: 0 0 0 1.5px var(--blue), 0 0 40px rgba(7, 102, 255, .45); pointer-events: none; }
.ai-quad { display: block; width: 100%; height: 100%; }
.ai-quad path { fill: var(--line-soft); transition: fill .35s; }
.ai-quad path.on { fill: var(--blue); }
@media (max-width: 900px) { .why-links, .why-core { display: none; } }
@media (max-width: 720px) { .why { grid-template-columns: minmax(0, 1fr); } .why-card { padding: 20px; clip-path: none !important; border-radius: 8px; } }

/* Zo werkt het */
.how { display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: 20px; }
.how-tabs { display: grid; gap: 6px; align-content: start; }
.how-tabs button { display: flex; align-items: center; gap: 12px; text-align: left; font: 600 .95rem var(--font-head); color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 8px; padding: 10px 12px; cursor: pointer; transition: background 200ms ease, color 200ms ease, border-color 200ms ease; }
.how-tabs button:hover { color: var(--fg); border-color: var(--line-soft); }
.how-tabs button.on { color: var(--fg); background: var(--card); border-color: var(--line-soft); }
.how-nr { flex: none; display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; border: 1px solid var(--line-control); font-size: .8rem; }
.how-tabs button.on .how-nr { background: var(--blue); border-color: var(--blue); color: #fff; }
.how-tabs button.done .how-nr { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.how-panel { display: grid; align-content: start; gap: 12px; padding: clamp(20px, 3vw, 32px); background: var(--card); border: 1px solid var(--line-soft); border-radius: 4px 16px 4px 16px; animation: so-in 420ms ease both; }
.how-panel svg { width: 36px; height: 36px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.how-panel h3 { margin: 0; font: 700 1.3rem/1.3 var(--font-head); color: var(--fg); }
.how-panel p { margin: 0; max-width: 56ch; }
.how-progress { height: 3px; background: var(--line-soft); border-radius: 3px; overflow: hidden; margin-top: 8px; }
.how-progress span { display: block; height: 100%; background: var(--blue); transition: width 420ms ease; }
@media (max-width: 720px) { .how { grid-template-columns: minmax(0, 1fr); } }

.home-cta { display: grid; justify-items: start; gap: 14px; padding: clamp(24px, 4vw, 40px); background: var(--card); border: 1px solid var(--line-soft); border-top: 3px solid var(--blue); }
.home-cta p { margin: 0; max-width: 56ch; }

/* Kopbalk zoals foursqr.ai: logo links in de inhoudsbreedte, menu en acties rechts, NL/EN-schakelaar, blauwe actieknop */
.top { display: block; position: sticky; top: 0; z-index: 20; padding: 0; background: var(--midnight); border-bottom: 1px solid rgba(7, 102, 255, .38); }
.top-inner { display: flex; align-items: center; gap: 24px; min-height: 64px; width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: max(16px, 4vw); }
@media (min-width: 1300px) { .top-inner { padding-inline: 32px; } }
.brand img { height: 30px; width: auto; }
.top-nav { margin-left: auto; display: flex; gap: 24px; align-items: center; }
.top-nav a { color: #c9d8f2; text-decoration: none; font-size: 15px; white-space: nowrap; padding: 0; border-radius: 0; background: none; }
.top-nav a:hover, .top-nav a.active { color: #fff; background: none; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.top-nav:empty + .top-actions { margin-left: auto; }
.header-login { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 4px; color: #c9d8f2; background: none; border: 0; text-decoration: none; font: 400 15px var(--font); white-space: nowrap; cursor: pointer; }
.header-login:hover { color: #fff; }
.header-login svg, .theme-btn svg { width: 18px; height: 18px; flex: none; }
.lang-switch { display: inline-flex; border: 1px solid rgba(7, 102, 255, .38); border-radius: 8px; overflow: hidden; padding: 0; }
.lang-switch a { display: inline-grid; place-items: center; min-width: 40px; min-height: 36px; color: #a3b8dc; text-decoration: none; font: 400 13px var(--mono); border-radius: 0; padding: 0; }
.lang-switch a[aria-current] { background: var(--blue); color: #fff; }
.lang-switch a:not([aria-current]):hover { color: #fff; }
.theme-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; color: #c9d8f2; background: transparent; border: 1px solid rgba(7, 102, 255, .38); border-radius: 8px; cursor: pointer; }
.theme-btn:hover { color: #fff; border-color: #8db6ff; }
.btn--sm { padding: 8px 16px; font-size: 14px; min-height: 40px; }
.header-cta { white-space: nowrap; clip-path: none; border-radius: 8px; }
@media (max-width: 640px) {
  .header-login span, .header-cta { display: none; }
  /* Op een telefoon: het menu op een eigen regel onder het logo en de knoppen, zodat alles in beeld blijft */
  .top-inner { flex-wrap: wrap; gap: 8px 12px; padding-block: 10px; }
  .top-actions { margin-left: auto; gap: 8px; }
  .top-nav { order: 3; width: 100%; margin-left: 0; gap: 18px; overflow-x: auto; }
  .top-nav:empty { display: none; }
  .brand img { height: 26px; }
}
/* Inhoud in dezelfde breedte als de kopbalk */
.main { max-width: 1200px; padding-inline: max(16px, 4vw); }
@media (min-width: 1300px) { .main { padding-inline: 32px; } }

/* Inloggen in de hero */
.hero-login { display: grid; gap: 8px; width: 100%; max-width: 30rem; }
.inline-login { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.inline-login .field { flex: 1 1 14rem; }
.inline-login .field input { min-height: 48px; }
.inline-login .btn { min-height: 48px; padding-inline: 22px; }
.inline-login .notice { flex-basis: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Zonder beweging (systeemvoorkeur): het beeldmerk staat volledig, niet gedimd */

/* AI-uitstraling zoals foursqr.ai (src/aiLook.tsx): dataveld, lijn langs de secties, statusregels */
.ai-field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.home { position: relative; }
.shell > *:not(.ai-field):not(.top), .home > * { position: relative; z-index: 1; }
.top { z-index: 20; }
.home-rest { display: grid; gap: clamp(56px, 8vw, 96px); position: relative; }
.ai-spine { position: absolute; top: 0; bottom: 0; left: -28px; width: 2px; background: rgba(7, 102, 255, .38); pointer-events: none; }
.ai-spine i { position: absolute; left: 0; top: 0; width: 2px; height: var(--p, 0%); background: var(--blue); }
.ai-spine b { position: absolute; left: -4px; top: var(--p, 0%); width: 10px; height: 10px; background: var(--ice); outline: 4px solid rgba(7, 102, 255, .35); transform: translateY(-5px); }
@media (max-width: 1300px) { .ai-spine { display: none; } }
.ai-status { margin: 0; font: 400 13px var(--mono); color: var(--muted); min-height: 20px; }
.ai-status .ok { color: var(--ok); }

/* Huisstijl en voorbeelden (stap 4 en 5) */
h3 { margin: 0; font: 700 1.05rem/1.3 var(--font-head); color: var(--fg); }
.field textarea { font: 400 1rem var(--font); color: var(--fg); background: var(--input-bg); border: 1px solid var(--line-control); border-radius: var(--r); padding: 10px 12px; resize: vertical; }
.field textarea:focus-visible, .field select:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.color-input { display: flex; gap: 8px; align-items: stretch; }
.color-input input[type="color"] { flex: none; width: 46px; height: auto; min-height: 44px; padding: 3px; border: 1px solid var(--line-control); border-radius: var(--r); background: var(--input-bg); cursor: pointer; }
.color-input input:not([type="color"]) { flex: 1; min-width: 0; font: 400 1rem var(--mono); color: var(--fg); background: var(--input-bg); border: 1px solid var(--line-control); border-radius: var(--r); padding: 10px 12px; }
.color-input input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.color-input input[aria-invalid="true"] { border-color: var(--danger); }
.suggest { margin-top: 14px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.swatch { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border: 1px solid var(--line-control); border-radius: var(--r); background: var(--input-bg); color: var(--fg); cursor: pointer; }
.swatch:hover, .swatch:focus-visible { border-color: var(--blue); }
.swatch > span:first-child { width: 22px; height: 22px; border-radius: 4px; border: 1px solid var(--line-soft); }
.logo-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 12px; }
.logo-tile { display: flex; align-items: center; justify-content: center; min-height: 110px; padding: 20px; border-radius: var(--r); border: 1px solid var(--line-soft); }
.logo-tile.light { background: #fff; }
.logo-tile.dark { background: #061326; }
.logo-tile img { max-width: 100%; max-height: 72px; }
.examples { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: 16px; }
.example { display: grid; gap: 8px; align-content: start; padding: 12px; border: 1px solid var(--line-soft); border-radius: 4px 16px 4px 16px; }
.example p { margin: 0; }
.example img { width: 100%; max-height: 180px; object-fit: contain; background: var(--input-bg); border-radius: 4px; }
.example-preview { max-width: min(100%, 24rem); max-height: 200px; object-fit: contain; border: 1px solid var(--line-soft); border-radius: 4px; }
.group-box { padding-top: 18px; border-top: 1px solid var(--line-soft); }

/* Sign-off-editor */
/* Werkplek: opslaan en versies bovenaan, keuzes in tabbladen links, één voorbeeld rechts dat in beeld blijft. */
.editor { display: grid; grid-template-columns: minmax(300px, 440px) minmax(0, 1fr); gap: 24px; align-items: start; }
.editor-bar { position: sticky; top: 65px; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 10px 16px; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r); }
.editor-status { flex: 1 1 14rem; min-width: 0; }
.editor-status p { margin: 0; }
.editor-status .notice { padding: 6px 10px; }
.editor-save { display: flex; flex: 2 1 22rem; gap: 10px; }
.editor-save .field { flex: 1; min-width: 0; }
.editor-save input { min-height: 40px; padding-block: 6px; }
.editor-versions-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.ed-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line-soft); margin: -4px 0 0; }
.ed-tabs button { font: 600 .92rem var(--font-head); color: var(--muted); background: transparent; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 8px 10px; cursor: pointer; transition: color 200ms ease, border-color 200ms ease; }
.ed-tabs button:hover { color: var(--fg); }
.ed-tabs button[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--blue); }
.ed-tabs button:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.editor-controls [role="tabpanel"][hidden] { display: none; }
.editor-preview { position: sticky; top: 150px; max-height: calc(100vh - 164px); overflow: auto; }
.editor-preview .preview-switches { gap: 8px; }
.previews.previews--one { grid-template-columns: minmax(0, 1fr); }
.editor-preview .anim-previews { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.editor-preview .anim-previews .logo-tile { min-height: 120px; }
.editor-preview .anim-previews img { max-height: 96px; }
.sample { border-top: 1px solid var(--line-soft); padding-top: 10px; }
.sample summary { cursor: pointer; font: 600 .92rem var(--font-head); }
.sample > .stack { margin-top: 10px; }
.anim h4 { margin: 0; font: 700 1rem var(--font-head); color: var(--fg); }
@media (max-width: 900px) {
  .editor { grid-template-columns: 1fr; }
  .editor-bar { position: static; }
  /* Op telefoon en tablet: het voorbeeld bovenaan en in beeld, maar niet hoger dan ongeveer de helft van het scherm. */
  .editor-preview { order: -1; top: 64px; z-index: 5; max-height: 48vh; padding: 12px; gap: 10px; }
  .editor-preview .seg button { padding: 5px 9px; font-size: .78rem; }
  .editor-preview .seg--all { display: none; }
}
@media (max-width: 640px) { .editor-preview { top: 92px; } }
.editor-controls .field input[type="range"] { accent-color: var(--blue); width: 100%; }
.cpick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cpick-name { font-weight: 400; color: var(--muted); font-size: .9em; }
.cdot { display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; background: transparent; border: 0; border-radius: 50%; cursor: pointer; box-shadow: 0 0 0 1px transparent; transition: box-shadow 160ms ease, transform 160ms ease; }
.cdot:hover:not(:disabled) { transform: scale(1.08); }
.cdot:focus-visible, .cother:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.cdot[aria-pressed="true"], .cother.on { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--blue); }
.cdot:disabled { cursor: default; opacity: .6; }
.cdot-dot { position: relative; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(128, 128, 128, .35); overflow: hidden; }
/* "Andere kleur": een regenboogstip; met een eigen kleur staat die kleur als kleinere stip in het midden. */
.cother .cdot-dot { background: conic-gradient(#ff4d4d, #ffd84d, #6dd96d, #4dc3ff, #6a5cff, #ff4dd2, #ff4d4d); }
.cother .cdot-dot > span { position: absolute; inset: 5px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .5); }
@media (prefers-reduced-motion: reduce) { .cdot:hover:not(:disabled) { transform: none; } }
.editor-controls .color-input { flex-wrap: wrap; }
.editor-controls .swatches { flex: 1; }
.editor-controls .swatch { padding: 4px 8px 4px 4px; font-size: .78rem; }
.editor-controls .swatch[aria-pressed="true"] { border-color: var(--blue); outline: 1px solid var(--blue); }
.previews { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .previews { grid-template-columns: 1fr; } }
.preview { margin: 0; display: grid; gap: 6px; }
.preview iframe { width: 100%; border: 1px solid var(--line-soft); border-radius: 4px; background: #fff; display: block; }
.preview.phone iframe { max-width: 360px; }
.seg { display: inline-flex; border: 1px solid var(--line-control); border-radius: var(--r); overflow: hidden; }
.seg button { font: 600 .85rem var(--font); color: var(--fg); background: transparent; border: 0; padding: 7px 12px; cursor: pointer; }
/* Scheiding tussen knoppen: een rechte lijn in de tussenruimte, niet naast een gekozen knop. */
.seg button + button { position: relative; }
.seg button + button::before { content: ""; position: absolute; left: -2px; top: 22%; bottom: 22%; width: 1px; background: var(--line-control); }
.seg button[aria-pressed="true"]::before, .seg button[aria-pressed="true"] + button::before { opacity: 0; }
.seg button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.seg button:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.warnings { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.versions { list-style: none; margin: 0; padding: 0; }
.versions > li { padding: 12px 0; border-top: 1px solid var(--line-soft); display: grid; gap: 4px; }
.versions p { margin: 0; }

/* Claude in de editor */
.proposals { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.proposal { padding: 12px; border: 1px solid var(--line-soft); border-radius: 4px 16px 4px 16px; align-content: start; }
.proposal p { margin-bottom: 0; }
.claude h4 { margin: 0; font: 700 1rem var(--font-head); color: var(--fg); }
.claude .tiles--wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.proposal h5, .claude h5 { margin: 0; font: 700 .95rem var(--font-head); color: var(--fg); }
.claude .ai-box, .anim .ai-box { padding: 16px; border: 1px solid var(--line-soft); border-radius: var(--r); }
.claude .proposals { grid-template-columns: minmax(0, 1fr); }
.chat { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 320px; overflow-y: auto; }
.chat li { padding: 8px 12px; border-radius: var(--r); max-width: 85%; font-size: .92rem; }
.chat li.user { justify-self: end; background: var(--blue); color: #fff; }
.chat li.assistant { justify-self: start; background: var(--input-bg); border: 1px solid var(--line-soft); }

/* Voorbeeldtegels in de editor */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.tiles--wide { grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); }
.tile { display: grid; gap: 4px; justify-items: center; padding: 8px 6px 6px; background: var(--input-bg); color: var(--fg); border: 1px solid var(--line-soft); border-radius: 4px 12px 4px 12px; font: 600 .78rem var(--font); cursor: pointer; transition: border-color .2s, transform .2s; }
.tile:hover:not(:disabled), .tile:focus-visible { border-color: var(--blue); transform: translateY(-1px); }
.tile:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.tile[aria-checked="true"] { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.tile:disabled { cursor: default; opacity: .7; }
.schematic { width: 100%; max-width: 76px; height: auto; }
.schematic .sk-text { fill: var(--muted); opacity: .55; }
.schematic .sk-text.bold { opacity: .95; }
.schematic .sk-label, .schematic .sk-logo { fill: var(--blue); }
.schematic .sk-payoff { fill: var(--accent-text); opacity: .8; }
.schematic .sk-line { stroke: var(--blue); stroke-width: .8; }
.preview-pill { justify-self: start; margin: 0; }
@media (prefers-reduced-motion: reduce) { .tile { transition: none; } .tile:hover:not(:disabled) { transform: none; } }

/* Handleiding */
.how.guide { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); }
@media (max-width: 860px) { .how.guide { grid-template-columns: 1fr; } }
.guide .how-tabs button { font-size: .9rem; padding: 8px 10px; }
.guide-soon { margin-left: auto; font: 400 .72rem var(--font); }
.guide .how-panel h2 { margin: 0; }
.guide-step { margin: 0; font: 400 .8rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }
.guide-facts { display: grid; gap: 12px; margin: 4px 0 0; }
.guide-facts > div { display: grid; grid-template-columns: minmax(0, 160px) minmax(0, 1fr); gap: 4px 16px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
@media (max-width: 560px) { .guide-facts > div { grid-template-columns: 1fr; } }
.guide-facts dt { font-weight: 700; color: var(--fg); }
.guide-facts dd { margin: 0; }
.plan-link { color: inherit; text-decoration: none; }
.plan-link:hover, .plan-link:focus-visible { color: var(--accent-text); text-decoration: underline; }

/* Bewegend logo */
.anim-previews { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 12px; }
.anim-previews img { max-width: 100%; max-height: 64px; }
.anim-tile { min-height: 44px; align-content: center; text-align: center; }
.anim-proposal { justify-items: start; text-align: left; gap: 4px; padding: 10px; font-weight: 400; }
.anim-proposal strong { font: 700 .85rem var(--font-head); }
.anim-region { padding: 12px; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r); }
.anim-region > div { position: relative; }
.anim-region img { display: block; width: 100%; height: auto; }
.anim-region span { position: absolute; top: -4px; bottom: -4px; background: rgba(7, 102, 255, .14); border: 1.5px solid var(--blue); border-radius: 4px; pointer-events: none; }
.swatches input[type="color"] { width: 40px; height: 34px; padding: 2px; border: 1px solid var(--line-control); border-radius: var(--r); background: var(--input-bg); cursor: pointer; }

/* Formulierblokken (organisatiegegevens): links titel en uitleg, rechts de velden op een raster van 6 kolommen.
   Labels staan op één regel en velden op dezelfde hoogte, zodat alles per rij uitlijnt. */
.fsecs { display: grid; }
.fsec { border: 0; margin: 0; padding: 24px 0; min-width: 0; border-top: 1px solid var(--line-soft); display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 12px clamp(20px, 4vw, 48px); }
.fsec-head h3 { margin: 0 0 6px; font: 700 1rem var(--font-head); color: var(--fg); }
.fsec-head p { margin: 0; line-height: 1.5; }
.fgrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px 16px; align-items: start; max-width: 44rem; }
.fgrid .field, .fgrid .span-6 { grid-column: span 6; min-width: 0; }
.fgrid > p { margin: 0; }
.fgrid .span-2 { grid-column: span 2; }
.fgrid .span-3 { grid-column: span 3; }
.fgrid .span-4 { grid-column: span 4; }
.field-label { display: flex; align-items: baseline; gap: 8px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.req { font-weight: 600; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-text); }
.fgrid .field input, .fgrid .field select { width: 100%; max-width: none; min-height: 44px; box-sizing: border-box; }
.fgrid .field input::placeholder { color: var(--muted); opacity: .7; }
.readonly { display: flex; align-items: center; min-height: 44px; box-sizing: border-box; padding: 10px 12px; border: 1px dashed var(--line-control); border-radius: var(--r); color: var(--fg); font-weight: 400; }
@media (max-width: 760px) {
  .fsec { grid-template-columns: 1fr; padding: 20px 0; }
  .fgrid .span-2, .fgrid .span-3, .fgrid .span-4 { grid-column: span 6; }
}

/* Team en medewerkers: tabellen, schakelaar, import */
.table-wrap { overflow-x: auto; margin-inline: -4px; padding-inline: 4px; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th { text-align: left; font: 600 .78rem var(--font-head); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 0 12px 10px 0; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.table td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table td .pill { margin-left: 8px; }
.table select { font: 400 .95rem var(--font); color: var(--fg); background: var(--input-bg); border: 1px solid var(--line-control); border-radius: var(--r); padding: 6px 8px; }
.table tr.pending td { color: var(--muted); }
.table tr.inactive td { opacity: .55; }
.row-actions { white-space: nowrap; text-align: right; }
.row-actions .link + .link { margin-left: 14px; }
.nowrap { white-space: nowrap; }
.link.danger { color: var(--danger); }
.role-help { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .92rem; }
.role-help strong { display: inline-block; min-width: 8.5em; color: var(--fg); }
.people-bar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.people-bar .search { flex: 1 1 18rem; }
.people-bar .search input { width: 100%; box-sizing: border-box; }
.people-bar > p { margin: 0; }
.person-form { padding: 18px; border: 1px solid var(--line-soft); border-radius: var(--r); display: grid; gap: 14px; }
.person-form .fgrid { max-width: none; }
.switch { position: relative; display: inline-block; width: 38px; height: 22px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line-control); transition: background 160ms ease; pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 160ms ease; }
.switch input:checked + span { background: var(--blue); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.switch input:disabled { cursor: default; }
.import { padding-top: 20px; border-top: 1px solid var(--line-soft); }
.import h3, .person-preview h3 { margin: 0; font: 700 1rem var(--font-head); color: var(--fg); }
.file-btn { position: relative; cursor: pointer; }
.file-btn:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.csv-errors { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; font-size: .9rem; max-height: 16rem; overflow: auto; }
.person-preview .previews { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
@media (max-width: 640px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; }
  .table tr { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
  .table td { padding: 2px 0; border: 0; }
  .table td:empty { display: none; }
  .row-actions { text-align: left; padding-top: 8px !important; }
  .role-help strong { display: block; min-width: 0; }
}

/* Installeren: stappen, kopieervakken, controles en status */
.it-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 18px; }
.it-steps > li { counter-increment: step; position: relative; padding-left: 44px; }
.it-steps > li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: 700 .85rem var(--font-head); color: #fff; background: var(--blue); }
.it-steps > li > strong { color: var(--fg); }
.it-steps > li > a { margin-left: 6px; }
.it-steps p { margin: 4px 0 0; color: var(--text); }
.it-steps .copybox { margin-top: 10px; }
.it-steps ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; color: var(--text); }
.copybox { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.copybox code { flex: 1 1 18rem; padding: 10px 12px; border: 1px solid var(--line-control); border-radius: var(--r); background: var(--input-bg); color: var(--fg); word-break: break-all; font-size: .9rem; }
.copybox textarea { flex: 1 1 100%; font: 400 .82rem var(--mono); color: var(--fg); background: var(--input-bg); border: 1px solid var(--line-control); border-radius: var(--r); padding: 10px 12px; resize: vertical; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: baseline; }
.checks li > span { flex: none; width: 1.3rem; height: 1.3rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: 700 .75rem var(--font-head); }
.checks li.ok > span { background: var(--ok-bg); color: var(--ok); }
.checks li.bad > span { background: var(--danger-bg); color: var(--danger); }
.checks li.warn > span { background: var(--warn-bg); color: var(--fg); }
.table.settings th { text-transform: none; letter-spacing: 0; font: 600 .9rem var(--font); color: var(--fg); padding: 12px 16px 12px 0; vertical-align: top; width: 14rem; border-bottom: 1px solid var(--line-soft); white-space: normal; }
.table.settings td .copybox { margin-bottom: 6px; }
.it-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 20px 32px; }
.it-options h3, .card h3 { margin: 0; font: 700 1rem var(--font-head); color: var(--fg); }
.big-stat { font: 700 1.35rem var(--font-head); color: var(--fg); margin: 0; }
.other-apps { padding-top: 18px; border-top: 1px solid var(--line-soft); }
@media (max-width: 640px) { .table.settings th { width: auto; padding-bottom: 0; } }

/* Wizard: het stappenplan blijft in beeld naast het formulier; op een telefoon uitklapbaar erboven. */
.wizard { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: 0 clamp(24px, 4vw, 48px); align-items: start; }
.wizard-steps { position: sticky; top: 92px; padding-right: clamp(16px, 3vw, 32px); border-right: 1px solid var(--line-soft); }
.wizard-plan > summary { list-style: none; display: grid; gap: 2px; margin-bottom: 14px; cursor: default; }
.wizard-plan > summary::-webkit-details-marker { display: none; }
.wizard-plan > summary strong { font: 700 1rem var(--font-head); color: var(--fg); }
.wizard-steps .plan { gap: 8px; font-size: .92rem; }
.wizard-steps .plan-step .pill { font-size: .72rem; padding: 0 6px; }
@media (max-width: 900px) {
  .wizard { grid-template-columns: 1fr; }
  .wizard-steps { position: static; padding: 0 0 16px; margin-bottom: 20px; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .wizard-plan > summary { cursor: pointer; margin-bottom: 0; padding-right: 28px; position: relative; }
  .wizard-plan > summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform 160ms ease; }
  .wizard-plan[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
  .wizard-plan[open] > summary { margin-bottom: 14px; }
}
.readonly { gap: 12px; }
.readonly .link { margin-left: auto; font-family: var(--font); }

/* Stappenplan op volgorde: dichte stappen gedempt */
.plan-step.locked { opacity: .55; }
.how-tabs button.done .how-nr { background: var(--ok-bg); color: var(--ok); border-color: transparent; }

/* Beheeromgeving */
.admin-tabs { align-self: flex-start; }
.stat-row { display: flex; flex-wrap: wrap; gap: 10px; }
.stat { display: grid; gap: 2px; min-width: 7.5rem; padding: 10px 14px; border: 1px solid var(--line-soft); border-radius: var(--r); background: transparent; text-align: left; font: inherit; color: inherit; }
.stat--btn { cursor: pointer; }
.stat--btn:hover, .stat--btn.on { border-color: var(--blue); }
.stat--btn.on { background: rgba(7, 102, 255, .12); }
.stat-n { font: 700 1.35rem var(--font-head); color: var(--fg); }
.admin-table select { min-width: 8rem; }
.link.strong { font-weight: 700; color: var(--fg); text-decoration: none; text-align: left; }
.link.strong:hover, .link.strong[aria-expanded="true"] { color: var(--accent-text); text-decoration: underline; }
.detail-row > td { background: rgba(7, 102, 255, .05); padding: 16px !important; }
.admin-detail h3 { margin: 4px 0 0; font: 700 1rem var(--font-head); color: var(--fg); }
.domain-chip { display: inline-flex; gap: 6px; align-items: center; margin-right: 14px; }
.confirm { margin-top: 6px; max-width: 18rem; }
.audit-filter { max-width: 22rem; }
.admin-tabs { flex-wrap: wrap; max-width: 100%; }
@media (max-width: 640px) {
  .admin-table td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); }
  .admin-detail .facts { grid-template-columns: 1fr; gap: 2px 0; }
  .admin-detail .facts dd { margin-bottom: 8px; }
}

/* Verwerkersovereenkomst: volle breedte, inhoudsopgave die blijft staan, op een breed scherm twee kolommen tekst */
.dpa { display: grid; gap: 24px; }
.dpa-head { display: grid; gap: 8px; max-width: 900px; }
.dpa-head h1, .dpa-head p { margin: 0; }
.dpa-body { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.dpa-toc { position: sticky; top: 92px; padding-right: 20px; border-right: 1px solid var(--line-soft); }
.dpa-toc ol { margin: 6px 0 0; padding-left: 1.3em; display: grid; gap: 6px; font-size: .9rem; }
.dpa-toc a { color: var(--text); text-decoration: none; }
.dpa-toc a:hover, .dpa-toc a:focus-visible { color: var(--accent-text); text-decoration: underline; }
.dpa-text { column-count: 2; column-gap: clamp(28px, 4vw, 56px); }
.dpa-text section { break-inside: avoid; margin-bottom: 18px; scroll-margin-top: 96px; }
.dpa-text h2 { font-size: 1.02rem; margin: 0 0 6px; }
.dpa-text p { margin: 0 0 8px; line-height: 1.6; }
.dpa-accept { display: grid; gap: 10px; padding: 20px; border: 1px solid var(--blue); border-radius: var(--r); background: rgba(7, 102, 255, .08); }
.dpa-accept p { margin: 0; }
@media (max-width: 1100px) { .dpa-text { column-count: 1; } }
@media (max-width: 760px) {
  .dpa-body { grid-template-columns: 1fr; }
  .dpa-toc { position: static; border-right: 0; padding: 0 0 12px; border-bottom: 1px solid var(--line-soft); }
}
.fgrid .color-input input[type="color"] { width: 46px; }

/* Mijn omgeving: per organisatie het stappenplan links en de gekozen stap rechts (zelfde opbouw als de wizard) */
.workspace { display: grid; gap: 20px; }
.workspace-head h2, .workspace-head p { margin: 0; }
.workspace-head { display: grid; gap: 6px; padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
button.plan-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.plan-step.selected { color: var(--fg); }
.plan-step.selected .plan-link { font-weight: 700; color: var(--accent-text); }
.plan-step.selected .plan-nr { box-shadow: 0 0 0 2px var(--blue); }
.wizard-steps > p.small { margin: 0 0 12px; }
.step-nav { padding-top: 16px; border-top: 1px solid var(--line-soft); }
.step-nav .btn { margin-left: auto; }
@media (max-width: 900px) { .step-nav .btn { margin-left: 0; } }

/* Bedrijf zoeken in registers en btw-nummer controleren */
.lookup { position: relative; }
.lookup-busy { position: absolute; right: 12px; top: 12px; }
.lookup-list { position: absolute; z-index: 15; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 6px; list-style: none; background: var(--card); border: 1px solid var(--line-control); border-radius: var(--r); box-shadow: 0 12px 32px rgba(0, 0, 0, .35); max-height: 22rem; overflow: auto; }
.lookup-list button { display: grid; gap: 2px; width: 100%; text-align: left; padding: 8px 10px; border: 0; border-radius: 6px; background: transparent; color: var(--fg); font: 400 .95rem var(--font); cursor: pointer; }
.lookup-list button:hover, .lookup-list button.on { background: rgba(7, 102, 255, .14); }
.lookup-meta { font-size: .82rem; color: var(--muted); }
.lookup-meta .pill { margin-left: 4px; font-size: .7rem; }
.lookup-foot { padding: 6px 10px 2px; }
.lookup-note { margin-bottom: 8px; }
.auto-tag { font-weight: 600; font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ok); }
.field.filled input, .field.filled select { border-color: var(--ok); }
.vat-check { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-weight: 400; }
.vat-ok { color: var(--ok); font-size: .85rem; }

/* Huisstijl: talen van de sign-off */
.lang-pick { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 8px; }
.lang-pick legend { padding: 0; margin-bottom: 8px; }
.lang-checks { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.lang-checks .check { align-items: center; }
.lang-checks .check input { margin-top: 0; }

/* Sleepvak voor uploads: gestippelde rand, oplichten als er een bestand boven hangt */
.dropzone { display: grid; justify-items: start; gap: 10px; padding: 20px; border: 1.5px dashed var(--line-control); border-radius: var(--r); background: var(--input-bg); transition: border-color 160ms ease, background 160ms ease; }
.dropzone p { margin: 0; }
.dropzone.over { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 10%, var(--input-bg)); }
.dropzone.disabled { opacity: .6; }
.dropzone-text { font-weight: 600; color: var(--fg); }
.example-previews { display: flex; flex-wrap: wrap; gap: 10px; }
.example-previews .example-preview { max-width: 12rem; max-height: 140px; }

/* Bewegend logo: delen van het logo als lijst met kleine tekening, en de keuzes naast elkaar */
.part-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.part-list .part { align-items: center; gap: 12px; padding: 8px 12px; border: 1px solid var(--line-control); border-radius: var(--r); background: var(--input-bg); cursor: pointer; }
.part-list .part input { margin-top: 0; }
.part-thumb { flex: none; width: 64px; height: 40px; }
.anim-options { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.anim .ai-box { padding: 16px; border: 1px solid var(--line-soft); border-radius: var(--r); }
.anim-options .tiles { display: flex; flex-wrap: wrap; }


/* Inspreken: microfoonknop rechtsboven in een tekstveld */
.with-mic { position: relative; display: grid; gap: 4px; }
.with-mic > input, .with-mic > textarea { width: 100%; box-sizing: border-box; padding-right: 48px; }
.mic { position: absolute; top: 6px; right: 6px; display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 50%; cursor: pointer; transition: color 160ms ease, border-color 160ms ease, background 160ms ease; }
.mic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.mic:hover:not(:disabled), .mic:focus-visible { color: var(--fg); border-color: var(--line-control); }
.mic:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.mic.on { color: #fff; background: var(--blue); border-color: var(--blue); animation: mic-pulse 1.4s ease-in-out infinite; }
.mic:disabled { cursor: default; opacity: .5; }
.mic-msg { font-size: .85rem; }
@keyframes mic-pulse { 50% { box-shadow: 0 0 0 6px rgba(7, 102, 255, .25); } }

/* Gegevens: per regel tonen, en vet (B) of cursief (I) */
.detail-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.detail-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.detail-row .check { margin: 0; }
.detail-name { padding-left: 2px; }
.fmt { display: inline-flex; gap: 4px; flex: none; }
.fmt button { width: 32px; height: 32px; padding: 0; font: 700 .95rem var(--font); color: var(--muted); background: transparent; border: 1px solid var(--line-control); border-radius: 6px; cursor: pointer; transition: color 160ms ease, background 160ms ease, border-color 160ms ease; }
.fmt .fmt-u { text-decoration: underline; text-underline-offset: 2px; }
.fmt .fmt-i { font-style: italic; font-weight: 600; font-family: Georgia, "Times New Roman", serif; }
.fmt button:hover:not(:disabled) { color: var(--fg); border-color: var(--blue); }
.fmt button[aria-pressed="true"] { color: #fff; background: var(--blue); border-color: var(--blue); }
.fmt button:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.fmt button:disabled { cursor: default; opacity: .4; }

/* Editor, rustiger (29-10-2026): kleine blauwe kopjes zoals foursqr.ai, gelijke breedtes en afstanden, compacte keuzes. */
@media (min-width: 901px) { .editor { grid-template-columns: minmax(320px, 500px) minmax(0, 1fr); } }
.editor-controls [role="tabpanel"] > * + * { margin-top: 0; }
.editor-controls [role="tabpanel"] { display: grid; gap: 22px; }
.editor-controls .group legend, .editor-controls .anim > .stack > h3, .editor-controls .anim h4, .claude h3, .claude h4 {
  font: 600 12px/18px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 10px;
}
.editor-controls [role="tabpanel"] > .group + .group, .editor-controls [role="tabpanel"] > .anim-wrap,
.editor-controls .anim > section + section, .editor-controls .anim > fieldset, .editor-controls .anim > .anim-options {
  border-top: 0; padding-top: 18px; background: linear-gradient(var(--line-soft), var(--line-soft)) top / 100% 1px no-repeat;
}
/* Een legend gedraagt zich anders dan een kopje; zo staat hij gewoon bovenaan, onder het scheidingslijntje. */
.editor-controls .group > legend { float: left; width: 100%; padding: 0; }
.editor-controls .group > legend + * { clear: both; }
.editor-controls .stack > * + * { margin-top: 10px; }
.editor-controls .field select, .editor-controls .field input:not([type="checkbox"]):not([type="range"]):not([type="color"]),
.editor-controls .field textarea { width: 100%; max-width: none; box-sizing: border-box; }
.anim-wrap[hidden] { display: none; }

/* Kleine keuzes als schakelaars, twee per rij */
.seg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.seg-group { min-width: 0; }
.seg--full { display: flex; width: 100%; box-sizing: border-box; }
.seg--full button { flex: 1 1 auto; padding-inline: 8px; white-space: nowrap; }
@media (max-width: 480px) { .seg--full button { flex-basis: 0; min-width: 0; padding-inline: 2px; font-size: .78rem; } }
@media (max-width: 420px) { .seg-grid { grid-template-columns: minmax(0, 1fr); } }

/* Werkbalk boven het voorbeeld: één regel */
.preview-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.seg--icons button { display: inline-grid; place-items: center; padding: 6px 10px; }
.seg--icons svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.editor-preview .warnings { margin-top: 4px; }
.editor-preview .warnings .notice { padding: 8px 12px; font-size: .88rem; }
.previews--one .preview.desktop { max-width: 640px; }

/* Uitleg die openklapt */
.info { font-size: .88rem; }
.info summary { cursor: pointer; color: var(--muted); list-style: none; display: inline-flex; gap: 6px; align-items: center; }
.info summary::-webkit-details-marker { display: none; }
.info summary:hover { color: var(--fg); }
.info[open] summary { color: var(--fg); }
.info > p { margin: 6px 0 0; }

/* Logo: onderdelen compact in twee kolommen, keuzes in een raster */
.editor-controls .part-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.editor-controls .part-list .part { padding: 6px 10px; gap: 8px; min-height: 0; }
.editor-controls .part-thumb { width: 44px; height: 28px; }
.editor-controls .anim-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.editor-controls .anim-options .group { border-top: 0; padding-top: 0; }
.editor-controls .anim .tiles { display: flex; flex-wrap: wrap; gap: 6px; }
.editor-controls .anim .anim-tile { min-height: 36px; padding: 6px 10px; }
.editor-controls .anim .ai-box { padding: 14px; }
.editor-controls .anim .seg button { white-space: nowrap; }
@media (max-width: 420px) { .editor-controls .part-list, .editor-controls .anim-options { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .editor-save { flex-wrap: wrap; }
  .editor-save .field { flex: 1 1 100%; }
  .editor-save .btn { flex: 1 1 auto; }
}

/* Stijlen en logoposities in hetzelfde raster van vier, zodat de rijen onder elkaar uitlijnen */
.style-tiles .tiles, .style-tiles .tiles--wide { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 420px) { .style-tiles .tiles, .style-tiles .tiles--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Opslaanbalk: stip die laat zien of alles is opgeslagen */
.save-state { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.save-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--muted); }
.save-dot.changed { background: #E8A33D; box-shadow: 0 0 0 3px rgba(232, 163, 61, .2); }
.save-dot.saved { background: var(--ok, #2FA36B); }
