:root {
  --bg: #f7fbff;
  --bg-soft: #eef7ff;
  --bg-accent: #f8f5ff;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-strong: #ffffff;
  --line: rgba(66, 101, 148, 0.12);
  --line-strong: rgba(66, 101, 148, 0.22);
  --text: #10233b;
  --muted: #5f7591;
  --muted-2: #7a8fa8;
  --blue: #3c67ef;
  --turquoise: #26c6d7;
  --violet: #9a4de2;
  --orange: #ff9a52;
  --danger: #e85e66;
  --ok: #1f9d61;
  --shadow: 0 24px 60px rgba(27, 62, 111, 0.12);
  --shadow-soft: 0 12px 34px rgba(27, 62, 111, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --container: 1120px;
  --font-ui: "Manrope", "Segoe UI", sans-serif;
  --font-display: "Manrope", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { color-scheme: light; }
body {
  font-family: var(--font-ui);
  color: var(--text);
  background:
    radial-gradient(900px 420px at 12% -8%, rgba(60, 103, 239, 0.14), transparent 70%),
    radial-gradient(780px 360px at 100% 6%, rgba(154, 77, 226, 0.12), transparent 72%),
    radial-gradient(720px 380px at 88% 96%, rgba(255, 154, 82, 0.08), transparent 74%),
    radial-gradient(800px 420px at 0% 100%, rgba(38, 198, 215, 0.11), transparent 72%),
    linear-gradient(180deg, #fbfdff 0%, #f6fbff 38%, #f8fbff 100%);
  min-height: 100vh;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.page-shell {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
  position: relative;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
  filter: blur(8px);
}
.page-shell::before {
  width: 360px;
  height: 360px;
  left: -120px;
  top: 120px;
  background: radial-gradient(circle, rgba(27, 201, 201, 0.18), transparent 68%);
}
.page-shell::after {
  width: 420px;
  height: 420px;
  right: -110px;
  top: 60px;
  background: radial-gradient(circle, rgba(123, 92, 255, 0.14), transparent 70%);
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  gap: 1rem;
}
.top-nav .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #10233b;
}
.brand-mark {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  background: #fff url("../img/favicon/favicon.svg") center / 92% 92% no-repeat;
  box-shadow:
    0 10px 20px rgba(60, 103, 239, 0.18),
    0 10px 22px rgba(154, 77, 226, 0.12),
    0 0 0 1px rgba(255,255,255,0.7) inset;
  flex: 0 0 auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
}
.nav-links a:hover {
  border-color: rgba(47, 125, 246, 0.16);
  color: var(--text);
  background: rgba(47, 125, 246, 0.04);
}
.nav-links a.btn {
  font-weight: 700;
}
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover {
  color: #fff;
  font-weight: 800;
}

.btn {
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.85);
  color: var(--text);
  text-decoration: none;
  padding: 0.78rem 1.05rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 14px rgba(16, 35, 59, 0.04);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}
.btn:hover {
  border-color: rgba(47, 125, 246, 0.28);
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(27, 62, 111, 0.08);
}
.btn-primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--violet) 0%, var(--blue) 42%, var(--turquoise) 84%, rgba(255,154,82,0.95) 100%);
  background-size: 160% 160%;
  box-shadow: 0 14px 28px rgba(74, 97, 230, 0.22);
}
.btn-primary:hover {
  border-color: transparent;
  box-shadow: 0 16px 30px rgba(71, 101, 238, 0.28);
}
.btn-secondary {
  background: rgba(255,255,255,0.88);
}
.btn-danger {
  border-color: rgba(232, 94, 102, 0.25);
  color: #b53a43;
  background: rgba(232, 94, 102, 0.06);
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.hero {
  padding: 1.5rem 0 2.6rem;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 1rem;
  align-items: stretch;
}
.hero-card,
.panel {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,255,255,0.88));
  border: 1px solid rgba(66, 101, 148, 0.10);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.hero-card {
  padding: 2rem;
  overflow: hidden;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(130deg, rgba(154,77,226,0.18), rgba(60,103,239,0.22), rgba(38,198,215,0.18), rgba(255,154,82,0.12));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.hero-card::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -50px;
  bottom: -70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(60,103,239,0.14), rgba(154,77,226,0.10) 45%, transparent 72%);
  pointer-events: none;
}
.hero-logo {
  width: min(190px, 46%);
  height: auto;
  margin: 0 0 .55rem;
  filter: drop-shadow(0 8px 16px rgba(60, 103, 239, 0.12));
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #355fdc;
  border: 1px solid rgba(47,125,246,0.16);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(47,125,246,0.05);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 2.5vw, 3.15rem);
  line-height: 1.03;
  margin: 0.95rem 0 0.9rem;
  letter-spacing: -0.03em;
  color: #10233b;
}
.hero p.lead {
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.65;
  max-width: 62ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}
