/* ==========================================================================
   Open Science Verloskunde form
   Design tokens taken from childbirthnetwork.nl:
     primary cyan #1ea9cc, cyan-light #bce5f0, green #8fc73e, orange #f26522,
     red #bf2e1a, yellow #e7b22f, purple #4f3363, dark #343a40.
   Typeface: Museo Sans (childbirthnetwork.nl); Nunito Sans is the closest
   free stand-in loaded from Google Fonts, with system sans as final fallback.
   ========================================================================== */

:root {
  --cyan: #1ea9cc;
  --cyan-dark: #168dad;
  --cyan-light: #bce5f0;
  --green: #8fc73e;
  --green-dark: #78a92f;
  --orange: #f26522;
  --red: #bf2e1a;
  --yellow: #e7b22f;
  --purple: #4f3363;
  --umcg-blue: #003183;
  --dark: #343a40;
  --gray: #6c757d;
  --gray-light: #ced4da;
  --light: #f8f9fa;
  --border: #e2e6ea;
  --font-sans: "museo-sans", "Nunito Sans", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

/* The hidden attribute must always win over author display rules
   (e.g. .care-model-other { display: block } would otherwise keep a
   hidden field visible but greyed out). */
[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.5;
  color: var(--dark);
  background: var(--light);
}

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* --- Header ---------------------------------------------------------------- */

#site-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 1.5rem;
  background: #fff;
  border-top: 6px solid var(--cyan);
  border-bottom: 1px solid var(--border);
  flex: none;
}

.header-logos {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

#umcg-block-logo { height: 42px; width: auto; }
#inholland-logo { height: 36px; width: auto; }

#site-header h1 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--umcg-blue);
}

/* --- Progress bar ---------------------------------------------------------- */

#wizard-progress {
  flex: none;
  padding: 0.5rem 1.5rem 0.7rem;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

#progress-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.4rem 1.4rem;
}

.chip-group { display: flex; flex-direction: column; gap: 0.25rem; }

.chip-group-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
}

.chip-group-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  min-width: 64px;
  max-width: 9.5rem;
  padding: 0.45rem 0.7rem 0.35rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  background: #e9ecef;
  color: var(--gray);
  font: inherit;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.chip-letter { font-size: 1.05rem; font-weight: 700; line-height: 1.1; }
.chip-label {
  font-size: 0.68rem;
  line-height: 1.15;
  text-align: center;
  overflow-wrap: break-word;
}

.chip[data-state="partial"] { background: var(--orange); color: #fff; }
.chip[data-state="done"] { background: var(--green); color: #fff; }

.chip.is-current { box-shadow: 0 0 0 2px var(--cyan); }

.chip--start,
.chip--output { background: #fff; border: 1px dashed var(--gray-light); color: var(--dark); }
.chip--start.chip.is-current,
.chip--output.chip.is-current { box-shadow: 0 0 0 2px var(--purple); }

#progress-track {
  margin-top: 0.6rem;
  height: 6px;
  border-radius: 3px;
  background: #e0e4e8;
  overflow: hidden;
}

#progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  transition: width 0.3s ease;
}

/* --- Wizard pages ---------------------------------------------------------- */

main { flex: 1; min-height: 0; overflow: hidden; }

#main-form { height: 100%; display: flex; flex-direction: column; }

/* clip (not hidden): an overflow:hidden box is still programmatically
   scrollable (focus/tabs into off-screen pages would slide the track),
   whereas clip can never scroll. */
#pages-viewport { flex: 1; min-height: 0; overflow: hidden; overflow: clip; }

#pages {
  display: flex;
  height: 100%;
  transition: transform 0.35s ease;
}

/* Macro/meso/micro stay in the DOM (serialization nests by section id),
   but their children become direct flex items of the track. */
#pages > .level { display: contents; }

.page {
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 1.5rem 2rem 3rem;
  background: var(--light);
  border-top: 6px solid var(--section-accent, var(--cyan));
}

.page > * { max-width: 62rem; margin-left: auto; margin-right: auto; }

.page h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0;
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--purple);
  border-bottom: 3px solid var(--section-accent, var(--cyan));
}

/* Instructional text: lighter in the app, hidden in exports. */
.hint { color: var(--gray); font-size: 0.92rem; }

.page h4 {
  margin: 1.6rem 0 0.6rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
}

.page > p { color: var(--gray); }

/* Section intro: sits directly under the page title and rests on the
   title's accent bar (the bar moves from the h3 to the intro). The
   .render-host .page > h3 rule further below wins in exports, so slides
   keep their plain title band. */
.page.has-intro > h3 { border-bottom: none; margin-bottom: 0.4rem; padding-bottom: 0; }

.page-intro {
  margin: 0.2rem 0 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 3px solid var(--section-accent, var(--cyan));
}
.page-intro strong { color: var(--purple); }

.page section > h4 { margin-top: 1.2rem; }

