/* Homegrown Economics — design tokens drawn from the HGE Bank logo:
   navy (Spend/bank), green (Save/growth), gold (coins), orange (Invest), purple (Give). */
:root {
  --bg: #f2f6fd;
  --surface: #ffffff;
  --surface-2: #e9f0fb;
  --surface-3: #dde7f7;
  --ink: #14234a;
  --ink-2: #4a5779;
  --ink-3: #6d7898;
  --line: #d3ddef;
  --navy: #1c3f94;
  --navy-ink: #1c3f94;
  --green: #2e8b3a;
  --gold: #f4b400;
  --gold-soft: #fff4cf;
  --orange: #ea7419;
  --purple: #6b3fa0;
  --spend: #2563c9;
  --save: #2e8b3a;
  --give: #7a4bc0;
  --invest: #df6f12;
  --good: #1d7f45;
  --good-bg: #e2f5e8;
  --warn: #9a6200;
  --warn-bg: #fff1cc;
  --bad: #b8322a;
  --bad-bg: #fde6e3;
  --info: #1f55b3;
  --info-bg: #e3edff;
  --shadow: 0 1px 2px rgba(20, 35, 74, .06), 0 6px 20px rgba(20, 35, 74, .07);
  --radius: 14px;
  --display: "Baloo 2", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d1530; --surface: #152041; --surface-2: #1b2950; --surface-3: #22325f; --ink: #ecf1ff; --ink-2: #b3bfdd; --ink-3: #8f9cc0; --line: #2a3a66;
    --navy-ink: #9db8ff; --spend: #72a4ff; --save: #62cf72; --give: #b894f0; --invest: #ffa352;
    --good: #6fd894; --good-bg: #173a2a; --warn: #ffc95c; --warn-bg: #3a2e12; --bad: #ff8e84; --bad-bg: #401c1c; --info: #9dbcff; --info-bg: #1b2b55; --gold-soft: #3a3013;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1530; --surface: #152041; --surface-2: #1b2950; --surface-3: #22325f; --ink: #ecf1ff; --ink-2: #b3bfdd; --ink-3: #8f9cc0; --line: #2a3a66;
  --navy-ink: #9db8ff; --spend: #72a4ff; --save: #62cf72; --give: #b894f0; --invest: #ffa352;
  --good: #6fd894; --good-bg: #173a2a; --warn: #ffc95c; --warn-bg: #3a2e12; --bad: #ff8e84; --bad-bg: #401c1c; --info: #9dbcff; --info-bg: #1b2b55; --gold-soft: #3a3013;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { background: var(--bg); color: var(--ink); }
body { margin: 0; font: 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; text-wrap: balance; margin: 0 0 .4em; color: var(--ink); }
h1 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.4rem); font-weight: 800; }
h2 { font-size: 1.35rem; font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 .75em; }
a { color: var(--navy-ink); }
img { max-width: 100%; }
.num, .money, table .r { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); letter-spacing: .02em; }
.small { font-size: .88rem; }
.muted { color: var(--ink-3); }
.lead { font-size: 1.12rem; color: var(--ink-2); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.good-text { color: var(--good); font-weight: 700; }
.bad-text { color: var(--bad); font-weight: 700; }
.warn-text { color: var(--warn); font-weight: 700; }
.eyebrow { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--green); margin: 0 0 .5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1[tabindex="-1"]:focus { outline: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- demo bar ---------- */
.demobar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 6px 16px; background: var(--gold); color: #2a2100; font-size: .85rem; font-weight: 700; }
.demobar-long { display: inline; }
@media (max-width: 640px) { .demobar-long { display: none; } .demobar { padding: 4px 12px; } }
.demobar button { background: rgba(0, 0, 0, .12); color: inherit; border: 0; border-radius: 999px; padding: 3px 12px; font: inherit; cursor: pointer; }

/* ---------- buttons, pills ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 16px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); font: 700 .98rem/1.1 var(--body); cursor: pointer; text-decoration: none; transition: transform .08s, background .15s, border-color .15s; }
.btn:hover:not(:disabled) { border-color: var(--navy-ink); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:hover:not(:disabled) { background: #163478; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover:not(:disabled) { background: var(--surface-2); border-color: transparent; }
.btn.danger { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.btn.give { background: var(--give); color: #fff; border-color: var(--give); }
.btn.big { min-height: 54px; padding: 12px 22px; font-size: 1.08rem; border-radius: 14px; }
.btn.small { min-height: 34px; padding: 4px 10px; font-size: .85rem; border-radius: 10px; }
.btn.full { width: 100%; }
.btn.round { width: 48px; height: 48px; border-radius: 50%; padding: 0; font-size: 1.4rem; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.pill.good { background: var(--good-bg); color: var(--good); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.info { background: var(--info-bg); color: var(--info); }
.pill.muted { background: var(--surface-2); color: var(--ink-3); }
.pill.primary { background: var(--navy); color: #fff; }
.band { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 8px; border-radius: 8px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.band.b-seeds { background: #f6ecdc; color: #7a4d12; } .band.b-seedlings { background: #e2f5e5; color: #226a2d; } .band.b-sprouts { background: #e0f2ec; color: #19664c; } .band.b-growers { background: #e4ecfb; color: #1f4aa0; } .band.b-oaks { background: #efe6fa; color: #5b2f94; }
:root[data-theme="dark"] .band { filter: brightness(.9) saturate(.9); }
.note { padding: 10px 14px; border-radius: 12px; background: var(--surface-2); border-left: 5px solid var(--line); }
.note.info { background: var(--info-bg); border-color: var(--info); }
.note.warn { background: var(--warn-bg); border-color: var(--warn); }
.say { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); cursor: pointer; font-size: 1.1rem; flex: none; vertical-align: middle; }
.say:hover { border-color: var(--gold); background: var(--gold-soft); }
.say.mini { width: 30px; height: 30px; font-size: .85rem; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row > .field { flex: 1 1 160px; }
.stack { display: grid; gap: 14px; }
.narrow { max-width: 560px; }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; }
.field.inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.f-label { font-weight: 700; font-size: .95rem; }
.f-hint { font-size: .84rem; color: var(--ink-3); }
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 2px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 44px; width: 100%; }
input[type="checkbox"], input[type="radio"] { width: 22px; height: 22px; min-height: 0; accent-color: var(--navy); flex: none; }
input[type="range"] { padding: 0; border: 0; accent-color: var(--navy); background: transparent; }
.field.inline input[type="range"] { flex: 1 1 160px; width: auto; }
.field.inline input[type="number"], .field.inline input[type="date"], .field.inline select { width: auto; }
input:focus, select:focus, textarea:focus { border-color: var(--navy-ink); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 45%, transparent); }
.big-input { font-size: 1.4rem; text-align: center; letter-spacing: .15em; }
.emoji-in { width: 64px !important; text-align: center; font-size: 1.3rem; }
.check { display: flex; gap: 10px; align-items: center; min-height: 40px; cursor: pointer; }
.switch { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; cursor: pointer; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-form input:not(.emoji-in):not([type="hidden"]) { flex: 1 1 120px; width: auto; }
.inline-form input[type="number"] { flex: 0 1 100px; }
.move-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--surface-2); }
.move-form input { width: 90px; } .move-form select { width: auto; }
fieldset { border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0; }
legend { font-weight: 700; padding: 0 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pick-kids { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 12px; }
details > summary { cursor: pointer; font-weight: 700; padding: 8px 0; }
details.add { margin-top: 12px; padding: 4px 14px 12px; border: 2px dashed var(--line); border-radius: 12px; }

/* ---------- app shell ---------- */
.app { display: grid; grid-template-columns: 232px 1fr; grid-template-rows: auto 1fr; grid-template-areas: "head head" "nav main"; min-height: 100vh; }
.app-head { grid-area: head; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand .mark { width: 40px; height: 40px; flex: none; }
.brand strong { font-family: var(--display); font-size: 1.15rem; display: block; line-height: 1.05; }
.brand small { display: block; color: var(--ink-3); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
.me { display: flex; align-items: center; gap: 10px; }
.me-text { display: grid; line-height: 1.15; } .me-text small { color: var(--ink-3); }
.app-nav { grid-area: nav; padding: 16px 10px; border-right: 1px solid var(--line); background: var(--surface); }
.app-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; position: sticky; top: 80px; }
.app-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--ink-2); text-decoration: none; font-weight: 700; min-height: 46px; }
.app-nav a:hover { background: var(--surface-2); color: var(--ink); }
.app-nav a.on { background: var(--navy); color: #fff; }
.app-nav .n-e { font-size: 1.35rem; width: 28px; text-align: center; }
.app-nav .n-site { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.app-main { grid-area: main; padding: 24px clamp(16px, 3vw, 36px) 64px; min-width: 0; max-width: 1180px; width: 100%; outline: none; }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 16px; top: 8px; z-index: 50; background: var(--gold); padding: 8px 12px; border-radius: 8px; }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; grid-template-areas: "head" "main" "nav"; }
  .app-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 25; padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px)); border-right: 0; border-top: 1px solid var(--line); overflow-x: auto; }
  .app-nav ul { display: flex; gap: 2px; position: static; min-width: max-content; }
  .app-nav a { flex-direction: column; gap: 0; padding: 6px 10px; min-height: 58px; font-size: .74rem; min-width: 68px; justify-content: center; }
  .app-nav .n-site { margin: 0; border: 0; padding: 0; }
  .app-main { padding-bottom: 110px; }
  .me-text { display: none; }
  .brand small { max-width: 45vw; }
}
.page-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { margin: 0; }
.page-head .lead { flex-basis: 100%; margin: 0; }
.page-head > .row, .page-head > .head-balance { margin-left: auto; }
.head-balance { display: grid; text-align: right; }

