*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}:root{--brand-50: #E1F5EE;--brand-100: #9FE1CB;--brand-500: #1D9E75;--brand-600: #0F6E56;--brand-700: #085041;--info-50: #E6F1FB;--info-500: #185FA5;--info-700: #0C447C;--warning-50: #FAEEDA;--warning-100: #FAC775;--warning-500: #BA7517;--warning-700: #633806;--alert-50: #FAECE7;--alert-100: #F0997B;--alert-500: #D85A30;--alert-700: #712B13;--critical-50: #FCEBEB;--critical-100: #F09595;--critical-500: #A32D2D;--critical-700: #501313;--accent-50: #EEEDFE;--accent-500: #534AB7;--bg: #F7F7F5;--surface: #FFFFFF;--border: rgba(0,0,0,.1);--border-med: rgba(0,0,0,.15);--text: #1A1A18;--text-2: #5A5A56;--text-3: #9A9A94;--space-tight: 4px;--space-snug: 8px;--space: 16px;--space-comfortable: 24px;--space-spacious: 32px;--radius-tight: 8px;--radius: 12px;--radius-comfortable: 14px;--radius-round: 9999px;--nav-h: 64px;--safe-bottom: env(safe-area-inset-bottom, 0px);--green: var(--brand-500);--green-light: var(--brand-50);--green-dark: var(--brand-600);--purple: var(--accent-500);--purple-light: var(--accent-50);--amber: var(--warning-500);--amber-light: var(--warning-50);--coral: var(--alert-500);--coral-light: var(--alert-50);--blue: var(--info-500);--blue-light: var(--info-50);--pink: #993556;--pink-light: #FBEAF0;--gray: #5F5E5A;--gray-light: #F1EFE8}html{height:100%}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif;font-size:16px;line-height:1.5;-webkit-text-size-adjust:100%;text-size-adjust:100%;background:var(--bg);color:var(--text);height:100%;overflow:hidden;-webkit-font-smoothing:antialiased}#root{height:100%}button{font-family:inherit;cursor:pointer}input,select,textarea{font-family:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[role=button]:focus-visible,[role=tab]:focus-visible{outline:2px solid var(--brand-500);outline-offset:2px}button:focus:not(:focus-visible){outline:none}input[type=text],input[type=number],input[type=time],input[type=date],select,textarea{font-size:16px;-moz-appearance:none;appearance:none;-webkit-appearance:none}.app{display:flex;flex-direction:column;height:100dvh;max-width:600px;margin:0 auto;position:relative;background:var(--bg)}button,[role=button],a.btn,.btn-add,.btn-primary,.btn-secondary{min-height:44px}.topbar{background:var(--surface);border-bottom:.5px solid var(--border);padding:12px 16px;display:flex;align-items:center;justify-content:space-between;flex-shrink:0;padding-top:max(12px,env(safe-area-inset-top))}.topbar-left{display:flex;flex-direction:column;gap:1px;min-width:0;flex:1}.topbar-logo{font-size:16px;font-weight:700;color:var(--text);letter-spacing:-.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar-sub{font-size:clamp(10px,3vw,12px);color:var(--text-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.baby-chip{display:flex;align-items:center;gap:6px;background:var(--green-light);color:var(--green-dark);border:none;border-radius:20px;padding:6px 12px;font-size:13px;font-weight:600;min-height:36px;max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.baby-chip-avatar{width:22px;height:22px;border-radius:50%;background:var(--green);color:#fff;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center}.content{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:0 0 16px}.bottom-nav{background:var(--surface);border-top:.5px solid var(--border);display:flex;padding-bottom:max(8px,var(--safe-bottom));flex-shrink:0}.nav-item{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:8px 4px;border:none;background:transparent;color:var(--text-3);font-size:10px;min-height:52px;transition:color .15s}.nav-item.active{color:var(--green)}.nav-item svg{width:22px;height:22px}.section-header{padding:16px 16px 8px}.section-title{font-size:20px;font-weight:700;color:var(--text)}.section-desc{font-size:14px;color:var(--text-3);margin-top:2px}.card{background:var(--surface);border-radius:14px;border:.5px solid var(--border);margin:8px 16px 0;overflow:hidden}.card-header{padding:12px 14px 8px;font-size:11px;font-weight:600;color:var(--text-3);text-transform:uppercase;letter-spacing:.6px;border-bottom:.5px solid var(--border)}.stat-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:8px 16px 0}.stat-card{background:var(--surface);border:.5px solid var(--border);border-radius:12px;padding:12px 10px;text-align:center}.stat-val{font-size:22px;font-weight:700;color:var(--text)}.stat-lbl{font-size:11px;color:var(--text-3);margin-top:2px;line-height:1.3}.log-item{display:flex;align-items:center;gap:10px;padding:11px 14px;border-bottom:.5px solid var(--border);min-height:48px}.log-item:last-child{border-bottom:none}.log-icon{font-size:18px;min-width:24px;text-align:center}.log-body{flex:1;min-width:0}.log-name{font-size:15px;font-weight:500;color:var(--text)}.log-detail{font-size:13px;color:var(--text-3);margin-top:2px;line-height:1.4}.log-time{font-size:13px;color:var(--text-3);white-space:nowrap}.badge{font-size:11px;font-weight:600;padding:3px 9px;border-radius:20px;white-space:nowrap}.badge-green{background:var(--green-light);color:var(--green-dark)}.badge-purple{background:var(--purple-light);color:var(--purple)}.badge-amber{background:var(--amber-light);color:var(--amber)}.badge-coral{background:var(--coral-light);color:var(--coral)}.badge-blue{background:var(--blue-light);color:var(--blue)}.badge-pink{background:var(--pink-light);color:var(--pink)}.btn-add{display:flex;align-items:center;justify-content:center;gap:6px;width:calc(100% - 32px);margin:10px 16px 0;padding:13px;border:1.5px dashed var(--border-med);border-radius:12px;background:transparent;color:var(--text-3);font-size:14px;min-height:48px}.btn-primary{background:var(--green);color:#fff;border:none;border-radius:12px;padding:13px 20px;font-size:15px;font-weight:600;min-height:48px}.btn-secondary{background:var(--gray-light);color:var(--text);border:none;border-radius:12px;padding:13px 20px;font-size:15px;font-weight:600;min-height:48px}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000073;z-index:200;display:flex;align-items:flex-end;justify-content:center}.modal-sheet{background:var(--surface);border-radius:20px 20px 0 0;padding:20px 16px;padding-bottom:max(24px,var(--safe-bottom));width:100%;max-width:430px;max-height:90dvh;overflow-y:auto;-webkit-overflow-scrolling:touch}.modal-handle{width:36px;height:4px;background:var(--border-med);border-radius:2px;margin:0 auto 16px}.modal-title{font-size:18px;font-weight:700;margin-bottom:16px}.form-group{margin-bottom:14px}.form-label{font-size:13px;color:var(--text-2);font-weight:500;margin-bottom:6px;display:block}.form-input,.form-select{width:100%;padding:12px 14px;border:.5px solid var(--border-med);border-radius:10px;font-size:16px;background:var(--bg);color:var(--text);min-height:48px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.form-row .form-label{min-height:19px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media (max-width: 360px){.form-row .form-label{font-size:12px}}.modal-btns{display:flex;gap:10px;margin-top:20px}.modal-btns button{flex:1}.warn-card{margin:8px 16px 0;background:var(--amber-light);border:.5px solid #FAC775;border-radius:12px;padding:12px 14px;font-size:13px;color:var(--amber);line-height:1.5}.warn-card strong{color:#633806}.timer-display{text-align:center;padding:24px 16px 16px}.timer-digits{font-size:52px;font-weight:700;color:var(--text);letter-spacing:-2px;font-variant-numeric:tabular-nums}.timer-label{font-size:13px;color:var(--text-3);margin:4px 0 16px}.timer-btn{border:none;border-radius:30px;padding:13px 36px;font-size:16px;font-weight:600;min-height:52px}.timer-btn.start{background:var(--purple);color:#fff}.timer-btn.stop{background:var(--coral);color:#fff}.milestone-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:8px 16px 0}.milestone-card{background:var(--surface);border:.5px solid var(--border);border-radius:14px;padding:14px 12px;cursor:pointer;transition:border-color .15s,background .15s;min-height:100px}.milestone-card.done{background:var(--green-light);border-color:var(--green)}.ms-emoji{font-size:24px;margin-bottom:6px}.ms-name{font-size:13px;font-weight:600;color:var(--text);line-height:1.3}.ms-age{font-size:11px;color:var(--text-3);margin-top:3px}.ms-done{font-size:11px;color:var(--green-dark);margin-top:4px;font-weight:600}.profile-list{padding:8px 16px 0;display:flex;flex-direction:column;gap:8px}.profile-card{background:var(--surface);border:.5px solid var(--border);border-radius:14px;padding:14px;display:flex;align-items:center;gap:12px;cursor:pointer;min-height:68px}.profile-card.active{border-color:var(--green);border-width:1.5px}.profile-avatar{width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:20px;flex-shrink:0}.profile-info{flex:1}.profile-name{font-size:15px;font-weight:600;color:var(--text)}.profile-detail{font-size:12px;color:var(--text-3);margin-top:2px}.profile-check{color:var(--green);font-size:18px}.segment{display:flex;background:var(--gray-light);border-radius:10px;padding:3px;gap:2px;margin:10px 16px 0}.seg-btn{flex:1;padding:7px;border:none;border-radius:8px;background:transparent;font-size:13px;font-weight:500;color:var(--text-3);min-height:36px;transition:background .15s,color .15s}.seg-btn.active{background:var(--surface);color:var(--text);box-shadow:0 1px 3px #0000001a}.empty-state{text-align:center;padding:40px 20px;color:var(--text-3)}.empty-state .empty-icon{font-size:40px;margin-bottom:10px}.empty-state p{font-size:15px;line-height:1.5}.chart-wrap{padding:8px 4px 0;height:180px}.temp-normal{color:var(--green)}.temp-sub{color:var(--blue)}.temp-fever{color:var(--amber)}.temp-high{color:var(--coral)}.diet-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:8px 16px 0}.diet-item{background:var(--surface);border:.5px solid var(--border);border-radius:12px;padding:10px 8px;text-align:center;cursor:pointer;transition:border-color .15s}.diet-item.ok{background:var(--green-light);border-color:var(--green)}.diet-item.nope{background:var(--coral-light);border-color:var(--coral)}.diet-emoji{font-size:22px}.diet-name{font-size:11px;color:var(--text-2);margin-top:4px;line-height:1.2;font-weight:500}.diet-age{font-size:10px;color:var(--text-3);margin-top:2px}.vacc-item{display:flex;align-items:center;gap:12px;padding:12px 14px;border-bottom:.5px solid var(--border);min-height:56px}.vacc-item:last-child{border-bottom:none}.vacc-dot{width:12px;height:12px;border-radius:50%;flex-shrink:0}.vacc-done{background:var(--green)}.vacc-upcoming{background:var(--amber)}.vacc-future{background:var(--border-med)}.vacc-body{flex:1}.vacc-name{font-size:14px;font-weight:500;color:var(--text)}.vacc-when{font-size:12px;color:var(--text-3);margin-top:1px}.diary-entry{padding:14px;border-bottom:.5px solid var(--border)}.diary-entry:last-child{border-bottom:none}.diary-date{font-size:11px;color:var(--text-3);font-weight:600;text-transform:uppercase;margin-bottom:4px}.diary-mood{font-size:20px;margin-right:6px}.diary-text{font-size:14px;color:var(--text);line-height:1.5}
