/* Storyfellow — account Profile utility page */

#screen-profile {
    padding: var(--st-page-pad-y) var(--st-page-pad-x) 0;
    align-items: stretch;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    max-height: none;
    overflow: visible;
    box-sizing: border-box;
}

#screen-profile > .brand-bar {
    flex: 0 0 auto;
    width: 100%;
}

#screen-profile > .profile-layout {
    flex: 1 1 auto;
    min-height: 0;
    overflow: visible;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 56px 0 64px;
    text-align: left;
    animation: st-fade-in var(--st-duration-slow) var(--st-ease) both;
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    #screen-profile > .profile-layout {
        max-width: var(--st-desktop-canvas);
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .profile-header,
    .profile-section,
    .profile-footer {
        max-width: none;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

.profile-header {
    margin: 0 0 40px;
}

.profile-title {
    margin: 0 0 12px;
    font-size: clamp(1.75rem, 4vw, 2.15rem);
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 1.15;
    color: var(--st-ink);
}

.profile-lead {
    margin: 0;
    max-width: 28em;
    font-size: var(--st-size-lead, 1.125rem);
    line-height: 1.55;
    color: var(--st-text);
}

.profile-section {
    margin: 0 0 40px;
}

.profile-section-title {
    margin: 0 0 16px;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--st-ink);
}

.profile-fields {
    margin: 0;
}

.profile-field {
    display: grid;
    grid-template-columns: 7rem minmax(0, 1fr);
    gap: 8px 16px;
    padding: 12px 0;
    border-top: 1px solid var(--st-rule, rgba(0, 0, 0, 0.08));
}

.profile-field:last-child {
    border-bottom: 1px solid var(--st-rule, rgba(0, 0, 0, 0.08));
}

.profile-field-label {
    margin: 0;
    font-size: var(--st-size-body, 1rem);
    line-height: 1.5;
    color: var(--st-muted, #6b6560);
}

.profile-field-value {
    margin: 0;
    font-size: var(--st-size-body, 1rem);
    line-height: 1.5;
    color: var(--st-ink);
    word-break: break-word;
}

.profile-password-form {
    max-width: 24rem;
}

.profile-password-form .btn-begin {
    margin-top: 8px;
}

.profile-password-notice {
    margin: 12px 0 0;
}

.profile-password-notice.is-success {
    color: var(--st-text);
}

.profile-footer {
    margin-top: 8px;
    padding-top: 8px;
}
