/* SwankageTCG v1010: restore username and original public menu options.
   Scoped exclusively to PUBLIC #header account menu; v1009 JS and other header areas unchanged. */
#header .sw-v653-account-cart .sw-v1010-account-menu {
    width: auto !important;
    min-width: 0 !important;
    max-width: min(190px, 18vw) !important;
}
#header .sw-v653-account-cart .sw-v1010-account-trigger {
    width: auto !important;
    min-width: 42px !important;
    max-width: 100% !important;
    height: 42px !important;
    padding: 0 5px !important;
    justify-content: flex-start !important;
    gap: 8px !important;
}
#header .sw-v1010-account-trigger .sw-v1010-account-name {
    display: block !important;
    visibility: visible !important;
    min-width: 0 !important;
    max-width: 120px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    color: #eef4f8 !important;
    font-size: 12px !important;
    font-weight: 850 !important;
    line-height: 1.15 !important;
}
#header .sw-v1010-account-trigger .sw-v1010-account-chevron {
    display: block !important;
    color: var(--sw-accent, #ff6b18) !important;
    font-size: 9px !important;
    margin-left: 1px !important;
    transition: transform .16s ease !important;
}
#header .sw-v1010-account-menu[open] .sw-v1010-account-chevron {transform: rotate(180deg)}
#header .sw-v1010-account-trigger .sw-v653-account-badge {right: auto !important;left: 18px !important}
#header .sw-v1010-account-popover {
    width: 250px !important;
    min-width: 250px !important;
    max-width: calc(100vw - 18px) !important;
    max-height: min(610px, calc(100dvh - 175px)) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-color: #465463 #11191f;
    white-space: normal !important;
}
#header .sw-v1010-account-popover .sw-v1010-menu-section-title {
    padding: 12px 9px 5px !important;
    margin: 3px 0 4px !important;
    border-top: 1px solid #35404b !important;
    color: var(--sw-accent, #ff6b18) !important;
    font-size: 9px !important;
    font-weight: 900 !important;
    letter-spacing: .14em !important;
    line-height: 1.4 !important;
}
#header .sw-v1010-account-popover .sw-v1010-menu-section-title:first-child {
    margin-top: 0 !important;
    padding-top: 5px !important;
    border-top: 0 !important;
}
#header .sw-v1010-account-popover a > span {min-width: 0; overflow-wrap: anywhere}
@media (min-width: 992px) and (max-width: 1200px) {
    #header .sw-v1010-account-trigger .sw-v1010-account-name {max-width: 78px !important}
    #header .sw-v653-account-cart .sw-v1010-account-trigger {gap: 5px !important}
}
@media (max-width: 991px) {
    /* Desktop utility account control is not shown in the existing mobile header. */
    #header .sw-v1010-account-popover {max-height: min(610px, calc(100dvh - 85px)) !important}
}
@media (prefers-reduced-motion: reduce) {
    #header .sw-v1010-account-trigger .sw-v1010-account-chevron {transition: none !important}
}
