/* Brand fonts bundled with the app (same files and declarations as the Groundlayer website). */
@font-face { font-family: "DM Serif Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/dm-serif-display-latin.woff2") format("woff2"); }
@font-face { font-family: "DM Serif Display"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/dm-serif-display-italic-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/inter-latin-var.woff2") format("woff2"); }

:root {
  /* Groundlayer Response Visual & Interaction Direction v1 — bindende tokens. */
  --ink-espresso: #1e1817;
  --ink-aubergine: #2a132a;
  --charcoal-warm: #292625;
  --wood-walnut: #45342d;
  --parchment: #f1e7d5;
  --bone: #fbf6ec;
  --stone: #d7c9b4;
  --ink-soft: #302927;
  --ink-muted: #675c56;
  --gold-burnished: #b88a49;
  --copper-glow: #c7794f;

  --success-deep: #2f6756;
  --success-wash: #e1eee7;
  --success-text: #1e5143;
  --warning-ochre: #986c1a;
  --warning-wash: #f7ecd3;
  --risk-terracotta: #a84935;
  --risk-wash: #f7e3dd;
  --danger-ink: #6e211a;
  --focus-ring: #d3a660;

  --advisory-bg: #eee5da;
  --bone-deep: #f5eddc;
  --parchment-deep: #e4d4bd;

  /* V1 §6 — Oppervlak-schaduw en gecontroleerde gloed. Materialiteit, niet decoratie. */
  --shadow-surface: 0 12px 36px rgba(15, 10, 9, 0.16);
  --shadow-surface-sm: 0 6px 18px rgba(15, 10, 9, 0.1);
  --shadow-lift: 0 22px 48px rgba(8, 5, 5, 0.4);
  --glow-copper: 0 0 0 1px rgba(199, 121, 79, 0.28), 0 10px 26px rgba(199, 121, 79, 0.18);
  --glow-risk: 0 10px 30px rgba(168, 73, 53, 0.35);
  --glow-success: 0 10px 26px rgba(47, 103, 86, 0.16);

  /* Canvas-atmosfeer (V1 §5 "digital interpretation": kleurdrift, geen foto achter tekst). */
  --canvas-text: var(--parchment);
  --canvas-text-muted: rgba(241, 231, 213, 0.78);

  --sidebar-w: 200px;
  --content-max: 840px;
  --radius-card: 20px;
  --radius-alt: 16px;
  --radius-sm: 8px;

  --font-serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.75rem;
  --text-2xl: 2rem;

  /* Reading roles: guest review and proposed response are read, not displayed (sans, like the website body). */
  --ink-read: #221a17;
  --ink-quote: #3a2f27;
  --read-size: 1.0625rem;
  --read-leading: 1.65;
  --read-measure: 64ch;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--ink-soft);
  background: var(--ink-espresso);
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible,
.queue-row:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

#app.loading {
  padding: 48px 24px;
  color: var(--ink-muted);
}

.shell {
  min-height: 100vh;
}

/* ================= STAGE — approved hospitality photograph (Phase 1 shell). ================= */
.stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.stage__image {
  position: absolute;
  inset: 0;
  background-image: url("assets/hospitality-atmosphere.png");
  background-size: cover;
  background-position: -140px 40%;
  filter: saturate(1.05) brightness(1.1) contrast(1.02);
  z-index: -3;
}

.stage__overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, rgba(20, 14, 13, 0.4) 0%, rgba(20, 14, 13, 0.08) 22%, rgba(20, 14, 13, 0.08) 72%, rgba(15, 10, 9, 0.42) 100%);
}

.stage__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(460px 380px at 24% 44%, rgba(199, 121, 79, 0.16), transparent 65%);
  mix-blend-mode: soft-light;
}

.stage__vignette {
  position: absolute;
  inset: 0;
  z-index: 0;
  box-shadow: inset 0 0 160px 50px rgba(10, 7, 6, 0.14);
  pointer-events: none;
}

/* Concierge-staat: HIGH-risk nog niet gepubliceerd → stage donkerder/serieuzer. */
.stage.stage-high-risk .stage__overlay {
  background: linear-gradient(180deg, rgba(20, 14, 13, 0.52) 0%, rgba(20, 14, 13, 0.14) 24%, rgba(20, 14, 13, 0.14) 72%, rgba(15, 10, 9, 0.52) 100%);
}

.brand-overlay {
  position: absolute;
  top: 30px;
  left: 34px;
  z-index: 2;
}

.brand-lockup { display: flex; align-items: center; }
.brand-lockup svg,
.brand-lockup img.brand-lockup-img { display: block; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.45)); }
.brand-lockup img.brand-lockup-img { width: auto; height: 56px; max-width: min(280px, 70vw); }

.venue-block { margin-top: 80px; }

.venue-name {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--bone);
  margin: 0 0 4px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.venue-sub {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(241, 231, 213, 0.75);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
  margin: 0;
}

.nav-overlay {
  position: absolute;
  bottom: 30px;
  left: 34px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 6px;
  border: none;
  border-left: 2px solid transparent;
  font-size: 1.0625rem;
  font-weight: 500;
  font-family: inherit;
  color: rgba(241, 231, 213, 0.88);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  background: none;
  cursor: pointer;
  text-align: left;
}

.nav-item:hover { color: var(--bone); background: rgba(20, 14, 13, 0.28); }

.nav-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
}

.nav-item--active {
  background: rgba(15, 10, 9, 0.55);
  color: var(--bone);
  font-weight: 600;
  border-left-color: var(--gold-burnished);
  box-shadow: inset 0 0 0 1px rgba(184, 138, 73, 0.5);
}

