.profile-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 10px;
    align-items: start;
    box-sizing: border-box;
    clear: both;
    padding: 0;
}

.profile-page-layout > .profile-summary {
    grid-column: 1 / -1;
    grid-row: 1;
    min-width: 0;
}

#content .profile-page-layout > #main {
    grid-column: 1;
    grid-row: 2;
    float: none;
    margin-left: 0;
    max-width: none;
    min-width: 0;
    width: auto;
}

.profile-page-layout > .profile-sidebar {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
}

.profile-page-layout #main .user_info .details {
    float: none;
    width: 100%;
    box-sizing: border-box;
    margin-right: 0;
}

.profile-email-card {
    box-sizing: border-box;
    margin: 0 0 22px;
    padding: 22px 24px;
    border: 1px solid #dae7ed;
    border-radius: 14px;
    background: #f7fafc;
    color: #263c49;
}

.profile-email-card--missing {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(31, 57, 75, .07);
}

.profile-accent-card {
    --profile-accent: #1683c7;
    position: relative;
    overflow: hidden;
}

.profile-accent-card::before {
    content: "";
    position: absolute;
    z-index: 4;
    background: var(--profile-accent);
    pointer-events: none;
}

.profile-accent-side-1::before {
    inset: 0 auto 0 0;
    width: 4px;
}

.profile-accent-side-2::before {
    inset: 0 0 auto 0;
    height: 4px;
}

.profile-accent-side-3::before {
    inset: 0 0 0 auto;
    width: 4px;
}

.profile-accent-side-4::before {
    inset: auto 0 0 0;
    height: 4px;
}

