:root{--bg:#f7f8f5;--fg:#17261f;--accent:#25614d;--accent-soft:#e9f3ed;--border:#dce5de;--radius:10px}*{box-sizing:border-box;margin:0;padding:0}body{background:var(--bg);color:var(--fg);font-family:system-ui,sans-serif;line-height:1.6}main{max-width:900px;margin:1.5rem auto;padding:0 1.5rem}:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.workspace-shell{flex-direction:column;min-height:100dvh;display:flex}.workspace-header{border-bottom:1px solid var(--border);background:#fff}.workspace-header nav{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.25rem 1rem;max-width:1120px;margin:0 auto;padding:.5rem clamp(.75rem,3vw,1.5rem);display:flex}.workspace-brand{border-radius:var(--radius);min-height:44px;color:var(--fg);letter-spacing:-.025em;align-items:center;gap:.5rem;font-size:1.125rem;font-weight:750;text-decoration:none;display:inline-flex}.workspace-brand span{background:var(--accent-soft);border-radius:.65rem;place-items:center;width:2rem;height:2rem;display:grid}.workspace-nav-actions{flex-wrap:wrap;align-items:center;gap:.25rem;display:flex}.workspace-nav-actions a,.workspace-nav-actions button{border-radius:var(--radius);color:#41584d;background:0 0;align-items:center;min-height:44px;padding:.25rem .65rem;font-size:.875rem;font-weight:650;text-decoration:none;display:inline-flex}.workspace-nav-actions [aria-current],.workspace-nav-actions a:hover,.workspace-nav-actions button:hover{background:var(--accent-soft);color:var(--accent)}.workspace-main{flex:1;width:100%;min-width:0;max-width:1120px;margin:0 auto;padding:clamp(1rem,3vw,2rem) clamp(.75rem,3vw,1.5rem)}h1{margin-bottom:1rem}h2{font-size:1.2rem}h3{margin-bottom:.25rem;font-size:1rem}.auth-page{max-width:360px;margin:3rem auto;padding:0 1rem}.auth-page form{flex-direction:column;gap:.5rem;display:flex}label{font-size:.85rem;font-weight:500}input,select{border:1px solid var(--border);border-radius:var(--radius);padding:.5rem;font-size:.95rem}button{background:var(--accent);color:#fff;border-radius:var(--radius);cursor:pointer;border:none;padding:.5rem 1rem;font-size:.9rem}button:hover{opacity:.9}button.danger{background:#dc2626}.error{color:#dc2626;font-size:.85rem}.muted{color:#6b7280;font-size:.85rem}.card{border:1px solid var(--border);border-radius:var(--radius);background:#fff;margin-bottom:1rem;padding:1rem}.baby-grid{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:1rem;margin-bottom:1.5rem;display:grid}.dashboard-heading,.dashboard-care-settings,.baby-card-footer{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem 1rem;display:flex}.dashboard-heading,.profile-heading{border:1px solid var(--border);background:linear-gradient(155deg,#e6f3ec,#f5f8ef 72%);border-radius:1rem;margin-bottom:1.25rem;padding:clamp(1rem,3.5vw,2rem)}.dashboard-heading h1,.profile-heading h1{color:#173b2f;letter-spacing:-.04em;overflow-wrap:anywhere;margin:0;font-size:clamp(1.875rem,5vw,2.65rem);line-height:1.12}.dashboard-heading p,.profile-heading p{color:#41584d;margin-top:.5rem}.dashboard-add,.dashboard-form-actions button{min-height:44px;font-weight:650}.dashboard-empty{padding:1.5rem}.baby-dashboard>.error{margin-bottom:1rem}.dashboard-care-settings{justify-content:space-between;margin:0 0 1rem}.dashboard-care-settings label{color:#41584d;font-weight:650}.dashboard-care-settings select{min-height:44px;color:var(--fg);background-color:#fff;font-size:1rem}.dashboard-add-form{gap:.85rem;max-width:36rem;padding:clamp(1rem,3vw,1.5rem);display:grid}.dashboard-add-form label{margin-bottom:.25rem;font-weight:650;display:block}.dashboard-add-form input,.dashboard-add-form select{width:100%;min-width:0;min-height:44px;color:var(--fg);background:#fff;font-size:1rem;display:block}.dashboard-form-actions{flex-wrap:wrap;gap:.5rem;padding-top:.25rem;display:flex}.dashboard-form-actions button[type=button]{color:var(--accent);background:var(--accent-soft)}.dashboard-form-actions button:disabled{opacity:.65;cursor:wait}.baby-dashboard-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,22rem),1fr));align-items:start}.baby-dashboard-card{border-radius:1rem;min-width:0;margin:0;padding:0;overflow:hidden;box-shadow:0 6px 18px #1e42300d}.baby-card-heading{background:#f3f8f3;align-items:flex-start;gap:.8rem;padding:clamp(.9rem,2.5vw,1.25rem);display:flex}.baby-card-initial{color:#245541;background:#dcece2;border-radius:.75rem;flex:0 0 2.5rem;place-items:center;height:2.5rem;font-weight:750;display:grid}.baby-card-identity{min-width:0}.baby-card-heading h2{overflow-wrap:anywhere;font-size:1.35rem;line-height:1.3}.baby-card-heading h2 a{color:inherit;text-underline-offset:.15em;text-decoration-thickness:1px}.baby-card-age{color:#41584d;margin-top:.12rem;font-size:.9rem}.baby-card-section{border-top:1px solid var(--border);padding:clamp(.9rem,2.5vw,1.25rem)}.baby-card-section h3{color:#243a2e}.baby-observations{gap:.45rem;margin:.5rem 0 .75rem;display:grid}.baby-observations>div{background:#f4f7f4;border-radius:.65rem;flex-wrap:wrap;justify-content:space-between;gap:0 .5rem;padding:.5rem .7rem;font-size:.875rem;display:flex}.baby-observations dt{color:#41584d}.baby-observations dd{font-variant-numeric:tabular-nums;font-weight:650}.baby-card-actions{flex-wrap:wrap;gap:.45rem;margin-top:.55rem;display:flex}.baby-card-actions a,.baby-card-footer a,.baby-remove{border-radius:var(--radius);min-height:44px;color:var(--accent);align-items:center;padding:.35rem .7rem;font-size:.875rem;font-weight:650;text-decoration:none;display:inline-flex}.baby-card-daily .baby-card-actions a{background:var(--accent-soft);flex:auto;justify-content:center}.baby-card-actions a:hover,.baby-card-footer a:hover{text-decoration:underline}.baby-guide-title{font-weight:650}.baby-card-footer{border-top:1px solid var(--border);padding:.5rem .75rem}.baby-remove{color:#a42525;background:0 0}.baby-remove:hover{background:#fff0ed}.profile-heading a{min-height:44px;color:var(--accent);align-items:center;margin-bottom:.5rem;font-size:.875rem;font-weight:650;display:inline-flex}.tabs{border:1px solid var(--border);background:#fff;border-radius:.85rem;flex-wrap:wrap;gap:.25rem;margin-bottom:1rem;padding:.3rem;display:flex}.tabs a{color:#41584d;border-radius:.6rem;align-items:center;min-height:44px;padding:.5rem .65rem;font-size:.875rem;font-weight:650;text-decoration:none;display:inline-flex}.tabs a[aria-current],.tabs a:hover{background:var(--accent-soft);color:var(--accent)}.baby-profile .tab-content input,.baby-profile .tab-content select,.baby-profile .tab-content textarea{max-width:100%;min-height:44px;font-size:1rem}.baby-profile .tab-content table{overflow-wrap:anywhere}@media (width<=420px){.workspace-nav-actions,.dashboard-add{width:100%}}.tab-content{min-height:200px}.summary-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:1rem;display:grid}.summary-grid .card{text-align:center}.summary-grid h3{color:var(--accent);font-size:2rem}.inline-form{flex-wrap:wrap;align-items:end;gap:.5rem;margin-bottom:1rem;display:flex}.inline-form input,.inline-form select{min-width:100px}.action-header{flex-wrap:wrap;align-items:center;gap:.5rem;margin-bottom:1rem;display:flex}.action-header .muted{margin:0 auto 0 0}details{margin-bottom:1rem}details summary{cursor:pointer;color:var(--accent);margin-bottom:.5rem;font-size:.9rem}.activity-grid{grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:.5rem;margin-bottom:1rem;display:grid}.activity-chip{color:var(--fg);border-radius:var(--radius);text-align:center;background:#ecfdf5;border:1px solid #a7f3d0;flex-direction:column;align-items:center;gap:.25rem;padding:.75rem .5rem;font-size:.8rem;display:flex}.activity-emoji{font-size:1.5rem}table{border-collapse:collapse;width:100%;font-size:.9rem}th,td{text-align:left;border-bottom:1px solid var(--border);padding:.5rem}th{text-transform:uppercase;color:#6b7280;font-size:.8rem;font-weight:600}.ai-text{white-space:pre-wrap;margin-top:.75rem;line-height:1.5}.chat-messages{max-height:300px;margin-bottom:.75rem;overflow-y:auto}.chat-msg{border-radius:var(--radius);margin-bottom:.5rem;padding:.5rem}.chat-msg.user{background:#eef2ff}.chat-msg.assistant{background:#f0fdf4}.chat-speaker{color:#555;margin-bottom:.4rem;font-size:.8rem;display:block}.chat-user-text{white-space:pre-wrap;overflow-wrap:anywhere}.ai-message{overflow-wrap:anywhere;line-height:1.6}.ai-message>:first-child{margin-top:0}.ai-message>:last-child{margin-bottom:0}.ai-message p,.ai-message ul,.ai-message ol,.ai-message blockquote,.ai-message pre,.ai-message table{margin:.65rem 0}.ai-message ul,.ai-message ol{padding-left:1.5rem}.ai-message li+li{margin-top:.3rem}.ai-message h3,.ai-message h4,.ai-message h5,.ai-message h6{margin:.8rem 0 .4rem;font-size:1rem}.ai-message a{color:var(--accent);text-decoration:underline}.ai-message pre{border-radius:var(--radius);background:#e6ece8;padding:.75rem;overflow-x:auto}.ai-message blockquote{border-left:3px solid var(--border);padding-left:.75rem}.landing{min-height:100vh}.landing-nav{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.25rem .75rem;max-width:1120px;margin:0 auto;padding:.5rem clamp(.75rem,3vw,1.5rem);display:flex}.landing-nav-links{flex-wrap:wrap;align-items:center;gap:.4rem;display:flex}.landing-nav-links a:not(.btn){min-height:44px;color:var(--fg);align-items:center;padding:.25rem;font-size:.875rem;font-weight:650;text-decoration:none;display:inline-flex}.btn{background:var(--accent);color:#fff;border-radius:var(--radius);cursor:pointer;border:none;justify-content:center;align-items:center;min-height:44px;padding:.5rem .85rem;font-size:.95rem;font-weight:650;text-decoration:none;display:inline-flex}.btn:hover{opacity:.9}.btn-lg{padding:.75rem 1.25rem;font-size:1.05rem}.hero{background:linear-gradient(155deg,#e6f3ec,#f5f8ef 70%);align-items:center;gap:clamp(1.5rem,5vw,3.5rem);max-width:1072px;margin:0 auto;padding:clamp(1.25rem,6vw,4rem);display:grid}.hero>div{min-width:0}.hero h1{letter-spacing:-.055em;color:#173b2f;max-width:15ch;margin-bottom:.9rem;font-size:clamp(2.15rem,5vw,4rem);line-height:1.06}.hero-sub{color:#41584d;max-width:52ch;margin-bottom:1.25rem}.hero-plan{color:#41584d;max-width:46ch;margin-top:.65rem;font-size:.875rem}.hero-example{border:1px solid var(--border);background:#fff;border-radius:1rem;padding:clamp(.9rem,2.25vw,1.4rem);box-shadow:0 10px 35px #204b361a}.hero-example .baby-observations{margin-bottom:0}@media (width>=740px){.hero{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr)}}@media (width>=1120px){.hero{border-radius:1.5rem;margin-top:.75rem}}.features{grid-template-columns:repeat(auto-fit,minmax(min(100%,265px),1fr));gap:clamp(.75rem,2vw,1.5rem);max-width:1120px;margin:0 auto;padding:clamp(1rem,4vw,2.5rem) clamp(.75rem,3vw,1.5rem);display:grid}.feature-card{border:1px solid var(--border);background:#fff;border-radius:12px;padding:1.5rem}.feature-icon{margin-bottom:.5rem;font-size:2rem;display:block}.feature-card h3{margin-bottom:.4rem}.feature-card p{color:#555;font-size:.9rem;line-height:1.5}.cta{text-align:center;background:var(--accent-soft);margin-top:2rem;padding:4rem 2rem}.cta h2{margin-bottom:.6rem;font-size:2rem}.cta p{color:#555;margin-bottom:1.5rem;font-size:1.05rem}.landing-footer{text-align:center;color:#54665b;padding:1.5rem;font-size:.85rem}.ai-layout{grid-template-columns:200px 1fr;gap:1rem;min-height:400px;display:grid}.thread-list{border-right:1px solid var(--border);flex-direction:column;gap:.5rem;padding-right:1rem;display:flex}.thread-item{border-radius:var(--radius);cursor:pointer;color:inherit;text-align:left;background:0 0;border:none;align-items:center;gap:.4rem;padding:.4rem .5rem;font-size:.85rem;display:flex}.thread-item:hover{background:var(--border)}.thread-item.active{background:var(--accent);color:#fff}.thread-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.btn-sm{padding:.4rem .6rem;font-size:.8rem}.chat-area{flex-direction:column;min-width:0;display:flex}.chat-area .chat-messages{flex:1;overflow-y:auto}@media (width<=640px){.ai-layout{grid-template-columns:1fr}.thread-list{border-right:none;border-bottom:1px solid var(--border);flex-flow:wrap;padding-bottom:.5rem}}.legal-links{flex-wrap:wrap;justify-content:center;gap:.25rem 1rem;display:flex}.legal-links a{color:inherit}.legal-page{max-width:760px;margin:2rem auto;padding:0 1.5rem}.legal-page>a{color:var(--accent);font-size:.9rem;text-decoration:none}.legal-page h1{margin:1rem 0 .25rem}.legal-body{flex-direction:column;gap:1.25rem;margin-top:1.5rem;display:flex}.legal-body h2{margin-bottom:.4rem}.legal-body ul{padding-left:1.5rem}.legal-body a{color:var(--accent)}.legal-body .form-box{border:1px solid var(--border);border-radius:var(--radius);margin-top:.75rem;padding:1rem;font-size:.9rem}
