.shell .fp-runtime-nav{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:.45rem 1rem;font-size:.82rem}
.fp-runtime-nav form,.fp-runtime-start{margin:0}
.fp-runtime-nav button{background:none;color:inherit;border:0;padding:0;cursor:pointer;font:inherit}
.fp-runtime-nav button:hover{text-decoration:underline}
.fp-runtime-card .fp-visual{background:#d6e8da}
.fp-runtime-page{width:min(100%,900px);margin:24px auto 0}
/* Give light panels their own ink when the surrounding shell uses light text. */
.fp-runtime-page > .panel {
  background-color: #fffdf6;
  color: #1e2b25;
}
.fp-runtime-page:has(> .panel[id$="-sources"]) {
  display: grid;
  gap: clamp(12px, 2vw, 20px);
}
.fp-runtime-page > .panel:has(h2) {
  scroll-margin-block-start: 1rem;
}
.fp-runtime-page > .panel:has(h2) h2 {
  margin-block: 0 .45em;
  line-height: 1.3;
}
.fp-runtime-page > .panel:has(h2) p {
  max-width: 70ch;
  margin-block: .6em 0;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.fp-runtime-page > .panel p a {
  color: #175646;
  text-decoration: underline;
  text-underline-offset: .17em;
}
.fp-runtime-page > .panel p a:visited { color: #554174; }
.fp-runtime-page > .panel p a:is(:hover, :active, :focus-visible) { color: #0b4031; }
.fp-runtime-page > .panel p a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.fp-runtime-page label:not(.choice){display:grid;gap:.3rem;margin:.65rem 0}
.fp-runtime-page input:not([type=hidden]),.fp-runtime-page textarea,.fp-runtime-page select{font:inherit;padding:.55rem;border:1px solid #9ba89f;border-radius:8px;max-width:min(100%,460px)}
.fp-runtime-page form{margin:.85rem 0}
.fp-runtime-page button{cursor:pointer;color:white;background:#24574e;border:0;border-radius:8px;padding:.45rem .9rem}
.fp-runtime-page table{width:100%;border-collapse:collapse}
.fp-runtime-page td,.fp-runtime-page th{border-bottom:1px solid #ddd;padding:.42rem;text-align:left}
@media(max-width:550px){.shell .fp-runtime-nav{gap:.25rem .58rem;font-size:.73rem}.shell:has(.fp-runtime-nav){gap:.5rem}}


/* Career quiz: keep the blueprint, the question and both controls in one frame. */
body[data-station=career][data-surface=quiz] {
  --quiz-ease: cubic-bezier(.22,.74,.24,1);
  --quiz-row: 46px;
}
body[data-surface=quiz]:has(.mh-career) main {
  min-height: 0;
  padding-block: 0 max(20px, env(safe-area-inset-bottom));
}
body[data-surface=quiz] .mh-sheet:has(.mh-career) {
  margin-block: 0;
}
.mh-sheet:has(.mh-career) > .progressRow {
  padding: 7px 18px;
  border-radius: 0;
  font-size: 13px;
}
.mh-sheet:has(.mh-career) .panel {
  padding: clamp(14px, 2vw, 27px);
}
.mh-sheet:has(.mh-career) .question legend {
  margin-bottom: 9px;
  font-size: clamp(19px, 1.55vw, 27px);
  line-height: 1.32;
}
.mh-sheet:has(.mh-career) .choice {
  min-height: var(--quiz-row);
  margin: 5px 0 0;
  padding: 6px 13px;
  border: 1px solid #ccd3dd;
  border-radius: 5px;
  line-height: 1.35;
}
.mh-sheet:has(.mh-career) .choice:has(input:checked) {
  border-color: #244ccd;
  box-shadow: inset 3px 0 #244ccd;
  background: #eef9d2;
}
.mh-sheet:has(.mh-career) .actions {
  margin-top: 16px;
  gap: 10px;
}
.mh-sheet:has(.mh-career) .actions .btn {
  min-height: 44px;
  padding: 7px 20px;
  border-radius: 5px;
}
.mh-sheet:has(.mh-career) .actions .alt {
  order: -1;
  margin-right: auto;
}
.mh-sheet:has(.mh-career) .actions button:only-child { margin-left: auto; }

@media (min-width: 861px) {
  body[data-station=career][data-surface=quiz] { --quiz-row: 44px; }
  body[data-station=career][data-surface=quiz] .shell { padding-block: 5px; }
  body[data-station=career][data-surface=quiz] main { padding-top: 0; }
  .mh-sheet:has(.mh-career) { width: 100%; max-width: 960px; }
  .mh-career .qs-back { min-height: 30px; }
  .mh-career .mh-stage {
    min-height: clamp(116px, 14vh, 150px);
    padding: 8px 6%;
  }
  .mh-career .mh-stage h1 { font-size: clamp(30px, 3.5vh, 42px); }
  .mh-career .mh-stage h1 span + span { margin-left: 8%; }
  .mh-career .mh-scene { margin-top: 4px; font-size: 13px; }
  .mh-career :is(.mh-person,.mh-model) img { object-position: center bottom; }
  .mh-sheet:has(.mh-career) .panel { padding: 14px 23px 16px; }
  .mh-sheet:has(.mh-career) .actions { margin-top: 12px; }
}
@media (min-width: 2050px) and (min-height: 950px) {
  body[data-station=career][data-surface=quiz] { --quiz-row: clamp(52px, 4.4vh, 68px); }
  .mh-sheet:has(.mh-career) { max-width: 1100px; }
  .mh-career .mh-stage { min-height: clamp(190px, 19vh, 290px); }
  .mh-career .mh-stage h1 { font-size: 56px; }
  .mh-sheet:has(.mh-career) .panel { padding: 22px 32px; }
}
@media (max-width: 860px) {
  body[data-station=career][data-surface=quiz] .shell { padding-block: 4px; }
  body[data-station=career][data-surface=quiz] { --quiz-row: 44px; }
  .mh-career .qs-back { min-height: 34px; }
  .mh-career .mh-stage {
    min-height: clamp(105px, 19svh, 180px);
    padding-block: 8px;
  }
  .mh-career .mh-stage h1 { font-size: clamp(28px, min(8cqw, 5.3svh), 49px); }
  .mh-career .mh-scene { margin-top: 5px; }
  .mh-sheet:has(.mh-career) .panel { padding: 11px 14px 14px; }
  .mh-sheet:has(.mh-career) .actions { margin-top: 12px; }
}
@media (max-width: 860px) and (max-height: 710px) {
  .mh-career .mh-stage { min-height: 94px; padding-block: 5px; }
  .mh-career .mh-stage h1 { font-size: 26px; }
  .mh-sheet:has(.mh-career) .question { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
  .mh-sheet:has(.mh-career) .choice { margin: 0; padding-inline: 8px; gap: 6px; }
  .mh-sheet:has(.mh-career) .choice:last-child:nth-of-type(odd) { grid-column: 1 / -1; }
}
@keyframes fp-quiz-enter {
  from { opacity: .66; translate: 0 5px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes fp-quiz-turn {
  from { opacity: .72; translate: var(--turn-start, 7px) 0; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes fp-blueprint-enter {
  from { opacity: .78; translate: -5px 0; }
  to { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .mh-career .mh-stage h1 { animation: fp-blueprint-enter 260ms var(--quiz-ease); }
  .mh-career :is(.mh-person,.mh-model) { animation: fp-quiz-enter 320ms var(--quiz-ease); }
  .mh-sheet:has(.mh-career) .question { animation: fp-quiz-enter 190ms var(--quiz-ease); }
  .mh-sheet[data-turn]:has(.mh-career) :is(.mh-stage h1,.mh-person,.mh-model) { animation: none; }
  .mh-sheet[data-turn]:has(.mh-career) .question {
    animation: fp-quiz-turn 180ms var(--quiz-ease);
  }
  .mh-sheet[data-turn=previous] { --turn-start: -7px; }
  .mh-sheet[data-turn]:has(.mh-career) .mh-scene { animation: fp-quiz-enter 180ms var(--quiz-ease); }
  .mh-sheet:has(.mh-career) :is(.choice,.actions .btn) { transition: background-color 140ms, box-shadow 140ms, translate 120ms; }
  .mh-sheet:has(.mh-career) .actions button:active:not(:disabled) { translate: 2px 1px; }
  .mh-sheet:has(.mh-career) .actions a:active { translate: -2px 1px; }
  .mh-sheet:has(.mh-career) .choice:active { translate: 0 1px; }
}

/* Payment handoff and order confirmation share the career report's editorial treatment. */
.fp-runtime-page:has(a[href*="/paypal/return?"],a[href^="https://www.sandbox.paypal.com/"],form[action="/paypal/capture"]) {
  --accent: #163bb8;
  max-width: 660px;
  margin-block: clamp(24px,8vh,100px);
  padding: clamp(20px,4vw,48px);
  background: #fff;
  color: #182744;
  border: 1px solid #c5cdd4;
  border-top: 4px solid var(--accent);
}
.fp-runtime-page:has(form[action="/paypal/capture"],a[href*="/paypal/return?"]) h1 + h1,
.fp-runtime-page:has(a[href*="/paypal/return?"]) .panel h1 { display: none; }
.fp-runtime-page:has(a[href*="/paypal/return?"]) .panel { padding: 0; background: none; border: 0; }
.fp-runtime-page:has(form[action="/paypal/capture"]) button,
.fp-runtime-page a.button[href*="/paypal/return?"], .fp-runtime-page a.button[href^="https://www.sandbox.paypal.com/"] {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 9px 20px; background: #163bb8; color: #fff; border-radius: 5px; text-decoration: none;
}
@media (prefers-reduced-motion: no-preference) {
  .fp-runtime-page:has(a[href*="/paypal/return?"],a[href^="https://www.sandbox.paypal.com/"],form[action="/paypal/capture"]) {
    animation: fp-quiz-enter 240ms ease-out;
  }
  .fp-runtime-page :is(.button,form[action="/paypal/capture"] button):active { translate: 0 1px; }
}

/* Size the approved layered portrait as a unit, keeping its title on the shoulder. */
body[data-station=personality][data-surface=quiz] .shell {padding-block:4px}
body[data-station=personality][data-surface=quiz] main {min-height:0;padding-top:0}
.pf-question-sheet {margin-block:0}
.pf-question-sheet .pf-question-head {width:min(100%,440px);margin-inline:auto}
.pf-question-sheet .pf-print {height:42cqw;min-height:0;margin-top:0}
.pf-question-sheet>.progressRow {padding:6px 16px;margin:0;font-size:13px}
.pf-question-sheet .panel {padding:12px 20px 16px}
.pf-question-sheet .question legend {font-size:clamp(19px,1.65vw,26px);margin-bottom:8px}
.pf-question-sheet .choice {min-height:44px;margin:4px 0 0;padding:5px 12px;line-height:1.35}
.pf-question-sheet .actions {margin-top:12px}
.pf-question-sheet .actions .alt {order:-1;margin-right:auto}
.pf-question-sheet .actions button:only-child {margin-left:auto}
@media(min-width:2050px) and (min-height:950px){
 .pf-question-sheet {max-width:1000px}.pf-question-sheet .pf-question-head {width:650px}
 .pf-question-sheet .choice {min-height:56px}
}
@media(max-width:650px){
 .pf-question-sheet .pf-print {height:58cqw}
 .pf-question-sheet .panel {padding:10px 14px 14px}
}
@media(max-width:650px) and (max-height:740px){
 .pf-question-sheet .pf-question-head {width:min(100%,240px)}
 .pf-question-sheet .question {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
 .pf-question-sheet .choice {margin:0}
 .pf-question-sheet .choice:last-child {grid-column:1 / -1}
}
@media(prefers-reduced-motion:no-preference){
 .pf-question-sheet:not([data-turn]) .pf-print {animation:fp-quiz-enter 260ms ease-out}
 .pf-question-sheet[data-turn] .question {animation:fp-quiz-turn 180ms ease-out}
 .pf-question-sheet[data-turn=previous] {--turn-start:-7px}
}

#portrait-tracks {
  background: #fffdf6; color: #1e2844; padding: clamp(20px, 4vw, 50px);
  scroll-margin-top: 12px;
}
#portrait-tracks h2 { margin: 0 0 1rem; font-size: clamp(1.6rem, 3vw, 2.5rem); }
.pp-tracks { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.pp-tracks article { display: flex; flex-direction: column; padding: clamp(16px,2vw,28px); background: #f0f2fe; border-top: 4px solid #233e9d; }
.pp-tracks article:last-child { background: #fff0aa; }
.pp-tracks article p { margin: 0 0 .8rem; line-height: 1.65; }
.pp-tracks h3 { margin: 0 0 .5rem; font-size: 1.35rem; }
.pp-tracks .pp-count { font-size: 2.5rem; font-weight: 800; line-height: 1; color: #243e97; }
.pp-tracks .pp-count small { font-size: .9rem; }
.pp-tracks article > div { margin-top: auto; display: grid; gap: .6rem; justify-items: start; }
.pp-tracks .btn { background: #253c92; color: white; min-height: 44px; padding: .55rem 1rem; border: 0; cursor: pointer; }
.pp-tracks a { color: #203476; text-decoration: underline; text-underline-offset: .2em; }
.pp-tracks :is(a,button):focus-visible { outline: 3px solid #122555; outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .pp-tracks .btn { transition: background-color .16s, transform .16s; }
  .pp-tracks .btn:hover { background: #17295f; }
  .pp-tracks .btn:active { transform: translateY(1px); }
}
@media(max-width: 740px) { .pp-tracks { grid-template-columns: 1fr; } }

#side-tracks {margin: 18px auto; padding: clamp(18px,3vw,38px); background:#fffdf5; color:#282820; border:1px solid #c3bba8; scroll-margin-top:12px}
#side-tracks h2 {font-size:clamp(1.55rem,3vw,2.35rem);line-height:1.18;margin:0 0 1rem}
.sj-track-list {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:16px}
.sj-track-list article {display:flex;flex-direction:column;align-items:start;padding:clamp(18px,3vw,28px);background:#f4efe1;border-top:4px solid #184674}
.sj-track-list article:last-child {background:#fff1b9}
.sj-track-list h3 {font-size:1.4rem;margin:.3rem 0}
.sj-track-list p {line-height:1.65;margin:.2rem 0 1rem}
.sj-track-list form {margin:auto 0 0}
.sj-track-list small {font-weight:750;color:#17436a}
.sj-track-list .btn, .sj-start a.btn {background:#173e63;color:white;min-height:44px}
#side-tracks a {color:#193f65;text-underline-offset:.2em;text-decoration:underline}
#side-tracks :is(a,button):focus-visible {outline:3px solid #17436a;outline-offset:3px}
body[data-surface=quiz]:has(.mh-side) .shell {padding-block:4px}
body[data-surface=quiz]:has(.mh-side) main {padding-block:0 20px;min-height:0}
.mh-sheet:has(.mh-side) {margin:0 auto;width:100%;max-width:960px}
.mh-side .qs-back {min-height:28px}
.mh-side .mh-stage {min-height:clamp(130px,16vh,178px);padding-block:7px}
.mh-side .mh-stage h1 {font-size:clamp(28px,4.2vh,46px)}
.mh-sheet:has(.mh-side) .progressRow {padding:6px 14px;border-radius:0}
.mh-sheet:has(.mh-side) .panel {padding:12px clamp(12px,2vw,24px)}
.mh-sheet:has(.mh-side) legend {font-size:clamp(18px,2vw,24px);line-height:1.3;margin-bottom:6px}
.mh-sheet:has(.mh-side) .choice {min-height:44px;padding:6px 10px;margin:4px 0 0;line-height:1.3}
.mh-sheet:has(.mh-side) .actions {margin-top:9px}
.mh-sheet:has(.mh-side) .actions .btn {min-height:44px;padding:6px 16px}
.mh-sheet:has(.mh-side) .actions .alt {order:-1;margin-right:auto}
.mh-sheet:has(.mh-side) .actions button:only-child {margin-left:auto}
@media(max-width:700px){.sj-track-list{grid-template-columns:1fr}.mh-side .mh-stage{min-height:clamp(96px,16svh,140px)}.mh-side .mh-stage h1{font-size:clamp(23px,4.8svh,36px)}}
@media(min-width:2100px) and (min-height:950px){.mh-sheet:has(.mh-side){max-width:1100px}.mh-side .mh-stage {min-height:clamp(190px,18vh,270px)}.mh-sheet:has(.mh-side) .choice{min-height:54px}}
@media(prefers-reduced-motion:no-preference){
  .mh-sheet:not([data-turn]) .mh-side .mh-stage{animation:fp-quiz-enter 240ms ease-out}
  .mh-sheet[data-turn]:has(.mh-side) .question{animation:fp-quiz-turn 180ms ease-out}
  #side-tracks .btn:active{transform:translateY(1px)}
}
.mh-sheet:has(.mh-side) .actions button:disabled { opacity:1; color:#3a4852; background:#e0e3df; border-color:#c8cec8; cursor:default; }

.fp-filing {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  padding: 0 18px 16px;
  text-align: center;
}
