:root{--ink:#10213a;--muted:#748197;--line:#e5eaf1;--panel:#fff;--bg:#f5f7fb;--blue:#1967d2;--blue-dark:#0f4fa7;--red:#d9394a;--amber:#b77913;--green:#16835a;--shadow:0 8px 24px rgba(23,43,77,.07)}*{box-sizing:border-box}body{margin:0;background:var(--bg);font-family:"Microsoft YaHei","PingFang SC",Arial,sans-serif;color:var(--ink);font-size:14px}.sidebar{position:fixed;inset:0 auto 0 0;width:242px;background:#102842;color:#dbe8f7;padding:26px 14px;display:flex;flex-direction:column}.brand{display:flex;gap:11px;align-items:center;padding:0 10px 30px}.brand-mark{width:35px;height:35px;display:grid;place-items:center;background:#36b57b;border-radius:10px;font-weight:800;color:#fff;font-size:18px}.brand strong,.brand small{display:block}.brand strong{font-size:16px;color:#fff}.brand small{font-size:11px;margin-top:3px;color:#9fb6ce}.nav-item{border:0;background:transparent;color:#c2d1df;font:inherit;text-align:left;padding:11px 13px;border-radius:8px;margin:2px 0;cursor:pointer;width:100%}.nav-item:hover{background:#1e3d5c}.nav-item.active{background:#1c6bd0;color:#fff;font-weight:700}.sidebar-foot{font-size:12px;color:#85a0bb;margin:auto 10px 2px;line-height:1.5}main{margin-left:242px;min-height:100vh}header{height:92px;background:#fff;border-bottom:1px solid var(--line);padding:20px 34px;display:flex;justify-content:space-between;align-items:center}h1,h2,h3,p{margin:0}h1{font-size:24px;letter-spacing:.2px}h2{font-size:18px}h3{font-size:15px}#eyebrow{font-size:12px;color:var(--blue);font-weight:700;margin-bottom:4px}.header-actions{display:flex;align-items:center;gap:14px;color:var(--muted);font-size:12px}.content{padding:27px 34px;max-width:1500px}.cards{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:16px;margin-bottom:20px}.card,.panel{background:var(--panel);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow)}.card{padding:19px}.card .label{color:var(--muted);font-size:12px}.card .value{font-size:27px;font-weight:750;margin:9px 0 4px}.card .hint{font-size:12px;color:var(--muted)}.card .danger{color:var(--red)}.grid-2{display:grid;grid-template-columns:1.15fr .85fr;gap:19px}.panel{padding:19px;margin-bottom:19px}.panel-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.panel-title span{font-size:12px;color:var(--muted)}.toolbar{display:flex;align-items:center;gap:10px;justify-content:space-between;margin-bottom:16px}.toolbar .filters{display:flex;gap:9px;flex-wrap:wrap}.button{font:inherit;border-radius:7px;padding:8px 12px;cursor:pointer;border:1px solid transparent}.button.primary{background:var(--blue);color:#fff}.button.primary:hover{background:var(--blue-dark)}.button.ghost{background:#fff;border-color:#ccd6e3;color:#345}.button.danger{color:var(--red);background:#fff;border-color:#f0c2c7;padding:6px 8px}.button.small{padding:6px 9px;font-size:12px}input,select,textarea{font:inherit;border:1px solid #d2d9e4;border-radius:7px;padding:8px;background:#fff;color:var(--ink)}input:focus,select:focus,textarea:focus{outline:2px solid #bdd5f7;border-color:var(--blue)}table{border-collapse:collapse;width:100%}th{text-align:left;font-size:12px;color:#6f7c8f;font-weight:600;background:#f7f9fc}th,td{padding:11px 10px;border-bottom:1px solid var(--line);vertical-align:middle}td{font-size:13px}.table-wrap{overflow:auto;max-height:560px}.badge{display:inline-block;font-size:12px;font-weight:700;padding:4px 8px;border-radius:999px;background:#edf2f7;color:#57657a}.badge.green{background:#e4f6ee;color:#13734e}.badge.yellow{background:#fff5df;color:#98630b}.badge.red{background:#ffeaed;color:#b42332}.badge.blue{background:#e6f0fe;color:#175ab4}.alert{display:flex;gap:10px;padding:11px 0;border-bottom:1px solid var(--line)}.dot{width:9px;height:9px;border-radius:50%;margin-top:5px;background:var(--amber);flex:none}.dot.danger{background:var(--red)}.alert b{display:block;font-size:13px;margin-bottom:3px}.alert span{color:var(--muted);font-size:12px}.progress-row{display:grid;grid-template-columns:82px 1fr 42px;gap:10px;align-items:center;margin:13px 0}.progress{height:8px;background:#ecf0f5;border-radius:99px;overflow:hidden}.progress i{display:block;height:100%;background:linear-gradient(90deg,#2d86ec,#47bd9e);border-radius:99px}.empty{padding:32px;text-align:center;color:var(--muted)}.metric{display:flex;justify-content:space-between;padding:11px 0;border-bottom:1px solid var(--line)}.metric strong{font-size:16px}.import-box{border:1px dashed #99b6dc;border-radius:12px;padding:28px;background:#f8fbff}.import-box h3{margin-bottom:8px}.import-box p{color:var(--muted);line-height:1.65;margin-bottom:15px}.help-list{display:grid;gap:12px}.help{display:flex;gap:13px;padding:13px;border:1px solid var(--line);border-radius:9px}.help-num{background:#e7f0ff;color:#165fc0;font-weight:800;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;flex:none}.help p{margin-top:3px;color:var(--muted);line-height:1.6}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;padding:4px 0 16px}.field{display:grid;gap:6px}.field label{font-size:12px;color:#66758a;font-weight:600}.field.full{grid-column:1/-1}.field input[type=checkbox]{width:17px;height:17px}.check-field{display:flex;align-items:center;gap:8px;padding-top:25px}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.modal-actions{display:flex;justify-content:flex-end;gap:9px}.icon{background:none;border:0;font-size:24px;color:#738096;cursor:pointer}dialog{border:0;border-radius:13px;box-shadow:0 18px 60px rgba(0,0,0,.2);width:min(720px,90vw);padding:21px}dialog::backdrop{background:rgba(15,28,46,.35)}.toast{position:fixed;right:25px;bottom:25px;background:#152b45;color:white;border-radius:8px;padding:11px 14px;box-shadow:var(--shadow);display:none}.toast.show{display:block}.subtle{color:var(--muted);font-size:12px}.bar-chart{height:200px;display:flex;align-items:end;gap:20px;padding:6px 10px}.bar-group{flex:1;text-align:center;height:100%;display:flex;flex-direction:column;justify-content:end;gap:7px;color:#65738a;font-size:12px}.bar{min-height:8px;background:linear-gradient(180deg,#54a2fa,#1d68cf);border-radius:5px 5px 2px 2px;color:white;display:grid;place-items:start center;padding-top:5px;font-weight:700}@media(max-width:900px){.sidebar{width:62px;padding:20px 8px}.brand{padding:0 5px 24px}.brand div,.nav-item{font-size:0}.brand-mark{width:32px}.nav-item{height:42px;padding:0}.nav-item:before{font-size:18px}.nav-item:nth-child(1):before{content:'⌂'}.nav-item:nth-child(2):before{content:'♟'}.nav-item:nth-child(3):before{content:'✓'}.nav-item:nth-child(4):before{content:'◈'}.nav-item:nth-child(5):before{content:'¥'}.nav-item:nth-child(6):before{content:'⌖'}.nav-item:nth-child(7):before{content:'⇩'}.nav-item:nth-child(8):before{content:'?'}.sidebar-foot{display:none}main{margin-left:62px}.cards{grid-template-columns:repeat(2,1fr)}.grid-2{grid-template-columns:1fr}}@media(max-width:620px){header,.content{padding-left:17px;padding-right:17px}.header-actions span{display:none}.cards{grid-template-columns:1fr 1fr}.form-grid{grid-template-columns:1fr}}

/* CRM 2.0 account and market controls */
.hidden{display:none!important}.app-shell{min-height:100vh}.app-shell aside{position:fixed;inset:0 auto 0 0;width:242px;background:#102842;color:#dbe8f7;padding:26px 14px;display:flex;flex-direction:column}.app-shell main{margin-left:242px}.logo{width:35px;height:35px;display:grid;place-items:center;background:#36b57b;border-radius:10px;font-weight:800;color:#fff;font-size:18px}.side-note{font-size:12px;color:#85a0bb;margin:auto 10px 2px;line-height:1.6}.account{display:grid;gap:2px;text-align:right}.account b{color:var(--ink);font-size:13px}.login-screen{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at 30% 20%,#2b6db6 0,transparent 30%),#102842;padding:24px}.login-card{width:min(410px,100%);background:#fff;border-radius:18px;padding:34px;box-shadow:0 20px 70px rgba(0,0,0,.25);display:grid;gap:14px}.login-card .brand-mark{margin-bottom:3px}.login-card h1{font-size:25px}.login-card>span,.login-card small{color:var(--muted);line-height:1.6}.login-card .button{margin-top:4px}.danger-text{color:#b42332;min-height:18px}.segment{display:flex;gap:8px;margin:0 0 15px}.segment button{font:inherit;border:1px solid #ced8e5;background:#fff;border-radius:8px;padding:8px 13px;color:#4a5d76;cursor:pointer}.segment button.active{background:#e8f1ff;color:#135eb8;border-color:#86b6ed;font-weight:700}.segment span{display:inline-grid;place-items:center;min-width:18px;height:18px;border-radius:10px;background:#edf2f7;font-size:11px}.check-list{display:flex;gap:12px;flex-wrap:wrap;padding:8px 0}.check-list label{display:flex;gap:5px;align-items:center;color:#42516a}.field fieldset,.field{border:0;margin:0;padding:0}.field legend,.field>span{font-size:12px;color:#66758a;font-weight:600}.field select[multiple]{min-height:92px}.field input:disabled,.field select:disabled,.field textarea:disabled{background:#f0f3f7;color:#6c7a8d;cursor:not-allowed}@media(max-width:900px){.app-shell aside{width:62px;padding:20px 8px}.app-shell .brand{padding:0 5px 24px}.app-shell .brand>div:not(.logo),.app-shell .nav-item{font-size:0}.app-shell .nav-item{height:42px;padding:0}.app-shell .nav-item:before{font-size:18px}.app-shell .side-note{display:none}.app-shell main{margin-left:62px}}@media(max-width:720px){.header-actions .account,.header-actions .ghost{display:none}.toolbar{align-items:stretch;flex-wrap:wrap}.toolbar input{width:100%}.segment{overflow:auto}.login-card{padding:27px}.app-shell aside{position:static;width:100%;height:auto}.app-shell main{margin-left:0}.app-shell .brand{padding-bottom:12px}.app-shell #nav{display:flex;overflow:auto;gap:5px}.app-shell .nav-item{width:auto;white-space:nowrap}.side-note{display:none}.app-shell .brand>div:not(.logo),.app-shell .nav-item{font-size:13px}.app-shell .nav-item:before{content:''!important;font-size:0}}