/* ================= CONTENT-CARD — architectural work surface, floats over the stage. ================= */
.content-card {
  position: fixed;
  top: 40px;
  right: 40px;
  bottom: 40px;
  left: 392px;
  background: linear-gradient(160deg, #fffefe 0%, #fefcf7 55%, #fbf8f0 100%);
  border: 1px solid rgba(30, 20, 15, 0.1);
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(15, 10, 9, 0.1), 0 26px 54px rgba(15, 10, 9, 0.24);
  overflow-y: auto;
  z-index: 3;
  padding: 52px 60px;
}

/* Onboarding (buiten de shell) — eigen entree-modus binnen hetzelfde merk.
   FOTO = omgeving (.main::before, vast over de hele viewport),
   WERKVLAK = het donkere Groundlayer-vlak dat in die omgeving is geplaatst
   (.main > .content), PAPIER = het beslissingsoppervlak daarbinnen.
   Waar de viewport het toelaat blijft de foto zichtbaar links (smalle rand),
   boven, onder en vooral rechts; smaller wint bruikbaarheid (zie media queries). */
.main {
  --frame-x: clamp(20px, 4vw, 88px);
  --frame-y: clamp(20px, 4.5vh, 52px);
  --frame-photo: max(18vw, 180px);
  position: relative;
  min-height: 100vh;
  padding: var(--frame-y) var(--frame-x);
  color: var(--canvas-text);
  background: var(--ink-espresso);
}

/* De bevestigde hospitality-foto als doorlopende omgeving: `position: fixed`
   houdt het beeld stabiel terwijl de pagina scrolt op langere stappen, dus
   geen herhaling, geen uitrekken en geen naad waar de inhoud eindigt. De
   warme grading is links zwaarder (daar ligt het werkvlak) en boven/onder
   licht afgezwakt, zodat de foto kadert in plaats van concurreert. */
.main::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(18, 13, 12, 0.66) 0%, rgba(18, 13, 12, 0.42) 50%, rgba(18, 13, 12, 0.14) 78%, rgba(18, 13, 12, 0.24) 100%),
    linear-gradient(180deg, rgba(10, 7, 6, 0.42) 0%, transparent 20%, transparent 78%, rgba(10, 7, 6, 0.5) 100%),
    url("assets/hospitality-atmosphere.png");
  background-size: auto, auto, cover;
  background-position: center, center, 72% 40%;
  background-repeat: no-repeat;
}

.main > .content {
  position: relative;
  z-index: 1;
  width: min(940px, 100% - var(--frame-photo));
  max-width: none;
  min-height: calc(100vh - 2 * var(--frame-y));
  padding: 30px clamp(32px, 4vw, 60px) 56px;
  border-radius: 6px;
  border: 1px solid rgba(241, 231, 213, 0.07);
  /* Werkvlak: de bestaande donkere/editoriale gradients (strata), vast aan de
     viewport zodat het vlak op elke scrollpositie hetzelfde leest, plus één
     gouden haarlijn langs de bovenrand als rustig merkaccent. */
  background:
    linear-gradient(90deg, rgba(184, 138, 73, 0.55), rgba(184, 138, 73, 0) 58%) top left / 100% 1px no-repeat,
    radial-gradient(1000px 520px at 14% -8%, rgba(184, 138, 73, 0.15), transparent 55%) fixed,
    radial-gradient(700px 900px at 70% 15%, rgba(42, 19, 42, 0.32), transparent 60%) fixed,
    linear-gradient(200deg, transparent 38%, rgba(69, 52, 45, 0.26) 55%, transparent 78%) fixed,
    linear-gradient(20deg, transparent 42%, rgba(42, 19, 42, 0.28) 60%, transparent 82%) fixed,
    linear-gradient(160deg, #2b2220 0%, var(--ink-espresso) 45%, #120d0c 100%) fixed;
  box-shadow:
    inset 0 1px 0 rgba(241, 231, 213, 0.05),
    0 2px 6px rgba(6, 4, 4, 0.3),
    0 34px 80px rgba(6, 4, 4, 0.55);
}

.content {
  max-width: var(--content-max);
}

/* Review Detail reads narrower than Werkruimte/Settings — matches the
   frozen authority's .content--narrow (620px). */
.content--narrow {
  max-width: 620px;
}

/* Papieren eiland — het herbruikbare materiële oppervlak waarop formulieren,
   samenvattingen en filters rusten binnen de donkere atmosfeer. */
.paper {
  background: var(--bone);
  color: var(--ink-soft);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lift);
  padding: 28px 32px;
}

.paper--inline {
  padding: 14px 18px;
  border-radius: var(--radius-alt);
  box-shadow: var(--shadow-surface-sm);
  margin-bottom: 20px;
}

/* Koppen/inleidende tekst die los op de donkere atmosfeer staan (nooit binnen
   een .paper-kaart) krijgen de lichte canvas-tekstbehandeling. */
.main .content > .heading,
.main .content > .subheading {
  color: var(--canvas-text);
}

.main .content > .lead {
  color: var(--canvas-text-muted);
}

.back-link {
  color: var(--copper-glow);
}

.back-link:hover {
  color: var(--gold-burnished);
}

.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.eyebrow-risk { color: var(--risk-terracotta); }
.eyebrow-success { color: var(--success-text); }
.eyebrow-focus { color: var(--ink-aubergine); }

.heading {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--text-2xl);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 10px;
  color: var(--ink-soft);
}

.subheading {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  font-size: var(--text-lg);
  letter-spacing: 0;
  line-height: 1.3;
  margin: 0 0 10px;
  color: var(--ink-soft);
}

.lead {
  color: var(--ink-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
  max-width: 38em;
  margin: 0 0 28px;
}

.label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--ink-muted);
}

.field {
  margin-bottom: 20px;
}

input[type="text"],
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--stone);
  border-radius: var(--radius-sm);
  background: var(--bone);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type="text"]:hover,
select:hover,
textarea:hover {
  border-color: var(--wood-walnut);
}

