/* Spell Sprint — tokens first, then components. Light is the base; dark
   redefines values only, so nothing is defined solely inside a media query. */
:root{
  --ground:#FAF6FA; --surface:#FFFFFF; --surface-2:#F3EDF3;
  --line:#E2D8E4; --line-strong:#CDBDD1;
  --ink:#2A1F2D; --ink-2:#5C4C61; --ink-3:#8A798F;
  --accent:#E2591B; --accent-ink:#FFFFFF; --accent-soft:#FDEBE0;
  --voice:#7B4B94; --voice-soft:#F0E6F5;
  --good:#1F8A5B; --good-soft:#E1F3EA;
  --bad:#C4342F; --bad-soft:#FBE6E5;
  --shadow:0 1px 2px rgba(42,31,45,.06), 0 8px 24px -12px rgba(42,31,45,.18);
  --shadow-lift:0 2px 4px rgba(42,31,45,.08), 0 18px 40px -18px rgba(42,31,45,.28);
  --radius:14px; --radius-lg:22px;
  --display:"Bricolage Grotesque","Trebuchet MS",system-ui,sans-serif;
  --body:"Nunito Sans","Segoe UI",system-ui,-apple-system,sans-serif;
  --mono:"JetBrains Mono",ui-monospace,"SF Mono",Menlo,monospace;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --ground:#171021; --surface:#211829; --surface-2:#2C2135;
    --line:#3A2C45; --line-strong:#523F60;
    --ink:#F4EEF6; --ink-2:#C3B3CB; --ink-3:#93829C;
    --accent:#FF8A4C; --accent-ink:#2A1405; --accent-soft:#3B2416;
    --voice:#C293DC; --voice-soft:#312140;
    --good:#4ECB93; --good-soft:#16311F;
    --bad:#FF7B72; --bad-soft:#3A1D1D;
    --shadow:0 1px 2px rgba(0,0,0,.5), 0 8px 24px -12px rgba(0,0,0,.7);
    --shadow-lift:0 2px 4px rgba(0,0,0,.55), 0 18px 40px -18px rgba(0,0,0,.85);
  }
}
:root[data-theme="dark"]{
  --ground:#171021; --surface:#211829; --surface-2:#2C2135;
  --line:#3A2C45; --line-strong:#523F60;
  --ink:#F4EEF6; --ink-2:#C3B3CB; --ink-3:#93829C;
  --accent:#FF8A4C; --accent-ink:#2A1405; --accent-soft:#3B2416;
  --voice:#C293DC; --voice-soft:#312140;
  --good:#4ECB93; --good-soft:#16311F;
  --bad:#FF7B72; --bad-soft:#3A1D1D;
  --shadow:0 1px 2px rgba(0,0,0,.5), 0 8px 24px -12px rgba(0,0,0,.7);
  --shadow-lift:0 2px 4px rgba(0,0,0,.55), 0 18px 40px -18px rgba(0,0,0,.85);
}

*,*::before,*::after{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;background:var(--ground);color:var(--ink);font-family:var(--body);
  font-size:16px;line-height:1.55;-webkit-font-smoothing:antialiased;
}
h1,h2,h3{font-family:var(--display);margin:0;text-wrap:balance;line-height:1.1}
button{font-family:inherit;font-size:inherit;cursor:pointer}
input,textarea{font-family:inherit}
:focus-visible{outline:3px solid var(--accent);outline-offset:3px;border-radius:6px}
@media (prefers-reduced-motion:reduce){*{animation-duration:.01ms !important;transition-duration:.01ms !important}}

.wrap{max-width:920px;margin:0 auto;padding:20px 20px 64px;display:flex;flex-direction:column;gap:22px}
.hidden{display:none !important}

/* masthead */
.masthead{display:flex;align-items:center;gap:14px;padding-top:10px;flex-wrap:wrap}
.mark{width:42px;height:42px;flex:0 0 42px;border-radius:12px;background:var(--voice);color:#fff;display:grid;place-items:center;box-shadow:var(--shadow)}
.mark svg{width:22px;height:22px}
.masthead h1{font-size:1.5rem;font-weight:800;letter-spacing:-.02em}
.masthead p{margin:0;color:var(--ink-3);font-size:.82rem;font-weight:600}
.masthead .spacer{flex:1}
.ghost{background:transparent;border:1px solid var(--line-strong);color:var(--ink-2);border-radius:999px;padding:7px 14px;font-weight:700;font-size:.82rem;transition:.15s}
.ghost:hover{border-color:var(--ink-3);color:var(--ink);background:var(--surface)}

/* cards */
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow);padding:22px;display:flex;flex-direction:column;gap:16px}
.eyebrow{font-size:.68rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-3)}
.note{font-size:.82rem;color:var(--ink-3);margin:0;line-height:1.5}
.field{display:flex;flex-direction:column;gap:9px}
.row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}

