:root {
  color-scheme: light;
  --bg: #f3f1e1;
  --ink: #1f2411;
  --muted: #656948;
  --line: #d1cfab;
  --panel: #fffdf2;
  --panel-soft: #e9ecd4;
  --green: #6f7f2a;
  --green-dark: #35430f;
  --blue: #596b2d;
  --gold: #b88926;
  --rose: #9e3d2f;
  --correct: #4f7f35;
  --correct-soft: #e7f0db;
  --incorrect: #9e3d2f;
  --incorrect-soft: #f8e3d8;
  --shadow: 0 18px 48px rgba(44, 52, 18, 0.15);
}

* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(84, 102, 34, 0.18), transparent 34%),
    linear-gradient(315deg, rgba(184, 137, 38, 0.18), transparent 38%),
    var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-wrap: anywhere;
}

img,
svg {
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(184, 137, 38, 0.72);
  outline-offset: 3px;
}

h1,
h2,
h3,
p,
li,
a,
button,
span,
strong {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.shell {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 16px;
}

.workspace {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 4px;
}

.tool-nav {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.tool-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--green-dark);
  padding: 8px 14px;
  font-weight: 850;
  text-decoration: none;
}

.tool-nav a[aria-current="page"] {
  background: var(--green-dark);
  color: #fff;
}

.eyebrow,
.label {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.4rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.brand-title {
  flex: 1 1 auto;
  min-width: 0;
}

.brand-title img {
  display: block;
  width: min(100%, 760px);
  height: auto;
}

.domain-pill {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  padding: 10px 14px;
  color: var(--green-dark);
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(44, 52, 18, 0.08);
}

.assessment-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.9fr);
  gap: 20px;
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.panel,
.assessment-panel,
.results-panel,
.intro-panel,
.question-text,
.question-setup,
.question-stem,
.spoken-sentence,
.answer-option,
.screenshot-note,
.score-grid div,
.report-preview,
.report-preview-grid div,
.final-report,
.final-score-grid div,
.qa-dashboard,
.qa-summary-grid div,
.qa-table-grid section,
.qa-issues,
.privacy-note {
  min-width: 0;
  overflow-wrap: break-word;
}

.intro-panel {
  padding: clamp(28px, 4vw, 42px);
}

.intro-panel.is-collapsed {
  padding: 20px 24px;
}

.intro-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.intro-panel.is-collapsed .intro-header {
  margin-bottom: 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 30px;
  align-items: start;
}

.intro-grid.is-hidden {
  display: none;
}

.intro-copy h2 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(1.6rem, 3vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.intro-copy p {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  font-weight: 650;
  line-height: 1.55;
}

.simple-steps {
  display: grid;
  gap: 8px;
  margin: 24px 0 0;
  padding-left: 22px;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.45;
}

.language-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 22px;
}

.instruction-toggle {
  flex: 0 0 auto;
  min-height: 40px;
  border: 1px solid rgba(111, 127, 42, 0.38);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--green-dark);
  padding: 0 14px;
  font-weight: 850;
  cursor: pointer;
}

.instruction-toggle:hover,
.instruction-toggle:focus-visible {
  border-color: rgba(111, 127, 42, 0.75);
  background: #fff;
}

.language-control {
  display: grid;
  gap: 8px;
  color: var(--green-dark);
  font-weight: 800;
}

.language-select {
  min-height: 44px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  font-weight: 700;
}

.language-info {
  margin-top: 16px;
}

.language-info h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.25;
}

.language-info p,
.language-info ul {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.5;
}

.language-info ul {
  padding-left: 20px;
}

.language-info li + li {
  margin-top: 6px;
}

.assessment-panel {
  min-height: 630px;
  padding: clamp(16px, 3vw, 28px);
}

.results-panel {
  padding: 24px;
  position: sticky;
  top: 24px;
}

.progress-row {
  display: grid;
  grid-template-columns: auto minmax(160px, 1fr);
  gap: 20px;
  align-items: center;
}

.progress-count {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
}

.meter {
  height: 12px;
  border-radius: 999px;
  background: #dcdab8;
  overflow: hidden;
}

