/* NCLEX Voice Quiz - single stylesheet. System fonts only, light and dark via prefers-color-scheme. */

:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #eef1f7;
  --text: #16203a;
  --muted: #5b6478;
  --border: #d6dbe6;
  --accent: #1d5fd1;
  --accent-text: #ffffff;
  --accent-soft: #e3ecfb;
  --correct: #157347;
  --correct-soft: #d9f3e4;
  --wrong: #c1272d;
  --wrong-soft: #fbe0e1;
  --warn: #8a5a00;
  --warn-soft: #fff1cc;
  --focus: #ff9f1c;
  --shadow: 0 1px 2px rgba(20, 30, 60, 0.08), 0 4px 16px rgba(20, 30, 60, 0.06);
  --radius: 14px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1420;
    --surface: #1a2133;
    --surface-2: #232c42;
    --text: #eef1f8;
    --muted: #a7b0c4;
    --border: #35405a;
    --accent: #6d9cff;
    --accent-text: #0b1120;
    --accent-soft: #223252;
    --correct: #4fd48a;
    --correct-soft: #173a2a;
    --wrong: #ff6b70;
    --wrong-soft: #47202a;
    --warn: #ffd166;
    --warn-soft: #3d3114;
    --focus: #ffb94f;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 20px rgba(0, 0, 0, 0.35);
  }
}

* {
  box-sizing: border-box;
}

html {
  font-size: 17px;
  height: 100%;
  scroll-padding-bottom: 5rem;
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

a {
  color: var(--accent);
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--surface);
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header / navigation */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding: 0.75rem clamp(1rem, 4vw, 2.5rem);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
}
.site-nav a:hover {
  background: var(--surface-2);
  color: var(--text);
}
.site-nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent);
}

/* Layout */
.app {
  max-width: 62rem;
  margin: 0 auto;
  padding: 1.5rem clamp(1rem, 4vw, 2.5rem) 4rem;
}
.app:focus {
  outline: none;
}
.view > h1 {
  font-size: 1.9rem;
  margin: 0 0 1rem;
  line-height: 1.2;
}
h2 {
  font-size: 1.3rem;
  margin: 0 0 0.75rem;
}
h3 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}
p {
  margin: 0 0 0.75rem;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.9rem;
}
.stack > * + * {
  margin-top: 1rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1rem;
  align-items: start;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}
.row.between {
  justify-content: space-between;
}
.spacer {
  flex: 1;
}

/* Forms */
label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.field {
  margin-bottom: 1rem;
}
.field .hint {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}
input[type="text"],
input[type="number"],
input[type="url"],
input[type="password"],
input[type="search"],
select,
textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
}
input[type="number"] {
  max-width: 8rem;
}
textarea {
  min-height: 9rem;
  resize: vertical;
}
input[type="range"] {
  width: 100%;
  max-width: 24rem;
}
.check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 500;
  padding: 0.35rem 0;
  cursor: pointer;
}
.check input {
  width: 1.2rem;
  height: 1.2rem;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.check .pct {
  color: var(--muted);
  font-size: 0.9rem;
}
.checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 0 1rem;
}
fieldset {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin: 0 0 1rem;
  min-width: 0;
}
legend {
  font-weight: 700;
  padding: 0 0.4rem;
}

/* Buttons */
button {
  font: inherit;
  cursor: pointer;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  padding: 0.6rem 1.1rem;
  font-weight: 600;
  min-height: 2.75rem;
  text-decoration: none;
}
.btn[hidden],
[hidden] {
  display: none !important;
}
.btn:hover {
  background: var(--surface-2);
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}
.btn.primary:hover:not(:disabled) {
  filter: brightness(1.08);
}
.btn.danger {
  color: var(--wrong);
  border-color: var(--wrong);
}
.btn.large {
  font-size: 1.15rem;
  padding: 0.8rem 1.6rem;
}
.btn.small {
  min-height: 2.1rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.9rem;
}

/* Notices */
.notice {
  border-radius: 10px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  background: var(--surface-2);
  margin: 0 0 1rem;
}
.notice.error {
  background: var(--wrong-soft);
  border-color: var(--wrong);
}
.notice.warn {
  background: var(--warn-soft);
  border-color: var(--warn);
}
.notice.success {
  background: var(--correct-soft);
  border-color: var(--correct);
}
.notice:empty {
  display: none;
}

/* Chips and stats */
.chip {
  display: inline-block;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}
