:root {
  --bg: #07111d;
  --surface: #0c1928;
  --surface-2: #102033;
  --surface-3: #15283e;
  --line: rgba(151, 179, 211, .14);
  --line-strong: rgba(151, 179, 211, .25);
  --text: #edf4fb;
  --muted: #8192a7;
  --green: #5ee3a2;
  --blue: #54b9f6;
  --purple: #9d8cff;
  --amber: #f2bc63;
  --red: #f56f79;
  --sidebar: 238px;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(circle at 76% -15%, rgba(40, 129, 161, .13), transparent 32%), var(--bg); color: var(--text); font-size: 14px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.hidden { display: none !important; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; width: var(--sidebar); display: flex; flex-direction: column; padding: 25px 16px 17px; border-right: 1px solid var(--line); background: rgba(7, 17, 29, .96); backdrop-filter: blur(20px); }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 31px; text-decoration: none; }
.brand > span:last-child { display: grid; }
.brand strong { font-size: 19px; line-height: 1; letter-spacing: -.035em; }
.brand small { margin-top: 5px; color: var(--muted); font-size: 10px; letter-spacing: .04em; }
.brand-mark { width: 39px; height: 39px; display: flex; align-items: end; justify-content: center; gap: 3px; padding-bottom: 9px; border-radius: 12px; background: linear-gradient(145deg, #58e0a0, #278bd1); box-shadow: 0 10px 35px rgba(57, 194, 157, .2); }
.brand-mark i { width: 3px; border-radius: 3px; background: #071a1d; }
.brand-mark i:nth-child(1) { height: 7px; }.brand-mark i:nth-child(2) { height: 14px; }.brand-mark i:nth-child(3) { height: 21px; }
nav { display: grid; gap: 5px; }
.nav-link { display: flex; align-items: center; gap: 12px; min-height: 43px; padding: 0 13px; border-radius: 9px; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 600; transition: .2s ease; }
.nav-link > span { width: 20px; color: var(--green); text-align: center; font-size: 17px; }
.nav-link b { min-width: 21px; margin-left: auto; padding: 2px 6px; border-radius: 20px; background: rgba(245, 111, 121, .1); color: var(--red); font-size: 9px; text-align: center; }
.nav-link:hover, .nav-link.active { background: rgba(94, 227, 162, .075); color: var(--text); }
.nav-link.active { box-shadow: inset 2px 0 var(--green); }
.sidebar-section { margin-top: 28px; padding: 0 10px; }
.sidebar-section > p { margin: 0 0 12px; color: #52647a; font-size: 8px; font-weight: 800; letter-spacing: .15em; }
.sidebar-sources { display: grid; gap: 11px; }
.sidebar-source { display: grid; grid-template-columns: 8px 1fr; gap: 9px; align-items: center; }
.sidebar-source i { width: 7px; height: 7px; border-radius: 50%; background: #536276; }
.sidebar-source.connected i { background: var(--green); box-shadow: 0 0 9px rgba(94, 227, 162, .55); }
.sidebar-source strong, .sidebar-source small { display: block; }
.sidebar-source strong { font-size: 10px; }.sidebar-source small { margin-top: 2px; color: #617289; font-size: 8px; }
.sidebar-bottom { margin-top: auto; }
.simulation-link { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .018); text-decoration: none; }
.simulation-link > span:first-child { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 7px; background: rgba(157, 140, 255, .1); color: var(--purple); font-size: 9px; }
.simulation-link strong, .simulation-link small { display: block; }.simulation-link strong { font-size: 10px; }.simulation-link small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.version { margin: 14px 0 0; color: #4c5b6e; font-size: 8px; text-align: center; }

main { grid-column: 2; width: 100%; max-width: 1740px; margin: 0 auto; padding: 25px 30px 45px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; }
.eyebrow { margin: 0 0 6px; color: var(--green); font-size: 8px; font-weight: 800; letter-spacing: .16em; }
h1, h2, p { margin: 0; }
h1 { font-size: 28px; letter-spacing: -.04em; line-height: 1.05; }
h2 { font-size: 16px; letter-spacing: -.025em; }
.subtitle { margin-top: 5px; color: var(--muted); font-size: 11px; }
.top-actions { display: flex; align-items: center; gap: 16px; }
.sync-state { display: flex; align-items: center; gap: 9px; }
.sync-state > i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(94, 227, 162, .07); }
.sync-state small, .sync-state strong { display: block; }.sync-state small { color: var(--muted); font-size: 8px; }.sync-state strong { margin-top: 2px; font-size: 9px; font-weight: 650; }
.button { min-height: 38px; padding: 0 15px; border: 1px solid rgba(94, 227, 162, .23); border-radius: 8px; background: rgba(94, 227, 162, .08); color: var(--green); font-size: 10px; font-weight: 750; }
.button:hover { background: rgba(94, 227, 162, .14); }.button:disabled { opacity: .55; cursor: progress; }
.button span { margin-right: 6px; font-size: 14px; }
.empty-state { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin-bottom: 13px; padding: 13px 15px; border: 1px solid rgba(242, 188, 99, .22); border-radius: 10px; background: rgba(242, 188, 99, .055); }
.empty-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 8px; background: rgba(242, 188, 99, .1); color: var(--amber); }
.empty-state strong { font-size: 11px; }.empty-state p { margin-top: 3px; color: var(--muted); font-size: 9px; }
.text-link { color: var(--green); font-size: 9px; text-decoration: none; }

.panel, .metric-card, .source-card { border: 1px solid var(--line); background: linear-gradient(145deg, rgba(16, 32, 51, .96), rgba(10, 23, 38, .96)); border-radius: 12px; }
.overview-grid { display: grid; grid-template-columns: minmax(350px, .87fr) minmax(560px, 1.5fr); gap: 12px; margin-bottom: 12px; }
.health-card { padding: 17px; }
.panel-label { display: flex; justify-content: space-between; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.health-content { display: grid; grid-template-columns: 134px 1fr; align-items: center; gap: 17px; margin-top: 8px; }
.health-ring { --score: 0; position: relative; width: 124px; height: 124px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--green) calc(var(--score) * 1%), #1b2c40 0); }
.health-ring::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: #0d1c2c; box-shadow: inset 0 0 20px rgba(0, 0, 0, .25); }
.health-ring > div { position: relative; text-align: center; }.health-ring strong { display: block; font-size: 31px; letter-spacing: -.05em; }.health-ring small { color: var(--muted); font-size: 9px; }
.health-copy h2 { margin-bottom: 8px; }.health-copy > p { max-width: 290px; color: var(--muted); font-size: 9px; line-height: 1.55; }
.health-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; color: var(--muted); font-size: 8px; }
.health-legend span { display: flex; align-items: center; gap: 4px; }.health-legend i { width: 5px; height: 5px; border-radius: 50%; }.health-legend .good { background: var(--green); }.health-legend .warn { background: var(--amber); }.health-legend .bad { background: var(--red); }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.metric-card { min-width: 0; padding: 15px; }
.metric-card > div { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 9px; }
.metric-card > strong { display: block; margin-top: 19px; font-size: 27px; letter-spacing: -.045em; }.metric-card > small { display: block; margin-top: 4px; overflow: hidden; color: #66788e; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.metric-icon { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; font-style: normal; }.metric-icon.green { color: var(--green); background: rgba(94, 227, 162, .09); }.metric-icon.blue { color: var(--blue); background: rgba(84, 185, 246, .09); }.metric-icon.purple { color: var(--purple); background: rgba(157, 140, 255, .09); }.metric-icon.red { color: var(--red); background: rgba(245, 111, 121, .09); }

.source-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }
.source-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; min-height: 72px; padding: 12px 14px; }
.source-logo { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; font-size: 12px; font-weight: 850; }.ruckus .source-logo { color: var(--amber); background: rgba(242, 188, 99, .11); }.mist .source-logo { color: var(--blue); background: rgba(84, 185, 246, .11); }.dynatrace .source-logo { color: var(--purple); background: rgba(157, 140, 255, .11); }
.source-card > div:nth-child(2) span, .source-card > div:nth-child(2) strong { display: block; }.source-card > div:nth-child(2) span { color: var(--muted); font-size: 8px; }.source-card > div:nth-child(2) strong { margin-top: 4px; font-size: 10px; }
.source-stat { padding-left: 14px; border-left: 1px solid var(--line); text-align: right; }.source-stat strong, .source-stat small { display: block; }.source-stat strong { font-size: 14px; }.source-stat small { margin-top: 3px; color: var(--muted); font-size: 7px; }

.insight-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(250px, .62fr) minmax(270px, .72fr); gap: 12px; margin-bottom: 12px; }
.insight-grid > .panel, .section-panel { padding: 17px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 15px; }
.chart-legend { display: flex; gap: 12px; color: var(--muted); font-size: 8px; }.chart-legend span { display: flex; align-items: center; gap: 5px; }.chart-legend i { width: 14px; height: 2px; }.client-line { background: var(--blue); }.util-line { background: var(--purple); }
.chart-wrap { position: relative; height: 205px; }.chart-wrap canvas { width: 100%; height: 100%; }.chart-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 9px; }
.badge { padding: 5px 8px; border-radius: 20px; background: rgba(255, 255, 255, .035); color: var(--muted); font-size: 8px; white-space: nowrap; }
.band-health { display: grid; gap: 17px; }
.band-row-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 7px; }.band-row-head strong { font-size: 10px; }.band-row-head span { color: var(--muted); font-size: 8px; }
.progress { height: 6px; overflow: hidden; border-radius: 6px; background: #203146; }.progress i { display: block; height: 100%; border-radius: 6px; background: var(--green); }.progress.warning i { background: var(--amber); }.progress.critical i { background: var(--red); }
.band-meta { display: flex; justify-content: space-between; margin-top: 6px; color: #627389; font-size: 7px; }
.attention-list { display: grid; gap: 7px; }
.attention-item { display: grid; grid-template-columns: 25px 1fr; gap: 8px; padding: 8px; border-radius: 8px; background: rgba(255, 255, 255, .018); }.attention-item > i { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: rgba(242, 188, 99, .09); color: var(--amber); font-style: normal; font-size: 9px; }.attention-item.critical > i { background: rgba(245, 111, 121, .09); color: var(--red); }.attention-item strong { display: block; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.attention-item p { margin-top: 3px; color: var(--muted); font-size: 7px; line-height: 1.35; }

.section-panel { margin-bottom: 12px; scroll-margin-top: 15px; }
.site-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.site-card { padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: rgba(6, 16, 28, .28); }.site-head { display: flex; justify-content: space-between; gap: 8px; }.site-head h3 { margin: 0; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.vendor-chips { display: flex; gap: 3px; }.vendor-chip { padding: 2px 5px; border-radius: 10px; background: rgba(84, 185, 246, .08); color: var(--blue); font-size: 6px; text-transform: uppercase; }.vendor-chip.ruckus { background: rgba(242, 188, 99, .08); color: var(--amber); }
.site-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 14px; }.site-stats span { display: grid; gap: 2px; color: var(--muted); font-size: 7px; }.site-stats strong { color: var(--text); font-size: 13px; }.site-health { display: flex; justify-content: space-between; margin-top: 12px; padding-top: 9px; border-top: 1px solid var(--line); color: var(--muted); font-size: 7px; }.site-health b { color: var(--green); font-weight: 700; }.site-health b.warning { color: var(--amber); }.site-health b.critical { color: var(--red); }
.more-button { display: block; min-height: 35px; margin: 13px auto 0; padding: 0 15px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, .02); color: var(--muted); font-size: 8px; }.more-button:hover { border-color: var(--line-strong); color: var(--text); }
.table-heading { align-items: end; }.table-controls { display: flex; align-items: center; gap: 7px; }.table-controls input { width: 210px; }
input, select { min-height: 32px; padding: 0 10px; outline: none; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-2); color: var(--text); font-size: 9px; }.table-controls input:focus, .table-controls select:focus { border-color: rgba(94, 227, 162, .5); }
.table-wrap { max-height: 430px; overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 9px; }th { position: sticky; top: 0; z-index: 2; padding: 9px 8px; border-bottom: 1px solid var(--line); background: var(--surface); color: var(--muted); text-align: left; text-transform: uppercase; font-size: 7px; font-weight: 700; letter-spacing: .05em; }td { padding: 9px 8px; border-bottom: 1px solid rgba(151, 179, 211, .07); color: #b8c5d3; white-space: nowrap; }tbody tr:hover td { background: rgba(255, 255, 255, .015); }td strong { color: var(--text); }
.vendor-pill, .score-pill, .severity-pill { display: inline-flex; align-items: center; justify-content: center; border-radius: 20px; font-size: 7px; font-weight: 800; }.vendor-pill { padding: 3px 7px; color: var(--blue); background: rgba(84, 185, 246, .08); text-transform: uppercase; }.vendor-pill.ruckus { color: var(--amber); background: rgba(242, 188, 99, .08); }.score-pill { min-width: 31px; padding: 4px 7px; color: var(--green); background: rgba(94, 227, 162, .08); }.score-pill.warning { color: var(--amber); background: rgba(242, 188, 99, .08); }.score-pill.critical { color: var(--red); background: rgba(245, 111, 121, .08); }.cell-bar { display: inline-block; width: 55px; height: 4px; margin-right: 7px; overflow: hidden; vertical-align: middle; border-radius: 5px; background: #203146; }.cell-bar i { display: block; height: 100%; background: var(--green); }.cell-bar.warning i { background: var(--amber); }.cell-bar.critical i { background: var(--red); }
.incident-list { display: grid; }.incident-row { display: grid; grid-template-columns: 76px 76px 150px 1fr 120px; align-items: center; gap: 9px; min-height: 43px; padding: 7px 5px; border-bottom: 1px solid rgba(151, 179, 211, .07); font-size: 8px; }.incident-row time { color: var(--muted); }.severity-pill { padding: 4px 7px; color: var(--amber); background: rgba(242, 188, 99, .08); text-transform: uppercase; }.severity-pill.critical { color: var(--red); background: rgba(245, 111, 121, .08); }.incident-row strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.incident-row p { color: #9dacbe; }.incident-site { overflow: hidden; color: var(--muted); text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.no-data { min-height: 100px; display: grid; place-items: center; color: var(--muted); font-size: 9px; text-align: center; }
footer { display: flex; justify-content: space-between; padding: 14px 2px 0; color: #4f6074; font-size: 8px; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 40; max-width: 360px; padding: 11px 14px; transform: translateY(30px); opacity: 0; pointer-events: none; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface-3); color: var(--text); font-size: 9px; transition: .25s ease; }.toast.visible { transform: translateY(0); opacity: 1; }.toast.error { border-color: rgba(245, 111, 121, .45); }

@media (max-width: 1380px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .insight-grid { grid-template-columns: 1.4fr .7fr; }.attention-panel { grid-column: 1 / -1; }.attention-list { grid-template-columns: repeat(3, 1fr); }
  .site-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1050px) {
  :root { --sidebar: 204px; }.sidebar { padding-left: 10px; padding-right: 10px; }main { padding: 22px 19px 40px; }
  .overview-grid { grid-template-columns: 1fr; }.health-content { grid-template-columns: 120px 1fr; }.metric-grid { grid-template-columns: repeat(4, 1fr); }
  .source-grid { grid-template-columns: 1fr; }.source-card { min-height: 62px; }.site-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .app-shell { display: block; }.sidebar { position: static; width: 100%; height: auto; display: block; padding: 15px; }.brand { padding: 0 0 15px; }.sidebar nav { grid-template-columns: repeat(5, minmax(80px, 1fr)); overflow-x: auto; }.nav-link { justify-content: center; padding: 0 8px; white-space: nowrap; }.nav-link > span { display: none; }.nav-link b, .sidebar-section, .sidebar-bottom { display: none; }
  main { padding: 18px 12px 35px; }.topbar { align-items: start; }.subtitle, .sync-state { display: none; }.top-actions { margin-top: 3px; }.button { padding: 0 11px; }.overview-grid, .insight-grid { display: block; }.health-card, .insight-grid > .panel { margin-bottom: 10px; }.metric-grid { grid-template-columns: repeat(2, 1fr); margin-bottom: 10px; }.health-content { grid-template-columns: 105px 1fr; }.health-ring { width: 98px; height: 98px; }.health-ring strong { font-size: 26px; }.source-grid { gap: 8px; }.attention-list { grid-template-columns: 1fr; }.site-grid { grid-template-columns: 1fr; }.table-heading { align-items: start; flex-direction: column; }.table-controls { width: 100%; }.table-controls input { min-width: 0; width: 100%; }.incident-row { grid-template-columns: 64px 66px 1fr; }.incident-row p { grid-column: 1 / -1; }.incident-site { display: none; }.empty-state { grid-template-columns: auto 1fr; }.empty-state .text-link { grid-column: 2; }footer { display: grid; gap: 5px; text-align: center; }
}
