/* Who's On It? : sister look to What Shall We Cook and Where Did It Go? */
@font-face { font-family: 'Lexend'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/lexend.woff2') format('woff2'); }
:root {
  --ink: #3A3045; --ink2: #5A4E63; --ink3: #4A3F52; --cream: #F4EFE1; --line: #EDE6D3;
  --sky: #B7D3EA; --sky2: #CFE3F2; --sky3: #E4EEF7; --blue: #2E5B88; --blue-d: #1F4268;
  --mango: #EBC27A; --honey: #F5DFAE; --pandan: #8DB59A; --guava: #E8A99A; --err: #8A3A2A;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--cream); }
body { color: var(--ink); font-family: Lexend, 'Segoe UI', system-ui, sans-serif; font-size: 17px; line-height: 1.55; -webkit-text-size-adjust: 100%; }
#app { max-width: 520px; margin: 0 auto; min-height: 100vh; padding-bottom: 120px; position: relative; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
a { color: var(--blue); }
h1, h2, h3 { margin: 0; }
h2 { font-weight: 700; font-size: 21px; line-height: 1.25; }
h3 { font-size: 17px; font-weight: 700; }
ul { list-style: none; margin: 0; padding: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink2); } .small { font-size: 14px; } .xs { font-size: 13px; }
.fil { color: var(--blue); font-weight: 700; }

/* header */
.hdr { position: relative; background: var(--sky); padding: 70px 20px 72px; overflow: hidden; border-bottom: 2.5px solid var(--ink); }
.hdr .deco { position: absolute; left: 0; top: 0; width: 100%; height: 240px; }
.brand { position: relative; display: flex; align-items: center; gap: 14px; }
.brand h1 { font-weight: 700; font-size: 28px; line-height: 1.12; }
.pill { display: inline-block; font-weight: 600; font-size: 16px; padding: 2px 12px 3px; border-radius: 999px; background: var(--ink); color: var(--sky2); }
.kubotag { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; min-height: 32px; padding: 0 12px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; font-size: 13px; font-weight: 700; }
.topbtns { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; z-index: 2; }
.roundbtn { position: relative; width: 52px; height: 52px; border-radius: 50%; border: 2.5px solid var(--ink); background: #fff; display: grid; place-items: center; padding: 0; box-shadow: 2px 2px 0 var(--ink); }
.roundbtn.spin svg { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.count { position: absolute; top: -6px; right: -6px; min-width: 24px; height: 24px; padding: 0 5px; border-radius: 999px; background: var(--mango); border: 2px solid var(--ink); font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.refreshwrap { display: flex; align-items: center; gap: 8px; }
.syncstate { font-size: 12px; font-weight: 600; background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 2px 10px; }

/* cards */
.card { background: #fff; border: 2.5px solid var(--ink); border-radius: 20px; overflow: hidden; }
.mood { margin: -46px 16px 0; position: relative; border-radius: 24px; box-shadow: 4px 4px 0 var(--ink); padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.note { margin: 0; padding: 10px 12px; background: var(--honey); border: 2px solid var(--ink); border-radius: 6px 16px 16px 16px; font-size: 15px; }
.sec { display: flex; justify-content: space-between; align-items: baseline; padding: 22px 20px 8px; gap: 10px; }
.lead { margin: 0 20px 14px; font-size: 15px; color: var(--ink2); }
.stack { display: flex; flex-direction: column; gap: 14px; padding: 0 16px; }
.ghead { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 2px solid var(--ink); }
.av { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--ink); font-size: 14px; font-weight: 700; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 2px solid var(--line); }
.row:last-child { border-bottom: 0; }
.chk { flex: none; width: 44px; height: 44px; border-radius: 14px; border: 2.5px solid var(--ink); display: grid; place-items: center; padding: 0; background: #fff; }
.chk[aria-pressed="true"] { background: var(--pandan); }
.slotnum { flex: none; width: 44px; height: 44px; border-radius: 14px; border: 2.5px dashed var(--ink); background: var(--cream); display: grid; place-items: center; font-weight: 700; color: var(--ink2); }
.tbody { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 2px 0; display: flex; flex-direction: column; gap: 2px; }
.tt { font-size: 17px; font-weight: 600; line-height: 1.3; }
.done .tt { text-decoration: line-through; color: var(--ink2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 3px; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--sky3); }
.tag.notice { background: var(--honey); }
.slot { flex: 1; min-height: 44px; border-radius: 14px; border: 2px dashed var(--ink); background: #fff; font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--blue); text-align: left; }
.alldone { box-shadow: 4px 4px 0 var(--pandan); }

/* buttons */
.primary { flex: none; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 2.5px solid var(--ink); background: var(--blue); color: #fff; font-size: 14px; font-weight: 700; box-shadow: 2px 2px 0 var(--ink); }
.ghost { flex: none; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--ink); background: var(--cream); font-size: 14px; font-weight: 700; }
.big { width: 100%; min-height: 52px; border-radius: 999px; border: 2.5px solid var(--ink); background: var(--blue); color: #fff; font-size: 17px; font-weight: 700; box-shadow: 3px 3px 0 var(--ink); }
.big:disabled { opacity: 0.6; }
.wide { width: 100%; min-height: 50px; font-size: 15px; }
.linkbtn { border: 0; background: transparent; color: var(--blue); font-weight: 600; text-decoration: underline; min-height: 44px; padding: 0 4px; font-size: 15px; }
.danger { color: var(--err); }
.addrow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 16px 14px; }
.addbtn { min-height: 48px; border-radius: 999px; border: 2.5px solid var(--ink); background: #fff; font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 6px; box-shadow: 2px 2px 0 var(--ink); padding: 0 10px; }
.pilelist { margin: 0 16px 28px; border-style: dashed; }

/* rooms */
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 16px; }
.room { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px; border-radius: 18px; border: 2.5px solid var(--ink); text-align: left; min-height: 110px; }
.status { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 600; }

/* chips */
.seg { display: grid; gap: 8px; }
.chip { min-height: 48px; border-radius: 999px; border: 2.5px solid var(--ink); font-size: 15px; background: #fff; }
.chip[aria-pressed="true"] { background: var(--sky); font-weight: 700; }
.tabs { margin: 0 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; background: #fff; border-radius: 999px; border: 2px solid var(--ink); }
.tabs button { height: 44px; border: 0; border-radius: 999px; font-size: 14px; background: transparent; }
.tabs button[aria-pressed="true"] { background: var(--sky); font-weight: 700; }
.nextpill { align-self: flex-start; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--sky2); border: 1.5px solid var(--ink); }
.due { background: var(--honey); }

/* us */
.bar { display: flex; height: 16px; border-radius: 999px; border: 2px solid var(--ink); background: var(--cream); overflow: hidden; }
.bar div { border-right: 2px solid var(--ink); }
.bar div:empty[style*="width:0%"] { border: 0; }
.key { width: 14px; height: 14px; border-radius: 4px; border: 2px solid var(--ink); display: inline-block; }
.stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.stage { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 40px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; font-size: 12px; padding: 0 4px; }
.stage[aria-pressed="true"] { background: var(--sky2); font-weight: 700; }
.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.tiles span { display: grid; place-items: center; height: 52px; border: 2.5px solid var(--ink); border-radius: 12px; background: var(--sky2); font-size: 24px; font-weight: 700; box-shadow: 2px 2px 0 var(--ink); }
.pad { padding: 14px 16px; }
.mt { margin-top: 14px; }
.mx { margin-left: 16px; margin-right: 16px; }
.about p { margin: 0 0 10px; font-size: 15px; }

/* nav */
nav.main { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; background: #fff; border-top: 2.5px solid var(--ink); padding: 8px 6px calc(12px + env(safe-area-inset-bottom)); }
nav.main .in { max-width: 520px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; }
nav.main button { display: flex; flex-direction: column; align-items: center; gap: 3px; border: 0; background: transparent; padding: 0; font-size: 12px; color: var(--ink2); font-weight: 500; }
nav.main button[aria-current="page"] { color: var(--ink); font-weight: 700; }
nav.main .ic { display: grid; place-items: center; width: 52px; height: 32px; border-radius: 999px; border: 2px solid transparent; }
nav.main button[aria-current="page"] .ic { background: var(--sky); border-color: var(--ink); }
nav.main .fab { display: grid; place-items: center; width: 56px; height: 56px; margin-top: -30px; border-radius: 50%; background: var(--blue); color: #fff; border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
nav.main .fabbtn { color: var(--ink); font-weight: 700; }

/* sheets */
.sheet { position: fixed; inset: 0; z-index: 20; background: rgba(58, 48, 69, 0.45); overflow-y: auto; padding-top: 24px; }
.sheet-in { max-width: 520px; margin: 0 auto; min-height: 100%; background: var(--cream); border: 2.5px solid var(--ink); border-bottom: 0; border-radius: 28px 28px 0 0; padding: 18px 16px calc(28px + env(safe-area-inset-bottom)); }
.sh-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.x { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; display: grid; place-items: center; padding: 0; }
.fld { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.lbl, .fld > label, .fld legend { display: block; font-size: 15px; font-weight: 700; margin-bottom: 8px; padding: 0; }
input[type=text], select { width: 100%; min-height: 48px; border: 2.5px solid var(--ink); border-radius: 14px; background: #fff; padding: 0 12px; font: inherit; font-size: 17px; color: var(--ink); }
.inrow { display: flex; gap: 8px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; font-size: 14px; cursor: pointer; }
.opt input:checked + span { background: var(--sky); font-weight: 700; }
.opt input:checked + span::before { content: ""; width: 10px; height: 6px; border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(-45deg); margin: -3px 8px 0 0; }
.opt input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.swatch span { gap: 8px; }
.swatch i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink); display: inline-block; }
.sugg { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.sg { text-align: left; min-height: 44px; padding: 8px 12px; border-radius: 12px; border: 2px dashed var(--ink); background: #fff; font-size: 15px; font-weight: 600; }
.turns { margin-top: 10px; padding: 10px 12px; background: #fff; border: 2px solid var(--ink); border-radius: 16px; }
.err { color: var(--err); font-weight: 600; font-size: 14px; margin: 0 0 10px; min-height: 1px; }
.subh { font-size: 15px; margin: 6px 0 8px; }
.check { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; font-size: 15px; }
.check input { width: 22px; height: 22px; flex: none; accent-color: var(--blue); margin: 0; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 112px; transform: translateX(-50%); z-index: 40; max-width: 92vw; width: max-content; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 14px; border: 0; font: inherit; font-size: 15px; font-weight: 600; box-shadow: 0 6px 20px rgba(0,0,0,.2); text-align: left; }
html.calm .toast { left: 0; right: 0; transform: none; width: auto; max-width: none; bottom: calc(86px + env(safe-area-inset-bottom)); border-radius: 0; background: var(--honey); color: var(--ink); border-top: 1.5px solid var(--calm-line); box-shadow: none; padding: 12px 20px; }

/* onboarding */
.ob { padding: 14px 0 48px; }
.obtop { display: flex; justify-content: space-between; align-items: center; padding: 0 16px; min-height: 48px; }
.obskip { border: 0; background: transparent; font-size: 14px; font-weight: 600; color: var(--blue); text-decoration: underline; min-height: 44px; padding: 0 6px; }
.obhero { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 8px 20px 4px; text-align: center; }
.obsmall { display: flex; align-items: center; gap: 12px; padding: 8px 20px 6px; }
.bubble { background: #fff; border: 2.5px solid var(--ink); border-radius: 20px; padding: 10px 14px; font-weight: 600; font-size: 16px; box-shadow: 3px 3px 0 var(--ink); }
.wordmark { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 6px; }
.wordmark h1 { font-size: 30px; }
.obp { margin: 14px 20px 0; font-size: 16px; line-height: 1.5; }
.kubomean { background: #fff; border: 2px solid var(--ink); border-radius: 16px; padding: 12px 14px; margin: 16px 16px 0; font-size: 15px; }
.obbtns { display: flex; flex-direction: column; gap: 10px; padding: 20px 16px 0; }
.dots { display: flex; justify-content: center; gap: 8px; padding: 4px 0 12px; }
.dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; }
.dot.on { background: var(--blue); width: 26px; border-radius: 999px; }
.storycard { margin: 0 16px; padding: 18px 18px 20px; border-radius: 24px; box-shadow: 4px 4px 0 var(--ink); }
.storycard h2 { font-size: 23px; margin: 10px 0 8px; }
.storycard p { margin: 0; font-size: 16px; line-height: 1.55; }
.storyart { display: flex; flex-direction: column; align-items: center; background: var(--sky3); border: 2px solid var(--ink); border-radius: 18px; padding: 14px 0 10px; }
.storyart svg { max-width: 100%; height: auto; }
.obkey { display: flex; justify-content: space-around; width: 260px; font-weight: 700; font-size: 15px; margin-top: 6px; }
.obform { padding: 10px 16px 0; }
.ideachip { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 2px dashed var(--ink); background: #fff; font-size: 14px; font-weight: 600; }
.obsec { margin: 14px 16px 0; padding: 14px 16px; }
.obsec h2 { font-size: 19px; }
.joined li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 2px solid var(--line); }
.joined li:last-child { border-bottom: 0; }
.walkhead { padding: 4px 20px 0; }
.walkbar { height: 10px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; overflow: hidden; margin-top: 6px; }
.walkbar div { height: 100%; background: var(--pandan); }
.seen { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.seen li { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; padding: 8px 10px; background: var(--honey); border: 2px solid var(--ink); border-radius: 12px; }
.stats { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; font-size: 16px; }
.stats strong { font-size: 20px; color: var(--blue); }
.whobtn { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 0 12px; border-radius: 16px; border: 2.5px solid var(--ink); background: #fff; font-weight: 700; margin-bottom: 8px; text-align: left; }
.codein { text-transform: uppercase; letter-spacing: 0.3em; font-size: 24px !important; font-weight: 700; text-align: center; }

.capbtn { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 40px; border: 0; background: transparent; padding: 0; font-size: 14px; text-align: left; color: var(--ink3); }
.capbtn strong { color: var(--ink); }

/* bigger text: scales the whole layout so everything reflows */
html.bigtext body { zoom: 1.18; }

/* start page */
.familybar { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; padding: 8px 16px; background: var(--ink); color: #fff; font-size: 14px; text-decoration: none; }
.familybar .fbleft { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; }
.familybar .fbright { color: #E9E3EE; text-align: right; }
.familybar.slim { min-height: 44px; padding: 6px 16px; font-size: 13px; }
.familybar.slim .fbleft { font-size: 14px; }
.twobtn { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.twobtn .ghost, .twobtn .big { min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 6px; }
@media print { .familybar { display: none !important; } }
.welcome .comfort { padding: 14px 16px 0; }
.hero { font-size: 22px; font-weight: 700; margin: 4px 0 6px; }
.obhero .big { max-width: 420px; }
.wsec { margin: 28px 16px 0; }
.wsec h2 { margin-bottom: 10px; }
.wsec p { margin: 0; }
.familiar { display: flex; flex-direction: column; gap: 8px; }
.familiar li { background: #fff; border: 2px solid var(--ink); border-radius: 16px; padding: 10px 14px; }
.steps { margin: 0; padding-left: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding-left: 50px; min-height: 40px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--sky); border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 700; }
.fcards { display: grid; grid-template-columns: 1fr; gap: 10px; }
.fcard { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 2.5px solid var(--ink); border-radius: 18px; padding: 12px 14px; }
.ficon { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--sky2); display: grid; place-items: center; border: 2px solid var(--ink); }
.easy { display: flex; flex-direction: column; gap: 6px; padding-left: 0; }
.easy li { padding-left: 26px; position: relative; }
.easy li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 10px; height: 6px; border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(-45deg); }
.startbox { background: #fff; border: 2.5px solid var(--ink); border-radius: 24px; padding: 16px; box-shadow: 4px 4px 0 var(--ink); }
.foot { margin: 28px 16px 0; padding-top: 14px; border-top: 2px solid var(--line); font-size: 13px; color: var(--ink2); }
.foot p { margin: 0 0 8px; }
.family li a { display: flex; flex-direction: column; padding: 10px 12px; margin-top: 8px; border: 2px solid var(--ink); border-radius: 14px; background: var(--cream); color: var(--ink); text-decoration: none; }

/* tour */
#tour { position: fixed; inset: 0; z-index: 50; }
.tspot { position: fixed; border-radius: 18px; box-shadow: 0 0 0 9999px rgba(58, 48, 69, 0.6); border: 3px solid #fff; pointer-events: none; }
.tcard { position: fixed; left: 16px; right: 16px; max-width: 488px; margin: 0 auto; background: #fff; border: 2.5px solid var(--ink); border-radius: 20px; padding: 14px 16px; box-shadow: 4px 4px 0 var(--ink); }
.tcard h2 { font-size: 19px; }

/* print: only the printout */
#print { display: none; }
@media print {
  #app, #nav, #sheet, #tour, .toast { display: none !important; }
  #print { display: block; color: #3A3045; font-family: Lexend, sans-serif; font-size: 12pt; }
  .phead { display: flex; align-items: center; gap: 14px; border-bottom: 2px solid #3A3045; padding-bottom: 10px; margin-bottom: 8px; }
  .pword { font-size: 20pt; font-weight: 700; }
  .pword .pill { font-size: 11pt; background: #3A3045; color: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pname { font-size: 12pt; }
  #print h2 { font-size: 15pt; margin: 14px 0 6px; }
  #print table { width: 100%; border-collapse: collapse; }
  #print th, #print td { text-align: left; border-bottom: 1px solid #C9C0B0; padding: 5px 6px; vertical-align: top; }
  #print a { color: #2E5B88; }
  .pfoot { margin-top: 16px; font-size: 10pt; }
}

/* reading comfort row (same as What Shall We Cook) */
.comfortrow { margin: 12px 16px 0; padding: 10px 12px; background: #fff; border: 2px solid var(--ink); border-radius: 16px; display: flex; flex-direction: column; gap: 8px; }
.crlabel { font-size: 13px; font-weight: 700; color: var(--ink2); }
.crbtns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.minisw { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 8px; border: 0; background: transparent; font-size: 15px; font-weight: 600; text-align: left; }
.minisw[aria-checked="true"] .track { background: var(--pandan); }
.minisw[aria-checked="true"] .knob { left: 22px; background: var(--ink); }
.usfirst { margin-top: 14px; }
.usfirst .comfortrow { margin-top: 0; }
html.calm .comfortrow { border-width: 1.5px; border-color: var(--calm-line); }

/* care notes */
.carebox { background: #fff; border: 2px dashed var(--ink); border-radius: 16px; padding: 12px 14px; margin: 14px 16px 0; font-size: 15px; }
.carebox p { margin: 0 0 8px; } .carebox p:last-child { margin: 0; }

/* calm mode switch */
.calmswitch { display: flex; align-items: center; gap: 12px; width: calc(100% - 0px); min-height: 56px; padding: 10px 14px; border-radius: 16px; border: 2px solid var(--ink); background: #fff; text-align: left; box-sizing: border-box; }
.ob .calmswitch { width: calc(100% - 32px); margin-left: 16px; margin-right: 16px; }
.track { flex: none; width: 48px; height: 28px; border-radius: 999px; border: 2px solid var(--ink); background: var(--cream); position: relative; }
.knob { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink2); transition: left 0.15s; }
.calmswitch[aria-checked="true"] .track { background: var(--pandan); }
.calmswitch[aria-checked="true"] .knob { left: 22px; background: var(--ink); }

/* calm mode: softer, quieter, less movement */
html.calm { --calm-line: #7D728A; --sky: #E3EBF1; --sky2: #EAF0F4; --sky3: #F1F4F6; --mango: #EFE2C6; --honey: #F6EEDC; --pandan: #CFE0D3; --guava: #EFDCD6; --blue: #3E5F7E; }
html.calm body { line-height: 1.6; }
html.calm .hdr { background: var(--cream); padding-top: 64px; padding-bottom: 64px; border-bottom-width: 1.5px; }
html.calm .hdr .deco, html.calm svg.kubo { display: none; }
html.calm .hdr { padding-top: 76px; border-bottom: 0; }
html.calm .familybar { background: var(--cream); color: var(--ink); border-bottom: 1.5px solid var(--calm-line); }
html.calm .familybar .fbright { color: var(--ink2); }
html.calm .card, html.calm .chk, html.calm .slot, html.calm .addbtn, html.calm .roundbtn, html.calm .chip, html.calm .room, html.calm .note, html.calm .bubble, html.calm .tiles span, html.calm .ghost, html.calm .primary, html.calm .big, html.calm .opt span, html.calm input[type=text], html.calm select, html.calm .tabs { border-width: 1.5px; border-color: var(--calm-line); }
html.calm .ghead, html.calm .fcard, html.calm .familiar li, html.calm .startbox, html.calm .carebox, html.calm .calmswitch, html.calm .kubomean, html.calm .whobtn, html.calm .family li a, html.calm nav.main { border-width: 1.5px; border-color: var(--calm-line); }
html.calm .startbox { box-shadow: none; }
html.calm .mood, html.calm .storycard, html.calm .big, html.calm .primary, html.calm .addbtn, html.calm .roundbtn, html.calm .bubble, html.calm .tiles span, html.calm .alldone, html.calm nav.main .fab { box-shadow: none; }
html.calm .pill { background: var(--ink2); color: #fff; }
html.calm .count { background: #fff; }
html.calm .roundbtn.spin svg { animation: none; }
html.calm * { transition: none !important; animation: none !important; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
