:root {
  color-scheme: light dark;
  --ink: #121b2a;
  --muted: #586576;
  --paper: #f7f9fb;
  --surface: #ffffff;
  --line: #dce3ea;
  --teal: #07847f;
  --amber: #d99a2b;
  --clay: #516070;
  --surface-raised: rgba(255, 255, 255, 0.84);
  --soft-line: rgba(18, 27, 42, 0.08);
  --shadow: 0 18px 60px rgba(20, 34, 52, 0.12);
  --shadow-strong: 0 28px 90px rgba(20, 34, 52, 0.16);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(247, 249, 251, 0) 360px),
    linear-gradient(90deg, rgba(7, 132, 127, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(18, 27, 42, 0.025) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 32px;
  border-bottom: 1px solid var(--soft-line);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 30px rgba(18, 27, 42, 0.04);
  backdrop-filter: blur(18px) saturate(1.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background:
    linear-gradient(135deg, var(--teal), #0f2b3b 72%);
  box-shadow: 0 0 0 4px rgba(7, 132, 127, 0.1);
}

.top-nav {
  display: flex;
  gap: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

.top-nav a {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 8px;
  font-weight: 800;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.theme-control {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.theme-control button {
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
}

.theme-control button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--surface);
}

.language-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.language-control select {
  min-width: 132px;
  height: 36px;
  padding: 0 34px 0 12px;
  border: 1px solid rgba(16, 24, 32, 0.18);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.top-nav a:hover {
  background: rgba(7, 132, 127, 0.08);
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(470px, 0.82fr) minmax(600px, 1.18fr);
  align-items: center;
  gap: 58px;
  max-width: 1480px;
  min-height: 650px;
  margin: 0 auto;
  padding: 66px 6vw 46px;
  background:
    linear-gradient(90deg, rgba(7, 132, 127, 0.055), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(247, 250, 252, 0.38)),
    transparent;
  color: var(--ink);
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 700px;
  font-size: clamp(3.2rem, 4.8vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: 0;
  word-break: keep-all;
}

.hero-text {
  max-width: 540px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-width: 680px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.hero-proof li {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(18, 27, 42, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 8px 28px rgba(18, 27, 42, 0.05);
}

.hero-proof li + li {
  padding-left: 14px;
}

.hero-proof li:last-child {
  border-right: 1px solid rgba(18, 27, 42, 0.08);
}

.hero-proof strong,
.hero-proof span {
  display: block;
  min-width: 0;
}

.hero-proof strong {
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.1;
}

.hero-proof span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.hero-actions,
.quiz-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.quiz-actions {
  position: static;
  z-index: 10;
  width: 100%;
  max-width: 100%;
  padding: 12px;
  border: 1px solid rgba(216, 213, 205, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 32px rgba(16, 24, 32, 0.14);
  backdrop-filter: blur(12px);
}

.primary-action,
.ghost-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease,
    border-color 140ms ease;
}

.primary-action {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 14px 28px rgba(7, 132, 127, 0.22);
}

.primary-action:hover {
  background: #096e6b;
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(7, 132, 127, 0.26);
}

.ghost-action {
  background: rgba(255, 255, 255, 0.58);
  border-color: var(--line);
  color: var(--ink);
}

.ghost-action:hover {
  border-color: rgba(7, 132, 127, 0.36);
  transform: translateY(-1px);
}

.primary-action:disabled,
.ghost-action:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.time-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.resume-note {
  max-width: 360px;
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(7, 132, 127, 0.24);
  border-radius: 8px;
  background: rgba(7, 132, 127, 0.08);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
}

.hero-visual {
  margin: 0;
}

.assessment-preview {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 164px;
  overflow: hidden;
  border: 1px solid rgba(18, 27, 42, 0.1);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-strong);
}

.assessment-preview::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--amber), #17212b);
}

.preview-workspace {
  container-type: inline-size;
  min-width: 0;
  padding: 28px;
}

.preview-topline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--ink);
  font-weight: 900;
}

.preview-topline strong {
  color: var(--muted);
  font-weight: 800;
}

.preview-progress {
  height: 6px;
  margin: 16px 0 24px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7edf2;
}

.preview-progress span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.preview-question {
  display: grid;
  grid-template-columns: minmax(230px, 0.85fr) minmax(240px, 1fr);
  gap: 26px;
  align-items: start;
  min-width: 0;
}

.preview-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid #ccd5dd;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.preview-matrix-cell {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  min-width: 0;
  border-right: 1px solid #ccd5dd;
  border-bottom: 1px solid #ccd5dd;
  color: var(--ink);
  font-size: 2rem;
  font-weight: 900;
}

.preview-matrix-cell:nth-child(3n) {
  border-right: 0;
}

.preview-matrix-cell:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.shape-triangle::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 28px solid var(--ink);
}

.shape-circle::before {
  content: "";
  width: 30px;
  height: 30px;
  border: 3px solid var(--ink);
  border-radius: 50%;
}

.shape-circle.is-filled::before {
  background: var(--ink);
}

.shape-square::before {
  content: "";
  width: 28px;
  height: 28px;
  background: var(--ink);
}

.shape-diamond::before {
  content: "";
  width: 26px;
  height: 26px;
  border: 3px solid var(--ink);
  transform: rotate(45deg);
}

.preview-matrix-cell.is-missing {
  border: 1px dashed var(--teal);
  color: var(--teal);
  background: #eefafa;
}

.preview-answer-panel p {
  max-width: 260px;
  margin: 8px 0 22px;
  color: var(--muted);
  font-weight: 700;
}

.preview-answer-panel {
  min-width: 0;
}

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

.preview-option {
  display: grid;
  place-items: center;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(18, 27, 42, 0.04);
}

.preview-option.is-selected {
  border-color: var(--teal);
  box-shadow: inset 0 0 0 2px rgba(7, 132, 127, 0.22);
  color: var(--teal);
}

.preview-next {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 132px;
  min-height: 46px;
  margin-top: 24px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 12px 24px rgba(7, 132, 127, 0.2);
}

@container (max-width: 480px) {
  .preview-question {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .preview-matrix {
    width: min(100%, 240px);
  }

  .preview-answer-panel p {
    max-width: none;
    margin: 0 0 14px;
  }

  .preview-options {
    grid-template-columns: repeat(4, minmax(44px, 1fr));
    gap: 8px;
  }

  .preview-option {
    min-height: 52px;
  }

  .preview-next {
    width: 100%;
    min-height: 50px;
    margin-top: 10px;
  }
}

.preview-performance {
  padding: 28px 18px 24px;
  border-left: 1px solid var(--line);
  background:
    linear-gradient(180deg, #f8fafc, #f1f5f8);
}

.preview-performance h3 {
  margin: 0 0 20px;
  font-size: 1rem;
}

.preview-performance dl {
  display: grid;
  gap: 16px;
  margin: 0;
}

.preview-performance dt {
  color: var(--muted);
  font-size: 0.8rem;
}

.preview-performance dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 1.28rem;
  font-weight: 900;
}

.preview-domain-bars {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.preview-domain-bars span {
  display: block;
  height: 6px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--teal) var(--value), transparent var(--value)),
    #e0e8ee;
}

.test-shell,
.guide-section,
.result-section {
  padding: 72px 7vw;
}

.section-heading,
.guide-copy,
.result-content {
  max-width: 760px;
}

.section-heading h2,
.guide-copy h2,
.result-content h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: 0;
}

