:root {
  color-scheme: light;
  --cream: #fff7df;
  --paper: #fffdf4;
  --ink: #171525;
  --muted: #5c5870;
  --outline: #171525;
  --pink: #ff5fa2;
  --coral: #ff7a59;
  --yellow: #ffd83d;
  --blue: #30b7ff;
  --mint: #42e6a4;
  --purple: #7d5cff;
  --lime: #c8ff4d;
  --shadow: 8px 8px 0 #171525;
  --soft-shadow: 0 18px 40px rgba(23, 21, 37, 0.16);
  --site-max-width: 2040px;
  --result-max-width: 2040px;
  --site-gutter: clamp(28px, 2vw, 44px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  cursor: auto;
  background:
    radial-gradient(circle at 10% 12%, #bdefff 0 12%, transparent 13%),
    radial-gradient(circle at 90% 16%, #ffd5e9 0 16%, transparent 17%),
    radial-gradient(circle at 76% 88%, #d9ff73 0 15%, transparent 16%),
    var(--cream);
  background-size: auto, auto, auto, auto;
  color: var(--ink);
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", Inter, system-ui, sans-serif;
  letter-spacing: 0;
}

.global-grid-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.global-grid-field-canvas,
.global-grid-field-glow {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.global-grid-field-canvas {
  opacity: 1;
}

.global-grid-field-glow circle {
  opacity: 0;
  will-change: opacity;
}

@media (prefers-reduced-motion: reduce) {
  .global-grid-field-canvas {
    opacity: 0.78;
  }

  .global-grid-field-glow {
    display: none;
  }
}

/* Keep every landing-page section separated by one consistent rhythm. */
.landing-page-main {
  --landing-section-gap: 74px;
  display: grid;
  gap: var(--landing-section-gap);
}

.landing-page-main > .section-band:not(.landing-cover) {
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.landing-page-main + .site-footer {
  /* The footer wave rises 28px above the footer box; 112px renders as an 84px gap. */
  margin-top: 112px;
}

body.entry-access-open {
  overflow: hidden;
}

button,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

p {
  line-height: 1.58;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.cursor-follower {
  display: none;
}

.cursor-follower span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pink);
}

.cursor-follower.cursor-active {
  width: 48px;
  height: 48px;
  background: var(--mint);
}

.soft-shape,
.shape-pop {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border: 4px solid var(--outline);
  opacity: 0.72;
}

.shape-one {
  top: 190px;
  left: -150px;
  width: 190px;
  height: 190px;
  border-radius: 36% 64% 45% 55%;
  background: var(--blue);
  transform: rotate(-18deg);
}

.shape-two {
  right: -118px;
  bottom: 130px;
  width: 230px;
  height: 230px;
  border-radius: 18px;
  background: var(--pink);
  transform: rotate(16deg);
}

.shape-three {
  top: 72%;
  left: 10%;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--lime);
}

main {
  position: relative;
  z-index: 2;
}

.site-nav {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(var(--site-max-width), calc(100% - (var(--site-gutter) * 2)));
  margin: 0 auto;
  padding: 14px 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand-logo {
  display: block;
  width: clamp(118px, 10vw, 172px);
  height: auto;
  object-fit: contain;
}

.site-nav nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.site-nav nav a {
  border: 3px solid var(--outline);
  border-radius: 999px;
  padding: 7px 11px;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  box-shadow: 3px 3px 0 var(--outline);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.site-nav nav a:hover,
.site-nav nav a[aria-current="page"] {
  background: var(--yellow);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--outline);
}

.profile-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--outline);
  cursor: pointer;
  overflow: hidden;
}

.profile-icon-button .profile-icon-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.profile-icon-button svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-icon-button:hover,
.profile-icon-button:focus-visible,
.profile-icon-button[aria-current="page"] {
  color: var(--purple);
  outline: none;
}

.result-celebration {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
  background: transparent;
  opacity: 1;
  pointer-events: none;
  transform: scale(1);
}

.result-celebration.is-visible {
  opacity: 1;
  transform: scale(1);
}

.result-celebration-svg {
  width: min(3840px, 96vw);
  height: min(2160px, 96vh);
  object-fit: contain;
  filter: drop-shadow(0 22px 42px rgba(23, 21, 37, 0.22));
}

.persona-reveal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: clamp(20px, 4vw, 48px);
  background: rgba(255, 247, 223, 0.58);
  backdrop-filter: blur(10px) saturate(0.9);
  opacity: 1;
  visibility: visible;
  transition: opacity 720ms ease, visibility 720ms ease, backdrop-filter 720ms ease;
}

.persona-reveal.is-leaving {
  opacity: 0;
  visibility: hidden;
  backdrop-filter: blur(0) saturate(1);
}

.persona-reveal-panel {
  display: grid;
  justify-items: center;
  width: min(560px, 100%);
  padding: clamp(22px, 4vw, 38px);
  border: 3px solid var(--outline);
  border-radius: 34px;
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 216, 61, 0.65) 0 11%, transparent 12%),
    radial-gradient(circle at 88% 84%, rgba(48, 183, 255, 0.2) 0 18%, transparent 19%),
    rgba(255, 253, 244, 0.94);
  box-shadow: 12px 12px 0 var(--outline), 0 28px 70px rgba(23, 21, 37, 0.22);
  text-align: center;
}

.persona-reveal-kicker,
.persona-reveal-status {
  margin: 0;
  font-weight: 1000;
}

.persona-reveal-kicker {
  color: var(--purple);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.persona-avatar-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(188px, 28vw, 244px);
  aspect-ratio: 1;
  margin: 12px 0 8px;
}

.persona-avatar-window {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 72%;
  aspect-ratio: 1;
  border: 3px solid var(--outline);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 7px 7px 0 var(--outline);
  overflow: hidden;
}

.persona-avatar-window::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px dashed rgba(23, 21, 37, 0.16);
  border-radius: 50%;
  pointer-events: none;
}

.persona-avatar-window img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  will-change: transform, opacity, filter;
}

.persona-reveal[data-final-trait] .persona-avatar-window {
  animation: persona-glow 1.35s ease-in-out infinite alternate;
}

@keyframes persona-glow {
  from { box-shadow: 7px 7px 0 var(--outline), 0 0 0 0 rgba(125, 92, 255, 0.18); }
  to { box-shadow: 7px 7px 0 var(--outline), 0 0 34px 15px rgba(125, 92, 255, 0.32); }
}

.persona-orbit {
  position: absolute;
  border: 3px dashed var(--outline);
  border-radius: 50%;
  opacity: 0.26;
  animation: persona-orbit 8s linear infinite;
}

.persona-orbit-one { inset: 5%; }
.persona-orbit-two { inset: 15%; animation-direction: reverse; animation-duration: 5.5s; }

@keyframes persona-orbit {
  to { transform: rotate(360deg); }
}

.persona-ocean-track {
  display: flex;
  gap: 7px;
  margin-bottom: 12px;
}

.persona-ocean-track span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid var(--outline);
  border-radius: 50%;
  background: var(--paper);
  font-size: 12px;
  font-weight: 1000;
  box-shadow: 2px 2px 0 var(--outline);
}

.persona-ocean-track span:nth-child(1) { background: #eee8ff; }
.persona-ocean-track span:nth-child(2) { background: #dff9e9; }
.persona-ocean-track span:nth-child(3) { background: #ffe5da; }
.persona-ocean-track span:nth-child(4) { background: #ffe3f1; }
.persona-ocean-track span:nth-child(5) { background: #dff4ff; }

.persona-reveal-status {
  color: var(--muted);
  font-size: 14px;
}

.persona-reveal-panel h1 {
  margin: 3px 0 14px;
  font-size: clamp(25px, 4vw, 40px);
  line-height: 1;
}

.persona-reveal-result {
  display: grid;
  gap: 3px;
  width: min(390px, 100%);
  padding: 14px 18px;
  border: 3px solid var(--outline);
  border-radius: 18px;
  background: var(--lime);
  box-shadow: 5px 5px 0 var(--outline);
  opacity: 0;
  visibility: hidden;
}

.persona-reveal-result.is-visible {
  opacity: 1;
  visibility: visible;
}

.persona-reveal-result span,
.persona-reveal-result small {
  font-size: 12px;
  font-weight: 1000;
}

.persona-reveal-result strong {
  font-size: clamp(17px, 2.4vw, 23px);
  line-height: 1.1;
}

.persona-reveal-pending,
.persona-reveal-active {
  overflow: hidden;
}

.persona-reveal-pending .site-nav,
.persona-reveal-pending main,
.persona-reveal-active .site-nav,
.persona-reveal-active main {
  opacity: 0.24;
  filter: blur(3px);
  transform: scale(0.99);
}

.result-page .site-nav,
.result-page main {
  transition: opacity 760ms ease, filter 760ms ease, transform 760ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .persona-orbit,
  .persona-reveal[data-final-trait] .persona-avatar-window {
    animation: none;
  }

  .persona-reveal,
  .result-page .site-nav,
  .result-page main {
    transition-duration: 120ms;
  }
}

.entry-access-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(23, 21, 37, 0.86);
}

.entry-access-card {
  position: relative;
  display: grid;
  justify-items: center;
  width: min(520px, 100%);
  min-height: 310px;
  padding: 58px 48px 48px;
  border: 3px solid var(--outline);
  border-radius: 34px;
  background: #fff;
  color: #111;
  text-align: center;
  box-shadow:
    -10px 12px 0 rgba(255, 255, 255, 0.08),
    0 26px 56px rgba(0, 0, 0, 0.32);
  transform: rotate(-4deg);
}

.entry-access-card::after {
  content: "";
  position: absolute;
  inset: 14px -12px -12px 14px;
  z-index: -1;
  border: 2px solid rgba(255, 255, 255, 0.76);
  border-radius: 30px;
}

.entry-access-close {
  position: absolute;
  top: 21px;
  right: 28px;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: transparent;
  color: #111;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.entry-access-close:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

.entry-access-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}

.entry-access-icons span {
  border: 2px solid #111;
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--paper);
  font-size: 11px;
  font-weight: 1000;
  box-shadow: 2px 2px 0 #111;
}

.entry-access-icons span:nth-child(1) {
  background: var(--mint);
}

.entry-access-icons span:nth-child(2) {
  background: var(--blue);
}

.entry-access-icons span:nth-child(3) {
  background: var(--coral);
}

.entry-access-card h2 {
  max-width: 390px;
  margin-bottom: 14px;
  font-size: 24px;
  line-height: 1.14;
  text-wrap: balance;
}

.entry-access-card p {
  max-width: 390px;
  margin-bottom: 34px;
  color: #3f3a4b;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.42;
}

.entry-access-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 26px;
}

.entry-access-primary,
.entry-access-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 14px;
  padding: 12px 24px;
  font-size: 17px;
  font-weight: 900;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.entry-access-primary {
  min-width: 190px;
  background: #050505;
  color: #fff;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
}

.entry-access-secondary {
  min-width: 105px;
  color: #2f2a3a;
}

.entry-access-primary:hover,
.entry-access-secondary:hover,
.entry-access-primary:focus-visible,
.entry-access-secondary:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.entry-access-primary:focus-visible,
.entry-access-secondary:focus-visible {
  box-shadow: 0 0 0 4px rgba(255, 216, 61, 0.75);
}

.section-band {
  width: min(var(--site-max-width), calc(100% - (var(--site-gutter) * 2)));
  margin: 0 auto;
  padding: 56px 0;
}

.compact-band {
  padding-top: 18px;
}

.glass-panel {
  border: 4px solid var(--outline);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.results-dashboard,
.score-panel {
  scroll-margin-top: 24px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  border: 3px solid var(--outline);
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--lime);
  color: var(--ink);
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 var(--outline);
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1fr);
  gap: 34px;
  align-items: center;
  min-height: 520px;
  padding-top: 28px;
}

.hero-copy h1,
.section-heading h1 {
  max-width: 680px;
  margin-bottom: 16px;
  font-size: clamp(30px, 3.8vw, 46px);
  line-height: 0.98;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero-subtitle,
.section-heading p,
.result-hero p,
.intro-card p,
.step-card p,
.career-explorer-card p,
.trait-insight-card p,
.ocean-simple-card p {
  color: var(--muted);
}

.hero-subtitle {
  max-width: 590px;
  margin-bottom: 22px;
  font-size: 17px;
  font-weight: 800;
}

.hero-actions,
.result-actions,
.quiz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.primary-action,
.secondary-action,
.compare-button,
.mini-result {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  border: 3px solid var(--outline);
  border-radius: 999px;
  padding: 9px 15px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 1000;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--outline);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.primary-action {
  background: var(--pink);
}

.secondary-action,
.compare-button {
  background: var(--paper);
}

.test-shortcut-action {
  background: var(--lime);
}

.primary-action:hover,
.secondary-action:hover,
.compare-button:hover,
.mini-result:hover {
  transform: translate(3px, 3px) rotate(-1deg);
  box-shadow: 2px 2px 0 var(--outline);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.hero-visual {
  position: relative;
  min-height: 430px;
}

.mascot-stage {
  position: absolute;
  top: 8px;
  right: 16px;
  display: grid;
  place-items: center;
  width: min(400px, 100%);
  min-height: 390px;
  border: 4px solid var(--outline);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 216, 61, 0.85), rgba(48, 183, 255, 0.76)),
    var(--paper);
  box-shadow: 9px 9px 0 var(--outline);
  overflow: hidden;
}

.avatar-squad {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(6, 44px);
  grid-template-rows: repeat(2, 78px);
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: min(320px, 86%);
  margin-bottom: 60px;
}

.avatar-squad img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(5px 6px 0 rgba(23, 21, 37, 0.18));
}

.avatar-squad img:nth-child(1) {
  grid-column: 1 / span 2;
  grid-row: 1;
  transform: rotate(-5deg);
}

.avatar-squad img:nth-child(2) {
  grid-column: 3 / span 2;
  grid-row: 1;
}

.avatar-squad img:nth-child(3) {
  grid-column: 5 / span 2;
  grid-row: 1;
  transform: rotate(5deg);
}

.avatar-squad img:nth-child(4) {
  grid-column: 2 / span 2;
  grid-row: 2;
  transform: rotate(4deg);
}

.avatar-squad img:nth-child(5) {
  grid-column: 4 / span 2;
  grid-row: 2;
  transform: rotate(-4deg);
}

.mascot-speech {
  position: absolute;
  right: 18px;
  bottom: 22px;
  z-index: 3;
  display: grid;
  gap: 4px;
  max-width: 220px;
  border: 3px solid var(--outline);
  border-radius: 8px;
  padding: 11px;
  background: var(--paper);
  box-shadow: 5px 5px 0 var(--outline);
  transform: rotate(-2deg);
}

.mascot-speech strong {
  font-size: 16px;
}

.mascot-speech span {
  font-size: 13px;
}

.mascot-speech span {
  color: var(--muted);
  font-weight: 850;
}

.shape-pop {
  position: absolute;
  z-index: 1;
}

.pop-one {
  top: 36px;
  left: 32px;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--mint);
}

.pop-two {
  right: 24px;
  top: 64px;
  width: 78px;
  height: 78px;
  background: var(--coral);
  transform: rotate(18deg);
}

.floating-badge {
  position: absolute;
  z-index: 5;
  border: 3px solid var(--outline);
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--outline);
  color: var(--ink);
  font-size: 13px;
  font-weight: 1000;
}

.badge-one { top: 28px; right: min(358px, calc(100% - 150px)); background: var(--yellow); }
.badge-two { right: min(336px, calc(100% - 170px)); bottom: 62px; background: var(--mint); }
.badge-three { right: 0; top: 92px; background: var(--pink); }
.badge-four { right: 54px; bottom: 12px; background: var(--blue); }

.intro-grid,
.trait-insight-grid,
.career-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.home-demo-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  min-height: 500px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 26px;
  padding: 0;
  background: rgba(249, 248, 242, 0.68);
  box-shadow: none;
}

.home-demo-content {
  display: grid;
  align-content: center;
  justify-items: start;
  padding: clamp(32px, 4vw, 52px);
}

.home-demo-content h2 {
  max-width: 500px;
  margin: 0;
  font-size: clamp(34px, 3.5vw, 48px);
  line-height: 1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.home-demo-description {
  max-width: 570px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.55;
}

.home-demo-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}

.home-demo-actions > span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.home-demo-actions .primary-action,
.home-demo-actions .secondary-action {
  min-height: 44px;
  padding: 10px 18px;
  background: #fff0ad;
  color: var(--ink);
  box-shadow: 4px 5px 0 var(--outline);
  transition: rotate 150ms ease, transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.home-demo-actions .primary-action {
  rotate: -2deg;
}

.home-demo-actions .secondary-action {
  rotate: 2deg;
}

.home-demo-actions .primary-action:hover,
.home-demo-actions .primary-action:focus-visible,
.home-demo-actions .secondary-action:hover,
.home-demo-actions .secondary-action:focus-visible {
  background: #ffdf7e;
  color: var(--ink);
}

.home-demo-actions .primary-action:hover,
.home-demo-actions .primary-action:focus-visible {
  rotate: -3deg;
  transform: translate(2px, 2px);
}

.home-demo-actions .secondary-action:hover,
.home-demo-actions .secondary-action:focus-visible {
  rotate: 3deg;
  transform: translate(2px, 2px);
}

.home-demo-actions .primary-action:focus-visible,
.home-demo-actions .secondary-action:focus-visible {
  outline: 3px solid #e9b949;
  outline-offset: 3px;
}

.home-demo-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  margin-top: 32px;
}

.home-demo-features article {
  display: grid;
  align-content: start;
  min-width: 0;
  min-height: 96px;
  padding: 0 18px;
  border-left: 1px solid rgba(23, 21, 37, 0.15);
}

.home-demo-features article:first-child {
  padding-left: 0;
  border-left: 0;
}

.home-demo-feature-icon {
  display: grid;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  place-items: center;
  border: 2px solid var(--outline);
  border-radius: 9px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 1000;
}

.home-demo-features strong {
  font-size: 15px;
  line-height: 1.1;
}

.home-demo-features small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
  line-height: 1.3;
}

.home-demo-frame {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 500px;
  overflow: hidden;
  background: transparent;
}

.home-demo-frame:hover,
.home-demo-frame:focus-visible {
  transform: none;
}

.home-demo-frame:focus-visible {
  outline: 4px solid #ffdf7e;
  outline-offset: -4px;
}

.home-demo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: multiply;
}

.home-connection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.connection-card {
  min-height: 220px;
  padding: 18px;
}

.connection-card span {
  display: inline-flex;
  width: fit-content;
  border: 3px solid var(--outline);
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--mint);
  box-shadow: 3px 3px 0 var(--outline);
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
}

.connection-card:nth-child(2) span {
  background: var(--pink);
}

.connection-card:nth-child(3) span {
  background: var(--blue);
}

.connection-card h3 {
  margin: 14px 0 8px;
  font-size: 23px;
  line-height: 1.04;
}

.connection-card p {
  color: var(--muted);
  font-size: 14px;
  font-weight: 830;
}

.career-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  align-items: stretch;
}

.trait-insight-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 18px;
  align-items: stretch;
}

.intro-card,
.trait-insight-card,
.career-explorer-card,
.step-card,
.quiz-shell,
.score-panel,
.recommendations-panel,
.explain-panel,
.result-hero {
  padding: 22px;
}

.intro-card,
.trait-insight-card,
.step-card,
.result-card,
.score-card,
.interpretation-card,
.explain-card {
  transform: rotate(var(--tilt, 0deg));
}

.intro-card:nth-child(odd),
.trait-insight-card:nth-child(odd) {
  --tilt: -0.45deg;
}

.intro-card:nth-child(even),
.trait-insight-card:nth-child(even) {
  --tilt: 0.45deg;
}

.intro-card h2 {
  font-size: 24px;
  line-height: 1.08;
}

.step-dot,
.step-card span {
  display: inline-flex;
  border: 3px solid var(--outline);
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 13px;
  font-weight: 1000;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 30px;
}

.section-heading h1 {
  font-size: clamp(28px, 3.4vw, 40px);
}

.section-heading h2,
.result-hero h2 {
  margin-bottom: 12px;
  font-size: 36px;
  line-height: 1;
  text-transform: uppercase;
}

.trait-page-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.trait-page-badges span {
  border: 3px solid var(--outline);
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--paper);
  font-size: 13px;
  font-weight: 1000;
  box-shadow: 4px 4px 0 var(--outline);
}

