/* =========================================================
   UNFOLD YOURSELF — SOFT EDITORIAL TECH
   Fase 1: centrale themalaag, globale componenten en dark mode.

   Deze stylesheet wordt als laatste geladen. Daardoor blijven
   bestaande test- en rapportmodules functioneel ongewijzigd.
========================================================= */

/* =========================================================
   1. DESIGNTOKENS — LIGHT
========================================================= */

:root,
html[data-theme="light"] {
  color-scheme: light;

  --bg-app: #f7eee5;
  --bg-alt: #f7eee5;
  --surface-1: #fbf6f3;
  --surface-2: #f6eee9;
  --surface-3: #f2e7e1;
  --surface-glass: rgba(251, 246, 243, 0.90);

  --text-primary: #181b2c;
  --text-secondary: #625f67;
  --text-muted: #827d84;
  --text-on-accent: #f9f4f0;

  --border-soft: #dfd3ca;
  --border-strong: #cdbeb4;

  --accent-magenta: #f90e8e;
  --accent-magenta-dark: #d90c7c;
  --accent-rose: #f84f6c;
  --accent-gold: #f9ce66;
  --accent-gold-dark: #946100;
  --accent-mint: #0cd29f;
  --accent-mint-dark: #08795f;
  --accent-ink: #181b2c;
  --accent-peach: #ffb59d;
  --accent-blue: #0d93d1;
  --accent-blue-dark: #0874aa;
  --accent-lilac: #aa0dd1;

  --barbie-pink: #f90e8e;
  --bubblegum-pink: #f84f6c;
  --royal-gold: #f9ce66;
  --mint-leaf: #0cd29f;
  --strong-cyan: #0dced1;
  --blue-bell: #0d93d1;
  --dark-violet: #aa0dd1;

  --shadow-xs: 0 2px 8px rgba(55, 45, 40, 0.045);
  --shadow-sm: 0 5px 18px rgba(55, 45, 40, 0.065);
  --shadow-md: 0 12px 34px rgba(55, 45, 40, 0.085);
  --shadow-lg: 0 24px 58px rgba(55, 45, 40, 0.11);

  --focus-ring: rgba(255, 10, 143, 0.34);
  --selection-soft: rgba(255, 10, 143, 0.075);
  --mint-soft: rgba(6, 214, 160, 0.105);
  --gold-soft: rgba(255, 209, 102, 0.16);
  --rose-soft: rgba(255, 77, 109, 0.105);
  --blue-soft: rgba(116, 185, 255, 0.13);
  --lilac-soft: rgba(184, 161, 255, 0.13);

  /* Compatibiliteit met de bestaande applicatiestijlen. */
  --background: var(--bg-app);
  --surface: var(--surface-1);
  --surface-soft: var(--surface-2);
  --text: var(--text-primary);
  --muted: var(--text-secondary);
  --muted-text: var(--text-secondary);
  --line: var(--border-soft);
  --primary: var(--accent-magenta);
  --primary-dark: var(--accent-magenta-dark);
  --secondary: var(--accent-ink);
  --success: var(--accent-mint-dark);
  --shadow: var(--shadow-lg);
  --shadow-soft: var(--shadow-sm);

  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --radius-pill: 999px;
}

/* =========================================================
   2. DESIGNTOKENS — DARK
========================================================= */

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

  --bg-app: #252541;
  --bg-alt: #252541;
  --surface-1: #181b2c;
  --surface-2: #20243a;
  --surface-3: #292d48;
  --surface-glass: rgba(24, 27, 44, 0.92);

  --text-primary: #fbf6f3;
  --text-secondary: #cbc6c5;
  --text-muted: #aaa5ab;
  --text-on-accent: #f9f4f0;

  --border-soft: #353951;
  --border-strong: #494e6b;

  --accent-magenta: #f90e8e;
  --accent-magenta-dark: #ff58b2;
  --accent-rose: #f84f6c;
  --accent-gold: #f9ce66;
  --accent-gold-dark: #f9ce66;
  --accent-mint: #0cd29f;
  --accent-mint-dark: #0cd29f;
  --accent-ink: #181b2c;
  --accent-peach: #ffbea9;
  --accent-blue: #0d93d1;
  --accent-blue-dark: #0d93d1;
  --accent-lilac: #aa0dd1;

  --barbie-pink: #f90e8e;
  --bubblegum-pink: #f84f6c;
  --royal-gold: #f9ce66;
  --mint-leaf: #0cd29f;
  --strong-cyan: #0dced1;
  --blue-bell: #0d93d1;
  --dark-violet: #aa0dd1;

  --shadow-xs: 0 2px 10px rgba(0, 0, 0, 0.16);
  --shadow-sm: 0 6px 22px rgba(0, 0, 0, 0.22);
  --shadow-md: 0 14px 38px rgba(0, 0, 0, 0.29);
  --shadow-lg: 0 28px 66px rgba(0, 0, 0, 0.38);

  --focus-ring: rgba(255, 44, 160, 0.44);
  --selection-soft: rgba(255, 44, 160, 0.13);
  --mint-soft: rgba(35, 227, 176, 0.12);
  --gold-soft: rgba(255, 214, 110, 0.13);
  --rose-soft: rgba(255, 102, 128, 0.12);
  --blue-soft: rgba(134, 197, 255, 0.12);
  --lilac-soft: rgba(196, 178, 255, 0.13);

  --background: var(--bg-app);
  --surface: var(--surface-1);
  --surface-soft: var(--surface-2);
  --text: var(--text-primary);
  --muted: var(--text-secondary);
  --muted-text: var(--text-secondary);
  --line: var(--border-soft);
  --primary: var(--accent-magenta);
  --primary-dark: var(--accent-magenta-dark);
  --secondary: var(--accent-ink);
  --success: var(--accent-mint);
  --shadow: var(--shadow-lg);
  --shadow-soft: var(--shadow-sm);
}

/* =========================================================
   3. TYPOGRAFIE, BASIS EN TRANSITIES
========================================================= */

html {
  background: var(--bg-app);
}

body {
  color: var(--text-primary);
  background:
    radial-gradient(circle at 6% 2%, var(--lilac-soft), transparent 28rem),
    radial-gradient(circle at 96% 12%, var(--mint-soft), transparent 26rem),
    var(--bg-app);
  font-family:
    Inter,
    "Segoe UI Variable",
    "SF Pro Display",
    "SF Pro Text",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 1rem;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
}

html.theme-ready body,
html.theme-ready .site-header,
html.theme-ready .button,
html.theme-ready .theme-toggle-button,
html.theme-ready .answer-option,
html.theme-ready .domain-node,
html.theme-ready .test-card,
html.theme-ready .result-content-card,
html.theme-ready .dimension-card,
html.theme-ready .facet-report,
html.theme-ready .total-report-workspace {
  transition:
    color 180ms ease,
    background-color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-primary);
  font-family:
    Inter,
    "Segoe UI Variable Display",
    "SF Pro Display",
    system-ui,
    sans-serif;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p,
li,
small,
.section-heading > p,
.hero-intro,
.dialog-intro,
.test-description,
.question-instruction {
  color: var(--text-secondary);
}

::selection {
  color: var(--text-primary);
  background: rgba(255, 10, 143, 0.2);
}

:where(
  a,
  button,
  input,
  select,
  textarea,
  summary,
  [tabindex]
):focus-visible {
  outline: 3px solid var(--focus-ring) !important;
  outline-offset: 3px;
}

/* =========================================================
   4. HEADER, MERK EN THEMAKNOP
========================================================= */

