/* Only explicit controlled forms and explicit API errors use these markers. */
:is(.account-page, .admin-page, :where(#auth-container)) .dashboard-required-marker {
  display: inline;
  margin-inline-start: 4px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--dashboard-accent, #ff737e);
  font-size: 1em;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  vertical-align: baseline;
}

:is(.account-page, .admin-page, :where(#auth-container)) .dashboard-field-error {
  display: block;
  min-width: 0;
  max-width: 100%;
  margin: 8px 0 0;
  padding: 0;
  color: #ffb0b7;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

:is(.account-page, .admin-page, :where(#auth-container)) label > .dashboard-field-error {
  margin-top: 0;
}

html:root body :is(.account-page, :where(#auth-container)) :is(input, select, textarea)[data-dashboard-invalid="true"]:not(:disabled):not([readonly]):not(:where([type="checkbox"], [type="radio"], [type="range"], [type="color"])),
html:root body.admin-page :is(input, select, textarea)[data-dashboard-invalid="true"]:not(:disabled):not([readonly]):not(:where([type="checkbox"], [type="radio"], [type="range"], [type="color"])) {
  border-color: #f18b97;
  outline: none;
  box-shadow: none;
}

:is(.account-page, .admin-page, :where(#auth-container)) :is(input, select, textarea)[data-dashboard-invalid="true"] {
  scroll-margin-top: 150px;
  scroll-margin-bottom: 24px;
}

@media (max-width: 760px) {
  :is(.account-page, .admin-page, :where(#auth-container)) :is(input, select, textarea)[data-dashboard-invalid="true"] {
    font-size: 16px;
  }
}
