/* ============================================================
   SYNOTI — Admin Console Design System (2026)
   Dark-first glassmorphism · SYN-style enterprise console
   Brand gradient: violet #7c3aed → cyan #06b6d4
   ============================================================ */

:root {
  /* Surfaces — deep indigo-night family (cool, premium) */
  --bg-0: #05060f;
  --bg-1: #05060f;
  --bg-2: #10142b;
  --bg-3: #171c38;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-strong: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.09);

  /* Text — cool indigo whites */
  --text-1: #eef1ff;
  --text-2: #a5acc9;
  --text-3: #6b7396;

  /* Brand accents — violet #7c3aed + cyan #06b6d4 */
  --accent-1: #8b5cf6;
  --accent-2: #a78bfa;
  --accent-3: #22d3ee;
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;
  --info: #60a5fa;

  --grad-main: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
  --grad-danger: linear-gradient(135deg, #f87171, #fb923c);
  --grad-success: linear-gradient(135deg, #34d399, #22d3ee);

  /* Accent glow (brand violet) */
  --glow: 0 0 0 1px rgba(124, 58, 237, 0.22), 0 8px 40px rgba(124, 58, 237, 0.16);

  /* Legacy aliases (kept for page content) */
  --bg: #05060f;
  --surface: #10142b;
  --surface-2: #1a2140;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef1ff;
  --text2: #a5acc9;
  --text3: #6b7396;
  --primary: #8b5cf6;
  --primary-hover: #a78bfa;
  --primary-soft: rgba(124, 58, 237, 0.16);
  --accent1: #7c3aed;
  --accent2: #06b6d4;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow: 0 1px 3px rgba(2, 6, 23, 0.4), 0 8px 24px rgba(2, 6, 23, 0.35);
  --shadow-1: 0 4px 24px rgba(2, 6, 23, 0.4);
  --shadow-2: 0 12px 48px rgba(2, 6, 23, 0.5);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", "Fira Code", monospace;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  /* Theme-dependent surfaces */
  --topbar-bg: rgba(5, 6, 15, 0.72);
  --dropdown-bg: rgba(16, 20, 43, 0.96);
  --toast-bg: rgba(16, 20, 43, 0.97);
  --sidebar-bg: rgba(5, 6, 15, 0.5);
  --row-hover: rgba(255, 255, 255, 0.035);
  --row-border: rgba(255, 255, 255, 0.05);
  --grid-line: rgba(255, 255, 255, 0.028);
  color-scheme: dark;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg-0);
  color: var(--text-1);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.35s ease, color 0.35s ease;
}

/* Animated aurora background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(600px 400px at 15% 10%, rgba(124, 58, 237, 0.24), transparent 60%),
    radial-gradient(700px 500px at 85% 20%, rgba(6, 182, 212, 0.20), transparent 60%),
    radial-gradient(800px 600px at 50% 100%, rgba(139, 92, 246, 0.16), transparent 60%),
    var(--bg-0);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 80%);
  pointer-events: none;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-0);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-3);
  border-radius: 8px;
  border: 2px solid var(--bg-0);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-3);
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.mono {
  font-family: var(--mono);
}
.text-2 {
  color: var(--text-2);
}
.text-3 {
  color: var(--text-3);
}
.muted {
  color: var(--text-3);
  font-size: 12px;
}

a {
  color: var(--accent-1);
  text-decoration: none;
}

/* ============================================================
   TOP NAVIGATION — sticky, glass, with dropdowns
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 64px;
  padding: 0 18px;
  background: var(--topbar-bg);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--glass-border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-1);
  flex-shrink: 0;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--grad-main);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.45);
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.brand-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-2);
  margin-left: 2px;
  letter-spacing: 0.5px;
}

/* Horizontal nav */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}

.nav-item {
  position: relative;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border: none;
  background: transparent;
  color: var(--text-2);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.nav-btn:hover {
  color: var(--text-1);
  background: var(--glass);
}

.nav-btn.active {
  color: var(--text-1);
  background: var(--glass-strong);
  box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.28);
}

.nav-btn .chevron {
  display: inline-flex;
  font-size: 10px;
  transition: transform var(--transition);
  color: var(--text-3);
}

