/* Our Bunch design layer (design-system-20261128). Loaded last, after table.css + table-brand.css (parent) and
   children.css (kids). Tokens first, then components. Layout (widths, flex, padding of lists) stays with the older files;
   this layer owns how things look and feel: tactile buttons with a pressable lip, one segmented control, the tab bar
   with drawn icons, cards, chips, inputs, focus rings, and the rope motif (rope rule, knot tick, stitched edge).
   Spec and specimen: audit/design_system/DESIGN_SYSTEM.md and specimen.html. */
/* the display face is declared here too so child.html (which does not load table-brand.css) gets Fraunces, not Georgia */
@font-face{font-family:"OB Fraunces";src:url(/assets/fonts/fraunces.woff2) format("woff2");font-weight:100 900;font-display:swap}
@font-face{font-family:"Bunch Text";src:url(/assets/fonts/bunch-text.woff2) format("woff2");font-weight:200 800;font-display:swap}
:root{
 --ob-text:"Bunch Text",system-ui,-apple-system,"Segoe UI",sans-serif;
 --ob-display:"OB Fraunces",Georgia,serif;
 /* brand palette (brand kit) + the app's forest action colour */
 --ob-cream:#F6F1E6;--ob-linen:#EADFCB;--ob-card:#FFFCF5;--ob-ink:#33261e;--ob-stone:#5B5048;
 --ob-pine:#4f3b30;--ob-pine-hi:#614238;--ob-pine-lip:#33261e;--ob-on-pine:#FFF8EC;
 --ob-champ:#D6B87E;--ob-rope-hi:#FAECCC;--ob-rope-shadow:#684C28;--ob-gold:#F2CF7E;
 --ob-rose:#A16867;--ob-rose-deep:#7A4A4A;--ob-danger:#614238;
 --ob-line:#D9CCB0;--ob-line-strong:#B9A57C;--ob-lip:#D2C2A0;
 --ob-focus:#A8761F;
 /* shape: one radius scale; the "tag corner" (one tucked corner, from the landing site) marks main actions */
 --ob-r-sm:10px;--ob-r-md:14px;--ob-r-lg:20px;--ob-r-pill:999px;--ob-tag:16px 16px 16px 6px;
 /* depth: a solid lip, never a blurry glow */
 --ob-lip-1:0 2px 0 var(--ob-lip);--ob-lip-2:0 3px 0 var(--ob-pine-lip);
 --ob-card-shadow:0 1px 0 rgba(104,76,40,.10),0 10px 24px -18px rgba(104,76,40,.45);
 /* motion */
 --ob-ease:cubic-bezier(.2,.8,.2,1);--ob-press:90ms;--ob-settle:180ms;
--ob-i-tonight:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3.6 11.4 12 3.9l8.4 7.5%22/%3E%3Cpath d=%22M5.8 9.6V20h12.4V9.6%22/%3E%3Cpath d=%22M12 17.4s-3.3-2-3.3-4.2a1.75 1.75 0 0 1 3.3-.85 1.75 1.75 0 0 1 3.3.85c0 2.2-3.3 4.2-3.3 4.2z%22/%3E%3C/svg%3E");
--ob-i-schedule:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223.8%22 y=%225.4%22 width=%2216.4%22 height=%2215%22 rx=%223%22/%3E%3Cpath d=%22M8.4 3.4v4M15.6 3.4v4M3.8 10.2h16.4%22/%3E%3Cpath d=%22M8 14.2h2.4M13.6 14.2H16M8 17.2h2.4%22/%3E%3C/svg%3E");
--ob-i-week:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M7.5 3.8h9a2.6 2.6 0 0 1 2.6 2.6v11.2a2.6 2.6 0 0 1-2.6 2.6h-9a2.6 2.6 0 0 1-2.6-2.6V6.4a2.6 2.6 0 0 1 2.6-2.6z%22/%3E%3Cpath d=%22M8.6 8.6h6.8M8.6 12h6.8M8.6 15.4h4%22/%3E%3C/svg%3E");
--ob-i-shop:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M5.6 8.2h12.8l-1 12.1H6.6z%22/%3E%3Cpath d=%22M9 8.2V6.6a3 3 0 0 1 6 0v1.6%22/%3E%3Cpath d=%22M9.4 12.4c1.6 1.2 3.6 1.2 5.2 0%22/%3E%3C/svg%3E");
--ob-i-kids:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%228.6%22 cy=%228%22 r=%222.7%22/%3E%3Ccircle cx=%2216.4%22 cy=%2210.2%22 r=%222.1%22/%3E%3Cpath d=%22M3.8 19.8a4.8 4.8 0 0 1 9.6 0M12.9 19.8a3.5 3.5 0 0 1 7 0%22/%3E%3C/svg%3E");
--ob-i-memories:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%224.6%22 y=%223.6%22 width=%2214.8%22 height=%2216.8%22 rx=%222.2%22 transform=%22rotate%28-4 12 12%29%22/%3E%3Cpath d=%22M5.6 15.6l13.4-.9%22 /%3E%3Cpath d=%22M12.2 12s-2.6-1.5-2.6-3.3a1.4 1.4 0 0 1 2.6-.7 1.4 1.4 0 0 1 2.6.7c0 1.8-2.6 3.3-2.6 3.3z%22/%3E%3C/svg%3E");
--ob-i-menu:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%229%22 cy=%229%22 r=%223%22/%3E%3Cpath d=%22M3.8 19.4a5.2 5.2 0 0 1 10.4 0%22/%3E%3Cpath d=%22M15.6 6.6a2.6 2.6 0 0 1 0 5M17.6 14.6a4.8 4.8 0 0 1 2.6 4.8%22/%3E%3C/svg%3E");
 --ob-knot:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.6 12.8c-.9-1.5.9-3 2.2-1.9L10.4 15 19 6.6'/%3E%3C/svg%3E");
}
@media(prefers-color-scheme:dark){:root[data-app=parent]{
 --ob-card:#2A1D16;--ob-ink:#F3EADB;--ob-stone:#CABFB6;--ob-line:#52433A;--ob-line-strong:#7E6B5A;--ob-lip:#160F0B;
 --ob-pine:#f2cf7e;--ob-pine-hi:#efd9a6;--ob-pine-lip:#8C6048;--ob-on-pine:#1E140F;--ob-focus:#F2CF7E;--ob-danger:#E39D9D;
 --ob-card-shadow:0 1px 0 rgba(0,0,0,.35),0 12px 26px -18px rgba(0,0,0,.7);
}}
html:root{font-family:var(--ob-text)}
html:root body{-webkit-font-smoothing:antialiased;font-feature-settings:"ss01" 0}