.profile-accent-color-1 { --profile-accent: #1683c7; }
.profile-accent-color-2 { --profile-accent: #2f9fad; }
.profile-accent-color-3 { --profile-accent: #5b9b72; }
.profile-accent-color-4 { --profile-accent: #d19a37; }
.profile-accent-color-5 { --profile-accent: #9878b5; }

.profile-email-card .profile-email-card__heading {
    margin: 0 0 7px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.profile-email-card .profile-email-card__heading:last-child {
    margin-bottom: 0;
}

.profile-email-card .profile-email-card__description {
    margin: 0;
    color: #617582;
    font-size: 14px;
    line-height: 1.5;
}

.profile-email-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

.profile-email-card__cancel {
    margin: 0;
    padding: 0;
}

.profile-email-card .profile-email-card__button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 10px 15px;
    border: 1px solid #cbdbe4;
    border-radius: 8px;
    background: #fff;
    color: #35556a;
    font: inherit;
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}

.profile-email-card .profile-email-card__button:hover {
    border-color: #9bb7c8;
    background: #edf4f8;
    color: #35556a;
}

.profile-email-card .profile-email-card__button--primary {
    border-color: #167ba4;
    background: #167ba4;
    color: #fff;
}

.profile-email-card .profile-email-card__button--primary:hover {
    border-color: #10698e;
    background: #10698e;
    color: #fff;
}

.profile-email-card .profile-email-card__button:disabled {
    border-color: #dbe6ed;
    background: #e7eff4;
    color: #657b89;
    cursor: default;
}

.profile-email-card .profile-email-card__button:focus-visible {
    outline: 3px solid #86bdd5;
    outline-offset: 3px;
}

.profile-email-card #profile-email-timer {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.profile-email-card .profile-email-card__status {
    margin: 14px 0 0;
    padding: 12px 14px;
    border: 1px solid #d7e5eb;
    border-radius: 9px;
    background: #f7fafc;
    color: #263746;
}

.profile-email-card .profile-email-card__status[hidden] {
    display: none !important;
}

.profile-email-card .profile-email-card__status[data-state="success"] {
    border-color: #b9ddca;
    background: #f0faf4;
}

.profile-email-card .profile-email-card__status[data-state="error"] {
    border-color: #f0caca;
    background: #fff6f5;
}

.profile-email-card .profile-email-card__status[data-state="pending"] {
    border-color: #c6deea;
    background: #f1f8fb;
}

.profile-email-card .profile-email-card__status strong {
    display: block;
    font-size: 14px;
    line-height: 1.45;
}

.profile-email-card .profile-email-card__status small {
    display: block;
    margin-top: 3px;
    color: #617582;
    font-size: 12px;
    line-height: 1.5;
}

.profile-personal-blog {
    margin-bottom: 22px;
}

.profile-personal-blog__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.profile-personal-blog__eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #73818a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

#content #main .profile-personal-blog__title {
    margin: 0;
    padding: 0;
    color: #263b48;
    font-size: 24px;
    line-height: 1.25;
}

.profile-personal-blog__title a {
    color: #1683c7;
    text-decoration: none;
}

.profile-personal-blog__title a:hover {
    color: #0b6fae;
    text-decoration: underline;
}

.profile-personal-blog__open {
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid #c8d8e3;
    border-radius: 8px;
    background: #fff;
    color: #31566e;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.profile-personal-blog__open:hover {
    border-color: #9ec3d8;
    background: #f4f9fb;
    color: #0b6fae;
}

.profile-personal-blog__description {
    color: #405865;
    font-size: 14px;
    line-height: 1.55;
}

.profile-personal-blog__description > :last-child {
    margin-bottom: 0;
}

.profile-personal-blog__posts {
    display: flex;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
    margin: 16px 0 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f6f9fb;
    color: #526773;
    font-size: 13px;
}

.profile-personal-blog__posts strong {
    display: inline-flex;
    min-width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    border-radius: 12px;
    background: #e3f3fb;
    color: #1683c7;
    font-size: 13px;
}

.profile-personal-blog__posts--empty {
    line-height: 1.45;
}

.profile-personal-blog__subscribers {
    margin-top: 16px;
}

.profile-subscription-block {
    box-sizing: border-box;
    margin: 0 0 14px;
    padding: 16px;
    border: 1px solid #dce8ef;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(31, 57, 75, .05);
}

.profile-subscription-block__heading {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
}

#content #main .profile-subscription-block__heading h2 {
    margin: 0;
    padding: 0;
    color: #263b48;
    font-size: 17px;
    line-height: 1.3;
}

.profile-user-subscriptions__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.profile-user-subscription-card {
    display: flex;
    min-width: 0;
    align-items: center;
    flex-direction: column;
    box-sizing: border-box;
    padding: 14px 10px 12px;
    border: 1px solid #dfe8ed;
    border-radius: 11px;
    background: #f8fbfc;
    color: #28495d;
    text-align: center;
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.profile-user-subscription-card:hover {
    border-color: #abd7ed;
    box-shadow: 0 5px 14px rgba(27, 116, 163, .12);
    color: #1683c7;
    text-decoration: none;
    transform: translateY(-1px);
}

.profile-user-subscription-card__avatar {
    display: block;
    width: 76px;
    height: 76px;
    overflow: hidden;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #e8eef2;
    box-shadow: 0 2px 8px rgba(31, 57, 75, .16);
}

.profile-user-subscription-card__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-user-subscription-card__name {
    display: block;
    max-width: 100%;
    margin-top: 9px;
    overflow: hidden;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-user-subscriptions__more {
    display: block;
    margin: 14px auto 0;
    padding: 8px 15px;
    border: 1px solid #cce3ee;
    border-radius: 16px;
    background: #edf7fb;
    color: #1683c7;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
}

.profile-user-subscriptions__more:hover {
    border-color: #a6d2e7;
    background: #e4f3fa;
}

.profile-blog-subscriptions__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.profile-blog-subscription-card {
    display: flex;
    min-width: 0;
    min-height: 44px;
    align-items: center;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #dfe8ed;
    border-radius: 10px;
    background: #f8fbfc;
    color: #28495d;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
}

.profile-blog-subscription-card:hover {
    border-color: #abd7ed;
    color: #1683c7;
    text-decoration: none;
}

.profile-personal-blog__empty {
    margin: 0;
    color: #73818a;
    font-size: 12px;
}

.profile-summary-card {
    display: grid;
    grid-template-columns: 76px minmax(170px, 1fr) auto auto;
    gap: 16px 20px;
    align-items: center;
    box-sizing: border-box;
    margin-bottom: 4px;
    padding: 20px 22px 0;
    border: 1px solid #e2e8ed;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(31, 57, 75, .08);
}

.profile-summary-card--compact {
    padding-bottom: 20px;
}

.profile-summary-avatar {
    grid-column: 1;
    grid-row: 1;
}

.profile-summary-avatar img {
    display: block;
    width: 76px;
    height: 76px;
    border-radius: 18px;
    object-fit: cover;
    background: #edf3f6;
}

.profile-summary-identity {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
}

.profile-summary-name {
    overflow: hidden;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
}

.profile-summary-name a {
    color: #1683c7;
    text-decoration: none;
}

.profile-summary-name a:hover {
    color: #0b6fae;
    text-decoration: underline;
}

.profile-summary-caption {
    margin-top: 6px;
    color: #7b8992;
    font-size: 13px;
}

.profile-summary-contacts {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.3;
}

.profile-summary-contact {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 5px;
    color: #60727d;
    text-decoration: none;
}

a.profile-summary-contact:hover {
    color: #1683c7;
}

.profile-summary-contact svg {
    flex: 0 0 13px;
    width: 13px;
    height: 13px;
    color: #8b9aa3;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.profile-summary-contact__value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-summary-metrics {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.profile-summary-metric {
    display: flex;
    min-width: 142px;
    align-items: center;
    gap: 9px;
    box-sizing: border-box;
    padding: 9px 12px;
    border-radius: 10px;
    background: #f3f7f9;
    text-align: left;
}

.profile-summary-metric-copy > span,
.profile-summary-stat span,
.profile-karma-vote-label {
    display: block;
    color: #73818a;
    font-size: 11px;
    line-height: 1.2;
}

.profile-summary-metric-copy strong {
    display: block;
    margin-top: 4px;
    color: #263b48;
    font-size: 17px;
    line-height: 1.15;
}

.profile-summary-metric-icon {
    display: inline-flex;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.profile-summary-metric-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.profile-summary-metric-icon--rating {
    background: #fff4d7;
    color: #a66b00;
}

.profile-summary-metric-icon--author {
    background: #e6f2ff;
    color: #1972ad;
}

.profile-karma-vote {
    position: relative;
    grid-column: 4;
    grid-row: 1;
    min-width: 130px;
    overflow: hidden;
    padding: 8px 12px;
    border: 1px solid #dce5ea;
    border-radius: 10px;
    background: #fff;
    text-align: center;
}

.profile-karma-vote.is-pending {
    cursor: wait;
}

.profile-karma-vote.is-pending .carma-up {
    pointer-events: none;
}

.profile-karma-vote.is-pending::after {
    content: "";
    position: absolute;
    z-index: 5;
    inset: 0;
    border-radius: inherit;
    background-color: rgba(255, 255, 255, .5);
    background-image: repeating-linear-gradient(
        135deg,
        rgba(22, 131, 199, .08) 0,
        rgba(22, 131, 199, .08) 8px,
        rgba(22, 131, 199, .24) 8px,
        rgba(22, 131, 199, .24) 16px
    );
    background-size: 23px 23px;
    pointer-events: none;
    animation: profile-karma-pending-stripes .65s linear infinite;
}

@keyframes profile-karma-pending-stripes {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 23px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .profile-karma-vote.is-pending::after {
        animation: none;
    }
}

.profile-karma-vote-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.profile-summary .carma-up {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
}

.profile-summary .carma-up a {
    display: block;
    text-decoration: none;
}

.profile-summary .carma-up .good,
.profile-summary .carma-up .good-gray,
.profile-summary .carma-up .bad,
.profile-summary .carma-up .bad-gray {
    display: flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 1px solid #d9e3e8;
    border-radius: 8px;
    background: #f6f8f9;
    color: #75838b;
    cursor: pointer;
    font-size: 0;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.profile-summary .carma-up .good::before,
.profile-summary .carma-up .good-gray::before {
    content: "+";
    font-size: 20px;
    line-height: 1;
}

.profile-summary .carma-up .bad::before,
.profile-summary .carma-up .bad-gray::before {
    content: "−";
    font-size: 20px;
    line-height: 1;
}

.profile-summary .carma-up .good {
    border-color: #97d7bb;
    background: #e9f8f1;
    color: #168153;
}

.profile-summary .carma-up .bad {
    border-color: #efb5b5;
    background: #fff0f0;
    color: #b64646;
}

.profile-summary .carma-up a:hover .good,
.profile-summary .carma-up a:hover .good-gray {
    border-color: #6fc7a0;
    background: #e9f8f1;
    color: #168153;
}

.profile-summary .carma-up a:hover .bad,
.profile-summary .carma-up a:hover .bad-gray {
    border-color: #e89b9b;
    background: #fff0f0;
    color: #b64646;
}

.profile-summary .carma-up .profile-karma-value {
    min-width: 52px;
    color: #263b48;
    font-size: 17px;
    font-weight: 700;
    line-height: 28px;
    text-align: center;
}

.profile-summary .carma-up .profile-karma-votes {
    display: flex;
    flex: 0 0 100%;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #73818a;
    font-size: 10px;
    line-height: 1.2;
}

.profile-summary .carma-up .profile-karma-votes svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.profile-summary .carma-up .profile-karma-votes .rating {
    color: #526773;
    font-weight: 700;
}

.profile-summary-stats {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    margin: 0 -22px;
    border-top: 1px solid #e7edf1;
    background: #fbfcfd;
    border-radius: 0 0 14px 14px;
}

.profile-summary-card--with-info .profile-summary-stats {
    border-radius: 0;
}

.profile-summary-stat {
    min-width: 0;
    padding: 13px 16px 14px;
    border-right: 1px solid #e7edf1;
    text-align: center;
}

.profile-summary-stat:last-child {
    border-right: 0;
}

.profile-summary-stat strong,
.profile-summary-stat strong a {
    display: block;
    margin-top: 4px;
    color: #1683c7;
    font-size: 17px;
    line-height: 1.1;
    text-decoration: none;
}

.profile-user-info {
    grid-column: 1 / -1;
    grid-row: 3;
    box-sizing: border-box;
    margin: -16px -22px 0;
    padding: 11px 22px 14px;
    border-top: 1px solid #e7edf1;
    border-radius: 0 0 14px 14px;
    background: #fff;
}

.profile-user-info__heading {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin: 0 0 8px;
}

#content .profile-user-info h2 {
    margin: 0;
    padding: 0;
    color: #60727d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .035em;
    line-height: 1.3;
    text-transform: uppercase;
}

#content .profile-user-info__edit {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border: 1px solid #d6e5ec;
    border-radius: 7px;
    background: #f5f9fb;
    color: #397e9d;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.2;
    text-decoration: none;
    text-transform: none;
}

.profile-user-info__edit svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

#content .profile-user-info__edit:hover {
    border-color: #b9d7e5;
    background: #eaf5fa;
    color: #176e95;
}

.profile-user-info__edit:focus-visible {
    outline: 3px solid #9ccfe5;
    outline-offset: 2px;
}

.profile-user-info__grid {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, auto));
    margin: 0;
}

.profile-user-info__item {
    display: grid;
    grid-template-columns: minmax(92px, .8fr) minmax(0, 1.2fr);
    gap: 8px;
    min-width: 0;
    padding: 5px 14px;
    border-left: 1px solid #edf1f3;
}

.profile-user-info__item:nth-child(-n+2) {
    padding-left: 0;
    border-left: 0;
}

.profile-user-info__item dt,
.profile-user-info__item dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.profile-user-info__item dt {
    color: #7a8992;
    font-size: 11px;
    line-height: 1.35;
}

.profile-user-info__item dd {
    color: #314957;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.profile-user-info__item dd span {
    color: #7a8992;
    font-size: 11px;
    font-weight: 400;
    white-space: nowrap;
}

.profile-menu-toggle {
    display: none;
}

.profile-blocked-notice {
    margin-top: 10px;
    padding: 12px 16px;
    border: 1px solid #efcf9f;
    border-radius: 10px;
    background: #fff8e8;
    color: #785323;
    font-size: 12px;
    line-height: 1.5;
}

.profile-sidebar .profile-side-card {
    float: none;
    width: auto;
    box-sizing: border-box;
    margin: 0 0 20px;
    padding: 8px;
    border: 1px solid #e2e8ed;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(31, 57, 75, .06);
}

.profile-sidebar .links_block,
.profile-sidebar .top_toolbar {
    margin: 0;
    padding: 0;
}

.profile-sidebar .links_block li,
.profile-sidebar .top_toolbar li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #edf1f3;
}