.hero-attention-note {
  margin: 0.35rem 0 0;
  color: #6f7f93;
  font-size: 0.86rem;
  line-height: 1.45;
  max-width: 62ch;
}
.disclaimer-inline {
  margin-top: 1rem;
  color: #784f16;
  font-size: 0.95rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 138, 61, 0.18);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 138, 61, 0.08), rgba(255, 138, 61, 0.04));
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}
.hero-summary-card {
  display: flex;
  flex-direction: column;
}
.hero-summary-card .metric-grid {
  flex: 1 1 auto;
  align-content: stretch;
  grid-auto-rows: minmax(0, 1fr);
}
.hero-summary-card .metric-tile {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.hero-summary-card > .small-muted {
  margin-top: auto !important;
  padding-top: 0.5rem;
}
.metric-tile {
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid rgba(66, 101, 148, 0.10);
  background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(245,250,255,0.8));
  box-shadow: var(--shadow-soft);
}
.metric-tile strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  color: #11273f;
}
.metric-tile span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.section {
  padding: 0.8rem 0 2.2rem;
}
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2vw, 2.1rem);
  margin: 0 0 0.55rem;
  letter-spacing: -0.02em;
  color: #11273f;
}
.section p.section-intro {
  color: var(--muted);
  margin: 0 0 1rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.feature-card {
  position: relative;
  padding: 1.15rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(66, 101, 148, 0.10);
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(249,252,255,0.88));
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.feature-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -35% auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27,201,201,0.08), transparent 70%);
}
.feature-card h3 { margin: 0 0 0.55rem; font-size: 1rem; color: #11273f; }
.feature-card p { margin: 0; color: var(--muted); line-height: 1.55; }
.feature-card .kicker {
  color: #2567d4;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.test-layout { padding: 1rem 0 2rem; }
.test-shell {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.sidebar {
  position: sticky;
  top: 1rem;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(245,249,255,0.92));
}
.sidebar h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.sidebar p { color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
.progress {
  margin: 1rem 0;
  height: 10px;
  background: rgba(47, 125, 246, 0.06);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(47, 125, 246, 0.08);
}
.progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--turquoise), var(--violet));
  box-shadow: 0 0 14px rgba(47,125,246,0.28);
  transition: width 260ms ease;
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
}
.step-list {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.8rem;
}
.step-item {
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(66, 101, 148, 0.08);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  background: rgba(255,255,255,0.58);
}
.step-item.active {
  color: var(--text);
  border-color: rgba(47,125,246,0.22);
  background: linear-gradient(180deg, rgba(47,125,246,0.07), rgba(27,201,201,0.05));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.65);
}
.step-item.done {
  color: #176748;
  border-color: rgba(31,157,97,0.18);
  background: rgba(31,157,97,0.05);
}
.main-panel {
  padding: 1.2rem;
  min-height: 72vh;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(249,252,255,0.92));
}
.main-panel h1,
.main-panel h2,
.main-panel h3 {
  margin-top: 0;
  color: #11273f;
  letter-spacing: -0.02em;
}
.main-panel p { color: var(--muted); line-height: 1.6; }
.notice {
  padding: 0.95rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 138, 61, 0.16);
  background: linear-gradient(180deg, rgba(255,138,61,0.08), rgba(255,138,61,0.04));
  color: #7a511c;
}
.notice.notice-success {
  border-color: rgba(31, 157, 97, 0.18);
  background: linear-gradient(180deg, rgba(31,157,97,0.10), rgba(31,157,97,0.04));
  color: #176748;
}
.error-box {
  border: 1px solid rgba(232, 94, 102, 0.18);
  background: rgba(232, 94, 102, 0.06);
  color: #b53a43;
  padding: 0.9rem 1rem;
  border-radius: 12px;
}
.success-box {
  border: 1px solid rgba(31, 157, 97, 0.18);
  background: rgba(31, 157, 97, 0.06);
  color: #176748;
  padding: 0.9rem 1rem;
  border-radius: 12px;
}

.form-grid { display: grid; gap: 1rem; }
.form-row { display: grid; gap: 0.45rem; }
label { font-weight: 700; color: #1a3553; }
select, input[type="text"], input[type="number"], textarea {
  width: 100%;
  padding: 0.78rem 0.88rem;
  color: var(--text);
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(66, 101, 148, 0.14);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
}
select:focus, input:focus, textarea:focus {
  outline: 2px solid rgba(47, 125, 246, 0.2);
  border-color: rgba(47, 125, 246, 0.3);
  outline-offset: 1px;
}
.form-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; }
.helper-text { color: var(--muted-2); font-size: 0.9rem; }

