/* WWR Style System v1: forms */
body.wwr-app {
  color-scheme: dark;
}

body.wwr-app input:not([type='checkbox']):not([type='radio']):not([type='button']):not([type='submit']):not([type='reset']),
body.wwr-app select,
body.wwr-app textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(var(--wwr-accent-primary-rgb), 0.3);
  background-color: rgba(var(--wwr-bg-primary-rgb), 0.78) !important;
  background: rgba(var(--wwr-bg-primary-rgb), 0.78) !important;
  color: var(--wwr-text) !important;
  -webkit-text-fill-color: var(--wwr-text) !important;
  font-family: var(--font-body, var(--font-ui, system-ui, -apple-system, Segoe UI, Roboto, Inter, sans-serif));
  font-size: 1rem;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  background-clip: padding-box;
  box-shadow: none;
}

body.wwr-app input:not([type='checkbox']):not([type='radio']):not([type='button']):not([type='submit']):not([type='reset']):focus,
body.wwr-app select:focus,
body.wwr-app textarea:focus {
  outline: none;
  border-color: rgba(var(--wwr-accent-primary-rgb), 0.65);
  background-color: rgba(var(--wwr-accent-primary-rgb), 0.12);
  box-shadow: 0 0 0 2px rgba(var(--wwr-accent-primary-rgb), 0.2);
}

body.wwr-app input::placeholder,
body.wwr-app textarea::placeholder {
  color: var(--wwr-text-low);
  opacity: 0.85;
}

body.wwr-app select {
  -webkit-appearance: none;
  appearance: none;
}

body.wwr-app select option {
  background-color: rgba(var(--wwr-bg-primary-rgb), 0.95);
  color: var(--wwr-text);
}

body.wwr-app textarea {
  min-height: 140px;
  resize: vertical;
}

body.wwr-app input:disabled,
body.wwr-app select:disabled,
body.wwr-app textarea:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

body.wwr-app input:-webkit-autofill,
body.wwr-app input:-webkit-autofill:hover,
body.wwr-app input:-webkit-autofill:focus,
body.wwr-app textarea:-webkit-autofill,
body.wwr-app select:-webkit-autofill {
  -webkit-text-fill-color: var(--wwr-text) !important;
  box-shadow: 0 0 0 1000px rgba(var(--wwr-bg-primary-rgb), 0.92) inset !important;
  transition: background-color 9999s ease-out, color 9999s ease-out;
}