/* chips, levels, switches */
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{border:1px solid var(--line-strong);background:var(--surface-2);color:var(--ink-2);border-radius:999px;padding:8px 15px;font-weight:700;font-size:.88rem;transition:.15s}
.chip:hover{border-color:var(--voice);color:var(--ink)}
.chip[aria-pressed="true"]{background:var(--voice);border-color:var(--voice);color:#fff}
.levels{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px}
.level{text-align:left;border:1px solid var(--line-strong);background:var(--surface-2);border-radius:var(--radius);padding:12px 14px;display:flex;flex-direction:column;gap:3px;transition:.15s;color:var(--ink)}
.level:hover{border-color:var(--voice);transform:translateY(-1px)}
.level[aria-pressed="true"]{border-color:var(--voice);background:var(--voice-soft);box-shadow:inset 0 0 0 1px var(--voice)}
.level b{font-family:var(--display);font-size:.98rem;font-weight:700}
.level span{font-size:.78rem;color:var(--ink-3);font-weight:600}
.switch{display:flex;align-items:center;gap:9px;border:1px solid var(--line-strong);background:var(--surface-2);border-radius:999px;padding:7px 14px 7px 9px;font-weight:700;font-size:.86rem;color:var(--ink-2);transition:.15s}
.switch[aria-pressed="true"]{border-color:var(--good);color:var(--ink);background:var(--good-soft)}
.dot{width:16px;height:16px;border-radius:50%;border:2px solid var(--line-strong);flex:0 0 16px}
.switch[aria-pressed="true"] .dot{background:var(--good);border-color:var(--good)}

.start{border:none;background:var(--accent);color:var(--accent-ink);border-radius:var(--radius);padding:15px 26px;font-family:var(--display);font-weight:800;font-size:1.1rem;letter-spacing:-.01em;box-shadow:var(--shadow);transition:.15s;align-self:flex-start}
.start:hover{transform:translateY(-2px);box-shadow:var(--shadow-lift)}
.start:disabled{opacity:.45;cursor:not-allowed;transform:none}

/* stage */
.stage{align-items:center;text-align:center;padding:26px 22px 30px}
.progressbar{width:100%;height:7px;border-radius:99px;background:var(--surface-2);overflow:hidden}
.progressbar i{display:block;height:100%;background:var(--voice);border-radius:99px;transition:width .3s ease}
.meta{display:flex;justify-content:space-between;width:100%;font-size:.78rem;font-weight:800;color:var(--ink-3);letter-spacing:.04em;text-transform:uppercase}
.speaker{width:132px;height:132px;border-radius:50%;border:none;background:var(--voice);color:#fff;display:grid;place-items:center;box-shadow:var(--shadow-lift);transition:transform .15s;position:relative}
.speaker:hover{transform:scale(1.04)}
.speaker:active{transform:scale(.97)}
.speaker svg{width:52px;height:52px}
.speaker.speaking::after{content:"";position:absolute;inset:-10px;border-radius:50%;border:3px solid var(--voice);opacity:.45;animation:ping 1.1s ease-out infinite}
@keyframes ping{0%{transform:scale(1);opacity:.5}100%{transform:scale(1.22);opacity:0}}
.hint{font-size:.86rem;color:var(--ink-3);font-weight:600;margin:0}

.answer{width:100%;max-width:560px;font-family:var(--mono);font-size:1.7rem;font-weight:700;text-align:center;letter-spacing:.08em;padding:16px 18px;border-radius:var(--radius);border:2px solid var(--line-strong);background:var(--surface-2);color:var(--ink)}
.answer::placeholder{color:var(--ink-3);letter-spacing:.02em;font-weight:400;opacity:.6}
.answer:focus{outline:none;border-color:var(--voice);background:var(--surface)}
.answer.sentence{font-size:1.15rem;letter-spacing:.01em;text-align:left}
.answer.ok{border-color:var(--good);background:var(--good-soft)}
.answer.no{border-color:var(--bad);background:var(--bad-soft);animation:shake .35s}
@keyframes shake{0%,100%{transform:translateX(0)}25%{transform:translateX(-7px)}75%{transform:translateX(7px)}}

.controls{display:flex;flex-wrap:wrap;gap:9px;justify-content:center}
.pill{border:1px solid var(--line-strong);background:var(--surface);color:var(--ink-2);border-radius:999px;padding:9px 16px;font-weight:700;font-size:.85rem;display:inline-flex;align-items:center;gap:7px;transition:.15s}
.pill:hover{border-color:var(--voice);color:var(--ink)}
.pill svg{width:15px;height:15px}
.pill.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.pill.primary:hover{filter:brightness(1.06);color:var(--accent-ink)}
.pill.danger{border-color:var(--bad);color:var(--bad)}

/* correction */
.correction{width:100%;max-width:620px;background:var(--bad-soft);border:1px solid var(--bad);border-radius:var(--radius);padding:16px;display:flex;flex-direction:column;gap:12px;align-items:center}
.correction.solved{background:var(--good-soft);border-color:var(--good)}
.tiles{display:flex;flex-wrap:wrap;gap:5px;justify-content:center}
.tile{font-family:var(--mono);font-size:1.5rem;font-weight:700;min-width:38px;height:48px;padding:0 4px;border-radius:9px;display:grid;place-items:center;background:var(--surface);border:2px solid var(--line-strong);color:var(--ink)}
.tile.hit{border-color:var(--good);color:var(--good)}
.tile.miss{border-color:var(--bad);color:var(--bad)}
.tile.next{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.tile.space{min-width:20px;background:transparent;border-style:dotted}
.yours{font-family:var(--mono);font-size:.95rem;color:var(--ink-2)}
.yours s{color:var(--bad);text-decoration-thickness:2px}

/* keyboard coach */
.kbd{display:flex;flex-direction:column;gap:5px;align-items:center;padding-top:4px}
.kbd .krow{display:flex;gap:5px}
.kbd .key{width:30px;height:32px;border-radius:7px;border:1px solid var(--line-strong);background:var(--surface);display:grid;place-items:center;font-family:var(--mono);font-size:.78rem;color:var(--ink-3);font-weight:700}
.kbd .key.home{border-color:var(--ink-3);color:var(--ink-2)}
.kbd .key.target{background:var(--accent);border-color:var(--accent);color:var(--accent-ink);transform:translateY(-2px)}
.finger{font-size:.78rem;font-weight:800;color:var(--accent);letter-spacing:.05em;text-transform:uppercase}

/* stats */
.score{display:flex;flex-wrap:wrap;gap:12px}
.stat{flex:1 1 130px;background:var(--surface-2);border:1px solid var(--line);border-radius:var(--radius);padding:14px 16px;display:flex;flex-direction:column;gap:2px}
.stat b{font-family:var(--display);font-size:2rem;font-weight:800;letter-spacing:-.02em;font-variant-numeric:tabular-nums;line-height:1.05}
.stat span{font-size:.72rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-3)}
.stat.good b{color:var(--good)}
.stat.warn b{color:var(--accent)}

.wordlist{display:flex;flex-direction:column;gap:6px}
.wl{display:flex;align-items:center;gap:12px;padding:9px 13px;border-radius:11px;background:var(--surface-2);border:1px solid var(--line);font-family:var(--mono);font-size:.95rem}
.wl .w{font-weight:700;flex:1;text-align:left;word-break:break-word}
.wl .n{color:var(--ink-3);font-size:.8rem;font-family:var(--body);font-weight:700}
.wl .badge{font-family:var(--body);font-size:.7rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;padding:3px 9px;border-radius:99px;background:var(--bad-soft);color:var(--bad)}

/* chart */
.chartwrap{overflow-x:auto;padding-bottom:4px}
.chart{display:block;min-width:340px}
.chart .grid{stroke:var(--line);stroke-width:1}
.chart .bar{fill:var(--voice);transition:.15s}
.chart g:hover .bar{fill:var(--accent)}
.chart .lbl{fill:var(--ink-3);font-family:var(--body);font-size:10px;font-weight:700}
.empty{color:var(--ink-3);font-size:.92rem;text-align:center;padding:22px 0;font-weight:600}

/* forms */
textarea.paste{width:100%;min-height:150px;border-radius:var(--radius);border:1px solid var(--line-strong);background:var(--surface-2);color:var(--ink);padding:13px;font-family:var(--mono);font-size:.9rem;resize:vertical}
input.text{border-radius:999px;border:1px solid var(--line-strong);background:var(--surface-2);color:var(--ink);padding:10px 18px;font-weight:700;font-size:.95rem;max-width:260px}
.banner{border:1px solid var(--accent);background:var(--accent-soft);color:var(--ink);border-radius:var(--radius);padding:12px 15px;font-size:.85rem;font-weight:600}
.err{color:var(--bad);font-size:.85rem;font-weight:700;margin:0}

.crossover{border-color:var(--accent);background:linear-gradient(var(--accent-soft),var(--surface));margin-bottom:18px}
.crossover h2{font-size:1.35rem;letter-spacing:-.01em}

.kidcard{border:1px solid var(--line);border-radius:var(--radius);padding:16px;display:flex;flex-direction:column;gap:12px;background:var(--surface-2)}
.kidcard h3{font-size:1.15rem;font-weight:700}

.toast{position:fixed;left:50%;bottom:26px;transform:translateX(-50%);background:var(--ink);color:var(--ground);padding:11px 20px;border-radius:999px;font-weight:700;font-size:.88rem;box-shadow:var(--shadow-lift);z-index:50}

/* ------------------------------------------------- type sprint only --- */
.lessons { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.lesson {
  text-align: left; border: 1px solid var(--line-strong); background: var(--surface-2);
  border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column;
  gap: 4px; transition: .15s; color: var(--ink); cursor: pointer;
}
.lesson:hover { border-color: var(--voice); transform: translateY(-1px); }
.lesson b { font-family: var(--display); font-size: 1rem; font-weight: 700; }
.lesson span { font-size: .78rem; color: var(--ink-3); font-weight: 600; }
.lesson .stars { color: var(--accent); font-size: .95rem; letter-spacing: .1em; }
.lesson.locked { opacity: .45; cursor: not-allowed; }
.lesson.locked:hover { transform: none; border-color: var(--line-strong); }
.lesson .keys { font-family: var(--mono); font-size: .78rem; color: var(--voice); font-weight: 700; }

.introcard { max-width: 640px; text-align: left; background: var(--voice-soft); border: 1px solid var(--voice); border-radius: var(--radius); padding: 18px; font-size: 1.02rem; line-height: 1.65; }

.typeline {
  font-family: var(--mono); font-size: 1.6rem; line-height: 1.6; letter-spacing: .04em;
  background: var(--surface-2); border: 2px solid var(--line-strong); border-radius: var(--radius);
  padding: 18px 22px; max-width: 820px; width: 100%; text-align: left; word-break: break-word;
  white-space: pre-wrap; user-select: none; cursor: text;
}
.typeline.focused { border-color: var(--voice); background: var(--surface); }
.typeline .done { color: var(--good); }
.typeline .cur {
  background: var(--voice); color: #fff; border-radius: 4px;
  animation: blinkc 1s steps(1) infinite;
}
.typeline .cur.miss { background: var(--bad); animation: shake .3s; }
.typeline .todo { color: var(--ink-3); }
@keyframes blinkc { 50% { opacity: .65; } }

.story-passage { font-size: 1.25rem; letter-spacing: .01em; }

.livebar { display: flex; gap: 18px; justify-content: center; font-family: var(--mono);
  font-size: .95rem; color: var(--ink-2); font-weight: 700; }
.livebar b { color: var(--voice); }

/* finger-zone keyboard */
.kbd .key.z1 { background: #F6E4EE; }  .kbd .key.z2 { background: #EFE4F6; }
.kbd .key.z3 { background: #E4EAF6; }  .kbd .key.z4 { background: #E4F4EF; }
.kbd .key.z5 { background: #F6F0E0; }
.kbd .key.target { background: var(--accent); }
.zonekey { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  font-size: .72rem; color: var(--ink-3); font-weight: 700; }
.zonekey i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }

.storylist { display: flex; flex-direction: column; gap: 8px; }
.storyrow {
  display: flex; align-items: center; gap: 12px; text-align: left; width: 100%;
  border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink);
  border-radius: var(--radius); padding: 13px 16px; cursor: pointer; transition: .15s;
}
.storyrow:hover { border-color: var(--voice); }
.storyrow .t { font-family: var(--display); font-weight: 700; flex: 1; }
.storyrow .m { font-size: .78rem; color: var(--ink-3); font-weight: 600; }
.storyrow .pb { font-family: var(--mono); font-size: .82rem; color: var(--good); font-weight: 700; }

/* trouble words */
.wordchips { display: flex; flex-wrap: wrap; gap: 7px; }
.wchip {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono);
  font-size: .86rem; font-weight: 700; border: 1px solid var(--line-strong);
  background: var(--surface-2); border-radius: 999px; padding: 5px 11px; color: var(--ink);
}
.wchip i { font-style: normal; font-size: .7rem; letter-spacing: .12em; color: var(--accent); }
.wchip.fresh i { color: var(--ink-3); }
.masterline { font-size: .82rem; color: var(--ink-3); font-weight: 700; align-self: center; }
.wordlist .wl .tag { font-family: var(--mono); font-size: .74rem; font-weight: 700;
  border-radius: 999px; padding: 2px 8px; }
.wordlist .wl .tag.won { background: var(--good); color: #fff; }
.wordlist .wl .tag.step { background: var(--voice-soft); color: var(--voice); }
.wordlist .wl .tag.back { background: var(--bad); color: #fff; }
.wl.struck .w { text-decoration: line-through; color: var(--ink-3); }
.wl .strike {
  font-family: var(--body); font-size: .72rem; font-weight: 800; letter-spacing: .04em;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2);
  border-radius: 999px; padding: 4px 11px; cursor: pointer; white-space: nowrap;
}
.wl .strike:hover { border-color: var(--bad); color: var(--bad); }
.wl.struck .strike:hover { border-color: var(--good); color: var(--good); }
.wl .strike:disabled { opacity: .5; cursor: default; }

/* the library */
.works { display: flex; flex-direction: column; gap: 10px; }
.work { border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface-2); overflow: hidden; }
.workhead {
  display: flex; align-items: baseline; gap: 10px; width: 100%; text-align: left;
  padding: 14px 16px; background: none; border: 0; color: var(--ink); cursor: pointer;
}
.workhead:hover { background: var(--accent-soft); }
.workhead .ti { font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
.workhead .au { font-size: .8rem; color: var(--ink-3); font-weight: 600; flex: 1; }
.workhead .pr { font-family: var(--mono); font-size: .8rem; font-weight: 700; color: var(--voice); }
.work.done .workhead .pr { color: var(--good); }
.workbody { padding: 0 16px 14px; display: flex; flex-direction: column; gap: 8px; }
.workbody .blurb { font-size: .86rem; color: var(--ink-2); line-height: 1.55; margin: 0 0 4px; }
.passage {
  display: flex; align-items: center; gap: 10px; text-align: left; width: 100%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 10px; padding: 10px 13px; cursor: pointer; transition: .15s;
}
.passage:hover { border-color: var(--voice); }
.passage .nm { font-weight: 700; font-size: .9rem; min-width: 92px; }
.passage .pv { font-size: .78rem; color: var(--ink-3); flex: 1; font-style: italic;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.passage .st { font-family: var(--mono); font-size: .78rem; font-weight: 700; color: var(--ink-3); }
.passage.cleared { border-color: var(--good); }
.passage.cleared .st { color: var(--good); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .kbd .key.z1 { background: #3A2433; }
  :root:not([data-theme="light"]) .kbd .key.z2 { background: #332440; }
  :root:not([data-theme="light"]) .kbd .key.z3 { background: #24303F; }
  :root:not([data-theme="light"]) .kbd .key.z4 { background: #1E3A2F; }
  :root:not([data-theme="light"]) .kbd .key.z5 { background: #3B331D; }
}

/* ------------------------------------------------- who is signed in --- */
/* Same bar, same place, in every Sprint. The name is the biggest thing on it
   on purpose: a child who sits down at a machine someone else left open should
   see whose account it is before they type a word. */
.lyceum-bar{
  display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px;
  padding:10px 0 14px;border-bottom:1px solid var(--line);
}
.lb-home{
  justify-self:start;display:inline-flex;align-items:center;gap:6px;
  text-decoration:none;color:var(--ink-3);font-weight:700;font-size:.78rem;
  letter-spacing:.06em;text-transform:uppercase;
  border:1px solid var(--line);border-radius:999px;padding:7px 13px;transition:.15s;
}
.lb-home:hover{color:var(--voice);border-color:var(--voice);background:var(--surface)}
.lb-home svg{width:14px;height:14px}
.lb-app{justify-self:end;font-family:var(--display);font-weight:800;font-size:.82rem;
        letter-spacing:.04em;color:var(--ink-3);white-space:nowrap}
.lb-who{
  justify-self:center;display:flex;align-items:center;gap:2px;
  font-family:inherit;background:var(--voice-soft);border:1px solid transparent;
  border-radius:999px;padding:3px 4px;transition:.15s;
}
.lb-who:hover{border-color:var(--voice)}
/* Two tap targets in one chip, each big enough for a small finger, with a
   hairline between them so it reads as two things. The name goes to their own
   page; only the small one hands the machine on. */
.lb-me{display:flex;align-items:center;gap:10px;text-decoration:none;
       border-radius:999px;padding:4px 12px 4px 4px;transition:.15s}
.lb-me:hover{background:var(--surface)}
.lb-avatar{
  width:30px;height:30px;flex:0 0 30px;border-radius:50%;background:var(--voice);
  color:#fff;display:grid;place-items:center;font-family:var(--display);
  font-weight:800;font-size:1rem;
}
.lb-name{font-family:var(--display);font-size:1.32rem;font-weight:800;
         letter-spacing:-.02em;color:var(--ink);line-height:1}
.lb-switch{font-family:inherit;font-size:.66rem;font-weight:700;letter-spacing:.08em;
           text-transform:uppercase;color:var(--voice);background:transparent;border:0;
           border-left:1px solid var(--line-strong);padding:10px 14px;cursor:pointer;
           border-radius:0 999px 999px 0;transition:.15s}
.lb-switch:hover{filter:brightness(1.15);text-decoration:underline}
@media (max-width:520px){
  .lyceum-bar{grid-template-columns:1fr 1fr;row-gap:12px}
  .lb-who{grid-column:1 / -1;grid-row:2;justify-self:center}
  .lb-name{font-size:1.5rem}
}


/* ------------------------------------------------- who is at the keyboard --- */
/* Names as buttons a child can hit without aiming, and a quieter way in for
   somebody genuinely new. The size is the point: this is the most-used control
   in the whole app and it used to be a text field. */
.who-ask{margin:0 0 10px;font-family:var(--display);font-size:1.15rem;font-weight:800;
         letter-spacing:-.01em}
.roster{display:grid;gap:10px;grid-template-columns:repeat(auto-fill,minmax(146px,1fr))}
.roster .who{display:flex;align-items:center;gap:10px;min-height:56px;padding:8px 14px;
             font-family:var(--display);font-size:1.15rem;font-weight:800;letter-spacing:-.01em;
             color:var(--ink);background:var(--surface);border:1px solid var(--line-strong);
             border-radius:999px;cursor:pointer;text-align:left;transition:.15s}
.roster .who:hover{border-color:var(--voice);box-shadow:var(--shadow-lift);transform:translateY(-1px)}
.roster .who .initial{width:34px;height:34px;flex:0 0 34px;border-radius:50%;
                      background:var(--voice);color:#fff;display:grid;place-items:center;
                      font-size:1rem}
.roster .none{color:var(--ink-3);font-size:.88rem;font-weight:600}
.newkid{margin-top:12px;background:transparent;border:1px dashed var(--line-strong);
        color:var(--ink-2);border-radius:999px;padding:10px 18px;font-weight:700;
        font-size:.86rem;cursor:pointer;transition:.15s}
.newkid:hover{border-color:var(--accent);color:var(--accent)}
.newform{margin-top:12px}
.newrow{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
/* Said before a second account exists, not after somebody notices one. */
.near{margin:8px 0 0;font-size:.9rem;font-weight:700;color:var(--accent)}
.near b{font-family:var(--display)}
.near .row{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}

/* ------------------------------------------------------ the school's mark --- */
/* Two paths rather than a picture, so the navy can step aside on the dark
   theme instead of sinking into the ground. */
.schoolmark{display:block;margin:0 auto 14px;height:34px;width:auto}
.schoolmark .wm-name{fill:#0B1F3A}
.schoolmark .wm-sub{fill:#B58A35}
@media (prefers-color-scheme: dark){
  .schoolmark .wm-name{fill:#F0EAF2}
  .schoolmark .wm-sub{fill:#D9B25C}
}
