/* Assessment-only presentation. The portal's existing palette and display preferences remain authoritative. */
html.pn-interest-open { overflow: hidden; }
html.pn-interest-open body { overflow: hidden; }
.interest-modal {
  --interest-canvas: var(--pn-brand);
  --interest-ink: var(--pn-on-primary);
  --interest-muted: var(--pn-border-subtle);
  position: fixed; inset: 0; width: 100%; max-width: none; height: 100vh; height: 100dvh;
  max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0;
  /* The dialog must not become an extra programmatic scroll container when a
     focused control is below the fold. Only the inner content/panel may scroll. */
  background: var(--interest-canvas); color: var(--interest-ink); overflow: clip; font-family: var(--pn-font-sans);
}
.interest-modal:not([open]) { display: none; }
.interest-modal::backdrop { background: var(--pn-brand); }
.interest-modal-shell { display: flex; flex-direction: column; height: 100%; min-height: 0; overflow: clip; }
.interest-modal-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex: 0 0 auto; padding: 18px 28px 8px; }
.interest-modal-progress { min-width: 0; }
#interest-modal-counter { color: var(--interest-ink); font-size: clamp(1.25rem, 1.7vw, 1.75rem); font-weight: 600; letter-spacing: .025em; line-height: 1.3; font-variant-numeric: tabular-nums; }
.interest-close { display: grid; place-items: center; flex: 0 0 auto; width: 48px; height: 48px; padding: 10px; border: 1px solid var(--pn-border-control); border-radius: 50%; background: transparent; color: var(--interest-ink); cursor: pointer; }
.interest-close svg { display: block; width: 28px; height: 28px; }
.interest-close:hover { background: var(--pn-primary); border-color: var(--pn-primary); color: var(--pn-on-primary); }
.interest-modal-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
.interest-modal-content { width: min(100% - 48px, 880px); margin-inline: auto; padding-block: clamp(14px, 2.5dvh, 30px) 24px; }
.interest-question-title { margin: 0 0 clamp(22px, 3.4dvh, 36px); color: var(--interest-ink); font-size: clamp(1.4rem, 2.1vw, 2rem); line-height: 1.3; text-align: center; letter-spacing: -.025em; }
.interest-question-hint { max-width: 68ch; margin: 14px auto 28px; font-size: .9375rem; line-height: 1.65; color: var(--interest-muted); text-align: center; }
.interest-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); align-items: stretch; }
.interest-choice-card { position: relative; display: flex; flex-direction: column; width: 100%; min-width: 0; min-height: clamp(320px, 54dvh, 470px); padding: 0; border: 2px solid transparent; border-radius: 14px; overflow: hidden; background: var(--pn-surface-soft); color: var(--pn-text); text-align: center; cursor: pointer; font: inherit; box-shadow: 0 6px 18px rgb(23 43 77 / .1); }
.interest-choice-card:hover { border-color: var(--pn-on-primary); }
.interest-choice-card[aria-pressed="true"] { border-color: var(--pn-on-primary); box-shadow: 0 0 0 3px var(--pn-primary); }
.interest-choice-card[aria-disabled="true"] { cursor: default; }
.interest-choice-illustration { position: relative; display: block; width: 100%; min-height: 11rem; flex: 1 1 0; background: var(--pn-surface-soft); }
.interest-choice-illustration img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.interest-choice-copy { display: grid; place-items: center; min-height: 7.5rem; padding: 20px 28px 24px; flex: 0 0 auto; font-size: clamp(1rem, 1.2vw, 1.1875rem); font-weight: 550; line-height: 1.5; overflow-wrap: break-word; }
.interest-choice-confirm { position: absolute; top: 14px; right: 14px; padding: 5px 10px; border-radius: 5px; background: var(--pn-primary); color: var(--pn-on-primary); font-size: .8125rem; font-weight: 600; line-height: 1.5; }
.interest-choice-confirm:empty { display: none; }
.interest-gender-grid .interest-choice-copy { min-height: 5rem; }
.interest-age-grid { gap: 16px 24px; }
.interest-age-card { min-height: 88px; justify-content: center; }
.interest-age-card .interest-choice-copy { min-height: 84px; padding: 20px 24px; }
.interest-age-card .interest-choice-confirm { display: none; }
.interest-profile-jumps { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 18px; }
.interest-profile-jumps .interest-button { flex: 1; }
.interest-result-profile { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 20px; border-top: 1px solid var(--pn-border-subtle); margin-top: 24px; padding-top: 12px; }
.interest-result-profile p { color: var(--pn-text-muted); font-size: .875rem; }
.interest-profile-edit { appearance: none; font: inherit; font-size: .875rem; border: 0; padding: 0; background: transparent; cursor: pointer; }
.interest-question-controls { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin-top: 16px; }
.interest-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; min-width: 44px; padding: 11px 20px; border: 1px solid var(--pn-border-control); border-radius: 6px; background: var(--pn-surface); color: var(--pn-primary); font: inherit; font-size: .9375rem; font-weight: 600; line-height: 1.5; text-align: center; cursor: pointer; white-space: normal; }
.interest-button:hover { border-color: var(--pn-primary); background: var(--pn-surface-soft); }
.interest-button-primary { background: var(--pn-primary); color: var(--pn-on-primary); border-color: var(--pn-primary); }
.interest-button-primary:hover { color: var(--pn-on-primary); background: var(--pn-primary-hover); border-color: var(--pn-primary-hover); }
.interest-button-quiet { border-color: transparent; background: transparent; font-weight: 500; padding-inline: 8px; }
.interest-button-quiet:hover { border-color: transparent; background: transparent; text-decoration: underline; text-underline-offset: 4px; }
.interest-button:disabled { background: var(--pn-disabled-bg); color: var(--pn-disabled-text); border-color: var(--pn-border-subtle); cursor: not-allowed; }

