:root,
[data-theme="light"] {
  --shell: 1420px;
  --gutter: 28px;
  --bg: #f4f5f7;
  --bg-rail: #e8eaee;
  --bg-panel: #ffffff;
  --bg-elev: #ffffff;
  --bg-soft: #f0f1f4;
  --line: rgba(20, 22, 26, 0.08);
  --line-strong: rgba(20, 22, 26, 0.16);
  --text: #14161a;
  --muted: rgba(20, 22, 26, 0.55);
  --accent: #F90000;
  --accent-hover: #D10000;
  --accent-ink: #ffffff;
  --ok: #2f9e6b;
  --bad: #d64545;
  --ok-soft: rgba(47, 158, 107, 0.12);
  --bad-soft: rgba(200, 16, 46, 0.08);
  --radius: 2px;
  --font: "Barlow", "Segoe UI", sans-serif;
  --display: "Barlow Condensed", "Barlow", sans-serif;
  --header-bg: #0a0a0b;
  --header-text: #f5f5f3;
  --header-muted: rgba(245, 245, 243, 0.55);
  --header-line: rgba(255, 255, 255, 0.1);
  --shadow-soft: 0 1px 2px rgba(20, 22, 26, 0.04);
}

[data-theme="dark"] {
  --bg: #0a0a0b;
  --bg-rail: #050505;
  --bg-panel: #111214;
  --bg-elev: #111214;
  --bg-soft: #16181c;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f5f5f3;
  --muted: rgba(245, 245, 243, 0.58);
  --ok-soft: rgba(47, 158, 107, 0.12);
  --bad-soft: rgba(214, 69, 69, 0.1);
  --header-bg: #0a0a0b;
  --header-text: #f5f5f3;
  --header-muted: rgba(245, 245, 243, 0.55);
  --header-line: rgba(255, 255, 255, 0.1);
  --shadow-soft: none;
}

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

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  font-weight: 400;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--bg-soft);
  padding: 0.1em 0.35em;
}

html { color-scheme: light; }
[data-theme="dark"] { color-scheme: dark; }

.eyebrow {
  margin: 0 0 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}

.display {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.02;
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  text-transform: uppercase;
}

.lede {
  margin: 0;
  color: var(--muted);
  max-width: 42rem;
  font-size: 1.05rem;
}

.muted { color: var(--muted); }

.brand-logo { height: auto; width: auto; }
.brand-logo--nav { height: 40px; width: auto; }
/* Force white PNG logo to solid black when needed on light surfaces */
.brand-logo--ink { filter: brightness(0); }

/* Shared content width — NOT the whole platform frame */
.content-wrap {
  width: min(var(--shell), calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

.platform-shell {
  width: 100%;
  margin: 0;
  background: var(--bg);
  min-height: 100vh;
  border: 0;
}

.platform-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 72px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--line);
}

.platform-top__brand {
  display: inline-flex;
  align-items: center;
}

.platform-top__aside {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.platform-top__meta {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.platform-top__sep {
  width: 1px;
  height: 14px;
  background: var(--line-strong);
}

/* ========== AUTH / LOGIN ========== */
.theme-auth {
  background: var(--bg-rail);
}

.auth-viewport {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 18px 0;
}

.platform-shell--auth {
  min-height: calc(100vh - 36px);
  display: flex;
  flex-direction: column;
  animation: shell-in 420ms ease-out both;
}

@keyframes shell-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-workspace {
  flex: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 0;
}

.auth-visual {
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: #000;
  min-height: 420px;
}

.auth-visual__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 45%;
  filter: grayscale(0.35) contrast(1.05);
  transform: scale(1.02);
}

.auth-visual__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10,10,11,0.15) 0%, rgba(10,10,11,0.55) 100%),
    linear-gradient(0deg, rgba(10,10,11,0.75) 0%, transparent 42%);
  pointer-events: none;
}

.auth-visual__caption {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 1.4rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245,245,243,0.72);
}

.auth-access {
  display: flex;
  align-items: center;
  padding: clamp(2rem, 5vw, 3.5rem) var(--gutter);
  background: var(--bg);
}

