/* ==============================================================
   Student assessment form
   Separate from admin.css on purpose: the admin and the student
   form never appear on the same page, and the two have different
   densities, widths and colour needs.
   ============================================================== */

:root {
  --ink: #16202c;
  --ink-soft: #5b6b7c;
  --ink-faint: #8a99a8;
  --line: #dde4ec;
  --line-soft: #eef2f7;
  --surface: #ffffff;
  --canvas: #f4f6fa;
  --brand: #1f5eff;
  --brand-dark: #1646c4;
  --brand-wash: #eef3ff;
  --ok: #1a7f5a;
  --warn: #b4530a;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(22, 32, 44, 0.06), 0 8px 24px rgba(22, 32, 44, 0.06);

  /* Admin palette */
  --ta-brand-500: #465fff;
  --ta-brand-600: #3641f5;
  --ta-brand-700: #2a31d8;
  --ta-gray-25: #fcfcfd;
  --ta-gray-50: #f9fafb;
  --ta-gray-100: #f2f4f7;
  --ta-gray-200: #e4e7ec;
  --ta-gray-300: #d0d5dd;
  --ta-gray-400: #98a2b3;
  --ta-gray-500: #667085;
  --ta-gray-600: #475467;
  --ta-gray-700: #344054;
  --ta-gray-800: #1d2939;
  --ta-gray-900: #101828;
  --ta-success-50: #ecfdf3;
  --ta-success-500: #12b76a;
  --ta-success-700: #027a48;
  --ta-error-50: #fef3f2;
  --ta-error-500: #f04438;
  --ta-error-700: #b42318;
  --ta-radius-card: 16px;
  --ta-shadow-raised: 0 4px 20px rgba(16, 24, 40, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

/* ------------------------------ Masthead ---------------------- */

.masthead {
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
  color: #fff;
  padding: 20px 20px 28px;
  box-shadow: var(--ta-shadow-raised);
}
.text-decoration-none {
  text-decoration: none !important;
}

.masthead-inner {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.masthead-main {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.masthead-brand {
  flex: 1;
  text-align: left;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.masthead-title {
  margin-top: 8px;
  font-size: clamp(20px, 4vw, 27px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.masthead-meta {
  margin-top: 6px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
}

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

.masthead-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.15);
}

/* ------------------------------ Layout ------------------------ */

.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 26px 20px 60px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 18px 20px 30px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-faint);
}

/* ------------------------------ Progress ---------------------- */

.progress {
  margin-bottom: 8px;
}

.progress-track {
  display: flex;
  gap: 4px;
}

.progress-seg {
  flex: 1 1 0;
  height: 5px;
  border-radius: 3px;
  background: var(--line);
  transition: background 0.2s ease;
}

.progress-seg.is-done {
  background: var(--brand);
}

.progress-seg.is-current {
  background: var(--brand);
  opacity: 0.45;
}

.progress-caption {
  margin-bottom: 14px;
  font-size: 12.5px;
  color: var(--ink-soft);
  text-align: right;
}

/* ------------------------------ Card -------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--ta-radius-card);
  box-shadow: var(--ta-shadow-raised);
  padding: 26px;
}

.card[hidden] {
  display: none;
}

.card-head {
  margin-bottom: 18px;
}

.card-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.card-lede {
  margin-top: 7px;
  color: var(--ta-gray-500);
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.account-grid .field {
  margin-bottom: 16px;
  font-size: 14.5px;
}

.step-kicker {
  margin-bottom: 5px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--brand);
}

/* ------------------------------ Scale legend ------------------ */

.scale-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
  padding: 13px 14px;
  background: var(--line-soft);
  border-radius: var(--radius-sm);
}

.scale-chip {
  padding: 4px 9px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}

.scale-5 {
  color: #14663f;
  border-color: #b7e2cc;
  background: #eefaf3;
}

.scale-4 {
  color: #1c5c86;
  border-color: #b6d9ef;
  background: #eef7fd;
}

.scale-3 {
  color: #6a5310;
  border-color: #e6d79a;
  background: #fdf9ec;
}

.scale-2 {
  color: var(--warn);
  border-color: #f2cfa4;
  background: #fef5ec;
}

.scale-1 {
  color: #a32020;
  border-color: #f0bcbc;
  background: #fdefef;
}

.scale-na {
  color: var(--ink-soft);
}

/* ------------------------------ Fields ------------------------ */

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

.field {
  min-width: 0;
}

.label {
  display: block;
  margin-bottom: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ta-gray-700);
}

.input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--ta-gray-300);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ta-gray-900);
  font-family: inherit;
  font-size: 14.5px;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.input:focus {
  outline: 0;
  border-color: var(--ta-brand-500);
  box-shadow: 0 0 0 3px rgba(70, 95, 255, 0.1);
}

