:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#243644;background:#f3f6f7;font-size:14px;--green:#147d72;--line:#e4eaed;--muted:#81909b}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select{outline-offset:3px}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button{border:1px solid #dbe3e7;background:white;color:#3f5361;border-radius:7px;padding:9px 14px;transition:background .15s}button:hover{background:#f0f6f5}button.primary{background:var(--green);border-color:var(--green);color:white}button.primary:hover{background:#106a61}button.ghost{background:transparent;border-color:transparent}button.small{font-size:12px;padding:5px 9px}button.danger{color:#b7584f}input,select,textarea{border:1px solid #dce4e8;border-radius:6px;padding:10px;background:#fff;color:#314553;min-width:0}input:focus,select:focus,textarea:focus{outline:2px solid #b7ddd6;border-color:#75b7aa}input[type=checkbox]{accent-color:var(--green)}.shell{display:grid;grid-template-columns:225px 1fr;min-height:100vh}.sidebar{background:#102b32;color:#a3b9bd;padding:28px 17px;position:fixed;width:225px;height:100vh;display:flex;flex-direction:column}.brand{display:flex;gap:10px;align-items:center;color:#fff;padding:0 12px 28px}.brand-mark{background:#55b6a4;width:34px;height:34px;display:grid;place-items:center;border-radius:10px;color:#102b32;font-weight:900;font-size:22px}.brand strong{font-size:19px;letter-spacing:2px}.brand small{display:block;font-size:9px;letter-spacing:2px;color:#91afb4;margin-top:4px}.nav-section{font-size:10px;letter-spacing:1.6px;color:#77949c;padding:19px 15px 9px}.nav-item{display:flex;align-items:center;gap:12px;text-align:left;border:0;background:transparent;color:#adc0c5;width:100%;margin:3px 0;padding:11px 15px;border-radius:7px}.nav-item:hover{background:#193941}.nav-item.active{background:#23504f;color:#e0f7ef}.nav-item .icon{font-size:17px;width:22px;text-align:center}.sidebar-bottom{margin-top:auto;border-top:1px solid #29444a;padding:18px 10px 0;font-size:11px;line-height:1.9}.status-dot{display:inline-block;width:6px;height:6px;background:#66c9ac;border-radius:50%;margin-right:6px}.main{grid-column:2;min-width:0}.topbar{background:white;border-bottom:1px solid var(--line);height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 34px;gap:15px}.crumb{color:#8a989f;font-size:12px}.crumb strong{color:#314553;font-weight:500;margin-left:8px}.user-area{display:flex;align-items:center;gap:13px;font-size:12px}.avatar{width:31px;height:31px;background:#e6f1ee;border-radius:50%;display:grid;place-items:center;color:#287467}.content{padding:30px 34px 45px;max-width:1650px;margin:auto}.page-title{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px}.eyebrow{color:var(--green);font-size:10px;letter-spacing:1.8px;font-weight:700;margin-bottom:9px}h1{font-size:26px;font-weight:650;letter-spacing:.5px;margin:0 0 10px}h2{font-size:16px;margin:0;font-weight:600}p.subtitle{color:#80909b;font-size:12px;margin:0;line-height:1.8}.badge{font-size:11px;padding:5px 9px;border-radius:5px;background:#edf6f2;color:#348674;white-space:nowrap}.badge.gray{background:#f1f3f5;color:#87929a}.badge.orange{background:#fff4e8;color:#af803b}.actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.notice{border:1px solid #e5dfcb;background:#fcfaf3;color:#95824d;padding:10px 14px;border-radius:7px;font-size:12px;margin-bottom:22px}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:23px}.card,.panel{background:white;border:1px solid var(--line);border-radius:10px}.card{padding:21px}.metric-label{font-size:12px;color:#80909b;display:flex;justify-content:space-between}.metric-value{font-size:29px;color:#263d47;font-weight:650;font-variant-numeric:tabular-nums;margin:17px 0 10px;letter-spacing:-.5px}.metric-foot{font-size:11px;color:#92a0a8}.metric-foot em{font-style:normal;color:#35917e}.panel-head{padding:20px 23px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #eef1f3;gap:15px}.panel-head p{font-size:11px;color:#91a0a9;margin:7px 0 0}.panel-body{padding:22px}.overview-grid{display:grid;grid-template-columns:1.65fr 1fr;gap:22px;margin-bottom:24px}.bar-chart{height:207px;display:flex;gap:18px;align-items:flex-end;padding:22px 12px 0;border-bottom:1px solid var(--line);background:repeating-linear-gradient(to top,transparent 0,transparent 44px,#f1f5f6 45px)}.bar-group{height:100%;flex:1;display:flex;justify-content:center;align-items:flex-end;gap:5px;position:relative;padding-bottom:24px}.bar{width:19px;min-height:2px;background:#2a9787;border-radius:4px 4px 0 0}.bar.expense{background:#bad9d4}.bar-group label{position:absolute;bottom:3px;font-size:10px;color:#83949c}.legend{display:flex;gap:20px;color:#84969f;font-size:11px}.legend i{display:inline-block;width:7px;height:7px;border-radius:2px;background:#2a9787;margin-right:6px}.legend .pale{background:#bad9d4}.account-row{display:flex;justify-content:space-between;align-items:center;padding:15px 0;border-bottom:1px solid #eff3f5;gap:12px}.account-row:last-child{border:0}.account-row strong{font-size:12px;font-weight:500}.account-row small{display:block;font-size:10px;color:#8d9ba5;margin-top:6px}.account-row b{font-size:15px;font-weight:600;font-variant-numeric:tabular-nums}.filters{padding:17px 20px;display:flex;gap:10px;flex-wrap:wrap;border-bottom:1px solid var(--line);align-items:center}.filters input,.filters select{font-size:12px;padding:9px 11px}.search{flex:1;min-width:190px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;white-space:nowrap;font-size:12px}th{text-align:left;background:#f8fafb;color:#8a98a2;font-weight:500;padding:13px 18px;border-bottom:1px solid var(--line)}td{padding:17px 18px;border-bottom:1px solid #edf1f3;color:#536674}tbody tr:hover{background:#f9fcfb}.amount{text-align:right;font-variant-numeric:tabular-nums;font-weight:600;color:#354d59}.income{color:#198b75}.expense-text{color:#b06b50}.muted{color:#95a2ab}.strong{font-weight:550;color:#2b4551}.table-foot{padding:15px 20px;color:#8b9ba5;font-size:11px;display:flex;justify-content:space-between;gap:15px}.empty{text-align:center;padding:60px 24px;color:#8c9da7;line-height:2}.tabs{display:flex;gap:5px;margin-bottom:20px;border-bottom:1px solid var(--line)}.tab{border:0;border-radius:0;background:transparent;padding:12px 18px;color:#80929e}.tab.active{color:var(--green);border-bottom:2px solid var(--green)}.organization{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.org-card{padding:24px}.org-card h2{margin:12px 0}.org-card p{color:#82929d;font-size:12px}.project-chip{border-top:1px solid #edf1f3;padding:14px 0;font-size:12px;display:flex;justify-content:space-between}.login{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:white}.login-art{background:#102f36;color:white;padding:12vh 9vw;display:flex;flex-direction:column;justify-content:center}.login-art h1{font-size:43px;line-height:1.5;letter-spacing:1px;margin:35px 0 20px}.login-art p{color:#9fbdc3;line-height:2.2;font-size:14px}.login-art .eyebrow{color:#79ceba}.login-art .lines{height:80px;display:flex;gap:15px;align-items:flex-end;margin-top:30px}.lines span{width:36px;background:#285c61;border-radius:6px 6px 0 0;height:40px}.lines span:nth-child(2){height:58px}.lines span:nth-child(3){height:75px;background:#49a58f}.login-form{max-width:390px;width:100%;margin:auto;padding:32px}.login-form h2{font-size:25px;margin-bottom:12px}.login-form p{color:#92a0a8;font-size:12px;margin-bottom:32px}.field{display:flex;flex-direction:column;gap:8px;margin-bottom:17px;font-size:12px;color:#5d7380}.field input,.field select{width:100%}.field small{font-size:10px;color:#97a3ab}.login-form button{width:100%;margin-top:10px}.error{color:#b3574d;font-size:12px;line-height:1.7}.login-note{margin-top:30px;color:#9ba7ae;font-size:11px;line-height:1.8}dialog{border:0;border-radius:13px;padding:0;max-width:760px;width:calc(100% - 35px);box-shadow:0 25px 90px #102f3633;max-height:90vh}dialog::backdrop{background:#17323c66;backdrop-filter:blur(2px)}.modal-head{padding:23px 26px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.modal-body{padding:24px 26px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.modal-foot{padding:16px 26px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:9px;background:#fbfcfc}.full{grid-column:1/-1}.helper{color:#83949e;font-size:12px;line-height:1.9;margin:0 0 18px}.role-matrix td,.role-matrix th{padding:11px}.role-matrix{margin-bottom:20px}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:#173e42;color:white;padding:13px 22px;border-radius:8px;box-shadow:0 5px 25px #102b3222;z-index:100;display:none;max-width:90vw;font-size:13px}.loading{padding:80px;text-align:center;color:#7d949b}.security-note{font-size:12px;line-height:1.9;color:#8d9ca5}.check-list{display:flex;flex-wrap:wrap;gap:15px;margin:12px 0 20px}.check-list label{font-size:12px;display:flex;align-items:center;gap:7px}.file-input{display:block;margin:18px 0}.error-panel{background:#fff5f2;color:#ad6555;padding:14px;border-radius:6px;font-size:12px;white-space:pre-wrap}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.detail-grid label{display:block;color:#8c9da6;font-size:11px;margin-bottom:6px}.detail-grid p{margin:0;font-size:13px;overflow-wrap:anywhere}.wide-cell{max-width:240px;overflow:hidden;text-overflow:ellipsis}.pager{display:flex;align-items:center;gap:8px}.scope-note{padding:12px 20px;background:#f7faf9;color:#7c928a;font-size:11px}
@media(max-width:1150px){.sidebar{width:190px}.shell{grid-template-columns:190px 1fr}.content{padding:24px}.topbar{padding:0 24px}.cards{gap:12px}.card{padding:17px}.metric-value{font-size:24px}.overview-grid{grid-template-columns:1fr}.organization{grid-template-columns:1fr 1fr}}@media(max-width:750px){.sidebar{position:relative;width:100%;height:auto;padding:15px}.brand{padding-bottom:12px}.sidebar nav{display:flex;overflow:auto}.nav-section,.sidebar-bottom{display:none}.nav-item{white-space:nowrap;width:auto}.shell{display:block}.main{width:100%}.cards{grid-template-columns:1fr 1fr}.content{padding:20px 14px}.topbar{height:60px;padding:0 15px}.page-title{align-items:flex-start;flex-direction:column}.organization{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.login{display:block}.login-art{display:none}.login-form{padding-top:15vh}.user-area>span{display:none}h1{font-size:23px}.metric-value{font-size:22px}.filters input{max-width:100%}}

/* Original company artwork, displayed without changing the source asset. */
.company-logo{width:64px;height:64px;object-fit:contain;flex-shrink:0;background:#fff;border-radius:8px}
.sidebar .brand{padding-left:0;padding-right:0;gap:9px}.sidebar .brand strong{font-size:18px;letter-spacing:1px}.sidebar .brand small{font-size:8px;letter-spacing:1px}
.login-art .company-logo{width:100px;height:100px}.login-art .brand{padding-left:0}.login-art .brand strong{font-size:26px}
.record-actions{display:flex;flex-wrap:wrap;gap:4px;margin-top:10px}.project-chip{display:block}.project-chip>div:first-child{display:flex;justify-content:space-between;gap:8px}.project-chip small{font-size:10px}.org-card .record-actions button{padding:5px 7px}.history-heading{display:flex;justify-content:space-between;align-items:center;margin-top:25px;border-top:1px solid var(--line);padding-top:20px}.history-entry{padding:15px 0;border-bottom:1px solid var(--line)}.audit-json{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;max-height:50vh;overflow:auto}.scope-picker{min-width:180px;max-height:120px;overflow:auto}.scope-picker label{display:flex;align-items:center;gap:5px;margin:7px 0;white-space:normal}.role-matrix th,.role-matrix td{padding:9px}.role-matrix input[type=checkbox]{width:15px;height:15px}.role-matrix select{min-width:95px}dialog:has(.role-matrix){max-width:1250px}
.company-actions{margin-top:18px;padding-top:12px;border-top:1px solid var(--line)}.company-actions>span{font-size:10px}.company-actions .record-actions{margin-top:5px}
.reference-header{padding:13px 15px;background:#fff8ee;border:1px solid #efdfc7;border-radius:7px;color:#946c36;margin:15px 0 10px;font-size:12px}.reference-header p{margin:7px 0 0;line-height:1.8}.reference-table{max-height:300px;border:1px solid var(--line);border-radius:7px;margin-bottom:12px}.reference-table th,.reference-table td{padding:11px 9px}.reference-table small{display:block;color:#8999a3;margin-top:5px}.reference-table .wide-cell{max-width:210px}

.platform-badge{display:inline-flex;align-items:center;gap:9px;vertical-align:middle}.platform-badge img{width:32px;height:32px;object-fit:contain;border-radius:7px;background:#fff}.platform-relations{border-top:1px solid #dce5e8;padding-top:18px;margin-top:20px}.platform-relations h2{font-size:16px;margin-top:20px}
.field[hidden]{display:none}
.company-group{margin-bottom:24px}.company-group-head{padding:20px 24px;background:#e6f3f0;border-radius:10px;margin-bottom:14px}.company-group-head h2{font-size:17px;margin:8px 0}.company-group-head p{color:#627c85;font-size:13px}.company-fold{border:1px solid var(--line);border-radius:9px;background:white;margin:12px 0}.company-fold summary{padding:18px 20px;cursor:pointer}.company-fold summary .muted{margin-left:16px;font-size:12px}.company-fold-body{padding:0 20px 18px}.company-fold-body>.record-actions{margin-bottom:12px}.receipt-list{margin:20px 0}.receipt-list a{color:var(--green)}@media(max-width:650px){.company-fold summary .muted{display:block;margin:6px 0 0}.company-fold-body{padding:0 12px 14px}}
.ocr-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;background:#f5f8f8;padding:12px}
.project-partners{display:flex;flex-direction:column;gap:10px}.partner-choice{display:flex;gap:8px;align-items:center;font-size:13px}.partner-choice input{width:auto}.project-partners small{line-height:1.6;color:var(--muted)}
.receipt-preview{display:block;max-width:100%;max-height:180px;object-fit:contain;object-position:left;border-radius:6px;margin:8px 0}.receipt-preview[hidden]{display:none}
.partner-row{display:flex;align-items:center;gap:12px;justify-content:space-between}.partner-row .partner-choice{flex:1}.partner-ratio{display:flex;align-items:center;gap:5px}.partner-ratio[hidden]{display:none}.partner-ratio input{width:85px}.ratio-total{font-weight:600}
.nav-item .icon{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;flex:0 0 22px}.nav-item .icon svg{display:block;width:20px;height:20px;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round}
.region-picker{display:flex;flex-direction:column;gap:10px}.region-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-height:220px;overflow-y:auto;padding:12px;border:1px solid var(--line);border-radius:7px}.region-options label{display:flex;align-items:center;gap:7px;font-size:13px}.region-options input{width:auto}.region-options small,.region-selected{color:var(--muted);font-size:12px}.region-selected{overflow-wrap:anywhere}@media(max-width:650px){.region-options{grid-template-columns:repeat(2,minmax(0,1fr))}}

.ledger-summary-group{margin-bottom:20px}.ledger-summary-caption,.ledger-transfer-note,.ledger-summary-empty{font-size:12px;color:#748994;margin:10px 0}.ledger-summary-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.ledger-summary-cards .card:last-child{background:#eaf6f3}.ledger-summary-cards .metric-value{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.ledger-summary-empty{padding:18px;background:#fff;border:1px solid var(--line);border-radius:8px}@media(max-width:750px){.ledger-summary-cards{grid-template-columns:1fr;gap:10px}}

.account-totals{display:flex;align-items:center;justify-content:flex-end;gap:10px 18px;flex-wrap:wrap;margin-left:auto;color:#3d6268}.account-totals strong{font-size:15px;font-variant-numeric:tabular-nums}.account-totals small{color:#83949e;font-size:11px}.table-foot{flex-wrap:wrap;gap:16px}@media(max-width:750px){.account-totals{width:100%;margin-left:0;justify-content:flex-start}}