input[type="text"]:focus,
select:focus,
textarea:focus {
  border-color: var(--ink-aubergine);
  box-shadow: 0 0 0 3px rgba(211, 166, 96, 0.3);
  outline: none;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23675c56' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

textarea {
  min-height: 220px;
  resize: vertical;
  line-height: 1.6;
  font-size: 1rem;
}

.checkbox-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 20px 0;
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--ink-muted);
}

.checkbox-row input {
  margin-top: 4px;
  accent-color: var(--ink-aubergine);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  align-items: center;
}

.actions-confirm {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--stone);
}

/* Knoppen rusten op de donkere atmosfeer (V1 §7.6): terughoudende outline voor
   secundaire acties, warm ivoor voor de bevestigde hoofdactie, koper voor het
   ene beslissende moment (publiceren) — een duidelijke drieledige hiërarchie,
   geen blauwe SaaS-knop. */
.btn {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(241, 231, 213, 0.28);
  background: rgba(251, 246, 236, 0.05);
  color: var(--parchment);
  cursor: pointer;
  font-weight: 600;
  font-size: var(--text-sm);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover:not(:disabled) {
  background: rgba(251, 246, 236, 0.12);
  border-color: var(--gold-burnished);
}

.btn-primary {
  background: var(--bone);
  border-color: var(--bone);
  color: var(--ink-soft);
}

.btn-primary:hover:not(:disabled) {
  background: #ffffff;
  border-color: #ffffff;
}

.btn-publish {
  background: linear-gradient(135deg, var(--copper-glow), var(--gold-burnished));
  border-color: transparent;
  color: var(--ink-espresso);
  box-shadow: var(--glow-copper);
}

.btn-publish:hover:not(:disabled) {
  background: linear-gradient(135deg, #d4875a, var(--gold-burnished));
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Confirm-actie: rustige, verdwijnende bevestiging naast een knop — een
   directe projectie van de teruggekomen server-state (zie app.js `actionNotice`),
   nooit een losstaande timer die van de backend-staat kan afwijken. */
.confirm-note {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--success-text);
  animation: confirm-land 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes confirm-land {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Onboarding voortgang — editorial chapter list (index + label), matching
   the frozen authority's .chapters, in the dark-canvas palette. Lives in the
   onboarding masthead next to the lockup. Drie heldere staten: huidig (ivoor,
   koperen index), gedaan (gedempt, klikbaar), nog niet (terughoudend). */
.chapters {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
}

.chapters__item {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
}

.chapters__item + .chapters__item::before {
  content: "";
  align-self: center;
  width: 10px;
  height: 1px;
  margin-right: 5px;
  background: rgba(241, 231, 213, 0.14);
}

.chapters__index {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.75rem;
  color: rgba(241, 231, 213, 0.36);
}

.chapters__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(241, 231, 213, 0.38);
}

.chapters__label--link {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 4px 0;
  text-underline-offset: 4px;
  transition: color 0.15s ease;
}

.chapters__item--done .chapters__index { color: rgba(241, 231, 213, 0.5); }
.chapters__item--done .chapters__label { color: rgba(241, 231, 213, 0.62); }

.chapters__item--current .chapters__index { color: var(--copper-glow); }
.chapters__item--current .chapters__label { color: rgba(251, 246, 236, 0.92); }

.chapters__label--link:hover {
  color: var(--bone);
  text-decoration: underline;
  text-decoration-color: var(--gold-burnished);
}

.hidden {
  display: none !important;
}

.policy-sub {
  margin-top: 20px;
  padding: 16px 0 4px 18px;
  border-left: 2px solid var(--ink-aubergine);
}

.policy-block {
  border: none;
  border-top: 1px solid var(--stone);
  border-radius: 0;
  padding: 24px 0 8px;
  margin-bottom: 4px;
  background: transparent;
}

.policy-block:first-of-type {
  border-top: none;
  padding-top: 0;
}

.policy-block .subheading {
  font-size: var(--text-base);
  margin-bottom: 8px;
}

.policy-block > p:first-of-type,
.policy-question {
  font-size: var(--text-sm);
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 12px;
}

.policy-block p {
  margin: 0 0 10px;
  color: var(--ink-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
  max-width: 42em;
}

.policy-block p:last-child { margin-bottom: 0; }

.policy-note {
  margin: 0 0 24px;
  padding: 14px 16px;
  background: var(--advisory-bg);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: var(--text-sm);
  line-height: 1.55;
  border-left: 3px solid var(--wood-walnut);
}

.policy-hint {
  margin: 10px 0 0;
  color: var(--ink-muted);
  font-size: var(--text-xs);
  line-height: 1.5;
}

.policy-example {
  font-style: italic;
  color: var(--ink-muted);
}

/* Review-quote-behandeling (V1 §7.1/3.1) hergebruikt voor het stem-voorbeeld. */
.example-box {
  border-left: 2px solid var(--gold-burnished);
  padding: 20px 22px;
  background: var(--bone);
  box-shadow: var(--shadow-surface-sm);
  border-radius: var(--radius-sm);
  margin: 20px 0;
  white-space: pre-wrap;
  line-height: var(--read-leading);
  font-size: var(--text-base);
  color: var(--ink-read);
}

.example-box.emphasis,
.example-hero {
  border-radius: var(--radius-card);
  border-left-width: 2px;
  padding: 28px 30px;
  font-size: 1.25rem;
  line-height: 1.7;
}

.voice-preview {
  margin-bottom: 28px;
}

.confirm-layout {
  display: grid;
  gap: 32px;
}

.confirm-recap {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--stone);
}

.summary-row {
  padding: 16px 0;
  border-bottom: 1px solid var(--stone);
}

.summary-row-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}

.summary-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.summary-value {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--ink-soft);
}

.summary-row--policy .summary-value {
  font-size: var(--text-xs);
  line-height: 1.55;
}

.confirm-hero {
  margin-top: 8px;
}

.confirm-hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--text-xl);
  margin-bottom: 6px;
  color: var(--ink-soft);
}

