@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&display=swap');
:root{--ink:#172d2a;--muted:#758580;--green:#1d6555;--green-dark:#174b41;--green-light:#eaf3ee;--border:#e7ece9;--bg:#f5f7f6;--orange:#bb7a26;--orange-bg:#fff6e9;--red:#bd574e;--blue:#5d80a3;--shadow:0 5px 24px #173c2910;font-family:'Noto Sans SC','Microsoft YaHei',system-ui,sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}*{box-sizing:border-box}body{margin:0;font-size:14px;line-height:1.6}button,input,select,textarea{font:inherit}button,a,input,select{outline-offset:4px}button{cursor:pointer}a{color:var(--green);text-decoration:none}button{border:0;background:none;color:inherit}h1,h2,h3,p{margin:0}h1{font-size:27px;font-weight:600;letter-spacing:-.8px}h2{font-size:16px;font-weight:600}h3{font-size:15px;font-weight:600}small{font-size:12px}.sidebar{position:fixed;inset:0 auto 0 0;width:232px;background:#fff;border-right:1px solid var(--border);padding:27px 19px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;gap:12px;align-items:center;font-size:23px;font-weight:700;color:var(--ink);padding:0 12px;line-height:1.2}.brandmark{display:grid;place-items:center;width:40px;height:42px;background:var(--green-dark);border-radius:11px;color:white;font-size:29px;line-height:1}.brand-sub{display:block;font-size:11px;color:var(--muted);font-weight:400;letter-spacing:1px;margin-top:7px}.company{margin:31px 0 27px;padding:13px 10px;display:flex;align-items:center;gap:10px;border:1px solid var(--border);border-radius:8px;font-size:13px}.company-icon{height:30px;width:30px;background:#f1f4f2;border-radius:6px;display:grid;place-items:center;font-weight:600}.company small,.profile small{display:block;color:var(--muted);font-size:11px}.chevron{margin-left:auto;color:var(--muted)}.nav-label{font-size:11px;color:#99a59e;letter-spacing:1px;padding:0 13px;margin-bottom:11px}.nav-item{display:flex;align-items:center;gap:12px;width:100%;padding:12px 14px;text-align:left;border-radius:7px;color:#61716a;margin:3px 0;font-size:14px}.nav-item.active{background:var(--green-light);color:var(--green);font-weight:600}.nav-item:hover{background:#f1f5f2}.nav-item.active:before{content:'';width:3px;position:absolute;left:0;height:24px;background:var(--green);border-radius:0 3px 3px 0}.nav-item .nav-count{margin-left:auto;background:#e8edef;padding:0 6px;border-radius:4px;font-size:11px}.nav-item.active .nav-count{background:#dceae2}.nav-divider{height:1px;margin:18px 13px;background:var(--border)}svg.icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.sidebar-bottom{margin-top:auto;padding-top:25px}.demo-note{padding:12px 12px;border:1px solid var(--border);border-radius:8px;font-size:12px;color:#61736c}.demo-note small{display:block;padding-left:15px;color:#97a59d;margin-top:3px;font-size:11px}.demo-dot{display:inline-block;width:6px;height:6px;background:#729b86;border-radius:50%;margin-right:9px}.help-btn{display:flex;align-items:center;gap:9px;font-size:12px;color:#7c8983;padding:16px 5px}.profile{border-top:1px solid var(--border);padding:18px 4px 0;display:flex;gap:10px;align-items:center;font-size:13px}.avatar{width:34px;height:34px;background:#ecf0ed;border:1px solid #e1e8e3;border-radius:50%;display:grid;place-items:center;font-size:13px;color:#617569}.avatar.small{width:31px;height:31px}.shell{margin-left:232px}.topbar{height:73px;background:#fff;border-bottom:1px solid var(--border);padding:0 34px;display:flex;align-items:center;justify-content:space-between;gap:16px}.breadcrumb{display:flex;align-items:center;gap:15px;font-size:12px;color:#87968e}.breadcrumb strong{font-weight:500;color:#40584c}.slash{color:#c0cac3}.topbar-right{display:flex;align-items:center;gap:22px}.global-search{display:flex;align-items:center;gap:9px;color:#96a49b}.global-search input{border:0;background:transparent;width:223px;font-size:12px;color:var(--ink)}kbd{border:1px solid var(--border);border-radius:4px;padding:0 6px;color:#9aa69f;font-size:11px}.icon-btn{color:#6f8177;padding:4px;display:inline-flex}.menu-toggle{display:none}main{max-width:1600px;margin:auto;padding:30px 34px 35px}.page-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:25px}.subtitle{color:var(--muted);font-size:13px;margin-top:5px}.head-actions{display:flex;align-items:center;gap:10px}.btn{border:1px solid #dce4df;border-radius:6px;padding:9px 14px;display:inline-flex;gap:7px;align-items:center;justify-content:center;background:#fff;font-size:13px;white-space:nowrap;transition:.15s}.btn:hover{border-color:#7b9d8b;background:#f7faf8}.btn.primary{background:var(--green);border-color:var(--green);color:white}.btn.primary:hover{background:var(--green-dark)}.btn.small{font-size:12px;padding:6px 10px}.btn:disabled{opacity:.5;cursor:not-allowed}.select{border:1px solid #dce4df;border-radius:6px;background:white;padding:9px 12px;color:#52675b;font-size:13px;max-width:100%}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin-bottom:23px}.stat{background:#fff;border:1px solid var(--border);border-radius:9px;padding:20px 21px;min-height:141px}.stat-label{display:flex;align-items:center;justify-content:space-between;color:#687a70;font-size:13px}.stat-symbol{width:31px;height:31px;display:grid;place-items:center;border-radius:8px;background:#f1f5f2;color:#729b83}.stat-value{font-size:29px;line-height:1.6;font-weight:600;letter-spacing:-.8px;margin-top:6px;font-variant-numeric:tabular-nums}.stat-value .currency{font-size:20px;font-weight:400;margin-right:3px;color:#668477}.stat-note{font-size:11px;color:#8a9b90;display:flex;align-items:center;gap:6px}.stat-note .accent{color:var(--green)}.columns{display:grid;grid-template-columns:minmax(0,1fr) 313px;gap:21px;margin-bottom:23px}.panel{border:1px solid var(--border);background:white;border-radius:9px;overflow:hidden}.panel-head{padding:19px 21px;display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-head p{font-size:11px;color:var(--muted);margin-top:3px}.text-btn{color:#668879;font-size:12px;padding:3px 0;white-space:nowrap}.text-btn:hover{color:var(--green);text-decoration:underline}.pill{display:inline-flex;align-items:center;border-radius:4px;padding:3px 8px;font-size:11px;line-height:1.5;font-weight:400;white-space:nowrap;background:#f0f3f1;color:#728479}.pill.green{background:#ebf4ef;color:#438268}.pill.orange{background:var(--orange-bg);color:var(--orange)}.pill.blue{background:#edf3f9;color:#6585a2}.pill.red{background:#fff0ec;color:var(--red)}.flow-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:0;padding:10px 20px 22px}.flow-item{position:relative;padding:3px 11px}.flow-item:not(:last-child):after{content:'›';position:absolute;right:-5px;top:31px;color:#b4c4b9;font-size:26px}.stage-icon{width:37px;height:37px;border-radius:10px;display:grid;place-items:center;margin-bottom:10px;background:#edf4f0;color:#5f8f77}.flow-item:nth-child(2) .stage-icon{background:#eef3f9;color:#738dab}.flow-item:nth-child(3) .stage-icon{background:#f6f1e7;color:#b49b65}.flow-item:nth-child(4) .stage-icon{background:#f0eef8;color:#9885b0}.stage-name{font-size:12px;color:#7d8e82}.stage-qty{margin-top:3px;font-size:20px;font-weight:600;letter-spacing:-.5px}.stage-qty small{font-size:11px;font-weight:400;color:#89998e;margin-left:4px}.stage-value{font-size:11px;color:#7c8f81;margin-top:3px}.ownership{background:#f8faf9;padding:13px 21px;border-top:1px solid var(--border);display:flex;justify-content:space-between;gap:12px;font-size:11px;color:#809589}.ownership strong{color:#58786a;font-weight:500}.todo-list{padding:0 19px 16px}.todo{display:flex;gap:11px;padding:13px 0;border-top:1px solid #eff2f0;align-items:center;width:100%;text-align:left}.todo-icon{width:31px;height:31px;border-radius:7px;background:var(--orange-bg);color:var(--orange);display:grid;place-items:center;flex-shrink:0}.todo-icon.blue{background:#edf3f9;color:#5d80a3}.todo-icon.green{background:var(--green-light);color:var(--green)}.todo-title{font-size:12px;font-weight:500}.todo-desc{font-size:11px;color:#92a094;margin-top:2px}.todo-arrow{margin-left:auto;color:#95a297}.tablescroll{overflow-x:auto}table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:12px}th{font-weight:400;color:#84948a;text-align:left;background:#f8faf9;padding:12px 18px;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}td{padding:16px 18px;border-bottom:1px solid #edf1ee;color:#51685a}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fcfdfc}.table-link{color:var(--green);font-weight:500}.muted{color:var(--muted)}.number{font-variant-numeric:tabular-nums}.strong{font-weight:600;color:var(--ink)}.cell-sub{font-size:10px;color:#8d9f91;margin-top:2px}.progress-wrap{display:flex;align-items:center;gap:10px;font-size:11px}.progress-track{height:5px;border-radius:4px;background:#eaf0eb;width:70px;overflow:hidden}.progress-fill{height:100%;background:#6b9a81;border-radius:4px}.table-footer{padding:12px 20px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--border);font-size:11px;color:#96a398}.recent-panel{margin-bottom:23px}.below-grid{display:grid;grid-template-columns:1.13fr 1fr;gap:21px}.cost-bars{padding:0 22px 22px}.cost-row{display:grid;grid-template-columns:68px 1fr 94px;gap:14px;align-items:center;margin-top:14px;font-size:12px;color:#6f8777}.bar-track{height:9px;border-radius:3px;background:#f0f4f1;overflow:hidden}.bar-fill{height:100%;background:#6b9a81;border-radius:3px}.cost-row:nth-child(2) .bar-fill{background:#92ad9b}.cost-row:nth-child(3) .bar-fill{background:#b2c5b8}.cost-row:nth-child(4) .bar-fill{background:#d0dfd5}.value-right{text-align:right;color:#506e5b;font-variant-numeric:tabular-nums}.quick-routes{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:0 20px 20px}.route-card{border:1px solid var(--border);border-radius:6px;padding:12px;text-align:left;background:#fff;display:flex;align-items:center;gap:10px;color:#668571;font-size:12px}.route-card:hover{border-color:#9fb5a8;background:#f8fbf9}.route-card small{display:block;color:#96a398;font-size:10px;margin-top:2px}footer{display:flex;justify-content:space-between;gap:14px;margin:0 34px;padding:17px 0 22px;border-top:1px solid var(--border);font-size:10px;color:#a0ada4}.toolbar{padding:16px 20px;border-bottom:1px solid var(--border);display:flex;gap:12px;align-items:center;flex-wrap:wrap}.tabs{display:flex;gap:22px;border-bottom:1px solid var(--border);padding:0 20px;background:#fff}.tab{padding:16px 0;color:#7f9284;font-size:13px;border-bottom:2px solid transparent}.tab.active{border-color:var(--green);color:var(--green);font-weight:600}.filter-search{border:1px solid #dce4df;border-radius:6px;padding:8px 12px;min-width:230px;background:white;font-size:13px}.toolbar .select{padding:8px 12px}.toolbar .result-count{margin-left:auto;color:var(--muted);font-size:12px}.empty{text-align:center;color:var(--muted);padding:60px 20px}.banner{padding:12px 17px;border:1px solid #dce9e1;border-radius:7px;background:#eef5f0;color:#61806b;font-size:12px;margin-bottom:21px;display:flex;align-items:center;gap:10px}.summary-strip{display:flex;gap:28px;padding:17px 20px;background:#f8faf9;border-top:1px solid var(--border);flex-wrap:wrap;color:#7c9182;font-size:12px}.summary-strip strong{color:var(--ink);margin-left:6px;font-weight:500}.overlay{position:fixed;inset:0;background:#102c2640;z-index:50;display:flex;justify-content:flex-end;backdrop-filter:blur(2px)}.drawer{width:610px;max-width:100%;height:100%;background:#fff;overflow-y:auto;box-shadow:-10px 0 50px #0c28121a;animation:slide .18s ease}.drawer-head{display:flex;align-items:flex-start;justify-content:space-between;padding:28px;border-bottom:1px solid var(--border);position:sticky;top:0;background:#fff;z-index:1}.drawer-head h2{font-size:20px}.drawer-head p{font-size:12px;color:var(--muted);margin-top:4px}.close-btn{width:31px;height:31px;border-radius:5px;color:#6e8275;background:#f4f7f5;font-size:22px;display:grid;place-items:center}.drawer-body{padding:25px 28px}.drawer-section{margin-bottom:29px}.drawer-section h3{margin-bottom:16px}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:19px}.detail-grid dt{color:var(--muted);font-size:12px}.detail-grid dd{margin:4px 0 0;font-size:14px}.timeline{padding-left:20px}.timeline-item{position:relative;border-left:1px solid #dce8df;padding:0 0 24px 24px;font-size:13px}.timeline-item:before{content:'';position:absolute;left:-5px;top:6px;width:9px;height:9px;background:#93b79f;border-radius:50%;box-shadow:0 0 0 4px white}.timeline-item.future:before{background:#dce5df}.timeline-item.future{color:#9eada2}.timeline-item small{display:block;color:#8e9d93;margin-top:3px;font-size:11px}.timeline-item:last-child{border:0}.cost-breakdown{border:1px solid var(--border);border-radius:7px;overflow:hidden}.cost-line{display:flex;align-items:center;justify-content:space-between;padding:11px 14px;font-size:13px;border-bottom:1px solid var(--border)}.cost-line:last-child{border:0;background:#f2f7f4;font-weight:600;color:var(--green)}.modal-overlay{align-items:center;justify-content:center}.modal{width:580px;max-width:calc(100% - 30px);background:white;border-radius:12px;overflow:hidden;max-height:90vh;overflow-y:auto;box-shadow:0 18px 90px #122d2430}.modal .drawer-head{padding:22px 26px}.modal-body{padding:24px 26px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-field{display:flex;flex-direction:column;gap:7px;font-size:13px;color:#5f7968}.form-field.full{grid-column:1/-1}.form-field input,.form-field select,.form-field textarea{width:100%;padding:10px 11px;border:1px solid #dce4df;border-radius:6px;background:white;font-size:14px;color:var(--ink)}.form-field textarea{resize:vertical;min-height:75px}.modal-footer{margin-top:24px;display:flex;justify-content:flex-end;gap:10px}.form-info{font-size:12px;color:#7c9384;margin-top:17px;background:#f5f8f6;border-radius:6px;padding:12px}.error{color:var(--red);font-size:12px;margin-top:12px;min-height:0}.receipt-preview{margin-top:18px}.receipt-preview .cost-line{font-size:12px}.journey{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.journey-card{background:#fff;border:1px solid var(--border);border-radius:9px;padding:22px}.journey-card h2{margin:13px 0 7px}.journey-card p{font-size:12px;color:var(--muted);min-height:40px}.journey-steps{margin:22px 0;border-left:1px solid #dde8e1;padding-left:15px}.journey-step{position:relative;padding-bottom:16px;font-size:13px;color:#627e6c}.journey-step:last-child{padding-bottom:0}.journey-step:before{content:'';position:absolute;left:-19px;top:7px;width:7px;height:7px;border-radius:50%;background:#85a993}.journey-step small{color:#92a497;font-size:10px;display:block}.journey-foot{border-top:1px solid var(--border);padding-top:15px;display:flex;justify-content:space-between;gap:10px}.ledger-total{text-align:right;font-size:13px;padding:18px;color:var(--green);background:#f5f9f6}.invoice-meta{display:flex;justify-content:space-between;margin-bottom:20px;font-size:12px;color:var(--muted)}#toast{position:fixed;bottom:25px;left:calc(50% + 116px);transform:translate(-50%,15px);background:var(--green-dark);color:#fff;border-radius:8px;padding:12px 22px;opacity:0;pointer-events:none;transition:.2s;z-index:100;font-size:13px;box-shadow:0 5px 25px #103d3030;max-width:90vw}#toast.show{opacity:1;transform:translate(-50%,0)}.settings-list{display:grid;gap:14px}.setting-row{padding:18px;border:1px solid var(--border);border-radius:7px;font-size:13px}.setting-row p{font-size:12px;color:var(--muted);margin-top:6px}.print-only{display:none}@keyframes slide{from{transform:translateX(20px);opacity:.5}to{transform:translateX(0);opacity:1}}
@media(min-width:1550px){.columns{grid-template-columns:minmax(0,1fr) 355px}.stat-value{font-size:32px}table{font-size:13px}.flow-item{padding-left:18px}.stage-qty{font-size:24px}}
@media(max-width:1200px){.sidebar{width:204px;padding:24px 13px}.shell{margin-left:204px}main{padding:24px}.topbar{padding:0 24px}.columns{grid-template-columns:minmax(0,1fr) 280px;gap:16px}.stats-grid{gap:12px}.stat{padding:17px 16px}.stat-value{font-size:25px}.stage-qty{font-size:18px}.flow-item{padding:3px 7px}.global-search input{width:185px}.journey{grid-template-columns:repeat(2,1fr)}footer{margin:0 24px}.head-actions{gap:8px}}
@media(max-width:1000px){.columns{grid-template-columns:1fr}.todo-list{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.todo{border-top:0;padding:5px 0}.todo-arrow{display:none}.stats-grid{grid-template-columns:repeat(2,1fr)}.below-grid{grid-template-columns:1fr 1fr}.global-search input{width:155px}.topbar-right{gap:13px}.page-head{align-items:flex-start}.head-actions{flex-wrap:wrap;justify-content:flex-end}.subtitle{max-width:340px}.journey{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.sidebar{transform:translateX(-100%);transition:.2s;width:232px;box-shadow:15px 0 70px #153b2420}.sidebar.open{transform:none}.shell{margin-left:0}.menu-toggle{display:block;color:var(--green);font-size:18px;padding:0}.topbar{height:62px;padding:0 17px}.breadcrumb{gap:10px}.topbar-right{gap:12px}.global-search{display:none}main{padding:22px 16px}.page-head{display:block;margin-bottom:20px}h1{font-size:25px}.subtitle{max-width:none;font-size:12px}.head-actions{justify-content:flex-start;margin-top:17px}.stat{padding:16px 15px;min-height:132px}.stat-value{font-size:24px}.stats-grid{gap:10px;margin-bottom:17px}.columns{gap:17px;margin-bottom:17px}.panel-head{padding:17px}.flow-grid{padding:5px 9px 18px}.stage-qty{font-size:17px}.stage-qty small{margin-left:1px}.stage-value{font-size:10px}.stage-name{font-size:11px}.ownership{padding:12px 17px;font-size:10px;flex-wrap:wrap}.todo-list{grid-template-columns:1fr;padding:0 17px 12px;gap:0}.todo{border-top:1px solid var(--border);padding:12px 0}.todo-arrow{display:block}.below-grid{grid-template-columns:1fr}.recent-panel{margin-bottom:17px}footer{margin:0 16px;font-size:10px;flex-wrap:wrap}th,td{padding:13px 15px}.tabs{gap:19px;overflow:auto;padding:0 17px}.tab{white-space:nowrap}.toolbar{padding:13px 17px}.filter-search{min-width:0;flex:1;width:100%}.toolbar .result-count{width:100%}.journey{grid-template-columns:1fr}.drawer-head,.drawer-body{padding:22px}.form-grid{grid-template-columns:1fr}.form-field.full{grid-column:auto}.modal-body{padding:20px}.summary-strip{gap:13px}#toast{left:50%;width:max-content;max-width:90vw}.stat-label{font-size:12px}.stat-symbol{width:25px;height:25px}.stat-note{font-size:10px}.cost-row{grid-template-columns:65px 1fr 88px;gap:9px}}
.workflow-actions{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:22px}
[hidden]{display:none!important}
/* Keep everyday operational text readable in a dense working surface. */
table{font-size:14px}.btn,.select,.tab,.filter-search,.form-field{font-size:14px}.stat-label,.stage-name,.todo-title,.route-card{font-size:14px}.subtitle{font-size:14px}.pill{font-size:12px}.drawer-body,.modal-body{font-size:16px}.timeline-item,.setting-row{font-size:14px}
@media(max-width:760px){table{font-size:14px}.stage-name{font-size:12px}.todo-title,.route-card{font-size:14px}.subtitle{font-size:13px}.stat-label{font-size:13px}.btn,.select{font-size:13px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
@media print{.sidebar,.topbar,footer,.head-actions,.btn,.text-btn,.toolbar,#toast{display:none!important}.shell{margin:0}main{padding:0}.overlay{position:static;background:white;display:block}.drawer,.modal{width:100%;max-height:none;height:auto;box-shadow:none}.drawer-head{position:static}.overlay~*{display:none}body:has(.overlay) .shell{display:none}.close-btn{display:none}.print-only{display:block}.panel{break-inside:avoid}.tablescroll{overflow:visible}}
/* Connection gate protects the ledger until authenticated data has loaded. */
.database-gate{position:fixed;inset:0;z-index:200;background:#f3f6f4;display:flex;align-items:center;justify-content:center;padding:24px}.database-gate[hidden]{display:none}.database-card{background:#fff;border:1px solid #dce5df;border-radius:18px;padding:36px;max-width:440px;width:100%;box-shadow:0 14px 60px #143f2810}.database-card h2{margin:20px 0 12px}.database-card p{font-size:15px;line-height:1.8;color:#61756c}.database-card .btn{margin-top:12px;text-decoration:none;display:inline-flex}.error:not(:empty){line-height:1.6}