.trait-page-badges span:nth-child(1) { background: #eee8ff; }
.trait-page-badges span:nth-child(2) { background: #dff9e9; }
.trait-page-badges span:nth-child(3) { background: #ffe5da; }
.trait-page-badges span:nth-child(4) { background: #ffe3f1; }
.trait-page-badges span:nth-child(5) { background: #dff4ff; }

.trait-insights .section-heading {
  display: grid;
  justify-items: center;
  max-width: 980px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.trait-insights.section-band {
  padding-top: 22px;
}

.ocean-physics-stage {
  position: relative;
  width: min(720px, 100%);
  height: clamp(118px, 11vw, 138px);
  margin: 8px auto 0;
  border-radius: 24px;
  touch-action: none;
  user-select: none;
}

.ocean-physics-stage::before {
  content: "";
  position: absolute;
  inset: 50% 3% auto;
  height: 5px;
  border-radius: 999px;
  background: rgba(23, 21, 37, 0.08);
  transform: translateY(-50%);
}

.ocean-physics-letter {
  --motion-x: 0px;
  --motion-y: 0px;
  --motion-rotate: 0deg;
  position: absolute;
  left: calc(50% + (var(--slot) * clamp(58px, 8vw, 84px)));
  top: 50%;
  display: inline-grid;
  place-items: center;
  width: clamp(62px, 7.5vw, 84px);
  height: clamp(62px, 7.5vw, 84px);
  border: 3px solid var(--outline);
  border-radius: 50%;
  background: var(--trait-soft, var(--paper));
  color: var(--ink);
  box-shadow: 6px 6px 0 var(--outline);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 1000;
  line-height: 1;
  cursor: grab;
  transform:
    translate(-50%, -50%)
    translate(var(--motion-x), var(--motion-y))
    rotate(var(--motion-rotate));
  will-change: transform;
}

.ocean-physics-letter::after {
  content: "";
  position: absolute;
  inset: 13%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.82) 0 10%, transparent 11%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.38), transparent 58%);
  pointer-events: none;
}

.ocean-physics-letter:hover,
.ocean-physics-letter:focus-visible,
.ocean-physics-letter.is-pulled {
  outline: none;
  box-shadow: 8px 8px 0 var(--outline);
}

.ocean-physics-letter.is-pulled {
  cursor: grabbing;
  z-index: 3;
}

.ocean-physics-letter[data-trait="openness"] { --trait-soft: #eee8ff; }
.ocean-physics-letter[data-trait="conscientiousness"] { --trait-soft: #dff9e9; }
.ocean-physics-letter[data-trait="extraversion"] { --trait-soft: #ffe5da; }
.ocean-physics-letter[data-trait="agreeableness"] { --trait-soft: #ffe3f1; }
.ocean-physics-letter[data-trait="neuroticism"] { --trait-soft: #dff4ff; }

.ocean-simple-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 14px;
  align-items: stretch;
}

.ocean-simple-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 230px;
  overflow: hidden;
  padding: 18px;
  background:
    radial-gradient(circle at 94% 10%, rgba(255, 216, 61, 0.34) 0 16%, transparent 17%),
    linear-gradient(145deg, #fffdf4 0%, var(--trait-soft, #e8f8ff) 100%);
}

.ocean-simple-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ocean-simple-letter {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 3px solid var(--outline);
  border-radius: 50%;
  background: var(--trait-pop, var(--yellow));
  font-size: 23px;
  font-weight: 1000;
  box-shadow: 4px 4px 0 var(--outline);
}

.ocean-simple-avatar {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(3px 4px 0 rgba(23, 21, 37, 0.2));
}

.ocean-simple-card h2 {
  margin: 2px 0 0;
  font-size: clamp(15px, 1.18vw, 18px);
  line-height: 1.08;
  text-transform: uppercase;
}

.ocean-simple-card > p:not(.trait-kicker) {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.quiz-shell {
  position: relative;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.test-section {
  padding-top: 32px;
}

.test-section .section-heading {
  margin-bottom: 20px;
}

.test-section .section-heading h1 {
  max-width: 760px;
  font-size: clamp(25px, 2.8vw, 34px);
  line-height: 1.08;
}

.quiz-mascot {
  display: grid;
  grid-template-columns: auto minmax(280px, max-content) minmax(360px, 1fr);
  align-items: center;
  gap: clamp(13px, 1.6vw, 28px);
  width: 100%;
  max-width: 100%;
  margin-bottom: 16px;
  border: 3px solid var(--outline);
  border-radius: 18px;
  padding: 12px 15px;
  background:
    radial-gradient(circle at 96% 20%, rgba(255, 216, 61, 0.55) 0 13%, transparent 14%),
    linear-gradient(135deg, #fffdf4 0%, #e8f8ff 48%, #ffe3f1 100%);
  box-shadow: 6px 6px 0 var(--outline);
}

.mini-avatar-stack {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  margin-right: 2px;
}

.mini-avatar-stack img {
  width: 40px;
  height: 40px;
  margin-right: -12px;
  border: 3px solid var(--outline);
  border-radius: 50%;
  object-fit: cover;
  background: var(--paper);
  box-shadow: 3px 3px 0 rgba(23, 21, 37, 0.14);
}

.mini-avatar-stack img:nth-child(2) {
  transform: rotate(7deg);
}

.mini-avatar-stack img:nth-child(3) {
  transform: rotate(-7deg);
}

.quiz-mascot-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.quiz-mascot-copy strong {
  font-size: 16px;
  line-height: 1.1;
  font-weight: 1000;
}

.quiz-mascot-copy span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.quiz-status,
.dashboard-top,
.result-header,
.interpretation-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.quiz-status {
  margin-bottom: 12px;
  font-weight: 1000;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.privacy-pill,
.level-chip,
.chip {
  display: inline-flex;
  align-items: center;
  border: 3px solid var(--outline);
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--mint);
  color: var(--ink);
  font-size: 12px;
  font-weight: 1000;
  box-shadow: 3px 3px 0 var(--outline);
}

.quiz-progress-scene {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 66px;
  margin: 0;
  padding: 17px 34px 11px 18px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.quiz-progress-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 23px;
  align-items: center;
}

.progress-percent {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 46px;
  height: 38px;
  border: 1.5px solid #cbc6ed;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #6556cb;
  font-size: 12px;
  font-weight: 1000;
  line-height: 1;
  box-shadow: 0 4px 11px rgba(103, 82, 177, 0.11);
}

.progress-track {
  position: relative;
  height: 8px;
  margin-left: -1px;
  border: 1.5px solid rgba(216, 210, 241, 0.92);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.45),
    inset 0 1px 2px rgba(106, 87, 176, 0.05);
}

.progress-track > #quiz-progress {
  display: block;
  width: 0%;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: inherit;
  background: linear-gradient(90deg, #a796f4 0%, #d2a9f1 55%, #f29ac4 100%);
  box-shadow: 0 0 8px rgba(173, 143, 233, 0.42);
  transition: width 320ms ease;
}

.progress-finish-marker {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: -1px;
  width: 18px;
  height: 18px;
  border: 1.5px solid #ddd6f3;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 3px 8px rgba(100, 78, 167, 0.1);
  transform: translate(50%, -50%);
}

.progress-finish-marker::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #e5dff6;
  transform: translate(-50%, -50%);
}

.progress-finish-flag {
  position: absolute;
  z-index: 4;
  right: -14px;
  bottom: 7px;
  display: grid;
  width: 28px;
  height: 31px;
  place-items: center;
  color: #d45b91;
  filter: drop-shadow(0 2px 2px rgba(158, 79, 122, 0.12));
}

.iconsax-progress-flag {
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.iconsax-progress-flag .flag-fill {
  fill: #f278aa;
  fill-opacity: 0.84;
  stroke: #d45b91;
}

.progress-decoration {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.progress-squiggle {
  top: 8px;
  left: 60%;
  width: 27px;
  color: #d8c3ff;
}

.progress-squiggle svg {
  display: block;
  width: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.progress-sparkle {
  width: 11px;
  height: 11px;
}

.progress-sparkle::before,
.progress-sparkle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.progress-sparkle::before {
  width: 2px;
  height: 100%;
}

.progress-sparkle::after {
  width: 100%;
  height: 2px;
}

.progress-sparkle-main {
  top: 9px;
  right: 12%;
  color: #ffd49d;
  transform: rotate(45deg);
}

.progress-sparkle-small {
  right: 8.5%;
  bottom: 7px;
  width: 8px;
  height: 8px;
  color: #d5c5fb;
  transform: rotate(45deg);
}

.progress-plus {
  left: 65%;
  bottom: 10px;
  width: 6px;
  height: 6px;
  color: #e0c5f7;
}

.progress-plus::before,
.progress-plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.progress-plus::before {
  width: 1.5px;
  height: 100%;
}

.progress-plus::after {
  width: 100%;
  height: 1.5px;
}

.question-card {
  margin: 14px 0;
  padding: 16px 18px 18px;
  border: 3px solid var(--outline);
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 -5px 0 rgba(255, 216, 61, 0.18);
}

.question-card.needs-answer {
  animation: attention 360ms ease;
  border-color: var(--coral);
}

@keyframes attention {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(-8px) rotate(-1deg); }
  65% { transform: translateX(8px) rotate(1deg); }
}

.question-card h2 {
  margin-bottom: 14px;
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.08;
}

.likert-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.section-question-list {
  display: grid;
  gap: 6px;
}

.section-question {
  border: 0;
  border-radius: 0;
  padding: 9px 8px 13px;
  background: transparent;
  box-shadow: 0 1px 0 rgba(23, 21, 37, 0.12);
}

.section-question:last-child {
  box-shadow: none;
}

.section-question.answered {
  border-radius: 12px;
  background: #f8ffe4;
}

.section-question.missing {
  border-radius: 12px;
  background: #ffe0d5;
  outline: 5px solid var(--coral);
}

.section-question-heading {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 6px;
}

.section-question-heading span {
  flex: 0 0 auto;
  border: 1px solid var(--outline);
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--yellow);
  font-size: 14px;
  font-weight: 1000;
  box-shadow: 1px 1px 0 var(--outline);
}

.section-question-heading strong {
  font-size: 15px;
  line-height: 1.25;
}

.section-likert-row {
  display: grid;
  width: 100%;
  grid-template-columns: 88px repeat(5, minmax(0, 1fr)) 88px;
  align-items: center;
  justify-items: center;
  justify-content: center;
  gap: 0;
  overflow-x: visible;
  padding: 2px 4px 7px;
  scrollbar-color: var(--outline) transparent;
}

.scale-end {
  align-self: end;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 1000;
  line-height: 1;
  white-space: nowrap;
}

.scale-agree {
  color: #24a56f;
}

.scale-disagree {
  color: #a04f66;
}

.likert-option {
  --scale-color: #9ba0ad;
  --scale-soft: #f0f1f4;
  position: relative;
  z-index: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 72px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: var(--scale-color);
  cursor: pointer;
  box-shadow: none;
  transition: transform 150ms ease, filter 150ms ease;
  touch-action: manipulation;
}

.likert-option::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -1px;
  bottom: 13px;
  left: -1px;
  height: 10px;
  background: var(--scale-soft);
}

.likert-option[data-value="5"]::before {
  border-radius: 999px 0 0 999px;
}

.likert-option[data-value="1"]::before {
  border-radius: 0 999px 999px 0;
}

.likert-circle {
  position: absolute;
  bottom: 8px;
  left: 50%;
  z-index: 1;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 3px solid #fffdf8;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 2px 5px rgba(23, 21, 37, 0.16);
  transform: translateX(-50%);
  transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.likert-label {
  position: absolute;
  top: 0;
  left: 50%;
  width: max-content;
  max-width: 102px;
  min-height: 27px;
  border-radius: 10px 10px 10px 3px;
  padding: 6px 8px;
  background: var(--scale-soft);
  color: #493b42;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
  opacity: 0;
  text-align: center;
  white-space: normal;
  pointer-events: none;
  transform: translate(-50%, 3px);
  transition: opacity 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.likert-label::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  border-width: 6px 5px 0;
  border-style: solid;
  border-color: var(--scale-soft) transparent transparent;
  transform: translateX(-50%);
}

.likert-option[data-value="5"] {
  --scale-color: #43b98b;
  --scale-soft: #dff8ef;
}

.likert-option[data-value="4"] {
  --scale-color: #86cfae;
  --scale-soft: #e9f8ef;
}

.likert-option[data-value="3"] {
  --scale-color: #ded568;
  --scale-soft: #fff9c9;
}

.likert-option[data-value="2"] {
  --scale-color: #e8a7ae;
  --scale-soft: #fcebed;
}

.likert-option[data-value="1"] {
  --scale-color: #d77f91;
  --scale-soft: #f9e2e7;
}

.likert-option:hover,
.likert-option.selected {
  transform: translateY(-1px);
  filter: saturate(1.08);
}

.likert-option.selected {
  outline: 0;
}

.likert-option.selected .likert-circle {
  box-shadow: 0 0 0 4px #fffdf8, 0 0 0 7px currentColor, 0 4px 8px rgba(23, 21, 37, 0.18);
  transform: translateX(-50%) scale(1.08);
}

.likert-option.selected .likert-label {
  opacity: 1;
  box-shadow: 0 0 0 2px var(--scale-color), 0 4px 9px rgba(23, 21, 37, 0.1);
  transform: translate(-50%, -2px);
}

.likert-option:focus-visible {
  outline: 0;
}

.likert-option:focus-visible .likert-circle {
  box-shadow: 0 0 0 4px #fffdf8, 0 0 0 7px var(--blue);
}

.results-dashboard {
  width: min(var(--result-max-width), calc(100% - (var(--site-gutter) * 2)));
  margin: 0 auto;
  padding: 56px 0;
  display: grid;
  grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
  gap: clamp(18px, 2vw, 28px);
  align-items: start;
}

.result-page .glass-panel {
  background: rgba(255, 253, 244, 0.76);
  backdrop-filter: blur(14px);
}

.result-page #missing-result-message {
  grid-column: 1 / -1;
}

.result-hero,
.dashboard-grid {
  display: grid;
  gap: 18px;
}

.result-hero {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: start;
  gap: 22px 28px;
  margin-bottom: 0;
}

.result-hero.glass-panel {
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  padding: 4px 0 10px;
}

.result-hero .eyebrow {
  margin-bottom: 10px;
}

.result-hero h1 {
  margin-bottom: 10px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.05;
}

.result-hero p {
  max-width: 660px;
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.45;
}

.result-history-back {
  width: fit-content;
  margin-bottom: 18px;
  gap: 7px;
}

.result-history-back span {
  font-size: 18px;
  line-height: 1;
}

.result-actions {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  align-items: center;
  gap: 12px;
  justify-content: end;
  max-width: none;
}

.result-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--outline);
  cursor: pointer;
}

.result-icon-button svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.result-icon-button:hover,
.result-icon-button:focus-visible {
  color: var(--purple);
  outline: none;
}

.result-hero .primary-action,
.result-hero .secondary-action {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 14px;
  line-height: 1;
  box-shadow: 4px 4px 0 var(--outline);
}

.result-hero .primary-action {
  grid-column: 2 / 4;
  justify-self: end;
}

.result-snapshot {
  grid-column: 1 / 2;
  margin-bottom: 0;
  min-height: 365px;
  overflow: hidden;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255, 253, 244, 0.92) 0 48%, rgba(255, 218, 85, 0.24) 49% 100%),
    rgba(255, 253, 244, 0.78);
}

.compact-panel-title {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin-bottom: 10px;
  text-align: center;
}

.compact-panel-title .eyebrow {
  margin-bottom: 0;
}

.compact-panel-title h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.1;
}

.snapshot-grid {
  display: grid;
  place-items: center;
  min-height: 250px;
}

.quick-profile-summary {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  width: 100%;
  min-height: 248px;
  text-align: center;
}

.quick-profile-avatar-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border: 3px solid var(--outline);
  border-radius: 50%;
  background: #fff;
  box-shadow: 4px 4px 0 var(--outline);
  cursor: pointer;
}

.quick-profile-avatar {
  width: 70px;
  height: 70px;
  object-fit: contain;
  filter: drop-shadow(4px 5px 0 rgba(23, 21, 37, 0.16));
}

.quick-career-bubble {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  z-index: 4;
  display: grid;
  gap: 3px;
  min-width: 230px;
  border: 3px solid var(--outline);
  border-radius: 8px;
  padding: 11px 13px;
  background: var(--lime);
  box-shadow: 5px 5px 0 var(--outline);
  opacity: 0;
  pointer-events: none;
  text-align: left;
  transform: translate(-50%, 8px) scale(0.96);
  transition:
    opacity 160ms ease,
    transform 180ms cubic-bezier(0.2, 1.2, 0.3, 1);
}

.quick-career-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 18px;
  height: 18px;
  border-right: 3px solid var(--outline);
  border-bottom: 3px solid var(--outline);
  background: var(--lime);
  transform: translateX(-50%) rotate(45deg);
}

.quick-profile-avatar-wrap:hover .quick-career-bubble,
.quick-profile-avatar-wrap:focus-visible .quick-career-bubble {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.quick-profile-kicker,
.quick-career-bubble span,
.quick-career-bubble small {
  color: var(--purple);
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
}

.quick-career-bubble strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.1;
}

.quick-profile-summary h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.05;
}

.quick-profile-kicker {
  margin: 0;
}

.snapshot-traits,
.snapshot-meta,
.career-metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.snapshot-traits strong,
.snapshot-meta strong,
.career-metric-row span {
  border: 2px solid var(--outline);
  border-radius: 999px;
  padding: 6px 9px;
  background: var(--paper);
  font-size: 12px;
  font-weight: 1000;
}

.text-action {
  border: 0;
  border-bottom: 3px solid var(--outline);
  border-radius: 0;
  padding: 0 0 2px;
  background: transparent;
  color: var(--ink);
  font-weight: 1000;
  cursor: pointer;
}

.dashboard-grid {
  grid-column: 2 / 3;
  grid-template-columns: 1fr;
  margin: 0;
}

.score-panel {
  min-height: 365px;
}

.dashboard-grid .score-panel:only-child {
  grid-column: auto;
}

.panel-title {
  margin-bottom: 16px;
}

.panel-title h3 {
  margin-bottom: 0;
  font-size: 28px;
  line-height: 1;
  text-transform: uppercase;
}

.score-summary,
.interpretation-grid {
  display: grid;
  gap: 14px;
}

.score-summary {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.interpretation-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.score-summary {
  margin-bottom: 16px;
  position: relative;
}

.score-card,
.interpretation-card,
.result-card,
.explain-card {
  border: 3px solid var(--outline);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 5px 5px 0 var(--outline);
}

.score-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 9px;
  min-height: 132px;
  padding: 12px;
  overflow: hidden;
}

.score-meter-card {
  min-height: 0;
  gap: 7px;
  padding: 10px 12px;
}

.score-meter-card.ocean-slider-row {
  position: relative;
  gap: 6px;
  border: 0;
  border-radius: 8px;
  padding: 9px 8px;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.score-meter-card.ocean-slider-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.48);
}

.trait-slider-main {
  display: grid;
  gap: 7px;
}

.trait-slider-labels {
  position: relative;
  display: flex;
  justify-content: space-between;
  min-height: 20px;
  padding-top: 14px;
  color: #777384;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.trait-slider-labels strong {
  position: absolute;
  top: 0;
  left: var(--score-position);
  max-width: min(170px, 58vw);
  transform: translateX(-50%);
  color: var(--trait-label-color, var(--trait-color));
  font-size: 12px;
  font-weight: 1000;
  text-align: center;
  white-space: nowrap;
}

.trait-slider-labels > span {
  max-width: 42%;
  overflow-wrap: anywhere;
}

.trait-slider-labels .trait-scale-endpoint {
  display: grid;
  gap: 4px;
  line-height: 1.05;
}

.trait-slider-labels .trait-scale-endpoint--left {
  text-align: left;
}

.trait-slider-labels .trait-scale-endpoint--right {
  text-align: right;
}

.ocean-slider {
  position: relative;
  height: 10px;
  overflow: visible;
  border: 0;
  border-radius: 999px;
  background: rgba(23, 21, 37, 0.08);
}

.ocean-slider .trait-scale-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  border-radius: inherit;
  background: var(--trait-color);
}

.trait-slider-bubble {
  position: absolute;
  top: 50%;
  left: var(--score-position);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.trait-slider-bubble::before,
.trait-slider-bubble::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.trait-slider-bubble::before {
  inset: 1px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95) 0 13%, transparent 14%),
    color-mix(in srgb, var(--trait-color) 24%, transparent);
  opacity: 0;
  transform: scale(0.28);
}