/* ---------- panels, stats ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); margin-bottom: 18px; min-width: 0; }
.panel.attention { border: 2px solid var(--gold); }
.panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.panel-head h2 { margin: 0; font-size: 1.25rem; }
.panel-head > :last-child:not(h2) { margin-left: auto; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 0 18px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0 18px; align-items: start; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; display: grid; gap: 2px; }
.stat-label { font-size: .82rem; color: var(--ink-3); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.stat-value { font-family: var(--display); font-size: 1.7rem; font-weight: 800; line-height: 1.1; }
.stat-sub { font-size: .82rem; color: var(--ink-3); }
.stat.warn { border-color: var(--gold); background: var(--gold-soft); } .stat.good .stat-value { color: var(--good); } .stat.bad .stat-value { color: var(--bad); }
.empty-state { text-align: center; padding: 18px; color: var(--ink-2); }
.es-emoji { font-size: 2.4rem; }
.empty-state strong { display: block; font-size: 1.05rem; }
.bar { height: 10px; background: var(--surface-3); border-radius: 999px; overflow: hidden; min-width: 60px; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--green), #6fcf5b); border-radius: inherit; }
.bar.big { height: 16px; margin: 12px 0; } .bar.over > span { background: var(--bad); }
.table-wrap { overflow-x: auto; border-radius: 10px; }
.table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table th, .table td { padding: 10px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); background: var(--surface-2); }
.table .r { text-align: right; }
.table.small { font-size: .85rem; }
.table select { min-height: 36px; padding: 4px 8px; width: auto; max-width: 220px; }
ul.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checklist { padding-left: 0; list-style: none; display: grid; gap: 6px; }
.checklist li { padding-left: 28px; position: relative; } .checklist li::before { content: "✓"; position: absolute; left: 4px; color: var(--green); font-weight: 800; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip-btn { border: 2px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 14px; font: 700 .9rem var(--body); color: var(--ink-2); cursor: pointer; min-height: 40px; }
.chip-btn.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); font-size: .85rem; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; } .filters .chips { margin: 0; } .filters input { max-width: 280px; }
.avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); font-size: 1.25rem; flex: none; }
.avatar.lg { width: 52px; height: 52px; font-size: 1.8rem; } .avatar.xl { width: 76px; height: 76px; font-size: 2.8rem; }

/* ---------- toasts, modal ---------- */
#toasts { position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 8px; width: min(92vw, 460px); pointer-events: none; }
@media (max-width: 900px) { #toasts { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); } }
.toast { padding: 12px 16px; border-radius: 12px; background: var(--ink); color: var(--bg); font-weight: 700; box-shadow: var(--shadow); animation: toastIn .25s ease-out; transition: opacity .5s; }
.toast.bad { background: var(--bad); color: #fff; } .toast.warn { background: var(--gold); color: #2a2100; }
.toast.out { opacity: 0; }
@keyframes toastIn { from { transform: translateY(10px); opacity: 0; } }
.modal-wrap { position: fixed; inset: 0; z-index: 50; background: rgba(10, 18, 40, .55); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.modal { position: relative; background: var(--surface); border-radius: 20px; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 24px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.modal.wide { width: min(820px, 100%); }
.modal-x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--ink); cursor: pointer; font-size: 1rem; }
.modal h2 { padding-right: 40px; }
body.modal-open { overflow: hidden; }

/* ---------- HGE card (artwork provided by Homegrown Economics; nothing is printed over the logo) ---------- */
.hgecard.art { margin: 0; width: 100%; max-width: 380px; display: grid; gap: 8px; }
.hc-face { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 1.436; box-shadow: 0 12px 26px rgba(20, 35, 74, .28); background: #7cc36a; }
.hc-face img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hgecard.small { max-width: 180px; } .hgecard.small .hc-face { border-radius: 12px; }
.hgecard.off .hc-face img { filter: grayscale(.9); opacity: .7; }
.hc-stamp { position: absolute; left: 50%; bottom: 30%; transform: translateX(-50%) rotate(-6deg); padding: 4px 16px; border-radius: 8px; background: rgba(184, 50, 42, .92); color: #fff; font: 800 1.05rem var(--display); letter-spacing: .12em; }
.hgecard figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; font-size: .88rem; color: var(--ink-2); }
.full-num { font-size: 1.05rem; color: var(--ink); background: var(--gold-soft); padding: 2px 8px; border-radius: 6px; }
.hc-fallback { display: grid; place-items: center; height: 100%; color: #fff; background: linear-gradient(135deg, #1f7a33, #2e8b3a); font: 800 1.4rem var(--display); }
.hc-fallback .mark { width: 48px; height: 48px; }
.hgecard.empty { aspect-ratio: 1.436; max-width: 380px; border-radius: 22px; display: grid; place-items: center; padding: 20px; text-align: center; background: var(--surface-2); color: var(--ink-2); border: 2px dashed var(--line); }
.method .hgecard.small { width: 150px; flex: none; }

/* ---------- jars ---------- */
.jars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.jar { display: grid; justify-items: center; gap: 6px; text-align: center; position: relative; }
.jar-glass { position: relative; width: 100%; max-width: 92px; aspect-ratio: .8; border: 3px solid var(--line); border-top-width: 8px; border-radius: 12px 12px 22px 22px; overflow: hidden; background: var(--surface-2); }
.jar-fill { position: absolute; left: 0; right: 0; bottom: 0; transition: height .5s ease; opacity: .85; }
.j-spend .jar-fill { background: var(--spend); } .j-save .jar-fill { background: var(--save); } .j-give .jar-fill { background: var(--give); } .j-invest .jar-fill { background: var(--invest); }
.jar-emoji { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.6rem; }
.jar-label { display: grid; font-weight: 700; font-size: .9rem; line-height: 1.2; }
.jar-label .money { font-size: 1.05rem; }
.jars.big .jar-glass { max-width: 120px; } .jars.big .jar-emoji { font-size: 2.2rem; }
.jar .say.mini { position: absolute; top: -6px; right: 0; }
.money abbr { text-decoration: none; font-size: .7em; color: var(--ink-3); font-weight: 700; }
.money.lg .num { font-size: 1.5rem; font-family: var(--display); font-weight: 800; }
.money.xl .num { font-size: 2.6rem; font-family: var(--display); font-weight: 800; }
.big-balance { display: grid; margin-bottom: 14px; }

/* ---------- transactions ---------- */
.txns { list-style: none; margin: 0; padding: 0; }
.txn { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.txn:last-child { border-bottom: 0; }
.t-ico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); font-size: 1.2rem; }
.t-main { display: grid; gap: 2px; min-width: 0; } .t-memo { color: var(--ink-2); font-size: .9rem; overflow-wrap: anywhere; }
.t-parts { display: flex; flex-wrap: wrap; gap: 4px; }
.tp { font-size: .72rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.tp.j-spend { color: var(--spend); } .tp.j-save { color: var(--save); } .tp.j-give { color: var(--give); } .tp.j-invest { color: var(--invest); }
.t-amt { text-align: right; display: grid; font-weight: 800; font-family: var(--display); font-size: 1.15rem; }
.t-amt small { font: 400 .76rem var(--body); color: var(--ink-3); }
.txn.in .t-amt .num { color: var(--good); }

/* ---------- student ---------- */
.hello { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.hello h1 { margin: 0; } .hello .lead { margin: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 12px; margin-bottom: 18px; }
.tile { display: grid; gap: 4px; justify-items: start; text-align: left; padding: 16px; border-radius: 18px; border: 2px solid var(--line); background: var(--surface); cursor: pointer; font: inherit; color: var(--ink); min-height: 120px; box-shadow: var(--shadow); }
.tile:hover { border-color: var(--navy-ink); transform: translateY(-2px); transition: transform .12s; }
.tile.hot { border-color: var(--gold); background: linear-gradient(180deg, var(--gold-soft), var(--surface)); }
.tile-emoji { font-size: 2rem; } .tile strong { font-family: var(--display); font-size: 1.15rem; } .tile span:last-child { color: var(--ink-2); font-size: .9rem; }
.steps-track { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-bottom: 12px; }
.st { padding: 10px; border-radius: 12px; background: var(--surface-2); text-align: center; font-weight: 700; color: var(--ink-3); }
.st.done { background: var(--good-bg); color: var(--good); } .st.now { background: var(--gold-soft); color: var(--warn); outline: 2px solid var(--gold); }
.promises { display: grid; gap: 4px; }
.lesson-list { display: grid; gap: 12px; }
.lesson-card { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px; border: 2px solid var(--line); border-radius: 16px; background: var(--surface); }
.lesson-card.st-assigned { border-color: color-mix(in srgb, var(--navy) 35%, var(--line)); }
.lc-emoji { font-size: 2.4rem; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 16px; background: var(--surface-2); }
.lc-body h3 { margin: 0 0 2px; } .lc-body p { margin: 0 0 6px; }
.lc-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; align-items: center; }
.earn { font-weight: 700; color: var(--good); font-size: .88rem; }
@media (max-width: 560px) { .lesson-card { grid-template-columns: 48px 1fr; } .lc-emoji { width: 48px; height: 48px; font-size: 1.8rem; } .lc-go { grid-column: 1 / -1; } .lc-go .btn { width: 100%; } }
.job-list, .chore-grid, .cause-list, .goals-list { display: grid; gap: 10px; }
.job, .chore, .cause { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: var(--surface-2); }
.job.mine { background: var(--good-bg); }
.ch-emoji { font-size: 2rem; text-align: center; }
.job p, .chore p, .cause p { margin: 2px 0; }
@media (max-width: 560px) { .job, .chore, .cause { grid-template-columns: 40px 1fr; } .job > :last-child, .chore > :last-child, .cause > :last-child { grid-column: 1 / -1; } }
.clock-live { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 16px; border-radius: 16px; background: var(--gold-soft); border: 2px solid var(--gold); margin-bottom: 14px; }
.clock-live form { grid-column: 1 / -1; }
.cl-emoji { font-size: 2.4rem; }
.goal { display: grid; grid-template-columns: 44px 1fr auto auto; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; background: var(--surface-2); }
.goal.done { background: var(--good-bg); }
.g-emoji { font-size: 1.8rem; text-align: center; } .g-main { display: grid; gap: 4px; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 14px; margin-bottom: 18px; }
.product { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.product.out { opacity: .6; }
.product h3 { margin: 0; }
.p-emoji { font-size: 3rem; height: 76px; display: grid; place-items: center; border-radius: 14px; background: var(--surface-2); }
.p-foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; }
.seller { font-size: .85rem; font-weight: 700; color: var(--purple); margin: 0; }
.meal-set { margin-bottom: 14px; }
.meal-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 10px; }
.meal { position: relative; display: grid; gap: 4px; justify-items: center; text-align: center; padding: 14px; border-radius: 16px; border: 3px solid var(--line); background: var(--surface); cursor: pointer; font: inherit; color: var(--ink); min-height: 130px; }
.meal.sel { border-color: var(--green); background: var(--good-bg); }
.meal small { color: var(--ink-3); } .m-emoji { font-size: 2.4rem; }
.tick { position: absolute; top: 8px; right: 10px; color: var(--green); font-weight: 900; font-size: 1.2rem; }
.meal:disabled { cursor: not-allowed; opacity: .7; }
.count-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.count-list strong { font-size: 1.3rem; font-family: var(--display); }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 12px; }
.badge { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 16px; border-radius: 18px; background: var(--surface-2); color: var(--ink-3); }
.badge.got { background: var(--surface); color: var(--ink); border: 2px solid var(--gold); box-shadow: var(--shadow); }
.b-emoji { font-size: 2.6rem; } .badge span:last-child { font-size: .85rem; }
.event-list { display: grid; gap: 12px; }
.event { display: grid; gap: 4px; padding: 14px; border-radius: 14px; background: var(--surface-2); }
.event.big { background: var(--surface); border: 1px solid var(--line); margin-bottom: 12px; }
.station-chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- checkout ---------- */
.co-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.co-head h2 { margin: 0; }
.co-item-emoji { font-size: 2.6rem; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 16px; background: var(--surface-2); flex: none; }
.co-steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 0 auto; }
.co-steps li { width: 26px; height: 6px; border-radius: 3px; background: var(--surface-3); } .co-steps li.on { background: var(--green); }
.co-review { display: grid; gap: 12px; }
.co-qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; }
.stepper { display: flex; gap: 10px; align-items: center; } .stepper output { font: 800 1.6rem var(--display); min-width: 32px; text-align: center; }
.co-math { margin: 0; display: grid; gap: 6px; padding: 14px; border-radius: 14px; background: var(--surface-2); }
.co-math > div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.co-math dt { color: var(--ink-2); } .co-math dd { margin: 0; font-weight: 700; }
.co-math .minus { color: var(--bad); }
.co-after { border-top: 2px dashed var(--line); padding-top: 8px; font-size: 1.1rem; }
.co-after.neg dd { color: var(--bad); }
.co-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 16px; }
.co-methods { display: grid; gap: 12px; }
.method { display: flex; gap: 14px; align-items: center; text-align: left; padding: 14px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface); cursor: pointer; font: inherit; color: var(--ink); }
.method:hover:not(:disabled) { border-color: var(--navy-ink); } .method:disabled { opacity: .5; }
.method strong { display: block; font-size: 1.05rem; } .method small { color: var(--ink-3); }
.method .hgecard.small { width: 150px; flex: none; }
.m-ico { font-size: 2.2rem; width: 150px; text-align: center; flex: none; }
@media (max-width: 480px) { .method { flex-direction: column; text-align: center; } }
.pinpad { display: grid; justify-items: center; gap: 8px; }
.pin-title { font-weight: 700; font-size: 1.1rem; margin: 0; }
.pin-dots { display: flex; gap: 14px; margin: 6px 0 10px; }
.dot { width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--navy-ink); } .dot.on { background: var(--navy-ink); }
.keys { display: grid; grid-template-columns: repeat(3, 72px); gap: 10px; }
.key { height: 64px; border-radius: 18px; border: 2px solid var(--line); background: var(--surface); font: 800 1.6rem var(--display); color: var(--ink); cursor: pointer; }
.key:active { background: var(--surface-2); } .key.fn { font-size: 1.1rem; color: var(--ink-2); }
.co-confirm { display: grid; justify-items: center; gap: 14px; text-align: center; }
.big-q { font-size: 1.35rem; margin: 0; }
.yesno { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
.btn.yes { background: var(--green); color: #fff; border-color: var(--green); min-height: 88px; font-size: 1.3rem; border-radius: 20px; }
.btn.no { background: var(--surface-2); min-height: 88px; font-size: 1.3rem; border-radius: 20px; }
.result { text-align: center; display: grid; justify-items: center; gap: 6px; }
.r-emoji { font-size: 4rem; line-height: 1; }
.pop { animation: pop .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
.result .big { font-size: 1.15rem; }
.result .co-math { width: 100%; }

/* ---------- lesson player ---------- */
.lesson-page { max-width: 880px; margin: 0 auto; }
.lesson-top { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; align-items: center; margin-bottom: 14px; }
.lesson-top .bar { grid-column: 1 / -1; }
.lt-title { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 1.05rem; }
.lesson-stage { background: var(--surface); border-radius: 24px; border: 1px solid var(--line); box-shadow: var(--shadow); padding: clamp(18px, 4vw, 36px); min-height: 360px; }
.slide { display: grid; gap: 14px; }
.slide.step { justify-items: center; text-align: center; }
.step-emoji { font-size: clamp(4rem, 3rem + 5vw, 6.5rem); line-height: 1; }
.slide p.lg { font-size: 1.3rem; max-width: 60ch; } .slide p.xl { font-size: 1.6rem; max-width: 40ch; }
.ms-lisa { display: flex; gap: 12px; align-items: flex-end; }
.ml-face { font-size: 3.2rem; line-height: 1; }
.bubble { background: var(--gold-soft); border: 2px solid var(--gold); border-radius: 18px 18px 18px 4px; padding: 12px 16px; font-size: 1.1rem; }
.goals { font-size: 1.1rem; }
.vocab { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.vcard { position: relative; display: grid; gap: 4px; text-align: left; padding: 12px 14px 12px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface-2); cursor: pointer; font: inherit; color: var(--ink); }
.vcard strong { font-family: var(--display); font-size: 1.2rem; color: var(--navy-ink); }
.vsay { position: absolute; top: 8px; right: 10px; }
.lesson-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; }
.early .slide p, .early .opt, .early .sort-item { font-size: 1.3rem; }
.sort-items { display: flex; flex-wrap: wrap; gap: 10px; min-height: 60px; }
.sort-item { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 14px; border: 3px solid var(--line); background: var(--surface); font: 700 1.05rem var(--body); cursor: pointer; color: var(--ink); min-height: 56px; }
.sort-item span { font-size: 1.8rem; }
.sort-item.sel { border-color: var(--gold); background: var(--gold-soft); transform: scale(1.04); }
.bins { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.bin { display: grid; align-content: start; gap: 8px; min-height: 140px; padding: 14px; border-radius: 18px; border: 3px dashed var(--navy-ink); background: var(--info-bg); cursor: pointer; font: inherit; color: var(--ink); text-align: left; }
.bin strong { font-family: var(--display); font-size: 1.3rem; }
.bin-items { display: flex; flex-wrap: wrap; gap: 6px; }
.quiz .q { margin-bottom: 14px; }
.opts { display: grid; gap: 8px; margin-top: 8px; }
.opt { text-align: left; padding: 12px 16px; border-radius: 14px; border: 3px solid var(--line); background: var(--surface); font: 700 1.05rem var(--body); cursor: pointer; color: var(--ink); min-height: 52px; }
.opt.sel { border-color: var(--navy-ink); background: var(--info-bg); }
.practice { padding: 14px; border-radius: 14px; background: var(--good-bg); }
.sim-sliders { display: grid; gap: 10px; }
.slider { display: grid; grid-template-columns: 70px 1fr 140px; gap: 10px; align-items: center; font-weight: 700; }
.slider output { font-variant-numeric: tabular-nums; }
.slider.j-spend { color: var(--spend); } .slider.j-save { color: var(--save); } .slider.j-give { color: var(--give); } .slider.j-invest { color: var(--invest); }
@media (max-width: 520px) { .slider { grid-template-columns: 1fr; gap: 2px; } }
.sim-check { font-weight: 700; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); }
.sim-check.good { background: var(--good-bg); color: var(--good); } .sim-check.bad { background: var(--bad-bg); color: var(--bad); }
.sim-shop { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: 10px; }
.sim-item { display: grid; justify-items: center; gap: 2px; padding: 12px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); cursor: pointer; font: inherit; color: var(--ink); }
.sim-item span { font-size: 2rem; } .sim-item.sel { border-color: var(--navy-ink); background: var(--info-bg); }
.sim-log { list-style: none; padding: 0; display: grid; gap: 4px; }
.sim-budget { display: grid; gap: 8px; } .sim-budget input { width: 110px !important; }
.sim-result { padding: 14px; border-radius: 14px; background: var(--surface-2); }
.grow-chart { display: flex; align-items: flex-end; gap: 6px; height: 180px; padding: 10px; border-radius: 14px; background: var(--surface-2); }
.gc-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 4px; }
.gc-bar { width: 100%; background: linear-gradient(0deg, var(--invest), #ffc27a); border-radius: 6px 6px 2px 2px; }
.gc-col small { font-size: .7rem; color: var(--ink-3); }
.weeks { display: flex; flex-wrap: wrap; gap: 4px; } .wk { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--good-bg); color: var(--good); font-size: .75rem; font-weight: 700; }
.stub { border-collapse: collapse; width: 100%; max-width: 440px; } .stub th, .stub td { padding: 8px; border-bottom: 1px solid var(--line); text-align: left; } .stub td { text-align: right; font-variant-numeric: tabular-nums; } .stub .net { font-weight: 800; font-size: 1.1rem; }

/* ---------- adults ---------- */
.approvals { display: grid; gap: 10px; }
.approval { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: var(--surface-2); }
.approval p { margin: 2px 0 4px; }
.ap-emoji { font-size: 1.9rem; text-align: center; }
.ap-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) { .approval { grid-template-columns: 40px 1fr; } .ap-btns { grid-column: 1 / -1; justify-content: stretch; } .ap-btns .btn { flex: 1; } }
.kids { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 0 18px; }
.kid-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.kid-head h2 { margin: 0; } .kid-head .btn { margin-left: auto; }
.kid-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.kid-facts > div { display: grid; gap: 2px; }
.msgs { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.msgs li { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.msgs li.unread { border-left: 5px solid var(--gold); } .msgs li.mine { background: var(--info-bg); }
.m-sub { font-weight: 700; }
.pickup-code { font-size: 2.6rem; font-weight: 800; letter-spacing: .3em; text-align: center; padding: 10px; border-radius: 14px; background: var(--gold-soft); }
.designs { display: flex; gap: 8px; flex-wrap: wrap; }
.design { display: grid; justify-items: center; gap: 4px; cursor: pointer; text-transform: capitalize; font-size: .85rem; }
.design span { padding: 14px 20px; border-radius: 10px; color: #fff; font-weight: 700; }
.design.d-green span { background: #2e8b3a; } .design.d-blue span { background: #1f4fb8; } .design.d-gold span { background: #e0a100; color: #2b1d00; } .design.d-purple span { background: #6b3fa0; } .design.d-orange span { background: #ea7419; }
.design input { position: absolute; opacity: 0; } .design input:checked + span { outline: 4px solid var(--gold); outline-offset: 2px; } .design input:focus-visible + span { outline: 4px solid var(--ink); }
.editor textarea { font-family: var(--mono); font-size: .88rem; }
.vocab-dl div { display: grid; grid-template-columns: 140px 1fr; gap: 8px; } .vocab-dl dt { font-weight: 700; } .vocab-dl dd { margin: 0; }
.kid-rows { display: grid; gap: 10px; }
.kid-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.kid-row p { margin: 2px 0 0; }
.kid-row.st-checked_out { opacity: .6; }
form.kid-row { grid-template-columns: 56px 1fr 90px 180px auto; }
.code-in { text-align: center; }
@media (max-width: 720px) { .kid-row, form.kid-row { grid-template-columns: 48px 1fr; } .kid-row > :nth-child(n+3) { grid-column: 1 / -1; } }
.station-card { background: var(--gold-soft); }

/* ---------- public site ---------- */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; display: flex; align-items: center; gap: 16px; padding: 10px clamp(16px, 4vw, 40px); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a { padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 700; }
.site-nav a:hover, .site-nav a.on { background: var(--surface-2); color: var(--ink); }
.site-cta { display: flex; gap: 8px; }
.site-menu { display: none; margin-left: auto; position: relative; }
.site-menu summary { list-style: none; font-size: 1.6rem; padding: 4px 10px; border-radius: 10px; border: 2px solid var(--line); }
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu > div { position: absolute; right: 0; top: 52px; display: grid; min-width: 200px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; }
.site-menu a { padding: 10px 12px; text-decoration: none; font-weight: 700; color: var(--ink); border-radius: 8px; } .site-menu a:hover { background: var(--surface-2); }
@media (max-width: 1320px) { .site-nav { display: none; } .site-cta { margin-left: auto; } .site-menu { display: block; margin-left: 8px; } }
@media (max-width: 640px) { .site-cta { display: none; } .site-menu { display: block; } .brand small { display: none; } }
.site-main { padding: 0 clamp(16px, 4vw, 40px); max-width: 1200px; margin: 0 auto; outline: none; }
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; padding: clamp(28px, 6vw, 72px) 0 32px; }
.hero h1 { font-size: clamp(2.3rem, 1.4rem + 4vw, 4.2rem); line-height: 1.02; letter-spacing: -.01em; }
.hl { color: var(--green); background: linear-gradient(transparent 62%, color-mix(in srgb, var(--gold) 55%, transparent) 62%); }
.hero-art { position: relative; display: grid; justify-items: center; }
.hero-logo img { width: 100%; max-width: 560px; filter: drop-shadow(0 10px 18px rgba(20, 35, 74, .18)); }
.hero-card { width: min(62%, 300px); margin-top: 22px; transform: rotate(-3deg); }
.hero-card .hgecard.small { max-width: none; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }
.band-seven { padding: 40px 0 20px; }
.seven { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; }
.sev { padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); border-top: 6px solid var(--c, var(--navy)); }
.sev strong { display: block; font-family: var(--display); font-size: 1.35rem; } .sev p { font-size: .9rem; color: var(--ink-2); margin: 4px 0 0; } .sev-e { font-size: 1.8rem; }
.s-earn { --c: var(--gold); } .s-save { --c: var(--save); } .s-spend { --c: var(--spend); } .s-give { --c: var(--give); } .s-invest { --c: var(--invest); } .s-trade { --c: var(--navy); } .s-grow { --c: #7ed36b; }
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; padding: 40px 0; }
.split.reverse { grid-template-columns: 1fr 1.2fr; } .split.tight { padding: 10px 0; }
@media (max-width: 860px) { .split, .split.reverse { grid-template-columns: 1fr; } }
.journey { padding-left: 1.3em; display: grid; gap: 8px; } .journey.big li { padding: 4px 0; }
.phone-mock { justify-self: center; width: min(300px, 100%); aspect-ratio: .52; border-radius: 40px; background: var(--ink); padding: 14px; box-shadow: var(--shadow); }
.pm-screen { background: var(--bg); border-radius: 28px; height: 100%; padding: 18px 14px; display: grid; align-content: start; gap: 10px; font-size: .9rem; color: var(--ink); }
.pm-top { font-family: var(--display); font-weight: 800; font-size: 1.1rem; } .pm-bal { font-size: 1rem; } .pm-bal strong { font: 800 2rem var(--display); color: var(--spend); }
.pm-jars { display: flex; gap: 6px; flex-wrap: wrap; } .pm-jars span { padding: 4px 8px; border-radius: 10px; background: var(--surface); font-weight: 700; }
.pm-row { display: flex; justify-content: space-between; padding: 8px 10px; background: var(--surface); border-radius: 10px; }
.who { padding: 30px 0; }
.who-grid, .trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.who-card { padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.who-card span { font-size: 2rem; } .who-card strong { display: block; font-family: var(--display); font-size: 1.2rem; }
.pd-teaser { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 24px; border-radius: 24px; background: linear-gradient(135deg, var(--gold-soft), var(--info-bg)); }
.pd-teaser span { padding: 10px 14px; border-radius: 14px; background: var(--surface); font-weight: 700; box-shadow: var(--shadow); }
.trust { padding: 30px 0; } .trust-grid > div { padding: 16px; border-radius: 16px; background: var(--surface-2); }
.cta-band { text-align: center; padding: 40px 20px; margin: 20px 0 40px; border-radius: 28px; background: var(--navy); color: #fff; }
.cta-band h2 { color: #fff; } .cta-band .row { justify-content: center; } .cta-band .btn:not(.primary) { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); } .cta-band .btn.primary { background: var(--gold); border-color: var(--gold); color: #2a2100; }
.doc { max-width: 820px; margin: 0 auto; padding: 36px 0 48px; } .doc.wide { max-width: 1100px; }
.doc h2 { margin-top: 1.6em; }
.bands { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: 10px; }
.band-card { display: grid; justify-items: center; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); } .band-card span:first-child { font-size: 2rem; }
.units { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.unit { padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 2px; }
.u-n { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green); } .u-e { font-size: 1.6rem; } .unit strong { font-family: var(--display); font-size: 1.15rem; } .unit p { margin: 0; font-size: .9rem; color: var(--ink-2); }
.station-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.station { padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); } .station span { font-size: 2rem; } .station strong { display: block; font-family: var(--display); font-size: 1.15rem; } .station p { margin: 0; font-size: .92rem; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; margin: 20px 0; }
.plan { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.plan.pop { border: 3px solid var(--gold); }
.plan > strong { font-family: var(--display); font-size: 1.4rem; } .price { font-size: 1rem; } .price .num { font: 800 2.4rem var(--display); }
.plan .btn { margin-top: auto; }
.levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; }
.level { padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); border-top: 6px solid var(--gold); } .level strong { font-family: var(--display); font-size: 1.25rem; }
.site-foot { margin-top: 40px; padding: 30px clamp(16px, 4vw, 40px) 40px; background: var(--surface); border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 24px; max-width: 1200px; margin: 0 auto 20px; }
.foot-grid > div { display: grid; gap: 6px; align-content: start; } .foot-grid a { color: var(--ink-2); text-decoration: none; } .foot-grid a:hover { text-decoration: underline; }
.login { max-width: 1000px; margin: 0 auto; padding: 30px 0 40px; }
.demo-panel { border: 3px solid var(--gold); }
.demo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 10px; margin-bottom: 12px; }
.demo-acct { display: grid; gap: 2px; text-align: left; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); cursor: pointer; font: inherit; color: var(--ink); border-left: 6px solid var(--c, var(--navy)); }
.demo-acct:hover { border-color: var(--navy-ink); } .demo-acct span { font-size: .85rem; color: var(--ink-2); }
.r-owner { --c: var(--green); } .r-admin { --c: var(--navy); } .r-teacher { --c: var(--orange); } .r-parent { --c: var(--purple); } .r-student { --c: var(--gold); } .r-staff { --c: #d64e8a; }
.kid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; margin: 10px 0; }
.kid-btn { display: grid; justify-items: center; gap: 6px; padding: 12px 6px; border-radius: 18px; border: 2px solid var(--line); background: var(--surface); cursor: pointer; font: 700 1rem var(--body); color: var(--ink); }
.kid-btn:hover { border-color: var(--gold); background: var(--gold-soft); }
.kid-pin { display: grid; justify-items: center; gap: 10px; } .kid-big { display: grid; justify-items: center; font-size: 1.3rem; }

