:root{--bg-base: #0b0f19;--bg-surface: #111827;--bg-card: #1a2233;--bg-card-hover: #1f2a3d;--bg-input: #0f1729;--bg-elevated: #232f45;--border: rgba(148, 163, 184, .08);--border-hover: rgba(148, 163, 184, .16);--border-accent: rgba(56, 189, 248, .25);--text-primary: #f1f5f9;--text-secondary: #94a3b8;--text-muted: #64748b;--text-inverse: #0b0f19;--accent: #38bdf8;--accent-dim: rgba(56, 189, 248, .12);--green: #34d399;--green-dim: rgba(52, 211, 153, .12);--amber: #fbbf24;--amber-dim: rgba(251, 191, 36, .12);--red: #f87171;--red-dim: rgba(248, 113, 113, .12);--purple: #a78bfa;--purple-dim: rgba(167, 139, 250, .12);--shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);--shadow-md: 0 4px 16px rgba(0, 0, 0, .25);--shadow-lg: 0 8px 32px rgba(0, 0, 0, .35);--shadow-glow: 0 0 24px rgba(56, 189, 248, .08);--font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;--font-mono: "JetBrains Mono", "Fira Code", "SF Mono", monospace;--radius-sm: 8px;--radius-md: 12px;--radius-lg: 16px;--radius-xl: 20px;--radius-pill: 9999px;--transition-fast: .15s ease;--transition-normal: .25s ease}*,*:before,*:after{margin:0;padding:0;box-sizing:border-box}html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}body{font-family:var(--font-sans);background:var(--bg-base);color:var(--text-primary);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;min-height:100vh;line-height:1.6}#root{min-height:100vh}.dashboard-shell{min-height:100vh;display:flex;flex-direction:column}.dashboard-container{width:100%;max-width:1320px;margin:0 auto;padding:0 24px}.navbar-wrapper{position:sticky;top:12px;z-index:100;display:flex;justify-content:center;padding:0 20px;margin-bottom:32px;pointer-events:none}.navbar{pointer-events:all;display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;max-width:1100px;background:#111827d1;backdrop-filter:blur(24px) saturate(1.5);-webkit-backdrop-filter:blur(24px) saturate(1.5);border:1px solid var(--border);border-radius:var(--radius-pill);padding:8px 10px 8px 20px;box-shadow:var(--shadow-lg)}.nav-brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--text-primary);flex-shrink:0}.nav-logo{width:28px;height:28px;background:linear-gradient(135deg,var(--accent),#818cf8);border-radius:8px;display:flex;align-items:center;justify-content:center}.nav-logo svg{width:16px;height:16px;fill:#fff}.nav-brand-text{font-size:16px;font-weight:700;letter-spacing:-.3px}.nav-links{display:flex;align-items:center;gap:2px}.nav-link{text-decoration:none;font-size:13px;font-weight:500;color:var(--text-muted);padding:7px 14px;border-radius:var(--radius-pill);transition:all var(--transition-fast);white-space:nowrap}.nav-link:hover{color:var(--text-primary);background:#ffffff0f}.nav-link.active{color:var(--text-primary);background:#38bdf81a}.nav-link .link-count{display:inline-flex;align-items:center;justify-content:center;font-size:10px;font-weight:700;min-width:18px;height:18px;padding:0 5px;border-radius:var(--radius-pill);background:#ffffff14;margin-left:5px;font-family:var(--font-mono)}.nav-right{display:flex;align-items:center;gap:10px;flex-shrink:0}.nav-status{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:600;padding:6px 14px;border-radius:var(--radius-pill);border:1px solid}.nav-status.online{background:var(--green-dim);color:var(--green);border-color:#34d39933}.nav-status.offline{background:var(--amber-dim);color:var(--amber);border-color:#fbbf2433}.status-dot{width:6px;height:6px;border-radius:50%;background:currentColor;animation:pulse-beacon 2s infinite}@keyframes pulse-beacon{0%,to{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(1.5)}}.hero-section{margin-bottom:32px}.hero-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.hero-primary{background:linear-gradient(145deg,#162032,#111d2e,#0f1a2a);border:1px solid var(--border);border-radius:var(--radius-xl);padding:32px;display:flex;flex-direction:column;gap:24px;position:relative;overflow:hidden}.hero-primary:before{content:"";position:absolute;top:0;right:0;width:50%;height:100%;background:radial-gradient(circle at 80% 30%,rgba(56,189,248,.04) 0%,transparent 60%);pointer-events:none}.hero-station-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.hero-station-info{display:flex;flex-direction:column;gap:4px}.hero-station-name{font-size:18px;font-weight:700;color:var(--text-primary);display:flex;align-items:center;gap:8px}.hero-station-name .station-dot{width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 8px #34d39966;flex-shrink:0}.hero-station-coords{font-size:13px;font-family:var(--font-mono);color:var(--text-muted)}.hero-timestamp{font-size:12px;font-family:var(--font-mono);color:var(--text-muted);text-align:right;white-space:nowrap}.hero-temp-block{display:flex;align-items:flex-end;gap:20px}.temp-display{display:flex;align-items:flex-start}.temp-value{font-size:80px;font-weight:200;line-height:.85;letter-spacing:-4px;color:var(--text-primary);font-family:var(--font-sans)}.temp-unit{font-size:28px;font-weight:300;color:var(--text-secondary);margin-top:8px}.temp-condition{display:flex;flex-direction:column;gap:6px;padding-bottom:8px}.condition-label{font-size:20px;font-weight:600;color:var(--text-primary)}.condition-detail{font-size:13px;color:var(--text-muted);line-height:1.5}.hero-metrics-row{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.metric-tile{background:#ffffff08;border:1px solid var(--border);border-radius:var(--radius-md);padding:14px;display:flex;flex-direction:column;gap:8px;transition:all var(--transition-fast)}.metric-tile:hover{background:#ffffff0d;border-color:var(--border-hover)}.metric-tile-header{display:flex;align-items:center;gap:6px}.metric-icon{width:20px;height:20px;border-radius:6px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.metric-icon svg{width:12px;height:12px}.metric-icon.blue{background:var(--accent-dim);color:var(--accent)}.metric-icon.green{background:var(--green-dim);color:var(--green)}.metric-icon.amber{background:var(--amber-dim);color:var(--amber)}.metric-icon.purple{background:var(--purple-dim);color:var(--purple)}.metric-icon.red{background:var(--red-dim);color:var(--red)}.metric-label{font-size:11px;font-weight:500;color:var(--text-muted);text-transform:uppercase;letter-spacing:.4px}.metric-value{font-size:20px;font-weight:700;font-family:var(--font-mono);color:var(--text-primary);letter-spacing:-.5px}.hero-stats-panel{display:flex;flex-direction:column;gap:12px}.stat-card{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-lg);padding:20px;display:flex;align-items:center;gap:16px;transition:all var(--transition-fast)}.stat-card:hover{border-color:var(--border-hover);background:var(--bg-card-hover)}.stat-icon-box{width:44px;height:44px;border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;flex-shrink:0}.stat-icon-box svg{width:20px;height:20px}.stat-icon-box.blue{background:var(--accent-dim);color:var(--accent)}.stat-icon-box.green{background:var(--green-dim);color:var(--green)}.stat-icon-box.amber{background:var(--amber-dim);color:var(--amber)}.stat-icon-box.purple{background:var(--purple-dim);color:var(--purple)}.stat-icon-box.red{background:var(--red-dim);color:var(--red)}.stat-content{display:flex;flex-direction:column;gap:2px;min-width:0}.stat-label{font-size:12px;font-weight:500;color:var(--text-muted);text-transform:uppercase;letter-spacing:.3px}.stat-value{font-size:22px;font-weight:700;color:var(--text-primary);font-family:var(--font-mono);letter-spacing:-.5px}.stat-value .stat-unit{font-size:13px;font-weight:500;color:var(--text-muted);margin-left:4px}.section{margin-bottom:40px}.section-header{margin-bottom:20px}.section-eyebrow{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:var(--accent);margin-bottom:6px}.section-title{font-size:24px;font-weight:700;color:var(--text-primary);letter-spacing:-.5px}.section-desc{font-size:14px;color:var(--text-secondary);margin-top:4px}.pipeline-strip{display:flex;align-items:stretch;gap:0;overflow-x:auto;-ms-overflow-style:none;scrollbar-width:none}.pipeline-strip::-webkit-scrollbar{display:none}.pipeline-node{flex:1;min-width:180px;background:var(--bg-card);border:1px solid var(--border);padding:20px 18px;display:flex;flex-direction:column;gap:10px;position:relative;transition:all var(--transition-fast)}.pipeline-node:first-child{border-radius:var(--radius-lg) 0 0 var(--radius-lg)}.pipeline-node:last-child{border-radius:0 var(--radius-lg) var(--radius-lg) 0}.pipeline-node:hover{background:var(--bg-card-hover);z-index:1}.pipeline-step{font-size:11px;font-weight:700;font-family:var(--font-mono);color:var(--text-muted);text-transform:uppercase;letter-spacing:.5px}.pipeline-node-icon{width:32px;height:32px;border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center}.pipeline-node-icon svg{width:16px;height:16px}.pipeline-node-title{font-size:14px;font-weight:700;color:var(--text-primary)}.pipeline-node-desc{font-size:12px;color:var(--text-muted);line-height:1.5}.pipeline-arrow{display:flex;align-items:center;justify-content:center;width:32px;flex-shrink:0;color:var(--text-muted)}.pipeline-arrow svg{width:20px;height:20px;animation:flow-pulse 2s ease-in-out infinite}@keyframes flow-pulse{0%,to{opacity:.3;transform:translate(0)}50%{opacity:1;transform:translate(3px)}}.stations-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px}.station-card{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-lg);padding:18px 20px;cursor:pointer;transition:all var(--transition-normal);display:flex;flex-direction:column;gap:14px}.station-card:hover{border-color:var(--border-hover);background:var(--bg-card-hover);transform:translateY(-1px);box-shadow:var(--shadow-md)}.station-card.selected{border-color:var(--accent);background:#38bdf80a;box-shadow:var(--shadow-glow)}.station-card-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.station-name{font-size:15px;font-weight:700;color:var(--text-primary)}.station-coord{font-size:12px;font-family:var(--font-mono);color:var(--text-muted);margin-top:2px}.station-badge{font-size:11px;font-weight:700;padding:4px 10px;border-radius:var(--radius-pill);text-transform:uppercase;letter-spacing:.3px;flex-shrink:0}.station-badge.active{background:var(--green-dim);color:var(--green)}.station-badge.standby{background:var(--amber-dim);color:var(--amber)}.station-card-action{font-size:12px;font-weight:600;color:var(--text-muted);display:flex;align-items:center;gap:6px;transition:color var(--transition-fast)}.station-card:hover .station-card-action,.station-card.selected .station-card-action{color:var(--accent)}.mesh-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.mesh-panel{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-lg);padding:24px;display:flex;flex-direction:column;gap:20px}.mesh-panel-title{font-size:15px;font-weight:700;color:var(--text-primary);display:flex;align-items:center;gap:8px}.mesh-panel-title .title-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}.mesh-row{display:flex;justify-content:space-between;align-items:center;padding-bottom:14px;border-bottom:1px solid var(--border)}.mesh-row:last-child{border-bottom:none;padding-bottom:0}.mesh-row-label{font-size:13px;color:var(--text-secondary)}.mesh-row-value{font-size:14px;font-weight:700;font-family:var(--font-mono);color:var(--text-primary)}.mesh-row-value.green{color:var(--green)}.mesh-row-value.amber{color:var(--amber)}.mesh-row-value.red{color:var(--red)}.peer-topology{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}.peer-pill{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:600;font-family:var(--font-mono);padding:6px 12px;border-radius:var(--radius-pill);background:var(--bg-elevated);color:var(--text-secondary);border:1px solid var(--border)}.peer-pill .peer-dot{width:6px;height:6px;border-radius:50%}.peer-pill.self .peer-dot{background:var(--accent);box-shadow:0 0 6px #38bdf880}.peer-pill.remote .peer-dot{background:var(--green)}.peer-hint{font-size:12px;color:var(--text-muted);font-style:italic}.alerts-list{display:flex;flex-direction:column;gap:10px}.alert-row{background:var(--bg-card);border:1px solid var(--border);border-left:3px solid var(--red);border-radius:var(--radius-md);padding:16px 20px;display:flex;justify-content:space-between;align-items:center;gap:16px;transition:all var(--transition-fast)}.alert-row:hover{background:var(--bg-card-hover)}.alert-row.warning{border-left-color:var(--amber)}.alert-body{display:flex;flex-direction:column;gap:4px;min-width:0}.alert-message{font-size:14px;font-weight:600;color:var(--text-primary)}.alert-meta{font-size:12px;color:var(--text-muted);font-family:var(--font-mono)}.alert-meta .severity{font-weight:700}.alert-meta .severity.critical{color:var(--red)}.alert-meta .severity.high,.alert-meta .severity.medium{color:var(--amber)}.alert-resolve-btn{font-size:12px;font-weight:600;padding:8px 16px;border-radius:var(--radius-pill);border:1px solid var(--border);background:transparent;color:var(--text-secondary);cursor:pointer;transition:all var(--transition-fast);white-space:nowrap;font-family:var(--font-sans)}.alert-resolve-btn:hover{background:var(--red-dim);color:var(--red);border-color:#f871714d}.alerts-empty{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-lg);padding:32px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px}.alerts-empty-icon{width:40px;height:40px;border-radius:50%;background:var(--green-dim);display:flex;align-items:center;justify-content:center;color:var(--green)}.alerts-empty-icon svg{width:20px;height:20px}.alerts-empty-text{font-size:14px;color:var(--text-secondary)}.dashboard-footer{border-top:1px solid var(--border);padding:32px 0 48px;margin-top:48px;display:flex;justify-content:space-between;align-items:center;font-size:13px;color:var(--text-muted)}.footer-brand{display:flex;align-items:center;gap:8px;font-weight:600;color:var(--text-secondary)}.footer-brand .brand-mark{width:20px;height:20px;background:linear-gradient(135deg,var(--accent),#818cf8);border-radius:6px}.footer-right{font-size:12px}.footer-right strong{color:var(--text-primary);font-weight:600}.aqi-good{color:var(--green)}.aqi-moderate{color:var(--amber)}.aqi-unhealthy{color:var(--red)}.aqi-badge{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;font-family:var(--font-mono);padding:4px 10px;border-radius:var(--radius-pill)}.aqi-badge.good{background:var(--green-dim);color:var(--green)}.aqi-badge.moderate{background:var(--amber-dim);color:var(--amber)}.aqi-badge.unhealthy{background:var(--red-dim);color:var(--red)}.aqi-badge .aqi-dot{width:6px;height:6px;border-radius:50%;background:currentColor}.icon-inline{display:inline-flex;align-items:center;vertical-align:middle}.icon-inline svg{fill:currentColor}@media (max-width: 1024px){.hero-grid{grid-template-columns:1fr}.hero-stats-panel{display:grid;grid-template-columns:repeat(2,1fr)}.pipeline-strip{overflow-x:auto;padding-bottom:8px}}@media (max-width: 768px){.navbar{padding:8px 12px}.nav-links{display:none}.hero-primary{padding:24px 20px}.temp-value{font-size:56px;letter-spacing:-2px}.temp-unit{font-size:20px}.hero-metrics-row{grid-template-columns:repeat(2,1fr)}.hero-stats-panel,.mesh-grid,.stations-grid{grid-template-columns:1fr}.pipeline-node{min-width:150px}.section-title{font-size:20px}.dashboard-footer{flex-direction:column;gap:12px;text-align:center}}@media (max-width: 480px){.dashboard-container{padding:0 16px}.navbar-wrapper{padding:0 12px;top:8px}.hero-primary{padding:20px 16px}.temp-value{font-size:48px}.hero-metrics-row{grid-template-columns:1fr 1fr;gap:8px}.stat-card{padding:16px}.stat-value{font-size:18px}}
