/* Fluent material and control tokens, scoped to the suite. */
.fluent-theme,
[data-fluent-theme] {
  color-scheme: light;
  --fluent-bg: #f3f3f3;
  --fluent-surface: #fafafa;
  --fluent-mica: rgba(243, 243, 243, 0.88);
  --fluent-acrylic: rgba(252, 252, 252, 0.92);
  --fluent-text: #1b1b1b;
  --fluent-muted: #5d5d5d;
  --fluent-accent: #0067c0;
  --fluent-accent-hover: color-mix(in srgb, var(--fluent-accent) 90%, #000);
  --fluent-accent-pressed: color-mix(in srgb, var(--fluent-accent) 80%, #000);
  --fluent-accent-text: #ffffff;
  --fluent-accent-link: color-mix(in srgb, var(--fluent-accent) 85%, #000);
  --fluent-focus-outer: var(--fluent-text);
  --fluent-focus-inner: var(--fluent-bg);
  --fluent-control: #ffffff;
  --fluent-control-hover: #f6f6f6;
  --fluent-control-pressed: #ebebeb;
  --fluent-border: rgba(0, 0, 0, 0.14);
  --fluent-selection: #e6e6e6;
  --fluent-danger: #c42b1c;
  --fluent-danger-hover: #b9271a;
  --fluent-danger-pressed: #a52116;
  --fluent-danger-text: #ffffff;
  --fluent-button-edge: color-mix(in srgb, var(--fluent-border), #000 12%);
  --fluent-button-highlight: none;
  --fluent-input-invalid: #c42b1c;
  --fluent-success: #0f7b45;
  --fluent-warning: #9d5d00;
  --fluent-control-solid: #ffffff;
  --fluent-control-strong: rgba(0, 0, 0, 0.447);
  --fluent-control-strong-disabled: rgba(0, 0, 0, 0.318);
  --fluent-control-alt: rgba(0, 0, 0, 0.024);
  --fluent-accent-disabled: rgba(0, 0, 0, 0.216);
  --fluent-shadow: 0 8px 28px rgba(0, 0, 0, 0.16), 0 0 1px rgba(0, 0, 0, 0.2);
  --fluent-font:
    "Segoe UI Variable Text", "Segoe UI", system-ui, "Noto Sans SC", sans-serif;
  font: 14px/1.5 var(--fluent-font);
  color: var(--fluent-text);
}
/* Preference defaults apply only to the outermost theme so nested themes inherit unset preferences. */
:where(.fluent-theme, [data-fluent-theme]):not(:where(.fluent-theme, [data-fluent-theme]) *) {
  --fluent-radius: 4px;
  --fluent-panel-radius: 8px;
  --fluent-motion-scale: 1;
  --fluent-ease: cubic-bezier(0, 0, 0, 1);
  --fluent-ease-accelerate: cubic-bezier(0.9, 0.1, 1, 0.2);
  --fluent-indicator-motion: slide;
  --fluent-page-transition: entrance;
}
[data-fluent-theme="dark"] {
  color-scheme: dark;
  --fluent-bg: #202020;
  --fluent-surface: #292929;
  --fluent-mica: rgba(32, 32, 32, 0.88);
  --fluent-acrylic: rgba(44, 44, 44, 0.92);
  --fluent-text: #f4f4f4;
  --fluent-muted: #c4c4c4;
  --fluent-accent: #4cc2ff;
  --fluent-accent-hover: color-mix(in srgb, var(--fluent-accent) 90%, #fff);
  --fluent-accent-pressed: color-mix(in srgb, var(--fluent-accent) 80%, #000);
  --fluent-accent-link: color-mix(in srgb, var(--fluent-accent) 45%, #fff);
  --fluent-accent-text: #003544;
  --fluent-control: #373737;
  --fluent-control-hover: #414141;
  --fluent-control-pressed: #303030;
  --fluent-border: rgba(255, 255, 255, 0.16);
  --fluent-selection: #3b3b3b;
  --fluent-danger: #ff99a4;
  --fluent-danger-hover: #ffb7bf;
  --fluent-danger-pressed: #e68b95;
  --fluent-danger-text: #000000;
  --fluent-button-edge: var(--fluent-border);
  --fluent-button-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --fluent-input-invalid: #ff99a4;
  --fluent-success: #6ccb5f;
  --fluent-warning: #fce100;
  --fluent-control-solid: #454545;
  --fluent-control-strong: rgba(255, 255, 255, 0.545);
  --fluent-control-strong-disabled: rgba(255, 255, 255, 0.247);
  --fluent-control-alt: rgba(0, 0, 0, 0.098);
  --fluent-accent-disabled: rgba(255, 255, 255, 0.157);
  --fluent-shadow:
    0 8px 28px rgba(0, 0, 0, 0.36), 0 0 1px rgba(255, 255, 255, 0.2);
}

/* Durations are re-derived wherever the scale can change, because a custom property resolves var() where it is declared. */
.fluent-theme,
[data-fluent-theme],
[data-fluent-speed],
[data-fluent-reduced-motion] {
  --fluent-faster: calc(83ms * var(--fluent-motion-scale));
  --fluent-fast: calc(167ms * var(--fluent-motion-scale));
  --fluent-normal: calc(250ms * var(--fluent-motion-scale));
}
[data-fluent-speed="faster"] { --fluent-motion-scale: 0.5; }
[data-fluent-speed="fast"] { --fluent-motion-scale: 0.75; }
[data-fluent-speed="normal"] { --fluent-motion-scale: 1; }
[data-fluent-speed="slow"] { --fluent-motion-scale: 1.5; }
[data-fluent-speed="slower"] { --fluent-motion-scale: 2; }

[data-fluent-curve="decelerate-max"] { --fluent-ease: cubic-bezier(0.1, 0.9, 0.2, 1); }
[data-fluent-curve="decelerate-mid"] { --fluent-ease: cubic-bezier(0, 0, 0, 1); }
[data-fluent-curve="decelerate-min"] { --fluent-ease: cubic-bezier(0.33, 0, 0.1, 1); }
[data-fluent-curve="easy-ease"] { --fluent-ease: cubic-bezier(0.33, 0, 0.67, 1); }
[data-fluent-curve="easy-ease-max"] { --fluent-ease: cubic-bezier(0.8, 0, 0.2, 1); }
[data-fluent-curve="ease"] { --fluent-ease: cubic-bezier(0.25, 0.1, 0.25, 1); }
[data-fluent-curve="linear"] { --fluent-ease: linear; }
/* Damped spring (damping ratio 0.62) sampled at 25 points; it overshoots by about 8%. */
[data-fluent-curve="spring"] {
  --fluent-ease: linear(0, 0.079, 0.259, 0.472, 0.672, 0.836, 0.955, 1.031, 1.071, 1.083, 1.079, 1.064, 1.047, 1.03, 1.016, 1.005, 0.998, 0.994, 0.993, 0.993, 0.994, 0.996, 0.997, 0.999, 1);
}

[data-fluent-motion="slide"] { --fluent-indicator-motion: slide; }
[data-fluent-motion="stretch"] { --fluent-indicator-motion: stretch; }
[data-fluent-motion="fade"] { --fluent-indicator-motion: fade; }
[data-fluent-motion="none"] { --fluent-indicator-motion: none; }

[data-fluent-page-transition="entrance"] { --fluent-page-transition: entrance; }
[data-fluent-page-transition="fade"] { --fluent-page-transition: fade; }
[data-fluent-page-transition="slide"] { --fluent-page-transition: slide; }
[data-fluent-page-transition="scale"] { --fluent-page-transition: scale; }
[data-fluent-page-transition="wipe"] { --fluent-page-transition: wipe; }
[data-fluent-page-transition="none"] { --fluent-page-transition: none; }

[data-fluent-corner="none"] { --fluent-radius: 0px; --fluent-panel-radius: 0px; }
[data-fluent-corner="small"] { --fluent-radius: 2px; --fluent-panel-radius: 4px; }
[data-fluent-corner="medium"] { --fluent-radius: 4px; --fluent-panel-radius: 8px; }
[data-fluent-corner="large"] { --fluent-radius: 8px; --fluent-panel-radius: 12px; }

/* Selected-item colours for navigation and segmented controls. */
:where(.fluent-theme, [data-fluent-theme]):not(:where(.fluent-theme, [data-fluent-theme]) *),
[data-fluent-emphasis="indicator"] {
  --fluent-emphasis-fill: var(--fluent-selection);
  --fluent-emphasis-raised: var(--fluent-control);
  --fluent-emphasis-edge: var(--fluent-border);
  --fluent-emphasis-edge-bottom: var(--fluent-button-edge);
  --fluent-emphasis-text: var(--fluent-text);
  --fluent-emphasis-bar: var(--fluent-accent);
}
[data-fluent-emphasis="neutral"] {
  --fluent-emphasis-fill: var(--fluent-selection);
  --fluent-emphasis-raised: var(--fluent-control);
  --fluent-emphasis-edge: var(--fluent-border);
  --fluent-emphasis-edge-bottom: var(--fluent-button-edge);
  --fluent-emphasis-text: var(--fluent-text);
  --fluent-emphasis-bar: var(--fluent-text);
}
[data-fluent-emphasis="tinted"] {
  --fluent-emphasis-fill: color-mix(in srgb, var(--fluent-accent) 14%, var(--fluent-control));
  --fluent-emphasis-raised: color-mix(in srgb, var(--fluent-accent) 14%, var(--fluent-control));
  --fluent-emphasis-edge: color-mix(in srgb, var(--fluent-accent) 45%, var(--fluent-border));
  --fluent-emphasis-edge-bottom: color-mix(in srgb, var(--fluent-accent) 60%, var(--fluent-border));
  --fluent-emphasis-text: var(--fluent-accent-link);
  --fluent-emphasis-bar: var(--fluent-accent);
}
[data-fluent-emphasis="filled"] {
  --fluent-emphasis-fill: var(--fluent-accent);
  --fluent-emphasis-raised: var(--fluent-accent);
  --fluent-emphasis-edge: var(--fluent-accent);
  --fluent-emphasis-edge-bottom: var(--fluent-accent-pressed);
  --fluent-emphasis-text: var(--fluent-accent-text);
  --fluent-emphasis-bar: transparent;
}
[data-fluent-emphasis="underline"] {
  --fluent-emphasis-fill: transparent;
  --fluent-emphasis-raised: transparent;
  --fluent-emphasis-edge: transparent;
  --fluent-emphasis-edge-bottom: transparent;
  --fluent-emphasis-text: var(--fluent-text);
  --fluent-emphasis-bar: var(--fluent-accent);
}
.fluent-theme *,
[data-fluent-theme] * {
  box-sizing: border-box;
}
.fluent-theme :where(button, input, select, textarea),
[data-fluent-theme] :where(button, input, select, textarea) {
  font: inherit;
}
.fluent-theme :where(button, input, select, textarea, [tabindex]):focus-visible,
[data-fluent-theme]
  :where(button, input, select, textarea, [tabindex]):focus-visible,
.fluent-theme .fluent-checkbox__input:focus-visible + .fluent-checkbox__box,
[data-fluent-theme] .fluent-checkbox__input:focus-visible + .fluent-checkbox__box {
  outline: 2px solid var(--fluent-focus-outer);
  outline-offset: 1px;
  box-shadow: 0 0 0 1px var(--fluent-focus-inner);
}
[data-fluent-reduced-motion="reduce"],
[data-fluent-reduced-motion="reduce"] :is([data-fluent-speed], [data-fluent-motion], [data-fluent-page-transition]) {
  --fluent-motion-scale: 0;
  --fluent-indicator-motion: none;
  --fluent-page-transition: none;
}
@media (prefers-reduced-motion: reduce) {
  .fluent-theme,
  [data-fluent-theme],
  :is(.fluent-theme, [data-fluent-theme]) :is([data-fluent-speed], [data-fluent-motion], [data-fluent-page-transition]) {
    --fluent-motion-scale: 0;
    --fluent-indicator-motion: none;
    --fluent-page-transition: none;
  }
  .fluent-theme *,
  [data-fluent-theme] * {
    scroll-behavior: auto;
  }
}

.fluent-button {
  min-height: 32px;
  box-sizing: border-box;
  padding: 0 14px;
  border: 1px solid var(--fluent-border);
  border-radius: var(--fluent-radius);
  color: var(--fluent-text);
  border-bottom-color: var(--fluent-button-edge);
  background: var(--fluent-control);
  box-shadow: var(--fluent-button-highlight);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition:
    background var(--fluent-fast) var(--fluent-ease),
    border-color var(--fluent-fast) var(--fluent-ease);
}
.fluent-button:hover:not(:disabled) {
  background: var(--fluent-control-hover);
}
.fluent-button:active:not(:disabled) {
  background: var(--fluent-control-pressed);
}
.fluent-button--primary {
  border-color: var(--fluent-accent);
  border-bottom-color: color-mix(in srgb, var(--fluent-accent) 70%, #000);
  color: var(--fluent-accent-text);
  background: var(--fluent-accent);
}
.fluent-button--danger {
  border-color: var(--fluent-danger);
  color: var(--fluent-danger-text);
  background: var(--fluent-danger);
}
.fluent-button--subtle {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
.fluent-button:disabled:not(.fluent-button--busy),
.fluent-button--busy[data-disabled],
.fluent-field__input:disabled,
.fluent-switch:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.fluent-field,
.fluent-slider,
.fluent-select {
  display: grid;
  gap: 6px;
  color: var(--fluent-text);
  font: inherit;
}
.fluent-field__label,
.fluent-slider__label,
.fluent-select__label {
  font-size: 0.875rem;
  font-weight: 600;
}
.fluent-slider__label { font-weight: 400; }
.fluent-slider { gap: 4px; }
.fluent-field__input {
  min-height: 32px;
  box-sizing: border-box;
  width: 100%;
  padding: 0 10px;
  border: 1px solid var(--fluent-border);
  border-radius: var(--fluent-radius);
  color: var(--fluent-text);
  background: var(--fluent-control);
  font: inherit;
  transition:
    background var(--fluent-fast) var(--fluent-ease),
    border-color var(--fluent-fast) var(--fluent-ease);
}
.fluent-field__input:hover:not(:disabled) {
  background: var(--fluent-control-hover);
}

.fluent-file-picker {
  display: grid;
  gap: 8px;
  color: var(--fluent-text);
  font: inherit;
}
.fluent-file-picker__label {
  font-size: 0.875rem;
  font-weight: 600;
}
.fluent-file-picker__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.fluent-file-picker__input { display: none; }
.fluent-file-picker__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.fluent-file-picker__icon { width: 16px; height: 16px; }
.fluent-file-picker__status,
.fluent-file-picker__list {
  margin: 0;
  color: var(--fluent-muted);
  font-size: 0.8125rem;
}
.fluent-file-picker__list { padding-inline-start: 20px; }
.fluent-file-picker__file { overflow-wrap: anywhere; }

.fluent-switch {
  --fluent-switch-thumb-width: 12px;
  --fluent-switch-thumb-height: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0;
  border: 0;
  color: var(--fluent-text);
  background: transparent;
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.fluent-switch__track {
  display: inline-flex;
  align-items: center;
  width: 32px;
  height: 18px;
  padding: 2px;
  box-sizing: border-box;
  border: 1px solid var(--fluent-border);
  border-radius: 999px;
  background: var(--fluent-control);
  transition:
    background var(--fluent-fast) var(--fluent-ease),
    border-color var(--fluent-fast) var(--fluent-ease);
}
.fluent-switch__thumb {
  flex: none;
  width: var(--fluent-switch-thumb-width);
  height: var(--fluent-switch-thumb-height);
  border-radius: 999px;
  background: var(--fluent-muted);
  transition:
    transform var(--fluent-fast) var(--fluent-ease),
    width var(--fluent-faster) var(--fluent-ease),
    height var(--fluent-faster) var(--fluent-ease),
    background var(--fluent-fast) var(--fluent-ease);
}
.fluent-switch--checked .fluent-switch__track {
  border-color: var(--fluent-accent);
  background: var(--fluent-accent);
}
.fluent-switch--checked .fluent-switch__thumb {
  /* Content width of the track (26px) minus the thumb keeps the right edge anchored while the thumb resizes. */
  transform: translateX(calc(26px - var(--fluent-switch-thumb-width)));
  background: var(--fluent-accent-text);
}

.fluent-slider__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.fluent-slider__value {
  color: var(--fluent-muted);
  font-variant-numeric: tabular-nums;
}
.fluent-slider { --fluent-slider-dir: to right; }
.fluent-slider:dir(rtl):not(.fluent-slider--vertical) { --fluent-slider-dir: to left; }
.fluent-slider--vertical { --fluent-slider-dir: to top; justify-items: start; }
.fluent-slider__rail {
  position: relative;
  display: block;
  min-width: 80px;
  height: 20px;
}
.fluent-slider__rail--start { margin-top: 3px; }
.fluent-slider__rail--end { margin-bottom: 3px; }
.fluent-slider__input {
  --fluent-slider-fill: var(--fluent-accent);
  --fluent-slider-rest: var(--fluent-control-strong);
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 20px;
  margin: 0;
  padding: 0;
  border: 0;
  appearance: none;
  background: transparent;
  accent-color: var(--fluent-accent);
  cursor: pointer;
}
.fluent-slider__input:hover:not(:disabled) { --fluent-slider-fill: var(--fluent-accent-hover); }
.fluent-slider__input:disabled {
  --fluent-slider-fill: var(--fluent-accent-disabled);
  --fluent-slider-rest: var(--fluent-control-strong-disabled);
  cursor: not-allowed;
}
.fluent-slider__ticks {
  position: absolute;
  inset-inline: 10px;
  height: 4px;
  pointer-events: none;
}
.fluent-slider__ticks--start { top: 0; }
.fluent-slider__ticks--end { bottom: 0; }
.fluent-slider__tick {
  position: absolute;
  transform: translateX(-50%);
  width: 1px;
  height: 4px;
  background: var(--fluent-control-strong);
}
.fluent-slider__ticks--start .fluent-slider__tick { bottom: 0; }
.fluent-slider__ticks--end .fluent-slider__tick { top: 0; }
.fluent-slider__tick--major { height: 7px; }
.fluent-slider:dir(rtl):not(.fluent-slider--vertical) .fluent-slider__tick { transform: translateX(50%); }
.fluent-slider--disabled .fluent-slider__tick { background: var(--fluent-control-strong-disabled); }
.fluent-slider__input::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(
    var(--fluent-slider-dir),
    var(--fluent-slider-fill) 0 var(--fluent-slider-position),
    var(--fluent-slider-rest) var(--fluent-slider-position) 100%
  );
}
.fluent-slider__input::-webkit-slider-thumb {
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  margin-top: -8px;
  border: 1px solid var(--fluent-border);
  border-bottom-color: var(--fluent-button-edge);
  border-radius: 50%;
  background: var(--fluent-accent);
  background-clip: padding-box;
  box-shadow: inset 0 0 0 4px var(--fluent-control-solid);
  transition: box-shadow var(--fluent-fast) var(--fluent-ease), background-color var(--fluent-fast) var(--fluent-ease);
  -webkit-appearance: none;
}
.fluent-slider__input::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: var(--fluent-slider-rest);
}
.fluent-slider__input::-moz-range-progress {
  height: 4px;
  border-radius: 2px;
  background: var(--fluent-slider-fill);
}
.fluent-slider__input::-moz-range-thumb {
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  border: 1px solid var(--fluent-border);
  border-bottom-color: var(--fluent-button-edge);
  border-radius: 50%;
  background: var(--fluent-accent);
  background-clip: padding-box;
  box-shadow: inset 0 0 0 4px var(--fluent-control-solid);
  transition: box-shadow var(--fluent-fast) var(--fluent-ease), background-color var(--fluent-fast) var(--fluent-ease);
}
.fluent-slider__input:hover:not(:disabled)::-webkit-slider-thumb {
  background-color: var(--fluent-accent-hover);
  box-shadow: inset 0 0 0 2px var(--fluent-control-solid);
  transition-duration: var(--fluent-normal);
}
.fluent-slider__input:hover:not(:disabled)::-moz-range-thumb {
  background-color: var(--fluent-accent-hover);
  box-shadow: inset 0 0 0 2px var(--fluent-control-solid);
  transition-duration: var(--fluent-normal);
}
.fluent-slider__input:active:not(:disabled)::-webkit-slider-thumb {
  background-color: var(--fluent-accent-pressed);
  box-shadow: inset 0 0 0 4.75px var(--fluent-control-solid);
  transition-duration: var(--fluent-normal);
}
.fluent-slider__input:active:not(:disabled)::-moz-range-thumb {
  background-color: var(--fluent-accent-pressed);
  box-shadow: inset 0 0 0 4.75px var(--fluent-control-solid);
  transition-duration: var(--fluent-normal);
}
.fluent-slider__input:disabled::-webkit-slider-thumb {
  background-color: var(--fluent-accent-disabled);
  box-shadow: inset 0 0 0 2px var(--fluent-control-solid);
}
.fluent-slider__input:disabled::-moz-range-thumb {
  background-color: var(--fluent-accent-disabled);
  box-shadow: inset 0 0 0 2px var(--fluent-control-solid);
}
.fluent-slider__input:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--fluent-focus-outer); outline-offset: 1px; }
.fluent-slider__input:focus-visible::-moz-range-thumb { outline: 2px solid var(--fluent-focus-outer); outline-offset: 1px; }
.fluent-slider--vertical .fluent-slider__rail,
.fluent-slider--vertical .fluent-slider__rail--start,
.fluent-slider--vertical .fluent-slider__rail--end {
  min-width: 0;
  width: 56px;
  height: 160px;
  margin: 0;
}
.fluent-slider--vertical .fluent-slider__input {
  position: absolute;
  top: 0;
  left: 18px;
  width: 20px;
  height: 100%;
  writing-mode: vertical-lr;
  direction: rtl;
}
.fluent-slider--vertical .fluent-slider__input::-webkit-slider-runnable-track {
  width: 4px;
  height: 100%;
}
.fluent-slider--vertical .fluent-slider__input::-webkit-slider-thumb { margin: 0 0 0 -8px; }
.fluent-slider--vertical .fluent-slider__input::-moz-range-track,
.fluent-slider--vertical .fluent-slider__input::-moz-range-progress { width: 4px; height: 100%; }
.fluent-slider--vertical .fluent-slider__ticks {
  inset-block: 10px;
  width: 4px;
  height: auto;
}
.fluent-slider--vertical .fluent-slider__ticks--start { inset-inline: 18px auto; }
.fluent-slider--vertical .fluent-slider__ticks--end { inset-inline: 34px auto; }
.fluent-slider--vertical .fluent-slider__tick {
  top: auto;
  bottom: auto;
  width: 4px;
  height: 1px;
  transform: translateY(50%);
}
.fluent-slider--vertical .fluent-slider__tick--major { width: 7px; height: 1px; }
.fluent-slider--vertical .fluent-slider__ticks--start .fluent-slider__tick { inset-inline-end: 0; }
.fluent-slider--vertical .fluent-slider__ticks--end .fluent-slider__tick { inset-inline-start: 0; }

.fluent-notice {
  padding: 10px 12px;
  border: 1px solid var(--fluent-border);
  border-inline-start: 3px solid var(--fluent-accent);
  border-radius: var(--fluent-radius);
  color: var(--fluent-text);
  background: var(--fluent-surface);
}
.fluent-notice--success {
  border-inline-start-color: var(--fluent-success);
}
.fluent-notice--warning {
  border-inline-start-color: var(--fluent-warning);
}
.fluent-notice--danger {
  border-inline-start-color: var(--fluent-danger);
}

.fluent-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fluent-text);
  font: inherit;
  cursor: pointer;
}
.fluent-checkbox__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.fluent-checkbox:has(:disabled) {
  opacity: 0.55;
  cursor: not-allowed;
}
.fluent-progress-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
}
.fluent-progress-bar__track {
  position: relative;
  display: block;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--fluent-border);
}
.fluent-progress-bar__value {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--fluent-accent);
  transition: width var(--fluent-fast) var(--fluent-ease);
}
.fluent-progress-bar:dir(rtl) { --fluent-bar-dir: -1; }
.fluent-progress-bar--indeterminate :is(.fluent-progress-bar__value, .fluent-progress-bar__secondary) {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  transition: none;
}
.fluent-progress-bar__secondary {
  display: none;
  height: 100%;
  border-radius: 999px;
  background: var(--fluent-accent);
}
/* Segment widths and travel follow the WinUI ProgressBar indeterminate template: 40% and 60% bars sharing a 2s loop. */
[data-fluent-bar-motion="dynamic"].fluent-progress-bar--indeterminate .fluent-progress-bar__value {
  width: 40%;
  animation: fluent-progress-dynamic calc(2s * var(--fluent-motion-scale, 1)) infinite;
}
[data-fluent-bar-motion="dynamic"].fluent-progress-bar--indeterminate .fluent-progress-bar__secondary {
  display: block;
  width: 60%;
  animation: fluent-progress-dynamic-secondary calc(2s * var(--fluent-motion-scale, 1)) infinite;
}
[data-fluent-bar-motion="linear"].fluent-progress-bar--indeterminate .fluent-progress-bar__value {
  width: 40%;
  animation: fluent-progress-slide calc(1.5s * var(--fluent-motion-scale, 1)) linear infinite;
}
[data-fluent-bar-motion="bounce"].fluent-progress-bar--indeterminate .fluent-progress-bar__value {
  width: 30%;
  animation: fluent-progress-bounce calc(1.2s * var(--fluent-motion-scale, 1)) ease-in-out infinite alternate;
}
.fluent-progress-bar--with-indicator { grid-template-columns: minmax(0, 1fr) auto; }
.fluent-progress-bar__indicator {
  min-width: 3ch;
  color: var(--fluent-muted);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  text-align: end;
}
.fluent-progress-bar__ticks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.fluent-progress-bar__tick {
  position: absolute;
  top: 0;
  width: 1px;
  height: 100%;
  background: var(--fluent-surface);
  opacity: 0.9;
}
.fluent-progress-ring { display: inline-flex; flex: none; color: var(--fluent-accent); }
.fluent-progress-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.fluent-progress-ring circle { fill: none; stroke-width: 2; }
.fluent-progress-ring__track { stroke: var(--fluent-border); }
.fluent-progress-ring__value { stroke: currentColor; stroke-linecap: round; }
/* The arc rotates steadily while its head runs ahead and its tail catches up, so its length stretches and shrinks every cycle. */
[data-fluent-ring-motion="stretch"].fluent-progress-ring--indeterminate svg { animation: fluent-progress-spin calc(2s * var(--fluent-motion-scale, 1)) linear infinite; }
[data-fluent-ring-motion="stretch"].fluent-progress-ring--indeterminate .fluent-progress-ring__value { animation: fluent-progress-arc calc(1.5s * var(--fluent-motion-scale, 1)) cubic-bezier(0.4, 0, 0.2, 1) infinite; }
[data-fluent-ring-motion="spin"].fluent-progress-ring--indeterminate svg { animation: fluent-progress-spin calc(1s * var(--fluent-motion-scale, 1)) linear infinite; }
[data-fluent-ring-motion="spin"].fluent-progress-ring--indeterminate .fluent-progress-ring__value { stroke-dasharray: 25 100; }
.fluent-progress-ring--indeterminate svg:has(.fluent-progress-ring__dot) { transform: none; animation: none; }
.fluent-progress-ring .fluent-progress-ring__dot {
  fill: currentColor;
  stroke: none;
  transform-box: view-box;
  transform-origin: 12px 12px;
  transform: rotate(calc(var(--fluent-ring-dot, 0) * -22deg));
  animation: fluent-progress-orbit calc(5.5s * var(--fluent-motion-scale, 1)) calc(var(--fluent-ring-dot, 0) * 240ms * var(--fluent-motion-scale, 1)) infinite backwards;
}
.fluent-scroll-viewer {
  min-height: 0;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--fluent-muted) transparent;
}
.fluent-scroll-viewer--horizontal { overflow-x: auto; }
@keyframes fluent-progress-spin { from { transform: rotate(-90deg); } to { transform: rotate(270deg); } }
@keyframes fluent-progress-arc {
  0% { stroke-dasharray: 1 200; stroke-dashoffset: 0; }
  50% { stroke-dasharray: 72 200; stroke-dashoffset: -28; }
  100% { stroke-dasharray: 72 200; stroke-dashoffset: -99; }
}
@keyframes fluent-progress-slide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@keyframes fluent-progress-dynamic {
  from { transform: translateX(calc(-100% * var(--fluent-bar-dir, 1))); animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); }
  75%, to { transform: translateX(calc(300% * var(--fluent-bar-dir, 1))); }
}
@keyframes fluent-progress-dynamic-secondary {
  from, 37.5% { transform: translateX(calc(-150% * var(--fluent-bar-dir, 1))); animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); }
  to { transform: translateX(calc(166% * var(--fluent-bar-dir, 1))); }
}
@keyframes fluent-progress-bounce {
  from { transform: translateX(0); }
  to { transform: translateX(calc(233.333% * var(--fluent-bar-dir, 1))); }
}
@keyframes fluent-progress-orbit {
  0% { transform: rotate(225deg); opacity: 1; animation-timing-function: ease-out; }
  7% { transform: rotate(345deg); animation-timing-function: linear; }
  30% { transform: rotate(455deg); animation-timing-function: ease-in-out; }
  39% { transform: rotate(690deg); animation-timing-function: linear; }
  70% { transform: rotate(815deg); opacity: 1; animation-timing-function: ease-out; }
  75% { transform: rotate(945deg); animation-timing-function: ease-out; }
  76%, 100% { transform: rotate(945deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .fluent-progress-ring--indeterminate svg,
  .fluent-progress-ring--indeterminate .fluent-progress-ring__value,
  .fluent-progress-ring__dot,
  .fluent-progress-bar--indeterminate :is(.fluent-progress-bar__value, .fluent-progress-bar__secondary) { animation: none; }
}

/* State refinements are scoped to Fluent component classes. */
.fluent-button--primary:hover:not(:disabled) { background: var(--fluent-accent-hover); }
.fluent-button--primary:active:not(:disabled) { background: var(--fluent-accent-pressed); }
.fluent-button--danger:hover:not(:disabled) { background: var(--fluent-danger-hover); }
.fluent-button--danger:active:not(:disabled) { background: var(--fluent-danger-pressed); }
.fluent-button--subtle:hover:not(:disabled) { background: var(--fluent-control-hover); }
.fluent-button--subtle:active:not(:disabled) { background: var(--fluent-control-pressed); }
.fluent-button[aria-pressed="true"] {
  border-color: var(--fluent-accent);
  color: var(--fluent-accent-link);
  background: color-mix(in srgb, var(--fluent-accent) 14%, var(--fluent-control));
}
.fluent-button[aria-pressed="true"]:hover:not(:disabled) {
  background: color-mix(in srgb, var(--fluent-accent) 18%, var(--fluent-control));
}
.fluent-button[aria-pressed="true"]:active:not(:disabled) {
  background: color-mix(in srgb, var(--fluent-accent) 24%, var(--fluent-control));
}
.fluent-button[data-icon-only] {
  width: 32px;
  min-width: 32px;
  padding: 0;
}
.fluent-button:disabled:not(.fluent-button--busy),
.fluent-button--busy[data-disabled] {
  border-color: var(--fluent-border);
  color: var(--fluent-muted);
  background: var(--fluent-control);
  box-shadow: none;
}
.fluent-button--busy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.fluent-button--busy:not([data-disabled]) { cursor: progress; }
.fluent-button--busy .fluent-progress-ring { color: currentColor; }
.fluent-button--busy .fluent-progress-ring__track { stroke: color-mix(in srgb, currentColor 30%, transparent); }

.fluent-field__input {
  min-height: 32px;
  line-height: 20px;
  border-bottom-color: var(--fluent-muted);
}
textarea.fluent-field__input {
  min-height: 80px;
  padding-block: 6px;
  resize: vertical;
}
.fluent-field__input:focus-visible:not(:disabled) {
  outline: none;
  border-color: var(--fluent-border);
  border-bottom-color: var(--fluent-accent);
  box-shadow: inset 0 -1px 0 var(--fluent-accent);
  background: var(--fluent-control);
}
.fluent-field__input[data-invalid],
.fluent-field__input:user-invalid,
.fluent-field__input[data-invalid]:focus-visible:not(:disabled),
.fluent-field__input:user-invalid:focus-visible:not(:disabled) {
  border-color: var(--fluent-input-invalid);
  border-bottom-color: var(--fluent-input-invalid);
  box-shadow: inset 0 -1px 0 var(--fluent-input-invalid);
}
.fluent-field__input[data-invalid]:focus-visible:not(:disabled),
.fluent-field__input:user-invalid:focus-visible:not(:disabled) {
  outline: 2px solid var(--fluent-focus-outer);
  outline-offset: 1px;
}
.fluent-field__input[readonly] {
  color: var(--fluent-muted);
  background: color-mix(in srgb, var(--fluent-control) 78%, var(--fluent-bg));
}
.fluent-field__input:disabled {
  color: var(--fluent-muted);
  background: var(--fluent-bg);
  box-shadow: none;
}

.fluent-switch:hover:not(:disabled) .fluent-switch__track {
  border-color: color-mix(in srgb, var(--fluent-border) 55%, var(--fluent-text));
  background: var(--fluent-control-hover);
}
.fluent-switch:active:not(:disabled) .fluent-switch__track { background: var(--fluent-control-pressed); }
.fluent-switch--checked:hover:not(:disabled) .fluent-switch__track {
  border-color: var(--fluent-accent-hover);
  background: var(--fluent-accent-hover);
}
.fluent-switch--checked:active:not(:disabled) .fluent-switch__track {
  border-color: var(--fluent-accent-pressed);
  background: var(--fluent-accent-pressed);
}
.fluent-switch:disabled .fluent-switch__track { border-color: var(--fluent-border); background: var(--fluent-bg); }
.fluent-switch:disabled .fluent-switch__thumb { background: var(--fluent-muted); }
.fluent-switch[data-fluent-toggle-motion="stretch"]:hover:not(:disabled) {
  --fluent-switch-thumb-width: 13px;
  --fluent-switch-thumb-height: 13px;
}
.fluent-switch[data-fluent-toggle-motion="stretch"]:active:not(:disabled) {
  --fluent-switch-thumb-width: 15px;
  --fluent-switch-thumb-height: 13px;
}
.fluent-switch[data-fluent-toggle-motion="none"] :is(.fluent-switch__track, .fluent-switch__thumb),
.fluent-toggle-button[data-fluent-toggle-motion="none"] { transition: none; }


.fluent-checkbox,
.fluent-radio { position: relative; min-height: 20px; }
.fluent-radio { display: inline-flex; align-items: center; gap: 8px; color: var(--fluent-text); font: inherit; cursor: pointer; }
.fluent-radio__input {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-content: center;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1px solid var(--fluent-border);
  background: var(--fluent-control);
  color: var(--fluent-accent-text);
  cursor: inherit;
  transition: background var(--fluent-fast) var(--fluent-ease), border-color var(--fluent-fast) var(--fluent-ease);
}
.fluent-radio__input { border-radius: 50%; }
.fluent-checkbox__box {
  display: grid;
  flex: none;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid var(--fluent-border);
  border-radius: 3px;
  color: var(--fluent-accent-text);
  background: var(--fluent-control);
  transition: background var(--fluent-fast) var(--fluent-ease), border-color var(--fluent-fast) var(--fluent-ease);
}
.fluent-radio__input::before { width: 8px; height: 8px; content: ""; border-radius: 50%; background: currentColor; transform: scale(0); transition: transform var(--fluent-fast) var(--fluent-ease), opacity var(--fluent-fast) var(--fluent-ease); }
.fluent-radio__input:checked { border-color: var(--fluent-accent); background: var(--fluent-accent); }
.fluent-radio__input:checked::before { transform: scale(1); }
.fluent-radio[data-fluent-check-motion="fade"] .fluent-radio__input::before { opacity: 0; transform: scale(0.6); }
.fluent-radio[data-fluent-check-motion="fade"] .fluent-radio__input:checked::before { opacity: 1; transform: scale(1); }
.fluent-radio[data-fluent-check-motion="none"] .fluent-radio__input::before { transition: none; }
.fluent-checkbox__box--checked,
.fluent-checkbox__box--indeterminate { border-color: var(--fluent-accent); background: var(--fluent-accent); }
.fluent-checkbox__check { width: 14px; height: 14px; transform: translateY(1px); }
.fluent-checkbox__indeterminate { width: 9px; height: 2px; border-radius: 999px; background: currentColor; }
.fluent-checkbox[data-fluent-check-motion="draw"] .fluent-checkbox__check { animation: fluent-check-draw var(--fluent-fast) var(--fluent-ease); }
.fluent-checkbox[data-fluent-check-motion="draw"] .fluent-checkbox__indeterminate { animation: fluent-check-grow var(--fluent-fast) var(--fluent-ease); }
.fluent-checkbox[data-fluent-check-motion="fade"] :is(.fluent-checkbox__check, .fluent-checkbox__indeterminate) { animation: fluent-check-fade var(--fluent-fast) var(--fluent-ease); }
@keyframes fluent-check-draw {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0); }
}
@keyframes fluent-check-grow {
  from { transform: scaleX(0); }
}
@keyframes fluent-check-fade {
  from { opacity: 0; scale: 0.6; }
}
.fluent-checkbox:hover .fluent-checkbox__box:not(.fluent-checkbox__box--checked, .fluent-checkbox__box--indeterminate),
.fluent-radio:hover .fluent-radio__input:not(:disabled, :checked) {
  border-color: var(--fluent-accent);
  background: var(--fluent-control-hover);
}
.fluent-checkbox:hover .fluent-checkbox__box:is(.fluent-checkbox__box--checked, .fluent-checkbox__box--indeterminate),
.fluent-radio:hover .fluent-radio__input:checked:not(:disabled) {
  border-color: var(--fluent-accent-hover);
  background: var(--fluent-accent-hover);
}
.fluent-checkbox:has(:disabled),
.fluent-radio:has(:disabled) { color: var(--fluent-muted); opacity: 0.55; cursor: not-allowed; }