.meter span {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-dark), var(--gold));
  transition: width 180ms ease;
}

.question-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 12px;
}

.tag,
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 800;
}

.tag {
  background: var(--panel-soft);
  color: var(--green-dark);
}

.tag:nth-child(2) {
  color: var(--blue);
}

.tag:nth-child(3) {
  color: var(--gold);
}

.question-text {
  display: grid;
  gap: 12px;
  margin: 0 0 20px;
  max-width: 920px;
  line-height: 1.16;
  letter-spacing: 0;
}

.question-setup,
.question-stem {
  display: block;
  border-radius: 8px;
}

.question-setup {
  border: 1px solid rgba(89, 107, 45, 0.28);
  border-left: 4px solid var(--blue);
  background: rgba(89, 107, 45, 0.1);
  color: var(--green-dark);
  padding: 9px 12px;
  font-size: clamp(0.9rem, 1.05vw, 1rem);
  font-weight: 750;
  line-height: 1.45;
}

.question-stem {
  border: 2px solid rgba(111, 127, 42, 0.42);
  border-left: 8px solid var(--green);
  background: #f8f4dc;
  color: var(--ink);
  padding: 12px;
  box-shadow: 0 10px 22px rgba(44, 52, 18, 0.12);
}

.question-part-label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.question-instruction {
  display: block;
  color: var(--green-dark);
  font-size: clamp(0.98rem, 1.35vw, 1.18rem);
  font-weight: 850;
  line-height: 1.3;
}

.spoken-sentence {
  display: block;
  margin-top: 10px;
  border: 1px solid rgba(111, 127, 42, 0.32);
  border-radius: 8px;
  background: #fff;
  padding: 13px 16px;
  color: var(--ink);
  font-size: clamp(1.35rem, 3vw, 2.3rem);
  font-weight: 900;
  line-height: 1.16;
}

.spoken-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.answers {
  display: grid;
  gap: 8px;
}

