/* Mathis Family Dashboard — warm parchment theme, built for landscape iPad. */
:root {
  --bg: #f5eee2; --bg2: #efe6d6; --card: #fcf8f1; --line: #e2d5bf; --line2: #d6c7ad;
  --ink: #3a352e; --ink2: #5d554a; --muted: #8e8273;
  --terra: #c0663f; --terra-d: #a5532f; --terra-l: #f3dccd; --sage: #8ea487; --gold: #d9a441;
  --r: 18px; --r-sm: 12px; --shadow: 0 1px 0 rgba(80, 60, 30, .04), 0 6px 18px -10px rgba(80, 60, 30, .18);
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Nunito", -apple-system, "SF Pro Rounded", system-ui, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); transition: background-color .6s; color: var(--ink); font: 15px/1.35 var(--sans); -webkit-font-smoothing: antialiased; }
body { -webkit-user-select: none; user-select: none; overscroll-behavior: none; }
input, textarea, select { -webkit-user-select: text; user-select: text; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: default; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; letter-spacing: .2px; }
h2 { font-size: 26px; } h3 { font-size: 21px; }
.muted { color: var(--muted); } .small, small { font-size: 12.5px; } small { display: block; }
.grow { flex: 1; min-width: 0; } .row { display: flex; align-items: center; } .gap { gap: 10px; } .end { justify-content: flex-end; } .center { text-align: center; }
.eyebrow { font-size: 11.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.ico { width: 24px; height: 24px; }

/* ---------- shell ---------- */
#app { display: grid; grid-template-columns: 84px 1fr; height: 100vh; height: 100dvh; position: relative; }
.side { background: var(--bg2); border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; padding: 10px 0 10px; gap: 2px; z-index: 2; padding-top: max(10px, env(safe-area-inset-top)); }
.nav { width: 68px; height: 60px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--ink2); font-size: 11px; font-weight: 700; transition: background .15s; }
.nav .ico { width: 23px; height: 23px; }
.nav.on { background: var(--card); color: var(--terra); box-shadow: var(--shadow); border: 1px solid var(--line); }
.nav:active { background: #e6dac6; }
.side .grow { flex: 1; }
.main { display: flex; flex-direction: column; min-width: 0; height: 100%; position: relative; z-index: 1; }
.floral { position: fixed; top: -8px; right: -6px; width: 250px; opacity: .5; pointer-events: none; z-index: 0; }

.top { height: 76px; flex: none; display: flex; align-items: center; padding: 0 22px 0 24px; gap: 16px; padding-top: env(safe-area-inset-top); }
.brand h1 { font-size: 36px; line-height: 1; }
.brand .sub { color: var(--muted); font-size: 13px; margin-top: 3px; font-weight: 600; }
.hdr-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.hdr-time { font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1; display: flex; align-items: baseline; gap: 4px; }
.hdr-time small { font-family: var(--sans); font-size: 12px; font-weight: 800; color: var(--muted); display: inline; }
.hdr-wx { display: flex; align-items: center; gap: 8px; background: rgba(252, 248, 241, .85); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; cursor: pointer; }
.hdr-wx .wx-ico { font-size: 20px; } .hdr-wx b { font-size: 17px; } .hdr-wx .hl { color: var(--ink2); } .hdr-wx .rain { color: #5b84b1; font-weight: 700; }
.hdr-wx .stale { font-size: 10px; text-transform: uppercase; background: #eee2cf; padding: 1px 6px; border-radius: 6px; color: var(--muted); }
.view { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 4px 22px 18px 24px; -webkit-overflow-scrolling: touch; }

/* ---------- primitives ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); position: relative; }
.card-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; gap: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line2); background: #fffdf9; font-weight: 700; font-size: 14px; color: var(--ink); transition: transform .08s, background .15s; white-space: nowrap; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .5; }
.btn.sm { min-height: 32px; padding: 0 12px; font-size: 12.5px; }
.btn.big { min-height: 54px; font-size: 17px; padding: 0 26px; }
.btn.round { width: 40px; padding: 0; font-size: 20px; }
.btn.sm.round { width: 32px; font-size: 15px; }
.btn.primary, .btn.terra { background: var(--terra); border-color: var(--terra); color: #fff; }
.btn.primary:active, .btn.terra:active { background: var(--terra-d); }
.btn.danger { color: #b2402e; border-color: #e5b9ae; }
.btn.quick { min-height: 44px; padding: 0 18px; font-size: 15px; box-shadow: 0 6px 14px -8px rgba(160, 80, 40, .7); }
.btn.quick .ico { width: 18px; height: 18px; stroke-width: 2.4; }
.link { color: var(--terra); font-weight: 700; font-size: 13px; padding: 6px 4px; }
.link.sm { font-size: 12px; } .danger-t { color: #b2402e; margin-top: 8px; }
.x { width: 30px; height: 30px; border-radius: 50%; color: var(--muted); font-size: 13px; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.x:active { background: #eadfcd; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 999px; background: #f4ebdc; border: 1px solid var(--line); font-size: 13px; color: var(--ink2); }
.chip b { color: var(--ink); }
.pchip { padding: 7px 13px; border-radius: 999px; border: 1.5px solid var(--c); background: var(--t1); font-weight: 700; font-size: 13.5px; }
.pchip.on { background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .08); margin-right: 2px; }
.av { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; flex: none; border: 2px solid #fffdf9; box-shadow: 0 0 0 1px var(--line); }
.seg { display: inline-flex; background: #efe5d5; border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 13.5px; color: var(--ink2); min-height: 36px; }
.seg button.on { background: var(--card); color: var(--terra); box-shadow: var(--shadow); }
.seg button small { display: inline; font-size: 10.5px; color: var(--muted); margin-left: 3px; }
.empty { color: var(--muted); text-align: center; padding: 20px 10px; font-size: 14px; }
.empty .btn { margin-top: 10px; }
.page-h { margin: 4px 0 12px; } .page-h h2 { font-size: 30px; } .page-h p { margin: 2px 0 0; }
.page-h.row { gap: 12px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.col { display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.tag { font-size: 12px; background: #e8efe4; color: #4f6b48; padding: 4px 10px; border-radius: 999px; font-weight: 700; }
input, select, textarea { font: inherit; font-size: 15px; border: 1px solid var(--line2); background: #fffdf9; border-radius: 10px; padding: 9px 11px; color: var(--ink); min-height: 42px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--terra); box-shadow: 0 0 0 3px var(--terra-l); }
textarea { width: 100%; resize: vertical; }
.emoji-in { width: 56px; text-align: center; font-size: 20px; padding: 6px; }
input[type=color] { width: 52px; padding: 3px; }

/* ---------- home ---------- */
.alerts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 14px; }
.alert { display: flex; align-items: center; gap: 12px; padding: 10px 8px 10px 14px; border-radius: 16px; background: #fbf1e3; border-color: #ecd6b7; }
.alert:nth-child(2) { background: #f1f3ea; border-color: #d8dfc8; } .alert:nth-child(3) { background: #f6edf1; border-color: #e7d2da; } .alert:nth-child(4) { background: #edf1f6; border-color: #d1dbe7; }
.alert .a-ico { font-size: 24px; } .alert b { font-size: 14.5px; display: block; line-height: 1.2; } .alert small { color: var(--muted); }
.alert > div { flex: 1; min-width: 0; }
.home-grid { display: grid; grid-template-columns: 1.08fr 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.daycard { padding: 18px 20px; }
.dc-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.dc-dow { font-family: var(--serif); font-size: 46px; font-weight: 600; line-height: .95; }
.dc-date { font-family: var(--serif); font-size: 21px; color: var(--ink2); margin-top: 4px; }
.dc-wx { display: flex; align-items: center; gap: 8px; text-align: right; }
.dc-wx .big-ico { font-size: 44px; line-height: 1; }
.dc-wx b { font-family: var(--serif); font-size: 38px; line-height: 1; display: block; }
.dc-wx small { color: var(--muted); white-space: nowrap; }
.daycard .chips { margin-top: 14px; gap: 6px; }
.chip.cd { font-size: 12.5px; padding: 5px 10px; }
.verse { background: #f8f3ea; padding: 16px 18px; }
.verse p { font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.3; margin: 6px 0 6px; color: var(--ink); }
.verse .ref, .vow .ref { font-size: 13px; color: var(--muted); font-weight: 700; }
.today { display: flex; flex-direction: column; min-height: 0; }
.ev-list { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; max-height: 362px; margin: 0 -4px; padding: 0 4px; }
.ev { display: flex; gap: 10px; text-align: left; padding: 10px 12px; border-radius: 14px; background: var(--t1); border-left: 5px solid var(--c); width: 100%; }
.ev.past { opacity: .55; }
.ev-time { font-weight: 800; font-size: 13.5px; width: 56px; flex: none; color: var(--ink2); }
.ev-time small { font-weight: 600; color: var(--muted); }
.ev-body b { display: block; font-size: 15.5px; line-height: 1.2; }
.ev-body .who { display: flex; align-items: center; gap: 1px; margin-top: 3px; }
.ev-body .who small { margin-left: 4px; color: var(--ink2); }
.kidrow { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 0; border-bottom: 1px dashed var(--line); text-align: left; }
.kidrow:last-child { border-bottom: 0; }
.kr-mid { flex: 1; min-width: 0; }
.kr-name { display: flex; justify-content: space-between; align-items: baseline; }
.kr-name b { font-size: 15px; } .kr-name small { color: var(--muted); font-weight: 700; }
.bar { display: block; height: 9px; background: #efe5d5; border-radius: 9px; overflow: hidden; margin-top: 5px; }
.bar i { display: block; height: 100%; border-radius: 9px; filter: saturate(1.15) brightness(.95); transition: width .4s; }
.stars { font-weight: 800; font-size: 15px; min-width: 52px; text-align: right; }
.dinner { cursor: pointer; background: #f6efe3; }
.dn-meal { font-family: var(--serif); font-size: 25px; font-weight: 600; line-height: 1.1; margin: 4px 0 2px; }
.wx-strip { display: grid; grid-template-columns: repeat(7, 1fr); padding: 8px 6px; gap: 4px; }
.wday { display: flex; flex-direction: column; align-items: center; padding: 6px 2px; border-radius: 12px; gap: 1px; }
.wday.on { background: #f3e8d6; }
.wday span:first-child { font-weight: 800; font-size: 12.5px; color: var(--ink2); }
.wday .wi { font-size: 26px; line-height: 1.2; } .wday b { font-size: 16px; } .wday small { color: var(--muted); }
.wday .rain { color: #5b84b1; font-weight: 700; }

/* ---------- calendar ---------- */
.cal-bar { display: flex; justify-content: space-between; align-items: center; margin: 2px 0 10px; }
.cal-title { font-size: 28px; margin-left: 10px; }
.chips.people { margin-bottom: 12px; }
.chips .ics { margin-left: auto; }
.weekview { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: calc(100% - 112px); min-height: 520px; }
.wcol { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.wcol.today { border-color: var(--terra); box-shadow: 0 0 0 2px var(--terra-l); }
.wh { display: flex; flex-direction: column; align-items: center; padding: 8px 0 6px; border-bottom: 1px solid var(--line); }
.wh span { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.wh b { font-family: var(--serif); font-size: 26px; line-height: 1; }
.wcol.today .wh b { color: var(--terra); }
.wbody { flex: 1; overflow-y: auto; padding: 6px; display: flex; flex-direction: column; gap: 6px; }
.wev { text-align: left; padding: 6px 8px; border-radius: 10px; background: var(--t2); border-left: 4px solid var(--c); }
.wev small { font-weight: 800; color: var(--ink2); font-size: 11px; } .wev b { display: block; font-size: 13px; line-height: 1.2; overflow-wrap: anywhere; }
.wev .who { display: flex; margin-top: 3px; } .wev .dot { width: 8px; height: 8px; }
.wadd { margin-top: auto; border: 1.5px dashed var(--line2); border-radius: 10px; color: var(--muted); font-size: 20px; min-height: 36px; }
.monthview { padding: 8px; height: calc(100% - 112px); min-height: 520px; display: flex; flex-direction: column; }
.mhead { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; padding: 4px 0 6px; }
.mgrid { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.mcell { border-radius: 10px; background: #fffdf8; border: 1px solid #ece2d1; padding: 4px 5px; overflow: hidden; display: flex; flex-direction: column; gap: 2px; cursor: pointer; min-height: 0; }
.mcell.other { opacity: .45; } .mcell.today { border-color: var(--terra); background: #fdf3ea; }
.mnum { font-family: var(--serif); font-weight: 600; font-size: 17px; line-height: 1.1; }
.mcell.today .mnum { color: var(--terra); }
.mpill { font-size: 11px; padding: 1px 6px; border-radius: 6px; background: var(--t3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.more { font-size: 10.5px; color: var(--muted); font-weight: 700; }
.dayview { padding: 0; overflow: hidden; height: calc(100% - 112px); min-height: 520px; display: flex; flex-direction: column; }
.allday { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.pill { padding: 5px 12px; border-radius: 999px; background: var(--t2); font-weight: 700; font-size: 13px; }
.pill i { font-style: normal; color: var(--ink2); margin-right: 5px; font-weight: 800; }
.timeline { flex: 1; overflow-y: auto; position: relative; }
.tl-inner { position: relative; margin: 8px 0; }
.hr { position: absolute; left: 0; right: 0; border-top: 1px solid #ede3d2; height: 0; }
.hr span { position: absolute; left: 10px; top: -9px; font-size: 11.5px; color: var(--muted); font-weight: 700; background: var(--card); padding-right: 6px; }
.slot { position: absolute; left: 64px; right: 8px; }
.slot:active { background: #f6ecdd; }
.tblock { position: absolute; text-align: left; padding: 6px 10px; border-radius: 10px; background: var(--t2); border-left: 5px solid var(--c); overflow: hidden; z-index: 1; }
.tblock b { font-size: 14px; display: block; } .tblock small { color: var(--ink2); font-weight: 700; }
.tblock .who { display: flex; align-items: center; gap: 2px; } .tblock .who small { margin-left: 4px; font-weight: 600; }
.nowline { position: absolute; left: 56px; right: 0; border-top: 2px solid var(--terra); z-index: 2; }
.nowline::before { content: ""; position: absolute; left: -5px; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--terra); }
.view-calendar { display: flex; flex-direction: column; }
.view-calendar > .weekview, .view-calendar > .monthview, .view-calendar > .dayview { flex: 1; height: auto; }

/* ---------- playroom ---------- */
.kid-tabs { display: flex; gap: 10px; margin: 2px 0 10px; }
.ktab { display: flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); text-align: left; box-shadow: var(--shadow); }
.ktab b { font-size: 16px; display: block; line-height: 1.1; } .ktab small { color: var(--ink2); font-weight: 800; }
.ktab.on { background: var(--t3); border-color: var(--c); box-shadow: 0 0 0 2px var(--c); }
.kid-tabs.sm .av { width: 34px; height: 34px; font-size: 19px; } .kid-tabs.sm .ktab { padding: 5px 16px 5px 6px; }
.subtabs { margin-bottom: 12px; }
.play-grid { display: grid; grid-template-columns: 1fr 268px; gap: 14px; align-items: start; }
.chore-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ccol { padding: 12px; } .ccol h3 { font-size: 20px; }
.ccol.locked { opacity: .55; }
.clist { display: flex; flex-direction: column; gap: 7px; }
.chore { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 12px; background: #fffdf8; border: 1px solid #ece2d1; text-align: left; min-height: 48px; transition: background .2s; }
.chore .box, .citem .box, .litem .box { width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--line2); display: inline-flex; align-items: center; justify-content: center; font-weight: 900; color: #fff; flex: none; font-size: 14px; }
.chore .ci { font-size: 19px; } .chore .ct { flex: 1; font-weight: 700; font-size: 14px; line-height: 1.15; }
.chore .plus { font-size: 11px; font-weight: 800; color: var(--gold); white-space: nowrap; }
.chore.done { background: #eef3e9; border-color: #cfdcc6; } .chore.done .box { background: var(--sage); border-color: var(--sage); } .chore.done .ct { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, .25); }
.chore.done .plus { visibility: hidden; }
.ctiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { aspect-ratio: 1 / .95; border-radius: 16px; background: #fffdf8; border: 2px solid #ece2d1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; position: relative; padding: 6px; }
.tile .te { font-size: 44px; line-height: 1; } .tile .tt { font-size: 12.5px; font-weight: 800; text-align: center; line-height: 1.1; color: var(--ink2); }
.tile.done { background: #eef3e9; border-color: var(--sage); } .tile.done .te { opacity: .55; }
.tile .tcheck { position: absolute; top: 4px; right: 6px; font-size: 20px; }
.helper .tile .te { font-size: 50px; }
.helper-note { margin: 10px 4px 0; }
.pside { display: flex; flex-direction: column; gap: 10px; }
.card.w { padding: 11px 14px; } .card.w .card-h { margin-bottom: 4px; }
.joke b { display: block; font-size: 14.5px; margin-top: 3px; } .joke .punch { margin-top: 5px; color: var(--muted); font-size: 13px; font-weight: 700; }
.joke .punch.show { color: var(--terra); font-size: 15px; }
.joke, .animal { cursor: pointer; }
.an-e { font-size: 34px; line-height: 1; } .animal b, .moon b { font-size: 15px; } .animal small, .moon small { color: var(--ink2); }
.animal .row, .moon .row { margin-top: 4px; align-items: center; }
.jar { width: 46px; height: 54px; border: 2px solid var(--line2); border-radius: 10px 10px 16px 16px; position: relative; background: linear-gradient(to top, #f7d98f 60%, transparent 60%); display: flex; align-items: flex-end; justify-content: center; flex: none; }
.jar::before { content: ""; position: absolute; top: -7px; left: 8px; right: 8px; height: 6px; background: var(--line2); border-radius: 3px; }
.jar span { font-weight: 900; font-size: 17px; margin-bottom: 6px; }
.kjar small { color: var(--ink2); }
.note { font-family: var(--serif); font-style: italic; font-size: 15.5px; padding: 6px 10px; background: #fdf6da; border-radius: 6px; margin-top: 6px; transform: rotate(-.6deg); box-shadow: 0 2px 4px -2px rgba(0, 0, 0, .15); }
.note + .note { transform: rotate(.5deg); background: #f3eefb; }
.store-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.reward { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 16px 10px; }
.reward .r-ico { font-size: 44px; } .reward b { font-size: 14.5px; line-height: 1.15; min-height: 34px; }
.reward .cost { font-weight: 900; color: var(--gold); font-size: 16px; }
.reward.dim .r-ico { filter: grayscale(.6); opacity: .7; }
.hrow { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px dashed var(--line); }
.hrow:last-of-type { border-bottom: 0; }
.hrow .hi { font-size: 22px; width: 30px; text-align: center; } .hrow b { font-size: 14.5px; } .hrow small { color: var(--muted); }
.hrow.used { opacity: .55; }
.hrow.over .due { color: #b2402e; } .hrow.soon .due { color: var(--terra); }
.due { font-weight: 800; font-size: 12.5px; white-space: nowrap; color: var(--sage); }
.sticker-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; }
.stk { aspect-ratio: 1; border-radius: 50%; background: #fffdf8; border: 2px solid #ece2d1; display: flex; align-items: center; justify-content: center; font-size: 38px; box-shadow: 0 3px 6px -4px rgba(0, 0, 0, .3); }
.stk.empty { border-style: dashed; background: transparent; box-shadow: none; }
.week-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; height: 280px; padding-top: 10px; }
.wb { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px; border-radius: 12px; }
.wb.today { background: #f6ecdd; }
.wb .bars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 6px; }
.wb .bars i { width: 22px; border-radius: 8px 8px 3px 3px; min-height: 3px; }
.b2 { background: #f2cf7a; }
.wb small { color: var(--muted); font-weight: 700; }
.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); margin-top: 8px; } .legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 5px; vertical-align: -1px; }

/* ---------- learn ---------- */
.learn-grid { display: grid; grid-template-columns: 1fr 300px; gap: 14px; align-items: stretch; }
.lmain { padding: 18px 22px; min-height: 540px; display: flex; flex-direction: column; }
.lm-head { display: flex; align-items: center; gap: 12px; }
.lm-head .eyebrow { font-size: 13px; color: var(--terra); }
.eyebrow.boss { color: #9b6ad0 !important; }
.streak { display: flex; gap: 5px; } .streak i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line2); } .streak i.on { background: var(--gold); border-color: var(--gold); }
.lm-head .say { margin-left: auto; }
.kp-wrap { flex: 1; display: grid; grid-template-columns: 1fr 330px; gap: 24px; align-items: center; }
.q-left { text-align: center; }
.q-text { font-family: var(--serif); font-weight: 600; font-size: 84px; line-height: 1.05; white-space: nowrap; }
.ans { display: inline-block; min-width: 1.3em; padding: 0 .15em; border-bottom: 4px solid var(--line2); color: var(--muted); }
.ans.typed { color: var(--ink); border-color: var(--terra); }
.ans.good { color: #4f8a45; border-color: #4f8a45; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.keypad button { height: 78px; border-radius: 18px; background: #fffdf8; border: 1px solid var(--line2); font-family: var(--serif); font-size: 36px; font-weight: 600; box-shadow: 0 3px 0 #e6d9c3; }
.keypad button:active { transform: translateY(2px); box-shadow: 0 1px 0 #e6d9c3; }
.keypad .del { font-family: var(--sans); font-size: 17px; font-weight: 800; color: var(--ink2); }
.keypad .ok { background: var(--terra); border-color: var(--terra); color: #fff; font-family: var(--sans); font-size: 20px; font-weight: 900; box-shadow: 0 3px 0 var(--terra-d); }
.keypad.small button { height: 58px; font-size: 26px; }
.fb { min-height: 34px; font-weight: 900; font-size: 22px; margin-top: 14px; text-align: center; }
.fb.good { color: #4f8a45; } .fb.bad { color: var(--terra); }
.q-prompt { font-size: 44px; text-align: center; margin: 12px 0 6px; }
.choices { display: grid; gap: 14px; margin: auto 0 0; grid-template-columns: repeat(var(--n, 3), 1fr); }
.choices.n2 { --n: 2; } .choices.n3 { --n: 3; } .choices.n4 { --n: 4; } .choices.n5 { --n: 5; }
.choice { min-height: 120px; border-radius: 22px; background: #fffdf8; border: 2px solid var(--line2); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 0 #e6d9c3; transition: transform .1s; padding: 10px; }
.choice:active { transform: translateY(3px); box-shadow: 0 1px 0 #e6d9c3; }
.choice.yes { border-color: #4f8a45; background: #e9f3e4; }
.choice.nope { opacity: .3; animation: shake .35s; }
.choices.big .choice { min-height: 190px; }
.word { font-family: var(--sans); font-size: 46px; font-weight: 800; letter-spacing: .5px; }
.letter { font-family: var(--sans); font-size: 70px; font-weight: 800; }
.num { font-family: var(--serif); font-size: 80px; font-weight: 700; }
.emo { font-size: 104px; line-height: 1; }
.blob { width: 130px; height: 130px; border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%; box-shadow: inset 0 -8px 0 rgba(0, 0, 0, .1), 0 0 0 2px rgba(0, 0, 0, .06); }
.shape { width: 110px; height: 110px; }
.big-emoji { font-size: 110px; text-align: center; line-height: 1.1; margin: 4px 0 10px; }
.count-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 8px auto 16px; max-width: 640px; }
.count-grid .cnt { font-size: 46px; width: 66px; height: 66px; border-radius: 16px; position: relative; }
.count-grid.dense .cnt { font-size: 36px; width: 54px; height: 54px; }
.count-grid.big .cnt { font-size: 84px; width: 120px; height: 120px; }
.cnt.counted { background: #f7ebd3; }
.cnt.counted::after { content: attr(data-n); position: absolute; top: -4px; right: -4px; background: var(--terra); color: #fff; font-size: 13px; font-weight: 900; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--sans); }
.lside { display: flex; flex-direction: column; gap: 12px; }
.lstars, .boss-btn { display: flex; align-items: center; gap: 12px; text-align: left; }
.lstars .big, .boss-btn .big { font-size: 34px; } .lstars b, .boss-btn b { font-size: 15.5px; display: block; } .lstars small, .boss-btn small { color: var(--muted); }
.vow { background: #f8f3ea; flex: 1; display: flex; flex-direction: column; }
.vow p { font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.28; margin: 4px 0 6px; }
.vow .btn { margin-top: auto; flex-direction: column; gap: 0; min-height: 58px; border-radius: 16px; background: #eef3e9; border-color: #cfdcc6; white-space: normal; }
.vow .btn small { font-weight: 700; color: var(--muted); }
.mem.done { margin-top: auto; text-align: center; font-weight: 900; color: #4f8a45; padding: 12px; background: #eef3e9; border-radius: 14px; }
.boss-btn { background: linear-gradient(135deg, #f3ecfb, #fbf3e6); border-color: #ddd0ee; }
.boss-btn.live { background: linear-gradient(135deg, #e7d9fb, #ffe9c7); border-color: #b99ae0; box-shadow: 0 0 0 3px #efe5fb; }
.toy-grid { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 12px; }
.toy { border-radius: 28px; font-size: 82px; min-height: 130px; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .06), 0 0 0 1px rgba(0, 0, 0, .05); }
.toy-grid.colors .toy { border-radius: 50%; aspect-ratio: 1; min-height: 0; width: 72%; justify-self: center; }
.toycard { transition: background .4s; }
.boing { animation: boing .5s; }

/* ---------- meals ---------- */
.meals-grid { display: grid; grid-template-columns: 1fr 340px; gap: 14px; align-items: start; }
.dinners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.meal { padding: 11px 12px; display: flex; flex-direction: column; gap: 3px; min-height: 248px; }
.meal.today { border-color: var(--terra); box-shadow: 0 0 0 2px var(--terra-l); background: #fdf6ee; }
.meal.today .eyebrow { color: var(--terra); }
.m-h { display: flex; justify-content: space-between; align-items: center; }
.m-name { font-family: var(--serif); font-weight: 600; font-size: 21px; line-height: 1.1; margin-top: 2px; }
.m-sides { color: var(--ink2); font-size: 12.5px; font-weight: 700; }
.m-ing { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 6px; }
.m-ing span { font-size: 11px; background: #f2e9da; padding: 2px 7px; border-radius: 999px; color: var(--ink2); }
.m-add { margin-top: auto; width: 100%; font-size: 12px; }
.meal.idea { background: #f4efe4; border-style: dashed; }
.mside { display: flex; flex-direction: column; gap: 12px; }
.timer .t-row { display: flex; align-items: center; justify-content: space-between; }
.t-disp { font-family: var(--serif); font-size: 56px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.timer.run .t-disp { color: var(--terra); }
.t-presets { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin: 10px 0; }
.t-presets button { min-height: 34px; border-radius: 10px; background: #f2e9da; font-weight: 800; font-size: 12px; }
.t-presets button:disabled { opacity: .4; }
.lists { display: flex; flex-direction: column; }
.ltabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.ltabs button { padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: #fffdf8; font-weight: 700; font-size: 12.5px; }
.ltabs button small { display: inline; color: var(--muted); }
.ltabs button.on { background: var(--terra); color: #fff; border-color: var(--terra); } .ltabs button.on small { color: #fbe0d3; }
.add-row { margin: 4px 0 6px; } .add-row input { min-height: 40px; }
.litems { max-height: 300px; overflow-y: auto; }
.cat { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); font-weight: 900; margin: 8px 0 2px; display: flex; justify-content: space-between; align-items: center; }
.litem { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 2px; text-align: left; font-weight: 600; font-size: 14.5px; min-height: 40px; }
.litem.done { color: var(--muted); text-decoration: line-through; } .litem.done .box, .citem.done .box { background: var(--sage); border-color: var(--sage); }
.litem .x { width: 26px; height: 26px; }

/* ---------- house / sports / date ---------- */
.sp-day { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.sp-date { width: 46px; text-align: center; } .sp-date b { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; } .sp-date span { font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1; }
.sp-day .grow { display: flex; flex-direction: column; gap: 6px; }
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.citem { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #fffdf8; border: 1px solid #ece2d1; font-weight: 700; text-align: left; }
.citem.done { background: #eef3e9; color: var(--muted); }
.date-next { display: flex; flex-direction: column; gap: 4px; background: #f6edf1; border-color: #e7d2da; }
.dn-big { font-family: var(--serif); font-size: 48px; font-weight: 600; line-height: 1; margin: 4px 0; }
.date-next b { font-size: 17px; }
.jar-card { text-align: center; }
.jar-pick { font-family: var(--serif); font-style: italic; font-size: 26px; min-height: 90px; display: flex; align-items: center; justify-content: center; padding: 10px; }
.idea-list { max-height: 470px; overflow-y: auto; }

/* ---------- modal ---------- */
.modal-wrap { position: fixed; inset: 0; background: rgba(58, 48, 36, .35); display: flex; align-items: center; justify-content: center; z-index: 50; animation: fade .15s; backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.modal { background: var(--card); border-radius: 24px; padding: 24px 26px; width: 520px; max-width: calc(100vw - 40px); max-height: calc(100vh - 40px); overflow-y: auto; position: relative; box-shadow: 0 30px 60px -20px rgba(60, 40, 20, .45); border: 1px solid var(--line); animation: pop .18s; }
.modal.small { width: 400px; } .modal.wide { width: 640px; } .modal.xl { width: 900px; height: min(700px, calc(100vh - 40px)); }
.modal h2 { margin-bottom: 8px; padding-right: 40px; }
.modal-x { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; background: #f2e9da; font-size: 15px; }
.modal .seg { margin: 4px 0 14px; flex-wrap: wrap; }
.modal.pin { text-align: center; width: 340px; }
.pin-dots { display: flex; gap: 14px; justify-content: center; margin: 12px 0 18px; }
.pin-dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line2); } .pin-dots i.on { background: var(--terra); border-color: var(--terra); }
.huge { font-size: 84px; line-height: 1.1; }
.form { display: flex; flex-direction: column; gap: 12px; }
.form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 800; color: var(--ink2); }
.form label small { display: inline; font-weight: 600; }
.form label.check { flex-direction: row; align-items: center; gap: 8px; padding-top: 18px; }
.form label.check input { width: 22px; height: 22px; min-height: 0; }
.form .row { align-items: flex-end; flex-wrap: wrap; }
.pick-people { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -6px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .span2 { grid-column: span 2; }
.set-body { padding-bottom: 10px; }
.tbl { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.tbl th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); padding: 4px 6px; }
.tbl td { padding: 4px 6px; border-top: 1px solid #efe5d5; }
.tbl input:not(.emoji-in):not([type=color]):not([type=number]) { width: 100%; }
.star-adj { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 10px; }
.sa { display: flex; align-items: center; gap: 12px; } .sa > b { flex: 1; font-size: 17px; } .sa-n { font-weight: 900; font-size: 18px; min-width: 60px; text-align: center; }
.lrow { display: flex; align-items: center; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.lrow > b { width: 120px; }
.lrow label { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.lrow label small { color: var(--muted); }

/* ---------- sleep ---------- */
.sleep { position: fixed; inset: 0; z-index: 40; background: radial-gradient(ellipse at 30% 20%, #faf5ec, #efe5d3); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .35s; cursor: pointer; }
.sleep.show { opacity: 1; }
.sleep.night { background: radial-gradient(ellipse at 30% 20%, #2c2a33, #17161c); color: #d9d0c2; }
.sleep.night .floral { filter: invert(.85); opacity: .25; }
.sleep .floral.s { position: absolute; width: 380px; top: -10px; right: -10px; opacity: .55; }
.s-wrap { text-align: center; max-width: 820px; padding: 20px; }
.s-clock { font-family: var(--serif); font-size: 190px; font-weight: 500; line-height: .9; letter-spacing: -2px; }
.s-clock small { font-family: var(--sans); font-size: 26px; font-weight: 800; letter-spacing: 1px; color: var(--muted); display: inline; margin-left: 8px; }
.s-date { font-family: var(--serif); font-size: 38px; margin-top: 4px; }
.s-wx { font-size: 26px; margin-top: 10px; font-weight: 700; } .s-wx span { font-size: 17px; font-weight: 600; color: var(--muted); }
.s-timer { display: inline-block; margin-top: 14px; font-size: 22px; font-weight: 900; color: var(--terra); background: var(--terra-l); padding: 6px 16px; border-radius: 999px; }
.s-next { margin: 26px auto 0; display: inline-flex; flex-direction: column; text-align: left; padding: 14px 22px; border-radius: 18px; background: var(--t2); border-left: 6px solid var(--c); min-width: 360px; color: var(--ink); }
.s-next b { font-size: 22px; font-family: var(--serif); } .s-next span { color: var(--ink2); font-weight: 700; }
.s-verse { font-family: var(--serif); font-style: italic; font-size: 22px; margin: 26px auto 0; max-width: 680px; line-height: 1.3; } .s-verse span { font-style: normal; font-size: 15px; color: var(--muted); }
.s-hint { margin-top: 28px; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); font-weight: 800; animation: breathe 3s infinite; }

/* ---------- fx ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px; font-weight: 700; opacity: 0; transition: all .3s; z-index: 60; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.burst { position: fixed; z-index: 70; font-size: 24px; pointer-events: none; animation: burst .9s ease-out forwards; transform: translate(-50%, -50%); }
.shake { animation: shake .35s; }
@keyframes burst { to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.4); opacity: 0; } }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
@keyframes boing { 30% { transform: scale(1.15) rotate(-4deg); } 60% { transform: scale(.95) rotate(3deg); } }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes breathe { 50% { opacity: .4; } }

/* ---------- smaller iPads (1024×768) ---------- */
@media (max-width: 1100px) {
  #app { grid-template-columns: 76px 1fr; } .nav { width: 62px; }
  .top { height: 68px; padding: 0 16px 0 18px; } .brand h1 { font-size: 30px; } .hdr-time { font-size: 28px; } .hdr-wx .hl { display: none; }
  .view { padding: 2px 16px 14px 18px; }
  .home-grid { grid-template-columns: 1fr 1fr 1fr; gap: 10px; } .dc-dow { font-size: 36px; } .dc-wx b { font-size: 30px; } .dc-wx .big-ico { font-size: 34px; }
  .verse p { font-size: 17px; } .ev-list { max-height: 330px; }
  .play-grid { grid-template-columns: 1fr 230px; } .tile .te { font-size: 36px; } .chore .plus { display: none; }
  .store-grid { grid-template-columns: repeat(3, 1fr); }
  .learn-grid { grid-template-columns: 1fr 260px; } .kp-wrap { grid-template-columns: 1fr 280px; } .q-text { font-size: 62px; } .keypad button { height: 68px; }
  .meals-grid { grid-template-columns: 1fr 300px; } .dinners { grid-template-columns: repeat(3, 1fr); } .meal.idea { display: none; }
  .s-clock { font-size: 150px; }
  .floral { width: 200px; }
}
[hidden] { display: none !important; }
.view-home { display: flex; flex-direction: column; }
.view-home .home-grid { flex: 1; min-height: 0; }
.view-home .today .ev-list { max-height: none; flex: 1; }
.view-home .col > .card:last-child { flex: 1; }
/* ---- polish pass 1 ---- */
html, body, button, input { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.view-home .col > .card:last-child { flex: none; }
.view-home .col > .daycard, .view-home .col > .tasks { flex: 1; }
.daycard { display: flex; flex-direction: column; }
.daycard .chips { margin-top: auto; padding-top: 14px; }
.dc-extra { display: flex; gap: 14px; margin-top: 12px; color: var(--ink2); font-size: 13px; font-weight: 700; flex-wrap: wrap; }
.tasks { display: flex; flex-direction: column; justify-content: space-between; }
.play-grid { grid-template-columns: minmax(0, 1fr) 268px; }
.chore-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.learn-grid { grid-template-columns: minmax(0, 1fr) 300px; }
.meals-grid { grid-template-columns: minmax(0, 1fr) 340px; }
.dinners { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.vow .btn { margin-top: 0; flex-direction: row; min-height: 32px; border-radius: 999px; background: #fffdf9; border-color: var(--line2); }
.vow .btn.mem, .vow .btn.listen { margin-top: auto; flex-direction: column; gap: 0; min-height: 58px; border-radius: 16px; background: #eef3e9; border-color: #cfdcc6; white-space: normal; }
.choices { margin: auto 0; }
.lmain .q-prompt + .choices { margin-top: auto; }
.tblock.short { display: flex; align-items: center; gap: 8px; padding: 2px 10px; }
.tblock.short b { font-size: 13px; } .tblock.short .who { display: none; }
.lists .litems { max-height: 262px; }
.s-clock { line-height: 1; margin-bottom: 6px; }
.sleep.night .s-next { background: rgba(255, 255, 255, .07); color: #e8e0d4; }
.sleep.night .s-next span { color: #b8ae9f; }
.sleep.night .s-clock small, .sleep.night .s-wx span { color: #a69c8f; }
@media (max-width: 1100px) {
  .play-grid { grid-template-columns: minmax(0, 1fr) 230px; } .learn-grid { grid-template-columns: minmax(0, 1fr) 260px; }
  .meals-grid { grid-template-columns: minmax(0, 1fr) 300px; } .dinners { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.nextup { margin-top: 14px; text-align: left; display: flex; flex-direction: column; padding: 10px 14px; border-radius: 14px; background: var(--t1); border-left: 5px solid var(--c); }
.nextup b { font-family: var(--serif); font-size: 21px; line-height: 1.15; } .nextup span:last-child { font-size: 13px; color: var(--ink2); font-weight: 700; }
.idea-list { max-height: 400px; }
.tbl input[type=number] { width: 84px !important; }
/* ---- polish pass 2: lock shell to viewport ---- */
#app { grid-template-rows: 100%; overflow: hidden; }
.main { min-height: 0; overflow: hidden; }
.side { overflow: hidden; }
@media (max-height: 800px) {
  .nav { height: 54px; font-size: 10.5px; } .nav .ico { width: 21px; height: 21px; }
  .top { height: 64px; }
  .alerts { margin-bottom: 10px; gap: 10px; } .alert { padding: 7px 6px 7px 12px; } .alert .a-ico { font-size: 21px; } .alert b { font-size: 13.5px; }
  .home-grid { gap: 10px; margin-bottom: 10px; }
  .daycard { padding: 14px 16px; } .dc-extra { margin-top: 8px; gap: 10px; font-size: 12px; }
  .nextup { margin-top: 10px; padding: 8px 12px; } .nextup b { font-size: 18px; }
  .daycard .chips { padding-top: 10px; } .chip.cd { font-size: 11.5px; padding: 4px 8px; }
  .verse { padding: 12px 14px; } .verse p { font-size: 17px; margin: 4px 0; }
  .kidrow { padding: 4px 0; } .av { width: 34px; height: 34px; font-size: 19px; }
  .dn-meal { font-size: 21px; } .dinner { padding: 10px 14px; }
  .wx-strip { padding: 4px; } .wday { padding: 3px 2px; } .wday .wi { font-size: 22px; } .wday b { font-size: 14px; }
  .card-h { margin-bottom: 4px; } .card-h h2 { font-size: 23px; }
  .ev { padding: 8px 10px; } .lmain { min-height: 0; }
  .weekview, .monthview, .dayview { min-height: 440px; }
}
@media (max-width: 1100px) { .dc-extra span:last-child { display: none; } }
/* ---- birthdays ---- */
.chip.cd.bd { background: #fbe9ee; border-color: #efc9d3; }
.bday-banner { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; padding: 12px 20px; border-radius: var(--r); cursor: pointer;
  background: linear-gradient(110deg, #fde4ea, #fdf0d8 45%, #e5f0e1 75%, #e6e3f6); border: 1px solid #efcbd5; box-shadow: var(--shadow); }
.bday-banner h2 { font-size: 30px; line-height: 1.05; } .bday-banner > div { flex: 1; }
.bb-balloons, .bb-cake { font-size: 38px; } .bb-cake { animation: boing 1.6s infinite; }
.s-bday { font-family: var(--serif); font-size: 32px; font-weight: 600; color: var(--terra); margin-bottom: 6px; }
.age-calc { display: inline-block; min-width: 40px; padding: 8px 10px; font-weight: 800; color: var(--ink2); }
@media (max-height: 800px) { .bday-banner { padding: 8px 16px; margin-bottom: 8px; } .bday-banner h2 { font-size: 24px; } .bb-balloons, .bb-cake { font-size: 30px; } }
.daycard .chips { gap: 5px; padding-top: 10px; } .chip.cd { font-size: 12px; padding: 4px 9px; }
.nextup { margin-top: 10px; padding: 8px 12px; } .nextup b { font-size: 19px; }
.dc-extra { margin-top: 8px; }
/* ---- shared iCloud events ---- */
.remote { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0) 0 7px, rgba(255,255,255,.35) 7px 9px); }
.ev.remote .ev-body b::after, .wev.remote b::after, .tblock.remote b::after, .pill.remote::after { content: " ☁️"; font-size: .8em; }
.mpill.remote::before { content: "☁️ "; font-size: .85em; }
.cal-info { background: #f4efe4; border-radius: 12px; padding: 10px 12px; }

/* ---------- seasonal themes ---------- */
.season-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.season-bg svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#app { z-index: 1; }
body.seasonal .floral { display: none; }
body.seasonal .side { background: var(--bg2); }
body.seasonal .card { box-shadow: 0 1px 0 rgba(80, 60, 30, .04), 0 8px 22px -12px rgba(80, 50, 20, .28); }
body.seasonal .hdr-wx { background: rgba(255, 252, 246, .88); }
.season-bg.drift svg { animation: sdrift 140s ease-in-out infinite alternate; will-change: transform; }
@keyframes sdrift { from { transform: scale(1.06) translate3d(-1.2%, -.8%, 0); } to { transform: scale(1.06) translate3d(1.2%, .9%, 0); } }
html[data-variant="evening"] .card, html[data-variant="evening"] .wcol { background: #fbf5ea; }
/* sleep screen layers */
.sleep .s-bg { position: absolute; z-index: 0; }
body.seasonal .sleep .floral { display: none; }
.sleep .s-content { position: relative; z-index: 2; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.sleep .s-wrap { position: relative; }
body.seasonal .sleep:not(.night) .s-wrap { background: rgba(255, 252, 246, .55); border-radius: 32px; padding: 26px 44px; }
.s-balloons { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.s-balloon { position: absolute; bottom: -160px; animation: sfloat 30s linear infinite; will-change: transform; opacity: .9; }
.sleep.night .s-balloon { opacity: .55; }
@keyframes sfloat { from { transform: translate3d(0, 0, 0) rotate(-4deg); } 50% { transform: translate3d(18px, calc(-50vh - 80px), 0) rotate(4deg); } to { transform: translate3d(-10px, calc(-100vh - 200px), 0) rotate(-3deg); } }

/* ---------- birthday fx ---------- */
.fx-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 70; pointer-events: none; }
.bd-name { position: relative; display: inline-block; color: var(--bc);
  background: linear-gradient(100deg, var(--bc) 0%, var(--bc) 42%, var(--bl) 50%, var(--bc) 58%, var(--bc) 100%); background-size: 260% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: shimmer 6s ease-in-out infinite; }
.bd-name .tw { position: absolute; font-style: normal; color: #e0aa36; -webkit-text-fill-color: #e0aa36; font-size: .45em; animation: twinkle 2.4s ease-in-out infinite; }
.bd-name .t1 { top: -.25em; right: -.55em; } .bd-name .t2 { bottom: .05em; left: -.6em; animation-delay: 1.2s; }
@keyframes shimmer { 0%, 50% { background-position: 100% 0; } 80%, 100% { background-position: 0 0; } }
@keyframes twinkle { 0%, 100% { opacity: .15; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.15); } }
.sleep.night .bd-name { --bc: #f3d9a8 !important; }
.bday-banner .btn.sm { flex: none; }
.bday-prev { flex-wrap: wrap; background: #fbf1e3; border-radius: 12px; padding: 10px 12px; }
.bday-prev select { min-height: 34px; padding: 4px 8px; }
@media (prefers-reduced-motion: reduce) {
  .season-bg.drift svg, .bd-name, .bd-name .tw, .bb-cake, .s-balloon { animation: none !important; }
  .s-balloon { bottom: 4%; }
}
/* ---------- illustrated avatars ---------- */
.av { overflow: hidden; position: relative; }
.av.svg svg { width: 100%; height: 100%; display: block; }
.av.mini { width: 24px; height: 24px; font-size: 14px; border-width: 1.5px; vertical-align: middle; margin: -4px 2px -4px -6px; box-shadow: none; }
.pchip { display: inline-flex; align-items: center; gap: 4px; }
.lrow b { display: inline-flex; align-items: center; gap: 6px; }
.av.lg { width: 96px; height: 96px; border-width: 3px; }
.tbl .av { width: 38px; height: 38px; }
.av-sel { min-height: 34px; padding: 4px 6px; font-size: 13px; max-width: 150px; margin-right: 4px; }
.av-gallery { display: flex; justify-content: space-around; gap: 10px; padding: 6px 0 14px; }
.av-gallery > div { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 14px; }
.av-td { white-space: nowrap; } .av-td .emoji-in { vertical-align: middle; }

/* ---------- picture routines ---------- */
.play-grid.wide { grid-template-columns: minmax(0, 1fr); }
.routine { margin-bottom: 12px; }
.rt-head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.rt-prog { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.rt-bar { flex: 1; height: 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); position: relative; }
.rt-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, var(--kc), var(--kd)); transition: width .4s; }
.rt-runner { position: absolute; top: 50%; transform: translate(-50%, -50%); font-size: 22px; transition: left .4s; }
.rt-prog b { font-size: 15px; white-space: nowrap; }
.rt-star { font-size: 26px; filter: grayscale(1); opacity: .35; transition: all .3s; }
.rt-star.on { filter: none; opacity: 1; animation: boing 1.2s 2; }
.rt-helper { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--ink2); }
.rt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.rt-grid.n6, .rt-grid.n5, .rt-grid.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rt-grid.n6 .rt-card svg, .rt-grid.n5 .rt-card svg { width: 112px; height: 112px; }
.rt-card { position: relative; background: var(--card); border: 2px solid var(--line); border-radius: 22px; padding: 12px 8px 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; box-shadow: var(--shadow); transition: transform .12s, border-color .2s, box-shadow .2s; }
.rt-card svg { width: 104px; height: 104px; display: block; }
.rt-card:active { transform: scale(.97); }
.rt-label { font-family: var(--serif); font-size: 21px; font-weight: 700; line-height: 1.05; text-align: center; }
.rt-num { position: absolute; top: 8px; left: 10px; width: 26px; height: 26px; border-radius: 50%; background: var(--kc); color: var(--ink); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.rt-card.sel { border-color: var(--kd); box-shadow: 0 0 0 4px var(--kc), var(--shadow); transform: translateY(-2px); }
.rt-tap { position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%); background: var(--kd); color: #fff; font-size: 11.5px; font-weight: 800; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.rt-card.done { background: #f1f6ec; border-color: #b9d3a8; }
.rt-card.done svg { opacity: .55; }
.rt-card.done .rt-label { color: var(--muted); text-decoration: line-through; text-decoration-color: #9fbf8c; }
.rt-check { position: absolute; top: 34px; left: 50%; transform: translateX(-50%); width: 56px; height: 56px; border-radius: 50%; background: #6aa857; color: #fff; font-size: 34px; font-weight: 900; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px -4px rgba(40, 80, 30, .6); }
.rt-undo { position: absolute; top: 6px; right: 8px; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 1px solid var(--line); font-size: 14px; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.rt-done-msg { margin-top: 12px; text-align: center; font-family: var(--serif); font-size: 24px; font-weight: 700; color: var(--terra); }
@media (max-height: 800px) { .rt-card svg, .rt-grid.n6 .rt-card svg, .rt-grid.n5 .rt-card svg { width: 84px; height: 84px; } .rt-label { font-size: 18px; } .rt-grid { gap: 10px; } .rt-card { padding: 9px 6px; } .rt-check { top: 24px; width: 46px; height: 46px; font-size: 28px; } }
/* editor */
.rt-kids label { cursor: pointer; } .rt-kids input { margin: 0 2px 0 0; width: 16px; height: 16px; min-height: 0; }
.rt-edit { display: flex; flex-direction: column; gap: 6px; }
.rt-erow { display: flex; align-items: center; gap: 8px; background: var(--bg); border-radius: 12px; padding: 4px 8px; position: relative; }
.rt-erow .rt-num { position: static; background: var(--line); }
.rt-erow svg { width: 44px; height: 44px; flex: none; }
.rt-erow input { flex: 1; min-height: 36px; }
.rt-lib { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.rt-lib button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 12px; border: 1px solid var(--line); background: #fffdf9; font-size: 11px; font-weight: 700; }
.rt-lib svg { width: 46px; height: 46px; }

/* ---------- morning briefing ---------- */
.brief { margin-bottom: 12px; }
.brief.mini { display: flex; align-items: center; gap: 12px; padding: 9px 14px; }
.brief.mini .br-ico { font-size: 24px; }
.br-line { display: flex; flex-direction: column; min-width: 0; } .br-line b { font-size: 14px; } .br-line span { font-size: 12.5px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.brief.open { padding: 12px 16px 14px; background: linear-gradient(120deg, #fffaf0, var(--card) 55%); border-color: var(--line2); }
.br-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.br-head h2 { font-size: 28px; line-height: 1.05; } .br-sun { font-size: 34px; }
.br-grid { display: grid; grid-template-columns: 1.05fr 1.2fr 1.05fr 1.15fr; gap: 14px; }
.br-col { min-width: 0; border-left: 1px solid var(--line); padding-left: 14px; display: flex; flex-direction: column; gap: 6px; }
.br-col:first-child { border-left: 0; padding-left: 0; }
.br-t { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.br-wx { display: flex; align-items: center; gap: 10px; } .br-wx .big-ico { font-size: 38px; } .br-wx b { font-family: var(--serif); font-size: 30px; } .br-wx small { color: var(--ink2); font-weight: 700; }
.br-wear { display: flex; flex-wrap: wrap; gap: 5px; } .br-wear .chip { font-size: 12.5px; padding: 4px 9px; background: #fff7e6; }
.br-evs { display: flex; flex-direction: column; gap: 4px; }
.br-ev { display: flex; gap: 8px; align-items: baseline; text-align: left; padding: 4px 8px; border-radius: 9px; background: var(--t1); border-left: 4px solid var(--c); }
.br-ev span { font-size: 12px; font-weight: 800; color: var(--ink2); width: 52px; flex: none; } .br-ev b { font-size: 13.5px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-line2 { font-size: 14px; } .br-line2.bins { background: #fdf0d8; border-radius: 9px; padding: 4px 8px; }
.br-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.br-kid { display: grid; grid-template-columns: auto 64px 1fr auto; align-items: center; gap: 6px; font-size: 13px; }
.br-kid .av.mini { margin: 0; } .br-kid .bar { height: 7px; } .br-kid small { font-weight: 700; color: var(--ink2); white-space: nowrap; }
.br-verse { margin-top: 4px; font-family: var(--serif); font-style: italic; font-size: 15px; line-height: 1.25; } .br-verse span { font-style: normal; font-family: var(--sans); font-size: 11.5px; color: var(--muted); }
@media (max-width: 1100px) { .br-grid { grid-template-columns: 1fr 1.2fr 1fr 1.1fr; gap: 10px; } .br-col { padding-left: 10px; } .br-head h2 { font-size: 24px; } }

/* ---------- meal planner + store lists ---------- */
.meal-tabs button { padding: 8px 14px; }
.page-h.row { gap: 8px; flex-wrap: wrap; align-items: center; }
.bl-tog { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink2); }
.bl-tog input { width: 18px; height: 18px; min-height: 0; }
.meal { min-height: 0; }
.dinners { grid-auto-rows: minmax(196px, auto); }
.m-h .link { padding: 4px 4px; }
.m-swap { font-size: 11.5px; line-height: 1.3; color: #5f7a4e; background: #f1f5ea; border-radius: 8px; padding: 5px 7px; margin-top: 4px; }
.m-bls { margin-top: auto; display: flex; flex-direction: column; gap: 4px; padding-top: 6px; }
.m-bl { display: flex; align-items: center; gap: 6px; text-align: left; font-size: 12px; font-weight: 700; color: var(--ink2); background: #f6efe3; border-radius: 8px; padding: 4px 7px; }
.m-bl .m-sw { color: var(--terra); }
.clean-card .small { line-height: 1.6; margin: 6px 0; }
.g-sum { cursor: pointer; } .g-sum .small { line-height: 1.8; }
.swap-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 10px 0 14px; }
.swap-opt { text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 12px; }
.swap-opt b { font-family: var(--serif); font-size: 19px; line-height: 1.1; } .swap-opt:active { transform: scale(.98); }
.grocery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.grocery-grid .litems { max-height: none; }
.grocery-grid .card-h h3 { font-size: 22px; }
.store-costco { border-top: 5px solid #4f7db3; } .store-tjs { border-top: 5px solid #c4473a; } .store-target { border-top: 5px solid #d8473f; }
.grocery-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; align-items: start; }
.g-help p { margin: 6px 0 0; line-height: 1.55; }
.litem { gap: 6px; }
.litem .li-text { text-align: left; font-weight: 600; font-size: 14px; line-height: 1.2; min-width: 0; }
.li-n { display: inline; font-size: 11px; color: var(--terra); font-weight: 800; }
.li-store { min-height: 30px; padding: 2px 4px; font-size: 12px; border-radius: 8px; width: 74px; flex: none; }
.litem.done .li-text { text-decoration: line-through; color: var(--muted); }
.rec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.rec { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; }
.rec b { font-family: var(--serif); font-size: 20px; line-height: 1.1; } .rec .btn { align-self: flex-start; margin-top: 4px; }
.m-ing span.st-costco, .legend-st.st-costco { background: #e3ecf7; } .m-ing span.st-tjs, .legend-st.st-tjs { background: #f8e1dc; } .m-ing span.st-target, .legend-st.st-target { background: #f1ede4; }
.legend-st { padding: 2px 8px; border-radius: 999px; font-weight: 700; }
.chk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.chk ul { margin: 8px 0 0; padding-left: 18px; line-height: 1.55; font-size: 14px; }
.chk.bad { border-top: 5px solid #d88a7a; } .chk.good { border-top: 5px solid #8fb07a; }
@media (max-width: 1100px) { .grocery-grid { gap: 8px; } .rec-grid, .swap-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .li-store { width: 64px; } }
.m-foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; padding-top: 6px; }
.m-foot .m-bls { margin-top: 0; padding-top: 0; }
.m-swapbtn { width: 100%; }
@media (min-height: 801px) { .rt-card svg, .rt-grid.n6 .rt-card svg, .rt-grid.n5 .rt-card svg { width: 136px; height: 136px; } .rt-grid.n7 .rt-card svg, .rt-grid.n8 .rt-card svg { width: 118px; height: 118px; } .rt-card { padding: 16px 8px 14px; gap: 8px; } .rt-label { font-size: 24px; } }

/* ---------- School (Easton) ---------- */
.school-grid { display: grid; grid-template-columns: 1.15fr 1fr 1.1fr; gap: 14px; align-items: stretch; }
.sc-card { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; min-height: 520px; }
.sc-card .card-h h3 { font-size: 24px; }
.sc-sample { font-size: 12.5px; font-weight: 800; color: #8a5a12; background: #fff1d6; border: 1px dashed #e2b867; border-radius: 10px; padding: 6px 10px; }
.sc-words { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sc-word { min-height: 60px; border-radius: 16px; background: var(--t1, #f6efe3); border: 2px solid var(--line); font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--ink); padding: 6px 10px; line-height: 1.1; }
.sc-word:active { transform: scale(.96); }
.sc-big { min-height: 64px; font-size: 19px; font-weight: 800; border-radius: 18px; padding: 10px 20px; }
.sc-card .sc-big { margin-top: auto; width: 100%; }
.sc-ref { font-weight: 900; font-size: 22px; color: var(--terra); letter-spacing: .3px; }
.sc-vtext { margin: 0; font-family: var(--serif); font-size: 27px; line-height: 1.3; font-style: italic; color: var(--ink); }
.hw-list { display: flex; flex-direction: column; gap: 9px; overflow-y: auto; }
.hw-item { display: flex; align-items: center; gap: 14px; text-align: left; min-height: 74px; padding: 10px 14px; border-radius: 18px; background: #fffaf2; border: 2px solid var(--line); }
.hw-item:active { transform: scale(.98); }
.hw-box { width: 44px; height: 44px; flex: none; border-radius: 14px; border: 3px solid var(--line2); display: inline-flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 900; color: #fff; background: #fff; }
.hw-item.done { background: #eef5e8; border-color: #c9dcbb; } .hw-item.done .hw-box { background: var(--sage); border-color: var(--sage); }
.hw-item.done b { text-decoration: line-through; color: var(--muted); }
.hw-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; } .hw-txt b { font-size: 19px; line-height: 1.15; }
.hw-due { align-self: flex-start; font-size: 13px; font-weight: 800; padding: 2px 10px; border-radius: 999px; background: #f2ece2; color: var(--ink2); }
.hw-due.today { background: #fde2cf; color: #a6431c; } .hw-due.tomorrow { background: #fdf0c8; color: #87620c; } .hw-due.late { background: #f9d6d2; color: #a2271c; } .hw-due.done { background: #dcebd1; color: #4f6f3d; }
/* practice */
.sp-wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 18px 22px 22px; min-height: 560px; }
.sp-top { display: flex; align-items: center; gap: 14px; width: 100%; } .sp-top .btn { min-height: 50px; font-size: 16px; }
.sp-dots { flex: 1; display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; } .sp-dots i { width: 14px; height: 14px; border-radius: 50%; background: #eadfcd; } .sp-dots i.on { background: var(--sage); } .sp-dots i.cur { background: var(--terra); transform: scale(1.25); }
.sp-count { font-size: 18px; }
.sp-card { position: relative; width: min(640px, 92%); height: 300px; perspective: 1200px; background: none; border: 0; padding: 0; }
.sp-face { position: absolute; inset: 0; border-radius: 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .5s cubic-bezier(.3,1.3,.5,1); box-shadow: 0 10px 30px rgba(120, 80, 30, .16); }
.sp-front { background: linear-gradient(150deg, #fff6e4, #fde8d3); border: 3px solid #f0cfa8; }
.sp-back { background: #fffdf8; border: 3px solid var(--sage); transform: rotateY(180deg); }
.sp-card.flipped .sp-front { transform: rotateY(-180deg); } .sp-card.flipped .sp-back { transform: rotateY(0); }
.sp-ear { font-size: 76px; } .sp-front b { font-size: 30px; font-family: var(--serif); } .sp-face small { color: var(--muted); font-weight: 700; font-size: 16px; }
.sp-word { font-family: var(--serif); font-size: 84px; line-height: 1; color: var(--ink); letter-spacing: 2px; text-align: center; padding: 0 20px; }
.sp-ctrls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; width: min(820px, 100%); }
.sp-ctrls .btn:disabled { opacity: .4; }
.sp-done { justify-content: center; text-align: center; } .sp-party { font-size: 96px; } .sp-done h2 { font-size: 36px; } .row.center { justify-content: center; }
/* home + briefing */
.hw-home { display: flex; align-items: center; gap: 8px; width: 100%; margin: -2px 0 6px; padding: 6px 10px; border-radius: 12px; background: #fff3e4; border: 1px solid #f1d6b4; text-align: left; font-size: 13.5px; }
.hw-home b { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hw-when { font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: #fde2cf; color: #a6431c; white-space: nowrap; }
.hw-home.tomorrow .hw-when { background: #fdf0c8; color: #87620c; } .hw-home.overdue .hw-when { background: #f9d6d2; color: #a2271c; }
.br-hw { display: flex; align-items: center; gap: 5px; margin: -2px 0 2px 30px; font-size: 12px; text-align: left; color: var(--ink2); min-width: 0; }
.br-hw b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; } .br-hw span { font-size: 10.5px; font-weight: 800; padding: 1px 6px; border-radius: 999px; background: #fde2cf; color: #a6431c; flex: none; }
.br-hw.tomorrow span { background: #fdf0c8; color: #87620c; } .br-hw.overdue span { background: #f9d6d2; color: #a2271c; }
/* parents editor */
.sc-ed { display: grid; grid-template-columns: 1fr 1.15fr; gap: 12px; margin-top: 10px; }
.sc-ed-col { display: flex; flex-direction: column; gap: 8px; padding: 14px; }
.sc-ed-col label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; }
.sc-ed-col .card-h label { flex-direction: row; align-items: center; gap: 6px; }
.sc-ed-col textarea { width: 100%; font-size: 15px; }
.sc-hrows { display: flex; flex-direction: column; gap: 6px; max-height: 330px; overflow-y: auto; }
.sc-hrow { display: flex; align-items: center; gap: 6px; } .sc-hrow input[type=date] { width: 150px; } .sc-hrow.done input[data-f=text] { text-decoration: line-through; color: var(--muted); }
.sc-hdone { flex-direction: row !important; align-items: center; gap: 4px !important; white-space: nowrap; }
.sc-api textarea { font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
@media (max-width: 1100px) { .school-grid { gap: 10px; } .sc-card { padding: 12px 14px; min-height: 470px; } .sc-word { font-size: 19px; min-height: 54px; } .sc-vtext { font-size: 23px; } .hw-txt b { font-size: 17px; } .sp-word { font-size: 68px; } .sp-card { height: 260px; } .sp-wrap { min-height: 500px; } }
@media (max-height: 800px) { .sc-card { min-height: 450px; } .sp-wrap { gap: 12px; min-height: 480px; } .sp-card { height: 240px; } }
/* print + cursive spelling */
:root { --cursive: "Playwrite US Trad", "Apple Chancery", "Snell Roundhand", "Segoe Script", cursive; }
.sc-word { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 74px; }
.sc-word .pr, .pc .pr { font-family: var(--sans, "Nunito", system-ui, sans-serif); font-size: 23px; font-weight: 800; letter-spacing: .5px; line-height: 1.1; }
.sc-word .cur, .pc .cur { font-family: var(--cursive); font-size: 19px; font-weight: 400; line-height: 1.5; color: #5b4a8a; }
.sc-words { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sc-spell .sc-word { min-height: 62px; } .sc-spell .sc-word .pr { font-size: 20px; } .sc-spell .sc-word .cur { font-size: 16px; }
.sc-words.adv .sc-word { background: #fdf3d8; border-color: #ecd59a; }
.sc-sub { font-size: 13px; font-weight: 800; color: #8a6a12; letter-spacing: .4px; }
.sc-rule { text-align: left; font-size: 13.5px; line-height: 1.35; font-weight: 700; background: #eef4fb; border: 1px solid #cddcee; border-radius: 12px; padding: 8px 10px; color: #33557a; }
.sc-spell { overflow-y: auto; }
.sp-cursive { font-family: var(--cursive); font-size: 52px; line-height: 1.6; color: #5b4a8a; }
.sp-back { gap: 4px; } .sp-back .sp-word { font-family: var(--sans, "Nunito", system-ui, sans-serif); font-weight: 800; font-size: 76px; }
.sc-prev { display: flex; flex-wrap: wrap; gap: 6px; max-height: 140px; overflow-y: auto; padding: 6px; background: #faf6ee; border-radius: 10px; }
.pc { display: inline-flex; flex-direction: column; align-items: center; padding: 3px 9px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.pc.sm .pr { font-size: 15px; } .pc.sm .cur { font-size: 13px; }
.sc-wcols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
@media (max-width: 1100px) { .sc-word .pr { font-size: 19px; } .sc-word .cur { font-size: 16px; } .sc-spell .sc-word .pr { font-size: 18px; } .sc-spell .sc-word .cur { font-size: 15px; } .sp-cursive { font-size: 42px; } .sp-back .sp-word { font-size: 62px; } }

/* ---------- Monet-style painted backgrounds ---------- */
.season-bg .monet { position: absolute; inset: -14px; background-size: cover; background-position: center; }
.season-bg .frost { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(253, 249, 242, .34), rgba(253, 249, 242, .22)); }
html[data-variant="evening"] .season-bg .frost { background: linear-gradient(180deg, rgba(48, 36, 40, .30), rgba(48, 36, 40, .22)); }
.season-bg.drift .monet { animation: sdrift 140s ease-in-out infinite alternate; will-change: transform; }
.sleep .s-bg .monet { inset: -14px; } .sleep:not(.night) .s-bg .frost { background: rgba(253, 249, 242, .18); }
body.seasonal .side { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@media (prefers-reduced-motion: reduce) { .season-bg.drift .monet { animation: none !important; } }

/* ---------- Learn: new activities ---------- */
.lvl-seg { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 6px; }
.lvl-seg button { padding: 6px 12px; min-height: 36px; border-radius: 999px; border: 1px solid var(--line2); background: #fffdf8; font-weight: 800; font-size: 13px; color: var(--ink2); }
.lvl-seg button.on { background: var(--terra); border-color: var(--terra); color: #fff; }
.round { font-weight: 900; font-size: 14px; color: var(--ink2); background: #fff3e0; border-radius: 999px; padding: 3px 10px; }
.l-note { font-size: 14px; background: #f3f0e6; border-radius: 12px; padding: 6px 12px; color: var(--ink2); margin-bottom: 4px; }
.sing-row { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.sing-strip { display: flex; flex-wrap: wrap; gap: 4px; } .sing-strip span { font-size: 12px; font-weight: 800; padding: 3px 7px; border-radius: 8px; background: #f2ece2; color: var(--muted); transition: all .2s; }
.sing-strip span.sung { background: #e2ecd8; color: #4f6f3d; } .sing-strip span.on { background: var(--terra); color: #fff; transform: scale(1.18); }
.q-prompt.rnd { font-size: 34px; margin: 6px 0 4px; } .q-prompt.compact { font-size: 26px; }
.q-vis { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.tile2 .emo, .cw .emo, .m-col .emo { font-size: 46px; line-height: 1; } .choice .emo.sm, .tile2 .emo.sm, .emo.sm { font-size: 34px; } .word.sm { font-size: 24px; }
.choice .emo + .word, .choice .emo.sm + .word { margin-left: 8px; }
.ctr { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.ctr-grp { display: grid; grid-template-columns: repeat(5, auto); gap: 4px 6px; padding: 10px 12px; background: #fff8ec; border-radius: 16px; border: 2px dashed #ecd8b8; }
.ctr-grp i { font-style: normal; font-size: 34px; line-height: 1; } .ctr-grp.dense i { font-size: 26px; }
.ctr-grp i.gone { opacity: .35; position: relative; } .ctr-grp i.gone::after { content: "✕"; position: absolute; inset: 0; color: #c0392b; font-size: 30px; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.ctr .op { font-size: 44px; font-weight: 900; color: var(--terra); } .ctr-cap { font-weight: 800; color: var(--ink2); font-size: 18px; }
.seq { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; } .seq span { font-family: var(--serif); font-size: 34px; font-weight: 700; padding: 8px 18px; background: #fff8ec; border-radius: 16px; border: 2px solid var(--line); }
.seq span.q, .ytt span.q { border-style: dashed; border-color: var(--terra); color: var(--terra); }
.ytt { display: flex; gap: 10px; } .ytt span { padding: 8px 16px; border-radius: 14px; background: #f6efe3; font-weight: 800; font-size: 18px; border: 2px solid transparent; }
.ord-slots, .ord-tiles { display: grid; gap: 10px; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); margin-top: 8px; }
.ord-slots.n4, .ord-tiles.n4 { --n: 4; } .ord-slots.n5, .ord-tiles.n5 { --n: 5; } .ord-slots.n7, .ord-tiles.n7 { --n: 7; }
.oslot { min-height: 76px; border-radius: 16px; border: 3px dashed var(--line2); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 15px; background: #fffdf8; }
.oslot i { font-style: normal; font-weight: 900; color: var(--muted); font-size: 22px; } .oslot.full { border-style: solid; border-color: var(--sage); background: #eef5e8; }
.tile2 { min-height: 84px; border-radius: 18px; background: #fffdf8; border: 2px solid var(--line2); box-shadow: 0 4px 0 #e6d9c3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px; font-size: 17px; }
.tile2:active { transform: translateY(3px); box-shadow: 0 1px 0 #e6d9c3; } .tile2.used { opacity: .25; } .tile2.sel { border-color: var(--terra); box-shadow: 0 0 0 3px var(--terra-l); }
.tile2.done { background: #eef5e8; border-color: #b9d3a8; box-shadow: none; } .tile2 small { font-size: 13px; color: var(--ink2); font-weight: 700; }
.ord-tiles.n7 .tile2 { font-size: 15px; } .shake { animation: shake .35s; }
.match { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: auto; } .m-col { display: grid; gap: 10px; }
.match .tile2 { flex-direction: row; min-height: 74px; } .m-ok { margin-left: auto; font-weight: 900; color: #4f6f3d; font-size: 15px; }
.cw { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.cw-part { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 16px; background: #fff8ec; border-radius: 18px; border: 2px solid var(--line); min-width: 96px; }
.cw-part b { font-size: 22px; } .cw-part.q { border-style: dashed; border-color: var(--terra); } .cw-part.big .emo { font-size: 58px; } .cw .op { font-size: 40px; font-weight: 900; color: var(--terra); }
.calgrid { background: #fffdf8; border-radius: 16px; border: 2px solid var(--line); padding: 8px; width: min(560px, 100%); }
.cg-title { text-align: center; font-family: var(--serif); font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.cg-row, .cg-cells { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; } .cg-h span { text-align: center; font-size: 12.5px; font-weight: 900; color: var(--muted); text-transform: uppercase; }
.cg-d { min-height: 40px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; background: #f8f2e8; color: var(--ink); line-height: 1; }
.cg-d small { font-size: 9.5px; color: var(--terra); font-weight: 900; } .cg-d.out { background: transparent; }
.cg-d.today { box-shadow: inset 0 0 0 3px #6c9bd2; } .cg-d.target { background: #fde2a8; box-shadow: inset 0 0 0 3px #e0a42c; } .cg-d.target::after { content: "⭐"; font-size: 10px; }
.calgrid.tap .cg-d { min-height: 52px; font-size: 20px; border: 2px solid var(--line); } .calgrid.tap button.cg-d:active { transform: scale(.94); }
.cg-d.yes { background: #dcebd1; } .cg-d.nope { opacity: .35; }
.kp-wrap.with-vis .q-left { display: flex; flex-direction: column; gap: 8px; align-items: center; } .q-text.sm { font-size: 40px; }
.kp-wrap.with-vis .calgrid { width: 100%; } .kp-wrap.with-vis .cg-d { min-height: 34px; font-size: 15px; }
.q-vis.compact .calgrid .cg-d { min-height: 32px; font-size: 15px; } .q-vis.compact .cg-title { font-size: 18px; }
@media (max-height: 800px) { .q-prompt.rnd { font-size: 28px; } .tile2 { min-height: 70px; } .oslot { min-height: 62px; } .calgrid.tap .cg-d { min-height: 44px; } .ctr-grp i { font-size: 28px; } .tile2 .emo, .cw .emo { font-size: 38px; } }
/* bins */
.bin-icos { display: inline-flex; gap: 2px; align-items: center; } .bin-ico { width: 30px; height: 30px; display: block; }
.alert .a-ico .bin-ico { width: 34px; height: 34px; }
.br-line2.bins { display: flex; align-items: center; gap: 8px; } .br-line2.bins .bin-ico { width: 26px; height: 26px; }
.bin-ed { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; background: #faf6ee; border-radius: 12px; }
.bin-ed-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .bin-ed-row b { width: 80px; } .bin-ed-row .bin-ico { width: 26px; height: 26px; }
.dchip { display: inline-flex; align-items: center; gap: 3px; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line2); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.dchip input { width: 14px; height: 14px; min-height: 0; } .dchip.on { background: var(--terra-l); border-color: var(--terra); }

/* ---- weather consolidated into the date card (one place on Home) ---- */
.br-grid { grid-template-columns: 1.25fr 1.05fr 1.2fr; }
@media (max-width: 1100px) { .br-grid { grid-template-columns: 1.2fr 1fr 1.15fr; } }
.brief .br-ico, .brief .br-sun { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--terra-l, #f3e1d6); color: var(--terra, #b5552f); flex: 0 0 auto; }
.brief .br-ico .ico, .brief .br-sun .ico { width: 24px; height: 24px; }
.brief.mini .br-ico { width: 34px; height: 34px; } .brief.mini .br-ico .ico { width: 20px; height: 20px; }
.dc-extra .rain { color: #5b84b1; }
.dc-wx .stale { font-size: 10px; text-transform: uppercase; background: #eee2cf; padding: 1px 6px; border-radius: 6px; }
.dc-wear { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; } .dc-wear .chip { font-size: 13px; padding: 4px 10px; }
.dc-more { margin-top: 8px; font-size: 13px; font-weight: 800; color: var(--terra); background: none; border: 0; padding: 4px 0; min-height: 32px; }
.wx-strip.in { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; padding: 6px 0 0; border-top: 1px solid var(--line); margin-top: 4px; }
.wx-strip.in .wday { padding: 3px 1px; } .wx-strip.in .wi { font-size: 20px; } .wx-strip.in b { font-size: 14px; } .wx-strip.in small { font-size: 11px; }

/* ---------- Kindness jar (shared by all kids) ---------- */
.col.mid { min-height: 0; } .col.mid .card.today { flex: 1 1 auto; min-height: 120px; overflow: auto; }
.kj-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin: 0 3px 0 1px; vertical-align: -1px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.kj-jar { position: relative; display: inline-block; width: var(--w); height: var(--h); border: 2.5px solid #c9b796; border-top-width: 0; border-radius: 10px 10px calc(var(--w) * .22) calc(var(--w) * .22); background: linear-gradient(90deg, rgba(255,255,255,.75), rgba(240,232,215,.35) 40%, rgba(255,255,255,.6)); overflow: hidden; flex: 0 0 auto; }
.kj-jar .kj-lid { position: absolute; top: 0; left: -3px; right: -3px; height: 7px; background: #b89f74; border-radius: 4px; z-index: 2; }
.kj-jar.sm .kj-lid { height: 5px; } .kj-jar.lg .kj-lid { height: 11px; }
.kj-jar .kj-goal { display: none; }
.kj-ms { position: absolute; left: 4px; right: 4px; bottom: 4px; top: 10px; display: flex; flex-wrap: wrap-reverse; align-content: flex-start; justify-content: center; gap: 1.5px; z-index: 1; }
.kj-ms i { width: var(--m); height: var(--m); border-radius: 50%; box-shadow: inset -2px -2px 0 rgba(0,0,0,.14), inset 2px 2px 0 rgba(255,255,255,.5); }
.kj-jar .kj-fill { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(247, 217, 143, .25); }
.kj-jar.full { border-color: #e0a42c; box-shadow: 0 0 0 3px #fde2a8; }
.kjar-card { padding: 12px 14px; flex: 0 0 auto; }
.kjar-card .card-h { margin-bottom: 4px; } .kjar-card h3 { font-size: 20px; }
.kj-row { display: flex; gap: 10px; align-items: center; } .kj-art { background: none; border: 0; padding: 0; }
.kj-status { font-size: 14px; line-height: 1.25; } .kj-status.lg { font-size: 18px; margin: 6px 0; }
.kj-bar { height: 8px; border-radius: 6px; background: #efe5d3; margin: 6px 0 4px; overflow: hidden; } .kj-bar i { display: block; height: 100%; background: linear-gradient(90deg, #f3c95b, #e8a33a); border-radius: 6px; }
.kj-kids { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.kj-kid { display: flex; align-items: center; gap: 6px; min-height: 48px; padding: 4px 8px 4px 4px; border-radius: 14px; border: 2px solid var(--c, var(--line2)); background: #fffdf8; text-align: left; }
.kj-kid:active { transform: scale(.97); } .kj-kid > span { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; } .kj-kid b { font-size: 14px; } .kj-kid small { font-size: 12px; font-weight: 800; color: var(--ink2); }
.kj-kid em { margin-left: auto; white-space: nowrap; font-style: normal; font-size: 13px; font-weight: 900; color: #b5552f; }
.kj-oth { display: inline-block; margin-top: 6px; font-size: 12px; color: var(--muted); font-weight: 700; }
.kj-strip { margin-left: auto; display: flex; align-items: center; gap: 8px; background: rgba(255, 252, 246, .92); border: 1px solid var(--line); border-radius: 18px; padding: 5px 6px 5px 10px; }
.kj-sum { display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0; text-align: left; }
.kj-sum b { font-size: 14px; display: block; } .kj-sum small { font-size: 12px; font-weight: 800; color: var(--ink2); white-space: nowrap; }
.kj-me { min-height: 46px; border: 2px solid var(--c); background: #fff8e8; font-weight: 900; white-space: nowrap; }
.kj-modal { width: min(820px, 92vw); }
.kj-full { display: flex; gap: 24px; align-items: center; } .kj-big { flex: 0 0 auto; padding: 10px; }
.kj-side { flex: 1; min-width: 0; } .kj-side h2 { margin-bottom: 2px; }
.kj-kids.lg .kj-kid { min-height: 58px; } .kj-kids.lg .kj-kid b { font-size: 16px; }
.kj-notes { margin: 10px 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.kj-ed { margin-bottom: 14px; } .kj-list { max-height: 170px; overflow: auto; margin: 8px 0; display: flex; flex-direction: column; gap: 4px; }
.kj-li { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 4px 6px; border-bottom: 1px solid var(--line); }
@media (max-width: 1100px) { .kj-sum small { display: none; } .kj-strip { gap: 6px; } .kj-me { font-size: 13px; padding: 6px 10px; } .kj-kid em { display: none; } }

/* ---------- spelling: hear / spell out loud with letter highlight ---------- */
.sc-mode { display: flex; width: 100%; margin: 2px 0 8px; } .sc-mode button { flex: 1; min-height: 44px; font-size: 15px; font-weight: 800; }
.lt { transition: color .12s, opacity .12s; text-decoration: none; }
.lt.on { color: #c2410c !important; text-decoration: underline; text-decoration-color: #f5b301; text-decoration-thickness: 4px; text-underline-offset: 5px; opacity: 1; }
.sp-back .lt.on { text-decoration-thickness: 7px; text-underline-offset: 9px; }
.spelling .lt:not(.on) { opacity: .45; }
.sc-word.spelling { border-color: #e0a42c; box-shadow: 0 0 0 3px #fde2a8; }
.sc-rule { display: block; } .sc-rule .sc-hrule { margin-top: 5px; min-height: 36px; }
.sc-hrule { font-size: 13px; }
.sp-tag { position: absolute; top: 10px; left: 12px; font-size: 13px; font-weight: 900; background: #fdf3d8; border: 1px solid #ecd59a; color: #87620c; border-radius: 999px; padding: 3px 10px; }
.sp-back { position: relative; }
.sp-top .sc-hrule { margin-left: 8px; }
/* compact spelling card so the list, sight words and Practice fit on one iPad screen */
.sc-spell { gap: 7px; padding: 12px 14px; } .sc-spell .card-h h3 { font-size: 22px; }
.sc-spell .sc-rule { font-size: 12.5px; padding: 6px 9px; line-height: 1.3; }
.sc-mode { margin: 0; gap: 2px; } .sc-mode button { min-height: 40px; font-size: 13.5px; padding: 0 6px; white-space: nowrap; }
.sc-mode .sc-hrule { color: #33557a; }
.sc-spell .sc-words { gap: 6px; }
.sc-spell .sc-word { min-height: 52px; padding: 3px 4px; gap: 0; } .sc-spell .sc-word .pr { font-size: 19px; } .sc-spell .sc-word .cur { font-size: 15px; line-height: 1.35; }
.sc-spell .sc-sub { margin: 0; font-size: 13px; }
.sc-spell .sc-big { min-height: 52px; }
@media (max-width: 1100px) { .sc-mode button { font-size: 12.5px; } .sc-spell .sc-word { min-height: 50px; } .sc-spell .sc-word .pr { font-size: 18px; } .sc-spell .sc-word .cur { font-size: 14px; } }

/* ---------- Learn: more activities (memory, tens & ones, clock, cursive, reading) ---------- */
.seg.subtabs { display: flex; flex-wrap: wrap; border-radius: 20px; gap: 3px; }
.seg.subtabs button { flex: 0 0 auto; padding: 6px 12px; min-height: 40px; white-space: nowrap; }
.seg.subtabs button small { margin-left: 2px; }
/* memory */
.memg { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.mcard { position: relative; min-height: 86px; border: 0; padding: 0; background: none; perspective: 600px; }
.memg.n16 .mcard { min-height: 72px; } .memg.n10 .mcard, .memg.n12 .mcard { min-height: 84px; }
.mc-in { position: absolute; inset: 0; transition: transform .35s; transform-style: preserve-3d; }
.mcard.open .mc-in { transform: rotateY(180deg); }
.mc-back, .mc-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 4px; }
.mc-back { background: repeating-linear-gradient(45deg, #e8a33a 0 10px, #eeb350 10px 20px); border: 3px solid #fff3d6; font-size: 30px; box-shadow: 0 3px 0 #c98a2a; }
.mc-face { transform: rotateY(180deg); background: #fffdf8; border: 2px solid var(--line2); }
.mcard.got .mc-face { background: #eef5e8; border-color: #9cc48a; }
.mc-face .emo { font-size: 34px; line-height: 1; } .mc-face b { font-size: 16px; } .mc-face small { font-size: 13px; font-weight: 800; line-height: 1.1; text-align: center; color: var(--ink2); }
.mc-face .dig { font-size: 26px; font-family: var(--sans, system-ui); }
.mem-info { text-align: center; font-size: 13px; color: var(--muted); margin-top: 6px; }
/* base-ten blocks */
.b10 { display: inline-flex; align-items: flex-end; gap: 6px; flex-wrap: wrap; justify-content: center; }
.b10 .rod { display: inline-flex; flex-direction: column; border: 1.5px solid #2f6a9e; border-radius: 3px; background: #6aa7da; }
.b10 .rod i, .b10 .ones i { width: 16px; height: 16px; border: 1px solid rgba(255,255,255,.55); display: block; }
.b10 .ones { display: inline-grid; grid-template-columns: repeat(5, auto); gap: 3px; align-self: flex-end; }
.b10 .ones i { background: #f2b84b; border: 1.5px solid #b67c14; border-radius: 3px; }
.b10.sm .rod i, .b10.sm .ones i { width: 12px; height: 12px; }
.b10.xs { gap: 3px; } .b10.xs .rod i { width: 7px; height: 6px; border-width: .5px; } .b10.xs .ones i { width: 7px; height: 7px; border-width: 1px; } .b10.xs .ones { gap: 2px; }
.pv-n { font-family: var(--serif); font-size: 46px; font-weight: 700; line-height: 1; }
.num { font-size: 34px; font-weight: 900; font-family: var(--sans, system-ui); } .num.dig, .dig { font-variant-numeric: tabular-nums; }
.pv-build { display: flex; flex-direction: column; gap: 10px; }
.pv-mat { min-height: 200px; border-radius: 16px; background: #f4efe4; border: 2px dashed var(--line2); display: flex; align-items: center; justify-content: center; padding: 10px; }
.pv-ctl { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; } .pv-col { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pv-col .row { align-items: center; } .pv-c { font-size: 28px; font-weight: 900; min-width: 28px; text-align: center; } .pv-made { font-size: 34px; font-weight: 900; line-height: 1; }
.pv-col .sc-big { min-height: 52px; padding: 0 14px; }
/* clock */
.clock { display: block; } .q-vis .clock { margin: 0 auto; }
.clk-set { display: flex; gap: 22px; align-items: center; justify-content: center; }
.clk-wrap { touch-action: none; cursor: pointer; } .clk-wrap .cn { cursor: pointer; }
.clk-side { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.clk-hand button { min-height: 46px; font-weight: 800; }
.clk-rd .dig { font-size: 48px; font-weight: 900; font-family: var(--sans, system-ui); color: var(--ink); }
.match .tile2 .clock { width: 70px; height: 70px; }
/* cursive writing */
.cw-wrap { display: flex; flex-direction: column; gap: 8px; }
.cw-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cw-word .pr { font-size: 34px; font-weight: 900; letter-spacing: 2px; }
.cw-top .sc-big { min-height: 48px; padding: 0 14px; }
.cw-paper { width: 100%; height: auto; display: block; background: #fffefa; border-radius: 12px; border: 1px solid var(--line); }
.cw-paper .pl { stroke-width: 2; } .cw-paper .pl.top { stroke: #8fb3dd; } .cw-paper .pl.mid { stroke: #8fb3dd; stroke-dasharray: 10 8; } .cw-paper .pl.base { stroke: #d7735f; stroke-width: 2.5; } .cw-paper .pl.desc { stroke: #cfdcec; stroke-width: 1.2; }
.cw-paper text { font-family: var(--cursive); }
.cw-ghost { fill: #ece6da; } .cw-ink { fill: #5b4a8a; } .cw-pen { font-family: system-ui; }
.cw-guide { fill: #cfc6b4; } .cw-guide.faint { fill: #ebe5d8; }
.cw-trace { position: relative; } .trace-cv { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.cw-hint { position: absolute; right: 12px; top: 8px; font-size: 13px; font-weight: 800; color: var(--muted); pointer-events: none; }
.cw-wrap .row.center .sc-big { min-height: 52px; padding: 0 22px; }
/* reading */
.rd { display: flex; gap: 16px; align-items: flex-start; }
.rd-pic { flex: 0 0 200px; height: 200px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 56px; letter-spacing: 4px; box-shadow: inset 0 0 0 2px rgba(0,0,0,.05); text-align: center; line-height: 1.2; padding: 8px; }
.rd-pic.sm { flex-basis: 120px; height: 120px; font-size: 34px; }
.rd-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.rd-title { font-size: 30px; } .rd-title small { font-size: 14px; font-family: var(--sans, system-ui); }
.rd-text { font-size: 25px; line-height: 1.6; margin: 0; font-weight: 600; }
.rw { border-radius: 6px; padding: 0 1px; transition: background .1s; } .rs.on .rw { background: #fff6dc; } .rw.on { background: #ffd966 !important; box-shadow: 0 0 0 2px #ffd966; }
.rd-q { font-size: 30px; } .rd-ch .choice { min-height: 70px; } .rd-ch .word.sm { font-size: 22px; }
.st-ed { margin-top: 14px; } .st-add summary { display: inline-flex; cursor: pointer; margin: 6px 0; list-style: none; }
@media (max-width: 1100px) { .rd-pic { flex-basis: 150px; height: 150px; font-size: 42px; } .rd-text { font-size: 22px; } .clk-set svg { width: 250px; height: 250px; } .mc-face .emo { font-size: 28px; } }
.cw-paper, .cw-trace { max-width: 640px; width: 100%; margin: 0 auto; }
.cw-trace .cw-paper { max-width: none; }
.q-vis .clock { width: 216px; height: 216px; }
@media (max-width: 1100px) { .q-vis .clock { width: 190px; height: 190px; } .memg.n12 .mcard { min-height: 74px; } .clk-set svg { width: 230px; height: 230px; } .cw-paper, .cw-trace { max-width: 560px; } }
.lmain.lm-memory, .lmain.lm-placeval, .lmain.lm-clock, .lmain.lm-write, .lmain.lm-read, .lmain.lm-money { position: relative; }
.lm-memory .fb, .lm-placeval .fb, .lm-clock .fb, .lm-write .fb, .lm-read .fb, .lm-money .fb { position: absolute; left: 0; right: 0; bottom: 8px; margin: 0; pointer-events: none; text-shadow: 0 0 6px #fff, 0 0 3px #fff; }
.lm-memory .fb:empty, .lm-placeval .fb:empty, .lm-clock .fb:empty, .lm-write .fb:empty, .lm-read .fb:empty, .lm-money .fb:empty { display: none; }
.lm-placeval .q-vis, .lm-clock .q-vis { margin-bottom: 6px; }
.lm-placeval .choices .choice, .lm-clock .choices .choice { min-height: 96px; }
@media (max-width: 1100px) { .lm-memory .mem-info { display: none; } .lm-placeval .choices .choice, .lm-clock .choices .choice { min-height: 84px; } }
.lm-write .fb { top: 12px; bottom: auto; left: auto; right: 62px; font-size: 14px; max-width: 40%; text-align: right; line-height: 1.2; }

/* ---------- verse player (Home, Learn, School) ---------- */
.btn.vplay { min-height: 54px; padding: 0 22px; font-size: 17px; font-weight: 800; border-radius: 999px; white-space: nowrap; }
.btn.vplay.on { background: #8a3b22; border-color: #8a3b22; color: #fff; }
.btn.vwith { background: #eef3e9; border-color: #cfdcc6; color: var(--ink); }
.btn.vwith.on { background: #4f7a43; border-color: #4f7a43; color: #fff; }
.card.verse { display: flex; flex-direction: column; }
.card.verse .btn.verse-play { align-self: flex-start; margin-top: 10px; min-height: 52px; }
.card.verse.weekly .eyebrow { color: var(--terra, #b5552f); }
.vow .btn.vplay { margin: 0 0 10px; flex-direction: row; min-height: 54px; border-radius: 999px; align-self: stretch; justify-content: center; }
.vow .btn.vplay:not(.on) { background: var(--terra, #b5552f); border-color: var(--terra, #b5552f); color: #fff; }
.sc-vbtns { flex-wrap: wrap; } .sc-vbtns .btn { flex: 1 1 auto; }
.vph { border-radius: 6px; transition: background .2s; padding: 0 1px; }
.vph.on { background: #fde2a8; }
.vph.you { background: #d8ecd0; box-shadow: 0 0 0 2px #9cc48a; }
.br-verse .btn.vplay { display: flex; margin-top: 8px; min-height: 48px; font-size: 15px; padding: 0 16px; }

/* ---------- Ask Homer ---------- */
.homer-wrap { display: inline-flex; align-items: stretch; border-radius: 999px; box-shadow: 0 6px 14px -9px rgba(60, 50, 90, .6); }
.btn.homer { min-height: 44px; padding: 0 14px 0 14px; font-size: 15px; font-weight: 800; background: #f3f0fb; border: 1.5px solid #cfc6ea; color: #3e3470; border-radius: 999px 0 0 999px; gap: 6px; }
.btn.homer.more { padding: 0 11px; border-left: 0; border-radius: 0 999px 999px 0; font-size: 13px; min-width: 38px; }
.btn.homer:active { background: #e6e0f7; }
.hm-ico { font-size: 17px; }
.homer-pop { position: fixed; z-index: 60; width: 320px; background: #fffdf9; border: 1px solid var(--line2); border-radius: 20px; box-shadow: 0 18px 40px -14px rgba(40, 30, 20, .45); padding: 14px; display: flex; flex-direction: column; gap: 8px; animation: pop .16s ease-out; }
.homer-pop .hp-h b { display: block; font-size: 17px; color: #3e3470; } .homer-pop .hp-h small { color: var(--muted); font-size: 12.5px; line-height: 1.3; display: block; margin-top: 2px; }
.hp-ask { min-height: 50px; text-align: left; padding: 0 14px; border-radius: 14px; border: 1.5px solid #e2dcf2; background: #f8f6fd; font: inherit; font-weight: 700; font-size: 15px; color: var(--ink); cursor: pointer; }
.hp-ask:active { background: #ece7f8; }
.hp-open { min-height: 50px; justify-content: center; }
.homer-ed .row { margin-top: 6px; align-items: center; } .homer-ed input { font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
@media (max-width: 1100px) { .btn.homer { padding: 0 11px; font-size: 14px; } .hdr-right { gap: 8px; } }

/* ---------- Learn: Money ---------- */
.coinb { border: 0; background: none; padding: 2px; display: inline-flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; border-radius: 50%; transition: transform .15s; touch-action: manipulation; }
.coinb .coin { filter: drop-shadow(0 3px 3px rgba(60, 40, 20, .28)); display: block; }
.coinb:active { transform: scale(.94); } .coinb.boing { animation: boing .45s; }
.coinb small { font-size: 12px; font-weight: 800; color: var(--ink); }
.coinb.lit .coin { filter: drop-shadow(0 0 10px #f2b84b) drop-shadow(0 0 3px #f2b84b); transform: scale(1.08); } .coinb.was:not(.lit) { opacity: .75; }
.m-legend { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; } .m-legend em { font-size: 12px; color: var(--muted); }
.coinb.leg { flex-direction: row; gap: 5px; border-radius: 999px; padding: 2px 8px 2px 2px; background: rgba(255,255,255,.6); min-height: 44px; } .coinb.leg small { font-size: 12.5px; }
.mbig { display: flex; justify-content: center; padding: 6px 0; }
.mcoins { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; max-width: 640px; margin: 0 auto; }
.m-cnt { margin: 8px auto 0; display: flex; min-height: 44px; }
.choice .coin { display: block; margin: 0 auto; }
.mc-face .coin { margin: 0 auto; } .mc-face .dig + small { font-size: 12px; }
.mstore { display: flex; flex-direction: column; gap: 10px; }
.ms-top { display: grid; grid-template-columns: 200px 1fr; gap: 12px; }
.m-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: #fff7e8; border: 2px solid #f0d9ad; border-radius: 18px; padding: 10px; position: relative; }
.m-item .mi-e { font-size: 58px; line-height: 1; } .m-item b { font-size: 17px; text-transform: capitalize; }
.m-item .mi-p { background: #b5552f; color: #fff; font-weight: 900; font-size: 22px; border-radius: 10px; padding: 2px 12px; box-shadow: 0 3px 0 #8a3b22; }
.choice .m-item { border: 0; background: none; padding: 4px; }
.ms-tray { border: 3px dashed #d9c9a8; border-radius: 18px; background: #f7f1e4; padding: 8px 12px; display: flex; flex-direction: column; min-height: 170px; transition: background .15s, border-color .15s; }
.ms-tray.hot { background: #eaf4e3; border-color: #8fbf7a; }
.ms-tl { font-weight: 900; font-size: 15px; } .ms-tl small { font-weight: 700; color: var(--muted); font-size: 12.5px; margin-left: 6px; }
.ms-coins { flex: 1; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; align-content: center; min-height: 80px; } .ms-empty { font-size: 34px; opacity: .25; margin: auto; }
.ms-tot { font-size: 18px; font-weight: 700; } .ms-tot b { font-size: 28px; font-weight: 900; } .ms-tot em { font-style: normal; font-weight: 900; margin-left: 6px; } .ms-tot .over { color: #b3261e; } .ms-tot .ok { color: #3c7a2e; }
.ms-wallet { display: flex; align-items: flex-end; justify-content: center; gap: 14px; background: #fffdf8; border: 1px solid var(--line); border-radius: 18px; padding: 8px 10px; flex-wrap: wrap; }
.ms-wl { font-weight: 800; color: var(--muted); align-self: center; font-size: 14px; }
.wcoin { touch-action: none; }
.coin-ghost { position: fixed; z-index: 80; pointer-events: none; transform: translate(-50%, -50%) scale(1.05); filter: drop-shadow(0 8px 10px rgba(0,0,0,.3)); }
.mstore .sc-big { min-height: 52px; padding: 0 18px; }
.m-enough, .m-change { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; } .m-enough .m-item, .m-change .m-item { min-width: 150px; }
.m-enough .mcoins { max-width: 380px; } .m-enough .m-cnt { margin: 0; }
.m-arrow { font-weight: 900; color: var(--muted); }
.lm-money .choices .choice { min-height: 92px; }
@media (max-width: 1100px) { .ms-top { grid-template-columns: 170px 1fr; } .ms-tray { min-height: 150px; } .lm-money .choices .choice { min-height: 80px; } }
@media (max-width: 1100px) { .m-legend { gap: 6px; } .m-legend em { display: none; } .coinb.leg { min-height: 40px; padding-right: 6px; } .coinb.leg small { font-size: 11.5px; }
  .lm-money .ms-tray { min-height: 128px; padding: 6px 10px; } .lm-money .ms-coins { min-height: 64px; } .lm-money .m-item .mi-e { font-size: 46px; } .lm-money .ms-wallet { padding: 4px 8px; gap: 10px; } .lm-money .mstore { gap: 8px; } .lm-money .mstore .sc-big { min-height: 48px; } }

/* real coin photos: ridged rim for dime & quarter, smooth rim for penny & nickel */
.coin { display: inline-block; position: relative; border-radius: 50%; flex: none; }
.coin img { width: 100%; height: 100%; display: block; border-radius: 50%; position: relative; -webkit-user-drag: none; user-select: none; pointer-events: none; }
.coin.reeded { background: repeating-conic-gradient(#6f767d 0 2.2deg, #e4e7ea 2.2deg 4.4deg); padding: 3px; box-sizing: border-box; }
.coin.smooth.c-n { background: #9aa0a6; padding: 1.5px; box-sizing: border-box; } .coin.smooth.c-p { background: #9a5a2c; padding: 1.5px; box-sizing: border-box; }
.coin.bill { border-radius: 4px; } .coin.bill img { border-radius: 4px; box-shadow: 0 0 0 1px #6f8f63; }
.coinb .cname, .choice .cname { display: block; font-size: 12.5px; font-weight: 900; color: var(--ink); text-transform: capitalize; margin-top: 1px; }
.ms-coins .cname { font-size: 11px; }
.coinb.lit .coin { box-shadow: 0 0 0 4px #f2b84b, 0 0 14px 4px rgba(242,184,75,.8); }
.mc-face .coin { margin: 0 auto 2px; }
.cal-priv { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; } .cal-priv input { font-family: ui-monospace, Menlo, monospace; font-size: 13px; } .priv-note { background: #fff6e0; border: 1px solid #f0d9ad; border-radius: 12px; padding: 8px 12px; }