.profile-sidebar .links_block li:last-child,
.profile-sidebar .top_toolbar li:last-child {
    border-bottom: 0;
}

.profile-sidebar .links_block a,
.profile-sidebar .top_toolbar a {
    display: block;
    padding: 10px 12px;
    border-radius: 7px;
    color: #1683c7;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
}

.profile-sidebar .links_block a:hover,
.profile-sidebar .top_toolbar a:hover {
    background: #f1f7fa;
    color: #0b6fae;
}

.profile-sidebar .links_block li {
    padding-left: 0;
}

.profile-sidebar .links_block .site-desc {
    display: block;
    padding: 10px 12px;
    color: #74818a;
    font-size: 11px;
    line-height: 1.45;
}

.profile-permanent-card {
    margin: 10px 0 0;
    padding: 14px;
    border: 1px solid #cfe4ee;
    border-radius: 10px;
    background: #f3f9fc;
}

.profile-permanent-card__eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #607b8a;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

#content .profile-permanent-card__title {
    margin: 0;
    padding: 0;
    color: #263c49;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.profile-permanent-card p {
    margin: 8px 0 12px;
    color: #617582;
    font-size: 12px;
    line-height: 1.5;
}

.profile-sidebar .profile-permanent-card .profile-permanent-card__button {
    display: block;
    box-sizing: border-box;
    padding: 9px 10px;
    border: 1px solid #167ba4;
    border-radius: 8px;
    background: #167ba4;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
}