.answer-option {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 14px;
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.answer-option:hover,
.answer-option:focus-within {
  border-color: rgba(111, 127, 42, 0.65);
  box-shadow: 0 8px 18px rgba(44, 52, 18, 0.1);
  transform: translateY(-1px);
}

.answer-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.answer-option span {
  min-width: 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.answer-option.correct {
  border-color: var(--correct);
  background: var(--correct-soft);
  color: #244716;
}

.answer-option.incorrect {
  border-color: var(--incorrect);
  background: var(--incorrect-soft);
  color: #602218;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.primary-action,
.ghost-action {
  min-height: 46px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 18px;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
}

.primary-action {
  background: var(--green);
  color: #fff;
}

.primary-action:disabled {
  cursor: default;
  opacity: 0.58;
}

.ghost-action {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.ghost-action:disabled {
  cursor: default;
  opacity: 0.58;
}

.feedback {
  min-height: 27px;
  margin: 18px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.feedback.good {
  color: var(--correct);
}

.feedback.needs-work {
  color: var(--incorrect);
}

.screenshot-note {
  margin: 14px 0 0;
  border: 1px solid rgba(111, 127, 42, 0.28);
  border-left: 6px solid var(--gold);
  border-radius: 8px;
  background: #fbf7df;
  color: var(--green-dark);
  padding: 12px 14px;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.4;
}

.result-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.result-header h2 {
  margin: 0;
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: 0;
}

.precision-text {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.confidence-box {
  display: grid;
  grid-template-columns: auto auto;
  gap: 2px 10px;
  align-items: end;
  margin-top: 12px;
  border: 1px solid rgba(111, 127, 42, 0.32);
  border-radius: 8px;
  background: #fffdf2;
  padding: 10px 12px;
}

.confidence-box span,
.confidence-box em {
  color: var(--muted);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

.confidence-box strong {
  grid-row: span 2;
  color: var(--green-dark);
  font-size: 1.55rem;
  line-height: 1;
}

.score-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0 22px;
}

.score-grid div {
  min-height: 88px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 14px;
}

.score-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.score-grid strong {
  font-size: 1.35rem;
  line-height: 1.1;
}

.report-preview {
  margin: -6px 0 18px;
  border: 1px dashed rgba(101, 105, 72, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  padding: 12px;
  box-shadow: none;
}

.report-preview[hidden] {
  display: none;
}

.report-preview.is-pending {
  opacity: 0.72;
  filter: grayscale(0.28);
}

.report-preview-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.report-preview-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.15;
}

.report-preview-header strong {
  flex: 0 0 auto;
  border: 1px solid rgba(101, 105, 72, 0.28);
  border-radius: 8px;
  background: rgba(238, 233, 209, 0.78);
  padding: 8px 10px;
  color: var(--green-dark);
  font-size: 1rem;
  line-height: 1;
}

.report-preview p:not(.label) {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.35;
}

.report-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.report-preview-grid div {
  border: 1px solid rgba(101, 105, 72, 0.22);
  border-radius: 8px;
  background: rgba(255, 253, 242, 0.82);
  padding: 8px;
}

.report-preview-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 850;
  line-height: 1.15;
  text-transform: uppercase;
}

.report-preview-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1;
}

.weaknesses h3 {
  margin: 0 0 12px;
  font-size: 1.08rem;
}

.weakness-group {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.weakness-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-weight: 800;
}

.weakness-heading strong {
  color: var(--rose);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 34px;
}

.chip {
  background: #e4e7c1;
  color: var(--green-dark);
}

.chip.empty {
  background: #eee9d1;
  color: var(--muted);
}

.bank-note {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  padding: 16px;
}

.bank-note strong {
  flex: 0 0 auto;
  font-size: 1.8rem;
  overflow-wrap: normal;
  white-space: nowrap;
  word-break: normal;
}

.bank-note span {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.35;
}

.final-report {
  padding: 22px;
}

.final-report[hidden] {
  display: none;
}

.final-report.is-pending {
  background: rgba(255, 255, 255, 0.64);
  border-color: rgba(101, 105, 72, 0.32);
  border-style: dashed;
  box-shadow: none;
}

.final-report.is-pending .final-report-header,
.final-report.is-pending .final-score-grid,
.final-report.is-pending .final-area-grid {
  opacity: 0.58;
  filter: grayscale(0.45);
}

.final-report.is-pending .final-confidence {
  border: 1px dashed rgba(101, 105, 72, 0.32);
  border-radius: 8px;
  background: rgba(238, 233, 209, 0.58);
  padding: 10px 12px;
  color: var(--muted);
}

.final-report.is-pending .copy-report-action {
  cursor: not-allowed;
  opacity: 0.55;
}

.final-report.is-pending .copy-status {
  color: var(--muted);
}

.final-report-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.final-report-header h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1.05;
}

.final-report-date,
.final-confidence {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.35;
}

.final-correct {
  min-width: 130px;
  border: 1px solid rgba(111, 127, 42, 0.35);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 12px;
  text-align: right;
}

.final-confidence-badge {
  min-width: 120px;
  border: 1px solid rgba(184, 137, 38, 0.38);
  border-radius: 8px;
  background: #fbf7df;
  padding: 12px;
  text-align: right;
}

.final-correct span,
.final-confidence-badge span,
.final-score-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.final-correct strong {
  color: var(--green-dark);
  font-size: 1.85rem;
  line-height: 1;
}

.final-confidence-badge strong {
  color: var(--gold);
  font-size: 1.85rem;
  line-height: 1;
}

.final-report-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.copy-report-action {
  min-height: 40px;
}

.copy-status {
  color: var(--green-dark);
  font-size: 0.92rem;
  font-weight: 800;
}

.final-score-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.final-score-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf2;
  padding: 12px;
}

.final-score-grid strong {
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1.1;
}

.final-area-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}

.final-area-grid section {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.final-area-grid h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.compact-chips {
  min-height: 30px;
}

.qa-dashboard {
  padding: 22px;
}

.qa-dashboard[hidden] {
  display: none;
}

.qa-dashboard-header h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
}

.qa-dashboard-header p:not(.label) {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 750;
}

.qa-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.qa-summary-grid,
.qa-table-grid {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.qa-summary-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.qa-table-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.qa-summary-grid div,
.qa-table-grid section,
.qa-issues {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf2;
  padding: 12px;
}

.qa-summary-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.2;
  text-transform: uppercase;
}

.qa-summary-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--green-dark);
  font-size: 1.35rem;
  line-height: 1;
}

