.bnq-tool {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bnq-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  background: var(--bg-canvas);
}

.bnq-window-tabs {
  display: inline-flex;
  gap: 4px;
}

.bnq-window-tab {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--fg-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: calc(var(--radius) - 2px);
  cursor: pointer;
}

.bnq-window-tab:hover {
  color: var(--fg-default);
  background: var(--bg-muted);
}

.bnq-window-tab.is-active {
  color: var(--fg-default);
  border-color: var(--border-default);
  background: var(--bg-muted);
}

.bnq-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--fg-muted);
}

.bnq-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(88, 166, 255, 0.5);
  animation: bnq-pulse 1.8s infinite;
}

@keyframes bnq-pulse {
  0% { box-shadow: 0 0 0 0 rgba(88, 166, 255, 0.45); }
  70% { box-shadow: 0 0 0 6px rgba(88, 166, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(88, 166, 255, 0); }
}

.bnq-main {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(240px, 1.2fr);
  gap: 12px;
}

@media (max-width: 800px) {
  .bnq-main {
    grid-template-columns: 1fr;
  }
}

.bnq-hero {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid var(--border-default);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  background: var(--bg-canvas);
}

.bnq-hero.is-strong_pos { border-top-color: #f85149; }
.bnq-hero.is-elevated { border-top-color: #e3b341; }
.bnq-hero.is-mild { border-top-color: var(--accent); }
.bnq-hero.is-weak { border-top-color: var(--fg-subtle); }
.bnq-hero.is-inverse { border-top-color: #58a6ff; }

.bnq-corr {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.bnq-regime {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-muted);
}

.bnq-headline {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-default);
}

.bnq-summary {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--fg-muted);
}

.bnq-delta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.bnq-delta.is-up { color: #f85149; }
.bnq-delta.is-down { color: #58a6ff; }
.bnq-delta.is-flat { color: var(--fg-muted); }

.bnq-context {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  align-content: start;
}

.bnq-context-card {
  padding: 10px 12px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  background: var(--bg-canvas);
}

.bnq-context-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg-muted);
}

.bnq-context-value {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.bnq-panel {
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  background: var(--bg-canvas);
  overflow: hidden;
}

.bnq-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-default);
}

.bnq-section-title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.bnq-panel-body {
  padding: 12px;
}

.bnq-chart-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bnq-chart {
  width: 100%;
  height: 140px;
  display: block;
}

.bnq-chart-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--fg-muted);
  font-variant-numeric: tabular-nums;
}

.bnq-loading,
.bnq-empty {
  color: var(--fg-muted);
  font-size: 12px;
  margin: 0;
}