.profile-sidebar .profile-permanent-card .profile-permanent-card__button:hover {
    border-color: #10698e;
    background: #10698e;
    color: #fff;
}

.profile-sidebar .profile-permanent-card .profile-permanent-card__button:focus-visible {
    outline: 3px solid #86bdd5;
    outline-offset: 3px;
}

.profile-sidebar .top_toolbar {
    margin: 8px -8px -8px;
    padding: 8px;
    border-top: 1px solid #e7edf1;
    border-radius: 0 0 12px 12px;
    background: #f8fafb;
}

.profile-sidebar .profile-admin-card {
    box-sizing: border-box;
    margin: 0 0 20px;
    padding: 12px;
    border: 1px solid #dfcda9;
    border-radius: 12px;
    background: #fbf3e3;
    box-shadow: 0 4px 14px rgba(102, 75, 29, .08);
}

#content .profile-sidebar .profile-admin-card h2 {
    margin: 0 0 9px;
    padding: 0 2px;
    color: #6d552e;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .035em;
    line-height: 1.3;
    text-transform: uppercase;
}

.profile-admin-actions {
    margin: 0;
    padding: 0;
    list-style: none;
}

.profile-admin-actions li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(151, 119, 67, .17);
}

.profile-admin-actions a {
    display: block;
    padding: 8px 9px;
    border-radius: 7px;
    color: #8a5b19;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
}

