:root{color-scheme:light;--bg:#f6f4ef;--card:#fffefa;--ink:#293f3b;--muted:#647670;--line:#e0e5dd;--sage:#e6eddf;--lav:#ebe6f4;--peach:#f5e5d9;--accent:#385e51;--white:#fff;--shadow:0 10px 35px #344b3d06;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:15px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink)}body.dark{color-scheme:dark;--bg:#151e23;--card:#1e2b30;--ink:#e4ece7;--muted:#acbcb5;--line:#35454a;--sage:#2c413c;--lav:#37354c;--peach:#493d36;--accent:#b3d3bb;--white:#182720;--shadow:none}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;color:inherit;background:transparent}button:focus-visible,a:focus-visible{outline:3px solid #9b82bc;outline-offset:4px}button:disabled{opacity:.5;cursor:wait}a{color:var(--accent)}.shell{max-width:1440px;display:grid;grid-template-columns:235px 1fr;margin:auto;min-height:100vh}.sidebar{padding:40px 22px;border-right:1px solid var(--line);position:sticky;top:0;height:100vh;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:10px;font-weight:750;font-size:21px;letter-spacing:-.6px}.brand svg{width:34px;height:34px}.brand small{display:block;font-weight:400;font-size:10px;letter-spacing:2px;margin-top:4px;color:var(--muted)}nav{margin-top:48px;display:grid;gap:9px}nav button{text-align:left;padding:14px 16px;border-radius:15px;display:flex;gap:13px;align-items:center;color:var(--muted)}nav button.selected{background:var(--sage);color:var(--ink);font-weight:650}.icon{width:21px;height:21px;flex-shrink:0;stroke:currentColor;fill:none;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.side-bottom{margin-top:auto;color:var(--muted);font-size:12px;line-height:1.8;padding:14px}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#78947b;margin-right:6px}.main{padding:34px 42px 70px;max-width:1180px;width:100%}.topbar{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:23px;margin-bottom:31px}.eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:1.8px;font-weight:650;color:var(--muted)}.profile{display:flex;align-items:center;gap:10px}.avatar{background:var(--peach);border-radius:50%;height:39px;width:39px;display:grid;place-items:center}.profile strong{font-size:13px}.profile small{display:block;color:var(--muted);font-size:11px;margin-top:3px}.round{width:42px;height:42px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%}.greeting{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:28px}h1{font-family:Georgia,serif;font-weight:400;letter-spacing:-1.3px;font-size:38px;margin:7px 0 10px}p{line-height:1.6}h2{font-size:17px;font-weight:650;margin:0 0 16px}h3{font-size:14px;margin:0 0 8px}.subtle{color:var(--muted);font-size:13px;margin:0}.pill{padding:7px 11px;background:var(--sage);border-radius:25px;font-size:11px;white-space:nowrap}.grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(250px,1fr);gap:22px}.stack{display:flex;flex-direction:column;gap:22px}.card{background:var(--card);border:1px solid var(--line);border-radius:24px;padding:25px;box-shadow:var(--shadow)}.forecast{background:var(--sage);position:relative;overflow:hidden;min-height:285px;border-color:transparent}.forecast .content{position:relative;z-index:1;max-width:75%}.forecast h2{font-size:13px;font-weight:500;margin:0 0 18px}.forecast .large{font-family:Georgia,serif;font-size:38px;line-height:1.15;letter-spacing:-1px;margin:16px 0}.forecast .moon-art{position:absolute;right:15px;top:28px;width:130px;height:150px;color:#7d9986;opacity:.7}.forecast .subtle{max-width:320px}.textbtn{padding:0;font-size:12px;margin-top:20px;text-decoration:underline;text-underline-offset:4px}.status{background:var(--lav)}.status-time{font-family:Georgia,serif;font-size:30px;margin:12px 0}.primary{background:var(--accent);color:var(--white);border-radius:15px;min-height:49px;padding:13px 20px;font-weight:650}.status .primary{width:100%;margin-top:20px}.actions{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.action{border:1px solid var(--line);border-radius:19px;padding:18px 4px;background:var(--card);display:flex;align-items:center;flex-direction:column;gap:10px;font-size:12px}.action span{width:40px;height:40px;display:grid;place-items:center;border-radius:14px;background:var(--sage)}.action:nth-child(2) span{background:var(--peach)}.action:nth-child(3) span{background:var(--lav)}.card-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:18px}.card-head h2{margin:0}.linkbtn{font-size:12px;color:var(--accent);padding:6px}.summary{display:grid;grid-template-columns:repeat(3,1fr);margin-top:20px}.summary div{border-right:1px solid var(--line);padding:0 10px}.summary div:first-child{padding-left:0}.summary div:last-child{border:0}.summary strong{font-size:22px;font-weight:500;display:block;margin-bottom:6px}.summary small{font-size:11px;color:var(--muted)}.timeline{height:29px;background:var(--bg);border-radius:9px;position:relative;overflow:hidden;margin-top:24px}.segment{position:absolute;height:100%;background:#a6bda0;border-radius:4px;min-width:2px}.hours{display:flex;justify-content:space-between;margin-top:8px;color:var(--muted);font-size:10px}.legend{font-size:11px;color:var(--muted);margin-top:16px}.legend i{display:inline-block;width:9px;height:9px;border-radius:3px;background:#a6bda0;margin-right:6px}.event{display:flex;gap:13px;align-items:center;padding:15px 0;border-bottom:1px solid var(--line)}.event:last-child{border:0}.event-badge{border-radius:13px;background:var(--lav);width:39px;height:39px;display:grid;place-items:center;flex-shrink:0}.event-info{flex:1;min-width:0}.event strong{font-size:13px}.event small{display:block;color:var(--muted);font-size:11px;margin-top:5px;overflow-wrap:anywhere}.event time{font-size:12px;color:var(--muted)}.note-card{background:var(--peach);border:0}.note-card p{font-size:13px;margin:0}.note-card .icon{margin-bottom:12px}.empty{padding:22px 0;color:var(--muted);font-size:13px;line-height:1.7}.footnote{font-size:11px;color:var(--muted);margin:25px 2px 0;line-height:1.7}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:15px}label{display:block;font-size:13px;margin-bottom:16px}input,select,textarea{display:block;width:100%;background:var(--bg);color:var(--ink);border:1px solid var(--line);border-radius:12px;padding:12px;margin-top:7px;min-height:46px}textarea{resize:vertical;min-height:85px}dialog{background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:25px;width:min(500px,calc(100% - 24px));padding:27px;max-height:90dvh;overflow:auto}dialog::backdrop{background:#152e2866;backdrop-filter:blur(4px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.dialog-head h2{margin:0}.buttons{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}.secondary{border:1px solid var(--line);border-radius:13px;padding:12px 17px;min-height:46px}.danger{color:#b6554e}.error{color:#b6554e;font-size:13px;line-height:1.6}.wide{grid-column:1/-1}.chart{display:flex;gap:10px;align-items:flex-end;height:160px;padding-top:15px}.chart-col{flex:1;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:7px;font-size:10px;color:var(--muted)}.bar{width:100%;max-width:48px;min-height:2px;background:#a6bda0;border-radius:8px 8px 3px 3px}.metric{font-size:36px;font-family:Georgia,serif;margin:15px 0}.settings-row{padding:18px 0;border-top:1px solid var(--line)}.settings-row p{font-size:13px;color:var(--muted)}.settings-row .buttons{justify-content:flex-start}#toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);background:var(--ink);color:var(--bg);padding:13px 20px;border-radius:14px;display:none;z-index:5;max-width:90%;font-size:13px}.warning{background:var(--peach);padding:14px;border-radius:14px;font-size:12px;line-height:1.6;margin:15px 0}.loading{padding:50px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(min-width:1200px){.main{padding:36px 50px}}@media(max-width:1000px){.shell{grid-template-columns:190px 1fr}.sidebar{padding:30px 14px}.brand{font-size:18px}.main{padding:28px 25px}.grid{grid-template-columns:1fr}.greeting h1{font-size:34px}.forecast{min-height:260px}.stack{gap:18px}}@media(max-width:650px){.shell{display:block}.sidebar{position:fixed;bottom:0;top:auto;height:auto;width:100%;padding:8px 5px calc(8px + env(safe-area-inset-bottom));border:0;border-top:1px solid var(--line);background:var(--card);z-index:3}.brand,.side-bottom{display:none}nav{display:flex;margin:0;gap:0;justify-content:space-around}nav button{padding:9px 5px;min-width:56px;flex-direction:column;gap:5px;font-size:10px;border-radius:13px}nav .icon{width:21px;height:21px}.main{padding:20px 18px 115px}.topbar{margin-bottom:23px;padding-bottom:17px}.eyebrow{font-size:10px}.greeting{margin-bottom:23px}.greeting h1{font-size:32px}.greeting>.pill{display:none}.card{padding:22px;border-radius:23px}.grid,.stack{gap:17px}.forecast .large{font-size:34px}.forecast .moon-art{width:100px;right:8px;top:45px}.actions{gap:8px}.action{font-size:11px;padding:15px 3px}.formgrid{grid-template-columns:1fr}.summary strong{font-size:21px}.summary small{font-size:10px}.event{gap:10px}#toast{bottom:100px}}@media(prefers-reduced-motion:no-preference){button{transition:background .15s,transform .15s}button:active{transform:scale(.98)}}

.brand small{font-size:8px;letter-spacing:1.1px}.primary .icon{vertical-align:middle}@media(max-width:1000px){.home-grid{display:flex;flex-direction:column}.home-grid>.stack:nth-child(2){display:contents}.home-grid .status{order:-1}}
/* Native iPhone layout port: one column, four tabs, comfortable targets. */
:root{font-size:17px;--bg:#f5f3ed;--card:#fffdf7;--ink:#233b36;--muted:#576d64;--accent:#436c5a}body.dark{--bg:#0d242e;--card:#1c353c;--ink:#edf4ec;--muted:#b0c3bd;--accent:#b5d0ba;--sage:#254641}h1,h2,h3{font-family:inherit;letter-spacing:-.4px;font-weight:700}h1{font-size:28px}h2{font-size:20px}p{line-height:1.5}.shell{display:block;max-width:540px;min-height:100dvh}.main{padding:calc(22px + env(safe-area-inset-top)) 18px calc(100px + env(safe-area-inset-bottom));width:100%;max-width:none}.app-brand{display:flex;align-items:center;gap:10px;font-size:25px;font-weight:750;margin:0 0 10px}.app-brand .icon{width:32px;height:32px;color:#d7af6b}.sync-status{display:block;min-height:44px;font-size:13px;color:var(--muted);padding:4px 0;text-align:left}.welcome{margin:16px 0 20px}.baby-profile{display:flex;align-items:center;text-align:left;gap:14px;width:100%;background:var(--card);padding:12px 14px;border-radius:22px;margin-bottom:16px}.baby-profile strong{font-size:20px}.baby-profile small{display:block;font-size:16px;color:var(--muted);margin-top:3px}.chevron{margin-left:auto}.avatar{width:52px;height:52px;background:var(--sage);font-size:36px;overflow:hidden;flex-shrink:0}.avatar img{width:100%;height:100%;object-fit:cover}.card{padding:22px;border-radius:24px;box-shadow:none}.stack{gap:16px}.grid,.home-grid{display:block}.grid>.card,.grid>.stack{margin-bottom:16px}.status .eyebrow{display:none}.status h2{margin-top:0!important;color:var(--muted)}.status-time{font-size:42px;line-height:1.15;font-weight:750;font-family:inherit;letter-spacing:-1px;margin:14px 0}.status .primary{width:100%;margin-top:12px}.primary{min-height:56px;border-radius:28px;font-size:18px;background:var(--accent);color:var(--white);padding:14px 22px}.secondary{min-height:48px;border-radius:16px;padding:12px 16px}.round{min-width:44px;min-height:44px}.textbtn,.linkbtn{min-height:44px}.forecast{background:linear-gradient(120deg,var(--sage),var(--card));min-height:0}.forecast .large{font-family:inherit;font-size:28px;line-height:1.2;letter-spacing:-.5px;margin:16px 0}.forecast .moon-art{display:none}.forecast .pill{font-size:13px}.forecast p{font-size:16px}.actions{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.action{font-size:13px;min-height:76px;border-radius:18px;padding:8px 3px;line-height:1.2}.action span{margin:0 auto 6px}.summary{gap:8px}.summary strong{font-size:20px}.summary small{font-size:13px}.bottom-nav{position:fixed;left:50%;bottom:calc(10px + env(safe-area-inset-bottom));transform:translateX(-50%);width:calc(100% - 28px);max-width:510px;margin:0;display:grid;grid-template-columns:repeat(4,1fr);gap:0;border:1px solid var(--line);border-radius:30px;background:var(--card);box-shadow:0 4px 24px #0002;padding:5px;z-index:5}.bottom-nav button{display:flex;flex-direction:column;justify-content:center;gap:4px;padding:7px 2px;min-height:60px;font-size:11px;min-width:0;border-radius:24px}.bottom-nav .icon{width:25px;height:25px}.bottom-nav button.selected{background:var(--sage)}.footnote{font-size:13px}.event-info strong{font-size:17px}.event-info small{font-size:14px}.event time{font-size:13px}.formgrid{display:block}.formgrid label{margin-bottom:16px}input,select,textarea{font-size:17px;min-height:48px;width:100%}dialog{width:min(100%,540px);max-width:100%;max-height:92dvh;margin:auto auto 0;border-radius:28px 28px 0 0;padding:24px 22px calc(24px + env(safe-area-inset-bottom));overflow-y:auto;animation:slide-up .2s ease-out}dialog::before{content:'';display:block;width:38px;height:5px;background:var(--muted);border-radius:10px;margin:-10px auto 18px;opacity:.5}dialog .buttons{position:sticky;bottom:0;background:var(--card);padding:10px 0;margin-bottom:0}dialog .buttons .primary{flex:1}dialog::backdrop{background:#0008}.auth{max-width:450px;margin:0 auto;padding:48px 24px;min-height:100dvh}.auth>img{border-radius:22px}.auth form{margin-top:26px}.auth .primary{width:100%;margin-top:14px}.auth label{margin-top:16px}.auth h1{font-size:30px}.auth h2{margin-top:28px}.recovery{display:block;word-break:break-all;background:var(--sage);padding:20px;margin:20px 0;border-radius:16px}.profile-photo{width:112px;height:112px;margin:12px auto 24px;border-radius:50%;background:var(--sage);display:grid;place-items:center;font-size:60px;overflow:hidden}.profile-photo img{width:100%;height:100%;object-fit:cover}.photo-pick{display:block;text-align:center;margin-bottom:16px}.photo-pick input{margin-top:12px}#profile-form>.primary{position:sticky;bottom:0;width:100%;margin-top:18px}#crop{display:block;width:min(100%,300px);height:auto;aspect-ratio:1;border-radius:50%;margin:20px auto;touch-action:none;outline:2px solid var(--line)}#auth-error,#family-error{color:#b53838}.chart-col span{font-size:11px}@keyframes slide-up{from{transform:translateY(80px);opacity:.5}to{transform:translateY(0);opacity:1}}@media(prefers-reduced-motion:reduce){dialog{animation:none}}@media(max-width:380px){.main{padding-left:14px;padding-right:14px}.card{padding:18px}.status-time{font-size:38px}.bottom-nav button{font-size:10px}}

.status{background:var(--card)}.status-time{margin:10px 0}.status p{font-size:16px}.forecast .large{font-size:26px;margin:12px 0}.forecast .textbtn{font-size:14px}.forecast .pill{display:none}