.chip.neutral {
  background: var(--surface-2);
  color: var(--muted);
}
.chip.level-easy {
  background: var(--correct-soft);
  color: var(--correct);
}
.chip.level-medium {
  background: var(--accent-soft);
  color: var(--accent);
}
.chip.level-hard {
  background: var(--warn-soft);
  color: var(--warn);
}
.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.segmented .btn.active,
.segmented .btn[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}
.field-label {
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.adaptive-note {
  margin: 0.5rem 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
}
.coach-line {
  margin: 0.5rem 0 0;
  font-weight: 600;
  color: var(--accent);
}
.practice-badge {
  display: inline-block;
  margin: 0.5rem 0 0.75rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-weight: 800;
}
.practice-badge.pass {
  background: var(--correct-soft);
  color: var(--correct);
}
.practice-badge.fail {
  background: var(--wrong-soft);
  color: var(--wrong);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 0.75rem;
}
.stat {
  background: var(--surface-2);
  border-radius: 10px;
  padding: 0.75rem;
}
.stat .value {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
}
.stat .label {
  color: var(--muted);
  font-size: 0.85rem;
}
.bar {
  height: 0.6rem;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}
.bar > span {
  display: block;
  height: 100%;
  background: var(--accent);
}
.bar.low > span {
  background: var(--wrong);
}
.bar.high > span {
  background: var(--correct);
}

/* Lists */
.list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.list > li {
  padding: 0.85rem 0;
  border-top: 1px solid var(--border);
}
.list > li:first-child {
  border-top: 0;
}
.item-title {
  font-weight: 600;
}
.item-meta {
  color: var(--muted);
  font-size: 0.9rem;
}
details.q {
  border-top: 1px solid var(--border);
  padding: 0.5rem 0;
}
details.q > summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.4rem 0;
}
details.q .options {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
}
details.q .options li {
  padding: 0.5rem 0.75rem;
  border-left: 4px solid var(--border);
  margin-bottom: 0.5rem;
  background: var(--surface-2);
  border-radius: 0 8px 8px 0;
}
details.q .options li.correct {
  border-left-color: var(--correct);
}
.rationale {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.2rem;
}
pre.wrap {
  white-space: pre-wrap;
  word-break: break-word;
  font: inherit;
  margin: 0;
}

/* Quiz */
.quiz-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.quiz-progress {
  font-weight: 800;
  font-size: 1.2rem;
}
.stem {
  font-size: 1.45rem;
  line-height: 1.45;
  font-weight: 600;
  margin: 0 0 1.25rem;
}
.quiz-options-panel {
  min-width: 0;
  margin-bottom: 1rem;
}
.quiz-options-panel .options-grid,
.quiz-options-panel .order-list,
.quiz-options-panel .matrix-list,
.quiz-options-panel .bowtie-list {
  margin-bottom: 0;
}
.quiz-options-panel:focus {
  outline: none;
}
.quiz-options-panel:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.options-grid {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0;
}
.option {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  width: 100%;
  text-align: left;
  font-size: 1.22rem;
  line-height: 1.4;
  padding: 0.9rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}
.option:hover:not(:disabled):not(.selected) {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.option:disabled {
  cursor: default;
}
.option .label {
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
}
.option.chosen {
  border-color: var(--wrong);
  background: var(--wrong-soft);
}
.option.correct {
  border-color: var(--correct);
  background: var(--correct-soft);
}
.option.correct .label {
  background: var(--correct);
  color: #fff;
}
.option.chosen:not(.correct) .label {
  background: var(--wrong);
  color: #fff;
}
.option.selected {
  border-color: var(--accent);
  border-width: 3px;
  background: var(--accent-soft);
}
.option.selected .label {
  background: var(--accent);
  color: var(--accent-text);
}
.item-hint {
  margin: -0.35rem 0 0.85rem;
}
.case-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}
.case-card.compact {
  margin: 0.75rem 0;
}
.case-card[hidden] {
  display: none;
}
.case-details summary {
  cursor: pointer;
  font-weight: 700;
}
.case-exhibit {
  margin-top: 0.75rem;
}
.case-exhibit p {
  margin: 0.25rem 0 0;
}
.submit-row {
  margin-bottom: 0.85rem;
}
.order-list,
.matrix-list,
.bowtie-list {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.order-row,
.matrix-row {
  display: grid;
  gap: 0.55rem;
  padding: 0.75rem 0.85rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.order-row {
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
}
.order-index,
.order-row .label,
.matrix-stem .label {
  display: inline-grid;
  place-items: center;
  min-width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
}
.order-actions {
  display: flex;
  gap: 0.35rem;
}
.matrix-stem {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 1.05rem;
}
.matrix-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
}
.matrix-choice {
  margin: 0;
}
.bowtie-group {
  display: grid;
  gap: 0.55rem;
}
.bowtie-group h3 {
  margin: 0;
}
.mic-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 1.6rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.mic-status.listening {
  color: var(--accent);
  font-weight: 600;
}
.mic-status.listening::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--wrong);
  animation: pulse 1.2s ease-in-out infinite;
}
.mic-status.speaking {
  color: var(--text);
}
.mic-status.heard {
  color: var(--accent);
  font-weight: 600;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}