.fluent-progress-bar:disabled { opacity: 0.45; }
@media (forced-colors: active) {
  .fluent-button,
  .fluent-field__input,
  .fluent-switch__track,
  .fluent-checkbox__box,
  .fluent-radio__input {
    border-color: ButtonText;
    forced-color-adjust: none;
  }
  .fluent-button { color: ButtonText; background: ButtonFace; }
  .fluent-button--primary,
  .fluent-button--danger,
  .fluent-switch--checked .fluent-switch__track,
  .fluent-checkbox__box--checked,
  .fluent-radio__input:checked { color: HighlightText; background: Highlight; }
  .fluent-field__input[data-invalid],
  .fluent-field__input:user-invalid { outline: 2px solid Mark; outline-offset: -3px; }
  .fluent-slider__input { --fluent-control-solid: Canvas; forced-color-adjust: none; }
  .fluent-progress-bar { forced-color-adjust: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .fluent-button,
  .fluent-switch__track,
  .fluent-switch__thumb,
  .fluent-checkbox__box,
  .fluent-radio__input { transition-duration: 0ms; }
}

@media (forced-colors: active) {
  .fluent-slider__tick { background: CanvasText; }
  .fluent-slider__input::-webkit-slider-runnable-track,
  .fluent-slider__input::-moz-range-track { background: CanvasText !important; }
  .fluent-slider__input::-webkit-slider-thumb,
  .fluent-slider__input::-moz-range-thumb { border-color: Canvas; background: Highlight !important; }
  .fluent-slider__input::-moz-range-progress { background: Highlight; }
  .fluent-slider__input:disabled::-webkit-slider-runnable-track,
  .fluent-slider__input:disabled::-moz-range-track { background: GrayText !important; }
}

.fluent-slider--labelled { --fluent-slider-cell: calc(100% / var(--fluent-slider-cells)); }
.fluent-slider--labelled:not(.fluent-slider--vertical) { min-inline-size: calc(var(--fluent-slider-stops) * 4.5em); }
/* The thumb already sits 10px inside the input, so the rail only adds the rest of the half cell. */
.fluent-slider--labelled:not(.fluent-slider--vertical) .fluent-slider__rail {
  margin-inline: max(0px, calc(var(--fluent-slider-cell) / 2 - 10px));
}
.fluent-slider--neutral {
  --fluent-accent: var(--fluent-text);
  --fluent-accent-hover: var(--fluent-text);
  --fluent-accent-pressed: var(--fluent-text);
  --fluent-accent-text: var(--fluent-surface);
}
.fluent-slider__tick--disabled { opacity: 0.4; }
/* Labels share one grid area so the row grows with the tallest wrapped label. */
.fluent-slider__labels {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-inline: 10px;
  color: var(--fluent-muted);
  font-size: 12px;
}
.fluent-slider--labelled .fluent-slider__labels { margin-inline: max(10px, calc(var(--fluent-slider-cell) / 2)); }
.fluent-slider__stop-label {
  position: relative;
  grid-area: 1 / 1;
  justify-self: start;
  inline-size: max-content;
  max-inline-size: calc(100% / max(1, var(--fluent-slider-cells) - 1));
  line-height: 1.4;
  text-align: center;
  overflow-wrap: anywhere;
  transform: translateX(-50%);
}
.fluent-slider:dir(rtl) .fluent-slider__stop-label { transform: translateX(50%); }
.fluent-slider__stop-label--active { color: var(--fluent-text); }
.fluent-slider__stop-label--disabled { opacity: 0.45; }
.fluent-slider--vertical .fluent-slider__labels { display: none; }

.fluent-svg-icon,
.fluent-icon-text {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  color: inherit;
}

.fluent-svg-icon {
  position: relative;
  width: var(--fluent-graphic-size, 16px);
  height: var(--fluent-graphic-size, 16px);
  flex: 0 0 var(--fluent-graphic-size, 16px);
  overflow: hidden;
}

.fluent-svg-icon__paint,
.fluent-icon-text__paint {
  position: absolute;
  inset: 0 auto auto 0;
  transform-origin: top left;
}

.fluent-svg-icon__paint img,
.fluent-icon-text__paint img {
  display: block;
  width: 100%;
  height: 100%;
}

.fluent-icon-text {
  display: inline-block;
  line-height: inherit;
}

.fluent-icon-text__icon {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.fluent-icon-text__label {
  margin-inline-start: 0.35em;
}

.fluent-dialog {
  box-sizing: border-box;
  display: none;
  flex-direction: column;
  width: min(560px, calc(100vw - 32px));
  max-height: min(720px, calc(100dvh - 32px));
  padding: 0;
  color: var(--fluent-text);
  background: var(--fluent-surface);
  border: 1px solid var(--fluent-border);
  border-radius: var(--fluent-panel-radius);
  box-shadow: var(--fluent-shadow);
  overflow: hidden;
}
.fluent-dialog[open] {
  display: flex;
}
.fluent-dialog::backdrop {
  background: rgb(0 0 0 / 32%);
}
.fluent-dialog__header {
  flex: none;
  padding: 24px 24px 0;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}
.fluent-dialog__header + .fluent-dialog__content { padding-top: 12px; }
.fluent-dialog__content {
  flex: 1 1 auto;
  min-height: 0;
  padding: 24px;
  overflow: auto;
  outline: none;
}
.fluent-dialog__footer {
  display: flex;
  flex: none;
  justify-content: flex-end;
  gap: 8px;
  padding: 24px;
  background: var(--fluent-bg);
  border-top: 1px solid var(--fluent-border);
}
.fluent-popover {
  position: fixed;
  inset: auto;
  margin: 0;
  box-sizing: border-box;
  min-width: 0;
  width: 360px;
  overflow-wrap: anywhere;
  padding: 6px;
  color: var(--fluent-text);
  background: var(--fluent-surface);
  border: 1px solid var(--fluent-border);
  border-radius: var(--fluent-panel-radius);
  box-shadow: var(--fluent-shadow);
}
.fluent-popover[data-fluent-menu-motion="slide"] {
  animation: fluent-popover-slide-bottom var(--fluent-fast) var(--fluent-ease);
}
.fluent-popover[data-fluent-menu-motion="slide"][data-side="top"] {
  animation-name: fluent-popover-slide-top;
}
.fluent-popover[data-fluent-menu-motion="fade"] {
  animation: fluent-fade-in var(--fluent-fast) var(--fluent-ease);
}
.fluent-popover[data-fluent-menu-motion="scale"] {
  transform-origin: top center;
  animation: fluent-popover-scale var(--fluent-fast) var(--fluent-ease);
}
.fluent-popover[data-fluent-menu-motion="scale"][data-side="top"] {
  transform-origin: bottom center;
}
@keyframes fluent-fade-in {
  from { opacity: 0; }
}
@keyframes fluent-popover-slide-bottom {
  from {
    opacity: 0;
    transform: translateY(-8px);
    clip-path: inset(0 0 100% 0);
  }
  to {
    opacity: 1;
    transform: none;
    clip-path: inset(0);
  }
}
@keyframes fluent-popover-slide-top {
  from {
    opacity: 0;
    transform: translateY(8px);
    clip-path: inset(100% 0 0 0);
  }
  to {
    opacity: 1;
    transform: none;
    clip-path: inset(0);
  }
}
@keyframes fluent-popover-scale {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
}
.fluent-dialog[open] {
  animation:
    fluent-dialog-scale var(--fluent-normal) var(--fluent-ease),
    fluent-dialog-fade var(--fluent-faster) linear;
}
.fluent-dialog[open]::backdrop {
  animation: fluent-dialog-fade var(--fluent-faster) linear;
}
@keyframes fluent-dialog-scale {
  from { transform: scale(1.05); }
}
@keyframes fluent-dialog-fade {
  from { opacity: 0; }
}

.fluent-navigation {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  padding: 4px;
  gap: 2px;
  scrollbar-gutter: stable;
}
.fluent-navigation__item {
  position: relative;
  min-height: 36px;
  padding: 0 12px;
  overflow: visible;
  color: var(--fluent-text);
  font: inherit;
  line-height: 36px;
  text-align: start;
  white-space: nowrap;
  background: transparent;
  border: 0;
  border-radius: var(--fluent-radius);
  cursor: pointer;
}
.fluent-navigation__item:hover:not(:disabled) {
  background: var(--fluent-control-hover);
}
.fluent-navigation__item:active:not(:disabled) {
  background: var(--fluent-control-pressed);
}
.fluent-navigation__item:focus-visible {
  outline: 2px solid var(--fluent-focus-outer);
  outline-offset: -2px;
  box-shadow: inset 0 0 0 1px var(--fluent-focus-inner);
}
.fluent-navigation__item:disabled {
  opacity: 0.45;
  cursor: default;
}
.fluent-navigation__item.is-selected {
  color: var(--fluent-emphasis-text);
  background: var(--fluent-emphasis-fill);
}
.fluent-navigation__item.is-selected:hover:not(:disabled),
.fluent-navigation__item.is-selected:active:not(:disabled) {
  color: var(--fluent-emphasis-text);
  background: var(--fluent-emphasis-fill);
}
.fluent-navigation__label {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fluent-navigation__item {
  padding-inline-start: calc(12px + var(--fluent-navigation-depth, 0) * 31px);
}
.fluent-navigation__item.is-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.fluent-navigation__item.is-group .fluent-navigation__label {
  flex: 1 1 auto;
  min-width: 0;
}
.fluent-navigation__chevron {
  flex: none;
  width: 12px;
  height: 12px;
  transition: transform var(--fluent-fast) var(--fluent-ease);
}
.fluent-navigation__item[aria-expanded="true"] .fluent-navigation__chevron {
  transform: rotate(180deg);
}
.fluent-navigation__branch {
  display: flex;
  flex-direction: column;
}
.fluent-navigation__group {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition:
    grid-template-rows var(--fluent-normal) var(--fluent-ease),
    visibility 0s linear var(--fluent-normal);
}
.fluent-navigation__group.is-expanded {
  grid-template-rows: 1fr;
  visibility: visible;
  transition:
    grid-template-rows var(--fluent-normal) var(--fluent-ease),
    visibility 0s;
}
.fluent-navigation__children {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 0;
  overflow: hidden;
}
.fluent-navigation__children > :first-child {
  margin-top: 2px;
}
.fluent-navigation__indicator {
  position: absolute;
  inset-inline-start: 0;
  top: calc(50% - 8px);
  width: 3px;
  height: 16px;
  border-radius: 2px;
  background: var(--fluent-emphasis-bar);
  pointer-events: none;
}
@media (forced-colors: active) {
  .fluent-navigation__item.is-selected {
    color: HighlightText;
    background: Highlight;
  }
  .fluent-navigation__indicator {
    background: HighlightText;
  }
}

.fluent-select {
  display: grid;
  gap: 6px;
  color: var(--fluent-text);
  font: inherit;
}
.fluent-select__label { font-size: 0.875rem; font-weight: 600; }
.fluent-select__control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 32px;
  width: 100%;
  padding: 0 10px;
  line-height: 20px;
  border: 1px solid var(--fluent-border);
  border-radius: var(--fluent-radius);
  color: var(--fluent-text);
  background: var(--fluent-control);
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition: background var(--fluent-fast) var(--fluent-ease), border-color var(--fluent-fast) var(--fluent-ease);
}
.fluent-select__control:hover:not(:disabled) { background: var(--fluent-control-hover); }
.fluent-select__control:active:not(:disabled), .fluent-select--open .fluent-select__control { background: var(--fluent-control-pressed); }
.fluent-select__control:disabled { opacity: 0.55; cursor: not-allowed; }
.fluent-select__value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fluent-icon { display: block; flex: none; width: 16px; height: 16px; }
.fluent-select__chevron { width: 16px; height: 16px; }
.fluent-popover--select, .fluent-popover--menu { width: max-content; min-width: min(220px, calc(100vw - 16px)); max-width: min(420px, calc(100vw - 16px)); padding: 4px; }
.fluent-popover--select { min-width: min(var(--fluent-anchor-width), calc(100vw - 16px)); max-width: none; }
.fluent-select__listbox, .fluent-menu { display: grid; gap: 2px; min-width: 100%; }
.fluent-select__option, .fluent-menu__item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  width: 100%;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--fluent-text);
  background: transparent;
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.fluent-select__option:hover:not(:disabled), .fluent-select__option.is-active, .fluent-menu__item:hover:not(:disabled), .fluent-menu__item.is-active { background: var(--fluent-control-hover); }
.fluent-select__option:active:not(:disabled), .fluent-menu__item:active:not(:disabled) { background: var(--fluent-control-pressed); }
.fluent-select__option.is-selected, .fluent-menu__item.is-selected { background: var(--fluent-selection); font-weight: 600; }
.fluent-select__option.is-selected:hover:not(:disabled),
.fluent-select__option.is-selected:active:not(:disabled),
.fluent-menu__item.is-selected:hover:not(:disabled),
.fluent-menu__item.is-selected:active:not(:disabled) { background: var(--fluent-selection); }
.fluent-select__option.is-active.is-selected, .fluent-menu__item.is-active.is-selected { border-color: color-mix(in srgb, var(--fluent-accent) 42%, transparent); }
.fluent-select__option:disabled, .fluent-menu__item:disabled { opacity: 0.55; cursor: not-allowed; }
.fluent-menu__separator { height: 1px; margin: 4px 8px; background: var(--fluent-border); }
.fluent-menu__check { flex: none; width: 16px; height: 16px; color: var(--fluent-accent-link); }
.fluent-select__option:focus-visible, .fluent-menu__item:focus-visible { outline-offset: -2px; box-shadow: inset 0 0 0 1px var(--fluent-focus-inner); }
.fluent-menu__item-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (forced-colors: active) {
  .fluent-select__control, .fluent-select__option, .fluent-menu__item { forced-color-adjust: auto; }
  .fluent-select__option.is-selected, .fluent-menu__item.is-selected { outline: 1px solid Highlight; }
}

.fluent-segmented {
  isolation: isolate;
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 2px;
  padding: 2px;
  color: var(--fluent-text);
  background: var(--fluent-control-alt);
  border: 1px solid var(--fluent-border);
  border-radius: calc(var(--fluent-radius) + 2px);
}
.fluent-segmented__item {
  position: relative;
  min-height: 30px;
  padding: 0 11px;
  color: var(--fluent-text);
  font: inherit;
  font-weight: 400;
  white-space: nowrap;
  background: transparent;
  border: 0;
  border-radius: var(--fluent-radius);
  cursor: pointer;
  transition:
    background-color var(--fluent-faster) linear,
    color var(--fluent-faster) linear;
}
.fluent-segmented__item[aria-checked="true"] {
  color: var(--fluent-emphasis-text);
}
.fluent-segmented__item:hover:not(:disabled, [aria-checked="true"]) {
  background: var(--fluent-control-hover);
}
.fluent-segmented__item:active:not(:disabled, [aria-checked="true"]) {
  color: var(--fluent-muted);
  background: var(--fluent-control-pressed);
}
.fluent-segmented__item:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.fluent-segmented__label {
  position: relative;
  z-index: 1;
}
.fluent-segmented__indicator {
  position: absolute;
  inset-block: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  background: var(--fluent-emphasis-raised);
  border: 1px solid var(--fluent-emphasis-edge);
  border-bottom-color: var(--fluent-emphasis-edge-bottom);
  border-radius: var(--fluent-radius);
  box-shadow: var(--fluent-button-highlight);
  pointer-events: none;
}
.fluent-segmented__indicator::after {
  position: absolute;
  inset-inline-start: calc(50% - 8px);
  bottom: 0;
  width: 16px;
  height: 3px;
  content: "";
  background: var(--fluent-emphasis-bar);
  border-radius: 1.5px;
  transition: transform var(--fluent-fast) var(--fluent-ease);
}
.fluent-segmented__item[aria-checked="true"]:active:not(:disabled) .fluent-segmented__indicator::after {
  transform: scaleX(0.5);
}
@media (forced-colors: active) {
  .fluent-segmented__indicator {
    background: Highlight;
    border-color: Highlight;
  }
  .fluent-segmented__indicator::after {
    background: HighlightText;
  }
  .fluent-segmented__item[aria-checked="true"] {
    color: HighlightText;
  }
}

:where(.fluent-theme, [data-fluent-theme]) :where(button:not([class*="fluent-"]), input[type="button"], input[type="submit"], input[type="reset"]) {
  min-height: 32px;
  padding: 5px 12px;
  border: 1px solid var(--fluent-border);
  border-radius: var(--fluent-radius);
  color: var(--fluent-text);
  background: var(--fluent-control);
  box-shadow: 0 1px 1px rgb(0 0 0 / 5%);
  font: inherit;
  cursor: pointer;
  transition: background var(--fluent-fast) var(--fluent-ease), border-color var(--fluent-fast) var(--fluent-ease);
}
:where(.fluent-theme, [data-fluent-theme]) :where(button:not([class*="fluent-"]), input[type="button"], input[type="submit"], input[type="reset"]):where(:hover:not(:disabled)) { background: var(--fluent-control-hover); }
:where(.fluent-theme, [data-fluent-theme]) :where(button:not([class*="fluent-"]), input[type="button"], input[type="submit"], input[type="reset"]):where(:active:not(:disabled)) { background: var(--fluent-control-pressed); }
:where(.fluent-theme, [data-fluent-theme]) :where(button, input, select, textarea):where(:disabled) { cursor: not-allowed; }
:where(.fluent-theme, [data-fluent-theme]) :where(button:not([class*="fluent-"]), input[type="button"], input[type="submit"], input[type="reset"]):where(:disabled) { color: var(--fluent-muted); opacity: .5; box-shadow: none; }

:where(.fluent-theme, [data-fluent-theme]) :where(input:not([type="checkbox"], [type="radio"], [type="range"], [type="button"], [type="submit"], [type="reset"], [type="hidden"]), textarea, select):not([class*="fluent-"]) {
  box-sizing: border-box;
  min-width: 0;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid var(--fluent-border);
  border-bottom-color: var(--fluent-muted);
  border-radius: var(--fluent-radius);
  color: var(--fluent-text);
  background: var(--fluent-control);
  font: inherit;
  transition: background var(--fluent-fast) var(--fluent-ease), border-color var(--fluent-fast) var(--fluent-ease);
}
:where(.fluent-theme, [data-fluent-theme]) :where(input, textarea, select):not([class*="fluent-"]):where(:hover:not(:disabled, [readonly])) { border-color: var(--fluent-muted); }
:where(.fluent-theme, [data-fluent-theme]) :where(input, textarea, select):not([class*="fluent-"]):where(:focus-visible) { border-color: var(--fluent-accent); }
:where(.fluent-theme, [data-fluent-theme]) :where(input, textarea):not([class*="fluent-"]):where([readonly]) { color: var(--fluent-muted); background: var(--fluent-surface); }
:where(.fluent-theme, [data-fluent-theme]) :where(input, textarea, select):not([class*="fluent-"]):where(:disabled) { opacity: .5; background: var(--fluent-bg); }
:where(.fluent-theme, [data-fluent-theme]) :is(input, textarea, select):is([aria-invalid="true"], :user-invalid) { border-color: var(--fluent-danger); }
:where(.fluent-theme, [data-fluent-theme]) :where(textarea) { resize: vertical; min-height: 80px; }
:where(.fluent-theme, [data-fluent-theme]) :where(input[type="checkbox"], input[type="radio"], input[type="range"], progress, meter) { accent-color: var(--fluent-accent); }
:where(.fluent-theme, [data-fluent-theme]) :where(input[type="checkbox"], input[type="radio"]):not([class*="fluent-"]) { width: 18px; height: 18px; vertical-align: middle; }
:where(.fluent-theme, [data-fluent-theme]) :where(input[type="range"]):not([class*="fluent-"]) { min-width: 80px; cursor: pointer; }
:where(.fluent-theme, [data-fluent-theme]) :where(input[type="file"])::file-selector-button {
  padding: 5px 10px;
  margin-inline-end: 10px;
  border: 1px solid var(--fluent-border);
  border-radius: var(--fluent-radius);
  color: var(--fluent-text);
  background: var(--fluent-control);
  font: inherit;
  cursor: pointer;
}
:where(.fluent-theme, [data-fluent-theme]) :where(input[type="file"]):hover::file-selector-button { background: var(--fluent-control-hover); }
:where(.fluent-theme, [data-fluent-theme]) :where(input[type="file"]):active::file-selector-button { background: var(--fluent-control-pressed); }
:where(.fluent-theme, [data-fluent-theme]) :where(input[type="color"]) { width: 48px; padding: 4px; cursor: pointer; }
:where(.fluent-theme, [data-fluent-theme]) :where(input[type="color"])::-webkit-color-swatch-wrapper { padding: 0; }
:where(.fluent-theme, [data-fluent-theme]) :where(input[type="color"])::-webkit-color-swatch { border: 0; border-radius: 2px; }
:where(.fluent-theme, [data-fluent-theme]) :where(input[type="date"], input[type="time"], input[type="datetime-local"], input[type="month"], input[type="week"])::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .75; }
:where(.fluent-theme, [data-fluent-theme]) :where(a[href]) { color: var(--fluent-accent-link); text-underline-offset: 3px; }
:where(.fluent-theme, [data-fluent-theme]) :where(a[href]):hover { color: color-mix(in srgb, var(--fluent-accent-link) 85%, var(--fluent-text)); }
:where(.fluent-theme, [data-fluent-theme]) :where(a[href]):active { color: color-mix(in srgb, var(--fluent-accent-link) 70%, var(--fluent-text)); }
:where(.fluent-theme, [data-fluent-theme]) :where(a[aria-disabled="true"]) { color: var(--fluent-muted); cursor: not-allowed; }
:where(.fluent-theme, [data-fluent-theme]) :where(fieldset) { min-width: 0; border: 1px solid var(--fluent-border); border-radius: var(--fluent-panel-radius); }
:where(.fluent-theme, [data-fluent-theme]) :where(legend) { padding-inline: 6px; color: var(--fluent-muted); }
:where(.fluent-theme, [data-fluent-theme]) :where(details) { border: 1px solid var(--fluent-border); border-radius: var(--fluent-panel-radius); background: var(--fluent-surface); }
:where(.fluent-theme, [data-fluent-theme]) :where(summary) { padding: 10px 12px; cursor: pointer; border-radius: inherit; }
:where(.fluent-theme, [data-fluent-theme]) :where(summary):hover { background: var(--fluent-control-hover); }
:where(.fluent-theme, [data-fluent-theme]) :where(summary):active { background: var(--fluent-control-pressed); }
:where(.fluent-theme, [data-fluent-theme]) :where(details[open]) > summary { border-bottom: 1px solid var(--fluent-border); }
:where(.fluent-theme, [data-fluent-theme]) :where([role="tab"], [role="option"], [role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"]) { border-radius: var(--fluent-radius); }
:where(.fluent-theme, [data-fluent-theme]) :where([role="tab"], [role="option"], [role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"]):hover:not([aria-disabled="true"]) { background: var(--fluent-control-hover); }
:where(.fluent-theme, [data-fluent-theme]) :where([role="tab"], [role="option"], [role="menuitemcheckbox"], [role="menuitemradio"]):where([aria-selected="true"], [aria-checked="true"]) { background: var(--fluent-selection); color: var(--fluent-accent); }
:where(.fluent-theme, [data-fluent-theme]) :where([role="tab"], [role="option"], [role="menuitemcheckbox"], [role="menuitemradio"]):where([aria-selected="true"], [aria-checked="true"]):hover:not([aria-disabled="true"]) { background: var(--fluent-selection); color: var(--fluent-accent); }
:where(.fluent-theme, [data-fluent-theme]) :where([aria-disabled="true"]) { cursor: not-allowed; }
:where(.fluent-theme, [data-fluent-theme]) :where(table) { border-collapse: collapse; color: var(--fluent-text); }
:where(.fluent-theme, [data-fluent-theme]) :where(th, td) { border-bottom: 1px solid var(--fluent-border); padding: 8px 12px; text-align: start; }
:where(.fluent-theme, [data-fluent-theme]) :where(tbody tr):hover { background: var(--fluent-control-hover); }
:where(.fluent-theme, [data-fluent-theme]) :where(tr[aria-selected="true"]) { background: var(--fluent-selection); }
:where(.fluent-theme, [data-fluent-theme]) :where(tbody tr[aria-selected="true"]):hover { background: var(--fluent-selection); }
:where(.fluent-theme, [data-fluent-theme]) :where(button, input, select, textarea, a[href], summary, [tabindex]):focus-visible { outline: 2px solid var(--fluent-focus-outer); outline-offset: 1px; box-shadow: 0 0 0 1px var(--fluent-focus-inner); }
@media (forced-colors: active) {
  :where(.fluent-theme, [data-fluent-theme]) :where(button, input, textarea, select, progress, meter, a, summary) { forced-color-adjust: auto; }
}

html[data-fluent-view-transition]::view-transition-group(*) {
  animation-duration: var(--fluent-view-duration);
  animation-timing-function: var(--fluent-view-ease);
}

/* Shared and morphing elements: snapshots are never upscaled so text stays crisp, and the new one fades in over the old without blending. */
html[data-fluent-view-transition]::view-transition-image-pair(*) {
  isolation: auto;
}
/* The fade style's plus-lighter cross-fade only sums correctly inside an isolated pair. */
html[data-fluent-view-transition]::view-transition-image-pair(fluent-view) {
  isolation: isolate;
}
html[data-fluent-view-transition]::view-transition-old(*),
html[data-fluent-view-transition]::view-transition-new(*) {
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: scale-down;
  mix-blend-mode: normal;
  animation-duration: var(--fluent-view-duration);
  animation-timing-function: linear;
}
html[data-fluent-view-transition]::view-transition-old(*) { animation-name: fluent-view-morph-out; }
html[data-fluent-view-transition]::view-transition-new(*) { animation-name: fluent-view-morph-in; }
html[data-fluent-view-transition]::view-transition-old(*):only-child { animation-name: fluent-view-out; }
html[data-fluent-view-transition]::view-transition-new(*):only-child { animation-name: fluent-view-in; }

/* Sliding or scaling content stays inside the view's own box instead of covering its neighbours. */
html[data-fluent-view-transition]::view-transition-group(fluent-view) {
  overflow: clip;
}

html[data-fluent-view-transition]::view-transition-old(root),
html[data-fluent-view-transition]::view-transition-new(root) {
  animation: none;
}

html[data-fluent-view-transition]::view-transition-old(fluent-view),
html[data-fluent-view-transition]::view-transition-new(fluent-view) {
  inset-block-start: 0;
  inline-size: 100%;
  block-size: 100%;
  mix-blend-mode: normal;
  animation-duration: var(--fluent-view-duration);
  animation-timing-function: var(--fluent-view-ease);
  animation-fill-mode: both;
}

/* entrance */
html[data-fluent-view-transition="entrance"]::view-transition-old(fluent-view) {
  animation-name: fluent-view-out;
  animation-duration: calc(var(--fluent-view-duration) * 0.4);
  animation-timing-function: var(--fluent-view-ease-accelerate);
}
html[data-fluent-view-transition="entrance"]::view-transition-new(fluent-view) { animation-name: fluent-view-rise; }

/* fade: complementary linear opacities, so plus-lighter keeps the cross-fade from dipping */
html[data-fluent-view-transition="fade"]::view-transition-old(fluent-view) { animation-name: fluent-view-out; animation-timing-function: linear; mix-blend-mode: plus-lighter; }
html[data-fluent-view-transition="fade"]::view-transition-new(fluent-view) { animation-name: fluent-view-in; animation-timing-function: linear; mix-blend-mode: plus-lighter; }

/* slide */
html[data-fluent-view-transition="slide"]::view-transition-old(fluent-view) { animation-name: fluent-view-slide-out-left; }
html[data-fluent-view-transition="slide"]::view-transition-new(fluent-view) { animation-name: fluent-view-slide-in-right; }
html[data-fluent-view-transition="slide"][data-fluent-view-direction="back"]::view-transition-old(fluent-view) { animation-name: fluent-view-slide-out-right; }
html[data-fluent-view-transition="slide"][data-fluent-view-direction="back"]::view-transition-new(fluent-view) { animation-name: fluent-view-slide-in-left; }

/* scale (drill) */
html[data-fluent-view-transition="scale"]::view-transition-old(fluent-view) { animation-name: fluent-view-drill-out-in; }
html[data-fluent-view-transition="scale"]::view-transition-new(fluent-view) { animation-name: fluent-view-drill-in-in; }
html[data-fluent-view-transition="scale"][data-fluent-view-direction="back"]::view-transition-old(fluent-view) { animation-name: fluent-view-drill-out-back; }
html[data-fluent-view-transition="scale"][data-fluent-view-direction="back"]::view-transition-new(fluent-view) { animation-name: fluent-view-drill-in-back; }

/* wipe */
html[data-fluent-view-transition="wipe"]::view-transition-group(fluent-view) { background: var(--fluent-view-wipe-color); }
html[data-fluent-view-transition="wipe"]::view-transition-old(fluent-view),
html[data-fluent-view-transition="wipe"]::view-transition-new(fluent-view) {
  mix-blend-mode: normal;
  animation-timing-function: linear;
}
html[data-fluent-view-transition="wipe"]::view-transition-old(fluent-view) { animation-name: fluent-view-wipe-cover; }
html[data-fluent-view-transition="wipe"]::view-transition-new(fluent-view) { animation-name: fluent-view-wipe-reveal; }
html[data-fluent-view-transition="wipe"][data-fluent-view-direction="back"]::view-transition-old(fluent-view) { animation-name: fluent-view-wipe-cover-back; }
html[data-fluent-view-transition="wipe"][data-fluent-view-direction="back"]::view-transition-new(fluent-view) { animation-name: fluent-view-wipe-reveal-back; }

@keyframes fluent-view-morph-out { from, 30% { opacity: 1; } 30.1%, to { opacity: 0; } }
@keyframes fluent-view-morph-in { from { opacity: 0; } 30%, to { opacity: 1; } }

@keyframes fluent-view-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fluent-view-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes fluent-view-rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

@keyframes fluent-view-slide-in-right { from { opacity: 0; transform: translateX(80px); } to { opacity: 1; transform: none; } }
@keyframes fluent-view-slide-in-left { from { opacity: 0; transform: translateX(-80px); } to { opacity: 1; transform: none; } }
@keyframes fluent-view-slide-out-left { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(-80px); } }
@keyframes fluent-view-slide-out-right { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(80px); } }

@keyframes fluent-view-drill-in-in { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes fluent-view-drill-out-in { from { opacity: 1; transform: none; } to { opacity: 0; transform: scale(1.06); } }
@keyframes fluent-view-drill-in-back { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
@keyframes fluent-view-drill-out-back { from { opacity: 1; transform: none; } to { opacity: 0; transform: scale(0.94); } }

@keyframes fluent-view-wipe-cover {
  from { clip-path: inset(0 0 0 0); animation-timing-function: var(--fluent-view-ease); }
  50%, to { clip-path: inset(0 0 0 100%); }
}
@keyframes fluent-view-wipe-reveal {
  from, 50% { clip-path: inset(0 100% 0 0); animation-timing-function: var(--fluent-view-ease); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes fluent-view-wipe-cover-back {
  from { clip-path: inset(0 0 0 0); animation-timing-function: var(--fluent-view-ease); }
  50%, to { clip-path: inset(0 100% 0 0); }
}
@keyframes fluent-view-wipe-reveal-back {
  from, 50% { clip-path: inset(0 0 0 100%); animation-timing-function: var(--fluent-view-ease); }
  to { clip-path: inset(0 0 0 0); }
}

.fluent-gauge { --fluent-gauge-size: 120px; position: relative; display: inline-block; flex: none; width: var(--fluent-gauge-size); height: var(--fluent-gauge-size); color: var(--fluent-text); }
.fluent-gauge svg { display: block; width: 100%; height: 100%; overflow: visible; }
.fluent-gauge__track,
.fluent-gauge__value { fill: none; stroke-width: 8; stroke-linecap: round; }
.fluent-gauge__track { stroke: color-mix(in srgb, var(--fluent-control-strong) 35%, transparent); }
.fluent-gauge__value { stroke: var(--fluent-accent); transition: stroke-dashoffset var(--fluent-normal) var(--fluent-ease), opacity 0s; }
/* An empty arc would still draw a round cap, so it is hidden once the sweep down to zero has finished. */
.fluent-gauge__value.is-empty { opacity: 0; transition: stroke-dashoffset var(--fluent-normal) var(--fluent-ease), opacity 0s linear var(--fluent-normal); }
.fluent-gauge__content { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.fluent-gauge__number { font-size: calc(var(--fluent-gauge-size) * 0.22); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.fluent-gauge__caption { position: absolute; left: 0; right: 0; top: 66%; text-align: center; font-size: max(10px, calc(var(--fluent-gauge-size) * 0.1)); line-height: 1.2; color: var(--fluent-muted); }
@media (forced-colors: active) {
  .fluent-gauge { color: CanvasText; }
  .fluent-gauge__track { stroke: GrayText; }
  .fluent-gauge__value { stroke: Highlight; }
  .fluent-gauge__number, .fluent-gauge__caption { color: CanvasText; }
}
