:root{
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --bg:#08111f;--bg-soft:#0d1727;--sidebar:#0d1727;--panel:#141f33;--panel-2:#101b2d;
  --border:#2a3850;--text:#f1f5fb;--muted:#9daec6;--muted-2:#7f93af;--accent:#2f8d68;
  --accent-2:#3aa57b;--danger:#ad3e46;--warning:#bd8740;--shadow:0 8px 24px rgba(0,0,0,.12);
  color:#172033;background:#f3f6fa;
}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;}body{background:#f3f6fa;color:#172033}a{color:inherit}
.shell{display:grid;grid-template-columns:268px minmax(0,1fr);min-height:100vh}.workspace{min-width:0;display:flex;flex-direction:column;min-height:100vh}
.sidebar{background:#101826;color:#fff;border-right:1px solid #1e2a3d;padding:18px 12px 16px;display:flex;flex-direction:column;min-height:100vh}
.brand{padding:4px 8px 14px;line-height:1.06}.brand-kicker{display:block;font-size:13px;font-weight:700;color:#dce6f5}.brand strong{display:block;font-size:24px;letter-spacing:-.02em;margin-top:1px}.brand small{display:block;color:#94a6c0;margin-top:7px;font-size:11px}
.sidebar-nav{display:flex;flex-direction:column;gap:3px;overflow-y:auto;padding-bottom:18px}.nav-group{margin:15px 9px 5px;font-size:9px;font-weight:800;letter-spacing:.14em;color:#8092ad}.nav-item{display:flex;align-items:center;gap:10px;color:#e4ebf5;text-decoration:none;padding:9px 10px;border-radius:9px;font-size:13px;font-weight:650;transition:.15s ease}.nav-item:hover{background:#1b273a}.nav-item.active{background:#26364f;color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.02)}.nav-icon{width:20px;text-align:center;font-size:16px;line-height:1}
.topbar{height:64px;display:flex;align-items:center;justify-content:space-between;padding:0 26px;border-bottom:1px solid #dfe6ef;background:#fff;position:sticky;top:0;z-index:20}.topbar-left{display:flex;align-items:center;gap:8px}.topbar-system{font-weight:800}.topbar-version{font-size:11px;color:#718097;background:#eef2f7;padding:3px 7px;border-radius:999px}.topbar-actions{display:flex;align-items:center;gap:10px}.topbar-user{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700}.avatar{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:#dfe8f3;color:#2a3b54;font-size:11px;font-weight:850;border:1px solid #cad6e6}.icon-button,.logout-button{border:1px solid #c7d0dd;border-radius:8px;background:#fff;color:#172033;padding:8px 10px;text-decoration:none;font-weight:700;cursor:pointer}.icon-button{width:38px;height:36px;display:grid;place-items:center}.logout-button{font-size:12px}
.content{width:100%;max-width:1650px;padding:24px 28px 36px}.app-footer{margin-top:auto;padding:16px 28px;border-top:1px solid #dfe6ef;color:#7c8899;font-size:11px;display:flex;justify-content:space-between;background:#fff}
.page-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:18px}.page-head h1{margin:0 0 5px;font-size:25px;line-height:1.15;letter-spacing:-.02em}.page-head p{margin:0;color:#6f7d91;max-width:900px;font-size:13px;line-height:1.45}.page-actions{display:flex;gap:8px;flex-wrap:wrap}
.grid{display:grid;gap:14px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.system-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:22px}
.card{background:#fff;border:1px solid #dfe6ef;border-radius:12px;padding:18px;box-shadow:0 2px 8px rgba(16,24,38,.025)}.card h2{margin:0 0 8px;font-size:18px}.card p{line-height:1.45}.card.link{display:flex;flex-direction:column;min-height:156px;color:inherit;text-decoration:none;transition:.15s ease}.card.link:hover{border-color:#a7b7cb;transform:translateY(-1px);box-shadow:0 6px 18px rgba(16,24,38,.06)}.card-icon{font-size:24px;line-height:1;margin-bottom:12px}.card-title{font-size:17px;font-weight:800;margin-bottom:7px}.card-copy{color:#66758a;font-size:13px;line-height:1.42}.card-open{margin-top:auto;padding-top:14px;font-size:13px;font-weight:800}.section-title{font-size:12px;text-transform:uppercase;letter-spacing:.12em;color:#718097;font-weight:800;margin:24px 2px 10px}
.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px}.kpi{background:#fff;border:1px solid #dfe6ef;border-radius:11px;padding:14px 16px}.kpi span{display:block;color:#7a879b;font-size:11px}.kpi strong{display:block;font-size:22px;margin-top:2px}
label{display:block;font-size:12px;font-weight:700;margin:0 0 13px}input,select,textarea{width:100%;margin-top:6px;padding:10px 11px;border:1px solid #cfd8e6;border-radius:8px;background:#fff;color:#172033;font:inherit}textarea{resize:vertical}input:focus,select:focus,textarea:focus{outline:2px solid rgba(47,141,104,.18);border-color:#5b9d84}
button,.button{display:inline-block;border:1px solid #bcc8d8;background:#fff;border-radius:8px;padding:9px 13px;font-weight:750;color:#172033;text-decoration:none;cursor:pointer}.primary{background:#1c7c54;border-color:#1c7c54;color:#fff}.primary:hover{background:#218a5e}.danger{background:#b13b3b;border-color:#b13b3b;color:#fff}button:disabled{opacity:.45;cursor:not-allowed}
.flash,.alert{padding:12px 14px;border-radius:9px;margin-bottom:14px;border:1px solid;font-size:13px}.flash.success,.alert.success{background:#e9f7ef;border-color:#b8e3ca}.flash.error,.alert.error{background:#fff0f0;border-color:#f1c3c3}.flash.info{background:#eef6ff;border-color:#c9dcf4}.muted{color:#7a879b}.small{font-size:12px}.ok{color:#16814f;font-weight:750}.bad{color:#b93a3a;font-weight:750}.warn{color:#a36b00;font-weight:750}.badge{display:inline-block;background:#eef3f8;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:750}.badge.good{background:#e7f6ee;color:#146842}.badge.warn{background:#fff5df;color:#8a5b09}.badge.bad{background:#fff0f0;color:#9d3131}
table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:10px 8px;border-bottom:1px solid #edf1f5;vertical-align:top;font-size:13px}th{font-size:10px;text-transform:uppercase;letter-spacing:.05em;color:#7a879b}.inline{display:inline}.table-wrap{overflow:auto}
.knowledge{border-bottom:1px solid #edf1f5;padding:12px 0}.knowledge span{display:block;font-size:12px;color:#7a879b;margin-top:3px}.guide pre{white-space:pre-wrap;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px}.login-card,.install-wrap{max-width:700px;margin:8vh auto}.login-card{background:#fff;border:1px solid #e1e7ef;border-radius:16px;padding:28px}.install{padding:20px}hr{border:0;border-top:1px solid #e4eaf2;margin:20px 0}.full{grid-column:1/-1}.check{display:flex;gap:8px;align-items:center}.check input{width:auto;margin:0}.big-value{font-size:24px;font-weight:800}code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;background:#f1f4f8;padding:2px 5px;border-radius:5px}.public-character{display:grid;place-items:center;min-height:100vh;padding:20px}.public-card{max-width:640px;background:#fff;border:1px solid #e1e7ef;border-radius:18px;padding:36px}.public-card h1{font-size:40px}.login-wrap,.install-wrap{max-width:760px;margin:7vh auto;padding:20px}.brand.big{font-size:24px;margin-bottom:22px}.brand.big strong{font-size:32px}.install-body{padding:0 12px}.check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}

/* Update Manager */
.update-flow{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-bottom:16px}.flow-step{background:#fff;border:1px solid #dfe6ef;border-radius:10px;padding:11px 12px;font-size:11px;color:#6f7d91}.flow-step strong{display:block;color:#172033;font-size:12px;margin-bottom:2px}.dropzone{border:2px dashed #aebbd0;border-radius:12px;padding:28px 18px;text-align:center;background:#f8fafc;transition:.15s ease;cursor:pointer}.dropzone.dragover{border-color:#2f8d68;background:#f0f8f4}.dropzone.loaded{border-color:#2f8d68;background:#eff8f4}.dropzone input[type=file]{display:none}.dropzone-icon{font-size:30px;margin-bottom:8px}.dropzone-title{font-weight:800}.dropzone-copy{font-size:12px;color:#748197;margin-top:4px}.upload-status{display:inline-flex;align-items:center;gap:6px;margin-top:12px;padding:6px 10px;border-radius:999px;background:#e7f6ee;color:#146842;font-size:11px;font-weight:800}.update-actions{display:flex;gap:10px;align-items:center;margin-top:12px;flex-wrap:wrap}.preflight-ready{border-left:4px solid #2f8d68}.diagnostic{background:#fff2f2;border:1px solid #efc5c5;border-radius:10px;padding:14px;margin-bottom:14px}.diagnostic code{display:block;white-space:pre-wrap;margin:8px 0;background:#f7dddd}.copy-button{font-size:11px}.status-installed{color:#4fc58a}.status-preflight_ok{color:#e6b85a}.status-rolled_back,.status-rollback_failed{color:#ff7f88}.status-installing{color:#78b8ff}

/* Backup Center */
.backup-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:14px}.summary-box{background:#fff;border:1px solid #dfe6ef;border-radius:10px;padding:14px}.summary-box span{display:block;font-size:11px;color:#7a879b}.summary-box strong{display:block;margin-top:3px;font-size:18px}

/* Dark mode: PM Events Center inspired */
html[data-theme="dark"]{color-scheme:dark;background:var(--bg)}
html[data-theme="dark"] body{background:var(--bg);color:var(--text)}
html[data-theme="dark"] .sidebar{background:var(--sidebar);border-right-color:#243149}
html[data-theme="dark"] .brand-kicker,html[data-theme="dark"] .nav-item{color:#eaf0f8}html[data-theme="dark"] .brand small{color:#8fa1bb}html[data-theme="dark"] .nav-group{color:#7187a7}
html[data-theme="dark"] .nav-item:hover{background:#18253a}html[data-theme="dark"] .nav-item.active{background:#24344f;color:#fff}
html[data-theme="dark"] .workspace,html[data-theme="dark"] .content{background:var(--bg)}
html[data-theme="dark"] .topbar,html[data-theme="dark"] .app-footer{background:#0b1422;border-color:#223149;color:var(--text)}html[data-theme="dark"] .topbar-version{background:#17243a;color:#9eb2ce}
html[data-theme="dark"] .avatar{background:#24344e;color:#f4f7fb;border-color:#344762}html[data-theme="dark"] .icon-button,html[data-theme="dark"] .logout-button{background:#172238;border-color:#34445e;color:#eef4fc}
html[data-theme="dark"] .page-head p,html[data-theme="dark"] .muted,html[data-theme="dark"] .card-copy,html[data-theme="dark"] .kpi span,html[data-theme="dark"] .knowledge span{color:var(--muted)}html[data-theme="dark"] .section-title{color:#7186a5}
html[data-theme="dark"] .card,html[data-theme="dark"] .kpi,html[data-theme="dark"] .summary-box,html[data-theme="dark"] .flow-step,html[data-theme="dark"] .login-card,html[data-theme="dark"] .public-card{background:var(--panel);border-color:var(--border);box-shadow:none}
html[data-theme="dark"] .card.link:hover{background:#18253a;border-color:#435473;box-shadow:none}html[data-theme="dark"] .card.link{color:var(--text)}html[data-theme="dark"] .card-open{color:#fff}
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{background:#0c1625;border-color:#34445e;color:#eef4fc}html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#71829b}
html[data-theme="dark"] button,html[data-theme="dark"] .button{background:#17243a;border-color:#394b66;color:#f1f5fb}html[data-theme="dark"] button:hover,html[data-theme="dark"] .button:hover{background:#1d2b43}html[data-theme="dark"] .primary{background:#23815d;border-color:#2b956d;color:#fff}html[data-theme="dark"] .primary:hover{background:#2b9369}
html[data-theme="dark"] table th,html[data-theme="dark"] table td{border-bottom-color:#28364d}html[data-theme="dark"] th{color:#8799b3}html[data-theme="dark"] code{background:#1a283c;color:#dce9fa}html[data-theme="dark"] hr{border-top-color:#2b394f}
html[data-theme="dark"] .badge{background:#1b2a40;color:#dbe7f7}html[data-theme="dark"] .badge.good{background:#123426;color:#63d8a1}html[data-theme="dark"] .badge.warn{background:#3a2c15;color:#f0c66e}html[data-theme="dark"] .badge.bad{background:#3a1e22;color:#ff9aa1}
html[data-theme="dark"] .flash.success,html[data-theme="dark"] .alert.success{background:#0f2d22;border-color:#245c45;color:#c9f3df}html[data-theme="dark"] .flash.error,html[data-theme="dark"] .alert.error{background:#321a1d;border-color:#6c353b;color:#ffd4d8}html[data-theme="dark"] .flash.info{background:#13263b;border-color:#2c5277;color:#d6eaff}
html[data-theme="dark"] .ok{color:#54d69a}html[data-theme="dark"] .bad{color:#ff8585}html[data-theme="dark"] .warn{color:#f2bd63}html[data-theme="dark"] a{color:#cfe4ff}html[data-theme="dark"] .guide pre{color:#dfe9f6}
html[data-theme="dark"] .dropzone{background:#0e1929;border-color:#455975}html[data-theme="dark"] .dropzone.dragover,html[data-theme="dark"] .dropzone.loaded{background:#10291f;border-color:#3b9b73}html[data-theme="dark"] .upload-status{background:#123426;color:#6cdda7}
html[data-theme="dark"] .diagnostic{background:#341b1f;border-color:#6c353b;color:#ffd4d8}html[data-theme="dark"] .diagnostic code{background:#451f24;color:#ffd7da}html[data-theme="dark"] .flow-step{color:#94a6c0}html[data-theme="dark"] .flow-step strong{color:#eef4fc}

@media(max-width:1350px){.dashboard-grid,.system-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1050px){.shell{grid-template-columns:220px minmax(0,1fr)}.dashboard-grid,.system-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}.update-flow{grid-template-columns:repeat(2,minmax(0,1fr))}.user-name{display:none}}
@media(max-width:760px){.shell{display:block}.sidebar{min-height:auto;position:static}.sidebar-nav{max-height:none}.workspace{min-height:auto}.topbar{position:static;padding:0 14px}.content{padding:18px 14px}.page-head{flex-direction:column}.grid.two,.grid.three,.dashboard-grid,.system-grid,.kpis,.backup-summary,.update-flow{grid-template-columns:1fr}.topbar-system{display:none}.app-footer{padding:14px;flex-direction:column;gap:4px}.card{overflow-x:auto}}

/* ACU v0.0.13 – official identity + safe computer archive */
.acu-brand{display:flex;align-items:center;gap:10px;padding:4px 8px 14px}
.acu-brand-logo{width:46px;height:46px;border-radius:50%;object-fit:cover;flex:0 0 46px;border:1px solid rgba(255,255,255,.16)}
.acu-brand-copy{min-width:0;line-height:1.05}
.acu-brand .brand-kicker{font-size:12px;letter-spacing:.12em;color:#b7c7dd}
.acu-brand strong{font-size:16px;line-height:1.08;margin-top:3px}
.acu-brand small{margin-top:5px}
.danger-button{border-color:#7d343d!important;color:#ffc5cb!important;background:#3a1b21!important}
.removed-computers{margin-top:14px}
.removed-computers summary{cursor:pointer;list-style:none}
.removed-computers summary::-webkit-details-marker{display:none}
