.void-profile {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(27rem, calc(100% - 2rem));
    max-width: none;
    max-height: calc(100% - 2rem);
    max-height: calc(100dvh - 2rem);
    overflow: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
    padding: clamp(1rem, 5vw, 1.75rem);
    border: 1px solid #28556d;
    border-radius: 1rem;
    background: #0b1325;
    color: #f3f4f6;
    box-shadow: 0 12px 40px rgb(0 0 0 / 65%);
    color-scheme: dark;
}

.void-profile::backdrop {
    background: rgb(3 7 18 / 80%);
}

.void-profile h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.25rem, 5vw, 1.65rem);
    font-weight: 800;
    line-height: 1.2;
}

.void-profile label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    font-weight: 650;
}

.void-profile input {
    width: 100%;
    min-height: 2.75rem;
    border: 1px solid #52647d;
    border-radius: 0.6rem;
    background: #080e1a;
    padding: 0.55rem 0.75rem;
    color: inherit;
    font: inherit;
    font-size: 1rem;
    user-select: text;
    -webkit-user-select: text;
    -webkit-touch-callout: default;
}

.void-profile input:focus-visible,
.void-profile button:focus-visible,
.void-profile-account:focus-visible {
    outline: 2px solid #67e8f9;
    outline-offset: 2px;
}

.void-profile p {
    margin: 0.55rem 0 0;
    font-size: 0.875rem;
    line-height: 1.45;
    color: #cbd5e1;
}

.void-profile .void-profile-status {
    min-height: 1.3rem;
}

.void-profile [data-state="available"] #void-profile-username {
    border-color: #4ade80;
}

.void-profile [data-state="available"] .void-profile-status {
    color: #86efac;
}

.void-profile [data-state="taken"] .void-profile-status,
.void-profile [data-state="invalid"] .void-profile-status,
.void-profile [data-state="error"] .void-profile-status,
.void-profile .void-profile-feedback.is-error {
    color: #fca5a5;
}

.void-profile-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.void-profile [hidden],
.void-profile-account[hidden] {
    display: none;
}

.void-profile button,
.void-profile-account {
    min-height: 2.75rem;
    border-radius: 0.65rem;
    padding: 0.5rem 0.75rem;
    color: #a5f3fc;
    font-size: 0.875rem;
    font-weight: 650;
}

.void-profile label:not(:first-child) {
    margin-top: 0.65rem;
}

.void-profile .void-profile-feedback:empty {
    margin: 0;
}

.void-profile-submit,
.void-profile-retry {
    width: 100%;
    margin-top: 0.75rem;
}

.void-profile-switch {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
}

.void-profile-switch:hover:not(:disabled),
.void-profile-check-retry:hover:not(:disabled) {
    text-decoration: underline;
    text-underline-offset: 0.2rem;
}

.void-profile-switch:disabled,
.void-profile-check-retry:disabled {
    opacity: 0.45;
}

.void-profile-account {
    position: absolute;
    inset-block-start: max(0.65rem, env(safe-area-inset-top));
    inset-inline-end: max(0.65rem, env(safe-area-inset-right));
    touch-action: manipulation;
}

@media (max-height: 390px) {
    .void-profile {
        padding: 0.85rem 1rem;
    }

    .void-profile h2 {
        margin-bottom: 0.6rem;
    }
}
