:root{--sidebar:#0d1b2e;--sidebar2:#132743;--blue:#2563eb;--muted:#64748b;--line:#e5e7eb;--bg:#f8fafc}
*{box-sizing:border-box} body{margin:0;background:var(--bg);font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:#0f172a}.app{display:flex;min-height:100vh}.sidebar{width:260px;background:linear-gradient(180deg,var(--sidebar),var(--sidebar2));color:#fff;padding:20px 14px;position:fixed;inset:0 auto 0 0}.brand{display:flex;align-items:center;gap:10px;font-size:22px;font-weight:800;margin-bottom:26px}.brand-icon{color:#60a5fa}.brand small{background:#2563eb;border-radius:6px;padding:3px 6px;font-size:11px}nav a{display:flex;gap:12px;align-items:center;color:#dbeafe;text-decoration:none;padding:12px;border-radius:10px;margin:4px 0}nav a:hover,nav a.active{background:rgba(255,255,255,.12);color:#fff}.sidebar-footer{position:absolute;bottom:24px;color:#60a5fa;font-weight:800}.sidebar-footer span{font-weight:400;color:#cbd5e1}.main{margin-left:260px;width:calc(100% - 260px)}.topbar{height:66px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 28px}.userbox{color:#334155}.userbox a{margin-left:14px;color:#2563eb;text-decoration:none}.content{padding:26px}.card-soft{background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 2px 10px rgba(15,23,42,.03)}.metric{padding:20px}.metric h3{margin:0;font-size:28px}.metric span{color:var(--muted)}.btn-primary{background:#2563eb;border-color:#2563eb}.table td,.table th{vertical-align:middle}.status{display:inline-flex;padding:3px 9px;border-radius:999px;font-size:12px}.status.active{background:#dcfce7;color:#166534}.status.inactive{background:#fee2e2;color:#991b1b}.rack-shell{background:#222;border:12px solid #333;border-radius:8px;padding:8px;max-width:360px;margin:auto}.ru{height:24px;background:#f1f5f9;border-bottom:1px solid #cbd5e1;font-size:11px;display:flex;align-items:center;position:relative}.ru-num{width:34px;text-align:center;color:#64748b}.ru-device{position:absolute;left:38px;right:4px;height:22px;border-radius:4px;color:#fff;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;overflow:hidden}.dev-switch{background:#1d4ed8}.dev-firewall{background:#dc2626}.dev-server{background:#7c3aed}.dev-patch{background:#475569}.dev-ups{background:#ca8a04}.dev-other{background:#64748b}.connection-map{min-height:280px;background:linear-gradient(#fff,#fbfdff);border:1px dashed #cbd5e1;border-radius:12px;padding:18px}.node{display:inline-block;border:2px solid #2563eb;border-radius:8px;padding:12px 16px;background:#fff;margin:12px;min-width:150px;text-align:center}.login-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#0d1b2e,#1d4ed8)}.login-card{width:420px;background:#fff;border-radius:18px;padding:32px;box-shadow:0 20px 60px rgba(0,0,0,.25)}