/* --- Flowchart-builder help block (inline in 1C and 2D) ----------------------- */

.flowchart-help {
  margin: 0.75rem 0 1.25rem;
  padding: 0.6rem 1.1rem 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 5px solid var(--section-accent, var(--cyan));
  border-radius: 0.75rem;
}

.flowchart-help summary { cursor: pointer; font-weight: 700; color: var(--purple); }

.flowchart-steps {
  list-style: none;
  counter-reset: flowchart-step;
  margin: 0.9rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.flowchart-steps li {
  counter-increment: flowchart-step;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 1.25rem;
  align-items: center;
  padding: 0.9rem 1.2rem;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 0.6rem;
}

.flowchart-step-text h5 {
  position: relative;
  margin: 0 0 0.35rem;
  padding-left: 2.1rem;
  font-size: 0.95rem;
}

/* Numbered step badge. */
.flowchart-step-text h5::before {
  content: counter(flowchart-step);
  position: absolute;
  left: 0;
  top: 50%;
  translate: 0 -50%;
  width: 1.6rem;
  height: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.flowchart-step-text p { margin: 0; color: var(--gray); font-size: 0.9rem; }
.flowchart-step-text kbd {
  padding: 0.05rem 0.35rem;
  border: 1px solid var(--gray-light);
  border-bottom-width: 2px;
  border-radius: 0.3rem;
  background: #fff;
  font-size: 0.8em;
}

.flowchart-step-media {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.flowchart-step-media img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  padding: 0.3rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
}

.flowchart-step-media svg { width: 100%; max-width: 20rem; height: auto; }

.flowchart-swatch { font-weight: 700; }
.flowchart-swatch-community { color: #1676b8; }
.flowchart-swatch-hospital { color: #cf397c; }

@media (max-width: 720px) {
  .flowchart-steps li { grid-template-columns: 1fr; }
}

/* --- Wizard navigation ------------------------------------------------------ */

#wizard-nav {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  background: #fff;
  border-top: 1px solid var(--border);
}

#page-indicator { flex: 1; text-align: center; font-size: 0.85rem; color: var(--gray); }

/* --- Buttons ---------------------------------------------------------------- */

button { font: inherit; cursor: pointer; }

button[type="submit"],
#next-page {
  padding: 0.6rem 1.4rem;
  border: none;
  border-radius: 0.5rem;
  background: var(--cyan);
  color: #fff;
  font-weight: 600;
  transition: background 0.15s;
}

button[type="submit"]:hover,
#next-page:hover { background: var(--cyan-dark); }

#prev-page {
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--cyan);
  border-radius: 0.5rem;
  background: #fff;
  color: var(--cyan);
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}

#prev-page:hover { background: var(--cyan-light); color: var(--cyan-dark); }

button:disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

/* Generic button look (chips and the prev button override this). */
:where(button[type="button"]) {
  padding: 0.45rem 1rem;
  border: 1px solid var(--gray-light);
  border-radius: 0.5rem;
  background: #fff;
  color: var(--cyan);
  font-weight: 600;
  transition: background 0.15s;
}

:where(button[type="button"]):hover { background: var(--cyan-light); }

/* --- Form controls ----------------------------------------------------------- */

fieldset {
  margin: 1rem 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: #fff;
}

label { display: block; margin: 0.75rem 0 0.25rem; font-weight: 600; }

/* Marks a field as mandatory next to its label/heading. */
.required-marker { color: var(--red); font-weight: 700; }

/* Checkbox / radio choices render as pills. */
label:has(> input[type="checkbox"]),
label:has(> input[type="radio"]) {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.35rem 0.5rem 0.35rem 0;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--gray-light);
  border-radius: 999px;
  background: var(--light);
  font-weight: 400;
}

input[type="checkbox"],
input[type="radio"] {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  accent-color: var(--cyan);
}

input[type="text"],
input[type="number"],
input[type="file"],
select,
textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--gray-light);
  border-radius: 0.375rem;
  background: #fff;
  color: inherit;
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(30, 169, 204, 0.2);
  outline: none;
}

input[readonly] {
  background: var(--light);
  color: var(--gray);
}

input[disabled], select[disabled], textarea[disabled] { opacity: 0.6; }

/* --- Snippet-specific bits ----------------------------------------------------- */

/* --- 1A: country data panel ------------------------------------------------------- */

.country-data-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 2.5rem;
  align-items: center;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
}

.country-plot { margin: 0; width: 280px; }

.country-plot-canvas {
  aspect-ratio: 1;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow: hidden;
}

.country-plot-canvas svg { display: block; width: 100%; height: 100%; }

.country-plot path {
  fill: var(--cyan-light);
  stroke: var(--cyan);
  stroke-width: 0.6;
  stroke-linejoin: round;
}

.country-plot figcaption {
  margin-top: 0.35rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray);
}