.cards-grid { display: grid; gap: 0.8rem; }
.cards-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  border: 1px solid rgba(66, 101, 148, 0.10);
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(248,252,255,0.88));
  border-radius: 16px;
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}
.card.highlight {
  border-color: rgba(47,125,246,0.18);
  background:
    radial-gradient(240px 140px at 100% 0%, rgba(27,201,201,0.10), transparent 70%),
    radial-gradient(180px 120px at 0% 100%, rgba(123,92,255,0.08), transparent 72%),
    linear-gradient(180deg, rgba(255,255,255,0.97), rgba(247,252,255,0.92));
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  width: min(100%, 460px);
  margin: 1rem 0;
}
.matrix-cell {
  aspect-ratio: 1;
  border-radius: 14px;
  border: 1px solid rgba(66, 101, 148, 0.10);
  background: linear-gradient(180deg, #ffffff, #f6fbff);
  display: grid;
  place-items: center;
  min-height: 84px;
  padding: 0.25rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}
.matrix-cell.missing {
  border-style: dashed;
  color: var(--muted-2);
  font-weight: 800;
  background: linear-gradient(180deg, rgba(47,125,246,0.03), rgba(123,92,255,0.03));
}
.glyph {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.15rem;
  width: 100%;
}
.glyph-token {
  display: inline-block;
  font-size: 1.08rem;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255,255,255,0.85);
}
.option-btn {
  border-radius: 14px;
  border: 1px solid rgba(66, 101, 148, 0.12);
  background: linear-gradient(180deg, #fff, #f7fbff);
  padding: 0.6rem;
  min-height: 84px;
  box-shadow: 0 6px 14px rgba(16, 35, 59, 0.04);
}
.option-btn:hover {
  border-color: rgba(47,125,246,0.28);
  background: linear-gradient(180deg, rgba(47,125,246,0.03), rgba(27,201,201,0.03));
}
.option-label {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.35rem;
  text-align: center;
  font-weight: 600;
}

.question-card {
  border: 1px solid rgba(66, 101, 148, 0.10);
  border-radius: 14px;
  padding: 0.9rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(249,252,255,0.88));
  box-shadow: 0 8px 18px rgba(27, 62, 111, 0.04);
}
.question-card h4 {
  margin: 0 0 0.6rem;
  font-size: 0.98rem;
  line-height: 1.45;
  color: #17314d;
}
.likert {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.35rem;
}
.likert.likert-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.likert label {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  border: 1px solid rgba(66, 101, 148, 0.12);
  border-radius: 12px;
  padding: 0.45rem 0.3rem;
  background: rgba(255,255,255,0.86);
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.82rem;
  transition: border-color 120ms ease, background-color 120ms ease, transform 120ms ease;
}
.likert label:hover {
  border-color: rgba(47,125,246,0.22);
  background: rgba(47,125,246,0.04);
}
.likert input { accent-color: var(--blue); }
.likert label:has(input:checked) {
  color: var(--text);
  border-color: rgba(47,125,246,0.28);
  background:
    linear-gradient(180deg, rgba(47,125,246,0.07), rgba(27,201,201,0.05));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.7);
}
.scale-help {
  display: grid;
  grid-template-columns: 1fr auto;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 0.5rem;
}

