:root {
  --page: #f6f7f9;
  --panel: #ffffff;
  --ink: #1d2733;
  --muted: #697586;
  --line: #dde3ea;
  --soft-line: #edf1f5;
  --blue: #2563eb;
  --blue-soft: #eff6ff;
  --green: #15803d;
  --red: #b42318;
}

html {
  font-size: 16px;
}

body {
  background: var(--page);
  color: var(--ink);
  margin: 0;
}

.app-header {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.app-nav {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 64px;
}

.brand {
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 18px;
}

.nav-links a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

.logout-form {
  margin: 0;
}

.logout-form button {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-weight: 600;
  padding: 0;
}

.auth-panel {
  margin-inline: auto;
  max-width: 520px;
}

.app-main {
  padding-block: 32px;
}

.page-header {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 28px;
}

.eyebrow {
  color: var(--blue);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

h1, h2 {
  font-weight: 750;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0;
}

h2 {
  font-size: 1.2rem;
  margin-bottom: 18px;
}

.lead {
  color: var(--muted);
  max-width: 680px;
}

.candidate-line {
  color: var(--muted);
  font-weight: 700;
  margin: 10px 0 0;
}

.stats-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 24px;
}

.attempt-overview {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 24px;
}

.attempt-status-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(20, 30, 40, .04);
  display: grid;
  gap: 6px;
  padding: 18px;
}

.attempt-status-panel.passed {
  border-left-color: var(--green);
}

.attempt-status-panel.open {
  border-left-color: var(--red);
}

.attempt-status-panel span,
.attempt-status-panel small {
  color: var(--muted);
}

.attempt-status-panel strong {
  font-size: 1.35rem;
}

.stat-panel,
.main-panel,
.side-panel,
.quiz-shell {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(20, 30, 40, .04);
}

.stat-panel {
  display: grid;
  gap: 4px;
  padding: 20px;
}

.stat-panel span,
.muted {
  color: var(--muted);
}

.stat-panel strong {
  font-size: 2.2rem;
}

.stat-panel small {
  color: var(--muted);
}

.workspace {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
}

.main-panel,
.side-panel {
  margin-bottom: 18px;
  padding: 22px;
}

.generator-form,
.question-form,
.import-form {
  display: grid;
  gap: 14px;
}

.options-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  color: var(--ink);
  display: grid;
  font-weight: 650;
  gap: 6px;
}

.toggle-row {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: row;
  gap: 10px;
  padding: 12px 14px;
}

.toggle-row input {
  height: 18px;
  width: 18px;
}

.category-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.category-list li {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding-bottom: 10px;
}

.quiz-shell {
  overflow: hidden;
  padding: 0;
  position: relative;
  z-index: 1;
}

.quiz-layout {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 300px;
  position: relative;
}

.candidate-watermark {
  bottom: 0;
  display: grid;
  gap: 42px;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  left: 0;
  opacity: .115;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  user-select: none;
  z-index: 3;
}

.candidate-watermark span {
  align-self: center;
  color: #0f172a;
  font-size: .9rem;
  font-weight: 850;
  justify-self: center;
  line-height: 1.2;
  max-width: 280px;
  text-align: center;
  transform: rotate(-24deg);
}

[data-secure-quiz] {
  -webkit-touch-callout: none;
  user-select: none;
}

[data-secure-quiz] input,
[data-secure-quiz] textarea {
  user-select: text;
}

.quiz-sidebar {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(20, 30, 40, .04);
  padding: 18px;
  position: sticky;
  top: 18px;
  z-index: 1;
}

.quiz-sidebar h2 {
  font-size: 1rem;
  line-height: 1.35;
  margin-bottom: 16px;
}

.quiz-sidebar h3 {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 850;
  margin: 16px 0 10px;
  text-transform: uppercase;
}

.quiz-meta-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.quiz-meta-list div {
  border-bottom: 1px solid var(--soft-line);
  padding-bottom: 9px;
}

