
:root{
 --ink:#213746;--muted:#7a8d98;--surface:#fff;--background:#f6f8f6;
 --line:#e2e9e7;--primary:#1b7158;--primary-hover:#145d49;
 --mint:#e7f4e9;--nav:#1b3543;--amber:#a86b22;--danger:#b44a4a;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:#e9efed;color:var(--ink);
 font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:14px;line-height:1.55}
button,input,select,textarea{font:inherit}
button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:3px solid #91d3b0;outline-offset:2px}
h1,h2,h3,p{margin:0}
.stage{display:flex;justify-content:center;align-items:center;gap:35px;min-height:100vh;padding:22px;
 background:radial-gradient(circle at 22% 4%,#d3e6df 0,transparent 48%),linear-gradient(110deg,#e7eeeb,#f4f6f5)}
.stage-intro{width:260px;flex:none}
.stage-intro>small{font-size:10px;font-weight:900;letter-spacing:1.7px;color:var(--primary)}
.stage-intro h2{font-size:36px;letter-spacing:-1.4px;line-height:1.15;margin:15px 0}
.stage-intro p{font-size:13px;color:#68808a;line-height:1.9}
.stage-intro a{display:inline-block;margin-top:26px;text-decoration:none;color:var(--primary);
 font-size:12px;font-weight:800}
.stage-guide{width:177px;display:flex;flex-direction:column;gap:13px;align-items:flex-start;
 color:var(--muted);font-size:11px;line-height:1.7}
.stage-guide>b{color:var(--ink);font-size:12px}
.stage-guide p,.stage-guide small{font-size:11px;line-height:1.8}
.stage-guide small{display:block}
.phone{height:min(860px,calc(100dvh - 36px));min-height:570px;width:min(435px,100%);flex:none;
 border:8px solid #1a303b;border-radius:36px;box-shadow:0 24px 75px #18383c38;
 background:var(--background);display:flex;flex-direction:column;position:relative;overflow:hidden}
.phone-status{height:25px;flex:none;display:flex;justify-content:space-between;align-items:center;
 background:#fff;color:#234149;padding:2px 22px;font-size:10px;font-weight:900}
.phone-status span:last-child{letter-spacing:3px}
.app-header{height:67px;flex:none;border-bottom:1px solid var(--line);background:#fff;
 padding:0 10px;display:flex;align-items:center;gap:7px}
.header-back{width:38px;height:38px;flex:none;border:0;background:transparent;font-size:24px;
 color:var(--primary);border-radius:9px}
.header-back:hover{background:#ecf7f0}
.header-title{flex:1;min-width:0}
.header-title>b{display:block;font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.header-title>small{display:block;font-size:10px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.app-header select{max-width:174px;min-width:105px;min-height:37px;border:1px solid #dbe7e2;
 background:#f6faf8;color:#2d5f4e;border-radius:10px;padding:7px 4px;
 font-size:11px;font-weight:850}
.phone-main{flex:1;overflow-y:auto;overscroll-behavior:contain;min-height:0;scrollbar-width:thin;scrollbar-color:#cfddd7 transparent}
.screen{padding:18px 15px 26px;min-height:100%}
.page-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}
.page-head h1{font-size:21px;letter-spacing:-.6px;line-height:1.3;overflow-wrap:anywhere}
.page-head>.btn{flex:none}
.hint{font-size:11px;color:var(--muted);line-height:1.7;margin:5px 0 17px}
.project-banner{padding:20px 16px;background:linear-gradient(115deg,#1e3e4c,#257760);
 border-radius:15px;color:#fff;margin-bottom:14px}
.project-banner small{display:block;font-size:10px;color:#c7e8d5;font-weight:900;letter-spacing:.9px}
.project-banner h2{font-size:20px;letter-spacing:-.55px;margin:9px 0 4px}
.project-banner p{color:#d1e5e0;font-size:11px}
.metrics{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:22px}
.metric{background:#fff;border:1px solid var(--line);padding:14px 12px;border-radius:12px;
 min-height:106px;display:flex;flex-direction:column;gap:5px}
.metric span{font-size:10px;font-weight:800;color:#78909a}
.metric strong{font-size:19px;letter-spacing:-.6px;color:#1f4851;line-height:1.2;overflow-wrap:anywhere}
.metric small{font-size:10px;color:#8a9ca4;margin-top:auto}
.section-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:18px 0 12px}
.section-title h2{font-size:15px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:5px;border:1px solid #d3e1dc;
 border-radius:10px;color:#2b6252;background:#fff;min-height:38px;padding:9px 11px;font-size:11px;
 font-weight:850;line-height:1.2;text-align:center}
.btn:hover{background:#eef8f2}
.btn.primary{color:#fff;background:var(--primary);border-color:var(--primary)}
.btn.primary:hover{background:var(--primary-hover)}
.btn.soft{color:#356f5e;background:#eaf5ed;border-color:#cde6d5}
.btn.text{border:0;background:transparent;color:var(--primary);padding:8px 3px}
.btn.icon{border:1px solid #dbe5e5;background:#f6f8f8;color:#506a6e;
 font-size:19px;min-height:33px;min-width:33px;padding:3px}
.btn.wide{width:100%;min-height:45px;margin-top:17px}
.panel{background:#fff;border:1px solid var(--line);border-radius:14px;
 padding:15px 14px;margin-bottom:13px}
.panel>h2{font-size:14px;color:#2b424d;letter-spacing:-.2px;margin-bottom:12px}
.item-card{display:flex;align-items:flex-start;gap:9px;width:100%;text-align:left;
 border:1px solid var(--line);border-radius:13px;background:#fff;
 box-shadow:0 2px 12px #14334609;color:var(--ink);padding:15px 12px;margin-bottom:9px}
.item-card:hover{border-color:#9fc7b1;background:#fcfffd}
.item-main{flex:1;min-width:0;overflow-wrap:anywhere}
.item-main>b{display:block;color:#254451;font-size:13px;font-weight:850;line-height:1.4}
.item-main>small{display:block;color:var(--muted);font-size:11px;line-height:1.6;margin-top:6px}
.item-meta{display:flex;flex-direction:column;align-items:flex-end;gap:7px;max-width:125px;flex:none}
.item-meta>strong{font-size:11px;color:var(--primary);white-space:nowrap}
.chevron{color:#8aa2a6;font-size:19px;line-height:1.2}
.badge{display:inline-block;padding:4px 8px;border-radius:90px;background:#e9eef0;
 color:#607c85;font-size:10px;font-weight:850;white-space:nowrap;line-height:1.4}
.badge-awaiting-approval,.badge-submitted{background:#fff2db;color:#91601d}
.badge-approved,.badge-in-progress{background:#e5f6ee;color:#207654}
.badge-partially-issued,.badge-partially-received,.badge-partially-paid{background:#e9f0fa;color:#51709e}
.badge-issued,.badge-received,.badge-completed,.badge-paid,.badge-recorded{background:#e1f5ec;color:#17724a}
.badge-needs-correction,.badge-rejected{background:#fce9e8;color:#ab4a49}
.badge-unpaid{background:#fff0dc;color:#96661a}
.info-row{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;
 border-bottom:1px solid #edf2f0;padding:10px 0;font-size:11px}
.info-row:last-child{border-bottom:0;padding-bottom:0}
.info-row>span{color:#78919a;max-width:47%}
.info-row>strong{text-align:right;color:#324c56;max-width:53%;overflow-wrap:anywhere}
.button-stack{display:flex;flex-direction:column;gap:9px}
.button-stack .btn{width:100%;min-height:45px}
.empty{padding:30px 20px;border:1px dashed #d9e5e1;border-radius:12px;background:#fff;text-align:center}
.empty>b{display:block;font-size:13px;margin-bottom:5px}
.empty p{color:var(--muted);font-size:11px}
.activity{padding:12px 0;border-bottom:1px solid #edf2f0}
.activity:last-child{border-bottom:0}
.activity>b{display:block;font-size:12px}
.activity>small{font-size:11px;color:var(--muted);display:block;margin-top:4px}
.activity-card{padding:15px;background:#fff;border:1px solid var(--line);border-radius:12px;margin-bottom:9px}
.activity-card b{font-size:12px}
.activity-card p{font-size:11px;color:#617c84;line-height:1.7;margin:6px 0}
.activity-card small{color:var(--muted);font-size:10px}
.finance-hero{padding:19px;background:linear-gradient(125deg,#1f4450,#1f735f);
 border-radius:14px;color:#fff;display:flex;flex-direction:column;gap:10px;margin-bottom:16px}
.finance-hero small{font-size:10px;font-weight:800;color:#d0e8dd;letter-spacing:.6px}
.finance-hero strong{font-size:24px;letter-spacing:-.7px;line-height:1.3}
.finance-hero span{font-size:11px;color:#c5e1d6}
.segment{display:flex;gap:5px;margin:14px 0;padding:4px;border:1px solid #dce7e2;background:#eaf0ed;border-radius:12px}
.segment button{flex:1;min-width:0;border:1px solid transparent;border-radius:9px;
 background:transparent;color:#71878c;font-weight:850;font-size:10px;padding:10px 6px;line-height:1.3}
.segment button.chosen{border-color:#b8dcc8;background:#fff;color:var(--primary);
 box-shadow:0 2px 7px #1d503b12}
.segment.three button{font-size:11px}
.stock-card{border:1px solid var(--line);padding:15px;background:#fff;
 border-radius:12px;margin-bottom:9px;display:flex;justify-content:space-between;gap:10px}
.stock-card>div:first-child{flex:1;min-width:0}
.stock-card b{display:block;font-size:12px;overflow-wrap:anywhere}
.stock-card small{display:block;font-size:10px;color:var(--muted);margin-top:5px}
.stock-card>div:last-child{text-align:right;flex:none}
.stock-card strong{display:block;font-size:13px;color:#1b6d50;white-space:nowrap}
.stock-card .low{display:block;font-size:10px;color:var(--amber);font-weight:850;margin-top:6px}
.progress-bar{height:8px;background:#edf3ed;border-radius:8px;overflow:hidden;margin:7px 0 13px}
.progress-bar>span{display:block;height:100%;background:var(--primary);border-radius:8px}
.evidence{display:flex;align-items:center;gap:13px;background:#f2faf4;
 border:1px dashed #cbe4cf;padding:18px;border-radius:11px}
.evidence>span{font-size:26px;color:var(--primary)}
.evidence b{display:block;font-size:12px}
.evidence small{display:block;font-size:11px;color:#769389;margin-top:5px}
.report-body{font-size:12px;color:#4d6873;line-height:1.8;margin-top:12px}
.bottom-nav{height:66px;flex:none;display:flex;gap:4px;padding:6px 7px;background:#fff;border-top:1px solid var(--line)}
.bottom-nav>button{flex:1;min-width:0;border:1.5px solid transparent;border-radius:12px;
 display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;
 background:transparent;color:#8797a0}
.bottom-nav>button:hover{background:#eff9f1}
.bottom-nav>button.selected{background:#eaf6ec;border-color:var(--primary);color:var(--primary)}
.bottom-nav span{font-size:19px;line-height:1}
.bottom-nav small{font-size:11px;font-weight:800}
.gesture{height:17px;background:#fff;flex:none;display:grid;place-items:center}
.gesture span{height:4px;width:100px;border-radius:6px;background:#2a444b}
.drawer-wrap{position:absolute;inset:0;z-index:50;display:flex;overflow:hidden;border-radius:inherit}
.drawer-backdrop{border:0;background:#1e3343aa;position:absolute;inset:0;width:100%;height:100%}
.drawer{position:relative;z-index:1;width:min(310px,88%);height:100%;overflow-y:auto;
 background:#fbfcfb;box-shadow:8px 0 26px #12374555;overscroll-behavior:contain}
.drawer-head{padding:43px 20px 26px;background:var(--nav);color:#fff}
.drawer-head>b{font-size:15px;display:block}
.drawer-head>small{color:#c9e1d8;font-size:11px;display:block;margin-top:7px}
.drawer>button{display:flex;width:100%;align-items:center;gap:13px;min-height:58px;
 border:0;border-bottom:1px solid #edf0ef;background:transparent;text-align:left;color:#31545d;
 font-size:12px;font-weight:850;padding:15px 19px}
.drawer>button:hover{background:#ecf6ef}
.drawer>button>span{font-size:21px;width:28px}
.drawer>button>i{font-size:20px;margin-left:auto;color:#9caeb3;font-style:normal}
.drawer>a{display:block;font-size:12px;color:var(--primary);text-decoration:none;font-weight:800;margin:25px 19px}
.modal-overlay{position:fixed;inset:0;z-index:80;display:grid;place-items:center;
 padding:14px;isolation:isolate}
.modal-backdrop{position:absolute;inset:0;width:100%;height:100%;background:#132f3dba;
 border:0;cursor:default}
.modal{z-index:1;position:relative;display:flex;flex-direction:column;overflow:hidden;
 width:min(470px,100%);max-height:calc(100dvh - 28px);background:#f9fbfa;
 border-radius:17px;box-shadow:0 26px 66px #0f2e425a}
.modal>header{flex:none;padding:17px 17px;display:flex;align-items:center;gap:10px;
 justify-content:space-between;background:#fff;border-bottom:1px solid var(--line)}
.modal>header h2{font-size:17px;letter-spacing:-.2px}
.modal-inner{min-height:0;overflow-y:auto;padding:15px 18px 21px;overscroll-behavior:contain;scrollbar-width:thin}
.fields{display:grid;gap:12px}
.fields label{display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:850;color:#526e76}
.fields input,.fields select,.fields textarea{display:block;min-height:42px;padding:10px 11px;width:100%;
 border:1px solid #d5e2dc;border-radius:10px;background:#fff;color:#274653;font-size:12px}
.fields textarea{resize:vertical;min-height:85px}
.fields input:focus,.fields select:focus,.fields textarea:focus{border-color:var(--primary)}
.form-context{border:1px solid #d9e9e0;background:#f0f9f2;color:#4d7770;
 padding:12px;border-radius:10px;font-size:11px;line-height:1.7}
.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);z-index:110;
 width:min(430px,calc(100% - 28px));display:flex;align-items:center;justify-content:space-between;gap:15px;
 border-radius:12px;background:#1e434b;color:#fff;padding:12px 15px;
 box-shadow:0 8px 30px #193d4e55;font-size:12px}
.toast .btn{color:#fff}
@media(max-width:1080px){.stage-intro,.stage-guide{display:none}.stage{padding:12px}.phone{height:min(900px,calc(100dvh - 24px))}}
@media(max-width:540px){
 html,body{background:#fff}
 .stage{display:block;background:#fff;padding:0}
 .phone{width:100%;height:100dvh;min-height:520px;border:0;border-radius:0;box-shadow:none}
 .screen{padding:17px 14px 24px}
 .app-header select{max-width:166px;font-size:10px}
 .modal-overlay{padding:11px}
 .modal{max-height:calc(100dvh - 22px)}
 .toast{bottom:79px}
}
@media(max-width:355px){
 .app-header select{max-width:137px;min-width:90px;font-size:9px}
 .page-head h1{font-size:19px}
 .page-head .btn{font-size:10px;padding:8px}
 .item-meta{max-width:100px}.item-main>b{font-size:12px}
 .segment button{font-size:9px}.bottom-nav small{font-size:10px}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation-duration:0s!important}}

.header-back.static{display:grid;place-items:center;cursor:default;color:var(--primary);font-size:20px}
