:root{--bg:#07111f;--bg2:#0a1627;--panel:#0d1c30;--panel2:#10233b;--line:#1b3551;--text:#e8f1fa;--muted:#7890a8;--cyan:#2fb7ff;--cyan2:#00d4ff;--green:#34d399;--red:#fb7185;--amber:#fbbf24;--shadow:0 18px 60px rgba(0,0,0,.32)}*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,Segoe UI,Arial,sans-serif;background:radial-gradient(circle at 80% -10%,#12365c 0,#07111f 36%,#050c16 100%);color:var(--text)}button,input{font:inherit}.shell{display:grid;grid-template-columns:238px 1fr;min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;padding:22px 14px;background:linear-gradient(180deg,#091728 0,#07111f 100%);border-right:1px solid var(--line);display:flex;flex-direction:column}.logo-row{display:flex;gap:11px;align-items:center;padding:0 8px 22px}.logo-row strong{display:block;font-size:20px}.logo-row span{display:block;color:#8ea6bd;font-size:11px;margin-top:2px}.brand-mark{width:64px;height:64px;border-radius:16px;display:grid;place-items:center;font-weight:900;font-size:38px;color:white;background:linear-gradient(140deg,#08a9ff,#3857ff);box-shadow:0 0 35px rgba(47,183,255,.25)}.brand-mark.small{width:40px;height:40px;border-radius:10px;font-size:23px}nav{display:grid;gap:5px}nav button{border:0;background:transparent;color:#91a8be;text-align:left;padding:12px 14px;border-radius:9px;cursor:pointer;display:flex;gap:12px;align-items:center}nav button:hover,nav button.active{background:linear-gradient(90deg,rgba(47,183,255,.18),rgba(47,183,255,.04));color:white;box-shadow:inset 3px 0 0 var(--cyan)}.sidebar-bottom{margin-top:auto;padding:14px 10px;color:#8098ae;font-size:12px;border-top:1px solid var(--line)}.green-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 10px rgba(52,211,153,.55);margin-right:8px}main{min-width:0}.topbar{height:68px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 28px;background:rgba(7,17,31,.78);backdrop-filter:blur(10px);position:sticky;top:0;z-index:5}.search{color:#6e879f;background:#0b1a2c;border:1px solid var(--line);padding:10px 16px;border-radius:9px;width:min(560px,52vw)}.top-actions{display:flex;gap:10px;align-items:center;color:#7990a6}.top-actions button,.panel button,.section-title button,.terminal-head button{border:1px solid var(--line);background:#10243b;color:#dceafa;padding:9px 12px;border-radius:8px;cursor:pointer}.view{display:none;padding:27px 30px 18px}.active-view{display:block}.hero,.section-title{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.hero h2,.section-title h2{margin:0;font-size:25px}.hero p,.section-title p{color:var(--muted);margin:7px 0 0}.system-ok{border:1px solid rgba(52,211,153,.25);background:rgba(52,211,153,.07);padding:10px 13px;border-radius:10px;color:#a8f0d0;font-size:13px}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:16px}.cards article,.panel{background:linear-gradient(180deg,rgba(16,35,59,.94),rgba(10,25,43,.96));border:1px solid var(--line);border-radius:13px;box-shadow:var(--shadow)}.cards article{padding:20px}.metric{font-size:32px;font-weight:800;margin-bottom:6px}.metric.green{color:var(--green)}.metric.red{color:var(--red)}.metric.blue{color:var(--cyan)}.cards span{color:#839ab1;font-size:13px}.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}.panel{padding:18px}.panel-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid rgba(27,53,81,.7);padding-bottom:13px;margin-bottom:15px}.panel h3{margin:0}.panel-head button{border:0;background:transparent;color:var(--cyan);padding:0}.donut-wrap{display:flex;align-items:center;gap:28px;padding:10px}.donut{width:136px;height:136px;border-radius:50%;border:15px solid #183d5b;border-top-color:var(--cyan);border-right-color:#3765ff;display:grid;place-content:center;text-align:center;box-shadow:inset 0 0 35px rgba(47,183,255,.08)}.donut span{font-size:30px;font-weight:800}.donut small{color:var(--muted)}#fleetLegend{display:grid;gap:9px;color:#9fb2c4}.health{display:grid;gap:14px}.health div{display:flex;justify-content:space-between;padding-bottom:11px;border-bottom:1px solid rgba(27,53,81,.55)}.health span{color:#8ea3b7}.health .ok{color:var(--green)}.device-list{display:grid;gap:8px}.device-item{padding:11px 12px;border:1px solid var(--line);background:#0a192b;border-radius:9px;display:flex;align-items:center;justify-content:space-between;gap:10px}.device-item button{border:0;background:transparent;color:var(--cyan);cursor:pointer}.device-meta{display:flex;align-items:center;gap:11px}.device-icon{width:34px;height:34px;border:1px solid #28547a;border-radius:8px;display:grid;place-items:center;background:#0d233b;color:var(--cyan)}.device-name strong,.user-row strong{display:block}.device-name span,.user-row span,.muted{display:block;color:var(--muted);font-size:12px;margin-top:3px}.badge{font-size:11px;padding:4px 8px;border-radius:20px;background:#24384c;color:#aec0d2}.badge.online{background:rgba(52,211,153,.12);color:var(--green)}.badge.offline{background:rgba(251,113,133,.12);color:var(--red)}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:12px 10px;border-bottom:1px solid rgba(27,53,81,.62);font-size:13px}th{color:#7890a8;font-weight:600}td{color:#c9d8e7}.primary{background:linear-gradient(135deg,#0e86ff,#18b9ff)!important;border-color:#2ca9ff!important;color:white!important}.danger{background:rgba(251,113,133,.12)!important;border-color:rgba(251,113,133,.35)!important;color:#ff9dac!important}.remote-layout{display:grid;grid-template-columns:280px 1fr;gap:16px}.devices-panel{min-height:600px}.terminal-panel{padding:0;overflow:hidden}.terminal-head{height:66px;padding:13px 16px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.terminal-head strong{display:block}.terminal-head span{display:block;color:var(--muted);font-size:12px;margin-top:4px}.terminal-output{height:480px;overflow:auto;margin:0;padding:18px;background:#02070d;color:#c7f4df;font:13px/1.55 Consolas,'Cascadia Mono',monospace;white-space:pre-wrap}.terminal-input-row{height:54px;background:#07111f;border-top:1px solid var(--line);display:flex;align-items:center;gap:8px;padding:8px 12px}.terminal-input-row span{color:var(--cyan);font:14px Consolas,monospace}.terminal-input-row input{flex:1;border:0;outline:0;background:transparent;color:white;font:14px Consolas,monospace}.terminal-input-row button{padding:8px 14px;border:0;border-radius:7px}.planned{padding:28px;border-style:dashed}.planned h3{color:var(--amber)}.audit-list{display:grid;gap:8px}.audit-row{display:grid;grid-template-columns:165px 120px 1fr;gap:10px;padding:9px 0;border-bottom:1px solid rgba(27,53,81,.5);font-size:12px}.audit-row span:first-child{color:#70879e}.audit-row b{color:#9ecfff}.empty,.empty-state{color:#7289a0;padding:18px 4px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:0}.settings-grid div{padding:16px;border-bottom:1px solid rgba(27,53,81,.55)}.settings-grid span{display:block;color:var(--muted);font-size:12px;margin-bottom:5px}.settings-grid a,footer a,.developer a{color:var(--cyan);text-decoration:none}.user-row{display:flex;gap:12px;align-items:center}.avatar{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#174e78;color:white;font-weight:800}.user-row .badge{margin-left:auto}footer{display:flex;justify-content:space-between;color:#6f879d;font-size:11px;padding:15px 30px 25px}.overlay{position:fixed;z-index:100;inset:0;background:rgba(2,8,15,.92);display:grid;place-items:center;backdrop-filter:blur(10px)}.hidden{display:none!important}.login-card{width:min(390px,92vw);background:linear-gradient(180deg,#0d1d31,#091523);border:1px solid var(--line);border-radius:18px;padding:34px;box-shadow:0 25px 100px rgba(0,0,0,.55);text-align:center}.login-card .brand-mark{margin:0 auto 13px}.login-card h1{margin:0;font-size:29px}.login-card>p{margin:3px 0 24px;color:var(--muted)}.login-card label{display:block;text-align:left;color:#91a6ba;font-size:12px;margin-bottom:12px}.login-card input{display:block;width:100%;margin-top:6px;padding:11px 12px;border:1px solid var(--line);background:#07111e;border-radius:8px;color:white;outline:none}.full{width:100%;padding:11px;border-radius:8px}.developer{color:#677e94;font-size:11px;margin-top:22px}.error{min-height:18px;color:var(--red);font-size:12px;margin-top:10px}@media(max-width:1000px){.shell{grid-template-columns:76px 1fr}.logo-row>div:last-child,nav span,.sidebar-bottom span:last-child{display:none}.logo-row{padding-left:4px}.grid-2,.remote-layout{grid-template-columns:1fr}.cards{grid-template-columns:repeat(2,1fr)}.devices-panel{min-height:auto}.sidebar{padding-left:9px;padding-right:9px}nav button{justify-content:center}.search{display:none}}@media(max-width:650px){.cards{grid-template-columns:1fr 1fr}.view{padding:20px 14px}.topbar{padding:0 14px}.grid-2{grid-template-columns:1fr}.settings-grid{grid-template-columns:1fr}.terminal-output{height:380px}footer{padding:15px;gap:10px;flex-direction:column}}

/* Nexvanta v0.1.3 profile, update and theme controls */
.brand-image{width:52px;height:52px;object-fit:contain}.brand-image.small{width:42px;height:42px}.login-logo{display:block;margin:0 auto 14px;width:72px;height:72px}.sidebar-bottom a{color:var(--cyan);text-decoration:none}.profile-wrap{position:relative}.profile-btn{display:flex!important;align-items:center;gap:8px;min-width:156px}.profile-btn span:nth-child(2){display:grid;text-align:left}.profile-btn small{color:var(--muted);font-size:10px}.avatar.mini{width:30px;height:30px}.profile-menu{position:absolute;right:0;top:48px;width:245px;background:var(--panel);border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow);overflow:hidden;z-index:30}.profile-menu>button{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;padding:13px 15px;color:var(--text)}.profile-menu>button:hover,.theme-options button:hover{background:var(--panel2)}.theme-block{padding:12px 15px;border-bottom:1px solid var(--line)}.theme-block>span{display:block;color:var(--muted);font-size:12px;margin-bottom:8px}.theme-options{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.theme-options button{padding:8px 4px;background:transparent;border:1px solid var(--line);border-radius:7px;color:var(--text);cursor:pointer}.theme-options button.selected{background:#1769d1;color:white;border-color:#2686ff}.modal-buttons{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}.quick-panel{position:relative}.quick-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding-right:190px}.quick-actions button{min-height:52px}.watermark{position:absolute;right:28px;bottom:24px;display:grid;text-align:center;justify-items:center;color:var(--muted)}.watermark img{width:74px;height:74px;opacity:.55}.watermark b{font-size:18px;color:var(--text);margin-top:5px}.watermark small{font-size:11px}.update-actions{display:flex;align-items:center;gap:15px;margin-top:18px}.update-actions .muted{margin:0}.theme-black{--bg:#000;--bg2:#050505;--panel:#090909;--panel2:#111;--line:#242424;--text:#f3f6fa;--muted:#8e98a3;background:#000}.theme-black .sidebar,.theme-black .topbar{background:#050505}.theme-black .cards article,.theme-black .panel{background:#090909}.theme-black .terminal-output{background:#000}.theme-white{--bg:#edf3f8;--bg2:#fff;--panel:#fff;--panel2:#eef4fa;--line:#cbd8e5;--text:#122033;--muted:#60758a;--shadow:0 18px 55px rgba(23,53,82,.14);background:#eef4f9;color:var(--text)}.theme-white .sidebar{background:#fff}.theme-white .topbar{background:rgba(255,255,255,.92)}.theme-white .cards article,.theme-white .panel{background:#fff}.theme-white .search,.theme-white .device-item{background:#f5f8fb}.theme-white .terminal-output{background:#0b1119;color:#cdf5dc}.theme-white .terminal-input-row{background:#f8fbfd}.theme-white .login-card{background:#fff}.theme-white .login-card input{background:#f8fbfd;color:#122033}.theme-white .profile-menu{background:#fff}.theme-white nav button{color:#536a80}.theme-current{}
@media(max-width:800px){.profile-btn span:nth-child(2),#clock{display:none}.profile-btn{min-width:auto}.quick-actions{padding-right:0}.watermark{display:none}}

/* Nexvanta v0.1.3 unique Windows agent generator */
.agent-generator{margin-bottom:16px}.agent-generator .panel-head p{margin:6px 0 0;color:var(--muted);font-size:12px;max-width:850px}.agent-generator-grid{display:grid;grid-template-columns:minmax(300px,1fr) auto auto;gap:14px;align-items:end}.agent-generator-grid label>span{display:block;color:var(--muted);font-size:12px;margin-bottom:6px}.agent-generator-grid input[type=url]{width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--bg2);color:var(--text);outline:none}.agent-check{display:flex!important;align-items:center;gap:8px;padding-bottom:10px;white-space:nowrap}.agent-check span{margin:0!important}.agent-generator-grid button{min-height:40px}.agent-generate-status{margin-top:12px;word-break:break-word}.key-fingerprint{font:11px Consolas,'Cascadia Mono',monospace;color:#8fcfff;cursor:help}
@media(max-width:1050px){.agent-generator-grid{grid-template-columns:1fr}.agent-check{padding-bottom:0;white-space:normal}}

.ldap-panel{margin-top:16px}.ldap-panel .panel-head p{color:var(--muted);margin:5px 0 0;font-size:12px}.ldap-form{display:grid;grid-template-columns:1fr 1fr;gap:14px}.ldap-form label{display:grid;gap:6px;color:var(--muted);font-size:12px}.ldap-form input[type=text],.ldap-form select,.ldap-test input{width:100%;padding:10px 11px;border:1px solid var(--line);border-radius:8px;background:#07111e;color:var(--text);outline:none}.check-row{display:flex!important;align-items:center;gap:9px!important}.check-row input{width:auto!important}.ldap-actions{grid-column:1/-1;display:flex;align-items:center;gap:12px}.ldap-test{margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}.ldap-test h3{margin-bottom:12px}.ldap-test-grid{display:grid;grid-template-columns:1fr 1fr auto;gap:10px}.login-hint{font-size:11px!important;line-height:1.45;margin-top:-14px!important;margin-bottom:20px!important}@media(max-width:760px){.ldap-form{grid-template-columns:1fr}.ldap-actions{grid-column:auto}.ldap-test-grid{grid-template-columns:1fr}}

/* Nexvanta v0.1.5 - complete White theme readability */
.theme-white,
.theme-white main,
.theme-white .view,
.theme-white .sidebar,
.theme-white .topbar,
.theme-white .panel,
.theme-white .cards article,
.theme-white .profile-menu,
.theme-white .login-card { color:#000; }
.theme-white .logo-row strong,
.theme-white .logo-row span,
.theme-white .sidebar-bottom,
.theme-white .sidebar-bottom span,
.theme-white nav button,
.theme-white nav button.active,
.theme-white nav button:hover,
.theme-white .top-actions,
.theme-white .hero p,
.theme-white .section-title p,
.theme-white .cards span,
.theme-white #fleetLegend,
.theme-white .health span,
.theme-white .device-name span,
.theme-white .user-row span,
.theme-white .muted,
.theme-white th,
.theme-white td,
.theme-white .terminal-head span,
.theme-white .audit-row,
.theme-white .audit-row span,
.theme-white .empty,
.theme-white .empty-state,
.theme-white .settings-grid span,
.theme-white footer,
.theme-white .developer,
.theme-white .login-card>p,
.theme-white .login-card label,
.theme-white .theme-block>span,
.theme-white .agent-generator .panel-head p,
.theme-white .agent-generator-grid label>span,
.theme-white .ldap-panel .panel-head p,
.theme-white .ldap-form label,
.theme-white .login-hint { color:#000!important; }
.theme-white .search,
.theme-white input,
.theme-white select,
.theme-white textarea,
.theme-white .ldap-form input[type=text],
.theme-white .ldap-form select,
.theme-white .ldap-test input,
.theme-white .agent-generator-grid input[type=url] {
  background:#fff!important;
  color:#000!important;
  border-color:#aebdcb!important;
}
.theme-white .top-actions button,
.theme-white .panel button:not(.primary):not(.danger),
.theme-white .section-title button:not(.primary):not(.danger),
.theme-white .terminal-head button:not(.primary):not(.danger),
.theme-white .profile-menu>button,
.theme-white .theme-options button {
  background:#fff;
  color:#000;
  border-color:#aebdcb;
}
.theme-white .profile-menu>button:hover,
.theme-white .theme-options button:hover,
.theme-white nav button:hover,
.theme-white nav button.active { background:#e7f0f8; color:#000; }
.theme-white .device-item,
.theme-white .device-icon,
.theme-white .terminal-input-row { background:#fff; color:#000; }
.theme-white .device-icon { border-color:#9eb2c4; }
.theme-white .terminal-output { background:#fff; color:#000; border-color:#c9d5df; }
.theme-white .terminal-input-row input { color:#000!important; }
.theme-white .audit-row b { color:#000; }
.theme-white .key-fingerprint { color:#000; }
.theme-white .watermark,
.theme-white .watermark b,
.theme-white .watermark small { color:#000; }
.theme-white .badge { color:#000; background:#e8eef4; }
.theme-white .badge.online { color:#087b4b; background:#dff7ec; }
.theme-white .badge.offline { color:#b4233c; background:#fde8ed; }
.theme-white .planned h3 { color:#8a5d00; }
