:root {font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size:12px; color:#1c3048; background:#f2f5fa; font-synthesis:none}
*{box-sizing:border-box} html,body{margin:0;min-height:100%;-webkit-tap-highlight-color:transparent}
body{overflow-x:hidden}button,input{font:inherit}button{cursor:pointer}
.app-shell{max-width:610px;min-height:100dvh;margin:0 auto;background:#f5f7fb;box-shadow:0 1px 18px #152d4410; padding-bottom:calc(92px + env(safe-area-inset-bottom))}
.topbar{height:76px;background:#0b1b32;color:white;display:flex;align-items:center;justify-content:space-between;padding:16px 19px;position:sticky;top:0;z-index:2}
.brand-lockup{display:flex;gap:10px;align-items:center}.brand-icon,.auth-logo{width:36px;height:36px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(140deg,#15c6af,#298cbd);font-size:19px;font-weight:850;color:white}
.brand-name{font-size:15px;font-weight:800;letter-spacing:.08em}.brand-caption{font-size:10px;color:#b2bfcc;margin-top:3px}
.top-actions{display:flex;align-items:center;gap:9px}.read-only{font-size:10px;border:1px solid #66758a;color:#c4ceda;border-radius:20px;padding:5px 9px}.circle-action{border:0;background:#23354c;color:white;border-radius:100%;width:34px;height:34px;font-size:22px}
.demo-notice{background:#fff2cb;color:#755011;padding:9px 18px;font-size:11px;border-bottom:1px solid #f2dea0;font-weight:650}
main{padding:17px;min-height:calc(100dvh - 158px)}
.page-title{font-weight:780;font-size:17px;line-height:1.25;color:#122640;margin:0 0 4px}.intro{color:#66758a;font-size:11px;margin:0 0 14px;line-height:1.45}
.period-pill{color:#566980;font-size:10px;background:#e9eff6;border-radius:6px;padding:7px 9px;margin:10px 0 14px;display:inline-flex;gap:5px}
.segment{display:flex;gap:4px;background:#e6ebf2;border-radius:11px;padding:4px;margin:5px 0 16px}
.segment button{flex:1;padding:10px 3px;background:transparent;color:#526479;border:0;border-radius:8px;font-size:11px;font-weight:650}
.segment button.active{background:#fff;color:#163e61;box-shadow:0 1px 5px #243b4d1a}
.section-heading{font-size:12px;font-weight:780;margin:18px 0 10px;color:#213b57;display:flex;justify-content:space-between;align-items:center}
.panel,.metric-card,.driver-card,.notice-panel{border:1px solid #e0e7f0;border-radius:14px;background:#fff;box-shadow:0 2px 8px #24324a08}
.metric-card{padding:16px 15px;background:linear-gradient(136deg,#0b1d35,#1c3758);border:0;color:#fff}
.metric-label{font-size:11px;color:#c6d4e2}.metric-amount{font-size:27px;font-weight:800;letter-spacing:-.025em;margin:7px 0}.metric-detail{font-size:10px;color:#b7c7d9;line-height:1.45}
.metric-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:11px 0}
.mini-card{background:#fff;border:1px solid #e0e7f0;border-radius:12px;padding:13px 12px}.mini-card .metric-label{color:#61758b}.mini-value{font-size:15px;font-weight:800;color:#1b3553;margin-top:7px}.mini-sub{font-size:10px;color:#778899;margin-top:6px;line-height:1.4}
.warning{display:flex;align-items:flex-start;gap:8px;background:#fff9eb;color:#795e28;border:1px solid #eedfb9;border-radius:11px;padding:11px 12px;line-height:1.5;margin:11px 0}
.warning strong{color:#634a16}.warning-icon{font-size:15px;margin-top:-2px}
.source-table{overflow:hidden}.source-line{display:flex;align-items:center;justify-content:space-between;padding:13px 14px;gap:12px;border-bottom:1px solid #edf1f5}.source-line:last-child{border-bottom:0}
.source-name{font-weight:740;min-width:74px}.source-note{font-size:10px;color:#8493a5;margin-top:4px}.source-money{font-weight:700;color:#263d55;text-align:right}
.small-muted{font-size:10px;color:#77889b;line-height:1.5}.state-dot{display:inline-block;border-radius:100%;width:7px;height:7px;margin-right:6px;background:#98a5b4}.state-dot.good{background:#0da48f}.state-dot.attention{background:#e08d30}.state-dot.bad{background:#d55461}
.driver-card{padding:14px;margin-bottom:10px}.driver-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.driver-title{font-size:12px;font-weight:800}.driver-company{font-size:10px;color:#8c9bac;margin-top:4px}.driver-total{text-align:right;font-size:15px;font-weight:850;white-space:nowrap;color:#203e5d}.driver-source{display:flex;justify-content:space-between;gap:7px;margin-top:10px;padding-top:10px;border-top:1px dashed #e8edf2;color:#586e83;font-size:10px}
.search-input{width:100%;padding:12px;border-radius:11px;border:1px solid #d8e2ed;background:white;margin-bottom:12px;outline-color:#12a9a3}
.notice-panel{padding:14px;margin:11px 0}.notice-title{font-weight:780;font-size:12px;margin-bottom:5px}.notice-desc{color:#5b6f84;font-size:11px;line-height:1.6;margin:6px 0}
.empty-box{padding:20px 14px;text-align:center;border-radius:12px;background:#fff;border:1px dashed #cbd7e4;color:#597085;line-height:1.7}.empty-icon{font-size:24px;margin-bottom:5px;color:#7f97ad}
.primary-button,.secondary-button{border:0;border-radius:10px;padding:12px 15px;font-size:12px;font-weight:740;width:100%;margin-top:10px}.primary-button{background:#0b8a9d;color:white}.secondary-button{background:#e8eff6;color:#284a69}
.bottom-nav{position:fixed;z-index:3;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:610px;height:calc(71px + env(safe-area-inset-bottom));padding:7px 8px env(safe-area-inset-bottom);background:white;border-top:1px solid #e4ebf1;display:flex;justify-content:space-around;box-shadow:0 -2px 12px #0e25380a}
.nav-button{background:transparent;border:0;border-radius:10px;min-width:56px;flex:1;color:#8593a1;display:flex;flex-direction:column;gap:4px;align-items:center;justify-content:center;font-size:10px;font-weight:660}
.nav-button.active{background:#e4f3f3;color:#086b78}.nav-icon{font-size:21px;line-height:1}
.auth-screen{position:fixed;inset:0;z-index:8;background:#071c33;display:grid;place-items:center;padding:18px}.auth-screen[hidden]{display:none}.auth-card{background:white;width:100%;max-width:390px;border-radius:18px;padding:27px}.auth-logo{margin:0 auto 13px;width:50px;height:50px;font-size:26px}.auth-card h1{text-align:center;font-size:18px;margin:0}.auth-card p{text-align:center;color:#698197;margin:10px 0 25px;line-height:1.4}
.auth-card label{display:block;margin:12px 0;color:#425970;font-weight:660}.auth-card input{display:block;width:100%;margin-top:6px;border:1px solid #cfd9e4;border-radius:9px;padding:12px}.form-error{color:#c34d58;margin-top:10px;min-height:15px}
.loading{padding:26px 12px;color:#758597;text-align:center}
@media(min-width:610px){body{background:#dbe2eb}.app-shell{box-shadow:0 4px 50px #1b2e431c}}
