/* PEP Delphi: one shared stylesheet (spec section 12). */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); }
[hidden] { display: none !important; }
:root {
  --ink: #14232e; --text: #33495a; --muted: #4a5b68; --soft: #62727e;
  --border: #d8e2e7; --line: #e3ebee; --field: #7d909b; --ground: #f3f7f8;
  --teal-1: #d1eeea; --teal-2: #a1d7d6; --teal-3: #79bbc3; --teal-4: #599bae; --teal-5: #3b7390; --teal-6: #2a5674;
  --mint: #eaf6f4; --deep: #1f4258; --danger: #b3261e; --danger-bg: #fdecea;
}
* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--ink); font-family: "IBM Plex Sans", system-ui, sans-serif; font-size: 16px; line-height: 1.5; }
body.ground { background: var(--ground); }
a { color: var(--teal-5); }
a:hover { color: var(--teal-6); }
h1, h2, h3, h4 { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.narrow { max-width: 880px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }
.code-example { font-weight: 600; letter-spacing: 0.15em; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.h-small { font-size: 22px; color: var(--teal-6); margin-bottom: 14px; }
.input:focus, textarea:focus, select:focus, .btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--teal-5); outline-offset: 2px; }
.hero :focus-visible, .page-hero :focus-visible, .site-footer :focus-visible, .panel-header :focus-visible, .status-bar :focus-visible { outline-color: #fff; }
.skip-link { position: absolute; left: 8px; top: -100px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; font-weight: 600; border-radius: 0 0 6px 6px; }
.skip-link:focus, .skip-link:focus-visible { top: 0; outline: 2px solid #fff; outline-offset: -4px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border: 0; border-radius: 6px; font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--teal-5); color: #fff; }
.btn-primary:hover { background: var(--teal-6); color: #fff; }
.btn-outline { border: 1.5px solid var(--teal-6); color: var(--teal-6); background: #fff; }
.btn-quiet { border: 1px solid var(--field); background: #fff; color: var(--ink); font-weight: 500; }
.btn-link { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--teal-5); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Public header and footer */
.site-header { background: #fff; border-bottom: 1px solid var(--border); }
.site-header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 18px; letter-spacing: 0.03em; color: var(--teal-6); text-decoration: none; }
.brand-mark { position: relative; width: 18px; height: 30px; flex: none; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; top: 0; width: 10px; height: 100%; }
.brand-mark::before { left: 0; background: var(--teal-6); }
.brand-mark::after { left: 8px; background: var(--teal-3); }
.site-nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.site-nav a:not(.btn) { color: var(--text); font-size: 15px; text-decoration: none; }
.site-footer { background: var(--teal-6); color: var(--teal-1); font-size: 13px; }
.site-footer a { color: inherit; }
.site-footer a:hover { color: #fff; }
.site-footer .wrap { padding-top: 28px; padding-bottom: 28px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.prism-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border: 1px solid rgba(161, 215, 214, 0.35); border-radius: 999px; background: rgba(255, 255, 255, 0.06); box-shadow: 0 0 18px rgba(159, 180, 255, 0.18); color: var(--teal-1); font-size: 12px; letter-spacing: 0.02em; }
.prism-mark { width: 18px; height: 18px; flex: none; }
.prism-word { font-family: "IBM Plex Mono", ui-monospace, monospace; font-weight: 600; letter-spacing: 0.18em; background: linear-gradient(90deg, #bfe6e5, #c8d4ff, #eecbff, #bfe6e5); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: prism-shimmer 6s linear 3; }
@keyframes prism-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .prism-word { animation: none; } }

/* Landing */
.hero { background: var(--teal-6); color: #fff; }
.hero-grid { padding-top: 72px; padding-bottom: 80px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-text { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.eyebrow { margin: 0; font-size: 15px; font-weight: 600; color: var(--teal-2); }
.hero h1 { font-size: 46px; line-height: 1.12; letter-spacing: -0.015em; }
.lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--teal-1); max-width: 620px; }
.facts { margin: 8px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(209, 238, 234, 0.3); }
.facts div { padding: 16px 16px 0; display: flex; flex-direction: column; gap: 4px; }
.facts div:first-child { padding-left: 0; }
.facts div + div { border-left: 1px solid rgba(209, 238, 234, 0.3); }
.facts dt { font-size: 13px; color: var(--teal-2); }
.facts dd { margin: 0; font-size: 16px; font-weight: 600; }
.hero-actions { flex: 1 1 380px; max-width: 460px; display: flex; flex-direction: column; gap: 16px; }
.round-status { margin: 0; display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 600; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--teal-2); flex: none; }
.cta { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 28px; border-radius: 8px; text-decoration: none; font-size: 28px; }
.cta strong { display: block; font-size: 21px; letter-spacing: 0.02em; }
.cta small { display: block; margin-top: 6px; font-size: 15px; }
.cta-primary { background: var(--teal-1); color: var(--ink); }
.cta-primary:hover { background: #fff; color: var(--ink); }
.cta-secondary { border: 1.5px solid var(--teal-2); color: #fff; }
.cta-secondary:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.cta-dark { background: var(--teal-6); color: #fff; }
.cta-dark:hover { background: var(--deep); color: #fff; }
.logos { border-bottom: 1px solid var(--border); }
.logos .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; align-items: center; justify-content: center; gap: 64px; flex-wrap: wrap; }
.logo-jhm { height: 96px; width: auto; }
.logo-radboud { height: 46px; width: auto; }
.logo-divider { width: 1px; height: 56px; background: var(--border); }
.block { padding-top: 80px; padding-bottom: 80px; }
.block h2 { font-size: 30px; color: var(--teal-6); }
.band { background: var(--ground); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.about { display: flex; flex-wrap: wrap; gap: 56px; }
.about-text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.about-text p { margin: 0; font-size: 17px; line-height: 1.7; color: var(--text); }
.topics { flex: 1 1 340px; border-left: 4px solid var(--teal-3); padding-left: 28px; }
.topics h3 { font-size: 17px; color: var(--teal-6); margin-bottom: 12px; }
.topics ul { margin: 0; padding: 0; list-style: none; font-size: 15px; color: var(--text); }
.topics li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.topics li:last-child { border-bottom: 0; }
.stages { margin: 36px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.stages li { border-top: 4px solid var(--teal-2); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.stages li:nth-child(2) { border-top-color: var(--teal-4); }
.stages li:nth-child(3) { border-top-color: var(--teal-6); }
.stages strong { font-size: 15px; color: var(--teal-6); }
.stages p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--text); }
.leaders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.leader-card, .leader-plain { display: flex; flex-direction: column; gap: 6px; }
.leader-card { border: 1px solid var(--border); border-top: 4px solid var(--teal-6); border-radius: 6px; padding: 24px; }
.leader-plain { padding: 0 24px; }
.leader-card a { overflow-wrap: anywhere; }
.leader-role { font-size: 13px; font-weight: 600; color: var(--teal-5); }
.leader-name { font-size: 18px; font-weight: 600; }
.leader-aff { font-size: 14px; line-height: 1.5; color: var(--muted); }

/* How to take part */
.page-hero { background: var(--teal-6); color: #fff; }
.page-hero .narrow { padding-top: 56px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 14px; }
.page-hero a { color: var(--teal-2); font-size: 14px; text-decoration: none; }
.page-hero h1 { font-size: 40px; letter-spacing: -0.01em; }
.page-hero p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--teal-1); }
.page-hero .round-status { color: #fff; font-size: 17px; }
.stack { display: flex; flex-direction: column; gap: 40px; padding-top: 48px; padding-bottom: 72px; }
.steps { margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.steps h2 { font-size: 19px; margin-bottom: 6px; }
.steps p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--text); }
.step-num { width: 44px; height: 44px; border-radius: 6px; background: var(--teal-1); color: var(--teal-6); font-size: 20px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.step-num-dark { background: var(--teal-6); color: #fff; }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.data-table th { background: var(--ground); text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.split { display: flex; gap: 16px; flex-wrap: wrap; align-items: stretch; }
.split > * { flex: 1 1 300px; }
.help-box a { color: var(--teal-6); }
.help-box { background: var(--ground); border-radius: 8px; padding: 20px 24px; font-size: 15px; color: var(--text); }

/* Sign-in status bar */
.status-bar { background: var(--teal-6); color: #fff; }
.status-bar .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.status-bar p { margin: 0; }
.status-big { display: flex; align-items: center; gap: 14px; font-size: 28px; font-weight: 700; }
.status-big .dot { width: 16px; height: 16px; }
.status-small { font-size: 18px; color: var(--teal-1); }

/* Forms */
.form-page { display: flex; justify-content: center; padding: 56px 16px; }
.form-card { width: 100%; max-width: 460px; background: #fff; border: 1px solid var(--border); border-top: 5px solid var(--teal-3); border-radius: 8px; padding: 36px; display: flex; flex-direction: column; gap: 20px; }
.form-card h1 { font-size: 28px; color: var(--teal-6); }
.form-card p { margin: 0; }
.form-wide { max-width: 760px; padding: 0; gap: 0; border-top-color: var(--teal-6); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.input { width: 100%; min-height: 52px; border: 1px solid var(--field); border-radius: 6px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; }
.input[readonly] { background: #e9f0f2; color: var(--muted); border-color: var(--border); }
.input-code { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 22px; letter-spacing: 0.35em; text-transform: uppercase; }
textarea.input { min-height: 0; padding: 10px 12px; line-height: 1.5; resize: vertical; }
select.input { min-height: 48px; }
.form-error { padding: 12px 14px; border-radius: 6px; background: var(--danger-bg); color: var(--danger); font-size: 15px; }
.field-error { margin: 0; color: var(--danger); font-size: 14px; }
.error-list { margin: 0; padding: 0; list-style: none; }
.error-list li + li { margin-top: 4px; }
.form-foot { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
.notice { margin: 16px 0 0; padding: 14px 16px; border-radius: 6px; background: var(--mint); border-left: 4px solid var(--teal-5); color: var(--deep); }
.notice-error { background: var(--danger-bg); border-left-color: var(--danger); color: var(--danger); }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* Consent */
.consent-head { padding: 32px 40px 8px; }
.consent-head h1 { font-size: 26px; }
.consent-body { padding: 16px 40px 32px; display: flex; flex-direction: column; gap: 22px; }
.consent-body h2 { font-size: 17px; color: var(--teal-6); margin-bottom: 6px; }
.consent-body p { margin: 0 0 8px; font-size: 16px; line-height: 1.65; color: var(--text); }
.consent-sign { padding: 28px 40px 36px; background: var(--ground); border-top: 1px solid var(--border); border-radius: 0 0 8px 8px; display: flex; flex-direction: column; gap: 20px; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.agree-box { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1.5px solid var(--teal-3); background: var(--mint); border-radius: 6px; font-size: 16px; cursor: pointer; }
.agree-box input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--teal-5); flex: none; }
.steps-mini { margin: 0; padding: 0; list-style: none; display: flex; gap: 20px; font-size: 14px; color: var(--soft); }
.steps-mini .on { color: var(--teal-6); font-weight: 700; }

/* Panel header */
.panel-header { background: var(--teal-6); color: #fff; }
.panel-header .wrap { min-height: 68px; padding-top: 10px; padding-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.panel-left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.panel-header .brand { color: #fff; font-size: 17px; }
.panel-header .brand-mark::before { background: #fff; }
.panel-header .brand-mark::after { background: var(--teal-2); }
.panel-round { font-size: 16px; font-weight: 600; color: var(--teal-1); }
.panel-meta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--teal-1); }
.panel-meta form { display: inline; }
.panel-meta .btn-link { color: #fff; font-weight: 400; }
.progress { display: flex; align-items: center; gap: 10px; }
.progress-track { display: block; width: 140px; height: 8px; background: rgba(209, 238, 234, 0.25); border-radius: 2px; overflow: hidden; }
.progress-fill { display: block; height: 8px; background: var(--teal-2); }
.preview-banner { margin: 0; padding: 10px 16px; background: var(--teal-1); color: var(--deep); text-align: center; font-weight: 600; }

/* Questionnaire */
.q-layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; padding-top: 32px; padding-bottom: 64px; }
.sections-nav { flex: 1 1 220px; position: sticky; top: 16px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.sections-nav .label { padding: 0 12px 8px; font-size: 13px; font-weight: 700; color: var(--teal-6); }
.sections-nav a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 4px; color: var(--text); text-decoration: none; }
.sections-nav a:hover { background: #fff; }
.sections-nav .count { color: var(--muted); }
.sections-nav a[aria-current="true"] { background: #fff; color: var(--teal-6); font-weight: 600; box-shadow: inset 3px 0 0 var(--teal-5); }
.q-position { font-size: 15px; font-weight: 600; color: var(--teal-6); }
.legend-toggle summary { cursor: pointer; color: var(--teal-6); font-size: 15px; padding: 4px 0; }
.legend-toggle[open] summary { margin-bottom: 10px; }
.q-nav { display: flex; gap: 12px; align-items: center; }
.q-nav .q-next { margin-left: auto; }
.q-main { flex: 999 1 640px; min-width: 0; max-width: 800px; display: flex; flex-direction: column; gap: 20px; }
.legend { background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--teal-3); border-radius: 6px; padding: 16px 20px; font-size: 15px; line-height: 1.6; color: var(--text); }
.legend p { margin: 0 0 10px; }
.legend ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.q-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; display: flex; flex-direction: column; }
.q-head { padding: 24px 24px 0; display: flex; flex-direction: column; gap: 8px; }
.q-code { font-size: 13px; font-weight: 600; color: var(--muted); }
.q-text { font-size: 18px; line-height: 1.45; font-weight: 600; }
.q-note { margin: 0; font-size: 14px; color: var(--muted); }
.kind { align-self: flex-start; padding: 3px 8px; border-radius: 3px; font-size: 12px; font-weight: 700; }
.kind-repeated { background: var(--ground); color: var(--muted); }
.kind-reworded { background: var(--teal-1); color: var(--teal-6); }
.kind-new { background: var(--teal-5); color: #fff; }
.q-answer { min-width: 0; margin: 0; border: 0; padding: 16px 24px 0; display: flex; flex-direction: column; gap: 8px; }
.scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.choice { position: relative; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 6px; background: #fff; font-size: 15px; cursor: pointer; }
.choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--teal-5); flex: none; }
.choice:has(input:checked) { border: 2px solid var(--teal-5); padding: 7px 13px; background: var(--mint); font-weight: 600; }
.choice:has(input:focus-visible) { outline: 2px solid var(--teal-5); outline-offset: 2px; }
.scale .choice { justify-content: center; min-height: 54px; padding: 8px 6px; border-color: var(--field); text-align: center; font-size: 14px; line-height: 1.3; }
.scale .choice input { position: absolute; opacity: 0; }
.scale .choice:has(input:checked) { padding: 7px 5px; background: var(--teal-1); color: var(--deep); }
.grid-wrap { overflow-x: auto; }
.grid-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.grid-table th, .grid-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: center; }
.grid-table thead th { font-weight: 600; color: var(--muted); }
.grid-table th[scope="row"] { min-width: 180px; text-align: left; font-weight: 500; }
.grid-table input { width: 20px; height: 20px; accent-color: var(--teal-5); }
.grid-col { display: none; } /* column name beside each checkbox: phone only */
.rank-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.rank-list li { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; align-items: center; }
.q-tools { padding: 8px 24px 0; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.q-tools:last-child { padding-bottom: 24px; }
.q-status { margin: 0; color: var(--danger); }
.q-status:empty { display: none; }
.q-comment { padding: 18px 24px 24px; display: flex; flex-direction: column; gap: 6px; }
.q-comment label { font-size: 14px; font-weight: 600; color: var(--text); }
.submit-box { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.submit-box .notice { margin: 0; }

/* Round 2 feedback */
.feedback { margin: 18px 24px 0; padding: 18px 20px; background: var(--ground); border-radius: 6px; display: flex; flex-direction: column; gap: 10px; }
.feedback-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: 14px; font-weight: 600; color: var(--text); }
.feedback-head strong { color: var(--teal-6); }
.feedback p { margin: 0; font-size: 14px; }
.feedback .btn-link { align-self: flex-start; color: var(--teal-6); }
.bar-row { display: grid; grid-template-columns: 160px minmax(0, 1fr) 52px; gap: 12px; align-items: center; font-size: 13px; }
.bar-label { display: flex; align-items: center; gap: 6px; color: var(--text); }
.bar-track { display: block; height: 16px; background: var(--line); border-radius: 2px; overflow: hidden; }
.bar-fill { display: block; height: 16px; background: var(--teal-2); }
.bar-fill.positive { background: var(--teal-5); }
.bar-pct { text-align: right; font-family: "IBM Plex Mono", ui-monospace, monospace; color: var(--text); }
.you { padding: 1px 6px; border-radius: 3px; background: var(--teal-6); color: #fff; font-size: 11px; font-weight: 700; }
.grid-feedback h3 { margin: 8px 0 4px; font-size: 13px; }

/* Dialogs */
dialog { width: min(560px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 8px; box-shadow: 0 12px 40px rgba(20, 35, 46, 0.25); color: var(--ink); }
dialog::backdrop { background: rgba(20, 35, 46, 0.35); }
.dialog-head { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.dialog-head h3 { font-size: 17px; color: var(--teal-6); }
.dialog-body { padding: 16px 24px 24px; display: flex; flex-direction: column; gap: 14px; font-size: 15px; line-height: 1.55; color: var(--text); }
.dialog-body p { margin: 0; }
.dialog-body ul { margin: 0; padding: 0; list-style: none; }
.dialog-body li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.dialog-body li:last-child { border-bottom: 0; }
.dialog-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.icon-btn { width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 6px; background: #fff; font-size: 20px; cursor: pointer; }

/* Submitted view and simple panel pages */
.page-narrow { max-width: 800px; margin: 0 auto; padding: 40px 16px 64px; display: flex; flex-direction: column; gap: 20px; }
.done-banner { background: #fff; border: 1px solid var(--border); border-left: 6px solid var(--teal-5); border-radius: 8px; padding: 24px 28px; }
.done-banner h1 { font-size: 24px; color: var(--teal-6); margin-bottom: 6px; }
.done-banner p { margin: 0; }
.summary-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.summary-card h2 { padding: 16px 24px; font-size: 16px; color: var(--teal-6); background: var(--mint); border-bottom: 1px solid var(--border); border-radius: 8px 8px 0 0; }
.summary-item { padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.summary-item:last-child { border-bottom: 0; }
.summary-item p { margin: 0; }
.summary-q { font-weight: 600; line-height: 1.45; }
.summary-comment { padding-left: 12px; border-left: 3px solid var(--teal-2); font-size: 14px; color: var(--muted); }
.summary-missing { border-left: 4px solid var(--danger); padding-left: 20px; }
.summary-change { align-self: flex-start; color: var(--teal-6); }
.missing-list { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; font-weight: 600; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* Phone */
@media (max-width: 720px) {
  .wrap, .narrow { padding-left: 16px; padding-right: 16px; }
  .hero-grid { padding-top: 48px; padding-bottom: 56px; gap: 32px; }
  .hero h1 { font-size: 32px; }
  .page-hero h1 { font-size: 30px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div:nth-child(3) { border-left: 0; padding-left: 0; }
  .stages, .leaders, .two-col { grid-template-columns: 1fr; }
  .leader-plain { padding: 0; }
  .block { padding-top: 48px; padding-bottom: 48px; }
  .logos .wrap { gap: 32px; }
  .logo-jhm { height: 72px; }
  .logo-radboud { height: 36px; }
  .cta strong { font-size: 18px; }
  .status-big { font-size: 22px; }
  .form-card { padding: 24px; }
  .form-wide { padding: 0; }
  .consent-head, .consent-body, .consent-sign { padding-left: 20px; padding-right: 20px; }
  .sections-nav { position: static; }
  .scale { grid-template-columns: 1fr; }

  /* Public header: brand and Coordinator login on row 1, the other links on row 2 */
  .site-header-inner { position: relative; min-height: 0; row-gap: 0; }
  .site-header-inner > .brand { min-height: 56px; }
  .site-nav { flex: 1 1 100%; flex-wrap: nowrap; gap: 20px; }
  .site-nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 40px; font-size: 14px; white-space: nowrap; }
  .site-nav .btn { position: absolute; top: 6px; right: 16px; padding: 0 12px; font-size: 14px; }
  .site-header-inner > .steps-mini { flex: 1 1 100%; padding-bottom: 12px; }

  /* Panel header: brand, round and Sign out on row 1; progress (and save state) on row 2 */
  .panel-header .wrap { min-height: 0; padding-top: 6px; padding-bottom: 8px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; row-gap: 2px; }
  .panel-left { grid-row: 1; grid-column: 1; min-width: 0; min-height: 44px; flex-wrap: nowrap; gap: 10px; }
  .panel-left .brand { flex: none; }
  .panel-round { min-width: 0; font-size: 13px; line-height: 1.3; }
  .panel-meta { display: contents; }
  .panel-user { grid-row: 1; grid-column: 2; justify-self: end; }
  .panel-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .panel-meta .btn-link { display: inline-flex; align-items: center; min-height: 44px; }
  .progress { grid-row: 2; grid-column: 1; min-width: 0; font-size: 13px; white-space: nowrap; }
  .progress-track { flex: 1 1 auto; width: auto; min-width: 48px; }
  #save-state { grid-row: 2; grid-column: 2; justify-self: end; font-size: 13px; white-space: nowrap; }

  /* Sections list: one row of chips that scrolls sideways */
  .q-layout { padding-top: 16px; gap: 16px; }
  .sections-nav { flex: none; width: calc(100% + 32px); margin: 0 -16px; padding: 4px 16px; flex-direction: row; gap: 8px; overflow-x: auto; scrollbar-width: none; font-size: 13px; }
  .sections-nav::-webkit-scrollbar { display: none; }
  .sections-nav .label { display: none; }
  .sections-nav a { flex: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--border); border-radius: 999px; background: #fff; white-space: nowrap; }
  .sections-nav a[aria-current="true"] { box-shadow: none; border-color: var(--teal-5); background: var(--mint); }
  /* One-question page: full-width nav buttons, bigger tap targets */
  .q-nav .btn { flex: 1 1 0; min-height: 48px; justify-content: center; }
  .summary-change { display: inline-flex; align-items: center; min-height: 44px; }
  .legend-toggle summary { padding: 11px 0; }
  .missing-list { gap: 0; }
  .missing-list a { display: inline-block; padding: 10px 0; }

  /* Question cards: less side padding so answers and results get the width */
  .q-head { padding: 18px 16px 0; }
  .q-answer { padding: 14px 16px 0; }
  .q-tools { padding-left: 16px; padding-right: 16px; }
  .q-comment { padding: 16px 16px 20px; }

  /* Round 2 results: label on its own line, then the bar and % */
  .feedback { margin: 16px 16px 0; padding: 14px; gap: 8px; }
  .bar-row { grid-template-columns: minmax(0, 1fr) 44px; gap: 2px 10px; }
  .bar-label { grid-column: 1 / -1; display: block; line-height: 1.35; }

  /* Grid questions: each row is a block of tappable chips, one per column */
  .grid-wrap { overflow: visible; }
  .grid-table thead { display: none; }
  .grid-table, .grid-table tbody { display: block; }
  .grid-table tr { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .grid-table tr:first-child { padding-top: 0; }
  .grid-table th[scope="row"] { flex: 1 1 100%; min-width: 0; padding: 0 0 2px; border: 0; font-size: 15px; }
  .grid-table td { display: block; padding: 0; border: 0; }
  .grid-cell { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid var(--field); border-radius: 6px; background: #fff; cursor: pointer; }
  .grid-cell:has(input:checked) { border: 2px solid var(--teal-5); padding: 0 11px; background: var(--mint); font-weight: 600; }
  .grid-cell:has(input:focus-visible) { outline: 2px solid var(--teal-5); outline-offset: 2px; }
  .grid-col { display: inline; }
}

/* Coordinator pages (console) */
.console-frame { display: flex; min-height: 100vh; }
.console-nav { flex: 0 0 232px; background: var(--teal-6); color: #fff; padding: 20px 12px; display: flex; flex-direction: column; gap: 20px; }
.console-nav :focus-visible { outline-color: #fff; }
.console-brand { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 4px 12px; color: #fff; text-decoration: none; }
.console-brand:hover { color: #fff; }
.console-nav .brand-mark::before { background: #fff; }
.console-nav .brand-mark::after { background: var(--teal-2); }
.console-brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.console-brand-text strong { font-size: 15px; letter-spacing: 0.03em; }
.console-brand-text small { font-size: 12px; color: var(--teal-1); }
.console-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.console-links a, .console-user a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 4px; color: var(--teal-1); font-size: 15px; text-decoration: none; }
.console-links a:hover, .console-user a:hover { color: #fff; background: rgba(161, 215, 214, 0.12); }
.console-links a[aria-current="page"], .console-user a[aria-current="page"] { color: #fff; font-weight: 700; background: rgba(161, 215, 214, 0.18); box-shadow: inset 3px 0 0 var(--teal-2); }
.console-user { margin-top: auto; border-top: 1px solid rgba(209, 238, 234, 0.25); padding-top: 16px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.console-user-name { padding: 0 12px 6px; color: var(--teal-1); }
.console-user .btn-link { color: #fff; min-height: 44px; padding: 0 12px; }
.console-main { flex: 1 1 auto; min-width: 0; max-width: 1140px; padding: 32px 40px 48px; display: flex; flex-direction: column; gap: 24px; }
.console-main h1 { font-size: 26px; color: var(--teal-6); }
.console-messages { display: flex; flex-direction: column; gap: 8px; }
.console-messages .notice { margin: 0; }
.panel-box { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.backup-runs { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 14px; overflow-wrap: anywhere; }
.panel-box h2 { font-size: 17px; color: var(--teal-6); }
.console-form { max-width: 560px; }
.field-help ul { margin: 4px 0 0; padding-left: 20px; font-size: 14px; }
.counts { margin: 0; background: #fff; border: 1px solid var(--border); border-radius: 8px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; }
.counts div { padding: 20px 24px; border-top: 4px solid var(--teal-2); display: flex; flex-direction: column; gap: 6px; }
.counts div + div { border-left: 1px solid var(--line); }
.counts dt { font-size: 14px; color: var(--muted); }
.counts dd { margin: 0; font-size: 30px; font-weight: 700; color: var(--teal-6); }
.mode-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mode-option { text-align: left; display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid var(--field); border-radius: 6px; background: #fff; color: var(--ink); font: inherit; cursor: pointer; }
.mode-option strong { font-size: 15px; }
.mode-option span { font-size: 14px; color: var(--muted); }
.mode-option[aria-pressed="true"] { border: 2px solid var(--teal-5); padding: 15px 17px; background: var(--mint); }
.round-row { border-top: 1px solid var(--line); padding-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 24px; align-items: center; }
.round-row.is-open { background: var(--mint); margin: 0 -24px; padding: 16px 24px; }
.round-head { display: flex; align-items: center; gap: 10px; grid-column: 1 / -1; }
.round-head h3 { font-size: 16px; }
.round-state { font-size: 13px; font-weight: 700; padding: 2px 8px; border-radius: 3px; background: #eef2f4; color: var(--muted); }
.round-state.state-open { background: var(--teal-5); color: #fff; }
.round-state.state-closed { background: var(--teal-1); color: var(--deep); }
.round-dates { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.round-dates label { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--muted); }
.round-dates .input { min-height: 44px; width: auto; font-size: 15px; }
.round-rate { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.round-rate p { margin: 0; }
.round-rate strong { color: var(--ink); }
.rate-bar { position: relative; height: 8px; background: var(--line); border-radius: 2px; }
.rate-fill { display: block; height: 8px; background: var(--teal-6); border-radius: 2px; }
.rate-target { position: absolute; top: -4px; width: 2px; height: 16px; background: var(--ink); }
.round-actions { display: flex; flex-wrap: wrap; gap: 8px; grid-column: 2; grid-row: 2; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #8c1d17; color: #fff; }
.btn-danger-outline { border: 1.5px solid var(--danger); color: var(--danger); background: #fff; }
.row-start { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.settings-form { display: flex; flex-direction: column; gap: 16px; }
.settings-form h3 { font-size: 16px; color: var(--teal-6); }
.field-note { margin: 0; font-size: 14px; }
.input-short { max-width: 200px; }
.choice-group { border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.choice-group legend { font-size: 14px; font-weight: 600; padding: 0 4px; }
.table-box { position: relative; overflow-x: auto; border: 1px solid var(--border); border-radius: 6px; }
.table-box .data-table td .btn { min-height: 40px; }

.console .data-table td a { display: inline-block; padding: 12px 0; margin: -12px 0; }
.console input[type=file] { min-height: 44px; }
.console input[type=file]::file-selector-button { min-height: 44px; padding: 0 16px; margin-right: 12px; }
.console input:disabled { background: var(--ground); color: var(--muted); cursor: not-allowed; }

@media (min-width: 721px) {
  .console-nav { position: sticky; top: 0; height: 100vh; overflow-y: auto; align-self: start; }
}

@media (max-width: 720px) {
  .console-frame { flex-direction: column; min-height: 0; }
  .console-nav { flex: none; padding: 12px 16px; gap: 8px; }
  .console-brand { padding: 4px 0; }
  .console-links { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .console-user { flex-direction: row; flex-wrap: wrap; align-items: center; margin-top: 0; padding-top: 8px; gap: 4px; }
  .console-user-name { padding: 0 12px 0 0; flex-basis: 100%; }
  .console-main { padding: 20px 16px 32px; gap: 20px; }
  .panel-box { padding: 18px 16px; }
  .counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .counts div:nth-child(3) { border-left: 0; }
  .counts div { padding: 16px; }
  .counts dd { font-size: 26px; }
  .mode-choice { grid-template-columns: 1fr; }
  .round-row { grid-template-columns: 1fr; }
  .round-row.is-open { margin: 0 -16px; padding: 16px; }
  .round-actions { grid-column: 1; grid-row: auto; }
  .round-actions .btn { flex: 1 1 0; }
  .table-box .data-table td .btn { min-height: 44px; }
}

.console .tag { display: inline-block; font-size: 13px; font-weight: 700; padding: 2px 8px; border-radius: 3px; background: #eef2f4; color: var(--muted); white-space: nowrap; }
.console .tag-done { background: var(--teal-5); color: #fff; }
.console .tag-prog { background: var(--teal-1); color: var(--deep); }
.console .tag-warn { background: var(--danger-bg); color: var(--danger); }
.console .code-big { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 26px; font-weight: 600; letter-spacing: 0.2em; color: var(--deep); }
.console .invite-box { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 6px; font: inherit; font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--ground); resize: vertical; }
.console .status-list { display: grid; gap: 8px; margin: 0; }
.console .status-list div { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.console .status-list dt { min-width: 120px; font-weight: 700; }
.console .status-list dd { margin: 0; }
.console .back-link { display: inline-flex; align-items: center; gap: 0.3em; min-height: 44px; }
.console h1 { overflow-wrap: anywhere; }
.console .q-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.console .q-tab { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--border); border-radius: 6px; background: #fff; text-decoration: none; color: var(--ink); }
.console .q-tab[aria-current="page"] { background: var(--teal-5); border-color: var(--teal-5); color: #fff; font-weight: 700; }
.console .q-count { margin: 0; font-weight: 600; }
.console .q-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.console .q-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.console .q-link { flex: 1 1 280px; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.console .q-link .q-code { font-weight: 700; color: var(--deep); }
.console .q-meta { display: flex; flex-wrap: wrap; gap: 4px; }
.console .q-moves .btn, .console .q-section .row-start .btn { min-width: 44px; }
.console .q-moves { display: grid; grid-template-columns: 48px 48px; gap: 8px; }
.console .q-moves form { margin: 0; }
.console .q-moves .btn { width: 48px; padding-left: 0; padding-right: 0; }
.console .q-slot { display: block; width: 48px; }
.console .q-row, .console .q-section { scroll-margin-top: 96px; }
.console .console-messages { position: sticky; top: 0; z-index: 20; background: var(--ground); padding: 8px 0; }
.console .q-row.is-removed .q-link { color: var(--muted); }
.console .q-rename .input { max-width: 420px; }
.console .plain-fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.console .check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; }
.console .check input { width: 20px; height: 20px; flex-shrink: 0; }
.console .q-warning { margin: 0; }
.console .q-actions { margin-top: 16px; }
.console .preview-set { border: 0; margin: 0; padding: 0; min-width: 0; }
.console .preview-set .choice { cursor: default; }
.console .q-preview-section { display: flex; flex-direction: column; gap: 12px; }
.console .imp-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.console .imp-row .q-code { font-weight: 700; color: var(--deep); }
.console .imp-check { flex: 1 1 280px; font-weight: 400; align-items: flex-start; }
.console .imp-check input { margin: 2px 0 0; }
.console .imp-done-text { display: inline-flex; gap: 10px; padding-left: 30px; }
.console .imp-row.is-done { color: var(--muted); min-height: 44px; }
.console .imp-row.is-done .q-code { color: var(--muted); }
.console .imp-select { margin: 0; display: flex; align-items: center; gap: 8px; }
.console .resp-status { margin: 16px 0 8px; font-weight: 600; }
.console .resp-choice { display: flex; flex-wrap: wrap; gap: 8px; }
.console .resp-choice a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: var(--ink); text-decoration: none; }
.console .resp-choice a[aria-current="true"] { border-color: var(--teal-5); color: var(--teal-6); font-weight: 700; }
.console .resp-people { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 12px 0; }
.console .resp-people > a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.console .head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.console .dl-list { list-style: none; margin: 16px 0 0; padding: 0; }
.console .dl-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 12px 0; border-top: 1px solid var(--border); }
.console .dl-list p { margin: 4px 0 0; }
.console .resp-people form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.console .resp-people select.input { width: auto; min-height: 44px; max-width: 100%; }
.console .resp-answer, .console .resp-comment { margin: 0; overflow-wrap: anywhere; }
.console .resp-card { display: flex; flex-direction: column; gap: 10px; padding: 18px 0; border-top: 1px solid var(--line); }
.console .resp-card:first-of-type { border-top: 0; }
.console .resp-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 12px; }
.console .resp-head h3 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 16px; }
.console .resp-text, .console .resp-tags { margin: 0; }
.console .resp-tags .tag { white-space: normal; }
.console .resp-card .bar-row { grid-template-columns: 200px minmax(0, 1fr) 104px; }
.console .grid-feedback h4 { margin: 8px 0 4px; font-size: 13px; }
.console .resp-texts { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.console .resp-text, .console .resp-texts li, .console .resp-card .bar-label, .console .grid-feedback h4 { overflow-wrap: anywhere; min-width: 0; }
@media (max-width: 720px) {
  .console .resp-card .bar-row { grid-template-columns: minmax(0, 1fr) 96px; }
}
.console .resp-comments summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; color: var(--teal-6); }
.console .resp-comment-list { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.console .resp-comment-list li { padding: 8px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; min-width: 0; }
.console .resp-comment-list .check { align-items: flex-start; font-weight: 400; }
.console .resp-comment-list .check input { margin: 3px 0 0; }
.console .export-form select.input { min-height: 44px; max-width: 100%; }
.console .resp-download { margin: 0; }
.console .resp-download a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
