:root {
  color-scheme: dark;
  font: 14px/1.5 "Segoe UI", system-ui, sans-serif;
  color: #e8f1fb;
  background: #070d17;
  --panel: #0e1a2a;
  --line: #203348;
  --muted: #8296ab;
  --cyan: #3dcaf3;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: #070d17; }
a { color: #56cef5; text-decoration: none; }
a:hover { color: #a7eaff; }
button, input, select { font: inherit; }
button, .button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid #65d8ff; outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 5px; font-size: clamp(29px, 2.8vw, 39px); line-height: 1.15; letter-spacing: -.04em; font-weight: 650; }
h2 { margin-bottom: 5px; font-size: 19px; line-height: 1.25; letter-spacing: -.02em; }
h3 { margin-bottom: 6px; font-size: 15px; }
p { color: var(--muted); }
small { display: block; color: var(--muted); font-size: 11px; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 215px; flex: 0 0 215px; border-right: 1px solid #1c2b3d; background: #09121e; display: flex; flex-direction: column; min-height: 100vh; }
.logo { display: flex; align-items: center; gap: 11px; color: #f5fbff; font-size: 25px; font-weight: 750; letter-spacing: -.06em; line-height: 1; }
.sidebar .logo { height: 83px; padding: 0 24px; border-bottom: 1px solid #1c2b3d; }
.logo small { margin-top: 6px; font-size: 8px; font-weight: 700; color: #678298; letter-spacing: .12em; white-space: nowrap; }
.logo-mark { display: flex; align-items: end; gap: 3px; width: 27px; height: 26px; }
.logo-mark i { width: 6px; border-radius: 2px; background: #41d7f5; transform: skewY(-20deg); }
.logo-mark i:nth-child(1) { height: 11px; }
.logo-mark i:nth-child(2) { height: 19px; }
.logo-mark i:nth-child(3) { height: 25px; }
.nav-caption { padding: 31px 24px 12px; color: #5b7188; font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.side-nav { display: grid; gap: 4px; padding: 0 11px; }
.side-nav a { display: flex; align-items: center; gap: 13px; padding: 10px 12px; color: #91a5b8; font-size: 13px; font-weight: 550; border: 1px solid transparent; border-radius: 5px; }
.side-nav a span { width: 19px; color: #6b8196; font-size: 16px; text-align: center; }
.side-nav a:hover, .side-nav a.active { color: #e2f9ff; background: #102a3c; border-color: #1b4a60; }
.side-nav a.active span { color: var(--cyan); }
.sidebar-foot { margin: auto 16px 21px; padding: 15px 8px 0; border-top: 1px solid #1e3041; display: flex; align-items: center; gap: 10px; }
.sidebar-foot strong { display: block; color: #8da7bb; font-size: 9px; letter-spacing: .1em; }
.sidebar-foot small { font-size: 10px; }
.workspace { min-width: 0; width: 100%; }
.topbar { height: 63px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 0 35px; border-bottom: 1px solid #1c2b3d; background: #0a1421; }
.breadcrumb { color: #b0c1cf; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.breadcrumb span { color: #698096; }
.breadcrumb b { margin: 0 12px; color: #3e586c; }
.topbar-right { display: flex; align-items: center; gap: 17px; }
.tenant-label { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #b0c1cf; font-size: 12px; }
.topbar-button { padding: 7px 10px; color: #a7bac9; background: transparent; border: 1px solid #2a3c4d; border-radius: 4px; font-size: 11px; }
.topbar-tag { font-size: 10px; letter-spacing: .12em; color: #668098; }
main { max-width: 1700px; margin: 0 auto; padding: 34px 35px 30px; }
.dashboard { max-width: 1500px; margin: auto; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.page-heading p { margin: 0; font-size: 13px; }
.heading-period { color: var(--cyan); }
.heading-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.eyebrow, .section-kicker { color: #54c9ef; font-size: 9px; font-weight: 750; letter-spacing: .14em; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 13px; }
.eyebrow-divider { color: #435b6d; margin: 0 3px; }
.signal-dot, .legend-dot { display: inline-block; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: #45d6f7; box-shadow: 0 0 9px #35c8f89c; }
.signal-dot.green, .legend-dot.green { background: #4bdb9f; box-shadow: 0 0 9px #4bdb9f80; }
.signal-dot.amber, .legend-dot.amber { background: #ffb85b; box-shadow: 0 0 9px #ffb85b80; }
.card { min-width: 0; background: linear-gradient(145deg, #102031, #0d1928 75%); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 6px 22px #0000001c; }
.summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.metric { min-height: 122px; padding: 17px 19px; position: relative; overflow: hidden; }
.metric:after { content: ""; position: absolute; width: 80px; height: 80px; right: -25px; bottom: -34px; border: 1px solid #1a384b; border-radius: 50%; box-shadow: 0 0 0 15px #ffffff03, 0 0 0 30px #ffffff03; }
.metric-label { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: #8298ab; font-size: 9px; font-weight: 700; letter-spacing: .1em; }
.metric-label span { color: #52bde0; font-size: 17px; }
.metric-label .online-text { color: #4bdb9f; }
.metric-label .offline-text { color: #ffb85b; }
.metric strong { display: block; margin: 5px 0 2px; font-size: 30px; font-weight: 600; line-height: 1; }
.metric-footer { display: flex; align-items: center; gap: 7px; color: #748a9d; font-size: 10px; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(280px, 1fr); gap: 14px; }
.inventory-card, .activity-card, .management-card { padding: 21px; scroll-margin-top: 16px; }
.section-heading { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.section-heading p { margin: 4px 0 0; font-size: 12px; }
.section-kicker { margin-bottom: 8px; }
.counter { white-space: nowrap; padding: 5px 7px; color: #82a7bc; background: #13293a; border: 1px solid #244357; border-radius: 3px; font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.empty-radar { display: flex; align-items: center; justify-content: center; gap: 30px; min-height: 218px; padding: 28px 5px; }
.empty-radar p { max-width: 250px; margin: 0 0 11px; font-size: 12px; }
.empty-radar a { font-size: 12px; font-weight: 650; }
.radar { position: relative; width: 126px; height: 126px; flex: 0 0 126px; border-radius: 50%; border: 1px solid #1d5b6d; background: repeating-radial-gradient(circle, transparent 0 23px, #1d5b6d 24px 25px), linear-gradient(90deg, transparent 49.5%, #1d5b6d 50%, transparent 50.5%), linear-gradient(transparent 49.5%, #1d5b6d 50%, transparent 50.5%), conic-gradient(from 6deg, #1b869b55, transparent 26%); }
.radar span { position: absolute; left: 50%; top: 50%; width: 49%; height: 1px; background: #46ddf3; transform-origin: left center; transform: rotate(-42deg); box-shadow: 0 0 7px #46ddf3; }
.radar i { position: absolute; left: 49%; top: 49%; width: 5px; height: 5px; background: #65e7f8; border-radius: 50%; box-shadow: 0 0 12px #65e7f8; }
.card-note { border-top: 1px solid #213344; padding-top: 13px; color: #718b9c; font-size: 10px; }
.card-note span { color: #47b9dc; margin-right: 5px; }
.activity-empty { min-height: 190px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.activity-empty p { max-width: 190px; font-size: 12px; }
.activity-icon { display: grid; place-items: center; width: 45px; height: 45px; margin-bottom: 12px; border: 1px solid #285064; border-radius: 50%; color: #52cbea; font-size: 24px; }
.health-strip { margin: 22px 0 12px; }
.health-bar { height: 5px; background: #93612d; border-radius: 5px; overflow: hidden; }
.health-bar span { display: block; height: 100%; background: #45d898; }
.health-legend { display: flex; gap: 16px; margin-top: 8px; color: #94aabd; font-size: 10px; }
.health-legend span { display: flex; gap: 6px; align-items: center; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; }
th, td { padding: 10px 9px; border-bottom: 1px solid #1d3040; vertical-align: top; }
th { color: #718b9d; font-size: 9px; letter-spacing: .08em; white-space: nowrap; }
td { color: #b4c6d3; font-size: 11px; }
td code { white-space: pre-wrap; overflow-wrap: anywhere; }
.mono, code { font-family: Consolas, monospace; }
.badge { display: inline-flex; gap: 6px; align-items: center; padding: 3px 7px; border-radius: 3px; font-size: 10px; font-weight: 700; }
.badge i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge.up { color: #70e2ae; background: #10392f; }
.badge.down { color: #ffc078; background: #40301f; }
.event { display: flex; gap: 10px; border-top: 1px solid #1d3040; padding: 13px 0; }
.event:first-of-type { margin-top: 15px; }
.event strong { display: block; font-size: 12px; }
.event-marker { flex: 0 0 7px; width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: #48c8eb; }
.event-status { display: inline-block; margin-top: 4px; color: #79b4c8; font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.section-title { display: flex; justify-content: space-between; align-items: end; gap: 15px; margin: 32px 0 13px; }
.section-title h2 { margin: 0; font-size: 20px; }
.section-title > span { color: #60798b; font-size: 9px; letter-spacing: .1em; }
.management-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.section-icon { color: #58c4e6; border: 1px solid #275167; border-radius: 4px; padding: 5px 9px; font-size: 18px; }
.download-panel { display: flex; align-items: center; gap: 11px; margin: 22px 0 0; padding: 13px; border: 1px solid #22506a; border-radius: 5px; background: #102b3c; }
.download-panel > div:nth-child(2) { flex: 1; min-width: 0; }
.download-panel strong { font-size: 12px; }
.download-icon { display: grid; place-items: center; width: 35px; height: 35px; color: #67d8f6; background: #153f53; border: 1px solid #2b6175; border-radius: 4px; font-size: 20px; }
.download-note { margin: 8px 0 0; font-size: 11px; }
.unavailable { color: #e9bd7a; font-size: 9px; font-weight: 700; letter-spacing: .06em; }
.list-empty { padding: 15px 0 0; color: #768da0; font-size: 11px; }
.item { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 0; border-bottom: 1px solid #213344; }
.item strong, .network-empty strong { font-size: 12px; }
.network-empty { display: flex; align-items: center; gap: 13px; margin: 22px 0 14px; padding: 18px; border: 1px dashed #29475b; border-radius: 4px; }
.network-empty > span { color: #5599b0; font-size: 25px; }
.integration-card { display: grid; grid-template-columns: 1fr 1fr; gap: 35px; margin-top: 14px; padding: 22px; scroll-margin-top: 16px; }
.integration-copy p { margin-bottom: 14px; font-size: 12px; }
.integration-status { display: flex; align-items: center; gap: 8px; color: #99adbc; font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.integration-card form { display: flex; align-items: end; gap: 10px; }
.integration-card form label { flex: 1; margin: 0; }
.integration-card form button { white-space: nowrap; }
label { display: block; margin: 12px 0; color: #b6c8d6; font-size: 11px; font-weight: 650; }
label small { margin-top: 3px; font-weight: 400; }
input, select { display: block; width: 100%; margin-top: 6px; padding: 10px 11px; color: #eaf5fb; background: #091521; border: 1px solid #2b4355; border-radius: 4px; }
input::placeholder { color: #607b8f; }
button, .button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid #37bde8; border-radius: 4px; background: #24aed9; color: #041621; font-size: 11px; font-weight: 750; white-space: nowrap; }
button:hover, .button:hover { background: #6cddf7; color: #041621; }
.button-outline, button.button-outline { background: transparent; border-color: #315468; color: #c5d9e5; }
.button-outline:hover, button.button-outline:hover { background: #17364a; color: #fff; }
.button-small { padding: 8px 11px; }
.secondary { padding: 6px 9px; background: transparent; border-color: #30465a; color: #9db1c1; font-size: 10px; }
.inline { display: flex; align-items: end; gap: 8px; margin-top: 10px; }
.inline label { flex: 1; min-width: 0; margin: 0; }
details { border-top: 1px solid #213344; margin-top: 20px; }
summary { cursor: pointer; padding: 15px 0 0; color: #62d6f8; font-size: 12px; font-weight: 700; }
.setup-guide { margin-top: 10px; border-top: 0; }
.setup-guide summary { padding-top: 0; font-size: 11px; }
.setup-guide ol { padding-left: 20px; color: #9eb4c3; font-size: 11px; }
.setup-guide li { margin: 8px 0; }
.setup-guide code { color: #c7eaf6; overflow-wrap: anywhere; }
.dashboard-footer { display: flex; justify-content: space-between; gap: 10px; padding-top: 20px; color: #5e7588; font-size: 9px; letter-spacing: .08em; }
.notice { margin-bottom: 17px; padding: 12px 14px; color: #c2f1ff; background: #11384a; border: 1px solid #26617a; border-radius: 4px; }
.auth { max-width: 460px; margin: 70px auto; padding: 30px; }
.auth h1 { margin-bottom: 10px; }
.auth p { font-size: 13px; }
.auth form button { width: 100%; margin-top: 5px; }
.auth > p:last-child { margin: 20px 0 0; }
.token-page { max-width: 700px; padding: 28px; }
.token-page p { margin: 15px 0; }
.token { display: block; padding: 14px; background: #081522; border: 1px solid #29475b; border-radius: 4px; overflow-wrap: anywhere; }
@media (max-width: 1100px) {
  .sidebar { width: 175px; flex-basis: 175px; }
  .sidebar .logo { padding: 0 17px; }
  .nav-caption { padding-left: 17px; }
  main { padding: 27px 23px; }
  .topbar { padding: 0 23px; }
  .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 750px) {
  .app-shell { display: block; }
  .sidebar { width: 100%; min-height: 0; border-right: 0; border-bottom: 1px solid #1c2b3d; }
  .sidebar .logo { height: 58px; border-bottom: 0; }
  .nav-caption, .sidebar-foot { display: none; }
  .side-nav { display: flex; gap: 3px; overflow-x: auto; padding: 0 8px 8px; }
  .side-nav a { flex: 0 0 auto; padding: 7px 9px; font-size: 11px; }
  .side-nav a span { font-size: 13px; width: 15px; }
  .topbar { height: 48px; padding: 0 16px; }
  .breadcrumb { font-size: 9px; }
  .tenant-label { max-width: 110px; }
  main { padding: 24px 15px; }
  .page-heading { display: block; }
  .heading-actions { margin-top: 18px; }
  .overview-grid, .management-grid, .integration-card { grid-template-columns: 1fr; }
  .integration-card { gap: 15px; }
  .dashboard-footer { flex-direction: column; }
}
@media (max-width: 420px) {
  .metric { padding: 14px 12px; }
  .metric-label { font-size: 8px; }
  .empty-radar { flex-direction: column; gap: 18px; text-align: center; }
  .integration-card form { display: block; }
  .integration-card form button { margin-top: 10px; }
  .download-panel { flex-wrap: wrap; }
}