/* Headline number next to the plot, in the section's accent colour. */
.country-highlight {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--section-accent, var(--cyan)) 12%, #ffffff),
    #ffffff
  );
  border: 1px solid color-mix(in srgb, var(--section-accent, var(--cyan)) 35%, #ffffff);
}

.highlight-value {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--section-accent, var(--cyan));
}

.highlight-label { font-size: 0.85rem; color: var(--gray); }

/* Intro text for the auto-filled figures: spans full width, below the
   country plot and headline, above the stats grid. */
.country-data-intro { grid-column: 1 / -1; }
.country-data-intro h4 { margin-top: 0; }

/* Remaining stats: small chips in a hairline grid below the plot. */
.country-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow: hidden;
}

.country-stat { background: #fff; padding: 0.5rem 0.9rem 0.65rem; }

.country-stat label {
  margin: 0 0 0.2rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray);
}

.country-stat input { padding: 0.25rem 0.45rem; font-size: 0.9rem; }

/* Each stat holds its editable value plus a narrow source-year input. */
.country-stat-row { display: flex; gap: 0.4rem; }

.country-stat-row input[type="number"]:not(.country-stat-year) {
  flex: 1;
  min-width: 0;
}

.country-stat-row .country-stat-year {
  width: 4.75rem;
  flex: none;
  font-size: 0.8rem;
  color: var(--gray);
}

/* WHO / GHO references link to their data APIs; the URL appears as a hover
   tooltip through the anchor's title attribute. */
.source-link {
  color: var(--cyan-dark);
  text-decoration: underline dotted var(--cyan);
}

@media (max-width: 720px) {
  .country-data-panel { grid-template-columns: 1fr; justify-items: center; }
  .country-highlight { width: 100%; }
}

/* --- 1B: collaboration board ----------------------------------------------------- */

.collab-scale {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0.5rem 0;
  padding: 0.5rem 0.9rem;
  list-style: none;
  background: var(--cyan-light);
  border-radius: 0.5rem;
}

.collab-scale li { display: flex; align-items: center; gap: 0.4rem; font-size: 0.95rem; }
.collab-scale strong { color: var(--purple); }

.ring-dot { display: inline-block; width: 0.75rem; height: 0.75rem; border-radius: 50%; }
.ring-dot[data-freq="daily"] { background: var(--cyan); }
.ring-dot[data-freq="weekly"] { background: var(--green); }
.ring-dot[data-freq="monthly"] { background: var(--yellow); }
.ring-dot[data-freq="incidental"] { background: var(--purple); }

.collab-board {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: stretch;
}

.collab-arena {
  position: relative;
  flex: none;
  width: min(460px, 100%);
  aspect-ratio: 1;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
}

.collab-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid;
}

.collab-ring-daily      { width: 42%; border-color: var(--cyan);   background: rgba(30, 169, 204, 0.06); }
.collab-ring-weekly     { width: 62%; border-color: var(--green);  background: rgba(143, 199, 62, 0.07); }
.collab-ring-monthly    { width: 80%; border-color: var(--yellow); background: rgba(231, 178, 47, 0.08); }
.collab-ring-incidental { width: 98%; border-color: var(--purple); background: rgba(79, 51, 99, 0.08); }

.collab-ring.ring-active { border-width: 4px; }

.ring-label {
  position: absolute;
  top: 0.4rem;
  left: 50%;
  translate: -50%;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.collab-ring-daily .ring-label { color: var(--cyan); }
.collab-ring-weekly .ring-label { color: var(--green-dark); }
.collab-ring-monthly .ring-label { color: #b7871c; }
.collab-ring-incidental .ring-label { color: var(--purple); }

.collab-midwife {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--purple);
}

.collab-midwife img { width: 40px; height: 40px; }

.collab-tray {
  flex: 1;
  min-width: 14rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-content: flex-start;
  padding: 0.75rem;
  border: 2px dashed var(--gray-light);
  border-radius: 0.75rem;
  background: var(--light);
}

.collab-tray.tray-active { border-color: var(--cyan); background: #e8f4f9; }

.tray-title {
  width: 100%;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray);
}

/* Partner figure squares (drag-and-drop between tray and arena rings). */
.partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  width: 72px;
  padding: 0.3rem 0.2rem 0.25rem;
  background: #fff;
  border: 1px solid var(--gray-light);
  border-radius: 0.5rem;
  cursor: grab;
  user-select: none;
  touch-action: none;
  z-index: 1;
}

.partner img { width: 40px; height: 40px; object-fit: contain; pointer-events: none; }