.trait-slider-bubble::after {
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
  box-shadow:
    0 -18px 0 color-mix(in srgb, var(--trait-color) 80%, #fff),
    14px -12px 0 color-mix(in srgb, var(--trait-color) 65%, #fff),
    18px 3px 0 color-mix(in srgb, var(--trait-color) 70%, #fff),
    9px 16px 0 color-mix(in srgb, var(--trait-color) 58%, #fff),
    -10px 16px 0 color-mix(in srgb, var(--trait-color) 72%, #fff),
    -18px 2px 0 color-mix(in srgb, var(--trait-color) 62%, #fff),
    -13px -13px 0 color-mix(in srgb, var(--trait-color) 68%, #fff);
}

.trait-slider-thumb {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 5px 14px rgba(23, 21, 37, 0.22);
  object-fit: contain;
  padding: 2px;
  transform: scale(1);
  transition:
    box-shadow 180ms ease,
    filter 180ms ease,
    transform 220ms cubic-bezier(0.2, 1.25, 0.3, 1);
  will-change: transform;
}

.trait-slider-bubble:hover {
  z-index: 5;
}

.trait-slider-bubble:hover::before {
  animation: trait-bubble-shell-pop 660ms cubic-bezier(0.15, 1.35, 0.26, 1) both;
}

.trait-slider-bubble:hover::after {
  animation: trait-bubble-particles 660ms cubic-bezier(0.16, 0.95, 0.24, 1) both;
}

.trait-slider-bubble:hover .trait-slider-thumb {
  animation: trait-thumb-bubble-pop 660ms cubic-bezier(0.15, 1.35, 0.26, 1) both;
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.9),
    0 10px 22px rgba(23, 21, 37, 0.24);
  filter: saturate(1.12);
}

@keyframes trait-bubble-shell-pop {
  0% {
    opacity: 0;
    transform: scale(0.22);
  }

  28% {
    opacity: 0.9;
    transform: scale(1.28);
  }

  46% {
    opacity: 0.72;
    transform: scale(0.96);
  }

  72% {
    opacity: 0.34;
    transform: scale(1.55);
  }

  100% {
    opacity: 0;
    transform: scale(1.8);
  }
}

@keyframes trait-bubble-particles {
  0%,
  32% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2) rotate(0deg);
  }

  48% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(8deg);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.55) rotate(22deg);
  }
}

@keyframes trait-thumb-bubble-pop {
  0% {
    transform: scale(1);
  }

  22% {
    transform: scale(0.82, 1.18);
  }

  42% {
    transform: scale(1.48, 0.92);
  }

  58% {
    transform: scale(0.9, 1.08);
  }

  78% {
    transform: scale(1.16);
  }

  100% {
    transform: scale(1);
  }
}

.trait-slider-note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin: 2px 0 0;
  color: #4b465f;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.35;
}

.trait-slider-note strong {
  color: var(--outline);
  font-size: 11px;
}

.score-meter-head {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.score-card-main {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 58px;
  align-items: center;
  gap: 10px;
}

.trait-avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(3px 4px 0 rgba(23, 21, 37, 0.16));
}

.score-ring {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border: 3px solid var(--outline);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 56%, transparent 58%),
    conic-gradient(var(--purple) var(--score), #eee 0);
}

.score-card.high .score-ring {
  background:
    radial-gradient(circle at center, #fff 56%, transparent 58%),
    conic-gradient(var(--mint) var(--score), #eee 0);
}

.score-card.low .score-ring {
  background:
    radial-gradient(circle at center, #fff 56%, transparent 58%),
    conic-gradient(var(--coral) var(--score), #eee 0);
}

.score-ring span,
.score-card strong {
  font-weight: 1000;
}

.score-ring span {
  font-size: 13px;
}

.score-percent {
  color: var(--purple);
  font-size: 18px;
  line-height: 1;
}

.score-meter-card.high .score-percent {
  color: #158455;
}

.score-meter-card.low .score-percent {
  color: #b52735;
}

.trait-scale {
  height: 15px;
  overflow: hidden;
  border: 3px solid var(--outline);
  border-radius: 999px;
  background: #fff;
}

.trait-scale span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: repeating-linear-gradient(45deg, var(--blue) 0 10px, var(--pink) 10px 20px);
}

.score-meter-card.high .trait-scale span {
  background: repeating-linear-gradient(45deg, var(--mint) 0 10px, var(--blue) 10px 20px);
}

.score-meter-card.low .trait-scale span {
  background: repeating-linear-gradient(45deg, var(--coral) 0 10px, var(--yellow) 10px 20px);
}

.score-meter-card .ocean-slider {
  height: 10px;
  overflow: visible;
  border: 0;
  background: rgba(23, 21, 37, 0.08);
}

.score-meter-card .ocean-slider .trait-slider-bubble {
  display: grid;
  width: 30px;
  height: 30px;
  overflow: visible;
  background: transparent;
}

.score-meter-card .ocean-slider .trait-scale-fill {
  width: 100%;
  background: var(--trait-color);
}

.score-meter-card.high .ocean-slider .trait-scale-fill,
.score-meter-card.low .ocean-slider .trait-scale-fill {
  background: var(--trait-color);
}

.score-card-copy {
  min-width: 0;
}

.score-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

.score-title-row strong {
  max-width: 100%;
  font-size: 14px;
  line-height: 1.05;
  overflow-wrap: normal;
  word-break: normal;
}

.score-card p {
  margin: 7px 0 0;
  color: #36314e;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.score-card .trait-slider-note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin: 2px 0 0;
  color: #4b465f;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.35;
}

.score-card .trait-slider-note strong {
  color: var(--outline);
  font-size: 11px;
}

.score-title-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.score-title-line h2 {
  flex: 0 0 auto;
  margin-bottom: 0;
}

.score-summary-help {
  position: relative;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.trait-help-button {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 2px solid var(--outline);
  border-radius: 50%;
  padding: 0;
  background: var(--paper);
  color: var(--purple);
  box-shadow: 3px 3px 0 var(--outline);
  cursor: help;
  font-size: 15px;
  font-weight: 1000;
  line-height: 1;
}

.trait-help-button:hover,
.trait-help-button:focus-visible {
  background: var(--lime);
}

.trait-help-tooltip {
  position: absolute;
  top: 34px;
  right: 0;
  z-index: 20;
  display: grid;
  gap: 8px;
  width: min(320px, calc(100vw - 42px));
  border: 3px solid var(--outline);
  border-radius: 8px;
  padding: 12px;
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--outline);
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.score-summary-help:hover .trait-help-tooltip,
.score-summary-help:focus-within .trait-help-tooltip {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.trait-help-tooltip strong {
  color: var(--purple);
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
}

.trait-help-tooltip p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
}

.score-summary-tooltip {
  width: min(520px, calc(100vw - 42px));
}

.score-summary-tooltip ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.score-summary-tooltip li {
  display: grid;
  gap: 3px;
}

.score-summary-tooltip li strong {
  color: var(--ink);
  font-size: 12px;
  text-transform: none;
}

.score-summary-tooltip li span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.4;
}

.trait-why {
  border-top: 2px dashed rgba(23, 21, 37, 0.22);
  padding-top: 9px;
}

.trait-why summary {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: var(--purple);
  cursor: pointer;
  font-size: 12px;
  font-weight: 1000;
}

.trait-why p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.trait-thresholds {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.trait-thresholds span {
  border: 2px solid var(--outline);
  border-radius: 999px;
  padding: 4px 7px;
  background: var(--paper);
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
}

.api-empty-state {
  border: 3px solid var(--outline);
  border-radius: 14px;
  padding: 16px;
  background: #fff7df;
  box-shadow: 4px 4px 0 var(--outline);
}

.api-empty-state strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 1000;
}

.api-empty-state p {
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 850;
}

.api-empty-state small {
  color: #b52735;
  font-weight: 950;
}

.api-empty-state.compact {
  background: #e8f8ff;
}

.interpretation-card,
.result-card,
.explain-card {
  padding: 16px;
}

.interpretation-heading span {
  border: 3px solid var(--outline);
  border-radius: 999px;
  padding: 5px 8px;
  background: var(--yellow);
  font-size: 12px;
  font-weight: 1000;
  white-space: nowrap;
}

.interpretation-heading strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.inline-avatar {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.interpretation-card p,
.interpretation-card small,
.study-path,
.career-details p,
.explain-card p,
.career-title-wrap p {
  color: var(--muted);
}

.interpretation-card small {
  display: block;
  line-height: 1.5;
}

.technical-details,
.career-details {
  margin-top: 14px;
  border: 3px solid var(--outline);
  border-radius: 8px;
  padding: 12px;
  background: var(--paper);
}

.technical-details summary,
.career-details summary {
  color: var(--purple);
  cursor: pointer;
  font-weight: 1000;
}

.technical-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.technical-grid div {
  display: grid;
  gap: 4px;
  border: 3px solid var(--outline);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.technical-grid span {
  color: var(--muted);
  font-size: 12px;
}

.career-radar-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto auto;
  justify-items: center;
  gap: 9px;
  margin: 10px 0;
  border: 2px solid var(--outline);
  border-radius: 8px;
  min-height: 360px;
  padding: 18px 16px 16px;
  background: rgba(255, 253, 244, 0.62);
}

.career-radar-heading {
  justify-self: stretch;
  max-width: min(330px, 100%);
}

.career-radar-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
}

.career-radar-card p {
  margin: 0;
  color: #312e46;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.45;
}

.career-radar-chart {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  align-self: center;
  margin: 2px auto 0;
}

.career-radar-legend {
  justify-self: center;
}

.career-radar-guide {
  display: grid;
  gap: 5px;
  justify-self: stretch;
  border-top: 1px solid rgba(23, 21, 37, 0.14);
  padding-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.career-radar-guide span {
  display: block;
}

.career-radar-guide strong {
  display: inline;
  margin: 0;
  color: var(--ink);
  font-size: inherit;
  text-transform: none;
}

.radar-legend,
.score-detail,
.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.radar-legend {
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.radar-legend span {
  display: inline-flex;
  align-items: center;
}

.radar-legend i {
  width: 24px;
  height: 10px;
  border: 2px solid var(--outline);
  border-radius: 999px;
}

.legend-user {
  background: var(--blue);
}

.legend-career {
  background: var(--pink);
}

.recommendations-panel,
.explain-panel {
  margin-top: 0;
}

.recommendations-panel {
  grid-column: 1 / -1;
  border: 0;
  padding: 18px;
  box-shadow: none;
}

.results-list {
  display: grid;
  gap: 16px;
}

.recommendation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 280px);
  grid-template-areas: "detail ranks";
  gap: 16px;
  align-items: start;
}

.career-rank-list {
  grid-area: ranks;
  position: sticky;
  top: 112px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-height: calc(100vh - 132px);
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  padding: 14px;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.career-option-wheel {
  min-width: 0;
}

.career-detail-stage {
  grid-area: detail;
  min-width: 0;
}

.result-card.selected {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  overflow: visible;
}

.result-card {
  scroll-margin-top: 24px;
  display: grid;
  gap: 12px;
  overflow: hidden;
}

.career-overview-card {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(310px, 0.95fr);
  gap: 18px;
  align-items: center;
  border: 2px solid rgba(20, 18, 35, 0.22);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 253, 244, 0.76);
  box-shadow: 0 14px 34px rgba(20, 18, 35, 0.08);
}

.career-overview-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.career-title-wrap {
  display: flex;
  align-items: center;
  gap: 13px;
}

.career-rank {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 3px solid var(--outline);
  border-radius: 50%;
  background: var(--yellow);
  font-weight: 1000;
}

.result-card h4 {
  margin-bottom: 2px;
  font-size: 23px;
}

.match-score {
  display: grid;
  justify-items: end;
  min-width: 96px;
}

.match-score strong {
  color: var(--purple);
  font-size: 29px;
  line-height: 1;
}

.match-score span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
}

.career-overview-reason {
  max-width: 680px;
  margin: 0;
  color: #312e46;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 850;
}

.career-overview-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.career-overview-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid rgba(23, 21, 37, 0.2);
  border-radius: 10px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 1000;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.career-overview-action:hover,
.career-overview-action:focus-visible {
  border-color: var(--purple);
  background: #fff;
  outline: none;
  transform: translateY(-1px);
}

.career-overview-card .career-radar-card--overview {
  align-self: stretch;
  min-height: 0;
  height: auto;
  margin: 0;
  border: 0;
  border-left: 2px solid rgba(20, 18, 35, 0.16);
  border-radius: 0;
  padding: 0 0 0 18px;
  background: transparent;
}

.career-overview-card .career-radar-card--overview .career-radar-chart {
  max-width: 280px;
}

.career-overview-card .career-radar-card--overview .career-radar-heading {
  max-width: 100%;
}

.career-overview-card .career-radar-card--overview .career-radar-legend {
  font-size: 11px;
}

body.career-popup-open {
  overflow: hidden;
}

.career-detail-popup {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 42px);
  background: rgba(23, 21, 37, 0.46);
  backdrop-filter: blur(8px);
}

.career-detail-popup[hidden] {
  display: none;
}

.career-detail-popup-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(760px, 100%);
  max-height: min(760px, calc(100vh - 32px));
  overflow: hidden;
  border: 1px solid rgba(23, 21, 37, 0.2);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 28px 80px rgba(23, 21, 37, 0.28);
}

.career-detail-popup-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(23, 21, 37, 0.14);
  padding: 18px 20px;
}

.career-detail-popup-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.1;
}

.career-detail-popup-header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.career-detail-popup-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid rgba(23, 21, 37, 0.2);
  border-radius: 50%;
  padding: 0;
  background: #fff;
  color: var(--ink);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.career-detail-popup-close:hover,
.career-detail-popup-close:focus-visible {
  border-color: var(--purple);
  background: #eee8ff;
  outline: none;
}

.career-detail-popup-content {
  overflow: auto;
  padding: clamp(18px, 3vw, 28px);
  scrollbar-gutter: stable;
}

.career-detail-popup-content .career-score-panel {
  gap: 16px;
  padding: 0;
  border: 0;
}

.career-detail-popup-content .career-score-panel > strong {
  font-size: 18px;
}

.career-detail-popup-content .career-score-panel .career-metric-row span {
  min-height: 96px;
  border: 1px solid rgba(23, 21, 37, 0.18);
  background: #fff;
}

.career-detail-popup-content > .simpler-explanation-card {
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.career-detail-popup-content > .simpler-explanation-card > .career-match-summary-header {
  display: none;
}

@media (max-width: 640px) {
  .career-overview-actions,
  .career-detail-popup-content .career-score-panel .career-metric-row {
    grid-template-columns: 1fr;
  }

  .career-detail-popup {
    padding: 10px;
  }

  .career-detail-popup-panel {
    max-height: calc(100vh - 20px);
    border-radius: 14px;
  }

  .career-detail-popup-header {
    padding: 15px;
  }

  .career-detail-popup-content {
    padding: 16px;
  }
}

.career-score-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding-left: 18px;
  border-left: 2px solid rgba(20, 18, 35, 0.16);
}

.career-score-panel > strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 1000;
}

.career-score-panel .career-metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.career-score-panel .career-metric-row span {
  display: grid;
  place-items: center;
  min-height: 72px;
  border-radius: 8px;
  padding: 12px 8px;
  background: rgba(255, 255, 255, 0.78);
  text-align: center;
  line-height: 1.25;
}

.career-score-panel .career-metric-row strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
}

.career-insight-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(320px, 1.08fr);
  gap: 12px;
  align-items: stretch;
}

.career-insight-grid .career-radar-card {
  height: 100%;
  margin: 0;
}

.trait-contribution-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  border: 2px solid rgba(20, 18, 35, 0.22);
  border-radius: 8px;
  min-height: 360px;
  padding: 18px;
  background: rgba(255, 253, 244, 0.7);
}

.panel-mini-title strong {
  display: block;
  color: var(--purple);
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
}

.trait-contribution-list {
  display: grid;
  gap: 10px;
}

.trait-contribution-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 2px solid rgba(20, 18, 35, 0.16);
  border-radius: 8px;
  min-height: 74px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.82);
}

.trait-contribution-card.positive {
  background: rgba(223, 249, 233, 0.82);
}

.trait-contribution-card.negative {
  background: rgba(255, 229, 218, 0.82);
}

.trait-contribution-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--outline);
  border-radius: 50%;
  background: var(--paper);
  color: var(--purple);
  font-weight: 1000;
}

.trait-contribution-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.15;
}

.trait-contribution-card p {
  margin: 0;
  color: #312e46;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 820;
}

.trait-contribution-card small {
  border-radius: 999px;
  padding: 5px 8px;
  background: var(--mint);
  color: var(--ink);
  font-size: 12px;
  font-weight: 1000;
}

.why-text {
  color: #312e46;
  font-weight: 850;
}

.short-explanation {
  max-width: 920px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 800;
}

.career-quick-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.1fr) minmax(180px, 0.72fr) minmax(200px, 0.82fr);
  gap: 10px;
  margin: 0;
  align-items: stretch;
}

.career-main-reason,
.career-quick-block {
  border: 2px solid var(--outline);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 253, 244, 0.64);
}

.career-main-reason strong,
.career-quick-block > strong {
  display: block;
  margin-bottom: 7px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
}

.career-main-reason p {
  margin: 0;
  color: #312e46;
  font-size: 14px;
  font-weight: 880;
  line-height: 1.45;
}

.career-quick-block .trait-pill-cloud,
.career-quick-block .chip-cloud {
  margin: 0;
}

.career-metric-row {
  margin: 0;
}

.career-metric-row span {
  background: #fff;
  color: var(--muted);
}

.career-metric-row strong {
  color: var(--ink);
}

.reason-list,
.tip-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: #312e46;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 850;
}

.tip-list {
  margin: 9px 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.career-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
  gap: 16px;
  margin: 16px 0;
}

.trait-pill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 9px 0 14px;
}

.trait-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 3px solid var(--outline);
  border-radius: 999px;
  padding: 7px 10px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
}

.trait-pill.positive {
  background: #dff9e9;
}

.trait-pill.negative {
  background: #ffe5da;
}

.trait-pill strong {
  color: var(--purple);
}

.career-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.career-action-row .secondary-action,
.career-action-row .compare-button {
  width: auto;
  min-height: 42px;
  padding: 10px 14px;
  font-size: 13px;
}

.simple-explain-output {
  min-height: 0;
  margin: 0;
}

.simpler-explanation-card {
  display: grid;
  gap: 0;
  margin: 10px 0 14px;
  border: 0;
  border-radius: 20px;
  padding: clamp(16px, 2vw, 24px);
  background:
    radial-gradient(circle at 96% 8%, rgba(255, 216, 61, 0.26), transparent 22%),
    linear-gradient(145deg, #fffdf4 0%, #f8fbff 54%, #fff2f8 100%);
  box-shadow: 0 14px 34px rgba(23, 21, 37, 0.1);
  color: #312e46;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 850;
}

.career-match-summary-header {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(23, 21, 37, 0.14);
}

.career-match-summary-header > span {
  width: fit-content;
  border: 0;
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: none;
}

.career-match-summary-header h4 {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: clamp(21px, 2.2vw, 28px);
  line-height: 1.05;
}

.career-match-summary-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.career-match-key-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.career-match-simple-summary {
  margin: 0;
  border-bottom: 1px solid rgba(23, 21, 37, 0.14);
  padding: 0 0 18px;
  color: #312e46;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.55;
}

.career-summary-card {
  display: grid;
  align-content: start;
  gap: 11px;
  min-width: 0;
  border: 0;
  border-radius: 0;
  padding: 18px 0;
  background: transparent;
  box-shadow: none;
}

.career-summary-card + .career-summary-card {
  border-top: 1px solid rgba(23, 21, 37, 0.14);
}

.career-summary-card:nth-child(4n + 1) .career-summary-step {
  background: #dff9e9;
  color: #24704a;
}

.career-summary-card:nth-child(4n + 2) .career-summary-step {
  background: #dff3ff;
  color: #24658a;
}

.career-summary-card:nth-child(4n + 3) .career-summary-step {
  background: #fff0a8;
  color: #755d00;
}

.career-summary-card:nth-child(4n + 4) .career-summary-step {
  background: #ffe1ee;
  color: #914564;
}

.career-summary-card-heading {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.career-summary-step {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: rgba(125, 92, 255, 0.12);
  color: var(--purple);
  font-size: 11px;
  font-weight: 1000;
}

.career-summary-card-heading small {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-transform: uppercase;
}

.career-summary-card h5,
.career-full-explanation h5 {
  margin: 0;
  color: var(--purple);
  font-size: 15px;
  line-height: 1.2;
}

.career-summary-card p,
.career-full-explanation p {
  margin: 0;
}

.career-summary-context {
  color: #312e46;
  font-weight: 950;
  line-height: 1.4;
}

.career-summary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.career-summary-tags > span {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  border: 2px solid rgba(23, 21, 37, 0.76);
  border-radius: 999px;
  padding: 5px 9px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
  font-weight: 950;
  line-height: 1.2;
}

.career-summary-bullets,
.career-summary-evidence-list {
  margin: 0;
  padding-left: 19px;
  color: #312e46;
}

.career-summary-bullets li,
.career-summary-evidence-list li {
  margin: 4px 0;
  padding-left: 2px;
  line-height: 1.4;
}

.career-summary-subsection {
  display: grid;
  gap: 7px;
}

.career-summary-subsection h6,
.career-requirement-group h6 {
  margin: 0;
  color: var(--ink);
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.career-requirement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.career-requirement-group {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.career-requirement-group .career-summary-tags {
  display: grid;
}

.career-requirement-group .career-summary-tags > span {
  justify-content: flex-start;
  border-width: 1px;
  border-radius: 8px;
}

.career-full-explanation {
  overflow: hidden;
  border: 2px solid var(--outline);
  border-radius: 13px;
  margin-top: 4px;
  background: rgba(255, 253, 244, 0.92);
}

.career-full-explanation summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 11px 14px;
  cursor: pointer;
  list-style: none;
}

.career-full-explanation summary::-webkit-details-marker {
  display: none;
}

.career-full-explanation summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 2px solid var(--outline);
  border-radius: 50%;
  background: var(--yellow);
  color: var(--outline);
  font-size: 14px;
  font-weight: 1000;
  line-height: 1;
}

.career-full-explanation[open] summary::after {
  content: "−";
}

.career-full-explanation summary > span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 1000;
}

.career-full-explanation summary > small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.career-full-explanation-content {
  display: grid;
  gap: 14px;
  border-top: 1px solid rgba(23, 21, 37, 0.14);
  padding: 14px;
}

.career-full-explanation-content section {
  display: grid;
  gap: 5px;
}

.career-full-explanation-content > small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.4;
}