.profile-admin-actions a:hover {
    background: rgba(255, 255, 255, .55);
    color: #70460d;
}

.profile-admin-ips {
    margin: 10px 0 0;
    padding: 10px 9px 0;
    border-top: 1px solid rgba(151, 119, 67, .24);
}

.profile-admin-ips > div + div {
    margin-top: 10px;
}

.profile-admin-ips dt,
.profile-admin-ips dd {
    margin: 0;
}

.profile-admin-ips dt {
    color: #856f4a;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .035em;
    line-height: 1.3;
    text-transform: uppercase;
}

.profile-admin-ips dd {
    margin-top: 3px;
    overflow-wrap: anywhere;
    color: #5d4a2c;
    font-size: 11px;
    line-height: 1.45;
}

.profile-admin-ips dd a {
    color: #8a5b19;
}

.profile-admin-ips dd a + a {
    display: block;
    margin-top: 2px;
}

.profile-activity-page {
    box-sizing: border-box;
    min-width: 0;
    margin: 0 0 24px;
}

.profile-activity-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 14px;
    padding: 2px 2px 0;
}

.profile-activity-heading__eyebrow {
    display: block;
    margin-bottom: 4px;
    color: #7a8d98;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.2;
    text-transform: uppercase;
}

#content #main .profile-activity-heading h1 {
    margin: 0;
    padding: 0;
    background: none;
    color: #263c49;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.25;
}