.input.is-fixed {
  background: var(--line-soft);
  color: var(--ink-soft);
}

.input.is-invalid {
  border-color: #d94a4a;
}

.error {
  min-height: 15px;
  margin-top: 4px;
  font-size: 12px;
  color: #c02626;
}

.error:empty {
  margin-top: 0;
}

/* ------------------------------ Combobox ---------------------- */

.combo {
  position: relative;
}

.combo-list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 232px;
  overflow-y: auto;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.combo-list[hidden] {
  display: none;
}

.combo-option {
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 14.5px;
  cursor: pointer;
}

.combo-option:hover,
.combo-option.is-active {
  background: var(--brand-wash);
}

.combo-option mark {
  background: #fff2a8;
  color: inherit;
  font-weight: 600;
}

.combo-empty {
  padding: 9px 10px;
  font-size: 13px;
  color: var(--ink-faint);
}

/* ------------------------------ Questions --------------------- */

.questions {
  margin: 0;
  padding: 0;
  list-style: none;
}

.question {
  padding: 15px 0;
  border-top: 1px solid var(--line-soft);
}

.question:first-child {
  border-top: 0;
  padding-top: 2px;
}

.question-text {
  display: flex;
  gap: 9px;
  margin-bottom: 10px;
  font-size: 14.5px;
}

.question-number {
  flex: 0 0 auto;
  min-width: 21px;
  height: 21px;
  border-radius: 5px;
  background: var(--brand-wash);
  color: var(--brand);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 21px;
  text-align: center;
}

/* ------------------------------ Rating pills ------------------ */

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-left: 30px;
}

.pill {
  position: relative;
  display: inline-flex;
}

.pill-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.pill-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  transition:
    background 0.12s ease,
    border-color 0.12s ease,
    color 0.12s ease;
}

.pill:hover .pill-text {
  border-color: #b9c6d6;
  color: var(--ink);
}

.pill-input:focus-visible + .pill-text {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

.pill-input:checked + .pill-text {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* ------------------------------ Actions ----------------------- */

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}
.notic_mgs {
  margin-bottom: 20px !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.12s ease,
    border-color 0.12s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--brand-dark);
}

.btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink-soft);
  text-decoration: none !important;
}

.btn-ghost:hover {
  border-color: #b9c6d6;
  color: var(--ink);
}

/* Ghost buttons sitting on the coloured masthead need a light treatment. */
.masthead .btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
}

.masthead .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.26);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.btn:disabled {
  background: #e6eaf0;
  color: var(--ink-faint);
  cursor: not-allowed;
}

.spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.arrow {
  font-size: 17px;
  line-height: 1;
}

.actions-hint {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--ink-faint);
}

/* ------------------------------ Thank you --------------------- */

.done-head {
  text-align: center;
}

.done-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: #e7f6ef;
  color: var(--ok);
  font-size: 24px;
  font-weight: 700;
}

.notice {
  margin-bottom: 20px;
  padding: 12px 14px;
  background: #fff8e6;
  border: 1px solid #f0dca6;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: #6a5310;
}

.summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  margin: 0 0 24px;
  padding: 16px 18px;
  background: var(--line-soft);
  border-radius: var(--radius-sm);
}

