/* ----- MTM IQ Assessment — Dark Theme ----- */
:root {
  --bg: #000000;
  --bg-elev-1: #0a0a0a;
  --bg-elev-2: #121212;
  --bg-elev-3: #181818;
  --bg-input: #1c1c1c;
  --bg-locked: #141414;
  --border-soft: #242424;
  --border: #363636;
  --border-strong: #5f5f5f;
  --text-primary: #ffffff;
  --text-secondary: #d3d3d3;
  --text-tertiary: #a9a9a9;
  --text-muted: #666666;
  --text-faint: #444444;

  /* Monochrome accent — bright off-white for emphasis */
  --accent: #ffffff;
  --accent-soft: rgba(255, 255, 255, 0.08);
  --accent-mid: rgba(255, 255, 255, 0.5);
  --accent-glow: rgba(255, 255, 255, 0.06);
  --warn: #f5b942;
  --danger: #f56c5e;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;

  --font-display: "Sora", "GothamSSm", system-ui, -apple-system, sans-serif;
  --font-body: "Manrope", "Open Sauce One", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }

/* ====== Subtle ambient backdrop ====== */
.ambient {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 600px at 12% 8%, rgba(255, 255, 255, 0.04), transparent 60%),
    radial-gradient(700px 500px at 92% 100%, rgba(255, 255, 255, 0.025), transparent 60%);
}

.app-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ====== Brand mark ====== */
.brand-logo {
  height: 40px;
  width: auto;
  display: block;
  /* logo file is white; keep as-is on dark bg */
}
.brand-logo.sm { height: 28px; }
.brand-logo.xs { height: 52px; }

.brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand-row .brand-sub {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  text-transform: uppercase;
  border-left: 1px solid var(--border);
  padding-left: 16px;
  font-weight: 500;
}

/* ====== Top bar (assessment) ====== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border-soft);
}
.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}

.progress-block {
  display: flex;
  align-items: center;
  gap: 16px;
}
.progress-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  font-weight: 700;
  font-family: var(--font-display);
}
.progress-track {
  flex: 1;
  height: 6px;
  background: #1f1f1f;
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #d3d3d3 0%, #ffffff 100%);
  border-radius: 99px;
  transition: width 600ms cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}
.progress-count {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  min-width: 64px;
  text-align: right;
}

.timer {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 99px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 14px;
  transition: background 200ms, border-color 200ms, color 200ms;
}
.timer .timer-dot {
  width: 7px; height: 7px;
  border-radius: 99px;
  background: var(--text-tertiary);
  animation: pulse 1.6s ease-in-out infinite;
}
.timer.warning {
  background: rgba(245, 185, 66, 0.08);
  border-color: rgba(245, 185, 66, 0.45);
  color: var(--warn);
}
.timer.warning .timer-dot { background: var(--warn); }
.timer.critical {
  background: rgba(245, 108, 94, 0.14);
  border-color: rgba(245, 108, 94, 0.7);
  color: #ffd6d2;
  animation: shudder 0.6s ease-in-out infinite;
}
.timer.critical .timer-dot { background: var(--danger); }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
@keyframes shudder {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-1px); }
  75% { transform: translateX(1px); }
}

/* ====== Welcome screen ====== */
.welcome-page {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.welcome-header {
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-soft);
}
.welcome-header .meta {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.welcome-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  padding: 0;
}

.welcome-left {
  padding: 72px 64px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  position: relative;
}
.welcome-eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.28em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 14px;
}
.welcome-eyebrow::before {
  content: "";
  width: 32px; height: 1px;
  background: var(--text-secondary);
}
.welcome-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 64px;
  line-height: 0.96;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--text-primary);
  text-wrap: balance;
}
.welcome-title .accent {
  color: var(--text-tertiary);
  font-weight: 800;
  font-style: normal;
  position: relative;
  display: inline-block;
  padding: 0 4px;
}
.welcome-title .accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  height: 4px;
  background: var(--text-primary);
}
.welcome-lede {
  font-size: 18px;
  color: var(--text-tertiary);
  max-width: 540px;
  line-height: 1.55;
  text-wrap: pretty;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  max-width: 540px;
}
.rule {
  background: var(--bg);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rule-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}
.rule-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.rule-hint {
  font-size: 12px;
  color: var(--text-tertiary);
}

.welcome-right {
  background: linear-gradient(180deg, var(--bg-elev-1) 0%, var(--bg) 100%);
  border-left: 1px solid var(--border-soft);
  padding: 72px 64px 80px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  justify-content: center;
}