.profile-activity-heading__count {
    display: inline-flex;
    min-width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0 10px;
    border: 1px solid #dce8ee;
    border-radius: 12px;
    background: #f5f9fb;
    color: #4f6877;
    font-size: 14px;
    font-weight: 700;
}

.profile-activity-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    box-sizing: border-box;
    margin: 0 0 18px;
    padding: 5px;
    border: 1px solid #dfe8ed;
    border-radius: 13px;
    background: #f3f7f9;
}

#content #main .profile-activity-tab {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    gap: 8px;
    min-width: 0;
    align-items: center;
    box-sizing: border-box;
    padding: 11px 13px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #607581;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.profile-activity-tab svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.profile-activity-tab strong {
    display: inline-flex;
    min-width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0 7px;
    border-radius: 8px;
    background: rgba(96, 117, 129, .1);
    color: inherit;
    font-size: 11px;
    font-weight: 700;
}

#content #main .profile-activity-tab:hover {
    border-color: #d7e7ef;
    background: rgba(255, 255, 255, .65);
    color: #167fae;
}

#content #main .profile-activity-tab.is-active {
    border-color: #d4e6ef;
    background: #fff;
    box-shadow: 0 3px 10px rgba(39, 79, 99, .08);
    color: #167fae;
}

.profile-activity-tab.is-active strong {
    background: #e6f3f9;
}

.profile-activity-tab:focus-visible {
    outline: 3px solid #9ccfe5;
    outline-offset: 2px;
}

.profile-comment-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.profile-comment-list__item {
    margin: 0 0 12px;
    padding: 0;
}

.profile-comment-list__date {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 19px 0 10px;
    color: #7b8c95;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.2;
    text-transform: uppercase;
}

.profile-comment-list__date:first-child {
    margin-top: 0;
}

.profile-comment-list__date::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #e5ecef;
}

.profile-comment-card {
    box-sizing: border-box;
    padding: 17px 18px 14px;
    border: 1px solid #e0e8ec;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(34, 69, 87, .055);
}

.profile-comment-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

#content #main .profile-comment-card__title {
    min-width: 0;
    margin: 0;
    padding: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

#content #main .profile-comment-card__title a {
    color: #1c718f;
    text-decoration: none;
}

#content #main .profile-comment-card__title a:hover {
    color: #0c91c2;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.profile-comment-card__rating {
    display: inline-flex;
    min-width: 32px;
    height: 28px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0 8px;
    border-radius: 9px;
    background: #eef2f4;
    color: #6f7e86;
    font-size: 12px;
    font-weight: 700;
}

