:root{--ink:#263e35;--green:#315c4d;--muted:#8b958e;--line:#e7e9e2;--bg:#f7f8f3;--white:#fff;--orange:#b98455}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}button,a,input,select,textarea{outline-offset:4px}button{transition:background .18s,transform .18s}button:hover{filter:brightness(.95)}button:active{transform:translateY(1px)}.sidebar{width:222px;position:fixed;inset:0 auto 0 0;background:#fff;border-right:1px solid var(--line);padding:38px 25px;display:flex;flex-direction:column}.brand{display:flex;gap:11px;align-items:center;color:var(--ink);text-decoration:none;font-size:21px;letter-spacing:1px;font-weight:650}.brand-icon{font-size:34px;background:#eaf0e9;width:43px;height:43px;display:grid;place-items:center;border-radius:12px}.brand small{display:block;font-size:7px;letter-spacing:1.5px;color:#8d9a91;margin-top:6px}.nav-label{font-size:11px;color:#a0a79f;margin:59px 14px 16px;letter-spacing:2px}.nav{border:0;width:100%;padding:15px 14px;border-radius:9px;display:flex;gap:13px;text-align:left;color:var(--green);background:#eaf0e9;font-weight:600}.nav span:last-child{margin-left:auto;color:#8fa495}.side-bottom{margin-top:auto;padding:25px 12px;color:#708677}.small-house{font-size:38px}.side-bottom p{line-height:1.9;font-size:17px}.side-bottom small{font-size:10px;color:#9aa89e}main{margin-left:222px;padding:0 42px;max-width:1800px}header{height:85px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;font-size:12px}.breadcrumb{color:#617268}.breadcrumb span{margin:0 14px;color:#b4bcb4}.local-badge{display:flex;gap:7px;align-items:center;color:#829183;font-size:11px}.local-badge i{height:6px;width:6px;border-radius:50%;background:#789b7c}.page-heading{padding:39px 0 31px;display:flex;align-items:center;justify-content:space-between}.eyebrow{font-size:9px;letter-spacing:2px;color:#97a18e}h1{font-size:28px;letter-spacing:1px;font-weight:600;margin:13px 0}p{line-height:1.7}.page-heading p{color:#8b948a;margin:0;font-size:12px}.primary,.outline{border:0;padding:12px 21px;border-radius:7px;font-weight:500}.primary{background:var(--green);color:white;box-shadow:0 3px 6px #315c4d12}.outline{border:1px solid #dce3d9;background:white;color:var(--green)}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:30px}.stat{background:#fff;border:1px solid var(--line);border-radius:12px;padding:23px 25px;min-height:175px}.stat>div:first-child{color:#738173;font-size:12px;display:flex;justify-content:space-between;align-items:center}.stat>div:first-child span{background:#f1f4ee;border-radius:6px;width:28px;height:28px;display:grid;place-items:center;font-size:17px}.stat h2{font-size:31px;font-weight:550;letter-spacing:-.9px;font-variant-numeric:tabular-nums;margin:14px 0}.stat p{font-size:10px;color:#a0a69b;margin:0}.stat.dark{background:#2e5346;color:#fff;border-color:#2e5346}.stat.dark>div:first-child{color:#cfdbcc}.stat.dark>div:first-child span{background:#ffffff10}.stat.dark p{color:#b9cdbd}.progress{height:4px;background:#ffffff20;margin-bottom:8px;border-radius:3px;overflow:hidden}.progress i{display:block;height:100%;background:#b9d4a6;transition:width .4s}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:24px;align-items:start}.panel{background:#fff;border:1px solid var(--line);border-radius:12px}.panel-title{display:flex;justify-content:space-between;align-items:center;padding:25px 23px 20px}.panel h2{font-size:16px;font-weight:600;margin:0}.panel h2 span{font-size:10px;color:#7c8a7b;background:#f0f3eb;padding:3px 7px;border-radius:4px;margin-left:8px;font-weight:400}.panel-title p{font-size:10px;color:#9bA393;margin:8px 0 0}.text-btn{border:0;background:transparent;color:#77866f;font-size:11px;padding:6px;white-space:nowrap}.filters{display:flex;gap:9px;padding:0 23px 21px}.search{display:flex;align-items:center;gap:7px;min-width:100px;flex:1;background:#f8f9f5;border:1px solid var(--line);border-radius:6px;padding:0 10px;color:#8a9787}.search span{font-size:22px}.search input{width:100%;border:0;background:transparent;padding:10px 0;font-size:11px}.filters select{max-width:110px;font-size:11px;background:#fff;border:1px solid var(--line);border-radius:6px;padding:8px;color:#71816e}table{width:100%;border-collapse:collapse;text-align:left}th{padding:13px 17px;background:#fafbf7;font-weight:400;color:#929b8d;font-size:10px;white-space:nowrap}td{padding:18px 17px;font-size:12px;border-bottom:1px solid #f0f1eb}td small{display:block;font-size:10px;color:#9ca597;margin-bottom:6px}td .record-title{font-weight:550;color:#3b4c3e;max-width:230px;overflow-wrap:anywhere}td .record-note{display:block;color:#9bA393;font-size:10px;margin-top:5px;max-width:210px;overflow-wrap:anywhere}.tag{display:inline-block;border-radius:5px;padding:5px 8px;background:color-mix(in srgb,var(--tag) 12%,white);color:var(--tag);font-size:10px;white-space:nowrap}.money{font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:500}.due{color:#ba8b59;font-size:10px;margin-top:7px}.settled{color:#8b9f82}.actions{display:flex;gap:5px}.actions button{border:0;background:transparent;font-size:10px;color:#74896f;padding:4px}.actions .delete{color:#b39f92}.table-footer{padding:17px 23px;display:flex;justify-content:space-between;font-size:10px;color:#a0a798}.empty{padding:60px 16px 69px;text-align:center}.empty-icon{background:#f1f4eb;border-radius:16px;width:52px;height:52px;margin:0 auto 20px;display:grid;place-items:center;color:#8fA183;font-size:25px}.empty h3{font-size:15px;font-weight:500}.empty p{color:#9ba492;font-size:11px;margin:12px 0 24px}.empty .outline{font-size:11px}.corner{color:#9ca992;font-size:22px}.category-panel .panel-title{padding-bottom:7px}.donut{width:155px;height:155px;border-radius:50%;margin:22px auto 28px;background:#edf0e7;display:grid;place-items:center;position:relative}.donut>div{background:white;border-radius:50%;width:119px;height:119px;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative}.donut small{color:#9ba691;font-size:10px;margin-bottom:7px}.donut strong{font-size:20px;font-weight:550}.category-row{padding:0 23px 17px;display:grid;grid-template-columns:9px 1fr auto;gap:8px;align-items:center;font-size:11px}.dot{height:6px;width:6px;border-radius:50%}.category-values{text-align:right;font-variant-numeric:tabular-nums}.category-values small{color:#a3aa9b;font-size:9px;margin-left:8px}.note-card{background:#edf1e5;border:1px solid #e4e9db;border-radius:10px;margin-top:20px;padding:23px;color:#72876b}.note-card>span{font-size:24px}.note-card h3{font-size:13px;font-weight:500;margin:13px 0 9px}.note-card p{font-size:11px;line-height:1.9;margin:0;color:#8e9b83}footer{display:flex;align-items:center;justify-content:space-between;margin-top:27px;color:#a2aa98;font-size:10px}.storage-note{font-size:10px;color:#a2aa98;margin:5px 0 24px}dialog{border:1px solid var(--line);border-radius:16px;padding:30px;width:530px;max-width:calc(100vw - 28px);box-shadow:0 25px 100px #183b2930;color:var(--ink)}dialog::backdrop{background:#19342b55;backdrop-filter:blur(3px)}.modal-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.modal-heading small{font-size:8px;letter-spacing:2px;color:#9ca98f}.modal-heading h2{font-size:21px;font-weight:550;margin:10px 0 0}.icon-btn{background:#f5f7f0;border:0;border-radius:50%;height:30px;width:30px;font-size:22px;color:#89967f}form label{display:block;font-size:12px;color:#6c7e62;margin-bottom:18px}form input,form select,form textarea{display:block;width:100%;border:1px solid #e0e6d8;border-radius:6px;padding:11px 12px;margin-top:9px;color:#334f2e;background:#fcfdf9;font-size:13px}form textarea{resize:vertical}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.optional{color:#a0aa97;font-size:10px;margin-left:7px}.remainder{padding:13px 15px;margin-bottom:22px;background:#f0f4e9;border-radius:6px;color:#879279;font-size:12px;display:flex;align-items:center;gap:12px}.remainder strong{color:#426139}.remainder button{margin-left:auto}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}#form-error{font-size:12px;color:#ad5b42;margin:0}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:#294d3e;color:white;border-radius:8px;padding:13px 24px;opacity:0;transition:opacity .2s;pointer-events:none;font-size:13px;z-index:10}#toast.show{opacity:1}#confirm-dialog{max-width:400px}#confirm-dialog h2{font-size:20px}#confirm-dialog p{font-size:13px;color:#83917a}.table-wrap{overflow-x:auto}@media(min-width:1500px){main{padding:0 65px}.workspace{grid-template-columns:minmax(0,1fr) 330px}.stat{min-height:190px}td{padding:20px}}@media(max-width:1150px){.sidebar{width:180px;padding:30px 18px}.brand{font-size:18px;gap:8px}.brand-icon{width:35px;height:39px}.brand small{font-size:6px}main{margin-left:180px;padding:0 24px}.workspace{grid-template-columns:minmax(0,1fr) 250px;gap:16px}.filters{flex-wrap:wrap}.search{flex-basis:100%}.stats{gap:12px}.stat{padding:20px}.stat h2{font-size:26px}th,td{padding:13px 11px}.panel-title{padding:20px 16px}.filters{padding:0 16px 16px}.page-heading h1{font-size:25px}}@media(max-width:900px){.sidebar{width:78px;align-items:center;padding:27px 12px}.brand>span:last-child,.nav-label,.nav span,.side-bottom{display:none}.nav{margin-top:45px;justify-content:center;font-size:20px;padding:14px}.brand-icon{width:42px;height:42px}main{margin-left:78px}.workspace{grid-template-columns:1fr}.right-column{display:grid;grid-template-columns:1.2fr 1fr;gap:16px}.note-card{margin-top:0}.donut{width:130px;height:130px;margin:15px auto}.donut>div{width:98px;height:98px}.category-panel #categories{display:grid;grid-template-columns:1fr 1fr}.category-row{padding:0 16px 15px;font-size:10px;gap:6px}.category-values small{display:none}}@media(max-width:600px){.sidebar{position:static;width:100%;height:auto;display:block;border-right:0;border-bottom:1px solid var(--line);padding:18px 20px;background:var(--bg)}.brand>span:last-child{display:block;font-size:18px}.brand small{font-size:6px}.brand-icon{width:33px;height:33px;font-size:28px}.nav{display:none}main{margin-left:0;padding:0 18px}header{height:48px}.breadcrumb{font-size:10px}.local-badge{font-size:9px}.page-heading{padding:27px 0 22px;align-items:flex-start}.eyebrow{font-size:7px;letter-spacing:1.3px}h1,.page-heading h1{font-size:20px;letter-spacing:0;margin:10px 0}.page-heading p{font-size:10px}.page-heading>.primary{font-size:11px;white-space:nowrap;padding:10px 12px;margin:21px 0 0 8px}.stats{gap:8px;margin-bottom:20px}.stat{padding:13px 10px;min-height:131px;border-radius:9px}.stat>div:first-child{font-size:10px}.stat>div:first-child span{display:none}.stat h2{font-size:19px;letter-spacing:-.6px;margin:17px 0 12px}.stat p{font-size:8px;line-height:1.5}.progress{margin:0 0 6px}.right-column{grid-template-columns:1fr}.note-card{display:none}.category-panel{display:grid;grid-template-columns:1fr 1fr}.category-panel .panel-title{grid-column:1/-1}.category-panel #categories{display:flex;flex-direction:column;justify-content:center;padding-top:12px}.donut{margin:20px auto}.category-row{font-size:11px}th,td{padding:13px 10px}.table-wrap table{min-width:530px}.panel-title p{font-size:9px}.panel-title h2{font-size:15px}.filters{gap:8px}.filters .search{flex-basis:100%}.filters select{max-width:none;flex:1}.empty{padding:42px 14px}.empty p{font-size:10px}.table-footer{padding:15px;font-size:9px}footer{font-size:9px}.storage-note{font-size:9px}dialog{padding:23px}.form-grid{gap:0 12px}.remainder{gap:8px;font-size:11px}.remainder button{font-size:10px}.donut strong{font-size:17px}}
/* Multi-property books and project transaction histories */
[hidden]{display:none!important}.brand{font-size:17px;letter-spacing:0}.brand-icon{flex-shrink:0}.brand small{font-size:7px;letter-spacing:1px}.sidebar{padding-left:20px;padding-right:20px}.side-bottom p{font-size:15px}.breadcrumb{max-width:70%;overflow-wrap:anywhere}.breadcrumb .text-btn{padding-left:0;color:#627967}.breadcrumb span{margin:0}.back-btn{padding:0 0 4px}.heading-actions{display:flex;gap:9px;align-items:center;flex-shrink:0;margin-left:18px}.heading-actions .outline{font-size:12px;padding:12px 15px}.page-heading h1{overflow-wrap:anywhere}.page-heading p{overflow-wrap:anywhere;max-width:650px;white-space:pre-wrap}.books-heading{display:flex;align-items:center;justify-content:space-between;margin:34px 0 19px;gap:20px}.books-heading h2{font-size:18px;font-weight:550}.books-heading h2 span{font-size:11px;color:#94a089;margin-left:8px}.books-heading .search{flex:none;width:260px;background:white}.book-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.book-card{padding:24px 24px 0;overflow:hidden}.book-card-heading{display:flex;align-items:center;justify-content:space-between;color:#97a18d;font-size:10px}.book-symbol{background:#edf2e8;border-radius:9px;display:grid;place-items:center;color:#6b8365;font-size:27px;width:40px;height:40px}.book-card h3{font-size:19px;line-height:1.6;font-weight:550;margin:20px 0 6px;overflow-wrap:anywhere}.book-note{font-size:11px;color:#97a08e;margin:0 0 24px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.book-total{padding-bottom:16px;border-bottom:1px solid var(--line)}.book-total>span{display:block;font-size:10px;color:#97a08e;margin-bottom:10px}.book-total>strong{font-size:26px;font-weight:550;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.book-costs{display:flex;justify-content:space-between;gap:10px;padding:19px 0 23px}.book-costs small{font-size:10px;color:#97a08e;display:block;margin-bottom:8px}.book-costs strong{font-size:14px;font-weight:500;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.book-costs>div:last-child{color:#b08351}.book-open{border:0;border-top:1px solid var(--line);padding:17px 24px;margin:0 -24px;background:#fafbf7;width:calc(100% + 48px);text-align:left;color:#51704a;font-size:12px;display:flex;justify-content:space-between}.book-open:hover{background:#edf2e8}.project-link{padding:0;background:none;border:0;font-size:13px;font-weight:550;color:#3b5c32;text-align:left;overflow-wrap:anywhere}.project-actions{display:flex;align-items:flex-start;flex-direction:column;gap:5px}.project-actions button{border:0;background:none;font-size:10px;padding:4px 0;color:#6b8360;white-space:nowrap}.project-actions button:first-child{font-weight:600}.project-actions button:disabled,button:disabled{opacity:.45;cursor:default}.cost-breakdown{font-size:9px;line-height:1.8;color:#9ba592;margin-top:6px;white-space:nowrap}.payment-count{font-size:9px;color:#a5ac9d;margin-top:6px}.donut strong{font-size:16px;max-width:110px;text-align:center;overflow-wrap:anywhere}.form-error{font-size:12px;color:#ad5b42;margin:0}.help-text{font-size:11px;line-height:1.9;color:#93a086;margin:-5px 0 18px;white-space:pre-wrap}input:disabled{background:#f0f2ec;color:#8c9785}.transaction-context{font-size:12px;line-height:1.9;color:#728568;background:#f4f7ef;border-radius:7px;padding:13px 15px;margin-bottom:23px}.invalid{color:#b65e48!important}#fill-remaining{display:block;margin:-10px 0 18px auto}.detail-dialog{width:730px;max-height:90vh}.detail-meta{font-size:11px;color:#8b9981;overflow-wrap:anywhere}.detail-note{font-size:12px;color:#829176;white-space:pre-wrap;overflow-wrap:anywhere;margin:12px 0 22px}.detail-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;background:#f5f7ef;padding:18px;border-radius:10px}.detail-totals small{display:block;font-size:10px;color:#97a18e;margin-bottom:8px}.detail-totals strong{font-size:17px;font-weight:550;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.detail-totals .highlight strong{color:#b08351}.detail-actions{display:flex;gap:10px;flex-wrap:wrap;margin:22px 0 28px}.detail-actions button{font-size:12px}.history-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;border-top:1px solid var(--line);padding-top:22px;margin-bottom:12px}.history-heading h3{font-size:15px;font-weight:550;margin:0}.history-heading span{color:#95a08b;font-size:10px}.history{padding:0 0 0 7px;list-style:none}.history li{display:flex;position:relative;border-left:1px solid #e3e9db;gap:12px;padding:0 0 26px 23px}.history li:last-child{border:0}.history-dot{width:9px;height:9px;border:2px solid white;outline:1px solid #adbaa5;background:#adbaa5;border-radius:50%;position:absolute;left:-5px;top:3px}.history-dot.payments{background:#67836a;outline-color:#67836a}.history-dot.adjustments{background:#b19b73;outline-color:#b19b73}.history-body{flex:1;min-width:0}.history-body>small{font-size:10px;color:#98a38d}.history-body p{font-size:12px;color:#667d5b;margin:7px 0 4px;white-space:pre-wrap;overflow-wrap:anywhere}.history-body .text-btn{padding:3px 0;font-size:10px}.history-amount{font-size:15px;font-weight:500;white-space:nowrap;color:#a68d68}.history-amount.payment-color{color:#56764d}.danger{color:#b38e7c!important}#detail-delete{margin-top:8px}.detail-dialog .modal-heading h2{overflow-wrap:anywhere}.transaction-context{overflow-wrap:anywhere}td small{margin-bottom:7px}#home-view>.empty{margin:15px 0}.storage-note{line-height:1.8}
@media(max-width:1150px){.book-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.brand{font-size:14px;gap:6px}.sidebar{padding-left:12px;padding-right:12px}.stat h2{font-size:24px}.workspace{grid-template-columns:minmax(0,1fr) 230px}.table-wrap table{min-width:510px}.category-values small{margin-left:4px}}
@media(max-width:900px){.workspace{grid-template-columns:1fr}.book-grid{gap:16px}.sidebar{padding-left:12px;padding-right:12px}.page-heading{gap:10px}.page-heading h1{font-size:23px}.heading-actions{margin-left:0}.category-panel #categories{padding-bottom:10px}.stat h2{font-size:23px}}
@media(max-width:600px){.brand>span:last-child{font-size:17px}.page-heading{flex-wrap:wrap;padding-bottom:20px}.page-heading>div:first-child{width:100%}.page-heading>.primary{margin:5px 0 0;padding:11px 15px}.page-heading h1{font-size:21px}.heading-actions{width:100%;margin-top:9px;justify-content:flex-end}.heading-actions .primary{font-size:12px;padding:11px 16px}.heading-actions .outline{padding:11px 13px}.stats{gap:7px}.stat{padding:14px 9px;min-height:125px}.stat h2{font-size:18px;margin:17px 0 12px}.stat p{font-size:8px}.books-heading{flex-wrap:wrap;gap:8px;margin-top:24px}.books-heading h2{margin:0 0 5px}.books-heading .search{width:100%;padding:0 12px}.book-grid{grid-template-columns:1fr;gap:16px}.book-card{padding:21px 21px 0}.book-card h3{margin-top:14px}.book-note{margin-bottom:18px}.book-costs strong{font-size:16px}.book-total>strong{font-size:28px}.book-open{margin-left:-21px;margin-right:-21px;width:calc(100% + 42px);padding:17px 21px}.book-card-heading{font-size:11px}.book-costs{padding:17px 0}.book-total{padding-bottom:15px}.book-costs small{font-size:11px}.donut strong{font-size:15px;max-width:90px}.detail-totals{grid-template-columns:repeat(2,minmax(0,1fr));padding:15px;gap:18px 10px}.detail-totals strong{font-size:16px}.detail-actions{gap:8px;margin:18px 0}.detail-actions .text-btn{width:100%;text-align:left}.history-amount{font-size:13px}.history li{padding-left:18px;gap:10px}.history-heading span{font-size:9px}.history-body p{font-size:11px}.help-text{font-size:10px}.transaction-context{font-size:11px}.detail-dialog .modal-heading h2{font-size:20px}.breadcrumb{font-size:10px}.breadcrumb .text-btn{font-size:10px}.local-badge{white-space:nowrap}footer{flex-wrap:wrap;gap:8px}.brand small{font-size:6px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
/* Match the existing Ruisheng contract and rent application. */
:root{--ink:#28332f;--green:#295642;--muted:#68736e;--line:#e3e5e4;--bg:#f4f4f4}
body{padding:16px;font-size:14px}.sidebar{position:static;inset:auto;width:100%;max-width:1480px;margin:0 auto;padding:16px 24px;min-height:100px;flex-direction:row;align-items:center;gap:56px;border:1px solid var(--line);border-radius:16px 16px 0 0;background:#fff}.brand{font-size:17px;gap:14px}.brand-logo{width:66px;height:66px;object-fit:contain}.brand>span:last-child{display:block}.brand small{font-size:13px;color:#68736e;letter-spacing:0;margin-top:5px}.sidebar .nav-label,.sidebar .side-bottom{display:none}.sidebar .nav{display:flex;width:auto;margin:0;padding:12px 18px;border:1px solid #98b0a3;background:#e8f1ec;border-radius:8px;font-size:14px}.sidebar .nav span{display:inline}.sidebar .nav span:last-child{display:none}main{margin:0 auto;max-width:1480px;padding:0 24px;border:1px solid var(--line);border-top:0;border-radius:0 0 16px 16px;min-height:calc(100vh - 132px)}header{height:48px}.eyebrow{display:none}.page-heading{padding:24px 0}.page-heading h1{font-size:24px;font-weight:650;letter-spacing:0;margin:0 0 8px}.page-heading p,.panel-title p{color:#68736e;font-size:13px}.books-heading{gap:14px;flex-wrap:wrap}.books-heading h2{margin-right:auto}.books-heading .search{flex:0 1 280px}.books-heading select{padding:10px 12px;background:#fff;border:1px solid var(--line);border-radius:8px;color:var(--ink)}.search{background:#fff}.search input,.filters select{font-size:13px}.panel,.stat{border-radius:12px;box-shadow:0 1px 2px #00000005}.stat{min-height:155px}.stat.dark{background:#fff;color:var(--ink);border-color:var(--line)}.stat.dark>div:first-child,.stat>div:first-child{color:#68736e;font-size:13px}.stat.dark p,.stat p{color:#68736e;font-size:12px}.stat.dark>div:first-child span{background:#e8f1ec;color:var(--green)}.progress{background:#e4ebe7}.progress i{background:var(--green)}.text-btn{font-size:13px;color:var(--green)}th{font-size:12px;background:#f7f8f7;color:#68736e}td{font-size:13px}td small,td .record-note,.cost-breakdown,.payment-count,.table-footer{font-size:12px;color:#68736e}.tag,.due{font-size:12px}.note-card{background:#e8f1ec;color:var(--green)}.note-card p{color:#68736e}.brand-icon{display:none}form input,form select,form textarea{background:#fff;color:var(--ink);border-color:#dce1de}form label,.help-text{color:#68736e}.book-card-heading,.book-note{color:#68736e}.storage-note,footer{color:#68736e;font-size:12px}.heading-actions{flex-wrap:wrap}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #295642;outline-offset:3px}
@media(max-width:900px){.sidebar{gap:24px}.workspace{grid-template-columns:1fr}main{margin:0 auto;padding:0 20px}.sidebar .nav{font-size:14px}.brand-logo{width:58px;height:58px}}
@media(max-width:600px){body{padding:8px}.sidebar{padding:12px;gap:16px;min-height:80px}.brand-logo{width:48px;height:48px}.brand{gap:8px}.brand>span:last-child{font-size:16px}.brand small{font-size:12px}.sidebar .nav{padding:9px;font-size:12px}main{padding:0 12px}.page-heading{flex-wrap:wrap;gap:12px}.page-heading h1{font-size:22px}.heading-actions{margin:0}.page-heading>.primary{margin:0}.books-heading .search{flex:1 1 100%}.stats{grid-template-columns:1fr}.stat{min-height:auto;padding:16px}.stat h2{margin:8px 0;font-size:26px}.stat p{font-size:12px}.brand small{letter-spacing:0}footer{flex-wrap:wrap;gap:8px}.category-panel #categories{padding-top:12px}.local-badge{font-size:10px}}
/* Compact shell and touch-first ledger. */
body{padding:12px;background:#f3f5f4}.sidebar{min-height:68px;padding:8px 22px;gap:30px;border-radius:14px 14px 0 0}.brand-logo{width:46px;height:46px}.brand{gap:10px}.brand small{font-size:12px;margin-top:3px}.sidebar .nav{padding:9px 14px}.sidebar .local-badge{margin-left:auto;font-size:12px}.sidebar .local-badge i{background:#648d77}main{padding:0 22px;min-height:calc(100vh - 92px)}main>header{display:none}.page-heading{padding:20px 0 18px;gap:16px}.page-heading h1{font-size:23px;margin:5px 0 6px}.page-heading p{font-size:12px}.back-btn{font-size:12px;min-height:32px}.books-heading{margin:4px 0 16px}.books-heading h2{font-size:15px}.stats{gap:12px;margin-bottom:20px}.stat{padding:17px 20px;min-height:130px}.stat h2{font-size:29px;margin:10px 0}.stat.dark{background:#e8f1ec;border-color:#d7e5dc}.stat.dark h2{color:#24523e}.stat>div:first-child span{width:23px;height:23px;font-size:14px}.panel-title{padding:18px 18px 16px}.filters{padding:0 18px 16px}.workspace{gap:18px}.book-card{padding:18px 20px 0}.book-card h3{margin:12px 0 5px}.book-note{margin-bottom:16px}.book-open{margin:0 -20px;width:calc(100% + 40px);padding:14px 20px}.book-symbol{height:32px;width:32px;font-size:23px}.project-link{font-size:14px;line-height:1.5}.project-actions button{font-size:12px;min-height:32px}.note-card{display:none}.heading-actions button{min-height:42px}dialog{max-height:calc(100dvh - 32px);overflow-y:auto}.icon-btn{width:40px;height:40px;flex-shrink:0}.search input{min-height:42px}.help-text{font-size:12px}.form-grid{min-width:0}.form-grid>label{min-width:0}.history-body .text-btn{min-height:40px;font-size:12px}.history-body p{font-size:13px}.empty{padding:36px 16px}.empty p{font-size:13px}.book-note{font-size:12px}.book-costs small,.book-total>span{font-size:12px}
@media(max-width:700px){
 body{padding:0;background:#f3f5f4}.sidebar{position:sticky;top:0;z-index:3;display:flex;min-height:60px;padding:7px 16px;gap:12px;border-radius:0;border-width:0 0 1px;box-shadow:0 2px 8px #203b2b04}.brand-logo{width:42px;height:42px}.brand>span:last-child{font-size:16px}.brand small{font-size:11px}.sidebar .nav{display:none}.sidebar .local-badge{font-size:10px;white-space:nowrap}main{padding:0 14px;border:0;border-radius:0;min-height:calc(100dvh - 60px);padding-bottom:calc(84px + env(safe-area-inset-bottom))}.page-heading{padding:15px 0 14px;gap:10px}.page-heading h1{font-size:22px;line-height:1.4}.page-heading p{font-size:12px;line-height:1.6}.page-heading>div:first-child{width:100%}.back-btn{font-size:12px;padding:0;min-height:28px}.heading-actions{width:100%;margin:0;justify-content:flex-start;gap:8px}.heading-actions .outline{font-size:12px;min-height:40px;padding:8px 12px;background:#fff}.heading-actions #add,#new-book{position:fixed;bottom:calc(16px + env(safe-area-inset-bottom));right:16px;z-index:4;min-height:48px;padding:13px 22px;margin:0;border-radius:14px;font-size:15px;box-shadow:0 5px 20px #214e4133}#home-view .page-heading{padding-bottom:18px}.books-heading{gap:10px;margin:0 0 12px}.books-heading h2{margin:0;font-size:15px}.books-heading select{font-size:13px;min-height:42px}.books-heading .search{flex:1 1 100%;width:100%;margin:0}.book-grid{gap:12px}.book-card{padding:16px 18px 0}.book-card h3{font-size:18px;margin:10px 0 4px}.book-note{margin-bottom:12px}.book-total>strong{font-size:26px}.book-total{padding-bottom:12px}.book-costs{padding:14px 0}.book-open{min-height:48px;padding:13px 18px;margin:0 -18px;width:calc(100% + 36px);font-size:14px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:16px}.stat{min-height:0;padding:14px;border-radius:12px;min-width:0}.stat.dark{grid-column:1/-1;grid-row:1;padding:16px 18px}.stat h2{font-size:22px;letter-spacing:-.4px;margin:8px 0;overflow-wrap:anywhere}.stat.dark h2{font-size:32px}.stat>div:first-child{font-size:12px}.stat>div:first-child span{display:none}.stat p{font-size:11px;line-height:1.5}.progress{margin:10px 0 7px;height:4px}.workspace{display:flex;flex-direction:column;gap:16px}.ledger,.right-column{width:100%;min-width:0}.right-column{display:block}.panel-title{padding:16px 14px 12px}.panel-title h2{font-size:16px}.panel-title p{font-size:12px;margin-top:5px}.filters{padding:0 14px 14px;gap:8px}.filters .search{flex:1 1 100%;margin:0}.filters select{max-width:none;flex:1;min-height:42px;font-size:13px}.search input{font-size:16px;padding:10px 0}.table-wrap{overflow:visible;padding:0 12px}.table-wrap table{display:block;min-width:0;width:100%}.table-wrap thead{display:none}#records{display:block}#records tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px 10px;padding:16px 0;border-top:1px solid var(--line)}#records td{display:block;padding:0;border:0;min-width:0}#records td:first-child{grid-column:1/-1;padding-right:88px;position:relative}#records td:nth-child(2){grid-column:2;grid-row:1;justify-self:end;align-self:start;max-width:88px}#records td:nth-child(3){grid-column:1;grid-row:2}#records td:nth-child(4){grid-column:2;grid-row:2}#records td:last-child{grid-column:1/-1}#records td[data-label]::before{content:attr(data-label);display:block;font-size:11px;color:#758179;margin-bottom:5px}#records .project-link{font-size:15px;line-height:1.6}#records td small{font-size:11px;margin-bottom:5px}#records .record-note{font-size:12px;max-width:none}#records .money{font-size:18px;white-space:normal;overflow-wrap:anywhere}#records .tag{font-size:11px;padding:5px 7px}#records .due{font-size:13px;margin-top:6px;font-weight:500}#records .cost-breakdown,#records .payment-count{font-size:11px;white-space:normal}#records .project-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}#records .project-actions button{min-height:42px;border:1px solid #e1e7e3;border-radius:8px;padding:8px 2px;font-size:12px;background:#fff;text-align:center;color:var(--green)}#records .project-actions button:first-child{background:#e8f1ec;border-color:#dae7df}.table-footer{font-size:11px;padding:12px;gap:8px;flex-wrap:wrap}.category-panel{display:grid;grid-template-columns:125px minmax(0,1fr)}.category-panel .panel-title{grid-column:1/-1}.category-panel #categories{display:block;padding:8px 0 12px}.category-row{font-size:12px;padding:0 12px 10px;gap:6px}.category-values{overflow-wrap:anywhere}.category-values small{display:none}.donut{width:108px;height:108px;margin:16px auto}.donut>div{width:82px;height:82px}.donut strong{font-size:12px;max-width:76px}.donut small{font-size:10px}.storage-note{font-size:11px;line-height:1.7}footer{font-size:11px;margin-top:20px;gap:4px}footer .text-btn{min-height:44px;font-size:12px}dialog{width:calc(100vw - 20px);max-width:520px;margin:auto;padding:20px 16px;max-height:calc(100dvh - 24px);border-radius:16px}.modal-heading{margin-bottom:18px}.modal-heading h2{font-size:20px;margin-top:0}.modal-heading small{display:none}form label{font-size:13px;margin-bottom:15px}form input,form select,form textarea{font-size:16px;min-height:46px;padding:10px;margin-top:7px;max-width:100%;min-width:0}.form-grid{gap:0 10px}.help-text{font-size:12px;line-height:1.7}.modal-actions{position:sticky;bottom:-20px;background:#fff;padding:12px 0;margin-top:8px;gap:10px}.modal-actions button{min-height:46px;flex:1;font-size:14px}.detail-dialog{max-height:calc(100dvh - 24px)}.detail-actions button{min-height:44px}.detail-meta{font-size:12px}.detail-totals strong{font-size:16px}.history-amount{font-size:14px;max-width:44%;white-space:normal;overflow-wrap:anywhere}.history-heading span{font-size:11px}.transaction-context{font-size:13px;line-height:1.7}#toast{max-width:calc(100vw - 28px);width:max-content;bottom:calc(82px + env(safe-area-inset-bottom));font-size:13px;padding:12px 16px}
}
@media(max-width:700px){#records td:first-child{grid-row:1}#records td:last-child{grid-row:3}}
.category-options{margin:0 0 18px;border:1px solid var(--line);border-radius:8px;padding:10px 12px;color:var(--muted);font-size:12px}.category-options summary{cursor:pointer;min-height:24px;line-height:24px}.category-options label{margin:12px 0 0}.stat.dark{order:-1}.stat.dark h2{font-weight:650}
.access-page{display:grid;place-items:start center;min-height:100dvh;padding:60px 16px}.access-card{width:min(100%,400px);background:#fff;border:1px solid var(--line);border-radius:14px;padding:24px;margin:24px auto}.access-card h1{font-size:22px}.access-card p{font-size:13px;color:#65766b}.access-card form>.primary{width:100%;min-height:46px}.access-card #error,.access-card #guest-error{color:#a44536}.guest-brand{max-width:1050px;margin:0 auto;padding:12px 16px;background:#fff;border-bottom:1px solid var(--line)}.guest-page main{max-width:1050px;border:0}.readonly-badge{color:#38634a;background:#e8f1ec;border-radius:6px;padding:7px 12px;white-space:nowrap}.guest-project{padding:18px;border-top:1px solid var(--line)}.guest-project summary{cursor:pointer;line-height:1.8;min-height:44px;overflow-wrap:anywhere}.guest-project-meta{display:block;font-size:13px;color:#61746b}.guest-project p{font-size:13px;overflow-wrap:anywhere;white-space:pre-wrap}.guest-project h3{font-size:14px}.guest-entry{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding:8px 0}.guest-entry span{min-width:0}.guest-entry strong{flex-shrink:0}#share-editor input{width:100%;padding:12px;margin:8px 0 16px;font-size:16px;border:1px solid var(--line);border-radius:8px}#share-result .help-text{margin-top:12px}#share-status{font-weight:600}.heading-actions{flex-wrap:wrap}@media(max-width:700px){.access-page{padding-top:24px}.guest-page main{padding-bottom:30px}.guest-page .stats .stat.dark{order:-1}.guest-project{padding:14px}.guest-page .page-heading{display:flex}}
.stat>div:first-child #payable-caption,.stat>div:first-child #remaining-caption{display:inline;width:auto;height:auto;background:none;font-size:inherit;border-radius:0}.cash-summary{padding:16px 18px;margin-bottom:18px}.cash-totals{display:flex;gap:32px;flex-wrap:wrap;margin-bottom:12px}.cash-totals small{display:block;color:var(--muted);margin-bottom:8px}.cash-totals strong{font-size:21px}.cash-summary summary{cursor:pointer;min-height:36px;line-height:36px;color:var(--green)}.receipt-row{display:flex;justify-content:space-between;gap:16px;padding-top:12px;font-size:13px}.receipt-row p{color:var(--muted);white-space:pre-wrap}.receipt-row>strong{white-space:nowrap}.cash-summary:empty{display:none}

/* One compact brand bar, with contextual navigation instead of a lone menu. */
.app-bar{height:auto;min-height:62px;gap:24px;padding:8px 22px;justify-content:flex-start}
.app-bar .brand{flex-shrink:0;gap:9px;font-size:16px;letter-spacing:0}
.app-bar .brand-logo{width:40px;height:40px}
.app-bar .brand small{font-size:11px;margin-top:2px}
.app-bar .breadcrumb{display:flex;align-items:center;min-width:0;flex:1;border-left:1px solid var(--line);padding-left:20px;font-size:13px}
.app-bar .breadcrumb .text-btn{padding:8px 0;min-height:40px;font-size:13px;font-weight:500}
.app-bar .breadcrumb .text-btn:disabled{cursor:default;color:var(--ink);filter:none}
.app-bar .breadcrumb span{margin:0 0 0 10px;color:#69766f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.app-bar .local-badge{flex-shrink:0;margin-left:auto;font-size:11px}
@media(max-width:700px){
 .app-bar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 12px;padding:7px 16px 0;min-height:56px}
 .app-bar .brand-logo{width:36px;height:36px}.app-bar .brand>span:last-child{font-size:15px}
 .app-bar .local-badge{grid-column:2;grid-row:1;font-size:10px}
 .app-bar .breadcrumb{grid-column:1/-1;grid-row:2;padding:2px 0 0;border-left:0;border-top:1px solid #edf0ee;margin-top:6px;width:100%}
 .app-bar .breadcrumb .text-btn{min-height:38px;font-size:12px}.app-bar .breadcrumb span{font-size:12px}
 .page-heading{padding-top:14px}
}

/* Unified property totals: four sections in a single compact strip. */
.financial-summary{display:grid;grid-template-columns:minmax(0,3fr) minmax(210px,1.1fr);background:#fff;border:1px solid var(--line);border-radius:12px;margin-bottom:20px;overflow:hidden;align-items:stretch}
.financial-summary .stats{display:grid;grid-template-columns:1.12fr 1fr .85fr;gap:0;margin:0}
.financial-summary .stat{border:0;border-right:1px solid var(--line);border-radius:0;box-shadow:none;min-height:0;padding:18px 16px;margin:0;min-width:0}
.financial-summary .stat.dark{background:#e8f1ec;order:-1}
.financial-summary .stat h2{font-size:25px;letter-spacing:-.6px;margin:10px 0;overflow-wrap:anywhere}
.financial-summary .stat p{font-size:11px;line-height:1.6}
.financial-summary .stat>div:first-child>span:last-child:not([id]){display:none}
.financial-summary .cash-summary{margin:0;padding:16px;border:0;border-radius:0;box-shadow:none;min-width:0}
.financial-summary .cash-totals{display:grid;gap:8px}
.financial-summary .cash-totals>div{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.financial-summary .cash-totals small{font-size:11px;max-width:105px;line-height:1.5}
.financial-summary .cash-totals strong{font-size:17px;white-space:nowrap}
.financial-summary details{margin-top:12px;font-size:12px}
.financial-summary summary{cursor:pointer;color:var(--green)}
.financial-summary .receipt-row{display:block;padding:8px 0}
.financial-summary .receipt-row p{font-size:11px;overflow-wrap:anywhere}
.financial-summary:has(.cash-summary[hidden]){grid-template-columns:1fr}
@media(max-width:700px){
 .financial-summary{grid-template-columns:1fr;margin-bottom:16px}
 .financial-summary .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 .financial-summary .stat{padding:14px;border-bottom:1px solid var(--line)}
 .financial-summary .stat.dark{grid-column:1/-1;grid-row:1;border-right:0;padding:15px 16px}
 .financial-summary .stat.dark h2{font-size:30px}.financial-summary .stat h2{font-size:23px}
 .financial-summary .stat:nth-child(3){border-right:0}
 .financial-summary .cash-summary{padding:12px 14px}
 .financial-summary .cash-totals{grid-template-columns:1fr 1fr;gap:16px}
 .financial-summary .cash-totals>div{display:block}.financial-summary .cash-totals small{max-width:none;display:block;margin-bottom:4px}
 .financial-summary .cash-totals strong{font-size:20px}.financial-summary details{margin-top:10px}
}
/* Equal-weight totals, including recovered income. */
.financial-summary{grid-template-columns:minmax(0,3fr) minmax(0,1fr)}
.financial-summary .stats{grid-template-columns:repeat(3,minmax(0,1fr))}
.financial-summary .stat,.financial-summary .cash-summary{padding:18px 16px;background:#fff}
.financial-summary .stat.dark,.financial-summary .stat.dark h2{background:#fff;color:var(--ink)}
.financial-summary .cash-totals{display:block}
.financial-summary .cash-totals>div{display:block}
.financial-summary .cash-totals small{display:block;max-width:none;margin:0;font-size:13px;line-height:normal;color:#68736e}
.financial-summary .cash-totals strong{display:block;font-size:25px;font-weight:550;letter-spacing:-.6px;line-height:normal;margin:10px 0;font-variant-numeric:tabular-nums;white-space:normal;overflow-wrap:anywhere}
.financial-summary details{margin-top:0;font-size:11px;line-height:1.6}
@media(max-width:700px){
 .financial-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
 .financial-summary .stats{display:contents}
 .financial-summary .stat,.financial-summary .cash-summary{padding:14px}
 .financial-summary .stat.dark{grid-column:auto;grid-row:auto;border-right:1px solid var(--line);padding:14px}
 .financial-summary .stat:first-child{border-right:0}
 .financial-summary .stat:nth-child(3){border-right:1px solid var(--line);border-bottom:0}
 .financial-summary .stat h2,.financial-summary .stat.dark h2,.financial-summary .cash-totals strong{font-size:22px;margin:8px 0;letter-spacing:-.4px}
 .financial-summary .cash-totals small{font-size:12px}
 .financial-summary details{margin-top:0}
 .financial-summary:has(.cash-summary[hidden]){grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Optional search stays in the document flow with its project list. */
.ledger-toolbar{padding:10px 18px;gap:12px;min-height:60px;flex-wrap:wrap}
.ledger-toolbar h2{white-space:nowrap}
.filter-tools{display:flex;align-items:center;gap:10px;margin-left:auto}
.filter-tools .text-btn{min-height:40px;padding:8px 6px;font-size:12px}
.filter-toggle{border-radius:6px}.filter-toggle:hover{background:#f0f5f2}
#filter-status{font-size:12px;color:#68736e;white-space:nowrap}
#filter-status .text-btn{padding-left:5px;text-decoration:underline;text-underline-offset:3px}
#project-filters[hidden],#filter-status[hidden]{display:none!important}
#project-filters{padding-top:0;padding-bottom:12px;gap:8px}
@media(max-width:700px){
 .ledger-toolbar{padding:6px 12px;min-height:56px;gap:0 8px}
 .ledger-toolbar h2{font-size:15px}.ledger-toolbar h2 span{margin-left:4px}
 .filter-tools{gap:5px}.filter-tools .text-btn{min-height:44px;font-size:12px;padding:8px 3px}
 #filter-status{font-size:11px}
 #project-filters{padding:0 12px 12px}
 #project-filters .search input{min-height:42px}
}
/* Paid remains the primary metric; mobile controls never float over records. */
.financial-summary .stat.dark{background:#e8f1ec}
.financial-summary .stat.dark h2{background:transparent;color:#24523e;font-weight:650}
@media(max-width:700px){
 .app-bar{position:static;padding-top:calc(7px + env(safe-area-inset-top))}
 #book-view{display:flex;flex-direction:column}
 #book-view[hidden]{display:none}
 #book-view>.page-heading{display:contents}
 #book-view>.page-heading>div:first-child{order:0;padding:14px 0 12px}
 #book-view>.financial-summary{order:1;margin-bottom:10px}
 #book-view>.page-heading>.heading-actions{order:2;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:0 0 14px}
 #book-view>.workspace{order:3}
 .heading-actions #add,#new-book{position:static;inset:auto;min-height:44px;padding:8px 6px;border-radius:8px;box-shadow:none;font-size:12px;z-index:auto;white-space:nowrap}
 #book-view .heading-actions .outline{min-height:44px;padding:8px 4px;font-size:12px}
 main{padding-bottom:calc(20px + env(safe-area-inset-bottom))}
 .financial-summary .stat,.financial-summary .cash-summary{padding:12px}
 .financial-summary .stat h2,.financial-summary .stat.dark h2,.financial-summary .cash-totals strong{font-size:clamp(19px,5.4vw,24px);white-space:nowrap}
 #records .project-actions button{min-height:44px}
 #project-filters{flex-wrap:wrap}
 .ledger-toolbar .filter-tools{flex-wrap:wrap;justify-content:flex-end}
 .modal-actions{position:static;padding-bottom:env(safe-area-inset-bottom)}
 dialog{scroll-padding-bottom:20px}
 #toast{bottom:calc(16px + env(safe-area-inset-bottom));pointer-events:none}
}
@media(max-width:700px){.financial-summary .stat.dark{padding:12px}}
@media(max-width:350px){
 .financial-summary .stat h2,.financial-summary .stat.dark h2,.financial-summary .cash-totals strong{font-size:18px}
 .ledger-toolbar{align-items:flex-start}.ledger-toolbar h2{line-height:44px}
}
@media(max-width:350px){#book-view .heading-actions #add{font-size:11px;padding:8px 0;min-width:0}}
@media(max-width:380px){.form-grid{grid-template-columns:minmax(0,1fr)}.form-grid .full{grid-column:auto}}

/* Keep frequent recording prominent; secondary mobile actions expand in flow. */
#book-more{display:none}#book-secondary{display:contents}
@media(max-width:700px){
 #book-view>.page-heading>.heading-actions{grid-template-columns:minmax(0,1fr) 88px;gap:8px}
 #book-view .heading-actions #add{grid-column:1;grid-row:1;font-size:15px;font-weight:600;min-height:48px}
 #book-view .heading-actions #book-more{display:block;grid-column:2;grid-row:1;font-size:13px;min-height:48px;background:transparent}
 #book-secondary{display:none;grid-column:1 / -1;grid-row:2}
 #book-secondary.expanded{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:8px;background:#fff;border:1px solid var(--line);border-radius:10px}
 #book-view #book-secondary .outline{border:0;background:transparent;font-size:13px;min-height:44px}
 .detail-actions{display:flex;flex-wrap:wrap;gap:8px}
 .detail-actions button{min-height:44px}
}
/* Shared view prioritizes paid totals and payment history. */
.guest-page main{margin:0 auto;padding:0 20px 24px}
.guest-project-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}
.guest-project-heading>strong{font-size:16px;min-width:0}
.guest-paid{font-size:18px;font-weight:650;color:#245440;white-space:nowrap}
.guest-paid small{font-size:11px;font-weight:400;display:block;text-align:right;color:#61746b}
.guest-project>summary{list-style:none}.guest-project>summary::-webkit-details-marker{display:none}
.guest-project>summary:after{content:'查看付款明细 ›';font-size:12px;color:var(--green)}
.guest-project[open]>summary:after{content:'收起明细 ‹'}
.guest-project .guest-extra>summary,.guest-project .guest-payment-note>summary{font-size:12px;color:#61746b;min-height:36px;line-height:36px}
.guest-payment-section{background:#f6faf8;border-radius:8px;padding:8px 12px;margin-top:8px}
.guest-payment-section h3{margin:4px 0}.guest-payment-section .guest-entry{font-size:13px;align-items:flex-start}
.guest-payment-section .guest-entry>strong{color:#245440;font-size:16px}
.guest-payment-note p{margin:0}.guest-extra{margin-top:8px}
@media(max-width:700px){
 .guest-page main{padding:0 14px 24px;margin:0}
 .guest-page .page-heading{padding:14px 0 12px;gap:8px;align-items:flex-start}
 .guest-page .page-heading h1{font-size:21px;margin:0 0 4px;letter-spacing:0}
 .guest-page .readonly-badge{font-size:11px;padding:5px 7px}
 .guest-page #guest-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin:0 0 12px;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff}
 .guest-page #guest-totals .stat{min-height:0;padding:12px;border:0;border-radius:0;margin:0}
 .guest-page #guest-totals .stat.dark{grid-column:1 / -1;background:#e8f1ec;color:#245440}
 .guest-page #guest-totals .stat.dark>div,.guest-page #guest-totals .stat.dark p{color:#61746b}
 .guest-page #guest-totals .stat.dark h2{font-size:29px;color:#245440}
 .guest-page #guest-totals h2{font-size:21px;margin:6px 0;white-space:nowrap}
 .guest-page #guest-totals .stat:last-child{border-left:1px solid var(--line)}
 .guest-page .panel-title{padding:8px 14px}.guest-page .panel-title h2{font-size:16px}
 .guest-page #guest-refresh{min-height:44px;padding:8px}
 .guest-project{padding:12px 14px}.guest-project-meta{font-size:12px}
 .guest-page #guest-cash:not([hidden]){padding:12px;margin-bottom:12px}
 .guest-page #guest-exit{min-height:44px}
}
@media(max-width:700px){.guest-page .page-heading{flex-direction:row}.guest-page .page-heading>div{min-width:0}.guest-page .page-heading h1{overflow-wrap:anywhere}}