.candidate-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.candidate-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.locked-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 8px;
  border-radius: 99px;
  background: var(--bg-elev-3);
  border: 1px solid var(--border);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.locked-pill svg { display: block; }

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }

.field-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
}
.field-input {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-locked);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 14px 44px 14px 16px;
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 500;
  user-select: none;
  cursor: not-allowed;
  transition: border-color 160ms;
}
.field-input::after {
  content: "";
  position: absolute;
  top: 50%; right: 14px;
  transform: translateY(-50%);
  width: 14px; height: 14px;
  background-color: var(--text-muted);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'><rect x='3' y='11' width='18' height='11' rx='2'/><path d='M7 11V7a5 5 0 0 1 10 0v4'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'><rect x='3' y='11' width='18' height='11' rx='2'/><path d='M7 11V7a5 5 0 0 1 10 0v4'/></svg>") center / contain no-repeat;
}
.field-input:hover { border-color: var(--border); }
.field-input.with-flag { padding-left: 56px; }
.field-input .flag {
  position: absolute;
  left: 16px; top: 50%; transform: translateY(-50%);
  font-size: 17px;
}

.welcome-cta-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.5;
}
.consent-row input {
  margin-top: 3px;
  appearance: none;
  width: 16px; height: 16px;
  border: 1.5px solid var(--border-strong);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: all 180ms;
}
.consent-row input:checked {
  background: #ffffff;
  border-color: #ffffff;
}
.consent-row input:checked::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 8.5l3 3 7-7' stroke='black' stroke-width='2.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
.consent-row input:checked::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: contain;
}

/* ====== Buttons ====== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 28px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1),
              background-color 200ms,
              color 200ms,
              border-color 200ms,
              box-shadow 200ms;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn:disabled:active { transform: none; }

.btn-primary {
  background: #ffffff;
  color: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5) inset, 0 18px 40px -16px rgba(255, 255, 255, 0.25);
}
.btn-primary:hover:not(:disabled) {
  background: #ededed;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7) inset, 0 22px 50px -16px rgba(255, 255, 255, 0.35);
}

.btn-light {
  background: #fff;
  color: #000;
}
.btn-light:hover:not(:disabled) { background: #ededed; }

.btn-ghost {
  background: var(--bg-elev-2);
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-ghost:hover:not(:disabled) {
  background: var(--bg-elev-3);
  border-color: var(--border-strong);
}

.btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
}

/* ====== Question screen ====== */
.assessment-page {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.assessment-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 56px 32px 120px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.section-tag {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.28em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.section-tag::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--text-secondary);
}

