.dither-donut{--fg:#0e0e0f;--subtle:#73777a;--placeholder:#b0b4b8;--surface:#fff;--border:#0000000f;--shadow:#0000001a;--seg-bg:#e9eaeb;--seg-thumb:#fff;--pressed:#0000000f;--focus:#19c565;width:100%;height:100%;color:var(--fg);-webkit-user-select:none;user-select:none;place-items:center;font-family:Manrope,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:clamp(8px,min(3.5cqw,4.6cqh),18px);display:grid;container-type:size}.dither-donut[data-theme=dark]{--fg:#e1e2e5;--subtle:#8c8d8f;--placeholder:#6e6f70;--surface:#272729;--border:#ffffff1a;--shadow:#0009;--seg-bg:#313133;--seg-thumb:#49494d;--pressed:#ffffff0f;--focus:#10a759}.dither-donut__panel{box-sizing:border-box;background:var(--surface);width:25em;box-shadow:0 0 0 1px var(--border), 0 .5em 2.5em 0 var(--shadow);border-radius:1.5em;padding:1.25em}.dither-donut__head{justify-content:space-between;align-items:baseline;gap:.5em;display:flex}.dither-donut__title{margin:0;font-size:1em;font-weight:800;line-height:1.375}.dither-donut__sub{color:var(--subtle);margin:0;font-size:.75em;font-weight:500;line-height:1.333}.dither-donut__tabs{background:var(--seg-bg);border-radius:1000px;height:2em;margin-top:.75em;display:flex;position:relative}.dither-donut__ind{background:var(--seg-thumb);width:calc(25% - .25em);transform:translateX(calc(var(--i) * (100% + .25em) + .125em));pointer-events:none;border-radius:1000px;transition:transform .25s ease-in-out;position:absolute;top:.125em;bottom:.125em;left:0;box-shadow:0 .0625em .25em #0000000a}.dither-donut__tab{z-index:1;min-width:0;font:inherit;color:var(--subtle);cursor:pointer;-webkit-tap-highlight-color:transparent;background:0 0;border:0;outline:none;flex:1;padding:0 .5em;font-size:.875em;font-weight:500;line-height:1.43;transition:color .15s ease-out;position:relative}.dither-donut__tab[aria-selected=true]{color:var(--fg);font-weight:700}.dither-donut__tab:after{content:"";z-index:-1;background:var(--pressed);opacity:0;border-radius:1000px;transition:opacity .15s ease-out;position:absolute;inset:.143em}.dither-donut__tab:active:after{opacity:1;transition-duration:0s}.dither-donut__tab:focus-visible{outline:2px solid var(--focus);outline-offset:-2px;border-radius:1000px}.dither-donut__body{align-items:center;gap:1em;margin-top:1em;display:flex}.dither-donut__ring{aspect-ratio:1;touch-action:none;flex:none;width:9em;position:relative}.dither-donut__canvas{width:100%;height:100%;display:block}.dither-donut__centre{pointer-events:none;text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:.125em;display:flex;position:absolute;inset:0}.dither-donut__num{font-variant-numeric:tabular-nums;letter-spacing:-.01em;font-size:1.25em;font-weight:800;line-height:1.4}.dither-donut__cap{max-width:7.5em;color:var(--subtle);white-space:nowrap;text-overflow:ellipsis;font-size:.625em;font-weight:600;line-height:1.4;overflow:hidden}.dither-donut__sr{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;margin:-1px;position:absolute;overflow:hidden}.dither-donut__legend{flex:1;min-width:0;margin:0;padding:0;list-style:none}.dither-donut__row{width:100%;height:2.333em;color:var(--fg);font:inherit;text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent;background:0 0;border:0;border-radius:.667em;outline:none;align-items:center;gap:.5em;padding:0 .667em;font-size:.75em;transition:background-color .15s ease-out,color .15s ease-out;display:flex;position:relative}.dither-donut__row[data-active]{background:var(--pressed)}.dither-donut__row:active{background:var(--pressed);transition-duration:0s}.dither-donut__row:focus-visible{box-shadow:inset 0 0 0 2px var(--focus)}.dither-donut__swatch{background:var(--c);width:.75em;height:.75em;box-shadow:inset 0 0 0 1.5px var(--c);border-radius:.1667em;flex:none;transition:background-color .2s ease-out,transform .25s cubic-bezier(.2,.06,.22,1.16)}.dither-donut__name{white-space:nowrap;text-overflow:ellipsis;flex:1;min-width:0;font-weight:600;overflow:hidden}.dither-donut__val{font-variant-numeric:tabular-nums;font-weight:700}.dither-donut__pct{text-align:right;font-variant-numeric:tabular-nums;width:2.5em;color:var(--subtle);font-weight:500}.dither-donut__row[data-off]{color:var(--placeholder)}.dither-donut__row[data-off] .dither-donut__swatch{background:0 0;transform:scale(.85)}.dither-donut__row[data-off] .dither-donut__pct{color:var(--placeholder)}@media (prefers-reduced-motion:reduce){.dither-donut__ind,.dither-donut__swatch{transition:none}}