.partner-label {
  font-size: 0.6rem;
  line-height: 1.15;
  text-align: center;
  color: var(--dark);
  /* Long partner names roll over onto the next line, breaking with a "-". */
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Free-text name field on the "other" partner squares (serialized as
   "<name>_label"). Borderless until hovered/focused; hidden in exports,
   where the synced label span carries the name. */
.partner-custom-label {
  width: 100%;
  margin-top: 0.1rem;
  padding: 0.1rem 0.2rem;
  font-size: 0.62rem;
  text-align: center;
  border: 1px solid transparent;
  border-radius: 0.3rem;
  background: transparent;
  color: var(--dark);
}
.partner-custom-label:hover,
.partner-custom-label:focus { border-color: var(--gray-light); background: #fff; }

/* Filled-in "other" name: small text in the label span, input hidden, so
   the typed name shows exactly once. While editing, the label hides and
   the input is shown at full size. */
.partner-custom-filled .partner-label { font-size: 0.56rem; color: var(--gray); cursor: text; }
.partner-editing .partner-label { visibility: hidden; }
.partner-editing .partner-custom-label { font-size: 0.72rem; border-color: var(--gray-light); background: #fff; }

.partner-placed {
  position: absolute;
  translate: -50% -50%;
  z-index: 2;
  border-width: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}
.partner-placed[data-freq="daily"] { border-color: var(--cyan); }
.partner-placed[data-freq="weekly"] { border-color: var(--green); }
.partner-placed[data-freq="monthly"] { border-color: var(--yellow); }
.partner-placed[data-freq="incidental"] { border-color: var(--purple); }

.partner-dragging { opacity: 0.25; }

.partner-ghost {
  position: fixed;
  translate: -50% -50%;
  z-index: 100;
  pointer-events: none;
  transform: rotate(-3deg) scale(1.06);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* Free-text "other" care-model input on 2F (placeholder only, no label). */
.care-model-other { display: block; margin: 0.5rem 0; max-width: 24rem; }

/* --- Work-context identity (1B, 1C, 2D, 2F): community blue, hospital pink --- */

/* Per-context sections all end their id in -community or -hospital. */
section[id$="-community"],
section[id$="-hospital"] {
  background: #fff;
  border: 1.5px solid;
  border-radius: 0.75rem;
  padding: 0.35rem 1.1rem 1.1rem;
  margin: 1.25rem 0;
}

section[id$="-community"] { border-color: var(--cyan); }
section[id$="-hospital"] { border-color: #e83e8c; }

section[id$="-community"] > h4:first-child,
section[id$="-hospital"] > h4:first-child {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

section[id$="-community"] > h4:first-child { color: var(--cyan-dark); }
section[id$="-hospital"] > h4:first-child { color: #c0297f; }

/* --- 3H: workday planner view ---------------------------------------------------- */

.planner-timeline-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  margin-top: 1.25rem;
}

/* Label column on the left of each chart, so timeline and mood stack. */
.planner-row { display: flex; gap: 0.75rem; align-items: stretch; }

.planner-row + .planner-row {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
}

.planner-row-label {
  flex: none;
  width: 72px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-align: right;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--purple);
}

.planner-row-chart { flex: 1; min-width: 0; }

.timeline-table { width: 100%; border-collapse: collapse; table-layout: fixed; }

.timeline-table th {
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--gray);
  padding: 0.15rem 0;
  border: 1px solid var(--border);
  background: var(--light);
}

.timeline-table td { border: 1px solid var(--border); height: 1.9rem; padding: 0.25rem 0.35rem; }

.timeline-block {
  color: #fff;
  font-weight: 600;
  font-size: 0.65rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timeline-empty { color: var(--gray); font-size: 0.65rem; font-style: italic; }

/* Mood line: shares the timeline card, aligned to the same 0-24 axis. */
.mood-canvas {
  position: relative;
  height: 110px;
  border: 1px dashed var(--gray-light);
  border-radius: 0.5rem;
  background: var(--light);
  touch-action: none;
}

/* Zero line across the middle. */
.mood-canvas::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px dashed var(--gray-light);
}

.mood-canvas svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.mood-canvas polyline {
  fill: none;
  stroke: var(--purple);
  stroke-width: 6;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.mood-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--purple);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  translate: -50% -50%;
  cursor: grab;
  touch-action: none;
  user-select: none;
  z-index: 2;
}

.mood-dot.dragging { cursor: grabbing; scale: 1.25; }

.mood-dot:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.mood-axis {
  position: absolute;
  left: 0.35rem;
  translate: 0 -50%;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--gray);
  z-index: 3;
}

/* Smiley / angry emoji markers instead of + and -. */
.mood-axis-plus,
.mood-axis-minus { font-size: 1rem; line-height: 1; font-weight: 400; }

.mood-axis-plus { top: 8%; }
.mood-axis-zero { top: 50%; }
.mood-axis-minus { top: 92%; }

/* Supervision and regular activities share one orange block below the
   timeline: two columns side by side, stacking on narrow screens. */
.planner-side {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0 2.5rem;
  margin-top: 1.25rem;
  background: #fff;
  border: 1.5px solid var(--orange);
  border-radius: 0.75rem;
  padding: 0.25rem 1.1rem 1.1rem;
}

.side-entries + .side-entries {
  border-left: 1px dashed var(--gray-light);
  padding-left: 2.5rem;
}

.side-activities h4 { color: var(--orange); }

/* "No regular activities" toggle next to the add-activity button. */
button[data-no-activities].is-active {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}

.planner-side h4 { margin-top: 0.75rem; }
.planner-side p { margin-bottom: 0.5rem; }

/* Task entries as coloured cards in a dense, aligned grid. */
#micro-workday [data-task-list] {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 0.75rem;
  margin: 0.75rem 0;
}

.planner-entry {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  padding: 0.2rem 0.75rem 0.75rem;
  margin: 0;
}

.planner-entry h4 { margin-top: 0.55rem; font-size: 0.9rem; }

.planner-entry label { font-size: 0.78rem; margin: 0.45rem 0 0.1rem; }

.planner-entry input,
.planner-entry select,
.planner-entry textarea { padding: 0.3rem 0.5rem; font-size: 0.85rem; }

.planner-task { border-top: 5px solid var(--entry-color, var(--gray-light)); }

.planner-task h4 { display: flex; align-items: center; gap: 0.45rem; }

.planner-task h4::before {
  content: '';
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--entry-color, var(--gray-light));
}

