.account-page {
    background: #f6f8fb;
    min-height: 68vh;
    padding: 42px 16px 56px;
}

.account-shell {
    background: #fff;
    border: 1px solid #dfe6ee;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(24, 39, 75, 0.08);
    margin: 0 auto;
    max-width: 520px;
    padding: 28px;
}

.account-shell-wide {
    max-width: 1170px;
}

.account-profile-shell {
    max-width: 860px;
}

.account-public-profile-shell {
    max-width: 1170px;
}

.account-heading h1 {
    color: #172033;
    font-size: 28px;
    line-height: 1.2;
    margin: 0 0 10px;
}

.account-heading p,
.account-switch {
    color: #5f6c7b;
    font-size: 15px;
    line-height: 1.55;
    margin: 0 0 22px;
}

.account-form {
    display: grid;
    gap: 16px;
}

.account-form label {
    color: #273244;
    display: grid;
    font-weight: 600;
    gap: 7px;
}

.account-form input[type="text"],
.account-form input[type="email"],
.account-form input[type="password"],
.account-form textarea {
    border: 1px solid #cdd6e1;
    border-radius: 6px;
    color: #172033;
    font-size: 16px;
    padding: 9px 12px;
    width: 100%;
}

.account-form input[type="text"],
.account-form input[type="email"],
.account-form input[type="password"] {
    min-height: 44px;
}

.account-form textarea {
    min-height: 126px;
    resize: vertical;
}

.account-form input[readonly] {
    background: #f4f7fb;
    color: #647184;
    cursor: not-allowed;
}

.account-form input:focus {
    border-color: #2c7be5;
    box-shadow: 0 0 0 3px rgba(44, 123, 229, 0.14);
    outline: 0;
}

.account-check {
    align-items: center;
    display: flex !important;
    font-weight: 500 !important;
    gap: 9px !important;
}

.account-check input {
    height: 18px;
    width: 18px;
}

.account-primary,
.account-secondary {
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    min-height: 44px;
    padding: 10px 16px;
}

.account-alert {
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    margin: 0 0 18px;
    padding: 11px 13px;
}

.account-alert-success {
    background: #edf9f3;
    border: 1px solid #a7dec1;
    color: #146b43;
}

.account-validation,
.account-field-error {
    color: #b42318;
    font-size: 13px;
    font-weight: 700;
}

.account-field-help {
    color: #657386;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
}

.account-validation {
    margin: 0;
}

.account-profile-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 220px minmax(0, 1fr);
}

.account-avatar-panel {
    align-content: start;
    display: grid;
    gap: 12px;
}

.account-avatar-preview {
    aspect-ratio: 1;
    background: #eef4fa;
    border: 1px solid #d7e2ec;
    border-radius: 8px;
    display: grid;
    height: auto;
    object-fit: cover;
    place-items: center;
    width: 100%;
}

.account-avatar-empty {
    color: #6b7a90;
    font-size: 64px;
}

.account-upload-control {
    display: grid !important;
    gap: 8px !important;
}

.account-upload-control input[type="file"] {
    border: 1px dashed #b9cadb;
    border-radius: 8px;
    color: #435267;
    font-size: 13px;
    padding: 10px;
    width: 100%;
}

.account-avatar-panel small {
    color: #657386;
    font-size: 12px;
    line-height: 1.45;
}

.account-profile-fields {
    display: grid;
    gap: 16px;
}

.account-profile-meta {
    border-top: 1px solid #e6edf5;
    margin-top: 24px;
    padding-top: 20px;
}

.public-profile-header {
    align-items: center;
    display: grid;
    gap: 18px;
    grid-template-columns: 96px minmax(0, 1fr) auto;
}

.public-profile-avatar {
    align-items: center;
    aspect-ratio: 1;
    background: #eef4fa;
    border: 1px solid #d7e2ec;
    border-radius: 50%;
    color: #24577a;
    display: inline-flex;
    font-size: 34px;
    font-weight: 850;
    justify-content: center;
    object-fit: cover;
    width: 96px;
}