@media (max-width: 720px) {
  .career-match-key-grid {
    grid-template-columns: 1fr;
  }

  .career-requirement-grid {
    grid-template-columns: 1fr;
  }

  .career-full-explanation summary {
    grid-template-columns: minmax(0, 1fr) 24px;
  }

  .career-full-explanation summary > small {
    display: none;
  }
}

.simple-match-explanation {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
  padding: 10px 0 0;
  background: transparent;
}

.simple-match-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.simple-match-top span {
  color: var(--purple);
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
}

.simple-match-top h5 {
  margin: 4px 0 0;
  font-size: 22px;
  line-height: 1.05;
}

.simple-match-top > strong {
  flex: 0 0 auto;
  border: 3px solid var(--outline);
  border-radius: 999px;
  padding: 8px 11px;
  background: var(--yellow);
  font-size: 13px;
  box-shadow: 3px 3px 0 var(--outline);
}

.simple-match-explanation p {
  margin: 0;
  color: #312e46;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 850;
}

.simple-explanation-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.simple-explanation-columns h6 {
  margin: 0 0 8px;
  font-size: 13px;
  text-transform: uppercase;
}

.simple-factor-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 8px;
  align-items: start;
}

.simple-factor {
  border: 1px solid rgba(20, 18, 35, 0.22);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.simple-factor summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 11px;
  color: var(--purple);
  cursor: pointer;
  font-size: 13px;
  font-weight: 1000;
  line-height: 1.15;
  list-style: none;
}

.simple-factor summary::-webkit-details-marker {
  display: none;
}

.simple-factor summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--outline);
  border-radius: 50%;
  color: var(--outline);
  background: var(--yellow);
  font-size: 12px;
  font-weight: 1000;
  line-height: 1;
}

.simple-factor[open] summary::after {
  content: "-";
}

.simple-factor summary span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 1000;
}

.simple-factor p {
  margin: 0;
  border-top: 1px solid rgba(20, 18, 35, 0.1);
  padding: 9px 11px 11px;
  color: #312e46;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.4;
}

.simple-summary-box {
  border-left: 6px solid var(--mint);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.simple-summary-box strong,
.simple-summary-box small {
  display: block;
}

.simple-summary-box small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.45;
}

.iconsax-animated-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.iconsax-animated-icon .animated-stroke {
  stroke-dasharray: 42;
  stroke-dashoffset: 0;
  animation: iconsax-pulse-draw 2.8s ease-in-out infinite;
}

@keyframes iconsax-pulse-draw {
  0%,
  100% {
    stroke-dashoffset: 0;
    opacity: 1;
  }

  50% {
    stroke-dashoffset: 12;
    opacity: 0.72;
  }
}

.career-fit-tabs,
.career-prep-strip {
  border: 2px solid rgba(20, 18, 35, 0.18);
  border-radius: 8px;
  background: rgba(255, 253, 244, 0.78);
  box-shadow: 0 12px 28px rgba(20, 18, 35, 0.07);
  overflow: hidden;
}

.career-fit-tablist {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-bottom: 2px solid rgba(20, 18, 35, 0.12);
  padding: 0 14px;
}

.career-fit-tab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 58px;
  border: 0;
  border-radius: 0;
  padding: 12px 8px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
}

.career-fit-tab span {
  font-size: 13px;
  line-height: 1.2;
}

.career-fit-tab::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 4px;
  border-radius: 999px 999px 0 0;
  background: transparent;
}

.career-fit-tab.active {
  color: var(--purple);
}

.career-fit-tab.active::after {
  background: var(--purple);
}

.career-fit-tab-panels {
  padding: 18px;
}

.career-fit-panel[hidden] {
  display: none;
}

.career-fit-panel-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.career-fit-evidence {
  display: grid;
  align-content: center;
  gap: 10px;
  min-width: 0;
  border: 0;
  padding: 0;
}

.career-fit-evidence-context {
  margin: 0;
  color: #312e46;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.45;
}

.career-fit-evidence .career-summary-bullets {
  font-size: 13px;
  font-weight: 850;
}

.career-fit-visual {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 128px;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(126, 87, 255, 0.16), rgba(255, 125, 176, 0.14)),
    rgba(255, 255, 255, 0.72);
  color: var(--purple);
  text-align: center;
}

.career-fit-hero-icon {
  width: 72px;
  height: 72px;
  stroke-width: 1.45;
}

.career-fit-visual span {
  max-width: 150px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 1000;
  line-height: 1.2;
}

.career-fit-copy {
  display: grid;
  gap: 12px;
}

.career-fit-copy > p,
.career-meaning-card p {
  margin: 0;
  color: #312e46;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.45;
}

.career-check-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.career-check-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.career-check-list li span {
  color: #312e46;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.45;
}

.career-check-icon {
  width: 20px;
  height: 20px;
  color: var(--purple);
}

.career-meaning-card {
  display: grid;
  gap: 8px;
  border: 2px solid rgba(255, 202, 67, 0.78);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 248, 220, 0.78);
}

.meaning-card-title,
.career-prep-title {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
}

.meaning-card-title .iconsax-animated-icon {
  color: var(--yellow);
}

.meaning-card-title strong,
.career-prep-title strong {
  font-size: 13px;
  font-weight: 1000;
}

.career-tab-section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
  align-items: start;
}

.career-tab-section-grid.single {
  grid-template-columns: 1fr;
}

.career-tab-section-grid section {
  min-width: 0;
}

.career-tab-section-grid h6 {
  margin: 0 0 10px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
}

.technical-summary-box {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  border-left: 6px solid var(--mint);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.technical-summary-box strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 1000;
}

.technical-summary-box p {
  margin: 0;
  color: #312e46;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.45;
}

.career-prep-strip {
  display: grid;
  gap: 14px;
  padding: 16px 18px 18px;
}

.career-prep-toggle {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  border: 2px solid rgba(77, 120, 200, 0.42);
  border-radius: 8px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: none;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.career-prep-toggle:hover,
.career-prep-toggle:focus-visible,
.career-prep-toggle[aria-expanded="true"] {
  border-color: #4d78c8;
  background: rgba(232, 248, 255, 0.82);
  outline: none;
}

.career-prep-toggle-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.career-prep-toggle-copy strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  font-weight: 1000;
  line-height: 1.08;
}

.career-prep-toggle-copy small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

.career-prep-toggle-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  border: 2px solid rgba(77, 120, 200, 0.28);
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff;
  color: #4d78c8;
  font-size: 12px;
  font-weight: 1000;
}

.career-prep-details {
  display: grid;
  gap: 12px;
}

.career-prep-details[hidden] {
  display: none;
}

.career-prep-heading {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: var(--ink);
}

.career-prep-heading-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid rgba(20, 18, 35, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: #4d78c8;
}

.career-prep-heading-icon .iconsax-animated-icon {
  width: 22px;
  height: 22px;
}

.career-prep-heading strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  font-weight: 1000;
  line-height: 1.08;
}

.career-prep-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

.career-prep-timeline {
  position: relative;
  display: grid;
  gap: 12px;
  padding-left: 58px;
}

.career-prep-timeline::before {
  content: "";
  position: absolute;
  top: 29px;
  bottom: 29px;
  left: 29px;
  width: 2px;
  border-radius: 999px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(123, 139, 156, 0.28) 0 8px,
    transparent 8px 15px
  );
}

.career-prep-timeline-item {
  position: relative;
  display: grid;
  min-width: 0;
  --prep-accent: #4d78c8;
  --prep-accent-soft: rgba(77, 120, 200, 0.12);
  --prep-accent-border: rgba(77, 120, 200, 0.24);
}

.career-prep-timeline-item:nth-child(2) {
  --prep-accent: #9c6b10;
  --prep-accent-soft: rgba(240, 181, 72, 0.16);
  --prep-accent-border: rgba(240, 181, 72, 0.34);
}

.career-prep-timeline-item:nth-child(3) {
  --prep-accent: #237d75;
  --prep-accent-soft: rgba(65, 188, 176, 0.14);
  --prep-accent-border: rgba(65, 188, 176, 0.28);
}

.career-prep-timeline-item:nth-child(4) {
  --prep-accent: #d94f8f;
  --prep-accent-soft: rgba(255, 125, 176, 0.14);
  --prep-accent-border: rgba(255, 125, 176, 0.28);
}

.career-prep-timeline-item:nth-child(5) {
  --prep-accent: #5c5870;
  --prep-accent-soft: rgba(20, 18, 35, 0.06);
  --prep-accent-border: rgba(20, 18, 35, 0.16);
}

.career-prep-step-number {
  position: absolute;
  top: 12px;
  left: -58px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--prep-accent-border);
  border-radius: 50%;
  background:
    linear-gradient(145deg, var(--prep-accent-soft), rgba(255, 255, 255, 0.58)),
    #fff;
  color: var(--prep-accent);
  font-size: 15px;
  font-weight: 1000;
  box-shadow: 0 8px 18px rgba(20, 18, 35, 0.06);
}

.career-prep-step-card {
  border: 1px solid rgba(20, 18, 35, 0.12);
  border-radius: 8px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  min-width: 0;
  box-shadow: none;
  text-align: left;
}

.career-prep-step-head {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  margin-bottom: 12px;
}

.prep-step-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--prep-accent-soft);
  color: var(--prep-accent);
}

.prep-step-icon .iconsax-animated-icon {
  width: 20px;
  height: 20px;
}

.career-prep-step-head strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 1000;
  line-height: 1.15;
}

.career-prep-step-head p {
  margin: 5px 0 0;
  color: #312e46;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.career-prep-step-body {
  padding-left: 49px;
}

.career-prep-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.career-prep-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--prep-accent-border);
  border-radius: 8px;
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--prep-accent);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.2;
}

.career-prep-chip::before {
  content: "";
  width: 4px;
  height: 4px;
  margin-right: 8px;
  border-radius: 50%;
  background: currentColor;
}

.career-prep-bullet-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: #312e46;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.42;
}

.career-prep-bullet-list li strong {
  display: inline;
  margin: 0;
  font-size: inherit;
}

.career-prep-bullet-list li span {
  display: block;
  margin-top: 2px;
}

.prep-course-grid,
.prep-ability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.prep-evidence-card,
.prep-ability-card {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid var(--prep-accent-border, rgba(20, 18, 35, 0.14));
  border-radius: 8px;
  padding: 11px;
  background:
    linear-gradient(145deg, var(--prep-accent-soft, rgba(20, 18, 35, 0.04)), rgba(255, 255, 255, 0.68)),
    rgba(255, 255, 255, 0.72);
}

.prep-evidence-card strong,
.prep-ability-card strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 1000;
}

.prep-ability-card p {
  margin: 0;
  color: #312e46;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.prep-evidence-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--prep-accent-soft, rgba(20, 18, 35, 0.06));
  color: var(--prep-accent, #5c5870);
}

.prep-evidence-icon .iconsax-animated-icon {
  width: 17px;
  height: 17px;
}

.prep-note-box {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid rgba(255, 202, 67, 0.68);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 248, 220, 0.72);
}

.prep-note-box > .iconsax-animated-icon {
  width: 19px;
  height: 19px;
  color: #d4a91f;
}

.prep-empty-copy {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.4;
}

.career-prep-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  border: 2px solid #4d78c8;
  border-radius: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.76);
  color: #4d78c8;
  box-shadow: none;
  font-size: 14px;
  font-weight: 950;
  cursor: pointer;
}

.career-prep-action .iconsax-animated-icon {
  width: 18px;
  height: 18px;
}

.career-detail-accordion {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.compact-details {
  border: 3px solid var(--outline);
  border-radius: 8px;
  padding: 0;
  background: #fff;
  box-shadow: 3px 3px 0 var(--outline);
  overflow: hidden;
}

.career-detail-accordion .compact-details[open] {
  grid-column: 1 / -1;
  background: #fffdf4;
}

.compact-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  gap: 12px;
  padding: 10px 14px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 1000;
  line-height: 1.2;
  list-style: none;
}

.compact-details summary::-webkit-details-marker {
  display: none;
}

.compact-details[open] summary {
  border-bottom: 3px solid var(--outline);
  background: #efffd1;
}

.compact-details summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid var(--outline);
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
}

.compact-details[open] summary::after {
  content: "-";
}

.career-detail-body {
  max-height: min(560px, 68vh);
  overflow: auto;
  padding: 14px;
  scrollbar-gutter: stable;
}

.career-detail-body > :first-child {
  margin-top: 0;
}

.career-detail-body > :last-child {
  margin-bottom: 0;
}

.score-breakdown-grid,
.next-step-grid,
.shap-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.contributor-heading {
  display: flex;
  align-items: center;
  gap: 7px;
}

.contributor-help-wrap {
  position: relative;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
}

.contributor-help-icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 2px solid var(--outline);
  border-radius: 50%;
  background: var(--mint);
  color: var(--ink);
  cursor: help;
  font-size: 12px;
  font-weight: 1000;
  line-height: 1;
}

.contributor-help-wrap.negative .contributor-help-icon {
  background: #ffd8ca;
}

.contributor-help-icon:focus-visible {
  outline: 3px solid rgba(125, 92, 255, 0.32);
  outline-offset: 2px;
}

.contributor-tooltip {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  width: min(290px, calc(100vw - 48px));
  border: 2px solid var(--outline);
  border-radius: 10px;
  padding: 9px 11px;
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--outline);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  visibility: hidden;
}

.contributor-help-wrap:hover .contributor-tooltip,
.contributor-help-wrap:focus-within .contributor-tooltip {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.score-breakdown-grid div,
.next-step-grid > div,
.onet-evidence-group {
  border: 2px solid var(--outline);
  border-radius: 8px;
  padding: 12px;
  background: #fffdf4;
}

.career-fit-panel[data-career-panel="skills"] .onet-evidence-group {
  border: 1px solid rgba(20, 18, 35, 0.16);
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: none;
}

.career-fit-panel[data-career-panel="skills"] .onet-evidence-group + .onet-evidence-group {
  margin-top: 10px;
}

.career-fit-panel[data-career-panel="skills"] .onet-evidence-group strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 1000;
}

.career-fit-panel[data-career-panel="skills"] .onet-evidence-group p {
  margin: 7px 0 0;
  color: #312e46;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.45;
}

.career-fit-panel[data-career-panel="skills"] .chip-cloud {
  margin: 8px 0 0;
  gap: 7px;
}

.career-fit-panel[data-career-panel="skills"] .chip {
  border: 1px solid var(--evidence-border, rgba(126, 87, 255, 0.28));
  padding: 5px 9px;
  background: var(--evidence-bg, rgba(126, 87, 255, 0.12));
  color: var(--evidence-accent, var(--purple));
  box-shadow: none;
  font-size: 11px;
}

.career-fit-panel[data-career-panel="skills"] .evidence-skills {
  --evidence-bg: rgba(126, 87, 255, 0.12);
  --evidence-border: rgba(126, 87, 255, 0.28);
  --evidence-accent: #6b4cff;
}

.career-fit-panel[data-career-panel="skills"] .evidence-abilities {
  --evidence-bg: rgba(91, 141, 239, 0.12);
  --evidence-border: rgba(91, 141, 239, 0.26);
  --evidence-accent: #386fd6;
}

.career-fit-panel[data-career-panel="skills"] .evidence-knowledge {
  --evidence-bg: rgba(255, 125, 176, 0.13);
  --evidence-border: rgba(255, 125, 176, 0.28);
  --evidence-accent: #d94f8f;
}

.career-fit-panel[data-career-panel="skills"] .evidence-work_styles {
  --evidence-bg: rgba(240, 181, 72, 0.14);
  --evidence-border: rgba(210, 158, 51, 0.3);
  --evidence-accent: #9c6b10;
}

.career-fit-panel[data-career-panel="skills"] .evidence-tasks {
  --evidence-bg: rgba(65, 188, 176, 0.12);
  --evidence-border: rgba(65, 188, 176, 0.26);
  --evidence-accent: #237d75;
}

.career-fit-panel[data-career-panel="skills"] .evidence-job_zone {
  --evidence-bg: rgba(162, 126, 234, 0.12);
  --evidence-border: rgba(162, 126, 234, 0.28);
  --evidence-accent: #7656bd;
}

.career-fit-panel[data-career-panel="skills"] .evidence-education_training_experience {
  --evidence-bg: rgba(105, 179, 255, 0.13);
  --evidence-border: rgba(105, 179, 255, 0.28);
  --evidence-accent: #2777bd;
}

.career-fit-panel[data-career-panel="skills"] .evidence-interests,
.career-fit-panel[data-career-panel="skills"] .evidence-work_activities,
.career-fit-panel[data-career-panel="skills"] .evidence-mapping {
  --evidence-bg: rgba(20, 18, 35, 0.06);
  --evidence-border: rgba(20, 18, 35, 0.16);
  --evidence-accent: #5c5870;
}

.score-breakdown-grid span,
.formula-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.score-breakdown-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--purple);
  font-size: 24px;
}

.formula-note {
  margin-top: 10px;
  line-height: 1.45;
}

.comparison-table-wrap {
  overflow-x: hidden;
  width: 100%;
}

.ocean-comparison-table {
  width: 100%;
  min-width: 0;
  border-collapse: separate;
  border-spacing: 0 8px;
  table-layout: fixed;
}

.ocean-comparison-table th,
.ocean-comparison-table td {
  padding: 9px 8px;
  background: #fffdf4;
  text-align: left;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.ocean-comparison-table th:nth-child(1),
.ocean-comparison-table td:nth-child(1) {
  width: 24%;
}

.ocean-comparison-table th:nth-child(2),
.ocean-comparison-table td:nth-child(2) {
  width: 14%;
}

.ocean-comparison-table th:nth-child(3),
.ocean-comparison-table td:nth-child(3) {
  width: 18%;
}

.ocean-comparison-table th:nth-child(4),
.ocean-comparison-table td:nth-child(4) {
  width: 16%;
}

.ocean-comparison-table th:nth-child(5),
.ocean-comparison-table td:nth-child(5) {
  width: 28%;
}

.ocean-comparison-table th:first-child,
.ocean-comparison-table td:first-child {
  border-left: 2px solid var(--outline);
  border-radius: 8px 0 0 8px;
}

.ocean-comparison-table th:last-child,
.ocean-comparison-table td:last-child {
  border-right: 2px solid var(--outline);
  border-radius: 0 8px 8px 0;
}

.ocean-comparison-table tbody th,
.ocean-comparison-table tbody td {
  border-top: 2px solid var(--outline);
  border-bottom: 2px solid var(--outline);
}

.comparison-meter {
  display: inline-block;
  width: min(96px, 100%);
  height: 8px;
  margin-right: 5px;
  overflow: hidden;
  border: 2px solid var(--outline);
  border-radius: 999px;
  background: #fff;
  vertical-align: middle;
}

.comparison-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.shap-columns p {
  margin-top: 8px;
}

.shap-intro-box {
  margin: 0 14px 14px;
  border: 3px solid var(--outline);
  border-radius: 8px;
  padding: 12px 14px;
  background: #e8f8ff;
  box-shadow: 4px 4px 0 var(--outline);
}

.shap-intro-box p {
  margin: 0;
  color: #302d44;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.45;
}

.shap-visual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 14px;
  margin: 14px 0;
}

.shap-visual-grid > div {
  min-width: 0;
  overflow: hidden;
  border: 2px solid var(--outline);
  border-radius: 8px;
  padding: 12px;
  background: #fffdf4;
}

.shap-visual-grid > div > strong {
  display: block;
  margin-bottom: 10px;
}

.shap-chart,
.shap-waterfall,
.shap-ranking {
  display: grid;
  gap: 9px;
}

.shap-chart-row,
.waterfall-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(90px, 1.1fr) max-content;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.shap-chart-row > span,
.waterfall-step > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.shap-chart-row > strong,
.waterfall-step > strong {
  justify-self: end;
  white-space: nowrap;
}

