:root {
  --hyde-control-bg: var(--studio-surface, var(--surface-2, #151b27));
  --hyde-control-bg-hover: var(--studio-surface-raised, var(--surface-3, #1b2433));
  --hyde-control-border: var(--studio-line, var(--line, #3a465c));
  --hyde-control-border-focus: var(--studio-accent, var(--gold-hi, #f3d28d));
  --hyde-control-ink: var(--studio-ink, var(--ink, #f4f0e7));
  --hyde-control-muted: var(--studio-muted, var(--muted, #9ba6b8));
}

.hyde-control {
  box-sizing: border-box;
  min-width: 0;
  width: auto;
  height: 44px;
  min-height: 44px;
  padding: 0 0.8rem;
  border: 1px solid var(--hyde-control-border);
  border-radius: 7px;
  background-color: var(--hyde-control-bg);
  color: var(--hyde-control-ink);
  font: 650 0.9rem/1.2 Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  letter-spacing: 0;
  text-align: left;
  transition: border-color 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
}

.hyde-control:hover:not(:disabled) {
  background-color: var(--hyde-control-bg-hover);
  border-color: color-mix(in srgb, var(--hyde-control-border) 70%, var(--hyde-control-ink));
}

.hyde-control:focus-visible {
  border-color: var(--hyde-control-border-focus);
  outline: 2px solid var(--hyde-control-border-focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--hyde-control-border-focus) 24%, transparent);
}

.hyde-control:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

select.hyde-control {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.35rem;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 1rem) 50%, calc(100% - 0.68rem) 50%;
  background-repeat: no-repeat;
  background-size: 0.42rem 0.42rem, 0.42rem 0.42rem;
}

button.hyde-control {
  cursor: pointer;
  justify-content: center;
  text-align: center;
}

@media (max-width: 767px) {
  .hyde-control {
    height: 44px;
    min-height: 44px;
  }
}

@media (min-width: 768px) {
  .hyde-control {
    height: 44px;
    min-height: 44px;
  }
}