.access-gate {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.access-kicker {
  margin: 0 0 0.65rem;
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.access-title {
  margin: 0 0 0.7rem;
  font-family: var(--display);
  font-size: clamp(2.4rem, 4vw, 3.15rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.access-note {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 28ch;
}

.access-form { display: grid; gap: 1.75rem; }

.access-fields {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-strong);
}

.access-field {
  display: grid;
  grid-template-columns: 108px 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line-strong);
}

.access-field__label {
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.access-field input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0.35rem 0;
  outline: none;
  font-size: 1.05rem;
  font-weight: 500;
  border-radius: 0;
}

.access-field input:focus {
  color: var(--text);
}

.access-actions { display: flex; }

.access-submit {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 1rem 1.15rem;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease;
}

.access-submit:hover { background: var(--accent-hover); }
.access-submit__arrow { font-size: 1.2rem; line-height: 1; }

.access-demo {
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.access-demo summary {
  cursor: pointer;
  font-family: var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
}

.access-demo ul {
  margin: 0.65rem 0 0;
  padding-left: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.85rem 1.15rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--text); background: var(--bg-soft); }
.btn--block { width: 100%; }
.btn--sm { padding: 0.5rem 0.8rem; font-size: 0.88rem; }

.alert {
  margin: 0 0 1.25rem;
  padding: 0.8rem 0;
  border-top: 1px solid rgba(214,69,69,0.45);
  border-bottom: 1px solid rgba(214,69,69,0.45);
  font-size: 0.95rem;
  color: #c62828;
}
.alert--error { background: transparent; }

[data-theme="dark"] .alert { color: #ffb4b4; }

@media (max-width: 960px) {
  .auth-viewport { padding: 0; }
  .platform-shell--auth {
    width: 100%;
    min-height: 100vh;
    border: 0;
  }
  .auth-workspace { grid-template-columns: 1fr; }
  .auth-visual {
    min-height: 220px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .platform-top__meta:first-child { display: none; }
}

/* APP SHELL */
.theme-app {
  background: var(--bg);
}

.app-shell {
  width: 100%;
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  border: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: block;
  padding: 0;
  height: auto;
  border-bottom: 1px solid var(--header-line);
  background: var(--header-bg);
  color: var(--header-text);
}

.app-topbar-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar__brand { display: inline-flex; align-items: center; }
.topbar__meta { display: flex; align-items: center; gap: 0.75rem; }

.user-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}
.user-chip__name { font-weight: 600; font-size: 0.95rem; color: var(--header-text); }
.user-chip__role {
  font-size: 0.75rem;
  color: var(--header-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: var(--header-text);
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-toggle__sun { display: none; }
.theme-toggle__moon { display: block; }
[data-theme="dark"] .theme-toggle__sun { display: block; }
[data-theme="dark"] .theme-toggle__moon { display: none; }

.topbar .btn--ghost {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--header-text);
}
.topbar .btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.06);
}

.app-main {
  width: min(var(--shell), calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
  padding: clamp(1.5rem, 3vw, 2.5rem) 0 4rem;
}

.page-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.75rem;
}

.progress-ring {
  --p: 0;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    conic-gradient(var(--accent) calc(var(--p) * 1%), var(--line-strong) 0);
  position: relative;
  flex-shrink: 0;
}
.progress-ring::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--bg);
}
.progress-ring__value,
.progress-ring__label { position: relative; text-align: center; }
.progress-ring__value {
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
}
.progress-ring__label {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.75rem;
}
.stat-strip > div {
  background: var(--bg-elev);
  padding: 1.1rem 1.2rem;
}
.stat-strip__n {
  display: block;
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.stat-strip__l {
  color: var(--muted);
  font-size: 0.82rem;
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.path-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 210px;
  padding: 1.35rem 1.4rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-elev);
  box-shadow: var(--shadow-soft);
  transition: border-color .15s ease, transform .15s ease;
  text-align: left;
}
.path-tile:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.path-tile__step {
  font-family: var(--display);
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 1.1rem;
}
.path-tile h3 {
  font-family: var(--display);
  font-size: 1.45rem;
  margin: 0 0 0.55rem;
  letter-spacing: -0.02em;
}
.path-tile p {
  margin: 0;
  color: var(--muted);
  flex: 1;
}
.path-tile__cta {
  margin-top: 1.25rem;
  font-weight: 650;
}
.path-tile__btn {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
}
.path-tile--exam { border-color: rgba(200,16,46,0.35); }
.path-tile--exam:hover { border-color: rgba(200,16,46,0.7); }

/* SESSION / QUESTIONS */
.session-bar {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
}
.session-bar__mid { justify-self: end; text-align: right; }
.session-bar__mid strong { display: block; font-family: var(--display); }

.session-bar--drpciv {
  grid-template-columns: auto 1fr auto;
  align-items: center;
}
.session-bar--drpciv .session-bar__exit {
  justify-self: start;
}
.session-bar__center {
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
  min-width: 0;
}
.session-bar--drpciv .session-bar__mid {
  justify-self: center;
  text-align: center;
}
.session-bar--drpciv .session-bar__mid .eyebrow {
  display: block;
  margin-bottom: 0.1rem;
}

.exam-scores {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  justify-self: end;
  min-width: 7.5rem;
}
.exam-score {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.4rem;
  align-items: center;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}
