/* The xypad as plain CSS on its parts, generated by registry:build. */
:where([data-slot=xypad], [data-slot=xypad] *) {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid var(--border);
}
:where([data-slot=xypad] svg) {
  display: block;
  vertical-align: middle;
}
:where([data-slot=xypad] :is(input, button)) {
  font: inherit;
  color: inherit;
  background-color: transparent;
}
@layer properties;
:root, :host {
  --radius-md: calc(var(--radius) - 2px);
}
[data-slot=xypad][data-fill] {
  display: flex;
  min-height: 0px;
  flex-grow: 1;
  flex-direction: column;
}
[data-slot=xypad]:where([data-disabled="true"]), [data-slot=xypad]:where([data-disabled]:not([data-disabled="false"])) {
  cursor: not-allowed;
}
[data-slot=xypad-control] {
  position: relative;
  display: block;
  width: 100%;
  cursor: crosshair;
  touch-action: none;
  overflow: hidden;
  border-radius: calc(var(--radius) + 4px);
  border-style: var(--tw-border-style);
  border-width: 1px;
  border-color: transparent;
  background-color: var(--card);
  --tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  --tw-ring-color: var(--foreground);
  @supports (color: color-mix(in lab, red, red)) {
    --tw-ring-color: color-mix(in oklab, var(--foreground) 10%, transparent);
  }
  transition-property: color,border-color,box-shadow,opacity;
  transition-timing-function: var(--tw-ease, var(--default-transition-timing-function, cubic-bezier(0.4, 0, 0.2, 1)));
  transition-duration: var(--tw-duration, var(--default-transition-duration, 150ms));
  --tw-duration: 150ms;
  transition-duration: 150ms;
  --tw-ease: var(--ease-out, cubic-bezier(0, 0, 0.2, 1));
  transition-timing-function: var(--ease-out, cubic-bezier(0, 0, 0.2, 1));
  -webkit-user-select: none;
  user-select: none;
  &:hover {
    @media (hover: hover) {
      --tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
      box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
    }
  }
  &:hover {
    @media (hover: hover) {
      --tw-ring-color: var(--ring);
      @supports (color: color-mix(in lab, red, red)) {
        --tw-ring-color: color-mix(in oklab, var(--ring) 50%, transparent);
      }
    }
  }
  &:active {
    border-color: var(--ring);
  }
  &:active {
    --tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }
  &:active {
    --tw-ring-color: var(--ring);
    @supports (color: color-mix(in lab, red, red)) {
      --tw-ring-color: color-mix(in oklab, var(--ring) 50%, transparent);
    }
  }
  :where(*[data-fill]) & {
    min-height: calc(var(--spacing, 0.25rem) * 16);
  }
  :where(*[data-fill]) & {
    flex-grow: 1;
  }
  :where(*[data-fill]) & {
    flex-basis: 0px;
  }
  &:has(*:focus-visible) {
    border-color: var(--ring);
  }
  &:has(*:focus-visible) {
    --tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }
  &:has(*:focus-visible) {
    --tw-ring-color: var(--ring);
    @supports (color: color-mix(in lab, red, red)) {
      --tw-ring-color: color-mix(in oklab, var(--ring) 50%, transparent);
    }
  }
  @media (prefers-reduced-motion: reduce) {
    transition-property: none;
  }
  &:where([data-disabled="true"]), &:where([data-disabled]:not([data-disabled="false"])) {
    pointer-events: none;
  }
  &:where([data-disabled="true"]), &:where([data-disabled]:not([data-disabled="false"])) {
    opacity: 50%;
  }
}
[data-slot=xypad-grid] {
  pointer-events: none;
  position: absolute;
  inset: 0px;
}
[data-slot=xypad-grid-line] {
  position: absolute;
  background-color: var(--border);
  opacity: 30%;
  &[data-orientation="horizontal"] {
    inset-inline: 0px;
  }
  &[data-orientation="horizontal"] {
    height: 1px;
  }
  &[data-orientation="vertical"] {
    inset-block: 0px;
  }
  &[data-orientation="vertical"] {
    width: 1px;
  }
}
[data-slot=xypad-crosshair] {
  pointer-events: none;
  position: absolute;
  background-color: var(--primary);
  opacity: 50%;
  &[data-orientation="horizontal"] {
    inset-inline: 0px;
  }
  &[data-orientation="horizontal"] {
    top: var(--xy-pad-y);
  }
  &[data-orientation="horizontal"] {
    height: 1px;
  }
  &[data-orientation="vertical"] {
    inset-block: 0px;
  }
  &[data-orientation="vertical"] {
    left: var(--xy-pad-x);
  }
  &[data-orientation="vertical"] {
    width: 1px;
  }
}
[data-slot=xypad-thumb] {
  pointer-events: none;
  position: absolute;
  width: calc(var(--spacing, 0.25rem) * 5);
  height: calc(var(--spacing, 0.25rem) * 5);
}
[data-slot=xypad-cursor-glow] {
  position: absolute;
  inset: 0px;
  border-radius: calc(infinity * 1px);
  background-color: var(--primary);
  opacity: 20%;
  --tw-blur: blur(var(--blur-sm, 8px));
  filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
  transition-property: opacity;
  transition-timing-function: var(--tw-ease, var(--default-transition-timing-function, cubic-bezier(0.4, 0, 0.2, 1)));
  transition-duration: var(--tw-duration, var(--default-transition-duration, 150ms));
  --tw-duration: 200ms;
  transition-duration: 200ms;
  @media (prefers-reduced-motion: reduce) {
    transition-property: none;
  }
}
[data-slot=xypad-cursor-dot] {
  position: absolute;
  inset: var(--spacing, 0.25rem);
  border-radius: min(var(--radius-md), 4px);
  background-color: var(--primary);
  --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
}
[data-slot=xypad-cursor-highlight] {
  position: absolute;
  inset: calc(var(--spacing, 0.25rem) * 2);
  border-radius: calc(infinity * 1px);
  background-color: var(--primary-foreground);
  opacity: 30%;
}
[data-slot=xypad-value] {
  position: absolute;
  top: calc(var(--spacing, 0.25rem) * 2.5);
  right: calc(var(--spacing, 0.25rem) * 2.5);
  z-index: 10;
  border-radius: min(var(--radius-md), 10px);
  background-color: var(--background);
  @supports (color: color-mix(in lab, red, red)) {
    background-color: color-mix(in oklab, var(--background) 90%, transparent);
  }
  padding-inline: calc(var(--spacing, 0.25rem) * 2);
  padding-block: var(--spacing, 0.25rem);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New',
    monospace);
  font-size: var(--text-xs, 0.75rem);
  line-height: var(--tw-leading, var(--text-xs--line-height, calc(1 / 0.75)));
  color: var(--muted-foreground);
  --tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  --tw-ring-color: var(--foreground);
  @supports (color: color-mix(in lab, red, red)) {
    --tw-ring-color: color-mix(in oklab, var(--foreground) 10%, transparent);
  }
  --tw-backdrop-blur: blur(var(--blur-md, 12px));
  -webkit-backdrop-filter: var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, );
  backdrop-filter: var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, );
}
[data-slot=xypad]:where(:not([data-size]), [data-size=default]) [data-slot=xypad-control] {
  height: calc(var(--spacing, 0.25rem) * 48);
}
[data-slot=xypad][data-size=lg] [data-slot=xypad-control] {
  height: calc(var(--spacing, 0.25rem) * 64);
}
[data-slot=xypad][data-size=sm] [data-slot=xypad-control] {
  height: calc(var(--spacing, 0.25rem) * 40);
}
[data-slot=xypad][data-size=xl] [data-slot=xypad-control] {
  height: calc(var(--spacing, 0.25rem) * 96);
}
@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}
@property --tw-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-inset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-inset-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-inset-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-ring-color {
  syntax: "*";
  inherits: false;
}
@property --tw-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-inset-ring-color {
  syntax: "*";
  inherits: false;
}
@property --tw-inset-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-ring-inset {
  syntax: "*";
  inherits: false;
}
@property --tw-ring-offset-width {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}
@property --tw-ring-offset-color {
  syntax: "*";
  inherits: false;
  initial-value: #fff;
}
@property --tw-ring-offset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-duration {
  syntax: "*";
  inherits: false;
}
@property --tw-ease {
  syntax: "*";
  inherits: false;
}
@property --tw-blur {
  syntax: "*";
  inherits: false;
}
@property --tw-brightness {
  syntax: "*";
  inherits: false;
}
@property --tw-contrast {
  syntax: "*";
  inherits: false;
}
@property --tw-grayscale {
  syntax: "*";
  inherits: false;
}
@property --tw-hue-rotate {
  syntax: "*";
  inherits: false;
}
@property --tw-invert {
  syntax: "*";
  inherits: false;
}
@property --tw-opacity {
  syntax: "*";
  inherits: false;
}
@property --tw-saturate {
  syntax: "*";
  inherits: false;
}
@property --tw-sepia {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-blur {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-brightness {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-contrast {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-grayscale {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-hue-rotate {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-invert {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-opacity {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-saturate {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-sepia {
  syntax: "*";
  inherits: false;
}
@layer properties {
  @supports ((-webkit-hyphens: none) and (not (margin-trim: block))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
    *, ::before, ::after, ::backdrop {
      --tw-border-style: solid;
      --tw-shadow: 0 0 #0000;
      --tw-shadow-color: initial;
      --tw-shadow-alpha: 100%;
      --tw-inset-shadow: 0 0 #0000;
      --tw-inset-shadow-color: initial;
      --tw-inset-shadow-alpha: 100%;
      --tw-ring-color: initial;
      --tw-ring-shadow: 0 0 #0000;
      --tw-inset-ring-color: initial;
      --tw-inset-ring-shadow: 0 0 #0000;
      --tw-ring-inset: initial;
      --tw-ring-offset-width: 0px;
      --tw-ring-offset-color: #fff;
      --tw-ring-offset-shadow: 0 0 #0000;
      --tw-duration: initial;
      --tw-ease: initial;
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
      --tw-backdrop-blur: initial;
      --tw-backdrop-brightness: initial;
      --tw-backdrop-contrast: initial;
      --tw-backdrop-grayscale: initial;
      --tw-backdrop-hue-rotate: initial;
      --tw-backdrop-invert: initial;
      --tw-backdrop-opacity: initial;
      --tw-backdrop-saturate: initial;
      --tw-backdrop-sepia: initial;
    }
  }
}
