/* Forum account details stay beside the account trigger on desktop. */
body.wt-forum-account-open #siteSidebar {
    z-index: 428;
    transition-property: width, background-color, box-shadow;
}

.wt-forum-account-wrap {
    position: relative;
    width: 340px;
    max-width: 100%;
    min-width: 0;
}

.wt-forum .wt-forum-account[data-forum-account-toggle] {
    width: 100%;
    color: var(--forum-ink);
    text-align: left;
    appearance: none;
    transition: border-color .18s ease, background-color .18s ease;
}

.wt-forum-account[data-forum-account-toggle][aria-expanded="true"] {
    border-color: #dfabc2;
    background: #fff7fb;
}

.wt-forum-account[data-forum-account-toggle] > svg {
    transition: transform .18s ease;
}

.wt-forum-account[data-forum-account-toggle][aria-expanded="true"] > svg {
    transform: rotate(90deg);
}

.wt-forum-account-backdrop {
    position: fixed;
    inset: 0;
    z-index: 425;
    box-sizing: border-box;
    padding: 16px 12px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    background: transparent;
}

.wt-forum-account-backdrop::-webkit-scrollbar {
    display: none;
}

.wt-forum-account-panel {
    position: absolute;
    z-index: 430;
    width: 390px;
    max-width: calc(100vw - 24px);
    max-height: none;
    padding: 23px;
    overflow: visible;
    border: 1px solid #e8dce5;
    border-radius: 15px;
    background: linear-gradient(150deg, #fff6fa 0, #fff 180px);
    box-shadow: 0 18px 55px #30415d24, 0 3px 10px #30415d0a;
    color: var(--forum-ink);
    font: inherit;
    line-height: 1.5;
    text-align: left;
    animation: wtForumAccountIn .16s ease-out;
}

.wt-forum-account-panel:focus {
    outline: none;
}

.wt-forum .wt-forum-account-panel__close {
    position: absolute;
    top: 11px;
    right: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    min-height: 36px;
    padding: 7px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #8c7485;
    font-size: 23px;
    line-height: 1;
}

.wt-forum .wt-forum-account-panel__close:hover {
    background: #f8e8f0;
    color: #9c3b67;
}

.wt-forum-account-panel__close svg {
    width: 20px;
    height: 20px;
}

.wt-forum .wt-forum-account-panel__eyebrow {
    display: block;
    padding-right: 29px;
    margin-bottom: 17px;
    color: #a34b72;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.2px;
    line-height: 1.5;
    text-transform: uppercase;
}

.wt-forum-account-panel__identity {
    display: flex;
    align-items: center;
    gap: 13px;
    padding-right: 16px;
}

.wt-forum-account-panel__avatar {
    position: relative;
    display: block;
    flex: 0 0 57px;
    width: 57px;
    height: 57px;
}

.wt-forum-account-panel__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    border: 3px solid #fff;
    border-radius: 15px;
    background: #f4edf3;
    object-fit: cover;
    box-shadow: 0 0 0 1px #eddee7;
}

.wt-forum-account-panel__identity > div {
    flex: 1;
    min-width: 0;
}

.wt-forum-account-panel__identity strong {
    display: block;
    margin-bottom: 5px;
    color: var(--forum-ink);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -.3px;
    overflow-wrap: anywhere;
}

.wt-forum-account-panel__identity .wt-forum-rank {
    margin: 0 5px 3px 0;
}

.wt-forum-account-panel__identity .wt-forum-role {
    display: inline;
    margin: 0;
    color: #83647b;
    font-size: 10px;
}

.wt-forum-account-panel__nickname {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px 10px;
    min-width: 0;
}

.wt-forum-account-panel__nickname > strong {
    flex: 1;
    min-width: 0;
    margin: 0;
}

.wt-forum .wt-forum-account-panel__nickname-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-height: 34px;
    padding: 5px 0;
    border: 0;
    background: transparent;
    color: #a34b72;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.5;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.wt-forum .wt-forum-account-panel__nickname-toggle:hover {
    color: #8d355c;
}

.wt-forum-account-panel__nickname-edit-wrap { display: inline-flex; align-items: center; }

.wt-forum-account-panel__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 19px 0 0;
    border: 1px solid #eae3ed;
    border-radius: 12px;
    background: #fbf8fc;
}

.wt-forum-account-panel__stats > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    min-height: 50px;
    padding: 11px 12px;
}

.wt-forum-account-panel__stats > div:nth-child(odd) {
    border-right: 1px solid #eae3ed;
}

.wt-forum-account-panel__stats > div:nth-child(n + 3) {
    border-top: 1px solid #eae3ed;
}