:is(.interest-button,.interest-close,.interest-choice-card,.interest-text-link):focus-visible, .interest-options summary:focus-visible, .interest-intro-method summary:focus-visible { outline: none; }
.interest-question-title:focus-visible { outline: none; }
.interest-modal :is(.interest-close,.interest-choice-card):focus-visible { border-color: var(--interest-ink); }
.interest-choice-card:focus-visible .interest-choice-copy { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.interest-modal .interest-question-controls > .interest-button { min-height: 44px; padding: 8px 5px; background: transparent; border-color: transparent; color: var(--interest-ink); font-size: .875rem; font-weight: 400; }
.interest-modal .interest-question-controls > .interest-button:disabled { color: var(--pn-border-control); cursor: default; text-decoration: none; }
.interest-options { position: relative; }
.interest-options > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 5px; color: var(--interest-ink); font-size: .875rem; line-height: 1.5; list-style: none; cursor: pointer; border-radius: 5px; }
.interest-options > summary::-webkit-details-marker { display: none; }
.interest-options > summary::after { content: ''; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 2px; }
.interest-options[open] > summary::after { transform: rotate(225deg) translate(-1px,-1px); }
.interest-options > summary:hover { text-decoration: underline; text-underline-offset: 4px; }
/* Repeated taps must not select the navigation label and paint a pale text
   rectangle. Keyboard focus uses the label without adding another boundary. */
