/* Isolate username markup from legacy rules that style every nested span. */
.gm-member-identity,
.gm-member-identity > .gm-member-name {
    all: unset !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    max-width: 100% !important;
}
.gm-member-identity {
    display: inline-flex !important;
    align-items: center !important;
    gap: .3em !important;
    vertical-align: baseline !important;
    white-space: nowrap !important;
}
.gm-member-identity > .gm-member-name {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}
.gm-premium-icon {
    display: inline-block;
    flex: 0 0 auto;
    width: clamp(13px, 1em, 22px);
    height: clamp(13px, 1em, 22px);
    overflow: visible;
    vertical-align: -.12em;
    filter: none;
}
.gm-premium-icon__seal { fill: #e8b747; }
.gm-premium-icon__star { fill: #503711; }
/* Fixed metrics prevent header links and narrow author columns growing. */
:where(a, strong, b, small, span, h1, h2, h3):has(> .gm-member-identity) {
    min-width: 0;
    max-width: 100%;
}
#header .gm-user-link__copy strong,
#header .gm-account-home strong { line-height: 1.4; }
.gm-member-identity > .gm-premium-icon { align-self: center; }
/* Forum access labels stay separate from the compact username emblem. */
.gm-premium-badge {
    display: inline-flex;
    align-items: center;
    gap: .35em;
    max-width: 100%;
    padding: .3em .65em;
    border: 1px solid #dec477;
    border-radius: .4rem;
    background: #fff5d5;
    color: #765117;
    font-size: .65rem;
    font-weight: 750;
    line-height: 1.4;
    vertical-align: middle;
}
.gm-premium-badge > .bi { flex: none; line-height: 1; }
html[data-theme="dark"] .gm-premium-badge {
    border-color: #68542c;
    background: #30291a;
    color: #f4ce75;
}