.site-header {
  border-bottom-color: color-mix(in srgb, var(--border-soft) 82%, transparent);
  background: color-mix(in srgb, var(--bg-app) 82%, transparent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(22px) saturate(145%);
}

.header-inner {
  min-height: 82px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(145deg, var(--accent-magenta), var(--accent-rose));
  box-shadow: 0 12px 28px color-mix(in srgb, var(--accent-magenta) 28%, transparent);
}

.brand-text strong {
  color: var(--text-primary);
  font-weight: 820;
  letter-spacing: -0.025em;
}

.brand-text small,
.main-nav > a {
  color: var(--text-secondary);
}

.main-nav > a:hover,
.main-nav > a:focus-visible {
  color: var(--accent-magenta);
}

.theme-toggle-button {
  min-width: 92px;
  min-height: 42px;
  padding: 5px 11px 5px 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  background: var(--surface-glass);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 780;
  white-space: nowrap;
  backdrop-filter: blur(14px);
}

.theme-toggle-button:hover {
  border-color: color-mix(in srgb, var(--accent-magenta) 42%, var(--border-soft));
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.theme-toggle-track {
  position: relative;
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: var(--accent-ink);
  background: var(--accent-gold);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

.theme-icon {
  position: absolute;
  display: grid;
  place-items: center;
  font-size: 0.92rem;
  line-height: 1;
  transition: opacity 180ms ease, transform 220ms ease;
}

.theme-icon-moon {
  opacity: 0;
  transform: translateY(14px) rotate(25deg);
}

html[data-theme="dark"] .theme-toggle-track {
  color: #fff;
  background: linear-gradient(145deg, var(--accent-lilac), var(--accent-magenta));
}

html[data-theme="dark"] .theme-icon-sun {
  opacity: 0;
  transform: translateY(-14px) rotate(-25deg);
}

html[data-theme="dark"] .theme-icon-moon {
  opacity: 1;
  transform: translateY(0) rotate(0);
}

.menu-button,
.icon-button,
.back-button {
  border-color: var(--border-soft);
  color: var(--text-primary);
  background: var(--surface-1);
  box-shadow: var(--shadow-xs);
}

.menu-button span:not(.sr-only) {
  background: var(--text-primary);
}

/* =========================================================
   5. KNOPPEN EN INTERACTIE
========================================================= */

.button {
  min-height: 48px;
  border-radius: var(--radius-pill);
  font-weight: 780;
  letter-spacing: -0.01em;
  box-shadow: none;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary,
.test-start-button,
.total-report-mode-tab[aria-selected="true"] {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-magenta), var(--accent-rose));
  box-shadow: 0 10px 26px color-mix(in srgb, var(--accent-magenta) 24%, transparent);
}

.button-primary:hover,
.test-start-button:hover {
  background: linear-gradient(135deg, var(--accent-magenta-dark), var(--accent-magenta));
  box-shadow: 0 13px 30px color-mix(in srgb, var(--accent-magenta) 30%, transparent);
}

.button-secondary,
.button-ghost,
.save-exit-button,
.facet-toggle-button {
  border-color: var(--border-soft);
  color: var(--text-primary);
  background: var(--surface-1);
}

.button-secondary:hover,
.button-ghost:hover,
.save-exit-button:hover,
.facet-toggle-button:hover {
  border-color: color-mix(in srgb, var(--accent-magenta) 38%, var(--border-soft));
  background: var(--surface-3);
}

.text-button {
  color: var(--accent-magenta-dark);
}

/* =========================================================
   6. HERO, SECTIES EN ALGEMENE KAARTEN
========================================================= */

.hero {
  padding-top: clamp(70px, 9vw, 116px);
  padding-bottom: clamp(64px, 8vw, 104px);
}

.eyebrow,
.question-category,
.test-preview-label,
.result-card-label,
.result-method-label,
.test-evidence-label,
.facet-interpretation-label {
  color: var(--accent-magenta-dark);
}

.hero h1 {
  max-width: 15ch;
  font-size: clamp(2.55rem, 5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.052em;
}

.hero-intro {
  max-width: 61ch;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
}

.trust-row span {
  color: var(--text-secondary);
}

.trust-row i {
  color: var(--accent-mint-dark);
  background: var(--mint-soft);
}

.hero-card,
.dashboard-toolbar,
.wheel-center,
.domain-node,
.step-card,
.privacy-card,
.drawer,
.test-card,
.storage-dialog form,
.test-intro-main,
.test-preview-card,
.question-sidebar,
.question-card,
.result-content-card,
.dimension-card,
.facet-report,
.result-method-note,
.storage-backup-panel,
.identity-overview-card,
.identity-axis-card,
.career-group-button,
.career-skill-option,
.total-report-launcher-summary,
.total-report-mode-card,
.tr-card,
.tr-test-card {
  border-color: var(--border-soft);
  background-color: var(--surface-1);
  box-shadow: var(--shadow-sm);
}

.hero-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 84% 12%, var(--mint-soft), transparent 14rem),
    radial-gradient(circle at 10% 92%, var(--selection-soft), transparent 13rem),
    var(--surface-1);
  box-shadow: var(--shadow-lg);
}

.hero-card::before,
.hero-card::after {
  opacity: 0.48;
  filter: blur(14px);
}

.hero-card::before {
  width: 112px;
  height: 112px;
  right: 18px;
  top: 16px;
  background: var(--accent-magenta);
}

.hero-card::after {
  width: 72px;
  height: 72px;
  left: 18px;
  bottom: 84px;
  background: var(--accent-mint);
}

.progress-ring {
  background: conic-gradient(
    var(--accent-magenta) calc(var(--progress) * 1%),
    color-mix(in srgb, var(--border-soft) 72%, transparent) 0
  );
}

.progress-ring::before,
.progress-ring-inner,
.mini-stats div {
  background: var(--surface-1);
}

.mini-stats div,
.dashboard-toolbar,
.domain-node,
.step-card,
.privacy-card,
.test-card {
  border-radius: var(--radius-lg);
}

.profile-section,
.how-section {
  background: transparent;
}

.total-report-section {
  border-color: var(--border-soft);
  background:
    radial-gradient(circle at 90% 10%, var(--lilac-soft), transparent 30rem),
    linear-gradient(180deg, transparent, color-mix(in srgb, var(--bg-alt) 72%, transparent));
}

.dashboard-toolbar {
  padding: 22px 24px;
}

.linear-progress,
.question-progress,
.drawer-progress > div:first-child,
.dimension-bar,
.facet-bar {
  background: color-mix(in srgb, var(--border-soft) 64%, transparent);
}

.linear-progress span,
.question-progress span,
.drawer-progress .linear-progress span,
.dimension-bar span,
.facet-bar span {
  background: linear-gradient(90deg, var(--accent-magenta), var(--accent-rose));
}

.domain-node:hover,
.test-card:hover {
  border-color: color-mix(in srgb, var(--accent-magenta) 38%, var(--border-soft));
  box-shadow: var(--shadow-md);
}

.domain-icon,
.privacy-icon,
.information-icon,
.step-card > span {
  color: var(--accent-magenta-dark);
  background: var(--selection-soft);
}

.domain-percentage,
.test-status,
.total-report-mode-kicker {
  border-radius: var(--radius-pill);
}

/* =========================================================
   7. DIALOGEN, DRAWERS EN TESTWERKRUIMTE
========================================================= */

.overlay,
.storage-dialog::backdrop {
  background: rgba(17, 16, 31, 0.48);
  backdrop-filter: blur(4px);
}

.drawer,
.storage-dialog form {
  color: var(--text-primary);
  background: var(--surface-1);
}

.test-workspace,
.total-report-workspace {
  color: var(--text-primary);
  background:
    radial-gradient(circle at 8% 0%, var(--lilac-soft), transparent 30rem),
    var(--bg-app);
}

.test-topbar,
.total-report-topbar {
  border-bottom-color: var(--border-soft);
  background: color-mix(in srgb, var(--bg-app) 90%, transparent);
  backdrop-filter: blur(22px) saturate(140%);
}

.test-intro-main,
.question-card,
.result-hero,
.result-content-card,
.facet-report {
  border-radius: var(--radius-lg);
}

.test-guidance,
.test-information-item,
.answer-warning,
.test-evidence,
.result-method-note,
.facet-explanation,
.identity-detail-block {
  border-color: var(--border-soft);
  background-color: var(--surface-2);
}

/* =========================================================
   8. ANTWOORDOPTIES EN INVOER
========================================================= */

.answer-option,
.cognitive-answer-option,
.digital-skills-answer-button,
.leadership-answer-button,
.wec-rank-button,
.wec-selection-card,
.identity-multi-option,
.career-group-button,
.career-skill-option,
.work-values-impact-option,
.cognitive-mode-button,
.cognitive-module-card {
  border-color: var(--border-soft);
  color: var(--text-primary);
  background-color: var(--surface-1);
  box-shadow: var(--shadow-xs);
}

.answer-option:hover,
.cognitive-answer-option:hover,
.digital-skills-answer-button:hover,
.leadership-answer-button:hover,
.wec-rank-button:hover,
.wec-selection-card:hover,
.identity-multi-option:hover,
.career-group-button:hover,
.career-skill-option:hover,
.work-values-impact-option:hover,
.cognitive-mode-button:hover,
.cognitive-module-card:hover {
  border-color: color-mix(in srgb, var(--accent-magenta) 44%, var(--border-soft));
  background-color: var(--surface-3);
  box-shadow: var(--shadow-sm);
}

.answer-option.is-selected,
.cognitive-answer-option.is-selected,
.digital-skills-answer-button.is-selected,
.leadership-answer-button.is-selected,
.wec-rank-button.is-selected,
.wec-selection-card.is-selected,
.identity-multi-option.is-selected,
.career-group-button.is-selected,
.career-skill-option.is-selected,
.work-values-impact-option.is-selected,
.cognitive-mode-button.is-selected,
.cognitive-module-card.is-selected {
  border-color: var(--accent-magenta);
  color: var(--text-primary);
  background-color: var(--selection-soft);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--accent-magenta) 15%, transparent),
    var(--shadow-sm);
}

.answer-option-marker,
.cognitive-answer-marker,
.wec-selection-marker {
  border-color: var(--border-strong);
  background: var(--surface-1);
}

