:root {
  --brand-blue: #0875c9;
  --brand-blue-dark: #075a9a;
  --brand-blue-soft: #eaf4fb;
  --brand-green: #49bd2c;
  --brand-green-dark: #2f8e1e;
  --brand-green-soft: #eef9ea;
  --ink: #142638;
  --ink-soft: #34485b;
  --muted: #697a89;
  --line: #dbe3e8;
  --line-strong: #c6d1d9;
  --page: #f5f8fa;
  --surface: #ffffff;
  --surface-alt: #f9fbfc;
  --amber: #b8690d;
  --amber-soft: #fff4df;
  --danger: #b4232f;
  --danger-soft: #fff0f1;
  --shadow: 0 14px 34px rgba(20, 38, 56, 0.09);
  --radius: 8px;
  --sidebar-width: 248px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  min-width: 320px;
  background: var(--page);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--page);
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.14;
  overflow-wrap: anywhere;
}

h1 {
  margin-bottom: 0;
  font-size: 30px;
  font-weight: 760;
}

h2 {
  margin-bottom: 0;
  font-size: 24px;
  font-weight: 740;
}

h3 {
  margin-bottom: 0;
  font-size: 16px;
  font-weight: 720;
}

.hidden {
  display: none !important;
}

.icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  display: block;
}

.overline {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
  line-height: 1.2;
  text-transform: uppercase;
}

.overline.light {
  color: #d6ebfb;
}

.muted-copy {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 26px;
  background: #ffffff;
}

.loading-screen img {
  width: 216px;
}

.loading-line {
  position: relative;
  width: 180px;
  height: 3px;
  overflow: hidden;
  background: #e4ebef;
}

.loading-line::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  background: var(--brand-green);
  animation: load 1.1s infinite ease-in-out;
}

@keyframes load {
  from { transform: translateX(-120%); }
  to { transform: translateX(300%); }
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 46%) minmax(420px, 54%);
  background: #ffffff;
}

.auth-brand-panel {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--brand-blue-dark);
  color: #ffffff;
}

.auth-brand-panel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  background: var(--brand-green);
}

.auth-brand-inner {
  width: min(520px, 100%);
  min-height: 100vh;
  margin-left: auto;
  padding: 48px 64px;
  display: flex;
  flex-direction: column;
}

.auth-logo {
  width: 220px;
  padding: 12px 16px;
  border-radius: 6px;
  background: #ffffff;
}

.auth-brand-copy {
  margin: auto 0;
}

.auth-brand-copy h1 {
  max-width: 450px;
  margin-bottom: 22px;
  color: #ffffff;
  font-size: 48px;
  font-weight: 770;
  line-height: 1.08;
}

.auth-brand-copy p {
  max-width: 430px;
  margin-bottom: 0;
  color: #d6ebfb;
  font-size: 16px;
  line-height: 1.7;
}

.auth-signal {
  height: 34px;
  display: flex;
  align-items: end;
  gap: 8px;
}

.auth-signal span {
  width: 5px;
  height: 12px;
  background: #ffffff;
}