.public-profile-avatar-empty {
    background: linear-gradient(145deg, #edf6ff, #dfeef8);
    border-color: #bfd4e6;
}

.public-profile-title {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.public-profile-title h1 {
    color: #172033;
    font-size: 30px;
    line-height: 1.15;
    margin: 0;
    overflow-wrap: anywhere;
}

.public-profile-title p {
    color: #5f6c7b;
    font-size: 15px;
    line-height: 1.55;
    margin: 0;
}

.public-profile-stats {
    display: inline-flex;
    gap: 10px;
}

.public-profile-stats span {
    background: #f7fafc;
    border: 1px solid #dfe8f2;
    border-radius: 8px;
    color: #657386;
    display: grid;
    font-size: 12px;
    font-weight: 750;
    gap: 3px;
    min-width: 110px;
    padding: 10px 12px;
}

.public-profile-stats strong {
    color: #172033;
    font-size: 20px;
    line-height: 1;
}

.member-badge {
    align-items: center;
    background: #f7fafc;
    border: 1px solid #d7e2ec;
    border-radius: 999px;
    color: #40556a;
    display: inline-flex;
    font-size: 12px;
    font-weight: 850;
    justify-self: start;
    letter-spacing: 0;
    line-height: 1.2;
    padding: 4px 8px;
    white-space: nowrap;
}

.member-badge.BadgeNewMember {
    background: #f4f7fb;
    border-color: #d7e2ec;
    color: #526173;
}

.member-badge.BadgeVerifiedReporter {
    background: #edf9f3;
    border-color: #a7dec1;
    color: #146b43;
}

.member-badge.BadgeTopContributor {
    background: #fff8e8;
    border-color: #efd69d;
    color: #8a620f;
}

.account-primary {
    background: #1769d1;
    color: #fff;
}

.account-secondary {
    background: #edf2f7;
    color: #1d2a3a;
}

.account-switch {
    margin: 20px 0 0;
}

.account-switch a {
    color: #1769d1;
    font-weight: 700;
}

.account-validation,
.field-validation-error {
    color: #b42318;
    font-size: 14px;
}

.account-profile-list {
    border-top: 1px solid #e6edf5;
    display: grid;
    gap: 0;
    margin: 22px 0;
}

.account-profile-list dt,
.account-profile-list dd {
    border-bottom: 1px solid #e6edf5;
    margin: 0;
    padding: 12px 0;
}

.account-profile-list dt {
    color: #5f6c7b;
    font-weight: 700;
}

.account-profile-list dd {
    color: #172033;
}

.account-logout-form {
    margin-top: 14px;
}

.account-follow-list {
    border-top: 1px solid #e6edf5;
    margin-top: 22px;
    padding-top: 22px;
}

.account-follow-header {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 12px;
}

.account-follow-header h2 {
    border: 0;
    color: #172033;
    font-size: 20px;
    line-height: 1.25;
    margin: 0;
    padding: 0;
}

.account-follow-header span {
    align-items: center;
    background: #eef6ff;
    border: 1px solid #cfe3fa;
    border-radius: 999px;
    color: #0b5fa5;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    justify-content: center;
    min-width: 34px;
    padding: 5px 10px;
}

.account-follow-empty,
.account-follow-message {
    color: #5f6c7b;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.account-follow-rows {
    display: grid;
    gap: 10px;
}

.account-follow-row {
    align-items: center;
    background: #fbfdff;
    border: 1px solid #dfe8f2;
    border-left: 4px solid #d89b22;
    border-radius: 8px;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(150px, 1.4fr) auto auto auto auto;
    padding: 12px;
}

.account-follow-row.is-safe {
    border-left-color: #1f9d55;
}

.account-follow-row.is-danger {
    border-left-color: #d94b3d;
}

.account-follow-number {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.account-follow-number span,
.account-follow-metric span {
    color: #657386;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.account-follow-number a {
    color: #172033;
    font-size: 17px;
    font-weight: 850;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.account-follow-number a:hover {
    color: #1769d1;
}

.account-follow-status {
    border-radius: 999px;
    color: #8a620f;
    background: #fff8e8;
    border: 1px solid #efd69d;
    font-size: 12px;
    font-weight: 850;
    padding: 7px 10px;
    white-space: nowrap;
}

.account-follow-row.is-safe .account-follow-status {
    background: #edf9f3;
    border-color: #a7dec1;
    color: #146b43;
}

.account-follow-row.is-danger .account-follow-status {
    background: #fff2f0;
    border-color: #efb8af;
    color: #9e2f27;
}

.account-follow-metric {
    align-items: center;
    background: #fff;
    border: 1px solid #e1e9f2;
    border-radius: 8px;
    display: grid;
    gap: 2px;
    grid-template-columns: 20px minmax(0, 1fr);
    min-width: 92px;
    padding: 8px 9px;
}

.account-follow-metric i {
    color: #1769d1;
    grid-row: span 2;
    text-align: center;
}

.account-follow-metric strong {
    color: #172033;
    font-size: 15px;
    line-height: 1;
}

.account-follow-actions {
    display: inline-flex;
    gap: 7px;
    justify-content: flex-end;
}

.account-follow-detail,
.account-follow-remove {
    align-items: center;
    border: 1px solid #d7e2ec;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    gap: 7px;
    min-height: 38px;
    padding: 8px 10px;
    text-decoration: none;
    white-space: nowrap;
}

.account-follow-detail {
    background: #eef6ff;
    color: #0b5fa5;
}

.account-follow-remove {
    background: #fff;
    color: #9e2f27;
    font-family: inherit;
}

.account-follow-message {
    margin-top: 12px;
    min-height: 20px;
}

.account-follow-message.is-success {
    color: #16794d;
}

.account-follow-message.is-error {
    color: #b42318;
}

.account-comment-list {
    border-top: 1px solid #e6edf5;
    margin-top: 26px;
    padding-top: 22px;
}

.account-comment-rows {
    display: grid;
    gap: 10px;
}

.account-comment-row {
    align-items: center;
    background: #fbfdff;
    border: 1px solid #dfe8f2;
    border-radius: 8px;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(220px, 1fr) auto auto;
    padding: 13px;
}

.account-comment-main {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.account-comment-main a {
    color: #1769d1;
    font-size: 16px;
    font-weight: 850;
    text-decoration: none;
}

.account-comment-main p {
    color: #273244;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    overflow-wrap: anywhere;
}

.account-comment-main small {
    color: #6b7786;
    font-size: 12px;
    font-weight: 700;
}

.account-comment-status {
    background: #fff8e8;
    border: 1px solid #efd69d;
    border-radius: 999px;
    color: #8a620f;
    font-size: 12px;
    font-weight: 850;
    padding: 7px 10px;
    white-space: nowrap;
}

.header-account-menu {
    display: inline-flex;
    flex: 0 0 auto;
    position: relative;
}

.header-account-trigger {
    align-items: center;
    background: linear-gradient(180deg, #ffffff, #eef5fb);
    border: 1px solid rgba(255,255,255,.74);
    border-radius: 999px;
    box-shadow: 0 10px 22px rgba(16, 42, 67, .18), inset 0 1px 0 rgba(255,255,255,.85);
    color: #0b5fa5;
    cursor: pointer;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    padding: 0;
    position: relative;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    width: 42px;
}

.header-account-trigger:hover,
.header-account-trigger:focus {
    border-color: rgba(255,255,255,.95);
    box-shadow: 0 14px 30px rgba(16, 42, 67, .24), 0 0 0 3px rgba(255,255,255,.18);
    outline: 0;
    transform: translateY(-1px);
}

.header-account-trigger i {
    font-size: 15px;
}

.account-trigger-dot {
    background: #24c277;
    border: 2px solid #fff;
    border-radius: 999px;
    bottom: 6px;
    height: 10px;
    position: absolute;
    right: 6px;
    width: 10px;
}

.header-account-dropdown {
    background: #fff;
    border: 1px solid rgba(15,23,42,.1);
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .18);
    display: none;
    min-width: 214px;
    padding: 7px;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 40;
}

.header-account-dropdown.show {
    display: grid;
    gap: 4px;
}

.header-account-item {
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #172033;
    display: flex;
    font-size: 14px;
    font-weight: 750;
    gap: 10px;
    min-height: 42px;
    padding: 9px 10px;
    text-align: left;
    text-decoration: none;
    width: 100%;
}

.header-account-item:hover,
.header-account-item:focus {
    background: #f3f8fd;
    border-color: #dfebf7;
    color: #0b5fa5;
    outline: 0;
    text-decoration: none;
}

.header-account-item i {
    color: #0b6ec2;
    font-size: 15px;
    text-align: center;
    width: 18px;
}

.header-account-item-primary {
    background: #eef6ff;
    border-color: #cfe3fa;
    color: #0b5fa5;
}

.header-account-submit {
    cursor: pointer;
    font-family: inherit;
}

.header-account-form {
    display: block;
    margin: 0;
}

@media (max-width: 700px) {
    .header-account-trigger {
        height: 40px;
        width: 40px;
    }

    .header-account-dropdown {
        max-width: calc(100vw - 20px);
        min-width: 204px;
    }
}

@media (max-width: 640px) {
    .account-shell {
        padding: 22px;
    }

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

    .public-profile-header {
        align-items: start;
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .public-profile-avatar {
        font-size: 26px;
        width: 72px;
    }

    .public-profile-stats {
        grid-column: 1 / -1;
        width: 100%;
    }

    .public-profile-stats span {
        flex: 1;
        min-width: 0;
    }

    .account-avatar-preview {
        max-width: 220px;
    }

    .account-follow-row {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .account-comment-row {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .account-follow-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .account-follow-detail,
    .account-follow-remove {
        justify-content: center;
    }
}