.confirm-hero-lead {
  margin: 0 0 16px;
  font-size: var(--text-sm);
  color: var(--ink-muted);
}

.example-hero {
  margin: 0;
  background: var(--bone);
  border-left: 2px solid var(--gold-burnished);
  box-shadow: var(--shadow-lift);
}

.summary-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

/* Instellingen — one paper island, three numbered chapters (01/02/03) with a
   thin rule between them instead of a stacked-card layout. */
.settings-chapters { margin-bottom: 24px; }
.settings-chapter { padding-top: 36px; border-top: 1px solid var(--stone); }
.settings-chapter:first-of-type { padding-top: 0; border-top: none; }

.link-btn {
  border: 0;
  background: none;
  color: var(--ink-aubergine);
  cursor: pointer;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 4px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-btn:hover {
  color: var(--copper-glow);
}

/* Werkruimte: bright editorial operations-desk, matching the frozen desktop
   authority (design-concepts/response-desktop-system-v1-approved-complete-v1).
   Rows sit directly on the content plane — no card chrome, no shadow-lift. */
.workspace-zone {
  margin: -8px -60px 4px;
  padding: 28px 60px 20px;
  background: linear-gradient(180deg, rgba(184, 138, 73, 0.05) 0%, rgba(184, 138, 73, 0.015) 70%, transparent 100%);
}

.page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 8px;
}

.page-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--text-2xl);
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink-soft);
}

.page-lead {
  margin: 6px 0 0;
  color: var(--ink-muted);
  font-size: var(--text-sm);
}

.control-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.control-line label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.control-line select {
  appearance: none;
  border: none;
  border-bottom: 1px solid var(--stone);
  background: transparent;
  font: inherit;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--ink-soft);
  padding: 4px 22px 6px 0;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23675c56' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  min-height: 0;
  width: auto;
}

.divider-rule {
  height: 1px;
  margin: 28px 0 4px;
  background: linear-gradient(90deg, var(--stone), transparent 85%);
}

.desk {
  margin-top: 4px;
}

.entry {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 24px;
  align-items: start;
  padding: 32px 4px;
  border-bottom: 1px solid rgba(69, 52, 45, 0.12);
  transition: background 0.15s ease;
  cursor: pointer;
  width: 100%;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  text-align: left;
  font-family: inherit;
  color: inherit;
}

.entry:first-child { padding-top: 8px; }
.entry:hover { background: rgba(184, 138, 73, 0.05); }

.entry[aria-current="true"] {
  background: rgba(184, 138, 73, 0.08);
}

.entry--action {
  background: linear-gradient(90deg, rgba(168, 73, 53, 0.07), transparent 70%);
  box-shadow: inset 3px 0 0 var(--risk-terracotta);
  padding-left: 20px;
  margin-left: -20px;
}

.entry--action[aria-current="true"] {
  background: linear-gradient(90deg, rgba(168, 73, 53, 0.12), transparent 70%);
}

.entry__rating {
  padding-top: 3px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

.entry__body { min-width: 0; }

.entry__meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.entry__author {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--ink-soft);
}

.entry__quote {
  display: block;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-quote);
  margin: 0;
  max-width: 62ch;
}

.entry__status {
  padding-top: 4px;
  text-align: right;
  white-space: nowrap;
}

.status-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
}

.status-label--new { color: var(--ink-muted); }
.status-label--action { color: var(--risk-terracotta); }
.status-label--ready { color: var(--wood-walnut); }
.status-label--published { color: var(--success-text); }
.status-label--rejected { color: var(--ink-muted); border-bottom-style: dashed; }

.entry__hint {
  display: block;
  margin-top: 6px;
  font-size: var(--text-xs);
  color: var(--ink-muted);
  max-width: 16ch;
  text-align: right;
  margin-left: auto;
}

.regen-hint {
  margin-top: 8px;
}

/* Guest Voice zone — full-bleed warm editorial band, ported from the frozen
   visual authority (design-concepts/.../index.html .zone-guest). Scoped to
   .detail-layout so Settings/Onboarding, which never used this class, are
   untouched. -60px matches .content-card's own 60px side padding. */
.detail-layout .review-block {
  margin: 0 -60px 36px;
  padding: 30px 60px 34px;
  background: linear-gradient(160deg, rgba(199, 121, 79, 0.055) 0%, rgba(199, 121, 79, 0.018) 100%);
  border-bottom: 1px solid rgba(168, 73, 53, 0.12);
  color: var(--ink-soft);
}

.detail-layout .review-block--serious {
  background: linear-gradient(160deg, rgba(168, 73, 53, 0.08) 0%, rgba(168, 73, 53, 0.03) 100%);
  border-bottom-color: rgba(168, 73, 53, 0.2);
}

.detail-layout .review-quote {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink-quote);
  margin: 0;
  max-width: var(--read-measure);
}

.detail-layout textarea.edit-text {
  min-height: 220px;
  padding: 24px 28px;
  line-height: 1.7;
}

.block-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.banner {
  border-radius: var(--radius-alt);
  padding: 16px 20px;
  margin-bottom: 16px;
  font-size: var(--text-sm);
  line-height: 1.55;
}

/* Gewone semantische bevindingen — zacht, wassig, nooit zo zwaar als een
   echte HIGH-risk-staat (die krijgt .banner-risk, zie hieronder). */
.banner-warning {
  background: var(--risk-wash);
  border-left: 3px solid var(--risk-terracotta);
  box-shadow: var(--shadow-surface-sm);
  color: var(--danger-ink);
}

.banner-error {
  background: var(--risk-wash);
  border-left: 3px solid var(--danger-ink);
  box-shadow: var(--shadow-surface-sm);
  color: var(--danger-ink);
}

.banner-success {
  background: var(--success-wash);
  border-left: 3px solid var(--success-deep);
  box-shadow: var(--glow-success);
  color: var(--success-text);
}

