
:root{--yellow:#dce9d6;--background:#e9eee8;--ink:#283b32;--muted:#66786b;--blue:#dc772f;--pink:#b97d85;--green:#719967;--accent:#dc772f;--soft:#eef4e9;--nav-bg:#f7faf3;--s:1;--width:360px;--height:784.666667px;--font:'Nunito','PingFang SC','Hiragino Sans GB','Microsoft YaHei',system-ui,sans-serif}
*{box-sizing:border-box}body{margin:0;background:#e9eee8;color:var(--ink);font-family:var(--font);font-size:14px;-webkit-font-smoothing:antialiased}button,input{font:inherit;color:inherit}button{border:0;background:none;padding:0;cursor:pointer;touch-action:manipulation}input{min-width:0}button:focus-visible,input:focus-visible,summary:focus-visible{outline:2px solid #986924;outline-offset:3px}[hidden]{display:none!important}svg{display:block}strong{font-weight:400}.sprite{position:absolute;width:0;height:0;overflow:hidden}.ic{width:25px;height:25px;display:block;flex:none}
.workspace{max-width:1600px;margin:auto;padding:26px 32px}.workspace-header{display:flex;justify-content:space-between;align-items:baseline;gap:20px;margin-bottom:22px}.workspace-header h1{font-size:20px;font-weight:500;margin:0}.workspace-header p{margin:0;font-size:12px;color:#777;line-height:1.8}.gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px 25px}.specimen{min-width:0}.specimen h2{font-size:13px;font-weight:500;margin:0 0 11px;display:flex;justify-content:space-between;align-items:center}.specimen h2 span{font-size:10px;font-weight:400;color:#999}.mount{width:calc(var(--width) * var(--s));height:calc(var(--height) * var(--s));margin:auto}.screen{width:var(--width);height:var(--height);position:relative;overflow:hidden;background:var(--background);transform:scale(var(--s));transform-origin:0 0}.screen input{border:0;outline-offset:0}.screen button:active{opacity:.75}
.system-bottom{position:absolute;left:122px;bottom:6px;width:116px;height:3px;border-radius:99px;background:#98a48f;z-index:15}
.nav{position:absolute;left:0;bottom:0;width:360px;height:76.67px;background:var(--nav-bg);border-radius:16px 16px 0 0;z-index:10}.nav-items{display:grid;grid-template-columns:repeat(5,1fr);height:60px;padding:5px 10px 0;align-items:center}.nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#778578;font-size:10px;min-height:49px;border-radius:12px}.nav .ic{width:23px;height:25px;color:#a1b38f}.nav button.active{color:#4d7357;background:#e9f0e2}.nav button.active .ic{color:#719967}.nav .central{width:58px;height:49px;margin:auto;background:none;color:#a65322}.nav .central .ic{width:26px;height:26px;color:var(--accent)}.nav .system-bottom{bottom:7px}
.round-back{position:absolute;left:20px;top:20px;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.03)}.round-back .ic{width:20px;height:20px}.page-title{position:absolute;top:27px;left:65px;right:65px;text-align:center;font-size:14px;line-height:20px}
/***** 首页：参考截图的全部结构均原位保留 *****/
.home{background:var(--green)}.garden-hero{position:absolute;left:0;right:0;top:0;height:267px;overflow:hidden}.garden-layer{position:absolute;inset:0;opacity:0;transition:opacity 900ms ease-in-out;pointer-events:none}.garden-layer.active{opacity:1}.garden-track{display:flex;position:absolute;inset:0 auto 0 0;width:200%;height:100%;animation:scrollBg 48s linear infinite;animation-play-state:paused}.garden-track svg{width:50%;height:100%;flex:none}.home[data-moving="true"] .garden-layer.active .garden-track{animation-play-state:running}
.scene-controls{position:absolute;top:12px;right:12px;display:flex;gap:2px;z-index:3}.scene-controls button{width:40px;height:40px;border-radius:12px;background:transparent;color:#fff;display:grid;place-items:center;filter:drop-shadow(0 1px 2px rgba(26,53,48,.8))}.scene-controls button:hover,.scene-controls button:focus-visible{background:rgba(28,51,46,.2)}.scene-controls .ic{width:19px;height:19px}.pet-table{position:absolute;left:54px;right:54px;bottom:30px;height:23px;background:#ecdfc5;border-radius:6px;box-shadow:0 3px 0 rgba(50,70,40,.06)}.pet-table:before{content:'';position:absolute;left:7px;right:7px;top:3px;height:2px;background:#d9c5a5;border-radius:3px}.pet-pair{position:absolute;left:50px;right:50px;bottom:42px;display:flex;justify-content:space-between;align-items:flex-end;gap:4px}.pet-on-table{width:129px;height:103px;position:relative;min-width:0}.pet-on-table svg{width:129px;height:103px;transform-origin:50% 90%;animation:petMarch 1100ms ease-in-out infinite;animation-play-state:paused}.pet-on-table:last-child svg{animation-delay:-550ms}.home[data-moving="true"] .pet-on-table svg{animation-play-state:running}.pet-on-table:after{content:attr(data-label);position:absolute;left:0;right:0;bottom:-17px;font-size:10px;color:#746a53;text-align:center}.pet-on-table:focus-visible{outline-offset:0;border-radius:8px}
@keyframes scrollBg{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@keyframes petMarch{0%,100%{transform:translateY(0) rotate(-.7deg)}45%{transform:translateY(-3px) rotate(.7deg)}75%{transform:translateY(-1px) rotate(0)}}
.brand-lockup{display:flex;align-items:center;gap:12px}.brand-lockup>svg{width:43px;height:43px}.scene-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}.scene-option{background:#f2f5ed;border-radius:14px;padding:6px;font-size:11px;text-align:left;position:relative}.scene-option svg{width:100%;height:89px;border-radius:10px}.scene-option span{display:block;padding:6px 4px 3px}.scene-option.active{outline:2px solid #afbf9d;background:#e7efdd}.scene-option.active:after{content:'✓';position:absolute;right:12px;bottom:9px;color:#56734a}.scene-option:focus-visible{outline-offset:3px}
.ledger-card{position:absolute;left:18px;right:18px;top:239px;height:171px;border-radius:22px;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.03);padding:12px 16px;z-index:3}.ledger-month{width:132px;height:36px;background:var(--soft);border-radius:11px;display:flex;align-items:center;justify-content:center;gap:6px;font-size:13px;font-weight:600}.ledger-month .ic{width:15px;height:15px}.ledger-tools{position:absolute;right:12px;top:9px;display:flex;gap:4px}.ledger-tools button{width:40px;height:40px;background:#f4f7f0;border-radius:11px;color:#829277;display:grid;place-items:center}.ledger-tools .ic{width:18px;height:18px}.ledger-expense{display:flex;gap:8px;align-items:center;margin-top:14px;color:var(--accent);font-size:27px;line-height:31px;font-weight:700}.metric-label{width:24px;height:25px;background:var(--soft);border-radius:8px;color:#7a8c70;font-size:12px;font-weight:400;display:grid;place-items:center;flex:none}.ledger-secondary{display:flex;gap:20px;margin-top:12px;align-items:center}.ledger-secondary>div{display:flex;align-items:center;gap:6px;font-size:18px;line-height:27px;white-space:nowrap}.ledger-secondary .income{color:#816b72}.ledger-secondary .balance{color:#4d7357}.ledger-bottom-label{position:absolute;bottom:9px;left:0;right:0;text-align:center;font-size:10px;color:#99a190}
.home-flow-heading{position:absolute;top:425px;left:18px;right:18px;display:flex;align-items:center;height:30px;gap:6px;font-size:14px;color:#fff}.home-flow-heading .ic{color:var(--yellow);width:21px;height:21px}.owner-segment{display:flex;padding:2px;background:#f0f0f0;border-radius:9px;gap:1px}.owner-segment button{height:24px;padding:0 11px;border-radius:8px;color:#aaa;font-size:13px;white-space:nowrap}.owner-segment button.active{background:#fff;color:#707070;box-shadow:0 2px 8px rgba(0,0,0,.025)}.home-flow-heading .owner-segment{margin-left:auto}.home-flow-heading .owner-segment button{font-size:12px;padding:0 9px}.day-receipts{position:absolute;top:468px;left:18px;right:18px;bottom:84px;overflow:auto;scrollbar-width:none}.day-box{margin-bottom:12px}.day-head{display:flex;align-items:center;gap:8px;color:#eef5e9;font-size:11px;margin:0 0 7px}.day-head:before,.day-head:after{content:'';height:1px;flex:1;background:rgba(255,255,255,.36)}.day-head>span{white-space:nowrap}.day-total{white-space:nowrap;color:#fff}.receipt{display:flex;margin:0 0 7px}.receipt.me{justify-content:flex-end}.receipt.ta{justify-content:flex-start}.receipt.joint{justify-content:center}.receipt-bubble{width:calc(100% - 20px);min-width:0;padding:6px 10px;border-radius:13px;background:#f0f3eb;color:var(--ink);overflow-wrap:anywhere}.receipt.me .receipt-bubble{background:#fff0da;border-bottom-right-radius:5px}.receipt.ta .receipt-bubble{background:#e2ebda;border-bottom-left-radius:5px}.receipt.joint .receipt-bubble{background:#f6f6e9}.receipt-summary{display:flex;align-items:center;gap:5px;min-width:0;height:20px}.receipt-summary .ic{width:16px;height:16px}.receipt-summary strong{font-size:13px;font-weight:700;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.receipt-owner,.receipt-summary time{color:#667b65;font-size:10px;white-space:nowrap}.receipt-summary time{font-variant-numeric:tabular-nums}.receipt-amount{margin-left:auto;font-size:15px;font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums}.receipt-note{font-size:11px;line-height:15px;margin:2px 0 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.receipt-extras{display:flex;align-items:center;gap:7px;margin-top:4px;min-width:0}.receipt-copy{display:flex;flex-direction:column;justify-content:center;flex:1;min-width:0}.receipt-copy .receipt-note{margin:0}.receipt-photos{position:relative;display:flex;gap:5px;flex:none}.receipt-photos img{width:34px;height:32px;object-fit:cover;border-radius:6px;background:#dce9d6;outline:1px solid rgba(0,0,0,.1)}.receipt-photos img:not(:first-child){display:none}.receipt-photo-count{position:absolute;right:-5px;bottom:-4px;border-radius:5px;background:#4d7357;color:#fff;font-size:9px;padding:0 3px;line-height:13px}.receipt-comments{min-width:0;font-size:11px;line-height:16px;color:#4b654f}.receipt-comments p{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.receipt-comments p:not(:first-child){display:none}.receipt-comments b{color:#527257}.receipt-expand{position:relative;display:block;margin:2px 0 0 auto;min-width:44px;min-height:24px;padding:0 2px;color:#526e51;font-size:10px;line-height:18px;white-space:nowrap}.receipt-extras .receipt-expand{margin:0 0 0 auto;flex:none;min-height:34px}.receipt-expand:after{content:'';position:absolute;inset:-5px 0}.receipt.expanded .receipt-bubble{width:calc(100% - 20px)}.receipt.expanded .receipt-note,.receipt.expanded .receipt-comments p{white-space:normal;overflow:visible}.receipt.expanded .receipt-extras{align-items:flex-start;flex-direction:column}.receipt.expanded .receipt-photos img{display:block;width:57px;height:52px}.receipt.expanded .receipt-photo-count{display:none}.receipt.expanded .receipt-comments p{display:block;margin:2px 0}.home .day-box .empty{background:#f1f5e9;border-radius:12px;padding:18px;text-align:center;font-size:12px;color:var(--muted)}
/***** 记账与预算编辑：完全相同的抽屉键盘几何关系 *****/
.entry{background:#e8efe2}.entry-top{position:absolute;left:0;right:0;top:20px;height:39px}.entry-top .round-back{top:0}.entry-tabs{position:absolute;left:115px;right:110px;top:3px;display:flex;justify-content:center;gap:40px;font-size:14px;color:#83917a}.entry-tabs button{height:35px;position:relative}.entry-tabs button.active{color:var(--ink);font-weight:600}.entry-tabs button.active:after{content:'';position:absolute;bottom:0;left:50%;width:18px;height:3px;background:var(--accent);border-radius:6px;transform:translateX(-50%)}.entry-settings{position:absolute;right:18px;top:6px;width:24px;height:24px;color:#66786b}.entry-settings .ic{width:22px;height:22px}.category-grid{position:absolute;left:16px;right:16px;top:92px;bottom:397px;overflow-y:auto;scrollbar-width:none;display:grid;grid-template-columns:repeat(5,1fr);grid-auto-rows:60px;align-content:start;gap:17px 0}.category-button{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:12px;color:var(--muted);border-radius:12px}.category-button .ic{width:33px;height:33px}.category-button.selected{background:#f9eddb;color:#a65322}.category-button:focus-visible{outline-offset:0}.entry-drawer{position:absolute;left:0;right:0;bottom:0;height:386.67px;background:#fff;border-radius:26px 26px 0 0;padding:21px 16px 0;z-index:5}.entry-meta{display:flex;align-items:center;gap:6px;position:relative;height:34px;white-space:nowrap;padding-right:45px}.date-chip{background:var(--soft);border-radius:24px;height:34px;display:flex;align-items:center;padding:0 8px;gap:5px;font-size:11px;flex:none}.date-chip .ic{width:15px;height:15px}.entry-meta .person-chip{background:#e4efda;height:34px;border-radius:22px;padding:0 8px;font-size:11px;color:#496b47;flex:none}.entry-meta .other-chip{background:#f2f5ef;color:#899580;height:34px;border-radius:22px;padding:0 8px;font-size:11px;flex:none}.entry-meta .wallet-chip{position:absolute;right:0;background:#f1f4ec;width:39px;height:39px;display:grid;place-items:center;border-radius:50%;box-shadow:-10px 0 9px #fff}.wallet-chip .ic{width:22px;height:22px;color:#829277}.entry-note{margin-top:11px;height:47px;border-radius:13px;background:#f5f7f2;display:flex;align-items:center;gap:9px;padding:0 13px}.entry-photo-button{width:34px;height:34px;flex:none;position:relative;display:grid;place-items:center;border-radius:8px;color:#719967}.entry-photo-button .ic{width:22px;height:22px}.entry-photo-button img{width:32px;height:32px;border-radius:7px;object-fit:cover}.entry-photo-button .photo-count{position:absolute;right:-5px;bottom:-4px;border-radius:8px;background:#4d7357;color:white;padding:0 4px;font-size:9px;line-height:14px}.entry-note .note-text{flex:1;width:auto;min-width:0;border:0;background:none;font-size:12px;padding:0;color:var(--ink)}.entry-note .amount{margin-left:auto;font-size:23px;white-space:nowrap;color:var(--accent);font-weight:700}.keyboard{display:grid;grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(4,49px);gap:7px 7px;margin:9px 3px 0}.keyboard button{background:#f2f5ee;border-radius:12px;font-size:19px;display:grid;place-items:center}.keyboard .small{font-size:14px}.keyboard .save{background:var(--accent);font-size:15px;color:#fff;font-weight:600}.keyboard .ic{width:26px;height:26px}.entry-budget .entry-drawer{height:342.67px;padding:21px 20px 0}.entry-budget .entry-note{margin-top:0;padding:0 16px;height:47px}.entry-budget .entry-note .budget-left{color:var(--muted);font-size:11px}.entry-budget .keyboard{margin-top:9px;margin-left:0;margin-right:0;gap:7px 7px}.entry-budget .category-grid{bottom:353px;top:98px}.entry-budget .page-title{top:27px}.entry .system-bottom{bottom:7px}
/***** 分类编辑 *****/
.category-editor .owner-segment{position:absolute;top:65px;left:18px;right:18px;height:43px;padding:3px;background:#dde6d6;border-radius:12px}.category-editor .owner-segment button{flex:1;height:37px;border-radius:10px;font-size:14px;position:relative}.category-editor .owner-segment button.active{background:#fff;color:#4d7357;box-shadow:0 2px 8px rgba(0,0,0,.03)}.category-editor .list-title{position:absolute;top:126px;left:22px;font-size:13px;color:var(--muted)}.manage-list{position:absolute;top:155px;left:18px;right:18px;bottom:89px;background:#fff;border-radius:22px;overflow-y:auto;scrollbar-width:none;padding:0 18px}.manage-row{height:60px;display:flex;align-items:center;gap:10px;font-size:14px;border-bottom:1px solid #f4f6f0}.manage-row>.ic{width:25px;height:25px}.manage-row .minus{width:18px;height:18px;border-radius:50%;background:#cf8d7c;color:#fff;display:grid;place-items:center;line-height:1;font-size:17px}.manage-row .row-name{flex:1}.manage-row .edit{width:22px;height:22px;color:#9da995}.manage-row .reorder{width:17px;height:20px;color:#9da995;display:grid;place-items:center;margin-left:3px;font-size:21px;letter-spacing:-2px}.add-category{position:absolute;left:18px;right:18px;bottom:31px;height:43px;border-radius:15px;background:var(--accent);color:#fff;font-size:14px;z-index:5}
/***** 报表：上方黄色区、四宫格与大环图均使用原坐标 *****/
.report .meadow-area{position:absolute;left:0;right:0;top:0;height:258px;background:#dce9d6;border-radius:0 0 24px 24px}.report-tabs{position:absolute;left:64px;top:20px;width:232px;height:35px;border-radius:13px;display:flex;padding:3px;background:#cbdcbd;color:#6d7e63;font-size:13px}.report-tabs button{flex:1;border-radius:10px}.report-tabs button.active{background:#fff;color:#4d7357}.report-month{position:absolute;left:18px;top:69px;width:159px;height:34px;background:#f7faf3;border-radius:11px;display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:13px;padding:0 11px}.report-month button{width:20px;min-height:30px}.report-month .ic{width:16px;height:16px;color:#849779}.report-calendar{position:absolute;top:76px;right:25px;width:22px;height:22px;color:#6b805f}.report-card{position:absolute;left:18px;right:18px;top:121px;height:242px;background:#fff;border-radius:22px;padding:16px;box-shadow:0 2px 8px rgba(0,0,0,.03)}.card-title{display:flex;align-items:center;position:relative;font-size:12px;white-space:nowrap;padding-left:7px;gap:8px}.card-title:before{content:'';position:absolute;left:0;top:2px;width:3px;height:18px;border-radius:2px;background:#a8c093}.card-title .owner-segment{margin-left:auto;gap:0;padding:2px;border-radius:8px;background:#f0f4ec}.card-title .owner-segment button{height:22px;padding:0 8px;font-size:11px;border-radius:6px}.card-title .owner-segment button.active{background:#dce9d6;color:#4d7357}.report-grid{display:grid;grid-template-columns:1fr 1fr;margin-top:20px}.report-cell{padding:1px 8px 11px 14px;min-height:79px;position:relative}.report-cell:nth-child(odd){border-right:1px solid #f3f5ef}.report-cell:nth-child(n+3){border-top:1px solid #f3f5ef;padding-top:15px}.report-cell-label{display:flex;gap:6px;align-items:center;color:var(--muted);font-size:11px;white-space:nowrap}.report-dot{display:grid;place-items:center;width:15px;height:15px;border-radius:50%;font-size:10px;color:#fff;background:#a4b996}.report-cell:nth-child(2) .report-dot{background:#b7bfa5}.report-cell:nth-child(3) .report-dot{background:#d3b391}.report-cell:nth-child(4) .report-dot{background:#a3b098}.report-cell strong{display:block;font-size:22px;font-weight:600;margin-top:7px;line-height:26px;color:var(--ink)}.report-cell small{font-size:10px;color:#a0aa94;margin-top:8px;display:block}.chart-card{position:absolute;top:380px;left:18px;right:18px;bottom:89px;background:#fff;border-radius:22px;padding:16px;box-shadow:0 2px 8px rgba(0,0,0,.03);overflow:hidden}.chart-area{height:290px;position:relative}.chart-ring{position:absolute;top:48px;left:56px;width:180px;height:180px;border-radius:50%;background:#d9a474;display:grid;place-items:center}.chart-hole{width:101px;height:101px;border-radius:50%;background:#fff;border:6px solid #f4f6ef;display:flex;align-items:center;justify-content:center;flex-direction:column;color:var(--muted);font-size:11px;gap:7px}.chart-hole strong{font-size:16px;color:var(--ink);font-weight:600}.chart-leader{position:absolute;left:145px;top:222px;width:1px;height:23px;background:#97a18a;transform:rotate(7deg)}.chart-category{position:absolute;top:238px;left:0;right:0;text-align:center;font-size:13px;color:var(--muted)}
/***** 预算 *****/
.budget{background:linear-gradient(180deg,#dce9d6 0,#e9eee8 250px)}.budget .page-title{top:22px;display:flex;justify-content:center;align-items:center;gap:7px;min-height:34px}.month-chevron{width:14px;height:14px;transform:rotate(90deg)}.budget-total{position:absolute;top:76px;left:28px;right:28px;display:flex;align-items:center;justify-content:space-between;font-size:14px}.budget-total strong{font-size:21px;font-weight:600}.budget .owner-segment{position:absolute;top:119px;left:18px;right:18px;height:39px;padding:3px;background:#d8e4cf;border-radius:12px}.budget .owner-segment button{height:33px;flex:1;font-size:13px;border-radius:10px;position:relative}.budget .owner-segment button.active{background:#fff;color:#4d7357}.budget-card{position:absolute;top:174px;left:18px;right:18px;height:254px;background:#fff;border-radius:22px;padding:18px 16px;box-shadow:0 2px 8px rgba(0,0,0,.03)}.budget-card-title{font-size:13px;display:flex;align-items:center;gap:7px}.budget-card-title .ic{width:16px;height:16px;color:#99b27d}.budget-arc{position:absolute;left:27px;top:40px;width:273px;height:104px;border-radius:160px 160px 0 0;border:21px solid #eef4e7;border-bottom:0}.budget-center{position:absolute;top:87px;left:0;right:0;text-align:center;font-size:11px;color:var(--muted)}.budget-center button{display:block;margin:0 auto}.budget-center strong{display:block;color:var(--accent);font-size:27px;font-weight:600;margin-top:3px;line-height:38px}.budget-center .ic{display:inline-block;width:16px;height:16px;vertical-align:2px;color:#91a180}.budget-breakdown{position:absolute;left:16px;right:16px;bottom:19px;display:grid;grid-template-columns:1fr 1fr;gap:8px;height:72px}.budget-breakdown>div{background:var(--soft);border-radius:12px;padding:13px 9px;color:var(--muted);font-size:12px}.budget-breakdown strong{display:block;font-size:18px;font-weight:600;margin-top:3px;color:var(--ink)}.budget-breakdown>div:last-child{background:#f6f8f2;padding:9px}.budget-breakdown>div:last-child strong{display:inline;font-size:12px;margin-left:8px}.budget-breakdown p{margin:7px 0 0;font-size:11px;white-space:nowrap}.budget-heading{position:absolute;top:446px;left:22px;right:22px;display:flex;justify-content:space-between;align-items:center;font-size:14px}.budget-heading button{color:var(--accent);font-size:13px}.budget-item{position:absolute;top:483px;left:18px;right:18px;height:95px;background:#fff;border-radius:20px;box-shadow:0 2px 8px rgba(0,0,0,.03);padding:17px;display:flex;align-items:flex-start;gap:11px}.budget-item .ic{width:29px;height:29px;margin-top:4px}.budget-item .budget-name{font-size:14px;flex:1}.budget-item small{display:block;color:var(--muted);font-size:10px}.budget-item .remaining{text-align:right;font-size:16px}.budget-item .remaining small{font-size:10px;margin-top:1px}.budget-track{height:7px;border-radius:8px;background:#eff4e9;position:absolute;left:17px;right:17px;bottom:17px}.budget-track i{display:block;height:100%;border-radius:8px;background:#a3bc8d;width:.54%}
/***** 我的 *****/
.profile{background:var(--green)}.profile-scroll{position:absolute;inset:0 0 77px;overflow-y:auto;scrollbar-width:none;overscroll-behavior:contain}.profile-garden{position:relative;height:264px}.profile-garden>svg{width:100%;height:100%}.profile-people{position:absolute;left:54px;right:54px;top:54px;display:flex;justify-content:space-between;gap:24px}.profile-person{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0}.profile-person .pet-portrait{width:76px;height:76px;padding:7px 0 0;border-radius:50%;background:#eef4e5;display:grid;place-items:center}.profile-person:last-child .pet-portrait{background:#f8e9e6}.pet-portrait svg{width:76px;height:61px}.profile-person strong{font-size:14px;font-weight:600;color:#fff}.profile-person small{font-size:10px;color:#edf4e8}.shared-days{position:absolute;left:0;right:0;bottom:22px;display:flex;justify-content:center;align-items:baseline;gap:5px;color:#fff;font-size:13px}.shared-days strong{font-size:23px;font-weight:700}.profile-sections{display:flex;flex-direction:column;gap:14px;padding:0 18px 20px}.settings-card{background:#fff;border-radius:22px;padding:14px 16px;box-shadow:0 2px 8px rgba(0,0,0,.03)}.settings-card h3{font-size:12px;color:var(--muted);font-weight:400;margin:0 0 7px}.setting-row{display:flex;align-items:center;gap:8px;min-height:44px;width:100%;font-size:13px;text-align:left}.setting-row>span:first-child{flex:1}.setting-row small{font-size:11px;color:#879581}.setting-row .ic{width:14px;height:14px;color:#9ba791}.setting-row .profile-logo{width:26px;height:26px}.setting-row.danger{color:#b95139}.settings-about{font-size:10px;color:var(--muted);margin:0 0 5px 34px}
.pet-library{max-width:1100px;margin:28px auto 0;background:#f7faf3;border-radius:24px;padding:22px}.pet-library h2{font-size:19px;font-weight:500;margin:0}.pet-library>p{font-size:12px;color:var(--muted);margin:6px 0 18px}.animal-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}.animal-card{background:#fff;border-radius:16px;text-align:center;padding:12px 7px;min-width:0}.animal-card>svg{width:100%;height:95px}.animal-card strong{font-size:13px;font-weight:500;display:block}.animal-card small{font-size:10px;display:block;color:var(--muted);margin:4px 0 8px}.animal-actions{display:flex;gap:5px;justify-content:center}.animal-actions button{padding:5px 7px;border-radius:9px;background:#eff4e8;font-size:10px;color:#56734d}.animal-actions button.active{background:#fcebdc;color:#a05627}.pet-modal-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-height:430px;overflow:auto;margin:14px 0}.pet-modal-grid button{padding:6px;background:#f4f7ef;border-radius:12px;font-size:10px;min-width:0}.pet-modal-grid svg{width:100%;height:58px}.pet-modal-grid button.active{outline:2px solid #d5b183;background:#fff0e0}.pet-modal-grid button span{display:block;margin-top:3px}body.solo .pet-library{display:none}
@media(max-width:1000px){.animal-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:560px){.animal-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pet-library{padding:16px}}
.overlay{position:absolute;inset:0;z-index:30;background:rgba(38,56,45,.26);padding:25px 24px;display:flex;align-items:center}.modal{background:#fff;border-radius:24px;padding:21px;width:100%;max-height:100%;overflow-y:auto;font-size:13px}.modal h3{font-weight:600;margin:0 0 12px}.modal p{line-height:1.8;color:var(--muted)}.modal input,.modal select{width:100%;padding:10px;background:#f1f4ec;margin-bottom:10px;border:0;border-radius:12px;color:var(--ink);font:inherit}.modal-actions{display:flex;gap:10px;margin-top:15px}.modal-actions button{flex:1;border-radius:12px;padding:11px;background:#f0f4eb}.modal-actions button:last-child{background:var(--accent);color:#fff}.toast{position:absolute;left:24px;right:24px;bottom:100px;z-index:35;background:#333d;color:#fff;border-radius:9px;padding:10px;font-size:12px;text-align:center}.measurement-note{margin:23px 0 0;font-size:12px;color:#777;line-height:1.9}.measurement-note summary{cursor:pointer}.measurement-note p{margin:7px 0}.asset-difference{color:#9d672f}
body.solo{background:#fff}body.solo .workspace{padding:0;max-width:none}body.solo .workspace-header,body.solo .measurement-note{display:none}body.solo .gallery{display:block}body.solo .specimen{display:none}body.solo .specimen.selected{display:block}body.solo .specimen h2{display:none}body.solo .mount{margin:0}body.solo .screen{box-shadow:none}
@media(max-width:1000px){.gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace-header{display:block}.workspace-header p{margin-top:9px}.workspace{padding:24px}}@media(max-width:560px){.gallery{grid-template-columns:1fr;gap:25px}.workspace{padding:20px 18px}.workspace-header h1{font-size:18px}}button{transition:background-color 140ms ease,color 140ms ease,opacity 140ms ease}button:active{scale:.96}strong,output,.receipt-amount,.ledger-expense,.ledger-secondary{font-variant-numeric:tabular-nums}h1,h2,h3{text-wrap:balance}p{text-wrap:pretty}.screen button:disabled{opacity:.35;cursor:default}.screen button:focus-visible{outline:2px solid #8b623e;outline-offset:2px}.nav button:focus-visible{outline-offset:0}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}button:active{scale:1}}

/* ---- 独立页补强（唯一新增样式，不覆盖原型类名） ---- */
body.solo{background:#e9eee8;display:flex;flex-direction:column;align-items:center}
body.solo .workspace,body.solo .gallery{width:360px;max-width:100vw}
body.solo .mount{margin:0 auto}
body.solo .screen{box-shadow:0 18px 60px rgba(40,59,50,.14)}
.hb-toolbar{width:360px;max-width:100vw;box-sizing:border-box;display:flex;align-items:center;gap:10px;
  padding:10px 12px;font:13px/1.5 'Nunito','PingFang SC',system-ui,sans-serif;color:#4d7357}
.hb-toolbar .hb-back{color:#4d7357;text-decoration:none;font-weight:700;white-space:nowrap}
.hb-toolbar .hb-back:hover{text-decoration:underline}
.hb-toolbar .hb-spacer{flex:1}
.hb-toolbar .hb-state{font-size:11px;color:#829277;white-space:nowrap}
body[data-hebao-error] .hb-toolbar .hb-state{color:#b95139}
@media(max-width:400px){body.solo .screen{box-shadow:none}}
