:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:#eef2ff;background:#07090d;--surface:#10141c;--surface2:#151b26;--border:#293141;--muted:#8390a6;--accent:#6d5df5;--success:#35d69f;--danger:#ff6b7d;--warning:#f3b85b;--card-width:210px;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:#07090d}button,input,select{font:inherit}[hidden]{display:none!important}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}
.login-shell{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 75% 10%,#19152f,#07090d 42%)}.login-card{width:min(430px,100%);padding:40px;border:1px solid var(--border);border-radius:22px;background:#10131b;box-shadow:0 30px 90px #0008}.brand-mark{width:58px;height:58px;display:grid;place-items:center;border:1px solid #5145a5;border-radius:16px;background:#201a44;color:#a99fff;font-weight:900}.brand-mark.tiny{width:30px;height:30px;border-radius:8px;font-size:10px}.eyebrow{margin:22px 0 7px;color:#9f91ff;font-size:11px;font-weight:800;letter-spacing:.18em}.muted{color:var(--muted)}h1,h2,p{margin-top:0}.login-card h1{font-size:36px;margin-bottom:10px}.login-card form{display:grid;gap:17px;margin-top:28px}.login-card label{display:grid;gap:7px;color:#c8cede;font-size:13px}.login-card input,.filters input,.filters select{border:1px solid var(--border);border-radius:9px;color:#edf1ff;background:#090c12;outline:none}.login-card input{padding:13px}.login-card input:focus,.filters input:focus,.filters select:focus{border-color:var(--accent)}.form-error{min-height:18px;margin:0;color:var(--danger);font-size:12px}.primary{border:0;border-radius:10px;padding:13px;color:#fff;background:linear-gradient(135deg,#806dff,#6551dc);font-weight:750}.primary.compact{padding:10px 14px}
.console{height:100vh;display:grid;grid-template-columns:224px minmax(0,1fr);grid-template-rows:52px minmax(0,1fr);overflow:hidden}.console-header{grid-column:1/-1;display:flex;align-items:center;gap:28px;padding:0 16px;border-bottom:1px solid var(--border);background:#10141c}.header-brand{display:flex;align-items:center;gap:10px;white-space:nowrap;font-size:13px;letter-spacing:.05em}.health-line{display:flex;gap:18px;align-items:center;color:var(--muted);font-size:11px}.health{color:var(--warning)}.health.ok{color:var(--success)}.header-actions{margin-left:auto;display:flex;align-items:center;gap:10px;font-size:11px}.ghost-button{padding:8px 11px;border:1px solid var(--border);border-radius:8px;color:#b8c2d5;background:#0e1219}.ghost-button:hover{border-color:#536079;color:white}
.control-sidebar{grid-column:1;grid-row:2;height:100%;overflow-y:auto;padding:13px 12px 28px;border-right:1px solid var(--border);background:#11161f}.sidebar-summary{display:grid;padding:14px 12px;border:1px solid #354054;border-radius:9px;background:#151b25}.sidebar-summary strong{font-size:24px}.sidebar-summary span{font-size:10px}.control-section{padding:14px 0;border-bottom:1px solid #232b39}.control-section h2{margin:0 0 9px;color:#75839b;font-size:9px;text-transform:uppercase;letter-spacing:.16em}.selection-count{padding:9px;border:1px solid var(--border);border-radius:7px;font-size:11px}.two-buttons,.command-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:7px}.control-sidebar button{min-height:32px;padding:6px;border:1px solid #334055;border-radius:7px;color:#e5ebf8;background:#141b26;font-size:10px}.control-sidebar button:hover{border-color:#6576a0;background:#192232}.control-sidebar button.warning{color:#ffd08a;border-color:#624f30}.control-sidebar button.danger{color:#ff9dac;border-color:#66313a}.wide{width:100%}.policy-actions{display:grid;gap:7px}.policy-actions>div{display:grid;grid-template-columns:1fr 48px 48px;gap:5px;align-items:center;color:#bdc7d8;font-size:10px}
.workspace{grid-column:2;grid-row:2;min-width:0;overflow:auto;padding:14px;background:#090c11}.workspace-toolbar{position:sticky;z-index:3;top:-14px;display:flex;align-items:center;gap:20px;min-height:52px;margin:-14px -14px 12px;padding:9px 14px;border-bottom:1px solid var(--border);background:#090c11f2;backdrop-filter:blur(12px)}.workspace-toolbar>div:first-child{display:grid;min-width:190px}.workspace-toolbar strong{font-size:13px}.workspace-toolbar span{color:var(--success);font-size:10px}.filters{margin-left:auto;display:flex;align-items:center;gap:8px}.filters input,.filters select{height:32px;padding:0 9px;font-size:10px}.filters input{width:190px}.size-control{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:10px}.size-control input{width:110px}.size-control output{min-width:24px;color:#dfe5f3}.devices-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(var(--card-width),var(--card-width)));align-items:start;gap:10px}.device-card{--device-color:#3477e8;position:relative;overflow:hidden;border:1px solid var(--device-color);border-radius:10px;background:#05070b;box-shadow:0 8px 25px #0004}.device-card::before{position:absolute;z-index:3;top:0;left:0;right:0;height:3px;background:var(--device-color);content:"";pointer-events:none}.device-card.selected{box-shadow:0 0 0 2px #8f80ff,0 10px 30px #0008}.device-card.offline{opacity:.86}.device-card.disabled{background:#080706}.card-head{height:34px;display:flex;align-items:center;gap:7px;padding:5px 7px;border-bottom:1px solid #202a39;background:#111722}.card-head input{accent-color:var(--accent)}.card-number{display:grid;place-items:center;min-width:24px;height:22px;padding:0 5px;border-left:3px solid var(--device-color);border-radius:5px;background:#203454;color:#bcd6ff;font-size:11px;font-weight:800}.card-connection{margin-left:auto;color:var(--success);font-size:8px;text-transform:uppercase}.card-status{width:7px;height:7px;border-radius:50%;background:#687386}.card-status.online{background:var(--success);box-shadow:0 0 8px #35d69f88}.card-menu{width:24px;height:24px;padding:0;border:0;color:#aeb9cc;background:transparent;font-size:17px}.card-screen{position:relative;display:grid;place-items:center;width:100%;aspect-ratio:9/19.5;overflow:hidden;background:#020305}.card-screen img{width:100%;height:100%;object-fit:contain;background:#000}.card-placeholder{padding:14px;color:#68748a;text-align:center;font-size:10px}.screen-badges{position:absolute;z-index:2;top:6px;left:6px;right:6px;display:flex;justify-content:space-between;pointer-events:none}.mini-badge{padding:3px 5px;border:1px solid #29405e;border-radius:4px;color:#98c7ff;background:#07101bdd;font-size:7px}.mini-badge.good{color:#68efbd;border-color:#245b4b}.mini-badge.warn{color:#ffd080;border-color:#72582e}.card-foot{height:43px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px;padding:6px 7px;border-top:1px solid #202a39;background:#111722}.card-name{overflow:hidden;color:#b7c1d3;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.card-open{padding:5px 8px;border:1px solid #34445c;border-radius:6px;color:#eaf0ff;background:#151d29;font-size:9px}.empty-state{display:grid;place-items:center;min-height:50vh;color:var(--muted)}
.operations{position:fixed;z-index:10;right:18px;bottom:18px;width:min(420px,calc(100vw - 36px));max-height:55vh;overflow:auto;border:1px solid var(--border);border-radius:13px;background:#10151e;box-shadow:0 20px 70px #000b}.operations>div:first-child{position:sticky;top:0;display:flex;justify-content:space-between;padding:13px;border-bottom:1px solid var(--border);background:#10151e}.operations button,.modal-heading button{border:0;color:#aeb8ca;background:transparent;font-size:22px}.operation-row{display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:9px;padding:9px 13px;border-bottom:1px solid #222b39;font-size:10px}.operation-state.ok{color:var(--success)}.operation-state.error{color:var(--danger)}
.device-removal{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 20px;border-top:1px solid #442832;background:#180e13}.device-removal>div{display:grid;gap:4px}.device-removal small{color:#ba8790}.device-removal button{padding:9px 13px;border:1px solid #713541;border-radius:8px;color:#ff9dac;background:#2b1118}.device-removal button:hover{border-color:#d55468;background:#35151e}
dialog{color:#edf1fa}.modal-card{width:min(560px,calc(100% - 30px));padding:0;border:1px solid var(--border);border-radius:16px;background:#11151e;box-shadow:0 30px 100px #000c}.modal-card::backdrop{background:#000a}.modal-heading{display:flex;align-items:start;justify-content:space-between;padding:20px;border-bottom:1px solid var(--border)}.modal-heading .eyebrow{margin:0 0 6px}.modal-heading h2{margin:0}.policy-list{display:grid}.policy-list label{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 20px;border-bottom:1px solid var(--border)}.policy-list span{display:grid;gap:4px}.policy-list small{color:var(--muted)}.policy-list input{width:20px;height:20px;accent-color:var(--accent)}#policy-message{padding:16px 20px;margin:0}.nodes-modal{width:min(760px,calc(100% - 30px))}.nodes-modal>.primary{margin:18px}.enrollment-result{margin:0 18px 18px;padding:14px;border:1px solid #28594d;border-radius:9px;background:#0a1815}.enrollment-result code{display:block;margin-top:8px;color:var(--success);overflow-wrap:anywhere}.node-row{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:12px;padding:14px 18px;border-top:1px solid var(--border)}.node-row small{display:block;color:var(--muted)}.node-row button{padding:7px 9px;border:1px solid #62313a;border-radius:7px;color:#ff9dac;background:transparent}.badge{padding:4px 7px;border-radius:999px;color:var(--muted);background:#232b39;font-size:9px}.badge.online{color:var(--success);background:#123128}
.apk-modal{width:min(980px,calc(100% - 30px));max-height:min(880px,calc(100vh - 30px))}.apk-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 20px;border-bottom:1px solid var(--border)}.apk-toolbar p{margin:0}.apk-toolbar button,.apk-row button{padding:8px 11px;border:1px solid #485a78;border-radius:8px;color:#eef3ff;background:#182131}.apk-toolbar button:hover,.apk-row button:hover{border-color:#8778ff;background:#211d43}.apk-row button.danger{color:#ff9dac;border-color:#66313a}.apk-row button.danger:hover{border-color:#a64655;background:#32171d}.apk-section{padding:18px 20px}.apk-section+.apk-section{border-top:1px solid var(--border)}.apk-section h3{margin:0 0 12px;font-size:13px}.apk-list{display:grid;gap:8px}.apk-empty{padding:20px;border:1px dashed #334055;border-radius:9px;color:var(--muted);text-align:center}.apk-row{display:grid;grid-template-columns:minmax(180px,1.5fr) minmax(150px,1fr) auto;align-items:center;gap:14px;padding:12px;border:1px solid #283244;border-radius:9px;background:#0d121a}.apk-row>div{min-width:0}.apk-row strong,.apk-row small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.apk-row small{margin-top:4px;color:var(--muted)}.apk-hash{font-family:ui-monospace,monospace}.apk-actions{display:flex;gap:7px;justify-content:flex-end}.apk-state{justify-self:end;color:var(--muted)}.apk-state.ok{color:var(--success)}.apk-state.error{color:var(--danger)}.apk-state.active{color:#8fb8ff}.operation-state{max-width:190px;text-align:right}.operation-state.active{color:#8fb8ff}
.monitoring-modal{width:min(1320px,calc(100% - 30px));height:min(920px,calc(100vh - 30px));max-height:calc(100vh - 30px);overflow:auto}.monitoring-toolbar{position:sticky;z-index:3;top:0;display:flex;align-items:center;justify-content:space-between;padding:12px 20px;border-bottom:1px solid var(--border);background:#11151ef2;backdrop-filter:blur(10px)}.monitoring-toolbar>div,.monitoring-controls{display:flex;gap:8px;align-items:center}.monitoring-toolbar button,.monitoring-controls button,.alert-row button{padding:8px 10px;border:1px solid #3c4960;border-radius:7px;color:#dbe4f5;background:#151d29}.monitoring-summary{display:grid;grid-template-columns:repeat(6,minmax(120px,1fr));gap:10px;padding:18px 20px}.monitor-card{display:grid;gap:7px;padding:14px;border:1px solid var(--border);border-radius:10px;background:#0d1219}.monitor-card span{color:var(--muted);font-size:9px;text-transform:uppercase;letter-spacing:.1em}.monitor-card strong{font-size:22px}.monitor-card small{color:var(--muted)}.monitor-card.warning strong{color:var(--warning)}.monitor-card.error strong{color:var(--danger)}.monitoring-section{padding:18px 20px;border-top:1px solid var(--border)}.monitoring-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:12px}.monitoring-heading h3,.monitoring-heading p{margin:0}.monitoring-heading h3{font-size:14px}.monitoring-heading p{margin-top:4px;font-size:10px}.monitoring-controls select,.monitoring-controls input{height:34px;padding:0 9px;border:1px solid var(--border);border-radius:7px;color:#e8eefb;background:#090c12}.monitoring-controls input{width:180px}.monitoring-nodes{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:9px}.monitor-node{display:grid;gap:10px;padding:13px;border:1px solid #293347;border-radius:10px;background:#0c1118;cursor:pointer}.monitor-node:hover,.monitor-node.selected{border-color:#7164dc}.monitor-node-head{display:flex;justify-content:space-between;gap:10px}.monitor-node-head small{display:block;margin-top:3px;color:var(--muted)}.monitor-node-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.monitor-node-grid div{display:grid;gap:3px}.monitor-node-grid span{color:var(--muted);font-size:8px;text-transform:uppercase}.monitor-node-grid strong{font-size:11px}.chart-wrap{position:relative;height:260px;padding:10px;border:1px solid var(--border);border-radius:10px;background:#090d13}.chart-wrap svg{width:100%;height:215px}.chart-grid{stroke:#283143;stroke-width:1}.chart-cpu{fill:none;stroke:#8d7dff;stroke-width:3;vector-effect:non-scaling-stroke}.chart-memory{fill:none;stroke:#35d69f;stroke-width:3;vector-effect:non-scaling-stroke}.chart-node{fill:#090d13;stroke-width:2;vector-effect:non-scaling-stroke}.chart-cpu-node{stroke:#8d7dff}.chart-memory-node{stroke:#35d69f}.chart-hover{fill:#eef2ff;font-size:11px}.chart-legend{display:flex;gap:16px;padding:4px 8px;color:var(--muted);font-size:10px}.chart-legend .cpu{color:#9b8dff}.chart-legend .memory{color:var(--success)}#metric-empty{margin-left:auto}.monitoring-list{display:grid;gap:7px}.alert-row,.event-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:11px 12px;border:1px solid var(--border);border-radius:8px;background:#0c1118}.event-row{grid-template-columns:90px 130px minmax(0,1fr) auto}.severity{width:9px;height:9px;border-radius:50%;background:#6f7c90}.severity.error{background:var(--danger)}.severity.warning{background:var(--warning)}.severity.info{background:#70a7ff}.alert-row small,.event-row small{display:block;margin-top:3px;color:var(--muted)}.alert-row.resolved{opacity:.58}.event-source{color:#aab6ca;font-size:9px;text-transform:uppercase}.event-time{color:var(--muted);font-size:9px;white-space:nowrap}.source-mode-batch{display:grid;gap:7px;margin-top:9px}.source-mode-batch select,.policy-list select{min-width:0;padding:8px;border:1px solid #334055;border-radius:7px;color:#e5ebf8;background:#0c1119;font-size:10px}
.profile-batch{display:grid;gap:7px}.profile-batch label{display:grid;grid-template-columns:1fr auto;align-items:center;gap:7px;color:#bdc7d8;font-size:10px}.profile-batch input[type=color]{width:44px;height:30px;padding:2px;border:1px solid #334055;border-radius:7px;background:#0c1119}.profile-batch input[type=text]{min-width:0;width:100%;padding:8px;border:1px solid #334055;border-radius:7px;color:#e5ebf8;background:#0c1119}.profile-editor{border-bottom:1px solid var(--border);background:#0d1118}.profile-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px 10px}.profile-editor-heading>div{display:grid;gap:4px}.profile-editor-heading small{color:var(--muted)}.profile-fields{display:grid;grid-template-columns:150px minmax(0,1fr) 130px;gap:10px;padding:8px 20px}.profile-fields label{display:grid;align-content:start;gap:6px;color:#aeb8ca;font-size:10px}.profile-fields input,.profile-fields textarea{width:100%;padding:9px;border:1px solid #334055;border-radius:8px;color:#eef2ff;background:#090d13;outline:none}.profile-fields input:focus,.profile-fields textarea:focus{border-color:var(--accent)}.profile-fields input[type=color]{height:37px;padding:3px}.profile-note-field{grid-column:1/-1}.profile-fields textarea{resize:vertical}.profile-palette{display:flex;flex-wrap:wrap;gap:7px;padding:0 20px 12px}.profile-swatch{width:25px;height:25px;padding:0;border:2px solid #4a5363;border-radius:7px;background:var(--swatch-color)}.profile-swatch:hover{border-color:#fff;transform:translateY(-1px)}.profile-editor-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 20px 16px}.profile-editor-actions #profile-message{font-size:10px}
.apps-modal{width:min(1420px,calc(100% - 30px));height:min(920px,calc(100vh - 30px));max-height:calc(100vh - 30px);overflow:auto}.apps-toolbar{position:sticky;z-index:4;top:0;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 20px;border-bottom:1px solid var(--border);background:#11151ef2;backdrop-filter:blur(10px)}.apps-toolbar>div:first-child{display:grid;gap:4px}.apps-toolbar>div:last-child{display:flex;gap:8px}.apps-toolbar button,.apps-filters button,.application-actions button,.apps-section-heading button{padding:8px 10px;border:1px solid #465570;border-radius:7px;color:#e9effb;background:#151e2a}.apps-filters{display:grid;grid-template-columns:minmax(220px,1fr) repeat(3,minmax(140px,auto)) auto;align-items:center;gap:9px;padding:13px 20px;border-bottom:1px solid var(--border);background:#0c1118}.apps-filters input[type=search],.apps-filters select{height:35px;padding:0 10px;border:1px solid var(--border);border-radius:8px;color:#edf2ff;background:#080c12}.apps-filters label{display:flex;align-items:center;gap:7px;color:#abb6c9;font-size:10px;white-space:nowrap}.apps-filters input[type=checkbox]{accent-color:var(--accent)}.apps-list{display:grid;gap:8px;padding:16px 20px}.apps-empty{padding:28px;border:1px dashed #344056;border-radius:10px;color:var(--muted);text-align:center}.application-row{display:grid;grid-template-columns:minmax(260px,1.3fr) minmax(250px,.8fr) minmax(330px,1fr);align-items:center;gap:18px;padding:13px;border:1px solid #293449;border-radius:10px;background:#0c1118}.application-row.system{border-color:#4e422b;background:#12110e}.application-row.stale{box-shadow:inset 3px 0 #b78138}.application-identity{min-width:0}.application-identity>strong,.application-identity>code{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.application-identity>strong{font-size:13px}.application-identity>code{margin-top:4px;color:#8997af;font-size:10px}.application-badges{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}.app-badge{padding:3px 6px;border-radius:999px;color:#a9b7cd;background:#202938;font-size:8px}.app-badge.ok{color:#69e8b8;background:#123127}.app-badge.warning{color:#ffd08a;background:#342814}.application-details{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.application-details>div{display:grid;gap:4px;min-width:0}.application-details span{color:var(--muted);font-size:8px;text-transform:uppercase;letter-spacing:.08em}.application-details strong{overflow:hidden;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.application-actions{display:grid;grid-template-columns:repeat(3,minmax(90px,1fr));gap:6px}.application-actions button{font-size:9px}.application-actions button:hover{border-color:#8172ee;background:#211d3e}.application-actions button.danger{color:#ff9dac;border-color:#60323b}.apps-history{padding:16px 20px;border-top:1px solid var(--border)}.apps-section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.apps-section-heading h3{margin:0;font-size:13px}.apps-history-list{display:grid;gap:6px}.app-history-row{display:grid;grid-template-columns:minmax(180px,1fr) 120px 70px 90px 150px;align-items:center;gap:10px;width:100%;padding:10px 12px;border:1px solid #293449;border-radius:8px;color:#dce4f3;background:#0b1017;text-align:left}.app-history-row:hover{border-color:#6d5df5}.app-history-status{color:#9eaabd}.app-history-status.succeeded{color:var(--success)}.app-history-status.failed,.app-history-status.expired{color:var(--danger)}.app-history-status.partial{color:var(--warning)}.app-history-row time{color:var(--muted);font-size:9px;text-align:right}
@media(max-width:800px){.console{grid-template-columns:1fr;grid-template-rows:auto auto minmax(0,1fr)}.console-header{grid-column:1;flex-wrap:wrap;height:auto;padding:10px}.health-line{order:3;width:100%}.control-sidebar{grid-column:1;grid-row:2;height:auto;max-height:42vh}.workspace{grid-column:1;grid-row:3}.filters{flex-wrap:wrap}.workspace-toolbar{align-items:start;flex-direction:column}.filters{margin-left:0}.devices-grid{justify-content:center}.apk-row{grid-template-columns:1fr}.apk-state{justify-self:start}.monitoring-summary{grid-template-columns:repeat(2,1fr)}.monitoring-heading{align-items:flex-start;flex-direction:column}.monitoring-controls{flex-wrap:wrap}.event-row{grid-template-columns:auto 1fr}.event-row>div{grid-column:2}.event-time{grid-column:2}.monitoring-nodes{grid-template-columns:1fr}.profile-fields{grid-template-columns:1fr}.profile-note-field{grid-column:1}.profile-editor-actions{align-items:stretch;flex-direction:column}.profile-editor-actions button{width:100%}}
@media(max-width:1000px){.apps-toolbar{align-items:flex-start;flex-direction:column}.apps-filters{grid-template-columns:1fr 1fr}.application-row{grid-template-columns:1fr}.app-history-row{grid-template-columns:1fr 90px 60px}.app-history-row time{grid-column:1/-1;text-align:left}}
