/**
 * public/css/components/plug-history.css
 * Canopy v2 component - one plug's history in Settings (REQ-0005, #641): summary, hours-per-day
 * bars and the change list. Built from docs/design/mockups/smart-plugs-history-637.html.
 * Consumes ONLY --v2-* tokens.
 */

.ph-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--v2-space-sm); padding: var(--v2-space-md); }
.ph-sum-label { display: block; font-size: var(--v2-font-size-caption2); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--v2-text-support); }
.ph-sum-val { display: block; margin-top: 2px; font-weight: 600; font-size: 20px; line-height: 1.15; font-variant-numeric: tabular-nums; color: var(--v2-text-primary); }
.ph-sum-val small { font-size: 12px; font-weight: 500; color: var(--v2-text-secondary); }
.ph-days { padding: var(--v2-space-sm) 0; }
.ph-day { display: grid; grid-template-columns: 56px 1fr 52px; align-items: center; gap: 10px; min-height: 36px; padding: 0 var(--v2-space-md); font-size: 13px; color: var(--v2-text-secondary); font-variant-numeric: tabular-nums; }
.ph-track { height: 10px; border-radius: var(--v2-radius-full); background: var(--v2-bg-secondary); overflow: hidden; }
.ph-fill { display: block; height: 100%; border-radius: var(--v2-radius-full); background: var(--v2-pop-sage-muted); } /* #665 1A: a day that got its hours */
.ph-fill.short { background: var(--v2-pop-ochre); }
.ph-hrs { text-align: right; font-weight: 600; color: var(--v2-text-primary); }
.ph-change { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px var(--v2-space-md); border-bottom: 1px solid var(--v2-border-soft); }
.ph-change:last-child { border-bottom: none; }
.ph-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--v2-border-strong); }
.ph-dot.ph-dot-on { background: var(--v2-pop-sage); }
.ph-what { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.ph-what small { font-size: 12px; font-weight: 400; color: var(--v2-text-secondary); }
.ph-what small.ph-bad { color: var(--v2-pop-coral-text); font-weight: 600; }
.ph-when { font-size: 12px; color: var(--v2-text-secondary); font-variant-numeric: tabular-nums; text-align: right; }
.ph-note { margin: var(--v2-space-sm) 4px 0; font-size: 12px; line-height: 1.4; color: var(--v2-text-secondary); }