.banner-info {
  background: var(--advisory-bg);
  border-left: 3px solid var(--wood-walnut);
  box-shadow: var(--shadow-surface-sm);
  color: var(--ink-soft);
}

/* ================= Review Detail — HIGH-risk / publish vocabulary
   (Wave A: Phase 3 + 3B + 4). Ported class-for-class from the frozen visual
   authority (design-concepts/response-desktop-system-v1-approved-complete-v1)
   so Guest Voice / Response surface / Decision footer / risk-note /
   publish-confirm read as ONE system in both places. ================= */

.risk-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 4px 0 4px 20px;
  margin: 0 0 28px;
  box-shadow: inset 3px 0 0 var(--risk-terracotta);
}

.risk-note__eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--risk-terracotta);
  display: block;
  margin-bottom: 6px;
}

.risk-note__body {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 58ch;
}

.risk-note__body strong {
  color: var(--ink-soft);
  font-weight: 600;
}

.risk-note--confirmed { box-shadow: inset 3px 0 0 var(--success-text); }
.risk-note--confirmed .risk-note__eyebrow { color: var(--success-text); }

/* HIGH-risk provenance — quiet one-line marker once the case has reached
   the shared publish-status family (a full risk-note would overstate a
   state that is already resolved; see PROTECTED HIGH-RISK BEHAVIOUR). */
.risk-provenance {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--risk-terracotta);
  margin: 0 0 18px;
}
.risk-provenance::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--risk-terracotta);
  flex-shrink: 0;
}

.response-surface--risk { border-left-color: var(--risk-terracotta); }
.response-surface--risk .response-surface__label { color: var(--risk-terracotta); }

/* Shared publish-status family (Phase 3B) — one component, five states.
   Modifiers only touch tint/eyebrow colour; structure stays constant. */
.publish-confirm--publishing { background: rgba(215, 201, 180, 0.28); border-color: var(--stone); }
.publish-confirm--publishing .block-label { color: var(--ink-muted); }
.publish-confirm--reconciliation { background: rgba(168, 73, 53, 0.09); border-color: var(--risk-terracotta); box-shadow: inset 3px 0 0 var(--risk-terracotta); }
.publish-confirm--reconciliation .block-label { color: var(--risk-terracotta); }

/* Decision footer + buttons inside Review Detail sit on the bright
   content-card, not the dark canvas — unlike Settings/Onboarding, which
   reuse .decision-footer/.btn-supporting/.btn-tertiary on the dark .main
   background and must keep their own colours. Scoped to .detail-layout only. */
.detail-layout .decision-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(69, 52, 45, 0.12);
}
.detail-layout .decision-footer__destructive {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid rgba(69, 52, 45, 0.1);
}
.detail-layout .btn {
  border-color: var(--stone);
  background: transparent;
  color: var(--ink-soft);
  border-radius: 4px;
}
.detail-layout .btn:hover:not(:disabled) { border-color: var(--wood-walnut); background: rgba(69, 52, 45, 0.04); }
.detail-layout .btn-primary { background: var(--ink-espresso); border-color: var(--ink-espresso); color: var(--bone); }
.detail-layout .btn-primary:hover:not(:disabled) { background: var(--ink-soft); border-color: var(--ink-soft); }
.detail-layout .btn-publish { background: var(--gold-burnished); border-color: var(--gold-burnished); color: var(--bone); box-shadow: none; }
.detail-layout .btn-publish:hover:not(:disabled) { background: #a5793d; border-color: #a5793d; }
.detail-layout .btn-supporting { color: var(--ink-muted); }
.detail-layout .btn-supporting:hover { color: var(--ink-soft); }
.detail-layout .btn-tertiary { color: var(--ink-muted); opacity: 0.7; margin-left: auto; }
.detail-layout .btn-tertiary:hover:not(:disabled) { opacity: 1; color: var(--ink-soft); }

.detail-layout {
  display: grid;
  gap: 0;
}

.back-link {
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
  margin-bottom: 16px;
  font-size: var(--text-xs);
  font-weight: 600;
}

.inline-reason {
  margin-top: 8px;
}

.inline-reason input {
  max-width: 360px;
}

.empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--ink-muted);
  border-radius: var(--radius-card);
  background: var(--bone);
  box-shadow: var(--shadow-lift);
}

/* ================================================================
   Antwoordstijl (Voice onboarding, UX spec VO-00 … VO-09).
   Reuses the approved response-desktop-system-v1 patterns (chapter-head,
   section-title, zone-guest, review-quote, response-surface, setting-row,
   decision-footer, publish-confirm, notice, publish-pulse) inside the
   runtime paper island, plus only the four spec extensions E1–E4.
   ================================================================ */
.voice-paper {
  --zone-bleed: 32px;
}
.voice-paper > :first-child { margin-top: 0; }
.voice-section { margin: 0 0 44px; }
.voice-section:last-of-type { margin-bottom: 8px; }

.chapter-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 10px;
  margin: 0 0 20px;
  border-bottom: 1px solid rgba(69, 52, 45, 0.15);
}
.chapter-head__index {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--gold-burnished);
}
.chapter-head__index:empty { display: none; }
.chapter-head__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.section-title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 12px;
  color: var(--ink-soft);
}
.voice-paper .setting-row__hint {
  display: block;
  margin: 0 0 14px;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 58ch;
}

/* guest review — warm zone, full bleed inside the paper */
.voice-paper .zone-guest {
  margin: 0 calc(-1 * var(--zone-bleed)) 0;
  padding: 26px var(--zone-bleed) 28px;
  background: linear-gradient(160deg, rgba(199, 121, 79, 0.055) 0%, rgba(199, 121, 79, 0.018) 100%);
  border-bottom: 1px solid rgba(168, 73, 53, 0.12);
}
.voice-paper .zone-guest--compact { margin-bottom: 20px; padding-top: 18px; padding-bottom: 20px; }
.voice-paper .review-quote {
  font-size: var(--read-size);
  line-height: 1.6;
  color: var(--ink-quote);
  margin: 0;
  max-width: var(--read-measure);
}
.voice-pair + .voice-pair { margin-top: 36px; }

