#todo-controls input:not([type="checkbox"]), #todo-detail input:not([type="checkbox"]), #todo-detail textarea {
  max-width: 100%; box-sizing: border-box;
}
#todo-detail form { display: flex; flex-direction: column; gap: 6px; }
#todo-detail h2 { margin: 0 0 10px; }
#todo-detail textarea { resize: none; }
.todo-backdrop { position: fixed; inset: 0; background: rgb(0 0 0 / 35%); }
.todo-dialog { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(320px, 80vw); padding: 20px; background: white; border: 2px solid #182436; }
#task-information { max-width: 320px; padding: 20px; }
/* @underglass/ui tokens, generated from strata.tokens.json by tokensToCss. Do not edit. */
@layer strata.tokens, strata.theme, strata.components;
@layer strata.tokens {
  :root {
    --strata-depth: 0.5;
    --strata-light-azimuth: 323;
    --strata-light-elevation: 41;
    --strata-light-intensity: 1.6;
    --strata-light-ambient: 0.55;
    --strata-light-colour: #ffffff;
    --strata-camera-distance: 1600px;
    --strata-camera-tilt-max: 25;
    --strata-bevel-profile: quarter-round;
    --strata-interior-max: 0.04;
    --strata-state-hover-height: 1.6;
    --strata-state-press-height: 0.25;
    --strata-state-hover-lift: 0.04;
    --strata-state-press-sink: 0.06;
    --strata-knob-sweep: 270;
    --strata-knob-drag-px: 200px;
    --strata-knob-fine: 0.1;
    --strata-knob-tap-slop: 4px;
    --strata-knob-snap: 2;
    --strata-meter-sweep: 100;
    --strata-meter-peak-hold: 600ms;
    --strata-meter-peak-decay: 0.5;
    --strata-gauge-sweep: 240;
    --strata-jog-turn: 24;
    --strata-jog-drag-px: 240px;
    --strata-jog-fine: 0.1;
    --strata-jog-tap-slop: 4px;
    --strata-jog-flick: 180;
    --strata-jog-max-rate: 240;
    --strata-display-bezel-width: 7px;
    --strata-display-bezel-radius: 8px;
    --strata-display-finish-band: 0.3;
    --strata-display-finish-horizon: 0.25;
    --strata-display-segments-ghost: 0.14;
    --strata-material-presets-matte-base-metallic: 0;
    --strata-material-presets-satin-base-roughness: 0.4;
    --strata-material-presets-satin-base-metallic: 0;
    --strata-material-presets-satin-coat-strength: 0.3;
    --strata-material-presets-satin-coat-roughness: 0.35;
    --strata-material-presets-satin-coat-ior: 1.5;
    --strata-material-presets-gloss-base-roughness: 0.25;
    --strata-material-presets-gloss-base-metallic: 0;
    --strata-material-presets-gloss-coat-strength: 0.6;
    --strata-material-presets-gloss-coat-roughness: 0.12;
    --strata-material-presets-gloss-coat-ior: 1.5;
    --strata-material-presets-lacquer-base-roughness: 0.45;
    --strata-material-presets-lacquer-base-metallic: 0;
    --strata-material-presets-lacquer-coat-strength: 1;
    --strata-material-presets-lacquer-coat-roughness: 0.04;
    --strata-material-presets-lacquer-coat-ior: 1.5;
    --strata-material-presets-glass-base-roughness: 0.05;
    --strata-material-presets-glass-base-metallic: 0;
    --strata-material-presets-glass-transmission-strength: 0.9;
    --strata-material-presets-glass-transmission-ior: 1.5;
    --strata-material-presets-glass-transmission-frost: 0.3;
    --strata-material-presets-metal-base-roughness: 0.3;
    --strata-material-presets-metal-base-metallic: 1;
    --strata-material-presets-emissive-emissive-strength: 1;
    --strata-material-roles-panel: matte;
    --strata-material-roles-control: matte;
    --strata-material-roles-button-primary: matte;
    --strata-material-roles-field: matte;
    --strata-material-roles-knob: satin;
    --strata-material-roles-rail: metal;
    --strata-material-roles-track-on: emissive;
    --strata-material-roles-indicator: emissive;
    --strata-material-roles-overlay: matte;
    --strata-environment-source: studio;
    --strata-environment-intensity: 1;
    --strata-radius-small: 4px;
    --strata-radius-control: 8px;
    --strata-radius-panel: 14px;
    --strata-radius-pill: 999px;
    --strata-font-family: system-ui, sans-serif;
    --strata-font-mono: ui-monospace, monospace;
    --strata-font-size-caption: 12px;
    --strata-font-size-small: 13px;
    --strata-font-size-body: 14px;
    --strata-font-size-subtitle: 16px;
    --strata-font-size-title: 18px;
    --strata-font-size-headline: 22px;
    --strata-font-size-display: 28px;
    --strata-font-weight-regular: 400;
    --strata-font-weight-strong: 600;
    --strata-font-line-height-body: 1.45;
    --strata-font-line-height-heading: 1.25;
    --strata-font-segments: "Strata Segments", ui-monospace, monospace;
    --strata-space-base: 4px;
    --strata-density: comfortable;
    --strata-size-fader-small: 120px;
    --strata-size-fader-medium: 180px;
    --strata-size-fader-large: 240px;
    --strata-size-indicator-small: 16px;
    --strata-size-indicator-medium: 20px;
    --strata-size-indicator-large: 24px;
    --strata-size-switch-width-small: 30px;
    --strata-size-switch-width-medium: 36px;
    --strata-size-switch-width-large: 44px;
    --strata-size-control-small: -6px;
    --strata-size-control-medium: 0px;
    --strata-size-control-large: 6px;
    --strata-size-knob-small: 48px;
    --strata-size-knob-medium: 64px;
    --strata-size-knob-large: 80px;
    --strata-size-push-small: 32px;
    --strata-size-push-medium: 40px;
    --strata-size-push-large: 48px;
    --strata-size-pad-small: 48px;
    --strata-size-pad-medium: 64px;
    --strata-size-pad-large: 80px;
    --strata-size-keypad-small: 36px;
    --strata-size-keypad-medium: 44px;
    --strata-size-keypad-large: 52px;
    --strata-size-rotary-small: 48px;
    --strata-size-rotary-medium: 64px;
    --strata-size-rotary-large: 80px;
    --strata-size-lamp-small: 20px;
    --strata-size-lamp-medium: 28px;
    --strata-size-lamp-large: 36px;
    --strata-size-status-light-small: 8px;
    --strata-size-status-light-medium: 10px;
    --strata-size-status-light-large: 14px;
    --strata-size-meter-small: 8px;
    --strata-size-meter-medium: 10px;
    --strata-size-meter-large: 12px;
    --strata-size-gauge-small: 120px;
    --strata-size-gauge-medium: 160px;
    --strata-size-gauge-large: 200px;
    --strata-size-rating-small: 12px;
    --strata-size-rating-medium: 16px;
    --strata-size-rating-large: 20px;
    --strata-size-spinner-small: 24px;
    --strata-size-spinner-medium: 36px;
    --strata-size-spinner-large: 52px;
    --strata-size-jog-wheel-small: 64px;
    --strata-size-jog-wheel-medium: 96px;
    --strata-size-jog-wheel-large: 128px;
    --strata-size-patch-point-small: 28px;
    --strata-size-patch-point-medium: 36px;
    --strata-size-patch-point-large: 44px;
    --strata-motion-fast: 120ms;
    --strata-motion-normal: 200ms;
    --strata-motion-slow: 320ms;
    --strata-motion-easing-standard: cubic-bezier(0.2, 0, 0, 1);
    --strata-motion-easing-press: cubic-bezier(0.3, 0, 0.6, 1);
    --strata-focus-width: 3px;
    --strata-focus-offset: 0.5px;
    --strata-fader-snap: 2px;
    --strata-wheel-sweep: 150;
    --strata-wheel-ridges: 12;
    --strata-feedback-sound: 0;
    --strata-feedback-haptics: 0;
    --strata-feedback-click-pitch: 2400;
    --strata-feedback-click-decay: 4;
    --strata-feedback-click-noise: 0.6;
    --strata-feedback-tick-pitch: 3200;
    --strata-feedback-tick-decay: 2;
    --strata-feedback-tick-noise: 0.3;
    --strata-feedback-thunk-pitch: 140;
    --strata-feedback-thunk-decay: 18;
    --strata-feedback-thunk-noise: 0.25;
    --strata-feedback-snap-pitch: 1800;
    --strata-feedback-snap-decay: 6;
    --strata-feedback-snap-noise: 0.75;
    --strata-target-min: 24px;
    --strata-plate-rim: 4px;
    --strata-plate-height: 3px;
    --strata-plate-chamfer: 1.4px;
    --strata-plate-wall: 4px;
    --strata-plate-slope: 3px;
    --strata-level: relief;
    --strata-blink-slow: 1600ms;
    --strata-blink-normal: 1000ms;
    --strata-blink-fast: 400ms;
    --strata-chase-spinner: 900ms;
    --strata-chase-bar: 1600ms;
    --strata-emitter-lamp-radius: 6;
    --strata-emitter-lamp-height: 0.7;
    --strata-emitter-lamp-strength: 3200;
    --strata-emitter-led-radius: 6;
    --strata-emitter-led-height: 0.8;
    --strata-emitter-led-strength: 520;
    --strata-emitter-display-radius: 2.5;
    --strata-emitter-display-height: 0.5;
    --strata-emitter-display-strength: 2200;
    --strata-emitter-segment-radius: 3;
    --strata-emitter-segment-height: 0.8;
    --strata-emitter-segment-strength: 260;
    --strata-emitter-guard-feather: 4px;
    --strata-emitter-pad-radius: 3;
    --strata-emitter-pad-height: 0.25;
    --strata-emitter-pad-strength: 3600;
    --strata-emitter-push-button-radius: 4;
    --strata-emitter-push-button-height: 0.3;
    --strata-emitter-push-button-strength: 2400;
    --strata-light-x: calc(sin(var(--strata-light-azimuth) * 1deg) * cos(var(--strata-light-elevation) * 1deg));
    --strata-light-y: calc(-1 * cos(var(--strata-light-azimuth) * 1deg) * cos(var(--strata-light-elevation) * 1deg));
    --strata-light-z: calc(sin(var(--strata-light-elevation) * 1deg));
    --strata-shadow-dx: calc(-1 * var(--strata-light-x) / var(--strata-light-z));
    --strata-shadow-dy: calc(-1 * var(--strata-light-y) / var(--strata-light-z));
    --strata-space-1: calc(var(--strata-space-base) * 0.5);
    --strata-space-2: calc(var(--strata-space-base) * 1);
    --strata-space-3: calc(var(--strata-space-base) * 2);
    --strata-space-4: calc(var(--strata-space-base) * 3);
    --strata-space-5: calc(var(--strata-space-base) * 4);
    --strata-space-6: calc(var(--strata-space-base) * 5);
    --strata-space-7: calc(var(--strata-space-base) * 6);
    --strata-space-8: calc(var(--strata-space-base) * 8);
    --strata-space-9: calc(var(--strata-space-base) * 10);
    --strata-space-10: calc(var(--strata-space-base) * 12);
    --strata-finish-matte: linear-gradient(to bottom, rgb(255 255 255 / 0.040) 0.0%, rgb(255 255 255 / 0.039) 2.5%, rgb(255 255 255 / 0.036) 5.0%, rgb(255 255 255 / 0.032) 7.5%, rgb(255 255 255 / 0.028) 10.0%, rgb(255 255 255 / 0.022) 12.5%, rgb(255 255 255 / 0.017) 15.0%, rgb(255 255 255 / 0.011) 17.5%, rgb(255 255 255 / 0.007) 20.0%, rgb(255 255 255 / 0.003) 22.5%, rgb(255 255 255 / 0.001) 25.0%, rgb(255 255 255 / 0.000) 27.5%, rgb(255 255 255 / 0.000) 30.0%, rgb(255 255 255 / 0.000) 32.5%, rgb(255 255 255 / 0.000) 35.0%, rgb(255 255 255 / 0.000) 37.5%, rgb(255 255 255 / 0.000) 40.0%, rgb(255 255 255 / 0.000) 42.5%, rgb(255 255 255 / 0.000) 45.0%, rgb(255 255 255 / 0.000) 47.5%, rgb(255 255 255 / 0.000) 50.0%, rgb(255 255 255 / 0.000) 52.5%, rgb(255 255 255 / 0.000) 55.0%, rgb(255 255 255 / 0.000) 57.5%, rgb(255 255 255 / 0.000) 60.0%, rgb(255 255 255 / 0.000) 62.5%, rgb(255 255 255 / 0.000) 65.0%, rgb(255 255 255 / 0.000) 67.5%, rgb(255 255 255 / 0.000) 70.0%, rgb(255 255 255 / 0.000) 72.5%, rgb(255 255 255 / 0.000) 75.0%, rgb(255 255 255 / 0.000) 77.5%, rgb(255 255 255 / 0.000) 80.0%, rgb(255 255 255 / 0.000) 82.5%, rgb(255 255 255 / 0.000) 85.0%, rgb(255 255 255 / 0.000) 87.5%, rgb(255 255 255 / 0.000) 90.0%, rgb(255 255 255 / 0.000) 92.5%, rgb(255 255 255 / 0.000) 95.0%, rgb(255 255 255 / 0.000) 97.5%, rgb(255 255 255 / 0.000) 100.0%);
    --strata-finish-satin: linear-gradient(to bottom, rgb(255 255 255 / 0.080) 0.0%, rgb(255 255 255 / 0.078) 2.5%, rgb(255 255 255 / 0.173) 5.0%, rgb(255 255 255 / 0.180) 7.5%, rgb(255 255 255 / 0.180) 10.0%, rgb(255 255 255 / 0.180) 12.5%, rgb(255 255 255 / 0.180) 15.0%, rgb(255 255 255 / 0.156) 17.5%, rgb(255 255 255 / 0.102) 20.0%, rgb(255 255 255 / 0.043) 22.5%, rgb(0 0 0 / 0.012) 25.0%, rgb(0 0 0 / 0.048) 27.5%, rgb(0 0 0 / 0.024) 30.0%, rgb(255 255 255 / 0.000) 32.5%, rgb(255 255 255 / 0.000) 35.0%, rgb(255 255 255 / 0.000) 37.5%, rgb(255 255 255 / 0.000) 40.0%, rgb(255 255 255 / 0.000) 42.5%, rgb(255 255 255 / 0.000) 45.0%, rgb(255 255 255 / 0.000) 47.5%, rgb(255 255 255 / 0.000) 50.0%, rgb(255 255 255 / 0.000) 52.5%, rgb(255 255 255 / 0.000) 55.0%, rgb(255 255 255 / 0.000) 57.5%, rgb(255 255 255 / 0.000) 60.0%, rgb(255 255 255 / 0.000) 62.5%, rgb(255 255 255 / 0.000) 65.0%, rgb(255 255 255 / 0.000) 67.5%, rgb(255 255 255 / 0.000) 70.0%, rgb(255 255 255 / 0.000) 72.5%, rgb(255 255 255 / 0.000) 75.0%, rgb(255 255 255 / 0.000) 77.5%, rgb(255 255 255 / 0.000) 80.0%, rgb(255 255 255 / 0.000) 82.5%, rgb(255 255 255 / 0.000) 85.0%, rgb(255 255 255 / 0.000) 87.5%, rgb(255 255 255 / 0.000) 90.0%, rgb(255 255 255 / 0.000) 92.5%, rgb(255 255 255 / 0.000) 95.0%, rgb(255 255 255 / 0.000) 97.5%, rgb(255 255 255 / 0.000) 100.0%);
    --strata-finish-gloss: linear-gradient(to bottom, rgb(255 255 255 / 0.200) 0.0%, rgb(255 255 255 / 0.195) 2.5%, rgb(255 255 255 / 0.360) 5.0%, rgb(255 255 255 / 0.360) 7.5%, rgb(255 255 255 / 0.360) 10.0%, rgb(255 255 255 / 0.360) 12.5%, rgb(255 255 255 / 0.360) 15.0%, rgb(255 255 255 / 0.313) 17.5%, rgb(255 255 255 / 0.204) 20.0%, rgb(255 255 255 / 0.086) 22.5%, rgb(0 0 0 / 0.025) 25.0%, rgb(0 0 0 / 0.096) 27.5%, rgb(0 0 0 / 0.048) 30.0%, rgb(255 255 255 / 0.000) 32.5%, rgb(255 255 255 / 0.000) 35.0%, rgb(255 255 255 / 0.000) 37.5%, rgb(255 255 255 / 0.000) 40.0%, rgb(255 255 255 / 0.000) 42.5%, rgb(255 255 255 / 0.000) 45.0%, rgb(255 255 255 / 0.000) 47.5%, rgb(255 255 255 / 0.000) 50.0%, rgb(255 255 255 / 0.000) 52.5%, rgb(255 255 255 / 0.000) 55.0%, rgb(255 255 255 / 0.000) 57.5%, rgb(255 255 255 / 0.000) 60.0%, rgb(255 255 255 / 0.000) 62.5%, rgb(255 255 255 / 0.000) 65.0%, rgb(255 255 255 / 0.000) 67.5%, rgb(255 255 255 / 0.000) 70.0%, rgb(255 255 255 / 0.000) 72.5%, rgb(255 255 255 / 0.000) 75.0%, rgb(255 255 255 / 0.000) 77.5%, rgb(255 255 255 / 0.000) 80.0%, rgb(255 255 255 / 0.000) 82.5%, rgb(255 255 255 / 0.000) 85.0%, rgb(255 255 255 / 0.000) 87.5%, rgb(255 255 255 / 0.000) 90.0%, rgb(255 255 255 / 0.000) 92.5%, rgb(255 255 255 / 0.000) 95.0%, rgb(255 255 255 / 0.000) 97.5%, rgb(255 255 255 / 0.000) 100.0%);
    --strata-finish-lacquer: linear-gradient(to bottom, rgb(255 255 255 / 0.040) 0.0%, rgb(255 255 255 / 0.039) 2.5%, rgb(255 255 255 / 0.600) 5.0%, rgb(255 255 255 / 0.600) 7.5%, rgb(255 255 255 / 0.600) 10.0%, rgb(255 255 255 / 0.600) 12.5%, rgb(255 255 255 / 0.600) 15.0%, rgb(255 255 255 / 0.521) 17.5%, rgb(255 255 255 / 0.341) 20.0%, rgb(255 255 255 / 0.144) 22.5%, rgb(0 0 0 / 0.041) 25.0%, rgb(0 0 0 / 0.160) 27.5%, rgb(0 0 0 / 0.080) 30.0%, rgb(255 255 255 / 0.000) 32.5%, rgb(255 255 255 / 0.000) 35.0%, rgb(255 255 255 / 0.000) 37.5%, rgb(255 255 255 / 0.000) 40.0%, rgb(255 255 255 / 0.000) 42.5%, rgb(255 255 255 / 0.000) 45.0%, rgb(255 255 255 / 0.000) 47.5%, rgb(255 255 255 / 0.000) 50.0%, rgb(255 255 255 / 0.000) 52.5%, rgb(255 255 255 / 0.000) 55.0%, rgb(255 255 255 / 0.000) 57.5%, rgb(255 255 255 / 0.000) 60.0%, rgb(255 255 255 / 0.000) 62.5%, rgb(255 255 255 / 0.000) 65.0%, rgb(255 255 255 / 0.000) 67.5%, rgb(255 255 255 / 0.000) 70.0%, rgb(255 255 255 / 0.000) 72.5%, rgb(255 255 255 / 0.000) 75.0%, rgb(255 255 255 / 0.000) 77.5%, rgb(255 255 255 / 0.000) 80.0%, rgb(255 255 255 / 0.000) 82.5%, rgb(255 255 255 / 0.000) 85.0%, rgb(255 255 255 / 0.000) 87.5%, rgb(255 255 255 / 0.000) 90.0%, rgb(255 255 255 / 0.000) 92.5%, rgb(255 255 255 / 0.000) 95.0%, rgb(255 255 255 / 0.000) 97.5%, rgb(255 255 255 / 0.000) 100.0%);
    --strata-finish-glass: linear-gradient(to bottom, rgb(255 255 255 / 0.360) 0.0%, rgb(255 255 255 / 0.351) 2.5%, rgb(255 255 255 / 0.328) 5.0%, rgb(255 255 255 / 0.292) 7.5%, rgb(255 255 255 / 0.248) 10.0%, rgb(255 255 255 / 0.200) 12.5%, rgb(255 255 255 / 0.150) 15.0%, rgb(255 255 255 / 0.102) 17.5%, rgb(255 255 255 / 0.060) 20.0%, rgb(255 255 255 / 0.027) 22.5%, rgb(255 255 255 / 0.006) 25.0%, rgb(255 255 255 / 0.000) 27.5%, rgb(255 255 255 / 0.000) 30.0%, rgb(255 255 255 / 0.000) 32.5%, rgb(255 255 255 / 0.000) 35.0%, rgb(255 255 255 / 0.000) 37.5%, rgb(255 255 255 / 0.000) 40.0%, rgb(255 255 255 / 0.000) 42.5%, rgb(255 255 255 / 0.000) 45.0%, rgb(255 255 255 / 0.000) 47.5%, rgb(255 255 255 / 0.000) 50.0%, rgb(255 255 255 / 0.000) 52.5%, rgb(255 255 255 / 0.000) 55.0%, rgb(255 255 255 / 0.000) 57.5%, rgb(255 255 255 / 0.000) 60.0%, rgb(255 255 255 / 0.000) 62.5%, rgb(255 255 255 / 0.000) 65.0%, rgb(255 255 255 / 0.000) 67.5%, rgb(255 255 255 / 0.000) 70.0%, rgb(255 255 255 / 0.000) 72.5%, rgb(255 255 255 / 0.000) 75.0%, rgb(255 255 255 / 0.000) 77.5%, rgb(255 255 255 / 0.000) 80.0%, rgb(255 255 255 / 0.000) 82.5%, rgb(255 255 255 / 0.000) 85.0%, rgb(255 255 255 / 0.000) 87.5%, rgb(255 255 255 / 0.000) 90.0%, rgb(255 255 255 / 0.000) 92.5%, rgb(255 255 255 / 0.000) 95.0%, rgb(255 255 255 / 0.000) 97.5%, rgb(255 255 255 / 0.000) 100.0%);
    --strata-finish-metal: linear-gradient(to bottom, rgb(255 255 255 / 0.400) 0.0%, rgb(255 255 255 / 0.400) 2.5%, rgb(255 255 255 / 0.400) 5.0%, rgb(255 255 255 / 0.387) 7.5%, rgb(255 255 255 / 0.352) 10.0%, rgb(255 255 255 / 0.300) 12.5%, rgb(255 255 255 / 0.239) 15.0%, rgb(255 255 255 / 0.174) 17.5%, rgb(255 255 255 / 0.112) 20.0%, rgb(255 255 255 / 0.058) 22.5%, rgb(255 255 255 / 0.019) 25.0%, rgb(255 255 255 / 0.001) 27.5%, rgb(255 255 255 / 0.000) 30.0%, rgb(255 255 255 / 0.000) 32.5%, rgb(255 255 255 / 0.000) 35.0%, rgb(255 255 255 / 0.000) 37.5%, rgb(255 255 255 / 0.000) 40.0%, rgb(255 255 255 / 0.000) 42.5%, rgb(255 255 255 / 0.000) 45.0%, rgb(255 255 255 / 0.000) 47.5%, rgb(255 255 255 / 0.000) 50.0%, rgb(255 255 255 / 0.000) 52.5%, rgb(255 255 255 / 0.000) 55.0%, rgb(255 255 255 / 0.000) 57.5%, rgb(255 255 255 / 0.000) 60.0%, rgb(255 255 255 / 0.000) 62.5%, rgb(255 255 255 / 0.000) 65.0%, rgb(255 255 255 / 0.000) 67.5%, rgb(255 255 255 / 0.000) 70.0%, rgb(0 0 0 / 0.000) 72.5%, rgb(0 0 0 / 0.014) 75.0%, rgb(0 0 0 / 0.045) 77.5%, rgb(0 0 0 / 0.087) 80.0%, rgb(0 0 0 / 0.137) 82.5%, rgb(0 0 0 / 0.191) 85.0%, rgb(0 0 0 / 0.244) 87.5%, rgb(0 0 0 / 0.291) 90.0%, rgb(0 0 0 / 0.329) 92.5%, rgb(0 0 0 / 0.353) 95.0%, rgb(0 0 0 / 0.360) 97.5%, rgb(0 0 0 / 0.360) 100.0%);
    --strata-finish-emissive: none;
    --strata-finish-role-panel: var(--strata-finish-matte);
    --strata-finish-role-control: var(--strata-finish-matte);
    --strata-finish-role-button-primary: var(--strata-finish-matte);
    --strata-finish-role-field: var(--strata-finish-matte);
    --strata-finish-role-knob: var(--strata-finish-satin);
    --strata-finish-role-rail: var(--strata-finish-metal);
    --strata-finish-role-track-on: var(--strata-finish-emissive);
    --strata-finish-role-indicator: var(--strata-finish-emissive);
    --strata-finish-role-overlay: var(--strata-finish-matte);
    --strata-control-height: 34px;
    --strata-panel-padding: 18px;
    --strata-gap-control: 12px;
    --strata-gap-group: 20px;
  }
  :root, [data-strata-scope], [data-strata-depth], [data-strata-theme] {
    --strata-depth-t: calc(clamp(-1, 2 * var(--strata-depth) - 1, 1));
    --strata-elevation-ground: 0px;
    --strata-elevation-raised: calc(3px + 1px * min(var(--strata-depth-t), 0) + 2px * max(var(--strata-depth-t), 0));
    --strata-elevation-floating: calc(8px + 3px * min(var(--strata-depth-t), 0) + 4px * max(var(--strata-depth-t), 0));
    --strata-elevation-overlay: calc(16px + 6.4px * min(var(--strata-depth-t), 0) + 9.6px * max(var(--strata-depth-t), 0));
    --strata-elevation-modal: calc(24px + 9.6px * min(var(--strata-depth-t), 0) + 14.4px * max(var(--strata-depth-t), 0));
    --strata-elevation-well: calc(2px + 0.5px * min(var(--strata-depth-t), 0) + 1px * max(var(--strata-depth-t), 0));
    --strata-bevel-width: calc(6px + 2px * min(var(--strata-depth-t), 0) + 3px * max(var(--strata-depth-t), 0));
    --strata-bevel-gain: var(--strata-theme-bevel-gain, calc(0.55 + 0.25 * min(var(--strata-depth-t), 0) + 0.2 * max(var(--strata-depth-t), 0)));
    --strata-shadow-strength: calc(0.24 + 0.1 * min(var(--strata-depth-t), 0) + 0.08 * max(var(--strata-depth-t), 0));
    --strata-object-key-height: calc(8px + 4px * min(var(--strata-depth-t), 0) + 4px * max(var(--strata-depth-t), 0));
    --strata-object-key-travel: calc(6px + 3px * min(var(--strata-depth-t), 0) + 3px * max(var(--strata-depth-t), 0));
    --strata-object-taper: calc(3px + 1px * min(var(--strata-depth-t), 0) + 1px * max(var(--strata-depth-t), 0));
    --strata-material-presets-matte-base-colour: var(--strata-colour-panel);
    --strata-material-presets-matte-base-roughness: calc(0.45 + -0.35 * min(var(--strata-depth-t), 0) + -0.15 * max(var(--strata-depth-t), 0));
    --strata-material-presets-satin-base-colour: var(--strata-colour-panel);
    --strata-material-presets-gloss-base-colour: var(--strata-colour-panel);
    --strata-material-presets-lacquer-base-colour: var(--strata-colour-panel);
    --strata-material-presets-glass-base-colour: var(--strata-colour-panel);
    --strata-material-presets-glass-transmission-tint: var(--strata-colour-panel);
    --strata-material-presets-metal-base-colour: var(--strata-colour-panel);
    --strata-material-presets-emissive-emissive-colour: var(--strata-colour-accent);
    --strata-size-font-small: var(--strata-font-size-small);
    --strata-size-font-medium: var(--strata-font-size-body);
    --strata-size-font-large: var(--strata-font-size-subtitle);
  }
  @supports (x: attr(x type(*))) {
    [data-strata-depth] {
      --strata-depth: attr(data-strata-depth type(<number>), 0.5);
    }
  }
  [data-strata-density="compact"] {
    --strata-control-height: 28px;
    --strata-panel-padding: 12px;
    --strata-gap-control: 8px;
    --strata-gap-group: 16px;
  }
  [data-strata-density="comfortable"] {
    --strata-control-height: 34px;
    --strata-panel-padding: 18px;
    --strata-gap-control: 12px;
    --strata-gap-group: 20px;
  }
  [data-strata-density="spacious"] {
    --strata-control-height: 40px;
    --strata-panel-padding: 24px;
    --strata-gap-control: 16px;
    --strata-gap-group: 24px;
  }
  :root, [data-strata-size="medium"] {
    --strata-fader-travel: var(--strata-size-fader-medium);
    --strata-indicator: var(--strata-size-indicator-medium);
    --strata-switch-width: var(--strata-size-switch-width-medium);
    --strata-control-offset: var(--strata-size-control-medium);
    --strata-control-font: var(--strata-size-font-medium);
    --strata-knob-size: var(--strata-size-knob-medium);
    --strata-push-size: var(--strata-size-push-medium);
    --strata-pad-size: var(--strata-size-pad-medium);
    --strata-keypad-size: var(--strata-size-keypad-medium);
    --strata-rotary-size: var(--strata-size-rotary-medium);
    --strata-lamp-size: var(--strata-size-lamp-medium);
    --strata-status-light-size: var(--strata-size-status-light-medium);
    --strata-meter-size: var(--strata-size-meter-medium);
    --strata-gauge-size: var(--strata-size-gauge-medium);
    --strata-rating-size: var(--strata-size-rating-medium);
    --strata-jog-wheel-size: var(--strata-size-jog-wheel-medium);
    --strata-patch-point-size: var(--strata-size-patch-point-medium);
  }
  [data-strata-size="small"] {
    --strata-fader-travel: var(--strata-size-fader-small);
    --strata-indicator: var(--strata-size-indicator-small);
    --strata-switch-width: var(--strata-size-switch-width-small);
    --strata-control-offset: var(--strata-size-control-small);
    --strata-control-font: var(--strata-size-font-small);
    --strata-knob-size: var(--strata-size-knob-small);
    --strata-push-size: var(--strata-size-push-small);
    --strata-pad-size: var(--strata-size-pad-small);
    --strata-keypad-size: var(--strata-size-keypad-small);
    --strata-rotary-size: var(--strata-size-rotary-small);
    --strata-lamp-size: var(--strata-size-lamp-small);
    --strata-status-light-size: var(--strata-size-status-light-small);
    --strata-meter-size: var(--strata-size-meter-small);
    --strata-gauge-size: var(--strata-size-gauge-small);
    --strata-rating-size: var(--strata-size-rating-small);
    --strata-jog-wheel-size: var(--strata-size-jog-wheel-small);
    --strata-patch-point-size: var(--strata-size-patch-point-small);
  }
  [data-strata-size="large"] {
    --strata-fader-travel: var(--strata-size-fader-large);
    --strata-indicator: var(--strata-size-indicator-large);
    --strata-switch-width: var(--strata-size-switch-width-large);
    --strata-control-offset: var(--strata-size-control-large);
    --strata-control-font: var(--strata-size-font-large);
    --strata-knob-size: var(--strata-size-knob-large);
    --strata-push-size: var(--strata-size-push-large);
    --strata-pad-size: var(--strata-size-pad-large);
    --strata-keypad-size: var(--strata-size-keypad-large);
    --strata-rotary-size: var(--strata-size-rotary-large);
    --strata-lamp-size: var(--strata-size-lamp-large);
    --strata-status-light-size: var(--strata-size-status-light-large);
    --strata-meter-size: var(--strata-size-meter-large);
    --strata-gauge-size: var(--strata-size-gauge-large);
    --strata-rating-size: var(--strata-size-rating-large);
    --strata-jog-wheel-size: var(--strata-size-jog-wheel-large);
    --strata-patch-point-size: var(--strata-size-patch-point-large);
  }
  :root, [data-strata-theme="light"] {
    color-scheme: light;
    --strata-theme-bevel-gain: initial;
    --strata-colour-stage: #ffffff;
    --strata-colour-panel: #e9ebef;
    --strata-colour-field: #ffffff;
    --strata-colour-secondary: #f7f8fa;
    --strata-colour-text: #1c1e24;
    --strata-colour-muted: #5a5e68;
    --strata-colour-accent: #2563eb;
    --strata-colour-success: #15803d;
    --strata-colour-warning: #b45309;
    --strata-colour-danger: #c42b2b;
    --strata-colour-info: #2563eb;
    --strata-colour-track: #cdd1d9;
    --strata-colour-edge: #767c88;
    --strata-colour-knob: #fcfcfd;
    --strata-colour-glow-on: #ff9228;
    --strata-outline-width: 0px;
    --strata-colour-on-accent: #ffffff;
    --strata-colour-accent-text: #245bd3;
    --strata-colour-on-success: #ffffff;
    --strata-colour-success-text: #16723a;
    --strata-colour-on-warning: #ffffff;
    --strata-colour-warning-text: #9f4c0d;
    --strata-colour-on-danger: #ffffff;
    --strata-colour-danger-text: #bd2a2b;
    --strata-colour-on-info: #ffffff;
    --strata-colour-info-text: #245bd3;
  }
  [data-strata-theme="dark"] {
    color-scheme: dark;
    --strata-theme-bevel-gain: initial;
    --strata-colour-stage: #181a1f;
    --strata-colour-panel: #2c3038;
    --strata-colour-field: #1e2128;
    --strata-colour-secondary: #3e434e;
    --strata-colour-text: #e8eaf0;
    --strata-colour-muted: #a8aeba;
    --strata-colour-accent: #6091ff;
    --strata-colour-success: #4ac478;
    --strata-colour-warning: #f5a63c;
    --strata-colour-danger: #ff7878;
    --strata-colour-info: #6091ff;
    --strata-colour-track: #343842;
    --strata-colour-edge: #848b9a;
    --strata-colour-knob: #eceef2;
    --strata-colour-glow-on: #ff9228;
    --strata-outline-width: 0px;
    --strata-colour-on-accent: #101216;
    --strata-colour-accent-text: #94b3f9;
    --strata-colour-on-success: #101216;
    --strata-colour-success-text: #5ac884;
    --strata-colour-on-warning: #101216;
    --strata-colour-warning-text: #f5a63c;
    --strata-colour-on-danger: #101216;
    --strata-colour-danger-text: #f9989a;
    --strata-colour-on-info: #101216;
    --strata-colour-info-text: #94b3f9;
  }
  [data-strata-theme="contrast"] {
    color-scheme: light;
    --strata-theme-bevel-gain: 0;
    --strata-colour-stage: #ffffff;
    --strata-colour-panel: #ffffff;
    --strata-colour-field: #ffffff;
    --strata-colour-secondary: #ffffff;
    --strata-colour-text: #000000;
    --strata-colour-muted: #2e3138;
    --strata-colour-accent: #0040c0;
    --strata-colour-success: #006428;
    --strata-colour-warning: #8a3c00;
    --strata-colour-danger: #a81414;
    --strata-colour-info: #0040c0;
    --strata-colour-track: #ffffff;
    --strata-colour-edge: #000000;
    --strata-colour-knob: #ffffff;
    --strata-colour-glow-on: #ff9228;
    --strata-outline-width: 2px;
    --strata-colour-on-accent: #ffffff;
    --strata-colour-accent-text: #0040c0;
    --strata-colour-on-success: #ffffff;
    --strata-colour-success-text: #006428;
    --strata-colour-on-warning: #ffffff;
    --strata-colour-warning-text: #8a3c00;
    --strata-colour-on-danger: #ffffff;
    --strata-colour-danger-text: #a81414;
    --strata-colour-on-info: #ffffff;
    --strata-colour-info-text: #0040c0;
  }
  [data-strata-theme="contrast-dark"] {
    color-scheme: dark;
    --strata-theme-bevel-gain: 0;
    --strata-colour-stage: #000000;
    --strata-colour-panel: #000000;
    --strata-colour-field: #000000;
    --strata-colour-secondary: #000000;
    --strata-colour-text: #ffffff;
    --strata-colour-muted: #d7dae0;
    --strata-colour-accent: #8cb4ff;
    --strata-colour-success: #6edc96;
    --strata-colour-warning: #ffbe5a;
    --strata-colour-danger: #ff9696;
    --strata-colour-info: #8cb4ff;
    --strata-colour-track: #000000;
    --strata-colour-edge: #ffffff;
    --strata-colour-knob: #000000;
    --strata-colour-glow-on: #ff9228;
    --strata-outline-width: 2px;
    --strata-colour-on-accent: #101216;
    --strata-colour-accent-text: #8cb4ff;
    --strata-colour-on-success: #101216;
    --strata-colour-success-text: #6edc96;
    --strata-colour-on-warning: #101216;
    --strata-colour-warning-text: #ffbe5a;
    --strata-colour-on-danger: #101216;
    --strata-colour-danger-text: #ff9696;
    --strata-colour-on-info: #101216;
    --strata-colour-info-text: #8cb4ff;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-strata-theme]) {
      color-scheme: dark;
      --strata-theme-bevel-gain: initial;
      --strata-colour-stage: #181a1f;
      --strata-colour-panel: #2c3038;
      --strata-colour-field: #1e2128;
      --strata-colour-secondary: #3e434e;
      --strata-colour-text: #e8eaf0;
      --strata-colour-muted: #a8aeba;
      --strata-colour-accent: #6091ff;
      --strata-colour-success: #4ac478;
      --strata-colour-warning: #f5a63c;
      --strata-colour-danger: #ff7878;
      --strata-colour-info: #6091ff;
      --strata-colour-track: #343842;
      --strata-colour-edge: #848b9a;
      --strata-colour-knob: #eceef2;
      --strata-colour-glow-on: #ff9228;
      --strata-outline-width: 0px;
      --strata-colour-on-accent: #101216;
      --strata-colour-accent-text: #94b3f9;
      --strata-colour-on-success: #101216;
      --strata-colour-success-text: #5ac884;
      --strata-colour-on-warning: #101216;
      --strata-colour-warning-text: #f5a63c;
      --strata-colour-on-danger: #101216;
      --strata-colour-danger-text: #f9989a;
      --strata-colour-on-info: #101216;
      --strata-colour-info-text: #94b3f9;
    }
  }
  @media (prefers-contrast: more) {
    :root:not([data-strata-theme]), [data-strata-theme="light"] {
      color-scheme: light;
      --strata-theme-bevel-gain: 0;
      --strata-colour-stage: #ffffff;
      --strata-colour-panel: #ffffff;
      --strata-colour-field: #ffffff;
      --strata-colour-secondary: #ffffff;
      --strata-colour-text: #000000;
      --strata-colour-muted: #2e3138;
      --strata-colour-accent: #0040c0;
      --strata-colour-success: #006428;
      --strata-colour-warning: #8a3c00;
      --strata-colour-danger: #a81414;
      --strata-colour-info: #0040c0;
      --strata-colour-track: #ffffff;
      --strata-colour-edge: #000000;
      --strata-colour-knob: #ffffff;
      --strata-colour-glow-on: #ff9228;
      --strata-outline-width: 2px;
      --strata-colour-on-accent: #ffffff;
      --strata-colour-accent-text: #0040c0;
      --strata-colour-on-success: #ffffff;
      --strata-colour-success-text: #006428;
      --strata-colour-on-warning: #ffffff;
      --strata-colour-warning-text: #8a3c00;
      --strata-colour-on-danger: #ffffff;
      --strata-colour-danger-text: #a81414;
      --strata-colour-on-info: #ffffff;
      --strata-colour-info-text: #0040c0;
    }
  }
  @media (prefers-contrast: more) {
    [data-strata-theme="dark"] {
      color-scheme: dark;
      --strata-theme-bevel-gain: 0;
      --strata-colour-stage: #000000;
      --strata-colour-panel: #000000;
      --strata-colour-field: #000000;
      --strata-colour-secondary: #000000;
      --strata-colour-text: #ffffff;
      --strata-colour-muted: #d7dae0;
      --strata-colour-accent: #8cb4ff;
      --strata-colour-success: #6edc96;
      --strata-colour-warning: #ffbe5a;
      --strata-colour-danger: #ff9696;
      --strata-colour-info: #8cb4ff;
      --strata-colour-track: #000000;
      --strata-colour-edge: #ffffff;
      --strata-colour-knob: #000000;
      --strata-colour-glow-on: #ff9228;
      --strata-outline-width: 2px;
      --strata-colour-on-accent: #101216;
      --strata-colour-accent-text: #8cb4ff;
      --strata-colour-on-success: #101216;
      --strata-colour-success-text: #6edc96;
      --strata-colour-on-warning: #101216;
      --strata-colour-warning-text: #ffbe5a;
      --strata-colour-on-danger: #101216;
      --strata-colour-danger-text: #ff9696;
      --strata-colour-on-info: #101216;
      --strata-colour-info-text: #8cb4ff;
    }
  }
  @media (prefers-contrast: more) and (prefers-color-scheme: dark) {
    :root:not([data-strata-theme]) {
      color-scheme: dark;
      --strata-theme-bevel-gain: 0;
      --strata-colour-stage: #000000;
      --strata-colour-panel: #000000;
      --strata-colour-field: #000000;
      --strata-colour-secondary: #000000;
      --strata-colour-text: #ffffff;
      --strata-colour-muted: #d7dae0;
      --strata-colour-accent: #8cb4ff;
      --strata-colour-success: #6edc96;
      --strata-colour-warning: #ffbe5a;
      --strata-colour-danger: #ff9696;
      --strata-colour-info: #8cb4ff;
      --strata-colour-track: #000000;
      --strata-colour-edge: #ffffff;
      --strata-colour-knob: #000000;
      --strata-colour-glow-on: #ff9228;
      --strata-outline-width: 2px;
      --strata-colour-on-accent: #101216;
      --strata-colour-accent-text: #8cb4ff;
      --strata-colour-on-success: #101216;
      --strata-colour-success-text: #6edc96;
      --strata-colour-on-warning: #101216;
      --strata-colour-warning-text: #ffbe5a;
      --strata-colour-on-danger: #101216;
      --strata-colour-danger-text: #ff9696;
      --strata-colour-on-info: #101216;
      --strata-colour-info-text: #8cb4ff;
    }
  }
}

@layer strata.theme {
  /* premium */
  [data-strata-character="premium"], [data-strata-character="premium"] [data-strata-theme] {
    --strata-material-presets-polished-base-colour: var(--strata-colour-panel);
    --strata-material-presets-polished-base-roughness: 0.04;
    --strata-material-presets-polished-base-metallic: 1;
    --strata-material-presets-gunmetal-base-colour: var(--strata-colour-panel);
    --strata-material-presets-gunmetal-base-roughness: 0.36;
    --strata-material-presets-gunmetal-base-metallic: 1;
    --strata-material-presets-gold-base-colour: var(--strata-colour-panel);
    --strata-material-presets-gold-base-roughness: 0.18;
    --strata-material-presets-gold-base-metallic: 1;
    --strata-material-presets-chrome-base-colour: var(--strata-colour-panel);
    --strata-material-presets-chrome-base-roughness: 0.04;
    --strata-material-presets-chrome-base-metallic: 1;
    --strata-material-roles-knob-cap: metal;
    --strata-material-roles-knob-skirt: polished;
    --strata-material-roles-fader-cap: metal;
    --strata-material-roles-lever: metal;
    --strata-material-roles-rocker-plate: metal;
    --strata-material-roles-bezel: polished;
    --strata-material-roles-lens: glass;
    --strata-material-roles-display: glass;
    --strata-material-roles-glow-on: emissive;
    --strata-material-roles-glow-off: glass;
    --strata-instrument-material-matte-base-roughness: 0.45;
    --strata-instrument-material-matte-base-metallic: 0;
    --strata-instrument-material-matte-base-direct: 1;
    --strata-instrument-material-satin-base-roughness: 0.4;
    --strata-instrument-material-satin-base-metallic: 0;
    --strata-instrument-material-satin-base-direct: 1;
    --strata-instrument-material-satin-coat-strength: 0.3;
    --strata-instrument-material-satin-coat-roughness: 0.35;
    --strata-instrument-material-satin-coat-ior: 1.5;
    --strata-instrument-material-gloss-base-roughness: 0.25;
    --strata-instrument-material-gloss-base-metallic: 0;
    --strata-instrument-material-gloss-base-direct: 1;
    --strata-instrument-material-gloss-coat-strength: 0.6;
    --strata-instrument-material-gloss-coat-roughness: 0.12;
    --strata-instrument-material-gloss-coat-ior: 1.5;
    --strata-instrument-material-lacquer-base-colour: #1c1c1e;
    --strata-instrument-material-lacquer-base-roughness: 0.5;
    --strata-instrument-material-lacquer-base-metallic: 0;
    --strata-instrument-material-lacquer-base-direct: 1;
    --strata-instrument-material-lacquer-coat-strength: 1;
    --strata-instrument-material-lacquer-coat-roughness: 0.03;
    --strata-instrument-material-lacquer-coat-ior: 1.5;
    --strata-instrument-material-glass-base-roughness: 0.05;
    --strata-instrument-material-glass-base-metallic: 0;
    --strata-instrument-material-glass-base-direct: 1;
    --strata-instrument-material-glass-glass-ior: 1.5;
    --strata-instrument-material-glass-glass-tint: #d6ede6;
    --strata-instrument-material-glass-glass-absorption: 0.03;
    --strata-instrument-material-glass-glass-reflection: 1.5;
    --strata-instrument-material-glass-dispersion-strength: 0.2;
    --strata-instrument-material-metal-base-colour: #eff0f1;
    --strata-instrument-material-metal-base-roughness: 0.3;
    --strata-instrument-material-metal-base-metallic: 1;
    --strata-instrument-material-metal-base-direct: 1;
    --strata-instrument-material-metal-brush-strength: 0.9;
    --strata-instrument-material-metal-brush-direction: circular;
    --strata-instrument-material-metal-grain-kind: hairline;
    --strata-instrument-material-metal-grain-strength: 0.15;
    --strata-instrument-material-polished-base-colour: #fafafb;
    --strata-instrument-material-polished-base-roughness: 0.04;
    --strata-instrument-material-polished-base-metallic: 1;
    --strata-instrument-material-polished-base-direct: 1;
    --strata-instrument-material-gunmetal-base-colour: #686b72;
    --strata-instrument-material-gunmetal-base-roughness: 0.36;
    --strata-instrument-material-gunmetal-base-metallic: 1;
    --strata-instrument-material-gunmetal-base-direct: 1;
    --strata-instrument-material-gunmetal-brush-strength: 0.9;
    --strata-instrument-material-gunmetal-brush-direction: circular;
    --strata-instrument-material-gunmetal-grain-kind: hairline;
    --strata-instrument-material-gunmetal-grain-strength: 0.15;
    --strata-instrument-material-gold-base-colour: #ffdb93;
    --strata-instrument-material-gold-base-roughness: 0.18;
    --strata-instrument-material-gold-base-metallic: 1;
    --strata-instrument-material-gold-base-direct: 1;
    --strata-instrument-material-chrome-base-colour: #fafafc;
    --strata-instrument-material-chrome-base-roughness: 0.04;
    --strata-instrument-material-chrome-base-metallic: 1;
    --strata-instrument-material-chrome-base-direct: 1;
    --strata-instrument-material-emissive-base-roughness: 1;
    --strata-instrument-material-emissive-base-metallic: 0;
    --strata-instrument-material-emissive-base-direct: 1;
    --strata-instrument-material-emissive-emissive-strength: 1;
    --strata-instrument-material-emissive-emissive-colour: var(--strata-colour-glow-on);
    --strata-form-switch: slide;
    --strata-instrument-material-anodised-base-colour: initial;
    --strata-instrument-material-anodised-base-roughness: initial;
    --strata-instrument-material-anodised-base-metallic: initial;
    --strata-instrument-material-anodised-base-direct: initial;
    --strata-instrument-material-anodised-brush-strength: initial;
    --strata-instrument-material-anodised-brush-direction: initial;
    --strata-instrument-material-anodised-grain-kind: initial;
    --strata-instrument-material-anodised-grain-strength: initial;
    --strata-instrument-ink-cap: initial;
    --strata-material-presets-anodised-base-colour: initial;
    --strata-material-presets-anodised-base-roughness: initial;
    --strata-material-presets-anodised-base-metallic: initial;
    --strata-pointer-light-colour: #fff2e0;
    --strata-emitter-lamp-radius: 6;
    --strata-emitter-lamp-strength: 3200;
    --strata-emitter-led-radius: 6;
    --strata-emitter-led-strength: 520;
    --strata-knob-pointer-width: 2.2px;
    --strata-spring-knob-stiffness: 420;
    --strata-spring-knob-damping: 41;
    --strata-spring-detent-stiffness: 900;
    --strata-spring-detent-damping: 42;
    --strata-spring-fader-stiffness: 420;
    --strata-spring-fader-damping: 41;
    --strata-spring-slide-stiffness: 600;
    --strata-spring-slide-damping: 49;
    --strata-spring-rocker-stiffness: 1200;
    --strata-spring-rocker-damping: 58;
    --strata-spring-bat-stiffness: 1400;
    --strata-spring-bat-damping: 45;
    --strata-spring-wall-stiffness: 1200;
    --strata-spring-wall-damping: 58;
    --strata-spring-button-stiffness: 1600;
    --strata-spring-button-damping: 80;
    --strata-spring-meter-stiffness: 360;
    --strata-spring-meter-damping: 28;
    --strata-spring-gauge-stiffness: 160;
    --strata-spring-gauge-damping: 20;
    --strata-feedback-click-pitch: initial;
    --strata-feedback-click-decay: initial;
    --strata-feedback-click-noise: initial;
    --strata-feedback-tick-pitch: initial;
    --strata-feedback-tick-decay: initial;
    --strata-feedback-tick-noise: initial;
    --strata-feedback-thunk-pitch: initial;
    --strata-feedback-thunk-decay: initial;
    --strata-feedback-thunk-noise: initial;
    --strata-feedback-snap-pitch: initial;
    --strata-feedback-snap-decay: initial;
    --strata-feedback-snap-noise: initial;
    --strata-instrument-material-champagne-base-colour: initial;
    --strata-instrument-material-champagne-base-roughness: initial;
    --strata-instrument-material-champagne-base-metallic: initial;
    --strata-instrument-material-champagne-base-direct: initial;
    --strata-instrument-material-champagne-brush-strength: initial;
    --strata-instrument-material-champagne-brush-direction: initial;
    --strata-instrument-material-champagne-grain-kind: initial;
    --strata-instrument-material-champagne-grain-strength: initial;
    --strata-instrument-material-walnut-base-colour: initial;
    --strata-instrument-material-walnut-base-roughness: initial;
    --strata-instrument-material-walnut-base-metallic: initial;
    --strata-instrument-material-walnut-base-direct: initial;
    --strata-instrument-material-walnut-coat-strength: initial;
    --strata-instrument-material-walnut-coat-roughness: initial;
    --strata-instrument-material-walnut-coat-ior: initial;
    --strata-instrument-material-walnut-brush-strength: initial;
    --strata-instrument-material-walnut-brush-direction: initial;
    --strata-material-presets-champagne-base-colour: initial;
    --strata-material-presets-champagne-base-roughness: initial;
    --strata-material-presets-champagne-base-metallic: initial;
    --strata-material-presets-walnut-base-colour: initial;
    --strata-material-presets-walnut-base-roughness: initial;
    --strata-material-presets-walnut-base-metallic: initial;
    --strata-material-presets-walnut-coat-strength: initial;
    --strata-material-presets-walnut-coat-roughness: initial;
    --strata-instrument-material-rubber-sky-base-colour: initial;
    --strata-instrument-material-rubber-sky-base-roughness: initial;
    --strata-instrument-material-rubber-sky-base-metallic: initial;
    --strata-instrument-material-rubber-sky-base-direct: initial;
    --strata-instrument-material-rubber-coral-base-colour: initial;
    --strata-instrument-material-rubber-coral-base-roughness: initial;
    --strata-instrument-material-rubber-coral-base-metallic: initial;
    --strata-instrument-material-rubber-coral-base-direct: initial;
    --strata-instrument-material-candy-yellow-base-colour: initial;
    --strata-instrument-material-candy-yellow-base-roughness: initial;
    --strata-instrument-material-candy-yellow-base-metallic: initial;
    --strata-instrument-material-candy-yellow-base-direct: initial;
    --strata-instrument-material-candy-yellow-coat-strength: initial;
    --strata-instrument-material-candy-yellow-coat-roughness: initial;
    --strata-instrument-material-candy-yellow-coat-ior: initial;
    --strata-instrument-material-candy-lime-base-colour: initial;
    --strata-instrument-material-candy-lime-base-roughness: initial;
    --strata-instrument-material-candy-lime-base-metallic: initial;
    --strata-instrument-material-candy-lime-base-direct: initial;
    --strata-instrument-material-candy-lime-coat-strength: initial;
    --strata-instrument-material-candy-lime-coat-roughness: initial;
    --strata-instrument-material-candy-lime-coat-ior: initial;
    --strata-instrument-material-candy-pink-base-colour: initial;
    --strata-instrument-material-candy-pink-base-roughness: initial;
    --strata-instrument-material-candy-pink-base-metallic: initial;
    --strata-instrument-material-candy-pink-base-direct: initial;
    --strata-instrument-material-candy-pink-coat-strength: initial;
    --strata-instrument-material-candy-pink-coat-roughness: initial;
    --strata-instrument-material-candy-pink-coat-ior: initial;
    --strata-instrument-material-candy-cream-base-colour: initial;
    --strata-instrument-material-candy-cream-base-roughness: initial;
    --strata-instrument-material-candy-cream-base-metallic: initial;
    --strata-instrument-material-candy-cream-base-direct: initial;
    --strata-instrument-material-candy-cream-coat-strength: initial;
    --strata-instrument-material-candy-cream-coat-roughness: initial;
    --strata-instrument-material-candy-cream-coat-ior: initial;
    --strata-instrument-material-candy-mint-base-colour: initial;
    --strata-instrument-material-candy-mint-base-roughness: initial;
    --strata-instrument-material-candy-mint-base-metallic: initial;
    --strata-instrument-material-candy-mint-base-direct: initial;
    --strata-instrument-material-candy-mint-coat-strength: initial;
    --strata-instrument-material-candy-mint-coat-roughness: initial;
    --strata-instrument-material-candy-mint-coat-ior: initial;
    --strata-instrument-material-candy-grape-base-colour: initial;
    --strata-instrument-material-candy-grape-base-roughness: initial;
    --strata-instrument-material-candy-grape-base-metallic: initial;
    --strata-instrument-material-candy-grape-base-direct: initial;
    --strata-instrument-material-candy-grape-coat-strength: initial;
    --strata-instrument-material-candy-grape-coat-roughness: initial;
    --strata-instrument-material-candy-grape-coat-ior: initial;
    --strata-material-presets-rubber-sky-base-colour: initial;
    --strata-material-presets-rubber-sky-base-roughness: initial;
    --strata-material-presets-rubber-sky-base-metallic: initial;
    --strata-material-presets-rubber-coral-base-colour: initial;
    --strata-material-presets-rubber-coral-base-roughness: initial;
    --strata-material-presets-rubber-coral-base-metallic: initial;
    --strata-material-presets-candy-yellow-base-colour: initial;
    --strata-material-presets-candy-yellow-base-roughness: initial;
    --strata-material-presets-candy-yellow-base-metallic: initial;
    --strata-material-presets-candy-yellow-coat-strength: initial;
    --strata-material-presets-candy-yellow-coat-roughness: initial;
    --strata-material-presets-candy-lime-base-colour: initial;
    --strata-material-presets-candy-lime-base-roughness: initial;
    --strata-material-presets-candy-lime-base-metallic: initial;
    --strata-material-presets-candy-lime-coat-strength: initial;
    --strata-material-presets-candy-lime-coat-roughness: initial;
    --strata-material-presets-candy-pink-base-colour: initial;
    --strata-material-presets-candy-pink-base-roughness: initial;
    --strata-material-presets-candy-pink-base-metallic: initial;
    --strata-material-presets-candy-pink-coat-strength: initial;
    --strata-material-presets-candy-pink-coat-roughness: initial;
    --strata-material-presets-candy-cream-base-colour: initial;
    --strata-material-presets-candy-cream-base-roughness: initial;
    --strata-material-presets-candy-cream-base-metallic: initial;
    --strata-material-presets-candy-cream-coat-strength: initial;
    --strata-material-presets-candy-cream-coat-roughness: initial;
    --strata-material-presets-candy-mint-base-colour: initial;
    --strata-material-presets-candy-mint-base-roughness: initial;
    --strata-material-presets-candy-mint-base-metallic: initial;
    --strata-material-presets-candy-mint-coat-strength: initial;
    --strata-material-presets-candy-mint-coat-roughness: initial;
    --strata-material-presets-candy-grape-base-colour: initial;
    --strata-material-presets-candy-grape-base-roughness: initial;
    --strata-material-presets-candy-grape-base-metallic: initial;
    --strata-material-presets-candy-grape-coat-strength: initial;
    --strata-material-presets-candy-grape-coat-roughness: initial;
    --strata-emitter-push-button-strength: 2400;
    --strata-emitter-segment-strength: initial;
    --strata-spring-patch-stiffness: 1100;
    --strata-spring-patch-damping: 60;
  }
  :root[data-strata-character="premium"] {
    --strata-environment-intensity: initial;
    --strata-studio-key: 12;
    --strata-studio-key-radius: 0.24;
    --strata-studio-fill: 1.2;
    --strata-studio-front: 0.12;
    --strata-studio-strip: 2.5;
    --strata-studio-floor: 0.03;
    --strata-studio-ceiling: 0.25;
  }
  [data-strata-character="premium"] {
    --strata-material-roles-plate: metal;
    --strata-colour-glow-on: #ff9228;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-strata-theme])[data-strata-character="premium"], :root:not([data-strata-theme]) [data-strata-character="premium"] {
      --strata-material-roles-plate: gunmetal;
      --strata-colour-glow-on: #ff9228;
    }
  }
  [data-strata-character="premium"][data-strata-theme="light"], [data-strata-character="premium"] [data-strata-theme="light"], [data-strata-theme="light"] [data-strata-character="premium"] {
    --strata-material-roles-plate: metal;
    --strata-colour-glow-on: #ff9228;
  }
  [data-strata-character="premium"][data-strata-theme="dark"], [data-strata-character="premium"] [data-strata-theme="dark"], [data-strata-theme="dark"] [data-strata-character="premium"] {
    --strata-material-roles-plate: gunmetal;
    --strata-colour-glow-on: #ff9228;
  }
  [data-strata-character="premium"][data-strata-theme="contrast"], [data-strata-character="premium"] [data-strata-theme="contrast"], [data-strata-theme="contrast"] [data-strata-character="premium"] {
    --strata-material-roles-plate: metal;
    --strata-colour-glow-on: #ff9228;
  }
  [data-strata-character="premium"][data-strata-theme="contrast-dark"], [data-strata-character="premium"] [data-strata-theme="contrast-dark"], [data-strata-theme="contrast-dark"] [data-strata-character="premium"] {
    --strata-material-roles-plate: gunmetal;
    --strata-colour-glow-on: #ff9228;
  }
  [data-strata-character="premium"] {
    --strata-finish-polished: linear-gradient(to bottom, rgb(255 255 255 / 0.400) 0.0%, rgb(255 255 255 / 0.400) 2.5%, rgb(255 255 255 / 0.400) 5.0%, rgb(255 255 255 / 0.387) 7.5%, rgb(255 255 255 / 0.352) 10.0%, rgb(255 255 255 / 0.300) 12.5%, rgb(255 255 255 / 0.239) 15.0%, rgb(255 255 255 / 0.174) 17.5%, rgb(255 255 255 / 0.112) 20.0%, rgb(255 255 255 / 0.058) 22.5%, rgb(255 255 255 / 0.019) 25.0%, rgb(255 255 255 / 0.001) 27.5%, rgb(255 255 255 / 0.000) 30.0%, rgb(255 255 255 / 0.000) 32.5%, rgb(255 255 255 / 0.000) 35.0%, rgb(255 255 255 / 0.000) 37.5%, rgb(255 255 255 / 0.000) 40.0%, rgb(255 255 255 / 0.000) 42.5%, rgb(255 255 255 / 0.000) 45.0%, rgb(255 255 255 / 0.000) 47.5%, rgb(255 255 255 / 0.000) 50.0%, rgb(255 255 255 / 0.000) 52.5%, rgb(255 255 255 / 0.000) 55.0%, rgb(255 255 255 / 0.000) 57.5%, rgb(255 255 255 / 0.000) 60.0%, rgb(255 255 255 / 0.000) 62.5%, rgb(255 255 255 / 0.000) 65.0%, rgb(255 255 255 / 0.000) 67.5%, rgb(255 255 255 / 0.000) 70.0%, rgb(0 0 0 / 0.000) 72.5%, rgb(0 0 0 / 0.014) 75.0%, rgb(0 0 0 / 0.045) 77.5%, rgb(0 0 0 / 0.087) 80.0%, rgb(0 0 0 / 0.137) 82.5%, rgb(0 0 0 / 0.191) 85.0%, rgb(0 0 0 / 0.244) 87.5%, rgb(0 0 0 / 0.291) 90.0%, rgb(0 0 0 / 0.329) 92.5%, rgb(0 0 0 / 0.353) 95.0%, rgb(0 0 0 / 0.360) 97.5%, rgb(0 0 0 / 0.360) 100.0%);
    --strata-finish-gunmetal: linear-gradient(to bottom, rgb(255 255 255 / 0.400) 0.0%, rgb(255 255 255 / 0.400) 2.5%, rgb(255 255 255 / 0.400) 5.0%, rgb(255 255 255 / 0.387) 7.5%, rgb(255 255 255 / 0.352) 10.0%, rgb(255 255 255 / 0.300) 12.5%, rgb(255 255 255 / 0.239) 15.0%, rgb(255 255 255 / 0.174) 17.5%, rgb(255 255 255 / 0.112) 20.0%, rgb(255 255 255 / 0.058) 22.5%, rgb(255 255 255 / 0.019) 25.0%, rgb(255 255 255 / 0.001) 27.5%, rgb(255 255 255 / 0.000) 30.0%, rgb(255 255 255 / 0.000) 32.5%, rgb(255 255 255 / 0.000) 35.0%, rgb(255 255 255 / 0.000) 37.5%, rgb(255 255 255 / 0.000) 40.0%, rgb(255 255 255 / 0.000) 42.5%, rgb(255 255 255 / 0.000) 45.0%, rgb(255 255 255 / 0.000) 47.5%, rgb(255 255 255 / 0.000) 50.0%, rgb(255 255 255 / 0.000) 52.5%, rgb(255 255 255 / 0.000) 55.0%, rgb(255 255 255 / 0.000) 57.5%, rgb(255 255 255 / 0.000) 60.0%, rgb(255 255 255 / 0.000) 62.5%, rgb(255 255 255 / 0.000) 65.0%, rgb(255 255 255 / 0.000) 67.5%, rgb(255 255 255 / 0.000) 70.0%, rgb(0 0 0 / 0.000) 72.5%, rgb(0 0 0 / 0.014) 75.0%, rgb(0 0 0 / 0.045) 77.5%, rgb(0 0 0 / 0.087) 80.0%, rgb(0 0 0 / 0.137) 82.5%, rgb(0 0 0 / 0.191) 85.0%, rgb(0 0 0 / 0.244) 87.5%, rgb(0 0 0 / 0.291) 90.0%, rgb(0 0 0 / 0.329) 92.5%, rgb(0 0 0 / 0.353) 95.0%, rgb(0 0 0 / 0.360) 97.5%, rgb(0 0 0 / 0.360) 100.0%);
    --strata-finish-gold: linear-gradient(to bottom, rgb(255 255 255 / 0.400) 0.0%, rgb(255 255 255 / 0.400) 2.5%, rgb(255 255 255 / 0.400) 5.0%, rgb(255 255 255 / 0.387) 7.5%, rgb(255 255 255 / 0.352) 10.0%, rgb(255 255 255 / 0.300) 12.5%, rgb(255 255 255 / 0.239) 15.0%, rgb(255 255 255 / 0.174) 17.5%, rgb(255 255 255 / 0.112) 20.0%, rgb(255 255 255 / 0.058) 22.5%, rgb(255 255 255 / 0.019) 25.0%, rgb(255 255 255 / 0.001) 27.5%, rgb(255 255 255 / 0.000) 30.0%, rgb(255 255 255 / 0.000) 32.5%, rgb(255 255 255 / 0.000) 35.0%, rgb(255 255 255 / 0.000) 37.5%, rgb(255 255 255 / 0.000) 40.0%, rgb(255 255 255 / 0.000) 42.5%, rgb(255 255 255 / 0.000) 45.0%, rgb(255 255 255 / 0.000) 47.5%, rgb(255 255 255 / 0.000) 50.0%, rgb(255 255 255 / 0.000) 52.5%, rgb(255 255 255 / 0.000) 55.0%, rgb(255 255 255 / 0.000) 57.5%, rgb(255 255 255 / 0.000) 60.0%, rgb(255 255 255 / 0.000) 62.5%, rgb(255 255 255 / 0.000) 65.0%, rgb(255 255 255 / 0.000) 67.5%, rgb(255 255 255 / 0.000) 70.0%, rgb(0 0 0 / 0.000) 72.5%, rgb(0 0 0 / 0.014) 75.0%, rgb(0 0 0 / 0.045) 77.5%, rgb(0 0 0 / 0.087) 80.0%, rgb(0 0 0 / 0.137) 82.5%, rgb(0 0 0 / 0.191) 85.0%, rgb(0 0 0 / 0.244) 87.5%, rgb(0 0 0 / 0.291) 90.0%, rgb(0 0 0 / 0.329) 92.5%, rgb(0 0 0 / 0.353) 95.0%, rgb(0 0 0 / 0.360) 97.5%, rgb(0 0 0 / 0.360) 100.0%);
    --strata-finish-chrome: linear-gradient(to bottom, rgb(255 255 255 / 0.400) 0.0%, rgb(255 255 255 / 0.400) 2.5%, rgb(255 255 255 / 0.400) 5.0%, rgb(255 255 255 / 0.387) 7.5%, rgb(255 255 255 / 0.352) 10.0%, rgb(255 255 255 / 0.300) 12.5%, rgb(255 255 255 / 0.239) 15.0%, rgb(255 255 255 / 0.174) 17.5%, rgb(255 255 255 / 0.112) 20.0%, rgb(255 255 255 / 0.058) 22.5%, rgb(255 255 255 / 0.019) 25.0%, rgb(255 255 255 / 0.001) 27.5%, rgb(255 255 255 / 0.000) 30.0%, rgb(255 255 255 / 0.000) 32.5%, rgb(255 255 255 / 0.000) 35.0%, rgb(255 255 255 / 0.000) 37.5%, rgb(255 255 255 / 0.000) 40.0%, rgb(255 255 255 / 0.000) 42.5%, rgb(255 255 255 / 0.000) 45.0%, rgb(255 255 255 / 0.000) 47.5%, rgb(255 255 255 / 0.000) 50.0%, rgb(255 255 255 / 0.000) 52.5%, rgb(255 255 255 / 0.000) 55.0%, rgb(255 255 255 / 0.000) 57.5%, rgb(255 255 255 / 0.000) 60.0%, rgb(255 255 255 / 0.000) 62.5%, rgb(255 255 255 / 0.000) 65.0%, rgb(255 255 255 / 0.000) 67.5%, rgb(255 255 255 / 0.000) 70.0%, rgb(0 0 0 / 0.000) 72.5%, rgb(0 0 0 / 0.014) 75.0%, rgb(0 0 0 / 0.045) 77.5%, rgb(0 0 0 / 0.087) 80.0%, rgb(0 0 0 / 0.137) 82.5%, rgb(0 0 0 / 0.191) 85.0%, rgb(0 0 0 / 0.244) 87.5%, rgb(0 0 0 / 0.291) 90.0%, rgb(0 0 0 / 0.329) 92.5%, rgb(0 0 0 / 0.353) 95.0%, rgb(0 0 0 / 0.360) 97.5%, rgb(0 0 0 / 0.360) 100.0%);
    --strata-finish-role-knob-cap: var(--strata-finish-metal);
    --strata-finish-role-knob-skirt: var(--strata-finish-polished);
    --strata-finish-role-fader-cap: var(--strata-finish-metal);
    --strata-finish-role-lever: var(--strata-finish-metal);
    --strata-finish-role-rocker-plate: var(--strata-finish-metal);
    --strata-finish-role-plate: var(--strata-finish-metal);
    --strata-finish-role-bezel: var(--strata-finish-polished);
    --strata-finish-role-lens: var(--strata-finish-glass);
    --strata-finish-role-display: var(--strata-finish-glass);
    --strata-finish-role-glow-on: var(--strata-finish-emissive);
    --strata-finish-role-glow-off: var(--strata-finish-glass);
  }
  /* studio */
  [data-strata-character="studio"], [data-strata-character="studio"] [data-strata-theme] {
    --strata-material-presets-polished-base-colour: var(--strata-colour-panel);
    --strata-material-presets-polished-base-roughness: 0.04;
    --strata-material-presets-polished-base-metallic: 1;
    --strata-material-presets-gunmetal-base-colour: var(--strata-colour-panel);
    --strata-material-presets-gunmetal-base-roughness: 0.42;
    --strata-material-presets-gunmetal-base-metallic: 1;
    --strata-material-presets-gold-base-colour: var(--strata-colour-panel);
    --strata-material-presets-gold-base-roughness: 0.18;
    --strata-material-presets-gold-base-metallic: 1;
    --strata-material-presets-chrome-base-colour: var(--strata-colour-panel);
    --strata-material-presets-chrome-base-roughness: 0.04;
    --strata-material-presets-chrome-base-metallic: 1;
    --strata-material-roles-knob-cap: metal;
    --strata-material-roles-knob-skirt: anodised;
    --strata-material-roles-fader-cap: metal;
    --strata-material-roles-lever: metal;
    --strata-material-roles-rocker-plate: anodised;
    --strata-material-roles-bezel: gunmetal;
    --strata-material-roles-lens: glass;
    --strata-material-roles-display: glass;
    --strata-material-roles-glow-on: emissive;
    --strata-material-roles-glow-off: glass;
    --strata-instrument-material-matte-base-roughness: 0.45;
    --strata-instrument-material-matte-base-metallic: 0;
    --strata-instrument-material-matte-base-direct: 1;
    --strata-instrument-material-satin-base-roughness: 0.4;
    --strata-instrument-material-satin-base-metallic: 0;
    --strata-instrument-material-satin-base-direct: 1;
    --strata-instrument-material-satin-coat-strength: 0.3;
    --strata-instrument-material-satin-coat-roughness: 0.35;
    --strata-instrument-material-satin-coat-ior: 1.5;
    --strata-instrument-material-gloss-base-roughness: 0.25;
    --strata-instrument-material-gloss-base-metallic: 0;
    --strata-instrument-material-gloss-base-direct: 1;
    --strata-instrument-material-gloss-coat-strength: 0.6;
    --strata-instrument-material-gloss-coat-roughness: 0.12;
    --strata-instrument-material-gloss-coat-ior: 1.5;
    --strata-instrument-material-lacquer-base-colour: #1c1c1e;
    --strata-instrument-material-lacquer-base-roughness: 0.5;
    --strata-instrument-material-lacquer-base-metallic: 0;
    --strata-instrument-material-lacquer-base-direct: 1;
    --strata-instrument-material-lacquer-coat-strength: 1;
    --strata-instrument-material-lacquer-coat-roughness: 0.03;
    --strata-instrument-material-lacquer-coat-ior: 1.5;
    --strata-instrument-material-glass-base-roughness: 0.05;
    --strata-instrument-material-glass-base-metallic: 0;
    --strata-instrument-material-glass-base-direct: 1;
    --strata-instrument-material-glass-glass-ior: 1.5;
    --strata-instrument-material-glass-glass-tint: #c4cacf;
    --strata-instrument-material-glass-glass-absorption: 0.07;
    --strata-instrument-material-glass-glass-reflection: 1.5;
    --strata-instrument-material-glass-dispersion-strength: 0.1;
    --strata-instrument-material-metal-base-colour: #d8dadd;
    --strata-instrument-material-metal-base-roughness: 0.34;
    --strata-instrument-material-metal-base-metallic: 1;
    --strata-instrument-material-metal-base-direct: 1;
    --strata-instrument-material-metal-brush-strength: 1;
    --strata-instrument-material-metal-brush-direction: circular;
    --strata-instrument-material-metal-grain-kind: hairline;
    --strata-instrument-material-metal-grain-strength: 0.3;
    --strata-instrument-material-polished-base-colour: #fafafb;
    --strata-instrument-material-polished-base-roughness: 0.04;
    --strata-instrument-material-polished-base-metallic: 1;
    --strata-instrument-material-polished-base-direct: 1;
    --strata-instrument-material-gunmetal-base-colour: #50535a;
    --strata-instrument-material-gunmetal-base-roughness: 0.42;
    --strata-instrument-material-gunmetal-base-metallic: 1;
    --strata-instrument-material-gunmetal-base-direct: 1;
    --strata-instrument-material-gunmetal-brush-strength: 1;
    --strata-instrument-material-gunmetal-brush-direction: circular;
    --strata-instrument-material-gunmetal-grain-kind: hairline;
    --strata-instrument-material-gunmetal-grain-strength: 0.2;
    --strata-instrument-material-gold-base-colour: #ffdb93;
    --strata-instrument-material-gold-base-roughness: 0.18;
    --strata-instrument-material-gold-base-metallic: 1;
    --strata-instrument-material-gold-base-direct: 1;
    --strata-instrument-material-chrome-base-colour: #fafafc;
    --strata-instrument-material-chrome-base-roughness: 0.04;
    --strata-instrument-material-chrome-base-metallic: 1;
    --strata-instrument-material-chrome-base-direct: 1;
    --strata-instrument-material-emissive-base-roughness: 1;
    --strata-instrument-material-emissive-base-metallic: 0;
    --strata-instrument-material-emissive-base-direct: 1;
    --strata-instrument-material-emissive-emissive-strength: 1;
    --strata-instrument-material-emissive-emissive-colour: var(--strata-colour-glow-on);
    --strata-form-switch: rocker;
    --strata-instrument-material-anodised-base-colour: #2a2c31;
    --strata-instrument-material-anodised-base-roughness: 0.5;
    --strata-instrument-material-anodised-base-metallic: 0.85;
    --strata-instrument-material-anodised-base-direct: 1;
    --strata-instrument-material-anodised-brush-strength: 0.6;
    --strata-instrument-material-anodised-brush-direction: circular;
    --strata-instrument-material-anodised-grain-kind: hairline;
    --strata-instrument-material-anodised-grain-strength: 0.12;
    --strata-instrument-ink-cap: #0e0f11;
    --strata-material-presets-anodised-base-colour: #2a2c31;
    --strata-material-presets-anodised-base-roughness: 0.5;
    --strata-material-presets-anodised-base-metallic: 0.85;
    --strata-pointer-light-colour: #ffdfb8;
    --strata-emitter-lamp-radius: 5;
    --strata-emitter-lamp-strength: 3000;
    --strata-emitter-led-radius: 5;
    --strata-emitter-led-strength: 640;
    --strata-knob-pointer-width: 1.6px;
    --strata-spring-knob-stiffness: 560;
    --strata-spring-knob-damping: 47;
    --strata-spring-detent-stiffness: 1400;
    --strata-spring-detent-damping: 56;
    --strata-spring-fader-stiffness: 560;
    --strata-spring-fader-damping: 47;
    --strata-spring-slide-stiffness: 800;
    --strata-spring-slide-damping: 57;
    --strata-spring-rocker-stiffness: 1600;
    --strata-spring-rocker-damping: 68;
    --strata-spring-bat-stiffness: 1800;
    --strata-spring-bat-damping: 55;
    --strata-spring-wall-stiffness: 1600;
    --strata-spring-wall-damping: 68;
    --strata-spring-button-stiffness: 2000;
    --strata-spring-button-damping: 89;
    --strata-spring-meter-stiffness: 480;
    --strata-spring-meter-damping: 38;
    --strata-spring-gauge-stiffness: 220;
    --strata-spring-gauge-damping: 28;
    --strata-feedback-click-pitch: 2800;
    --strata-feedback-click-decay: 3;
    --strata-feedback-click-noise: 0.5;
    --strata-feedback-tick-pitch: 3600;
    --strata-feedback-tick-decay: 1.6;
    --strata-feedback-tick-noise: 0.2;
    --strata-feedback-thunk-pitch: 120;
    --strata-feedback-thunk-decay: 12;
    --strata-feedback-thunk-noise: 0.35;
    --strata-feedback-snap-pitch: 2000;
    --strata-feedback-snap-decay: 4.5;
    --strata-feedback-snap-noise: 0.8;
    --strata-instrument-material-champagne-base-colour: initial;
    --strata-instrument-material-champagne-base-roughness: initial;
    --strata-instrument-material-champagne-base-metallic: initial;
    --strata-instrument-material-champagne-base-direct: initial;
    --strata-instrument-material-champagne-brush-strength: initial;
    --strata-instrument-material-champagne-brush-direction: initial;
    --strata-instrument-material-champagne-grain-kind: initial;
    --strata-instrument-material-champagne-grain-strength: initial;
    --strata-instrument-material-walnut-base-colour: initial;
    --strata-instrument-material-walnut-base-roughness: initial;
    --strata-instrument-material-walnut-base-metallic: initial;
    --strata-instrument-material-walnut-base-direct: initial;
    --strata-instrument-material-walnut-coat-strength: initial;
    --strata-instrument-material-walnut-coat-roughness: initial;
    --strata-instrument-material-walnut-coat-ior: initial;
    --strata-instrument-material-walnut-brush-strength: initial;
    --strata-instrument-material-walnut-brush-direction: initial;
    --strata-material-presets-champagne-base-colour: initial;
    --strata-material-presets-champagne-base-roughness: initial;
    --strata-material-presets-champagne-base-metallic: initial;
    --strata-material-presets-walnut-base-colour: initial;
    --strata-material-presets-walnut-base-roughness: initial;
    --strata-material-presets-walnut-base-metallic: initial;
    --strata-material-presets-walnut-coat-strength: initial;
    --strata-material-presets-walnut-coat-roughness: initial;
    --strata-instrument-material-rubber-sky-base-colour: initial;
    --strata-instrument-material-rubber-sky-base-roughness: initial;
    --strata-instrument-material-rubber-sky-base-metallic: initial;
    --strata-instrument-material-rubber-sky-base-direct: initial;
    --strata-instrument-material-rubber-coral-base-colour: initial;
    --strata-instrument-material-rubber-coral-base-roughness: initial;
    --strata-instrument-material-rubber-coral-base-metallic: initial;
    --strata-instrument-material-rubber-coral-base-direct: initial;
    --strata-instrument-material-candy-yellow-base-colour: initial;
    --strata-instrument-material-candy-yellow-base-roughness: initial;
    --strata-instrument-material-candy-yellow-base-metallic: initial;
    --strata-instrument-material-candy-yellow-base-direct: initial;
    --strata-instrument-material-candy-yellow-coat-strength: initial;
    --strata-instrument-material-candy-yellow-coat-roughness: initial;
    --strata-instrument-material-candy-yellow-coat-ior: initial;
    --strata-instrument-material-candy-lime-base-colour: initial;
    --strata-instrument-material-candy-lime-base-roughness: initial;
    --strata-instrument-material-candy-lime-base-metallic: initial;
    --strata-instrument-material-candy-lime-base-direct: initial;
    --strata-instrument-material-candy-lime-coat-strength: initial;
    --strata-instrument-material-candy-lime-coat-roughness: initial;
    --strata-instrument-material-candy-lime-coat-ior: initial;
    --strata-instrument-material-candy-pink-base-colour: initial;
    --strata-instrument-material-candy-pink-base-roughness: initial;
    --strata-instrument-material-candy-pink-base-metallic: initial;
    --strata-instrument-material-candy-pink-base-direct: initial;
    --strata-instrument-material-candy-pink-coat-strength: initial;
    --strata-instrument-material-candy-pink-coat-roughness: initial;
    --strata-instrument-material-candy-pink-coat-ior: initial;
    --strata-instrument-material-candy-cream-base-colour: initial;
    --strata-instrument-material-candy-cream-base-roughness: initial;
    --strata-instrument-material-candy-cream-base-metallic: initial;
    --strata-instrument-material-candy-cream-base-direct: initial;
    --strata-instrument-material-candy-cream-coat-strength: initial;
    --strata-instrument-material-candy-cream-coat-roughness: initial;
    --strata-instrument-material-candy-cream-coat-ior: initial;
    --strata-instrument-material-candy-mint-base-colour: initial;
    --strata-instrument-material-candy-mint-base-roughness: initial;
    --strata-instrument-material-candy-mint-base-metallic: initial;
    --strata-instrument-material-candy-mint-base-direct: initial;
    --strata-instrument-material-candy-mint-coat-strength: initial;
    --strata-instrument-material-candy-mint-coat-roughness: initial;
    --strata-instrument-material-candy-mint-coat-ior: initial;
    --strata-instrument-material-candy-grape-base-colour: initial;
    --strata-instrument-material-candy-grape-base-roughness: initial;
    --strata-instrument-material-candy-grape-base-metallic: initial;
    --strata-instrument-material-candy-grape-base-direct: initial;
    --strata-instrument-material-candy-grape-coat-strength: initial;
    --strata-instrument-material-candy-grape-coat-roughness: initial;
    --strata-instrument-material-candy-grape-coat-ior: initial;
    --strata-material-presets-rubber-sky-base-colour: initial;
    --strata-material-presets-rubber-sky-base-roughness: initial;
    --strata-material-presets-rubber-sky-base-metallic: initial;
    --strata-material-presets-rubber-coral-base-colour: initial;
    --strata-material-presets-rubber-coral-base-roughness: initial;
    --strata-material-presets-rubber-coral-base-metallic: initial;
    --strata-material-presets-candy-yellow-base-colour: initial;
    --strata-material-presets-candy-yellow-base-roughness: initial;
    --strata-material-presets-candy-yellow-base-metallic: initial;
    --strata-material-presets-candy-yellow-coat-strength: initial;
    --strata-material-presets-candy-yellow-coat-roughness: initial;
    --strata-material-presets-candy-lime-base-colour: initial;
    --strata-material-presets-candy-lime-base-roughness: initial;
    --strata-material-presets-candy-lime-base-metallic: initial;
    --strata-material-presets-candy-lime-coat-strength: initial;
    --strata-material-presets-candy-lime-coat-roughness: initial;
    --strata-material-presets-candy-pink-base-colour: initial;
    --strata-material-presets-candy-pink-base-roughness: initial;
    --strata-material-presets-candy-pink-base-metallic: initial;
    --strata-material-presets-candy-pink-coat-strength: initial;
    --strata-material-presets-candy-pink-coat-roughness: initial;
    --strata-material-presets-candy-cream-base-colour: initial;
    --strata-material-presets-candy-cream-base-roughness: initial;
    --strata-material-presets-candy-cream-base-metallic: initial;
    --strata-material-presets-candy-cream-coat-strength: initial;
    --strata-material-presets-candy-cream-coat-roughness: initial;
    --strata-material-presets-candy-mint-base-colour: initial;
    --strata-material-presets-candy-mint-base-roughness: initial;
    --strata-material-presets-candy-mint-base-metallic: initial;
    --strata-material-presets-candy-mint-coat-strength: initial;
    --strata-material-presets-candy-mint-coat-roughness: initial;
    --strata-material-presets-candy-grape-base-colour: initial;
    --strata-material-presets-candy-grape-base-roughness: initial;
    --strata-material-presets-candy-grape-base-metallic: initial;
    --strata-material-presets-candy-grape-coat-strength: initial;
    --strata-material-presets-candy-grape-coat-roughness: initial;
    --strata-emitter-push-button-strength: 2400;
    --strata-emitter-segment-strength: initial;
    --strata-spring-patch-stiffness: 1100;
    --strata-spring-patch-damping: 60;
  }
  :root[data-strata-character="studio"] {
    --strata-environment-intensity: 0.85;
    --strata-studio-key: 9;
    --strata-studio-key-radius: 0.18;
    --strata-studio-fill: 0.8;
    --strata-studio-front: 0.09;
    --strata-studio-strip: 1.6;
    --strata-studio-floor: 0.03;
    --strata-studio-ceiling: 0.18;
  }
  [data-strata-character="studio"] {
    --strata-material-roles-plate: anodised;
    --strata-colour-glow-on: #ffb020;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-strata-theme])[data-strata-character="studio"], :root:not([data-strata-theme]) [data-strata-character="studio"] {
      --strata-material-roles-plate: anodised;
      --strata-colour-glow-on: #ffb020;
    }
  }
  [data-strata-character="studio"][data-strata-theme="light"], [data-strata-character="studio"] [data-strata-theme="light"], [data-strata-theme="light"] [data-strata-character="studio"] {
    --strata-material-roles-plate: anodised;
    --strata-colour-glow-on: #ffb020;
  }
  [data-strata-character="studio"][data-strata-theme="dark"], [data-strata-character="studio"] [data-strata-theme="dark"], [data-strata-theme="dark"] [data-strata-character="studio"] {
    --strata-material-roles-plate: anodised;
    --strata-colour-glow-on: #ffb020;
  }
  [data-strata-character="studio"][data-strata-theme="contrast"], [data-strata-character="studio"] [data-strata-theme="contrast"], [data-strata-theme="contrast"] [data-strata-character="studio"] {
    --strata-material-roles-plate: anodised;
    --strata-colour-glow-on: #ffb020;
  }
  [data-strata-character="studio"][data-strata-theme="contrast-dark"], [data-strata-character="studio"] [data-strata-theme="contrast-dark"], [data-strata-theme="contrast-dark"] [data-strata-character="studio"] {
    --strata-material-roles-plate: anodised;
    --strata-colour-glow-on: #ffb020;
  }
  [data-strata-character="studio"] {
    --strata-finish-polished: linear-gradient(to bottom, rgb(255 255 255 / 0.400) 0.0%, rgb(255 255 255 / 0.400) 2.5%, rgb(255 255 255 / 0.400) 5.0%, rgb(255 255 255 / 0.387) 7.5%, rgb(255 255 255 / 0.352) 10.0%, rgb(255 255 255 / 0.300) 12.5%, rgb(255 255 255 / 0.239) 15.0%, rgb(255 255 255 / 0.174) 17.5%, rgb(255 255 255 / 0.112) 20.0%, rgb(255 255 255 / 0.058) 22.5%, rgb(255 255 255 / 0.019) 25.0%, rgb(255 255 255 / 0.001) 27.5%, rgb(255 255 255 / 0.000) 30.0%, rgb(255 255 255 / 0.000) 32.5%, rgb(255 255 255 / 0.000) 35.0%, rgb(255 255 255 / 0.000) 37.5%, rgb(255 255 255 / 0.000) 40.0%, rgb(255 255 255 / 0.000) 42.5%, rgb(255 255 255 / 0.000) 45.0%, rgb(255 255 255 / 0.000) 47.5%, rgb(255 255 255 / 0.000) 50.0%, rgb(255 255 255 / 0.000) 52.5%, rgb(255 255 255 / 0.000) 55.0%, rgb(255 255 255 / 0.000) 57.5%, rgb(255 255 255 / 0.000) 60.0%, rgb(255 255 255 / 0.000) 62.5%, rgb(255 255 255 / 0.000) 65.0%, rgb(255 255 255 / 0.000) 67.5%, rgb(255 255 255 / 0.000) 70.0%, rgb(0 0 0 / 0.000) 72.5%, rgb(0 0 0 / 0.014) 75.0%, rgb(0 0 0 / 0.045) 77.5%, rgb(0 0 0 / 0.087) 80.0%, rgb(0 0 0 / 0.137) 82.5%, rgb(0 0 0 / 0.191) 85.0%, rgb(0 0 0 / 0.244) 87.5%, rgb(0 0 0 / 0.291) 90.0%, rgb(0 0 0 / 0.329) 92.5%, rgb(0 0 0 / 0.353) 95.0%, rgb(0 0 0 / 0.360) 97.5%, rgb(0 0 0 / 0.360) 100.0%);
    --strata-finish-gunmetal: linear-gradient(to bottom, rgb(255 255 255 / 0.400) 0.0%, rgb(255 255 255 / 0.400) 2.5%, rgb(255 255 255 / 0.400) 5.0%, rgb(255 255 255 / 0.387) 7.5%, rgb(255 255 255 / 0.352) 10.0%, rgb(255 255 255 / 0.300) 12.5%, rgb(255 255 255 / 0.239) 15.0%, rgb(255 255 255 / 0.174) 17.5%, rgb(255 255 255 / 0.112) 20.0%, rgb(255 255 255 / 0.058) 22.5%, rgb(255 255 255 / 0.019) 25.0%, rgb(255 255 255 / 0.001) 27.5%, rgb(255 255 255 / 0.000) 30.0%, rgb(255 255 255 / 0.000) 32.5%, rgb(255 255 255 / 0.000) 35.0%, rgb(255 255 255 / 0.000) 37.5%, rgb(255 255 255 / 0.000) 40.0%, rgb(255 255 255 / 0.000) 42.5%, rgb(255 255 255 / 0.000) 45.0%, rgb(255 255 255 / 0.000) 47.5%, rgb(255 255 255 / 0.000) 50.0%, rgb(255 255 255 / 0.000) 52.5%, rgb(255 255 255 / 0.000) 55.0%, rgb(255 255 255 / 0.000) 57.5%, rgb(255 255 255 / 0.000) 60.0%, rgb(255 255 255 / 0.000) 62.5%, rgb(255 255 255 / 0.000) 65.0%, rgb(255 255 255 / 0.000) 67.5%, rgb(255 255 255 / 0.000) 70.0%, rgb(0 0 0 / 0.000) 72.5%, rgb(0 0 0 / 0.014) 75.0%, rgb(0 0 0 / 0.045) 77.5%, rgb(0 0 0 / 0.087) 80.0%, rgb(0 0 0 / 0.137) 82.5%, rgb(0 0 0 / 0.191) 85.0%, rgb(0 0 0 / 0.244) 87.5%, rgb(0 0 0 / 0.291) 90.0%, rgb(0 0 0 / 0.329) 92.5%, rgb(0 0 0 / 0.353) 95.0%, rgb(0 0 0 / 0.360) 97.5%, rgb(0 0 0 / 0.360) 100.0%);
    --strata-finish-gold: linear-gradient(to bottom, rgb(255 255 255 / 0.400) 0.0%, rgb(255 255 255 / 0.400) 2.5%, rgb(255 255 255 / 0.400) 5.0%, rgb(255 255 255 / 0.387) 7.5%, rgb(255 255 255 / 0.352) 10.0%, rgb(255 255 255 / 0.300) 12.5%, rgb(255 255 255 / 0.239) 15.0%, rgb(255 255 255 / 0.174) 17.5%, rgb(255 255 255 / 0.112) 20.0%, rgb(255 255 255 / 0.058) 22.5%, rgb(255 255 255 / 0.019) 25.0%, rgb(255 255 255 / 0.001) 27.5%, rgb(255 255 255 / 0.000) 30.0%, rgb(255 255 255 / 0.000) 32.5%, rgb(255 255 255 / 0.000) 35.0%, rgb(255 255 255 / 0.000) 37.5%, rgb(255 255 255 / 0.000) 40.0%, rgb(255 255 255 / 0.000) 42.5%, rgb(255 255 255 / 0.000) 45.0%, rgb(255 255 255 / 0.000) 47.5%, rgb(255 255 255 / 0.000) 50.0%, rgb(255 255 255 / 0.000) 52.5%, rgb(255 255 255 / 0.000) 55.0%, rgb(255 255 255 / 0.000) 57.5%, rgb(255 255 255 / 0.000) 60.0%, rgb(255 255 255 / 0.000) 62.5%, rgb(255 255 255 / 0.000) 65.0%, rgb(255 255 255 / 0.000) 67.5%, rgb(255 255 255 / 0.000) 70.0%, rgb(0 0 0 / 0.000) 72.5%, rgb(0 0 0 / 0.014) 75.0%, rgb(0 0 0 / 0.045) 77.5%, rgb(0 0 0 / 0.087) 80.0%, rgb(0 0 0 / 0.137) 82.5%, rgb(0 0 0 / 0.191) 85.0%, rgb(0 0 0 / 0.244) 87.5%, rgb(0 0 0 / 0.291) 90.0%, rgb(0 0 0 / 0.329) 92.5%, rgb(0 0 0 / 0.353) 95.0%, rgb(0 0 0 / 0.360) 97.5%, rgb(0 0 0 / 0.360) 100.0%);
    --strata-finish-chrome: linear-gradient(to bottom, rgb(255 255 255 / 0.400) 0.0%, rgb(255 255 255 / 0.400) 2.5%, rgb(255 255 255 / 0.400) 5.0%, rgb(255 255 255 / 0.387) 7.5%, rgb(255 255 255 / 0.352) 10.0%, rgb(255 255 255 / 0.300) 12.5%, rgb(255 255 255 / 0.239) 15.0%, rgb(255 255 255 / 0.174) 17.5%, rgb(255 255 255 / 0.112) 20.0%, rgb(255 255 255 / 0.058) 22.5%, rgb(255 255 255 / 0.019) 25.0%, rgb(255 255 255 / 0.001) 27.5%, rgb(255 255 255 / 0.000) 30.0%, rgb(255 255 255 / 0.000) 32.5%, rgb(255 255 255 / 0.000) 35.0%, rgb(255 255 255 / 0.000) 37.5%, rgb(255 255 255 / 0.000) 40.0%, rgb(255 255 255 / 0.000) 42.5%, rgb(255 255 255 / 0.000) 45.0%, rgb(255 255 255 / 0.000) 47.5%, rgb(255 255 255 / 0.000) 50.0%, rgb(255 255 255 / 0.000) 52.5%, rgb(255 255 255 / 0.000) 55.0%, rgb(255 255 255 / 0.000) 57.5%, rgb(255 255 255 / 0.000) 60.0%, rgb(255 255 255 / 0.000) 62.5%, rgb(255 255 255 / 0.000) 65.0%, rgb(255 255 255 / 0.000) 67.5%, rgb(255 255 255 / 0.000) 70.0%, rgb(0 0 0 / 0.000) 72.5%, rgb(0 0 0 / 0.014) 75.0%, rgb(0 0 0 / 0.045) 77.5%, rgb(0 0 0 / 0.087) 80.0%, rgb(0 0 0 / 0.137) 82.5%, rgb(0 0 0 / 0.191) 85.0%, rgb(0 0 0 / 0.244) 87.5%, rgb(0 0 0 / 0.291) 90.0%, rgb(0 0 0 / 0.329) 92.5%, rgb(0 0 0 / 0.353) 95.0%, rgb(0 0 0 / 0.360) 97.5%, rgb(0 0 0 / 0.360) 100.0%);
    --strata-finish-anodised: linear-gradient(to bottom, rgb(255 255 255 / 0.340) 0.0%, rgb(255 255 255 / 0.340) 2.5%, rgb(255 255 255 / 0.340) 5.0%, rgb(255 255 255 / 0.329) 7.5%, rgb(255 255 255 / 0.299) 10.0%, rgb(255 255 255 / 0.255) 12.5%, rgb(255 255 255 / 0.203) 15.0%, rgb(255 255 255 / 0.148) 17.5%, rgb(255 255 255 / 0.095) 20.0%, rgb(255 255 255 / 0.049) 22.5%, rgb(255 255 255 / 0.016) 25.0%, rgb(255 255 255 / 0.000) 27.5%, rgb(255 255 255 / 0.000) 30.0%, rgb(255 255 255 / 0.000) 32.5%, rgb(255 255 255 / 0.000) 35.0%, rgb(255 255 255 / 0.000) 37.5%, rgb(255 255 255 / 0.000) 40.0%, rgb(255 255 255 / 0.000) 42.5%, rgb(255 255 255 / 0.000) 45.0%, rgb(255 255 255 / 0.000) 47.5%, rgb(255 255 255 / 0.000) 50.0%, rgb(255 255 255 / 0.000) 52.5%, rgb(255 255 255 / 0.000) 55.0%, rgb(255 255 255 / 0.000) 57.5%, rgb(255 255 255 / 0.000) 60.0%, rgb(255 255 255 / 0.000) 62.5%, rgb(255 255 255 / 0.000) 65.0%, rgb(255 255 255 / 0.000) 67.5%, rgb(255 255 255 / 0.000) 70.0%, rgb(0 0 0 / 0.000) 72.5%, rgb(0 0 0 / 0.012) 75.0%, rgb(0 0 0 / 0.038) 77.5%, rgb(0 0 0 / 0.074) 80.0%, rgb(0 0 0 / 0.117) 82.5%, rgb(0 0 0 / 0.162) 85.0%, rgb(0 0 0 / 0.207) 87.5%, rgb(0 0 0 / 0.247) 90.0%, rgb(0 0 0 / 0.280) 92.5%, rgb(0 0 0 / 0.300) 95.0%, rgb(0 0 0 / 0.306) 97.5%, rgb(0 0 0 / 0.306) 100.0%);
    --strata-finish-role-knob-cap: var(--strata-finish-metal);
    --strata-finish-role-knob-skirt: var(--strata-finish-anodised);
    --strata-finish-role-fader-cap: var(--strata-finish-metal);
    --strata-finish-role-lever: var(--strata-finish-metal);
    --strata-finish-role-rocker-plate: var(--strata-finish-anodised);
    --strata-finish-role-plate: var(--strata-finish-anodised);
    --strata-finish-role-bezel: var(--strata-finish-gunmetal);
    --strata-finish-role-lens: var(--strata-finish-glass);
    --strata-finish-role-display: var(--strata-finish-glass);
    --strata-finish-role-glow-on: var(--strata-finish-emissive);
    --strata-finish-role-glow-off: var(--strata-finish-glass);
  }
  /* hifi */
  [data-strata-character="hifi"], [data-strata-character="hifi"] [data-strata-theme] {
    --strata-material-presets-polished-base-colour: var(--strata-colour-panel);
    --strata-material-presets-polished-base-roughness: 0.04;
    --strata-material-presets-polished-base-metallic: 1;
    --strata-material-presets-gunmetal-base-colour: var(--strata-colour-panel);
    --strata-material-presets-gunmetal-base-roughness: 0.36;
    --strata-material-presets-gunmetal-base-metallic: 1;
    --strata-material-presets-gold-base-colour: var(--strata-colour-panel);
    --strata-material-presets-gold-base-roughness: 0.18;
    --strata-material-presets-gold-base-metallic: 1;
    --strata-material-presets-chrome-base-colour: var(--strata-colour-panel);
    --strata-material-presets-chrome-base-roughness: 0.04;
    --strata-material-presets-chrome-base-metallic: 1;
    --strata-material-roles-knob-cap: champagne;
    --strata-material-roles-knob-skirt: chrome;
    --strata-material-roles-fader-cap: champagne;
    --strata-material-roles-lever: chrome;
    --strata-material-roles-rocker-plate: walnut;
    --strata-material-roles-bezel: chrome;
    --strata-material-roles-lens: glass;
    --strata-material-roles-display: glass;
    --strata-material-roles-glow-on: emissive;
    --strata-material-roles-glow-off: glass;
    --strata-instrument-material-matte-base-roughness: 0.45;
    --strata-instrument-material-matte-base-metallic: 0;
    --strata-instrument-material-matte-base-direct: 1;
    --strata-instrument-material-satin-base-roughness: 0.4;
    --strata-instrument-material-satin-base-metallic: 0;
    --strata-instrument-material-satin-base-direct: 1;
    --strata-instrument-material-satin-coat-strength: 0.3;
    --strata-instrument-material-satin-coat-roughness: 0.35;
    --strata-instrument-material-satin-coat-ior: 1.5;
    --strata-instrument-material-gloss-base-roughness: 0.25;
    --strata-instrument-material-gloss-base-metallic: 0;
    --strata-instrument-material-gloss-base-direct: 1;
    --strata-instrument-material-gloss-coat-strength: 0.6;
    --strata-instrument-material-gloss-coat-roughness: 0.12;
    --strata-instrument-material-gloss-coat-ior: 1.5;
    --strata-instrument-material-lacquer-base-colour: #1c1c1e;
    --strata-instrument-material-lacquer-base-roughness: 0.5;
    --strata-instrument-material-lacquer-base-metallic: 0;
    --strata-instrument-material-lacquer-base-direct: 1;
    --strata-instrument-material-lacquer-coat-strength: 1;
    --strata-instrument-material-lacquer-coat-roughness: 0.03;
    --strata-instrument-material-lacquer-coat-ior: 1.5;
    --strata-instrument-material-glass-base-roughness: 0.05;
    --strata-instrument-material-glass-base-metallic: 0;
    --strata-instrument-material-glass-base-direct: 1;
    --strata-instrument-material-glass-glass-ior: 1.5;
    --strata-instrument-material-glass-glass-tint: #ecdfc6;
    --strata-instrument-material-glass-glass-absorption: 0.05;
    --strata-instrument-material-glass-glass-reflection: 1.5;
    --strata-instrument-material-glass-dispersion-strength: 0.12;
    --strata-instrument-material-metal-base-colour: #eff0f1;
    --strata-instrument-material-metal-base-roughness: 0.3;
    --strata-instrument-material-metal-base-metallic: 1;
    --strata-instrument-material-metal-base-direct: 1;
    --strata-instrument-material-metal-brush-strength: 0.9;
    --strata-instrument-material-metal-brush-direction: circular;
    --strata-instrument-material-metal-grain-kind: hairline;
    --strata-instrument-material-metal-grain-strength: 0.15;
    --strata-instrument-material-polished-base-colour: #fafafb;
    --strata-instrument-material-polished-base-roughness: 0.04;
    --strata-instrument-material-polished-base-metallic: 1;
    --strata-instrument-material-polished-base-direct: 1;
    --strata-instrument-material-gunmetal-base-colour: #686b72;
    --strata-instrument-material-gunmetal-base-roughness: 0.36;
    --strata-instrument-material-gunmetal-base-metallic: 1;
    --strata-instrument-material-gunmetal-base-direct: 1;
    --strata-instrument-material-gunmetal-brush-strength: 0.9;
    --strata-instrument-material-gunmetal-brush-direction: circular;
    --strata-instrument-material-gunmetal-grain-kind: hairline;
    --strata-instrument-material-gunmetal-grain-strength: 0.15;
    --strata-instrument-material-gold-base-colour: #ffdb93;
    --strata-instrument-material-gold-base-roughness: 0.18;
    --strata-instrument-material-gold-base-metallic: 1;
    --strata-instrument-material-gold-base-direct: 1;
    --strata-instrument-material-chrome-base-colour: #f4f7fc;
    --strata-instrument-material-chrome-base-roughness: 0.03;
    --strata-instrument-material-chrome-base-metallic: 1;
    --strata-instrument-material-chrome-base-direct: 1;
    --strata-instrument-material-emissive-base-roughness: 1;
    --strata-instrument-material-emissive-base-metallic: 0;
    --strata-instrument-material-emissive-base-direct: 1;
    --strata-instrument-material-emissive-emissive-strength: 1;
    --strata-instrument-material-emissive-emissive-colour: var(--strata-colour-glow-on);
    --strata-form-switch: bat;
    --strata-instrument-material-anodised-base-colour: initial;
    --strata-instrument-material-anodised-base-roughness: initial;
    --strata-instrument-material-anodised-base-metallic: initial;
    --strata-instrument-material-anodised-base-direct: initial;
    --strata-instrument-material-anodised-brush-strength: initial;
    --strata-instrument-material-anodised-brush-direction: initial;
    --strata-instrument-material-anodised-grain-kind: initial;
    --strata-instrument-material-anodised-grain-strength: initial;
    --strata-instrument-ink-cap: #241c12;
    --strata-material-presets-anodised-base-colour: initial;
    --strata-material-presets-anodised-base-roughness: initial;
    --strata-material-presets-anodised-base-metallic: initial;
    --strata-pointer-light-colour: #ffe9c2;
    --strata-emitter-lamp-radius: 9;
    --strata-emitter-lamp-strength: 3600;
    --strata-emitter-led-radius: 7;
    --strata-emitter-led-strength: 480;
    --strata-knob-pointer-width: 3px;
    --strata-spring-knob-stiffness: 260;
    --strata-spring-knob-damping: 32;
    --strata-spring-detent-stiffness: 600;
    --strata-spring-detent-damping: 46;
    --strata-spring-fader-stiffness: 300;
    --strata-spring-fader-damping: 35;
    --strata-spring-slide-stiffness: 420;
    --strata-spring-slide-damping: 41;
    --strata-spring-rocker-stiffness: 800;
    --strata-spring-rocker-damping: 57;
    --strata-spring-bat-stiffness: 900;
    --strata-spring-bat-damping: 57;
    --strata-spring-wall-stiffness: 800;
    --strata-spring-wall-damping: 57;
    --strata-spring-button-stiffness: 1100;
    --strata-spring-button-damping: 66;
    --strata-spring-meter-stiffness: 240;
    --strata-spring-meter-damping: 24;
    --strata-spring-gauge-stiffness: 120;
    --strata-spring-gauge-damping: 17;
    --strata-feedback-click-pitch: 1800;
    --strata-feedback-click-decay: 6;
    --strata-feedback-click-noise: 0.35;
    --strata-feedback-tick-pitch: 2400;
    --strata-feedback-tick-decay: 3;
    --strata-feedback-tick-noise: 0.15;
    --strata-feedback-thunk-pitch: 90;
    --strata-feedback-thunk-decay: 28;
    --strata-feedback-thunk-noise: 0.18;
    --strata-feedback-snap-pitch: 1400;
    --strata-feedback-snap-decay: 9;
    --strata-feedback-snap-noise: 0.55;
    --strata-instrument-material-champagne-base-colour: #e6d9bd;
    --strata-instrument-material-champagne-base-roughness: 0.3;
    --strata-instrument-material-champagne-base-metallic: 1;
    --strata-instrument-material-champagne-base-direct: 1;
    --strata-instrument-material-champagne-brush-strength: 0.95;
    --strata-instrument-material-champagne-brush-direction: circular;
    --strata-instrument-material-champagne-grain-kind: hairline;
    --strata-instrument-material-champagne-grain-strength: 0.12;
    --strata-instrument-material-walnut-base-colour: #4a2f1d;
    --strata-instrument-material-walnut-base-roughness: 0.42;
    --strata-instrument-material-walnut-base-metallic: 0;
    --strata-instrument-material-walnut-base-direct: 1;
    --strata-instrument-material-walnut-coat-strength: 0.3;
    --strata-instrument-material-walnut-coat-roughness: 0.3;
    --strata-instrument-material-walnut-coat-ior: 1.5;
    --strata-instrument-material-walnut-brush-strength: 0.35;
    --strata-instrument-material-walnut-brush-direction: linear;
    --strata-material-presets-champagne-base-colour: var(--strata-colour-panel);
    --strata-material-presets-champagne-base-roughness: 0.3;
    --strata-material-presets-champagne-base-metallic: 1;
    --strata-material-presets-walnut-base-colour: #4a2f1d;
    --strata-material-presets-walnut-base-roughness: 0.42;
    --strata-material-presets-walnut-base-metallic: 0;
    --strata-material-presets-walnut-coat-strength: 0.3;
    --strata-material-presets-walnut-coat-roughness: 0.3;
    --strata-instrument-material-rubber-sky-base-colour: initial;
    --strata-instrument-material-rubber-sky-base-roughness: initial;
    --strata-instrument-material-rubber-sky-base-metallic: initial;
    --strata-instrument-material-rubber-sky-base-direct: initial;
    --strata-instrument-material-rubber-coral-base-colour: initial;
    --strata-instrument-material-rubber-coral-base-roughness: initial;
    --strata-instrument-material-rubber-coral-base-metallic: initial;
    --strata-instrument-material-rubber-coral-base-direct: initial;
    --strata-instrument-material-candy-yellow-base-colour: initial;
    --strata-instrument-material-candy-yellow-base-roughness: initial;
    --strata-instrument-material-candy-yellow-base-metallic: initial;
    --strata-instrument-material-candy-yellow-base-direct: initial;
    --strata-instrument-material-candy-yellow-coat-strength: initial;
    --strata-instrument-material-candy-yellow-coat-roughness: initial;
    --strata-instrument-material-candy-yellow-coat-ior: initial;
    --strata-instrument-material-candy-lime-base-colour: initial;
    --strata-instrument-material-candy-lime-base-roughness: initial;
    --strata-instrument-material-candy-lime-base-metallic: initial;
    --strata-instrument-material-candy-lime-base-direct: initial;
    --strata-instrument-material-candy-lime-coat-strength: initial;
    --strata-instrument-material-candy-lime-coat-roughness: initial;
    --strata-instrument-material-candy-lime-coat-ior: initial;
    --strata-instrument-material-candy-pink-base-colour: initial;
    --strata-instrument-material-candy-pink-base-roughness: initial;
    --strata-instrument-material-candy-pink-base-metallic: initial;
    --strata-instrument-material-candy-pink-base-direct: initial;
    --strata-instrument-material-candy-pink-coat-strength: initial;
    --strata-instrument-material-candy-pink-coat-roughness: initial;
    --strata-instrument-material-candy-pink-coat-ior: initial;
    --strata-instrument-material-candy-cream-base-colour: initial;
    --strata-instrument-material-candy-cream-base-roughness: initial;
    --strata-instrument-material-candy-cream-base-metallic: initial;
    --strata-instrument-material-candy-cream-base-direct: initial;
    --strata-instrument-material-candy-cream-coat-strength: initial;
    --strata-instrument-material-candy-cream-coat-roughness: initial;
    --strata-instrument-material-candy-cream-coat-ior: initial;
    --strata-instrument-material-candy-mint-base-colour: initial;
    --strata-instrument-material-candy-mint-base-roughness: initial;
    --strata-instrument-material-candy-mint-base-metallic: initial;
    --strata-instrument-material-candy-mint-base-direct: initial;
    --strata-instrument-material-candy-mint-coat-strength: initial;
    --strata-instrument-material-candy-mint-coat-roughness: initial;
    --strata-instrument-material-candy-mint-coat-ior: initial;
    --strata-instrument-material-candy-grape-base-colour: initial;
    --strata-instrument-material-candy-grape-base-roughness: initial;
    --strata-instrument-material-candy-grape-base-metallic: initial;
    --strata-instrument-material-candy-grape-base-direct: initial;
    --strata-instrument-material-candy-grape-coat-strength: initial;
    --strata-instrument-material-candy-grape-coat-roughness: initial;
    --strata-instrument-material-candy-grape-coat-ior: initial;
    --strata-material-presets-rubber-sky-base-colour: initial;
    --strata-material-presets-rubber-sky-base-roughness: initial;
    --strata-material-presets-rubber-sky-base-metallic: initial;
    --strata-material-presets-rubber-coral-base-colour: initial;
    --strata-material-presets-rubber-coral-base-roughness: initial;
    --strata-material-presets-rubber-coral-base-metallic: initial;
    --strata-material-presets-candy-yellow-base-colour: initial;
    --strata-material-presets-candy-yellow-base-roughness: initial;
    --strata-material-presets-candy-yellow-base-metallic: initial;
    --strata-material-presets-candy-yellow-coat-strength: initial;
    --strata-material-presets-candy-yellow-coat-roughness: initial;
    --strata-material-presets-candy-lime-base-colour: initial;
    --strata-material-presets-candy-lime-base-roughness: initial;
    --strata-material-presets-candy-lime-base-metallic: initial;
    --strata-material-presets-candy-lime-coat-strength: initial;
    --strata-material-presets-candy-lime-coat-roughness: initial;
    --strata-material-presets-candy-pink-base-colour: initial;
    --strata-material-presets-candy-pink-base-roughness: initial;
    --strata-material-presets-candy-pink-base-metallic: initial;
    --strata-material-presets-candy-pink-coat-strength: initial;
    --strata-material-presets-candy-pink-coat-roughness: initial;
    --strata-material-presets-candy-cream-base-colour: initial;
    --strata-material-presets-candy-cream-base-roughness: initial;
    --strata-material-presets-candy-cream-base-metallic: initial;
    --strata-material-presets-candy-cream-coat-strength: initial;
    --strata-material-presets-candy-cream-coat-roughness: initial;
    --strata-material-presets-candy-mint-base-colour: initial;
    --strata-material-presets-candy-mint-base-roughness: initial;
    --strata-material-presets-candy-mint-base-metallic: initial;
    --strata-material-presets-candy-mint-coat-strength: initial;
    --strata-material-presets-candy-mint-coat-roughness: initial;
    --strata-material-presets-candy-grape-base-colour: initial;
    --strata-material-presets-candy-grape-base-roughness: initial;
    --strata-material-presets-candy-grape-base-metallic: initial;
    --strata-material-presets-candy-grape-coat-strength: initial;
    --strata-material-presets-candy-grape-coat-roughness: initial;
    --strata-emitter-push-button-strength: 2400;
    --strata-emitter-segment-strength: initial;
    --strata-spring-patch-stiffness: 1100;
    --strata-spring-patch-damping: 60;
  }
  :root[data-strata-character="hifi"] {
    --strata-environment-intensity: 1.1;
    --strata-studio-key: 8;
    --strata-studio-key-radius: 0.42;
    --strata-studio-fill: 2.2;
    --strata-studio-front: 0.3;
    --strata-studio-strip: 1.8;
    --strata-studio-floor: 0.12;
    --strata-studio-ceiling: 0.5;
  }
  [data-strata-character="hifi"] {
    --strata-material-roles-plate: walnut;
    --strata-colour-glow-on: #ffd36b;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-strata-theme])[data-strata-character="hifi"], :root:not([data-strata-theme]) [data-strata-character="hifi"] {
      --strata-material-roles-plate: lacquer;
      --strata-colour-glow-on: #ffd36b;
    }
  }
  [data-strata-character="hifi"][data-strata-theme="light"], [data-strata-character="hifi"] [data-strata-theme="light"], [data-strata-theme="light"] [data-strata-character="hifi"] {
    --strata-material-roles-plate: walnut;
    --strata-colour-glow-on: #ffd36b;
  }
  [data-strata-character="hifi"][data-strata-theme="dark"], [data-strata-character="hifi"] [data-strata-theme="dark"], [data-strata-theme="dark"] [data-strata-character="hifi"] {
    --strata-material-roles-plate: lacquer;
    --strata-colour-glow-on: #ffd36b;
  }
  [data-strata-character="hifi"][data-strata-theme="contrast"], [data-strata-character="hifi"] [data-strata-theme="contrast"], [data-strata-theme="contrast"] [data-strata-character="hifi"] {
    --strata-material-roles-plate: walnut;
    --strata-colour-glow-on: #ffd36b;
  }
  [data-strata-character="hifi"][data-strata-theme="contrast-dark"], [data-strata-character="hifi"] [data-strata-theme="contrast-dark"], [data-strata-theme="contrast-dark"] [data-strata-character="hifi"] {
    --strata-material-roles-plate: lacquer;
    --strata-colour-glow-on: #ffd36b;
  }
  [data-strata-character="hifi"] {
    --strata-finish-polished: linear-gradient(to bottom, rgb(255 255 255 / 0.400) 0.0%, rgb(255 255 255 / 0.400) 2.5%, rgb(255 255 255 / 0.400) 5.0%, rgb(255 255 255 / 0.387) 7.5%, rgb(255 255 255 / 0.352) 10.0%, rgb(255 255 255 / 0.300) 12.5%, rgb(255 255 255 / 0.239) 15.0%, rgb(255 255 255 / 0.174) 17.5%, rgb(255 255 255 / 0.112) 20.0%, rgb(255 255 255 / 0.058) 22.5%, rgb(255 255 255 / 0.019) 25.0%, rgb(255 255 255 / 0.001) 27.5%, rgb(255 255 255 / 0.000) 30.0%, rgb(255 255 255 / 0.000) 32.5%, rgb(255 255 255 / 0.000) 35.0%, rgb(255 255 255 / 0.000) 37.5%, rgb(255 255 255 / 0.000) 40.0%, rgb(255 255 255 / 0.000) 42.5%, rgb(255 255 255 / 0.000) 45.0%, rgb(255 255 255 / 0.000) 47.5%, rgb(255 255 255 / 0.000) 50.0%, rgb(255 255 255 / 0.000) 52.5%, rgb(255 255 255 / 0.000) 55.0%, rgb(255 255 255 / 0.000) 57.5%, rgb(255 255 255 / 0.000) 60.0%, rgb(255 255 255 / 0.000) 62.5%, rgb(255 255 255 / 0.000) 65.0%, rgb(255 255 255 / 0.000) 67.5%, rgb(255 255 255 / 0.000) 70.0%, rgb(0 0 0 / 0.000) 72.5%, rgb(0 0 0 / 0.014) 75.0%, rgb(0 0 0 / 0.045) 77.5%, rgb(0 0 0 / 0.087) 80.0%, rgb(0 0 0 / 0.137) 82.5%, rgb(0 0 0 / 0.191) 85.0%, rgb(0 0 0 / 0.244) 87.5%, rgb(0 0 0 / 0.291) 90.0%, rgb(0 0 0 / 0.329) 92.5%, rgb(0 0 0 / 0.353) 95.0%, rgb(0 0 0 / 0.360) 97.5%, rgb(0 0 0 / 0.360) 100.0%);
    --strata-finish-gunmetal: linear-gradient(to bottom, rgb(255 255 255 / 0.400) 0.0%, rgb(255 255 255 / 0.400) 2.5%, rgb(255 255 255 / 0.400) 5.0%, rgb(255 255 255 / 0.387) 7.5%, rgb(255 255 255 / 0.352) 10.0%, rgb(255 255 255 / 0.300) 12.5%, rgb(255 255 255 / 0.239) 15.0%, rgb(255 255 255 / 0.174) 17.5%, rgb(255 255 255 / 0.112) 20.0%, rgb(255 255 255 / 0.058) 22.5%, rgb(255 255 255 / 0.019) 25.0%, rgb(255 255 255 / 0.001) 27.5%, rgb(255 255 255 / 0.000) 30.0%, rgb(255 255 255 / 0.000) 32.5%, rgb(255 255 255 / 0.000) 35.0%, rgb(255 255 255 / 0.000) 37.5%, rgb(255 255 255 / 0.000) 40.0%, rgb(255 255 255 / 0.000) 42.5%, rgb(255 255 255 / 0.000) 45.0%, rgb(255 255 255 / 0.000) 47.5%, rgb(255 255 255 / 0.000) 50.0%, rgb(255 255 255 / 0.000) 52.5%, rgb(255 255 255 / 0.000) 55.0%, rgb(255 255 255 / 0.000) 57.5%, rgb(255 255 255 / 0.000) 60.0%, rgb(255 255 255 / 0.000) 62.5%, rgb(255 255 255 / 0.000) 65.0%, rgb(255 255 255 / 0.000) 67.5%, rgb(255 255 255 / 0.000) 70.0%, rgb(0 0 0 / 0.000) 72.5%, rgb(0 0 0 / 0.014) 75.0%, rgb(0 0 0 / 0.045) 77.5%, rgb(0 0 0 / 0.087) 80.0%, rgb(0 0 0 / 0.137) 82.5%, rgb(0 0 0 / 0.191) 85.0%, rgb(0 0 0 / 0.244) 87.5%, rgb(0 0 0 / 0.291) 90.0%, rgb(0 0 0 / 0.329) 92.5%, rgb(0 0 0 / 0.353) 95.0%, rgb(0 0 0 / 0.360) 97.5%, rgb(0 0 0 / 0.360) 100.0%);
    --strata-finish-gold: linear-gradient(to bottom, rgb(255 255 255 / 0.400) 0.0%, rgb(255 255 255 / 0.400) 2.5%, rgb(255 255 255 / 0.400) 5.0%, rgb(255 255 255 / 0.387) 7.5%, rgb(255 255 255 / 0.352) 10.0%, rgb(255 255 255 / 0.300) 12.5%, rgb(255 255 255 / 0.239) 15.0%, rgb(255 255 255 / 0.174) 17.5%, rgb(255 255 255 / 0.112) 20.0%, rgb(255 255 255 / 0.058) 22.5%, rgb(255 255 255 / 0.019) 25.0%, rgb(255 255 255 / 0.001) 27.5%, rgb(255 255 255 / 0.000) 30.0%, rgb(255 255 255 / 0.000) 32.5%, rgb(255 255 255 / 0.000) 35.0%, rgb(255 255 255 / 0.000) 37.5%, rgb(255 255 255 / 0.000) 40.0%, rgb(255 255 255 / 0.000) 42.5%, rgb(255 255 255 / 0.000) 45.0%, rgb(255 255 255 / 0.000) 47.5%, rgb(255 255 255 / 0.000) 50.0%, rgb(255 255 255 / 0.000) 52.5%, rgb(255 255 255 / 0.000) 55.0%, rgb(255 255 255 / 0.000) 57.5%, rgb(255 255 255 / 0.000) 60.0%, rgb(255 255 255 / 0.000) 62.5%, rgb(255 255 255 / 0.000) 65.0%, rgb(255 255 255 / 0.000) 67.5%, rgb(255 255 255 / 0.000) 70.0%, rgb(0 0 0 / 0.000) 72.5%, rgb(0 0 0 / 0.014) 75.0%, rgb(0 0 0 / 0.045) 77.5%, rgb(0 0 0 / 0.087) 80.0%, rgb(0 0 0 / 0.137) 82.5%, rgb(0 0 0 / 0.191) 85.0%, rgb(0 0 0 / 0.244) 87.5%, rgb(0 0 0 / 0.291) 90.0%, rgb(0 0 0 / 0.329) 92.5%, rgb(0 0 0 / 0.353) 95.0%, rgb(0 0 0 / 0.360) 97.5%, rgb(0 0 0 / 0.360) 100.0%);
    --strata-finish-chrome: linear-gradient(to bottom, rgb(255 255 255 / 0.400) 0.0%, rgb(255 255 255 / 0.400) 2.5%, rgb(255 255 255 / 0.400) 5.0%, rgb(255 255 255 / 0.387) 7.5%, rgb(255 255 255 / 0.352) 10.0%, rgb(255 255 255 / 0.300) 12.5%, rgb(255 255 255 / 0.239) 15.0%, rgb(255 255 255 / 0.174) 17.5%, rgb(255 255 255 / 0.112) 20.0%, rgb(255 255 255 / 0.058) 22.5%, rgb(255 255 255 / 0.019) 25.0%, rgb(255 255 255 / 0.001) 27.5%, rgb(255 255 255 / 0.000) 30.0%, rgb(255 255 255 / 0.000) 32.5%, rgb(255 255 255 / 0.000) 35.0%, rgb(255 255 255 / 0.000) 37.5%, rgb(255 255 255 / 0.000) 40.0%, rgb(255 255 255 / 0.000) 42.5%, rgb(255 255 255 / 0.000) 45.0%, rgb(255 255 255 / 0.000) 47.5%, rgb(255 255 255 / 0.000) 50.0%, rgb(255 255 255 / 0.000) 52.5%, rgb(255 255 255 / 0.000) 55.0%, rgb(255 255 255 / 0.000) 57.5%, rgb(255 255 255 / 0.000) 60.0%, rgb(255 255 255 / 0.000) 62.5%, rgb(255 255 255 / 0.000) 65.0%, rgb(255 255 255 / 0.000) 67.5%, rgb(255 255 255 / 0.000) 70.0%, rgb(0 0 0 / 0.000) 72.5%, rgb(0 0 0 / 0.014) 75.0%, rgb(0 0 0 / 0.045) 77.5%, rgb(0 0 0 / 0.087) 80.0%, rgb(0 0 0 / 0.137) 82.5%, rgb(0 0 0 / 0.191) 85.0%, rgb(0 0 0 / 0.244) 87.5%, rgb(0 0 0 / 0.291) 90.0%, rgb(0 0 0 / 0.329) 92.5%, rgb(0 0 0 / 0.353) 95.0%, rgb(0 0 0 / 0.360) 97.5%, rgb(0 0 0 / 0.360) 100.0%);
    --strata-finish-champagne: linear-gradient(to bottom, rgb(255 255 255 / 0.400) 0.0%, rgb(255 255 255 / 0.400) 2.5%, rgb(255 255 255 / 0.400) 5.0%, rgb(255 255 255 / 0.387) 7.5%, rgb(255 255 255 / 0.352) 10.0%, rgb(255 255 255 / 0.300) 12.5%, rgb(255 255 255 / 0.239) 15.0%, rgb(255 255 255 / 0.174) 17.5%, rgb(255 255 255 / 0.112) 20.0%, rgb(255 255 255 / 0.058) 22.5%, rgb(255 255 255 / 0.019) 25.0%, rgb(255 255 255 / 0.001) 27.5%, rgb(255 255 255 / 0.000) 30.0%, rgb(255 255 255 / 0.000) 32.5%, rgb(255 255 255 / 0.000) 35.0%, rgb(255 255 255 / 0.000) 37.5%, rgb(255 255 255 / 0.000) 40.0%, rgb(255 255 255 / 0.000) 42.5%, rgb(255 255 255 / 0.000) 45.0%, rgb(255 255 255 / 0.000) 47.5%, rgb(255 255 255 / 0.000) 50.0%, rgb(255 255 255 / 0.000) 52.5%, rgb(255 255 255 / 0.000) 55.0%, rgb(255 255 255 / 0.000) 57.5%, rgb(255 255 255 / 0.000) 60.0%, rgb(255 255 255 / 0.000) 62.5%, rgb(255 255 255 / 0.000) 65.0%, rgb(255 255 255 / 0.000) 67.5%, rgb(255 255 255 / 0.000) 70.0%, rgb(0 0 0 / 0.000) 72.5%, rgb(0 0 0 / 0.014) 75.0%, rgb(0 0 0 / 0.045) 77.5%, rgb(0 0 0 / 0.087) 80.0%, rgb(0 0 0 / 0.137) 82.5%, rgb(0 0 0 / 0.191) 85.0%, rgb(0 0 0 / 0.244) 87.5%, rgb(0 0 0 / 0.291) 90.0%, rgb(0 0 0 / 0.329) 92.5%, rgb(0 0 0 / 0.353) 95.0%, rgb(0 0 0 / 0.360) 97.5%, rgb(0 0 0 / 0.360) 100.0%);
    --strata-finish-walnut: linear-gradient(to bottom, rgb(255 255 255 / 0.064) 0.0%, rgb(255 255 255 / 0.062) 2.5%, rgb(255 255 255 / 0.180) 5.0%, rgb(255 255 255 / 0.180) 7.5%, rgb(255 255 255 / 0.180) 10.0%, rgb(255 255 255 / 0.180) 12.5%, rgb(255 255 255 / 0.180) 15.0%, rgb(255 255 255 / 0.156) 17.5%, rgb(255 255 255 / 0.102) 20.0%, rgb(255 255 255 / 0.043) 22.5%, rgb(0 0 0 / 0.012) 25.0%, rgb(0 0 0 / 0.048) 27.5%, rgb(0 0 0 / 0.024) 30.0%, rgb(255 255 255 / 0.000) 32.5%, rgb(255 255 255 / 0.000) 35.0%, rgb(255 255 255 / 0.000) 37.5%, rgb(255 255 255 / 0.000) 40.0%, rgb(255 255 255 / 0.000) 42.5%, rgb(255 255 255 / 0.000) 45.0%, rgb(255 255 255 / 0.000) 47.5%, rgb(255 255 255 / 0.000) 50.0%, rgb(255 255 255 / 0.000) 52.5%, rgb(255 255 255 / 0.000) 55.0%, rgb(255 255 255 / 0.000) 57.5%, rgb(255 255 255 / 0.000) 60.0%, rgb(255 255 255 / 0.000) 62.5%, rgb(255 255 255 / 0.000) 65.0%, rgb(255 255 255 / 0.000) 67.5%, rgb(255 255 255 / 0.000) 70.0%, rgb(255 255 255 / 0.000) 72.5%, rgb(255 255 255 / 0.000) 75.0%, rgb(255 255 255 / 0.000) 77.5%, rgb(255 255 255 / 0.000) 80.0%, rgb(255 255 255 / 0.000) 82.5%, rgb(255 255 255 / 0.000) 85.0%, rgb(255 255 255 / 0.000) 87.5%, rgb(255 255 255 / 0.000) 90.0%, rgb(255 255 255 / 0.000) 92.5%, rgb(255 255 255 / 0.000) 95.0%, rgb(255 255 255 / 0.000) 97.5%, rgb(255 255 255 / 0.000) 100.0%);
    --strata-finish-role-knob-cap: var(--strata-finish-champagne);
    --strata-finish-role-knob-skirt: var(--strata-finish-chrome);
    --strata-finish-role-fader-cap: var(--strata-finish-champagne);
    --strata-finish-role-lever: var(--strata-finish-chrome);
    --strata-finish-role-rocker-plate: var(--strata-finish-walnut);
    --strata-finish-role-plate: var(--strata-finish-walnut);
    --strata-finish-role-bezel: var(--strata-finish-chrome);
    --strata-finish-role-lens: var(--strata-finish-glass);
    --strata-finish-role-display: var(--strata-finish-glass);
    --strata-finish-role-glow-on: var(--strata-finish-emissive);
    --strata-finish-role-glow-off: var(--strata-finish-glass);
  }
  /* playful */
  [data-strata-character="playful"], [data-strata-character="playful"] [data-strata-theme] {
    --strata-material-presets-polished-base-colour: var(--strata-colour-panel);
    --strata-material-presets-polished-base-roughness: 0.04;
    --strata-material-presets-polished-base-metallic: 1;
    --strata-material-presets-gunmetal-base-colour: var(--strata-colour-panel);
    --strata-material-presets-gunmetal-base-roughness: 0.36;
    --strata-material-presets-gunmetal-base-metallic: 1;
    --strata-material-presets-gold-base-colour: var(--strata-colour-panel);
    --strata-material-presets-gold-base-roughness: 0.18;
    --strata-material-presets-gold-base-metallic: 1;
    --strata-material-presets-chrome-base-colour: var(--strata-colour-panel);
    --strata-material-presets-chrome-base-roughness: 0.04;
    --strata-material-presets-chrome-base-metallic: 1;
    --strata-material-roles-knob-cap: rubberSky;
    --strata-material-roles-knob-skirt: candyYellow;
    --strata-material-roles-fader-cap: rubberCoral;
    --strata-material-roles-lever: candyLime;
    --strata-material-roles-rocker-plate: candyPink;
    --strata-material-roles-bezel: candyCream;
    --strata-material-roles-lens: glass;
    --strata-material-roles-display: glass;
    --strata-material-roles-glow-on: emissive;
    --strata-material-roles-glow-off: glass;
    --strata-instrument-material-matte-base-roughness: 0.45;
    --strata-instrument-material-matte-base-metallic: 0;
    --strata-instrument-material-matte-base-direct: 1;
    --strata-instrument-material-satin-base-roughness: 0.4;
    --strata-instrument-material-satin-base-metallic: 0;
    --strata-instrument-material-satin-base-direct: 1;
    --strata-instrument-material-satin-coat-strength: 0.3;
    --strata-instrument-material-satin-coat-roughness: 0.35;
    --strata-instrument-material-satin-coat-ior: 1.5;
    --strata-instrument-material-gloss-base-roughness: 0.25;
    --strata-instrument-material-gloss-base-metallic: 0;
    --strata-instrument-material-gloss-base-direct: 1;
    --strata-instrument-material-gloss-coat-strength: 0.6;
    --strata-instrument-material-gloss-coat-roughness: 0.12;
    --strata-instrument-material-gloss-coat-ior: 1.5;
    --strata-instrument-material-lacquer-base-colour: #1c1c1e;
    --strata-instrument-material-lacquer-base-roughness: 0.5;
    --strata-instrument-material-lacquer-base-metallic: 0;
    --strata-instrument-material-lacquer-base-direct: 1;
    --strata-instrument-material-lacquer-coat-strength: 1;
    --strata-instrument-material-lacquer-coat-roughness: 0.03;
    --strata-instrument-material-lacquer-coat-ior: 1.5;
    --strata-instrument-material-glass-base-roughness: 0.05;
    --strata-instrument-material-glass-base-metallic: 0;
    --strata-instrument-material-glass-base-direct: 1;
    --strata-instrument-material-glass-glass-ior: 1.5;
    --strata-instrument-material-glass-glass-tint: #ffe4f0;
    --strata-instrument-material-glass-glass-absorption: 0.03;
    --strata-instrument-material-glass-glass-reflection: 1.5;
    --strata-instrument-material-glass-dispersion-strength: 0.15;
    --strata-instrument-material-metal-base-colour: #eff0f1;
    --strata-instrument-material-metal-base-roughness: 0.3;
    --strata-instrument-material-metal-base-metallic: 1;
    --strata-instrument-material-metal-base-direct: 1;
    --strata-instrument-material-metal-brush-strength: 0.9;
    --strata-instrument-material-metal-brush-direction: circular;
    --strata-instrument-material-metal-grain-kind: hairline;
    --strata-instrument-material-metal-grain-strength: 0.15;
    --strata-instrument-material-polished-base-colour: #fafafb;
    --strata-instrument-material-polished-base-roughness: 0.04;
    --strata-instrument-material-polished-base-metallic: 1;
    --strata-instrument-material-polished-base-direct: 1;
    --strata-instrument-material-gunmetal-base-colour: #686b72;
    --strata-instrument-material-gunmetal-base-roughness: 0.36;
    --strata-instrument-material-gunmetal-base-metallic: 1;
    --strata-instrument-material-gunmetal-base-direct: 1;
    --strata-instrument-material-gunmetal-brush-strength: 0.9;
    --strata-instrument-material-gunmetal-brush-direction: circular;
    --strata-instrument-material-gunmetal-grain-kind: hairline;
    --strata-instrument-material-gunmetal-grain-strength: 0.15;
    --strata-instrument-material-gold-base-colour: #ffdb93;
    --strata-instrument-material-gold-base-roughness: 0.18;
    --strata-instrument-material-gold-base-metallic: 1;
    --strata-instrument-material-gold-base-direct: 1;
    --strata-instrument-material-chrome-base-colour: #fafafc;
    --strata-instrument-material-chrome-base-roughness: 0.04;
    --strata-instrument-material-chrome-base-metallic: 1;
    --strata-instrument-material-chrome-base-direct: 1;
    --strata-instrument-material-emissive-base-roughness: 1;
    --strata-instrument-material-emissive-base-metallic: 0;
    --strata-instrument-material-emissive-base-direct: 1;
    --strata-instrument-material-emissive-emissive-strength: 1;
    --strata-instrument-material-emissive-emissive-colour: var(--strata-colour-glow-on);
    --strata-form-switch: wall;
    --strata-instrument-material-anodised-base-colour: initial;
    --strata-instrument-material-anodised-base-roughness: initial;
    --strata-instrument-material-anodised-base-metallic: initial;
    --strata-instrument-material-anodised-base-direct: initial;
    --strata-instrument-material-anodised-brush-strength: initial;
    --strata-instrument-material-anodised-brush-direction: initial;
    --strata-instrument-material-anodised-grain-kind: initial;
    --strata-instrument-material-anodised-grain-strength: initial;
    --strata-instrument-ink-cap: #1a1240;
    --strata-material-presets-anodised-base-colour: initial;
    --strata-material-presets-anodised-base-roughness: initial;
    --strata-material-presets-anodised-base-metallic: initial;
    --strata-pointer-light-colour: #fff4cc;
    --strata-emitter-lamp-radius: 8;
    --strata-emitter-lamp-strength: 4600;
    --strata-emitter-led-radius: 7;
    --strata-emitter-led-strength: 760;
    --strata-knob-pointer-width: 4px;
    --strata-spring-knob-stiffness: 340;
    --strata-spring-knob-damping: 22;
    --strata-spring-detent-stiffness: 700;
    --strata-spring-detent-damping: 27;
    --strata-spring-fader-stiffness: 360;
    --strata-spring-fader-damping: 22;
    --strata-spring-slide-stiffness: 520;
    --strata-spring-slide-damping: 27;
    --strata-spring-rocker-stiffness: 900;
    --strata-spring-rocker-damping: 31;
    --strata-spring-bat-stiffness: 1000;
    --strata-spring-bat-damping: 33;
    --strata-spring-wall-stiffness: 900;
    --strata-spring-wall-damping: 33;
    --strata-spring-button-stiffness: 1300;
    --strata-spring-button-damping: 41;
    --strata-spring-meter-stiffness: 300;
    --strata-spring-meter-damping: 18;
    --strata-spring-gauge-stiffness: 140;
    --strata-spring-gauge-damping: 12;
    --strata-feedback-click-pitch: 3600;
    --strata-feedback-click-decay: 2.5;
    --strata-feedback-click-noise: 0.25;
    --strata-feedback-tick-pitch: 4600;
    --strata-feedback-tick-decay: 1.2;
    --strata-feedback-tick-noise: 0.1;
    --strata-feedback-thunk-pitch: 260;
    --strata-feedback-thunk-decay: 9;
    --strata-feedback-thunk-noise: 0.15;
    --strata-feedback-snap-pitch: 2800;
    --strata-feedback-snap-decay: 3.5;
    --strata-feedback-snap-noise: 0.3;
    --strata-instrument-material-champagne-base-colour: initial;
    --strata-instrument-material-champagne-base-roughness: initial;
    --strata-instrument-material-champagne-base-metallic: initial;
    --strata-instrument-material-champagne-base-direct: initial;
    --strata-instrument-material-champagne-brush-strength: initial;
    --strata-instrument-material-champagne-brush-direction: initial;
    --strata-instrument-material-champagne-grain-kind: initial;
    --strata-instrument-material-champagne-grain-strength: initial;
    --strata-instrument-material-walnut-base-colour: initial;
    --strata-instrument-material-walnut-base-roughness: initial;
    --strata-instrument-material-walnut-base-metallic: initial;
    --strata-instrument-material-walnut-base-direct: initial;
    --strata-instrument-material-walnut-coat-strength: initial;
    --strata-instrument-material-walnut-coat-roughness: initial;
    --strata-instrument-material-walnut-coat-ior: initial;
    --strata-instrument-material-walnut-brush-strength: initial;
    --strata-instrument-material-walnut-brush-direction: initial;
    --strata-material-presets-champagne-base-colour: initial;
    --strata-material-presets-champagne-base-roughness: initial;
    --strata-material-presets-champagne-base-metallic: initial;
    --strata-material-presets-walnut-base-colour: initial;
    --strata-material-presets-walnut-base-roughness: initial;
    --strata-material-presets-walnut-base-metallic: initial;
    --strata-material-presets-walnut-coat-strength: initial;
    --strata-material-presets-walnut-coat-roughness: initial;
    --strata-instrument-material-rubber-sky-base-colour: #2d93ff;
    --strata-instrument-material-rubber-sky-base-roughness: 0.82;
    --strata-instrument-material-rubber-sky-base-metallic: 0;
    --strata-instrument-material-rubber-sky-base-direct: 1;
    --strata-instrument-material-rubber-coral-base-colour: #ff6a5c;
    --strata-instrument-material-rubber-coral-base-roughness: 0.82;
    --strata-instrument-material-rubber-coral-base-metallic: 0;
    --strata-instrument-material-rubber-coral-base-direct: 1;
    --strata-instrument-material-candy-yellow-base-colour: #ffd12e;
    --strata-instrument-material-candy-yellow-base-roughness: 0.35;
    --strata-instrument-material-candy-yellow-base-metallic: 0;
    --strata-instrument-material-candy-yellow-base-direct: 1;
    --strata-instrument-material-candy-yellow-coat-strength: 1;
    --strata-instrument-material-candy-yellow-coat-roughness: 0.04;
    --strata-instrument-material-candy-yellow-coat-ior: 1.5;
    --strata-instrument-material-candy-lime-base-colour: #8be04a;
    --strata-instrument-material-candy-lime-base-roughness: 0.35;
    --strata-instrument-material-candy-lime-base-metallic: 0;
    --strata-instrument-material-candy-lime-base-direct: 1;
    --strata-instrument-material-candy-lime-coat-strength: 1;
    --strata-instrument-material-candy-lime-coat-roughness: 0.04;
    --strata-instrument-material-candy-lime-coat-ior: 1.5;
    --strata-instrument-material-candy-pink-base-colour: #ff7ac0;
    --strata-instrument-material-candy-pink-base-roughness: 0.35;
    --strata-instrument-material-candy-pink-base-metallic: 0;
    --strata-instrument-material-candy-pink-base-direct: 1;
    --strata-instrument-material-candy-pink-coat-strength: 1;
    --strata-instrument-material-candy-pink-coat-roughness: 0.04;
    --strata-instrument-material-candy-pink-coat-ior: 1.5;
    --strata-instrument-material-candy-cream-base-colour: #fff2d6;
    --strata-instrument-material-candy-cream-base-roughness: 0.35;
    --strata-instrument-material-candy-cream-base-metallic: 0;
    --strata-instrument-material-candy-cream-base-direct: 1;
    --strata-instrument-material-candy-cream-coat-strength: 1;
    --strata-instrument-material-candy-cream-coat-roughness: 0.04;
    --strata-instrument-material-candy-cream-coat-ior: 1.5;
    --strata-instrument-material-candy-mint-base-colour: #5fd6c0;
    --strata-instrument-material-candy-mint-base-roughness: 0.4;
    --strata-instrument-material-candy-mint-base-metallic: 0;
    --strata-instrument-material-candy-mint-base-direct: 1;
    --strata-instrument-material-candy-mint-coat-strength: 1;
    --strata-instrument-material-candy-mint-coat-roughness: 0.05;
    --strata-instrument-material-candy-mint-coat-ior: 1.5;
    --strata-instrument-material-candy-grape-base-colour: #3b2680;
    --strata-instrument-material-candy-grape-base-roughness: 0.4;
    --strata-instrument-material-candy-grape-base-metallic: 0;
    --strata-instrument-material-candy-grape-base-direct: 1;
    --strata-instrument-material-candy-grape-coat-strength: 1;
    --strata-instrument-material-candy-grape-coat-roughness: 0.05;
    --strata-instrument-material-candy-grape-coat-ior: 1.5;
    --strata-material-presets-rubber-sky-base-colour: #2d93ff;
    --strata-material-presets-rubber-sky-base-roughness: 0.82;
    --strata-material-presets-rubber-sky-base-metallic: 0;
    --strata-material-presets-rubber-coral-base-colour: #ff6a5c;
    --strata-material-presets-rubber-coral-base-roughness: 0.82;
    --strata-material-presets-rubber-coral-base-metallic: 0;
    --strata-material-presets-candy-yellow-base-colour: #ffd12e;
    --strata-material-presets-candy-yellow-base-roughness: 0.35;
    --strata-material-presets-candy-yellow-base-metallic: 0;
    --strata-material-presets-candy-yellow-coat-strength: 1;
    --strata-material-presets-candy-yellow-coat-roughness: 0.04;
    --strata-material-presets-candy-lime-base-colour: #8be04a;
    --strata-material-presets-candy-lime-base-roughness: 0.35;
    --strata-material-presets-candy-lime-base-metallic: 0;
    --strata-material-presets-candy-lime-coat-strength: 1;
    --strata-material-presets-candy-lime-coat-roughness: 0.04;
    --strata-material-presets-candy-pink-base-colour: #ff7ac0;
    --strata-material-presets-candy-pink-base-roughness: 0.35;
    --strata-material-presets-candy-pink-base-metallic: 0;
    --strata-material-presets-candy-pink-coat-strength: 1;
    --strata-material-presets-candy-pink-coat-roughness: 0.04;
    --strata-material-presets-candy-cream-base-colour: #fff2d6;
    --strata-material-presets-candy-cream-base-roughness: 0.35;
    --strata-material-presets-candy-cream-base-metallic: 0;
    --strata-material-presets-candy-cream-coat-strength: 1;
    --strata-material-presets-candy-cream-coat-roughness: 0.04;
    --strata-material-presets-candy-mint-base-colour: #5fd6c0;
    --strata-material-presets-candy-mint-base-roughness: 0.4;
    --strata-material-presets-candy-mint-base-metallic: 0;
    --strata-material-presets-candy-mint-coat-strength: 1;
    --strata-material-presets-candy-mint-coat-roughness: 0.05;
    --strata-material-presets-candy-grape-base-colour: #3b2680;
    --strata-material-presets-candy-grape-base-roughness: 0.4;
    --strata-material-presets-candy-grape-base-metallic: 0;
    --strata-material-presets-candy-grape-coat-strength: 1;
    --strata-material-presets-candy-grape-coat-roughness: 0.05;
    --strata-emitter-push-button-strength: 3400;
    --strata-emitter-segment-strength: 380;
    --strata-spring-patch-stiffness: 900;
    --strata-spring-patch-damping: 32;
  }
  :root[data-strata-character="playful"] {
    --strata-environment-intensity: 0.9;
    --strata-studio-key: 7;
    --strata-studio-key-radius: 0.45;
    --strata-studio-fill: 2.2;
    --strata-studio-front: 0.3;
    --strata-studio-strip: 1.4;
    --strata-studio-floor: 0.2;
    --strata-studio-ceiling: 0.55;
  }
  [data-strata-character="playful"] {
    --strata-material-roles-plate: candyMint;
    --strata-colour-glow-on: #ff3d8b;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-strata-theme])[data-strata-character="playful"], :root:not([data-strata-theme]) [data-strata-character="playful"] {
      --strata-material-roles-plate: candyGrape;
      --strata-colour-glow-on: #ff3d8b;
    }
  }
  [data-strata-character="playful"][data-strata-theme="light"], [data-strata-character="playful"] [data-strata-theme="light"], [data-strata-theme="light"] [data-strata-character="playful"] {
    --strata-material-roles-plate: candyMint;
    --strata-colour-glow-on: #ff3d8b;
  }
  [data-strata-character="playful"][data-strata-theme="dark"], [data-strata-character="playful"] [data-strata-theme="dark"], [data-strata-theme="dark"] [data-strata-character="playful"] {
    --strata-material-roles-plate: candyGrape;
    --strata-colour-glow-on: #ff3d8b;
  }
  [data-strata-character="playful"][data-strata-theme="contrast"], [data-strata-character="playful"] [data-strata-theme="contrast"], [data-strata-theme="contrast"] [data-strata-character="playful"] {
    --strata-material-roles-plate: candyMint;
    --strata-colour-glow-on: #ff3d8b;
  }
  [data-strata-character="playful"][data-strata-theme="contrast-dark"], [data-strata-character="playful"] [data-strata-theme="contrast-dark"], [data-strata-theme="contrast-dark"] [data-strata-character="playful"] {
    --strata-material-roles-plate: candyGrape;
    --strata-colour-glow-on: #ff3d8b;
  }
  [data-strata-character="playful"] {
    --strata-finish-polished: linear-gradient(to bottom, rgb(255 255 255 / 0.400) 0.0%, rgb(255 255 255 / 0.400) 2.5%, rgb(255 255 255 / 0.400) 5.0%, rgb(255 255 255 / 0.387) 7.5%, rgb(255 255 255 / 0.352) 10.0%, rgb(255 255 255 / 0.300) 12.5%, rgb(255 255 255 / 0.239) 15.0%, rgb(255 255 255 / 0.174) 17.5%, rgb(255 255 255 / 0.112) 20.0%, rgb(255 255 255 / 0.058) 22.5%, rgb(255 255 255 / 0.019) 25.0%, rgb(255 255 255 / 0.001) 27.5%, rgb(255 255 255 / 0.000) 30.0%, rgb(255 255 255 / 0.000) 32.5%, rgb(255 255 255 / 0.000) 35.0%, rgb(255 255 255 / 0.000) 37.5%, rgb(255 255 255 / 0.000) 40.0%, rgb(255 255 255 / 0.000) 42.5%, rgb(255 255 255 / 0.000) 45.0%, rgb(255 255 255 / 0.000) 47.5%, rgb(255 255 255 / 0.000) 50.0%, rgb(255 255 255 / 0.000) 52.5%, rgb(255 255 255 / 0.000) 55.0%, rgb(255 255 255 / 0.000) 57.5%, rgb(255 255 255 / 0.000) 60.0%, rgb(255 255 255 / 0.000) 62.5%, rgb(255 255 255 / 0.000) 65.0%, rgb(255 255 255 / 0.000) 67.5%, rgb(255 255 255 / 0.000) 70.0%, rgb(0 0 0 / 0.000) 72.5%, rgb(0 0 0 / 0.014) 75.0%, rgb(0 0 0 / 0.045) 77.5%, rgb(0 0 0 / 0.087) 80.0%, rgb(0 0 0 / 0.137) 82.5%, rgb(0 0 0 / 0.191) 85.0%, rgb(0 0 0 / 0.244) 87.5%, rgb(0 0 0 / 0.291) 90.0%, rgb(0 0 0 / 0.329) 92.5%, rgb(0 0 0 / 0.353) 95.0%, rgb(0 0 0 / 0.360) 97.5%, rgb(0 0 0 / 0.360) 100.0%);
    --strata-finish-gunmetal: linear-gradient(to bottom, rgb(255 255 255 / 0.400) 0.0%, rgb(255 255 255 / 0.400) 2.5%, rgb(255 255 255 / 0.400) 5.0%, rgb(255 255 255 / 0.387) 7.5%, rgb(255 255 255 / 0.352) 10.0%, rgb(255 255 255 / 0.300) 12.5%, rgb(255 255 255 / 0.239) 15.0%, rgb(255 255 255 / 0.174) 17.5%, rgb(255 255 255 / 0.112) 20.0%, rgb(255 255 255 / 0.058) 22.5%, rgb(255 255 255 / 0.019) 25.0%, rgb(255 255 255 / 0.001) 27.5%, rgb(255 255 255 / 0.000) 30.0%, rgb(255 255 255 / 0.000) 32.5%, rgb(255 255 255 / 0.000) 35.0%, rgb(255 255 255 / 0.000) 37.5%, rgb(255 255 255 / 0.000) 40.0%, rgb(255 255 255 / 0.000) 42.5%, rgb(255 255 255 / 0.000) 45.0%, rgb(255 255 255 / 0.000) 47.5%, rgb(255 255 255 / 0.000) 50.0%, rgb(255 255 255 / 0.000) 52.5%, rgb(255 255 255 / 0.000) 55.0%, rgb(255 255 255 / 0.000) 57.5%, rgb(255 255 255 / 0.000) 60.0%, rgb(255 255 255 / 0.000) 62.5%, rgb(255 255 255 / 0.000) 65.0%, rgb(255 255 255 / 0.000) 67.5%, rgb(255 255 255 / 0.000) 70.0%, rgb(0 0 0 / 0.000) 72.5%, rgb(0 0 0 / 0.014) 75.0%, rgb(0 0 0 / 0.045) 77.5%, rgb(0 0 0 / 0.087) 80.0%, rgb(0 0 0 / 0.137) 82.5%, rgb(0 0 0 / 0.191) 85.0%, rgb(0 0 0 / 0.244) 87.5%, rgb(0 0 0 / 0.291) 90.0%, rgb(0 0 0 / 0.329) 92.5%, rgb(0 0 0 / 0.353) 95.0%, rgb(0 0 0 / 0.360) 97.5%, rgb(0 0 0 / 0.360) 100.0%);
    --strata-finish-gold: linear-gradient(to bottom, rgb(255 255 255 / 0.400) 0.0%, rgb(255 255 255 / 0.400) 2.5%, rgb(255 255 255 / 0.400) 5.0%, rgb(255 255 255 / 0.387) 7.5%, rgb(255 255 255 / 0.352) 10.0%, rgb(255 255 255 / 0.300) 12.5%, rgb(255 255 255 / 0.239) 15.0%, rgb(255 255 255 / 0.174) 17.5%, rgb(255 255 255 / 0.112) 20.0%, rgb(255 255 255 / 0.058) 22.5%, rgb(255 255 255 / 0.019) 25.0%, rgb(255 255 255 / 0.001) 27.5%, rgb(255 255 255 / 0.000) 30.0%, rgb(255 255 255 / 0.000) 32.5%, rgb(255 255 255 / 0.000) 35.0%, rgb(255 255 255 / 0.000) 37.5%, rgb(255 255 255 / 0.000) 40.0%, rgb(255 255 255 / 0.000) 42.5%, rgb(255 255 255 / 0.000) 45.0%, rgb(255 255 255 / 0.000) 47.5%, rgb(255 255 255 / 0.000) 50.0%, rgb(255 255 255 / 0.000) 52.5%, rgb(255 255 255 / 0.000) 55.0%, rgb(255 255 255 / 0.000) 57.5%, rgb(255 255 255 / 0.000) 60.0%, rgb(255 255 255 / 0.000) 62.5%, rgb(255 255 255 / 0.000) 65.0%, rgb(255 255 255 / 0.000) 67.5%, rgb(255 255 255 / 0.000) 70.0%, rgb(0 0 0 / 0.000) 72.5%, rgb(0 0 0 / 0.014) 75.0%, rgb(0 0 0 / 0.045) 77.5%, rgb(0 0 0 / 0.087) 80.0%, rgb(0 0 0 / 0.137) 82.5%, rgb(0 0 0 / 0.191) 85.0%, rgb(0 0 0 / 0.244) 87.5%, rgb(0 0 0 / 0.291) 90.0%, rgb(0 0 0 / 0.329) 92.5%, rgb(0 0 0 / 0.353) 95.0%, rgb(0 0 0 / 0.360) 97.5%, rgb(0 0 0 / 0.360) 100.0%);
    --strata-finish-chrome: linear-gradient(to bottom, rgb(255 255 255 / 0.400) 0.0%, rgb(255 255 255 / 0.400) 2.5%, rgb(255 255 255 / 0.400) 5.0%, rgb(255 255 255 / 0.387) 7.5%, rgb(255 255 255 / 0.352) 10.0%, rgb(255 255 255 / 0.300) 12.5%, rgb(255 255 255 / 0.239) 15.0%, rgb(255 255 255 / 0.174) 17.5%, rgb(255 255 255 / 0.112) 20.0%, rgb(255 255 255 / 0.058) 22.5%, rgb(255 255 255 / 0.019) 25.0%, rgb(255 255 255 / 0.001) 27.5%, rgb(255 255 255 / 0.000) 30.0%, rgb(255 255 255 / 0.000) 32.5%, rgb(255 255 255 / 0.000) 35.0%, rgb(255 255 255 / 0.000) 37.5%, rgb(255 255 255 / 0.000) 40.0%, rgb(255 255 255 / 0.000) 42.5%, rgb(255 255 255 / 0.000) 45.0%, rgb(255 255 255 / 0.000) 47.5%, rgb(255 255 255 / 0.000) 50.0%, rgb(255 255 255 / 0.000) 52.5%, rgb(255 255 255 / 0.000) 55.0%, rgb(255 255 255 / 0.000) 57.5%, rgb(255 255 255 / 0.000) 60.0%, rgb(255 255 255 / 0.000) 62.5%, rgb(255 255 255 / 0.000) 65.0%, rgb(255 255 255 / 0.000) 67.5%, rgb(255 255 255 / 0.000) 70.0%, rgb(0 0 0 / 0.000) 72.5%, rgb(0 0 0 / 0.014) 75.0%, rgb(0 0 0 / 0.045) 77.5%, rgb(0 0 0 / 0.087) 80.0%, rgb(0 0 0 / 0.137) 82.5%, rgb(0 0 0 / 0.191) 85.0%, rgb(0 0 0 / 0.244) 87.5%, rgb(0 0 0 / 0.291) 90.0%, rgb(0 0 0 / 0.329) 92.5%, rgb(0 0 0 / 0.353) 95.0%, rgb(0 0 0 / 0.360) 97.5%, rgb(0 0 0 / 0.360) 100.0%);
    --strata-finish-rubberSky: none;
    --strata-finish-rubberCoral: none;
    --strata-finish-candyYellow: linear-gradient(to bottom, rgb(255 255 255 / 0.120) 0.0%, rgb(255 255 255 / 0.117) 2.5%, rgb(255 255 255 / 0.600) 5.0%, rgb(255 255 255 / 0.600) 7.5%, rgb(255 255 255 / 0.600) 10.0%, rgb(255 255 255 / 0.600) 12.5%, rgb(255 255 255 / 0.600) 15.0%, rgb(255 255 255 / 0.521) 17.5%, rgb(255 255 255 / 0.341) 20.0%, rgb(255 255 255 / 0.144) 22.5%, rgb(0 0 0 / 0.041) 25.0%, rgb(0 0 0 / 0.160) 27.5%, rgb(0 0 0 / 0.080) 30.0%, rgb(255 255 255 / 0.000) 32.5%, rgb(255 255 255 / 0.000) 35.0%, rgb(255 255 255 / 0.000) 37.5%, rgb(255 255 255 / 0.000) 40.0%, rgb(255 255 255 / 0.000) 42.5%, rgb(255 255 255 / 0.000) 45.0%, rgb(255 255 255 / 0.000) 47.5%, rgb(255 255 255 / 0.000) 50.0%, rgb(255 255 255 / 0.000) 52.5%, rgb(255 255 255 / 0.000) 55.0%, rgb(255 255 255 / 0.000) 57.5%, rgb(255 255 255 / 0.000) 60.0%, rgb(255 255 255 / 0.000) 62.5%, rgb(255 255 255 / 0.000) 65.0%, rgb(255 255 255 / 0.000) 67.5%, rgb(255 255 255 / 0.000) 70.0%, rgb(255 255 255 / 0.000) 72.5%, rgb(255 255 255 / 0.000) 75.0%, rgb(255 255 255 / 0.000) 77.5%, rgb(255 255 255 / 0.000) 80.0%, rgb(255 255 255 / 0.000) 82.5%, rgb(255 255 255 / 0.000) 85.0%, rgb(255 255 255 / 0.000) 87.5%, rgb(255 255 255 / 0.000) 90.0%, rgb(255 255 255 / 0.000) 92.5%, rgb(255 255 255 / 0.000) 95.0%, rgb(255 255 255 / 0.000) 97.5%, rgb(255 255 255 / 0.000) 100.0%);
    --strata-finish-candyLime: linear-gradient(to bottom, rgb(255 255 255 / 0.120) 0.0%, rgb(255 255 255 / 0.117) 2.5%, rgb(255 255 255 / 0.600) 5.0%, rgb(255 255 255 / 0.600) 7.5%, rgb(255 255 255 / 0.600) 10.0%, rgb(255 255 255 / 0.600) 12.5%, rgb(255 255 255 / 0.600) 15.0%, rgb(255 255 255 / 0.521) 17.5%, rgb(255 255 255 / 0.341) 20.0%, rgb(255 255 255 / 0.144) 22.5%, rgb(0 0 0 / 0.041) 25.0%, rgb(0 0 0 / 0.160) 27.5%, rgb(0 0 0 / 0.080) 30.0%, rgb(255 255 255 / 0.000) 32.5%, rgb(255 255 255 / 0.000) 35.0%, rgb(255 255 255 / 0.000) 37.5%, rgb(255 255 255 / 0.000) 40.0%, rgb(255 255 255 / 0.000) 42.5%, rgb(255 255 255 / 0.000) 45.0%, rgb(255 255 255 / 0.000) 47.5%, rgb(255 255 255 / 0.000) 50.0%, rgb(255 255 255 / 0.000) 52.5%, rgb(255 255 255 / 0.000) 55.0%, rgb(255 255 255 / 0.000) 57.5%, rgb(255 255 255 / 0.000) 60.0%, rgb(255 255 255 / 0.000) 62.5%, rgb(255 255 255 / 0.000) 65.0%, rgb(255 255 255 / 0.000) 67.5%, rgb(255 255 255 / 0.000) 70.0%, rgb(255 255 255 / 0.000) 72.5%, rgb(255 255 255 / 0.000) 75.0%, rgb(255 255 255 / 0.000) 77.5%, rgb(255 255 255 / 0.000) 80.0%, rgb(255 255 255 / 0.000) 82.5%, rgb(255 255 255 / 0.000) 85.0%, rgb(255 255 255 / 0.000) 87.5%, rgb(255 255 255 / 0.000) 90.0%, rgb(255 255 255 / 0.000) 92.5%, rgb(255 255 255 / 0.000) 95.0%, rgb(255 255 255 / 0.000) 97.5%, rgb(255 255 255 / 0.000) 100.0%);
    --strata-finish-candyPink: linear-gradient(to bottom, rgb(255 255 255 / 0.120) 0.0%, rgb(255 255 255 / 0.117) 2.5%, rgb(255 255 255 / 0.600) 5.0%, rgb(255 255 255 / 0.600) 7.5%, rgb(255 255 255 / 0.600) 10.0%, rgb(255 255 255 / 0.600) 12.5%, rgb(255 255 255 / 0.600) 15.0%, rgb(255 255 255 / 0.521) 17.5%, rgb(255 255 255 / 0.341) 20.0%, rgb(255 255 255 / 0.144) 22.5%, rgb(0 0 0 / 0.041) 25.0%, rgb(0 0 0 / 0.160) 27.5%, rgb(0 0 0 / 0.080) 30.0%, rgb(255 255 255 / 0.000) 32.5%, rgb(255 255 255 / 0.000) 35.0%, rgb(255 255 255 / 0.000) 37.5%, rgb(255 255 255 / 0.000) 40.0%, rgb(255 255 255 / 0.000) 42.5%, rgb(255 255 255 / 0.000) 45.0%, rgb(255 255 255 / 0.000) 47.5%, rgb(255 255 255 / 0.000) 50.0%, rgb(255 255 255 / 0.000) 52.5%, rgb(255 255 255 / 0.000) 55.0%, rgb(255 255 255 / 0.000) 57.5%, rgb(255 255 255 / 0.000) 60.0%, rgb(255 255 255 / 0.000) 62.5%, rgb(255 255 255 / 0.000) 65.0%, rgb(255 255 255 / 0.000) 67.5%, rgb(255 255 255 / 0.000) 70.0%, rgb(255 255 255 / 0.000) 72.5%, rgb(255 255 255 / 0.000) 75.0%, rgb(255 255 255 / 0.000) 77.5%, rgb(255 255 255 / 0.000) 80.0%, rgb(255 255 255 / 0.000) 82.5%, rgb(255 255 255 / 0.000) 85.0%, rgb(255 255 255 / 0.000) 87.5%, rgb(255 255 255 / 0.000) 90.0%, rgb(255 255 255 / 0.000) 92.5%, rgb(255 255 255 / 0.000) 95.0%, rgb(255 255 255 / 0.000) 97.5%, rgb(255 255 255 / 0.000) 100.0%);
    --strata-finish-candyCream: linear-gradient(to bottom, rgb(255 255 255 / 0.120) 0.0%, rgb(255 255 255 / 0.117) 2.5%, rgb(255 255 255 / 0.600) 5.0%, rgb(255 255 255 / 0.600) 7.5%, rgb(255 255 255 / 0.600) 10.0%, rgb(255 255 255 / 0.600) 12.5%, rgb(255 255 255 / 0.600) 15.0%, rgb(255 255 255 / 0.521) 17.5%, rgb(255 255 255 / 0.341) 20.0%, rgb(255 255 255 / 0.144) 22.5%, rgb(0 0 0 / 0.041) 25.0%, rgb(0 0 0 / 0.160) 27.5%, rgb(0 0 0 / 0.080) 30.0%, rgb(255 255 255 / 0.000) 32.5%, rgb(255 255 255 / 0.000) 35.0%, rgb(255 255 255 / 0.000) 37.5%, rgb(255 255 255 / 0.000) 40.0%, rgb(255 255 255 / 0.000) 42.5%, rgb(255 255 255 / 0.000) 45.0%, rgb(255 255 255 / 0.000) 47.5%, rgb(255 255 255 / 0.000) 50.0%, rgb(255 255 255 / 0.000) 52.5%, rgb(255 255 255 / 0.000) 55.0%, rgb(255 255 255 / 0.000) 57.5%, rgb(255 255 255 / 0.000) 60.0%, rgb(255 255 255 / 0.000) 62.5%, rgb(255 255 255 / 0.000) 65.0%, rgb(255 255 255 / 0.000) 67.5%, rgb(255 255 255 / 0.000) 70.0%, rgb(255 255 255 / 0.000) 72.5%, rgb(255 255 255 / 0.000) 75.0%, rgb(255 255 255 / 0.000) 77.5%, rgb(255 255 255 / 0.000) 80.0%, rgb(255 255 255 / 0.000) 82.5%, rgb(255 255 255 / 0.000) 85.0%, rgb(255 255 255 / 0.000) 87.5%, rgb(255 255 255 / 0.000) 90.0%, rgb(255 255 255 / 0.000) 92.5%, rgb(255 255 255 / 0.000) 95.0%, rgb(255 255 255 / 0.000) 97.5%, rgb(255 255 255 / 0.000) 100.0%);
    --strata-finish-candyMint: linear-gradient(to bottom, rgb(255 255 255 / 0.080) 0.0%, rgb(255 255 255 / 0.078) 2.5%, rgb(255 255 255 / 0.600) 5.0%, rgb(255 255 255 / 0.600) 7.5%, rgb(255 255 255 / 0.600) 10.0%, rgb(255 255 255 / 0.600) 12.5%, rgb(255 255 255 / 0.600) 15.0%, rgb(255 255 255 / 0.521) 17.5%, rgb(255 255 255 / 0.341) 20.0%, rgb(255 255 255 / 0.144) 22.5%, rgb(0 0 0 / 0.041) 25.0%, rgb(0 0 0 / 0.160) 27.5%, rgb(0 0 0 / 0.080) 30.0%, rgb(255 255 255 / 0.000) 32.5%, rgb(255 255 255 / 0.000) 35.0%, rgb(255 255 255 / 0.000) 37.5%, rgb(255 255 255 / 0.000) 40.0%, rgb(255 255 255 / 0.000) 42.5%, rgb(255 255 255 / 0.000) 45.0%, rgb(255 255 255 / 0.000) 47.5%, rgb(255 255 255 / 0.000) 50.0%, rgb(255 255 255 / 0.000) 52.5%, rgb(255 255 255 / 0.000) 55.0%, rgb(255 255 255 / 0.000) 57.5%, rgb(255 255 255 / 0.000) 60.0%, rgb(255 255 255 / 0.000) 62.5%, rgb(255 255 255 / 0.000) 65.0%, rgb(255 255 255 / 0.000) 67.5%, rgb(255 255 255 / 0.000) 70.0%, rgb(255 255 255 / 0.000) 72.5%, rgb(255 255 255 / 0.000) 75.0%, rgb(255 255 255 / 0.000) 77.5%, rgb(255 255 255 / 0.000) 80.0%, rgb(255 255 255 / 0.000) 82.5%, rgb(255 255 255 / 0.000) 85.0%, rgb(255 255 255 / 0.000) 87.5%, rgb(255 255 255 / 0.000) 90.0%, rgb(255 255 255 / 0.000) 92.5%, rgb(255 255 255 / 0.000) 95.0%, rgb(255 255 255 / 0.000) 97.5%, rgb(255 255 255 / 0.000) 100.0%);
    --strata-finish-candyGrape: linear-gradient(to bottom, rgb(255 255 255 / 0.080) 0.0%, rgb(255 255 255 / 0.078) 2.5%, rgb(255 255 255 / 0.600) 5.0%, rgb(255 255 255 / 0.600) 7.5%, rgb(255 255 255 / 0.600) 10.0%, rgb(255 255 255 / 0.600) 12.5%, rgb(255 255 255 / 0.600) 15.0%, rgb(255 255 255 / 0.521) 17.5%, rgb(255 255 255 / 0.341) 20.0%, rgb(255 255 255 / 0.144) 22.5%, rgb(0 0 0 / 0.041) 25.0%, rgb(0 0 0 / 0.160) 27.5%, rgb(0 0 0 / 0.080) 30.0%, rgb(255 255 255 / 0.000) 32.5%, rgb(255 255 255 / 0.000) 35.0%, rgb(255 255 255 / 0.000) 37.5%, rgb(255 255 255 / 0.000) 40.0%, rgb(255 255 255 / 0.000) 42.5%, rgb(255 255 255 / 0.000) 45.0%, rgb(255 255 255 / 0.000) 47.5%, rgb(255 255 255 / 0.000) 50.0%, rgb(255 255 255 / 0.000) 52.5%, rgb(255 255 255 / 0.000) 55.0%, rgb(255 255 255 / 0.000) 57.5%, rgb(255 255 255 / 0.000) 60.0%, rgb(255 255 255 / 0.000) 62.5%, rgb(255 255 255 / 0.000) 65.0%, rgb(255 255 255 / 0.000) 67.5%, rgb(255 255 255 / 0.000) 70.0%, rgb(255 255 255 / 0.000) 72.5%, rgb(255 255 255 / 0.000) 75.0%, rgb(255 255 255 / 0.000) 77.5%, rgb(255 255 255 / 0.000) 80.0%, rgb(255 255 255 / 0.000) 82.5%, rgb(255 255 255 / 0.000) 85.0%, rgb(255 255 255 / 0.000) 87.5%, rgb(255 255 255 / 0.000) 90.0%, rgb(255 255 255 / 0.000) 92.5%, rgb(255 255 255 / 0.000) 95.0%, rgb(255 255 255 / 0.000) 97.5%, rgb(255 255 255 / 0.000) 100.0%);
    --strata-finish-role-knob-cap: var(--strata-finish-rubberSky);
    --strata-finish-role-knob-skirt: var(--strata-finish-candyYellow);
    --strata-finish-role-fader-cap: var(--strata-finish-rubberCoral);
    --strata-finish-role-lever: var(--strata-finish-candyLime);
    --strata-finish-role-rocker-plate: var(--strata-finish-candyPink);
    --strata-finish-role-plate: var(--strata-finish-candyMint);
    --strata-finish-role-bezel: var(--strata-finish-candyCream);
    --strata-finish-role-lens: var(--strata-finish-glass);
    --strata-finish-role-display: var(--strata-finish-glass);
    --strata-finish-role-glow-on: var(--strata-finish-emissive);
    --strata-finish-role-glow-off: var(--strata-finish-glass);
  }
}

@layer strata.tokens, strata.theme, strata.components;

@font-face {
  font-family: "Strata Segments";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("data:font/ttf;base64,AAEAAAAKAIAAAwAgT1MvMmNGYxwAAACsAAAAYGNtYXAudS/fAAABDAAAAhRnbHlmbDAeagAAAyAAACGYaGVhZGFuQ6EAACS4AAAANmhoZWEFrAJSAAAk8AAAACRobXR4k6gYywAAJRQAAAD8bG9jYQfZEKQAACYQAAAAgG1heHAARwAsAAAmkAAAACBuYW1lEkcp/QAAJrAAAAEAcG9zdP+fADMAACewAAAAIAADAlgBkAAFAAACigJYAAAASwKKAlgAAAFeADIBLAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAABVR1NHAEAAIAB6A1L/agAAA1IAlgAAAAEAAAAAArwCvAAAACAAAAAAAAEAAwABAAAADAAEAggAAAB+AEAABQA+ACAALQAuADAAMQAyADMANAA1ADYANwA4ADkAOgA9AEEAQgBDAEQARQBGAEcASABJAEoATABOAE8AUABRAFIAUwBUAFUAVgBZAFoAXwBhAGIAYwBkAGUAZgBnAGgAaQBqAGwAbgBvAHAAcQByAHMAdAB1AHYAeQB6IBMgFP//AAAAIAAtAC4AMAAxADIAMwA0ADUANgA3ADgAOQA6AD0AQQBCAEMARABFAEYARwBIAEkASgBMAE4ATwBQAFEAUgBTAFQAVQBWAFkAWgBfAGEAYgBjAGQAZQBmAGcAaABpAGoAbABuAG8AcABxAHIAcwB0AHUAdgB5AHogEyAU////4f/V/9X/1P/U/9T/1P/U/9T/1P/U/9T/1P/U/9L/z//P/8//z//P/8//z//P/8//z//O/83/zf/N/83/zf/N/83/zf/N/8v/y//H/8b/xv/G/8b/xv/G/8b/xv/G/8b/xf/E/8T/xP/E/8T/xP/E/8T/xP/C/8LgKuAqAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgBQAAACCAK8AAMABwAAAQEBAQEBAQEAUAAAAbgAAP5wAWgAAP6YAAACvAAA/UQClAAA/ZQAAAABAHkBOwHfAYEABQAAAQEBAQEBAHkAIwEgACP/3f7gAV4AIwAA/93/3QAAAAEBBAAAAVQAUAADAAABAQEBAQQAAABQAAAAAABQAAD/sAAAAAYAUAAAAggCvAAFAAsAEQAXAB0AIwAAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAHkAIwEgACP/3f7gASYAAAAjACMAAP/d/90AAAAjACMAAP/d/pQAIwEgACP/3f7g/7QAAAAjACMAAP/d/90AAAAjACMAAP/dApkAIwAA/93/3QAA/xEA6QAj/93/F//d/ugA6QAj/93/F//d//oAIwAA/93/3QAAAEwA6QAj/93/F//dAV4A6QAj/93/F//dAAIBwgApAggCkwAFAAsAAAEBAQEBAQEBAQEBAQHCAAAAIwAjAAD/3f/dAAAAIwAjAAD/3QGHAOkAI//d/xf/3f7oAOkAI//d/xf/3QAFAFAAAAIIArwABQALABEAFwAdAAABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAeQAjASAAI//d/uABJgAAACMAIwAA/93+lAAjASAAI//d/uD/tAAAACMAIwAA/90ABgAjASAAI//d/uACmQAjAAD/3f/dAAD/EQDpACP/3f8X/93+vwAjAAD/3f/dAAAATADpACP/3f8X/90BNQAjAAD/3f/dAAAABQB5AAACCAK8AAUACwARABcAHQAAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAHkAIwEgACP/3f7gASYAAAAjACMAAP/d/90AAAAjACMAAP/d/pQAIwEgACP/3f7g/90AIwEgACP/3f7gApkAIwAA/93/3QAA/xEA6QAj/93/F//d/ugA6QAj/93/F//d//oAIwAA/93/3QAAAV4AIwAA/93/3QAAAAQAUAApAggCkwAFAAsAEQAXAAABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBwgAAACMAIwAA/93/3QAAACMAIwAA/93+awAAACMAIwAA/90ABgAjASAAI//d/uABhwDpACP/3f8X/93+6ADpACP/3f8X/90BXgDpACP/3f8X/93/+gAjAAD/3f/dAAAABQBQAAACCAK8AAUACwARABcAHQAAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAHkAIwEgACP/3f7gASYAAAAjACMAAP/d/pQAIwEgACP/3f7g/7QAAAAjACMAAP/dAAYAIwEgACP/3f7gApkAIwAA/93/3QAA/dYA6QAj/93/F//d//oAIwAA/93/3QAAAYcA6QAj/93/F//d//oAIwAA/93/3QAAAAYAUAAAAggCvAAFAAsAEQAXAB0AIwAAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAHkAIwEgACP/3f7gASYAAAAjACMAAP/d/pQAIwEgACP/3f7g/7QAAAAjACMAAP/d/90AAAAjACMAAP/dAAYAIwEgACP/3f7gApkAIwAA/93/3QAA/dYA6QAj/93/F//d//oAIwAA/93/3QAAAEwA6QAj/93/F//dAV4A6QAj/93/F//d//oAIwAA/93/3QAAAAMAeQApAggCvAAFAAsAEQAAAQEBAQEBAQEBAQEBAQEBAQEBAHkAIwEgACP/3f7gASYAAAAjACMAAP/d/90AAAAjACMAAP/dApkAIwAA/93/3QAA/xEA6QAj/93/F//d/ugA6QAj/93/F//dAAcAUAAAAggCvAAFAAsAEQAXAB0AIwApAAABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAeQAjASAAI//d/uABJgAAACMAIwAA/93/3QAAACMAIwAA/93+lAAjASAAI//d/uD/tAAAACMAIwAA/93/3QAAACMAIwAA/90ABgAjASAAI//d/uACmQAjAAD/3f/dAAD/EQDpACP/3f8X/93+6ADpACP/3f8X/93/+gAjAAD/3f/dAAAATADpACP/3f8X/90BXgDpACP/3f8X/93/+gAjAAD/3f/dAAAABgBQAAACCAK8AAUACwARABcAHQAjAAABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAeQAjASAAI//d/uABJgAAACMAIwAA/93/3QAAACMAIwAA/93+lAAjASAAI//d/uD/tAAAACMAIwAA/90ABgAjASAAI//d/uACmQAjAAD/3f/dAAD/EQDpACP/3f8X/93+6ADpACP/3f8X/93/+gAjAAD/3f/dAAABhwDpACP/3f8X/93/+gAjAAD/3f/dAAAAAgEEAJYBVAImAAMABwAAAQEBAQEBAQEBBAAAAFAAAP+wAAAAUAAAAJYAUAAA/7ABQABQAAD/sAACAHkAAAHfAYEABQALAAABAQEBAQEBAQEBAQEAeQAjASAAI//d/uD/3QAjASAAI//d/uAAIwAjAAD/3f/dAAABXgAjAAD/3f/dAAAABgBQACkCCAK8AAUACwARABcAHQAjAAABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAeQAjASAAI//d/uABJgAAACMAIwAA/93/3QAAACMAIwAA/93+awAAACMAIwAA/93/3QAAACMAIwAA/90ABgAjASAAI//d/uACmQAjAAD/3f/dAAD/EQDpACP/3f8X/93+6ADpACP/3f8X/90AIwDpACP/3f8X/90BXgDpACP/3f8X/93/+gAjAAD/3f/dAAAABQBQAAACCAKTAAUACwARABcAHQAAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAcIAAAAjACMAAP/d/pQAIwEgACP/3f7g/7QAAAAjACMAAP/d/90AAAAjACMAAP/dAAYAIwEgACP/3f7gAEwA6QAj/93/F//d//oAIwAA/93/3QAAAEwA6QAj/93/F//dAV4A6QAj/93/F//d//oAIwAA/93/3QAAAAQAUAAAAd8CvAAFAAsAEQAXAAABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAeQAjASAAI//d/uD/3QAjASAAI//d/uD/tAAAACMAIwAA/93/3QAAACMAIwAA/90CmQAjAAD/3f/dAAD9rQAjAAD/3f/dAAAATADpACP/3f8X/90BXgDpACP/3f8X/90ABQBQAAACCAKTAAUACwARABcAHQAAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAcIAAAAjACMAAP/d/90AAAAjACMAAP/d/pQAIwEgACP/3f7g/7QAAAAjACMAAP/dAAYAIwEgACP/3f7gAYcA6QAj/93/F//d/ugA6QAj/93/F//d//oAIwAA/93/3QAAAEwA6QAj/93/F//dATUAIwAA/93/3QAAAAUAUAAAAd8CvAAFAAsAEQAXAB0AAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQB5ACMBIAAj/93+4P/dACMBIAAj/93+4P+0AAAAIwAjAAD/3f/dAAAAIwAjAAD/3QAGACMBIAAj/93+4AKZACMAAP/d/90AAP2tACMAAP/d/90AAABMAOkAI//d/xf/3QFeAOkAI//d/xf/3f/6ACMAAP/d/90AAAAEAFAAKQHfArwABQALABEAFwAAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAHkAIwEgACP/3f7g/7QAAAAjACMAAP/d/90AAAAjACMAAP/dAAYAIwEgACP/3f7gApkAIwAA/93/3QAA/dYA6QAj/93/F//dAV4A6QAj/93/F//d//oAIwAA/93/3QAAAAUAUAAAAggCvAAFAAsAEQAXAB0AAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQB5ACMBIAAj/93+4AEmAAAAIwAjAAD/3f6UACMBIAAj/93+4P+0AAAAIwAjAAD/3f/dAAAAIwAjAAD/3QKZACMAAP/d/90AAP3WAOkAI//d/xf/3f/6ACMAAP/d/90AAABMAOkAI//d/xf/3QFeAOkAI//d/xf/3QAFAFAAKQIIApMABQALABEAFwAdAAABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBwgAAACMAIwAA/93/3QAAACMAIwAA/93+awAAACMAIwAA/93/3QAAACMAIwAA/90ABgAjASAAI//d/uABhwDpACP/3f8X/93+6ADpACP/3f8X/90AIwDpACP/3f8X/90BXgDpACP/3f8X/93/+gAjAAD/3f/dAAAAAgBQACkAlgKTAAUACwAAAQEBAQEBAQEBAQEBAFAAAAAjACMAAP/d/90AAAAjACMAAP/dAEwA6QAj/93/F//dAV4A6QAj/93/F//dAAQAUAAAAggCkwAFAAsAEQAXAAABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBwgAAACMAIwAA/93/3QAAACMAIwAA/93+lAAjASAAI//d/uD/tAAAACMAIwAA/90BhwDpACP/3f8X/93+6ADpACP/3f8X/93/+gAjAAD/3f/dAAAATADpACP/3f8X/90AAwBQAAAB3wKTAAUACwARAAABAQEBAQEBAQEBAQEBAQEBAQEAeQAjASAAI//d/uD/tAAAACMAIwAA/93/3QAAACMAIwAA/90AIwAjAAD/3f/dAAAATADpACP/3f8X/90BXgDpACP/3f8X/90AAwBQACkCCAGBAAUACwARAAABAQEBAQEBAQEBAQEBAQEBAQEBwgAAACMAIwAA/93+awAAACMAIwAA/90ABgAjASAAI//d/uAATADpACP/3f8X/90AIwDpACP/3f8X/90BNQAjAAD/3f/dAAAABgBQAAACCAK8AAUACwARABcAHQAjAAABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAeQAjASAAI//d/uABJgAAACMAIwAA/93/3QAAACMAIwAA/93+lAAjASAAI//d/uD/tAAAACMAIwAA/93/3QAAACMAIwAA/90CmQAjAAD/3f/dAAD/EQDpACP/3f8X/93+6ADpACP/3f8X/93/+gAjAAD/3f/dAAAATADpACP/3f8X/90BXgDpACP/3f8X/90ABQBQACkCCAK8AAUACwARABcAHQAAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAHkAIwEgACP/3f7gASYAAAAjACMAAP/d/msAAAAjACMAAP/d/90AAAAjACMAAP/dAAYAIwEgACP/3f7gApkAIwAA/93/3QAA/xEA6QAj/93/F//d/ugA6QAj/93/F//dAV4A6QAj/93/F//d//oAIwAA/93/3QAAAAUAUAApAggCvAAFAAsAEQAXAB0AAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQB5ACMBIAAj/93+4AEmAAAAIwAjAAD/3f/dAAAAIwAjAAD/3f5rAAAAIwAjAAD/3QAGACMBIAAj/93+4AKZACMAAP/d/90AAP8RAOkAI//d/xf/3f7oAOkAI//d/xf/3QFeAOkAI//d/xf/3f/6ACMAAP/d/90AAAACAFAAKQHfAYEABQALAAABAQEBAQEBAQEBAQEAUAAAACMAIwAA/90ABgAjASAAI//d/uAATADpACP/3f8X/90BNQAjAAD/3f/dAAAABQBQAAACCAK8AAUACwARABcAHQAAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAHkAIwEgACP/3f7gASYAAAAjACMAAP/d/pQAIwEgACP/3f7g/7QAAAAjACMAAP/dAAYAIwEgACP/3f7gApkAIwAA/93/3QAA/dYA6QAj/93/F//d//oAIwAA/93/3QAAAYcA6QAj/93/F//d//oAIwAA/93/3QAAAAQAUAAAAd8CkwAFAAsAEQAXAAABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAeQAjASAAI//d/uD/tAAAACMAIwAA/93/3QAAACMAIwAA/90ABgAjASAAI//d/uAAIwAjAAD/3f/dAAAATADpACP/3f8X/90BXgDpACP/3f8X/93/+gAjAAD/3f/dAAAABQBQAAACCAKTAAUACwARABcAHQAAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAcIAAAAjACMAAP/d/90AAAAjACMAAP/d/pQAIwEgACP/3f7g/7QAAAAjACMAAP/d/90AAAAjACMAAP/dAYcA6QAj/93/F//d/ugA6QAj/93/F//d//oAIwAA/93/3QAAAEwA6QAj/93/F//dAV4A6QAj/93/F//dAAUAUAAAAggCkwAFAAsAEQAXAB0AAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQHCAAAAIwAjAAD/3f/dAAAAIwAjAAD/3f6UACMBIAAj/93+4P+0AAAAIwAjAAD/3f/dAAAAIwAjAAD/3QGHAOkAI//d/xf/3f7oAOkAI//d/xf/3f/6ACMAAP/d/90AAABMAOkAI//d/xf/3QFeAOkAI//d/xf/3QAFAFAAAAIIApMABQALABEAFwAdAAABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBwgAAACMAIwAA/93/3QAAACMAIwAA/93+lAAjASAAI//d/uD/tAAAACMAIwAA/90ABgAjASAAI//d/uABhwDpACP/3f8X/93+6ADpACP/3f8X/93/+gAjAAD/3f/dAAABhwDpACP/3f8X/93/+gAjAAD/3f/dAAAABQBQAAACCAK8AAUACwARABcAHQAAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAHkAIwEgACP/3f7gASYAAAAjACMAAP/d/pQAIwEgACP/3f7g/7QAAAAjACMAAP/dAAYAIwEgACP/3f7gApkAIwAA/93/3QAA/xEA6QAj/93/F//d/r8AIwAA/93/3QAAAEwA6QAj/93/F//dATUAIwAA/93/3QAAAAEAeQAAAd8ARgAFAAABAQEBAQEAeQAjASAAI//d/uAAIwAjAAD/3f/dAAAABgBQACkCCAK8AAUACwARABcAHQAjAAABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAeQAjASAAI//d/uABJgAAACMAIwAA/93/3QAAACMAIwAA/93+awAAACMAIwAA/93/3QAAACMAIwAA/90ABgAjASAAI//d/uACmQAjAAD/3f/dAAD/EQDpACP/3f8X/93+6ADpACP/3f8X/90AIwDpACP/3f8X/90BXgDpACP/3f8X/93/+gAjAAD/3f/dAAAABQBQAAACCAKTAAUACwARABcAHQAAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAcIAAAAjACMAAP/d/pQAIwEgACP/3f7g/7QAAAAjACMAAP/d/90AAAAjACMAAP/dAAYAIwEgACP/3f7gAEwA6QAj/93/F//d//oAIwAA/93/3QAAAEwA6QAj/93/F//dAV4A6QAj/93/F//d//oAIwAA/93/3QAAAAMAUAAAAd8BgQAFAAsAEQAAAQEBAQEBAQEBAQEBAQEBAQEBAHkAIwEgACP/3f7g/7QAAAAjACMAAP/dAAYAIwEgACP/3f7gACMAIwAA/93/3QAAAEwA6QAj/93/F//dATUAIwAA/93/3QAAAAUAUAAAAggCkwAFAAsAEQAXAB0AAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQHCAAAAIwAjAAD/3f/dAAAAIwAjAAD/3f6UACMBIAAj/93+4P+0AAAAIwAjAAD/3QAGACMBIAAj/93+4AGHAOkAI//d/xf/3f7oAOkAI//d/xf/3f/6ACMAAP/d/90AAABMAOkAI//d/xf/3QE1ACMAAP/d/90AAAAFAFAAAAHfArwABQALABEAFwAdAAABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAeQAjASAAI//d/uD/3QAjASAAI//d/uD/tAAAACMAIwAA/93/3QAAACMAIwAA/90ABgAjASAAI//d/uACmQAjAAD/3f/dAAD9rQAjAAD/3f/dAAAATADpACP/3f8X/90BXgDpACP/3f8X/93/+gAjAAD/3f/dAAAABABQACkB3wK8AAUACwARABcAAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQB5ACMBIAAj/93+4P+0AAAAIwAjAAD/3f/dAAAAIwAjAAD/3QAGACMBIAAj/93+4AKZACMAAP/d/90AAP3WAOkAI//d/xf/3QFeAOkAI//d/xf/3f/6ACMAAP/d/90AAAAFAFAAAAIIArwABQALABEAFwAdAAABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAeQAjASAAI//d/uABJgAAACMAIwAA/93+lAAjASAAI//d/uD/tAAAACMAIwAA/93/3QAAACMAIwAA/90CmQAjAAD/3f/dAAD91gDpACP/3f8X/93/+gAjAAD/3f/dAAAATADpACP/3f8X/90BXgDpACP/3f8X/90ABABQACkCCAKTAAUACwARABcAAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQHCAAAAIwAjAAD/3f5rAAAAIwAjAAD/3f/dAAAAIwAjAAD/3QAGACMBIAAj/93+4ABMAOkAI//d/xf/3QAjAOkAI//d/xf/3QFeAOkAI//d/xf/3f/6ACMAAP/d/90AAAABAcIAKQIIAVgABQAAAQEBAQEBAcIAAAAjACMAAP/dAEwA6QAj/93/F//dAAQAUAAAAggCkwAFAAsAEQAXAAABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBwgAAACMAIwAA/93/3QAAACMAIwAA/93+lAAjASAAI//d/uD/tAAAACMAIwAA/90BhwDpACP/3f8X/93+6ADpACP/3f8X/93/+gAjAAD/3f/dAAAATADpACP/3f8X/90AAwBQAAAB3wKTAAUACwARAAABAQEBAQEBAQEBAQEBAQEBAQEAeQAjASAAI//d/uD/tAAAACMAIwAA/93/3QAAACMAIwAA/90AIwAjAAD/3f/dAAAATADpACP/3f8X/90BXgDpACP/3f8X/90AAwBQACkCCAGBAAUACwARAAABAQEBAQEBAQEBAQEBAQEBAQEBwgAAACMAIwAA/93+awAAACMAIwAA/90ABgAjASAAI//d/uAATADpACP/3f8X/90AIwDpACP/3f8X/90BNQAjAAD/3f/dAAAABABQAAACCAGBAAUACwARABcAAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQHCAAAAIwAjAAD/3f6UACMBIAAj/93+4P+0AAAAIwAjAAD/3QAGACMBIAAj/93+4ABMAOkAI//d/xf/3f/6ACMAAP/d/90AAABMAOkAI//d/xf/3QE1ACMAAP/d/90AAAAFAFAAKQIIArwABQALABEAFwAdAAABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAeQAjASAAI//d/uABJgAAACMAIwAA/93+awAAACMAIwAA/93/3QAAACMAIwAA/90ABgAjASAAI//d/uACmQAjAAD/3f/dAAD/EQDpACP/3f8X/93+6ADpACP/3f8X/90BXgDpACP/3f8X/93/+gAjAAD/3f/dAAAABQBQACkCCAK8AAUACwARABcAHQAAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAHkAIwEgACP/3f7gASYAAAAjACMAAP/d/90AAAAjACMAAP/d/msAAAAjACMAAP/dAAYAIwEgACP/3f7gApkAIwAA/93/3QAA/xEA6QAj/93/F//d/ugA6QAj/93/F//dAV4A6QAj/93/F//d//oAIwAA/93/3QAAAAIAUAApAd8BgQAFAAsAAAEBAQEBAQEBAQEBAQBQAAAAIwAjAAD/3QAGACMBIAAj/93+4ABMAOkAI//d/xf/3QE1ACMAAP/d/90AAAAFAFAAAAIIArwABQALABEAFwAdAAABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAeQAjASAAI//d/uABJgAAACMAIwAA/93+lAAjASAAI//d/uD/tAAAACMAIwAA/90ABgAjASAAI//d/uACmQAjAAD/3f/dAAD91gDpACP/3f8X/93/+gAjAAD/3f/dAAABhwDpACP/3f8X/93/+gAjAAD/3f/dAAAABABQAAAB3wKTAAUACwARABcAAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQB5ACMBIAAj/93+4P+0AAAAIwAjAAD/3f/dAAAAIwAjAAD/3QAGACMBIAAj/93+4AAjACMAAP/d/90AAABMAOkAI//d/xf/3QFeAOkAI//d/xf/3f/6ACMAAP/d/90AAAADAFAAAAIIAVgABQALABEAAAEBAQEBAQEBAQEBAQEBAQEBAQHCAAAAIwAjAAD/3f6UACMBIAAj/93+4P+0AAAAIwAjAAD/3QBMAOkAI//d/xf/3f/6ACMAAP/d/90AAABMAOkAI//d/xf/3QADAFAAAAIIAVgABQALABEAAAEBAQEBAQEBAQEBAQEBAQEBAQHCAAAAIwAjAAD/3f6UACMBIAAj/93+4P+0AAAAIwAjAAD/3QBMAOkAI//d/xf/3f/6ACMAAP/d/90AAABMAOkAI//d/xf/3QAFAFAAAAIIApMABQALABEAFwAdAAABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBwgAAACMAIwAA/93/3QAAACMAIwAA/93+lAAjASAAI//d/uD/tAAAACMAIwAA/90ABgAjASAAI//d/uABhwDpACP/3f8X/93+6ADpACP/3f8X/93/+gAjAAD/3f/dAAABhwDpACP/3f8X/93/+gAjAAD/3f/dAAAABQBQAAACCAK8AAUACwARABcAHQAAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAHkAIwEgACP/3f7gASYAAAAjACMAAP/d/pQAIwEgACP/3f7g/7QAAAAjACMAAP/dAAYAIwEgACP/3f7gApkAIwAA/93/3QAA/xEA6QAj/93/F//d/r8AIwAA/93/3QAAAEwA6QAj/93/F//dATUAIwAA/93/3QAAAAEAeQE7Ad8BgQAFAAABAQEBAQEAeQAjASAAI//d/uABXgAjAAD/3f/dAAAAAQB5ATsB3wGBAAUAAAEBAQEBAQB5ACMBIAAj/93+4AFeACMAAP/d/90AAAABAAAAAQAAgC7hL18PPPUAAwPoAAAAAAAAAAAAAAAAAAAAAABQAAACCAK8AAAACAACAAAAAAAAAAEAAANS/2oAAAJYAFAAUAIIAAEAAAAAAAAAAAAAAAAAAAA/AlgAUAJYAAACWAB5AlgBBAJYAFACWAHCAlgAUAJYAHkCWABQAlgAUAJYAFACWAB5AlgAUAJYAFACWAEEAlgAeQJYAFACWABQAlgAUAJYAFACWABQAlgAUAJYAFACWABQAlgAUAJYAFACWABQAlgAUAJYAFACWABQAlgAUAJYAFACWABQAlgAUAJYAFACWABQAlgAUAJYAFACWAB5AlgAUAJYAFACWABQAlgAUAJYAFACWABQAlgAUAJYAFACWAHCAlgAUAJYAFACWABQAlgAUAJYAFACWABQAlgAUAJYAFACWABQAlgAUAJYAFACWABQAlgAUAJYAHkCWAB5AAAAHAAcADIARACqANABJgF8AcICGAJ+ArQDKgOQA6wD0gQ4BI4E1AUqBYAFxgYcBnIGmAbeBxQHSgewCAYIXAiCCNgJHgl0CcoKIAp2CowK8gtIC34L1AwqDHAMxg0MDSINaA2eDdQOGg5wDsYO7A9CD4gPvg/0EEoQoBC2EMwAAQAAAD8AKgAHAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAYATgADAAEECQABAB4AAAADAAEECQACAA4AHgADAAEECQADACYALAADAAEECQAEAB4AUgADAAEECQAFABYAcAADAAEECQAGACwAhgBTAHQAcgBhAHQAYQAgAFMAZQBnAG0AZQBuAHQAcwBSAGUAZwB1AGwAYQByAFMAdAByAGEAdABhACAAUwBlAGcAbQBlAG4AdABzACAAMQAuADAAUwB0AHIAYQB0AGEAIABTAGUAZwBtAGUAbgB0AHMAVgBlAHIAcwBpAG8AbgAgADEALgAwAFMAdAByAGEAdABhAFMAZQBnAG0AZQBuAHQAcwAtAFIAZQBnAHUAbABhAHIAAwAAAAAAAP+cADIAAAABAAAAAAAAAAAAAAAAAAAAAA==") format("truetype");
}

/*
 * Strata components, the CSS presentation (T1): the Tier A markup contracts in docs/ui-library/components, styled
 * from the token custom properties in tokens.css. Plain HTML and CSS, no JavaScript.
 *
 * - Relief comes from the markup: `data-strata-face="raised"` and `"well"` get the shared recipes below, lit from
 *   the configured light (`--strata-light-*`), with cast shadows from `--strata-shadow-dx/dy` and the height.
 * - States come from native pseudo-classes and attributes. `data-strata-preview` ("hover", "active", "focus")
 *   shows a state statically, for specimens and parity tests only.
 * - `data-strata-mode="face"` on a scope turns relief off: the GPU presentation paints depth, and CSS paints flat
 *   faces only.
 * - Preferences: forced colours flatten to system colours, reduced motion removes transitions and animation,
 *   reduced transparency turns glass matte, and more contrast is handled by the high-contrast token themes.
 */
@layer strata.components {
  /* Light direction in the face plane (unit vector towards the light), bevel gain and the state multipliers. */
  :where([data-strata-face]) {
    --_lx: calc(var(--strata-light-x) / max(0.0001, hypot(var(--strata-light-x), var(--strata-light-y))));
    --_ly: calc(var(--strata-light-y) / max(0.0001, hypot(var(--strata-light-x), var(--strata-light-y))));
    --_gain: calc(var(--strata-bevel-gain) / 0.55);
    --_bevel: var(--strata-bevel-width);
    --_h: var(--strata-elevation-raised);
    --_lift: 1;
    --_tone: 1;
    --_finish: none;
    --_hover-tone: calc(1 + min(var(--strata-state-hover-lift), var(--strata-interior-max)));
    --_press-tone: calc(1 - min(var(--strata-state-press-sink), var(--strata-interior-max)));
  }

  /* Raised: bevel lit from the light, a cast shadow from the height, and the material's finish. The outline is 0
     except in the high-contrast themes, where it carries the shape. */
  :where([data-strata-face="raised"]) {
    border: var(--strata-outline-width) solid var(--strata-colour-edge);
    box-shadow:
      inset calc(var(--_lx) * var(--_bevel) * 0.56) calc(var(--_ly) * var(--_bevel) * 0.56) calc(var(--_bevel) * 0.6) rgb(0 0 0 / calc(0.62 * var(--_gain))),
      inset calc(var(--_lx) * var(--_bevel) * -0.6) calc(var(--_ly) * var(--_bevel) * -0.6) calc(var(--_bevel) * 0.6) rgb(255 255 255 / min(1, var(--_gain))),
      calc(var(--strata-shadow-dx) * var(--_h) * var(--_lift)) calc(var(--strata-shadow-dy) * var(--_h) * var(--_lift))
        calc(var(--_h) * var(--_lift) * 1.9 + 1px) rgb(0 0 0 / min(1, calc(var(--strata-shadow-strength) * 1.56)));
    background-image: var(--_finish);
    filter: brightness(var(--_tone));
    transition: box-shadow var(--strata-motion-fast) var(--strata-motion-easing-press), filter var(--strata-motion-fast) var(--strata-motion-easing-press);
  }

  /* Well: inverted bevel (dark nearest the light) and an edge outline at 3:1 against the panel. */
  :where([data-strata-face="well"]) {
    --_bevel: calc(var(--strata-bevel-width) * 0.75);
    border: 1px solid var(--strata-colour-edge);
    box-shadow:
      inset calc(var(--_lx) * var(--_bevel) * -0.56) calc(var(--_ly) * var(--_bevel) * -0.56) calc(var(--_bevel) * 0.6) rgb(0 0 0 / calc(0.55 * var(--_gain))),
      inset calc(var(--_lx) * var(--_bevel) * 0.6) calc(var(--_ly) * var(--_bevel) * 0.6) calc(var(--_bevel) * 0.6) rgb(255 255 255 / min(1, calc(0.19 * var(--_gain))));
    filter: brightness(var(--_tone));
    transition: filter var(--strata-motion-fast) var(--strata-motion-easing-standard);
  }

  /* Focus: an accent outline just outside the shape, in every presentation. */
  :where(.ug-button, .ug-icon-button, .ug-toggle-button, .ug-select, .ug-text-field, .ug-text-area, .ug-text-field__wrap,
    .ug-checkbox__input, .ug-radio__input, .ug-switch__input, .ug-slider, .ug-link, .ug-panel, .ug-card, .ug-tab, .ug-tabs__panel, .ug-accordion__header):is(:focus-visible, [data-strata-preview~="focus"]) {
    outline: var(--strata-focus-width) solid var(--strata-colour-accent);
    outline-offset: var(--strata-focus-offset);
  }
  :where(.ug-text-field__wrap):focus-within:has(:focus-visible) {
    outline: var(--strata-focus-width) solid var(--strata-colour-accent);
    outline-offset: var(--strata-focus-offset);
  }
  :where(.ug-text-field__input:focus-visible) { outline: none; }

  /* Hover and press on raised controls: height and interior light (section 11). */
  :where(.ug-button, .ug-icon-button, .ug-toggle-button, .ug-select):is(:hover, [data-strata-preview~="hover"]):not(:disabled, [aria-disabled="true"]) {
    --_lift: var(--strata-state-hover-height);
    --_tone: var(--_hover-tone);
  }
  :where(.ug-button, .ug-icon-button, .ug-toggle-button, .ug-select):is(:active, [data-strata-preview~="active"]):not(:disabled, [aria-disabled="true"]) {
    --_lift: var(--strata-state-press-height);
    --_tone: var(--_press-tone);
  }
  /* Wells keep their depth; only the interior light changes. */
  :where(.ug-text-field, .ug-text-area, .ug-text-field__wrap, .ug-checkbox__input, .ug-radio__input, .ug-switch__input):is(:hover, [data-strata-preview~="hover"]):not(:disabled) {
    --_tone: var(--_hover-tone);
  }

  /* Disabled: flat, no bevel, content at 38%. */
  :where([data-strata-face]):is(:disabled, [aria-disabled="true"]) {
    --_h: 0px;
    --_gain: 0;
    cursor: not-allowed;
  }

  /* ---- Surfaces ---- */

  :where(.ug-panel) {
    --_h: var(--strata-elevation-floating);
    --_finish: var(--strata-finish-role-panel);
    display: block;
    box-sizing: border-box;
    padding: var(--strata-panel-padding);
    border-radius: var(--strata-radius-panel);
    background-color: var(--strata-colour-panel);
    color: var(--strata-colour-text);
    font-family: var(--strata-font-family);
    font-size: var(--strata-font-size-body);
    line-height: var(--strata-font-line-height-body);
  }
  :where(.ug-panel[data-strata-material="glass"]) {
    background-color: color-mix(in srgb, var(--strata-colour-panel) 78%, transparent);
    backdrop-filter: blur(14px) saturate(1.2);
  }
  :where(.ug-card) {
    --_finish: var(--strata-finish-role-panel);
    display: flex;
    flex-direction: column;
    gap: var(--strata-space-3);
    box-sizing: border-box;
    padding: var(--strata-space-5);
    border-radius: var(--strata-radius-panel);
    background-color: var(--strata-colour-secondary);
    color: var(--strata-colour-text);
  }
  :where(.ug-card__title) {
    margin: 0;
    font-size: var(--strata-font-size-subtitle);
    font-weight: var(--strata-font-weight-strong);
    line-height: var(--strata-font-line-height-heading);
  }
  :where(.ug-card__body) { min-width: 0; }
  :where(.ug-card__footer) { display: flex; flex-wrap: wrap; gap: var(--strata-space-3); }

  /* ---- Plate and tray forms: a Card or Panel as a machined plate or a recessed tray, a Dialog as a plate and a Drawer as a tray (anatomy pages card.md, panel.md, dialog.md, drawer.md) ---- */

  /*
   * The plate: the same slab as before with a tight edge break (half the bevel's width, a stronger highlight) and a brushed
   * finish, so it reads as machined metal and not as a soft card. No screws. The Instrument level draws the edge as a rim of
   * parts (`gpu/instrument-plate.ts`); `flush`, or no form, is the slab of before. A Drawer's tray form has the same machined edge.
   */
  :where([data-strata-form="plate"], .ug-drawer[data-strata-form="tray"]) {
    --_bevel: calc(var(--strata-bevel-width) * 0.5);
    --_gain: calc(var(--strata-bevel-gain) / 0.55 * 1.25);
    --_finish:
      repeating-linear-gradient(90deg, rgb(255 255 255 / calc(0.05 * min(1, var(--_gain)))) 0 1px, rgb(0 0 0 / calc(0.04 * min(1, var(--_gain)))) 1px 2.5px),
      var(--strata-finish-role-panel);
  }
  /*
   * The tray: the content sits in a recessed well with a groove wall (the well recipe above), in the field's colour. A Card's
   * body is the tray; a Panel wraps what follows its title. The Instrument level adds the wall's parts. A Drawer's tray is the drawer itself: a machined edge like the plate's,
   * and at the Instrument level walls open on the edge it slides from.
   */
  :where(.ug-card__body)[data-strata-face="well"], :where(.ug-panel__tray) {
    --_finish: var(--strata-finish-role-field);
    box-sizing: border-box;
    margin: 0;
    padding: var(--strata-space-4);
    border-radius: var(--strata-radius-control);
    background-color: var(--strata-colour-field);
  }
  :where(.ug-panel__tray) { display: block; min-width: 0; }

  /* ---- Layout ---- */

  /* Components have no outer margin; these put the design language's gaps between them (section 13), scaled by
     density. A stack holds groups (fields, rows, sections) one under another; a cluster is a wrapping row of
     controls, so a row too narrow for its controls wraps instead of squeezing them. */
  :where(.ug-stack) { display: flex; flex-direction: column; gap: var(--strata-gap-group); margin: 0; }
  :where(.ug-cluster) { display: flex; flex-wrap: wrap; align-items: center; gap: var(--strata-gap-control); margin: 0; }

  /* ---- Overlays: Dialog and Drawer are top-level panels at the modal level, over a scrim ---- */

  /* Panel and scrim are siblings in the same container, scrim first; a later pair stacks above an earlier one. */
  :where(.ug-scrim) {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background-color: color-mix(in srgb, black 40%, transparent);
    transition: opacity var(--strata-motion-slow) var(--strata-motion-easing-standard);
  }
  @starting-style { :where(.ug-scrim) { opacity: 0; } }
  :where(.ug-scrim)[data-strata-closing] { opacity: 0; }
  :where(.ug-scrim, .ug-dialog, .ug-drawer)[hidden] { display: none; }

  :where(.ug-dialog, .ug-drawer) {
    --_h: var(--strata-elevation-modal);
    position: fixed;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: var(--strata-space-4);
  }
  /* Centred, never wider or taller than the viewport; the body scrolls, the title and actions stay. */
  :where(.ug-dialog) {
    inset: 0;
    margin: auto;
    width: min(32rem, calc(100vw - 2 * var(--strata-space-5)));
    height: fit-content;
    max-height: calc(100dvh - 2 * var(--strata-space-5));
  }
  :where(.ug-dialog__title, .ug-drawer__title) {
    margin: 0;
    font-size: var(--strata-font-size-subtitle);
    font-weight: var(--strata-font-weight-strong);
    line-height: var(--strata-font-line-height-heading);
  }
  :where(.ug-dialog__body, .ug-drawer__body) { flex: 1 1 auto; min-width: 0; min-height: 0; overflow: auto; }
  :where(.ug-dialog__description, .ug-drawer__description) { margin: 0 0 var(--strata-space-3); }
  :where(.ug-dialog__actions, .ug-drawer__actions) { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--strata-space-3); }

  /*
   * On a stage (a root that presents Strata on the GPU, marked by the GPU helper) overlays fill the stage, not the
   * viewport, and stack in document order: a GPU layer carries no z-index.
   */
  :where([data-strata-stage]) > :is(.ug-scrim, .ug-dialog, .ug-drawer) { position: absolute; z-index: auto; }
  /* The Scene level's decorative layers (backdrop, particles), added by the GPU helper: the stage's size, no input. */
  :where([data-strata-stage]) > .ug-stage-layer { position: absolute; inset: 0; pointer-events: none; }
  :where([data-strata-stage]) > .ug-dialog { width: min(32rem, calc(100% - 2 * var(--strata-space-5))); max-height: calc(100% - 2 * var(--strata-space-5)); }
  :where([data-strata-stage]) > :is(.ug-drawer--start, .ug-drawer--end) { width: min(24rem, calc(100% - 2 * var(--strata-space-5))); }
  :where([data-strata-stage]) > :is(.ug-drawer--top, .ug-drawer--bottom) { max-height: calc(100% - 2 * var(--strata-space-5)); }
  /* Under the GPU a scrim is a layer: the GPU fades it, so its CSS opacity stays put. */
  :where([data-strata-mode="face"]).ug-scrim { opacity: 1 !important; transition: none !important; }
  /* A drawer sits on one edge of the viewport and is square on that edge. */
  :where(.ug-drawer--start, .ug-drawer--end) { inset-block: 0; width: min(24rem, calc(100vw - 2 * var(--strata-space-5))); }
  :where(.ug-drawer--top, .ug-drawer--bottom) { inset-inline: 0; height: fit-content; max-height: calc(100dvh - 2 * var(--strata-space-5)); }
  :where(.ug-drawer--start) { inset-inline-start: 0; border-start-start-radius: 0; border-end-start-radius: 0; }
  :where(.ug-drawer--end) { inset-inline-end: 0; border-start-end-radius: 0; border-end-end-radius: 0; }
  :where(.ug-drawer--top) { inset-block-start: 0; border-start-start-radius: 0; border-start-end-radius: 0; }
  :where(.ug-drawer--bottom) { inset-block-end: 0; border-end-start-radius: 0; border-end-end-radius: 0; }

  /* ---- Buttons ---- */

  /* flex-shrink: a button is never squeezed below its label in a flex row (its min-width replaces the content minimum). */
  :where(.ug-button, .ug-icon-button, .ug-toggle-button) {
    --_finish: var(--strata-finish-role-control);
    --_text: var(--strata-colour-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--strata-space-2);
    flex-shrink: 0;
    box-sizing: border-box;
    min-width: var(--strata-target-min);
    min-height: max(calc(var(--strata-control-height) + var(--strata-control-offset)), var(--strata-target-min));
    margin: 0;
    padding: 0 var(--strata-space-5);
    border: var(--strata-outline-width) solid var(--strata-colour-edge);
    border-radius: var(--strata-radius-control);
    background-color: var(--strata-colour-secondary);
    color: var(--_text);
    font-family: var(--strata-font-family);
    font-size: var(--strata-control-font);
    font-weight: var(--strata-font-weight-strong);
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  :where(.ug-button--accent) {
    --_finish: var(--strata-finish-role-button-primary);
    --_text: var(--strata-colour-on-accent);
    background-color: var(--strata-colour-accent);
  }
  :where(.ug-button--danger) {
    --_text: var(--strata-colour-on-danger);
    background-color: var(--strata-colour-danger);
  }
  :where(.ug-button__label, .ug-toggle-button__label) { min-width: 0; }
  :where(.ug-button__icon, .ug-icon-button__icon) { display: inline-grid; width: 1.15em; height: 1.15em; }
  :where(.ug-button__icon, .ug-icon-button__icon) > svg { width: 100%; height: 100%; }
  :where(.ug-icon-button) {
    width: max(calc(var(--strata-control-height) + var(--strata-control-offset)), var(--strata-target-min));
    padding: 0;
  }
  :where(.ug-button, .ug-icon-button, .ug-toggle-button, .ug-select):is(:disabled, [aria-disabled="true"]) {
    color: color-mix(in srgb, var(--_text) 38%, transparent);
  }
  /* A latching key: held down and lit by an indicator strip while on. */
  :where(.ug-toggle-button[aria-pressed="true"]) {
    --_lift: var(--strata-state-press-height);
    --_tone: var(--_press-tone);
    /* Three cues, none of them colour alone: the key is held down, its face is tinted, and a strip runs along the
       bottom. The strip is a border, so it stays in face mode and contrast tools can read the face. */
    padding-top: 3px;
    border-bottom: 3px solid var(--strata-colour-accent);
    background-color: color-mix(in srgb, var(--strata-colour-accent) 16%, var(--strata-colour-secondary));
  }
  /* Keys on one plinth: a ButtonGroup, or a Toolbar (one tab stop). */
  :where(.ug-button-group, .ug-toolbar) {
    --_finish: var(--strata-finish-role-panel);
    display: inline-flex;
    flex-wrap: wrap;
    gap: var(--strata-space-2);
    padding: var(--strata-space-2);
    border-radius: calc(var(--strata-radius-control) + var(--strata-space-2));
    background-color: var(--strata-colour-panel);
  }
  :where(.ug-button-group--vertical, .ug-toolbar--vertical) { flex-direction: column; }
  :where(.ug-toolbar) { align-items: center; }
  :where(.ug-toolbar) > :where(.ug-divider--vertical) { margin: 0 var(--strata-space-1); }
  :where(.ug-toolbar--vertical) > :where(.ug-divider--vertical) { width: auto; height: 2px; min-height: 0; margin: var(--strata-space-1) 0; border-left: 0; border-right: 0;
    border-top: 1px solid rgb(0 0 0 / calc(0.1 + 0.12 * var(--_gain))); border-bottom: 1px solid rgb(255 255 255 / calc(0.25 + 0.4 * var(--_gain))); }

  /* ---- PushButton forms: a machined cap with a lit ring, `momentary` on the Button and `latching` on the ToggleButton (anatomy pages button.md, toggle-button.md) ---- */

  /*
   * The native button is the whole object: a box the cap plus 24 px (64 at medium), the bezel inset 5 px for the bloom's
   * halo, the lit ring under the cap and the cap itself, in the flow, carrying the icon and the label. Two registered
   * numbers light it: `--strata-lit` the ring (held, or latched) and `--strata-led` the LED (latching, while latched), 0
   * unlit and 1 lit, and `--strata-push-t` the cap's travel, 1 held and 0.45 latched, on `spring.button` (sampled into
   * `linear()` by `switchSpringCurve`, unit-tested). The GPU presentation reads all three frame by frame. With the GPU
   * drawing the object (the Instrument level) the bezel, ring and LED CSS paint is hidden and the cap's translation held,
   * so a press repaints nothing; the cap keeps its paint, which the captured cap shows. The light is never the only cue:
   * the cap goes down, and a latching button says `aria-pressed`.
   */
  @property --strata-led { syntax: "<number>"; inherits: true; initial-value: 0; }
  @property --strata-push-t { syntax: "<number>"; inherits: true; initial-value: 0; }
  :where(.ug-push) {
    --strata-lit: 0;
    --strata-led: 0;
    --strata-push-t: 0;
    --_cap: var(--strata-push-size);
    /* The room for the bloom round the bezel: 5 px for a push button, less for the latching forms' smaller keys. */
    --_halo: 5px;
    --_c: var(--strata-colour-glow-on);
    --_on: color-mix(in srgb, var(--_c), white 18%);
    --_off: color-mix(in srgb, var(--_c) 16%, #15171b);
    --_glass: color-mix(in srgb, var(--_on) calc(var(--strata-lit) * 100%), var(--_off));
    --_led-glass: color-mix(in srgb, var(--_on) calc(var(--strata-led) * 100%), var(--_off));
    --_metal: var(--strata-colour-knob);
    --_metal-light: color-mix(in srgb, var(--strata-colour-knob), white 60%);
    --_metal-shade: color-mix(in srgb, var(--strata-colour-knob), var(--strata-colour-edge) 45%);
    position: relative;
    isolation: isolate;
    box-sizing: border-box;
    min-width: calc(var(--_cap) + 2 * (var(--_halo) + 7px));
    min-height: calc(var(--_cap) + 2 * (var(--_halo) + 7px));
    max-width: 100%;
    padding: calc(var(--_halo) + 7px);
    border: 0;
    border-radius: calc(var(--_cap) / 2 + var(--_halo) + 7px);
    background: transparent;
    background-image: none;
    transition: --strata-lit var(--strata-motion-fast) linear, --strata-led var(--strata-motion-fast) linear, --strata-push-t 380ms linear(0, 0.2396 5.26%, 0.5196 10.53%, 0.7152 15.79%, 0.8355 21.05%, 0.906 26.32%, 0.9466 31.58%, 0.9697 36.84%, 0.9828 42.11%, 0.9903 47.37%, 0.9945 52.63%, 0.9969 57.89%, 0.9982 63.16%, 0.999 68.42%, 0.9994 73.68%, 0.9997 78.95%, 0.9998 84.21%, 0.9999 89.47%, 0.9999 94.74%, 1);
    touch-action: manipulation;
  }
  :where(.ug-push)[data-strata-colour="accent"] { --_c: var(--strata-colour-accent); }
  :where(.ug-push)[data-strata-colour="success"] { --_c: var(--strata-colour-success); }
  :where(.ug-push)[data-strata-colour="warning"] { --_c: var(--strata-colour-warning); }
  :where(.ug-push)[data-strata-colour="danger"] { --_c: var(--strata-colour-danger); }
  :where(.ug-push)[data-strata-colour="info"] { --_c: var(--strata-colour-info); }
  :where(.ug-push)[data-strata-colour="glowOn"] { --_c: var(--strata-colour-glow-on); }
  /* Latched: down at 0.45 of the travel with the ring and the LED lit. Held (the pointer or Space or Enter down): down all the way with the ring lit. */
  :where(.ug-push[aria-pressed="true"]:not(:disabled, [aria-disabled="true"])) { --strata-lit: 1; --strata-led: 1; --strata-push-t: 0.45; }
  :where(.ug-push:is(:active:not([data-strata-down="false"]), [data-strata-down="true"], [data-strata-preview~="active"]):not(:disabled, [aria-disabled="true"])) { --strata-lit: 1; --strata-push-t: 1; }
  :where(.ug-push__object) { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
  :where(.ug-push__object) > :where(*) { position: absolute; box-sizing: border-box; pointer-events: none; }
  /* The bezel (cap + 14 across, 4.4 px of metal), the socket and the ring under the cap (cap + 5.2 across). */
  :where(.ug-push__bezel) {
    --_h: 3px;
    --_bevel: 3px;
    inset: var(--_halo);
    border-radius: 999px;
    background: linear-gradient(160deg, var(--_metal-light), var(--_metal) 45%, var(--_metal-shade));
  }
  :where(.ug-push__socket, .ug-push__ring) { inset: calc(var(--_halo) + 4.4px); border-radius: 999px; }
  :where(.ug-push__socket) { background: var(--_off); }
  :where(.ug-push__ring) { background: var(--_glass); }
  /* In CSS the ring glows; with the GPU presenting its light is an emitter instead. */
  :where(:not([data-strata-mode="face"]) .ug-push__ring) { box-shadow: 0 0 calc(var(--strata-lit) * 16px) calc(var(--strata-lit) * 2px) color-mix(in srgb, var(--_on) 55%, transparent); }
  /* The LED: a 6 px lens on the bezel's top edge, 8 px socket under it. */
  :where(.ug-push__led-socket, .ug-push__led) { left: calc(50% - 4px); top: calc(var(--_halo) - 1.8px); width: 8px; height: 8px; border-radius: 50%; }
  :where(.ug-push__led-socket) { background: var(--_off); }
  :where(.ug-push__led) {
    left: calc(50% - 3px);
    top: calc(var(--_halo) - 0.8px);
    width: 6px;
    height: 6px;
    background: radial-gradient(circle at 36% 30%, color-mix(in srgb, var(--_led-glass), white 55%) 0, var(--_led-glass) 45%, color-mix(in srgb, var(--_led-glass), black 35%) 100%);
  }
  :where(:not([data-strata-mode="face"]) .ug-push__led) { box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 0.35), 0 0 calc(var(--strata-led) * 6px) calc(var(--strata-led) * 1px) color-mix(in srgb, var(--_on) 55%, transparent); }
  /* The cap: a pill as tall as the cap size, wide as its content, 12 px of print each side. */
  :where(.ug-push__cap) {
    --_h: 6px;
    --_finish: var(--strata-finish-role-control);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--strata-space-2);
    box-sizing: border-box;
    min-width: var(--_cap);
    min-height: var(--_cap);
    max-width: 100%;
    padding: 6px 12px;
    border-radius: calc(var(--_cap) / 2);
    line-height: 1.15;
    background-color: var(--strata-colour-secondary);
    color: var(--_text);
    text-align: center;
    overflow-wrap: anywhere;
    translate: 0 calc(var(--strata-push-t) * 2px);
  }
  :where(.ug-push.ug-button--accent) :where(.ug-push__cap) { background-color: var(--strata-colour-accent); }
  :where(.ug-push.ug-button--danger) :where(.ug-push__cap) { background-color: var(--strata-colour-danger); }
  :where(.ug-push:is(:hover, [data-strata-preview~="hover"]):not(:disabled, [aria-disabled="true"])) :where(.ug-push__bezel, .ug-push__cap) {
    --_lift: var(--strata-state-hover-height);
    --_tone: var(--_hover-tone);
  }
  :where(.ug-push:is(:active:not([data-strata-down="false"]), [data-strata-down="true"], [data-strata-preview~="active"]):not(:disabled, [aria-disabled="true"])) :where(.ug-push__cap) {
    --_lift: var(--strata-state-press-height);
    --_tone: var(--_press-tone);
  }
  /* Focus: an accent ring round the bezel, in every presentation (captured content). */
  :where(.ug-push):is(:focus-visible, [data-strata-preview~="focus"]) { outline: none; }
  :where(.ug-push:is(:focus-visible, [data-strata-preview~="focus"])) :where(.ug-push__bezel) {
    outline: var(--strata-focus-width) solid var(--strata-colour-accent);
    outline-offset: var(--strata-focus-offset);
  }
  :where(.ug-push:is(:disabled, [aria-disabled="true"])) :where(.ug-push__object) { opacity: 0.38; }
  :where(.ug-push:is(:disabled, [aria-disabled="true"])) :where(.ug-push__bezel, .ug-push__cap) { --_h: 0px; --_gain: 0; }
  :where(.ug-push[aria-busy="true"]) :where(.ug-push__cap) { cursor: progress; }
  /* With the GPU drawing the object as parts, its CSS paint is hidden and the cap stays where the layout puts it. */
  :where([data-strata-mode="face"]) .ug-push__bezel[data-strata-dome] { outline-color: transparent; }
  :where([data-strata-mode="face"]) .ug-push[data-strata-dome] .ug-push__cap { translate: none; }

  /* Reduced motion: lights and travel change at once. */
  @media (prefers-reduced-motion: reduce) {
    :where(.ug-push) { transition: none; }
  }
  /* More contrast: flat colour, no glow, edges in the text colour. */
  @media (prefers-contrast: more) {
    :where(.ug-push__socket) { background: var(--_glass); }
    :where(.ug-push__led-socket) { background: var(--_led-glass); }
    :where(.ug-push__ring) { box-shadow: none; }
    :where(.ug-push__bezel, .ug-push__ring, .ug-push__cap, .ug-push__led) { border: max(1px, var(--strata-outline-width)) solid var(--strata-colour-text); }
  }
  :where([data-strata-theme="contrast"], [data-strata-theme="contrast-dark"]) :where(.ug-push__bezel, .ug-push__ring, .ug-push__cap, .ug-push__led) { border: max(1px, var(--strata-outline-width)) solid var(--strata-colour-text); }
  /* Forced colours: system colours; Highlight is a lit ring or LED, GrayText a disabled one. Specific selectors beat the generic buttons' border. */
  @media (forced-colors: active) {
    .ug-push { forced-color-adjust: none; border: 0; background: transparent; color: ButtonText; }
    .ug-push:is(:disabled, [aria-disabled="true"]) { color: GrayText; }
    .ug-push .ug-push__bezel { border: 1px solid ButtonText; background: Canvas; }
    .ug-push .ug-push__socket { background: transparent; }
    .ug-push .ug-push__ring { border: 1px solid ButtonText; background: Canvas; box-shadow: none; }
    .ug-push[aria-pressed="true"]:not(:disabled, [aria-disabled="true"]) .ug-push__ring, .ug-push:is(:active:not([data-strata-down="false"]), [data-strata-down="true"]):not(:disabled, [aria-disabled="true"]) .ug-push__ring { background: Highlight; }
    .ug-push .ug-push__led-socket { background: transparent; }
    .ug-push .ug-push__led { border: 1px solid ButtonText; background: Canvas; box-shadow: none; }
    .ug-push[aria-pressed="true"]:not(:disabled, [aria-disabled="true"]) .ug-push__led { background: Highlight; }
    .ug-push .ug-push__cap { border: 1px solid ButtonText; background: ButtonFace; color: ButtonText; }
    .ug-push:is(:disabled, [aria-disabled="true"]) :is(.ug-push__bezel, .ug-push__ring, .ug-push__led, .ug-push__cap) { border-color: GrayText; }
    .ug-push:is(:disabled, [aria-disabled="true"]) .ug-push__cap { color: GrayText; }
    .ug-push:is(:disabled, [aria-disabled="true"]) .ug-push__object { opacity: 1; }
    .ug-push:focus-visible .ug-push__bezel { outline-color: Highlight; }
  }

  /* ---- Pad and PadGrid: a square soft cap lit from below, in a grid (anatomy page pad.md) ---- */

  /*
   * The native button is the whole object: a box the cap plus 18 px (82 at medium), the socket and the glow inset 6 px for the halo
   * and the cap's shadow, so the glow shows as a 3 px rim round the cap, and the cap itself, in the flow, carrying the icon and the
   * label. The Pad lights and moves with the PushButton's registered numbers: `--strata-lit` (the glow, 0 unlit and 1 lit: held, or
   * latched) and `--strata-push-t` (the cap's travel, 1 held and 0.45 latched, on `spring.button`, the same `linear()` curve the
   * PushButton samples). The GPU presentation reads both frame by frame; with the GPU drawing the object (the Instrument level) the
   * glow's CSS paint is hidden and the cap's translation held, so a press repaints nothing. The light is never the only cue: the cap
   * goes down, and a latching pad says `aria-pressed`.
   */
  :where(.ug-pad-grid) {
    display: grid;
    grid-template-columns: repeat(var(--strata-pad-columns, 4), minmax(0, max-content));
    justify-content: start;
    box-sizing: border-box;
    max-width: 100%;
    margin: 0;
  }
  :where(.ug-pad) {
    --strata-lit: 0;
    --strata-push-t: 0;
    --_cap: var(--strata-pad-size);
    --_radius: calc(var(--_cap) * 0.22);
    --_c: var(--strata-colour-glow-on);
    --_on: color-mix(in srgb, var(--_c), white 18%);
    --_off: color-mix(in srgb, var(--_c) 16%, #15171b);
    --_glass: color-mix(in srgb, var(--_on) calc(var(--strata-lit) * 100%), var(--_off));
    display: grid;
    position: relative;
    isolation: isolate;
    box-sizing: border-box;
    width: calc(var(--_cap) + 18px);
    max-width: 100%;
    min-width: var(--strata-target-min);
    aspect-ratio: 1;
    margin: 0;
    padding: 9px;
    border: 0;
    border-radius: calc(var(--_radius) + 9px);
    background: transparent;
    background-image: none;
    color: var(--strata-colour-text);
    font-family: var(--strata-font-family);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: --strata-lit var(--strata-motion-fast) linear, --strata-push-t 380ms linear(0, 0.2396 5.26%, 0.5196 10.53%, 0.7152 15.79%, 0.8355 21.05%, 0.906 26.32%, 0.9466 31.58%, 0.9697 36.84%, 0.9828 42.11%, 0.9903 47.37%, 0.9945 52.63%, 0.9969 57.89%, 0.9982 63.16%, 0.999 68.42%, 0.9994 73.68%, 0.9997 78.95%, 0.9998 84.21%, 0.9999 89.47%, 0.9999 94.74%, 1);
  }
  :where(.ug-pad)[data-strata-colour="accent"] { --_c: var(--strata-colour-accent); }
  :where(.ug-pad)[data-strata-colour="success"] { --_c: var(--strata-colour-success); }
  :where(.ug-pad)[data-strata-colour="warning"] { --_c: var(--strata-colour-warning); }
  :where(.ug-pad)[data-strata-colour="danger"] { --_c: var(--strata-colour-danger); }
  :where(.ug-pad)[data-strata-colour="info"] { --_c: var(--strata-colour-info); }
  :where(.ug-pad)[data-strata-colour="glowOn"] { --_c: var(--strata-colour-glow-on); }
  /* Latched: down at 0.45 of the travel with the glow lit. Held (the pointer or Space or Enter down): down all the way with the glow lit. */
  :where(.ug-pad[aria-pressed="true"]:not(:disabled, [aria-disabled="true"])) { --strata-lit: 1; --strata-push-t: 0.45; }
  :where(.ug-pad:is(:active:not([data-strata-down="false"]), [data-strata-down="true"], [data-strata-preview~="active"]):not(:disabled, [aria-disabled="true"])) { --strata-lit: 1; --strata-push-t: 1; }
  :where(.ug-pad__object) { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
  :where(.ug-pad__object) > :where(*) { position: absolute; box-sizing: border-box; inset: 6px; border-radius: calc(var(--_radius) + 3px); pointer-events: none; }
  :where(.ug-pad__socket) { background: var(--_off); }
  :where(.ug-pad__glow) { background: var(--_glass); }
  /* In CSS the glow blooms; with the GPU presenting its light is an emitter instead. */
  :where(:not([data-strata-mode="face"]) .ug-pad__glow) { box-shadow: 0 0 calc(var(--strata-lit) * 18px) calc(var(--strata-lit) * 3px) color-mix(in srgb, var(--_on) 55%, transparent); }
  /* The cap: a rounded square, as wide as the cap size, tall as it, taller when its label wraps. */
  :where(.ug-pad__cap) {
    --_h: 5px;
    --_finish: var(--strata-finish-role-control);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--strata-space-1);
    box-sizing: border-box;
    min-width: 0;
    padding: 4px;
    border-radius: var(--_radius);
    background-color: var(--strata-colour-secondary);
    color: var(--strata-colour-text);
    font-size: var(--strata-control-font);
    font-weight: var(--strata-font-weight-strong);
    line-height: 1.15;
    text-align: center;
    overflow-wrap: anywhere;
    translate: 0 calc(var(--strata-push-t) * 1.5px);
  }
  :where(.ug-pad__icon) { display: inline-grid; width: 1.4em; height: 1.4em; }
  :where(.ug-pad__icon) > svg { width: 100%; height: 100%; }
  :where(.ug-pad__label) { min-width: 0; }
  :where(.ug-pad:is(:hover, [data-strata-preview~="hover"]):not(:disabled, [aria-disabled="true"])) :where(.ug-pad__cap) {
    --_lift: var(--strata-state-hover-height);
    --_tone: var(--_hover-tone);
  }
  :where(.ug-pad:is(:active:not([data-strata-down="false"]), [data-strata-down="true"], [data-strata-preview~="active"]):not(:disabled, [aria-disabled="true"])) :where(.ug-pad__cap) {
    --_lift: var(--strata-state-press-height);
    --_tone: var(--_press-tone);
  }
  /* Focus: an accent ring round the glow, in every presentation (captured content, inside the 6 px the box leaves). */
  :where(.ug-pad):is(:focus-visible, [data-strata-preview~="focus"]) { outline: none; }
  :where(.ug-pad:is(:focus-visible, [data-strata-preview~="focus"])) :where(.ug-pad__glow) {
    outline: var(--strata-focus-width) solid var(--strata-colour-accent);
    outline-offset: var(--strata-focus-offset);
  }
  :where(.ug-pad:is(:disabled, [aria-disabled="true"])) { cursor: not-allowed; }
  :where(.ug-pad:is(:disabled, [aria-disabled="true"])) :where(.ug-pad__object) { opacity: 0.38; }
  :where(.ug-pad:is(:disabled, [aria-disabled="true"])) :where(.ug-pad__cap) { --_h: 0px; --_gain: 0; color: color-mix(in srgb, var(--strata-colour-text) 38%, transparent); }
  /* With the GPU drawing the object as parts, its CSS paint is hidden and the cap stays where the layout puts it. */
  :where([data-strata-mode="face"]) .ug-pad[data-strata-dome] .ug-pad__cap { translate: none; }

  /* ---- Keypad: machined square caps with printed legends on one plinth (anatomy page keypad.md) ---- */

  /*
   * The native `<fieldset>` is the group: 12 px of room round the plinth (for its shadow inside the group's box), the legend above.
   * The plinth is one polished frame, 2 px round a grid of keys; each key is a native `<button>` whose box is its cap plus 6 px a
   * side (56 at medium, over the 44 px a touch target should be), the cap in the flow carrying the printed legend and an optional
   * smaller second one (`shift`). A key moves with `--strata-push-t` (1 held, on `spring.button`); it has no light.
   */
  :where(.ug-keypad) {
    --_key: var(--strata-keypad-size);
    --_metal: var(--strata-colour-knob);
    --_metal-light: color-mix(in srgb, var(--strata-colour-knob), white 60%);
    --_metal-shade: color-mix(in srgb, var(--strata-colour-knob), var(--strata-colour-edge) 45%);
    box-sizing: border-box;
    display: block;
    width: fit-content;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 12px;
    border: 0;
    color: var(--strata-colour-text);
    font-family: var(--strata-font-family);
  }
  :where(.ug-keypad__legend) { padding: 0; font-size: var(--strata-font-size-caption); font-weight: var(--strata-font-weight-strong); }
  :where(.ug-keypad__plinth) {
    --_h: 2.4px;
    --_bevel: 3px;
    --_finish: none;
    display: grid;
    grid-template-columns: repeat(var(--strata-keypad-columns, 3), minmax(0, max-content));
    gap: 0;
    box-sizing: border-box;
    width: fit-content;
    max-width: 100%;
    padding: 2px;
    border-radius: calc(var(--_key) * 0.22 + 8px);
    background: linear-gradient(160deg, var(--_metal-light), var(--_metal) 45%, var(--_metal-shade));
  }
  :where(.ug-keypad__key) {
    --strata-push-t: 0;
    display: grid;
    position: relative;
    box-sizing: border-box;
    width: calc(var(--_key) + 12px);
    max-width: 100%;
    min-width: var(--strata-target-min);
    min-height: calc(var(--_key) + 12px);
    margin: 0;
    padding: 6px;
    border: 0;
    border-radius: calc(var(--_key) * 0.22 + 6px);
    background: transparent;
    background-image: none;
    color: var(--strata-colour-text);
    font-family: var(--strata-font-family);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: --strata-push-t 380ms linear(0, 0.2396 5.26%, 0.5196 10.53%, 0.7152 15.79%, 0.8355 21.05%, 0.906 26.32%, 0.9466 31.58%, 0.9697 36.84%, 0.9828 42.11%, 0.9903 47.37%, 0.9945 52.63%, 0.9969 57.89%, 0.9982 63.16%, 0.999 68.42%, 0.9994 73.68%, 0.9997 78.95%, 0.9998 84.21%, 0.9999 89.47%, 0.9999 94.74%, 1);
  }
  :where(.ug-keypad__key:is(:active:not([data-strata-down="false"]), [data-strata-down="true"], [data-strata-preview~="active"]):not(:disabled, [aria-disabled="true"])) { --strata-push-t: 1; }
  :where(.ug-keypad__cap) {
    --_h: 6px;
    --_finish: var(--strata-finish-role-control);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    box-sizing: border-box;
    min-width: 0;
    padding: 2px;
    border-radius: calc(var(--_key) * 0.22);
    background-color: var(--strata-colour-secondary);
    color: var(--strata-colour-text);
    line-height: 1.1;
    text-align: center;
    overflow-wrap: anywhere;
    translate: 0 calc(var(--strata-push-t) * 1.25px);
  }
  :where(.ug-keypad__print) { font-size: var(--strata-control-font); font-weight: var(--strata-font-weight-strong); }
  :where(.ug-keypad__shift) { font-size: var(--strata-font-size-caption); font-weight: normal; }
  /* A shifted keypad prints the second legend large and the first small, below it. */
  :where(.ug-keypad[data-strata-shifted="true"]) :where(.ug-keypad__shift) { order: -1; font-size: var(--strata-control-font); font-weight: var(--strata-font-weight-strong); }
  :where(.ug-keypad[data-strata-shifted="true"]) :where(.ug-keypad__print) { font-size: var(--strata-font-size-caption); font-weight: normal; }
  :where(.ug-keypad__key:is(:hover, [data-strata-preview~="hover"]):not(:disabled, [aria-disabled="true"])) :where(.ug-keypad__cap) {
    --_lift: var(--strata-state-hover-height);
    --_tone: var(--_hover-tone);
  }
  :where(.ug-keypad__key:is(:active:not([data-strata-down="false"]), [data-strata-down="true"], [data-strata-preview~="active"]):not(:disabled, [aria-disabled="true"])) :where(.ug-keypad__cap) {
    --_lift: var(--strata-state-press-height);
    --_tone: var(--_press-tone);
  }
  /* Focus: an accent ring round the cap, in every presentation (captured content, inside the 6 px the key's box leaves). */
  :where(.ug-keypad__key):is(:focus-visible, [data-strata-preview~="focus"]) { outline: none; }
  :where(.ug-keypad__key:is(:focus-visible, [data-strata-preview~="focus"])) :where(.ug-keypad__cap) {
    outline: var(--strata-focus-width) solid var(--strata-colour-accent);
    outline-offset: 0;
  }
  :where(.ug-keypad__key:is(:disabled, [aria-disabled="true"])) { cursor: not-allowed; }
  :where(.ug-keypad__key:is(:disabled, [aria-disabled="true"])) :where(.ug-keypad__cap) { --_h: 0px; --_gain: 0; color: color-mix(in srgb, var(--strata-colour-text) 38%, transparent); }
  /* With the GPU drawing the key as parts, the cap stays where the layout puts it. */
  :where([data-strata-mode="face"]) .ug-keypad__key[data-strata-dome] .ug-keypad__cap { translate: none; }

  /* Reduced motion: lights and travel change at once. */
  @media (prefers-reduced-motion: reduce) {
    :where(.ug-pad, .ug-keypad__key) { transition: none; }
  }
  /* More contrast: flat colour, no glow, edges in the text colour. */
  @media (prefers-contrast: more) {
    :where(.ug-pad__socket) { background: var(--_glass); }
    :where(.ug-pad__glow) { box-shadow: none; }
    :where(.ug-pad__glow, .ug-pad__cap, .ug-keypad__plinth, .ug-keypad__cap) { border: max(1px, var(--strata-outline-width)) solid var(--strata-colour-text); }
  }
  :where([data-strata-theme="contrast"], [data-strata-theme="contrast-dark"]) :where(.ug-pad__glow, .ug-pad__cap, .ug-keypad__plinth, .ug-keypad__cap) { border: max(1px, var(--strata-outline-width)) solid var(--strata-colour-text); }
  /* Forced colours: system colours; Highlight is a lit glow, GrayText a disabled pad. Specific selectors beat the generic buttons' border. */
  @media (forced-colors: active) {
    .ug-pad, .ug-keypad__key { forced-color-adjust: none; border: 0; background: transparent; color: ButtonText; }
    .ug-pad:is(:disabled, [aria-disabled="true"]), .ug-keypad__key:is(:disabled, [aria-disabled="true"]) { color: GrayText; }
    .ug-pad .ug-pad__socket { background: transparent; }
    .ug-pad .ug-pad__glow { border: 1px solid ButtonText; background: Canvas; box-shadow: none; }
    .ug-pad[aria-pressed="true"]:not(:disabled, [aria-disabled="true"]) .ug-pad__glow, .ug-pad:is(:active:not([data-strata-down="false"]), [data-strata-down="true"]):not(:disabled, [aria-disabled="true"]) .ug-pad__glow { background: Highlight; }
    .ug-pad .ug-pad__cap, .ug-keypad__key .ug-keypad__cap { border: 1px solid ButtonText; background: ButtonFace; color: ButtonText; }
    .ug-keypad .ug-keypad__plinth { border: 1px solid ButtonText; background: Canvas; }
    .ug-pad:is(:disabled, [aria-disabled="true"]) :is(.ug-pad__glow, .ug-pad__cap), .ug-keypad__key:is(:disabled, [aria-disabled="true"]) .ug-keypad__cap { border-color: GrayText; color: GrayText; }
    .ug-pad:is(:disabled, [aria-disabled="true"]) .ug-pad__object { opacity: 1; }
    .ug-pad:focus-visible .ug-pad__glow, .ug-keypad__key:focus-visible .ug-keypad__cap { outline-color: Highlight; }
  }

  /* ---- Link ---- */

  :where(.ug-link) {
    color: var(--strata-colour-accent-text);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
    border-radius: var(--strata-radius-small);
  }
  :where(.ug-link):is(:hover, [data-strata-preview~="hover"]) { text-decoration-thickness: 2px; }
  :where(.ug-link--standalone) {
    display: inline-flex;
    align-items: center;
    min-width: var(--strata-target-min);
    min-height: var(--strata-target-min);
  }

  /* ---- Field ---- */

  :where(.ug-field) {
    display: flex;
    flex-direction: column;
    gap: var(--strata-space-2);
    color: var(--strata-colour-text);
    font-family: var(--strata-font-family);
  }
  :where(.ug-field__label) { font-size: var(--strata-font-size-small); font-weight: var(--strata-font-weight-strong); }
  :where(.ug-field__help, .ug-field__error) { margin: 0; font-size: var(--strata-font-size-small); line-height: var(--strata-font-line-height-body); }
  :where(.ug-field__help) { color: var(--strata-colour-muted); }
  :where(.ug-field__error) { color: var(--strata-colour-danger-text); }
  :where(.ug-field):has(:disabled) :is(.ug-field__label, .ug-field__help) { color: color-mix(in srgb, var(--strata-colour-text) 38%, transparent); }

  /* ---- Text field and text area ---- */

  :where(.ug-text-field, .ug-text-area, .ug-text-field__wrap) {
    --_finish: var(--strata-finish-role-field);
    box-sizing: border-box;
    min-height: max(calc(var(--strata-control-height) + var(--strata-control-offset)), var(--strata-target-min));
    margin: 0;
    padding: 0 var(--strata-space-4);
    border-radius: var(--strata-radius-control);
    background-color: var(--strata-colour-field);
    color: var(--strata-colour-text);
    font-family: var(--strata-font-family);
    font-size: var(--strata-control-font);
  }
  :where(.ug-text-area) {
    padding: var(--strata-space-3) var(--strata-space-4);
    line-height: var(--strata-font-line-height-body);
    resize: vertical;
  }
  :where(.ug-text-field, .ug-text-area, .ug-text-field__input)::placeholder { color: var(--strata-colour-muted); opacity: 1; }
  :where(.ug-text-field, .ug-text-area, .ug-text-field__input):focus-visible { outline-offset: var(--strata-focus-offset); }
  :where(.ug-text-field__wrap) { display: inline-flex; align-items: center; gap: var(--strata-space-3); }
  :where(.ug-text-field__icon) { display: inline-grid; width: 1.1em; height: 1.1em; color: var(--strata-colour-muted); }
  :where(.ug-text-field__input) {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
  }
  :where(.ug-text-field, .ug-text-area, .ug-text-field__wrap, .ug-select)[aria-invalid="true"],
  :where(.ug-text-field__wrap):has([aria-invalid="true"]) {
    border-color: var(--strata-colour-danger);
    box-shadow: inset 0 0 0 1px var(--strata-colour-danger);
  }
  :where(.ug-text-field, .ug-text-area, .ug-text-field__wrap):is(:disabled, :has(:disabled)) {
    color: color-mix(in srgb, var(--strata-colour-text) 38%, transparent);
  }

  /* ---- Select ---- */

  :where(.ug-select) {
    --_finish: var(--strata-finish-role-field);
    --_text: var(--strata-colour-text);
    --_chevron: var(--strata-colour-muted);
    box-sizing: border-box;
    min-height: max(calc(var(--strata-control-height) + var(--strata-control-offset)), var(--strata-target-min));
    margin: 0;
    padding: 0 calc(var(--strata-space-5) + 12px) 0 var(--strata-space-4);
    border: var(--strata-outline-width) solid var(--strata-colour-edge);
    border-radius: var(--strata-radius-control);
    appearance: none;
    background-color: var(--strata-colour-field);
    background-image:
      linear-gradient(45deg, transparent 50%, var(--_chevron) 50%),
      linear-gradient(135deg, var(--_chevron) 50%, transparent 50%),
      var(--_finish);
    background-position: right calc(var(--strata-space-4) + 5px) center, right var(--strata-space-4) center, 0 0;
    background-size: 5px 5px, 5px 5px, 100% 100%;
    background-repeat: no-repeat;
    color: var(--_text);
    font-family: var(--strata-font-family);
    font-size: var(--strata-control-font);
    cursor: pointer;
  }

  /* ---- RotarySelector: a native select over a printed dial, with a skirt, a cap, its pointer and one detent per option (anatomy page rotary-selector.md) ---- */

  /*
   * The knob's dial with the options' labels printed round it. The root is a size container (`container-type: inline-size`)
   * as wide as its dial: the labels need the skirt, 12 px of tick and up to 5em of print each side. A root narrower than
   * 104 px + 7em (a 320 px screen, or text at 200%) prints the positions as numbers on the dial and the labels in a numbered
   * legend under it (`@container`). The transparent select covers the whole dial and takes every press; the drawn parts take none.
   * Every mark is a full-dial overlay at its angle: its tick, and its label placed on the same radius with the anchor
   * following the side (a label on the right starts at the point, on the left ends at it).
   */
  :where(.ug-rotary) {
    --_size: var(--strata-rotary-size);
    --_sweep: calc(var(--strata-knob-sweep) * 1deg);
    --_r: calc(var(--_size) / 2);
    --_rl: calc(var(--_r) + 12px);
    --_ink: color-mix(in srgb, var(--strata-colour-edge), black 55%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--strata-space-1);
    box-sizing: border-box;
    inline-size: min(100%, calc(2 * (var(--_rl) + 5em)));
    max-inline-size: 100%;
    container-type: inline-size;
    color: var(--strata-colour-text);
    font-family: var(--strata-font-family);
    font-size: var(--strata-font-size-caption);
  }
  :where(.ug-rotary__dial) {
    position: relative;
    flex: none;
    box-sizing: border-box;
    width: 100%;
    height: round(nearest, calc(2 * (var(--_rl) + 1.5em)), 2px);
    line-height: 1;
  }
  :where(.ug-rotary__scale) { position: absolute; inset: 0; pointer-events: none; counter-reset: ug-rotary; }
  :where(.ug-rotary__mark) {
    --_a: calc((var(--strata-rotary-at, 0) - 0.5) * var(--_sweep));
    position: absolute;
    inset: 0;
    counter-increment: ug-rotary;
  }
  :where(.ug-rotary__tick) {
    position: absolute;
    left: calc(50% - 0.8px);
    top: calc(50% - var(--_r) - 8px);
    width: 1.6px;
    height: 6px;
    transform-origin: 0.8px calc(var(--_r) + 8px);
    rotate: var(--_a);
    background: var(--strata-colour-text);
  }
  :where(.ug-rotary__text) {
    position: absolute;
    left: round(nearest, calc(50% + sin(var(--_a)) * var(--_rl)), 1px);
    top: round(nearest, calc(50% - cos(var(--_a)) * var(--_rl)), 1px);
    translate: calc(-50% + sin(var(--_a)) * 50%) calc(-50% - cos(var(--_a)) * 50%);
    width: max-content;
    max-width: min(6em, calc((100cqw - 2 * var(--_rl)) / 2));
    color: var(--strata-colour-muted);
    font-weight: var(--strata-font-weight-strong);
    text-align: center;
    overflow-wrap: anywhere;
  }
  :where(.ug-rotary__mark[data-strata-disabled="true"]) :where(.ug-rotary__text) { opacity: 0.45; }
  /* The selected position's print is the text colour, so the setting reads without the pointer. */
  :where(.ug-rotary__mark[data-strata-selected="true"]) :where(.ug-rotary__text) { color: var(--strata-colour-text); }
  :where(.ug-rotary__legend) {
    display: none;
    margin: 0;
    padding: 0 0 0 1.6em;
    max-width: 100%;
    color: var(--strata-colour-muted);
    font-size: var(--strata-font-size-small);
    font-weight: var(--strata-font-weight-strong);
    line-height: 1.35;
    overflow-wrap: anywhere;
  }
  :where(.ug-rotary__legend > li[data-strata-selected="true"]) { color: var(--strata-colour-text); }
  /* Narrow or enlarged: numbers on the dial, the labels in the legend. */
  @container (max-width: calc(104px + 7em)) {
    :where(.ug-rotary__text) { font-size: 0; }
    :where(.ug-rotary__text)::before { content: counter(ug-rotary); font-size: var(--strata-font-size-caption); }
    :where(.ug-rotary__legend) { display: block; }
  }
  /* The skirt: a turned flange; its upper half catches the light, its lower half the floor. */
  :where(.ug-rotary__skirt) {
    --_finish: linear-gradient(180deg, rgb(255 255 255 / calc(0.55 * min(1, var(--_gain)))) 0 44%, rgb(255 255 255 / 0) 50%, rgb(0 0 0 / calc(0.16 * min(1, var(--_gain)))) 100%);
    position: absolute;
    inset: 0;
    box-sizing: border-box;
    width: var(--_size);
    height: var(--_size);
    margin: auto;
    border-radius: 50%;
    background-color: var(--strata-colour-knob);
    pointer-events: none;
  }
  /* The cap: 0.8 of the skirt, spun metal. */
  :where(.ug-rotary__cap) {
    --_finish:
      repeating-radial-gradient(circle, rgb(255 255 255 / calc(0.06 * min(1, var(--_gain)))) 0 0.6px, rgb(0 0 0 / calc(0.05 * min(1, var(--_gain)))) 0.6px 1.4px),
      conic-gradient(from calc(var(--strata-light-azimuth) * 1deg), rgb(255 255 255 / calc(0.6 * min(1, var(--_gain)))), rgb(255 255 255 / 0) 45deg, rgb(0 0 0 / calc(0.1 * min(1, var(--_gain)))) 90deg,
        rgb(255 255 255 / 0) 135deg, rgb(255 255 255 / calc(0.45 * min(1, var(--_gain)))) 180deg, rgb(255 255 255 / 0) 225deg, rgb(0 0 0 / calc(0.1 * min(1, var(--_gain)))) 270deg,
        rgb(255 255 255 / 0) 315deg, rgb(255 255 255 / calc(0.6 * min(1, var(--_gain)))));
    position: absolute;
    inset: 0;
    box-sizing: border-box;
    width: round(nearest, calc(var(--_size) * 0.8), 2px);
    height: round(nearest, calc(var(--_size) * 0.8), 2px);
    margin: auto;
    border-radius: 50%;
    background-color: var(--strata-colour-knob);
  }
  /* Only the pointer turns, and it settles on its detent with a little overshoot (`spring.detent`). */
  :where(.ug-rotary__pointer) {
    position: absolute;
    inset: 0;
    rotate: calc((var(--strata-rotary-value, 0.5) - 0.5) * var(--_sweep));
    transition: rotate var(--strata-motion-fast) cubic-bezier(0.3, 1.45, 0.55, 1);
  }
  :where(.ug-rotary__pointer)::after {
    content: "";
    position: absolute;
    left: calc(50% - 1.1px);
    top: 7%;
    width: 2.2px;
    height: 29%;
    border-radius: 1.1px;
    background: var(--_ink);
  }
  :where(.ug-rotary__select) {
    position: absolute;
    inset: 0;
    z-index: 1;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    appearance: none;
    background: transparent;
    color: transparent;
    font: inherit;
    outline: none;
    cursor: ns-resize;
    touch-action: none;
  }
  /* The native popup (Alt+Down, F4, Space) is drawn by the browser from the options, in the page's colours. */
  :where(.ug-rotary__select) :where(option) { background-color: var(--strata-colour-panel); color: var(--strata-colour-text); }
  :where(.ug-rotary__label) {
    max-width: 100%;
    font-size: var(--strata-font-size-small);
    font-weight: var(--strata-font-weight-strong);
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
    overflow-wrap: anywhere;
  }
  :where(.ug-rotary__dial:has(> .ug-rotary__select:is(:focus-visible, [data-strata-preview~="focus"])) .ug-rotary__skirt) {
    outline: var(--strata-focus-width) solid var(--strata-colour-accent);
    outline-offset: calc(var(--strata-focus-offset) + 2px);
  }
  :where(.ug-rotary__dial:has(> .ug-rotary__select:is(:hover, [data-strata-preview~="hover"]):not(:disabled)) :is(.ug-rotary__skirt, .ug-rotary__cap)) {
    --_lift: var(--strata-state-hover-height);
    --_tone: var(--_hover-tone);
  }
  :where(.ug-rotary:has(.ug-rotary__select[aria-invalid="true"])) :where(.ug-rotary__skirt) { border: 2px solid var(--strata-colour-danger); }
  :where(.ug-rotary:has(.ug-rotary__select:disabled)) { color: color-mix(in srgb, var(--strata-colour-text) 38%, transparent); }
  :where(.ug-rotary:has(.ug-rotary__select:disabled)) :where(.ug-rotary__dial) { opacity: 0.38; }
  :where(.ug-rotary:has(.ug-rotary__select:disabled)) :where(.ug-rotary__skirt, .ug-rotary__cap) { --_h: 0px; --_gain: 0; }
  :where(.ug-rotary__select:disabled) { cursor: not-allowed; }

  /* With the GPU drawing the selector as parts, its CSS paint is hidden: at the Instrument level the skirt, cap and pointer are the Knob's parts, and a turn repaints nothing. */
  :where([data-strata-mode="face"]) :is(.ug-rotary__skirt, .ug-rotary__cap)[data-strata-dome] { border-color: transparent; }
  :where([data-strata-mode="face"]) .ug-rotary__cap[data-strata-dome] .ug-rotary__pointer { display: none; }
  @media (prefers-reduced-motion: reduce) {
    :where(.ug-rotary__pointer) { transition: none; }
  }
  /* More contrast: the pointer and the labels take the text colour, and the skirt and cap an edge. */
  @media (prefers-contrast: more) {
    :where(.ug-rotary) { --_ink: var(--strata-colour-text); }
    :where(.ug-rotary__text) { color: var(--strata-colour-text); }
    :where(.ug-rotary__skirt, .ug-rotary__cap) { border: max(1px, var(--strata-outline-width)) solid var(--strata-colour-edge); }
  }
  :where([data-strata-theme="contrast"], [data-strata-theme="contrast-dark"]) :where(.ug-rotary) { --_ink: var(--strata-colour-text); }
  :where([data-strata-theme="contrast"], [data-strata-theme="contrast-dark"]) :where(.ug-rotary__text) { color: var(--strata-colour-text); }
  /* Forced colours: a Canvas skirt and cap with CanvasText rings, pointer, ticks and print, a Highlight focus ring, GrayText when disabled. */
  @media (forced-colors: active) {
    .ug-rotary__skirt, .ug-rotary__cap { forced-color-adjust: none; border: 1px solid CanvasText; background: Canvas; }
    .ug-rotary__pointer::after, .ug-rotary__tick { forced-color-adjust: none; background: CanvasText; }
    .ug-rotary__text, .ug-rotary__legend { forced-color-adjust: none; color: CanvasText; }
    .ug-rotary__dial:has(> .ug-rotary__select:focus-visible) .ug-rotary__skirt { outline-color: Highlight; }
    .ug-rotary:has(.ug-rotary__select:disabled) :is(.ug-rotary__skirt, .ug-rotary__cap) { border-color: GrayText; }
    .ug-rotary:has(.ug-rotary__select:disabled) .ug-rotary__pointer::after, .ug-rotary:has(.ug-rotary__select:disabled) .ug-rotary__tick { background: GrayText; }
    .ug-rotary:has(.ug-rotary__select:disabled) .ug-rotary__dial { opacity: 1; }
  }

  /* ---- Checkbox and radio ---- */

  :where(.ug-checkbox, .ug-radio, .ug-switch) {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--strata-space-3);
    min-height: max(calc(var(--strata-control-height) + var(--strata-control-offset)), var(--strata-target-min));
    color: var(--strata-colour-text);
    font-family: var(--strata-font-family);
    font-size: var(--strata-control-font);
    cursor: pointer;
  }
  :where(.ug-checkbox__input, .ug-radio__input) {
    --_finish: var(--strata-finish-role-field);
    --_bevel: calc(var(--strata-bevel-width) * 0.5);
    flex: none;
    box-sizing: border-box;
    width: var(--strata-indicator);
    height: var(--strata-indicator);
    margin: 0;
    appearance: none;
    border-radius: var(--strata-radius-small);
    background-color: var(--strata-colour-field);
    cursor: inherit;
  }
  :where(.ug-radio__input) { border-radius: 50%; }
  :where(.ug-checkbox__mark, .ug-radio__dot, .ug-switch__knob) {
    position: absolute;
    left: 0;
    top: 50%;
    pointer-events: none;
  }
  :where(.ug-checkbox__label, .ug-radio__label, .ug-switch__label) { min-width: 0; }
  /* The check mark: drawn by a mask, raised when checked. */
  :where(.ug-checkbox__mark) {
    width: var(--strata-indicator);
    height: var(--strata-indicator);
    translate: 0 -50%;
    background-color: var(--strata-colour-accent);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    opacity: 0;
    filter: drop-shadow(calc(var(--strata-shadow-dx) * 1.5px) calc(var(--strata-shadow-dy) * 1.5px) 1px rgb(0 0 0 / calc(var(--strata-shadow-strength) * 1.2)));
    transition: opacity var(--strata-motion-fast) var(--strata-motion-easing-standard);
  }
  :where(.ug-checkbox__input:checked + .ug-checkbox__mark) { opacity: 1; }
  :where(.ug-checkbox__input:indeterminate + .ug-checkbox__mark) {
    opacity: 1;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12h10' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
  }
  :where(.ug-radio__dot) {
    --_size: calc(var(--strata-indicator) * 0.5);
    left: calc((var(--strata-indicator) - var(--_size)) / 2);
    width: var(--_size);
    height: var(--_size);
    translate: 0 -50%;
    border-radius: 50%;
    background: radial-gradient(circle at calc(50% + var(--strata-light-x) * 30%) calc(50% + var(--strata-light-y) * 30%),
      color-mix(in srgb, var(--strata-colour-accent), white 30%), var(--strata-colour-accent) 70%);
    box-shadow: calc(var(--strata-shadow-dx) * 2px) calc(var(--strata-shadow-dy) * 2px) 3px rgb(0 0 0 / var(--strata-shadow-strength));
    opacity: 0;
    transition: opacity var(--strata-motion-fast) var(--strata-motion-easing-standard);
  }
  :where(.ug-radio__input:checked + .ug-radio__dot) { opacity: 1; }
  :where(.ug-checkbox, .ug-radio, .ug-switch):has(:disabled) {
    color: color-mix(in srgb, var(--strata-colour-text) 38%, transparent);
    cursor: not-allowed;
  }
  :where(.ug-checkbox__input, .ug-radio__input):disabled + :is(.ug-checkbox__mark, .ug-radio__dot) { opacity: 0.38; }
  :where(.ug-checkbox__input:disabled:not(:checked, :indeterminate) + .ug-checkbox__mark, .ug-radio__input:disabled:not(:checked) + .ug-radio__dot) { opacity: 0; }
  :where(.ug-checkbox__input, .ug-radio__input, .ug-switch__input)[aria-invalid="true"] { border-color: var(--strata-colour-danger); box-shadow: inset 0 0 0 1px var(--strata-colour-danger); }
  :where(.ug-radio-group) {
    display: flex;
    flex-direction: column;
    gap: var(--strata-space-1);
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--strata-colour-text);
    font-family: var(--strata-font-family);
  }
  :where(.ug-radio-group__legend) {
    margin-bottom: var(--strata-space-2);
    padding: 0;
    font-size: var(--strata-font-size-small);
    font-weight: var(--strata-font-weight-strong);
  }

  /* ---- Switch ---- */

  :where(.ug-switch__input) {
    --_finish: var(--strata-finish-role-field);
    --_bevel: calc(var(--strata-bevel-width) * 0.5);
    flex: none;
    box-sizing: border-box;
    width: var(--strata-switch-width);
    height: var(--strata-indicator);
    margin: 0;
    appearance: none;
    border-radius: var(--strata-radius-pill);
    background-color: var(--strata-colour-track);
    cursor: inherit;
    transition: background-color var(--strata-motion-normal) var(--strata-motion-easing-standard), filter var(--strata-motion-fast) var(--strata-motion-easing-standard);
  }
  :where(.ug-switch__input:checked) {
    background-color: var(--strata-colour-accent);
    box-shadow: 0 0 calc(4px * var(--_gain) + 2px) color-mix(in srgb, var(--strata-colour-accent) 55%, transparent);
  }
  :where(.ug-switch__knob) {
    --_size: calc(var(--strata-indicator) - 2 * var(--strata-object-taper));
    left: var(--strata-object-taper);
    box-sizing: border-box;
    width: var(--_size);
    height: var(--_size);
    translate: 0 -50%;
    /* The knob keeps its colour in both states; its ring (edge off, on-accent on) keeps it at 3:1 on the track. */
    border: 1.5px solid var(--strata-colour-edge);
    border-radius: 50%;
    background: radial-gradient(circle at calc(50% + var(--strata-light-x) * 30%) calc(50% + var(--strata-light-y) * 30%),
      color-mix(in srgb, var(--strata-colour-knob), white 40%), var(--strata-colour-knob) 72%);
    box-shadow: calc(var(--strata-shadow-dx) * 3px) calc(var(--strata-shadow-dy) * 3px) 6.7px rgb(0 0 0 / var(--strata-shadow-strength));
    transition: translate var(--strata-motion-normal) var(--strata-motion-easing-standard), border-color var(--strata-motion-normal) var(--strata-motion-easing-standard);
  }
  :where(.ug-switch__input:checked + .ug-switch__knob) {
    translate: calc(var(--strata-switch-width) - var(--strata-indicator)) -50%;
    border-color: var(--strata-colour-on-accent);
  }
  :where(.ug-switch__input:disabled + .ug-switch__knob) { box-shadow: none; opacity: 0.38; }

  /* ---- Switch forms: slide, rocker, bat and wall, hardware over the same native switch (anatomy page switch.md, Forms) ---- */

  /*
   * `data-strata-form` on the row. The native input is a transparent box covering the object's whole travel (the I0.2
   * box rule), so a press anywhere on the object is a press on the input; the object (`.ug-switch__object`, decoration)
   * lies over it and takes no pointer. The throw follows `--strata-switch-t`, 0 off and 1 on, a registered number the
   * recipe transitions on the form's spring (design language section 12, clamped at the stops, sampled into `linear()`
   * by `switchSpringCurve` in `shared/switch-forms.ts`), so the GPU presentation, which follows CSS transitions, moves
   * on the same spring. On is right for a slide, and up for the others: an on rocker or wall switch has its top end
   * pressed in, and an on bat points up. Every lit flag is state shown twice: the input's checked state and the label
   * carry the meaning.
   */
  @property --strata-switch-t { syntax: "<number>"; inherits: true; initial-value: 0; }
  :where(.ug-switch[data-strata-form]) {
    --strata-switch-t: 0;
    --_box-w: 64px;
    --_box-h: 28px;
    --_metal: var(--strata-colour-knob);
    --_metal-light: color-mix(in srgb, var(--strata-colour-knob), white 60%);
    --_metal-shade: color-mix(in srgb, var(--strata-colour-knob), var(--strata-colour-edge) 45%);
    --_ink: color-mix(in srgb, var(--strata-colour-edge), black 55%);
    --_cut: color-mix(in srgb, var(--strata-colour-edge), black 70%);
    --_lit: var(--strata-colour-accent);
    --_unlit: color-mix(in srgb, var(--strata-colour-accent) 12%, var(--_metal-shade));
    --_brush: repeating-linear-gradient(90deg, rgb(255 255 255 / 0.05) 0 1px, rgb(0 0 0 / 0.04) 1px 2.5px);
    transition: --strata-switch-t var(--_throw-duration, 0s) var(--_throw, linear);
  }
  :where(.ug-switch[data-strata-form]:has(> .ug-switch__input:checked)) { --strata-switch-t: 1; }
  /* spring.slide 600 / 49, spring.rocker 1,200 / 58, spring.bat 1,400 / 45, spring.wall 1,200 / 58 (unit-tested against switchSpringCurve). */
  :where(.ug-switch[data-strata-form="slide"]) {
    --_throw-duration: 568ms;
    --_throw: linear(0, 0.1778 4.93%, 0.4282 9.86%, 0.6298 14.79%, 0.7689 19.72%, 0.8587 24.65%, 0.9145 29.58%, 0.9487 34.51%, 0.9693 39.44%, 0.9817 44.37%, 0.9891 49.3%, 0.9935 54.23%, 0.9961 59.15%, 0.9977 64.08%, 0.9986 69.01%, 0.9992 73.94%, 0.9995 78.87%, 0.9997 83.8%, 0.9998 88.73%, 0.9999 93.66%, 0.9999 98.59%, 1);
  }
  :where(.ug-switch[data-strata-form="rocker"]) {
    --_box-w: 54px;
    --_box-h: 70px;
    --_throw-duration: 160ms;
    --_throw: linear(0, 0.0528 5%, 0.1479 10%, 0.2615 15%, 0.3784 20%, 0.4893 25%, 0.5892 30%, 0.6759 35%, 0.7489 40%, 0.8089 45%, 0.8572 50%, 0.8953 55%, 0.9249 60%, 0.9474 65%, 0.9642 70%, 0.9766 75%, 0.9854 80%, 0.9916 85%, 0.9959 90%, 0.9986 95%, 1);
  }
  :where(.ug-switch[data-strata-form="bat"]) {
    --_box-w: 48px;
    --_box-h: 92px;
    --_throw-duration: 72ms;
    --_throw: linear(0, 0.0224 5.56%, 0.0627 11.11%, 0.1167 16.67%, 0.1808 22.22%, 0.2517 27.78%, 0.3266 33.33%, 0.4031 38.89%, 0.4792 44.44%, 0.5532 50%, 0.624 55.56%, 0.6904 61.11%, 0.7518 66.67%, 0.8077 72.22%, 0.8579 77.78%, 0.9022 83.33%, 0.9407 88.89%, 0.9737 94.44%, 1);
  }
  :where(.ug-switch[data-strata-form="wall"]) {
    --_box-w: 66px;
    --_box-h: 92px;
    --_throw-duration: 160ms;
    --_throw: linear(0, 0.0528 5%, 0.1479 10%, 0.2615 15%, 0.3784 20%, 0.4893 25%, 0.5892 30%, 0.6759 35%, 0.7489 40%, 0.8089 45%, 0.8572 50%, 0.8953 55%, 0.9249 60%, 0.9474 65%, 0.9642 70%, 0.9766 75%, 0.9854 80%, 0.9916 85%, 0.9959 90%, 0.9986 95%, 1);
  }
  /* The input: the box, transparent; a slide throws sideways and the others up and down, so a drag along the throw never scrolls. */
  :where(.ug-switch[data-strata-form] > .ug-switch__input) {
    width: var(--_box-w);
    height: var(--_box-h);
    border: 0;
    /* Square, so the whole box takes hits: a rounded corner would let presses there fall to the row. */
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    touch-action: pan-x;
    transition: none;
  }
  :where(.ug-switch[data-strata-form="slide"] > .ug-switch__input) { touch-action: pan-y; }
  :where(.ug-switch[data-strata-form] > .ug-switch__input:checked) { background: transparent; box-shadow: none; }
  :where(.ug-switch[data-strata-form] > .ug-switch__input)[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--strata-colour-danger); }
  :where(.ug-switch__object) {
    position: absolute;
    left: 0;
    top: calc(50% - var(--_box-h) / 2);
    width: var(--_box-w);
    height: var(--_box-h);
    pointer-events: none;
  }
  :where(.ug-switch--reverse > .ug-switch__object) { left: auto; right: 0; }
  :where(.ug-switch__object) :where(*) { position: absolute; box-sizing: border-box; pointer-events: none; }
  /* The moving parts lift a little under the pointer, as keys do (section 11). */
  :where(.ug-switch[data-strata-form]:has(> .ug-switch__input:is(:hover, [data-strata-preview~="hover"]):not(:disabled))) :where(.ug-switch__block, .ug-switch__facet, .ug-switch__lever, .ug-switch__ball) {
    --_lift: var(--strata-state-hover-height);
    --_tone: var(--_hover-tone);
  }
  :where(.ug-switch[data-strata-form]:has(> .ug-switch__input:disabled)) :where(.ug-switch__object) { opacity: 0.38; }
  :where(.ug-switch[data-strata-form]:has(> .ug-switch__input:disabled)) :where(.ug-switch__object [data-strata-face]) { --_h: 0px; --_gain: 0; }

  /* Slide (64 × 28): a slot printed in the faceplate, the block (24 × 20) sliding 28 px, the lit flag in the slot's left half once it has left it. */
  :where(.ug-switch__slot) {
    left: 7px;
    top: 10px;
    width: 50px;
    height: 8px;
    border: 0;
    border-radius: 4px;
    background-color: var(--_cut);
    box-shadow: inset 0 1px 2px rgb(0 0 0 / calc(0.55 * min(1, var(--_gain)))), 0 1px 0 rgb(255 255 255 / calc(0.5 * min(1, var(--_gain))));
  }
  :where(.ug-switch[data-strata-form="slide"] .ug-switch__flag) {
    left: 9px;
    top: 12px;
    width: 21px;
    height: 4px;
    border-radius: 1px;
    background: var(--_lit);
    opacity: clamp(0, (var(--strata-switch-t) - 0.5) * 1000, 1);
  }
  :where(.ug-switch__block) {
    --_finish: var(--_brush), linear-gradient(180deg, rgb(255 255 255 / calc(0.6 * min(1, var(--_gain)))), rgb(255 255 255 / 0) 35%, rgb(0 0 0 / 0) 70%, rgb(0 0 0 / calc(0.16 * min(1, var(--_gain)))));
    left: 6px;
    top: 4px;
    width: 24px;
    height: 20px;
    border: 1px solid var(--strata-colour-edge);
    border-radius: 3px;
    background-color: var(--_metal);
    translate: calc(var(--strata-switch-t) * 28px) 0;
  }
  :where(.ug-switch__grip) { left: calc(50% - 0.7px); top: 4px; bottom: 4px; width: 1.4px; background: var(--_ink); }

  /* Rocker (54 × 70): a polished bezel (38 × 62) and a paddle (28 × 50) whose two facets tip ±17.7°, a lit flag on its top end. */
  :where(.ug-switch__bezel) {
    left: 8px;
    top: 4px;
    width: 38px;
    height: 62px;
    border: 1px solid var(--strata-colour-edge);
    border-radius: 4px;
    background: linear-gradient(160deg, var(--_metal-light), var(--_metal) 45%, var(--_metal-shade));
    perspective: 160px;
  }
  :where(.ug-switch[data-strata-form="rocker"] .ug-switch__paddle) {
    left: 13px;
    top: 10px;
    width: 28px;
    height: 50px;
    transform: perspective(160px) rotateX(calc((2 * var(--strata-switch-t) - 1) * 17.7deg));
  }
  :where(.ug-switch__facet) {
    --_finish: var(--_brush);
    left: 0;
    width: 100%;
    height: 50%;
    border: 1px solid var(--strata-colour-edge);
  }
  /* Head-on, the raised end's facet faces away from the light (from the top) and darkens; the level one is plain metal. */
  :where(.ug-switch__facet--on) {
    top: 0;
    border-bottom: 0;
    border-radius: 2px 2px 0 0;
    background-color: color-mix(in srgb, var(--_metal-shade) calc((1 - var(--strata-switch-t)) * 100%), var(--_metal));
  }
  :where(.ug-switch__facet--off) {
    top: 50%;
    border-top: 0;
    border-radius: 0 0 2px 2px;
    background-color: color-mix(in srgb, var(--_metal-light) calc(var(--strata-switch-t) * 100%), var(--_metal));
  }
  :where(.ug-switch[data-strata-form="rocker"] .ug-switch__flag) {
    left: 5px;
    top: 3px;
    width: 18px;
    height: 9px;
    border-radius: 1px;
    background: color-mix(in srgb, var(--_lit) calc(var(--strata-switch-t) * 100%), var(--_unlit));
  }

  /* Bat (48 × 92): a nut (Ø24) and bushing (Ø14), and the lever's head-on projection: a shaft from the pivot and the
     ball, at (40 − 5.6 − 5) · sin θ = 18.9 px at the stops (θ = ±40°), through the bushing at mid-throw. */
  :where(.ug-switch__nut) {
    left: 12px;
    top: 34px;
    width: 24px;
    height: 24px;
    border: 1px solid var(--strata-colour-edge);
    border-radius: 50%;
    background: radial-gradient(circle, var(--_metal-shade) 0 5px, var(--_metal-light) 6px, var(--_metal) 7px 9px, var(--_metal-shade) 12px);
  }
  :where(.ug-switch__bushing) {
    left: 17px;
    top: 39px;
    width: 14px;
    height: 14px;
    border: 1px solid var(--strata-colour-edge);
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, var(--_metal-light), var(--_metal) 55%, var(--_metal-shade));
  }
  :where(.ug-switch__lever) {
    left: 21.3px;
    top: 27.1px;
    width: 5.4px;
    height: 18.9px;
    border-radius: 2.7px;
    background: linear-gradient(90deg, var(--_metal-shade), var(--_metal-light) 35%, var(--_metal) 65%, var(--_metal-shade));
    transform-origin: 50% 100%;
    scale: 1 calc(sin((2 * var(--strata-switch-t) - 1) * 40deg) / 0.642788);
  }
  :where(.ug-switch__ball) {
    left: 18.4px;
    top: 40.4px;
    width: 11.2px;
    height: 11.2px;
    border: 1px solid var(--strata-colour-edge);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, var(--_metal-light), var(--_metal) 55%, var(--_metal-shade));
    translate: 0 calc(sin((2 * var(--strata-switch-t) - 1) * 40deg) * -18.9px);
  }

  /* Wall (66 × 92): a plate (58 × 84, inside the box so its shadow stays in it) and a paddle (30 × 54) tipping ±9°, a lit dot near its top end. */
  :where(.ug-switch__plate) {
    left: 4px;
    top: 4px;
    width: 58px;
    height: 84px;
    border: 1px solid var(--strata-colour-edge);
    border-radius: 6px;
    background: linear-gradient(160deg, var(--_metal-light), var(--_metal) 40%, var(--_metal-shade));
  }
  :where(.ug-switch[data-strata-form="wall"] .ug-switch__paddle) {
    left: 18px;
    top: 19px;
    width: 30px;
    height: 54px;
    transform: perspective(220px) rotateX(calc((2 * var(--strata-switch-t) - 1) * 9deg));
  }
  :where(.ug-switch[data-strata-form="wall"] .ug-switch__facet--on) { border-radius: 3px 3px 0 0; }
  :where(.ug-switch[data-strata-form="wall"] .ug-switch__facet--off) { border-radius: 0 0 3px 3px; }
  :where(.ug-switch[data-strata-form="wall"] .ug-switch__flag) {
    left: 9px;
    top: 7px;
    width: 12px;
    height: 4px;
    border-radius: 2px;
    background: color-mix(in srgb, var(--_lit) calc(var(--strata-switch-t) * 100%), var(--_unlit));
  }

  /* Face mode (GPU on): the GPU tips the paddles (their facets stand at different heights) and lifts every part, so CSS
     draws them flat and head-on; the lever and ball keep their projection, which is where the GPU draws them. */
  :where([data-strata-mode="face"]) .ug-switch__paddle { transform: none; }
  :where([data-strata-mode="face"]) .ug-switch__ball[data-strata-dome] { border-color: transparent; }
  @media (prefers-reduced-motion: reduce) {
    :where(.ug-switch[data-strata-form]) { transition: none; }
  }
  /* More contrast: the high-contrast themes apply through the tokens; the slot, the grip and the parts' edges take the text colour. */
  @media (prefers-contrast: more) {
    :where(.ug-switch[data-strata-form]) { --_ink: var(--strata-colour-text); --_cut: var(--strata-colour-text); }
    :where(.ug-switch__object [data-strata-face]:not(.ug-switch__slot, .ug-switch__flag, .ug-switch__lever)) { border: max(1px, var(--strata-outline-width)) solid var(--strata-colour-text); }
  }
  :where([data-strata-theme="contrast"], [data-strata-theme="contrast-dark"]) :where(.ug-switch[data-strata-form]) { --_ink: var(--strata-colour-text); --_cut: var(--strata-colour-text); }
  /* Forced colours: Canvas parts with CanvasText edges on a CanvasText-bordered box; the moving part and the flag in
     Highlight when on, so the state shows by position and by fill; GrayText when disabled. */
  @media (forced-colors: active) {
    /* Specific enough to beat the switch's own forced-colours rules below, which fill a checked track with Highlight. */
    :where(.ug-switch[data-strata-form]) > .ug-switch__input { border: 1px solid CanvasText; background: Canvas; }
    :where(.ug-switch__object [data-strata-face]) { forced-color-adjust: none; border: 1px solid CanvasText; background: Canvas; box-shadow: none; filter: none; }
    :where(.ug-switch__slot, .ug-switch__grip, .ug-switch__lever) { forced-color-adjust: none; background: CanvasText; }
    :where(.ug-switch__object .ug-switch__flag) { border: 0; background: CanvasText; opacity: 1; }
    :where(.ug-switch[data-strata-form="slide"] .ug-switch__flag) { opacity: clamp(0, (var(--strata-switch-t) - 0.5) * 1000, 1); }
    :where(.ug-switch[data-strata-form]:has(> .ug-switch__input:checked)) :where(.ug-switch__block, .ug-switch__facet--on, .ug-switch__ball, .ug-switch__flag) { background: Highlight; }
    :where(.ug-switch[data-strata-form]:has(> .ug-switch__input:disabled)) :where(.ug-switch__object [data-strata-face]) { border-color: GrayText; }
    :where(.ug-switch[data-strata-form]:has(> .ug-switch__input:disabled)) :where(.ug-switch__object) { opacity: 1; }
  }
  :where(.ug-switch--reverse) { flex-direction: row-reverse; justify-content: flex-end; }
  :where(.ug-switch--reverse .ug-switch__knob) { left: auto; right: calc(var(--strata-switch-width) - var(--strata-indicator) + var(--strata-object-taper)); }

  /* ---- Lamp and StatusLight: a lens on a bezel over a native switch or button, and a small lens (anatomy pages lamp.md, status-light.md) ---- */

  /*
   * One number lights a lens: `--strata-lit`, 0 unlit and 1 lit, registered so a StatusLight's blink can animate it and
   * the GPU presentation, which reads it frame by frame, follows the same value as the CSS. A Lamp is lit by its native
   * state (`checked`, or `aria-pressed` while a momentary lamp is held); a StatusLight is lit unless
   * `data-strata-lit="false"`. A disabled lamp is unlit. The state is also its label and its switch: light never carries
   * it alone. The lens glows in CSS (a glow shadow); with the GPU presenting, the lens is drawn as a lens (a dome with an
   * emitter), the socket under it stays printed on the face, and the CSS paint of the lens is hidden (`data-strata-dome`).
   */
  @property --strata-lit { syntax: "<number>"; inherits: true; initial-value: 0; }
  :where(.ug-lamp, .ug-status-light) {
    --strata-lit: 0;
    --_c: var(--strata-colour-glow-on);
    --_on: color-mix(in srgb, var(--_c), white 18%);
    --_off: color-mix(in srgb, var(--_c) 16%, #15171b);
    --_glass: color-mix(in srgb, var(--_on) calc(var(--strata-lit) * 100%), var(--_off));
    --_metal: var(--strata-colour-knob);
    --_metal-light: color-mix(in srgb, var(--strata-colour-knob), white 60%);
    --_metal-shade: color-mix(in srgb, var(--strata-colour-knob), var(--strata-colour-edge) 45%);
  }
  :where(.ug-lamp, .ug-status-light)[data-strata-colour="accent"] { --_c: var(--strata-colour-accent); }
  :where(.ug-lamp, .ug-status-light)[data-strata-colour="success"] { --_c: var(--strata-colour-success); }
  :where(.ug-lamp, .ug-status-light)[data-strata-colour="warning"] { --_c: var(--strata-colour-warning); }
  :where(.ug-lamp, .ug-status-light)[data-strata-colour="danger"] { --_c: var(--strata-colour-danger); }
  :where(.ug-lamp, .ug-status-light)[data-strata-colour="info"] { --_c: var(--strata-colour-info); }
  :where(.ug-lamp, .ug-status-light)[data-strata-colour="glowOn"] { --_c: var(--strata-colour-glow-on); }
  :where(.ug-lamp__lens, .ug-status-light__lens) {
    border-radius: 50%;
    background: radial-gradient(circle at 36% 30%, color-mix(in srgb, var(--_glass), white 55%) 0, var(--_glass) 45%, color-mix(in srgb, var(--_glass), black 35%) 100%);
    box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.35),
      0 0 calc(var(--strata-lit) * var(--_lens) * 0.7) calc(var(--strata-lit) * var(--_lens) * 0.12) color-mix(in srgb, var(--_on) 55%, transparent);
  }

  /* Lamp (box = lens + 28): a bezel (lens + 8) round the lens, and the socket (lens + 2) under it; 10 px of room each side for the bloom's halo. */
  :where(.ug-lamp) {
    --_lens: var(--strata-lamp-size);
    --_box: calc(var(--_lens) + 28px);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--strata-space-3);
    max-width: 100%;
    min-height: max(var(--_box), var(--strata-target-min));
    color: var(--strata-colour-text);
    font-family: var(--strata-font-family);
    font-size: var(--strata-control-font);
    cursor: pointer;
  }
  :where(.ug-lamp:has(> .ug-lamp__input:checked:not(:disabled)), .ug-lamp--momentary[aria-pressed="true"]:not(:disabled)) { --strata-lit: 1; }
  /* The native control: a transparent square box over the object, so a press anywhere on it is a press on the control. */
  :where(.ug-lamp__input) {
    flex: none;
    box-sizing: border-box;
    width: var(--_box);
    height: var(--_box);
    margin: 0;
    padding: 0;
    appearance: none;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
    cursor: inherit;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  :where(.ug-lamp__input:focus-visible) { outline: none; }
  :where(.ug-lamp__object) {
    position: absolute;
    left: 0;
    top: calc(50% - var(--_box) / 2);
    width: var(--_box);
    height: var(--_box);
    pointer-events: none;
  }
  :where(.ug-lamp--reverse) { flex-direction: row-reverse; justify-content: flex-end; }
  :where(.ug-lamp--reverse > .ug-lamp__object) { left: auto; right: 0; }
  /* A momentary lamp is the native button itself, with its object and its label inside it: the button's own box is the row, and
     the object (in the flow, the lens + 28 square) is where it is drawn. */
  :where(.ug-lamp--momentary) {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    appearance: none;
    font-weight: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    text-align: start;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  :where(.ug-lamp--momentary:focus-visible) { outline: none; }
  :where(.ug-lamp--momentary > .ug-lamp__object) { position: relative; flex: none; left: auto; right: auto; top: auto; }
  :where(.ug-lamp__object) :where(*) { position: absolute; box-sizing: border-box; pointer-events: none; }
  :where(.ug-lamp__label) { min-width: 0; overflow-wrap: anywhere; }
  :where(.ug-lamp__bezel) {
    --_h: 3px;
    --_bevel: 3px;
    left: 10px;
    top: 10px;
    width: calc(var(--_lens) + 8px);
    height: calc(var(--_lens) + 8px);
    border: 1px solid var(--strata-colour-edge);
    border-radius: 50%;
    background: linear-gradient(160deg, var(--_metal-light), var(--_metal) 45%, var(--_metal-shade));
  }
  :where(.ug-lamp__socket) {
    left: 13px;
    top: 13px;
    width: calc(var(--_lens) + 2px);
    height: calc(var(--_lens) + 2px);
    border-radius: 50%;
    background: var(--_off);
  }
  :where(.ug-lamp__lens) {
    left: 14px;
    top: 14px;
    width: var(--_lens);
    height: var(--_lens);
  }
  /* Focus: an accent ring round the bezel (captured content, at every level). Invalid: a danger edge. */
  :where(.ug-lamp:has(> .ug-lamp__input:is(:focus-visible, [data-strata-preview~="focus"])), .ug-lamp--momentary:is(:focus-visible, [data-strata-preview~="focus"])) :where(.ug-lamp__bezel) {
    outline: var(--strata-focus-width) solid var(--strata-colour-accent);
    outline-offset: var(--strata-focus-offset);
  }
  :where(.ug-lamp:has(> .ug-lamp__input[aria-invalid="true"])) :where(.ug-lamp__bezel) { border: 2px solid var(--strata-colour-danger); }
  /* The bezel lifts a little under the pointer, as keys do (section 11). */
  :where(.ug-lamp:has(> .ug-lamp__input:is(:hover, [data-strata-preview~="hover"]):not(:disabled)), .ug-lamp--momentary:is(:hover, [data-strata-preview~="hover"]):not(:disabled)) :where(.ug-lamp__bezel) {
    --_lift: var(--strata-state-hover-height);
    --_tone: var(--_hover-tone);
  }
  :where(.ug-lamp:has(> .ug-lamp__input:disabled), .ug-lamp--momentary:disabled) { color: color-mix(in srgb, var(--strata-colour-text) 38%, transparent); cursor: not-allowed; }
  :where(.ug-lamp:has(> .ug-lamp__input:disabled), .ug-lamp--momentary:disabled) :where(.ug-lamp__object) { opacity: 0.38; }
  :where(.ug-lamp:has(> .ug-lamp__input:disabled), .ug-lamp--momentary:disabled) :where(.ug-lamp__bezel) { --_h: 0px; --_gain: 0; }

  /* StatusLight (box = lens + 16): the lens alone, lit unless it says otherwise; blinking only while lit. */
  :where(.ug-status-light) {
    --_lens: var(--strata-status-light-size);
    --_box: calc(var(--_lens) + 16px);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--strata-space-2);
    max-width: 100%;
    min-height: var(--_box);
    vertical-align: middle;
    color: var(--strata-colour-text);
    font-family: var(--strata-font-family);
    font-size: var(--strata-control-font);
  }
  :where(.ug-status-light:not([data-strata-lit="false"])) { --strata-lit: 1; }
  :where(.ug-status-light__object) { position: relative; flex: none; width: var(--_box); height: var(--_box); pointer-events: none; }
  :where(.ug-status-light__socket, .ug-status-light__lens) { position: absolute; pointer-events: none; }
  :where(.ug-status-light__socket) {
    left: 7px;
    top: 7px;
    width: calc(var(--_lens) + 2px);
    height: calc(var(--_lens) + 2px);
    border-radius: 50%;
    background: var(--_off);
  }
  :where(.ug-status-light__lens) {
    left: 8px;
    top: 8px;
    width: var(--_lens);
    height: var(--_lens);
  }
  :where(.ug-status-light__text) { min-width: 0; overflow-wrap: anywhere; }
  :where(.ug-status-light--bare .ug-status-light__text) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  :where(.ug-status-light--bare) { gap: 0; }
  /* The blink tempos (`blink.*`): one full on-off cycle, half lit, in steps. Never over three flashes a second. */
  :where(.ug-status-light[data-strata-blink="slow"]) { --_period: var(--strata-blink-slow); }
  :where(.ug-status-light[data-strata-blink="normal"]) { --_period: var(--strata-blink-normal); }
  :where(.ug-status-light[data-strata-blink="fast"]) { --_period: var(--strata-blink-fast); }
  :where(.ug-status-light[data-strata-blink]:not([data-strata-lit="false"])) { animation: ug-blink var(--_period) steps(1, end) infinite; }
  @keyframes ug-blink { 0% { --strata-lit: 1; } 50% { --strata-lit: 0; } 100% { --strata-lit: 1; } }

  /* ---- Fader: a native range input over a slot in the faceplate, with a capped carriage and a printed scale (anatomy page fader.md) ---- */

  /*
   * The track is the input's box: a band 46 px across, with the slot in its middle and the carriage (30 × 42) riding it,
   * and the printed scale beside it on the side the carriage's shadow falls (right of a vertical fader, below a
   * horizontal one, under the default light from the top left), so the shadow stays in the box. Along the travel the
   * box is the travel plus the carriage plus a 16 px margin at each stop (room for the carriage's shadow at the
   * Instrument level), and the native thumb is that footprint (74), so the carriage's centre is the thumb's at every
   * value. The travel grows by as much as 15em grows past 180 px (the caption size at 12 px), so 200% text doubles a
   * medium fader's travel and keeps the numerals apart. Everything inside the track is placed in percentages of it,
   * so a horizontal fader can shrink to its container.
   * The transparent input covers the whole track and takes every press; the drawn parts take none.
   */
  :where(.ug-fader) {
    --_travel: calc(var(--strata-fader-travel) + max(0px, 15em - 180px));
    --_across: 30px;
    --_along: 42px;
    --_band: 46px;
    --_margin: 16px;
    --_thumb: calc(var(--_along) + 2 * var(--_margin));
    --_scale: calc(2.5em + 14px);
    --_ink: color-mix(in srgb, var(--strata-colour-edge), black 55%);
    --_slot: color-mix(in srgb, var(--strata-colour-edge), black 70%);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: var(--strata-space-1);
    max-width: 100%;
    color: var(--strata-colour-text);
    font-family: var(--strata-font-family);
    font-size: var(--strata-font-size-caption);
    line-height: 1;
  }
  :where(.ug-fader--horizontal) {
    --_scale: calc(1.5em + 12px);
    width: calc(var(--_travel) + var(--_thumb));
  }
  :where(.ug-fader__track) {
    position: relative;
    flex: none;
    box-sizing: border-box;
    width: calc(var(--_band) + var(--_scale));
    height: calc(var(--_travel) + var(--_thumb));
  }
  :where(.ug-fader--horizontal .ug-fader__track) { width: 100%; height: calc(var(--_band) + var(--_scale)); }
  /* The slot: a dark cut in the faceplate the carriage's centre runs along, 3 px past each end of the travel. */
  :where(.ug-fader__slot) {
    position: absolute;
    left: calc((var(--_band) - 5px) / 2);
    top: calc(var(--_thumb) / 2 - 3px);
    bottom: calc(var(--_thumb) / 2 - 3px);
    box-sizing: border-box;
    width: 5px;
    border-radius: 3px;
    background-color: var(--_slot);
    box-shadow: inset 0 1px 2px rgb(0 0 0 / calc(0.55 * min(1, var(--_gain)))), 0 1px 0 rgb(255 255 255 / calc(0.5 * min(1, var(--_gain))));
    pointer-events: none;
  }
  :where(.ug-fader--horizontal .ug-fader__slot) {
    left: calc(var(--_thumb) / 2 - 3px);
    right: calc(var(--_thumb) / 2 - 3px);
    top: calc((var(--_band) - 5px) / 2);
    bottom: auto;
    width: auto;
    height: 5px;
  }
  /* The carriage: brushed metal across the travel, lit along its top edge, with the cast shadow of a raised face. */
  :where(.ug-fader__carriage) {
    --_finish:
      repeating-linear-gradient(90deg, rgb(255 255 255 / calc(0.05 * min(1, var(--_gain)))) 0 1px, rgb(0 0 0 / calc(0.04 * min(1, var(--_gain)))) 1px 2.5px),
      linear-gradient(180deg, rgb(255 255 255 / calc(0.6 * min(1, var(--_gain)))), rgb(255 255 255 / 0) 35%, rgb(0 0 0 / 0) 70%, rgb(0 0 0 / calc(0.16 * min(1, var(--_gain)))));
    position: absolute;
    left: calc((var(--_band) - var(--_across)) / 2);
    top: calc(var(--_margin) + (100% - var(--_thumb)) * (1 - var(--strata-fader-value, 0.5)));
    box-sizing: border-box;
    width: var(--_across);
    height: var(--_along);
    border: 1px solid var(--strata-colour-edge);
    border-radius: 3px;
    background-color: var(--strata-colour-knob);
    pointer-events: none;
  }
  :where(.ug-fader--horizontal .ug-fader__carriage) {
    --_finish:
      repeating-linear-gradient(0deg, rgb(255 255 255 / calc(0.05 * min(1, var(--_gain)))) 0 1px, rgb(0 0 0 / calc(0.04 * min(1, var(--_gain)))) 1px 2.5px),
      linear-gradient(180deg, rgb(255 255 255 / calc(0.6 * min(1, var(--_gain)))), rgb(255 255 255 / 0) 35%, rgb(0 0 0 / 0) 70%, rgb(0 0 0 / calc(0.16 * min(1, var(--_gain)))));
    left: calc(var(--_margin) + (100% - var(--_thumb)) * var(--strata-fader-value, 0.5));
    top: calc((var(--_band) - var(--_across)) / 2);
    width: var(--_along);
    height: var(--_across);
  }
  /* The grip: an index line across the carriage at its centre, the value's mark. */
  :where(.ug-fader__grip) {
    position: absolute;
    left: 6px;
    right: 6px;
    top: calc(50% - 0.8px);
    height: 1.6px;
    background: var(--_ink);
  }
  :where(.ug-fader--horizontal .ug-fader__grip) { left: calc(50% - 0.8px); right: auto; top: 6px; bottom: 6px; width: 1.6px; height: auto; }
  /* A detented fader's carriage settles on its detent (never past it); a continuous one follows the pointer at once. */
  :where(.ug-fader--detented .ug-fader__carriage) {
    transition: top var(--strata-motion-fast) var(--strata-motion-easing-standard), left var(--strata-motion-fast) var(--strata-motion-easing-standard),
      box-shadow var(--strata-motion-fast) var(--strata-motion-easing-press), filter var(--strata-motion-fast) var(--strata-motion-easing-press);
  }
  :where(.ug-fader__scale) { position: absolute; left: var(--_band); top: 0; bottom: 0; width: var(--_scale); pointer-events: none; }
  :where(.ug-fader--horizontal .ug-fader__scale) { left: 0; top: var(--_band); right: 0; bottom: auto; width: auto; height: var(--_scale); }
  /* A mark is a numeral beside its tick (::before), at the carriage centre's place for its value, on whole pixels. */
  :where(.ug-fader__mark) {
    position: absolute;
    left: 14px;
    top: round(nearest, calc(var(--_thumb) / 2 + (100% - var(--_thumb)) * (1 - var(--strata-fader-at, 0)) - 0.5em), 1px);
    height: 1em;
    color: var(--strata-colour-muted);
    font-weight: var(--strata-font-weight-strong);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }
  :where(.ug-fader__mark)::before {
    content: "";
    position: absolute;
    right: calc(100% + 6px);
    top: calc(50% - 0.6px);
    width: 7px;
    height: 1.2px;
    background: var(--strata-colour-text);
  }
  :where(.ug-fader--horizontal .ug-fader__mark) {
    left: round(nearest, calc(var(--_thumb) / 2 + (100% - var(--_thumb)) * var(--strata-fader-at, 0) - 1.5em), 1px);
    top: 11px;
    width: 3em;
    text-align: center;
  }
  :where(.ug-fader--horizontal .ug-fader__mark)::before { left: calc(50% - 0.6px); right: auto; top: -10px; width: 1.2px; height: 7px; }
  :where(.ug-fader__input) {
    position: absolute;
    inset: 0;
    z-index: 1;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 3px;
    appearance: none;
    background: transparent;
    font: inherit;
    cursor: pointer;
    /* A vertical range, the minimum at the bottom. A drag along the travel never scrolls the page. */
    writing-mode: vertical-lr;
    direction: rtl;
    touch-action: pan-x;
  }
  :where(.ug-fader--horizontal .ug-fader__input) { writing-mode: horizontal-tb; direction: ltr; touch-action: pan-y; }
  /* The thumb is the carriage's footprint: across the whole track, and the carriage plus its margins along it. */
  :where(.ug-fader__input)::-webkit-slider-runnable-track { width: 100%; height: 100%; border: 0; background: transparent; }
  :where(.ug-fader__input)::-webkit-slider-thumb { width: calc(var(--_scale) + var(--_band)); height: var(--_thumb); appearance: none; border: 0; background: transparent; }
  :where(.ug-fader--horizontal .ug-fader__input)::-webkit-slider-thumb { width: var(--_thumb); height: calc(var(--_band) + var(--_scale)); }
  :where(.ug-fader__input)::-moz-range-track { width: 100%; height: 100%; border: 0; background: transparent; }
  :where(.ug-fader__input)::-moz-range-thumb { width: calc(var(--_scale) + var(--_band)); height: var(--_thumb); border: 0; background: transparent; }
  :where(.ug-fader--horizontal .ug-fader__input)::-moz-range-thumb { width: var(--_thumb); height: calc(var(--_band) + var(--_scale)); }
  /* The printed legend, on the faceplate under the track. */
  :where(.ug-fader__label) {
    max-width: 100%;
    font-size: var(--strata-font-size-small);
    font-weight: var(--strata-font-weight-strong);
    line-height: 1.25;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
    overflow-wrap: anywhere;
  }
  /* Focus: an accent ring round the track, as round a Slider (captured content on the GPU). */
  :where(.ug-fader__input):is(:focus-visible, [data-strata-preview~="focus"]) {
    outline: var(--strata-focus-width) solid var(--strata-colour-accent);
    outline-offset: var(--strata-focus-offset);
  }
  :where(.ug-fader__track:has(> .ug-fader__input:is(:hover, [data-strata-preview~="hover"]):not(:disabled)) .ug-fader__carriage) {
    --_lift: var(--strata-state-hover-height);
    --_tone: var(--_hover-tone);
  }
  :where(.ug-fader:has(.ug-fader__input:disabled)) { color: color-mix(in srgb, var(--strata-colour-text) 38%, transparent); }
  :where(.ug-fader:has(.ug-fader__input:disabled)) :where(.ug-fader__track) { opacity: 0.38; }
  :where(.ug-fader:has(.ug-fader__input:disabled)) :where(.ug-fader__carriage, .ug-fader__slot) { --_h: 0px; --_gain: 0; }
  :where(.ug-fader__input:disabled) { cursor: not-allowed; }

  /*
   * Wheel (anatomy page slider.md, section 11): the Slider's `wheel` form is this Fader's track and behaviour (the drag along the slot, click-to-set,
   * the wheel and the keys are the fader's) with a ridged roller in place of the carriage. The roller does not slide: it stays where it is in the
   * slot and rolls under the value, its ridges moving past, one index ridge in ink marking the turn. It is a cylinder lying on the face, axis across
   * the travel, `16` px across the track (its footprint is 16 by 26), `wheel.ridges` ridges round it and `wheel.sweep` degrees from the minimum to
   * the maximum. In the CSS presentation the ridges are a printed pattern shifted by the value (the roller's surface moving: radius times the angle);
   * at the Instrument level they are the part's own geometry and the print is hidden. The slot is shorter than a fader's (0.4 of `size.fader`).
   */
  :where(.ug-fader--wheel) {
    --_travel: calc(var(--strata-wheel-travel, calc(var(--strata-fader-travel) * 0.4)) + max(0px, 15em - 180px));
    --_across: 26px;
    --_along: 16px;
    --_roll: calc(var(--strata-wheel-sweep) * 0.017453 * var(--_along) / 2);
    --_pitch: calc(3.14159 * var(--_along) / var(--strata-wheel-ridges));
  }
  :where(.ug-fader__wheel) {
    --_finish: linear-gradient(90deg, rgb(0 0 0 / calc(0.32 * min(1, var(--_gain)))), rgb(255 255 255 / calc(0.5 * min(1, var(--_gain)))) 34%, rgb(0 0 0 / 0) 62%, rgb(0 0 0 / calc(0.3 * min(1, var(--_gain)))));
    left: calc(50% - var(--_along) / 2);
    border-radius: 4px;
    overflow: hidden;
  }
  :where(.ug-fader__ridges) {
    position: absolute;
    inset: 0;
    background:
      repeating-linear-gradient(90deg, rgb(0 0 0 / 0.34) 0 1px, rgb(255 255 255 / 0.22) 1px 1.6px, transparent 1.6px var(--_pitch)) calc((var(--strata-fader-value, 0.5) - 0.5) * var(--_roll) * -1) 0 / auto 100%;
  }
  /* The index ridge: one ridge in ink, whose turn is the value (a fixed ridge of the print, moving with it). */
  :where(.ug-fader__ridges)::after {
    content: "";
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: calc(50% + (var(--strata-fader-value, 0.5) - 0.5) * var(--_along) * 0.8 - 0.8px);
    width: 1.6px;
    background: var(--_ink);
  }

  /* ---- Slider: a groove rail with a knob ---- */

  :where(.ug-slider) {
    --_rail: 6px;
    box-sizing: border-box;
    width: 100%;
    min-width: 120px;
    height: var(--strata-target-min);
    margin: 0;
    appearance: none;
    background: transparent;
    cursor: pointer;
  }
  :where(.ug-slider)::-webkit-slider-runnable-track {
    box-sizing: border-box;
    height: var(--_rail);
    border: 1px solid var(--strata-colour-edge);
    border-radius: var(--strata-radius-pill);
    background: var(--strata-finish-role-rail), var(--strata-colour-track);
    box-shadow: inset 0 1px 2px rgb(0 0 0 / calc(0.3 * var(--_gain)));
  }
  :where(.ug-slider)::-moz-range-track {
    box-sizing: border-box;
    height: var(--_rail);
    border: 1px solid var(--strata-colour-edge);
    border-radius: var(--strata-radius-pill);
    background: var(--strata-finish-role-rail), var(--strata-colour-track);
  }
  :where(.ug-slider)::-webkit-slider-thumb {
    box-sizing: border-box;
    width: var(--strata-target-min);
    height: var(--strata-target-min);
    margin-top: calc((var(--_rail) - 2px - var(--strata-target-min)) / 2);
    appearance: none;
    border: 1px solid var(--strata-colour-edge);
    border-radius: 50%;
    background: radial-gradient(circle at calc(50% + var(--strata-light-x) * 30%) calc(50% + var(--strata-light-y) * 30%),
      color-mix(in srgb, var(--strata-colour-knob), white 40%), var(--strata-colour-knob) 72%);
    box-shadow: calc(var(--strata-shadow-dx) * 3px) calc(var(--strata-shadow-dy) * 3px) 6.7px rgb(0 0 0 / var(--strata-shadow-strength));
  }
  :where(.ug-slider)::-moz-range-thumb {
    box-sizing: border-box;
    width: var(--strata-target-min);
    height: var(--strata-target-min);
    border: 1px solid var(--strata-colour-edge);
    border-radius: 50%;
    background: var(--strata-colour-knob);
  }
  :where(.ug-slider:disabled) { opacity: 0.38; cursor: not-allowed; }

  /* ---- Knob: a native range input over a printed dial, with a skirt, a cap and its pointer (anatomy page knob.md) ---- */

  /*
   * The dial is the skirt plus the printed scale: ticks at r + 5, numerals at r + 5 + 1.25em (r + 20 at the caption
   * size) and at least 3.5em out, so the numerals move apart as text grows, and 1.5em of room beyond them. Every size
   * is an even number of px, so the centre is a whole pixel.
   * The transparent input covers the whole dial and takes every press; the drawn parts take none.
   */
  :where(.ug-knob) {
    --_size: var(--strata-knob-size);
    --_sweep: calc(var(--strata-knob-sweep) * 1deg);
    --_ink: color-mix(in srgb, var(--strata-colour-edge), black 55%);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: var(--strata-space-1);
    max-width: 100%;
    color: var(--strata-colour-text);
    font-family: var(--strata-font-family);
  }
  /* A detented knob is 0.8 times the knob's size (design language section 6). */
  :where(.ug-knob--detented) { --_size: round(nearest, calc(var(--strata-knob-size) * 0.8), 2px); }
  :where(.ug-knob__dial) {
    --_r: calc(var(--_size) / 2);
    --_rn: max(calc(var(--_r) + 5px + 1.25em), 3.5em);
    position: relative;
    flex: none;
    box-sizing: border-box;
    width: round(nearest, calc(2 * (var(--_rn) + 1.5em)), 2px);
    height: round(nearest, calc(2 * (var(--_rn) + 1.5em)), 2px);
    font-size: var(--strata-font-size-caption);
    line-height: 1;
  }
  :where(.ug-knob__scale) { position: absolute; inset: 0; pointer-events: none; }
  /* A mark is a numeral printed upright at its angle, with its tick drawn by ::before, both on whole pixels. */
  :where(.ug-knob__mark) {
    --_a: calc((var(--strata-knob-at, 0) - 0.5) * var(--_sweep));
    position: absolute;
    left: round(nearest, calc(50% + sin(var(--_a)) * var(--_rn) - 1em), 1px);
    top: round(nearest, calc(50% - cos(var(--_a)) * var(--_rn) - 0.5em), 1px);
    width: 2em;
    height: 1em;
    color: var(--strata-colour-muted);
    font-weight: var(--strata-font-weight-strong);
    font-variant-numeric: tabular-nums;
    text-align: center;
    white-space: nowrap;
  }
  :where(.ug-knob__mark)::before {
    content: "";
    position: absolute;
    left: calc(1em - 0.8px + sin(var(--_a)) * (var(--_r) + 8px - var(--_rn)));
    top: calc(0.5em - 3px - cos(var(--_a)) * (var(--_r) + 8px - var(--_rn)));
    width: 1.6px;
    height: 6px;
    rotate: var(--_a);
    background: var(--strata-colour-text);
  }
  /* The skirt: a turned flange; its upper half catches the light, its lower half the floor. */
  :where(.ug-knob__skirt) {
    --_finish: linear-gradient(180deg, rgb(255 255 255 / calc(0.55 * min(1, var(--_gain)))) 0 44%, rgb(255 255 255 / 0) 50%, rgb(0 0 0 / calc(0.16 * min(1, var(--_gain)))) 100%);
    position: absolute;
    inset: 0;
    box-sizing: border-box;
    width: var(--_size);
    height: var(--_size);
    margin: auto;
    border-radius: 50%;
    background-color: var(--strata-colour-knob);
    pointer-events: none;
  }
  /* The cap: 0.8 of the skirt, spun metal (circular hairlines and a bow-tie highlight along the light's azimuth). */
  :where(.ug-knob__cap) {
    --_finish:
      repeating-radial-gradient(circle, rgb(255 255 255 / calc(0.06 * min(1, var(--_gain)))) 0 0.6px, rgb(0 0 0 / calc(0.05 * min(1, var(--_gain)))) 0.6px 1.4px),
      conic-gradient(from calc(var(--strata-light-azimuth) * 1deg), rgb(255 255 255 / calc(0.6 * min(1, var(--_gain)))), rgb(255 255 255 / 0) 45deg, rgb(0 0 0 / calc(0.1 * min(1, var(--_gain)))) 90deg,
        rgb(255 255 255 / 0) 135deg, rgb(255 255 255 / calc(0.45 * min(1, var(--_gain)))) 180deg, rgb(255 255 255 / 0) 225deg, rgb(0 0 0 / calc(0.1 * min(1, var(--_gain)))) 270deg,
        rgb(255 255 255 / 0) 315deg, rgb(255 255 255 / calc(0.6 * min(1, var(--_gain)))));
    position: absolute;
    inset: 0;
    box-sizing: border-box;
    width: round(nearest, calc(var(--_size) * 0.8), 2px);
    height: round(nearest, calc(var(--_size) * 0.8), 2px);
    margin: auto;
    border-radius: 50%;
    background-color: var(--strata-colour-knob);
  }
  /* Only the pointer turns: the cap and skirt keep their boxes, so their faces never change size. */
  :where(.ug-knob__pointer) {
    position: absolute;
    inset: 0;
    rotate: calc((var(--strata-knob-value, 0.5) - 0.5) * var(--_sweep));
  }
  :where(.ug-knob__pointer)::after {
    content: "";
    position: absolute;
    left: calc(50% - 1.1px);
    top: 7%;
    width: 2.2px;
    height: 29%;
    border-radius: 1.1px;
    background: var(--_ink);
  }
  /* A detented knob settles on its detent with a little overshoot; a continuous one follows the pointer at once. */
  :where(.ug-knob--detented .ug-knob__pointer) { transition: rotate var(--strata-motion-fast) cubic-bezier(0.3, 1.45, 0.55, 1); }
  :where(.ug-knob__input) {
    position: absolute;
    inset: 0;
    z-index: 1;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    appearance: none;
    background: transparent;
    outline: none;
    cursor: ns-resize;
    touch-action: none;
  }
  :where(.ug-knob__input)::-webkit-slider-runnable-track { height: 100%; border: 0; background: transparent; }
  :where(.ug-knob__input)::-webkit-slider-thumb { width: 1px; height: 1px; appearance: none; border: 0; background: transparent; }
  :where(.ug-knob__input)::-moz-range-track { height: 100%; border: 0; background: transparent; }
  :where(.ug-knob__input)::-moz-range-thumb { width: 1px; height: 1px; border: 0; background: transparent; }
  /* The printed legend, on the faceplate under the dial. */
  :where(.ug-knob__label) {
    max-width: 100%;
    font-size: var(--strata-font-size-small);
    font-weight: var(--strata-font-weight-strong);
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
    overflow-wrap: anywhere;
  }
  /* Focus: an accent ring around the skirt, in every presentation (it is captured content on the GPU). */
  :where(.ug-knob__dial:has(> .ug-knob__input:is(:focus-visible, [data-strata-preview~="focus"])) .ug-knob__skirt) {
    outline: var(--strata-focus-width) solid var(--strata-colour-accent);
    outline-offset: calc(var(--strata-focus-offset) + 2px);
  }
  :where(.ug-knob__dial:has(> .ug-knob__input:is(:hover, [data-strata-preview~="hover"]):not(:disabled)) :is(.ug-knob__skirt, .ug-knob__cap)) {
    --_lift: var(--strata-state-hover-height);
    --_tone: var(--_hover-tone);
  }
  :where(.ug-knob:has(.ug-knob__input:disabled)) { color: color-mix(in srgb, var(--strata-colour-text) 38%, transparent); }
  :where(.ug-knob:has(.ug-knob__input:disabled)) :where(.ug-knob__dial) { opacity: 0.38; }
  :where(.ug-knob:has(.ug-knob__input:disabled)) :where(.ug-knob__skirt, .ug-knob__cap) { --_h: 0px; --_gain: 0; }
  :where(.ug-knob__input:disabled) { cursor: not-allowed; }

  /* ---- Meter and Gauge: a native meter under a bar of LED segments or a needle on a printed arc (anatomy pages meter.md, gauge.md) ---- */

  /*
   * The native `<meter>` is the control: it covers the whole object, transparent, and says the value, the range and the
   * zones to assistive technology. The object (decoration, no pointer) is drawn over it in a window set in the faceplate:
   * a bar of round LED segments lit from the value (`bar`), or a needle on a printed arc (`needle`, and a Gauge's round
   * dial). The value is one number, `--strata-meter-value` (0 at `min`, 1 at `max`), kept by the behaviour; a segment is
   * lit by `--strata-lit` (the Lamp's registered number, here computed from the value), so every presentation follows one
   * number, and a needle by `--strata-meter-t`, the value's place on the needle's spring (a transition on `linear()`
   * sampled from `spring.meter` or `spring.gauge` by `meterSpringCurve`). The GPU presentation draws the segments as lenses
   * with emitters and the needle as a part, reading the native meter itself, so a live value recaptures nothing.
   */
  @property --strata-meter-t { syntax: "<number>"; inherits: true; initial-value: 0; }
  :where(.ug-meter) {
    --_lens: var(--strata-meter-size);
    --_pad: max(10px, 1.6em);
    --_ink: color-mix(in srgb, var(--strata-colour-edge), black 55%);
    --_metal: var(--strata-colour-knob);
    --_metal-light: color-mix(in srgb, var(--strata-colour-knob), white 60%);
    --_metal-shade: color-mix(in srgb, var(--strata-colour-knob), var(--strata-colour-edge) 45%);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: var(--strata-space-1);
    max-width: 100%;
    color: var(--strata-colour-text);
    font-family: var(--strata-font-family);
    font-size: var(--strata-font-size-caption);
    line-height: 1;
  }
  /* The box is the object plus room each side for the box rule's margin and the bezel's cast shadow (4 px round a bar's window, 6 px round a bezel). */
  :where(.ug-meter--bar) { width: calc(var(--strata-meter-count, 16) * var(--_lens) * 1.5 + 2 * var(--_pad) + 8px); }
  :where(.ug-meter--needle) { width: calc(var(--strata-gauge-size) * 1.5 + 24px); }
  :where(.ug-meter--dial) { width: calc(var(--strata-gauge-size) + 24px); }
  :where(.ug-meter__body) { position: relative; flex: none; box-sizing: border-box; width: 100%; }
  :where(.ug-meter--bar .ug-meter__body) { height: calc(var(--_lens) + 1em + 36px); }
  :where(.ug-meter--needle .ug-meter__body) { aspect-ratio: 264 / 152; }
  :where(.ug-meter--dial .ug-meter__body) { aspect-ratio: 1; }
  :where(.ug-meter__object) { position: absolute; inset: 0; container-type: inline-size; pointer-events: none; }
  :where(.ug-meter__object) :where(*) { box-sizing: border-box; pointer-events: none; }
  /* The window set in the faceplate: a well. The bar's and the needle meter's lie 4 px inside the box; a gauge's dial lies in its bezel. */
  :where(.ug-meter__window) {
    position: absolute;
    inset: 4px;
    border-radius: 8px;
    background-color: var(--strata-colour-panel);
  }
  :where(.ug-meter--needle .ug-meter__window) { inset: 6px; border-radius: 8px; }
  /* A bezel is a raised ring of metal round the window (a gauge's is round, a needle meter's a rounded slab). */
  :where(.ug-meter__bezel) {
    --_h: 3px;
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background-color: var(--strata-colour-knob);
    background-image: linear-gradient(160deg, var(--_metal-light), var(--_metal) 45%, var(--_metal-shade));
  }
  :where(.ug-meter--needle .ug-meter__bezel) { border-radius: 10px; }
  :where(.ug-meter--dial .ug-meter__window) { inset: 6px; border-radius: 50%; }
  /* The native meter: the box, transparent, over the object; it takes every press (none does anything). */
  :where(.ug-meter__native) {
    position: absolute;
    inset: 0;
    z-index: 1;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    appearance: none;
    background: transparent;
    opacity: 0;
  }
  /* The printed legend, on the faceplate under the window. */
  :where(.ug-meter__label) {
    max-width: 100%;
    font-size: var(--strata-font-size-small);
    font-weight: var(--strata-font-weight-strong);
    line-height: 1.25;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
    overflow-wrap: anywhere;
  }

  /* The bar: a row of LED segments, `--_i` the index, lit while the value reaches it: segment i is lit when value · count − i − ½ is above 0. */
  :where(.ug-meter__segments) {
    position: absolute;
    left: var(--_pad);
    right: var(--_pad);
    top: 8px;
    height: var(--_lens);
    display: grid;
    grid-template-columns: repeat(var(--strata-meter-count, 16), 1fr);
    align-items: center;
    justify-items: center;
  }
  :where(.ug-meter__segment) {
    --_c: var(--strata-colour-success);
    --_on: color-mix(in srgb, var(--_c), white 18%);
    --_off: color-mix(in srgb, var(--_c) 16%, #15171b);
    --_glass: color-mix(in srgb, var(--_on) calc(var(--strata-lit) * 100%), var(--_off));
    --_k: clamp(0, calc((var(--strata-meter-value, 0) * var(--strata-meter-count, 16) - var(--_i, 0) - 0.5) * 1000), 1);
    --_pk: clamp(0, calc(1 - abs(var(--_i, 0) - var(--strata-meter-peak-index, -1)) * 1000), 1);
    --strata-lit: max(var(--_k), var(--_pk));
    display: block;
    width: var(--_lens);
    height: var(--_lens);
    border-radius: 50%;
    box-shadow: 0 0 calc(var(--strata-lit) * var(--_lens) * 0.9) calc(var(--strata-lit) * var(--_lens) * 0.1) color-mix(in srgb, var(--_on) 55%, transparent);
  }
  /* The socket under the lens, printed on the face at every level (and the only paint left when the GPU draws the lens as glass,
     which refracts it): the unlit glass's dark disc; and the glass over it, as the indicator forms do (a pseudo-element at z-index -1
     paints over its own element's background, so the glass cannot be the segment's own background). */
  :where(.ug-meter__segment) { position: relative; isolation: isolate; }
  :where(.ug-meter__segment)::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: 50%; background: var(--_off); }
  :where(.ug-meter__segment)::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 36% 30%, color-mix(in srgb, var(--_glass), white 55%) 0, var(--_glass) 45%, color-mix(in srgb, var(--_glass), black 35%) 100%);
    box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.35);
  }
  /* The GPU draws the lens as a part: its glass and glow are hidden, the socket stays. */
  :where([data-strata-mode="face"]) .ug-meter__segment[data-strata-dome]::after { background: transparent; box-shadow: none; }
  :where(.ug-meter__segment[data-strata-zone="warn"]) { --_c: var(--strata-colour-warning); }
  :where(.ug-meter__segment[data-strata-zone="bad"]) { --_c: var(--strata-colour-danger); }

  /* The printed scale of a bar: a tick and a numeral at the value's place along the segments, on whole pixels. */
  :where(.ug-meter--bar .ug-meter__scale) { position: absolute; left: var(--_pad); right: var(--_pad); top: calc(14px + var(--_lens)); height: calc(1em + 8px); }
  :where(.ug-meter--bar .ug-meter__mark) {
    position: absolute;
    left: round(nearest, calc(var(--strata-meter-at, 0) * 100% - 1.5em), 1px);
    top: 8px;
    width: 3em;
    height: 1em;
    color: var(--strata-colour-muted);
    font-weight: var(--strata-font-weight-strong);
    font-variant-numeric: tabular-nums;
    text-align: center;
    white-space: nowrap;
  }
  :where(.ug-meter--bar .ug-meter__mark)::before { content: ""; position: absolute; left: calc(50% - 0.6px); top: -8px; width: 1.2px; height: 5px; background: var(--strata-colour-text); }

  /* A dial (a needle meter or a Gauge): the arc is printed on the window, the pivot at (50%, --_py), the ticks at --_r. */
  :where(.ug-meter--needle) {
    --_sweep: calc(var(--strata-meter-sweep) * 1deg);
    --_r: 36.36cqw;
    --_py: 40.9cqw;
    --_throw: linear(0, 0.0319 6.25%, 0.0988 12.5%, 0.1872 18.75%, 0.2865 25%, 0.3889 31.25%, 0.4888 37.5%, 0.5823 43.75%, 0.667 50%, 0.7416 56.25%, 0.8058 62.5%, 0.8597 68.75%, 0.9039 75%, 0.9392 81.25%, 0.9668 87.5%, 0.9876 93.75%, 1);
    --_throw-duration: 192ms;
  }
  /* A Gauge's needle turns through `gauge.sweep`; the Meter's through `meter.sweep`. */
  :where(.ug-gauge) { --_sweep: calc(var(--strata-gauge-sweep) * 1deg); }
  :where(.ug-meter--dial) {
    --_r: 39.13cqw;
    --_py: 43.48cqw;
    /* spring.gauge 160 / 20 (unit-tested against meterSpringCurve). */
    --_throw: linear(0, 0.0235 4.88%, 0.0757 9.76%, 0.1466 14.63%, 0.2282 19.51%, 0.3146 24.39%, 0.4013 29.27%, 0.485 34.15%, 0.5637 39.02%, 0.6358 43.9%, 0.7007 48.78%, 0.758 53.66%, 0.8077 58.54%, 0.8504 63.41%, 0.8863 68.29%, 0.9162 73.17%, 0.9406 78.05%, 0.9603 82.93%, 0.9758 87.8%, 0.9878 92.68%, 0.9968 97.56%, 1);
    --_throw-duration: 328ms;
  }
  /* spring.meter 360 / 28 (unit-tested against meterSpringCurve). */
  :where(.ug-meter--needle, .ug-meter--dial) {
    --strata-meter-t: var(--strata-meter-value, 0);
    --_rn: calc(var(--_r) - 12px - 0.9em);
    --_len: calc(var(--_r) - 4px);
    transition: --strata-meter-t var(--_throw-duration) var(--_throw);
  }
  :where(.ug-meter--needle, .ug-meter--dial) :where(.ug-meter__scale, .ug-meter__zones) { position: absolute; inset: 0; }
  :where(.ug-meter--needle, .ug-meter--dial) .ug-meter__mark {
    --_a: calc((var(--strata-meter-at, 0) - 0.5) * var(--_sweep));
    position: absolute;
    left: round(nearest, calc(50% + sin(var(--_a)) * var(--_rn) - 1.5em), 1px);
    top: round(nearest, calc(var(--_py) - cos(var(--_a)) * var(--_rn) - 0.5em), 1px);
    width: 3em;
    height: 1em;
    color: var(--strata-colour-muted);
    font-weight: var(--strata-font-weight-strong);
    font-variant-numeric: tabular-nums;
    text-align: center;
    white-space: nowrap;
  }
  :where(.ug-meter--needle, .ug-meter--dial) .ug-meter__mark::before {
    content: "";
    position: absolute;
    left: calc(1.5em - 0.6px + sin(var(--_a)) * (var(--_r) - 3px - var(--_rn)));
    top: calc(0.5em - 3px - cos(var(--_a)) * (var(--_r) - 3px - var(--_rn)));
    width: 1.2px;
    height: 6px;
    rotate: var(--_a);
    background: var(--strata-colour-text);
  }
  /* The zones a dial prints: a band outside the ticks below `low` and above `high`, in the danger colour (a red zone), when the author gave them. */
  :where(.ug-meter--needle, .ug-meter--dial) .ug-meter__zones {
    background: conic-gradient(from calc(-0.5 * var(--_sweep)) at 50% var(--_py),
      var(--strata-colour-danger) 0 calc(var(--strata-meter-lo, 0) * var(--_sweep)), transparent 0 calc(var(--strata-meter-hi, 1) * var(--_sweep)), var(--strata-colour-danger) 0 var(--_sweep), transparent 0);
    mask: radial-gradient(circle at 50% var(--_py), transparent calc(var(--_r) + 1px), #000 calc(var(--_r) + 1.5px) calc(var(--_r) + 5px), transparent calc(var(--_r) + 5.5px));
  }
  /* The needle: a blade from its tail behind the pivot to the ticks, turning about the pivot with the value's place on its spring (clamped at the stops). */
  :where(.ug-meter__needle) {
    position: absolute;
    left: calc(50% - 1.1px);
    top: calc(var(--_py) - var(--_len));
    width: 2.2px;
    height: calc(var(--_len) + 12px);
    transform-origin: 50% var(--_len);
    rotate: calc((clamp(0, var(--strata-meter-t, 0), 1) - 0.5) * var(--_sweep));
    border-radius: 1.1px;
    background: var(--_ink);
  }
  :where(.ug-meter__hub) {
    position: absolute;
    left: calc(50% - 6px);
    top: calc(var(--_py) - 6px);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--strata-colour-knob);
  }
  /* When the GPU draws the needle as a part (the Instrument level, on its own spring), its CSS paint is hidden altogether, so a
     live value repaints nothing (the scale, the zones and the window stay). */
  :where([data-strata-mode="face"]) .ug-meter__needle[data-strata-dome] { visibility: hidden; }

  /* Preferences. Reduced motion: the needle moves at once and a lit segment has no glow. */
  @media (prefers-reduced-motion: reduce) {
    :where(.ug-meter--needle, .ug-meter--dial) { transition: none; }
    :where(.ug-meter__segment) { box-shadow: none; }
  }
  /* More contrast: the high-contrast themes apply through the tokens; the needle, the scale and the segments take the text colour, and a lit segment has no glow. */
  @media (prefers-contrast: more) {
    :where(.ug-meter) { --_ink: var(--strata-colour-text); }
    :where(.ug-meter__mark) { color: var(--strata-colour-text); }
    :where(.ug-meter__segment) { box-shadow: none; border: max(1px, var(--strata-outline-width)) solid var(--strata-colour-text); }
    :where(.ug-meter__segment)::before { background: var(--_glass); }
    :where(.ug-meter__window) { border-color: var(--strata-colour-text); }
  }
  :where([data-strata-theme="contrast"], [data-strata-theme="contrast-dark"]) :where(.ug-meter) { --_ink: var(--strata-colour-text); }
  :where([data-strata-theme="contrast"], [data-strata-theme="contrast-dark"]) :where(.ug-meter__mark) { color: var(--strata-colour-text); }
  /* Forced colours: a CanvasText window; lit segments are Highlight and unlit ones Canvas with a CanvasText edge; the needle and scale CanvasText. */
  @media (forced-colors: active) {
    :where(.ug-meter__window, .ug-meter__bezel) { forced-color-adjust: none; border: 1px solid CanvasText; background: Canvas; box-shadow: none; }
    :where(.ug-meter__segment) { forced-color-adjust: none; border: 1px solid CanvasText; background: none; box-shadow: none; }
    :where(.ug-meter__segment)::before { background: Canvas; }
    :where(.ug-meter__segment)::after { background: color-mix(in srgb, Highlight calc(var(--strata-lit) * 100%), Canvas); box-shadow: none; }
    :where(.ug-meter__needle) { forced-color-adjust: none; background: CanvasText; }
    :where(.ug-meter__hub) { forced-color-adjust: none; background: CanvasText; border: 0; }
    :where(.ug-meter__mark) { forced-color-adjust: none; color: CanvasText; }
    :where(.ug-meter__mark)::before { forced-color-adjust: none; background: CanvasText; }
    :where(.ug-meter__zones) {
      forced-color-adjust: none;
      background: conic-gradient(from calc(-0.5 * var(--_sweep)) at 50% var(--_py),
        CanvasText 0 calc(var(--strata-meter-lo, 0) * var(--_sweep)), transparent 0 calc(var(--strata-meter-hi, 1) * var(--_sweep)), CanvasText 0 var(--_sweep), transparent 0);
    }
  }

  /* ---- Display: a glass window in a bezel over a native input or output (anatomy pages display.md, text-field.md section 11) ---- */

  /*
   * The native element is the control and covers the whole display, bezel included, transparent: an `<input>` (typing, selection,
   * the caret, IME and autofill are the browser's) or a read-only `<output>`. Its text is the window's: printed under the glass,
   * captured with the face. The object (decoration, no pointer) lies under it: a bezel set 4 px in from the box (the room for its
   * cast shadow) and the window inside the bezel. The backlight is lit by `--strata-lit` (the Lamp's registered number), set
   * from the display's state: 1 lit, 0 off, disabled or under more contrast. A backlit window carries a static tint of its role
   * (part of the capture, so toggling the light changes no captured pixel) and, in the CSS presentation only, a glow; with the GPU
   * presenting, the light is the display's emitters (face mode takes the CSS glow away).
   */
  :where(.ug-display) {
    --_c: var(--strata-colour-glow-on);
    --_tint: 10%;
    --_room: 4px;
    --_bz: var(--strata-display-bezel-width);
    --_pad: calc(var(--_room) + var(--_bz) + var(--strata-space-3));
    --_metal: var(--strata-colour-knob);
    --_metal-light: color-mix(in srgb, var(--strata-colour-knob), white 60%);
    --_metal-shade: color-mix(in srgb, var(--strata-colour-knob), var(--strata-colour-edge) 45%);
    --strata-lit: 1;
    position: relative;
    display: inline-block;
    box-sizing: border-box;
    width: min(100%, 236px);
    max-width: 100%;
    vertical-align: middle;
  }
  :where(.ug-display)[data-strata-backlight="accent"] { --_c: var(--strata-colour-accent); }
  :where(.ug-display)[data-strata-backlight="success"] { --_c: var(--strata-colour-success); }
  :where(.ug-display)[data-strata-backlight="warning"] { --_c: var(--strata-colour-warning); }
  :where(.ug-display)[data-strata-backlight="danger"] { --_c: var(--strata-colour-danger); }
  :where(.ug-display)[data-strata-backlight="info"] { --_c: var(--strata-colour-info); }
  :where(.ug-display)[data-strata-backlight="glowOn"] { --_c: var(--strata-colour-glow-on); }
  :where(.ug-display)[data-strata-backlight="off"] { --_tint: 0%; }
  :where(.ug-display)[data-strata-backlight="off"], :where(.ug-display)[data-strata-lit="false"], :where(.ug-display):has(> .ug-display__text:disabled) { --strata-lit: 0; }
  :where(.ug-display__text) {
    position: relative;
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    /* The window is the control's height, or a line and a half of the text at large sizes; the bezel and its room are added. */
    min-height: calc(max(calc(var(--strata-control-height) + var(--strata-control-offset)), var(--strata-target-min), calc(1lh + 12px)) + 2 * (var(--_room) + var(--_bz)));
    margin: 0;
    /* The content box is the window's inside: the text's room, which is what the guard protects (the bezel round it is lit in full). */
    padding: calc(var(--_room) + var(--_bz)) var(--_pad);
    border: 0;
    /* Square: the native element is the whole box, so a press anywhere in it, the corners included, lands on it. */
    border-radius: 0;
    background: transparent;
    color: var(--strata-colour-text);
    font-family: var(--strata-font-family-mono, ui-monospace, monospace);
    font-size: var(--strata-control-font);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    line-height: 1.3;
    text-overflow: clip;
  }
  :where(output.ug-display__text) { display: flex; align-items: center; overflow-wrap: anywhere; }
  :where(.ug-display--input .ug-display__text) { cursor: text; }
  :where(.ug-display--output .ug-display__text) { cursor: default; }
  :where(.ug-display__text)::placeholder { color: var(--strata-colour-muted); opacity: 1; }
  :where(.ug-display__text:focus-visible) { outline: none; }
  :where(.ug-display__object) { position: absolute; inset: 0; pointer-events: none; }
  :where(.ug-display__object) :where(*) { box-sizing: border-box; pointer-events: none; }
  /* The bezel: a raised frame of metal set in from the box, and the window inside it. */
  :where(.ug-display__bezel) {
    position: absolute;
    inset: var(--_room);
    border: 1px solid var(--strata-colour-edge);
    border-radius: var(--strata-display-bezel-radius);
    background-color: var(--strata-colour-knob);
    background-image: linear-gradient(160deg, var(--_metal-light), var(--_metal) 45%, var(--_metal-shade));
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.5), inset 0 -1px 0 rgb(0 0 0 / 0.25), 0 1px 2px rgb(0 0 0 / 0.3),
      0 0 calc(var(--strata-lit) * 8px) calc(var(--strata-lit) * 1px) color-mix(in srgb, var(--_c) 45%, transparent);
  }
  :where(.ug-display__window) {
    position: absolute;
    inset: calc(var(--_bz) - 1px);
    border: 1px solid var(--strata-colour-edge);
    border-radius: 4px;
    background-color: color-mix(in srgb, var(--strata-colour-field), var(--_c) var(--_tint));
    background-image: radial-gradient(ellipse 90% 140% at 50% 50%, color-mix(in srgb, var(--_c) calc(var(--strata-lit) * 22%), transparent), transparent);
    box-shadow: inset 0 1px 3px rgb(0 0 0 / 0.35);
  }
  /* Focus: an accent outline just outside the bezel, in every presentation (inside the box: the room is 4 px). */
  :where(.ug-display):has(> .ug-display__text:is(:focus-visible, [data-strata-preview~="focus"])) :where(.ug-display__bezel) {
    outline: var(--strata-focus-width) solid var(--strata-colour-accent);
    outline-offset: var(--strata-focus-offset);
  }
  /* Invalid: a danger edge round the window, with the message in the description. */
  :where(.ug-display):has(> .ug-display__text[aria-invalid="true"]) :where(.ug-display__window) { border: 2px solid var(--strata-colour-danger); }
  :where(.ug-display__text:disabled) { color: color-mix(in srgb, var(--strata-colour-text) 38%, transparent); cursor: not-allowed; }
  :where(.ug-display):has(> .ug-display__text:disabled) :where(.ug-display__bezel) { --_metal-light: var(--_metal); background-image: none; }
  /* With the GPU presenting the light is the display's emitters, the bezel a part at the Instrument level and the window a flat face:
     the CSS glow, the bezel's gradient and the part's paint are taken away, so toggling the light or typing repaints only the text. */
  :where([data-strata-mode="face"]) .ug-display__window { background-image: none; }
  :where([data-strata-mode="face"]) .ug-display__bezel { background-image: none; }
  :where([data-strata-mode="face"]) .ug-display__bezel[data-strata-dome] { border-color: transparent; }

  /*
   * Segments (anatomy page display.md, section 11): the text under the glass in a seven-segment face, with the unlit segments faintly printed
   * behind it. The text is still the native element's own (exact, selectable, announced as the text it is); only the typeface changes, and the
   * face is Strata's own (`shared/segments.ts`, embedded by the build as `Strata Segments`, token `font.segments`). Every glyph is a 600-unit cell
   * of seven lit-or-unlit segments, so the ghost is one tile of all seven, tiled behind the text in the window's content box (a mask in the
   * text colour at `display.segments.ghost`: captured with the face, static, so nothing about it changes when the text does). A character the
   * face has no segments for falls to the code face. The line box is centred on the digit (ascent 0.85, descent 0.15), so the ghost and the
   * text share a centre line at any line height.
   */
  :where(.ug-display[data-strata-segments]) {
    --_seg: calc(var(--strata-control-font) * 1.25);
    --_seg-space: 0.08em;
    /* The tile of all seven segments (an SVG mask); the build writes it in (`shared/segments.ts`). */
    --_ghost: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 680 700'%3E%3Cpath d='M121 35L156 0L444 0L479 35L444 70L156 70ZM485 344L520 309L520 76L485 41L450 76L450 309ZM485 659L520 624L520 391L485 356L450 391L450 624ZM121 665L156 630L444 630L479 665L444 700L156 700ZM115 659L150 624L150 391L115 356L80 391L80 624ZM115 344L150 309L150 76L115 41L80 76L80 309ZM121 350L156 315L444 315L479 350L444 385L156 385Z'/%3E%3C/svg%3E");
  }
  :where(.ug-display[data-strata-segments] .ug-display__text) {
    font-family: var(--strata-font-segments);
    font-size: var(--_seg);
    font-variant-numeric: normal;
    letter-spacing: var(--_seg-space);
    line-height: 1.2;
  }
  :where(.ug-display[data-strata-segments] .ug-display__window)::before {
    content: "";
    position: absolute;
    left: var(--strata-space-3);
    right: var(--strata-space-3);
    top: 50%;
    height: calc(var(--_seg) * 0.7);
    translate: 0 -50%;
    background: var(--strata-colour-text);
    opacity: var(--strata-display-segments-ghost);
    -webkit-mask: var(--_ghost) 0 0 / calc(var(--_seg) * 0.68) 100% repeat-x;
    mask: var(--_ghost) 0 0 / calc(var(--_seg) * 0.68) 100% repeat-x;
    pointer-events: none;
  }
  :where(.ug-display[data-strata-segments]:has(> .ug-display__text:disabled)) .ug-display__window::before { opacity: calc(var(--strata-display-segments-ghost) * 0.5); }

  /* Preferences. Reduced motion: nothing here moves. More contrast: the high-contrast themes apply through the tokens; the window is the
     plain field with a text-coloured edge and no backlight (its emitters are off). Reduced transparency: the window is the plain capture
     (the pane is not glass, the tint opaque). */
  @media (prefers-contrast: more) {
    :where(.ug-display) { --_tint: 0%; --strata-lit: 0; }
    :where(.ug-display__window) { border-color: var(--strata-colour-text); background-image: none; }
    :where(.ug-display[data-strata-segments] .ug-display__window)::before { opacity: 0.18; }
  }
  :where([data-strata-theme="contrast"], [data-strata-theme="contrast-dark"]) :where(.ug-display) { --_tint: 0%; --strata-lit: 0; }
  :where([data-strata-theme="contrast"], [data-strata-theme="contrast-dark"]) :where(.ug-display__window) { border-color: var(--strata-colour-text); background-image: none; }
  @media (prefers-reduced-transparency: reduce) {
    :where(.ug-display__window) { background-image: none; }
  }
  /* Forced colours: a CanvasText bezel and window on Canvas, FieldText text, GrayText when disabled, a Highlight focus outline. */
  @media (forced-colors: active) {
    :where(.ug-display__bezel, .ug-display__window) { forced-color-adjust: none; border: 1px solid CanvasText; background: Canvas; box-shadow: none; }
    :where(.ug-display__text) { color: CanvasText; }
    :where(.ug-display__text:disabled) { color: GrayText; }
    :where(.ug-display):has(> .ug-display__text:disabled) :where(.ug-display__bezel, .ug-display__window) { border-color: GrayText; }
    :where(.ug-display):has(> .ug-display__text:is(:focus-visible, [data-strata-preview~="focus"])) :where(.ug-display__bezel) { outline-color: Highlight; }
    :where(.ug-display):has(> .ug-display__text[aria-invalid="true"]) :where(.ug-display__window) { border: 2px solid CanvasText; }
  }

  /* ---- Tabs ---- */

  /* A row of flat tabs over a rail (a groove); the selected tab's indicator (a mark) stands in the rail under it. */
  :where(.ug-tabs) { display: block; }
  :where(.ug-tabs__list) {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: var(--strata-space-1);
    padding-bottom: 4px;
  }
  :where(.ug-tabs__rail, .ug-tab__indicator) {
    position: absolute;
    box-sizing: border-box;
    border-radius: var(--strata-radius-pill);
    pointer-events: none;
  }
  :where(.ug-tabs__rail) {
    inset: auto 0 0 0;
    height: 4px;
    background-color: var(--strata-colour-track);
    box-shadow: inset 0 1px 2px rgb(0 0 0 / calc(0.3 * var(--_gain)));
  }
  :where(.ug-tab) {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: var(--strata-target-min);
    min-height: max(calc(var(--strata-control-height) + var(--strata-control-offset)), var(--strata-target-min));
    margin: 0 0 -4px;
    padding: 0 var(--strata-space-4) 4px;
    border: 0;
    border-radius: var(--strata-radius-small);
    background: transparent;
    color: var(--strata-colour-muted);
    font-family: var(--strata-font-family);
    font-size: var(--strata-control-font);
    font-weight: var(--strata-font-weight-strong);
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  :where(.ug-tab):is(:hover, :active, [aria-selected="true"], [data-strata-preview~="hover"]):not(:disabled) { color: var(--strata-colour-text); }
  :where(.ug-tab:disabled) { color: color-mix(in srgb, var(--strata-colour-muted) 38%, transparent); cursor: not-allowed; }
  :where(.ug-tab__label) { min-width: 0; }
  :where(.ug-tab__indicator) {
    display: none;
    inset: auto var(--strata-space-2) 0;
    height: 4px;
    background-color: var(--strata-colour-accent);
    box-shadow: calc(var(--strata-shadow-dx) * 1.5px) calc(var(--strata-shadow-dy) * 1.5px) 2px rgb(0 0 0 / calc(var(--strata-shadow-strength) * 1.2));
  }
  :where(.ug-tab[aria-selected="true"] > .ug-tab__indicator) { display: block; }
  :where(.ug-tabs__panel) { padding-block: var(--strata-space-4); border-radius: var(--strata-radius-small); }
  :where(.ug-tabs__panel[hidden]) { display: none; }
  /* Vertical: the tabs stack at the start, with the rail and indicators along their end edge. */
  :where(.ug-tabs--vertical) { display: flex; align-items: flex-start; gap: var(--strata-space-4); }
  :where(.ug-tabs--vertical) > :where(.ug-tabs__list) { flex-direction: column; flex-wrap: nowrap; padding: 0 4px 0 0; }
  :where(.ug-tabs--vertical) :where(.ug-tabs__rail) { inset: 0 0 0 auto; width: 4px; height: auto; }
  :where(.ug-tabs--vertical) :where(.ug-tab) { justify-content: flex-start; margin: 0 -4px 0 0; padding: 0 calc(var(--strata-space-4) + 4px) 0 var(--strata-space-4); }
  :where(.ug-tabs--vertical) :where(.ug-tab__indicator) { inset: var(--strata-space-2) 0 var(--strata-space-2) auto; width: 4px; height: auto; }
  :where(.ug-tabs--vertical) > :where(.ug-tabs__panel) { flex: 1; min-width: 0; padding-block: 0; }

  /* ---- Select forms: `selector` (a RotarySelector's dial over the Select's own select) and `display` (a Display window with step buttons); Tabs form `rail` (anatomy pages select.md, tabs.md, section 11) ---- */

  /*
   * `selector` is the RotarySelector's markup (classes `ug-rotary__*`, the Select's own `<select>` as `.ug-rotary__select`, no legend title: the
   * Field's label names it), so its CSS, behaviour and GPU drawing are the RotarySelector's and need nothing here. `display` is a Display (the
   * TextField's bezel and window and the Display's backlight, CSS and GPU alike) whose native element is the Select's own `<select>` as
   * `.ug-display__text`: its selected option's text is the window's, printed under the glass and captured with the face. Two momentary push
   * buttons (the PushButton's CSS, behaviour and GPU drawing) stand either side, a size smaller; they step the select and are out of the tab
   * order and hidden from assistive technology (the select is the control). `flush`, or no form, is the key with a chevron: none of this reaches it.
   */
  /* A selector in a Field that shrinks to its content (a flex row) must not collapse: the root is a size container, so it has no content width of its own. It keeps room for the whole dial and its labels where the viewport has it, and for the dial and its numbers where it has not. */
  :where(.ug-rotary[data-strata-form="selector"]) { min-inline-size: min(calc(var(--_size) + 24px + 10em), max(calc(var(--_size) + 24px + 4em), calc(100vw - 120px))); }
  /*
   * A RadioGroup's `selector` form (anatomy page radio.md, section 11) is the same dial over native radios: `.ug-rotary--group` on the root, each
   * radio's mark a `<label>` (the printed position, with its tick) whose text holds the radio itself, an invisible overlay at least 24 px square
   * centred on the print, so a press on a printed position is a press on its radio and the arrows, Tab and Space are the group's. The dial
   * (skirt, cap, pointer) is decoration; the cap's angle is `--strata-rotary-value` on the root (the behaviour follows the checked radio). The
   * checked radio's print is the text colour, as the selected option's is, and the focused one's print takes the focus ring.
   */
  :where(.ug-rotary--group) { min-inline-size: min(calc(var(--_size) + 24px + 10em), max(calc(var(--_size) + 24px + 4em), calc(100vw - 120px))); align-self: center; }
  :where(.ug-rotary__radio) {
    position: absolute;
    left: 50%;
    top: 50%;
    translate: -50% -50%;
    box-sizing: border-box;
    width: max(calc(100% + 8px), 24px);
    height: max(calc(100% + 8px), 24px);
    margin: 0;
    padding: 0;
    border: 0;
    appearance: none;
    background: transparent;
    opacity: 0;
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
  }
  :where(.ug-rotary__mark:has(.ug-rotary__radio:checked)) :where(.ug-rotary__text) { color: var(--strata-colour-text); }
  :where(.ug-rotary__mark:has(.ug-rotary__radio:is(:focus-visible, [data-strata-preview~="focus"]))) :where(.ug-rotary__text) {
    outline: var(--strata-focus-width) solid var(--strata-colour-accent);
    outline-offset: 2px;
    border-radius: 3px;
  }
  :where(.ug-rotary__mark:has(.ug-rotary__radio:disabled)) :where(.ug-rotary__text) { opacity: 0.45; }
  :where(.ug-rotary__radio:disabled) { cursor: not-allowed; }
  :where(fieldset:disabled .ug-rotary--group) :where(.ug-rotary__dial) { opacity: 0.38; }
  :where(fieldset:disabled .ug-rotary--group) :where(.ug-rotary__skirt, .ug-rotary__cap) { --_h: 0px; --_gain: 0; }
  @media (forced-colors: active) {
    .ug-rotary__mark:has(.ug-rotary__radio:focus-visible) .ug-rotary__text { outline-color: Highlight; }
    fieldset:disabled .ug-rotary--group :is(.ug-rotary__skirt, .ug-rotary__cap) { border-color: GrayText; }
    fieldset:disabled .ug-rotary--group .ug-rotary__pointer::after, fieldset:disabled .ug-rotary--group .ug-rotary__tick { background: GrayText; }
    fieldset:disabled .ug-rotary--group .ug-rotary__dial { opacity: 1; }
  }
  :where(.ug-select-display) {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    inline-size: min(100%, 360px);
    max-inline-size: 100%;
    vertical-align: middle;
  }
  :where(.ug-select-display__window) { flex: 1 1 0; width: auto; min-width: 0; }
  :where(.ug-select-display__step) { --_cap: calc(var(--strata-push-size) * 0.7); flex: none; }
  /* The step buttons' glyphs: a chevron drawn in CSS, pointing back and forward (reversed in right-to-left text). */
  :where(.ug-select-display__glyph) { display: block; box-sizing: border-box; width: 7px; height: 7px; border: solid currentColor; border-width: 0 0 2px 2px; }
  :where(.ug-select-display__step--previous .ug-select-display__glyph) { rotate: 45deg; translate: 2px 0; }
  :where(.ug-select-display__step--next .ug-select-display__glyph) { rotate: -135deg; translate: -2px 0; }
  :where(.ug-select-display[dir="rtl"], [dir="rtl"] .ug-select-display) :where(.ug-select-display__step--previous .ug-select-display__glyph) { rotate: -135deg; translate: -2px 0; }
  :where(.ug-select-display[dir="rtl"], [dir="rtl"] .ug-select-display) :where(.ug-select-display__step--next .ug-select-display__glyph) { rotate: 45deg; translate: 2px 0; }
  /* The select's own text, as the window's: one line, clipped, with a chevron on the glass for the list. */
  :where(.ug-select-display__select) {
    --_chevron: var(--strata-colour-muted);
    padding-inline-end: calc(var(--_pad) + 14px);
    appearance: none;
    background-image:
      linear-gradient(45deg, transparent 50%, var(--_chevron) 50%),
      linear-gradient(135deg, var(--_chevron) 50%, transparent 50%);
    background-position: right calc(var(--_pad) + 5px) center, right var(--_pad) center;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  :where(.ug-select-display__select:disabled) { cursor: not-allowed; }
  /* The native list is drawn by the browser from the options, in the page's colours. */
  :where(.ug-select-display__select) :where(option) { background-color: var(--strata-colour-panel); color: var(--strata-colour-text); }
  @media (forced-colors: active) {
    :where(.ug-select-display__select) { --_chevron: CanvasText; }
  }

  /*
   * `rail`: the tablist is a plinth of polished metal and each tab a latching key on it, a cap that carries the label with an LED above it on the
   * plinth that lights while the tab is selected (`--strata-lit`, 1 selected, 0 not, the number the GPU reads for the LED's emitter) and the cap
   * down. The panel is the faceplate under the rail: a printed plate edge, so the rail and the panel read as one face. Roles, ids, roving tabindex,
   * keys and activation are the WAI-ARIA Tabs pattern's, unchanged; the native `<button role="tab">` covers its LED and its cap, so every press lands on it.
   * `flush`, or no form, is the flat tabs over a groove: none of this reaches it.
   */
  :where(.ug-tabs[data-strata-form="rail"] > .ug-tabs__list) {
    --_h: 2px;
    --_bevel: 3px;
    --_metal: var(--strata-colour-knob);
    --_metal-light: color-mix(in srgb, var(--strata-colour-knob), white 60%);
    --_metal-shade: color-mix(in srgb, var(--strata-colour-knob), var(--strata-colour-edge) 45%);
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0;
    box-sizing: border-box;
    inline-size: fit-content;
    max-inline-size: 100%;
    margin-block-end: var(--strata-space-3);
    padding: 2px;
    border-radius: calc(var(--strata-radius-control) + 8px);
    background-color: var(--strata-colour-knob);
    background-image: linear-gradient(160deg, var(--_metal-light), var(--_metal) 45%, var(--_metal-shade));
  }
  :where(.ug-tabs--vertical[data-strata-form="rail"]) > :where(.ug-tabs__list) { flex-direction: column; flex-wrap: nowrap; align-self: flex-start; margin-block-end: 0; padding: 2px; }
  /* With the GPU drawing the plinth (Relief and Objects as a face, Instrument as a part) its metal is the GPU's. */
  :where([data-strata-mode="face"]) :is(.ug-tabs[data-strata-form="rail"] > .ug-tabs__list) { background-image: none; }
  :where(.ug-tabs[data-strata-form="rail"] .ug-tab) {
    --_c: var(--strata-colour-glow-on);
    --_text: var(--strata-colour-text);
    --strata-push-t: 0;
    flex: 0 1 auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    min-height: 0;
    margin: 0;
    /* The room above the cap holds the LED; 6 px round the rest is the room for the key's shadow inside the button's box. */
    padding: 12px 6px 6px;
    border-radius: var(--strata-radius-control);
    color: var(--_text);
    transition: --strata-push-t 380ms linear(0, 0.2396 5.26%, 0.5196 10.53%, 0.7152 15.79%, 0.8355 21.05%, 0.906 26.32%, 0.9466 31.58%, 0.9697 36.84%, 0.9828 42.11%, 0.9903 47.37%, 0.9945 52.63%, 0.9969 57.89%, 0.9982 63.16%, 0.999 68.42%, 0.9994 73.68%, 0.9997 78.95%, 0.9998 84.21%, 0.9999 89.47%, 0.9999 94.74%, 1);
    touch-action: manipulation;
  }
  /* The cap's travel: 0.45 of the held throw while selected, all the way while held, on the push button's spring (read by the GPU frame by frame). */
  :where(.ug-tabs[data-strata-form="rail"] .ug-tab[aria-selected="true"]) { --strata-push-t: 0.45; }
  :where(.ug-tabs[data-strata-form="rail"] .ug-tab[data-strata-preview~="active"]:not(:disabled)) { --strata-push-t: 1; }
  /* Held: a pointer that hovers (a mouse or a pen) holds the key all the way down; a touch does not, as `:active` can outlast a touch on some browsers. */
  @media (hover: hover) {
    :where(.ug-tabs[data-strata-form="rail"] .ug-tab:active:not(:disabled)) { --strata-push-t: 1; }
  }
  :where(.ug-tabs[data-strata-form="rail"] .ug-tab:disabled) { color: color-mix(in srgb, var(--_text) 38%, transparent); }
  :where(.ug-tabs[data-strata-form="rail"] .ug-tab):is(:focus-visible, [data-strata-preview~="focus"]) { outline: none; }
  :where(.ug-tabs[data-strata-form="rail"] .ug-tab__cap) {
    --_finish: var(--strata-finish-role-control);
    --_h: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: var(--strata-target-min);
    min-height: max(calc(var(--strata-control-height) + var(--strata-control-offset)), var(--strata-target-min));
    padding: 0 var(--strata-space-4);
    border-radius: var(--strata-radius-control);
    background-color: var(--strata-colour-secondary);
    color: inherit;
    font-family: var(--strata-font-family);
    font-size: var(--strata-control-font);
    font-weight: var(--strata-font-weight-strong);
    line-height: 1;
    translate: 0 calc(var(--strata-push-t) * 2px);
  }
  /* Selected: the key is down (the push button's latched place) and its LED lit. Hover and press lift and sink it as a key's. */
  :where(.ug-tabs[data-strata-form="rail"] .ug-tab[aria-selected="true"] .ug-tab__cap) { --_lift: var(--strata-state-press-height); --_tone: var(--_press-tone); }
  /* With the GPU drawing the key as parts (the Instrument level), the cap's CSS travel is held: the captured cap travels with the part. */
  :where([data-strata-mode="face"]) .ug-tab[data-strata-dome] .ug-tab__cap { translate: none; }
  :where(.ug-tabs[data-strata-form="rail"] .ug-tab:is(:hover, [data-strata-preview~="hover"]):not(:disabled) .ug-tab__cap) { --_lift: var(--strata-state-hover-height); --_tone: var(--_hover-tone); }
  :where(.ug-tabs[data-strata-form="rail"] .ug-tab:is(:active, [data-strata-preview~="active"]):not(:disabled) .ug-tab__cap) { --_lift: var(--strata-state-press-height); --_tone: var(--_press-tone); }
  :where(.ug-tabs[data-strata-form="rail"] .ug-tab:is(:focus-visible, [data-strata-preview~="focus"]) .ug-tab__cap) {
    outline: var(--strata-focus-width) solid var(--strata-colour-accent);
    outline-offset: var(--strata-focus-offset);
  }
  :where(.ug-tabs[data-strata-form="rail"] .ug-tab:disabled .ug-tab__cap) { --_h: 0px; --_gain: 0; }
  /* The LED: the StatusLight's lens, a glass dome on the plinth above the cap, lit while the tab is selected. */
  :where(.ug-tabs[data-strata-form="rail"] .ug-tab__led) {
    --_on: color-mix(in srgb, var(--_c), white 18%);
    --_off: color-mix(in srgb, var(--_c) 16%, #15171b);
    --_glass: color-mix(in srgb, var(--_on) calc(var(--strata-lit) * 100%), var(--_off));
    --strata-lit: 0;
    position: absolute;
    top: 3px;
    left: calc(50% - 3px);
    box-sizing: border-box;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 calc(var(--strata-lit) * 8px) calc(var(--strata-lit) * 1px) color-mix(in srgb, var(--_on) 55%, transparent);
    transition: --strata-lit var(--strata-motion-fast) linear;
  }
  :where(.ug-tabs[data-strata-form="rail"] .ug-tab__led)::before { content: ""; position: absolute; inset: -1px; border-radius: 50%; background: var(--_off); }
  :where(.ug-tabs[data-strata-form="rail"] .ug-tab__led)::after {
    content: "";
    position: absolute;
    inset: 0;
    box-sizing: border-box;
    border-radius: 50%;
    background: radial-gradient(circle at 36% 30%, color-mix(in srgb, var(--_glass), white 55%) 0, var(--_glass) 45%, color-mix(in srgb, var(--_glass), black 35%) 100%);
    box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.35);
  }
  :where(.ug-tabs[data-strata-form="rail"] .ug-tab[aria-selected="true"]:not(:disabled) .ug-tab__led) { --strata-lit: 1; }
  :where([data-strata-mode="face"]) .ug-tab__led[data-strata-dome]::after { background: transparent; box-shadow: none; }
  /* The panel is the faceplate under the rail: a printed plate edge and a faint tint, the rail's own width apart. */
  :where(.ug-tabs[data-strata-form="rail"] > .ug-tabs__panel) {
    box-sizing: border-box;
    padding: var(--strata-space-4);
    border: 1px solid var(--strata-colour-edge);
    border-radius: var(--strata-radius-control);
    background-color: color-mix(in srgb, var(--strata-colour-text) 3%, transparent);
  }
  :where(.ug-tabs--vertical[data-strata-form="rail"]) > :where(.ug-tabs__panel) { flex: 1 1 10em; padding: var(--strata-space-4); }
  /* The plinth is wider than the flat tabs, so a vertical rail whose panel would be squeezed under 10em (a narrow screen, text at 200%) puts the panel under it. */
  :where(.ug-tabs--vertical[data-strata-form="rail"]) { flex-wrap: wrap; }
  @media (prefers-reduced-motion: reduce) {
    :where(.ug-tabs[data-strata-form="rail"] .ug-tab, .ug-tabs[data-strata-form="rail"] .ug-tab__led) { transition: none; }
  }
  /* More contrast: the selected key says so in more than light and travel, a bar under its label; the LED is flat colour with an edge. */
  @media (prefers-contrast: more) {
    :where(.ug-tabs[data-strata-form="rail"] .ug-tab[aria-selected="true"] .ug-tab__cap) { border-bottom: 3px solid var(--strata-colour-text); }
    :where(.ug-tabs[data-strata-form="rail"] .ug-tab__led) { box-shadow: none; }
    :where(.ug-tabs[data-strata-form="rail"] .ug-tab__led)::after { box-shadow: inset 0 0 0 1px var(--strata-colour-text); }
  }
  :where([data-strata-theme="contrast"], [data-strata-theme="contrast-dark"]) :where(.ug-tabs[data-strata-form="rail"] .ug-tab[aria-selected="true"] .ug-tab__cap) { border-bottom: 3px solid var(--strata-colour-text); }
  /* Forced colours: system colours; Highlight is the selected key and its LED. */
  @media (forced-colors: active) {
    .ug-tabs[data-strata-form="rail"] > .ug-tabs__list { forced-color-adjust: none; border: 1px solid ButtonText; background: Canvas; }
    .ug-tabs[data-strata-form="rail"] .ug-tab { color: ButtonText; }
    .ug-tabs[data-strata-form="rail"] .ug-tab:disabled { color: GrayText; }
    .ug-tabs[data-strata-form="rail"] .ug-tab__cap { forced-color-adjust: none; border: 1px solid ButtonText; background: ButtonFace; color: ButtonText; }
    .ug-tabs[data-strata-form="rail"] .ug-tab[aria-selected="true"] .ug-tab__cap { background: Highlight; color: HighlightText; }
    .ug-tabs[data-strata-form="rail"] .ug-tab:disabled .ug-tab__cap { border-color: GrayText; color: GrayText; }
    .ug-tabs[data-strata-form="rail"] .ug-tab__led { forced-color-adjust: none; border: 1px solid ButtonText; background: Canvas; box-shadow: none; }
    .ug-tabs[data-strata-form="rail"] .ug-tab__led::before, .ug-tabs[data-strata-form="rail"] .ug-tab__led::after { display: none; }
    .ug-tabs[data-strata-form="rail"] .ug-tab[aria-selected="true"]:not(:disabled) .ug-tab__led { background: Highlight; }
    .ug-tabs[data-strata-form="rail"] .ug-tab:focus-visible .ug-tab__cap { outline-color: Highlight; }
    .ug-tabs[data-strata-form="rail"] > .ug-tabs__panel { border-color: CanvasText; background: transparent; }
  }

  /* ---- Accordion ---- */

  /* A stack of raised slabs, one per native <details>; the header row is the <summary>, with a chevron that turns. */
  :where(.ug-accordion) { display: flex; flex-direction: column; gap: var(--strata-space-2); }
  :where(.ug-accordion__item) {
    --_finish: var(--strata-finish-role-control);
    display: block;
    box-sizing: border-box;
    border-radius: var(--strata-radius-control);
    background-color: var(--strata-colour-secondary);
    color: var(--strata-colour-text);
  }
  :where(.ug-accordion__header) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--strata-space-3);
    box-sizing: border-box;
    min-height: max(calc(var(--strata-control-height) + var(--strata-control-offset)), var(--strata-target-min));
    padding: var(--strata-space-2) var(--strata-space-5);
    border-radius: var(--strata-radius-control);
    font-family: var(--strata-font-family);
    font-size: var(--strata-control-font);
    font-weight: var(--strata-font-weight-strong);
    line-height: var(--strata-font-line-height-body);
    list-style: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  :where(.ug-accordion__header)::-webkit-details-marker { display: none; }
  :where(.ug-accordion__header)::marker { content: ""; }
  :where(.ug-accordion__header):is(:hover, [data-strata-preview~="hover"]) { background-color: color-mix(in srgb, var(--strata-colour-text) 6%, transparent); }
  :where(.ug-accordion__title) { min-width: 0; }
  :where(.ug-accordion__chevron) {
    flex: none;
    width: 7px;
    height: 7px;
    margin: 0 2px 4px;
    border-right: 2px solid var(--strata-colour-muted);
    border-bottom: 2px solid var(--strata-colour-muted);
    rotate: 45deg;
    transition: rotate var(--strata-motion-fast) var(--strata-motion-easing-standard), translate var(--strata-motion-fast) var(--strata-motion-easing-standard);
  }
  :where(.ug-accordion__header):is(:hover, [data-strata-preview~="hover"]) > :where(.ug-accordion__chevron) { border-color: var(--strata-colour-text); }
  :where(.ug-accordion__item[open]) > :where(.ug-accordion__header) > :where(.ug-accordion__chevron) { rotate: 225deg; translate: 0 4px; }
  :where(.ug-accordion__body) { padding: 0 var(--strata-space-5) var(--strata-space-4); }
  :where(.ug-accordion__body) > :first-child { margin-top: 0; }
  :where(.ug-accordion__body) > :last-child { margin-bottom: 0; }

  /* ---- List ---- */

  /* One raised slab of rows; an actionable row's link or button fills it. Separators are the next row's top border. */
  :where(.ug-list) {
    --_finish: var(--strata-finish-role-control);
    display: block;
    box-sizing: border-box;
    margin: 0;
    padding: var(--strata-space-1) 0;
    border-radius: var(--strata-radius-control);
    list-style: none;
    background-color: var(--strata-colour-secondary);
    color: var(--strata-colour-text);
  }
  :where(.ug-list__item) { position: relative; display: flex; align-items: center; margin: 0; padding: 0; }
  :where(.ug-list__item + .ug-list__item)::before {
    content: "";
    position: absolute;
    inset: 0 var(--strata-space-5) auto;
    border-top: 1px solid color-mix(in srgb, var(--strata-colour-edge) 50%, transparent);
  }
  :where(.ug-list__item, .ug-list__action) {
    gap: var(--strata-space-4);
    box-sizing: border-box;
    min-height: max(calc(var(--strata-control-height) + var(--strata-control-offset)), var(--strata-target-min));
  }
  :where(.ug-list__item):not(:has(> .ug-list__action)) { padding: var(--strata-space-2) var(--strata-space-5); }
  :where(.ug-list__action) {
    position: relative;
    display: flex;
    flex: 1;
    align-items: center;
    min-width: 0;
    margin: 0;
    padding: var(--strata-space-2) var(--strata-space-5);
    border: 0;
    border-radius: var(--strata-radius-small);
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: start;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  :where(.ug-list__action):is(:hover, [data-strata-preview~="hover"]):not(:disabled) { background-color: color-mix(in srgb, var(--strata-colour-text) 6%, transparent); }
  :where(.ug-list__action):is(:active, [data-strata-preview~="active"]):not(:disabled) { background-color: color-mix(in srgb, var(--strata-colour-text) 10%, transparent); }
  :where(.ug-list__action):is(:focus-visible, [data-strata-preview~="focus"]) {
    outline: var(--strata-focus-width) solid var(--strata-colour-accent);
    outline-offset: calc(-1 * var(--strata-focus-width));
  }
  :where(.ug-list__action:disabled) { color: color-mix(in srgb, var(--strata-colour-text) 38%, transparent); cursor: not-allowed; }
  :where(.ug-list__action[aria-current]:not([aria-current="false"])) {
    background-color: color-mix(in srgb, var(--strata-colour-accent) 10%, transparent);
    box-shadow: inset 3px 0 0 var(--strata-colour-accent);
    font-weight: var(--strata-font-weight-strong);
  }
  :where(.ug-list__start) { display: inline-grid; flex: none; place-items: center; width: 1.25em; height: 1.25em; }
  :where(.ug-list__start) > svg { width: 100%; height: 100%; }
  :where(.ug-list__text) { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
  :where(.ug-list__primary) { overflow-wrap: anywhere; }
  /* Set apart by size, in the text colour: muted text meets 4.5:1 only on the panel colour, not on the slab or a tinted row. */
  :where(.ug-list__secondary, .ug-list__end) { font-size: var(--strata-font-size-small); }
  :where(.ug-list__end) { flex: none; }

  /* ---- Table ---- */

  /* A native table on one raised slab: hairlines between rows, a stronger line under the header row. */
  :where(.ug-table) {
    --_finish: var(--strata-finish-role-control);
    display: block;
    box-sizing: border-box;
    padding: var(--strata-space-2);
    border-radius: var(--strata-radius-control);
    background-color: var(--strata-colour-secondary);
    color: var(--strata-colour-text);
  }
  :where(.ug-table__table) {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--strata-font-family);
    font-size: var(--strata-font-size-body);
    line-height: var(--strata-font-line-height-body);
  }
  :where(.ug-table__caption) {
    padding: var(--strata-space-2) var(--strata-space-4) var(--strata-space-3);
    font-weight: var(--strata-font-weight-strong);
    text-align: start;
  }
  :where(.ug-table__header, .ug-table__cell) {
    box-sizing: border-box;
    height: max(calc(var(--strata-control-height) + var(--strata-control-offset)), var(--strata-target-min));
    padding: var(--strata-space-2) var(--strata-space-4);
    text-align: start;
    vertical-align: middle;
  }
  :where(.ug-table__header) {
    border-bottom: 2px solid var(--strata-colour-edge);
    font-size: var(--strata-font-size-small);
    font-weight: var(--strata-font-weight-strong);
    white-space: nowrap;
  }
  :where(.ug-table__header--numeric, .ug-table__cell--numeric) { text-align: end; font-variant-numeric: tabular-nums; }
  :where(.ug-table__row + .ug-table__row) > :where(.ug-table__cell) { border-top: 1px solid color-mix(in srgb, var(--strata-colour-edge) 50%, transparent); }
  :where(.ug-table__row):hover > :where(.ug-table__cell) { background-color: color-mix(in srgb, var(--strata-colour-text) 4%, transparent); }
  /* A sortable header: its button fills the cell; the sorted column shows an arrow after the label. */
  :where(.ug-table__header):has(> .ug-table__sort) { padding: 0; }
  :where(.ug-table__sort) {
    display: flex;
    align-items: center;
    gap: var(--strata-space-2);
    box-sizing: border-box;
    width: 100%;
    min-height: max(calc(var(--strata-control-height) + var(--strata-control-offset)), var(--strata-target-min));
    margin: 0;
    padding: var(--strata-space-2) var(--strata-space-4);
    border: 0;
    border-radius: var(--strata-radius-small);
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  :where(.ug-table__header--numeric) > :where(.ug-table__sort) { justify-content: flex-end; }
  :where(.ug-table__sort):is(:hover, [data-strata-preview~="hover"]) { background-color: color-mix(in srgb, var(--strata-colour-text) 6%, transparent); }
  :where(.ug-table__sort):is(:active, [data-strata-preview~="active"]) { background-color: color-mix(in srgb, var(--strata-colour-text) 10%, transparent); }
  :where(.ug-table__sort):is(:focus-visible, [data-strata-preview~="focus"]) {
    outline: var(--strata-focus-width) solid var(--strata-colour-accent);
    outline-offset: calc(-1 * var(--strata-focus-width));
  }
  :where(.ug-table__header[aria-sort="ascending"], .ug-table__header[aria-sort="descending"]) > :where(.ug-table__sort)::after {
    content: "";
    border-inline: 4px solid transparent;
    border-bottom: 5px solid currentColor;
  }
  :where(.ug-table__header[aria-sort="descending"]) > :where(.ug-table__sort)::after { border-bottom: 0; border-top: 5px solid currentColor; }

  /* ---- Breadcrumb ---- */

  /* Links in a wrapping row, with a chevron before each item after the first; the current page is plain strong text. */
  :where(.ug-breadcrumb__list) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--strata-space-2);
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: var(--strata-font-size-small);
  }
  :where(.ug-breadcrumb__item) { display: inline-flex; align-items: center; gap: var(--strata-space-2); }
  :where(.ug-breadcrumb__item + .ug-breadcrumb__item)::before {
    content: "";
    width: 5px;
    height: 5px;
    border-top: 1.5px solid var(--strata-colour-muted);
    border-right: 1.5px solid var(--strata-colour-muted);
    rotate: 45deg;
    translate: -1px 0;
  }
  :where(.ug-breadcrumb__link) { display: inline-flex; align-items: center; min-height: var(--strata-target-min); }
  :where(.ug-breadcrumb__link[aria-current="page"]) { color: var(--strata-colour-text); font-weight: var(--strata-font-weight-strong); text-decoration: none; }

  /* ---- Avatar ---- */

  /* A raised coin with initials or a picture. */
  :where(.ug-avatar) {
    --_finish: var(--strata-finish-role-control);
    --_avatar: calc(var(--strata-indicator) * 1.6);
    display: inline-grid;
    flex: none;
    place-items: center;
    box-sizing: border-box;
    width: var(--_avatar);
    height: var(--_avatar);
    overflow: hidden;
    border-radius: 50%;
    background-color: var(--strata-colour-secondary);
    color: var(--strata-colour-text);
    font-family: var(--strata-font-family);
    font-size: calc(var(--_avatar) * 0.4);
    font-weight: var(--strata-font-weight-strong);
    line-height: 1;
    vertical-align: middle;
  }
  :where(.ug-avatar__initials) { user-select: none; }
  :where(.ug-avatar__image) { display: block; width: 100%; height: 100%; object-fit: cover; }

  /* ---- Chip and Tag ---- */

  /* A small raised pill: a tag, a filter chip (a latching key) or a removable chip with a remove button. */
  :where(.ug-chip) {
    --_finish: var(--strata-finish-role-control);
    display: inline-flex;
    align-items: center;
    gap: var(--strata-space-1);
    box-sizing: border-box;
    min-height: max(calc(var(--strata-indicator) + 8px), var(--strata-target-min));
    max-width: 100%;
    margin: 0;
    padding: 0 var(--strata-space-3);
    border: var(--strata-outline-width) solid var(--strata-colour-edge);
    border-radius: var(--strata-radius-pill);
    background-color: var(--strata-colour-secondary);
    color: var(--strata-colour-text);
    font-family: var(--strata-font-family);
    font-size: var(--strata-font-size-small);
    font-weight: var(--strata-font-weight-strong);
    line-height: 1;
    vertical-align: middle;
  }
  :where(button.ug-chip) { cursor: pointer; -webkit-tap-highlight-color: transparent; }
  :where(button.ug-chip):is(:hover, [data-strata-preview~="hover"]):not(:disabled, [aria-disabled="true"]) { --_lift: var(--strata-state-hover-height); --_tone: var(--_hover-tone); }
  :where(button.ug-chip):is(:active, [data-strata-preview~="active"]):not(:disabled, [aria-disabled="true"]) { --_lift: var(--strata-state-press-height); --_tone: var(--_press-tone); }
  :where(button.ug-chip):is(:focus-visible, [data-strata-preview~="focus"]) { outline: var(--strata-focus-width) solid var(--strata-colour-accent); outline-offset: var(--strata-focus-offset); }
  :where(button.ug-chip):disabled { color: color-mix(in srgb, var(--strata-colour-text) 38%, transparent); cursor: not-allowed; }
  /* A filter chip that is on: held down, tinted, and a check mark before its label. */
  :where(.ug-chip[aria-pressed="true"]) {
    --_lift: var(--strata-state-press-height);
    --_tone: var(--_press-tone);
    background-color: color-mix(in srgb, var(--strata-colour-accent) 16%, var(--strata-colour-secondary));
  }
  :where(.ug-chip[aria-pressed="true"])::before {
    content: "";
    width: 4px;
    height: 8px;
    margin: 0 3px 3px 1px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    rotate: 45deg;
  }
  /* A chip never grows past its container: a long label is cut with an ellipsis (line-height keeps descenders in). */
  :where(.ug-chip__label) { min-width: 0; overflow: hidden; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
  :where(.ug-chip:has(> .ug-chip__remove)) { padding-inline-end: 2px; }
  :where(.ug-chip__remove) {
    position: relative;
    flex: none;
    box-sizing: border-box;
    width: max(var(--strata-indicator), 20px);
    height: max(var(--strata-indicator), 20px);
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    cursor: pointer;
  }
  /* The remove button's target reaches the pill's full height. */
  :where(.ug-chip__remove)::after { content: ""; position: absolute; inset: -4px -2px; }
  :where(.ug-chip__remove)::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 10px;
    height: 10px;
    background:
      linear-gradient(45deg, transparent calc(50% - 1px), currentColor calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
      linear-gradient(-45deg, transparent calc(50% - 1px), currentColor calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px));
  }
  :where(.ug-chip__remove):is(:hover, [data-strata-preview~="hover"]) { background-color: color-mix(in srgb, var(--strata-colour-text) 10%, transparent); }
  :where(.ug-chip__remove):is(:focus-visible, [data-strata-preview~="focus"]) { outline: var(--strata-focus-width) solid var(--strata-colour-accent); outline-offset: 0; }

  /* ---- Skeleton ---- */

  /* Flat placeholders with a shimmer sweeping across; still under reduced motion. */
  :where(.ug-skeleton) {
    display: inline-block;
    box-sizing: border-box;
    vertical-align: middle;
    background-color: var(--strata-colour-track);
    background-image: linear-gradient(90deg, transparent 0%, color-mix(in srgb, var(--strata-colour-panel) 60%, transparent) 50%, transparent 100%);
    background-repeat: no-repeat;
    background-size: 40% 100%;
    animation: ug-skeleton-shimmer 1400ms linear infinite;
  }
  :where(.ug-skeleton--text) { display: block; width: 100%; height: 0.8em; margin: 0.35em 0; border-radius: var(--strata-radius-pill); }
  :where(.ug-skeleton-text) { display: block; }
  :where(.ug-skeleton-text) > :where(.ug-skeleton--text:last-child:not(:first-child)) { width: 60%; }
  :where(.ug-skeleton--circle) {
    width: calc(var(--strata-indicator) * 1.6);
    height: calc(var(--strata-indicator) * 1.6);
    border-radius: 50%;
  }
  :where(.ug-skeleton--rect) { display: block; width: 100%; height: 4em; border-radius: var(--strata-radius-control); }
  @keyframes ug-skeleton-shimmer { from { background-position: -40% 0; } to { background-position: 140% 0; } }

  /* ---- MessageBar ---- */

  /* A raised slab with a stripe and an icon in the message's intent; the role, the icon's shape and the stripe carry it. */
  :where(.ug-message-bar) {
    --_finish: var(--strata-finish-role-control);
    --_intent: var(--strata-colour-info);
    --_icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='9' fill='black'/%3E%3Cpath d='M10 9v5M10 6v.5' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: var(--strata-space-3);
    box-sizing: border-box;
    padding: var(--strata-space-4);
    border-inline-start: 4px solid var(--_intent);
    border-radius: var(--strata-radius-control);
    background-color: var(--strata-colour-secondary);
    color: var(--strata-colour-text);
    font-family: var(--strata-font-family);
    font-size: var(--strata-font-size-body);
    line-height: var(--strata-font-line-height-body);
  }
  :where(.ug-message-bar--success) { --_intent: var(--strata-colour-success); --_icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='9' fill='black'/%3E%3Cpath d='M6 10.5l3 3 5-6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
  :where(.ug-message-bar--warning) { --_intent: var(--strata-colour-warning); --_icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1.5L19 18H1z' fill='black'/%3E%3Cpath d='M10 7.5v4.5M10 14.5v.5' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
  :where(.ug-message-bar--danger) { --_intent: var(--strata-colour-danger); --_icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='9' fill='black'/%3E%3Cpath d='M7 7l6 6M13 7l-6 6' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
  :where(.ug-message-bar__icon) {
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    background-color: var(--_intent);
    mask: var(--_icon) center / 100% 100% no-repeat;
  }
  :where(.ug-message-bar__content) { flex: 1 1 12rem; min-width: 0; }
  :where(.ug-message-bar__title, .ug-message-bar__body) { margin: 0; }
  :where(.ug-message-bar__title) { font-weight: var(--strata-font-weight-strong); }
  :where(.ug-message-bar__actions) { display: flex; flex-wrap: wrap; gap: var(--strata-space-2); align-items: center; }
  :where(.ug-message-bar__dismiss) {
    position: relative;
    flex: none;
    width: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    cursor: pointer;
  }
  :where(.ug-message-bar__dismiss)::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 12px;
    height: 12px;
    background:
      linear-gradient(45deg, transparent calc(50% - 1px), currentColor calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
      linear-gradient(-45deg, transparent calc(50% - 1px), currentColor calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px));
  }
  :where(.ug-message-bar__dismiss):is(:hover, [data-strata-preview~="hover"]) { background-color: color-mix(in srgb, var(--strata-colour-text) 10%, transparent); }
  :where(.ug-message-bar__dismiss):is(:focus-visible, [data-strata-preview~="focus"]) { outline: var(--strata-focus-width) solid var(--strata-colour-accent); outline-offset: 0; }

  /* ---- Pagination ---- */

  /* A row of small keys, far enough apart that their shadows do not touch; the current page is held down and filled. */
  :where(.ug-pagination__list) { display: flex; flex-wrap: wrap; align-items: center; gap: var(--strata-space-3); margin: 0; padding: 0; list-style: none; }
  :where(.ug-pagination__item) { display: inline-flex; }
  :where(.ug-pagination__link) {
    --_finish: var(--strata-finish-role-control);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: max(calc(var(--strata-control-height) + var(--strata-control-offset)), var(--strata-target-min));
    min-height: max(calc(var(--strata-control-height) + var(--strata-control-offset)), var(--strata-target-min));
    margin: 0;
    padding: 0 var(--strata-space-2);
    border-radius: var(--strata-radius-control);
    background-color: var(--strata-colour-secondary);
    color: var(--strata-colour-text);
    font-family: var(--strata-font-family);
    font-size: var(--strata-control-font);
    font-variant-numeric: tabular-nums;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  :where(.ug-pagination__link):is(:hover, [data-strata-preview~="hover"]):not(:disabled, [aria-disabled="true"], [aria-current="page"]) { --_lift: var(--strata-state-hover-height); --_tone: var(--_hover-tone); }
  :where(.ug-pagination__link):is(:active, [data-strata-preview~="active"]):not(:disabled, [aria-disabled="true"]) { --_lift: var(--strata-state-press-height); --_tone: var(--_press-tone); }
  :where(.ug-pagination__link):is(:focus-visible, [data-strata-preview~="focus"]) { outline: var(--strata-focus-width) solid var(--strata-colour-accent); outline-offset: var(--strata-focus-offset); }
  :where(.ug-pagination__link[aria-current="page"]) {
    --_finish: var(--strata-finish-role-button-primary);
    --_lift: var(--strata-state-press-height);
    --_tone: var(--_press-tone);
    background-color: var(--strata-colour-accent);
    color: var(--strata-colour-on-accent);
    font-weight: var(--strata-font-weight-strong);
  }
  :where(.ug-pagination__link):is(:disabled, [aria-disabled="true"]) { color: color-mix(in srgb, var(--strata-colour-text) 38%, transparent); cursor: not-allowed; }
  :where(.ug-pagination__link--previous, .ug-pagination__link--next)::before {
    content: "";
    width: 6px;
    height: 6px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
  }
  :where(.ug-pagination__link--previous)::before { rotate: -135deg; translate: 1px 0; }
  :where(.ug-pagination__link--next)::before { rotate: 45deg; translate: -1px 0; }
  :where(.ug-pagination__link--previous, .ug-pagination__link--next):dir(rtl)::before { scale: -1 1; }
  :where(.ug-pagination__ellipsis) { display: inline-flex; align-items: center; min-width: var(--strata-target-min); justify-content: center; color: var(--strata-colour-muted); }

  /* ---- AppBar ---- */

  /* The application's top bar: a raised slab with controls at its ends and the title between them. */
  :where(.ug-app-bar) {
    --_finish: var(--strata-finish-role-control);
    display: flex;
    align-items: center;
    gap: var(--strata-space-3);
    box-sizing: border-box;
    min-height: calc(var(--strata-control-height) + var(--strata-control-offset) + 2 * var(--strata-space-3));
    padding: var(--strata-space-3) var(--strata-space-4);
    border-radius: var(--strata-radius-control);
    background-color: var(--strata-colour-secondary);
    color: var(--strata-colour-text);
    font-family: var(--strata-font-family);
  }
  :where(.ug-app-bar__start, .ug-app-bar__end) { display: flex; flex: none; align-items: center; gap: var(--strata-space-2); }
  :where(.ug-app-bar__title) {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    font-size: var(--strata-font-size-subtitle);
    font-weight: var(--strata-font-weight-strong);
    line-height: var(--strata-font-line-height-heading);
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  :where(.ug-app-bar__title) > :where(h1, h2, h3, h4, h5, h6) { margin: 0; font: inherit; }

  /* ---- Tooltip ---- */

  /* A small floating slab in the top layer, placed beside its trigger by the behaviour (`position: fixed`). */
  :where(.ug-tooltip) {
    --_h: var(--strata-elevation-overlay);
    position: fixed;
    inset: auto;
    box-sizing: border-box;
    max-width: min(20rem, calc(100vw - 8px));
    margin: 0;
    padding: var(--strata-space-1) var(--strata-space-3);
    border: 0;
    border-radius: var(--strata-radius-small);
    background-color: var(--strata-colour-text);
    color: var(--strata-colour-panel);
    font-family: var(--strata-font-family);
    font-size: var(--strata-font-size-small);
    line-height: var(--strata-font-line-height-body);
    box-shadow: calc(var(--strata-shadow-dx) * var(--_h) * 0.5) calc(var(--strata-shadow-dy) * var(--_h) * 0.5) calc(var(--_h) * 0.9 + 1px) rgb(0 0 0 / min(1, calc(var(--strata-shadow-strength) * 1.56)));
    overflow: visible;
    opacity: 1;
    transition: opacity var(--strata-motion-fast) var(--strata-motion-easing-standard), display var(--strata-motion-fast) allow-discrete, overlay var(--strata-motion-fast) allow-discrete;
  }
  :where(.ug-tooltip):not(:popover-open) { opacity: 0; }
  @starting-style { :where(.ug-tooltip):popover-open { opacity: 0; } }

  /* ---- Popover ---- */

  /* A floating slab in the top layer, anchored below its button (its implicit anchor), flipped above when there is no room. */
  :where(.ug-popover) {
    --_finish: var(--strata-finish-role-panel);
    --_h: var(--strata-elevation-overlay);
    box-sizing: border-box;
    width: max-content;
    max-width: min(24rem, calc(100vw - 16px));
    margin: var(--strata-space-1) 0;
    padding: var(--strata-space-4);
    border-radius: var(--strata-radius-control);
    background-color: var(--strata-colour-panel);
    color: var(--strata-colour-text);
    font-family: var(--strata-font-family);
    position-area: block-end span-inline-end;
    position-try-fallbacks: flip-block;
    opacity: 1;
    transition: opacity var(--strata-motion-fast) var(--strata-motion-easing-standard), display var(--strata-motion-fast) allow-discrete, overlay var(--strata-motion-fast) allow-discrete;
  }
  :where(.ug-popover[data-strata-placement="top"]) { position-area: block-start span-inline-end; }
  /* Opened from inside an Underglass layer, where anchor positioning does not follow the layer: placed by script. */
  :where(.ug-popover, .ug-menu)[data-strata-anchor="script"] { position-area: none; inset: auto; margin: 0; }
  :where(.ug-popover):not(:popover-open) { opacity: 0; }
  @starting-style { :where(.ug-popover):popover-open { opacity: 0; } }
  :where(.ug-popover__title) { margin: 0 0 var(--strata-space-2); font-size: var(--strata-font-size-body); font-weight: var(--strata-font-weight-strong); }
  :where(.ug-popover__body) { display: flex; flex-direction: column; gap: var(--strata-space-2); }

  /* ---- Menu ---- */

  /* A floating slab like a Popover, with flat rows: the focused row is tinted. */
  :where(.ug-menu) {
    --_finish: var(--strata-finish-role-panel);
    --_h: var(--strata-elevation-overlay);
    box-sizing: border-box;
    min-width: 10rem;
    max-width: min(20rem, calc(100vw - 16px));
    margin: var(--strata-space-1) 0;
    padding: var(--strata-space-1);
    border-radius: var(--strata-radius-control);
    background-color: var(--strata-colour-panel);
    color: var(--strata-colour-text);
    font-family: var(--strata-font-family);
    position-area: block-end span-inline-end;
    position-try-fallbacks: flip-block;
    opacity: 1;
    transition: opacity var(--strata-motion-fast) var(--strata-motion-easing-standard), display var(--strata-motion-fast) allow-discrete, overlay var(--strata-motion-fast) allow-discrete;
  }
  :where(.ug-menu[data-strata-placement="top"]) { position-area: block-start span-inline-end; }
  :where(.ug-menu):not(:popover-open) { opacity: 0; }
  @starting-style { :where(.ug-menu):popover-open { opacity: 0; } }
  :where(.ug-menu__item) {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 32px;
    margin: 0;
    padding: 0 var(--strata-space-3);
    border: 0;
    border-radius: var(--strata-radius-small);
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: start;
    cursor: pointer;
  }
  :where(.ug-menu__item):is(:hover, :focus) { outline: none; background-color: color-mix(in srgb, var(--strata-colour-accent) 16%, var(--strata-colour-panel)); }
  :where(.ug-menu__item:focus-visible) { outline: var(--strata-focus-width) solid var(--strata-colour-accent); outline-offset: calc(-1 * var(--strata-focus-width)); }
  :where(.ug-menu__item[aria-disabled="true"]) { color: color-mix(in srgb, var(--strata-colour-text) 38%, transparent); cursor: default; }
  :where(.ug-menu__item[aria-disabled="true"]:hover:not(:focus)) { background: transparent; }
  :where(.ug-menu__separator) { margin: var(--strata-space-1) 0; border: 0; border-top: 1px solid var(--strata-colour-edge); }

  /* ---- Toast ---- */

  /* One region in the top layer, in the end-bottom corner: a column of MessageBars at elevation.overlay. */
  :where(.ug-toast-region) {
    position: fixed;
    inset: auto var(--strata-space-4) var(--strata-space-4) auto;
    width: min(24rem, calc(100vw - 2 * var(--strata-space-4)));
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible;
  }
  :where(.ug-toast-region):dir(rtl) { inset: auto auto var(--strata-space-4) var(--strata-space-4); }
  :where(.ug-toast-region__list) { display: flex; flex-direction: column; gap: var(--strata-space-2); }
  :where(.ug-toast) {
    --_h: var(--strata-elevation-overlay);
    translate: 0 0;
    opacity: 1;
    transition: translate var(--strata-motion-normal) var(--strata-motion-easing-standard), opacity var(--strata-motion-normal) var(--strata-motion-easing-standard);
  }
  @starting-style { :where(.ug-toast) { translate: 0 8px; opacity: 0; } }

  /* ---- SegmentedControl ---- */

  /* Native radios, each visually hidden over its key; the keys stand on one plinth, as a ButtonGroup's. */
  :where(.ug-segmented) {
    display: inline-flex;
    flex-direction: column;
    gap: var(--strata-space-1);
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--strata-colour-text);
    font-family: var(--strata-font-family);
  }
  :where(.ug-segmented__legend) {
    margin-bottom: var(--strata-space-2);
    padding: 0;
    font-size: var(--strata-font-size-small);
    font-weight: var(--strata-font-weight-strong);
  }
  :where(.ug-segmented__legend--hidden) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  :where(.ug-segmented__plinth) {
    --_finish: var(--strata-finish-role-panel);
    display: inline-flex;
    flex-wrap: wrap;
    gap: var(--strata-space-2);
    padding: var(--strata-space-2);
    border-radius: calc(var(--strata-radius-control) + var(--strata-space-2));
    background-color: var(--strata-colour-panel);
  }
  :where(.ug-segmented__item) { position: relative; display: inline-flex; }
  :where(.ug-segmented__input) { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
  :where(.ug-segmented__input:disabled) { cursor: default; }
  :where(.ug-segmented__key) {
    --_finish: var(--strata-finish-role-control);
    --_text: var(--strata-colour-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: var(--strata-target-min);
    min-height: max(calc(var(--strata-control-height) + var(--strata-control-offset)), var(--strata-target-min));
    padding: 0 var(--strata-space-5);
    border: var(--strata-outline-width) solid var(--strata-colour-edge);
    border-radius: var(--strata-radius-control);
    background-color: var(--strata-colour-secondary);
    color: var(--_text);
    font-size: var(--strata-control-font);
    font-weight: var(--strata-font-weight-strong);
    line-height: 1;
  }
  :where(.ug-segmented__item:hover > .ug-segmented__input:not(:disabled) + .ug-segmented__key) {
    --_lift: var(--strata-state-hover-height);
    --_tone: var(--_hover-tone);
  }
  /* Pressed, and held down while selected: the latched ToggleButton's three cues. */
  :where(.ug-segmented__input:not(:disabled):active + .ug-segmented__key) {
    --_lift: var(--strata-state-press-height);
    --_tone: var(--_press-tone);
  }
  :where(.ug-segmented__input:checked + .ug-segmented__key) {
    --_lift: var(--strata-state-press-height);
    --_tone: var(--_press-tone);
    padding-top: 3px;
    border-bottom: 3px solid var(--strata-colour-accent);
    background-color: color-mix(in srgb, var(--strata-colour-accent) 16%, var(--strata-colour-secondary));
  }
  :where(.ug-segmented__input:focus-visible + .ug-segmented__key) {
    outline: var(--strata-focus-width) solid var(--strata-colour-accent);
    outline-offset: var(--strata-focus-offset);
  }
  :where(.ug-segmented__input:disabled + .ug-segmented__key) {
    --_h: 0;
    color: color-mix(in srgb, var(--_text) 38%, transparent);
  }

  /* ---- Latching forms: Checkbox, RadioGroup (a preset bank) and SegmentedControl ---- */

  /*
   * `form="latching"` on a Checkbox or a SegmentedControl, `form="bank"` on a RadioGroup (anatomy pages `checkbox.md`, `radio.md`,
   * `segmented-control.md`, *Latching forms*): the native input is an invisible overlay on its key's whole box, inside a host that
   * is a push button's (`.ug-push`, so the lit ring, the LED, the cap's travel and the GPU's parts are the PushButton's). The host
   * takes its lights and travel from the input: `--strata-lit` the ring, `--strata-led` the LED and `--strata-push-t` the cap, set
   * from `:checked`, `:indeterminate`, being held and `:disabled`. A Checkbox's key is a small square with a bezel and a ring; a bank
   * key is a cap on a plinth shared by the group, with an LED on the plinth above it. `flush` (and no `form`) is the markup and the
   * look of the controls before these forms existed: none of these rules reach it.
   */
  :where(.ug-latch) {
    --_text: var(--strata-colour-text);
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 0;
    vertical-align: middle;
    cursor: pointer;
  }
  /* The native input covers the key (an invisible overlay, square so that its hit area is the key's whole box): every press and every key lands on it. */
  .ug-latch > :is(.ug-checkbox__input, .ug-radio__input, .ug-segmented__input) {
    position: absolute;
    inset: 0;
    z-index: 1;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    appearance: none;
    opacity: 0;
    cursor: inherit;
  }
  /* The Checkbox's key: the cap is the indicator size (16, 20, 24 px), the box that plus 22 px. */
  :where(.ug-latch--key) {
    --_cap: var(--strata-indicator);
    --_halo: 4px;
    --_r: var(--strata-radius-small);
  }
  :where(.ug-latch--key .ug-push__bezel) { border-radius: calc(var(--_r) + 7px); }
  :where(.ug-latch--key :is(.ug-push__socket, .ug-push__ring)) { border-radius: calc(var(--_r) + 2.6px); }
  :where(.ug-latch--key .ug-push__cap) { padding: 0; border-radius: var(--_r); }
  /* The mark is printed on the cap: a check when checked, a dash when mixed. */
  :where(.ug-latch--key .ug-checkbox__mark) { inset: 0; width: 100%; height: 100%; translate: none; }
  :where(.ug-latch:has(> .ug-checkbox__input:checked) .ug-checkbox__mark) { opacity: 1; }
  :where(.ug-latch:has(> .ug-checkbox__input:indeterminate) .ug-checkbox__mark) {
    opacity: 1;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12h10' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
  }
  :where(.ug-latch:has(> .ug-checkbox__input:disabled) .ug-checkbox__mark) { opacity: 0.38; }
  :where(.ug-latch:has(> .ug-checkbox__input:disabled:not(:checked, :indeterminate)) .ug-checkbox__mark) { opacity: 0; }
  /* A bank key: a cap as tall as a control, 6 px of plinth round it and a strip above it for the LED. */
  :where(.ug-latch--bank) {
    --_cap: 0px;
    padding: calc(var(--_halo) + 9px) 6px 6px;
    border-radius: 0;
  }
  :where(.ug-latch--bank .ug-push__cap) {
    min-width: max(var(--strata-target-min), var(--_cap));
    min-height: max(calc(var(--strata-control-height) + var(--strata-control-offset)), var(--strata-target-min));
    padding: 6px var(--strata-space-5);
    border-radius: var(--strata-radius-control);
    font-size: var(--strata-control-font);
    font-weight: var(--strata-font-weight-strong);
  }
  /* The plinth: one raised part of polished metal the keys stand on and the LEDs sit in; the group keeps its room round it for its shadow. */
  :where(.ug-bank__plinth) {
    --_finish: var(--strata-finish-role-panel);
    --_metal: var(--strata-colour-knob);
    --_metal-light: color-mix(in srgb, var(--strata-colour-knob), white 60%);
    --_metal-shade: color-mix(in srgb, var(--strata-colour-knob), var(--strata-colour-edge) 45%);
    display: inline-flex;
    flex-wrap: wrap;
    align-items: stretch;
    align-self: flex-start;
    box-sizing: border-box;
    max-width: 100%;
    gap: 0;
    padding: 2px;
    border-radius: calc(var(--strata-radius-control) + 8px);
    background: linear-gradient(160deg, var(--_metal-light), var(--_metal) 45%, var(--_metal-shade));
  }
  :where(.ug-radio-group[data-strata-form="bank"], .ug-segmented[data-strata-form="latching"]) { box-sizing: border-box; max-width: 100%; padding: 8px; }
  :where(.ug-radio-group[data-strata-form="bank"] .ug-radio) { min-height: 0; gap: 0; }
  /* The key's flush paint (its own border) gives way to the cap's. */
  :where(.ug-segmented[data-strata-form="latching"] .ug-segmented__key) { border: 0; }

  /* Lit, down, held and disabled: the numbers the ring, the LED and the cap follow (GPU and CSS alike). */
  :where(.ug-latch:has(> input:checked)) { --strata-lit: 1; --strata-led: 1; --strata-push-t: 0.45; }
  /* Only a checkbox is mixed: a radio is `:indeterminate` while no radio of its group is checked. */
  :where(.ug-latch:has(> .ug-checkbox__input:indeterminate)) { --strata-lit: 0.5; --strata-led: 0.5; --strata-push-t: 0.2; }
  :where(.ug-latch:is(:has(> input:active):not([data-strata-down="false"]), [data-strata-down="true"], [data-strata-preview~="active"]):not(:has(> input:disabled))) { --strata-lit: 1; --strata-push-t: 1; }
  :where(.ug-latch:has(> input:disabled)) { --strata-lit: 0; --strata-led: 0; --strata-push-t: 0; }
  :where(.ug-latch:has(> input:disabled:checked:not(.ug-checkbox__input:indeterminate))) { --strata-push-t: 0.45; }
  /* Hover and press lift the parts as a push button's do; focus is a ring round the bezel (the cap, in a bank), in every presentation. */
  :where(.ug-latch:is(:hover, [data-strata-preview~="hover"]):not(:has(> input:disabled))) :where(.ug-push__bezel, .ug-push__cap) {
    --_lift: var(--strata-state-hover-height);
    --_tone: var(--_hover-tone);
  }
  :where(.ug-latch:is(:has(> input:active):not([data-strata-down="false"]), [data-strata-down="true"], [data-strata-preview~="active"]):not(:has(> input:disabled))) :where(.ug-push__cap) {
    --_lift: var(--strata-state-press-height);
    --_tone: var(--_press-tone);
  }
  :where(.ug-latch--key:is(:has(> input:focus-visible), [data-strata-preview~="focus"])) :where(.ug-push__bezel),
  :where(.ug-latch--bank:is(:has(> input:focus-visible), [data-strata-preview~="focus"])) :where(.ug-push__cap) {
    outline: var(--strata-focus-width) solid var(--strata-colour-accent);
    outline-offset: var(--strata-focus-offset);
  }
  :where(.ug-latch:has(> input:disabled)) { cursor: not-allowed; }
  :where(.ug-latch:has(> input:disabled)) :where(.ug-push__object) { opacity: 0.38; }
  :where(.ug-latch:has(> input:disabled)) :where(.ug-push__bezel, .ug-push__cap) { --_h: 0px; --_gain: 0; }
  :where(.ug-latch--bank:has(> input:disabled)) :where(.ug-push__cap) { color: color-mix(in srgb, var(--_text) 38%, transparent); }
  /* More contrast: the key that is down says so in more than light, a bar under its label; the borders and flat colours are the push button's. */
  @media (prefers-contrast: more) {
    :where(.ug-latch--bank:has(> input:checked)) :where(.ug-push__cap) { box-shadow: inset 0 -3px 0 var(--strata-colour-text); }
  }
  :where([data-strata-theme="contrast"], [data-strata-theme="contrast-dark"]) :where(.ug-latch--bank:has(> input:checked)) :where(.ug-push__cap) { box-shadow: inset 0 -3px 0 var(--strata-colour-text); }
  /* Forced colours: the push button's system colours; Highlight is the lit ring, the LED and the key that is down. */
  @media (forced-colors: active) {
    .ug-latch.ug-push:has(> input:disabled) { color: GrayText; }
    .ug-latch:has(> input:checked) .ug-push__ring, .ug-latch:has(> input:checked) .ug-push__led { background: Highlight; }
    .ug-latch:has(> input:disabled) :is(.ug-push__bezel, .ug-push__ring, .ug-push__led, .ug-push__cap) { border-color: GrayText; }
    .ug-latch:has(> input:disabled) .ug-push__object { opacity: 1; }
    .ug-latch--bank:has(> input:checked) .ug-push__cap { background: Highlight; color: HighlightText; }
    .ug-latch--bank:has(> input:disabled) .ug-push__cap { color: GrayText; }
    .ug-latch--key:has(> input:focus-visible) .ug-push__bezel, .ug-latch--bank:has(> input:focus-visible) .ug-push__cap { outline-color: Highlight; }
    .ug-bank__plinth { forced-color-adjust: none; background: Canvas; border: 1px solid ButtonText; }
  }

  /* ---- Rating ---- */

  /* Stars printed on the panel (captured content, no relief): radios visually hidden over 24 px targets, and a display. */
  :where(.ug-rating, .ug-rating-display) { --_star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.94 6.1 6.56.8-4.85 4.57 1.25 6.53L12 17.27 6.1 20.5l1.25-6.53L2.5 9.4l6.56-.8z'/%3E%3C/svg%3E"); }
  :where(.ug-rating) {
    display: inline-flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--strata-colour-text);
    font-family: var(--strata-font-family);
  }
  :where(.ug-rating__legend) {
    margin-bottom: var(--strata-space-2);
    padding: 0;
    font-size: var(--strata-font-size-small);
    font-weight: var(--strata-font-weight-strong);
  }
  :where(.ug-rating__stars) { display: inline-flex; gap: var(--strata-space-1); }
  :where(.ug-rating__item) { position: relative; display: inline-flex; width: var(--strata-target-min); height: var(--strata-target-min); }
  :where(.ug-rating__input) { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
  :where(.ug-rating__input:disabled) { cursor: default; }
  :where(.ug-rating__label) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  :where(.ug-rating__star) {
    --_fill: var(--strata-colour-edge);
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: var(--strata-radius-control);
  }
  /* The shape is a mask on a pseudo-element, so the focus outline on the target is not cut to it. */
  :where(.ug-rating__star)::before { content: ""; position: absolute; inset: 1px; background-color: var(--_fill); mask: var(--_star) center / contain no-repeat; }
  /* Filled up to the checked star; a hovered star previews its score. */
  :where(.ug-rating__input:checked + .ug-rating__star, .ug-rating__item:has(~ .ug-rating__item > .ug-rating__input:checked) > .ug-rating__star) {
    --_fill: var(--strata-colour-accent);
  }
  :where(.ug-rating__stars:has(> .ug-rating__item:hover > .ug-rating__input:not(:disabled))) > :where(.ug-rating__item) > :where(.ug-rating__star) {
    --_fill: var(--strata-colour-edge);
  }
  :where(.ug-rating__stars:has(> .ug-rating__item:hover > .ug-rating__input:not(:disabled))) > :where(.ug-rating__item:hover, .ug-rating__item:has(~ .ug-rating__item:hover)) > :where(.ug-rating__star) {
    --_fill: color-mix(in srgb, var(--strata-colour-accent) 55%, var(--strata-colour-edge));
  }
  :where(.ug-rating__input:focus-visible + .ug-rating__star) {
    outline: var(--strata-focus-width) solid var(--strata-colour-accent);
    outline-offset: var(--strata-focus-offset);
  }
  :where(.ug-rating__input:disabled + .ug-rating__star) { opacity: 0.38; }
  :where(.ug-rating-display) {
    display: inline-block;
    vertical-align: middle;
    width: calc(var(--strata-rating-max, 5) * 1.25em);
    height: 1.25em;
    background: linear-gradient(90deg, var(--strata-colour-accent) calc(var(--strata-rating, 0) * 100%), var(--strata-colour-edge) 0);
    mask: var(--_star) 0 0 / 1.25em 1.25em repeat-x;
  }

  /* ---- Stepper ---- */

  /* Coins on a groove. A step's state is its place relative to aria-current="step": before it, complete. */
  :where(.ug-stepper) {
    --_marker: calc(var(--strata-indicator) + 8px);
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--strata-colour-text);
    font-family: var(--strata-font-family);
    font-size: var(--strata-font-size-small);
  }
  :where(.ug-stepper__step) {
    position: relative;
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    gap: var(--strata-space-2);
    min-width: 0;
    text-align: center;
  }
  :where(.ug-stepper__marker) {
    position: relative;
    z-index: 1;
    display: inline-grid;
    place-items: center;
    box-sizing: border-box;
    width: var(--_marker);
    height: var(--_marker);
    border-radius: 50%;
    background-color: var(--strata-colour-track);
    /* The text colour: muted text on the track is under 4.5:1. */
    color: var(--strata-colour-text);
    font-weight: var(--strata-font-weight-strong);
    font-variant-numeric: tabular-nums;
  }
  :where(.ug-stepper__step:has(~ .ug-stepper__step[aria-current="step"])) > :where(.ug-stepper__marker) {
    background-color: var(--strata-colour-accent);
    color: var(--strata-colour-on-accent);
  }
  :where(.ug-stepper__step[aria-current="step"]) > :where(.ug-stepper__marker) {
    border: 2px solid var(--strata-colour-accent);
    background-color: var(--strata-colour-secondary);
    color: var(--strata-colour-text);
  }
  :where(.ug-stepper__label) { overflow-wrap: anywhere; }
  :where(.ug-stepper__step[aria-current="step"]) > :where(.ug-stepper__label) { font-weight: var(--strata-font-weight-strong); }
  :where(.ug-stepper__step[aria-current="step"] ~ .ug-stepper__step) > :where(.ug-stepper__label) { color: var(--strata-colour-muted); }
  :where(.ug-stepper__status) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  /* The line runs from the previous marker's centre to this one's, behind both. */
  :where(.ug-stepper__line) {
    position: absolute;
    top: calc(var(--_marker) / 2 - 2px);
    right: calc(50% + var(--_marker) / 2);
    left: calc(-50% + var(--_marker) / 2);
    height: 4px;
    border-radius: 2px;
    background-color: var(--strata-colour-track);
  }
  :where(.ug-stepper__step:has(~ .ug-stepper__step[aria-current="step"]), .ug-stepper__step[aria-current="step"]) > :where(.ug-stepper__line) {
    background-color: var(--strata-colour-accent);
  }
  :where(.ug-stepper--vertical) { flex-direction: column; }
  :where(.ug-stepper--vertical) > :where(.ug-stepper__step) {
    flex: 0 0 auto;
    flex-direction: row;
    align-items: flex-start;
    min-height: calc(var(--_marker) + var(--strata-space-6));
    text-align: start;
  }
  :where(.ug-stepper--vertical) > :where(.ug-stepper__step) > :where(.ug-stepper__label) { padding-top: calc((var(--_marker) - 1lh) / 2); }
  :where(.ug-stepper--vertical) > :where(.ug-stepper__step) > :where(.ug-stepper__line) {
    /* Steps are a marker and space.6 high: the line fills the space.6 above this marker, up to the previous one. */
    top: calc(-1 * var(--strata-space-6));
    right: auto;
    left: calc(var(--_marker) / 2 - 2px);
    width: 4px;
    height: var(--strata-space-6);
  }

  /* ---- NavigationRail ---- */

  /* Keys on a raised slab down the start edge; the current destination's key is held down. */
  :where(.ug-nav-rail) {
    --_finish: var(--strata-finish-role-control);
    display: inline-flex;
    flex-direction: column;
    box-sizing: border-box;
    padding: var(--strata-space-2);
    border-radius: calc(var(--strata-radius-control) + var(--strata-space-2));
    background-color: var(--strata-colour-secondary);
    color: var(--strata-colour-text);
    font-family: var(--strata-font-family);
  }
  :where(.ug-nav-rail__list) { display: flex; flex-direction: column; gap: var(--strata-space-1); margin: 0; padding: 0; list-style: none; }
  :where(.ug-nav-rail__entry) { display: flex; }
  :where(.ug-nav-rail__item) {
    --_finish: var(--strata-finish-role-control);
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--strata-space-1);
    box-sizing: border-box;
    min-width: 56px;
    min-height: 48px;
    padding: var(--strata-space-2);
    border: var(--strata-outline-width) solid var(--strata-colour-edge);
    border-radius: var(--strata-radius-control);
    background-color: var(--strata-colour-secondary);
    color: var(--strata-colour-text);
    font-size: var(--strata-font-size-small);
    font-weight: var(--strata-font-weight-strong);
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
  }
  :where(.ug-nav-rail__icon) { display: inline-grid; width: 24px; height: 24px; }
  :where(.ug-nav-rail__icon:empty) { display: none; }
  :where(.ug-nav-rail__label) { max-width: 100%; overflow-wrap: anywhere; }
  :where(.ug-nav-rail__icon) > svg { width: 100%; height: 100%; }
  :where(.ug-nav-rail__item):is(:hover, [data-strata-preview~="hover"]) {
    --_lift: var(--strata-state-hover-height);
    --_tone: var(--_hover-tone);
  }
  :where(.ug-nav-rail__item):is(:active, [data-strata-preview~="active"]) {
    --_lift: var(--strata-state-press-height);
    --_tone: var(--_press-tone);
  }
  /* The current destination: held down, tinted, and a strip along its start edge. */
  :where(.ug-nav-rail__item[aria-current="page"]) {
    --_lift: var(--strata-state-press-height);
    --_tone: var(--_press-tone);
    border-inline-start: 3px solid var(--strata-colour-accent);
    background-color: color-mix(in srgb, var(--strata-colour-accent) 16%, var(--strata-colour-secondary));
  }
  :where(.ug-nav-rail__item):is(:focus-visible, [data-strata-preview~="focus"]) {
    outline: var(--strata-focus-width) solid var(--strata-colour-accent);
    outline-offset: var(--strata-focus-offset);
  }

  /* ---- TreeView ---- */

  /* One raised slab with flat rows; a closed item's group is hidden from aria-expanded. */
  :where(.ug-tree) {
    --_finish: var(--strata-finish-role-control);
    display: block;
    box-sizing: border-box;
    margin: 0;
    padding: var(--strata-space-1);
    border-radius: var(--strata-radius-control);
    background-color: var(--strata-colour-secondary);
    color: var(--strata-colour-text);
    font-family: var(--strata-font-family);
    list-style: none;
  }
  :where(.ug-tree__group) { margin: 0; padding: 0; padding-inline-start: var(--strata-space-5); list-style: none; }
  :where(.ug-tree__item[aria-expanded="false"]) > :where(.ug-tree__group) { display: none; }
  :where(.ug-tree__item) { outline: none; }
  :where(.ug-tree__row) {
    display: flex;
    align-items: center;
    gap: var(--strata-space-1);
    box-sizing: border-box;
    min-height: 32px;
    padding-inline: var(--strata-space-2);
    border-radius: var(--strata-radius-small);
    cursor: default;
    user-select: none;
  }
  /* A leaf's row starts where its siblings' labels do, past the toggle. */
  :where(.ug-tree__item:not([aria-expanded])) > :where(.ug-tree__row) { padding-inline-start: calc(var(--strata-space-2) + 16px + var(--strata-space-1)); }
  :where(.ug-tree__row:hover) { background-color: color-mix(in srgb, var(--strata-colour-text) 6%, transparent); }
  /* The selected row: tinted, a strip along its start edge, and strong. */
  :where(.ug-tree__item[aria-selected="true"]) > :where(.ug-tree__row) {
    padding-inline-start: calc(var(--strata-space-2) - 3px);
    border-inline-start: 3px solid var(--strata-colour-accent);
    background-color: color-mix(in srgb, var(--strata-colour-accent) 16%, var(--strata-colour-secondary));
    font-weight: var(--strata-font-weight-strong);
  }
  :where(.ug-tree__item[aria-selected="true"]:not([aria-expanded])) > :where(.ug-tree__row) { padding-inline-start: calc(var(--strata-space-2) + 16px + var(--strata-space-1) - 3px); }
  :where(.ug-tree__item:focus-visible) > :where(.ug-tree__row) {
    outline: var(--strata-focus-width) solid var(--strata-colour-accent);
    outline-offset: calc(-1 * var(--strata-focus-width));
  }
  /* The toggle: a chevron pointing along the text when closed, and down when open. */
  :where(.ug-tree__toggle) { display: inline-grid; flex: none; place-items: center; width: 16px; height: 16px; cursor: pointer; }
  :where(.ug-tree__toggle)::before {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    rotate: -45deg;
    transition: rotate var(--strata-motion-fast) var(--strata-motion-easing-standard);
  }
  :where(.ug-tree:dir(rtl)) :where(.ug-tree__toggle)::before { rotate: 135deg; }
  :where(.ug-tree__item[aria-expanded="true"]) > :where(.ug-tree__row) > :where(.ug-tree__toggle)::before { rotate: 45deg; }
  :where(.ug-tree__label) { min-width: 0; overflow-wrap: anywhere; }

  /* ---- Carousel ---- */

  /* One slide at a time in a frame, with keys under it: Previous, a picker key per slide, Next. */
  :where(.ug-carousel) { display: flex; flex-direction: column; gap: var(--strata-space-3); color: var(--strata-colour-text); font-family: var(--strata-font-family); }
  :where(.ug-carousel__slides) {
    box-sizing: border-box;
    padding: var(--strata-space-4);
    border-radius: var(--strata-radius-control);
    background-color: var(--strata-colour-secondary);
  }
  :where(.ug-carousel__slide) { opacity: 1; transition: opacity var(--strata-motion-normal) var(--strata-motion-easing-standard); }
  @starting-style { :where(.ug-carousel__slide):not([hidden]) { opacity: 0; } }
  :where(.ug-carousel__controls) { display: flex; align-items: center; justify-content: center; gap: var(--strata-space-2); }
  :where(.ug-carousel__picker) { display: flex; flex-wrap: wrap; gap: var(--strata-space-1); }
  :where(.ug-carousel__key) {
    --_finish: var(--strata-finish-role-control);
    box-sizing: border-box;
    width: var(--strata-target-min);
    height: var(--strata-target-min);
    margin: 0;
    padding: 0;
    border: var(--strata-outline-width) solid var(--strata-colour-edge);
    border-radius: 50%;
    background-color: var(--strata-colour-secondary);
    cursor: pointer;
  }
  :where(.ug-carousel__key):is(:hover, [data-strata-preview~="hover"]) { --_lift: var(--strata-state-hover-height); --_tone: var(--_hover-tone); }
  :where(.ug-carousel__key):is(:active, [data-strata-preview~="active"]) { --_lift: var(--strata-state-press-height); --_tone: var(--_press-tone); }
  /* The current slide's key: held down and filled. */
  :where(.ug-carousel__key[aria-current="true"]) { --_lift: var(--strata-state-press-height); --_tone: var(--_press-tone); background-color: var(--strata-colour-accent); }
  :where(.ug-carousel__key):is(:focus-visible, [data-strata-preview~="focus"]) { outline: var(--strata-focus-width) solid var(--strata-colour-accent); outline-offset: var(--strata-focus-offset); }
  /* An empty icon gets a chevron pointing back or forward along the text. */
  :where(.ug-carousel__previous, .ug-carousel__next) > :where(.ug-icon-button__icon) { place-items: center; }
  :where(.ug-carousel__previous, .ug-carousel__next) > :where(.ug-icon-button__icon:empty)::before {
    content: "";
    width: 8px;
    height: 8px;
    border-bottom: 2px solid currentColor;
    border-left: 2px solid currentColor;
    rotate: 45deg;
  }
  :where(.ug-carousel__next) > :where(.ug-icon-button__icon:empty)::before { rotate: -135deg; }
  :where(.ug-carousel:dir(rtl)) :where(.ug-carousel__previous) > :where(.ug-icon-button__icon:empty)::before { rotate: -135deg; }
  :where(.ug-carousel:dir(rtl)) :where(.ug-carousel__next) > :where(.ug-icon-button__icon:empty)::before { rotate: 45deg; }

  /* ---- JogWheel: a native range input over a large flat wheel with a finger dimple (anatomy page jog-wheel.md) ---- */

  /*
   * The dial is the wheel plus 16 px of room on every side (its cast shadow, and the perspective of the Instrument parts), with the
   * bearing recess it rolls in, 4 px wider than the wheel on each side, printed on the face. The transparent input covers the whole dial
   * and takes every press; the drawn parts take none. The dimple turns with `--strata-jog-angle`, the wheel's accumulated angle in
   * degrees: it is not the value, and it keeps counting past a wrap, so the wheel never turns back. Every size is an even number of px, so
   * the centre is a whole pixel.
   */
  :where(.ug-jog-wheel) {
    --_size: var(--strata-jog-wheel-size);
    --_dimple: round(nearest, calc(var(--_size) * 0.2), 2px);
    --_at: calc(var(--_size) * 0.34);
    --_ink: color-mix(in srgb, var(--strata-colour-edge), black 55%);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: var(--strata-space-1);
    max-width: 100%;
    color: var(--strata-colour-text);
    font-family: var(--strata-font-family);
  }
  :where(.ug-jog-wheel__dial) {
    position: relative;
    flex: none;
    box-sizing: border-box;
    width: calc(var(--_size) + 32px);
    height: calc(var(--_size) + 32px);
  }
  /* The recess: a well in the face, a darker disc printed under the wheel. */
  :where(.ug-jog-wheel__well) {
    --_bevel: 3px;
    position: absolute;
    inset: 0;
    box-sizing: border-box;
    width: calc(var(--_size) + 8px);
    height: calc(var(--_size) + 8px);
    margin: auto;
    border-radius: 50%;
    background-color: var(--strata-colour-track);
    pointer-events: none;
  }
  /* The wheel: spun metal, flat, its circular hairlines and a bow-tie highlight along the light's azimuth. */
  :where(.ug-jog-wheel__wheel) {
    --_h: calc(var(--strata-elevation-raised) * 1.5);
    --_bevel: 4px;
    --_finish:
      repeating-radial-gradient(circle, rgb(255 255 255 / calc(0.06 * min(1, var(--_gain)))) 0 0.6px, rgb(0 0 0 / calc(0.05 * min(1, var(--_gain)))) 0.6px 1.4px),
      conic-gradient(from calc(var(--strata-light-azimuth) * 1deg), rgb(255 255 255 / calc(0.6 * min(1, var(--_gain)))), rgb(255 255 255 / 0) 45deg, rgb(0 0 0 / calc(0.1 * min(1, var(--_gain)))) 90deg,
        rgb(255 255 255 / 0) 135deg, rgb(255 255 255 / calc(0.45 * min(1, var(--_gain)))) 180deg, rgb(255 255 255 / 0) 225deg, rgb(0 0 0 / calc(0.1 * min(1, var(--_gain)))) 270deg,
        rgb(255 255 255 / 0) 315deg, rgb(255 255 255 / calc(0.6 * min(1, var(--_gain)))));
    position: absolute;
    inset: 0;
    box-sizing: border-box;
    width: var(--_size);
    height: var(--_size);
    margin: auto;
    border-radius: 50%;
    background-color: var(--strata-colour-knob);
    pointer-events: none;
  }
  /* Only the dimple turns: the wheel keeps its box, so its face never changes size. */
  :where(.ug-jog-wheel__turn) {
    position: absolute;
    inset: 0;
    rotate: calc(var(--strata-jog-angle, 0) * 1deg);
  }
  /* A detented wheel settles on its step with a little overshoot; a continuous one follows the pointer at once. */
  :where(.ug-jog-wheel--detented .ug-jog-wheel__turn) { transition: rotate var(--strata-motion-fast) cubic-bezier(0.3, 1.45, 0.55, 1); }
  /* The finger dimple: a small well in the wheel's face. Its light is turned back by the wheel's angle, so the dish is lit from the light's side wherever it is. */
  :where(.ug-jog-wheel__dimple) {
    --_a: calc(var(--strata-jog-angle, 0) * 1deg);
    --_jx: calc(var(--strata-light-x) / max(0.0001, hypot(var(--strata-light-x), var(--strata-light-y))));
    --_jy: calc(var(--strata-light-y) / max(0.0001, hypot(var(--strata-light-x), var(--strata-light-y))));
    --_lx: calc(var(--_jx) * cos(var(--_a)) + var(--_jy) * sin(var(--_a)));
    --_ly: calc(var(--_jy) * cos(var(--_a)) - var(--_jx) * sin(var(--_a)));
    --_bevel: 3px;
    position: absolute;
    left: calc(50% - var(--_dimple) / 2);
    top: calc(50% - var(--_at) - var(--_dimple) / 2);
    box-sizing: border-box;
    width: var(--_dimple);
    height: var(--_dimple);
    border-radius: 50%;
    background-color: color-mix(in srgb, var(--strata-colour-knob), var(--strata-colour-edge) 38%);
  }
  :where(.ug-jog-wheel__input) {
    position: absolute;
    inset: 0;
    z-index: 1;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    appearance: none;
    background: transparent;
    outline: none;
    cursor: grab;
    touch-action: none;
  }
  :where(.ug-jog-wheel__input)::-webkit-slider-runnable-track { height: 100%; border: 0; background: transparent; }
  /* The thumb is not drawn at all: one that moves with the value is paint, and a wheel turning must not recapture its layer. */
  :where(.ug-jog-wheel__input)::-webkit-slider-thumb { display: none; }
  :where(.ug-jog-wheel__input)::-moz-range-track { height: 100%; border: 0; background: transparent; }
  :where(.ug-jog-wheel__input)::-moz-range-thumb { width: 0; height: 0; border: 0; background: transparent; }
  /* The printed legend, on the faceplate under the dial. */
  :where(.ug-jog-wheel__label) {
    max-width: 100%;
    font-size: var(--strata-font-size-small);
    font-weight: var(--strata-font-weight-strong);
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
    overflow-wrap: anywhere;
  }
  /* Focus: an accent ring round the recess, in every presentation (it is captured content on the GPU). */
  :where(.ug-jog-wheel__dial:has(> .ug-jog-wheel__input:is(:focus-visible, [data-strata-preview~="focus"])) .ug-jog-wheel__well) {
    outline: var(--strata-focus-width) solid var(--strata-colour-accent);
    outline-offset: var(--strata-focus-offset);
  }
  :where(.ug-jog-wheel__dial:has(> .ug-jog-wheel__input:is(:hover, [data-strata-preview~="hover"]):not(:disabled)) .ug-jog-wheel__wheel) {
    --_lift: var(--strata-state-hover-height);
    --_tone: var(--_hover-tone);
  }
  :where(.ug-jog-wheel:has(.ug-jog-wheel__input:disabled)) { color: color-mix(in srgb, var(--strata-colour-text) 38%, transparent); }
  :where(.ug-jog-wheel:has(.ug-jog-wheel__input:disabled)) :where(.ug-jog-wheel__dial) { opacity: 0.38; }
  :where(.ug-jog-wheel:has(.ug-jog-wheel__input:disabled)) :where(.ug-jog-wheel__wheel) { --_h: 0px; --_gain: 0; }
  :where(.ug-jog-wheel__input:disabled) { cursor: not-allowed; }

  /* ---- PatchPoint and PatchBay: a jack in a washer over a native checkbox or button, and a fieldset of jacks (anatomy page patch-point.md) ---- */

  /*
   * The native control is a transparent square box, the washer + 20 (56 at medium), over the object; a press anywhere on the box is a press on
   * the control. The object is a washer (Ø `size.patchPoint`) with a hole in it, printed dark; connected, a plug stands out of the hole with a
   * short cable. Under the object, in a column: the optional LED (a StatusLight lens, lit while connected) and the printed label.
   */
  :where(.ug-patch-point) {
    --_washer: var(--strata-patch-point-size);
    --_box: calc(var(--_washer) + 20px);
    --_bore: round(nearest, calc(var(--_washer) * 0.44), 2px);
    --_plug: round(nearest, calc(var(--_washer) * 0.34), 2px);
    --_cable: max(3px, round(nearest, calc(var(--_washer) * 0.11), 1px));
    --_ink: color-mix(in srgb, var(--strata-colour-edge), black 55%);
    position: relative;
    display: inline-grid;
    grid-template-columns: minmax(var(--_box), auto);
    justify-items: center;
    align-content: start;
    row-gap: var(--strata-space-1);
    max-width: 100%;
    color: var(--strata-colour-text);
    font-family: var(--strata-font-family);
    cursor: pointer;
  }
  /* The native control: a transparent box over the object, with no face. */
  :where(.ug-patch-point__input) {
    grid-area: 1 / 1;
    box-sizing: border-box;
    width: var(--_box);
    height: var(--_box);
    margin: 0;
    padding: 0;
    appearance: none;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
    cursor: inherit;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  :where(.ug-patch-point__input:focus-visible) { outline: none; }
  /* A button PatchPoint is the native button itself, with its object, its LED and its label inside it. */
  :where(.ug-patch-point--button) {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    appearance: none;
    font-weight: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  :where(.ug-patch-point--button:focus-visible) { outline: none; }
  :where(.ug-patch-point__object) {
    grid-area: 1 / 1;
    position: relative;
    width: var(--_box);
    height: var(--_box);
    pointer-events: none;
  }
  :where(.ug-patch-point__object) :where(*) { position: absolute; box-sizing: border-box; pointer-events: none; }
  :where(.ug-patch-point__washer) {
    --_h: 3px;
    --_bevel: 3px;
    --_finish: var(--strata-finish-role-knob);
    inset: 0;
    width: var(--_washer);
    height: var(--_washer);
    margin: auto;
    border-radius: 50%;
    background-color: var(--strata-colour-knob);
  }
  /* The hole is printed dark at every level, so an unplugged jack is a recess and the GPU's well gives it its edge. */
  :where(.ug-patch-point__jack) {
    --_bevel: 3px;
    inset: 0;
    width: var(--_bore);
    height: var(--_bore);
    margin: auto;
    border-radius: 50%;
    background-color: color-mix(in srgb, var(--strata-colour-edge), black 72%);
  }
  /* The cable's stub runs from the plug towards the bottom of the screen, to just short of the washer's edge. */
  :where(.ug-patch-point__stub) {
    left: calc(50% - var(--_cable) / 2);
    top: 50%;
    width: var(--_cable);
    height: calc(var(--_washer) / 2 - 2px);
    border-radius: 0 0 calc(var(--_cable) / 2) calc(var(--_cable) / 2);
    background: linear-gradient(90deg, color-mix(in srgb, var(--_ink), white 22%), var(--_ink) 55%, color-mix(in srgb, var(--_ink), black 35%));
    visibility: hidden;
  }
  :where(.ug-patch-point__plug) {
    --_h: 4px;
    --_bevel: 3px;
    inset: 0;
    width: var(--_plug);
    height: var(--_plug);
    margin: auto;
    border-radius: 50%;
    background: radial-gradient(circle at 36% 30%, color-mix(in srgb, var(--strata-colour-knob), white 62%) 0, var(--strata-colour-knob) 48%, color-mix(in srgb, var(--strata-colour-knob), var(--strata-colour-edge) 50%) 100%);
    visibility: hidden;
  }
  /* Connected: checked, or pressed. The plug and the cable show; the state is also the control's own. */
  :where(.ug-patch-point:has(> .ug-patch-point__input:checked), .ug-patch-point--button[aria-pressed="true"]) :where(.ug-patch-point__plug, .ug-patch-point__stub) { visibility: visible; }
  /* The LED: a StatusLight lens, unlit until the jack is connected (and a disabled jack's is dark). */
  :where(.ug-patch-point__led) { --strata-lit: 0; }
  :where(.ug-patch-point:has(> .ug-patch-point__input:checked:not(:disabled)), .ug-patch-point--button[aria-pressed="true"]:not(:disabled)) :where(.ug-patch-point__led) { --strata-lit: 1; }
  :where(.ug-patch-point__label) {
    max-width: 100%;
    min-width: 0;
    font-size: var(--strata-font-size-small);
    font-weight: var(--strata-font-weight-strong);
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
    overflow-wrap: anywhere;
  }
  /* Focus: an accent ring round the washer. Invalid: a danger edge. */
  :where(.ug-patch-point:has(> .ug-patch-point__input:is(:focus-visible, [data-strata-preview~="focus"])), .ug-patch-point--button:is(:focus-visible, [data-strata-preview~="focus"])) :where(.ug-patch-point__washer) {
    outline: var(--strata-focus-width) solid var(--strata-colour-accent);
    outline-offset: var(--strata-focus-offset);
  }
  :where(.ug-patch-point:has(> .ug-patch-point__input[aria-invalid="true"])) :where(.ug-patch-point__washer) { border: 2px solid var(--strata-colour-danger); }
  /* The washer lifts a little under the pointer, as keys do (section 11). */
  :where(.ug-patch-point:has(> .ug-patch-point__input:is(:hover, [data-strata-preview~="hover"]):not(:disabled)), .ug-patch-point--button:is(:hover, [data-strata-preview~="hover"]):not(:disabled)) :where(.ug-patch-point__washer) {
    --_lift: var(--strata-state-hover-height);
    --_tone: var(--_hover-tone);
  }
  :where(.ug-patch-point:has(> .ug-patch-point__input:disabled), .ug-patch-point--button:disabled) { color: color-mix(in srgb, var(--strata-colour-text) 38%, transparent); cursor: not-allowed; }
  :where(.ug-patch-point:has(> .ug-patch-point__input:disabled), .ug-patch-point--button:disabled) :where(.ug-patch-point__object) { opacity: 0.38; }
  :where(.ug-patch-point:has(> .ug-patch-point__input:disabled), .ug-patch-point--button:disabled) :where(.ug-patch-point__washer, .ug-patch-point__plug) { --_h: 0px; --_gain: 0; }

  /* PatchBay: a fieldset of jacks on one plinth, its legend and the jacks' labels printed on it. The columns are `--strata-patch-columns`, or as many as fit. */
  :where(.ug-patch-bay) {
    --_h: var(--strata-elevation-raised);
    --_finish: var(--strata-finish-role-panel);
    box-sizing: border-box;
    min-width: 0;
    margin: 0;
    padding: var(--strata-space-4);
    border-radius: var(--strata-radius-panel);
    background-color: var(--strata-colour-secondary);
    color: var(--strata-colour-text);
    font-family: var(--strata-font-family);
  }
  /* The legend is floated into the plinth, so it prints on it instead of straddling its edge. */
  :where(.ug-patch-bay__legend) {
    float: left;
    width: 100%;
    padding: 0;
    font-size: var(--strata-font-size-small);
    font-weight: var(--strata-font-weight-strong);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
  }
  :where(.ug-patch-bay__jacks) {
    clear: both;
    display: grid;
    grid-template-columns: repeat(var(--strata-patch-columns, auto-fill), minmax(calc(var(--strata-patch-point-size) + 28px), 1fr));
    gap: var(--strata-gap-control) var(--strata-space-3);
    justify-items: center;
    align-items: start;
    margin-top: var(--strata-space-3);
  }
  :where(.ug-patch-bay:disabled) { color: color-mix(in srgb, var(--strata-colour-text) 38%, transparent); }

  /*
   * Face mode and preferences for the JogWheel and the PatchPoint. When the GPU draws the dimple (at every level) and the plug (at every
   * level), their CSS paint is hidden (`data-strata-dome`), and at the Instrument level the wheel, the washer, the plug and the stub are
   * parts: their paint is hidden too, so a turn or a connect repaints nothing (the recess, the printed hole and the focus ring stay).
   */
  :where([data-strata-mode="face"]) .ug-jog-wheel__wheel[data-strata-dome] { border-color: transparent; }
  :where([data-strata-mode="face"]) .ug-jog-wheel__dimple[data-strata-dome] { border-color: transparent; }
  :where([data-strata-mode="face"]) .ug-patch-point__washer[data-strata-dome] { border-color: transparent; }
  :where([data-strata-mode="face"]) .ug-patch-point__stub[data-strata-dome] { visibility: hidden; }
  @media (prefers-reduced-motion: reduce) {
    :where(.ug-jog-wheel--detented .ug-jog-wheel__turn) { transition: none; }
  }
  @media (prefers-contrast: more) {
    :where(.ug-jog-wheel) { --_ink: var(--strata-colour-text); }
    :where(.ug-jog-wheel__well, .ug-jog-wheel__wheel, .ug-jog-wheel__dimple, .ug-patch-point__washer, .ug-patch-point__jack, .ug-patch-point__plug) { border: max(1px, var(--strata-outline-width)) solid var(--strata-colour-text); }
    :where(.ug-patch-point__stub) { background: var(--strata-colour-text); }
  }
  :where([data-strata-theme="contrast"], [data-strata-theme="contrast-dark"]) :where(.ug-jog-wheel__well, .ug-jog-wheel__wheel, .ug-jog-wheel__dimple, .ug-patch-point__washer, .ug-patch-point__jack, .ug-patch-point__plug) {
    border: max(1px, var(--strata-outline-width)) solid var(--strata-colour-text);
  }
  :where([data-strata-theme="contrast"], [data-strata-theme="contrast-dark"]) :where(.ug-patch-point__stub) { background: var(--strata-colour-text); }
  @media (forced-colors: active) {
    /* The jog wheel: a Canvas wheel in a Canvas recess, both edged in CanvasText, a CanvasText dimple, a Highlight focus ring, GrayText when disabled. */
    :where(.ug-jog-wheel__well, .ug-jog-wheel__wheel) { forced-color-adjust: none; border: 1px solid CanvasText; background: Canvas; box-shadow: none; filter: none; }
    :where(.ug-jog-wheel__dimple) { forced-color-adjust: none; border: 0; background: CanvasText; box-shadow: none; }
    :where(.ug-jog-wheel__dial:has(> .ug-jog-wheel__input:focus-visible) .ug-jog-wheel__well) { outline-color: Highlight; }
    :where(.ug-jog-wheel__dial:has(> .ug-jog-wheel__input:disabled)) { opacity: 1; }
    :where(.ug-jog-wheel:has(.ug-jog-wheel__input:disabled)) :where(.ug-jog-wheel__well, .ug-jog-wheel__wheel) { border-color: GrayText; }
    :where(.ug-jog-wheel:has(.ug-jog-wheel__input:disabled)) :where(.ug-jog-wheel__dimple) { background: GrayText; }
    :where(.ug-jog-wheel__label) { color: CanvasText; }
    /* The patch point: a Canvas washer edged in CanvasText round a CanvasText hole; connected, a Highlight plug and cable, so the state shows by fill
       and by the control's own state; no shadows; a Highlight focus ring, GrayText when disabled. */
    :where(.ug-patch-point__washer, .ug-patch-point__jack, .ug-patch-point__plug) { forced-color-adjust: none; border: 1px solid CanvasText; box-shadow: none; filter: none; }
    :where(.ug-patch-point__washer) { background: Canvas; }
    :where(.ug-patch-point__jack) { background: CanvasText; }
    :where(.ug-patch-point__plug) { background: Highlight; }
    :where(.ug-patch-point__stub) { forced-color-adjust: none; background: Highlight; }
    :where(.ug-patch-point:has(> .ug-patch-point__input:focus-visible), .ug-patch-point--button:focus-visible) :where(.ug-patch-point__washer) { outline-color: Highlight; }
    :where(.ug-patch-point:has(> .ug-patch-point__input:disabled), .ug-patch-point--button:disabled) :where(.ug-patch-point__object) { opacity: 1; }
    :where(.ug-patch-point:has(> .ug-patch-point__input:disabled), .ug-patch-point--button:disabled) :where(.ug-patch-point__washer, .ug-patch-point__plug, .ug-patch-point__jack) { border-color: GrayText; }
    :where(.ug-patch-point:has(> .ug-patch-point__input:disabled), .ug-patch-point--button:disabled) :where(.ug-patch-point__jack) { background: GrayText; }
    :where(.ug-patch-point--button) { forced-color-adjust: none; color: ButtonText; }
    :where(.ug-patch-point--button:disabled) { color: GrayText; }
    :where(.ug-patch-bay) { border: 1px solid CanvasText; }
  }

  /* ---- Combobox ---- */

  /* A TextField with the browser's suggestion list: a chevron printed on the face at the end. The browser's own list
     button sits over it, transparent, so a click on the chevron opens the list. */
  :where(.ug-combobox) {
    --_chevron: var(--strata-colour-muted);
    background-image:
      linear-gradient(45deg, transparent 50%, var(--_chevron) 50%),
      linear-gradient(135deg, var(--_chevron) 50%, transparent 50%);
    background-position: right calc(var(--strata-space-4) + 8px) center, right calc(var(--strata-space-4) + 3px) center;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
  }
  :where(.ug-combobox:dir(rtl)) { background-position: left calc(var(--strata-space-4) + 3px) center, left calc(var(--strata-space-4) + 8px) center; }
  :where(.ug-combobox)::-webkit-calendar-picker-indicator { display: block; width: 16px; height: 16px; margin: 0; padding: 0; opacity: 0; cursor: pointer; }

  /* ---- DatePicker ---- */

  /* A TextField that takes a date, with a small calendar printed on the face at the end. The browser's own calendar
     button sits over it, transparent, so a click on the glyph opens the calendar. The date's segments stay native. */
  :where(.ug-date-picker) {
    --_glyph: var(--strata-colour-muted);
    --_end: var(--strata-space-4);
    background-image:
      linear-gradient(var(--_glyph), var(--_glyph)),
      linear-gradient(var(--_glyph), var(--_glyph)),
      linear-gradient(var(--_glyph), var(--_glyph)),
      linear-gradient(var(--_glyph), var(--_glyph));
    background-position:
      right var(--_end) top calc(50% - 7px),
      right var(--_end) top calc(50% - 3px),
      right calc(var(--_end) + 12px) top calc(50% - 3px),
      right var(--_end) top calc(50% + 5px);
    background-size: 14px 4px, 2px 10px, 2px 10px, 14px 2px;
    background-repeat: no-repeat;
  }
  :where(.ug-date-picker:dir(rtl)) {
    background-position:
      left var(--_end) top calc(50% - 7px),
      left var(--_end) top calc(50% - 3px),
      left calc(var(--_end) + 12px) top calc(50% - 3px),
      left var(--_end) top calc(50% + 5px);
  }
  :where(.ug-date-picker)::-webkit-datetime-edit { padding: 0; }
  :where(.ug-date-picker)::-webkit-calendar-picker-indicator { display: block; width: 14px; height: 14px; margin: 0; padding: 0; opacity: 0; cursor: pointer; }

  /* ---- Divider ---- */

  :where(.ug-divider) {
    box-sizing: border-box;
    width: 100%;
    height: 2px;
    margin: var(--strata-space-4) 0;
    border: 0;
    border-top: 1px solid rgb(0 0 0 / calc(0.1 + 0.12 * var(--_gain)));
    border-bottom: 1px solid rgb(255 255 255 / calc(0.25 + 0.4 * var(--_gain)));
  }
  :where(.ug-divider--vertical) {
    display: inline-block;
    width: 2px;
    height: auto;
    min-height: 1em;
    margin: 0 var(--strata-space-4);
    align-self: stretch;
    border-top: 0;
    border-bottom: 0;
    border-left: 1px solid rgb(0 0 0 / calc(0.1 + 0.12 * var(--_gain)));
    border-right: 1px solid rgb(255 255 255 / calc(0.25 + 0.4 * var(--_gain)));
  }

  /* ---- Badge ---- */

  :where(.ug-badge) {
    --_role: var(--strata-colour-secondary);
    --_on: var(--strata-colour-text);
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    padding: var(--strata-space-1) var(--strata-space-3);
    border: 1px solid var(--strata-colour-edge);
    border-radius: var(--strata-radius-pill);
    background-color: var(--_role);
    color: var(--_on);
    font-family: var(--strata-font-family);
    font-size: var(--strata-font-size-caption);
    font-weight: var(--strata-font-weight-strong);
    line-height: 1.2;
  }
  :where(.ug-badge--accent) { --_role: var(--strata-colour-accent); --_on: var(--strata-colour-on-accent); border-color: transparent; }
  :where(.ug-badge--success) { --_role: var(--strata-colour-success); --_on: var(--strata-colour-on-success); border-color: transparent; }
  :where(.ug-badge--warning) { --_role: var(--strata-colour-warning); --_on: var(--strata-colour-on-warning); border-color: transparent; }
  :where(.ug-badge--danger) { --_role: var(--strata-colour-danger); --_on: var(--strata-colour-on-danger); border-color: transparent; }
  :where(.ug-badge--info) { --_role: var(--strata-colour-info); --_on: var(--strata-colour-on-info); border-color: transparent; }
  /* The full count above the limit ("99+"), for assistive technology only. */
  :where(.ug-badge__full) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

  /* ---- Progress bar ---- */

  :where(.ug-progress) {
    box-sizing: border-box;
    width: 100%;
    height: 8px;
    border: 1px solid var(--strata-colour-edge);
    border-radius: var(--strata-radius-pill);
    appearance: none;
    overflow: hidden;
    background-color: var(--strata-colour-track);
    color: var(--strata-colour-accent);
    box-shadow: inset 0 1px 2px rgb(0 0 0 / calc(0.3 * var(--_gain)));
  }
  :where(.ug-progress)::-webkit-progress-bar { background: transparent; }
  :where(.ug-progress)::-webkit-progress-value {
    border-radius: var(--strata-radius-pill);
    background-color: var(--strata-colour-accent);
    box-shadow: 0 0 4px color-mix(in srgb, var(--strata-colour-accent) 60%, transparent);
  }
  :where(.ug-progress)::-moz-progress-bar { border-radius: var(--strata-radius-pill); background-color: var(--strata-colour-accent); }
  :where(.ug-progress:indeterminate) {
    background-image: linear-gradient(90deg, transparent, var(--strata-colour-accent), transparent);
    background-size: 40% 100%;
    background-repeat: no-repeat;
    animation: ug-progress-sweep 1400ms linear infinite;
  }
  :where(.ug-progress:indeterminate)::-moz-progress-bar { background: transparent; }

  /* ---- Spinner: a ring groove with an emissive arc ---- */

  :where(.ug-spinner) {
    --_size: 24px;
    display: inline-flex;
    align-items: center;
    gap: var(--strata-space-3);
    color: var(--strata-colour-text);
    font-family: var(--strata-font-family);
    font-size: var(--strata-font-size-small);
  }
  :where(.ug-spinner--sm) { --_size: 16px; }
  :where(.ug-spinner--md) { --_size: 24px; }
  :where(.ug-spinner--lg) { --_size: 40px; }
  :where(.ug-spinner__arc) {
    box-sizing: border-box;
    width: var(--_size);
    height: var(--_size);
    border: max(2px, calc(var(--_size) / 8)) solid var(--strata-colour-track);
    border-top-color: var(--strata-colour-accent);
    border-radius: 50%;
    animation: ug-spinner-turn 800ms linear infinite;
  }
  :where(.ug-spinner__label) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  :where(.ug-spinner--labelled .ug-spinner__label) { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }

  /* ---- Indicator forms: a Rating as lamps, a Badge as an LED pill, a ProgressBar as a segment meter, a Spinner as a ring of LEDs (anatomy pages rating.md, badge.md, progress-bar.md, spinner.md) ---- */

  /*
   * The native control stays the control (the Rating's radios, the `<progress>`, the Badge's and the Spinner's `<span>`); the form is
   * decoration over it that follows its state. Every lens is the Lamp's and the StatusLight's: one number, `--strata-lit` (0 dark, 1 lit),
   * a registered number, lights it, so the CSS presents it as a glass dome with a glow and the GPU presentation, which reads it frame by
   * frame, draws it as a lens with an emitter (the dome's own CSS paint, its glow and its `::after`, is hidden, `data-strata-dome`; the socket
   * under it, its `::before`, stays printed on the face). The role is `--_c`, from `colour` (`data-strata-colour`) or, for a Badge, its variant. No `form`, or `flush`,
   * is none of this: the markup and the look are what they were.
   */
  :where(.ug-rating[data-strata-form="lamps"], .ug-badge[data-strata-form="led"]) { --_c: var(--strata-colour-glow-on); }
  :where(.ug-progress-bar[data-strata-form="meter"], .ug-spinner[data-strata-form="ring"]) { --_c: var(--strata-colour-accent); }
  :where(.ug-badge--accent[data-strata-form="led"]) { --_c: var(--strata-colour-accent); }
  :where(.ug-badge--success[data-strata-form="led"]) { --_c: var(--strata-colour-success); }
  :where(.ug-badge--warning[data-strata-form="led"]) { --_c: var(--strata-colour-warning); }
  :where(.ug-badge--danger[data-strata-form="led"]) { --_c: var(--strata-colour-danger); }
  :where(.ug-badge--info[data-strata-form="led"]) { --_c: var(--strata-colour-info); }
  :where(.ug-rating[data-strata-form="lamps"], .ug-badge[data-strata-form="led"], .ug-progress-bar[data-strata-form="meter"], .ug-spinner[data-strata-form="ring"])[data-strata-colour="accent"] { --_c: var(--strata-colour-accent); }
  :where(.ug-rating[data-strata-form="lamps"], .ug-badge[data-strata-form="led"], .ug-progress-bar[data-strata-form="meter"], .ug-spinner[data-strata-form="ring"])[data-strata-colour="success"] { --_c: var(--strata-colour-success); }
  :where(.ug-rating[data-strata-form="lamps"], .ug-badge[data-strata-form="led"], .ug-progress-bar[data-strata-form="meter"], .ug-spinner[data-strata-form="ring"])[data-strata-colour="warning"] { --_c: var(--strata-colour-warning); }
  :where(.ug-rating[data-strata-form="lamps"], .ug-badge[data-strata-form="led"], .ug-progress-bar[data-strata-form="meter"], .ug-spinner[data-strata-form="ring"])[data-strata-colour="danger"] { --_c: var(--strata-colour-danger); }
  :where(.ug-rating[data-strata-form="lamps"], .ug-badge[data-strata-form="led"], .ug-progress-bar[data-strata-form="meter"], .ug-spinner[data-strata-form="ring"])[data-strata-colour="info"] { --_c: var(--strata-colour-info); }
  :where(.ug-rating[data-strata-form="lamps"], .ug-badge[data-strata-form="led"], .ug-progress-bar[data-strata-form="meter"], .ug-spinner[data-strata-form="ring"])[data-strata-colour="glowOn"] { --_c: var(--strata-colour-glow-on); }
  :where(.ug-rating__lens, .ug-badge__lens, .ug-spinner__lens, .ug-progress__segment) {
    --_on: color-mix(in srgb, var(--_c), white 18%);
    --_off: color-mix(in srgb, var(--_c) 16%, #15171b);
    --_glass: color-mix(in srgb, var(--_on) calc(var(--strata-lit) * 100%), var(--_off));
    --strata-lit: 0;
    position: relative;
    display: block;
    flex: none;
    box-sizing: border-box;
    width: var(--_lens);
    height: var(--_lens);
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 calc(var(--strata-lit) * var(--_lens) * 0.7) calc(var(--strata-lit) * var(--_lens) * 0.12) color-mix(in srgb, var(--_on) 55%, transparent);
  }
  /* The socket under the lens, printed on the face at every level: the unlit glass's dark disc; and the glass over it. */
  :where(.ug-rating__lens, .ug-badge__lens, .ug-spinner__lens, .ug-progress__segment)::before { content: ""; position: absolute; inset: -1px; border-radius: 50%; background: var(--_off); }
  :where(.ug-rating__lens, .ug-badge__lens, .ug-spinner__lens, .ug-progress__segment)::after {
    content: "";
    position: absolute;
    inset: 0;
    box-sizing: border-box;
    border-radius: 50%;
    background: radial-gradient(circle at 36% 30%, color-mix(in srgb, var(--_glass), white 55%) 0, var(--_glass) 45%, color-mix(in srgb, var(--_glass), black 35%) 100%);
    box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.35);
  }
  :where([data-strata-mode="face"]) :is(.ug-rating__lens, .ug-badge__lens, .ug-spinner__lens, .ug-progress__segment)[data-strata-dome]::after { background: transparent; box-shadow: none; }

  /* Rating, lamps: each star's place holds a lens, lit up to the score (the radios' `:checked`, as the stars fill); a hovered star and the ones
     before it show a lens half lit, the preview of that score, and the rest of the row goes dark, as the stars do. The item is the lens plus 16 px (at least the target). */
  :where(.ug-rating[data-strata-form="lamps"]) { --_lens: var(--strata-rating-size); }
  :where(.ug-rating[data-strata-form="lamps"] .ug-rating__item) { width: max(var(--strata-target-min), calc(var(--_lens) + 16px)); height: max(var(--strata-target-min), calc(var(--_lens) + 16px)); }
  :where(.ug-rating[data-strata-form="lamps"] .ug-rating__star) { display: grid; place-items: center; }
  :where(.ug-rating[data-strata-form="lamps"] .ug-rating__star)::before { content: none; }
  :where(.ug-rating[data-strata-form="lamps"] .ug-rating__input:checked + .ug-rating__star > .ug-rating__lens, .ug-rating[data-strata-form="lamps"] .ug-rating__item:has(~ .ug-rating__item > .ug-rating__input:checked) > .ug-rating__star > .ug-rating__lens) { --strata-lit: 1; }
  /* The preview is for a real hover: on a touch screen the pointer that tapped a star would leave the whole row half lit. */
  @media (hover: hover) {
    :where(.ug-rating[data-strata-form="lamps"] .ug-rating__stars:has(> .ug-rating__item:hover > .ug-rating__input:not(:disabled)) > .ug-rating__item > .ug-rating__star > .ug-rating__lens) { --strata-lit: 0; }
    :where(.ug-rating[data-strata-form="lamps"] .ug-rating__stars:has(> .ug-rating__item:hover > .ug-rating__input:not(:disabled)) > :is(.ug-rating__item:hover, .ug-rating__item:has(~ .ug-rating__item:hover)) > .ug-rating__star > .ug-rating__lens) { --strata-lit: 0.55; }
  }

  /* Badge, LED: the StatusLight's lens before the text, on a dark pill plate (captured content) that keeps the text's contrast; the lens's colour is the variant's.
     A neutral badge has no role, so its lens is dark glass; `data-strata-colour` lights it. The pill is the lens plus 16 px tall, so the halo has room. */
  :where(.ug-badge[data-strata-form="led"]) {
    --_lens: var(--strata-status-light-size);
    gap: var(--strata-space-2);
    min-height: calc(var(--_lens) + 16px);
    padding-block: 0;
    padding-inline: 7px var(--strata-space-3);
    border-color: var(--strata-colour-edge);
    background-color: color-mix(in srgb, var(--strata-colour-panel), black 12%);
    color: var(--strata-colour-text);
  }
  :where(.ug-badge[data-strata-form="led"]:is(.ug-badge--accent, .ug-badge--success, .ug-badge--warning, .ug-badge--danger, .ug-badge--info, [data-strata-colour]) > .ug-badge__lens) { --strata-lit: 1; }

  /* ProgressBar, segment meter: the native `<progress>` covers the object, transparent, and says the value; a groove with a row of LED segments
     lit from the value (`--strata-progress-value`, 0–1, kept by `attachStrataProgress`), as the Meter's bar: segment i is lit when value · count − i − ½ is above 0.
     Indeterminate: a lit head runs from end to end at `chase.bar`, a lap of 1.6 s, with a short trail. */
  :where(.ug-progress-bar[data-strata-form="meter"]) {
    --_lens: var(--strata-meter-size);
    position: relative;
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: calc(var(--_lens) + 16px);
  }
  :where(.ug-progress-bar[data-strata-form="meter"] > .ug-progress) {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    background-image: none;
    box-shadow: none;
    opacity: 0;
    animation: none;
  }
  :where(.ug-progress__object) { position: absolute; inset: 0; pointer-events: none; }
  :where(.ug-progress__object) :where(*) { box-sizing: border-box; pointer-events: none; }
  :where(.ug-progress__window) { position: absolute; inset: 4px 0; border-radius: 8px; background-color: var(--strata-colour-track); }
  :where(.ug-progress__segments) {
    position: absolute;
    left: 8px;
    right: 8px;
    top: 8px;
    height: var(--_lens);
    display: grid;
    grid-template-columns: repeat(var(--strata-progress-count, 20), minmax(0, 1fr));
    align-items: center;
    justify-items: center;
  }
  :where(.ug-progress__segment) { --_k: clamp(0, calc((var(--strata-progress-value, 0) * var(--strata-progress-count, 20) - var(--_i, 0) - 0.5) * 1000), 1); --strata-lit: var(--_k); }
  :where(.ug-progress-bar[data-strata-form="meter"]:has(> .ug-progress:indeterminate) .ug-progress__segment) {
    --strata-lit: 0;
    animation: ug-chase-bar var(--strata-chase-bar) linear infinite;
    animation-delay: calc((var(--_i, 0) / var(--strata-progress-count, 20) - 1) * var(--strata-chase-bar));
  }

  /* Spinner, ring: eight LEDs round a ring (`size.spinner`, the lenses' centres lie on it), a lit head chasing clockwise at `chase.spinner`, a lap of 0.9 s, with a trail.
     The status is the label (shown under reduced motion, and then the ring is steady); the lenses are decoration. The ring is its diameter plus 16 px, room for the halo. */
  :where(.ug-spinner[data-strata-form="ring"]) { --_ring: var(--strata-size-spinner-medium); }
  :where(.ug-spinner--sm[data-strata-form="ring"]) { --_ring: var(--strata-size-spinner-small); }
  :where(.ug-spinner--md[data-strata-form="ring"]) { --_ring: var(--strata-size-spinner-medium); }
  :where(.ug-spinner--lg[data-strata-form="ring"]) { --_ring: var(--strata-size-spinner-large); }
  :where(.ug-spinner__ring) {
    --_lens: max(5px, calc(var(--_ring) * 0.2));
    position: relative;
    flex: none;
    width: calc(var(--_ring) + 16px);
    height: calc(var(--_ring) + 16px);
    pointer-events: none;
  }
  :where(.ug-spinner__lens) {
    --_a: calc(var(--_i, 0) * 45deg);
    position: absolute;
    left: calc(50% - var(--_lens) / 2);
    top: calc(50% - var(--_lens) / 2);
    translate: calc(sin(var(--_a)) * var(--_ring) / 2) calc(cos(var(--_a)) * var(--_ring) / -2);
    animation: ug-chase var(--strata-chase-spinner) linear infinite;
    animation-delay: calc((var(--_i, 0) / 8 - 1) * var(--strata-chase-spinner));
  }
  /* A lens lights once a lap: bright at the head, then a trail. The bar's trail is shorter. */
  @keyframes ug-chase { 0% { --strata-lit: 1; } 12% { --strata-lit: 0.55; } 30% { --strata-lit: 0.2; } 55%, 100% { --strata-lit: 0; } }
  @keyframes ug-chase-bar { 0% { --strata-lit: 1; } 6% { --strata-lit: 0.5; } 14% { --strata-lit: 0.15; } 25%, 100% { --strata-lit: 0; } }

  /* Reduced motion: nothing chases. A spinner is a steady comet (lit 1, 0.75, 0.5, 0.25 behind lens 0), an indeterminate bar every other segment lit; a lens has no glow. */
  @media (prefers-reduced-motion: reduce) {
    :where(.ug-spinner__lens) { animation: none; --strata-lit: clamp(0, calc(1 - mod(8 - var(--_i, 0), 8) * 0.25), 1); }
    :where(.ug-progress-bar[data-strata-form="meter"]:has(> .ug-progress:indeterminate) .ug-progress__segment) { animation: none; --strata-lit: calc(1 - mod(var(--_i, 0), 2)); }
    :where(.ug-rating__lens, .ug-badge__lens, .ug-spinner__lens, .ug-progress__segment) { box-shadow: none; }
  }
  /* More contrast: a lens is flat colour with no glow, edged in the text colour; the socket takes that colour too (so the GPU's glass shows it, and its emitters are off). */
  @media (prefers-contrast: more) {
    :where(.ug-rating__lens, .ug-badge__lens, .ug-spinner__lens, .ug-progress__segment) { box-shadow: none; }
    :where(.ug-rating__lens, .ug-badge__lens, .ug-spinner__lens, .ug-progress__segment)::after { background: var(--_glass); box-shadow: none; border: max(1px, var(--strata-outline-width)) solid var(--strata-colour-text); }
    :where(.ug-rating__lens, .ug-badge__lens, .ug-spinner__lens, .ug-progress__segment)::before { background: var(--_glass); }
    :where(.ug-progress__window) { border: max(1px, var(--strata-outline-width)) solid var(--strata-colour-text); }
    :where(.ug-badge[data-strata-form="led"]) { border-color: var(--strata-colour-text); }
  }
  /* Forced colours: lit lenses are Highlight and unlit ones Canvas, each edged in CanvasText; the pill and the groove are Canvas with a CanvasText edge. */
  @media (forced-colors: active) {
    :where(.ug-rating__lens, .ug-badge__lens, .ug-spinner__lens, .ug-progress__segment) { forced-color-adjust: none; box-shadow: none; }
    :where(.ug-rating__lens, .ug-badge__lens, .ug-spinner__lens, .ug-progress__segment)::after { forced-color-adjust: none; border: 1px solid CanvasText; background: color-mix(in srgb, Highlight calc(var(--strata-lit) * 100%), Canvas); box-shadow: none; }
    :where(.ug-rating__lens, .ug-badge__lens, .ug-spinner__lens, .ug-progress__segment)::before { forced-color-adjust: none; background: Canvas; }
    :where(.ug-badge[data-strata-form="led"]) { forced-color-adjust: none; border-color: CanvasText; background-color: Canvas; color: CanvasText; }
    :where(.ug-progress__window) { forced-color-adjust: none; border: 1px solid CanvasText; background-color: Canvas; box-shadow: none; }
  }

  /* ---- Overrides by attribute: after the components, so they win at equal specificity ---- */

  /* Elevation by attribute overrides the component's level. */
  :where([data-strata-elevation="ground"]) { --_h: var(--strata-elevation-ground); }
  :where([data-strata-elevation="raised"]) { --_h: var(--strata-elevation-raised); }
  :where([data-strata-elevation="floating"]) { --_h: var(--strata-elevation-floating); }
  :where([data-strata-elevation="overlay"]) { --_h: var(--strata-elevation-overlay); }
  :where([data-strata-elevation="modal"]) { --_h: var(--strata-elevation-modal); }

  /* Materials by attribute override the role's finish. */
  :where([data-strata-material="matte"]) { --_finish: var(--strata-finish-matte); }
  :where([data-strata-material="satin"]) { --_finish: var(--strata-finish-satin); }
  :where([data-strata-material="gloss"]) { --_finish: var(--strata-finish-gloss); }
  :where([data-strata-material="lacquer"]) { --_finish: var(--strata-finish-lacquer); }
  :where([data-strata-material="glass"]) { --_finish: var(--strata-finish-glass); }
  :where([data-strata-material="metal"]) { --_finish: var(--strata-finish-metal); }
  :where([data-strata-material="emissive"]) { --_finish: var(--strata-finish-emissive); }

  /* ---- Panel motion: enter and leave through depth (section 12), CSS presentation only ---- */

  :where(.ug-panel, .ug-card)[data-strata-motion] {
    --_tilt: var(--strata-panel-tilt, 0deg);
    transform-origin: 50% 50%;
  }
  :where(.ug-panel, .ug-card)[data-strata-motion="enter"] { animation: ug-panel-enter var(--strata-motion-slow) var(--strata-motion-easing-standard) both; }
  /* A panel that has left stays invisible (instantly so under reduced motion and in face mode). */
  :where(.ug-panel, .ug-card)[data-strata-motion="leave"] { opacity: 0; animation: ug-panel-leave var(--strata-motion-slow) var(--strata-motion-easing-standard) both; }
  @keyframes ug-panel-enter {
    from { opacity: 0; transform: perspective(var(--strata-camera-distance)) translateZ(var(--strata-elevation-modal)) rotateX(var(--_tilt)); }
  }
  @keyframes ug-panel-leave {
    from { opacity: 1; transform: none; }
    to { opacity: 0; transform: perspective(var(--strata-camera-distance)) translateZ(var(--strata-elevation-modal)) rotateX(var(--_tilt)); }
  }

  /*
   * A tray Drawer slides out of its edge and back into it, in place of the depth motion: the panel travels its own width or height
   * (`translate` in percent of itself) fading as it goes. Named `ug-panel-*`, so `strataEnter` and `strataLeave` wait for it. On the
   * GPU the layer slides (`gpu/index.ts`), and in face mode and under reduced motion there is no CSS motion.
   */
  :where(.ug-drawer--end) { --_slide-x: 100%; --_slide-y: 0%; }
  :where(.ug-drawer--start) { --_slide-x: -100%; --_slide-y: 0%; }
  :where(.ug-drawer--top) { --_slide-x: 0%; --_slide-y: -100%; }
  :where(.ug-drawer--bottom) { --_slide-x: 0%; --_slide-y: 100%; }
  :where(.ug-drawer--end:dir(rtl), .ug-drawer--start:dir(rtl)) { --_slide-x: calc(-1 * var(--_slide-x)); }
  :where(.ug-drawer)[data-strata-form="tray"][data-strata-motion="enter"] { animation-name: ug-panel-slide-enter; }
  :where(.ug-drawer)[data-strata-form="tray"][data-strata-motion="leave"] { animation-name: ug-panel-slide-leave; }
  @keyframes ug-panel-slide-enter {
    from { opacity: 0; transform: translate(var(--_slide-x), var(--_slide-y)); }
  }
  @keyframes ug-panel-slide-leave {
    from { opacity: 1; transform: none; }
    to { opacity: 0; transform: translate(var(--_slide-x), var(--_slide-y)); }
  }

  @keyframes ug-progress-sweep { from { background-position: -40% 0; } to { background-position: 140% 0; } }
  @keyframes ug-spinner-turn { to { rotate: 1turn; } }

  /* ---- Face mode: the GPU paints relief, CSS paints flat faces ---- */

  /* The mode applies to the scope element itself too: the GPU helper sets it on each enrolled panel. */
  :where([data-strata-mode="face"])[data-strata-face], :where([data-strata-mode="face"]) [data-strata-face] {
    --_finish: none;
    box-shadow: none;
    filter: none;
  }
  :where([data-strata-mode="face"]) .ug-slider::-webkit-slider-runnable-track { box-shadow: none; background: var(--strata-colour-track); }
  :where([data-strata-mode="face"]) .ug-slider::-webkit-slider-thumb { box-shadow: none; background: var(--strata-colour-knob); }
  /* When the GPU draws a fader's carriage as parts (the Instrument level), its CSS paint is hidden, so a value change
     repaints nothing (the slot, the scale and the focus ring stay). */
  :where([data-strata-mode="face"]) .ug-fader__carriage[data-strata-dome] { border-color: transparent; }
  :where([data-strata-mode="face"]) .ug-fader__carriage[data-strata-dome] :is(.ug-fader__grip, .ug-fader__ridges) { display: none; }
  /*
   * At the Objects level the GPU draws knobs, dots and slider pucks as domes in their own colour: their CSS paint is
   * hidden while it does (`data-strata-dome`, set by the GPU helper). A knob keeps its edge ring, for 3:1 on its track.
   */
  :where([data-strata-mode="face"]) [data-strata-dome] { background: transparent; box-shadow: none; }
  :where([data-strata-mode="face"]) .ug-slider[data-strata-dome]::-webkit-slider-thumb { background: transparent; box-shadow: none; }
  :where([data-strata-mode="face"]) .ug-slider[data-strata-dome]::-moz-range-thumb { background: transparent; box-shadow: none; }
  /* At the Instrument level the GPU draws a knob's skirt, cap and pointer as parts: their CSS paint is hidden, so a
     value change repaints nothing (the focus ring round the skirt stays). */
  :where([data-strata-mode="face"]) :is(.ug-knob__skirt, .ug-knob__cap)[data-strata-dome] { border-color: transparent; }
  :where([data-strata-mode="face"]) .ug-knob__cap[data-strata-dome] .ug-knob__pointer { display: none; }
  /* At the Instrument level the GPU draws a Switch form's moving parts, bezel, plate, nut, bushing and lit flag as parts:
     their CSS paint is hidden and their CSS motion (the block's translation, the lever's scale, the ball's translation, the slide flag's
     opacity) held, so a throw repaints nothing (the slot printed on the face and the focus ring stay). */
  :where([data-strata-mode="face"]) .ug-switch__object [data-strata-dome] { border-color: transparent; }
  :where([data-strata-mode="face"][data-strata-instrument], [data-strata-mode="face"][data-strata-instrument] *) .ug-switch__object [data-strata-dome] { translate: none; scale: none; opacity: 1; }
  :where([data-strata-mode="face"]) .ug-switch__block[data-strata-dome] .ug-switch__grip { display: none; }
  /* The GPU draws a lamp's or LED's lens as a lens (a dome with an emitter) at every level, and at the Instrument level its bezel
     as a part: their CSS paint is hidden, so a light turning on or blinking repaints nothing (the socket printed under the lens
     and the focus ring stay). */
  :where([data-strata-mode="face"]) .ug-lamp__bezel[data-strata-dome] { border-color: transparent; }
  /* Under the GPU, an enrolled panel's boundary never carries a CSS transform: the GPU presentation moves it. */
  :where([data-strata-mode="face"]):is(.ug-panel, .ug-card)[data-strata-motion], :where([data-strata-mode="face"]) :is(.ug-panel, .ug-card)[data-strata-motion] { animation: none; }
  :where([data-strata-mode="face"]).ug-drawer[data-strata-form="tray"][data-strata-motion] { animation: none; }

  /* ---- Preferences ---- */

  @media (prefers-reduced-motion: reduce) {
    :where([data-strata-face], .ug-checkbox__mark, .ug-radio__dot, .ug-switch__knob, .ug-switch__input, .ug-accordion__chevron) { transition: none; }
    :where(.ug-knob__pointer) { transition: none; }
    :where(.ug-status-light[data-strata-blink]) { animation: none; }
    :where(.ug-spinner__arc) { animation: none; }
    :where(.ug-tree__toggle)::before { transition: none; }
    :where(.ug-carousel__slide) { transition: none; }
    :where(.ug-scrim) { transition: none; }
    :where(.ug-panel, .ug-card)[data-strata-motion] { animation: none; }
    :where(.ug-drawer)[data-strata-form="tray"][data-strata-motion] { animation: none; }
    :where(.ug-spinner__label) { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
    :where(.ug-skeleton) { animation: none; background-image: none; }
    :where(.ug-tooltip, .ug-toast, .ug-popover, .ug-menu) { transition: none; }
    :where(.ug-progress:indeterminate) {
      animation: none;
      background-image: repeating-linear-gradient(45deg, var(--strata-colour-accent) 0 6px, transparent 6px 12px);
      background-size: auto;
    }
  }

  /* More contrast: the high-contrast themes apply through the tokens; the knob's pointer and scale take the text colour. */
  @media (prefers-contrast: more) {
    :where(.ug-knob) { --_ink: var(--strata-colour-text); }
    :where(.ug-knob__mark) { color: var(--strata-colour-text); }
    :where(.ug-knob__skirt, .ug-knob__cap) { border: max(1px, var(--strata-outline-width)) solid var(--strata-colour-edge); }
  }
  :where([data-strata-theme="contrast"], [data-strata-theme="contrast-dark"]) :where(.ug-knob) { --_ink: var(--strata-colour-text); }
  /* More contrast: a lit lens is flat colour, with no glow, and the socket under it takes that colour too (so the GPU's
     glass shows it, and its emitters are off); lenses and bezels are edged in the text colour. */
  @media (prefers-contrast: more) {
    :where(.ug-lamp__socket, .ug-status-light__socket) { background: var(--_glass); }
    :where(.ug-lamp__lens, .ug-status-light__lens) { background: var(--_glass); box-shadow: none; }
    :where(.ug-lamp__bezel, .ug-lamp__lens, .ug-status-light__lens) { border: max(1px, var(--strata-outline-width)) solid var(--strata-colour-text); }
  }
  :where([data-strata-theme="contrast"], [data-strata-theme="contrast-dark"]) :where(.ug-lamp__bezel, .ug-lamp__lens, .ug-status-light__lens) { border: max(1px, var(--strata-outline-width)) solid var(--strata-colour-text); }

  @media (prefers-reduced-transparency: reduce) {
    :where(.ug-panel[data-strata-material="glass"]) {
      --_finish: var(--strata-finish-matte);
      background-color: var(--strata-colour-panel);
      backdrop-filter: none;
    }
  }

  /* More contrast: the high-contrast themes apply through the tokens; a fader's grip and scale take the text colour. */
  @media (prefers-contrast: more) {
    :where(.ug-fader) { --_ink: var(--strata-colour-text); --_slot: var(--strata-colour-text); }
    :where(.ug-fader__mark) { color: var(--strata-colour-text); }
  }
  :where([data-strata-theme="contrast"], [data-strata-theme="contrast-dark"]) :where(.ug-fader) { --_ink: var(--strata-colour-text); --_slot: var(--strata-colour-text); }

  @media (forced-colors: active) {
    :where([data-strata-face]) { box-shadow: none; background-image: none; filter: none; }
    /* The fader: a CanvasText slot, a Canvas carriage with a CanvasText border and grip, the scale in CanvasText, a
       Highlight focus ring, GrayText when disabled. */
    :where(.ug-fader__slot) { forced-color-adjust: none; background: CanvasText; }
    :where(.ug-fader__carriage) { forced-color-adjust: none; border: 1px solid CanvasText; background: Canvas; }
    :where(.ug-fader__grip), :where(.ug-fader__mark)::before, :where(.ug-fader__ridges)::after { forced-color-adjust: none; background: CanvasText; }
    :where(.ug-fader__ridges) { forced-color-adjust: none; background: repeating-linear-gradient(90deg, CanvasText 0 1px, transparent 1px var(--_pitch)); }
    :where(.ug-fader__mark) { color: CanvasText; }
    :where(.ug-fader__input:focus-visible) { outline-color: Highlight; }
    :where(.ug-fader:has(.ug-fader__input:disabled)) :where(.ug-fader__carriage) { border-color: GrayText; }
    :where(.ug-fader:has(.ug-fader__input:disabled)) :where(.ug-fader__slot, .ug-fader__grip) { background: GrayText; }
    :where(.ug-panel, .ug-card) { border: 1px solid CanvasText; }
    :where(.ug-card__body)[data-strata-face="well"], :where(.ug-panel__tray) { border: 1px solid CanvasText; background-color: Canvas; }
    :where(.ug-scrim) { forced-color-adjust: none; }
    :where(.ug-button, .ug-icon-button, .ug-toggle-button, .ug-select, .ug-button-group, .ug-toolbar) { border: 1px solid ButtonBorder; }
    :where(.ug-toggle-button[aria-pressed="true"]) { forced-color-adjust: none; background-color: Highlight; color: HighlightText; }
    :where(.ug-segmented__key) { border: 1px solid ButtonBorder; }
    :where(.ug-segmented__input:checked + .ug-segmented__key) { forced-color-adjust: none; background-color: Highlight; color: HighlightText; }
    :where(.ug-rating__star) { forced-color-adjust: none; --_fill: CanvasText; }
    :where(.ug-rating__input:checked + .ug-rating__star, .ug-rating__item:has(~ .ug-rating__item > .ug-rating__input:checked) > .ug-rating__star) { --_fill: Highlight; }
    :where(.ug-rating-display) { forced-color-adjust: none; background: linear-gradient(90deg, Highlight calc(var(--strata-rating, 0) * 100%), CanvasText 0); }
    :where(.ug-stepper__marker) { border: 1px solid CanvasText; }
    :where(.ug-stepper__step[aria-current="step"]) > :where(.ug-stepper__marker) { border: 2px solid CanvasText; }
    :where(.ug-stepper__step:has(~ .ug-stepper__step[aria-current="step"])) > :where(.ug-stepper__marker, .ug-stepper__line),
    :where(.ug-stepper__step[aria-current="step"]) > :where(.ug-stepper__line) { forced-color-adjust: none; background-color: Highlight; color: HighlightText; }
    :where(.ug-nav-rail) { border: 1px solid CanvasText; }
    :where(.ug-nav-rail__item) { border: 1px solid ButtonBorder; }
    :where(.ug-nav-rail__item[aria-current="page"]) { forced-color-adjust: none; background-color: Highlight; color: HighlightText; }
    :where(.ug-popover, .ug-menu) { border: 1px solid CanvasText; }
    :where(.ug-menu__item):is(:hover, :focus) { forced-color-adjust: none; background-color: Highlight; color: HighlightText; }
    :where(.ug-tree) { border: 1px solid CanvasText; }
    :where(.ug-tree__item[aria-selected="true"]) > :where(.ug-tree__row) { forced-color-adjust: none; background-color: Highlight; color: HighlightText; }
    :where(.ug-carousel__slides) { border: 1px solid CanvasText; }
    :where(.ug-carousel__key) { border: 1px solid ButtonBorder; }
    :where(.ug-carousel__key[aria-current="true"]) { forced-color-adjust: none; background-color: Highlight; }
    /* The printed calendar goes with the background image; the browser's own calendar button shows instead. */
    :where(.ug-date-picker)::-webkit-calendar-picker-indicator { opacity: 1; }
    :where(.ug-select) { forced-color-adjust: none; background-color: Field; color: FieldText; --_chevron: FieldText; }
    /* The printed chevron goes with the background image; the browser's own list button shows instead. */
    :where(.ug-combobox)::-webkit-calendar-picker-indicator { opacity: 1; }
    :where(.ug-checkbox__mark, .ug-radio__dot) { forced-color-adjust: none; background: Highlight; box-shadow: none; filter: none; }
    :where(.ug-switch__input) { forced-color-adjust: none; border: 1px solid ButtonBorder; background-color: Field; box-shadow: none; }
    :where(.ug-switch__input:checked) { background-color: Highlight; }
    :where(.ug-switch__knob) { forced-color-adjust: none; border: 0; background: ButtonText; box-shadow: none; }
    :where(.ug-switch__input:checked + .ug-switch__knob) { background: HighlightText; }
    :where(.ug-switch__input:disabled, .ug-switch__input:disabled + .ug-switch__knob) { opacity: 1; border-color: GrayText; }
    :where(.ug-switch__input:disabled + .ug-switch__knob) { background: GrayText; }
    :where(.ug-progress) { forced-color-adjust: none; border-color: CanvasText; background-color: Canvas; }
    :where(.ug-progress)::-webkit-progress-value { background-color: Highlight; box-shadow: none; }
    :where(.ug-progress)::-moz-progress-bar { background-color: Highlight; }
    :where(.ug-spinner__arc) { forced-color-adjust: none; border-color: CanvasText; border-top-color: Highlight; }
    :where(.ug-spinner__label) { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
    :where(.ug-accordion__item) { border: 1px solid CanvasText; }
    :where(.ug-list) { border: 1px solid CanvasText; }
    :where(.ug-avatar) { border: 1px solid CanvasText; }
    :where(.ug-tooltip) { border: 1px solid CanvasText; background-color: Canvas; color: CanvasText; box-shadow: none; }
    :where(.ug-app-bar) { border: 1px solid CanvasText; }
    :where(.ug-pagination__link) { border: 1px solid ButtonBorder; }
    :where(.ug-pagination__link[aria-current="page"]) { forced-color-adjust: none; background-color: Highlight; color: HighlightText; }
    :where(.ug-message-bar) { border: 1px solid CanvasText; border-inline-start: 4px solid CanvasText; }
    :where(.ug-message-bar__icon) { forced-color-adjust: none; background-color: CanvasText; }
    :where(.ug-skeleton) { forced-color-adjust: none; background: GrayText; }
    :where(.ug-chip) { border: 1px solid ButtonBorder; }
    :where(.ug-chip[aria-pressed="true"]) { forced-color-adjust: none; background-color: Highlight; color: HighlightText; }
    :where(.ug-breadcrumb__item + .ug-breadcrumb__item)::before { border-color: CanvasText; }
    :where(.ug-breadcrumb__link[aria-current="page"]) { color: CanvasText; }
    :where(.ug-table) { border: 1px solid CanvasText; }
    :where(.ug-table__header) { border-bottom-color: CanvasText; }
    :where(.ug-table__row + .ug-table__row) > :where(.ug-table__cell) { border-top-color: CanvasText; }
    :where(.ug-list__item + .ug-list__item)::before { border-top-color: CanvasText; }
    :where(.ug-list__action[aria-current]:not([aria-current="false"])) { forced-color-adjust: none; box-shadow: inset 3px 0 0 Highlight; background: Canvas; color: CanvasText; }
    :where(.ug-accordion__chevron) { border-color: ButtonText; }
    :where(.ug-tabs__rail) { forced-color-adjust: none; background: CanvasText; height: 1px; }
    :where(.ug-tabs--vertical) :where(.ug-tabs__rail) { width: 1px; height: auto; }
    :where(.ug-tab) { color: ButtonText; }
    :where(.ug-tab:disabled) { color: GrayText; }
    :where(.ug-tab__indicator) { forced-color-adjust: none; background: Highlight; box-shadow: none; }
    :where(.ug-divider) { border-top-color: CanvasText; border-bottom: 0; }
    :where(.ug-divider--vertical) { border-left-color: CanvasText; border-right: 0; }
    :where(.ug-badge) { border-color: CanvasText; }
    :where(.ug-field__error) { color: CanvasText; }
    /* The knob: system-colour rings for the skirt and cap, a CanvasText pointer and scale, a Highlight focus ring. */
    :where(.ug-knob__skirt, .ug-knob__cap) { forced-color-adjust: none; border: 1px solid CanvasText; background: Canvas; }
    :where(.ug-knob__pointer)::after, :where(.ug-knob__mark)::before { forced-color-adjust: none; background: CanvasText; }
    :where(.ug-knob__mark) { color: CanvasText; }
    :where(.ug-knob__dial:has(> .ug-knob__input:focus-visible) .ug-knob__skirt) { outline-color: Highlight; }
    :where(.ug-knob:has(.ug-knob__input:disabled)) :where(.ug-knob__skirt, .ug-knob__cap) { border-color: GrayText; }
    :where(.ug-knob:has(.ug-knob__input:disabled)) :where(.ug-knob__pointer)::after { background: GrayText; }
    /* The lamp and the LED: a Canvas lens with a CanvasText edge on a Canvas bezel, Highlight when lit, so the state shows by
       fill and by the label; no glow, no blink; GrayText edges when disabled; a Highlight focus ring. */
    :where(.ug-lamp__bezel, .ug-lamp__lens, .ug-status-light__lens) { forced-color-adjust: none; border: 1px solid CanvasText; background: Canvas; box-shadow: none; filter: none; }
    :where(.ug-lamp__socket, .ug-status-light__socket) { background: transparent; }
    :where(.ug-lamp:has(> .ug-lamp__input:checked:not(:disabled)), .ug-lamp--momentary[aria-pressed="true"]:not(:disabled)) :where(.ug-lamp__lens), :where(.ug-status-light:not([data-strata-lit="false"])) :where(.ug-status-light__lens) { background: Highlight; }
    :where(.ug-lamp:has(> .ug-lamp__input:focus-visible), .ug-lamp--momentary:focus-visible) :where(.ug-lamp__bezel) { outline-color: Highlight; }
    :where(.ug-lamp:has(> .ug-lamp__input:disabled), .ug-lamp--momentary:disabled) :where(.ug-lamp__object) { opacity: 1; }
    :where(.ug-lamp:has(> .ug-lamp__input:disabled), .ug-lamp--momentary:disabled) :where(.ug-lamp__bezel, .ug-lamp__lens) { border-color: GrayText; }
    :where(.ug-lamp--momentary) { forced-color-adjust: none; color: ButtonText; }
    :where(.ug-lamp--momentary:disabled) { color: GrayText; }
    :where(.ug-status-light[data-strata-blink]) { animation: none; }
  }
}
/*
 * The examples: the gallery (`/examples`) and every example's page. The page around a stage has the home page's look
 * (`home/home.css`): near-black ground, engraved white type, hairline rules and one indicator colour. What is inside a
 * stage is the example's own, with its own colours.
 */
/* ---------- Tokens ---------- */
:root {
  --ground: #07080a; --panel: #0d0f13; --panel-raised: #13161b;
  --rule: rgb(255 255 255 / 9%); --rule-strong: rgb(255 255 255 / 20%);
  --text: #eceef2; --dim: #a3aab6; --quiet: #7d8590;
  --signal: #ff5a36; --signal-wash: rgb(255 90 54 / 12%); --signal-rule: rgb(255 90 54 / 45%);
  /* Inside the stages: the examples' palette. */
  --ink: #16131f; --violet: #6d4aff; --coral: #ff6b4a; --pink: #ff5fa2;
  --display: "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  color-scheme: dark;
  font-family: var(--display); color: var(--text); background: var(--ground); font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
/* Strata (the strata example) is in cascade layers, so these unlayered base rules skip its scopes, with no added specificity. */
a:where(:not(.ug-panel *, .ug-app-bar *, .ug-toast-region *)) { color: inherit; }
button:where(:not(.ug-panel *, .ug-app-bar *, .ug-toast-region *)), input:where(:not(.ug-panel *, .ug-app-bar *, .ug-toast-region *)), select:where(:not(.ug-panel *, .ug-app-bar *, .ug-toast-region *)), textarea:where(:not(.ug-panel *, .ug-app-bar *, .ug-toast-region *)) { font: inherit; color: inherit; }
button:where(:not(.ug-panel *, .ug-app-bar *, .ug-toast-region *)) { cursor: pointer; }
button:disabled:where(:not(.ug-panel *, .ug-app-bar *, .ug-toast-region *)) { cursor: default; opacity: .5; }
:focus-visible:where(:not(.ug-panel *, .ug-app-bar *, .ug-toast-region *)) { outline: 2px solid var(--signal); outline-offset: 3px; }
[hidden] { display: none !important; }
code { font-family: var(--mono); font-size: .9em; background: rgb(255 255 255 / 7%); padding: 1px 5px; border-radius: 5px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 10; padding: 10px 14px; background: var(--text); color: var(--ground); border-radius: 6px; }
.skip-link:focus { top: 12px; }
/* A section's label: small capitals in the monospace face, a number in the indicator colour and a short rule after it. */
.eyebrow { display: flex; align-items: center; gap: 14px; margin: 0; font: 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.eyebrow b { font-weight: 400; color: var(--signal); }
.eyebrow::after { content: ""; flex: 0 1 56px; height: 1px; background: var(--rule-strong); }
/* The size, spacing and tracking also reach headings inside a stage, which is why they are not the page's own (`main h2` below). */
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -1.4px; margin: 10px 0 18px; }
main h2 { font-size: clamp(28px, 3.6vw, 48px); line-height: 1.04; letter-spacing: -.036em; font-weight: 640; margin: 20px 0 24px; text-wrap: balance; }

/* ---------- The background, the header and the top of the page ---------- */
/* The home page's background, fixed in the window behind everything: two pools of light, a faint grid that fades toward
   the text, and two lens rings. */
.page-backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(52% 46% at 88% 6%, rgb(96 132 255 / 13%), transparent 72%),
    radial-gradient(46% 44% at 4% 100%, rgb(255 90 54 / 10%), transparent 70%); }
.page-backdrop::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgb(255 255 255 / 4.5%) 1px, transparent 1px) 0 0 / 100% 64px, linear-gradient(90deg, rgb(255 255 255 / 4.5%) 1px, transparent 1px) 0 0 / 64px 100%;
  mask-image: radial-gradient(90% 80% at 100% 55%, #000 0%, transparent 78%); -webkit-mask-image: radial-gradient(90% 80% at 100% 55%, #000 0%, transparent 78%); }
.page-backdrop i { position: absolute; right: -14vmax; top: -22vmax; width: 62vmax; height: 62vmax; border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 7%); box-shadow: inset 0 0 120px rgb(96 132 255 / 5%); }
.page-backdrop i + i { right: -2vmax; top: -10vmax; width: 38vmax; height: 38vmax; border-color: rgb(255 90 54 / 16%); box-shadow: none; }
.site-header, .studio, main, footer { max-width: 1240px; margin: auto; padding-inline: 36px; }
.site-header { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; min-height: 72px; gap: 24px; }
.site-header a { text-decoration: none; }
.site-header nav { display: flex; gap: clamp(14px, 2.4vw, 32px); font-size: 14px; color: var(--dim); }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--text); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 650; font-size: 18px; letter-spacing: -.02em; }
/* The mark: three panes of glass, one of them lit. */
.brand-mark { position: relative; display: inline-block; width: 26px; height: 24px; flex: none; }
.brand-mark i { position: absolute; left: 0; top: 0; width: 17px; height: 13px; border: 1.5px solid var(--text); border-radius: 3px; background: var(--ground); }
.brand-mark i:nth-child(2) { left: 4.5px; top: 5.5px; }
.brand-mark i:nth-child(3) { left: 9px; top: 11px; border-color: var(--signal); background: var(--signal); }
.tag { margin-left: 4px; padding: 6px 9px; border: 1px solid var(--rule); border-radius: 999px; font: 400 10px/1 var(--mono); letter-spacing: .12em; color: var(--quiet); }
h1 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.02; letter-spacing: -.036em; margin: 16px 0 14px; font-weight: 640; text-wrap: balance; }

/* ---------- The gallery (/examples) and an example's card ---------- */
.gallery { padding-block: 20px 72px; }
.gallery:focus { outline: none; }
.gallery-head { padding-bottom: 8px; }
.gallery-lede { max-width: 640px; margin: 0 0 18px; font-size: 17px; line-height: 1.6; color: var(--dim); }
/* What this browser can do: a sentence, which wraps on a phone. */
.gallery-head .mode-pill { display: inline-flex; margin: 0; padding-block: 6px; border-radius: 16px; line-height: 1.5; white-space: normal; }
.gallery-head .mode-pill .dot { flex: none; }
.gallery-group { padding-top: 40px; }
.group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.group-head h2 { margin: 0; font-size: 22px; line-height: 1.2; letter-spacing: -.02em; font-weight: 640; }
.group-head p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--dim); }
.example-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.example-grid li { display: flex; min-width: 0; }
.example-card { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 10px 10px 16px; text-decoration: none;
  border-radius: 14px; border: 1px solid var(--rule); background: linear-gradient(180deg, var(--panel-raised), var(--panel)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 6%);
  transition: transform .25s ease, border-color .25s ease; }
.example-card:hover { transform: translateY(-3px); border-color: var(--rule-strong); }
/* The picture is the example's own stage, in the stage's proportions. */
.example-card img { display: block; width: 100%; height: auto; aspect-ratio: 720 / 485; border-radius: 8px; background: var(--ground); box-shadow: 0 0 0 1px var(--rule); }
.card-top { display: flex; justify-content: space-between; gap: 10px; margin: 14px 8px 0; font: 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--quiet); }
.card-top span:last-child { color: var(--signal); }
.example-card h3 { font-size: 20px; font-weight: 640; line-height: 1.15; letter-spacing: -.02em; margin: 6px 8px 6px; }
.example-card p { font-size: 14px; line-height: 1.55; color: var(--dim); margin: 0 8px; }
.example-card:hover h3 { color: var(--signal); }

/* ---------- An example's page: the bar, the title and the live stage ---------- */
.studio { position: relative; z-index: 1; padding-bottom: 64px; }
.studio:focus { outline: none; }
/* Reaches code inside a stage too. */
.studio code { background: #ffffff14; color: #f1edff; }
/* The bar: back to the gallery, the example by name, the ones before and after, and how the stage is drawn. One row at
   every width. It is part of the page, not fixed over it: nothing may lie over the stage where GPU admission clicks its probe. */
.studio-bar { display: flex; align-items: center; gap: 10px; padding-block: 10px; border-block: 1px solid var(--rule); }
.studio-bar a { text-decoration: none; }
.bar-back { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px 0 10px; border: 1px solid var(--rule-strong); border-radius: 8px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.bar-back:hover, .bar-steps a:hover { border-color: var(--text); }
.bar-pick { flex: 0 1 280px; min-width: 0; min-height: 36px; padding: 0 12px; border: 1px solid var(--rule-strong); border-radius: 8px; background: var(--panel); font: 14px var(--display); color: var(--text); text-overflow: ellipsis; }
.bar-pick option { color: var(--text); background: var(--panel); }
.bar-steps { display: inline-flex; gap: 6px; }
.bar-steps a { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--rule-strong); border-radius: 8px; font-size: 20px; line-height: 1; }
/* The switch: the pressed half is how the stage is drawn now. */
.mode-switch { display: inline-flex; margin-left: auto; padding: 3px; gap: 3px; border: 1px solid var(--rule-strong); border-radius: 10px; }
.mode-switch button { min-width: 52px; min-height: 30px; padding: 0 12px; border: 0; border-radius: 7px; background: none; color: var(--dim); font: 600 12px/1 var(--mono); letter-spacing: .08em; }
.mode-switch button:not(:disabled):hover { color: var(--text); }
.mode-switch button[aria-pressed="true"] { background: rgb(255 255 255 / 10%); color: var(--text); opacity: 1; }
.mode-switch button:first-child[aria-pressed="true"] { background: var(--signal); color: #120703; }
.studio-head { padding-top: 22px; }
.studio-detail { max-width: 860px; color: var(--dim); font-size: 16px; line-height: 1.6; margin: 28px 0 0; }
/* How the stage is drawn. Its dot is lit while the GPU draws it. */
.mode-pill { display: inline-flex; align-items: center; gap: 9px; min-height: 30px; padding: 0 12px; border: 1px solid var(--rule-strong); border-radius: 999px;
  font: 11px/1 var(--mono); letter-spacing: .08em; color: var(--dim); white-space: nowrap; }
.mode-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--quiet); }
.mode-pill.active { color: var(--text); }
.mode-pill.active .dot { background: var(--signal); box-shadow: 0 0 0 4px var(--signal-wash); }
/* Under the stage: how it is drawn, what the runtime last said, and the rest behind Details. */
.status-row { display: flex; align-items: flex-start; gap: 14px; margin-top: 14px; }
.status-row .mode-pill { flex: none; }
.diagnostic { flex: 1; min-width: 0; padding-top: 5px; overflow-wrap: anywhere; font-size: 13px; line-height: 1.5; color: var(--dim); }
.diagnostic strong { color: var(--text); font-weight: 600; }
.diagnostic details { display: inline; margin-left: 10px; }
.diagnostic details[open] { display: block; margin: 8px 0 0; }
.diagnostic summary { display: inline; cursor: pointer; color: var(--quiet); text-decoration: underline; text-underline-offset: 3px; }
.diagnostic summary:hover { color: var(--text); }
.diagnostic details > code { display: block; margin-top: 8px; padding: 8px 10px; }
.diagnostic details .stage-note { margin: 8px 0 0; }
.dispose { margin-top: 10px; min-height: 32px; padding: 0 12px; border: 1px solid var(--rule-strong); border-radius: 8px; background: none; font-size: 12px; font-weight: 600; }
.dispose:not(:disabled):hover { border-color: var(--text); }
.disposed-note { padding: 12px 16px; border-radius: 8px; border: 1px solid var(--signal-rule); background: var(--signal-wash); color: var(--text); font-weight: 600; }
.stage-note { font-size: 13px; color: var(--quiet); line-height: 1.55; }
.stage-note strong { color: var(--dim); font-weight: 600; }
.why-gpu { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-top: 20px; }
.why-col { padding: 20px 22px; border-radius: 14px; border: 1px solid var(--signal-rule); background: var(--signal-wash); }
.why-col h2 { margin: 16px 0 10px; font-size: 18px; font-weight: 600; line-height: 1.35; letter-spacing: 0; color: var(--text); }
.why-col ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.why-col li, .why-col p { font-size: 14px; line-height: 1.6; color: var(--dim); }
.why-col li::marker { color: var(--signal); }
.why-col .eyebrow { margin: 0; color: var(--signal); }
.why-col .eyebrow + p { margin: 16px 0 0; }
.why-css { border-color: var(--rule); background: rgb(255 255 255 / 2.5%); }
.why-css .eyebrow { color: var(--quiet); }
.why-hint { margin: 12px 0 0; font-size: 13px; color: var(--quiet); }
/* The way on, under everything: the next example's card and the gallery. */
.studio-next { display: grid; grid-template-columns: minmax(0, 380px) auto; align-items: center; justify-content: start; gap: 16px 28px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--rule); }
.all-examples { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--rule-strong); border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.all-examples:hover { border-color: var(--text); }
/* The frame is drawn with shadows, not a border: it has the size it always had, so the stage is where it was. */
.stage-frame { border-radius: 14px; padding: 8px; background: linear-gradient(180deg, var(--panel-raised), var(--panel)); box-shadow: 0 0 0 1px var(--rule), inset 0 1px 0 rgb(255 255 255 / 6%); }
.is-gpu .stage-frame { box-shadow: 0 0 0 1px var(--signal-rule), inset 0 1px 0 rgb(255 255 255 / 6%); }
.stage-chrome { display: flex; align-items: center; gap: 6px; padding: 6px 10px 12px; }
.stage-chrome i { width: 7px; height: 7px; border-radius: 50%; background: var(--rule-strong); }
.is-gpu .stage-chrome i:first-child { background: var(--signal); box-shadow: 0 0 0 4px var(--signal-wash); }
.stage-chrome span { margin-left: 10px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 11px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--quiet); }
/* Shown only where the stage is wider than the page (below). */
.stage-chrome .scroll-hint { display: none; flex: none; margin-left: auto; color: var(--dim); }
.stage-scroll { width: 100%; overflow-x: auto; border-radius: 8px; background: var(--ground); }
/* What a stage holds is the example's own: light controls, unless the example says otherwise. */
.stage { position: relative; width: 1040px; height: 700px; margin: auto; background: white; color: var(--ink); color-scheme: light; }
.stage .capture, .stage .output, .stage .ordinary { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage .output { pointer-events: none; }
.stage .overlay { position: relative; z-index: 2; }
/* ---------- Content inside surfaces (no CSS transitions/animations: motion is owned by Underglass) ---------- */
/* Fluent UI components (inside a FluentProvider or a Fluent portal node) and Strata panels bring their own styles. */
.stage input, .stage textarea { max-width: 100%; }
.stage button:not(.fui-FluentProvider *, [data-portal-node] *, .ug-panel *, .ug-app-bar *) { border: 1px solid #c9c2d6; border-radius: 9px; padding: 6px 10px; background: white; color: #292437; font-weight: 650; }
.stage button:not(:disabled):not(.fui-FluentProvider *, [data-portal-node] *, .ug-panel *, .ug-app-bar *):hover { background: #f4f0fb; }
.stage :focus-visible:not(.fui-FluentProvider *, [data-portal-node] *, .ug-panel *, .ug-app-bar *) { outline: 3px solid var(--violet); outline-offset: 2px; }
.stage h3 { margin: 0; }

.backdrop > div { position: absolute; inset: 0; }
.backdrop-grain { background-image: radial-gradient(#0000000f 1px, transparent 1px); background-size: 22px 22px; }
.backdrop-postcard .backdrop-glow { background: radial-gradient(520px 360px at 75% 10%, #ffc7a8, transparent 70%), radial-gradient(420px 320px at 30% 100%, #ffd9e6, transparent 70%); }
.airmail { border: 12px solid transparent; border-image: repeating-linear-gradient(-45deg, #e5604f 0 16px, #fff6ec 16px 26px, #3a6fd8 26px 42px, #fff6ec 42px 52px) 12; opacity: .55; }
.backdrop-deck .backdrop-glow { background: radial-gradient(640px 460px at 66% 50%, #1f7a7a, transparent 75%), radial-gradient(400px 300px at 10% 0%, #2c4f7a, transparent 70%); }
.backdrop-deck .backdrop-grain { background-image: radial-gradient(#ffffff10 1px, transparent 1px); }
.mat { position: absolute; inset: 0; background: radial-gradient(circle at 343px 330px, #23797a, #165458 62%, #10393f); }
.mat::after { content: ""; position: absolute; inset: 14px; border-radius: 28px; border: 1.5px dashed #ffffff22; }
.felt-rings { position: absolute; inset: 0; background: repeating-radial-gradient(circle at 343px 330px, transparent 0 58px, #ffffff0d 58px 60px); }
.mat-label { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); font: 700 11px var(--mono); letter-spacing: 4px; color: #ffffff40; }
.backdrop-lab .backdrop-glow { background: radial-gradient(500px 400px at 70% 40%, #6d4aff55, transparent 70%), radial-gradient(400px 360px at 100% 100%, #19c3b144, transparent 70%); }
.backdrop-lab .backdrop-grain { background-image: radial-gradient(#ffffff12 1px, transparent 1px); }
.lab-grid { background-image: linear-gradient(#ffffff08 1px, transparent 1px), linear-gradient(90deg, #ffffff08 1px, transparent 1px); background-size: 40px 40px; }
.backdrop-notices .backdrop-glow { background: radial-gradient(520px 420px at 52% 40%, #a855f7aa, transparent 70%), radial-gradient(500px 400px at 0% 100%, #ff6b4a55, transparent 70%); }
.backdrop-notices .backdrop-grain { background-image: radial-gradient(#ffffff14 1px, transparent 1px); }
.backdrop .phone { inset: 18px auto auto 380px; width: 314px; height: 664px; border-radius: 46px; border: 10px solid #120c26; background: #120c26; box-shadow: 0 30px 60px #0007; }
.wallpaper { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; color: white;
  background: radial-gradient(circle at 30% 20%, #ff9ad5, transparent 50%), radial-gradient(circle at 80% 80%, #6d4aff, transparent 60%), linear-gradient(#3b1d78, #1a1040); }
.phone-time { margin-top: 40px; font-size: 64px; font-weight: 300; letter-spacing: -2px; }
.phone-date { font-size: 14px; font-weight: 600; opacity: .8; }
.backdrop-tasks .backdrop-glow { background: radial-gradient(500px 400px at 90% 20%, #bfe9cf, transparent 70%), radial-gradient(400px 300px at 0% 100%, #d9f0ff, transparent 70%); }
.tasks-poster { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  padding: 26px; background: linear-gradient(160deg, #1f5f3f, #0f3a2a); color: #d8f5e4; font: 800 34px/1.05 var(--display); letter-spacing: -1px; }
.tasks-poster span:nth-child(2) { color: #ffd27a; } .tasks-poster span:nth-child(3) { color: #8fe3c0; }

/* Panels */
.panel { font-family: var(--display); }
.panel-head { display: flex; flex-direction: column; gap: 4px; }
.panel-label { font: 800 10px var(--mono); letter-spacing: 2px; color: var(--violet); }
.panel-dark .panel-label { color: #8fe3d6; }
.panel h3 { font-size: 24px; letter-spacing: -.7px; }
.panel .stack { display: flex; flex-direction: column; gap: 14px; }
.panel .field, .inline-form { display: flex; flex-direction: column; gap: 6px; }
.panel label, .panel legend { font-size: 12px; font-weight: 750; }
.field-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.count { font: 600 11px var(--mono); color: #8a8199; }
.panel-dark .count { color: #9a96c4; }
.panel input:not([type]), .panel input[type="text"], .panel textarea { width: 100%; border: 1.5px solid #ddd5e8; border-radius: 11px; padding: 9px 11px; background: #faf8fd; font-size: 14px; resize: none; }
.panel-dark input:not([type]), .panel-dark input[type="text"] { background: #2a2c55; border-color: #44477a; color: white; }
.inline-row { display: flex; gap: 8px; }
.inline-row input { flex: 1; min-width: 0; }
.inline-row button { flex: none; }
.panel fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.panel legend { padding: 0; margin-bottom: 8px; width: 100%; display: flex; justify-content: space-between; }
.panel button { border-radius: 11px; padding: 9px 12px; font-size: 13px; font-weight: 750; }
.panel button.primary { background: linear-gradient(135deg, #2a1e48, #4a2f7d); color: white; border-color: transparent; }
.panel button.primary:not(:disabled):hover { background: linear-gradient(135deg, #36265d, #5b3a97); }
.panel-dark button { background: #2a2c55; color: #ecebff; border-color: #44477a; }
.panel-dark button:not(:disabled):hover { background: #34376a; }
.panel output { display: block; min-height: 40px; padding: 10px 12px; border-radius: 12px; background: #f5f1fb; color: #3e3552; font-size: 13px; line-height: 1.45; }
.panel-dark output { background: #12132c; color: #c9c6ef; border: 1px solid #34366a; }
.panel-note { margin: auto 0 0; font-size: 12px; line-height: 1.5; color: #7a7189; }
.panel-dark .panel-note { color: #9a96c4; }
.button-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.button-grid.two { grid-template-columns: 1fr 1fr; }
.button-grid .primary { grid-column: span 3; padding-block: 12px; }
.range { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 750; }
.stage input[type="range"]:not(.ug-slider) { width: 100%; accent-color: var(--violet); margin: 0; }
.panel-dark input[type="range"] { accent-color: #5ee1d0; }

/* Postcard studio */
.swatch { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 62px; font-size: 11px !important; font-weight: 650 !important; cursor: pointer; }
.swatch input { appearance: none; margin: 0; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; box-shadow: inset 0 0 0 3px white, 0 0 0 1.5px #d6cfe0; }
.swatch input:checked { box-shadow: inset 0 0 0 3px white, 0 0 0 3px #2a1e48; }
.swatch input[value="sunset"] { background: linear-gradient(135deg, #ff9a7a, #e5604f); }
.swatch input[value="lagoon"] { background: linear-gradient(135deg, #47c6d6, #137a99); }
.swatch input[value="meadow"] { background: linear-gradient(135deg, #a8dcf0, #5f9f3e); }
.swatch input[value="midnight"] { background: linear-gradient(135deg, #5a3f8f, #16133a); }
.stamp-choice { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 62px; padding: 8px 0 6px; border-radius: 12px; border: 1.5px solid #e4ddec; font-size: 11px !important; font-weight: 650 !important; color: #5d536e; }
.stamp-choice input { appearance: none; position: absolute; inset: 0; margin: 0; border-radius: 12px; cursor: pointer; }
.stamp-choice:has(input:checked) { border-color: #2a1e48; background: #f3eefc; color: #2a1e48; }
.stamp-icon { width: 24px; height: 24px; }
.postcard { position: relative; }
.postcard-kicker { font: 800 10px var(--mono); letter-spacing: 2px; }
.postcard-stamp { position: absolute; right: 22px; top: 22px; width: 56px; height: 66px; padding: 8px 7px 14px; border: 2px dashed; border-radius: 6px; background: #ffffff8c; }
.postmark { position: absolute; right: 8px; top: 52px; width: 62px; height: 62px; border: 2px solid; border-radius: 50%; display: grid; place-items: center; text-align: center;
  font: 800 9px/1.1 var(--mono); letter-spacing: 1px; opacity: .28; transform: rotate(-16deg); }
.postcard-title { font: 700 30px/1.06 var(--serif); letter-spacing: -.5px; padding-right: 74px; overflow-wrap: anywhere; margin-top: 2px; }
.postcard-title.long { font-size: 24px; }
.postcard-message { margin: 0; font: italic 17px/1.4 var(--serif); opacity: .9; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.postcard-foot { margin-top: auto; white-space: nowrap; display: flex; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1.5px dashed currentColor; font: 600 10px var(--mono); letter-spacing: .4px; opacity: .8; }
.outbox-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 18px; }
.outbox-head span { font: 600 11px var(--mono); color: #9b7d72; }
.outbox-empty { margin: 0; padding: 16px; border-radius: 14px; border: 1.5px dashed #ecc9b6; color: #8e6a5e; line-height: 1.5; font-size: 13px; }
.outbox-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.outbox-item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; background: white; border: 1px solid #f1dfd3; }
.outbox-thumb { width: 44px; height: 44px; border-radius: 10px; padding: 9px; }
.outbox-text { display: flex; flex-direction: column; min-width: 0; }
.outbox-text strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.outbox-text small { font: 600 10px var(--mono); color: #9b7d72; }
.outbox-item button { font-size: 12px; padding: 6px 9px; }

.layer-map { margin: auto 0 0; padding: 14px; border-radius: 14px; background: #fff1e6; display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.layer-map dt { font: 700 10px var(--mono); letter-spacing: 1.4px; text-transform: uppercase; color: #9b6a55; margin-bottom: 2px; }
.layer-map dd { margin: 0; display: flex; align-items: center; gap: 8px; font: 600 11.5px var(--mono); color: #4a3038; }
.layer-map dd small { margin-left: auto; font: 600 10px var(--display); color: #a07f72; }
.layer-map b { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.tone-native { background: #6d4aff; } .tone-deco { background: repeating-linear-gradient(45deg, #e5604f 0 2px, #ffd0bd 2px 4px); }

/* Card deck */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.stats div { padding: 10px 12px; border-radius: 12px; background: #f5f1fb; }
.stats dt { font: 700 10px var(--mono); letter-spacing: .6px; text-transform: uppercase; color: #8a8199; }
.stats dd { margin: 2px 0 0; font-size: 26px; font-weight: 800; letter-spacing: -1px; color: #2a1e48; }
.deck-art-frame { flex: none; height: 150px; border-radius: 22px 22px 0 0; overflow: hidden; }
.deck-art { display: block; }
.deck-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 18px 16px; flex: 1; min-height: 0; overflow: hidden; }
.deck-note { font: 700 10px var(--mono); letter-spacing: 1.6px; text-transform: uppercase; color: #8d849c; }
.deck-title { font: 700 20px/1.1 var(--serif); letter-spacing: -.3px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.deck-actions { margin-top: auto; display: flex; }
.stage .like { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 99px; padding: 7px 13px; background: #f2eef7; color: #5b4c72; font-size: 13px; }
.stage .like.liked { background: #ffe1ec; color: #d6336c; }
.stage .like:not(:disabled):hover { background: #ffd3e3; }

/* Shader lab */
.preset-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.preset-grid .wide { grid-column: span 4; background: linear-gradient(135deg, #ff4f8b, #6d4aff 60%, #19c3b1) !important; color: white !important; border-color: transparent !important; }
.preset-grid button { padding: 8px 4px; font-size: 12px; }
.chain { display: flex; flex-direction: column !important; flex-wrap: nowrap !important; gap: 8px !important; padding: 12px !important; border-radius: 14px; background: #1b1d3d; border: 1px solid #34366a !important; }
.effect-row { display: grid; grid-template-columns: 104px minmax(0, 1fr) 38px; gap: 8px; align-items: center; opacity: .62; }
.effect-row.on { opacity: 1; }
.effect-row .count { text-align: right; }
.check.clock { margin-top: 4px; padding-top: 10px; border-top: 1px solid #34366a; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px !important; font-weight: 700 !important; }
.check input { width: 16px; height: 16px; margin: 0; accent-color: #5ee1d0; }
.check.riso input { accent-color: #e5604f; }
.placard-kicker { font: 700 10px var(--mono); letter-spacing: 2px; color: #6d4aff; }
.placard-title { font: 700 28px/1.1 var(--serif); letter-spacing: -.4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.placard-chain { font: 600 12px var(--mono); color: #5b5578; }

/* Notification stack */
.kind-choice { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 99px; border: 1.5px solid #e2dbeb; font-size: 12px !important; }
.kind-choice input { appearance: none; position: absolute; inset: 0; margin: 0; border-radius: 99px; cursor: pointer; }
.kind-choice:has(input:checked) { border-color: #2a1e48; background: #f3eefc; }
.kind-dot { width: 10px; height: 10px; border-radius: 50%; }
.toast { position: absolute; inset: 4px; display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 4px 12px; padding: 12px 14px;
  border-radius: 20px; background: #fffffff2; color: #221a38; box-shadow: 0 6px 14px #1a0c3a40; border-left: 5px solid var(--tint); }
.toast-icon { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--tint); color: white; font-weight: 800; font-size: 18px; }
.toast-text { display: flex; flex-direction: column; min-width: 0; font-size: 12px; line-height: 1.35; }
.toast-text strong { font-size: 13px; }
.toast-text span { color: #5b5272; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage .toast-close { justify-self: end; font-size: 11px; padding: 4px 10px; border-radius: 99px; background: #f1ecf8; border-color: transparent; }
.log-head { display: flex; flex-direction: column; gap: 2px; font-size: 18px; }
.log-head span { font: 600 11px var(--mono); color: #8a7fa6; }
.log-empty { margin: 0; padding: 14px; border-radius: 14px; border: 1.5px dashed #d9cdf0; color: #7a6f94; line-height: 1.5; }
.log-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.log-list li { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 9px 11px; border-radius: 12px; background: white; border: 1px solid #ebe3f7; }
.log-list time { font: 600 11px var(--mono); color: #8a7fa6; }
.log-list span { font-weight: 650; }
.log-list small { grid-column: 2; font: 600 11px var(--mono); color: #0d8a6a; }

/* Reused TodoApp: light touch on its native inputs (component untouched) */
.stage #todo-controls input:not([type="checkbox"]), .stage #todo-detail input:not([type="checkbox"]), .stage #todo-detail textarea {
  border: 1px solid #a9c8b5; border-radius: 6px; padding: 2px 6px; background: white; }

/* ---------- Footer ---------- */
footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-block: 32px; border-top: 1px solid var(--rule); color: var(--dim); font-size: 14px; }
footer > span:first-child { display: inline-flex; align-items: center; gap: 12px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }

/* ---------- Responsive ---------- */
/* A stage is 1040 px wide, in a frame with 8 px around it and the page's margins: under this the stage scrolls sideways. */
@media (max-width: 1127px) { .stage-chrome .scroll-hint { display: inline; } }
@media (max-width: 1000px) {
  .example-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .site-header, .studio, main, footer { padding-inline: 14px; }
  /* One row from about 360 px; narrower, the links go under the brand rather than past the edge. */
  .site-header { min-height: 56px; flex-wrap: wrap; gap: 6px 12px; padding-block: 10px; }
  .site-header nav { gap: 14px; }
  .site-header nav a { white-space: nowrap; }
  .tag { display: none; }
  .brand { font-size: 17px; gap: 10px; }
  h1 { letter-spacing: -.03em; margin: 12px 0 12px; }
  .gallery { padding-block: 8px 48px; }
  .gallery-lede { font-size: 15px; }
  .gallery-group { padding-top: 28px; }
  .example-grid { grid-template-columns: 1fr; }
  /* The bar stays one row: the back link is its arrow, and the steps are the card under the stage. */
  .studio-bar { gap: 8px; }
  .bar-back { padding: 0; width: 36px; justify-content: center; }
  .bar-back span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .bar-pick { flex: 1 1 0; }
  .bar-steps { display: none; }
  .studio-head { padding-top: 14px; }
  .studio-head .eyebrow { font-size: 11px; }
  .status-row { flex-direction: column; gap: 6px; }
  .diagnostic { padding-top: 0; }
  .why-gpu { grid-template-columns: 1fr; }
  .studio-next { grid-template-columns: 1fr; }
  .all-examples { justify-self: start; }
  footer { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .example-card { transition: none; }
  .example-card:hover { transform: none; }
}

/* Webcam pond */
.backdrop-pond .backdrop-glow { background: radial-gradient(700px 500px at 66% 50%, #1d5b4b, transparent 75%), radial-gradient(360px 260px at 8% 100%, #2c5a2e88, transparent 70%); }
.backdrop-pond .backdrop-grain { background-image: radial-gradient(#ffffff0e 1px, transparent 1px); }
.privacy { margin: 0; padding: 12px 14px; border-radius: 14px; background: #10303a; border: 1px solid #2b5d66; font-size: 12.5px; line-height: 1.55; color: #cfeff0; }
.privacy strong { color: #8ff0d8; }
.pond { position: absolute; inset: 0; overflow: hidden; }
.pond-floor { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 45%, #3f8d84, #1d5a57 55%, #0e3536 100%); }
.pond-floor i { position: absolute; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #c9c2a8, #7d7764 70%); opacity: .55; }
.pond-floor i:nth-child(1) { left: 8%; top: 70%; width: 90px; height: 64px; }
.pond-floor i:nth-child(2) { left: 22%; top: 78%; width: 54px; height: 40px; }
.pond-floor i:nth-child(3) { left: 78%; top: 12%; width: 110px; height: 80px; }
.pond-floor i:nth-child(4) { left: 64%; top: 82%; width: 70px; height: 50px; }
.pond-floor i:nth-child(5) { left: 4%; top: 14%; width: 60px; height: 46px; }
.pond-floor i:nth-child(6) { left: 46%; top: 6%; width: 40px; height: 30px; }
.pond-floor i:nth-child(7) { left: 86%; top: 56%; width: 48px; height: 36px; }
.pond-message { position: absolute; left: 40px; right: 40px; top: 46%; margin: 0; text-align: center; font: 600 38px/1.2 Georgia, "Times New Roman", serif; letter-spacing: .5px; color: #a7e3d6; opacity: .78; text-shadow: 0 2px 0 #0b3433, 0 0 18px #0b343399; }
.koi { position: absolute; width: 0; height: 0; transition: left 1.6s ease-in-out, top 1.6s ease-in-out; }
.koi i { position: absolute; left: -26px; top: -10px; width: 52px; height: 20px; border-radius: 55% 40% 40% 55%;
  background: linear-gradient(90deg, hsl(var(--hue) 95% 58%), #fff7ee 55%, hsl(var(--hue) 90% 55%));
  transform: rotate(var(--angle)) scale(var(--size)); transition: transform .5s ease; box-shadow: 0 6px 12px #021c1c88;
  animation: koi-swim .9s ease-in-out infinite alternate; }
.koi i::after { content: ""; position: absolute; left: -12px; top: 3px; width: 16px; height: 14px; background: hsl(var(--hue) 90% 60%); clip-path: polygon(100% 50%, 0 0, 0 100%); }
@keyframes koi-swim { from { translate: 0 -1.5px; } to { translate: 0 1.5px; } }
.pond-reflection { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); mix-blend-mode: screen; filter: saturate(.7) contrast(1.1);
  mask-image: linear-gradient(#000 0%, #000c 55%, #0005 100%); transition: opacity .4s ease; }
.pond-sky { position: absolute; inset: 0; background: radial-gradient(70px 70px at 72% 22%, #f6f1d8, #f6f1d800 70%), linear-gradient(#5f8fa4aa, #0000 60%); mix-blend-mode: screen; transition: opacity .4s ease; }
/* No outer shadow: a layer captures only its own box, so ink outside it would be cut off. */
.lily-pad { border: 2px solid #8fd08a; }
.lily-pad .pad-label { font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; opacity: .85; }
.lily-pad button { padding: 9px 14px; border-radius: 999px; border: 0; background: #f4ffe9; color: #1e4d26; font-weight: 800; font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .koi, .koi i { transition: none; animation: none; } }

/* Pond X-ray: label the plain HTML under the water (it is still refracted by the shader). */
.check.xray input { accent-color: #ffe9a8; }
.html-tag { position: absolute; left: 16px; top: -30px; padding: 3px 6px; border-radius: 5px; white-space: nowrap;
  font: 700 11px/1 ui-monospace, "Cascadia Code", monospace; color: #fff6d0; background: #072626d9; border: 1px solid #ffe9a866; }
.video-tag { left: 18px; top: 18px; }
.xray .koi i { outline: 2px dashed #ffe9a8; outline-offset: 3px; }
.xray .pond-message { outline: 2px dashed #ffe9a877; outline-offset: 6px; }
.xray .pond-message::before { content: "<p>"; position: absolute; left: 0; top: -34px; padding: 3px 6px; border-radius: 5px;
  font: 700 11px/1 ui-monospace, "Cascadia Code", monospace; color: #fff6d0; background: #072626d9; text-shadow: none; letter-spacing: 0; }
.xray .pond-floor i { outline: 2px dashed #ffe9a855; }
.xray .pond-floor i::before { content: "<i>"; position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  font: 700 10px/1 ui-monospace, "Cascadia Code", monospace; color: #fff6d0; }

/* Visitors without HTML-in-Canvas */
.gpu-help { display: grid; gap: 16px; margin: 16px 0 4px; padding: 20px 22px; border-radius: 14px; border: 1px solid var(--rule-strong);
  background: linear-gradient(180deg, var(--panel-raised), var(--panel)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 6%); }
.gpu-help h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.gpu-help p, .gpu-help li { font-size: 14px; line-height: 1.6; color: var(--dim); margin: 0; }
.gpu-help strong { color: var(--text); font-weight: 600; }
.gpu-help a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--signal); }
.gpu-help a:hover { color: var(--signal); }
.gpu-help ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.gpu-help .gpu-help-flags { margin-top: 12px; }
.gpu-help ul { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.gpu-help code { padding: 2px 6px; border-radius: 6px; border: 1px solid var(--rule); background: var(--ground); font-size: 12.5px; color: var(--text); }
.gpu-help .copy { margin: 0 6px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--rule-strong); background: none; font: 11px/1.6 var(--mono); color: var(--dim); }
.gpu-help .copy:hover { border-color: var(--text); color: var(--text); }
.preview-toggle { min-height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--rule-strong); background: none; font-weight: 600; font-size: 13px; }
.preview-toggle:hover { border-color: var(--text); }
.gpu-help-preview img { display: block; width: 100%; height: auto; margin-top: 12px; border-radius: 8px; border: 1px solid var(--rule); }
/* The opt-in polyfill: the offer in the help panel, and the note shown while GPU mode runs on it. */
.polyfill-offer { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule); display: grid; gap: 8px; justify-items: start; }
.polyfill-offer h4 { margin: 0; font-size: 15px; font-weight: 600; }
.polyfill-offer button { min-height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--signal-rule); background: var(--signal-wash); font-weight: 600; font-size: 13px; }
.polyfill-offer button:not(:disabled):hover { border-color: var(--signal); }
.polyfill-off { font-style: italic; }
.polyfill-note { margin: 14px 0 0; padding: 12px 16px; border-radius: 8px; border: 1px solid var(--rule-strong); background: rgb(255 255 255 / 2.5%); color: var(--dim); font-size: 13.5px; line-height: 1.6; }
.polyfill-note strong { color: var(--text); font-weight: 600; }
.polyfill-note a { color: var(--text); font-weight: 600; }
.diagnostic-text details { margin-top: 4px; font-size: 12px; color: var(--quiet); }
.diagnostic-text details code { display: block; margin-top: 4px; white-space: pre-wrap; word-break: break-word; }

/* Fluent release board. Each layer holds its own FluentProvider; Fluent styles the controls. */
.backdrop-fluent .backdrop-glow { background: radial-gradient(560px 420px at 70% 30%, #c7d7fb, transparent 70%), radial-gradient(420px 320px at 0% 100%, #e2dcfa, transparent 70%); }
.fluent-fill { width: 100%; height: 100%; box-sizing: border-box; }
.stage .fluent-clear { background-color: transparent; }
.fl-panel { display: flex; flex-direction: column; gap: 12px; height: 100%; box-sizing: border-box; padding: 20px; }
.fl-panel header { display: flex; flex-direction: column; gap: 2px; }
.fl-panel h3 { margin: 0; }
.fl-eyebrow { color: var(--colorBrandForeground1); font-weight: 600; letter-spacing: 1px; }
.fl-form { display: flex; flex-direction: column; gap: 10px; }
.fl-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fl-pair .fui-Dropdown { min-width: 0; }
.fl-feedback { display: block; margin-top: auto; padding: 10px 12px; border-radius: var(--borderRadiusLarge); background: var(--colorNeutralBackground3);
  color: var(--colorNeutralForeground2); font-size: var(--fontSizeBase200); line-height: var(--lineHeightBase200); min-height: 52px; box-sizing: border-box; }
.fl-lanes { display: grid; grid-template-columns: repeat(3, 220px); gap: 8px; height: 100%; padding: 0 4px; box-sizing: border-box; }
.fl-lane { display: flex; align-items: flex-start; justify-content: space-between; padding: 14px 12px; border-radius: 18px;
  background: #ffffffa6; border: 1.5px dashed #b9c4dc; color: var(--colorNeutralForeground1); }
.fl-lane.is-target { background: #e6efff; border: 1.5px solid var(--colorBrandStroke1); }
.fl-card-layer { user-select: none; }
.fl-card { width: 100%; height: 100%; box-sizing: border-box; gap: 6px; }
.fl-card-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.fl-card-title { flex: 1; min-width: 0; }
.fl-grip { touch-action: none; cursor: grab; }
.fl-poster { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 28px;
  background: radial-gradient(420px 220px at 85% 0%, #5b5fc7aa, transparent 70%), radial-gradient(360px 200px at 0% 100%, #0f6cbd99, transparent 70%), linear-gradient(120deg, #1b1d40, #262a5c); }
.fl-poster-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.fl-poster-kicker { letter-spacing: 1.5px; color: #b9c6ff; }
.fl-poster-title { font: 800 34px/1.05 var(--display); letter-spacing: -1px; color: white; }
.fl-poster-progress { max-width: 360px; }
.fl-poster-side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.stage .fl-card-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left;
  font-weight: var(--fontWeightSemibold); color: var(--colorNeutralForeground1); }
.fl-card-progress { flex: 1; }
.fl-editor { display: flex; flex-direction: column; gap: 12px; height: 100%; box-sizing: border-box; padding: 18px 20px; }
.fl-editor header { display: flex; align-items: flex-start; justify-content: space-between; }
.fl-editor h3 { margin: 0; }
.fl-editor .fl-pair { align-items: start; }
.fl-editor-actions { display: flex; justify-content: flex-end; margin-top: auto; }
.fl-editor-title { display: flex; flex-direction: column; gap: 2px; }

/* GPU or CSS? */
.backdrop-compare .backdrop-glow { background: radial-gradient(420px 380px at 50% 50%, #ff6b4a26, transparent 70%), radial-gradient(420px 380px at 84% 50%, #19c3b126, transparent 70%); }
.backdrop-compare .backdrop-grain { background-image: radial-gradient(#ffffff10 1px, transparent 1px); }
.panel .chip { position: relative; display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 9px; border: 1px solid #44477a; background: #2a2c55;
  font-size: 12px !important; font-weight: 700 !important; cursor: pointer; }
.panel .chip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.panel .chip.on { background: #5ee1d0; border-color: #5ee1d0; color: #0b1020; }
.panel .chip:has(input:focus-visible) { outline: 3px solid #5ee1d0; outline-offset: 2px; }
.panel .chip:has(input:disabled) { opacity: .55; cursor: default; }
.compare-picker, .compare-run { gap: 6px !important; }
.range-head { display: flex; justify-content: space-between; }
.meter { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 12px; background: #12132c; border: 1px solid #34366a; font: 600 12px var(--mono); color: #9a96c4; }
.meter strong { color: #ecebff; font-size: 14px; }
.meter-head { display: flex; justify-content: space-between; align-items: center; font: 750 12px var(--display); color: #ecebff; }
.panel .meter-head button { padding: 5px 10px; font-size: 12px; }
.meter-live { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; white-space: nowrap; }
.meter-result { font-size: 11px; line-height: 1.4; color: #c9c6ef; }
.compare-strip { color: #ecebff; }
.compare-strip > div { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 16px; border-radius: 16px; background: #1b1a33; border: 1px solid #2f2d55; }
.compare-heads strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-label, .work-label { font: 800 10px var(--mono); letter-spacing: 2px; }
.side-label.css { color: #ff9a7a; }
.side-label.gpu { color: #5ee1d0; }
.work-label { color: #8a86b8; }
.work-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.work-time { font: 600 11px var(--mono); color: #8a86b8; white-space: nowrap; }
.work-time strong { margin-right: 6px; font-size: 15px; color: #ecebff; }
.work-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.work-chips span { font: 600 11px var(--mono); padding: 3px 7px; border-radius: 6px; background: #2a2950; color: #d8d5ff; }
.work-chips .extra { background: #4a2a35; color: #ffc0b0; }
.cmp-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.cmp-tiles { position: absolute; left: 22px; top: 16px; display: grid; grid-template-columns: repeat(8, 24px); grid-auto-rows: 24px; gap: 12px; }
.cmp-tiles i { display: block; border-radius: 3px; }
.cmp-tiles.run i { animation: cmp-tile 2.4s ease-in-out infinite; animation-delay: calc(var(--d) * -0.144s); }
@keyframes cmp-tile { 0%, 100% { border-radius: 3px; box-shadow: 0 0 0 0 #5ee1d000; } 50% { border-radius: 12px; box-shadow: 0 0 14px 3px #5ee1d0d9; } }
.cmp-filtered, .cmp-split, .cmp-copy { position: absolute; inset: 0; }
.cmp-split { background: #000; isolation: isolate; }
.cmp-copy { mix-blend-mode: screen; }
.cmp-card { position: absolute; inset: 24px; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: #f7f3ff; color: #1b1630; }
.cmp-photo { position: relative; flex: none; height: 190px; overflow: hidden; background: linear-gradient(180deg, #ff9a7a, #ffcf8a 60%, #ffe8c2); }
.cmp-photo i { position: absolute; display: block; }
.cmp-photo .sun { left: 50%; top: 46px; width: 86px; height: 86px; margin-left: -43px; border-radius: 50%; background: radial-gradient(circle, #fff6d8, #ffd27a 70%); }
.cmp-photo .hill { bottom: -60px; width: 260px; height: 140px; border-radius: 50%; }
.cmp-photo .hill.one { left: -50px; background: #5b8f6a; }
.cmp-photo .hill.two { right: -70px; bottom: -70px; background: #3d6d55; }
.cmp-card-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; }
.cmp-kicker { font: 800 10px var(--mono); letter-spacing: 2px; color: #6d4aff; }
.cmp-clock { font: 700 40px/1 var(--mono); letter-spacing: -1px; }
.cmp-card-body p { margin: 0; font-size: 13px; line-height: 1.5; color: #4d4660; }
.cmp-tags { display: flex; gap: 6px; }
.cmp-tags span { font: 600 11px var(--mono); padding: 3px 8px; border-radius: 6px; background: #ebe4fb; }
.cmp-cells { position: absolute; left: 16px; top: 16px; display: grid; grid-template-columns: repeat(36, 7px); grid-auto-rows: 7px; gap: 1px; }
.cmp-cells i { display: block; }
/* Same mapping as the colour-map shader: cold ramp, hot ramp above the moving threshold --t. */
.cmp-cells.css i { background: color-mix(in srgb,
  color-mix(in srgb, rgb(255,230,89) calc(var(--v) * 100%), rgb(255,115,26)) calc(clamp(0, (var(--v) - var(--t)) * 40, 1) * 100%),
  color-mix(in srgb, rgb(51,140,255) calc(var(--v) * 100%), rgb(18,26,61))); }
.cmp-glass { position: absolute; inset: 0; overflow: hidden; }
.cmp-glass .blob { position: absolute; display: block; width: 180px; height: 180px; border-radius: 50%; }
.cmp-glass .blob.one { left: 10px; top: 40px; background: #ff6b4a; }
.cmp-glass .blob.two { right: -20px; top: 160px; background: #6d4aff; }
.cmp-glass .blob.three { left: 70px; bottom: 30px; background: #19c3b1; }
.cmp-glass.run .blob.one { animation: cmp-blob-one 6s ease-in-out infinite alternate; }
.cmp-glass.run .blob.two { animation: cmp-blob-two 7s ease-in-out infinite alternate; }
.cmp-glass.run .blob.three { animation: cmp-blob-three 5s ease-in-out infinite alternate; }
@keyframes cmp-blob-one { to { transform: translate(120px, 160px) scale(1.2); } }
@keyframes cmp-blob-two { to { transform: translate(-150px, 90px) scale(.8); } }
@keyframes cmp-blob-three { to { transform: translate(60px, -230px) scale(1.1); } }
.pane-glass { position: absolute; left: 28px; right: 28px; top: 150px; display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 20px;
  background: #ffffff26; border: 1px solid #ffffff4d; backdrop-filter: blur(var(--blur)) saturate(1.4); color: white; }
.pane-glass strong { font-size: 24px; }
.pane-glass p { margin: 0; font-size: 13px; line-height: 1.5; }
.pane-glass .cmp-kicker { color: white; opacity: .8; }

/* ---------- 09 Strata gallery ---------- */
/* The gallery's two panels, placed on the stage; the bar's controls sit in a row. Gaps are Strata's (section 13). */
.stage .strata-bar { position: absolute; left: 20px; top: 20px; width: 1000px; }
.stage .strata-bar .ug-app-bar__end { display: flex; gap: var(--strata-gap-control); align-items: center; }
.stage .strata-title { margin: 0; font-size: inherit; }
.stage .strata-gallery { position: absolute; left: 20px; top: 104px; width: 1000px; height: 576px; overflow: hidden; }
.strata-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding-top: 16px; }
.strata-columns > div { display: flex; flex-direction: column; gap: var(--strata-gap-group); min-width: 0; }
.strata-group { display: flex; flex-direction: column; align-items: flex-start; gap: var(--strata-gap-control); }
.strata-group h4 { margin: 0; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; opacity: .75; }
.strata-group > p { margin: 0; }
.strata-group > :is(.ug-field, .ug-stepper) { align-self: stretch; }
/* The Structure tab: the rail and the tree side by side. */
.strata-columns > .strata-structure { flex-direction: row; align-items: flex-start; }
.strata-structure > .ug-tree { flex: 1; }

/* ---------- 10 Instrument gallery ---------- */
/* The stage of this example is fluid: the panels flow on a wall the width of the screen, so the page reflows down to 320 px. Its height
   is explicit, set by the page from what the panels hold (`--ig-stage-height`): with GPU on, the content lives in the canvas, which is as
   tall as the stage and cannot take its height from the content. */
.stage.stage-fluid { width: 100%; height: var(--ig-stage-height, 640px); container: igstage / inline-size; }
.stage-fluid .app-container { padding: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 16px; align-items: start; }
.stage-fluid .ig-wall { position: absolute; inset: 0; background: var(--strata-colour-stage); }
.stage-fluid .ig-bar, .stage-fluid .ig-content { position: relative; margin: 0; min-width: 0; }
.stage-fluid .ig-bar, .stage-fluid .ig-wide { grid-column: 1 / -1; }
/* Page rules that would reach into the panels (headings, code) keep Strata's look. */
.stage .ug-panel h2 { font-size: var(--strata-font-size-title, 18px); line-height: 1.25; letter-spacing: normal; margin: 0 0 var(--strata-gap-control, 8px); }
.stage .ug-panel h3 { margin: 0; font-size: var(--strata-font-size-subtitle, 16px); }
.stage .ug-panel code { background: none; padding: 0; color: inherit; }
.ig-lede { margin: 0 0 var(--strata-gap-group, 16px); max-width: 70ch; color: var(--strata-colour-muted); font-size: var(--strata-font-size-small, 13px); line-height: 1.5; }
.ig-switches { display: flex; flex-wrap: wrap; gap: var(--strata-gap-control, 8px) var(--strata-gap-group, 16px); align-items: center; margin-bottom: var(--strata-gap-group, 16px); }
.ig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: var(--strata-gap-group, 20px) 28px; align-items: start; }
.ig-entry { display: flex; flex-direction: column; gap: var(--strata-gap-control, 8px); min-width: 0; padding-top: var(--strata-gap-control, 8px); border-top: 1px solid var(--strata-colour-edge); }
.ig-summary, .ig-native { margin: 0; color: var(--strata-colour-muted); font-size: var(--strata-font-size-small, 13px); line-height: 1.5; }
.ig-native { overflow-wrap: anywhere; }
.ig-live { display: flex; flex-direction: column; gap: var(--strata-gap-group, 16px); align-items: flex-start; min-width: 0; padding-top: var(--strata-gap-control, 8px); }
.ig-row { display: flex; flex-wrap: wrap; gap: var(--strata-gap-group, 16px) 20px; align-items: flex-end; }
.ig-col { display: flex; flex-direction: column; gap: var(--strata-gap-group, 16px); align-items: flex-start; }
.ig-pending .ig-summary { font-style: italic; }
.ig-notes { display: flex; flex-direction: column; gap: var(--strata-gap-group, 20px); max-width: 78ch; }
.ig-notes p { margin: var(--strata-gap-control, 8px) 0 0; line-height: 1.55; }
/* The synthesiser voice: one panel. The container decides the columns, not the viewport. */
.syn { container-type: inline-size; display: flex; flex-direction: column; gap: var(--strata-gap-group, 20px); min-width: 0; }
.syn-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--strata-gap-group, 20px); align-items: center; }
.syn-screen { display: flex; flex-direction: column; gap: var(--strata-gap-control, 8px); min-width: 0; }
.syn-caption, .syn-readout { margin: 0; color: var(--strata-colour-muted); font-size: var(--strata-font-size-small, 13px); }
.syn-power { display: flex; flex-direction: column; gap: var(--strata-gap-control, 8px); align-items: flex-start; }
.syn-body { display: flex; flex-wrap: wrap; gap: var(--strata-gap-group, 20px) 36px; align-items: flex-start; min-width: 0; }
.syn-row { display: flex; flex-wrap: wrap; gap: var(--strata-gap-group, 16px) 24px; align-items: center; }
.syn-legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.syn-group { display: flex; flex-direction: column; gap: var(--strata-gap-control, 10px); align-items: flex-start; min-width: 0; max-width: 100%; padding-top: var(--strata-gap-control, 8px); border-top: 1px solid var(--strata-colour-edge); }
.syn-group h3 { font-size: var(--strata-font-size-caption, 12px); letter-spacing: .08em; text-transform: uppercase; color: var(--strata-colour-muted); }
.syn-faders { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-end; }
.syn-out { align-items: flex-start; }
.syn-foot { display: flex; flex-wrap: wrap; gap: var(--strata-gap-group, 20px); align-items: center; border-top: 1px solid var(--strata-colour-edge); padding-top: var(--strata-gap-group, 16px); }
.syn-foot .syn-readout { flex: 1 1 12ch; }
@container (max-width: 420px) { .syn-head { grid-template-columns: minmax(0, 1fr); } .syn-body { column-gap: 12px; } .syn-faders { column-gap: 12px; } }
/* A wide stage lays the voice out as a rack: the master across the top, then the sound beside the output and the modulation. */
@container igstage (min-width: 1000px) {
  .stage-fluid .app-container { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; }
  .stage-fluid .ig-syn-master { grid-column: 1 / -1; }
  .stage-fluid .ig-syn-sound { grid-column: 2; grid-row: span 2; }
  .stage-fluid .ig-syn-output, .stage-fluid .ig-syn-patch { grid-column: 1; }
  .stage-fluid .ig-syn-pads { grid-column: 1 / -1; }
}
/* A phone: the page chrome gives the stage nearly all the width, and the panels give their content nearly all of the stage's. */
@media (max-width: 600px) {
  .studio:has(.stage-fluid) { padding-inline: 8px; }
  .stage-frame:has(.stage-fluid) { padding: 4px; border-radius: 10px; }
  .stage-frame:has(.stage-fluid) .stage-chrome { padding: 2px 8px 6px; }
  .stage-frame:has(.stage-fluid) .stage-scroll { border-radius: 6px; }
  .stage-fluid .app-container { padding: 8px; gap: 8px; }
  /* The stage is one canvas, at most 8,192 device px tall on most GPUs: the intro goes, and one content panel of a group is on the stage at
     a time (`instrument.tsx`: the bar's Panel switch). */
  .stage-fluid .ig-lede { display: none; }
  .ig-pages { margin-top: var(--strata-gap-group, 16px); }
  .ig-notes [hidden] { display: none; }
  .stage-fluid .ug-panel { padding: 12px; }
}
.ig-note { margin: 0; color: var(--strata-colour-muted); font-size: var(--strata-font-size-small, 13px); }