.nav-btn .chevron svg {
  width: 14px;
  height: 14px;
}

.nav-item.open .nav-btn .chevron {
  transform: rotate(180deg);
}

.nav-btn .badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--grad-danger);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* Dropdown menu */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  max-height: 70vh;
  overflow-y: auto;
  padding: 8px;
  background: var(--dropdown-bg);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 200;
}

.nav-item.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown.mega {
  width: min(560px, 90vw);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  overflow: visible;
}

.dropdown.mega.cols-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.dropdown .col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dropdown-header {
  padding: 8px 12px 6px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  text-decoration: none;
  font-size: 13px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  font-family: inherit;
  text-align: left;
}

.dropdown-item:hover {
  background: var(--glass-strong);
  color: var(--text-1);
}

.dropdown-item .icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--glass);
  font-size: 13px;
  flex-shrink: 0;
}

.dropdown-item .icon svg {
  width: 14px;
  height: 14px;
}

.dropdown-item .meta {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-3);
}

.dropdown-divider {
  height: 1px;
  margin: 6px 8px;
  background: var(--glass-border);
}

/* Topbar right */
.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Time-range select */
.select {
  position: relative;
}

.select select {
  appearance: none;
  height: 36px;
  padding: 0 34px 0 12px;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-1);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

.select select:hover,
.select select:focus {
  border-color: var(--accent-1);
}

.select::after {
  content: "▾";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--text-3);
  pointer-events: none;
}

/* Global search */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 420px;
}

.search-box input {
  width: 100%;
  height: 38px;
  padding: 0 40px 0 14px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-1);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: var(--transition);
}

.search-box input::placeholder {
  color: var(--text-3);
}

.search-box input:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
  background: rgba(255, 255, 255, 0.06);
}

.search-box kbd {
  position: absolute;
  right: 10px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
  background: var(--bg-3);
  border: 1px solid var(--glass-border);
  border-radius: 5px;
  padding: 1px 5px;
}

/* Icon buttons */
.icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--text-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 15px;
  transition: var(--transition);
  flex-shrink: 0;
}

.icon-btn:hover {
  color: var(--text-1);
  background: var(--glass-strong);
  border-color: rgba(255, 255, 255, 0.16);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.icon-btn .dot {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 2px var(--bg-1);
}

.icon-btn .dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid var(--danger);
  animation: ping 1.6s ease-out infinite;
}

@keyframes ping {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* Avatar */
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--grad-main);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.12);
  transition: var(--transition);
  text-decoration: none;
  flex-shrink: 0;
}

.avatar:hover {
  transform: scale(1.05);
}

/* ============================================================
   LAYOUT — app shell
   ============================================================ */
.app {
  display: flex;
  min-height: calc(100vh - 64px);
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  width: 252px;
  flex-shrink: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 10px 24px;
  border-right: 1px solid var(--glass-border);
  background: var(--sidebar-bg);
  transition: width var(--transition);
}

.side-label {
  padding: 14px 10px 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-3);
  white-space: nowrap;
}

.side-sub {
  padding: 12px 10px 4px;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  opacity: 0.8;
  white-space: nowrap;
}

.side-group {
  margin-bottom: 4px;
}

.side-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  background: transparent;
  color: var(--text-2);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  text-decoration: none;
  position: relative;
}

.side-item:hover {
  background: var(--glass);
  color: var(--text-1);
}

.side-item.active {
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.22), rgba(6, 182, 212, 0.08));
  color: var(--text-1);
  box-shadow: inset 3px 0 0 var(--accent-1), inset 0 0 0 1px rgba(124, 58, 237, 0.18);
}

