:root {
  --navy: #061139;
  --navy-2: #0f1d52;
  --gold: #f9a814;
  --gold-ink: #8a5a00;
  --bg: #f6f4ef;
  --paper: #ffffff;
  --ink: #141a2e;
  --muted: #5b6270;
  --line: #e2ded4;
  --teal: #22706d;
  --blue: #3d6fd1;
  --ok: #17784a;
  --warn: #9a5b00;
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); }
a { color: var(--navy-2); }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; background: var(--navy); color: #fff; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--serif); font-size: 20px; letter-spacing: .2px; }
.top nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.top nav a, .top nav button { color: #fff; text-decoration: none; background: none; border: 1px solid transparent; font: inherit; font-size: 15px; padding: 7px 12px; border-radius: 999px; cursor: pointer; }
.top nav a:hover, .top nav button:hover { border-color: rgba(255,255,255,.35); }
.top nav .cta { background: var(--gold); color: var(--navy); font-weight: 700; }
#mockbar { background: #fff4d8; color: #5a3d00; font-size: 14px; padding: 8px 20px; text-align: center; border-bottom: 1px solid #f0d9a0; }

main { max-width: 1080px; margin: 0 auto; padding: 28px 20px 60px; outline: none; }
.wrap { max-width: 760px; }
.foot { max-width: 1080px; margin: 0 auto; padding: 24px 20px 40px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--navy); }
h1 { font-size: clamp(30px, 5vw, 46px); margin: 0 0 12px; letter-spacing: -.5px; }
h2 { font-size: 24px; margin: 32px 0 10px; }
h3 { font-size: 19px; margin: 0 0 6px; }
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 12px; color: var(--gold-ink); font-weight: 700; margin: 0 0 8px; }
.muted { color: var(--muted); }
.lede { font-size: 19px; color: #2b3348; max-width: 640px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 2px solid var(--navy); background: var(--navy); color: #fff; font: 600 16px var(--sans); cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--navy-2); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn.ghost { background: transparent; color: var(--navy); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* home */
.hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; margin-bottom: 18px; }
.hero-art { display: flex; justify-content: center; gap: 0; }
.hero-art img { width: 30%; margin: 0 -3%; filter: drop-shadow(0 10px 18px rgba(6,17,57,.18)); }
.hero-art img:nth-child(2) { transform: translateY(-14px); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 26px 0 8px; padding: 0; list-style: none; counter-reset: s; }
.steps li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 16px 54px; position: relative; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 15px; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin: 14px 0; }
.levels > div { padding: 14px; background: var(--paper); border-right: 1px solid var(--line); }
.levels > div:last-child { border-right: 0; }
.levels b { display: block; font-family: var(--serif); font-size: 18px; color: var(--navy); }
.levels .pips { margin-bottom: 6px; }
.levels small { color: var(--muted); font-size: 13px; line-height: 1.4; display: block; }
.levels .on { background: #fff7e3; box-shadow: inset 0 4px 0 var(--gold); }
.pips { display: inline-flex; gap: 4px; }
.pips i { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--navy); display: inline-block; }
.pips i.f { background: var(--navy); }

