/* Backpack Briefs: shared styles. Navy / gold / cream. */
:root {
  --navy: #0f1b2d;
  --navy-2: #172840;
  --navy-3: #22385a;
  --heading: #0f1b2d; /* navy TEXT on cards and page; turns light in the dark theme. --navy stays for navy backgrounds. */
  --gold: #c9a84c;
  --gold-dark: #a8872f;
  --gold-soft: #f6efda;
  --focus: #7a5c14; /* keyboard focus ring: 3:1 or better on white, cream and gold-soft (WCAG 2.2). Navy surfaces switch it to gold. */
  --gold-text: #7a5c14; /* readable gold: TEXT on white, cream or gold-soft (5.4:1 or better). Gold on navy stays --gold. */
  --cream: #f5f0e8;
  --white: #ffffff;
  --ink: #1d2433;
  --ink-2: #4a5468;
  --ink-3: #5f6879; /* 4.9:1 or better on white, cream and orange-bg (AA for small text) */
  --line: #e4ddd0;
  --green: #2d6a4f;  --green-bg: #e3f2ea;
  --amber: #8a6500;  --amber-bg: #fff8e7;
  --orange: #d9480f; --orange-bg: #fff1e8;
  --orange-text: #a8380b; /* orange TEXT on white or orange-bg (5.8:1). --orange stays for dots and borders. */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(15, 27, 45, .08), 0 2px 6px rgba(15, 27, 45, .05);
  --shadow-lg: 0 30px 60px rgba(0, 0, 0, .28), 0 8px 18px rgba(0, 0, 0, .18);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  /* Brand signature: the brief as a marked-up note on the kitchen counter. */
  --paper: #fffdf8;
  --rule: rgba(47, 95, 208, .13);
  --hl: #ffd95a;
  --pen: #2f5fd0;
  /* Handwriting uses fonts already on the device (nothing downloaded): Caveat if installed, else Bradley Hand (iPhone/Mac) or Segoe Print (Windows). */
  --hand: "Caveat", "Bradley Hand", "Segoe Print", "Chalkboard SE", "Comic Sans MS", cursive;
  /* Per-kid colors: an edge or avatar ring, always next to the kid's name. */
  --kid-1: #5b7fd1; --kid-2: #d9822b; --kid-3: #4f9d77; --kid-4: #a35dbd; --kid-5: #d4577b;
  /* Motion: two durations and one easing, used everywhere. */
  --dur-fast: 150ms;
  --dur: 250ms;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--cream); line-height: 1.55; font-size: 1rem; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; color: inherit; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--navy-3); }