/* ---------- buttons ---------- */
/* Secondary is the default: a card-coloured button with a visible edge and a lip that sinks when pressed. */
html:root button,html:root .button,html:root a.child-link{
 font-family:var(--ob-text);font-weight:650;letter-spacing:-.005em;color:var(--ob-ink);
 background:var(--ob-card);border:1.5px solid var(--ob-line-strong);border-radius:var(--ob-r-md);
 box-shadow:var(--ob-lip-1);min-height:44px;
 transition:transform var(--ob-press) var(--ob-ease),box-shadow var(--ob-press) var(--ob-ease),background-color var(--ob-settle),border-color var(--ob-settle);
 -webkit-tap-highlight-color:transparent;
}
html:root button:enabled:hover,html:root .button:hover{background-color:color-mix(in srgb,var(--ob-card) 88%,var(--ob-champ));border-color:var(--ob-rope-shadow)}
html:root button:enabled:active,html:root button.is-pressing,html:root .button:active{transform:translateY(2px);box-shadow:0 0 0 var(--ob-lip)}
/* Primary: forest green, cream text, the tag corner, a deeper lip. */
html:root button.primary,html:root .button.primary{
 background:linear-gradient(180deg,var(--ob-pine-hi),var(--ob-pine));color:var(--ob-on-pine);border:1.5px solid var(--ob-pine-lip);
 border-radius:var(--ob-tag);box-shadow:var(--ob-lip-2),inset 0 1px 0 rgba(255,255,255,.16);font-weight:700;
}
html:root button.primary:enabled:hover{background:var(--ob-pine-hi);color:var(--ob-on-pine);border-color:var(--ob-pine-lip)}
html:root button.primary:enabled:active,html:root button.primary.is-pressing{transform:translateY(3px);box-shadow:0 0 0 var(--ob-pine-lip),inset 0 1px 0 rgba(255,255,255,.1)}
/* Destructive: rosewood edge and ink, never solid red. */
html:root button.ob-danger,html:root #logout,html:root [data-aside=discard],html:root button[data-cmd=revoke]{color:var(--ob-danger);border-color:color-mix(in srgb,var(--ob-danger) 55%,transparent);box-shadow:0 2px 0 color-mix(in srgb,var(--ob-danger) 30%,transparent)}
html:root button:disabled{opacity:.5;box-shadow:none;transform:none;cursor:not-allowed}
/* Icon button: a round 44 px target. */
html:root button.ob-icon{width:44px;min-width:44px;height:44px;padding:0;border-radius:50%;display:inline-grid;place-items:center}
/* "Open dinner" and other row actions get a drawn chevron, so they read as a way in, not a label. */
html:root .week-dinner [data-do=cook],html:root [data-do=cook].ob-go{white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;gap:.35rem}
html:root .week-dinner [data-do=cook]::after{content:"";width:.5rem;height:.5rem;border:solid currentColor;border-width:2px 2px 0 0;transform:rotate(45deg);margin-left:.1rem;flex:none;opacity:.75}

