/* Generated from app/styles/gummy-form-controls.css. Do not edit this public copy. */
/* Stage 3 form foundations -------------------------------------------------
   Editing planes stay optically stable. Fruit gel is concentrated in the
   connected shell edge, attached status reservoir, and local state motion. */

:root {
  --gummy-form-plane: oklch(0.992 0.012 78 / 0.92);
  --gummy-form-plane-strong: oklch(0.997 0.008 78 / 0.98);
  --gummy-form-shell: oklch(0.79 0.12 303 / 0.26);
  --gummy-form-shell-strong: oklch(0.64 0.2 303 / 0.56);
  --gummy-form-depth: oklch(0.39 0.15 303 / 0.16);
  --gummy-form-highlight: oklch(1 0 0 / 0.78);
  --gummy-form-placeholder: oklch(0.54 0.035 309);
  --gummy-form-error: oklch(0.57 0.24 10);
  --gummy-form-success: oklch(0.49 0.15 126);
  --gummy-form-focus: oklch(0.7 0.17 218);
  --gummy-form-focus-soft: oklch(0.86 0.12 207 / 0.48);
}

:root[data-theme="dark"] {
  --gummy-form-plane: oklch(0.285 0.055 311 / 0.9);
  --gummy-form-plane-strong: oklch(0.305 0.058 311 / 0.96);
  --gummy-form-shell: oklch(0.68 0.15 303 / 0.28);
  --gummy-form-shell-strong: oklch(0.76 0.17 303 / 0.6);
  --gummy-form-depth: oklch(0.08 0.05 311 / 0.42);
  --gummy-form-highlight: oklch(1 0 0 / 0.38);
  --gummy-form-placeholder: oklch(0.7 0.035 311);
  --gummy-form-error: oklch(0.76 0.18 12);
  --gummy-form-success: oklch(0.8 0.18 126);
  --gummy-form-focus: oklch(0.8 0.14 207);
  --gummy-form-focus-soft: oklch(0.64 0.16 213 / 0.38);
}

.gummy-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.gummy-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  gap: 14px;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 690;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.gummy-label__copy {
  min-width: 0;
}

