@layer components {
/* Status pill, severity bars, repro dots, due labels, progress bars, rings */
.pill {
  --c: var(--st-open);
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px 0 7px; border-radius: var(--r-7);
  font-size: var(--fs-11-5); font-weight: 600; color: var(--c); white-space: nowrap;
  background: color-mix(in srgb, var(--c) 11%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 26%, transparent);
}
button.pill:hover { background: color-mix(in srgb, var(--c) 20%, transparent); }
.si { width: 14px; height: 14px; flex: none; }

.sev { display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-12); color: var(--fg-2); white-space: nowrap; }
.sev .bars { display: inline-flex; gap: 2px; align-items: flex-end; }
.sev .bars i { width: 3px; border-radius: var(--r-1); background: var(--bg-5); }
.sev .bars i:nth-child(1) { height: 5px; }
.sev .bars i:nth-child(2) { height: 8px; }
.sev .bars i:nth-child(3) { height: 11px; }
.sev .bars i:nth-child(4) { height: 14px; }
.sev .bars i.on { background: var(--c); }

.rep { display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-12); color: var(--fg-2); white-space: nowrap; }
.rep .dots { display: inline-flex; gap: 3px; }
.rep .dots i { width: 6px; height: 6px; border-radius: var(--r-round); border: 1.5px solid var(--fg-4); }
.rep .dots i.on { background: var(--fg-2); border-color: var(--fg-2); }
.rep.cnr { color: var(--fg-3); }

.due { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-12); color: var(--fg-2); white-space: nowrap; }
.due.today { color: var(--warn); font-weight: 600; }
.due.over { color: var(--bad); font-weight: 600; }

.dist { display: flex; height: 5px; width: 120px; border-radius: var(--r-3); overflow: hidden; background: var(--bg-4); gap: 1px; }
.dist i { display: block; height: 100%; }
.dist .d-done { background: var(--st-ver); }
.dist .d-qa { background: var(--st-rqa); }
.dist .d-prog { background: var(--st-prog); }
.dist .d-reo { background: var(--st-reo); }
.dist .d-open { background: var(--st-open-bar); }

.legend { display: flex; gap: 10px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.legend i { width: 7px; height: 7px; border-radius: var(--r-2); display: inline-block; }
.legend .lg-done { background: var(--st-ver); }
.legend .lg-qa { background: var(--st-rqa); }
.legend .lg-prog { background: var(--st-prog); }
.legend .lg-reo { background: var(--st-reo); }
.legend .lg-carried { background: var(--st-reo); }
.legend .lg-new { background: var(--accent); }

.ring text { font-family: var(--f-display); font-weight: 700; fill: var(--fg); }
.ring .track { stroke: var(--bg-5); }

.stat { line-height: 1.15; }
.stat b { font-family: var(--f-display); font-size: var(--fs-20); font-weight: 700; font-variant-numeric: tabular-nums; display: block; }
.stat span { font-size: var(--fs-10-5); color: var(--fg-3); letter-spacing: 0.03em; white-space: nowrap; }
.stat.bad b { color: var(--bad); }
.stat.warn b { color: var(--warn); }
.stat.ok b { color: var(--ok); }

.flash { animation: flash 2.2s ease-out; }
@keyframes flash {
  0% { background: color-mix(in srgb, var(--accent) 28%, transparent); box-shadow: inset 3px 0 0 var(--accent); }
  100% { background: transparent; box-shadow: inset 3px 0 0 transparent; }
}
}
