:root {
  color-scheme: dark;
  --bg: #050d17;
  --bg-2: #07111f;
  --panel: rgba(13, 29, 45, .78);
  --panel-solid: #0d1d2d;
  --panel-2: #102438;
  --border: rgba(141, 179, 199, .16);
  --border-strong: rgba(141, 179, 199, .3);
  --text: #edf7fb;
  --text-2: #c1d4de;
  --muted: #7f9bac;
  --accent: #20d8c8;
  --accent-2: #8b5cf6;
  --accent-3: #ff9b42;
  --danger: #ff6b7a;
  --warning: #ffc857;
  --success: #46e3a5;
  --info: #67b7ff;
  --shadow: 0 24px 60px rgba(0, 0, 0, .35);
  --radius: 18px;
  --radius-sm: 12px;
  --sidebar: 268px;
  --mono: "SFMono-Regular", ui-monospace, "Cascadia Code", "DejaVu Sans Mono", Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  min-height: 100vh;
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background:
    radial-gradient(900px 600px at 88% -10%, rgba(32, 216, 200, .12), transparent 60%),
    radial-gradient(800px 700px at 6% 10%, rgba(139, 92, 246, .09), transparent 55%),
    linear-gradient(160deg, #050d17 0%, #07111f 52%, #050b13 100%);
  background-attachment: fixed;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .17;
  background-image:
    linear-gradient(rgba(115, 158, 180, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(115, 158, 180, .12) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 70% 0%, #000 0%, transparent 72%);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.noscript { padding: 40px; text-align: center; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
::selection { background: rgba(32, 216, 200, .28); color: #fff; }

.splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  background: var(--bg);
  transition: opacity .35s ease;
}
.splash.out { opacity: 0; pointer-events: none; }
.splash-logo { width: 78px; height: 78px; filter: drop-shadow(0 0 30px rgba(32, 216, 200, .25)); animation: pulse 1.4s ease-in-out infinite alternate; }
.splash-text { color: var(--text-2); letter-spacing: .24em; font-size: 12px; text-transform: uppercase; }
@keyframes pulse { from { transform: scale(.96); opacity: .75; } to { transform: scale(1); opacity: 1; } }

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, .85fr);
}
.login-art {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 56px clamp(36px, 7vw, 104px) 34px;
  overflow: hidden;
  border-right: 1px solid var(--border);
}
.login-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 420px at 70% 36%, rgba(32, 216, 200, .16), transparent 65%),
    linear-gradient(115deg, rgba(255, 255, 255, .03), transparent 35%);
}
.login-art-inner { position: relative; max-width: 720px; margin: auto 0; padding: 30px 0; z-index: 1; }
.login-brand { display: flex; align-items: center; gap: 15px; margin-bottom: 72px; }
.login-brand img { width: 54px; height: 54px; }
.login-brand strong { display: block; font-size: 22px; letter-spacing: .34em; }
.login-brand span { display: block; margin-top: 2px; color: var(--accent); font-size: 10px; letter-spacing: .42em; font-weight: 700; }
.login-art h1 {
  max-width: 690px;
  margin: 0 0 22px;
  font-size: clamp(34px, 4.3vw, 62px);
  line-height: 1.07;
  letter-spacing: -.035em;
  font-weight: 650;
}
.login-art p { max-width: 570px; color: var(--text-2); font-size: 17px; line-height: 1.65; }
.login-points { display: grid; gap: 12px; margin-top: 46px; }
.login-points div { display: flex; align-items: center; gap: 12px; color: var(--text-2); }
.login-points svg { width: 18px; height: 18px; color: var(--accent); }
.login-art footer { position: relative; z-index: 1; color: var(--muted); font-size: 12px; letter-spacing: .06em; }
.login-orbit { position: absolute; border: 1px solid rgba(32, 216, 200, .14); border-radius: 50%; pointer-events: none; }
.orbit-a { width: 560px; height: 560px; right: -220px; top: 13%; }
.orbit-b { width: 860px; height: 860px; right: -370px; top: -2%; border-color: rgba(139, 92, 246, .1); }
.login-panel { display: grid; place-items: center; padding: 40px; background: rgba(5, 13, 23, .35); }
.login-card {
  width: min(100%, 430px);
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(18, 38, 58, .9), rgba(8, 19, 31, .94));
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.login-card-mark { display: none; margin-bottom: 24px; }
.login-card-mark img { width: 52px; height: 52px; }
.login-card h2 { margin: 6px 0 8px; font-size: 30px; letter-spacing: -.025em; }
.login-card > .muted { margin: 0 0 26px; }
.login-card .field { margin-bottom: 16px; }
.login-card .btn { margin-top: 10px; }
.login-foot { margin-top: 22px; color: var(--muted); font-size: 11px; text-align: center; line-height: 1.5; }
.eyebrow { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .28em; }
.form-error {
  margin-top: 14px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 107, 122, .3);
  border-radius: 10px;
  background: rgba(255, 107, 122, .08);
  color: #ffadb6;
  font-size: 13px;
}