.side-item .icon {
  width: 18px;
  text-align: center;
  font-size: 15px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.side-item .icon svg {
  width: 16px;
  height: 16px;
}

.side-item .count {
  margin-left: auto;
  font-size: 11px;
  font-family: var(--mono);
  color: var(--text-3);
  background: var(--glass);
  padding: 1px 7px;
  border-radius: 8px;
}

/* Collapsible parent + nested children */
.side-item .lbl {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-item .chev {
  font-size: 10px;
  color: var(--text-3);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.side-item.side-parent.open .chev {
  transform: rotate(90deg);
}

.side-item.side-parent {
  user-select: none;
}

.side-item.side-parent.open {
  color: var(--text-1);
}

/* Collapsed mini-rail */
.sidebar.collapsed {
  width: 64px;
  padding: 14px 8px 24px;
}
.sidebar.collapsed .side-label,
.sidebar.collapsed .side-sub {
  display: none;
}
.sidebar.collapsed .side-group {
  margin-bottom: 4px;
}
.sidebar.collapsed .side-item {
  justify-content: center;
  padding: 9px 0;
  gap: 0;
}
.sidebar.collapsed .side-item .lbl,
.sidebar.collapsed .side-item .count,
.sidebar.collapsed .side-item .chev {
  display: none;
}
.sidebar.collapsed .side-item .icon {
  width: auto;
  font-size: 16px;
}

.side-children {
  display: none;
  padding-left: 8px;
  border-left: 1px solid var(--row-border);
  margin-left: 17px;
}

.side-children.open {
  display: block;
}

.side-children .side-item {
  padding: 7px 8px;
  font-size: 12.5px;
}

.side-children .side-children {
  margin-left: 10px;
}

/* Edge handle — collapse/expand on the sidebar border */
.sidebar-handle-slot {
  position: sticky;
  top: 64px;
  align-self: flex-start;
  height: 0;
  flex: 0 0 0;
  z-index: 60;
}

.sidebar-handle {
  position: absolute;
  left: -15px;
  top: 18px;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: var(--bg-2);
  color: var(--text-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-1);
  transition: var(--transition);
}

.sidebar-handle:hover {
  color: var(--text-1);
  border-color: rgba(124, 58, 237, 0.45);
  box-shadow: var(--glow);
}

.sidebar-handle svg {
  width: 15px;
  height: 15px;
}

#sidebarMenuBtn {
  display: none;
}

/* Main content */
.main {
  flex: 1;
  min-width: 0;
  padding: 24px 28px 48px;
  max-width: 1440px;
}

/* Page header */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.page-title h1 {
  font-size: 22px;
  margin-bottom: 4px;
  background: linear-gradient(100deg, #eef1ff 20%, #a78bfa 60%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-title p {
  color: var(--text-3);
  font-size: 13px;
}

.page-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.crumbs {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 8px;
}

.crumbs a {
  color: var(--accent-1);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--glass);
  color: var(--text-1);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  background: var(--glass-strong);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--grad-main);
  border: none;
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
  box-shadow: var(--glow);
  filter: brightness(1.12);
}

.btn-danger {
  background: var(--grad-danger);
  border: none;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border: none;
  color: var(--text-2);
}

.btn-ghost:hover {
  background: var(--glass);
  color: var(--text-1);
}

.btn svg {
  width: 16px;
  height: 16px;
}

.icon-inline {
  display: inline-flex;
  vertical-align: -2px;
}

.icon-inline svg {
  width: 12px;
  height: 12px;
}

.btn-sm {
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
}

/* ============================================================
   KPI CARDS
   ============================================================ */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  position: relative;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--transition);
  overflow: hidden;
}

.kpi-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.10), transparent);
}

.kpi-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-main);
  opacity: 0;
  transition: var(--transition);
}

.kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-1), var(--glow);
  border-color: rgba(255, 255, 255, 0.10);
}

.kpi-card:hover::before {
  opacity: 1;
}

.kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.kpi-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.kpi-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 15px;
}

.kpi-icon svg {
  width: 17px;
  height: 17px;
}

.kpi-value {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  font-family: var(--mono);
}

.kpi-sub {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 6px;
}

.trend-up,
.kpi-sub .up {
  color: var(--success);
  font-weight: 600;
}
.trend-down,
.kpi-sub .down {
  color: var(--danger);
  font-weight: 600;
}

/* ============================================================
   GRID + PANELS
   ============================================================ */
.grid {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.main-3 {
  grid-template-columns: 2fr 1fr;
}

.panel {
  position: relative;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  margin-bottom: 20px;
}

.panel::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.09), transparent);
  pointer-events: none;
}