.wt-forum-account-panel__stats dt {
    flex: 1;
    min-width: 0;
    color: #7b6b80;
    font-size: 11px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.wt-forum-account-panel__stats dd {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 55%;
    margin: 0;
    color: #8b4e70;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.5px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.wt-forum-account-panel__progress {
    margin-top: 17px;
    padding: 13px 14px;
    border: 1px solid #f0dce7;
    border-radius: 9px;
    background: #fff8fb;
}

.wt-forum-account-panel__progress strong {
    display: block;
    color: #8d4668;
    font-size: 12px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.wt-forum-account-panel__progress small {
    display: block;
    margin-top: 5px;
    color: #876c7d;
    font-size: 10px;
    line-height: 1.6;
}

.wt-forum-account-panel__progress progress {
    display: block;
    width: 100%;
    height: 5px;
    margin-top: 10px;
    overflow: hidden;
    border: 0;
    border-radius: 10px;
    background: #f2e1ea;
    color: #d17a9f;
    accent-color: #d17a9f;
    appearance: none;
}

.wt-forum-account-panel__progress progress::-webkit-progress-bar {
    border-radius: 10px;
    background: #f2e1ea;
}

.wt-forum-account-panel__progress progress::-webkit-progress-value {
    border-radius: 10px;
    background: #d17a9f;
}

.wt-forum-account-panel__progress progress::-moz-progress-bar {
    border-radius: 10px;
    background: #d17a9f;
}

.wt-forum-account-panel__actions a {
    width: 100%;
    margin-top: 10px;
}

.wt-forum .wt-forum-account-panel__actions .wt-forum-button {
    flex-direction: column;
    gap: 7px;
    min-width: 0;
    min-height: 80px;
    padding: 11px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    white-space: normal;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.wt-forum .wt-forum-account-panel__actions .wt-forum-button--forum-profile {
    border-color: #e6c5d6;
    background: #fff;
    color: #9b3e67;
}

.wt-forum .wt-forum-account-panel__actions .wt-forum-button--social {
    border-color: #f0d7e3;
    background: linear-gradient(145deg, #fff5f9, #fbeaf2);
    color: #9b3e67;
}

.wt-forum .wt-forum-account-panel__actions .wt-forum-button--settings {
    border-color: #e3e7ef;
    background: #fff;
    color: #536078;
}

.wt-forum-account-panel__action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border: 1px solid #f0dce6;
    border-radius: 9px;
    background: #ffffffb3;
}

.wt-forum-button--forum-profile .wt-forum-account-panel__action-icon {
    border-color: #f2dbe7;
    background: #fff3f8;
    color: #9b3e67;
}

.wt-forum-account-panel__action-icon > svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.8;
}

.wt-forum-button--settings .wt-forum-account-panel__action-icon {
    border-color: #e9edf3;
    background: #f5f7fa;
    color: #718099;
}

.wt-forum .wt-forum-account-panel__actions .wt-forum-button--forum-profile:hover {
    border-color: #d492b0;
    background: #fff8fb;
    box-shadow: 0 3px 10px #a54e7310;
}

.wt-forum .wt-forum-account-panel__actions .wt-forum-button--social:hover {
    border-color: #dda7bf;
    background: #fbe9f1;
    box-shadow: 0 3px 10px #a54e7310;
}

.wt-forum .wt-forum-account-panel__actions .wt-forum-button--settings:hover {
    border-color: #bac5d6;
    background: #fff;
    box-shadow: 0 3px 10px #30415d0d;
}

.wt-forum .wt-forum-account-panel__actions .wt-forum-button:focus-visible {
    outline: 2px solid #c46b93;
    outline-offset: 3px;
}

.wt-forum .wt-forum-account-panel__actions .wt-forum-button:active {
    box-shadow: inset 0 1px 3px #30415d12;
}

@keyframes wtForumAccountIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    body.wt-forum-account-open {
        overflow: hidden;
    }

    .wt-forum-account-wrap {
        width: 100%;
    }

    .wt-forum-account-backdrop {
        display: flex;
        flex-direction: column;
        align-items: center;
        top: var(--wt-forum-panel-viewport-top, 0px);
        bottom: var(--wt-forum-panel-viewport-bottom, 0px);
        padding: calc(16px + env(safe-area-inset-top, 0px)) 12px calc(16px + env(safe-area-inset-bottom, 0px));
        background: rgba(45, 36, 55, .25);
        -webkit-backdrop-filter: blur(2px);
        backdrop-filter: blur(2px);
    }

    .wt-forum-account-panel {
        position: relative;
        flex: 0 0 auto;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100%;
        height: fit-content;
        max-width: 390px;
        max-height: none !important;
        margin-top: auto;
        margin-bottom: auto;
        padding: 22px 20px;
        border-radius: 18px;
        box-shadow: 0 18px 75px #2f27373d;
    }

    .wt-forum-account-panel__avatar {
        flex-basis: 52px;
        width: 52px;
        height: 52px;
    }

    .wt-forum .wt-forum-account-panel__close {
        top: 8px;
        right: 8px;
        width: 44px;
        min-height: 44px;
    }

    .wt-forum .wt-forum-account-panel__nickname-toggle {
        min-height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wt-forum-account-panel {
        animation: none;
    }

    .wt-forum .wt-forum-account[data-forum-account-toggle],
    .wt-forum-account[data-forum-account-toggle] > svg,
    .wt-forum .wt-forum-account-panel__actions .wt-forum-button {
        transition: none;
    }
}
