/* ── Analytics (Obsidian) ── */
.analytics-kpi-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.analytics-kpi-row b {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.heatmap-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr auto;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.heatmap-row:last-child { border-bottom: none; }

.heatmap-bar {
  height: 4px;
  background: var(--bg-input);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.heatmap-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 400ms var(--ease);
}

.heatmap-fill.pnl-pos { background: var(--green); }
.heatmap-fill.pnl-neg { background: var(--red); }

.heatmap-calendar {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
}

.cal-cell {
  aspect-ratio: 1;
  border-radius: 3px;
  min-height: 12px;
  border: 1px solid var(--border);
}

.portfolio-total {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-family: var(--font-mono);
}

.portfolio-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  font-size: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}

.portfolio-row:last-child { border-bottom: none; }

.filter-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.muted {
  color: var(--text-muted);
  font-size: 12px;
}
