/* KPI STRIP */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.kpi-label {
  font-size: 10px;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 6px;
}
.kpi-val {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.kpi-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  font-family: var(--mono);
}
.kpi-sub.pos { color: #6B9B4A; }
.kpi-sub.neg { color: #C85968; }
.kpi-accent {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.kpi-accent.pink     { background: var(--pink); }
.kpi-accent.lavender { background: var(--lavender); }
.kpi-accent.blue     { background: var(--blue); }
.kpi-accent.sunny    { background: var(--sunny); }
.kpi-accent.mint     { background: var(--mint); }
.kpi-accent.green    { background: #A8CC85; }

.kpi-bar {
  margin-top: 8px;
  height: 4px;
  background: var(--surface3);
  border-radius: 2px;
  overflow: hidden;
}
.kpi-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pink) 0%, var(--lavender) 100%);
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* ACTIVITY FEED */
.activity-list { display: flex; flex-direction: column; gap: 10px; }
.activity-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
}
.activity-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.activity-count {
  font-family: var(--mono);
  font-weight: 600;
  min-width: 24px;
  color: var(--text);
}
.activity-empty {
  color: var(--muted);
  font-style: italic;
  font-size: 13px;
  padding: 8px 0;
}

/* UP-NEXT QUEUE */
.queue-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}
.queue-item:last-child { border-bottom: none; }
.queue-tag {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text2);
  padding: 2px 7px;
  background: var(--surface3);
  border-radius: 10px;
  font-weight: 600;
  min-width: 56px;
  text-align: center;
}
.queue-text { font-size: 13px; color: var(--text); line-height: 1.5; }

/* HEATMAP */
.heat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}
.heat-label {
  flex: 1;
  font-size: 12px;
  color: var(--text);
  font-family: var(--mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.heat-bar-track {
  flex: 1;
  height: 10px;
  background: var(--surface3);
  border-radius: 6px;
  overflow: hidden;
  max-width: 180px;
}
.heat-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.4s ease;
}
.heat-bar-fill.pink     { background: var(--pink); }
.heat-bar-fill.lavender { background: var(--lavender); }
.heat-bar-fill.plum     { background: var(--plum); }
.heat-bar-fill.blue     { background: var(--blue); }
.heat-count {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  font-weight: 600;
  min-width: 24px;
  text-align: right;
}
.heat-row.clickable {
  cursor: pointer;
  border-radius: 8px;
  padding: 8px 10px;
  margin: 0 -10px;
  transition: background 0.15s;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
}
.heat-row.clickable:hover { background: var(--surface2); }

/* CHART (SVG) */
.chart-wrap {
  padding: 8px 0 0;
  position: relative;
}
.chart-svg { width: 100%; height: auto; display: block; }
.chart-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: 11px;
  color: var(--text2);
}
.chart-legend-item { display: flex; align-items: center; gap: 6px; cursor: default; }
.chart-legend-swatch { width: 10px; height: 10px; border-radius: 3px; }
.chart-axis-label { font-size: 10px; fill: var(--muted); font-family: var(--mono); }
.chart-grid-line { stroke: var(--border); stroke-width: 1; stroke-dasharray: 2 3; }
.chart-band { transition: opacity 0.15s; }
.chart-band:hover { opacity: 1 !important; }
.chart-bar { transition: opacity 0.15s; }
.chart-bar:hover { opacity: 0.8; }
.chart-tooltip {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11px;
  color: var(--text);
  box-shadow: var(--shadow-md);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s;
  z-index: 50;
  min-width: 120px;
}
.chart-tooltip.show { opacity: 1; }
.chart-tooltip-title {
  font-weight: 600;
  margin-bottom: 4px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.chart-tooltip-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  line-height: 1.7;
}
.chart-tooltip-row .swatch {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: middle;
}
.chart-note {
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
  font-style: italic;
}

/* PACE ARROW */
.pace-arrow {
  font-size: 12px;
  font-family: var(--mono);
  margin-left: 6px;
  font-weight: 700;
}
.pace-up { color: #6B9B4A; }
.pace-down { color: #C85968; }
.pace-flat { color: var(--muted); }
