.profile-onboarding {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.profile-onboarding.hidden {
  display: none;
}

body.profile-onboarding-open {
  overflow: hidden;
}

.profile-onboarding__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(3px);
}

.profile-onboarding__panel {
  position: relative;
  width: min(100%, 24rem);
  max-height: min(92vh, 40rem);
  overflow-y: auto;
  padding: 1.25rem 1.35rem 1.2rem;
  background: #fff;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow), 0 12px 40px rgba(26, 43, 76, 0.12);
}

.profile-onboarding__title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
}

.profile-onboarding__desc {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
}

.profile-onboarding__field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.85rem;
}

.profile-onboarding__field span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}

.profile-onboarding__field input {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.95);
}

.profile-onboarding__field input:focus {
  outline: none;
  border-color: rgba(201, 162, 39, 0.55);
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.15);
}

.profile-onboarding__hint {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

.profile-onboarding__avatars {
  margin-bottom: 0.85rem;
}

.profile-onboarding__avatars > span {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.profile-onboarding__presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.profile-onboarding__preset {
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line);
  transition: border-color 0.15s, transform 0.12s;
}

.profile-onboarding__preset img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-onboarding__preset:hover {
  transform: scale(1.05);
}

.profile-onboarding__preset--active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.25);
}

.profile-onboarding__upload {
  margin-top: 0.45rem;
}

.profile-onboarding__upload-btn {
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.profile-onboarding__upload-btn:hover {
  color: var(--accent-hover);
}

.profile-onboarding__file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.profile-onboarding__error {
  margin: 0 0 0.75rem;
  padding: 0.45rem 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #9b2c2c;
  background: rgba(197, 48, 48, 0.1);
  border: 1px solid rgba(197, 48, 48, 0.2);
  border-radius: 8px;
}

.profile-onboarding__submit {
  width: 100%;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 8px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: var(--navy);
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}

.profile-onboarding__submit:hover:not(:disabled) {
  background: #243a5e;
}

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