/* ring-arc -- proportional ring/donut + legend */
.cw-ring-arc {
    display: flex;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;
    padding: 18px 20px;
    background: var(--cw-surface);
    border: 1px solid var(--cw-border);
    border-radius: var(--cw-radius);
}
.cw-ra-chartwrap {
    position: relative;
    width: 160px;
    height: 160px;
    flex-shrink: 0;
}
.cw-ra-svg { width: 160px; height: 160px; display: block; }
.cw-ra-seg { transition: stroke-width .15s ease; }
.cw-ra-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
}
.cw-ra-center-val { font-size: 1.5rem; font-weight: 700; color: var(--cw-text); line-height: 1.1; }
.cw-ra-center-lab { font-size: 0.72rem; color: var(--cw-muted); margin-top: 2px; }
.cw-ra-legend {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1 1 200px;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.cw-ra-legend-item { display: flex; align-items: flex-start; gap: 9px; }
.cw-ra-swatch {
    width: 13px; height: 13px; border-radius: 4px;
    flex-shrink: 0; margin-top: 3px;
}
.cw-ra-legend-text { display: flex; flex-direction: column; }
.cw-ra-legend-name { font-size: 0.88rem; font-weight: 600; color: var(--cw-text); }
.cw-ra-legend-desc { font-size: 0.78rem; color: var(--cw-muted); line-height: 1.5; }
