.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-top: 1rem; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(5, 1fr); } }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: 1rem; padding: 1rem; }
.stat b { display: block; font: 600 1.8rem/1 var(--serif); }
.stat span { display: block; margin-top: 0.4rem; font-size: 0.78rem; color: var(--muted-fg); }
.chart { margin-top: 1rem; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .axis { stroke: var(--border); stroke-width: 1; }
.chart .line { fill: none; stroke: var(--primary); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { fill: var(--card); stroke: var(--primary); stroke-width: 2.5; }
.chart text { fill: var(--muted-fg); font: 400 11px var(--sans); }
.chart text.val { fill: var(--fg); font-weight: 600; }
.cp-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.cp { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; padding: 0.8rem 1rem; border: 1px solid var(--border); border-radius: 0.9rem; background: var(--bg); }
.cp b { display: block; font-size: 0.95rem; }
.cp span.d { display: block; font-size: 0.78rem; color: var(--muted-fg); margin-top: 0.1rem; }
.badge-s { font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.65rem; border-radius: 999px; background: var(--muted); color: var(--muted-fg); border: 1px solid var(--border); }
.badge-s.done { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.badge-s.due { background: var(--accent); color: var(--accent-foreground); border-color: var(--primary); }
.badge-s.missed { color: #b3261e; }
.diff { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 0.85rem; }
.diff th, .diff td { text-align: left; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--border); }
.diff th { color: var(--muted-fg); font-weight: 600; }
.heat-wrap { margin-top: 1rem; }
.heat { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); gap: 3px; width: 100%; max-width: 30rem; }
.heat i { display: block; aspect-ratio: 1; border-radius: 3px; background: var(--muted); }
.heat i.on { background: var(--primary); }
.heat i.future { opacity: 0.35; }
.bars { display: flex; align-items: flex-end; gap: 0.5rem; height: 8rem; margin-top: 1rem; }
.bcol { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.bcol .bar { width: 100%; background: var(--primary); border-radius: 0.3rem 0.3rem 0 0; min-height: 2px; }
.bcol .n { font-size: 0.72rem; font-weight: 600; margin-bottom: 0.2rem; }
.bcol .lbl { font-size: 0.65rem; color: var(--muted-fg); margin-top: 0.3rem; white-space: nowrap; }
.pnote { margin-top: 0.9rem; font-size: 0.8rem; color: var(--muted-fg); line-height: 1.6; }
