.profile-page {
    width: 100%;
    flex: 1;
    min-height: 0;
    display: flex;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.profile-shell {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.profile-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.profile-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-field__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-muted);
}

.profile-field__input {
    height: 50px;
    border: 1.5px solid var(--color-border);
    border-radius: 16px;
    background: var(--color-surface);
    color: var(--color-text-strong);
    font-family: var(--font-body);
    /* iOS Safari zooms the page in on focus for inputs under 16px. */
    font-size: 16px;
    padding: 0 16px;
    box-sizing: border-box;
    transition: border-color .15s ease;
}

.profile-field__static {
    height: 50px;
    display: flex;
    align-items: center;
    border: 1.5px solid var(--color-border);
    border-radius: 16px;
    background: var(--color-bg);
    color: var(--color-text-muted);
    font-size: 16px;
    padding: 0 16px;
    box-sizing: border-box;
}

.profile-field__input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.profile-field--invalid .profile-field__input {
    border-color: var(--color-wrong-border);
    background: var(--color-wrong-bg);
    color: var(--color-wrong-text);
}

.profile-field__error {
    padding-left: 4px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-wrong-text);
}

.profile-field__error ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-footer {
    position: sticky;
    bottom: var(--keyboard-inset, 0px);
    margin-top: auto;
    background: var(--color-bg);
    padding-top: 4px;
}

.profile-save {
    width: 100%;
    height: 50px;
    border-radius: 16px;
    font-size: 16px;
}

@media (min-width: 1024px) {
    .profile-page {
        padding: 32px;
    }

    .profile-shell {
        max-width: 800px;
        gap: 26px;
    }

    .profile-field__input,
    .profile-field__static {
        height: 54px;
        font-size: 16px;
    }

    .profile-save {
        height: 54px;
        font-size: 17px;
    }
}
