:root{--ink:#1c2630;--muted:#6c7885;--line:#e8edf1;--canvas:#f5f7f8;--panel:#fff;--brand:#1267e3;--mint:#0ba97f;--orange:#e9952d;--red:#d95c5c;--radius:16px;font-family:Inter,"Microsoft YaHei",system-ui,sans-serif;color:var(--ink);background:var(--canvas)}*{box-sizing:border-box}body{margin:0;min-width:960px}.app-shell{display:grid;grid-template-columns:244px 1fr;min-height:100vh}.sidebar{background:#102536;color:#c8d4dd;display:flex;flex-direction:column;padding:24px 14px}.brand{display:flex;gap:11px;align-items:center;padding:0 10px 30px;color:#fff;text-decoration:none;font-size:16px;font-weight:800;letter-spacing:.2px}.brand small{display:block;color:#7790a0;font-size:9px;letter-spacing:1.8px;margin-top:3px}.brand-mark{background:linear-gradient(145deg,#4ea2ff,#1768e5);display:grid;place-items:center;width:32px;height:32px;border-radius:10px;font-size:19px;box-shadow:0 8px 20px #0c183c}.nav-item{font:inherit;display:flex;align-items:center;gap:13px;color:#b3c3ce;width:100%;background:transparent;border:0;border-radius:10px;padding:11px 13px;margin:2px 0;text-align:left;cursor:pointer}.nav-item span{width:17px;text-align:center;font-size:19px;color:#8da9bc}.nav-item:hover{color:#fff;background:#1a3448}.nav-item.active{background:#1e75ec;color:#fff;box-shadow:0 7px 17px #081a2880}.nav-item.active span{color:#fff}.nav-label{font-size:10px;letter-spacing:1.5px;color:#667f90;padding:20px 12px 6px;margin:0}.side-footer{margin:auto 10px 4px;border-top:1px solid #284050;padding:20px 1px 0;display:flex;align-items:center;gap:8px;font-size:12px;color:#93a9b7}.dot{width:7px;height:7px;border-radius:50%;background:#3ed3a0;box-shadow:0 0 0 4px #3ed3a01c}main{min-width:0}.topbar{height:116px;padding:29px 43px 16px;display:flex;justify-content:space-between;align-items:center;background:#fff;border-bottom:1px solid var(--line)}.eyebrow{margin:0 0 5px;font-size:11px;font-weight:700;letter-spacing:1.4px;color:#7f8b95;text-transform:uppercase}h1{font-size:24px;margin:0;letter-spacing:-.5px}h2{font-size:20px;margin:0}.top-actions{display:flex;align-items:center;gap:18px}.sync{font-size:12px;color:var(--muted)}.sync::before{content:"";display:inline-block;width:7px;height:7px;margin-right:7px;background:var(--mint);border-radius:50%}.avatar{width:35px;height:35px;border:0;border-radius:50%;background:#e8f1ff;color:#1768db;font-weight:800}.view{padding:29px 43px 60px;max-width:1550px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}.stat{padding:19px 20px;background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);min-height:123px}.stat .label{font-size:13px;color:var(--muted)}.stat .value{font-size:31px;font-weight:800;margin:11px 0 7px;letter-spacing:-1px}.stat .delta{font-size:12px;color:var(--mint)}.stat .delta.warn{color:var(--orange)}.grid{display:grid;gap:20px}.grid.two{grid-template-columns:1.25fr .75fr}.card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:22px}.warning-card{display:flex;gap:11px;align-items:baseline;margin-bottom:18px;border-color:#f0d6a2;background:#fffaf0;color:#835d1b;font-size:13px}.warning-card span{color:#9b7b42}.card-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.card-title h2{font-size:16px}.subtle{color:var(--muted);font-size:12px}.button{font:inherit;font-size:13px;border-radius:8px;padding:9px 13px;border:1px solid transparent;cursor:pointer}.button.primary{background:var(--brand);color:#fff;box-shadow:0 5px 14px #1267e333}.button.secondary{background:#f5f7f8;color:#4d5b66;border-color:#e5eaee}.button.link{padding:0;color:var(--brand);background:transparent}.button:disabled{opacity:.5;cursor:not-allowed}.toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px}.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse;font-size:13px}.table th{font-size:11px;letter-spacing:.5px;color:#8895a0;font-weight:700;text-align:left;padding:0 10px 11px;border-bottom:1px solid var(--line)}.table td{padding:14px 10px;border-bottom:1px solid #f0f3f5;white-space:nowrap}.table tr:last-child td{border:0}.badge{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:700}.badge::before{content:"";width:5px;height:5px;background:currentColor;border-radius:50%}.badge.connected,.badge.on_sale,.badge.delivered{color:#168861;background:#e8f8f1}.badge.offline,.badge.draft{color:#75818c;background:#eff2f4}.badge.pending,.badge.paid{color:#bd760f;background:#fff3df}.badge.expired,.badge.attention{color:#bf4f4f;background:#ffeded}.account-list{display:grid;gap:10px}.account-row{padding:13px;border:1px solid var(--line);border-radius:11px;display:flex;align-items:center;gap:11px}.account-avatar{width:33px;height:33px;border-radius:10px;background:#eaf2ff;color:#1b6ce3;display:grid;place-items:center;font-weight:800}.account-row strong{display:block;font-size:13px}.account-row small{color:var(--muted)}.account-row .badge{margin-left:auto}.empty{padding:38px 12px;text-align:center;color:var(--muted)}.event{display:grid;grid-template-columns:11px 1fr auto;gap:10px;align-items:center;padding:11px 0;border-bottom:1px solid #f0f3f5;font-size:13px}.event:last-child{border:0}.event-dot{width:7px;height:7px;border-radius:50%;background:#4c92ee}.event time{color:#9aa4ae;font-size:11px}.section-head{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:22px}.section-head h2{font-size:22px}.section-head p{margin:5px 0 0;color:var(--muted);font-size:13px}.actions{display:flex;gap:7px}.stock{font-variant-numeric:tabular-nums}.hero{background:linear-gradient(118deg,#173f78,#1d70d8 60%,#4e9bf0);color:white;border-radius:var(--radius);padding:29px;min-height:170px;position:relative;overflow:hidden}.hero:after{content:"";position:absolute;width:250px;height:250px;border-radius:50%;right:-80px;top:-130px;border:42px solid #ffffff1c}.hero h2{font-size:21px}.hero p{max-width:560px;color:#d9e9ff;font-size:13px;line-height:1.7;margin:10px 0 18px}.hero .button{background:#fff;color:#1555af}.rule-content{max-width:390px;overflow:hidden;text-overflow:ellipsis}.switch{width:33px;height:18px;border:0;border-radius:99px;background:#ccd4dc;position:relative;cursor:pointer}.switch::after{content:"";position:absolute;left:3px;top:3px;width:12px;height:12px;background:#fff;border-radius:50%;transition:.16s}.switch.on{background:var(--mint)}.switch.on::after{left:18px}dialog{border:0;padding:0;border-radius:18px;width:min(520px,calc(100vw - 40px));box-shadow:0 22px 80px #11243e50}dialog::backdrop{background:#10253690}dialog form{padding:25px}dialog header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px}dialog footer{display:flex;justify-content:flex-end;gap:9px;margin-top:23px}.icon-button{border:0;background:#f0f3f5;width:29px;height:29px;border-radius:9px;font-size:19px;line-height:1;color:#63717b;cursor:pointer}.modal-fields{display:grid;gap:14px}.task-note{border-left:3px solid var(--brand);padding:10px 12px;background:#f3f7ff;border-radius:7px;font-size:13px;line-height:1.65;color:#445362}.field label{display:block;font-size:12px;color:#65727d;font-weight:700;margin-bottom:6px}.field input,.field textarea,.field select{width:100%;font:inherit;padding:10px 11px;border:1px solid #dce4e9;border-radius:9px;outline:none}.field textarea{min-height:90px;resize:vertical}.field input:focus,.field textarea:focus,.field select:focus{border-color:#5b9eeb;box-shadow:0 0 0 3px #4b98e41e}#toast{position:fixed;right:24px;bottom:24px;display:none;background:#173242;color:#fff;border-radius:10px;padding:12px 15px;font-size:13px;box-shadow:0 14px 30px #10253644}#toast.show{display:block}.metric-list{display:grid;gap:13px}.metric-line{display:flex;justify-content:space-between;font-size:13px}.metric-line span{color:var(--muted)}.health{display:flex;gap:8px;align-items:center;padding:11px 13px;background:#eff9f4;border-radius:10px;color:#287f5d;font-size:12px;margin-top:15px}
.section-gap{margin-top:20px}.account-filter{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}.account-filter select{font:inherit;background:#f5f7fa;border:1px solid #dce4e9;border-radius:8px;padding:8px 10px;max-width:190px;color:var(--ink)}.actions{flex-wrap:wrap}.badge.available{color:#168861;background:#e8f8f1}.badge.revoked,.badge.requires_reimport{color:#75818c;background:#eff2f4}code{font-family:Consolas,monospace;font-size:12px}.button:focus-visible,.nav-item:focus-visible{outline:3px solid #80b5ff;outline-offset:3px}dialog{max-height:90vh;overflow:auto}button,input,select,textarea{font-family:inherit}.check-line{display:flex;align-items:center;gap:9px;font-size:13px}.form-actions{margin-top:20px}@media(max-width:1200px){.view{padding:24px}.topbar{padding:24px;height:auto;min-height:112px;gap:20px}.top-actions{gap:10px;flex-wrap:wrap;justify-content:flex-end}.sync{display:none}.grid.two{grid-template-columns:1fr}.app-shell{grid-template-columns:210px 1fr}}@media(max-width:760px){body{min-width:360px}.app-shell{display:block}.sidebar{padding:12px}.brand{padding:4px 8px 14px}.sidebar nav{display:flex;overflow:auto;gap:5px}.nav-item{width:auto;white-space:nowrap;padding:10px}.nav-label,.side-footer{display:none}.topbar{align-items:flex-start;padding:20px}.top-actions{max-width:220px}.avatar{display:none}.view{padding:20px 14px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.section-head{gap:12px;align-items:flex-start}.section-head p{line-height:1.6}.warning-card{flex-direction:column}.card{padding:16px}.card-title{gap:10px;align-items:flex-start}.account-filter select{max-width:130px}h1{font-size:21px}.button{white-space:nowrap}}
.preview-output:not(:empty){padding:14px;background:#edf8f2;border:1px solid #cee9dc;border-radius:10px;color:#246b4a;font-size:13px;line-height:1.7}.preview-output p{margin:8px 0 0;white-space:pre-wrap}.field select:invalid{color:#7c8791}
.sidebar{scrollbar-width:none}.sidebar::-webkit-scrollbar{display:none}
.sidebar{background:#f9fbfe;color:#475569;border-right:1px solid #e5ebf3;padding-top:18px}
.sidebar .nav-item{color:#526176}.sidebar .nav-item span{color:#7b8da5}
.sidebar .nav-item:hover{color:#2468ca;background:#edf3fc}.sidebar .nav-item:hover span{color:#2468ca}
.sidebar .nav-item.active{background:#e7f0ff;color:#1765d1;box-shadow:none;font-weight:600}.sidebar .nav-item.active span{color:#1765d1}
.sidebar .nav-label{color:#8b9bb0}.sidebar .side-footer{color:#7b8ba0;border-top-color:#e3eaf3}
