/* Homestead design system (Claude Design handoff #2, "Homey's world"). Tokens,
   Homey's keyframes, and the Board setup wizard. Everything here is scoped under
   .hs-* so the rest of the app keeps its current look until it's ported too.
   Rules: outlines are inset box-shadows (never change layout); shadows are solid ink
   straight down (never blurred); pressing moves an element down by its shadow. */

@font-face {
  font-family: "Fredoka";
  src: url("/fonts/fredoka-variable.woff2") format("woff2-variations");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Phosphor-Bold";
  src: url("/fonts/phosphor-bold.woff2") format("woff2");
  font-display: block;
}

:root {
  --ink: #2B3138; --hs-muted: #5F666D; --paper: #FFFDF6; --paper-2: #F6F1E4; --line-soft: #D9D4C7;
  --sky: #E3F2F7; --night: #2E3A5C; --hill: #A9D892; --hill-2: #6DB463; --night-hill: #3E6A57; --night-hill-2: #2F5646;
  --green: #3D7C4A; --green-2: #4C9A5C; --green-soft: #DCEFD9;
  --tomato: #E8634A; --tomato-soft: #FBE1DA; --tomato-text: #B23E27;
  --sun: #FFCB57; --sun-soft: #FFF1C7; --sun-disc: #FFD35C;
  --blue: #5AA9E6; --blue-soft: #DDEEFB; --grape: #9B7BD8; --grape-soft: #ECE4F8; --blush: #F59A8B; --blush-soft: #FDE6E1;
  --moon: #F6E7B4; --placeholder: #8A9096; --track: #E4DFD2; --disabled-ring: #B9B4A8;
  --display: "Fredoka", "Figtree", system-ui, sans-serif;
  --text-font: "Figtree", system-ui, sans-serif;
}

/* ---- Homey + scene keyframes (from homey.js) ---------------------------------- */
@keyframes hs-bob { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-6px) } }
@keyframes hs-breathe { 0%, 100% { transform: scale(1, 1) } 50% { transform: scale(1.02, .97) translateY(3px) } }
@keyframes hs-waddle { 0%, 100% { transform: translateY(0) rotate(-3deg) } 50% { transform: translateY(-5px) rotate(3deg) } }
@keyframes hs-jump { 0%, 100% { transform: translateY(0) scale(1, 1) } 15% { transform: translateY(2px) scale(1.05, .94) } 50% { transform: translateY(-24px) scale(.98, 1.03) } }
@keyframes hs-hop { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-12px) } }
@keyframes hs-sway { 0%, 100% { transform: rotate(-3deg) } 50% { transform: rotate(3deg) } }
@keyframes hs-blink { 0%, 92%, 100% { transform: scaleY(1) } 95% { transform: scaleY(.1) } }
@keyframes hs-look { 0%, 100% { transform: translateX(-5px) } 50% { transform: translateX(5px) } }
@keyframes hs-smoke { 0% { transform: translate(0, 0) scale(.5); opacity: 0 } 20% { opacity: 1 } 100% { transform: translate(12px, -36px) scale(1.25); opacity: 0 } }
@keyframes hs-zzz { 0% { transform: translate(0, 0) scale(.6); opacity: 0 } 25% { opacity: 1 } 100% { transform: translate(22px, -44px) scale(1.1); opacity: 0 } }
@keyframes hs-waveR { 0% { transform: rotate(-158deg) } 100% { transform: rotate(-105deg) } }
@keyframes hs-hammer { 0%, 100% { transform: rotate(-165deg) } 55% { transform: rotate(-62deg) } }
@keyframes hs-point { 0%, 100% { transform: rotate(-92deg) } 50% { transform: rotate(-80deg) } }
@keyframes hs-cheerL { 0% { transform: rotate(132deg) } 100% { transform: rotate(168deg) } }
@keyframes hs-cheerR { 0% { transform: rotate(-132deg) } 100% { transform: rotate(-168deg) } }
@keyframes hs-confetti { 0% { transform: translate(0, 0) rotate(0) scale(.4); opacity: 0 } 15% { opacity: 1 } 100% { transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(1); opacity: 0 } }
@keyframes hs-drip { 0%, 100% { transform: translateY(0); opacity: 1 } 70% { transform: translateY(12px); opacity: 0 } }
@keyframes hs-dot { 0%, 80%, 100% { transform: scale(.6); opacity: .35 } 40% { transform: scale(1); opacity: 1 } }
@keyframes hs-twinkle { 0%, 100% { opacity: .35 } 50% { opacity: 1 } }
@media (prefers-reduced-motion: reduce) { .homey * { animation: none !important; } }