.grid .panel {
  margin-bottom: 0;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--glass-border);
}

.panel-title {
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-sub {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 400;
  margin-left: 8px;
}

.panel-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-1);
  text-decoration: none;
}

.panel-link:hover {
  color: var(--accent-2);
}

.panel-title .dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

.panel-body {
  padding: 20px;
}

.panel-body.no-pad {
  padding: 0;
}

/* ============================================================
   FILTER BAR + PILLS
   ============================================================ */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  margin-bottom: 20px;
}

.filter-bar input,
.filter-bar select {
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--glass-strong);
  color: var(--text-1);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: var(--transition);
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.filter-bar select option {
  background: var(--bg-2);
  color: var(--text-1);
}

.pill {
  padding: 7px 15px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: var(--glass);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.pill:hover {
  color: var(--text-1);
}

.pill.on {
  background: var(--grad-main);
  color: #fff;
  border-color: transparent;
}

/* ============================================================
   TABLE
   ============================================================ */
.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 680px;
}

th {
  text-align: left;
  padding: 12px 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  border-bottom: 1px solid var(--glass-border);
  white-space: nowrap;
}

td {
  padding: 13px 20px;
  font-size: 13px;
  border-bottom: 1px solid var(--row-border);
  color: var(--text-2);
  vertical-align: middle;
}

tr {
  transition: var(--transition);
}

tbody tr:hover {
  background: var(--row-hover);
}

tbody tr:last-child td {
  border-bottom: none;
}

td code,
th code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-1);
}

td .mono {
  font-family: var(--mono);
  font-size: 12px;
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge.green,
.badge-success,
.badge-low {
  color: #6ee7b7;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.badge.amber,
.badge-warning,
.badge-medium {
  color: #fde68a;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.badge.red,
.badge-critical {
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.25);
}

.badge.blue,
.badge-info {
  color: #93c5fd;
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.25);
}

.badge.pink {
  color: #f9a8d4;
  background: rgba(236, 72, 153, 0.12);
  border: 1px solid rgba(236, 72, 153, 0.25);
}

.badge.gray,
.badge-neutral {
  color: var(--text-2);
  background: var(--glass);
  border: 1px solid var(--glass-border);
}

.badge-high {
  color: #fdba74;
  background: rgba(251, 146, 60, 0.12);
  border: 1px solid rgba(251, 146, 60, 0.25);
}

.badge-solid {
  color: #fff;
  background: var(--grad-main);
  border: none;
}

.badge-solid::before {
  background: rgba(255, 255, 255, 0.85);
}

/* Filter chips */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 3px;
}

.chip {
  height: 30px;
  padding: 0 13px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-3);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.chip:hover {
  color: var(--text-1);
}

.chip.active {
  background: var(--bg-3);
  color: #eef1ff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10);
}

/* Kanban board */
.kanban {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.kanban-col {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 14px;
  min-height: 260px;
}

.kanban-col h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 12px;
}

.kanban-card {
  background: var(--glass-strong);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 13px 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.kanban-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
}

.kanban-card .t {
  font-size: 12.5px;
  font-weight: 600;
  margin: 6px 0 4px;
}

.kanban-card .m {
  font-size: 11px;
  color: var(--text-3);
  display: flex;
  gap: 8px;
}

@media (max-width: 900px) {
  .kanban { grid-template-columns: 1fr; }
}

/* Severity chips */
.sev {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--mono);
}
.sev.critical {
  background: rgba(248, 113, 113, 0.12);
  color: var(--danger);
}
.sev.high {
  background: rgba(251, 146, 60, 0.12);
  color: #fdba74;
}
.sev.medium {
  background: rgba(96, 165, 250, 0.12);
  color: var(--info);
}
.sev.low {
  background: rgba(52, 211, 153, 0.12);
  color: var(--success);
}

/* ============================================================
   ALERTS / FEED
   ============================================================ */
.alert-item {
  display: flex;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--row-border);
  transition: var(--transition);
  cursor: pointer;
}

.alert-item:last-child {
  border-bottom: none;
}

.alert-item:hover {
  background: var(--row-hover);
}