.profile-comment-card__rating.is-positive {
    background: #e6f5eb;
    color: #26814a;
}

.profile-comment-card__rating.is-negative {
    background: #fbe9e7;
    color: #b24d42;
}

.profile-comment-card__body {
    overflow-wrap: anywhere;
    color: #354b57;
    font-size: 14px;
    line-height: 1.62;
}

.profile-comment-card__body > :first-child {
    margin-top: 0;
}

.profile-comment-card__body > :last-child {
    margin-bottom: 0;
}

.profile-comment-card__body img,
.profile-comment-card__body iframe {
    max-width: 100%;
}

.profile-comment-card__body blockquote {
    margin: 10px 0;
    padding: 9px 12px;
    border-left: 3px solid #bed9e5;
    background: #f5f9fb;
    color: #58707d;
}

.profile-comment-card__edited {
    margin: 12px 0 0;
    color: #97a3aa;
    font-size: 10px;
    font-style: italic;
    line-height: 1.4;
}

.profile-comment-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding-top: 11px;
    border-top: 1px solid #edf1f3;
    color: #83919a;
    font-size: 11px;
    line-height: 1.35;
}

.profile-comment-card__footer time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.profile-comment-card__footer time svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.profile-comment-card__links {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

#content #main .profile-comment-card__links a {
    padding: 4px 7px;
    border-radius: 6px;
    background: #f2f6f8;
    color: #527487;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
}

#content #main .profile-comment-card__links a:hover {
    background: #e7f2f7;
    color: #167fae;
}

.profile-comment-card--deleted {
    border-style: dashed;
    background: #f8fafb;
    box-shadow: none;
}

.profile-comment-card__deleted {
    margin: 0 0 10px;
    color: #8b979d;
    font-size: 12px;
    font-weight: 700;
}

.profile-activity-empty {
    box-sizing: border-box;
    padding: 34px 22px;
    border: 1px dashed #ccdce4;
    border-radius: 14px;
    background: #f7fafb;
    color: #71828c;
    text-align: center;
}

.profile-activity-empty__icon {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border-radius: 17px;
    background: #e9f3f7;
    color: #4f94b2;
}

.profile-activity-empty__icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.55;
}

#content #main .profile-activity-empty h2 {
    margin: 0 0 5px;
    padding: 0;
    color: #405965;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}

.profile-activity-empty p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

#content #main .profile-activity-empty a {
    color: #1683c7;
    font-weight: 600;
}

.profile-activity-posts {
    margin-top: 0;
}