/* Response-authored text — one shared treatment (gold hairline) */
.response-surface {
  display: block;
  margin: 24px 0;
  padding: 4px 0 4px 28px;
  border-left: 2px solid rgba(184, 138, 73, 0.35);
}
.response-surface__label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 12px;
}
.response-surface__text {
  display: block;
  font-size: var(--read-size);
  line-height: var(--read-leading);
  color: var(--ink-read);
  white-space: pre-wrap;
  max-width: var(--read-measure);
}
.response-surface__body { margin: 0 0 14px; font-size: 0.9375rem; color: var(--ink-soft); }
.response-surface__state {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

/* E2 — selectable example (question b and the conditional fourth card) */
.tone-cards .response-surface { margin: 0 0 18px; }
.response-surface--selectable {
  position: relative;
  cursor: pointer;
  padding-top: 12px;
  padding-bottom: 12px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.response-surface--selectable:hover { background: rgba(184, 138, 73, 0.05); }
.response-surface--selectable.is-selected { border-left: 2px solid var(--gold-burnished); }
.response-surface--selectable.is-selected .response-surface__label { color: var(--ink-soft); }
.response-surface--selectable input,
.choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.response-surface--selectable:focus-within,
.choice:focus-within {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}
.voice-card-hint { margin-top: -8px !important; }

/* E3 — pending / failed per example */
.response-surface--pending .response-surface__label { color: var(--ink-muted); }
.response-surface--failed .response-surface__label,
.response-surface__state--failed { color: var(--risk-terracotta); }
.voice-lines { display: block; }
.voice-lines span {
  display: block;
  height: 0.8em;
  margin: 10px 0;
  max-width: 46ch;
  border-radius: 2px;
  background: rgba(215, 201, 180, 0.3);
}
.voice-lines span:last-child { max-width: 30ch; }
.publish-pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-muted);
  margin-right: 8px;
  vertical-align: middle;
  animation: publish-pulse 1.4s ease-in-out infinite;
}
@keyframes publish-pulse { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.9; } }
.voice-pulse-line { margin: 0; font-size: 0.9375rem; color: var(--ink-muted); }
.voice-pulse-line.is-hidden { visibility: hidden; }

/* E1 — choice list: full-sentence options, all visible */
.choice-list { display: flex; flex-direction: column; gap: 2px; }
.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 6px 4px;
  cursor: pointer;
  font-size: var(--text-base);
  color: #4a403b; /* unselected stays quieter than the chosen option, but readable */
}
.choice::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--stone);
}
.choice:hover { color: var(--ink-soft); }
.choice.is-selected { color: var(--ink-soft); font-weight: 600; }
.choice.is-selected::before { background: var(--gold-burnished); box-shadow: none; }

.voice-custom { margin: 10px 0 0 18px; max-width: 420px; }
.voice-custom textarea { min-height: 64px; resize: vertical; }
.field-error { margin: 8px 0 0; font-size: 0.8125rem; color: var(--risk-terracotta); }

/* VO-04 guardrails */
.guard-add { display: flex; align-items: flex-end; gap: 12px; max-width: 520px; }
.guard-add .field { flex: 1; margin-bottom: 0; }
.guard-list { list-style: none; margin: 14px 0 0; padding: 0; }
.guard-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 520px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(69, 52, 45, 0.1);
  font-size: 0.9375rem;
}

/* setting rows (locked summary) — state first, no inline controls */
.voice-rows { margin: 8px 0 0; }
.setting-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid rgba(69, 52, 45, 0.1);
}
.voice-rows .setting-row:first-child { border-top: 1px solid rgba(69, 52, 45, 0.1); }
.setting-row__label { font-size: 0.875rem; font-weight: 600; color: var(--ink-soft); }
.setting-row__value { font-size: 0.9375rem; color: var(--ink-muted); }
.voice-approved-line { margin: -4px 0 18px; font-size: 0.875rem; color: var(--ink-muted); }

.voice-zone-text { margin: 0 0 12px; font-size: 1.0625rem; line-height: 1.6; color: var(--ink-soft); max-width: 60ch; }
.voice-zone-note { margin: 0; font-size: 0.875rem; color: var(--ink-muted); }

