:root {
  --background: #f6f7fb;
  --surface: #ffffff;
  --surface-soft: #f0f2f8;
  --text: #182033;
  --muted: #687086;
  --line: #dde1eb;
  --primary: #6f5cff;
  --primary-dark: #5140dc;
  --secondary: #17324d;
  --success: #159b83;
  --shadow: 0 24px 70px rgba(29, 38, 65, 0.12);
  --shadow-soft: 0 12px 35px rgba(29, 38, 65, 0.08);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shell: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 5% 0%, rgba(111, 92, 255, 0.09), transparent 28rem),
    var(--background);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

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

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--text);
  color: white;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(221, 225, 235, 0.8);
  background: rgba(246, 247, 251, 0.82);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: linear-gradient(145deg, var(--primary), #8c7cff);
  box-shadow: 0 10px 24px rgba(111, 92, 255, 0.28);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 1rem;
}

.brand-text small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.75rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.main-nav > a {
  color: #4f586e;
  font-size: 0.92rem;
  font-weight: 650;
}

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

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.menu-button span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 99px;
  background: var(--text);
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 750;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button:focus-visible,
.domain-node:focus-visible,
.icon-button:focus-visible,
.text-button:focus-visible,
.menu-button:focus-visible {
  outline: 3px solid rgba(111, 92, 255, 0.28);
  outline-offset: 3px;
}

.button-small {
  min-height: 40px;
  padding-inline: 16px;
  border-radius: 12px;
  font-size: 0.86rem;
}

.button-primary {
  color: white;
  background: linear-gradient(135deg, var(--primary), #8374ff);
  box-shadow: 0 12px 28px rgba(111, 92, 255, 0.25);
}

.button-primary:hover {
  box-shadow: 0 15px 35px rgba(111, 92, 255, 0.32);
}

.button-secondary {
  border-color: var(--line);
  background: var(--surface);
}

.button-ghost {
  border-color: rgba(111, 92, 255, 0.18);
  color: var(--primary-dark);
  background: rgba(111, 92, 255, 0.06);
}

.hero {
  padding: 88px 0 72px;
  overflow: clip;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(330px, 0.72fr);
  align-items: center;
  gap: 72px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 0.77rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-intro {
  max-width: 680px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.17rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
  margin-top: 28px;
  color: #596277;
  font-size: 0.86rem;
  font-weight: 650;
}

.trust-row i {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  margin-right: 6px;
  border-radius: 50%;
  color: var(--success);
  background: rgba(21, 155, 131, 0.11);
  font-style: normal;
}

.hero-card {
  position: relative;
  min-height: 470px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(243, 241, 255, 0.94));
  box-shadow: var(--shadow);
}

.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  pointer-events: none;
}

.hero-card::before {
  width: 140px;
  height: 140px;
  right: -28px;
  top: -28px;
  background: rgba(111, 92, 255, 0.12);
}

.hero-card::after {
  width: 86px;
  height: 86px;
  left: -24px;
  bottom: 72px;
  background: rgba(21, 155, 131, 0.12);
}

.hero-card-top {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.hero-card-top strong {
  margin-left: auto;
  color: var(--text);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 6px rgba(21, 155, 131, 0.1);
}

.progress-ring {
  --progress: 0;
  width: 218px;
  aspect-ratio: 1;
  margin: 14px auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    conic-gradient(var(--primary) calc(var(--progress) * 1%), #e7e7ef 0);
  box-shadow: inset 0 0 0 1px rgba(111, 92, 255, 0.03);
}

.progress-ring::before {
  content: "";
  position: absolute;
}

.progress-ring-inner {
  width: 174px;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  text-align: center;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.progress-ring-inner strong {
  font-size: 3.25rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.progress-ring-inner span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
}

.mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mini-stats div {
  padding: 15px;
  display: grid;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.mini-stats strong {
  font-size: 1.25rem;
}

.mini-stats span {
  color: var(--muted);
  font-size: 0.77rem;
}

.profile-section {
  padding: 96px 0;
  background: var(--surface);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.62fr);
  align-items: end;
  gap: 90px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.section-heading > p {
  margin: 0 0 5px;
  color: var(--muted);
}

.section-heading.compact {
  display: block;
}

.dashboard-toolbar {
  margin-top: 46px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfbfd;
}

.dashboard-toolbar > div {
  display: grid;
  grid-template-columns: auto minmax(180px, 360px);
  align-items: center;
  gap: 16px;
}

.toolbar-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.dashboard-toolbar > strong {
  font-size: 0.84rem;
}

.linear-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #e5e7ee;
}

.linear-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #9b8fff);
  transition: width 240ms ease;
}

.profile-wheel {
  position: relative;
  width: min(100%, 900px);
  aspect-ratio: 1;
  margin: 40px auto 0;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(111, 92, 255, 0.06) 0 29%, transparent 30%),
    radial-gradient(circle, transparent 0 47%, rgba(111, 92, 255, 0.09) 47.2% 47.7%, transparent 48%);
}

.wheel-center {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  width: 238px;
  height: 238px;
  padding: 26px;
  display: grid;
  place-items: center;
  align-content: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(111, 92, 255, 0.15);
  border-radius: 50%;
  background: linear-gradient(160deg, #ffffff, #f2f0ff);
  box-shadow: 0 24px 55px rgba(48, 39, 115, 0.16);
  text-align: center;
}

.avatar {
  width: 68px;
  height: 68px;
  position: relative;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--primary), #998cff);
}

.avatar::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 23px;
  top: 13px;
  border-radius: 50%;
  background: white;
}

.avatar::after {
  content: "";
  position: absolute;
  width: 38px;
  height: 22px;
  left: 15px;
  bottom: 11px;
  border-radius: 22px 22px 11px 11px;
  background: white;
}

.wheel-center p {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.wheel-center > strong {
  margin-top: 1px;
  font-size: 1.9rem;
  letter-spacing: -0.04em;
}

.text-button {
  margin-top: 6px;
  padding: 0;
  border: 0;
  color: var(--primary-dark);
  background: transparent;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 800;
}

.domain-layer {
  position: absolute;
  inset: 0;
}

.domain-node {
  --domain-color: var(--primary);
  position: absolute;
  width: 190px;
  min-height: 100px;
  padding: 14px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
  transform: translate(-50%, -50%);
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  text-align: left;
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}

.domain-node:hover {
  transform: translate(-50%, -50%) translateY(-4px);
  border-color: color-mix(in srgb, var(--domain-color), white 52%);
  box-shadow: 0 18px 42px rgba(29, 38, 65, 0.13);
}

.domain-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--domain-color);
  background: color-mix(in srgb, var(--domain-color), white 88%);
  font-size: 0.82rem;
  font-weight: 900;
}

.domain-copy {
  min-width: 0;
  display: grid;
  line-height: 1.2;
}

.domain-copy strong {
  overflow-wrap: anywhere;
  font-size: 0.79rem;
}

.domain-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.67rem;
}

.domain-percentage {
  color: var(--domain-color);
  font-size: 0.72rem;
  font-weight: 850;
}

.mobile-domain-grid {
  display: none;
}

.how-section {
  padding: 96px 0;
}

