/* ============ Charts ============ */
/* lifecycle stacked bar */
.lb-wrap { display: flex; flex-direction: column; gap: 16px; }
.lb-track { display: flex; height: 16px; border-radius: 8px; overflow: hidden; background: #EEF2F8; box-shadow: inset 0 0 0 1px rgba(16,24,40,.03); }
.lb-seg { height: 100%; min-width: 0; transition: opacity .2s; animation: lbGrow .7s var(--ease-out) both; transform-origin: left center; }
.lb-seg:hover { opacity: .82; }
@keyframes lbGrow { from { transform: scaleX(.2); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
.lb-legend { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.lb-item { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding: 9px 11px; border: 1px solid var(--line-2); border-radius: 8px; background: #FBFCFE; }
.lb-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.lb-dot { width: 8px; height: 8px; border-radius: 3px; flex: none; }
.lb-label { font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-bottom { display: flex; align-items: baseline; gap: 6px; }
.lb-num { font-size: 17px; color: var(--ink); font-weight: 650; line-height: 1.1; }
.lb-pct { font-size: 10.5px; color: var(--ink-4); font-variant-numeric: tabular-nums; margin-left: auto; }
@media (max-width: 1100px) { .lb-legend { grid-template-columns: repeat(3, 1fr); } }

/* donut */
.donut-wrap { display: flex; align-items: center; gap: 22px; }
.donut-box { position: relative; width: var(--donut-size, 168px); height: var(--donut-size, 168px); flex: none; }
.donut-svg { display: block; }
.donut-seg { animation: donutFade .65s var(--ease-out) both; }
@keyframes donutFade { from { opacity: 0; } to { opacity: 1; } }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.donut-center b { font-size: 26px; font-weight: 650; color: var(--ink); line-height: 1; letter-spacing: -.5px; }
.donut-center span { font-size: 11px; color: var(--ink-3); margin-top: 5px; }
.donut-legend { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.donut-legend-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 7px; transition: background .15s; }
.donut-legend-row:hover { background: #F8FAFC; }
.donut-legend-row .dl-label { font-size: 12.5px; color: var(--ink-2); }
.donut-legend-row .dl-count { margin-left: auto; font-size: 14px; font-weight: 650; color: var(--ink); }
.donut-legend-row .dl-pct { font-size: 11px; color: var(--ink-4); min-width: 42px; text-align: right; font-variant-numeric: tabular-nums; }
.donut-foot { margin-top: 8px; padding: 9px 10px; border-top: 1px dashed var(--line); font-size: 11.5px; color: var(--ink-3); line-height: 1.6; }
@media (max-width: 720px) { .donut-wrap { flex-direction: column; align-items: flex-start; } .donut-legend { width: 100%; } }

/* ring */
.ring-wrap { position: relative; }
.ring-wrap svg { display: block; }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-center b { font-size: 15px; line-height: 1; font-weight: 650; }
.ring-center span { font-size: 9.5px; color: var(--ink-4); margin-top: 3px; }

/* sparkline */
.sparkline { display: block; overflow: visible; }