.quiz-meta-list dt {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.quiz-meta-list dd {
  font-weight: 750;
  margin: 0;
}

[data-question-countdown].is-low {
  color: var(--red);
}

.question-status-grid {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.question-jump {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: inline-flex;
  font-weight: 800;
  height: 36px;
  justify-content: center;
  width: 100%;
}

.question-jump:hover {
  border-color: #b9c7d9;
  box-shadow: 0 6px 14px rgba(20, 30, 40, .08);
}

span.question-jump {
  cursor: default;
}

.question-jump:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.question-jump.answered {
  background: #dcfce7;
  border-color: rgba(21, 128, 61, .35);
  color: var(--green);
}

.question-jump.current {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.quiz-topbar {
  align-items: center;
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px;
}

.quiz-step {
  color: var(--muted);
  display: inline-block;
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.progress-track {
  background: #e8edf4;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
  width: min(360px, 52vw);
}

.progress-track div {
  background: var(--blue);
  border-radius: inherit;
  height: 100%;
}

.quiz-badges {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.type-badge,
.category-badge {
  border-radius: 999px;
  display: inline-flex;
  font-size: .84rem;
  font-weight: 750;
  padding: 7px 11px;
  white-space: nowrap;
}

.type-badge {
  background: var(--blue-soft);
  color: #1d4ed8;
}

.category-badge {
  background: #f1f5f9;
  color: #334155;
}

.quiz-question {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.2;
  padding: 28px 26px 0;
}

.answer-form {
  display: grid;
  gap: 14px;
  margin-top: 0;
  padding: 24px 26px 28px;
}

.choice-card,
.order-row {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: row;
  gap: 12px;
  min-height: 58px;
  padding: 14px 16px;
}

.choice-card {
  background: #fff;
  cursor: pointer;
  position: relative;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease, transform .15s ease;
}

.choice-card:hover {
  border-color: #b9c7d9;
  transform: translateY(-1px);
}

.choice-card input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.choice-mark {
  align-items: center;
  border: 2px solid #94a3b8;
  display: inline-flex;
  flex: 0 0 auto;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.single-choice-card .choice-mark {
  border-radius: 999px;
}

.multi-choice-card .choice-mark {
  border-radius: 6px;
}

.choice-text {
  font-weight: 650;
  line-height: 1.35;
}

.choice-card:has(input:checked) {
  background: var(--blue-soft);
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue), 0 10px 20px rgba(37, 99, 235, .08);
}

.choice-card:has(input:checked) .choice-mark {
  background: var(--blue);
  border-color: var(--blue);
}

.single-choice-card:has(input:checked) .choice-mark::after {
  background: #fff;
  border-radius: 999px;
  content: "";
  height: 8px;
  width: 8px;
}

.multi-choice-card:has(input:checked) .choice-mark::after {
  color: #fff;
  content: "✓";
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.helper-text {
  background: #f8fafc;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  color: var(--muted);
  margin: 0;
  padding: 10px 12px;
}

.free-text-answer {
  min-height: 190px;
  resize: vertical;
}

.quiz-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
}

.match-row {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(180px, .4fr);
  padding: 12px 14px;
}

.ordering-board {
  display: grid;
  gap: 10px;
}

.order-chip {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: grab;
  display: flex;
  gap: 12px;
  min-height: 58px;
  padding: 12px 14px;
  transition: border-color .15s ease, box-shadow .15s ease, opacity .15s ease, transform .15s ease;
}

.order-chip:hover {
  border-color: #b9c7d9;
  box-shadow: 0 8px 18px rgba(20, 30, 40, .08);
  transform: translateY(-1px);
}

.order-chip.is-dragging {
  cursor: grabbing;
  opacity: .55;
}

.order-position {
  align-items: center;
  background: var(--blue-soft);
  border-radius: 999px;
  color: #1d4ed8;
  display: inline-flex;
  flex: 0 0 auto;
  font-weight: 800;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.relevance-board {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.answer-pool,
.drop-zone {
  align-content: start;
  background: #fff;
  border: 1px dashed #b9c7d9;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 154px;
  min-width: 0;
  padding: 14px;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.answer-pool,
.drop-zone {
  grid-column: 1 / -1;
}

.answer-pool.is-over,
.drop-zone.is-over {
  background: var(--blue-soft);
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
}

.drop-title {
  color: var(--muted);
  flex: 0 0 100%;
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.drag-chip {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: grab;
  flex: 1 1 220px;
  font-weight: 650;
  line-height: 1.35;
  max-width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  text-align: left;
  transition: border-color .15s ease, box-shadow .15s ease, opacity .15s ease, transform .15s ease;
}

.drag-chip:focus,
.drag-chip:hover {
  border-color: #b9c7d9;
  box-shadow: 0 8px 18px rgba(20, 30, 40, .08);
  outline: none;
  transform: translateY(-1px);
}

.drag-chip.is-dragging {
  cursor: grabbing;
  opacity: .55;
}

.drop-warning {
  color: var(--red);
  font-weight: 700;
  grid-column: 1 / -1;
  min-height: 24px;
}

.payroll-table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-x: auto;
}

.payroll-table {
  background: #fff;
  border-collapse: collapse;
  min-width: 780px;
  width: 100%;
}

.payroll-table th,
.payroll-table td {
  border: 1px solid var(--soft-line);
  padding: 8px;
  vertical-align: middle;
}

.payroll-table thead th {
  background: #f8fafc;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.payroll-table tbody th {
  font-weight: 750;
  min-width: 210px;
  text-align: left;
}

.payroll-input {
  background: #fff;
  border: 1px solid transparent;
  border-radius: 6px;
  min-height: 36px;
  padding: 6px 8px;
  width: 100%;
}

.payroll-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
  outline: none;
}

.payroll-section-row th,
.payroll-section-row td,
.payroll-total-row th,
.payroll-total-row td {
  background: #f8fafc;
}

.payroll-total-row th,
.payroll-final-row th {
  font-weight: 850;
}

.payroll-final-row th,
.payroll-final-row td {
  background: #eff6ff;
}

.result-hero {
  align-items: stretch;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .36fr);
  margin-bottom: 18px;
}

.result-hero > div {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(20, 30, 40, .04);
  padding: 24px;
}

.result-score-card {
  display: grid;
  gap: 10px;
}

.result-score-card span {
  color: var(--muted);
  font-weight: 750;
}

.result-score-card strong {
  font-size: 2.4rem;
  line-height: 1;
}

.result-progress {
  width: 100%;
}

.result-meta-row {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.result-summary-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 24px;
}

.review-list {
  display: grid;
  gap: 14px;
}

.attempt-history-panel {
  margin-top: 18px;
}

.attempt-history-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.attempt-history-list a {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 4px;
  grid-template-columns: minmax(150px, .35fr) minmax(0, 1fr) minmax(100px, .25fr);
  padding: 12px 14px;
  text-decoration: none;
}

.attempt-history-list a:hover {
  border-color: #b9c7d9;
  box-shadow: 0 8px 18px rgba(20, 30, 40, .08);
}

.attempt-history-list span,
.attempt-history-list small {
  color: var(--muted);
}

.admin-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  border-collapse: collapse;
  width: 100%;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--soft-line);
  padding: 12px 10px;
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-table td {
  color: var(--ink);
}

.admin-report-list {
  display: grid;
  gap: 18px;
}

.admin-attempt-card {
  display: grid;
  gap: 18px;
}

.admin-stat-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.admin-stat-row > div {
  background: #f8fafc;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.admin-stat-row span,
.admin-stat-row small {
  color: var(--muted);
}

.admin-stat-row strong {
  font-size: 1.25rem;
}

.admin-question-list {
  display: grid;
  gap: 8px;
}

.admin-audit-row {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  color: #9a3412;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 10px 12px;
}

.admin-filter-row {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0;
}

.admin-filter-row label {
  min-width: 220px;
}

.admin-mini-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.admin-inline-form {
  align-items: center;
  display: flex;
  gap: 8px;
}

.category-edit-row {
  align-items: flex-start !important;
  border-bottom: 0 !important;
  flex-direction: column;
  gap: 8px;
}

.admin-breakdown-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-breakdown-grid > div {
  background: #f8fafc;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  padding: 12px;
}

.admin-breakdown-grid h3 {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 850;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.admin-breakdown-grid p {
  align-items: center;
  border-bottom: 1px solid var(--soft-line);
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 7px 0;
}

.admin-question-row {
  align-items: start;
  border: 1px solid var(--soft-line);
  border-left: 5px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 42px minmax(0, 1fr) 86px;
  padding: 12px;
}

.admin-question-row.correct {
  border-left-color: var(--green);
}

.admin-question-row.wrong {
  border-left-color: var(--red);
}

.admin-question-row > span {
  align-items: center;
  background: #f1f5f9;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 850;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.admin-question-row p {
  margin: 4px 0;
}

.admin-question-row small {
  color: var(--muted);
}

.admin-question-row em {
  color: var(--muted);
  font-style: normal;
  font-weight: 850;
  justify-self: end;
}

.template-section-grid {
  display: grid;
  gap: 10px;
}

.template-section-row {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) 140px;
}

.timing-panel {
  display: grid;
  gap: 16px;
}

.timing-stat-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.timing-stat-card {
  background: #f8fafc;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 14px;
}

.timing-stat-card span,
.timing-stat-card small {
  color: var(--muted);
}

.timing-stat-card strong {
  font-size: 1.5rem;
}

.review-list-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.review-list-header h2 {
  margin: 0;
}

.review-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 5px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(20, 30, 40, .04);
  display: grid;
  gap: 14px;
  padding: 18px;
}

.review-card.correct {
  border-left-color: var(--green);
}

.review-card.wrong {
  border-left-color: var(--red);
}

.review-card-header {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.review-card-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.review-card-header > div {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.review-number {
  align-items: center;
  background: #f1f5f9;
  border-radius: 999px;
  color: #334155;
  display: inline-flex;
  font-weight: 850;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.review-card h3 {
  font-size: 1.12rem;
  line-height: 1.35;
  margin: 0;
}

.result-pill {
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 850;
  padding: 7px 11px;
  white-space: nowrap;
}

.result-pill.is-correct {
  background: #dcfce7;
  color: var(--green);
}

.result-pill.is-wrong {
  background: #fee2e2;
  color: var(--red);
}

.mark-button {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: .84rem;
  font-weight: 850;
  padding: 7px 11px;
  white-space: nowrap;
}

.mark-button:hover {
  border-color: #b9c7d9;
  box-shadow: 0 6px 14px rgba(20, 30, 40, .08);
}

.mark-button.is-marked {
  background: #fff7ed;
  border-color: #fdba74;
  color: #9a3412;
}

.answer-comparison {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.answer-comparison > div {
  background: #f8fafc;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  padding: 14px;
}

.answer-comparison h4 {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 850;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.answer-comparison ol,
.answer-comparison ul {
  display: grid;
  gap: 8px;
  margin-bottom: 0;
  padding-left: 20px;
}

.answer-comparison p {
  margin: 0;
}

.explanation-note {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  color: #9a3412;
  margin: 0;
  padding: 12px 14px;
}

.review-item {
  border-left: 4px solid var(--line);
  padding: 14px 16px;
}

.review-item h2 {
  font-size: 1rem;
}

.review-item.correct {
  border-left-color: var(--green);
}

.review-item.wrong {
  border-left-color: var(--red);
}

.option-review-list {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 12px 0;
  padding: 0;
}

.option-review-item {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 10px 12px;
}

.option-review-item.is-correct-option {
  border-color: rgba(21, 128, 61, .35);
}

.option-review-item.is-selected-option {
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .35);
}

.option-review-tags {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.answer-tag {
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  padding: 4px 8px;
}

.selected-tag {
  background: var(--blue-soft);
  color: #1d4ed8;
}

.correct-tag {
  background: #dcfce7;
  color: var(--green);
}

@media (max-width: 760px) {
  .page-header,
  .app-nav,
  .quiz-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .quiz-badges {
    justify-content: flex-start;
  }

  .progress-track {
    width: calc(100vw - 84px);
  }

  .stats-grid,
  .attempt-overview,
  .quiz-layout,
  .workspace,
  .options-grid,
  .relevance-board,
  .result-hero,
  .result-summary-grid,
  .answer-comparison {
    grid-template-columns: 1fr;
  }

  .review-list-header,
  .review-card-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .option-review-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .attempt-history-list a {
    grid-template-columns: 1fr;
  }

  .admin-stat-row,
  .admin-question-row {
    grid-template-columns: 1fr;
  }

  .template-section-row {
    grid-template-columns: 1fr;
  }

  .admin-question-row em {
    justify-self: start;
  }

  .quiz-sidebar {
    position: static;
  }
}