@media (max-width: 760px) {
    .profile-activity-heading {
        gap: 12px;
        padding: 0;
    }

    #content #main .profile-activity-heading h1 {
        font-size: 20px;
    }

    .profile-activity-tabs {
        margin-bottom: 14px;
    }

    #content #main .profile-activity-tab {
        grid-template-columns: 18px minmax(0, 1fr) auto;
        gap: 6px;
        padding: 10px 9px;
        font-size: 12px;
    }

    .profile-activity-tab svg {
        width: 18px;
        height: 18px;
    }

    .profile-activity-tab strong {
        min-width: 21px;
        height: 21px;
        padding: 0 5px;
        font-size: 10px;
    }

    .profile-comment-card {
        padding: 14px 14px 12px;
        border-radius: 11px;
    }

    .profile-comment-card__header {
        gap: 9px;
        margin-bottom: 10px;
    }

    #content #main .profile-comment-card__title {
        font-size: 14px;
    }

    .profile-comment-card__body {
        font-size: 13px;
        line-height: 1.58;
    }

    .profile-comment-card__footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .profile-comment-card__links {
        flex-wrap: wrap;
    }

    .profile-activity-empty {
        padding: 28px 16px;
    }

    .profile-email-card {
        padding: 18px;
    }

    .profile-email-card--missing {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .profile-email-card__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .profile-email-card .profile-email-card__button {
        width: 100%;
    }

    .profile-page-layout {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 0 8px;
    }

    .profile-page-layout > .profile-summary,
    #content .profile-page-layout > #main,
    .profile-page-layout > .profile-sidebar {
        width: 100%;
        box-sizing: border-box;
    }

    .profile-page-layout > .profile-summary {
        order: 1;
    }

    .profile-page-layout > .profile-sidebar {
        display: none;
        order: 2;
    }

    .profile-page-layout > .profile-sidebar.is-open {
        display: block;
    }

    .profile-page-layout > #main {
        order: 3;
        margin: 0;
    }

    .profile-personal-blog__header {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .profile-personal-blog__open {
        text-align: center;
    }

    .profile-user-subscriptions__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .profile-user-subscription-card {
        padding: 11px 7px 10px;
    }

    .profile-user-subscription-card__avatar {
        width: 62px;
        height: 62px;
    }

    .profile-user-subscription-card__name {
        overflow-wrap: anywhere;
        white-space: normal;
    }

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

    #content #main .profile-personal-blog__title {
        font-size: 21px;
    }

    .profile-summary-card {
        grid-template-columns: 58px minmax(0, 1fr) 42px;
        gap: 12px;
        padding: 14px 14px 0;
        border-radius: 12px;
    }

    .profile-summary-card--compact {
        padding-bottom: 14px;
    }

    .profile-summary-avatar {
        grid-column: 1;
        grid-row: 1;
    }

    .profile-summary-avatar img {
        width: 58px;
        height: 58px;
        border-radius: 14px;
    }

    .profile-summary-identity {
        grid-column: 2;
        grid-row: 1;
    }

    .profile-summary-name {
        font-size: 18px;
    }

    .profile-summary-caption {
        margin-top: 3px;
        font-size: 12px;
    }

    .profile-menu-toggle {
        grid-column: 3;
        grid-row: 1;
        display: flex;
        width: 42px;
        height: 42px;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 0;
        border: 1px solid #dce5ea;
        border-radius: 10px;
        background: #f7fafb;
        cursor: pointer;
    }

    .profile-menu-toggle span {
        display: block;
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: #526773;
    }

    .profile-menu-toggle[aria-expanded="true"] {
        border-color: #9acbe5;
        background: #eaf5fb;
    }

    .profile-summary-metrics {
        grid-column: 1 / -1;
        grid-row: 2;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .profile-summary-metric {
        min-width: 0;
        padding: 9px 10px;
    }

    .profile-karma-vote {
        grid-column: 1 / -1;
        grid-row: 3;
        display: flex;
        min-width: 0;
        align-items: center;
        justify-content: space-between;
        padding: 8px 10px;
    }

    .profile-karma-vote-label {
        font-size: 12px;
    }

    .profile-summary .carma-up {
        margin-top: 0;
    }

    .profile-summary-stats {
        grid-column: 1 / -1;
        grid-row: 4;
        display: flex;
        margin: 0 -14px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scrollbar-width: none;
    }

    .profile-user-info {
        grid-row: 5;
        margin: -12px -14px 0;
        padding: 11px 14px 13px;
    }

    .profile-user-info__heading {
        margin-bottom: 7px;
    }

    .profile-user-info__grid {
        grid-auto-flow: row;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
    }

    .profile-user-info__item,
    .profile-user-info__item:nth-child(-n+2) {
        display: block;
        padding: 6px 8px;
        border-left: 0;
    }

    .profile-user-info__item dd {
        margin-top: 2px;
    }

    .profile-summary-stats::-webkit-scrollbar {
        display: none;
    }

    .profile-summary-stat {
        flex: 0 0 126px;
        padding: 12px 10px;
    }

    .profile-sidebar .profile-side-card {
        margin-bottom: 0;
    }

    .profile-sidebar .profile-admin-card {
        margin-bottom: 0;
    }
}
