:root{--bg:#fbf8f5;--surface:#fff;--ink:#3d302a;--muted:#75665c;--subtle:#f4eee8;--line:#eadfd6;--green:#b65025;--green-hover:#963e1b;--mint:#fcebdd;--sand:#f5efdf;--amber:#836524;--red:#b34a3f;--blue:#3c607c;--radius:16px;--shadow:0 12px 50px -16px #603c2430;--nav:76px;--ease:cubic-bezier(.2,.8,.2,1);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);font-synthesis:none;font-size:15px}
*{box-sizing:border-box}body{margin:0;background:var(--bg)}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button{border:0;background:none}a{color:var(--green);text-decoration:none}button:disabled{opacity:.48;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #a54d25;outline-offset:3px}button:active:not(:disabled){transform:translateY(1px)}button,a{touch-action:manipulation}::selection{background:#f4cfb4;color:#572e1d}input,textarea{caret-color:var(--green)}h1,h2,h3,p{margin:0}h1{font-size:28px;line-height:1.3;letter-spacing:-.7px}h2{font-size:19px;letter-spacing:-.3px}h3{font-size:17px}small{font-size:12px}b,strong{font-weight:650}.icon{width:24px;height:24px;flex:none;display:inline-block;vertical-align:middle;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.muted{color:var(--muted)}.num{font-variant-numeric:tabular-nums;letter-spacing:-.4px}.skip{position:fixed;top:10px;left:20px;background:var(--green);color:white;padding:0;z-index:100;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}.skip:focus{width:auto;height:auto;clip-path:none;padding:12px}
.sidebar{position:fixed;inset:0 auto 0 0;width:224px;background:#fff;border-right:1px solid var(--line);padding:36px 22px;z-index:20;display:flex;flex-direction:column}.brand{display:flex;gap:12px;align-items:center;font-size:22px;font-weight:700;color:var(--ink);padding:0 8px}.brand-mark{display:grid;place-items:center;width:44px;height:44px;background:var(--green);color:#fff;border-radius:14px}.brand-mark .icon{width:27px;height:27px}.brand small{display:block;font-size:11px;letter-spacing:2px;margin-top:3px;font-weight:400;color:var(--muted)}.sidebar nav{display:grid;gap:10px;margin-top:55px}.nav-link{display:flex;gap:14px;align-items:center;padding:15px 18px;border-radius:12px;font-weight:550;color:var(--muted);transition:background .18s}.nav-link:hover{background:var(--bg)}.nav-link.active{background:var(--mint);color:var(--green);font-weight:700}.nav-link .icon{width:21px;height:21px}.side-bottom{margin-top:auto;display:flex;gap:10px;align-items:center;padding-top:20px;border-top:1px solid var(--line)}.side-bottom b{font-size:13px}.side-bottom small{display:block;color:var(--muted);margin-top:5px;font-size:11px}.workspace{margin-left:224px;padding:0 48px 50px;max-width:1580px}.preview-bar{height:43px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:7px;font-size:11px;color:var(--muted)}.status-dot{width:5px;height:5px;border-radius:50%;background:#a47555}.preview-date{margin-left:auto}.preview-bar .text-btn{font-size:11px;min-height:40px;padding-left:10px}.page-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:31px 0 26px}.page-head p{font-size:13px;color:var(--muted);margin-top:8px}.head-action{display:flex;align-items:center;gap:8px;padding:9px 12px;border-radius:10px;background:#fff;border:1px solid var(--line);min-height:44px;font-size:13px}.head-action .icon{width:17px;height:17px}.page-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:28px}.main-col,.aside-col{min-width:0}.panel{background:var(--surface);border-radius:var(--radius);padding:24px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:17px}.section-head .text-btn{font-size:12px}.text-btn{color:var(--green);min-height:44px;padding:5px 0;display:inline-flex;align-items:center;gap:3px;font-weight:550;white-space:nowrap}.text-btn .icon{width:16px;height:16px}.icon-btn{width:44px;height:44px;display:inline-grid;place-items:center;border-radius:12px;flex:none}.icon-btn:hover{background:var(--subtle)}.primary,.secondary,.danger-btn{min-height:48px;padding:12px 19px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-weight:600;font-size:14px;transition:background .18s}.primary{background:var(--green);color:#fff}.primary:hover{background:var(--green-hover)}.secondary{background:var(--subtle);color:var(--green)}.secondary:hover{background:#f3decd}.danger-btn{color:var(--red);background:#fcf0ee}.wide{width:100%}.button-row{display:flex;gap:10px}.button-row>*{flex:1}.pill{display:inline-flex;align-items:center;gap:5px;border-radius:20px;background:var(--mint);color:var(--green);padding:5px 9px;font-size:11px;font-weight:550}.avatar{width:62px;height:62px;border-radius:50%;display:grid;place-items:center;background:#f5d6bd;color:var(--green);font-size:25px;font-weight:600;flex:none;border:4px solid #ffffffb3}.avatar.small{width:39px;height:39px;font-size:15px;border-width:2px}.avatar.sand{background:#eee5cf;color:#71602e}.avatar.blue{background:#deebee;color:#46666d}
.baby-profile{background:#fbe5d5;padding:25px 27px 20px;border-radius:var(--radius);position:relative;overflow:hidden}.profile-top{display:flex;align-items:center;gap:15px}.profile-name{display:flex;align-items:center;gap:8px;font-size:24px;font-weight:700;letter-spacing:-.4px}.profile-name .icon{width:17px;height:17px}.profile-top p{font-size:13px;color:#7c5640;margin-top:7px}.profile-edit{margin-left:auto;align-self:flex-start;color:#865435}.age-display{display:flex;align-items:center;justify-content:space-between;margin:23px 0 17px}.age-display strong{font-size:32px;line-height:1.2;letter-spacing:-1px;font-weight:600}.age-display strong span{font-size:15px;font-weight:500;letter-spacing:0;margin:0 3px}.age-display .day-badge{font-size:12px;color:#775139;background:#ffffff80;padding:8px 10px;border-radius:8px}.profile-metrics{display:flex;border-top:1px solid #edcdb7;padding-top:16px;gap:22px;align-items:center}.profile-metrics>span{font-size:12px;color:#7c5640;display:flex;gap:7px;align-items:center}.profile-metrics b{font-size:15px;color:#633d29}.profile-metrics .text-btn{margin-left:auto;min-height:28px;font-size:11px}.tools-section{margin-top:27px}.daily-tools{display:grid;grid-template-columns:1fr 1fr;gap:14px}.daily-tool{text-align:left;min-height:145px;padding:19px 20px;background:#fff;border-radius:var(--radius);position:relative;transition:box-shadow .18s,background .18s}.daily-tool:hover{background:#fffcf9;box-shadow:0 5px 24px -12px #70462b26}.tool-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.tool-icon{width:39px;height:39px;display:grid;place-items:center;border-radius:12px;background:var(--mint);color:var(--green)}.tool-icon.sand{background:var(--sand);color:var(--amber)}.tool-top>.icon{width:19px;height:19px;color:#986c51}.daily-tool h3{font-size:17px;margin-bottom:6px}.daily-tool p{font-size:12px;color:var(--muted);line-height:1.6}.utility-tools{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;margin-top:15px;background:#fff;padding:18px 8px 13px;border-radius:var(--radius)}.utility-tool{display:flex;flex-direction:column;align-items:center;gap:9px;min-height:80px;border-radius:10px;padding:5px 1px;font-size:12px;white-space:nowrap}.utility-tool:hover{background:var(--bg)}.utility-tool .icon{width:25px;height:25px;color:#9a542e}.utility-tool small{font-size:10px;color:var(--muted);margin-top:-4px}.assistant-entry{width:100%;display:flex;align-items:center;text-align:left;padding:19px 21px;gap:13px;border-radius:var(--radius);background:#f5eadf;margin-top:22px;transition:background .18s}.assistant-entry:hover{background:#efdecc}.assistant-mark{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:white;color:var(--green);flex:none}.assistant-entry h3{font-size:16px}.assistant-entry p{font-size:12px;color:#776351;margin-top:5px;line-height:1.5}.assistant-entry>.icon{margin-left:auto;width:18px;height:18px}.aside-col .panel+.panel{margin-top:20px}.aside-col .panel{padding:22px}.subdate{font-size:11px;color:var(--muted)}.care-totals{display:flex;gap:15px;margin:21px 0 22px}.care-total{flex:1}.care-total b{font-size:24px;font-weight:600}.care-total b span{font-size:12px;font-weight:400;margin-left:3px}.care-total small{display:block;color:var(--muted);margin-top:7px;font-size:11px}.timeline{list-style:none;padding:0;margin:0}.timeline-item{display:flex;gap:11px;position:relative;padding-bottom:24px}.timeline-item:last-child{padding-bottom:0}.timeline-mark{width:30px;height:30px;background:var(--subtle);border-radius:50%;display:grid;place-items:center;z-index:1;flex:none}.timeline-mark .icon{width:16px;height:16px;color:#94664a}.timeline-item:not(:last-child):after{content:"";position:absolute;width:1px;left:14px;top:33px;bottom:3px;background:var(--line)}.timeline-body{flex:1;min-width:0;font-size:13px;padding-top:3px}.timeline-body p{font-size:11px;color:var(--muted);margin-top:6px}.timeline-item time{font-size:11px;color:var(--muted);padding-top:5px}.appointment{display:flex;gap:13px;align-items:center;text-align:left;width:100%;padding:0}.date-block{width:47px;height:56px;background:var(--mint);border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;flex:none}.date-block small{font-size:10px}.date-block b{font-size:23px}.appointment h3{font-size:14px}.appointment p{font-size:11px;color:var(--muted);line-height:1.6;margin-top:5px}.quiet-note{font-size:11px;line-height:1.7;color:var(--muted);margin-top:15px}.section-gap{margin-top:25px}.bottom-nav{display:none}.empty{text-align:center;padding:37px 15px;color:var(--muted)}.empty>.icon{width:38px;height:38px;margin-bottom:15px;color:#a78b76}.empty h3{font-size:16px;color:var(--ink);margin-bottom:8px}.empty p{font-size:13px;line-height:1.7}.empty .primary{margin-top:18px}.page-back{display:flex;align-items:center;gap:10px}.page-back .icon-btn{margin-left:-9px}.tool-intro{margin-bottom:21px;color:var(--muted);font-size:13px;line-height:1.8}.segmented{display:flex;padding:4px;background:var(--subtle);border-radius:12px;gap:3px}.segmented button{flex:1;min-height:40px;border-radius:9px;font-size:13px;color:var(--muted);white-space:nowrap;padding:8px 7px}.segmented button.active{background:#fff;color:var(--green);box-shadow:0 2px 5px #61442d10;font-weight:650}.quick-values{display:flex;gap:9px;margin:18px 0}.quick-values button{min-height:44px;flex:1;border:1px solid var(--line);border-radius:10px;font-size:13px}.quick-values button.active{background:var(--mint);border-color:#d9ad8e;color:var(--green)}.amount-stepper{display:flex;align-items:center;justify-content:center;gap:20px;padding:20px 0 7px}.amount-stepper input{width:140px;border:0;background:transparent;text-align:center;color:var(--ink);font-size:50px;font-weight:600;outline-offset:0;-moz-appearance:textfield}.amount-stepper input::-webkit-inner-spin-button{-webkit-appearance:none}.amount-stepper .icon-btn{background:var(--subtle)}.unit-label{text-align:center;color:var(--muted);font-size:12px}.fields{display:grid;gap:18px}.field{display:flex;flex-direction:column;gap:8px;font-size:13px}.field label{font-weight:550}.input, .field input,.field textarea,.field select{background:#fcfaf7;border:1px solid #e5d9ce;border-radius:10px;min-height:46px;padding:12px;color:var(--ink);width:100%;max-width:100%}.field textarea{resize:vertical;min-height:90px;line-height:1.7}.field input::placeholder,.field textarea::placeholder{color:#7c6c60}.fields.two{grid-template-columns:1fr 1fr}.field small{font-size:11px;color:var(--muted);line-height:1.6}.field-error{color:var(--red);font-size:12px;min-height:18px;line-height:1.5;margin-top:10px}.form-actions{margin-top:20px}.record-list{list-style:none;padding:0;margin:0}.record-row{display:flex;gap:12px;align-items:center;padding:16px 0;border-bottom:1px solid var(--line);width:100%;text-align:left}.record-row:last-child{border-bottom:0}.record-row .row-main{flex:1;min-width:0}.record-row h3{font-size:14px;font-weight:550;line-height:1.5}.record-row p{font-size:11px;color:var(--muted);line-height:1.6;margin-top:4px}.record-row .row-end{font-size:14px;font-weight:600;white-space:nowrap}.record-row .icon-btn .icon{width:17px;height:17px}.section-title{font-size:13px;font-weight:600;margin:22px 0 7px}.summary-strip{display:flex;gap:20px;margin-bottom:23px}.summary-strip>div{flex:1}.summary-strip b{font-size:25px;display:block;font-weight:600;margin-top:8px}.summary-strip small{color:var(--muted)}.summary-strip b small{font-size:12px;margin-left:3px;font-weight:400}.choice-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.choice{border:1px solid var(--line);min-height:46px;padding:9px 6px;border-radius:10px;font-size:13px;display:flex;align-items:center;justify-content:center;gap:6px}.choice.active{background:var(--mint);border-color:#bd835b;color:var(--green)}.swatch{width:14px;height:14px;border-radius:50%;border:1px solid #0002;display:inline-block}.upload-box{border:1px dashed #c8aa92;background:#fcf8f3;border-radius:12px;min-height:70px;display:flex;align-items:center;justify-content:center;gap:10px;color:var(--muted);font-size:13px;cursor:pointer}.upload-box input{display:none}.photo-preview{max-width:100%;max-height:190px;border-radius:10px;display:block;margin:10px auto}.photo-thumb{width:36px;height:36px;object-fit:cover;border-radius:6px}.check-row{display:flex;align-items:center;gap:12px;padding:16px 0;border-bottom:1px solid var(--line);cursor:pointer;min-height:54px}.check-row:last-child{border-bottom:0}.check-row input{appearance:none;width:23px;height:23px;border:1.5px solid #bd9b80;border-radius:7px;margin:0;flex:none;cursor:pointer}.check-row input:checked{background:var(--green);border-color:var(--green);position:relative}.check-row input:checked:after{content:"";position:absolute;width:6px;height:11px;border-right:2px solid white;border-bottom:2px solid white;transform:rotate(45deg);left:7px;top:3px}.check-row:has(input:checked) .check-label{text-decoration:line-through;color:var(--muted)}.check-label{flex:1;font-size:14px}.check-row small{color:var(--muted);font-size:11px}.inline-add{display:flex;gap:9px;margin-top:18px}.inline-add input{min-width:0;flex:1}.inline-add button{flex:none}.progress-track{height:5px;background:var(--subtle);border-radius:4px;margin:14px 0 8px;overflow:hidden}.progress-track>span{display:block;height:100%;background:#bf7950;transition:opacity .2s}.large-age{text-align:center;padding:30px 0}.large-age strong{font-size:55px;font-weight:550;letter-spacing:-2px}.large-age strong span{font-size:20px;letter-spacing:0;margin:0 5px}.large-age p{font-size:13px;color:var(--muted);margin-top:14px}.milestone-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.milestone{background:var(--bg);border-radius:12px;padding:16px 10px;text-align:center}.milestone p{font-size:11px;color:var(--muted)}.milestone b{display:block;font-size:17px;margin:12px 0 7px}.milestone small{font-size:10px;color:var(--muted)}.metric-tabs{display:flex;gap:10px;margin:20px 0}.metric-tabs button{border:1px solid var(--line);padding:12px 18px;border-radius:10px;text-align:left;flex:1}.metric-tabs button.active{border-color:#d6a47e;background:var(--mint)}.metric-tabs small{display:block;color:var(--muted);font-size:11px}.metric-tabs b{display:block;margin-top:8px;font-size:22px}.metric-tabs b small{display:inline;font-weight:400;margin-left:4px}.chart{width:100%;height:210px;display:block;overflow:visible}.chart text{font-family:inherit;fill:var(--muted);font-size:11px}.chart line{stroke:var(--line)}.chart .data-line{stroke:var(--green);stroke-width:2.6;fill:none;stroke-linecap:round;stroke-linejoin:round}.chart circle{fill:white;stroke:var(--green);stroke-width:2}.chart-caption{font-size:11px;color:var(--muted);line-height:1.7;margin-top:5px}.expense{color:var(--red)}.income{color:#2d6b4f}
.ledger-total{padding:29px;background:var(--green);color:white;border-radius:var(--radius)}.ledger-total .total-label{font-size:13px;color:#fff0e5}.ledger-total .total-value{font-size:42px;font-weight:550;margin:14px 0 24px;letter-spacing:-1px}.ledger-total .total-value span{font-size:23px;margin-right:5px}.ledger-total .total-bottom{display:flex;gap:45px;padding-top:19px;border-top:1px solid #ffffff30}.total-bottom small{color:#fff0e5;font-size:11px;display:block}.total-bottom b{font-size:18px;display:block;margin-top:8px}.ledger-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0 25px}.ledger-actions button{min-height:58px}.category-icon{width:40px;height:40px;display:grid;place-items:center;background:var(--subtle);color:#95613e;border-radius:12px;flex:none}.category-icon .icon{width:21px;height:21px}.filter-bar{display:flex;gap:9px;margin:20px 0;flex-wrap:wrap}.filter-bar select{background:#fff;border:1px solid var(--line);border-radius:9px;padding:9px 11px;min-height:44px;min-width:100px;color:var(--ink);flex:1}.search-field{position:relative;margin-top:15px}.search-field .icon{position:absolute;left:13px;top:13px;width:20px;height:20px;color:var(--muted)}.search-field input{padding-left:42px}.total-inline{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:var(--muted);padding:16px 0;border-bottom:1px solid var(--line)}.finance-breakdown{margin-top:24px;display:grid;gap:18px}.category-bar{display:grid;grid-template-columns:76px 1fr 65px;gap:12px;align-items:center;font-size:12px}.category-bar>span:last-child{text-align:right}.bar-track{height:9px;border-radius:10px;background:var(--subtle);overflow:hidden}.bar-fill{height:100%;border-radius:10px;background:#bd7148}.analysis-period{margin-bottom:22px}.member-entry{display:flex;align-items:center;gap:12px;padding:18px 0;border-bottom:1px solid var(--line);width:100%;text-align:left}.member-entry:last-child{border:0}.member-entry>div{flex:1}.member-entry h3{font-size:15px}.member-entry p{font-size:12px;color:var(--muted);margin-top:6px}.member-entry>.icon{width:18px;color:var(--muted)}.menu-row{display:flex;align-items:center;gap:12px;width:100%;text-align:left;min-height:60px;padding:12px 0;border-bottom:1px solid var(--line)}.menu-row:last-child{border:0}.menu-row>span{flex:1;font-size:14px}.menu-row>.icon:last-child{width:16px;color:var(--muted)}
.chat-page{max-width:860px;margin:0 auto;display:flex;flex-direction:column;min-height:calc(100dvh - 94px)}.chat-page .page-head{margin-bottom:17px}.chat-context{display:flex;align-items:center;gap:10px;padding:12px 15px;background:var(--mint);border-radius:12px;font-size:12px}.chat-context span{flex:1}.chat-context .icon{width:18px}.chat-context button{color:var(--green);font-size:11px;min-height:30px}.chat-welcome{padding:34px 4px 23px}.chat-welcome .assistant-mark{width:50px;height:50px;background:#fae4d2;margin-bottom:18px}.chat-welcome h2{font-size:24px;font-weight:600;line-height:1.5;letter-spacing:-.6px}.chat-welcome p{font-size:13px;color:var(--muted);line-height:1.8;margin-top:10px}.prompt-list{display:grid;gap:10px;margin-top:22px}.prompt-list button{background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px;text-align:left;display:flex;justify-content:space-between;gap:15px;font-size:13px;line-height:1.7;align-items:center}.prompt-list button .icon{width:17px;color:var(--muted)}.chat-messages{flex:1;padding-bottom:20px}.message{margin:20px 0;line-height:1.8;font-size:14px;overflow-wrap:anywhere}.message.user{margin-left:auto;background:#f8e3d2;border-radius:15px 15px 3px 15px;padding:12px 16px;width:fit-content;max-width:86%}.message.assistant{background:#fff;border-radius:3px 15px 15px 15px;padding:20px;border:1px solid var(--line)}.message.assistant>p+p{margin-top:10px}.message.assistant h3{font-size:15px;margin:19px 0 7px}.message.assistant ul{padding-left:19px;margin:8px 0}.message-label{display:flex;align-items:center;gap:7px;font-size:11px;color:var(--muted);margin-bottom:12px}.message-label .icon{width:15px;height:15px}.sources{margin-top:17px;border-top:1px solid var(--line);padding-top:9px;font-size:12px}.sources summary{cursor:pointer;min-height:42px;display:flex;align-items:center;gap:7px;color:var(--green)}.sources summary .icon{width:17px;height:17px}.source-item{padding:9px 0;color:var(--muted);line-height:1.7}.source-item b{color:var(--ink);font-size:12px}.source-item a{text-decoration:underline;text-underline-offset:3px}.chat-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}.chat-actions button{font-size:12px;min-height:42px;padding:10px 13px}.composer-wrap{position:sticky;bottom:0;background:var(--bg);padding:14px 0 8px;margin-top:auto}.composer{display:flex;align-items:flex-end;gap:8px;padding:10px;background:white;border:1px solid #d7bca7;border-radius:15px}.composer textarea{flex:1;min-width:0;border:0;outline:none;padding:10px 4px;resize:none;min-height:44px;max-height:140px;line-height:1.55;font-size:15px;background:white;color:var(--ink)}.composer .send{width:44px;height:44px;border-radius:11px;background:var(--green);color:white;display:grid;place-items:center;flex:none}.composer .send .icon{width:20px;height:20px}.composer-note{text-align:center;font-size:10px;color:var(--muted);padding-top:9px;line-height:1.5}.attachment-chip{display:flex;align-items:center;gap:7px;background:var(--mint);font-size:11px;padding:7px 10px;border-radius:8px;margin-bottom:8px;width:fit-content;max-width:100%}.attachment-chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:260px}.typing{height:36px;display:flex;gap:5px;align-items:center}.typing span{width:6px;height:6px;border-radius:50%;background:#b38b6e;animation:typing 1s ease infinite}.typing span:nth-child(2){animation-delay:.15s}.typing span:nth-child(3){animation-delay:.3s}@keyframes typing{50%{opacity:.35;transform:translateY(-3px)}}.confirmation-card{border-top:1px solid var(--line);padding-top:12px;margin-top:12px}.confirmation-line{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:11px 0;font-size:13px}.confirmation-line input{width:80px;border:1px solid var(--line);border-radius:7px;padding:8px;text-align:right}.confirmation-line select{max-width:105px;padding:8px;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--ink)}
.sheet{border:0;padding:0;width:min(500px,calc(100% - 32px));max-height:90dvh;border-radius:22px;background:#fff;color:var(--ink);box-shadow:var(--shadow);overflow:auto}.sheet::backdrop{background:#41291b55;backdrop-filter:blur(3px)}.sheet[open]{animation:sheet-in .2s var(--ease)}@keyframes sheet-in{from{opacity:0;transform:translateY(15px)}to{opacity:1;transform:translateY(0)}}.sheet-head{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;gap:10px;background:#fff;z-index:2;padding:17px 22px 9px}.sheet-head h2{font-size:20px}.sheet-head .icon-btn{margin-right:-8px}.sheet-body{padding:9px 24px 25px}.sheet-body>p{font-size:13px;color:var(--muted);line-height:1.8;margin-bottom:18px}.sheet-body .fields{margin-top:10px}.sheet-body .button-row{margin-top:22px}.sheet-body .member-entry{min-height:74px}.sheet-body .member-entry.active{color:var(--green)}.toast{position:fixed;left:calc(50% + 112px);bottom:30px;transform:translate(-50%,15px);opacity:0;pointer-events:none;z-index:100;background:#573b2b;color:white;padding:13px 18px;border-radius:12px;display:flex;align-items:center;gap:20px;font-size:13px;box-shadow:var(--shadow);max-width:calc(100% - 32px);transition:opacity .18s,transform .18s}.toast.visible{transform:translate(-50%,0);opacity:1;pointer-events:auto}.toast button{color:#ffe0bd;font-weight:650;min-height:30px;padding:0;white-space:nowrap}.notice{display:flex;align-items:flex-start;gap:8px;background:#f5f3e9;padding:13px 14px;border-radius:11px;font-size:12px;line-height:1.7;color:#6d633a}.notice .icon{width:17px;height:17px;margin-top:2px}.link-row{display:flex;justify-content:space-between;align-items:center;width:100%;padding:15px 0;border-bottom:1px solid var(--line);font-size:13px;line-height:1.7;text-align:left}.link-row .icon{width:17px;flex:none}.timer-value{font-size:47px;letter-spacing:1px;text-align:center;margin:24px 0 12px;font-variant-numeric:tabular-nums}.timer-controls{display:flex;gap:10px;margin-bottom:25px}.timer-controls button{flex:1}.notes-list{padding-left:19px;font-size:13px;line-height:1.9;color:var(--muted)}.month-nav{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.month-nav b{font-size:16px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:1450px){.workspace{margin:0 auto 0 224px;padding-left:64px;padding-right:64px}.page-layout{grid-template-columns:minmax(0,1fr) 330px;gap:34px}.baby-profile{padding:28px 30px}.daily-tool{min-height:158px}}
@media(max-width:1100px){.sidebar{width:190px;padding:30px 17px}.workspace{margin-left:190px;padding:0 27px 40px}.page-layout{grid-template-columns:minmax(0,1fr) 265px;gap:20px}.panel{padding:20px}.aside-col .panel{padding:18px}.profile-metrics{gap:13px}.profile-metrics .text-btn{display:none}.utility-tool{font-size:11px}.toast{left:calc(50% + 95px)}}
@media(max-width:900px) and (min-width:761px){.sidebar{width:82px;padding:30px 12px}.brand{padding:0;justify-content:center}.brand>span:last-child,.nav-link>span:not(.nav-icon),.side-bottom>div{display:none}.nav-link{padding:17px;justify-content:center}.sidebar nav{margin-top:40px}.side-bottom{justify-content:center}.workspace{margin-left:82px;padding:0 24px 40px}.toast{left:calc(50% + 41px)}}
@media(max-width:760px){:root{font-size:15px}.sidebar{display:none}.workspace{margin:0;padding:0 20px calc(var(--nav) + env(safe-area-inset-bottom) + 24px);max-width:none}.preview-bar{height:32px;font-size:10px;border:0}.preview-date{display:none}.preview-bar .text-btn{margin-left:auto;min-height:30px;font-size:10px}.page-head{margin:19px 0 22px;gap:10px}h1{font-size:25px}.page-head p{font-size:12px;margin-top:6px}.head-action{font-size:11px;padding:8px 10px;gap:5px}.head-action .icon{width:15px;height:15px}.page-layout{display:block}.aside-col{margin-top:23px}.panel{padding:20px}.baby-profile{padding:20px 20px 17px}.avatar{width:54px;height:54px;font-size:23px}.profile-top{gap:12px}.profile-name{font-size:22px}.profile-top p{font-size:11px}.profile-edit{margin-top:-7px;margin-right:-8px}.age-display{margin:20px 0 15px}.age-display strong{font-size:31px}.age-display strong span{font-size:14px}.age-display .day-badge{font-size:10px;padding:7px 9px}.profile-metrics{gap:16px;padding-top:14px}.profile-metrics>span{font-size:10px;gap:5px}.profile-metrics b{font-size:14px}.profile-metrics .text-btn{font-size:10px;min-height:26px;display:inline-flex}.tools-section{margin-top:23px}.section-head{margin-bottom:12px}h2{font-size:18px}.section-head .text-btn{font-size:11px;min-height:30px}.daily-tools{gap:12px}.daily-tool{padding:16px;min-height:139px}.daily-tool h3{font-size:16px}.daily-tool p{font-size:11px}.tool-top{margin-bottom:12px}.tool-icon{width:35px;height:35px;border-radius:10px}.tool-icon .icon{width:22px;height:22px}.utility-tools{margin-top:12px;padding:15px 5px 10px;gap:0}.utility-tool{font-size:11px;gap:9px;min-height:76px}.utility-tool .icon{width:23px;height:23px}.utility-tool small{font-size:9px}.assistant-entry{margin-top:17px;padding:16px;gap:11px}.assistant-entry h3{font-size:15px}.assistant-entry p{font-size:11px;margin-top:4px}.assistant-mark{width:38px;height:38px;border-radius:11px}.assistant-entry>.icon{width:17px}.aside-col .panel+.panel{margin-top:16px}.aside-col .panel{padding:20px}.care-totals{margin:17px 0 23px}.care-total small{font-size:11px}.timeline-body{font-size:13px}.timeline-body p,.timeline-item time{font-size:11px}.bottom-nav{position:fixed;bottom:0;left:0;right:0;z-index:25;display:flex;align-items:flex-end;justify-content:space-around;min-height:var(--nav);padding:8px 7px calc(7px + env(safe-area-inset-bottom));background:#fffffffa;border-top:1px solid var(--line)}.bottom-nav .nav-link{width:20%;padding:5px 2px;gap:5px;display:flex;flex-direction:column;font-size:10px;min-height:52px;border-radius:10px;justify-content:center;font-weight:500}.bottom-nav .nav-link.active{background:none;color:var(--green);font-weight:650}.bottom-nav .nav-link .icon{width:22px;height:22px}.bottom-nav .nav-link.active:not(.nav-record) .icon{stroke-width:2.3}.bottom-nav .nav-record .nav-icon{background:var(--green);color:#fff;border-radius:12px;width:43px;height:34px;display:grid;place-items:center;margin-top:-5px}.bottom-nav .nav-record.active .nav-icon{background:var(--green-hover)}.toast{left:50%;bottom:calc(var(--nav) + env(safe-area-inset-bottom) + 12px);font-size:12px;white-space:nowrap}.sheet{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:none;max-height:92dvh;border-radius:23px 23px 0 0;padding-bottom:env(safe-area-inset-bottom)}.sheet-head{padding:16px 22px 7px}.sheet-body{padding:9px 23px 24px}.sheet-head:before{content:"";position:absolute;width:32px;height:4px;border-radius:5px;background:#e7d8cb;top:7px;left:calc(50% - 16px)}.sheet-head h2{font-size:19px}.sheet-head .icon-btn{margin-top:4px}.fields.two{gap:12px}.chat-page{min-height:calc(100dvh - 32px - var(--nav) - env(safe-area-inset-bottom) - 24px)}.chat-page .page-head{margin-top:16px}.chat-page .page-head h1{font-size:22px}.chat-welcome{padding:27px 0 20px}.chat-welcome h2{font-size:23px}.chat-welcome p{font-size:12px}.prompt-list{margin-top:18px}.prompt-list button{font-size:12px;padding:14px}.composer-wrap{bottom:calc(var(--nav) + env(safe-area-inset-bottom));padding-top:10px}.composer textarea{font-size:16px}.composer-note{font-size:9px}.message{font-size:13px}.message.assistant{padding:17px}.chat-context{font-size:11px;padding:10px 12px;gap:7px}.chat-context button{font-size:10px}.ledger-total{padding:24px}.ledger-total .total-value{font-size:38px}.ledger-total .total-bottom{gap:35px}.ledger-actions{margin:15px 0 22px;gap:10px}.summary-strip{gap:12px}.summary-strip b{font-size:23px}.metric-tabs{gap:7px}.metric-tabs button{padding:12px}.metric-tabs b{font-size:20px}.category-bar{grid-template-columns:65px 1fr 62px;gap:9px}.record-row{padding:15px 0}.record-row h3{font-size:13px}.record-row .row-end{font-size:13px}.large-age strong{font-size:47px}.milestone-grid{gap:7px}.milestone{padding:16px 6px}.milestone b{font-size:15px}.section-gap{margin-top:21px}.filter-bar{gap:8px}.filter-bar select{min-width:90px;font-size:12px}.chart{height:195px}.desktop-note{display:none}.keyboard-open .bottom-nav{display:none}.keyboard-open .composer-wrap{bottom:0}.keyboard-open .chat-page{min-height:calc(var(--visible-height,100dvh) - 32px)}.keyboard-open .workspace{padding-bottom:10px}}
@media(max-width:360px){.workspace{padding-left:15px;padding-right:15px}.daily-tool{padding:14px}.profile-metrics{gap:10px}.profile-metrics .text-btn{display:none}.utility-tool{font-size:10px}.utility-tool small{font-size:9px}.assistant-entry{padding:14px}.age-display strong{font-size:29px}.fields.two{grid-template-columns:1fr}.head-action{max-width:130px}.preview-bar{font-size:9px}}
.home-quick-care{display:flex;align-items:center;gap:12px;padding:15px 18px;background:#fff4e9;border:1px solid #edcfb7;border-radius:16px;margin-bottom:22px}.home-quick-care>div{flex:1;min-width:0}.home-quick-care b{display:block;font-size:14px}.home-quick-care small{display:block;margin-top:6px;color:var(--muted);font-size:12px}.home-quick-care .primary{white-space:nowrap}.feed-mode-label{display:flex;align-items:center;gap:9px;font-size:13px;margin-bottom:17px;min-height:40px}.feed-mode-label .text-btn{margin-left:auto}.consumer-shortcuts{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding-top:15px;font-size:12px;color:var(--muted)}.consumer-shortcuts button{min-height:40px;padding:8px 15px;border-radius:10px;background:white;border:1px solid var(--line);color:var(--ink)}.consumer-shortcuts button.active{background:var(--mint);border-color:#c98d63;color:var(--green)}.curve-heading{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:12px;color:var(--muted);margin-top:15px}.curve-heading small{font-size:10px}.growth-range{margin-bottom:16px}.reference-chart{height:260px}.reference-line{fill:none}.reference-chart .actual-measurement{fill:var(--green);stroke:white;stroke-width:1.7}.reference-chart .data-line{stroke-width:3}.chart-legend{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:10px;color:var(--muted);line-height:1.8}.legend-sample{height:2px;width:20px;background:#8f749b;display:inline-block}.legend-sample.actual{background:var(--green);height:3px}.feed-bars{display:flex;align-items:flex-end;gap:4px;margin:22px 0 8px;height:170px}.feed-bar-column{flex:1;min-width:0;height:100%;text-align:center;display:flex;flex-direction:column;gap:5px}.bar-amount{font-size:10px;min-height:15px;color:var(--muted)}.feed-bar-track{height:125px;display:flex;align-items:flex-end;justify-content:center}.feed-bar-track>span{display:block;width:70%;max-width:36px;background:#bf7950;border-radius:4px 4px 0 0}.feed-bar-track .missing{background:#c5beb7}.feed-bar-column small{font-size:10px;color:var(--muted)}.data-preview{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;line-height:1.6;max-height:260px;overflow:auto;background:var(--bg);padding:12px}.schedule-tools{display:flex;align-items:center;gap:15px;justify-content:space-between}.schedule-tools .segmented{flex:1;max-width:260px}.schedule-age{font-size:13px;color:var(--green);margin:25px 0 8px}.schedule-row{display:flex;gap:10px;align-items:center;padding:13px 0;border-bottom:1px solid var(--line)}.schedule-row .row-main{flex:1;text-align:left;min-width:0;min-height:44px}.schedule-row h3{font-size:13px;line-height:1.6}.schedule-row p{font-size:11px;color:var(--muted);margin-top:4px;line-height:1.7}.schedule-check{width:44px;height:44px;border:1px solid var(--line);border-radius:12px;display:grid;place-items:center;color:var(--green);flex:none}.schedule-check.checked{background:var(--mint);border-color:#d6b395}.schedule-check .icon{width:19px;height:19px}.schedule-row.done .category-icon{background:var(--bg);color:var(--muted)}.calendar-week,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.calendar-week{margin:20px 0 10px;text-align:center;font-size:12px;color:var(--muted)}.calendar-day{min-height:58px;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:1px solid transparent}.calendar-day b{font-size:14px}.calendar-day small{font-size:9px;min-height:12px;color:var(--green)}.calendar-day.today{border-color:#d6b395}.calendar-day.selected{background:var(--green);color:white}.calendar-day.selected small{color:white}.month-nav input{min-height:42px;border:1px solid var(--line);border-radius:9px;padding:7px 10px;color:var(--ink);background:white;max-width:190px}.financial-chart{height:220px;width:100%}.category-pie{width:155px;height:155px;flex:none;transform:rotate(-90deg)}.pie-layout{display:flex;align-items:center;gap:24px;margin-top:22px}.pie-legend{flex:1;display:grid;gap:9px;font-size:12px}.pie-legend span{display:flex;gap:8px;align-items:center}.pie-legend i{width:9px;height:9px;border-radius:2px;flex:none}.pie-legend b{margin-left:auto}.category-settings{display:grid;gap:14px}.category-meta{font-size:11px;color:var(--muted);line-height:1.7}.flow-select{max-width:100%;min-height:42px;border:1px solid var(--line);border-radius:8px;background:white;padding:8px;color:var(--ink)}.ledger-note{font-size:11px;line-height:1.7;color:var(--muted);margin:10px 0}.stat-table{width:100%;border-collapse:collapse;font-size:12px;margin-top:18px}.stat-table th,.stat-table td{text-align:right;padding:12px 5px;border-bottom:1px solid var(--line)}.stat-table th:first-child,.stat-table td:first-child{text-align:left}.stat-table th{color:var(--muted);font-weight:500}.period-scroll .segmented{flex-wrap:wrap}.period-scroll .segmented button{min-width:55px}
@media(max-width:760px){.home-quick-care{position:sticky;top:0;z-index:16;padding:12px;gap:8px;margin-bottom:17px;box-shadow:0 5px 14px -10px #754b2e40}.home-quick-care .tool-icon{display:none}.home-quick-care .primary{min-height:46px;padding:10px 12px;font-size:13px}.home-quick-care .primary .icon{width:18px}.home-quick-care small{font-size:10px}.home-quick-care b{font-size:13px}.home-quick-care .icon-btn{width:38px}.reference-chart{height:225px}.schedule-row .category-icon{display:none}.schedule-tools{gap:8px}.schedule-tools .text-btn{font-size:11px}.calendar-grid{gap:1px}.calendar-day{min-height:51px}.calendar-day b{font-size:13px}.calendar-day small{font-size:8px}.feed-bars{gap:2px}.reference-chart text{font-size:10px}.pie-layout{gap:13px}.category-pie{width:120px;height:120px}.pie-legend{font-size:10px}.consumer-shortcuts{gap:7px}.consumer-shortcuts button{padding:8px 12px}.stat-table{font-size:11px}.stat-table th,.stat-table td{padding:12px 3px}}
.reader-entry{display:flex;gap:12px;align-items:center;padding:17px 4px;color:var(--ink);border-bottom:1px solid var(--line);margin-top:8px}.reader-entry>span{flex:1}.reader-entry b{font-size:14px}.reader-entry small{display:block;font-size:11px;color:var(--muted);margin-top:5px}.reader-entry>.icon{color:var(--green)}.reader-search{display:flex;gap:9px;align-items:center;background:white;border:1px solid #d7bca7;border-radius:13px;padding:8px 9px 8px 15px}.reader-search input{flex:1;min-width:0;background:transparent;border:0;padding:9px 0;font-size:15px;color:var(--ink)}.reader-search .primary{min-height:42px;padding:9px 17px}.book-shelf{display:grid;grid-template-columns:1fr 1fr;gap:20px}.book-card{display:flex;gap:22px;align-items:flex-start;padding:25px;background:#fff;border-radius:16px}.book-jacket{width:118px;min-height:174px;flex:none;padding:18px 14px;background:#f3ddc7;color:#75482c;display:flex;flex-direction:column;gap:16px;border-radius:3px 10px 10px 3px;border-left:5px solid #c89c76;box-shadow:3px 5px 12px #64452e15}.book-jacket.cui{background:#e9e6ee;border-left-color:#ac9fb9;color:#645174}.book-jacket b{font-size:16px;line-height:1.6}.book-jacket small{font-size:10px;margin-top:auto;line-height:1.6}.book-info{flex:1;min-width:0}.book-info h2{font-size:18px;line-height:1.7}.book-info p{font-size:12px;color:var(--muted);margin:10px 0 12px;line-height:1.8}.book-info .button-row{flex-wrap:wrap}.book-info .button-row button{font-size:12px;white-space:nowrap;padding:10px 12px}.reader-result-meta{display:flex;gap:4px;align-items:center;font-size:11px;color:var(--muted);margin-top:7px}.reader-result-meta .icon{width:15px;height:15px}.book-result{display:block;width:100%;text-align:left;padding:19px 0;border-bottom:1px solid var(--line)}.book-result h3{font-size:15px;margin:10px 0 7px}.book-result p{font-size:13px;line-height:1.8;color:var(--muted)}.reader-directory .link-row>span{flex:1}.reader-directory .link-row small{white-space:nowrap;color:var(--muted);font-size:11px;margin-left:10px}.reader-directory .pill{font-size:9px;margin:4px 7px}.reader-toolbar{display:flex;align-items:center;justify-content:center;gap:8px;padding:9px;background:#fff;border-radius:13px;position:sticky;top:0;z-index:18;box-shadow:0 4px 18px -10px #714d3533}.reader-toolbar form{display:flex;gap:8px;align-items:center;font-size:12px;white-space:nowrap}.reader-toolbar input{width:58px;min-height:39px;text-align:center;border:1px solid var(--line);border-radius:8px;color:var(--ink);font-size:14px}.reader-toolbar .icon-btn{width:39px;height:39px}.reader-toolbar-divider{height:24px;width:1px;background:var(--line);margin:0 10px}.reader-toolbar .text-btn{font-size:12px}.reader-paper-wrap{background:#e9e3dd;border:1px solid var(--line);padding:22px;overflow:auto;border-radius:10px;margin-top:18px;max-height:75vh;overscroll-behavior:contain}.reader-paper{margin:0 auto;min-width:200px;background:white;box-shadow:0 4px 20px -12px #5c4437}.reader-paper img{display:block;width:100%;height:auto}.reader-placeholder{min-height:470px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:25px;gap:18px}.reader-placeholder>.icon{width:42px;height:42px;color:#ad917c}.reader-placeholder h2{font-size:25px}.reader-placeholder p{color:var(--muted);font-size:13px;line-height:1.9}.reader-status{font-size:11px;color:var(--muted);line-height:1.8;margin-top:14px}.reader-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:18px}.reader-footer .secondary{font-size:12px;padding:10px 13px}.reader-context-banner{display:flex;gap:8px;align-items:center;background:var(--mint);padding:12px 15px;margin-top:14px;border-radius:10px;font-size:12px;line-height:1.7;flex-wrap:wrap}.reader-context-banner a{margin-left:auto;text-decoration:underline;text-underline-offset:3px}.reader-context-banner .icon{width:18px}.reader-citation{display:flex;align-items:center;gap:12px;width:100%;padding:13px 0;border-bottom:1px solid var(--line);text-align:left}.reader-citation>span{flex:1;font-size:12px;color:var(--ink)}.reader-citation small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.reader-citation b{white-space:nowrap;font-size:11px;color:var(--green)}.reader-citation .icon{width:14px;height:14px}.qa-source-status{display:flex;align-items:center;gap:13px;flex-wrap:wrap;margin-top:12px;font-size:11px;color:var(--muted);line-height:1.8}.qa-source-status span{display:flex;align-items:center;gap:4px}.qa-source-status .icon{width:14px;height:14px}.qa-source-status a{margin-left:auto;min-height:35px;display:flex;align-items:center}
@media(max-width:1100px){.book-shelf{grid-template-columns:1fr}.book-card{max-width:none}}
@media(max-width:760px){.reader-entry{padding:16px 3px}.book-card{padding:20px;gap:16px}.book-jacket{width:94px;min-height:161px;padding:13px 10px}.book-jacket b{font-size:14px}.book-info h2{font-size:15px}.book-info p{font-size:11px}.book-info .button-row{gap:7px;margin-top:15px}.book-info .button-row button{padding:9px 8px;font-size:11px;min-height:42px}.reader-toolbar{gap:2px;padding:7px 3px;flex-wrap:wrap}.reader-toolbar form{gap:5px;font-size:11px}.reader-toolbar-divider{margin:0 3px}.reader-toolbar .icon-btn{width:32px;min-height:40px}.reader-toolbar input{width:48px}.reader-toolbar .text-btn{font-size:11px;min-height:40px}.reader-paper-wrap{padding:8px;max-height:65vh}.reader-placeholder{min-height:390px;padding:18px}.reader-context-banner{padding:10px;font-size:10px;gap:5px}.reader-footer{gap:6px}.reader-footer .secondary{padding:9px;font-size:11px}.reader-footer .text-btn{font-size:11px}.qa-source-status{font-size:10px;gap:8px}.reader-result-meta{font-size:10px}.reader-citation{gap:8px}.reader-citation>span{font-size:11px}.reader-citation b{font-size:10px}}
@media(max-width:760px){#main:has(.reader-toolbar) .page-head h1{font-size:19px;line-height:1.5}#main:has(.reader-toolbar) .page-head .page-back{min-width:0}#main:has(.reader-toolbar) .page-head .head-action{flex-shrink:0;white-space:nowrap}#main:has(.reader-toolbar) .page-head p{font-size:11px}.reader-toolbar .icon-btn{width:40px;min-height:44px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

@media(max-width:760px){.reader-toolbar{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:3px}.reader-toolbar form{justify-content:center}.reader-toolbar-divider{display:none}.reader-toolbar>.text-btn{justify-content:center}.reader-toolbar .icon-btn{width:44px;height:44px}}

/* ===== 沉浸式阅读（点击页面全屏 / 左右轻点翻页） ===== */
.reader-tap-tip{display:none;align-items:center;gap:6px;font-size:11px;line-height:1.7;color:var(--muted);margin-top:9px}
.reader-tap-tip .icon{width:14px;height:14px;flex:none}
.reader-full-btn{display:inline-flex}
.reader-full-btn .icon{width:15px;height:15px}
.reader-paper img{ -webkit-user-drag:none;user-select:none;-webkit-touch-callout:none }
.reader-overlay{display:none}

body.reader-full{overflow:hidden;background:#1b1917}
body.reader-full .sidebar,
body.reader-full .preview-bar,
body.reader-full .bottom-nav,
body.reader-full .page-head,
body.reader-full .reader-toolbar,
body.reader-full .reader-status,
body.reader-full .reader-tap-tip,
body.reader-full .reader-footer,
body.reader-full .reader-context-banner,
body.reader-full .quiet-note,
body.reader-full .toast{display:none!important}
body.reader-full .workspace{margin:0;padding:0;max-width:none}
body.reader-full .reader-paper-wrap{
  position:fixed;inset:0;z-index:60;margin:0;border:0;border-radius:0;
  max-height:none;height:100dvh;padding:0;background:#1b1917;
  display:flex;flex-direction:column;overflow:auto;
  overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
  cursor:pointer
}
body.reader-full .reader-paper{
  width:100%!important;max-width:none;flex:0 0 auto;margin:auto 0;
  background:transparent;box-shadow:none;padding:0
}
body.reader-full .reader-paper img{
  display:block;margin:0 auto;width:auto;height:auto;
  max-width:calc(100vw * var(--reader-zoom,1));
  max-height:calc(100dvh * var(--reader-zoom,1));
  box-shadow:0 0 34px #0008
}
body.reader-full .reader-paper .reader-placeholder{min-height:60dvh;color:#e8ded4}
body.reader-full .reader-paper .reader-placeholder .icon{color:#b79c86}
body.reader-full .reader-paper .reader-placeholder p{color:#b9a99b}

/* 全屏时页面不能被子元素撑出横向滚动条以外的留白 */
body.reader-full #main{margin:0}

/* 控制层：只在 body.reader-full.reader-controls 时可见 */
body.reader-full .reader-overlay{
  display:block;position:fixed;inset:0;z-index:61;pointer-events:none;
  opacity:0;transition:opacity .16s ease
}
body.reader-full.reader-controls .reader-overlay{opacity:1}
.reader-ov-top,.reader-ov-bottom{
  position:absolute;left:0;right:0;display:flex;align-items:center;gap:10px;
  padding:10px 12px;background:#12100ee8;color:#f4ede6;
  transform:translateY(-8px);transition:transform .16s ease;pointer-events:none
}
.reader-ov-top{top:0;padding-top:calc(10px + env(safe-area-inset-top));transform:translateY(-100%)}
.reader-ov-bottom{bottom:0;flex-direction:column;gap:9px;padding-bottom:calc(10px + env(safe-area-inset-bottom));transform:translateY(100%)}
body.reader-full.reader-controls .reader-ov-top,
body.reader-full.reader-controls .reader-ov-bottom{transform:translateY(0);pointer-events:auto}
.reader-ov-icon{
  width:42px;height:42px;flex:none;display:grid;place-items:center;border-radius:12px;
  color:#f4ede6;background:#ffffff1a
}
.reader-ov-icon .icon{width:20px;height:20px}
.reader-ov-title{flex:1;min-width:0;text-align:center;line-height:1.35}
.reader-ov-title b{display:block;font-size:14px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.reader-ov-title span{display:block;font-size:11px;color:#c0b3a8;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.reader-ov-pager{display:flex;align-items:center;gap:8px;width:100%}
.reader-ov-pager form{display:flex;align-items:center;gap:6px;flex:1;justify-content:center;font-size:12px;color:#c0b3a8}
.reader-ov-pager input{
  width:64px;height:38px;text-align:center;border-radius:9px;
  border:1px solid #ffffff2e;background:#ffffff14;color:#f4ede6;font-size:14px
}
.reader-ov-btn{
  min-height:40px;padding:0 14px;border-radius:10px;font-size:13px;
  color:#f4ede6;background:#ffffff1a;display:inline-flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap
}
.reader-ov-btn:disabled{opacity:.35}
.reader-ov-btn .icon{width:17px;height:17px}
.reader-ov-tools{display:flex;align-items:center;gap:8px}
.reader-ov-hint{font-size:11px;color:#a2938a;text-align:center}

@media(max-width:760px){
  .reader-full-btn{display:none}
  .reader-tap-tip{display:flex}
  /* 手机上不再做内层滚动：整页滚动，底部导航不会压住书页 */
  .reader-paper-wrap{max-height:none;overflow:visible;padding:8px}
  .reader-paper{margin:0 auto}
  .reader-ov-pager{gap:6px}
  .reader-ov-btn{padding:0 10px;font-size:12px}
  .reader-ov-pager form{font-size:11px}
  .reader-ov-pager input{width:56px}
  body.reader-full .reader-paper img{box-shadow:none}
}
@media(min-width:761px){
  body.reader-full .reader-paper-wrap{cursor:zoom-out}
}

/* ===== 正式版细节修正（顶部说明条移除后的留白、筛选单行、记账输入框） ===== */
/* 顶部原型说明条已移除，标题不再贴边 */
.workspace{padding-top:10px}
.chat-page{min-height:calc(100dvh - 60px)}

/* 收支分析：六个时间筛选保证同一行 */
.period-scroll{overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.period-scroll::-webkit-scrollbar{display:none}
.period-scroll .segmented{flex-wrap:nowrap;min-width:0}
.period-scroll .segmented button{min-width:0;flex:1 1 0;padding:8px 6px}

@media(max-width:760px){
  .workspace{padding-top:8px}
  .chat-page{min-height:calc(100dvh - var(--nav) - env(safe-area-inset-bottom) - 24px)}
  .keyboard-open .chat-page{min-height:calc(var(--visible-height,100dvh) - 10px)}

  /* 六项筛选压在一行内 */
  .period-scroll .segmented{gap:2px;padding:3px}
  .period-scroll .segmented button{font-size:12px;padding:8px 2px;letter-spacing:-.2px}

  /* 记账输入框：字号不再顶到 16px，单行占位不再被裁掉 */
  .composer textarea{font-size:15px;line-height:1.5;padding:11px 4px}
  .composer{gap:7px;padding:9px}
  .composer-note{font-size:10px;padding-top:8px}
}

/* iOS 上输入框字号小于 16px 会在聚焦时放大页面，单独保底 */
@supports (-webkit-touch-callout:none){
  @media(max-width:760px){.composer textarea{font-size:16px}}
}

/* ===== 问答气泡：多行摘要 + 折叠的完整数据（喂养分析等入口） ===== */
.message.user{white-space:pre-line}
.message.user .msg-details{margin-top:9px;padding-top:7px;border-top:1px dashed #e2cbb8}
.message.user .msg-details summary{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--muted);cursor:pointer;list-style:none}
.message.user .msg-details summary::-webkit-details-marker{display:none}
.message.user .msg-details summary .icon{width:13px;height:13px;transition:transform .2s}
.message.user .msg-details[open] summary .icon{transform:rotate(180deg)}
.message.user .data-preview{background:rgba(255,255,255,.7);border-radius:10px;margin-top:7px;padding:10px;max-height:220px;white-space:pre-wrap;font-size:10px;line-height:1.55}
/* Development V4 — 与 V4.1 原型 style.css 逐条一致 */
.development-content{line-height:1.75}.development-content h3{margin:28px 0 12px}.development-content ul,.development-content ol{padding-left:22px}.development-content li{margin:8px 0;overflow-wrap:anywhere}.development-item{border-bottom:1px solid #eadfd6;padding:10px 0}.development-item summary{min-height:44px;display:list-item;cursor:pointer;font-weight:600;padding:10px 0}.development-item p{margin:10px 0}.development-item summary:focus-visible{outline:2px solid #b65025;outline-offset:3px}.development-controls select{width:100%;min-width:0}.development-content a{overflow-wrap:anywhere}
/* V4.1: growth guidance is a first-screen destination below the baby profile. */
.care-development-entry{display:block;padding:22px 24px;margin:18px 0 26px;background:#f5e4d5;color:#3d302a;border-radius:16px;text-decoration:none}
.care-development-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
.care-development-heading h2{font-size:22px;line-height:1.4;margin:0;font-weight:700}
.care-development-heading svg{width:22px;height:22px;color:#963e1b;flex-shrink:0}
.care-development-entry p{font-size:15px;line-height:1.6;margin:8px 0 14px}
.care-development-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;line-height:1.6}
.care-development-footer strong{color:#963e1b;font-size:14px;white-space:nowrap}
.care-development-entry:hover{background:#f1dbca}
.care-development-entry:focus-visible{outline:3px solid #b65025;outline-offset:4px}
/* 阶段只读：由生日与今天推导，界面上没有可选控件 */
.dev-stage{border:1px solid #eadfd6;background:#fcf8f3;border-radius:12px;padding:14px 16px}
.dev-stage-top{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.dev-stage-tag{font-size:11px;line-height:1.5;color:#8a5230;background:#f4e3d4;border-radius:20px;padding:3px 10px;font-weight:600}
.dev-stage-day{font-size:11px;line-height:1.6;color:var(--muted)}
.dev-stage>strong{display:block;margin-top:9px;font-size:17px;line-height:1.5;font-weight:650}
.dev-stage>p{font-size:12px;line-height:1.7;color:var(--muted);margin-top:7px}
.dev-stage .text-btn{margin-top:8px}
.dev-stage.is-empty{background:#f7f4ef}
.development-controls .dev-filter{margin-top:16px;display:flex;flex-direction:column;gap:8px;font-size:13px}
.development-controls .dev-filter label{font-weight:550}
@media(max-width:760px){.care-development-entry{padding:18px 20px;margin:14px 0 22px}.care-development-heading h2{font-size:21px}.care-development-entry p{font-size:14px}.care-development-footer{align-items:flex-end}.care-development-footer span{max-width:65%}}

/* 金额默认遮挡：眼睛按钮（只影响显示，不改数据） */
.ledger-total{position:relative}
.amount-toggle{display:inline-flex;align-items:center;gap:5px;font-size:11px;line-height:1.2;min-height:30px;padding:6px 11px;border-radius:20px;background:#ffffff26;color:inherit;cursor:pointer}
.amount-toggle .icon{width:15px;height:15px;flex:none}
.amount-toggle:hover{background:#ffffff3d}
.amount-toggle:focus-visible{outline:2px solid #fff;outline-offset:2px}
.ledger-total>.amount-toggle{position:absolute;top:16px;right:16px}
.ledger-total .total-value[data-action=toggle-amounts]{cursor:pointer}
.amount-bar{display:flex;justify-content:flex-end;margin:-4px 0 10px}
.amount-bar .amount-toggle{background:var(--subtle);color:#7c5640}
.amount-bar .amount-toggle:hover{background:#efe3d8}
.amount-bar .amount-toggle:focus-visible{outline:2px solid #b65025;outline-offset:2px}
@media(max-width:760px){.ledger-total>.amount-toggle{top:12px;right:12px;min-height:28px;padding:5px 9px}}
