:root {
  --navy: #011a44;
  --navy-2: #0b2a5e;
  --teal: #0096bc;
  --teal-dark: #007a99;
  --sky: #54c8e8;
  --sky-soft: #e4f6fb;
  --magenta: #b22bab;
  --magenta-soft: #f8e8f7;
  --green: #12805c;
  --green-soft: #e3f5ee;
  --red: #c0392b;
  --red-soft: #fbeaea;
  --amber: #b26a00;
  --amber-soft: #fff3df;
  --ink: #14213d;
  --muted: #5b6b82;
  --line: #dde4ee;
  --bg: #f4f7fb;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(1, 26, 68, .06), 0 4px 16px rgba(1, 26, 68, .06);
  --display: "Wix Madefor Display", system-ui, sans-serif;
  --text: "Wix Madefor Text", system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--text); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 16px; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
h2 { font-size: 1.35rem; font-weight: 700; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 .8em; }
a { color: var(--teal-dark); }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }

/* Top bar */
.topbar { background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px clamp(16px, 4vw, 40px); position: sticky; top: 0; z-index: 20; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand-logo { height: 34px; width: auto; }
.brand-sub { font-family: var(--display); font-weight: 700; font-size: 1rem; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.35); color: var(--sky); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: #dbe6f5; text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 500; font-size: .95rem; display: inline-flex; align-items: center; gap: 6px; }
.nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav a.active { background: rgba(84,200,232,.18); color: #fff; }
.nav-ollie img { width: 22px; height: 22px; background: #fff; border-radius: 50%; padding: 2px; }
body.embed .topbar { display: none; }

main { max-width: 1120px; margin: 0 auto; padding: 28px clamp(16px, 4vw, 40px) 80px; outline: none; }

/* Building blocks */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.eyebrow { font-family: var(--display); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--teal-dark); margin-bottom: 6px; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--sky-soft); color: var(--teal-dark); }
.pill.magenta { background: var(--magenta-soft); color: var(--magenta); }
.pill.green { background: var(--green-soft); color: var(--green); }
.pill.gray { background: #eef1f6; color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; cursor: pointer; text-decoration: none; background: var(--teal); color: #fff; transition: background .15s, transform .05s; min-height: 44px; }
.btn:hover { background: var(--teal-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.secondary { background: #fff; color: var(--navy); border-color: var(--line); }
.btn.secondary:hover { border-color: var(--teal); color: var(--teal-dark); }
.btn.ghost { background: transparent; color: var(--teal-dark); padding: 8px 12px; min-height: 0; }
.btn.magenta { background: var(--magenta); }
.btn.magenta:hover { background: #941f8e; }
.btn img { width: 22px; height: 22px; background: #fff; border-radius: 50%; padding: 2px; }

label { font-weight: 600; display: block; margin-bottom: 6px; color: var(--navy); }
input[type=text], input[type=number], input[type=date], input[type=password], textarea, select { width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
/* Focus ring (WCAG 1.4.11, 2.4.7; audit A11Y-1/2, Oct 30, 2026). One solid navy ring, at least 3:1 against white,
   --bg and the soft fills, with a thin white halo inside it so it also shows on dark cards (escape-room hero, coach
   card, navy chips). On a dark surface, add .on-dark to the container to flip the ring to white. */
:root { --focus: #0B2A55; --focus-halo: #ffffff; }
.on-dark { --focus: #ffffff; --focus-halo: #0B2A55; }
/* :where() keeps this at the specificity of one class, so a component that draws its own ring (an SVG stroke) still can. */
:where(input, textarea, select, button, a, summary, [tabindex]:not([tabindex="-1"]), [role="button"], [role="radio"], [role="checkbox"],
[role="tab"], [role="option"], [role="switch"], [role="slider"], [contenteditable]):focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 2px var(--focus-halo); }
input:focus, textarea:focus, select:focus { border-color: var(--teal); }
/* Text fields keep a ring on mouse focus too (where the caret is). */
input:focus, textarea:focus, select:focus { outline: 3px solid var(--focus); outline-offset: 2px; }
/* Headings and regions that receive focus from the script (after Next, a route change) show the ring after keyboard use. */
h1[tabindex="-1"]:focus-visible, h2[tabindex="-1"]:focus-visible, h3[tabindex="-1"]:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 4px; }
.field { margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; cursor: pointer; font-weight: 500; color: var(--ink); }
.chip[aria-pressed=true] { background: var(--navy); border-color: var(--navy); color: #fff; }
.scale { display: flex; gap: 6px; }
.scale button { flex: 1; padding: 9px 0; border: 1.5px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; font-weight: 600; }
.scale button[aria-pressed=true] { background: var(--teal); color: #fff; border-color: var(--teal); }

/* Hero / gate */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, #0d3b7a 100%); color: #fff; border-radius: 20px; padding: clamp(24px, 5vw, 48px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; position: relative; overflow: hidden; }
.hero h1 { color: #fff; }
.hero p { color: #d4e2f4; font-size: 1.05rem; }
.hero .owl-big { width: min(220px, 60%); justify-self: center; background: #fff; border-radius: 50%; padding: 18px; box-shadow: 0 0 0 10px rgba(84,200,232,.18); }
.hero::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; background: var(--sky); opacity: .12; }
@media (max-width: 720px) { .hero { grid-template-columns: 1fr; } .hero .owl-big { width: 120px; order: -1; justify-self: start; } }

/* Dashboard */
.stat { font-family: var(--display); font-size: 2rem; font-weight: 800; color: var(--navy); line-height: 1; }
.plan-card { display: flex; flex-direction: column; gap: 8px; }
.plan-card .btn { align-self: flex-start; margin-top: auto; }
.track { display: grid; gap: 10px; }
.unit-row { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-decoration: none; color: inherit; }
.unit-row:hover { border-color: var(--teal); }
.unit-row.locked { opacity: .55; pointer-events: none; background: #f8fafc; }
.ring { --p: 0; width: 52px; height: 52px; border-radius: 50%; background: conic-gradient(var(--teal) calc(var(--p) * 1%), #e6edf5 0); display: grid; place-items: center; }
.ring span { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: .78rem; font-weight: 700; color: var(--navy); }
.ring.done { background: conic-gradient(var(--green) 100%, #e6edf5 0); }
.bar { height: 8px; border-radius: 99px; background: #e6edf5; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--teal); border-radius: 99px; }
.skill-list { display: grid; gap: 10px; }
.skill-list .row { gap: 10px; }
.skill-list .name { flex: 1 1 200px; font-size: .92rem; }
.skill-list .bar { flex: 1 1 140px; }

/* Lesson */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs button { background: none; border: none; padding: 10px 16px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tabs button[aria-selected=true] { color: var(--navy); border-color: var(--teal); }
.strategy { border-left: 4px solid var(--teal); }
.strategy ol { margin: 8px 0 0; padding-left: 20px; }
.think { list-style: none; padding: 0; margin: 12px 0; counter-reset: step; }
.think li { counter-increment: step; padding: 10px 12px 10px 44px; position: relative; background: var(--sky-soft); border-radius: 10px; margin-bottom: 8px; animation: rise .25s ease; }
.think li::before { content: counter(step); position: absolute; left: 12px; top: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--teal); color: #fff; font-size: .78rem; font-weight: 700; display: grid; place-items: center; }
.trap { background: var(--amber-soft); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; }
.trap::before { content: "⚠ "; color: var(--amber); font-weight: 700; }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Question (Bluebook-like split) */
.q-shell { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.q-shell.no-passage { grid-template-columns: 1fr; }
.q-passage { padding: 24px; border-right: 1px solid var(--line); font-size: 1.02rem; line-height: 1.7; white-space: pre-wrap; max-height: 70vh; overflow: auto; }
.q-main { padding: 24px; }
.q-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 24px; background: #f7f9fc; border-bottom: 1px solid var(--line); grid-column: 1 / -1; font-size: .88rem; color: var(--muted); flex-wrap: wrap; }
.q-stem { font-size: 1.05rem; margin-bottom: 16px; white-space: pre-wrap; }
@media (max-width: 820px) { .q-shell { grid-template-columns: 1fr; } .q-passage { border-right: none; border-bottom: 1px solid var(--line); max-height: none; } }
.choices { display: grid; gap: 10px; }
.choice { display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; cursor: pointer; text-align: left; width: 100%; color: var(--ink); }
.choice:hover { border-color: var(--teal); }
.choice .letter { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--navy); display: grid; place-items: center; font-weight: 700; font-size: .9rem; color: var(--navy); }
.choice.selected { border-color: var(--teal); background: var(--sky-soft); }
.choice.selected .letter { background: var(--teal); color: #fff; border-color: var(--teal); }
.choice.struck .text { text-decoration: line-through; color: #9aa7b8; }
.choice.correct { border-color: var(--green); background: var(--green-soft); }
.choice.correct .letter { background: var(--green); border-color: var(--green); color: #fff; }
.choice.wrong { border-color: var(--red); background: var(--red-soft); }
.choice.wrong .letter { background: var(--red); border-color: var(--red); color: #fff; }
.strike { border: none; background: none; cursor: pointer; color: var(--muted); font-size: 1.05rem; border-radius: 8px; padding: 4px; }
.strike:hover { background: #eef1f6; }
.grid-in { max-width: 220px; font-size: 1.2rem; }
.confidence { margin: 18px 0 6px; }
.confidence .scale button { font-size: .9rem; }
.feedback { border-radius: 12px; padding: 16px; margin-top: 16px; animation: rise .25s ease; }
.feedback.ok { background: var(--green-soft); border: 1px solid #b8e3d1; }
.feedback.no { background: var(--red-soft); border: 1px solid #f0c4c0; }
.hint-box { background: var(--magenta-soft); border-radius: 10px; padding: 10px 14px; margin-top: 10px; animation: rise .25s ease; }
.hint-box b { color: var(--magenta); }
.timer { font-variant-numeric: tabular-nums; }
.progress-dots { display: flex; gap: 6px; }
.progress-dots i { width: 10px; height: 10px; border-radius: 50%; background: #dbe3ee; }
.progress-dots i.ok { background: var(--green); }
.progress-dots i.no { background: var(--red); }
.progress-dots i.now { background: var(--teal); box-shadow: 0 0 0 3px rgba(0,150,188,.25); }

/* Tutor chat */
.drawer { position: fixed; right: 0; top: 0; bottom: 0; width: min(440px, 100vw); background: #fff; border-left: 1px solid var(--line); box-shadow: -8px 0 30px rgba(1,26,68,.12); z-index: 40; display: flex; flex-direction: column; animation: slidein .2s ease; }
@keyframes slidein { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.chat { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.chat.page { height: calc(100vh - 190px); min-height: 460px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chat-head img { width: 42px; height: 42px; border-radius: 50%; background: var(--sky-soft); padding: 4px; }
.chat-head .who { flex: 1; }
.chat-head .who b { font-family: var(--display); color: var(--navy); display: block; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: #fafcfe; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; white-space: pre-wrap; word-wrap: break-word; }
.msg.ollie { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.me { background: var(--navy); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg.typing { color: var(--muted); font-style: italic; }
.msg ul { margin: 4px 0; padding-left: 18px; white-space: normal; }
.chat-suggest { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 16px 8px; background: #fafcfe; }
.chat-suggest button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: .85rem; cursor: pointer; color: var(--navy); }
.chat-suggest button:hover { border-color: var(--teal); }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form textarea { resize: none; height: 46px; max-height: 140px; }
.chat-note { font-size: .78rem; color: var(--muted); padding: 0 16px 10px; background: #fafcfe; }

table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--display); color: var(--navy); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
.table-wrap { overflow-x: auto; position: relative; } /* contains the sr-only text in roster cells, so a wide table scrolls in its box, not the page */

.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty img { width: 80px; opacity: .9; }
/* --howto-clear: the coach how-to's card height while it sits at the bottom (v2/howto.js), so a toast never covers its buttons. */
.toast { position: fixed; bottom: calc(20px + var(--howto-clear, 0px)); left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 8px 8px 8px 20px; border-radius: 999px; z-index: 1100; box-shadow: var(--shadow); animation: rise .2s ease; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); --focus: #fff; --focus-halo: var(--navy); }
html.howto-toast-top .toast { top: 20px; bottom: auto; } /* no room above the how-to card (v2/howto.js) */
.toast.err { background: #8a2a0a; }
.toast-x { border: 0; background: transparent; color: #fff; font-size: 1rem; min-width: 32px; min-height: 32px; border-radius: 50%; cursor: pointer; flex: none; }
.toast-x:hover { background: rgba(255,255,255,.15); }
.illus { width: 100%; border-radius: 12px; display: block; }

/* ---------- Opti 2.0, the AI coach (opti.js avatar; Tina, Oct 27) ---------- */
.opti { width: var(--size, 56px); height: calc(var(--size, 56px) * 1.067); flex: none; position: relative; }
.opti svg { width: 100%; height: 100%; overflow: visible; display: block; }
.o2 * { transform-box: view-box; }
.o2 .o2-halo { fill: var(--sky); opacity: 0; transform-origin: 150px 175px; }
.o2 .o2-bird { transform-origin: 150px 300px; animation: opti-breathe 4.5s ease-in-out infinite; }
.o2 .o2-head { transform-origin: 150px 210px; transition: transform .35s ease; }
.o2 .o2-look { transition: transform .3s ease; }
.o2 .o2-brow { transition: transform .3s ease; }
.o2 .o2-brow-l { transform-origin: 110px 96px; } .o2 .o2-brow-r { transform-origin: 190px 96px; }
.o2 .o2-wing { transition: transform .35s ease; } .o2 .o2-wing-l { transform-origin: 72px 172px; } .o2 .o2-wing-r { transform-origin: 228px 172px; }
.o2 .o2-lid { transform-origin: 150px 102px; transform: scaleY(0); transition: transform .07s linear; }
.o2 .o2-lash { opacity: 0; transition: opacity .07s linear; }
.o2 .o2-smile-lid { transform-origin: 150px 176px; transform: scaleY(0); transition: transform .25s ease; }
.o2 .o2-jaw { transform-origin: 150px 176px; }
.o2 .o2-tassel { transform-origin: 150px 61px; animation: opti-tassel 5s ease-in-out infinite; }
.o2.blink .o2-lid { transform: scaleY(1); } .o2.blink .o2-lash { opacity: 1; }
.o2.is-listening .o2-head { transform: rotate(-7deg); } .o2.is-listening .o2-look { transform: translateY(-5px); } .o2.is-listening .o2-brow { transform: translateY(-6px); }
.o2.is-listening .o2-halo { animation: opti-pulse 1.4s ease-out infinite; }
.o2.is-thinking .o2-look { transform: translate(9px, -7px); } .o2.is-thinking .o2-brow-r { transform: translateY(-8px) rotate(-6deg); } .o2.is-thinking .o2-head { transform: rotate(4deg); }
/* Speaking (Oct 27): no fixed talking loop. opti.js moves the head with the words, raises the brows on a question
   (.o2-ask), lifts on an exclamation (.o2-lift) and gestures at some new sentences (.o2-gest-l / -r). */
.o2 .o2-m-teeth, .o2 .o2-m-tongue { opacity: 0; }
.o2.o2-ask .o2-brow { transform: translateY(-7px); }
.o2.o2-lift .o2-bird { animation: o2-lift .7s ease-out 1; }
.o2.o2-gest-l .o2-wing-l { animation: o2-gesture-l 1.3s ease-in-out 1; } .o2.o2-gest-r .o2-wing-r { animation: o2-gesture 1.3s ease-in-out 1; }
.o2.is-speaking .o2-tail { animation: o2-sway 2.4s ease-in-out infinite; }
/* At rest, now and then (opti.js fidget): shared moves and each character's own (cast.js moves). */
.o2 .o2-tail, .o2 .o2-ear { transition: transform .3s ease; }
.o2.o2-f-glance .o2-look { animation: o2-glance 1.5s ease-in-out 1; }
.o2.o2-f-tilt .o2-head { animation: o2-tilt 1.5s ease-in-out 1; }
.o2.o2-f-stretch .o2-bird { animation: o2-stretch 1.2s ease-in-out 1; }
.o2.o2-f-blink2 .o2-lid { animation: o2-blink2 .6s linear 1; } .o2.o2-f-blink2 .o2-lash { animation: o2-blink2-lash .6s linear 1; }
.o2.o2-f-tail .o2-tail, .o2.o2-happy .o2-tail { animation: o2-wag .38s ease-in-out 4; }
.o2.o2-f-ears .o2-ear-l { animation: o2-ear-l .5s ease-in-out 2; } .o2.o2-f-ears .o2-ear-r { animation: o2-ear-r .5s ease-in-out 2 .12s; }
.o2.o2-f-flap .o2-wing-l { animation: o2-flap-l .45s ease-in-out 3; } .o2.o2-f-flap .o2-wing-r { animation: o2-flap-r .45s ease-in-out 3; }
.o2.o2-f-tassel .o2-tassel { animation: o2-tassel-swing 1.4s ease-in-out 1; }
.o2.o2-f-bounce .o2-bird { animation: o2-hop .5s ease-out 2; }
.o2.o2-c-hoverbot .o2-bird { animation: o2-hover 2.6s ease-in-out infinite; }
/* Nova floats (no legs or arms): a slow drift, slower still when calm. */
.o2.o2-c-nova .o2-bird { animation: o2-hover 4s ease-in-out infinite; } .o2.o2-calm.o2-c-nova .o2-bird { animation-duration: 6s; }
/* Calm (opti.js, grades 9–12 by default): no lift on an exclamation, a slower hover, a shorter happy wag. */
.o2.o2-calm.o2-lift .o2-bird { animation: none; } .o2.o2-calm.o2-c-hoverbot .o2-bird { animation-duration: 4.2s; } .o2.o2-calm.o2-happy .o2-tail { animation-iteration-count: 2; }
/* A layered instructor (opti.js rigAvatar): every layer shares one 736 × 926 box, bottom-centred; arms turn at the
   shoulder, the tail at its base. */
.o2-rig .o2-bird { position: absolute; inset: 0; transform-origin: 50% 92%; }
.o2-rig .o2-head { position: absolute; bottom: 0; left: 50%; height: 100%; aspect-ratio: 736 / 926; max-width: 100%; translate: -50% 0; transform-origin: 50% 92%; }
.o2-rig .ly { position: absolute; inset: 0; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; }
.o2-rig .o2-tail { transform-origin: 76% 88%; }
.o2-rig .o2-arm-l { transform-origin: 71% 53%; transition: transform .35s ease; }
.o2-rig .o2-arm-r { transform-origin: 33% 53%; transition: transform .35s ease; }
.o2.o2-rig.o2-gest-l .o2-arm-l { transform: rotate(-14deg); } .o2.o2-rig.o2-gest-r .o2-arm-r { transform: rotate(14deg); }
.o2.o2-rig.o2-waving .ly-wave { transform-origin: 30% 52%; animation: o2-rig-wave .52s ease-in-out infinite; }
.o2.o2-rig.is-listening .o2-head { transform: rotate(-2deg); }
/* Opti's own pivots: the wings meet the body at the shoulders, the feet sit near the bottom of the box. */
.o2-rig.o2-c-owl .o2-bird, .o2-rig.o2-c-owl .o2-head { transform-origin: 50% 96%; }
.o2-rig.o2-c-owl .o2-arm-l { transform-origin: 70% 58%; } .o2-rig.o2-c-owl .o2-arm-r { transform-origin: 30% 58%; }
.o2.o2-rig.o2-c-owl.o2-waving .ly-wave { transform-origin: 30% 58%; }
/* Sprig's: the raised paw waves in front of the body, the tail turns where it meets the body. */
.o2-rig.o2-c-dragon .o2-bird, .o2-rig.o2-c-dragon .o2-head { transform-origin: 50% 97%; }
.o2-rig.o2-c-dragon .o2-arm-l { transform-origin: 59% 57%; } .o2-rig.o2-c-dragon .o2-arm-r { transform-origin: 41% 57%; }
.o2-rig.o2-c-dragon .ly-wave { z-index: 1; } .o2.o2-rig.o2-c-dragon.o2-waving .ly-wave { transform-origin: 41% 57%; }
.o2-rig.o2-c-dragon .o2-tail { transform-origin: 37% 82%; }
/* Comet's: one moving arm (the other arm and the tail are part of the body); the raised glove waves in front. */
.o2-rig.o2-c-fox .o2-bird, .o2-rig.o2-c-fox .o2-head { transform-origin: 50% 97%; }
.o2-rig.o2-c-fox .o2-tail { transform-origin: 43.4% 80.6%; }
/* Tina's new fox parts (Oct 29): both arms hang from the shoulder badges and turn there. */
.o2-rig.o2-c-fox .o2-arm-r, .o2-rig.o2-c-fox .o2-arm-r-up, .o2-rig.o2-c-fox .ly-think { transform-origin: 37.1% 52.2%; } .o2-rig.o2-c-fox .o2-arm-l, .o2-rig.o2-c-fox .o2-arm-l-up { transform-origin: 63.7% 52.2%; }
.o2-rig.o2-c-fox .ly-wave { z-index: 1; } .o2.o2-rig.o2-c-fox.o2-waving .ly-wave { transform-origin: 37.1% 52.2%; }
.o2-rig.o2-c-griffin .o2-bird, .o2-rig.o2-c-griffin .o2-head { transform-origin: 50% 97%; }
.o2-rig.o2-c-griffin .o2-tail { transform-origin: 40.6% 76.3%; }
/* The gold arms are in front of the wings and hang from the shoulders (Tina, Oct 29), turning there. */
.o2-rig.o2-c-griffin .o2-arm-r, .o2-rig.o2-c-griffin .o2-arm-r-up, .o2-rig.o2-c-griffin .ly-wave, .o2-rig.o2-c-griffin .ly-think { transform-origin: 37.8% 51.1%; }
.o2-rig.o2-c-griffin .o2-arm-l, .o2-rig.o2-c-griffin .o2-arm-l-up { transform-origin: 63% 51.1%; } .o2-rig.o2-c-griffin .ly-wave { z-index: 1; } .o2.o2-rig.o2-c-griffin.o2-waving .ly-wave { transform-origin: 37.8% 51.1%; }
/* Benjamin Franklin (cast.js FIGURES): shoulder pivots from his v2 rig.json (531,423 and 956,423 on the 1472 x 1852 canvas). */
.o2-rig.o2-c-franklin .o2-bird, .o2-rig.o2-c-franklin .o2-head { transform-origin: 50% 97%; }
.o2-rig.o2-c-franklin .o2-arm-r { transform-origin: 36.1% 22.8%; } .o2-rig.o2-c-franklin .o2-arm-l { transform-origin: 64.9% 22.8%; }
.o2.o2-rig.o2-c-franklin.o2-gest-l .o2-arm-l { transform: rotate(-6deg); } .o2.o2-rig.o2-c-franklin.o2-gest-r .o2-arm-r { transform: rotate(6deg); }
.o2-rig.o2-c-redpanda .o2-bird, .o2-rig.o2-c-redpanda .o2-head { transform-origin: 50% 97%; }
.o2-rig.o2-c-redpanda .o2-tail { transform-origin: 61.3% 82.6%; }
.o2-rig.o2-c-redpanda .o2-arm-r, .o2-rig.o2-c-redpanda .o2-arm-r-up, .o2-rig.o2-c-redpanda .ly-think { transform-origin: 38.6% 55.5%; } .o2-rig.o2-c-redpanda .o2-arm-l, .o2-rig.o2-c-redpanda .o2-arm-l-up { transform-origin: 61% 55.5%; }
.o2-rig.o2-c-redpanda .ly-wave { z-index: 1; } .o2.o2-rig.o2-c-redpanda.o2-waving .ly-wave { transform-origin: 38.6% 55.5%; }
.o2-rig.o2-c-redpanda .o2-arm-r > .ly-fore { transform-origin: 34.6% 66.4%; } .o2-rig.o2-c-redpanda .o2-arm-l > .ly-fore { transform-origin: 66.8% 66.4%; } .o2-rig.o2-c-redpanda .o2-arm-r-up > .ly-fore { transform-origin: 42.4% 66.4%; } .o2-rig.o2-c-redpanda .o2-arm-l-up > .ly-fore { transform-origin: 55% 66.4%; }
.o2-rig.o2-c-wren .o2-bird, .o2-rig.o2-c-wren .o2-head { transform-origin: 50% 97%; }
.o2-rig.o2-c-wren .o2-tail { transform-origin: 29.3% 53.7%; }
.o2-rig.o2-c-wren .o2-arm-r, .o2-rig.o2-c-wren .o2-arm-r-up, .o2-rig.o2-c-wren .ly-think { transform-origin: 32.1% 58.3%; } .o2-rig.o2-c-wren .o2-arm-l, .o2-rig.o2-c-wren .o2-arm-l-up { transform-origin: 70.7% 58.2%; }
.o2-rig.o2-c-wren .ly-wave { z-index: 1; } .o2.o2-rig.o2-c-wren.o2-waving .ly-wave { transform-origin: 32.1% 58.3%; }
.o2-rig.o2-c-rowan .o2-bird, .o2-rig.o2-c-rowan .o2-head { transform-origin: 50% 97%; }
.o2-rig.o2-c-rowan .o2-tail { transform-origin: 40.7% 80%; }
.o2-rig.o2-c-rowan .o2-arm-r, .o2-rig.o2-c-rowan .o2-arm-r-up, .o2-rig.o2-c-rowan .ly-think { transform-origin: 32.6% 45.2%; } .o2-rig.o2-c-rowan .o2-arm-l, .o2-rig.o2-c-rowan .o2-arm-l-up { transform-origin: 68.9% 45.2%; }
.o2-rig.o2-c-rowan .ly-wave { z-index: 1; } .o2.o2-rig.o2-c-rowan.o2-waving .ly-wave { transform-origin: 32.6% 45.2%; }
.o2-rig.o2-c-brick .o2-bird, .o2-rig.o2-c-brick .o2-head { transform-origin: 50% 97%; }
.o2-rig.o2-c-brick .o2-tail { transform-origin: 38.0% 81.5%; }
.o2-rig.o2-c-brick .o2-arm-r, .o2-rig.o2-c-brick .o2-arm-r-up, .o2-rig.o2-c-brick .ly-think { transform-origin: 35.2% 63.3%; } .o2-rig.o2-c-brick .o2-arm-l, .o2-rig.o2-c-brick .o2-arm-l-up { transform-origin: 63.9% 63.3%; }
.o2-rig.o2-c-brick .ly-wave { z-index: 1; } .o2.o2-rig.o2-c-brick.o2-waving .ly-wave { transform-origin: 35.2% 63.3%; }
.o2-rig.o2-c-wolf .o2-bird, .o2-rig.o2-c-wolf .o2-head { transform-origin: 50% 97%; }
.o2-rig.o2-c-wolf .o2-tail { transform-origin: 63.9% 81.5%; }
/* Rook's arms sit 28px up and 14px in from the package (Tina, Oct 29: they came loose pointing and thinking). */
.o2-rig.o2-c-wolf .o2-arm-r, .o2-rig.o2-c-wolf .o2-arm-r-up, .o2-rig.o2-c-wolf .ly-think { transform-origin: 39.6% 54.6%; } .o2-rig.o2-c-wolf .o2-arm-l, .o2-rig.o2-c-wolf .o2-arm-l-up { transform-origin: 60.4% 54.6%; }
.o2-rig.o2-c-wolf .ly-wave { z-index: 1; } .o2.o2-rig.o2-c-wolf.o2-waving .ly-wave { transform-origin: 39.6% 54.6%; }
/* Elbows (live.elbow, Tina, Oct 29): where each forearm turns. Opti keeps whole wings (a bent wing looks wrong). */
.o2-rig.o2-c-dragon .o2-arm-r > .ly-fore { transform-origin: 36.2% 67.7%; } .o2-rig.o2-c-dragon .o2-arm-l > .ly-fore { transform-origin: 63.4% 67.7%; }
.o2-rig.o2-c-griffin .o2-arm-r > .ly-fore { transform-origin: 35.5% 63.1%; } .o2-rig.o2-c-griffin .o2-arm-l > .ly-fore { transform-origin: 61.6% 63.1%; } .o2-rig.o2-c-griffin .o2-arm-r-up > .ly-fore { transform-origin: 39.8% 63.1%; } .o2-rig.o2-c-griffin .o2-arm-l-up > .ly-fore { transform-origin: 64.3% 63.1%; }
.o2-rig.o2-c-fox .o2-arm-r > .ly-fore { transform-origin: 35.4% 62.7%; } .o2-rig.o2-c-fox .o2-arm-l > .ly-fore { transform-origin: 65.3% 62.7%; } .o2-rig.o2-c-fox .o2-arm-r-up > .ly-fore { transform-origin: 38.7% 62.7%; } .o2-rig.o2-c-fox .o2-arm-l-up > .ly-fore { transform-origin: 61.8% 62.7%; }
.o2-rig.o2-c-hoverbot .o2-arm-r > .ly-fore { transform-origin: 37.9% 61.7%; } .o2-rig.o2-c-hoverbot .o2-arm-l > .ly-fore { transform-origin: 61.6% 61.7%; } .o2-rig.o2-c-hoverbot .o2-arm-r-up > .ly-fore { transform-origin: 39.8% 61.6%; } .o2-rig.o2-c-hoverbot .o2-arm-l-up > .ly-fore { transform-origin: 59.6% 61.6%; }
.o2-rig.o2-c-brick .o2-arm-r > .ly-fore { transform-origin: 37.7% 71.6%; } .o2-rig.o2-c-brick .o2-arm-l > .ly-fore { transform-origin: 61.5% 71.6%; } .o2-rig.o2-c-brick .o2-arm-r-up > .ly-fore { transform-origin: 32.5% 71.6%; } .o2-rig.o2-c-brick .o2-arm-l-up > .ly-fore { transform-origin: 66.3% 71.6%; }
.o2-rig.o2-c-rowan .o2-arm-r > .ly-fore { transform-origin: 31.4% 57.9%; } .o2-rig.o2-c-rowan .o2-arm-l > .ly-fore { transform-origin: 70.7% 57.9%; } .o2-rig.o2-c-rowan .o2-arm-r-up > .ly-fore { transform-origin: 33.8% 57.9%; } .o2-rig.o2-c-rowan .o2-arm-l-up > .ly-fore { transform-origin: 67.0% 57.9%; }
.o2-rig.o2-c-moth .o2-bird, .o2-rig.o2-c-moth .o2-head { transform-origin: 50% 97%; }
.o2-rig.o2-c-moth .o2-arm-r, .o2-rig.o2-c-moth .o2-arm-r-up, .o2-rig.o2-c-moth .ly-think { transform-origin: 39.4% 43.7%; } .o2-rig.o2-c-moth .o2-arm-l, .o2-rig.o2-c-moth .o2-arm-l-up { transform-origin: 60.8% 43.7%; }
.o2-rig.o2-c-moth .ly-wave { z-index: 1; } .o2.o2-rig.o2-c-moth.o2-waving .ly-wave { transform-origin: 39.4% 43.7%; }
.o2-rig.o2-c-moth .o2-arm-r > .ly-fore { transform-origin: 39.7% 53.7%; } .o2-rig.o2-c-moth .o2-arm-l > .ly-fore { transform-origin: 58.5% 53.7%; } .o2-rig.o2-c-moth .o2-arm-r-up > .ly-fore { transform-origin: 40.6% 53.7%; } .o2-rig.o2-c-moth .o2-arm-l-up > .ly-fore { transform-origin: 57.9% 53.7%; }
.o2-rig.o2-c-lynx .o2-bird, .o2-rig.o2-c-lynx .o2-head { transform-origin: 50% 97%; }
.o2-rig.o2-c-lynx .o2-tail { transform-origin: 35% 63%; }
.o2-rig.o2-c-lynx .o2-arm-r, .o2-rig.o2-c-lynx .o2-arm-r-up, .o2-rig.o2-c-lynx .ly-think { transform-origin: 34.6% 37.5%; } .o2-rig.o2-c-lynx .o2-arm-l, .o2-rig.o2-c-lynx .o2-arm-l-up { transform-origin: 60.6% 37.5%; }
.o2-rig.o2-c-lynx .ly-wave { z-index: 1; } .o2.o2-rig.o2-c-lynx.o2-waving .ly-wave { transform-origin: 34.6% 37.5%; }
.o2-rig.o2-c-lynx .o2-arm-r > .ly-fore { transform-origin: 31.6% 50.1%; } .o2-rig.o2-c-lynx .o2-arm-l > .ly-fore { transform-origin: 63.8% 50.1%; } .o2-rig.o2-c-lynx .o2-arm-r-up > .ly-fore { transform-origin: 37.4% 50.1%; } .o2-rig.o2-c-lynx .o2-arm-l-up > .ly-fore { transform-origin: 57.3% 50.1%; }
.o2-rig.o2-c-gecko .o2-bird, .o2-rig.o2-c-gecko .o2-head { transform-origin: 46% 97%; }
.o2-rig.o2-c-gecko .o2-tail { transform-origin: 48.5% 61%; }
.o2-rig.o2-c-gecko .o2-arm-r, .o2-rig.o2-c-gecko .o2-arm-r-up, .o2-rig.o2-c-gecko .ly-think { transform-origin: 33.5% 33%; } .o2-rig.o2-c-gecko .o2-arm-l, .o2-rig.o2-c-gecko .o2-arm-l-up { transform-origin: 58% 33%; }
.o2-rig.o2-c-gecko .ly-wave { z-index: 1; } .o2.o2-rig.o2-c-gecko.o2-waving .ly-wave { transform-origin: 33.5% 33%; }
.o2-rig.o2-c-gecko .o2-arm-r > .ly-fore { transform-origin: 28.1% 46.7%; } .o2-rig.o2-c-gecko .o2-arm-l > .ly-fore { transform-origin: 61.9% 46.7%; } .o2-rig.o2-c-gecko .o2-arm-r-up > .ly-fore { transform-origin: 38.8% 46.7%; } .o2-rig.o2-c-gecko .o2-arm-l-up > .ly-fore { transform-origin: 54.0% 46.7%; }
/* The cartoon kids (Tina, Nov 3): Milo, Luna, Finn, Ivy, Kai, Jada. Shoulders from each pack's rig.json; elbows from the arm art.
   The raised hand is the same arm with the forearm turned over at the elbow (Tina: the thin arms changed shape), so its elbow is the same. */
.o2-rig.o2-c-milo .o2-bird, .o2-rig.o2-c-milo .o2-head { transform-origin: 50.2% 97%; }
.o2-rig.o2-c-milo .o2-arm-r, .o2-rig.o2-c-milo .o2-arm-r-up, .o2-rig.o2-c-milo .ly-think { transform-origin: 39.4% 35.3%; } .o2-rig.o2-c-milo .o2-arm-l, .o2-rig.o2-c-milo .o2-arm-l-up { transform-origin: 61.8% 35.3%; }
.o2-rig.o2-c-milo .ly-wave { z-index: 1; } .o2.o2-rig.o2-c-milo.o2-waving .ly-wave { transform-origin: 39.4% 35.3%; }
.o2-rig.o2-c-milo .o2-arm-r > .ly-fore { transform-origin: 36.6% 48.6%; } .o2-rig.o2-c-milo .o2-arm-l > .ly-fore { transform-origin: 63.8% 48.4%; } .o2-rig.o2-c-milo .o2-arm-r-up > .ly-fore { transform-origin: 36.6% 48.6%; } .o2-rig.o2-c-milo .o2-arm-l-up > .ly-fore { transform-origin: 63.8% 48.4%; }
.o2-rig.o2-c-luna .o2-bird, .o2-rig.o2-c-luna .o2-head { transform-origin: 50.0% 97%; }
.o2-rig.o2-c-luna .o2-arm-r, .o2-rig.o2-c-luna .o2-arm-r-up, .o2-rig.o2-c-luna .ly-think { transform-origin: 39.1% 33.6%; } .o2-rig.o2-c-luna .o2-arm-l, .o2-rig.o2-c-luna .o2-arm-l-up { transform-origin: 61.0% 33.7%; }
.o2-rig.o2-c-luna .ly-wave { z-index: 1; } .o2.o2-rig.o2-c-luna.o2-waving .ly-wave { transform-origin: 39.1% 33.6%; }
.o2-rig.o2-c-luna .o2-arm-r > .ly-fore { transform-origin: 37.9% 46.9%; } .o2-rig.o2-c-luna .o2-arm-l > .ly-fore { transform-origin: 62.1% 46.9%; } .o2-rig.o2-c-luna .o2-arm-r-up > .ly-fore { transform-origin: 37.9% 46.9%; } .o2-rig.o2-c-luna .o2-arm-l-up > .ly-fore { transform-origin: 62.1% 46.9%; }
.o2-rig.o2-c-finn .o2-bird, .o2-rig.o2-c-finn .o2-head { transform-origin: 50.1% 97%; }
.o2-rig.o2-c-finn .o2-arm-r, .o2-rig.o2-c-finn .o2-arm-r-up, .o2-rig.o2-c-finn .ly-think { transform-origin: 39.3% 31.3%; } .o2-rig.o2-c-finn .o2-arm-l, .o2-rig.o2-c-finn .o2-arm-l-up { transform-origin: 61.1% 31.4%; }
.o2-rig.o2-c-finn .ly-wave { z-index: 1; } .o2.o2-rig.o2-c-finn.o2-waving .ly-wave { transform-origin: 39.3% 31.3%; }
.o2-rig.o2-c-finn .o2-arm-r > .ly-fore { transform-origin: 37.1% 45.4%; } .o2-rig.o2-c-finn .o2-arm-l > .ly-fore { transform-origin: 62.8% 45.6%; } .o2-rig.o2-c-finn .o2-arm-r-up > .ly-fore { transform-origin: 37.1% 45.4%; } .o2-rig.o2-c-finn .o2-arm-l-up > .ly-fore { transform-origin: 62.8% 45.6%; }
.o2-rig.o2-c-ivy .o2-bird, .o2-rig.o2-c-ivy .o2-head { transform-origin: 50.1% 97%; }
.o2-rig.o2-c-ivy .o2-arm-r, .o2-rig.o2-c-ivy .o2-arm-r-up, .o2-rig.o2-c-ivy .ly-think { transform-origin: 38.9% 33.4%; } .o2-rig.o2-c-ivy .o2-arm-l, .o2-rig.o2-c-ivy .o2-arm-l-up { transform-origin: 61.2% 33.4%; }
.o2-rig.o2-c-ivy .ly-wave { z-index: 1; } .o2.o2-rig.o2-c-ivy.o2-waving .ly-wave { transform-origin: 38.9% 33.4%; }
.o2-rig.o2-c-ivy .o2-arm-r > .ly-fore { transform-origin: 37.4% 47.0%; } .o2-rig.o2-c-ivy .o2-arm-l > .ly-fore { transform-origin: 62.5% 47.0%; } .o2-rig.o2-c-ivy .o2-arm-r-up > .ly-fore { transform-origin: 37.4% 47.0%; } .o2-rig.o2-c-ivy .o2-arm-l-up > .ly-fore { transform-origin: 62.5% 47.0%; }
.o2-rig.o2-c-kai .o2-bird, .o2-rig.o2-c-kai .o2-head { transform-origin: 50.1% 97%; }
.o2-rig.o2-c-kai .o2-arm-r, .o2-rig.o2-c-kai .o2-arm-r-up, .o2-rig.o2-c-kai .ly-think { transform-origin: 38.8% 29.8%; } .o2-rig.o2-c-kai .o2-arm-l, .o2-rig.o2-c-kai .o2-arm-l-up { transform-origin: 62.1% 29.7%; }
.o2-rig.o2-c-kai .ly-wave { z-index: 1; } .o2.o2-rig.o2-c-kai.o2-waving .ly-wave { transform-origin: 38.8% 29.8%; }
.o2-rig.o2-c-kai .o2-arm-r > .ly-fore { transform-origin: 36.8% 44.3%; } .o2-rig.o2-c-kai .o2-arm-l > .ly-fore { transform-origin: 63.2% 44.1%; } .o2-rig.o2-c-kai .o2-arm-r-up > .ly-fore { transform-origin: 36.8% 44.3%; } .o2-rig.o2-c-kai .o2-arm-l-up > .ly-fore { transform-origin: 63.2% 44.1%; }
.o2-rig.o2-c-jada .o2-bird, .o2-rig.o2-c-jada .o2-head { transform-origin: 50.0% 97%; }
.o2-rig.o2-c-jada .o2-arm-r, .o2-rig.o2-c-jada .o2-arm-r-up, .o2-rig.o2-c-jada .ly-think { transform-origin: 39.4% 29.4%; } .o2-rig.o2-c-jada .o2-arm-l, .o2-rig.o2-c-jada .o2-arm-l-up { transform-origin: 61.7% 29.2%; }
.o2-rig.o2-c-jada .ly-wave { z-index: 1; } .o2.o2-rig.o2-c-jada.o2-waving .ly-wave { transform-origin: 39.4% 29.4%; }
.o2-rig.o2-c-jada .o2-arm-r > .ly-fore { transform-origin: 37.1% 43.0%; } .o2-rig.o2-c-jada .o2-arm-l > .ly-fore { transform-origin: 63.0% 43.1%; } .o2-rig.o2-c-jada .o2-arm-r-up > .ly-fore { transform-origin: 37.1% 43.0%; } .o2-rig.o2-c-jada .o2-arm-l-up > .ly-fore { transform-origin: 63.0% 43.1%; }
/* Rook's elbows (live.elbow): where each forearm turns (the raised-hand images are mirrored, so theirs sit a little apart). */
.o2-rig.o2-c-wolf .o2-arm-r > .ly-fore { transform-origin: 42.7% 64.1%; } .o2-rig.o2-c-wolf .o2-arm-l > .ly-fore { transform-origin: 57.6% 64.1%; }
.o2-rig.o2-c-wolf .o2-arm-r-up > .ly-fore { transform-origin: 36.2% 64.1%; } .o2-rig.o2-c-wolf .o2-arm-l-up > .ly-fore { transform-origin: 63.0% 64.1%; }
.o2-rig.o2-c-hoverbot .o2-bird, .o2-rig.o2-c-hoverbot .o2-head { transform-origin: 50% 97%; }
.o2-rig.o2-c-hoverbot .o2-arm-r, .o2-rig.o2-c-hoverbot .o2-arm-r-up, .o2-rig.o2-c-hoverbot .ly-think { transform-origin: 39.1% 53.5%; } .o2-rig.o2-c-hoverbot .o2-arm-l, .o2-rig.o2-c-hoverbot .o2-arm-l-up { transform-origin: 60.7% 53.5%; }
.o2-rig.o2-c-hoverbot .ly-wave { z-index: 1; } .o2.o2-rig.o2-c-hoverbot.o2-waving .ly-wave { transform-origin: 39.1% 53.5%; }
/* Live motion (opti.js liveMotion) moves these every frame, so no CSS motion of its own. */
.o2-rig.o2-live .o2-bird, .o2-rig.o2-live .o2-head, .o2-rig.o2-live .ly { animation: none; transition: none; }
@keyframes o2-rig-wave { 0%, 100% { transform: rotate(0) } 50% { transform: rotate(-9deg) } }
/* A picture-frame instructor (opti.js spriteAvatar): the frames stack in one box; moves turn the whole figure. */
.o2-sprite .o2-bird, .o2-sprite .o2-head { position: absolute; inset: 0; transform-origin: 50% 92%; }
.o2-sprite .o2-fr { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; user-select: none; -webkit-user-drag: none; }
.o2.o2-sprite.is-listening .o2-head { transform: rotate(-3deg); } .o2.o2-sprite.is-thinking .o2-head { transform: none; }
.o2.is-speaking .o2-halo { fill: var(--teal); animation: opti-pulse 2s ease-out infinite; }
.o2.o2-point .o2-wing-r { transform: rotate(-58deg); animation: none; } .o2.o2-point .o2-look { transform: translateX(10px); } .o2.o2-point .o2-head { transform: rotate(5deg); }
.o2.o2-happy .o2-smile-lid { transform: scaleY(1); } .o2.o2-happy .o2-wing-l { transform: rotate(30deg); } .o2.o2-happy .o2-wing-r { transform: rotate(-30deg); animation: none; } .o2.o2-happy .o2-brow { transform: translateY(-6px); }
.o2.o2-happy .o2-bird { animation: o2-hop .6s ease-out 2; }
.o2.o2-encourage .o2-brow-l { transform: rotate(-8deg) translateY(-2px); } .o2.o2-encourage .o2-brow-r { transform: rotate(8deg) translateY(-2px); } .o2.o2-encourage .o2-head { animation: o2-nod 1s ease-in-out 1; }
@keyframes opti-breathe { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-4px) } }
@keyframes opti-talk { 0%, 100% { transform: translateY(0) rotate(0) } 30% { transform: translateY(-3px) rotate(-1.2deg) } 70% { transform: translateY(-1px) rotate(1.2deg) } }
@keyframes opti-tassel { 0%, 100% { transform: rotate(0) } 50% { transform: rotate(6deg) } }
@keyframes opti-pulse { 0% { transform: scale(.82); opacity: .35 } 100% { transform: scale(1.08); opacity: 0 } }
@keyframes o2-gesture { 0%, 100% { transform: rotate(0) } 40% { transform: rotate(-16deg) } 60% { transform: rotate(-10deg) } }
@keyframes o2-gesture-l { 0%, 100% { transform: rotate(0) } 40% { transform: rotate(16deg) } 60% { transform: rotate(10deg) } }
@keyframes o2-lift { 0%, 100% { transform: translateY(0) } 35% { transform: translateY(-7px) } }
@keyframes o2-sway { 0%, 100% { transform: rotate(0) } 50% { transform: rotate(-5deg) } }
@keyframes o2-glance { 0%, 100% { transform: translate(0, 0) } 25%, 40% { transform: translate(-8px, 1px) } 60%, 75% { transform: translate(8px, 1px) } }
@keyframes o2-tilt { 0%, 100% { transform: rotate(0) } 30%, 70% { transform: rotate(-8deg) } }
@keyframes o2-stretch { 0%, 100% { transform: scale(1, 1) } 30% { transform: scale(1.04, .95) } 60% { transform: scale(.97, 1.04) translateY(-4px) } }
@keyframes o2-blink2 { 0%, 100% { transform: scaleY(0) } 12%, 22% { transform: scaleY(1) } 34% { transform: scaleY(0) } 50%, 60% { transform: scaleY(1) } 72% { transform: scaleY(0) } }
@keyframes o2-blink2-lash { 0%, 100% { opacity: 0 } 12%, 22% { opacity: 1 } 34% { opacity: 0 } 50%, 60% { opacity: 1 } 72% { opacity: 0 } }
@keyframes o2-wag { 0%, 100% { transform: rotate(0) } 25% { transform: rotate(-14deg) } 75% { transform: rotate(10deg) } }
@keyframes o2-ear-l { 0%, 100% { transform: rotate(0) } 50% { transform: rotate(-12deg) } }
@keyframes o2-ear-r { 0%, 100% { transform: rotate(0) } 50% { transform: rotate(12deg) } }
@keyframes o2-flap-l { 0%, 100% { transform: rotate(0) } 50% { transform: rotate(22deg) } }
@keyframes o2-flap-r { 0%, 100% { transform: rotate(0) } 50% { transform: rotate(-22deg) } }
@keyframes o2-tassel-swing { 0%, 100% { transform: rotate(0) } 25% { transform: rotate(16deg) } 60% { transform: rotate(-10deg) } }
@keyframes o2-hover { 0%, 100% { transform: translateY(0) rotate(0) } 25% { transform: translateY(-7px) rotate(-1deg) } 75% { transform: translateY(-3px) rotate(1deg) } }
@keyframes o2-hop { 0%, 100% { transform: translateY(0) } 40% { transform: translateY(-14px) } }
@keyframes o2-nod { 0%, 100% { transform: rotate(0) } 35% { transform: rotate(-4deg) translateY(3px) } 70% { transform: rotate(2deg) } }
.o2-still *, .o2-still { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { .opti *, .o2 * { animation: none !important; } }
/* Still tutor icons (coach.js, used where a state or school calls for them). States show as a small signal beside the icon, never on it. */
.tutor-signal { position: absolute; right: -2px; bottom: 2px; display: none; gap: 3px; align-items: flex-end; background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 3px 6px; height: 16px; box-shadow: var(--shadow); }
.tutor-signal i { display: block; width: 4px; height: 4px; border-radius: 2px; background: var(--teal); }
.tutor-icon.is-listening .tutor-signal, .tutor-icon.is-thinking .tutor-signal, .tutor-icon.is-speaking .tutor-signal { display: inline-flex; }
.tutor-icon.is-listening .tutor-signal i { background: #e5484d; }
.tutor-icon.is-listening .tutor-signal i:nth-child(n+2) { display: none; }
.tutor-icon.is-listening .tutor-signal i:first-child { width: 8px; height: 8px; border-radius: 50%; animation: tutor-blink 1.2s ease-in-out infinite; }
.tutor-icon.is-thinking .tutor-signal { align-items: center; }
.tutor-icon.is-thinking .tutor-signal i { animation: tutor-blink 1.2s ease-in-out infinite; }
.tutor-icon.is-thinking .tutor-signal i:nth-child(2) { animation-delay: .2s; } .tutor-icon.is-thinking .tutor-signal i:nth-child(3) { animation-delay: .4s; }
.tutor-icon.is-speaking .tutor-signal i { animation: tutor-bars .8s ease-in-out infinite; }
.tutor-icon.is-speaking .tutor-signal i:nth-child(2) { animation-delay: .15s; } .tutor-icon.is-speaking .tutor-signal i:nth-child(3) { animation-delay: .3s; }
@keyframes tutor-blink { 50% { opacity: .25; } }
@keyframes tutor-bars { 50% { height: 10px; } }
@media (prefers-reduced-motion: reduce) { .tutor-signal i { animation: none !important; } }

/* Tutor page: chat + Opti card side by side (Arthur-style) */
.tutor-layout { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
@media (max-width: 860px) { .tutor-layout { grid-template-columns: 1fr; } .opti-card { order: -1; flex-direction: row !important; text-align: left !important; } .opti-card .opti { --size: 90px !important; } }
.opti-card { background: linear-gradient(160deg, var(--navy), #0d3b7a); color: #fff; border-radius: 18px; padding: 22px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; position: sticky; top: 80px; box-shadow: var(--shadow); }
.opti-card .opti-face { fill: #fff; }
.opti-card .opti-halo { fill: var(--sky); }
.opti-card .status { font-size: .82rem; color: #bfe9f6; display: inline-flex; align-items: center; gap: 6px; }
.opti-card .status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3ddc97; }
.opti-card h3 { color: #fff; margin: 0; font-size: 1.3rem; }
.opti-card .hint { font-size: .82rem; color: #bcd0ea; }
.opti-card select { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.25); font-size: .88rem; padding: 8px 10px; }
.opti-card select option { color: var(--ink); }
.opti-card label { color: #dbe6f5; font-size: .8rem; font-weight: 600; margin: 0; }

/* Mic + speaker controls */
.mic { width: 46px; height: 46px; min-width: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center; color: var(--navy); touch-action: none; user-select: none; -webkit-user-select: none; }
.mic svg { width: 20px; height: 20px; }
.mic:hover { border-color: var(--teal); }
.mic.on { background: var(--magenta); border-color: var(--magenta); color: #fff; box-shadow: 0 0 0 6px rgba(178,43,171,.18); }
.mic.big { width: 76px; height: 76px; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); color: #fff; }
.mic.big svg { width: 30px; height: 30px; }
.mic.big.on { background: var(--magenta); border-color: var(--magenta); }
.icon-btn { background: none; border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 10px; cursor: pointer; color: var(--navy); font-size: .85rem; display: inline-flex; gap: 6px; align-items: center; }
.icon-btn[aria-pressed=true] { background: var(--sky-soft); border-color: var(--teal); }
.msg .replay { border: none; background: none; cursor: pointer; color: var(--teal-dark); font-size: .8rem; padding: 4px 0 0; display: block; }
.opti-card #opti-big { background: #fff; border-radius: 50%; padding: 22px 26px 16px; box-shadow: 0 0 0 8px rgba(84,200,232,.18); }
.opti-card .icon-btn { color: #fff; border-color: rgba(255,255,255,.3); }
.opti-card .icon-btn[aria-pressed=true] { background: rgba(84,200,232,.22); border-color: var(--sky); color: #fff; }

/* Inside a Canvas frame (the frame is resized to fit the page) */
body.lti-frame .chat.page { height: 640px; min-height: 0; }
body.lti-frame .drawer { position: absolute; bottom: auto; height: 680px; }
body.lti-frame .q-passage { max-height: none; }

/* Teacher view */
.class-table th.unit-col, .class-table td.unit-cell { text-align: center; width: 42px; padding: 8px 4px; }
.class-table td.unit-cell { font-size: .8rem; font-weight: 600; color: var(--navy); border: 2px solid #fff; border-radius: 6px; }
.class-table th[scope="row"].cls-name { text-align: left; font-weight: inherit; }
.unit-cell.hm-low { text-decoration: underline wavy; text-underline-offset: 3px; }
.unit-cell.hm-none { color: var(--muted); }
.heat-legend { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 6px 0 10px; }
.heat-legend li { display: flex; align-items: center; gap: 6px; }
.heat-legend .unit-cell { display: inline-grid; place-items: center; min-width: 30px; height: 26px; border-radius: 6px; font-weight: 600; color: var(--navy); }
.heat-legend .hm-done { background: hsl(110, 60%, 72%); } .heat-legend .hm-ok { background: hsl(96, 60%, 72%); } .heat-legend .hm-low { background: hsl(36, 60%, 85%); } .heat-legend .hm-none { background: #f1f4f8; }
.heat-alt { margin-top: 8px; } .heat-alt summary { cursor: pointer; font-weight: 600; min-height: 24px; }
.convo { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.convo summary { cursor: pointer; }
.convo .chat-log { max-height: 420px; }

/* Canvas mode: no website chrome; side panel fills its frame */
body.lti .topbar { display: none; }
body.side main { padding: 0; max-width: none; height: 100vh; }
body.side .chat.side { height: 100vh; border: none; }
body.side .chat-head { padding: 10px 12px; }

/* Boot Camp pages and quizzes (team-authored HTML) */
.bc-content { overflow-wrap: anywhere; }
.bc-content img { max-width: 100%; height: auto; border-radius: 10px; }
/* The R&W SME's sample registration photo (Parent Resources, Step 4) is a 1312px square: photo-sized, not page-wide.
   Set here, not in the page, because the page is rebuilt from her Canvas export. */
img[src$="sat-rw/1619216.jpg"] { width: 240px; max-width: 100%; height: auto; }
.bc-content table { display: block; overflow-x: auto; max-width: 100%; }
.bc-content h1, .bc-content h2, .bc-content h3 { margin-top: 1em; }
.bc-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.bc-item:hover { background: var(--sky-soft); }
.bc-item span:nth-child(2) { flex: 1; }
.bc-check { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; color: #fff; background: #fff; font-size: .8rem; flex: none; }
.bc-item:has(.bc-check:not(:empty)) .bc-check { background: var(--green); border-color: var(--green); }
.bc-nav { margin-top: 18px; gap: 12px; }
.bc-path.chosen { box-shadow: 0 0 0 3px rgba(0,150,188,.2); }

/* Class account button in the top bar */
.nav-acct { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .85em; cursor: pointer; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.nav-acct:hover { background: rgba(255,255,255,.22); }
/* Adaptive path */
.mode-card { text-align: left; cursor: pointer; margin: 0; font: inherit; border: 1px solid var(--line); }
.mode-card:hover, .mode-card:focus-visible { border-color: var(--teal); }
.mode-card.rec { border: 2px solid var(--teal); }
.teacher-face { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex: none; }
.teacher-face img { width: 100%; height: 100%; object-fit: cover; }
.pulse { animation: pulse 1.4s ease-in-out 3; }
@keyframes pulse { 50% { transform: scale(1.04); } }
@media print { .topbar, .no-print, #drawer, form#ovr, [data-ex] .row { display: none !important; } main { padding: 0; } .card { box-shadow: none; break-inside: avoid; } }
/* Website teachers only need their class view */
body.teacher-mode #nav a { display: none; }

/* Human coaches (coach.js): same states as the owl */
.coach { width: var(--size, 56px); height: calc(var(--size, 56px) * 1.067); flex: none; position: relative; }
.coach svg { width: 100%; height: 100%; overflow: visible; display: block; }
.coach-halo { transform-origin: 150px 170px; }
.coach-body, .coach-head, .coach-iris, .coach-brows, .coach-eye { transform-box: view-box; transition: transform .25s ease; }
.coach-body { transform-origin: 150px 320px; animation: coach-breathe 4.8s ease-in-out infinite; }
.coach-head { transform-origin: 150px 230px; }
.coach.blink .coach-eye { transform: scaleY(.1); transition-duration: .07s; }
.coach.is-listening .coach-head { transform: rotate(-5deg); }
.coach.is-listening .coach-brows { transform: translateY(-3px); }
.coach.is-listening .coach-halo { animation: opti-pulse 1.4s ease-out infinite; }
.coach.is-thinking .coach-iris { transform: translate(4px, -3px); }
.coach.is-thinking .coach-head { transform: rotate(3deg); }
.coach.is-speaking .coach-head { animation: coach-nod 2.2s ease-in-out infinite; }
@keyframes coach-breathe { 50% { transform: translateY(-1.5px) scale(1.004); } }
@keyframes coach-nod { 25% { transform: rotate(-1.5deg) translateY(1px); } 75% { transform: rotate(1.5deg); } }
@media (prefers-reduced-motion: reduce) { .coach-body, .coach.is-speaking .coach-head { animation: none; } }
.coach-choice { cursor: pointer; font: inherit; border: 2px solid var(--line); }
.coach-choice[aria-pressed="true"] { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,150,188,.15); }
.coach-choice .coach, .coach-choice .opti { display: block; }

/* ===== v2: Today, missions, skill map, lesson player, games ===== */
.today-hero { display: grid; grid-template-columns: 1fr minmax(260px, 360px); gap: 18px; align-items: center; margin-bottom: 18px; }
@media (max-width: 820px) { .today-hero { grid-template-columns: 1fr; } }
.today-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.stat-chip { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow); }
.stat-chip span { font-size: .8em; color: var(--muted); }
.coach-says { display: flex; gap: 14px; align-items: flex-end; }
.coach-says .bubble { background: #fff; border: 1px solid var(--line); border-radius: 18px 18px 18px 4px; padding: 12px 16px; box-shadow: var(--shadow); max-width: 560px; }
.coach-says .bubble p { margin: .2em 0 0; font-size: 1.08em; }
.xp-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.xp-bar { height: 10px; background: var(--sky-soft); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.xp-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--sky)); border-radius: 99px; transition: width .6s ease; }
.xp-pop { position: fixed; top: 76px; right: 24px; background: var(--navy); color: #fff; font-weight: 800; padding: 8px 14px; border-radius: 99px; z-index: 60; animation: xp-pop 1.6s ease forwards; }
@keyframes xp-pop { 0% { opacity: 0; transform: translateY(10px) } 15% { opacity: 1; transform: none } 80% { opacity: 1 } 100% { opacity: 0; transform: translateY(-14px) } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 70; }
.start-banner { display: flex; gap: 14px; align-items: center; justify-content: space-between; border-left: 6px solid var(--magenta); margin-bottom: 16px; flex-wrap: wrap; }
.today-grid { grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .today-grid { grid-template-columns: 1fr; } }
.mission { border-top: 6px solid var(--gold, #f4bf3a); }
.mission-steps { list-style: none; padding: 0; margin: 14px 0 6px; display: flex; flex-direction: column; gap: 8px; }
.mission-steps li { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.mission-steps li.next { border: 2px solid var(--teal); background: var(--sky-soft); }
.mission-steps li.done { opacity: .65; }
.ms-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #f4f7fb; font-size: 1.2em; }
.mission-steps li.done .ms-ico { background: var(--green-soft); color: var(--green); font-weight: 900; }
.seg { display: inline-flex; background: #eef2f8; border-radius: 99px; padding: 3px; }
.seg a { padding: 6px 14px; border-radius: 99px; color: var(--navy); text-decoration: none; font-weight: 700; font-size: .9em; }
.seg a.on { background: #fff; box-shadow: var(--shadow); }
.side-tile { display: block; text-decoration: none; color: inherit; }
.side-tile:hover { border-color: var(--teal); }
.bc-prog { display: block; text-decoration: none; color: inherit; margin: 10px 0; }
.bc-prog span { margin-left: 8px; }
.camp-card { text-decoration: none; color: inherit; display: block; }
.game-ico { font-size: 2em; }
.game-tile { text-decoration: none; color: inherit; display: block; transition: transform .15s ease; }
.game-tile h2 { font-size: 1.17em; margin: .6em 0 .3em; }
.game-tile:hover { transform: translateY(-3px); border-color: var(--teal); }
.game-hud { display: flex; justify-content: space-between; align-items: center; max-width: 780px; margin: 0 auto 12px; }
.trap-pick { background: #fff3df; font-weight: 700; border-radius: 6px; }
.shake { animation: shake .35s; } @keyframes shake { 25% { transform: translateX(-6px) } 75% { transform: translateX(6px) } }
/* skill map */
.skill-map { width: 100%; height: auto; display: block; }
.skill-map.mini { pointer-events: none; }
.sm-lane { font: 800 13px var(--display); fill: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.sm-edge { fill: none; stroke: #d6dfeb; stroke-width: 3; }
.sm-edge.lit { stroke: var(--sky); }
.sm-node { cursor: pointer; outline: none; }
.sm-ring-bg { fill: none; stroke: #e6edf5; stroke-width: 6; }
.sm-ring { fill: none; stroke: var(--teal); stroke-width: 6; stroke-linecap: round; transition: stroke-dasharray .6s ease; }
.sm-dot { fill: #fff; stroke: #d6dfeb; stroke-width: 1.5; }
.sm-val { font: 800 13px var(--display); fill: var(--navy); }
.sm-label { font: 600 12px var(--text); fill: var(--ink); }
.sm-node.mastered .sm-dot { fill: #fff6d9; stroke: #f4bf3a; } .sm-node.mastered .sm-ring { stroke: #f4bf3a; } .sm-node.mastered .sm-val { fill: #b37d00; font-size: 18px; }
.sm-node.locked { opacity: .55; } .sm-node.locked .sm-val { font-size: 14px; }
.sm-node.due .sm-dot { animation: due 1.8s ease-in-out infinite; } @keyframes due { 50% { fill: #fbe3fa; } }
.sm-node:hover .sm-dot, .sm-node:focus .sm-dot { stroke: var(--teal); stroke-width: 3; }
.sheet-wrap { position: fixed; inset: 0; background: rgba(1,26,68,.35); display: grid; place-items: center; z-index: 50; padding: 16px; }
.sheet { max-width: 620px; width: 100%; position: relative; max-height: 90vh; overflow: auto; }
.sheet-x { position: absolute; right: 10px; top: 10px; }
/* lesson player */
.lp { max-width: 860px; margin: 0 auto; }
.lp-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.lp-progress { flex: 1; height: 10px; background: #e6edf5; border-radius: 99px; overflow: hidden; }
.lp-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--sky)); transition: width .3s ease; }
.lp-card { min-height: 360px; animation: lp-in .25s ease; }
@keyframes lp-in { from { opacity: 0; transform: translateX(14px) } to { opacity: 1; transform: none } }
.lp-title { font-size: 2em; margin: .2em 0; }
.lead { font-size: 1.12em; color: var(--muted); }
.lp-goal, .lp-hook { background: #fff6d9; border-left: 6px solid #f4bf3a; border-radius: 0 12px 12px 0; padding: 12px 16px; margin: 12px 0; }
.lp-hook { background: var(--magenta-soft); border-color: var(--magenta); }
.lp-expect { background: var(--navy); color: #fff; border-radius: 14px; padding: 12px 16px; margin: 12px 0 18px; }
.lp-expect .eyebrow { color: #f4bf3a; }
.lp-text { font-size: 1.06em; }
.lp-callout { background: var(--sky-soft); border-left: 6px solid var(--teal); padding: 12px 16px; border-radius: 0 12px 12px 0; }
.lp-order { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.lp-order .chip.ok { background: var(--green-soft); border-color: var(--green); color: var(--green); }
.lp-steps li { margin: .5em 0; animation: lp-in .25s ease; }
.lp-frame { width: 100%; height: 600px; border: 1px solid var(--line); border-radius: 12px; }
.lp-frame.short { height: 440px; }
.lp-fig img { max-width: 100%; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.lp-fig figcaption { color: var(--muted); font-size: .92em; margin-top: 6px; }
.lp-traps { display: grid; gap: 10px; }
.lp-trap { text-align: left; background: #fff3df; border: 2px solid #f0d199; border-radius: 12px; padding: 12px 14px; font: inherit; cursor: pointer; }
.lp-trap[aria-pressed="true"] { border-color: var(--amber); background: #ffe7bf; }
.lp-trap[aria-pressed="true"]::before { content: "On my watch list · "; font-weight: 800; color: var(--amber); }
.lp-feel .on { background: var(--teal); color: #fff; }
.lp-nav { max-width: 860px; margin: 14px auto 0; }
.lp-choices .choice { width: 100%; text-align: left; }
.mm-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 8px 0; }
.mm-dots { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.mm-dot { width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--teal); background: rgb(0 150 188 / calc(var(--p) * 1%)); display: inline-block; }
.mm-dot.mastered { background: #f4bf3a; border-color: #d9a522; }
.mm-dot.locked { border-color: #c5d0de; background: #eef2f8; }
.mm-dot.due { box-shadow: 0 0 0 2px var(--magenta); }
.choice.opt { display: block; width: 100%; text-align: left; font: inherit; }
.choice.opt .text { display: block; }
/* learning journey */
.journey { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr); gap: 18px; align-items: start; }
@media (max-width: 860px) { .journey { grid-template-columns: 1fr; } }
.journey .chat { height: 560px; }
.j-portrait { position: sticky; top: 80px; }
.j-portrait h4 { margin: 12px 0 4px; font-size: .95em; color: var(--teal-dark); }
.pt-list { margin: 0; padding-left: 1.1em; }
.pt-list li { margin: 4px 0; }
#j-pt.updating { opacity: .55; transition: opacity .3s; }

/* show your thinking */
.think { margin: 10px 0; background: #f7fbfe; border-color: var(--sky); }
.mis-card { background: var(--magenta-soft); border-left: 5px solid var(--magenta); border-radius: 0 12px 12px 0; padding: 10px 14px; margin-top: 8px; }

.create-grid { grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .create-grid { grid-template-columns: 1fr; } }
.game-tile.dim { opacity: .55; }

.energy { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 4px; padding: 10px 12px; background: #f4f7fb; border-radius: 12px; }
.mission-why { background: var(--sky-soft); border-radius: 10px; padding: 8px 12px; margin: 10px 0 0; }

table.ins { width: 100%; border-collapse: collapse; font-size: .92em; }
table.ins th, table.ins td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.ins-list { padding-left: 1.1em; }
.test-bars { display: flex; gap: 14px; align-items: flex-end; margin: 10px 0; }
.test-bars > div { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tb { width: 34px; background: linear-gradient(180deg, var(--sky), var(--teal)); border-radius: 8px 8px 0 0; }

/* coach check-ins, tour, Today call to action */
.support-wrap { position: fixed; inset: 0; background: rgba(1,26,68,.38); display: grid; place-items: center; z-index: 1000; padding: 16px; }
.support { max-width: 560px; width: 100%; animation: lp-in .2s ease; }
.support-opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.support-inline { display: flex; gap: 10px; align-items: flex-start; background: var(--sky-soft); border-radius: 12px; padding: 10px 12px; margin-top: 10px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0 0 98px; }
@media (max-width: 640px) { .cta-row { margin-left: 0; } }
.btn.cta { font-size: 1.1em; padding: 14px 22px; box-shadow: 0 6px 18px rgba(0,150,188,.3); }
.device-only { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; max-width: 1100px; margin: 12px auto 0; padding: 12px 16px; border-radius: 12px; background: #fff6d9; border: 1px solid #f0d27a; color: #4a3b00; }
.device-only .btn { padding: 8px 14px; }

/* ---------- readiness, Foundations, SAT Practice (docs/READINESS.md) ---------- */
.readiness-chip { text-decoration: none; color: inherit; display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.readiness-chip span { font-size: .85em; opacity: .8; }
.fnd-list { padding-left: 18px; } .fnd-list li { margin: 6px 0; }
.fnd-tile { text-decoration: none; color: inherit; display: block; }
.fnd-tile.is-gap { border: 2px solid #f0d27a; }
.pill.ok { background: #e3f5ea; color: #1f6b3b; } .pill.gap { background: #fff3d6; color: #7a5600; }
.pill.no { background: #fde8e8; color: #a12626; } /* a miss reads as a miss (Math SME, Nov 2, 2026) */
.fnd-plus { border: 2px dashed #c9b4e8; background: #fbf8ff; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.sat-tile h2 { margin: .2em 0; }
.sat-run { max-width: 820px; margin: 0 auto; }
.sat-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #0b2447; color: #fff; padding: 10px 16px; border-radius: 12px; margin-bottom: 14px; }
.sat-bar .btn.ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.sat-clock { font: inherit; font-weight: 800; font-size: 1.15em; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; padding: 4px 12px; cursor: pointer; min-width: 74px; }
.sat-clock.warn { background: #b3261e; border-color: #b3261e; }
.sat-q .choice.picked { outline: 2px solid var(--teal); }
.sat-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; }
.sat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 8px; margin: 12px 0; }
.sat-cell { position: relative; font: inherit; font-weight: 700; padding: 8px 0; border-radius: 8px; border: 1px dashed #9aa7b8; background: #fff; cursor: pointer; }
.sat-cell.ans { border-style: solid; background: #e8f3fb; } .sat-cell.cur { outline: 2px solid var(--teal); }
.sat-cell i { position: absolute; top: -8px; right: -6px; font-style: normal; font-size: .8em; }
.sat-miss { border-top: 1px solid #e6ebf1; padding: 10px 0; } .sat-miss summary { cursor: pointer; }
.btn.sm { padding: 6px 10px; }
@media (max-width: 640px) { .sat-bar { flex-wrap: wrap; } }
.mem-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.mem-list li { border: 1px solid #e3e9f0; border-radius: 10px; padding: 10px 12px; display: grid; gap: 3px; }
.mem-list li .btn { justify-self: start; margin-top: 4px; }

/* ---------- manipulatives (docs/MANIPULATIVES.md) ---------- */
.manip { display: grid; gap: 8px; }
.mp-svg { width: 100%; max-width: 480px; height: auto; display: block; margin: 0 auto; }
.mp-eq { text-align: center; font-size: 1.25em; font-weight: 800; margin: 4px 0; }
.mp-eq span { color: #c2185b; margin: 0 4px; }
.mp-ctrl { display: flex; flex-wrap: wrap; gap: 8px; }
.mp-tick { cursor: pointer; } .mp-tick:focus { outline: none; } .mp-tick:hover rect { fill: rgba(14,143,179,.12); } .mp-tick:focus-visible rect { fill: rgba(14,143,179,.12); stroke: var(--focus); stroke-width: 3px; }
.tmat { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; min-height: 64px; padding: 10px; border: 2px dashed #c9d5e3; border-radius: 12px; background: #fbfdff; }
.tgroup { display: flex; align-items: center; gap: 6px; } .tk { font-weight: 800; }
.tbox { display: inline-flex; gap: 4px; padding: 4px 6px; border-left: 3px solid #51607a; border-right: 3px solid #51607a; border-radius: 8px; }
.tloose { display: flex; flex-wrap: wrap; gap: 4px; }
.t { font-style: normal; display: inline-grid; place-items: center; font-weight: 800; font-size: 13px; border-radius: 4px; color: #fff; }
.t.tx { width: 64px; height: 24px; background: #0e8fb3; } .t.t1 { width: 24px; height: 24px; background: #f2b632; color: #4a3b00; }
.t.neg { background: #d9534f; color: #fff; }
.area-grid { display: grid; gap: 4px; max-width: 480px; margin: 0 auto; align-items: stretch; }
.area-grid .ah { text-align: center; align-self: center; padding: 2px 6px; }
.acell { display: grid; place-items: center; background: #eef6fb; border: 2px solid #9fd3e8; border-radius: 6px; padding: 4px; }
.acell input { width: 90%; max-width: 110px; text-align: center; }
.acell.ok { background: #e3f5ea; border-color: #2e9e6b; }
.pgrid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; max-width: 240px; margin: 0 auto; }
.pgrid i { aspect-ratio: 1; background: #eef2f6; border-radius: 2px; } .pgrid i.on { background: #0e8fb3; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.manip-wrap .support { max-width: 560px; width: calc(100vw - 32px); max-height: 92vh; overflow: auto; }
.chat-tool { margin-top: 8px; }
.j-ready { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0; padding: 12px 14px; border-radius: 12px; background: #fdf2fa; border: 2px solid #e7a9d4; }
.ci-card { margin-bottom: 14px; border-left: 5px solid var(--teal); } .ci-row { gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.ladder { margin-top: 16px; border-left: 6px solid #6a4fb3; }
.ladder-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.ladder-list li { display: flex; gap: 8px; align-items: baseline; } .ladder-list li span { font-weight: 800; width: 1.2em; }
.ladder-list li.done { color: #1f6b3b; }

/* ---------- platform shell (v2/shell.js, docs/PLATFORM-PROPOSAL.md) ---------- */
.brand { margin-right: auto; }
body.student-nav .brand { margin-right: 0; }
body.student-nav .nav { flex: 1; align-items: center; }
body.student-nav .nav-acct { margin-left: auto; }
.switch-wrap { position: relative; }
.course-switch { font: inherit; font-weight: 700; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.course-switch:hover { background: rgba(255,255,255,.14); }
.course-menu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 40; min-width: 280px; padding: 6px; display: grid; gap: 2px; }
.course-menu a { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 10px; color: inherit; text-decoration: none; }
.course-menu a:hover, .course-menu a:focus { background: #eef6fb; }
.course-menu a span:last-child { display: grid; }
.nav a[data-tab].active { background: rgba(84,200,232,.22); color: #fff; }
.course-card { border-top: 6px solid var(--cc, var(--teal)); display: grid; gap: 4px; }
.course-card .cc-head { display: flex; gap: 12px; align-items: flex-start; }
.course-card .cc-head h2 { margin: 0; } .course-card .cc-head .pill { margin-left: auto; }
.course-card .cc-ico { font-size: 2rem; line-height: 1; }
.course-card.soon { opacity: .9; background: #fbfcfe; }
.course-card .btn.cta { justify-self: start; margin-top: 6px; }
.hub-h { margin: 22px 0 10px; font-size: 1.15rem; }
/* Practice and review · Tests and checks: the last two sections of every Learn tab (v2/shell.js mountLearnMore). */
.learn-more { margin-top: 28px; scroll-margin-top: 84px; }
.learn-more-h { margin: 0 0 10px; padding-top: 14px; border-top: 2px solid var(--line); font-size: 1.35rem; }
.learn-more-h:focus { outline: none; }
.learn-more-h:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.hub-tile { text-decoration: none; color: inherit; display: grid; gap: 4px; }
.hub-skills { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.hub-skills li { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.lvl { display: inline-flex; gap: 3px; vertical-align: middle; }
.lvl i { width: 9px; height: 9px; border-radius: 50%; background: #dbe3ec; display: inline-block; }
.lvl i.on { background: var(--teal, #0097bd); }
.path-card summary { display: flex; justify-content: space-between; gap: 10px; padding: 10px 4px; cursor: pointer; border-top: 1px solid #edf1f6; }
.path { list-style: none; margin: 0 0 8px; padding: 0 0 0 18px; border-left: 3px solid #dbe3ec; display: grid; gap: 4px; }
.pnode a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: inherit; text-decoration: none; }
.pnode a:hover, .pnode a:focus { background: #f2f7fb; }
.pdot { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .8rem; background: #fff; border: 2px solid #c8d4e1; margin-left: -32px; flex: none; }
.pnode.done .pdot { background: #2e9e6b; border-color: #2e9e6b; color: #fff; }
.pnode.current .pdot { background: var(--teal, #0097bd); border-color: var(--teal, #0097bd); color: #fff; box-shadow: 0 0 0 5px rgba(0,151,189,.18); }
.pnode.current a { background: #eaf6fa; font-weight: 700; }
.pnode.added a { background: #fdf6e7; border: 1px dashed #e3b44a; }
.pnode.added .pdot { border-color: #e3b44a; }
.ptitle { flex: 1; display: grid; } .ptitle .why { color: #7a5a12; font-weight: 400; }
.tabbar { display: none; }
@media (max-width: 760px) {
  /* Anything scrolled into view (a jump from "On this page", a tip, a focused control) lands between the sticky top bar
     and the bottom tab bar, not underneath either. */
  html { scroll-padding-top: 150px; scroll-padding-bottom: 96px; }
  body.has-tabbar .nav a[data-tab], body.has-tabbar .nav a[data-nav="home"], body.has-tabbar .nav .nav-ollie { display: none; }
  .tabbar:not([hidden]) { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid #dfe6ee; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 14px rgba(11,36,71,.08); }
  .tabbar a { display: grid; justify-items: center; gap: 2px; font-size: .72rem; color: #4b5b70; text-decoration: none; padding: 4px 0; border-radius: 10px; }
  .tabbar a span { font-size: 1.25rem; line-height: 1; }
  .tabbar a.active { color: var(--navy, #0b2447); font-weight: 800; background: #eaf6fa; }
  body.has-tabbar main { padding-bottom: 84px; }
  .brand-sub { display: none; }
}
.sorter { display: grid; gap: 8px; margin: 10px 0; }
.sort-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 10px 12px; border: 1px solid #e3e9f0; border-radius: 10px; }
.sort-item { font-weight: 600; } .sort-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.sort-row.ok { border-color: #2e9e6b; background: #f1faf5; } .sort-row.no { border-color: #e3b44a; background: #fffaf0; }
.sort-row.ok .chip[aria-pressed="true"] { background: #2e9e6b; color: #fff; }
.lp-manip { margin-top: 8px; }
.tl-list { list-style: none; padding: 0; display: grid; gap: 6px; counter-reset: tl; }
.tl-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid #e3e9f0; border-radius: 10px; background: #fff; }
.tl-item::before { counter-increment: tl; content: counter(tl); font-weight: 800; color: #7a8aa0; margin-right: 6px; }
.tl-label { flex: 1; } .tl-btns { display: flex; gap: 4px; }
.ann-src { margin: 10px 0; padding: 12px 16px; border-left: 4px solid #3c79a8; background: #f6f9fc; line-height: 1.7; }
.ann-s { cursor: pointer; border-radius: 4px; padding: 1px 2px; } .ann-s:hover, .ann-s:focus { background: #eaf3fb; } .ann-s:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.ann-s.on { background: #fff1c4; } .ann-s.right { background: #d8f2e3; }
.lp-passage { margin-bottom: 10px; }
.nav-note { color: #dbe6f5; font-size: .9rem; padding: 8px 4px; }
/* Civics: "What would you do?" and coach discussions inside lessons */
.lp-scenario { font-size: 1.05em; background: var(--sky-soft); border-radius: 12px; padding: 12px 14px; }
.hook-opts { display: grid; gap: 8px; margin: 10px 0; }
.hook-opt { text-align: left; display: grid; gap: 2px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font: inherit; }
.hook-opt span { color: var(--muted); font-size: .92em; }
.hook-opt:hover { border-color: var(--teal); }
.hook-opt.on { border-color: var(--teal); background: #eefaf9; }
.lp-talk { margin-top: 12px; }
.talk-log { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.talk-log .msg { max-width: 92%; }
.talk-starters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.talk-form { display: flex; gap: 8px; align-items: flex-end; }
.talk-form textarea { flex: 1; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; resize: vertical; min-height: 48px; }
/* Coach guardrails: teacher review list */
.safety-card.urgent { border: 2px solid var(--magenta, #c2185b); }
.safety-list { display: grid; gap: 8px; }
.safety-row { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: #f7f9fc; }
.safety-row.sev-high { background: #fdecef; }
.talk-note { margin: 6px 0 0; }
.adapt-note { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; background: #f3efff; border: 1px solid #d9cdfb; border-radius: 12px; padding: 10px 14px; margin: 0 0 10px; }
.talk-score { margin-top: 10px; }
.talk-result { background: #f7f9fc; border-radius: 12px; padding: 10px 14px; }
.talk-result p { margin: 6px 0; }
/* Family view and records */
.code-big { font: 700 1.4rem/1.3 ui-monospace, Menlo, monospace; letter-spacing: .04em; background: #f3f6fa; border-radius: 10px; padding: 10px 14px; display: inline-block; }
.fam-child { margin-bottom: 16px; }
.fbars { display: flex; height: 10px; border-radius: 6px; overflow: hidden; margin: 6px 0 4px; background: #eef2f6; }
.fbar-math { background: #1aa0a0; } .fbar-ela { background: #6c4ed9; } .fbar-civics { background: #d9822b; } .fbar-ai { background: #3d6fd6; } .fbar-science { background: #2e7d32; }
.fam-sec { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 8px; }
.fam-sec.attention { border-top: 0; border-radius: 10px; padding: 8px 12px; }
/* "What is this?" on the parent's cards (v2/parent-help.js): small, closed until asked. */
.whatis { margin: 4px 0 2px; font-size: .86rem; }
.whatis summary { cursor: pointer; color: var(--teal-dark, #0b6b6b); font-weight: 600; width: fit-content; }
.whatis p { margin: 4px 0 0; max-width: 62ch; color: var(--muted, #4a5a66); }
.whatis[open] summary { margin-bottom: 2px; }
.attention.attn-need { background: #fff4e0; }
.attention.attn-good { background: #eaf7ef; }
.records h2 { margin-top: 1.4em; border-bottom: 2px solid var(--line); padding-bottom: 4px; }
.rec-note { background: #f7f9fc; border-radius: 10px; padding: 10px 14px; }
.rec-table { width: 100%; border-collapse: collapse; font-size: .92em; }
.rec-table th, .rec-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rec-sample { border-left: 3px solid var(--line); padding: 4px 12px; margin: 10px 0; }
.rec-sample blockquote { margin: 6px 0; font-style: italic; }
@media print {
  .topbar, .tabbar, .no-print, .device-only, #drawer, .coach-fab, .nav-ollie { display: none !important; }
  body { background: #fff; } .card { box-shadow: none; border: none; padding: 0; }
  .records h2 { break-after: avoid; } .rec-table tr, .rec-sample { break-inside: avoid; }
}
/* Teacher: this week */
.now-actions { display: grid; gap: 8px; margin: 12px 0; }
.now-act { display: flex; gap: 10px; align-items: flex-start; padding: 8px 12px; border-radius: 10px; background: #f7f9fc; }
.now-urgent { background: #fdecef; } .now-praise { background: #eefaf3; }
.now-bars { display: grid; gap: 4px; }
.now-row { display: grid; grid-template-columns: 140px 1fr 60px; gap: 8px; align-items: center; }
.now-bar { height: 8px; background: #eef2f6; border-radius: 5px; overflow: hidden; } .now-bar i { display: block; height: 100%; background: var(--teal); }

/* ===================================================================================
   Design v1 (approved 2026-10-17; artifact "Optima Learning design direction").
   Adaptive, interactive, engaging, with the coach on every screen. One action color,
   one accent per course, orange for rewards, purple for anything that adapted to the student.
   Sentence case, line icons (icons.js), flat cards, 12 px corners.
   =================================================================================== */
:root {
  --navy: #0B2A55; --navy-2: #12376E; --ink: #0B1F3A; --muted: #5B6B82; --line: #E3E8EF; --bg: #F6F8FB; --card: #FFFFFF;
  --teal: #0E7C86; --teal-dark: #0A5F66; --sky: #7FD4D9; --sky-soft: #EAF5F6;
  --magenta: #5A3FA8; --magenta-soft: #F1EDFB; --adapt: #5A3FA8; --adapt-soft: #F1EDFB;
  --green: #1E8E5A; --green-soft: #EEF8F2; --red: #C2410C; --red-soft: #FDEEE7; --amber: #B86A1C; --amber-soft: #FDF0E3; --reward: #E8913A;
  --civics: #2F5BD3; --civics-soft: #E9EFFC;
  --radius: 16px; --shadow: none;
}
body { color: var(--ink); background: var(--bg); }
h1, h2, h3, h4 { color: var(--ink); letter-spacing: -0.005em; }
h1 { font-weight: 700; }
.ico { vertical-align: -0.18em; flex: none; }

/* Header: white, calm, brand mark on the left */
.topbar { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); padding: 10px clamp(16px, 3vw, 32px); min-height: 64px; }
.brand { color: var(--ink); } .brand-logo { height: 30px; }
.brand-sub { color: var(--muted); border-left-color: var(--line); font-weight: 600; }
.nav a { color: var(--muted); border-radius: 10px; font-weight: 600; }
.nav a:hover { background: #F1F4F8; color: var(--ink); }
.nav a.active, .nav a[data-tab].active { background: #EEF2F7; color: var(--ink); }
.nav .nav-ollie { border: 1px solid var(--line); color: var(--ink); margin-left: 6px; }
.nav-note { color: var(--muted); }
.nav-acct { background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; }
.nav-acct:hover { background: #F1F4F8; }
.course-switch { color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.course-switch:hover { background: #F1F4F8; }
.course-switch.active { background: #EEF2F7; }
.course-menu a[aria-current] { background: #EEF2F7; }
.course-menu a:hover, .course-menu a:focus { background: #F1F4F8; }

/* Building blocks */
.card { box-shadow: none; border-radius: var(--radius); }
.eyebrow { text-transform: none; letter-spacing: 0; font-family: var(--text); font-size: .88rem; font-weight: 600; color: var(--muted); }
th { text-transform: none; letter-spacing: 0; }
.sm-lane { text-transform: none; letter-spacing: 0; }
.btn { border-radius: 12px; min-height: 46px; padding: 10px 20px; font-weight: 600; background: var(--teal); }
.btn:hover { background: var(--teal-dark); }
.btn.secondary { color: var(--ink); border: 1px solid #C9D3DF; }
.btn.secondary:hover { border-color: var(--teal); color: var(--teal-dark); background: #fff; }
.btn.ghost { min-height: 0; color: var(--teal-dark); }
/* Hovered, a ghost button stays readable (the plain .btn hover made it dark teal on dark teal text). */
.btn.ghost:hover { background: var(--soft, #eef4f5); color: var(--teal-dark); }
.sat-bar .btn.ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn.sm { min-height: 36px; padding: 6px 12px; border-radius: 10px; }
.btn.cta { box-shadow: none; font-size: 1.05em; padding: 12px 24px; }
.btn.magenta { background: var(--adapt); } .btn.magenta:hover { background: #47318A; }
.pill { border-radius: 999px; font-weight: 600; }
.pill.magenta { background: var(--adapt-soft); color: var(--adapt); }
.chip { border-radius: 999px; }

/* No colored side borders: soft panels instead */
.strategy, .start-banner, .ci-card, .ladder { border-left: 1px solid var(--line); }
.mission { border-top: 1px solid var(--line); }
.course-card { border-top: 1px solid var(--line); }
.lp-goal, .lp-hook { background: #FDF6E8; border-left: 0; border-radius: 12px; }
.lp-callout { border-left: 0; border-radius: 12px; }
.mis-card { border-left: 0; border-radius: 12px; }
.ann-src { border-left: 0; border-radius: 12px; }
.hero { background: var(--navy); }
.hero::after { display: none; }

/* Answer choices */
.choice { border: 1px solid #C9D3DF; border-radius: 12px; padding: 12px 14px; }
.choice .letter { border-radius: 8px; border: 1px solid #C9D3DF; color: var(--ink); }
.choice.selected { border: 2px solid var(--teal); background: #F0F9FA; }
.choice.correct { border: 2px solid var(--green); }
.choice.wrong { border: 2px solid var(--red); }
.feedback { border-radius: 14px; }

/* Progress */
.lp-progress { height: 8px; background: var(--line); }
.lp-progress i, .xp-bar i { background: var(--teal); }
.xp-bar { background: var(--line); }

/* Adapted for you */
.adapt-note { background: var(--adapt-soft); border: 0; color: #3E2A80; border-radius: 12px; }
.adapt-note b { color: #3E2A80; }

/* Coach */
.coach-says .bubble { box-shadow: none; background: #F1F5F9; border: 0; }

/* Device-only notice: a quiet line, not a banner */
.device-only { background: #EEF2F7; border: 0; color: var(--muted); font-size: .92rem; border-radius: 12px; padding: 8px 14px; }

/* Phone tab bar */
@media (max-width: 760px) {
  .tabbar a { color: var(--muted); font-weight: 600; }
  .tabbar a span .ico { width: 22px; height: 22px; }
  .tabbar a.active { color: var(--teal-dark); background: transparent; font-weight: 700; }
}

/* Tutor dock (v2/dock.js): the AI tutor beside Today and lessons on wide screens */
#coach-dock { display: none; }
body.with-dock #coach-dock { display: flex; flex-direction: column; position: fixed; right: 0; top: 64px; bottom: 0; width: 360px; background: #fff; border-left: 1px solid var(--line); z-index: 15; }
body.with-dock main#app { max-width: 1120px; margin-right: 360px; margin-left: max(0px, calc((100vw - 360px - 1120px) / 2)); }
body.with-dock .device-only { margin-right: 376px; }
.dock-head { display: flex; align-items: center; gap: 14px; padding: 18px 20px 14px; }
.dock-head [data-tutor-pic] svg, .dock-head img { width: 72px; height: 72px; border-radius: 50%; }
.dock-head b { display: block; font-family: var(--display); font-size: 1.25rem; color: var(--ink); }
.dock-head span:not([data-tutor-pic]) { font-size: .86rem; color: var(--muted); }
.dock-chat { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.dock-chat .chat-head { display: none; }
.dock-chat .chat-log, .dock-chat .chat-suggest, .dock-chat .chat-note { background: #fff; }
.chat-log .msg.ollie { background: #F1F5F9; border: 0; border-radius: 14px 14px 14px 4px; }
.chat-log .msg.me { background: var(--navy); border-radius: 14px 14px 4px 14px; }
.chat-suggest button { color: var(--ink); border-color: #C9D3DF; font-weight: 600; }

/* Today (design v1) */
.coach-line { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.coach-line .coach-says { flex: 1 1 360px; }
body.with-dock .coach-line { display: none; }
.today-grid { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
@media (max-width: 900px) { .today-grid { grid-template-columns: minmax(0, 1fr); } }
.plan { padding: 26px 28px; }
.plan-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.plan-head h1 { margin: 0 0 4px; font-size: 1.85rem; }
.adapt-line { color: var(--adapt); font-weight: 600; font-size: .95rem; margin: 0; max-width: 60ch; }
.plan-ring { display: flex; align-items: center; gap: 10px; } .plan-ring b { display: block; }
.plan-sub { margin: 16px 0 6px; gap: 10px; flex-wrap: wrap; }
.plan-steps { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.plan-steps li { display: grid; grid-template-columns: 34px 1fr auto; gap: 14px; align-items: center; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.plan-steps li > div { display: grid; gap: 2px; }
.plan-steps li.done { background: var(--bg); border-color: transparent; }
.plan-steps li.done b { color: var(--muted); }
.plan-steps li.next { display: block; border: 2px solid var(--teal); background: #F0F9FA; padding: 16px; }
.ps-main { display: grid; grid-template-columns: 34px 1fr auto; gap: 14px; align-items: center; }
.ps-main > div { display: grid; gap: 4px; } .ps-main b { font-size: 1.1rem; }
.ps-dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--muted); border: 1px solid #C9D3DF; }
.ps-dot.ok { background: var(--green); color: #fff; border: 0; }
.ps-dot.now { background: var(--teal); color: #fff; border: 0; }
.ps-tags { font-size: .88rem; color: var(--teal-dark); font-weight: 600; }
.adapt-why { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: #fff; font-size: .92rem; color: #3A4A60; }
.adapt-why b { color: var(--adapt); }
.ways { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; }
.ways .chip { text-decoration: none; color: var(--ink); background: #fff; border: 1px solid #C9D3DF; padding: 6px 12px; font-weight: 600; font-size: .86rem; }
.ways .chip.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.week-card h2, .side-tile h2, .soft-card h2 { font-size: 1.05rem; margin: 0 0 10px; }
.week-stats { display: flex; gap: 22px; margin-bottom: 10px; }
.week-stats b { display: block; font-family: var(--display); font-size: 1.5rem; } .week-stats span { font-size: .82rem; color: var(--muted); }
.week-stats .reward { color: var(--amber); }
.soft-card { background: #EEF2F7; border: 0; }
.soft-card p { color: #3A4A60; }

/* Home (design v1) */
.home-hello { font-size: 2rem; margin: 6px 0 20px; }
.next-hero { display: flex; align-items: center; gap: 28px; background: var(--navy); color: #fff; border-radius: 20px; padding: 26px 32px; margin-bottom: 24px; flex-wrap: wrap; }
.next-hero [data-tutor-pic] svg { width: 112px; height: 112px; border-radius: 50%; display: block; }
.nh-body { flex: 1 1 320px; display: grid; gap: 6px; }
.nh-kicker { color: #9FD8DC; font-weight: 600; font-size: .9rem; }
.next-hero h2 { color: #fff; font-size: 1.6rem; margin: 0; }
.next-hero p { color: #DCE6F3; margin: 0; max-width: 62ch; }
.nh-go { background: #fff; color: var(--navy); min-height: 52px; padding: 12px 28px; }
.nh-go:hover { background: #EAF5F6; color: var(--navy); }
.course-card { padding: 26px; gap: 6px; }
.course-card h2 { font-size: 1.35rem; }
.course-card .btn { justify-self: start; margin-top: 10px; }
.courses .course-card[style*="--cc"] .xp-bar i { background: var(--cc, var(--teal)); }
@media (max-width: 760px) { .next-hero { padding: 20px; gap: 16px; } .next-hero [data-tutor-pic] svg { width: 72px; height: 72px; } .nh-go { width: 100%; } }
body.with-dock .xp-pop { right: 384px; }
@media (max-width: 760px) {
  .tabbar .tb-coach { color: var(--navy); font-weight: 700; }
  .tabbar .tb-coach [data-tutor-pic] svg { width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 0 0 2px var(--navy); }
  .coach-line { background: var(--navy); border-radius: 18px; padding: 12px; align-items: center; }
  .coach-line .coach-says .bubble { background: transparent; color: #fff; padding: 0; }
  .coach-line .coach-says .bubble b { display: none; }
  .coach-line .coach-talk { width: 100%; background: #fff; }
  .plan { padding: 18px; }
  .plan-steps li.next .ps-main { grid-template-columns: 34px 1fr; }
  .plan-steps li.next .ps-main .btn { grid-column: 1 / -1; width: 100%; }
}
.eoc-card { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.eoc-card > div { flex: 1 1 420px; }
.eoc-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 10px 0; } .eoc-row .xp-bar { grid-column: 1 / -1; margin: 0; }

.tl-item.placed { border-color: var(--green); background: var(--green-soft); }

/* Report a problem, lesson ratings, review list (v2/feedback.js) */
.report-link { background: none; border: 0; padding: 4px 0; color: var(--muted); font: inherit; font-size: .86rem; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.report-link:hover { color: var(--ink); text-decoration: underline; }
.lp-report { max-width: 860px; margin: 8px auto 0; text-align: right; }
.q-report { text-align: right; margin-top: 6px; }
.report-form { max-width: 520px; }
.rp-cats { border: 0; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rp-cats legend { margin-bottom: 6px; }
.rp-cats .chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #C9D3DF; background: #fff; padding: 6px 12px; cursor: pointer; font-weight: 600; font-size: .9rem; }
.rp-cats .chip:has(input:checked) { border-color: var(--teal); background: #F0F9FA; }
.report-form textarea, .rate-box textarea { width: 100%; border: 1px solid #C9D3DF; border-radius: 12px; padding: 10px 12px; font: inherit; }
.rate-box { margin: 16px auto 0; max-width: 520px; text-align: left; background: var(--bg); border-radius: 14px; padding: 14px 16px; }
.rate-opts { gap: 6px; margin: 8px 0; flex-wrap: wrap; }
.rate-opts .chip { border: 1px solid #C9D3DF; background: #fff; padding: 6px 12px; font-weight: 600; cursor: pointer; }
.rate-opts .chip.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.rate-more { display: grid; gap: 6px; }
.rp-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.rp-row:first-of-type { border-top: 0; }
.lp-context { background: var(--bg); border-radius: 10px; padding: 8px 12px; font-size: .95rem; }

/* Sign-in (design v1) */
.gate-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(220px, .8fr); gap: 32px; align-items: center; padding: clamp(28px, 5vw, 56px); border-radius: 24px; }
.gate-logo { height: 40px; margin-bottom: 26px; }
.gate-hero h1 { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.08; margin-bottom: 14px; }
.gate-lead { font-size: 1.1rem; max-width: 52ch; }
.gate-form { margin-top: 26px; max-width: 480px; }
.gate-home .gate-form { margin-top: 18px; max-width: none; }
.gate-home .gate-form label { color: var(--navy); }
.gate-home .gate-form input { border: 1px solid var(--line); background: #fff; }
.gate-form label { color: #DCE6F3; font-weight: 600; display: block; margin-bottom: 6px; }
.gate-form .row { gap: 10px; flex-wrap: nowrap; }
.gate-form input { flex: 1; min-height: 52px; border-radius: 12px; border: 0; padding: 0 16px; font-size: 1.05rem; }
.gate-hero .gate-go { background: #fff; color: var(--navy); }
.gate-go { min-height: 52px; padding: 0 28px; }
.gate-hero .gate-go:hover { background: #EAF5F6; color: var(--navy); }
#gate-msg { color: #FFD7C2; min-height: 1.2em; margin: 8px 0 0; }
.gate-home #gate-msg { color: var(--red, #b42318); }
.gate-home .gate-go { width: auto; flex: 0 0 auto; padding: 0 22px; }
.gate-coach { display: grid; justify-items: center; gap: 12px; text-align: center; }
.gate-coach p { color: #DCE6F3; max-width: 24ch; margin: 0; }
.gate-adults { margin-top: 16px; } .gate-adults p { margin: 0; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.pillar { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.pillar .ico { color: var(--teal); }
.pillar h2 { font-size: 1.15rem; margin: 10px 0 6px; }
.pillar p { color: #3A4A60; margin: 0; }
@media (max-width: 760px) { .gate-hero { grid-template-columns: 1fr; } .gate-coach { display: none; } .pillars { grid-template-columns: 1fr; } .gate-form .row { flex-wrap: wrap; } .gate-go { width: 100%; } }

/* Children under 13 */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.field.birth .lbl { display: block; font-weight: 600; margin-bottom: 6px; }
.field.birth .row { gap: 8px; flex-wrap: nowrap; } .field.birth select { flex: 1; min-height: 44px; }
.solo-age { margin-top: 10px; max-width: 420px; }
.consent-box { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; line-height: 1.5; margin: 10px 0 14px; }
.consent-box input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
/* Coaches students can choose (v2/family.js coachSwitchHtml): a picture with its name and a tick under it. */
.csw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 8px 0; }
.csw-item { display: grid; justify-items: center; align-content: start; gap: 4px; text-align: center; padding: 6px 4px; border-radius: 10px; border: 1px solid var(--line, #e3e8ef); cursor: pointer; }
.csw-item input { width: 20px; height: 20px; margin: 0; }
.csw-item input:disabled { cursor: not-allowed; }
.csw-item .small.muted { line-height: 1.3; }
#coach-reset .btn { white-space: normal; text-align: left; }
.consent-note { background: #EEF2F7; border: 0; }
.consent-card { border: 2px solid var(--amber); margin-bottom: 16px; }
.ma-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; } .ma-after { margin-top: 10px; } .ma-hint-text { background: var(--bg); border-radius: 10px; padding: 8px 12px; }

/* Escape rooms (v2/escape.js) */
.esc-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.esc-title { flex: 1; font-family: var(--display); }
.esc-timer { font-variant-numeric: tabular-nums; font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.esc-letters { display: inline-flex; gap: 4px; }
.esc-letters span { width: 30px; height: 36px; display: grid; place-items: center; border-radius: 8px; background: #EEF2F7; font-family: var(--display); font-weight: 800; color: var(--muted); }
.esc-letters span.got { background: var(--reward); color: #fff; }
.esc-scene { background: var(--navy); color: #fff; border-radius: 22px; padding: clamp(20px, 4vw, 36px); }
.esc-scene h1, .esc-scene h2 { color: #fff; } .esc-scene .eyebrow { color: #9FD8DC; }
.esc-scene .muted { color: #B9C7DB !important; } .esc-scene a:not(.btn) { color: #9FD8DC; }
.esc-intro { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(200px, .7fr); gap: 28px; align-items: center; }
.esc-intro p { color: #DCE6F3; font-size: 1.08rem; max-width: 60ch; }
.esc-guide { display: grid; justify-items: center; gap: 10px; color: #DCE6F3; } .esc-guide [data-tutor-pic] svg { width: 120px; height: 120px; border-radius: 50%; }
.esc-go { background: #fff; color: var(--navy); min-height: 52px; padding: 0 28px; } .esc-go:hover { background: #EAF5F6; color: var(--navy); }
.esc-msg { color: #DCE6F3; min-height: 1.4em; }
.esc-room { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 14px 0; }
.esc-obj { display: grid; gap: 6px; justify-items: start; text-align: left; padding: 18px; border-radius: 16px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; font: inherit; cursor: pointer; min-height: 130px; }
.esc-obj:hover, .esc-obj:focus-visible { background: rgba(255,255,255,.12); border-color: #9FD8DC; }
.esc-obj span { font-size: .85rem; color: #B9C7DB; } .esc-obj.done { border-color: var(--reward); } .esc-obj.done span { color: #FFD9B0; }
.esc-door { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border-radius: 16px; border: 1px dashed rgba(255,255,255,.3); }
.esc-door.ready { border: 2px solid var(--reward); background: rgba(232,145,58,.12); }
.esc-door p { margin: 4px 0 10px; color: #DCE6F3; } .esc-door input { min-height: 46px; border-radius: 12px; border: 0; padding: 0 14px; font-size: 1.05rem; text-transform: uppercase; }
.esc-lock { background: #fff; color: var(--ink); border: 1px solid var(--line); } .esc-lock h2 { color: var(--ink); } .esc-lock .eyebrow { color: var(--muted); }
.esc-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid #C9D3DF; border-radius: 12px; margin: 8px 0; cursor: pointer; }
.esc-opt:has(input:checked) { border: 2px solid var(--teal); background: #F0F9FA; }
.esc-text { line-height: 2.3; font-size: 1.05rem; } .esc-text select { font: inherit; padding: 2px 6px; border-radius: 8px; border: 1px solid #C9D3DF; } .esc-text select.ok { border: 2px solid var(--green); background: var(--green-soft); }
.esc-sort { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; margin: 8px 0; } .esc-sort.ok { border-color: var(--green); background: var(--green-soft); }
.esc-cats { display: flex; flex-wrap: wrap; gap: 6px; } .esc-cats .chip { border: 1px solid #C9D3DF; background: #fff; padding: 6px 12px; font-weight: 600; cursor: pointer; } .esc-cats .chip[aria-pressed="true"] { background: var(--teal); color: #fff; border-color: var(--teal); }
.esc-actions { margin-top: 14px; gap: 8px; } .esc-hint { background: #F1F5F9; border-radius: 12px; padding: 10px 14px; margin: 8px 0 0; }
.esc-end { text-align: center; } .esc-end p { color: #DCE6F3; max-width: 60ch; margin-left: auto; margin-right: auto; }
.esc-stars .ico { color: rgba(255,255,255,.25); } .esc-stars .ico.on { color: var(--reward); fill: var(--reward); }
.esc-time { font-family: var(--display); font-size: 1.6rem; color: #fff !important; }
.esc-tile { display: flex; align-items: center; gap: 16px; text-decoration: none; color: inherit; } .esc-tile > div { flex: 1; display: grid; gap: 2px; } .esc-tile-ico { width: 56px; height: 56px; border-radius: 14px; background: var(--navy); color: var(--reward); display: grid; place-items: center; }
@media (max-width: 760px) { .esc-intro { grid-template-columns: 1fr; } .esc-guide { display: none; } }

/* Course choice at setup (journey and the profile form) */
fieldset.field, fieldset.j-courses { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
fieldset.field legend, fieldset.j-courses legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.j-courses .chip { font-size: 1rem; padding: 8px 16px; }
.j-wait { text-align: center; color: var(--muted, #5b6b7f); }

/* My courses dashboard (home) */
.dash-head { margin: 22px 0 10px; align-items: center; }
.dash-head h2, .dash-h { margin: 0; }
.dash-h { margin: 24px 0 10px; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.dash-card { border-top: 4px solid var(--cc, #0E7C86); display: flex; flex-direction: column; gap: 12px; margin: 0; }
.dash-card .cc-head h2 { margin: 0; }
.dash-top { display: flex; align-items: center; gap: 18px; }
.dash-ring { --p: 0; width: 84px; height: 84px; flex: 0 0 84px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--cc, #0E7C86) calc(var(--p) * 1%), #e6ecf2 0); }
.dash-ring span { width: 64px; height: 64px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.1rem; color: #0B1F3A; }
.dash-stats { display: grid; grid-template-columns: repeat(3, auto); gap: 4px 18px; margin: 0; }
.dash-stats dt { font-size: .8rem; color: #5b6b7f; }
.dash-stats dd { margin: 0; font-weight: 700; color: #0B1F3A; }
.dash-units summary { cursor: pointer; font-weight: 600; color: #0E7C86; }
.dash-bar { display: grid; grid-template-columns: minmax(80px, 1fr) 2fr auto; gap: 10px; align-items: center; font-size: .9rem; margin-top: 8px; }
.dash-bar .xp-bar { margin: 0; }
.dash-meta { margin: 0; }
.dash-next { background: #f3f7fa; border-radius: 10px; padding: 10px 12px; }
.dash-next div { display: flex; flex-direction: column; gap: 2px; }
.dash-actions { gap: 8px; flex-wrap: wrap; margin-top: auto; }
.dash-game { display: flex; align-items: center; gap: 14px; margin: 0; text-decoration: none; color: inherit; }
.dash-game > div { display: flex; flex-direction: column; gap: 2px; flex: 1; }
@media (max-width: 520px) { .dash-stats { grid-template-columns: repeat(2, auto); } .dash-top { align-items: flex-start; } .dash-grid { grid-template-columns: 1fr; } }
.dash-card .cc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.j-unlock { color: #5b6b7f; margin: 6px 0 0; }

/* "Why this?" on adapted lesson cards */
.why-this { margin: -4px 0 12px; }
.why-this summary { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; list-style: none; font-size: .85rem; font-weight: 600; color: #5A3FA8; background: #f1edfb; border-radius: 999px; padding: 3px 10px; }
.why-this summary::-webkit-details-marker { display: none; }
.why-this p { margin: 8px 0 0; padding: 10px 12px; background: #f7f5fd; border-left: 3px solid #5A3FA8; border-radius: 6px; font-size: .92rem; color: #2a2346; }

/* Same lesson, two students (#/demo) */
.demo-lede { max-width: 760px; }
.demo-pick { gap: 10px; align-items: center; flex-wrap: wrap; margin: 12px 0 4px; }
.demo-pick select { max-width: 100%; flex: 1 1 320px; }
.demo-lesson-title { margin: 16px 0 10px; font-size: 1.15rem; }
.demo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.demo-col { background: #fff; border: 1px solid #dfe6ee; border-top: 4px solid var(--who); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.demo-who { display: flex; align-items: center; gap: 12px; }
.demo-who h2 { margin: 0; }
.demo-who p { margin: 0; }
.demo-av { width: 40px; height: 40px; border-radius: 50%; background: var(--who); color: #fff; display: grid; place-items: center; font-weight: 700; }
.demo-knows { display: grid; grid-template-columns: 1fr; gap: 6px; margin: 0; background: #f5f8fb; border-radius: 10px; padding: 10px 12px; }
.demo-knows div { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.demo-knows dt { color: #5b6b7f; font-size: .85rem; }
.demo-knows dd { margin: 0; font-weight: 600; }
.demo-hook { margin: 0; font-size: .92rem; }
.demo-count { margin: 0; font-size: .92rem; }
.demo-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.demo-card { display: flex; gap: 10px; padding: 8px 10px; border: 1px solid #e6ecf2; border-radius: 10px; background: #fff; }
.demo-card.is-adapted { border-color: #cfc4f1; background: #faf8ff; }
.demo-card > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.demo-card b { font-weight: 600; font-size: .93rem; overflow-wrap: anywhere; }
.demo-n { flex: 0 0 22px; height: 22px; border-radius: 50%; background: #e6ecf2; display: grid; place-items: center; font-size: .75rem; font-weight: 700; color: #33475b; }
.demo-kind { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: #5b6b7f; }
.demo-tag { align-self: flex-start; font-size: .72rem; font-weight: 700; color: #fff; background: #5A3FA8; border-radius: 999px; padding: 1px 8px; }
.demo-why { margin: 4px 0 0; font-size: .86rem; color: #3a2f63; }
.demo-skipped summary { cursor: pointer; font-weight: 600; color: #5b6b7f; }
.demo-skipped li { color: #8a97a6; text-decoration: line-through; }
.demo-sorter { background: #f5f8fb; border-radius: 10px; padding: 10px 12px; font-size: .9rem; }
.demo-sorter ul { margin: 6px 0 0; padding-left: 1.2em; }
.demo-sim { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; border-top: 1px dashed #dfe6ee; padding-top: 10px; }
.demo-events { margin: 0; padding-left: 1.2em; font-size: .9rem; color: #3a2f63; }
.demo-foot { margin-top: 16px; }

/* Help status: whether hints and the coach are here, and why not */
.help-status { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; font-size: .9rem; margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; }
.help-status.on { background: #e9f6f6; color: #0b4f55; }
.help-status.off { background: #fff4e5; color: #6b3d00; border: 1px solid #f3d3a3; }
.help-status { display: block; }
.help-status .ico { vertical-align: -0.12em; margin-right: 2px; }
body.no-coach .nav-ollie, body.no-coach .tabbar [data-nav="tutor"] { display: none !important; }
.lp-facts { font-size: .85rem; margin: 8px 0; }
.lp-facts summary { cursor: pointer; color: #0b4f55; font-weight: 600; }
.lp-standards { margin: 6px 0; color: #33475b; } .lp-standards abbr { text-decoration: none; border-bottom: 1px dotted #8a97a6; cursor: help; }
/* Real historical source images on questions */
.src-img { margin: 0 0 10px; }
.src-img img { display: block; max-width: 100%; max-height: 420px; height: auto; margin: 0 auto; border: 1px solid #dfe6ee; border-radius: 6px; background: #fff; }
.src-img figcaption { margin-top: 4px; text-align: center; }
/* Syllabus */
.syl h1 { margin-bottom: 4px; }
.syl-unit { margin: 8px 0; }
.syl-unit ol { margin: 6px 0 6px 1.2em; }
.syl-unit li { margin: 4px 0; }
.syl-table td { vertical-align: top; }
@media print { .no-print, header, #topbar, .tabbar, #coach-dock { display: none !important; } .syl-unit { break-inside: avoid; } }
.lp-table table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 6px 0; }
.lp-table th, .lp-table td { border: 1px solid #dfe6ee; padding: 6px 8px; text-align: left; vertical-align: top; }
.lp-table th { background: #f3f7fa; }
.lp-quote { margin: 8px 0; padding: 8px 12px; border-left: 3px solid #2F5BD3; background: #f5f8ff; }

/* ---------- coded visuals (site/v2/visuals.js, docs/VISUALS.md) ---------- */
.vz { margin: 12px 0; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.vz-title { font-family: var(--display); font-weight: 700; margin-bottom: 8px; }
.vz-svg { width: 100%; height: auto; max-height: 70vh; display: block; margin: 0 auto; color: var(--muted); font-family: var(--text); }
.vz-lab, .vz-tick, .vz-val, .vz-elab, .vz-note { font-size: 12px; fill: var(--muted); }
.vz-val { fill: var(--ink); font-weight: 600; }
.vz-lab { fill: var(--ink); }
.vz-on { font-size: 13px; font-weight: 700; fill: #fff; }
.vz-grid { stroke: var(--line); }
.vz-nlab { font-size: 13px; font-weight: 600; fill: var(--ink); }
.vz-vitem { font-size: 13px; fill: var(--ink); }
.vz-node rect { fill: var(--sky-soft); stroke: var(--teal); stroke-width: 1.5; }
.vz-node.vz-good rect { fill: var(--green-soft); stroke: var(--green); }
.vz-node.vz-bad rect { fill: var(--red-soft); stroke: var(--red); }
.vz-node.vz-alt rect { fill: var(--civics-soft); stroke: var(--civics); }
.vz-edge { stroke: var(--muted); stroke-width: 1.6; color: var(--muted); }
.vz-halo { paint-order: stroke; stroke: var(--card); stroke-width: 5px; stroke-linejoin: round; }
.vz-venn { fill-opacity: .14; stroke: currentColor; stroke-opacity: .5; }
.vz-tst { font-size: 13px; font-weight: 700; fill: var(--ink); pointer-events: none; }
.vz-tval { font-size: 11px; fill: var(--ink); pointer-events: none; }
.vz-tile { cursor: pointer; } .vz-tile:focus-visible { outline: none; box-shadow: none; } .vz-tile:focus-visible rect { stroke: var(--ink); stroke-width: 3; }
.vz-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: .85rem; }
.vz-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.vz-src { margin-top: 8px; }
.vz-desc { margin-top: 8px; font-size: .9rem; } .vz-desc summary { cursor: pointer; color: var(--teal-dark); }
.vz-table { border-collapse: collapse; margin-top: 6px; font-size: .85rem; } .vz-table th, .vz-table td { border-bottom: 1px solid var(--line); padding: 3px 8px; text-align: left; }
.vz-ctl { gap: 8px; margin-top: 8px; }
.vz-step { transition: opacity .35s ease, transform .35s ease; }
.vz-step.vz-hide { opacity: 0; pointer-events: none; }
li.vz-step.vz-hide { display: none; }
.vz-tl { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--teal); }
.vz-tl li { display: flex; gap: 12px; align-items: baseline; padding: 6px 0 10px 14px; position: relative; }
.vz-tl li::before { content: ""; position: absolute; left: -8px; top: 12px; width: 13px; height: 13px; border-radius: 50%; background: var(--card); border: 3px solid var(--teal); }
.vz-date { font-family: var(--display); font-weight: 700; color: var(--teal-dark); min-width: 4.5em; }
.vz-compare { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 10px; }
.vz-col { border-top: 4px solid var(--c); background: var(--bg); border-radius: 10px; padding: 8px 12px; }
.vz-col h4 { margin: 4px 0; } .vz-col ul { margin: 0; padding-left: 18px; }
@media (max-width: 560px) { .vz-compare { grid-template-columns: 1fr; } .vz { padding: 10px; } }
.vz-bar, .vz-hbar, .vz-slice { transform-box: fill-box; }
.vz-in .vz-bar { animation: vz-up .6s ease-out both; animation-delay: calc(var(--i) * 60ms); transform-origin: bottom; }
.vz-in .vz-hbar { animation: vz-right .6s ease-out both; animation-delay: calc(var(--i) * 60ms); transform-origin: left; }
.vz-in .vz-slice { animation: vz-fade .5s ease-out both; animation-delay: calc(var(--i) * 80ms); }
@keyframes vz-up { from { transform: scaleY(0); } } @keyframes vz-right { from { transform: scaleX(0); } } @keyframes vz-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .vz-in .vz-bar, .vz-in .vz-hbar, .vz-in .vz-slice { animation: none; } .vz-step { transition: none; } }
/* simulations (site/v2/sims.js) */
.sim-track { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; margin: 0 0 10px; counter-reset: st; }
.sim-track li { font-size: .78rem; padding: 3px 10px; border-radius: 999px; background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.sim-track li.done { background: var(--sky-soft); color: var(--teal-dark); border-color: var(--sky); }
.sim-track li.now { background: var(--teal); color: #fff; border-color: var(--teal); }
.sim-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.sim-card h3 { margin-top: 0; }
.sim-choices { display: grid; gap: 8px; margin-top: 8px; } .sim-choice { text-align: left; width: 100%; font: inherit; cursor: pointer; }
/* Simulation choices have no letter or mark, so they are plain blocks, not the 3-column quiz grid (.choice; .sme-lesson .choice
   in v2/blocks.css): in that grid the label fell into the 30px letter column, one word per line. */
.sim-choices .choice.sim-choice { display: block; min-width: 0; overflow-wrap: anywhere; padding: 12px 14px; line-height: 1.45; }
.sim-tally { display: flex; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.3rem; }
.sim-tally .yes { color: var(--green); } .sim-tally .no { color: var(--red); }
.sim-card .feedback { margin: 10px 0; }
.sim-bar { position: relative; display: flex; height: 18px; background: var(--bg); border-radius: 9px; overflow: hidden; border: 1px solid var(--line); }
.sim-bar span { display: block; height: 100%; transition: width .3s; } .sim-bar i { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--ink); }
@media (prefers-reduced-motion: reduce) { .sim-bar span { transition: none; } }
.vz-tst.vz-lit, .vz-tval.vz-lit { fill: #fff; }
.feedback.neutral { background: var(--bg); color: var(--ink); border: 1px solid var(--line); }
.sim-fb .feedback { margin: 0 0 10px; }
@media (max-width: 560px) { .vz-tilemap .vz-body { overflow-x: auto; } .vz-tilemap .vz-svg { min-width: 520px; } }
/* animated explainers */
.vx { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.vx-stage { min-height: 120px; } .vx-stage .vz { border: 0; padding: 0; }
.vx-cap { font-size: 1.05rem; background: var(--bg); border-radius: 10px; padding: 10px 12px; margin: 8px 0; }
.vx-ctl { gap: 8px; align-items: center; }
.grid-msg { margin-top: 4px; max-width: 420px; }
.vz-map { max-width: 900px; } .vz-shape { stroke: #fff; stroke-width: .6; cursor: pointer; } .vz-shape:hover { stroke: var(--ink); stroke-width: 1.4; } .vz-shape:focus-visible { stroke: var(--focus); stroke-width: 3; outline: none; box-shadow: none; }
.alert-off { margin: 6px 0; padding: 8px 10px; border-radius: 10px; background: var(--amber-soft); color: var(--ink); border: 1px solid var(--amber); }

/* AI Literacy lab cards (v2/player.js: askai, factcheck, yours) */
.lab-q { margin: 8px 0; padding: 10px 14px; border-left: 4px solid var(--teal); background: #f4fbfd; border-radius: 0 10px 10px 0; font-weight: 600; }
.lab-saved { border: 1px dashed var(--line); border-radius: 12px; padding: 12px 14px; margin-top: 10px; background: #fff; }
.lab-answer p { margin: .4em 0; }
.lab-claims { display: grid; gap: 12px; padding-left: 1.3em; }
.lab-claim { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 6px; }
.lab-claim p { margin: 0; font-weight: 600; }
.lab-claim.ok { border-color: #36b37e; background: #f2fbf6; }
.lab-claim.no { border-color: #e5a03a; background: #fff8ec; }
.lab-disclose { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 10px 0; display: grid; gap: 4px; }

/* Help along the way (v2/guide.js): What's next? button, first-time tips, coach nudges */
.whats-next { margin-left: 8px; white-space: nowrap; border: 1px solid var(--line); }
.guide-tip { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; padding: 10px 14px; border-left: 4px solid var(--teal); background: #f4fbfd; }
.guide-pop { position: fixed; z-index: 40; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: min(380px, calc(100vw - 32px)); margin: 0; box-shadow: 0 10px 30px rgba(7, 41, 82, .18); border: 1px solid var(--line); }
.guide-pop .guide-x { position: absolute; top: 6px; right: 6px; padding: 2px 8px; }
body.with-dock .guide-pop { right: calc(376px + env(safe-area-inset-right, 0px)); }
@media (max-width: 760px) { .guide-pop { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); } .whats-next { padding: 6px 10px; font-size: .9rem; } }

/* Site footer: trademark notice and policy links */
.site-foot { max-width: 1100px; margin: 32px auto 24px; padding-inline: max(16px, env(safe-area-inset-left, 0px)); font-size: .78rem; color: var(--muted, #667); text-align: center; line-height: 1.5; }
.site-foot a { color: inherit; display: inline-block; padding-block: 4px; min-height: 24px; }
body.with-dock .site-foot { margin-right: 376px; }

/* Prompt builder (v2/player.js 'promptlab') */
.pl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; align-items: start; }
.pl-col { min-width: 0; display: grid; gap: 8px; }
.pl-parts .chip.done { border-color: var(--teal); }
.pl-choices { display: grid; gap: 6px; }
.pl-choice { text-align: left; white-space: normal; }
.pl-choice.ok { border-color: #36b37e; background: #f2fbf6; }
.pl-choice.no { border-color: #e5a03a; background: #fff8ec; }

/* AI-off check cards (v2/player.js): no coach panel or coach button while the student works alone */
body.ai-off-now #coach-dock, body.ai-off-now .coach-fab { display: none !important; }
body.ai-off-now.with-dock main#app { margin-right: auto; }

/* Unit 4 cards (v2/player.js: tool, results, encoder, neuron) */
.tool-steps { display: grid; gap: 6px; }
.tool-fields { display: grid; gap: 6px; max-width: 520px; margin: 10px 0; }
.tool-alt { margin-top: 10px; }
.res-table input { width: 100%; min-width: 60px; }
.res-table td, .res-table th { padding: 6px 8px; }
.enc-out, .enc-px { margin: 8px 0; display: grid; gap: 2px; }
.enc-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--line); vertical-align: middle; margin-right: 6px; }
.nr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; align-items: start; }
.nr-controls { display: grid; gap: 4px; }
.nr-table tr.nr-ok { background: #f2fbf6; } .nr-table tr.nr-no { background: #fff8ec; }

/* Unit 5 cards (v2/player.js: nextword, searchtree, dtree) */
.nw-box { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 10px; }
.nw-text { font-size: 1.1em; margin: 0; } .nw-blank { color: var(--teal); font-weight: 700; }
.nw-bar { display: grid; grid-template-columns: 9em 1fr 3.5em; gap: 8px; align-items: center; font-size: .9em; }
.nw-bar i { display: block; height: 12px; border-radius: 6px; background: var(--teal); min-width: 2px; }
.st-wrap { border: 1px solid var(--line); border-radius: 12px; padding: 8px; max-width: 560px; }
.st-map { width: 100%; height: auto; display: block; }
.st-edge { stroke: #b8c4d0; stroke-width: .8; } .st-edge.on { stroke: var(--teal); stroke-width: 1.6; }
.st-w { font-size: 3.2px; fill: #556; }
.st-node circle { fill: #fff; stroke: #0b2a4a; stroke-width: .8; cursor: pointer; }
.st-node.on circle { fill: #e6f6fb; stroke: var(--teal); } .st-node.hi circle { fill: #fff3d6; stroke: #c98a00; }
.st-node text { font-size: 3.6px; font-weight: 700; pointer-events: none; } .st-node .st-lbl { font-size: 3px; font-weight: 400; fill: #445; }
.st-node:focus { outline: none; } .st-node:focus circle { stroke-width: 1.6; } .st-node:focus-visible circle { stroke: var(--focus); stroke-width: 3; }
.dt-build { display: grid; gap: 8px; margin: 8px 0; } .dt-branches { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.dt-branch { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: grid; gap: 6px; } .dt-leaves { display: grid; gap: 4px; padding-left: 10px; }

/* Model card builder (v2/player.js 'modelcard') */
.mc-form { display: grid; gap: 10px; margin: 8px 0; }
.mc-sec { display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }

/* Unit 7 cards (v2/player.js: feedsim, checklist) */
.fs-posts { display: grid; gap: 6px; margin: 8px 0; }
.fs-post { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fs-post .btn { margin-left: auto; }
.ck-list { display: grid; gap: 8px; padding-left: 0; list-style: none; }
.ck-list li { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }

/* Units 9–11 cards (v2/labcards.js: chatbot, stations, energycalc, gasim, testlog) */
.cb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; align-items: start; margin: 8px 0; }
.cb-rules, .cb-chat { display: grid; gap: 6px; }
.cb-list { display: grid; gap: 8px; padding-left: 0; list-style: none; margin: 0; }
.cb-rule { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: grid; gap: 4px; }
.cb-log { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; min-height: 120px; max-height: 260px; overflow-y: auto; background: #fff; }
.cb-log p { margin: 4px 0; } .cb-bot { color: var(--teal-dark); }
.cb-form input { flex: 1; min-width: 0; }
.cb-tests td { vertical-align: top; min-width: 90px; }
.stn { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin: 8px 0; }
.stn summary { cursor: pointer; }
.stn[open] { display: grid; gap: 6px; }
.ec-table input { max-width: 110px; }
.ec-out { margin: 10px 0; }
.ga-controls { display: grid; gap: 4px; max-width: 420px; margin: 8px 0; }
.ga-box { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin: 10px 0; }
.ga-best { font-size: 1.15rem; letter-spacing: .08em; word-break: break-all; }
.ga-best span { color: #8a94a3; } .ga-best .ga-hit { color: var(--teal-dark); font-weight: 700; }
.ga-chart { width: 100%; max-width: 480px; height: auto; display: block; }
.ga-line { fill: none; stroke: var(--teal); stroke-width: 1.6; } .ga-axis { stroke: #c8d1dc; stroke-width: .8; }
.tl-tests input, .tl-dec input { min-width: 120px; }
.tl-ex td { color: var(--muted); font-style: italic; background: #f7f9fc; }
.sh-grid input { width: 100%; min-width: 70px; border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; }
.sh-grid th[scope="row"], .sh-grid thead th { color: var(--muted); font-weight: 600; text-align: center; }
.sh-tasks { display: grid; gap: 10px; padding-left: 20px; }
.sh-task input { flex: 1; min-width: 0; font-family: ui-monospace, Menlo, monospace; }
.sh-fb .ok { color: #1f7a4d; font-weight: 600; } .sh-fb .no { color: #a3401f; font-weight: 600; }
@media (max-width: 640px) {
  /* On phones each test and each decision is a small stacked form instead of a wide table row. */
  .tl-tests thead, .tl-dec thead, .cb-tests thead { display: none; }
  .cb-tests, .cb-tests tbody { display: block; width: 100%; }
  .cb-tests tr { display: grid; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .cb-tests td { display: block; padding: 0; border: 0; min-width: 0; }
  .cb-tests td::before { content: attr(data-label); display: block; font-size: .8rem; font-weight: 700; color: var(--muted); }
  .tl-tests, .tl-dec, .tl-tests tbody, .tl-dec tbody { display: block; width: 100%; }
  .tl-tests tr, .tl-dec tr { display: grid; gap: 4px; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .tl-tests td, .tl-dec td { display: block; padding: 0; border: 0; }
  .tl-tests input, .tl-dec input, .tl-tests select { width: 100%; min-width: 0; }
}

/* Shell (docs/plans/course-format-framework.md): page header, Back crumb, skip link */
.page-h1 { margin-top: 0; }
.crumbs { max-width: 1180px; margin: 10px auto 0; padding: 0 16px; font-size: .92rem; }
.crumbs a { color: var(--teal-dark); text-decoration: none; font-weight: 600; }
.crumbs a:hover, .crumbs a:focus-visible { text-decoration: underline; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 1000; background: #fff; color: #0b4f55; padding: 8px 14px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,.15); font-weight: 700; }
.skip-link:focus { top: 8px; }
.course-menu a:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.ok-t { color: #1d7a4c; } .no-t { color: #b3261e; }
/* Save status (app.js saveStatus): quiet when saved, clear when not. */
.save-status { position: fixed; left: 12px; bottom: 12px; z-index: 1050; font: inherit; font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line, #d6dde6); background: #fff; color: var(--muted, #5a6b7d); box-shadow: var(--shadow); cursor: default; }
.save-status.retrying, .save-status.offline { background: #fff6e5; border-color: #f0c36d; color: #6b4a00; cursor: pointer; }
.save-status.full { background: #fdecec; border-color: #e7a1a1; color: #8a1c1c; }
@media print { .save-status { display: none; } }
/* Phones: keep the save pill above the bottom tab bar, never on top of a tab. */
@media (max-width: 760px) { .save-status { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); } }
.sf-urgent td { background: #fde6e3; }
/* Sign-in links on the dark welcome panel: light enough to read (WCAG AA contrast). */
#gate-email .btn.ghost { color: #8ee3d8; text-decoration: underline; text-underline-offset: 3px; }
#gate-email .btn.ghost:hover { background: transparent; color: #b5efe7; }

/* Course resources (site/v2/civics-resources.js): print-ready pages for parents, teachers and students. */
.res { max-width: 980px; margin: 0 auto; }
.res-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.res-nav { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .9rem; }
.res-nav a { padding: 4px 2px; text-decoration: none; border-bottom: 2px solid transparent; }
.res-nav a.on { border-bottom-color: var(--teal); font-weight: 700; }
.res-draft { background: var(--amber-soft, #fdf0e3); border: 1px solid var(--amber, #b86a1c); color: #6b3d0c; border-radius: 10px; padding: 8px 14px; margin: 0 0 12px; }
.res-warn { background: var(--red-soft); border-radius: 10px; padding: 8px 14px; margin-bottom: 12px; }
.res-head h1 { margin: .1em 0; }
.res-head p { margin: 0 0 10px; }
.res-sec { background: var(--card, #fff); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin: 0 0 14px; }
.res-sec h2 { margin: 0 0 8px; font-size: 1.2rem; }
.res-sec h3 { margin: 14px 0 6px; font-size: 1rem; }
.res-n { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--teal); color: #fff; font-size: .85em; }
.res-teacher { border-color: var(--teal); }
.res-tight td, .res-tight th { padding: 4px 6px; }
.res-fill { min-width: 70px; height: 26px; }
.res-log td { height: 30px; }
.res-fill-inline { display: inline-block; min-width: 160px; border-bottom: 1px solid #333; height: 1em; vertical-align: bottom; }
.res-fill-inline.short { min-width: 60px; }
.res-line { display: block; border-bottom: 1px solid #9aa5b5; height: 26px; }
.res-days li { margin-bottom: 10px; }
.res-check { font-size: .9rem; color: var(--teal-dark); margin-top: 2px; }
.res-checklist { list-style: none; padding-left: 0; }
.res-checklist li { margin: 4px 0; }
.res-rubric td { min-width: 120px; }
.res-pair { border-left: 3px solid var(--line); padding: 2px 12px; margin: 8px 0; }
.res-pair h3 { margin-top: 4px; }
.res-glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 18px; }
.res-glance .eyebrow { display: block; }
.res-box { border: 1px dashed #9aa5b5; border-radius: 8px; padding: 10px 12px; margin-top: 10px; line-height: 2; }
.res-review { margin-top: 4px; padding: 4px 8px; border-radius: 6px; background: var(--amber-soft, #fdf0e3); color: #6b3d0c; }
.res-key td { vertical-align: top; }
.res-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 16px; margin: 8px 0; }
.res-form textarea, .res-form input { width: 100%; }
.res-photo { border: 2px dashed #9aa5b5; border-radius: 10px; min-height: 160px; display: grid; place-items: center; color: var(--muted); margin: 10px 0; text-align: center; padding: 10px; }
.res-lessons { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.res-lessons .pill { text-decoration: none; }
.res-lessons .pill.on { background: var(--teal); color: #fff; }
.res-sheet { background: var(--card, #fff); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-bottom: 14px; }
.res-sheet h2 { font-size: 1.15rem; margin: 0 0 6px; }
.res-sheet h3 { font-size: 1rem; margin: 14px 0 2px; }
.res-q { margin: 6px 0 0; font-style: italic; }
.res-bank { background: var(--sky-soft); border-radius: 8px; padding: 6px 10px; margin: 6px 0; }
.res-fillin li { margin: 8px 0; line-height: 1.9; }
.res-blank { display: inline-block; width: 9.5em; max-width: 60%; border: 0; border-bottom: 1.5px solid #333; border-radius: 0; padding: 0 4px; margin: 0 4px; background: transparent; font: inherit; }
.res-vlist { list-style: none; padding-left: 0; }
.res-vlist li { display: grid; grid-template-columns: minmax(110px, 30%) 1fr; gap: 8px; align-items: end; }
.res-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0; }
.res-vcard { display: grid; grid-template-columns: 1fr 1fr; border: 1px dashed #777; min-height: 110px; break-inside: avoid; }
.res-vcard > div { padding: 10px; }
.res-term { font-weight: 700; font-size: 1.05rem; display: flex; flex-direction: column; justify-content: center; gap: 4px; text-align: center; border-right: 1px dotted #aaa; }
.res-def { font-size: .9rem; display: flex; align-items: center; }
.res-card .res-links, .res-links { display: flex; flex-wrap: wrap; gap: 8px; }
.res-print-links a { font-weight: 600; }
.res-foot { margin-top: 18px; }
@media (max-width: 640px) {
  .res-sec, .res-sheet { padding: 12px; }
  .no-narrow { display: none; }
  .res-cards { grid-template-columns: 1fr; }
  .res-bar { flex-direction: column; align-items: stretch; }
}
@media print {
  .res-sec, .res-sheet { border: none; padding: 0; margin: 0 0 12px; }
  .res-break { break-before: page; }
  .res-sheet + .res-sheet { break-before: page; }
  .res-draft, .res-review { border: 1px solid #b86a1c; background: none; }
  .res-rubric, .res-key { font-size: .8rem; }
  .res-blank { border-bottom: 1px solid #000; }
  .no-narrow { display: table-cell !important; }
  .res-cards { grid-template-columns: 1fr 1fr; }
  a[href]::after { content: none !important; }
}

/* "Go to" bar (v2/goto.js): the same in every course and role, beside "Ask {coach}" in the top bar. A "Go to" button
   that opens the bar below it, so the top bar stays one row; the full bar sits in the top bar on very wide screens. */
.goto { position: relative; display: flex; align-items: center; }
.goto-open { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); cursor: pointer; font: inherit; font-weight: 600; font-size: .95rem; }
.goto-open svg { width: 18px; height: 18px; }
.goto-open kbd { font: inherit; font-size: .78rem; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; }
.goto-form { display: none; align-items: center; gap: 8px; margin: 0; }
.goto.open .goto-form { display: flex; position: absolute; right: 0; top: calc(100% + 8px); width: 400px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(11,31,58,.14); padding: 10px 12px; z-index: 40; }
.goto.open .goto-field { flex: 1; }
.goto-label { font-weight: 600; font-size: .9rem; color: var(--muted); white-space: nowrap; }
.goto-field { position: relative; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.goto-field:focus-within { border-color: var(--teal); outline: 3px solid var(--focus); outline-offset: 2px; }
.goto-field input { border: 0; background: transparent; padding: 8px 10px; width: 100%; min-width: 0; min-height: 40px; font: inherit; font-size: 1rem; color: var(--ink); outline: none; }
.goto-mic { display: inline-flex; align-items: center; gap: 4px; flex: none; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--ink); padding: 0 10px; min-height: 40px; min-width: 44px; cursor: pointer; border-radius: 0 10px 10px 0; font: inherit; font-size: .85rem; font-weight: 600; touch-action: none; user-select: none; -webkit-user-select: none; }
.goto-mic svg { width: 18px; height: 18px; }
.goto-mic[hidden] { display: none; }
.goto-mic.on { background: var(--magenta); color: #fff; }
.goto-mic:focus-visible, .goto-open:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.goto-pop { position: absolute; top: calc(100% + 6px); right: 0; left: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(11,31,58,.14); z-index: 41; padding: 6px; }
.goto.open .goto-pop { left: -1px; right: -1px; top: calc(100% + 2px); border-radius: 0 0 12px 12px; box-shadow: 0 14px 30px rgba(11,31,58,.14); }
.goto-pop ul { list-style: none; margin: 0; padding: 0; }
.goto-pop ul:empty { display: none; }
.goto-pop li { padding: 10px 12px; border-radius: 8px; cursor: pointer; color: var(--ink); min-height: 24px; }
.goto-pop li:hover, .goto-pop li[aria-selected="true"] { background: #EEF2F7; outline: 3px solid var(--focus); outline-offset: -3px; }
.goto-msg { margin: 4px 8px; }
.goto-msg:empty { display: none; }
.goto-note { display: none; }
.goto-note.on { display: flex; align-items: center; gap: 10px; position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 45; background: var(--ink); color: #fff; border-radius: 12px; padding: 8px 10px 8px 16px; box-shadow: 0 8px 24px rgba(11,31,58,.25); max-width: calc(100vw - 32px); }
.goto-note .btn { color: #fff; border-color: rgba(255,255,255,.5); min-height: 36px; }
@media (min-width: 1700px) {
  .goto-open { display: none; }
  .goto-form, .goto.open .goto-form { display: flex; position: static; width: auto; border: 0; box-shadow: none; padding: 0; }
  .goto-field { width: 280px; }
  .goto.open .goto-pop { left: 0; right: 0; top: calc(100% + 6px); border-radius: 12px; }
}
/* Below 1700px the top bar is full: the button is the search icon alone (its name is "Go to"; the bar shows the label),
   34px with a mouse (44px on touch screens), and the top bar's items sit 8px apart so it stays one row. */
@media (max-width: 1699px) {
  .goto-open-text, .goto-open kbd { display: none; }
  .goto-open { padding: 0; justify-content: center; width: 44px; }
  .topbar { column-gap: 8px; } .topbar .whats-next { margin-left: 0; }
}
@media (max-width: 1699px) and (pointer: fine) { .goto-open { width: 34px; min-width: 34px; min-height: 34px; height: 34px; } }
@media (max-width: 760px) {
  .goto.open { position: static; }
  .goto.open .goto-form { left: 0; right: 0; top: 100%; width: auto; border-radius: 0; border-width: 0 0 1px; padding: 8px 16px; }
  .goto-field input { min-height: 44px; }
  .goto-pop, .goto.open .goto-pop { left: 0; right: 0; }
  .goto-note.on { top: auto; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
}
@media print { .goto, .goto-note { display: none !important; } }
/* Math drawn by KaTeX (v2/math.js): a touch smaller than KaTeX's default so it sits in running text; long display
   math scrolls sideways on phones instead of widening the page. */
.katex { font-size: 1.1em; }
.katex-display { overflow-x: auto; overflow-y: hidden; padding: 2px 0; margin: .6em 0; }
.choice .katex, .hint-box .katex { font-size: 1.05em; }

/* Fewer clicks (v2/flow.js; Voice and AI Navigation, Phase 2): the Learn tab's Continue, auto-advance notes, resume. */
.continue-hero { margin: 4px 0 22px; }
.continue-hero [data-tutor-pic] svg { width: 72px; height: 72px; }
.auto-next { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: #EAF5F6; color: var(--navy); }
.auto-next .btn { min-height: 44px; }
.resume-note { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 0 0 12px; padding: 8px 14px; border-radius: 10px; background: #EAF5F6; color: var(--navy); }
.resume-note a { font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.coach-picks { align-items: stretch; } .coach-picks .coach-choice { display: flex; flex-direction: column; align-items: center; gap: 2px; }

/* SME radicals (content/pilot/sat-math: span.rt = optional sup.ri index + √ + span.rb under the bar), drawn as the
   SME's own pages draw them: without the bar, √x + 7 reads as √x plus 7 (content audit, Oct 28). */
.rt { white-space: nowrap; }
.rt .rb { border-top: 1.5px solid currentColor; padding: 0 .12em; margin-left: .05em; }
.rt .rb:has(.katex) { padding-top: .18em; display: inline-block; }
.rt .ri { font-size: .7em; margin-right: -.35em; vertical-align: .7em; }

/* The page being left while the next one loads (app.js hashchange): not tappable; dims only if the load is slow. */
#app.swapping { pointer-events: none; opacity: .55; transition: opacity .2s .25s; }
/* Science standards tables (v2/sci-report.js): one card per standard on a phone, instead of a long narrow table. */
@media (max-width: 640px) {
  table.sci-rec, table.sci-rec tbody, table.sci-rec tr, table.sci-rec td { display: block; width: 100%; }
  table.sci-rec thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.sci-rec tr { border: 1px solid var(--line, #e3e8ef); border-radius: 10px; padding: 10px 12px; margin: 0 0 10px; }
  table.sci-rec td { border: 0; padding: 4px 0; }
  table.sci-rec td[data-label]:not(.sci-es)::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--muted, #5b6b82); }
  table.sci-rec td.sci-es { font-weight: 700; font-size: 16px; }
}

/* ACT Essay Studio (v2/essay.js): the student's work beside the coach on wide screens, stacked on phones. */
.essay-steps { flex-wrap: wrap; }
.essay-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 14px; }
@media (min-width: 1000px) { .essay-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; } .essay-coach { position: sticky; top: 12px; } }
.essay-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.essay-field textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; resize: vertical; width: 100%; box-sizing: border-box; }
.essay-field textarea.essay-draft { line-height: 1.6; min-height: 320px; }
.essay-routine { letter-spacing: .02em; color: var(--teal, #0E7C86); }
.essay-check { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.essay-score { display: grid; gap: 10px; margin-bottom: 10px; }
.essay-score select { font: inherit; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); max-width: 180px; }
.essay-coach .talk-log { max-height: 60vh; overflow-y: auto; margin-top: 10px; }
.essay-prompt summary { cursor: pointer; }
/* An SME passage (a Canvas "Stimulus") with its questions: ACT and SAT R&W quizzes, Fix it, practice and the warm-up. */
.q-passage.sme-passage { white-space: normal; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; max-height: 55vh; overflow: auto; }
.card.q-passage.sme-passage { max-height: none; }
.q-passage.sme-passage > :first-child { margin-top: 0; }
/* The small coach beside lessons opens a big view (v2/journey.js coachView). */
.dock-pic, .coach-pic-btn { background: none; border: 0; padding: 0; margin: 0; cursor: zoom-in; border-radius: 50%; display: inline-flex; color: inherit; }
.dock-pic:focus-visible, .coach-pic-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* "Use your AI" lab card (v2/labcards.js useai) */
.ua-privacy { background: #f3f8fb; border-left: 4px solid var(--teal); padding: 8px 12px; border-radius: 6px; }
.ua-field { display: grid; gap: 4px; margin: 10px 0; }
.ua-field textarea, .ua-claim input, .ua-claim select, .ua-rub input, .ua-rub select, [data-uacheck] { width: 100%; box-sizing: border-box; }
.ua-prompt { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; white-space: pre-wrap; user-select: text; }
.ua-adults { border: 2px solid var(--teal); border-radius: 12px; padding: 12px 14px; background: #f3f8fb; margin: 10px 0; }
.ua-claim, .ua-rub { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin: 8px 0; display: grid; gap: 6px; background: #fff; }
.ua-claim.ok { border-color: var(--green); background: var(--green-soft); }
.ua-claim.no { border-color: #c0392b; }
.ua-example[hidden] { display: none; }
.ua-exclaims { padding-left: 1.2em; }
@media (max-width: 640px) { .ua .row > * { flex: 1 1 100%; } .ua .btn { width: 100%; } }

/* Extended time choice (v2/satmode.js, A11Y-9) */
.time-choice { border: 0; padding: 0; margin: 0; } .time-choice legend { font-weight: 700; margin-bottom: 6px; }
.time-opt { display: flex; align-items: center; gap: 6px; font-weight: 500; margin: 0; min-height: 24px; color: var(--ink); }
/* SME media still "moving to our video host" in page HTML: nothing to play, so nothing is shown (A11Y-6). */
.media-placeholder, [data-media-placeholder] { display: none !important; }

/* Quiz Submit (ELA SME, Nov 2: easy to miss): a full-width button in its own box at the end of the quiz. */
.bcq-submit-row { display: flex; flex-direction: column; align-items: stretch; gap: 6px; text-align: center; }
.bcq-submit-row .bcq-submit { font-size: 1.15rem; padding: 14px 20px; width: 100%; }

/* Number keypad for typed answers (v2/keypad.js; Math SME, Nov 2): opened from the Keypad button by the answer box,
   it floats at the lower right so the question stays in view. */
/* A normal-size button beside the answer box, never stretched across the question (Tina, Nov 3). */
.kp-open { display: inline-flex; align-items: center; gap: 6px; width: auto; max-width: max-content; flex: none; align-self: flex-start; justify-self: start; margin: 8px 0 0 6px; vertical-align: middle; }
.kp { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 60; width: 236px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(15, 30, 50, .22); overflow: hidden; }
/* With the coach open beside the lesson, the keypad sits just left of it (never over the coach's chat box). */
@media (min-width: 1180px) { body.coach-docked .kp { right: 416px; } }
.kp-head { display: flex; align-items: center; justify-content: space-between; background: var(--navy, #13202f); color: #fff; padding: 8px 12px; }
.kp-x { background: none; border: 0; color: #fff; font-size: 18px; cursor: pointer; min-width: 32px; min-height: 32px; }
.kp-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px; }
.kp-k { min-height: 46px; font-size: 20px; font-weight: 600; border: 1px solid #c9d3df; border-radius: 8px; background: #f7f9fb; color: var(--ink, #13202f); cursor: pointer; }
.kp-k:hover { background: #eef4f5; }
.kp-k:focus-visible { outline: 3px solid var(--teal); outline-offset: 1px; }
.kp-keys .kp-k:nth-child(n+10) { font-size: 18px; }
.kp-keys .kp-back { grid-column: span 2; }

/* The coach button on pages without the coach beside them (v2/shell.js). */
.coach-fab { position: fixed; z-index: 40; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); width: 58px; height: 58px; border-radius: 50%; background: var(--paper, #fff); border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(0,0,0,.16); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; }
.coach-fab:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
body.coach-on .coach-fab, body.coach-docked .coach-fab, body.no-coach .coach-fab, body.in-lesson .coach-fab { display: none !important; }
@media (max-width: 719px) { .coach-fab { bottom: calc(max(16px, env(safe-area-inset-bottom, 0px)) + 64px); } } /* above the phone's tab bar */
/* The floating coach button steps aside while the coach drawer is open (it covered the drawer's Send), and the
   floaters at the foot of the screen sit above the demo bar's height (v2/demo.js sets --demo-h). */
body:has(#drawer:not([hidden])) .coach-fab, body:has(#cf) .coach-fab { display: none !important; } /* a page already showing a coach chat (a lab lesson) needs no button */
body.demo-on .coach-fab, body.demo-on .guide-pop { margin-bottom: var(--demo-h, 0px); }
/* Assignments on a student's course page (v2/assign.js). */
.as-list { list-style: none; margin: 0; padding: 0; }
.as-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line, #e3e8ef); }
.as-row:first-child { border-top: 0; }
/* Talk / Type: how the coach answers (app.js talkSwitch; Tina, Nov 17, 2026). One choice, shown in every coach's header. */
.talk-switch { display: inline-flex; flex: none; margin-left: auto; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; background: #fff; }
.talk-switch button { font: 600 13px var(--text, system-ui); border: 0; background: transparent; color: var(--muted); padding: 4px 10px; min-height: 32px; min-width: 44px; cursor: pointer; white-space: nowrap; }
.talk-switch button[aria-pressed="true"] { background: var(--navy, #1d3557); color: #fff; }
.talk-switch button:focus-visible { outline: 3px solid var(--sky, #4c9be8); outline-offset: -3px; }
.talk-switch .talk-off { padding: 4px 10px; white-space: nowrap; }
.talk-switch button > span.tl { color: inherit; font-size: inherit; } /* the dock's header greys its spans (.dock-head span): the switch keeps its own colors */
.c-head .talk-switch { margin-right: 6px; } .chat-head .talk-switch { margin-left: 0; }
.talk-head { display: flex; justify-content: flex-end; margin-bottom: 6px; }
#ex-face + div { flex: 1; }
@media (max-width: 420px) { .c-head .talk-switch .tl, .chat-head .talk-switch .tl { display: none; } .talk-switch button { padding: 4px 8px; } }
/* WCAG 2.2 target size (2.5.8, 24px): the coach switches' summary (family page and teacher class, v2/family.js) and,
   on the family page with a child, the "Each AI feature" summary below it (v2/family.js aiSwitchesHtml). */
.coach-sw > summary, .ai-feats > summary { min-height: 24px; cursor: pointer; }