.qa-dashboard h3 {
  margin: 0 0 10px;
  color: var(--green-dark);
  font-size: 1rem;
}

.qa-dashboard table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.qa-dashboard th,
.qa-dashboard td {
  border-top: 1px solid var(--line);
  padding: 6px 4px;
  text-align: left;
  vertical-align: top;
}

.qa-dashboard th {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.qa-issues {
  margin-top: 16px;
  overflow-x: auto;
}

.privacy-note {
  padding: 18px 20px;
}

.privacy-note h2 {
  margin: 0;
  color: var(--green-dark);
  font-size: 1rem;
}

.privacy-note p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.45;
}

@media (max-width: 880px) {
  .intro-grid,
  .assessment-grid {
    grid-template-columns: 1fr;
  }

  .results-panel {
    position: static;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .final-score-grid,
  .final-area-grid,
  .qa-summary-grid,
  .qa-table-grid {
    grid-template-columns: 1fr 1fr;
  }

  .brand-title img {
    width: min(100%, 640px);
  }

  .intro-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .shell {
    padding: 12px 10px;
  }

  .assessment-panel,
  .results-panel,
  .intro-panel {
    padding: 18px;
  }

  .progress-row,
  .score-grid {
    grid-template-columns: 1fr;
  }

  .final-report {
    padding: 12px;
  }

  .final-report-header {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-bottom: 10px;
  }

  .final-report-header > div:first-child {
    grid-column: 1 / -1;
  }

  .final-report-header h2 {
    font-size: 1.22rem;
  }

  .final-report-date,
  .final-confidence {
    font-size: 0.78rem;
    line-height: 1.25;
  }

  .final-correct,
  .final-confidence-badge {
    min-width: 78px;
    padding: 8px;
    width: 100%;
    text-align: left;
  }

  .final-correct span,
  .final-confidence-badge span,
  .final-score-grid span {
    font-size: 0.62rem;
  }

  .final-correct strong,
  .final-confidence-badge strong {
    font-size: 1.25rem;
  }

  .final-report-actions {
    margin-top: 8px;
  }

  .copy-report-action {
    min-height: 34px;
    padding: 0 12px;
  }

  .final-score-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 10px;
  }

  .final-score-grid div {
    padding: 8px;
  }

  .final-score-grid strong {
    font-size: 1rem;
  }

  .final-area-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 10px;
  }

  .final-area-grid section {
    padding-top: 8px;
  }

  .final-area-grid h3 {
    margin-bottom: 6px;
    font-size: 0.82rem;
  }

  .compact-chips {
    gap: 4px;
  }

  .compact-chips .chip {
    min-height: 22px;
    padding: 3px 6px;
    font-size: 0.68rem;
  }

  .qa-summary-grid,
  .qa-table-grid {
    grid-template-columns: 1fr;
  }

  .question-text {
    gap: 10px;
  }

  .question-setup {
    font-size: 0.82rem;
    padding: 8px 10px;
  }

  .question-stem {
    padding: 10px;
  }

  .question-instruction {
    font-size: 0.95rem;
  }

  .spoken-sentence {
    font-size: 1.12rem;
    padding: 11px;
  }

  .actions .primary-action,
  .actions .ghost-action {
    flex: 1 1 100%;
  }
}

@media print {
  body {
    background: #fff;
  }

  .topbar,
  .intro-panel,
  .assessment-grid,
  .qa-dashboard,
  .privacy-note,
  .final-report-actions,
  .screenshot-note {
    display: none !important;
  }

  .final-report[hidden] {
    display: block;
  }

  .final-report {
    border: 0;
    box-shadow: none;
    padding: 0;
  }
}
