/* HelioStep final designs. Tokens and hs- components come from the HelioStep design system; ui- (parent app), t- (teacher) and web- (website) classes are screen layout built only from those tokens. */
:root,[data-theme="night"]{--door:#1E3A3F;--door-deep:#14292D;--on-door:#F2EEE6;--on-door-muted:#CBD5D5;--pill:#17302F;--paper:#F4EEE2;--paper-bright:#FBF7EE;--on-paper:#1C2226;--on-paper-muted:#4A5357;--logo-orange:#F7941D;--ink:#172126;--dawn-lit:var(--logo-orange);--dawn-shade:#DE7A12;--dawn-pebble:#9C5410;--dawn-pebble-lit:#B4661C;--moon:#C3CBD0;--sunflower:#EBA524;--sunflower-rim:#C98912;--sky:#6FA5DA;--sky-rim:#4E86BF;--pebble:#9AA5AC;--pebble-rim:#7C878E;--glyph-yes:rgba(43,28,0,0.8);--glyph-mostly:rgba(10,32,58,0.8);--glyph-not-today:rgba(22,30,34,0.8);--amber:#EBA524;--on-amber:#172126;--focus-ring:#F5B841;--focus-ring-paper:#172126;--glass:rgba(20,32,36,0.42);--tab-on:rgba(255,255,255,0.14);--tab-on-icon:#F5B841;--face-smile:#EFAD2D;--face-straight:#6FA5DA;--face-frown:#A3AEB5;--teacher-bg:#F3F5F6;--teacher-card:#FFFFFF;--teacher-ink:#172126;--teacher-secondary:#3E4A50;--teacher-border:#808C93;--teacher-header:#F4EEE2;--teacher-press:#FFF4DA;--on-now:#2A1B00;--shadow-paper:0 1px 1px rgba(0,0,0,0.3), 2px 5px 8px rgba(0,0,0,0.24), 6px 16px 26px rgba(0,0,0,0.22);--drop-1:0 1px 1px rgba(0,0,0,0.3);--drop-2:2px 5px 8px rgba(0,0,0,0.24);--drop-3:6px 16px 26px rgba(0,0,0,0.22);--shadow-magnet:1px 2px 1.5px rgba(0,0,0,0.42), 4px 8px 11px rgba(0,0,0,0.28);--shadow-glass:0 12px 30px rgba(0,0,0,0.42);--shadow-button:0 6px 14px rgba(0,0,0,0.3);--shadow-teacher:0 1px 2px rgba(23,33,38,0.08), 0 8px 24px rgba(23,33,38,0.08);}
[data-theme="day"]{--door:#E9DDC7;--door-deep:#14292D;--on-door:#2A2117;--on-door-muted:#5A4B39;--pill:#FFFDF8;--paper:#FCF8F0;--paper-bright:#FFFFFF;--on-paper:#1C2226;--on-paper-muted:#4A5357;--logo-orange:#F7941D;--ink:#172126;--dawn-lit:var(--logo-orange);--dawn-shade:#DE7A12;--dawn-pebble:#9C5410;--dawn-pebble-lit:#B4661C;--moon:#C3CBD0;--sunflower:#EBA524;--sunflower-rim:#C98912;--sky:#6FA5DA;--sky-rim:#4E86BF;--pebble:#9AA5AC;--pebble-rim:#7C878E;--glyph-yes:rgba(43,28,0,0.8);--glyph-mostly:rgba(10,32,58,0.8);--glyph-not-today:rgba(22,30,34,0.8);--amber:#EBA524;--on-amber:#172126;--focus-ring:#9A6408;--focus-ring-paper:#172126;--glass:rgba(255,252,244,0.55);--tab-on:rgba(84,58,24,0.09);--tab-on-icon:#9A6408;--face-smile:#EFAD2D;--face-straight:#6FA5DA;--face-frown:#A3AEB5;--teacher-bg:#F3F5F6;--teacher-card:#FFFFFF;--teacher-ink:#172126;--teacher-secondary:#3E4A50;--teacher-border:#808C93;--teacher-header:#F4EEE2;--teacher-press:#FFF4DA;--on-now:#2A1B00;--shadow-paper:0 1px 1px rgba(84,58,24,0.22), -2px 5px 8px rgba(84,58,24,0.16), -6px 16px 26px rgba(84,58,24,0.14);--drop-1:0 1px 1px rgba(84,58,24,0.22);--drop-2:-2px 5px 8px rgba(84,58,24,0.16);--drop-3:-6px 16px 26px rgba(84,58,24,0.14);--shadow-magnet:-1px 2px 1.5px rgba(84,58,24,0.32), -4px 8px 11px rgba(84,58,24,0.2);--shadow-glass:0 10px 26px rgba(84,58,24,0.2);--shadow-button:0 6px 14px rgba(84,58,24,0.22);--shadow-teacher:0 1px 2px rgba(23,33,38,0.08), 0 8px 24px rgba(23,33,38,0.08);}
:root{--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:22px;--space-6:24px;--space-7:32px;--space-8:48px;--radius-paper:2px;--radius-cell:10px;--radius-card:22px;--radius-face:26px;--radius-pill:28px;--radius-tabbar:34px;--radius-device:44px;--press:120ms;--note-lift:180ms;--magnet-drop:560ms;--sheet:350ms;--dawn-hop:933ms;--crossfade:200ms;--ease-press:cubic-bezier(0.2, 0, 0, 1);--ease-out-soft:cubic-bezier(0.22, 1, 0.36, 1);--ease-in-fall:cubic-bezier(0.4, 0, 1, 1);--font-display:"Gabarito", "Atkinson Hyperlegible Next", system-ui, sans-serif;--font-body:"Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;}
/* HelioStep components. Every colour, shadow and radius comes from tokens.css. */
.hs, .hs * { box-sizing: border-box; }
.hs { font-family: var(--font-body); color: var(--on-door); -webkit-font-smoothing: antialiased; }
.hs .g { font-family: var(--font-display); }

/* ---------- Enamel door: the ground of the parent app ---------- */
.hs-door { position: relative; background-color: var(--door); color: var(--on-door); overflow: hidden; isolation: isolate; }
.hs-door::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url(/assets/textures/enamel-ripple.webp) 0 0 / 512px; mix-blend-mode: soft-light; }
.hs-door::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url(/assets/textures/enamel-grain.png) 0 0 / 256px; mix-blend-mode: overlay; opacity: .45; }
[data-theme="day"] .hs-door::before { opacity: .8; }
[data-theme="day"] .hs-door::after { mix-blend-mode: multiply; opacity: .12; }
/* the lamp: night light falls from the upper left; in day the window is upper right */
.hs-lamp { position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(120% 70% at 10% -4%, rgba(255,184,100,.30), rgba(255,184,100,.10) 34%, rgba(255,184,100,0) 62%); }
[data-theme="day"] .hs-lamp { background: radial-gradient(110% 70% at 100% -8%, rgba(255,206,140,.30), rgba(255,206,140,0) 60%); }

/* ---------- Paper ---------- */
.hs-paper { position: relative; background: var(--paper); color: var(--on-paper); box-shadow: var(--shadow-paper); }
.hs-paper::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: url(/assets/textures/paper-fibres.webp) 0 0 / 384px; mix-blend-mode: multiply; }
.hs-paper::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,196,120,.14), rgba(255,196,120,0) 58%); }
.hs-paper > * { position: relative; z-index: 1; }
.hs-paper.bright { background: var(--paper-bright); }
/* torn top edge, where the note came off the pad */
.hs-tear { clip-path: polygon(0% 1px, 4% 2px, 8% .5px, 12% 3px, 16% 2px, 21% 2.3px, 26% 1px, 30% 2.6px, 35% 1.3px, 40% 3px, 44% .6px, 49% 1.4px, 54% 2.4px, 59% 2.9px, 63% 2.4px, 68% 2.6px, 72% 1px, 77% .4px, 81% 1.2px, 86% 2.5px, 90% 1.6px, 95% 1.1px, 100% 2px, 100% 100%, 0% 100%); }
/* a clipped element loses its box-shadow; wrap it in .hs-lift to keep the shadow */
.hs-lift { filter: drop-shadow(var(--drop-1)) drop-shadow(var(--drop-2)) drop-shadow(var(--drop-3)); }
.hs-lift > .hs-paper { box-shadow: none; }

/* ---------- Goal note ---------- */
.hs-note { display: flex; align-items: center; gap: var(--space-3); min-height: 78px; padding: var(--space-3) var(--space-3) var(--space-3) var(--space-5); }
.hs-note h3 { margin: 0; font-family: var(--font-display); font-size: 23px; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
.hs-note p { margin: 3px 0 0; font-size: 16px; font-weight: 600; color: var(--on-paper-muted); }
.hs-note .grow { flex: 1; min-width: 0; }
.hs-slot { display: block; flex: none; width: 56px; height: 56px; border-radius: 50%; border: 2.5px dashed var(--on-paper-muted); opacity: .7; }

/* ---------- Magnets: flat painted face, a rim, no gloss ---------- */
.hs-magnet { position: relative; display: inline-block; flex: none; border-radius: 50%; background: var(--mg-face);
  box-shadow: inset 1px 1px 0 0 rgba(255,255,255,.5), inset -1px -1px 0 0 rgba(0,0,0,.32), inset 0 0 0 var(--mg-rim-w, 5px) var(--mg-rim),
    0 0 0 .5px rgba(0,0,0,.42), var(--shadow-magnet); }
.hs-magnet svg { position: absolute; inset: 0; margin: auto; width: 48%; height: 48%; }
.hs-magnet.yes { --mg-face: var(--sunflower); --mg-rim: var(--sunflower-rim); }
.hs-magnet.mostly { --mg-face: var(--sky); --mg-rim: var(--sky-rim); }
.hs-magnet.not-today { --mg-face: var(--pebble); --mg-rim: var(--pebble-rim); }
.hs-magnet-label { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); font-size: 17px; font-weight: 700; }

/* ---------- Buttons ---------- */
.hs-btn { appearance: none; border: 0; font-family: var(--font-body); font-size: 18px; font-weight: 700; height: 56px; padding: 0 var(--space-6);
  border-radius: var(--radius-pill); display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); cursor: pointer;
  transition: transform var(--press) var(--ease-press); }
.hs-btn:active { transform: scale(.97); }
.hs-btn:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
.hs-btn.primary { background: var(--amber); color: var(--on-amber); box-shadow: var(--shadow-button); }
.hs-btn.secondary { background: var(--paper); color: var(--on-paper); }
.hs-btn.text { background: transparent; color: var(--on-door); height: 44px; padding: 0 var(--space-1); text-decoration: underline; text-underline-offset: 3px; font-size: 16px; }
.hs-btn.teacher { background: var(--teacher-ink); color: var(--teacher-card); font-family: var(--font-display); }

/* ---------- Glass tab bar (glass is for floating controls only, never content) ---------- */
.hs-tabbar { display: flex; padding: 6px; height: 68px; border-radius: var(--radius-tabbar); background: var(--glass);
  backdrop-filter: blur(22px) saturate(170%); -webkit-backdrop-filter: blur(22px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 0 0 .5px rgba(255,255,255,.2), var(--shadow-glass); }
.hs-tab { flex: 1; border-radius: 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--on-door); font-size: 13px; font-weight: 600; text-decoration: none; opacity: .9; }
.hs-tab.on { background: var(--tab-on); font-weight: 700; opacity: 1; }
.hs-tab.on svg { color: var(--tab-on-icon); }

/* ---------- The teacher's card, on the door ---------- */
.hs-card { display: flex; align-items: center; gap: var(--space-3); padding: 22px 18px 16px; }
.hs-card .from { font-size: 14px; font-weight: 600; color: var(--on-paper-muted); }
.hs-card .score { font-family: var(--font-display); font-size: 26px; font-weight: 800; margin-top: 2px; }
.hs-faces { display: flex; gap: 5px; margin-top: var(--space-2); }
.hs-face { position: relative; display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--face-smile); }
.hs-face.straight { background: var(--face-straight); }
.hs-face.frown { background: var(--face-frown); }
.hs-face::before, .hs-face::after { content: ''; position: absolute; top: 6px; width: 2.6px; height: 2.6px; border-radius: 50%; background: rgba(20,20,20,.8); }
.hs-face::before { left: 5px; } .hs-face::after { right: 5px; }
.hs-face i { position: absolute; left: 5px; right: 5px; top: 10px; height: 3px; border: solid rgba(20,20,20,.8); border-width: 0 0 1.8px; border-radius: 0 0 6px 6px; }
.hs-face.straight i { border-radius: 0; }
.hs-face.frown i { top: 12px; border-width: 1.8px 0 0; border-radius: 6px 6px 0 0; }

