.n-detail-sensor-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.n-detail-sensor-label {
  font-size: 0.78rem;
  color: var(--text-muted, #94a3b8);
}
.n-detail-sensor-select {
  min-width: 200px;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--border, rgba(255,255,255,0.12));
  background: rgba(0,0,0,0.2);
  color: inherit;
  font-size: 0.85rem;
}
.theme-light .n-detail-sensor-select {
  background: #fff;
  border-color: #cbd5e1;
}
.n-chart-detail { min-height: 280px; }
.n-detail-chart-body { position: relative; }
.n-detail-tempest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
  gap: 1rem;
}
.n-detail-tempest-grid.hidden { display: none; }
.n-detail-subchart {
  border: 1px solid var(--n-border-subtle);
  border-radius: var(--n-radius-md);
  padding: 0.85rem 1rem 0.65rem;
  background: var(--n-well);
}
.theme-light .n-detail-subchart {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.08);
}
.n-detail-subchart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}
.n-detail-subchart-head h4 {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted, #94a3b8);
  letter-spacing: 0.02em;
}
.n-detail-subchart-expand {
  flex-shrink: 0;
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
  border-radius: 6px;
  border: 1px solid var(--border, rgba(255,255,255,0.15));
  background: rgba(255,255,255,0.06);
  color: var(--text-primary, #e2e8f0);
  cursor: pointer;
}
.n-detail-subchart-expand:hover {
  background: rgba(255,255,255,0.1);
}
.theme-light .n-detail-subchart-expand {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}
.theme-light .n-detail-subchart-expand:hover {
  background: #e2e8f0;
}
.n-detail-subchart-canvas {
  height: 200px;
  position: relative;
}
.n-detail-subchart-empty {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted, #64748b);
  font-style: italic;
  padding: 0.25rem 0 0.5rem;
}
.n-detail-chart-legend-hint {
  font-size: 0.72rem;
  color: var(--text-muted, #64748b);
  margin: 0.5rem 0 0;
}

/* ── TEMPEST EXPANDED CHART MODAL ───────────────────────────── */
.n-tempest-zoom-overlay {
  position: fixed;
  inset: 0;
  z-index: 10045;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.n-tempest-zoom-overlay.hidden {
  display: none;
}
.n-tempest-zoom-dialog {
  width: 100%;
  max-width: 920px;
  max-height: min(90vh, 900px);
  background: var(--bg-elevated, #1a1d26);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.theme-light .n-tempest-zoom-dialog {
  background: #fff;
  border-color: #e2e8f0;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.15);
}
.n-tempest-zoom-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
}
.theme-light .n-tempest-zoom-head {
  border-bottom-color: #e2e8f0;
}
.n-tempest-zoom-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary, #e2e8f0);
}
.theme-light .n-tempest-zoom-title {
  color: #0f172a;
}
.n-tempest-zoom-close {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  line-height: 1;
  font-size: 1.5rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted, #94a3b8);
  cursor: pointer;
}
.n-tempest-zoom-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary, #e2e8f0);
}
.theme-light .n-tempest-zoom-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.n-tempest-zoom-chart-wrap {
  position: relative;
  min-height: 280px;
  height: min(55vh, 520px);
  padding: 0.5rem 1rem 1rem;
}

/* ── FOOTER ──────────────────────────────────────────────────── */