.shap-axis-bar {
  position: relative;
  height: 16px;
  overflow: hidden;
  border: 2px solid var(--outline);
  border-radius: 999px;
  background: #fff;
}

.shap-axis-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--outline);
  opacity: 0.45;
}

.shap-value-bar {
  position: absolute;
  top: 2px;
  bottom: 2px;
  width: calc(var(--bar-size) / 2);
  border-radius: 999px;
}

.shap-value-bar.positive {
  left: 50%;
  background: var(--mint);
}

.shap-value-bar.negative {
  right: 50%;
  background: var(--coral);
}

.waterfall-step {
  grid-template-columns: minmax(0, 1fr) minmax(86px, 1.05fr) max-content;
}

.waterfall-step.baseline,
.waterfall-step.final {
  grid-template-columns: minmax(0, 1fr) auto;
  border: 2px solid var(--outline);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  color: var(--ink);
}

.waterfall-step.final {
  background: var(--yellow);
}

.waterfall-track {
  height: 12px;
  overflow: hidden;
  border: 2px solid var(--outline);
  border-radius: 999px;
  background: #fff;
}

.waterfall-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.waterfall-step.positive .waterfall-track span {
  background: var(--mint);
}

.waterfall-step.negative .waterfall-track span {
  background: var(--coral);
}

.waterfall-step small,
.shap-ranking small {
  color: var(--muted);
  font-size: 11px;
}

.waterfall-step small {
  grid-column: 1 / -1;
}

.shap-ranking {
  margin: 0;
  padding-left: 19px;
  font-size: 13px;
}

.shap-ranking li::marker {
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.shap-ranking li {
  border-left: 5px solid var(--blue);
  border-radius: 6px;
  padding: 7px 9px;
  background: #fff;
  font-size: 13px;
  line-height: 1.25;
}

.shap-ranking li.positive {
  border-left-color: var(--mint);
}

.shap-ranking li.negative {
  border-left-color: var(--coral);
}

.shap-ranking li strong,
.shap-ranking li small {
  display: block;
  margin-top: 3px;
}

.shap-ranking li span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.shap-ranking li strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.1;
}

.shap-ranking li small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.trait-row,
.contribution-row {
  display: grid;
  grid-template-columns: 150px minmax(90px, 1fr) 48px;
  gap: 9px;
  align-items: center;
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.trait-bar {
  height: 12px;
  overflow: hidden;
  border: 2px solid var(--outline);
  border-radius: 999px;
  background: #fff;
}

.trait-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: repeating-linear-gradient(45deg, var(--blue) 0 8px, var(--pink) 8px 16px);
  transition: width 420ms ease;
}

.contribution-row.positive strong {
  color: #246b45;
}

.contribution-row.negative strong {
  color: #b42318;
}

.contribution-row.neutral strong {
  color: var(--muted);
}

.contribution-row.negative .trait-bar span {
  background: repeating-linear-gradient(45deg, #ff8a80 0 8px, #ffd166 8px 16px);
}

.contribution-row.neutral .trait-bar span {
  background: repeating-linear-gradient(45deg, #cad2d9 0 8px, #f4f6f8 8px 16px);
}

.contribution-card {
  margin-top: 9px;
  border: 2px solid var(--outline);
  border-radius: 8px;
  padding: 10px 12px 12px;
  background: #fff;
}

.contribution-card.positive {
  background: #f0fff7;
}

.contribution-card.negative {
  background: #fff1ec;
}

.contribution-card.neutral {
  background: #f8f9fb;
}

.contribution-card p {
  margin: 8px 0 0;
  color: #312e46;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 850;
}

.chip-cloud {
  margin: 9px 0 14px;
}

.score-detail {
  margin-top: 12px;
}

.score-detail span {
  border: 3px solid var(--outline);
  border-radius: 999px;
  padding: 7px 10px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.compare-button {
  margin-top: 2px;
  background: var(--blue);
}

.explain-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.wide-explain {
  grid-column: 1 / -1;
}

.top-five-explanations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.mini-result {
  display: grid;
  justify-items: start;
  min-height: 100px;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  text-align: left;
}

.mini-result.active {
  background: var(--yellow);
}

.mini-result span {
  color: var(--purple);
  font-size: 12px;
}

.mini-result small {
  color: var(--muted);
}

.trait-insight-card h3,
.career-explorer-card h3,
.step-card h3 {
  margin: 14px 0 10px;
  font-size: 22px;
  line-height: 1.05;
}

.trait-insight-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 800;
}

.trait-quiz-card {
  position: relative;
  overflow: hidden;
  min-height: 245px;
  border-radius: 14px;
  padding: 15px;
  background:
    radial-gradient(circle at 94% 8%, rgba(255, 216, 61, 0.58) 0 12%, transparent 13%),
    linear-gradient(160deg, #fffdf4 0%, var(--trait-soft, #e8f8ff) 100%);
}

.trait-quiz-card::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -34px;
  width: 78px;
  height: 78px;
  border: 3px solid var(--outline);
  border-radius: 38% 62% 48% 52%;
  background: var(--trait-pop, var(--yellow));
  opacity: 0.55;
  transform: rotate(15deg);
}

.trait-quiz-card[data-trait="openness"],
.ocean-simple-card[data-trait="openness"] {
  --trait-soft: #eee8ff;
  --trait-pop: #bba8ff;
}

.trait-quiz-card[data-trait="conscientiousness"],
.ocean-simple-card[data-trait="conscientiousness"] {
  --trait-soft: #dff9e9;
  --trait-pop: #8ae7bd;
}

.trait-quiz-card[data-trait="extraversion"],
.ocean-simple-card[data-trait="extraversion"] {
  --trait-soft: #ffe5da;
  --trait-pop: #ff927b;
}

.trait-quiz-card[data-trait="agreeableness"],
.ocean-simple-card[data-trait="agreeableness"] {
  --trait-soft: #ffe3f1;
  --trait-pop: #ffabc9;
}

.trait-quiz-card[data-trait="neuroticism"],
.ocean-simple-card[data-trait="neuroticism"] {
  --trait-soft: #dff4ff;
  --trait-pop: #8ad5f8;
}

.trait-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.trait-letter {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 3px solid var(--outline);
  border-radius: 50%;
  background: var(--trait-pop, var(--yellow));
  font-size: 16px;
  font-weight: 1000;
  box-shadow: 3px 3px 0 var(--outline);
}

.trait-kicker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-bottom: 0;
  border: 3px solid var(--outline);
  border-radius: 999px;
  padding: 5px 8px;
  background: var(--trait-pop, var(--yellow));
  color: var(--ink);
  font-size: 10px;
  font-weight: 1000;
  box-shadow: 3px 3px 0 var(--outline);
}

.trait-quiz-card h3,
.trait-quiz-card p,
.trait-badge-row,
.trait-details {
  position: relative;
  z-index: 1;
}

.trait-quiz-card h3 {
  margin-top: 10px;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 0.96;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.trait-quiz-card > p:not(.trait-kicker) {
  max-width: 58ch;
  font-size: 13px;
  line-height: 1.4;
}

.trait-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 6px;
}

.trait-badge-row span {
  border: 2px solid var(--outline);
  border-radius: 999px;
  padding: 5px 8px;
  background: var(--paper);
  font-size: 10px;
  font-weight: 1000;
  box-shadow: 2px 2px 0 var(--outline);
}

.trait-details {
  margin-top: 10px;
  border: 2px solid var(--outline);
  border-radius: 10px;
  padding: 8px;
  background: rgba(255, 253, 244, 0.9);
}

.trait-details summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 1000;
}

.trait-details[open] summary {
  margin-bottom: 10px;
}

.explorer-icon,
.icon-bubble {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 3px solid var(--outline);
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 4px 4px 0 var(--outline);
  font-weight: 1000;
}

.career-explorer-card {
  position: relative;
  min-height: 320px;
  border-width: 3px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  perspective: 1400px;
}

.career-explorer-card:focus-visible .career-card-face {
  outline: 4px solid var(--yellow);
  outline-offset: 4px;
}

.career-card-inner {
  position: relative;
  width: 100%;
  min-height: 320px;
  transition: transform 1600ms cubic-bezier(.22, 1, .36, 1);
  transform-style: preserve-3d;
  will-change: transform;
}

.career-explorer-card.flipped .career-card-inner {
  transform: rotateY(180deg);
}

.career-card-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-height: 320px;
  border: 3px solid var(--outline);
  border-radius: 8px;
  padding: 20px;
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--outline);
  backface-visibility: hidden;
  transition: box-shadow 450ms ease, transform 450ms ease;
}

.career-card-front {
  justify-content: space-between;
}

.career-card-back {
  transform: rotateY(180deg);
  background:
    radial-gradient(circle at 94% 12%, rgba(66, 230, 164, 0.28) 0 15%, transparent 16%),
    #fffdf4;
}

.explorer-card-header {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
}

.explorer-card-header.compact {
  grid-template-columns: 44px minmax(0, 1fr);
}

.explorer-card-header.compact .explorer-icon {
  width: 44px;
  height: 44px;
  font-size: 12px;
}

.explorer-card-header h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.08;
}

.career-explorer-card .explorer-copy {
  margin: 0;
  min-height: 70px;
  font-size: 15px;
  font-weight: 820;
  line-height: 1.5;
}

.explorer-section {
  display: grid;
  gap: 8px;
}

.explorer-section strong {
  display: block;
  color: #272338;
  font-size: 13px;
  font-weight: 1000;
  text-transform: uppercase;
}

.career-trait-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.career-trait-tags .chip {
  padding: 6px 9px;
  font-size: 11px;
  box-shadow: 2px 2px 0 var(--outline);
}

.onet-skill-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.onet-skill-list li {
  border-left: 5px solid var(--mint);
  border-radius: 6px;
  padding: 7px 9px;
  background: #f4fff9;
  color: #302d44;
  font-size: 13px;
  font-weight: 900;
}

.career-test-now-wrap {
  display: grid;
  margin: clamp(28px, 4vw, 54px) 0 8px;
  padding: 12px;
  place-items: center;
}

.career-test-now-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  border: 3px solid var(--outline);
  border-radius: 20px 28px 18px 26px;
  padding: 13px 24px;
  background: #ddf7ff;
  color: var(--ink);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 1000;
  box-shadow: 8px 9px 0 rgba(92, 88, 112, 0.22), 11px 12px 0 rgba(92, 88, 112, 0.12);
  rotate: -2deg;
  transition: rotate 150ms ease, transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.career-test-now-button span:last-child {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 2px solid var(--outline);
  border-radius: 50%;
  background: #c8ff4d;
  font-size: 17px;
}

.career-test-now-button:hover,
.career-test-now-button:focus-visible {
  background: #c8f0ff;
  box-shadow: 5px 6px 0 rgba(92, 88, 112, 0.22), 8px 9px 0 rgba(92, 88, 112, 0.12);
  rotate: 2deg;
  transform: translate(3px, 3px);
}

.career-test-now-button:focus-visible {
  outline: 4px solid rgba(48, 183, 255, 0.35);
  outline-offset: 5px;
}

.about-hero {
  display: grid;
  gap: 22px;
  padding-top: 32px;
}

.about-heading h1 {
  max-width: 860px;
  font-size: clamp(25px, 2.9vw, 34px);
  line-height: 1.08;
}

.about-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 20px;
  background:
    radial-gradient(circle at 92% 12%, rgba(66, 230, 164, 0.35) 0 16%, transparent 17%),
    #fffdf4;
}

.about-story-copy h2,
.values-panel h2,
.analysis-section h2 {
  margin-bottom: 10px;
  font-size: clamp(22px, 2.7vw, 32px);
  line-height: 1;
}

.about-story-copy p:not(.eyebrow),
.values-list p,
.analysis-card p,
.about-card p {
  color: var(--muted);
  font-size: 14px;
  font-weight: 830;
}

.about-avatar-row {
  display: grid;
  grid-template-columns: repeat(5, 50px);
  gap: 8px;
}

.about-avatar-row img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(4px 5px 0 rgba(23, 21, 37, 0.16));
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.about-card,
.analysis-card {
  border-width: 3px;
}

.about-card {
  min-height: 190px;
  padding: 18px;
}

.about-card span,
.analysis-card strong {
  display: inline-flex;
  width: fit-content;
  border: 3px solid var(--outline);
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--outline);
  font-size: 12px;
  font-weight: 1000;
}

.about-card h3,
.analysis-card h3 {
  margin: 12px 0 7px;
  font-size: 21px;
  line-height: 1.05;
}

.analysis-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.analysis-card {
  display: grid;
  align-content: start;
  min-height: 205px;
  padding: 17px;
}

.analysis-card strong {
  background: var(--mint);
}

.values-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1fr);
  gap: 20px;
  padding: 20px;
  background:
    radial-gradient(circle at 8% 18%, rgba(255, 216, 61, 0.45) 0 18%, transparent 19%),
    linear-gradient(135deg, #fffdf4 0%, #e8f8ff 100%);
}

.values-list {
  display: grid;
  gap: 12px;
}

.values-list p {
  margin: 0;
  border-left: 5px solid var(--pink);
  border-radius: 6px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.7);
}

.trait-insight-avatar {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(5px 6px 0 rgba(23, 21, 37, 0.18));
}

.steps-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  overflow: visible;
}

.step-card {
  min-height: 220px;
}

.empty-state,
.error {
  color: var(--muted);
  font-weight: 850;
}

.error {
  color: #b52735;
}

.auth-page {
  background:
    radial-gradient(circle at 12% 16%, rgba(48, 183, 255, 0.3) 0 13%, transparent 14%),
    radial-gradient(circle at 84% 76%, rgba(66, 230, 164, 0.28) 0 16%, transparent 17%),
    #f4fbff;
  background-size: auto, auto, auto;
}

.auth-page .site-footer {
  display: none;
}

.auth-session-loading .auth-shell {
  visibility: hidden;
}

.profile-back-button {
  position: absolute;
  z-index: 12;
  top: clamp(126px, 7.5vw, 150px);
  left: clamp(24px, 7vw, 136px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 7px 16px 7px 12px;
  border: 3px solid var(--outline);
  border-radius: 999px;
  background: var(--paper);
  color: var(--outline);
  font-weight: 950;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--outline);
  transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.profile-back-button[hidden] {
  display: none;
}

.profile-back-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-back-button:hover,
.profile-back-button:focus-visible {
  background: var(--lime);
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--outline);
}

.profile-back-button:focus-visible {
  outline: 3px solid rgba(125, 92, 255, 0.38);
  outline-offset: 3px;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 660px);
  justify-content: center;
  justify-items: center;
  align-items: start;
  gap: 0;
  padding-top: 18px;
}

.auth-mascot-panel {
  display: grid;
  position: relative;
  z-index: 2;
  justify-items: center;
  width: 100%;
  min-height: 0;
  margin-bottom: -78px;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.auth-mascot-card {
  --eye-x: 0px;
  --eye-y: 0px;
  position: relative;
  width: clamp(170px, 20vw, 230px);
  aspect-ratio: 1;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: rotate(-1deg);
}

.auth-mascot-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.auth-mascot-card.is-picture-upload-enabled {
  cursor: pointer;
}

.auth-mascot-card.is-picture-upload-enabled:hover {
  filter: brightness(1.04);
}

.auth-mascot-card.is-picture-upload-enabled:focus-within {
  outline: none;
  filter: brightness(1.05);
}

.auth-mascot-upload-badge {
  position: absolute;
  z-index: 5;
  right: 8%;
  bottom: 13%;
  display: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 3px solid var(--outline);
  border-radius: 50%;
  background: var(--yellow);
  color: var(--outline);
  font-size: 24px;
  font-weight: 1000;
  line-height: 1;
  box-shadow: 2px 2px 0 var(--outline);
  pointer-events: none;
}

.auth-mascot-card.is-picture-upload-enabled .auth-mascot-upload-badge {
  display: grid;
}

.auth-mascot-card.has-profile-picture .auth-mascot-upload-badge {
  display: none;
}

.auth-mascot-card.has-profile-picture {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: rotate(-1deg);
}

.auth-mascot-card.has-profile-picture > img {
  position: absolute;
  top: 52%;
  left: 50%;
  width: 200px;
  height: 178px;
  border: 5px solid var(--outline);
  border-radius: 22%;
  object-fit: cover;
  transform: translate(-50%, -50%);
}

.auth-mascot-card.has-profile-picture .auth-eye,
.auth-mascot-card.has-profile-picture .auth-eye-cover {
  display: none;
}

.auth-mascot-photo-remove {
  position: absolute;
  z-index: 8;
  top: 40px;
  left: calc(50% + 72px);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 3px solid var(--outline);
  border-radius: 50%;
  padding: 0;
  background: var(--pink);
  color: var(--outline);
  font-size: 22px;
  font-weight: 1000;
  line-height: 1;
  cursor: pointer;
  box-shadow: 1px 1px 0 var(--outline);
}

.auth-mascot-photo-remove:hover,
.auth-mascot-photo-remove:focus-visible {
  transform: translate(2px, 2px);
  outline: none;
  box-shadow: none;
}

.auth-mascot-photo-remove[hidden] {
  display: none;
}

#profile-picture-upload {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.auth-eye {
  position: absolute;
  z-index: 2;
  display: block;
  width: var(--left-eye-width, 22.5%);
  height: var(--left-eye-height, 27.5%);
  border: 0;
  border-radius: 50%;
  background: #fffdf4;
  overflow: hidden;
  pointer-events: none;
}

.auth-eye-left {
  top: var(--left-eye-top, 37%);
  left: var(--left-eye-left, 27.1%);
  transform: rotate(var(--left-eye-rotation, 14deg));
}

.auth-eye-right {
  top: var(--right-eye-top, 33.4%);
  left: var(--right-eye-left, 50.4%);
  width: var(--right-eye-width, var(--left-eye-width, 22.5%));
  height: var(--right-eye-height, var(--left-eye-height, 27.5%));
  transform: rotate(var(--right-eye-rotation, var(--left-eye-rotation, 14deg)));
}

.auth-eye span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42%;
  height: 42%;
  border-radius: 50%;
  background: #050505;
  transform: translate(calc(-50% + var(--eye-x)), calc(-50% + var(--eye-y)));
  transition: transform 130ms ease;
}

.auth-eye-cover {
  position: absolute;
  z-index: 3;
  display: block;
  width: var(--cover-width, 23%);
  height: var(--cover-height, 25%);
  border: 3px solid var(--outline);
  border-radius: 999px 999px 12px 12px;
  background: var(--auth-cover-color, #b9a7ff);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-18px) scaleY(0.2);
  transform-origin: top center;
  transition: opacity 170ms ease, transform 170ms ease;
}

.auth-cover-left {
  top: var(--left-cover-top, 36.6%);
  left: var(--left-cover-left, 26.9%);
  width: var(--left-cover-width, var(--left-eye-width, 22.5%));
  height: var(--left-cover-height, var(--left-eye-height, 27.5%));
  transform: rotate(var(--left-cover-rotation, var(--left-eye-rotation, 14deg))) translateY(-18px) scaleY(0.2);
}

.auth-cover-right {
  top: var(--right-cover-top, 33%);
  left: var(--right-cover-left, 50.2%);
  width: var(--right-cover-width, var(--right-eye-width, var(--left-eye-width, 22.5%)));
  height: var(--right-cover-height, var(--right-eye-height, var(--left-eye-height, 27.5%)));
  transform: rotate(var(--right-cover-rotation, var(--right-eye-rotation, var(--left-eye-rotation, 14deg)))) translateY(-18px) scaleY(0.2);
}

.auth-mascot-panel.is-password .auth-eye span {
  transform: translate(-50%, 20%) scaleY(0.18);
}

.auth-mascot-panel.is-password .auth-eye-cover {
  opacity: 1;
}

.auth-mascot-panel.is-password .auth-cover-left {
  transform: rotate(var(--left-cover-rotation, var(--left-eye-rotation, 14deg))) translateY(0) scaleY(1);
}

.auth-mascot-panel.is-password .auth-cover-right {
  transform: rotate(var(--right-cover-rotation, var(--right-eye-rotation, var(--left-eye-rotation, 14deg)))) translateY(0) scaleY(1);
}

.auth-form {
  display: grid;
  align-content: start;
  gap: 16px;
  width: 100%;
  min-height: 0;
  padding: 96px 24px 22px;
  background: rgba(255, 253, 244, 0.96);
}

.auth-form-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.auth-form-header h2 {
  margin-bottom: 0;
  font-size: clamp(27px, 3.2vw, 38px);
  line-height: 0.95;
  text-transform: uppercase;
}

.auth-mode-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(82px, 1fr));
  flex: 0 0 auto;
  border: 3px solid var(--outline);
  border-radius: 999px;
  padding: 4px;
  background: #fff;
  box-shadow: 4px 4px 0 var(--outline);
}

.auth-mode-button {
  min-height: 34px;
  border-radius: 999px;
  padding: 6px 11px;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 1000;
  cursor: pointer;
}