.alert-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 15px;
  flex-shrink: 0;
}

.alert-icon svg {
  width: 16px;
  height: 16px;
}

.alert-body {
  min-width: 0;
}

.alert-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert-desc {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.5;
}

.alert-time {
  font-size: 11px;
  color: var(--text-3);
  font-family: var(--mono);
  white-space: nowrap;
  margin-left: auto;
}

/* ============================================================
   TOAST
   ============================================================ */
.toast-wrap {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 300px;
  max-width: 400px;
  padding: 14px 16px;
  background: var(--toast-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--accent-1);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-2);
  animation: toast-in 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.ok {
  border-left-color: var(--success);
}
.toast.err {
  border-left-color: var(--danger);
}

.toast h4 {
  font-size: 13px;
  font-weight: 700;
}
.toast p {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 2px;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* ============================================================
   CHARTS
   ============================================================ */
.chart-box {
  position: relative;
  width: 100%;
  height: 280px;
}
.chart-box.sm {
  height: 200px;
}
.chart-box.tall {
  height: 360px;
}

/* ============================================================
   CONSOLE / TERMINAL
   ============================================================ */
.console {
  background: #0b1220;
  color: #e2e8f0;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.9;
  overflow-x: auto;
}
.console .c-prompt {
  color: var(--success);
}
.console .c-cmd {
  color: #e2e8f0;
}
.console .c-out {
  color: #a5b4fc;
}
.console .c-mut {
  color: #64748b;
}

/* ============================================================
   TABS
   ============================================================ */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 20px;
  overflow-x: auto;
}
.tab {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tab.on {
  color: var(--accent-1);
  border-bottom-color: var(--accent-1);
}

/* ============================================================
   FORMS
   ============================================================ */
.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 9px 13px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border 0.2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
}
.check-row input {
  width: auto;
}

.switch {
  position: relative;
  width: 42px;
  height: 24px;
  display: inline-block;
  flex-shrink: 0;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch .slider {
  position: absolute;
  inset: 0;
  background: var(--bg-3);
  border-radius: 100px;
  cursor: pointer;
  transition: 0.2s;
}
.switch .slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  transition: 0.2s;
}
.switch input:checked + .slider {
  background: var(--grad-main);
}
.switch input:checked + .slider::before {
  transform: translateX(18px);
}

/* ============================================================
   MISC
   ============================================================ */
