.nds-u-font-body { font-family: var(--nds-typo-font-body); }
.nds-u-font-heading { font-family: var(--nds-typo-font-heading); }
.nds-u-font-mono {
  font-family: var(--nds-typo-font-mono);
  letter-spacing: var(--nds-typo-track-mono);
  text-transform: uppercase;
}

.nds-btn {
  border: 1px solid transparent;
  border-radius: var(--nds-radius-button, var(--nds-radius-pill));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--nds-space-xs);
  font-family: var(--nds-typo-font-body);
  font-size: var(--nds-typo-size-sm);
  font-weight: var(--nds-typo-weight-button, 500);
  line-height: var(--nds-typo-line-tight);
  letter-spacing: var(--nds-typo-track-button, 0.015em);
  padding: 10px 16px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.nds-btn:focus-visible {
  outline: 2px solid var(--nds-color-accent);
  outline-offset: 2px;
}
.nds-btn:active {
  transform: translateY(0);
}
.nds-btn--primary {
  background: var(--nds-color-accent);
  color: var(--nds-color-inverse);
}
.nds-btn--primary:hover {
  background: color-mix(in oklab, var(--nds-color-accent) 90%, black);
  transform: translateY(-1px);
}
.nds-btn--secondary {
  background: var(--nds-color-bg-surface);
  color: var(--nds-color-fg-primary);
  border-color: var(--nds-color-border-hair);
}
.nds-btn--ghost {
  background: transparent;
  color: var(--nds-color-fg-secondary);
  border-color: var(--nds-color-border-line);
}
.nds-btn--on-dark {
  background: transparent;
  color: var(--nds-color-bg-canvas);
  border-color: var(--nds-color-bg-canvas);
}
.nds-btn--on-dark:hover {
  background: color-mix(in oklab, var(--nds-color-bg-canvas) 12%, transparent);
}
.nds-btn--sm { padding: 8px 12px; font-size: var(--nds-typo-size-xs); }
.nds-btn--lg { padding: 14px 22px; font-size: var(--nds-typo-size-md); }
.nds-btn.is-disabled,
.nds-btn:disabled,
.nds-btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .55;
  transform: none;
}
.nds-btn--success {
  background: oklch(0.54 0.12 156);
  color: var(--nds-color-inverse);
  border-color: transparent;
}

/* Landing-oriented button variant reused across v3 pages. */
.nds-btn--landing-hero {
  border-radius: var(--nds-radius-sm);
  min-height: 48px;
  padding: 14px 24px;
}
.nds-btn--landing-hero-prominent {
  min-height: 56px;
  padding-inline: 28px;
}
.nds-btn--landing-hero.nds-btn--primary {
  color: var(--nds-color-fg-primary);
  border-color: transparent;
}
.nds-btn--landing-hero-prominent.nds-btn--primary {
  color: var(--nds-color-bg-canvas);
}
.nds-btn--landing-hero.nds-btn--primary:hover {
  background: color-mix(in oklab, var(--nds-color-accent) 90%, black);
}
.nds-btn--landing-hero.nds-btn--ghost {
  background: var(--nds-color-bg-surface);
  color: var(--nds-color-fg-primary);
  border-color: var(--nds-color-border-hair);
}

.nds-card {
  border: 1px solid var(--nds-color-border-hair);
  border-radius: var(--nds-radius-md);
  background: var(--nds-color-bg-surface);
  padding: var(--nds-space-lg);
}
.nds-card__title {
  margin: 0;
  font-family: var(--nds-typo-font-heading);
  font-size: var(--nds-typo-size-lg);
  line-height: 1.2;
  color: var(--nds-color-fg-primary);
}
.nds-card__body {
  margin-top: var(--nds-space-xs);
  color: var(--nds-color-fg-secondary);
  line-height: var(--nds-typo-line-relaxed);
  font-size: var(--nds-typo-size-sm);
}
.nds-card__actions {
  margin-top: var(--nds-space-md);
  display: flex;
  align-items: center;
  gap: var(--nds-space-sm);
  flex-wrap: wrap;
}

