*,
*::before,
*::after {
  box-sizing: border-box;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background: currentColor;
}

::-webkit-scrollbar-track,
::-webkit-scrollbar-corner {
  background: transparent;
}

@supports not selector(::-webkit-scrollbar) {
  * {
    scrollbar-color: currentColor transparent;
    scrollbar-width: thin;
  }
}

[hidden] {
  display: none !important;
}

:where(button, select, textarea, input) {
  color: inherit;
  font: inherit;
}

:where(button, select, textarea, input:not([type="range"], [type="checkbox"], [type="radio"])) {
  padding: 10px 12px;
  border: 1px solid currentColor;
  border-radius: var(--border-radius-min, 2px);
  background: transparent;
}

:where(button, select) {
  cursor: pointer;
}

:where(button:not(:disabled):hover) {
  background: var(--clr-1, #000);
  color: var(--clr-2, #fff);
}

:where(button, select, input):disabled {
  opacity: 0.45;
  cursor: default;
}

:where(button, select, textarea, input):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

:where(select) {
  appearance: none;
  width: 100%;
  padding-inline-end: 36px;
  text-overflow: ellipsis;
}

.select-wrap {
  position: relative;
  display: block;
}

.select-wrap::after {
  content: '';
  position: absolute;
  inset-inline-end: 14px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-inline-end: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-75%) rotate(45deg);
  pointer-events: none;
}

:where(input[type="range"]) {
  margin: 8px 0;
  accent-color: var(--clr-1, #000);
}

:where(textarea) {
  width: 100%;
  resize: vertical;
  line-height: 1.5;
}

:where(textarea:read-only) {
  background: color-mix(in srgb, currentColor 4%, transparent);
}

:where(p) {
  line-height: 1.5;
}

:where(strong) {
  font-weight: 500;
}

.controls,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-mid, 20px);
}

.controls {
  align-items: end;
}

.control {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
