:root{--ink:#203f35;--muted:#6e817a;--green:#215644;--green-2:#e1eee7;--paper:#f1f5f3;--white:#fff;--line:#dce5df;--gold:#ad803e;--red:#b74f43;--amber:#94691c;--radius:20px;--shadow:0 8px 32px #173f2d06}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.6 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer;border:0;background:none;color:inherit}button:disabled{opacity:.5;cursor:not-allowed}a{color:var(--green)}button:focus-visible,a:focus-visible{outline:3px solid #ad803e;outline-offset:3px}input:focus,select:focus,textarea:focus{outline:2px solid #c87884;border-color:transparent}h1,h2,h3,p{margin:0}h1{font-size:28px;line-height:1.3;font-weight:650;letter-spacing:.02em}h2{font-size:18px;font-weight:650}h3{font-size:15px}small,.muted{color:var(--muted)}.num{font-variant-numeric:tabular-nums;letter-spacing:-.03em}.big{font-size:36px;line-height:1.3;font-weight:650}.amount{font-weight:650;font-variant-numeric:tabular-nums}.unit{font-size:13px;color:var(--muted);margin-left:6px}.negative{color:var(--red)}.positive{color:var(--green)}.shell{display:grid;grid-template-columns:236px minmax(0,1fr);align-items:start;max-width:1440px;margin:auto;min-height:100vh}.sidebar{position:sticky;top:0;align-self:start;height:100vh;height:100dvh;min-width:0;overflow-y:auto;padding:38px 24px;background:#f8fbf9;border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:12}.brand{display:flex;align-items:center;gap:12px}.brand-mark{background:var(--green);width:44px;height:48px;border-radius:14px 4px 14px 4px;color:white;display:grid;place-items:center;font:26px "STKaiti","KaiTi",serif;flex-shrink:0}.brand-name{font:22px "STKaiti","KaiTi",serif;letter-spacing:3px}.brand small{font-size:11px;letter-spacing:1px}.nav{display:grid;gap:10px;margin-top:55px}.nav button{display:flex;gap:12px;align-items:center;text-align:left;padding:14px 18px;border-radius:12px;color:var(--muted);font-weight:550}.nav button.active{background:var(--green-2);color:var(--green)}.nav svg,.icon svg{width:21px;height:21px;vertical-align:middle;stroke-width:1.6}.sidebar-bottom{margin-top:auto;padding-top:28px;display:grid;gap:14px}.local-indicator{font-size:12px;color:var(--muted)}.dot{display:inline-block;width:6px;height:6px;background:#c30d23;border-radius:50%;margin-right:6px}.main{min-width:0;width:100%;padding:38px 42px 80px;max-width:1160px;margin:auto}.page-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:28px}.eyebrow{font-size:12px;letter-spacing:1px;color:var(--muted);margin-bottom:6px}.head-actions{display:flex;gap:10px;align-items:center}.icon{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;border:1px solid var(--line);background:white}.badge{display:inline-flex;align-items:center;border-radius:7px;padding:3px 8px;font-size:11px;line-height:1.5;background:var(--green-2);color:var(--green);white-space:nowrap}.badge.amber{background:#f8efd9;color:var(--amber)}.badge.gray{background:#eef0ef;color:var(--muted)}.panel{min-width:0;background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow)}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}.grid{display:grid;gap:20px}.grid.two{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.grid.main-grid{grid-template-columns:minmax(0,1.35fr) minmax(270px,1fr)}.stack{display:grid;gap:20px;align-content:start}.today-strip{display:grid;grid-template-columns:1fr 1fr 1fr;gap:18px;margin:0 0 26px;padding:22px 26px;background:var(--green);border-radius:var(--radius);color:white;position:relative;overflow:hidden}.today-strip:after{content:"";position:absolute;right:18px;top:-20px;width:26px;height:150px;transform:rotate(22deg);border-left:1px solid #ffffff12;border-right:1px solid #ffffff12;pointer-events:none}.today-strip small{color:#c2d9cd}.today-strip .value{font-size:28px;line-height:1.7;font-weight:600}.today-strip .value span{font-size:12px;margin-left:4px;font-weight:400;color:#c2d9cd}.today-strip>div{min-width:0}.counter{display:flex;justify-content:space-between;align-items:center;padding:22px 0;border-bottom:1px solid var(--line)}.counter:last-of-type{border-bottom:0}.counter-brand{display:flex;gap:12px;align-items:center}.channel-symbol{width:36px;height:42px;border-radius:13px 5px;background:#eef5ef;color:var(--green);display:grid;place-items:center;font-size:15px;font-weight:600;position:relative}.channel-symbol.dy{background:#edf0f6;color:#4c5773}.counter-control{display:flex;align-items:center;gap:15px}.counter-control button{border:1px solid var(--line);border-radius:50%;width:38px;height:38px;font-size:24px;line-height:1;background:#fafcfb}.counter-control .plus{background:var(--green);border-color:var(--green);color:white}.counter-value{min-width:30px;text-align:center;font-size:25px;font-weight:600}.date-input{border:1px solid var(--line);border-radius:9px;padding:6px 9px;max-width:150px;background:#f8faf9;color:var(--ink);font-size:13px;min-height:36px}.record-total{padding:18px 0;display:flex;align-items:center;justify-content:space-between;font-size:13px;color:var(--muted)}.record-total strong{color:var(--green);font-size:19px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 18px;border-radius:11px;font-weight:550;line-height:1.6;min-height:45px}.btn.primary{background:var(--green);color:white}.btn.secondary{background:var(--green-2);color:var(--green)}.btn.outline{border:1px solid var(--line);background:white}.btn.danger{background:#faeae6;color:var(--red)}.btn.wide{width:100%}.btn.small{padding:6px 11px;min-height:34px;font-size:12px}.link{color:var(--green);font-size:13px;padding:6px 0;text-decoration:underline;text-underline-offset:4px}.action-row{display:flex;gap:10px;flex-wrap:wrap}.product-entry{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:18px 0}.divider{height:1px;background:var(--line);margin:16px 0}.speech-box{border:1px solid var(--line);background:#f8fbf9;border-radius:12px;padding:12px}.speech-box textarea{width:100%;border:0;background:transparent;resize:vertical;min-height:60px;outline:none!important;color:var(--ink)}.hint{font-size:12px;line-height:1.7;color:var(--muted)}.note{background:#f4f7f5;border-radius:10px;padding:12px 14px;font-size:12px;color:var(--muted)}.note.amber{background:#faf3e6;color:var(--amber)}.summary-line{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:13px 0;border-bottom:1px solid var(--line)}.summary-line:last-child{border-bottom:0}.summary-line small{display:block;font-size:12px}.summary-line .amount{font-size:19px}.quick-receipt{margin-top:14px;display:grid;grid-template-columns:1fr 1fr;gap:9px}.monthly-due{padding:12px 0}.due-date{color:var(--muted);font-size:12px}.due-row{display:flex;justify-content:space-between;align-items:center;margin-top:7px}.due-total{font-size:24px}.progress{height:5px;border-radius:5px;background:#e8eeea;overflow:hidden;margin-top:14px}.progress>i{height:100%;display:block;background:#75a58b;border-radius:5px}.empty{padding:40px 20px;color:var(--muted);text-align:center}.empty .empty-title{font-size:18px;margin-bottom:12px;color:var(--ink)}.empty p{margin-bottom:20px}.section-label{display:flex;justify-content:space-between;align-items:center;margin:26px 0 14px}.section-label small{font-size:12px}.segmented{display:inline-flex;border:1px solid var(--line);border-radius:9px;padding:3px;gap:2px;background:#edf2ee}.segmented button{padding:5px 14px;font-size:13px;border-radius:6px;color:var(--muted)}.segmented button.active{background:white;color:var(--ink);box-shadow:0 1px 4px #173f2d10}.overview-number{display:flex;gap:36px;padding-bottom:18px}.overview-number small{display:block;margin-bottom:6px}.overview-number .big{font-size:30px}.chart{height:150px;display:flex;align-items:end;gap:9px;padding:16px 2px 25px;position:relative;border-bottom:1px solid var(--line)}.bar-wrap{flex:1;position:relative;height:100%;display:flex;align-items:end;justify-content:center}.bar{width:min(100%,34px);min-height:3px;background:#bad4c5;border-radius:5px 5px 0 0;position:relative}.bar-wrap:last-child .bar{background:var(--green)}.bar-label{position:absolute;bottom:-23px;font-size:10px;color:var(--muted)}.day-row{width:100%;display:flex;justify-content:space-between;align-items:center;text-align:left;padding:18px 0;border-bottom:1px solid var(--line);gap:10px}.day-row small{display:block;font-size:12px}.day-row .amount{font-size:18px}.day-row .right{text-align:right}.day-row:last-child{border-bottom:0}.fund-total{display:flex;align-items:baseline;gap:5px;margin:10px 0 22px}.fund-breakdown{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:15px 0;border-top:1px solid var(--line)}.fund-breakdown strong{display:block;font-size:19px;margin-top:4px}.fund-breakdown small{font-size:12px}.debt-summary{display:flex;justify-content:space-between;gap:20px;align-items:center;padding-bottom:18px}.debt-card{border-top:1px solid var(--line);padding:20px 0}.debt-card:last-child{padding-bottom:0}.debt-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.debt-card-head h3{font-size:16px}.debt-numbers{display:flex;justify-content:space-between;gap:18px;margin-bottom:10px}.debt-numbers strong{display:block;font-size:23px}.debt-numbers small{font-size:12px}.debt-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:15px}.due-highlight{display:flex;align-items:center;justify-content:space-between;gap:12px;border-radius:10px;background:#f3f7f4;padding:10px 12px}.list-compact{font-size:13px}.list-compact .summary-line{padding:10px 0}.list-compact .amount{font-size:15px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.setting-button{display:flex;flex-direction:column;align-items:start;gap:6px;padding:17px;border:1px solid var(--line);border-radius:12px;background:white;text-align:left}.setting-button span{font-weight:600}.setting-button small{font-size:12px}.modal-backdrop{position:fixed;inset:0;background:#163a2d66;backdrop-filter:blur(3px);z-index:40;display:flex;align-items:center;justify-content:center;padding:24px}.modal{width:100%;max-width:530px;max-height:90dvh;overflow:auto;border-radius:22px;background:white;box-shadow:0 18px 80px #173f2d26;padding:25px}.modal.wide{max-width:720px}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.modal-head h2{font-size:20px}.close{background:#f1f5f2;border-radius:50%;width:33px;height:33px;font-size:24px;line-height:1}.form{display:grid;gap:16px}.form label{font-size:13px;font-weight:550;display:grid;gap:6px}.form input:not([type=checkbox]),.form select,.form textarea{width:100%;border:1px solid var(--line);border-radius:10px;padding:11px 12px;background:#fafcfb;min-height:46px;color:var(--ink)}.form .two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form .check{display:flex;align-items:center;gap:9px;font-weight:400}.form input[type=checkbox]{accent-color:var(--green);width:17px;height:17px}.form details{border-top:1px solid var(--line);padding-top:12px}.form summary{font-size:13px;cursor:pointer;color:var(--muted);margin-bottom:12px}.form details>div{display:grid;gap:12px}.form-error{color:var(--red);font-size:13px;min-height:0}.form-error:empty{display:none}.form-footer{display:flex;justify-content:end;gap:10px;margin-top:5px}.detail-row{padding:16px 0;border-bottom:1px solid var(--line)}.detail-row:first-child{padding-top:0}.detail-row:last-child{border-bottom:0}.detail-top{display:flex;justify-content:space-between;align-items:start;gap:12px}.detail-meta{font-size:12px;color:var(--muted);margin-top:5px;overflow-wrap:anywhere}.refund-detail{font-size:12px;color:var(--red);margin-top:8px}.schedule-table{width:100%;border-collapse:collapse;font-size:12px}.schedule-table th,.schedule-table td{padding:10px 4px;text-align:right;border-bottom:1px solid var(--line);font-variant-numeric:tabular-nums}.schedule-table th:first-child,.schedule-table td:first-child{text-align:left}.welcome{max-width:700px;margin:10vh auto;padding:24px}.welcome h1{margin:24px 0 14px;font:32px "STKaiti","KaiTi",serif}.welcome .panel{margin-top:30px}.welcome .action-row{margin-top:24px}.loading{min-height:60vh;display:flex;gap:18px;align-items:center;justify-content:center;color:var(--muted)}#toast{position:fixed;left:50%;bottom:35px;transform:translate(-50%,20px);background:#193c30;color:white;padding:12px 22px;border-radius:11px;z-index:60;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;font-size:13px;max-width:90vw;box-shadow:0 5px 30px #173f2d22}#toast.show{opacity:1;transform:translate(-50%,0)}.mobile-status{display:none}.storage-error{background:#fbede8;padding:12px;border-radius:10px;color:var(--red);font-size:13px;margin-bottom:18px}.backup-reminder{margin-top:18px;font-size:12px;color:var(--muted)}.footer-note{margin-top:25px;font-size:11px;color:var(--muted);text-align:center}.mobile-only{display:none}
svg{width:20px;height:20px;vertical-align:middle}.day-row .right svg{width:12px;height:12px}.btn svg{width:18px;height:18px}

@media(max-width:1100px){.main{padding:30px 24px 80px}.shell{grid-template-columns:200px minmax(0,1fr)}.sidebar{padding:30px 18px}.grid.main-grid{grid-template-columns:1fr}.grid.main-grid>.stack{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.grid.main-grid>.stack>.panel:last-child{grid-column:1/-1}.big{font-size:32px}}
@media(max-width:720px){body{font-size:14px}.shell{display:block;padding:0}.sidebar{position:fixed;top:auto;bottom:0;left:0;width:100%;height:auto;padding:7px 12px calc(7px + env(safe-area-inset-bottom));background:#fafdfbef;border:0;border-top:1px solid var(--line);backdrop-filter:blur(16px)}.sidebar>.brand,.sidebar-bottom{display:none}.nav{display:flex;justify-content:space-around;margin:0;gap:0}.nav button{display:flex;flex-direction:column;gap:2px;padding:5px 14px;min-width:62px;font-size:10px;border-radius:11px}.nav button.active{background:transparent;color:var(--green)}.nav button.active svg{stroke-width:2.2}.nav button svg{width:22px;height:22px}.main{padding:22px 17px calc(105px + env(safe-area-inset-bottom))}.page-head{margin-bottom:20px}.eyebrow{font-size:11px}h1{font-size:24px}.page-head .head-actions{gap:8px}.page-head .icon{width:35px;height:35px}.today-strip{padding:19px 19px;gap:10px;margin-bottom:18px}.today-strip .value{font-size:23px}.today-strip .value span{font-size:10px;margin-left:2px}.today-strip small{font-size:10px}.panel{padding:19px;border-radius:17px}.grid,.stack{gap:15px}.grid.two,.grid.main-grid,.grid.main-grid>.stack{grid-template-columns:1fr}.grid.main-grid>.stack>.panel:last-child{grid-column:auto}.panel-head{margin-bottom:12px}.panel-head h2{font-size:17px}.counter{padding:19px 0}.counter-control{gap:11px}.counter-control button{width:37px;height:37px}.counter-control .counter-value{font-size:24px}.record-total{padding:15px 0}.product-entry{padding:14px 0}.mobile-only{display:block}.mobile-status{display:block;font-size:10px;color:var(--muted);margin-top:3px}.today-strip .value{white-space:nowrap}.overview-number{gap:30px}.overview-number .big{font-size:28px}.chart{height:135px;gap:5px}.modal-backdrop{align-items:end;padding:0}.modal{border-radius:22px 22px 0 0;padding:23px 20px calc(25px + env(safe-area-inset-bottom));max-height:92dvh}.modal-backdrop.center{align-items:center;padding:18px}.modal-backdrop.center .modal{border-radius:20px;padding:24px}.form .two{gap:10px}.form input:not([type=checkbox]),.form select,.form textarea{font-size:16px}.big{font-size:32px}.fund-breakdown strong{font-size:21px}.debt-numbers strong{font-size:24px}.settings-grid{gap:10px}.setting-button{padding:15px}#toast{bottom:calc(92px + env(safe-area-inset-bottom));white-space:normal;width:max-content;text-align:center}.head-actions>.badge{display:none}.welcome{margin:5vh auto;padding:24px}.welcome h1{font-size:29px}.welcome .action-row{display:grid}.welcome .btn{width:100%}.welcome .panel{padding:22px}.footer-note{font-size:10px}.hint{font-size:11px}.day-row{padding:17px 0}.day-row .amount{font-size:17px}.schedule-table{font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* LINAN_PHONE_THEME */
/* Phone-first layout for Linan's original red seal identity. */
:root{--ink:#242427;--muted:#818188;--green:#c30d23;--green-2:#fbecef;--paper:#f6f6f8;--white:#fff;--line:#e8e8ed;--gold:#9d702b;--red:#c30d23;--amber:#906313;--radius:18px;--shadow:none}
html{background:#f6f6f8}body{color:var(--ink);background:var(--paper);font-size:14px;line-height:1.6}
.shell{display:block;max-width:480px;padding:0;margin:0 auto;min-height:100dvh;background:var(--paper)}
.sidebar{position:fixed;top:auto;left:50%;bottom:0;transform:translateX(-50%);width:100%;max-width:480px;height:auto;min-height:0;overflow:visible;padding:8px 13px calc(8px + env(safe-area-inset-bottom));border:0;border-top:1px solid var(--line);background:#ffffffed;backdrop-filter:blur(18px);z-index:12}
.sidebar>.brand,.sidebar-bottom{display:none}.nav{display:flex;justify-content:space-around;gap:0;margin:0}.nav button{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px;align-items:center;padding:7px 8px;border-radius:12px;text-align:center;font-size:11px;color:#929298;font-weight:500}.nav button.active{background:transparent;color:var(--red)}.nav button.active svg{stroke-width:2}.nav svg{width:22px;height:22px}
.main{padding:23px 18px calc(105px + env(safe-area-inset-bottom));width:100%;min-width:0;max-width:none;margin:0}
.page-head{align-items:flex-start;margin-bottom:22px;gap:10px}.page-heading{min-width:0}.brand-identity{display:flex;align-items:center;gap:8px;margin-bottom:19px}.brand-logo{display:block;flex-shrink:0;object-fit:contain;width:38px;height:38px;border-radius:10px;background:#fff}.brand-identity>span{font-size:15px;font-weight:650;letter-spacing:.08em;line-height:1.4}.brand-identity small{display:block;color:var(--muted);font-size:10px;letter-spacing:.12em;font-weight:400;margin-top:2px}h1{font-size:25px;letter-spacing:.025em;font-weight:650;line-height:1.3}h2{font-size:16px;font-weight:650}h3{font-size:14px}.page-head .head-actions{padding-top:2px;gap:8px}.head-actions>.badge,.mobile-status{display:none}.icon{width:36px;height:36px;border:1px solid #e6e6eb;background:white;color:#67676e}.icon svg{width:18px;height:18px}
.grid,.stack{gap:15px}.grid.two,.grid.main-grid,.grid.main-grid>.stack{grid-template-columns:minmax(0,1fr)}.grid.main-grid>.stack>.panel:last-child{grid-column:auto}.grid>*,.stack>*{min-width:0}.panel{padding:19px;border-radius:18px;border:1px solid var(--line);box-shadow:none;min-width:0}.panel-head{gap:8px;margin-bottom:13px;align-items:center}.panel-head h2{font-size:16px}.panel-head .link{white-space:nowrap;font-size:12px}
.today-strip{display:block;margin:0 0 16px;padding:19px 20px;background:#fff;border:1px solid var(--line);border-radius:18px;color:var(--ink)}.today-strip:after{display:none}.today-heading{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:19px;font-size:12px;color:var(--muted)}.today-heading>span:first-child{color:var(--ink);font-weight:600}.today-metrics{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:15px}.today-strip small{color:var(--muted);font-size:11px}.today-strip .value{font-size:28px;font-weight:650;line-height:1.5;white-space:normal;overflow-wrap:anywhere;letter-spacing:-.045em}.today-metrics>div+div{padding-left:15px;border-left:1px solid var(--line)}.today-orders{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);margin-top:17px;padding-top:12px;font-size:12px;color:var(--muted)}.today-orders strong{color:var(--ink);font-size:13px;font-weight:550}
.counter{padding:20px 0}.counter-brand{gap:10px;min-width:0}.counter-brand small{font-size:11px}.channel-symbol{width:34px;height:38px;border-radius:11px;background:#f4f4f7;color:#62626c;font-weight:600}.channel-symbol.dy{background:#f0f0f3;color:#33333a}.counter-control{gap:11px}.counter-control button{width:34px;height:34px;background:white;border-color:#e4e4ea;font-size:22px;color:#a1a1a8}.counter-control .plus{background:var(--red);border-color:var(--red);color:white}.counter-control .counter-value{font-size:22px;min-width:24px}.counter-control button:disabled{opacity:.35}.record-total{padding:16px 0;font-size:11px}.record-total strong{font-size:18px;color:var(--ink)}.date-input{width:133px;max-width:133px;min-height:33px;padding:5px 7px;font-size:11px;background:#f7f7f9;color:#5f5f68;border-color:var(--line)}
.btn{border-radius:12px;padding:11px 15px;font-size:13px;min-height:44px;font-weight:550}.btn.primary{background:#242427;color:white}.btn.secondary{background:#fbecef;color:var(--red)}.btn.outline{border:1px solid var(--line);background:white;color:var(--ink)}.btn.small{padding:6px 10px;min-height:34px;font-size:11px}.btn.danger{background:#fbecef;color:var(--red)}.link{color:#73737d;font-size:12px;text-decoration:none}.link:hover{color:var(--red)}.badge{background:#f4f4f7;color:#73737d;border-radius:6px;font-size:10px}.badge.gray{background:#f4f4f7;color:#73737d}.badge.amber{background:#fbf2df;color:#906313}.positive{color:var(--ink)}.negative{color:var(--red)}
.product-entry{padding:4px 0 15px;gap:10px}.product-entry small{font-size:11px}.speech-box{background:#f8f8fa;border-color:var(--line);padding:11px;border-radius:12px}.speech-box textarea{font-size:13px;line-height:1.7;min-height:64px}.hint{font-size:11px;color:var(--muted)}.note{background:#f5f5f8;color:#73737d}.note.amber{background:#fbf2df;color:#906313}.divider{background:var(--line)}.summary-line{gap:12px;padding:13px 0}.summary-line>div{min-width:0}.summary-line .amount{font-size:18px;color:var(--ink);white-space:nowrap}.summary-line small{font-size:11px}.quick-receipt{margin-top:15px;gap:8px}.quick-receipt .btn{padding:10px 7px;font-size:12px}.due-date{font-size:11px}.due-total{font-size:28px;letter-spacing:-.03em;color:var(--ink)}.due-highlight{background:#f7f7f9}.due-row{gap:12px}.due-row .btn{flex-shrink:0}.progress{background:#efeff3}.progress>i{background:#cb808b}
.overview-number{gap:25px}.overview-number>div{min-width:0}.overview-number .big{font-size:27px;overflow-wrap:anywhere}.overview-number small{font-size:11px}.chart{height:135px;gap:5px}.bar{background:#ead2d6}.bar-wrap:last-child .bar{background:var(--red)}.segmented{background:#f1f1f5;border-color:#e6e6ec}.segmented button{padding:5px 11px;font-size:11px}.day-row .amount{font-size:17px}.day-row small{font-size:11px}.fund-total .big{font-size:32px}.fund-breakdown strong{font-size:21px}.fund-breakdown small{font-size:11px}.debt-summary{gap:12px;align-items:flex-start}.debt-summary>.btn{font-size:11px;padding:9px 11px}.debt-summary .big{font-size:30px}.debt-numbers strong{font-size:23px}.debt-actions{gap:8px}.debt-actions .btn{font-size:11px;padding:9px 10px}.settings-grid{gap:10px}.setting-button{background:#fff;border-color:var(--line);padding:15px}.setting-button small{font-size:11px}
.modal-backdrop{background:#20202755;align-items:end;padding:0}.modal{max-width:480px;max-height:92dvh;padding:23px 20px calc(25px + env(safe-area-inset-bottom));border-radius:22px 22px 0 0;box-shadow:0 -12px 45px #20202714}.modal.wide{max-width:480px}.modal-head h2{font-size:19px}.close{background:#f3f3f6}.form input:not([type=checkbox]),.form select,.form textarea{background:#f9f9fb;border-color:var(--line);font-size:16px}.form input[type=checkbox]{accent-color:var(--red)}.form .two{gap:10px}.schedule-table{font-size:11px}.mobile-only{display:block}.footer-note{font-size:10px;color:#a0a0a8;margin-top:24px}.backup-reminder{font-size:11px;margin-top:19px;line-height:1.8}.dot{background:var(--red)}.empty{font-size:12px}.welcome{max-width:440px;margin:5vh auto;padding:24px}.welcome h1{font:26px -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;font-weight:650}.welcome .brand-mark{background:transparent;width:42px;height:42px}.brand-mark img{width:100%;height:100%;object-fit:contain}.welcome .brand-name{font:20px -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;font-weight:600;letter-spacing:1px}.welcome .action-row{display:grid}.welcome .btn{width:100%}
#toast{background:#242427;bottom:calc(94px + env(safe-area-inset-bottom));font-size:12px;max-width:min(90vw,420px);white-space:normal;width:max-content;text-align:center}
@media(max-width:360px){.main{padding-left:13px;padding-right:13px}.panel{padding:16px}.counter-brand{gap:7px}.counter-control{gap:8px}.counter-control button{width:32px;height:32px}.date-input{max-width:122px;width:122px}.today-strip .value{font-size:25px}.brand-identity{margin-bottom:16px}.debt-summary .big{font-size:27px}}
.sales-entry{margin:0}.sales-entry .panel-head{margin-bottom:0}.sales-row{border-bottom:1px solid var(--line)}.inline-product{padding:20px 0 18px}.product-symbol{background:#fbecef;color:var(--red)}.inline-product-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin-top:16px}.inline-product label,.sales-options>label{display:grid;gap:7px;min-width:0;font-size:11px;color:#82828a}.inline-product input{width:100%;min-width:0;min-height:46px;padding:10px 11px;border:1px solid var(--line);border-radius:10px;background:#f8f8fa;color:var(--ink);font:500 16px/1.4 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}.inline-product input::placeholder{color:#b7b7bf;font-weight:400}.sales-options{margin-top:14px}.sales-options>summary{font-size:11px;color:#8d8d96;cursor:pointer}.sales-options>.inline-product-fields{margin-top:13px}.sales-options>label{margin-top:13px}.sales-entry .form-error{margin-bottom:10px}.sales-save-hint{margin-top:11px;font-size:10px}.flow-period-total{display:grid;gap:5px;margin:16px 0 20px}.flow-period-total>small{font-size:11px;color:var(--muted)}.flow-period-total>strong{font-size:31px;font-weight:650;line-height:1.3}.chart-caption{display:flex;justify-content:space-between;gap:10px;font-size:10px;color:#94949e;margin-bottom:7px}.flow-chart-svg{display:block;width:100%;height:auto;aspect-ratio:320/181;overflow:visible}.chart-gridline{stroke:#ececf1;stroke-width:1;stroke-dasharray:3 4}.chart-gridline.zero{stroke:#dddde5;stroke-dasharray:none}.chart-axis{fill:#9999a3;font-size:10px;font-weight:400}.chart-date{fill:#8c8c97;font-size:10px;font-weight:400;white-space:nowrap}.chart-column{fill:#b9b9c2}.chart-column.latest{fill:var(--red)}.chart-column.negative{fill:#d2a6ae}

/* Compact mobile ledger, matching the owner's reference list. */
.counter-brand{display:block}.sales-row h3{font-size:15px}.inline-product{padding:16px 0}.counter{padding:17px 0}.inline-product-fields{margin-top:12px}.sales-save-hint{display:none}.home-pending{font-size:29px;font-weight:650;margin:6px 0 18px;letter-spacing:-.03em}.fund-overview .fund-total{margin:5px 0 16px}.fund-overview .fund-breakdown{margin-bottom:12px}.receipt-list{padding:0 17px}.receipt-row{padding:13px 0;border-bottom:1px solid var(--line)}.receipt-row:last-child{border-bottom:0}.receipt-main{display:flex;justify-content:space-between;gap:12px;align-items:start}.receipt-main small{display:block;font-size:11px;color:var(--muted);margin-top:2px}.receipt-value{text-align:right;min-width:0}.receipt-value>strong{font-size:18px;font-weight:600}.receipt-value>small:empty{display:none}.receipt-undo{display:block;margin:3px 0 0 auto;font-size:10px}.debt-overview{padding:17px 18px}.debt-overview .panel-head{margin-bottom:9px}.debt-overview .panel-head>small{color:var(--muted);font-size:12px}.debt-main-number{font-size:31px;font-weight:650;letter-spacing:-.04em;line-height:1.3;overflow-wrap:anywhere}.debt-next-line{display:flex;justify-content:space-between;gap:12px;align-items:baseline;font-size:11px;color:var(--muted);margin-top:17px}.debt-next-line strong{font-size:16px;color:var(--ink);white-space:nowrap}.debt-overview .progress{margin-top:14px;height:4px}.debt-progress-note{display:flex;justify-content:space-between;gap:10px;margin-top:9px;color:var(--muted);font-size:10px}.debt-list-heading{margin:21px 0 11px}.debt-list-heading>div{display:flex;gap:7px}.debt-list{padding:0 15px}.compact-debt{display:flex;justify-content:space-between;align-items:center;gap:9px;padding:16px 0;border-bottom:1px solid var(--line)}.compact-debt:last-child{border-bottom:0}.compact-debt-info{flex:1;min-width:0;text-align:left;display:block;padding:0;color:var(--ink)}.compact-debt-info>strong{font-size:13px;font-weight:550;display:block;line-height:1.5}.compact-debt-info>small{display:block;font-size:10px;color:var(--muted);margin-top:5px;line-height:1.5;overflow-wrap:anywhere}.compact-debt>.btn{flex-shrink:0;min-height:40px;min-width:46px;padding:7px 10px;font-size:12px}.closed-toggle{text-align:right;margin:9px 0 17px}.payment-history{padding:15px}.payment-history>summary{display:flex;justify-content:space-between;align-items:center;font-weight:550;font-size:13px;cursor:pointer;list-style:none}.payment-history>summary::-webkit-details-marker{display:none}.payment-history>summary>span{font-size:11px;font-weight:400;color:var(--muted)}.payment-history .summary-line{font-size:11px}.payment-history .summary-line small{font-size:10px}.payment-history .right{text-align:right;flex-shrink:0}.section-label h2{font-size:15px}
@media(max-width:360px){.debt-main-number{font-size:28px}.debt-progress-note{font-size:9px}.compact-debt-info>strong{font-size:12px}.compact-debt-info>small{font-size:9px}}

/* Home channel breakdown and subordinate transaction details. */
.pending-overview .home-pending{margin-bottom:8px}.pending-channels{margin-bottom:17px}.pending-channel{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid var(--line)}.pending-channel:last-child{border-bottom:0}.pending-channel>div{display:flex;align-items:baseline;gap:10px}.pending-channel strong{font-size:13px;font-weight:550}.pending-channel>strong{font-size:17px}.pending-channel small{font-size:11px;color:var(--muted)}.setting-finance{padding:0 17px}.setting-navigation{display:flex;justify-content:space-between;align-items:center;gap:14px;width:100%;padding:17px 0;text-align:left;font-size:14px;font-weight:550}.setting-navigation svg{width:16px;height:16px;color:var(--muted)}.daily-category{padding:18px 0;border-bottom:1px solid var(--line)}.daily-category:first-child{padding-top:0}.daily-category-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-size:15px}.daily-category-head>span{color:var(--muted);font-size:13px}.daily-category-values{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:11px;color:var(--muted);font-size:11px}.daily-category-values strong{display:block;color:var(--ink);font-size:17px;font-weight:550;margin-top:3px}.day-more{margin-top:24px;text-align:right}.day-more>summary{font-size:11px;color:var(--muted);cursor:pointer;list-style:none}.day-more>summary::-webkit-details-marker{display:none}.day-more .link{font-size:11px;margin-top:12px}.adjustment-record{padding:14px 0;border-bottom:1px solid var(--line)}.adjustment-record small{display:block;color:var(--muted);font-size:11px}.adjustment-actions{display:flex;gap:8px;margin-top:9px}.payout-quote{background:#f7f7fa;border-radius:12px;padding:14px}.quote-line{display:flex;justify-content:space-between;gap:12px;align-items:baseline;font-size:12px}.quote-line+.quote-line{margin-top:9px}.quote-line>strong{font-size:18px;font-weight:600}.quote-secondary{font-size:11px;color:var(--muted)}.quote-total{display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding-top:10px;margin-top:10px;font-size:12px}.quote-total strong{font-size:18px}

.debt-paid-note{margin-top:13px;padding-top:12px;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}.debt-paid-note .num{color:var(--ink)}

/* Uniform date controls and minimal record-oriented settings. */
.form label{min-width:0}.form input[type=date]{-webkit-appearance:none;appearance:none;display:block;box-sizing:border-box;width:100%;min-width:0;max-width:100%;height:46px;min-height:46px;padding:11px 12px;border:1px solid var(--line);border-radius:10px;background:#f9f9fb;color:var(--ink);font:400 16px/22px -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;text-align:left}.form input[type=date]::-webkit-date-and-time-value{text-align:left;min-height:22px}.form input[type=date]::-webkit-datetime-edit{padding:0;line-height:22px}.form input[type=date]::-webkit-calendar-picker-indicator{margin:0}.payment-choices{border:0;padding:0;margin:0;min-width:0}.payment-choices legend{font-size:13px;font-weight:550;margin-bottom:8px}.form .payment-choice{display:flex;align-items:center;gap:11px;padding:10px 0;border-bottom:1px solid var(--line);font-weight:400;cursor:pointer}.payment-choice input{flex-shrink:0}.payment-choice span{min-width:0}.payment-choice strong{font-size:12px;font-weight:550;display:block}.payment-choice small{display:block;font-size:10px;color:var(--muted);margin-top:3px}.payment-preview{border:1px solid var(--line);border-radius:12px;padding:13px;background:#f8f8fa}.payment-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px}.payment-preview-heading>span{font-size:10px;color:var(--muted)}.payment-split{padding:12px 0;border-bottom:1px solid var(--line)}.payment-split>strong{font-size:11px;font-weight:550}.split-numbers{display:grid;grid-template-columns:1fr 1fr 1fr;gap:7px;margin-top:7px}.split-numbers span{font-size:10px;color:var(--muted)}.split-numbers strong{display:block;font-size:13px;color:var(--ink);font-weight:550;margin-top:2px}.payment-split-total{display:flex;justify-content:space-between;gap:10px;font-size:10px;color:var(--muted);margin-top:11px}.payment-split-total strong{display:block;font-size:14px;color:var(--ink);margin-top:3px}.payment-preview>.hint{margin-top:11px;font-size:10px}.payment-history-group{padding:13px 0;border-bottom:1px solid var(--line)}.payment-history-group:last-child{border-bottom:0}.payment-history-top{display:flex;justify-content:space-between;gap:10px;font-size:12px}.payment-history-item{margin-top:10px;font-size:11px}.payment-history-item small{display:block;color:var(--muted);font-size:10px;margin-top:2px}.payment-history-group>.link{display:block;font-size:10px;margin:10px 0 0 auto}.simple-settings{padding:0 17px}.simple-settings>.setting-navigation{border-bottom:1px solid var(--line)}.simple-settings>.setting-navigation:last-child{border-bottom:0}.export-hint{margin-top:12px}.data-recovery{margin-top:25px}.data-recovery>summary{font-size:11px;color:var(--muted);cursor:pointer}.data-recovery .action-row{margin:12px 0}.data-recovery .btn{font-size:11px}.withdrawal-total{padding:15px;border-radius:12px;background:#f5f5f8;margin-bottom:16px}.withdrawal-total small{font-size:11px;color:var(--muted);display:block}.withdrawal-total>strong{display:block;font-size:28px;font-weight:650;letter-spacing:-.03em;margin-top:5px}.withdrawal-total>span{display:block;font-size:10px;color:var(--muted);margin-top:5px}.correction-day{display:flex;align-items:center;justify-content:space-between;width:100%;padding:15px 0;border-bottom:1px solid var(--line);font-size:13px;text-align:left}.correction-day svg{width:16px;height:16px;color:var(--muted)}

.settings-withdrawal{display:block;width:100%;text-align:left;margin-bottom:16px;padding:21px}.settings-withdrawal-label{display:flex;justify-content:space-between;align-items:center;gap:14px;color:var(--muted);font-size:12px}.settings-withdrawal-label svg{width:18px;height:18px}.settings-withdrawal>strong{display:block;font-size:35px;line-height:1.3;font-weight:650;letter-spacing:-.035em;margin-top:12px;color:var(--ink)}

.income-sources{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:14px;background:#f5f5f8;border-radius:12px}.income-sources>span{font-size:11px;color:var(--muted)}.income-sources strong{display:block;font-size:20px;color:var(--ink);font-weight:600;margin-top:5px}.income-section-title{font-size:13px;margin:23px 0 4px;font-weight:600}