.quiz-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 28px;
  margin-top: 32px;
  align-items: start;
}

.quiz-status {
  position: sticky;
  top: 88px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.quiz-status hr {
  margin: 18px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.step-label {
  margin: 0 0 6px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.step-context {
  margin: 10px 0 0;
  font-size: 0.9rem;
}

.status-number {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-weight: 800;
}

.status-number span:first-child {
  font-size: 3rem;
  line-height: 1;
}

.current-status span:first-child {
  color: var(--teal);
}

.progress-track {
  width: 100%;
  height: 10px;
  margin: 18px 0 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8e4dc;
}

.progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
  transition: width 160ms ease;
}

.question-jump {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.question-jump-title {
  margin: 0 0 10px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.question-jump-button {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  min-width: 0;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfaf7;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
}

.question-jump-button[data-state="answered"] {
  border-color: rgba(7, 132, 127, 0.34);
  background: rgba(7, 132, 127, 0.1);
  color: var(--teal);
}

.question-jump-button[aria-current="true"] {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
  box-shadow: 0 8px 18px rgba(7, 132, 127, 0.18);
}

.quiz-status p,
.guide-copy p,
.guide-grid p,
.result-content p {
  color: var(--muted);
}

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

.question-card {
  padding: 24px;
  border: 1px solid #cac4b8;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 36px rgba(16, 24, 32, 0.08);
}

.question-meta {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--clay);
  font-size: 0.82rem;
  font-weight: 800;
}

.question-card h3 {
  margin: 0 0 20px;
  font-size: 1.18rem;
  line-height: 1.35;
  letter-spacing: 0;
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 520px;
  margin: 0 0 18px;
  padding: 10px;
  border: 1px solid #d6d0c4;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(16, 24, 32, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(16, 24, 32, 0.035) 1px, transparent 1px),
    #f8f7f2;
  background-size: 16px 16px;
}

.matrix-cell {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  min-width: 0;
  border: 1px solid #d8d2c7;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
}

.matrix-cell.is-missing {
  border-color: var(--amber);
  background: #fff8eb;
}

.missing-cell {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--amber);
  font-size: 2.4rem;
  font-weight: 900;
}

.visual-svg {
  display: block;
  width: 82%;
  height: 82%;
  overflow: visible;
}

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

.option {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 142px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
  cursor: pointer;
  position: relative;
}

.option:has(input:checked) {
  border-color: var(--teal);
  box-shadow: inset 0 0 0 2px var(--teal);
  background: #eef7f4;
}

.option input {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.option-label {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #101820;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
}

.option-visual {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  min-width: 0;
  margin-top: -2px;
  border: 1px solid #e1dcd2;
  border-radius: 6px;
  background: #fff;
}

.option span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.validation-message {
  min-height: 24px;
  margin: 16px 0 0;
  color: #a13e2c;
  font-weight: 800;
}

.result-section {
  background:
    linear-gradient(180deg, rgba(231, 239, 233, 0.76), rgba(247, 249, 251, 0.96));
}

.result-content {
  max-width: 920px;
  margin: 0 auto;
  padding: 34px;
  border: 1px solid rgba(7, 132, 127, 0.18);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.result-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
  margin: 24px 0;
}

.result-hero-card {
  padding: 18px;
  border: 1px solid rgba(18, 27, 42, 0.08);
  border-radius: 8px;
  background: rgba(251, 250, 247, 0.86);
}

.result-hero-card.is-primary {
  border-color: rgba(36, 124, 122, 0.45);
  background: #eef7f4;
}

.result-hero-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
}

.result-hero-card strong {
  display: block;
  color: var(--ink);
  font-size: clamp(2rem, 8vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0;
}

.result-hero-card small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.result-content h3 {
  margin: 0 0 10px;
  font-size: 1.4rem;
}

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

.result-metrics div,
.profile-summary,
.domain-row,
.insight-card {
  border: 1px solid rgba(18, 27, 42, 0.08);
  border-radius: 8px;
  background: rgba(251, 250, 247, 0.86);
}

.result-metrics div {
  padding: 16px;
}

.result-metrics span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.result-metrics strong {
  font-size: 1.2rem;
}

.profile-summary {
  display: grid;
  gap: 8px;
  padding: 16px;
  margin-bottom: 14px;
}

.profile-summary p {
  margin: 0;
}

.result-deep-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 22px;
}

.result-deep-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(18, 27, 42, 0.08);
  border-radius: 8px;
  background: rgba(251, 250, 247, 0.86);
}

.result-deep-card > span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--surface);
  font-size: 0.76rem;
  font-weight: 900;
}

