/* TankPulse — dependency-free LoRaWAN operations dashboard */
:root {
  --ink: #e9f4f7;
  --muted: #91a7b4;
  --faint: #5d7583;
  --canvas: #07111a;
  --canvas-2: #0a1722;
  --panel: #0d1d29;
  --panel-2: #102433;
  --panel-3: #132a3a;
  --line: rgba(144, 185, 202, .15);
  --line-strong: rgba(144, 185, 202, .28);
  --cyan: #16d6c7;
  --cyan-dim: rgba(22, 214, 199, .12);
  --blue: #6f8cff;
  --amber: #ffb65c;
  --red: #ff667a;
  --green: #52d18c;
  --shadow: 0 18px 45px rgba(0, 0, 0, .23);
  --radius-lg: 22px;
  --radius: 15px;
  --radius-sm: 10px;
  --sidebar-width: 254px;
  font-family: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--canvas); }
body { margin: 0; min-width: 320px; color: var(--ink); background: radial-gradient(circle at 73% -8%, rgba(34, 92, 113, .25), transparent 24rem), var(--canvas); font-size: 14px; line-height: 1.45; }
button, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, select:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
a { color: inherit; text-decoration: none; }

.app-shell { min-height: 100vh; }
.sidebar { display: flex; position: fixed; z-index: 20; inset: 0 auto 0 0; width: var(--sidebar-width); flex-direction: column; background: linear-gradient(180deg, #091721, #08141e 55%, #0b1721); border-right: 1px solid var(--line); padding: 25px 17px 20px; }
.sidebar-top { display: flex; align-items: flex-start; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 11px; padding: 1px 7px; }
.brand img { width: 37px; height: 37px; }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-size: 17px; letter-spacing: -.65px; font-weight: 800; }
.brand-copy strong::first-letter { color: var(--cyan); }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; }
.sidebar-close { display: none; color: var(--muted); background: transparent; border: 0; font-size: 25px; }
.side-nav { display: grid; gap: 7px; margin-top: 51px; }
.side-nav a { display: flex; align-items: center; min-height: 43px; gap: 12px; padding: 0 12px; color: #9eb0bb; border: 1px solid transparent; border-radius: 10px; font-size: 13px; font-weight: 700; transition: .2s ease; }
.side-nav a:hover { color: var(--ink); background: rgba(255,255,255,.025); }
.side-nav a.active { color: var(--ink); border-color: rgba(22,214,199,.16); background: linear-gradient(90deg, rgba(22,214,199,.14), rgba(22,214,199,.025)); box-shadow: inset 3px 0 var(--cyan); }
.nav-icon { width: 17px; color: var(--cyan); font-size: 19px; line-height: 1; text-align: center; }
.nav-count { display: inline-grid; place-items: center; min-width: 21px; height: 20px; margin-left: auto; padding: 0 5px; border-radius: 999px; color: var(--cyan); background: rgba(22,214,199,.12); font-size: 10px; }
.sidebar-bottom { display: grid; gap: 19px; margin-top: auto; padding: 12px 6px 0; border-top: 1px solid var(--line); }
.side-live { display: flex; align-items: center; gap: 8px; color: var(--faint); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.live-dot, .pulse-dot, .online-pill i, .gateway-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 5px rgba(22,214,199,.09), 0 0 13px rgba(22,214,199,.9); }
.operator-card { display: flex; align-items: center; gap: 9px; }
.operator-avatar, .operator-mini span { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; color: #dffbf8; background: linear-gradient(145deg, #286273, #173445); font-size: 10px; font-weight: 800; }
.operator-card > span:nth-child(2) { display: grid; min-width: 0; }
.operator-card strong { overflow: hidden; color: #c9d9df; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.operator-card small { color: var(--faint); font-size: 9px; }
.operator-card button { margin-left: auto; padding: 2px; color: var(--faint); background: transparent; border: 0; font-weight: 900; letter-spacing: 2px; }

.main-content { min-width: 0; margin-left: var(--sidebar-width); }
.topbar { position: sticky; z-index: 12; top: 0; display: flex; align-items: center; height: 70px; padding: 0 clamp(20px, 3vw, 45px); background: rgba(7,17,26,.82); border-bottom: 1px solid var(--line); backdrop-filter: blur(15px); }
.menu-button { display: none; width: 36px; margin-right: 12px; padding: 6px 7px; background: transparent; border: 0; }
.menu-button span { display: block; height: 2px; margin: 4px 0; border-radius: 10px; background: var(--muted); }
.breadcrumb { display: flex; align-items: baseline; gap: 9px; }
.breadcrumb span { color: var(--faint); font-size: 11px; font-weight: 700; }
.breadcrumb span::after { margin-left: 9px; color: #385465; content: "/"; }
.breadcrumb strong { font-size: 12px; }
.topbar-actions { display: flex; align-items: center; gap: 13px; margin-left: auto; }
.sim-status { display: flex; align-items: center; gap: 8px; padding-right: 13px; border-right: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .07em; }
.icon-button { position: relative; display: grid; width: 34px; height: 34px; place-items: center; color: #c8d7dc; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 10px; }
.bell-icon { font-size: 19px; transform: rotate(45deg); }
.icon-button b { position: absolute; top: -5px; right: -5px; display: grid; min-width: 16px; height: 16px; place-items: center; padding: 0 3px; border: 2px solid #08131d; border-radius: 10px; color: #261116; background: var(--red); font-size: 9px; }
.operator-mini { display: flex; align-items: center; gap: 6px; padding: 0; background: transparent; border: 0; }
.operator-mini i { width: 0; height: 0; border: 4px solid transparent; border-top-color: var(--muted); transform: translateY(2px); }

.page-content { max-width: 1680px; margin: 0 auto; padding: 37px clamp(20px, 3vw, 45px) 62px; }
.hero-row { display: flex; align-items: end; justify-content: space-between; gap: 26px; margin-bottom: 28px; }
.eyebrow, .section-kicker, .mini-label { display: flex; align-items: center; gap: 7px; margin: 0 0 8px; color: #81a3b0; font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 9px; font-size: clamp(28px, 3.15vw, 45px); line-height: 1.07; letter-spacing: -2px; }
h1 em { color: var(--cyan); font-style: normal; }
.hero-copy { max-width: 520px; margin-bottom: 0; color: var(--muted); font-size: 13px; }
.hero-actions { display: flex; align-items: flex-end; justify-content: flex-end; flex-wrap: wrap; gap: 9px; }
.speed-control { display: grid; gap: 5px; color: var(--faint); font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.speed-control select { height: 37px; padding: 0 28px 0 11px; color: #c9d9de; background: #0c1b27; border: 1px solid var(--line-strong); border-radius: 9px; font-size: 11px; font-weight: 700; letter-spacing: normal; text-transform: none; }
.button { min-height: 37px; padding: 0 13px; border-radius: 9px; font-size: 11px; font-weight: 800; transition: .2s ease; }
.button-primary { color: #07221f; background: var(--cyan); border: 1px solid var(--cyan); box-shadow: 0 8px 22px rgba(22,214,199,.15); }
.button-primary:hover { color: #001211; background: #42e4d7; transform: translateY(-1px); }
.button-secondary { color: #bed0d5; background: transparent; border: 1px solid var(--line-strong); }
.button-secondary:hover { color: var(--ink); border-color: rgba(22,214,199,.45); background: rgba(22,214,199,.07); }

.metric-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); overflow: hidden; margin-bottom: 35px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(15,35,49,.55); box-shadow: var(--shadow); }
.metric-card { position: relative; min-height: 115px; padding: 21px 48px 20px 21px; border-right: 1px solid var(--line); overflow: hidden; }
.metric-card:last-child { border: 0; }
.metric-label { display: block; margin-bottom: 9px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.metric-card strong { display: block; font-size: 24px; letter-spacing: -1.15px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.metric-card small { display: block; margin-top: 6px; color: var(--faint); font-size: 10px; }
.metric-glyph { position: absolute; right: 18px; bottom: 16px; color: var(--cyan); font-size: 36px; line-height: 1; opacity: .23; }
.metric-attention .metric-glyph, .metric-attention strong { color: var(--red); }
.metric-rate .metric-glyph, .metric-rate strong { color: var(--blue); }
.metric-link .metric-glyph, .metric-link strong { color: var(--cyan); }
.metric-link.offline .metric-glyph, .metric-link.offline strong { color: var(--red); }

.section-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 17px; margin: 0 0 15px; }
.section-header h2 { margin: 0; font-size: 19px; letter-spacing: -.7px; }
.section-header.compact { align-items: center; margin-bottom: 16px; }
.section-kicker { margin-bottom: 4px; color: var(--faint); }
.legend { display: flex; flex-wrap: wrap; gap: 13px; color: var(--muted); font-size: 10px; font-weight: 700; }
.legend span { display: flex; align-items: center; gap: 5px; }
.legend i { width: 7px; height: 7px; border-radius: 50%; }
.legend-safe { background: var(--cyan); }.legend-watch { background: var(--amber); }.legend-alert { background: var(--red); }

.operations-layout { display: grid; grid-template-columns: minmax(0,1fr) 330px; align-items: start; gap: 19px; }
.asset-panel, .rail-card, .insight-card, .telemetry-section, .map-section { border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(145deg, rgba(15,34,47,.84), rgba(10,25,35,.93)); box-shadow: var(--shadow); }
.asset-panel { overflow: hidden; }
.asset-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 19px; border-bottom: 1px solid var(--line); background: rgba(6,18,27,.3); }
.asset-tabs, .telemetry-filters { display: flex; align-items: center; gap: 5px; }
.asset-tabs button, .telemetry-filters button { padding: 7px 9px; border: 1px solid transparent; border-radius: 7px; color: var(--faint); background: transparent; font-size: 10px; font-weight: 800; transition: .2s; }
.asset-tabs button:hover, .telemetry-filters button:hover { color: #bdced3; }
.asset-tabs button.active, .telemetry-filters button.active { color: var(--cyan); border-color: rgba(22,214,199,.2); background: rgba(22,214,199,.09); }
.asset-toolbar p { margin: 0; color: var(--faint); font-size: 10px; text-align: right; }
.asset-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: var(--line); }
.asset-card { position: relative; min-width: 0; padding: 17px 16px 14px; overflow: hidden; background: linear-gradient(145deg, #0d1f2b, #0d1b27); transition: background .2s, transform .2s; }
.asset-card:hover { z-index: 1; background: #102633; box-shadow: inset 0 0 0 1px rgba(22,214,199,.2); }
.asset-card.status-critical { background: linear-gradient(145deg, rgba(66,25,37,.54), #131d27); }
.asset-card.status-watch { background: linear-gradient(145deg, rgba(74,52,25,.38), #101e29); }
.asset-card-top { display: flex; gap: 12px; align-items: flex-start; }
.asset-visual { display: grid; width: 56px; min-width: 56px; height: 93px; place-items: end center; }
.vessel { position: relative; overflow: hidden; width: 42px; height: 69px; border: 2px solid #547181; border-top-width: 3px; border-radius: 8px 8px 11px 11px; background: #07141e; box-shadow: inset 0 0 0 4px rgba(23,53,66,.6); }
.vessel::before { position: absolute; z-index: 2; top: 4px; right: 7px; left: 7px; height: 2px; border-radius: 10px; background: rgba(185,232,234,.35); content: ""; }
.vessel.silo { width: 35px; height: 73px; border-radius: 17px 17px 5px 5px; clip-path: polygon(50% 0, 100% 25%, 100% 95%, 50% 100%, 0 95%, 0 25%); }
.vessel.container { width: 45px; height: 62px; margin-bottom: 5px; border-radius: 5px 5px 9px 9px; }
.vessel.container::after { position: absolute; top: -8px; left: 12px; width: 17px; height: 8px; border: 2px solid #547181; border-bottom: 0; border-radius: 4px 4px 0 0; content: ""; }
.liquid { position: absolute; right: 2px; bottom: 2px; left: 2px; height: var(--fill); border-radius: 0 0 6px 6px; background: linear-gradient(90deg, color-mix(in srgb, var(--asset-accent) 64%, #0e4d62), var(--asset-accent), color-mix(in srgb, var(--asset-accent) 50%, #fff)); box-shadow: 0 -2px 12px color-mix(in srgb, var(--asset-accent) 38%, transparent); transition: height .6s ease; }
.liquid::before { position: absolute; top: -2px; right: 0; left: 0; height: 4px; border-radius: 50%; background: rgba(226,255,255,.63); content: ""; animation: liquidWave 3.5s ease-in-out infinite; }
.status-critical .liquid { --asset-accent: var(--red) !important; }
.status-watch .liquid { --asset-accent: var(--amber) !important; }
.asset-type { color: var(--faint); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.asset-name { margin: 3px 0 1px; overflow: hidden; font-size: 13px; font-weight: 800; letter-spacing: -.2px; text-overflow: ellipsis; white-space: nowrap; }
.asset-id { color: var(--faint); font-size: 9px; font-weight: 700; }
.asset-level-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 8px; }
.asset-level { color: #e6f4f6; font-size: 20px; font-weight: 800; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.asset-level span { margin-left: 2px; color: var(--muted); font-size: 10px; letter-spacing: 0; }
.status-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 99px; color: var(--cyan); background: rgba(22,214,199,.07); font-size: 8px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.status-chip::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ""; }
.status-chip.critical { color: var(--red); background: rgba(255,102,122,.09); border-color: rgba(255,102,122,.2); }.status-chip.watch { color: var(--amber); background: rgba(255,182,92,.08); border-color: rgba(255,182,92,.19); }
.asset-card-bottom { display: grid; grid-template-columns: 1fr 88px; gap: 10px; align-items: end; margin-top: 11px; }
.asset-rate { color: var(--muted); font-size: 9px; line-height: 1.65; }.asset-rate strong { display: block; color: #bcd1d8; font-size: 11px; }.asset-rate .down { color: var(--red); }.asset-rate .pump-live { color: var(--cyan); }
.sparkline { width: 88px; height: 34px; overflow: visible; }.sparkline .area { opacity: .11; }.sparkline .line { fill: none; stroke: var(--asset-accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }.sparkline .end { fill: var(--asset-accent); stroke: #0d1f2b; stroke-width: 2px; }
.asset-auto { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 4px; color: var(--cyan); font-size: 8px; font-weight: 800; letter-spacing: .07em; }.asset-auto i { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

.operations-rail { display: grid; gap: 19px; }
.rail-card { padding: 17px; }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }.card-heading h3 { margin: 0; font-size: 14px; letter-spacing: -.35px; }.mini-label { margin-bottom: 3px; font-size: 8px; }
.online-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 7px; border: 1px solid rgba(22,214,199,.18); border-radius: 99px; color: var(--cyan); background: rgba(22,214,199,.06); font-size: 8px; font-weight: 800; text-transform: uppercase; }.online-pill i { width: 5px; height: 5px; box-shadow: none; }
.pump-stack { display: grid; gap: 13px; margin-top: 17px; }.pump-item { padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: rgba(4,15,23,.26); }.pump-top { display: flex; align-items: center; justify-content: space-between; gap: 7px; }.pump-title { display: flex; align-items: center; gap: 8px; }.pump-glyph { display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid rgba(111,140,255,.35); border-radius: 7px; color: var(--blue); background: rgba(111,140,255,.11); font-size: 14px; }.pump-item.running .pump-glyph { color: #042421; background: var(--cyan); border-color: var(--cyan); animation: pumpSpin 1.2s linear infinite; }.pump-title strong { display: block; font-size: 10px; }.pump-title small { display: block; color: var(--faint); font-size: 9px; }.pump-status { color: var(--faint); font-size: 8px; font-weight: 800; text-transform: uppercase; }.pump-item.running .pump-status { color: var(--cyan); }.pump-item.queued .pump-status { color: var(--amber); }.progress-bar { height: 5px; margin-top: 10px; overflow: hidden; border-radius: 9px; background: #07141d; }.progress-bar span { display: block; width: var(--progress); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--cyan)); transition: width .5s linear; }.pump-foot { display: flex; justify-content: space-between; margin-top: 6px; color: var(--faint); font-size: 8px; }
.safety-note { display: flex; gap: 7px; margin: 15px 1px 0; color: var(--faint); font-size: 9px; line-height: 1.55; }.safety-note span { display: grid; min-width: 15px; height: 15px; place-items: center; border-radius: 50%; color: #05211f; background: var(--cyan); font-size: 9px; font-weight: 900; }.safety-note strong { color: #b6ccd4; }
.text-button { padding: 1px 0; border: 0; color: var(--cyan); background: transparent; font-size: 9px; font-weight: 800; }.text-button:hover { color: #83fff4; }
.alerts-list { display: grid; gap: 9px; margin-top: 16px; }.alert-item { display: flex; gap: 9px; align-items: flex-start; padding: 10px; border: 1px solid var(--line); border-left: 2px solid var(--red); border-radius: 10px; background: rgba(255,102,122,.035); }.alert-item.auto { border-left-color: var(--cyan); background: rgba(22,214,199,.035); }.alert-symbol { display: grid; min-width: 20px; height: 20px; place-items: center; border-radius: 6px; color: var(--red); background: rgba(255,102,122,.13); font-size: 11px; font-weight: 800; }.alert-item.auto .alert-symbol { color: var(--cyan); background: rgba(22,214,199,.12); }.alert-body { min-width: 0; }.alert-body strong { display: block; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.alert-body p { margin: 2px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; }.alert-body small { display: block; margin-top: 4px; color: var(--faint); font-size: 8px; }.alert-ack { display: inline-flex; align-items: center; margin-top: 5px; color: #84a1aa; font-size: 8px; font-weight: 800; }.alert-ack::before { margin-right: 4px; color: var(--cyan); content: "✓"; }
.empty-alerts { padding: 16px 3px; color: var(--faint); font-size: 10px; text-align: center; }

.insight-row { display: grid; grid-template-columns: 1.15fr 1fr .75fr; gap: 19px; margin: 20px 0 37px; }.insight-card { min-height: 184px; padding: 18px; }.gateway-state { display: inline-flex; align-items: center; gap: 6px; color: var(--cyan); font-size: 9px; font-weight: 800; text-transform: uppercase; }.gateway-state i { width: 5px; height: 5px; box-shadow: none; }.gateway-state b { font-size: inherit; }.gateway-state.offline { color: var(--red); }.gateway-state.offline i { background: var(--red); }.gateway-card.offline .gateway-orb { border-color: rgba(255,102,122,.42); color: var(--red); background: radial-gradient(circle, rgba(255,102,122,.18), rgba(255,102,122,.02)); }.gateway-card.offline .gateway-orb span { border-color: rgba(255,102,122,.25); }.gateway-main { display: flex; align-items: center; gap: 15px; margin-top: 16px; }.gateway-orb { position: relative; display: grid; width: 58px; min-width: 58px; height: 58px; place-items: center; border: 1px solid rgba(22,214,199,.42); border-radius: 50%; color: var(--cyan); background: radial-gradient(circle, rgba(22,214,199,.18), rgba(22,214,199,.02)); }.gateway-orb span { position: absolute; border: 1px solid rgba(22,214,199,.25); border-radius: 50%; }.gateway-orb span:nth-child(1) { width: 72px; height: 72px; }.gateway-orb span:nth-child(2) { width: 88px; height: 88px; opacity: .55; }.gateway-orb span:nth-child(3) { width: 104px; height: 104px; opacity: .25; }.gateway-orb b { z-index: 1; font-size: 13px; }.gateway-main > div:nth-child(2) { min-width: 0; }.gateway-main strong, .forecast-main strong { display: block; font-size: 12px; }.gateway-main p { margin: 2px 0 8px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.gateway-specs { display: flex; gap: 9px; }.gateway-specs span { color: var(--faint); font-size: 8px; }.gateway-specs b { margin-left: 2px; color: #bdd1d8; font-size: 8px; }
.forecast-icon { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 7px; color: var(--blue); background: rgba(111,140,255,.12); font-size: 16px; }.forecast-main { margin-top: 20px; }.forecast-main p { margin: 4px 0 14px; color: var(--muted); font-size: 10px; }.forecast-scale { position: relative; display: flex; justify-content: space-between; align-items: end; height: 29px; padding-top: 10px; border-bottom: 2px solid rgba(111,140,255,.35); }.forecast-scale > span { position: absolute; top: 14px; right: 0; left: 0; height: 1px; border-top: 1px dashed rgba(255,182,92,.7); }.forecast-scale i { width: 1px; height: 8px; background: rgba(126,157,174,.42); }.forecast-scale b { position: absolute; top: 1px; left: var(--marker); width: 8px; height: 8px; border: 2px solid #0e1e2b; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 3px rgba(22,214,199,.2); transform: translateX(-50%); }.forecast-labels { display: flex; justify-content: space-between; margin-top: 5px; color: var(--faint); font-size: 8px; }.quality-card { display: grid; grid-template-columns: 1fr 70px; grid-template-rows: auto 1fr; }.quality-score { color: var(--cyan); font-size: 10px; font-weight: 800; }.quality-ring { position: relative; display: grid; grid-column: 2; grid-row: 1 / span 2; width: 68px; height: 68px; place-items: center; align-self: center; border-radius: 50%; background: conic-gradient(var(--cyan) var(--quality), #16303d 0); }.quality-ring::before { position: absolute; width: 56px; height: 56px; border-radius: 50%; background: #0d1e29; content: ""; }.quality-ring span { z-index: 1; color: #d8edf0; font-size: 14px; font-weight: 800; }.quality-card > p { grid-column: 1; align-self: end; margin: 0; color: var(--muted); font-size: 10px; }

.details-layout { display: grid; grid-template-columns: minmax(0,1.28fr) minmax(330px,.72fr); gap: 19px; }.telemetry-section, .map-section { min-width: 0; padding: 19px; }.table-wrap { overflow-x: auto; margin: 0 -19px -19px; border-top: 1px solid var(--line); }table { width: 100%; min-width: 660px; border-spacing: 0; border-collapse: collapse; }th { padding: 11px 12px; color: var(--faint); background: rgba(5,15,23,.32); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-align: left; text-transform: uppercase; white-space: nowrap; }td { padding: 12px; border-top: 1px solid rgba(144,185,202,.08); color: #bccfd5; font-size: 10px; vertical-align: middle; white-space: nowrap; }tr:first-child td { border-top: 0; }tr:hover td { background: rgba(22,214,199,.025); }.device-cell { display: flex; gap: 8px; align-items: center; }.device-mark { display: grid; width: 23px; height: 23px; place-items: center; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--cyan); background: #0a1720; font-size: 11px; }.device-cell strong { display: block; color: #d6e5e9; font-size: 10px; }.device-cell small { display: block; margin-top: 1px; color: var(--faint); font-size: 8px; }.telemetry-time { color: var(--muted); font-size: 9px; }.table-level { color: #e5f0f2; font-weight: 800; }.table-rate { color: var(--red); font-weight: 700; }.battery { display: inline-flex; align-items: center; gap: 4px; color: #b6cbd0; font-size: 9px; }.battery i { position: relative; display: inline-block; width: 17px; height: 8px; overflow: hidden; border: 1px solid #758d98; border-radius: 2px; }.battery i::after { position: absolute; top: 2px; right: -3px; width: 2px; height: 3px; border-radius: 0 2px 2px 0; background: #758d98; content: ""; }.battery i span { display: block; height: 100%; background: var(--cyan); }.battery.low i span { background: var(--amber); }.env-cell { color: var(--muted); font-size: 9px; }.env-cell b { color: #c9d8dc; font-weight: 700; }.table-state { display: inline-flex; align-items: center; gap: 4px; color: var(--cyan); font-size: 8px; font-weight: 800; text-transform: uppercase; }.table-state::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ""; }.table-state.critical { color: var(--red); }.table-state.watch { color: var(--amber); }

.site-map { position: relative; min-height: 297px; overflow: hidden; border: 1px solid rgba(130,172,186,.16); border-radius: 14px; background: linear-gradient(132deg, #0a202b, #0c1d28 49%, #102935); isolation: isolate; }.site-map::before { position: absolute; z-index: -1; inset: 0; opacity: .34; background: repeating-linear-gradient(90deg, transparent 0 29px, rgba(154,211,220,.09) 30px), repeating-linear-gradient(0deg, transparent 0 29px, rgba(154,211,220,.08) 30px); content: ""; }.site-map::after { position: absolute; z-index: -1; top: 9%; right: -14%; width: 57%; height: 57%; border: 1px solid rgba(22,214,199,.15); border-radius: 50%; box-shadow: 0 0 0 36px rgba(22,214,199,.017), 0 0 0 73px rgba(22,214,199,.012); content: ""; }.map-grid { position: absolute; inset: 12% 8%; border: 1px dashed rgba(149,189,198,.14); transform: rotate(-8deg); }.map-route { position: absolute; z-index: -1; height: 2px; border-radius: 99px; background: linear-gradient(90deg, transparent, rgba(22,214,199,.35), transparent); transform-origin: left center; }.route-one { top: 46%; left: 24%; width: 52%; transform: rotate(-17deg); }.route-two { top: 50%; left: 31%; width: 45%; transform: rotate(32deg); }.range-ring { position: absolute; top: 34%; left: 43%; width: 75px; height: 75px; border: 1px dashed rgba(22,214,199,.3); border-radius: 50%; }.gateway-pin, .site-pin { position: absolute; z-index: 2; transform: translate(-50%,-50%); }.gateway-pin span { display: grid; width: 29px; height: 29px; place-items: center; border: 2px solid #0b1d27; border-radius: 9px; color: #06201d; background: var(--cyan); box-shadow: 0 0 0 6px rgba(22,214,199,.14), 0 4px 14px rgba(0,0,0,.35); font-size: 8px; font-weight: 900; }.gateway-pin i { position: absolute; right: -5px; top: -5px; width: 8px; height: 8px; border: 2px solid #0d2230; border-radius: 50%; background: var(--green); }.site-pin { padding: 0; background: transparent; border: 0; }.site-pin .pin-core { display: grid; width: 29px; height: 29px; place-items: center; border: 2px solid #0d2230; border-radius: 50% 50% 50% 3px; color: #061721; background: var(--pin-color); box-shadow: 0 4px 12px rgba(0,0,0,.38); font-size: 10px; font-weight: 900; transform: rotate(-45deg); transition: .2s; }.site-pin .pin-core b { transform: rotate(45deg); }.site-pin .pin-label { position: absolute; left: 21px; top: -2px; padding: 4px 6px; border: 1px solid rgba(123,166,180,.27); border-radius: 5px; color: #bdd2d9; background: #0a1b25; font-size: 8px; font-weight: 800; white-space: nowrap; opacity: .9; }.site-pin:hover .pin-core, .site-pin.active .pin-core { transform: rotate(-45deg) scale(1.13); box-shadow: 0 0 0 6px color-mix(in srgb, var(--pin-color) 15%, transparent), 0 5px 15px rgba(0,0,0,.42); }.map-scale { position: absolute; bottom: 13px; left: 13px; display: flex; align-items: center; gap: 5px; color: #7f9aa6; font-size: 8px; }.map-scale span { display: inline-block; width: 38px; height: 4px; border-right: 1px solid #92abb5; border-left: 1px solid #92abb5; border-bottom: 1px solid #92abb5; }.map-detail { display: flex; align-items: center; gap: 8px; margin-top: 11px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(4,14,21,.25); }.map-detail-marker { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }.map-detail div { min-width: 0; }.map-detail strong { display: block; font-size: 10px; }.map-detail p { margin: 2px 0 0; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.map-detail-count { margin-left: auto; color: var(--cyan); font-size: 9px; font-weight: 800; white-space: nowrap; }

.toast-region { position: fixed; z-index: 70; right: 22px; bottom: 22px; display: grid; gap: 8px; max-width: 340px; }.toast { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid rgba(22,214,199,.27); border-radius: 11px; color: #cbe3e7; background: #102630; box-shadow: 0 14px 34px rgba(0,0,0,.36); animation: toastIn .3s ease both; }.toast.warning { border-color: rgba(255,182,92,.35); }.toast-icon { display: grid; width: 20px; min-width: 20px; height: 20px; place-items: center; border-radius: 6px; color: #042220; background: var(--cyan); font-weight: 900; }.toast.warning .toast-icon { color: #2a1702; background: var(--amber); }.toast strong { display: block; font-size: 10px; }.toast p { margin: 2px 0 0; color: var(--muted); font-size: 9px; }.notification-popover { position: fixed; z-index: 60; top: 60px; right: 66px; width: 310px; padding: 13px; border: 1px solid var(--line-strong); border-radius: 13px; background: #0c1d28; box-shadow: 0 20px 50px rgba(0,0,0,.48); }.popover-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }.popover-heading strong { font-size: 12px; }.popover-heading button { color: var(--muted); background: transparent; border: 0; font-size: 18px; }

@keyframes liquidWave { 50% { transform: scaleX(.72); opacity: .45; } }
@keyframes pumpSpin { to { transform: rotate(360deg); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1260px) { .operations-layout { grid-template-columns: minmax(0,1fr) 300px; }.asset-card-bottom { grid-template-columns: 1fr 74px; }.sparkline { width: 74px; }.details-layout { grid-template-columns: 1fr; }.site-map { min-height: 260px; }.map-section { min-height: 0; } }
@media (max-width: 1040px) { :root { --sidebar-width: 226px; }.metric-card { padding-left: 16px; }.metric-card strong { font-size: 21px; }.operations-layout { grid-template-columns: 1fr; }.operations-rail { grid-template-columns: 1fr 1fr; }.insight-row { grid-template-columns: 1fr 1fr; }.quality-card { grid-column: 1 / -1; min-height: 135px; }.quality-card .quality-ring { margin-right: 24px; }.asset-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }.asset-card-bottom { grid-template-columns: 1fr; }.sparkline { width: 100%; }.asset-visual { width: 48px; min-width: 48px; } }
@media (max-width: 820px) { .app-shell { display: block; }.sidebar { width: 256px; transform: translateX(-100%); transition: transform .25s ease; box-shadow: 18px 0 40px rgba(0,0,0,.25); }.sidebar.open { transform: translateX(0); }.sidebar-close, .menu-button { display: block; }.main-content { margin-left: 0; }.page-content { padding: 29px 20px 45px; }.hero-row { align-items: flex-start; flex-direction: column; }.hero-actions { justify-content: flex-start; }.metric-strip { grid-template-columns: repeat(2,1fr); }.metric-card:nth-child(2) { border-right: 0; }.metric-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }.asset-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.asset-card-bottom { grid-template-columns: 1fr 88px; }.sparkline { width: 88px; }.insight-row { grid-template-columns: 1fr; }.quality-card { grid-column: auto; }.quality-card .quality-ring { margin-right: 0; }.operations-rail { grid-template-columns: 1fr; }.notification-popover { top: 60px; right: 15px; }.sidebar::after { position: fixed; inset: 0 auto 0 100%; width: calc(100vw - 256px); background: rgba(0,0,0,.44); content: ""; } }
@media (max-width: 570px) { .topbar { padding: 0 16px; }.breadcrumb span { display: none; }.breadcrumb span::after { display: none; }.sim-status { display: none; }.operator-mini { display: none; }.page-content { padding: 23px 13px 35px; }.hero-actions { width: 100%; }.speed-control { flex: 1; }.speed-control select { width: 100%; }.button { flex: 1; padding: 0 8px; }.metric-strip { margin-right: 0; }.metric-card { min-height: 105px; padding: 16px 35px 15px 14px; }.metric-card strong { font-size: 19px; }.metric-card small { font-size: 8px; }.section-header { align-items: flex-start; flex-direction: column; }.legend { gap: 9px; }.asset-toolbar { align-items: flex-start; flex-direction: column; }.asset-toolbar p { text-align: left; }.asset-tabs { width: 100%; overflow-x: auto; }.asset-tabs button { white-space: nowrap; }.asset-grid { grid-template-columns: 1fr; }.asset-card-bottom { grid-template-columns: 1fr 110px; }.sparkline { width: 110px; }.telemetry-filters { width: 100%; overflow-x: auto; }.telemetry-filters button { white-space: nowrap; }.telemetry-section, .map-section { padding: 14px; }.table-wrap { margin-right: -14px; margin-bottom: -14px; margin-left: -14px; }.site-map { min-height: 245px; }.site-pin .pin-label { display: none; }.toast-region { right: 12px; bottom: 12px; left: 12px; max-width: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