/* ---- The Board is a touch appliance (osk.js adds html.hb-board) ---------------- */
html.hb-board, html.hb-board * { cursor: none !important; }
html.hb-board { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
html.hb-board input, html.hb-board textarea { -webkit-user-select: text; user-select: text; }
html.hb-board img { -webkit-user-drag: none; }
html.hb-board ::-webkit-scrollbar { display: none; }
html.hb-board * { scrollbar-width: none; }

/* ---- Icons (Phosphor Bold; `ic()` in app.js) ---------------------------------- */
.hs-i { font-family: "Phosphor-Bold"; font-style: normal; font-weight: normal; line-height: 1; display: inline-block;
  speak: never; -webkit-font-smoothing: antialiased; }

/* ---- The wizard stage: the 1920x1080 design, scaled to fit the screen ---------- */
.hs-app { min-height: 100vh; background: var(--sky); }
.hs-wrap { position: fixed; inset: 0; overflow: hidden; background: var(--sky); font-family: var(--text-font); color: var(--ink); }
.hs-stage { position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px; transform-origin: 0 0;
  transform: translate(calc(-960px * var(--hs-scale, 1)), calc(-540px * var(--hs-scale, 1))) scale(var(--hs-scale, 1)); }
/* Dark mode is out for v1 (handoff #2: a designed "dusk" palette later, not an
   inversion). style.css recolours headings/text for dark phones; not in here. */
.hs-wrap, .hs-modal { color-scheme: light; color: var(--ink); }
.hs-wrap h1, .hs-wrap h2, .hs-wrap h3, .hs-wrap label { color: inherit; }
.hs-head h1 { color: var(--ink); }
.hs-scene { position: absolute; inset: 0; overflow: hidden; background: var(--sky); }
.hs-scene > div { position: absolute; }
.hs-scene.night { background: var(--night); }

.hs-top { position: absolute; left: 64px; right: 64px; top: 36px; height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hs-logo { display: flex; align-items: center; gap: 14px; font: 700 44px/1 var(--display); }
.hs-track { display: flex; gap: 10px; }
.hs-track > div { height: 56px; padding: 0 22px; border-radius: 999px; background: var(--paper); color: var(--ink);
  display: flex; align-items: center; gap: 8px; font: 600 24px var(--display); box-shadow: inset 0 0 0 3px var(--ink); }
.hs-track > div.now { background: var(--sun); }
.hs-track > div.done { background: var(--green); color: #fff; }
.hs-help { height: 64px; padding: 0 28px; display: flex; align-items: center; gap: 10px; border-radius: 999px; background: var(--paper);
  font: 700 24px var(--text-font); color: var(--ink); text-decoration: none; box-shadow: inset 0 0 0 3px var(--ink), 0 4px 0 var(--ink); }
.hs-help:hover { color: var(--ink); text-decoration: none; }
.hs-help:active { transform: translateY(3px); box-shadow: inset 0 0 0 3px var(--ink), 0 1px 0 var(--ink); }

.hs-homey { position: absolute; left: 130px; top: 500px; transform-origin: 0 0; transition: transform .25s ease, left .25s ease, top .25s ease; }

/* 800 tall like the design; steps with more to show (three choices under a two-line
   title) grow down to just above the screen's edge instead of hiding the last one. */
.hs-panel { position: absolute; left: 640px; top: 150px; width: 1180px; height: auto; min-height: 800px; max-height: 900px; box-sizing: border-box; background: var(--paper);
  border-radius: 40px; padding: 56px 64px; box-shadow: inset 0 0 0 4px var(--ink), 0 8px 0 var(--ink);
  display: flex; flex-direction: column; gap: 28px; transition: top .25s ease, height .25s ease; }
.hs-head { display: flex; flex-direction: column; gap: 14px; }
.hs-head h1 { margin: 0; font: 700 64px/1.05 var(--display); text-wrap: balance; }
.hs-head p { margin: 0; font: 600 30px/1.4 var(--text-font); color: var(--hs-muted); text-wrap: pretty; }
.hs-content { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 18px;
  margin: -8px; padding: 8px 8px 14px; /* room for focus halos + shadows inside the scroller */ }
.hs-foot { margin-top: auto; display: flex; align-items: center; gap: 20px; }
.hs-grow { flex: 1; }

/* The on-screen keyboard is up: the panel moves up and gets shorter so the field sits
   above the keys; Homey shrinks to 320. */
.osk-open .hs-panel { top: 140px; height: 560px; min-height: 0; max-height: 560px; padding-top: 40px; padding-bottom: 40px; gap: 20px; }
.osk-open .hs-head h1 { font-size: 52px; }
.osk-open .hs-head p { font-size: 26px; }
.osk-open .hs-homey { left: 170px; top: 300px; transform: scale(.762); }

/* ---- Buttons ---------------------------------------------------------------- */
.hs-btn { height: 88px; padding: 0 40px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; flex: none;
  border: 0; border-radius: 24px; background: var(--paper); color: var(--ink); font: 600 36px var(--display); cursor: pointer;
  box-shadow: inset 0 0 0 4px var(--ink), 0 6px 0 var(--ink); transition: transform .06s ease, box-shadow .06s ease; -webkit-tap-highlight-color: transparent; }
.hs-btn.primary { background: var(--green); color: #fff; padding: 0 44px; }
.hs-btn.danger { background: var(--tomato); color: #fff; }
.hs-btn.sm { height: 80px; padding: 0 30px; font-size: 30px; }
.hs-btn:active:not(:disabled) { transform: translateY(4px); box-shadow: inset 0 0 0 4px var(--ink), 0 2px 0 var(--ink); }
.hs-btn:disabled { background: var(--paper-2); color: var(--placeholder); box-shadow: inset 0 0 0 4px var(--disabled-ring); cursor: default; }
.hs-btn:focus-visible, .hs-choice:focus-visible, .hs-net:focus-visible { outline: 4px solid var(--green); outline-offset: 4px; }
.hs-link { display: inline-flex; align-items: center; gap: 8px; padding: 6px 4px; border: 0; background: none; cursor: pointer;
  font: 700 26px var(--text-font); color: var(--green); }
.hs-links { display: flex; flex-wrap: wrap; gap: 28px; }

/* ---- Fields ----------------------------------------------------------------- */
.hs-field { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.hs-label { font: 700 24px var(--text-font); color: var(--ink); }
.hs-label .opt { color: var(--hs-muted); font-weight: 600; }
.hs-input { height: 88px; width: 100%; box-sizing: border-box; border: 0; border-radius: 22px; background: #fff; padding: 0 26px;
  font: 600 32px var(--text-font); color: var(--ink); box-shadow: inset 0 0 0 3px var(--ink); outline: none; margin: 0; }
.hs-input::placeholder { color: var(--placeholder); }
.hs-input:focus { box-shadow: inset 0 0 0 4px var(--green), 0 0 0 7px var(--green-soft); }
.hs-input.err, .hs-input.err:focus { box-shadow: inset 0 0 0 4px var(--tomato); }
.hs-input.big { height: 96px; border-radius: 24px; font-size: 38px; padding: 0 30px; }
.hs-input.pw { letter-spacing: .08em; }
.hs-inrow { display: flex; gap: 16px; align-items: flex-end; }
.hs-inrow > .hs-field, .hs-inrow > .hs-input { flex: 1; }
.hs-iconbtn { width: 96px; height: 96px; flex: none; border: 0; border-radius: 24px; background: var(--paper); color: var(--ink); font-size: 42px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 4px var(--ink), 0 5px 0 var(--ink); }
.hs-iconbtn.eye88 { width: 88px; height: 88px; border-radius: 22px; }
.hs-iconbtn:active { transform: translateY(4px); box-shadow: inset 0 0 0 4px var(--ink), 0 1px 0 var(--ink); }
.hs-search { position: relative; }
.hs-search .hs-i { position: absolute; left: 28px; top: 50%; transform: translateY(-50%); font-size: 34px; }
.hs-search .hs-input { padding-left: 76px; }
.hs-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.hs-grid2 .span2 { grid-column: span 2; }
.hs-msg { min-height: 36px; font: 600 26px/1.35 var(--text-font); color: var(--hs-muted); display: flex; gap: 10px; align-items: flex-start; }
.hs-msg:empty { display: none; }
.hs-msg.err { color: var(--tomato-text); }
.hs-msg.ok { color: var(--green); }
.hs-note { font: 600 26px/1.4 var(--text-font); color: var(--hs-muted); margin: 0; }
.hs-note b { color: var(--ink); }
.hs-kicker { font: 700 24px var(--text-font); color: var(--hs-muted); text-transform: uppercase; letter-spacing: .02em; }

/* ---- Welcome "have these handy" cards ---------------------------------------- */
.hs-handy { display: flex; gap: 20px; }
.hs-handy > div { flex: 1; display: flex; align-items: center; gap: 20px; padding: 24px; border-radius: 28px; box-shadow: inset 0 0 0 4px var(--ink); font: 600 34px/1.15 var(--display); }
.hs-sticker { width: 88px; height: 88px; flex: none; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 3px var(--ink);
  display: flex; align-items: center; justify-content: center; font-size: 48px; line-height: 1; }
.hs-sticker.sm { width: 80px; height: 80px; font-size: 42px; }

/* ---- Wi-Fi network rows ------------------------------------------------------ */
.hs-nets { display: flex; flex-direction: column; gap: 14px; }
.hs-net { height: 92px; flex: none; border: 0; width: 100%; border-radius: 24px; background: #fff; box-shadow: inset 0 0 0 3px var(--ink);
  display: flex; align-items: center; gap: 20px; padding: 0 28px; font: 600 34px var(--display); color: var(--ink); cursor: pointer; text-align: left; }
.hs-net:active { background: var(--green-soft); }
.hs-net .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-net .hs-i { font-size: 40px; }
.hs-net .lock, .hs-net .caret { font-size: 30px; }
.hs-net .lock { color: var(--hs-muted); }
.hs-waiting { display: flex; align-items: center; gap: 16px; font: 600 30px var(--text-font); color: var(--hs-muted); padding: 12px 4px; }
.card .hs-waiting { font-size: 18px; }
.hs-dots { display: inline-flex; gap: 10px; }
.hs-dots i { width: 16px; height: 16px; border-radius: 50%; background: var(--green); animation: hs-dot 1.2s ease-in-out infinite; }
.hs-dots i:nth-child(2) { animation-delay: .2s; } .hs-dots i:nth-child(3) { animation-delay: .4s; }

/* ---- Status card (online) ---------------------------------------------------- */
.hs-status { display: flex; align-items: center; gap: 24px; padding: 28px 32px; border-radius: 28px; background: var(--green-soft); box-shadow: inset 0 0 0 4px var(--green); }
.hs-status .disc { width: 88px; height: 88px; flex: none; border-radius: 50%; background: var(--green); color: #fff; box-shadow: inset 0 0 0 4px var(--ink);
  display: flex; align-items: center; justify-content: center; font-size: 48px; }
.hs-status .t { font: 600 40px var(--display); }
.hs-status .d { font: 600 26px/1.35 var(--text-font); }

/* ---- Choice cards ------------------------------------------------------------- */
.hs-choices { display: flex; flex-direction: column; gap: 18px; }
.hs-choice { border: 0; width: 100%; text-align: left; color: var(--ink); border-radius: 28px; padding: 22px 26px; background: var(--paper); cursor: pointer;
  box-shadow: inset 0 0 0 4px var(--ink), 0 6px 0 var(--ink); display: flex; gap: 22px; align-items: center; flex: none; }
.hs-choice.on { background: var(--green-soft); box-shadow: inset 0 0 0 4px var(--green), 0 6px 0 var(--green); }
.hs-choice.fixed { cursor: default; }
.hs-choice:active:not(.fixed) { transform: translateY(4px); }
.hs-choice .txt { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.hs-choice .t { display: flex; align-items: center; gap: 12px; font: 600 34px var(--display); flex-wrap: wrap; }
.hs-choice .d { font: 600 24px/1.35 var(--text-font); }
.hs-tag { height: 36px; padding: 0 14px; border-radius: 999px; background: var(--sun); display: inline-flex; align-items: center;
  font: 700 18px var(--text-font); box-shadow: inset 0 0 0 2px var(--ink); }
.hs-mark { width: 56px; height: 56px; flex: none; border-radius: 50%; background: #fff; color: #fff; box-shadow: inset 0 0 0 4px var(--ink);
  display: flex; align-items: center; justify-content: center; font-size: 32px; }
.hs-mark.sq { border-radius: 16px; }
.hs-choice.on .hs-mark { background: var(--green); }

/* ---- Family ------------------------------------------------------------------- */
.hs-kids { display: flex; flex-wrap: wrap; gap: 18px; }
.hs-kid { height: 96px; padding: 0 14px 0 12px; border-radius: 999px; box-shadow: inset 0 0 0 4px var(--ink); display: flex; align-items: center; gap: 16px; }
.hs-av { width: 72px; height: 72px; flex: none; border-radius: 50%; color: #fff; box-shadow: inset 0 0 0 4px var(--ink);
  display: flex; align-items: center; justify-content: center; font: 700 38px var(--display); }
.hs-kid .n { font: 600 38px var(--display); }
.hs-kid .a { font: 600 24px var(--text-font); color: var(--hs-muted); }
.hs-kid .x { width: 64px; height: 64px; border: 0; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 3px var(--ink);
  display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--ink); cursor: pointer; }
.hs-kid .x:active { background: var(--tomato-soft); }

/* ---- Phone QR ------------------------------------------------------------------- */
.hs-qrrow { display: flex; gap: 40px; align-items: center; }
.hs-qr { width: 300px; height: 300px; flex: none; border-radius: 28px; background: #fff; box-shadow: inset 0 0 0 4px var(--ink);
  display: flex; align-items: center; justify-content: center; padding: 22px; box-sizing: border-box; font: 600 22px var(--text-font); color: var(--hs-muted); text-align: center; }
.hs-qr svg { width: 100%; height: 100%; display: block; }
.hs-steps { display: flex; flex-direction: column; gap: 22px; }
.hs-num { display: flex; gap: 18px; align-items: flex-start; font: 600 30px/1.35 var(--text-font); }
.hs-num > span:first-child { width: 56px; height: 56px; flex: none; border-radius: 50%; background: var(--sun); box-shadow: inset 0 0 0 3px var(--ink);
  display: flex; align-items: center; justify-content: center; font: 700 30px var(--display); }

/* ---- Kid screens tiles ------------------------------------------------------------ */
.hs-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hs-tiles > div { border-radius: 28px; padding: 26px; box-shadow: inset 0 0 0 4px var(--ink); display: flex; flex-direction: column; gap: 14px; }
.hs-tiles .t { font: 600 32px/1.1 var(--display); }
.hs-tiles .d { font: 600 23px/1.35 var(--text-font); }

/* ---- PIN pad ------------------------------------------------------------------------ */
.hs-pin { display: flex; gap: 48px; align-items: center; }
.hs-pin .side { display: flex; flex-direction: column; gap: 22px; flex: 1; }
.hs-pindots { display: flex; gap: 20px; }
.hs-pindots i { width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 5px var(--ink); }
.hs-pindots i.on { background: var(--ink); }
.hs-pad { display: grid; grid-template-columns: repeat(3, 112px); gap: 14px; }
.hs-pad button { height: 84px; border: 0; border-radius: 22px; background: #fff; color: var(--ink); font: 600 40px var(--display); cursor: pointer;
  box-shadow: inset 0 0 0 4px var(--ink), 0 5px 0 var(--ink); display: flex; align-items: center; justify-content: center; }
.hs-pad button.fn { background: var(--paper-2); }
.hs-pad button:active { transform: translateY(4px); box-shadow: inset 0 0 0 4px var(--ink), 0 1px 0 var(--ink); }
.hs-pad .blank { visibility: hidden; }

/* ---- All set checklist ------------------------------------------------------------------ */
.hs-donelist { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hs-donelist > div { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 24px; background: var(--green-soft); box-shadow: inset 0 0 0 3px var(--green);
  font: 600 30px var(--display); min-width: 0; }
.hs-donelist .disc { width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--green); color: #fff; box-shadow: inset 0 0 0 3px var(--ink);
  display: flex; align-items: center; justify-content: center; font-size: 28px; }

/* ---- School days calendar ---------------------------------------------------------------- */
.hs-school { display: flex; gap: 36px; align-items: flex-start; }
.hs-cal { width: 560px; flex: none; }
.hs-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.hs-cal-head .hs-iconbtn { width: 72px; height: 64px; font-size: 32px; border-radius: 20px; }
.hs-cal-head .hs-iconbtn:disabled { opacity: .35; box-shadow: inset 0 0 0 4px var(--disabled-ring); }
.hs-cal-title { font: 600 34px var(--display); }
.hs-cal-dow, .hs-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.hs-cal-dow span { text-align: center; font: 700 20px var(--text-font); color: var(--hs-muted); padding: 4px 0; }
.hs-cal-grid > * { height: 58px; }
.hs-cal-grid button { border: 0; border-radius: 16px; background: #fff; color: var(--ink); font: 600 26px var(--display); cursor: pointer;
  box-shadow: inset 0 0 0 3px var(--ink); padding: 0; }
.hs-cal-grid button.off { background: var(--sun); box-shadow: inset 0 0 0 4px var(--ink), 0 3px 0 var(--ink); }
.hs-cal-grid button.wk { background: var(--paper-2); color: var(--placeholder); box-shadow: none; }
.hs-cal-grid button.past { background: transparent; color: var(--line-soft); box-shadow: none; }
.hs-cal-grid button:active:not(:disabled) { transform: translateY(2px); }
.hs-school-side { flex: 1; display: flex; flex-direction: column; gap: 18px; padding-top: 74px; }

/* ---- Find your school ---------------------------------------------------------------------- */
.hs-schoolpick { display: flex; flex-direction: column; gap: 8px; }
.hs-picked { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; background: var(--green-soft); box-shadow: inset 0 0 0 3px var(--green);
  font: 600 20px/1.25 var(--display); }
.hs-picked > .hs-i { color: var(--green); font-size: 26px; }
.hs-picked small { font: 600 16px var(--text-font); color: var(--hs-muted); }
.hs-picked > span { flex: 1; min-width: 0; }
.hs-sp-res { display: flex; flex-direction: column; gap: 8px; }
.hs-sp-row { border: 0; text-align: left; cursor: pointer; padding: 10px 14px; border-radius: 16px; background: #fff; color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink); display: flex; flex-direction: column; gap: 2px; }
.hs-sp-row b { font: 600 20px/1.2 var(--display); } .hs-sp-row span { font: 600 15px var(--text-font); color: var(--hs-muted); }
.hs-sp-row:active { background: var(--green-soft); }
.hs-school-side .hs-search .hs-input { height: 72px; font-size: 24px; }
.hs-school-side .hs-search .hs-i { font-size: 28px; }
/* Settings (parent tier): the same pieces at app size. */
.hs-sc { display: grid; grid-template-columns: minmax(280px, 420px) minmax(0, 480px); gap: 32px; align-items: start; }
.hs-sc-col { display: flex; flex-direction: column; gap: 8px; }
.hs-sc .hs-label { font: 700 15px var(--text-font); }
.hs-sc .hs-search .hs-input { height: 48px; font-size: 16px; border-radius: 12px; padding-left: 44px; box-shadow: inset 0 0 0 2px var(--ink); }
.hs-sc .hs-search .hs-i { left: 14px; font-size: 20px; }
.hs-sc .hs-picked { font-size: 17px; padding: 10px 12px; border-radius: 14px; box-shadow: inset 0 0 0 2px var(--green); }
.hs-sc .hs-picked small { font-size: 13px; }
.hs-sc .hs-sp-row b { font-size: 16px; } .hs-sc .hs-sp-row span { font-size: 13px; }
.hs-sc .hs-msg { font-size: 15px; min-height: 0; }
.hs-sc .hs-cal { width: auto; }
.hs-sc .hs-cal-title { font-size: 22px; }
.hs-sc .hs-cal-head .hs-iconbtn { width: 48px; height: 44px; font-size: 20px; border-radius: 12px; box-shadow: inset 0 0 0 2px var(--ink), 0 3px 0 var(--ink); }
.hs-sc .hs-cal-grid > * { height: 44px; }
.hs-sc .hs-cal-grid button { font-size: 17px; border-radius: 12px; box-shadow: inset 0 0 0 2px var(--ink); }
.hs-sc .hs-cal-grid button.off { box-shadow: inset 0 0 0 2px var(--ink), 0 2px 0 var(--ink); }
.hs-sc .hs-cal-dow span { font-size: 14px; }
.hs-sc-feed { margin-top: 16px; }
.hs-sc-feed .hs-num { font-size: 16px; align-items: center; }
.hs-sc-feed .hs-num > span:first-child { width: 32px; height: 32px; font-size: 16px; }
@media (max-width: 899px) { .hs-sc { grid-template-columns: 1fr; } }

/* ---- Phones and narrow windows: the same pieces, stacked --------------------------------- */
.hs-wrap.narrow { position: static; min-height: 100vh; overflow: visible; }
.hs-wrap.narrow .hs-scene { position: fixed; }
.hs-wrap.narrow .hs-stage { position: relative; left: auto; top: auto; width: auto; height: auto; transform: none; min-height: 100vh;
  display: flex; flex-direction: column; padding: 16px 16px 32px; box-sizing: border-box; gap: 14px; }
.hs-wrap.narrow .hs-top { position: relative; left: auto; right: auto; top: auto; height: auto; }
.hs-wrap.narrow .hs-logo { font-size: 26px; gap: 10px; }
.hs-wrap.narrow .hs-logo .homey { transform: scale(.55); margin: -17px -17px -17px -17px; }
.hs-wrap.narrow .hs-track { display: none; }
.hs-wrap.narrow .hs-help { height: 44px; padding: 0 16px; font-size: 16px; }
.hs-wrap.narrow .hs-homey { position: relative; left: auto; top: auto; align-self: center; height: 150px; width: 150px; transform: none; }
.hs-wrap.narrow .hs-homey .homey { transform: scale(.357); transform-origin: 0 0; }
.hs-wrap.narrow .hs-panel { position: relative; left: auto; top: auto; width: auto; height: auto; min-height: 0; max-height: none; padding: 24px 20px; border-radius: 24px; gap: 18px;
  box-shadow: inset 0 0 0 3px var(--ink), 0 5px 0 var(--ink); }
.hs-wrap.narrow .hs-head h1 { font-size: 30px; }
.hs-wrap.narrow .hs-head p { font-size: 17px; }
.hs-wrap.narrow .hs-content { overflow: visible; }
.hs-wrap.narrow .hs-foot { flex-wrap: wrap; gap: 12px; }
.hs-wrap.narrow .hs-btn { height: 56px; padding: 0 20px; font-size: 22px; border-radius: 16px; gap: 8px;
  box-shadow: inset 0 0 0 3px var(--ink), 0 4px 0 var(--ink); }
.hs-wrap.narrow .hs-btn.primary { padding: 0 22px; }
.hs-wrap.narrow .hs-btn:disabled { box-shadow: inset 0 0 0 3px var(--disabled-ring); }
.hs-wrap.narrow .hs-link, .hs-wrap.narrow .hs-note, .hs-wrap.narrow .hs-msg { font-size: 16px; }
.hs-wrap.narrow .hs-label, .hs-wrap.narrow .hs-kicker { font-size: 15px; }
.hs-wrap.narrow .hs-input { height: 56px; font-size: 18px; border-radius: 14px; padding: 0 16px; }
.hs-wrap.narrow .hs-search .hs-input { padding-left: 52px; }
.hs-wrap.narrow .hs-search .hs-i { left: 18px; font-size: 22px; }
.hs-wrap.narrow .hs-iconbtn { width: 56px; height: 56px; font-size: 26px; border-radius: 14px; }
.hs-wrap.narrow .hs-grid2 { grid-template-columns: 1fr; }
.hs-wrap.narrow .hs-grid2 .span2 { grid-column: auto; }
.hs-wrap.narrow .hs-inrow { flex-wrap: wrap; }
.hs-wrap.narrow .hs-handy { flex-direction: column; gap: 12px; }
.hs-wrap.narrow .hs-handy > div { font-size: 20px; padding: 14px; gap: 14px; border-radius: 18px; box-shadow: inset 0 0 0 3px var(--ink); }
.hs-wrap.narrow .hs-sticker { width: 52px; height: 52px; font-size: 28px; }
.hs-wrap.narrow .hs-net { height: 60px; font-size: 20px; padding: 0 16px; border-radius: 16px; gap: 12px; }
.hs-wrap.narrow .hs-net .hs-i { font-size: 24px; }
.hs-wrap.narrow .hs-status { padding: 16px; gap: 14px; }
.hs-wrap.narrow .hs-status .disc { width: 52px; height: 52px; font-size: 28px; }
.hs-wrap.narrow .hs-status .t { font-size: 22px; }
.hs-wrap.narrow .hs-status .d { font-size: 15px; }
.hs-wrap.narrow .hs-choice { padding: 14px; gap: 12px; border-radius: 18px; box-shadow: inset 0 0 0 3px var(--ink), 0 4px 0 var(--ink); }
.hs-wrap.narrow .hs-choice.on { box-shadow: inset 0 0 0 3px var(--green), 0 4px 0 var(--green); }
.hs-wrap.narrow .hs-choice .t { font-size: 20px; }
.hs-wrap.narrow .hs-choice .d { font-size: 14px; }
.hs-wrap.narrow .hs-sticker.sm { width: 48px; height: 48px; font-size: 26px; }
.hs-wrap.narrow .hs-mark { width: 36px; height: 36px; font-size: 20px; box-shadow: inset 0 0 0 3px var(--ink); }
.hs-wrap.narrow .hs-mark.sq { border-radius: 10px; }
.hs-wrap.narrow .hs-kid { height: 56px; gap: 10px; box-shadow: inset 0 0 0 3px var(--ink); }
.hs-wrap.narrow .hs-av { width: 40px; height: 40px; font-size: 20px; box-shadow: inset 0 0 0 3px var(--ink); }
.hs-wrap.narrow .hs-kid .n { font-size: 22px; }
.hs-wrap.narrow .hs-kid .a { font-size: 14px; }
.hs-wrap.narrow .hs-kid .x { width: 40px; height: 40px; font-size: 18px; }
.hs-wrap.narrow .hs-qrrow { flex-direction: column; gap: 20px; align-items: stretch; }
.hs-wrap.narrow .hs-qr { width: 220px; height: 220px; align-self: center; }
.hs-wrap.narrow .hs-num { font-size: 17px; gap: 12px; }
.hs-wrap.narrow .hs-num > span:first-child { width: 36px; height: 36px; font-size: 18px; }
.hs-wrap.narrow .hs-tiles { grid-template-columns: 1fr; gap: 12px; }
.hs-wrap.narrow .hs-tiles > div { padding: 16px; border-radius: 18px; box-shadow: inset 0 0 0 3px var(--ink); }
.hs-wrap.narrow .hs-tiles .t { font-size: 20px; }
.hs-wrap.narrow .hs-tiles .d { font-size: 15px; }
.hs-wrap.narrow .hs-pin { flex-direction: column; gap: 20px; align-items: stretch; }
.hs-wrap.narrow .hs-pindots i { width: 24px; height: 24px; box-shadow: inset 0 0 0 4px var(--ink); }
.hs-wrap.narrow .hs-pad { grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hs-wrap.narrow .hs-pad button { height: 60px; font-size: 26px; border-radius: 16px; }
.hs-wrap.narrow .hs-school { flex-direction: column; gap: 16px; }
.hs-wrap.narrow .hs-cal { width: 100%; }
.hs-wrap.narrow .hs-cal-title { font-size: 20px; }
.hs-wrap.narrow .hs-cal-head .hs-iconbtn { width: 48px; height: 44px; font-size: 20px; border-radius: 12px; }
.hs-wrap.narrow .hs-cal-grid > * { height: 40px; }
.hs-wrap.narrow .hs-cal-grid button { font-size: 16px; border-radius: 10px; box-shadow: inset 0 0 0 2px var(--ink); }
.hs-wrap.narrow .hs-cal-dow span { font-size: 13px; }
.hs-wrap.narrow .hs-school-side { padding-top: 0; }
.hs-wrap.narrow .hs-donelist { grid-template-columns: 1fr; }
.hs-wrap.narrow .hs-donelist > div { font-size: 18px; padding: 12px 14px; }
.hs-wrap.narrow .hs-donelist .disc { width: 36px; height: 36px; font-size: 18px; }

/* ---- "Are you sure?" (hsConfirm in app.js): the design's modal ---------------------------- */
.hs-modal { position: fixed; inset: 0; z-index: 9990; background: rgba(43, 49, 56, .55); display: grid; place-items: center; padding: 20px; }
.hs-modal-card { width: min(460px, 100%); box-sizing: border-box; background: var(--paper); color: var(--ink); border-radius: 20px; padding: 24px;
  box-shadow: inset 0 0 0 2px var(--ink), 0 3px 0 var(--ink); font-family: var(--text-font); }
.hs-modal-card p { margin: 0 0 20px; font: 600 17px/1.45 var(--text-font); }
.hs-modal-row { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.hs-mbtn { height: 44px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--paper); color: var(--ink); font: 700 16px var(--text-font); cursor: pointer;
  box-shadow: inset 0 0 0 2px var(--ink), 0 3px 0 var(--ink); }
.hs-mbtn.danger { background: var(--tomato); color: #fff; }
.hs-mbtn.primary { background: var(--green); color: #fff; }
.hs-mbtn:active { transform: translateY(2px); box-shadow: inset 0 0 0 2px var(--ink), 0 1px 0 var(--ink); }
/* Bigger on the Board's touch screen. */
html.hb-board .hs-modal-card { width: min(720px, 100%); padding: 40px; border-radius: 32px; box-shadow: inset 0 0 0 4px var(--ink), 0 8px 0 var(--ink); }
html.hb-board .hs-modal-card p { font-size: 30px; margin-bottom: 32px; }
html.hb-board .hs-mbtn { height: 80px; padding: 0 36px; font: 600 32px var(--display); border-radius: 24px; box-shadow: inset 0 0 0 4px var(--ink), 0 6px 0 var(--ink); }

/* ---- On-screen keyboard (osk.js) in the design's look ----------------------------------- */
/* Sized for a finger standing at a kitchen counter: keys ~14 mm tall x ~23 mm wide on the
   G10's screen (kiosk studies: ~20 mm; Apple/Google minimum ~9 mm), 10 px gaps (a tap in a
   gap does nothing, never closes it). Every press shows at once: the key sinks and turns
   green, and letters pop up above the finger (Doherty). Enter is the one green key. */
#hb-osk.hs { min-height: 380px; box-sizing: border-box; padding: 18px 0; background: var(--paper-2); box-shadow: inset 0 4px 0 var(--ink); border: 0;
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
#hb-osk.hs.show { display: flex; }
#hb-osk.hs .osk-row { display: flex; gap: 10px; margin: 0; justify-content: center; }
#hb-osk.hs .osk-k { position: relative; flex: none; width: 128px; max-width: none; height: 76px; min-height: 0; border: 0; border-radius: 16px; background: #fff; color: var(--ink);
  font: 600 34px/1 var(--display); box-shadow: inset 0 0 0 3px var(--ink), 0 5px 0 var(--ink); padding: 0; touch-action: none; }
#hb-osk.hs .osk-k:active, #hb-osk.hs .osk-k.down { transform: translateY(4px); box-shadow: inset 0 0 0 3px var(--ink), 0 1px 0 var(--ink); background: var(--green-soft); }
#hb-osk.hs .osk-fn { width: 150px; background: var(--paper-2); font-size: 26px; }
#hb-osk.hs .osk-fn.on { background: var(--sun); color: var(--ink); }
#hb-osk.hs .osk-hide { width: 150px; font-size: 24px; }
#hb-osk.hs .osk-enter { width: 210px; background: var(--green); color: #fff; font-size: 28px; }
#hb-osk.hs .osk-enter.down, #hb-osk.hs .osk-enter:active { background: #2f6a3b; }
#hb-osk.hs .osk-space { width: 520px; }
#hb-osk.hs.num .osk-k { width: 170px; }
#hb-osk.hs.num .osk-enter { width: 170px; }
#hb-osk.hs .osk-extra .osk-k { width: 180px; font-size: 24px; }
/* Letters on the left, a ten-key pad on the right (osk.js PAD), on screens wide enough
   for both (the G10 is 1920 px: letters ~1370 px + 48 px gap + pad 404 px). */
#hb-osk.hs.has-pad { flex-direction: row; align-items: center; justify-content: center; gap: 36px; }
#hb-osk.hs .osk-main, #hb-osk.hs .osk-pad { display: flex; flex-direction: column; gap: 10px; }
/* With the pad, keys are a touch narrower (116 px, still ~21 mm) so both fit:
   bottom row 1318 px + 72 px + pad 368 px = 1758 px of the G10's 1920. */
#hb-osk.hs.has-pad .osk-k { width: 116px; }
#hb-osk.hs.has-pad .osk-fn, #hb-osk.hs.has-pad .osk-hide { width: 140px; }
#hb-osk.hs.has-pad .osk-enter { width: 190px; }
#hb-osk.hs.has-pad .osk-space { width: 440px; }
#hb-osk.hs.has-pad .osk-extra .osk-k { width: 180px; }
#hb-osk.hs .osk-pad { padding-left: 36px; box-shadow: inset 3px 0 0 var(--line-soft, #D9D4C7); }
#hb-osk.hs .osk-pad .osk-row { justify-content: flex-start; }
#hb-osk.hs.has-pad .osk-pad .osk-k { width: 116px; }
#hb-osk.hs.has-pad .osk-pad .osk-zero { width: 242px; }
@media (max-width: 1800px) { #hb-osk.hs .osk-pad { display: none; } #hb-osk.hs.has-pad { gap: 0; } }
/* The letter pops up above the finger, like a phone keyboard. */
#hb-osk.hs .osk-pop { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%); min-width: 96px; height: 96px; padding: 0 12px;
  display: grid; place-items: center; border-radius: 18px; background: #fff; color: var(--ink); font: 700 56px/1 var(--display);
  box-shadow: inset 0 0 0 3px var(--ink), 0 6px 0 var(--ink); pointer-events: none; z-index: 2; }

/* ---- Kids Wi-Fi box by cable (mountKidsBoxCable) --------------------------------- */
ol.hs-steps { margin: 0 0 18px; padding: 0; list-style: none; counter-reset: s; gap: 14px; }
ol.hs-steps li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; font: 600 24px/1.4 var(--text-font); }
ol.hs-steps li::before { content: counter(s); width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--sun);
  display: flex; align-items: center; justify-content: center; font: 700 24px var(--display); }
.hs-wifi-card { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.hs-wifi-card > div { flex: 1 1 240px; background: #FFF1C7; border-radius: 22px; padding: 16px 20px; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.hs-wifi-card .hs-i { grid-row: span 2; font-size: 34px; }
.hs-wifi-card .lbl { font: 600 16px var(--text-font); color: var(--hs-muted); }
.hs-wifi-card b { font: 700 30px/1.2 var(--display); letter-spacing: .01em; word-break: break-all; }
.card ol.hs-steps li { font-size: 16px; } .card ol.hs-steps li::before { width: 30px; height: 30px; font-size: 16px; }
.card .hs-wifi-card b { font-size: 22px; } .card .hs-msg { font-size: 16px; }

/* ---- Smart home: Nintendo Switch, whose Switch is it (loadSwitches) --------------- */
.sw-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 0; border-bottom: 1.5px solid #EFEADD; }
.sw-row:last-of-type { border-bottom: 0; }
.sw-name { flex: 1 1 160px; font-size: 17px; }
.sw-name small.sw-on { display: block; font-size: 13px; color: var(--hs-muted); font-weight: 600; }
.sw-name small.sw-on.off { color: var(--ink); background: var(--sun-soft, #FFF1C9); display: inline-block; padding: 2px 8px; border-radius: 999px; margin-top: 4px; }
.sw-row .hint { flex: 1 1 100%; }
.sw-health { margin-top: 14px; }
.sw-reconnect { padding: 12px 14px; margin-bottom: 8px; border-radius: 14px; background: var(--sun-soft, #FFF1C9); }
.sw-kids { display: flex; flex-wrap: wrap; gap: 8px; }
.sw-kid { min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 0; background: #F6F1E4; color: var(--ink);
  font: 600 16px var(--text-font); cursor: pointer; box-shadow: inset 0 0 0 2px transparent; }
.sw-kid.on { background: var(--kc); color: #fff; box-shadow: inset 0 0 0 2px rgba(43,49,56,.25); }
.hs-content .sw-name { font-size: 24px; } .hs-content .sw-kid { font-size: 22px; min-height: 56px; padding: 10px 22px; }
.hs-content ol.hs-steps .hs-btn { display: inline-flex; vertical-align: middle; margin: 0 4px; }

/* Board grown-up mode: "going back to the kids' board" heads-up (boardSessionChrome) */
.hs-idlewarn { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 9999; border: 0; cursor: pointer;
  display: flex; gap: 12px; align-items: center; padding: 16px 26px; border-radius: 999px; background: var(--ink); color: #FFFDF6;
  font: 600 20px var(--text-font); box-shadow: 0 8px 24px rgba(43,49,56,.25); }
.hs-idlewarn b { color: var(--sun); }

/* Version line on the Welcome screen (productLine() in app.js), bottom of the stage. */
.hs-ver { position: absolute; left: 40px; right: 40px; bottom: 18px; z-index: 3; text-align: center;
  font: 600 20px/1.2 var(--body, 'Figtree', system-ui, sans-serif); color: rgba(43,49,56,.78); letter-spacing: .01em; }

/* ---- Backups: Recovery Kit, restore, Care -------------------------------------- */
.hs-kitcode { font: 700 60px/1 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .06em; text-align: center; padding: 26px 20px;
  border-radius: 28px; background: #fff; box-shadow: inset 0 0 0 4px var(--ink); color: var(--ink); white-space: nowrap; }
.hs-kit { display: flex; flex-direction: column; gap: 22px; }
.hs-kit .hs-qr { width: 200px; height: 200px; padding: 14px; }
.hs-kit .hs-steps { gap: 12px; }
.hs-kit .hs-num { font-size: 25px; }
.hs-input.code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; text-align: center; }
.hs-choices.two { flex-direction: row; }
.hs-choices.two .hs-choice { flex: 1 1 0; }
.hs-choices.two .hs-choice .t { font-size: 30px; }
.hs-choices.two .hs-choice .d { font-size: 21px; }
.hs-wrap.narrow .hs-kitcode { font-size: 24px; padding: 16px 10px; white-space: normal; word-break: break-all; }
.hs-wrap.narrow .hs-kit .hs-num { font-size: 17px; }
.hs-wrap.narrow .hs-choices.two { flex-direction: column; }
.hs-tiles.compact > div { padding: 18px 22px; gap: 8px; border-radius: 24px; }
.hs-tiles.compact .t { font-size: 27px; }
.hs-tiles.compact .d { font-size: 20px; }
.hs-tiles.compact .hs-sticker.sm { width: 52px; height: 52px; font-size: 26px; }
.hs-choices.two .hs-choice { padding: 16px 20px; }
.hs-choices.two .hs-sticker.sm { width: 64px; height: 64px; font-size: 32px; }
.hs-kit { gap: 16px; }
.hs-kitcode { font-size: 52px; padding: 18px 16px; }
.hs-kit .hs-qr { width: 170px; height: 170px; padding: 10px; }
.hs-kit .hs-choice { padding: 14px 20px; }
.hs-kit .hs-choice .t { font-size: 28px; }
.hs-kit .hs-choice .d { font-size: 20px; }
.hs-kit .hs-choice .hs-sticker.sm { width: 60px; height: 60px; font-size: 30px; }
.hs-kit .hs-choice .hs-mark { width: 48px; height: 48px; font-size: 28px; }