.result-deep-card h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.result-deep-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.result-deep-card ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.result-deep-card li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.result-deep-card li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--teal);
}

.share-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.9fr);
  gap: 18px;
  align-items: start;
  margin: 22px 0;
  padding: 20px;
  border: 1px solid rgba(7, 132, 127, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(7, 132, 127, 0.1), rgba(217, 154, 43, 0.08)),
    #fbfaf7;
}

.share-card-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.share-card h3 {
  margin: 0 0 10px;
}

.share-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.share-card-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.share-card-metrics div {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(16, 24, 32, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.share-card-metrics dt {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
}

.share-card-metrics dd {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.share-card .ghost-action {
  justify-self: start;
  grid-column: 1 / -1;
  min-height: 42px;
  background: var(--surface);
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 18px 0 4px;
}

.result-actions .primary-action,
.result-actions .ghost-action {
  min-height: 42px;
}

.copy-status {
  min-height: 22px;
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 900;
}

.domain-profile {
  display: grid;
  gap: 10px;
}

.domain-row {
  padding: 14px;
}

.domain-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  font-weight: 900;
}

.domain-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e0d7;
}

.domain-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.domain-row p {
  margin: 8px 0 0;
  font-size: 0.88rem;
}

.result-note {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.ad-slot {
  display: grid;
  grid-template-rows: auto auto;
  gap: 4px;
  place-items: center;
  min-height: 120px;
  margin: 32px 7vw;
  padding: 18px;
  border: 1px solid rgba(16, 24, 32, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(248, 250, 252, 0.94));
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 900;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.ad-slot--empty {
  display: none !important;
}

.ad-slot::before {
  content: "Advertisement";
  color: var(--clay);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.landing-leaderboard-slot {
  width: min(1120px, calc(100% - 14vw));
  max-width: 1120px;
  min-height: 96px;
  margin-right: auto;
  margin-left: auto;
  margin-top: 28px;
  margin-bottom: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(248, 250, 252, 0.98));
}

.quiz-ad-slot {
  min-height: 250px;
  margin: 18px 0 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(248, 250, 252, 0.98));
}

.result-summary-ad-slot {
  margin: 28px 0 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(248, 250, 252, 0.98));
}

.static-page-ad-slot {
  width: min(1120px, calc(100% - 14vw));
  max-width: 1120px;
  min-height: 92px;
  margin-right: auto;
  margin-left: auto;
  margin-top: 28px;
  margin-bottom: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(248, 250, 252, 0.98));
}

.static-page-ad-slot--bottom {
  margin-top: 0;
  margin-bottom: 42px;
}

.consent-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: auto;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
  width: min(620px, calc(100% - 36px));
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(16, 24, 32, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 54px rgba(16, 24, 32, 0.18);
  backdrop-filter: blur(14px);
}

.consent-banner strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 900;
}

.consent-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.consent-banner a {
  display: inline-block;
  margin-top: 6px;
  color: var(--teal);
  font-size: 0.88rem;
  font-weight: 900;
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.consent-actions button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.consent-actions button[data-consent-choice="accepted"] {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.is-assessment-active .consent-banner {
  position: static;
  width: min(620px, calc(100% - 32px));
  margin: 18px auto 28px;
}

.insight-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 7vw 64px;
  background: var(--paper);
}

.insight-card {
  min-height: 168px;
  padding: 24px;
  box-shadow: 0 14px 42px rgba(18, 27, 42, 0.06);
}

.insight-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #101820;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.insight-card h3 {
  margin: 18px 0 10px;
  font-size: 1.15rem;
}

.insight-card p {
  margin: 0;
  color: var(--muted);
}

.guide-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 44px;
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.62);
}

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

.guide-grid article {
  min-height: 160px;
  padding: 22px;
  border: 1px solid rgba(18, 27, 42, 0.08);
  border-radius: 8px;
  background: var(--surface-raised);
  box-shadow: 0 12px 36px rgba(18, 27, 42, 0.05);
}

.guide-grid h3 {
  margin: 0 0 12px;
}

.faq-section {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 44px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 66px 7vw 74px;
  background: transparent;
}

.faq-copy {
  max-width: 540px;
}

.faq-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.faq-copy p:not(.eyebrow) {
  color: var(--muted);
}

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

