:root {
  --navy: #091426;
  --navy-soft: #111f35;
  --ink: #152238;
  --muted: #718096;
  --line: #e4eaf1;
  --paper: #ffffff;
  --canvas: #f3f6fa;
  --teal: #19bfa3;
  --teal-soft: #e6faf6;
  --blue: #3d79ed;
  --orange: #f59e42;
  --red: #e95663;
  --yellow: #eaa82e;
  --violet: #8b67e8;
  --shadow: 0 14px 35px rgba(28, 45, 74, .07);
}

* { box-sizing: border-box; }
html { background: var(--canvas); }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, select, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, select:focus-visible { outline: 3px solid rgba(61, 121, 237, .28); outline-offset: 2px; }

.app-shell { min-height: 100vh; }
.hidden { display: none !important; }
[data-section].section-hidden { display: none !important; }
.login-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at 75% 15%, rgba(39,205,177,.16), transparent 32%), linear-gradient(145deg, #07101f, #0c1d34); }
.login-overlay.hidden { display: none; }
.login-card { width: min(430px, 100%); padding: 34px; border: 1px solid rgba(255,255,255,.08); border-radius: 22px; color: #fff; background: rgba(15,31,53,.92); box-shadow: 0 30px 90px rgba(0,0,0,.35); backdrop-filter: blur(18px); }
.login-brand { padding: 0 0 34px; }
.login-card h1 { margin: 0; font-size: 30px; letter-spacing: -.04em; }
.login-help { margin: 8px 0 24px; color: #94a5ba; font-size: 13px; }
.login-card label { display: grid; gap: 7px; margin-top: 14px; color: #b9c5d3; font-size: 11px; font-weight: 750; }
.login-card input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid #30435d; border-radius: 11px; outline: 0; color: #f7fbff; background: #0b192c; }
.login-card input:focus { border-color: #29ceb2; box-shadow: 0 0 0 3px rgba(41,206,178,.13); }
.form-error { min-height: 18px; margin: 10px 0 0; color: #ff9aa2; font-size: 11px; }
.primary-button { width: 100%; height: 48px; margin-top: 8px; border: 0; border-radius: 11px; color: #06231e; background: linear-gradient(135deg, #58e0c9, #1fc5aa); box-shadow: 0 12px 30px rgba(31,197,170,.2); cursor: pointer; font-weight: 850; }
.primary-button:disabled { opacity: .6; cursor: wait; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 252px; display: flex; flex-direction: column; padding: 28px 18px 20px; background: linear-gradient(180deg, #091426 0%, #0a1629 52%, #0b192d 100%); color: #fff; z-index: 20; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 30px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: #07261f; background: linear-gradient(135deg, #5be5ce, #14bda1); box-shadow: 0 8px 26px rgba(25, 191, 163, .28); font-weight: 900; font-size: 19px; transform: rotate(-4deg); }
.brand-mark span { transform: rotate(4deg); }
.brand strong { display: block; font-size: 19px; line-height: 1.1; letter-spacing: -.02em; }
.brand small { display: block; margin-top: 4px; color: #7f91aa; font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.sidebar nav { display: grid; gap: 6px; }
.sidebar nav button { width: 100%; display: flex; align-items: center; gap: 13px; min-height: 48px; padding: 0 14px; border: 0; border-radius: 12px; color: #8fa1b9; background: transparent; cursor: pointer; text-align: left; font-size: 13px; font-weight: 650; transition: .2s ease; }
.sidebar nav button:hover { color: #d9e4ef; background: rgba(255,255,255,.045); }
.sidebar nav button.active { color: #fff; background: linear-gradient(90deg, rgba(31, 199, 170, .18), rgba(31, 199, 170, .06)); box-shadow: inset 3px 0 0 #29d3b4; }
.nav-icon { position: relative; width: 20px; height: 20px; flex: none; opacity: .9; }
.nav-icon::before, .nav-icon::after { content: ""; position: absolute; border: 1.7px solid currentColor; }
.nav-overview::before { inset: 2px 10px 10px 2px; border-radius: 3px; box-shadow: 9px 0 0 -1px transparent, 9px 0 0 0 currentColor; }
.nav-overview::after { inset: 11px 2px 2px 2px; border-radius: 3px; }
.nav-analytics::before { left: 2px; right: 2px; bottom: 3px; height: 13px; border-width: 0 0 1.7px 1.7px; }
.nav-analytics::after { width: 12px; height: 7px; left: 5px; top: 5px; border-width: 1.7px 1.7px 0 0; transform: skewY(-28deg); }
.nav-connectivity::before { width: 15px; height: 15px; inset: 2px; border-radius: 50%; }
.nav-connectivity::after { width: 5px; height: 5px; left: 7px; top: 7px; border-radius: 50%; background: currentColor; }
.nav-logs::before { inset: 2px 3px; border-radius: 3px; }
.nav-logs::after { width: 8px; height: 1px; left: 6px; top: 7px; border-width: 1.7px 0 0; box-shadow: 0 4px 0 currentColor, 0 8px 0 currentColor; }
.nav-guide::before { inset: 2px 4px; border-radius: 50%; }
.nav-guide::after { content: "i"; border: 0; left: 8px; top: 2px; font-weight: 900; font-style: normal; }
.sidebar-health { margin: auto 5px 18px; padding: 15px; display: flex; align-items: center; gap: 12px; border: 1px solid rgba(255,255,255,.07); border-radius: 14px; background: rgba(255,255,255,.035); }
.health-ring { width: 44px; height: 44px; flex: none; display: grid; place-content: center; border: 4px solid rgba(245,158,66,.22); border-top-color: var(--orange); border-radius: 50%; transform: rotate(28deg); }
.health-ring span, .health-ring small { transform: rotate(-28deg); }
.health-ring span { font-size: 14px; font-weight: 800; line-height: 1; }
.health-ring small { position: absolute; opacity: 0; }
.sidebar-health strong { font-size: 11px; }
.sidebar-health p { margin: 4px 0 0; color: #d49a46; font-size: 9px; }
.admin-shortcut { margin: 0 5px 12px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; color: #91a6bd; text-decoration: none; font-size: 9px; font-weight: 750; text-align: center; }
.admin-shortcut:hover { color: #46d8be; border-color: rgba(70,216,190,.25); background: rgba(31,199,170,.06); }
.sidebar-footer { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; padding: 15px 8px 0; border-top: 1px solid rgba(255,255,255,.08); }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: #dce8f4; background: #1d2c43; font-size: 11px; font-weight: 800; }
.sidebar-footer strong { display: block; font-size: 11px; }
.sidebar-footer span { display: block; margin-top: 3px; color: #71849d; font-size: 9px; }
.sidebar-footer button { color: #71849d; border: 0; background: transparent; cursor: pointer; letter-spacing: 2px; }

.main-content { width: calc(100% - 252px); min-height: 100vh; margin-left: 252px; padding: 29px 34px 34px; }
.topbar { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.eyebrow { margin: 0 0 5px; color: #8c9aae; font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.topbar h1 { margin: 0; color: #152238; font-size: 25px; line-height: 1.1; letter-spacing: -.035em; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.device-select { min-width: 180px; padding: 6px 12px 7px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); box-shadow: 0 5px 16px rgba(34,51,78,.03); }
.device-select span { display: block; margin-bottom: 1px; color: #9aa7b7; font-size: 8px; font-weight: 700; text-transform: uppercase; }
.device-select select { width: 100%; border: 0; outline: 0; color: #25334a; background: transparent; font-size: 11px; font-weight: 750; cursor: pointer; }
.live-chip { display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 13px; border: 1px solid #cfeee7; border-radius: 11px; color: #128772; background: #f1fcf9; font-size: 9px; font-weight: 850; letter-spacing: .08em; }
.live-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 5px rgba(25,191,163,.11); animation: pulse 1.8s infinite; }
.live-chip span { color: #77988f; font-weight: 600; letter-spacing: 0; }
.live-chip.down { color: #af424b; border-color: #f0d0d2; background: #fff3f4; }
.live-chip.down i { background: var(--red); box-shadow: 0 0 0 5px rgba(233,86,99,.11); animation: none; }
.icon-button { position: relative; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 11px; color: #77879c; background: var(--paper); cursor: pointer; font-weight: 850; }
.icon-button span { position: absolute; right: -4px; top: -5px; width: 17px; height: 17px; display: grid; place-items: center; border: 2px solid var(--canvas); border-radius: 50%; color: #fff; background: var(--red); font-size: 8px; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(25,191,163,0); } }

.incident-banner { display: grid; grid-template-columns: auto minmax(260px, 1fr) auto auto; align-items: center; gap: 15px; margin-bottom: 18px; padding: 15px 16px; border: 1px solid #f1cbc9; border-left: 4px solid #e85e62; border-radius: 13px; background: linear-gradient(90deg, #fff5f4, #fffafa); box-shadow: 0 8px 23px rgba(159,44,50,.035); }
.incident-symbol { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: #e85e62; box-shadow: 0 7px 15px rgba(232,94,98,.22); font-weight: 900; }
.incident-copy strong { display: block; color: #9c3036; font-size: 12px; }
.incident-copy p { margin: 4px 0 0; color: #8f6264; font-size: 10px; line-height: 1.5; }
.incident-facts { display: flex; gap: 20px; padding: 0 18px; border-left: 1px solid #edd9d8; }
.incident-facts span { color: #7d474a; font-size: 10px; font-weight: 750; }
.incident-facts small { display: block; margin-bottom: 3px; color: #b18486; font-size: 8px; font-weight: 650; text-transform: uppercase; }
.incident-banner > button { min-width: 124px; height: 36px; padding: 0 13px; border: 0; border-radius: 9px; color: #fff; background: #1a2a41; cursor: pointer; font-size: 9px; font-weight: 800; }
.incident-banner > button:disabled { opacity: .65; cursor: wait; }
.incident-banner.healthy { border-color: #bde9df; border-left-color: var(--teal); background: linear-gradient(90deg, #eefbf8, #fbfffe); }
.incident-banner.healthy .incident-symbol { background: var(--teal); }
.incident-banner.healthy .incident-copy strong { color: #177e6e; }
.incident-banner.healthy .incident-copy p { color: #5c8a81; }

.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 15px; }
.metric-card { min-height: 112px; display: flex; align-items: center; gap: 13px; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: var(--shadow); }
.metric-icon { width: 38px; height: 50px; flex: none; display: grid; place-items: end center; padding-bottom: 8px; border-radius: 11px; }
.metric-icon span { width: 11px; height: 20px; display: block; border-radius: 5px 5px 3px 3px; border: 3px solid currentColor; border-top-width: 8px; transform: skew(-4deg); }
.metric-icon.cyan { color: #16ad97; background: #e9faf7; }
.metric-icon.blue { color: #467ee5; background: #edf3ff; }
.metric-icon.violet { color: #8267dd; background: #f1edff; }
.metric-icon.orange { color: #e99039; background: #fff4e8; }
.metric-copy { min-width: 0; }
.metric-copy p { margin: 0 0 5px; color: #7d8ba0; font-size: 10px; font-weight: 700; }
.metric-copy strong { display: block; white-space: nowrap; color: #142138; font-size: 25px; line-height: 1; letter-spacing: -.045em; }
.metric-copy strong small { margin-left: 5px; color: #607087; font-size: 11px; letter-spacing: 0; }
.metric-copy > span { display: block; margin-top: 9px; overflow: hidden; color: #91a0b1; font-size: 8.5px; text-overflow: ellipsis; white-space: nowrap; }

.panel { border: 1px solid var(--line); border-radius: 15px; background: var(--paper); box-shadow: var(--shadow); }
.panel-heading { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 19px 10px; }
.panel-heading h2 { margin: 0; color: #18263d; font-size: 15px; letter-spacing: -.02em; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(290px, .8fr); gap: 15px; margin-bottom: 15px; }
.load-panel, .consumption-panel { min-height: 328px; }
.range-picker { display: flex; padding: 3px; border: 1px solid #e6ebf1; border-radius: 9px; background: #f7f9fc; }
.range-picker button { min-width: 38px; height: 26px; border: 0; border-radius: 6px; color: #8795a8; background: transparent; cursor: pointer; font-size: 8px; font-weight: 800; }
.range-picker button.active { color: #177e6e; background: #fff; box-shadow: 0 3px 9px rgba(32,56,80,.09); }
.chart-summary { display: flex; align-items: baseline; gap: 14px; padding: 5px 20px 0; }
.chart-summary strong { color: #18324c; font-size: 20px; }
.chart-summary strong small { color: #8b99aa; font-size: 8px; }
.chart-summary span { color: #98a5b5; font-size: 8px; }
.line-chart { position: relative; height: 214px; margin: 10px 20px 14px 56px; background: repeating-linear-gradient(to bottom, transparent 0, transparent calc(25% - 1px), #edf1f5 25%); }
.line-chart svg { position: absolute; inset: 8px 0 26px; width: 100%; height: calc(100% - 34px); overflow: visible; }
.y-labels { position: absolute; right: calc(100% + 11px); top: 3px; bottom: 24px; display: flex; flex-direction: column; justify-content: space-between; color: #9aa8b8; font-size: 7px; }
.x-labels { position: absolute; left: 0; right: 0; bottom: 2px; display: flex; justify-content: space-between; color: #9aa8b8; font-size: 7px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 999px; white-space: nowrap; font-size: 8px; font-weight: 800; }
.status-pill i { width: 5px; height: 5px; border-radius: 50%; }
.status-pill.ok { color: #148772; background: #e8faf6; }.status-pill.ok i { background: #19bfa3; }
.status-pill.warn { color: #a66d16; background: #fff6df; }.status-pill.warn i { background: #e5a52f; }
.status-pill.down { color: #b6424b; background: #fff0f1; }.status-pill.down i { background: #e65762; }
.status-pill.neutral { color: #4e6c93; background: #eef4fb; }.status-pill.neutral i { background: #7895b9; }
.bar-chart { height: 182px; display: flex; align-items: end; justify-content: space-around; gap: 8px; margin: 8px 20px 0; padding-top: 24px; border-bottom: 1px solid #e8edf3; background: repeating-linear-gradient(to bottom, transparent 0, transparent calc(33% - 1px), #f0f3f7 33%); }
.bar-chart > div { position: relative; width: 22px; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: end; }
.bar-chart i { width: 12px; min-height: 18px; display: block; border-radius: 5px 5px 2px 2px; background: #c9d7e5; }
.bar-chart .today i { background: linear-gradient(#31d1b5, #19af97); box-shadow: 0 7px 14px rgba(25,191,163,.2); }
.bar-chart small { position: absolute; bottom: -18px; color: #8f9cad; font-size: 7px; }
.bar-value { position: absolute; bottom: calc(var(--bar-height, 0%) + 4px); color: #789; font-size: 7px; opacity: 0; }
.bar-chart .today .bar-value { opacity: 1; color: #158976; font-weight: 800; }
.consumption-total { display: grid; grid-template-columns: 1fr 1fr; margin: 28px 19px 0; padding-top: 12px; border-top: 1px solid #edf1f5; }
.consumption-total span + span { padding-left: 14px; border-left: 1px solid #edf1f5; }
.consumption-total small { display: block; color: #97a4b4; font-size: 7px; }
.consumption-total strong { display: block; margin-top: 4px; color: #24344b; font-size: 11px; }

.connectivity-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(290px, .8fr); gap: 15px; margin-bottom: 15px; }
.path-panel, .device-panel { min-height: 330px; }
.path-list { padding: 2px 18px 14px; }
.path-list > div { position: relative; min-height: 50px; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 11px; padding: 7px 0; border-bottom: 1px solid #eef2f6; }
.path-list > div:last-child { border-bottom: 0; }
.path-list > div:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 41px; width: 1px; height: 18px; background: #dce4ec; }
.path-index { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; font-size: 8px; font-weight: 850; }
.path-index.ok { color: #138875; background: #e5faf5; }.path-index.warn { color: #a26c19; background: #fff5de; }.path-index.down { color: #bb444e; background: #fff0f1; }
.path-list strong { display: block; color: #2b3a50; font-size: 10px; }
.path-list p { margin: 3px 0 0; color: #8b98a9; font-size: 8px; }
.device-state { display: flex; align-items: center; gap: 5px; color: #168b76; font-size: 8px; font-weight: 800; }
.device-state i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.signal-visual { display: grid; justify-items: center; padding: 10px 0 17px; border-bottom: 1px solid #edf1f5; }
.signal-bars { height: 34px; display: flex; align-items: end; gap: 3px; margin-bottom: 7px; }
.signal-bars i { width: 5px; border-radius: 3px; background: var(--teal); }.signal-bars i:nth-child(1){height:8px}.signal-bars i:nth-child(2){height:14px}.signal-bars i:nth-child(3){height:20px}.signal-bars i:nth-child(4){height:27px}.signal-bars i:nth-child(5){height:34px;background:#dfe7ee}
.signal-visual strong { color: #1b2b42; font-size: 15px; }.signal-visual span { margin-top: 3px; color: #91a0b0; font-size: 8px; }
.device-panel dl { display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding: 10px 19px 16px; }
.device-panel dl div { padding: 9px 0; border-bottom: 1px solid #eff2f6; }.device-panel dl div:nth-last-child(-n+2) { border-bottom: 0; }.device-panel dl div:nth-child(even) { padding-left: 13px; border-left: 1px solid #eff2f6; }
.device-panel dt { color: #95a2b2; font-size: 7px; }.device-panel dd { margin: 4px 0 0; color: #334359; font-size: 9px; font-weight: 750; }.warn-text{color:#b4771a!important}.danger-text{color:#bf4651!important}

.logs-panel { margin-bottom: 15px; overflow: hidden; }
.log-actions { display: flex; gap: 7px; }.log-actions button { height: 29px; padding: 0 10px; border: 1px solid #e2e8ef; border-radius: 7px; color: #627288; background: #fff; cursor: pointer; font-size: 8px; font-weight: 750; }
.log-table { padding: 0 19px 14px; }
.log-head { display: grid; grid-template-columns: 76px 1.1fr 1.7fr 66px; padding: 9px 0; border-bottom: 1px solid #e8edf3; color: #98a5b5; font-size: 7px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.log-row { min-height: 43px; display: grid; grid-template-columns: 62px 14px 1.1fr 1.7fr 66px; align-items: center; column-gap: 7px; border-bottom: 1px solid #eff3f6; font-size: 8.5px; }
.log-row:last-child { border-bottom: 0; }.log-row time { color: #8290a2; font-variant-numeric: tabular-nums; }.log-row strong { color: #39485c; }.log-row p { margin: 0; color: #8694a5; }.log-row b { color: #52657c; font-size: 8px; text-align: right; }
.empty-row { padding: 24px 0; color: #8d9aab; font-size: 10px; text-align: center; }
.event-dot { width: 7px; height: 7px; border-radius: 50%; }.event-dot.critical{background:var(--red);box-shadow:0 0 0 4px #fff0f1}.event-dot.success{background:var(--teal);box-shadow:0 0 0 4px #eaf9f6}.event-dot.warning{background:var(--yellow);box-shadow:0 0 0 4px #fff7e8}.event-dot.info{background:var(--blue);box-shadow:0 0 0 4px #edf3ff}

.guide-panel { margin-bottom: 15px; overflow: hidden; }
.demo-badge { padding: 6px 9px; border-radius: 999px; color: #4b6688; background: #eef4fb; font-size: 8px; font-weight: 750; }
.guide-table { padding: 0 19px 13px; }
.guide-head, .guide-table > div:not(.guide-head) { display: grid; grid-template-columns: .85fr .9fr 1.8fr 1fr; gap: 12px; align-items: center; }
.guide-head { padding: 9px 0; border-bottom: 1px solid #e8edf3; color: #98a5b5; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.guide-table > div:not(.guide-head) { min-height: 40px; border-bottom: 1px solid #eff3f6; font-size: 8.5px; }.guide-table > div:last-child { border-bottom: 0; }
.guide-table strong { color: #36465b; }.guide-table span, .guide-table p { color: #8190a2; }.guide-table p { margin: 0; }.guide-table b { color: #397163; font-size: 8px; }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 5px 2px; color: #98a5b4; font-size: 8px; }
.mobile-nav { display: none; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 80; max-width: min(380px, calc(100vw - 30px)); padding: 13px 16px; border-radius: 11px; color: #fff; background: #17263d; box-shadow: 0 16px 45px rgba(4,16,31,.24); font-size: 11px; opacity: 0; pointer-events: none; transform: translateY(10px); transition: .2s ease; }
.toast.visible { opacity: 1; transform: translateY(0); }
.toast.error { background: #a83e48; }

@media (max-width: 1180px) {
  .sidebar { width: 218px; }.main-content { width: calc(100% - 218px); margin-left: 218px; padding-inline: 24px; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }.metric-card { min-height: 98px; }
  .dashboard-grid, .connectivity-grid { grid-template-columns: 1fr; }
  .incident-banner { grid-template-columns: auto 1fr auto; }.incident-facts { display: none; }
}

@media (max-width: 820px) {
  .sidebar { display: none; }.main-content { width: 100%; margin: 0; padding: 20px 17px 92px; }
  .topbar { align-items: flex-start; }.top-actions { flex-wrap: wrap; justify-content: flex-end; }.device-select { min-width: 155px; }.live-chip span { display: none; }
  .mobile-nav { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 30; min-height: 65px; display: grid; grid-template-columns: repeat(5, 1fr); padding: 7px 5px; border: 1px solid rgba(255,255,255,.12); border-radius: 17px; background: rgba(9,20,38,.96); box-shadow: 0 14px 40px rgba(6,17,33,.27); backdrop-filter: blur(16px); }
  .mobile-nav button { display: grid; justify-items: center; align-content: center; gap: 4px; border: 0; border-radius: 10px; color: #788ba5; background: transparent; font-size: 7px; font-weight: 700; }.mobile-nav button.active { color: #42d7bc; background: rgba(31,199,170,.09); }.mobile-nav .nav-icon { transform: scale(.82); }
  .toast { right: 15px; bottom: 88px; }
  .incident-banner { grid-template-columns: auto 1fr; }.incident-banner > button { grid-column: 1 / -1; width: 100%; }.incident-copy p { font-size: 9px; }
}

@media (max-width: 560px) {
  .main-content { padding-inline: 12px; }.topbar { display: block; }.topbar h1 { font-size: 22px; }.top-actions { margin-top: 14px; justify-content: flex-start; }.device-select { flex: 1; }.icon-button { margin-left: auto; }
  .metrics-grid { grid-template-columns: 1fr 1fr; gap: 9px; }.metric-card { min-height: 118px; display: block; padding: 13px; }.metric-icon { width: 31px; height: 31px; padding: 0; place-items: center; margin-bottom: 9px; }.metric-icon span { width: 8px; height: 14px; border-width: 2px; border-top-width: 5px; }.metric-copy strong { font-size: 20px; }.metric-copy > span { white-space: normal; line-height: 1.35; }
  .panel-heading { align-items: flex-start; padding-inline: 14px; }.range-picker { margin-top: -2px; }.range-picker button { min-width: 31px; }.line-chart { margin-left: 45px; margin-right: 12px; }
  .path-list { padding-inline: 13px; }.path-list > div { grid-template-columns: 30px 1fr; }.path-list .status-pill { grid-column: 2; justify-self: start; margin-top: -4px; }.path-list > div:not(:last-child)::after { height: 35px; }
  .log-table, .guide-table { overflow-x: auto; padding-inline: 13px; }.log-head, .log-row { min-width: 620px; }.guide-head, .guide-table > div:not(.guide-head) { min-width: 650px; }
  footer { display: grid; text-align: center; }.incident-symbol { align-self: start; }
}

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