* {
  box-sizing: border-box;
  min-width: 0;
}
:root {
  color-scheme: light;
  interpolate-size: allow-keywords;
  font-family:
    'Geist',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}

html {
  text-size-adjust: 100%;
}
h1,
h2,
h3,
h4 {
  overflow-wrap: break-word;
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}
input,
textarea,
select {
  field-sizing: content;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f5f7fb;
  color: #111827;
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.card {
  width: 100%;
  max-width: 560px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.07);
}

.title {
  margin: 12px 0 10px;
  font-size: 1.75rem;
  line-height: 1.2;
}

.description {
  margin: 0 0 20px;
  color: #374151;
  line-height: 1.5;
}

.join-form {
  display: grid;
  gap: 10px;
}

.label {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
  display: block;
}

.button {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  background: #18181b;
  color: #ffffff;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.custom-select {
  position: relative;
}

.custom-select__input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #ffffff;
  padding: 10px 12px;
  font-size: 1rem;
  font-family: inherit;
}

.custom-select__input:focus {
  outline: none;
  border-color: #133964;
  box-shadow: 0 0 0 2px rgba(19, 57, 100, 0.2);
}

.custom-select--disabled .custom-select__input {
  opacity: 0.55;
  cursor: not-allowed;
}

.manual-name-wrap {
  display: grid;
  gap: 6px;
}

.manual-name-error {
  font-size: 0.85rem;
  color: #991b1b;
  margin: 0;
}

.custom-select__options {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  margin: 8px 0 0;
  padding: 6px;
  list-style: none;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.12);
  max-height: 240px;
  overflow: auto;
}

.custom-select__option {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 8px;
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}

.custom-select__option.custom-select__option--not-on-list {
  border-top: 1px solid #e5e7eb;
  border-radius: 0;
  margin-top: 4px;
  padding-top: 10px;
  grid-template-columns: 1fr;
}

.custom-select__option:hover,
.custom-select__option:focus-visible,
.custom-select__option--active {
  background: #f3f4f6;
  outline: none;
}

.custom-select__avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: #dbeafe;
  color: #1e40af;
  font-size: 0.75rem;
  font-weight: 700;
  overflow: hidden;
}

.custom-select__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.custom-select__name {
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.2;
}

.custom-select__email {
  font-size: 0.82rem;
  color: #6b7280;
  line-height: 1.2;
  margin-top: 2px;
}

.status {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.92rem;
}

.status--muted {
  color: #1f2937;
  background: #eff6ff;
}

.status--error {
  color: #991b1b;
  background: #fee2e2;
}

.status--success {
  color: #065f46;
  background: #d1fae5;
}

.hidden {
  display: none !important;
}

@media (max-width: 520px) {
  .card {
    padding: 18px;
    border-radius: 12px;
  }

  .title {
    font-size: 1.4rem;
  }
}