.faq-item {
  padding: 22px;
  border: 1px solid rgba(18, 27, 42, 0.08);
  border-radius: 8px;
  background: var(--surface-raised);
  box-shadow: 0 10px 30px rgba(18, 27, 42, 0.04);
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
}

.policy-content {
  max-width: 920px;
  margin: 56px auto;
  padding: 42px;
  border: 1px solid rgba(18, 27, 42, 0.09);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.policy-content::before {
  content: "";
  display: block;
  width: 54px;
  height: 4px;
  margin-bottom: 28px;
  border-radius: 999px;
  background: var(--teal);
}

.policy-content h1 {
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.1rem);
  line-height: 0.98;
}

.policy-content h2 {
  margin: 34px 0 10px;
  font-size: 1.16rem;
}

.policy-content p {
  margin: 0;
  color: var(--muted);
}

.policy-content p + p {
  margin-top: 14px;
}

.policy-updated {
  margin: 18px 0 18px !important;
  color: var(--teal) !important;
  font-weight: 900;
}

.site-footer {
  padding: 34px 7vw;
  border-top: 1px solid rgba(18, 27, 42, 0.08);
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 10px;
  font-size: 0.92rem;
  font-weight: 800;
}

.footer-links a {
  padding: 4px 0;
}

.footer-links a:hover {
  color: var(--ink);
}

@media (max-width: 1280px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    max-width: 920px;
    padding-right: 32px;
    padding-left: 32px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-visual {
    width: 100%;
    max-width: 780px;
  }
}