.answer-option.is-selected .answer-option-marker,
.cognitive-answer-option.is-selected .cognitive-answer-marker,
.wec-selection-card.is-selected .wec-selection-marker {
  border-color: var(--accent-magenta);
  background: var(--accent-magenta);
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea,
.identity-select,
.career-skill-search,
.career-custom-skill input {
  border-color: var(--border-soft);
  color: var(--text-primary);
  background: var(--surface-1);
  border-radius: var(--radius-sm);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

/* =========================================================
   9. RAPPORTEN EN TOTAALRAPPORT
========================================================= */

.result-hero,
.cognitive-result-hero,
.tr-hero {
  border-color: var(--border-soft);
  color: var(--text-primary);
  background:
    radial-gradient(circle at 92% 0%, var(--mint-soft), transparent 18rem),
    radial-gradient(circle at 6% 100%, var(--selection-soft), transparent 20rem),
    var(--surface-1);
  box-shadow: var(--shadow-md);
}

.result-score-card {
  border-color: color-mix(in srgb, var(--accent-magenta) 25%, var(--border-soft));
  color: var(--text-primary);
  background: var(--selection-soft);
}

.dimension-card,
.facet-domain-group,
.facet-item,
.identity-axis-card,
.cognitive-report-card,
.cognitive-dashboard-card,
.digital-skills-area-card,
.digital-skills-profile-card,
.leadership-style-card,
.ww-highlight,
.ww-combination-item,
.ww-dimension-panel,
.ww-support-note {
  border-color: var(--border-soft);
  background-color: var(--surface-1);
}

.uy-report-uniform {
  --uy-report-accent: var(--accent-magenta);
  --uy-report-accent-dark: var(--accent-magenta-dark);
  --uy-report-border: var(--border-soft);
  --uy-report-shadow: var(--shadow-sm);
}

.uy-report-uniform[data-report-reference="false"] .result-content-card[data-report-block="interpretation"] {
  border-left-color: var(--accent-lilac);
}

.uy-report-uniform[data-report-reference="false"] .result-content-card[data-report-block="strengths"],
.uy-report-uniform[data-report-reference="false"] .result-content-card[data-report-block="action"] {
  border-color: var(--accent-mint);
}

.uy-report-uniform[data-report-reference="false"] .result-content-card[data-report-block="development"],
.uy-report-uniform[data-report-reference="false"] .result-content-card[data-report-block="quality"] {
  border-color: var(--accent-gold);
}

.uy-report-uniform[data-report-reference="false"] details.uy-report-details,
.total-report-mode-tabs {
  border-color: var(--border-soft);
  background-color: var(--surface-1);
}

.uy-report-uniform[data-report-reference="false"] details.uy-report-details[open] {
  border-color: color-mix(in srgb, var(--accent-magenta) 42%, var(--border-soft));
  background-color: var(--selection-soft);
  box-shadow: var(--shadow-sm);
}

.uy-report-uniform .uy-report-toggle-label::before,
.uy-report-uniform .uy-report-section-toggle::before,
.uy-report-uniform[data-report-reference="false"] .result-card-label,
.uy-report-uniform[data-report-reference="false"] .result-method-label,
.uy-report-uniform[data-report-reference="false"] .facet-interpretation-label,
.total-report-mode-kicker {
  color: var(--accent-magenta-dark);
  background: var(--selection-soft);
}

.total-report-launcher-summary,
.total-report-mode-card,
.total-report-mode-tabs,
.tr-card,
.tr-test-card {
  color: var(--text-primary);
  background-color: var(--surface-1);
}

.total-report-mode-card.is-featured {
  border-color: color-mix(in srgb, var(--accent-magenta) 42%, var(--border-soft));
  background:
    linear-gradient(145deg, var(--selection-soft), transparent),
    var(--surface-1);
}

.total-report-mode-card ul,
.total-report-launcher-summary p,
.total-report-mode-card p,
.total-report-topbar-copy span {
  color: var(--text-secondary);
}

/* =========================================================
   10. DARK-MODECORRECTIES VOOR BESTAANDE HARDCODED KLEUREN
========================================================= */


html[data-theme="dark"] .wheel-center {
  border-color: color-mix(in srgb, var(--accent-magenta) 24%, var(--border-soft));
  color: var(--text-primary);
  background:
    radial-gradient(circle at 50% 18%, var(--lilac-soft), transparent 7rem),
    var(--surface-1);
  box-shadow: var(--shadow-lg);
}

html[data-theme="dark"] .wheel-center p {
  color: var(--text-secondary);
}

html[data-theme="dark"] .wheel-center > strong {
  color: var(--text-primary);
}

html[data-theme="dark"] .site-footer {
  border-top-color: var(--border-soft);
  background: var(--bg-alt);
}

html[data-theme="dark"] :where(
  .hero-card,
  .dashboard-toolbar,
  .wheel-center,
  .domain-node,
  .step-card,
  .privacy-card,
  .drawer,
  .test-card,
  .storage-dialog form,
  .test-intro-main,
  .test-preview-card,
  .question-sidebar,
  .question-card,
  .result-content-card,
  .dimension-card,
  .facet-report,
  .result-method-note,
  .storage-backup-panel,
  .identity-overview-card,
  .identity-axis-card,
  .career-group-button,
  .career-skill-option,
  .total-report-launcher-summary,
  .total-report-mode-card,
  .total-report-mode-tabs,
  .tr-card,
  .tr-test-card,
  .cognitive-module-card,
  .cognitive-dashboard-card,
  .cognitive-report-card,
  .digital-skills-area-card,
  .digital-skills-profile-card,
  .leadership-style-card,
  .ww-highlight,
  .ww-combination-item,
  .ww-dimension-panel,
  .ww-support-note,
  .wec-selection-card
) {
  color: var(--text-primary);
  background-color: var(--surface-1);
}

html[data-theme="dark"] :where(
  .hero-card-top,
  .mini-stats span,
  .domain-copy small,
  .test-card p,
  .question-instruction,
  .answer-option-copy small,
  .dimension-card-description,
  .result-content-card p,
  .result-content-card li,
  .facet-item-interpretation p,
  .identity-axis-detail p,
  .total-report-mode-card p,
  .total-report-mode-card li
) {
  color: var(--text-secondary);
}

html[data-theme="dark"] :where(
  .test-guidance,
  .test-information-item,
  .answer-warning,
  .test-evidence,
  .result-method-note,
  .facet-explanation,
  .identity-detail-block,
  .ww-highlight,
  .ww-combination-item,
  .ww-dimension-panel,
  .ww-support-note
) {
  background-color: var(--surface-2);
}

html[data-theme="dark"] .ww-highlight.is-positive,
html[data-theme="dark"] .ww-combination-item[data-tone="positive"],
html[data-theme="dark"] .ww-snapshot-item[data-tone="positive"] {
  border-color: color-mix(in srgb, var(--accent-mint) 42%, var(--border-soft));
  background-color: var(--mint-soft);
}

html[data-theme="dark"] .ww-highlight.is-watch,
html[data-theme="dark"] .ww-combination-item[data-tone="watch"],
html[data-theme="dark"] .ww-snapshot-item[data-tone="watch"] {
  border-color: color-mix(in srgb, var(--accent-gold) 42%, var(--border-soft));
  background-color: var(--gold-soft);
}

html[data-theme="dark"] .ww-highlight.is-risk,
html[data-theme="dark"] .ww-combination-item[data-tone="risk"],
html[data-theme="dark"] .ww-snapshot-item[data-tone="risk"] {
  border-color: color-mix(in srgb, var(--accent-rose) 42%, var(--border-soft));
  background-color: var(--rose-soft);
}

html[data-theme="dark"] .total-report-mode-tab[aria-selected="true"] {
  color: #fff;
}

html[data-theme="dark"] .skip-link,
html[data-theme="dark"] .toast {
  color: #fff;
  background: var(--accent-ink);
}

/* =========================================================
   11. MOBIEL — FASE 1
========================================================= */

@media (max-width: 900px) {
  .main-nav {
    border-color: var(--border-soft);
    background: var(--surface-1);
    box-shadow: var(--shadow-md);
  }

  .theme-toggle-button {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .header-inner {
    min-height: 72px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .brand-text small {
    display: none;
  }

  .hero {
    padding-top: 56px;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 12vw, 3.35rem);
  }

  .hero-card,
  .dashboard-toolbar,
  .question-card,
  .question-sidebar,
  .result-hero,
  .result-content-card,
  .facet-report,
  .total-report-launcher-summary,
  .total-report-mode-card {
    border-radius: 22px;
  }

  .button {
    min-height: 50px;
  }

  .answer-option,
  .cognitive-answer-option,
  .digital-skills-answer-button,
  .leadership-answer-button,
  .wec-rank-button,
  .wec-selection-card,
  .work-values-impact-option {
    min-height: 52px;
  }
}

/* =========================================================
   12. PRINT EN PDF — ALTIJD LICHT
========================================================= */

/* Printregels gecentraliseerd in print.css. */


/* =========================================================
   13. VERMINDERDE BEWEGING
========================================================= */

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


/* =========================================================
   14. FEEDBACKCORRECTIES v37 — VASTE PALETTEN EN EFFEN KAARTEN
========================================================= */

@media screen {
  body {
    background-image: none !important;
    background-color: var(--bg-app) !important;
  }

  .brand-mark {
    color: #f9f4f0;
    background: var(--accent-magenta) !important;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--accent-magenta) 22%, transparent);
  }

  .brand-symbol {
    width: 29px;
    height: 29px;
    display: block;
    fill: currentColor;
  }

  .brand-symbol ellipse {
    opacity: 0.94;
  }

  .brand-symbol circle {
    opacity: 1;
  }

  html[data-theme="light"] :where(
    .button-primary,
    .test-start-button,
    .total-report-mode-tab[aria-selected="true"]
  ) {
    border-color: transparent;
    color: #f9f4f0;
    background: #2b2a30 !important;
    box-shadow: 0 10px 24px rgba(43, 42, 48, 0.16);
  }

  html[data-theme="light"] :where(
    .button-primary,
    .test-start-button,
    .total-report-mode-tab[aria-selected="true"]
  ):hover {
    background: #181b2c !important;
  }

  html[data-theme="dark"] :where(
    .button-primary,
    .test-start-button,
    .total-report-mode-tab[aria-selected="true"]
  ) {
    border-color: transparent;
    color: #f9f4f0;
    background: linear-gradient(135deg, #f90e8e, #f84f6c) !important;
    box-shadow: 0 10px 26px rgba(249, 14, 142, 0.22);
  }

  html[data-theme="dark"] :where(
    .button-primary,
    .test-start-button,
    .total-report-mode-tab[aria-selected="true"]
  ):hover {
    background: linear-gradient(135deg, #e60d83, #ec4764) !important;
  }

  /* Geen decoratieve kleurvlekken of glow-cirkels. */
  .hero-card::before,
  .hero-card::after {
    display: none !important;
  }

  /* Kaders en rapportkaarten gebruiken effen oppervlakken. */
  :where(
    .hero-card,
    .wheel-center,
    .total-report-section,
    .total-report-workspace,
    .test-workspace,
    .result-hero,
    .cognitive-result-hero,
    .tr-hero,
    .total-report-mode-card.is-featured,
    .tr-card,
    .tr-theme-card,
    .tr-insight-card,
    .tr-test-card,
    .tr-source-card,
    .tr-empty-state,
    .ww-balance-score,
    .wec-radar-wrap,
    .leadership-complete-card,
    .digital-skills-area-score-card
  ) {
    background-image: none !important;
  }

  :where(
    .hero-card,
    .wheel-center,
    .result-hero,
    .cognitive-result-hero,
    .tr-hero,
    .total-report-mode-card.is-featured,
    .tr-card,
    .tr-theme-card,
    .tr-insight-card,
    .tr-test-card,
    .tr-source-card,
    .tr-empty-state,
    .ww-balance-score,
    .wec-radar-wrap
  ) {
    background-color: var(--surface-1) !important;
  }

  .total-report-section,
  .total-report-workspace,
  .test-workspace {
    background-color: var(--bg-app) !important;
  }

  .leadership-complete-card,
  .digital-skills-area-score-card {
    border: 1px solid var(--border-soft);
    color: var(--text-primary);
    background-color: var(--surface-1) !important;
  }

  .leadership-complete-card p,
  .digital-skills-area-score-card p {
    color: var(--text-secondary) !important;
  }

  /* Effen voortgangsbalken; per profielgebied één accentkleur. */
  :where(
    .linear-progress span,
    .question-progress span,
    .drawer-progress .linear-progress span,
    .dimension-bar span,
    .facet-bar span,
    .tr-meter > span
  ) {
    background-image: none !important;
    background-color: var(--accent-magenta) !important;
  }

  .total-report-domain-line .linear-progress > span,
  .tr-coverage-item .tr-meter > span {
    background-color: var(--domain-color, var(--accent-magenta)) !important;
  }

  .tr-coverage-item {
    border-top: 3px solid var(--domain-color, var(--accent-magenta));
    background-color: var(--surface-1) !important;
  }

  /* Profielwiel: één vaste kleur per gebied en echte lijniconen. */
  .domain-node {
    border-color: color-mix(in srgb, var(--domain-color) 34%, var(--border-soft));
    background-color: var(--surface-1) !important;
  }

  .domain-node:hover {
    border-color: var(--domain-color);
  }

  .domain-icon {
    color: var(--domain-color) !important;
    background: color-mix(in srgb, var(--domain-color) 12%, var(--surface-1)) !important;
  }

  .domain-icon svg {
    width: 24px;
    height: 24px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .domain-percentage {
    color: var(--domain-color) !important;
  }

  .drawer {
    --active-domain-color: var(--domain-color, var(--accent-magenta));
  }

  .drawer .linear-progress span,
  .test-card .test-status {
    background-color: var(--domain-color, var(--accent-magenta)) !important;
  }

  .test-card .test-status {
    color: #f9f4f0;
  }

  .test-card:hover {
    border-color: color-mix(in srgb, var(--domain-color, var(--accent-magenta)) 52%, var(--border-soft));
  }

  /* Centrale profielcirkel: icoon → percentage → voltooid → actie. */
  .wheel-center {
    gap: 0;
  }

  .wheel-center > strong {
    margin-top: 10px;
  }

  .wheel-progress-label {
    margin: 4px 0 0 !important;
    color: var(--text-secondary) !important;
    font-size: 0.8rem !important;
    font-weight: 750 !important;
  }

  .wheel-center .text-button {
    margin-top: 10px;
  }

  /* Inverse privacykaart: donker in light, licht in dark. */
  html[data-theme="light"] .privacy-card {
    border-color: #2b2a30;
    color: #f9f4f0;
    background: #2b2a30 !important;
  }

  html[data-theme="light"] .privacy-card :where(h3, p) {
    color: #f9f4f0 !important;
  }

  html[data-theme="light"] .privacy-card p {
    opacity: 0.78;
  }

  html[data-theme="light"] .privacy-icon {
    border-color: rgba(249, 244, 240, 0.22);
    color: #f9f4f0;
    background: rgba(249, 244, 240, 0.08) !important;
  }

  html[data-theme="dark"] .privacy-card {
    border-color: #fbf6f3;
    color: #181b2c;
    background: #fbf6f3 !important;
  }

  html[data-theme="dark"] .privacy-card :where(h3, p) {
    color: #181b2c !important;
  }

  html[data-theme="dark"] .privacy-card p {
    opacity: 0.76;
  }

  html[data-theme="dark"] .privacy-icon {
    border-color: rgba(24, 27, 44, 0.16);
    color: #f90e8e;
    background: rgba(249, 14, 142, 0.08) !important;
  }

  /* Rapporttonen: effen kaarten met één gekleurde rand. */
  .tr-card.is-positive,
  .tr-insight-card.is-positive {
    border-color: var(--accent-mint) !important;
    background-color: var(--surface-1) !important;
  }

  .tr-card.is-watch,
  .tr-insight-card.is-watch {
    border-color: var(--accent-rose) !important;
    background-color: var(--surface-1) !important;
  }

  .tr-card.is-context,
  .tr-insight-card.is-context {
    border-color: var(--accent-blue) !important;
    background-color: var(--surface-1) !important;
  }

  :where(
    .tr-card,
    .tr-theme-card,
    .tr-insight-card,
    .tr-test-card,
    .tr-source-card,
    .tr-empty-state
  ) :where(p, li) {
    color: var(--text-secondary) !important;
  }

  .total-report-mode-card.is-featured {
    border-color: var(--accent-magenta) !important;
  }
}

/* =========================================================
   15. MERKGRADIENT EN RAPPORTKEUZEACCENTEN v39
========================================================= */

:root,
html[data-theme="light"],
html[data-theme="dark"] {
  --brand-gradient: linear-gradient(
    135deg,
    var(--barbie-pink) 0%,
    var(--bubblegum-pink) 34%,
    var(--royal-gold) 80%
  );
}

@media screen {
  /* De vaste Unfold Yourself-merkgradient wordt uitsluitend op
     het merkicoon, de centrale profielavatar en de actieve
     voortgangsboog gebruikt. */
  .brand-mark,
  .avatar {
    background: var(--brand-gradient) !important;
  }

  .brand-mark {
    box-shadow: 0 10px 24px color-mix(in srgb, var(--barbie-pink) 20%, transparent);
  }

  .progress-ring {
    background: conic-gradient(
      from 0deg,
      var(--barbie-pink) 0%,
      var(--bubblegum-pink) calc(var(--progress) * 0.34%),
      var(--royal-gold) calc(var(--progress) * 0.80%),
      var(--royal-gold) calc(var(--progress) * 1%),
      color-mix(in srgb, var(--border-soft) 72%, transparent) calc(var(--progress) * 1%)
    ) !important;
  }

  /* Eén vaste accentkleur per rapportkeuze. */
  .total-report-mode-card.is-compact {
    --report-mode-accent: var(--bubblegum-pink);
  }

  .total-report-mode-card.is-full {
    --report-mode-accent: var(--royal-gold);
  }

  .total-report-mode-card.is-ultimate {
    --report-mode-accent: var(--mint-leaf);
  }

  .total-report-mode-card:is(.is-compact, .is-full, .is-ultimate) {
    border-color: var(--report-mode-accent) !important;
    background-color: var(--surface-1) !important;
    box-shadow: 0 12px 30px color-mix(in srgb, var(--report-mode-accent) 10%, transparent);
  }

  .total-report-mode-card:is(.is-compact, .is-full, .is-ultimate)
    .total-report-mode-kicker {
    color: #181b2c !important;
    background: var(--report-mode-accent) !important;
  }

  .total-report-mode-card:is(.is-compact, .is-full, .is-ultimate)
    .button {
    border-color: var(--report-mode-accent) !important;
    color: #181b2c !important;
    background: var(--report-mode-accent) !important;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--report-mode-accent) 22%, transparent) !important;
  }

  .total-report-mode-card:is(.is-compact, .is-full, .is-ultimate)
    .button:hover:not(:disabled) {
    border-color: color-mix(in srgb, var(--report-mode-accent) 84%, #181b2c) !important;
    background: color-mix(in srgb, var(--report-mode-accent) 88%, #ffffff) !important;
    box-shadow: 0 14px 30px color-mix(in srgb, var(--report-mode-accent) 28%, transparent) !important;
  }
}


/* =========================================================
   16. PROFIELGEBIEDGRADIENTEN EN CONTEXTUELE TESTACCENTEN v40
========================================================= */

:root,
html[data-theme="light"],
html[data-theme="dark"] {
  --gradient-persoonlijkheid: linear-gradient(135deg, #f90e8e 30%, #f84f6c 100%);
  --gradient-identiteit: linear-gradient(135deg, #f84f6c 30%, #f9ce66 100%);
  --gradient-werkorientatie: linear-gradient(135deg, #f9ce66 32%, #d6cf6e 65%, #8fcf7c 87%, #0cd29f 100%);
  --gradient-denken: linear-gradient(135deg, #0cd29f 40%, #0dced1 100%);
  --gradient-vaardigheden: linear-gradient(135deg, #0dced1 40%, #0d93d1 100%);
  --gradient-samenwerking: linear-gradient(135deg, #0d93d1 40%, #4c5dd1 71%, #aa0dd1 100%);
  --gradient-werkbeleving: linear-gradient(135deg, #aa0dd1 40%, #c00dbe 70%, #f90e8e 100%);
}

@media screen {
  /* Het totaalrapport-keuzeblok hoort uitsluitend bij de hoofdpagina. */
  body.test-active .total-report-section {
    display: none !important;
  }

  /* Neutrale introductiekaart: geen afwijkend blauw vlak. */
  .test-guidance {
    border: 1px solid var(--border-soft) !important;
    color: var(--text-primary) !important;
    background: var(--surface-2) !important;
    box-shadow: none !important;
  }

  .test-guidance :where(h3, li) {
    color: inherit !important;
  }

  .test-guidance ul {
    color: var(--text-secondary) !important;
  }

  /* In dark mode blijft 'Je ontvangt' bewust een lichte inverse kaart. */
  html[data-theme="dark"] .test-preview-card {
    border-color: #fbf6f3 !important;
    color: #181b2c !important;
    background: #fbf6f3 !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22) !important;
  }

  html[data-theme="dark"] .test-preview-card :where(h3, p, li) {
    color: #181b2c !important;
  }

  html[data-theme="dark"] .test-preview-card p {
    border-top-color: rgba(24, 27, 44, 0.14) !important;
    opacity: 0.76;
  }

  html[data-theme="dark"] .test-preview-card li::before {
    color: #181b2c !important;
    background: color-mix(in srgb, var(--test-accent, #f90e8e) 18%, #fbf6f3) !important;
  }

  /* -------------------------------------------------------
     Profielwiel: gradient als rand, icoonvlak en percentage.
  -------------------------------------------------------- */
  .domain-node {
    border: 1px solid transparent !important;
    background:
      linear-gradient(var(--surface-1), var(--surface-1)) padding-box,
      var(--domain-gradient, var(--brand-gradient)) border-box !important;
  }

  .domain-node:hover {
    border-color: transparent !important;
    box-shadow:
      var(--shadow-md),
      0 0 0 2px color-mix(in srgb, var(--domain-color, #f90e8e) 18%, transparent) !important;
  }

  .domain-icon {
    color: var(--domain-on-accent, #f9f4f0) !important;
    background: var(--domain-gradient, var(--brand-gradient)) !important;
    box-shadow: 0 8px 18px color-mix(in srgb, var(--domain-color, #f90e8e) 18%, transparent);
  }

  .domain-percentage,
  .drawer-progress strong {
    color: var(--domain-color, #f90e8e) !important;
  }

  @supports ((background-clip: text) or (-webkit-background-clip: text)) {
    .domain-percentage,
    .drawer-progress strong,
    .drawer > .drawer-header .eyebrow {
      color: transparent !important;
      background: var(--domain-gradient, var(--brand-gradient));
      background-clip: text;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
  }

  /* -------------------------------------------------------
     Profielgebied-zijpaneel: dezelfde gradient op alle
     gevulde accenten, voortgang, badges, knoppen en kaders.
  -------------------------------------------------------- */
  .drawer {
    --domain-gradient: var(--brand-gradient);
    --domain-on-accent: #f9f4f0;
  }

  .drawer .linear-progress > span {
    background: var(--domain-gradient) !important;
  }

  .drawer .test-card {
    border: 1px solid transparent !important;
    background:
      linear-gradient(var(--surface-1), var(--surface-1)) padding-box,
      var(--domain-gradient) border-box !important;
  }

  .drawer .test-card:hover {
    border-color: transparent !important;
    box-shadow:
      var(--shadow-md),
      0 0 0 2px color-mix(in srgb, var(--domain-color, #f90e8e) 16%, transparent) !important;
  }

  .drawer .test-status,
  .drawer .test-start-button {
    border-color: transparent !important;
    color: var(--domain-on-accent) !important;
    background: var(--domain-gradient) !important;
    box-shadow: 0 10px 22px color-mix(in srgb, var(--domain-color, #f90e8e) 22%, transparent) !important;
  }

  .drawer .test-start-button:hover:not(:disabled) {
    filter: brightness(1.05) saturate(1.05);
    transform: translateY(-1px);
  }

  .drawer .personality-model-back {
    border: 1px solid transparent !important;
    color: var(--text-primary) !important;
    background:
      linear-gradient(var(--surface-1), var(--surface-1)) padding-box,
      var(--domain-gradient) border-box !important;
  }

  /* -------------------------------------------------------
     Actieve test: alle generieke accenten volgen het gebied.
  -------------------------------------------------------- */
  .test-workspace {
    --test-accent: #f90e8e;
    --test-gradient: var(--gradient-persoonlijkheid);
    --test-on-accent: #f9f4f0;
    --primary: var(--test-accent);
    --primary-dark: var(--test-accent);
    --success: var(--test-accent);
  }

  html[data-theme] .test-workspace :where(
    .linear-progress > span,
    .question-progress > span,
    .dimension-bar > span,
    .facet-bar > span,
    .cognitive-progress-fill,
    .leadership-progress-fill,
    .ww-progress-fill,
    .wec-progress-fill,
    .digital-skills-progress-fill
  ) {
    background: var(--test-gradient) !important;
  }

  html[data-theme] .test-workspace :where(
    .button-primary,
    .test-start-button,
    .cognitive-status-badge,
    .leadership-status-badge,
    .digital-skills-status-badge,
    .ww-status-badge,
    .wec-status-badge
  ) {
    border-color: transparent !important;
    color: var(--test-on-accent) !important;
    background: var(--test-gradient) !important;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--test-accent) 22%, transparent) !important;
  }

  html[data-theme] .test-workspace :where(
    .button-primary,
    .test-start-button
  ):hover:not(:disabled) {
    filter: brightness(1.05) saturate(1.05);
    box-shadow: 0 14px 30px color-mix(in srgb, var(--test-accent) 28%, transparent) !important;
  }

  html[data-theme] .test-workspace :where(
    .eyebrow,
    .question-category,
    .test-preview-label,
    .result-card-label,
    .result-method-label,
    .test-evidence-label,
    .facet-interpretation-label,
    .facet-item-score,
    .dimension-card-header strong
  ) {
    color: var(--test-accent) !important;
  }

  @supports ((background-clip: text) or (-webkit-background-clip: text)) {
    html[data-theme] .test-workspace :where(
      .eyebrow,
      .question-category,
      .result-card-label,
      .result-method-label,
      .test-evidence-label,
      .facet-interpretation-label,
      .facet-item-score,
      .dimension-card-header strong
    ) {
      color: transparent !important;
      background: var(--test-gradient);
      background-clip: text;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
  }

  html[data-theme] .test-workspace .test-preview-label {
    color: var(--test-on-accent) !important;
    background: var(--test-gradient) !important;
  }

  html[data-theme="dark"] .test-workspace .test-preview-label {
    color: var(--test-on-accent) !important;
  }

  html[data-theme] .test-workspace :where(
    .test-intro-main,
    .question-card,
    .result-hero,
    .cognitive-result-hero,
    .result-content-card,
    .dimension-card,
    .facet-report,
    .result-method-note,
    .cognitive-dashboard-card,
    .leadership-complete-card
  ) {
    border: 1px solid transparent !important;
    background:
      linear-gradient(var(--surface-1), var(--surface-1)) padding-box,
      var(--test-gradient) border-box !important;
  }

  html[data-theme] .test-workspace :where(
    .answer-option,
    .cognitive-answer-option,
    .digital-skills-answer-button,
    .leadership-answer-button,
    .wec-rank-button,
    .wec-selection-card,
    .identity-multi-option,
    .career-group-button,
    .career-skill-option,
    .work-values-impact-option,
    .cognitive-mode-button,
    .cognitive-module-card
  ):hover:not(:disabled) {
    border-color: var(--test-accent) !important;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--test-accent) 14%, transparent), var(--shadow-sm) !important;
  }

  html[data-theme] .test-workspace :where(
    .answer-option,
    .cognitive-answer-option,
    .digital-skills-answer-button,
    .leadership-answer-button,
    .wec-rank-button,
    .wec-selection-card,
    .identity-multi-option,
    .career-group-button,
    .career-skill-option,
    .work-values-impact-option,
    .cognitive-mode-button,
    .cognitive-module-card
  ).is-selected {
    border: 2px solid transparent !important;
    color: var(--text-primary) !important;
    background:
      linear-gradient(var(--surface-1), var(--surface-1)) padding-box,
      var(--test-gradient) border-box !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--test-accent) 16%, transparent), var(--shadow-sm) !important;
  }

  html[data-theme] .test-workspace :where(
    .answer-option.is-selected .answer-option-marker,
    .cognitive-answer-option.is-selected .cognitive-answer-marker,
    .wec-selection-card.is-selected .wec-selection-marker,
    .cognitive-module-card.is-selected .cognitive-module-check
  ) {
    border-color: transparent !important;
    color: var(--test-on-accent) !important;
    background: var(--test-gradient) !important;
  }

  html[data-theme] .test-workspace :where(
    .result-score-card,
    .cognitive-result-score,
    .leadership-profile-badge
  ) {
    border: 1px solid transparent !important;
    background:
      linear-gradient(var(--surface-2), var(--surface-2)) padding-box,
      var(--test-gradient) border-box !important;
  }

  /* -------------------------------------------------------
     Totaalrapport-dekking gebruikt dezelfde gebiedsgradients.
  -------------------------------------------------------- */
  .total-report-domain-line .linear-progress > span,
  .tr-coverage-item .tr-meter > span {
    background: var(--domain-gradient, var(--domain-color, var(--brand-gradient))) !important;
  }

  .tr-coverage-item {
    border-top: 3px solid transparent !important;
    background:
      linear-gradient(var(--surface-1), var(--surface-1)) padding-box,
      var(--domain-gradient, var(--brand-gradient)) border-box !important;
  }

  /* Rapportkeuzes: hun eerdere volle accentkleur wordt gradient. */
  .total-report-mode-card.is-compact {
    --report-mode-gradient: var(--gradient-identiteit);
    --report-mode-accent: var(--bubblegum-pink);
    --report-mode-on-accent: #181b2c;
  }

  .total-report-mode-card.is-full {
    --report-mode-gradient: var(--gradient-werkorientatie);
    --report-mode-accent: var(--royal-gold);
    --report-mode-on-accent: #181b2c;
  }

  .total-report-mode-card.is-ultimate {
    --report-mode-gradient: var(--gradient-denken);
    --report-mode-accent: var(--mint-leaf);
    --report-mode-on-accent: #181b2c;
  }

  .total-report-mode-card:is(.is-compact, .is-full, .is-ultimate) {
    border: 1px solid transparent !important;
    background:
      linear-gradient(var(--surface-1), var(--surface-1)) padding-box,
      var(--report-mode-gradient) border-box !important;
  }

  .total-report-mode-card:is(.is-compact, .is-full, .is-ultimate)
    :is(.total-report-mode-kicker, .button) {
    border-color: transparent !important;
    color: var(--report-mode-on-accent) !important;
    background: var(--report-mode-gradient) !important;
  }

  .total-report-mode-card:is(.is-compact, .is-full, .is-ultimate)
    .button:hover:not(:disabled) {
    filter: brightness(1.05) saturate(1.04);
    background: var(--report-mode-gradient) !important;
  }
}

@media screen {
  /* Aanvullende testaccenten: ook compacte iconen en hulpkaders
     volgen de actieve profielgebiedgradient. */
  html[data-theme] .test-workspace :where(
    .information-icon,
    .test-evidence summary::after,
    .test-preview-card li::before
  ) {
    border-color: transparent !important;
    color: var(--test-on-accent) !important;
    background: var(--test-gradient) !important;
  }

  html[data-theme] .test-workspace :where(
    .test-information-item,
    .test-evidence,
    .question-counter-block
  ) {
    border: 1px solid transparent !important;
    background:
      linear-gradient(var(--surface-2), var(--surface-2)) padding-box,
      var(--test-gradient) border-box !important;
  }

  html[data-theme="dark"] .test-workspace .test-preview-card li::before {
    color: var(--test-on-accent) !important;
    background: var(--test-gradient) !important;
  }

  html[data-theme] .test-workspace :where(
    .question-counter-block strong,
    .result-score-card strong,
    .cognitive-result-score strong
  ) {
    color: var(--test-accent) !important;
  }

  @supports ((background-clip: text) or (-webkit-background-clip: text)) {
    html[data-theme] .test-workspace :where(
      .question-counter-block strong,
      .result-score-card strong,
      .cognitive-result-score strong
    ) {
      color: transparent !important;
      background: var(--test-gradient);
      background-clip: text;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
  }
}

/* =========================================================
   17. WITTE INHOUD OP PROFIELGRADIENTEN v41
========================================================= */

:root,
html[data-theme="light"],
html[data-theme="dark"] {
  --gradient-content: #ffffff;
  --gradient-content-glow:
    0 0 2px rgba(18, 20, 35, 0.42),
    0 0 5px rgba(18, 20, 35, 0.18);
  --gradient-icon-glow: drop-shadow(0 0 2px rgba(18, 20, 35, 0.38));
}

@media screen {
  /* Alle gevulde gradientcomponenten krijgen één vaste contrastregel. */
  :where(
    .brand-mark,
    .avatar,
    .domain-icon,
    .drawer .test-status,
    .drawer .test-start-button,
    .test-workspace .button-primary,
    .test-workspace .test-start-button,
    .test-workspace .cognitive-status-badge,
    .test-workspace .leadership-status-badge,
    .test-workspace .digital-skills-status-badge,
    .test-workspace .ww-status-badge,
    .test-workspace .wec-status-badge,
    .test-workspace .test-preview-label,
    .test-workspace .answer-option.is-selected .answer-option-marker,
    .test-workspace .cognitive-answer-option.is-selected .cognitive-answer-marker,
    .test-workspace .wec-selection-card.is-selected .wec-selection-marker,
    .test-workspace .cognitive-module-card.is-selected .cognitive-module-check,
    .test-workspace .information-icon,
    .total-report-mode-card.is-compact .total-report-mode-kicker,
    .total-report-mode-card.is-compact .button,
    .total-report-mode-card.is-full .total-report-mode-kicker,
    .total-report-mode-card.is-full .button,
    .total-report-mode-card.is-ultimate .total-report-mode-kicker,
    .total-report-mode-card.is-ultimate .button
  ) {
    color: var(--gradient-content) !important;
    -webkit-text-fill-color: var(--gradient-content) !important;
    text-shadow: var(--gradient-content-glow) !important;
  }

  :where(
    .brand-mark,
    .avatar,
    .domain-icon,
    .drawer .test-status,
    .drawer .test-start-button,
    .test-workspace .button-primary,
    .test-workspace .test-start-button,
    .test-workspace .cognitive-status-badge,
    .test-workspace .leadership-status-badge,
    .test-workspace .digital-skills-status-badge,
    .test-workspace .ww-status-badge,
    .test-workspace .wec-status-badge,
    .test-workspace .test-preview-label,
    .total-report-mode-card.is-compact .total-report-mode-kicker,
    .total-report-mode-card.is-compact .button,
    .total-report-mode-card.is-full .total-report-mode-kicker,
    .total-report-mode-card.is-full .button,
    .total-report-mode-card.is-ultimate .total-report-mode-kicker,
    .total-report-mode-card.is-ultimate .button
  ) * {
    color: inherit !important;
    -webkit-text-fill-color: currentColor !important;
    text-shadow: inherit !important;
  }


  .avatar::before,
  .avatar::after {
    background: var(--gradient-content) !important;
    filter: var(--gradient-icon-glow) !important;
  }

  /* Pseudo-iconen en markers die zelf het gradientvlak vormen. */
  .test-workspace .test-evidence summary::after,
  .test-workspace .test-preview-card li::before {
    color: var(--gradient-content) !important;
    -webkit-text-fill-color: var(--gradient-content) !important;
    text-shadow: var(--gradient-content-glow) !important;
  }

  /* SVG- en lijniconen volgen wit, met een smalle diffuse gloed. */
  :where(
    .brand-mark,
    .avatar,
    .domain-icon,
    .drawer .test-status,
    .drawer .test-start-button,
    .test-workspace .button-primary,
    .test-workspace .test-start-button,
    .test-workspace .cognitive-status-badge,
    .test-workspace .leadership-status-badge,
    .test-workspace .digital-skills-status-badge,
    .test-workspace .ww-status-badge,
    .test-workspace .wec-status-badge,
    .test-workspace .test-preview-label,
    .test-workspace .answer-option.is-selected .answer-option-marker,
    .test-workspace .cognitive-answer-option.is-selected .cognitive-answer-marker,
    .test-workspace .wec-selection-card.is-selected .wec-selection-marker,
    .test-workspace .cognitive-module-card.is-selected .cognitive-module-check,
    .test-workspace .information-icon,
    .total-report-mode-card.is-compact .total-report-mode-kicker,
    .total-report-mode-card.is-compact .button,
    .total-report-mode-card.is-full .total-report-mode-kicker,
    .total-report-mode-card.is-full .button,
    .total-report-mode-card.is-ultimate .total-report-mode-kicker,
    .total-report-mode-card.is-ultimate .button
  ) svg {
    color: var(--gradient-content) !important;
    filter: var(--gradient-icon-glow) !important;
  }

  :where(
    .brand-mark,
    .avatar,
    .domain-icon,
    .drawer .test-status,
    .drawer .test-start-button,
    .test-workspace .button-primary,
    .test-workspace .test-start-button,
    .test-workspace .cognitive-status-badge,
    .test-workspace .leadership-status-badge,
    .test-workspace .digital-skills-status-badge,
    .test-workspace .ww-status-badge,
    .test-workspace .wec-status-badge,
    .test-workspace .test-preview-label,
    .test-workspace .answer-option.is-selected .answer-option-marker,
    .test-workspace .cognitive-answer-option.is-selected .cognitive-answer-marker,
    .test-workspace .wec-selection-card.is-selected .wec-selection-marker,
    .test-workspace .cognitive-module-card.is-selected .cognitive-module-check,
    .test-workspace .information-icon
  ) svg [stroke] {
    stroke: currentColor !important;
  }

  :where(
    .brand-mark,
    .avatar,
    .domain-icon,
    .drawer .test-status,
    .drawer .test-start-button,
    .test-workspace .button-primary,
    .test-workspace .test-start-button,
    .test-workspace .cognitive-status-badge,
    .test-workspace .leadership-status-badge,
    .test-workspace .digital-skills-status-badge,
    .test-workspace .ww-status-badge,
    .test-workspace .wec-status-badge,
    .test-workspace .test-preview-label,
    .test-workspace .answer-option.is-selected .answer-option-marker,
    .test-workspace .cognitive-answer-option.is-selected .cognitive-answer-marker,
    .test-workspace .wec-selection-card.is-selected .wec-selection-marker,
    .test-workspace .cognitive-module-card.is-selected .cognitive-module-check,
    .test-workspace .information-icon
  ) svg [fill]:not([fill="none"]) {
    fill: currentColor !important;
  }
}

@media screen {
  /* Specificiteitsanker: oudere componentspecifieke !important-regels
     mogen de vaste witte gradientinhoud niet terug overschrijven. */
  .drawer {
    --domain-on-accent: #ffffff !important;
  }

  .test-workspace {
    --test-on-accent: #ffffff !important;
  }

  .total-report-mode-card.is-compact,
  .total-report-mode-card.is-full,
  .total-report-mode-card.is-ultimate {
    --report-mode-on-accent: #ffffff !important;
  }

  .brand-mark,
  .avatar,
  .domain-icon,
  .drawer .test-status,
  .drawer .test-start-button,
  .test-workspace .button-primary,
  .test-workspace .test-start-button,
  .test-workspace .cognitive-status-badge,
  .test-workspace .leadership-status-badge,
  .test-workspace .digital-skills-status-badge,
  .test-workspace .ww-status-badge,
  .test-workspace .wec-status-badge,
  .test-workspace .test-preview-label,
  .test-workspace .answer-option.is-selected .answer-option-marker,
  .test-workspace .cognitive-answer-option.is-selected .cognitive-answer-marker,
  .test-workspace .wec-selection-card.is-selected .wec-selection-marker,
  .test-workspace .cognitive-module-card.is-selected .cognitive-module-check,
  .test-workspace .information-icon,
  .total-report-mode-card.is-compact .total-report-mode-kicker,
  .total-report-mode-card.is-compact .button,
  .total-report-mode-card.is-full .total-report-mode-kicker,
  .total-report-mode-card.is-full .button,
  .total-report-mode-card.is-ultimate .total-report-mode-kicker,
  .total-report-mode-card.is-ultimate .button {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: var(--gradient-content-glow) !important;
  }
}


/* =========================================================
   18. MERKICOON EN THEMA-AFHANKELIJKE ASSETS v42
========================================================= */

@media screen {
  .brand-mark {
    position: relative;
    overflow: hidden;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: 0 10px 24px rgba(18, 20, 35, 0.12) !important;
  }

  .brand-symbol-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
  }

  html[data-theme="light"] .brand-symbol-dark,
  html[data-theme="dark"] .brand-symbol-light {
    display: none;
  }

  html[data-theme="light"] .brand-symbol-light,
  html[data-theme="dark"] .brand-symbol-dark {
    display: block;
  }
}

/* Printregels gecentraliseerd in print.css. */


/* =========================================================
   19. RAPPORTCONTRAST, CONTEXTACCENTEN EN PRINTCORRECTIES v43
========================================================= */

@media screen {
  /* -------------------------------------------------------
     Alle generieke accentvariabelen binnen een actieve test
     volgen het profielgebied. Zo kunnen oudere componenten
     geen standaardroze accenten meer tonen.
  -------------------------------------------------------- */
  html[data-theme] .test-workspace {
    --accent-magenta: var(--test-accent) !important;
    --accent-magenta-dark: var(--test-accent) !important;
    --accent-rose: var(--test-accent) !important;
    --primary: var(--test-accent) !important;
    --primary-dark: var(--test-accent) !important;
    --success: var(--test-accent) !important;
    --focus-ring: color-mix(in srgb, var(--test-accent) 38%, transparent) !important;
    --selection-soft: color-mix(in srgb, var(--test-accent) 10%, transparent) !important;
  }

  html[data-theme] .test-workspace :where(
    .text-button,
    .facet-toggle-button,
    .uy-report-toggle-label,
    .uy-report-section-toggle,
    .facet-item-toggle,
    .team-role-toggle,
    .leadership-style-toggle,
    .wec-culture-toggle,
    .ww-dimension-toggle,
    .result-card-label,
    .result-method-label,
    .facet-interpretation-label,
    .test-evidence-label
  ) {
    color: var(--test-accent) !important;
    -webkit-text-fill-color: currentColor !important;
  }

  html[data-theme] .test-workspace :where(
    .uy-report-toggle-label::before,
    .uy-report-section-toggle::before,
    .facet-item-toggle::before,
    .team-role-toggle::before,
    .leadership-style-toggle::before,
    .wec-culture-toggle::before,
    .ww-dimension-toggle::before
  ) {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: var(--test-gradient) !important;
    text-shadow: var(--gradient-content-glow) !important;
  }

  html[data-theme] .test-workspace details > summary::after {
    color: var(--test-accent) !important;
  }

  /* -------------------------------------------------------
     Rapportlabels worden echte, leesbare gradientbadges.
  -------------------------------------------------------- */
  html[data-theme] .test-workspace :where(
    .result-card-label,
    .result-method-label,
    .facet-interpretation-label,
    .test-evidence-label
  ) {
    display: inline-flex !important;
    width: fit-content !important;
    min-height: 1.75rem !important;
    align-items: center !important;
    padding: 0.3rem 0.68rem !important;
    border-radius: 999px !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: var(--test-gradient) !important;
    background-clip: border-box !important;
    -webkit-background-clip: border-box !important;
    text-shadow: var(--gradient-content-glow) !important;
    font-weight: 850 !important;
    line-height: 1.15 !important;
  }

  /* -------------------------------------------------------
     Voortgangstekst heeft geen eigen vlak of kader.
  -------------------------------------------------------- */
  html[data-theme] .drawer-progress > div:first-child,
  html[data-theme] .test-workspace .question-counter-block {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  html[data-theme] .drawer-progress > div:first-child {
    margin-bottom: 11px !important;
  }

  /* -------------------------------------------------------
     De grote resultaatkop is altijd een donker contrastvlak.
  -------------------------------------------------------- */
  html[data-theme] .test-workspace :where(
    .result-hero,
    .cognitive-result-hero
  ) {
    border: 1px solid transparent !important;
    color: #fbf6f3 !important;
    background:
      linear-gradient(#181b2c, #181b2c) padding-box,
      var(--test-gradient) border-box !important;
    box-shadow: var(--shadow-md) !important;
  }

  html[data-theme] .test-workspace :where(
    .result-hero,
    .cognitive-result-hero
  ) :where(h1, h2, h3, h4, p, li, span, small, strong, time) {
    color: #fbf6f3 !important;
    -webkit-text-fill-color: #fbf6f3 !important;
  }

  html[data-theme] .test-workspace :where(
    .result-hero,
    .cognitive-result-hero
  ) :where(p, li, small, time, .result-completed-date) {
    color: #d6d1d0 !important;
    -webkit-text-fill-color: #d6d1d0 !important;
  }

  html[data-theme] .test-workspace :where(
    .result-hero,
    .cognitive-result-hero
  ) .eyebrow {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
    text-shadow: var(--gradient-content-glow) !important;
  }

  html[data-theme] .test-workspace :where(
    .result-hero,
    .cognitive-result-hero
  ) :where(.result-score-card, .cognitive-result-score) {
    border: 1px solid transparent !important;
    color: #fbf6f3 !important;
    background:
      linear-gradient(#252541, #252541) padding-box,
      var(--test-gradient) border-box !important;
    box-shadow: none !important;
  }

  html[data-theme] .test-workspace :where(
    .result-hero,
    .cognitive-result-hero
  ) :where(.result-score-card, .cognitive-result-score) * {
    color: #fbf6f3 !important;
    -webkit-text-fill-color: #fbf6f3 !important;
  }

  /* -------------------------------------------------------
     Light mode: gewone rapportinhoud gebruikt donker leesbare
     tekst op de afgesproken lichte kaartkleur.
  -------------------------------------------------------- */
  html[data-theme="light"] .test-workspace :where(
    .result-content-card,
    .dimension-card,
    .facet-report,
    .facet-domain-group,
    .facet-item,
    .result-method-note,
    .cognitive-report-card,
    .cognitive-dashboard-card,
    .digital-skills-report-area,
    .digital-skills-area-card,
    .digital-skills-profile-card,
    .leadership-style-card,
    .leadership-flexibility-card,
    .leadership-quality-note,
    .leadership-styles-report,
    .leadership-advice-card,
    .team-role-top-overview,
    .team-role-combination-card,
    .team-role-profiles-card,
    .team-role-lower-card,
    .team-role-method-card,
    .team-role-quality-note,
    .wec-report-card,
    .ww-report-card,
    .identity-overview-card,
    .identity-axis-card,
    .identity-detail-block,
    details.uy-report-details
  ) {
    color: #181b2c !important;
    background-color: #fbf6f3 !important;
  }

  html[data-theme="light"] .test-workspace :where(
    .result-content-card,
    .dimension-card,
    .facet-report,
    .facet-domain-group,
    .facet-item,
    .result-method-note,
    .cognitive-report-card,
    .cognitive-dashboard-card,
    .digital-skills-report-area,
    .digital-skills-area-card,
    .digital-skills-profile-card,
    .leadership-style-card,
    .leadership-flexibility-card,
    .leadership-quality-note,
    .leadership-styles-report,
    .leadership-advice-card,
    .team-role-top-overview,
    .team-role-combination-card,
    .team-role-profiles-card,
    .team-role-lower-card,
    .team-role-method-card,
    .team-role-quality-note,
    .wec-report-card,
    .ww-report-card,
    .identity-overview-card,
    .identity-axis-card,
    .identity-detail-block,
    details.uy-report-details
  ) :where(h1, h2, h3, h4, h5, h6, strong, summary) {
    color: #181b2c !important;
  }

  html[data-theme="light"] .test-workspace :where(
    .result-content-card,
    .dimension-card,
    .facet-report,
    .facet-domain-group,
    .facet-item,
    .result-method-note,
    .cognitive-report-card,
    .cognitive-dashboard-card,
    .digital-skills-report-area,
    .digital-skills-area-card,
    .digital-skills-profile-card,
    .leadership-style-card,
    .leadership-flexibility-card,
    .leadership-quality-note,
    .leadership-styles-report,
    .leadership-advice-card,
    .team-role-top-overview,
    .team-role-combination-card,
    .team-role-profiles-card,
    .team-role-lower-card,
    .team-role-method-card,
    .team-role-quality-note,
    .wec-report-card,
    .ww-report-card,
    .identity-overview-card,
    .identity-axis-card,
    .identity-detail-block,
    details.uy-report-details
  ) :where(p, li, td, th, small, figcaption, caption) {
    color: #4b4b55 !important;
    -webkit-text-fill-color: #4b4b55 !important;
    opacity: 1 !important;
  }

  /* Gradientbadges blijven wit na de globale light-tekstregel. */
  html[data-theme="light"] .test-workspace :where(
    .result-card-label,
    .result-method-label,
    .facet-interpretation-label,
    .test-evidence-label
  ) {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }

  /* -------------------------------------------------------
     Dark mode: accordeons en alle geopende rapportinhoud
     blijven volledig donker met lichte, leesbare tekst.
  -------------------------------------------------------- */
  html[data-theme="dark"] .test-workspace .uy-report-uniform details.uy-report-details,
  html[data-theme="dark"] .test-workspace .uy-report-uniform details.uy-report-details[open],
  html[data-theme="dark"] .test-workspace .uy-report-uniform details.uy-report-details > summary {
    border-color: var(--border-soft) !important;
    color: #fbf6f3 !important;
    background: #181b2c !important;
    box-shadow: none !important;
  }

  html[data-theme="dark"] .test-workspace .uy-report-uniform details.uy-report-details > :not(summary) {
    color: #fbf6f3 !important;
    background-color: #20243a !important;
  }

  html[data-theme="dark"] .test-workspace .uy-report-uniform details.uy-report-details :where(
    .result-content-card,
    .dimension-card,
    .facet-report,
    .facet-domain-group,
    .facet-item,
    .result-method-note,
    .cognitive-report-card,
    .cognitive-dashboard-card,
    .digital-skills-report-area,
    .digital-skills-area-card,
    .digital-skills-profile-card,
    .identity-overview-card,
    .identity-axis-card,
    .identity-detail-block,
    table,
    thead,
    tbody,
    tfoot,
    tr,
    td,
    th
  ) {
    border-color: var(--border-soft) !important;
    color: #fbf6f3 !important;
    background-color: #20243a !important;
    box-shadow: none !important;
  }

  html[data-theme="dark"] .test-workspace .uy-report-uniform details.uy-report-details :where(
    h1, h2, h3, h4, h5, h6, strong, summary
  ) {
    color: #fbf6f3 !important;
    -webkit-text-fill-color: #fbf6f3 !important;
  }

  html[data-theme="dark"] .test-workspace .uy-report-uniform details.uy-report-details :where(
    p, li, td, th, small, figcaption, caption,
    span:not(.uy-report-toggle-label):not(.result-card-label):not(.result-method-label):not(.facet-interpretation-label):not(.test-evidence-label)
  ) {
    color: #d2cdcc !important;
    -webkit-text-fill-color: #d2cdcc !important;
    opacity: 1 !important;
  }

  html[data-theme="dark"] .test-workspace .uy-report-uniform details.uy-report-details .uy-report-toggle-label {
    color: var(--test-accent) !important;
    -webkit-text-fill-color: currentColor !important;
  }

  html[data-theme="dark"] .test-workspace .uy-report-uniform details.uy-report-details :where(
    .result-card-label,
    .result-method-label,
    .facet-interpretation-label,
    .test-evidence-label
  ) {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: var(--test-gradient) !important;
    text-shadow: var(--gradient-content-glow) !important;
  }

  html[data-theme="dark"] .test-workspace .uy-report-uniform details.uy-report-details table {
    border-collapse: collapse;
  }

  html[data-theme="dark"] .test-workspace .uy-report-uniform details.uy-report-details :where(td, th) {
    border-color: var(--border-strong) !important;
  }
}

/* ---------------------------------------------------------
   Afdruk/PDF is altijd een volledig lichte, randloze pagina,
   ongeacht het actieve schermthema.
---------------------------------------------------------- */
/* Printregels gecentraliseerd in print.css. */


/* =========================================================
   V44 — STRUCTURELE CONTRAST- EN UITLIJNINGSCORRECTIES

   Deze laag corrigeert gedeelde componenten in plaats van
   losse rapportpagina's. Zo gelden dezelfde regels in alle
   tests, totaalrapporten, modals en beide schermthema's.
========================================================= */

/* ---------------------------------------------------------
   1. Opslag & back-up: lichte statistiekkaarten houden in
      dark mode altijd donkere, duidelijk leesbare inhoud.
---------------------------------------------------------- */
html[data-theme="dark"] body .storage-dialog .storage-summary > div {
  border-color: color-mix(in srgb, #181b2c 18%, transparent) !important;
  color: #181b2c !important;
  background: #fbf6f3 !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body .storage-dialog .storage-summary > div :where(span, strong) {
  color: #181b2c !important;
  -webkit-text-fill-color: #181b2c !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

/* ---------------------------------------------------------
   2. Light mode: lichte rapportkaarten gebruiken overal
      donkere tekst. Alleen echte gradientbadges blijven wit.
---------------------------------------------------------- */
html[data-theme="light"] body .test-workspace #resultScreen.uy-report-uniform :where(
  .result-content-card,
  .dimension-card,
  .facet-report,
  .facet-domain-group,
  .facet-item,
  .result-method-note,
  .cognitive-report-card,
  .cognitive-dashboard-card,
  .cognitive-module-card,
  .digital-skills-report-area,
  .digital-skills-area-card,
  .digital-skills-profile-card,
  .leadership-style-card,
  .leadership-flexibility-card,
  .leadership-quality-note,
  .leadership-styles-report,
  .leadership-advice-card,
  .team-role-top-overview,
  .team-role-combination-card,
  .team-role-profiles-card,
  .team-role-lower-card,
  .team-role-method-card,
  .team-role-quality-note,
  .wec-report-card,
  .ww-report-card,
  .identity-overview-card,
  .identity-axis-card,
  .identity-detail-block,
  details.uy-report-details,
  details.uy-report-details > summary,
  details.uy-report-details > :not(summary)
) {
  color: #181b2c !important;
  background-color: #fbf6f3 !important;
}

html[data-theme="light"] body .test-workspace #resultScreen.uy-report-uniform :where(
  .result-content-card,
  .dimension-card,
  .facet-report,
  .facet-domain-group,
  .facet-item,
  .result-method-note,
  .cognitive-report-card,
  .cognitive-dashboard-card,
  .cognitive-module-card,
  .digital-skills-report-area,
  .digital-skills-area-card,
  .digital-skills-profile-card,
  .leadership-style-card,
  .leadership-flexibility-card,
  .leadership-quality-note,
  .leadership-styles-report,
  .leadership-advice-card,
  .team-role-top-overview,
  .team-role-combination-card,
  .team-role-profiles-card,
  .team-role-lower-card,
  .team-role-method-card,
  .team-role-quality-note,
  .wec-report-card,
  .ww-report-card,
  .identity-overview-card,
  .identity-axis-card,
  .identity-detail-block,
  details.uy-report-details
) :where(h1, h2, h3, h4, h5, h6, strong, summary) {
  color: #181b2c !important;
  -webkit-text-fill-color: #181b2c !important;
  opacity: 1 !important;
}

html[data-theme="light"] body .test-workspace #resultScreen.uy-report-uniform :where(
  .result-content-card,
  .dimension-card,
  .facet-report,
  .facet-domain-group,
  .facet-item,
  .result-method-note,
  .cognitive-report-card,
  .cognitive-dashboard-card,
  .cognitive-module-card,
  .digital-skills-report-area,
  .digital-skills-area-card,
  .digital-skills-profile-card,
  .leadership-style-card,
  .leadership-flexibility-card,
  .leadership-quality-note,
  .leadership-styles-report,
  .leadership-advice-card,
  .team-role-top-overview,
  .team-role-combination-card,
  .team-role-profiles-card,
  .team-role-lower-card,
  .team-role-method-card,
  .team-role-quality-note,
  .wec-report-card,
  .ww-report-card,
  .identity-overview-card,
  .identity-axis-card,
  .identity-detail-block,
  details.uy-report-details
) :where(p, li, td, th, small, figcaption, caption, label) {
  color: #4b4b55 !important;
  -webkit-text-fill-color: #4b4b55 !important;
  opacity: 1 !important;
}

/* ---------------------------------------------------------
   3. Dark mode: ALLE inhoudskaarten in afzonderlijke en
      geïntegreerde rapporten gebruiken donkere oppervlakken.
---------------------------------------------------------- */
html[data-theme="dark"] body .test-workspace #resultScreen.uy-report-uniform :where(
  .result-content-card,
  .dimension-card,
  .facet-report,
  .facet-domain-group,
  .facet-item,
  .result-method-note,
  .cognitive-report-card,
  .cognitive-dashboard-card,
  .cognitive-module-card,
  .cognitive-report-table-wrap,
  .digital-skills-report-area,
  .digital-skills-area-card,
  .digital-skills-profile-card,
  .leadership-style-card,
  .leadership-flexibility-card,
  .leadership-quality-note,
  .leadership-styles-report,
  .leadership-advice-card,
  .team-role-top-overview,
  .team-role-combination-card,
  .team-role-profiles-card,
  .team-role-lower-card,
  .team-role-method-card,
  .team-role-quality-note,
  .team-role-profile,
  .team-role-profile-body,
  .wec-report-card,
  .wec-culture-details,
  .wec-culture-details-body,
  .ww-report-card,
  .ww-dimension-details,
  .ww-dimension-details-body,
  .identity-overview-card,
  .identity-axis-card,
  .identity-axis-content,
  .identity-detail-block,
  details.uy-report-details,
  details.uy-report-details > summary,
  details.uy-report-details > :not(summary),
  table,
  thead,
  tbody,
  tfoot,
  tr,
  td,
  th
) {
  border-color: #3a3d56 !important;
  color: #fbf6f3 !important;
  background: #181b2c !important;
  background-image: none !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body .test-workspace #resultScreen.uy-report-uniform :where(
  .result-content-card,
  .dimension-card,
  .facet-report,
  .facet-domain-group,
  .facet-item,
  .result-method-note,
  .cognitive-report-card,
  .cognitive-dashboard-card,
  .cognitive-module-card,
  .digital-skills-report-area,
  .digital-skills-area-card,
  .digital-skills-profile-card,
  .leadership-style-card,
  .leadership-flexibility-card,
  .leadership-quality-note,
  .leadership-styles-report,
  .leadership-advice-card,
  .team-role-top-overview,
  .team-role-combination-card,
  .team-role-profiles-card,
  .team-role-lower-card,
  .team-role-method-card,
  .team-role-quality-note,
  .wec-report-card,
  .ww-report-card,
  .identity-overview-card,
  .identity-axis-card,
  .identity-detail-block,
  details.uy-report-details
) :where(h1, h2, h3, h4, h5, h6, strong, summary) {
  color: #fbf6f3 !important;
  -webkit-text-fill-color: #fbf6f3 !important;
  opacity: 1 !important;
}

html[data-theme="dark"] body .test-workspace #resultScreen.uy-report-uniform :where(
  .result-content-card,
  .dimension-card,
  .facet-report,
  .facet-domain-group,
  .facet-item,
  .result-method-note,
  .cognitive-report-card,
  .cognitive-dashboard-card,
  .cognitive-module-card,
  .digital-skills-report-area,
  .digital-skills-area-card,
  .digital-skills-profile-card,
  .leadership-style-card,
  .leadership-flexibility-card,
  .leadership-quality-note,
  .leadership-styles-report,
  .leadership-advice-card,
  .team-role-top-overview,
  .team-role-combination-card,
  .team-role-profiles-card,
  .team-role-lower-card,
  .team-role-method-card,
  .team-role-quality-note,
  .wec-report-card,
  .ww-report-card,
  .identity-overview-card,
  .identity-axis-card,
  .identity-detail-block,
  details.uy-report-details
) :where(p, li, td, th, small, figcaption, caption, label) {
  color: #d6d1d0 !important;
  -webkit-text-fill-color: #d6d1d0 !important;
  opacity: 1 !important;
}

/* Ook totaalrapporten krijgen in dark mode uitsluitend donkere kaarten. */
html[data-theme="dark"] body.total-report-open #totalReportWorkspace .total-report-document :where(
  .tr-hero,
  .tr-hero-score,
  .tr-card,
  .tr-test-card,
  .tr-source-card,
  .tr-detail-section,
  .tr-insight-card,
  .tr-theme-card,
  .tr-metric,
  .tr-coverage-item,
  .tr-empty-state,
  details,
  details > summary,
  details > :not(summary),
  table,
  thead,
  tbody,
  tfoot,
  tr,
  td,
  th
) {
  border-color: #3a3d56 !important;
  color: #fbf6f3 !important;
  background: #181b2c !important;
  background-image: none !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body.total-report-open #totalReportWorkspace .total-report-document :where(
  .tr-hero,
  .tr-hero-score,
  .tr-card,
  .tr-test-card,
  .tr-source-card,
  .tr-detail-section,
  .tr-insight-card,
  .tr-theme-card,
  .tr-metric,
  .tr-coverage-item,
  .tr-empty-state,
  details
) :where(h1, h2, h3, h4, h5, h6, strong, summary) {
  color: #fbf6f3 !important;
  -webkit-text-fill-color: #fbf6f3 !important;
  opacity: 1 !important;
}

html[data-theme="dark"] body.total-report-open #totalReportWorkspace .total-report-document :where(
  .tr-hero,
  .tr-hero-score,
  .tr-card,
  .tr-test-card,
  .tr-source-card,
  .tr-detail-section,
  .tr-insight-card,
  .tr-theme-card,
  .tr-metric,
  .tr-coverage-item,
  .tr-empty-state,
  details
) :where(p, li, span, small, td, th, figcaption, caption, label) {
  color: #d6d1d0 !important;
  -webkit-text-fill-color: #d6d1d0 !important;
  opacity: 1 !important;
}

/* ---------------------------------------------------------
   4. Gebiedsaccenten: oude magenta hardcoderingen verliezen
      binnen een actieve test van de actuele testgradient.
---------------------------------------------------------- */
html[data-theme] body .test-workspace #resultScreen.uy-report-uniform :where(
  .dimension-card strong,
  .cognitive-result-count strong,
  .cognitive-module-score,
  .leadership-style-score,
  .digital-skills-area-score,
  .uy-report-toggle-label,
  .uy-report-section-toggle,
  details > summary::after
) {
  color: var(--test-accent) !important;
  -webkit-text-fill-color: var(--test-accent) !important;
}

html[data-theme] body .test-workspace #resultScreen.uy-report-uniform :where(
  .dimension-bar > span,
  .facet-bar > span,
  .linear-progress > span,
  .tr-meter > span,
  .cognitive-progress-fill,
  .leadership-progress-fill,
  .digital-skills-progress-fill,
  .ww-progress-fill,
  .wec-progress-fill
) {
  background: var(--test-gradient) !important;
  background-color: transparent !important;
}

html[data-theme] body .test-workspace #resultScreen.uy-report-uniform :where(
  .result-card-label,
  .result-method-label,
  .facet-interpretation-label,
  .test-evidence-label
) {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: var(--test-gradient) !important;
  text-shadow: var(--gradient-content-glow) !important;
}

/* ---------------------------------------------------------
   5. Uniforme scorekaarten en één schone uitklapbediening.
      Geen geneste pills, geen dubbele randen en geen kader
      rond de geopende uitleg binnen een scorekaart.
---------------------------------------------------------- */
html[data-theme] body .test-workspace #resultScreen.uy-report-uniform .dimension-card {
  display: flex !important;
  min-height: 12.2rem;
  flex-direction: column !important;
  align-items: stretch !important;
}

html[data-theme] body .test-workspace #resultScreen.uy-report-uniform .dimension-card > :first-child {
  width: 100%;
  min-height: 3.25rem;
  align-items: flex-start !important;
}

html[data-theme] body .test-workspace #resultScreen.uy-report-uniform .dimension-card > .dimension-card-description {
  flex: 1 1 auto;
}

html[data-theme] body .test-workspace #resultScreen.uy-report-uniform .dimension-card > .uy-report-inline-details {
  width: 100% !important;
  margin-top: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  overflow: visible !important;
}

html[data-theme] body .test-workspace #resultScreen.uy-report-uniform .dimension-card > .dimension-bar {
  width: 100%;
  margin-top: 0.8rem !important;
  flex: 0 0 auto;
}

/* Dubbele voortgangselementen met dezelfde ouder worden nooit getoond. */
html[data-theme] body .test-workspace #resultScreen.uy-report-uniform .dimension-card > .dimension-bar ~ .dimension-bar,
html[data-theme] body .test-workspace #resultScreen.uy-report-uniform .cognitive-module-card > .linear-progress ~ .linear-progress,
html[data-theme] body .test-workspace #resultScreen.uy-report-uniform .leadership-style-card > .dimension-bar ~ .dimension-bar,
html[data-theme] body.total-report-open #totalReportWorkspace .tr-coverage-item > .tr-meter ~ .tr-meter,
html[data-theme] body.total-report-open #totalReportWorkspace .tr-metric > .tr-meter ~ .tr-meter {
  display: none !important;
}

/* Eén enkel knopvlak. De summary zelf is de knop; er zit geen tweede
   label of tweede border meer in. */
html[data-theme] body .test-workspace #resultScreen.uy-report-uniform .uy-report-inline-summary {
  position: relative !important;
  box-sizing: border-box !important;
  display: flex !important;
  width: 100% !important;
  min-height: 2.75rem !important;
  margin: 0 !important;
  padding: 0.62rem 2.8rem !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid color-mix(in srgb, var(--test-accent) 22%, var(--border-soft)) !important;
  border-radius: 999px !important;
  color: var(--test-accent) !important;
  -webkit-text-fill-color: var(--test-accent) !important;
  background: color-mix(in srgb, var(--test-accent) 5%, var(--surface-1)) !important;
  background-image: none !important;
  box-shadow: none !important;
  cursor: pointer !important;
  list-style: none !important;
  font-size: 0.8rem !important;
  font-weight: 850 !important;
  line-height: 1.1 !important;
  text-align: center !important;
  white-space: nowrap !important;
}

html[data-theme] body .test-workspace #resultScreen.uy-report-uniform .uy-report-inline-summary::-webkit-details-marker {
  display: none !important;
}

html[data-theme] body .test-workspace #resultScreen.uy-report-uniform .uy-report-inline-summary::before {
  content: "⌄" !important;
  position: absolute !important;
  top: 50% !important;
  left: 0.72rem !important;
  display: grid !important;
  width: 1.45rem !important;
  height: 1.45rem !important;
  place-items: center !important;
  border-radius: 999px !important;
  color: var(--test-accent) !important;
  -webkit-text-fill-color: var(--test-accent) !important;
  background: color-mix(in srgb, var(--test-accent) 12%, transparent) !important;
  font-size: 0.95rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  transform: translateY(-50%) !important;
}

html[data-theme] body .test-workspace #resultScreen.uy-report-uniform .uy-report-inline-details[open] > .uy-report-inline-summary::before {
  content: "⌃" !important;
}

html[data-theme] body .test-workspace #resultScreen.uy-report-uniform .uy-report-inline-summary::after {
  content: none !important;
  display: none !important;
}

html[data-theme] body .test-workspace #resultScreen.uy-report-uniform .uy-report-inline-details > :not(summary) {
  margin: 0.72rem 0 0 !important;
  padding: 0 0.12rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: var(--text-secondary) !important;
  -webkit-text-fill-color: var(--text-secondary) !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body .test-workspace #resultScreen.uy-report-uniform .uy-report-inline-summary {
  background: color-mix(in srgb, var(--test-accent) 7%, #181b2c) !important;
}

html[data-theme="dark"] body .test-workspace #resultScreen.uy-report-uniform .uy-report-inline-details > :not(summary) {
  color: #d6d1d0 !important;
  -webkit-text-fill-color: #d6d1d0 !important;
}

@media (max-width: 680px) {
  html[data-theme] body .test-workspace #resultScreen.uy-report-uniform .uy-report-inline-summary {
    padding-inline: 2.55rem !important;
    font-size: 0.76rem !important;
  }
}

/* ---------------------------------------------------------
   6. Profieldekking: één echte voortgangsbalk per kaart en
      uniforme verticale positionering in beide thema's.
---------------------------------------------------------- */
html[data-theme] body.total-report-open #totalReportWorkspace .tr-coverage-grid {
  align-items: stretch !important;
}

