/* Charts drawn by the server as SVG (Components/Charts). Colours live here, by class. */
.dash { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 16px; margin-top: 18px; }
.chart { margin: 0; padding: 16px 18px; background: var(--surface-glass); border: 1px solid var(--border); border-radius: 10px; }
.chart figcaption, .dash-box h2 { margin-bottom: 12px; font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.chart-body { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.donut { width: 150px; height: 150px; flex: none; }
.donut-track { fill: none; stroke: var(--surface2); stroke-width: 6; }
.donut-slice { fill: none; stroke-width: 6; }
.donut-total { font-family: var(--mono); font-size: 7px; fill: var(--text); }
.legend { flex: 1; min-width: 10rem; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.legend li { display: flex; gap: 8px; align-items: center; padding: 3px 0; }
.legend b { margin-left: auto; font-family: var(--mono); font-weight: 400; color: var(--text); }
.legend .share { width: 3.2em; font-family: var(--mono); font-size: 11px; text-align: right; color: var(--muted); }
.swatch { width: 10px; height: 10px; flex: none; border-radius: 2px; }
.columns { display: block; width: 100%; max-width: 26rem; height: auto; }
.columns a { text-decoration: none; }
.column { fill: var(--accent); opacity: 0.85; }
.columns a:hover .column { opacity: 1; }
.column-value { font-family: var(--mono); font-size: 10px; fill: var(--text); }
.column-label { font-family: var(--mono); font-size: 10px; fill: var(--muted); }
.axis { stroke: var(--border); stroke-width: 1; }
.dash-box { padding: 16px 18px; background: var(--surface-glass); border: 1px solid var(--border); border-radius: 10px; }
.dash-box ol { margin: 0; padding: 0; list-style: none; font-size: 13px; }
.dash-box li { display: flex; gap: 10px; align-items: baseline; padding: 4px 0; border-top: 1px solid var(--border); }
.dash-box li:first-child { border-top: 0; }
.dash-box li b { margin-left: auto; font-family: var(--mono); font-weight: 400; }

/* A slice's colour: fill for swatches and columns, stroke for ring arcs. */
.seg-W { background: var(--mW); stroke: var(--mW); fill: var(--mW); }
.seg-U { background: var(--mU); stroke: var(--mU); fill: var(--mU); }
.seg-B { background: var(--mB); stroke: var(--mB); fill: var(--mB); }
.seg-R { background: var(--mR); stroke: var(--mR); fill: var(--mR); }
.seg-G { background: var(--mG); stroke: var(--mG); fill: var(--mG); }
.seg-C { background: var(--mC); stroke: var(--mC); fill: var(--mC); }
.seg-M { background: #d4af37; stroke: #d4af37; fill: #d4af37; }
.seg-1 { background: var(--accent); stroke: var(--accent); fill: var(--accent); }
.seg-2 { background: var(--accent2); stroke: var(--accent2); fill: var(--accent2); }
.seg-3 { background: var(--accent3); stroke: var(--accent3); fill: var(--accent3); }
.seg-4 { background: var(--warn); stroke: var(--warn); fill: var(--warn); }
.seg-5 { background: var(--danger); stroke: var(--danger); fill: var(--danger); }
.seg-6 { background: #ec4899; stroke: #ec4899; fill: #ec4899; }
.seg-7 { background: #8b98a9; stroke: #8b98a9; fill: #8b98a9; }
.seg-8 { background: #a3e635; stroke: #a3e635; fill: #a3e635; }
.seg-9 { background: #64748b; stroke: #64748b; fill: #64748b; }
.donut-slice.seg-W, .donut-slice.seg-U, .donut-slice.seg-B, .donut-slice.seg-R, .donut-slice.seg-G, .donut-slice.seg-C, .donut-slice.seg-M,
.donut-slice.seg-1, .donut-slice.seg-2, .donut-slice.seg-3, .donut-slice.seg-4, .donut-slice.seg-5, .donut-slice.seg-6, .donut-slice.seg-7,
.donut-slice.seg-8, .donut-slice.seg-9 { fill: none; }
