/* ═══════════════════════════════════════════════════════════════
   Unified status bar — combines the previous "alert banner" and
   "auto-insight bar" into a single live region under current conditions.

   Variants:
   - .n-status-bar--insight  (default): neutral info styling
   - .n-status-bar--alert    : elevated, warning colors, dismiss shown
═══════════════════════════════════════════════════════════════ */
.n-status-bar,
.n-alert-banner /* legacy class kept for JS compat */ {
  margin: 1rem 0 0;
  padding: 0.75rem 1.1rem;
  border-radius: var(--n-radius-md);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.22);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.theme-light .n-status-bar,
.theme-light .n-alert-banner {
  background: #ecfeff;
  border-color: rgba(34, 211, 238, 0.28);
}

.n-status-bar--alert {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.28);
}
.theme-light .n-status-bar--alert {
  background: #fef2f2;
  border-color: rgba(220, 38, 38, 0.22);
}

.n-status-bar.hidden,
.n-alert-banner.hidden { display: none; }

.n-status-bar--conditions {
  margin-top: 1.25rem;
}

#s-conditions .n-status-bar {
  max-width: none;
}

.n-status-bar-inner,
.n-alert-banner-inner {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.n-status-bar-icon,
.n-alert-banner-icon {
  font-size: 1rem;
  line-height: 1.5;
  flex-shrink: 0;
  opacity: 0.95;
}

.n-status-bar-text {
  flex: 1;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-primary, #e2e8f0);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}
.theme-light .n-status-bar-text { color: #0f172a; }

.n-status-bar-alerts {
  color: #fecaca;
  font-weight: 500;
}
.theme-light .n-status-bar-alerts { color: #7f1d1d; }
.n-status-bar-alerts.hidden { display: none; }

.n-status-bar-insight {
  margin: 0;
  color: var(--text-muted, #94a3b8);
  font-size: 0.8rem;
}
.theme-light .n-status-bar-insight { color: #475569; }

.n-status-bar-time {
  font-size: 0.7rem;
  color: var(--text-muted, #64748b);
  opacity: 0.7;
}

/* Legacy class mapping so existing JS selectors keep working */
.n-alert-banner-text {
  /* Rendered as the alerts block inside new status bar */
}

.n-alert-line { margin: 0 0 0.35rem; font-weight: 500; }
.n-alert-line:last-child { margin-bottom: 0; }
.n-alert-dismiss {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: var(--text-muted, #94a3b8);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.25rem;
  border-radius: 4px;
}
.n-alert-dismiss:hover { color: var(--text-primary, #e2e8f0); background: rgba(255,255,255,0.06); }

/* ── HEADER TOOL BTN ───────────────────────────────────────── */
.n-header-tool-btn {
  padding: 0.45rem 0.9rem;
  border-radius: var(--n-radius-md);
  border: 1px solid var(--n-border-subtle);
  background: var(--n-surface-raised);
  color: var(--text-primary, #e2e8f0);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.theme-light .n-header-tool-btn {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.1);
  color: #334155;
}
.n-header-tool-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}
.theme-light .n-header-tool-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* ── CHART HINT ────────────────────────────────────────────── */
.n-chart-hint {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted, #64748b);
  margin: 0 0 0.5rem;
}

/* ── ANNOTATIONS SECTION ───────────────────────────────────── */