.auth-signal span:nth-child(2) { height: 18px; background: #8fe477; }
.auth-signal span:nth-child(3) { height: 25px; background: var(--brand-green); }
.auth-signal span:nth-child(4) { height: 18px; background: #8fe477; }
.auth-signal span:nth-child(5) { height: 12px; }

.auth-workspace {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px;
  overflow-y: auto;
}

.auth-card {
  width: min(540px, 100%);
}

.auth-heading {
  margin-bottom: 24px;
}

.auth-heading h2 {
  margin-bottom: 8px;
  font-size: 32px;
}

.auth-heading p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.segmented-control {
  height: 44px;
  margin-bottom: 24px;
  padding: 3px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-alt);
}

.segment {
  border: 0;
  border-radius: 5px;
  color: var(--muted);
  background: transparent;
  font-weight: 700;
}

.segment.active {
  color: var(--brand-blue-dark);
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(20, 38, 56, 0.12);
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-recovery {
  width: fit-content;
  margin-top: -10px;
  justify-self: end;
}

.form-grid {
  display: grid;
  gap: 17px;
}

.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.span-two {
  grid-column: span 2;
}

.field {
  min-width: 0;
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 680;
}

.field > span,
.text-answer-field > span {
  line-height: 1.3;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  outline: 0;
  background: #ffffff;
  color: var(--ink);
  padding: 10px 12px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.5;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(8, 117, 201, 0.12);
}

input:disabled {
  color: var(--muted);
  background: #f2f5f7;
}

.form-error {
  min-height: 18px;
  color: var(--danger);
  font-size: 13px;
  font-weight: 680;
  line-height: 1.45;
}

.button {
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  font-weight: 740;
  line-height: 1.2;
}

.button.primary {
  color: #ffffff;
  border-color: var(--brand-blue);
  background: var(--brand-blue);
}

.button.primary:hover {
  border-color: var(--brand-blue-dark);
  background: var(--brand-blue-dark);
}

.button.secondary {
  color: var(--ink-soft);
  border-color: var(--line-strong);
  background: #ffffff;
}

.button.secondary:hover {
  color: var(--brand-blue-dark);
  border-color: #9fc6e1;
  background: var(--brand-blue-soft);
}

.button.danger-button,
.danger-button {
  color: #ffffff;
  border-color: var(--danger);
  background: var(--danger);
}

.button.wide {
  width: 100%;
}

.button.compact {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 12px;
}

.button-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.secondary .button-spinner {
  border-color: rgba(8, 117, 201, 0.2);
  border-top-color: var(--brand-blue);
}

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

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: var(--sidebar-width);
  padding: 24px 16px 18px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: #ffffff;
}

.brand-lockup {
  min-height: 74px;
  padding: 4px 8px 20px;
  display: grid;
  gap: 9px;
  border-bottom: 1px solid var(--line);
}

.brand-lockup img {
  width: 158px;
}

.workspace-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
}

.main-nav {
  margin-top: 22px;
  display: grid;
  gap: 5px;
}

.nav-item {
  width: 100%;
  min-height: 43px;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  text-align: left;
  font-size: 13px;
  font-weight: 690;
}

.nav-item:hover {
  color: var(--ink);
  background: var(--surface-alt);
}

.nav-item.active {
  color: var(--brand-blue-dark);
  border-color: #c9e1f1;
  background: var(--brand-blue-soft);
}

.nav-item.active .icon {
  color: var(--brand-blue);
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 15px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line);
}

.signed-in-user {
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.signed-in-user strong,
.signed-in-user span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signed-in-user strong {
  font-size: 12px;
}

.signed-in-user div > span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.avatar {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #c3dfef;
  border-radius: 50%;
  color: var(--brand-blue-dark);
  background: var(--brand-blue-soft);
  font-size: 12px;
  font-weight: 780;
}

.avatar.small {
  width: 30px;
  height: 30px;
  font-size: 10px;
}

.avatar.large {
  width: 68px;
  height: 68px;
  font-size: 18px;
}

.icon-button {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: #ffffff;
}

.icon-button:hover {
  color: var(--brand-blue-dark);
  border-color: #acd0e8;
  background: var(--brand-blue-soft);
}

.icon-button.danger:hover {
  color: var(--danger);
  border-color: #efb9be;
  background: var(--danger-soft);
}

.workspace {
  min-width: 0;
  grid-column: 2;
  padding: 0 34px 48px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 94px;
  margin: 0 -34px 28px;
  padding: 20px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 248, 250, 0.95);
  backdrop-filter: blur(12px);
}

.page-heading {
  min-width: 0;
}

.page-heading h1 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.system-status {
  min-height: 32px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #cce6c4;
  border-radius: 999px;
  color: var(--brand-green-dark);
  background: var(--brand-green-soft);
  font-size: 11px;
  font-weight: 740;
  white-space: nowrap;
}

.system-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-green);
}

.profile-button {
  min-height: 38px;
  padding: 3px 7px 3px 4px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink-soft);
  background: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.profile-button .icon {
  width: 15px;
  height: 15px;
}

