@charset "UTF-8";
:root{--green:#315c4b;--deep:#254639;--ink:#283b33;--muted:#7d867c;--paper:#f7f7f1;--line:#e5e8dd;--sage:#eff2e8;--gold:#b4824e;--red:#b65e49;--radius:22px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none;color-scheme:light}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;border:0;background:none}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible{outline:3px solid #a7bd89;outline-offset:4px}button svg{pointer-events:none}svg{width:20px;height:20px;vertical-align:middle;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}a{color:var(--green)}h1,h2,h3,p{margin:0}h1,h2,.serif{font-family:ui-serif,"Songti SC","STSong",Georgia,serif}h2{font-size:21px;letter-spacing:.5px}small,.muted{color:var(--muted)}.num{font-variant-numeric:tabular-nums;letter-spacing:.2px}.eyebrow{font-size:10px;letter-spacing:2.3px;color:var(--muted)}.shell{display:flex;min-height:100dvh}.sidebar{width:242px;position:fixed;inset:0 auto 0 0;background:#edf0e5;border-right:1px solid var(--line);padding:41px 24px 24px;display:flex;flex-direction:column}.brand{display:flex;gap:13px;align-items:center;margin-bottom:58px}.brand img{width:46px;height:46px;border-radius:16px}.brand strong{font-family:ui-serif,"Songti SC",serif;font-size:22px;letter-spacing:2px}.brand .eyebrow{font-size:7px;margin-top:7px;letter-spacing:1.8px}.nav-label{margin:0 12px 19px;font-size:11px;color:var(--muted);letter-spacing:1px}.side-nav{display:grid;gap:9px}.nav-button{display:flex;align-items:center;gap:14px;padding:16px 15px;border-radius:13px;font-size:14px;color:#7b8479;text-align:left}.nav-button.active{background:#dfe7d7;color:var(--green);font-weight:600}.nav-button.active::after{content:'';width:5px;height:5px;border-radius:50%;background:var(--green);margin-left:auto}.sidebar-bottom{margin-top:auto}.primary{background:var(--green);color:#fff;border-radius:13px;padding:14px 22px;font-weight:600;font-size:14px;display:inline-flex;align-items:center;justify-content:center;gap:9px}.primary:hover{background:var(--deep)}.sidebar .primary{width:100%;margin-bottom:27px}.sidebar-foot{font-size:11px;line-height:2;color:#83907c;padding-left:13px}.sidebar-foot svg{width:14px;height:14px;margin-right:6px}.workspace{margin-left:242px;width:calc(100% - 242px);padding:36px 42px 22px;max-width:1600px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:31px}.topbar h1{font-size:30px;font-weight:600;letter-spacing:1.7px}.subtitle{font-size:12px;color:var(--muted);margin-top:11px}.top-actions{display:flex;align-items:center;gap:13px}.book-switch{position:relative}.book-switch select{max-width:180px;appearance:none;padding:12px 34px 12px 17px;background:white;border:1px solid var(--line);border-radius:25px;color:var(--green);font-size:12px;cursor:pointer}.book-switch::after{content:'⌄';position:absolute;right:14px;top:9px;pointer-events:none}.status-pill{font-size:10px;color:var(--muted);display:flex;align-items:center;gap:6px;white-space:nowrap}.dot{width:5px;height:5px;background:#679465;border-radius:50%}.dot.offline{background:var(--gold)}.main{max-width:1120px;margin:auto}.card{background:white;border:1px solid #e8eadf;border-radius:var(--radius);padding:25px}.periodbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}.segments{display:inline-flex;padding:4px;border-radius:12px;background:#eeefe7;gap:3px}.segments button{padding:8px 15px;border-radius:9px;font-size:12px;color:var(--muted);white-space:nowrap}.segments button.active{background:white;color:var(--green);box-shadow:0 2px 6px #293d3010;font-weight:600}.date-nav{display:flex;gap:9px;align-items:center}.icon-button{padding:7px;display:inline-flex;border-radius:9px;align-items:center;justify-content:center}.icon-button:hover{background:var(--sage)}.date-label{position:relative;font-size:13px;font-weight:500;text-align:center;min-width:115px;padding:7px 2px}.date-label input{position:absolute;inset:0;width:100%;opacity:0;cursor:pointer}.today{font-size:10px;color:var(--muted);border:1px solid var(--line);border-radius:7px;padding:5px 8px}.summary{display:grid;grid-template-columns:1.28fr 1fr 1fr;gap:16px;margin-bottom:25px}.summary .card{min-height:150px}.balance{background:var(--green);color:#fff;position:relative;overflow:hidden;border:0}.balance::after{content:'';position:absolute;width:155px;height:155px;border:1px solid #ffffff16;border-radius:50%;right:-38px;top:40px;box-shadow:0 0 0 26px #ffffff06,0 0 0 52px #ffffff04}.metric-label{font-size:12px;display:flex;align-items:center;justify-content:space-between}.metric-label span:last-child svg{width:17px;height:17px}.metric-value{font-size:30px;font-weight:500;margin-top:18px;white-space:nowrap}.metric-value .currency{font-size:19px;margin-right:5px;font-weight:400}.metric-foot{font-size:10px;margin-top:12px;color:var(--muted)}.balance .metric-label,.balance .metric-foot{color:#d7e2d0}.income .metric-value{color:var(--green)}.expense .metric-value{color:var(--gold)}.metric-mini{width:29px;height:29px;border-radius:9px;background:#eef3e9;color:var(--green);display:flex;align-items:center;justify-content:center}.expense .metric-mini{background:#faf1e5;color:var(--gold)}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.section-head small{font-size:11px}.record-tools{display:flex;gap:10px;align-items:center;margin-bottom:20px}.search{flex:1;min-width:100px;position:relative}.search svg{position:absolute;left:12px;top:11px;width:17px;color:#8b9588}.search input{width:100%;background:#f7f8f3;border:1px solid #e9ece2;border-radius:10px;padding:11px 12px 11px 37px;font-size:12px}.filter{border:1px solid var(--line);background:white;border-radius:10px;padding:10px;font-size:12px;color:var(--ink)}.day-group+.day-group{margin-top:25px}.day-head{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);padding:0 0 12px;border-bottom:1px solid #f0f1eb}.day-head strong{font-weight:500;color:#66745f}.record{display:flex;align-items:center;gap:13px;padding:15px 0;border-bottom:1px solid #f2f3ed;width:100%;text-align:left}.record:last-child{border-bottom:0;padding-bottom:0}.badge{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:42px;height:42px;border-radius:14px;background:#eef2e6;font-size:20px}.badge.income{background:#eaf3ec}.record-info{flex:1;min-width:0}.record-title{font-size:13px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.record-note{font-size:11px;margin-top:6px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.record-amount{font-size:15px;white-space:nowrap}.record-amount.income{color:var(--green)}.record-amount.expense{color:#927452}.page-foot{margin:24px 0 4px;text-align:center;color:#a1aa97;font-size:10px;letter-spacing:1px;display:flex;align-items:center;gap:12px;justify-content:center}.page-foot::before,.page-foot::after{content:'';width:40px;height:1px;background:var(--line)}.bottom-nav{display:none}.empty{text-align:center;padding:51px 14px}.empty .empty-icon{background:var(--sage);width:67px;height:67px;border-radius:23px;display:flex;align-items:center;justify-content:center;margin:0 auto 21px;font-size:28px}.empty h3{font-size:15px;font-weight:500}.empty p{font-size:12px;line-height:1.9;margin:10px auto 23px;color:var(--muted);max-width:310px}.empty .secondary{margin-left:7px}.secondary{background:var(--sage);border:1px solid var(--line);border-radius:11px;padding:11px 15px;font-size:12px;color:var(--green);display:inline-flex;align-items:center;justify-content:center;gap:6px}.text-button{color:var(--green);font-size:12px;padding:7px}.banner{background:#e8efdf;border:1px solid #d8e3cd;border-radius:12px;padding:12px 16px;display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px;margin-bottom:18px;line-height:1.7}.banner.warning{background:#fff4e2;border-color:#eddab8;color:#806029}.banner.error{background:#fff0eb;border-color:#edd2c5;color:#8d4d38}.banner button{font-size:11px;text-decoration:underline;white-space:nowrap}.chart-layout{display:grid;grid-template-columns:1fr 1fr;gap:22px}.stats-filters{display:flex;gap:12px;margin-bottom:20px;flex-wrap:wrap;align-items:center}.stats-filters .segments{margin-right:auto}.stats-filters select{max-width:100%}.donut-wrap{display:flex;align-items:center;justify-content:center;min-height:285px}.donut{width:242px;height:242px;border-radius:50%;position:relative;display:flex;align-items:center;justify-content:center}.donut::after{content:'';position:absolute;inset:25px;background:white;border-radius:50%}.donut-center{position:relative;z-index:1;text-align:center;max-width:180px}.donut-center p{font-size:11px;color:var(--muted);margin-bottom:10px}.donut-center strong{font-size:24px;font-weight:500;overflow-wrap:anywhere}.donut-center small{display:block;font-size:10px;margin-top:10px}.rank-row{width:100%;display:flex;gap:12px;text-align:left;margin-top:21px}.rank-detail{flex:1;min-width:0}.rank-head{display:flex;justify-content:space-between;font-size:12px;gap:12px;line-height:1.5}.rank-head>span{flex:1;overflow-wrap:anywhere}.rank-head strong{font-weight:500;text-align:right;white-space:nowrap}.rank-head small{display:block;font-size:10px;font-weight:400;margin-top:3px}.track{height:5px;background:#f0f1e9;border-radius:5px;margin-top:10px;overflow:hidden}.track span{height:100%;display:block;border-radius:5px;min-width:2px}.chart-note{font-size:11px;color:var(--muted);line-height:1.7;margin-top:18px;border-top:1px solid var(--line);padding-top:15px}.bar-row{margin:17px 0;font-size:12px}.bar-row .rank-head{font-size:11px}.bar-row .track{height:12px}.book-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:24px}.book-card{border:1px solid var(--line);border-radius:20px;background:white;padding:22px}.book-card.selected{border-color:#9db48a;background:#fcfdf9}.book-top{display:flex;gap:13px;align-items:center;margin-bottom:20px}.book-top>div:nth-child(2){flex:1;min-width:0}.book-top h3{font-size:16px;overflow-wrap:anywhere}.book-top p{font-size:11px;color:var(--muted);margin-top:6px}.book-actions{display:flex;gap:6px;flex-wrap:wrap}.book-actions button{font-size:11px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.settings-grid .full{grid-column:1/-1}.settings-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 0;border-bottom:1px solid #eef0e7}.settings-row:last-child{border:0;padding-bottom:0}.settings-row strong{font-size:13px;font-weight:500}.settings-row p{font-size:11px;line-height:1.8;color:var(--muted);margin-top:5px}.settings-row .secondary{white-space:nowrap;flex-shrink:0}.settings-note{font-size:12px;color:var(--muted);line-height:1.9;margin-top:14px}.snapshot{display:flex;gap:8px;align-items:center;font-size:11px;padding:12px 0;border-bottom:1px solid var(--line)}.snapshot span{flex:1;line-height:1.7}.snapshot .text-button{padding:5px}.install-steps{font-size:12px;color:var(--muted);line-height:2.2;padding-left:20px;margin-bottom:0}.danger{color:var(--red)}.toast{position:fixed;z-index:100;bottom:90px;left:50%;transform:translate(-50%,15px);background:#283e35;color:white;padding:13px 22px;border-radius:12px;font-size:13px;opacity:0;pointer-events:none;max-width:min(90vw,500px);transition:opacity .2s,transform .2s;line-height:1.7}.toast.visible{opacity:1;transform:translate(-50%,0)}dialog{padding:0;border:0;border-radius:24px;color:var(--ink);width:min(520px,calc(100vw - 28px));max-height:calc(100dvh - 36px);box-shadow:0 25px 100px #192e3140;background:var(--paper)}dialog::backdrop{background:#20332a70;backdrop-filter:blur(4px)}.modal-head{display:flex;justify-content:space-between;align-items:center;padding:23px 25px 17px;border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--paper);z-index:2}.modal-head h2{font-size:22px}.modal-body{padding:22px 25px 27px}.field{display:block;margin-bottom:19px}.field>span{font-size:12px;display:block;margin-bottom:8px;color:#64755e}.field input,.field select,.field textarea{width:100%;border:1px solid #dce2d4;background:white;padding:12px 13px;border-radius:11px;color:var(--ink);font-size:16px;min-height:45px}.field textarea{resize:vertical;min-height:80px}.field input:focus,.field select:focus,.field textarea:focus{outline:2px solid #a7bb93;outline-offset:1px}.field input.amount{font-size:36px;padding:14px 15px;font-weight:500;color:var(--green)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.form-grid .field{min-width:0}.modal-body .segments{display:flex;margin-bottom:23px}.modal-body .segments button{flex:1;padding:11px}.form-actions{display:flex;gap:12px;margin-top:24px;align-items:center}.form-actions .primary{flex:1}.form-error{font-size:12px;color:var(--red);line-height:1.8;margin:10px 0}.icon-picker{display:grid;grid-template-columns:repeat(8,1fr);gap:5px;max-height:180px;overflow:auto;padding:4px;margin-bottom:20px}.icon-choice{font-size:21px;border:1px solid transparent;border-radius:9px;padding:8px 0}.icon-choice.active{border-color:#8da47a;background:#e4edda}.help-text{font-size:11px;line-height:1.8;color:var(--muted);margin:-8px 0 18px}.category-line{display:flex;gap:8px;align-items:center;padding:11px 0;border-bottom:1px solid var(--line)}.category-line.child{padding-left:26px}.category-line .badge{width:32px;height:32px;border-radius:10px;font-size:16px}.category-name{font-size:12px;flex:1;overflow-wrap:anywhere}.category-line .icon-button{padding:5px}.category-line .icon-button svg{width:15px;height:15px}.small{font-size:11px}.loading{min-height:90dvh;display:flex;gap:20px;align-items:center;justify-content:center;flex-direction:column;color:var(--muted);font-size:13px}.loading img{border-radius:20px}.load-more{display:block;margin:20px auto 0}.storage-detail{display:flex;gap:12px;align-items:center;margin-top:18px;color:var(--muted);font-size:11px}.storage-detail svg{width:16px;height:16px}
@media(min-width:1450px){.workspace{padding-left:65px;padding-right:65px}}
@media(max-width:1100px){.sidebar{width:210px;padding:33px 19px 20px}.workspace{margin-left:210px;width:calc(100% - 210px);padding:30px 25px}.summary{gap:12px}.summary .card{padding:20px}.metric-value{font-size:25px}.chart-layout{grid-template-columns:1fr}.settings-grid{grid-template-columns:1fr}.top-actions .status-pill{display:none}}
@media(max-width:760px){.sidebar{display:none}.workspace{width:100%;margin:0;padding:calc(22px + env(safe-area-inset-top)) 19px calc(105px + env(safe-area-inset-bottom))}.topbar{margin-bottom:25px;gap:10px}.topbar h1{font-size:27px;letter-spacing:1px}.subtitle{font-size:10px;margin-top:7px}.book-switch select{max-width:145px;font-size:11px;padding:11px 29px 11px 13px}.top-actions{gap:0}.bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;padding:10px 10px calc(10px + env(safe-area-inset-bottom));background:#fffffff5;backdrop-filter:blur(15px);border-top:1px solid var(--line);z-index:10}.bottom-nav button{flex:1;font-size:10px;color:#90978a;display:flex;align-items:center;flex-direction:column;gap:6px;padding:3px}.bottom-nav button.active{color:var(--green);font-weight:600}.bottom-nav svg{width:21px;height:21px}.bottom-nav .add-tab{background:var(--green);width:43px;height:35px;border-radius:12px;color:white;margin-top:-4px;display:flex;align-items:center;justify-content:center}.periodbar{flex-wrap:wrap;gap:16px;margin-bottom:18px}.periodbar>.segments{width:100%}.periodbar>.segments button{flex:1;padding:8px 0}.date-nav{width:100%;justify-content:center;gap:16px}.date-label{min-width:120px}.today{position:absolute;right:22px}.summary{grid-template-columns:1fr 1fr;gap:11px;margin-bottom:19px}.summary .balance{grid-column:1/-1;min-height:139px;padding:23px}.summary .balance .metric-value{font-size:35px;margin-top:15px}.summary .balance .metric-foot{margin-top:9px}.summary .card:not(.balance){min-height:124px;padding:18px}.metric-value{font-size:24px;margin-top:11px}.metric-value .currency{font-size:15px}.metric-label{font-size:11px}.metric-mini{width:24px;height:24px;border-radius:8px}.metric-mini svg{width:14px;height:14px}.metric-foot{font-size:9px;margin-top:9px}.card{padding:20px;border-radius:20px}h2{font-size:19px}.record-tools{gap:8px}.filter{padding:10px 7px;font-size:11px;max-width:100%}.search input{font-size:11px}.section-head{margin-bottom:17px}.section-head small{font-size:10px}.record{padding:14px 0;gap:11px}.badge{width:39px;height:39px;font-size:19px;border-radius:12px}.record-title{font-size:12px}.record-note{font-size:10px}.record-amount{font-size:14px}.page-foot{font-size:9px;margin-top:23px}.book-grid{grid-template-columns:1fr;gap:13px}.settings-grid{gap:16px}.settings-row{gap:10px}.settings-row p{font-size:10px}.settings-row .secondary{padding:10px;font-size:11px}.stats-filters{gap:8px}.stats-filters .segments{width:100%;margin:0}.stats-filters .segments button{flex:1}.stats-filters .filter{flex:1}.chart-layout{gap:17px}.donut-wrap{min-height:265px}.banner{font-size:11px;padding:11px 13px}.toast{bottom:calc(95px + env(safe-area-inset-bottom));font-size:12px}.modal-head{padding:20px}.modal-body{padding:20px}.icon-picker{grid-template-columns:repeat(7,1fr)}.form-grid{gap:10px}.category-line.child{padding-left:18px}.snapshot{flex-wrap:wrap}.snapshot span{min-width:150px}}
.rank-row:disabled{opacity:1;cursor:default}.summary .metric-value{overflow-wrap:anywhere;white-space:normal;font-size:clamp(22px,2.3vw,30px)}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Mac-style category selection and management. */
.badge{color:var(--green)}.category-symbol{width:23px;height:23px;stroke-width:1.65;pointer-events:none}.badge .category-symbol{width:21px;height:21px}.book-title-button{display:flex;align-items:center;gap:13px;flex:1;text-align:left;min-width:0}.book-title-button h3{font-size:17px}.book-actions{align-items:center}.book-actions>small{margin-right:auto;font-size:11px}.book-actions>.danger{font-size:10px}.category-management{scroll-margin-top:24px}.category-subtitle{font-size:11px;color:var(--muted);margin-top:7px}.category-toolbar{display:flex;align-items:center;justify-content:space-between;margin:-4px -7px 13px}.category-toolbar button{font-size:13px}.category-flow-row{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:23px}.category-flow-row .segments{min-width:200px}.category-flow-row .segments button{flex:1}.category-flow-row>.text-button{font-weight:500}.category-group+.category-group{border-top:1px solid var(--line);margin-top:22px;padding-top:22px}.category-group-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.parent-edit{display:flex;align-items:center;gap:12px;text-align:left;min-width:0}.parent-edit strong{font-size:15px;font-weight:600;overflow-wrap:anywhere}.category-parent-badge{display:flex;align-items:center;justify-content:center;width:38px;height:38px;background:#eef3ed;border-radius:12px;color:var(--green);flex-shrink:0}.category-parent-badge svg{width:20px;height:20px}.edit-hint{font-size:15px;color:#9aa291}.add-child{font-size:11px;white-space:nowrap}.management-children{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:9px;margin:15px 0 0 8px}.management-chip{display:flex;align-items:center;gap:9px;padding:11px 12px;background:var(--paper);border-radius:10px;text-align:left;color:var(--green);min-height:41px}.management-chip svg{width:17px;height:17px;flex-shrink:0}.management-chip span{font-size:12px;overflow-wrap:anywhere}.management-chip:hover{background:#eaf0e5}.arrange-hint{font-size:12px;color:var(--muted);line-height:1.9;margin-bottom:18px}.category-sort-group{padding:12px;background:var(--paper);border-radius:14px;margin:10px 0}.category-sort-row{min-height:52px;display:flex;align-items:center;background:white;border-radius:10px;margin-bottom:9px;padding:3px 6px 3px 10px;border:2px solid transparent}.category-sort-row.sort-child{margin-left:18px}.sort-target{flex:1;display:flex;align-items:center;gap:10px;min-width:0;text-align:left;padding:3px 0}.sort-symbol{width:32px;height:32px;border-radius:10px;background:#eef3ed;display:flex;align-items:center;justify-content:center;color:var(--green);flex-shrink:0}.sort-symbol svg{width:18px;height:18px}.sort-name{font-size:13px;overflow-wrap:anywhere}.category-sort-row:not(.sort-child) .sort-name{font-weight:600}.drag-handle{height:44px;width:44px;display:flex;align-items:center;justify-content:center;touch-action:none;cursor:grab;font-size:21px;color:var(--green);flex-shrink:0;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.category-drop-slot{display:flex;align-items:center;justify-content:center;gap:6px;min-height:38px;width:100%;border:1px dashed #b4c5a8;border-radius:9px;background:#315c4b04;color:var(--green);font-size:11px;padding:9px;margin:10px 0}.category-sort-group>.category-drop-slot{margin-left:18px;width:calc(100% - 18px);margin-bottom:0}.category-drop-slot.move-available{background:#edf4e5;border-color:#7f9c6e}.category-drop-slot.is-drop-target,.category-sort-row.is-drop-target{background:#e0edda;border-color:var(--green);box-shadow:0 -3px 0 #315c4b}.category-sort-row.is-drop-target.drop-after{box-shadow:0 3px 0 #315c4b}.category-sort-row.move-selected{border-color:#91aa7b;background:#edf3e8}.category-sort-row.is-dragging{opacity:.45}.category-drag-ghost{position:fixed;left:0;top:0;pointer-events:none;z-index:1000;padding:13px 19px;background:var(--green);color:white;font-size:13px;border-radius:12px;box-shadow:0 8px 25px #203c3540;max-width:210px;overflow-wrap:anywhere}.category-dragging{user-select:none;-webkit-user-select:none;cursor:grabbing}
dialog.entry-dialog{width:min(600px,calc(100vw - 24px));height:min(920px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);overflow:hidden}dialog.entry-dialog[open]{display:flex;flex-direction:column}.entry-dialog .modal-head{flex-shrink:0;position:static;padding:19px 23px;background:#fff}.entry-dialog .modal-body{padding:0;flex:1;min-height:0;display:flex;overflow:hidden}.entry-form{display:flex;flex-direction:column;flex:1;min-height:0}.entry-scroll{padding:23px;overflow-y:auto;overscroll-behavior:contain;flex:1;min-height:0}.entry-form .segments.entry-flow{margin:0 0 23px;padding:3px;background:#eef1ea;border:1px solid var(--line);border-radius:9px}.entry-flow button{font-size:15px;padding:9px}.entry-form .entry-flow button.active{background:var(--green);color:white;border-radius:7px;box-shadow:0 1px 5px #25463930}.amount-card{padding:24px;margin-bottom:24px;min-height:144px}.amount-label{font-size:12px;color:var(--muted);font-weight:500;display:block;margin-bottom:15px}.amount-line{display:flex;align-items:baseline;gap:10px}.amount-line>span{font-size:29px}.amount-line input{width:100%;min-width:0;padding:0;border:0;background:none;color:var(--ink);font-size:43px;font-weight:500;line-height:1.3;outline:none}.amount-line input::placeholder{color:#c5c8c1;opacity:1}.entry-category-card{padding:23px;margin-bottom:24px}.entry-category-head h3{font-size:15px;font-weight:600}.selection-caption{font-size:10px;color:var(--muted);display:block;margin-top:6px;line-height:1.7;min-height:17px}.parent-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px 8px;margin-top:17px}.parent-choice{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0;padding:0;color:var(--ink);border-radius:13px}.parent-symbol{height:50px;width:53px;border-radius:16px;background:#f0f4f0;color:var(--green);display:flex;align-items:center;justify-content:center}.parent-symbol svg{width:26px;height:26px;stroke-width:1.8}.parent-choice>span:last-child{font-size:12px;line-height:1.5;overflow-wrap:anywhere;text-align:center}.parent-choice.active .parent-symbol{color:white;background:var(--green)}.parent-choice.active>span:last-child{font-weight:600}.child-picker{border-top:1px solid var(--line);margin-top:22px;padding-top:17px}.child-picker>p{font-size:11px;letter-spacing:.5px;color:var(--muted);margin-bottom:14px}.child-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(98px,1fr));gap:9px}.child-choice{min-height:40px;display:flex;gap:7px;align-items:center;justify-content:flex-start;background:#f2f5f1;color:var(--green);border-radius:10px;padding:10px;font-size:12px;line-height:1.5;text-align:left}.child-choice svg{width:17px;height:17px;flex-shrink:0}.child-choice span{overflow-wrap:anywhere}.child-choice.active{background:var(--green);color:white;font-weight:600}.entry-details{padding:4px 23px 15px}.detail-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:17px 0;border-bottom:1px solid var(--line);font-size:13px}.detail-row input,.detail-row select{color:var(--ink);font-size:16px;border:0;padding:6px;background:transparent;border-radius:6px;max-width:70%;text-align:right;min-width:0}.entry-note{display:block;padding-top:17px}.entry-note>span{font-size:12px;color:var(--muted)}.entry-note textarea{display:block;width:100%;border:0;background:transparent;padding:10px 0;resize:vertical;min-height:75px;font-size:14px;line-height:1.8;color:var(--ink);outline-color:#a7bb93}.entry-note textarea::placeholder{font-size:12px;color:#a6ad9f}.note-count{display:block;text-align:right;font-size:10px}.entry-save{flex-shrink:0;padding:16px 20px 10px;background:#eff1eaf5;border-top:1px solid var(--line)}.entry-save .primary{width:100%;min-height:48px;border-radius:15px;font-size:16px}.entry-cancel{display:block;margin:10px 0 0 auto;padding:6px 3px;font-size:12px}.delete-entry-link{display:block;width:100%;padding:20px 10px 4px;font-size:12px}.entry-scroll>.form-error{margin:15px 0 0}.category-context{font-size:12px;color:var(--muted);margin-bottom:18px}.category-name-field{display:flex;align-items:center;gap:14px;border:1px solid var(--line);border-radius:19px;background:white;padding:17px;margin-bottom:25px}.category-name-field>span{display:flex;align-items:center;justify-content:center;width:48px;height:48px;background:#eef3ed;border-radius:15px;flex-shrink:0;color:var(--green)}.category-name-field input{border:0;width:100%;min-width:0;background:transparent;font-size:16px;color:var(--ink);outline:none}.icon-picker-title{font-size:14px;font-weight:600;margin-bottom:14px}.symbol-editor .icon-picker{max-height:300px;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;padding:0}.symbol-editor .icon-choice{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:11px 4px;color:var(--green);background:#f0f4ee;border-radius:12px;min-width:0}.symbol-editor .icon-choice svg{width:23px;height:23px}.symbol-editor .icon-choice span{font-size:10px;line-height:1.3}.symbol-editor .icon-choice.active{background:var(--green);border-color:var(--green);color:white}.symbol-editor .text-button{padding-left:0}.delete-category-link{display:block;margin:12px 0;padding:12px 0;font-size:12px}.default-category-toggle{font-size:13px;display:flex;align-items:center;gap:8px;margin-bottom:24px}
@media(max-width:760px){dialog.entry-dialog{width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);border-radius:19px}.entry-dialog .modal-head{padding:16px 18px}.entry-dialog .modal-head h2{font-size:21px}.entry-scroll{padding:17px}.entry-form .segments.entry-flow{margin-bottom:18px}.entry-form .entry-flow button{font-size:14px;padding:8px}.amount-card{min-height:133px;padding:21px;margin-bottom:18px}.amount-line input{font-size:40px}.entry-category-card{padding:19px 15px;margin-bottom:18px}.parent-grid{gap:16px 4px}.parent-symbol{height:45px;width:48px;border-radius:15px}.parent-symbol svg{width:24px;height:24px}.parent-choice>span:last-child{font-size:11px}.child-grid{grid-template-columns:repeat(auto-fit,minmax(86px,1fr));gap:8px}.child-choice{font-size:11px;padding:9px 8px;gap:6px}.entry-details{padding:2px 18px 13px}.entry-save{padding:12px 15px calc(8px + env(safe-area-inset-bottom))}.entry-save .primary{min-height:46px;font-size:15px}.entry-cancel{margin-top:6px}.management-children{grid-template-columns:repeat(2,minmax(0,1fr));margin-left:4px;gap:8px}.management-chip{padding:10px;font-size:11px}.management-chip span{font-size:11px}.category-flow-row{gap:8px}.category-flow-row .segments{min-width:0;flex:1;max-width:230px}.category-flow-row>.text-button{font-size:11px;white-space:nowrap}.category-parent-badge{width:35px;height:35px}.parent-edit{gap:9px}.parent-edit strong{font-size:14px}.edit-hint{font-size:13px}.add-child{padding-right:0;font-size:10px}.category-sort-group{padding:9px}.category-sort-row.sort-child{margin-left:12px}.category-sort-group>.category-drop-slot{margin-left:12px;width:calc(100% - 12px)}.sort-name{font-size:12px}.symbol-editor .icon-picker{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.symbol-editor .icon-choice{padding:10px 3px}.category-name-field{padding:14px;gap:11px}.book-actions>.danger{font-size:10px}.book-actions>.text-button{font-size:11px}.book-title-button h3{font-size:16px}}
.entry-category-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.entry-category-head h3{flex-shrink:0}.selection-caption{margin:0;max-width:55%;text-align:right;overflow-wrap:anywhere}
body.modal-open{overflow:hidden}dialog.entry-dialog{max-width:calc(100% - 16px)}
@media(min-width:761px){.entry-scroll{padding:20px}.entry-form .segments.entry-flow{margin-bottom:20px}.amount-card{min-height:120px;padding:20px;margin-bottom:20px}.amount-label{margin-bottom:12px}.entry-category-card{padding:22px;margin-bottom:20px}.parent-grid{margin-top:16px;gap:16px 8px}}