@media (max-width: 900px) {
  .site-header {
    padding: 0 18px;
  }

  .language-control span {
    display: none;
  }

  .header-controls {
    gap: 8px;
  }

  .language-control select {
    min-width: 100px;
  }

  .theme-control button {
    padding: 0 8px;
    font-size: 0.76rem;
  }

  .hero,
  .quiz-layout,
  .guide-section,
  .faq-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 42px 20px 28px;
  }

  .hero h1 {
    font-size: clamp(3rem, 18vw, 5.2rem);
  }

  .hero-proof,
  .insight-section {
    grid-template-columns: 1fr 1fr;
  }

  .hero-proof li,
  .hero-proof li + li {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
  }

  .assessment-preview {
    grid-template-columns: 1fr;
  }

  .preview-performance {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .preview-question {
    grid-template-columns: 1fr;
  }

  .insight-section {
    padding: 0 20px 44px;
  }

  .hero-visual img {
    aspect-ratio: 4 / 3;
  }

  .test-shell,
  .guide-section,
  .result-section,
  .faq-section {
    padding: 48px 20px;
  }

  .policy-content {
    margin: 40px 20px;
    padding: 26px;
  }

  .quiz-status {
    position: static;
  }

  .quiz-actions {
    position: static;
    width: 100%;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }

  .result-metrics {
    grid-template-columns: 1fr;
  }

  .result-hero-grid {
    grid-template-columns: 1fr;
  }

  .result-deep-grid {
    grid-template-columns: 1fr;
  }

  .share-card {
    grid-template-columns: 1fr;
  }

  .consent-banner {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .consent-actions {
    justify-content: stretch;
  }

  .consent-actions button {
    flex: 1 1 150px;
  }
}

@media (max-width: 560px) {
  .consent-banner {
    position: static;
    right: auto;
    bottom: auto;
    left: auto;
    width: auto;
    margin: 12px 16px 0;
  }

  .site-header {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 10px;
    min-height: auto;
    padding: 12px;
  }

  .brand {
    font-size: 0.95rem;
  }

  .header-controls {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .theme-control {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    flex: 1 1 auto;
    min-width: 0;
  }

  .theme-control button {
    min-height: 36px;
    padding: 0 6px;
    font-size: 0.78rem;
  }

  .language-control {
    flex: 0 0 104px;
  }

  .language-control select {
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 0 28px 0 10px;
    font-size: 0.82rem;
  }

  .top-nav {
    display: flex;
    order: 2;
    width: 100%;
    gap: 8px;
  }

  .top-nav a {
    min-height: 34px;
    padding: 6px 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    font-size: 0.82rem;
    font-weight: 900;
    text-align: center;
  }

  .header-controls {
    order: 1;
  }

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

  .hero-proof,
  .insight-section {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 24px;
    padding: 30px 16px 22px;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 12vw, 3.25rem);
    line-height: 0.98;
  }

  .hero-text {
    margin-top: 16px;
    font-size: 1rem;
  }

  .hero-proof {
    gap: 8px;
    margin-top: 20px;
  }

  .hero-proof li,
  .hero-proof li + li {
    padding: 12px;
  }

  .hero-proof strong {
    font-size: 1.05rem;
  }

  .hero-proof span {
    margin-top: 4px;
    font-size: 0.76rem;
  }

  .hero-actions,
  .quiz-actions {
    margin-top: 20px;
  }

  .hero .primary-action {
    min-height: 48px;
  }

  .assessment-preview {
    width: 100%;
  }

  .preview-workspace {
    padding: 14px;
  }

  .preview-topline {
    gap: 10px;
    font-size: 0.92rem;
  }

  .preview-progress {
    margin: 12px 0 16px;
  }

  .preview-matrix-cell {
    font-size: 1.4rem;
  }

  .preview-answer-panel p {
    max-width: none;
    margin: 0 0 14px;
    font-size: 0.92rem;
  }

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

  .preview-next {
    width: 100%;
    min-height: 50px;
    margin-top: 10px;
  }

  .preview-performance {
    padding: 16px 14px;
  }

  .preview-performance h3 {
    margin-bottom: 14px;
  }

  .preview-performance dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .preview-performance dt {
    font-size: 0.72rem;
  }

  .preview-performance dd {
    font-size: 1.05rem;
  }

  .preview-domain-bars {
    margin-top: 16px;
  }

  .test-shell,
  .guide-section,
  .result-section,
  .faq-section {
    padding: 40px 16px;
  }

  .policy-content {
    margin: 30px 16px;
    padding: 20px;
  }

  .section-heading h2,
  .guide-copy h2,
  .result-content h2,
  .faq-copy h2 {
    font-size: 2.35rem;
  }

  .quiz-layout {
    gap: 18px;
  }

  .quiz-status {
    padding: 18px;
  }

  .question-jump-grid {
    grid-template-columns: repeat(5, minmax(38px, 1fr));
  }

  .question-card h3 {
    font-size: 1rem;
  }

  .option {
    min-height: 126px;
    padding: 10px;
  }

  .quiz-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 10px;
  }

  .quiz-actions button {
    min-width: 0;
    min-height: 48px;
  }

  .question-card {
    padding: 12px;
  }

  .result-content {
    padding: 16px;
  }

  .share-card {
    padding: 16px;
  }

  .share-card-metrics {
    grid-template-columns: 1fr;
  }

  .matrix-grid {
    gap: 6px;
    padding: 8px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #edf4f6;
    --muted: #9aa8b6;
    --paper: #0e1319;
    --surface: #141b23;
    --line: #2a3642;
    --teal: #49c8bf;
    --amber: #e4a945;
    --clay: #a8b4c0;
    --surface-raised: rgba(20, 27, 35, 0.82);
    --soft-line: rgba(237, 244, 246, 0.1);
    --shadow: 0 20px 70px rgba(0, 0, 0, 0.42);
    --shadow-strong: 0 30px 100px rgba(0, 0, 0, 0.52);
  }

  body {
    background-image:
      linear-gradient(180deg, rgba(18, 25, 35, 0.8), rgba(14, 19, 25, 0) 360px),
      linear-gradient(90deg, rgba(73, 200, 191, 0.035) 1px, transparent 1px),
      linear-gradient(rgba(237, 244, 246, 0.025) 1px, transparent 1px);
  }

  .site-header {
    border-bottom-color: rgba(237, 244, 246, 0.1);
    background: rgba(14, 19, 25, 0.92);
  }

  .theme-control {
    background: rgba(20, 27, 35, 0.68);
  }

  .language-control select {
    border-color: rgba(237, 244, 246, 0.18);
    background: #17202a;
  }

  .hero {
    background: linear-gradient(180deg, #111923 0%, var(--paper) 100%);
  }

  .hero-proof li,
  .hero-proof li + li,
  .hero-proof li:last-child {
    border-color: rgba(237, 244, 246, 0.1);
    background: rgba(20, 27, 35, 0.86);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
  }

  .quiz-actions {
    border-color: rgba(64, 82, 98, 0.9);
    background: rgba(20, 27, 35, 0.92);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.34);
  }

  .primary-action {
    color: #061112;
    box-shadow: 0 10px 24px rgba(73, 200, 191, 0.18);
  }

  .primary-action:hover {
    background: #61d5cd;
  }

  .ghost-action {
    border-color: rgba(237, 244, 246, 0.18);
    background: rgba(20, 27, 35, 0.78);
    color: var(--ink);
  }

  .resume-note {
    border-color: rgba(73, 200, 191, 0.32);
    background: rgba(73, 200, 191, 0.12);
  }

  .assessment-preview,
  .quiz-status,
  .question-card,
  .result-content,
  .policy-content {
    background: var(--surface);
  }

  .preview-progress,
  .progress-track {
    background: #283441;
  }

  .preview-matrix {
    border-color: #344250;
    background: #0f151d;
  }

  .preview-matrix-cell {
    border-color: #344250;
  }

  .preview-matrix-cell.is-missing {
    background: rgba(73, 200, 191, 0.12);
  }

  .preview-option {
    background: #101720;
  }

  .preview-option.is-selected {
    box-shadow: inset 0 0 0 2px rgba(73, 200, 191, 0.28);
  }

  .preview-performance {
    background: #111922;
  }

  .preview-domain-bars span {
    background:
      linear-gradient(90deg, var(--teal) var(--value), transparent var(--value)),
      #283747;
  }

  .question-card {
    border-color: #344250;
    box-shadow: 0 16px 46px rgba(0, 0, 0, 0.28);
  }

  .matrix-grid {
    border-color: #334151;
    background:
      linear-gradient(90deg, rgba(237, 244, 246, 0.045) 1px, transparent 1px),
      linear-gradient(rgba(237, 244, 246, 0.045) 1px, transparent 1px),
      #111820;
    background-size: 16px 16px;
  }

  .matrix-cell {
    border-color: #2d3946;
    background: rgba(20, 27, 35, 0.96);
  }

  .matrix-cell.is-missing {
    background: rgba(228, 169, 69, 0.13);
  }

  .option {
    background: #121922;
  }

  .option:has(input:checked) {
    background: rgba(73, 200, 191, 0.12);
  }

  .option-label,
  .insight-card span {
    background: #edf4f6;
    color: #0e1319;
  }

  .option-visual {
    border-color: #2d3946;
    background: #0f151d;
  }

  .validation-message {
    color: #ff8b78;
  }

  .result-section {
    background: #0f171f;
  }

  .result-content {
    border-color: #2f3d4b;
  }

  .result-hero-card,
  .result-metrics div,
  .profile-summary,
  .result-deep-card,
  .share-card-metrics div,
  .domain-row,
  .insight-card,
  .faq-item,
  .guide-grid article {
    background: #121922;
  }

  .question-jump-button {
    background: #121922;
  }

  .question-jump-button[data-state="answered"] {
    border-color: rgba(73, 200, 191, 0.4);
    background: rgba(73, 200, 191, 0.12);
  }

  .question-jump-button[aria-current="true"] {
    background: var(--teal);
    color: #061112;
  }

  .share-card {
    border-color: rgba(73, 200, 191, 0.34);
    background:
      linear-gradient(135deg, rgba(73, 200, 191, 0.14), rgba(228, 169, 69, 0.1)),
      #121922;
  }

  .share-card .ghost-action {
    background: var(--surface);
  }

  .result-hero-card.is-primary {
    border-color: rgba(73, 200, 191, 0.45);
    background: rgba(73, 200, 191, 0.12);
  }

  .domain-bar {
    background: #2a3440;
  }

  .ad-slot,
  .landing-leaderboard-slot,
  .quiz-ad-slot,
  .result-summary-ad-slot {
    border-color: rgba(237, 244, 246, 0.24);
    background:
      linear-gradient(180deg, rgba(17, 25, 34, 0.9), rgba(14, 20, 28, 0.98));
  }

  .consent-banner {
    border-color: rgba(237, 244, 246, 0.18);
    background: rgba(18, 25, 34, 0.96);
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.35);
  }

  .guide-section {
    background: #0f151d;
  }

  .faq-section {
    background: var(--paper);
  }

  .site-footer {
    border-top-color: rgba(237, 244, 246, 0.1);
    background: rgba(14, 19, 25, 0.78);
  }

}