/* Landing-oriented card variant with compact body copy. */
.nds-card--landing {
  border-radius: var(--nds-radius-md);
  box-shadow: none;
  padding: 18px;
}
.nds-card--landing .nds-card__title {
  font-size: 17px;
  line-height: 1.2;
}
.nds-card--landing .nds-card__body {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.58;
}

/* Generic surface panel for landing-style blocks. */
.nds-panel {
  border: 1px solid var(--nds-color-border-hair);
  border-radius: var(--nds-radius-md);
  background: var(--nds-color-bg-surface);
}
.nds-panel--landing {
  border-radius: var(--nds-radius-md);
}
.nds-panel--faq {
  border-radius: var(--nds-radius-sm);
  overflow: hidden;
}
.faq-list {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}
.faq-q {
  list-style: none;
  width: 100%;
  border: 0;
  background: transparent;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  color: var(--nds-color-fg-primary);
  cursor: pointer;
  font-size: var(--nds-typo-size-sm);
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
}
.faq-q::-webkit-details-marker {
  display: none;
}
.faq-q::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--nds-color-fg-muted);
  font-family: var(--nds-typo-font-mono);
  font-size: var(--nds-typo-size-sm);
}
.faq-item[open] .faq-q::after {
  content: "-";
}
.faq-q:focus-visible {
  outline: 2px solid var(--nds-color-accent);
  outline-offset: -2px;
}
.faq-a {
  border-top: 1px solid var(--nds-color-border-hair);
  display: none;
  padding: 14px 18px 18px;
  color: var(--nds-color-fg-secondary);
  font-size: var(--nds-typo-size-sm);
  line-height: var(--nds-typo-line-relaxed);
}
.faq-item[open] .faq-a {
  display: block;
}

/* Method chips for hero summaries and compact domain legends. */
.nds-method-chip {
  --nds-method-chip-accent: var(--nds-color-accent);
  border: 1.5px solid var(--nds-color-border-line);
  border-radius: var(--nds-radius-pill);
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 16px 24px;
  color: var(--nds-color-fg-secondary);
  font-size: var(--nds-typo-size-sm);
  line-height: 1;
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease, color .2s ease;
}
.nds-method-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: var(--nds-radius-pill);
  background: var(--nds-method-chip-accent);
  flex: 0 0 auto;
}
.nds-method-chip:hover {
  border-color: var(--nds-color-fg-primary);
  color: var(--nds-color-fg-primary);
  transform: translateY(-1px);
}
.nds-method-chip--disc {
  --nds-method-chip-accent: var(--nds-color-motype-4);
}
.nds-method-chip--riasec {
  --nds-method-chip-accent: var(--nds-color-riasec-a);
}
.nds-method-chip--motype {
  --nds-method-chip-accent: oklch(0.58 0.12 286);
}