.mobile-only {
  display: none;
}

.page-content {
  width: min(1420px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.page-actions {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.page-actions > div:last-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

.welcome-band {
  min-height: 170px;
  padding: 30px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-left: 5px solid var(--brand-green);
  background: var(--brand-blue-dark);
  color: #ffffff;
}

.welcome-band h2 {
  max-width: 720px;
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 28px;
}

.welcome-band p {
  margin-bottom: 0;
  color: #d9edf9;
  font-size: 14px;
}

.welcome-band .overline {
  color: #9bcce9;
}

.welcome-band .button.primary {
  color: var(--ink);
  border-color: var(--brand-green);
  background: var(--brand-green);
}

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

.metric-card {
  min-width: 0;
  min-height: 142px;
  padding: 18px;
  display: grid;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.metric-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: var(--brand-blue);
  background: var(--brand-blue-soft);
}

.metric-icon .icon {
  width: 17px;
  height: 17px;
}

.metric-card > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
  text-transform: uppercase;
}

.metric-card > strong {
  margin: 7px 0 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 24px;
}

.metric-card > small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-section,
.form-section {
  min-width: 0;
  padding: 24px 0 4px;
  border-top: 1px solid var(--line);
}

.content-section.compact {
  padding-bottom: 20px;
}

.content-section.flush {
  padding-top: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #ffffff;
}

.section-heading {
  min-height: 46px;
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.section-heading h2 {
  font-size: 20px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.status-badge {
  min-height: 28px;
  padding: 5px 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #ffffff;
  font-size: 10px;
  font-weight: 760;
  line-height: 1.2;
  text-transform: capitalize;
  white-space: nowrap;
}

.status-badge.green {
  color: var(--brand-green-dark);
  border-color: #c7e5be;
  background: var(--brand-green-soft);
}

.status-badge.blue {
  color: var(--brand-blue-dark);
  border-color: #c4dfef;
  background: var(--brand-blue-soft);
}

.status-badge.amber {
  color: var(--amber);
  border-color: #f0d19d;
  background: var(--amber-soft);
}

.status-badge.red {
  color: var(--danger);
  border-color: #efc1c5;
  background: var(--danger-soft);
}

.blueprint-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: #ffffff;
}

.blueprint-item {
  min-height: 90px;
  padding: 17px;
  display: flex;
  align-items: center;
  gap: 13px;
  border-right: 1px solid var(--line);
}

.blueprint-item:last-child {
  border-right: 0;
}

.blueprint-index {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--brand-blue-dark);
  background: var(--brand-blue-soft);
  font-size: 10px;
  font-weight: 780;
}

.blueprint-item strong,
.blueprint-item div > span {
  display: block;
}

.blueprint-item strong {
  margin-bottom: 3px;
  font-size: 21px;
}

.blueprint-item div > span {
  color: var(--muted);
  font-size: 11px;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
}

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

.data-table th,
.data-table td {
  padding: 14px 15px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  text-align: left;
  vertical-align: middle;
  font-size: 12px;
}

.data-table th {
  height: 42px;
  color: var(--muted);
  background: var(--surface-alt);
  font-size: 10px;
  font-weight: 760;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover td {
  background: #fbfdfe;
}

.data-table td > strong,
.cell-note {
  display: block;
}

.cell-note {
  max-width: 290px;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clamp-two {
  display: -webkit-box;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.person-cell {
  min-width: 190px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.person-cell strong,
.person-cell span {
  display: block;
}

.person-cell div > span {
  max-width: 220px;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.candidate-record-heading {
  padding: 16px 0 20px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}

.candidate-record-heading strong,
.candidate-record-heading span {
  display: block;
}

.candidate-record-heading > div:nth-child(2) > span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.candidate-detail-grid {
  margin: 0;
  padding: 20px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.candidate-detail-grid div {
  min-width: 0;
}

.candidate-detail-grid dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
  text-transform: uppercase;
}

.candidate-detail-grid dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-weight: 700;
}

.modal-section {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.text-button {
  min-height: 34px;
  padding: 4px 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  color: var(--brand-blue-dark);
  background: transparent;
  font-size: 12px;
  font-weight: 740;
}

.text-button .icon {
  width: 16px;
  height: 16px;
}

.assessment-launch {
  min-height: 440px;
  padding: 54px 24px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  border-top: 4px solid var(--brand-blue);
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.launch-mark,
.empty-state > span {
  width: 58px;
  height: 58px;
  margin-bottom: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--brand-blue);
  background: var(--brand-blue-soft);
}

.launch-mark .icon,
.empty-state > span .icon {
  width: 27px;
  height: 27px;
}

.assessment-launch h2 {
  max-width: 660px;
  margin-bottom: 14px;
  font-size: 30px;
}

.assessment-launch p {
  max-width: 640px;
  margin-bottom: 24px;
  color: var(--muted);
  line-height: 1.65;
}

.exam-toolbar {
  min-height: 66px;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(200px, 1.5fr) 110px;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.exam-toolbar strong {
  display: block;
  font-size: 13px;
}

progress {
  width: 100%;
  height: 7px;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: #e7edf1;
  appearance: none;
}

progress::-webkit-progress-bar { background: #e7edf1; }
progress::-webkit-progress-value { background: var(--brand-green); }
progress::-moz-progress-bar { background: var(--brand-green); }

.exam-clock {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-left: 1px solid var(--line);
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  font-weight: 770;
}

.exam-clock.urgent {
  color: var(--danger);
}

.exam-layout {
  min-height: 590px;
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-top: 0;
  background: #ffffff;
}

.question-rail {
  padding: 18px;
  border-right: 1px solid var(--line);
  background: var(--surface-alt);
}

.rail-heading {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.question-map {
  display: grid;
  grid-template-columns: repeat(5, 34px);
  gap: 7px;
}

.question-number {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--muted);
  background: #ffffff;
  font-size: 11px;
  font-weight: 730;
}

.question-number.answered {
  color: var(--brand-green-dark);
  border-color: #b9ddae;
  background: var(--brand-green-soft);
}

.question-number.active {
  color: #ffffff;
  border-color: var(--brand-blue);
  background: var(--brand-blue);
}

.rail-legend {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
}

.rail-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.rail-legend i {
  width: 8px;
  height: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: #ffffff;
}

.rail-legend .answered-dot {
  border-color: #b9ddae;
  background: var(--brand-green-soft);
}

.question-stage {
  min-width: 0;
  padding: 28px 34px 24px;
  display: flex;
  flex-direction: column;
}

.question-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.section-name {
  color: var(--brand-blue-dark);
  font-size: 12px;
  font-weight: 720;
}

.question-copy {
  max-width: 860px;
  margin: 42px 0 28px;
}

.question-copy > span {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
}

.question-copy h2 {
  font-size: 23px;
  line-height: 1.45;
}

.answer-options {
  max-width: 880px;
  display: grid;
  gap: 10px;
}

.answer-option {
  min-height: 58px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink-soft);
  background: #ffffff;
  font-size: 13px;
  font-weight: 570;
  line-height: 1.45;
  cursor: pointer;
}

.answer-option:hover {
  border-color: #9fc9e4;
  background: #fbfdff;
}

.answer-option.selected {
  border-color: var(--brand-blue);
  background: var(--brand-blue-soft);
}

.answer-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-letter {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  background: #ffffff;
  font-size: 11px;
  font-weight: 760;
}

.answer-option.selected .option-letter {
  color: #ffffff;
  border-color: var(--brand-blue);
  background: var(--brand-blue);
}

.text-answer-field {
  max-width: 880px;
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 690;
}

.text-answer-field textarea {
  min-height: 190px;
}

.text-answer-field small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 560;
  text-align: right;
}

.exam-actions {
  min-height: 58px;
  margin-top: auto;
  padding-top: 28px;
  display: grid;
  grid-template-columns: 150px 1fr 180px;
  align-items: center;
  gap: 12px;
}

.autosave-state {
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.result-band {
  min-height: 190px;
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  border-left: 5px solid var(--brand-green);
  background: #ffffff;
}

.result-band.review {
  border-left-color: var(--amber);
}

.result-score {
  width: 126px;
  height: 126px;
  display: grid;
  place-content: center;
  border: 8px solid var(--brand-green-soft);
  border-top-color: var(--brand-green);
  border-radius: 50%;
  text-align: center;
}

.result-band.review .result-score {
  border-color: var(--amber-soft);
  border-top-color: var(--amber);
}

.result-score span {
  font-size: 34px;
  font-weight: 780;
}

.result-score small {
  color: var(--muted);
  font-size: 10px;
}

.result-band h2 {
  margin-bottom: 8px;
  font-size: 30px;
}

.result-band p {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.section-score {
  min-height: 96px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.section-score > div {
  min-height: 54px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.section-score span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.section-score strong {
  font-size: 17px;
}

.review-list {
  display: grid;
}

.review-row {
  min-width: 0;
  padding: 18px 0;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  border-top: 1px solid var(--line);
}

.review-score {
  width: 52px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  color: var(--muted);
  background: #eef2f4;
  font-size: 10px;
  font-weight: 770;
}

.review-score.green { color: var(--brand-green-dark); background: var(--brand-green-soft); }
.review-score.amber { color: var(--amber); background: var(--amber-soft); }
.review-score.red { color: var(--danger); background: var(--danger-soft); }

.review-row h3 {
  margin-bottom: 8px;
  line-height: 1.45;
}

.review-row p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.profile-header-band {
  min-height: 118px;
  padding: 22px 26px;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border-left: 5px solid var(--brand-blue);
  background: #ffffff;
}

.profile-header-band h2 {
  margin-bottom: 6px;
}

.profile-header-band p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.form-section form {
  max-width: 900px;
}

.form-actions {
  min-height: 52px;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--line);
}

.ai-status-band {
  min-height: 132px;
  padding: 22px 26px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 250px;
  align-items: center;
  gap: 20px;
  border-left: 5px solid var(--brand-green);
  background: var(--ink);
  color: #ffffff;
}

.ai-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--brand-green);
  background: #21384d;
}

.ai-mark .icon {
  width: 25px;
  height: 25px;
}

.ai-status-band h2 {
  margin-bottom: 6px;
  color: #ffffff;
  font-size: 20px;
}

.ai-status-band p {
  margin-bottom: 0;
  color: #b9c8d4;
  font-size: 12px;
}

.ai-status-band .overline {
  color: #8fa4b4;
}

.ai-usage {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 10px;
  align-items: baseline;
}

.ai-usage span {
  color: var(--brand-green);
  font-size: 20px;
  font-weight: 780;
  text-align: right;
}

.ai-usage small {
  color: #b9c8d4;
  font-size: 10px;
}

.table-toolbar {
  min-height: 80px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.table-toolbar h2 {
  font-size: 18px;
}

.search-field {
  width: min(360px, 100%);
  height: 40px;
  padding: 0 10px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--muted);
  background: #ffffff;
}

.search-field .icon {
  width: 17px;
  height: 17px;
}

.search-field input {
  min-height: 36px;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.builder-layout {
  min-height: 670px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  border: 1px solid var(--line);
  background: #ffffff;
}

.template-list {
  padding: 16px 10px;
  border-right: 1px solid var(--line);
  background: var(--surface-alt);
}

.template-list-heading {
  min-height: 48px;
  padding: 0 6px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--line);
}

.template-list-heading strong {
  font-size: 18px;
}

.template-list-item {
  position: relative;
  width: 100%;
  min-height: 70px;
  margin-top: 8px;
  padding: 11px 13px;
  display: grid;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--ink-soft);
  background: transparent;
  text-align: left;
}

.template-list-item > span {
  padding-right: 12px;
  font-size: 12px;
  font-weight: 710;
  line-height: 1.35;
}

.template-list-item small {
  color: var(--muted);
  font-size: 9px;
  text-transform: capitalize;
}

.template-list-item:hover,
.template-list-item.active {
  border-color: #c9dfec;
  background: #ffffff;
}

.active-indicator {
  position: absolute;
  top: 13px;
  right: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-green);
}

.builder-workspace {
  min-width: 0;
  padding: 24px 28px;
}

.builder-form {
  display: grid;
  gap: 24px;
}

.builder-block {
  padding-top: 22px;
  display: grid;
  gap: 16px;
  border-top: 1px solid var(--line);
}

.builder-block-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.builder-block-heading h3 {
  font-size: 17px;
}

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

.section-mix-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

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

.mix-item {
  min-height: 112px;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-alt);
}

.mix-item > span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 710;
}

.mix-item input {
  text-align: center;
}

.mix-item small {
  grid-column: span 2;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.settings-list {
  display: grid;
  gap: 10px;
}

.toggle-row {
  min-height: 64px;
  padding: 11px 13px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.toggle-row strong,
.toggle-row span {
  display: block;
}

.toggle-row strong {
  color: var(--ink-soft);
  font-size: 12px;
}

.toggle-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.toggle-row input {
  position: absolute;
  opacity: 0;
}

.toggle-row i {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #cbd5db;
  transition: background 140ms ease;
}

.toggle-row i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(20, 38, 56, 0.24);
  transition: transform 140ms ease;
}

.toggle-row input:checked + i {
  background: var(--brand-green);
}

.toggle-row input:checked + i::after {
  transform: translateX(18px);
}

.suffix-input {
  position: relative;
}

.suffix-input input {
  padding-right: 34px;
}

.suffix-input span {
  position: absolute;
  top: 50%;
  right: 12px;
  color: var(--muted);
  transform: translateY(-50%);
}

.rule-form {
  display: grid;
  gap: 22px;
}

.rule-scope {
  padding-top: 20px;
  display: grid;
  gap: 18px;
  border-top: 1px solid var(--line);
}

.scope-columns {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 14px;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 740;
  text-transform: uppercase;
}

.checkbox-grid {
  max-height: 210px;
  overflow-y: auto;
  display: grid;
  gap: 5px;
}

.checkbox-item {
  min-height: 32px;
  padding: 5px 6px;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  border-radius: 4px;
  color: var(--ink-soft);
  font-size: 10px;
}

.checkbox-item:hover {
  background: var(--surface-alt);
}

.checkbox-item input {
  width: 15px;
  height: 15px;
  min-height: 15px;
  padding: 0;
  accent-color: var(--brand-blue);
}

.option-editor {
  display: grid;
  gap: 8px;
}

.option-editor label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.option-editor label > input[type="radio"] {
  width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
  accent-color: var(--brand-blue);
}

.empty-state {
  min-height: 230px;
  padding: 38px 20px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

.empty-state h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.empty-state p {
  max-width: 520px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.empty-inline {
  padding: 22px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.page-loading {
  min-height: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.page-loading span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-blue);
  animation: pulse 900ms infinite alternate;
}

.page-loading span:nth-child(2) { animation-delay: 180ms; background: var(--brand-green); }
.page-loading span:nth-child(3) { animation-delay: 360ms; }

@keyframes pulse {
  from { opacity: 0.3; transform: translateY(2px); }
  to { opacity: 1; transform: translateY(-3px); }
}

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: 32px;
  display: grid;
  place-items: center;
  overflow-y: auto;
  background: rgba(10, 24, 37, 0.62);
}

.modal-surface {
  width: min(680px, 100%);
  max-height: calc(100vh - 64px);
  padding: 24px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.modal-root.small .modal-surface { width: min(480px, 100%); }
.modal-root.large .modal-surface { width: min(1020px, 100%); }

.modal-header {
  min-height: 54px;
  margin-bottom: 22px;
  padding-bottom: 17px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.modal-header h2 {
  font-size: 22px;
}

.modal-header p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.modal-actions {
  padding-top: 16px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--line);
}

.submission-summary {
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}

.submission-summary div {
  min-height: 88px;
  display: grid;
  place-content: center;
  text-align: center;
  border-right: 1px solid var(--line);
}

.submission-summary div:last-child {
  border-right: 0;
}

.submission-summary strong,
.submission-summary span {
  display: block;
}

.submission-summary strong {
  font-size: 24px;
}

.submission-summary span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.detail-score-row {
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
}

.score-panel {
  min-height: 112px;
  display: grid;
  place-content: center;
  border-left: 4px solid var(--brand-blue);
  background: var(--brand-blue-soft);
  text-align: center;
}

.score-panel strong,
.score-panel span {
  display: block;
}

.score-panel strong {
  font-size: 30px;
}

.score-panel span {
  margin-top: 4px;
  color: var(--brand-blue-dark);
  font-size: 10px;
}

.detail-score-row p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.answer-review {
  margin: 12px 0 8px;
  display: grid;
  gap: 6px;
}

.answer-review div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
}

.answer-review dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.answer-review dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.45;
}

.temporary-secret {
  margin: 18px 0;
  padding: 16px;
  display: grid;
  gap: 7px;
  border: 1px solid #b9ddae;
  border-left: 4px solid var(--brand-green);
  background: var(--brand-green-soft);
}

.temporary-secret span {
  color: var(--brand-green-dark);
  font-size: 10px;
  font-weight: 740;
  text-transform: uppercase;
}

.temporary-secret strong {
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 18px;
}

.toast-region {
  position: fixed;
  z-index: 200;
  right: 20px;
  bottom: 20px;
  width: min(360px, calc(100vw - 40px));
  display: grid;
  gap: 8px;
}

.toast {
  min-height: 48px;
  padding: 11px 13px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-blue);
  border-radius: 6px;
  color: var(--ink-soft);
  background: #ffffff;
  box-shadow: var(--shadow);
  font-size: 12px;
}

.toast.success { border-left-color: var(--brand-green); }
.toast.error { border-left-color: var(--danger); }

@media (max-width: 1180px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-score-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ai-status-band { grid-template-columns: 54px minmax(0, 1fr); }
  .ai-usage { grid-column: 2; max-width: 260px; }
  .exam-layout { grid-template-columns: 210px minmax(0, 1fr); }
  .question-map { grid-template-columns: repeat(4, 34px); }
  .mix-grid { grid-template-columns: 1fr; }
}

@media (max-width: 920px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand-panel { min-height: 280px; }
  .auth-brand-inner { width: 100%; min-height: 280px; padding: 30px 34px; }
  .auth-brand-copy { margin: auto 0 0; }
  .auth-brand-copy h1 { margin-bottom: 8px; font-size: 32px; }
  .auth-brand-copy p { font-size: 13px; }
  .auth-signal { display: none; }
  .auth-workspace { min-height: auto; padding: 38px 28px; }

  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    transform: translateX(-105%);
    box-shadow: 14px 0 28px rgba(20, 38, 56, 0.16);
    transition: transform 180ms ease;
  }
  .nav-open .sidebar { transform: translateX(0); }
  .workspace { grid-column: 1; padding: 0 22px 42px; }
  .topbar { margin: 0 -22px 24px; padding: 16px 22px; }
  .mobile-only { display: inline-grid; }
  .topbar { justify-content: flex-start; }
  .topbar-actions { margin-left: auto; }
  .system-status { display: none; }
  .blueprint-grid { grid-template-columns: repeat(2, 1fr); }
  .blueprint-item:nth-child(2) { border-right: 0; }
  .blueprint-item:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .exam-layout { grid-template-columns: 1fr; }
  .question-rail { border-right: 0; border-bottom: 1px solid var(--line); }
  .question-map { grid-template-columns: repeat(10, 34px); overflow-x: auto; }
  .rail-legend { display: none; }
  .result-band { grid-template-columns: 130px minmax(0, 1fr); }
  .result-band > .status-badge { grid-column: 2; justify-self: start; }
  .builder-layout { grid-template-columns: 1fr; }
  .template-list { border-right: 0; border-bottom: 1px solid var(--line); }
  .scope-columns { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  h1 { font-size: 24px; }
  h2 { font-size: 21px; }
  .auth-brand-panel { min-height: 240px; }
  .auth-brand-inner { min-height: 240px; padding: 24px; }
  .auth-logo { width: 180px; }
  .auth-brand-copy h1 { font-size: 27px; }
  .auth-brand-copy p { display: none; }
  .auth-workspace { padding: 30px 18px; }
  .auth-heading h2 { font-size: 26px; }
  .form-grid.two { grid-template-columns: 1fr; }
  .span-two { grid-column: span 1; }
  .workspace { padding: 0 14px 34px; }
  .topbar { min-height: 78px; margin: 0 -14px 18px; padding: 12px 14px; }
  .page-heading .overline { display: none; }
  .profile-button > span:not(.avatar) { display: none; }
  .profile-button { width: 38px; padding: 3px; justify-content: center; }
  .welcome-band { min-height: 240px; padding: 24px; flex-direction: column; align-items: stretch; }
  .welcome-band h2 { font-size: 24px; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .metric-card { min-height: 128px; padding: 14px; }
  .metric-card > strong { font-size: 20px; }
  .section-heading,
  .page-actions,
  .table-toolbar { flex-direction: column; align-items: stretch; }
  .page-actions > div:last-child { width: 100%; }
  .page-actions > div:last-child .button { flex: 1; }
  .blueprint-grid { grid-template-columns: 1fr; }
  .blueprint-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .blueprint-item:last-child { border-bottom: 0; }
  .assessment-launch { min-height: 400px; }
  .assessment-launch h2 { font-size: 24px; }
  .exam-toolbar { grid-template-columns: minmax(0, 1fr) 92px; gap: 10px; }
  .exam-toolbar > progress { grid-column: span 2; grid-row: 2; }
  .exam-clock { grid-column: 2; grid-row: 1; }
  .question-map { grid-template-columns: repeat(8, 34px); }
  .question-stage { padding: 22px 18px; }
  .question-meta { flex-direction: column; }
  .badge-row { justify-content: flex-start; }
  .question-copy { margin: 28px 0 22px; }
  .question-copy h2 { font-size: 19px; }
  .exam-actions { grid-template-columns: 1fr 1fr; }
  .autosave-state { display: none; }
  .exam-actions .button { width: 100%; }
  .result-band { padding: 24px 18px; grid-template-columns: 1fr; text-align: center; }
  .result-score { margin: 0 auto; }
  .result-band > .status-badge { grid-column: 1; justify-self: center; }
  .section-score-grid { grid-template-columns: 1fr 1fr; }
  .profile-header-band { grid-template-columns: 58px minmax(0, 1fr); padding: 18px; }
  .profile-header-band .avatar.large { width: 58px; height: 58px; }
  .profile-header-band > .status-badge { grid-column: 2; justify-self: start; }
  .ai-status-band { grid-template-columns: 44px minmax(0, 1fr); padding: 18px; }
  .ai-mark { width: 44px; height: 44px; }
  .ai-usage { grid-column: span 2; }
  .builder-workspace { padding: 20px 16px; }
  .mix-item { grid-template-columns: minmax(0, 1fr) 62px; }
  .modal-root { padding: 10px; }
  .modal-surface { max-height: calc(100vh - 20px); padding: 18px; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .button { width: 100%; }
  .submission-summary strong { font-size: 20px; }
  .detail-score-row { grid-template-columns: 1fr; }
  .candidate-record-heading { grid-template-columns: auto minmax(0, 1fr); }
  .candidate-record-heading > .badge-row { grid-column: 2; }
  .candidate-detail-grid { grid-template-columns: 1fr 1fr; }
  .score-panel { min-height: 92px; }
}

@media (max-width: 420px) {
  .metric-grid { grid-template-columns: 1fr; }
  .question-map { grid-template-columns: repeat(7, 34px); }
  .section-score-grid { grid-template-columns: 1fr; }
  .answer-review div { grid-template-columns: 1fr; gap: 3px; }
  .candidate-detail-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
