/* Nipalong v3 — the app layer. A fixed app frame (no long web page): a floating dock, the child's orb,
   a sky that follows the real day, a live day strip and a deck of cards. Loaded after app.css and overrides its shell. */

html, body { height: 100%; }
body { overflow: hidden; overscroll-behavior: none; background: var(--bg); }
.shell { display: block; position: fixed; inset: 0; min-height: 0; }
.shell-onboard { position: static; overflow: auto; height: 100%; }
body:has(.shell-onboard) { overflow: auto; }

/* ── The view: the one scrolling surface */
.view { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: 0 0 calc(112px + env(safe-area-inset-bottom)); scrollbar-width: thin; }
.view > :not(.sky):not(.deck-wrap):not(.shelf) { margin-left: 16px; margin-right: 16px; }
.view > .page-head { padding-top: calc(22px + env(safe-area-inset-top)); padding-right: 64px; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }

/* ── Dock: floating, dark, with a lifted bubble for the current tab */
.dock { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); height: 66px;
  display: flex; align-items: center; justify-content: space-around; padding: 0 6px; border-radius: 33px;
  background: var(--plum-deep);
  box-shadow: 0 18px 40px -14px rgba(35, 22, 29, .55), inset 0 1px 0 rgba(255, 255, 255, .08); view-transition-name: dock; }
.dock-brand { display: none; }
.dock-tab { position: relative; display: grid; justify-items: center; gap: 2px; flex: 1; min-width: 0; height: 54px; align-content: center;
  border-radius: 27px; text-decoration: none; color: rgba(251, 243, 230, .62); font-size: 11px; font-weight: 500; letter-spacing: .01em;
  transition: color .2s, background .25s cubic-bezier(.2, .8, .2, 1); }
.dock-tab .ico { width: 22px; height: 22px; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.dock-tab:active .ico { transform: scale(.86); }
.dock-tab.is-on { color: var(--plum-deep); background: #fbf3e6; }
.dock-tab.is-on .ico { color: var(--accent); transform: translateY(-1px); }

/* ── The orb: the child's avatar, opening "About <child>". Asking is a field on the page (review X-24) */
.orb { display: block; position: fixed; z-index: 41; top: calc(9px + env(safe-area-inset-top)); right: 12px; width: 40px; height: 40px; padding: 0; border: 0;
  border-radius: 50%; background: none; view-transition-name: orb; }
.orb-face { position: relative; z-index: 1; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%;
  background: var(--forest); color: #fbf3e6; font: 600 18px/1 var(--display);
  box-shadow: 0 0 0 2px var(--bg); }
.orb-ring { display: none; } /* no endless pulse (review V-10, V-43) */
.orb:active .orb-face { transform: scale(.94); }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .75; } 50% { transform: scale(1.09); opacity: .25; } }

/* ── Sky */
.sky { position: relative; overflow: hidden; padding: calc(20px + env(safe-area-inset-top)) 20px 18px; border-radius: 0 0 34px 34px;
  --ink-sky: var(--heading); color: var(--ink-sky); isolation: isolate; }
