.popover {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  width: 320px;
  background: var(--sidebar-bg);
  border: 1px solid var(--sidebar-border);
  border-radius: var(--radius-xl);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  z-index: 50;
  animation: fadeUp 160ms var(--ease-out-quick);
}

.header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.caption {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.tier {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--accent-primary);
  letter-spacing: 0.04em;
}

.bucketList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.bucket {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.bucket.active {
  background: var(--hover-bg);
  border-color: var(--sidebar-border);
}

.bucketHead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.bucketLabel {
  font-size: var(--fs-sm);
  color: var(--text-primary);
}

.bucketPct {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
}

.bucketBar {
  position: relative;
  height: 4px;
  border-radius: 2px;
  background: var(--divider);
  overflow: hidden;
}

.bucketBarFill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  transition: width 400ms var(--ease-out-quick), background var(--transition-fast);
}

.bucketReset {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

.footnote {
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--text-dim);
  border-top: 1px solid var(--divider);
  padding-top: 10px;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