.gummy-label__meta {
  flex: none;
  color: var(--muted);
  font-family: var(--font-mono), monospace;
  font-size: 0.625rem;
  font-weight: 650;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.gummy-label[data-required] .gummy-label__meta {
  color: color-mix(in oklch, var(--fruit-raspberry-depth) 72%, var(--ink));
}

.gummy-label[data-read-only] .gummy-label__meta {
  color: color-mix(in oklch, var(--fruit-grape-depth) 58%, var(--ink));
}

.gummy-label[data-disabled] {
  cursor: not-allowed;
  opacity: 0.54;
}

.gummy-form-message-mark {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50% 46% 53% 42%;
  background: currentColor;
  box-shadow: inset 1px 1px 1px oklch(1 0 0 / 0.42);
}

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

.gummy-field {
  --field-accent-light: var(--fruit-grape-light);
  --field-accent-core: var(--fruit-grape-core);
  --field-accent-rim: var(--fruit-grape-rim);
  display: grid;
  width: min(100%, 34rem);
  gap: 8px;
}

.gummy-field[data-orientation="horizontal"] {
  grid-template-columns: minmax(8rem, 0.42fr) minmax(0, 1fr);
  align-items: start;
  column-gap: clamp(18px, 4vw, 42px);
}

.gummy-field[data-orientation="horizontal"] > .gummy-label {
  padding-block: 13px;
}

.gummy-field[data-density="compact"] {
  gap: 5px;
}

.gummy-field__body {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.gummy-field__control-shell {
  position: relative;
  display: grid;
  min-height: 48px;
  overflow: hidden;
  border-radius: 14px 18px 15px 13px;
  background:
    radial-gradient(ellipse at 96% 92%, var(--field-accent-core), transparent 37%),
    linear-gradient(145deg, var(--gummy-form-highlight), transparent 24%),
    color-mix(in oklch, var(--field-accent-light) 32%, var(--gummy-form-shell));
  box-shadow:
    inset 0 0 0 1px color-mix(in oklch, var(--field-accent-rim) 38%, transparent),
    inset 0 -4px 9px color-mix(in oklch, var(--field-accent-rim) 14%, transparent),
    0 5px 13px var(--gummy-form-depth);
  isolation: isolate;
  transition:
    border-radius 160ms ease,
    box-shadow 180ms ease,
    filter 160ms ease,
    transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gummy-field__control-shell::before {
  position: absolute;
  z-index: 0;
  inset: 2px;
  border-radius: 12px 15px 12px 11px;
  background: var(--gummy-form-plane);
  box-shadow:
    inset 1px 1px 1px var(--gummy-form-highlight),
    inset 0 -1px 2px color-mix(in oklch, var(--ink) 8%, transparent);
  content: "";
}

.gummy-field__pool {
  position: absolute;
  z-index: 1;
  inline-size: 70px;
  block-size: 44px;
  inset-block-end: 3px;
  inset-inline-end: 3px;
  border-radius: 72% 27% 22% 78% / 62% 34% 66% 38%;
  background:
    radial-gradient(ellipse at 32% 18%, oklch(1 0 0 / 0.8) 0 6%, transparent 22%),
    linear-gradient(145deg, color-mix(in oklch, var(--field-accent-light) 52%, var(--field-accent-core)), var(--field-accent-core) 54%, var(--field-accent-rim));
  box-shadow:
    inset 3px 3px 6px oklch(1 0 0 / 0.26),
    inset -4px -5px 7px color-mix(in oklch, var(--field-accent-rim) 44%, transparent);
  opacity: 0.66;
  transform: translate(17px, 10px) rotate(-8deg) scale(1.08, 0.92);
  transform-origin: bottom right;
  transition:
    opacity 180ms ease,
    transform 220ms cubic-bezier(0.2, 0.9, 0.28, 1);
}

[dir="rtl"] .gummy-field__pool {
  transform: translate(-17px, 10px) rotate(8deg) scale(1.08, 0.92);
  transform-origin: bottom left;
}

.gummy-field__control {
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 11px 58px 11px 15px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  touch-action: manipulation;
}

[dir="rtl"] .gummy-field__control {
  padding-right: 15px;
  padding-left: 58px;
}

.gummy-field__control::placeholder {
  color: var(--gummy-form-placeholder);
  opacity: 1;
}

.gummy-field__status {
  position: absolute;
  z-index: 4;
  inset-block-start: 50%;
  inset-inline-end: 18px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50% 44% 52% 47%;
  background: color-mix(in oklch, var(--gummy-form-plane-strong) 78%, transparent);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 850;
  transform: translateY(-50%);
}

.gummy-field__message {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.gummy-field__message--error,
.gummy-field__message--success {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 620;
}

.gummy-field__message--error { color: var(--gummy-form-error); }
.gummy-field__message--success { color: var(--gummy-form-success); }

.gummy-field[data-status="error"] {
  --field-accent-light: var(--fruit-raspberry-light);
  --field-accent-core: var(--fruit-raspberry-core);
  --field-accent-rim: var(--fruit-raspberry-rim);
}

.gummy-field[data-status="success"] {
  --field-accent-light: var(--fruit-lime-light);
  --field-accent-core: var(--fruit-lime-core);
  --field-accent-rim: var(--fruit-lime-rim);
}

.gummy-field:has(.gummy-field__control:focus-visible) {
  --field-accent-light: var(--fruit-aqua-light);
  --field-accent-core: var(--fruit-aqua-core);
  --field-accent-rim: var(--fruit-aqua-rim);
}

.form-preview-focus .gummy-field {
  --field-accent-light: var(--fruit-aqua-light);
  --field-accent-core: var(--fruit-aqua-core);
  --field-accent-rim: var(--fruit-aqua-rim);
}

.gummy-field:has(.gummy-field__control:focus-visible) .gummy-field__control-shell,
.form-preview-focus .gummy-field__control-shell {
  border-radius: 17px 14px 18px 13px;
  box-shadow:
    inset 0 0 0 2px color-mix(in oklch, var(--gummy-form-focus) 78%, transparent),
    inset 0 -5px 10px color-mix(in oklch, var(--fruit-aqua-rim) 18%, transparent),
    0 0 0 4px var(--gummy-form-focus-soft);
}

.gummy-field:has(.gummy-field__control:focus-visible) .gummy-field__pool,
.form-preview-focus .gummy-field__pool {
  opacity: 0.82;
  transform: translate(10px, 7px) rotate(1deg) scale(1.18, 0.98);
}

.gummy-field[data-disabled] {
  opacity: 0.58;
}

.gummy-field[data-disabled] .gummy-label {
  cursor: not-allowed;
}

.gummy-field[data-disabled] .gummy-field__control-shell {
  box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--line) 62%, transparent);
}

.gummy-field[data-read-only] .gummy-field__control-shell {
  box-shadow:
    inset 0 0 0 1px color-mix(in oklch, var(--fruit-grape-rim) 36%, transparent),
    inset 0 -3px 7px color-mix(in oklch, var(--fruit-grape-rim) 11%, transparent);
}

/* Textarea --------------------------------------------------------------- */

.gummy-textarea {
  --textarea-accent-light: var(--fruit-grape-light);
  --textarea-accent-core: var(--fruit-grape-core);
  --textarea-accent-rim: var(--fruit-grape-rim);
  display: grid;
  width: min(100%, 38rem);
  gap: 8px;
}

.gummy-textarea__shell {
  position: relative;
  overflow: hidden;
  min-height: 128px;
  border-radius: 16px 20px 18px 14px;
  background:
    radial-gradient(ellipse at 96% 94%, var(--textarea-accent-core), transparent 30%),
    linear-gradient(145deg, var(--gummy-form-highlight), transparent 18%),
    color-mix(in oklch, var(--textarea-accent-light) 30%, var(--gummy-form-shell));
  box-shadow:
    inset 0 0 0 1px color-mix(in oklch, var(--textarea-accent-rim) 38%, transparent),
    inset 0 -5px 10px color-mix(in oklch, var(--textarea-accent-rim) 14%, transparent),
    0 5px 13px var(--gummy-form-depth);
  isolation: isolate;
  transition:
    border-radius 170ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.gummy-textarea__shell::before {
  position: absolute;
  z-index: 0;
  inset: 2px;
  border-radius: 14px 17px 15px 12px;
  background: var(--gummy-form-plane);
  box-shadow: inset 1px 1px 1px var(--gummy-form-highlight);
  content: "";
}

.gummy-textarea__pool {
  position: absolute;
  z-index: 1;
  inline-size: 92px;
  block-size: 58px;
  inset-block-end: 3px;
  inset-inline-end: 3px;
  border-radius: 76% 24% 20% 80% / 64% 31% 69% 36%;
  background:
    radial-gradient(ellipse at 32% 18%, oklch(1 0 0 / 0.8) 0 6%, transparent 20%),
    linear-gradient(145deg, color-mix(in oklch, var(--textarea-accent-light) 52%, var(--textarea-accent-core)), var(--textarea-accent-core) 54%, var(--textarea-accent-rim));
  box-shadow:
    inset 4px 4px 7px oklch(1 0 0 / 0.25),
    inset -5px -6px 8px color-mix(in oklch, var(--textarea-accent-rim) 44%, transparent);
  opacity: 0.64;
  transform: translate(23px, 16px) rotate(-8deg) scale(1.08, 0.92);
  transform-origin: bottom right;
  transition:
    opacity 180ms ease,
    transform 220ms cubic-bezier(0.2, 0.9, 0.28, 1);
}

[dir="rtl"] .gummy-textarea__pool {
  transform: translate(-23px, 16px) rotate(8deg) scale(1.08, 0.92);
  transform-origin: bottom left;
}

.gummy-textarea__control {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  min-height: 128px;
  padding: 14px 18px 42px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  line-height: 1.55;
  touch-action: manipulation;
}

.gummy-textarea[data-resize="none"] .gummy-textarea__control { resize: none; }
.gummy-textarea[data-resize="vertical"] .gummy-textarea__control { resize: vertical; }
.gummy-textarea[data-resize="both"] .gummy-textarea__control { resize: both; }

.gummy-textarea__control::placeholder {
  color: var(--gummy-form-placeholder);
  opacity: 1;
}

.gummy-textarea__status {
  position: absolute;
  z-index: 4;
  inset-inline-end: 19px;
  inset-block-end: 17px;
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 52% 44% 57% 41%;
  background: color-mix(in oklch, var(--gummy-form-plane-strong) 80%, transparent);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 850;
}

.gummy-textarea__support {
  display: flex;
  align-items: start;
  justify-content: space-between;
  min-height: 1.1rem;
  gap: 16px;
}

.gummy-textarea__support > div {
  display: grid;
  gap: 4px;
}

.gummy-textarea__message {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.gummy-textarea__message--error,
.gummy-textarea__message--success {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 620;
}

.gummy-textarea__message--error { color: var(--gummy-form-error); }
.gummy-textarea__message--success { color: var(--gummy-form-success); }

.gummy-textarea__count {
  flex: none;
  color: var(--muted);
  font-family: var(--font-mono), monospace;
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
}

.gummy-textarea[data-status="error"] {
  --textarea-accent-light: var(--fruit-raspberry-light);
  --textarea-accent-core: var(--fruit-raspberry-core);
  --textarea-accent-rim: var(--fruit-raspberry-rim);
}

.gummy-textarea[data-status="success"] {
  --textarea-accent-light: var(--fruit-lime-light);
  --textarea-accent-core: var(--fruit-lime-core);
  --textarea-accent-rim: var(--fruit-lime-rim);
}

.gummy-textarea:has(.gummy-textarea__control:focus-visible) {
  --textarea-accent-light: var(--fruit-aqua-light);
  --textarea-accent-core: var(--fruit-aqua-core);
  --textarea-accent-rim: var(--fruit-aqua-rim);
}

.form-preview-focus .gummy-textarea {
  --textarea-accent-light: var(--fruit-aqua-light);
  --textarea-accent-core: var(--fruit-aqua-core);
  --textarea-accent-rim: var(--fruit-aqua-rim);
}

.gummy-textarea:has(.gummy-textarea__control:focus-visible) .gummy-textarea__shell,
.form-preview-focus .gummy-textarea__shell {
  border-radius: 19px 15px 21px 13px;
  box-shadow:
    inset 0 0 0 2px color-mix(in oklch, var(--gummy-form-focus) 78%, transparent),
    inset 0 -6px 11px color-mix(in oklch, var(--fruit-aqua-rim) 17%, transparent),
    0 0 0 4px var(--gummy-form-focus-soft);
}

.gummy-textarea:has(.gummy-textarea__control:focus-visible) .gummy-textarea__pool,
.form-preview-focus .gummy-textarea__pool {
  opacity: 0.84;
  transform: translate(14px, 9px) rotate(1deg) scale(1.16, 0.98);
}

.gummy-textarea[data-disabled] {
  opacity: 0.56;
}

.gummy-textarea[data-disabled] .gummy-label {
  cursor: not-allowed;
}

.gummy-textarea[data-read-only] .gummy-textarea__shell {
  box-shadow:
    inset 0 0 0 1px color-mix(in oklch, var(--fruit-grape-rim) 36%, transparent),
    inset 0 -3px 7px color-mix(in oklch, var(--fruit-grape-rim) 11%, transparent);
}

/* Checkbox --------------------------------------------------------------- */

.gummy-checkbox {
  --check-light: var(--fruit-grape-light);
  --check-core: var(--fruit-grape-core);
  --check-rim: var(--fruit-grape-rim);
  width: min(100%, 34rem);
}

.gummy-checkbox__label {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
  cursor: pointer;
  touch-action: manipulation;
}

.gummy-checkbox__target,
.gummy-radio-item__target {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  flex: none;
  place-items: center;
}

.gummy-checkbox__input,
.gummy-radio-item__input {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: inherit;
  opacity: 0;
}

.gummy-checkbox__indicator {
  position: relative;
  display: grid;
  width: 27px;
  height: 27px;
  overflow: hidden;
  place-items: center;
  border-radius: 9px 11px 10px 8px;
  background:
    linear-gradient(145deg, var(--gummy-form-highlight), transparent 28%),
    color-mix(in oklch, var(--check-light) 32%, var(--gummy-form-shell));
  box-shadow:
    inset 0 0 0 1px color-mix(in oklch, var(--check-rim) 42%, transparent),
    inset 0 -3px 6px color-mix(in oklch, var(--check-rim) 15%, transparent),
    0 3px 8px var(--gummy-form-depth);
  transition:
    border-radius 150ms ease,
    box-shadow 170ms ease,
    transform 180ms cubic-bezier(0.2, 0.9, 0.28, 1);
}

.gummy-checkbox__indicator::before {
  position: absolute;
  inset: 2px;
  border-radius: 7px 8px 8px 6px;
  background: var(--gummy-form-plane);
  box-shadow: inset 1px 1px 1px var(--gummy-form-highlight);
  content: "";
}

.gummy-checkbox__pool {
  position: absolute;
  z-index: 1;
  width: 22px;
  height: 21px;
  inset-inline-end: -4px;
  inset-block-end: -4px;
  border-radius: 62% 37% 44% 58% / 56% 42% 62% 40%;
  background: linear-gradient(145deg, var(--check-light), var(--check-core) 58%, var(--check-rim));
  box-shadow: inset 3px 3px 4px oklch(1 0 0 / 0.28);
  opacity: 0.5;
  transform: rotate(-7deg);
  transition:
    opacity 160ms ease,
    transform 220ms cubic-bezier(0.2, 0.9, 0.28, 1);
}

.gummy-checkbox__indicator svg,
.gummy-checkbox__mixed {
  position: relative;
  z-index: 2;
  display: none;
}

.gummy-checkbox__indicator svg {
  width: 17px;
  height: 14px;
  overflow: visible;
  fill: none;
  stroke: oklch(0.22 0.07 309);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.8;
}

.gummy-checkbox__mixed {
  width: 13px;
  height: 3px;
  border-radius: 50%;
  background: oklch(0.22 0.07 309);
}

.gummy-checkbox__input:checked + .gummy-checkbox__indicator,
.gummy-checkbox[data-indeterminate] .gummy-checkbox__indicator {
  --check-light: var(--fruit-lime-light);
  --check-core: var(--fruit-lime-core);
  --check-rim: var(--fruit-lime-rim);
  border-radius: 11px 8px 10px 9px;
  box-shadow:
    inset 0 0 0 1px color-mix(in oklch, var(--check-rim) 62%, transparent),
    inset 0 -4px 7px color-mix(in oklch, var(--check-rim) 28%, transparent),
    0 3px 8px color-mix(in oklch, var(--fruit-lime-depth) 24%, transparent);
}

.gummy-checkbox__input:checked + .gummy-checkbox__indicator::before,
.gummy-checkbox[data-indeterminate] .gummy-checkbox__indicator::before {
  background: color-mix(in oklch, var(--fruit-lime-light) 64%, var(--gummy-form-plane));
}

.gummy-checkbox__input:checked + .gummy-checkbox__indicator svg {
  display: block;
  animation: gummy-check-draw 220ms cubic-bezier(0.2, 0.9, 0.28, 1);
}

.gummy-checkbox[data-indeterminate] .gummy-checkbox__indicator svg {
  display: none;
}

.gummy-checkbox[data-indeterminate] .gummy-checkbox__mixed {
  display: block;
}

.gummy-checkbox__input:checked + .gummy-checkbox__indicator .gummy-checkbox__pool,
.gummy-checkbox[data-indeterminate] .gummy-checkbox__pool {
  opacity: 0.9;
  transform: translate(-2px, -2px) rotate(4deg) scale(1.18);
}

[dir="rtl"] .gummy-checkbox__input:checked + .gummy-checkbox__indicator .gummy-checkbox__pool,
[dir="rtl"] .gummy-checkbox[data-indeterminate] .gummy-checkbox__pool {
  transform: translate(2px, -2px) rotate(-4deg) scale(1.18);
}

.gummy-checkbox__copy {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding-block: 10px 6px;
}

.gummy-checkbox__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px;
  font-size: 0.875rem;
  font-weight: 680;
  letter-spacing: -0.012em;
  line-height: 1.35;
}

.gummy-checkbox__description {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.gummy-checkbox__required,
.gummy-checkbox__read-only {
  color: var(--muted);
  font-family: var(--font-mono), monospace;
  font-size: 0.6rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.gummy-checkbox__required { color: var(--gummy-form-error); }

.gummy-checkbox__error {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--gummy-form-error);
  font-size: 0.75rem;
  font-weight: 620;
  line-height: 1.4;
}

.gummy-checkbox__input:focus-visible + .gummy-checkbox__indicator,
.form-preview-focus .gummy-checkbox__indicator {
  --check-light: var(--fruit-aqua-light);
  --check-core: var(--fruit-aqua-core);
  --check-rim: var(--fruit-aqua-rim);
  border-radius: 11px 8px 12px 7px;
  box-shadow:
    inset 0 0 0 2px color-mix(in oklch, var(--gummy-form-focus) 82%, transparent),
    inset 0 -4px 7px color-mix(in oklch, var(--fruit-aqua-rim) 22%, transparent),
    0 0 0 4px var(--gummy-form-focus-soft);
}

.gummy-checkbox[data-invalid] {
  --check-light: var(--fruit-raspberry-light);
  --check-core: var(--fruit-raspberry-core);
  --check-rim: var(--fruit-raspberry-rim);
}

.gummy-checkbox[data-disabled] {
  opacity: 0.52;
}

.gummy-checkbox[data-disabled] .gummy-checkbox__label {
  cursor: not-allowed;
}

.gummy-checkbox[data-read-only] .gummy-checkbox__label {
  cursor: default;
}

/* Radio Group ------------------------------------------------------------ */

.gummy-radio-group {
  min-width: 0;
  width: min(100%, 38rem);
  margin: 0;
  padding: 0;
  border: 0;
}

.gummy-radio-group__legend {
  display: flex;
  width: 100%;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 690;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.gummy-radio-group__legend > :last-child:not(:first-child) {
  color: var(--muted);
  font-family: var(--font-mono), monospace;
  font-size: 0.625rem;
  font-weight: 650;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.gummy-radio-group[data-invalid] .gummy-radio-group__legend > :last-child:not(:first-child) {
  color: var(--gummy-form-error);
}

.gummy-radio-group__description {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.gummy-radio-group__items {
  display: flex;
  gap: 4px 18px;
  margin-block-start: 7px;
}

.gummy-radio-group[data-orientation="vertical"] .gummy-radio-group__items {
  flex-direction: column;
}

.gummy-radio-group[data-orientation="horizontal"] .gummy-radio-group__items {
  flex-flow: row wrap;
}

.gummy-radio-item {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: flex-start;
  gap: 8px;
  color: var(--ink);
  cursor: pointer;
  touch-action: manipulation;
}

.gummy-radio-item__indicator {
  --radio-light: var(--fruit-grape-light);
  --radio-core: var(--fruit-grape-core);
  --radio-rim: var(--fruit-grape-rim);
  position: relative;
  display: grid;
  width: 26px;
  height: 26px;
  overflow: hidden;
  place-items: center;
  border-radius: 53% 47% 55% 45% / 48% 54% 46% 52%;
  background:
    linear-gradient(145deg, var(--gummy-form-highlight), transparent 28%),
    color-mix(in oklch, var(--radio-light) 32%, var(--gummy-form-shell));
  box-shadow:
    inset 0 0 0 1px color-mix(in oklch, var(--radio-rim) 42%, transparent),
    inset 0 -3px 6px color-mix(in oklch, var(--radio-rim) 15%, transparent),
    0 3px 8px var(--gummy-form-depth);
  transition:
    border-radius 150ms ease,
    box-shadow 170ms ease,
    transform 180ms cubic-bezier(0.2, 0.9, 0.28, 1);
}

.gummy-radio-item__indicator::before {
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  background: var(--gummy-form-plane);
  box-shadow: inset 1px 1px 1px var(--gummy-form-highlight);
  content: "";
}

.gummy-radio-item__pool {
  position: absolute;
  z-index: 1;
  width: 19px;
  height: 18px;
  inset-inline-end: -4px;
  inset-block-end: -3px;
  border-radius: 62% 38% 44% 56% / 58% 42% 62% 38%;
  background: linear-gradient(145deg, var(--radio-light), var(--radio-core) 58%, var(--radio-rim));
  opacity: 0.48;
  transform: rotate(-8deg);
  transition:
    opacity 160ms ease,
    transform 220ms cubic-bezier(0.2, 0.9, 0.28, 1);
}

.gummy-radio-item__dot {
  position: relative;
  z-index: 2;
  width: 9px;
  height: 9px;
  border-radius: 48% 52% 46% 54%;
  background: oklch(0.3 0.08 309);
  box-shadow: inset 1px 1px 2px oklch(1 0 0 / 0.35);
  opacity: 0;
  transform: scale(0.3);
  transition:
    opacity 140ms ease,
    transform 200ms cubic-bezier(0.2, 1.2, 0.28, 1);
}

.gummy-radio-item__input:checked + .gummy-radio-item__indicator {
  --radio-light: var(--fruit-lime-light);
  --radio-core: var(--fruit-lime-core);
  --radio-rim: var(--fruit-lime-rim);
  border-radius: 57% 43% 49% 51% / 43% 56% 44% 57%;
}

.gummy-radio-item__input:checked + .gummy-radio-item__indicator::before {
  background: color-mix(in oklch, var(--fruit-lime-light) 58%, var(--gummy-form-plane));
}

.gummy-radio-item__input:checked + .gummy-radio-item__indicator .gummy-radio-item__pool {
  opacity: 0.88;
  transform: translate(-2px, -2px) rotate(5deg) scale(1.14);
}

.gummy-radio-item__input:checked + .gummy-radio-item__indicator .gummy-radio-item__dot {
  opacity: 1;
  transform: scale(1);
}

.gummy-radio-item__input:focus-visible + .gummy-radio-item__indicator,
.form-preview-focus .gummy-radio-item__indicator {
  --radio-light: var(--fruit-aqua-light);
  --radio-core: var(--fruit-aqua-core);
  --radio-rim: var(--fruit-aqua-rim);
  border-radius: 58% 42% 53% 47% / 44% 57% 43% 56%;
  box-shadow:
    inset 0 0 0 2px color-mix(in oklch, var(--gummy-form-focus) 82%, transparent),
    inset 0 -4px 7px color-mix(in oklch, var(--fruit-aqua-rim) 22%, transparent),
    0 0 0 4px var(--gummy-form-focus-soft);
}

.gummy-radio-item__copy {
  display: grid;
  gap: 2px;
  padding-block: 10px 6px;
}

.gummy-radio-item__title {
  font-size: 0.875rem;
  font-weight: 660;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.gummy-radio-item__description {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.42;
}

.gummy-radio-group__error {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 5px 0 0;
  color: var(--gummy-form-error);
  font-size: 0.75rem;
  font-weight: 620;
  line-height: 1.4;
}

.gummy-radio-group[data-invalid] .gummy-radio-item__indicator {
  --radio-light: var(--fruit-raspberry-light);
  --radio-core: var(--fruit-raspberry-core);
  --radio-rim: var(--fruit-raspberry-rim);
}

.gummy-radio-group[data-disabled] {
  opacity: 0.52;
}

.gummy-radio-item[data-disabled] {
  cursor: not-allowed;
  opacity: 0.5;
}

.gummy-radio-item[data-read-only] {
  cursor: default;
}

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

.gummy-native-select {
  --select-light: var(--fruit-grape-light);
  --select-core: var(--fruit-grape-core);
  --select-rim: var(--fruit-grape-rim);
  display: grid;
  width: min(100%, 34rem);
  gap: 8px;
}

.gummy-native-select__shell {
  position: relative;
  min-height: 48px;
  overflow: hidden;
  border-radius: 14px 20px 16px 13px;
  background:
    radial-gradient(ellipse at 96% 92%, var(--select-core), transparent 36%),
    linear-gradient(145deg, var(--gummy-form-highlight), transparent 24%),
    color-mix(in oklch, var(--select-light) 32%, var(--gummy-form-shell));
  box-shadow:
    inset 0 0 0 1px color-mix(in oklch, var(--select-rim) 38%, transparent),
    inset 0 -4px 9px color-mix(in oklch, var(--select-rim) 14%, transparent),
    0 5px 13px var(--gummy-form-depth);
  isolation: isolate;
  transition:
    border-radius 160ms ease,
    box-shadow 180ms ease,
    transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gummy-native-select__shell::before {
  position: absolute;
  z-index: 0;
  inset: 2px;
  border-radius: 12px 17px 13px 11px;
  background: var(--gummy-form-plane);
  box-shadow: inset 1px 1px 1px var(--gummy-form-highlight);
  content: "";
}

.gummy-native-select__pool {
  position: absolute;
  z-index: 1;
  inline-size: 74px;
  block-size: 44px;
  inset-block-end: 3px;
  inset-inline-end: 3px;
  border-radius: 74% 25% 20% 80% / 64% 32% 68% 36%;
  background:
    radial-gradient(ellipse at 32% 18%, oklch(1 0 0 / 0.8) 0 6%, transparent 20%),
    linear-gradient(145deg, color-mix(in oklch, var(--select-light) 52%, var(--select-core)), var(--select-core) 54%, var(--select-rim));
  box-shadow:
    inset 4px 4px 7px oklch(1 0 0 / 0.26),
    inset -4px -5px 7px color-mix(in oklch, var(--select-rim) 44%, transparent);
  opacity: 0.72;
  transform: translate(18px, 10px) rotate(-8deg) scale(1.08, 0.92);
  transform-origin: bottom right;
  transition:
    opacity 180ms ease,
    transform 220ms cubic-bezier(0.2, 0.9, 0.28, 1);
}

[dir="rtl"] .gummy-native-select__pool {
  transform: translate(-18px, 10px) rotate(8deg) scale(1.08, 0.92);
  transform-origin: bottom left;
}

.gummy-native-select__control {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 48px;
  padding: 11px 64px 11px 15px;
  border: 0;
  outline: 0;
  appearance: none;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  touch-action: manipulation;
}

[dir="rtl"] .gummy-native-select__control {
  padding-right: 15px;
  padding-left: 64px;
}

.gummy-native-select__chevron {
  position: absolute;
  z-index: 3;
  inset-block-start: 50%;
  inset-inline-end: 18px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: oklch(0.27 0.07 309);
  pointer-events: none;
  transform: translateY(-50%);
}

.gummy-native-select__chevron svg {
  width: 14px;
  height: 9px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.gummy-native-select__status {
  position: absolute;
  z-index: 4;
  inset-block-start: 50%;
  inset-inline-end: 50px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50% 44% 52% 47%;
  background: color-mix(in oklch, var(--gummy-form-plane-strong) 82%, transparent);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 850;
  transform: translateY(-50%);
}

.gummy-native-select:has(.gummy-native-select__status) .gummy-native-select__control {
  padding-inline-end: 88px;
}

.gummy-native-select__message {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.gummy-native-select__message--error,
.gummy-native-select__message--success {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 620;
}

.gummy-native-select__message--error { color: var(--gummy-form-error); }
.gummy-native-select__message--success { color: var(--gummy-form-success); }

.gummy-native-select[data-status="error"] {
  --select-light: var(--fruit-raspberry-light);
  --select-core: var(--fruit-raspberry-core);
  --select-rim: var(--fruit-raspberry-rim);
}

.gummy-native-select[data-status="success"] {
  --select-light: var(--fruit-lime-light);
  --select-core: var(--fruit-lime-core);
  --select-rim: var(--fruit-lime-rim);
}

.gummy-native-select:has(.gummy-native-select__control:focus-visible) {
  --select-light: var(--fruit-aqua-light);
  --select-core: var(--fruit-aqua-core);
  --select-rim: var(--fruit-aqua-rim);
}

.form-preview-focus .gummy-native-select {
  --select-light: var(--fruit-aqua-light);
  --select-core: var(--fruit-aqua-core);
  --select-rim: var(--fruit-aqua-rim);
}

.gummy-native-select:has(.gummy-native-select__control:focus-visible) .gummy-native-select__shell,
.form-preview-focus .gummy-native-select__shell {
  border-radius: 17px 15px 19px 13px;
  box-shadow:
    inset 0 0 0 2px color-mix(in oklch, var(--gummy-form-focus) 78%, transparent),
    inset 0 -5px 10px color-mix(in oklch, var(--fruit-aqua-rim) 17%, transparent),
    0 0 0 4px var(--gummy-form-focus-soft);
}

.gummy-native-select:has(.gummy-native-select__control:focus-visible) .gummy-native-select__pool,
.form-preview-focus .gummy-native-select__pool {
  opacity: 0.86;
  transform: translate(10px, 7px) rotate(1deg) scale(1.18, 0.98);
}

.gummy-native-select[data-disabled] {
  opacity: 0.56;
}

.gummy-native-select[data-disabled] .gummy-label,
.gummy-native-select[data-disabled] .gummy-native-select__control {
  cursor: not-allowed;
}

.gummy-native-select[data-read-only] .gummy-native-select__control {
  cursor: default;
}

/* Shared pointer, motion, responsive, theme details ---------------------- */

@media (hover: hover) and (pointer: fine) {
  .gummy-field:not([data-disabled]):hover .gummy-field__control-shell,
  .form-preview-hover .gummy-field__control-shell,
  .gummy-textarea:not([data-disabled]):hover .gummy-textarea__shell,
  .form-preview-hover .gummy-textarea__shell,
  .gummy-native-select:not([data-disabled], [data-read-only]):hover .gummy-native-select__shell,
  .form-preview-hover .gummy-native-select__shell {
    filter: saturate(1.07) brightness(1.015);
    transform: translateY(-1px);
  }

  .gummy-field:not([data-disabled]):hover .gummy-field__pool,
  .gummy-textarea:not([data-disabled]):hover .gummy-textarea__pool,
  .gummy-native-select:not([data-disabled], [data-read-only]):hover .gummy-native-select__pool {
    opacity: 0.78;
  }

  .gummy-checkbox:not([data-disabled], [data-read-only]) .gummy-checkbox__label:hover .gummy-checkbox__indicator,
  .gummy-radio-item:not([data-disabled], [data-read-only]):hover .gummy-radio-item__indicator,
  .form-preview-hover .gummy-checkbox__indicator,
  .form-preview-hover .gummy-radio-item__indicator {
    filter: saturate(1.08) brightness(1.02);
    transform: translateY(-1px) rotate(-1deg);
  }
}

.gummy-checkbox:not([data-disabled], [data-read-only]) .gummy-checkbox__label:has(.gummy-checkbox__input:active) .gummy-checkbox__indicator,
.gummy-radio-item:not([data-disabled], [data-read-only]):has(.gummy-radio-item__input:active) .gummy-radio-item__indicator {
  border-radius: 12px 7px 11px 8px;
  transform: scaleX(1.12) scaleY(0.84);
  transition-duration: 80ms;
}

.gummy-native-select:not([data-disabled], [data-read-only]) .gummy-native-select__shell:has(.gummy-native-select__control:active) {
  transform: scaleX(1.012) scaleY(0.97);
  transition-duration: 90ms;
}

:root[data-theme="dark"] .gummy-field__control-shell::before,
:root[data-theme="dark"] .gummy-textarea__shell::before,
:root[data-theme="dark"] .gummy-native-select__shell::before,
:root[data-theme="dark"] .gummy-checkbox__indicator::before,
:root[data-theme="dark"] .gummy-radio-item__indicator::before {
  box-shadow:
    inset 1px 1px 1px oklch(1 0 0 / 0.16),
    inset 0 -1px 2px oklch(0.06 0.04 311 / 0.32);
}

:root[data-theme="dark"] .gummy-native-select__chevron,
:root[data-theme="dark"] .gummy-checkbox__indicator svg,
:root[data-theme="dark"] .gummy-checkbox__mixed,
:root[data-theme="dark"] .gummy-radio-item__dot {
  color: oklch(0.22 0.06 309);
  stroke: oklch(0.22 0.06 309);
}

@keyframes gummy-check-draw {
  0% { opacity: 0; transform: scale(0.55) rotate(-7deg); }
  62% { opacity: 1; transform: scale(1.12) rotate(2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

@media (max-width: 620px) {
  .gummy-field[data-orientation="horizontal"] {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .gummy-field[data-orientation="horizontal"] > .gummy-label {
    padding-block: 0;
  }

  .gummy-radio-group[data-orientation="horizontal"] .gummy-radio-group__items {
    flex-direction: column;
  }

  .gummy-field,
  .gummy-textarea,
  .gummy-checkbox,
  .gummy-radio-group,
  .gummy-native-select {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gummy-field__control-shell,
  .gummy-field__pool,
  .gummy-textarea__shell,
  .gummy-textarea__pool,
  .gummy-checkbox__indicator,
  .gummy-checkbox__pool,
  .gummy-checkbox__indicator svg,
  .gummy-radio-item__indicator,
  .gummy-radio-item__pool,
  .gummy-radio-item__dot,
  .gummy-native-select__shell,
  .gummy-native-select__pool {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  .gummy-field:not([data-disabled]):hover .gummy-field__control-shell,
  .gummy-textarea:not([data-disabled]):hover .gummy-textarea__shell,
  .gummy-native-select:not([data-disabled]):hover .gummy-native-select__shell,
  .gummy-checkbox__label:hover .gummy-checkbox__indicator,
  .gummy-radio-item:hover .gummy-radio-item__indicator,
  .gummy-checkbox:not([data-disabled], [data-read-only]) .gummy-checkbox__label:has(.gummy-checkbox__input:active) .gummy-checkbox__indicator,
  .gummy-radio-item:not([data-disabled], [data-read-only]):has(.gummy-radio-item__input:active) .gummy-radio-item__indicator,
  .gummy-native-select:not([data-disabled], [data-read-only]) .gummy-native-select__shell:has(.gummy-native-select__control:active) {
    transform: none;
  }
}