.entry-remove {
  margin-top: 0.6rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.72rem;
  color: var(--red);
  border-color: transparent;
  background: transparent;
}

.entry-remove:hover { background: #f7e5e1; color: var(--red); }

/* --- 3G: persona profile card ------------------------------------------------------ */

.persona-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.persona-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
}

.persona-avatar {
  flex: none;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid rgba(255, 255, 255, 0.7);
  object-fit: contain;
  padding: 0.35rem;
}

.persona-hero-fields { flex: 1; min-width: 240px; }

.persona-hero-fields label { color: #fff; }

.persona-hero-fields input,
.persona-hero-fields textarea {
  background: rgba(255, 255, 255, 0.92);
  border: none;
}

#persona-name { font-size: 1.15rem; font-weight: 700; padding: 0.35rem 0.6rem; }

.persona-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
}

.persona-stat { background: #fff; padding: 0.4rem 0.7rem 0.55rem; }

.persona-stat label {
  margin: 0 0 0.2rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray);
}

.persona-stat input, .persona-stat select { padding: 0.3rem 0.45rem; font-size: 0.9rem; }

.persona-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  align-items: start;
}

.persona-grid fieldset { margin: 0; }

.persona-box {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 5px solid;
  border-radius: 0.6rem;
  padding: 0.2rem 0.9rem 0.9rem;
}

.persona-box h4 { margin-top: 0.55rem; font-size: 0.92rem; }

.persona-box label { font-size: 0.85rem; margin: 0.5rem 0 0.12rem; }