@media (prefers-color-scheme: dark) and (max-width: 900px) {
  .hero-proof li,
  .hero-proof li + li {
    background: var(--surface);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #edf4f6;
  --muted: #9aa8b6;
  --paper: #0e1319;
  --surface: #141b23;
  --line: #2a3642;
  --teal: #49c8bf;
  --amber: #e4a945;
  --clay: #a8b4c0;
  --surface-raised: rgba(20, 27, 35, 0.82);
  --soft-line: rgba(237, 244, 246, 0.1);
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.42);
  --shadow-strong: 0 30px 100px rgba(0, 0, 0, 0.52);
}

:root[data-theme="dark"] body {
  background-image:
    linear-gradient(180deg, rgba(18, 25, 35, 0.8), rgba(14, 19, 25, 0) 360px),
    linear-gradient(90deg, rgba(73, 200, 191, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(237, 244, 246, 0.025) 1px, transparent 1px);
}

:root[data-theme="dark"] .site-header {
  border-bottom-color: rgba(237, 244, 246, 0.1);
  background: rgba(14, 19, 25, 0.92);
}

:root[data-theme="dark"] .theme-control {
  background: rgba(20, 27, 35, 0.68);
}

:root[data-theme="dark"] .language-control select {
  border-color: rgba(237, 244, 246, 0.18);
  background: #17202a;
}

:root[data-theme="dark"] .hero {
  background: linear-gradient(180deg, #111923 0%, var(--paper) 100%);
}

:root[data-theme="dark"] .hero-proof li,
:root[data-theme="dark"] .hero-proof li + li,
:root[data-theme="dark"] .hero-proof li:last-child {
  border-color: rgba(237, 244, 246, 0.1);
  background: rgba(20, 27, 35, 0.86);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

:root[data-theme="dark"] .quiz-actions {
  border-color: rgba(64, 82, 98, 0.9);
  background: rgba(20, 27, 35, 0.92);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.34);
}

:root[data-theme="dark"] .primary-action {
  color: #061112;
  box-shadow: 0 10px 24px rgba(73, 200, 191, 0.18);
}

:root[data-theme="dark"] .primary-action:hover {
  background: #61d5cd;
}

:root[data-theme="dark"] .ghost-action {
  border-color: rgba(237, 244, 246, 0.18);
  background: rgba(20, 27, 35, 0.78);
  color: var(--ink);
}

:root[data-theme="dark"] .resume-note {
  border-color: rgba(73, 200, 191, 0.32);
  background: rgba(73, 200, 191, 0.12);
}

:root[data-theme="dark"] .assessment-preview,
:root[data-theme="dark"] .quiz-status,
:root[data-theme="dark"] .question-card,
:root[data-theme="dark"] .result-content,
:root[data-theme="dark"] .policy-content {
  background: var(--surface);
}

:root[data-theme="dark"] .preview-progress,
:root[data-theme="dark"] .progress-track {
  background: #283441;
}

:root[data-theme="dark"] .preview-matrix,
:root[data-theme="dark"] .preview-matrix-cell {
  border-color: #344250;
}

:root[data-theme="dark"] .preview-matrix {
  background: #0f151d;
}

:root[data-theme="dark"] .preview-matrix-cell.is-missing {
  background: rgba(73, 200, 191, 0.12);
}

:root[data-theme="dark"] .preview-option {
  background: #101720;
}

:root[data-theme="dark"] .preview-option.is-selected {
  box-shadow: inset 0 0 0 2px rgba(73, 200, 191, 0.28);
}

:root[data-theme="dark"] .preview-performance {
  background: #111922;
}

:root[data-theme="dark"] .preview-domain-bars span {
  background:
    linear-gradient(90deg, var(--teal) var(--value), transparent var(--value)),
    #283747;
}

:root[data-theme="dark"] .question-card {
  border-color: #344250;
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.28);
}

:root[data-theme="dark"] .matrix-grid {
  border-color: #334151;
  background:
    linear-gradient(90deg, rgba(237, 244, 246, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(237, 244, 246, 0.045) 1px, transparent 1px),
    #111820;
  background-size: 16px 16px;
}

:root[data-theme="dark"] .matrix-cell {
  border-color: #2d3946;
  background: rgba(20, 27, 35, 0.96);
}

:root[data-theme="dark"] .matrix-cell.is-missing {
  background: rgba(228, 169, 69, 0.13);
}

:root[data-theme="dark"] .option {
  background: #121922;
}

:root[data-theme="dark"] .option:has(input:checked) {
  background: rgba(73, 200, 191, 0.12);
}

:root[data-theme="dark"] .option-label,
:root[data-theme="dark"] .insight-card span {
  background: #edf4f6;
  color: #0e1319;
}

:root[data-theme="dark"] .option-visual {
  border-color: #2d3946;
  background: #0f151d;
}

:root[data-theme="dark"] .validation-message {
  color: #ff8b78;
}

:root[data-theme="dark"] .result-section {
  background: #0f171f;
}

:root[data-theme="dark"] .result-content {
  border-color: #2f3d4b;
}

:root[data-theme="dark"] .result-hero-card,
:root[data-theme="dark"] .result-metrics div,
:root[data-theme="dark"] .profile-summary,
:root[data-theme="dark"] .result-deep-card,
:root[data-theme="dark"] .share-card-metrics div,
:root[data-theme="dark"] .domain-row,
:root[data-theme="dark"] .insight-card,
:root[data-theme="dark"] .faq-item,
:root[data-theme="dark"] .guide-grid article {
  background: #121922;
}

:root[data-theme="dark"] .question-jump-button {
  background: #121922;
}

:root[data-theme="dark"] .question-jump-button[data-state="answered"] {
  border-color: rgba(73, 200, 191, 0.4);
  background: rgba(73, 200, 191, 0.12);
}

:root[data-theme="dark"] .question-jump-button[aria-current="true"] {
  background: var(--teal);
  color: #061112;
}

:root[data-theme="dark"] .share-card {
  border-color: rgba(73, 200, 191, 0.34);
  background:
    linear-gradient(135deg, rgba(73, 200, 191, 0.14), rgba(228, 169, 69, 0.1)),
    #121922;
}

:root[data-theme="dark"] .share-card .ghost-action {
  background: var(--surface);
}

:root[data-theme="dark"] .result-hero-card.is-primary {
  border-color: rgba(73, 200, 191, 0.45);
  background: rgba(73, 200, 191, 0.12);
}

:root[data-theme="dark"] .domain-bar {
  background: #2a3440;
}

:root[data-theme="dark"] .ad-slot,
:root[data-theme="dark"] .landing-leaderboard-slot,
:root[data-theme="dark"] .quiz-ad-slot,
:root[data-theme="dark"] .result-summary-ad-slot {
  border-color: rgba(237, 244, 246, 0.24);
  background:
    linear-gradient(180deg, rgba(17, 25, 34, 0.9), rgba(14, 20, 28, 0.98));
}

:root[data-theme="dark"] .consent-banner {
  border-color: rgba(237, 244, 246, 0.18);
  background: rgba(18, 25, 34, 0.96);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.35);
}

:root[data-theme="dark"] .guide-section {
  background: #0f151d;
}

:root[data-theme="dark"] .faq-section {
  background: var(--paper);
}

:root[data-theme="dark"] .site-footer {
  border-top-color: rgba(237, 244, 246, 0.1);
  background: rgba(14, 19, 25, 0.78);
}

:root[data-theme="light"] {
  color-scheme: light;
  --ink: #121b2a;
  --muted: #586576;
  --paper: #f7f9fb;
  --surface: #ffffff;
  --line: #dce3ea;
  --teal: #07847f;
  --amber: #d99a2b;
  --clay: #516070;
  --surface-raised: rgba(255, 255, 255, 0.84);
  --soft-line: rgba(18, 27, 42, 0.08);
  --shadow: 0 18px 60px rgba(20, 34, 52, 0.12);
  --shadow-strong: 0 28px 90px rgba(20, 34, 52, 0.16);
}

:root[data-theme="light"] body {
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(247, 249, 251, 0) 360px),
    linear-gradient(90deg, rgba(7, 132, 127, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(18, 27, 42, 0.025) 1px, transparent 1px);
}

:root[data-theme="light"] .site-header {
  border-bottom-color: rgba(18, 27, 42, 0.1);
  background: rgba(255, 255, 255, 0.9);
}

:root[data-theme="light"] .theme-control {
  background: rgba(255, 255, 255, 0.68);
}

:root[data-theme="light"] .language-control select {
  border-color: rgba(16, 24, 32, 0.18);
  background: #fff;
}

:root[data-theme="light"] .hero {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.98)),
    var(--paper);
}

