/* Remolition Masterclass: event-specific participant and admin visual system. */
:root {
  --paper: #F7F9FC;
  --surface: #FFFFFF;
  --ink: #13243A;
  --muted: #596A7D;
  --line: #DDE6EF;
  --accent: #E21B23;
  --accent-dark: #B8171D;
  --accent-soft: #FFF1F1;
  --navy: #073B78;
  --navy-soft: #EEF4FA;
  --success: #24764E;
  --success-soft: #EDF7F0;
  --danger: #B4232B;
  --danger-soft: #FFF1F1;
  --font-body: 'DM Sans', Arial, sans-serif;
  --font-display: 'Manrope', Arial, sans-serif;
  --ease: cubic-bezier(.2,.75,.25,1);
}

html, body { width: 100%; height: 100%; margin: 0; }
html { scroll-behavior: auto; }
body.remolition-body {
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}
body.remolition-body * { box-sizing: border-box; }
body.remolition-body .ambient-grain { display: none; }
body.remolition-body button, body.remolition-body input { font: inherit; }
body.remolition-body [hidden] { display: none !important; }

.event-header {
  height: 86px;
  min-height: 86px;
  display: grid;
  grid-template-columns: minmax(205px, 1fr) minmax(190px, .9fr) auto;
  align-items: center;
  gap: 26px;
  padding: 8px clamp(20px, 4vw, 64px);
  background: #fff;
  border-bottom: 1px solid #E8EDF2;
  position: relative;
  z-index: 5;
}
.event-mark { display: inline-flex; align-items: center; width: fit-content; min-width: 0; text-decoration: none; }
.event-mark img { display: block; width: clamp(190px, 18vw, 250px); max-height: 72px; object-fit: contain; object-position: left center; }
.event-partners { display: flex; justify-content: center; align-items: center; min-width: 0; }
.event-partners img { display: block; width: clamp(170px, 19vw, 250px); max-height: 58px; object-fit: contain; }
.event-header-meta { display: flex; align-items: center; justify-content: flex-end; gap: 25px; white-space: nowrap; }
.event-date-block { display: grid; gap: 1px; text-align: right; }
.event-date-block span { color: #8B1B21; font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.event-date-block strong { color: var(--navy); font: 800 14px/1.35 var(--font-display); }
.event-date-block small { color: #68798C; font-size: 12px; }
.admin-entry { color: #35495F; font-size: 14px; font-weight: 700; text-decoration: none; }
.admin-entry:hover { color: var(--accent); }
.mobile-session-context { display: none; }

.event-layout {
  height: calc(100svh - 86px);
  height: calc(100dvh - 86px);
  min-height: 0;
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 2.4vh, 28px) clamp(18px, 4vw, 64px) clamp(16px, 2.2vh, 26px);
  display: grid;
  grid-template-columns: minmax(260px, .76fr) minmax(0, 1.24fr);
  gap: clamp(28px, 4.5vw, 72px);
  overflow: hidden;
}
.event-rail { min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: clamp(8px, 1.5vh, 18px) 0 8px; }
.eyebrow, .section-eyebrow, .panel-kicker, .faculty-label {
  margin: 0;
  color: #A51A21;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: .13em;
}
.event-rail h1 {
  margin: 16px 0 15px;
  max-width: 540px;
  color: #102E57;
  font: 800 clamp(34px, 3.25vw, 49px)/1.12 var(--font-display);
  letter-spacing: -.055em;
  overflow-wrap: anywhere;
}
.hero-copy { margin: 0; max-width: 500px; color: #52667B; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.65; }
.topic-list { margin-top: clamp(20px, 3vh, 36px); border-top: 1px solid #DFE7EF; max-width: 520px; }
.topic-line { min-height: 46px; display: flex; align-items: center; gap: 15px; border-bottom: 1px solid #E5EBF1; color: #243B55; }
.topic-line span { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.topic-line strong { font-size: 14px; font-weight: 650; }
.faculty-block { margin-top: auto; padding: 16px 18px 15px; border: 1px solid #DFE8F0; border-left: 3px solid var(--accent); border-radius: 12px; background: rgba(255,255,255,.86); max-width: 520px; }
.faculty-label { color: #8A98A8; font-size: 10px; }
.faculty-block h2 { margin: 7px 0 1px; color: var(--navy); font: 800 19px/1.35 var(--font-display); letter-spacing: -.025em; }
.faculty-credentials { margin: 0 0 4px; color: #384D63; font-size: 14px; font-weight: 700; }
.faculty-role, .faculty-institution { margin: 0; color: #5C6D7D; font-size: 13px; line-height: 1.5; }
.rail-note { margin: 12px 0 0; color: #8290A0; font-size: 11px; }

.journey-panel {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: 900px;
  justify-self: stretch;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0 clamp(24px, 3.2vw, 46px);
  border: 1px solid #E2E9F0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(19,45,76,.055);
}
.panel-topline {
  min-height: 49px;
  flex: 0 0 49px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0;
  border-bottom: 1px solid #EBF0F4;
}
.panel-kicker { color: #687B8E; font-size: 10px; }
.step-indicator { color: #53677B; font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.step-indicator span { color: #B4BFCA; padding: 0 4px; }
.journey-screen {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: clamp(16px, 2.3vh, 26px) 0 clamp(12px, 1.8vh, 20px);
}
.journey-screen[hidden] { display: none !important; }
.screen-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 17px; }
.screen-index { color: #9BA8B4; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.journey-screen h2 { margin: 10px 0 8px; color: #132D51; font: 800 clamp(32px, 3.15vw, 45px)/1.08 var(--font-display); letter-spacing: -.06em; }
.journey-screen h2 em { color: var(--accent); font-style: normal; }
.section-copy { margin: 0 0 16px; max-width: 640px; color: #596D80; font-size: 16px; line-height: 1.55; }

#registration-form { display: flex; flex-direction: column; min-height: 0; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.field { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.field-full { grid-column: 1 / -1; }
.field > span { display: block; color: #243A52; font-size: 15px; line-height: 1.35; font-weight: 750; }
.field > span b { color: var(--accent); }
.optional-label { margin-left: 7px; color: #8593A1; font-size: 10px; font-weight: 700; letter-spacing: .06em; }
.field input, .field textarea {
  width: 100%; min-width: 0; height: 48px; min-height: 48px;
  padding: 0 14px; border: 1px solid #C9D5E0; border-radius: 9px;
  background: #FCFDFE; color: #182B41; font-size: 16px; line-height: 1.35;
  outline: none; transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.field input::placeholder { color: #8796A6; opacity: 1; }
.field input:hover { border-color: #96AABC; }
.field input:focus-visible { border-color: var(--navy); background: #fff; box-shadow: 0 0 0 3px rgba(7,59,120,.12); }
.field input[aria-invalid=true] { border-color: var(--danger); box-shadow: 0 0 0 2px rgba(180,35,43,.08); }
.field-error { min-height: 0; color: var(--danger); font-size: 12px; line-height: 1.25; }
.consent-row { display: flex; align-items: flex-start; gap: 10px; margin: 13px 0 5px; color: #586B7E; font-size: 14px; line-height: 1.4; cursor: pointer; }
.consent-row input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.custom-check { width: 19px; height: 19px; flex: 0 0 19px; display: inline-grid; place-items: center; border: 1.5px solid #AAB9C6; border-radius: 5px; background: #fff; }
.consent-row input:checked + .custom-check { border-color: var(--accent); background: var(--accent); }
.consent-row input:checked + .custom-check::after { content: '✓'; color: #fff; font-size: 13px; font-weight: 900; }
.consent-row input:focus-visible + .custom-check { outline: 3px solid rgba(7,59,120,.22); outline-offset: 2px; }
.consent-row a { color: var(--navy); font-weight: 750; text-decoration: underline; text-underline-offset: 2px; }
.form-error { min-height: 0; margin: 0; color: var(--danger); font-size: 13px; line-height: 1.35; }
.button {
  min-height: 50px; padding: 0 19px; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  border: 1px solid transparent; border-radius: 9px; font-size: 16px; line-height: 1.2; font-weight: 800;
  cursor: pointer; transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.button-primary { background: var(--accent); color: #fff; box-shadow: 0 5px 14px rgba(226,27,35,.14); }
.button-primary:hover:not(:disabled) { background: #C91B22; transform: translateY(-1px); box-shadow: 0 8px 19px rgba(226,27,35,.20); }
.button-secondary { border-color: #CED9E3; background: #fff; color: #25405E; }
.button-secondary:hover:not(:disabled) { border-color: var(--navy); background: #F7FAFD; }
.button:active:not(:disabled) { transform: translateY(1px) scale(.995); }
.button:disabled { cursor: not-allowed; opacity: .56; box-shadow: none; }
.button:focus-visible, .admin-entry:focus-visible { outline: 3px solid rgba(7,59,120,.2); outline-offset: 3px; }
.button-wide { width: 100%; }
.button-arrow { font-size: 20px; line-height: 1; }
#register-button { margin-top: 7px; }
.privacy-note { margin: 9px 0 0; color: #6F7E8E; font-size: 12px; line-height: 1.45; }

.welcome-kicker { margin: 13px 0 0; color: #A71920; font-size: 11px; font-weight: 850; letter-spacing: .12em; }
.assessment-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 13px 0; margin: 4px 0 12px; border-top: 1px solid #E7EDF3; border-bottom: 1px solid #E7EDF3; }
.assessment-facts > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fact-value { color: var(--navy); font: 800 20px/1.3 var(--font-display); }
.fact-label { color: #738397; font-size: 12px; line-height: 1.35; }
.gentle-note { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 14px; padding: 12px 14px; border: 1px solid #E1EAF3; border-radius: 9px; background: #F7FAFD; color: #546A7E; font-size: 13px; line-height: 1.5; }
.gentle-note-icon { width: 19px; height: 19px; flex: 0 0 19px; display: grid; place-items: center; border: 1px solid #9CB2C9; border-radius: 50%; color: var(--navy); font-size: 12px; font-weight: 800; }

.question-screen { gap: 0; }
.question-meta { min-height: 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.question-meta .section-eyebrow { color: #A71920; }
.question-meta-right { display: flex; align-items: center; gap: 12px; }
.question-count { color: #293E55; font-size: 14px; font-weight: 800; white-space: nowrap; }
.question-count span { color: #8290A0; font-weight: 500; }
.question-timer { color: #7A4C2F; font-size: 13px; }
.progress-track { width: 100%; height: 6px; flex: 0 0 6px; overflow: hidden; margin: 10px 0 17px; border-radius: 99px; background: #E9EEF3; }
.progress-track span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #E21B23, #F26B70); transition: width .28s var(--ease); }
.question-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 5px; }
.question-index { color: #8B98A6; font-size: 11px; letter-spacing: .12em; font-weight: 850; }
.question-points { padding: 4px 9px; border: 1px solid #F0D4D6; border-radius: 999px; background: #FFF8F8; color: #A51A21; font-size: 11px; font-weight: 800; white-space: nowrap; }
.question-title { max-width: 760px; margin: 3px 0 6px; color: #152E50; font: 800 clamp(26px, 2.65vw, 36px)/1.18 var(--font-display); letter-spacing: -.04em; text-wrap: balance; overflow-wrap: anywhere; }
.question-hint { margin: 0 0 10px; color: #65798D; font-size: 14px; line-height: 1.45; }
.answer-instruction { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; color: #64778B; font-size: 12px; font-weight: 750; }
.instruction-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--accent); }
.answer-list { min-width: 0; min-height: 0; margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 9px 11px; }
.answer-option {
  min-width: 0; min-height: 64px; width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 10px 13px; border: 1px solid #D7E1EA; border-radius: 10px; background: #fff;
  color: #203A56; text-align: left; box-shadow: none;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}
.answer-option:hover:not(:disabled) { border-color: #7E9DBA; background: #F8FBFE; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(7,59,120,.07); }
.answer-option:focus-visible { outline: 3px solid rgba(7,59,120,.2); outline-offset: 2px; }
.answer-option:disabled { cursor: default; }
.answer-letter { width: 31px; height: 31px; flex: 0 0 31px; display: grid; place-items: center; border: 1px solid #CED9E4; border-radius: 50%; background: #F7F9FC; color: #4B6177; font: 800 13px var(--font-display); }
.answer-text { min-width: 0; flex: 1; color: inherit; font-size: 16px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.answer-indicator { width: 19px; height: 19px; flex: 0 0 19px; border: 1.5px solid #B8C5D1; border-radius: 50%; position: relative; }
.answer-option.is-selected { border-color: var(--navy); background: #F1F6FB; color: #0B3C73; box-shadow: 0 0 0 2px rgba(7,59,120,.06); }
.answer-option.is-selected .answer-letter { border-color: var(--navy); background: var(--navy); color: #fff; }
.answer-option.is-selected .answer-indicator { border-color: var(--navy); background: var(--navy); }
.answer-option.is-selected .answer-indicator::after { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: #fff; }
.answer-option.is-correct { border-color: #3A9668; background: #F1F9F4; color: #205D3D; }
.answer-option.is-correct .answer-letter { border-color: #3A9668; background: #26764E; color: #fff; }
.answer-option.is-correct .answer-indicator { border-color: #26764E; background: #26764E; }
.answer-option.is-correct .answer-indicator::after { content: '✓'; position: absolute; inset: -1px 0 0; color: #fff; text-align: center; font-size: 13px; font-weight: 900; }
.answer-option.is-incorrect { border-color: #D9878C; background: #FFF6F6; color: #8C2229; }
.answer-option.is-incorrect .answer-letter { border-color: #D9878C; background: #B4232B; color: #fff; }
.feedback-panel { margin-top: 10px; padding: 10px 13px; border: 1px solid #D7EADD; border-radius: 9px; background: #F4FAF5; color: #335B43; }
.feedback-panel.is-incorrect { border-color: #F0D5D6; background: #FFF7F7; color: #713239; }
.feedback-panel.is-pending { border-color: #DCE6EF; background: #F7FAFD; color: #415E7A; }
.feedback-heading { display: flex; align-items: center; gap: 8px; min-height: 21px; }
.feedback-heading strong { color: inherit; font-size: 14px; font-weight: 850; }
.feedback-icon { width: 21px; height: 21px; flex: 0 0 21px; display: grid; place-items: center; border-radius: 50%; background: #26764E; color: #fff; font-size: 12px; font-weight: 900; }
.feedback-panel.is-incorrect .feedback-icon { background: #B4232B; }
.feedback-panel.is-pending .feedback-icon { background: #DCE6EF; }
.feedback-state { margin-left: auto; color: #7A8A98; font-size: 9px; font-weight: 850; letter-spacing: .08em; }
.feedback-panel p { margin: 5px 0 0 29px; color: #506B5A; font-size: 14px; line-height: 1.4; }
.feedback-panel.is-incorrect p { color: #78565A; }
.feedback-panel.is-pending p { color: #536A80; }
.correct-answer-line { margin: 5px 0 0 29px; color: #943139; font-size: 13px; font-weight: 800; }
.question-actions { min-height: 50px; margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.save-state { display: inline-flex; align-items: center; gap: 8px; color: #758698; font-size: 11px; white-space: nowrap; }
.save-state .status-dot { width: 7px; height: 7px; background: #2E8A5A; box-shadow: 0 0 0 3px rgba(46,138,90,.1); }
.question-action-buttons { display: flex; gap: 9px; }
.question-action-buttons .button { min-width: 132px; min-height: 44px; }
.question-error { min-height: 0; margin: 0; color: var(--danger); font-size: 12px; }
.feedback-spinner, .button-spinner { width: 15px; height: 15px; border: 2px solid rgba(83,106,128,.2); border-top-color: #536A80; border-radius: 50%; animation: remolition-spin .7s linear infinite; }
.button-spinner { border-color: rgba(255,255,255,.35); border-top-color: #fff; }
@keyframes remolition-spin { to { transform: rotate(360deg); } }

.result-screen { justify-content: center; }
.result-overline { display: flex; align-items: center; gap: 10px; }
.score-feature { display: flex; align-items: center; gap: 25px; margin: 6px 0 15px; padding: 15px 18px; border: 1px solid #E3EAF1; border-radius: 13px; background: #FBFCFE; }
.score-ring { width: 126px; height: 126px; flex: 0 0 126px; position: relative; }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-ring-track, .score-ring-value { fill: none; stroke-width: 9; }
.score-ring-track { stroke: #E6ECF2; }
.score-ring-value { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .7s var(--ease); }
.score-ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.score-ring-label strong { color: #132F55; font: 800 27px var(--font-display); }
.score-ring-label span { color: #8190A0; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.score-copy { display: flex; flex-direction: column; gap: 5px; }
.score-copy strong { color: #16345B; font: 800 21px var(--font-display); }
.score-copy span { color: #667A8F; font-size: 14px; }
.result-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 9px; margin-bottom: 12px; }
.result-stats > div { display: flex; flex-direction: column; gap: 3px; padding: 11px 12px; border: 1px solid #E3EAF1; border-radius: 9px; background: #fff; }
.result-stats strong { color: #1D3B60; font: 800 22px var(--font-display); }
.result-stats span { color: #708297; font-size: 12px; }
.result-footnote { margin: 0 0 11px; color: #78899A; font-size: 12px; }
.thankyou-screen { justify-content: center; }
.thankyou-mark { width: 54px; height: 54px; display: grid; place-items: center; margin: 4px 0 16px; border-radius: 50%; background: #EAF5EE; color: #26764E; font-size: 27px; font-weight: 900; }
.thankyou-divider { width: 50px; height: 2px; margin: 5px 0 12px; background: var(--accent); }
.thankyou-small { margin: 0 0 17px; color: #6C7E90; font-size: 13px; }
.panel-footer { min-height: 37px; flex: 0 0 37px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #EBF0F4; color: #8392A1; font-size: 10px; }
.panel-footer span:last-child { color: #647A8E; font-size: 10px; font-weight: 850; letter-spacing: .08em; }
.toast { z-index: 100; font-size: 14px; }

/* Admin identity: use the same event and partner lockups, without changing its information architecture. */
.admin-body { background: #F7F9FC; color: var(--ink); }
.admin-brand-lockup { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; max-width: 220px; }
.admin-remolition-logo { display: block; width: 190px; max-width: 100%; max-height: 76px; object-fit: contain; object-position: left center; }
.admin-partner-lockup { display: block; width: 172px; max-height: 42px; object-fit: contain; object-position: left center; }
.admin-side-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; padding-bottom: 18px; }
.admin-side-brand .admin-remolition-logo { width: 184px; }
.admin-side-brand .admin-partner-lockup { width: 148px; }
.mobile-remolition-logo { display: block; width: 142px; max-height: 52px; object-fit: contain; }
.mobile-partner-lockup { display: block; width: 108px; max-height: 28px; object-fit: contain; }
.admin-login-card .section-copy { font-size: 15px; }
.admin-login-card h1 { color: #14345B; }
.admin-sidebar { background: #fff; border-right-color: #E0E7EE; }
.nav-item.is-active { color: #A8171E; background: #FFF1F1; }
.admin-main-wrap { background: #F7F9FC; }
.admin-topbar { background: #fff; border-bottom-color: #E3EAF1; }
.metric-card, .surface-card { border-color: #E2E9F0; }
.metric-card>strong { color: #163A66; }
.chart-legend i, .progress-track span { background: var(--accent); }
.text-button, .nav-item:hover { color: #A8171E; }
.mobile-brand { gap: 9px; }

@media (max-width: 1080px) {
  .event-header { grid-template-columns: minmax(175px, .9fr) minmax(145px, .75fr) auto; gap: 14px; padding-inline: 24px; }
  .event-mark img { width: 205px; }
  .event-partners img { width: 185px; }
  .event-header-meta { gap: 15px; }
  .event-layout { gap: 28px; padding-inline: 24px; }
  .event-rail h1 { font-size: clamp(32px, 3.6vw, 42px); }
  .question-title { font-size: clamp(24px, 2.7vw, 31px); }
}
@media (max-width: 900px) {
  body.remolition-body { overflow: hidden; }
  .event-header { height: 72px; min-height: 72px; grid-template-columns: 1fr auto auto; gap: 12px; padding-inline: 18px; }
  .event-mark img { width: 170px; max-height: 57px; }
  .event-partners img { width: 135px; max-height: 38px; }
  .event-date-block span { display: none; }
  .event-date-block strong { font-size: 12px; }
  .event-date-block small { font-size: 10px; }
  .event-header-meta { gap: 10px; }
  .admin-entry { font-size: 12px; }
  .mobile-session-context { height: 48px; min-height: 48px; display: flex; flex-direction: column; justify-content: center; gap: 0; padding: 3px 20px 2px; background: #F3F7FB; border-bottom: 1px solid #E3EAF1; }
  .mobile-session-context strong { color: #14365E; font-size: 13px; line-height: 1.25; }
  .mobile-session-context span { color: #6F8091; font-size: 11px; line-height: 1.25; }
  .event-layout { height: calc(100svh - 120px); height: calc(100dvh - 120px); grid-template-columns: minmax(0,1fr); padding: 0; gap: 0; }
  .event-rail { display: none; }
  .journey-panel { max-width: none; height: 100%; border: 0; border-radius: 0; box-shadow: none; padding-inline: clamp(18px,4vw,34px); }
}
@media (max-width: 600px) {
  .event-header { height: 66px; min-height: 66px; grid-template-columns: minmax(0,1fr) auto; gap: 8px; padding-inline: 13px; }
  .event-mark img { width: 150px; max-height: 52px; }
  .event-partners { justify-content: flex-end; }
  .event-partners img { width: 114px; max-height: 30px; }
  .event-header-meta { display: none; }
  .mobile-session-context { height: 50px; min-height: 50px; padding-inline: 16px; }
  .event-layout { height: calc(100svh - 116px); height: calc(100dvh - 116px); }
  .journey-panel { padding-inline: 17px; }
  .panel-topline { min-height: 41px; flex-basis: 41px; }
  .journey-screen { padding-top: 15px; padding-bottom: 8px; }
  .journey-screen h2 { font-size: clamp(29px, 8vw, 36px); }
  .section-copy { font-size: 14px; margin-bottom: 11px; }
  .field-grid { grid-template-columns: 1fr 1fr; gap: 8px 9px; }
  .field > span { font-size: 14px; }
  .field input { height: 46px; min-height: 46px; padding-inline: 11px; font-size: 16px; }
  .consent-row { font-size: 13px; line-height: 1.35; margin: 9px 0 4px; }
  #register-button { min-height: 46px; margin-top: 5px; font-size: 15px; }
  .privacy-note { font-size: 11px; margin-top: 6px; }
  .progress-track { height: 6px; margin: 9px 0 13px; }
  .question-heading-row { margin-bottom: 5px; }
  .question-title { font-size: clamp(24px, 6.1vw, 29px); line-height: 1.16; margin: 5px 0 7px !important; }
  .answer-list { grid-template-columns: 1fr; gap: 7px; }
  .answer-option { min-height: 54px; padding: 8px 11px; gap: 10px; }
  .answer-letter { width: 28px; height: 28px; flex-basis: 28px; font-size: 12px; }
  .answer-text { font-size: 16px; line-height: 1.3; }
  .answer-indicator { width: 17px; height: 17px; flex-basis: 17px; }
  .question-hint { font-size: 13px; line-height: 1.35; margin-bottom: 7px; }
  .answer-instruction { margin-bottom: 7px; font-size: 12px; }
  .question-actions { min-height: 46px; padding-top: 6px; }
  .feedback-panel { margin-top: 7px; padding: 8px 10px; }
  .feedback-heading strong { font-size: 13px; }
  .feedback-panel p { font-size: 12.5px; line-height: 1.35; }
  .question-actions { min-height: 44px; padding-top: 7px; }
  .save-state { font-size: 11px; }
  .question-action-buttons .button { min-width: 110px; min-height: 41px; font-size: 14px; }
  .panel-footer { min-height: 32px; flex-basis: 32px; }
  .panel-footer span { font-size: 10px; }
  .score-feature { gap: 14px; padding: 11px; }
  .score-ring { width: 104px; height: 104px; flex-basis: 104px; }
  .score-ring-label strong { font-size: 23px; }
  .result-stats > div { padding: 8px 9px; }
  .result-stats strong { font-size: 19px; }
  .result-stats span { font-size: 10px; }
}
@media (max-height: 740px) {
  .event-header { height: 72px; min-height: 72px; }
  .event-layout { height: calc(100svh - 72px); height: calc(100dvh - 72px); }
  .event-rail { padding-top: 4px; }
  .event-rail h1 { margin: 11px 0 10px; font-size: clamp(30px, 3vw, 42px); }
  .topic-list { margin-top: 16px; }
  .topic-line { min-height: 39px; }
  .faculty-block { padding: 11px 14px; }
  .journey-screen { padding-top: 14px; padding-bottom: 8px; }
  .journey-screen h2 { margin-top: 6px; font-size: clamp(29px, 3vw, 38px); }
  .section-copy { margin-bottom: 10px; }
  .field-grid { gap: 7px 12px; }
  .field input { height: 44px; min-height: 44px; }
  .consent-row { margin-top: 8px; }
  .privacy-note { margin-top: 5px; }
  .progress-track { margin: 8px 0 12px; }
  .answer-option { min-height: 55px; }
  .question-title { font-size: clamp(24px, 2.45vw, 31px); }
}
@media (max-height: 700px) and (max-width: 900px) {
  .mobile-session-context { height: 43px; min-height: 43px; }
  .event-header { height: 62px; min-height: 62px; }
  .event-layout { height: calc(100svh - 105px); height: calc(100dvh - 105px); }
  .journey-screen { padding-top: 10px; padding-bottom: 5px; }
  .journey-screen h2 { font-size: 28px; }
  .field input { height: 40px; min-height: 40px; }
  .answer-option { min-height: 46px; }
  .answer-text { font-size: 14px; }
  .progress-track { margin: 6px 0 8px; }
  .question-hint { margin-bottom: 5px; }
  .question-actions .button { min-height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .feedback-spinner, .button-spinner { animation: none; }
  .answer-option, .button, .progress-track span, .score-ring-value { transition: none !important; }
}

.mobile-brand-lockup { display: flex; align-items: center; gap: 10px; min-width: 0; }
.admin-login-card .admin-brand-lockup { margin: 0 0 22px; }
.admin-sidebar .admin-side-brand { width: 100%; }
.admin-side-brand .admin-remolition-logo { width: 180px; max-height: 65px; }
.admin-side-brand .admin-partner-lockup { width: 150px; max-height: 34px; }
.admin-login-card .admin-remolition-logo { width: 205px; max-height: 76px; }
.admin-login-card .admin-partner-lockup { width: 185px; max-height: 42px; }
.mobile-brand-lockup .mobile-remolition-logo { width: 120px; max-height: 42px; }
.mobile-brand-lockup .mobile-partner-lockup { width: 92px; max-height: 28px; }
@media (max-width: 600px) { .mobile-brand-lockup { gap: 7px; } .mobile-brand-lockup .mobile-remolition-logo { width: 104px; max-height: 36px; } .mobile-brand-lockup .mobile-partner-lockup { width: 76px; max-height: 24px; } }

/* Viewport-fit correction: the mobile layout has both a header and a context strip.
   Earlier short-height rules must subtract both, otherwise the main panel overflows. */
@media (max-height: 740px) and (max-width: 900px) {
  .event-header { height: 72px; min-height: 72px; }
  .mobile-session-context { height: 48px; min-height: 48px; }
  .event-layout { height: calc(100svh - 120px); height: calc(100dvh - 120px); }
  .journey-screen { padding-top: 10px; padding-bottom: 5px; }
  .panel-topline { min-height: 38px; flex-basis: 38px; }
  .progress-track { margin: 6px 0 9px; }
  .question-title { font-size: clamp(23px, 5.7vw, 27px); line-height: 1.16; margin: 1px 0 4px; }
  .question-hint { font-size: 12.5px; line-height: 1.3; margin-bottom: 4px; }
  .answer-instruction { margin-bottom: 4px; font-size: 11.5px; }
  .answer-option { min-height: 47px; padding: 7px 10px; }
  .answer-text { font-size: 15px; line-height: 1.25; }
  .feedback-panel { margin-top: 5px; padding: 7px 9px; }
  .feedback-panel p { font-size: 12px; line-height: 1.28; }
  .question-actions { min-height: 44px; padding-top: 5px; }
  .question-action-buttons .button { min-height: 44px; }
}
@media (max-height: 700px) and (max-width: 900px) {
  .event-header { height: 62px; min-height: 62px; }
  .mobile-session-context { height: 43px; min-height: 43px; }
  .event-layout { height: calc(100svh - 105px); height: calc(100dvh - 105px); }
  .field input { height: 44px; min-height: 44px; }
  .field > span { font-size: 13px; }
  .consent-row { font-size: 12.5px; line-height: 1.3; margin: 7px 0 3px; }
  .privacy-note { font-size: 10.5px; margin-top: 4px; }
  .answer-option { min-height: 45px; }
  .answer-text { font-size: 15px; }
  .question-actions .button { min-height: 44px; }
}
@media (max-height: 620px) {
  /* One scroll container only, reserved for unusually short viewports and enlarged zoom. */
  .journey-panel { overflow-y: auto; overscroll-behavior: contain; }
  .journey-screen { flex: 0 0 auto; min-height: max-content; overflow: visible; }
}

/* After a response, the hint and selection prompt collapse to give the explanation a clear one-screen area. */
.question-screen.has-feedback .question-hint,
.question-screen.has-feedback .answer-instruction { display: none; }
.question-screen.has-feedback .feedback-panel { margin-top: 8px; }

/* Remolition clinical knowledge check — refined, calm interaction layer */
:root {
  --accent: #D91F2B;
  --accent-dark: #B71923;
  --accent-soft: #FFF8F8;
  --navy: #123B68;
  --navy-soft: #F5F8FB;
  --success: #397A58;
  --success-soft: #F8FBF8;
  --danger: #A94B52;
  --danger-soft: #FFFAFA;
  --line: #E8EBEF;
  --paper: #FAFAF9;
}

.journey-panel {
  padding: clamp(24px, 3.2vw, 48px) clamp(26px, 3.6vw, 54px) clamp(18px, 2.5vh, 28px);
  background: #fff;
  border-color: #E9EAEC;
  box-shadow: 0 14px 44px rgba(20, 31, 47, .045);
}
.panel-topline { min-height: 42px; flex-basis: 42px; }
.panel-kicker, .section-eyebrow, .eyebrow, .faculty-label {
  color: #8B3037;
  letter-spacing: .12em;
  font-size: 11px;
}
.journey-screen { padding-top: clamp(22px, 3vh, 36px); padding-bottom: clamp(14px, 2vh, 22px); }
.journey-screen h2 { margin: 15px 0 12px; letter-spacing: -.045em; }
.section-copy { max-width: 590px; margin-bottom: 24px; font-size: 16px; line-height: 1.62; }
.screen-index { color: #A5ABB2; }

#registration-form { gap: 0; }
.field-grid { gap: 20px 22px; }
.field { gap: 8px; }
.field > span { color: #293B50; font-size: 14px; font-weight: 700; }
.optional-label { margin-left: 8px; color: #89919A; font-size: 10px; letter-spacing: .075em; }
.field input {
  height: 52px;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid #E0E4E8;
  border-radius: 10px;
  background: #fff;
  color: #172B42;
  font-size: 16px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field input::placeholder { color: #A0A7AF; }
.field input:hover { border-color: #C6CDD4; background: #FEFEFE; }
.field input:focus-visible {
  border-color: #D8787E;
  box-shadow: 0 0 0 3px rgba(217, 31, 43, .075);
  background: #fff;
}
.field input[aria-invalid=true] { border-color: #C66A70; box-shadow: 0 0 0 2px rgba(169, 75, 82, .07); }
.field-error { font-size: 12px; color: #A94B52; }
#register-button { min-height: 52px; margin-top: 19px; border-radius: 10px; box-shadow: none; }
#register-button:hover:not(:disabled) { box-shadow: 0 7px 18px rgba(185, 25, 35, .12); transform: translateY(-1px); }
.privacy-note { margin-top: 14px; color: #858D96; font-size: 12px; line-height: 1.5; }

.question-meta .section-eyebrow { color: #8B3037; }
.question-count { color: #314358; font-variant-numeric: tabular-nums; }
.progress-track { height: 4px; margin: 13px 0 23px; background: #ECEDEF; }
.progress-track span { background: #D91F2B; transition: width .32s cubic-bezier(.2,.7,.25,1); }
.question-heading-row { margin-bottom: 9px; }
.question-index { color: #9A6B6F; font-size: 11px; letter-spacing: .13em; }
.question-points { border-color: #ECE1E2; background: #FFFCFC; color: #8D4D52; padding: 5px 10px; font-size: 10px; }
.question-title {
  max-width: 740px;
  margin: 4px 0 10px;
  color: #17395E;
  font-size: clamp(27px, 2.45vw, 34px);
  line-height: 1.23;
  letter-spacing: -.035em;
  font-weight: 750;
}
.question-hint { margin: 0 0 15px; color: #78838E; font-size: 14px; line-height: 1.5; }
.answer-instruction { margin-bottom: 11px; color: #7B858E; font-size: 12px; font-weight: 600; }
.instruction-dot { width: 5px; height: 5px; flex-basis: 5px; background: #C8A1A3; }
.answer-list { gap: 12px; }
.answer-option {
  min-height: 72px;
  padding: 15px 16px;
  gap: 13px;
  border: 1px solid #E6E8EB;
  border-radius: 11px;
  background: #fff;
  color: #26394E;
  box-shadow: none;
  transform: translateY(0);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.answer-option:hover:not(:disabled) {
  border-color: #D6B8BA;
  background: #FFFEFE;
  box-shadow: 0 7px 18px rgba(29, 38, 48, .045);
  transform: translateY(-1px);
}
.answer-option:focus-visible { outline: 3px solid rgba(217, 31, 43, .18); outline-offset: 3px; }
.answer-letter {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
  border: 1px solid #E5E7EA;
  border-radius: 8px;
  background: #FBFBFB;
  color: #66717D;
  font-size: 12px;
  font-weight: 700;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.answer-text { color: inherit; font-size: 16px; line-height: 1.45; font-weight: 600; }
.answer-indicator {
  width: 17px;
  height: 17px;
  flex-basis: 17px;
  border: 1.5px solid #D4D9DE;
  background: #fff;
  transition: border-color .18s ease, background .18s ease;
}
.answer-option.is-selected {
  border-color: #D98E93;
  background: #FFFBFB;
  color: #26394E;
  box-shadow: inset 0 0 0 1px rgba(217, 31, 43, .035);
}
.answer-option.is-selected .answer-letter {
  border-color: #DCA2A6;
  background: #fff;
  color: #B51F29;
}
.answer-option.is-selected .answer-indicator {
  border-color: #C94D56;
  background: #fff;
}
.answer-option.is-selected .answer-indicator::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #C94D56;
}
.answer-option.is-correct {
  border-color: #B9D2C1;
  background: #FEFFFE;
  color: #26394E;
  box-shadow: inset 2px 0 0 #6B9C7B;
}
.answer-option.is-correct .answer-letter {
  border-color: #D9E6DD;
  background: #fff;
  color: #477A59;
}
.answer-option.is-correct .answer-indicator {
  border-color: #77A286;
  background: #fff;
}
.answer-option.is-correct .answer-indicator::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #5B936D;
}
.answer-option.is-incorrect {
  border-color: #E2BFC2;
  background: #FFFEFE;
  color: #3D3335;
  box-shadow: inset 2px 0 0 #C77A80;
}
.answer-option.is-incorrect .answer-letter {
  border-color: #ECD8DA;
  background: #fff;
  color: #A94B52;
}
.answer-option.is-incorrect .answer-indicator { border-color: #C77A80; background: #fff; }
.answer-option.is-incorrect .answer-indicator::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #C77A80;
}

.feedback-panel {
  margin-top: 14px;
  padding: 13px 16px;
  border: 1px solid #E7EAED;
  border-left: 2px solid #679477;
  border-radius: 9px;
  background: #fff;
  color: #26394E;
}
.feedback-panel.is-incorrect { border-color: #E8E1E2; border-left-color: #C47A80; background: #fff; color: #3A3435; }
.feedback-panel.is-pending { border-color: #E7EAED; border-left-color: #B9A5A6; background: #fff; color: #536271; }
.feedback-heading { min-height: 22px; gap: 9px; }
.feedback-icon {
  width: 19px;
  height: 19px;
  flex-basis: 19px;
  border: 1px solid #C9DCCE;
  background: #fff;
  color: #477A59;
  font-size: 11px;
  font-weight: 700;
}
.feedback-panel.is-incorrect .feedback-icon { border-color: #E5C9CC; background: #fff; color: #A94B52; }
.feedback-panel.is-pending .feedback-icon { border-color: #DEE2E6; background: #fff; color: #78838E; }
.feedback-heading strong { color: inherit; font-size: 14px; font-weight: 700; }
.feedback-state { color: #959CA3; font-size: 9px; letter-spacing: .1em; }
.feedback-panel p { margin: 6px 0 0 28px; color: #697580; font-size: 14px; line-height: 1.5; }
.feedback-panel.is-incorrect p, .feedback-panel.is-pending p { color: #697580; }
.correct-answer-line { margin: 6px 0 0 28px; color: #8D4A50; font-size: 13px; line-height: 1.45; font-weight: 650; }
.question-actions { min-height: 54px; padding-top: 14px; gap: 16px; }
.save-state { color: #8B939B; font-size: 11px; }
.save-state .status-dot { width: 6px; height: 6px; background: #789B83; box-shadow: none; }
.save-state.is-saving .status-dot { animation: response-pulse 1s ease-in-out infinite; }
@keyframes response-pulse { 50% { opacity: .35; transform: scale(.8); } }
.question-action-buttons .button { min-width: 142px; min-height: 48px; border-radius: 10px; }
.button { transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease; }
.button:focus-visible { outline: 3px solid rgba(217, 31, 43, .18); outline-offset: 3px; }

@media (max-width: 900px) {
  .journey-panel { padding: 22px clamp(20px, 4vw, 32px) 14px; }
  .journey-screen { padding-top: 16px; padding-bottom: 10px; }
  .section-copy { margin-bottom: 18px; }
  .field-grid { gap: 14px 16px; }
  .question-title { font-size: clamp(25px, 4vw, 31px); }
  .answer-option { min-height: 66px; }
}
@media (max-width: 600px) {
  .journey-panel { padding: 14px 17px 10px; }
  .panel-topline { min-height: 36px; flex-basis: 36px; }
  .journey-screen { padding-top: 13px; padding-bottom: 7px; }
  .journey-screen h2 { font-size: clamp(29px, 7.4vw, 35px); margin: 9px 0 8px; }
  .section-copy { font-size: 14px; line-height: 1.48; margin-bottom: 15px; }
  .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 11px; }
  .field { gap: 6px; }
  .field > span { font-size: 13px; }
  .optional-label { font-size: 9px; }
  .field input { height: 47px; min-height: 47px; padding-inline: 10px; font-size: 15px; }
  #register-button { margin-top: 14px; min-height: 47px; }
  .privacy-note { margin-top: 10px; font-size: 11px; }
  .progress-track { margin: 8px 0 14px; }
  .question-title { font-size: clamp(23px, 6vw, 27px); line-height: 1.22; margin: 2px 0 7px; }
  .question-hint { font-size: 13px; line-height: 1.38; margin-bottom: 9px; }
  .answer-instruction { margin-bottom: 7px; }
  .answer-list { grid-template-columns: 1fr; gap: 8px; }
  .answer-option { min-height: 56px; padding: 10px 12px; gap: 11px; border-radius: 10px; }
  .answer-letter { width: 28px; height: 28px; flex-basis: 28px; border-radius: 7px; }
  .answer-text { font-size: 15px; line-height: 1.35; }
  .answer-indicator { width: 16px; height: 16px; flex-basis: 16px; }
  .feedback-panel { margin-top: 9px; padding: 10px 12px; }
  .feedback-panel p { margin-left: 27px; font-size: 13px; line-height: 1.4; }
  .correct-answer-line { margin-left: 27px; font-size: 12px; }
  .question-actions { min-height: 47px; padding-top: 8px; gap: 8px; }
  .save-state { font-size: 10px; }
  .question-action-buttons .button { min-width: 112px; min-height: 43px; font-size: 14px; }
}
@media (max-width: 370px) {
  .field-grid { gap: 11px 8px; }
  .field > span { font-size: 12px; }
  .field input { padding-inline: 8px; font-size: 14px; }
  .answer-text { font-size: 14px; }
  .save-state { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .answer-option, .answer-letter, .answer-indicator, .button, .progress-track span { transition: none !important; }
  .save-state.is-saving .status-dot { animation: none; }
}

/* Final interaction/layout patch: calm answer states and no floating/overlapping actions. */
.question-screen {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #D8DEE5 transparent;
}
.question-actions {
  position: static !important;
  inset: auto !important;
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 0 !important;
  padding: 14px 0 0 !important;
  border-top: 1px solid #EDF0F3;
  min-height: 54px;
  gap: 12px;
}
.question-action-buttons {
  position: static !important;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
}
.question-action-buttons .button,
#continue-button,
#previous-button {
  position: static !important;
  inset: auto !important;
  transform: none;
  min-width: 136px;
  min-height: 48px;
  width: auto;
  max-width: 100%;
  white-space: nowrap;
}
.question-error:empty { display: none !important; }
.question-error:not(:empty) {
  display: block;
  position: static !important;
  margin: 9px 0 0;
  padding: 9px 11px;
  border: 1px solid #F0DADD;
  border-radius: 7px;
  background: #FFFAFA;
  color: #9C4B52;
  font-size: 12px;
  line-height: 1.45;
}

/* No decorative radio pin/check glyphs: selection is communicated with shape, text and border. */
.answer-option { position: relative; min-width: 0; }
.answer-indicator,
.answer-indicator::before,
.answer-indicator::after { display: none !important; content: none !important; }
.answer-option.is-selected {
  border-color: #D68B91;
  background: #FFFCFC;
  color: #26394E;
  box-shadow: inset 3px 0 0 #D91F2B;
}
.answer-option.is-selected .answer-letter {
  border-color: #E3B7BA;
  background: #fff;
  color: #A51A21;
}
.answer-option.is-correct,
.answer-option.is-answer-key {
  border-color: #C8DCCF;
  background: #FEFFFE;
  color: #26394E;
  box-shadow: inset 3px 0 0 #6F9C7C;
}
.answer-option.is-correct .answer-letter,
.answer-option.is-answer-key .answer-letter {
  border-color: #D5E3D9;
  background: #fff;
  color: #477A59;
}
.answer-option.is-incorrect {
  border-color: #E5C8CB;
  background: #FFFEFE;
  color: #3D3335;
  box-shadow: inset 3px 0 0 #C77A80;
}
.answer-option.is-incorrect .answer-letter {
  border-color: #E9D4D6;
  background: #fff;
  color: #A94B52;
}
.answer-result-label {
  display: none;
  flex: 0 0 auto;
  margin-left: auto;
  padding-left: 8px;
  color: #78858F;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 650;
  text-align: right;
  white-space: nowrap;
}
.answer-option.is-correct .answer-result-label,
.answer-option.is-incorrect .answer-result-label,
.answer-option.is-answer-key .answer-result-label { display: inline; }
.answer-option.is-correct .answer-result-label,
.answer-option.is-answer-key .answer-result-label { color: #547D60; }
.answer-option.is-incorrect .answer-result-label { color: #A65B61; }

.feedback-panel {
  position: static !important;
  margin: 12px 0 0 !important;
  padding: 13px 15px !important;
  border: 1px solid #E8EBEF !important;
  border-left: 3px solid #8BA995 !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: none !important;
}
.feedback-panel.is-incorrect { border-left-color: #C9878C !important; }
.feedback-panel.is-error { border-left-color: #C9878C !important; }
.feedback-panel.is-pending { border-left-color: #A9B5C0 !important; }
.feedback-icon { display: none !important; }
.feedback-heading { min-height: 22px; gap: 8px; color: #29435D; }
.feedback-heading strong { font-size: 14px; font-weight: 700; }
.feedback-state { margin-left: auto; color: #9AA3AC; font-size: 10px; letter-spacing: .09em; }
.feedback-panel p {
  margin: 6px 0 0 !important;
  color: #697887 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}
.correct-answer-line { margin: 7px 0 0 !important; color: #547D60; font-size: 13px; }
.feedback-panel.is-pending .feedback-state::after {
  content: ' ···';
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  width: 0;
  animation: answer-wait-dots 1.05s steps(4, end) infinite;
}
@keyframes answer-wait-dots { to { width: 1.5em; } }

@media (max-width: 600px) {
  .question-actions {
    align-items: stretch;
    flex-direction: column;
    margin-top: 14px !important;
    padding-top: 11px !important;
  }
  .question-action-buttons { width: 100%; margin-left: 0; }
  .question-action-buttons .button,
  #continue-button,
  #previous-button { flex: 1 1 0; min-width: 0; width: auto; min-height: 46px; }
  .answer-result-label { font-size: 10px; white-space: normal; max-width: 86px; }
  .feedback-panel { padding: 11px 12px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .feedback-panel.is-pending .feedback-state::after { animation: none; }
  .question-screen { scroll-behavior: auto; }
}

/* Final layout safeguards: answer options and the action row stay in normal flow. */
.question-screen {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding-top: clamp(16px, 2vh, 24px);
  padding-bottom: 18px;
  scrollbar-width: thin;
}
.answer-list {
  position: static !important;
  display: grid !important;
  flex: 0 0 auto !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  width: 100%;
  min-width: 0;
  gap: 12px;
}
.answer-option {
  position: relative !important;
  inset: auto !important;
  display: flex !important;
  align-items: center;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100%;
  min-height: 68px;
  height: auto !important;
  margin: 0 !important;
  transform: none;
}
.answer-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}
.answer-result-label { display: none !important; }
.question-actions {
  position: static !important;
  inset: auto !important;
  z-index: auto !important;
  display: flex !important;
  flex: 0 0 auto !important;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  align-self: stretch;
  width: 100%;
  min-width: 0;
  margin: 18px 0 0 !important;
  padding: 14px 0 0 !important;
  border-top: 1px solid #E8EDF2;
  background: #fff;
}
.question-action-buttons {
  position: static !important;
  inset: auto !important;
  z-index: auto !important;
  display: flex !important;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  margin: 0 0 0 auto !important;
  transform: none !important;
}
.question-action-buttons .button,
#continue-button,
#previous-button {
  position: static !important;
  inset: auto !important;
  float: none !important;
  transform: none;
  display: inline-flex;
  flex: 0 0 auto;
  width: auto !important;
  min-width: 132px;
  max-width: 100%;
  min-height: 48px;
  margin: 0 !important;
  white-space: nowrap;
}
.question-error:not(:empty) {
  position: static !important;
  inset: auto !important;
  width: 100%;
  margin: 10px 0 0 !important;
}
.status-tag.registered {
  color: #596B80;
  border-color: #DCE4EC;
  background: #F5F7FA;
}
.attempt-progress-copy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 12px 0 6px;
  color: #738194;
  font-size: 12px;
}
.attempt-progress-copy strong { color: #243D5A; font-size: 12px; }
.attempt-progress-track {
  height: 5px;
  overflow: hidden;
  margin: 0 0 12px;
  border-radius: 999px;
  background: #EDF1F5;
}
.attempt-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #D91F2B;
  transition: width .3s ease;
}

@media (max-width: 700px) {
  .answer-list { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .answer-option { min-height: 58px; }
  .question-actions { align-items: stretch; gap: 10px; }
  .save-state { min-height: 20px; }
  .question-action-buttons { width: 100%; margin-left: 0 !important; }
  .question-action-buttons .button,
  #continue-button,
  #previous-button { flex: 1 1 0; min-width: 0; }
}
@media (max-height: 680px) and (min-width: 701px) {
  .question-screen { padding-top: 12px; padding-bottom: 12px; }
  .progress-track { margin: 8px 0 12px; }
  .question-title { font-size: clamp(24px, 2.3vw, 31px); }
  .question-hint { margin-bottom: 8px; }
  .answer-option { min-height: 58px; }
  .question-actions { margin-top: 12px !important; padding-top: 10px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .attempt-progress-track span { transition: none !important; }
}


/* 2026-11-12 interaction hardening: question controls are always in document flow. */
#question-screen {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  position: relative !important;
  min-width: 0 !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  isolation: isolate;
}
#question-screen > .question-meta,
#question-screen > .progress-track,
#question-screen > .question-heading-row,
#question-screen > .question-title,
#question-screen > .question-hint,
#question-screen > .answer-instruction,
#question-screen > .answer-list,
#question-screen > .feedback-panel,
#question-screen > .question-actions,
#question-screen > .question-error {
  position: relative !important;
  inset: auto !important;
  float: none !important;
  flex: 0 0 auto !important;
  width: 100%;
  max-width: 100%;
  transform: none;
}
#question-screen > .answer-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 12px !important;
  margin: 10px 0 0 !important;
  padding: 0 !important;
}
#question-screen .answer-option {
  position: relative !important;
  inset: auto !important;
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 64px !important;
  height: auto !important;
  margin: 0 !important;
  transform: none;
}
#question-screen > .question-actions {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  align-self: stretch !important;
  gap: 12px !important;
  min-height: 56px !important;
  margin: 16px 0 0 !important;
  padding: 14px 0 0 !important;
  border-top: 1px solid #E8EDF2 !important;
  background: transparent !important;
  z-index: 1 !important;
}
#question-screen .question-action-buttons {
  position: relative !important;
  inset: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  width: auto !important;
  margin: 0 0 0 auto !important;
  transform: none !important;
}
#question-screen #continue-button,
#question-screen #previous-button {
  position: relative !important;
  inset: auto !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 132px !important;
  max-width: 100% !important;
  min-height: 46px !important;
  margin: 0 !important;
  transform: none !important;
  white-space: nowrap !important;
}
#question-screen .answer-result-label { display: none !important; }
#question-screen .answer-indicator,
#question-screen .answer-indicator::before,
#question-screen .answer-indicator::after { display: none !important; content: none !important; }
#question-screen .feedback-panel {
  margin: 12px 0 0 !important;
  box-shadow: none !important;
}
#question-screen .question-error:not(:empty) {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  margin: 10px 0 0 !important;
}
@media (max-width: 700px) {
  #question-screen > .answer-list { grid-template-columns: minmax(0, 1fr) !important; gap: 9px !important; }
  #question-screen > .question-actions { align-items: stretch !important; }
  #question-screen .question-action-buttons { width: 100% !important; margin-left: 0 !important; }
  #question-screen #continue-button,
  #question-screen #previous-button { flex: 1 1 0 !important; min-width: 0 !important; }
}

/* Screen visibility guard — the question layout uses display:flex !important.
   Keep that layout only while the question screen is active. Without this
   higher-specificity hidden-state rule, the question screen appears beneath
   registration and causes the form/quiz overlap seen in the browser. */
body.remolition-body .journey-panel > #question-screen[hidden],
body.remolition-body .journey-panel > #question-screen:not(.is-active) {
  display: none !important;
}
body.remolition-body .journey-panel > #question-screen.is-active:not([hidden]) {
  display: flex !important;
}