.interest-question-controls > .interest-button, .interest-options > summary { appearance: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.interest-modal .interest-question-controls > .interest-button:is(:hover, :active, :focus), .interest-modal .interest-options > summary:is(:hover, :active, :focus) { background: transparent; box-shadow: none; }
.interest-modal .interest-question-controls > .interest-button:focus-visible, .interest-modal .interest-options > summary:focus-visible { outline: none; box-shadow: none; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.interest-options-panel { position: fixed; z-index: 2; top: 90px; right: max(24px, calc((100vw - 880px) / 2)); width: min(560px, calc(100vw - 48px)); max-height: calc(100dvh - 164px); padding: 24px; overflow: auto; overscroll-behavior: contain; border: 1px solid var(--pn-border-control); border-radius: 12px; background: var(--pn-surface); color: var(--pn-text); box-shadow: 0 18px 56px rgb(23 43 77 / .25); }
.interest-options-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.interest-options-heading h3 { font-size: 1.125rem; line-height: 1.4; margin: 0; }
.interest-options-heading .interest-button { flex: 0 0 auto; font-size: .875rem; min-height: 44px; }
.interest-options-panel > .interest-small:last-child { margin-top: 18px; }
.interest-jump-grid { display: grid; grid-template-columns: repeat(8,minmax(0,1fr)); gap: 8px; margin-top: 20px; }
.interest-button-jump { min-width: 0; padding: 8px 4px; min-height: 44px; font-weight: 500; border-color: var(--pn-border-subtle); color: var(--pn-text-muted); }
.interest-button-jump[data-answered="true"] { background: var(--pn-surface-soft); border-color: var(--pn-primary); color: var(--pn-primary); }
.interest-button-jump[aria-current] { box-shadow: inset 0 -3px 0 var(--pn-primary); }
.interest-modal-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--pn-border-subtle); }
.interest-modal-footer .interest-button { font-size: .875rem; }
.interest-storage-status { margin: 16px 0 0; color: var(--interest-ink); font-size: .875rem; line-height: 1.6; }
.interest-live { color: var(--pn-info); font-size: .9375rem; line-height: 1.6; margin-block: 12px; }
.interest-modal .interest-live { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.interest-modal[data-interest-results] { --interest-canvas: var(--pn-page); --interest-ink: var(--pn-text); --interest-muted: var(--pn-text-muted); }
.interest-modal[data-interest-results] :is(.interest-close,.interest-choice-card):focus-visible { border-color: var(--pn-text); }
html[data-pn-display] .interest-modal { --interest-canvas: var(--pn-page); --interest-ink: var(--pn-text); --interest-muted: var(--pn-text-muted); }
html[data-pn-display] .interest-choice-card { border-color: var(--pn-border-control); }
html[data-pn-display] .interest-choice-card[aria-pressed="true"] { border-color: var(--pn-primary); }
.interest-small { font-size: .875rem; color: var(--pn-text-muted); line-height: 1.65; }
.interest-text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--pn-primary); text-decoration: underline; text-underline-offset: 4px; font-weight: 500; line-height: 1.5; }
.interest-eyebrow { font-size: .8125rem; font-weight: 600; color: var(--pn-primary); letter-spacing: .035em; margin-bottom: 14px; }
.interest-notice { border-left: 3px solid var(--pn-primary); padding: 16px 20px; background: var(--pn-surface-soft); font-size: .9375rem; line-height: 1.65; margin-block: 22px; }
.interest-intro-page, .interest-results-page { padding-block: 28px 72px; }
.interest-intro-page .breadcrumbs { margin-bottom: 40px; }
.interest-intro-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px,5vw,72px); align-items: center; }
.interest-intro-copy h1 { font-size: clamp(2rem,3.5vw,3.2rem); color: var(--pn-brand); line-height: 1.15; margin-bottom: 24px; letter-spacing: -.04em; }
.interest-intro-copy > p { max-width: 60ch; margin-block: 16px; line-height: 1.75; }
.interest-intro-copy .interest-intro-lead { font-size: clamp(1.25rem,1.8vw,1.5rem); color: var(--pn-brand); font-weight: 500; line-height: 1.45; }
.interest-intro-copy > .interest-button { margin-top: 12px; }
.interest-intro-illustration { display: block; width: 100%; max-width: 640px; height: auto; justify-self: center; border: 1px solid var(--pn-border-subtle); border-radius: var(--pn-radius-panel); }
.interest-intro-details { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--pn-border-subtle); }
.interest-detail-number { display: block; font-size: .875rem; color: var(--pn-primary); margin-bottom: 16px; }
.interest-intro-details h2 { font-size: 1.125rem; line-height: 1.5; margin-bottom: 12px; color: var(--pn-brand); }
.interest-intro-details p { color: var(--pn-text-muted); font-size: .9375rem; line-height: 1.7; }
.interest-intro-method { border-top: 1px solid var(--pn-border-subtle); margin-top: 40px; padding-top: 16px; max-width: 90ch; }
.interest-intro-method summary { min-height: 44px; padding-block: 10px; font-weight: 600; color: var(--pn-brand); cursor: pointer; }
.interest-intro-method p { margin-top: 14px; line-height: 1.75; color: var(--pn-text-muted); }
/* Result page: the portal container supplies the twelve shared 24px tracks.
   Every top-level result block uses the same centered eight-track area. */