.auth-mode-button.active {
  background: var(--yellow);
}

.auth-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field-control {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.field-control > span,
.field-control > label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 1000;
}

.field-control small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.field-control input,
.field-control select {
  width: 100%;
  min-height: 46px;
  border: 3px solid var(--outline);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  box-shadow: 3px 3px 0 rgba(23, 21, 37, 0.16);
  font-size: 14px;
  font-weight: 850;
  outline: none;
}

.field-control input:focus,
.field-control select:focus {
  background: #e8f8ff;
  box-shadow: 4px 4px 0 var(--outline);
}

.field-control input::placeholder {
  color: #8d879f;
}

.password-control {
  position: relative;
}

.password-control input {
  padding-right: 50px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 7px;
  padding: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transform: translateY(-50%);
}

.password-toggle:hover {
  color: var(--ink);
}

.password-toggle:focus-visible {
  color: var(--ink);
  outline: none;
  transform: translateY(-50%) scale(1.08);
}

.password-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.password-icon-show,
.password-toggle[aria-pressed="true"] .password-icon-hide {
  display: none;
}

.password-toggle[aria-pressed="true"] .password-icon-show {
  display: block;
}

.consent-box {
  display: grid;
  gap: 10px;
  margin: 0;
  border: 3px solid var(--outline);
  border-radius: 8px;
  padding: 14px;
  background: #f8ffe4;
}

.consent-box legend {
  padding: 0 8px;
  font-size: 13px;
  font-weight: 1000;
}

.consent-option {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
}

.consent-option input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--purple);
}

.auth-form-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
}

.auth-form-status[data-tone="error"] {
  color: #b52735;
}

.auth-form-status[data-tone="success"] {
  color: #246b45;
}

.auth-submit-button {
  width: 100%;
  min-height: 48px;
  background: var(--pink);
}

@media (max-width: 980px) {
  .home-demo-showcase,
  .hero-section,
  .results-dashboard,
  .dashboard-grid,
  .result-hero,
  .recommendation-layout,
  .career-overview-card,
  .career-insight-grid,
  .career-card-grid,
  .career-quick-grid,
  .explain-grid,
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-mascot-panel,
  .auth-form {
    min-height: auto;
  }

  .recommendation-layout {
    grid-template-areas:
      "ranks"
      "detail";
  }

  .result-snapshot,
  .dashboard-grid {
    grid-column: 1 / -1;
  }

  .career-rank-list {
    grid-area: ranks;
    position: static;
    max-height: none;
    overflow: visible;
  }

  .career-fit-tablist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .career-fit-panel-layout,
  .career-tab-section-grid {
    grid-template-columns: 1fr;
  }

  .career-fit-visual {
    min-height: 116px;
  }

  .career-prep-action {
    justify-self: stretch;
  }

  .career-prep-heading strong {
    font-size: 18px;
  }

  .career-prep-timeline {
    padding-left: 58px;
  }

  .career-prep-timeline::before {
    left: 29px;
  }

  .career-prep-step-number {
    left: -58px;
    width: 40px;
    height: 40px;
    font-size: 15px;
  }

  .career-prep-step-card {
    padding: 15px;
  }

  .career-prep-step-body {
    padding-left: 49px;
  }

  .career-overview-card {
    align-items: start;
  }

  .career-overview-card .career-radar-card--overview {
    border-left: 0;
    border-top: 2px solid rgba(20, 18, 35, 0.16);
    padding: 16px 0 0;
  }

  .career-score-panel {
    padding-left: 0;
    border-left: 0;
    border-top: 2px solid rgba(20, 18, 35, 0.16);
    padding-top: 14px;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-visual {
    min-height: 410px;
  }

  .mascot-stage {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }

  .result-actions {
    grid-template-columns: repeat(3, max-content);
    justify-content: flex-start;
    max-width: none;
  }

  .result-hero .primary-action {
    grid-column: auto;
    justify-self: start;
  }

  .trait-insight-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ocean-simple-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-story,
  .values-panel {
    grid-template-columns: 1fr;
  }

  .about-grid,
  .analysis-flow,
  .home-connection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .likert-grid {
    grid-template-columns: 1fr;
  }

  .section-likert-row {
    grid-template-columns: 72px repeat(5, minmax(64px, 1fr)) 72px;
    gap: 0;
  }

  .likert-option {
    width: 100%;
    height: 72px;
  }
}

@media (max-width: 720px) {
  body {
    cursor: auto;
  }

  .ocean-comparison-table th,
  .ocean-comparison-table td {
    padding: 7px 5px;
    font-size: 11px;
  }

  .comparison-meter {
    display: block;
    width: 100%;
    max-width: 82px;
    margin-right: 0;
    margin-bottom: 4px;
  }

  .cursor-follower,
  .soft-shape {
    display: none;
  }

  .profile-back-button {
    position: relative;
    top: auto;
    left: auto;
    z-index: 12;
    margin: 2px 12px -22px;
  }

  .site-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav nav {
    justify-content: flex-start;
  }

  .auth-form-header {
    display: grid;
  }

  .auth-fields {
    grid-template-columns: 1fr;
  }

  .home-demo-showcase {
    min-height: 0;
  }

  .home-demo-content {
    padding: clamp(34px, 7vw, 52px);
  }

  .home-demo-frame {
    min-height: 420px;
  }

  .auth-mode-toggle {
    width: 100%;
  }

  .auth-mascot-panel,
  .auth-form {
    padding: 18px;
  }

  .entry-access-overlay {
    padding: 18px;
  }

  .entry-access-card {
    min-height: auto;
    padding: 52px 24px 34px;
    border-radius: 28px;
    transform: rotate(-2deg);
  }

  .entry-access-card::after {
    inset: 10px -8px -8px 10px;
    border-radius: 24px;
  }

  .entry-access-close {
    top: 14px;
    right: 18px;
  }

  .entry-access-card h2 {
    font-size: 23px;
  }

  .entry-access-card p {
    margin-bottom: 26px;
    font-size: 15px;
  }

  .entry-access-actions {
    width: 100%;
    gap: 8px;
  }

  .entry-access-primary,
  .entry-access-secondary {
    width: 100%;
    min-height: 48px;
    font-size: 16px;
  }

  .auth-mascot-panel {
    margin-bottom: -72px;
    padding: 0;
  }

  .auth-form {
    padding-top: 96px;
  }

  .section-band {
    width: calc(100% - 24px);
    padding: 42px 0;
  }

  .results-dashboard,
  .score-panel {
    scroll-margin-top: 24px;
  }

  .hero-copy h1,
  .section-heading h1 {
    font-size: 27px;
  }

  .test-section .section-heading h1,
  .about-heading h1 {
    font-size: 25px;
  }

  .section-heading h2,
  .result-hero h2 {
    font-size: 29px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .hero-visual {
    min-height: 350px;
  }

  .mascot-stage {
    top: 8px;
    width: calc(100% - 12px);
    min-height: 320px;
  }

  .avatar-squad {
    grid-template-columns: repeat(6, 34px);
    grid-template-rows: repeat(2, 62px);
    width: min(260px, 86%);
    margin-bottom: 72px;
  }

  .avatar-squad img {
    width: 78px;
    height: 78px;
  }

  .mascot-speech {
    right: 12px;
    bottom: 14px;
    max-width: 190px;
  }

  .floating-badge {
    font-size: 12px;
    padding: 8px 10px;
  }

  .badge-one {
    top: 18px;
    right: auto;
    left: 0;
  }

  .badge-two {
    right: auto;
    left: 16px;
    bottom: 64px;
  }

  .badge-three,
  .badge-four {
    display: none;
  }

  .quiz-mascot {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: flex-start;
    border-radius: 16px;
    padding: 12px 14px;
  }

  .quiz-progress-scene {
    grid-column: 1 / -1;
    min-height: 62px;
    padding: 15px 24px 9px 10px;
  }

  .mini-avatar-stack img {
    width: 40px;
    height: 40px;
    margin-right: -10px;
  }

  .quiz-mascot-copy strong {
    font-size: 16px;
  }

  .quiz-mascot-copy span {
    font-size: 13px;
  }

  .question-card {
    padding: 13px;
  }

  .question-card h2 {
    font-size: 21px;
  }

  .trait-quiz-card {
    padding: 16px;
    min-height: auto;
  }

  .trait-quiz-card h3 {
    font-size: clamp(22px, 8vw, 30px);
  }

  .ocean-physics-stage {
    height: 126px;
    margin-top: 10px;
  }

  .ocean-physics-stage::before {
    inset-right: 0;
    inset-left: 0;
  }

  .ocean-physics-letter {
    left: calc(50% + (var(--slot) * clamp(44px, 13vw, 52px)));
    width: clamp(46px, 12vw, 54px);
    height: clamp(46px, 12vw, 54px);
    border-width: 3px;
    box-shadow: 4px 4px 0 var(--outline);
    font-size: clamp(18px, 5vw, 23px);
  }

  .ocean-simple-list {
    grid-template-columns: 1fr;
  }

  .ocean-simple-card {
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: center;
    min-height: auto;
    padding: 14px;
  }

  .ocean-simple-top {
    display: grid;
    justify-items: center;
    gap: 8px;
  }

  .ocean-simple-letter,
  .ocean-simple-avatar {
    width: 50px;
    height: 50px;
  }

  .ocean-simple-card h2,
  .ocean-simple-card > p {
    grid-column: 2;
  }

  .ocean-simple-card h2 {
    font-size: 22px;
  }

  .section-question {
    min-width: 0;
    max-width: 100%;
    padding: 10px 4px 12px;
  }

  .section-likert-row {
    width: 100%;
    max-width: 100%;
    grid-template-columns: 34px repeat(5, minmax(36px, 1fr)) 42px;
    gap: 0;
    margin-right: 0;
    overflow-x: visible;
  }

  .likert-option {
    width: 100%;
    height: 72px;
  }

  .likert-label {
    max-width: 62px;
    padding: 5px 4px;
    font-size: 9px;
  }

  .scale-end {
    font-size: 10px;
  }

  .result-header,
  .career-title-wrap {
    align-items: flex-start;
  }

  .steps-track {
    grid-template-columns: 1fr;
  }

  .about-heading h1 {
    font-size: 32px;
  }

  .about-grid,
  .analysis-flow,
  .home-connection-grid {
    grid-template-columns: 1fr;
  }

  .about-story,
  .values-panel {
    padding: 16px;
  }

  .home-demo-showcase {
    border-radius: 18px;
  }

  .home-demo-content {
    padding: 34px 22px;
  }

  .home-demo-content h2 {
    font-size: clamp(32px, 11vw, 44px);
  }

  .home-demo-description {
    margin-top: 20px;
    font-size: 14px;
  }

  .home-demo-actions {
    flex-wrap: wrap;
    margin-top: 22px;
  }

  .home-demo-features {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 36px;
  }

  .home-demo-features article,
  .home-demo-features article:first-child {
    min-height: 0;
    padding: 18px 0 0;
    border-top: 1px solid rgba(23, 21, 37, 0.15);
    border-left: 0;
  }

  .home-demo-features article:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .home-demo-frame {
    min-height: 300px;
  }

  .about-avatar-row {
    grid-template-columns: repeat(5, minmax(34px, 1fr));
  }

  .about-avatar-row img {
    width: 48px;
    height: 48px;
  }

  .score-summary {
    grid-template-columns: 1fr;
  }

  .score-card {
    min-height: 128px;
  }

  .score-card-main {
    grid-template-columns: 44px minmax(0, 1fr) 54px;
    gap: 9px;
  }

  .trait-avatar {
    width: 44px;
    height: 44px;
  }

  .score-ring {
    width: 54px;
    height: 54px;
  }

  .compact-panel-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .score-meter-head {
    grid-template-columns: 40px minmax(0, 1fr) auto;
  }

  .career-radar-card {
    grid-template-columns: 1fr;
  }

  .career-fit-tablist {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .career-fit-tab {
    justify-content: flex-start;
    min-height: 48px;
    padding: 10px 14px;
    text-align: left;
  }

  .career-fit-tab::after {
    top: 0;
    right: auto;
    bottom: 0;
    width: 4px;
    height: auto;
    border-radius: 0 999px 999px 0;
  }

  .career-fit-tab-panels {
    padding: 14px;
  }

  .career-prep-strip {
    padding: 15px;
  }

  .career-prep-heading {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 11px;
  }

  .career-prep-heading-icon {
    width: 36px;
    height: 36px;
  }

  .career-prep-heading-icon .iconsax-animated-icon {
    width: 22px;
    height: 22px;
  }

  .career-prep-heading strong {
    font-size: 17px;
  }

  .career-prep-heading p {
    font-size: 13px;
  }

  .career-prep-timeline {
    gap: 12px;
    padding-left: 0;
  }

  .career-prep-timeline::before {
    display: none;
  }

  .career-prep-step-number {
    position: static;
    margin-bottom: 8px;
    width: 40px;
    height: 40px;
    font-size: 15px;
  }

  .career-prep-step-head {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 11px;
  }

  .prep-step-icon {
    width: 36px;
    height: 36px;
  }

  .prep-step-icon .iconsax-animated-icon {
    width: 21px;
    height: 21px;
  }

  .career-prep-step-head strong {
    font-size: 15px;
  }

  .career-prep-step-body {
    padding-left: 0;
  }

  .prep-course-grid,
  .prep-ability-grid {
    grid-template-columns: 1fr;
  }

  .career-prep-action {
    min-height: 44px;
    font-size: 14px;
  }

  .career-score-panel .career-metric-row {
    grid-template-columns: 1fr;
  }

  .trait-contribution-card {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .trait-contribution-card small {
    grid-column: 2;
    justify-self: start;
  }

  .trait-contribution-panel {
    min-height: auto;
  }

  .career-detail-accordion {
    grid-template-columns: 1fr;
  }

  .result-header {
    flex-direction: column;
  }

  .match-score {
    justify-items: start;
  }

  .simple-match-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .simple-match-top > strong {
    width: fit-content;
  }

  .trait-row,
  .contribution-row,
  .shap-chart-row,
  .waterfall-step {
    grid-template-columns: 1fr;
  }

  .waterfall-step.baseline,
  .waterfall-step.final {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .quiz-actions,
  .result-actions {
    display: grid;
  }

  .result-actions {
    grid-template-columns: repeat(3, max-content);
  }

  .result-hero .primary-action,
  .result-hero .secondary-action {
    min-height: 40px;
    padding: 9px 12px;
    font-size: 13px;
  }

  .primary-action,
  .secondary-action,
  .compare-button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .hero-copy h1,
  .section-heading h1 {
    font-size: 25px;
  }

  .test-section .section-heading h1,
  .about-heading h1 {
    font-size: 23px;
  }

  .score-card {
    padding: 12px;
  }

  .score-card-main {
    grid-template-columns: 40px minmax(0, 1fr) 50px;
    gap: 9px;
  }

  .score-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .trait-avatar {
    width: 40px;
    height: 40px;
  }

  .score-ring {
    width: 50px;
    height: 50px;
  }

  .score-ring span {
    font-size: 13px;
  }

  .quiz-status {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Connected account, language, and local AI controls ------------------- */
.language-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 3px solid var(--outline);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--outline);
  overflow: hidden;
}

.language-control-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  min-height: 33px;
  border-right: 2px solid var(--outline);
  background: var(--lime);
  color: var(--ink);
  font-size: 12px;
  font-weight: 1000;
  pointer-events: none;
}

.language-select {
  width: 112px;
  min-height: 33px;
  border: 0;
  padding: 0 26px 0 9px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  outline: none;
}

.language-control:focus-within {
  background: var(--yellow);
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--outline);
}

.language-control:focus-within .language-select {
  background: var(--yellow);
}

.profile-icon-button.is-signed-in {
  border-radius: 50%;
  background: var(--mint);
  color: var(--ink);
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--outline);
}

.auth-signout-button {
  width: 100%;
  min-height: 48px;
  margin-top: -6px;
}

.auth-page.is-authenticated .auth-form {
  max-width: 760px;
}

.auth-page.is-authenticated .auth-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-page.is-authenticated .field-control input[readonly] {
  background: rgba(23, 21, 37, 0.07);
  color: var(--muted);
  cursor: not-allowed;
}

.local-assistant {
  position: fixed;
  right: clamp(16px, 2.4vw, 34px);
  bottom: clamp(16px, 2.4vw, 30px);
  z-index: 85;
  display: grid;
  justify-items: end;
  gap: 12px;
  pointer-events: none;
}

.local-assistant > * {
  pointer-events: auto;
}

.local-assistant-launcher {
  position: relative;
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 0;
  min-height: 58px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: transparent;
  color: #fff;
  box-shadow: none;
  cursor: pointer;
  transition: transform 150ms ease;
}

.local-assistant-launcher:hover,
.local-assistant-launcher:focus-visible {
  transform: translateY(-2px);
  box-shadow: none;
  outline: none;
}

.local-assistant-logo {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-left: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
}

.local-assistant-logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.local-assistant-dialog {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: min(245px, calc(100vw - 92px));
  min-height: 64px;
  margin-right: 12px;
  border: 1px solid rgba(82, 65, 126, 0.13);
  border-radius: 18px 18px 7px 18px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 11px 28px rgba(58, 44, 96, 0.14);
  backdrop-filter: blur(12px);
  transition: background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.local-assistant-dialog::before {
  content: "";
  position: absolute;
  right: -7px;
  bottom: 10px;
  width: 14px;
  height: 14px;
  border-right: 1px solid rgba(82, 65, 126, 0.13);
  border-bottom: 1px solid rgba(82, 65, 126, 0.13);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.96);
  transform: rotate(-45deg);
}

.local-assistant-launcher:hover .local-assistant-dialog,
.local-assistant-launcher:focus-visible .local-assistant-dialog {
  background: #f4f0ff;
  box-shadow: 0 14px 34px rgba(76, 56, 132, 0.2);
  transform: translateY(-1px);
}

.local-assistant-launcher:hover .local-assistant-dialog::before,
.local-assistant-launcher:focus-visible .local-assistant-dialog::before {
  background: #f4f0ff;
}

.local-assistant-dialog strong {
  position: relative;
  z-index: 1;
  color: var(--purple);
  font-size: 12px;
  font-weight: 950;
}

.local-assistant-dialog small {
  position: relative;
  z-index: 1;
  margin-top: 2px;
  color: #4f4960;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.3;
}

.local-assistant-panel {
  display: grid;
  grid-template-rows: auto minmax(170px, 1fr) auto auto;
  width: min(390px, calc(100vw - 32px));
  max-height: min(610px, calc(100vh - 100px));
  overflow: hidden;
  border: 3px solid var(--outline);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 9px 10px 0 rgba(23, 21, 37, 0.2), 0 24px 60px rgba(23, 21, 37, 0.2);
}

.local-assistant-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-bottom: 2px solid var(--outline);
  background: linear-gradient(135deg, #f0eaff, #e5f8ff);
}

.local-assistant-header > div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 3px 8px;
}

.local-assistant-header strong {
  color: var(--ink);
  font-size: 15px;
}

.local-assistant-header small {
  grid-column: 2;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.local-assistant-status-dot {
  grid-row: 1 / span 2;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(66, 230, 164, 0.18);
}

.local-assistant-close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid var(--outline);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.local-assistant-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 190px;
  padding: 16px;
  overflow-y: auto;
  background: #fffdf7;
}

.local-assistant-message {
  display: flex;
}

.local-assistant-message.user {
  justify-content: flex-end;
}

.local-assistant-message p {
  max-width: 86%;
  margin: 0;
  border: 2px solid var(--outline);
  border-radius: 16px 16px 16px 4px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.local-assistant-message.assistant p {
  white-space: pre-line;
}

.local-assistant-message.user p {
  border-radius: 16px 16px 4px 16px;
  background: var(--purple);
  color: #fff;
}

.local-assistant-message.is-pending p {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-style: italic;
}

.local-assistant-thinking-orb {
  display: grid;
  flex: 0 0 28px;
  place-items: center;
  width: 28px;
  height: 28px;
}

.local-assistant-thinking-orb canvas {
  display: block;
}

.local-assistant-message.is-error p {
  background: #ffe7e7;
  color: #8a2431;
}

.local-assistant-suggestions {
  display: grid;
  gap: 7px;
  padding-top: 2px;
}

.local-assistant-suggestions-title {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.local-assistant-suggestion-buttons {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  gap: 7px;
}

.local-assistant-suggestion {
  max-width: 100%;
  min-height: 42px;
  border: 2px solid var(--purple);
  border-radius: 12px;
  padding: 8px 9px;
  background: #f4f0ff;
  color: #3f2a91;
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.local-assistant-suggestion:hover,
.local-assistant-suggestion:focus-visible {
  background: var(--purple);
  color: #fff;
  transform: translateY(-1px);
}

.local-assistant-suggestion:focus-visible {
  outline: 3px solid rgba(125, 92, 255, 0.2);
  outline-offset: 2px;
}

.local-assistant-notice {
  margin: 0;
  padding: 8px 16px;
  border-top: 1px solid rgba(23, 21, 37, 0.12);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.local-assistant-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 12px;
  border-top: 2px solid var(--outline);
  background: #fff;
}

.local-assistant-form input {
  min-width: 0;
  border: 2px solid var(--outline);
  border-radius: 13px;
  padding: 11px 12px;
  background: #fffef8;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  outline: none;
}

.local-assistant-form input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(125, 92, 255, 0.14);
}

.local-assistant-form button {
  border-radius: 12px;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.local-assistant-form button:disabled {
  opacity: 0.55;
  cursor: wait;
}

@media (max-width: 720px) {
  .language-control {
    order: 2;
  }

  .language-select {
    width: 102px;
  }

  .auth-page.is-authenticated .auth-fields {
    grid-template-columns: 1fr;
  }

  .local-assistant {
    right: 12px;
    bottom: 12px;
  }

  .local-assistant-panel {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 88px);
  }

  .local-assistant-launcher {
    transform: scale(0.94);
    transform-origin: right bottom;
  }

  .local-assistant-launcher:hover,
  .local-assistant-launcher:focus-visible {
    transform: translateY(-2px) scale(0.94);
  }
}

/* Signed-in profile dashboard ----------------------------------------- */
.dashboard-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 18%, rgba(185, 167, 255, 0.28) 0 13%, transparent 14%),
    radial-gradient(circle at 88% 72%, rgba(66, 230, 164, 0.2) 0 16%, transparent 17%),
    linear-gradient(145deg, #f8f6ff 0%, #eef9ff 48%, #fff9ef 100%);
}

.account-dashboard {
  display: grid;
  gap: 22px;
  padding-top: 30px;
}

.dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid rgba(23, 21, 37, 0.08);
  border-radius: 30px;
  padding: clamp(22px, 4vw, 38px);
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 216, 61, 0.6) 0 12%, transparent 13%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 233, 255, 0.94));
  box-shadow: 0 20px 55px rgba(75, 57, 126, 0.11);
}

