.cg-dashboard{margin:1.2rem 0 2rem;padding:clamp(1rem,3vw,2rem);border:1px solid #d5e0e1;border-radius:18px;background:#fff}.cg-dashboard h2{margin-top:0}.cg-controls{display:flex;align-items:end;gap:.65rem;flex-wrap:wrap}.cg-controls label{display:flex;flex-direction:column;gap:.25rem}.cg-controls button{min-width:44px;min-height:44px}.cg-gauges{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.cg-gauge{--gauge:#6f54a6;padding:1rem;border:1px solid #e1e7e7;border-radius:13px;min-width:0;background:#fbfcfc}.cg-density{--gauge:#a66a12}.cg-volume{--gauge:#118376}.cg-gauge h3{font-size:1.1rem;margin:0 0 .7rem}.cg-value{font-size:1.45rem;font-weight:700;line-height:1.25;min-height:2.5em;margin:.4rem 0}.cg-track{height:16px;position:relative;border-radius:8px;background:#e7edef;margin:.7rem 0}.cg-track>span{display:block;height:100%;border-radius:inherit;background:var(--gauge);max-width:100%}.cg-track>i{position:absolute;height:24px;width:3px;background:#304654;top:-4px;max-width:100%;transform:translateX(-2px)}.cg-gauge small{display:block;color:#4a626b;min-height:1.2em;line-height:1.45}.cg-previous{font-size:.85rem}.cg-disclaimer{color:#4a626b;font-size:.9rem;line-height:1.5}.cg-dashboard details{margin-top:1rem}.cg-dashboard summary,.cg-cycle>summary{cursor:pointer;font-weight:600}.cg-reference-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:1rem 0}.cg-reference-grid label{display:flex;flex-direction:column}.cg-reference-grid input{max-width:100%;box-sizing:border-box;min-width:0}.cg-dashboard button{margin:.25rem}.cg-cycle{padding:1rem;margin:1rem 0;border:1px solid #d5e0e1;border-radius:15px;background:white;min-width:0}.cg-cycle select{max-width:100%}.cg-chip{display:inline-flex;align-items:center;gap:.3rem;margin:.35rem .7rem .35rem 0;font-size:.85rem}.cg-chip:before{content:'';width:14px;height:14px;border-radius:3px;background:var(--phase)}.cg-pause:before{background:repeating-linear-gradient(45deg,#6b7378,#6b7378 2px,#ddd 2px,#ddd 4px)}#cgCycleChart{width:100%;min-width:0;overflow:hidden}.cg-blocks{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:.5rem}.cg-blocks article{border:1px solid #d5e0e1;padding:.6rem;border-radius:8px}.cg-blocks span{display:block;font-size:.85rem}.cg-dashboard li{overflow-wrap:anywhere}@media(max-width:760px){.cg-gauges{grid-template-columns:1fr}.cg-value{min-height:0;font-size:1.45rem}.cg-dashboard{padding:1rem}.cg-reference-grid{grid-template-columns:1fr}.cg-controls input,.cg-controls select{width:100%;max-width:100%;box-sizing:border-box}.cg-controls label{min-width:0}.cg-gauge h3{margin-bottom:.4rem}.cg-cycle{padding:.6rem}#cgCycleChart .svg-container{max-width:100%}}

/* Proportional fill: no minimum fill, animation, gradient or previous-period overlay. */
.cg-gauge{--gauge-track:#d4dce3;--gauge-outline:#687c8d;--gauge-text:#233e50}
.cg-track{height:20px;background:var(--gauge-track);box-shadow:inset 0 0 0 1px var(--gauge-outline);overflow:hidden;width:100%;border:0;padding:0;box-sizing:border-box}
.cg-track>.cg-fill{display:block;box-sizing:border-box;height:100%;min-width:0;max-width:100%;background:var(--gauge);border-radius:inherit;transition:none;animation:none;transform:none;float:none}
.cg-ratio{font-size:1rem;font-weight:700;line-height:1.5;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;margin:.5rem 0}
.cg-reference,.cg-remaining{font-size:.85rem;line-height:1.5;margin:.4rem 0;color:var(--gauge-text)}
.cg-progress-unknown .cg-track{background:transparent;outline:1px dashed var(--gauge-outline);outline-offset:-1px;box-shadow:none}
.cg-loading{border:1px dashed #687c8d;padding:1rem;border-radius:8px;color:inherit}
@media(prefers-color-scheme:dark){
 .cg-dashboard{background:#142431;border-color:#718497;color:#f3f6f9;color-scheme:dark}
 .cg-gauge{background:#1d3040;border-color:#718497;--gauge:#b49be3;--gauge-track:#34495c;--gauge-outline:#9aafc0;--gauge-text:#e1eaf0}
 .cg-density{--gauge:#edb65e}.cg-volume{--gauge:#65d4bc}
 .cg-gauge small,.cg-disclaimer{color:#d3e0e9}.cg-dashboard input,.cg-dashboard select{background:#1d3040;color:#f3f6f9;border:1px solid #9aafc0}.cg-dashboard button{background:#263f50;color:#f3f6f9;border:1px solid #9aafc0}
}
/* The same colours are available to an explicit theme selector and the visual fixture. */
[data-theme="dark"] .cg-dashboard{background:#142431;border-color:#718497;color:#f3f6f9;color-scheme:dark}
[data-theme="dark"] .cg-gauge{background:#1d3040;border-color:#718497;--gauge:#b49be3;--gauge-track:#34495c;--gauge-outline:#9aafc0;--gauge-text:#e1eaf0}
[data-theme="dark"] .cg-density{--gauge:#edb65e}[data-theme="dark"] .cg-volume{--gauge:#65d4bc}
[data-theme="dark"] .cg-gauge small,[data-theme="dark"] .cg-disclaimer{color:#d3e0e9}