.summary dt {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.summary dd {
  margin: 2px 0 0;
  font-size: 14.5px;
  font-weight: 600;
  word-break: break-word;
}

.summary-heading {
  margin-bottom: 10px;
  font-size: 15px;
}

.answer-block {
  margin-bottom: 16px;
}

.answer-block-title {
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
}

.answer-line {
  display: flex;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13.5px;
}

.answer-num {
  flex: 0 0 auto;
  min-width: 20px;
  color: var(--ink-faint);
  font-weight: 600;
}

.answer-text {
  flex: 1 1 auto;
  color: var(--ink-soft);
}

.answer-value {
  flex: 0 0 auto;
  font-weight: 600;
  color: var(--ink);
}

/* ------------------------------ Narrow ------------------------ */

@media (max-width: 720px) {
  .grid,
  .summary,
  .account-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .card {
    padding: 20px 17px;
  }

  .masthead {
    padding: 18px 16px 24px;
  }

  .masthead-main {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .masthead-title {
    font-size: 22px;
  }

  .masthead-actions {
    justify-content: flex-start;
  }

  .masthead-info {
    width: 100%;
  }

  .stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .submission-head {
    flex-direction: column;
    gap: 10px;
  }

  .pills {
    padding-left: 0;
  }

  .actions-hint {
    display: none;
  }
}

/* ---------------------- Identity and verdicts ------------------ */

/*
   The code badge in the masthead. Present only when the browser already
   holds a code, so a first-time visitor sees a clean masthead.
*/

.masthead-code {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 14px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
}

.masthead-code-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.masthead-code-value {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
}

/*
   The no-JavaScript flash. The JSON path renders into [data-verdict]
   instead, so both routes end up looking the same.
*/

.flash {
  max-width: 760px;
  margin: 20px auto 0;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.flash-success {
  background: #eaf7f1;
  border-color: #b7e0cd;
  color: #10553a;
}

.flash-error {
  background: #fdecec;
  border-color: #f3c3c3;
  color: #8a1c1c;
}

/* The optional code field is visually quieter than the required set. */

.field-optional {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
}

.field-optional .label {
  color: var(--ink-soft);
}

.hint {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--ta-gray-500);
}

.notice-info {
  background: var(--brand-wash);
  border-color: #c6d7ff;
  color: #1c3f96;
}

.notice-success {
  background: #eaf7f1;
  border-color: #b7e0cd;
  color: #10553a;
}

.notice-error {
  background: #fdecec;
  border-color: #f3c3c3;
  color: #8a1c1c;
}

.masthead-code-hint {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.82);
}

/* ---------------------------- Sign in and register ------------ */

.auth-body {
  min-height: 100vh;
  background: var(--ta-gray-100);
}

.auth-shell,
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 20px;
  background: var(--ta-gray-100);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  margin: 0;
  padding: 40px;
  border: 1px solid var(--ta-gray-200);
  border-radius: var(--ta-radius-card);
  background: var(--ta-gray-25);
  box-shadow: var(--ta-shadow-raised);
}

.text-center {
  text-align: center;
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
  text-align: center;
}

.auth-card > .text-center {
  margin-bottom: 24px;
}

.brand-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--ta-gray-900);
}

.brand-text em {
  font-style: normal;
  color: var(--ta-brand-500);
}

.auth-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ta-gray-900);
  text-align: center;
}

.auth-subtitle {
  margin: 8px 0 28px;
  font-size: 14px;
  color: var(--ta-gray-500);
  text-align: center;
}

.auth-form .field {
  margin-bottom: 18px;
}

.auth-form .hint {
  margin-top: 7px;
}

.auth-forgot {
  margin: -6px 0 18px;
  text-align: right;
  font-size: 13.5px;
}

.auth-forgot a,
.auth-text-button {
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ta-brand-500);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.auth-forgot a:hover,
.auth-text-button:hover {
  color: var(--ta-brand-600);
}

.auth-inline-form {
  margin: 12px 0 0;
  text-align: center;
}

.auth-foot {
  margin: 20px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--ta-gray-200);
  font-size: 13.5px;
  color: var(--ta-gray-500);
  text-align: center;
}