.steps-grid {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.step-card {
  min-height: 228px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.step-card > span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: var(--primary);
  background: rgba(111, 92, 255, 0.09);
  font-size: 0.75rem;
  font-weight: 850;
}

.step-card h3 {
  margin: 30px 0 10px;
  font-size: 1.05rem;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.privacy-card {
  margin-top: 18px;
  padding: 26px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-radius: var(--radius-lg);
  color: white;
  background: var(--secondary);
}

.privacy-icon {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.5rem;
}

.privacy-card h3 {
  margin: 0 0 5px;
}

.privacy-card p {
  max-width: 850px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.site-footer {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-inner p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(17, 24, 39, 0.46);
  backdrop-filter: blur(4px);
}

.drawer {
  position: fixed;
  right: 0;
  top: 0;
  z-index: 200;
  width: min(540px, 100%);
  height: 100dvh;
  padding: 28px;
  overflow-y: auto;
  transform: translateX(105%);
  border-left: 1px solid var(--line);
  background: var(--surface);
  box-shadow: -24px 0 70px rgba(22, 30, 50, 0.18);
  transition: transform 240ms ease;
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer-header,
.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.drawer-header h2,
.dialog-header h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.icon-button {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}

.drawer-progress {
  margin: 28px 0 20px;
  padding: 18px;
  border-radius: 16px;
  background: var(--surface-soft);
}

.drawer-progress > div:first-child {
  margin-bottom: 11px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.drawer-progress strong {
  color: var(--text);
}

.test-list {
  display: grid;
  gap: 12px;
}

.test-card {
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
}

.test-card h3 {
  margin: 0;
  font-size: 0.96rem;
}

.test-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.79rem;
}

.test-status {
  align-self: start;
  padding: 5px 8px;
  border-radius: 999px;
  color: #566074;
  background: var(--surface-soft);
  font-size: 0.63rem;
  font-weight: 850;
  white-space: nowrap;
}

.test-card-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
}

.test-start-button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(111, 92, 255, 0.2);
  border-radius: 11px;
  color: var(--primary-dark);
  background: rgba(111, 92, 255, 0.06);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
}

.storage-dialog {
  width: min(560px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.storage-dialog::backdrop {
  background: rgba(17, 24, 39, 0.48);
  backdrop-filter: blur(5px);
}

.storage-dialog form {
  padding: 28px;
}

.dialog-intro {
  margin: 24px 0;
  color: var(--muted);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

body.no-scroll {
  overflow: hidden;
}

@media (max-width: 980px) {
  .main-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: calc(100% + 8px);
    padding: 16px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav > a {
    padding: 10px 8px;
  }

  .menu-button {
    display: block;
  }

  .hero {
    padding-top: 58px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero-card {
    min-height: 420px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .profile-wheel {
    display: none;
  }

  .mobile-domain-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 13px;
  }

  .mobile-domain-grid .domain-node {
    position: static;
    width: auto;
    min-height: 106px;
    transform: none;
  }

  .mobile-domain-grid .domain-node:hover {
    transform: translateY(-3px);
  }

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

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

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

  .brand-text small {
    display: none;
  }

  .hero {
    padding: 46px 0 54px;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 13vw, 3.45rem);
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .trust-row {
    display: grid;
    gap: 10px;
  }

  .hero-card {
    min-height: 400px;
    padding: 22px;
    border-radius: 24px;
  }

  .progress-ring {
    width: 190px;
  }

  .progress-ring-inner {
    width: 150px;
  }

  .profile-section,
  .how-section {
    padding: 72px 0;
  }

  .dashboard-toolbar {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .dashboard-toolbar > div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .mobile-domain-grid {
    grid-template-columns: 1fr;
  }

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

  .step-card {
    min-height: auto;
  }

  .privacy-card {
    align-items: flex-start;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .drawer {
    padding: 20px;
  }

  .drawer-header h2,
  .dialog-header h2 {
    font-size: 1.55rem;
  }

  .dialog-actions {
    flex-direction: column-reverse;
  }

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

  .test-status {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
/* =========================================================
   UNFOLD YOURSELF — TESTOMGEVING
   Algemene structuur en bovenste werkbalk
========================================================= */

[hidden] {
  display: none !important;
}

.test-workspace {
  min-height: 100vh;
  padding: 42px 0 90px;
  background:
    radial-gradient(
      circle at 10% 0%,
      rgba(111, 92, 255, 0.10),
      transparent 28rem
    ),
    linear-gradient(
      180deg,
      #f7f8fc 0%,
      #f2f4f9 100%
    );
}

.test-shell {
  width: min(calc(100% - 40px), 1180px);
}

.test-topbar {
  position: sticky;
  top: 92px;
  z-index: 50;

  margin-bottom: 26px;
  padding: 14px 16px;

  display: grid;
  grid-template-columns: auto minmax(240px, 420px);
  align-items: center;
  justify-content: space-between;
  gap: 28px;

  border: 1px solid rgba(221, 225, 235, 0.92);
  border-radius: 18px;

  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(18px);

  box-shadow:
    0 12px 34px rgba(29, 38, 65, 0.08);
}

.back-button {
  min-height: 42px;
  padding: 0 14px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  border: 1px solid var(--line);
  border-radius: 12px;

  color: var(--text);
  background: var(--surface);

  cursor: pointer;

  font-size: 0.83rem;
  font-weight: 750;
}

.back-button:hover {
  border-color: rgba(111, 92, 255, 0.28);
  color: var(--primary-dark);
  background: rgba(111, 92, 255, 0.05);
}

.back-button span {
  font-size: 1rem;
}

.test-topbar-progress {
  display: grid;
  grid-template-columns: auto minmax(150px, 260px);
  align-items: center;
  gap: 14px;
}

.test-topbar-progress > span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  white-space: nowrap;
}

.test-screen {
  width: 100%;
}

body.test-active .site-header {
  box-shadow:
    0 10px 30px rgba(29, 38, 65, 0.05);
}

body.test-active .hero,
body.test-active .profile-section,
body.test-active .how-section,
body.test-active .site-footer {
  display: none;
}
/* =========================================================
   TESTINTRODUCTIE
========================================================= */

.test-intro-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(290px, 0.42fr);
  align-items: start;
  gap: 24px;
}

.test-intro-main {
  padding: 42px;

  border: 1px solid var(--line);
  border-radius: 28px;

  background: var(--surface);

  box-shadow:
    0 24px 65px rgba(29, 38, 65, 0.10);
}

.test-intro-main h2 {
  max-width: 820px;
  margin: 0;

  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.045em;

  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.test-description {
  max-width: 780px;
  margin: 22px 0 0;

  color: var(--muted);

  font-size: 1rem;
  line-height: 1.7;
}

.test-information-grid {
  margin-top: 34px;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.test-information-item {
  min-height: 110px;
  padding: 16px;

  display: flex;
  align-items: center;
  gap: 13px;

  border: 1px solid var(--line);
  border-radius: 17px;

  background: #fafafe;
}

.information-icon {
  flex: 0 0 40px;

  width: 40px;
  height: 40px;

  display: grid;
  place-items: center;

  border-radius: 12px;

  color: var(--primary-dark);
  background: rgba(111, 92, 255, 0.10);

  font-size: 0.92rem;
  font-weight: 850;
}

.test-information-item > div {
  min-width: 0;
  display: grid;
}

.test-information-item strong {
  font-size: 0.82rem;
  line-height: 1.3;
}

.test-information-item span:not(.information-icon) {
  margin-top: 4px;

  color: var(--muted);

  font-size: 0.70rem;
  line-height: 1.35;
}

.test-guidance {
  margin-top: 28px;
  padding: 24px;

  border-radius: 18px;

  color: white;
  background:
    linear-gradient(
      145deg,
      #17324d,
      #244965
    );
}

.test-guidance h3 {
  margin: 0 0 12px;

  font-size: 1rem;
}

.test-guidance ul {
  margin: 0;
  padding-left: 20px;

  color: rgba(255, 255, 255, 0.76);
}

.test-guidance li + li {
  margin-top: 8px;
}

.test-intro-actions {
  margin-top: 28px;

  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.test-preview-card {
  position: sticky;
  top: 180px;

  padding: 28px;

  border: 1px solid rgba(111, 92, 255, 0.15);
  border-radius: 24px;

  background:
    linear-gradient(
      165deg,
      #ffffff,
      #f1efff
    );

  box-shadow:
    0 20px 55px rgba(48, 39, 115, 0.12);
}

.test-preview-label {
  display: inline-flex;
  padding: 6px 10px;

  border-radius: 999px;

  color: var(--primary-dark);
  background: rgba(111, 92, 255, 0.09);

  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.test-preview-card h3 {
  margin: 22px 0 18px;

  font-size: 1.45rem;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.test-preview-card ul {
  margin: 0;
  padding: 0;

  display: grid;
  gap: 11px;

  list-style: none;
}

.test-preview-card li {
  position: relative;
  padding-left: 28px;

  color: #4f586e;

  font-size: 0.86rem;
}

.test-preview-card li::before {
  content: "✓";

  position: absolute;
  left: 0;
  top: 0;

  width: 19px;
  height: 19px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  color: var(--success);
  background: rgba(21, 155, 131, 0.11);

  font-size: 0.68rem;
  font-weight: 900;
}

.test-preview-card p {
  margin: 24px 0 0;
  padding-top: 18px;

  border-top: 1px solid rgba(111, 92, 255, 0.12);

  color: var(--muted);

  font-size: 0.78rem;
}
/* =========================================================
   VRAGENSCHERM
========================================================= */

.question-layout {
  display: grid;
  grid-template-columns:
    minmax(230px, 0.30fr)
    minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

.question-sidebar {
  position: sticky;
  top: 180px;

  padding: 24px;

  border: 1px solid var(--line);
  border-radius: 22px;

  background: var(--surface);

  box-shadow:
    0 16px 42px rgba(29, 38, 65, 0.08);
}

.question-sidebar h2 {
  margin: 0;

  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.025em;

  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.question-counter-block {
  margin-top: 30px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.question-counter-block span {
  color: var(--muted);

  font-size: 0.76rem;
  font-weight: 700;
}

.question-counter-block strong {
  color: var(--primary-dark);

  font-size: 0.86rem;
}

.question-progress {
  margin-top: 10px;
}

.save-exit-button {
  width: 100%;
  min-height: 42px;

  margin-top: 26px;
  padding: 0 12px;

  border: 1px solid var(--line);
  border-radius: 12px;

  color: var(--muted);
  background: #fafafe;

  cursor: pointer;

  font-size: 0.73rem;
  font-weight: 750;
}

.save-exit-button:hover {
  color: var(--primary-dark);
  border-color: rgba(111, 92, 255, 0.25);
  background: rgba(111, 92, 255, 0.05);
}

.question-card {
  min-height: 600px;
  padding: 42px;

  display: flex;
  flex-direction: column;

  border: 1px solid var(--line);
  border-radius: 28px;

  background: var(--surface);

  box-shadow:
    0 24px 65px rgba(29, 38, 65, 0.10);
}

.question-category {
  margin: 0;

  color: var(--primary);

  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.question-card > h2 {
  max-width: 880px;
  margin: 18px 0 0;

  font-size: clamp(1.65rem, 3vw, 2.65rem);
  line-height: 1.15;
  letter-spacing: -0.035em;

  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.question-instruction {
  margin: 14px 0 0;

  color: var(--muted);

  font-size: 0.88rem;
}

.answer-options {
  margin-top: 34px;

  display: grid;
  gap: 12px;
}

.answer-option {
  position: relative;

  width: 100%;
  min-height: 66px;
  padding: 14px 18px;

  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 14px;

  border: 1px solid var(--line);
  border-radius: 16px;

  color: var(--text);
  background: #ffffff;

  cursor: pointer;
  text-align: left;

  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.answer-option:hover {
  transform: translateY(-2px);

  border-color: rgba(111, 92, 255, 0.28);
  background: rgba(111, 92, 255, 0.035);

  box-shadow:
    0 10px 26px rgba(29, 38, 65, 0.07);
}

.answer-option.is-selected {
  border-color: var(--primary);
  background: rgba(111, 92, 255, 0.075);

  box-shadow:
    0 0 0 3px rgba(111, 92, 255, 0.10);
}

.answer-option-marker {
  width: 38px;
  height: 38px;

  display: grid;
  place-items: center;

  border: 1px solid var(--line);
  border-radius: 50%;

  color: var(--muted);
  background: var(--surface);

  font-size: 0.75rem;
  font-weight: 850;
}

.answer-option.is-selected .answer-option-marker {
  border-color: var(--primary);

  color: white;
  background: var(--primary);
}

.answer-option-copy {
  min-width: 0;
  display: grid;
}

.answer-option-copy strong {
  font-size: 0.88rem;
  line-height: 1.3;

  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.answer-option-copy small {
  margin-top: 4px;

  color: var(--muted);

  font-size: 0.72rem;
  line-height: 1.4;
}

.answer-warning {
  margin: 14px 0 0;
  padding: 11px 13px;

  border: 1px solid rgba(188, 56, 56, 0.18);
  border-radius: 11px;

  color: #a83434;
  background: rgba(188, 56, 56, 0.06);

  font-size: 0.76rem;
  font-weight: 700;
}

.question-navigation {
  margin-top: auto;
  padding-top: 34px;

  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.question-navigation .button {
  min-width: 150px;
}
/* =========================================================
   RESULTAATSCHERM
========================================================= */

.result-screen {
  display: grid;
  gap: 22px;
}

.result-hero {
  padding: 36px;

  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 34px;

  border-radius: 26px;

  color: white;
  background:
    linear-gradient(
      135deg,
      #17324d,
      #274f6d
    );

  box-shadow:
    0 24px 65px rgba(23, 50, 77, 0.18);
}

.result-hero .eyebrow {
  color: #bfb7ff;
}

.result-hero h2 {
  margin: 0;

  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.result-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 18px 0 0;

  color: rgba(255, 255, 255, 0.72);

  font-size: 0.95rem;
  line-height: 1.65;
}

.result-score-card {
  width: 170px;
  min-height: 170px;
  padding: 20px;

  display: grid;
  place-content: center;

  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;

  background: rgba(255, 255, 255, 0.08);

  text-align: center;
}

.result-score-card span {
  color: rgba(255, 255, 255, 0.68);

  font-size: 0.72rem;
}

.result-score-card strong {
  margin-top: 5px;

  font-size: 2.9rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.result-score-card small {
  margin-top: 8px;

  color: #c9c4ff;

  font-size: 0.72rem;
  font-weight: 750;
}

.result-dimensions {
  display: grid;
  grid-template-columns:
    repeat(
      auto-fit,
      minmax(170px, 1fr)
    );
  gap: 12px;
}

.dimension-card {
  padding: 18px;

  border: 1px solid var(--line);
  border-radius: 17px;

  background: var(--surface);

  box-shadow:
    0 12px 30px rgba(29, 38, 65, 0.06);
}

.dimension-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.dimension-card h3 {
  margin: 0;

  font-size: 0.78rem;
  line-height: 1.25;

  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.dimension-card strong {
  color: var(--primary-dark);

  font-size: 0.82rem;
}

.dimension-bar {
  height: 7px;

  margin-top: 15px;
  overflow: hidden;

  border-radius: 99px;

  background: #e7e8ef;
}

.dimension-bar span {
  display: block;
  height: 100%;

  border-radius: inherit;

  background:
    linear-gradient(
      90deg,
      var(--primary),
      #9a8fff
    );
}

.result-content-grid {
  display: grid;
  grid-template-columns:
    repeat(
      auto-fit,
      minmax(280px, 1fr)
    );
  gap: 16px;
}

.result-content-card {
  min-height: 220px;
  padding: 26px;

  border: 1px solid var(--line);
  border-radius: 21px;

  background: var(--surface);

  box-shadow:
    0 14px 36px rgba(29, 38, 65, 0.065);
}

.result-card-label {
  color: var(--primary);

  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.result-content-card h3 {
  margin: 12px 0 16px;

  font-size: 1.1rem;
}

.result-content-card p,
.result-content-card li {
  color: var(--muted);

  font-size: 0.85rem;
  line-height: 1.6;
}

.result-content-card p {
  margin: 0;
}

.result-content-card ul {
  margin: 0;
  padding-left: 19px;
}

.result-content-card li + li {
  margin-top: 8px;
}

.result-actions {
  padding-top: 4px;

  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

/* =========================================================
   OPSLAGVENSTER
========================================================= */

.storage-summary {
  margin: 22px 0;

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.storage-summary > div {
  padding: 18px;

  display: grid;

  border: 1px solid var(--line);
  border-radius: 15px;

  background: #fafafe;
}

.storage-summary span {
  color: var(--muted);

  font-size: 0.72rem;
}

.storage-summary strong {
  margin-top: 5px;

  font-size: 1.5rem;
}

/* =========================================================
   KORTE MELDING ONDERAAN
========================================================= */

.toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 500;

  min-width: 220px;
  max-width: calc(100% - 32px);
  padding: 13px 18px;

  transform: translateX(-50%);

  border-radius: 13px;

  color: white;
  background: #182033;

  box-shadow:
    0 18px 44px rgba(24, 32, 51, 0.24);

  text-align: center;

  font-size: 0.80rem;
  font-weight: 750;
}
/* =========================================================
   RESPONSIVE TESTOMGEVING
========================================================= */

@media (max-width: 980px) {

  .test-workspace {
    padding-top: 28px;
  }

  .test-topbar {
    top: 82px;
  }

  .test-intro-grid {
    grid-template-columns: 1fr;
  }

  .test-preview-card {
    position: static;
  }

  .test-information-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .question-sidebar {
    position: static;

    display: grid;
    grid-template-columns:
      minmax(0, 1fr)
      auto;
    align-items: center;
    gap: 18px;
  }

  .question-sidebar .eyebrow {
    grid-column: 1 / -1;
  }

  .question-sidebar h2 {
    grid-column: 1;
  }

  .question-counter-block {
    grid-column: 2;
    grid-row: 2;

    margin: 0;
  }

  .question-progress {
    grid-column: 1 / -1;
  }

  .save-exit-button {
    grid-column: 1 / -1;
    width: auto;
    justify-self: start;

    margin-top: 4px;
  }

  .result-dimensions {
    grid-template-columns:
      repeat(
        auto-fit,
        minmax(165px, 1fr)
      );
  }
}

@media (max-width: 720px) {

  .test-shell {
    width: min(calc(100% - 28px), 1180px);
  }

  .test-topbar {
    position: static;

    grid-template-columns: 1fr;
    gap: 12px;
  }

  .test-topbar-progress {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .test-topbar-progress > span {
    white-space: normal;
  }

  .test-intro-main,
  .question-card {
    padding: 26px;
    border-radius: 22px;
  }

  .test-information-grid {
    grid-template-columns: 1fr;
  }

  .test-information-item {
    min-height: auto;
  }

  .test-intro-actions {
    display: grid;
  }

  .test-intro-actions .button {
    width: 100%;
  }

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

  .question-sidebar .eyebrow,
  .question-sidebar h2,
  .question-counter-block,
  .question-progress,
  .save-exit-button {
    grid-column: 1;
    grid-row: auto;
  }

  .question-counter-block {
    margin-top: 18px;
  }

  .question-card {
    min-height: 560px;
  }

  .answer-option {
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 13px;
  }

  .answer-option-marker {
    width: 34px;
    height: 34px;
  }

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

  .question-navigation .button {
    width: 100%;
    min-width: 0;
  }

  #nextQuestionButton {
    grid-row: 1;
  }

  #previousQuestionButton {
    grid-row: 2;
  }

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

  .result-score-card {
    width: 100%;
    min-height: 130px;
  }

  .result-dimensions {
    grid-template-columns:
      repeat(
        auto-fit,
        minmax(150px, 1fr)
      );
  }

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

  .result-actions {
    display: grid;
  }

  .result-actions .button {
    width: 100%;
  }

  .storage-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {

  .test-workspace {
    padding-bottom:
      max(60px, env(safe-area-inset-bottom));
  }

  .test-intro-main,
  .question-card,
  .question-sidebar,
  .test-preview-card {
    padding: 20px;
  }

  .test-intro-main h2 {
    font-size: 2rem;
  }

  .question-card > h2 {
    font-size: 1.55rem;
  }

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

/* Liggende mobiele schermen */

@media (
  max-height: 560px
)
and (
  orientation: landscape
) {

  .test-workspace {
    padding-top: 18px;
  }

  .test-topbar {
    position: static;
  }

  .question-card {
    min-height: auto;
  }

  .question-navigation {
    padding-top: 24px;
  }
}
/* =========================================================
   STATUS VAN TESTKNOPPEN
========================================================= */

.test-start-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.test-start-button:disabled:hover {
  transform: none;
  border-color: var(--line);
  background: var(--surface-soft);
}

#previousQuestionButton:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
/* =========================================================
   BIG FIVE — FACETRAPPORT
========================================================= */

.facet-report {
  padding: 30px;

  border: 1px solid var(--line);
  border-radius: 24px;

  background: var(--surface);

  box-shadow:
    0 16px 42px rgba(29, 38, 65, 0.07);
}

.facet-report-header {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    auto;
  align-items: start;
  gap: 30px;
}

.facet-report-header h3 {
  margin: 0;

  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.facet-report-header p:not(.eyebrow) {
  max-width: 760px;
  margin: 12px 0 0;

  color: var(--muted);

  font-size: 0.88rem;
  line-height: 1.6;
}

.facet-toggle-button {
  width: auto;
  min-width: 190px;
}

.facet-explanation {
  margin-top: 24px;
  padding: 16px 18px;

  border: 1px solid rgba(111, 92, 255, 0.14);
  border-radius: 15px;

  background: rgba(111, 92, 255, 0.05);
}

.facet-explanation strong {
  display: block;

  color: var(--primary-dark);

  font-size: 0.78rem;
}

.facet-explanation p {
  margin: 5px 0 0;

  color: var(--muted);

  font-size: 0.78rem;
  line-height: 1.55;
}

.facet-groups {
  margin-top: 24px;

  display: grid;
  gap: 18px;
}

.facet-domain-group {
  overflow: hidden;

  border: 1px solid var(--line);
  border-radius: 19px;

  background: #fbfbfd;
}

.facet-domain-header {
  padding: 18px 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  border-bottom: 1px solid var(--line);

  background: var(--surface);
}

.facet-domain-title {
  min-width: 0;
}

.facet-domain-title span {
  display: block;

  color: var(--muted);

  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.facet-domain-title h4 {
  margin: 5px 0 0;

  font-size: 1.02rem;

  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.facet-domain-score {
  flex: 0 0 auto;

  padding: 7px 10px;

  border-radius: 999px;

  color: var(--primary-dark);
  background: rgba(111, 92, 255, 0.09);

  font-size: 0.72rem;
  font-weight: 850;
}

.facet-domain-items {
  padding: 16px;

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 11px;
}

.facet-item {
  padding: 15px;

  border: 1px solid var(--line);
  border-radius: 14px;

  background: var(--surface);
}

.facet-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.facet-item h5 {
  margin: 0;

  font-size: 0.78rem;
  line-height: 1.3;

  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.facet-item-score {
  flex: 0 0 auto;

  color: var(--primary-dark);

  font-size: 0.76rem;
  font-weight: 850;
}

.facet-item-band {
  margin-top: 5px;

  display: block;

  color: var(--muted);

  font-size: 0.66rem;
}

.facet-bar {
  height: 7px;

  margin-top: 13px;
  overflow: hidden;

  border-radius: 999px;

  background: #e6e8ef;
}

.facet-bar span {
  display: block;
  height: 100%;

  border-radius: inherit;

  background:
    linear-gradient(
      90deg,
      var(--primary),
      #9b8fff
    );
}

.facet-report.is-collapsed .facet-explanation,
.facet-report.is-collapsed .facet-groups {
  display: none;
}


/* =========================================================
   RESPONSIVE FACETRAPPORT
========================================================= */

@media (max-width: 760px) {

  .facet-report {
    padding: 22px;
  }

  .facet-report-header {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .facet-toggle-button {
    width: 100%;
  }

  .facet-domain-items {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {

  .facet-report {
    padding: 18px;
  }

  .facet-domain-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .facet-domain-score {
    align-self: flex-start;
  }
}

/* =========================================================
   WETENSCHAPPELIJKE BASIS EN DISCLAIMER
========================================================= */

.test-evidence {
  margin-top: 22px;

  overflow: hidden;

  border: 1px solid var(--line);
  border-radius: 17px;

  background: #fafafe;
}

.test-evidence summary {
  min-height: 54px;
  padding: 15px 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  cursor: pointer;

  color: var(--text);

  font-size: 0.82rem;
  font-weight: 800;

  list-style: none;
}

.test-evidence summary::-webkit-details-marker {
  display: none;
}

.test-evidence summary::after {
  content: "+";

  width: 28px;
  height: 28px;

  display: grid;
  place-items: center;

  flex: 0 0 auto;

  border-radius: 9px;

  color: var(--primary-dark);
  background: rgba(111, 92, 255, 0.09);

  font-size: 1rem;
}

.test-evidence[open] summary::after {
  content: "−";
}

.test-evidence-content {
  padding: 0 18px 18px;

  display: grid;
  gap: 12px;
}

.test-evidence-section {
  padding: 15px;

  border: 1px solid var(--line);
  border-radius: 13px;

  background: var(--surface);
}

.test-evidence-label,
.result-method-label {
  display: block;

  color: var(--primary);

  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.test-evidence-section p {
  margin: 7px 0 0;

  color: var(--muted);

  font-size: 0.77rem;
  line-height: 1.6;
}

.test-evidence-disclaimer {
  border-color: rgba(217, 109, 75, 0.20);
  background: rgba(217, 109, 75, 0.04);
}


/* =========================================================
   BRONVERMELDING IN HET RESULTAAT
========================================================= */

.result-method-note {
  padding: 22px;

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;

  border: 1px solid var(--line);
  border-radius: 19px;

  background: #fafafe;
}

.result-method-note > div {
  min-width: 0;
}

.result-method-note p {
  margin: 7px 0 0;

  color: var(--muted);

  font-size: 0.75rem;
  line-height: 1.6;
}

@media (max-width: 720px) {

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


/* =========================================================
   UITKLAPBARE INTERPRETATIE PER BIG FIVE-FACET
========================================================= */

.facet-item {
  padding: 0;
  overflow: hidden;
}

.facet-item-summary {
  position: relative;

  padding: 15px;

  display: block;

  cursor: pointer;
  list-style: none;
}

.facet-item-summary::-webkit-details-marker {
  display: none;
}

.facet-item-summary:focus-visible {
  outline: 3px solid rgba(111, 92, 255, 0.24);
  outline-offset: -3px;
}

.facet-item-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  margin-top: 12px;

  color: var(--primary-dark);

  font-size: 0.67rem;
  font-weight: 800;
}

.facet-item-toggle::after {
  content: "+";

  width: 19px;
  height: 19px;

  display: inline-grid;
  place-items: center;

  border-radius: 6px;

  background: rgba(111, 92, 255, 0.09);

  font-size: 0.78rem;
}

.facet-item[open] .facet-item-toggle::after {
  content: "−";
}

.facet-item-interpretation {
  padding: 15px;

  border-top: 1px solid var(--line);

  background:
    linear-gradient(
      180deg,
      rgba(111, 92, 255, 0.035),
      rgba(111, 92, 255, 0.015)
    );
}

.facet-interpretation-label {
  display: block;

  color: var(--primary);

  font-size: 0.63rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.facet-item-interpretation p {
  margin: 7px 0 0;

  color: var(--muted);

  font-size: 0.76rem;
  line-height: 1.6;
}

/* =========================================================
   RAPPORTDATUM EN AFDRUKKOP
========================================================= */

.print-report-header {
  display: none;
}

.result-completed-date {
  margin-top: 12px !important;

  color: rgba(
    255,
    255,
    255,
    0.58
  ) !important;

  font-size: 0.75rem !important;
  font-weight: 700;
}

/* =========================================================
   BIG FIVE — AFDRUKKEN EN OPSLAAN ALS PDF
========================================================= */

@page {
  size: A4;
  margin: 14mm;
}


@media print {

  html,
  body {
    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;

    color: #182033;
    background: #ffffff;

    font-size: 10pt;
  }


  /* Onderdelen die niet in het rapport horen */

  .site-header,
  .test-topbar,
  .result-actions,
  .facet-toggle-button,
  .facet-item-toggle,
  .toast,
  .overlay,
  .drawer,
  .site-footer {
    display: none !important;
  }


  /* Alleen de testomgeving afdrukken */

  .hero,
  .profile-section,
  .how-section {
    display: none !important;
  }

  .test-workspace {
    display: block !important;

    min-height: 0;

    padding: 0;

    background: #ffffff;
  }

  .test-shell {
    width: 100%;
    max-width: none;

    margin: 0;
  }

  .test-intro-screen,
  .question-screen {
    display: none !important;
  }

  .result-screen {
    display: block !important;
  }


  /* Afdrukkop */

  .print-report-header {
    margin-bottom: 8mm;
    padding-bottom: 5mm;

    display: flex !important;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10mm;

    border-bottom:
      1px solid #cfd4df;
  }

  .print-report-brand {
    display: grid;
  }

  .print-report-brand strong {
    font-size: 18pt;
    line-height: 1;
  }

  .print-report-brand span {
    margin-top: 2mm;

    color: #626b7e;

    font-size: 8pt;
  }

  .print-report-meta {
    display: grid;

    color: #626b7e;

    font-size: 8pt;
    text-align: right;
  }

  .print-report-meta span + span {
    margin-top: 1mm;
  }


  /* Resultaatkop */

  .result-hero {
    margin: 0 0 6mm;
    padding: 0 0 6mm;

    grid-template-columns:
      minmax(0, 1fr)
      42mm;
    gap: 8mm;

    border-bottom:
      1px solid #d9dde6;
    border-radius: 0;

    color: #182033;
    background: #ffffff;

    box-shadow: none;
  }

  .result-hero .eyebrow {
    color: #5140dc;
  }

  .result-hero h2 {
    color: #182033;

    font-size: 24pt;
  }

  .result-hero p,
  .result-hero p:not(.eyebrow),
  .result-completed-date {
    color: #555e72 !important;
  }

  .result-score-card {
    width: 42mm;
    min-height: 34mm;

    padding: 4mm;

    border:
      1px solid #cfd4df;
    border-radius: 4mm;

    color: #182033;
    background: #f6f7fb;
  }

  .result-score-card span {
    color: #626b7e;
  }

  .result-score-card strong {
    font-size: 24pt;
  }

  .result-score-card small {
    color: #5140dc;
  }


  /* Vijf hoofddomeinen */

  .result-dimensions {
    margin-bottom: 6mm;

    grid-template-columns:
      repeat(
        auto-fit,
        minmax(30mm, 1fr)
      );
    gap: 2.5mm;
  }

  .dimension-card {
    min-width: 0;
    padding: 3.5mm;

    border:
      1px solid #d9dde6;
    border-radius: 3mm;

    box-shadow: none;

    break-inside: avoid;
    page-break-inside: avoid;
  }

  .dimension-card h3 {
    font-size: 7.5pt;
  }

  .dimension-card strong {
    font-size: 8pt;
  }

  .dimension-bar {
    height: 1.8mm;
    margin-top: 3mm;
  }


  /* Algemene interpretatiekaarten */

  .result-content-grid {
    margin-bottom: 6mm;

    grid-template-columns:
      repeat(
        auto-fit,
        minmax(70mm, 1fr)
      );
    gap: 3mm;
  }

  .result-content-card {
    min-height: 0;
    padding: 5mm;

    border:
      1px solid #d9dde6;
    border-radius: 3mm;

    box-shadow: none;

    break-inside: avoid;
    page-break-inside: avoid;
  }

  .result-content-card h3 {
    margin-top: 2mm;

    font-size: 11pt;
  }

  .result-content-card p,
  .result-content-card li {
    font-size: 8.5pt;
    line-height: 1.45;
  }


  /* Facetrapport begint op een nieuwe pagina */

  .facet-report {
    margin-top: 0;
    padding: 0;

    border: 0;
    border-radius: 0;

    background: #ffffff;

    box-shadow: none;

    break-before: page;
    page-break-before: always;
  }

  .facet-report-header {
    margin-bottom: 5mm;

    display: block;
  }

  .facet-report-header h3 {
    font-size: 18pt;
  }

  .facet-report-header p:not(.eyebrow) {
    font-size: 8.5pt;
  }

  .facet-explanation {
    margin: 0 0 5mm;
    padding: 4mm;

    border:
      1px solid #d9dde6;
    border-radius: 3mm;

    background: #f6f7fb;
  }


  /* Alle facetgroepen en uitleg zichtbaar */

  .facet-report.is-collapsed
  .facet-explanation,

  .facet-report.is-collapsed
  .facet-groups {
    display: block !important;
  }

  .facet-groups {
    display: block;
  }

  .facet-domain-group {
    margin-bottom: 6mm;

    border:
      1px solid #cfd4df;
    border-radius: 3mm;

    background: #ffffff;

    box-shadow: none;
  }

  .facet-domain-header {
    padding: 4mm;

    background: #f3f4f8;
  }

  .facet-domain-title h4 {
    font-size: 12pt;
  }

  .facet-domain-items {
    padding: 3mm;

    grid-template-columns:
      repeat(2, 1fr);
    gap: 2.5mm;
  }

  .facet-item {
    border:
      1px solid #d9dde6;
    border-radius: 2.5mm;

    background: #ffffff;

    break-inside: avoid;
    page-break-inside: avoid;
  }

  .facet-item-summary {
    padding: 3.5mm;
  }

  .facet-item h5 {
    font-size: 8.5pt;
  }

  .facet-item-score {
    font-size: 8pt;
  }

  .facet-item-band {
    font-size: 7pt;
  }

  .facet-bar {
    height: 1.5mm;
    margin-top: 2.5mm;
  }

  .facet-item-interpretation {
    display: block !important;

    padding: 3.5mm;

    border-top:
      1px solid #e1e4eb;

    background: #fafafe;
  }

  .facet-item-interpretation p {
    font-size: 7.5pt;
    line-height: 1.45;
  }


  /* Wetenschappelijke basis */

  .result-method-note {
    margin-top: 6mm;
    padding: 4mm;

    grid-template-columns: 1fr;

    border:
      1px solid #cfd4df;
    border-radius: 3mm;

    background: #f6f7fb;

    break-inside: avoid;
    page-break-inside: avoid;
  }

  .result-method-note p {
    font-size: 7pt;
    line-height: 1.4;
  }


  /* Kleuren en achtergronden meenemen */

  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* =========================================================
   BESCHRIJVINGEN ONDER DE BIG FIVE-HOOFDSCORES
========================================================= */

.dimension-card-description {
  min-height: 68px;

  margin: 10px 0 15px;

  color: #5f6675;

  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.5;

  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

@media (max-width: 900px) {

  .dimension-card-description {
    min-height: 0;
  }
}


/* Beschrijvingen ook leesbaar in het PDF-rapport */

@media print {

  .dimension-card-description {
    min-height: 0;

    margin: 2.5mm 0 3mm;

    color: #555e72;

    font-size: 6.5pt;
    line-height: 1.35;
  }
}

/* =========================================================
   MODULAIRE RESULTAATOMGEVING
   Ondersteunt testen met verschillende resultaatstructuren.
========================================================= */

.result-screen[data-result-layout="modular"] {
  min-width: 0;
}

.result-screen[data-result-layout="modular"]
[data-result-section] {
  min-width: 0;
}

.result-screen[data-result-layout="modular"]
[data-result-section][hidden],

.result-screen[data-result-layout="modular"]
.result-dimensions[hidden] {
  display: none !important;
}

.result-dimensions:empty {
  display: none;
}

.dimension-card {
  min-width: 0;
}

.dimension-card-description[hidden] {
  display: none !important;
}

.result-score-card {
  min-width: 0;
}

.result-score-card strong {
  max-width: 100%;

  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: none;
}

.result-content-card[hidden] {
  display: none !important;
}


/* =========================================================
   ALGEMENE RESULTAATSECTIES
========================================================= */

.result-screen[data-result-layout="modular"]
.result-screen {
  align-content: start;
}

.result-screen[data-result-layout="modular"]
.result-content-grid {
  align-items: stretch;
}

.result-screen[data-result-layout="modular"]
.result-content-card {
  height: 100%;
}

.result-screen[data-result-layout="modular"]
.result-method-note {
  min-width: 0;
}


/* =========================================================
   MODULAIRE AFDRUKWEERGAVE
========================================================= */

@media print {

  .result-screen[data-result-layout="modular"]
  [data-result-section][hidden],

  .result-screen[data-result-layout="modular"]
  .result-dimensions[hidden] {
    display: none !important;
  }

  .result-screen[data-result-layout="modular"]
  .result-content-grid {
    align-items: start;
  }

  .result-screen[data-result-layout="modular"]
  .result-score-card strong {
    overflow-wrap: anywhere;
  }
}


/* =========================================================
   OPSLAGBACK-UP
========================================================= */

.storage-backup-panel {
  margin: 22px 0;
  padding: 18px;

  display: grid;
  gap: 16px;

  border: 1px solid var(--line);
  border-radius: 16px;

  background: #fafafe;
}

.storage-backup-panel h3 {
  margin: 0 0 6px;

  font-size: 1rem;
}

.storage-backup-panel p {
  margin: 0;

  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

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

.storage-backup-actions .button {
  width: 100%;
}

.storage-backup-panel .storage-privacy-note {
  padding-top: 12px;

  border-top: 1px solid var(--line);

  font-size: 0.75rem;
}

@media (max-width: 560px) {
  .storage-backup-actions {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   DEELIDENTITEITEN EN KRUISPUNTDENKEN
   Testspecifieke invoer en beknopte resultaatweergave.
========================================================= */

.identity-select-field,
.identity-multi-select-field {
  width: min(100%, 760px);
  margin: 0 auto;
}

.identity-select,
.identity-multi-select-controls .identity-select {
  width: 100%;
  min-height: 52px;
  padding: 12px 46px 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 0.96rem;
  line-height: 1.35;
  cursor: pointer;
}

.identity-select:focus-visible {
  border-color: #7b5685;
  outline: 3px solid rgba(123, 86, 133, 0.16);
}

.identity-multi-select-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.identity-add-selection {
  min-width: 118px;
  min-height: 52px;
}

.identity-selected-values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.identity-selection-chip {
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid #d9cfe0;
  border-radius: 999px;
  background: #f7f3f9;
  color: #5f3e68;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.identity-selection-chip:hover,
.identity-selection-chip:focus-visible {
  border-color: #87628f;
  background: #eee7f1;
  outline: none;
}

.identity-multi-button-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.identity-multi-option.is-selected {
  border-color: #7b5685;
  background: #f3edf5;
  box-shadow: 0 0 0 2px rgba(123, 86, 133, 0.12);
}

.identity-overview-card {
  display: grid;
  gap: 16px;
}

.identity-overview-intro {
  max-width: 76ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.identity-axis-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.identity-axis-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #ffffff;
}

.identity-axis-summary {
  position: relative;
  display: grid;
  gap: 9px;
  padding: 15px 16px 13px;
  list-style: none;
  cursor: pointer;
}

.identity-axis-summary::-webkit-details-marker {
  display: none;
}

.identity-axis-summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  margin-top: 1px;
  color: #76527f;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
}

.identity-axis-card[open] > .identity-axis-summary::after {
  content: "−";
}

.identity-axis-card[open] > .identity-axis-summary {
  border-bottom: 1px solid var(--line);
  background: #fcfafc;
}

.identity-axis-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-right: 24px;
}

.identity-axis-heading h4 {
  margin: 0;
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.3;
}

.identity-axis-band {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f1edf3;
  color: #65436e;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.identity-band-very-disadvantaged,
.identity-band-disadvantaged {
  background: #f7e9ed;
  color: #8a3f55;
}

.identity-band-mixed {
  background: #f2efe8;
  color: #6c6040;
}

.identity-band-privileged,
.identity-band-very-privileged {
  background: #e9f2ec;
  color: #3f6d50;
}

.identity-scale {
  position: relative;
  height: 11px;
  margin: 1px 8px 0;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #b85b72 0%,
    #d9a3ad 25%,
    #d9d4cb 50%,
    #a8c4ad 75%,
    #59836a 100%
  );
}

.identity-scale::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(61, 48, 65, 0.12);
  border-radius: inherit;
}

.identity-scale-marker {
  position: absolute;
  top: 50%;
  width: 19px;
  height: 19px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: #4b354f;
  box-shadow: 0 1px 7px rgba(42, 30, 47, 0.32);
  transform: translate(-50%, -50%);
}

.identity-scale-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.25;
}

.identity-axis-detail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 16px 16px;
}

.identity-detail-block {
  min-width: 0;
  padding: 12px;
  border-radius: 12px;
  background: #faf8fb;
}

.identity-detail-block strong {
  display: block;
  margin-bottom: 5px;
  color: #684871;
  font-size: 0.72rem;
  letter-spacing: 0.025em;
  line-height: 1.25;
  text-transform: uppercase;
}

.identity-detail-block p {
  margin: 0;
  color: var(--ink);
  font-size: 0.78rem;
  line-height: 1.5;
}

.identity-answer-summary {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.69rem;
  line-height: 1.45;
}

.identity-source-links {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  padding-top: 1px;
}

.identity-source-links a {
  color: #65406f;
  font-size: 0.66rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 720px) {
  .identity-axis-detail {
    grid-template-columns: 1fr;
  }

  .identity-multi-button-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .identity-multi-select-controls {
    grid-template-columns: 1fr;
  }

  .identity-add-selection {
    width: 100%;
  }

  .identity-axis-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .identity-axis-band {
    white-space: normal;
  }

  .identity-axis-summary {
    padding: 14px;
  }

  .identity-axis-detail {
    padding: 12px 14px 14px;
  }
}

@media print {
  .identity-axis-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .identity-axis-summary::after {
    display: none !important;
  }

  .identity-axis-detail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3mm;
    padding: 3mm 4mm 4mm;
  }

  .identity-detail-block {
    padding: 2.5mm;
  }

  .identity-source-links a {
    color: #333333;
    text-decoration: none;
  }
}


/* =========================================================
   INTERESSE- EN BEROEPSRICHTINGENTEST
========================================================= */
.career-choice-grid { display:grid; gap:12px; }
.career-module-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.career-thumb-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.career-field-help { margin:0 0 14px; color:var(--muted-text,#586174); }
.career-group-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.career-group-button { border:1px solid rgba(80,69,139,.22); background:#fff; border-radius:16px; padding:16px; text-align:left; cursor:pointer; display:flex; flex-direction:column; gap:5px; }
.career-group-button:hover,.career-group-button.is-selected { border-color:#6f5cff; background:rgba(111,92,255,.08); box-shadow:0 8px 24px rgba(40,34,82,.08); }
.career-group-button small { color:#687087; }
.career-skill-search,.career-custom-skill input { width:100%; min-height:48px; border:1px solid rgba(80,69,139,.22); border-radius:12px; padding:0 14px; font:inherit; background:#fff; }
.career-selection-counter { display:block; margin:12px 0; color:#4a4568; }
.career-skill-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; max-height:430px; overflow:auto; padding:4px; }
.career-skill-option { display:flex; align-items:flex-start; gap:10px; border:1px solid rgba(80,69,139,.16); border-radius:12px; padding:11px 12px; cursor:pointer; background:#fff; }
.career-skill-option.is-selected { border-color:#6f5cff; background:rgba(111,92,255,.08); }
.career-skill-option input { margin-top:3px; accent-color:#6f5cff; }
.career-custom-skill { margin-top:18px; display:grid; grid-template-columns:1fr auto; gap:10px; }
.career-custom-skill-list { grid-column:1/-1; display:flex; flex-wrap:wrap; gap:8px; }
.career-custom-skill-list button { border:0; border-radius:999px; padding:8px 12px; background:rgba(111,92,255,.1); color:#3d347b; cursor:pointer; }
.career-profile-list { margin-top:16px; }
.career-skill-summary-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:16px; }
.career-skill-summary { border:1px solid rgba(80,69,139,.15); border-radius:14px; padding:14px; background:rgba(248,247,255,.65); }
.career-skill-summary p { margin:.45rem 0 0; }
.career-occupation-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-top:18px; }
.career-occupation-card { border:1px solid rgba(80,69,139,.16); border-radius:16px; padding:16px; background:#fff; break-inside:avoid; }
.career-occupation-header { display:flex; justify-content:space-between; gap:14px; align-items:flex-start; }
.career-occupation-header h4 { margin:4px 0 0; font-size:1.02rem; }
.career-sector { display:block; color:#6c6680; font-size:.78rem; font-weight:700; text-transform:uppercase; letter-spacing:.04em; }
.career-fit-label { flex:0 0 auto; border-radius:999px; padding:7px 10px; background:rgba(111,92,255,.1); color:#4a3f99; font-size:.78rem; }
.career-reasons p { margin:.75rem 0 0; }
.career-growth-copy { color:#73511e; }
.career-market-note { padding:10px 12px; border-radius:10px; background:#f3f7ef; color:#3f6642; font-size:.9rem; }
.career-empty-state { grid-column:1/-1; padding:16px; border-radius:12px; background:#f6f6fa; }
@media (max-width:760px) {
  .career-module-grid,.career-thumb-grid,.career-group-grid,.career-skill-grid,.career-skill-summary-grid,.career-occupation-grid { grid-template-columns:1fr; }
  .career-custom-skill { grid-template-columns:1fr; }
  .career-custom-skill-list { grid-column:auto; }
  .career-occupation-header { flex-direction:column; }
}
@media print {
  .career-occupation-grid,.career-skill-summary-grid { grid-template-columns:1fr 1fr; }
  .career-occupation-card,.career-skill-summary,.career-result-block { break-inside:avoid; }
}

/* =========================================================
   WERKWAARDEN- EN WERKMOTIVATIETEST
========================================================= */
.work-values-question-help {
  margin: 0 0 16px;
  color: var(--muted-text, #586174);
  line-height: 1.55;
}

.work-values-total-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 13px 16px;
  border: 1px solid rgba(217, 109, 75, 0.22);
  border-radius: 14px;
  background: rgba(217, 109, 75, 0.07);
  color: #75402f;
}

.work-values-total-panel strong {
  font-size: 0.95rem;
}

.work-values-total-panel.is-complete {
  border-color: rgba(47, 133, 95, 0.28);
  background: rgba(47, 133, 95, 0.09);
  color: #2f6a4b;
}

.work-values-total-panel.is-over {
  border-color: rgba(176, 55, 71, 0.28);
  background: rgba(176, 55, 71, 0.08);
  color: #8c2e3d;
}

.work-values-allocation-grid {
  display: grid;
  gap: 12px;
}

.work-values-allocation-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(80, 69, 139, 0.16);
  border-radius: 16px;
  background: #ffffff;
}

.work-values-allocation-heading {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.work-values-allocation-heading > span {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: rgba(217, 109, 75, 0.12);
  color: #9b4e37;
  font-weight: 800;
}

.work-values-allocation-heading strong {
  display: block;
  margin-bottom: 5px;
  color: #4a3957;
}

.work-values-allocation-heading p {
  margin: 0;
  color: var(--ink);
  line-height: 1.5;
}

.work-values-stepper {
  display: grid;
  grid-template-columns: 42px 48px 42px;
  gap: 7px;
  align-items: center;
  justify-items: center;
}

.work-values-stepper button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(217, 109, 75, 0.28);
  border-radius: 12px;
  background: #ffffff;
  color: #8a422f;
  font-size: 1.35rem;
  font-weight: 800;
  cursor: pointer;
}

.work-values-stepper button:hover,
.work-values-stepper button:focus-visible {
  border-color: #d96d4b;
  background: rgba(217, 109, 75, 0.08);
}

.work-values-stepper output {
  font-size: 1.3rem;
  font-weight: 800;
  color: #4a3957;
}

.work-values-stepper > span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.72rem;
}

.work-values-impact-scale {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.work-values-impact-option {
  min-width: 0;
  min-height: 94px;
  padding: 10px 7px;
  border: 1px solid rgba(80, 69, 139, 0.16);
  border-radius: 14px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
}

.work-values-impact-option strong,
.work-values-impact-option span {
  display: block;
}

.work-values-impact-option strong {
  margin-bottom: 7px;
  color: #5a4663;
  font-size: 1.05rem;
}

.work-values-impact-option span {
  font-size: 0.68rem;
  line-height: 1.3;
}

.work-values-impact-option:hover,
.work-values-impact-option:focus-visible,
.work-values-impact-option.is-selected {
  border-color: #d96d4b;
  background: rgba(217, 109, 75, 0.09);
  box-shadow: 0 7px 20px rgba(77, 48, 42, 0.08);
}

.work-values-impact-option.is-selected strong {
  color: #9b4e37;
}

.work-values-impact-anchors {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.72rem;
}

.work-values-impact-anchors span:nth-child(2) {
  text-align: center;
}

.work-values-impact-anchors span:last-child {
  text-align: right;
}

.work-values-dimension-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.work-values-dimension-detail {
  padding: 16px;
  border: 1px solid rgba(80, 69, 139, 0.15);
  border-radius: 16px;
  background: #ffffff;
  break-inside: avoid;
}

.work-values-dimension-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.work-values-dimension-heading h4 {
  margin: 0;
}

.work-values-dimension-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.work-values-matrix-badge {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f1eef4;
  color: #5d4966;
  font-size: 0.72rem;
  font-weight: 800;
}

.work-values-matrix-badge.is-core {
  background: #e9f2ec;
  color: #35664a;
}

.work-values-matrix-badge.is-extra {
  background: #edf1f9;
  color: #3f5881;
}

.work-values-matrix-badge.is-minimum {
  background: #fff3df;
  color: #8a5b17;
}

.work-values-metric-grid {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.work-values-metric-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
  font-size: 0.78rem;
}

.work-values-metric-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #ece9ef;
}

.work-values-metric-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #7a5ea6;
}

.work-values-metric.is-priority .work-values-metric-bar span {
  background: #d96d4b;
}

.work-values-metric.is-motivator .work-values-metric-bar span {
  background: #2f855f;
}

.work-values-metric.is-demotivator .work-values-metric-bar span {
  background: #b05265;
}

.work-values-matrix-copy {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.5;
}

.work-values-report-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.work-values-highlight {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  padding: 15px;
  border: 1px solid rgba(217, 109, 75, 0.18);
  border-radius: 15px;
  background: rgba(255, 250, 247, 0.75);
}

.work-values-highlight-score {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: rgba(217, 109, 75, 0.13);
  color: #944a35;
  font-size: 1rem;
  font-weight: 800;
}

.work-values-highlight h4,
.work-values-simple-row strong {
  color: #4b3854;
}

.work-values-highlight h4 {
  margin: 0 0 7px;
}

.work-values-highlight p,
.work-values-simple-row p,
.work-values-question-row p {
  margin: 5px 0 0;
  line-height: 1.5;
}

.work-values-risk-copy {
  color: #7b4c31;
}

.work-values-simple-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 14px;
  padding: 14px;
  border: 1px solid rgba(80, 69, 139, 0.13);
  border-radius: 14px;
  background: #ffffff;
}

.work-values-simple-row p {
  grid-column: 1 / -1;
}

.work-values-row-score {
  color: #76554b;
  font-size: 0.78rem;
  font-weight: 800;
}

.work-values-question-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 13px;
  background: #f7f5f8;
}

.work-values-question-marker {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #6f5cff;
  color: #ffffff;
  font-weight: 800;
}

.work-values-empty {
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  background: #f6f5f8;
  color: var(--muted);
}

@media (max-width: 820px) {
  .work-values-impact-scale {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .work-values-dimension-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .work-values-allocation-card {
    grid-template-columns: 1fr;
  }

  .work-values-stepper {
    justify-self: stretch;
    grid-template-columns: 48px 1fr 48px;
  }

  .work-values-impact-scale {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-values-impact-option {
    min-height: 78px;
  }

  .work-values-dimension-heading,
  .work-values-simple-row {
    grid-template-columns: 1fr;
  }

  .work-values-dimension-heading {
    flex-direction: column;
  }

  .work-values-matrix-badge {
    white-space: normal;
  }

  .work-values-highlight {
    grid-template-columns: 1fr;
  }
}

@media print {
  .work-values-dimension-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-values-dimension-detail,
  .work-values-highlight,
  .work-values-simple-row,
  .work-values-question-row,
  .work-values-report-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
