:where(
  input:not([type]),
  input[type="text"],
  input[type="password"],
  input[type="number"],
  input[type="url"],
  input[type="search"],
  input[type="email"],
  input[type="tel"],
  select,
  textarea
) {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  margin: 0;
  padding: 9px 12px;
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--surface, #fff);
  color: var(--ink, #171a17);
  border: 1px solid var(--line-strong, #b8c1b6);
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(23, 26, 23, 0.04);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 560;
  line-height: 1.35;
  letter-spacing: 0;
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

:where(input, textarea)::placeholder {
  color: #8a9188;
  font-weight: 450;
  opacity: 1;
}

select {
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23697067' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  cursor: pointer;
}

textarea {
  min-height: 96px;
  padding: 11px 12px;
  resize: vertical;
}

:where(
  input:not([type]),
  input[type="text"],
  input[type="password"],
  input[type="number"],
  input[type="url"],
  input[type="search"],
  input[type="email"],
  input[type="tel"],
  select,
  textarea
):hover:not(:disabled) {
  border-color: #929c90;
}

:where(
  input:not([type]),
  input[type="text"],
  input[type="password"],
  input[type="number"],
  input[type="url"],
  input[type="search"],
  input[type="email"],
  input[type="tel"],
  select,
  textarea
):focus {
  outline: 0;
  border-color: var(--green, #246b49);
  box-shadow: 0 0 0 3px rgba(36, 107, 73, 0.14), 0 1px 2px rgba(23, 26, 23, 0.05);
}

:where(input, select, textarea):disabled {
  background-color: #e8ebe6;
  color: #7a8178;
  border-color: #d2d8d0;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
}

:where(input, textarea)[readonly] {
  background-color: var(--surface-muted, #f7f8f5);
  color: var(--muted, #697067);
}

input[type="file"] {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 5px;
  background: var(--surface, #fff);
  color: var(--muted, #697067);
  border: 1px dashed var(--line-strong, #b8c1b6);
  border-radius: 6px;
  font: inherit;
  font-size: 0.76rem;
}

input[type="file"]::file-selector-button {
  min-height: 32px;
  margin-right: 10px;
  padding: 0 12px;
  background: var(--surface-muted, #f7f8f5);
  color: var(--ink, #171a17);
  border: 1px solid var(--line-strong, #b8c1b6);
  border-radius: 4px;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 750;
  cursor: pointer;
}

input[type="file"]::file-selector-button:hover { background: #ecefea; }

.world-slot-identity > input {
  min-height: 40px;
  font-size: 0.82rem;
  font-weight: 720;
}

@media (prefers-reduced-motion: reduce) {
  :where(input, select, textarea) { transition-duration: 1ms; }
}
