.account-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.account-page-head h1 {
    margin: 0;
    color: var(--text);
    font-size: clamp(28px, 2.4vw, 36px);
    letter-spacing: -.045em;
}

.account-state-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #cfe3d2;
    border-radius: 999px;
    background: rgba(249, 253, 249, .88);
    color: var(--green-800);
    font-size: 13px;
    font-weight: 780;
    white-space: nowrap;
}

.account-state-chip span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #39ae61;
    box-shadow: 0 0 0 4px rgba(57, 174, 97, .12);
}

.account-workspace {
    display: grid;
    grid-template-columns: minmax(300px, .76fr) minmax(0, 1.24fr);
    min-height: 600px;
    overflow: hidden;
    border: 1px solid #d8e4da;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(29, 61, 39, .075);
}

.account-identity-pane {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 36px 34px 30px;
    overflow: hidden;
    background:
        radial-gradient(circle at 80% 8%, rgba(160, 223, 170, .23), transparent 28%),
        radial-gradient(circle at 14% 86%, rgba(105, 190, 122, .2), transparent 30%),
        linear-gradient(145deg, #194e2d 0%, #103a22 62%, #0b2d19 100%);
    color: #fff;
}

.account-identity-pane::before {
    content: "";
    position: absolute;
    top: -90px;
    right: -120px;
    width: 270px;
    height: 270px;
    border: 1px solid rgba(206, 244, 211, .16);
    border-radius: 50%;
    box-shadow:
        0 0 0 32px rgba(206, 244, 211, .035),
        0 0 0 64px rgba(206, 244, 211, .025);
}

.account-identity-pane-main,
.account-pane-footer {
    position: relative;
    z-index: 1;
}

.account-pane-label {
    display: block;
    margin-bottom: 22px;
    color: rgba(229, 248, 232, .68);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .09em;
}

.account-avatar {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    border: 1px solid rgba(235, 255, 238, .25);
    border-radius: 19px;
    background: linear-gradient(145deg, #43a867, #267c47);
    color: #fff;
    font-size: 24px;
    font-weight: 850;
    letter-spacing: .025em;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .2);
}

.account-identity-pane h2 {
    margin: 0;
    color: #fff;
    font-size: 26px;
    line-height: 1.2;
    letter-spacing: -.035em;
}

.account-identity-pane p {
    margin: 6px 0 0;
    color: rgba(235, 250, 237, .68);
    font-size: 14px;
}

.account-role-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-top: 16px;
    padding: 0 10px;
    border: 1px solid rgba(196, 239, 203, .24);
    border-radius: 999px;
    background: rgba(136, 209, 150, .14);
    color: #d8f4dc;
    font-size: 12px;
    font-weight: 780;
}

.account-identity-list {
    display: grid;
    gap: 0;
    margin: 30px 0 0;
    border-top: 1px solid rgba(227, 246, 230, .16);
}

.account-identity-list div {
    display: grid;
    gap: 5px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(227, 246, 230, .13);
}

.account-identity-list dt {
    color: rgba(225, 246, 228, .58);
    font-size: 12px;
}

.account-identity-list dd {
    margin: 0;
    overflow: hidden;
    color: #fff;
    font-size: 14px;
    font-weight: 730;
    font-variant-numeric: tabular-nums;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-pane-footer {
    display: grid;
    gap: 18px;
    margin-top: auto;
    padding-top: 26px;
}

.account-session-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-session-status > span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 50%;
    background: rgba(121, 216, 137, .16);
    color: #b8f5c3;
    font-size: 15px;
    font-weight: 900;
}

.account-session-status div {
    display: grid;
    gap: 1px;
}

.account-session-status strong {
    font-size: 13px;
}

.account-session-status small {
    color: rgba(229, 248, 232, .58);
    font-size: 12px;
}

.account-logout-btn {
    min-height: 41px;
    border: 1px solid rgba(238, 255, 240, .25);
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 760;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.account-logout-btn:hover {
    border-color: rgba(255, 224, 218, .56);
    background: rgba(174, 67, 58, .28);
}

.account-logout-btn:active {
    transform: translateY(1px);
}

.account-settings-pane {
    min-width: 0;
    padding: 38px 44px 42px;
    background: #fff;
}

.account-settings-head {
    padding-bottom: 25px;
    border-bottom: 1px solid #e4ebe5;
}

.account-settings-head > span {
    display: block;
    margin-bottom: 5px;
    color: var(--green-700);
    font-size: 12px;
    font-weight: 780;
    letter-spacing: .07em;
}

.account-settings-head h2 {
    margin: 0;
    color: var(--text);
    font-size: 24px;
    letter-spacing: -.03em;
}

.account-form-section {
    padding: 27px 0;
    border-bottom: 1px solid #e4ebe5;
}

.account-form-section:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.account-section-head h3 {
    margin: 0;
    color: #2a382e;
    font-size: 17px;
    letter-spacing: -.015em;
}

.account-section-head p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.account-profile-form,
.account-password-section form {
    display: grid;
    gap: 14px;
    margin-top: 19px;
}

.account-profile-form label,
.account-password-section label {
    display: grid;
    gap: 7px;
    color: #405047;
    font-size: 13px;
    font-weight: 750;
}

.account-profile-form input,
.account-password-section input {
    width: 100%;
    height: 44px;
    padding: 0 13px;
    border: 1px solid #d6e1d8;
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    font: inherit;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.account-profile-form input:hover,
.account-password-section input:hover {
    border-color: #b8cdbb;
}

.account-profile-form input:focus,
.account-password-section input:focus {
    border-color: #68ad78;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 163, 94, .12);
}

.account-password-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.account-form-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.account-message {
    min-height: 20px;
    color: var(--green-700);
    font-size: 13px;
    font-weight: 650;
}

.primary-btn,
.secondary-btn {
    min-width: 138px;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 10px;
    font: inherit;
    font-weight: 760;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.primary-btn:active,
.secondary-btn:active {
    transform: translateY(1px);
}

.primary-btn {
    border: 0;
    background: var(--green-700);
    color: #fff;
}

.secondary-btn {
    border: 1px solid #cbdacc;
    background: #fff;
    color: var(--green-800);
}

@media (max-width: 960px) {
    .account-workspace {
        grid-template-columns: 1fr;
    }

    .account-identity-pane {
        min-height: auto;
        padding: 30px;
    }

    .account-pane-footer {
        grid-template-columns: 1fr auto;
        align-items: center;
        margin-top: 28px;
        padding-top: 20px;
        border-top: 1px solid rgba(227, 246, 230, .15);
    }

    .account-logout-btn {
        min-width: 126px;
        padding: 0 16px;
    }
}

@media (max-width: 620px) {
    .account-page-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 11px;
        margin-bottom: 16px;
    }

    .account-workspace {
        border-radius: 17px;
    }

    .account-identity-pane,
    .account-settings-pane {
        padding: 24px 20px;
    }

    .account-pane-label {
        margin-bottom: 17px;
    }

    .account-identity-pane h2 {
        font-size: 23px;
    }

    .account-identity-list {
        margin-top: 24px;
    }

    .account-pane-footer {
        grid-template-columns: 1fr;
    }

    .account-logout-btn {
        width: 100%;
    }

    .account-settings-head {
        padding-bottom: 21px;
    }

    .account-settings-head h2 {
        font-size: 21px;
    }

    .account-form-section {
        padding: 22px 0;
    }

    .account-password-fields {
        grid-template-columns: 1fr;
    }

    .account-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .primary-btn,
    .secondary-btn {
        width: 100%;
    }
}