:root[data-theme="light"] .hero-proof li,
:root[data-theme="light"] .hero-proof li + li,
:root[data-theme="light"] .hero-proof li:last-child {
  border-color: rgba(18, 27, 42, 0.08);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 8px 28px rgba(18, 27, 42, 0.05);
}

:root[data-theme="light"] .quiz-actions {
  border-color: rgba(216, 213, 205, 0.9);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 32px rgba(16, 24, 32, 0.14);
}

:root[data-theme="light"] .primary-action {
  color: #fff;
  box-shadow: 0 10px 22px rgba(7, 132, 127, 0.18);
}

:root[data-theme="light"] .primary-action:hover {
  background: #096e6b;
}

:root[data-theme="light"] .ghost-action {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
}

:root[data-theme="light"] .resume-note {
  border-color: rgba(7, 132, 127, 0.24);
  background: rgba(7, 132, 127, 0.08);
}

:root[data-theme="light"] .assessment-preview,
:root[data-theme="light"] .quiz-status,
:root[data-theme="light"] .question-card,
:root[data-theme="light"] .result-content,
:root[data-theme="light"] .policy-content {
  background: var(--surface);
}

:root[data-theme="light"] .preview-progress {
  background: #e7edf2;
}

:root[data-theme="light"] .progress-track {
  background: #e8e4dc;
}

