/* ------------------------------------------------------------------ */
/* Analytics — filters & indicators                                   */
/* ------------------------------------------------------------------ */

.an-filter-row { 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  flex-wrap: wrap; 
}

.an-filter-label { 
  font-size: 10px; 
  text-transform: uppercase; 
  letter-spacing: .07em; 
  color: var(--muted); 
  min-width: 52px; 
  flex-shrink: 0; 
}

.an-filter-chips { 
  display: flex; 
  gap: 5px; 
  flex-wrap: wrap; 
  align-items: center; 
}

/* Momentum indicators (up/down arrows) */
.an-momentum { 
  font-size: 9px; 
  font-weight: 700; 
  margin-left: 3px; 
  opacity: 0.85; 
}
.an-momentum.up   { color: var(--green); }
.an-momentum.down { color: var(--red); }

/* ------------------------------------------------------------------ */
/* Sticky analytics toolbar                                            */
/* ------------------------------------------------------------------ */
#an-toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  padding: 10px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  /* Subtle bottom shadow so content scrolling under it is visible */
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
  margin: 0 -4px;
  padding-left: 4px;
  padding-right: 4px;
}