.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  border: 1px solid rgba(66, 101, 148, 0.16);
  border-bottom-width: 2px;
  border-radius: 8px;
  padding: 0.2rem 0.35rem;
  font-size: 0.85rem;
  background: #fff;
  color: #14324f;
}
.timer {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.stat-row { display: flex; gap: 0.65rem; flex-wrap: wrap; }
.badge {
  padding: 0.36rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(66, 101, 148, 0.12);
  color: var(--muted);
  font-size: 0.84rem;
  background: rgba(255,255,255,0.8);
  font-weight: 700;
}
.badge.accent {
  border-color: rgba(255,138,61,0.18);
  color: #8a541c;
  background: rgba(255,138,61,0.06);
}
.badge.ok {
  border-color: rgba(31,157,97,0.18);
  color: #176748;
  background: rgba(31,157,97,0.06);
}
.badge.warn {
  border-color: rgba(232,94,102,0.18);
  color: #b53a43;
  background: rgba(232,94,102,0.06);
}

.footer-note {
  color: var(--muted);
  font-size: 0.88rem;
  padding: 0.8rem 0 2rem;
  text-align: center;
}
.footer-note a {
  color: #355fdc;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(53,95,220,0.25);
}
.footer-note a:hover {
  color: #214cc8;
  border-bottom-color: rgba(33,76,200,0.45);
}

.result-shell {
  padding: 1rem 0 2.5rem;
  display: grid;
  gap: 1rem;
}
.result-hero {
  padding: 1.25rem;
  background:
    radial-gradient(260px 160px at 100% 0%, rgba(47,125,246,0.08), transparent 70%),
    radial-gradient(220px 130px at 0% 100%, rgba(255,138,61,0.07), transparent 72%),
    linear-gradient(180deg, rgba(255,255,255,0.97), rgba(248,252,255,0.92));
}
.result-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th,
.table td {
  border-bottom: 1px solid rgba(66, 101, 148, 0.10);
  padding: 0.72rem 0.45rem;
  text-align: left;
  vertical-align: top;
}
.table th {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pill {
  display: inline-block;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(66, 101, 148, 0.12);
  font-weight: 800;
  letter-spacing: 0.02em;
  background: rgba(255,255,255,0.9);
}
.pill.faible {
  color: #176748;
  border-color: rgba(31,157,97,0.2);
  background: rgba(31,157,97,0.06);
}
.pill.modere {
  color: #8a541c;
  border-color: rgba(255,138,61,0.2);
  background: rgba(255,138,61,0.08);
}
.pill.fort {
  color: #9a2b5e;
  border-color: rgba(123,92,255,0.22);
  background: rgba(123,92,255,0.08);
}
.small-muted { color: var(--muted); font-size: 0.88rem; }
.print-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }

.task-gauge {
  margin-top: 0.6rem;
  max-width: 360px;
}
.task-gauge-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(66, 101, 148, 0.12);
  background: rgba(255,255,255,0.7);
  overflow: hidden;
}
.task-gauge-fill {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(232,94,102,0.75) 0%,
      rgba(255,138,61,0.75) 24%,
      rgba(255,194,66,0.7) 46%,
      rgba(27,201,201,0.7) 70%,
      rgba(47,125,246,0.75) 100%);
}
.task-gauge-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #163452;
  box-shadow: 0 2px 8px rgba(16, 35, 59, 0.18);
}
.task-gauge-scale {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.2;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 35, 59, 0.36);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 1rem;
  z-index: 1000;
}

.modal-dialog {
  width: min(680px, 100%);
  padding: 1rem;
  box-shadow: 0 24px 70px rgba(16, 35, 59, 0.2);
}

.report-page {
  color: #13263f;
  background:
    radial-gradient(700px 320px at 0% 0%, rgba(47,125,246,0.08), transparent 70%),
    radial-gradient(600px 300px at 100% 0%, rgba(123,92,255,0.07), transparent 70%),
    linear-gradient(180deg, #f8fbff, #f4f8ff);
  font-family: var(--font-ui);
}
.report-wrap {
  width: min(980px, calc(100% - 2rem));
  margin: 1rem auto 2rem;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(27, 62, 111, 0.12);
  padding: 1.2rem 1.4rem;
  border: 1px solid rgba(66, 101, 148, 0.10);
}
.report-wrap h1,
.report-wrap h2 {
  font-family: var(--font-display);
  color: #10233b;
  letter-spacing: -0.02em;
}
.report-wrap h1 { margin: 0; font-weight: 800; }
.report-wrap h2 { margin-top: 1.2rem; margin-bottom: 0.45rem; font-weight: 800; }
.report-wrap p { color: #3d5570; line-height: 1.55; }
.report-wrap .report-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0.8rem 0 1rem;
}
.report-wrap .meta-box {
  border: 1px solid rgba(66, 101, 148, 0.10);
  border-radius: 12px;
  padding: 0.75rem;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}
.report-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.report-wrap th,
.report-wrap td {
  border: 1px solid rgba(66, 101, 148, 0.10);
  padding: 0.55rem 0.6rem;
  text-align: left;
  vertical-align: top;
}
.report-wrap th {
  background: #f5f9ff;
  color: #294867;
}
.report-wrap .disclaimer {
  border: 1px solid rgba(255, 138, 61, 0.18);
  background: linear-gradient(180deg, rgba(255,138,61,0.08), rgba(255,138,61,0.03));
  color: #734917;
  padding: 0.8rem;
  border-radius: 12px;
}
.report-print-bar {
  width: min(980px, calc(100% - 2rem));
  margin: 1rem auto 0;
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

hr {
  border: none;
  border-top: 1px solid rgba(66, 101, 148, 0.10);
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .test-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .result-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .cards-grid.cols-2,
  .cards-grid.cols-4 { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr; }
  .hero-summary-card .metric-grid { grid-auto-rows: auto; }
  .likert { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .likert.likert-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .matrix-cell { min-height: 72px; }
  .main-panel { padding: 1rem; }
  .hero-card { padding: 1.2rem; }
  .nav-links { display: none; }
  .report-wrap .report-meta { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  body.report-page { background: #fff; }
  .report-print-bar { display: none !important; }
  .report-wrap {
    width: 100%;
    margin: 0;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
  }
}
