.acct-shell {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.acct-menu {
    position: sticky;
    top: 16px;
    padding: 14px;
    border: 1px solid rgb(120 90 130 / 16%);
    border-radius: 18px;
    background: rgb(255 255 255 / 72%);
}

.acct-menu__label {
    margin: 0 0 8px;
    color: #7b4a91;
    font-family: Teko, sans-serif;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
}

.acct-menu nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.acct-menu a {
    padding: 8px 10px;
    border-radius: 10px;
    color: #30223a;
    text-decoration: none;
    font-family: Urbanist, sans-serif;
    font-weight: 650;
    font-size: 0.92rem;
}

.acct-menu a.is-active,
.acct-menu a:hover {
    background: rgb(123 74 145 / 10%);
    color: #5c2f6e;
}

.acct-intro {
    align-items: flex-start;
    text-align: left;
    margin-bottom: 18px;
}

.acct-card {
    margin: 0 0 16px;
    padding: 18px 18px 16px;
    border: 1px solid rgb(120 90 130 / 14%);
    border-radius: 18px;
    background: rgb(255 255 255 / 78%);
}

.acct-card h2,
.acct-thread h1 {
    margin: 0 0 10px;
    font-family: Urbanist, sans-serif;
    font-weight: 650;
    color: #2c2234;
}

.acct-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.acct-stats a {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 12px;
    border-radius: 16px;
    text-decoration: none;
    color: #2c2234;
    background: linear-gradient(180deg, rgb(255 255 255 / 90%), rgb(245 238 248 / 90%));
    border: 1px solid rgb(123 74 145 / 12%);
}

.acct-stats strong {
    font-family: Urbanist, sans-serif;
    font-size: 1.35rem;
}

.acct-stats span,
.acct-note,
.acct-topic__meta,
.acct-form__foot {
    color: #6d6574;
    font-size: 0.92rem;
}

.acct-tools,
.acct-actions,
.acct-owner {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.acct-tools a,
.acct-actions button,
.acct-owner button,
.acct-owner a {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgb(123 74 145 / 20%);
    background: #fff;
    color: #5c2f6e;
    text-decoration: none;
    font: 600 0.86rem Urbanist, sans-serif;
    cursor: pointer;
}

.acct-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.acct-history {
    list-style: none;
    margin: 0;
    padding: 0;
}

.acct-history li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid rgb(120 90 130 / 12%);
}

.acct-history a {
    display: flex;
    flex-direction: column;
    color: #2c2234;
    text-decoration: none;
}

.acct-form {
    display: grid;
    gap: 12px;
}

.acct-form label {
    display: grid;
    gap: 6px;
    font-family: Urbanist, sans-serif;
    font-weight: 700;
    color: #3d3048;
}

.acct-form input,
.acct-form select,
.acct-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid rgb(120 90 130 / 28%);
    background: #fff;
    color: #241c2b;
    font: 400 1rem Poppins, sans-serif;
}

.acct-form button.leebly,
.acct-card .leebly {
    width: fit-content;
}

.acct-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.acct-alert,
.acct-ok,
.acct-empty {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 12px;
}

.acct-alert {
    background: #fff1f2;
    color: #9f1239;
}

.acct-ok,
.acct-empty {
    background: #f6f1f8;
    color: #4c4453;
}

.acct-honeypot {
    position: absolute;
    left: -9999px;
    height: 0;
    opacity: 0;
}

.acct-modes {
    border: 0;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 16px;
}

.acct-modes legend {
    font-family: Urbanist, sans-serif;
    font-weight: 700;
    margin-bottom: 6px;
}

.acct-person {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 12px;
}

.acct-person__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: #4c4453;
    font-size: 0.9rem;
}

.acct-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-grid;
    place-items: center;
    background: #efe6f4;
    color: #5c2f6e;
    font-family: Urbanist, sans-serif;
    font-weight: 800;
    flex-shrink: 0;
}

.acct-avatar--sm { width: 36px; height: 36px; font-size: 0.75rem; }
.acct-avatar--lg { width: 72px; height: 72px; font-size: 1.2rem; }

.acct-abroad,
.acct-lock,
.acct-edited {
    display: inline-flex;
    width: fit-content;
    margin-top: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f3e8ff;
    color: #6b21a8;
    font-style: normal;
    font-size: 0.78rem;
    font-weight: 700;
}

.acct-topics {
    list-style: none;
    margin: 0;
    padding: 0;
}

.acct-topic__title {
    color: #2c2234;
    font-family: Urbanist, sans-serif;
    font-size: 1.15rem;
    font-weight: 750;
    text-decoration: none;
}

.acct-thread__body {
    white-space: pre-wrap;
    line-height: 1.6;
}

.acct-photo-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.acct-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.acct-back a,
.acct-form__foot a,
.acct-country-form a {
    color: #5c2f6e;
}

.acct-actions form,
.acct-owner form,
.acct-danger {
    display: inline;
}

.acct-pager {
    display: flex;
    gap: 14px;
}

body.dark .acct-menu,
body.dark .acct-card,
body.dark .acct-stats a {
    background: rgb(22 18 28 / 92%);
    border-color: rgb(255 255 255 / 10%);
    color: #f3edf6;
}

body.dark .acct-menu a,
body.dark .acct-card h2,
body.dark .acct-thread h1,
body.dark .acct-history a,
body.dark .acct-topic__title,
body.dark .acct-form label {
    color: #f3edf6;
}

body.dark .acct-form input,
body.dark .acct-form select,
body.dark .acct-form textarea {
    background: #16121a;
    color: #f3edf6;
    border-color: rgb(255 255 255 / 16%);
}

@media (max-width: 900px) {
    .acct-shell,
    .acct-split,
    .acct-stats,
    .acct-grid {
        grid-template-columns: 1fr;
    }

    .acct-menu {
        position: static;
    }

    .acct-menu nav {
        flex-direction: row;
        flex-wrap: wrap;
    }
}