/* ---------- Teacher surfaces (light only, plain and quick) ---------- */
.hs-teacher { background: var(--teacher-bg); color: var(--teacher-ink); font-family: var(--font-body); }
.hs-facebtn { width: 96px; height: 96px; border-radius: var(--radius-face); border: 1.5px solid var(--teacher-border); background: var(--teacher-card);
  display: flex; align-items: center; justify-content: center; transition: transform var(--press) var(--ease-press), background-color var(--press) var(--ease-press); cursor: pointer; }
.hs-facebtn:active { transform: scale(.93); background: var(--teacher-press); }
.hs-facebtn .hs-face { width: 54px; height: 54px; }
.hs-facebtn .hs-face::before, .hs-facebtn .hs-face::after { top: 17px; width: 7px; height: 7px; }
.hs-facebtn .hs-face::before { left: 14px; } .hs-facebtn .hs-face::after { right: 14px; }
.hs-facebtn .hs-face i { left: 15px; right: 15px; top: 29px; height: 9px; border-width: 0 0 4px; border-radius: 0 0 14px 14px; }
.hs-facebtn .hs-face.straight i { border-radius: 0; top: 32px; }
.hs-facebtn .hs-face.frown i { top: 34px; border-width: 4px 0 0; border-radius: 14px 14px 0 0; }
.hs-now { height: 28px; padding: 0 11px; border-radius: 14px; background: var(--amber); color: var(--on-now); font-size: 14px; font-weight: 800; display: inline-flex; align-items: center; }

/* ---------- Dawn ---------- */
.hs-dawn { display: block; }
@media (prefers-reduced-motion: reduce) { .hs-btn, .hs-facebtn { transition: none; } }

