:root{font-family:"Microsoft YaHei",system-ui,sans-serif;color:#334155;font-size:13px;background:#f0f4f8}*{box-sizing:border-box}body{margin:0}aside{width:206px;position:fixed;inset:0 auto 0 0;background:#293440;color:#c3ced9;display:flex;flex-direction:column}.brand{font-size:25px;color:#fff;padding:25px 23px 15px;letter-spacing:3px}.brand small{font-size:9px;display:block;letter-spacing:2px;color:#8fa6ba;margin-top:5px}.workspace{font-size:11px;padding:10px 16px 23px;color:#a5b4c4}.workspace span{border:1px solid #586676;padding:2px 4px;border-radius:3px;margin-left:4px}nav button{width:100%;background:none;border:0;border-left:3px solid transparent;color:#c3ced9;text-align:left;padding:16px 22px;cursor:pointer;font:inherit}nav button:hover{background:#344451}nav button.active{background:#354654;color:#6dc2f0;border-left-color:#50a9e2}.sidefoot{margin-top:auto;padding:20px;line-height:2;color:#8e9eaf;font-size:11px}main{margin-left:206px}header{height:58px;background:#fff;border-bottom:1px solid #e2e8f0;padding:0 25px;display:flex;align-items:center;justify-content:space-between}.crumb{color:#94a3b8}.header-right{color:#439779;font-size:11px}.header-right span{margin-left:20px;color:#94a3b8}.page{padding:23px}.titlebar{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}h1{font-size:21px;font-weight:600;margin:0 0 7px}p{margin:0;color:#8b98a9;font-size:12px}button{font:inherit;cursor:pointer;border:1px solid #d7e0e8;background:white;color:#527185;border-radius:3px;padding:8px 13px}button:hover{filter:brightness(.96)}button.primary{background:#438fbd;border-color:#438fbd;color:#fff}button+button{margin-left:7px}.panel{background:white;border:1px solid #e0e7ed;margin-bottom:17px;border-radius:3px}.tabs{display:flex;border-bottom:1px solid #e2e8f0;background:white;margin-bottom:16px}.tabs button{flex:1;border:0;border-radius:0;padding:15px;margin:0;border-bottom:2px solid transparent;color:#718196}.tabs button.active{border-bottom-color:#4897c6;color:#3284b8}.filters{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:15px 22px;padding:21px}.filters label,.fields label{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#62748a}input,select,textarea{width:100%;border:1px solid #d7e0e8;background:#fff;border-radius:3px;padding:9px;color:#34455a;font:inherit;min-width:0}input:focus,select:focus,textarea:focus{outline:2px solid #bbdef2;border-color:#4897c6}.filterfoot{display:flex;align-items:end;gap:4px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:18px}.stat{background:white;padding:20px;border:1px solid #e0e7ed;border-radius:3px}.stat span{color:#8090a4;font-size:12px}.stat strong{display:block;font-size:25px;font-weight:500;margin-top:10px;color:#354b61}.stat small{font-size:11px;margin-top:8px;color:#94a3b8;display:block}.tablebar{padding:16px;display:flex;justify-content:space-between;align-items:center;border-bottom:2px solid #8bafc5}.summary{display:flex;gap:20px;font-size:12px}.green{color:#498a57!important}.red{color:#d16b65!important}.tablewrap{overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:12px}th{background:#8da1b3;color:#fff;text-align:left;font-weight:500;padding:12px 13px}td{padding:16px 13px;border-bottom:1px solid #edf1f5;line-height:1.9}tr:nth-child(even){background:#f8fafc}td small{display:block;color:#8b98a7;font-size:11px}.link{color:#3988b7}.badge{display:inline-block;border-radius:3px;padding:2px 7px;background:#eaf4fb;color:#3b89b6;font-size:11px}.badge.done{background:#ecf5ee;color:#568963}.badge.cancel{background:#fceeee;color:#bf6f6f}.rowbtn{border:0;background:none;font-size:12px;padding:2px 5px;color:#4089b3}.empty{padding:65px 20px;text-align:center;color:#94a3b8}.empty strong{display:block;font-size:17px;color:#657b90;margin-bottom:12px}.notice{padding:14px 18px;background:#edf6fc;color:#628299;border:1px solid #dbeaf4;line-height:1.9;margin-bottom:17px}.split{display:grid;grid-template-columns:1fr 1fr;gap:18px}.panel h3{font-size:14px;margin:0;padding:18px;border-bottom:1px solid #e8edf2}.barrow{padding:14px 18px;display:grid;grid-template-columns:90px 1fr 100px;gap:12px;align-items:center}.bar{background:#edf2f6;height:8px;border-radius:5px;overflow:hidden}.bar i{display:block;height:100%;background:#6aa8ce}.detail{padding:19px;line-height:2}.detail dl{display:grid;grid-template-columns:120px 1fr;margin:0}.detail dt{color:#94a3b8}.detail dd{margin:0}dialog{border:0;border-radius:6px;padding:0;width:760px;max-width:94vw;max-height:90vh;color:#334155;box-shadow:0 20px 80px #162c4655}dialog::backdrop{background:#13283c77}.dialog-head{display:flex;justify-content:space-between;align-items:center;padding:18px 23px;border-bottom:1px solid #e5ebf0}.dialog-head h2{font-size:17px;margin:0}.plain{border:0}.fields{padding:22px;display:grid;grid-template-columns:1fr 1fr;gap:17px}.fields .wide{grid-column:1/-1}.dialog-foot{padding:15px 22px;border-top:1px solid #e5ebf0;display:flex;justify-content:space-between;align-items:center}#form-error{color:#c85e5e;font-size:12px}#toast{position:fixed;bottom:25px;left:50%;background:#283f52;color:white;padding:12px 25px;border-radius:4px;display:none}.metric-note{padding:14px 18px;color:#8393a4;font-size:11px;line-height:1.8}@media(max-width:1050px){aside{width:160px}main{margin-left:160px}.filters{grid-template-columns:repeat(2,1fr)}.stats{grid-template-columns:repeat(2,1fr)}.summary{gap:10px}.split{grid-template-columns:1fr}}@media(max-width:650px){aside{position:static;width:100%}.brand,.workspace,.sidefoot{display:none}nav{display:flex;overflow:auto}nav button{white-space:nowrap;width:auto;padding:13px}main{margin:0}.page{padding:12px}header{padding:0 12px}.fields{grid-template-columns:1fr}.titlebar{align-items:start}.summary{display:none}}
:root{--accent:#438fbd}.locked aside,.locked main{display:none}#authscreen{min-height:100vh;display:grid;place-items:center;padding:25px;background:linear-gradient(130deg,#263846,#e3edf5)}.auth-card{background:white;padding:34px;border-radius:8px;width:420px;max-width:100%;box-shadow:0 20px 60px #19314633}.auth-brand{font-size:26px;letter-spacing:4px;color:#337ea8;margin-bottom:25px}.auth-card h2{font-size:18px}.auth-card p{line-height:1.8}.auth-card form{display:grid;gap:15px;margin:24px 0}.auth-card label{display:grid;gap:7px}.auth-card small{font-size:11px;color:#8b98a9}#auth-error{color:#c25e58}dialog:has(.segment-editor),dialog:has(.segment-table){width:1250px}.segment-editor h3{font-size:15px}.segment-editor h3 small{color:#8597a6;font-size:11px;font-weight:400}.segment-tools{display:flex;align-items:end;gap:15px;margin:15px 0}.segment-tools label{width:150px}.segment-editor textarea{margin:8px 0;resize:vertical}.segment-table input{min-width:85px;padding:7px}.segment-table input[type=date]{min-width:137px}.segment-table input[data-leg=note]{min-width:170px}.segment-table th,.segment-table td{padding:8px 6px}.segment-editor .tablewrap{max-width:100%;margin-top:15px}.header-right button{margin-left:12px;font-size:11px;padding:5px 9px}.brand{font-size:23px;letter-spacing:2px}
.passport-upload{border:1px solid #dce6ee;padding:16px;border-radius:4px}.passport-upload img{display:block;max-width:100%;max-height:250px;object-fit:contain;margin:12px 0}.passport-upload #passport-ocr-state{margin:12px 0;color:#557d99}.passport-confirm{display:flex!important;flex-direction:row!important;align-items:center;padding:14px;background:#edf6fc}.passport-confirm input{width:auto}.passport-upload .tablewrap{margin:12px 0}dialog:has(.passport-upload){width:900px}
/* Compact grouped navigation, with independently scrollable submenu area. */
aside{width:196px;background:#303a44;height:100dvh;overflow:hidden;z-index:30}.brand{padding:19px 20px 11px;font-size:22px;flex-shrink:0}.brand small{font-size:10px;letter-spacing:1px;margin-top:7px}.workspace{padding:5px 16px 13px;font-size:10px;flex-shrink:0}aside nav{display:block;min-height:0;flex:1;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#64717c transparent}aside nav button{display:flex;align-items:center;width:100%;border:0;border-radius:0;margin:0;padding:0 16px;height:44px;background:transparent;color:#aebbc6;text-align:left;font:inherit;font-size:12px;gap:10px;white-space:nowrap}aside nav button:hover{background:#3b4651;filter:none;color:#e3ebf3}aside nav svg{width:17px;height:17px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.nav-group-toggle span:nth-child(2){flex:1}.nav-chevron{color:#93a0ab;font-size:14px}.nav-group{border-left:3px solid transparent}.nav-group.current-group{border-left-color:#579edf}.nav-group.current-group .nav-group-toggle{color:#d5dfe9;background:#343f49}.nav-children{background:#34404a}.nav-children[hidden]{display:none}aside nav .nav-child{padding-left:46px;font-size:12px;height:42px;color:#b6c3ce}.nav-children .nav-child.active,aside nav .nav-home.active{background:#3b4752;color:#65afe8;border:0}.nav-home{border-left:3px solid transparent!important}.nav-home.active{border-left:3px solid #579edf!important}.sidefoot{margin:0;padding:12px 18px;font-size:10px;line-height:1.7;border-top:1px solid #46515b;flex-shrink:0}main{margin-left:196px}.workflow-strip{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;border:1px solid #e0e7ed;margin-bottom:18px;padding:18px 22px;color:#597a92;font-size:12px}.workflow-strip b{font-size:20px;font-weight:400;color:#b6c7d5}#sidebar-toggle{display:none}.sidebar-scrim{display:none}aside button:focus-visible{outline:2px solid #82b5e0;outline-offset:-3px}#content .split:has(>.panel:only-child){grid-template-columns:1fr}
@media(max-width:800px){aside{position:fixed;inset:0 auto 0 0;width:210px;transform:translateX(-100%);transition:transform .18s}.brand,.workspace,.sidefoot{display:block}aside nav{display:block}aside nav button{width:100%;padding:0 16px}.sidebar-open aside{transform:translateX(0)}main{margin-left:0}#sidebar-toggle{display:inline-flex;align-items:center;justify-content:center;padding:7px;font-size:18px;margin-right:10px;border:0;background:none;color:#617c93}header{justify-content:flex-start;gap:5px}header>.header-right{margin-left:auto}.sidebar-open .sidebar-scrim{display:block;position:fixed;inset:0;background:#172b4266;border:0;border-radius:0;z-index:25;margin:0}.workflow-strip{flex-wrap:wrap;justify-content:flex-start;gap:8px;padding:14px}.titlebar{gap:10px}.titlebar #actions{flex-shrink:0}.titlebar #actions button{font-size:11px;padding:8px}.header-right{font-size:10px}.header-right button{margin-left:5px}.split{grid-template-columns:1fr}}
.locked .sidebar-scrim{display:none!important}
.mock-notice{background:#fff7e7;border-color:#edddba;color:#846d40}#content .detail dd{overflow-wrap:anywhere}textarea[readonly]{background:#f6f9fc;color:#506479}
.dashboard-controls{display:flex;gap:20px;align-items:center;flex-wrap:wrap;margin-bottom:16px}.dashboard-controls label{display:flex;align-items:center;gap:8px;font-size:12px}.dashboard-controls input,.dashboard-controls select{padding:8px;border:1px solid #d7e1e9;background:white;color:#39556a}.dashboard-controls>span{font-size:11px;color:#8194a4}.dashboard-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:16px}.dashboard-cards>div{padding:20px;background:#fff;border:1px solid #dfe8ef;border-top:3px solid #559ac7}.dashboard-cards span,.dashboard-cards small{display:block;color:#7d91a3;font-size:12px}.dashboard-cards strong{display:block;font-size:28px;color:#274a63;margin:10px 0}.dashboard-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,1fr);gap:16px}.dashboard-grid>.panel{min-width:0}.dashboard-panel{padding:0!important;margin-bottom:16px}.dashboard-heading{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid #69a1c8;padding:12px 16px}.dashboard-heading h3{margin:0!important;font-size:13px}.dashboard-heading button{font-size:12px}.dashboard-panel table{font-size:12px}.dashboard-panel td{padding:14px 12px}.dashboard-empty{text-align:center;padding:30px!important;color:#91a1ae}.kpi-hero{padding:22px;color:#4e687b}.kpi-hero>strong{display:block;font-size:28px;color:#2b536f;margin:12px 0}.kpi-progress{min-width:100px}.kpi-progress>div{height:6px;background:#e7eef3;border-radius:6px;margin-top:7px;overflow:hidden}.kpi-progress i{display:block;height:100%;background:#4a9ac9}.kpi-member{display:inline-flex!important;align-items:center;gap:6px;margin:8px 16px 8px 0}.kpi-member input{width:auto!important}#dashboard+.workflow-strip{margin-top:12px}@media(max-width:1100px){.dashboard-grid{grid-template-columns:1fr}.dashboard-cards{grid-template-columns:repeat(2,1fr)}}@media(max-width:560px){.dashboard-cards{grid-template-columns:1fr}.dashboard-controls{gap:10px}}
/* Spring blue theme: shared by all business pages. */
:root{--accent:#2876f5;--ink:#203c60;--muted:#657e9c;--line:#deebfa;--blue:#2876f5;--teal:#008d83;--orange:#b66908;background:#f2f7ff;color:var(--ink)}
body{background:radial-gradient(ellipse at 90% 0,#e3f7f5 0,transparent 36%),#f2f7ff}
aside{background:linear-gradient(165deg,#1764d8 0%,#1954bc 50%,#2444a0 100%);box-shadow:4px 0 24px #235dc014;color:#fff}
.brand{font-weight:700;letter-spacing:2px;padding-top:25px}.brand small,.workspace,.sidefoot{color:#d6e9ff}.workspace span{border-color:#88b6f1;background:#ffffff12;color:#fff;border-radius:5px}.sidefoot{border-top-color:#ffffff25}
aside nav{padding:8px 9px;scrollbar-color:#94beff transparent}aside nav button{color:#e0edff;border-radius:8px;padding-left:12px;transition:background .16s,color .16s}aside nav button:hover{background:#ffffff20;color:#fff}.nav-group{border-left:0!important;margin:4px 0}.nav-group.current-group .nav-group-toggle{background:#ffffff18;color:white}.nav-chevron{color:#c6deff}.nav-children{background:#143d9028;border-radius:8px;margin-top:3px}aside nav .nav-child{color:#dbeaff;padding-left:38px}.nav-children .nav-child.active,aside nav .nav-home.active{background:#fff;color:#145bc4!important;box-shadow:0 3px 12px #08327f20;border:0!important;font-weight:600}.nav-children .nav-child.active::after{content:'';width:6px;height:6px;background:#13b5a0;border-radius:50%;margin-left:auto}.nav-home{border:0!important}.nav-home.active{border:0!important}
header{background:#ffffffed;border-color:var(--line);box-shadow:0 2px 10px #386db905}.crumb{color:#7891b1}.header-right{color:#087f76}.page{padding:26px}.titlebar{margin-bottom:22px}h1{color:#183d6b;font-size:24px;font-weight:700}p{color:#6c83a0;line-height:1.7}
button{border-color:#cddff7;color:#2661a9;border-radius:7px;font-weight:500;transition:background .15s,border-color .15s,box-shadow .15s,transform .15s}button:hover{filter:none;background:#edf5ff;border-color:#9bbff4;box-shadow:0 3px 9px #306dc412}button:active{transform:translateY(1px)}button.primary{background:linear-gradient(115deg,#2879fa,#3d63e5);border-color:#3272ed;color:white;box-shadow:0 4px 10px #2876f52b}button.primary:hover{background:linear-gradient(115deg,#1768e8,#3155d1);box-shadow:0 5px 14px #2876f53b}button:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}button:focus-visible{outline:3px solid #70a8ff;outline-offset:2px}
input,select,textarea{border-color:#d1e0f2;border-radius:7px;color:#2b4565;background:#fcfdff;transition:border-color .15s,box-shadow .15s}input:focus,select:focus,textarea:focus{outline:0;border-color:#3986ff;box-shadow:0 0 0 3px #3986ff1a;background:#fff}input[type=checkbox],input[type=radio]{accent-color:#2876f5}.filters label,.fields label{color:#4c6788}::placeholder{color:#8c9fb6}
.panel{border-color:var(--line);border-radius:11px;box-shadow:0 3px 14px #295a9b06;overflow:hidden}.panel h3{color:#27517e;border-bottom-color:#e6effa}.tabs{border:1px solid var(--line);border-radius:10px;overflow:hidden}.tabs button{color:#6a80a0}.tabs button.active{background:#eaf3ff;border-bottom-color:#2876f5;color:#1b63cb;font-weight:600}.tabs button:hover{background:#f0f6ff}.tablebar{border-bottom-color:#c7defc}.tablewrap{scrollbar-color:#a5c5ee #f1f6fc}th{background:#eaf3ff;color:#2e5e93;border-bottom:1px solid #cfe2fb;font-weight:600}td{border-bottom-color:#eaf0f8}tr:nth-child(even){background:#f8fbff}tbody tr:hover{background:#eef6ff}.link,.rowbtn{color:#1d6bd8}.rowbtn{border-radius:5px;font-weight:500}.rowbtn:hover{background:#e3efff;box-shadow:none}.summary{color:#43658b}.green{color:#058477!important}.red{color:#d84c56!important}
.badge{border-radius:6px;background:#e6f0ff;color:#2464c3;padding:3px 9px}.badge.done{background:#dcf7ed;color:#087c60}.badge.cancel{background:#ffebed;color:#c13d50}.notice{background:#eaf4ff;border:1px solid #cfe2fb;border-left:4px solid #3b85f5;border-radius:8px;color:#426a96}.mock-notice{background:#fff6e5;border-color:#f8dfaf;border-left-color:#f1aa35;color:#956114}.metric-note{color:#667f9e}.empty{color:#8299b3}.empty strong{color:#6082aa}.bar{background:#e5f0fb}.bar i{background:linear-gradient(90deg,#2e80f8,#20b5bb)}
.stat{border-color:var(--line);border-radius:10px;box-shadow:0 3px 12px #275c9b06;border-top:3px solid #4289f5}.stat:nth-child(4n+2){border-top-color:#13aa99}.stat:nth-child(4n+3){border-top-color:#edac40}.stat:nth-child(4n){border-top-color:#8c70e9}.stat strong{color:#2457a0;font-weight:600}.stat:nth-child(4n+2) strong{color:#07877a}.stat:nth-child(4n+3) strong{color:#a76710}.stat:nth-child(4n) strong{color:#7352c6}.stat span{color:#6e86a3}.stat small{color:#7d93ad}
.dashboard-controls{background:#ffffffb8;border:1px solid #e0eafa;border-radius:10px;padding:12px 16px}.dashboard-controls label{white-space:nowrap;color:#547293}.dashboard-controls input,.dashboard-controls select{border-color:#cfdef3;border-radius:7px}.dashboard-cards{gap:16px}.dashboard-cards>div{position:relative;overflow:hidden;border:0;border-radius:12px;padding:22px;background:linear-gradient(120deg,#2677ee,#4a8df8);box-shadow:0 7px 18px #2677ee22}.dashboard-cards>div:nth-child(2){background:linear-gradient(120deg,#008e89,#12b6a1);box-shadow:0 7px 18px #009c8f20}.dashboard-cards>div:nth-child(3){background:linear-gradient(120deg,#b97212,#da942e);box-shadow:0 7px 18px #d9902320}.dashboard-cards>div:nth-child(4){background:linear-gradient(120deg,#7654d1,#9875eb);box-shadow:0 7px 18px #805cda20}.dashboard-cards>div::after{content:'';position:absolute;right:-25px;bottom:-45px;width:135px;height:135px;border:20px solid #ffffff10;border-radius:50%;pointer-events:none}.dashboard-cards strong{position:relative;color:white;font-size:30px;font-weight:700;margin:12px 0;z-index:1}.dashboard-cards span,.dashboard-cards small{position:relative;color:#fff;z-index:1}.dashboard-cards small{opacity:.85}.dashboard-heading{background:linear-gradient(100deg,#f5f9ff,#fff);border-bottom:1px solid #dae8fa;padding:14px 17px}.dashboard-heading h3{border:0;padding:3px 0 3px 10px;border-left:3px solid #3082f6;color:#2a5687}.dashboard-panel:nth-child(2n) .dashboard-heading h3{border-left-color:#12ac98}.dashboard-panel td{padding:12px}.kpi-hero{background:linear-gradient(145deg,#fff,#f2fbf9)}.kpi-hero>strong{color:#087f78;font-size:32px}.kpi-hero p{color:#5f8190}.kpi-progress span{color:#1269c5;font-weight:600}.kpi-progress>div{height:7px;background:#e4edf8}.kpi-progress i{border-radius:6px;background:linear-gradient(90deg,#2881fa,#14b4a1)}.workflow-strip{border-radius:10px;background:linear-gradient(100deg,#edf5ff,#edfbf6);border-color:#dceaf8;color:#376a9f}.workflow-strip b{color:#75b3c6}
dialog{border-radius:14px;box-shadow:0 24px 90px #173e6a33}dialog::backdrop{background:#17385c70;backdrop-filter:blur(3px)}.dialog-head{background:linear-gradient(110deg,#eaf4ff,#edfbf7);border-bottom-color:#dceafa}.dialog-head h2{color:#235783}.dialog-foot{background:#f7faff;border-top-color:#e1ecf8}#close{border-radius:50%;color:#6484a5}.passport-confirm{background:#e9f7f3;border-radius:8px;color:#197e68}#toast{background:#174e88;border-radius:10px;box-shadow:0 8px 30px #1b4c8e30;z-index:100}
#authscreen{background:radial-gradient(ellipse at 15% 20%,#d3f8ed,transparent 50%),radial-gradient(ellipse at 85% 75%,#ded9ff,transparent 55%),#eaf3ff}.auth-card{border-radius:18px;border:1px solid #ffffff;box-shadow:0 24px 70px #3268ae20;padding:38px}.auth-brand{color:#226be1;font-weight:700}.auth-card h2{color:#234c78}.auth-card small{color:#748caa}
@media(max-width:800px){.page{padding:16px}.dashboard-controls{gap:12px;padding:12px}.dashboard-controls label{white-space:normal}.dashboard-cards strong{font-size:26px}.titlebar{flex-wrap:wrap;gap:12px}#sidebar-toggle{color:#286bc3}.dashboard-controls>span{width:100%}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}