.auth-foot a {
  font-weight: 600;
  color: var(--ta-brand-500);
  text-decoration: none;
}

.auth-foot a:hover {
  color: var(--ta-brand-600);
}

.btn-block {
  width: 100%;
}

.btn-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  background: var(--ta-brand-500);
  color: #fff;
  transition: background 0.12s ease;
}

.btn-brand:hover:not(:disabled) {
  background: var(--ta-brand-600);
}

.btn-brand:focus-visible {
  outline: 2px solid var(--ta-brand-500);
  outline-offset: 2px;
}

.ta-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.ta-alert-success {
  background: var(--ta-success-50);
  border-color: #b7e0cd;
  color: var(--ta-success-700);
}

.ta-alert-error {
  background: var(--ta-error-50);
  border-color: #f3c3c3;
  color: var(--ta-error-700);
}

/* -------------------------- Submissions list ------------------- */

.actions-top {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.text-muted {
  font-weight: 400;
  color: var(--ink-soft);
}

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

.stat {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ta-gray-400);
}

.stat-value {
  display: block;
  margin-top: 6px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ta-gray-900);
  font-variant-numeric: tabular-nums;
}

.stat-value small {
  font-size: 15px;
  font-weight: 600;
  color: var(--ta-gray-400);
}

.stat.is-brand .stat-value {
  color: var(--ta-brand-500);
}

.submission {
  margin-bottom: 18px;
}

.submission-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.submission-head-main {
  min-width: 0;
}

.submission-head .card-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.submission-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--brand-wash);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.submission-meta {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--ta-gray-500);
}

.submission-head .chip {
  flex: 0 0 auto;
}

.answers-title {
  margin: 20px 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ta-gray-400);
}

.answers-accordion {
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--ta-gray-25);
}

.answers-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  list-style: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--ta-gray-700);
  user-select: none;
}

.answers-toggle::-webkit-details-marker {
  display: none;
}

.answers-toggle::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--ta-gray-400);
  border-bottom: 2px solid var(--ta-gray-400);
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
}

.answers-accordion[open] .answers-toggle::before {
  transform: rotate(45deg);
}

.answers-toggle:hover {
  color: var(--ta-gray-900);
}

.answers-toggle:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
  border-radius: var(--radius-sm);
}

.answers-count {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--brand-wash);
  color: var(--brand);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.answers-accordion .answer-block {
  margin: 0;
  padding: 4px 14px 10px;
  border-top: 1px solid var(--line-soft);
}

.submission .notice {
  margin-bottom: 12px;
}

.empty {
  text-align: center;
  padding: 44px 24px;
}

.actions-center {
  justify-content: center;
}

.empty-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--brand-wash);
  color: var(--brand);
  font-size: 24px;
  font-weight: 700;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
}

.chip-success {
  background: var(--ta-success-50);
  border-color: #b7e0cd;
  color: var(--ta-success-700);
}

.chip-warning {
  background: #fff8e6;
  border-color: #f0dca6;
  color: #6a5310;
}

.chip-error {
  background: var(--ta-error-50);
  border-color: #f3c3c3;
  color: var(--ta-error-700);
}

/* ==============================================================
   Capture guard. Scoped to the assessment page (body.no-capture).
   Browser print and "Save as PDF" use the print media, so the
   form never reaches paper even when the print dialog is opened
   from the browser menu. The shield is the on-screen blank that
   assessment.js shows when a capture shortcut is pressed or the
   window is no longer the one in front.
   ============================================================== */

body.no-capture {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

body.no-capture input,
body.no-capture select,
body.no-capture textarea {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

.print-block {
  display: none;
}

@media print {
  body.no-capture * {
    display: none !important;
  }

  body.no-capture .print-block {
    display: block !important;
    margin: 40vh 24px 0;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #16202c;
  }
}

.capture-shield {
  display: none;
}

body.no-capture.capture-blocked > :not(.capture-shield) {
  visibility: hidden !important;
}

body.no-capture.capture-blocked .capture-shield {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 100000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--canvas);
  color: var(--ink);
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}