/* ================= Parent app (the fridge door) ================= */
.ui-screen { position: relative; width: 390px; height: 844px; overflow: hidden; box-sizing: border-box; }
.ui-screen.long { height: auto; min-height: 844px; }
.ui-body { position: relative; z-index: 1; box-sizing: border-box; padding: 48px 22px 0; display: flex; flex-direction: column; }
.ui-body.tabbed { padding-bottom: 116px; }
.ui-top { display: flex; justify-content: space-between; align-items: center; min-height: 44px; gap: 12px; }
.ui-date { font-size: 16px; font-weight: 600; color: var(--on-door-muted); }
.ui-pill { appearance: none; border: 0; min-height: 44px; padding: 0 14px 0 16px; border-radius: 22px; background: var(--pill); color: var(--on-door);
  font: 700 16px/1 var(--font-body); display: inline-flex; align-items: center; gap: 6px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
[data-theme="day"] .ui-pill { box-shadow: inset 0 0 0 1px rgba(84,58,24,.14); }
.ui-icon-btn { appearance: none; border: 0; width: 44px; height: 44px; border-radius: 22px; background: var(--pill); color: var(--on-door);
  display: inline-flex; align-items: center; justify-content: center; flex: none; padding: 0; }
.ui-title { margin: 6px 0 0; font: 800 40px/1.2 var(--font-display); letter-spacing: -.02em; color: var(--on-door); }
.ui-title.sm { font-size: 30px; }
.ui-lead { margin: 10px 0 0; font-size: 17px; line-height: 1.45; color: var(--on-door-muted); }
.ui-step { font-size: 16px; font-weight: 600; color: var(--on-door-muted); }
.ui-h2 { margin: 0; font: 800 22px/1.25 var(--font-display); color: var(--on-door); }
.ui-label { font-size: 16px; font-weight: 700; color: var(--on-door); }
.ui-hint { margin: 0; font-size: 16px; line-height: 1.4; color: var(--on-door-muted); }
.ui-stack { display: flex; flex-direction: column; }
.ui-row { display: flex; align-items: center; }
.ui-gap-8 { gap: 8px; } .ui-gap-12 { gap: 12px; } .ui-gap-16 { gap: 16px; } .ui-gap-20 { gap: 20px; } .ui-gap-24 { gap: 24px; }
.ui-grow { flex: 1; min-width: 0; }
.ui-foot { position: absolute; left: 22px; right: 22px; bottom: 34px; z-index: 2; display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.ui-foot .hs-btn { width: 100%; }
.hs-btn.text.center { align-self: center; }
.hs-btn.on-paper { color: var(--on-paper); }
.ui-link { color: var(--on-door); font-size: 16px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px;
  min-height: 44px; min-width: 44px; padding: 0 2px; justify-content: center; display: inline-flex; align-items: center; }
.ui-link.paper { color: var(--on-paper); }

/* fields on the door: paper inputs, labels on the door */
.ui-field { display: flex; flex-direction: column; gap: 6px; }
.ui-field > span { font-size: 16px; font-weight: 700; color: var(--on-door); }
.ui-field > small { font-size: 14px; font-weight: 600; color: var(--on-door-muted); }
.ui-input { appearance: none; box-sizing: border-box; width: 100%; height: 56px; border: 0; border-radius: 12px; padding: 0 16px;
  background: var(--paper-bright); color: var(--on-paper); font: 400 17px/1 var(--font-body); box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.ui-input.area { height: 112px; padding: 14px 16px; line-height: 1.4; resize: none; }
.ui-inwrap { position: relative; }
.ui-inwrap .ui-input { padding-right: 76px; }
.ui-inwrap button { position: absolute; right: 6px; top: 6px; height: 44px; min-width: 64px; border: 0; border-radius: 8px; background: var(--paper-bright); color: var(--on-paper);
  font: 700 16px/1 var(--font-body); text-decoration: underline; text-underline-offset: 3px; }
.ui-check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; font-size: 16px; line-height: 1.4; color: var(--on-door); cursor: pointer; }
.ui-check input { appearance: none; flex: none; width: 28px; height: 28px; margin: 8px 0 0; border-radius: 8px; background: var(--paper-bright);
  box-shadow: inset 0 0 0 2px var(--on-paper-muted); display: grid; place-content: center; }
.ui-check input:checked { background: var(--amber); box-shadow: inset 0 0 0 2px var(--sunflower-rim); }
.ui-check input:checked::after { content: ''; width: 12px; height: 7px; border: solid var(--on-amber); border-width: 0 0 3px 3px; transform: translateY(-2px) rotate(-45deg); }
.ui-check span { padding-top: 10px; }
.ui-check.paper { color: var(--on-paper); }
.ui-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ui-chip { appearance: none; border: 0; min-height: 44px; padding: 6px 16px; border-radius: 22px; font: 600 16px/1.2 var(--font-body); text-align: left;
  background: var(--pill); color: var(--on-door); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.22); display: inline-flex; align-items: center; gap: 6px; }
.ui-chip.on { background: var(--paper-bright); color: var(--on-paper); box-shadow: inset 0 0 0 2px var(--amber); font-weight: 700; }
[data-theme="day"] .ui-chip { box-shadow: inset 0 0 0 1.5px rgba(84,58,24,.3); }
.ui-chip.paper { background: transparent; color: var(--on-paper); box-shadow: inset 0 0 0 1.5px var(--on-paper-muted); }
.ui-chip.paper.on { background: #FFF1CF; box-shadow: inset 0 0 0 2px var(--sunflower-rim); }
.ui-seg { display: flex; padding: 4px; gap: 4px; border-radius: 26px; background: var(--pill); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.ui-seg button { appearance: none; border: 0; flex: 1; min-height: 44px; border-radius: 22px; background: transparent; color: var(--on-door);
  font: 600 16px/1 var(--font-body); }
.ui-seg button.on { background: var(--paper-bright); color: var(--on-paper); font-weight: 700; }

/* sheets of paper used as panels */
.ui-sheet { padding: 22px 18px 18px; }
.ui-sheet h3 { margin: 0; font: 800 23px/1.2 var(--font-display); letter-spacing: -.01em; color: var(--on-paper); }
.ui-sheet p { margin: 0; font-size: 17px; line-height: 1.45; color: var(--on-paper); }
.ui-sheet .muted { color: var(--on-paper-muted); font-size: 16px; }
.ui-sheet .cap { font-size: 14px; font-weight: 600; color: var(--on-paper-muted); }
.ui-list { display: flex; flex-direction: column; }
.ui-list > a, .ui-list > button, .ui-list > div.item { appearance: none; border: 0; background: transparent; text-align: left; min-height: 56px; display: flex;
  align-items: center; gap: 14px; padding: 6px 0; color: var(--on-paper); font: 600 17px/1.3 var(--font-body); text-decoration: none; }
.ui-list > * + * { box-shadow: inset 0 1px 0 rgba(28,34,38,.12); }
.ui-list .sub { display: block; font-size: 15px; font-weight: 600; color: var(--on-paper-muted); margin-top: 2px; }
.ui-list.door > a, .ui-list.door > button, .ui-list.door > div.item { color: var(--on-door); }
.ui-list.door .sub { color: var(--on-door-muted); }
.ui-list.door > * + * { box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
[data-theme="day"] .ui-list.door > * + * { box-shadow: inset 0 1px 0 rgba(84,58,24,.14); }

/* the dashed empty spot where the teacher's card will land */
.ui-empty { border: 2.5px dashed rgba(242,238,230,.42); border-radius: 6px; padding: 14px 16px 16px; display: flex; align-items: center; gap: 10px; }
[data-theme="day"] .ui-empty { border-color: rgba(90,75,57,.5); }
.ui-empty p { margin: 0; font-size: 17px; line-height: 1.4; color: var(--on-door); }
.ui-empty b { display: block; font: 800 20px/1.25 var(--font-display); margin-bottom: 4px; }

/* the magnet tray under the active note */
.ui-tray { display: flex; justify-content: center; gap: 26px; }
.ui-tray button { appearance: none; border: 0; background: transparent; padding: 0; min-width: 76px; color: var(--on-door); display: flex; flex-direction: column;
  align-items: center; gap: 8px; font: 700 17px/1 var(--font-body); }
.ui-prompt { margin: 0; text-align: center; font: 700 18px/1.3 var(--font-body); color: var(--on-door); }
.hs-note.active { outline: 3px solid var(--amber); outline-offset: 3px; }
.hs-note button.slotbtn { appearance: none; border: 0; background: transparent; padding: 0; width: 56px; height: 56px; flex: none; }

/* compact teacher's card on Today */
.ui-cardlink { display: block; text-decoration: none; color: inherit; }

/* sticky note (A month ago today) */
.ui-sticky { background: #F6E3A6; color: #2B2412; padding: 16px 16px 18px; box-shadow: var(--shadow-paper); transform: rotate(-.8deg); }
.ui-sticky .cap { font-size: 14px; font-weight: 700; color: #5A4A1E; }
.ui-sticky p { margin: 6px 0 0; font-size: 17px; line-height: 1.4; }

/* chat */
.ui-thread { display: flex; flex-direction: column; gap: 10px; }
.ui-day { align-self: center; font-size: 14px; font-weight: 600; color: var(--on-door-muted); padding: 4px 0; }
.ui-msg { max-width: 82%; padding: 12px 14px; border-radius: 18px; font-size: 17px; line-height: 1.4; }
.ui-msg.them { align-self: flex-start; background: var(--pill); color: var(--on-door); border-bottom-left-radius: 6px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.ui-msg.me { align-self: flex-end; background: var(--paper-bright); color: var(--on-paper); border-bottom-right-radius: 6px; }
.ui-msg time { display: block; margin-top: 4px; font-size: 14px; font-weight: 600; opacity: .85; }
.ui-composer { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 12px 16px 30px; display: flex; gap: 10px; align-items: flex-end;
  background: var(--door); box-shadow: 0 -1px 0 rgba(255,255,255,.1); }
.ui-composer .ui-input { height: 52px; border-radius: 26px; }
.ui-send { appearance: none; border: 0; width: 52px; height: 52px; border-radius: 26px; background: var(--amber); color: var(--on-amber); flex: none;
  display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-button); }

/* bottom sheet over a dimmed screen */
.ui-scrim { position: absolute; inset: 0; z-index: 5; background: rgba(6,14,16,.62); }
.ui-bsheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; background: var(--paper); color: var(--on-paper); border-radius: 22px 22px 0 0;
  padding: 10px 22px 34px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 -10px 30px rgba(0,0,0,.3); }
.ui-grab { width: 44px; height: 5px; border-radius: 3px; background: rgba(28,34,38,.25); align-self: center; margin-bottom: 4px; }

/* charts */
.ui-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; font-weight: 600; color: var(--on-paper-muted); }
.ui-legend span { display: inline-flex; align-items: center; gap: 8px; }
.ui-key-line { width: 22px; height: 0; border-top: 3px solid var(--on-paper); border-radius: 2px; }
.ui-key-band { width: 22px; height: 12px; background: rgba(111,165,218,.38); border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(78,134,191,.6); }
.ui-key-flag { width: 18px; height: 18px; border-radius: 9px; background: var(--on-paper); color: var(--paper-bright); font-size: 12px; font-weight: 800;
  display: inline-grid; place-content: center; }
.ui-stat { font: 800 26px/1.2 var(--font-display); color: var(--on-paper); }
.ui-trend { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; color: var(--on-paper); }
.ui-tag { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 14px; font-size: 14px; font-weight: 700;
  background: rgba(28,34,38,.08); color: var(--on-paper); }
.ui-tag.plus { background: rgba(28,34,38,.08); color: inherit; }
/* Oct 15: one style for every inline info and error message (ui-banner, ui-inline, ui-alert, ui-locked): a soft rounded surface like
   the panels, a hairline neutral edge, a neutral icon and text in the normal ink. No side stripe, no red, no yellow. */
.ui-banner, .ui-inline, .ui-alert, .ui-locked { --msg-bg: rgba(255,255,255,.07); --msg-line: rgba(255,255,255,.16); --msg-ink: var(--on-door); --msg-icon: var(--on-door-muted);
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 0; background: var(--msg-bg); color: var(--msg-ink);
  box-shadow: inset 0 0 0 1px var(--msg-line); font-size: 16px; line-height: 1.4; font-weight: 400; }
.ui-banner > svg, .ui-inline > svg, .ui-alert > svg, .ui-locked > svg, .ui-banner > span:first-child svg, .ui-inline > span:first-child svg { color: var(--msg-icon); flex: none; }
[data-theme="day"] .ui-banner, [data-theme="day"] .ui-inline, [data-theme="day"] .ui-alert, [data-theme="day"] .ui-locked {
  --msg-bg: rgba(255,255,255,.55); --msg-line: rgba(84,58,24,.16); --msg-ink: var(--on-door); --msg-icon: var(--on-door-muted); }
.t-screen .ui-banner, .t-screen .ui-inline, .t-screen .ui-alert, .wt .ui-inline, .wt .ui-alert {
  --msg-bg: var(--teacher-card); --msg-line: var(--t-line); --msg-ink: var(--teacher-ink); --msg-icon: var(--teacher-secondary); }
.ui-bsheet .ui-banner, .ui-bsheet .ui-inline, .ui-bsheet .ui-alert, .hs-paper .ui-inline, .hs-paper .ui-banner, .web-band.paper .ui-inline, .web-band.light .ui-inline {
  --msg-bg: rgba(28,34,38,.045); --msg-line: rgba(28,34,38,.14); --msg-ink: #1C2226; --msg-icon: #4A5357; }

/* subject rows on the parent's copy of the teacher's card */
.ui-subj { display: flex; align-items: center; gap: 12px; min-height: 52px; }
.ui-subj + .ui-subj { box-shadow: inset 0 1px 0 rgba(28,34,38,.1); }
.ui-subj .nm { flex: 1; font-size: 17px; font-weight: 600; color: var(--on-paper); }
.ui-subj .lv { font-size: 15px; font-weight: 600; color: var(--on-paper-muted); min-width: 64px; text-align: right; }
.hs-face.lg { width: 30px; height: 30px; }
.hs-face.lg::before, .hs-face.lg::after { top: 10px; width: 4px; height: 4px; }
.hs-face.lg::before { left: 8px; } .hs-face.lg::after { right: 8px; }
.hs-face.lg i { left: 8px; right: 8px; top: 17px; height: 5px; border-width: 0 0 2.5px; border-radius: 0 0 9px 9px; }
.hs-face.lg.straight i { border-radius: 0; top: 19px; }
.hs-face.lg.frown i { top: 20px; border-width: 2.5px 0 0; border-radius: 9px 9px 0 0; }

/* plan options on the paywall */
.ui-plan { appearance: none; border: 0; width: 100%; text-align: left; min-height: 72px; padding: 12px 16px; border-radius: 16px; display: flex; align-items: center; gap: 14px;
  background: var(--paper-bright); color: var(--on-paper); box-shadow: inset 0 0 0 1.5px rgba(28,34,38,.25); font-family: var(--font-body); }
.ui-plan.on { box-shadow: inset 0 0 0 3px var(--amber); }
.ui-plan .radio { width: 24px; height: 24px; border-radius: 12px; box-shadow: inset 0 0 0 2px var(--on-paper-muted); flex: none; }
.ui-plan.on .radio { box-shadow: inset 0 0 0 7px var(--on-paper); }
.ui-plan b { font-size: 18px; } .ui-plan small { display: block; font-size: 15px; font-weight: 600; color: var(--on-paper-muted); margin-top: 2px; }

/* ================= Teacher (always light) ================= */
.t-screen { position: relative; width: 390px; height: 844px; overflow: hidden; box-sizing: border-box; background: var(--teacher-bg); color: var(--teacher-ink);
  font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
.t-screen.long { height: auto; min-height: 844px; }
.t-screen *, .t-screen *::before, .t-screen *::after { box-sizing: border-box; }
.t-head { position: relative; background: var(--teacher-header); padding: 48px 20px 26px; filter: drop-shadow(0 2px 2px rgba(23,33,38,.10));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3px), 95% calc(100% - 1px), 90% calc(100% - 3.5px), 84% calc(100% - 1.5px), 78% calc(100% - 4px), 72% calc(100% - 2px),
  66% calc(100% - 3px), 60% 100%, 54% calc(100% - 2.5px), 48% calc(100% - 4px), 42% calc(100% - 1.5px), 36% calc(100% - 3px), 30% calc(100% - 1px), 24% calc(100% - 3.5px),
  18% calc(100% - 2px), 12% calc(100% - 4px), 6% calc(100% - 1.5px), 0 calc(100% - 3px)); }
.t-head .bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.t-brand { display: inline-flex; align-items: center; gap: 8px; font: 800 18px/1 var(--font-display); color: var(--teacher-ink); }
.t-title { margin: 10px 0 0; font: 800 30px/1.2 var(--font-display); letter-spacing: -.02em; }
.t-sub { margin: 4px 0 0; font-size: 16px; font-weight: 600; color: var(--teacher-secondary); }
.t-body { padding: 18px 20px 0; display: flex; flex-direction: column; gap: 16px; }
.t-card { background: var(--teacher-card); border-radius: var(--radius-card); box-shadow: var(--shadow-teacher); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.t-card h2, .t-card h3 { margin: 0; font: 800 20px/1.25 var(--font-display); color: var(--teacher-ink); }
.t-card p { margin: 0; font-size: 16px; line-height: 1.45; color: var(--teacher-ink); }
.t-card .muted, .t-muted { color: var(--teacher-secondary); }
.t-btn { appearance: none; border: 0; min-height: 56px; padding: 0 22px; border-radius: 28px; background: var(--teacher-ink); color: var(--teacher-card);
  font: 700 18px/1 var(--font-display); display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.t-btn.full { width: 100%; }
.t-btn.ghost { background: var(--teacher-card); color: var(--teacher-ink); box-shadow: inset 0 0 0 1.5px var(--teacher-ink); }
.t-link { appearance: none; border: 0; background: transparent; min-height: 44px; padding: 0 4px; color: var(--teacher-ink); font: 700 16px/1.2 var(--font-body);
  text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; }
.t-icon-btn { appearance: none; border: 0; width: 44px; height: 44px; border-radius: 22px; background: rgba(23,33,38,.06); color: var(--teacher-ink);
  display: inline-flex; align-items: center; justify-content: center; flex: none; padding: 0; }
.t-status { display: inline-flex; align-items: center; min-height: 28px; padding: 0 11px; border-radius: 14px; font-size: 14px; font-weight: 700;
  background: #EDF0F2; color: var(--teacher-ink); }
.t-status.sent { background: #E6F0E9; color: #1F4A2C; }
.t-status.prog { background: #FFF1CF; color: #4A3200; }
.t-kid { display: flex; align-items: center; gap: 12px; min-height: 60px; text-decoration: none; color: var(--teacher-ink); }
.t-kid + .t-kid { box-shadow: inset 0 1px 0 #E1E6E9; }
.t-av { width: 40px; height: 40px; border-radius: 20px; background: #E7ECEF; color: var(--teacher-ink); display: grid; place-content: center; font-weight: 800; font-size: 16px; flex: none; }
.t-progress { height: 10px; border-radius: 5px; background: #E1E6E9; overflow: hidden; }
.t-progress i { display: block; height: 100%; background: var(--face-smile); border-radius: 5px; }
.t-rows { display: flex; flex-direction: column; background: var(--teacher-card); border-radius: var(--radius-card); box-shadow: var(--shadow-teacher); padding: 4px 16px; }
.t-row { appearance: none; border: 0; background: transparent; width: 100%; text-align: left; display: flex; align-items: center; gap: 12px; min-height: 48px;
  font: 600 17px/1.2 var(--font-body); color: var(--teacher-ink); padding: 0; }
.t-row + .t-row { box-shadow: inset 0 1px 0 #E1E6E9; }
.t-row .nm { flex: 1; }
.t-row .st { font-size: 14px; font-weight: 600; color: var(--teacher-secondary); }
.t-row.latest .st { color: var(--teacher-ink); font-weight: 700; }
.t-now { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; background: var(--teacher-card); border-radius: 24px 24px 0 0; padding: 16px 20px 26px;
  box-shadow: 0 -8px 28px rgba(23,33,38,.14); display: flex; flex-direction: column; gap: 14px; }
.t-now h2 { margin: 0; font: 800 22px/1.25 var(--font-display); }
.t-faces { display: flex; justify-content: space-between; gap: 6px; }
.t-face { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.t-face span { font-size: 14px; font-weight: 600; color: var(--teacher-secondary); text-align: center; line-height: 1.3; white-space: nowrap; }
.t-face b { font-size: 16px; font-weight: 700; color: var(--teacher-ink); }
.hs-facebtn { box-sizing: border-box; }
.t-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.t-chip { appearance: none; border: 0; min-height: 44px; padding: 0 16px; border-radius: 22px; background: var(--teacher-card); color: var(--teacher-ink);
  box-shadow: inset 0 0 0 1.5px var(--teacher-border); font: 600 16px/1 var(--font-body); display: inline-flex; align-items: center; gap: 6px; }
.t-chip.on { background: #FFF1CF; box-shadow: inset 0 0 0 2px var(--teacher-ink); font-weight: 700; }
.t-field { display: flex; flex-direction: column; gap: 6px; }
.t-field > span { font-size: 16px; font-weight: 700; }
.t-input { appearance: none; width: 100%; min-height: 56px; border: 0; border-radius: 12px; padding: 14px 16px; background: var(--teacher-card); color: var(--teacher-ink);
  font: 400 17px/1.4 var(--font-body); box-shadow: inset 0 0 0 1.5px #7D8A92; resize: none; }
.t-input.area { min-height: 100px; }
.t-foot { position: absolute; left: 20px; right: 20px; bottom: 30px; z-index: 2; display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.t-tabbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 84px; padding: 6px 10px 22px; display: flex; background: var(--teacher-card);
  box-shadow: 0 -1px 0 #DDE3E6; }
.t-tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; border-radius: 14px;
  font-size: 13px; font-weight: 600; color: var(--teacher-secondary); text-decoration: none; }
.t-tab.on { color: var(--teacher-ink); font-weight: 800; background: #EEF1F3; }
.t-msg { max-width: 82%; padding: 12px 14px; border-radius: 18px; font-size: 17px; line-height: 1.4; }
.t-msg.them { align-self: flex-start; background: var(--teacher-card); color: var(--teacher-ink); border-bottom-left-radius: 6px; box-shadow: var(--shadow-teacher); }
.t-msg.me { align-self: flex-end; background: var(--teacher-ink); color: var(--teacher-card); border-bottom-right-radius: 6px; }
.t-msg time { display: block; margin-top: 4px; font-size: 14px; font-weight: 600; opacity: .85; }
.t-composer { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 12px 16px 30px; display: flex; gap: 10px; align-items: flex-end;
  background: var(--teacher-card); box-shadow: 0 -1px 0 #DDE3E6; }
.t-composer .t-input { min-height: 52px; height: 52px; border-radius: 26px; padding: 0 18px; }
.t-send { appearance: none; border: 0; width: 52px; height: 52px; border-radius: 26px; background: var(--teacher-ink); color: var(--teacher-card); flex: none;
  display: inline-flex; align-items: center; justify-content: center; }
.t-day { color: var(--teacher-secondary); }
.t-key { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; font-weight: 600; color: var(--teacher-secondary); }
.t-key span { display: inline-flex; align-items: center; gap: 6px; }

/* ================= Prototype motion ================= */
@keyframes hs-drop { 0% { transform: translateY(-46px) scale(1.06); opacity: 0; } 60% { transform: translateY(3px) scale(.98); opacity: 1; } 80% { transform: translateY(-2px); } 100% { transform: none; } }
.ui-dropped { animation: hs-drop var(--magnet-drop) var(--ease-out-soft) both; }
@keyframes hs-rise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.ui-rise { animation: hs-rise var(--sheet) var(--ease-out-soft) both; }
@keyframes hs-pop { 0% { transform: scale(.9); } 60% { transform: scale(1.04); } 100% { transform: none; } }
.ui-pop { animation: hs-pop 320ms var(--ease-out-soft) both; }
@media (prefers-reduced-motion: reduce) { .ui-dropped, .ui-rise, .ui-pop { animation: hs-fade var(--crossfade) linear both; } }
@keyframes hs-fade { from { opacity: 0; } to { opacity: 1; } }

/* ================= Website ================= */
.web { font-family: var(--font-body); color: var(--on-door); background: var(--door); -webkit-font-smoothing: antialiased; }
.web *, .web *::before, .web *::after { box-sizing: border-box; }
.web-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.web-head { position: relative; z-index: 2; }
.web-head .web-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; min-height: 84px; padding-top: 12px; padding-bottom: 12px; }
.web-nav { display: flex; align-items: center; gap: 4px 6px; flex-wrap: wrap; }
.web-nav a { min-height: 44px; padding: 0 12px; display: inline-flex; align-items: center; color: var(--on-door); font-size: 17px; font-weight: 600; text-decoration: none; border-radius: 22px; }
.web-nav a.on { background: var(--tab-on); font-weight: 700; }
.web-btn { min-height: 52px; padding: 0 24px; border-radius: 28px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 17px/1 var(--font-body);
  text-decoration: none; background: var(--amber); color: var(--on-amber); box-shadow: var(--shadow-button); border: 0; }
.web-btn.ghost { background: transparent; color: var(--on-door); box-shadow: inset 0 0 0 2px var(--on-door-muted); }
.web-btn.ink { background: var(--ink); color: #FFFFFF; box-shadow: none; }
.web-btn.paper { background: transparent; color: var(--on-paper); box-shadow: inset 0 0 0 2px var(--on-paper); }
.web-hero { padding: 40px 0 72px; }
.web-hero .web-wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.web-hero .copy { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.web-h1 { margin: 0; font: 800 clamp(44px, 6vw, 76px)/1.04 var(--font-display); letter-spacing: -.025em; color: var(--on-door); }
.web-h2 { margin: 0; font: 800 clamp(32px, 4vw, 48px)/1.1 var(--font-display); letter-spacing: -.02em; }
.web-h3 { margin: 0; font: 800 24px/1.25 var(--font-display); letter-spacing: -.01em; }
.web-lead { margin: 0; font-size: 20px; line-height: 1.5; color: var(--on-door-muted); max-width: 40em; }
.web p { line-height: 1.55; }
.web-band { padding: 80px 0; }
.web-band.paper { background: var(--paper); color: var(--on-paper); position: relative; }
.web-band.paper::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: url(/assets/textures/paper-fibres.webp) 0 0 / 384px; mix-blend-mode: multiply; }
.web-band.paper > * { position: relative; }
.web-band.light { background: #F3F5F6; color: #172126; }
.web-band.paper .web-lead, .web-band.light .web-lead { color: var(--on-paper-muted); }
.web-split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.web-split > .copy { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.web-split > .art { flex: 1 1 300px; display: flex; justify-content: center; }
.web-steps { display: flex; flex-direction: column; gap: 0; }
.web-step { display: flex; gap: 20px; align-items: flex-start; padding: 22px 0; }
.web-step + .web-step { box-shadow: inset 0 1px 0 rgba(28,34,38,.14); }
.web-step .n { flex: none; min-width: 28px; font: 800 22px/1.25 var(--font-display); margin-top: 4px; }
.web-kicker { margin: 0 0 10px; font-size: 16px; font-weight: 700; color: var(--on-door-muted); }
.web-band.paper .web-kicker, .web-band.light .web-kicker { color: var(--on-paper-muted); }
.web-quotes { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
.ui-now { color: var(--teacher-secondary, inherit); font-weight: 700; }
.web-step h3 { margin: 4px 0 6px; font: 800 22px/1.25 var(--font-display); }
.web-step p { margin: 0; font-size: 17px; color: var(--on-paper-muted); }
.web-phone { flex: none; position: relative; border-radius: 46px; background: #0A1213; padding: 10px; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 60px rgba(0,0,0,.4); }
.web-phone > .scr { border-radius: 36px; overflow: hidden; position: relative; }
.web-phone > .scr > .in { transform-origin: 0 0; }
.web-quote { margin: 0; font: 700 26px/1.35 var(--font-display); }
.web-foot { padding: 48px 0 56px; background: var(--door-deep); color: var(--on-door); }
[data-theme="day"] .web-foot { color: #F2EEE6; }
.web-foot .web-wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-start; }
.web-foot nav { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.web-foot a { min-height: 44px; padding: 0 10px; display: inline-flex; align-items: center; color: #F2EEE6; font-size: 16px; font-weight: 600; }
.web-foot p { margin: 0; font-size: 15px; color: #CBD5D5; }
.web-cards { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.web-price { flex: 1 1 320px; min-width: 0; background: var(--paper-bright); color: var(--on-paper); border-radius: 6px; padding: 32px 28px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow-paper); }
.web-price.plus { box-shadow: inset 0 0 0 3px var(--amber), var(--shadow-paper); }
.web-price h3 { margin: 0; font: 800 30px/1.2 var(--font-display); }
.web-price .amt { font: 800 44px/1 var(--font-display); }
.web-price .amt small { font: 600 18px/1 var(--font-body); color: var(--on-paper-muted); }
.web-price ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.web-price li { display: flex; gap: 10px; align-items: flex-start; font-size: 17px; line-height: 1.4; }
.web-price .fine { font-size: 15px; line-height: 1.5; color: var(--on-paper-muted); margin: 0; }
.web-faq { display: flex; flex-direction: column; }
.web-faq details { padding: 4px 0; box-shadow: inset 0 -1px 0 rgba(28,34,38,.14); }
.web-faq summary { min-height: 56px; display: flex; align-items: center; font: 700 19px/1.3 var(--font-body); cursor: pointer; list-style: none; }
.web-faq p { margin: 0 0 18px; font-size: 17px; color: var(--on-paper-muted); max-width: 46em; }
.web-doc { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.web-doc aside { flex: 1 1 240px; display: flex; flex-direction: column; gap: 2px; }
.web-doc aside a { min-height: 44px; display: flex; align-items: center; color: var(--on-paper); font-size: 16px; font-weight: 600; }
.web-doc article { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.web-doc h2 { margin: 26px 0 0; font: 800 28px/1.2 var(--font-display); }
.web-doc p, .web-doc li { font-size: 18px; line-height: 1.6; margin: 0; }
.web-doc ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.web-table { width: 100%; border-collapse: collapse; font-size: 17px; }
.web-table th, .web-table td { text-align: left; padding: 12px 10px; box-shadow: inset 0 -1px 0 rgba(28,34,38,.14); vertical-align: top; }
.web-table th { font-weight: 700; }
.web-tablebox { overflow-x: auto; }
.web-form { display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.web-form label { display: flex; flex-direction: column; gap: 6px; font-size: 17px; font-weight: 700; }
.web-form input[type=email] { min-height: 56px; border: 0; border-radius: 12px; padding: 0 16px; font: 400 17px/1 var(--font-body); background: #FFF; color: var(--on-paper); box-shadow: inset 0 0 0 1.5px #6E7A80; }
.web-note { padding: 18px 20px; border-radius: 6px; background: var(--paper-bright); color: var(--on-paper); box-shadow: var(--shadow-paper); }
.web-pill { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: 16px; font-size: 15px; font-weight: 700; background: #FFF1CF; color: #4A3200; box-shadow: inset 0 0 0 1px var(--sunflower-rim); align-self: flex-start; }
@media (max-width: 640px) {
  .web-wrap { padding: 0 16px; }
  .web-band { padding: 56px 0; }
  .web-hero { padding: 16px 0 56px; }
}

/* switches and notification previews (Notifications screen) */
.ui-switch { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 6px 0; color: var(--on-paper); font: 600 17px/1.3 var(--font-body); cursor: pointer; }
.ui-switch + .ui-switch { box-shadow: inset 0 1px 0 rgba(28,34,38,.12); }
.ui-switch .sub { display: block; font-size: 15px; font-weight: 600; color: var(--on-paper-muted); margin-top: 2px; }
.ui-switch input { appearance: none; flex: none; width: 52px; height: 32px; margin: 0; border-radius: 16px; background: #B9C0C4; position: relative; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.ui-switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 13px; background: #FFF; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.ui-switch input:checked { background: var(--on-paper); }
.ui-switch input:checked::after { left: 23px; }
.ui-notif { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 20px; background: rgba(242,238,230,.92); color: #1C2226;
  box-shadow: 0 8px 24px rgba(0,0,0,.28); }
.ui-notif b { font-size: 15px; }
.ui-notif span { font-size: 14px; font-weight: 600; color: #4A5357; }
.ui-notif p { margin: 2px 0 0; font-size: 16px; line-height: 1.35; }
.ui-notif-icon { width: 38px; height: 38px; border-radius: 10px; background: #14292D; display: grid; place-content: center; flex: none; }

/* ================= Phase 1 additions ================= */
.ui-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ui-skel { display: block; border-radius: 6px; background: rgba(242,238,230,.13); }
.ui-skel.line { height: 18px; border-radius: 9px; }
[data-theme="day"] .ui-skel { background: rgba(84,58,24,.10); }
.ui-loading { display: flex; flex-direction: column; align-items: center; margin-top: 30px; }
.ui-cap { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--on-door-muted); margin: 0; }
.ui-av { width: 48px; height: 48px; border-radius: 24px; flex: none; display: inline-grid; place-content: center; font: 800 20px/1 var(--font-display);
  background: #EADFC6; color: var(--on-paper); }
.ui-av.b { background: #D8E3EC; }
.ui-av.c { background: #E1E8D9; }
.ui-av.lock { background: rgba(28,34,38,.07); color: var(--on-paper-muted); box-shadow: inset 0 0 0 1.5px rgba(28,34,38,.25); }
.ui-on { width: 30px; height: 30px; border-radius: 15px; flex: none; display: inline-grid; place-content: center; background: var(--on-paper); color: var(--paper-bright); }
.ui-radio { width: 26px; height: 26px; border-radius: 13px; flex: none; box-shadow: inset 0 0 0 2px var(--on-paper-muted); }
.ui-radio.on { box-shadow: inset 0 0 0 8px var(--on-paper); }
.ui-opt { appearance: none; border: 0; width: 100%; text-align: left; display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 14px 16px; border-radius: 6px;
  background: var(--paper); color: var(--on-paper); font: 700 18px/1.25 var(--font-body); box-shadow: var(--shadow-paper); }
.ui-opt .sub { display: block; font-size: 15px; font-weight: 600; color: var(--on-paper-muted); margin-top: 3px; line-height: 1.35; }
.ui-opt.on { background: var(--paper-bright); outline: 3px solid var(--amber); outline-offset: 2px; }
.ui-opt .ic { width: 28px; display: inline-grid; place-content: center; flex: none; }
.ui-badge { min-width: 28px; height: 28px; padding: 0 9px; border-radius: 14px; background: var(--amber); color: var(--on-amber); font-size: 14px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ui-when { width: 54px; flex: none; text-align: center; border-radius: 10px; padding: 6px 0 7px; background: rgba(28,34,38,.07); color: var(--on-paper); }
.ui-when small { display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--on-paper-muted); }
.ui-when b { display: block; font: 800 22px/1.1 var(--font-display); }
.ui-when.none b { font: 700 14px/1.2 var(--font-body); padding: 6px 0; color: var(--on-paper-muted); }
.ui-todo { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 10px 0; }
.ui-todo + .ui-todo { box-shadow: inset 0 1px 0 rgba(28,34,38,.12); }
.ui-todo .t { font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--on-paper); text-decoration: none; display: flex; align-items: center; min-height: 44px; }
.ui-todo .sub { display: block; font-size: 15px; font-weight: 600; color: var(--on-paper-muted); margin-top: 2px; }
.ui-todo.done .t { font-weight: 600; text-decoration: line-through; text-decoration-thickness: 1.5px; }
.ui-tick { appearance: none; border: 0; width: 44px; height: 44px; border-radius: 22px; flex: none; padding: 0; background: transparent; color: var(--paper-bright);
  box-shadow: inset 0 0 0 2.5px var(--on-paper-muted); display: inline-grid; place-content: center; }
.ui-tick.done { background: var(--on-paper); box-shadow: none; }
.ui-bar { height: 10px; border-radius: 5px; background: rgba(28,34,38,.12); overflow: hidden; }
.ui-bar i { display: block; height: 100%; border-radius: 5px; background: var(--on-paper); }
.ui-thumb { width: 64px; height: 64px; border-radius: 8px; flex: none; display: inline-grid; place-content: center; background: rgba(28,34,38,.07); color: var(--on-paper); }
.ui-keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ui-keys .ui-input { text-align: center; padding: 0 6px; font: 800 20px/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase; }

.ui-msg.unsent { box-shadow: inset 0 0 0 2.5px var(--amber); }
.ui-msgnote { align-self: flex-end; display: flex; align-items: center; gap: 4px 8px; flex-wrap: wrap; justify-content: flex-end; font-size: 15px; font-weight: 600;
  color: var(--on-door); margin-top: -4px; }
.ui-msg .st { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 14px; font-weight: 600; opacity: .85; }

.ui-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ui-doc { position: relative; background: #FFFDF8; color: #1C2226; border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.25), 0 8px 20px rgba(0,0,0,.25); padding: 18px 18px 22px;
  transform: rotate(-1deg); }
.ui-doc .ln { height: 2px; background: rgba(28,34,38,.12); margin-top: 14px; }
.ui-doc .hand { font: 700 20px/1.2 var(--font-display); }
.ui-doc .rowf { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: 14px; font-weight: 600; }

/* Large text: iOS Dynamic Type at about 200%. Text grows, rows stack, footers move into the scroll. */
.ax { height: auto !important; min-height: 844px; }
.ax .ui-body { padding-bottom: 36px; }
.ax .ui-body.tabbed { padding-bottom: 130px; }
.ax .ui-title { font-size: 46px; line-height: 1.12; }
.ax .ui-title.sm { font-size: 40px; }
.ax .ui-lead, .ax .ui-hint, .ax .ui-sheet p, .ax .ui-empty p, .ax .ui-banner p, .ax .ui-msg, .ax .ui-check, .ax .ui-alert, .ax .ui-locked,
.ax .ui-list > a, .ax .ui-list > button, .ax .ui-list > div.item, .ax .ui-opt, .ax .ui-todo .t, .ax .ui-switch { font-size: 31px; line-height: 1.3; }
.ax .ui-list .sub, .ax .ui-opt .sub, .ax .ui-todo .sub, .ax .hs-note p, .ax .ui-sheet .muted, .ax .ui-msg time, .ax .ui-msg .st, .ax .ui-sheet .cap,
.ax .ui-date, .ax .ui-step, .ax .ui-day, .ax .ui-msgnote, .ax .ui-switch .sub { font-size: 26px; line-height: 1.3; }
.ax .ui-cap { font-size: 22px; }
.ax .hs-note h3, .ax .ui-sheet h3, .ax .ui-h2, .ax .ui-empty b, .ax .ui-bsheet h2 { font-size: 36px; line-height: 1.15; }
.ax .ui-label, .ax .ui-field > span, .ax legend { font-size: 30px; line-height: 1.25; }
.ax .ui-input { font-size: 30px; height: auto; min-height: 76px; padding: 14px 16px; line-height: 1.3; }
.ax .ui-input.area { min-height: 170px; }
.ax .ui-keys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ax .ui-keys .ui-input { font-size: 30px; }
.ax .hs-btn { font-size: 30px; height: auto; min-height: 76px; padding: 14px 28px; line-height: 1.2; white-space: normal; text-align: center; }
.ax .hs-btn.text { min-height: 60px; font-size: 30px; }
.ax .ui-link { font-size: 30px; line-height: 1.25; }
.ax .ui-chip, .ax .ui-pill { font-size: 28px; min-height: 64px; padding: 10px 20px; line-height: 1.2; }
.ax .ui-tag { font-size: 24px; min-height: 40px; padding: 4px 14px; }
.ax .ui-badge { font-size: 22px; min-width: 40px; height: 40px; border-radius: 20px; }
.ax .ui-foot { position: relative; left: auto; right: auto; bottom: auto; margin: 28px 22px 40px; }
.ax .ui-check input { width: 40px; height: 40px; }
.ax .ui-check span { padding-top: 4px; }
.ax .ui-av { width: 60px; height: 60px; border-radius: 30px; font-size: 26px; }
.ax .ui-when { width: 76px; } .ax .ui-when small { font-size: 18px; } .ax .ui-when b { font-size: 32px; }
.ax .ax-col { flex-direction: column; align-items: flex-start !important; }
.ax .ax-wrap { flex-wrap: wrap; }
.ax .ax-hide { display: none !important; }
.ax-show { display: none; }
.ax .ax-show { display: inline; }
.ax .pv { font-size: 26px !important; line-height: 1.3; }

/* Full-screen states: Dawn at the centre (design system: Dawn, Voice) */
.ui-body.fill { min-height: 844px; }
.ui-state { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 16px 6px 28px; }
.ui-state-line { margin: 14px 0 0; max-width: 320px; font: 800 24px/1.25 var(--font-display); letter-spacing: -.01em; color: var(--on-door); }
.ui-state-text { margin: 8px 0 0; max-width: 320px; font-size: 17px; line-height: 1.45; color: var(--on-door-muted); }
.ui-state-act { margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ax .ui-state-line { font-size: 36px; max-width: none; }
.ax .ui-state-text { font-size: 30px; max-width: none; }
.ui-subtabs { display: flex; flex-wrap: wrap; gap: 0 2px; margin-top: 10px; box-shadow: inset 0 -1px 0 rgba(255,255,255,.14); }
[data-theme="day"] .ui-subtabs { box-shadow: inset 0 -1px 0 rgba(84,58,24,.18); }
.ui-subtabs a { min-height: 44px; padding: 0 10px; display: inline-flex; align-items: center; color: var(--on-door-muted); font: 600 16px/1.2 var(--font-body);
  text-decoration: none; }
.ui-subtabs a:first-child { padding-left: 2px; }
.ui-subtabs a.on { color: var(--on-door); font-weight: 800; box-shadow: inset 0 -3px 0 var(--amber); }
.ax .ui-subtabs a { font-size: 28px; min-height: 60px; }

/* ================= Phase 2 additions ================= */
.ui-cal { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.ui-cal .wd { text-align: center; font-size: 14px; font-weight: 700; color: var(--on-paper-muted); padding: 2px 0 6px; }
.ui-cal-day { min-height: 56px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  font: 700 17px/1 var(--font-body); color: var(--on-paper); text-decoration: none; }
.ui-cal-day.future { color: var(--on-paper-muted); font-weight: 600; }
.ui-cal-day.sel { box-shadow: inset 0 0 0 2.5px var(--on-paper); background: rgba(28,34,38,.05); }
.ui-cal-day.today { background: #FFF1CF; }
.ui-dot { display: inline-block; width: 14px; height: 14px; flex: none; }
.ui-dot.good { border-radius: 7px; background: var(--sunflower); box-shadow: inset 0 0 0 1.5px var(--sunflower-rim); }
.ui-dot.mixed { width: 12px; height: 12px; margin: 1px; transform: rotate(45deg); border-radius: 2px; background: var(--sky); box-shadow: inset 0 0 0 1.5px var(--sky-rim); }
.ui-dot.hard { height: 7px; margin: 3.5px 0; border-radius: 4px; background: var(--pebble); box-shadow: inset 0 0 0 1.5px var(--pebble-rim); }
.ui-dot.none { border-radius: 7px; box-shadow: inset 0 0 0 1.5px var(--on-paper-muted); background: transparent; }
.ui-dot.blank { visibility: hidden; }
.ui-calkey { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; font-weight: 600; color: var(--on-paper-muted); }
.ui-calkey span { display: inline-flex; align-items: center; gap: 7px; }
.ui-meter { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; }
.ui-meter + .ui-meter { box-shadow: inset 0 1px 0 rgba(28,34,38,.12); }
.ui-meter .lab { display: flex; justify-content: space-between; gap: 12px; font-size: 17px; font-weight: 600; color: var(--on-paper); }
.ui-meter .lab b { font-weight: 700; white-space: nowrap; }
.ui-num { width: 36px; height: 36px; border-radius: 18px; flex: none; display: inline-grid; place-content: center; background: rgba(28,34,38,.08);
  font: 800 18px/1 var(--font-display); color: var(--on-paper); }
.ui-gradegrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ui-grade { display: flex; flex-direction: column; gap: 6px; }
.ui-grade .sj { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--on-paper-muted); }
.ui-grade .lt { font: 800 34px/1 var(--font-display); color: var(--on-paper); }
.ui-grade .ch { font-size: 15px; font-weight: 600; color: var(--on-paper-muted); display: flex; align-items: center; gap: 4px; }
.ui-seg.paper { background: rgba(28,34,38,.07); box-shadow: none; }
.ui-seg.paper button { color: var(--on-paper); }
.ui-seg.paper button.on { background: var(--on-paper); color: var(--paper-bright); }
.ui-pager { display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; margin-top: 18px; }
.ui-pager a { min-height: 48px; padding: 0 16px; border-radius: 24px; display: inline-flex; align-items: center; gap: 6px; background: var(--pill); color: var(--on-door);
  font: 700 16px/1.2 var(--font-body); text-decoration: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.ax .ui-gradegrid { grid-template-columns: 1fr; }
.ax .ui-grade .sj { font-size: 22px; } .ax .ui-grade .lt { font-size: 48px; } .ax .ui-grade .ch { font-size: 26px; }
.ax .ui-meter .lab { font-size: 30px; flex-wrap: wrap; }
.ax .ui-calkey { font-size: 24px; }
.ax .ui-pager a { font-size: 28px; min-height: 64px; }
.ax .ui-num { width: 52px; height: 52px; border-radius: 26px; font-size: 26px; }

/* Dawn's loading hop: frames 1 to 3 in turn; reduced motion shows dawn31-steady, still */
.ui-hop { position: relative; display: block; flex: none; }
.ui-hop img { opacity: 0; animation: hs-hop3 933ms linear infinite; }
.ui-hop img:nth-child(1) { animation-delay: 0ms; }
.ui-hop img:nth-child(2) { animation-delay: -622ms; }
.ui-hop img:nth-child(3) { animation-delay: -311ms; }
.ui-hop img:nth-child(4) { animation: none; opacity: 0; }
@keyframes hs-hop3 { 0%, 33.2% { opacity: 1; } 33.3%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .ui-hop img { animation: none; opacity: 0; }
  .ui-hop img:nth-child(4) { opacity: 1; }
}

/* ================= Phase 3 additions ================= */
.ui-facebtn { appearance: none; border: 0; width: 50px; height: 48px; border-radius: 12px; padding: 0; flex: none; display: inline-grid; place-content: center;
  background: rgba(28,34,38,.06); box-shadow: inset 0 0 0 1.5px rgba(28,34,38,.18); }
.ui-facebtn.on { background: #FFF1CF; box-shadow: inset 0 0 0 2.5px var(--on-paper); }
.ui-entry { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 6px 0; }
.ui-entry + .ui-entry { box-shadow: inset 0 1px 0 rgba(28,34,38,.1); }
.ui-entry .nm { flex: 1; min-width: 0; font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--on-paper); overflow-wrap: anywhere; }
.ax .ui-entry { flex-wrap: wrap; } .ax .ui-entry .nm { flex-basis: 100%; font-size: 30px; }
.ui-wgrid { display: grid; grid-template-columns: minmax(0, 1fr) repeat(5, 38px); gap: 4px 4px; align-items: center; }
.ui-wgrid .wd { text-align: center; font-size: 13px; font-weight: 700; color: var(--on-paper-muted); }
.ui-wgrid .sj { font-size: 14px; font-weight: 600; line-height: 1.2; color: var(--on-paper); }
.ui-wgrid .cell { height: 32px; border-radius: 8px; display: grid; place-content: center; background: rgba(28,34,38,.05); font-size: 15px; font-weight: 800; color: var(--on-paper); }
.ui-wgrid .cell.empty { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(28,34,38,.16); }
.ui-wgrid .cell.tot { background: transparent; font: 800 16px/1 var(--font-display); }
.ui-print { padding: 16px 14px 18px; }
.ui-print .pg { margin: 12px 0 4px; font: 700 15px/1.2 var(--font-display); color: #1C2226; }
.ui-print ol { margin: 0 0 10px; padding-left: 18px; font-size: 13px; line-height: 1.45; color: #1C2226; }
.ui-pgrid { display: grid; grid-template-columns: minmax(0, 1fr) auto; border-top: 1px solid rgba(28,34,38,.25); }
.ui-pgrid > span { padding: 5px 4px; border-bottom: 1px solid rgba(28,34,38,.18); font-size: 12.5px; font-weight: 600; color: #1C2226; display: flex; align-items: center; }
.ui-pgrid .fc { gap: 8px; } .ui-pgrid .fc .hs-face { opacity: .9; }
.ui-pgrid.wk { grid-template-columns: minmax(0, 1fr) repeat(5, 30px); }
.ui-pgrid.wk b { font-size: 11px; text-align: center; padding: 4px 0; color: #1C2226; border-bottom: 1px solid rgba(28,34,38,.25); }
.ui-pgrid.wk i { border-bottom: 1px solid rgba(28,34,38,.18); border-left: 1px solid rgba(28,34,38,.18); }
.ui-print .rowf { font-size: 12.5px; color: #1C2226; }
.picked .ui-facebtn:not(.on) .hs-face { opacity: .45; }

/* ================= Phase 4 additions ================= */
.ui-gcard { padding: 18px 16px 18px; }
.ui-gcard .hd { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 2px solid rgba(28,34,38,.15); }
.ui-gcard .pic { width: 52px; height: 52px; border-radius: 26px; background: #FFF1CF; color: #4A3200; display: grid; place-content: center; flex: none; }
.ui-gcard .tt { margin: 0; font: 800 22px/1.15 var(--font-display); color: #1C2226; }
.ui-gcard .st { margin: 2px 0 0; font-size: 13px; font-weight: 600; color: #4A5357; }
.ui-gcard .gl { padding: 10px 0; border-bottom: 1px solid rgba(28,34,38,.12); }
.ui-gcard .gl p { margin: 0 0 8px; font: 700 16px/1.3 var(--font-display); color: #1C2226; }
.ui-gcard .gl .ph { font: 600 14px/1.3 var(--font-body); color: #4A5357; font-style: italic; }
.ui-gcard .bxs { display: flex; gap: 5px; }
.ui-gcard .bx { flex: 1; height: 34px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px rgba(28,34,38,.35); display: flex; align-items: flex-start; justify-content: center; }
.ui-gcard .bx i { font-style: normal; font-size: 10px; font-weight: 700; color: #4A5357; margin-top: 2px; }
.ui-gcard .bx.one { flex: none; width: 48px; height: 48px; }
.ui-gcard .rw { margin-top: 12px; padding: 8px 10px; border-radius: 8px; background: #FFF1CF; color: #3A2800; font-size: 14px; font-weight: 700; text-align: center; }

/* ================= Phase 5 additions ================= */
.t-body.t-fill { min-height: 620px; justify-content: center; }
.t-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 20px 10px; }
.t-state-ic { color: var(--teacher-ink); display: grid; place-content: center; }
.t-state-ic svg { width: 44px; height: 44px; }
.t-state-line { margin: 6px 0 0; font: 800 22px/1.25 var(--font-display); color: var(--teacher-ink); }
.t-state-text { margin: 0; max-width: 310px; font-size: 16px; line-height: 1.45; color: var(--teacher-secondary); }
.t-skel { height: 96px; border-radius: var(--radius-card); background: #E7ECEF; }
.t-screen.ax { height: auto !important; }
.ax .t-title { font-size: 40px; } .ax .t-sub, .ax .t-card p, .ax .t-muted { font-size: 28px !important; line-height: 1.3; }
.ax .t-card h2, .ax .t-card h3 { font-size: 32px; } .ax .t-kid b { font-size: 30px !important; }
.ax .t-status { font-size: 22px; min-height: 36px; } .ax .t-kid { flex-wrap: wrap; } .ax .t-chip { font-size: 26px; min-height: 60px; }
.ax .t-tabbar { position: relative; }
/* the invite email */
.em { position: relative; width: 390px; min-height: 844px; box-sizing: border-box; background: #FFFFFF; color: #1C2226; font-family: var(--font-body);
  padding: 48px 20px 30px; -webkit-font-smoothing: antialiased; }
.em *, .em *::before, .em *::after { box-sizing: border-box; }
.em-top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: #4A5357; }
.em-subject { margin: 12px 0 4px; font: 800 24px/1.25 var(--font-display); color: #1C2226; }
.em-to { margin: 0 0 16px; font-size: 14px; color: #4A5357; }
.em-body { border-top: 1px solid #DDE3E6; padding-top: 18px; }
.em-body p { margin: 0 0 12px; font-size: 16px; line-height: 1.5; }
.em-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; margin: 6px 0 18px; border-radius: 26px;
  background: #1C2226; color: #FFFFFF; font: 700 17px/1 var(--font-display); text-decoration: none; }
.em-small { font-size: 14px !important; color: #4A5357; }
a.t-row { text-decoration: none; }
.ui-dot.off { border-radius: 3px; background: repeating-linear-gradient(45deg, var(--on-paper-muted) 0 1.5px, transparent 1.5px 4px); box-shadow: inset 0 0 0 1.5px var(--on-paper-muted); }

/* ================= Phase 6 additions ================= */
.ui-report { padding: 16px 16px 14px; color: #1C2226; }
.ui-report .rp-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding-bottom: 10px; border-bottom: 2px solid rgba(28,34,38,.15); }
.ui-report .rp-t { margin: 0; font: 800 18px/1.2 var(--font-display); }
.ui-report .rp-s { margin: 2px 0 0; font-size: 12px; font-weight: 600; color: #4A5357; }
.ui-report .rp-pg { font-size: 11px; font-weight: 700; color: #4A5357; white-space: nowrap; }
.ui-report .rp-sec { padding: 9px 0; border-bottom: 1px solid rgba(28,34,38,.1); }
.ui-report .rp-h { margin: 0 0 4px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #4A5357; }
.ui-report p { margin: 0; font-size: 13px; line-height: 1.45; }
.ui-report p.m { color: #4A5357; margin-top: 3px; }
.ui-report .rp-tab { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 4px 10px; font-size: 13px; line-height: 1.35; }
.ui-report .rp-tab .a { font-weight: 700; } .ui-report .rp-tab .b { color: #1C2226; }
.ui-report .rp-ol { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.45; }
.ui-report .rp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(28,34,38,.1); }
.ui-report .rp-f { margin-top: 10px; font-size: 11px; color: #4A5357; }

/* ---------- Phase 7: account, data and deletion */
.ui-state-ic { color: var(--on-door); display: grid; place-content: center; }   /* Oct 15: a plain icon, no tinted circle */
.ui-state-ic svg { width: 44px; height: 44px; }
.ax .ui-state-ic svg { width: 56px; height: 56px; }

/* ---------- Phase 10: web dashboard (Expo for web) */
.wdb { position: relative; display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 900px; width: 100%; box-sizing: border-box; }
.wdb *, .wd-solo * { box-sizing: border-box; }
.wd-nav { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 6px; padding: 30px 20px 28px; border-right: 1px solid rgba(255,255,255,.10); background: rgba(10,24,27,.22); }
.wd-nav .wd-logo { min-height: 52px; padding: 0 10px; margin-bottom: 14px; display: flex; align-items: center; }
.wd-nav > a:not(.wd-logo):not(.ui-pill) { min-height: 52px; padding: 0 16px; border-radius: 26px; display: flex; align-items: center; gap: 14px; color: var(--on-door);
  font-size: 17px; font-weight: 600; text-decoration: none; }
.wd-nav > a.on { background: var(--tab-on); font-weight: 700; }
.wd-nav .ui-badge { margin-left: auto; }
.wd-nav .grow { flex: 1; }
.wd-main { position: relative; z-index: 1; padding: 40px 56px 56px; min-width: 0; display: flex; flex-direction: column; }
.wd-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.wd-head .ui-title { margin: 0; }
.wd-tools { display: flex; align-items: center; gap: 16px; }
.wd-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; max-width: 1080px; }
.wd-cols.list { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); }
.wd-col, .wd-one { display: flex; flex-direction: column; min-width: 0; }
.wd-one { max-width: 640px; }
.wd-flow { column-count: 2; column-gap: 48px; max-width: 1080px; }
.wd-flow > * { break-inside: avoid; }
.wd-state { flex: 1; display: flex; min-height: 640px; }
.wdb .ui-foot, .wdb .ui-composer { position: static; padding: 0; margin-top: 20px; background: none; box-shadow: none; }
.wdb .ui-foot .hs-btn { width: auto; align-self: flex-start; min-width: 240px; }
.wdb .ui-tray { justify-content: flex-start; }
.wd-solo { position: relative; width: 100%; min-height: 900px; display: grid; place-content: center; box-sizing: border-box; padding: 60px 0; }
.wd-card { position: relative; z-index: 1; width: 460px; display: flex; flex-direction: column; gap: 6px; padding: 32px 36px; border-radius: 28px;
  background: rgba(10,24,27,.35); box-shadow: inset 0 0 0 1px rgba(255,255,255,.10); }
.wd-card .ui-foot { position: static; margin-top: 22px; }
.wt { width: 100%; min-height: 900px; background: var(--teacher-bg); color: var(--teacher-ink); font-family: var(--font-body); box-sizing: border-box; }
.wt *, .wt *::before, .wt *::after { box-sizing: border-box; }
.wt-top { display: flex; align-items: center; gap: 28px; padding: 16px 40px; background: var(--teacher-card); box-shadow: 0 1px 0 rgba(23,33,38,.10); }
.wt-top nav { display: flex; gap: 6px; flex: 1; justify-content: center; }
.wt-top nav a { min-height: 48px; padding: 0 16px; border-radius: 14px; display: inline-flex; align-items: center; gap: 8px; color: var(--teacher-ink); font-size: 16px; font-weight: 700; text-decoration: none; }
.wt-top nav a.on { background: var(--teacher-bg); box-shadow: inset 0 0 0 1.5px var(--teacher-ink); }
.wt-who { font-size: 15px; font-weight: 600; color: var(--teacher-secondary); }
.wt-main { padding: 32px 40px 56px; }
.wt .t-screen.wt-col { width: auto; max-width: 640px; height: auto; min-height: 0; margin: 0 auto; overflow: visible; border-radius: 24px; box-shadow: 0 1px 3px rgba(23,33,38,.12); }
.wt .t-head { padding-top: 24px; border-radius: 24px 24px 0 0; }
.wt .t-head .bar > img { visibility: hidden; }
.wt .t-now, .wt .t-foot, .wt .t-composer { position: static; }
.wt .t-now { border-radius: 0 0 24px 24px; margin-top: 16px; }
.wt .t-foot { padding: 16px 20px 26px; }
.wt .t-composer { padding: 14px 20px 22px; border-radius: 0 0 24px 24px; }
.wt .t-body { padding-bottom: 24px; }
.wt .t-body > div[style*="height: 100px"], .wt .t-body > div[style*="height: 110px"] { display: none; }
.wt-split { display: grid; grid-template-columns: 420px minmax(0, 640px); gap: 32px; justify-content: center; align-items: start; }
.wt-split .t-screen.wt-col { margin: 0; max-width: none; }

/* ---------- Material hierarchy (Oct 14): paper only for fridge things. Everything else is a quiet panel on the door. */
.ui-panel { position: relative; border-radius: 18px; background: rgba(255,255,255,.055); color: var(--on-door);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.10);
  --on-paper: var(--on-door); --on-paper-muted: var(--on-door-muted); }
.ui-panel.strong { background: rgba(255,255,255,.085); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
.ui-panel .ui-list > * + *, .ui-panel .ui-switch + .ui-switch { box-shadow: inset 0 1px 0 rgba(255,255,255,.11); }
.ui-panel .cap { color: var(--on-door-muted); }
.ui-panel .ui-switch input { background: #4E6266; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.ui-panel .ui-switch input:checked { background: var(--amber); box-shadow: inset 0 0 0 1px var(--sunflower-rim); }
.ui-panel .ui-input, .ui-panel input.ui-input, .ui-panel textarea.ui-input { color: #1C2226; }
.ui-panel .ui-chip.paper.on { color: #1C2226; }
.ui-panel .ui-tag { background: rgba(255,255,255,.10); color: var(--on-door); }
.ui-panel .ui-tag.plus { background: rgba(255,255,255,.10); color: var(--on-door); }
.ui-panel .ui-seg.paper { background: rgba(255,255,255,.08); }
.ui-panel .ui-seg.paper button { color: var(--on-door); }
.ui-panel .ui-seg.paper button.on { background: var(--paper-bright); color: #1C2226; }
.ui-panel .ui-av.lock { background: rgba(255,255,255,.08); color: var(--on-door-muted); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.25); }
.ui-panel .ui-check.paper { color: var(--on-door); }
[data-theme="day"] .ui-panel { background: rgba(255,255,255,.45); box-shadow: inset 0 0 0 1px rgba(84,58,24,.14); }
/* Website: documents, pricing and forms sit on plain light surfaces, not paper */
.web-band.paper { background: #F7F4EE; }
.web-band.paper::before { display: none; }
.web-price { background: #FFFFFF; border-radius: 18px; box-shadow: inset 0 0 0 1px rgba(28,34,38,.14); }
.web-price.plus { box-shadow: inset 0 0 0 3px var(--amber); }

/* ---------- Charts (Round 4, in the design system's colors). One series per chart; a sentence above; a table version. */
.hs, .wdb, .wt, .web { --chart-band: rgba(111,165,218,.30); --chart-band-ink: #2F6EA8; --chart-surface: var(--paper); --chart-on-ink: var(--paper-bright); }
.ui-panel { --chart-band: rgba(111,165,218,.26); --chart-band-ink: #A9CBEE; --chart-surface: #2A4548; --chart-on-ink: #1C2226; }
.ui-doc { --chart-band: rgba(111,165,218,.28); --chart-band-ink: #2F6EA8; --chart-surface: #FFFDF8; --chart-on-ink: #FFFDF8; --on-paper: #1C2226; --on-paper-muted: #4A5357; }
.ui-chart { margin: 0; display: flex; flex-direction: column; gap: 10px; color: var(--on-paper); min-width: 0; }
.ui-chart-say { margin: 0; font-size: 16px; line-height: 1.4; font-weight: 600; color: var(--on-paper); }
.ui-chart-note { margin: 0; font-size: 15px; line-height: 1.4; color: var(--on-paper-muted); }
.ui-chart-svg { display: block; max-width: 100%; height: auto; overflow: visible; color: var(--on-paper); }
.ui-key-line { border-top-color: currentColor; }
.ui-key-band { background: var(--chart-band); box-shadow: none; }
.ui-key-flag { background: var(--on-paper); color: var(--chart-on-ink); }
.ui-astext summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 700;
  color: var(--on-paper); text-decoration: underline; text-underline-offset: 3px; }
.ui-astext summary::-webkit-details-marker { display: none; }
.ui-astext table { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 4px; }
.ui-astext th, .ui-astext td { text-align: left; padding: 6px 4px; border-bottom: 1px solid rgba(127,127,127,.25); font-weight: 600; }
.ui-astext thead th { font-size: 13px; color: var(--on-paper-muted); }
.ui-hbars { display: flex; flex-direction: column; gap: 12px; }
.ui-hbar .lab { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; font-weight: 600; color: var(--on-paper); margin-bottom: 6px; }
.ui-hbar .lab b { font-weight: 700; white-space: nowrap; }
.ui-hbar .track { height: 12px; border-radius: 6px; background: rgba(127,127,127,.22); overflow: hidden; }
.ui-hbar .track i { display: block; height: 100%; border-radius: 6px; background: var(--on-paper); opacity: .8; }
.ui-hbar.hl .track i { background: var(--amber); opacity: 1; }
.ui-hbar.dim .track { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(127,127,127,.4); }
.ui-hbar.dim .track i { display: none; }
.ui-glines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.ui-gline .sj { margin: 0 0 2px; font-size: 15px; font-weight: 700; color: var(--on-paper); }
.ui-panel .ui-bar { background: rgba(255,255,255,.14); }
.ui-panel .ui-meter + .ui-meter { box-shadow: inset 0 1px 0 rgba(255,255,255,.11); }
.ui-panel .ui-av { color: #1C2226; }
.ax .ui-chart-say { font-size: 30px; } .ax .ui-astext summary, .ax .ui-astext table { font-size: 28px; } .ax .ui-hbar .lab { font-size: 30px; flex-wrap: wrap; }
.ax .ui-glines { grid-template-columns: 1fr; }
.ui-panel .ui-cal-day.today { color: #1C2226; }
.ui-panel .ui-cal-day.sel { background: rgba(255,255,255,.08); }
.ui-panel .ui-wgrid .cell { background: rgba(255,255,255,.07); }
.ui-panel .ui-wgrid .cell.empty { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.2); }
.ui-panel .ui-wgrid .cell.tot { background: transparent; }

.wdb.n1024 { grid-template-columns: 224px minmax(0, 1fr); }
.wdb.n1024 .wd-nav { padding: 26px 14px 24px; }
.wdb.n1024 .wd-main { padding: 32px 32px 48px; }
.wdb.n1024 .wd-cols { gap: 28px; }
.wdb.n1024 .wd-cols.list { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); }
.wdb.n1024 .wd-flow { column-gap: 28px; }
.wdb.n1024 .wd-head .ui-title { font-size: 36px; }
.wt.n1024 .wt-top { padding: 14px 24px; gap: 18px; }
.wt.n1024 .wt-who { display: none; }

/* ---------- Full pass (Oct 14): quieter controls, destructive style, contrast on panels */
/* Secondary buttons are outlined on the door, not paper. Destructive actions have their own style. */
.hs-door .hs-btn.secondary { background: transparent; color: var(--on-door); box-shadow: inset 0 0 0 1.5px rgba(242,238,230,.6); }
.ui-bsheet .hs-btn.secondary { background: transparent; color: #1C2226; box-shadow: inset 0 0 0 1.5px #1C2226; }
/* Oct 15: no red. A delete reads as a quiet outlined button; the words and the confirm step carry the weight */
.hs-btn.danger { background: transparent; color: var(--on-door); box-shadow: inset 0 0 0 1.5px rgba(242,238,230,.6); }
.hs-btn.danger[disabled] { color: rgba(242,238,230,.7); box-shadow: inset 0 0 0 1.5px rgba(242,238,230,.35); opacity: 1 !important; }
.hs-btn.primary[disabled]:not([aria-busy="true"]) { opacity: 1 !important; background: rgba(255,255,255,.12); color: rgba(242,238,230,.8); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.ui-list .danger, .ui-list .danger .sub { color: inherit; }
/* Messages: neither bubble is paper */
.ui-msg.me { background: #3E6266; color: var(--on-door); }
.ui-msg.them { background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
.ui-msg time { color: var(--on-door-muted); }
.ui-composer .ui-input { background: rgba(255,255,255,.10); color: var(--on-door); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.ui-composer .ui-input::placeholder { color: var(--on-door-muted); }
/* Choice cards and plan cards: quiet panels with an amber ring when chosen */
.ui-plan, .ui-opt { background: rgba(255,255,255,.06); color: var(--on-door); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
  --on-paper: var(--on-door); --on-paper-muted: var(--on-door-muted); }
.ui-plan.on, .ui-opt.on { background: rgba(235,165,36,.12); box-shadow: inset 0 0 0 3px var(--amber); outline: 0; }
.ui-plan .radio { box-shadow: inset 0 0 0 2px var(--on-door-muted); }
.ui-plan.on .radio { box-shadow: inset 0 0 0 7px var(--amber); }
.ui-plan small, .ui-opt .sub { color: var(--on-door-muted); }
/* Sheets are plain light, not paper */
.ui-bsheet { background: #F5F5F2; }
/* Teacher header: plain light, no torn paper edge */
.t-head { clip-path: none; filter: none; background: var(--teacher-card); box-shadow: inset 0 -1px 0 rgba(23,33,38,.12); }
.t-face span { white-space: normal; text-wrap: balance; }
.t-row .st { min-width: 104px; text-align: right; }
.t-skel { background: #DFE4E8; }
.ui-skel { background: rgba(242,238,230,.16); }
/* Panels: visible dividers, ticks, faces, toggles */
.ui-panel .ui-list > * + *, .ui-panel .ui-switch + .ui-switch, .ui-list.door > * + * { box-shadow: inset 0 1px 0 rgba(255,255,255,.16); }
.ui-tick.done { background: var(--amber); color: #1C2226; box-shadow: none; }
.ui-panel .ui-dot.hard { background: #C9D2D6; box-shadow: none; height: 6px; }
.ui-panel .ui-facebtn { background: rgba(255,255,255,.10); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.ui-panel .ui-facebtn:not(.on) .hs-face { opacity: .85; }
.ui-panel .ui-facebtn.on { background: #FFF1CF; box-shadow: inset 0 0 0 2.5px #1C2226; }
.ui-panel .ui-switch input:not(:checked) { background: rgba(255,255,255,.22); box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }
.ui-chip { box-shadow: inset 0 0 0 1.5px rgba(242,238,230,.45); }
.ui-chip.on { box-shadow: inset 0 0 0 2px var(--amber); }
/* Banners: a coloured edge says error or done */


/* ===== Dashboard shell, full pass (Oct 14) ===== */
.wd-nav { padding: 28px 20px 24px; gap: 4px; }
.wd-nav .wd-logo { min-height: 0; padding: 0 12px; margin: 0 0 22px; }
.wd-nav .wd-logo .sym { display: none; }
.wd-nav > a:not(.wd-logo) { min-height: 52px; padding: 0 14px; border-radius: 26px; display: flex; align-items: center; gap: 14px; color: var(--on-door);
  text-decoration: none; font-size: 17px; font-weight: 600; position: relative; }
.wd-nav > a.wd-child { min-height: 52px; margin: 0 0 18px; border-radius: 16px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); font-weight: 700; }
.wd-nav > a.wd-child svg:last-child { margin-left: auto; opacity: .8; }
.wd-nav .av { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: #1C2226; font-size: 14px; font-weight: 800; }
.wd-nav .wd-me .av { background: rgba(255,255,255,.16); color: var(--on-door); font-size: 13px; }
.wd-nav .wd-me { min-height: 60px; border-top: 1px solid rgba(255,255,255,.12); border-radius: 0 !important; padding-top: 10px !important; }
.wd-nav .wd-me.on { background: none; }
.wd-nav .wd-me.on .av { box-shadow: 0 0 0 2px var(--amber); }
.wd-nav .lbl { display: flex; flex-direction: column; line-height: 1.2; }
.wd-nav .lbl .sub { font-size: 14px; font-weight: 600; color: var(--on-door-muted); }
.wd-main { padding: 36px 56px 56px; }
.wd-head { min-height: 56px; margin-bottom: 24px; }
.wd-col > :first-child, .wd-one > :first-child, .wd-flow > :first-child { margin-top: 0 !important; }
.wd-col .ui-pwrap:first-child { margin-top: 0 !important; }
.wd-col .sel { background: rgba(255,255,255,.12); border-radius: 12px; }
.wd-sticky { position: sticky; top: 24px; }
.wd-cols.list { grid-template-columns: minmax(0, 400px) minmax(0, 640px); }
/* 1024: an icon rail, the symbol alone, labels kept for screen readers */
.wdb.n1024 { grid-template-columns: 88px minmax(0, 1fr); }
.wdb.n1024 .wd-nav { padding: 24px 12px; align-items: center; }
.wdb.n1024 .wd-nav .wd-logo { padding: 0; margin-bottom: 18px; }
.wdb.n1024 .wd-nav .wd-logo .full { display: none; }
.wdb.n1024 .wd-nav .wd-logo .sym { display: block; }
.wdb.n1024 .wd-nav > a:not(.wd-logo) { width: 60px; min-height: 56px; padding: 0; justify-content: center; border-radius: 18px; }
.wdb.n1024 .wd-nav > a.wd-child { width: 60px; }
.wdb.n1024 .wd-nav > a.wd-child svg:last-child { display: none; }
.wdb.n1024 .wd-nav .wd-me { border-radius: 0 !important; }
.wdb.n1024 .wd-nav .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wdb.n1024 .wd-nav .ui-badge { position: absolute; top: 4px; right: 2px; margin: 0; }
.wdb.n1024 .wd-main { padding: 32px 40px 48px; }
.wdb.n1024 .wd-cols { gap: 32px; }
.wdb.n1024 .wd-cols.list { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); }
/* teacher top bar: logo, centered tabs, who */
.wt-top { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; min-height: 76px; padding: 12px 40px; }
.wt-top nav { flex: none; }
.wt-top nav a.on { background: var(--teacher-ink); color: var(--teacher-card); box-shadow: none; }
.wt-top .sym { display: none; }
.wt-who { justify-self: end; text-align: right; display: flex; flex-direction: column; line-height: 1.25; color: var(--teacher-ink); font-weight: 700; }
.wt-who .sub { font-size: 14px; font-weight: 600; color: var(--teacher-secondary); }
.wt.n1024 .wt-top { grid-template-columns: auto 1fr auto; padding: 12px 24px; }
.wt.n1024 .wt-top .full { display: none; }
.wt.n1024 .wt-top .sym { display: block; }
.wt.n1024 .wt-who { display: flex; }
.wt.n1024 .wt-who .sub { display: none; }

/* charts in reports and PDFs: print-safe colors, amber with an outline */
.ui-doc { --chart-band: #BFD2E8; --amber: #E39A12; }
.ui-doc .ui-chart-svg circle[style*="--amber"], .ui-doc .ui-chart-svg path[style*="--amber"] { stroke: #1C2226; stroke-width: 1.5; }
.ui-glines { gap: 16px 24px; }
.ui-chart-svg { overflow: visible; }

.web-price .web-btn { margin-top: auto; align-self: flex-start; }
.web-price .web-btn.quiet { background: transparent; color: var(--on-paper); box-shadow: inset 0 0 0 2px var(--on-paper); }

/* check fixes (Oct 14) */
.ui-msg time, .ui-msg .st { color: #E3EAEA; opacity: 1; }
.ui-panel .ui-av { color: #1C2226; }
.hs-paper .hs-btn.secondary, .hs-lift .hs-btn.secondary { background: transparent; color: #1C2226; box-shadow: inset 0 0 0 1.5px #1C2226; }
.wt-top > a { min-width: 44px; }
.ui-plan .ui-av { color: #1C2226; }
.wdb.n1024 .wd-nav > a.wd-child svg { display: none !important; }
.wt .t-head .bar:has(> img) { display: none; }

/* Progress tabs: always one line, scroll sideways when they don't fit (Oct 15) */
.ui-subtabs { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ui-subtabs::-webkit-scrollbar { display: none; }
.ui-subtabs a { flex: none; white-space: nowrap; }
.ax .ui-subtabs { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
/* One headline per card, the rest in regular weight */
.ui-chart-say { font-weight: 400; }
.ui-trend { font-weight: 400; }
.ui-sheet h3 + p, .ui-sheet h3 + .ui-chart { font-weight: 400; }

/* Web Progress and Today (Oct 15) */
.wd-prog { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; max-width: 1080px; margin-top: 22px; }
.wd-prog-main { min-width: 0; }
.wd-prog-side { position: sticky; top: 24px; }
.wdb.n1024 .wd-prog { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.wdb.n1024 .wd-prog-side { position: static; margin-top: 20px; }
.wd-cols.today { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.wd-notes .hs-note { min-height: 96px; padding: 16px 18px 16px 24px; }
.wd-notes .hs-note h3 { font-size: 26px; }
.wd-notes .hs-note p { font-size: 17px; }
.wd-notes .hs-slot { width: 72px; height: 72px; }
.wdb.n1024 .wd-notes .hs-slot { width: 64px; height: 64px; }
.wd-tray { justify-content: flex-start; gap: 32px; }
.wd-tray button { font-size: 18px; font-weight: 700; gap: 10px; min-width: 104px; }
.wdb.n1024 .wd-tray { gap: 22px; }
.wdb .ui-prompt { text-align: left; }
.wdb .ui-sticky { max-width: 560px; transform: rotate(-.5deg); }

/* at 200% the tab row is scrolled so the open tab is in view, as the app does */
.ax .ui-subtabs:has(a.on:nth-child(3)) a:first-child { margin-left: -118px; }
.ax .ui-subtabs:has(a.on:nth-child(4)) a:first-child { margin-left: -214px; }
.ax .ui-subtabs:has(a.on:nth-child(3)), .ax .ui-subtabs:has(a.on:nth-child(4)) { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }

.ui-meter .lab span, .ui-hbar .lab span { font-weight: 400; }
.ax .ui-glines svg { width: 100%; height: auto; }

/* Website: one spacing scale (8, 16, 24, 32, 48, 64, 96) and the app's materials (Oct 15) */
.web { --sec: 96px; --sec-intro: 64px; --stack: 24px; --split: 64px; }
.web-hero { padding: 48px 0 var(--sec); position: relative; }
.web-hero.intro { padding: 48px 0 var(--sec-intro); }
.web-hero.tall { padding: var(--sec) 0 calc(var(--sec) * 1.5); }
.web-band { padding: var(--sec) 0; position: relative; }
.web-hero.intro + .web-band { padding-top: var(--sec-intro); }
.web-hero .web-wrap, .web-split { gap: var(--split); }
.web-hero .copy, .web-split > .copy { gap: var(--stack); }
.web-stack { display: flex; flex-direction: column; gap: 32px; }
.web-stack.center { align-items: center; text-align: center; }
.web-stack > .web-h2 + .web-lead, .web-stack > .web-h2 + p { margin-top: -8px; }
.web-band > .web-wrap, .web-hero > .web-wrap, .web-head > .web-wrap { position: relative; z-index: 1; }
.web.hs-door { overflow: visible; }
.web-band.paper, .web-band.light { isolation: isolate; }
.web-foot { position: relative; z-index: 1; padding: 64px 0; }
.web-hero .hs-lamp, .web-band .hs-lamp { z-index: 0; }
@media (max-width: 720px) { .web { --sec: 64px; --sec-intro: 40px; --split: 40px; } .web-hero { padding-top: 24px; } }
/* Long reading pages: a calm light surface, a readable line length, the contents beside it */
.web-doc { gap: 64px; }
.web-doc article { max-width: 68ch; gap: 16px; }
.web-doc aside { position: sticky; top: 24px; align-self: flex-start; flex: 0 0 240px; }
.web-doc h2 { margin: 32px 0 0; }
.web-doc h2:first-child { margin-top: 0; }
.web-hero > .hs-lamp { top: -108px; }

/* Teacher theme (Oct 15): the parent's warm day door, the night door in dark mode. Same enamel, a window by day, the lamp at night. */
.t-screen, .wt {
  --teacher-bg: #E9DDC7; --teacher-card: #FFFDF8; --teacher-ink: #172126; --teacher-secondary: #5A4B39; --teacher-border: #8C7A5E;
  --teacher-press: #FFF4DA; --t-tint: rgba(84,58,24,.08); --t-line: rgba(84,58,24,.16); --t-sent-bg: #E3EEDF; --t-sent-ink: #1F4A2C;
  --t-prog-bg: #FFF1CF; --t-prog-ink: #4A3200; --t-light: radial-gradient(110% 60% at 100% -6%, rgba(255,206,140,.32), rgba(255,206,140,0) 60%);
  --shadow-teacher: 0 1px 1px rgba(84,58,24,.14), -2px 6px 16px rgba(84,58,24,.12);
}
.t-screen[data-theme="night"], .wt[data-theme="night"] {
  --teacher-bg: #1E3A3F; --teacher-card: #24464C; --teacher-ink: #F2EEE6; --teacher-secondary: #CBD5D5; --teacher-border: #7E9599;
  --teacher-press: #3B4A35; --t-tint: rgba(255,255,255,.09); --t-line: rgba(255,255,255,.14); --t-sent-bg: #2C4B3A; --t-sent-ink: #D3EEDC;
  --t-prog-bg: #4A3A14; --t-prog-ink: #FFE6AE; --t-light: radial-gradient(120% 62% at 8% -4%, rgba(255,184,100,.26), rgba(255,184,100,0) 60%);
  --shadow-teacher: 0 1px 1px rgba(0,0,0,.3), 2px 6px 16px rgba(0,0,0,.24);
}
.t-screen { background: var(--t-light), var(--teacher-bg); isolation: isolate; }
.t-screen::before, .t-screen::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.t-screen::before { background: url(/assets/textures/enamel-ripple.webp) 0 0 / 512px; mix-blend-mode: soft-light; opacity: .8; }
.t-screen::after { background: url(/assets/textures/enamel-grain.png) 0 0 / 256px; mix-blend-mode: multiply; opacity: .12; }
.t-screen[data-theme="night"]::after { mix-blend-mode: overlay; opacity: .45; }
.t-screen[data-theme="night"]::before { opacity: 1; }
.t-head { background: transparent; box-shadow: none; }
.t-icon-btn { background: var(--t-tint); }
.t-status { background: var(--t-tint); }
.t-status.sent { background: var(--t-sent-bg); color: var(--t-sent-ink); }
.t-status.prog, .t-chip.on { background: var(--t-prog-bg); color: var(--t-prog-ink); }
.t-kid + .t-kid, .t-row + .t-row { box-shadow: inset 0 1px 0 var(--t-line); }
.t-av, .t-progress, .t-skel { background: var(--t-tint); }
.t-tab.on { background: var(--t-tint); }
.t-now { box-shadow: 0 -8px 28px rgba(84,58,24,.16); }
.t-screen[data-theme="night"] .t-now { box-shadow: 0 -8px 28px rgba(0,0,0,.35); }
.t-tabbar { box-shadow: 0 -1px 0 var(--t-line); }
.wt { background: var(--t-light), var(--teacher-bg); }
.wt-top { background: transparent; box-shadow: inset 0 -1px 0 var(--t-line); }
.wt-top nav a.on { background: var(--teacher-ink); color: var(--teacher-card); }
.wt .t-screen.wt-col { box-shadow: var(--shadow-teacher); }

/* Link a computer for messages (Oct 15) */
.wd-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; max-width: 920px; margin-top: 8px;
  padding: 40px; border-radius: 22px; background: rgba(255,255,255,.055); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.wd-link .ui-h2 { margin: 0; }
.wd-steps { margin: 18px 0 0; padding-left: 24px; display: flex; flex-direction: column; gap: 10px; font-size: 18px; line-height: 1.45; }
.wdb.n1024 .wd-link { gap: 28px; padding: 28px; }
.wt .wd-link { background: transparent; box-shadow: none; padding: 8px; grid-template-columns: 1fr; justify-items: start; }
.wt .wd-link .t-title { margin: 0; }
.wt .wd-steps { color: var(--teacher-ink); }
.wt .t-screen.wt-col::before, .wt .t-screen.wt-col::after { border-radius: inherit; }
.wt .wd-link { grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; }

/* Sign in and sign up: the stacked logo, small and centered (Oct 15) */
.ui-top-brand { position: relative; min-height: 56px; }
.ui-top-brand .ui-brand { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: block; line-height: 0; }

/* Oct 25: solid surfaces. Panels and the tab bar are solid, with no blur, so text never sits on a see-through layer.
   Text on them is 5.9:1 or better (body text on the night panel 8.8:1, muted text 6.8:1). Overrides everything above. */
.ui-panel { background: #24464C; }
.ui-panel.strong { background: #2A5056; }
[data-theme="day"] .ui-panel { background: #FFFDF8; }
.hs-tabbar { background: #14292D; backdrop-filter: none; -webkit-backdrop-filter: none; }
[data-theme="day"] .hs-tabbar { background: #FFFDF8; }