.notice {
  padding: 14px 0;
  margin: 0 0 24px;
  font-size: 0.875rem;
  color: var(--ink-muted);
  border-bottom: 1px solid rgba(69, 52, 45, 0.12);
}
.notice p { margin: 0 0 10px; }
.notice--action { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.notice--action p { flex-basis: 100%; }

.publish-confirm {
  margin: 0 0 24px;
  padding: 22px 26px;
  background: rgba(30, 81, 67, 0.06);
  border-radius: 4px;
  border: 1px solid rgba(30, 81, 67, 0.2);
}
.publish-confirm .block-label { color: var(--success-text); }
.publish-confirm__body { font-size: 0.9375rem; line-height: 1.6; color: var(--ink-soft); max-width: 56ch; margin: 0; }
.publish-confirm--retry { background: rgba(168, 73, 53, 0.05); border-color: rgba(168, 73, 53, 0.28); margin-top: 24px; }
.publish-confirm--retry .block-label { color: var(--risk-terracotta); }
.publish-confirm--reconciliation { background: rgba(168, 73, 53, 0.09); border-color: var(--risk-terracotta); box-shadow: inset 3px 0 0 var(--risk-terracotta); margin-top: 24px; }
.publish-confirm--reconciliation .block-label { color: var(--risk-terracotta); }

/* Buttons that live inside the light paper take ink colours */
.paper .btn {
  color: var(--ink-soft);
  border-color: var(--stone);
  background: transparent;
}
.paper .btn:hover:not(:disabled) { border-color: var(--wood-walnut); background: rgba(69, 52, 45, 0.04); }
.paper .btn.btn-primary { background: var(--ink-espresso); border-color: var(--ink-espresso); color: var(--bone); }
.btn-quiet,
.btn-supporting,
.btn-tertiary {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 4px;
  min-height: 44px;
}
.btn-quiet { font-size: 0.8125rem; color: var(--ink-muted); text-decoration: underline; text-underline-offset: 3px; }
.btn-supporting { font-size: 0.8125rem; font-weight: 600; color: var(--ink-muted); }
.btn-tertiary { font-size: 0.8125rem; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; color: var(--canvas-text-muted); }
.btn-quiet:hover, .btn-supporting:hover { color: var(--ink-soft); }
.btn-tertiary:hover:not(:disabled) { color: var(--canvas-text); }
.btn-tertiary:disabled { opacity: 0.4; cursor: not-allowed; }

/* decision footer — calm third zone on the canvas beneath the paper */
.decision-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(241, 231, 213, 0.16);
}
.decision-footer__primary { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.decision-footer__destructive {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid rgba(241, 231, 213, 0.1);
}
.voice-hint { font-size: 0.875rem; color: var(--canvas-text-muted); }
.voice-hint--block { margin: 12px 0 0; max-width: 56ch; line-height: 1.55; }
.inline-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--canvas-text); font-size: 0.875rem; }
.inline-confirm p { margin: 0; flex-basis: 100%; }
.decision-footer .btn-quiet { color: var(--canvas-text-muted); }
.voice-inline-actions { margin-top: 20px; }

.voice-edit .back-link { color: var(--wood-walnut); }
.voice-edit-title { margin-bottom: 8px !important; }
.voice-summary-toggle { margin-top: 28px; }
.voice-legacy > .heading, .voice-legacy > .lead { color: var(--ink-soft); }
.voice-legacy > .paper { box-shadow: none; padding: 0; background: transparent; }
.voice-legacy .decision-footer, .voice-legacy .actions { border-color: rgba(69, 52, 45, 0.12); }

/* ================================================================
   Onboarding refinement — alleen binnen .main (onboarding). Werkruimte,
   Review Detail en Instellingen houden hun eigen behandeling.
   ================================================================ */

/* Masthead: merk links, voortgang rechts, één haarlijn eronder. */
.onboarding-masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 32px;
  padding-bottom: 20px;
  /* scales with height, so short steps (Identiteit) sit deliberately lower
     in the plane instead of leaving an accidental void underneath */
  margin: 0 0 clamp(44px, 7vh, 88px);
  border-bottom: 1px solid rgba(241, 231, 213, 0.12);
}
.onboarding-masthead > svg {
  display: block;
  width: 240px;
  height: auto;
  margin-left: -6px; /* lijnt het canonieke beeldmerk uit met de tekstkolom */
}

/* Identiteit is the only short step: its content group settles on the upper
   third of the plane (free height split 1:2 above/below) instead of leaving
   the whole remainder as a void underneath. Long steps have no free height,
   so this is inert there. */