.interest-results-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--pn-space-6);
  align-items: start;
}
.interest-results-grid > * { grid-column: 3 / span 8; min-width: 0; }
.interest-results-page .breadcrumbs {
  align-items: baseline;
  gap: var(--pn-space-2);
  margin: 0 0 var(--pn-space-8);
  font-size: .875rem;
  line-height: 1.25rem;
  font-weight: 400;
}
.interest-results-header { display: grid; min-width: 0; margin: 0 0 var(--pn-space-8); }
.interest-results-header .interest-eyebrow {
  margin: 0 0 var(--pn-space-2);
  font-size: .875rem;
  line-height: 1.25rem;
  font-weight: 500;
  letter-spacing: normal;
}
.interest-results-header h1 {
  margin: 0 0 var(--pn-space-3);
  color: var(--pn-brand);
  font-size: 2.5rem;
  line-height: 3rem;
  font-weight: var(--pn-heading-weight);
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
.interest-results-header .interest-results-description {
  margin: 0;
  color: var(--pn-text-muted);
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 400;
}
/* This content layout also serves the storage-failure result inside the dialog;
   the page's column placement remains scoped to .interest-results-grid. */
.interest-results-content { display: grid; gap: var(--pn-space-8); min-width: 0; }
.interest-results-content > * { min-width: 0; }
.interest-results-content :is(h2,p,ul) { margin: 0; }
.interest-results-content h2 {
  color: var(--pn-brand);
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: var(--pn-heading-weight);
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
.interest-results-content p { font-size: 1rem; line-height: 1.5rem; font-weight: 400; }
.interest-profession-result { display: grid; min-width: 0; }
.interest-result-status-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: baseline;
  column-gap: var(--pn-space-3);
}
.interest-results-content .interest-result-status-label,
.interest-results-content .interest-result-answer-count { font-size: .875rem; line-height: 1.25rem; }
.interest-results-content .interest-result-status-label { color: var(--pn-text-muted); font-weight: 500; }
.interest-results-content .interest-result-answer-count { color: var(--pn-primary); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.interest-result-progress {
  appearance: none;
  display: block;
  width: 100%;
  height: .375rem;
  margin-top: var(--pn-space-2);
  border: 0;
  border-radius: var(--pn-radius-pill);
  overflow: hidden;
  background: var(--pn-border-subtle);
  color: var(--pn-primary);
}
.interest-result-progress::-webkit-progress-bar { background: var(--pn-border-subtle); border-radius: var(--pn-radius-pill); }
.interest-result-progress::-webkit-progress-value { background: var(--pn-primary); border-radius: var(--pn-radius-pill); }
.interest-result-progress::-moz-progress-bar { background: var(--pn-primary); border-radius: var(--pn-radius-pill); }
.interest-results-content .interest-result-explanation { margin-top: var(--pn-space-3); color: var(--pn-text-muted); }
.interest-profession-card {
  min-width: 0;
  margin-top: var(--pn-space-6);
  border: 1px solid var(--pn-border-subtle);
  border-radius: var(--pn-radius-panel);
  background: var(--pn-surface);
  overflow: hidden;
}
.interest-profession-featured { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.interest-profession-visual { grid-column: 1 / span 4; display: grid; align-items: center; min-width: 0; background: var(--pn-surface-soft); }
.interest-profession-visual img { display: block; width: 100%; height: auto; object-fit: contain; }
.interest-profession-copy { grid-column: 5 / span 8; display: grid; align-content: start; gap: var(--pn-space-3); min-width: 0; padding: var(--pn-space-6); }
.interest-profession-heading { display: grid; gap: var(--pn-space-1); min-width: 0; }
.interest-profession-card .interest-profession-heading h2 {
  font-size: 1.75rem;
  line-height: 2.25rem;
  font-weight: var(--pn-heading-weight);
  letter-spacing: -.025em;
}
.interest-profession-card .interest-profession-label { color: var(--pn-text-muted); font-size: .875rem; line-height: 1.25rem; font-weight: 500; }
.interest-wave-mark { text-decoration-line: underline; text-decoration-style: wavy; text-decoration-color: var(--pn-primary); text-decoration-thickness: 2px; text-underline-offset: .2em; text-decoration-skip-ink: auto; }
.interest-profession-evidence-block { display: grid; gap: var(--pn-space-2); }
.interest-profession-evidence { display: grid; gap: var(--pn-space-2); padding-left: var(--pn-space-6); color: var(--pn-text-muted); font-size: .9375rem; line-height: 1.5rem; }
.interest-profession-trial { display: grid; gap: var(--pn-space-2); border-left: 3px solid var(--pn-primary); padding: var(--pn-space-3) var(--pn-space-4); background: var(--pn-surface-soft); }
.interest-profession-trial strong { color: var(--pn-brand); font-size: .875rem; line-height: 1.25rem; font-weight: 600; }
.interest-profession-trial p { font-size: 1rem; line-height: 1.5rem; }
.interest-results-content .interest-button {
  min-height: var(--pn-control-min-size);
  padding: .8125rem var(--pn-space-4);
  border-radius: var(--pn-radius-control);
  font-size: .875rem;
  line-height: 1.25rem;
  font-weight: 600;
}
.interest-results-content .interest-text-link { min-height: var(--pn-control-min-size); font-size: .875rem; line-height: 1.25rem; font-weight: 600; overflow-wrap: anywhere; }
.interest-result-actions { display: grid; grid-template-columns: max-content minmax(0,1fr); align-items: center; gap: var(--pn-space-4) var(--pn-space-6); }
.interest-result-actions > * { min-width: 0; justify-self: start; }
.interest-result-primary-actions { margin-top: var(--pn-space-4); }
.interest-catalogue-link { width: fit-content; max-width: 100%; }
.interest-result-overview { display: grid; gap: var(--pn-space-4); padding: var(--pn-space-6); background: var(--pn-surface-soft); border: 1px solid var(--pn-border-subtle); border-radius: var(--pn-radius-panel); }
.interest-results-content .interest-result-lead { font-size: 1rem; line-height: 1.5rem; font-weight: 500; }
.interest-matched-facets { color: var(--pn-text-muted); }
.interest-matched-facets .interest-wave-mark { color: var(--pn-brand); text-decoration-thickness: 1px; }
.interest-chart { display: grid; gap: var(--pn-space-6); margin-block: var(--pn-space-2); }
.interest-chart-row > div { display: flex; align-items: baseline; justify-content: space-between; gap: var(--pn-space-4); margin-bottom: var(--pn-space-2); font-size: .9375rem; line-height: 1.5rem; }
.interest-group-link { color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.interest-group-link:hover { color: var(--pn-primary); }
.interest-chart-row strong { white-space: nowrap; color: var(--pn-primary); font-variant-numeric: tabular-nums; }
.interest-chart-row meter { display: block; width: 100%; height: .375rem; border: 0; border-radius: 0; appearance: none; background: var(--pn-border-subtle); }
.interest-chart-row meter::-webkit-meter-bar { height: .375rem; background: var(--pn-border-subtle); border: 0; border-radius: 0; }
.interest-chart-row meter::-webkit-meter-optimum-value { background: var(--pn-primary); border-radius: 0; }
.interest-chart-row meter::-moz-meter-bar { background: var(--pn-primary); }
.interest-chart-row small { display: block; font-size: .75rem; line-height: 1rem; color: var(--pn-text-muted); margin-top: var(--pn-space-2); }
.interest-result-next, .interest-result-method { display: grid; gap: var(--pn-space-4); border-top: 1px solid var(--pn-border-subtle); padding-top: var(--pn-space-6); }
.interest-result-method > summary { min-height: var(--pn-control-min-size); padding-block: var(--pn-space-3); color: var(--pn-brand); font-size: 1rem; font-weight: 500; line-height: 1.5rem; cursor: pointer; }
.interest-result-method > summary:hover { text-decoration: underline; text-underline-offset: 4px; }
.interest-result-method p { color: var(--pn-text-muted); }
.interest-result-method[open] > p + p { margin-top: var(--pn-space-4); }
.interest-results-content .interest-result-profile { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--pn-space-2) var(--pn-space-6); margin: 0; padding-top: var(--pn-space-3); }
.interest-results-content .interest-result-profile p { font-size: .875rem; line-height: 1.25rem; }
.interest-results-content .interest-small { font-size: .875rem; line-height: 1.25rem; }
#interest-results-status { margin: var(--pn-space-4) 0 0; }
#interest-results-status:empty { display: none; }

@media (max-width: 1023px) {
  .interest-results-grid > * { grid-column: 1 / -1; }
}
@media (max-width: 319px) {
  .interest-results-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .interest-intro-grid { grid-template-columns: minmax(0,1fr); }
  .interest-intro-details { gap: 24px; }
}
@media (max-width: 640px) {
  .interest-modal-header { padding: 12px 16px 4px; gap: 12px; }
  .interest-modal-content { width: calc(100% - 32px); padding-top: 16px; }
  .interest-question-title { font-size: 1.375rem; margin-bottom: 20px; }
  .interest-choice-grid { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .interest-choice-card { min-height: 0; flex-direction: row; align-items: stretch; text-align: left; border-radius: 10px; }
  .interest-choice-illustration { width: 34%; min-height: 7.5rem; flex: 0 0 34%; }
  .interest-choice-copy { min-height: 7.5rem; flex: 1 1 auto; padding: 18px 18px 18px 10px; font-size: 1rem; line-height: 1.5; }
  .interest-choice-confirm { top: 6px; left: 6px; right: auto; font-size: .75rem; padding: 3px 6px; }
  .interest-age-grid { gap: 12px; }
  .interest-age-card { min-height: 60px; text-align: center; }
  .interest-age-card .interest-choice-copy { min-height: 56px; padding: 14px 18px; }
  .interest-question-controls { gap: 8px 20px; margin-top: 12px; }
  .interest-options-panel { top: 78px; right: 16px; width: calc(100vw - 32px); max-height: calc(100dvh - 144px); padding: 20px; }
  .interest-jump-grid { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; }
  .interest-modal-footer { align-items: stretch; flex-direction: column; gap: 8px; margin-top: 20px; }
  .interest-intro-details { grid-template-columns: minmax(0,1fr); margin-top: 36px; gap: 28px; }
  .interest-detail-number { margin-bottom: 8px; }
  .interest-profession-visual, .interest-profession-copy { grid-column: 1 / -1; }
  .interest-profession-visual img { max-height: 11rem; }
  .interest-result-actions { grid-template-columns: minmax(0,1fr); }
  .interest-result-actions > .interest-button { justify-self: stretch; }
  .interest-result-overview { padding: var(--pn-space-6); }
}
@media (max-width: 380px) {
  .interest-choice-illustration { width: 29%; flex-basis: 29%; }
  .interest-choice-copy { padding-right: 12px; }
  .interest-question-controls { gap: 8px 12px; }
}
@media (max-height: 600px) and (min-width: 641px) {
  .interest-modal-header { padding-block: 8px 0; }
  .interest-modal-content { padding-top: 10px; padding-bottom: 12px; }
  .interest-question-title { margin-bottom: 18px; }
  .interest-choice-card { min-height: 0; }
  .interest-choice-illustration { min-height: clamp(100px, 25dvh, 150px); }
  .interest-choice-copy { min-height: 5rem; padding: 14px 20px 18px; font-size: 1rem; }
  .interest-age-grid { gap: 12px 16px; }
  .interest-age-card { min-height: 60px; }
  .interest-age-card .interest-choice-copy { min-height: 56px; padding: 14px 18px; }
  .interest-question-controls { margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) { .interest-choice-card, .interest-close { transition: none; } }
html[data-pn-motion="off"] .interest-choice-card, html.reduce-motion .interest-choice-card, html[data-pn-motion="off"] .interest-close { transition: none; }
@media (forced-colors: active) {
  .interest-modal { --interest-canvas: Canvas; --interest-ink: CanvasText; --interest-muted: CanvasText; }
  .interest-close, .interest-choice-card, .interest-options-panel { border: 1px solid ButtonText; }
  .interest-choice-card[aria-pressed="true"], .interest-button-jump[data-answered="true"] { outline: 2px solid Highlight; }
}
/* BVI themes also apply to native disclosure focus; ordinary test colors stay unchanged. */
html.bvi-active .bvi-body .interest-modal :focus-visible { outline-color: var(--bvi-site-color) !important; }