.dashboard-identity {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.dashboard-identity .eyebrow {
  margin-bottom: 8px;
  border: 0;
  background: rgba(214, 255, 116, 0.9);
  box-shadow: none;
}

.dashboard-identity h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 0.98;
  text-transform: none;
  text-wrap: balance;
}

.dashboard-identity h1 strong {
  color: var(--purple);
}

.dashboard-email {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.dashboard-actions .primary-action,
.dashboard-actions .secondary-action {
  border-width: 0;
  box-shadow: 0 9px 18px rgba(23, 21, 37, 0.12);
}

.dashboard-actions .primary-action {
  background: var(--ink);
  color: #fff;
}

.dashboard-actions .secondary-action {
  background: #fff;
}

.dashboard-signout {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.dashboard-signout:hover,
.dashboard-signout:focus-visible {
  background: rgba(255, 95, 162, 0.12);
  color: #8b2852;
  outline: none;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr 0.8fr;
  gap: 15px;
}

.dashboard-stat {
  display: grid;
  align-content: start;
  min-width: 0;
  min-height: 145px;
  border-radius: 24px;
  padding: 21px;
  box-shadow: 0 14px 32px rgba(54, 45, 91, 0.09);
}

.dashboard-stat-tests {
  background: linear-gradient(145deg, #dffff0, #c9f5e2);
}

.dashboard-stat-career {
  background: linear-gradient(145deg, #ede7ff, #ded4ff);
}

.dashboard-stat-match {
  background: linear-gradient(145deg, #fff2c4, #ffe5a2);
}

.dashboard-stat > span {
  color: rgba(23, 21, 37, 0.66);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.dashboard-stat > strong {
  margin: 12px 0 6px;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: clamp(25px, 3vw, 38px);
  line-height: 0.98;
}

.dashboard-stat-career > strong {
  font-size: clamp(21px, 2.5vw, 31px);
}

.dashboard-stat > small {
  margin-top: auto;
  color: rgba(23, 21, 37, 0.56);
  font-size: 11px;
  font-weight: 800;
}

.dashboard-history-panel {
  border: 1px solid rgba(23, 21, 37, 0.08);
  border-radius: 30px;
  padding: clamp(20px, 3vw, 32px);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 22px 60px rgba(54, 45, 91, 0.1);
  backdrop-filter: blur(15px);
}

.dashboard-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 20px;
}

.dashboard-section-heading .eyebrow {
  margin-bottom: 7px;
  border: 0;
  background: #e8f8ff;
  box-shadow: none;
}

.dashboard-section-heading h2 {
  margin: 0 0 7px;
  font-size: clamp(24px, 3vw, 34px);
}

.dashboard-section-heading p:not(.eyebrow) {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.dashboard-test-link {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 11px 15px;
  background: #f0eaff;
  color: var(--purple);
  font-size: 12px;
  font-weight: 950;
}

.dashboard-test-link:hover,
.dashboard-test-link:focus-visible {
  background: var(--purple);
  color: #fff;
  outline: none;
}

.dashboard-history-status {
  margin: 8px 0 0;
  border-radius: 14px;
  padding: 14px;
  background: #eef8ff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.dashboard-history-status[data-tone="error"] {
  background: #ffe9ec;
  color: #9b3042;
}

.dashboard-result-history {
  display: grid;
  gap: 10px;
}

.dashboard-history-card {
  display: grid;
  grid-template-columns: 46px minmax(220px, 1fr) 90px auto;
  align-items: center;
  gap: 16px;
  border-radius: 18px;
  padding: 14px 15px;
  background: #fbfaff;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.dashboard-history-card:hover {
  background: #f6f1ff;
  box-shadow: 0 11px 25px rgba(94, 70, 155, 0.09);
  transform: translateY(-2px);
}

.dashboard-history-index {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #fff;
  color: var(--purple);
  font-size: 13px;
  font-weight: 1000;
  box-shadow: 0 7px 15px rgba(83, 63, 132, 0.1);
}

.dashboard-history-main {
  min-width: 0;
}

.dashboard-history-main time {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.dashboard-history-main h3 {
  margin: 4px 0 8px;
  overflow: hidden;
  font-size: 18px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-trait-minis {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.dashboard-trait-mini {
  display: grid;
  grid-template-columns: 13px 36px;
  align-items: center;
  gap: 3px;
}

.dashboard-trait-mini b {
  color: var(--muted);
  font-size: 9px;
}

.dashboard-trait-mini i {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: rgba(23, 21, 37, 0.1);
  overflow: hidden;
}

.dashboard-trait-mini i span {
  display: block;
  width: var(--trait-width);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--purple));
}

.dashboard-history-match {
  display: grid;
  justify-items: center;
  gap: 2px;
}

.dashboard-history-match strong {
  color: var(--purple);
  font-size: 22px;
}

.dashboard-history-match span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-open-result {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  border: 0;
  border-radius: 13px;
  padding: 9px 13px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.dashboard-open-result:hover,
.dashboard-open-result:focus-visible {
  background: var(--purple);
  outline: none;
}

.dashboard-open-result:disabled {
  opacity: 0.55;
  cursor: wait;
}

.dashboard-empty-history,
.dashboard-guard-card {
  display: grid;
  justify-items: center;
  border-radius: 24px;
  padding: clamp(28px, 6vw, 56px) 20px;
  background: linear-gradient(145deg, #f2eeff, #eafaff);
  text-align: center;
}

.dashboard-empty-history > span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 14px;
  font-weight: 1000;
  transform: rotate(-5deg);
}

.dashboard-empty-history h3,
.dashboard-guard-card h1 {
  margin: 16px 0 8px;
  font-size: clamp(22px, 3vw, 32px);
}

.dashboard-empty-history p,
.dashboard-guard-card > p:not(.eyebrow) {
  max-width: 520px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.5;
}

.dashboard-auth-guard {
  display: grid;
  min-height: calc(100vh - 90px);
  place-items: center;
}

.dashboard-guard-card {
  width: min(620px, 100%);
  box-shadow: 0 25px 65px rgba(70, 50, 120, 0.13);
}

.dashboard-guard-icon {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 24px;
  background: linear-gradient(145deg, var(--pink), #ff9cc6);
  color: #fff;
  font-size: 30px;
  box-shadow: 0 14px 28px rgba(255, 95, 162, 0.22);
}

.result-save-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  margin-top: 12px !important;
  border-radius: 999px;
  padding: 7px 11px;
  background: #dffff0;
  color: #286344 !important;
  font-size: 11px !important;
  font-weight: 950;
}

.result-save-note[hidden] {
  display: none;
}

@media (max-width: 900px) {
  .dashboard-hero,
  .dashboard-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-actions {
    justify-content: flex-start;
  }

  .dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-stat-match {
    grid-column: span 2;
  }

  .dashboard-history-card {
    grid-template-columns: 46px minmax(0, 1fr) 76px;
  }

  .dashboard-open-result {
    grid-column: 2 / -1;
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .account-dashboard {
    gap: 14px;
    padding-top: 18px;
  }

  .dashboard-hero {
    border-radius: 22px;
    padding: 20px;
  }

  .dashboard-identity {
    align-items: flex-start;
  }

  .dashboard-identity h1 {
    font-size: 28px;
  }

  .dashboard-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .dashboard-actions .primary-action,
  .dashboard-actions .secondary-action {
    width: 100%;
  }

  .dashboard-signout {
    grid-column: span 2;
  }

  .dashboard-stats {
    grid-template-columns: 1fr;
  }

  .dashboard-stat,
  .dashboard-stat-match {
    grid-column: auto;
    min-height: 125px;
  }

  .dashboard-history-panel {
    border-radius: 22px;
    padding: 16px;
  }

  .dashboard-history-card {
    grid-template-columns: 38px minmax(0, 1fr) 66px;
    gap: 10px;
    padding: 12px 10px;
  }

  .dashboard-history-index {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .dashboard-history-main h3 {
    font-size: 16px;
  }

  .dashboard-trait-mini {
    grid-template-columns: 11px 25px;
  }

  .dashboard-open-result {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* Dashboard overview + history tabs --------------------------------- */
.dashboard-page {
  --dashboard-outline: #191724;
  background:
    radial-gradient(circle at 12% 16%, rgba(48, 183, 255, 0.3) 0 13%, transparent 14%),
    radial-gradient(circle at 84% 76%, rgba(66, 230, 164, 0.28) 0 16%, transparent 17%),
    #f4fbff;
  background-size: auto, auto, auto;
}

.account-dashboard {
  gap: 18px;
  padding-bottom: 70px;
}

.dashboard-hero {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.dashboard-actions .primary-action,
.dashboard-actions .secondary-action,
.dashboard-signout {
  border: 2px solid var(--dashboard-outline);
  min-height: 46px;
}

.dashboard-actions .primary-action,
.dashboard-actions .secondary-action {
  box-shadow: 3px 4px 0 rgba(25, 23, 36, 0.13);
}

.dashboard-signout {
  padding-inline: 17px;
  background: rgba(255, 255, 255, 0.68);
}

.dashboard-actions .dashboard-icon-action {
  width: 46px;
  height: 46px;
  min-height: 46px;
  border-radius: 50%;
  padding: 0;
}

.dashboard-actions .dashboard-icon-action .iconsax-animated-icon {
  width: 23px;
  height: 23px;
  stroke-width: 1.9;
}

.dashboard-tabs {
  display: flex;
  align-items: center;
  width: fit-content;
  border: 2px solid var(--dashboard-outline);
  border-radius: 18px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 4px 5px 0 rgba(25, 23, 36, 0.1);
}

.dashboard-tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  padding: 9px 17px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.dashboard-tab:hover,
.dashboard-tab:focus-visible {
  color: var(--ink);
  outline: none;
}

.dashboard-tab:focus-visible {
  box-shadow: inset 0 0 0 2px var(--purple);
}

.dashboard-tab.active {
  background: var(--dashboard-outline);
  color: #fff;
}

.dashboard-tab-icon {
  display: inline-grid;
  width: 19px;
  height: 19px;
  place-items: center;
}

.dashboard-tab-icon svg {
  width: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.dashboard-tab-icon rect {
  fill: currentColor;
  stroke: none;
}

.dashboard-tab-count {
  display: inline-grid;
  min-width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 999px;
  padding-inline: 6px;
  background: #e9e3ff;
  color: var(--purple);
  font-size: 10px;
}

.dashboard-tab.active .dashboard-tab-count {
  background: var(--lime);
  color: var(--ink);
}

.dashboard-tab-panel {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.dashboard-tab-panel[hidden] {
  display: none;
}

.dashboard-stats {
  grid-template-columns: 0.72fr 1.35fr 0.83fr;
}

.dashboard-stat {
  min-height: 152px;
  border: 2px solid var(--dashboard-outline);
  box-shadow: 5px 6px 0 rgba(25, 23, 36, 0.1);
}

.dashboard-stat-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dashboard-stat-heading > span:first-child {
  color: rgba(23, 21, 37, 0.68);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.dashboard-stat-symbol {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 2px solid var(--dashboard-outline);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 12px;
  font-weight: 1000;
}

.dashboard-insights-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 18px;
}

.dashboard-chart-card,
.dashboard-history-panel {
  min-width: 0;
  border: 2px solid var(--dashboard-outline);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 6px 7px 0 rgba(25, 23, 36, 0.09);
}

.dashboard-chart-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 390px;
  padding: clamp(20px, 2.5vw, 28px);
  overflow: hidden;
}

.dashboard-personality-card {
  background: linear-gradient(145deg, #fff, #f3efff);
}

.dashboard-trend-card {
  background: linear-gradient(145deg, #fffdf8, #fff4d3);
}

.dashboard-chart-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.dashboard-chart-heading .eyebrow {
  margin: 0 0 8px;
  border: 0;
  background: #dbf6e8;
  box-shadow: none;
}

.dashboard-chart-heading h2 {
  margin: 0;
  font-size: clamp(21px, 2.4vw, 29px);
}

.dashboard-chart-chip {
  flex: 0 0 auto;
  border: 2px solid var(--dashboard-outline);
  border-radius: 999px;
  padding: 7px 10px;
  background: #fff;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.dashboard-personality-chart,
.dashboard-match-trend {
  display: grid;
  min-height: 285px;
  align-items: center;
}

.dashboard-radar-layout {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(170px, 0.6fr);
  align-items: center;
  gap: 10px;
}

.dashboard-radar {
  display: block;
  width: 100%;
  max-height: 275px;
  overflow: visible;
}

.dashboard-radar-grid polygon,
.dashboard-radar-grid line {
  fill: none;
  stroke: rgba(25, 23, 36, 0.14);
  stroke-width: 1;
}

.dashboard-radar-grid polygon:last-of-type {
  fill: rgba(255, 255, 255, 0.42);
  stroke: rgba(25, 23, 36, 0.28);
  stroke-width: 1.5;
}

.dashboard-radar-shape {
  fill: rgba(125, 92, 255, 0.25);
  stroke: #6d4cff;
  stroke-linejoin: round;
  stroke-width: 3;
}

.dashboard-radar-points circle {
  fill: var(--lime);
  stroke: var(--dashboard-outline);
  stroke-width: 2;
}

.dashboard-radar-labels text {
  fill: var(--muted);
  font-family: inherit;
  font-size: 9px;
  font-weight: 900;
}

.dashboard-score-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dashboard-score-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid rgba(25, 23, 36, 0.1);
  padding: 7px 0;
}

.dashboard-score-list li:last-child {
  border-bottom: 0;
}

.dashboard-score-list span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.dashboard-score-list strong {
  font-size: 13px;
}

.dashboard-trait-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple);
}

.dashboard-trait-dot.trait-conscientiousness { background: var(--blue); }
.dashboard-trait-dot.trait-extraversion { background: var(--pink); }
.dashboard-trait-dot.trait-agreeableness { background: #43c982; }
.dashboard-trait-dot.trait-neuroticism { background: #f3b73f; }

.dashboard-trend-summary {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}

.dashboard-trend-summary > div {
  display: grid;
}

.dashboard-trend-summary strong {
  font-size: 30px;
  line-height: 1;
}

.dashboard-trend-summary span,
.dashboard-trend-summary p {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.dashboard-trend-summary p {
  margin: 0;
  border-radius: 999px;
  padding: 7px 10px;
  background: #fff;
}

.dashboard-trend-summary p.is-positive { color: #26734d; }
.dashboard-trend-summary p.is-negative { color: #9b3042; }

.dashboard-trend-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.dashboard-trend-guides line {
  stroke: rgba(25, 23, 36, 0.11);
  stroke-dasharray: 4 5;
}

.dashboard-trend-guides text,
.dashboard-trend-dates text {
  fill: rgba(25, 23, 36, 0.52);
  font-family: inherit;
  font-size: 10px;
  font-weight: 800;
}

.dashboard-trend-area { fill: url(#dashboard-trend-fill); }

.dashboard-trend-line {
  fill: none;
  stroke: #6d4cff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.dashboard-trend-points circle {
  fill: var(--lime);
  stroke: var(--dashboard-outline);
  stroke-width: 2.5;
}

.dashboard-chart-empty {
  display: grid;
  justify-items: center;
  align-self: center;
  padding: 30px 18px;
  color: var(--muted);
  text-align: center;
}

.dashboard-chart-empty > span {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 13px;
  place-items: center;
  border: 2px solid var(--dashboard-outline);
  border-radius: 18px;
  background: var(--lime);
  color: var(--ink);
  font-size: 20px;
  box-shadow: 3px 4px 0 rgba(25, 23, 36, 0.12);
}

.dashboard-chart-empty strong { color: var(--ink); }
.dashboard-chart-empty p { margin: 5px 0 0; font-size: 11px; font-weight: 750; }

.dashboard-history-panel {
  padding: clamp(20px, 3vw, 32px);
}

.dashboard-test-link {
  border: 0;
  cursor: pointer;
}

.dashboard-history-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.dashboard-history-filter {
  position: relative;
  display: flex;
  align-items: center;
  min-width: min(270px, 38vw);
}

.dashboard-history-filter svg {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.dashboard-history-filter select {
  appearance: none;
  width: 100%;
  min-height: 40px;
  border: 2px solid var(--dashboard-outline);
  border-radius: 999px;
  padding: 8px 38px 8px 38px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  outline: none;
  box-shadow: 2px 3px 0 rgba(25, 23, 36, 0.09);
}

.dashboard-history-filter::after {
  content: "⌄";
  position: absolute;
  right: 14px;
  top: 50%;
  color: var(--muted);
  font-size: 17px;
  font-weight: 1000;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-58%);
}

.dashboard-history-filter select:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(125, 92, 255, 0.15);
}

.dashboard-history-filter select:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.dashboard-history-panel {
  background: rgba(255, 255, 255, 0.96);
}

.dashboard-history-card {
  border: 2px solid rgba(25, 23, 36, 0.9);
  background: #fbfaff;
  box-shadow: 3px 4px 0 rgba(25, 23, 36, 0.07);
}

.dashboard-history-index {
  border: 1.5px solid rgba(25, 23, 36, 0.85);
  box-shadow: none;
}

.dashboard-open-result {
  border: 2px solid var(--dashboard-outline);
}

.dashboard-history-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
}

.dashboard-history-pagination[hidden] {
  display: none;
}

.dashboard-pagination-summary {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.dashboard-pagination-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.dashboard-pagination-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  border: 2px solid var(--dashboard-outline);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 2px 3px 0 rgba(25, 23, 36, 0.09);
}

.dashboard-pagination-controls button:hover:not(:disabled),
.dashboard-pagination-controls button:focus-visible:not(:disabled),
.dashboard-pagination-page.active {
  background: var(--lime);
  outline: none;
  transform: translate(1px, 1px);
  box-shadow: 1px 2px 0 rgba(25, 23, 36, 0.12);
}

.dashboard-pagination-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
  box-shadow: none;
}

.dashboard-pagination-direction {
  gap: 6px;
  padding: 7px 11px;
}

.dashboard-pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  color: var(--muted);
  font-weight: 950;
}

@media (max-width: 1080px) {
  .dashboard-insights-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 900px) {
  .dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-stat-match {
    grid-column: span 2;
  }

  .dashboard-history-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .dashboard-history-filter {
    flex: 1 1 260px;
  }
}

@media (max-width: 680px) {
  .dashboard-tabs {
    width: 100%;
  }

  .dashboard-history-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-history-filter {
    flex: none;
    width: 100%;
    min-width: 0;
  }

  .dashboard-history-actions .dashboard-test-link {
    text-align: center;
  }

  .dashboard-history-pagination {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-pagination-controls {
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .dashboard-tab {
    flex: 1 1 0;
    justify-content: center;
    padding-inline: 10px;
  }

  .dashboard-stats {
    grid-template-columns: 1fr;
  }

  .dashboard-stat,
  .dashboard-stat-match {
    grid-column: auto;
    min-height: 126px;
  }

  .dashboard-radar-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-radar {
    max-height: 240px;
  }

  .dashboard-radar-labels {
    display: none;
  }

  .dashboard-score-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-chart-card {
    min-height: 0;
    border-radius: 22px;
    padding: 18px;
  }

  .dashboard-chart-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .dashboard-personality-chart,
  .dashboard-match-trend {
    min-height: 240px;
  }

}

@media (max-width: 420px) {
  .dashboard-tab-icon { display: none; }
  .dashboard-tab { font-size: 12px; }
  .dashboard-tab-count { min-width: 20px; height: 20px; }
  .dashboard-score-list { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .dashboard-actions {
    display: flex;
  }

  .dashboard-actions .dashboard-icon-action {
    width: 46px;
  }
}

/* Profile dashboard bento layout ------------------------------------- */
.account-dashboard {
  gap: 16px;
  padding-top: 22px;
}

.dashboard-hero {
  min-height: 64px;
  padding: 0 2px;
}

.dashboard-identity h1 {
  font-size: clamp(25px, 2.5vw, 36px);
  line-height: 1;
}

.dashboard-identity .eyebrow {
  margin-bottom: 6px;
}

.dashboard-overview-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(420px, 1.45fr) minmax(280px, 0.9fr);
  grid-template-areas:
    "profile stats personality"
    "profile career personality"
    "trend trend personality";
  grid-template-rows: auto auto minmax(330px, 1fr);
  gap: 16px;
  min-width: 0;
}

.dashboard-profile-card,
.dashboard-stat,
.dashboard-chart-card {
  border: 2px solid var(--dashboard-outline);
  box-shadow: 5px 6px 0 rgba(25, 23, 36, 0.1);
}

.dashboard-profile-card {
  grid-area: profile;
  display: flex;
  min-width: 0;
  min-height: 286px;
  align-items: center;
  flex-direction: column;
  border-radius: 26px;
  padding: 19px;
  background: rgba(255, 255, 255, 0.96);
  text-align: center;
}

.dashboard-profile-heading {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.dashboard-profile-heading a {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 2px solid var(--dashboard-outline);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
}

.dashboard-profile-heading a:hover,
.dashboard-profile-heading a:focus-visible {
  background: var(--lime);
  outline: none;
  transform: translateY(-1px);
}

.dashboard-profile-avatar {
  position: relative;
  display: grid;
  width: 88px;
  height: 88px;
  margin: 13px 0 11px;
  place-items: center;
  border: 4px solid #fff;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffe5f0, #efe9ff);
  box-shadow: 0 0 0 3px var(--pink), 0 10px 22px rgba(75, 57, 126, 0.16);
}

.dashboard-profile-avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: contain;
}

.dashboard-profile-avatar.has-user-photo img {
  object-fit: cover;
}

.dashboard-profile-avatar > span {
  position: absolute;
  right: -4px;
  bottom: 2px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
  font-size: 10px;
}

.dashboard-profile-card > p {
  margin: 0;
}

.dashboard-profile-card > p:first-of-type {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.dashboard-profile-card h2 {
  margin: 2px 0 4px;
  overflow-wrap: anywhere;
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1;
}

.dashboard-profile-detail {
  color: var(--purple);
  font-size: 11px;
  font-weight: 900;
}

.dashboard-profile-card .dashboard-email {
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: 10px;
}

.dashboard-overview-layout > .dashboard-stats {
  grid-area: stats;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-overview-layout .dashboard-stat {
  min-height: 144px;
  border-radius: 24px;
  padding: 19px;
}

.dashboard-overview-layout .dashboard-stat > strong {
  margin-top: 14px;
  font-size: clamp(30px, 3.2vw, 44px);
}

.dashboard-overview-layout .dashboard-stat-career {
  grid-area: career;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto minmax(30px, 1fr);
  min-height: 100px;
  align-items: center;
  align-content: center;
  gap: 18px;
  background: linear-gradient(135deg, #ede7ff, #ded4ff);
}

.dashboard-stat-career > .dashboard-stat-symbol {
  justify-self: end;
}

.dashboard-stat-career > div {
  display: grid;
  gap: 5px;
}

.dashboard-stat-career > div > span {
  color: rgba(23, 21, 37, 0.68);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.dashboard-stat-career > div > small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.dashboard-overview-layout .dashboard-stat-career > strong {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 32px);
}

.dashboard-personality-card {
  grid-area: personality;
  min-height: 0;
  align-content: start;
  background: linear-gradient(160deg, #fff, #f2eeff);
}

.dashboard-trend-card {
  grid-area: trend;
  min-height: 330px;
}

.dashboard-personality-card .dashboard-personality-chart {
  min-height: 0;
  margin-top: 24px;
  align-items: start;
}

.dashboard-personality-card .dashboard-radar-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.dashboard-personality-card .dashboard-radar {
  display: block;
  width: min(100%, 320px);
  max-height: 235px;
  margin: 0 auto;
}

.dashboard-personality-card .dashboard-score-list {
  grid-template-columns: 1fr;
  gap: 0;
}

.dashboard-personality-card .dashboard-score-list li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  min-width: 0;
  padding: 15px 0;
}

.dashboard-personality-card .dashboard-score-list span {
  font-size: 12px;
}

.dashboard-personality-card .dashboard-score-list strong {
  color: var(--purple);
  font-size: 16px;
}

.dashboard-score-value {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
}

.dashboard-score-value > i {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(25, 23, 36, 0.1);
}

.dashboard-score-value > i > b {
  display: block;
  width: var(--score-width);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--purple));
}

.dashboard-score-value > strong {
  text-align: right;
}

.dashboard-trend-card .dashboard-match-trend {
  min-height: 240px;
}

@media (max-width: 1120px) {
  .dashboard-overview-layout {
    grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
    grid-template-areas:
      "profile stats"
      "profile career"
      "trend trend"
      "personality personality";
    grid-template-rows: auto auto auto auto;
  }

}

@media (max-width: 760px) {
  .dashboard-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-overview-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "profile"
      "stats"
      "career"
      "trend"
      "personality";
  }

  .dashboard-overview-layout .dashboard-stat-career {
    grid-template-columns: 1fr auto;
  }

  .dashboard-stat-career > strong {
    grid-column: 1 / -1;
    grid-row: 2;
  }

}

@media (max-width: 480px) {
  .dashboard-overview-layout > .dashboard-stats,
  .dashboard-personality-card .dashboard-score-list {
    grid-template-columns: 1fr;
  }

  .dashboard-overview-layout .dashboard-stat {
    min-height: 126px;
  }
}

/* Shared playful footer */
.site-footer {
  --footer-surface: #fff0bd;
  position: relative;
  z-index: 2;
  isolation: isolate;
  width: 100%;
  margin: 56px 0 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: var(--footer-surface);
  box-shadow: 0 20px 55px rgba(23, 21, 37, 0.14);
}

.site-footer::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -28px;
  left: 0;
  width: 100%;
  height: 30px;
  pointer-events: none;
  background:
    radial-gradient(102px 27px at 50% 100%, var(--footer-surface) 98%, transparent 100%) 0 0 / 330px 30px repeat-x,
    radial-gradient(70px 22px at 50% 100%, var(--footer-surface) 98%, transparent 100%) 112px 4px / 250px 30px repeat-x,
    radial-gradient(48px 17px at 50% 100%, var(--footer-surface) 98%, transparent 100%) 34px 8px / 184px 30px repeat-x,
    linear-gradient(var(--footer-surface), var(--footer-surface)) bottom / 100% 9px no-repeat;
}

.site-footer-nav a:focus-visible,
.site-footer-brand:focus-visible {
  outline: 3px solid #ffd83d;
  outline-offset: 4px;
}

.site-footer-bottom {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) minmax(220px, 0.65fr) minmax(240px, 0.8fr);
  align-items: end;
  gap: clamp(24px, 3vw, 52px);
  padding: clamp(28px, 3.5vw, 50px);
  background-color: var(--footer-surface);
}

.site-footer-brand-block {
  display: grid;
  justify-items: start;
}

.site-footer-brand {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  gap: 12px;
  color: var(--ink);
}

.site-footer-brand strong {
  font-size: clamp(44px, 5.5vw, 78px);
  line-height: 0.78;
  letter-spacing: -0.065em;
  text-transform: lowercase;
  transform-origin: left bottom;
  transition: transform 180ms ease;
}

.site-footer-brand span {
  margin-bottom: -4px;
  border: 3px solid var(--outline);
  border-radius: 999px;
  padding: 6px 10px;
  background: #ff9ec4;
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
  rotate: -5deg;
}

.site-footer-brand:hover strong {
  transform: translateY(-3px) rotate(-1deg);
}

.site-footer-brand-block > p {
  max-width: 620px;
  margin: 18px 0 0;
  font-size: 14px;
  font-weight: 850;
}

.site-footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
}

.site-footer-nav a {
  width: fit-content;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  font-weight: 950;
  transition: border-color 150ms ease, rotate 150ms ease;
}

.site-footer-nav a:nth-child(odd) {
  rotate: -1deg;
}

.site-footer-nav a:nth-child(even) {
  rotate: 1deg;
}

.site-footer-nav a:hover {
  border-color: var(--ink);
  rotate: -2deg;
}

.site-footer-signoff {
  display: grid;
  justify-items: end;
  text-align: right;
}

.site-footer-signoff p {
  max-width: 360px;
  margin: 0 0 12px;
  font-size: clamp(17px, 1.6vw, 23px);
  font-weight: 1000;
  line-height: 1.05;
  text-wrap: balance;
}

.site-footer-signoff small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

@media (max-width: 980px) {
  .site-footer-bottom {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer-brand-block {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .site-footer {
    width: 100%;
    margin: 40px 0 0;
    border-radius: 0;
  }

  .site-footer-bottom {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 28px 20px;
  }

  .site-footer-brand strong {
    font-size: clamp(42px, 16vw, 64px);
  }

  .site-footer-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .site-footer-signoff {
    justify-items: start;
    text-align: left;
  }
}

/* Full-screen landing cover */
.landing-cover.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(300px, 1fr);
  gap: 0;
  align-items: start;
  min-height: calc(100svh - clamp(104px, 8vw, 136px));
  padding: clamp(18px, 3vh, 34px) 0 0;
  overflow: hidden;
}

.landing-cover .hero-copy {
  position: relative;
  z-index: 5;
  display: grid;
  justify-items: center;
  width: min(920px, 100%);
  margin: 0 auto;
  text-align: center;
}

.landing-cover-pill {
  margin-bottom: clamp(20px, 2vh, 26px);
}

.landing-cover .hero-copy h1 {
  max-width: 880px;
  margin-bottom: 14px;
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", Arial, sans-serif;
  font-size: clamp(36px, 3.8vw, 58px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 0.96;
}

.landing-title-line {
  display: block;
}

html[lang="ms"] .landing-cover .hero-copy {
  width: min(1160px, 100%);
}

html[lang="ms"] .landing-cover .hero-copy h1 {
  max-width: 1120px;
  font-size: clamp(21px, 4.4vw, 54px);
  letter-spacing: -0.035em;
}

html[lang="ms"] .landing-title-line {
  white-space: nowrap;
}

.landing-title-outline {
  display: inline-block;
  color: transparent;
  white-space: nowrap;
  -webkit-text-stroke: clamp(1px, 0.09vw, 1.75px) var(--ink);
  paint-order: stroke fill;
}

html[lang="zh-CN"] .landing-cover .hero-copy h1 {
  font-family:
    "Microsoft YaHei", "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC",
    sans-serif;
  font-weight: 900;
}

html[lang="zh-CN"] .landing-title-outline {
  color: transparent;
  font-family: inherit;
  font-weight: inherit;
  -webkit-text-stroke: clamp(1.75px, 0.14vw, 2.5px) var(--ink);
}

.landing-cover .hero-subtitle {
  max-width: 650px;
  margin-bottom: 18px;
  font-size: clamp(15px, 1.25vw, 19px);
}

.landing-cover .hero-actions {
  justify-content: center;
}

.landing-cover .hero-actions .primary-action {
  transform: rotate(-1.5deg);
}

.landing-cover .hero-actions .secondary-action {
  transform: rotate(1.5deg);
}

.landing-cover-scene {
  position: relative;
  align-self: stretch;
  min-height: clamp(310px, 42vh, 470px);
  margin-top: -8px;
}

.landing-story-card {
  position: absolute;
  top: 24%;
  left: 2.5%;
  z-index: 6;
  display: grid;
  gap: 5px;
  width: min(190px, 16vw);
  border: 2px solid var(--outline);
  border-radius: 14px;
  padding: 13px;
  background: rgba(255, 253, 244, 0.96);
  box-shadow: 5px 5px 0 rgba(92, 88, 112, 0.24);
  transform: rotate(-2deg);
}

.landing-story-card strong {
  color: var(--purple);
  font-size: 13px;
}

.landing-story-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.landing-story-card a {
  justify-self: start;
  margin-top: 4px;
  border: 2px solid var(--outline);
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--paper);
  font-size: 10px;
  font-weight: 1000;
}

.landing-flourish {
  position: absolute;
  z-index: 0;
  top: -8%;
  width: min(360px, 23vw);
  height: auto;
  overflow: visible;
  pointer-events: none;
}

.landing-flourish path {
  fill: none;
  stroke: rgba(23, 21, 37, 0.72);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.landing-flourish-left {
  left: 5%;
  transform: rotate(3deg);
}

.landing-flourish-right {
  right: 5%;
  transform: scaleX(-1) rotate(3deg);
}

.landing-doodle {
  position: absolute;
  z-index: 5;
  display: inline-grid;
  place-items: center;
  color: var(--ink);
  pointer-events: none;
}

.landing-doodle-star {
  top: 21%;
  right: 14%;
  color: var(--pink);
  font-size: clamp(28px, 3vw, 48px);
  transform: rotate(12deg);
}

.landing-avatar {
  position: absolute;
  z-index: 3;
  display: grid;
  justify-items: center;
  width: clamp(132px, 11vw, 205px);
  margin: 0;
  transform-origin: 50% 100%;
}

.landing-avatar::before {
  content: "";
  position: absolute;
  right: -6%;
  bottom: -2%;
  left: -6%;
  z-index: -1;
  height: 72%;
  border: 3px solid rgba(23, 21, 37, 0.72);
  border-radius: 48% 52% 18% 18% / 56% 48% 20% 18%;
  background: var(--avatar-blob, rgba(255, 255, 255, 0.65));
  animation: landing-avatar-arrive 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--landing-avatar-delay, 520ms);
}

.landing-avatar img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(7px 9px 0 rgba(92, 88, 112, 0.24));
}

.landing-avatar-trigger {
  position: relative;
  display: grid;
  justify-items: center;
  width: 100%;
  border-radius: 40%;
  outline-offset: 6px;
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 260ms ease;
  animation: landing-avatar-arrive 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--landing-avatar-delay, 520ms);
}

.landing-avatar:hover,
.landing-avatar:focus-within {
  z-index: 20;
}

.landing-avatar:hover .landing-avatar-trigger,
.landing-avatar:focus-within .landing-avatar-trigger {
  transform: translateY(-13px) scale(1.035);
  filter: saturate(1.08);
}

.landing-avatar-label {
  position: absolute;
  right: 6%;
  bottom: 4%;
  border: 2px solid var(--outline);
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--paper);
  font-size: 10px;
  font-weight: 1000;
  box-shadow: 3px 3px 0 var(--outline);
}

.landing-avatar-dialog {
  position: absolute;
  bottom: calc(84% + 18px);
  left: 50%;
  z-index: 30;
  display: grid;
  gap: 6px;
  width: min(210px, 18vw);
  border: 2px solid var(--outline);
  border-radius: 15px;
  padding: 13px;
  background: rgba(255, 253, 244, 0.98);
  box-shadow: 6px 7px 0 rgba(92, 88, 112, 0.24);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 18px) rotate(-2deg) scale(0.94);
  transform-origin: 50% 100%;
  transition:
    opacity 180ms ease,
    visibility 180ms ease,
    transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.landing-avatar-dialog::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 17px;
  height: 17px;
  border-right: 2px solid var(--outline);
  border-bottom: 2px solid var(--outline);
  background: var(--paper);
  transform: translateX(-50%) rotate(45deg);
}

.landing-avatar-dialog strong {
  color: var(--purple);
  font-size: 13px;
}

.landing-avatar-dialog > span:not(.landing-avatar-dialog-action) {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.landing-avatar-dialog .landing-avatar-dialog-action {
  justify-self: start;
  border: 2px solid var(--outline);
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--paper);
  color: var(--ink);
  font-size: 10px;
  font-weight: 1000;
}

.landing-avatar:hover .landing-avatar-dialog,
.landing-avatar:focus-within .landing-avatar-dialog {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) rotate(-2deg) scale(1);
}

.landing-avatar-openness {
  --avatar-blob: #ddd5ff;
  --landing-avatar-delay: 520ms;
  bottom: 36px;
  left: 4%;
  transform: rotate(-5deg);
}

.landing-avatar-conscientiousness {
  --avatar-blob: #d7f8e9;
  --landing-avatar-delay: 630ms;
  bottom: calc(5% + 26px);
  left: 23%;
  transform: rotate(3deg) scale(1.04);
}

.landing-avatar-extraversion {
  --avatar-blob: #ffe0d4;
  --landing-avatar-delay: 740ms;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg) scale(1.08);
}

.landing-avatar-agreeableness {
  --avatar-blob: #ffe0ef;
  --landing-avatar-delay: 850ms;
  right: 23%;
  bottom: calc(5% + 26px);
  transform: rotate(4deg) scale(1.02);
}

.landing-avatar-neuroticism {
  --avatar-blob: #d9f2ff;
  --landing-avatar-delay: 960ms;
  right: 4%;
  bottom: 36px;
  transform: rotate(-4deg);
}

@media (max-width: 980px) {
  .landing-cover.hero-section {
    grid-template-rows: auto minmax(260px, 1fr);
    min-height: calc(100svh - 98px);
  }

  .landing-cover .hero-copy h1 {
    max-width: 720px;
    font-size: clamp(34px, 6vw, 54px);
  }

  .landing-cover-scene {
    min-height: clamp(270px, 38vh, 390px);
  }

  .landing-story-card {
    top: 16%;
    width: 160px;
  }

  .landing-avatar {
    width: clamp(118px, 16vw, 170px);
  }
}

@media (max-width: 720px) {
  .landing-cover.hero-section {
    grid-template-rows: auto auto;
    min-height: calc(100svh - 142px);
    padding: 20px 0 0;
  }

  .landing-cover .hero-copy h1 {
    max-width: 540px;
    font-size: clamp(30px, 9vw, 43px);
  }

  .landing-cover .hero-subtitle {
    max-width: 520px;
    margin-bottom: 15px;
    font-size: 14px;
  }

  .landing-cover .hero-actions {
    display: flex;
    flex-wrap: wrap;
  }

  .landing-cover-scene {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    min-height: 170px;
    margin-top: 12px;
    padding: 34px 0 4px;
  }

  .landing-story-card,
  .landing-flourish,
  .landing-doodle {
    display: none;
  }

  .landing-avatar,
  .landing-avatar-openness,
  .landing-avatar-conscientiousness,
  .landing-avatar-extraversion,
  .landing-avatar-agreeableness,
  .landing-avatar-neuroticism {
    position: relative;
    inset: auto;
    width: min(19vw, 108px);
    transform: none;
  }

  .landing-avatar:nth-of-type(even) {
    transform: translateY(-16px) rotate(3deg);
  }

  .landing-avatar:nth-of-type(odd) {
    transform: rotate(-3deg);
  }

  .landing-avatar::before {
    border-width: 2px;
  }

  .landing-avatar img {
    filter: drop-shadow(4px 5px 0 rgba(92, 88, 112, 0.22));
  }

  .landing-avatar-label {
    display: none;
  }

  .landing-avatar-dialog {
    bottom: 92%;
    width: min(180px, 48vw);
  }
}

@media (max-width: 420px) {
  .landing-cover.hero-section {
    min-height: calc(100svh - 154px);
  }

  .landing-cover .eyebrow {
    font-size: 9px;
  }

  .landing-cover .hero-copy h1 {
    font-size: clamp(27px, 8.8vw, 36px);
  }

  .landing-cover .primary-action,
  .landing-cover .secondary-action {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 12px;
  }

  .landing-cover-scene {
    min-height: 145px;
  }
}

.landing-doodle {
  animation: landing-doodle-arrive 520ms cubic-bezier(0.22, 1, 0.36, 1) 1s both;
}

@keyframes landing-avatar-arrive {
  from {
    opacity: 0;
    transform: translateY(110px) scale(0.82) rotate(-7deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0);
  }
}

@keyframes landing-doodle-arrive {
  from {
    opacity: 0;
    scale: 0.55;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-avatar-trigger,
  .landing-avatar::before,
  .landing-doodle {
    animation: none;
  }

  .landing-avatar-trigger,
  .landing-avatar-dialog {
    transition: none;
  }
}