.main > .content:has(#venue) { display: flex; flex-direction: column; }
.main > .content:has(#venue) > :not(.onboarding-masthead) { order: 2; }
.main > .content:has(#venue)::before { content: ""; order: 1; flex: 1 1 0; }
.main > .content:has(#venue)::after { content: ""; order: 3; flex: 2 1 0; }

.main .content > .heading {
  font-size: 2.375rem;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
  text-wrap: balance;
}
.main .content > .lead {
  font-size: var(--text-base);
  max-width: 40em;
  margin-bottom: 32px;
}

/* Papier: dezelfde 6px-architectuur als het werkvlak en de content-card van
   het product; licht bovenrandje voor materialiteit. */
.main .paper {
  border-radius: 6px;
  padding: 32px 36px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 1px 2px rgba(6, 4, 4, 0.22),
    0 20px 44px rgba(6, 4, 4, 0.32);
}
.main .voice-paper { --zone-bleed: 36px; }
.main .field { margin-bottom: 22px; }
.main .field:last-child { margin-bottom: 0; }

/* Velden: net lichter dan het papier zodat ze als invoer lezen. */
.main .paper input[type="text"],
.main .paper select,
.main .paper textarea {
  min-height: 46px;
  border-color: rgba(69, 52, 45, 0.22);
  border-radius: 6px;
  background-color: #fffdf9;
  box-shadow: inset 0 1px 2px rgba(69, 52, 45, 0.05);
}
.main .paper input[type="text"]:hover,
.main .paper select:hover,
.main .paper textarea:hover {
  border-color: rgba(69, 52, 45, 0.45);
}
.main .paper input[type="text"]:focus,
.main .paper select:focus,
.main .paper textarea:focus {
  border-color: var(--gold-burnished);
  box-shadow: 0 0 0 3px rgba(211, 166, 96, 0.3);
}

.main .paper select {
  padding-right: 44px;
  color: var(--ink-soft);
  font-weight: 500;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.75 6 6.25l4.5-4.5' fill='none' stroke='%2345342d' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 16px center;
}
/* hint copy belongs to its select, not to the next question */
.main .policy-block .field { margin-bottom: 12px; }

/* Keuzes: een echte, leesbare radio-ring i.p.v. een 6px stip. */
.main .choice::before {
  width: 16px;
  height: 16px;
  background: #fffdf9;
  box-shadow: inset 0 0 0 1.5px rgba(69, 52, 45, 0.32);
  transition: box-shadow 0.15s ease, background 0.15s ease;
}
.main .choice:hover::before { box-shadow: inset 0 0 0 1.5px var(--wood-walnut); }
.main .choice.is-selected::before {
  background: radial-gradient(circle, var(--gold-burnished) 0 3.5px, #fffdf9 4px);
  box-shadow: inset 0 0 0 1.5px var(--gold-burnished);
}

.main .checkbox-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--ink-espresso);
  cursor: pointer;
}

.main .policy-note {
  margin: 0 0 28px;
  padding: 2px 0 2px 16px;
  background: none;
  border-radius: 0;
  border-left: 1px solid rgba(184, 138, 73, 0.6);
  color: var(--ink-muted);
}

/* Acties: architectonisch (4px) zoals het product, geen generieke pil.
   Primair = ivoor met diepte; secundair = stille haarlijn. */
.main .btn:not(.paper .btn) {
  min-height: 46px;
  padding: 0 22px;
  border-radius: 4px;
  border-color: rgba(241, 231, 213, 0.22);
  background: transparent;
  letter-spacing: 0.01em;
}
.main .btn:not(.paper .btn):hover:not(:disabled) {
  background: rgba(251, 246, 236, 0.06);
  border-color: rgba(241, 231, 213, 0.5);
}
.main .btn-primary:not(.paper .btn) {
  padding: 0 26px;
  background: var(--bone);
  border-color: var(--bone);
  color: var(--ink-espresso);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 1px 2px rgba(6, 4, 4, 0.3);
}
.main .btn-primary:not(.paper .btn):hover:not(:disabled) {
  background: #ffffff;
  border-color: #ffffff;
}
.main .btn-primary:not(.paper .btn):disabled {
  opacity: 1;
  background: rgba(241, 231, 213, 0.08);
  border-color: rgba(241, 231, 213, 0.16);
  color: rgba(241, 231, 213, 0.5);
  box-shadow: none;
}
.main .paper .btn { border-radius: 4px; }
.main .actions { margin-top: 24px; gap: 14px; }

/* Bevestiging: één papieren blad — samenvatting boven, verantwoordelijkheid
   als voet — met label | waarden | Wijzigen in drie vaste kolommen. */
.main .confirm-layout { gap: 0; }
.main .confirm-recap {
  border-top: none;
  border-radius: 6px 6px 0 0;
  padding-top: 8px;
  padding-bottom: 8px;
  /* grid-item: painted after the attest foot, so no drop shadow over it */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 -1px 2px rgba(6, 4, 4, 0.12);
}
.main .confirm-recap .summary-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 4px 24px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid rgba(69, 52, 45, 0.12);
}
.main .confirm-recap .summary-row:last-child { border-bottom: none; }
.main .confirm-recap .summary-row-head { display: contents; }
.main .confirm-recap .summary-label { grid-column: 1; grid-row: 1; color: var(--ink-soft); }
.main .confirm-recap .summary-value { grid-column: 2; grid-row: 1; }
.main .confirm-recap .link-btn { grid-column: 3; grid-row: 1; }
.summary-index {
  margin-right: 8px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--gold-burnished);
}
.summary-lines { display: grid; gap: 8px; }
.summary-line {
  display: grid;
  grid-template-columns: minmax(140px, 38%) minmax(0, 1fr);
  gap: 16px;
}
.summary-line__label { color: var(--ink-muted); }
.summary-line__value { color: var(--ink-soft); }
.summary-row--policy .summary-line { font-size: var(--text-sm); }
.summary-line--unknown .summary-line__value {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: #7f5a14;
  font-weight: 600;
}
.summary-line--unknown .summary-line__value::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--warning-ochre);
  transform: translateY(-1px);
}
.main .confirm-attest {
  border-radius: 0 0 6px 6px;
  padding: 20px 36px 22px;
  background: var(--bone-deep);
  border-top: 1px solid rgba(69, 52, 45, 0.14);
  box-shadow: 0 1px 2px rgba(6, 4, 4, 0.22), 0 20px 44px rgba(6, 4, 4, 0.32);
}
.main .confirm-attest .checkbox-row {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--text-sm);
  font-weight: 500;
}
.main .confirm-attest label { cursor: pointer; }
.main .actions-confirm {
  margin-top: 36px;
  border-top-color: rgba(241, 231, 213, 0.12);
}

/* Middelgrote desktop: eerst de fotokaders verkleinen, niet het werkvlak. */
@media (max-width: 1200px) {
  .main {
    --frame-x: 24px;
    --frame-y: 24px;
    --frame-photo: 12vw;
  }
  /* Stapel merk en voortgang vast, zodat de masthead niet per stap verspringt. */
  .onboarding-masthead { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 900px) {
  .main {
    padding: 0;
  }

  .main > .content {
    width: auto;
    min-height: 100vh;
    padding: 32px 28px 48px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .main .paper,
  .main .confirm-attest { padding-left: 20px; padding-right: 20px; }
  .main .voice-paper { --zone-bleed: 20px; }

  .main::before {
    display: none;
  }

  .content {
    max-width: none;
  }

  .example-hero {
    padding: 24px 22px;
    font-size: var(--text-base);
  }

  .paper {
    padding: 22px 20px;
  }
  .voice-paper { --zone-bleed: 20px; }

  .content-card { left: 40px; padding: 40px 32px; }
}

@media (max-width: 639px) {
  /* E4 — setting rows become one column (label above value) */
  .setting-row { grid-template-columns: 1fr; gap: 4px; }
  .guard-add { flex-direction: column; align-items: stretch; }
  .voice-paper { --zone-bleed: 20px; }
  .voice-custom { margin-left: 0; }
  .main > .content { padding: 24px 20px 40px; }
  .main .confirm-recap .summary-row,
  .summary-line { grid-template-columns: 1fr; }
  .main .confirm-recap .summary-value,
  .main .confirm-recap .link-btn { grid-column: 1; grid-row: auto; }
  .content-card { top: 20px; right: 20px; bottom: 20px; left: 20px; padding: 28px 20px; }
  .brand-overlay { top: 16px; left: 16px; }
  .nav-overlay { bottom: 16px; left: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
