/* ── Week, Kitchen plates, recipe cards (5 Nov). Flat colours, no gradients. */
.chipbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 99px; background: var(--surface); font-size: 14px; font-weight: 600; color: var(--heading); }
.chipbtn:hover { border-color: var(--plum); }
.chipbtn.is-main { background: var(--plum-deep); border-color: var(--plum-deep); color: #fbf3e6; }
.chipbtn.icon-only { width: 38px; padding: 0; justify-content: center; font-size: 16px; }
.seg { display: inline-flex; padding: 3px; border-radius: 99px; background: var(--sunk); gap: 2px; }
.seg.wrap { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; border-radius: 99px; margin: 4px 0 16px; } /* one scrolling row, not a wrapped tray (review V-26) */
.seg.wrap > button { flex: none; white-space: nowrap; }
.seg.wrap::-webkit-scrollbar { display: none; }
.seg button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 99px; background: none; font-size: 14px; font-weight: 600; color: var(--soft); }
.seg button.is-on { background: var(--surface); color: var(--heading); box-shadow: 0 1px 3px rgba(35, 22, 29, .12); }
.seg.sm button { min-height: 30px; padding: 0 10px; font-size: 12px; }

/* Settings: four rows you can change in a tap */
.wk-set { display: grid; gap: 4px; padding: 14px 18px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); margin-bottom: 22px; }
.wk-set-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px dashed var(--line-2); }
.wk-set-row:last-child { border-bottom: 0; }
.wk-set-l { font-weight: 600; font-size: 14px; color: var(--heading); }
.stepper { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border-radius: 99px; background: var(--sunk); }
.stepper button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--surface); font-size: 20px; font-weight: 600; color: var(--heading); }
.stepper button:disabled { opacity: .35; }
.stepper b { min-width: 30px; text-align: center; font: 600 20px/1 var(--display); color: var(--heading); }
.daychips { display: flex; gap: 5px; flex-wrap: wrap; }
.daychip { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border: 1.5px solid var(--line-2); border-radius: 50%; background: var(--surface); font-weight: 700; font-size: 14px; color: var(--soft); }
.daychip.sm { width: 36px; height: 36px; font-size: 14px; }
.daychip.is-on { background: var(--forest); border-color: var(--forest); color: #fff; }
.daychip.is-nursery { border-style: dashed; color: var(--faint); background: var(--sunk); }
.daychip small { position: absolute; bottom: -15px; font-size: 9px; font-weight: 600; letter-spacing: .03em; color: var(--faint); }
.rc-days { display: flex; flex-wrap: wrap; gap: 6px; }
.rc-days .daychip { width: auto; min-width: 50px; padding: 0 10px; border-radius: 99px; height: 38px; font-size: 14px; }

/* The calendar: a column per day on wide screens, a list of day cards on phones */
.dayline { position: relative; height: 10px; border-radius: 6px; background: var(--line-2); overflow: hidden; }
.dl-nap { position: absolute; top: 0; bottom: 0; background: #b07a9a; }
.dl-out { position: absolute; top: 0; bottom: 0; border-radius: 6px; background: var(--forest); }
.dl-out.is-event { background: var(--gold); box-shadow: inset 0 0 0 1.5px var(--gold-line); }
.wd-meal { display: grid; grid-template-columns: 54px 1fr auto; gap: 10px; align-items: center; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.wd-plate { padding: 0; border: 0; background: none; width: 54px; height: 54px; border-radius: 20px; overflow: hidden; display: block; }
.wd-plate .food-art, .pl-art .food-art, .rcard .food-art, .dn-tonight .food-art, .dn-strip .food-art { display: block; width: 100%; height: 100%; }
.wd-plate-off { display: grid; place-items: center; background: var(--sunk); font-size: 24px; }
.wd-meal-t { display: grid; text-align: left; padding: 0; border: 0; background: none; min-width: 0; color: var(--heading); }
.wd-meal-t small { font-size: 12px; font-weight: 700; letter-spacing: .03em; color: var(--coral); }
.wd-meal-t b { font-size: 14px; font-weight: 600; line-height: 1.25; }
.wd-meal.is-off { grid-template-columns: 54px 1fr; }
.wd-meal.is-off .chipbtn { grid-column: 1 / -1; justify-self: start; }
.wd-meal.is-off small { font-size: 12px; font-weight: 700; color: var(--faint); display: block; }
@media (min-width: 600px) {
  .wd-plate { width: 64px; height: 64px; }
  .wd-meal { grid-template-columns: 64px 1fr auto; }
  .wd-acts .chipbtn { min-height: 34px; padding: 0 10px; font-size: 12px; }
}
.wk-foot { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 10px; }

/* Kitchen: the week as a row of plates */
.plates { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; margin-bottom: 18px; scrollbar-width: none; }
.pl { scroll-snap-align: start; display: grid; gap: 6px; align-content: start; padding: 12px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.pl.is-today { box-shadow: 0 0 0 2px var(--plum-deep), var(--shadow); }
.pl.is-off { background: var(--sunk); box-shadow: none; }
.pl-day { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--coral); }
.pl-day em { font-style: normal; letter-spacing: .02em; text-transform: none; font-weight: 600; color: var(--faint); }
.pl-art { position: relative; padding: 0; border: 0; border-radius: 20px; overflow: hidden; aspect-ratio: 1; background: none; display: block; width: 100%; }
.pl-none { display: grid; place-items: center; font-size: 32px; background: var(--surface); }
.pl-badge { position: absolute; left: 8px; top: 8px; padding: 3px 8px; border-radius: 99px; background: var(--plum-deep); color: #fbf3e6; font-size: 12px; font-weight: 700; }
.pl-t { padding: 0; border: 0; background: none; text-align: left; font: 550 16px/1.2 var(--display); letter-spacing: -.03em; color: var(--heading); }
.pl-meta { font-size: 12px; color: var(--faint); }
.pl .chipbtn { justify-self: start; min-height: 34px; font-size: 12px; }
@media (min-width: 900px) { .plates { grid-auto-flow: row; grid-template-columns: repeat(7, minmax(0, 1fr)); overflow: visible; } }
.box-head { margin-bottom: 10px; } .box-head p { color: var(--soft); font-size: 14px; margin-top: 4px; }
.rbox { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 14px; }
.rcard { display: grid; gap: 4px; align-content: start; text-align: left; padding: 0 0 10px; border: 0; border-radius: 20px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); color: var(--heading); }
.rcard .food-art { aspect-ratio: 1; height: auto !important; }
.rcard strong { padding: 4px 12px 0; font: 550 16px/1.2 var(--display); letter-spacing: -.03em; }
.rcard small { padding: 0 12px; font-size: 12px; color: var(--faint); }
.rcard:hover { transform: translateY(-2px); transition: transform .2s; }

/* Home: dinners card */
.dn-tonight { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: center; width: 100%; margin-top: 12px; padding: 0; border: 0; background: none; text-align: left; color: var(--heading); }
.dn-tonight .food-art { width: 92px !important; height: 92px !important; border-radius: 20px; }
.dn-tonight small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--coral); }
.dn-tonight strong { font: 550 20px/1.15 var(--display); letter-spacing: -.035em; }
.dn-strip { list-style: none; display: flex; gap: 8px; margin: 14px 0 4px; padding: 0; }
.dn-strip button { display: grid; gap: 3px; justify-items: center; padding: 0; border: 0; background: none; }
.dn-strip .food-art { width: 54px !important; height: 54px !important; border-radius: 14px; }
.dn-strip small { font-size: 12px; font-weight: 700; color: var(--faint); }
.wk-home { font-size: 14px; color: var(--faint); padding: 6px 12px; }
.wk-pick.is-event { background: var(--gold-tint); box-shadow: inset 0 0 0 1.5px var(--gold-line); }

/* Recipe card */
.dt-recipe .rc-hero { display: grid; grid-template-columns: 1fr; gap: 16px; position: relative; padding: 0 0 16px; }
.rc-art { border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 10; }
.rc-art .food-art { width: 100%; height: 100%; display: block; object-fit: cover; }
@media (min-width: 760px) { .dt-recipe .rc-hero { grid-template-columns: 260px 1fr; align-items: end; } .rc-art { aspect-ratio: 1; } }
.rc-for { padding: 16px 18px; border-radius: 20px; background: var(--gold-tint); display: grid; gap: 8px; margin-bottom: 18px; }
.rc-for > p:nth-child(2) { font-size: 16px; color: var(--heading); }
.rc-job { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; } .rc-job strong { display: block; }
.cook { display: grid; gap: 12px; margin-bottom: 18px; }
.cook-dots { display: flex; gap: 6px; flex-wrap: wrap; }
.cook-dots button { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--surface); font-weight: 700; font-size: 14px; color: var(--soft); }
.cook-dots .is-on { background: var(--plum-deep); border-color: var(--plum-deep); color: #fbf3e6; }
.cook-dots .is-done { background: var(--forest-tint); border-color: var(--forest-tint); color: var(--positive); }
.cook-card { display: grid; gap: 12px; padding: 18px 20px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.cook-n { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--coral); }
.cook-t { font: 500 20px/1.35 var(--display); letter-spacing: -.02em; color: var(--heading); }
.cook-kid { font-size: 14px; color: var(--positive); font-weight: 600; padding: 8px 12px; border-radius: 12px; background: var(--forest-tint); }
.cook-nav { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cook-done { font-size: 14px; color: var(--positive); font-weight: 600; }
.timer { justify-self: start; display: inline-flex; gap: 6px; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 99px; border: 0; background: var(--gold); font-weight: 700; color: var(--plum-deep); }
.timer.is-on { background: var(--plum-deep); color: #fbf3e6; font-variant-numeric: tabular-nums; }
.rc-swaps { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.rc-swaps li { display: grid; gap: 2px; font-size: 14px; } .rc-swaps b { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.rc-ing-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rc-ing, .rc-plan { margin-bottom: 18px; }
.rc-note { margin-bottom: 14px; font-size: 14px; } .rc-note strong { display: block; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--coral); margin-bottom: 2px; }
.dt-recipe .dt-close { color: var(--heading); background: var(--surface); border-color: var(--line-2); z-index: 2; }
.dt-recipe .dt-kicker { color: var(--coral); }
.timer.sm { min-height: 34px; font-size: 14px; }
@media (max-width: 440px) { .daychip { width: 35px; height: 35px; font-size: 14px; } .daychips { gap: 4px; } }

/* Detail card: tabs and the richer visit content */
.dt-tabs { display: flex; width: 100%; margin: 4px 0 16px; overflow-x: auto; scrollbar-width: none; }
.dt-tabs button { flex: 1 0 auto; }
.dt-pane { display: grid; gap: 14px; animation: paneIn .25s ease; }
@keyframes paneIn { from { opacity: 0; transform: translateY(6px); } }
.dt-sub { color: var(--soft); font-size: 14px; }
.gets ul, .toomuch ul, .safety ul { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: 16px; }
.gets { padding: 14px 16px; border-radius: 20px; background: var(--forest-tint); }
.tl { list-style: none; margin: 0; padding: 0 0 0 18px; position: relative; display: grid; gap: 4px; }
.tl::before { content: ''; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 2px; background: var(--line-2); }
.tl li { position: relative; }
.tl li::before { content: ''; position: absolute; left: -18px; top: 15px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2.5px solid var(--plum); }
.tl li.tl-leave::before, .tl li.tl-home::before { border-color: var(--forest); background: var(--forest); }
.tl li.tl-nap::before { border-color: #b996ad; background: #d9c5d2; }
.tl li.is-clash::before { border-color: var(--coral); background: var(--coral); }
.tl button, .tl li > div { display: grid; grid-template-columns: 70px 1fr; gap: 10px; align-items: baseline; width: 100%; text-align: left; padding: 10px 12px; border: 0; border-radius: 12px; background: none; color: var(--heading); }
.tl li.is-open > button { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.tl b { font: 600 16px/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tl span { font-weight: 600; font-size: 16px; display: grid; } .tl small { font-weight: 500; font-size: 12px; color: var(--faint); }
.tl li > p { margin: 2px 12px 8px 92px; font-size: 14px; color: var(--soft); }
.after { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 20px; background: var(--gold-tint); font-size: 16px; }
.after span { font-size: 24px; } .after strong { display: block; }
.spot-head { display: flex; justify-content: space-between; align-items: baseline; }
.spot-n { font-weight: 700; color: var(--positive); font-size: 14px; }
.spot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.spot-card { display: grid; justify-items: center; gap: 2px; padding: 14px 6px 10px; border: 1.5px solid var(--line-2); border-radius: 20px; background: var(--surface); color: var(--heading); transition: transform .15s; }
.spot-card:active { transform: scale(.95); }
.spot-e { font-size: 32px; line-height: 1.1; }
.spot-card b { font-size: 14px; } .spot-card small { font-size: 12px; color: var(--faint); }
.spot-card.is-on { background: var(--forest); border-color: var(--forest); color: #fff; } .spot-card.is-on small { color: rgba(255,255,255,.8); }
.spot-card.is-on .spot-e { animation: spotPop .35s ease; }
@keyframes spotPop { 50% { transform: scale(1.3) rotate(-8deg); } }
.words { display: flex; flex-wrap: wrap; gap: 8px; }
.word { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px 0 10px; border: 0; border-radius: 99px; background: var(--plum-tint); color: var(--heading); font-weight: 600; font-size: 16px; }
.word .ico { width: 14px; height: 14px; color: var(--accent); }
.mini-game { padding: 16px 18px; border-radius: 20px; background: var(--plum-deep); color: #fbf3e6; }
.mini-game .card-kicker { color: var(--gold); } .mini-game h3 { font: 550 20px/1.2 var(--display); letter-spacing: -.03em; margin: 4px 0 8px; }
.mini-game ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 16px; }
.toomuch { padding: 14px 16px; border-radius: 20px; background: var(--coral-tint); }
.practical { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.practical li { display: grid; gap: 2px; padding-left: 14px; border-left: 3px solid var(--gold); font-size: 16px; } .practical span { color: var(--soft); font-size: 14px; }
.safety { padding: 14px 16px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.safety .dt-h { display: flex; gap: 6px; align-items: center; }
.safety a { font-size: 14px; }
@media (max-width: 440px) { .dt-bar { gap: 6px; } .dt-bar .act { padding: 0 11px; min-width: 0; } .dt-bar .act-main { flex: 1 1 auto; white-space: nowrap; } .dt-bar .act[data-kind="too-busy"] { font-size: 14px; } }
.sheet.no-anim .dt-pane { animation: none; }
.sheet .dt-pane.pane-in { animation: paneIn .25s ease; }
/* Where it is */
.dt-map { display: grid; gap: 8px; }
.map-addr { font-size: 14px; color: var(--soft); }
.map-frame { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: 20px; background: var(--sunk); }
.map-peek { display: flex; gap: 12px; align-items: center; width: 100%; padding: 14px; border: 1.5px dashed var(--line-2); border-radius: 20px; background: var(--sunk); text-align: left; color: var(--heading); }
.map-peek > span:first-child { font-size: 24px; }
.map-peek b { display: block; font-size: 16px; } .map-peek small { font-size: 12px; color: var(--faint); }
.map-go { display: flex; flex-wrap: wrap; gap: 6px; }
.map-go a { text-decoration: none; }

/* Week: settings as one line you can open */
.wk-set { padding: 0; gap: 0; overflow: hidden; }
.wk-sum { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; padding: 14px 18px; border: 0; background: none; text-align: left; color: var(--heading); }
.wk-sum small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.wk-sum b { font-size: 16px; font-weight: 600; }
.wk-sum-c { flex: none; padding: 7px 14px; border-radius: 99px; background: var(--plum-tint); font-size: 14px; font-weight: 700; color: var(--accent); }
.wk-set-rows { padding: 0 18px 10px; border-top: 1px dashed var(--line-2); }

/* The week at a glance */
.wk-glance { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.gl { position: relative; display: grid; justify-items: center; gap: 2px; width: 100%; padding: 10px 2px 14px; border: 0; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); color: var(--heading); }
.gl small { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.gl b { font: 600 22px/1 var(--display); letter-spacing: -.03em; }
.gl-wx { font-size: 14px; min-height: 18px; display: flex; align-items: center; gap: 2px; } .gl-wx i { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--faint); }
.gl-mark { position: absolute; bottom: 6px; width: 22px; height: 5px; border-radius: 3px; }
.gl.is-today { box-shadow: 0 0 0 2px var(--plum-deep), var(--shadow); }
.gl.is-doing { background: var(--forest); color: #fbf3e6; } .gl.is-doing small, .gl.is-doing .gl-wx i { color: #d7e6dc; } .gl.is-doing .gl-mark { background: #fbf3e6; }
.gl.is-idea .gl-mark { background: none; border: 1.5px dashed var(--plum); height: 7px; }
.gl.is-home .gl-mark { background: var(--st-home); }
.gl.is-nursery, .gl.is-away { background: var(--sunk); box-shadow: none; } .gl.is-nursery .gl-mark { background: none; border-top: 2px dotted var(--faint); height: 0; opacity: .6; }
.gl-key { display: flex; flex-wrap: wrap; gap: 14px; margin: 4px 2px 22px; font-size: 12.5px; color: var(--faint); font-weight: 600; }
.gl-key span::before { content: ''; display: inline-block; width: 14px; height: 8px; border-radius: 3px; margin-right: 6px; vertical-align: 1px; }
.k-doing::before { background: var(--forest); } .k-idea::before { border: 1.5px dashed var(--plum); } .k-home::before { background: var(--line-2); } .k-nursery::before { background: var(--sunk); border: 1px solid var(--line-2); }

/* What we noticed */
.noticed { margin-bottom: 22px; }
.noticed ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.noticed li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.nt-e { font-size: 20px; line-height: 1.2; }
.noticed b { display: block; font-size: 14px; font-weight: 600; color: var(--heading); line-height: 1.3; }
.noticed small { display: block; font-size: 14px; color: var(--soft); margin-top: 2px; }

/* The agenda: one roomy row a day */
.ag { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; container-type: inline-size; }
.ag-day { display: grid; gap: 14px; padding: 16px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); scroll-margin-top: 80px; }
.ag-day.is-today { box-shadow: 0 0 0 2px var(--plum-deep), var(--shadow); }
.ag-day.is-nursery { background: var(--sunk); box-shadow: none; }
.ag-date { display: grid; grid-template-columns: auto auto 1fr; column-gap: 8px; align-items: baseline; }
.ag-date small { grid-column: 1 / -1; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--coral); }
.ag-date b { font: 600 34px/1 var(--display); letter-spacing: -.03em; color: var(--heading); }
.ag-date em { font-style: normal; font-size: 14px; font-weight: 600; color: var(--faint); }
.ag-wx { justify-self: end; display: grid; justify-items: end; font-weight: 700; font-size: 16px; color: var(--heading); }
.ag-wx small { font-size: 12px; font-weight: 600; color: var(--faint); }
.ag-body { display: grid; gap: 12px; min-width: 0; }
@container (min-width: 760px) {
  .ag-day { grid-template-columns: 112px minmax(0, 1fr) 250px; gap: 22px; padding: 20px 22px; align-items: start; }
  .ag-date { grid-template-columns: auto auto; }
  .ag-wx { grid-column: 1 / -1; justify-self: start; justify-items: start; margin-top: 10px; }
}

.ag-card { display: grid; gap: 8px; padding: 16px 18px; border-radius: 20px; min-width: 0; }
.ag-card.is-doing { background: var(--forest-tint); box-shadow: inset 0 0 0 2px var(--forest); }
.ag-card.is-idea { background: var(--surface); border: 2px dashed var(--st-idea-line); }
.ag-card.is-idea.is-ticket { background: var(--gold-tint); border-color: var(--gold-line); }
.ag-card.is-doing.is-ticket { background: var(--gold-tint); }
.ag-card.is-home { background: var(--plum-tint); border: 1px solid var(--line-2); } /* was grey on white: too faint on phones */
.ag-card.is-nursery { padding: 6px 0; }
.ag-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--accent); }
.ag-tag em { font-style: normal; padding: 2px 8px; border-radius: 99px; background: var(--gold); color: var(--plum-deep); letter-spacing: .05em; font-size: 10.5px; }
.is-doing > .ag-tag { color: var(--positive); }
.ag-title { padding: 0; border: 0; background: none; text-align: left; font: 550 24px/1.15 var(--display); letter-spacing: -.035em; color: var(--heading); }
.ag-title:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ag-when { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 14px; color: var(--heading); }
.ag-when span { font-size: 14px; font-weight: 700; color: var(--soft); }
.ag-when .ag-book { padding: 2px 9px; border-radius: 99px; background: var(--coral); color: #fff; font-size: 12px; }
.ag-kind { font-size: 14px; color: var(--faint); }
.ag-why { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 16px; }
.ag-why li { display: flex; gap: 8px; font-size: 14px; color: var(--soft); line-height: 1.35; }
.ag-why li span { flex: none; width: 18px; text-align: center; }
.ag-bag { font-size: 14px; color: var(--soft); } .ag-bag strong { color: var(--heading); margin-right: 4px; }
.ag-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.ag-acts a { text-decoration: none; }
.chipbtn.is-quiet { border-color: transparent; background: none; color: var(--soft); }
.ag-alts { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding-top: 8px; border-top: 1px dashed var(--line-2); font-size: 14px; color: var(--faint); }
.ag-alt { display: inline-flex; align-items: center; gap: 6px; }
.ag-alt .mini { padding: 2px 9px; border: 1px solid var(--line-2); border-radius: 99px; background: var(--surface); font-size: 12px; font-weight: 700; color: var(--accent); }
.ag-note { font-size: 14px; color: var(--soft); }
.ag-games { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; }
.ag-game { display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 20px; background: var(--surface); color: var(--heading); box-shadow: 0 1px 3px rgba(34, 26, 31, .08); }
.ag-game-i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--plum); color: #fff; flex: none; }
.ag-game small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .03em; color: var(--accent); }
.ag-game b { display: block; font: 550 16px/1.2 var(--display); letter-spacing: -.02em; margin: 2px 0; }
.ag-game em { display: block; font-style: normal; font-size: 14px; color: var(--soft); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ag-near { font-size: 14px; color: var(--soft); }
.dayline-w { display: grid; gap: 4px; }
.dl-ends { position: relative; display: flex; justify-content: space-between; min-height: 16px; font-size: 11.5px; font-weight: 600; color: var(--soft); }
.dl-ends .dl-nl { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; color: var(--night-ink); }
.dl-out.is-doing { background: var(--forest); } .dl-out.is-idea { background: none; border: 1.5px dashed var(--plum); }

.ag-meal { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.ag-meal .wd-plate { width: 64px; height: 64px; }
.ag-meal-t { display: grid; gap: 1px; text-align: left; padding: 0; border: 0; background: none; min-width: 0; color: var(--heading); }
.ag-meal-t small { font-size: 12px; font-weight: 700; letter-spacing: .03em; color: var(--coral); }
.ag-meal-t b { font-size: 16px; font-weight: 600; line-height: 1.25; }
.ag-meal-t em { font-style: normal; font-size: 12px; color: var(--faint); }
.ag-meal.is-chosen .ag-meal-t small { color: var(--positive); }
.ag-meal.is-off { grid-template-columns: 64px 1fr; } .ag-meal.is-off .chipbtn { grid-column: 1 / -1; justify-self: start; }
@container (min-width: 760px) {
  .ag-meal { grid-template-columns: 1fr auto; padding: 0 0 0 20px; border-top: 0; border-left: 1px dashed var(--line-2); align-self: stretch; align-content: start; }
  .ag-meal .wd-plate { grid-column: 1 / -1; width: 112px; height: 112px; border-radius: 20px; }
  .ag-meal.is-off { grid-template-columns: 1fr; }
}
@media (max-width: 440px) {
  .ag-day { padding: 14px; } .ag-card { padding: 14px; } .ag-title { font-size: 20px; }
  .wk-glance { gap: 4px; } .gl { padding: 8px 0 13px; border-radius: 14px; } .gl b { font-size: 18px; } .gl-wx i { display: none; }
}
@media (max-width: 600px) {
  .noticed ul { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; margin: 10px -16px 0; padding: 2px 16px 10px; scrollbar-width: none; }
  .noticed li { scroll-snap-align: start; }
}
/* Ask: help lines (crisis, urgent, low mood) */
.ans-lines { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 8px; }
.ans-lines li { display: grid; gap: 3px; padding: 12px 14px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.ans-lines strong { font-size: 16px; color: var(--heading); }
.ans-lines li > span { font-size: 14px; color: var(--soft); }
.ln-go { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-top: 4px; }
.ln-go .tel { font-weight: 800; font-size: 16px; color: var(--positive); text-decoration: none; }
.ln-go small { font-size: 12px; color: var(--faint); }
.choke { margin-top: 22px; }
.choke-list { margin: 10px 0 14px; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; color: var(--heading); }
.safe-sleep { margin: 0 0 18px; padding: 16px 18px; border-radius: 20px; background: var(--forest-tint); box-shadow: inset 0 0 0 1.5px var(--forest); }
.safe-sleep h2 { font: 550 20px/1.2 var(--display); color: var(--heading); margin: 4px 0 8px; }
.safe-sleep ul { margin: 0; padding-left: 20px; display: grid; gap: 5px; font-size: 14px; color: var(--heading); }

/* ── The care record ─────────────────────────────── */
.fab { flex: none; display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; background: var(--forest); color: #fbf3e6; transform: translateY(-12px); box-shadow: 0 0 0 4px var(--plum-deep), 0 18px 40px -14px rgba(35, 22, 29, .55); cursor: pointer; }
.fab .ico { width: 24px; height: 24px; }
.fab > span:not(.ico) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (min-width: 900px) { .fab { width: 56px; height: 56px; border-radius: 20px; transform: none; margin: 10px 0 0; box-shadow: none; } }
.toast:has(.toast-btn) { pointer-events: auto; }
.toast-btn { margin-left: 6px; padding: 4px 12px; border: 0; border-radius: 99px; background: var(--gold); color: var(--plum-deep); font-weight: 800; font-size: 14px; }
.lg { display: grid; gap: 14px; padding: 6px 4px 18px; }
.lg-head { display: flex; align-items: center; gap: 10px; }
.lg-head .dt-close { position: static; margin-left: auto; }
.lg-back { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--sunk); transform: scaleX(-1); }
.lg-who { display: flex; align-items: center; gap: 8px; font: 550 20px/1.2 var(--display); color: var(--heading); }
.orb-face.sm { width: 30px; height: 30px; font-size: 14px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--forest); color: #fbf3e6; }
.lg-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.lg-tile { display: grid; justify-items: center; gap: 6px; padding: 16px 8px; min-height: 92px; border: 0; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-2); font-weight: 700; font-size: 14px; color: var(--heading); }
.lg-tile span { font-size: 32px; line-height: 1; }
.lg-tile.is-more { background: var(--sunk); box-shadow: none; }
.lg-big { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.lg-big-3 { grid-template-columns: repeat(3, 1fr); } .lg-big-2 { grid-template-columns: repeat(2, 1fr); }
.lg-bigbtn { display: grid; justify-items: center; gap: 6px; min-height: 96px; padding: 14px 8px; border: 0; border-radius: 20px; background: var(--forest-tint); box-shadow: inset 0 0 0 2px var(--forest); font-weight: 800; font-size: 16px; color: var(--heading); }
.lg-bigbtn span { font-size: 32px; line-height: 1; }
.lg-chips, .lg-presets, .lg-when { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--line-2); border-radius: 99px; background: var(--surface); font-weight: 650; font-size: 14px; color: var(--heading); }
.chip.is-on { background: var(--plum-deep); border-color: var(--plum-deep); color: #fbf3e6; }
.chip.is-main { background: var(--forest); border-color: var(--forest); color: #fbf3e6; }
.lg-time input { border: 0; background: none; font: inherit; color: inherit; width: 92px; } .lg-time input[type="date"] { width: 132px; }
.lg-step { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; }
.lg-step > span { font-weight: 700; color: var(--heading); }
.lg-step b small { font-size: 14px; margin-left: 3px; color: var(--faint); }
.lg-field { display: grid; gap: 6px; font-weight: 700; color: var(--heading); }
.lg-field input, .lg-field textarea, .lg-range input { font: inherit; font-weight: 500; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--heading); }
.lg-range { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .lg-range label { display: grid; gap: 6px; font-weight: 700; color: var(--heading); }
.lg-save { width: 100%; min-height: 54px; font-size: 16px; }
.lg-past summary { cursor: pointer; font-weight: 700; color: var(--accent); padding: 8px 0; }
.lg-past[open] { display: grid; gap: 12px; }
.lg-runs { display: grid; gap: 8px; }
.lg-run { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 20px; background: var(--gold-tint); box-shadow: inset 0 0 0 1.5px var(--gold-line); }
.lg-run > span:nth-child(2) { display: grid; flex: 1 1 140px; } .lg-run b { color: var(--heading); } .since { font: 600 24px/1.1 var(--display); color: var(--heading); font-variant-numeric: tabular-nums; }
.lg-run-e { font-size: 24px; }
.lg-warn { display: flex; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--coral-tint, #fde8e1); font-size: 14px; color: var(--heading); }
.care { margin: 0 0 18px; padding: 16px 18px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); display: grid; gap: 12px; }
.care-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.care-head h2 { display: flex; align-items: center; gap: 8px; font: 550 20px/1.2 var(--display); color: var(--heading); }
.cc-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 8px; }
.cc-empty { font-size: 14px; color: var(--soft); }
.cc-tile { display: grid; gap: 2px; text-align: left; padding: 12px 14px; border: 0; border-radius: 20px; background: var(--sunk); color: var(--heading); }
.cc-tile small { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.cc-tile b { font: 600 20px/1.15 var(--display); } .cc-tile span { font-size: 14px; color: var(--soft); }
.cc-sum { font-size: 14px; color: var(--soft); } .cc-sum b { color: var(--heading); } .cc-sum em { font-style: normal; color: var(--faint); }
.cc-cmp { display: flex; gap: 8px; font-size: 14px; color: var(--soft); }
.cc-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cc-catch { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 20px; background: var(--forest-tint); font-size: 14px; color: var(--heading); }
.cc-catch > span { flex: 1 1 220px; }
.cc-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cc-notes li { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--gold-tint); font-size: 14px; color: var(--heading); }
.cc-notes li span { flex: 1; } .cc-notes small { color: var(--faint); margin-left: 4px; }
.mini { padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 99px; background: var(--surface); font-size: 12px; font-weight: 700; color: var(--accent); }
.dy-nav { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; } .dy-nav b { font: 550 20px/1.2 var(--display); color: var(--heading); }
.ico.flip { transform: scaleX(-1); }
.dy-f { margin-bottom: 10px; } .dy-sum { margin: 4px 0 14px; }
.dy-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.dy-ev { display: grid; grid-template-columns: 70px 30px 1fr auto; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.dy-ev.is-running { box-shadow: inset 0 0 0 1.5px var(--gold-line), var(--shadow); }
.dy-t { font-weight: 700; font-size: 14px; color: var(--heading); } .dy-e { font-size: 24px; }
.dy-d { display: grid; min-width: 0; } .dy-d b { font-weight: 600; font-size: 14px; color: var(--heading); } .dy-d small { font-size: 12px; color: var(--faint); }
.dy-acts { display: flex; gap: 6px; }
@media (max-width: 520px) { .dy-ev { grid-template-columns: 56px 26px 1fr; } .dy-acts { grid-column: 3; } }
.dy-pat, .dy-set { margin-top: 26px; padding: 18px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); display: grid; gap: 10px; }
.dy-list + .btn, .empty + .btn { justify-self: start; width: auto; }
.tab-diary .view > .btn { display: inline-flex; width: auto; }
.fus { display: grid; gap: 8px; margin: 0 0 14px; }
.fu { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px 16px; border-radius: 20px; background: var(--gold-tint); box-shadow: inset 0 0 0 1.5px var(--gold-line); }
.fu-e { font-size: 24px; } .fu-t { display: grid; flex: 1 1 200px; } .fu-t b { color: var(--heading); font-size: 16px; } .fu-t small { color: var(--faint); font-size: 12px; }
.fu-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.rec-sleep { margin: 0 0 18px; padding: 16px 18px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); display: grid; gap: 8px; }
.rec-sleep h2 { font: 550 20px/1.2 var(--display); color: var(--heading); }
.rec-sleep p { font-size: 14px; color: var(--soft); } .rec-sleep b { color: var(--heading); }
.rec-sleep .btn { justify-self: start; }
.help-you { margin-top: 26px; display: grid; gap: 8px; }
.first-time { padding: 14px 16px; border-radius: 20px; background: var(--forest-tint); }
.first-time ul { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 5px; font-size: 14px; color: var(--heading); }
.hidden-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.hidden-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--sunk); font-size: 14px; }
.wk-own { align-items: flex-start; } .wk-set-l small { display: block; font-weight: 500; font-size: 12px; color: var(--faint); }
.own-list { display: grid; gap: 8px; justify-items: end; }
.own-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; border-radius: 99px; background: var(--forest-tint); font-size: 14px; font-weight: 600; color: var(--heading); }
.own-add { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.own-add input, .own-add select { font: inherit; font-size: 14px; padding: 8px 10px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--heading); }
.own-add input[data-own="title"] { width: 170px; }
.ag-title.as-text { cursor: default; } .ag-title.as-text:hover { text-decoration: none; }
/* Routines and child mode */
.dy-tabs { margin: -6px 0 18px; }
.lede.sm { font-size: 16px; margin-bottom: 14px; }
.rt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-bottom: 14px; }
.rt-card { display: grid; gap: 8px; align-content: start; padding: 16px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.rt-card h3 { font: 550 20px/1.2 var(--display); color: var(--heading); }
.rt-steps { display: flex; flex-wrap: wrap; gap: 4px; font-size: 24px; }
.rt-note { display: flex; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--gold-tint); font-size: 14px; color: var(--heading); }
.rt-acts { display: grid; gap: 8px; } .rt-acts .btn { justify-self: start; }
.rt-list { margin: 8px 0; padding-left: 0; list-style: none; display: grid; gap: 4px; font-size: 14px; } .rt-list span { margin-right: 8px; }
.rt-tips { margin: 8px 0 0; padding-left: 18px; font-size: 14px; color: var(--soft); display: grid; gap: 4px; }
#childmode { position: fixed; inset: 0; z-index: 80; background: #fbf3e6; }
.cm { height: 100%; display: grid; grid-template-rows: auto 1fr auto; gap: 18px; padding: 18px 18px 28px; max-width: 720px; margin: 0 auto; }
.cm-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cm-dots { display: flex; gap: 6px; flex-wrap: wrap; } .cm-dots i { width: 14px; height: 14px; border-radius: 50%; background: #e7dccd; }
.cm-dots i.is-now { background: var(--gold); } .cm-dots i.is-done, .cm-dots i.is-help { background: var(--forest); } .cm-dots i.is-skip { background: none; border: 2px solid #cdbfae; }
.cm-exit { padding: 10px 14px; border: 0; border-radius: 99px; background: #efe4d4; font-size: 14px; font-weight: 700; color: var(--soft); user-select: none; -webkit-user-select: none; touch-action: none; }
.cm-exit.is-holding { background: var(--plum-deep); color: #fff; transition: background 1.5s; }
.cm-card { display: grid; place-items: center; align-content: center; gap: 10px; border: 0; border-radius: 20px; background: var(--surface); box-shadow: 0 16px 40px rgba(35, 22, 29, .12); color: var(--heading); text-align: center; padding: 24px; }
.cm-e { font-size: clamp(110px, 30vw, 190px); line-height: 1; }
.cm-card h2 { font: 600 clamp(34px, 8vw, 52px)/1.1 var(--display); letter-spacing: -.03em; }
.cm-card small { font-size: 16px; color: var(--faint); font-weight: 600; } .cm-card p { font-size: 20px; color: var(--soft); }
.cm-acts { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; }
.cm-btn { min-height: 78px; border: 0; border-radius: 20px; background: #efe4d4; font-size: 20px; font-weight: 800; color: var(--plum-deep); }
.cm-btn.is-done { background: var(--forest); color: #fbf3e6; font-size: 24px; } .cm-btn.is-skip { font-size: 16px; color: var(--soft); }
.find { display: flex; gap: 8px; align-items: center; margin: 0 0 12px; } .find input { flex: 1; font: inherit; padding: 12px 16px; border: 1.5px solid var(--line-2); border-radius: 99px; background: var(--surface); color: var(--heading); }
.cc-sync { font-size: 12px; color: var(--faint); display: flex; gap: 6px; align-items: center; }
.lg-sub { font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); margin: 2px 0 -4px; }
.lg-again span { font-size: 18px; }
.dy-log { margin: 4px 0 0; }

.pt-card { display: grid; gap: 8px; padding: 14px 0 16px; border-top: 1px dashed var(--line-2); }
.pt-card:first-of-type { border-top: 0; }
.pt-card h3 { font: 550 18px/1.2 var(--display); color: var(--heading); } .pt-sub { font-size: 14px; color: var(--faint); }
.pt-chart { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.pt-col { display: grid; grid-template-rows: 20px 90px auto; gap: 4px; justify-items: center; }
.pt-v { font-size: 14px; font-weight: 800; color: var(--heading); }
.pt-track { position: relative; width: 100%; max-width: 44px; height: 90px; border-radius: 12px; background: var(--sunk); display: flex; align-items: flex-end; overflow: hidden; }
.pt-fill { display: block; width: 100%; border-radius: 10px 10px 4px 4px; background: var(--forest); }
.pt-none { position: absolute; inset: 0; display: grid; place-items: center; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 10.5px; font-weight: 700; color: var(--faint); letter-spacing: .04em; background: var(--surface); border: 1.5px dashed var(--line-2); border-radius: 12px; }
.pt-col small { font-size: 12px; font-weight: 700; color: var(--faint); } .pt-col.is-today small { color: var(--coral); }
.sl-axis, .sl-row { display: grid; grid-template-columns: 52px 1fr 64px; gap: 10px; align-items: center; }
.sl-axis div { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--faint); } .sl-axis i { font-style: normal; }
.sl-row small { font-size: 12px; font-weight: 700; color: var(--faint); } .sl-row.is-today small { color: var(--coral); }
.sl-row b { font-size: 14px; font-weight: 700; color: var(--heading); text-align: right; }
.sl-track { position: relative; height: 18px; border-radius: 6px; background: var(--sunk); overflow: hidden; }
.sl-track .t { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line-2); }
.sl-track span { position: absolute; top: 2px; bottom: 2px; border-radius: 6px; background: var(--ch-sleep); } .sl-track span.is-running { background: var(--ch-running); }
@media (max-width: 520px) { .pt-chart { gap: 4px; } .sl-axis, .sl-row { grid-template-columns: 40px 1fr 52px; gap: 6px; } }
/* Get to know */
.ab { display: grid; gap: 14px; padding: 6px 4px 18px; }
.ab-top { display: flex; align-items: center; gap: 10px; } .ab-top .dt-close { position: static; margin-left: auto; }
.ab-topic { font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--accent); } .ab-n { font-size: 12px; color: var(--faint); font-weight: 700; }
.ab-bar { height: 6px; border-radius: 3px; background: var(--sunk); overflow: hidden; } .ab-bar span { display: block; height: 100%; background: var(--forest); border-radius: 3px; }
.ab-q { font: 550 24px/1.15 var(--display); letter-spacing: -.03em; color: var(--heading); } .ab-hint { font-size: 16px; color: var(--soft); }
.ab-e { font-size: 40px; }
.ab-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.ab-opt { min-height: 56px; padding: 10px 16px; border: 1.5px solid var(--line-2); border-radius: 20px; background: var(--surface); text-align: left; font-weight: 650; font-size: 16px; color: var(--heading); }
.ab-opt.is-on { background: var(--forest); border-color: var(--forest); color: #fbf3e6; }
.ab-text { font: inherit; font-size: 16px; padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: 20px; background: var(--surface); color: var(--heading); }
.ab-nav { display: flex; justify-content: space-between; gap: 10px; }
.ab-invite { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 0; border-radius: 20px; background: var(--forest-tint); box-shadow: inset 0 0 0 1.5px var(--forest); text-align: left; color: var(--heading); }
.ab-invite b { display: block; font: 550 18px/1.2 var(--display); } .ab-invite small { display: block; font-size: 14px; color: var(--soft); margin-top: 2px; }
.ab-invite > .ico { margin-left: auto; flex: none; } .ab-invite.sm { padding: 10px 12px; } .ab-invite.sm b { font-size: 16px; }
.ab-ring { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 4px var(--line-2); font-size: 12px; color: var(--faint); font-weight: 700; } .ab-ring b { font-size: 18px; color: var(--positive); display: inline; }
.ab-list ul { list-style: none; margin: 4px 0 10px; padding: 0; display: grid; gap: 6px; }
.ab-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--sunk); }
.ab-list li small { display: block; font-size: 12px; color: var(--faint); } .ab-list li b { font-size: 14px; font-weight: 600; color: var(--heading); } .ab-list li em { font-style: normal; color: var(--faint); font-weight: 500; }
.ab-said { padding: 10px 12px; border-radius: 12px; background: var(--gold-tint); font-size: 14px; color: var(--heading); margin: 6px 0; }
/* Grow: right now, and this week's picks */
.now-card { display: grid; gap: 12px; margin-bottom: 18px; padding: 18px 20px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.now-head { display: flex; gap: 12px; align-items: center; } .now-head h2 { font: 550 20px/1.2 var(--display); letter-spacing: -.03em; color: var(--heading); }
.now-head .avatar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--forest); color: #fbf3e6; font: 600 20px/1 var(--display); flex: none; }
.now-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.now-list li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 20px; background: var(--sunk); }
.now-list li > span:first-child { font-size: 20px; } .now-list b { display: block; font-size: 14px; font-weight: 600; color: var(--heading); line-height: 1.3; } .now-list small { font-size: 12px; color: var(--faint); }
.picks { margin-bottom: 22px; } .picks-head { margin-bottom: 10px; }
.pick-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.act-card { display: grid; gap: 6px; align-content: start; text-align: left; padding: 16px; border: 0; border-radius: 20px; color: var(--heading); min-height: 170px; }
.act-card.tint-forest { background: var(--forest-tint); } .act-card.tint-gold { background: var(--gold-tint); } .act-card.tint-plum { background: var(--plum-tint); } .act-card.tint-coral { background: #f8e3dc; } .act-card.tint-night { background: #e6e2f2; }
.act-dom { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.act-card strong { font: 550 20px/1.15 var(--display); letter-spacing: -.02em; }
.act-because { font-size: 14px; font-weight: 700; color: var(--positive); } .act-var { font-size: 14px; color: var(--soft); line-height: 1.4; }
.actv { display: grid; gap: 12px; padding: 4px 4px 16px; } .actv-why { font-size: 16px; color: var(--heading); }
.actv-needs { font-size: 14px; color: var(--soft); } .actv-needs b { color: var(--heading); margin-right: 6px; }
.actv-steps { margin: 0; padding-left: 22px; display: grid; gap: 8px; font-size: 16px; color: var(--heading); }
.actv-eh { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .actv-eh p { padding: 10px 12px; border-radius: 12px; background: var(--sunk); font-size: 14px; color: var(--soft); } .actv-eh b { display: block; color: var(--heading); }
.actv-vars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; } .actv-vars li { padding: 10px 12px; border-radius: 12px; background: var(--sunk); font-size: 14px; color: var(--soft); } .actv-vars li b { display: block; color: var(--heading); } .actv-vars li.is-love { background: var(--gold-tint); }
.actv-acts { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 520px) { .actv-eh { grid-template-columns: 1fr; } }
.area-rich { display: grid; gap: 12px; margin: 18px 0; }
.ar-now { padding: 16px 18px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); } .ar-now p { font-size: 16px; color: var(--heading); } .ar-now ul { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; font-size: 14px; color: var(--soft); }
/* Explore: our own map, then shelves of picture cards */
.mapx { display: grid; gap: 10px; margin: 4px 0 24px; padding: 16px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.mapx-head h2 { font: 550 20px/1.2 var(--display); color: var(--heading); } .mapx-head small { font-size: 14px; color: var(--faint); }
.mapx-svg { width: 100%; height: auto; display: block; }
.mp-bg { fill: #e9f0e2; }
.mp-lead { stroke: #1f4a3a; stroke-width: 1.5; opacity: .55; } .mp-spot { fill: #1f4a3a; }
.mp-ring { fill: none; stroke: #a9bd98; stroke-width: 1.2; stroke-dasharray: 3 5; } .mp-rl { font: 700 11px var(--sans, system-ui); fill: #6f8a5d; }
.mp-town { font: 700 10.5px var(--sans, system-ui); fill: #5b6f4d; letter-spacing: .04em; text-transform: uppercase; paint-order: stroke; stroke: #e9f0e2; stroke-width: 4px; stroke-linejoin: round; }
.mp-dot { fill: #9db48a; }
.mp-home circle { fill: var(--plum-deep); } .mp-home path { fill: #fbf3e6; } .mp-hl { font: 800 12px var(--sans, system-ui); fill: var(--plum-deep); }
.mp-pin { cursor: pointer; } .mp-pin circle { fill: var(--forest); stroke: #fbf3e6; stroke-width: 2.5; } .mp-pin text { font: 800 12px var(--sans, system-ui); fill: #fbf3e6; text-anchor: middle; pointer-events: none; }
.mp-pin.is-on circle { fill: var(--gold); } .mp-pin.is-on text { fill: var(--plum-deep); }
.mapx-body { display: grid; gap: 12px; }
.mapx-side { display: grid; gap: 8px; align-content: start; min-width: 0; }
@media (min-width: 900px) { .mapx-body { grid-template-columns: minmax(0, 1.15fr) minmax(260px, 1fr); align-items: start; } .mapx-side { max-height: 460px; overflow-y: auto; } }
.mapx-key { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mapx-key button { display: flex; gap: 10px; align-items: center; width: 100%; min-height: 48px; padding: 8px 10px; border: 0; border-radius: 12px; background: var(--sunk); text-align: left; font-size: 14px; font-weight: 600; color: var(--heading); }
.mapx-key b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--forest); color: #fbf3e6; font-size: 12px; flex: none; }
.mapx-sel .xcard { width: 100%; max-width: none; flex-direction: row; }
.shelf-x { margin: 0 0 22px; } .shelf-x-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; } .shelf-x-head h2 { font: 550 20px/1.2 var(--display); letter-spacing: -.03em; color: var(--heading); }
.xcards { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 12px; scrollbar-width: thin; }
.xcard { scroll-snap-align: start; display: flex; flex-direction: column; text-align: left; padding: 0; border: 0; border-radius: 20px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); color: var(--heading); }
.xcard:hover { transform: translateY(-2px); transition: transform .2s; }
.xc-art { position: relative; display: grid; place-items: center; height: 120px; font-size: 54px; flex: none; }
.mapx-sel .xc-art { width: 120px; height: auto; min-height: 110px; }
.xc-art em { position: absolute; left: 10px; top: 10px; padding: 3px 9px; border-radius: 99px; background: var(--plum-deep); color: #fbf3e6; font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.xc-art.tint-sky { background: #dcebf2; } .xc-art.tint-plum { background: var(--plum-tint); } .xc-art.tint-forest { background: var(--forest-tint); } .xc-art.tint-gold { background: var(--gold-tint); } .xc-art.tint-coral { background: #f8e3dc; }
.xc-body { display: grid; gap: 4px; padding: 12px 14px 14px; } .xc-body strong { font: 550 18px/1.2 var(--display); letter-spacing: -.02em; }
.xc-why { font-size: 14px; color: var(--positive); font-weight: 600; line-height: 1.35; } .xc-meta { font-size: 12px; color: var(--faint); font-weight: 600; }
.lens-back { margin-bottom: 6px; }
.mp-pin text.mp-farl { font: 700 10.5px var(--sans, system-ui); fill: #1f4a3a; }
.mp-pin.is-far circle { fill: #fbf3e6; stroke: var(--forest); stroke-width: 2.5; } .mp-pin.is-far > text:not(.mp-far) { fill: var(--forest); }
.mapx-key span { display: grid; line-height: 1.25; min-width: 0; } .mapx-key small { font-size: 12px; font-weight: 500; color: var(--faint); }
.mapx-key button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--forest); }
/* Choosing a day out */
.dp { display: grid; gap: 12px; padding: 4px 4px 16px; }
.dp-read { font-size: 16px; color: var(--soft); padding: 10px 14px; border-radius: 20px; background: var(--sunk); }
.dp-opts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dp-opt { display: grid; gap: 6px; padding: 16px 18px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.dp-opt.is-top { box-shadow: inset 0 0 0 2px var(--forest); background: var(--forest-tint); }
.dp-opt.is-ticket { background: var(--gold-tint); }
.dp-top { display: flex; gap: 8px; align-items: center; } .dp-n { font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--accent); }
.dp-top em { font-style: normal; padding: 2px 8px; border-radius: 99px; background: var(--gold); font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--plum-deep); }
.dp-opt h3 { font: 550 20px/1.15 var(--display); letter-spacing: -.03em; color: var(--heading); }
.dp-when { font-size: 14px; color: var(--soft); } .dp-when b { color: var(--heading); }
.dp-foot { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }
.pt-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.pt-track .pt-ghost { position: absolute; left: 12%; right: 12%; bottom: 0; border: 2px dashed var(--ch-last); border-bottom: 0; border-radius: 8px 8px 0 0; }
.pt-track .pt-fill { position: relative; z-index: 1; width: 64%; margin: 0 auto; }
.pt-say { font-size: 16px; color: var(--heading); padding: 10px 14px; border-radius: 12px; background: var(--forest-tint); margin-top: 6px; }
.pt-key { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--faint); font-weight: 600; margin-top: 4px; }
.pt-key span { display: inline-block; width: 14px; height: 10px; border-radius: 3px; margin-right: -8px; vertical-align: -1px; }
.k-this { background: var(--forest); } .k-last { border: 2px dashed var(--ch-last); } .k-run { background: #b7a8de; }
.sl-track span { background: #6f5ca3; }
.ov { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ov button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; border-radius: 20px; background: var(--sunk); text-align: left; color: var(--heading); }
.ov-t { flex: 1; display: grid; gap: 2px; } .ov-t b { font-size: 16px; } .ov-t small { font-size: 14px; color: var(--soft); }
.ov-dots { display: flex; gap: 4px; } .ov-dots i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--line-2); } .ov-dots i.on { background: var(--forest); border-color: var(--forest); }
.ov-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; } .ov-notes li { padding: 8px 12px; border-radius: 12px; background: var(--sunk); font-size: 14px; } .ov-notes small { font-weight: 800; color: var(--faint); margin-right: 8px; }
/* Activity art, library and play mode */
.aa { display: block; width: 100%; height: auto; }
.aa .aa-main { animation: none; transform-box: fill-box; transform-origin: center; }
.aa .aa-t { animation: none; transform-box: fill-box; transform-origin: center; } .aa .aa-t1 { animation-delay: .6s; } .aa .aa-t2 { animation-delay: 1.2s; }
@keyframes aaBob { 50% { transform: translateY(-5px) rotate(-3deg); } }
@keyframes aaTw { 50% { transform: scale(1.15) rotate(6deg); opacity: .85; } }
@media (prefers-reduced-motion: reduce) { .aa .aa-main, .aa .aa-t { animation: none; } }
.act-card .aa { border-radius: 16px; margin-bottom: 4px; }
.actv-art .aa { border-radius: 20px; max-height: 220px; object-fit: cover; }
.actv-skills { display: flex; gap: 6px; flex-wrap: wrap; } .actv-skills span { padding: 3px 10px; border-radius: 99px; background: var(--sunk); font-size: 12px; font-weight: 700; color: var(--soft); }
.lib-entry { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 14px 16px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); text-decoration: none; color: var(--heading); }
.lib-entry > span:first-child { font-size: 32px; } .lib-entry b { display: block; font: 550 18px/1.2 var(--display); } .lib-entry small { color: var(--soft); font-size: 14px; } .lib-entry > .ico { margin-left: auto; }
.lib-f { display: grid; gap: 8px; margin-bottom: 12px; }
.lens-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; } .lens-row .chip { flex: none; }
.chip.sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.lib-have summary { cursor: pointer; font-weight: 700; color: var(--heading); padding: 6px 0; } .lib-have summary small { font-weight: 500; color: var(--faint); margin-left: 6px; } .lib-have summary b { color: var(--positive); margin-left: 6px; }
.lib-have .lens-row { flex-wrap: wrap; }
.lib-n { font-size: 14px; font-weight: 700; color: var(--faint); margin: 0 0 8px; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.lib-card { display: flex; flex-direction: column; text-align: left; padding: 0; border: 0; border-radius: 20px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); color: var(--heading); }
.lib-card:hover { transform: translateY(-2px); transition: transform .2s; }
.lib-b { display: grid; gap: 3px; padding: 10px 12px 12px; } .lib-b strong { font: 550 16px/1.2 var(--display); }
.lib-meta { font-size: 12px; color: var(--faint); font-weight: 600; } .lib-meta em { font-style: normal; color: var(--positive); font-weight: 800; }
.lib-love { font-size: 12px; color: var(--accent); font-weight: 700; }
#playmode { position: fixed; inset: 0; z-index: 80; background: #fbf6ee; overflow-y: auto; }
.pm { max-width: 760px; margin: 0 auto; padding: 14px 16px 40px; display: grid; gap: 14px; }
.pm-top { display: flex; align-items: center; gap: 12px; } .pm-top b { font: 550 18px/1.2 var(--display); color: var(--heading); flex: 1; }
.pm-x { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 50%; background: var(--surface); color: var(--heading); }
.pm-dots { display: flex; gap: 5px; } .pm-dots i { width: 10px; height: 10px; border-radius: 50%; background: #e7dccd; } .pm-dots i.is-now { background: var(--gold); } .pm-dots i.is-done { background: var(--forest); }
.pm-art .aa { border-radius: 26px; max-height: 200px; }
.pm-card { padding: 20px; border-radius: 20px; background: var(--surface); box-shadow: 0 12px 30px rgba(35, 22, 29, .08); display: grid; gap: 12px; }
.pm-n { font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--accent); }
.pm-step { font: 550 clamp(22px, 4.5vw, 30px)/1.25 var(--display); letter-spacing: -.02em; color: var(--heading); }
.pm-acts { display: flex; gap: 8px; flex-wrap: wrap; } .pm-acts .btn-primary { margin-left: auto; }
.pm-help { padding: 16px; border-radius: 20px; background: var(--forest-tint); display: grid; gap: 12px; }
.pm-h { font-size: 14px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--positive); }
.pm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.pm-tile { display: grid; justify-items: center; gap: 2px; padding: 12px 6px; border: 0; border-radius: 20px; background: var(--surface); color: var(--heading); }
.pm-tile span { font-size: 40px; line-height: 1; } .pm-tile b { font-size: 16px; } .pm-tile small { font-size: 14px; color: var(--soft); font-weight: 700; }
.pm-tile.pop span, .pm-dot.is-on, .pm-die.is-on b { animation: pmPop .45s ease; }
@keyframes pmPop { 40% { transform: scale(1.3) rotate(-6deg); } }
.pm-count { display: flex; flex-wrap: wrap; gap: 8px; }
.pm-dot { position: relative; width: 64px; height: 64px; border: 0; border-radius: 50%; background: var(--surface); font-size: 32px; opacity: .55; } .pm-dot.is-on { opacity: 1; box-shadow: 0 0 0 3px var(--forest); }
.pm-dot small { position: absolute; right: -2px; top: -2px; width: 22px; height: 22px; border-radius: 50%; background: var(--forest); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.pm-hunt { display: grid; justify-items: center; gap: 8px; padding: 14px; border-radius: 20px; background: var(--surface); text-align: center; } .pm-hunt b { font: 550 24px/1.2 var(--display); color: var(--heading); }
.pm-big { font-size: 84px; line-height: 1; } .pm-swatch { width: 110px; height: 110px; border-radius: 50%; box-shadow: inset 0 0 0 3px rgba(0,0,0,.08); }
.pm-wiggle { animation: pmWig 1.4s ease-in-out infinite; } @keyframes pmWig { 25% { transform: rotate(-10deg); } 75% { transform: rotate(10deg) translateY(-6px); } }
.pm-dice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pm-die { display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 120px; border-radius: 22px; background: var(--surface); font: 600 30px var(--display); color: var(--faint); }
.pm-die b { font-size: 54px; } .pm-die small { font-size: 14px; color: var(--heading); font-weight: 700; font-family: inherit; }
.pm-rhyme { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; } .pm-rhyme button { width: 100%; text-align: left; padding: 8px 12px; border: 0; border-radius: 12px; background: var(--surface); font-size: 18px; color: var(--heading); } .pm-rhyme li.is-on button { background: var(--gold-tint); font-weight: 700; }
.pm-timer { width: 160px; height: 160px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: inset 0 0 0 10px var(--sunk); position: relative; }
.pm-timer b { font: 600 36px var(--display); color: var(--heading); }
.pm-peek { position: relative; display: grid; place-items: center; height: 180px; border: 0; border-radius: 20px; background: var(--surface); }
.pm-peek .pm-cloud { position: absolute; font-size: 130px; transition: transform .4s, opacity .4s; } .pm-peek.is-open .pm-cloud { transform: translateY(-90px) scale(.6); opacity: 0; }
.pm-end { text-align: center; position: relative; overflow: hidden; } .pm-end h2 { font: 600 32px var(--display); color: var(--heading); } .pm-end .pm-acts { justify-content: center; } .pm-end .pm-acts .btn-primary { margin-left: 0; }
.pm-confetti i { position: absolute; top: -20px; left: calc(10% + var(--k) * 18%); font-style: normal; font-size: 24px; animation: pmFall 2.4s ease-in calc(var(--k) * .2s) infinite; }
@keyframes pmFall { to { transform: translateY(260px) rotate(200deg); opacity: 0; } }
.pm-var { padding: 12px 14px; border-radius: 20px; background: var(--gold-tint); font-size: 16px; color: var(--heading); }
.pm-game { justify-self: start; }
.pm-tip { font-size: 16px; color: var(--heading); }
.pm-clap { animation: pmClap .6s ease-in-out infinite; } @keyframes pmClap { 50% { transform: scale(1.08); } }
/* The Log button never covers the last thing on the page */
@media (max-width: 899px) { .view { padding-bottom: calc(102px + env(safe-area-inset-bottom)); } }
.app-banner { position: relative; z-index: 1; margin: 0 0 8px; padding: calc(9px + env(safe-area-inset-top)) 60px 9px 16px; min-height: calc(58px + env(safe-area-inset-top)); display: grid; align-content: center; text-wrap: balance; background: var(--gold-tint); color: var(--heading); font-size: 14px; text-align: center; box-shadow: 0 1px 0 var(--line-2); }
@media (min-width: 900px) { .app-banner { border-radius: 20px; margin: 16px 16px 0; padding: 9px 16px; } }
.pt-fill.is-part { background: none; border: 2px solid var(--forest); border-bottom: 0; opacity: .7; }
.k-part { border: 2px solid var(--forest); opacity: .7; }
.pm-adult .pm-say-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 1.02rem; }
.pv h3 { font-size: 1rem; margin: 18px 0 6px; }
.pv-list { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.fam-consent { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0 10px; font-size: .92rem; }
.fam-consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; }

/* Coral as text uses the darker ink (4.5:1); coral stays a fill colour (designer review D-03). */
.card-dinner .card-kicker, .pl-day, .ag-date small, .wd-meal-t small, .ag-meal-t small, .dt-recipe .dt-kicker, .cook-n, .rc-note strong, .dn-tonight small, .pt-col.is-today small, .sl-row.is-today small, .wean-head .card-kicker { color: var(--coral-ink); }
.mp-rl { fill: #55704a; } .mp-town { fill: #475a3b; }
/* Control borders reach 3:1 (D-04). */
input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea, .opt, .tick .box, .daychip, .cook-dots { border-color: var(--line-ui); }
.gl.is-nursery .gl-mark { opacity: 1; }
.band:not(.is-now) .band-track i { opacity: .75; }
.ag-why1 { display: flex; gap: 8px; margin: 6px 0 0; font-size: 14px; color: var(--soft); }
.ag-more { margin-top: 6px; font-size: 14px; }
.ag-more summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 14px; min-height: 32px; display: flex; align-items: center; }
.ag-more[open] summary { margin-bottom: 4px; }
.cc-quick { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
.cc-q b { font-size: 14px; font-weight: 700; color: var(--heading); } .cc-q small { font-size: 12px; font-weight: 500; color: var(--soft); text-align: center; line-height: 1.2; }
.cc-q.is-on { background: var(--night-tint); }
.cc-q { display: grid; justify-items: center; gap: 4px; padding: 12px 4px; border: 0; border-radius: 20px; background: var(--sunk); font-size: 14px; font-weight: 600; color: var(--heading); min-height: 72px; }
.cc-q span { font-size: 24px; line-height: 1; }
.cc-links { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 10px; font-size: 14px; color: var(--faint); }
.wk-sub { display: inline-flex; gap: 2px; padding: 3px; margin-top: 12px; border-radius: 99px; background: var(--sunk); }
.wk-sub a { min-height: 36px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 99px; color: var(--soft); font-size: 14px; font-weight: 600; text-decoration: none; }
.wk-sub a.is-on { background: var(--surface); color: var(--heading); box-shadow: 0 1px 3px rgba(35, 22, 29, .12); }
.page-head .wk-sub:first-child { margin: 0 0 14px; }
.ob-pick { margin: 14px 0; padding: 18px; border-radius: 20px; background: var(--plum-deep); color: var(--on-strong); }
.ob-pick b { display: block; font: 550 24px/1.2 var(--display); letter-spacing: -.02em; }
.ob-pick ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: 16px; }
.ob-pick li { display: flex; gap: 8px; align-items: flex-start; } .ob-pick .ico { color: var(--gold); margin-top: 3px; }
/* Helper mode: big type, big targets (WCAG target size well above 44px), one thing at a time. */
.shell-helper .view { left: 0 !important; padding: calc(24px + env(safe-area-inset-top)) 18px 40px; font-size: 20px; }
.hp { max-width: 640px; margin: 0 auto; display: grid; gap: 16px; }
.hp-title { font: 550 32px/1.1 var(--display); color: var(--heading); letter-spacing: -.02em; }
.hp-q { font: 550 32px/1.2 var(--display); color: var(--heading); }
.hp-sub { font-weight: 700; color: var(--soft); font-size: 18px; margin-top: 4px; }
.hp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.hp-btn { display: grid; justify-items: center; align-content: center; gap: 8px; min-height: 132px; padding: 14px 10px; border: 0; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 2px var(--line-ui); color: var(--heading); font-size: 20px; font-weight: 700; text-align: center; line-height: 1.2; }
.hp-btn span { font-size: 40px; line-height: 1; }
.hp-btn:active { transform: scale(.97); background: var(--forest-tint); }
.hp-notes { padding: 14px 16px; border-radius: 20px; background: var(--gold-tint); } .hp-notes p { margin: 4px 0; } .hp-notes small { color: var(--soft); }
.hp-last { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; color: var(--soft); }
.hp-last b { color: var(--heading); }
.hp-foot { display: grid; gap: 10px; margin-top: 8px; }
.hp-link, .hp-back { min-height: 56px; border: 0; border-radius: 20px; background: var(--sunk); color: var(--heading); font-size: 18px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.bs-list { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 14px 0; font-size: 18px; } .bs-list dt { font-weight: 700; color: var(--heading); } .bs-list dd { margin: 0; }
.bs-help { padding: 14px 16px; border-radius: 20px; background: var(--coral-tint); display: grid; gap: 6px; }
.bs-acts { margin-top: 14px; }
.now-aa { display: inline-flex; gap: 6px; align-items: center; margin-top: 12px; font-weight: 600; min-height: 40px; text-align: left; }
.oops { display: grid; justify-items: center; gap: 10px; padding: 48px 20px; text-align: center; }
.oops h2 { font: 550 24px/1.2 var(--display); color: var(--heading); } .oops p { color: var(--soft); max-width: 30em; }
.oops-acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
/* Activities: moments instead of a wall of filters, and "right now" with its reasons. */
.mo-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 4px -16px 12px; padding: 2px 16px 4px; }
.mo { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 99px; background: var(--sunk); color: var(--heading); font-weight: 600; font-size: 14px; white-space: nowrap; }
.mo span { font-size: 18px; }
.mo.is-on { background: var(--plum-deep); color: var(--on-strong); }
.rn { margin: 4px 0 18px; } .rn-why { font-size: 16px; color: var(--soft); margin: 0 0 10px; }
.rn-why > svg { width: 18px; height: 18px; vertical-align: -3px; color: var(--accent); }
.rn-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.lib-card.is-big { box-shadow: inset 0 0 0 2px var(--plum-tint), var(--shadow); }
.lib-more-f { margin: 0 0 12px; } .lib-more-f > summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; color: var(--accent); font-weight: 600; }
.pm-level { margin: 0; padding: 12px 16px; border-radius: 20px; background: var(--gold-tint); color: var(--heading); font-size: 16px; }
@media (max-width: 599px) { .rn-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 70%; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 6px; scroll-padding-inline: 16px; scroll-snap-type: x mandatory; } .rn-row > * { scroll-snap-align: start; } }
.rn-row .lib-card .aa { max-height: 150px; }
.rn-all { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 600; min-height: 40px; }

/* Routines link on Grow */
.g-rt { display: grid; gap: 6px; margin: 18px 0; padding: 16px 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); color: inherit; text-decoration: none; }
.g-rt-k { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.g-rt strong { font-size: 16px; line-height: 1.3; }
.g-rt-pics { display: flex; gap: 6px; font-size: 24px; }
.g-rt small { display: inline-flex; gap: 6px; align-items: center; color: var(--soft); font-size: 14px; }
.g-rt small .ico { width: 14px; height: 14px; }

/* One "Your week" settings sheet (B4) */
.wsh .wk-set-rows { padding: 6px 0 14px; border-top: 0; }
.wsh .seg { flex-wrap: wrap; }
.wsh-open { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; }
.wsh-open .ico { width: 16px; height: 16px; }
.wsh-row { margin-top: 14px; border-radius: 20px; background: var(--sunk); }
.off-cal, .off-check { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 10px; text-align: left; }
.off-cal .ico { width: 16px; height: 16px; }

/* ── Learning games (Grow): flat colour, big pictures, gentle motion */
.gm-sec { margin: 22px 0; }
.gm-sec-head { margin-bottom: 12px; }
.gm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.gm-card { position: relative; display: grid; gap: 4px; align-content: end; min-height: 158px; padding: 14px; border: 0; border-radius: 22px; background: var(--gm-bg); color: var(--gm-ink); text-align: left; overflow: hidden; }
.gm-card-e { position: absolute; right: 10px; top: 6px; font-size: 58px; line-height: 1; }
.gm-card strong { font: 600 16.5px/1.2 var(--display); }
.gm-card small { font-size: 13px; font-weight: 600; opacity: .85; }
.gm-card:active { transform: scale(.97); }
.gm-badge { position: absolute; left: 12px; top: 12px; padding: 3px 9px; border-radius: 99px; background: var(--gm-ink); color: var(--gm-bg); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
#gamemode { position: fixed; inset: 0; z-index: 85; overflow-y: auto; background: #fbf6ee; color: #23161d; }
.gm { --gm-bg: #eee; --gm-ink: #333; min-height: 100%; max-width: 760px; margin: 0 auto; padding: 12px 16px 32px; display: grid; gap: 16px; align-content: start; }
.gm-top { display: flex; align-items: center; gap: 10px; }
.gm-top b { flex: 1; font: 600 18px/1.2 var(--display); color: #3b1f2b; }
.gm-x { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #e2d8cc; border-radius: 50%; background: var(--surface); font-size: 18px; color: #3b1f2b; }
.gm-x .ico { width: 20px; height: 20px; }
.gm-dots { display: flex; gap: 5px; } .gm-dots i { width: 9px; height: 9px; border-radius: 50%; background: #e2d8cc; } .gm-dots i.is-done { background: var(--gm-ink); } .gm-dots i.is-now { background: var(--gm-ink); box-shadow: 0 0 0 3px var(--gm-bg); }
.gm-preview { padding: 10px 14px; border-radius: 14px; background: #fbf0d6; color: #7f5810; font-size: 14px; font-weight: 600; }
.gm-ask { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 64px; padding: 12px 18px; border: 0; border-radius: 22px; background: var(--gm-bg); color: var(--gm-ink); font: 600 22px/1.25 var(--display); text-align: center; }
.gm-ask span { font-size: 22px; }
.gm-stage { display: grid; gap: 16px; justify-items: center; padding: 6px 0; }
.gm-opts { display: grid; gap: 12px; width: 100%; grid-template-columns: repeat(2, 1fr); }
.gm-opts.n3 { grid-template-columns: repeat(3, 1fr); }
.gm-opt, .gm-target, .gm-item, .gm-num, .gm-size, .gm-card2, .gm-hole, .gm-piece { border: 0; font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.gm-opt { display: grid; place-items: center; gap: 4px; aspect-ratio: 1; border-radius: 26px; background: var(--surface); box-shadow: 0 2px 0 #e9dfd2; transition: transform .15s; }
.gm-opt span { font-size: clamp(56px, 16vw, 88px); line-height: 1; }
.gm-opt small, .gm-target small { font-size: 16px; font-weight: 700; color: #3b1f2b; }
.gm-opt:active, .gm-item:active, .gm-size:active, .gm-num:active { transform: scale(.95); }
.is-no { opacity: .4; animation: gmShake .4s; }
.is-yes { box-shadow: 0 0 0 4px #3f8a5a !important; animation: gmPop .5s; }
.gm-target { display: grid; place-items: center; gap: 2px; width: 150px; height: 150px; border-radius: 50%; background: var(--gm-bg); }
.gm-target span { font-size: 76px; line-height: 1; }
.gm-why { max-width: 32ch; text-align: center; font-size: 17px; font-weight: 600; color: #1f4a3a; }
.gm-count { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 520px; }
.gm-item { position: relative; display: grid; place-items: center; width: 88px; height: 88px; border-radius: 24px; background: var(--surface); box-shadow: 0 2px 0 #e9dfd2; }
.gm-item span { font-size: 54px; line-height: 1; }
.gm-item.is-on { background: var(--gm-bg); }
.gm-item b { position: absolute; right: -4px; top: -4px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gm-ink); color: #fff; font-size: 16px; animation: gmPop .35s; }
.gm-nums { display: flex; gap: 12px; }
.gm-num { display: grid; place-items: center; gap: 2px; width: 92px; height: 92px; border-radius: 24px; background: var(--surface); box-shadow: 0 2px 0 #e9dfd2; }
.gm-num b { font: 700 40px/1 var(--display); color: var(--gm-ink); } .gm-num i { font-style: normal; font-size: 13px; letter-spacing: 1px; color: var(--gm-ink); max-width: 76px; overflow-wrap: anywhere; line-height: 1; }
.gm-holes, .gm-pieces { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; width: 100%; }
.gm-holes { padding: 16px; border-radius: 26px; background: var(--gm-bg); }
.gm-hole { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 20px; background: rgba(255, 255, 255, .55); }
.gm-hole svg, .gm-piece svg { width: 72px; height: 72px; }
.gm-outline g { fill: none; stroke: var(--gm-ink); stroke-width: 5; stroke-dasharray: 9 7; stroke-linejoin: round; }
.gm-hole.is-on svg { animation: gmPop .45s; }
.gm-piece { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 20px; background: var(--surface); box-shadow: 0 2px 0 #e9dfd2; cursor: grab; touch-action: none; position: relative; z-index: 1; }
.gm-piece.is-sel { box-shadow: 0 0 0 4px var(--gm-ink); }
.gm-piece.is-drag { z-index: 5; box-shadow: 0 14px 28px -10px rgba(35, 22, 29, .35); cursor: grabbing; }
.gm-piece-gap { width: 92px; height: 92px; }
.gm-hint { text-align: center; }
.gm-sizes { display: flex; align-items: flex-end; justify-content: center; gap: 12px; min-height: 170px; width: 100%; }
.gm-size { position: relative; display: grid; place-items: end center; padding: 12px; min-width: 76px; min-height: 76px; border-radius: 24px; background: var(--surface); box-shadow: 0 2px 0 #e9dfd2; }
.gm-size span { line-height: 1; }
.gm-size b { position: absolute; right: -4px; top: -4px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--gm-ink); color: #fff; font-size: 15px; }
.gm-seq { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 14px; border-radius: 22px; background: var(--gm-bg); }
.gm-seq span { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: var(--surface); font-size: 38px; }
.gm-seq .gm-slot { border: 3px dashed var(--gm-ink); background: transparent; font: 700 30px var(--display); color: var(--gm-ink); }
.gm-seq .gm-slot.is-yes { border-style: solid; background: var(--surface); font-size: 38px; }
.gm-pairs { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 10px; width: 100%; max-width: 480px; }
.gm-card2 { aspect-ratio: 1; border-radius: 20px; background: var(--gm-ink); display: grid; place-items: center; transition: transform .25s; }
.gm-card2 span { font-size: clamp(38px, 11vw, 60px); line-height: 1; }
.gm-card2.is-up { background: var(--surface); box-shadow: 0 2px 0 #e9dfd2; transform: rotateY(0); animation: gmFlip .25s; }
.gm-end { display: grid; justify-items: center; gap: 12px; padding: 24px 12px; text-align: center; }
.gm-end-e { font-size: 80px; animation: gmPop .6s; } .gm-end h2 { font: 600 28px/1.15 var(--display); color: #3b1f2b; } .gm-end p { font-size: 17px; color: #65555d; }
.gm-end-acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.gm-try { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 12px 16px; border: 0; border-radius: 18px; background: #f0e9df; color: #3b1f2b; text-align: left; }
.gm-try > span:first-child { font-size: 34px; } .gm-try small { display: block; font-size: 12px; color: #65555d; } .gm-try b { font-size: 16px; }
.gm-tip { padding: 12px 14px; border-radius: 16px; background: #f0e9df; color: #3b1f2b; font-size: 14.5px; }
.gm-tip summary { font-weight: 700; cursor: pointer; min-height: 28px; } .gm-tip p { margin-top: 8px; } .gm-tip a { color: #86365a; }
@keyframes gmPop { 0% { transform: scale(.7); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes gmShake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes gmFlip { from { transform: rotateY(90deg); } to { transform: rotateY(0); } }
@media (prefers-reduced-motion: reduce) { .gm *, .gm-card { animation: none !important; transition: none !important; } }
@media (min-width: 760px) { .gm-opts { grid-template-columns: repeat(4, 1fr); } .gm-opts.n2 { grid-template-columns: repeat(2, 200px); justify-content: center; } .gm-opts.n3 { grid-template-columns: repeat(3, 180px); justify-content: center; } }

/* Small breaks from the consultancy pass (U1.8) */
.dt-recipe .rc-head { padding: 0 22px; }
@media (max-width: 759px) { .dt-recipe .dt-body { display: flex; flex-direction: column; } .dt-recipe .dt-side { order: -1; } .dt-recipe .rc-art { margin: 0 16px; } }
.why-opts { display: grid; gap: 10px; margin: 14px 0 6px; }
.why-opt { display: grid; gap: 2px; min-height: 60px; padding: 12px 16px; border: 1.5px solid var(--line-2); border-radius: 20px; background: var(--surface); color: var(--heading); text-align: left; }
.why-opt b { font-size: 16px; } .why-opt small { font-size: 14px; color: var(--soft); }
.why-opt.is-on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.card-tonight .night-plan { list-style: none; margin: 12px 0 8px; padding: 0; display: grid; gap: 2px; }
.night-plan li { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line-2); }
.night-plan li:last-child { border-bottom: 0; }
.night-plan b { font-size: 15px; color: var(--accent); }
.night-plan strong { display: block; font-size: 16px; color: var(--heading); } .night-plan small { font-size: 14px; color: var(--soft); }
.rt-today { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 12px; padding: 10px 12px; border-radius: 12px; background: var(--night-tint); color: var(--heading); font-size: 14px; }
.rt-today .ico { flex: none; width: 18px; height: 18px; margin-top: 2px; }

/* Play mode, one screen (U2.3) */
.pm { padding-bottom: 110px; }
.pm-mins { padding: 4px 10px; border-radius: 99px; background: var(--sunk); font-size: 14px; font-weight: 700; color: var(--soft); }
.pm-hero { display: grid; gap: 12px; }
@media (min-width: 640px) { .pm-hero { grid-template-columns: 1.2fr 1fr; align-items: center; } }
.pm-art .aa { max-height: 170px; width: 100%; }
.pm-needs ul { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.pm-needs li { padding: 6px 12px; border-radius: 12px; background: var(--sunk); font-size: 14px; font-weight: 600; color: var(--heading); }
.pm-var { display: flex; gap: 8px; padding: 12px 14px; border-radius: 20px; background: var(--coral-tint); color: var(--heading); font-size: 16px; }
.pm-lv { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pm-lv .pm-level { flex-basis: 100%; margin: 0; }
.pm-level small { color: var(--soft); font-weight: 500; }
.pm-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: none; }
.pm-steps li { display: flex; align-items: flex-start; gap: 6px; border-radius: 20px; background: var(--surface); box-shadow: 0 1px 0 var(--line-2); }
.pm-steps li > button:first-child { flex: 1; display: flex; gap: 12px; align-items: flex-start; padding: 14px 14px; border: 0; background: none; text-align: left; color: var(--heading); font: 500 16px/1.4 var(--ui); min-height: 56px; }
.pm-num { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--sunk); font-weight: 800; font-size: 14px; color: var(--soft); }
.pm-steps li.is-now { box-shadow: 0 0 0 2px var(--accent); }
.pm-steps li.is-now .pm-t { font: 550 clamp(19px, 4.6vw, 24px)/1.3 var(--display); letter-spacing: -.01em; }
.pm-steps li.is-now .pm-num { background: var(--accent-fill); color: #fbf3e6; }
.pm-steps li.is-done .pm-t { color: var(--soft); text-decoration: line-through; text-decoration-color: var(--line-2); }
.pm-steps li.is-done .pm-num { background: var(--forest-tint); color: var(--positive); }
.pm-read { flex: none; width: 48px; height: 48px; margin: 6px 6px 0 0; border: 0; border-radius: 50%; background: var(--sunk); font-size: 20px; }
.pm-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; gap: 10px; justify-content: center; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line-2); }
.pm-bar .btn { min-height: 52px; } .pm-go { flex: 1; max-width: 460px; font-size: 18px; }
.pm-tm { flex: none; min-width: 96px; } .pm-tm.is-on { background: var(--night-tint); font-variant-numeric: tabular-nums; }
.pm-out { justify-content: center; }
.pm-next-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.pm-next-card { display: grid; gap: 4px; padding: 0 0 12px; border: 0; border-radius: 20px; overflow: hidden; background: var(--surface); text-align: left; color: var(--heading); }
.pm-next-card .aa { width: 100%; height: auto; } .pm-next-card b, .pm-next-card small { padding: 0 12px; } .pm-next-card small { color: var(--soft); font-size: 14px; }

/* Grow in three parts (U2.4) */
.g-sec { margin: 30px 0 12px; font: 600 24px/1.2 var(--display); letter-spacing: -.02em; color: var(--heading); }
.g-sec:first-of-type { margin-top: 8px; }
.g-links { display: grid; gap: 10px; }
.g-link, .g-help > summary { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 12px 16px; border: 0; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); color: var(--heading); text-align: left; text-decoration: none; cursor: pointer; }
.g-link > span:first-child, .g-help > summary > span:first-child { font-size: 24px; flex: none; }
.g-link > span:nth-child(2), .g-help > summary > span:nth-child(2) { flex: 1; display: grid; gap: 2px; } .g-link b, .g-help b { font-size: 16px; } .g-link small, .g-help small { font-size: 14px; color: var(--soft); }
.g-link .ico { width: 18px; height: 18px; flex: none; color: var(--soft); }
.g-help { border-radius: 20px; } .g-help > summary { list-style: none; } .g-help > summary::-webkit-details-marker { display: none; }
.g-help[open] > summary { border-radius: 20px 20px 0 0; box-shadow: none; }
.g-help > :not(summary) { padding: 0 4px; }

/* Week: one row per day, opens on tap (U2.6) */
.ag { gap: 10px; }
.ag-day { gap: 12px; padding: 0; }
.ag-day.is-open { padding-bottom: 16px; }
.ag-day > .ag-body, .ag-day > :not(.ag-row) { margin: 0 16px; }
.ag-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto 20px; align-items: center; gap: 12px; width: 100%; min-height: 72px; padding: 12px 14px 12px 16px; border: 0; border-radius: 20px; background: none; color: inherit; text-align: left; }
.ag-row .ag-date { display: grid; grid-template-columns: none; justify-items: start; gap: 0; }
.ag-row .ag-date small { grid-column: auto; font-size: 12px; }
.ag-row .ag-date b { font-size: 28px; }
.ag-sum { display: grid; gap: 1px; min-width: 0; }
.ag-sum small { font-size: 12px; font-weight: 700; color: var(--accent); min-height: 0; }
.ag-sum small:empty { display: none; }
.ag-sum b { font-size: 16px; font-weight: 600; color: var(--heading); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-sum em { font-style: normal; font-size: 14px; color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-row .ag-wx { font-size: 14px; }
.ag-chev .ico { width: 18px; height: 18px; color: var(--soft); transform: rotate(90deg); transition: transform .2s; }
.ag-day.is-open .ag-chev .ico { transform: rotate(-90deg); }
.ag-day.is-idea .ag-sum b { color: var(--heading); }

/* Explore: When as one control, What as one row of chips (U2.7) */
.x-when { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 10px; }
.x-when button { white-space: nowrap; font-size: 14px; }
.x-what { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 16px; padding: 2px 16px 4px; scroll-padding-inline: 16px; }
.x-what::-webkit-scrollbar { display: none; }
.x-what .chip { flex: none; white-space: nowrap; }
@media (min-width: 900px) { .x-what { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; } }

/* Dinners: the list before the recipe box (U2.8) */
.basket-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.rbox-wrap > summary { display: grid; gap: 2px; padding: 16px 18px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); cursor: pointer; list-style: none; color: var(--heading); }
.rbox-wrap > summary::-webkit-details-marker { display: none; }
.rbox-wrap > summary b { font-size: 16px; } .rbox-wrap > summary small { font-size: 14px; color: var(--soft); }
.rbox-wrap[open] > summary { margin-bottom: 12px; }
.ob-err { margin: 6px 0 10px; padding: 10px 14px; border-radius: 12px; background: var(--coral-tint); color: var(--coral-ink); font-weight: 600; font-size: 16px; }
.off-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; } .off-acts .chipbtn { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; } .off-acts .ico { width: 16px; height: 16px; }

/* Pictures move only where you're looking: in play mode, or the card under your finger or pointer (review V-43) */
.pm-art .aa .aa-main, .lib-card:hover .aa .aa-main, .lib-card:focus-visible .aa .aa-main { animation: aaBob 3.2s ease-in-out infinite; }
.pm-art .aa .aa-t { animation: aaTw 2.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .pm-art .aa *, .lib-card .aa * { animation: none !important; } }

/* Line icons in place of interface emoji (U3.4) */
.cc-q .ti, .lg-tile .ti { width: 28px; height: 28px; color: var(--accent); }
.cc-q .ti svg, .lg-tile .ti svg { width: 100%; height: 100%; }
.hw .hw-i { width: 26px; height: 26px; color: var(--heading); }
.x-what .chip .ico { width: 17px; height: 17px; }
.g-link .g-i, .g-help .g-i { width: 26px; height: 26px; flex: none; color: var(--accent); }
.ico.wx { width: 18px; height: 18px; vertical-align: -3px; }
.gl-wx .ico.wx { width: 16px; height: 16px; }

/* ── Two badge styles, and nothing under 12px (review V-30).
   A label says what something is (Pool, Talking, Learned): small capitals on a soft square.
   A flag says something about it now (One day only, Leftovers, Preview): a solid pill.
   Colour can follow meaning; shape, size and type never change. */
.rec-kind, .area-badge, .sample-tag, .learned-tag {
  font-size: var(--t-xs); font-weight: 600; line-height: 1.2; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: var(--r-xs); }
.badge-oneoff, .pl-badge, .gm-badge, .xc-art em, .ag-tag em, .dp-top em {
  font-size: var(--t-xs); font-weight: 700; line-height: 1.2; letter-spacing: .02em; text-transform: none; padding: 4px 10px; border-radius: var(--r-pill); }
.pick-stamp em, .dt-stamp em { font-size: var(--t-xs); letter-spacing: 0; text-transform: none; }
.daychip small, .gl-wx i, .pt-none, .ribbon-now-label, .wk-day, .gl small, .stub { font-size: var(--t-xs); }
.dl-ends, .strip-scale { font-size: var(--t-xs); }

/* ── One rhythm (review V-37): 32px between the sections of a page, 16px between a section's own parts.
   .view is a block, so these collapse with whatever margin the previous block already has. */
.view > .today-stack, .view > .shelf, .view > .shelf-x, .view > .g-sec, .view > .coming, .view > .noticed, .view > .ag,
.view > .wk-glance, .view > .wk-foot, .view > .dy-pat, .view > .profile, .view > .block { margin-top: var(--s-6); }
.view > .ask-field { margin-bottom: var(--s-4); }
.view > .page-head + .ask-field { margin-top: 0; }
.view > .ask-field + .g-sec { margin-top: var(--s-5); }
.view > .g-sec + * { margin-top: 0; }
.view > .rn, .view > .gm-sec, .view > .g-rt { margin-bottom: 0; }
.view > .gm-sec, .view > .g-rt, .view > .lib-entry { margin-top: var(--s-4); }

/* ── Place art: two inks per tint (review V-9). currentColor is the deep ink, --art-2 the mid one. */
.pa { display: block; width: 100%; height: 100%; max-width: 132px; max-height: 88px; }
:is(.xc-art, .dt-art).tint-forest { --art-bg: var(--forest-tint); --art-1: #1f4a3a; --art-2: #8fbf98; }
:is(.xc-art, .dt-art).tint-plum { --art-bg: var(--plum-tint); --art-1: #86365a; --art-2: #e2a9c2; }
:is(.xc-art, .dt-art).tint-gold { --art-bg: var(--gold-tint); --art-1: #7f5810; --art-2: #f2c97a; }
:is(.xc-art, .dt-art).tint-coral { --art-bg: var(--coral-tint); --art-1: #a3402b; --art-2: #f0a48e; }
:is(.xc-art, .dt-art).tint-sky { --art-bg: #dcebf2; --art-1: #2c5f78; --art-2: #9fcbe0; }
.xc-art, .dt-art { color: var(--art-1); }
.xc-art .pa { width: 70%; height: 86px; }
.dt-art { display: grid; place-items: center; width: 96px; height: 70px; border-radius: var(--r-md); background: var(--art-bg); margin-bottom: 16px; padding: 6px; }
.ri, .dt-ci { display: inline-flex; flex: none; }
.ri svg { width: 16px; height: 16px; color: var(--accent); }
.dt-ci svg { width: 16px; height: 16px; }
.chipbtn > .ico svg { width: 16px; height: 16px; }
.ag-tag > .ico svg { width: 16px; height: 16px; }
.ag-sum em { display: inline-flex; align-items: center; gap: 4px; } .ag-sum em .ico svg { width: 14px; height: 14px; }
.wd-plate-off .ico svg { width: 22px; height: 22px; color: var(--faint); }
.map-peek > .ico svg { width: 22px; height: 22px; color: var(--accent); }

/* ── Handover card (review D1) */
.handover { margin: 0 16px 16px; padding: 20px; border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.ho-tag { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: var(--t-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.ho-tag .ico svg { width: 16px; height: 16px; }
.ho-lines { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.ho-lines li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: var(--t-sm); line-height: 1.4; color: var(--ink); }
.ho-i svg { width: 18px; height: 18px; color: var(--accent); margin-top: 1px; }
.ho-empty { margin: 8px 0 0; color: var(--soft); font-size: var(--t-sm); }
.ho-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.ho-acts .btn .ico svg { width: 16px; height: 16px; }
.handover .fine { margin-top: 12px; }
.area > .area-ico { display: inline-flex; margin-bottom: 8px; } .area > .area-ico svg { width: 28px !important; height: 28px !important; }
.garden-ico svg { width: 30px; height: 30px; color: var(--accent); }
.area-switch a .ico svg { width: 18px; height: 18px; }
.shelf-sub { margin: -4px 0 12px; font-size: var(--t-sm); color: var(--soft); }
.journey { margin: 0 16px 16px; padding: 20px; border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.journey .ho-i svg { width: 16px; height: 16px; }
.jy-pack { margin-top: 12px; font-size: var(--t-sm); } .jy-pack summary { cursor: pointer; font-weight: 600; color: var(--accent); min-height: 44px; display: flex; align-items: center; }
.jy-pack ul { margin: 4px 0 0; padding-left: 20px; color: var(--ink); }
.trip-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.trip-form input { min-height: 44px; padding: 0 12px; border-radius: var(--r-xs); border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; }
.trip-form input[name="outward"] { width: 120px; text-transform: uppercase; }
.trip-form label { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-sm); color: var(--soft); }
.trip-form .ob-err { flex-basis: 100%; margin: 0; }
.trip-form .ob-err:empty { display: none; }
.chip-file { cursor: pointer; display: inline-flex; align-items: center; margin-top: 8px; }


.mapx-map { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; isolation: isolate; }
.mapx-map .mapx-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mapx-map .mp-dot { fill: var(--plum); stroke: #fff; stroke-width: 1.5; }
.mapx-map .mp-hl { font: 700 12px var(--sans, system-ui); fill: var(--plum-deep); paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.mapx-map .mp-lead { stroke: var(--plum-deep); stroke-width: 1.5; }
.mapx-map .mp-spot { fill: var(--plum-deep); stroke: #fff; stroke-width: 1.5; }
.mp-scale rect { fill: rgba(255, 255, 255, .85); } .mp-scale line { stroke: var(--plum-deep); stroke-width: 3; stroke-linecap: round; }
.mp-scale text { font: 700 12px var(--sans, system-ui); fill: var(--plum-deep); }
.mapx-attr { position: absolute; right: 0; bottom: 0; padding: 2px 6px; border-top-left-radius: 6px; background: rgba(255, 255, 255, .85); color: #333; font-size: var(--t-xs); text-decoration: none; }
.mapx-attr { font-size: var(--t-xs); line-height: 1.4; }
.mapx-map .mp-pin text.mp-farl { paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
.fld-note { display: block; margin-top: 4px; font-size: var(--t-xs); color: var(--soft); font-weight: 400; }

/* ── Our own base map (basemap.js): OS Open Zoomstack drawn in the app's colours */
.mapx-map { --m-land: #f7f1e6; --m-urban: #efe6d8; --m-green: #dcebd0; --m-wood: #cde2c0; --m-water: #bddbe9; --m-river: #8cc0d8; --m-case: #ddd0bf;
  --m-road: #ffffff; --m-b: #fbf0d6; --m-a: #f6d58e; --m-mway: #e7b3ca; --m-rail: #b5a698; --m-name: #5b4652; --m-name-soft: #8a7680; --m-halo: #f7f1e6; background: var(--m-land); }
.bm path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.bm .bm-urban { fill: var(--m-urban); } .bm .bm-park { fill: var(--m-green); opacity: .6; } .bm .bm-green { fill: var(--m-green); opacity: .8; } .bm .bm-wood { fill: var(--m-wood); opacity: .75; } .bm .bm-water { fill: var(--m-water); }
.bm .bm-river { stroke: var(--m-river); }
.bm .bm-rail { stroke: var(--m-rail); stroke-width: 1.4; stroke-dasharray: 5 3; }
.bm .bm-case { stroke: var(--m-case); }
.bm .bm-road { stroke: var(--m-road); } .bm .bm-road.r-b { stroke: var(--m-b); } .bm .bm-road.r-a, .bm .bm-road.r-primary { stroke: var(--m-a); } .bm .bm-road.r-motorway { stroke: var(--m-mway); }
.bm-name { font: 500 12px var(--display); fill: var(--m-name-soft); paint-order: stroke; stroke: var(--m-halo); stroke-width: 3px; stroke-linejoin: round; letter-spacing: 0; }
.bm-name.is-big { font: 600 15px var(--display); fill: var(--m-name); letter-spacing: -.01em; }
.bm-name.is-water { font-style: italic; font-weight: 500; fill: #4f8aa6; }
.mini-map { aspect-ratio: 400 / 220; margin: 8px 0 4px; }
.mm-pin path { fill: var(--plum); stroke: #fff; stroke-width: 2; } .mm-pin circle { fill: #fff; }
.bm .bm-river.is-faint { opacity: .55; }

/* ── Bigger days out */
.wk-set-sub { margin: 10px 0 6px; font-size: var(--t-xs); font-weight: 600; color: var(--soft); }
.bd-days { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 16px -20px 16px; padding: 0 20px 4px; }
.bd-day { flex: none; display: grid; justify-items: center; gap: 2px; width: 52px; min-height: 60px; padding: 8px 0; border: 0; border-radius: var(--r-md); background: var(--sunk); color: var(--ink); }
.bd-day small { font-size: var(--t-xs); color: var(--soft); } .bd-day b { font: 600 18px/1 var(--display); }
.bd-day.is-best { box-shadow: inset 0 0 0 1.5px var(--line-2); }
.bd-day.is-on { background: var(--plum-deep); color: #fbf3e6; } .bd-day.is-on small { color: rgba(251, 243, 230, .75); }
.bd-list { display: grid; gap: 12px; }
.bd-card { display: grid; gap: 10px; padding: 12px; border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
.bd-open { display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: center; padding: 0; border: 0; background: none; text-align: left; color: inherit; }
.bd-open .xc-art { height: 84px; border-radius: var(--r-xs); background: var(--art-bg); }
.bd-open .xc-art .pa { height: 64px; }
.bd-body { display: grid; gap: 4px; } .bd-body strong { font: 600 16px/1.25 var(--display); color: var(--heading); }
.bd-card > .btn { justify-self: start; }
.xcards .bd-card { flex: none; width: auto; min-width: 0; overflow: hidden; scroll-snap-align: start; } /* fills its column: a fixed 260px spilled under the next card on phones (16 Nov) */
.xcards .bd-open { grid-template-columns: 1fr; align-items: start; }
.xcards .bd-open .xc-art { height: 104px; }
.xcards .bd-body { min-width: 0; overflow-wrap: anywhere; }
.bd-nudge { margin: 24px 16px 0; padding: 16px; border-radius: var(--r-md); background: var(--gold-tint); }
.bd-nudge .bd-card { margin-top: 8px; }
.bd-nudge > .link { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; }