/* ---------- segmented control (any group of aria-pressed buttons) ---------- */
html:root .choices[role=group]:has(>button[aria-pressed]){
 display:inline-flex;flex-wrap:nowrap;gap:4px;padding:4px;background:var(--ob-linen);border-radius:var(--ob-r-pill);border:1px solid var(--ob-line);max-width:100%;
}
@media(prefers-color-scheme:dark){:root[data-app=parent] .choices[role=group]:has(>button[aria-pressed]){background:#1A120E}}
html:root .choices[role=group]>button[aria-pressed]{
 background:transparent;border:0;box-shadow:none;border-radius:var(--ob-r-pill);color:var(--ob-stone);font-weight:650;outline:0;min-height:44px;margin:0;
}
html:root .choices[role=group]>button[aria-pressed=true]{background:var(--ob-card);color:var(--ob-ink);box-shadow:0 1px 0 var(--ob-lip),0 2px 6px -2px rgba(60,40,20,.25)}
@media(prefers-color-scheme:dark){:root[data-app=parent] .choices[role=group]>button[aria-pressed=true]{background:#453328;color:#F1EADB}}
html:root .choices[role=group]>button[aria-pressed]:enabled:active{transform:scale(.97)}
html:root .choices[role=group]>button[aria-pressed]:focus-visible{outline:3px solid var(--ob-focus);outline-offset:1px}

/* ---------- focus ---------- */
html:root :focus-visible{outline:3px solid var(--ob-focus);outline-offset:3px}

/* ---------- tab bar: drawn icons over short labels; the current tab sits on a champagne pill ---------- */
html:root #nav{border-top:0;box-shadow:0 -1px 0 var(--ob-line),0 -10px 24px -16px rgba(60,40,20,.35)}
html:root #nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-family:var(--ob-text);font-size:11.5px;font-weight:600;letter-spacing:-.01em;line-height:1.1;color:var(--ob-stone);background:transparent;border:0;box-shadow:none;border-radius:var(--ob-r-md);min-height:52px;padding:6px 1px 5px}
html:root #nav button::before{content:"";width:24px;height:24px;flex:none;background:currentColor;-webkit-mask:var(--ob-i-week) center/24px 24px no-repeat;mask:var(--ob-i-week) center/24px 24px no-repeat;transition:transform var(--ob-settle) var(--ob-ease)}
html:root #nav [data-view=tonight]::before{-webkit-mask-image:var(--ob-i-tonight);mask-image:var(--ob-i-tonight)}
html:root #nav [data-view=schedule]::before{-webkit-mask-image:var(--ob-i-schedule);mask-image:var(--ob-i-schedule)}
html:root #nav [data-view=shop]::before{-webkit-mask-image:var(--ob-i-shop);mask-image:var(--ob-i-shop)}
html:root #nav [data-view=kids]::before{-webkit-mask-image:var(--ob-i-kids);mask-image:var(--ob-i-kids)}
html:root #nav [data-view=memories]::before{-webkit-mask-image:var(--ob-i-memories);mask-image:var(--ob-i-memories)}
html:root #nav [aria-current=page]{background:transparent;color:var(--ob-ink);font-weight:750;outline:0}
html:root #nav [aria-current=page]::before{background:var(--ob-pine);transform:translateY(-1px)}
html:root #nav button::after{content:"";position:absolute;top:4px;width:44px;height:30px;border-radius:var(--ob-r-pill);z-index:-1;background:transparent;transition:background-color var(--ob-settle)}
html:root #nav button{position:relative;isolation:isolate}
html:root #nav [aria-current=page]::after{background:color-mix(in srgb,var(--ob-champ) 38%,transparent)}
html:root #nav button:active::before{transform:scale(.9)}
@media(max-width:359px){html:root #nav button{font-size:10.5px;letter-spacing:-.02em}}

/* ---------- masthead: the rope rule, and the menu as a proper button ---------- */
html:root .mast{border-bottom:0;position:relative}
/* round 2 (owner critique): the hatched rope read as diagonal hatching at 1x. Compared with a drawn two-ply rope at 1x and 3x
   (audit/design_system/rope/), a hairline with one figure-eight knot is the cleaner, more premium mark: a 7px rope can't hold
   its twist on a 1x screen. --ob-knot-mark is that knot; the line breaks around it so the knot sits in the rule. */
html:root{--ob-knot-mark:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 16' fill='none' stroke-linecap='round'%3E%3Cpath d='M1 8h6.5M22.5 8H29' stroke='%23A88B57' stroke-width='1.4'/%3E%3Cpath d='M8 8c0-3.6 4.6-5.2 7-2.2 2.4-3 7-1.4 7 2.2s-4.6 5.2-7 2.2c-2.4 3-7 1.4-7-2.2Z' stroke='%23684C28' stroke-width='1.7'/%3E%3Cpath d='M12.2 5.6c1.4 1.2 4.2 3.6 5.6 4.8' stroke='%23A88B57' stroke-width='1.3'/%3E%3C/svg%3E")}
html:root .mast::after{content:"";position:absolute;left:clamp(14px,4vw,50px);right:clamp(14px,4vw,50px);bottom:-8px;height:16px;pointer-events:none;
 background:var(--ob-knot-mark) center/30px 16px no-repeat,linear-gradient(to right,var(--ob-line-strong) 0 calc(50% - 15px),transparent calc(50% - 15px) calc(50% + 15px),var(--ob-line-strong) calc(50% + 15px)) center/100% 1px no-repeat}
/* espresso night: the knot is drawn in champagne so it holds on #1E140F */
@media(prefers-color-scheme:dark){:root[data-app=parent]{--ob-knot-mark:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 16' fill='none' stroke-linecap='round'%3E%3Cpath d='M1 8h6.5M22.5 8H29' stroke='%238A7354' stroke-width='1.4'/%3E%3Cpath d='M8 8c0-3.6 4.6-5.2 7-2.2 2.4-3 7-1.4 7 2.2s-4.6 5.2-7 2.2c-2.4 3-7 1.4-7-2.2Z' stroke='%23D6B87E' stroke-width='1.7'/%3E%3Cpath d='M12.2 5.6c1.4 1.2 4.2 3.6 5.6 4.8' stroke='%238A7354' stroke-width='1.3'/%3E%3C/svg%3E")}}
/* a container focused by script (tabindex=-1, e.g. #main after a tab change) never draws the focus ring; controls still do */
html:root [tabindex="-1"]:focus:not(:focus-visible),html:root main[tabindex="-1"]:focus{outline:none}
html:root #menu>summary{background:var(--ob-card);border:1.5px solid var(--ob-line-strong);box-shadow:var(--ob-lip-1);font-weight:650;gap:8px;padding:6px 14px 6px 10px;min-height:44px}
html:root #menu>summary::before{content:"";width:22px;height:22px;background:currentColor;-webkit-mask:var(--ob-i-menu) center/22px no-repeat;mask:var(--ob-i-menu) center/22px no-repeat}
html:root #menu>summary:active{transform:translateY(2px);box-shadow:none}
html:root #menu nav{background:var(--ob-card);border:1px solid var(--ob-line);border-radius:var(--ob-r-lg);box-shadow:var(--ob-card-shadow);padding:6px}
html:root #menu nav button{border:0;box-shadow:none;background:transparent;border-radius:var(--ob-r-sm);font-weight:600}
html:root #menu nav button:enabled:active{transform:none;background:var(--ob-linen)}

/* ---------- cards ---------- */
html:root .feature,html:root .tp-finalize,html:root .kband,html:root .sunday-plan,html:root .guardian-card,html:root .kid-card,html:root .sched-banner,html:root .table-talk{border-radius:var(--ob-r-lg)}
html:root .tp-finalize:not(.tp-locked),html:root .sunday-plan,html:root .kband{background:var(--ob-card);border:1px solid var(--ob-line);box-shadow:var(--ob-card-shadow)}
/* stitched edge: the check-in card only (a moment, not decoration) */
html:root .last-night{position:relative;border-radius:var(--ob-r-lg)}
/* round 2: Sunday prep reads as a section row: no fill, no lip, hairlines, the section's name in ink and the date quiet,
   a chevron to say it opens. It is a secondary control, never a primary-looking chip. */
html:root #room button.prep-row{display:flex;align-items:center;gap:.6rem;width:100%;min-height:48px;margin:.4rem 0 .2rem;padding:.55rem .25rem;background:transparent;border:0;border-top:1px solid var(--ob-line);border-bottom:1px solid var(--ob-line);border-radius:0;box-shadow:none;color:var(--ob-stone);font-weight:500;text-align:left}
html:root #room button.prep-row b{color:var(--ob-ink);font-weight:650}
html:root #room button.prep-row .ob-ic{width:1.25em;height:1.25em;color:var(--ob-pine)}
html:root #room button.prep-row::after{content:"";margin:0 .45rem 0 auto;width:.5rem;height:.5rem;border:solid currentColor;border-width:2px 2px 0 0;transform:rotate(45deg);flex:none;opacity:.75}
html:root #room button.prep-row:enabled:hover{background:color-mix(in srgb,var(--ob-card) 70%,transparent)}
html:root #room button.prep-row:enabled:active{transform:none;background:color-mix(in srgb,var(--ob-line) 40%,transparent);box-shadow:none}
/* round 2: "counted as made" is a quiet line with its one-tap undo, not a question card */
html:root .assumed-made{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem .6rem;margin:.6rem 0 .2rem;font-size:.92rem;color:var(--ob-stone)}
html:root .assumed-made .tick{width:1.1em;height:1.1em}
html:root .assumed-made button{margin-left:auto;min-height:44px;padding:.45rem .9rem;font-size:.88rem}
html:root .last-night::after{content:"";position:absolute;inset:6px;border:1.5px dashed color-mix(in srgb,var(--ob-champ) 85%,transparent);border-radius:14px;pointer-events:none}

/* ---------- rooms: two chips, not two outlined boxes ---------- */
html:root .rooms .room{background:var(--ob-card);border:1.5px solid var(--ob-line-strong);box-shadow:var(--ob-lip-1);border-radius:var(--ob-tag)}
html:root .rooms .room:active{transform:translateY(2px);box-shadow:none}

/* ---------- inputs ---------- */
html:root input:not([type=checkbox]):not([type=radio]),html:root select,html:root textarea{background:var(--ob-card);color:var(--ob-ink);border:1.5px solid var(--ob-line-strong);border-radius:12px;font-family:var(--ob-text);transition:border-color var(--ob-settle),box-shadow var(--ob-settle)}
html:root input:not([type=checkbox]):not([type=radio]):focus,html:root select:focus,html:root textarea:focus{border-color:var(--ob-pine);box-shadow:0 0 0 3px color-mix(in srgb,var(--ob-pine) 22%,transparent);outline:0}
/* knot tick: checkboxes are drawn, the tick starts with a little loop of rope */
html:root input[type=checkbox]:not([role=switch]){-webkit-appearance:none;appearance:none;flex:none;width:26px;height:26px;margin:0;border:2px solid var(--ob-line-strong);border-radius:8px;background:var(--ob-card);display:inline-grid;place-items:center;cursor:pointer;transition:background-color var(--ob-settle),border-color var(--ob-settle)}
html:root input[type=checkbox]:not([role=switch])::after{content:"";width:18px;height:18px;background:var(--ob-on-pine);-webkit-mask:var(--ob-knot) center/18px no-repeat;mask:var(--ob-knot) center/18px no-repeat;transform:scale(0);transition:transform var(--ob-settle) var(--ob-ease)}
html:root input[type=checkbox]:not([role=switch]):checked{background:var(--ob-pine);border-color:var(--ob-pine)}
html:root input[type=checkbox]:not([role=switch]):checked::after{transform:scale(1)}
html:root input[type=checkbox]:not([role=switch]):focus-visible{outline:3px solid var(--ob-focus);outline-offset:2px}

/* ---------- save state: a quiet line that fades ---------- */
/* a small pill that floats just above the tab bar and fades; it never pushes the header around or covers a heading */
/* round 2 (owner critique): the toast is anchored to the tab bar: 8px above its real top edge (--nav-h is measured by
   kitchen.js and includes the phone's safe area; --nav-offset is the fallback) and slides 4px rather than fading, so the ink stays readable against its card the whole time it is on screen */
html:root #savestate{position:fixed;left:50%;top:auto;bottom:calc(var(--nav-h,var(--nav-offset,4.75rem)) + 8px);transform:translate(-50%,0);z-index:3;white-space:nowrap;font-size:.84rem;font-weight:650;color:var(--ob-ink);background:var(--ob-card);border:1px solid var(--ob-line);border-radius:var(--ob-r-pill);padding:4px 12px;box-shadow:var(--ob-card-shadow);transition:transform .18s var(--ob-ease);pointer-events:none;opacity:1}
html:root #savestate:empty{visibility:hidden;padding:0;border:0;transition:none}
html:root #savestate[data-leaving]{transform:translate(-50%,4px)}
@media(prefers-reduced-motion:reduce){html:root #savestate{transition:none}html:root #savestate[data-leaving]{transform:translate(-50%,0)}}
@keyframes obToastIn{from{transform:translate(-50%,4px)}to{transform:translate(-50%,0)}}
html:root #savestate:not(:empty):not([data-leaving]):not([data-state=saving]){animation:obToastIn .18s var(--ob-ease)}
@media(prefers-color-scheme:dark){html:root[data-app=parent] #savestate,html:root[data-app=child] #savestate{color:#F3EADB;background:#2A1D16;border-color:#52433A}}
@media(prefers-reduced-motion:reduce){html:root #savestate:not(:empty):not([data-leaving]):not([data-state=saving]){animation:none}}
/* Saving stays fully opaque; a faded toast over the tab bar fails contrast. Quiet it with ink colour instead. */
html:root #savestate[data-state=saving]{opacity:1;color:var(--ob-stone);animation:none}
@media(prefers-color-scheme:dark){html:root[data-app=parent] #savestate[data-state=saving],html:root[data-app=child] #savestate[data-state=saving]{color:#CABFB6}}

/* ---------- kids (child.html): bigger, rounder, same family ---------- */
/* round 2 (owner): the build name is not menu furniture; it sits behind a quiet About and diagnostics row */
html:root #menu .about-row{margin:.35rem 0 0;border-top:1px solid var(--ob-line)}
html:root #menu .about-row>summary{list-style:none;cursor:pointer;padding:.7rem .75rem;font-size:.85rem;font-weight:600;color:var(--ob-ink);display:flex;align-items:center;gap:.5rem;min-height:44px}
html:root #menu .about-row>summary::-webkit-details-marker{display:none}
html:root #menu .about-row>summary::after{content:'';margin-left:auto;width:.9em;height:.9em;background:currentColor;-webkit-mask:var(--ob-ic-next) center/contain no-repeat;mask:var(--ob-ic-next) center/contain no-repeat;transition:transform .2s}
html:root #menu .about-row[open]>summary::after{transform:rotate(90deg)}
html:root #menu .about-row .about-line{margin:0 .75rem .6rem;font-size:.78rem}
body[data-mode=child]{font-family:var(--ob-text)}
body[data-mode=child] .wordmark{font-family:var(--ob-display);font-weight:600;letter-spacing:-.02em}
body[data-mode=child] button.primary{border-radius:20px 20px 20px 8px;box-shadow:0 4px 0 var(--ob-pine-lip),inset 0 1px 0 rgba(255,255,255,.18)}
body[data-mode=child] button.primary:enabled:active{transform:translateY(4px);box-shadow:0 0 0 var(--ob-pine-lip)}
body[data-mode=child] button:not(.primary){border-radius:18px;box-shadow:0 3px 0 var(--ob-lip)}
body[data-mode=child] .kid-hero h1,body[data-mode=child] h1{font-family:var(--ob-display);font-weight:600;letter-spacing:-.02em}
/* round 2: table.css gives every h2/h3 Georgia; on the kids' page section heads get the brand serif, and the job itself
   (a sentence a 5-year-old reads) gets the rounded text face */
body[data-mode=child] h2,body[data-mode=child] h3{font-family:var(--ob-display);font-weight:600;letter-spacing:-.01em}
body[data-mode=child] .child-task h2{font-family:var(--ob-text);font-weight:650;letter-spacing:-.005em;line-height:1.3}

@media(prefers-reduced-motion:reduce){html:root button,html:root #nav button::before,html:root input[type=checkbox]:not([role=switch])::after{transition:none}}

/* ---------- Release A (award audit): brand palette, confirm sheet, grouped menu, quieter controls ---------- */
/* H6: the app's action colour is the site's espresso (dark: gold), not forest green. Danger is rosewood. */
:root{--ob-ink:#221b16;--ob-pine:#3A271E;--ob-pine-hi:#4A3426;--ob-pine-lip:#1E140F;--ob-on-pine:#FFF8EC;--ob-danger:#7A4A4A;--ob-focus:#8a6a35}
@media(prefers-color-scheme:dark){:root[data-app=parent],:root[data-app=child]{--ob-pine:#F2CF7E;--ob-pine-hi:#f0d49a;--ob-pine-lip:#B08A3E;--ob-on-pine:#1E140F;--ob-danger:#E4A3A3;--ob-focus:#F2CF7E}}
/* confirm sheet (H5): rises from the bottom like a native sheet */
.ob-sheet{border:0;padding:0;margin:auto auto 0;width:min(100%,32rem);max-width:100%;background:transparent;color:var(--ob-ink)}
.ob-sheet::backdrop{background:rgba(30,20,15,.42)}
.ob-sheet-card{background:var(--ob-card);border-radius:22px;margin:0 .5rem .5rem;padding:1.4rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));box-shadow:none}
.ob-sheet h2{margin:0 0 .4rem;font:600 1.2rem/1.3 var(--ob-display);text-wrap:balance}
.ob-sheet p{margin:0 0 1rem;color:var(--ob-stone);line-height:1.45}
.ob-sheet-actions{display:grid;grid-template-columns:1fr 1fr;gap:.6rem;margin-top:.4rem}
.ob-sheet-actions button{min-height:48px;margin:0}
.ob-sheet[open] .ob-sheet-card{animation:ob-sheet-up .24s cubic-bezier(.05,.7,.1,1) both}
.ob-sheet[open]::backdrop{animation:ob-fade .2s ease-out both}
@keyframes ob-sheet-up{from{transform:translateY(100%)}to{transform:none}}
@keyframes ob-fade{from{opacity:0}}
@media(min-width:40rem){.ob-sheet{margin:auto}.ob-sheet-card{border-radius:22px}}
/* menu (H2, R2-H5): three labelled groups, grows from its button */
html:root #menu nav{transform-origin:top right}
html:root #menu[open] nav{animation:ob-menu-in .2s cubic-bezier(.05,.7,.1,1) both}
@keyframes ob-menu-in{from{opacity:0;transform:translateY(-6px) scale(.97)}}
html:root #menu .menu-group{margin:.7rem .75rem .2rem;font-size:.75rem;font-weight:650;color:var(--ob-stone);letter-spacing:.01em}
html:root #menu .menu-group:first-child{margin-top:.3rem}
html:root #menu .menu-more{border-top:1px solid var(--ob-line);margin-top:.5rem}
html:root #menu .menu-more>summary{list-style:none;cursor:pointer;padding:.7rem .75rem;font-size:.9rem;font-weight:600;color:var(--ob-stone);min-height:44px;box-sizing:border-box;display:flex;align-items:center}
html:root #menu .menu-more>summary::-webkit-details-marker{display:none}
html:root #menu .menu-link{display:flex;align-items:center;min-height:44px;padding:0 .75rem;color:var(--ob-ink);font-weight:600;text-decoration:none;border-radius:var(--ob-r-sm)}
html:root #menu .menu-link:hover{background:var(--ob-linen)}
html:root #menu #logout{margin-top:.6rem;border-top:1px solid var(--ob-line);border-radius:0}
/* L2: photo credits live in the menu once you're signed in */
body:has(#room:not([hidden])) footer.entry-credit{display:none}
html:root body:has(#room:not([hidden])) main{padding-bottom:var(--nav-clearance)}
/* M5: rating gets the attention; "Not now" and "We didn't make it" are quiet text actions */
html:root .rate-quiet{display:flex;flex-wrap:wrap;gap:.25rem 1rem;margin-top:.5rem}
html:root .rate-quiet button{background:none;border:0;box-shadow:none;min-height:44px;padding:0 .25rem;color:var(--ob-stone);font-weight:600;border:1px solid var(--ob-rule,#ddd6c4);border-radius:999px;padding:0 .9rem}
/* M18: Delete sits apart from Share, top corner, quiet */
html:root .memo-top{display:flex;align-items:center;justify-content:space-between;gap:.5rem}
html:root .memo-del{background:none;border:0;box-shadow:none;color:var(--ob-danger);font-weight:600;min-height:44px;padding:0 .4rem}
html:root .memo-private::before{content:"";display:inline-block;width:.95em;height:.95em;margin-right:.35em;vertical-align:-.12em;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Crect x='5' y='10.5' width='14' height='9.5' rx='2.2'/%3E%3Cpath d='M8.5 10.5V8a3.5 3.5 0 0 1 7 0v2.5'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Crect x='5' y='10.5' width='14' height='9.5' rx='2.2'/%3E%3Cpath d='M8.5 10.5V8a3.5 3.5 0 0 1 7 0v2.5'/%3E%3C/svg%3E") center/contain no-repeat}
/* M4: a planned night is one chevron, not "Open dinner" seven times */
html:root .week-dinner .row-go{width:44px;min-width:44px;height:44px;padding:0;border-radius:50%;display:inline-grid;place-items:center}
html:root .week-dinner .row-go::after{content:"";width:.55rem;height:.55rem;border:solid currentColor;border-width:2px 2px 0 0;transform:translateX(-1px) rotate(45deg)}
/* Kids and food guidance fold away */
html:root .kid-more,html:root details.guide-rules{margin-top:.6rem;border-top:1px solid var(--ob-line)}
html:root .kid-more>summary,html:root details.guide-rules>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:650;color:var(--ob-stone);list-style:none}
html:root details.guide-rules>summary h2{margin:0;font-size:1.05rem}
html:root .kid-more>summary::-webkit-details-marker,html:root details.guide-rules>summary::-webkit-details-marker{display:none}
html:root .kid-more>summary::after,html:root details.guide-rules>summary::after{content:"";margin-left:auto;width:.5rem;height:.5rem;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg);transition:transform var(--ob-settle) var(--ob-ease)}
html:root .kid-more[open]>summary::after,html:root details.guide-rules[open]>summary::after{transform:rotate(-135deg)}
/* Us: the three extra Together rooms as rows */
.us-more-rows{list-style:none;margin:1rem 0 0;padding:0;display:grid;gap:.5rem}
.us-more-rows button{width:100%;text-align:left;display:grid;gap:.1rem;padding:.75rem 1rem}
.us-more-rows small{color:var(--ob-stone);font-weight:500}
.us-crumb{margin:.5rem 0;color:var(--ob-stone)}.us-crumb .us-back{min-height:44px;background:none;border:0;box-shadow:none;border:1px solid var(--ob-rule,#ddd6c4);border-radius:999px;padding:0 .9rem}
/* R2-M8: the header section name is readable, sentence case */
html:root #lockupSection{font-size:.75rem;letter-spacing:0;text-transform:none}
/* M11: screens settle in instead of snapping (off with reduced motion) */
@media(prefers-reduced-motion:no-preference){html:root #room>*{animation:ob-room-in .2s cubic-bezier(.2,0,0,1) both}}
@keyframes ob-room-in{from{opacity:0;transform:translateY(4px)}}
/* sheet: no slide with reduced motion */
@media(prefers-reduced-motion:reduce){.ob-sheet[open] .ob-sheet-card,html:root #menu[open] nav{animation:none}}
html:root #menu nav{max-height:calc(100dvh - 9rem);overflow-y:auto;overscroll-behavior:contain}
html:root #menu nav>button,html:root #menu .menu-more>button{min-height:44px;padding-block:.55rem}
html:root .ob-sheet-actions button[data-sheet=cancel]{background:var(--ob-card);color:var(--ob-ink);border:1px solid var(--ob-rule,#ddd6c4)}
html:root .ob-sheet-actions button.primary{background:#3A271E;color:#fffdf8;border:1px solid #3A271E}
html:root .ob-sheet-actions button.ob-danger{background:#7A4A4A;color:#fffdf8;border:1px solid #7A4A4A}
html:root .dl-quote .art-etch{animation:none} /* purpose pass: the quote art no longer drifts on a loop */
