/* Shared tokens, restrained surfaces and a clear service accent. */
:root{--brand:#3269ee;--brand2:#477af1;--brand-soft:#edf3ff;--brand-ink:#2d60d9;--line:#e8ecf3;--r:12px;--shell-w:1680px;--shell-p:24px}
body{background:#f5f6fa;background-image:none;color:#243047;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}.topbar{height:68px;border-bottom:1px solid #e8ecf3;box-shadow:none;background:#fff}.brand .logo{background:#3269ee;border-radius:10px}.tag-demo{border-radius:5px;color:#8d6d31;background:#fff5e3}.view{padding-top:22px}.sys{grid-template-columns:218px minmax(0,1fr);border:0;box-shadow:none;border-radius:14px;background:transparent;gap:24px}.sys-nav{background:#18273f;border:0;border-radius:14px;padding:16px;color:#bdc9da;top:90px;height:calc(100vh - 112px);max-height:calc(100vh - 112px);scrollbar-width:thin;scrollbar-color:#41516b transparent}.sys-body{background:transparent!important;padding:4px 0 28px;min-width:0}.nv-head{background:transparent;border-bottom:1px solid #ffffff16;padding:8px 10px 22px!important;border-radius:0!important}.nv-head .hl{font-size:20px}.nv-head .hs{color:#8fa3c1}.nv-grp{color:#7d93b2!important;font-size:11px!important;padding:8px 12px 4px!important;letter-spacing:1px}.sys-nav button{color:#bdc9da;font-size:13px;min-height:42px;padding:10px 12px;border-radius:8px;margin:3px 0}.sys-nav button:hover{background:#ffffff0b;color:#fff}.sys-nav button.on{background:#3269ee;color:#fff;box-shadow:0 5px 12px #08132630}.sys-nav .nb{background:#ffffff14;color:#dce7fa}.sys-nav .nb.hot{background:#f77736;color:#fff}.sys-nav .nv-foot{border-color:#ffffff14;color:#9fadc4;padding:16px 10px}.nv-foot .fl,.nv-foot .fr{color:#9fadc4}.nv-foot .fr b{color:#dbe6f8}.page-head .pt{font-size:24px;font-weight:650;letter-spacing:-.5px}.page-head .pc{color:#8590a3;font-size:12px;max-width:780px}.crumb{color:#8995a8;margin-bottom:14px}.page-head{margin-bottom:24px}.card{border:1px solid #e8ecf3;border-radius:12px;box-shadow:0 3px 10px #17294203}.card-h{padding:18px 22px;border-color:#eef1f6}.card-h .t{font-weight:600;font-size:15px}.card-h .t i{display:none}.card-b{padding:22px}.btn,.act-ok{background:#3269ee;box-shadow:none;border-radius:8px;min-height:40px;padding:10px 18px;font-weight:550}.btn:hover,.act-ok:hover{background:#265bdb}.btn.gray,.ghost-btn,.tbtn{border-radius:8px;box-shadow:none}.link-btn{border-radius:6px}.table th{background:#f7f8fc;color:#8290a5;font-weight:500;padding:14px 16px}.table td{padding:16px;border-bottom:1px solid #eff2f7;line-height:1.6}.badge,.rule-tag,.tag-soft,.tag-dim{border-radius:5px;font-size:11px}.fld input,.fld select,.fld textarea,.f input,.f select{border-radius:8px;background:#fff}.notice{border-radius:8px}.period-bar{background:#fff;border:1px solid #e8ecf3;border-radius:10px;padding:12px 16px;margin-bottom:18px}.kpis{gap:14px;grid-template-columns:repeat(5,minmax(0,1fr));margin-bottom:20px}.kpi,.kpi.k2,.kpi.k3,.kpi.k4,.kpi.k5{background:#fff;border:1px solid #e8ecf3;border-radius:10px;padding:18px 16px;min-width:0}.kpi::before{top:18px;left:auto;right:16px;bottom:auto;width:7px;height:7px;border-radius:50%}.kpi .l{font-size:12px;color:#8491a5;padding-right:9px}.kpi .v{font-family:inherit;font-size:30px;font-weight:650;margin:14px 0 8px}.kpi .f{font-size:11px;line-height:1.5;color:#9aa4b5}.kpi.k4 .v{color:#e47835}.welcome-panel{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px 28px;margin-bottom:20px;border-radius:12px;background:linear-gradient(110deg,#eaf0ff,#f0f4ff 62%,#fff3e8);border:1px solid #e4eafa}.visual-eyebrow{font-size:10px;letter-spacing:2px;color:#6482b7}.welcome-panel h2{font-size:23px;line-height:1.5;margin:8px 0 6px;letter-spacing:-.5px}.welcome-panel p{color:#8795ad;font-size:12px;margin:0}.welcome-date{text-align:right;display:flex;flex-direction:column;gap:10px;flex-shrink:0}.welcome-date b{font-size:16px;letter-spacing:1px;font-weight:500}.welcome-date span{color:#8d98a9;font-size:11px}.quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:22px}.quick-action{display:flex;align-items:center;text-align:left;gap:12px;padding:17px 15px;background:#fff;border:1px solid #e8ecf3;border-radius:10px;min-width:0;color:#273750}.quick-action>span:nth-child(2){min-width:0}.quick-action b{font-size:13px;display:block;font-weight:600}.quick-action small{font-size:10px;display:block;color:#9aa4b5;margin-top:6px;line-height:1.5}.quick-icon{flex:0 0 38px;height:38px;display:flex;align-items:center;justify-content:center;border-radius:10px;color:#3269ee;background:#edf3ff}.quick-icon svg{width:19px;height:19px}.quick-action:nth-child(2) .quick-icon{background:#fff0e6;color:#f77736}.quick-action:nth-child(3) .quick-icon{background:#eaf7f2;color:#20a385}.quick-action:nth-child(4) .quick-icon{background:#f1eeff;color:#917bcd}.quick-arrow{margin-left:auto;color:#b2bed0;font-size:20px}.quick-action:hover{border-color:#b4cafb;box-shadow:0 4px 12px #3269ee08}.visual-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:20px;margin-bottom:20px}.visual-caption{font-size:11px;color:#98a3b5;margin-top:7px;line-height:1.5}.visual-card .card-h{border-bottom:0;padding-bottom:6px}.visual-card .card-b{padding-top:14px;min-width:0}.chart-tools{display:flex;align-items:center;gap:10px;margin-bottom:8px}.chart-tools>span{margin-left:auto;font-size:10px;color:#a4adbd}.chart-toggle{display:flex;align-items:center;gap:6px;font-size:11px;padding:5px 8px;background:#f7f8fb;color:#99a4b5;border-radius:5px;opacity:.45}.chart-toggle.on{opacity:1;color:#687892}.chart-toggle i,.status-legend i{width:7px;height:7px;border-radius:50%;display:inline-block}.trend-svg{width:100%;display:block;min-height:180px}.chart-note{margin-top:4px;font-size:10px;color:#a3adbd;line-height:1.6}.status-wrap{display:flex;align-items:center;justify-content:space-around;gap:20px;min-height:235px}.status-donut{width:148px;height:148px;flex:0 0 148px;border-radius:50%;display:grid;place-items:center;transform:rotate(-90deg)}.status-donut>div{width:120px;height:120px;border-radius:50%;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;transform:rotate(90deg)}.status-donut b{font-size:32px;font-weight:650}.status-donut span{font-size:10px;color:#9ba6b7;margin-top:8px}.status-legend{flex:1;max-width:180px;min-width:0}.status-legend>div{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;color:#8491a5;margin-bottom:15px}.status-legend i{margin-right:7px}.status-legend b{font-size:13px;color:#47576f;font-weight:550;white-space:nowrap}.status-legend small{font-size:10px;color:#a4afbf;font-weight:400}.budget-total{display:flex;flex-direction:column;gap:9px;margin-bottom:25px}.budget-total>span{font-size:12px;color:#8e9aae}.budget-total b{font-size:32px;font-weight:650;color:#24344e}.budget-total small{font-size:11px;color:#a3adbd}.budget-row{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:#8e9aae;line-height:1.6}.budget-row b{color:#566b87;font-weight:500}.budget-link{margin-top:24px;width:100%;display:flex;justify-content:space-between;padding:12px 14px;border-radius:8px;font-size:12px;color:#3269ee;background:#f1f5ff}.pbar{height:8px;background:#f0f3fa;border-radius:8px;margin:14px 0}.pbar i{background:#3269ee}.todo-row{padding:17px 0;border-color:#eff2f7;gap:12px}.todo-row .tk{font-size:13px;line-height:1.5;min-width:0}.todo-row .tk small{color:#99a5b7;font-size:11px;line-height:1.6;margin-top:7px}.todo-row .tv{font-size:12px;white-space:nowrap;color:#e47d3e}.todo-row .tbtn{white-space:nowrap}.visual-empty{min-height:200px;display:grid;place-items:center;font-size:13px;color:#9ba7b9}.bars .bar{background:#a8c1ff;border-radius:5px 5px 0 0}.bars .bar.b2{background:#3269ee}.flow .l{font-size:11px}
@media(max-width:1380px){.sys{grid-template-columns:204px minmax(0,1fr);gap:20px}.status-wrap{gap:15px;flex-direction:column;padding-top:12px}.status-legend{width:100%;max-width:none;display:grid;grid-template-columns:1fr 1fr;gap:0 15px}.welcome-panel h2{font-size:21px}.quick-action{padding:14px 12px;gap:9px}.quick-action small{font-size:10px}.quick-arrow{display:none}.status-donut{width:120px;height:120px;flex-basis:120px}.status-donut>div{width:96px;height:96px}.kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.visual-grid{grid-template-columns:minmax(0,1.45fr) minmax(0,1fr)}}
@media(min-width:900px) and (max-width:1180px){.sys{display:grid;grid-template-columns:194px minmax(0,1fr);gap:18px}.sys-nav{top:90px;height:calc(100vh - 112px);max-height:calc(100vh - 112px);background:#18273f;border-radius:12px;padding:12px}.sys-body{padding:4px 0}.quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.visual-grid{grid-template-columns:1fr}.status-wrap{flex-direction:row;min-height:180px}.status-legend{display:block;max-width:240px}.welcome-date{display:none}.topbar .shell{padding-top:12px;padding-bottom:12px}}
@media(max-width:899px){.sys{display:block}.sys-nav{height:auto;max-height:230px;margin-bottom:20px}.sys-nav .nv-head{display:none}.sys-body{padding:0}.quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.visual-grid{grid-template-columns:1fr}.welcome-date{display:none}.welcome-panel{padding:20px}.welcome-panel h2{font-size:20px}.status-wrap{flex-direction:row}.status-legend{display:block;max-width:220px}.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.todo-row{flex-wrap:wrap}.todo-row .tk{flex:1 1 100%}}
/* Form field height must not stretch radio controls into ellipses. */
.fld .rule-pick input[type="radio"],.rule-pick input[type="radio"]{width:18px;min-width:18px;max-width:18px;height:18px;min-height:18px;max-height:18px;flex:0 0 18px;padding:0;margin:2px 0 0;box-sizing:border-box;border-radius:50%;box-shadow:none}

/* Sidebar snapshot: explicit dark surface, single-line labels and aligned values. */
.sys-nav .nv-foot{margin:22px 0 4px;padding:16px 14px 12px;background:#22334d;border:1px solid #ffffff10;border-radius:12px;box-shadow:none}
.sys-nav .nv-foot .fl{font-size:12px;line-height:1.5;font-weight:600;letter-spacing:.3px;color:#e2eaf6;margin:0 0 12px}
.sys-nav .nv-foot .fr{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:8px 0;font-size:12px;line-height:1.5;color:#bdcce0}
.sys-nav .nv-foot .fr>span{white-space:nowrap}.snapshot-value{display:flex;align-items:baseline;justify-content:flex-end;gap:5px;white-space:nowrap;min-width:28px}
.sys-nav .nv-foot .fr b{font-family:inherit;font-variant-numeric:tabular-nums;font-size:17px;line-height:1.3;font-weight:600;color:#f4f7fc}
.sys-nav .nv-foot .fr small{font-size:10px;color:#879cb9;font-weight:400}.sys-nav .nv-foot .snapshot-warning{margin:9px -6px 0;padding:9px 6px;border-radius:7px;background:#f59a3912;color:#d7c4ac}.sys-nav .nv-foot .snapshot-warning b{color:#ffb364}.sys-nav .nv-foot .snapshot-warning small{color:#bd9872}
.review-panel{padding:24px;margin-top:20px}.review-panel h3{font-size:16px;margin:0 0 14px;color:#34435c}.review-panel p{font-size:13px;line-height:1.8;color:#8895a9}.review-panel .block-heading{font-size:16px;font-weight:600}.review-file{display:inline-block;padding:9px 12px;border:1px solid #e6ecf5;border-radius:7px;font-size:12px;color:#3269ee;margin:4px 8px 4px 0;max-width:100%;overflow-wrap:anywhere}.review-flow{display:flex;align-items:center;flex-wrap:wrap;gap:10px;font-size:12px;color:#a6afbe}.review-flow .done{color:#1d9a80}.review-flow .current{color:#e48b40;background:#fff2e6;border-radius:6px;padding:8px}.review-panel input[type=file]{height:auto;padding:10px;font-size:12px}.review-panel input[type=checkbox]{width:16px;height:16px;margin-right:8px;vertical-align:middle}

/* Review cards own their header and action layout, independent of page headings. */
.review-panel{padding:24px;margin-top:18px;min-width:0}
.review-panel p{margin:10px 0;color:#65758c;line-height:1.75;overflow-wrap:anywhere}
.review-panel>h3{margin-bottom:12px}
.review-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 14px;min-width:0}
.review-header h3{margin:0;line-height:1.5;font-size:16px;overflow-wrap:anywhere;min-width:0}
.review-status{flex-shrink:0;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:6px;background:#edf3ff;color:#3967b4}
.review-status.approved{background:#eaf7f0;color:#258364}.review-status.rejected{background:#fff0f0;color:#bc565e}.review-status.finance_pending{background:#fff4e7;color:#ad742c}
.review-meta{display:flex;flex-wrap:wrap;gap:10px 26px;margin:12px 0 18px;font-size:13px;line-height:1.75;color:#7b889c}
.review-meta b{font-weight:500;color:#34455f;margin-left:6px}
.review-flow{gap:8px;margin:14px 0;font-size:12px}
.review-step{padding:7px 10px;border-radius:6px;background:#f2f5f9;color:#74839b;line-height:1.6;overflow-wrap:anywhere}
.review-step.done{background:#ecf7f2;color:#258364}.review-step.current{background:#fff2e6;color:#ac6c24}
.review-evidence{padding:12px 0 0;border-top:1px solid #edf1f6;font-size:12px;line-height:1.8;color:#7b889c;overflow-wrap:anywhere}
.review-evidence p{margin:6px 0}
.review-actions{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:12px;padding-top:18px;margin-top:16px;border-top:1px solid #edf1f6}
.review-actions .btn,.review-actions .act-no,.review-actions .ghost-btn{width:auto;min-width:112px;min-height:40px;margin:0;padding:9px 18px;line-height:20px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;font-size:14px}
.review-panel>.btn{width:auto;min-width:140px}
.review-panel .form-grid{margin-top:16px;align-items:start}
.review-panel .fld{min-width:0}.review-panel .fld input,.review-panel .fld select{width:100%;box-sizing:border-box}
.review-panel input[type=file]{max-width:100%;box-sizing:border-box}
.review-file{white-space:normal}
@media(max-width:1180px){.review-panel{padding:20px}.review-meta{gap:8px 18px}}
@media(max-width:700px){.review-panel{padding:16px}.review-header{align-items:flex-start}.review-panel .form-grid{grid-template-columns:1fr}.review-actions .btn,.review-actions .act-no{flex:1;min-width:0}.review-meta{gap:6px 14px}}