.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin: 30px 0 14px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs button { border: 1px solid var(--line); background: var(--paper); color: var(--ink); padding: 8px 14px; border-radius: 999px; font: 500 15px var(--sans); cursor: pointer; min-height: 40px; }
.tabs button[aria-selected="true"], .tabs button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.search { padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); font: inherit; min-width: 240px; background: var(--paper); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 6px; transition: transform .12s, box-shadow .12s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(6,17,57,.08); }
.card .tag { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.tag.durable { color: var(--teal); } .tag.ai { color: var(--blue); } .tag.sector { color: var(--gold-ink); }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* panels */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 16px 0; }
.note { background: #f1f4fb; border-left: 4px solid var(--blue); padding: 12px 14px; border-radius: 8px; font-size: 15px; margin: 14px 0; }
.note.warn { background: #fff7e3; border-color: var(--gold); }
.err { background: #fdecec; border-left: 4px solid #c03030; padding: 12px 14px; border-radius: 8px; margin: 12px 0; }
label.field { display: block; font-weight: 600; margin: 14px 0 6px; }
select { font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; min-width: 260px; max-width: 100%; }
.choices { display: grid; gap: 10px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 2px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.choice:hover { border-color: #c9c3b4; }
.choice input { margin-top: 4px; accent-color: var(--navy); width: 18px; height: 18px; flex: none; }
.choice:has(input:checked) { border-color: var(--navy); background: #f3f5fb; }
.choice small { display: block; color: var(--muted); }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* taking */
.progress { height: 8px; background: #e7e3d8; border-radius: 99px; overflow: hidden; margin: 10px 0 22px; }
.progress div { height: 100%; background: var(--gold); transition: width .2s; }
.item-stem { font-size: 18px; color: #232a40; }
.item-prompt { font-family: var(--serif); font-size: 22px; color: var(--navy); margin: 14px 0; }
.bw { display: grid; gap: 10px; }
.bw-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; }
.bw-row label { display: flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 600; min-height: 36px; padding: 0 8px; border-radius: 8px; cursor: pointer; }
.bw-row label:has(input:checked) { background: var(--navy); color: #fff; }
.order li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 8px; }
.order { list-style: none; padding: 0; margin: 0; }
.order .n { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.order button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #faf9f6; cursor: pointer; font-size: 16px; }
.nav-q { display: flex; justify-content: space-between; gap: 10px; margin-top: 24px; flex-wrap: wrap; }

/* results */
.result-head { display: grid; grid-template-columns: 200px 1fr; gap: 26px; align-items: center; }
.result-head img { filter: drop-shadow(0 12px 22px rgba(6,17,57,.2)); }
.big-level { font-family: var(--serif); font-size: 40px; color: var(--navy); margin: 0; }
.bars { display: grid; gap: 8px; margin-top: 12px; }
.bar { display: grid; grid-template-columns: 100px 1fr 48px; gap: 10px; align-items: center; font-size: 15px; }
.track { height: 12px; background: #ece8dd; border-radius: 99px; overflow: hidden; position: relative; }
.track div { height: 100%; background: var(--navy); border-radius: 99px; }
.track::after { content: ""; position: absolute; left: 70%; top: -2px; bottom: -2px; width: 2px; background: var(--gold); }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.kv > div { background: #faf9f6; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.kv b { font-family: var(--serif); font-size: 26px; color: var(--navy); display: block; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.badge-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-align: center; }
.badge-card img { width: 130px; height: 130px; }
.status { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; text-transform: uppercase; letter-spacing: .5px; }
.status.issued { background: #e3f4ea; color: var(--ok); } .status.failed { background: #fdecec; color: #a12727; } .status.pending, .status.superseded { background: #fff4d8; color: var(--warn); }
table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 15px; }
th { background: #faf9f6; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.table-wrap { overflow-x: auto; }

/* verify page */
body.verify main { max-width: 820px; }
body.verify .hero { grid-template-columns: 168px 1fr; gap: 24px; }
body.verify .lvl { font-family: var(--serif); font-size: 28px; color: var(--navy); margin: 0 0 6px; }
body.verify .lvl small { font-family: var(--sans); font-size: 14px; color: var(--muted); }
body.verify section { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 20px 18px; margin: 16px 0; }
.ok { color: var(--ok); font-weight: 600; } .warn { color: var(--warn); font-weight: 600; }

@media (max-width: 760px) {
  .hero, .result-head, body.verify .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .result-head img, body.verify .hero img { width: 150px; }
  .steps, .levels { grid-template-columns: 1fr 1fr; }
  .levels > div { border-bottom: 1px solid var(--line); }
  .cols-2 { grid-template-columns: 1fr; }
  .search { min-width: 0; width: 100%; }
  .bw-row { grid-template-columns: 1fr; }
  .bar { grid-template-columns: 84px 1fr 42px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---- tracks & Skill Scale ---- */
main:focus, main:focus-visible { outline: none; }
.brand { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap.wide { max-width: 900px; }
.btn.small { min-height: 34px; padding: 4px 12px; font-size: 14px; }
label.inline { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0; cursor: pointer; }
label.inline input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--navy); }
.pick { display: grid; gap: 6px; margin-top: 8px; max-height: 300px; overflow-y: auto; }
.pick button { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 9px 12px; font: inherit; cursor: pointer; min-height: 40px; }
.pick button:hover { border-color: var(--navy); }
.pick small { color: var(--muted); margin-left: 6px; }

table.scale { table-layout: fixed; min-width: 620px; }
table.scale th, table.scale td { text-align: center; padding: 8px 4px; font-size: 13px; border-left: 1px solid var(--line); }
table.scale th[scope="row"], table.scale thead th:first-child { text-align: left; width: 170px; padding-left: 12px; border-left: 0; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink); background: #faf9f6; }
table.scale td.on { font-weight: 600; color: #fff; }
table.scale td.l-emerging { background: #22706d; }
table.scale td.l-developing { background: #3d6fd1; }
table.scale td.l-proficient { background: #f9a814; color: var(--navy); }
table.scale td.l-advanced { background: #0b1e5b; }
table.scale td.col:not(.on) { background: #fff4d8; }
table.scale td.col.on { box-shadow: inset 0 0 0 2px rgba(255,255,255,.65); }
table.scale thead th.hit { background: var(--gold); color: var(--navy); }
table.scale td.me { outline: 3px solid var(--gold); outline-offset: -3px; box-shadow: inset 0 0 0 5px var(--navy); }

@media (max-width: 760px) {
  .top { padding: 10px 14px; }
  .brand { font-size: 17px; }
  .top nav a, .top nav button { font-size: 14px; padding: 6px 8px; }
  .bw-row { grid-template-columns: 1fr 1fr; }
  .bw-row > span { grid-column: 1 / -1; }
  .bw-row label { justify-content: center; border: 1px solid var(--line); }
  table.scale th[scope="row"], table.scale thead th:first-child { width: 120px; font-size: 13px; }
}
table.scale .abbr { display: none; }
@media (max-width: 760px) {
  table.scale { min-width: 0; }
  table.scale .full { display: none; }
  table.scale .abbr { display: inline; }
  table.scale th[scope="row"], table.scale thead th:first-child { width: 104px; padding-left: 8px; }
  table.scale thead th:first-child { font-size: 11px; }
}
@media (max-width: 760px) {
  .top { flex-wrap: wrap; row-gap: 4px; }
  .top nav { width: 100%; justify-content: flex-start; gap: 2px; margin-left: -8px; }
}

/* =================== Middle School: interactive formats =================== */
body.ms { --bg: #f4f1ff; --line: #e1dcf5; --radius: 18px; }
body.ms .top { background: linear-gradient(90deg, #061139, #2a1d6b); }
.tag.core { color: #6b47c9; }
.chip { display: inline-block; font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 99px; background: #ece7ff; color: #4b2fa8; margin: 0 0 10px; }
.link { background: none; border: 0; color: var(--navy-2); text-decoration: underline; cursor: pointer; font: inherit; padding: 0 4px; }
.take-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.xp { background: var(--navy); color: var(--gold); font-weight: 700; padding: 6px 12px; border-radius: 99px; font-size: 14px; }
.progress[class*="steps-"] { display: flex; gap: 6px; height: auto; background: none; }
.progress[class*="steps-"] i { flex: 1; height: 10px; border-radius: 99px; background: #e2dcf3; }
.progress[class*="steps-"] i.done { background: var(--gold); }
.progress[class*="steps-"] i.now { outline: 2px solid var(--navy); outline-offset: 1px; }
.take.ms .item-prompt { font-size: 24px; }

/* chat */
.phone { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; margin: 8px 0 14px; box-shadow: 0 10px 30px rgba(43,29,107,.08); }
.phone-head { background: #f7f5ff; border-bottom: 1px solid var(--line); padding: 10px 16px; font-weight: 700; font-size: 14px; color: #3d2c86; }
.msgs { list-style: none; margin: 0; padding: 14px; display: grid; gap: 10px; }
.msg { display: flex; gap: 8px; align-items: flex-end; max-width: 88%; }
.msg.mine { margin-left: auto; flex-direction: row-reverse; }
.av { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px; }
.av.me { display: none; }
.bubble { background: #f0eef7; padding: 9px 13px; border-radius: 16px 16px 16px 4px; font-size: 16px; line-height: 1.4; }
.bubble b { display: block; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.msg.mine .bubble { background: #3d6fd1; color: #fff; border-radius: 16px 16px 4px 16px; }
.msg.mine .bubble b { color: #dfe8ff; }
.pop { opacity: 0; animation: pop .35s ease forwards; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.typing { gap: 4px; padding: 10px 14px; background: #f0eef7; border-radius: 16px; width: max-content; animation: pop .2s ease forwards, vanish .2s ease forwards 1.1s; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: #9a94b5; animation: blink 1s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; } .typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: .3; } }
@keyframes vanish { to { opacity: 0; height: 0; padding: 0; margin: -5px 0; } }
.replies { display: grid; gap: 8px; }
.reply { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 2px solid #c9d7f7; border-radius: 18px 18px 4px 18px; background: #fff; cursor: pointer; }
.reply:has(input:checked) { background: #3d6fd1; color: #fff; border-color: #3d6fd1; }
.reply input { margin-top: 4px; accent-color: #fff; }

/* hotspot */
.tapmsg { all: unset; display: flex; gap: 8px; align-items: flex-end; cursor: pointer; border-radius: 18px; padding: 3px; }
.msg.mine .tapmsg { flex-direction: row-reverse; }
.tapmsg:hover .bubble, .tapmsg:focus-visible .bubble { box-shadow: 0 0 0 2px #c3b6f2; }
.tapmsg:focus-visible { outline: 3px solid var(--gold); }
.tapmsg[aria-pressed="true"] .bubble { box-shadow: 0 0 0 3px var(--gold); }
.msg.right .bubble { box-shadow: 0 0 0 3px #17784a; }

/* emotions */
.emogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.emo { display: grid; justify-items: center; gap: 4px; padding: 14px 8px; border: 2px solid var(--line); background: #fff; border-radius: 16px; font: 600 14px var(--sans); cursor: pointer; min-height: 96px; }
.emo .e { font-size: 34px; line-height: 1; }
.emo[aria-pressed="true"] { border-color: #6b47c9; background: #f1ecff; box-shadow: 0 4px 0 #6b47c9; transform: translateY(-2px); }
.emo:disabled { cursor: default; }

/* branching story */
.story { display: grid; gap: 14px; }
.scene-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: 0 8px 24px rgba(43,29,107,.06); }
.scene-card p { font-size: 17px; }
.you-chose { background: #f1ecff; padding: 10px 14px; border-radius: 12px; font-size: 15px !important; }

/* drag sort */
.order li[draggable="true"] { cursor: grab; }
.order li.dragging { opacity: .5; }

/* planner */
.planner { display: grid; gap: 12px; }
.tray { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px; border: 2px dashed #c9c1ea; border-radius: 16px; background: #fbfaff; min-height: 60px; }
.week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.day { background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 10px 8px; min-height: 160px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; }
.day b { font-family: var(--serif); font-size: 18px; color: var(--navy); }
.day small { color: var(--muted); font-size: 12px; margin-top: -6px; }
.day.over { border-color: #c03030; background: #fff4f4; }
.busy { font-size: 12px; background: repeating-linear-gradient(45deg, #eee, #eee 6px, #f6f6f6 6px, #f6f6f6 12px); border-radius: 8px; padding: 6px; color: #555; }
.task { border: 0; border-radius: 10px; padding: 8px 10px; background: #6b47c9; color: #fff; font: 600 13px var(--sans); text-align: left; cursor: pointer; display: grid; min-height: 40px; }
.task small { font-weight: 400; opacity: .85; }
.task.picked { background: var(--gold); color: var(--navy); box-shadow: 0 0 0 3px var(--navy); }

/* practice feedback */
.feedback { margin-top: 16px; padding: 16px 18px; border-radius: 16px; background: #fff7e3; border: 2px solid #f3d38b; }
.feedback.good { background: #e8f7ee; border-color: #9fd8b5; }
.fb-head { font-weight: 700; font-size: 18px; margin: 0 0 6px; }

/* quest map */
.quest { background: linear-gradient(135deg, #2a1d6b, #061139); color: #fff; border-radius: 26px; padding: 26px; margin-bottom: 26px; }
.quest h1, .quest .lede { color: #fff; }
.quest .eyebrow { color: var(--gold); }
.quest-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.quest-score { background: rgba(255,255,255,.1); border-radius: 18px; padding: 14px 20px; text-align: center; }
.quest-score b { display: block; font-family: var(--serif); font-size: 44px; color: var(--gold); line-height: 1; }
.path { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; position: relative; }
.path::before { content: ""; position: absolute; left: 6%; right: 6%; top: 44px; border-top: 4px dashed rgba(255,255,255,.25); }
.path a { position: relative; display: grid; justify-items: center; text-align: center; gap: 6px; color: #fff; text-decoration: none; }
.node { width: 88px; height: 88px; border-radius: 50%; background: #3a2b85; display: grid; place-items: center; border: 3px solid rgba(255,255,255,.3); transition: transform .15s; }
.path a:hover .node { transform: scale(1.06); }
.won .node { background: #fff; border-color: var(--gold); }
.ico { font-size: 38px; }
.lbl { font-size: 13px; font-weight: 600; line-height: 1.25; }
.lvl { font-size: 12px; color: var(--gold); }
.lvl .pips i { border-color: var(--gold); width: 7px; height: 7px; }
.lvl .pips i.f { background: var(--gold); }
.hero.compact .hero-art, .hero.compact + .note { display: none; }
canvas.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 50; }

@media (max-width: 760px) {
  .path { grid-template-columns: repeat(4, 1fr); row-gap: 16px; }
  .path::before { display: none; }
  .node { width: 66px; height: 66px; }
  .node img { width: 56px; height: 56px; }
  .ico { font-size: 28px; }
  .week { grid-template-columns: 1fr; }
  .day { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .day small { margin: 0; }
  .take.ms .item-prompt { font-size: 21px; }
}
.xp { white-space: nowrap; }
.progress[class*="steps-"] i.now { outline: 0; background: #b9acf0; height: 10px; }
.progress[class*="steps-"] i.now.done { background: var(--gold); }
.path a, .path li { min-width: 0; }
.lbl { overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 760px) {
  .path { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quest { padding: 20px 16px; }
  .quest-score { padding: 10px 16px; }
  .quest-score b { font-size: 34px; }
}
.day .task small { color: #fff; opacity: .85; margin: 0; font-size: 11px; }
.day .task.picked small { color: var(--navy); }

/* =================== illustrated scenes (v2) =================== */
.scene { margin: 4px 0 16px; border-radius: 22px; overflow: hidden; border: 3px solid #1B1035; background: #fff; box-shadow: 0 6px 0 #1B1035, 0 14px 30px rgba(43,29,107,.18); }
.scene svg { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; }
.scene .cam { transform-origin: 50% 60%; }
.scene.animate .cam { animation: push 1.6s cubic-bezier(.2,.7,.2,1) both; }
.scene.animate .actor { animation: actor-in .6s cubic-bezier(.2,.9,.3,1.35) both; animation-delay: calc(var(--i) * .2s + .15s); }
.scene.animate .bubble-wrap { animation: bubble-in .4s cubic-bezier(.2,.9,.3,1.6) both; animation-delay: calc(var(--i) * .2s + .8s); transform-box: fill-box; transform-origin: 50% 100%; }
.scene .body { transform-box: fill-box; transform-origin: 50% 100%; animation: breathe 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * -.7s); }
.scene .m-excited .body, .scene .m-happy .body, .scene .m-proud .body { animation: bounce 1.4s ease-in-out infinite; }
.scene .m-angry .body, .scene .m-frustrated .body { animation: shake 2.2s ease-in-out infinite; }
.scene .m-nervous .body, .scene .m-worried .body { animation: jitter 1.6s ease-in-out infinite; }
.scene .m-sad .body, .scene .m-bored .body { animation: slump 4s ease-in-out infinite; }
.scene .fx { transform-box: fill-box; transform-origin: 50% 50%; }
.scene .fx-steam { animation: steam 1.6s ease-in-out infinite; }
.scene .fx-drop { animation: drop 1.8s ease-in infinite; }
.scene .fx-bob { animation: bob 1.8s ease-in-out infinite; }
.scene .fx-pop { animation: popfx 1.6s ease-in-out infinite; }
.scene .fx-twinkle { animation: twinkle 1.4s ease-in-out infinite; }
.scene .fx-pulse { animation: pulse 1s ease-in-out infinite; }
.scene .fx-rain { animation: fxrain .9s linear infinite; animation-delay: var(--d); }
.scene .wx-rain path { animation: rain .7s linear infinite; animation-delay: calc(var(--d) * -1); }
.scene .wx-snow circle { animation: snow 4s linear infinite; animation-delay: calc(var(--d) * -1); }
.scene .wx-wind path { animation: wind 3.2s linear infinite; animation-delay: calc(var(--d) * -1); }
.scene .drift { animation: drift 30s linear infinite alternate; }
.scene .sway { animation: sway 2.6s ease-in-out infinite; }
.scene .spin { animation: spin 20s linear infinite; }
.scene .spot { animation: spot 4s ease-in-out infinite; }
@keyframes push { from { transform: scale(1.08); } to { transform: none; } }
@keyframes actor-in { from { opacity: 0; transform: translateY(26px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes bubble-in { from { opacity: 0; transform: scale(.3) rotate(-6deg); } to { opacity: 1; transform: none; } }
@keyframes breathe { 50% { transform: scaleY(1.015); } }
@keyframes bounce { 0%, 100% { transform: none; } 50% { transform: translateY(-5px); } }
@keyframes shake { 0%, 78%, 100% { transform: none; } 82% { transform: translateX(-3px) rotate(-1deg); } 86% { transform: translateX(3px) rotate(1deg); } 90% { transform: translateX(-3px); } 94% { transform: translateX(2px); } }
@keyframes jitter { 0%, 100% { transform: none; } 25% { transform: translateX(-1.5px); } 75% { transform: translateX(1.5px); } }
@keyframes slump { 50% { transform: translateY(2px) scaleY(.985); } }
@keyframes steam { 0% { transform: translateY(4px) scale(.8); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(-14px) scale(1.1); opacity: 0; } }
@keyframes drop { 0% { transform: translateY(-4px); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }
@keyframes bob { 50% { transform: translateY(-5px) rotate(6deg); } }
@keyframes popfx { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18) rotate(8deg); } }
@keyframes twinkle { 0%, 100% { transform: scale(.7) rotate(0); opacity: .6; } 50% { transform: scale(1.15) rotate(20deg); opacity: 1; } }
@keyframes pulse { 50% { transform: scale(1.12); } }
@keyframes fxrain { from { transform: translateY(0); opacity: 1; } to { transform: translateY(10px); opacity: 0; } }
@keyframes rain { from { transform: translate(8px, -40px); } to { transform: translate(-8px, 40px); } }
@keyframes snow { from { transform: translate(0, -30px); } 50% { transform: translate(8px, 0); } to { transform: translate(0, 30px); } }
@keyframes wind { from { transform: translateX(0); } to { transform: translateX(760px); } }
@keyframes drift { to { transform: translateX(40px); } }
@keyframes sway { 50% { transform: rotate(2.5deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spot { 50% { opacity: .26; } }
@media (prefers-reduced-motion: reduce) { .scene *, .avatar * { animation: none !important; } }
.scene-card .scene { margin: 6px 0 14px; }

/* avatar builder */
.builder { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: start; }
.builder-preview { position: sticky; top: 12px; background: radial-gradient(circle at 50% 40%, #FFF6D6, #E8E1FF); border: 3px solid #1B1035; border-radius: 24px; box-shadow: 0 6px 0 #1B1035; padding: 12px; text-align: center; }
.builder-preview .avatar .body { transform-box: fill-box; transform-origin: 50% 100%; animation: bounce 1.6s ease-in-out infinite; }
.builder h4, .builder .opt-h { margin: 14px 0 8px; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 38px; height: 38px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px #c9c1ea; cursor: pointer; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px #1B1035; transform: scale(1.1); }
.optchip { border: 2px solid #c9c1ea; background: #fff; border-radius: 999px; padding: 7px 14px; font: 600 14px var(--sans); cursor: pointer; min-height: 38px; text-transform: capitalize; }
.optchip[aria-pressed="true"] { background: #1B1035; color: #fff; border-color: #1B1035; }
.me-chip { display: inline-flex; align-items: center; gap: 6px; }
.me-chip svg { border-radius: 50%; background: #E8E1FF; border: 2px solid #fff; }
@media (max-width: 760px) { .builder { grid-template-columns: 1fr; } .builder-preview { position: static; } }
.quest-side { display: flex; align-items: flex-end; gap: 14px; }
.quest-me { display: grid; justify-items: center; color: #fff; text-decoration: none; font-size: 13px; font-weight: 700; }
.quest-me svg { filter: drop-shadow(0 6px 10px rgba(0,0,0,.35)); }
.quest-me .body { transform-box: fill-box; transform-origin: 50% 100%; animation: bounce 1.6s ease-in-out infinite; }
.top nav .me-chip { padding: 3px 10px 3px 4px; background: rgba(255,255,255,.12); }

/* ---- per-track look & feel ---- */
.quest { background: linear-gradient(135deg, var(--qa, #2a1d6b), var(--qb, #061139)); }
.node { background: var(--qn, #3a2b85); }
.lvl, .quest .eyebrow, .quest-score b { color: var(--qc, var(--gold)); }
.lvl .pips i { border-color: var(--qc, var(--gold)); } .lvl .pips i.f { background: var(--qc, var(--gold)); }
.tag.core { color: var(--qt, #6b47c9); }
.path.n10, .path.n7 { grid-template-columns: repeat(7, 1fr); }
.extras-h { margin: 22px 0 0; font-size: 12px; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; color: var(--qc, var(--gold)); }
.path.extras { grid-template-columns: repeat(7, 1fr); }
.path.extras::before { display: none; }

/* High School — bolder, sportier: deep teal with electric coral */
body.t-hs { --bg: #eef6f5; --line: #d3e6e3; --radius: 16px; --qa: #0d5c63; --qb: #0b1f3a; --qn: #13737b; --qc: #ff8a5c; --qt: #0d6e73; }
body.t-hs .top { background: linear-gradient(90deg, #0b1f3a, #0d5c63); }
/* Career Starter — fresh and clean: ocean blue with mint */
body.t-cs { --bg: #f2f6fb; --line: #dbe4ef; --qa: #164d8c; --qb: #0a2647; --qn: #1f5fa8; --qc: #6ee7b7; --qt: #1d5fa6; }
body.t-cs .top { background: #0a2647; }
/* Career Changer — warm and grounded: deep plum with amber */
body.t-cc { --bg: #f8f4f1; --line: #e8ddd5; --qa: #5a2a4a; --qb: #2a1530; --qn: #6f3a5c; --qc: #fbbf5a; --qt: #7a3b62; }
body.t-cc .top { background: #2a1530; }
/* Transitioning Military — steady and respectful: slate navy with gold */
body.t-tm { --bg: #f3f4f2; --line: #dddfda; --qa: #2f4858; --qb: #121d29; --qn: #3c5a6e; --qc: #f9c74f; --qt: #2f4858; }
body.t-tm .top { background: #121d29; }

/* Adult tracks: a calm skills board instead of a quest path */
.quest.board { border-radius: 18px; }
.quest.board .path { grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 12px; }
.quest.board .lbl { overflow-wrap: normal; hyphens: manual; }
.quest.board .path::before { display: none; }
.quest.board .path a { grid-template-columns: 52px 1fr; grid-template-rows: auto auto; justify-items: start; text-align: left; align-items: center; column-gap: 10px; row-gap: 2px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 12px; height: 100%; }
.quest.board .path a:hover { background: rgba(255,255,255,.14); }
.quest.board .node { grid-row: span 2; width: 52px; height: 52px; border-width: 2px; }
.quest.board .node img { width: 46px; height: 46px; }
.quest.board .ico { font-size: 24px; }
.quest.board .lbl { font-size: 14px; }
.quest.board .path a:hover .node { transform: none; }

/* Quick character presets */
.presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; margin-top: 10px; }
.preset { background: radial-gradient(circle at 50% 35%, #fff, #e9eef5); border: 2px solid var(--line); border-radius: 18px; padding: 8px 4px 0; cursor: pointer; transition: transform .12s, border-color .12s; }
.preset:hover { transform: translateY(-2px); border-color: var(--qt, var(--navy)); }
.preset[aria-pressed="true"] { border-color: var(--qt, var(--navy)); box-shadow: 0 0 0 3px var(--qt, var(--navy)); }
.preset svg { display: block; margin: 0 auto; max-width: 100%; height: auto; }
.builder-preview { background: radial-gradient(circle at 50% 40%, #fff, #e6ecf3); border: 1px solid var(--line); border-radius: 16px; box-shadow: none; }

@media (max-width: 760px) {
  .path.n10, .path.n7, .path.extras { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quest.board .path { grid-template-columns: 1fr 1fr; }
  .quest.board .path a { grid-template-columns: 40px 1fr; padding: 10px; }
  .quest.board .node { width: 40px; height: 40px; }
  .quest.board .node img { width: 34px; height: 34px; }
  .quest.board .ico { font-size: 20px; }
  .quest.board .lbl { font-size: 13px; }
}

/* ---- art v3: real-app chats, muted scenes ---- */
.scene { background: transparent; }
.scene svg { border-radius: 14px; }
.phone-head { display: flex; align-items: center; gap: 8px; }
.phone-head .who { margin-left: auto; font-weight: 400; color: var(--muted); font-size: 12px; }
.bubble b time { font-weight: 400; color: var(--muted); font-size: 11px; margin-left: 6px; }

/* Text-message thread (school tracks) */
.phone.texts { border-radius: 18px; box-shadow: 0 6px 20px rgba(20,26,46,.07); }
.phone.texts .phone-head { background: #fafafa; color: var(--ink); font-weight: 600; justify-content: center; flex-direction: column; gap: 2px; padding: 10px 12px; }
.phone.texts .heads { display: flex; }
.phone.texts .heads .av { width: 28px; height: 28px; font-size: 12px; margin-left: -6px; border: 2px solid #fafafa; }
.phone.texts .bubble { background: #ECECEF; border-radius: 18px 18px 18px 6px; font-size: 16px; }
.phone.texts .msg.mine .bubble { background: #1765d8; color: #fff; border-radius: 18px 18px 6px 18px; }
.phone.texts .msg.mine .bubble b { display: none; }
.phone.texts .bubble b time { display: none; }
.phone.texts .av { width: 28px; height: 28px; font-size: 12px; }

/* Team-chat window (work tracks) */
.phone.teamchat { border-radius: 10px; box-shadow: 0 6px 20px rgba(20,26,46,.07); }
.phone.teamchat .phone-head { background: #FFFFFF; color: var(--ink); font-weight: 700; font-size: 15px; padding: 10px 14px; }
.phone.teamchat .phone-head .chan { color: var(--muted); font-weight: 400; }
.phone.teamchat .msgs { gap: 2px; padding: 8px 6px; }
.phone.teamchat .msg, .phone.teamchat .msg.mine { max-width: 100%; margin: 0; flex-direction: row; align-items: flex-start; padding: 6px 8px; border-radius: 6px; }
.phone.teamchat .av, .phone.teamchat .av.me { display: grid; width: 34px; height: 34px; border-radius: 7px; font-size: 14px; }
.phone.teamchat .av.me { background: #3F4A5A; }
.phone.teamchat .bubble, .phone.teamchat .msg.mine .bubble { background: none; color: var(--ink); padding: 0; border-radius: 0; font-size: 15.5px; box-shadow: none; }
.phone.teamchat .bubble b, .phone.teamchat .msg.mine .bubble b { color: var(--ink); font-size: 14px; display: block; }
.phone.teamchat .tapmsg { width: 100%; text-align: left; flex-direction: row !important; border-radius: 6px; }
.phone.teamchat .tapmsg:hover, .phone.teamchat .tapmsg:focus-visible { background: #F4F5F7; }
.phone.teamchat .tapmsg:hover .bubble, .phone.teamchat .tapmsg:focus-visible .bubble { box-shadow: none; }
.phone.teamchat .tapmsg[aria-pressed="true"] { background: #FFF6DE; box-shadow: inset 3px 0 0 #E0A526; }
.phone.teamchat .tapmsg[aria-pressed="true"] .bubble { box-shadow: none; }
.phone.teamchat .msg.right { background: #E6F4EC; }
.phone.teamchat .msg.right .bubble { box-shadow: none; }
.scene { border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(20,26,46,.06); border-radius: 14px; background: #fff; }
.scene.ui { background: #1D2027; border-color: #1D2027; }

/* ---- skill ladder, lessons, coaching ---- */
.ladder { list-style: none; padding: 0; margin: 12px 0 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.rung { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rung.earned { background: #EEF7F1; border-color: #BFE0CB; }
.rung.next { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.rung.locked { background: #f4f4f6; border-style: dashed; }
.rung.locked .rung-head h3, .rung.locked .rung-title { color: #4a4f5c; }
.rung-head { display: flex; align-items: center; gap: 8px; }
.rung-head b, .rung-head h3 { font: 700 16px var(--sans); margin: 0; color: var(--ink); }
.rung-title { margin: 2px 0 0; font-weight: 600; font-size: 14px; }
.rung-goal { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.rung-cta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 8px; }
.rung-state { font-size: 13px; color: var(--muted); }
.rung-state.ok { color: var(--ok); font-weight: 600; }
.rung-link { font-size: 14px; display: inline-flex; align-items: center; min-height: 32px; padding: 0 4px; }
.btn.small { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.lesson .moves { padding-left: 22px; display: grid; gap: 10px; }
.lesson .moves li b { display: block; }
.lesson .moves li span, .pitfalls li span { color: var(--muted); display: block; font-size: 15px; }
.example { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.example .chip { margin: 0 0 8px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.compare > div { border-radius: 10px; padding: 10px 12px; }
.compare p { margin: 4px 0 0; }
.compare .weak { background: #FBEDEA; }
.compare .strong { background: #E8F5EE; }
.tag-sm { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; color: var(--muted); }
.example .why { margin: 12px 0 0; color: var(--muted); }
.pitfalls { list-style: none; padding: 0; display: grid; gap: 10px; }
.pitfalls li { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.coach .pitfalls li { background: #FFF9EC; border-color: #F0DDAF; }
.pitfalls li a { font-size: 13px; }
.fb-pit { background: #FFF6E0; border-radius: 8px; padding: 8px 10px; }
@media (max-width: 760px) { .ladder { grid-template-columns: 1fr 1fr; } .compare { grid-template-columns: 1fr; } }

/* ---- accessibility & responsive pass ---- */
.h3 { font-size: 19px; margin: 0 0 6px; }
h2.chip { font: 700 13px var(--sans); color: #4b2fa8; margin: 0 0 10px; letter-spacing: 0; line-height: 1.4; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
h1:focus, h2:focus, #fb:focus { outline: none; }
h1:focus-visible, #fb:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
/* Visible focus everywhere, including on dark panels and coloured buttons. */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, .choice:has(input:focus-visible), .reply:has(input:focus-visible), .bw-row label:has(input:focus-visible) {
  outline: 3px solid var(--gold); outline-offset: 2px; box-shadow: 0 0 0 5px var(--navy);
}
.quest a:focus-visible, .top a:focus-visible, .top button:focus-visible { box-shadow: none; outline-color: #fff; }
.choice:has(input:focus-visible), .reply:has(input:focus-visible) { border-color: var(--navy); }
.skip:focus { left: 8px; top: 8px; z-index: 100; color: var(--navy); font-weight: 700; border-radius: 8px; }
/* Text links in body copy keep a clear underline and a usable target. */
td a, .badge-card a, .pitfalls li a { display: inline-block; padding: 4px 0; }
/* Planner: real buttons for each day */
.day-head { display: flex; flex-direction: column; gap: 0; }
.day.target { border-color: #6b47c9; border-style: dashed; }
.day-drop { margin-top: auto; border: 2px dashed #6b47c9; background: #f4f0ff; color: #3d2c86; border-radius: 10px; font: 700 13px var(--sans); min-height: 40px; cursor: pointer; }
.day-drop:hover { background: #ebe4ff; }
.task[aria-pressed="true"] { background: var(--gold); color: var(--navy); box-shadow: 0 0 0 3px var(--navy); }
/* History table becomes stacked rows on small screens */
@media (max-width: 560px) {
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  table.stack td { border: 0; padding: 3px 12px; display: grid; grid-template-columns: 96px 1fr; gap: 8px; }
  table.stack td::before { content: attr(data-label); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); padding-top: 2px; }
}
/* Small phones */
@media (max-width: 560px) {
  main { padding: 20px 16px 48px; }
  .steps { grid-template-columns: 1fr; }
  .levels { grid-template-columns: 1fr 1fr; }
  .ladder { grid-template-columns: 1fr; }
  .panel { padding: 16px; }
  .hero-art img { width: 28%; }
  .result-head { gap: 14px; }
  .kv { grid-template-columns: 1fr 1fr; }
  .emogrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-q .btn { flex: 1; }
  .item-prompt { font-size: 20px; }
  .take.ms .item-prompt { font-size: 20px; }
  .phone.teamchat .phone-head .who { display: none; }
  .msg { max-width: 94%; }
  .quest-head { flex-direction: column; }
  .quest-side { width: 100%; justify-content: space-between; }
}
@media (max-width: 420px) {
  .path, .path.n10, .path.n7, .path.extras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lbl { overflow-wrap: break-word; hyphens: manual; font-size: 13px; }
  .quest.board .path { grid-template-columns: 1fr; }
  .top nav a, .top nav button { padding: 6px 7px; }
}
/* Never let wide content push the page sideways. */
body { overflow-wrap: break-word; }
main, .wrap { min-width: 0; }
.scene, .phone, .example, .panel { max-width: 100%; }
/* Respect reduced motion everywhere: content appears in its final state. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition: none !important; scroll-behavior: auto !important; }
  .msg.typing { display: none; }
  .card:hover, .preset:hover, .path a:hover .node { transform: none; }
}
/* Windows high contrast / forced colours: keep selection visible. */
@media (forced-colors: active) {
  .emo[aria-pressed="true"], .optchip[aria-pressed="true"], .preset[aria-pressed="true"], .tapmsg[aria-pressed="true"], .task[aria-pressed="true"], .tabs button[aria-pressed="true"] { outline: 3px solid Highlight; }
  .progress[class*="steps-"] i { border: 1px solid CanvasText; }
  .progress[class*="steps-"] i.done { background: Highlight; }
}
.builder .opt-h { font-family: var(--sans); font-weight: 700; }
.link { min-height: 32px; }
.note a { display: inline-block; padding: 2px 0; }

/* ---- smooth page changes ---- */
/* The old view stays up until the new one is ready, then a quick cross-fade; the header holds still. */
.top { view-transition-name: site-header; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 140ms; animation-timing-function: ease-out; }
::view-transition-group(site-header) { animation: none; }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }
/* Keep the footer from jumping up while the first view loads. */
main { min-height: 70vh; }