.exam-score strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
}
.exam-score__ico {
  font-weight: 700;
  width: 1rem;
  text-align: center;
}
.exam-score--ok .exam-score__ico { color: #1f8a5a; }
.exam-score--bad .exam-score__ico { color: #d64545; }
.exam-score--ok {
  border-color: rgba(47, 158, 107, 0.35);
}
.exam-score--bad {
  border-color: rgba(200, 16, 46, 0.28);
}

.exam-timer {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 6.5rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
}
.exam-timer__label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.exam-timer__value {
  font-family: var(--font);
  font-size: clamp(1.45rem, 3.2vw, 1.85rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: 0.02em;
}
.exam-timer.is-warn .exam-timer__value { color: #b45309; }
.exam-timer.is-critical .exam-timer__value { color: var(--accent); }

@media (max-width: 720px) {
  .session-bar--drpciv {
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem 0.75rem;
  }
  .session-bar--drpciv .session-bar__exit {
    grid-column: 1;
  }
  .session-bar--drpciv .exam-scores {
    grid-column: 2;
    justify-self: end;
    min-width: 0;
  }
  .session-bar--drpciv .session-bar__center {
    grid-column: 1 / -1;
    order: -1;
  }
  .exam-score__lbl {
    display: none;
  }
}

.session-bar__track {
  grid-column: 1 / -1;
  height: 3px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
}
.session-bar__track > span {
  display: block;
  height: 100%;
  background: var(--accent);
}

.q-stage {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.q-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  position: sticky;
  top: 5.5rem;
}
.q-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--bg-soft);
}
.q-figure figcaption {
  padding: 0.55rem 0.85rem;
  font-size: 0.78rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}
.q-figure--recreated {
  box-shadow: inset 0 0 0 1px rgba(200,16,46,0.35);
}

.q-prompt {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0 0 0.75rem;
}
.q-hint { color: var(--muted); margin: 0 0 1.1rem; font-size: 0.92rem; }

.answers { display: grid; gap: 0.65rem; }

.answer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  text-align: left;
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.answer:hover { border-color: var(--line-strong); background: var(--bg-panel); }
.answer.is-selected {
  border-color: var(--text);
  background: var(--bg-panel);
  box-shadow: inset 3px 0 0 var(--accent);
}
.answer.is-correct {
  border-color: rgba(47,158,107,0.75);
  background: var(--ok-soft);
  box-shadow: none;
}
.answer.is-wrong {
  border-color: rgba(214,69,69,0.75);
  background: var(--bad-soft);
  box-shadow: none;
}
.answer__key {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.answer__text { padding-top: 0.15rem; }

.q-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.q-feedback {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}
.q-feedback__status {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
}
.q-feedback__status.is-ok { color: #1f8a5a; }
.q-feedback__status.is-bad { color: #d64545; }
.q-feedback__expl { margin: 0 0 1rem; color: var(--muted); }
[data-theme="dark"] .q-feedback__status.is-ok { color: #7de0b0; }
[data-theme="dark"] .q-feedback__status.is-bad { color: #ff9d9d; }

.result-stage {
  max-width: 36rem;
  padding: 2rem 0;
}
.result-stage--exam {
  max-width: 40rem;
}
.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
  padding: 0.45rem 0.75rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--line);
}
.result-badge--ok {
  color: #1f8a5a;
  border-color: rgba(47, 158, 107, 0.4);
  background: var(--ok-soft);
}
.result-badge--bad {
  color: #d64545;
  border-color: rgba(200, 16, 46, 0.4);
  background: var(--bad-soft);
}
[data-theme="dark"] .result-badge--ok { color: #7de0b0; }
[data-theme="dark"] .result-badge--bad { color: #ff9d9d; }
.result-title {
  margin: 0 0 0.65rem;
  font-family: var(--font);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
}
.result-meter {
  --p: 0;
  height: 8px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
  margin: 1.5rem 0 2rem;
}
.result-meter > span {
  display: block;
  height: 100%;
  width: calc(var(--p) * 1%);
  background: var(--accent);
}
.result-stage.is-pass .result-meter > span { background: var(--ok); }
.result-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.empty-state { padding: 3rem 0; }

.admin-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  padding: 1.25rem;
}
.admin-panel__head h2 {
  font-family: var(--display);
  margin: 0 0 0.35rem;
}
.table-wrap { overflow-x: auto; margin-top: 1rem; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.data-table th,
.data-table td {
  text-align: left;
  padding: 0.75rem 0.6rem;
  border-bottom: 1px solid var(--line);
}
.data-table th { color: var(--muted); font-weight: 560; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }

.cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}
.cat-chip {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 110px;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
}
.cat-chip span { color: var(--muted); font-size: 0.82rem; }

@media (max-width: 920px) {
  .auth-stage { grid-template-columns: 1fr; }
  .auth-brand { min-height: 42vh; border-right: 0; border-bottom: 1px solid var(--line); }
  .q-stage { grid-template-columns: 1fr; }
  .q-figure { position: static; }
  .path-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .page-hero { flex-direction: column; align-items: flex-start; }
}