:root[data-theme="light"] .preview-matrix,
:root[data-theme="light"] .preview-matrix-cell {
  border-color: #ccd5dd;
}

:root[data-theme="light"] .preview-matrix {
  background: #fff;
}

:root[data-theme="light"] .preview-matrix-cell.is-missing {
  background: #eefafa;
}

:root[data-theme="light"] .preview-option {
  background: #fff;
}

:root[data-theme="light"] .preview-option.is-selected {
  box-shadow: inset 0 0 0 2px rgba(7, 132, 127, 0.22);
}

:root[data-theme="light"] .preview-performance {
  background: #f8fafc;
}

:root[data-theme="light"] .preview-domain-bars span {
  background:
    linear-gradient(90deg, var(--teal) var(--value), transparent var(--value)),
    #e0e8ee;
}

:root[data-theme="light"] .question-card {
  border-color: #cac4b8;
  box-shadow: 0 12px 36px rgba(16, 24, 32, 0.08);
}

:root[data-theme="light"] .matrix-grid {
  border-color: #d6d0c4;
  background:
    linear-gradient(90deg, rgba(16, 24, 32, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(16, 24, 32, 0.035) 1px, transparent 1px),
    #f8f7f2;
  background-size: 16px 16px;
}

:root[data-theme="light"] .matrix-cell {
  border-color: #d8d2c7;
  background: rgba(255, 255, 255, 0.94);
}

:root[data-theme="light"] .matrix-cell.is-missing {
  background: #fff8eb;
}

:root[data-theme="light"] .option {
  background: #fbfaf7;
}

:root[data-theme="light"] .option:has(input:checked) {
  background: #eef7f4;
}

:root[data-theme="light"] .option-label,
:root[data-theme="light"] .insight-card span {
  background: #101820;
  color: #fff;
}

:root[data-theme="light"] .option-visual {
  border-color: #e1dcd2;
  background: #fff;
}

:root[data-theme="light"] .validation-message {
  color: #a13e2c;
}

:root[data-theme="light"] .result-section {
  background: #e7efe9;
}

:root[data-theme="light"] .result-content {
  border-color: #bed4c9;
}

:root[data-theme="light"] .result-hero-card,
:root[data-theme="light"] .result-metrics div,
:root[data-theme="light"] .profile-summary,
:root[data-theme="light"] .result-deep-card,
:root[data-theme="light"] .share-card-metrics div,
:root[data-theme="light"] .domain-row,
:root[data-theme="light"] .insight-card,
:root[data-theme="light"] .faq-item,
:root[data-theme="light"] .guide-grid article {
  background: #fbfaf7;
}

:root[data-theme="light"] .question-jump-button {
  background: #fbfaf7;
}

:root[data-theme="light"] .question-jump-button[data-state="answered"] {
  border-color: rgba(7, 132, 127, 0.34);
  background: rgba(7, 132, 127, 0.1);
}

:root[data-theme="light"] .question-jump-button[aria-current="true"] {
  background: var(--teal);
  color: #fff;
}

:root[data-theme="light"] .share-card {
  border-color: rgba(7, 132, 127, 0.28);
  background:
    linear-gradient(135deg, rgba(7, 132, 127, 0.1), rgba(217, 154, 43, 0.08)),
    #fbfaf7;
}

:root[data-theme="light"] .result-hero-card.is-primary {
  border-color: rgba(36, 124, 122, 0.45);
  background: #eef7f4;
}

:root[data-theme="light"] .domain-bar {
  background: #e5e0d7;
}

:root[data-theme="light"] .ad-slot {
  border-color: rgba(16, 24, 32, 0.24);
  background: #fbfaf7;
}

:root[data-theme="light"] .landing-leaderboard-slot,
:root[data-theme="light"] .quiz-ad-slot,
:root[data-theme="light"] .result-summary-ad-slot {
  background: #fff;
}

:root[data-theme="light"] .consent-banner {
  background: rgba(255, 255, 255, 0.96);
}

:root[data-theme="light"] .guide-section {
  background: #fff;
}

:root[data-theme="light"] .site-footer {
  border-top-color: rgba(18, 27, 42, 0.08);
  background: rgba(255, 255, 255, 0.68);
}

@media (max-width: 900px) {
  :root[data-theme="dark"] .hero-proof li,
  :root[data-theme="dark"] .hero-proof li + li {
    background: var(--surface);
  }

  :root[data-theme="light"] .hero-proof li,
  :root[data-theme="light"] .hero-proof li + li {
    background: #fff;
  }
}
