*{box-sizing:border-box}html{background:#e8e8e1}body{margin:0;color:#20251f;font:16px/1.5 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}#app{max-width:540px;min-height:100vh;margin:auto;background:#faf8f2;padding-bottom:98px}main,header,footer{padding:20px}header{display:flex;align-items:center;gap:12px;border-bottom:1px solid #dcded3;height:66px}header img{width:36px;height:36px;border-radius:9px}header small{margin-left:auto}h1{font-size:34px;margin:7px 0 20px;letter-spacing:-1.5px}h2{font-size:19px;margin:26px 0 8px}h3{font-size:16px;margin:18px 0 6px}button,input,select{font:inherit;color:inherit}button,.upload{cursor:pointer}button{background:transparent;border:0;padding:9px 12px;min-height:44px}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #497d59}button.main,.upload{background:#184f38;color:white;border-radius:8px;font-weight:600}button.full,.upload{width:100%;display:block;text-align:center;padding:13px}.plain,.upload{color:#184f38;border:1px solid #73947b;border-radius:8px;background:transparent}.row,.line,.money,.bar{display:flex;align-items:center;justify-content:space-between;gap:12px}.row{width:100%;text-align:left;padding:15px 0;border-bottom:1px solid #dedfd5}.row span{min-width:0;overflow-wrap:anywhere}.right{text-align:right;flex-shrink:0}small,.muted{color:#626c60;font-size:13px}small{display:block}.money{justify-content:flex-start;border-bottom:2px solid #386547;font-size:40px;font-weight:650;letter-spacing:-1px}.money input{font-size:inherit;font-weight:inherit;text-align:left;width:100%;padding:0}.line{min-height:53px;border-bottom:1px solid #dddfd4}.line input:not([type=checkbox]),select{max-width:65%;text-align:right}.line input[type=checkbox]{width:23px;height:23px;accent-color:#195438}input,select{background:transparent;border:none;min-width:0}input[type=date]{max-width:70%;min-height:44px}.add{color:#245f41;width:100%;margin-top:8px}.upload{margin-top:10px}.upload input{width:1px;height:1px;opacity:0;position:absolute}.upload:focus-within{outline:2px solid #497d59}.tabs{display:flex;gap:8px;margin-top:22px}.tabs button{border-bottom:2px solid transparent;color:#626c60}.tabs .on{color:#194b36;border-color:#194b36;font-weight:650}.badge{color:#865713}footer{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,540px);background:#faf8f2;border-top:1px solid #d9dace;display:flex;align-items:center;gap:8px;padding:12px 16px calc(12px + env(safe-area-inset-bottom))}footer div{margin-right:auto}footer strong{font-variant-numeric:tabular-nums}.center{justify-content:center;position:relative}.center button{position:absolute;left:5px;color:#345541}.note{color:#5b664f;font-size:13px}.detailAmount{font-size:40px;font-weight:650;letter-spacing:-1px}.item + .item{border-top:2px solid #cbd5c7;margin-top:22px}.files{overflow-wrap:anywhere}.status{background:#e8eddf;color:#375837;padding:10px;border-radius:6px}button:disabled{opacity:.55}
.portal{padding-top:30px}.portal h2{font-size:14px;color:#59665a;font-weight:550;margin:26px 0 9px}.module{width:100%;padding:20px;text-align:left;display:flex;align-items:center;justify-content:space-between;gap:12px;border-radius:12px;background:#ecefe5;color:#1c4633}.module b{font-size:22px;letter-spacing:-.6px}.module small{margin-top:4px}.module span:last-child{font-size:24px}.scope{padding:16px 0;border-bottom:1px solid #dedfd5}.scope h2{margin:0 0 3px}
.live-form{display:grid;gap:12px}.live-form label{display:grid;gap:4px;color:#4a564b}.live-form input,.live-form textarea,.live-form select{width:100%;padding:10px;background:#fff;border:1px solid #ced6cb;border-radius:6px;font:inherit}.live-form label.inline{display:flex;align-items:center;gap:8px}.live-form input[type=checkbox]{width:20px;height:20px}.module+.module{margin-top:8px}.live-form fieldset{border:0;padding:0;margin:0 0 15px}.live-form legend{font-weight:650}.status:empty{display:none}details summary{padding:10px 0;cursor:pointer}button:active{opacity:.75}

/* Mobile workbench */
html,#app{background:#f4f6f3}
header{height:54px;padding:0 16px;gap:8px;background:#fff;border-color:#e1e7df}
header img{width:28px;height:28px;border-radius:8px}
header strong{font-size:15px}
header small{font-size:11px;color:#496351;text-align:right}
header button{font-size:13px;padding:6px}
main{padding:20px 16px}
h1{font-size:28px;line-height:1.2;margin:0 0 18px}
.module{background:#fff;border:1px solid #dde5df;border-radius:15px;font-weight:650}
.module::after{content:'›';color:#577466;font-size:21px}
.dashboard{display:flow-root}
.dashboard h1{margin:4px 0 12px}
.ops-date{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#53695a;font-size:14px}
.ops-date input{background:#fff;border:1px solid #dce4dc;border-radius:12px;padding:7px 12px;text-align:center}
.sectors{display:flex;padding:4px;background:#e4eae3;border-radius:14px;margin:14px 0}
.sectors button{flex:1;min-width:0;padding:6px 2px;font-size:15px;font-weight:600;color:#516357}
.sectors button[aria-pressed=true]{border-radius:10px;background:white;color:#174b38;box-shadow:0 1px 4px #1d3a2417}
.metric-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.metric{display:flex;flex-direction:column;align-items:stretch;gap:9px;text-align:left;background:white;border:1px solid #dfe7df;border-radius:18px;padding:15px;min-height:104px;overflow-wrap:anywhere}
.metric-label{display:flex;align-items:center;justify-content:space-between;gap:5px;font-size:14px;color:#415a49}
.metric-label i{font:22px/1 sans-serif}
.value{font-size:clamp(24px,7vw,32px);font-weight:650;line-height:1.15;letter-spacing:-1px;font-variant-numeric:tabular-nums}
.value em{font-size:12px;font-style:normal;letter-spacing:0;font-weight:500}
.metric.primary{grid-column:1/-1;background:linear-gradient(115deg,#113e30,#205b41);color:#fff;padding:18px 20px}
.primary .metric-label,.primary small{color:#e4f1e7}
.primary .value{font-size:36px}
.no-value{font-size:16px;opacity:.8}
.dashboard .note{margin:16px 3px}
#sources{position:fixed;inset:auto 0 0;margin:0 auto;width:min(100%,540px);max-width:100%;max-height:76dvh;border:0;border-radius:22px 22px 0 0;padding:18px 20px calc(24px + env(safe-area-inset-bottom));color:#203b2a;background:#fff;overscroll-behavior:contain}
#sources::backdrop{background:#10291d66}
.sheet-head{display:flex;align-items:center;justify-content:space-between}
.sheet-head h2{margin:3px 0}
.sheet-head button{color:#1b5840;background:#edf3ed;border-radius:12px}
#sources .row strong{flex-shrink:0}

/* Blue and white mobile workspace */
html,#app{background:#f5f7fc;color:#152846}
header{border-color:#e4e9f2}header small,.note,small,.muted{color:#52627c}
.work-search{display:flex;align-items:center;gap:10px;background:#eaf0f8;color:#536580;border-radius:14px;padding:0 15px;margin:10px 0 16px}
.work-search input{width:100%;min-height:45px;color:#162847}.work-search span{font-size:24px}
.dept-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.dept{min-height:94px;display:grid;place-content:center;justify-items:center;gap:8px;background:#fff;border:1px solid #e0e8f4;border-radius:17px;color:#183664;font-size:15px}
.dept[hidden]{display:none}.dept svg{width:32px;height:32px;fill:none;stroke:#235edb;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.ops-entry{position:relative;width:100%;margin:16px 0 8px;padding:20px;text-align:left;display:grid;gap:6px;border-radius:18px;background:linear-gradient(110deg,#1846af,#2866de);color:#fff}.ops-entry strong{font-size:24px}.ops-entry span{font-size:13px;color:#e3ecff}.ops-entry b{position:absolute;right:18px;top:25%;font-size:27px}
.shortcuts{display:flex;flex-wrap:wrap;gap:8px}.quick{background:#fff;border:1px solid #dce4f1;color:#244a87;border-radius:12px;margin:4px 0;padding:10px 14px}.identity{padding:16px;background:white;border-radius:14px;margin:12px 0}
.work-nav{position:fixed;z-index:2;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,540px);display:flex;padding:4px 8px calc(4px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #dde5f0}
.work-nav button{flex:1;display:grid;justify-items:center;gap:1px;color:#54647b;font-size:12px}.work-nav span{font-size:21px;line-height:1.15}.work-nav [aria-current]{color:#1957c9;font-weight:700}
.metric.primary,button.main,.upload{background:#2057c7;color:#fff}.primary .metric-label,.primary small{color:#edf4ff}.metric{border-color:#dde5f1}.metric-label,.ops-date{color:#415674}.sectors{background:#e5ebf6}.sectors button[aria-pressed=true],.sheet-head button,.plain{color:#1e52b4}.plain{border-color:#8fa7d2}.ops-date{margin:8px 0 14px}#sources{color:#192f4b}.status,.sheet-head button{background:#e6edfa;color:#254c8a}
.catalog-entry,.mat-hero{background:#174cac;color:#fff;border-radius:16px;padding:16px;text-align:left;width:100%}
.catalog-form{display:flex;gap:8px;margin-bottom:15px}.catalog-form input{flex:1;background:white;border:1px solid #c7d5ec;border-radius:10px;padding:10px}
.catalog-row{display:block;width:100%;text-align:left;background:white;border-bottom:1px solid #e1e7f2;padding:13px 15px;overflow-wrap:anywhere}.catalog-row small{margin-top:3px}
.mat-hero h2{margin:6px 0}.mat-hero small{color:#e4edff}
.book-search label{display:flex;align-items:center;justify-content:space-between;background:white;padding:8px 12px;border-radius:10px;margin-bottom:8px}.book-search select{min-height:44px}.catalog-row span{color:#2452a2;font-size:14px}
.week-box{padding:16px 12px;margin:0 0 12px;border:1px solid #dde5f1;border-radius:16px;background:white}.week-box h2{font-size:17px;margin:0 0 5px}.week-bars{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));margin:8px 0 4px;min-height:112px;align-items:end}.week-bars button{padding:2px;display:grid;justify-items:center;align-content:end;min-height:110px;gap:4px}.week-bars span{font-size:11px;overflow-wrap:anywhere}.week-bars i{width:56%;background:#3267d8;border-radius:4px 4px 0 0}.week-bars small{font-size:11px}.week-bars button:disabled i{background:#a2acc0}

.list-scope,.period-nav{display:flex;gap:6px;margin:0 0 14px;flex-wrap:wrap}
.list-scope button,.period-nav button{min-height:44px;padding:8px 15px;color:#365378;border-radius:12px;background:#fff;border:1px solid #d9e3f1}
.list-scope [aria-pressed=true]{background:#e3edff;color:#16479d;border-color:#9fbcef;font-weight:650}
button.catalog-row{position:relative;padding:14px 34px 14px 15px}
button.catalog-row::after,.catalog-entry::after{content:'›';position:absolute;right:14px;top:50%;transform:translateY(-50%);font-size:20px;color:#6a83a4}
.catalog-row strong{display:block;line-height:1.35}.catalog-row span{display:inline-block;margin-top:5px;font-variant-numeric:tabular-nums}
.catalog-entry{position:relative;font-weight:650;padding-right:36px}.catalog-entry::after{color:white}
.metric-grid+.work-search{margin-top:18px}
.settlement-links{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}
.settlement-card,.statement-terms,.statement-sign{background:#fff;border:1px solid #dce5f2;border-radius:14px;padding:12px 15px;margin:10px 0;overflow-wrap:anywhere}
.settlement-card summary{min-height:44px;color:#203d66}.settlement-card summary small{margin-left:17px}
.statement-link{display:block;width:100%;text-align:left;background:#fff;color:#194fa8;border-bottom:1px solid #e1e8f2}
.statement-line,.statement-sign{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 12px}
.statement-line{padding:12px 0;border-top:1px solid #e0e7f0}.statement-line small{grid-column:1/-1}
.statement-terms{white-space:pre-wrap}.statement-terms h2{margin-top:0}.statement-sign{grid-template-columns:repeat(2,minmax(0,1fr))}