html[data-theme] body.total-report-open #totalReportWorkspace .tr-coverage-item {
  display: flex !important;
  min-height: 8.5rem;
  flex-direction: column !important;
}

html[data-theme] body.total-report-open #totalReportWorkspace .tr-coverage-item > span {
  flex: 1 1 auto;
}

html[data-theme] body.total-report-open #totalReportWorkspace .tr-coverage-item > .tr-meter {
  width: 100%;
  margin-top: auto !important;
}

/* ---------------------------------------------------------
   7. Print/PDF blijft volledig licht, ook na de uitgebreidere
      dark-modekaartregels hierboven.
---------------------------------------------------------- */
/* Printregels gecentraliseerd in print.css. */


/* V44 aanvullende totaalrapportdetails: ook geneste lichtere vlakken blijven donker. */
html[data-theme="dark"] body.total-report-open #totalReportWorkspace .total-report-document :where(
  .tr-test-card-body,
  .tr-source-card-body,
  .tr-detail-section-body,
  .tr-rich-card,
  .tr-rich-card-body,
  .tr-rich-subsection,
  .tr-table-wrap,
  .tr-badge,
  .tr-confidence
) {
  border-color: #3a3d56 !important;
  color: #fbf6f3 !important;
  background: #20243a !important;
  background-image: none !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body.total-report-open #totalReportWorkspace .total-report-document :where(
  .tr-test-card-body,
  .tr-source-card-body,
  .tr-detail-section-body,
  .tr-rich-card,
  .tr-rich-card-body,
  .tr-rich-subsection,
  .tr-table-wrap,
  .tr-badge,
  .tr-confidence
) :where(h1, h2, h3, h4, h5, h6, strong, summary) {
  color: #fbf6f3 !important;
  -webkit-text-fill-color: #fbf6f3 !important;
}

html[data-theme="dark"] body.total-report-open #totalReportWorkspace .total-report-document :where(
  .tr-test-card-body,
  .tr-source-card-body,
  .tr-detail-section-body,
  .tr-rich-card,
  .tr-rich-card-body,
  .tr-rich-subsection,
  .tr-table-wrap,
  .tr-badge,
  .tr-confidence
) :where(p, li, span, small, td, th) {
  color: #d6d1d0 !important;
  -webkit-text-fill-color: #d6d1d0 !important;
}

/* =========================================================
   V46 — DEFINITIEVE PRINT- EN PDF-LAAG

   Deze regels gelden uitsluitend tijdens afdrukken of opslaan
   als PDF. De normale light- en dark-weergave wordt niet
   gewijzigd.
========================================================= */
/* Printregels gecentraliseerd in print.css. */