.app { min-height: 100vh; }
.sidebar {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(10, 25, 40, .97), rgba(6, 14, 24, .98));
  backdrop-filter: blur(18px);
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 22px 20px;
}
.sidebar-brand img { width: 40px; height: 40px; }
.brand-type strong { display: block; font-size: 16px; letter-spacing: .28em; }
.brand-type span { display: block; color: var(--accent); font-size: 8px; font-weight: 800; letter-spacing: .38em; margin-top: 1px; }
.icon-btn.sidebar-close { display: none; margin-left: auto; }
.nav { padding: 8px 12px; overflow-y: auto; flex: 1; }
.nav-label { padding: 15px 12px 6px; color: #577487; font-size: 9px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2px 0;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #91aabd;
  text-align: left;
  cursor: pointer;
  transition: .18s ease;
}
.nav-item svg { width: 19px; height: 19px; opacity: .8; }
.nav-item:hover { color: var(--text); background: rgba(255, 255, 255, .035); }
.nav-item.active {
  color: var(--text);
  border-color: rgba(32, 216, 200, .16);
  background: linear-gradient(90deg, rgba(32, 216, 200, .13), rgba(32, 216, 200, .025));
  box-shadow: inset 3px 0 0 var(--accent);
}
.nav-item.active svg { color: var(--accent); opacity: 1; }
.sidebar-foot { padding: 16px; border-top: 1px solid var(--border); }
.service-indicator { display: flex; align-items: center; gap: 8px; padding: 0 5px 13px; color: var(--muted); font-size: 11px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 3px rgba(127, 155, 172, .1); }
.status-dot.on { background: var(--success); box-shadow: 0 0 0 3px rgba(70, 227, 165, .12), 0 0 14px rgba(70, 227, 165, .5); }
.status-dot.off { background: var(--danger); box-shadow: 0 0 0 3px rgba(255, 107, 122, .12); }
.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(255, 255, 255, .025);
}
.avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(32, 216, 200, .24), rgba(139, 92, 246, .25));
  color: var(--text);
  font-weight: 800;
}
.user-card > div:nth-child(2) { min-width: 0; flex: 1; }
.user-card strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.user-card span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.user-card .icon-btn { width: 30px; height: 30px; }
.version-line { padding: 12px 5px 0; color: #4e6c7f; font-size: 9px; letter-spacing: .06em; }
.workspace { min-height: 100vh; margin-left: var(--sidebar); }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 82px;
  padding: 17px clamp(22px, 4vw, 48px);
  border-bottom: 1px solid var(--border);
  background: rgba(5, 13, 23, .72);
  backdrop-filter: blur(18px);
}
.topbar-left { display: flex; align-items: center; gap: 13px; }
.topbar h1 { margin: 0; font-size: 22px; font-weight: 620; letter-spacing: -.02em; }
.topbar p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.top-status { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.content { padding: clamp(22px, 4vw, 46px); max-width: 1680px; margin: 0 auto; outline: none; }
.icon-btn.mobile-only { display: none; }
.nav-scrim { display: none; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, .025);
  color: var(--text-2);
  cursor: pointer;
  transition: .18s ease;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); background: rgba(255, 255, 255, .06); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.danger:hover { color: var(--danger); border-color: rgba(255, 107, 122, .35); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, .035);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 620;
  cursor: pointer;
  white-space: nowrap;
  transition: .18s ease;
}
.btn svg { width: 17px; height: 17px; }
.btn:hover { color: var(--text); border-color: var(--border-strong); background: rgba(255, 255, 255, .07); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary {
  border-color: rgba(32, 216, 200, .4);
  background: linear-gradient(135deg, rgba(32, 216, 200, .2), rgba(15, 156, 149, .16));
  color: #dcfffa;
  box-shadow: 0 8px 24px rgba(32, 216, 200, .09);
}
.btn.primary:hover { border-color: rgba(32, 216, 200, .65); background: linear-gradient(135deg, rgba(32, 216, 200, .28), rgba(15, 156, 149, .22)); }
.btn.danger { border-color: rgba(255, 107, 122, .28); color: #ffb2bb; background: rgba(255, 107, 122, .07); }
.btn.danger:hover { background: rgba(255, 107, 122, .13); border-color: rgba(255, 107, 122, .45); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.small { min-height: 30px; padding: 5px 10px; font-size: 11px; border-radius: 8px; }
.btn.small svg { width: 14px; height: 14px; }
.btn.wide { width: 100%; }
.btn-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(15, 33, 51, .76), rgba(8, 19, 31, .7));
  box-shadow: 0 12px 40px rgba(0, 0, 0, .12);
  overflow: hidden;
}
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 20px 22px; border-bottom: 1px solid var(--border); }
.panel-head h2, .panel-head h3 { margin: 0; font-size: 15px; font-weight: 650; }
.panel-head p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.panel-body { padding: 22px; }
.panel-body.flush { padding: 0; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-head h2 { margin: 0; font-size: 28px; letter-spacing: -.03em; }
.page-head p { margin: 6px 0 0; color: var(--muted); max-width: 680px; font-size: 13px; }
.page-head .btn-row { padding-top: 3px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 34px 0 14px; }
.section-title h3 { margin: 0; font-size: 15px; }
.section-title p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat-card {
  position: relative;
  padding: 18px 19px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(150deg, rgba(18, 39, 59, .78), rgba(8, 19, 31, .7));
  overflow: hidden;
}
.stat-card::after { content: ""; position: absolute; width: 110px; height: 110px; border-radius: 50%; right: -40px; top: -50px; background: radial-gradient(circle, rgba(32, 216, 200, .15), transparent 68%); }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.stat-top svg { width: 17px; height: 17px; color: var(--accent); opacity: .75; }
.stat-value { margin: 12px 0 2px; font-size: 33px; line-height: 1; font-weight: 650; letter-spacing: -.04em; }
.stat-label { color: var(--muted); font-size: 11px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); gap: 18px; }
.stack { display: grid; gap: 18px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  color: var(--text-2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
}
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .75; }
.badge.teal { color: #5df0df; border-color: rgba(32, 216, 200, .24); background: rgba(32, 216, 200, .08); }
.badge.orange { color: #ffc07a; border-color: rgba(255, 155, 66, .24); background: rgba(255, 155, 66, .08); }
.badge.red { color: #ff9ba6; border-color: rgba(255, 107, 122, .24); background: rgba(255, 107, 122, .08); }
.badge.violet { color: #c4b5fd; border-color: rgba(139, 92, 246, .24); background: rgba(139, 92, 246, .09); }
.badge.blue { color: #9dd3ff; border-color: rgba(103, 183, 255, .24); background: rgba(103, 183, 255, .08); }
.badge.green { color: #8af0c5; border-color: rgba(70, 227, 165, .24); background: rgba(70, 227, 165, .08); }
.badge.gray { color: #9fb6c5; }
.badge.no-dot::before { display: none; }

.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.data-table th {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  color: #607f92;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .13em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.data-table td { padding: 13px 16px; border-bottom: 1px solid rgba(141, 179, 199, .08); font-size: 12px; vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr { transition: .15s ease; }
.data-table tbody tr:hover { background: rgba(255, 255, 255, .023); }
.data-table .primary-cell { color: var(--text); font-weight: 650; }
.data-table .sub-cell { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.row-actions { display: flex; align-items: center; gap: 5px; justify-content: flex-end; }
.row-actions .icon-btn { width: 30px; height: 30px; border-radius: 8px; }
.row-actions .icon-btn svg { width: 14px; height: 14px; }
.empty-state { padding: 48px 24px; text-align: center; color: var(--muted); }
.empty-state svg { width: 38px; height: 38px; margin-bottom: 12px; opacity: .35; }
.empty-state h3 { margin: 0 0 4px; color: var(--text-2); font-size: 14px; }
.empty-state p { margin: 0 auto; max-width: 430px; font-size: 12px; }
.loading-state { display: grid; gap: 12px; padding: 24px; }
.skeleton { height: 44px; border-radius: 10px; background: linear-gradient(90deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .07), rgba(255, 255, 255, .035)); background-size: 220% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { to { background-position: -220% 0; } }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.search-box { position: relative; min-width: min(100%, 360px); }
.search-box svg { position: absolute; left: 11px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--muted); }
.search-box input { width: 100%; padding-left: 35px; }
.filter-note { color: var(--muted); font-size: 11px; }

.field { display: grid; gap: 6px; }
.field > span { color: var(--text-2); font-size: 11px; font-weight: 650; letter-spacing: .02em; }
.field > span .req { color: var(--accent-3); }
input, select, textarea {
  width: 100%;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(3, 10, 18, .55);
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: .16s ease;
}
input:hover, select:hover, textarea:hover { border-color: var(--border-strong); }
input:focus, select:focus, textarea:focus { border-color: rgba(32, 216, 200, .62); box-shadow: 0 0 0 3px rgba(32, 216, 200, .09); }
input::placeholder, textarea::placeholder { color: #4c6879; }
textarea { min-height: 86px; resize: vertical; line-height: 1.45; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #728d9e 50%), linear-gradient(135deg, #728d9e 50%, transparent 50%); background-position: calc(100% - 16px) calc(50% - 2px), calc(100% - 11px) calc(50% - 2px); background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
input[type="color"] { padding: 4px; min-height: 40px; cursor: pointer; }
input[type="checkbox"] { width: 16px; height: 16px; min-height: auto; accent-color: var(--accent); }
input[type="file"] { padding: 7px; font-size: 12px; }
input[type="file"]::file-selector-button { margin-right: 9px; padding: 5px 9px; border: 1px solid var(--border); border-radius: 7px; background: rgba(255, 255, 255, .05); color: var(--text-2); font-size: 11px; cursor: pointer; }
.field-help { color: var(--muted); font-size: 10px; line-height: 1.45; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .span-2 { grid-column: span 2; }
.form-stack { display: grid; gap: 16px; }
.form-section { margin: 4px 0 0; padding: 16px 0 0; border-top: 1px solid var(--border); }
.form-section:first-child { padding-top: 0; border-top: 0; }
.form-section-title { margin-bottom: 12px; color: var(--text); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.check-line { display: flex; align-items: flex-start; gap: 9px; color: var(--text-2); font-size: 12px; cursor: pointer; }
.check-line input { margin-top: 2px; }
.form-actions { display: flex; justify-content: flex-end; align-items: center; gap: 9px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); }
.color-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.input-suffix { display: flex; align-items: center; }
.input-suffix input { border-radius: 9px 0 0 9px; }
.input-suffix span { min-height: 38px; display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--border); border-left: 0; border-radius: 0 9px 9px 0; color: var(--muted); font-size: 11px; background: rgba(255, 255, 255, .03); }

.service-list { display: grid; }
.service-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 22px; border-bottom: 1px solid rgba(141, 179, 199, .08); }
.service-row:last-child { border-bottom: 0; }
.service-row .service-name { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 12px; }
.service-row .service-name svg { width: 16px; height: 16px; color: var(--muted); }
.service-value { color: var(--muted); font-size: 11px; font-family: var(--mono); }
.event-list { display: grid; }
.event-row { display: flex; gap: 12px; padding: 13px 22px; border-bottom: 1px solid rgba(141, 179, 199, .08); }
.event-row:last-child { border-bottom: 0; }
.event-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: rgba(32, 216, 200, .08); color: var(--accent); flex: none; }
.event-icon svg { width: 15px; height: 15px; }
.event-main { min-width: 0; flex: 1; }
.event-main strong { display: block; font-size: 11px; font-weight: 650; color: var(--text-2); }
.event-main span { display: block; color: var(--muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-time { color: #577487; font-size: 9px; white-space: nowrap; padding-top: 2px; }

.image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 15px; }
.image-card { border: 1px solid var(--border); border-radius: 16px; background: linear-gradient(155deg, rgba(16, 36, 55, .78), rgba(8, 19, 31, .7)); overflow: hidden; display: flex; flex-direction: column; }
.image-top { display: flex; gap: 13px; padding: 18px 18px 14px; }
.os-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(32, 216, 200, .09); color: var(--accent); border: 1px solid rgba(32, 216, 200, .17); flex: none; }
.os-icon.windows { color: #8bc7ff; background: rgba(103, 183, 255, .08); border-color: rgba(103, 183, 255, .18); }
.os-icon svg { width: 21px; height: 21px; }
.image-title { min-width: 0; flex: 1; }
.image-title h3 { margin: 0; font-size: 14px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.image-title p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.image-body { padding: 0 18px 15px; flex: 1; }
.asset-list { display: grid; gap: 6px; margin: 9px 0 0; }
.asset-line { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; min-width: 0; }
.asset-line svg { width: 13px; height: 13px; opacity: .7; }
.asset-line span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.image-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--border); background: rgba(255, 255, 255, .015); }
.progress { height: 5px; border-radius: 999px; background: rgba(255, 255, 255, .06); overflow: hidden; margin: 10px 0 6px; }
.progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), #7ff0d9); transition: width .5s ease; }
.progress-fill.orange { background: linear-gradient(90deg, var(--accent-3), #ffc07a); }
.progress-label { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; }

.server-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 15px; }
.server-card { padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: linear-gradient(155deg, rgba(16, 36, 55, .78), rgba(8, 19, 31, .7)); }
.server-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.server-top h3 { margin: 0; font-size: 15px; }
.server-top p { margin: 3px 0 0; color: var(--muted); font-size: 10px; word-break: break-all; }
.server-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 17px 0; }
.meta-box { padding: 9px 10px; border: 1px solid rgba(141, 179, 199, .1); border-radius: 9px; background: rgba(0, 0, 0, .14); }
.meta-box span { display: block; color: var(--muted); font-size: 8px; letter-spacing: .13em; text-transform: uppercase; }
.meta-box strong { display: block; margin-top: 3px; color: var(--text-2); font-size: 11px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.boot-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr); gap: 20px; align-items: start; }
.boot-preview {
  position: relative;
  min-height: 430px;
  padding: 18px;
  border: 1px solid rgba(141, 179, 199, .18);
  border-radius: 18px;
  overflow: hidden;
  color: #e8f2f7;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, .4), var(--shadow);
}
.boot-preview::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px); background-size: 100% 22px; pointer-events: none; }
.boot-preview-head { position: relative; display: flex; justify-content: space-between; gap: 15px; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.boot-preview-head img { max-width: 310px; max-height: 78px; object-fit: contain; object-position: left center; display: block; }
.boot-preview-meta { text-align: right; color: rgba(232, 242, 247, .5); font-size: 9px; letter-spacing: .06em; }
.boot-preview-title { position: relative; margin-top: 16px; }
.boot-preview-title h3 { margin: 0; font-size: 21px; letter-spacing: -.02em; }
.boot-preview-title p { margin: 3px 0 0; opacity: .65; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.boot-menu-preview { position: relative; margin-top: 22px; border: 1px solid rgba(255, 255, 255, .17); background: rgba(0, 0, 0, .18); }
.boot-menu-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 12px; border-bottom: 1px solid rgba(255, 255, 255, .06); font-family: var(--mono); font-size: 11px; }
.boot-menu-item:last-child { border-bottom: 0; }
.boot-menu-item.active { box-shadow: inset 3px 0 0 currentColor; background: rgba(255, 255, 255, .1); }
.boot-menu-item span:last-child { opacity: .42; font-size: 9px; }
.boot-menu-gap { opacity: .48; font-size: 9px; }
.boot-copyright { position: relative; margin-top: 22px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .1); font-family: var(--mono); font-size: 9px; opacity: .52; text-align: center; }
.boot-note { position: relative; margin-top: 14px; color: rgba(232, 242, 247, .58); font-size: 10px; line-height: 1.55; }
.boot-form-panel .panel-body { max-height: none; }
.logo-upload { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px dashed var(--border-strong); border-radius: 12px; background: rgba(0, 0, 0, .12); }
.logo-upload img { width: 112px; height: 30px; object-fit: contain; }
.logo-upload input { flex: 1; border: 0; padding: 0; background: transparent; min-height: auto; }

.code-tabs { display: flex; gap: 5px; padding: 5px; border: 1px solid var(--border); border-radius: 11px; background: rgba(0, 0, 0, .18); width: fit-content; }
.code-tab { padding: 6px 13px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 650; cursor: pointer; }
.code-tab.active { color: var(--text); background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--border); }
.code-block { margin-top: 14px; border: 1px solid var(--border); border-radius: 13px; overflow: hidden; background: #050d16; }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 13px; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, .025); color: var(--muted); font-size: 10px; }
.code-block pre { margin: 0; padding: 18px; overflow: auto; max-height: 560px; color: #c9e1ea; font-family: var(--mono); font-size: 11px; line-height: 1.65; tab-size: 2; }
.notes-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.notes-list li { position: relative; padding-left: 20px; color: var(--text-2); font-size: 12px; line-height: 1.55; }
.notes-list li::before { content: ""; position: absolute; left: 3px; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(32, 216, 200, .5); }
.notice { display: flex; gap: 11px; padding: 13px 15px; border: 1px solid rgba(255, 200, 87, .22); border-radius: 12px; background: rgba(255, 200, 87, .06); color: #ffe0a0; font-size: 12px; line-height: 1.5; }
.notice svg { width: 17px; height: 17px; color: var(--warning); margin-top: 1px; }
.notice.info { border-color: rgba(103, 183, 255, .2); background: rgba(103, 183, 255, .055); color: #c7e6ff; }
.notice.info svg { color: var(--info); }
.notice.danger { border-color: rgba(255, 107, 122, .22); background: rgba(255, 107, 122, .06); color: #ffc2c9; }
.notice.danger svg { color: var(--danger); }
.system-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.system-item { padding: 12px 13px; border: 1px solid var(--border); border-radius: 10px; background: rgba(0, 0, 0, .13); }
.system-item span { display: block; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.system-item strong { display: block; margin-top: 3px; font-family: var(--mono); font-size: 11px; font-weight: 500; word-break: break-all; }

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 7, 12, .76);
  backdrop-filter: blur(7px);
  animation: fadeIn .16s ease;
}
.modal {
  width: min(100%, 620px);
  max-height: min(90vh, 900px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  background: linear-gradient(160deg, #102438, #081420 70%);
  box-shadow: 0 30px 100px rgba(0, 0, 0, .65);
  animation: modalIn .2s ease;
}
.modal.lg { width: min(100%, 820px); }
.modal.sm { width: min(100%, 460px); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 22px; border-bottom: 1px solid var(--border); }
.modal-head h2 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.modal-head p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.modal-body { padding: 22px; overflow-y: auto; min-height: 0; }
.modal-foot { display: flex; justify-content: flex-end; gap: 9px; padding: 16px 22px; border-top: 1px solid var(--border); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(8px) scale(.985); } }

.toast-stack { position: fixed; z-index: 120; right: 22px; bottom: 22px; display: grid; gap: 9px; width: min(360px, calc(100vw - 44px)); }
.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: rgba(13, 30, 47, .97);
  box-shadow: var(--shadow);
  color: var(--text-2);
  font-size: 12px;
  animation: toastIn .22s ease;
}
.toast svg { width: 17px; height: 17px; margin-top: 1px; color: var(--accent); }
.toast.error { border-color: rgba(255, 107, 122, .35); }
.toast.error svg { color: var(--danger); }
.toast.success { border-color: rgba(70, 227, 165, .28); }
.toast.success svg { color: var(--success); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1180px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .boot-layout { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
  .sidebar { transform: translateX(-100%); transition: transform .24s ease; box-shadow: var(--shadow); }
  .sidebar.open { transform: translateX(0); }
  .icon-btn.sidebar-close, .icon-btn.mobile-only { display: inline-grid; }
  .workspace { margin-left: 0; }
  .nav-scrim.open { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(0, 0, 0, .55); }
  .login-shell { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .login-panel { min-height: 100vh; background: radial-gradient(700px 500px at 50% 10%, rgba(32, 216, 200, .1), transparent 70%); }
  .login-card-mark { display: block; }
}
@media (max-width: 760px) {
  .content { padding: 20px 16px 40px; }
  .topbar { min-height: 72px; padding: 13px 16px; }
  .topbar h1 { font-size: 19px; }
  .topbar p { display: none; }
  .top-status { display: none; }
  .page-head { flex-direction: column; }
  .page-head h2 { font-size: 24px; }
  .form-grid, .form-grid.three { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .color-grid { grid-template-columns: 1fr; }
  .image-grid, .server-grid { grid-template-columns: 1fr; }
  .modal-overlay { padding: 10px; }
  .modal { max-height: 94vh; }
  .login-panel { padding: 22px; }
  .login-card { padding: 28px 22px; }
  .boot-preview { min-height: 360px; padding: 14px; }
  .boot-preview-head img { max-width: 180px; }
}
@media (max-width: 520px) {
  .stat-grid { grid-template-columns: 1fr; }
  .stat-card { padding: 15px 16px; }
  .stat-value { font-size: 28px; }
  .topbar-actions .icon-btn { display: none; }
  .modal-foot { padding: 13px 16px; }
  .modal-body { padding: 16px; }
  .modal-head { padding: 16px; }
  .boot-menu-item { font-size: 10px; }
  .logo-upload { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
input[readonly], input:disabled, select:disabled, textarea:disabled { opacity: .62; cursor: not-allowed; }
.modal > form { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
.modal-body { flex: 1 1 auto; }

.link-btn { padding: 0; border: 0; background: transparent; color: var(--accent); font: inherit; cursor: pointer; text-align: left; }
.link-btn:hover { text-decoration: underline; }
.agent-online { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 11px; }
.agent-online span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.agent-online.on span { background: var(--success); box-shadow: 0 0 9px rgba(70, 227, 165, .65); }
.agent-online.off span { background: var(--danger); }
.cve-list { display: flex; flex-wrap: wrap; gap: 4px; }
.agent-command-bar { margin-top: 18px; }
.modal-details { margin-top: 8px; border: 1px solid var(--border); border-radius: 11px; background: rgba(0, 0, 0, .12); }
.modal-details > summary { padding: 11px 13px; color: var(--text-2); font-size: 12px; cursor: pointer; list-style: none; }
.modal-details > summary::-webkit-details-marker { display: none; }
.modal-details > summary::before { content: "+"; display: inline-block; width: 17px; color: var(--accent); font-weight: 800; }
.modal-details[open] > summary::before { content: "−"; }
.modal-details .table-wrap { border-top: 1px solid var(--border); max-height: 300px; overflow: auto; }
.command-list { display: grid; gap: 8px; }
.command-row { padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: rgba(0, 0, 0, .12); }
.command-row strong { display: block; font-size: 11px; }
.command-row span { display: block; color: var(--muted); font-size: 10px; margin-top: 2px; }
.command-row details { margin-top: 7px; }
.command-row summary { color: var(--accent); font-size: 10px; cursor: pointer; }
.command-row pre { margin: 6px 0 0; max-height: 160px; overflow: auto; font-family: var(--mono); font-size: 10px; color: var(--text-2); white-space: pre-wrap; }
.integration-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 15px; }
.integration-card { padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: linear-gradient(155deg, rgba(16, 36, 55, .78), rgba(8, 19, 31, .7)); display: flex; flex-direction: column; gap: 15px; }
.integration-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.integration-card .btn-row { margin-top: auto; }
.about-hero { display: flex; align-items: center; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.about-hero img { width: 62px; height: 62px; }
.about-hero h2 { margin: 0; font-size: 21px; }
.about-hero p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.credit-row { display: grid; grid-template-columns: minmax(150px, .8fr) minmax(120px, .55fr) 1.6fr; gap: 14px; padding: 11px 0; border-bottom: 1px solid rgba(141, 179, 199, .08); font-size: 11px; }
.credit-row:last-child { border-bottom: 0; }
.credit-row strong { color: var(--text-2); }
.credit-row a { color: var(--accent); }
.credit-row span { color: var(--muted); }
@media (max-width: 760px) {
  .credit-row { grid-template-columns: 1fr; gap: 4px; }
}

.table-scroll { max-height: 460px; overflow: auto; }
.table-scroll thead th { position: sticky; top: 0; z-index: 1; background: #0b1b2b; }
.break-all { word-break: break-all; }
.recovery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.recovery-code { padding: 9px 10px; border: 1px solid var(--border); border-radius: 8px; background: rgba(0, 0, 0, .18); color: var(--text-2); font-size: 12px; text-align: center; letter-spacing: .06em; }
@media (max-width: 520px) { .recovery-grid { grid-template-columns: 1fr; } }

.wizard-progress { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.wizard-progress-item { display: flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 999px; background: rgba(0, 0, 0, .16); color: var(--muted); font-size: 10px; font-weight: 650; cursor: pointer; }
.wizard-progress-item span { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(255, 255, 255, .06); font-size: 9px; }
.wizard-progress-item.active { color: var(--text); border-color: rgba(32, 216, 200, .45); background: rgba(32, 216, 200, .08); }
.wizard-progress-item.done { color: var(--accent); }
.wizard-progress-item.done span { background: rgba(32, 216, 200, .18); }
.wizard-step { min-height: 120px; }
.wizard-step.hidden { display: none; }
.storage-overlay { z-index: 95; }
.method-grid { display: grid; gap: 10px; }
.method-card { display: grid; gap: 5px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: rgba(0, 0, 0, .15); cursor: pointer; }
.method-card input { width: 16px; height: 16px; accent-color: var(--accent); }
.method-card strong { font-size: 13px; }
.method-card span { color: var(--muted); font-size: 11px; line-height: 1.5; }
.method-card:has(input:checked) { border-color: rgba(32, 216, 200, .5); background: rgba(32, 216, 200, .07); }
[data-storage-raid-field].hidden { display: none; }
.totp-qr { display:grid; place-items:center; padding:12px; border-radius:12px; background:#fff; width:fit-content; margin:0 auto; }
.totp-qr svg { width:220px; height:220px; }
.connection-popout { position: fixed; z-index: 140; right: 18px; top: 18px; width: min(380px, calc(100vw - 36px)); padding: 14px 16px; border: 1px solid rgba(255,107,122,.4); border-radius: 14px; background: rgba(38,12,20,.97); color: #ffc2c9; box-shadow: 0 18px 60px rgba(0,0,0,.5); animation: slideInRight .22s ease; }
.connection-popout-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.connection-popout p { margin: 7px 0 12px; color: #ffadb6; font-size: 12px; line-height: 1.5; word-break: break-word; }
.connection-popout .icon-btn { color: #ffc2c9; }
@keyframes slideInRight { from { opacity: 0; transform: translateX(24px); } }
.top-user-wrap { position: relative; }
.top-user { display: flex; align-items: center; gap: 8px; padding: 5px 8px 5px 5px; border: 1px solid var(--border); border-radius: 999px; background: rgba(0,0,0,.15); color: var(--text-2); cursor: pointer; font-size: 11px; font-weight: 650; }
.top-user .avatar { width: 28px; height: 28px; font-size: 11px; }
.top-user svg { width: 14px; height: 14px; color: var(--muted); }
.user-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 80; width: 210px; padding: 6px; border: 1px solid var(--border-strong); border-radius: 12px; background: #0b1c2c; box-shadow: 0 18px 60px rgba(0,0,0,.5); }
.user-menu button { width: 100%; padding: 9px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--text-2); text-align: left; font-size: 12px; cursor: pointer; }
.user-menu button:hover { background: rgba(255,255,255,.06); color: var(--text); }
.user-menu.hidden { display: none; }
.metric-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:10px; margin:16px 0; }
.metric-card { padding:12px 13px; border:1px solid var(--border); border-radius:10px; background:rgba(0,0,0,.13); display:grid; gap:7px; }
.metric-card > span { color:var(--muted); font-size:9px; text-transform:uppercase; letter-spacing:.1em; }
.metric-card strong { font-size:11px; color:var(--text-2); }
.metric-bar { height:7px; border-radius:999px; background:rgba(255,255,255,.07); overflow:hidden; }
.metric-bar i { display:block; height:100%; border-radius:999px; background:linear-gradient(90deg,#16b8aa,#20d8c8); }
.service-chip-list { display:flex; flex-wrap:wrap; gap:6px; padding-top:10px; }
.service-chip { padding:5px 8px; border:1px solid var(--border); border-radius:999px; background:rgba(0,0,0,.15); color:var(--text-2); font-size:10px; font-family:var(--mono); }