.quiz-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}
.feedback-banner {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  text-align: center;
}
.feedback-banner.correct {
  background: var(--correct-soft);
  color: var(--correct);
}
.feedback-banner.wrong {
  background: var(--wrong-soft);
  color: var(--wrong);
}
.feedback-banner:empty {
  display: none;
}
.feedback-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.feedback-list li {
  padding: 0.75rem 1rem;
  border-left: 5px solid var(--border);
  background: var(--surface-2);
  border-radius: 0 10px 10px 0;
  margin-bottom: 0.6rem;
}
.feedback-list li.correct {
  border-left-color: var(--correct);
}
.feedback-list li.chosen:not(.correct) {
  border-left-color: var(--wrong);
}
.feedback-list .head {
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.teaching-point {
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}
.teaching-point strong {
  display: block;
  margin-bottom: 0.2rem;
}
.spinner {
  display: inline-block;
  width: 1.1rem;
  height: 1.1rem;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  vertical-align: middle;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Results */
.score {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1.1;
}
.cat-row {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) 6rem;
  gap: 0.5rem 1rem;
  align-items: center;
  padding: 0.45rem 0;
}
.cat-row .bar {
  grid-column: 1 / -1;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th,
td {
  text-align: left;
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 640px) {
  html {
    font-size: 16px;
  }
  .site-header {
    padding: 0.6rem 1rem;
  }
  .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}
.brand-name {
    display: none;
  }
  .site-nav a {
    padding: 0.4rem 0.6rem;
  }
  .app {
    padding: 1rem 1rem 3rem;
  }
  .quiz-controls .btn,
  .row .btn.full-sm {
    flex: 1 1 100%;
  }
  .feedback-banner {
    font-size: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mic-status.listening::before,
  .spinner {
    animation: none;
  }
}

/* Utilities added with the views */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
code {
  font-size: 0.9em;
  background: var(--surface-2);
  padding: 0.1em 0.35em;
  border-radius: 6px;
}
.option .text {
  flex: 1;
}
.feedback:empty {
  display: none;
}
.notice.warn[role="alert"] {
  white-space: pre-wrap;
}


/* Sofia coach + mobile-first (iPhone / iPad) */
.sofia-banner {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.sofia-banner.sofia-listen {
  cursor: pointer;
}
.sofia-tap-hint {
  margin: 0.4rem 0 0;
}
.sofia-avatar {
  flex-shrink: 0;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #c45c86, #7b3fa0);
  color: #fff;
  font-weight: 800;
}
.sofia-avatar.tiny {
  width: 1.6rem;
  height: 1.6rem;
  font-size: 0.75rem;
}
.sofia-copy {
  min-width: 0;
}
.sofia-copy p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.sofia-strip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.help-mobile { display: none; }
.help-desktop { display: block; }
.nav-secondary { opacity: 0.85; }

.site-nav {
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }

@media (max-width: 720px) {
  html { font-size: 16px; }
  .site-header {
    flex-direction: column;
    align-items: stretch;
    padding: 0.65rem 0.85rem;
    gap: 0.5rem;
  }
  .site-nav a {
    padding: 0.55rem 0.75rem;
    font-size: 0.95rem;
  }
  .stack-mobile.grid-2 {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .grid-2 {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .help-mobile { display: block; }
  .help-desktop { display: none; }
  .nav-secondary { display: none; }
  .options-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem;
  }
  .option {
    min-height: 3.4rem;
    padding: 0.9rem 1rem;
    font-size: 1.05rem;
  }
  .order-row {
    grid-template-columns: auto auto 1fr;
  }
  .order-actions {
    grid-column: 1 / -1;
  }
  .submit-row .btn {
    width: 100%;
  }
  .quiz-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }
  .quiz-controls .btn,
  .quiz-controls button {
    min-height: 2.8rem;
  }
  .stem {
    font-size: 1.12rem;
  }
  .app {
    padding: 0.85rem;
    /* Extra slack so iOS Safari chrome / home indicator cannot eat the last option. */
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }
  fieldset .checks {
    grid-template-columns: 1fr;
  }

  /*
   * Short iPhone / iPad viewports: keep A–I in a clearly scrollable panel so option D
   * (and the last NGN option) cannot sit behind Repeat/Skip/Stop or the iOS toolbar.
   * 100svh is the visible viewport; 100vh on iOS includes the area behind Safari chrome.
   */
  .view.quiz {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .quiz-options-panel {
    flex: 0 1 auto;
    min-height: 7.5rem;
    max-height: min(58vh, calc(100vh - 16rem));
    max-height: min(58dvh, calc(100svh - 14.5rem));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    padding: 0.55rem 0.55rem 0.85rem;
    margin-bottom: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    scrollbar-gutter: stable;
  }
  .quiz-options-panel .options-grid,
  .quiz-options-panel .order-list,
  .quiz-options-panel .matrix-list,
  .quiz-options-panel .bowtie-list {
    margin-bottom: 0;
    overflow: visible;
  }
  .quiz-options-panel .option,
  .quiz-options-panel .order-row,
  .quiz-options-panel .matrix-row,
  .quiz-options-panel .bowtie-group {
    scroll-margin-bottom: 1.25rem;
  }
  .quiz-options-panel .option:last-child,
  .quiz-options-panel .order-row:last-child,
  .quiz-options-panel .matrix-row:last-child,
  .quiz-options-panel .bowtie-group:last-child {
    margin-bottom: 0.15rem;
  }
  .mic-status,
  .quiz-controls,
  .submit-row {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    background: var(--bg);
  }
  .quiz-controls {
    margin-bottom: 0.85rem;
    padding-bottom: 0.15rem;
  }
  .feedback-banner {
    font-size: clamp(1.35rem, 6vw, 2rem);
  }
}
