:root {
  color-scheme: light;
  --paper: #fbf8f4;
  --surface: #fffcf8;
  --ink: #332332;
  --plum: #542639;
  --berry: #702c49;
  --muted: #705d63;
  --line: #d6c8c5;
  --rose: #eddbd9;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Gill Sans', 'Segoe UI', system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.55 var(--sans); }
header { max-width: 1190px; margin: auto; padding: 6px 4vw; min-height: 75px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
header img { display: block; width: 92px; mix-blend-mode: multiply; }
header nav { display: flex; gap: 2px; }
header nav a { padding: 9px 11px; color: var(--muted); font-size: .875rem; text-decoration: none; }
header nav a[aria-current] { background: var(--rose); color: var(--plum); font-weight: 700; border-radius: 3px; }
main { margin: 18px auto 64px; padding: 0 4vw; max-width: 1190px; }
a { color: var(--berry); text-underline-offset: .23em; }
#back-home { color: var(--muted); display: inline-block; font-size: .875rem; margin: 0 0 23px; }
#panel { margin: 0 auto; }
.topline { display: flex; align-items: baseline; justify-content: space-between; gap: 1em; }
.topline { font-size: .88rem; color: var(--muted); }
.topline > :first-child { color: var(--plum); font-weight: 650; }
.progress { display: flex; gap: 4px; margin: 10px 0 0; }
.progress span { flex: 1; height: 3px; background: #e3d7d2; }
.progress .filled { background: var(--berry); }
.spread { display: grid; grid-template-columns: minmax(0, 1fr) minmax(235px, .46fr); margin-top: 34px; align-items: start; gap: clamp(28px, 6vw, 85px); }
.sheet { min-width: 0; }
.kicker, .notebook-label { color: var(--berry); font: 650 .75rem/1.5 var(--sans); letter-spacing: .09em; text-transform: uppercase; }
h1, h2, h3 { text-wrap: pretty; }
h1, h2 { font-family: var(--serif); color: var(--plum); font-weight: 400; }
h1 { margin: 9px 0 17px; font-size: clamp(2.2rem, 4.2vw, 3.85rem); line-height: 1.06; letter-spacing: -.035em; }
h1:focus { outline: none; }
h2 { font-size: clamp(1.55rem, 2.7vw, 2.25rem); line-height: 1.12; letter-spacing: -.025em; margin: 0 0 18px; }
h3 { color: var(--plum); font-size: 1.02rem; line-height: 1.45; margin: 0 0 .35em; }
.lead { color: #64535a; max-width: 64ch; margin: 0 0 23px; font-size: 1.04rem; line-height: 1.6; }
fieldset { min-width: 0; border: 0; margin: 0; padding: 0; }
.choice { position: relative; cursor: pointer; padding: 13px 17px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); display: flex; align-items: baseline; gap: 13px; margin: 8px 0; }
.choice:has(:checked) { background: #f2e5e5; border-color: var(--berry); box-shadow: inset 3px 0 var(--berry); }
.choice:hover { border-color: #957784; }
.choice input { flex: none; accent-color: var(--berry); width: 17px; height: 17px; align-self: flex-start; margin: 4px 0 0; }
.choice strong { font-weight: 550; display: block; }
.choice small { display: block; font-size: .90rem; line-height: 1.45; color: var(--muted); margin-top: 3px; }
:focus-visible, .choice:focus-within { outline: 2px solid #9c5471; outline-offset: 3px; }
.controls, .result-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 19px; }
.controls .primary { margin-left: auto; }
button, summary { cursor: pointer; }
button { font: inherit; }
.primary { min-height: 46px; padding: 10px 24px; background: var(--plum); color: #fff9f6; border-radius: 4px; border: 1px solid var(--plum); font-weight: 600; }
.primary:disabled { background: #e7deda; color: #736368; border-color: transparent; cursor: default; }
.plain { border: 0; background: transparent; color: var(--berry); text-decoration: underline; text-underline-offset: .22em; padding: 9px 0; min-height: 44px; }
.notebook { color: #fff7f2; background: #4d2639; border-radius: 4px; padding: clamp(20px, 3vw, 37px); border-top: 4px solid #b47d8c; }
.notebook-label { color: #e3bfc4; font-size: .70rem; letter-spacing: .14em; }
.notebook h2 { color: inherit; font-size: clamp(1.6rem, 2.6vw, 2.25rem); margin: 14px 0 20px; }
.notebook ol { list-style: none; padding: 0; margin: 0; }
.notebook li { display: flex; align-items: baseline; gap: .65em; padding: 10px 0; border-top: 1px solid #745265; font-size: .95rem; }
.mark { width: 12px; height: 12px; display: inline-grid; place-content: center; line-height: 1; font-size: .8rem; color: #f4c8ce; flex-shrink: 0; border: 1px solid #bc94a0; border-radius: 50%; }
li[aria-current] .mark { background: #ecc5c9; color: #4d2639; }
.notebook p { font-size: .86rem; line-height: 1.45; color: #e1ccd0; margin: 14px 0 0; }
@media(max-width:760px) {
  header { min-height: 60px; padding: 4px 18px; }
  header img { width: 69px; }
  main { margin: 12px auto 40px; padding: 0 18px; }
  #back-home { margin-bottom: 16px; }
  .spread { grid-template-columns: minmax(0,1fr); gap: 25px; margin-top: 21px; }
  .notebook { padding: 17px 20px; }
  .notebook h2 { font-size: 1.35rem; margin: 6px 0 8px; }
  .notebook-label { display: none; }
  .notebook li { padding: 5px 0; }
  .lead { margin-bottom: 14px; font-size: 1rem; }
  h1 { font-size: clamp(1.9rem,7.8vw,2.8rem); line-height: 1.1; margin: 7px 0 14px; }
  .choice { padding: 11px 12px; gap: 10px; }
  .controls { margin-top: 12px; }
}
.privacy-note { color: var(--muted); font-size: .91rem; max-width: 62ch; margin: -4px 0 19px; }

/* The report uses a plum cover, an ivory action note and a compact financial snapshot. */
.sample-bar, .report-nav, .result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.sample-bar { justify-content: space-between; color: var(--muted); font-size: .9rem; border-block: 1px solid var(--line); padding: 3px 0; margin-bottom: 16px; }
.sample-bar a, .report-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.result-head { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); align-items: center; gap: clamp(30px,5vw,72px); background: linear-gradient(112deg,#3d1c2f,#562a41 68%,#61344a); border-radius: 9px; padding: clamp(28px,4.8vw,62px); }
.result-head .kicker { color: #eeccd1; font-size: .82rem; }
.result-head h1 { color: #fff6ec; font-size: clamp(2.2rem,4.2vw,3.9rem); line-height: 1.09; max-width: 22ch; margin: 12px 0 16px; }
.priority-copy > p { color: #f2e3e5; margin: 0; max-width: 57ch; }
.first-note { position: relative; color: var(--ink); background: #fff9ee; border-radius: 2px 2px 10px 2px; border-top: 4px solid #cf9eab; padding: clamp(19px,2.7vw,34px); box-shadow: 4px 5px 0 #b97e90, 7px 8px 0 #482235; transform: rotate(-.8deg); }
.first-note::before { content: ''; position: absolute; top: -14px; right: 20px; width: 10px; height: 25px; border: 2px solid #916b5c; border-radius: 8px; transform: rotate(12deg); }
.note-label { color: #773751; font: 650 .83rem/1.5 var(--sans); text-transform: uppercase; letter-spacing: .09em; }
.first-note p { margin: 10px 0 13px; font: 400 clamp(1.12rem,1.65vw,1.4rem)/1.38 var(--serif); }
.first-note a { display: inline-flex; align-items: center; min-height: 44px; border-top: 1px solid #ddc9bd; width: 100%; padding-top: 8px; font-weight: 650; font-size: .94rem; }
.report-nav { justify-content: flex-end; font-size: .9rem; margin: 7px 0 0; }
.report-section { margin-top: clamp(32px,5vw,62px); scroll-margin-top: 16px; }
.report-nav + .report-section { margin-top: 12px; }
.report-section h2 { margin-bottom: clamp(16px,2vw,23px); }
.report-section > p { max-width: 72ch; }
.snapshot-grid { margin: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.snapshot-grid > div { padding: clamp(16px,1.9vw,25px); border-right: 1px solid var(--line); }
.snapshot-grid > div:last-child { border-right: 0; }
.snapshot-grid dt { color: var(--muted); font-size: .875rem; font-weight: 550; }
.snapshot-grid dd { margin: 8px 0 0; color: var(--plum); font: 400 clamp(1.22rem,2.15vw,1.7rem)/1.18 var(--serif); }
.snapshot-grid .unanswered { font: 400 1rem/1.4 var(--sans); color: var(--muted); }
.reserve-scale { display: grid; grid-template-columns: repeat(4,1fr); gap: 3px; margin-top: 14px; max-width: 230px; }
.reserve-scale span { border-top: 4px solid #e1d6d0; padding-top: 4px; text-align: center; color: var(--muted); font: 400 .76rem/1.3 var(--sans); white-space: nowrap; }
.reserve-scale .chosen { border-color: var(--berry); color: var(--plum); font-weight: 700; }
.goal-line { margin: 15px 0 0; color: var(--muted); }
.goal-line strong { color: var(--plum); margin-right: .65em; }
.plan-layout { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); gap: clamp(25px,5vw,68px); align-items: start; }
.path-list { padding: 0; margin: 0; list-style: none; }
.path-list li { position: relative; display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 14px; padding-bottom: 24px; }
.path-list li:last-child { padding-bottom: 0; }
.path-list li:not(:last-child)::before { content: ''; position: absolute; top: 32px; bottom: 0; left: 15px; border-left: 1px solid #cba5b2; }
.step-num { display: grid; place-items: center; align-self: start; height: 32px; border: 1px solid #d7afb9; border-radius: 50%; color: var(--plum); font-weight: 650; font-variant-numeric: tabular-nums; background: #f3e1e2; }
.path-list h3 { margin: 2px 0 5px; }
.path-list p, .skill-card p { margin: 0; color: #5f4e55; }
.checkpoint { padding: clamp(18px,2.5vw,32px); background: #eee1df; border-top: 3px solid #a67384; border-radius: 4px; }
.checkpoint h3 { font: 400 clamp(1.35rem,2.2vw,1.8rem)/1.14 var(--serif); }
.checkpoint p { margin: 10px 0 0; }
.resource { border-top: 1px solid #cfb9bd; padding-top: 12px; margin-top: 16px; }
.resource a { font-weight: 650; }
.resource small { color: var(--muted); display: block; font-size: .9rem; margin-top: 3px; }
.plan-context, .answer-group { border: 1px solid var(--line); border-radius: 5px; background: var(--surface); }
.plan-context { margin-top: 20px; }
.plan-context p { margin: 0 18px 14px; max-width: 78ch; }
.report-section summary { list-style: none; display: flex; gap: 10px; align-items: center; min-height: 50px; padding: 12px 18px; color: var(--plum); font-weight: 650; }
.report-section summary::-webkit-details-marker { display: none; }
.report-section summary::after { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; margin-left: auto; flex: none; transform: rotate(45deg); }
.report-section details[open] > summary::after { transform: rotate(225deg); }
.skills-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.skill-card { background: var(--surface); padding: 18px 22px; border: 1px solid var(--line); border-radius: 6px; }
.skill-card h3 { margin: 9px 0 5px; }
.skill-status { display: inline-flex; align-items: center; gap: 5px; color: #74442b; background: #f4e8d9; padding: 3px 9px; border-radius: 12px; font-size: .87rem; }
.skill-status.correct { background: #e3ece5; color: #375746; }
.answer-group + .answer-group { margin-top: 8px; }
.answer-group small { color: var(--muted); font-size: .87rem; font-weight: 400; }
.answer-sheet, .practice-list, .solution-list { margin: 0; padding: 0 20px 0 44px; }
.answer-sheet { border-top: 1px solid var(--line); }
.answer-sheet li, .practice-list li, .solution-list li { padding: 14px 0 14px 3px; }
.answer-sheet li + li, .practice-list li + li, .solution-list li + li { border-top: 1px solid var(--line); }
.answer-sheet li::marker, .practice-list li::marker, .solution-list li::marker { color: var(--berry); font-weight: 650; }
.answer-sheet p, .practice-list p, .solution-list p { max-width: 78ch; margin: 4px 0; }
.answer-sheet .explanation { color: var(--muted); }
.result-actions { margin: 7px 0 0; }
.practice-end { padding: clamp(19px,3vw,34px); border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.practice-time { margin: 12px 0 16px; }
.practice-time legend { color: var(--muted); margin-bottom: 8px; }
.practice-time label { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 12px; margin: 0 4px 4px 0; border: 1px solid var(--line); border-radius: 5px; cursor: pointer; }
.practice-time input { accent-color: var(--berry); margin: 0 5px 0 0; }
.practice-time label:has(:checked) { border-color: var(--berry); background: #f2e3e6; }
.practice-list { padding-left: 25px; }
.practice-end .solutions-title { border-top: 1px solid var(--line); padding-top: 18px; margin: 12px 0; font-size: 1.45rem; }
.solution-list { background: #f1e6e2; border-radius: 5px; }
@media(max-width:850px) {
  .snapshot-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .snapshot-grid > div:nth-child(2) { border-right: 0; }
  .snapshot-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media(max-width:680px) {
  .result-head, .plan-layout, .skills-grid { grid-template-columns: minmax(0,1fr); }
  .result-head { padding: 22px 18px; gap: 20px; }
  .result-head h1 { font-size: clamp(1.85rem,7.8vw,2.9rem); margin: 8px 0 11px; }
  .first-note { transform: none; padding: 14px 16px 8px; }
  .first-note p { margin: 6px 0 8px; font-size: 1.12rem; }
  .report-nav { justify-content: flex-start; }
  .plan-layout, .skills-grid { gap: 14px; }
  .skills-grid { gap: 8px; }
  .answer-group summary { flex-wrap: wrap; }
  .answer-group small { margin-right: 4px; }
  .practice-time label { padding-inline: 8px; }
  .reserve-scale span { font-size: .7rem; white-space: normal; }
}
@media(max-width:380px) {
  .snapshot-grid > div { padding: 12px; }
  .practice-end { padding-inline: 12px; }
}