a:hover { color: var(--gold-text); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
.center { text-align: center; }
.gold-italic { color: var(--gold); font-style: italic; display: block; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700; color: var(--gold-text); margin-bottom: .6em; }
.section-navy .eyebrow, .page-head .eyebrow, .hero .eyebrow { color: var(--gold); }
.section-navy a:hover, .page-head a:hover, .site-footer a:hover, .banner-navy a:hover { color: var(--gold); }
.icon { flex: none; vertical-align: -.2em; }
[hidden] { display: none !important; }

/* ---------- Skip link ---------- */
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--navy); padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font: 600 1rem/1.2 var(--sans); padding: .85em 1.5em; border-radius: 999px; border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); min-height: 44px; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 6px 18px rgba(201, 168, 76, .35); }
.btn-gold:hover { background: #d6b75d; color: var(--navy); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline { background: var(--white); color: var(--heading); border-color: var(--line); }
.btn-outline:hover { border-color: var(--gold); color: var(--heading); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-3); color: #fff; }
.btn-danger { background: var(--white); color: #b42318; border-color: #f2c4bf; }
.btn-danger:hover { background: #fff3f2; color: #b42318; }
.btn-sm { padding: .5em 1em; font-size: .9rem; min-height: 44px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Header / nav ---------- */
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 1.2rem; white-space: nowrap; }
.brand:hover { color: var(--gold); }
.nav-links { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
.nav-links a { color: rgba(255, 255, 255, .82); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 500; font-size: .95rem; display: block; }
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-links a[aria-current="page"] { color: var(--navy); background: var(--gold); }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255, 255, 255, .25); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; position: absolute; left: 11px; width: 20px; height: 2px; background: var(--white); border-radius: 2px; content: ""; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.nav-toggle-bars { top: 20px; }
.nav-toggle-bars::before { top: -6px; left: 0; }
.nav-toggle-bars::after { top: 6px; left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav { flex-wrap: wrap; }
  .nav-toggle { display: block; }
  .nav-links { display: none; width: 100%; flex-direction: column; padding: 4px 0 14px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; border-radius: 10px; }
}

/* Account chip (top bar, every page): Sign in / Accounts / Open my brief / Sign in again + one-line reason.
   Phone: brand | chip | menu on row one, the reason on its own row, then the menu list.
   Wide: brand | links | reason | chip. */
.brand { order: 0; }
.nav-acct-chip { order: 1; margin-left: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .45); color: #fff; background: transparent; font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap; justify-content: center; }
.nav-acct-chip:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.nav-acct-chip.nav-acct-open, .nav-acct-chip.nav-acct-dropped { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.nav-acct-chip.nav-acct-open:hover, .nav-acct-chip.nav-acct-dropped:hover { background: #d9bb63; color: var(--navy); }
.nav-acct-chip.nav-acct-ok { border-color: rgba(255, 255, 255, .25); font-weight: 500; color: rgba(255, 255, 255, .9); }
.nav-acct-chip.nav-acct-cta { background: var(--gold); border-color: var(--gold); color: var(--navy); font-weight: 700; }   /* s59: the signed-out homepage button */
.nav-acct-chip.nav-acct-cta:hover { background: #d9bb63; color: var(--navy); }
.nav-acct-chip:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.nav-acct-short { display: none; }
.nav-acct-dots { display: inline-flex; gap: 3px; }
.nav-acct-dots:empty { display: none; }
.nav-acct-dot { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid currentColor; box-sizing: border-box; }
.nav-acct-dot-off { background: transparent; opacity: .6; }
.nav-acct-dot-ok { background: #1b7a43; border-color: #1b7a43; box-shadow: 0 0 0 1.5px #fff; }
.nav-acct-dot-dropped { background: #b3261e; border-color: #b3261e; box-shadow: 0 0 0 1.5px #fff; }
.nav-acct-chip.nav-acct-none .nav-acct-dots { display: none; }
.nav-toggle { order: 2; }
.nav-acct-note { order: 3; flex: 1 0 100%; position: relative; font-size: .85rem; line-height: 1.3; color: #fff; padding: 0 0 8px; }
.nav-acct-note[hidden] { display: none; }
.nav-acct-why { color: #ffe08a; font-weight: 600; }
.nav-acct-more { min-height: 44px; min-width: 44px; padding: 0 6px; background: none; border: 0; color: #fff; text-decoration: underline; font: inherit; font-size: .85rem; cursor: pointer; }
.nav-acct-more:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.nav-acct-tip { position: absolute; left: 0; top: 100%; z-index: 120; margin: 0; padding: 10px 14px 10px 28px; list-style: disc; background: #fff; color: var(--navy); border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); font-size: .9rem; }
.nav-acct-tip[hidden] { display: none; }
.nav-links { order: 4; }
@media (min-width: 901px) {
  .nav-links { order: 1; }
  .nav-acct-note { order: 2; flex: 0 1 240px; padding: 0; }
  .nav-acct-chip { order: 3; margin-left: 0; }
  .nav-acct-tip { left: auto; right: 0; min-width: 240px; }
}
@media (max-width: 420px) {
  .nav { gap: 8px; }
  .brand { font-size: 1.05rem; gap: 8px; }
  .nav-acct-dots { display: none; }
  .nav-acct-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }   /* read aloud in full, shown short */
  .nav-acct-short { display: inline; }
  .nav-acct-chip { padding: 0 12px; font-size: .85rem; }
  .nav-acct-note, .nav-acct-more { font-size: .78rem; }
  .nav-acct-more { padding: 0 2px; }
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-navy { background: var(--navy); color: #fff; }
.section-navy p { color: rgba(255, 255, 255, .78); }
/* White cards inside navy sections (homepage pricing): back to dark ink, or the text is white on white. */
.section-navy .card { color: var(--ink); }
.section-navy .card p { color: var(--ink-2); }
.section-navy .card .muted, .section-navy .card small { color: var(--ink-3); }
.section-navy .card .price { color: var(--heading); }
.section-navy .card .eyebrow { color: var(--gold-text); }
.section-cream { background: var(--cream); }
.section-white { background: var(--white); }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.page-head { background: var(--navy); color: #fff; padding: 48px 0 40px; }
.page-head p { color: rgba(255, 255, 255, .78); max-width: 640px; margin: 0; }
.page-head h1 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); }
.page-body { padding: 40px 0 72px; }

/* ---------- Cards ---------- */
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; border: 1px solid rgba(15, 27, 45, .04); }
.card h2, .card h3 { margin-top: 0; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(1200px 500px at 85% 10%, #1f3556 0%, var(--navy) 60%); color: #fff; padding: 72px 0 96px; overflow: hidden; position: relative; isolation: isolate; }
/* Background layer only: faint ruled-paper lines and one soft gold glow behind the hero. Hero content is unchanged. */
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(180deg, transparent 0 31px, rgba(255, 255, 255, .045) 31px 32px);
  -webkit-mask-image: radial-gradient(900px 520px at 80% 40%, #000 0%, transparent 75%); mask-image: radial-gradient(900px 520px at 80% 40%, #000 0%, transparent 75%); }
.hero::after { content: ""; position: absolute; z-index: -1; pointer-events: none; width: 520px; height: 520px; right: -140px; bottom: -260px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(201, 168, 76, .16), transparent); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero p.lede { font-size: 1.15rem; color: rgba(255, 255, 255, .8); max-width: 520px; margin: 18px 0 28px; }
.hero .fine { font-size: .85rem; color: rgba(255, 255, 255, .55); margin-top: 18px; }
.hero-card-wrap { perspective: 1400px; }
.hero-card-wrap .brief-mock { transform: rotate(2.5deg) translateY(4px); box-shadow: var(--shadow-lg); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-card-wrap .brief-mock { transform: rotate(1.2deg); }
}

/* ---------- Sample brief mock (email look) ---------- */
.brief-mock { background: var(--white); color: var(--ink); border-radius: 18px; overflow: hidden; max-width: 480px; margin: 0 auto; font-size: .92rem; }
.hero-card-wrap { --ink-3: #6b7486; --orange-text: #d9480f; } /* homepage hero is locked: keep its sample card exactly as designed */
.bm-top {background: #f8f6f1; border-bottom: 1px solid var(--line); padding: 12px 16px; font-size: .78rem; color: var(--ink-3); display: grid; gap: 2px; }
.bm-top strong { color: var(--ink); }
.bm-body { padding: 16px 18px 18px; }
.bm-head { font-family: var(--serif); font-size: 1.08rem; font-weight: 700; margin: 0 0 12px; line-height: 1.3; }
.bm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.bm-stat { background: var(--cream); border-radius: 10px; padding: 8px 10px; }
.bm-stat b { display: block; font-size: 1.15rem; font-family: var(--serif); }
.bm-stat span { font-size: .72rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.bm-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.bm-row:last-of-type { border-bottom: 0; }
.bm-row .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-row .avg { font-weight: 700; font-variant-numeric: tabular-nums; }
.bm-banner { background: var(--amber-bg); color: var(--amber); border-radius: 10px; padding: 8px 12px; font-weight: 600; margin: 10px 0; font-size: .85rem; }
.bm-jump { border: 2px solid var(--gold); background: var(--gold-soft); border-radius: 10px; padding: 10px 12px; font-size: .84rem; }
.bm-jump b { color: var(--heading); }

/* ---------- Grade lights + trends ---------- */
.light { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; padding: 3px 10px 3px 8px; border-radius: 999px; white-space: nowrap; }
.light::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: none; }
.light-green { color: var(--green); background: var(--green-bg); }
.light-yellow { color: var(--amber); background: var(--amber-bg); }
.light-orange { color: var(--orange-text); background: var(--orange-bg); }
.light-none { color: var(--ink-3); background: #eef0f3; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.dot-green { background: var(--green); } .dot-yellow { background: #d9a400; } .dot-orange { background: var(--orange); } .dot-none { background: #aab; }
.trend { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.trend-up { color: var(--green); }
.trend-down { color: var(--orange-text); }
.trend-flat { color: var(--ink-3); }

/* ---------- How it works / tiles ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 56px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 20px; left: 24px; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--navy); display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.step p { color: var(--ink-2); margin: 0; }
/* Illustrations (assets/illustrations/*.svg, 240x180, decorative). Sized here so nothing shifts on load. */
.illo { display: block; height: auto; aspect-ratio: 4 / 3; }
.illo-step { position: absolute; top: 10px; right: 14px; width: 76px; }
.illo-empty { width: 132px; margin: 4px auto 10px; }
.illo-float { float: right; width: 84px; margin: 0 0 8px 12px; }
.illo-tile { width: 150px; margin: 0 0 16px; background: var(--cream); border-radius: var(--radius); padding: 8px; box-sizing: content-box; }
.empty-state { text-align: center; padding: 8px 0; }
.banner .illo-banner { width: 64px; flex: none; margin: -6px 0; }
.tile { background: var(--navy-2); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius); padding: 20px; }
.tile .ico { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 12px; border-radius: 12px; color: var(--gold); background: rgba(201, 168, 76, .12); border: 1px solid rgba(201, 168, 76, .25); }
.tile h3 { font-family: var(--sans); font-size: 1.02rem; margin-bottom: 4px; color: #fff; }
.tile p { font-size: .92rem; margin: 0; }
/* ---------- Feature strip + mini week (homepage, just under the hero) ---------- */
.feature-strip { background: var(--white); border-bottom: 1px solid var(--line); padding: 32px 0; }
.fs-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; }
.fs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.fs-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.fs-list strong { color: var(--ink); }
.fs-ico { flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--gold-soft); color: var(--gold-text); display: grid; place-items: center; }
.mini-week { display: block; text-decoration: none; color: var(--ink); background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
.mini-week:hover { border-color: var(--gold); color: var(--ink); transform: translateY(-1px); }
.mw-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; margin-bottom: 10px; }
.mw-head .icon { color: var(--gold-text); }
.mw-tag { font-size: .7rem; font-weight: 700; letter-spacing: .04em; color: var(--ink-2); background: var(--white); border: 1px solid var(--line); padding: 1px 8px; border-radius: 999px; }
.mw-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.mw-day { display: flex; flex-direction: column; gap: 6px; background: var(--white); border-radius: 10px; padding: 8px 6px; min-height: 84px; }
.mw-day b { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.ev { font-style: normal; font-size: .74rem; font-weight: 600; line-height: 1.25; padding: 4px 6px; border-radius: 6px; border-left: 3px solid currentColor; }
.ev-school { color: var(--navy-3); background: #e8eef7; }
.ev-test { color: #a8380b; background: var(--orange-bg); } /* darker than --orange: small text needs 4.5:1 */
.ev-activity { color: var(--green); background: var(--green-bg); }
.ev-pickup { color: var(--gold-text); background: var(--gold-soft); }
.mw-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 600; font-size: .9rem; color: var(--navy-3); }
@media (max-width: 900px) { .fs-grid { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 420px) { .mw-grid { gap: 4px; } .mw-day { padding: 6px 4px; } .ev { font-size: .68rem; padding: 3px 4px; } }

.trust { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.trust li { display: flex; gap: 14px; align-items: flex-start; }
.trust .check { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--green-bg); color: var(--green); display: grid; place-items: center; font-weight: 700; }
.trust strong { display: block; }

/* ---------- Pricing ---------- */
.price-card { position: relative; }
.price-card.featured { border: 2px solid var(--gold); }
.price-card .badge { position: absolute; top: -12px; right: 20px; }
.price { font-family: var(--serif); font-size: 2.6rem; font-weight: 700; color: var(--heading); line-height: 1; }
.plan-name { font-size: 1.4rem; margin-top: 6px; }
.plan-price { margin: 10px 0 4px; }
.plan-price[data-tbd] { color: var(--gold-text); font-size: 2rem; }
.plan-for { margin: 0; color: var(--ink-2); }
.plan-cta { margin-top: 20px; width: 100%; justify-content: center; min-height: 48px; }
.plan-note { margin: 10px 0 0; text-align: center; }
.plan-extras { margin-top: 24px; }
.plan-extras .plan-price { font-size: 1.6rem; }
.extra-h { font-size: 1.15rem; margin: 0; }
.plan-foot { margin-top: 18px; }
.trial-note { margin: 0 0 18px; padding: 14px 16px; border-left: 4px solid var(--gold); }
.trial-note p { margin: 0 0 8px; }
.trial-h { font-weight: 700; color: var(--heading); }
.trial-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.price small { font-family: var(--sans); font-size: .95rem; color: var(--ink-3); font-weight: 500; }
.feature-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.feature-list li { padding-left: 26px; position: relative; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.badge { display: inline-block; background: var(--gold); color: var(--navy); font-size: .74rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: .03em; }
.badge-soft { background: var(--gold-soft); color: var(--gold-text); }
.badge-navy { background: var(--navy); color: #fff; }
.calc { display: grid; gap: 10px; }
.calc-total { font-family: var(--serif); font-size: 1.8rem; font-weight: 700; color: var(--heading); }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .label { font-weight: 600; font-size: .95rem; }
.hint { font-size: .85rem; color: var(--ink-3); }
input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="time"], input[type="date"], input[type="number"], select, textarea {
  font: inherit; width: 100%; padding: 12px 14px; border: 1.5px solid #d6cfc1; border-radius: var(--radius-sm); background: var(--white); color: var(--ink); min-height: 46px;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--focus); outline: none; box-shadow: 0 0 0 3px rgba(201, 168, 76, .3); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--orange); }
.error { color: #b42318; font-size: .87rem; font-weight: 500; min-height: 0; }
.check-row { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; }
.check-row input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--navy); flex: none; }
.notice { background: var(--gold-soft); border: 1px dashed var(--gold); border-radius: var(--radius-sm); padding: 10px 14px; font-size: .9rem; color: #5c4a14; }
.notice-navy { background: rgba(255, 255, 255, .06); border-color: rgba(201, 168, 76, .5); color: rgba(255, 255, 255, .85); }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form input { flex: 1 1 240px; }
.success-msg { background: var(--green-bg); color: var(--green); border-radius: var(--radius-sm); padding: 14px 16px; font-weight: 600; }
#wl-success { text-align: left; overflow-wrap: anywhere; }
#wl-success p { margin: 0 0 12px; }
#wl-thanks:focus { outline: none; }
.wl-tell, .wl-opts .btn { min-height: 44px; }
.wl-opts { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.wl-sample { display: inline-block; min-height: 44px; padding: 10px 0; color: inherit; text-decoration: underline; }
#wl-success .wl-priv { margin: 8px 0 0; font-weight: 400; color: var(--ink-2); }
/* s46: optional waitlist questions. Closed by default, so the form looks the same until a visitor opens it. */
.wl-q { flex: 1 1 100%; text-align: left; }
.wl-q > summary { cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--navy-3); min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.wl-q > summary::after { content: "+"; font-size: 1.2rem; color: var(--gold-text); line-height: 1; }
.wl-q[open] > summary::after { content: "\2212"; }
.wl-q[open] > summary { margin-bottom: 8px; }
.wl-q > summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-sm); }
.wl-q fieldset { margin: 0 0 12px; }
.wl-q legend { font-size: .95rem; }
.wl-q .check-row { min-height: 44px; align-items: center; margin: 0; cursor: pointer; }
.wl-q .check-row input { flex: none; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 6px; background: var(--cream); padding: 6px; border-radius: 999px; margin-bottom: 22px; }
.tab { flex: 1; background: none; border: 0; padding: 10px 14px; border-radius: 999px; font: 600 .95rem var(--sans); cursor: pointer; color: var(--ink-2); min-height: 44px; }
.tab[aria-selected="true"] { background: var(--white); color: var(--heading); box-shadow: var(--shadow); }

/* ---------- Wizard ---------- */
.progress { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 28px; counter-reset: p; }
.progress li { flex: 1; counter-increment: p; font-size: .85rem; font-weight: 600; color: var(--ink-3); }
.progress li::before { content: ""; display: block; height: 6px; border-radius: 6px; background: var(--line); margin-bottom: 8px; }
.progress li.done::before, .progress li[aria-current="step"]::before { background: var(--gold); }
.progress li[aria-current="step"] { color: var(--heading); }
.option-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 720px) { .option-grid { grid-template-columns: 1fr; } }
.option { position: relative; display: block; cursor: pointer; }
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option .option-body { display: block; border: 2px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--white); height: 100%; transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.option .option-body strong { display: block; font-size: 1.02rem; margin-bottom: 4px; }
.option .option-body span { font-size: .88rem; color: var(--ink-3); }
.option .option-body .badge-soft { color: var(--gold-text); }
.option .option-body .chip-soon { color: var(--ink-2); }
.option input:checked + .option-body { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 168, 76, .25); background: #fffdf7; }
.option input:focus-visible + .option-body { outline: 3px solid var(--focus); outline-offset: 2px; }
.option input:checked + .option-body::after { content: "✓"; position: absolute; top: 12px; right: 14px; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: var(--navy); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.portal-detail { margin-top: 18px; }
.class-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.class-list li { display: flex; gap: 8px; align-items: stretch; }
.class-list li label { flex: 1 1 auto; min-width: 0; display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--white); cursor: pointer; }
.class-list input { width: 20px; height: 20px; accent-color: var(--navy); flex: none; }
.class-list .tag { margin-left: auto; font-size: .78rem; color: var(--ink-3); background: var(--cream); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
/* Add a class: searchable combobox (js/class-picker.js). 16px input so iPhone doesn't zoom; 44px rows. */
.cp { margin-top: 16px; }
.cp .hint { margin: 0 0 8px; }
.cp-input { width: 100%; min-height: 44px; font-size: 16px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--white); color: inherit; }
.cp-input:focus { outline: 3px solid var(--heading); outline-offset: 1px; }
.cp-list { margin-top: 6px; max-height: min(50vh, 360px); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
.cp-head { position: sticky; top: 0; z-index: 1; padding: 6px 14px; font-size: .78rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-3); background: var(--cream); }
.cp-opt { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; cursor: pointer; border-top: 1px solid var(--line); }
.cp-opt[aria-selected="true"] { background: var(--navy); color: #fff; }
.cp-opt[aria-selected="true"] .tag { background: var(--white); color: var(--heading); }
.cp-opt[aria-disabled="true"] { cursor: default; opacity: .7; }
.cp-opt .tag, .cp-row .tag { margin-left: auto; font-size: .74rem; color: var(--ink-3); background: var(--cream); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.cp-opt .tag-core { color: var(--heading); font-weight: 700; }
.cp-empty { padding: 12px 14px; color: var(--ink-3); }
.cp-added { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.cp-added:empty { display: none; }
.cp-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px 8px 14px; border: 1.5px dashed var(--line); border-radius: var(--radius-sm); background: var(--white); }
.cp-row-txt { flex: 1 1 160px; min-width: 0; }
.cp-row-txt small { display: block; color: var(--ink-3); font-size: .8rem; }
.cp-core { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px; cursor: pointer; font-weight: 600; }
.cp-core input { width: 20px; height: 20px; accent-color: var(--navy); }
.cp-remove, .cls-remove, .cp-restore { min-height: 44px; min-width: 44px; }
.cp-removed { margin-top: 10px; }
.cp-removed-link { min-height: 44px; padding: 0 4px; background: none; border: 0; color: var(--heading); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.cp-removed-list { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 8px; }
.cp-removed-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 10px 6px 14px; border: 1.5px dashed var(--line); border-radius: var(--radius-sm); background: var(--white); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span { display: inline-flex; align-items: center; justify-content: center; min-width: 56px; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); font-weight: 600; cursor: pointer; }
.pill input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.pill input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

/* ---------- Dashboard ---------- */
.dash-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.dash-top .btn-row { margin-top: 6px; }
.headline { font-family: var(--serif); font-size: clamp(1.3rem, 2.6vw, 1.75rem); line-height: 1.3; margin: 8px 0 0; color: #fff; max-width: 760px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: -28px; position: relative; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.stat b { display: block; font-family: var(--serif); font-size: 1.9rem; color: var(--heading); line-height: 1.1; }
.stat span { font-size: .82rem; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.callout-gold { border: 2px solid var(--gold); background: linear-gradient(180deg, #fffdf6, #fff); }
.callout-gold .big, .note-card .big { font-size: 1.15rem; font-weight: 600; color: var(--heading); margin: 0 0 8px; }
.callout-gold ul, .note-card ul { margin: 8px 0 0; padding-left: 20px; color: var(--ink-2); }
details.math { margin-top: 12px; }
details.math summary, details.fold summary { cursor: pointer; font-weight: 600; color: var(--navy-3); min-height: 44px; display: flex; align-items: center; }
details.math ol { font-size: .9rem; color: var(--ink-2); padding-left: 20px; margin: 10px 0 0; }
details.math li { margin-bottom: 4px; }
.class-card { display: grid; gap: 10px; }
.class-card .cc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.class-card h3 { font-family: var(--sans); font-size: 1.02rem; margin: 0; }
.class-card .cc-avg { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.class-card .cc-avg b { font-family: var(--serif); font-size: 2rem; color: var(--heading); line-height: 1; }
.class-card .letter { font-weight: 700; color: var(--ink-2); }
.class-card .next { font-size: .88rem; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 10px; }
.class-card.c-orange { border-top: 4px solid var(--orange); }
.class-card.c-yellow { border-top: 4px solid #d9a400; }
.class-card.c-green { border-top: 4px solid var(--green); }
.banner { border-radius: var(--radius); padding: 16px 20px; display: flex; gap: 12px; align-items: flex-start; }
.banner-yellow { background: var(--amber-bg); color: #5f4600; border: 1px solid #f1dfaa; }
.banner-navy { background: var(--navy); color: #fff; }
.banner h3 { font-family: var(--sans); font-size: 1rem; margin: 0 0 4px; }
.banner ul { margin: 6px 0 0; padding-left: 18px; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list .when { flex: none; min-width: 76px; font-size: .8rem; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; padding-top: 2px; }
.list .what { flex: 1; min-width: 0; }
.list .what small { display: block; color: var(--ink-3); }
.empty { color: var(--ink-3); font-style: italic; margin: 0; }
.section-title { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); margin: 0 0 12px; font-weight: 700; }
.celebrate { background: var(--green-bg); border: 1px solid #bfe0cd; color: #1d4a36; }
.celebrate h3 { font-family: var(--sans); font-size: 1rem; }
.celebrate ul { margin: 0; padding-left: 18px; }
.from-school .msg { padding: 10px 0; border-bottom: 1px solid var(--line); }
.from-school .msg:last-child { border-bottom: 0; }
.from-school .msg strong { display: block; }
.dash-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .dash-grid { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 20px; }
.loading { display: flex; align-items: center; gap: 12px; color: var(--ink-2); padding: 40px 0; justify-content: center; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--gold); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.is-running .refresh-target { opacity: .45; transition: opacity var(--dur) var(--ease); }
.lastrun { font-size: .85rem; color: rgba(255, 255, 255, .65); }
.fold { background: var(--white); border-radius: var(--radius); padding: 14px 20px; box-shadow: var(--shadow); }
.fold[open] summary { margin-bottom: 8px; }
.tag-new { background: var(--gold); color: var(--navy); font-size: .7rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }
/* v1.2: small data tables (schedule, report card / progress report) */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.mini-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.mini-table th, .mini-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.mini-table thead th { font-size: .75rem; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.mini-table tbody th { font-weight: 600; color: var(--heading); }
.mini-table tbody tr:last-child th, .mini-table tbody tr:last-child td { border-bottom: 0; }
.mini-table tr.muted th, .mini-table tr.muted td { color: var(--ink-3); }
.tag-muted { font-size: .72rem; font-weight: 600; color: var(--ink-3); background: var(--cream); padding: 2px 8px; border-radius: 999px; margin-left: 6px; white-space: nowrap; }

/* ---------- Settings ---------- */
.settings-grid { display: grid; gap: 20px; }
.switch-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.switch-row:last-child { border-bottom: 0; }
.switch-row .txt { flex: 1; }
.switch-row .txt small { display: block; color: var(--ink-3); }
.switch { position: relative; width: 52px; height: 30px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch .track { position: absolute; inset: 0; background: #cfd4dc; border-radius: 999px; transition: background var(--dur) var(--ease); }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform var(--dur) var(--ease); }
.switch input:checked + .track { background: var(--green); }
.switch input:checked + .track::after { transform: translateX(22px); }
.switch input:focus-visible + .track { outline: 3px solid var(--focus); outline-offset: 2px; }
.portal-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.portal-row:last-child { border-bottom: 0; }
.portal-row .txt { flex: 1; min-width: 180px; }
.portal-row .txt small { display: block; color: var(--ink-3); }
.save-bar { position: sticky; bottom: 0; background: rgba(245, 240, 232, .94); backdrop-filter: blur(6px); padding: 14px 0; margin-top: 10px; border-top: 1px solid var(--line); z-index: 5; }

/* ---------- FAQ ---------- */
.faq details { background: var(--white); border-radius: var(--radius-sm); padding: 0 20px; margin-bottom: 10px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 600; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--gold-text); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 18px; margin: 0; color: var(--ink-2); }

/* ---------- Tutor ---------- */
.tutor-layout { display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start; }
@media (max-width: 960px) { .tutor-layout { grid-template-columns: 1fr; } }
.tutor-controls { position: sticky; top: 84px; }
@media (max-width: 960px) { .tutor-controls { position: static; } }
.sheet { background: var(--white); border-radius: 6px; box-shadow: var(--shadow); padding: 40px 44px; color: #111; font-family: var(--sans); }
@media (max-width: 620px) { .sheet { padding: 24px 18px; } }
.sheet-head { border-bottom: 2px solid #111; padding-bottom: 12px; margin-bottom: 18px; }
.sheet-head h2 { font-size: 1.35rem; margin: 0 0 4px; }
.sheet-head .meta { font-size: .9rem; color: #444; }
.name-lines { display: flex; gap: 24px; flex-wrap: wrap; margin: 12px 0 20px; font-size: .95rem; }
.name-lines span { flex: 1 1 200px; border-bottom: 1px solid #333; padding-bottom: 2px; min-height: 26px; }
.problems { padding-left: 0; list-style: none; margin: 0; counter-reset: q; }
.problems li { counter-increment: q; padding: 10px 0 0 34px; position: relative; min-height: 96px; border-bottom: 1px dotted #ccc; break-inside: avoid; page-break-inside: avoid; }
.problems li::before { content: counter(q) "."; position: absolute; left: 0; top: 10px; font-weight: 700; }
.problems.compact li { min-height: 0; padding-bottom: 8px; }
.key { margin-top: 36px; }
.key-head { border-top: 2px dashed #bbb; padding-top: 22px; }
.sheet-foot { margin-top: 18px; font-size: .78rem; color: #666; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sheet-placeholder { text-align: center; color: var(--ink-3); padding: 60px 20px; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 200; width: min(92vw, 420px); }
.toast { background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); font-weight: 500; border-left: 4px solid var(--gold); animation: toast-in var(--dur) var(--ease); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.toast-undo { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; padding-bottom: 4px; }
.toast-btn { min-height: 44px; min-width: 44px; padding: 0 12px; background: none; border: 0; color: var(--gold); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.toast-out { opacity: 0; transform: translateY(8px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Add to Home Screen sheet (js/pwa.js) ---------- */
.a2hs { position: fixed; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 190; width: min(94vw, 440px); background: var(--white); color: var(--ink); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 18px 18px 16px; animation: toast-in var(--dur) var(--ease); }
.a2hs-title { font-size: 1.05rem; margin: 0 28px 10px 0; line-height: 1.3; }
.a2hs-text { margin: 0 0 12px; }
.a2hs-steps { margin: 0 0 12px; padding-left: 1.3em; display: grid; gap: 8px; }
.a2hs-steps li { line-height: 1.5; }
.a2hs-ico { display: inline-block; vertical-align: -5px; color: #0a7aff; }
.a2hs-actions { display: flex; gap: 8px; flex-wrap: wrap; }
/* Notification priming sheet (E3): reuses the .a2hs sheet; scrolls if the screen is short. */
.np { max-height: calc(100dvh - 24px - env(safe-area-inset-bottom, 0px)); overflow-y: auto; overscroll-behavior: contain; }
.np-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.np-list li { display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: start; }
.np-list b { display: block; color: var(--heading); font-size: .95rem; line-height: 1.3; }
.np-list span:not(.np-ico) { display: block; color: var(--ink-2); font-size: .88rem; line-height: 1.45; }
.np-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--gold-soft); color: var(--gold-text); display: inline-flex; align-items: center; justify-content: center; }
.np-safe { margin: 0 0 6px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--cream); color: var(--ink); font-size: .88rem; line-height: 1.45; }
.np-next { margin: 0 0 12px; }
.a2hs-close { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; border: 0; background: transparent; font-size: 1.6rem; line-height: 1; color: var(--ink-2); cursor: pointer; border-radius: 999px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .75); padding: 36px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; color: #fff; font-size: 1.1rem; }
.site-footer p { margin: 0; }
.credit { color: var(--gold); font-weight: 600; }
.footer-note { font-size: .85rem; }
/* Woman-owned business badge (self-declared; no certification claimed) */
.footer-credit { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.footer-credit .credit { margin: 0; }
.wob-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; color: rgba(255, 255, 255, .88); border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; padding: 3px 10px; }
.wob-ico { flex: none; }
.about-block { max-width: 720px; margin: 0 auto; text-align: center; }
.about-block .wob-badge-lg { display: inline-flex; margin: 8px 0 0; color: var(--gold-text); border-color: var(--gold-text); font-size: .95rem; padding: 5px 14px; }

@media (max-width: 620px) {
  .section { padding: 56px 0; }
  .hero { padding: 48px 0 64px; }
  .card { padding: 20px; }
  .card.step { padding-top: 64px; }
  .step::before { left: 20px; width: 34px; height: 34px; font-size: 1rem; }
  .step h3 { font-size: 1.35rem; }
  .step p { font-size: 1.05rem; }
  .illo-step { width: 64px; top: 8px; }
  .illo-float { width: 68px; }
  .bm-stats { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  /* Everything still shows (spinner ring, skeleton blocks, highlighter swipe); it just doesn't move. */
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Print ---------- */
/* ---------- Schedule: calendar, family, photos (v1.5) ---------- */
.chip-soon { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .04em; color: var(--ink-2); background: var(--cream); border: 1px solid var(--line); padding: 1px 8px; border-radius: 999px; vertical-align: middle; }
.sched-tabs { max-width: 520px; }
.cal-bar { display: grid; gap: 12px; margin-bottom: 16px; }
.cal-views { margin: 0; max-width: 460px; }
.cal-nav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cal-nav .btn-sm { min-height: 44px; }
.cal-arrow { font-size: 1.4rem; width: 44px; padding: 0; }
.cal-range { font: 700 1.05rem var(--sans); margin: 0 auto 0 6px; color: var(--heading); }
#cal-add { margin-left: auto; }
@media (max-width: 620px) { .cal-range { flex-basis: 100%; order: -1; margin: 0; } #cal-add { flex: 1; } }

.cal-month { display: grid; gap: 4px; margin-bottom: 16px; }
.cal-wd, .cal-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-wd span { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); text-align: center; }
.cal-cell { position: relative; width: 100%; min-height: 76px; display: flex; flex-direction: column; align-items: stretch; gap: 3px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); font: inherit; text-align: left; cursor: pointer; color: var(--ink); }
.cal-cell:hover { border-color: var(--gold); }
.cal-cell:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.cal-cell.other { background: #faf8f4; color: var(--ink-3); }
.cal-cell.is-today .num { background: var(--navy); color: #fff; border-radius: 999px; padding: 0 7px; }
.cal-cell.is-sel { border: 2px solid var(--gold); box-shadow: 0 0 0 2px rgba(201, 168, 76, .25); }
.cal-cell .num { font-weight: 700; font-size: .85rem; align-self: flex-start; }
.cal-pk { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 2px; }
.cal-dots { display: grid; gap: 2px; min-width: 0; }
.cal-dot { display: inline-block; width: 10px; height: 10px; border-radius: 999px; vertical-align: middle; background: var(--ink-3); }
.cal-dots .cal-dot { display: block; width: auto; height: auto; border-radius: 4px; padding: 1px 4px; font-size: .7rem; line-height: 1.3; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-more { font-size: .7rem; color: var(--ink-3); font-weight: 600; }
@media (max-width: 620px) {
  .cal-cell { min-height: 52px; padding: 4px; }
  .cal-dots { display: flex; flex-wrap: wrap; gap: 3px; }
  .cal-dots .cal-dot { width: 8px; height: 8px; padding: 0; border-radius: 999px; }
  .cal-dot-t, .cal-more { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
.ev-school { background: #22385a; } .ev-sports { background: #2d6a4f; } .ev-tutoring { background: #5b4bb5; }
.ev-club { background: #9c3d6b; } .ev-appointment { background: #c2410c; } .ev-pickup { background: #8a6a1c; } .ev-other { background: #6b7486; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin-top: 14px; }

.cal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 900px) { .cal-week { grid-template-columns: 1fr; } }
.cal-day { margin-bottom: 14px; }
.cal-week .cal-day { margin: 0; background: #faf8f4; border-radius: 10px; padding: 8px; }
.cal-day-h { font: 700 .82rem var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin: 0 0 6px; }
.cal-day-h.is-today { color: var(--heading); }
.cal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cal-ev { width: 100%; min-height: 44px; display: flex; gap: 10px; align-items: flex-start; text-align: left; font: inherit; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-left: 5px solid #6b7486; border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.cal-ev:hover { border-color: var(--gold); }
/* s10y9: "Add to calendar" with its small "Works with Google, Apple and Outlook" line under the label */
.btn-has-sub { flex-direction: column; gap: 2px; }
.btn-sub { display: block; font-size: .75rem; font-weight: 500; line-height: 1.2; opacity: .85; }
.cal-list .ics-link { display: inline-block; margin: 2px 0 0 15px; padding: 10px 4px; min-height: 24px; color: var(--ink-2); text-decoration: underline; }
.cal-ics .field { margin: 0; }
.cal-ev:focus-visible { outline: 3px solid var(--focus); }
.cal-ev.ev-school { border-left-color: #22385a; } .cal-ev.ev-sports { border-left-color: #2d6a4f; } .cal-ev.ev-tutoring { border-left-color: #5b4bb5; }
.cal-ev.ev-club { border-left-color: #9c3d6b; } .cal-ev.ev-appointment { border-left-color: #c2410c; } .cal-ev.ev-pickup { border-left-color: #8a6a1c; } .cal-ev.ev-other { border-left-color: #6b7486; }
.cal-ev.cal-ev { background: var(--white); }
.cal-time { flex: none; min-width: 64px; font-size: .78rem; font-weight: 700; color: var(--ink-3); padding-top: 2px; }
.cal-week .cal-time { min-width: 0; }
.cal-week .cal-ev { flex-direction: column; gap: 2px; }
.cal-what { min-width: 0; }
.cal-what strong { display: block; overflow-wrap: anywhere; }
.cal-what small { display: block; color: var(--ink-3); }
.cal-pickup { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; padding: 6px 10px; background: var(--gold-soft); border-radius: 8px; }
.cal-warn { background: var(--orange-bg); color: #8a2c06; border-radius: 8px; padding: 6px 10px; font-size: .85rem; margin: 0 0 6px; }
.fam-dot { display: inline-block; width: 10px; height: 10px; border-radius: 999px; margin-right: 6px; vertical-align: middle; }
.fam-dot-lg { width: 18px; height: 18px; margin: 3px 0 0; flex: none; }

.cal-dialog { border: 0; border-radius: var(--radius); padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow: auto; box-shadow: var(--shadow-lg); color: var(--ink); -webkit-overflow-scrolling: touch; }
.cal-dialog::backdrop { background: rgba(15, 27, 45, .55); }
.cal-dialog.dlg-fallback { position: fixed; inset: 12px; margin: auto; z-index: 1000; height: fit-content; }
.dlg-body { padding: 22px 20px calc(20px + env(safe-area-inset-bottom)); }
.dlg-body h2 { font-size: 1.35rem; margin: 0 0 14px; }
.ev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 420px) { .ev-grid { grid-template-columns: 1fr; } }
.ev-scope { border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; margin: 0 0 16px; }
.ev-scope legend { font-weight: 600; font-size: .95rem; padding: 0 4px; }
.ev-scope .check-row, .dlg-body .check-row { min-height: 44px; align-items: center; margin: 0; cursor: pointer; }
.dlg-actions { position: sticky; bottom: 0; background: var(--white); padding-top: 10px; }

.fam-people { list-style: none; margin: 0 0 14px; padding: 0; }
.fam-people li { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.fam-people .what { flex: 1; min-width: 100px; }
.fam-people .what small { display: block; color: var(--ink-3); }
.fam-colors { display: flex; gap: 4px; border: 0; padding: 0; margin: 0; }
.set-say { margin: 10px 0 4px; }
.set-say label { display: block; font-size: .92rem; color: var(--ink-2); margin-bottom: 4px; }
.set-say-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.set-say-row input { flex: 1 1 160px; min-width: 0; min-height: 44px; padding: 8px 12px; font: inherit; border: 1px solid var(--line, #cfd4dc); border-radius: 10px; background: var(--card, #fff); color: var(--ink); }
.set-say-row .btn { min-height: 44px; }
.set-say .set-say-note { display: block; margin-top: 4px; }
.fam-swatch { position: relative; display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }
.fam-swatch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.fam-swatch span:not(.sr-only) { width: 24px; height: 24px; border-radius: 999px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6); }
.fam-swatch input:checked + span { outline: 3px solid var(--heading); outline-offset: 2px; }
.fam-swatch input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.fam-add, .fam-ex-form { display: flex; flex-wrap: wrap; gap: 0 12px; align-items: flex-end; }
.fam-add .field, .fam-ex-form .field { flex: 1 1 160px; }
.fam-add .btn, .fam-ex-form .btn { margin-bottom: 16px; min-height: 46px; }
.fam-week { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.fam-day { border: 1px solid var(--line); border-left: 5px solid var(--line); border-radius: 10px; padding: 8px 12px 0; margin: 0; min-width: 0; }
.fam-day legend { font-weight: 700; padding: 0 4px; }
.fam-kidrow { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; }
.fam-kidrow .field:last-child { grid-column: 1 / -1; }
.fam-avatar { width: 44px; height: 44px; border-radius: 999px; background: var(--navy); color: var(--gold); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; flex: none; }
.fam-avatar img { width: 100%; height: 100%; object-fit: cover; }

.ph-widget { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ph-img { display: inline-flex; align-items: center; justify-content: center; background: var(--cream); border: 1px dashed #d6cfc1; color: var(--ink-3); font-size: 1.4rem; overflow: hidden; flex: none; }
img.ph-img { border: 1px solid var(--line); object-fit: cover; }
.ph-avatar { width: 72px; height: 72px; border-radius: 999px; }
.ph-cover { width: 160px; height: 90px; border-radius: 10px; }
.ph-flyer { width: 96px; height: 128px; border-radius: 8px; }
img.ph-flyer { object-fit: contain; background: #fff; }
.photo-list { display: grid; gap: 18px; }
.hw-title { margin: 0 0 6px; font-size: .95rem; }
.hw-box { border: 1.5px dashed #d6cfc1; border-radius: var(--radius-sm); padding: 12px; }
.hw-box .btn svg { flex: none; }
.hw-box .hint { margin: 8px 0 0; }
.hw-kidrow { margin-bottom: 10px; }
.hw-pages { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.hw-thumb { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.hw-open { padding: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; width: 88px; height: 112px; overflow: hidden; }
.hw-open img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hw-viewer { position: fixed; inset: 0; z-index: 1000; background: rgba(15, 27, 45, .92); display: flex; align-items: center; justify-content: center; padding: calc(60px + env(safe-area-inset-top)) 12px calc(12px + env(safe-area-inset-bottom)); }
.hw-viewer img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; background: #fff; }
.hw-viewer-close { position: absolute; top: calc(8px + env(safe-area-inset-top)); right: 12px; }
@media print { .hw-viewer { display: none !important; } }

.brief-cover { width: 100%; max-height: 220px; object-fit: cover; border-radius: var(--radius); margin: 20px 0 0; display: block; box-shadow: var(--shadow); }
.bus-line { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin: 8px 0 0; padding: 8px 12px; max-width: 520px; border-radius: 14px; background: rgba(255, 255, 255, .08); color: #fff; font-weight: 600; font-size: .95rem; }
.bus-line[hidden] { display: none; }
.bus-row.is-late { color: var(--gold); }
.bus-open { color: #fff; text-decoration: underline; text-underline-offset: 2px; margin-left: 4px; font-weight: 700; }
.bus-copy { font-size: .8rem; font-weight: 500; color: #d9dfeb; }
.bus-kid { border: 0; border-left: 4px solid var(--kid, var(--line)); padding: 0 0 0 12px; margin: 0 0 16px; }
.bus-kid legend { font-weight: 700; padding: 0; }
.bus-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 8px 0; }
.bus-late { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.bus-late-h { font-size: 1rem; margin: 0 0 6px; }
.bus-late-h small { font-weight: 500; color: var(--ink-3); }
.pickup-line { display: inline-flex; align-items: center; gap: 8px; margin: 10px 0 0; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; font-weight: 600; font-size: .95rem; }
.habit-line { display: inline-flex; align-items: center; gap: 8px; margin: 10px 0 0; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; font-weight: 600; font-size: .95rem; }
.habit-line[hidden] { display: none; }
.habit-line [data-icon] { color: var(--gold); display: inline-flex; width: 18px; height: 18px; }
.brief-avatar { width: 48px; height: 48px; border-radius: 999px; object-fit: cover; vertical-align: middle; margin-right: 10px; border: 2px solid var(--gold); }

@media print {
  @page { margin: 0.6in; }
  body { background: #fff !important; color: #000 !important; font-size: 12pt; }
  .no-print, .site-header, .site-footer, .page-head, .tutor-controls, .toasts, .skip-link { display: none !important; }
  .page-body { padding: 0 !important; }
  .container { max-width: none; padding: 0; }
  .tutor-layout { display: block; }
  .sheet { box-shadow: none !important; border-radius: 0; padding: 0; color: #000; }
  .sheet * { color: #000 !important; }
  .problems li { min-height: 1.15in; border-bottom: 0; }
  .problems.compact li { min-height: 0; }
  .key { page-break-before: always; break-before: page; margin-top: 0; }
  .key-head { border-top: 0; padding-top: 0; }
  a { color: #000; text-decoration: none; }
}

/* waitlist bot-trap field: keep it 1px so it can't widen the page on phones */
input.sr-only { width: 1px !important; min-width: 0 !important; max-width: 1px !important; padding: 0 !important; }

/* ---------- Premium design pass (8d): numbers, bento, the brief note, kid colors, skeletons, motion ---------- */
/* Numbers line up in columns everywhere (the hero sample card keeps its own look). */
.stat b, .cc-avg b, .price, .calc-total, .mini-table td, .list .when, .cal-time, .cal-cell .num, .note-math, .light { font-variant-numeric: lining-nums tabular-nums; }

/* "What we catch": bento grid on the navy band. Mixed sizes, 6 tiles shown, the rest behind "See all". */
.bento { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; }
.bento .tile-lg { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; padding: 26px; background: linear-gradient(160deg, var(--navy-3), var(--navy-2) 70%); }
.bento .tile-wide { grid-column: span 2; }
.tile-lg h3 { font-family: var(--serif); font-size: 1.55rem; margin-bottom: 8px; }
.tile-lg p { font-size: 1rem; }
.tile-lg .ico { width: 56px; height: 56px; border-radius: 16px; }
.tile-slip { margin-top: auto; padding: 12px 14px 12px 16px; border-radius: 10px; color: var(--ink); background-color: var(--paper);
  background-image: repeating-linear-gradient(180deg, transparent 0 23px, var(--rule) 23px 24px); transform: rotate(-1deg); box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
.section-navy .tile-slip p { color: var(--ink-2); font-size: .9rem; margin: 0; line-height: 24px; }
.section-navy .tile-slip p strong { color: var(--ink); }
.section-navy .tile-slip .note-math { color: var(--pen); margin-top: 2px; }
.bento-more { margin-top: 16px; }
.bento-more > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1px solid rgba(201, 168, 76, .45); color: var(--gold); font-weight: 600; }
.bento-more > summary::-webkit-details-marker { display: none; }
.bento-more > summary:hover { background: rgba(201, 168, 76, .1); }
.bento-more > summary .icon { transition: transform var(--dur) var(--ease); }
.bento-more[open] > summary .icon { transform: rotate(180deg); }
.bento-more .bento { margin-top: 16px; }
@media (max-width: 900px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bento .tile-lg { grid-row: auto; } }
@media (max-width: 620px) { .bento { grid-template-columns: 1fr; } .bento .tile-lg, .bento .tile-wide { grid-column: auto; } .tile-slip { margin-top: 16px; } }

/* The brief note: ruled paper, ONE highlighter swipe, ballpoint margin notes that show the math. */
.note-card { position: relative; background-color: var(--paper); background-image: repeating-linear-gradient(180deg, transparent 0 27px, var(--rule) 27px 28px); background-position: 0 14px;
  border: 1px solid #ece4d3; border-left: 6px solid var(--kid, var(--kid-1)); }
.note-card .note-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.note-card .section-title { margin: 0; }
.note-card .big { font-size: 1.18rem; line-height: 1.55; }
.note-grid { display: grid; gap: 4px 20px; }
@media (min-width: 1000px) {
  .note-grid { grid-template-columns: minmax(0, 1fr) 190px; align-items: start; }
  .note-margin { border-left: 1px dashed rgba(47, 95, 208, .3); padding-left: 14px; }
}
mark.hl { color: inherit; padding: 0 .12em; background-color: transparent; background-image: linear-gradient(100deg, rgba(255, 217, 90, .35), var(--hl) 6%, var(--hl) 94%, rgba(255, 217, 90, .45));
  background-repeat: no-repeat; background-size: 100% 72%; background-position: 0 80%; -webkit-box-decoration-break: clone; box-decoration-break: clone; border-radius: 3px; }
.note-math { font-family: var(--hand); color: var(--pen); font-size: 1.15rem; line-height: 1.35; margin: 4px 0 0; transform: rotate(-1deg); transform-origin: left center; }
.note-math + .note-math { margin-top: 6px; }
.kid-label { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; color: var(--ink-2); }
.kid-label::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--kid, var(--kid-1)); flex: none; }
.fam-avatar.kid-ring { box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--kid, var(--kid-1)); }
.fam-people li.kid-edge { border-left: 4px solid var(--kid, var(--kid-1)); padding-left: 12px; }

/* Skeleton loaders: the shape of what's coming instead of "Loading..." text. Static under reduced motion. */
.skel { display: grid; gap: 14px; }
.skel-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 720px) { .skel-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.skel-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; display: grid; gap: 12px; }
.skel-block, .skel-line { position: relative; overflow: hidden; background: #ebe5d8; }
.skel-block { min-height: 84px; border-radius: var(--radius); }
.skel-line { height: 12px; border-radius: 6px; width: 100%; }
.skel-line.w-40 { width: 40%; } .skel-line.w-60 { width: 60%; } .skel-line.w-80 { width: 80%; }
.skel-line.tall { height: 22px; }
.skel-block::after, .skel-line::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent); animation: skel-shine 1.2s var(--ease) infinite; }
@keyframes skel-shine { to { transform: translateX(100%); } }
li.skel-li { display: grid; gap: 8px; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }

/* Entrance motion: only when the device allows motion. Without JS or with reduced motion, everything is simply visible. */
@keyframes fade-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes hl-swipe { from { background-size: 0% 72%; } to { background-size: 100% 72%; } }
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--dur); animation-timing-function: var(--ease); }
  .motion-ok .reveal { opacity: 0; transform: translateY(10px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
  .motion-ok .reveal.is-in { opacity: 1; transform: none; }
  .enter > * { animation: fade-up var(--dur) var(--ease) both; }
  .enter > :nth-child(2) { animation-delay: 50ms; } .enter > :nth-child(3) { animation-delay: 100ms; } .enter > :nth-child(n+4) { animation-delay: 150ms; }
  .enter mark.hl { animation: hl-swipe var(--dur) var(--ease) 400ms both; }
}
@media print { .reveal { opacity: 1 !important; transform: none !important; } .note-card { background-image: none; } }

/* Footer links (Privacy, Accessibility) */
.footer-links a { color: rgba(255, 255, 255, .88); display: inline-block; padding: 12px 4px; }

/* Bottom tab bar: app pages and Home Screen launches, phones and tablets only (top nav stays at 1024px+). */
.tabbar { display: none; }
body { padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
@media (max-width: 1023.98px) {
  .has-tabbar .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; background: var(--navy); border-top: 1px solid rgba(255, 255, 255, .12); padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 56px; color: rgba(255, 255, 255, .8); text-decoration: none; font-size: .75rem; font-weight: 600; letter-spacing: .01em; }
  .tabbar a:hover { color: #fff; }
  .tabbar a[aria-current="page"] { color: var(--gold); }
  .tabbar a:focus-visible { outline: 2px solid var(--focus); outline-offset: -4px; border-radius: 10px; }
  .has-tabbar body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
  .has-tabbar .toasts { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .has-tabbar .a2hs { bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  .app-page .nav-toggle, .app-page .nav-links { display: none !important; }
}
/* While the iPhone keyboard is up the tab bar steps aside (js/app.js wireKeyboard); WebKit could otherwise strand it mid-screen. */
@media (max-width: 1023.98px) and (pointer: coarse) {
  .has-tabbar.kb-open .tabbar { display: none; }   /* body keeps its bottom padding, so nothing jumps */
}
/* Fix 2026-10-23 (iPhone: tab bar stuck mid-screen / scrolling with History and Schedule): give the fixed bar its own layer so
   WebKit keeps it on the viewport, and turn off cross-page view transitions on touch screens, where WebKit can leave fixed
   elements laid out against the old page after the transition. Desktop (mouse) keeps the page fade. */
.has-tabbar .tabbar { -webkit-transform: translateZ(0); transform: translateZ(0); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
@media (pointer: coarse) { @view-transition { navigation: none; } }
@media print { .tabbar { display: none !important; } .has-tabbar body { padding-bottom: 0; } }

/* Settings list rows (Help, About): full-width 44px+ rows with a chevron */
.set-list { list-style: none; margin: 0; padding: 0; }
.set-list li { border-bottom: 1px solid var(--line); }
.set-list li:last-child { border-bottom: 0; }
.set-row { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 0; color: var(--ink); text-decoration: none; }
a.set-row:hover { color: var(--gold-text); }
.set-row .txt { flex: 1; }
.set-row .txt small { display: block; color: var(--ink-3); }
.set-row .icon { flex: none; color: var(--ink-3); }
.set-row .set-val { color: var(--ink-3); font-size: .92rem; }
.switch-row.is-soon .txt { color: var(--ink-2); }

/* Brief: sticky section chips and Show all lists */
.jump-chips { position: sticky; top: var(--hdr-h, 64px); z-index: 40; display: flex; gap: 8px; overflow-x: auto; padding: 10px 2px; margin: 16px 0 0; background: var(--cream); scrollbar-width: none; }
/* Fix s10y18 (phone: the filter bar stuck partway down the screen over the cards): JS used to write the desktop header's measured height
   into an inline `top`. On phones and tablets the header now scrolls away, and the bar pins at the very top of the screen below the
   status bar (safe-area inset) with a solid background, under the bottom tab bar (z-index 150). Desktop keeps pinning under the sticky header. */
@media (max-width: 1023.98px) {
  .has-tabbar .site-header { position: relative; }
  .jump-chips { top: 0; margin-top: 8px; padding-top: calc(10px + env(safe-area-inset-top, 0px)); background: var(--cream); isolation: isolate; }
  .jump-target { scroll-margin-top: calc(76px + env(safe-area-inset-top, 0px)); }
}
.found-fold { padding: 0; }
.found-fold > summary { min-height: 44px; display: flex; align-items: center; padding: 10px 16px; font-weight: 700; cursor: pointer; border-left: 4px solid var(--gold); border-radius: var(--radius, 12px); }
.found-fold > summary .found-review { color: var(--gold-text, var(--ink)); text-decoration: underline; margin-left: .3em; }
.found-fold[open] > summary { border-bottom: 1px solid var(--line); border-bottom-left-radius: 0; }
.found-fold > .found-card { margin: 10px 12px; }
.jump-chips::-webkit-scrollbar { display: none; }
.jump-chips a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--white); border: 1.5px solid var(--line); color: var(--ink); font-weight: 600; font-size: .92rem; text-decoration: none; }
.jump-chips a:hover { border-color: var(--gold); color: var(--ink); }
.jump-target { scroll-margin-top: 140px; }
.list > li[hidden] { display: none; }
.show-all { margin-top: 12px; }

/* Sample brief (dashboard.html?sample=1): a clear Sample label, Try it buttons, one primary action. */
.chip-sample { display: inline-block; font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); background: var(--gold); padding: 2px 10px; border-radius: 999px; vertical-align: middle; }
.sample-bar { margin-top: 14px; padding: 14px 16px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .06); border: 1px dashed rgba(201, 168, 76, .5); color: rgba(255, 255, 255, .88); }
.sample-bar p { margin: 0 0 10px; font-size: .92rem; }
.try-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.try-row .btn { min-height: 44px; }

/* Class card: tap-to-open recent grades */
.cc-recent summary { cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--navy-3); min-height: 44px; display: flex; align-items: center; }
.cc-recent ul { list-style: none; margin: 0; padding: 0; }
.cc-recent li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.cc-recent li small { display: block; color: var(--ink-3); font-size: .8rem; }
.cc-recent li b { font-variant-numeric: lining-nums tabular-nums; color: var(--heading); white-space: nowrap; }

/* ---------- 10d: child switcher, grouped Settings, text size, dark theme ---------- */
/* Child switcher: tabs on wide screens, a scrolling segmented control on phones. Each kid keeps their color dot. */
.kid-switch { display: flex; gap: 6px; padding: 4px; margin: 0 0 14px; background: var(--cream); border-radius: 999px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.kid-switch::-webkit-scrollbar { display: none; }
.kid-tab { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font: 600 .95rem var(--sans); cursor: pointer; white-space: nowrap; }
.kid-tab[aria-selected="true"] { background: var(--white); color: var(--heading); box-shadow: var(--shadow); }
.kid-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--kid, var(--kid-1)); flex: none; }
.kid-dot-lg { width: 14px; height: 14px; margin: 0 4px; }
@media (min-width: 720px) {
  .kid-switch { background: none; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0; gap: 4px; }
  .kid-tab { flex: 0 0 auto; border-radius: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; }
  .kid-tab[aria-selected="true"] { background: none; box-shadow: none; border-bottom-color: var(--kid, var(--kid-1)); }
}
.fam-today { background: var(--cream); border-radius: var(--radius-sm); padding: 10px 14px; margin: 0 0 14px; }
.fam-today .label { margin: 0 0 4px; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.fam-today ul { list-style: none; margin: 0; padding: 0; }
.fam-today li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 3px 0; }
.msg .kid-label { margin-right: 6px; }
/* s10g: ParentSquare post links, school groups, student picker, Connected accounts row */
.msg .msg-open { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--navy-3); }
.from-school .ps-school { margin: 14px 0 2px; color: var(--gold-text); }
.ps-waiting { margin: 8px 0; }
.ps-match-row select { min-height: 44px; font-size: 16px; }
.acct-wrap, .acct-all { margin-top: 14px; }
.acct-title { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold) !important; margin: 0 0 6px !important; }
.acct-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.acct { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 2px 4px 2px 14px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; color: #fff; font-size: .9rem; }
.acct.acct-on { padding-right: 14px; }
.acct-name { font-weight: 700; }
.acct-state { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .85); }
.acct-dot { width: 8px; height: 8px; border-radius: 50%; background: #7fd3a6; }
.acct.acct-down { padding-right: 14px; }
.acct-signin .acct-state, .acct-down .acct-state { color: #ffd95a; }
.acct .btn-sm { padding: .35em 1em; }
.acct-note { font-size: .85rem; margin-top: 6px !important; }
.acct-all summary { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; color: rgba(255, 255, 255, .85); font-size: .9rem; }
.acct-all[open] summary { margin-bottom: 6px; }
/* s10s-portal-status: "School accounts" pills (dashboard header, dark) and the same lines in Settings (light). */
.pstat-strip { margin-top: 14px; }
.pstat-h { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); margin: 0 0 6px; }
.pstat-row, .pstat-list { list-style: none; margin: 0; padding: 0; }
.pstat-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pstat-row li { max-width: 100%; }
.pstat { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 12px; border-radius: 999px; font-size: .85rem; line-height: 1.3; text-decoration: none; }
.pstat-row .pstat { border: 1px solid rgba(255, 255, 255, .25); color: rgba(255, 255, 255, .9); }
.pstat-row a.pstat { min-height: 44px; }
.pstat-row a.pstat:hover, .pstat-row a.pstat:focus-visible { border-color: var(--gold); }
.pstat-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #9aa3ad; }
.pstat-ok .pstat-dot { background: #3fbf7f; }
.pstat-warn .pstat-dot { background: #f0b429; }
.pstat-act { text-decoration: underline; font-weight: 600; }
.pstat-sum { margin: 0 0 8px; font-size: .9rem; line-height: 1.4; color: rgba(255, 255, 255, .9); }
.pstat-sum-warn { color: #f6d58a; }
.retry-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.pstat-list { margin: 4px 0 10px; }
.pstat-list li { border-bottom: 1px solid var(--line); }
.pstat-list .pstat { border-radius: 0; padding: 6px 0; min-height: 44px; color: var(--ink); display: flex; }
.pstat-list .pstat-ok .pstat-dot { background: #1b7a43; }
.pstat-list .pstat-warn .pstat-dot { background: #b26a00; }
.pstat-list .pstat-off .pstat-dot { background: #8a929b; }
.pstat-list .pstat-act { color: var(--navy-3); }
@media (max-width: 480px) { .pstat-row { flex-direction: column; align-items: stretch; gap: 6px; } .pstat-row .pstat { display: flex; } }

/* Grouped Settings (iOS style): a small heading above each card, 44px rows, chevrons. */
.set-groups { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.set-group-h { font-family: var(--sans); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 0 0 8px 6px; }
.set-card { padding: 6px 20px 14px; }
.set-card > .hint:first-child, .set-card > p:first-child { margin-top: 12px; }
.set-row { min-height: 44px; }
.set-field { justify-content: space-between; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.set-field .txt { flex: 1 1 200px; }
.set-field select, .set-field input[type="time"] { min-height: 44px; font: inherit; padding: 6px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--white); color: var(--ink); }
.set-btn { width: 100%; background: none; border: 0; font: inherit; text-align: left; cursor: pointer; }
.set-btn:hover { color: var(--gold-text); }
.set-row.is-soon .txt, .switch-row.is-soon .txt { color: var(--ink-2); }
.set-fieldset { border: 0; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.set-fieldset legend { font-weight: 600; padding: 0; margin-bottom: 8px; }
.set-sub { padding: 12px 0 0; }
.set-fold { box-shadow: none; padding: 0; margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0; }
.notice-soft { background: var(--cream); border: 1px solid var(--line); color: var(--ink-2); }
.set-find { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 10px 0; background: var(--cream); }
.set-search { width: 100%; min-height: 44px; font-size: 16px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); }
.set-jump { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.set-jump::-webkit-scrollbar { display: none; }
.set-jump a { flex: none; display: inline-flex; align-items: center; min-height: 36px; padding: 4px 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink-2); font-size: .85rem; font-weight: 600; text-decoration: none; }
.set-jump a:hover { color: var(--heading); border-color: var(--gold); }
#set-search-none:empty { display: none; }
.set-group { scroll-margin-top: 150px; }
/* Segmented control (theme, text size) */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--cream); border-radius: 999px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 16px; border-radius: 999px; font-weight: 600; color: var(--ink-2); }
.seg input:checked + span { background: var(--white); color: var(--heading); box-shadow: var(--shadow); }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Text size (Settings > Appearance): scales every rem-based size. */
html[data-text="large"] { font-size: 112.5%; }
html[data-text="larger"] { font-size: 125%; }

/* Dark theme (Settings > Appearance): navy and cream, flipped. Pairs are AA-checked in tests/settings-kids.test.js. */
html[data-theme="dark"] {
  color-scheme: dark;
  --focus: #e2c46e;
  --white: #162238; --cream: #0b1322; --paper: #18253c; --heading: #f1f4f9;
  --ink: #e8ecf3; --ink-2: #c3cbd8; --ink-3: #a3adbf; --line: #2b3b57;
  --gold-text: #e2c46e; --gold-soft: #2a2615; --navy-3: #9db9ee;
  --green: #7fd3a6; --green-bg: #173528; --amber: #e9c25a; --amber-bg: #2e2712;
  --orange-text: #ff9e70; --orange-bg: #3a2014; --rule: rgba(157, 185, 238, .12);
  --shadow: 0 10px 30px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .25);
}
html[data-theme="dark"] .btn-danger, html[data-theme="dark"] .error { color: #ff9b91; border-color: #6b2a25; }
html[data-theme="dark"] .btn-danger:hover { background: #2a1517; color: #ff9b91; }
html[data-theme="dark"] .notice, html[data-theme="dark"] .banner-yellow, html[data-theme="dark"] .celebrate, html[data-theme="dark"] .cal-warn, html[data-theme="dark"] .ev-test { color: var(--ink); border-color: var(--line); }
html[data-theme="dark"] .option input:checked + .option-body { background: var(--gold-soft); }
html[data-theme="dark"] .sheet { background: #fff; color: #111; }
html[data-theme="dark"] .card, html[data-theme="dark"] .note-card { border-color: var(--line); }
/* s32: "A new version is ready" bar (js/update-banner.js). Tokens only, so light and dark both read. */
.update-banner { display: flex; align-items: center; gap: 8px; padding: 6px 12px; background: var(--gold-soft); color: var(--ink); border-bottom: 1px solid var(--line); font-size: .92rem; line-height: 1.35; }
.update-banner[hidden] { display: none; }
.update-banner .ub-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.update-banner .ub-text { font-weight: 600; }
.update-banner .ub-note { color: var(--ink-2); }
.update-banner .ub-btn { min-width: 44px; min-height: 44px; border-radius: 10px; font: inherit; font-weight: 700; cursor: pointer; }
.update-banner .ub-update { padding: 0 16px; background: var(--gold); color: var(--navy); border: 1px solid var(--gold-dark); }
.update-banner .ub-close { background: transparent; color: var(--ink); border: 1px solid var(--line); font-size: 1.4rem; line-height: 1; }
.update-banner .ub-btn:focus-visible { outline: 3px solid var(--focus, var(--gold-text)); outline-offset: 2px; }
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] {
    color-scheme: dark;
    --focus: #e2c46e;
    --white: #162238; --cream: #0b1322; --paper: #18253c; --heading: #f1f4f9;
    --ink: #e8ecf3; --ink-2: #c3cbd8; --ink-3: #a3adbf; --line: #2b3b57;
    --gold-text: #e2c46e; --gold-soft: #2a2615; --navy-3: #9db9ee;
    --green: #7fd3a6; --green-bg: #173528; --amber: #e9c25a; --amber-bg: #2e2712;
    --orange-text: #ff9e70; --orange-bg: #3a2014; --rule: rgba(157, 185, 238, .12);
    --shadow: 0 10px 30px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .25);
  }
  html[data-theme="system"] .btn-danger, html[data-theme="system"] .error { color: #ff9b91; border-color: #6b2a25; }
  html[data-theme="system"] .btn-danger:hover { background: #2a1517; color: #ff9b91; }
  html[data-theme="system"] .notice, html[data-theme="system"] .banner-yellow, html[data-theme="system"] .celebrate, html[data-theme="system"] .cal-warn, html[data-theme="system"] .ev-test { color: var(--ink); border-color: var(--line); }
  html[data-theme="system"] .option input:checked + .option-body { background: var(--gold-soft); }
  html[data-theme="system"] .sheet { background: #fff; color: #111; }
  html[data-theme="system"] .card, html[data-theme="system"] .note-card { border-color: var(--line); }
}

/* Step 10e: first things at the top of the brief (retake / tutorial sessions, grade-drop alerts, sessions found in messages) */
.bb-top { display: grid; gap: 10px; margin: 0 0 20px; }
.top-line { display: flex; gap: 10px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-left: 4px solid #5b4bb5; border-radius: var(--radius-sm); padding: 10px 14px; }
.top-line p { margin: 0; }
.tl-main { font-size: 1.02rem; }
.tl-sub { font-size: .88rem; color: var(--ink-3); }
.tl-warn { font-size: .88rem; color: var(--orange-text); margin-top: 4px !important; }
.banner-orange { background: var(--orange-bg); color: #6b2408; border: 1px solid #f6cdb4; }
.drop-alert .da-text { margin: 0; font-weight: 600; }
.found-card { padding: 12px 14px; border-left: 4px solid var(--gold); }
.found-card .label { margin: 0 0 4px; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
.top-actions { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-start; }
.paste-note { flex: 1 1 260px; font-size: .92rem; }
.paste-note summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--ink-2); }
.paste-note textarea, .rt-form input, .rt-form select { width: 100%; font-size: 16px; }
.rt-form { padding: 14px; }
.cal-ev.ev-retake-tutorial { border-left-color: #5b4bb5; border-left-style: double; }
@media (max-width: 520px) { .rt-form .ev-grid { grid-template-columns: 1fr; } }

/* Step 10f: elementary school events (field trips, spirit days, early release...) and the one PTA line */
.se-list { list-style: none; margin: 0; padding: 0; }
.se-line { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); }
.se-line:first-child { border-top: 0; }
.se-line > .icon { flex: none; margin-top: 2px; color: var(--navy-2, #22385a); }
.se-line .kid-label { margin-right: 4px; }
.se-pta .se-link { font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
.se-found .label .icon { vertical-align: -3px; }
.cal-ev.ev-school-event { border-left-color: #c9a84c; }
.cal-what .icon { vertical-align: -3px; }
#s-pta { width: 100%; max-width: 320px; font-size: 16px; }

/* Step E2: 3-tap setup (kids, school accounts, brief time). 8d tokens only. */
.wiz-h { font-size: 1.5rem; }
.kid-rows { display: grid; gap: 14px; margin: 4px 0 14px; }
.kid-row { position: relative; background: var(--paper); border: 1px solid #ece4d3; border-left: 6px solid var(--kid, var(--kid-1)); border-radius: var(--radius); padding: 16px; transition: border-color var(--dur) var(--ease); }
.kid-row-top { display: flex; gap: 12px; align-items: flex-end; }
.kid-row-remove + .kid-row-top { padding-right: 36px; }
.kid-row-top .field { flex: 1 1 auto; min-width: 0; margin: 0; }
.kid-row-top .field-grade { flex: 0 0 96px; }
.kid-row .kid-colors { border: 0; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0; }
.kid-row .kid-colors legend { padding: 0; margin-bottom: 2px; font-size: .85rem; color: var(--ink-2); font-weight: 600; }
.kid-row .ph-widget { margin-top: 10px; }
.kid-row .ph-avatar { width: 56px; height: 56px; border: 0; box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--kid, var(--kid-1)); font-family: var(--serif); font-weight: 700; color: var(--heading); }
.kid-row-remove { position: absolute; top: 8px; right: 8px; min-width: 44px; min-height: 44px; background: none; border: 0; color: var(--ink-3); font-size: 1.3rem; cursor: pointer; border-radius: 999px; }
.kid-row-remove:hover { color: var(--orange-text); }
.time-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.time-grid .option-body { padding: 14px; text-align: center; }
.time-grid .option-body strong { font-size: 1.25rem; font-family: var(--serif); }
.time-grid .option input:checked + .option-body::after { display: none; }   /* the gold ring is enough; the check would cover the time */
@media (max-width: 420px) { .time-grid .option-body { padding: 12px 6px; } .time-grid .option-body strong { font-size: 1.05rem; } }
.wiz-fold { margin-top: 18px; box-shadow: none; border: 1px solid var(--line); }
.wiz-fold summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wiz-skip { margin: 14px 0 0; }
.link-btn { background: none; border: 0; padding: 10px 14px; min-height: 44px; font: inherit; font-weight: 600; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--gold-text); }
.set-kid-colors { display: flex; flex-wrap: wrap; border: 0; padding: 0; margin: 4px 0 0; }

/* Portal sync (s10g2): source labels and "Connect ..." prompts on the Schedule */
.cal-sync { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin: 0 0 10px; font-size: .85rem; }
.cal-sync:empty { display: none; }
.sync-note { color: var(--ink-2); }
.sync-warn { color: #8a3b12; font-weight: 600; }
.sync-connect { color: var(--gold-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; min-height: 32px; display: inline-flex; align-items: center; }
.src-tag { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .03em; color: var(--ink-2); background: var(--cream); border: 1px solid var(--line); padding: 0 7px; border-radius: 999px; vertical-align: middle; }

/* Kid filter chips (js/kid-filter.js): one row, 44px targets, color dot plus name plus a heavier ring when picked (never color alone). */
.kid-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.kid-chips::-webkit-scrollbar { display: none; }
.cal-kids { margin: 0 0 12px; }
.hx-kids { padding-top: 12px; padding-bottom: 8px; }
.kid-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); font: 600 .95rem var(--sans); cursor: pointer; white-space: nowrap; }
.kid-chip:hover { border-color: var(--kid, var(--gold)); }
.kid-chip.is-on { border: 2.5px solid var(--kid, var(--heading)); padding: 0 14.5px; background: var(--cream); color: var(--heading); }
.kid-chip:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Voice note fallback panel and voice-test page (step s10r-ios-voice) */
.voice-extra { margin: 8px 0 0; }
.recent-briefs { margin: 0 0 18px; padding: 14px 16px; }
.recent-h { font-size: 1rem; margin: 0 0 8px; }
.recent-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 14px; }
.recent-list li { display: flex; align-items: center; gap: 8px; }
.recent-day { font-weight: 600; min-width: 5.5em; }
.voice-panel { margin-top: 10px; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); max-width: 46ch; }
.voice-panel-h { margin: 0 0 4px; font-weight: 700; color: var(--heading); }
.voice-panel ul { margin: 6px 0 10px; padding-left: 1.2em; }
.voice-panel-text { margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--cream); line-height: 1.55; max-height: 14em; overflow: auto; white-space: pre-line; }   /* pre-line: the blank lines between topics show as paragraphs */
/* s10y10: the voice panel and player sit inside the navy .page-head, whose `.page-head p` rule painted their text white on the
   white/cream boxes. Dark ink on cream is 13.7:1 (white box 15.5:1); in the dark theme the same variables flip (15.7:1). */
.page-head .voice-panel p, .page-head .vp-box p { color: var(--ink); }
.page-head .voice-panel .voice-panel-h { color: var(--heading); }
.vt-detect { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.vt-detect dt { font-weight: 600; }
.vt-detect dd { margin: 0; }
.vt-test .btn-row { margin-top: 10px; }
.vt-result { margin: 8px 0 0; font-weight: 600; }
.vt-summary { width: 100%; min-height: 6em; font: .9rem var(--sans); padding: 10px; border-radius: 8px; border: 1.5px solid var(--line); }
.vt-test audio { width: 100%; margin-top: 8px; }

/* Per-kid links (step s10t-kidmatch): chips and one status line per kid on the brief. */
.kid-bar { margin: 14px 0 6px; }
/* s15: a kid's own voice note, the Play button right under their name; and the saved-logins lists + "which child" chips. */
.kid-play-name { margin: 12px 0 0; font-size: 1.15rem; }
.kid-play { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 6px 0 10px; }
.kid-play .btn { min-height: 44px; }
.kid-play-msg { flex: 1 1 200px; margin: 0; }
.login-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.login-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; background: var(--cream); border-radius: var(--radius-sm); padding: 10px 12px; }
.login-row .txt { flex: 1 1 180px; min-width: 0; }
.login-row small { display: block; color: var(--muted, #5b6472); }
.login-row .btn { min-height: 44px; }
.login-add { margin: 6px 0 10px; }
.login-add .btn-link, .login-add button.link { background: none; border: 0; padding: 10px 0; min-height: 44px; color: var(--navy, #1f3a5f); text-decoration: underline; cursor: pointer; font: inherit; }
.kid-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; padding: 0; border: 0; }
.kid-chips label.pill { min-height: 44px; display: inline-flex; align-items: center; }
.kid-links { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.kid-link-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: var(--cream); border-radius: var(--radius-sm); padding: 8px 12px; }
.kid-section { margin: 28px 0 10px; font-size: 1.15rem; }
.kid-view { margin-top: 20px; border-left: 4px solid var(--kid, var(--kid-1)); }
.link-prompt { margin-top: 16px; }

/* Voice note player and progress (step s10r-voice-qa). One thumb at 375 px: 56 px play, 44 px skips, 44 px scrub track. */
.vp-box { margin: 10px 0 0; max-width: 46ch; }
.vp, .vp-prog { padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); }
.vp-row { display: flex; align-items: center; justify-content: center; gap: 18px; }
.vp-play { width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--gold); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.vp-skip { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--cream); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.vp-skip-n { position: absolute; font-size: .62rem; font-weight: 700; line-height: 1; margin-top: 1px; }
.vp-play:active, .vp-skip:active { transform: scale(.96); }
.vp-scrub { display: block; width: 100%; height: 44px; margin: 6px 0 0; padding: 0; background: transparent; accent-color: var(--gold-dark); touch-action: pan-y; }
.vp-times { display: flex; justify-content: space-between; font-size: .9rem; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.vp-bar { height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; }
.vp-fill { display: block; height: 100%; width: 3%; border-radius: 5px; background: var(--gold-dark); transition: width .9s linear; }
.vp-prog.is-queued .vp-fill { width: 35%; animation: vp-slide 1.6s ease-in-out infinite alternate; }
.vp-prog-text { margin: 8px 0 0; font-size: 1rem; line-height: 1.4; }
.vp-note { margin: 8px 0 0; font-size: .95rem; }
.vp-engine { margin: 6px 0 0; font-size: .85rem; opacity: .8; text-align: center; }
@keyframes vp-slide { from { margin-left: 0; } to { margin-left: 65%; } }
@media (prefers-reduced-motion: reduce) { .vp-fill { transition: none; } .vp-prog.is-queued .vp-fill { animation: none; } }
@media (max-width: 420px) { .vp-box { max-width: none; } .vp-row { gap: 14px; } }
@media print { .vp-box { display: none !important; } }

/* One-tap Play at the top of Today (step s10y11). Full width on a phone, 56 px tall (44 px is the floor), gold on navy. */
.one-tap { margin: 0 0 18px; max-width: 520px; }
.one-tap[hidden] { display: none; }
.one-tap-btn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 56px; padding: 12px 22px; border: 0; border-radius: 16px; background: var(--gold); color: var(--navy); font: inherit; font-size: 1.1rem; font-weight: 700; cursor: pointer; box-shadow: 0 6px 18px rgba(201, 168, 76, .35); touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.one-tap-btn:active { transform: scale(.98); }
.one-tap-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.one-tap-ico { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; }
.one-tap-bar { display: block; height: 6px; margin: 8px 6px 0; border-radius: 3px; background: rgba(255, 255, 255, .28); overflow: hidden; }
.one-tap-bar[hidden] { display: none; }
.one-tap-fill { display: block; height: 100%; width: 0; background: var(--gold); transition: width .4s linear; }
.page-head .one-tap-note { margin: 8px 6px 0; font-size: .92rem; }
.one-tap-note[hidden] { display: none; }
@media (max-width: 600px) { .one-tap { max-width: none; } }
@media (prefers-reduced-motion: reduce) { .one-tap-fill { transition: none; } .one-tap-btn:active { transform: none; } }
@media print { .one-tap { display: none !important; } }

/* Homepage sample toggle + voice teaser (step s10v-ux, items 9 and 11). Phone widths only collapse the sample card;
   the hero wording and the desktop card are untouched. Loaded by both homepages. */
.voice-teaser-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 10px 0 0; }
.voice-teaser { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px; background: none; border: 0; border-radius: 10px; color: #fff; font: 600 1rem/1.2 var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, .5); }
.voice-teaser:hover { color: var(--gold); text-decoration-color: var(--gold); }
.voice-teaser:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.voice-teaser-note { font-size: .9rem; color: rgba(255, 255, 255, .8); }
.hero-card-wrap .brief-mock { position: relative; }
@media (max-width: 720px) {
  .sample-collapsed #sample-brief { max-height: 15rem; overflow: hidden; }
  .sample-collapsed #sample-brief::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5rem; background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 85%); pointer-events: none; }
}

/* Done tick (s24; the To do card is gone): one tick on each item in Missing, Due soon and Needs you, saved on this device. */
.todo-count { display: inline-block; min-width: 1.6em; padding: 0 .5em; margin-left: 6px; border-radius: 999px; background: var(--gold); color: var(--navy); font: 700 .8rem/1.7 var(--sans); text-align: center; vertical-align: middle; }
.todo-count[hidden] { display: none; }
.tk { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; cursor: pointer; font-size: .9rem; font-weight: 600; }
.tk input { width: 22px; height: 22px; margin: 0; accent-color: var(--navy); flex: none; }
.tk-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.tk-row { display: grid; gap: 2px 12px; padding: 8px 0; border-bottom: 1px solid rgba(0, 0, 0, .08); }
.tk-list .tk-row:last-child { border-bottom: 0; }
.tk-row.is-older { opacity: .85; }
.tk-meta { display: block; font-size: .9rem; }
.tk-meta small { display: block; }
.tk-older { display: inline-block; padding: 0 8px; border-radius: 999px; border: 1px solid currentColor; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; vertical-align: middle; }
.tk-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; }
.list .tk-acts { margin-top: 2px; }
.list li.tk-row { display: flex; }
.tk-done { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; padding: 4px 0; list-style: none; color: var(--ink-2); font-size: .9rem; }
.tk-done-title { overflow-wrap: anywhere; }
.tk-undo { min-height: 44px; min-width: 44px; padding: 0 8px; border: 0; background: none; color: var(--navy-3); font: 700 .9rem/1.2 var(--sans); text-decoration: underline; cursor: pointer; }
.tk-note { flex-basis: 100%; margin: 0 0 4px; font-size: .8rem; }
.tk-done-list { list-style: none; margin: 8px 0 0; padding: 0; }
.todo-title { font-weight: 600; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }   /* s19: two lines, the rest on tap */
.todo-title.is-open { display: block; -webkit-line-clamp: unset; line-clamp: unset; overflow: visible; }
/* s19: links inside school text (BB.linkify) and a guard so an empty row or highlight can never paint a bar */
.ics-row .ics-link { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; font-weight: 600; }   /* s19: the "Add to calendar" tap target was 19px tall */
.txt-link { font-weight: 600; color: var(--navy-3); text-decoration: underline; overflow-wrap: anywhere; }
.bc-list li:empty, mark.hl:empty, .bc-t:empty { display: none; }
.todo-more { justify-self: start; min-height: 44px; min-width: 44px; padding: 0 4px; border: 0; background: none; color: var(--navy-3); font: 600 .88rem/1.2 var(--sans); text-decoration: underline; cursor: pointer; }
.todo-meta { font-size: .88rem; color: var(--ink-2); }
.todo-kind { display: inline-block; padding: 1px 8px; margin-right: 4px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--ink); }
.todo-links { display: flex; flex-wrap: wrap; gap: 0 16px; }
.todo-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.todo-note { margin: 10px 0 0; }
.todo-bare { margin: 12px 0 4px; }
.todo-h { margin: 0 0 8px; }

/* Needs you (step 12): same card language as To do, with a gold edge so it reads first. */
.ny-card { border-left: 4px solid var(--gold); }
.ny-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ny-item { display: grid; gap: 8px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
.ny-item.is-overdue { border-color: var(--orange); }
.ny-title { font-weight: 600; overflow-wrap: anywhere; }
.ny-meta { display: block; margin-top: 4px; font-size: .88rem; color: var(--ink-2); }
.ny-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ny-actions .btn { flex: 1 1 auto; justify-content: center; }
.ny-empty[hidden], .ny-count[hidden] { display: none; }
.cc-none { margin: 0; font-weight: 600; color: var(--ink-2); }

/* Study plan (step 11 phase 3): the note-card language (ruled paper, one highlighter swipe, a pen note), three short evenings per test. */
#study-slot:not(:empty) { margin-bottom: 16px; display: grid; gap: 16px; }
.sp-card .sp-plan + .sp-plan { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }
.sp-lead { margin: 0 0 10px; color: var(--ink-2); }

/* Step 11 p2-4: calendar extras (js/cal-extras.js): reminders with snooze, Family today, what changed, routines and lists */
.cx-slot:empty { display: none; }
.cx-card { padding: 14px 16px; }
.cx-h { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 1.05rem; color: var(--heading); }
.cx-h svg { flex: none; color: var(--gold-text); }
.cx-h small { margin-left: auto; font-size: .82rem; font-weight: 500; color: var(--ink-3); }
.cx-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cx-rem { display: grid; gap: 8px; padding: 10px 12px; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius-sm); }
.cx-rem-when { margin: 0; font-size: 1.15rem; font-weight: 700; color: var(--heading); font-variant-numeric: tabular-nums; }
.cx-rem-what { margin: 2px 0 0; color: var(--ink-2); }
.cx-rem-btns, .cx-lst-foot { display: flex; flex-wrap: wrap; gap: 8px; }
.cx-foot { margin: 10px 0 0; }
.cx-kid { padding: 8px 0 8px 12px; border-left: 4px solid var(--gold); }
.cx-kid + .cx-kid { margin-top: 10px; }
.cx-kid-name { margin: 0 0 2px; font-size: 1rem; color: var(--heading); }
.cx-facts { margin: 0 0 6px; font-size: .9rem; color: var(--ink-3); }
.cx-ev { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cx-t { display: inline-block; min-width: 4.6em; font-weight: 700; color: var(--heading); font-variant-numeric: tabular-nums; }
.cx-none { margin: 0; color: var(--ink-3); font-size: .92rem; }
.cx-warn { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0 0; font-size: .9rem; color: var(--orange-text); }
.cx-warn svg { flex: none; width: 18px; height: 18px; }
.cx-chg { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.cx-chg p { margin: 0; }
.cx-kind { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); background: var(--cream); }
.cx-kind.cx-moved { color: var(--gold-text); background: var(--gold-soft); }
.cx-kind.cx-removed { color: var(--orange-text); }
.cx-lists { display: grid; gap: 14px; }
.cx-lst { padding: 14px 16px; }
.cx-lst-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.cx-lst-head h3 { margin: 0; font-size: 1.1rem; }
.cx-count { font-size: 1.3rem; font-weight: 700; color: var(--heading); font-variant-numeric: tabular-nums; }
.cx-lst-sub { margin: 2px 0 8px; }
.cx-bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; margin-bottom: 8px; }
.cx-bar span { display: block; height: 100%; background: var(--gold); transition: width .2s ease; }
.cx-items { list-style: none; margin: 0 0 10px; padding: 0; }
.cx-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); }
.cx-item label { flex: 1; display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.cx-item input[type="checkbox"] { width: 22px; height: 22px; flex: none; accent-color: var(--gold-dark); }
.cx-item.is-done span { color: var(--ink-3); text-decoration: line-through; }
.cx-x { flex: none; width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; color: var(--ink-3); cursor: pointer; }
.cx-x svg { width: 16px; height: 16px; }
.cx-add { display: flex; gap: 8px; margin: 0 0 10px; }
.cx-add input[type="text"], .cx-add select { flex: 1; min-width: 0; min-height: 44px; }
.cx-empty { text-align: center; padding: 20px 16px; }
.cx-empty svg { width: 36px; height: 36px; color: var(--gold-text); }
.cx-empty h3 { margin: 6px 0; }
.cx-empty p { margin: 0 auto; max-width: 34em; color: var(--ink-2); }
.cx-new .btn-row { margin-bottom: 12px; }
@media (prefers-reduced-motion: reduce) { .cx-bar span { transition: none; } }
.sp-sessions { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 8px; }
.sp-s { display: grid; gap: 2px; padding: 10px 12px; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-variant-numeric: tabular-nums; }
.sp-when { font-weight: 700; color: var(--heading); }
.sp-what { font-size: .9rem; color: var(--ink-2); }
.sp-s.is-edit { grid-template-columns: 1fr 1fr; gap: 10px; }
.sp-s.is-edit label { display: grid; gap: 4px; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.sp-s.is-edit input { min-height: 44px; font: inherit; padding: 6px 8px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--white); color: var(--ink); }
.sp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.sp-actions .btn { flex: 1 1 auto; justify-content: center; }
.sp-ok { flex: 1 0 100%; text-align: center; padding: 4px 8px; }
.sp-fc { margin: 10px 0 0; font-size: .88rem; color: var(--ink-2); }
.sp-note { margin: 14px 0 0; }
@media (max-width: 420px) { .sp-s.is-edit { grid-template-columns: 1fr; } }

/* Dinner-table line (step 11 phase 3): one short warm question on the same note-card paper, no buttons. */
.dn-card { margin-bottom: 16px; }
.dn-card .big { margin-bottom: 4px; }
/* Teacher email draft (js/teacher-email.js): one tappable row per class, the editable draft opens under it. */
.tm-card { margin-bottom: 16px; }
.tm-row { border-top: 1px solid var(--line); }
.tm-row:first-of-type { border-top: 0; }
.tm-row > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; padding: 6px 0; cursor: pointer; list-style: none; }
.tm-row > summary::-webkit-details-marker { display: none; }
.tm-sum { font-weight: 600; color: var(--heading); }
.tm-go { flex: none; font-size: .9rem; font-weight: 700; color: var(--navy, var(--heading)); text-decoration: underline; text-underline-offset: 3px; }
.tm-row[open] .tm-go { display: none; }
.tm-in { padding: 4px 0 14px; }
.tm-lab { display: block; margin: 8px 0 4px; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.tm-teacher, .tm-body { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; color: var(--ink); background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; }
.tm-teacher { min-height: 44px; }
.tm-body { line-height: 1.5; resize: vertical; }
.tm-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tm-acts .btn { flex: 1 1 auto; justify-content: center; }
/* Sunday 60-second recap (js/sunday-recap.js): the dashboard card and the History recap share these. */
.sunday-recap { margin: 0 0 18px; padding: 16px; border-left: 4px solid var(--gold); }
.sr-in { margin-top: 8px; padding-top: 4px; border-top: 1px solid var(--line); }
.sr-h { margin: 14px 0 4px; font-size: 1rem; }
.sr-list { margin: 0; padding-left: 1.2em; }
.sr-list li { margin: 0 0 4px; }
.sr-sug { margin: 0; font-size: 1.05rem; }
.sr-none { margin: 0; }
.sr-play { margin-top: 14px; }

/* Signed-out homepage: the account chip stays out of sight until there is a session (JS sets [hidden]). */
.nav-acct-chip[hidden], .nav-acct-note[hidden] { display: none !important; }

/* Grade tables stay readable at 375 px: the class name stays put while the numbers scroll sideways. */
@media (max-width: 480px) {
  .mini-table { font-size: .88rem; }
  .mini-table th, .mini-table td { padding: 8px 8px; }
  .mini-table tbody th { position: sticky; left: 0; z-index: 1; min-width: 7.5rem; max-width: 9.5rem; background: var(--white); box-shadow: 1px 0 0 var(--line); }
  .mini-table thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--white); }
  .mini-table td { min-width: 3.4rem; white-space: nowrap; }
}

/* Friendly 404 */
.nf-links { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; max-width: 28rem; }
.nf-links a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--white); font-weight: 600; text-decoration: none; }
.nf-links a:hover { border-color: var(--gold); }

/* ---------- Brief cards (step s10z3): one card per kid, laid out like HAC Desk's daily brief ---------- */
.bc { border-left: 6px solid var(--kid, var(--kid-1)); margin-bottom: 16px; min-width: 0; overflow-wrap: anywhere; }
.bc-title { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; margin: 0 0 8px; color: var(--heading); }
.bc-head { display: flex; gap: 10px; align-items: flex-start; font-size: 1.08rem; line-height: 1.5; margin: 0 0 12px; color: var(--heading); }
.bc-head > svg { flex: none; margin-top: 3px; color: var(--gold-text); }
.bc-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin: 0 6px 0 5px; vertical-align: baseline; flex: none; border: 1px solid rgba(0, 0, 0, .25); }
.bc-green { background: var(--green); } .bc-yellow { background: var(--amber); } .bc-low { background: var(--orange); } .bc-red { background: #c0392b; } .bc-none { background: #cfd4dc; }
/* s10y17: HAC Desk style. Traffic-light and class emoji; the chips and highlights keep the app's own palette. */
.bc-light { display: inline-block; margin: 0 4px 0 3px; font-size: .95em; line-height: 1; vertical-align: baseline; }
.bc-em { display: inline-block; margin-right: 2px; line-height: 1; }
.bc-lab .bc-em { font-size: 1.05rem; }
.bc-eye { flex: none; font-size: 1.2rem; line-height: 1.3; }
.bc-note { margin: 0 0 8px 26px; font-size: .88rem; line-height: 1.4; }
.bc-score, .bc-when { font-variant-numeric: tabular-nums; }
.bc-lt { font-size: .85rem; color: var(--ink-2); }
.bc-table { width: 100%; border-collapse: collapse; margin: 0 0 12px; table-layout: fixed; }
.bc-table th, .bc-table td { text-align: left; padding: 9px 6px; border-top: 1px solid var(--line); font-size: .95rem; vertical-align: middle; overflow-wrap: anywhere; }
.bc-table thead th { border-top: 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.bc-table tbody th { font-weight: 500; color: var(--ink); width: 40%; }
.bc-table .bc-n { text-align: right; width: 27%; white-space: nowrap; }
.bc-rt { display: block; margin-top: 2px; font-size: .78rem; font-weight: 400; line-height: 1.3; color: var(--ink-2); }
.bc-rt-maybe { font-style: italic; }
/* s35a Smart brief: only on a Smart card (summary, since-yesterday line, next big one, the quiet-day fold) */
.bc-sum, .bc-since, .bc-next { margin: 0 0 10px; font-size: .92rem; line-height: 1.45; color: var(--ink-2); overflow-wrap: anywhere; }
.bc-sum { color: var(--heading); font-weight: 600; }
.bc-next { color: var(--heading); }
.bc-fold { margin: 6px 0 0; }
.bc-fold > summary { display: flex; align-items: center; min-height: 44px; padding: 0 4px; cursor: pointer; font-weight: 600; color: var(--heading); }
.bc-fold > summary:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 2px; }
.bc-table thead th { letter-spacing: 0; }
.bc-table td:last-child { width: 32%; }
.bc-sec { padding: 10px 0 2px; border-top: 1px solid var(--line); }
.bc-lab { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-family: var(--sans); font-size: .95rem; font-weight: 700; color: var(--heading); }
.bc-lab > svg { flex: none; color: var(--gold-text); }
.bc-list { list-style: none; margin: 0 0 8px; padding: 0; }
.bc-list li { padding: 5px 0 5px 26px; line-height: 1.4; }
.bc-move svg { vertical-align: -3px; margin-left: -26px; margin-right: 6px; }
.bc-cal { margin: 4px 0 12px; font-size: .9rem; line-height: 1.45; color: var(--ink-3); }
.bc-checked { margin: 2px 0 10px; font-size: .875rem; line-height: 1.45; color: var(--ink-3); overflow-wrap: anywhere; }
.dist-cal .dist-list { list-style: none; margin: 8px 0 0; padding: 0; }
.dist-cal .dist-list li { display: flex; gap: 12px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--line); }
.dist-cal .dist-list li:first-child { border-top: 0; }
.dist-cal .dist-when { flex: none; min-width: 7.5rem; font-weight: 600; }
.dist-cal .dist-tag { font-size: .8rem; }
.dist-cal .dist-stale { margin: 8px 0 0; }
.bc-empty { margin: 0 0 8px 26px; font-size: .9rem; }
.bc > .bc-empty { margin-left: 0; }
.bc-chip { display: inline-block; font-size: .72rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--cream); color: var(--ink-2); margin-left: 4px; vertical-align: middle; }
.bc-chip-hi { background: var(--orange-bg); color: var(--orange-text); border-color: var(--orange); }
.bc-when, .bc-src { font-size: .85rem; margin-left: 4px; }
.bc-hi { background: var(--orange-bg); border-radius: var(--radius-sm); padding-right: 8px; }
.bc-tipline { display: block; font-size: .9rem; color: var(--ink-2); margin-top: 4px; }
.bc-tipline svg { vertical-align: -2px; }
/* Phase 3: a new grade explained + "Practice this" (js/grade-explain.js). Quiet note under the score, one 44px button. */
.bc-explain { display: block; font-size: .92rem; line-height: 1.45; color: var(--ink-2); margin-top: 4px; padding-left: 10px; border-left: 3px solid var(--gold); }
.bc-practice { margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; color: var(--gold-text); }
.bc-practice svg { flex: none; }
.bc-foot { margin: 8px 0 0; border-top: 1px solid var(--line); padding-top: 8px; }
.bc .btn-row { margin: 4px 0 8px; }
.bc .btn { min-height: 44px; }
@media (min-width: 700px) { .bc-table tbody th { width: 52%; } .bc-title { font-size: 1.15rem; } }
@media (max-width: 420px) { .bc-lt { font-size: .78rem; } .bc-dot { margin: 0 4px 0 2px; } }
@media print { .bc { break-inside: avoid; } }

/* Live build progress (step s10s2-brief-progress): one line per step, a spinner that stops for reduced motion. */
#build-progress { margin: 14px 0 0; max-width: 640px; }
/* s62: the card sits inside the navy .page-head now, whose `.page-head p` rule paints paragraphs white: keep the card's own text colors. */
.page-head .bp-head { color: var(--heading); max-width: none; }
.page-head .bp-time { color: var(--ink-3); max-width: none; }
.bp-card { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius-sm); padding: 14px 16px; box-shadow: var(--shadow); }
.bp-head { margin: 0 0 10px; font-weight: 600; color: var(--heading); }
.bp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bp-list li { display: flex; align-items: center; gap: 10px; min-height: 28px; color: var(--ink); }
.bp-wait .bp-label { color: var(--ink-3); }
.bp-mark { flex: none; width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .85rem; font-weight: 700; }
.bp-done { background: var(--green-bg); color: var(--green); }
.bp-skip { background: var(--amber-bg); color: var(--amber); }
.bp-wait { border: 2px solid var(--line); }
.bp-spin { border: 3px solid var(--line); border-top-color: var(--gold); animation: spin .8s linear infinite; }
.bp-note { font-size: .88rem; color: var(--amber); }
.bp-time { margin: 10px 0 0; font-size: .84rem; color: var(--ink-3); }
@media (prefers-reduced-motion: reduce) { .bp-spin { animation: none; border-top-color: var(--gold); border-right-color: var(--gold); } }
@media (max-width: 420px) { .bp-card { padding: 12px; } .bp-list li { flex-wrap: wrap; } }

/* Step E5: calendar feed panel (Settings) */
.cf-link { display: flex; gap: 8px; align-items: center; margin: 10px 0; }
.cf-url { flex: 1; min-width: 0; font-size: .85rem; text-overflow: ellipsis; }
.cf-link .btn { flex: none; }
.cf-steps { margin: 8px 0; padding-left: 1.3em; display: grid; gap: 6px; }
.cf-how { margin: 12px 0; padding-left: 1.2em; display: grid; gap: 6px; font-size: .92rem; color: var(--ink-2); }
.chip-on { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .04em; color: var(--green); background: var(--green-bg); padding: 1px 8px; border-radius: 999px; vertical-align: middle; }
@media (max-width: 420px) { .cf-link { flex-wrap: wrap; } .cf-link .btn { width: 100%; } }
/* Step E6: share links (Settings > Share with family) */
.sh-h { margin-top: 18px; }
.sh-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.sh-item { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 12px; padding: 12px 14px; }
.sh-top small { display: block; color: var(--ink-2); margin-top: 2px; font-variant-numeric: tabular-nums; }

/* E7 privacy card (8d: white card, gold-soft icon tile, green checks, readable-gold link) */
.privacy-card { padding: 24px 0; background: var(--cream); }
.pc-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; max-width: 760px; margin: 0 auto; }
.pc-box-in { max-width: 560px; margin: 0 auto 20px; }
.pc-title { display: flex; align-items: center; gap: 12px; font-size: 1.2rem; margin: 0 0 14px; }
.pc-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.pc-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.pc-list strong { color: var(--ink); }
.pc-list .check { flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: var(--green-bg); color: var(--green); display: grid; place-items: center; }
.pc-link { font-weight: 600; color: var(--gold-text); }

/* ---------- Seasonal touches (step 11 E10, js/seasons.js) ---------- */
/* s21: seasonal header band, Today page only (js/season.js). Sits behind the header text; no animation. */
.page-head.has-season { position: relative; isolation: isolate; overflow: hidden; }
.season-band { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.season-band svg { display: block; width: 100%; height: 100%; }
@media (prefers-reduced-motion: reduce) { .season-band, .season-band * { animation: none !important; transition: none !important; } }
@media print { .season-band { display: none; } }
.season-line { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0 0; padding: 8px 14px; max-width: 34em; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .08); border: 1px solid rgba(201, 168, 76, .35); color: #fff; font-size: .92rem; line-height: 1.4; }
.season-line[hidden] { display: none; }
.season-line .season-art { flex: none; color: var(--gold); margin-top: 1px; }
.season-flair { display: inline-block; vertical-align: -3px; margin-left: 4px; color: var(--gold-text); }
.season-flair .season-art { display: block; }
.wn-list { list-style: none; margin: 0 0 8px; padding: 0 0 0 32px; }
.wn-list li { display: flex; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); font-size: .92rem; color: var(--ink-2); }
.wn-list .wn-v { flex: none; font-weight: 700; color: var(--gold-text); min-width: 3.6em; }
@media (prefers-reduced-motion: no-preference) {
  .season-line:not([hidden]) { animation: season-in .5s var(--ease) both; }
  @keyframes season-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}
@media print { .season-line, .season-flair { display: none; } }

/* s12: focus ring on navy surfaces is the brand gold (the default ring is the darker readable gold). */
.site-header, .section-navy, .page-head, .site-footer, .banner-navy, .toast, .tile, .tabbar, .acct, .cp-opt[aria-selected="true"] { --focus: var(--gold); }

/* s17-sample-before-login: the Sign in page's "look first" card, the sample's persistent bar and the first-brief voice offer. */
.sample-entry { max-width: 560px; margin: 0 auto 20px; }
.sample-fixed { position: fixed; left: 0; right: 0; bottom: 0; z-index: 140; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px calc(8px + env(safe-area-inset-bottom, 0px)); background: var(--navy); color: #fff; border-top: 2px solid var(--gold); box-shadow: 0 -4px 16px rgba(0, 0, 0, .25); }
.sample-fixed p { margin: 0; font-size: .85rem; font-weight: 600; line-height: 1.3; color: #fff; min-width: 0; }
.sample-fixed .btn { flex: none; min-height: 44px; white-space: nowrap; }
.has-sample-bar #bb-footer { padding-bottom: 76px; }   /* room under the footer so the fixed bar never covers its last line */
.sample-connect { margin: 12px 0 0; }
.first-win { margin: 0 0 16px; }
.first-win p { margin: 0 0 10px; }
@media (max-width: 1023.98px) {
  .has-tabbar .sample-fixed { bottom: calc(56px + env(safe-area-inset-bottom, 0px)); padding-bottom: 8px; }
}

/* s20-tester-feedback: the floating Feedback button, its sheet and the check-in cards. The button is a 44px pill in a bottom corner;
   js/feedback.js moves it to the other corner, or out of sight, rather than cover Play, a main button, the sample bar or the tab bar. */
.fb-fab { position: fixed; z-index: 120; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--gold); background: var(--navy); color: #fff; font: 600 .9rem/1 var(--sans); cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); transition: opacity var(--dur-fast) var(--ease); }
.fb-fab[data-side="right"] { right: calc(12px + env(safe-area-inset-right, 0px)); }
.fb-fab[data-side="left"] { left: calc(12px + env(safe-area-inset-left, 0px)); }
.fb-fab:hover { background: var(--navy-3); }
.fb-fab:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.fb-fab.fb-away { opacity: 0; visibility: hidden; pointer-events: none; }
@media (max-width: 1023.98px) { .has-tabbar .fb-fab { bottom: calc(68px + env(safe-area-inset-bottom, 0px)); } }
.has-sample-bar .fb-fab { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 1023.98px) { .has-tabbar body.has-sample-bar .fb-fab { bottom: calc(132px + env(safe-area-inset-bottom, 0px)); } }
.fb-overlay { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: flex-end; justify-content: center; background: rgba(15, 27, 45, .55); }
.fb-overlay[hidden] { display: none; }
.fb-sheet { width: 100%; max-width: 520px; max-height: 92vh; max-height: 92dvh; overflow-y: auto; background: var(--white); color: var(--ink); border-radius: 18px 18px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px)); box-shadow: var(--shadow-lg); }
@media (min-width: 640px) { .fb-overlay { align-items: center; } .fb-sheet { border-radius: 18px; padding-bottom: 16px; } }
.fb-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.fb-head h2 { margin: 0; font-size: 1.25rem; }
.fb-x { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--ink); border-radius: 999px; cursor: pointer; }
.fb-types, .fb-core { border: 0; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fb-types legend, .fb-core legend { grid-column: 1 / -1; padding: 0; margin-bottom: 6px; font-weight: 600; }
.fb-type { position: relative; display: block; }
.fb-type input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.fb-type span { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border: 2px solid var(--line); border-radius: 12px; background: var(--white); font-weight: 600; font-size: .95rem; line-height: 1.2; }
.fb-type input:checked + span { border-color: var(--gold-dark); background: var(--gold-soft); }
.fb-type input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.fb-label { display: block; margin: 10px 0 4px; font-weight: 600; font-size: .95rem; }
.fb-sheet textarea, .fb-sheet input[type="text"], .fb-card input[type="text"] { width: 100%; font: inherit; font-size: 1rem; padding: 10px 12px; border: 2px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); box-sizing: border-box; }
.fb-sheet textarea { resize: vertical; min-height: 96px; }
.fb-count { margin: 2px 0 6px; text-align: right; }
.fb-check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; cursor: pointer; }
.fb-check input { width: 22px; height: 22px; flex: none; }
.fb-err { margin: 6px 0; min-height: 1.2em; color: #b42318; font-weight: 600; }
.fb-priv { margin: 12px 0 0; }
.fb-thanks { margin: 8px 0; font-size: 1.15rem; font-weight: 700; }
.fb-card { margin: 16px 0; }
.fb-card h3 { margin: 0 0 6px; }
.fb-answers { margin-top: 10px; }
.fb-link { min-height: 44px; padding: 0 12px; border: 0; background: transparent; color: var(--ink-2); font: 600 .95rem/1 var(--sans); text-decoration: underline; cursor: pointer; }
html.fb-open, html.fb-open body { overflow: hidden; }
.settings-feedback { width: 100%; text-align: left; background: none; border: 0; font: inherit; color: inherit; cursor: pointer; }
@media print { .fb-fab, .fb-overlay, .fb-card { display: none !important; } }
.fb-admin-row { padding: 12px 0; border-top: 1px solid var(--line); }
.fb-admin-row.is-done { opacity: .6; }

/* s28 Help page and the "couldn't reach Backpack Briefs" error */
details.help-fix { border-top: 1px solid var(--line); padding: 0; }
details.help-fix summary { cursor: pointer; font-weight: 600; color: var(--navy-3); min-height: 48px; display: flex; align-items: center; }
details.help-fix ul { margin: 0 0 14px; padding-left: 22px; color: var(--ink-2); }
details.help-fix li { margin-bottom: 6px; }
.help-preview { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--cream, #faf6ec); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; font: inherit; font-size: .92rem; margin: 0 0 10px; }
.help-err-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.help-err-actions .btn { min-height: 44px; }
.help-err-status { display: block; margin-top: 6px; }

/* s18: Invite your co-parent card (Settings, under the first brief, and the timed card) */
.invite-card h3 { margin: 0 0 6px; }
.invite-card p { margin: 0 0 10px; }
.invite-actions { margin: 4px 0 8px; }
.invite-actions .btn { flex: 0 1 auto; }
.invite-note, .invite-status { margin: 6px 0 0; overflow-wrap: anywhere; }
.invite-status:empty { display: none; }
.invite-manual { width: 100%; box-sizing: border-box; margin-top: 8px; font: inherit; font-size: 1rem; padding: 10px 12px; }
@media print { .invite-card { display: none !important; } }

/* Pickup check-in (js/pickup-checkin.js): sits under the pickup line in the navy brief header. */
.checkin { margin: 12px 0 0; padding: 14px; max-width: 520px; border-radius: var(--radius); background: rgba(255, 255, 255, .08); color: #fff; }
.checkin .ck-h { margin: 0 0 8px; font-family: var(--sans); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.ck-row + .ck-row { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .16); }
.ck-who { margin: 0 0 8px; font-size: 1rem; }
.ck-time { color: #d9dfeb; font-weight: 500; }
.ck-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ck-btn { min-height: 48px; padding: 6px 4px; border-radius: var(--radius-sm); border: 2px solid rgba(255, 255, 255, .3); background: transparent; color: #fff; font: 600 .92rem/1.2 var(--sans); cursor: pointer; transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease); }
.ck-btn:hover { border-color: var(--gold); }
.ck-btn.is-on { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.ck-btn:focus-visible, .ck-undo:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.ck-state { margin: 8px 0 0; font-size: .9rem; color: #d9dfeb; }
.ck-undo { margin-left: 8px; min-height: 44px; padding: 0 8px; background: none; border: 0; color: #fff; text-decoration: underline; font: inherit; cursor: pointer; }
.ck-note { margin: 10px 0 0; font-size: .8rem; color: #c3cbdb; }
@media (prefers-reduced-motion: reduce) { .ck-btn { transition: none; } }

/* Schedule change ripple (js/schedule-ripple.js): sits under the pickup check-in in the navy brief header. */
.ripple { margin: 12px 0 12px; padding: 14px; max-width: 520px; border-radius: var(--radius); background: rgba(255, 255, 255, .08); color: #fff; }
.ripple .rp-h { margin: 0 0 8px; font-family: var(--sans); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.rp-item + .rp-item { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .16); }
.rp-text { margin: 0 0 4px; display: flex; gap: 8px; align-items: flex-start; font-size: 1rem; }
.rp-text svg { flex: 0 0 auto; margin-top: 2px; color: var(--gold); }
.rp-detail { margin: 0 0 6px; font-size: .9rem; color: #d9dfeb; }
.rp-warn { margin: 6px 0; padding: 8px 10px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .12); font-size: .9rem; }
.rp-flag { display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 99px; background: var(--gold); color: var(--navy); font-size: .75rem; font-weight: 700; }
.rp-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.rp-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 6px 14px; border-radius: var(--radius-sm); border: 2px solid rgba(255, 255, 255, .3); background: transparent; color: #fff; font: 600 .92rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease); }
.rp-btn:hover { border-color: var(--gold); color: #fff; }
.rp-go { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.rp-go:hover { color: var(--navy); }
.rp-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.rp-note { margin: 10px 0 0; font-size: .8rem; color: #c3cbdb; }
@media (prefers-reduced-motion: reduce) { .rp-btn { transition: none; } }
@media print { .ripple { display: none !important; } }

/* s13-pickup: Rides view (js/rides.js). Five calendar tabs fit at 390px; each ride card is one block with a 44px maps link. */
.cal-views .tab { padding-left: 6px; padding-right: 6px; }
.cal-views { max-width: 520px; }
.ride-list { gap: 10px; }
.ride { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 4px; }
.ride-ev { width: 100%; min-height: 44px; text-align: left; font: inherit; color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; display: grid; gap: 2px; }
.ride-ev small { color: var(--ink-3); }
.ride-ev:focus-visible, .ride-map:focus-visible { outline: 3px solid var(--focus); }
.ride-times { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .92rem; }
.ride-map { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--navy, #22385a); font-weight: 600; text-decoration: underline; overflow-wrap: anywhere; }
.ride-pin { flex: none; }
.ride-noplace { font-size: .88rem; }
.ride-who { margin: 0; font-size: .85rem; color: var(--ink-3); }

/* Back-to-school mode (step 12): checklist per school system plus a packet tracker. Same card language as Needs you; gold text uses --gold-text. */
.bts-card { border-left: 4px solid var(--gold); }
.bts-h { margin: 16px 0 8px; font-size: 1rem; }
.bts-total, .bts-sys-n { font-size: .85rem; font-weight: 600; color: var(--gold-text); }
.bts-sys { border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--white); margin: 0 0 8px; }
.bts-sys > summary { cursor: pointer; padding: 12px; min-height: 44px; display: flex; gap: 10px; align-items: center; justify-content: space-between; font-weight: 600; }
.bts-where { margin: 0; padding: 0 12px 8px; font-size: .92rem; color: var(--ink-2); }
.bts-steps { list-style: none; margin: 0; padding: 0 12px 10px; display: grid; gap: 4px; }
.bts-step { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.bts-tick { display: flex; gap: 10px; align-items: center; min-height: 44px; flex: 1 1 14em; }
.bts-tick input { width: 22px; height: 22px; flex: none; }
.bts-go { font-weight: 600; }
.bts-pk-list { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; }
.bts-pk-due { display: block; font-size: .88rem; color: var(--ink-2); }
.bts-bar { height: 10px; border-radius: 6px; background: var(--line); overflow: hidden; }
.bts-bar > span { display: block; height: 100%; background: var(--gold-text); }
@media print { .bts-card { display: none; } }

/* s30: the first-run quick tour (js/tour.js). Existing tokens only; nothing moves, so reduced motion needs nothing extra. */
.bb-tour { position: fixed; inset: 0; z-index: 1200; }
.bb-tour-back { position: absolute; inset: 0; background: transparent; }
.bb-tour-ring { position: absolute; border-radius: var(--radius-sm); box-shadow: 0 0 0 9999px rgba(15, 27, 45, .6); outline: 3px solid var(--gold); pointer-events: none; }
.bb-tour-card { position: absolute; left: 50%; transform: translateX(-50%); width: min(94vw, 420px); box-sizing: border-box; background: var(--white); color: var(--ink); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 16px 18px; }
.bb-tour-count { margin: 0 0 4px; font-size: .85rem; font-weight: 700; color: var(--ink-3); }
.bb-tour-text { margin: 0 0 14px; font-size: 1.05rem; font-weight: 600; }
.bb-tour-row { display: flex; gap: 10px; justify-content: flex-end; }
.bb-tour-btn { min-width: 44px; min-height: 44px; }
.set-row-btn { width: 100%; background: none; border: 0; font: inherit; text-align: left; cursor: pointer; }
.set-row-btn:hover { color: var(--gold-text); }
.set-row-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* s45: sample day section on the landing page (light surface, so the hero's white voice button is re-colored here only) */
.sample-day .section-head { margin-bottom: 16px; }
.sample-day .sd-tag { text-align: center; margin: 0 0 12px; }
.sample-day .sd-card { overflow-wrap: anywhere; }
.sample-day .sd-card .bc { margin: 0; }
.sample-day .sd-card .bc-table { width: 100%; }
.sample-day .sd-caption, .sample-day .sd-open { text-align: center; margin: 12px 0 0; }
.sample-day .voice-teaser-row { justify-content: center; }
.sample-day .voice-teaser { color: var(--heading); text-decoration-color: var(--ink-3); }
.sample-day .voice-teaser:hover { color: var(--gold-text); text-decoration-color: var(--gold-text); }
.sample-day .voice-teaser-note { color: var(--ink-2); }
.sample-day .sd-open a { display: inline-block; min-height: 44px; line-height: 44px; font-weight: 600; }

/* s59: the "No app to download" strip under the homepage hero, and the one-time Add to Home Screen tip on the brief page */
.signin-strip { background: var(--gold-soft); border-bottom: 1px solid rgba(15, 27, 45, .08); padding: 14px 0; }
.signin-strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.signin-strip-text { margin: 0; flex: 1 1 320px; color: var(--heading); }   /* s60: --heading is navy in the light theme and near-white in the dark theme (navy on the dark gold-soft was 1.14:1) */
.signin-strip-btn { min-height: 44px; min-width: 44px; }
.a2hs-tip { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 0 auto 16px; padding: 14px 16px; border-radius: 12px; background: #fff; color: var(--navy); border: 2px solid var(--gold); }
.a2hs-tip p { margin: 0 0 6px; color: var(--navy); max-width: none; }
.a2hs-tip ul { margin: 0; padding-left: 20px; color: var(--navy); }
.a2hs-close { flex: 0 0 auto; min-height: 44px; min-width: 44px; padding: 0 14px; background: var(--navy); color: #fff; border: 0; border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer; }
.a2hs-close:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