/* Landing test card pattern: compare a small set of products/tests. */
.nds-tests-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.nds-insights-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.nds-insights-grid > * {
  min-width: 0;
}
.nds-progress-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.nds-progress-steps-grid > * {
  min-width: 0;
}
.nds-test-card {
  --nds-test-card-accent: var(--nds-color-accent);
  --nds-test-card-soft: var(--nds-color-accent-soft);
  min-height: 460px;
  border: 1px solid var(--nds-color-border-hair);
  border-radius: var(--nds-radius-lg);
  background: linear-gradient(180deg, var(--nds-test-card-soft), var(--nds-color-bg-surface) 72%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.nds-test-card:hover {
  border-color: color-mix(in oklab, var(--nds-test-card-accent) 42%, var(--nds-color-border-hair));
  box-shadow: var(--nds-shadow-sm);
  transform: translateY(-4px);
}
.nds-test-card--disc {
  --nds-test-card-accent: var(--nds-color-motype-4);
  --nds-test-card-soft: color-mix(in oklab, var(--nds-color-motype-4) 14%, var(--nds-color-bg-surface));
}
.nds-test-card--riasec {
  --nds-test-card-accent: var(--nds-color-riasec-a);
  --nds-test-card-soft: color-mix(in oklab, var(--nds-color-riasec-a) 14%, var(--nds-color-bg-surface));
}
.nds-test-card--motype {
  --nds-test-card-accent: oklch(0.58 0.12 286);
  --nds-test-card-soft: color-mix(in oklab, oklch(0.58 0.12 286) 14%, var(--nds-color-bg-surface));
}
.nds-test-card__blob {
  width: 220px;
  height: 220px;
  border-radius: var(--nds-radius-pill);
  background: var(--nds-test-card-accent);
  filter: blur(8px);
  opacity: .18;
  pointer-events: none;
  position: absolute;
  top: -72px;
  right: -96px;
}
.nds-test-card__head,
.nds-test-card__title,
.nds-test-card__subtitle,
.nds-test-card__question,
.nds-test-card__list,
.nds-test-card__foot {
  position: relative;
  z-index: 1;
}
.nds-test-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
.nds-test-card__index,
.nds-test-card__subtitle,
.nds-test-card__time {
  font-family: var(--nds-typo-font-mono);
  font-size: var(--nds-typo-size-xs);
  letter-spacing: var(--nds-typo-track-mono);
  text-transform: uppercase;
  color: var(--nds-color-fg-muted);
}
.nds-test-card__glyph {
  width: 52px;
  height: 52px;
  border: 1px solid var(--nds-color-border-hair);
  border-radius: var(--nds-radius-md);
  background: var(--nds-color-bg-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.nds-test-card__glyph-line {
  fill: none;
  stroke: var(--nds-test-card-accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.nds-test-card__title {
  margin: 0;
  font-family: var(--nds-typo-font-heading);
  font-size: 28px;
  font-weight: 500;
  line-height: var(--nds-typo-line-tight);
  color: var(--nds-color-fg-primary);
}
.nds-test-card__subtitle {
  margin: -8px 0 0;
}
.nds-test-card__question {
  margin: 0;
  max-width: 14rem;
  font-family: var(--nds-typo-font-heading);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--nds-color-fg-primary);
}
.nds-test-card__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.nds-test-card__list li {
  display: flex;
  gap: 12px;
  color: var(--nds-color-fg-secondary);
  font-size: var(--nds-typo-size-sm);
  line-height: 1.45;
}
.nds-test-card__list li::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-top: 8px;
  border-radius: var(--nds-radius-pill);
  background: var(--nds-test-card-accent);
  flex: 0 0 auto;
}

.career-report-card .nds-test-card__list li {
  display: block;
  gap: 0;
}

.career-report-card .nds-test-card__list li::before {
  display: none;
}
.nds-test-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 20px;
}
.nds-test-card__action {
  display: inline-flex;
}
.nds-test-card__action .nds-btn {
  min-height: 40px;
  border-radius: var(--nds-radius-pill);
  padding: 10px 16px;
  font-size: var(--nds-typo-size-sm);
}

/* Landing progress step card pattern: sequenced action flow. */
.nds-progress-step {
  min-height: 260px;
  border: 1px solid var(--nds-color-border-hair);
  border-radius: var(--nds-radius-lg);
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 30px 24px 24px;
  position: relative;
}
.nds-progress-step__dot {
  width: 26px;
  height: 26px;
  border-radius: var(--nds-radius-pill);
  background: var(--nds-color-fg-primary);
  color: var(--nds-color-bg-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--nds-typo-font-mono);
  font-size: var(--nds-typo-size-xs);
  font-weight: 500;
  position: absolute;
  top: -13px;
  left: 24px;
}
.nds-progress-step__tag,
.nds-progress-step__pill {
  font-family: var(--nds-typo-font-mono);
  font-size: var(--nds-typo-size-xs);
  letter-spacing: var(--nds-typo-track-mono);
  text-transform: uppercase;
}
.nds-progress-step__tag {
  color: var(--nds-color-fg-muted);
}
.nds-progress-step__title {
  margin: 0;
  font-family: var(--nds-typo-font-heading);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.nds-progress-step__body {
  margin: 0;
  color: var(--nds-color-fg-secondary);
  font-size: 14px;
  line-height: 1.56;
}
.nds-progress-step__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}
.nds-progress-step__pill {
  border: 1px solid var(--nds-color-border-line);
  border-radius: var(--nds-radius-pill);
  align-self: flex-start;
  padding: 6px 12px;
  background: transparent;
  color: var(--nds-color-fg-secondary);
}

/* Landing insight card pattern: concise rationale blocks. */
.nds-insight-card {
  border-top: 1.5px solid var(--nds-color-fg-primary);
  padding-top: 24px;
}
.nds-insight-card__tag {
  border-radius: var(--nds-radius-pill);
  display: inline-flex;
  margin-bottom: 16px;
  padding: 4px 10px;
  font-family: var(--nds-typo-font-mono);
  font-size: 11px;
  letter-spacing: var(--nds-typo-track-mono);
  text-transform: uppercase;
}
.nds-insight-card__title {
  margin: 0 0 14px;
  font-family: var(--nds-typo-font-heading);
  font-size: clamp(15px, 1.45vw, 20px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.nds-insight-card__body {
  margin: 0;
  color: var(--nds-color-fg-secondary);
  font-size: 15px;
  line-height: 1.56;
  overflow-wrap: anywhere;
}

/* Unified modal primitives for landing flows. */
.nds-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
}
.nds-modal[aria-hidden="true"] {
  display: none;
}
.nds-modal__overlay {
  position: absolute;
  inset: 0;
  background: color-mix(in oklab, var(--nds-color-fg-primary) 28%, transparent);
}
.nds-modal__viewport {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.nds-modal__panel {
  width: min(100%, 32rem);
  border: 1px solid var(--nds-color-border-hair);
  border-radius: var(--nds-radius-lg);
  background: var(--nds-color-bg-surface);
  box-shadow: var(--nds-shadow-lg);
  overflow: hidden;
}
.nds-modal__head {
  padding: 16px 24px;
  border-bottom: 1px solid var(--nds-color-border-hair);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.nds-modal__title {
  margin: 0;
  font-family: var(--nds-typo-font-heading);
  font-size: var(--nds-typo-size-lg);
  line-height: 1.2;
  color: var(--nds-color-fg-primary);
}
.nds-modal__close {
  width: 44px;
  height: 44px;
  border: 1px solid transparent;
  border-radius: var(--nds-radius-md);
  background: transparent;
  color: var(--nds-color-fg-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.nds-modal__close:hover,
.nds-modal__close:focus-visible {
  color: var(--nds-color-fg-primary);
  background: var(--nds-color-bg-subtle);
  border-color: var(--nds-color-border-hair);
}
.nds-modal__close svg {
  width: 18px;
  height: 18px;
}
.nds-modal__body {
  padding: 24px;
}
.nds-modal__message {
  margin: 0;
  font-size: var(--nds-typo-size-sm);
  line-height: var(--nds-typo-line-relaxed);
  color: var(--nds-color-fg-secondary);
}
.nds-modal__actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 1023px) {
  .nds-insights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
}

/* Landing price card pattern: high-contrast commercial block. */
.nds-price-card {
  border-radius: var(--nds-radius-lg);
  background: var(--nds-color-fg-primary);
  color: var(--nds-color-bg-surface);
  text-align: center;
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}
.nds-price-card__glow {
  border-radius: var(--nds-radius-pill);
  filter: blur(40px);
  opacity: .13;
  pointer-events: none;
  position: absolute;
}
.nds-price-card__glow--disc {
  width: 300px;
  height: 300px;
  left: -15%;
  top: -20%;
  background: var(--nds-color-motype-4);
}
.nds-price-card__glow--motype {
  width: 220px;
  height: 220px;
  right: -10%;
  bottom: -14%;
  background: oklch(0.58 0.12 286);
}
.nds-price-card__eyebrow,
.nds-price-card__price,
.nds-price-card__label,
.nds-price-card__list,
.nds-price-card__actions {
  position: relative;
  z-index: 1;
}
.nds-price-card__eyebrow {
  margin: 0 0 20px;
  font-family: var(--nds-typo-font-mono);
  font-size: var(--nds-typo-size-xs);
  letter-spacing: var(--nds-typo-track-mono);
  text-transform: uppercase;
  color: oklch(0.76 0.012 80);
}
.nds-price-card__price {
  margin: 0;
  font-family: var(--nds-typo-font-heading);
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 300;
  line-height: .96;
}
.nds-price-card__label {
  margin: 8px 0 0;
  color: oklch(0.82 0.012 80);
  font-size: var(--nds-typo-size-md);
  line-height: var(--nds-typo-line-base);
}
.nds-price-card__list {
  max-width: 480px;
  margin: 32px auto 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  text-align: left;
}
.nds-price-card__list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: oklch(0.86 0.012 80);
  font-size: 15px;
  line-height: 1.45;
}
.nds-price-card__list li::before {
  content: "";
  width: 7px;
  height: 12px;
  margin-top: 2px;
  border-right: 2px solid var(--nds-color-riasec-a);
  border-bottom: 2px solid var(--nds-color-riasec-a);
  transform: rotate(45deg);
  flex: 0 0 auto;
}
.nds-price-card__actions {
  margin-top: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.nds-price-card__actions .nds-btn--primary {
  background: var(--nds-color-bg-surface);
  color: var(--nds-color-fg-primary);
}
.nds-price-card__actions .nds-btn--secondary,
.nds-price-card__actions .nds-btn--ghost {
  background: transparent;
  color: var(--nds-color-bg-surface);
  border-color: oklch(0.86 0.012 80 / .35);
}

@media (max-width: 900px) {
  .nds-tests-grid {
    grid-template-columns: 1fr;
  }

  .career-report-card {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .nds-method-chip {
    width: 100%;
  }
  .nds-test-card,
  .nds-price-card {
    padding: 24px;
  }
  .nds-test-card {
    min-height: auto;
  }
  .nds-test-card__foot,
  .nds-price-card__actions {
    align-items: stretch;
    flex-direction: column;
  }
  .nds-test-card__action,
  .nds-test-card__action .nds-btn,
  .nds-price-card__actions .nds-btn {
    width: 100%;
  }
}

.nds-badge {
  border: 1px solid var(--nds-color-border-hair);
  border-radius: var(--nds-radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: var(--nds-typo-size-xs);
  line-height: 1;
  color: var(--nds-color-fg-secondary);
  background: var(--nds-color-bg-surface);
}
.nds-badge--accent {
  background: color-mix(in oklab, var(--nds-color-accent-soft) 65%, white);
  border-color: color-mix(in oklab, var(--nds-color-accent) 35%, var(--nds-color-border-hair));
  color: var(--nds-color-fg-primary);
}

.nds-dropdown {
  position: relative;
  display: inline-flex;
}
.nds-dropdown__toggle {
  border: 0;
  background: transparent;
  color: var(--nds-color-fg-secondary);
  font: inherit;
  cursor: pointer;
}
.nds-dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  padding: var(--nds-space-xs);
  border: 1px solid var(--nds-color-border-hair);
  border-radius: var(--nds-radius-sm);
  background: var(--nds-color-bg-surface);
  box-shadow: var(--nds-shadow-lg);
  display: none;
  z-index: 45;
}
.nds-dropdown:hover .nds-dropdown__menu,
.nds-dropdown:focus-within .nds-dropdown__menu { display: grid; gap: 2px; }
.nds-dropdown__item {
  display: block;
  padding: 8px 10px;
  border-radius: var(--nds-radius-xs);
  text-decoration: none;
  color: var(--nds-color-fg-secondary);
}
.nds-dropdown__item:hover {
  background: var(--nds-color-bg-subtle);
  color: var(--nds-color-fg-primary);
}

.nds-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
}
.nds-modal[aria-hidden="false"] { display: block; }
.nds-modal__backdrop {
  position: absolute;
  inset: 0;
  background: oklch(0.2 0.01 80 / 0.55);
  backdrop-filter: blur(4px);
}
.nds-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(640px, calc(100% - 32px));
  margin: 8vh auto 0;
  border: 1px solid var(--nds-color-border-hair);
  border-radius: var(--nds-radius-lg);
  background: var(--nds-color-bg-surface);
  box-shadow: var(--nds-shadow-lg);
}
.nds-modal__header {
  padding: var(--nds-space-lg);
  border-bottom: 1px solid var(--nds-color-border-hair);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--nds-space-md);
}
.nds-modal__title {
  margin: 0;
  font-family: var(--nds-typo-font-heading);
  font-size: var(--nds-typo-size-lg);
  line-height: 1.2;
}
.nds-modal__content {
  padding: var(--nds-space-lg);
  color: var(--nds-color-fg-secondary);
}
.nds-modal__close {
  border: 1px solid var(--nds-color-border-hair);
  background: transparent;
  border-radius: var(--nds-radius-pill);
  min-width: 36px;
  min-height: 36px;
  cursor: pointer;
}

/* Form and questionnaire patterns. */
.nds-field {
  display: grid;
  gap: var(--nds-space-xs);
  min-width: 0;
}
.nds-field__label {
  color: var(--nds-color-fg-secondary);
  font-size: var(--nds-typo-size-sm);
  line-height: var(--nds-typo-line-tight);
}
.nds-field__required,
.nds-field__error {
  color: var(--nds-color-accent);
}
.nds-field__help,
.nds-field__error {
  font-size: var(--nds-typo-size-xs);
  line-height: 1.45;
}
.nds-field__help {
  color: var(--nds-color-fg-muted);
}
.nds-input,
.nds-textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--nds-color-border-hair);
  border-radius: var(--nds-radius-sm);
  background: var(--nds-color-bg-surface);
  color: var(--nds-color-fg-primary);
  font: inherit;
}
.nds-input {
  min-height: 44px;
  padding: 0 12px;
}
.nds-textarea {
  min-height: 96px;
  padding: 10px 12px;
  resize: vertical;
}
.nds-input:focus-visible,
.nds-textarea:focus-visible {
  outline: 2px solid var(--nds-color-accent);
  outline-offset: 2px;
}
.nds-input[aria-invalid="true"],
.nds-textarea[aria-invalid="true"] {
  border-color: var(--nds-color-accent);
}
.nds-option {
  border: 1px solid var(--nds-color-border-hair);
  border-radius: var(--nds-radius-md);
  background: var(--nds-color-bg-surface);
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  user-select: none;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.nds-option:hover {
  border-color: var(--nds-color-border-line);
}
.nds-option:focus-within {
  outline: 2px solid var(--nds-color-accent);
  outline-offset: 2px;
}
.nds-option input {
  margin-top: 3px;
  accent-color: var(--nds-color-accent);
}
.nds-option__content {
  min-width: 0;
}
.nds-option__label {
  display: block;
  color: var(--nds-color-fg-primary);
  font-weight: 500;
  line-height: 1.3;
}
.nds-option__description {
  display: block;
  margin-top: 4px;
  color: var(--nds-color-fg-secondary);
  font-size: var(--nds-typo-size-sm);
  line-height: 1.5;
}
.nds-option.is-selected {
  border-color: var(--nds-color-accent);
  background: color-mix(in oklab, var(--nds-color-accent-soft) 45%, white);
}
.nds-option.is-disabled {
  opacity: .6;
  cursor: not-allowed;
}

/* Reusable action row for modals, forms, and report controls. */
.nds-action-row {
  display: flex;
  gap: var(--nds-space-sm);
  flex-wrap: wrap;
  margin-top: var(--nds-space-md);
}
.nds-action-row--start {
  justify-content: flex-start;
}
.nds-action-row--end {
  justify-content: flex-end;
}
.nds-action-row--between {
  justify-content: space-between;
}

/* State cards for async and edge-case UI. */
.nds-state-card {
  border: 1px solid var(--nds-color-border-hair);
  border-radius: var(--nds-radius-lg);
  background: var(--nds-color-bg-surface);
  padding: var(--nds-space-lg);
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
}
.nds-state-card__title {
  margin: 0;
  font-family: var(--nds-typo-font-heading);
  font-size: var(--nds-typo-size-md);
  line-height: 1.2;
  color: var(--nds-color-fg-primary);
}
.nds-state-card__body {
  margin: 0;
  color: var(--nds-color-fg-secondary);
  font-size: var(--nds-typo-size-sm);
  line-height: 1.58;
}
.nds-state-card__actions {
  display: flex;
  gap: var(--nds-space-sm);
  flex-wrap: wrap;
}
.nds-state-card--error {
  border-color: color-mix(in oklab, var(--nds-color-accent) 35%, var(--nds-color-border-hair));
}
.nds-skeleton {
  display: grid;
  gap: 8px;
}
.nds-skeleton__line {
  height: 12px;
  border-radius: var(--nds-radius-pill);
  background: linear-gradient(
    90deg,
    color-mix(in oklab, var(--nds-color-border-hair) 25%, white),
    color-mix(in oklab, var(--nds-color-border-hair) 10%, white),
    color-mix(in oklab, var(--nds-color-border-hair) 25%, white)
  );
  background-size: 240% 100%;
  animation: nds-skeleton 1.2s ease-in-out infinite;
}
.nds-skeleton__line--lg { width: 92%; }
.nds-skeleton__line--md { width: 80%; }
.nds-skeleton__line--sm { width: 64%; }
@keyframes nds-skeleton {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

/* Report patterns. */
.nds-fit-card,
.nds-bar-scale {
  border: 1px solid var(--nds-color-border-hair);
  border-radius: var(--nds-radius-md);
  background: var(--nds-color-bg-surface);
  padding: 18px;
  min-width: 0;
}
.nds-fit-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--nds-space-sm);
  flex-wrap: wrap;
}
.nds-fit-card__title,
.nds-bar-scale__title {
  margin: 0;
  font-family: var(--nds-typo-font-heading);
  font-size: 17px;
  line-height: 1.2;
  color: var(--nds-color-fg-primary);
}
.nds-fit-card__meta {
  margin-top: var(--nds-space-sm);
  font-family: var(--nds-typo-font-mono);
  font-size: var(--nds-typo-size-xs);
  color: var(--nds-color-fg-muted);
  text-transform: uppercase;
  letter-spacing: var(--nds-typo-track-mono);
}
.nds-fit-card__body {
  margin: var(--nds-space-sm) 0 0;
  color: var(--nds-color-fg-secondary);
  font-size: var(--nds-typo-size-sm);
  line-height: 1.58;
}
.nds-bar-scale__list {
  margin-top: var(--nds-space-sm);
  display: grid;
  gap: var(--nds-space-sm);
}
.nds-bar-scale__item {
  display: grid;
  grid-template-columns: minmax(84px, 120px) minmax(0, 1fr) 44px;
  gap: var(--nds-space-sm);
  align-items: center;
}
.nds-bar-scale__label,
.nds-bar-scale__value {
  font-family: var(--nds-typo-font-mono);
  font-size: var(--nds-typo-size-xs);
  color: var(--nds-color-fg-muted);
  text-transform: uppercase;
  letter-spacing: var(--nds-typo-track-mono);
}
.nds-bar-scale__value {
  text-align: right;
}
.nds-bar-scale__track {
  height: 12px;
  border: 1px solid var(--nds-color-border-hair);
  border-radius: var(--nds-radius-pill);
  background: var(--nds-color-bg-subtle);
  overflow: hidden;
}
.nds-bar-scale__fill {
  display: block;
  height: 100%;
  border-radius: var(--nds-radius-pill);
  background: var(--bar-color, var(--nds-color-accent));
  transform: scaleX(var(--bar-scale, 0));
  transform-origin: left center;
}

@media (prefers-reduced-motion: reduce) {
  .nds-btn,
  .nds-option,
  .nds-skeleton__line {
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 560px) {
  .nds-action-row,
  .nds-state-card__actions {
    justify-content: stretch;
  }
  .nds-action-row .nds-btn,
  .nds-state-card__actions .nds-btn {
    flex: 1 1 100%;
  }
  .nds-bar-scale__item {
    grid-template-columns: 1fr 44px;
  }
  .nds-bar-scale__label {
    grid-column: 1 / -1;
  }
}
