html {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

dialog::backdrop {
  background: rgba(2, 6, 23, 0.65);
}

[data-avatar-modal] {
  cursor: zoom-in;
}

.avatar-modal {
  background: transparent;
  border: 0;
  max-width: calc(100vw - 2rem);
  padding: 0;
}

.avatar-modal__panel {
  background: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
  display: grid;
  gap: 0.75rem;
  justify-items: end;
  padding: 1rem;
}

.avatar-modal__close {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  color: #475569;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 900;
  padding: 0.375rem 0.75rem;
}

.avatar-modal__close:hover {
  background: #f1f5f9;
}

.avatar-modal__image {
  background: #f1f5f9;
  border-radius: 0.75rem;
  display: block;
  height: 400px;
  max-height: calc(100vh - 8rem);
  max-width: calc(100vw - 4rem);
  object-fit: cover;
  width: 400px;
}

input[type="file"] {
  color: #475569;
}

input[type="file"]::file-selector-button {
  margin-right: 0.75rem;
  border: 0;
  border-radius: 0.5rem;
  background: #e0f2fe;
  color: #075985;
  cursor: pointer;
  font-weight: 700;
  padding: 0.45rem 0.7rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