.sky-dawn { background: #f3d9c6; }
.sky-day { background: #d9e7e1; }
.sky-dusk { background: #5b2a3c; --ink-sky: #fbf3e6; }
.sky-night { background: #24151f; --ink-sky: #fbf3e6; }
.sky-sun { display: none; }
.sky-night .sky-sun { display: block; position: absolute; z-index: -1; right: 34%; top: 18px; width: 40px; height: 40px; border-radius: 50%; background: #ece3cf; box-shadow: 9px -3px 0 1px #2a1824; opacity: .9; }
.sky-night::before { content: ''; position: absolute; inset: 0; z-index: -2; opacity: .7;
  ; }
.sky-hills { position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; width: 100%; height: 92px; }
.sky-hills path:first-child { fill: rgba(31, 74, 58, .16); }
.sky-hills path:last-child { fill: rgba(31, 74, 58, .26); }
.sky-dusk .sky-hills path, .sky-night .sky-hills path { fill: rgba(10, 4, 8, .28); }
.sky-in { position: relative; padding-right: 58px; }
.sky-date { font-size: 12.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; opacity: .72; }
.sky-greet { margin-top: 10px; font: 550 clamp(32px, 8.4vw, 46px)/1.02 var(--display); letter-spacing: -.025em;  }
.sky-line { margin-top: 10px; font-size: 16.5px; line-height: 1.42; opacity: .86; max-width: 34em; }
.sky-knows { display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 14px -20px 0; padding: 0 20px 2px; background: none; border: 0; width: calc(100% + 40px + 58px); text-align: left; }
.sky-knows .kchip { white-space: nowrap; background: var(--surface); font-size: 13px; padding: 5px 11px; color: var(--heading); }
.sky-dusk .sky-knows .kchip, .sky-night .sky-knows .kchip { background: rgba(255, 253, 249, .13); color: #fbf3e6; }

/* ── The day strip */


.strip { margin-top: 18px; }
.st-panel { --st-bg: #fffdf9; --st-track: #f1ebe2; --st-edge: rgba(35, 22, 29, .1); --st-past: rgba(35, 22, 29, .07); --st-nap: #dedcf1; --st-nap-ink: #3d3a73;
  --st-dark: #3d3a73; --st-ev: #86365a; --st-hero: #3b1f2b; --st-now: #b4472f; --st-ink: #3b1f2b; --st-soft: #65555d; --st-lab: #fffdf9; --st-lab-ink: #3b1f2b;
  padding: 10px 12px 8px; border-radius: 20px; background: var(--st-bg); box-shadow: 0 1px 2px rgba(35, 22, 29, .06), 0 10px 26px -16px rgba(35, 22, 29, .35); color: var(--st-ink); }
.sky-night .st-panel { --st-bg: #1d1c38; --st-track: #2c2a52; --st-edge: rgba(255, 255, 255, .08); --st-past: #23213f; --st-nap: #4a4785; --st-nap-ink: #eceaff;
  --st-dark: #0f0e24; --st-ev: #e7a6c4; --st-hero: #f2c97a; --st-now: #ffffff; --st-ink: #f2f0fb; --st-soft: #c9c6e6; --st-lab: #2c2a52; --st-lab-ink: #f2f0fb;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .07); }
.st-labels { position: relative; height: 30px; margin-bottom: 6px; }
.st-labels.two { height: 64px; }
.st-lab { position: absolute; top: 0; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 5px; max-width: 62%; min-height: 28px; padding: 0 10px;
  border: 1.5px solid var(--st-ev); border-radius: 99px; background: var(--st-lab); color: var(--st-lab-ink); font-size: 12px; font-weight: 600; white-space: nowrap; }
.st-lab span { overflow: hidden; text-overflow: ellipsis; }
.st-lab b { font-weight: 700; color: var(--st-ev); }
.st-lab::after { content: ''; position: absolute; left: 50%; top: 100%; width: 1.5px; height: 8px; background: var(--st-ev); }
.st-lab.r2 { top: 34px; z-index: 1; }
.st-labels.two .st-lab:not(.r2)::after { height: 42px; }
.st-lab.is-l { transform: translateX(-14px); } .st-lab.is-l::after { left: 14px; }
.st-lab.is-r { transform: translateX(calc(-100% + 14px)); } .st-lab.is-r::after { left: auto; right: 14px; }
.st-lab.st-hero { background: var(--st-hero); border-color: var(--st-hero); color: var(--st-bg); }
.st-lab.st-hero b { color: inherit; }
.st-lab.st-hero::after { background: var(--st-hero); }
.strip-track { position: relative; height: 34px; border-radius: 10px; background: var(--st-track); box-shadow: inset 0 0 0 1px var(--st-edge); overflow: hidden; }
.st-past { position: absolute; left: 0; top: 0; bottom: 0; background: var(--st-past); }
.st-nap { position: absolute; top: 9px; bottom: 8px; min-width: 6px; border-radius: 6px; background: var(--st-nap); }
.st-dark { position: absolute; right: 0; bottom: 0; height: 5px; border-radius: 4px 0 0 0; background: var(--st-dark); }
.st-ev { position: absolute; top: 0; height: 6px; min-width: 6px; border-radius: 0 0 4px 4px; background: var(--st-ev); }
.st-ev.st-hero { background: var(--st-hero); }
.st-now { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--st-now); z-index: 1; }
.strip-rain { position: relative; height: 4px; margin-top: 4px; }
.strip-rain span { position: absolute; top: 0; bottom: 0; border-radius: 2px; background: #5b7fa6; }
.strip-scale { position: relative; height: 16px; margin-top: 6px; font-size: 11.5px; font-weight: 500; color: var(--st-soft); }
.strip-scale span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.strip-scale .at-l { transform: none; } .strip-scale .at-r { transform: translateX(-100%); }
.strip-scale .sc-now { color: var(--st-now); font-weight: 700; }
.sky-night .strip-scale .sc-now { color: #f2c97a; }
.strip-scale .sc-key { color: var(--st-ink); font-weight: 600; }
.strip-scale .sc-nap { color: var(--st-nap-ink); font-weight: 600; }
.st-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--st-edge); font-size: 12.5px; color: var(--st-soft); }
.st-foot:not(:has(*)) { display: none; }
.strip-note { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0; border: 0; background: none; color: var(--st-ink); font: inherit; font-weight: 600; text-align: left; }
.strip-note .ico { width: 15px; height: 15px; flex: none; }
.strip-wx { margin: 0; }
.strip-wx a { color: inherit; }
@media (min-width: 760px) { .strip-track { height: 38px; } .st-nap { top: 10px; bottom: 9px; } }

/* ── Today's cards, stacked: each at its natural height, no carousel (review X-8, V-19) */
.today-stack { display: grid; gap: 16px; margin: 18px 16px 0; }
.today-stack .slot { display: block; }
.today-stack .card { min-height: 0; }
@media (min-width: 900px) { .today-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; margin-inline: 28px; } .today-stack .slot:first-child { grid-column: 1 / -1; } }
/* ── The deck (older pages) */
.deck-wrap { margin-top: 18px; }
.deck { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; padding: 4px 16px 18px; scrollbar-width: none; overscroll-behavior-x: contain; }
.deck::-webkit-scrollbar { display: none; }
.slot { flex: 0 0 min(86vw, 400px); scroll-snap-align: start; display: flex; transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .35s; }
.slot:not(.is-on) { transform: scale(.955); opacity: .78; }
.slot:last-child { margin-right: 16px; }
.card { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 340px; padding: 22px 20px 18px; border-radius: 20px; background: var(--surface);
  box-shadow: 0 1px 2px rgba(35, 22, 29, .05), 0 22px 44px -26px rgba(35, 22, 29, .42); overflow: hidden; }
.card > .card-actions, .card > .card-more { margin-top: auto; }
.card-kicker { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.card-kicker .ico { width: 15px; height: 15px; }
.card-title { margin-top: 10px; font: 550 24px/1.1 var(--display); letter-spacing: -.015em; color: var(--heading); }
.card-sub { margin-top: 8px; color: var(--soft); font-size: 16px; line-height: 1.45; }
.card-alt { margin-top: 12px; font-size: 14px; color: var(--soft); }
.card-more { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; margin-top: 16px; min-height: 50px; padding: 0 18px;
  border-radius: 20px; border: 0; background: rgba(35, 22, 29, .06); font-weight: 600; font-size: 16px; }
.card-more:active, .act:active, .game-tile:active, .plan-cta:active, .tile-main:active { transform: scale(.97); }

/* the pick: deep plum, cream type, the day's one decision */
.card-pick { background: var(--plum); color: var(--on-strong); }
.card-pick .card-kicker { color: var(--gold); }
.pick-title { margin-top: 12px; font: 550 clamp(28px, 7.4vw, 34px)/1.04 var(--display); letter-spacing: -.02em;  }
.pick-title button { background: none; border: 0; padding: 0; text-align: left; color: inherit; font: inherit; letter-spacing: inherit; }
.pick-when { margin-top: 8px; font-size: 16px; opacity: .78; }
.why { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 9px; }
.why li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; line-height: 1.35; }
.why .ico { width: 22px; height: 22px; padding: 4px; border-radius: 50%; margin-top: -1px; }
.why-plus .ico { background: var(--forest-tint); color: var(--positive); }
.why-minus .ico { background: var(--coral-tint); color: var(--coral); }
.why-focus .ico { background: var(--forest); color: #fff; }
.card-pick .why-plus .ico { background: rgba(169, 191, 147, .22); color: #cfe0bf; }
.card-pick .why-minus .ico { background: rgba(242, 201, 122, .2); color: var(--gold); }
.card-pick .why-focus .ico { background: var(--sage); color: var(--plum-deep); }
.card-pick .card-alt { color: rgba(255, 255, 255, .82); }
.card-pick .link { color: var(--on-strong); }
.plan-cta { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 16px; padding: 12px 14px; border: 0; border-radius: 20px; text-align: left;
  background: rgba(242, 201, 122, .16); color: #fbf3e6; box-shadow: inset 0 0 0 1px rgba(242, 201, 122, .35); }
.plan-cta > .ico:first-child { width: 34px; height: 34px; padding: 7px; border-radius: 12px; background: var(--gold); color: var(--plum-deep); }
.plan-cta > span:not(.ico) { flex: 1; display: grid; }
.plan-cta > .ico:last-child { opacity: .7; }
.plan-cta strong { font-size: 16px; }
.plan-cta small { font-size: 14px; opacity: .75; }
.card-actions { display: flex; gap: 8px; margin-top: 18px; padding-top: 4px; }
.act { min-height: 48px; min-width: 48px; padding: 0 14px; border-radius: 20px; border: 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-weight: 600; font-size: 14px; background: rgba(35, 22, 29, .06); transition: background .2s, transform .12s; }
.act .ico { width: 18px; height: 18px; }
.act-main { flex: 1; white-space: nowrap; background: var(--plum); color: #fff; }
.act.is-on { background: var(--forest); color: #fff; }
.card-pick .act { background: rgba(255, 255, 255, .16); color: var(--on-strong); }
.card-pick .act-main { background: var(--on-strong); color: var(--accent); }
.card-pick .act.is-on { background: var(--sage); color: var(--plum-deep); }
.card-night { background: #24151f; }

/* the question: warm gold, big tappable answers */
.card-ask { background: #fbefd2; }
.card-ask .checkin { padding: 0; background: none; border: 0; box-shadow: none; margin: 0; display: flex; flex-direction: column; flex: 1; }
.card-ask .checkin-q { font: 550 24px/1.15 var(--display); margin-top: 12px; color: var(--heading); }
.card-ask .checkin-opts { display: grid; gap: 8px; margin-top: 18px; }
.card-ask .checkin-opts .opt { min-height: 52px; border-radius: 20px; text-align: left; padding: 0 18px; background: var(--surface); border: 1px solid rgba(35, 22, 29, .08); font-size: 16px; }
.card-ask .checkin-opts .opt.is-on { background: var(--plum); color: #fff; }
.card-ask .checkin-foot { margin-top: auto; padding-top: 14px; font-size: 14px; color: var(--faint); }
.card-ask .reply { font: 550 20px/1.3 var(--display); color: var(--heading); }

.card-talk { background: #dfe9d9; }
.card-talk .card-kicker { color: var(--positive); }
.mini-games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.game-tile { display: grid; justify-items: center; align-content: start; gap: 4px; padding: 14px 6px 12px; border-radius: 20px; border: 0; background: var(--surface); font-size: 14px; font-weight: 600; line-height: 1.2; text-align: center; box-shadow: 0 6px 16px -10px rgba(31, 74, 58, .5); }
.game-tile span { font-size: 32px; line-height: 1.1; }
.game-tile small { font-weight: 500; color: var(--faint); font-size: 12px; }
.card-night .game-tile { background: rgba(255, 253, 249, .1); color: #fbf3e6; box-shadow: none; }

.card-radar { background: #f4e6ec; }
.card-radar .card-kicker { color: var(--accent); }
.card-radar .off { padding: 12px; }
.card-radar .heads-mini { margin-top: 12px; }
.card-radar .off { background: var(--surface); }
.heads-mini { display: grid; gap: 2px; width: 100%; margin-top: auto; padding: 14px 16px; border-radius: 20px; border: 0; text-align: left; background: var(--surface); border-left: 5px solid var(--forest); }
.heads-mini.tone-mist { border-left-color: var(--plum); }
.heads-mini.tone-sun { border-left-color: var(--gold); }
.heads-mini small { font-size: 12px; letter-spacing: .07em; text-transform: uppercase; font-weight: 600; color: var(--faint); }
.heads-mini span { font-size: 14px; color: var(--soft); }

.card-dinner { background: #fbe3d8; }
.card-dinner .card-kicker { color: var(--coral); }
.dinners { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 2px; counter-reset: d; }
.dinners li { display: flex; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px dashed rgba(201, 83, 59, .25); font: 550 20px/1.2 var(--display); color: var(--heading); }
.dinners li span { flex: none; width: 34px; font: 600 12px/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--coral); }

.card-village, .card-you { background: #efe7f1; }
.person-big { display: flex; gap: 14px; align-items: center; margin-top: 14px; }
.person-big .avatar { width: 58px; height: 58px; font-size: 24px; background: var(--plum); }
.person-big .card-title { margin-top: 0; }

/* dots: the current card names itself */
.dots { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: -4px; padding: 0 16px; flex-wrap: wrap; }
.dot { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 4px; border: 0; background: none; }
.dot span { width: 7px; height: 7px; border-radius: 6px; background: var(--line-2); transition: width .3s cubic-bezier(.2, .8, .2, 1), background .3s; }
.dot em { display: none; font-style: normal; font-size: 12px; font-weight: 600; color: var(--heading); }
.dot.is-on span { width: 20px; background: var(--plum); }
.dot.is-on em { display: inline; }

/* ── Shelves under the deck */
.shelf { margin-top: 26px; }
.shelf-head { display: grid; gap: 2px; padding: 0 20px; margin: 18px 0 10px; }
.shelf-head h2 { font: 550 20px/1.1 var(--display); color: var(--heading); letter-spacing: -.01em; }
.shelf-head p { font-size: 14px; color: var(--faint); }
.shelf .rec-list { margin: 0 16px; }
.tiles { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 16px 10px; scroll-padding-inline: 16px; scrollbar-width: none; }
.tile { flex: 0 0 216px; scroll-snap-align: start; display: flex; flex-direction: column; border-radius: 20px; background: var(--surface); box-shadow: 0 14px 30px -22px rgba(35, 22, 29, .5); overflow: hidden; }
.tile-landmark { background: #fbefd2; }
.tile-main { display: grid; gap: 6px; padding: 16px 16px 10px; text-align: left; border: 0; background: none; flex: 1; align-content: start; }
.tile-date { display: inline-grid; justify-items: center; width: 52px; padding: 6px 0; border-radius: 12px; background: var(--plum-deep); color: #fbf3e6; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.tile-date b { font: 550 24px/1 var(--display); letter-spacing: 0; }
.tile-occ { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.tile-main strong { font: 550 18px/1.2 var(--display); color: var(--heading); }
.tile-why { font-size: 14px; color: var(--soft); }
.tile-foot { display: flex; align-items: center; gap: 10px; padding: 0 16px 14px; flex-wrap: wrap; }
.tile-foot .link { font-size: 14px; }

/* list rows as an inset grouped list */
.rec-list { border-radius: 20px; overflow: hidden; background: var(--surface); box-shadow: 0 10px 26px -22px rgba(35, 22, 29, .5); gap: 0 !important; }
.rec-list .rec-row { border-radius: 0 !important; border: 0 !important; box-shadow: none !important; border-bottom: 1px solid var(--line) !important; background: transparent !important; }
.rec-list .rec-row:last-child { border-bottom: 0 !important; }
.rec-row:active { background: var(--sunk) !important; }

/* ── Ask */
.askbar { display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 0 6px 0 16px; border-radius: 20px; background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--line-2); margin: 0; width: 100%; border: 0; text-align: left; color: var(--faint); font-size: 16px; }
.askbar:focus-within { box-shadow: inset 0 0 0 2px var(--plum); }
.askbar-ico { color: var(--accent); display: inline-flex; }
.askbar input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; color: var(--ink); min-height: 52px; outline: none; }
.askbar-go { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--plum); color: #fff; display: grid; place-items: center; }
.view > .ask-field { width: calc(100% - 32px); margin: 16px auto 0; }
.page-head + .ask-field { margin-top: 4px; margin-bottom: 8px; }
a.sky-knows { text-decoration: none; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 6px; }
.qchip { min-height: 40px; padding: 0 14px; border-radius: 20px; border: 0; background: var(--plum-tint); color: var(--accent); font-weight: 500; font-size: 14px; }
.answer { margin-top: 16px; }
.answer-title { font: 550 20px/1.2 var(--display); color: var(--heading); }
.answer-lead { margin: 8px 0 12px; color: var(--soft); }
.route { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 54px; padding: 0 18px; margin-top: 10px; border-radius: 20px; border: 0; background: var(--forest-tint); color: var(--positive); font-weight: 600; text-align: left; }
.elis { display: grid; gap: 18px; }
.elis .knows { margin-top: 8px; }

/* ── Sheets */
.sheet { left: 0; right: 0; bottom: 0; max-height: 90dvh; padding: 8px 20px calc(28px + env(safe-area-inset-bottom)); border-radius: 30px 30px 0 0; overscroll-behavior: contain;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 -20px 50px -20px rgba(35, 22, 29, .4); }
.sheet.no-anim { animation: none; }
.grab { position: sticky; top: 0; z-index: 3; display: grid; place-items: center; height: 26px; margin: 0 -20px 4px; cursor: grab; touch-action: none; background: var(--bg); }
.grab span { width: 42px; height: 5px; border-radius: 3px; background: var(--line-2); }
.toast { bottom: calc(92px + env(safe-area-inset-bottom)); }

/* ── Larger screens: a vertical dock, a centred column, and the child's panel always open */
@media (min-width: 900px) {
  .dock { left: 16px; right: auto; top: 16px; bottom: 16px; width: 84px; height: auto; flex-direction: column; justify-content: flex-start; gap: 6px; padding: 18px 0; border-radius: 30px; }
  .dock-brand { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 16px; border-radius: 20px; background: rgba(251, 243, 230, .1); }
  .dock-tab { flex: none; width: 66px; height: 64px; border-radius: 22px; font-size: 11.5px; }
  .view { left: 116px; padding-bottom: 60px; }
  .view > * { max-width: 760px; }
  .view > :not(.sky):not(.deck-wrap):not(.shelf):not(.today-stack) { margin-left: 28px; margin-right: 28px; }
  .sky { margin: 16px 16px 0; border-radius: 34px; padding: 30px 32px 22px; }
  .deck { padding-inline: 16px; }
  .slot { flex-basis: 360px; }
  .sheet { left: auto; right: 16px; top: 16px; bottom: 16px; width: min(520px, calc(100vw - 32px)); max-height: none; border-radius: 20px; padding-top: 10px; }
  .grab { display: none; }
  .toast { bottom: 28px; }
}
/* the child's modal: ask + what we know. A bottom sheet on phones, a large centred modal on bigger screens */
.elis-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding-right: 48px; }
.elis-head .orb-face { width: 52px; height: 52px; flex: none; }
.elis-head p { font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); }
.elis-head h2 { font: 550 32px/1 var(--display); color: var(--heading); }
.elis .knows-head { display: none; }
@media (min-width: 900px) {
  .sheet.sheet-elis { left: 50%; top: 50%; right: auto; bottom: auto; transform: translate(-50%, -50%); width: min(1040px, calc(100vw - 64px)); max-height: min(820px, calc(100dvh - 64px)); padding: 30px 32px; border-radius: 20px; animation: none; }
  .sheet-elis .elis { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 36px; align-items: start; }
  .sheet-elis .elis-knows { padding-left: 32px; border-left: 1px solid var(--line); }
  .sheet-elis .sheet-close { top: 22px; right: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .orb-ring { animation: none; }
  .slot, .sheet, .dock-tab, .dock-tab .ico { transition: none; }
  .sheet, .sheet-back { animation: none; }
}

/* collapsing title bar: the big title scrolls away, a compact one docks at the top */
.titlebar { position: fixed; z-index: 35; top: 0; left: 0; right: 0; height: calc(58px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 76px 0 20px;
  display: flex; align-items: center; font: 600 18px/1 var(--display); color: var(--heading);
  background: var(--bg); box-shadow: 0 1px 0 var(--line);
  opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .2s, transform .2s; }
.scrolled .titlebar { opacity: 1; transform: none; }
@media (min-width: 900px) { .titlebar { display: none; } } /* no ghost header on desktop (review V-12) */

/* ── Kitchen: a week of plates and one basket */
.kitchen2 { display: grid; gap: 18px; margin: 0 16px; }
.week { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.day { display: grid; justify-items: center; gap: 4px; padding: 10px 4px 10px; border-radius: 20px; border: 0; background: var(--surface); box-shadow: 0 8px 20px -16px rgba(35, 22, 29, .5); transition: transform .2s, background .2s; }
.day small { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.day-plate { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; font-size: 24px; background: var(--surface); box-shadow: 0 3px 8px -3px rgba(35, 22, 29, .3); }
.day em { font-style: normal; font-size: 12px; font-weight: 500; line-height: 1.2; text-align: center; color: var(--soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.day.is-on { background: var(--coral); transform: translateY(-3px); }
.day.is-on small, .day.is-on em { color: #fff; }
.plate { margin-top: 12px; padding: 22px 20px 18px; border-radius: 20px; background: #fbe3d8; box-shadow: 0 22px 44px -30px rgba(201, 83, 59, .55); }
.plate-top { display: flex; gap: 16px; align-items: center; }
.plate-dish { flex: none; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; font-size: 40px; background: var(--surface); box-shadow: 0 10px 24px -10px rgba(35, 22, 29, .4); }
.plate .card-kicker { color: var(--coral); }
.plate-title { margin-top: 6px; font: 550 24px/1.1 var(--display); color: var(--heading); letter-spacing: -.015em; }
.plate-for, .plate-talk { display: grid; gap: 2px; margin-top: 16px; padding: 12px 14px; border-radius: 20px; background: rgba(255, 253, 249, .75); font-size: 16px; color: var(--soft); }
.plate-for strong, .plate-talk strong { color: var(--ink); font-size: 14px; }
.plate-talk { display: flex; gap: 10px; background: var(--forest-tint); color: var(--positive); }
.plate-talk span { display: grid; gap: 2px; }
.plate-talk .ico { margin-top: 2px; }
.steps { list-style: none; counter-reset: s; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: flex; gap: 12px; font-size: 16px; line-height: 1.4; }
.steps li::before { content: counter(s); flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--plum-deep); color: #fbf3e6; font-size: 14px; font-weight: 600; }
.basket { padding: 20px; border-radius: 20px; background: var(--surface); box-shadow: 0 20px 44px -32px rgba(35, 22, 29, .5); }
.basket-head { position: relative; display: flex; gap: 14px; align-items: center; margin-bottom: 6px; }
.ring { width: 64px; height: 64px; flex: none; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: var(--sunk); stroke-width: 7; }
.ring .ring-on { stroke: var(--forest); stroke-linecap: round; transition: stroke-dashoffset .5s cubic-bezier(.2, .8, .2, 1); }
.ring-n { position: absolute; left: 0; top: 0; width: 64px; height: 64px; display: grid; place-items: center; align-content: center; font: 600 18px/1 var(--display); color: var(--positive); }
.ring-n small { font: 500 11px/1 var(--ui); color: var(--faint); }
.basket-head h2 { font: 550 20px/1.15 var(--display); color: var(--heading); }
.basket-head p { font-size: 14px; color: var(--faint); margin-top: 2px; }
.basket h3 { margin: 18px 0 4px; font: 600 12px/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.basket ul { list-style: none; margin: 0; padding: 0; }
.basket .tick { min-height: 46px; border-bottom: 1px solid var(--line); }
.basket .tick.is-on .what { text-decoration: line-through; color: var(--faint); }
.basket .x { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--coral); background: var(--coral-tint); padding: 2px 8px; border-radius: 12px; }
@media (min-width: 900px) { .kitchen2 { margin: 0 28px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; } .basket { position: sticky; top: 74px; } }

/* ── Grow: pick an area, see what's lined up */
.seg-domains { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 !important; padding: 2px 16px 6px; }
@media (min-width: 900px) { .seg-domains { padding: 2px 28px 6px; } }
.sd { position: relative; flex: none; display: flex; align-items: center; gap: 6px; min-height: 46px; padding: 0 16px 0 10px; border-radius: 20px; border: 0; background: var(--surface); font-weight: 600; font-size: 14px; box-shadow: 0 6px 16px -12px rgba(35, 22, 29, .5); }
.sd span { font-size: 20px; }
.sd.is-on { background: var(--forest); color: #fff; }
.sd.is-focus::after { content: ''; position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.garden { margin-top: 12px !important; padding: 22px 20px 20px; border-radius: 20px; background: #dfe9d9; box-shadow: 0 22px 44px -32px rgba(31, 74, 58, .6); }
.garden-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.garden-head > div { flex: 1; min-width: 140px; }
.garden-head .card-title { margin-top: 2px; }
.garden .card-kicker { color: var(--positive); }
.garden-ico { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 20px; background: var(--surface); font-size: 32px; box-shadow: 0 8px 18px -10px rgba(31, 74, 58, .5); }
.garden .toggle { min-height: 42px; padding: 0 16px; border-radius: 20px; border: 0; background: rgba(31, 74, 58, .1); color: var(--positive); font-weight: 600; font-size: 14px; }
.garden .toggle.is-on { background: var(--forest); color: #fff; }
.garden-obs { margin-top: 14px; padding: 12px 14px; border-radius: 20px; background: rgba(255, 253, 249, .7); color: var(--soft); font-size: 16px; }
.garden .mini-games { margin-top: 16px; }
.garden .tips { margin-top: 12px; }
.view > .block { margin-top: 30px; }

/* ── Village: visibility as one big switch, people as cards you flick through */
.privacy { padding: 20px !important; border-radius: 30px !important; background: var(--plum-deep) !important; color: #fbf3e6; border: 0 !important; }
.privacy .block-title { color: #fbf3e6 !important; }
.privacy .block-sub, .privacy .interests p, .privacy .share p, .privacy .fine { color: rgba(251, 243, 230, .72) !important; }
.privacy .ico { color: var(--gold); }
.privacy .opt { background: rgba(255, 253, 249, .1); border-color: transparent; color: #fbf3e6; }
.privacy .opt.is-on { background: var(--gold); color: var(--plum-deep); }
.people { display: flex !important; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 12px -16px 0; padding: 4px 16px 14px; scrollbar-width: none; scroll-padding-inline: 16px; }
.person { flex: 0 0 min(80vw, 320px); scroll-snap-align: start; display: flex !important; flex-direction: column; gap: 12px; padding: 20px !important; border-radius: 28px !important; background: #efe7f1; border: 0 !important; box-shadow: 0 18px 36px -28px rgba(35, 22, 29, .5); }
.person .avatar { width: 62px; height: 62px; font-size: 24px; background: var(--plum); }
.person-body { display: flex; flex-direction: column; flex: 1; }
.person-body h3 { font: 550 24px/1.1 var(--display); color: var(--heading); }
.person-body h3 small { font: 500 14px/1 var(--ui); color: var(--faint); margin-left: 6px; }
.person-blurb { margin-top: 8px; font: 400 16px/1.45 var(--ui); color: var(--soft); }
.person-why { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.person-act { margin-top: auto !important; padding-top: 14px; display: flex; align-items: center; gap: 14px; }
.person-act .btn { min-height: 48px; padding: 0 22px; background: var(--plum); color: #fff; }
.privacy .switch span { background: rgba(255, 253, 249, .22); }
.privacy .switch input:checked + span { background: var(--gold); }

/* ── Explore lenses */
.lenses { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.lens { display: grid; justify-items: center; gap: 4px; padding: 12px 4px; border-radius: 20px; border: 0; background: var(--surface); font-weight: 600; font-size: 14px; box-shadow: 0 6px 16px -12px rgba(35, 22, 29, .5); transition: transform .15s; }
.lens span { font-size: 24px; line-height: 1; }
.lens.is-on { background: var(--plum-deep); color: #fbf3e6; transform: translateY(-2px); }
.lens:active { transform: scale(.96); }
@media (min-width: 900px) { .lenses { grid-template-columns: repeat(9, 1fr); } }

/* ── Accessibility pass (4 Nov): tap targets ≥ 44px wide, AA contrast in the Kitchen */
.dot { min-width: 32px; justify-content: center; }
.day.is-on { background: var(--coral); }
.basket .x { color: #8e3523; }
.sheet:focus { outline: none; }
.view:focus { outline: none; }
.sky-night .sky-sun { display: none; }

/* day strip: bedtime marker, scale positioned by real hours, a note line */

/* ── One-offs look like tickets; regular sessions like a habit */
.stub { align-self: stretch; display: grid; place-items: center; align-content: center; width: 54px; min-height: 58px; margin: -14px 0 -14px -16px; padding: 0 4px;
  background: var(--gold); color: var(--plum-deep); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  border-right: 2px dashed rgba(59, 31, 43, .28); }
.stub b { font: 700 22px/1 var(--display); letter-spacing: -.02em; }
.rec-event { background: #fff8e6 !important; }
.badge-oneoff { display: inline-block; width: max-content; margin-bottom: 4px; padding: 2px 8px; border-radius: 6px; background: var(--plum-deep); color: #fbf3e6;
  font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.rec-main { display: grid; }
.rec-session .rec-kind { background: var(--forest-tint); color: var(--positive); }
.card-pick.is-event { padding-top: 22px; }
.pick-stamp { position: absolute; top: 18px; right: 18px; display: grid; justify-items: center; width: 66px; padding: 8px 0 7px; border-radius: 12px;
  background: var(--gold); color: var(--plum-deep); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transform: rotate(4deg); }
.pick-stamp b { font: 700 24px/1 var(--display); letter-spacing: -.02em; }
.pick-stamp em { font-style: normal; font-size: 8.5px; letter-spacing: .06em; margin-top: 3px; text-align: center; padding: 0 4px; line-height: 1.15; }
.card-pick.is-event .pick-head { padding-right: 74px; }
.tile .badge-oneoff { margin: 2px 0 0; }
.tile-main { grid-template-columns: auto 1fr; }
.tile-main > :not(.tile-date):not(.badge-oneoff) { grid-column: 1 / -1; }
.tile-main .badge-oneoff { align-self: center; justify-self: start; }

/* ── Grow: what's coming — season tiles and an age ribbon */
.coming { margin: 30px 16px 0; }
.coming-head h2 { font: 550 24px/1.1 var(--display); color: var(--heading); letter-spacing: -.015em; }
.coming-head p { margin-top: 6px; color: var(--soft); font-size: 16px; max-width: 34em; }
.season { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 16px -16px 0; padding: 2px 16px 6px; }
.season-tile { flex: 0 0 148px; display: grid; gap: 4px; align-content: start; padding: 14px; min-height: 150px; border: 0; border-radius: 20px; background: var(--plum-deep); color: #fbf3e6; text-align: left; }
.season-tile:nth-child(2n) { background: var(--forest); }
.season-emo { font-size: 32px; line-height: 1; margin-bottom: 8px; }
.season-tile small { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.season-tile strong { font: 550 18px/1.15 var(--display); }
.ribbon { margin-top: 18px; padding: 14px 14px 14px; border-radius: 20px; background: var(--surface); box-shadow: 0 1px 0 var(--line); }
.ribbon-row { display: grid; grid-template-columns: minmax(0, 52%) minmax(0, 1fr); gap: 10px; align-items: center; width: 100%; }
.ribbon-scale { position: relative; height: 22px; }
.ribbon-scale span { position: absolute; top: 4px; transform: translateX(-50%); font-size: 12px; font-weight: 600; color: var(--faint); }
.ribbon-now-label { position: absolute; left: var(--now); top: 2px; transform: translateX(-50%); font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--coral); padding: 2px 6px; border-radius: 6px; }
.ribbon-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.band { min-height: 52px; padding: 6px 10px 6px 8px; border: 0; border-radius: 20px; text-align: left; background: var(--bg); }
.band-label { display: grid; grid-template-columns: 26px 1fr; column-gap: 6px; align-items: center; }
.band-label > span { grid-row: span 2; font-size: 20px; }
.band-label b { font-size: 14px; font-weight: 600; line-height: 1.2; color: var(--ink); }
.band-label small { font-size: 12px; color: var(--faint); font-weight: 500; }
.band-track { position: relative; height: 14px; border-radius: 6px; background: rgba(35, 22, 29, .05);
  background-image: linear-gradient(var(--coral), var(--coral)); background-size: 2px 100%; background-repeat: no-repeat; background-position: var(--now) 0; }
.band-track i { position: absolute; top: 0; bottom: 0; border-radius: 6px; }
.band.tone-mist .band-track i { background: var(--plum); }
.band.tone-breeze .band-track i { background: var(--forest); }
.band.tone-sun .band-track i { background: var(--gold); }
.band:not(.is-now) .band-track i { opacity: .4; }
.band.is-now { background: var(--sunk); }
.ribbon-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 12px; font-size: 12px; color: var(--faint); }
.ribbon-key .k { display: inline-block; width: 12px; height: 12px; border-radius: 6px; margin-right: -6px; }
.k-mist { background: var(--plum); } .k-breeze { background: var(--forest); } .k-sun { background: var(--gold); }
.heads-sheet { padding-top: 6px; }
.heads-big { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 20px; font-size: 40px; background: var(--forest-tint); margin-bottom: 14px; }
.heads-sheet.tone-mist .heads-big { background: var(--plum-tint); }
.heads-sheet.tone-sun .heads-big { background: var(--gold-tint); }
.heads-lede { margin: 10px 0 16px; font-size: 18px; line-height: 1.45; color: var(--ink); }
.helps { list-style: none; counter-reset: h; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.helps li { counter-increment: h; display: flex; gap: 12px; padding: 12px 14px; border-radius: 20px; background: var(--surface); font-size: 16px; line-height: 1.4; }
.helps li::before { content: counter(h); flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--forest); color: #fff; font-size: 14px; font-weight: 700; }
.heads-ask { display: flex; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: 20px; background: var(--gold-tint); font-size: 14px; }
@media (min-width: 900px) { .coming { margin: 34px 28px 0; } .season { margin: 16px -28px 0; padding: 2px 28px 6px; } }
.view.enter > * { animation: enter .2s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .view.enter > * { animation: none; } }
.band-track { background-image: none; }
.band-track::after { content: ''; position: absolute; top: -3px; bottom: -3px; left: var(--now); width: 2px; margin-left: -1px; border-radius: 1px; background: var(--coral); box-shadow: 0 0 0 1.5px var(--surface); z-index: 1; }

/* ── Sleep garden */
.garden-sleep { background: #e4e3f1; }
.garden-sleep .card-kicker { color: #3d3a73; }
.garden-sleep .garden-ico { background: #2c2a55; }
.rhythm { display: grid; gap: 6px; margin-top: 16px; }
.rt { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 8px 10px 8px 16px; border-radius: 20px; background: var(--surface); }
.rt-l { display: grid; font-weight: 600; font-size: 16px; }
.rt-l small { font-weight: 500; font-size: 12px; color: var(--faint); }
.rt input { font: 550 20px/1 var(--display); color: #2c2a55; border: 0; background: #f1f0f8; border-radius: 12px; padding: 8px 10px; min-height: 44px; }
.rt-naps { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.rt-naps .opt.is-on, .nap-log .opt.is-on { background: #2c2a55; border-color: #2c2a55; }
.sleep-fact { display: flex; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 20px; background: rgba(255, 253, 249, .7); font-size: 14px; color: var(--soft); }
.sleep-fact small { display: block; margin-top: 4px; font-size: 12px; }
.sleep-fact .ico { color: #3d3a73; margin-top: 2px; }
.move { margin-top: 16px; padding: 18px; border-radius: 20px; background: #2c2a55; color: #f2f0fb; }
.move h3 { font: 550 20px/1.2 var(--display); }
.move p { margin-top: 8px; font-size: 16px; color: rgba(242, 240, 251, .82); }
.move .signs { margin: 10px 0 0; padding-left: 18px; font-size: 14px; color: rgba(242, 240, 251, .82); }
.move .move-how { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .08); }
.move .act-main { margin-top: 14px; width: 100%; background: #f2c97a; color: #2c2a55; }
.move .fine, .move .link { color: rgba(242, 240, 251, .7); }
.move-steps { display: flex; gap: 4px; margin-bottom: 12px; }
.move-steps span { flex: 1; height: 8px; border-radius: 6px; background: rgba(255, 255, 255, .16); }
.move-steps span.done { background: #f2c97a; }
.move-steps span.now { box-shadow: 0 0 0 2px #f2f0fb; }
.nap-log { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 14px 0 10px; }
.nap-log p { width: 100%; margin: 0 0 2px; font-weight: 600; color: #f2f0fb; }
.nap-log .opt { background: rgba(255, 255, 255, .1); border-color: transparent; color: #f2f0fb; }
.nap-log .opt.is-on { background: #f2c97a; color: #2c2a55; }
.tip-big summary { font-size: 16px; }
.tip-emo { font-size: 24px; }
.garden-sleep .tip { margin-top: 10px; }
.move-more { margin-top: 10px; } .move-more summary { cursor: pointer; font-weight: 600; min-height: 40px; display: flex; align-items: center; }
.move-more ul { margin: 4px 0 0; padding-left: 18px; font-size: 14px; color: rgba(242, 240, 251, .82); display: grid; gap: 6px; }
.helpwith { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.hw { display: grid; gap: 4px; align-content: start; padding: 16px; min-height: 128px; border: 0; border-radius: 20px; background: var(--sunk); text-align: left; }
.hw span { font-size: 32px; line-height: 1; margin-bottom: 6px; }
.hw strong { font: 550 18px/1.15 var(--display); color: var(--heading); }
.hw small { font-size: 14px; color: var(--soft); }
.hw:nth-child(1) { background: var(--gold-tint); } .hw:nth-child(2) { background: var(--coral-tint); } .hw:nth-child(3) { background: var(--forest-tint); } .hw:nth-child(4) { background: #e4e3f1; }

/* Headings in the "hands" look: Outfit 550, tight tracking */
.display, .sky-greet, .pick-title, .card-title, .block-title, .sheet-title, .shelf-head h2, .coming-head h2, .plate-title, .tile-main strong, .dinners li, .basket-head h2, .elis-head h2, .person-body h3, .season-tile strong, .hw strong, .move h3, .answer-title, .hero-title, .heads-sheet .sheet-title { letter-spacing: -.035em; font-weight: 550; }

/* Wide screens: one centred column (no stranded content), with the child's orb sitting on the column, not the window edge */
@media (min-width: 900px) {
  .view > * { max-width: 1100px; margin-left: auto !important; margin-right: auto !important; }
  .view > :not(.sky):not(.deck-wrap):not(.shelf) { width: calc(100% - 56px); }
  .view > .sky { width: calc(100% - 32px); }
  .orb { right: max(16px, calc((100vw - 116px - 1100px) / 2 + 30px)); top: 30px; }
  .titlebar { padding-left: max(28px, calc((100vw - 116px - 1100px) / 2 + 28px)); }
}


@media (min-width: 1100px) {
  .view { right: 396px; }
  .orb, .view > .ask-field { display: none; }
  .sky-in { padding-right: 0; }
  .titlebar { right: 396px; }
  .aside { display: block; position: fixed; top: 16px; right: 16px; bottom: 16px; width: 364px; overflow-y: auto; padding: 22px 20px 24px;
    border-radius: 20px; background: var(--surface); box-shadow: 0 20px 50px -30px rgba(35, 22, 29, .45); scrollbar-width: thin; z-index: 30; }
  .aside-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
  .aside-head .orb-face { width: 48px; height: 48px; flex: none; }
  .aside-head p { font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); }
  .aside-head h2 { font: 550 24px/1 var(--display); letter-spacing: -.035em; color: var(--heading); }
  .aside .knows { margin-top: 22px; }
  .aside .knows-head { display: none; }
  .aside .helpwith { grid-template-columns: 1fr 1fr; }
  .aside .hw { min-height: 110px; padding: 14px; }
}

/* ── Detail: a big card that grows out of what you tapped */
.view { transition: transform .45s cubic-bezier(.16, 1, .3, 1), filter .45s; transform-origin: 50% 30%; }
.view.behind { transform: scale(.965); filter: saturate(.85); }
.sheet-back { transition: opacity .3s; }
.sheet-back.out { opacity: 0; }
.sheet.sheet-detail { inset: 0; margin: 0; width: auto; max-height: none; height: 100%; padding: 0; border-radius: 0; overflow-y: auto; background: var(--bg); animation: none; transform-origin: 0 0; box-shadow: 0 30px 80px -30px rgba(35, 22, 29, .55); }
.sheet-detail .grab { display: none; }
@media (min-width: 900px) {
  .sheet.sheet-detail { inset: 0; margin: auto; width: min(1040px, calc(100vw - 64px)); height: min(860px, calc(100dvh - 56px)); border-radius: 20px; }
}
.dt { min-height: 100%; display: flex; flex-direction: column; }
.dt-hero { position: relative; padding: calc(22px + env(safe-area-inset-top)) 22px 24px; background: var(--plum-deep); color: #fbf3e6; }
.dt-session .dt-hero { background: var(--forest); }
.dt-walk .dt-hero { background: #2f5a45; }
.dt-event .dt-hero { background: #3b1f2b; }
.dt-close { position: absolute; top: calc(16px + env(safe-area-inset-top)); right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; background: var(--surface); color: var(--heading); z-index: 2; } /* one close button everywhere (review V-22) */
.dt-emo { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 20px; background: rgba(255, 253, 249, .12); font-size: 40px; margin-bottom: 16px; }
.dt-stamp { display: inline-grid; justify-items: center; width: 78px; padding: 9px 0 8px; margin-bottom: 16px; border-radius: 16px; background: var(--gold); color: var(--plum-deep); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transform: rotate(-3deg); }
.dt-stamp b { font: 550 30px/1 var(--display); letter-spacing: -.035em; }
.dt-stamp em { font-style: normal; font-size: 9px; margin-top: 3px; text-align: center; line-height: 1.15; padding: 0 4px; }
.dt-kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); padding-right: 56px; }
.dt-title { margin-top: 8px; font: 550 clamp(30px, 6vw, 44px)/1.04 var(--display); letter-spacing: -.035em; padding-right: 40px; }
.dt-chips { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dt-chips li { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 20px; background: rgba(255, 253, 249, .12); font-size: 14px; font-weight: 500; }
.dt-body { flex: 1; display: grid; gap: 22px; padding: 22px; }
.dt-desc { font-size: 18px; line-height: 1.5; color: var(--ink); margin-bottom: 18px; }
.dt-h { font: 550 20px/1.2 var(--display); letter-spacing: -.03em; color: var(--heading); margin-bottom: 12px; }
.dt-main .plan { margin-top: 16px; }
.dt-alt { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: center; width: 100%; margin-top: 16px; padding: 14px 16px; border: 0; border-radius: 20px; background: var(--forest-tint); color: var(--positive); text-align: left; }
.dt-alt span { grid-column: 1; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.dt-alt strong { grid-column: 1; font: 550 18px/1.2 var(--display); letter-spacing: -.03em; }
.dt-alt small { grid-column: 1; font-size: 14px; opacity: .85; }
.dt-alt .ico { grid-column: 2; grid-row: 1 / span 3; }
.dt-side { display: grid; gap: 14px; align-content: start; }
.dt-regulars { display: flex; gap: 10px; padding: 14px; border-radius: 20px; background: var(--plum-tint); font-size: 14px; }
.dt-regulars .ico { color: var(--accent); flex: none; }
.dt-facts { margin: 0; padding: 4px 16px; border-radius: 20px; background: var(--surface); display: grid; }
.dt-facts div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.dt-facts div:last-child { border-bottom: 0; }
.dt-facts dt { color: var(--faint); font-weight: 600; font-size: 14px; }
.dt-facts dd { margin: 0; }
.dt-bar { position: sticky; bottom: 0; display: flex; gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); }
@media (min-width: 900px) {
  .dt-hero { padding: 34px 40px 30px; display: grid; grid-template-columns: auto 1fr; column-gap: 22px; align-items: end; }
  .dt-hero > .dt-emo, .dt-hero > .dt-stamp { grid-row: 1 / span 3; margin: 0; align-self: center; }
  .dt-close { top: 22px; right: 22px; }
  .dt-body { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 34px; padding: 30px 40px; }
  .dt-bar { padding: 14px 40px; border-radius: 0 0 34px 34px; }
}
@media (prefers-reduced-motion: reduce) { .view { transition: none; } .view.behind { transform: none; } }
.dt-bar .act-main { flex: 1; min-width: 0; }
.dt-bar .act:not(.act-main) { flex: none; padding: 0 14px; }
@media (max-width: 899px) { .dt-bar .lbl { display: none; } }

/* ── Sleep: tonight's wind-down and bite-sized cards */
.wind { margin: 14px 16px 0; padding: 20px; border-radius: 20px; background: #2c2a55; color: #f2f0fb; }
.wind-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.wind-head .card-kicker { color: #f2c97a; }
.wind-head h2 { font: 550 24px/1.1 var(--display); letter-spacing: -.035em; margin-top: 4px; }
.wind-n { font: 550 18px/1 var(--display); padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .1); }
.wind-list { list-style: none; margin: 0; padding: 0; position: relative; }
.wind-list::before { content: ''; position: absolute; left: 84px; top: 22px; bottom: 22px; width: 2px; background: rgba(255, 255, 255, .14); }
.ws { position: relative; display: grid; grid-template-columns: 56px 44px 1fr; gap: 12px; align-items: center; padding: 5px 0; }
.ws-time { font-size: 14px; font-weight: 600; color: rgba(242, 240, 251, .7); text-align: right; }
.ws-tick { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; font-size: 20px; background: #3d3a73; color: #f2f0fb; transition: background .2s, transform .15s; }
.ws-tick:active { transform: scale(.9); }
.ws.is-done .ws-tick { background: #f2c97a; color: #2c2a55; font-weight: 700; }
.ws.is-done .ws-main strong { opacity: .6; text-decoration: line-through; text-decoration-color: rgba(242, 240, 251, .4); }
.ws-main { display: grid; gap: 4px; text-align: left; border: 0; background: none; color: inherit; min-height: 44px; align-content: center; padding: 0; }
.ws-main strong { font-size: 16px; font-weight: 600; }
.ws-main small { font-size: 14px; line-height: 1.4; color: rgba(242, 240, 251, .78); }
.ws-main small em { display: block; font-style: normal; font-size: 12px; margin-top: 3px; color: #f2c97a; }
.ws-moon { background: transparent; font-size: 24px; }
.wind .link { margin-top: 12px; color: rgba(242, 240, 251, .75); }
.bites { margin: 22px 0 0 !important; }
.bites-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 16px; }
.bites-head h2 { font: 550 20px/1.15 var(--display); letter-spacing: -.035em; color: var(--heading); }
.bite-rail { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; padding: 12px 16px 8px; scrollbar-width: none; }
.bite { flex: 0 0 200px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; padding: 16px; min-height: 196px; border-radius: 20px; background: var(--surface); box-shadow: 0 1px 0 var(--line); }
.bite:nth-child(4n+1) { background: #e4e3f1; } .bite:nth-child(4n+2) { background: var(--gold-tint); } .bite:nth-child(4n+3) { background: var(--forest-tint); } .bite:nth-child(4n) { background: var(--plum-tint); }
.bite-emo { font-size: 32px; line-height: 1; margin-bottom: 6px; }
.bite h3 { font: 550 18px/1.15 var(--display); letter-spacing: -.03em; color: var(--heading); }
.bite p { font-size: 14px; line-height: 1.4; color: var(--ink); }
.bite small { margin-top: auto; font-size: 12px; color: var(--faint); }
.bite small a { color: inherit; }
@media (min-width: 900px) { .wind { margin: 14px 28px 0; } .bites-head { padding: 0 28px; } .bite-rail { padding: 12px 28px 8px; scroll-padding-inline: 28px; } }
.card-wind { padding: 0; background: #2c2a55; }
.card-wind .wind { margin: 0 !important; width: auto !important; border-radius: 20px; flex: 1; }

/* ── Grow hub */
.gday { display: grid; gap: 10px; padding: 18px; border-radius: 20px; background: #2c2a55; color: #f2f0fb; text-decoration: none; }
.gday-k { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #f2c97a; }
.gday-k em { font-style: normal; font-weight: 500; letter-spacing: 0; text-transform: none; color: rgba(242, 240, 251, .6); margin-left: 6px; }
.gday-row { display: flex; gap: 8px; flex-wrap: wrap; }
.gpill { display: grid; grid-template-columns: auto auto; column-gap: 6px; align-items: center; padding: 8px 12px; border-radius: 20px; background: rgba(255, 255, 255, .09); font-size: 18px; }
.gpill b { font: 550 18px/1 var(--display); letter-spacing: -.03em; }
.gpill small { grid-column: 2; font-size: 12px; color: rgba(242, 240, 251, .65); }
.gday-note { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: #f2c97a; }
.areas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px !important; }
.area { position: relative; display: grid; align-content: start; gap: 3px; min-height: 132px; padding: 16px; border-radius: 20px; text-decoration: none; color: var(--heading); transition: transform .15s; }
.area:active { transform: scale(.97); }
.area:last-child:nth-child(odd) { grid-column: 1 / -1; }
.area-ico { font-size: 30px; line-height: 1; margin-bottom: 8px; } /* in the flow, so nothing can sit on top of it */
.area-badge { justify-self: start; margin: 0 0 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; background: var(--surface); }
.area strong { font: 550 20px/1.1 var(--display); letter-spacing: -.035em; }
.area small { font-size: 14px; color: var(--soft); }
.tint-forest { background: var(--forest-tint); } .tint-gold { background: var(--gold-tint); } .tint-plum { background: var(--plum-tint); } .tint-coral { background: var(--coral-tint); }
.tint-night { background: #2c2a55; color: #f2f0fb; } .tint-night small { color: rgba(242, 240, 251, .7); } .tint-night .area-badge { background: #f2c97a; color: #2c2a55; }
.garden.tint-gold { background: var(--gold-tint); } .garden.tint-plum { background: var(--plum-tint); } .garden.tint-coral { background: var(--coral-tint); }
.told { margin-top: 30px !important; }
.told-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.told h2 { font: 550 24px/1.1 var(--display); letter-spacing: -.035em; color: var(--heading); }
.told-list { list-style: none; margin: 14px 0 0; padding: 0; position: relative; }
.told-list::before { content: ''; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 2px; background: var(--line-2); }
.told-list li { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 6px 0; }
.told-emo { flex: none; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 4px var(--bg); font-size: 20px; }
.told-list small { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.told-list p { font-size: 16px; color: var(--ink); margin-top: 2px; }
.back { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px; min-height: 44px; padding: 0 14px 0 10px; border-radius: 20px; background: var(--surface); color: var(--heading); font-weight: 600; text-decoration: none; }
.back .ico { transform: rotate(180deg); width: 16px; height: 16px; }

.area-switch { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px !important; }
.area-switch a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 20px; background: var(--surface); color: var(--ink); font-weight: 500; text-decoration: none; font-size: 14px; }
@media (min-width: 900px) { .areas { grid-template-columns: repeat(5, 1fr); } .area:last-child:nth-child(odd) { grid-column: auto; min-height: 132px; } }
.card-week { background: var(--forest-tint); }
.card-week .card-kicker { color: var(--positive); }
.week-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; }
.week-list li { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; }
.wk-day { display: grid; justify-items: center; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--positive); }
.wk-day b { font: 550 18px/1 var(--display); letter-spacing: -.03em; color: var(--heading); }
.wk-pick { display: grid; text-align: left; min-height: 44px; padding: 6px 12px; border: 0; border-radius: 12px; background: var(--surface); }
.wk-pick strong { font-size: 14px; font-weight: 600; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-pick small { font-size: 12px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-pick.is-planned { background: var(--forest); color: #fff; } .wk-pick.is-planned small { color: rgba(255,255,255,.8); }
.wk-free { color: var(--faint); font-size: 14px; display: flex; align-items: center; }

/* ── Ask answers: support contacts, heads-ups, tips */
.ans-support { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 8px; }
.ans-support li { display: grid; gap: 2px; padding: 12px 14px; border-radius: 20px; background: var(--surface); box-shadow: 0 1px 0 var(--line); }
.ans-support strong { font-weight: 600; }
.ans-support .tel { font: 550 18px/1.2 var(--display); letter-spacing: -.02em; color: var(--positive); user-select: all; }
.ans-support a { font-size: 14px; color: var(--accent); }
.ans-heads { display: grid; gap: 6px; margin: 10px 0; }
.ans-head { display: grid; grid-template-columns: 32px 1fr; column-gap: 8px; align-items: center; text-align: left; padding: 10px 12px; border: 0; border-radius: 20px; background: var(--surface); min-height: 52px; }
.ans-head span { grid-row: span 2; font-size: 24px; }
.ans-head small { color: var(--faint); font-size: 12px; }
.ans-tips { margin: 10px 0; }
.ans-tips h4 { font: 550 16px/1.2 var(--display); letter-spacing: -.02em; margin: 0 0 8px; color: var(--heading); }
.ans-bites { margin: 8px -4px; padding: 4px; }
.answer .mini-games { margin: 10px 0; }

/* ── Getting started: one question per screen */
.shell-onboard { display: block; }
.ob2 { min-height: 100dvh; width: min(560px, 100%); margin: 0 auto; padding: calc(20px + env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); display: flex; flex-direction: column; gap: 20px; }
.ob-top { display: flex; align-items: center; gap: 14px; }
.ob-back { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface); display: grid; place-items: center; flex: none; }
.ob-back .ico { transform: rotate(180deg); }
.ob-bar { flex: 1; height: 8px; border-radius: 6px; background: var(--sunk); overflow: hidden; }
.ob-bar span { display: block; height: 100%; border-radius: 6px; background: var(--plum); transition: width .35s cubic-bezier(.2, .8, .2, 1); }
.ob-body { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.ob-q { font: 550 clamp(28px, 7vw, 36px)/1.1 var(--display); letter-spacing: -.035em; color: var(--heading); text-wrap: balance; margin-top: 10px; }
.ob-hint { color: var(--soft); font-size: 16px; margin-top: -4px; }
.ob-sub { font-weight: 600; font-size: 14px; margin-top: 8px; }
.ob-input { width: 100%; min-height: 60px; padding: 0 18px; border-radius: 20px; border: 2px solid var(--line-2); background: var(--surface); font: 500 20px/1 var(--ui); color: var(--ink); }
.ob-input:focus { outline: none; border-color: var(--plum); }
.ob-pc { text-transform: uppercase; font: 550 32px/1 var(--display); letter-spacing: .04em; width: 10ch; text-align: center; }
.ob-label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; color: var(--soft); }
.ob-live { min-height: 24px; display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--positive); }
.ob-live .ico { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--forest-tint); }
.ob-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.ob-chip { position: relative; }
.ob-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ob-chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 18px; border-radius: 20px; background: var(--surface); border: 2px solid transparent; font-weight: 500; font-size: 16px; box-shadow: 0 1px 0 var(--line); transition: background .15s, transform .1s; }
.ob-chip input:checked + span { background: var(--plum); color: #fff; }
.ob-chip input:focus-visible + span { border-color: var(--plum-deep); }
.ob-chip:active span { transform: scale(.97); }
.ob-big { display: grid; gap: 10px; }
.ob-big .ob-chip span { width: 100%; min-height: 66px; border-radius: 20px; font-size: 18px; }
.ob-big .ob-chip b { font-size: 24px; font-weight: 400; }
.ob-days .ob-chip span { min-width: 64px; justify-content: center; }
.ob-act { margin-top: auto; display: grid; gap: 12px; justify-items: center; padding-top: 10px; }
.ob-go { width: 100%; min-height: 58px; border: 0; border-radius: 20px; background: var(--plum); color: #fff; font: 600 18px/1 var(--ui); display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.ob-go:active { transform: scale(.98); }
.ob-link { border: 0; background: none; color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; }
.ob-hello { display: grid; gap: 14px; justify-items: start; margin-top: 8vh; }
.ob-hello h1 { font: 550 clamp(34px, 9vw, 46px)/1.04 var(--display); letter-spacing: -.035em; color: var(--heading); }
.ob-hello p { font-size: 18px; color: var(--soft); max-width: 30em; }
.ob-preview { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 10px; }
.ob-preview li { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 20px; background: var(--surface); font-size: 16px; }
.ob-preview li span { font-size: 24px; flex: none; }

/* ── Weaning */
.wean { margin-top: 16px !important; display: grid; gap: 14px; }
.wean-head h2 { font: 550 24px/1.1 var(--display); letter-spacing: -.035em; color: var(--heading); margin-top: 4px; }
.wean-head .card-kicker { color: var(--coral); }
.wean-note { margin-top: 8px; font-size: 16px; color: var(--soft); }
.wean-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.wean-steps li { display: grid; justify-items: center; gap: 2px; padding: 10px 4px; border-radius: 20px; background: var(--surface); text-align: center; }
.wean-steps li span { font-size: 24px; }
.wean-steps small { font-size: 12px; font-weight: 700; color: var(--faint); }
.wean-steps b { font-size: 12px; font-weight: 600; line-height: 1.2; }
.wean-steps li.is-now { background: var(--coral); color: #fff; } .wean-steps li.is-now small { color: rgba(255,255,255,.85); }
.wean-steps li.is-past { opacity: .55; }
.wean-card { padding: 18px; border-radius: 20px; background: var(--surface); display: grid; gap: 10px; }
.wean-card.is-now { background: var(--coral-tint); }
.wean-card h3 { font: 550 20px/1.15 var(--display); letter-spacing: -.03em; color: var(--heading); }
.wean-card p { font-size: 16px; color: var(--ink); }
.wean-card ul { margin: 0; padding-left: 18px; font-size: 16px; }
.foods { display: flex; flex-wrap: wrap; gap: 6px; }
.foods span { padding: 5px 11px; border-radius: 12px; background: var(--surface); font-size: 14px; font-weight: 500; }
.bite-safety { background: var(--plum-deep) !important; color: #fbf3e6; } .bite-safety h3, .bite-safety p { color: #fbf3e6 !important; } .bite-safety small, .bite-safety small a { color: rgba(251,243,230,.75); }
.wean-avoid { padding: 14px 16px; border-radius: 20px; background: var(--surface); }
.wean-avoid summary { display: flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; min-height: 32px; }
.wean-avoid ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; }
.wean .bite-rail { margin: 0 -16px; }
.dt-out { padding: 16px; border-radius: 20px; background: var(--forest-tint); display: grid; gap: 10px; }
.dt-leave { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: baseline; }
.dt-leave span { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--positive); }
.dt-leave b { font: 550 32px/1 var(--display); letter-spacing: -.035em; color: var(--positive); }
.dt-leave small { grid-column: 1 / -1; font-size: 14px; color: var(--soft); margin-top: 4px; }
.dt-out .dt-h { margin: 4px 0 0; font-size: 18px; }
.dt-bag { list-style: none; margin: 0; padding: 0; }
.dt-bag .tick { min-height: 40px; font-size: 14px; }
.dt-bag .tick.is-on .what { text-decoration: line-through; color: var(--faint); }

/* ── Family and sharing */
.fam-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.fam-row input { flex: 1; min-width: 200px; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--surface); font: inherit; }
.fam-people { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 8px; }
.fam-people li { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 20px; background: var(--surface); }
.fam-people div { display: grid; } .fam-people small { color: var(--faint); font-size: 14px; }
.fam-invite { margin-top: 12px; padding: 16px; border-radius: 20px; background: var(--gold-tint); display: grid; gap: 6px; justify-items: start; }
.fam-code { font: 550 32px/1 var(--display); letter-spacing: .12em; color: var(--heading); user-select: all; }
.fam-link { word-break: break-all; user-select: all; margin: 0; }
.fam-acts { margin-top: 16px; }
.fam-danger { color: #8e3523 !important; border-color: rgba(142, 53, 35, .35) !important; }

/* ── The real Village */
.vil-join { padding: 22px 20px; border-radius: 20px; background: var(--plum-deep); color: #fbf3e6; display: grid; gap: 12px; }
.vil-join h2 { font: 550 24px/1.1 var(--display); letter-spacing: -.035em; }
.vil-join p { color: rgba(251, 243, 230, .8); }
.vil-rules { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; color: rgba(251, 243, 230, .85); }
.vil-sub { font-weight: 600; font-size: 14px; margin-top: 6px; }
.vil-join .ob-chip span { background: rgba(255, 253, 249, .1); color: #fbf3e6; box-shadow: none; min-height: 42px; }
.vil-join .ob-chip input:checked + span { background: var(--gold); color: var(--plum-deep); }
.vil-agree { color: #fbf3e6; font-weight: 500; }
.vil-join .btn-primary { background: var(--gold); color: var(--plum-deep); }
.vil-me { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 20px; background: var(--forest-tint); }
.vil-me div { flex: 1; display: grid; } .vil-me small { color: var(--soft); }
.vil-msgs { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 8px; }
.vil-msgs li { max-width: 80%; padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: var(--surface); }
.vil-msgs li.mine { justify-self: end; border-radius: 18px 18px 6px 18px; background: var(--plum); color: #fff; }
.vil-msgs li.held { opacity: .7; } .vil-msgs li small { display: block; font-size: 12px; margin-top: 4px; }
.vil-first { max-width: none !important; background: var(--sunk) !important; color: var(--soft); }
.vil-send { display: flex; gap: 8px; align-items: center; padding: 6px 6px 6px 16px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.vil-send input { flex: 1; border: 0; background: none; font: inherit; min-height: 46px; outline: none; }
.toast { border-radius: 20px; width: max-content; max-width: min(420px, calc(100vw - 32px)); line-height: 1.35; text-align: left; }
.mod-list { display: grid; gap: 10px; }
.mod { padding: 16px; border-radius: 20px; background: var(--surface); display: grid; gap: 8px; }
.mod blockquote { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--sunk); font-size: 16px; }

/* ── The countryside (5 Nov): one landscape at every hour, restyled by time of day, season and weather. Flat colours only. */
.sky { --h-far: #bcd3c0; --h-mid: #93b89c; --h-near: #5f8f72; --field: #a7c4a0; --field-b: #86ad8b; --hedge: #4d7a5c; --trunk: #6b5446;
  --leaf-a: #5b8c53; --leaf-b: #6f9f5f; --leaf-c: #4f7d4a; --wall: #f4ead8; --roof: #9b5a4a; --win: #6f8a8f; --lm: #a7bfae; --cloud: #fbfaf5; --orb: #f6c453; }
.sky-dawn { background: #f6dcc8; --h-far: #d7c7b0; --h-mid: #a9b693; --h-near: #6e8c6c; --field: #b8c29c; --field-b: #9cae88; --lm: #cbb7a4; --cloud: #fdf1e6; --orb: #f7a96b; }
.sky-day { background: #dbe9e4; }
.sky-dusk { background: #f1c2a5; --ink-sky: var(--heading);
  --h-far: #c99a95; --h-mid: #8f6f7d; --h-near: #5d4a64; --field: #9a7884; --field-b: #846675; --hedge: #4c3c55; --trunk: #4a3846;
  --leaf-a: #6d5468; --leaf-b: #7a5f70; --leaf-c: #5f4a5d; --wall: #e9d3c6; --roof: #6e4250; --win: #f6c453; --lm: #b68a89; --cloud: #f8d9c4; --orb: #ee7f55; }
.sky-night { background: #232541; --ink-sky: #fbf3e6;
  --h-far: #383a5c; --h-mid: #2c2d4b; --h-near: #1e1f37; --field: #313253; --field-b: #2a2b48; --hedge: #1a1b30; --trunk: #1d1d33;
  --leaf-a: #262742; --leaf-b: #2b2c48; --leaf-c: #22233d; --wall: #3a3a5a; --roof: #262640; --win: #f6c453; --lm: #33355a; --cloud: #3b3d60; }
.season-autumn { --leaf-a: #d9873a; --leaf-b: #c4622d; --leaf-c: #b98a3a; }
.season-spring { --leaf-a: #8fbf7f; --leaf-b: #9fc98a; --leaf-c: #7fb070; }
.sky-dusk.season-autumn { --leaf-a: #9a5f4f; --leaf-b: #8a4f48; --leaf-c: #86634f; }
.sky-night.season-autumn, .sky-night.season-spring { --leaf-a: #2b2c48; --leaf-b: #2e2b45; --leaf-c: #27283f; }
.wx-cloud.sky-day, .wx-rain.sky-day { background: #d3dcda; --orb: #f3d27a; }
.wx-rain.sky-day { --cloud: #b9c3c4; }
.wx-rain.sky-dawn, .wx-rain.sky-dusk { --cloud: #c9b1aa; }
.wx-fog.sky-day { background: #dfe3df; }

.sky-hills, .sky-sun { display: none !important; }
.scene { position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; width: 100%; height: 160px; }
.hill-far { fill: var(--h-far); } .hill-mid { fill: var(--h-mid); } .hill-near { fill: var(--h-near); }
.field { fill: var(--field); } .field-b { fill: var(--field-b); }
.hedge { fill: none; stroke: var(--hedge); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 0.1 7; opacity: .8; }
.trunk { fill: var(--trunk); } .twig { fill: none; stroke: var(--trunk); stroke-width: 1.6; stroke-linecap: round; }
.leaf-a { fill: var(--leaf-a); } .leaf-b { fill: var(--leaf-b); } .leaf-c { fill: var(--leaf-c); } .blossom { fill: #f4bfcd; }
.wall { fill: var(--wall); } .roof, .chimney { fill: var(--roof); } .door { fill: var(--roof); }
.window { fill: var(--win); } .window.is-lit { fill: #f6c453; }
.sky-day .window { fill: #7e9aa0; }
.lm { fill: var(--lm); } .lm-line { stroke: var(--lm); stroke-width: 1.4; fill: none; }
.cloud { fill: var(--cloud); opacity: .92; } .cloud.heavy { opacity: 1; }
.stars circle { fill: #f4ecd8; opacity: .8; }
.sheep ellipse { fill: #fbf8f0; } .sheep-head { fill: #3b2e33; }
.smoke circle { fill: var(--cloud); opacity: .55; }
.rain path { stroke: #7f97a6; stroke-width: 1.3; stroke-linecap: round; opacity: .55; }
.sky-night .rain path, .sky-dusk .rain path { stroke: #c8cde0; opacity: .4; }
.snow circle { fill: #fff; opacity: .85; }
.rime { fill: none; stroke: #f4f6f7; stroke-width: 3; opacity: .75; }
.fog { fill: #f2f1ec; opacity: .45; }
.sky-orb { position: absolute; z-index: -2; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: var(--orb); }
.sky-moon { position: absolute; z-index: -2; right: 30%; top: 22px; width: 34px; height: 34px; border-radius: 50%; background: #ece3cf; box-shadow: 8px -3px 0 0 #232541 inset; }
@media (prefers-reduced-motion: no-preference) {
  .rain { animation: fall 1.1s linear infinite; } .snow { animation: fall 6s linear infinite; }
  .cloud { animation: drift 60s ease-in-out infinite alternate; }
  .smoke circle { animation: puff 4s ease-out infinite; } .smoke circle:nth-child(2) { animation-delay: 1.2s; } .smoke circle:nth-child(3) { animation-delay: 2.4s; }
}
@keyframes fall { from { transform: translateY(-10px); } to { transform: translateY(10px); } }
@keyframes drift { from { translate: -14px 0; } to { translate: 14px 0; } }
@keyframes puff { 0% { opacity: 0; translate: 0 6px; } 30% { opacity: .55; } 100% { opacity: 0; translate: 3px -8px; } }
/* Dusk is now a light sky, so only night uses light-on-dark treatments */
.sky-dusk .sky-knows .kchip { background: rgba(255, 253, 249, .62); color: var(--heading); }
@media (min-width: 760px) { .scene { height: 190px; } }
/* The landscape gets its own band under the day strip, so the cottage, trees and sheep are seen, not hidden */
.sky { padding-bottom: 92px; }
.scene { height: 150px; }
@media (min-width: 760px) { .sky { padding-bottom: 110px; } .scene { height: 175px; }  }
@media (max-width: 759px) { .sky-orb, .sky-moon { display: none; } }


@media (max-width: 599px) {
  .sky { padding-bottom: 64px; }
  .sky .scene { height: 112px; }
  .sky-greet { font-size: 30px; }
  .sky-line { font-size: 15.5px; }
  .sky-knows { display: none; }
}