/* ---------- lesson guides & worksheets ---------- */
.guide-body h4 { font-family: var(--display); font-size: 1.05rem; margin: 1.2em 0 .3em; color: var(--navy-ink); }
.g-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: .9rem; color: var(--ink-2); margin-bottom: 8px; }
.g-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 0 24px; }
.g-vocab div { display: grid; grid-template-columns: 120px 1fr; gap: 8px; padding: 3px 0; } .g-vocab dt { font-weight: 700; } .g-vocab dd { margin: 0; }
.g-slides li { margin-bottom: 6px; }
.g-dialogue { background: var(--gold-soft); border-radius: 14px; padding: 12px 16px; } .g-dialogue p { margin: 0 0 4px; }
.worksheet { background: #fff; color: #14234a; border: 2px solid #d3ddef; border-radius: 12px; padding: 22px 26px; max-width: 800px; }
.ws-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 3px solid #2e8b3a; padding-bottom: 10px; margin-bottom: 12px; }
.ws-head h3 { margin: 2px 0; color: #1c3f94; font-size: 1.5rem; } .ws-brand { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #2e8b3a; font-weight: 700; } .ws-sub { font-size: .85rem; color: #4a5779; }
.ws-name { font-size: .95rem; line-height: 2; }
.ws-instr { font-weight: 700; }
.ws-items { display: grid; gap: 16px; padding-left: 1.4em; }
.ws-item p { margin: 0 0 6px; font-size: 1.05rem; }
.ws-opts { display: flex; flex-wrap: wrap; gap: 8px 18px; } .ws-opts.match { flex-direction: column; } .ws-opt { font-size: 1.05rem; }
.ws-lines span { display: block; border-bottom: 1.5px solid #9aa7c2; height: 30px; }
.ws-draw { height: 150px; border: 2px dashed #9aa7c2; border-radius: 10px; }
.ws-key { margin-top: 20px; } .ws-key h4 { color: #2e8b3a; }
.ws-match { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; } .ws-match ol { margin: 0; display: grid; gap: 8px; } .ws-blank { color: #9aa7c2; margin-left: 6px; }
.u-lessons { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 4px; font-size: .88rem; }
.unit details summary { font-size: .88rem; padding: 4px 0; }

/* ---------- coupons & workbook shop ---------- */
.coupon-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px; margin: 14px 0; border: 2px dashed var(--gold); border-radius: 14px; background: var(--gold-soft); }
.coupon-bar > span[aria-hidden] { font-size: 1.6rem; }
.coupon-bar .grow { flex: 1 1 220px; display: grid; gap: 4px; }
.coupon-bar .grow input { width: 100%; text-transform: uppercase; }
.coupon-bar.on { border-style: solid; }
.coupon-bar.on > div { flex: 1 1 220px; }
.ok-text { color: var(--good); font-weight: 700; }
.coupon-hero { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin: 10px 0 18px; }
.coupon-hero .lead { flex: 1 1 260px; margin: 0; }
.coupon-ticket { display: grid; gap: 2px; text-align: center; padding: 16px 22px; border-radius: 14px; background: var(--navy); color: #fff; min-width: 190px; position: relative; box-shadow: 0 6px 18px rgb(28 63 148 / .25); border: 3px dashed rgb(255 255 255 / .55); }
.coupon-ticket strong { font-size: 1.9rem; font-family: var(--display); color: var(--gold); line-height: 1.1; }
.coupon-ticket.big { margin: 12px 0; }
.coupon-ticket.big strong { font-size: 2rem; letter-spacing: .06em; overflow-wrap: anywhere; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.check { display: inline-flex; gap: 6px; align-items: center; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 16px; margin: 18px 0 26px; }
.shop-item { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.shop-cover { width: 100%; aspect-ratio: 8.5 / 11; object-fit: cover; border-radius: 6px; box-shadow: 0 4px 12px rgb(20 35 74 / .18); background: var(--surface-2); }
.shop-cover.ph { display: grid; place-content: center; text-align: center; color: #fff; background: linear-gradient(160deg, var(--navy), var(--green)); }
.shop-cover.ph span { font-size: 3rem; }
.shop-item .price { margin: auto 0 4px; padding-top: 4px; }
.shop-item .pill { align-self: center; }
@media print {
  .app-head, .app-nav, .no-print, .demobar, #toasts, .site-head, .site-foot { display: none !important; }
  .app { display: block; } .app-main { padding: 0; } .panel { border: 0; box-shadow: none; padding: 0; }
  body { background: #fff; } .worksheet { border: 0; padding: 0; }
}
.faq details { border-bottom: 1px solid var(--line); padding: 6px 0; } .faq summary { font-weight: 700; padding: 8px 0; } .plans.one { max-width: 420px; }

/* ---------- careers, résumé, checklist, checkbooks ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.jobdesc { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px 16px; margin: 8px 0; }
.jobdesc > div.wide { grid-column: 1 / -1; }
.jobdesc dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); font-weight: 700; }
.jobdesc dd { margin: 2px 0 0; } .jobdesc ul { margin: 2px 0 0; padding-left: 1.2em; }
.chips-inline { display: flex; flex-wrap: wrap; gap: 6px; }
.why-jobs { background: var(--gold-soft); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; }
.why-jobs ul { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 6px 0 0; padding-left: 1.1em; }
.why-jobs p { margin: 6px 0 0; font-style: italic; }
.day-checks { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.check.day { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; min-height: 40px; }
.app-form fieldset, .styles { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 0; }
.app-form legend, .styles legend { font-weight: 700; padding: 0 6px; }
.jd-peek { margin: 6px 0 12px; }
.style-opts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.style-opt { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 2px solid var(--line); border-radius: 12px; padding: 8px; cursor: pointer; min-width: 120px; }
.style-opt:has(input:checked) { border-color: var(--navy-ink); background: var(--info-bg); }
.style-opt img { width: 160px; height: auto; border-radius: 8px; }
.cb-swatch { display: grid; place-items: center; width: 120px; height: 56px; border-radius: 6px; background: #eef4e8; border: 1px solid #b9cfa8; font-size: 1.5rem; }
.cb-swatch.navy { background: #dfe7fb; border-color: #8ba3db; }
.earn-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px; }
.earn-item { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; min-height: 44px; }
.earn-item span:first-of-type { flex: 1; } .earn-item:has(input:checked) { background: var(--good-bg); border-color: var(--good); }
.resume-doc { background: #fff; color: #1b1f2a; border: 1px solid var(--line); border-radius: 8px; padding: 24px 28px; font-family: Georgia, 'Times New Roman', serif; line-height: 1.4; }
.resume-doc header { border-bottom: 2px solid #1c3f94; margin-bottom: 10px; } .resume-doc h3 { font-size: 1.6rem; margin: 0; color: #1c3f94; } .resume-doc header p { margin: 2px 0 8px; }
.resume-doc h4 { font-family: var(--body, sans-serif); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: #1c3f94; margin: 12px 0 4px; }
.resume-doc p { margin: 0 0 4px; } .resume-doc ul { margin: 2px 0 6px; padding-left: 1.2em; }
.rx { margin-bottom: 8px; } .rx-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; } .rx-head span, .rx-place { font-size: .9rem; color: #555; }
.exp-row { border-bottom: 1px dashed var(--line); padding-bottom: 8px; margin-bottom: 8px; }
.pcheck { background: #f3f8ee; color: #1b1f2a; border: 1px solid #9fb98f; border-radius: 6px; padding: 14px 18px; margin: 0 0 14px; font-family: Georgia, serif; page-break-inside: avoid; }
.pcheck.navy { background: #eef2fc; border-color: #8ba3db; }
.pc-top, .pc-bottom { display: flex; justify-content: space-between; gap: 12px; } .pc-no { text-align: right; }
.pc-line { margin: 12px 0; display: flex; align-items: flex-end; gap: 8px; }
.blank { flex: 1; display: inline-block; min-width: 120px; border-bottom: 1px solid #333; height: 1.1em; } .blank.long { flex: 3; }
.pc-box { border: 1px solid #333; padding: 2px 8px; white-space: nowrap; }
.pc-foot { margin-top: 10px; font: 700 .7rem/1.2 system-ui, sans-serif; letter-spacing: .08em; color: #6a6a6a; text-align: center; }
.print-only { display: none; }
@media print { .print-only { display: block !important; } .resume-grid { display: block; } .resume-doc { border: 0; padding: 0; } }
.grow-chart.duo .gc-col { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; align-items: end; gap: 2px; }
.grow-chart.duo .gc-col small { grid-column: 1 / -1; text-align: center; }
.gc-bar.steady, .key.steady { background: linear-gradient(0deg, var(--save), #9be3a6); }
.gc-bar.swing, .key.swing { background: linear-gradient(0deg, var(--give), #d9c4fa); }
.key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: middle; }
.resume-doc.mini { padding: 14px 18px; margin-top: 12px; }
.why-jobs ul { list-style: none; padding-left: 0; } .why-jobs li::before { content: "✓ "; color: var(--green); font-weight: 700; }

/* ---------- story, video, games ---------- */
.story-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 10px; } .story-head h2 { margin: 0; flex: 1; min-width: 200px; }
.story-badge, .game-badge { font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--gold-soft); color: var(--ink); padding: 4px 10px; border-radius: 999px; }
.story-text { font-family: Georgia, 'Times New Roman', serif; font-size: 1.15rem; line-height: 1.65; max-width: 68ch; }
.story-text.xl { font-size: 1.45rem; } .story-text p { margin: 0 0 .8em; }
.story-q { background: var(--surface-2); border-radius: 12px; padding: 12px 16px; margin-top: 12px; } .story-q ol { margin: 6px 0 0; }
.video-frame { position: relative; aspect-ratio: 16 / 9; width: 100%; max-width: 860px; background: #000; border-radius: 14px; overflow: hidden; }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.storyboard { display: grid; gap: 12px; }
.sb-stage { min-height: 200px; border-radius: 16px; padding: 18px; background: linear-gradient(160deg, #e9f6ea, #fff4cf); color: #14234a; display: grid; place-items: center; text-align: center; gap: 6px; }
.sb-sprout { font-size: 3rem; animation: sb-bob 1.6s ease-in-out infinite; } .sb-sprout.big { font-size: 4.5rem; }
@keyframes sb-bob { 50% { transform: translateY(-6px) rotate(-4deg); } }
@media (prefers-reduced-motion: reduce) { .sb-sprout { animation: none; } }
.sb-scene { font-style: italic; color: #4a5779; margin: 0; } .sb-line { font-size: 1.2rem; font-weight: 600; margin: 0; max-width: 60ch; }
.sb-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; } .sb-list li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 8px; border-radius: 10px; }
.sb-list li.on { background: var(--info-bg); } .sb-jump { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 700; cursor: pointer; }
.game-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .game-head h2 { margin: 0; }
.game-status { margin-top: 10px; }
.mem-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.mem-card { min-height: 96px; border-radius: 14px; border: 2px solid var(--line); background: var(--navy); color: #fff; font: inherit; font-weight: 700; padding: 10px; cursor: pointer; display: grid; place-items: center; text-align: center; }
.mem-card.up { background: var(--surface); color: var(--ink); } .mem-card.up.k-word { font-size: 1.15rem; } .mem-card.up.k-meaning { font-weight: 500; font-size: .92rem; }
.mem-card.matched { background: var(--good-bg); border-color: var(--good); } .mem-back { font-size: 2rem; }
.g-timer { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin: 8px 0 14px; } .g-timer span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--green)); transition: width .1s linear; }
.dash-item, .pay-item { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 18px; border-radius: 16px; background: var(--surface-2); font-size: 1.3rem; margin-bottom: 12px; }
.dash-emoji { font-size: 3rem; } .pay-item .price { font-size: 1.6rem; font-weight: 800; color: var(--green); }
.dash-bins { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; } .bin.big { min-height: 72px; font-size: 1.15rem; font-weight: 700; }
.money-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.money-note { min-width: 96px; min-height: 56px; border-radius: 10px; border: 2px solid #7fb07f; background: #e8f5e2; color: #14301a; font: inherit; font-weight: 800; font-size: 1.1rem; cursor: pointer; }
.money-note.coin { border-radius: 999px; min-width: 72px; border-color: #c9a227; background: #fff4cf; color: #3d2f00; }
.tray { font-size: 1.1rem; margin-bottom: 10px; } .g-result { padding: 14px 0; }
.bonus { text-align: left; margin: 16px 0; border-top: 1px dashed var(--line); padding-top: 12px; }
.g-books li { margin-bottom: 8px; } .g-prompt { background: var(--surface-2); padding: 10px 12px; border-radius: 10px; }

/* ---------- meal pre-order ---------- */
.mo-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; } .mo-head h2 { margin: 0; }
.mo-meal { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 0; display: grid; gap: 8px; }
.mo-meal legend { font-weight: 800; font-size: 1.1rem; padding: 0 6px; }
.mo-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.mo-opt { display: flex; align-items: center; gap: 8px; border: 2px solid var(--line); border-radius: 12px; padding: 10px 14px; min-height: 48px; cursor: pointer; font-weight: 600; }
.mo-opt:has(input:checked) { border-color: var(--navy-ink); background: var(--info-bg); }
.mo-drinks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.mo-drink { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; min-height: 44px; }
.mo-drink:has(input:checked) { background: var(--good-bg); border-color: var(--good); }
.price { font-weight: 700; color: var(--green); margin-left: auto; padding-left: 6px; }
.mo-total { font-size: 1.2rem; background: var(--gold-soft); border-radius: 12px; padding: 10px 14px; }
.count-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.count-grid li { display: flex; justify-content: space-between; gap: 8px; background: var(--surface-2); border-radius: 10px; padding: 8px 12px; text-transform: capitalize; }
.num-in { width: 90px; }
.trip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 12px 0; }
.trip { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.trip-e { font-size: 1.8rem; } .trip .price { font-size: 1.1rem; margin: 4px 0 0; padding: 0; } .trip .price .num { font-size: 1.6rem; font-weight: 800; }

/* ---------- student ID card ---------- */
.idcard { width: 100%; max-width: 420px; aspect-ratio: 3.375 / 2.125; margin: 8px 0; border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, #ffffff 0%, #eef4ff 60%, #fff4cf 100%); color: #14234a; border: 2px solid #1c3f94; display: flex; flex-direction: column; box-shadow: 0 6px 18px rgba(20, 35, 74, .15); font-size: 12px; }
.idcard.draft { opacity: .8; border-style: dashed; }
.idc-top { display: flex; align-items: center; gap: 8px; background: #1c3f94; color: #fff; padding: 6px 10px; }
.idc-logo { height: 30px; width: auto; background: #fff; border-radius: 6px; padding: 2px 4px; }
.idc-title { display: flex; flex-direction: column; line-height: 1.1; } .idc-title strong { letter-spacing: .08em; font-size: 13px; } .idc-title span { font-size: 10px; opacity: .9; }
.idc-body { flex: 1; display: flex; gap: 10px; padding: 8px 10px; }
.idc-photo { width: 30%; min-width: 72px; border-radius: 8px; background: #dfe7fb; display: grid; place-items: center; font-size: 36px; border: 1px solid #b8c7ee; } .idc-photo small { font-size: 9px; color: #4a5779; }
.idc-fields { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; margin: 0; }
.idc-fields .wide { grid-column: 1 / -1; } .idc-fields dt { font-size: 8.5px; text-transform: uppercase; letter-spacing: .06em; color: #4a5779; } .idc-fields dd { margin: 0; font-weight: 700; font-size: 11.5px; }
.idc-name { font-size: 15px !important; }
.idc-foot { background: #2e8b3a; color: #fff; font-size: 8.5px; font-weight: 700; text-align: center; padding: 3px 6px; letter-spacing: .03em; }

/* ---------- printable letters & mailed guide ---------- */
.letter { background: #fff; color: #1b1f2a; max-width: 8.5in; margin: 0 auto; padding: 0.55in 0.6in; border: 1px solid var(--line); border-radius: 6px; font: 13px/1.45 Arial, Helvetica, sans-serif; }
.letter p { margin: 0 0 8px; }
.lt-logos { display: flex; justify-content: center; align-items: center; gap: 24px; } .lt-logo { height: 110px; width: auto; } .lt-logo.small { height: 56px; }
.ltr-title { text-align: center; color: #1c3f94; font: 800 22px/1.2 Arial, sans-serif; margin: 8px 0 0; text-transform: uppercase; }
.lt-sub { text-align: center; color: #1fa3a3; font-weight: 700; margin: 2px 0 10px !important; } .lt-sub.green { color: #2e8b3a; }
.lt-box { border: 1px solid #b9d6ea; background: #f2f9fc; border-radius: 4px; padding: 8px 14px; margin-bottom: 12px; } .lt-box p { margin: 4px 0; }
.lt-box.two { display: grid; grid-template-columns: 2fr 1fr; gap: 0 16px; }
.lt-fill { border-bottom: 1px solid #333; padding: 0 4px; } .lt-blank { display: inline-block; border-bottom: 1px solid #333; height: 1em; vertical-align: bottom; }
.lt-note { border-radius: 4px; padding: 8px 12px; margin: 10px 0; font-size: 12px; } .lt-note.gold { background: #fff4cf; border: 1px solid #e0b000; } .lt-note.red { background: #fff5f5; border: 1px solid #c0392b; color: #8b1a1a; font-weight: 700; font-size: 10.5px; text-align: center; }
.lt-attach { border: 2px solid #1fa3a3; border-radius: 4px; width: 3.9in; height: 2.3in; margin: 12px auto; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 8px; color: #1c3f94; background: linear-gradient(#e8f7f7 28px, #fff 28px); } .lt-attach span { color: #888; font-size: 11px; margin-bottom: 40%; }
.lt-h { color: #2e8b3a; font: 700 15px Arial, sans-serif; margin: 10px 0 4px; } .lt-list { margin: 0 0 8px; padding-left: 18px; } .lt-list li { margin-bottom: 3px; }
.lt-footer { text-align: center; font-size: 11px; color: #1c3f94; margin-top: 10px !important; } .letter .center { text-align: center; }
.lt-jars { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #ccd; border-radius: 4px; overflow: hidden; text-align: center; font-size: 11px; margin-top: 6px; }
.lt-jars div { padding: 6px; } .lt-jars strong { display: block; color: #1c3f94; } .lt-jars .j-save { background: #e7f5ea; } .lt-jars .j-spend { background: #e6eefb; } .lt-jars .j-invest { background: #fdf0e3; } .lt-jars .j-give { background: #f1e9fa; }
.mailguide { display: grid; gap: 18px; }
.mg-page { background: #fff; color: #1b1f2a; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 6px; font: 11.5px/1.4 Arial, Helvetica, sans-serif; max-width: 11in; }
.mg-panel { padding: 0.3in 0.28in; border-right: 1px dashed #bbb; } .mg-panel:last-child { border-right: 0; }
.mg-panel h3 { color: #1c3f94; font: 800 15px Arial, sans-serif; margin: 0 0 6px; } .mg-panel h4 { color: #2e8b3a; margin: 8px 0 4px; font-size: 12.5px; }
.mg-panel ul, .mg-panel ol { padding-left: 16px; margin: 4px 0 8px; } .mg-panel li { margin-bottom: 3px; }
.mg-panel.cover { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(180deg, #f2f6fd, #fff4cf); }
.mg-logo { width: 88%; max-width: 2.8in; height: auto; } .mg-big { font: 800 20px Arial, sans-serif; color: #1c3f94; margin: 8px 0 4px; } .mg-muted { color: #666; }
.mg-jars { list-style: none; padding: 0 !important; display: grid; gap: 4px; } .mg-jars li { border-radius: 6px; padding: 5px 8px; } .mg-jars .j-save { background: #e7f5ea; } .mg-jars .j-spend { background: #e6eefb; } .mg-jars .j-invest { background: #fdf0e3; } .mg-jars .j-give { background: #f1e9fa; }
.print-center { display: flex; justify-content: center; }
@media screen and (max-width: 760px) { .mg-page { grid-template-columns: 1fr; } .mg-panel { border-right: 0; border-bottom: 1px dashed #bbb; } .letter { padding: 18px; } .lt-attach { width: 100%; } .lt-box.two { grid-template-columns: 1fr; } }
@media print {
  .letter, .mg-page { border: 0; border-radius: 0; box-shadow: none; }
  .letter { padding: 0; max-width: none; }
  .mg-page { page: guide; break-after: page; break-inside: avoid; max-width: none; height: 7.6in; overflow: hidden; }
  .mg-logo { max-width: 2.3in; }
  .letter { font-size: 12px; line-height: 1.38; }
  .lt-logo { height: 78px; } .lt-logo.small { height: 44px; }
  .lt-attach { height: 2.15in; margin: 8px auto; }
  .lt-note { margin: 6px 0; } .lt-box { margin-bottom: 8px; padding: 6px 12px; }
  .idcard { box-shadow: none; }
}
@page guide { size: letter landscape; margin: 0.4in; }
.letter h2.ltr-title { text-align: center; width: 100%; }
.letter .ltr-title { display: block; text-align: center !important; margin-inline: auto; }
@media print { .mg-page { font-size: 12.5px; } .mg-panel h3 { font-size: 16px; } }

.pk-page { margin-bottom: 18px; }
@media print { .pk-page { break-after: page; } }
@media (max-width: 520px) { .app-head { padding: 8px 12px; gap: 8px; } .me { gap: 6px; } .me .btn.small { padding: 6px 8px; min-height: 36px; } .brand small { display: none; } }
@media (max-width: 400px) { .brand span strong { font-size: .95rem; } }