.progress {
  height: 8px;
  border-radius: 100px;
  background: var(--bg-3);
  overflow: hidden;
}
.progress > span {
  display: block;
  height: 100%;
  background: var(--grad-main);
  border-radius: 100px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.health-score {
  font-family: var(--mono);
  font-weight: 700;
}
.health-ok {
  color: var(--success);
}
.health-warn {
  color: var(--warning);
}
.health-bad {
  color: var(--danger);
}

.spark {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
}

.section-gap {
  margin-bottom: 20px;
}

/* Empty state */
.empty {
  text-align: center;
  color: var(--text-3);
  padding: 40px 16px !important;
}

/* Utility */
.flex {
  display: flex;
}
.between {
  justify-content: space-between;
}
.center {
  align-items: center;
}
.right {
  text-align: right;
}
.gap8 {
  gap: 8px;
}
.gap16 {
  gap: 16px;
}
.mt8 {
  margin-top: 8px;
}
.mt16 {
  margin-top: 16px;
}
.mt24 {
  margin-top: 24px;
}
.mb8 {
  margin-bottom: 8px;
}
.mb16 {
  margin-bottom: 16px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .main-3 {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-btn {
    padding: 8px 10px;
  }
}

@media (max-width: 992px) {
  .nav {
    display: none;
  }
  .search-box {
    max-width: 240px;
  }
}

@media (max-width: 820px) {
  .sidebar {
    position: fixed;
    z-index: 90;
    transform: translateX(-100%);
    transition: transform 0.2s;
    background: var(--bg-1);
  }
  .sidebar.open {
    transform: none;
  }
  .sidebar-handle-slot {
    display: none;
  }
  #sidebarMenuBtn {
    display: grid;
  }
  .main {
    padding: 16px;
  }
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .page-header {
    flex-direction: column;
  }
  .search-box {
    display: none;
  }
  .topbar .btn-sm {
    display: none;
  }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.anim-fade {
  animation: fadeUp 0.5s ease both;
}
.anim-d1 {
  animation-delay: 0.05s;
}
.anim-d2 {
  animation-delay: 0.1s;
}
.anim-d3 {
  animation-delay: 0.15s;
}
.anim-d4 {
  animation-delay: 0.2s;
}
.anim-d5 {
  animation-delay: 0.25s;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   LIGHT THEME (override)
   ============================================================ */
[data-theme="light"] {
  color-scheme: light;

  --bg-0: #f8fafc;
  --bg-1: #ffffff;
  --bg-2: #f1f5f9;
  --bg-3: #e2e8f0;
  --glass: rgba(255, 255, 255, 0.7);
  --glass-strong: rgba(255, 255, 255, 0.92);
  --glass-border: rgba(15, 23, 42, 0.10);

  --text-1: #0f172a;
  --text-2: #475569;
  --text-3: #94a3b8;

  --accent-1: #7c3aed;
  --accent-2: #8b5cf6;
  --accent-3: #0891b2;
  --success: #059669;
  --warning: #d97706;
  --danger: #dc2626;
  --info: #0284c7;

  --glow: 0 0 0 1px rgba(124, 58, 237, 0.16), 0 8px 40px rgba(124, 58, 237, 0.10);

  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --border: rgba(15, 23, 42, 0.10);
  --border-strong: rgba(15, 23, 42, 0.18);
  --text: #0f172a;
  --text2: #475569;
  --text3: #94a3b8;
  --primary: #7c3aed;
  --primary-hover: #6d28d9;
  --primary-soft: rgba(124, 58, 237, 0.10);

  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-1: 0 4px 24px rgba(15, 23, 42, 0.08);
  --shadow-2: 0 12px 48px rgba(15, 23, 42, 0.14);

  --topbar-bg: rgba(255, 255, 255, 0.8);
  --dropdown-bg: rgba(255, 255, 255, 0.98);
  --toast-bg: rgba(255, 255, 255, 0.97);
  --sidebar-bg: rgba(248, 250, 252, 0.7);
  --row-hover: rgba(15, 23, 42, 0.045);
  --row-border: rgba(15, 23, 42, 0.07);
  --grid-line: rgba(15, 23, 42, 0.035);
}

[data-theme="light"] body::before {
  background:
    radial-gradient(600px 400px at 15% 10%, rgba(124, 58, 237, 0.12), transparent 60%),
    radial-gradient(700px 500px at 85% 20%, rgba(8, 145, 178, 0.10), transparent 60%),
    radial-gradient(800px 600px at 50% 100%, rgba(139, 92, 246, 0.08), transparent 60%),
    var(--bg-0);
}

[data-theme="light"] .page-title h1 {
  background: linear-gradient(100deg, #0f172a 20%, #7c3aed 60%, #0891b2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .badge.green,
[data-theme="light"] .badge-success,
[data-theme="light"] .badge-low,
[data-theme="light"] .sev.low {
  color: #059669;
}
[data-theme="light"] .badge.red,
[data-theme="light"] .badge-critical,
[data-theme="light"] .sev.critical {
  color: #dc2626;
}
[data-theme="light"] .badge.amber,
[data-theme="light"] .badge-warning,
[data-theme="light"] .badge-medium {
  color: #d97706;
}
[data-theme="light"] .badge.blue,
[data-theme="light"] .badge-info {
  color: #2563eb;
}
[data-theme="light"] .badge.high,
[data-theme="light"] .sev.high {
  color: #ea580c;
}
[data-theme="light"] .sev.medium {
  color: #2563eb;
}

[data-theme="light"] ::-webkit-scrollbar-track {
  background: var(--bg-0);
}
[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-color: var(--bg-0);
}
[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

[data-theme="light"] .console {
  background: #0b1220;
  color: #e2e8f0;
}

/* ============================================================
   SETTINGS ROWS (.set-row)
   ============================================================ */
.set-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--row-border);
}
.set-row:last-child {
  border-bottom: 0;
}
.set-row b {
  font-weight: 600;
  color: var(--text-1);
}
.set-row p {
  color: var(--text-3);
  font-size: 12.5px;
  margin-top: 2px;
}

/* ============================================================
   LOGIN PAGE (chrome-less)
   ============================================================ */
body.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(700px 500px at 20% 10%, rgba(124, 58, 237, 0.18), transparent 60%),
    radial-gradient(800px 600px at 85% 30%, rgba(6, 182, 212, 0.14), transparent 60%),
    radial-gradient(900px 700px at 50% 110%, rgba(139, 92, 246, 0.12), transparent 60%),
    var(--bg-0);
}

.login-wrap {
  width: 100%;
  max-width: 420px;
}

.login-card {
  background: var(--glass-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 8px;
}
.login-brand .brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex: none;
}
.login-brand .brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.login-sub {
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
  margin: 0 0 24px;
}
.login-brand b {
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-card h1 {
  font-size: 22px;
  color: var(--text-1);
}

.login-card .field input {
  background: var(--bg-2);
  border-color: var(--border);
}

.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.login-row a {
  color: var(--accent-3);
  text-decoration: none;
}
.login-row a:hover {
  text-decoration: underline;
}

.login-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--row-border);
}

/* ===== NOC View wall ===== */
.noc-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr) 320px; gap: 16px; margin-top: 16px; align-items: start; }
.noc-center, .noc-right { display: flex; flex-direction: column; gap: 16px; }
.noc-clock-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; padding-right: 4px; }
.noc-clock { font-family: var(--mono); font-size: 20px; font-weight: 700; color: var(--accent-1); letter-spacing: .05em; line-height: 1; }
.noc-date { font-size: 11px; color: var(--text-3); font-family: var(--mono); }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
.svc-tile { border: 1px solid var(--glass-border); border-radius: 12px; padding: 10px; background: var(--glass); }
.svc-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 8px; }
.svc-name { font-size: 11px; font-weight: 600; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.svc-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.svc-dot.ok { background: #10b981; box-shadow: 0 0 8px rgba(16, 185, 129, .7); }
.svc-dot.warn { background: #f59e0b; box-shadow: 0 0 8px rgba(245, 158, 11, .7); }
.svc-dot.down { background: #ef4444; box-shadow: 0 0 8px rgba(239, 68, 68, .7); }
.svc-metrics { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 10px; color: var(--text-3); font-family: var(--mono); }
.svc-metrics .progress { flex: 1; height: 4px; }
.svc-metrics b { width: 30px; text-align: right; font-size: 10px; color: var(--text-2); font-weight: 600; }
.noc-chart { height: 150px; }
.noc-topo { width: 100%; height: auto; display: block; }
.pulse-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #10b981; margin-left: 8px; animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .5); } 70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }
.feed-item { display: flex; align-items: flex-start; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--row-border); }
.feed-item:last-child { border-bottom: none; }
.feed-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.feed-dot.critical { background: #ef4444; }
.feed-dot.high { background: #f59e0b; }
.feed-dot.info { background: #22d3ee; }
.feed-body { flex: 1; min-width: 0; }
.feed-title { font-size: 12px; color: var(--text-1); line-height: 1.35; }
.feed-time { font-size: 10.5px; color: var(--text-3); font-family: var(--mono); margin-top: 2px; }
.noc-worker { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--row-border); font-size: 12px; }
.noc-worker:last-child { border-bottom: none; }
.noc-worker .lbl { flex: 1; color: var(--text-2); font-family: var(--mono); font-size: 11.5px; }
@media (max-width: 1200px) { .noc-grid { grid-template-columns: 1fr; } }

/* ===== Topbar described dropdown items (live TopbarNav style) ===== */
.dropdown-item.described { align-items: flex-start; }
.dropdown-item.described .txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.dropdown-item .lbl { font-size: 12.5px; font-weight: 600; color: var(--text-1); white-space: nowrap; }
.dropdown-item .desc { font-size: 10.5px; color: var(--text-3); font-weight: 400; white-space: nowrap; }
.dropdown-item .meta { margin-left: auto; }