.q-card {
  width: 100%;
  background: var(--bg-elev-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 56px 64px 48px;
  position: relative;
  overflow: hidden;
}
.q-card::before {
  content: "";
  position: absolute;
  left: 0; top: 56px;
  width: 3px; height: 64px;
  background: var(--text-primary);
  border-radius: 0 4px 4px 0;
}
.q-stem {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.18;
  letter-spacing: -0.018em;
  color: var(--text-primary);
  margin: 0 0 12px;
  text-wrap: pretty;
}
.q-stem-sub {
  font-size: 16px;
  color: var(--text-tertiary);
  margin: 0 0 36px;
}

/* Pattern / numeric / matrix visual blocks */
.q-figure {
  margin: 8px 0 32px;
  display: flex;
  justify-content: center;
}
.seq-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.seq-tile {
  min-width: 76px;
  height: 76px;
  padding: 0 16px;
  border-radius: var(--radius);
  background: var(--bg-elev-3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.seq-tile.qmark {
  background: var(--bg);
  border-color: var(--text-primary);
  border-style: dashed;
  color: var(--text-primary);
}

.matrix {
  display: grid;
  grid-template-columns: repeat(3, 88px);
  grid-template-rows: repeat(3, 88px);
  gap: 8px;
  padding: 16px;
  background: var(--bg-elev-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.matrix-cell {
  background: var(--bg-elev-1);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.matrix-cell.qmark {
  background: var(--bg);
  border-color: var(--text-primary);
  border-style: dashed;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
}

/* Stem image */
.q-stem-image {
  max-width: 100%;
  max-height: 360px;
  width: auto;
  height: auto;
  display: block;
  border-radius: var(--radius);
  background: var(--bg-elev-3);
  border: 1px solid var(--border);
  padding: 8px;
}

/* Options */
.q-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 4px;
}
.q-options-grid {
  grid-template-columns: repeat(4, 1fr);
}
.opt-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
}
.opt-image {
  width: 100%;
  max-width: 96px;
  height: 72px;
  object-fit: contain;
  display: block;
}
.q-option-image {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 14px;
}
.q-option-image .opt-body { align-items: center; }
.q-option-image .opt-image { max-width: 100%; height: 80px; }
.q-option {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  background: var(--bg-elev-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
  cursor: pointer;
  transition: all 180ms cubic-bezier(0.22, 1, 0.36, 1);
  font-family: inherit;
  position: relative;
  overflow: hidden;
}
.q-option:hover {
  background: #1f1f1f;
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.q-option.selected {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--text-primary);
}
.q-option.selected::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--text-primary) inset;
  pointer-events: none;
}

.opt-letter {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
  flex-shrink: 0;
  transition: all 180ms;
}
.q-option.selected .opt-letter {
  background: #ffffff;
  border-color: #ffffff;
  color: #000;
}

.opt-text {
  font-size: 16px;
  color: var(--text-primary);
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.4;
}
.opt-text-mono {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

/* Footer nav */
.q-footer {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  padding: 0 8px;
}
.q-meta {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.q-meta strong { color: var(--text-secondary); font-weight: 600; }

.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 4px;
  background: var(--bg-elev-3);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  margin: 0 2px;
}

/* Animation */
.fade-enter {
  animation: fadeIn 380ms cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.slide-enter {
  animation: slideIn 420ms cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ====== Thank you screen ====== */
.thanks-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 32px;
  position: relative;
  overflow: hidden;
}
.thanks-card {
  max-width: 720px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  position: relative;
}
.thanks-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  margin-bottom: 8px;
}
.thanks-mark img {
  height: 180px;
  width: auto;
  animation: bar-rise 700ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
@keyframes bar-rise {
  from { transform: scaleY(0); transform-origin: bottom; }
  to { transform: scaleY(1); transform-origin: bottom; }
}

.thanks-eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 14px;
}
.thanks-eyebrow::before, .thanks-eyebrow::after {
  content: "";
  width: 28px; height: 1px;
  background: var(--text-tertiary);
}
.thanks-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 60px;
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0;
}
.thanks-body {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-tertiary);
  max-width: 540px;
  text-wrap: pretty;
}
.thanks-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
}
.thanks-meta strong { color: var(--text-secondary); font-weight: 600; }
.thanks-id {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  background: var(--bg-elev-2);
  border: 1px solid var(--border-soft);
  padding: 8px 14px;
  border-radius: 99px;
}

/* ====== Modals ====== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 200ms ease;
}
.modal {
  width: 100%;
  max-width: 480px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 36px 32px;
  position: relative;
  overflow: hidden;
}
.modal::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 3px; height: 100%;
  background: var(--text-primary);
}
.modal-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--bg-elev-3);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.modal h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.modal p {
  color: var(--text-tertiary);
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.55;
}
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.modal-actions .btn {
  padding: 12px 18px;
  font-size: 13px;
}

/* ====== Tab-warn banner ====== */
.violation-banner {
  position: fixed;
  top: 84px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  background: #ffffff;
  color: #000;
  padding: 12px 22px;
  border-radius: 99px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.7);
  animation: dropIn 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes dropIn {
  from { opacity: 0; transform: translate(-50%, -16px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ====== Status screens (loading / error) ====== */
.status-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 32px;
  gap: 18px;
  text-align: center;
}
.status-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
}
.status-eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-secondary);
}
.status-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 44px;
  letter-spacing: -0.025em;
  margin: 0;
}
.status-body {
  color: var(--text-tertiary);
  font-size: 16px;
  max-width: 520px;
  line-height: 1.55;
  text-wrap: pretty;
  margin: 0;
}
.loader-spinner {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border);
  border-top-color: #ffffff;
  animation: spin 800ms linear infinite;
  margin-bottom: 8px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ====== Responsive (mobile is secondary per spec) ====== */
@media (max-width: 1080px) {
  .welcome-grid { grid-template-columns: 1fr; }
  .welcome-right { border-left: none; border-top: 1px solid var(--border-soft); }
}
@media (max-width: 720px) {
  .welcome-left, .welcome-right { padding: 48px 28px; }
  .welcome-title { font-size: 44px; }
  .q-card { padding: 36px 28px 32px; }
  .q-stem { font-size: 24px; }
  .q-options { grid-template-columns: 1fr; }
  .topbar-inner { grid-template-columns: 1fr auto; gap: 16px; padding: 14px 18px; }
  .progress-block { grid-column: 1 / -1; order: 2; }
  .fields { grid-template-columns: 1fr; }
  .rules-grid { grid-template-columns: 1fr; }
  .thanks-title { font-size: 40px; }
}