.persona-box input,
.persona-box textarea,
.persona-box select { padding: 0.35rem 0.55rem; font-size: 0.85rem; }
.box-cyan h4 { color: var(--cyan-dark); }
.box-green h4 { color: var(--green-dark); }
.box-orange h4 { color: var(--orange); }
.box-yellow h4 { color: #b7871c; }
.box-purple h4 { color: var(--purple); }
.box-pink h4 { color: #c0297f; }
.box-teal h4 { color: #149c78; }
.box-red h4 { color: var(--red); }

.box-cyan { border-top-color: var(--cyan); }
.box-green { border-top-color: var(--green); }
.box-orange { border-top-color: var(--orange); }
.box-yellow { border-top-color: var(--yellow); }
.box-purple { border-top-color: var(--purple); }
.box-pink { border-top-color: #e83e8c; }
.box-teal { border-top-color: #20c997; }
.box-red { border-top-color: var(--red); }

.box-hint {
  font-size: 0.72rem;
  color: var(--gray);
  background: var(--light);
  border-radius: 0.5rem;
  padding: 0.45rem 0.6rem;
  margin: 0.45rem 0 0.2rem;
}

/* --- 2D: finance flowchart builder ----------------------------------------------- */

.flow-board { display: flex; flex-direction: column; gap: 1.25rem; }

.flow-main {
  display: flex;
  align-items: stretch;
  gap: 0.4rem;
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
}

/* Fixed start/end nodes of the flow. */
.flow-node {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  width: 88px;
  padding: 0.6rem 0.3rem;
  background: var(--purple);
  color: #fff;
  border-radius: 0.75rem;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.2;
}

.flow-node img {
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 50%;
  padding: 0.2rem;
  object-fit: contain;
}

.flow-arrow {
  flex: none;
  align-self: center;
  color: var(--cyan);
  font-size: 1.35rem;
  font-weight: 700;
}

/* Stage columns between the endpoints. */
.flow-stage {
  flex: 1 1 0;
  min-width: 170px;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.stage-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--purple);
}

.stage-note { font-size: 0.66rem; color: var(--gray); }

.stage-lane {
  flex: 1;
  min-height: 5.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-content: flex-start;
  padding: 0.4rem;
  border: 2px dashed var(--gray-light);
  border-radius: 0.6rem;
  background: var(--light);
  transition: border-color 0.15s, background 0.15s;
}

.stage-lane.lane-active { border-color: var(--cyan); background: #e8f4f9; }

.stage-lane:empty::after {
  content: 'Drag figures here';
  display: block;
  width: 100%;
  padding: 1.6rem 0;
  text-align: center;
  color: var(--gray);
  font-size: 0.7rem;
}

.stage-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-top: 0.15rem;
}

/* Figure squares (same visual language as the 1B partner figures). */
.flow-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  width: 64px;
  padding: 0.3rem 0.2rem 0.25rem;
  background: #fff;
  border: 1px solid var(--gray-light);
  border-radius: 0.5rem;
  cursor: grab;
  user-select: none;
  touch-action: none;
  z-index: 1;
}

.flow-item img { width: 40px; height: 40px; object-fit: contain; pointer-events: none; }

.flow-item-label { font-size: 0.55rem; line-height: 1.15; text-align: center; color: var(--dark); }

.flow-item-placed {
  border-color: var(--cyan);
  background: #e8f4f9;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.flow-item-dragging { opacity: 0.25; }

.flow-item-ghost {
  position: fixed;
  translate: -50% -50%;
  z-index: 100;
  pointer-events: none;
  transform: rotate(-3deg) scale(1.06);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* --- 1C: staged financing diagram --------------------------------------------- */

.financing-toolbar,
.financing-navigation { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.financing-toolbar { justify-content: space-between; }
/* The step buttons always sit on their own row below the stage heading, so a
   long heading (e.g. "3. Contracting / purchasing arrangements") cannot make
   them wrap only sometimes. */
.financing-toolbar .financing-navigation { flex: 1 1 100%; }
.financing-toolbar h4,
.financing-toolbar h5 { margin: 0.5rem 0; }
.financing-navigation button { font-size: 0.8rem; padding: 0.4rem 0.65rem; }
.financing-sections { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.financing-sections button[aria-pressed="true"] { background: var(--purple); color: #fff; font-weight: 700; }
.financing-node-selected { outline: 2px solid var(--purple); outline-offset: 2px; }

.financing-editor-frame {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: #fff;
  overflow: hidden;
}

.financing-viewport { overflow: auto; max-height: 65vh; }
.financing-editor-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.75rem;
  border-top: 1px solid var(--border);
  background: var(--light);
}
.financing-navigation .financing-proceed { background: var(--purple); color: #fff; font-weight: 700; }
.financing-navigation .financing-proceed:hover { background: var(--dark); }
.financing-navigation .financing-proceed:disabled { background: var(--gray-light); color: var(--dark); opacity: 1; }
.financing-legend { display: flex; gap: 0.75rem; flex-wrap: wrap; font-size: 0.7rem; }
.financing-legend-label { display: inline-flex; align-items: center; gap: 0.3rem; }
.financing-legend-label::before { content: ''; width: 1.25rem; border-top: 3px solid currentColor; }
.financing-path-community { color: #1676b8; }
.financing-path-hospital { color: #cf397c; }
.financing-path-unfinished { color: var(--gray); }

.financing-canvas { position: relative; width: 900px; }
.financing-arrows { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.financing-link { fill: none; stroke: currentColor; color: var(--gray); stroke-width: 2; }
.financing-link-hit { fill: none; stroke: transparent; stroke-width: 16; pointer-events: stroke; cursor: grab; touch-action: none; }
.financing-link-hit:hover, .financing-link-selected { stroke: rgba(128, 0, 128, 0.25); }
.financing-edge-remove { pointer-events: all; cursor: pointer; }
.financing-edge-remove circle { fill: #fff; stroke: #c0392b; stroke-width: 2; }
.financing-edge-remove path { fill: none; stroke: #c0392b; stroke-width: 2; stroke-linecap: round; }
.financing-edge-remove:hover circle { fill: #c0392b; }
.financing-edge-remove:hover path { stroke: #fff; }
.financing-link-preview { fill: none; stroke: var(--purple); stroke-width: 2; stroke-dasharray: 6 4; }
.financing-arrowhead { fill: currentColor; color: var(--gray); }
.financing-arrows .financing-path-community { color: #1676b8; }
.financing-arrows .financing-path-hospital { color: #cf397c; }

.financing-column-title {
  position: absolute;
  top: 8px;
  width: 132px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--purple);
}

.financing-drop-zone {
  position: absolute;
  width: 152px;
  border: 2px dashed var(--gray-light);
  border-radius: 0.6rem;
  background: var(--light);
}

.financing-drop-zone.lane-active { border-color: var(--cyan); background: #e8f4f9; }

.financing-drop-prompt {
  position: absolute;
  width: 132px;
  height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem;
  font-size: 0.8rem;
  text-align: center;
  color: var(--purple);
  pointer-events: none;
}

.financing-card {
  position: absolute;
  z-index: 2;
  width: 132px;
  height: 132px;
  border: 1px solid var(--cyan);
  border-radius: 0.6rem;
  background: #e8f4f9;
}

.financing-card .flow-item {
  width: 100%;
  height: 100%;
  padding: 0.5rem 0.5rem 1.5rem;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.financing-card .flow-item:not([role="button"]) { cursor: default; }
.financing-card .flow-item[role="img"] { cursor: grab; }
.financing-card .flow-item-label,
.financing-palette .flow-item-label { font-size: 0.7rem; }

.financing-endpoint {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem;
  background: var(--purple);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
}

.financing-endpoint img { width: 48px; height: 48px; object-fit: contain; background: #fff; border-radius: 50%; }
.financing-endpoint.financing-path-community { background: #1676b8; }
.financing-endpoint.financing-path-hospital { background: #cf397c; }
.financing-remove-node { position: absolute; bottom: 2px; left: 35px; padding: 0.1rem 0.3rem; font-size: 0.65rem; }

.financing-card .financing-port {
  position: absolute;
  top: 54px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  background: #fff;
  color: var(--purple);
  cursor: crosshair;
  touch-action: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s, background 0.15s;
}
.financing-card .financing-port:hover,
.financing-card .financing-port:focus-visible { background: var(--cyan); color: #fff; transform: scale(1.2); }
.financing-card .financing-port-out { cursor: grab; }

.financing-port-in { left: -12px; }
.financing-port-out { right: -12px; }
.financing-source-selected { outline: 3px solid var(--purple); }
.financing-needs-attention { outline: 3px solid var(--purple); outline-offset: 3px; animation: financing-attention 1s ease-in-out 4; }
@keyframes financing-attention { 50% { outline-color: transparent; box-shadow: 0 0 12px 4px var(--purple); } }
.financing-card .financing-target-active { background: var(--cyan); color: #fff; transform: scale(1.2); }

.financing-palette { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.financing-palette .flow-item { width: 112px; }
.financing-palette[hidden] { display: none; }
.financing-connections { margin-top: 0.75rem; font-size: 0.8rem; }
.financing-connections summary { cursor: pointer; }
.financing-connections > div > div { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.3rem 0; }
.financing-connections button { flex: none; font-size: 0.7rem; padding: 0.2rem 0.4rem; }

/* --- PNG/PDF exports: offscreen render host ---------------------------------------- */

/* Sections are cloned here at a fixed width so every exported image and PDF
   page shares identical alignment, grids and outlines. Offscreen but still
   laid out, so measurements and styles are real. Each exported section is a
   presentation slide: a coloured frame in the section's identity colour,
   a tinted title band, and no instructional text. */
.render-host {
  position: fixed;
  left: -30000px;
  top: 0;
  width: 1000px;
  background: #fff;
}

.render-host .page {
  position: static;
  width: 1000px;
  height: auto;
  min-height: 0;
  overflow: visible;
  flex: none;
  padding: 0 0 2.5rem;
  background: #fff;
  border: 3px solid var(--section-accent, var(--cyan));
  border-top-width: 6px;
}

/* Slide title band in the section's identity colour. */
.render-host .page > h3 {
  max-width: none;
  margin: 0 0 1.75rem;
  padding: 1.1rem 2.5rem;
  font-size: 1.5rem;
  border-bottom: none;
  background: var(--light);
  background: color-mix(in srgb, var(--section-accent, var(--cyan)) 15%, #ffffff);
  color: var(--purple);
  color: color-mix(in srgb, var(--section-accent, var(--cyan)) 65%, #343a40);
}

.render-host .page > :not(h3) { padding-inline: 2.5rem; }

/* Instructional text, live hints and drag-only controls don't belong in
   static slide exports. */
.render-host .hint,
.render-host .box-hint,
.render-host [data-task-hint],
.render-host [data-collab-hint],
.render-host .partner-custom-label,
.render-host [data-financing-hint],
.render-host .flowchart-help { display: none; }
/* Exports: on the workday slide the timeline block moves clearly to the
   top (the snippet content lives inside the [data-src] wrapper, so the
   reorder happens among the wrapper's children). */
.render-host #micro-workday [data-src] { display: flex; flex-direction: column; }
.render-host #micro-workday [data-src] > .planner-timeline-block { order: -10; }
.render-host .entry-remove { display: none; }
.render-host button[data-add-task],
.render-host button[data-add-activity],
.render-host button[data-no-activities],
.render-host button[data-add-supervision] { display: none; }
.render-host .financing-palette,
.render-host .financing-navigation,
.render-host .financing-toolbar,
.render-host .financing-edge-remove,
.render-host .financing-link-hit,
.render-host .financing-port,
.render-host .financing-remove-node,
.render-host .financing-drop-zone,
.render-host .financing-drop-prompt,
.render-host .financing-connections { display: none; }
.render-host .financing-viewport {
  overflow: visible;
  max-height: none;
  border: 0;
}
.render-host .financing-editor-frame { overflow: visible; border: 0; }
.render-host .financing-source-selected, .render-host .financing-needs-attention { outline: none; animation: none; }
.render-host .financing-node-selected { outline: none; }

/* Exports: checkbox summaries. Unselected options disappear, selected ones
   are outlined in blue. Fieldsets of options with nothing selected (and
   their headings) are marked by export.js and disappear from the slide. */
.render-host label:has(> input:is([type="checkbox"], [type="radio"]):not(:checked)) { display: none; }

.render-host label:has(> input:is([type="checkbox"], [type="radio"]):checked) {
  border: 1.5px solid var(--cyan);
  background: #e8f4f9;
}

.render-host [data-export-empty] { display: none; }

/* --- Output page -------------------------------------------------------------- */

/* --- Start page: participant fields ---------------------------------------------- */

.participant-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.5rem 1.5rem;
  margin-block: 1rem;
}

/* Start page: collapsible "save your progress" guide with a small flow
   diagram and numbered steps. */
.save-guide {
  max-width: 62rem;
  margin-block: 1.25rem;
  padding: 0.6rem 1.1rem 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 5px solid var(--cyan);
  border-radius: 0.75rem;
}

.save-guide summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--cyan-dark);
}

.save-flow { display: block; width: 100%; max-width: 46rem; height: auto; margin: 0.75rem auto 0.25rem; }

.save-steps {
  margin: 0.75rem 0 0;
  padding-left: 1.4rem;
  color: var(--gray);
}

.save-steps li { margin-block: 0.35rem; padding-left: 0.25rem; }
.save-steps li::marker { font-weight: 700; color: var(--purple); }
.save-steps strong { color: var(--dark); }

/* --- Output page: prominent download card ---------------------------------------- */

.download-hero {
  border: 2px solid var(--cyan);
  border-radius: 0.75rem;
  background: #fff;
  padding: 0.5rem 1.5rem 1.25rem;
  margin-block: 0.5rem 1.25rem;
}

.download-hero h4 { margin-top: 0.75rem; color: var(--cyan-dark); }

.download-hero p { color: var(--gray); }

.download-hero [data-export-status] {
  color: var(--green-dark);
  font-weight: 600;
  font-size: 0.85rem;
}

.download-hero-button {
  display: block;
  width: 100%;
  max-width: 28rem;
  margin: 1rem auto 0;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 0.6rem;
  background: var(--cyan);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  transition: background 0.15s;
}

.download-hero-button:hover { background: var(--cyan-dark); }

#dev-toggle { margin-block: 0.25rem 0.75rem; }

#dev-toggle[aria-expanded="true"] { background: var(--cyan-light); }

.output-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 1rem 0;
}

.output-card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 5px solid var(--cyan);
  border-radius: 0.75rem;
  padding: 0.25rem 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.output-card h4 { margin-top: 0.75rem; color: var(--cyan-dark); }

.output-card p { font-size: 0.85rem; color: var(--gray); margin: 0 0 0.5rem; }

.output-card button { align-self: flex-start; }

/* The file input itself is visually replaced by its label button. */
#import-json {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.file-button {
  align-self: flex-start;
  display: inline-block;
  padding: 0.45rem 1rem;
  border: 1px solid var(--gray-light);
  border-radius: 0.5rem;
  background: #fff;
  color: var(--cyan);
  font-weight: 600;
  cursor: pointer;
}

.file-button:hover { background: var(--cyan-light); }

#import-status { color: var(--green-dark); font-weight: 600; font-size: 0.85rem; }

#export-status { color: var(--gray); font-size: 0.85rem; }

#tools ul { padding-left: 1.2rem; color: var(--gray); }

#json-output {
  max-height: 18rem;
  overflow: auto;
  padding: 1rem;
  border-radius: 0.5rem;
  background: var(--dark);
  color: #cfe9f2;
  font-size: 0.8rem;
}

/* --- Responsive ---------------------------------------------------------------- */

@media (max-width: 720px) {
  .planner-side { grid-template-columns: 1fr; }
  .side-entries + .side-entries {
    border-left: none;
    padding-left: 0;
    border-top: 1px dashed var(--gray-light);
    margin-top: 1rem;
    padding-top: 1rem;
  }
}

@media (max-width: 640px) {
  #site-header { padding: 0.5rem 1rem; gap: 0.6rem; }
  #umcg-block-logo { height: 32px; }
  #inholland-logo { height: 26px; }
  #site-header h1 { font-size: 0.95rem; }

  #wizard-progress { padding: 0.4rem 1rem 0.6rem; }
  .chip { min-width: 52px; padding: 0.35rem 0.5rem 0.3rem; }
  .chip-label { display: none; }

  .page { padding: 1rem 1rem 2.5rem; }
  #wizard-nav { padding: 0.6rem 1rem; }
  button[type="submit"], #prev-page, #next-page { padding: 0.55rem 0.9rem; }
}

.render-host .planner-side { order: 10; }

.financing-endpoint-link { cursor: pointer; }
