
:root{
 --navy:#031428;--navy2:#061d39;--navy3:#0a294d;--blue:#0a73ff;--blue2:#2d8cff;
 --orange:#d65c0b;--ink:#132034;--muted:#687386;--line:#e3e8ef;--soft:#f5f7fa;
 --white:#fff;--green:#16a46c;--red:#d44a54;--amber:#d88b16;--shadow:0 14px 40px rgba(15,35,60,.09)
}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,"Segoe UI",Arial,sans-serif;color:var(--ink);background:#eef2f6}button,input,select{font:inherit}button{cursor:pointer}.app{min-height:100vh;display:grid;grid-template-columns:270px 1fr}.sidebar{position:fixed;inset:0 auto 0 0;width:270px;background:linear-gradient(180deg,#031428,#061a31 58%,#041426);color:#dce8f6;border-right:1px solid rgba(255,255,255,.07);display:flex;flex-direction:column;z-index:20}.brand{height:86px;padding:0 22px;display:flex;align-items:center;gap:12px;border-bottom:1px solid rgba(255,255,255,.08)}.brand img{width:48px;height:48px;object-fit:contain}.brand-name{font-size:18px;font-weight:850;letter-spacing:-.025em;line-height:1}.brand-name .pipe{color:#9cb0c1}.brand-name .forge{color:var(--orange)}.brand-name small{display:block;margin-top:5px;color:#8398ab;font-size:8px;letter-spacing:.45em;font-weight:800}.orgbox{margin:18px 16px 12px;padding:13px 14px;border:1px solid rgba(120,164,209,.18);background:rgba(255,255,255,.035);border-radius:10px}.orgbox small{display:block;color:#7990a8;font-size:9px;text-transform:uppercase;letter-spacing:.13em;margin-bottom:3px}.orgbox strong{display:block;font-size:12px;color:#fff}.orgbox span{font-size:10px;color:#7690aa}.nav{padding:6px 10px}.nav-title{padding:10px 12px 6px;color:#647b92;font-size:9px;text-transform:uppercase;letter-spacing:.16em;font-weight:800}.nav button{border:0;background:transparent;color:#9fb1c5;width:100%;display:flex;align-items:center;gap:12px;padding:11px 12px;border-radius:8px;text-align:left;font-size:12px;font-weight:650;transition:.18s}.nav button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}.nav button:hover{background:rgba(255,255,255,.055);color:#fff}.nav button.active{background:linear-gradient(90deg,rgba(10,115,255,.22),rgba(10,115,255,.07));color:#fff;box-shadow:inset 3px 0 #2d8cff}.badge-side{margin-left:auto;min-width:21px;height:21px;border-radius:10px;padding:0 6px;background:#103c6b;color:#6db5ff;font-size:9px;display:grid;place-items:center}.sidebar-foot{margin-top:auto;padding:16px;border-top:1px solid rgba(255,255,255,.08)}.support{padding:13px;border:1px solid rgba(255,255,255,.09);border-radius:9px;background:rgba(255,255,255,.035);font-size:10px;color:#8da3b8}.support strong{display:block;color:#fff;margin-bottom:3px;font-size:11px}.main{grid-column:2;min-width:0}.topbar{height:70px;background:rgba(255,255,255,.97);border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 30px;position:sticky;top:0;z-index:15}.crumb{font-size:12px;color:#7b8695}.crumb strong{color:#17263a}.top-actions{margin-left:auto;display:flex;align-items:center;gap:12px}.icon-btn{width:38px;height:38px;border:1px solid #e1e6ec;background:#fff;border-radius:9px;display:grid;place-items:center;color:#5f6e80;position:relative}.icon-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}.notif-dot{position:absolute;right:7px;top:7px;width:7px;height:7px;background:#e15d5d;border:2px solid #fff;border-radius:50%}.profile{display:flex;align-items:center;gap:10px;padding-left:5px}.avatar{width:34px;height:34px;border-radius:50%;background:linear-gradient(135deg,#0a73ff,#2d8cff);color:#fff;display:grid;place-items:center;font-weight:800;font-size:11px}.profile b{font-size:11px;display:block}.profile small{font-size:9px;color:#8290a0}.content{padding:30px 34px 48px;max-width:1550px;margin:auto}.page{display:none}.page.active{display:block}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:24px}.page-head h1{margin:0;font-size:25px;letter-spacing:-.02em}.page-head p{margin:6px 0 0;color:var(--muted);font-size:12px}.btn{border:0;border-radius:8px;min-height:40px;padding:0 16px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:750;font-size:11px}.btn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2}.btn-primary{background:linear-gradient(135deg,#0a73ff,#075fcf);color:#fff;box-shadow:0 7px 18px rgba(10,115,255,.2)}.btn-light{background:#fff;border:1px solid #dfe5ec;color:#415064}.btn-danger{background:#fff1f2;border:1px solid #ffd5d8;color:#c73e49}.btn-small{min-height:32px;padding:0 11px;font-size:10px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:18px}.card{background:#fff;border:1px solid #e2e7ee;border-radius:12px;box-shadow:0 5px 20px rgba(20,40,70,.04)}.stat{padding:18px 19px;display:grid;grid-template-columns:45px 1fr auto;align-items:center;gap:13px}.stat-icon{width:44px;height:44px;border-radius:11px;background:#eef6ff;color:#177df3;display:grid;place-items:center}.stat-icon.eng{background:#fff2e9;color:#dd6615}.stat-icon.users{background:#eef9f5;color:#15946a}.stat-icon.devices{background:#f3f0ff;color:#7457d8}.stat-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8}.stat small{display:block;color:#7c8998;font-size:9px;text-transform:uppercase;letter-spacing:.08em;font-weight:750}.stat strong{display:block;font-size:23px;line-height:1.2;margin-top:3px}.stat .meta{font-size:9px;color:#84909e;text-align:right}.stat .meta.good{color:#1a9d71}.grid2{display:grid;grid-template-columns:1.45fr .8fr;gap:18px;margin-bottom:18px}.panel-head{padding:17px 18px 14px;border-bottom:1px solid #edf0f4;display:flex;align-items:center;justify-content:space-between;gap:15px}.panel-head h2{margin:0;font-size:13px}.panel-head span{font-size:9px;color:#8b96a4}.panel-body{padding:17px 18px}.seat-row{display:grid;grid-template-columns:190px 1fr 90px;gap:17px;align-items:center;padding:14px 0;border-bottom:1px solid #eef1f4}.seat-row:last-child{border-bottom:0}.seat-label b{display:block;font-size:11px}.seat-label span{font-size:9px;color:#8491a1}.seat-track{height:8px;background:#edf1f5;border-radius:999px;overflow:hidden}.seat-fill{height:100%;border-radius:999px;background:linear-gradient(90deg,#0a73ff,#55a7ff)}.seat-fill.eng{background:linear-gradient(90deg,#d85a0a,#f09948)}.seat-count{text-align:right;font-size:11px;font-weight:800}.seat-count span{display:block;color:#8792a0;font-size:9px;font-weight:500}.quick-actions{display:grid;gap:9px}.quick{border:1px solid #e6ebf0;border-radius:9px;padding:12px 13px;background:#fafbfd;display:flex;align-items:center;gap:11px;color:#3e4e62}.quick:hover{border-color:#bad7fa;background:#f5faff}.quick-icon{width:34px;height:34px;border-radius:8px;background:#edf5ff;color:#197df0;display:grid;place-items:center}.quick svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8}.quick b{font-size:10px;display:block}.quick span{font-size:9px;color:#8894a2}.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse;min-width:820px}.table th{font-size:8.5px;text-transform:uppercase;letter-spacing:.08em;color:#8c97a5;font-weight:800;text-align:left;padding:11px 12px;border-bottom:1px solid #e9edf2;background:#fafbfd}.table td{padding:12px;border-bottom:1px solid #eef1f4;font-size:10px;color:#425165}.table tr:last-child td{border-bottom:0}.table tr:hover td{background:#fbfdff}.person{display:flex;align-items:center;gap:9px}.mini-avatar{width:30px;height:30px;border-radius:50%;background:#eaf3ff;color:#1372dd;display:grid;place-items:center;font-weight:800;font-size:9px;flex:0 0 auto}.person b{font-size:10px;color:#243246;display:block}.person small{font-size:8.5px;color:#8b97a5}.status{display:inline-flex;align-items:center;gap:6px;font-size:9px;font-weight:750}.dot{width:7px;height:7px;border-radius:50%;background:#9aa5b2}.status.online .dot{background:#18a473;box-shadow:0 0 0 3px rgba(24,164,115,.12)}.status.warn .dot{background:#e89b23}.status.block .dot{background:#d64f59}.pill{display:inline-flex;align-items:center;min-height:23px;padding:0 8px;border-radius:999px;font-size:8px;font-weight:800;background:#eef4fb;color:#526477;border:1px solid #e2e9f1}.pill.blue{background:#edf6ff;color:#1474dc;border-color:#d6eaff}.pill.orange{background:#fff3ea;color:#c65b13;border-color:#ffe0c9}.pill.green{background:#edf9f4;color:#158a63;border-color:#d7f0e4}.event-list{display:grid}.event{display:grid;grid-template-columns:35px 1fr auto;gap:11px;padding:12px 0;border-bottom:1px solid #eef1f4;align-items:start}.event:last-child{border-bottom:0}.event-icon{width:31px;height:31px;border-radius:8px;background:#eef6ff;color:#1679e6;display:grid;place-items:center}.event-icon.warn{background:#fff5e8;color:#d78215}.event-icon.danger{background:#fff0f1;color:#cc4651}.event-icon svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8}.event b{font-size:10px;display:block}.event p{margin:2px 0 0;color:#7b8796;font-size:9px}.event time{font-size:8px;color:#96a0ac;white-space:nowrap}.filterbar{display:flex;gap:10px;margin-bottom:14px}.search{position:relative;flex:1;max-width:340px}.search svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:15px;height:15px;fill:none;stroke:#8290a0;stroke-width:1.8}.search input,.select{width:100%;height:38px;border:1px solid #dfe5eb;background:#fff;border-radius:8px;padding:0 12px;color:#334255;font-size:10px;outline:none}.search input{padding-left:35px}.search input:focus,.select:focus{border-color:#8bbdf5;box-shadow:0 0 0 3px rgba(10,115,255,.08)}.select{width:auto;min-width:145px}.license-cards{display:grid;grid-template-columns:1fr 1fr;gap:18px}.license-card{padding:20px}.license-top{display:flex;justify-content:space-between;gap:15px;margin-bottom:18px}.license-top h3{margin:0;font-size:15px}.license-top p{margin:4px 0 0;color:#7e8b99;font-size:9px}.license-price{text-align:right}.license-price strong{font-size:21px}.license-price span{display:block;font-size:8px;color:#8994a2}.license-meter{background:#f5f7fa;border-radius:10px;padding:15px;margin-bottom:15px}.meter-row{display:flex;justify-content:space-between;font-size:9px;margin-bottom:8px}.meter-row strong{font-size:11px}.meterbar{height:7px;background:#e6ebf1;border-radius:999px;overflow:hidden}.meterbar i{display:block;height:100%;background:#147ef1;border-radius:999px}.meterbar i.eng{background:#df6a17}.license-meta{display:grid;grid-template-columns:1fr 1fr;gap:10px}.meta-box{border:1px solid #e8ecf1;border-radius:8px;padding:10px;background:#fbfcfd}.meta-box small{font-size:8px;color:#8c97a5;display:block}.meta-box b{font-size:10px}.device-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.device-card{padding:16px}.device-head{display:flex;align-items:center;gap:11px;margin-bottom:12px}.device-icon{width:38px;height:38px;border-radius:9px;background:#eef5ff;color:#1a78e1;display:grid;place-items:center}.device-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}.device-head b{font-size:10px;display:block}.device-head span{font-size:8px;color:#8b97a4}.device-data{display:grid;gap:7px;font-size:9px;color:#728091}.device-data div{display:flex;justify-content:space-between;gap:12px}.device-data strong{color:#3d4c60;font-weight:700}.org-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-card{padding:20px}.form-card h3{margin:0 0 15px;font-size:13px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field label{display:block;font-size:8px;font-weight:800;color:#778494;text-transform:uppercase;letter-spacing:.06em;margin-bottom:5px}.field input,.field select{width:100%;height:38px;border:1px solid #dfe5eb;border-radius:8px;padding:0 11px;background:#fff;font-size:10px}.field.full{grid-column:1/-1}.notice{display:flex;gap:11px;padding:13px 14px;border:1px solid #dceafb;background:#f4f9ff;border-radius:9px;color:#3c526a;font-size:9px;margin-bottom:18px}.notice svg{width:17px;height:17px;fill:none;stroke:#147ae6;stroke-width:1.8;flex:0 0 auto}.modal-backdrop{position:fixed;inset:0;background:rgba(2,15,30,.58);backdrop-filter:blur(3px);display:none;align-items:center;justify-content:center;padding:24px;z-index:50}.modal-backdrop.open{display:flex}.modal{width:min(540px,100%);background:#fff;border-radius:14px;box-shadow:0 30px 80px rgba(0,0,0,.3);overflow:hidden}.modal-head{padding:18px 20px;border-bottom:1px solid #ebeff3;display:flex;align-items:center;justify-content:space-between}.modal-head h3{margin:0;font-size:14px}.modal-close{border:0;background:#f2f5f8;width:30px;height:30px;border-radius:8px;color:#5b697a}.modal-body{padding:20px}.modal-foot{padding:15px 20px;border-top:1px solid #edf0f3;display:flex;justify-content:flex-end;gap:9px}.toast{position:fixed;right:26px;bottom:24px;background:#102538;color:#fff;padding:13px 16px;border-radius:9px;box-shadow:0 18px 45px rgba(0,0,0,.2);font-size:10px;display:none;z-index:70}.toast.show{display:block;animation:pop .25s ease}@keyframes pop{from{transform:translateY(8px);opacity:0}to{transform:none;opacity:1}}.mobile-top{display:none}
@media(max-width:1150px){.stats{grid-template-columns:repeat(2,1fr)}.grid2{grid-template-columns:1fr}.device-grid{grid-template-columns:1fr 1fr}.license-cards{grid-template-columns:1fr}.org-grid{grid-template-columns:1fr}}
@media(max-width:820px){.app{display:block}.sidebar{transform:translateX(-100%);transition:.2s}.sidebar.open{transform:none}.main{grid-column:auto}.topbar{padding:0 18px}.mobile-top{display:grid;place-items:center;width:38px;height:38px;border:1px solid #dfe5ec;border-radius:8px;background:#fff;margin-right:12px}.mobile-top svg{width:18px;height:18px}.content{padding:22px 18px}.stats{grid-template-columns:1fr}.page-head{align-items:flex-start;flex-direction:column}.device-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.profile .profile-text{display:none}.seat-row{grid-template-columns:1fr}.seat-count{text-align:left}.filterbar{flex-wrap:wrap}.search{max-width:none;min-width:100%}}


.brand-mark{width:48px;height:48px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(145deg,#e06412,#b64205);color:#fff;font-size:17px;font-weight:900;letter-spacing:-.04em;box-shadow:inset 0 0 0 1px rgba(255,255,255,.17),0 8px 20px rgba(0,0,0,.16)}
.brand-mark.large{width:58px;height:58px;border-radius:14px;font-size:20px}
.portal-hidden{display:none!important}
.login-shell{min-height:100vh;display:grid;place-items:center;padding:28px;background:radial-gradient(circle at 70% 5%,rgba(10,115,255,.18),transparent 32%),linear-gradient(145deg,#021224,#061d39 60%,#031428)}
.login-shell.hidden{display:none}
.login-card{width:min(440px,100%);background:#fff;border:1px solid rgba(255,255,255,.12);border-radius:18px;box-shadow:0 30px 90px rgba(0,0,0,.34);padding:30px}
.login-brand{display:flex;align-items:center;gap:13px;margin-bottom:28px}.login-brand .brand-name{font-size:20px}.login-brand .brand-name small{color:#6f8294}
.login-copy{margin-bottom:22px}.login-kicker{font-size:9px;text-transform:uppercase;letter-spacing:.15em;color:#0a73ff;font-weight:850}.login-copy h1{font-size:25px;letter-spacing:-.03em;margin:7px 0 8px}.login-copy p{font-size:11px;line-height:1.65;color:#6c7888;margin:0}
.login-field{display:block;margin:12px 0}.login-field span{display:block;font-size:8.5px;font-weight:800;text-transform:uppercase;letter-spacing:.07em;color:#6f7d8d;margin-bottom:6px}.login-field input{width:100%;height:44px;border:1px solid #dce3eb;border-radius:9px;padding:0 12px;outline:none;color:#243246}.login-field input:focus{border-color:#76b0f1;box-shadow:0 0 0 3px rgba(10,115,255,.08)}
.login-submit{width:100%;margin-top:8px;height:44px}.login-error{min-height:17px;margin-top:10px;color:#c83d49;font-size:9.5px}.login-foot{border-top:1px solid #edf0f4;margin-top:18px;padding-top:16px;color:#8894a2;font-size:9px;text-align:center}
.portal-logout{margin-left:2px}.loading-mask{opacity:.55;pointer-events:none}
.empty-state{padding:24px;text-align:center;color:#8793a1;font-size:10px}
.invite-result{margin-top:16px;padding:13px;border:1px solid #dbe9f9;background:#f5f9fe;border-radius:9px}.invite-result strong{font-size:10px}.invite-result p{font-size:9px;color:#68788a;line-height:1.5}.invite-token-row{display:flex;gap:8px;align-items:center}.invite-token-row code{flex:1;min-width:0;padding:8px 9px;border-radius:7px;background:#10263b;color:#d9edff;overflow:auto;font-size:8.5px}
button:disabled{opacity:.58;cursor:not-allowed}
[data-meter],[data-license-meter]{width:0;transition:width .25s ease}
