:root {
    --mobile-app-header-height: calc(env(safe-area-inset-top, 0px) + 74px);
}

body.mobile-header-pill-active {
    --mobile-app-header-height: calc(env(safe-area-inset-top, 0px) + 100px);
}

.mobile-app-header {
    --mobile-header-bg: var(--background-color, #ffffff);
    --mobile-header-image: none;
    --mobile-header-overlay: rgba(0, 0, 0, 0);
    background: var(--mobile-header-bg) !important;
    color: var(--text-primary, #111111) !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

.mobile-app-header__brand-row {
    height: 46px !important;
    grid-template-columns: 42px minmax(0, 1fr) auto !important;
    gap: 6px !important;
}

.mobile-app-header__brand {
    width: auto !important;
    max-width: min(66vw, 270px) !important;
    min-height: 40px !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    gap: 8px !important;
}

.mobile-app-header__logo {
    width: 28px !important;
    height: 28px !important;
    flex: 0 0 28px !important;
    flex-basis: 28px !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background: color-mix(in srgb, var(--text-primary, #111111) 9%, transparent) !important;
    background-size: cover !important;
    background-position: center !important;
    border: 0 !important;
    box-shadow: none !important;
    color: var(--text-primary, #111111) !important;
    -webkit-text-fill-color: var(--text-primary, #111111) !important;
    font-size: 12px !important;
    font-weight: 950 !important;
    line-height: 1 !important;
}

.mobile-app-header__name {
    font-size: clamp(14px, 3.65vw, 18px) !important;
    /* 920 was near the top of the variable range and read as a heavy slab at
       header size. Semibold still anchors the brand without shouting. */
    font-weight: 600 !important;
    text-transform: none !important;
}

.mobile-app-header__icon-btn {
    width: 34px !important;
    height: 34px !important;
    border-radius: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--text-primary, #111111) !important;
    -webkit-text-fill-color: var(--text-primary, #111111) !important;
    box-shadow: none !important;
}

.mobile-app-header__more-btn {
    width: 36px !important;
    height: 36px !important;
    border-radius: 13px !important;
    border: 1px solid color-mix(in srgb, var(--text-primary, #111111) 10%, transparent) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(247, 248, 250, 0.68)),
        color-mix(in srgb, var(--background-color, #ffffff) 92%, transparent) !important;
    color: var(--text-primary, #111111) !important;
    -webkit-text-fill-color: var(--text-primary, #111111) !important;
    box-shadow:
        0 8px 22px rgba(15, 23, 42, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

.mobile-app-header__more-btn i,
.mobile-app-header__icon-btn i {
    font-size: 18px !important;
    width: 20px !important;
    height: 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.mobile-app-header__actions {
    gap: 7px !important;
}

.mobile-app-header__auth-btn {
    width: auto !important;
    min-width: 50px !important;
    height: 34px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    background: transparent !important;
    border: 1px solid color-mix(in srgb, var(--text-primary, #111111) 15%, transparent) !important;
    box-shadow: none !important;
    font-size: 8px !important;
    font-weight: 900 !important;
    letter-spacing: 0.02em !important;
}

.mobile-app-header__brand-row {
    position: relative !important;
    grid-template-columns: 42px minmax(0, 1fr) auto !important;
    gap: 8px !important;
}

.mobile-app-header__brand {
    width: auto !important;
    max-width: min(66vw, 270px) !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    justify-content: center !important;
    gap: 9px !important;
    text-align: center !important;
}

.mobile-app-header__more {
    grid-column: 1 !important;
    justify-self: start !important;
    margin-right: 0 !important;
}

.mobile-app-header__tabs {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

.mobile-app-header__profile-btn {
    flex: 0 1 auto !important;
    max-width: min(52vw, 220px) !important;
    justify-content: center !important;
    text-align: center !important;
    overflow: hidden !important;
}

.mobile-app-header__name-wrap,
.mobile-app-header__name {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.mobile-app-header__name-wrap {
    justify-content: center !important;
}

.mobile-app-header__actions {
    grid-column: 3 !important;
}

.mobile-app-header__name {
    font-size: clamp(14px, 3.65vw, 18px) !important;
    font-weight: 900 !important;
}

.mobile-app-header__pill-slot {
    height: 26px;
    margin: 0 -16px 0;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.mobile-app-header__pill {
    min-width: 0;
    height: 24px;
    max-width: min(68vw, 280px);
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 77, 46, 0.24);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 244, 241, 0.92));
    color: #111111;
    -webkit-text-fill-color: #111111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(255, 77, 46, 0.08);
    -webkit-tap-highlight-color: transparent;
    appearance: none;
    -webkit-appearance: none;
}

.mobile-app-header__pill-dot {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 999px;
    background: var(--primary-color, #ff4d2e);
}

.mobile-app-header__pill[data-pill-type="live"] .mobile-app-header__pill-dot {
    background: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.16);
}

.mobile-app-header__pill[data-pill-type="sale"] .mobile-app-header__pill-dot {
    background: #a855f7;
}

.mobile-app-header__pill[data-pill-type="event"] .mobile-app-header__pill-dot {
    background: #0ea5e9;
}

.mobile-app-header__pill[data-pill-type="sponsor"] .mobile-app-header__pill-dot {
    background: #f59e0b;
}

.mobile-app-header__pill-copy {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 9px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Sponsor metadata should feel like a quiet attribution, not a promotion. */
.mobile-app-header__pill[data-pill-type="sponsor"] {
    height: 18px;
    max-width: min(62vw, 240px);
    padding: 0 4px;
    gap: 5px;
    border: 0;
    background: transparent;
    color: #7b8491;
    -webkit-text-fill-color: #7b8491;
    box-shadow: none;
}

.mobile-app-header__pill[data-pill-type="sponsor"] .mobile-app-header__pill-dot {
    width: 4px;
    height: 4px;
    flex-basis: 4px;
    background: #aeb6c1;
}

.mobile-app-header__pill[data-pill-type="sponsor"] .mobile-app-header__pill-copy {
    font-size: 8px;
    font-weight: 650;
    letter-spacing: 0.02em;
    text-transform: none;
}

html[data-theme="dark"] .mobile-app-header__pill[data-pill-type="sponsor"],
body[data-theme="dark"] .mobile-app-header__pill[data-pill-type="sponsor"],
html[data-theme="dark-accent"] .mobile-app-header__pill[data-pill-type="sponsor"],
body[data-theme="dark-accent"] .mobile-app-header__pill[data-pill-type="sponsor"] {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.07);
    color: #d1d5db;
    -webkit-text-fill-color: #d1d5db;
}

html[data-theme="light"] .mobile-app-header,
body[data-theme="light"] .mobile-app-header,
html[data-theme="light-accent"] .mobile-app-header,
body[data-theme="light-accent"] .mobile-app-header,
html[data-theme="light"][data-theme-variant] .mobile-app-header,
body[data-theme="light"][data-theme-variant] .mobile-app-header {
    --mobile-header-bg: #ffffff;
    background: #ffffff !important;
    color: #111111 !important;
    border-bottom-color: transparent !important;
}

html[data-theme="light-accent"] .mobile-app-header,
body[data-theme="light-accent"] .mobile-app-header {
    --mobile-header-bg: color-mix(in srgb, var(--accent-color) 5%, #ffffff 95%);
    background: color-mix(in srgb, var(--accent-color) 5%, #ffffff 95%) !important;
    border-bottom-color: transparent !important;
}

html[data-theme="light"] .mobile-app-header__pill,
body[data-theme="light"] .mobile-app-header__pill,
html[data-theme="light-accent"] .mobile-app-header__pill,
body[data-theme="light-accent"] .mobile-app-header__pill {
    background: rgba(17, 17, 17, 0.04) !important;
    border-color: rgba(255, 77, 46, 0.24) !important;
    color: #111111 !important;
    -webkit-text-fill-color: #111111 !important;
}

html[data-theme="light"] .mobile-app-header__pill[data-pill-type="live"],
body[data-theme="light"] .mobile-app-header__pill[data-pill-type="live"],
html[data-theme="light-accent"] .mobile-app-header__pill[data-pill-type="live"],
body[data-theme="light-accent"] .mobile-app-header__pill[data-pill-type="live"] {
    background: rgba(239, 68, 68, 0.08) !important;
    border-color: rgba(239, 68, 68, 0.22) !important;
}

html[data-theme="light"] .mobile-app-header__pill[data-pill-type="sale"],
body[data-theme="light"] .mobile-app-header__pill[data-pill-type="sale"],
html[data-theme="light-accent"] .mobile-app-header__pill[data-pill-type="sale"],
body[data-theme="light-accent"] .mobile-app-header__pill[data-pill-type="sale"] {
    background: rgba(168, 85, 247, 0.08) !important;
    border-color: rgba(168, 85, 247, 0.22) !important;
}

html[data-theme="light"] .mobile-app-header__pill[data-pill-type="event"],
body[data-theme="light"] .mobile-app-header__pill[data-pill-type="event"],
html[data-theme="light-accent"] .mobile-app-header__pill[data-pill-type="event"],
body[data-theme="light-accent"] .mobile-app-header__pill[data-pill-type="event"] {
    background: rgba(14, 165, 233, 0.08) !important;
    border-color: rgba(14, 165, 233, 0.22) !important;
}

html[data-theme="dark"] .mobile-app-header,
body[data-theme="dark"] .mobile-app-header,
html[data-theme="dark-accent"] .mobile-app-header,
body[data-theme="dark-accent"] .mobile-app-header,
html[data-theme="dark"][data-theme-variant] .mobile-app-header,
body[data-theme="dark"][data-theme-variant] .mobile-app-header {
    --mobile-header-bg: #050505;
    background: #050505 !important;
    color: #ffffff !important;
    border-bottom-color: transparent !important;
}

html[data-theme="dark"] .mobile-app-header__pill,
body[data-theme="dark"] .mobile-app-header__pill,
html[data-theme="dark-accent"] .mobile-app-header__pill,
body[data-theme="dark-accent"] .mobile-app-header__pill {
    background: rgba(255, 255, 255, 0.09) !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: none !important;
}

.mobile-app-header__logo,
.mobile-app-header__name,
.mobile-app-header__icon-btn,
.mobile-app-header__tab {
    color: currentColor;
    -webkit-text-fill-color: currentColor;
}

body.community-active #mobile-app-header .mobile-app-header__brand {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

body.community-active #mobile-app-header #mobile-header-blips-wrap,
body.community-active #mobile-app-header #mobile-app-header-logo {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 28px !important;
    height: 28px !important;
    flex: 0 0 28px !important;
}

body.community-active #mobile-app-header #mobile-app-header-name {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

html[data-theme="light"] .mobile-app-header__tab,
body[data-theme="light"] .mobile-app-header__tab,
html[data-theme="light-accent"] .mobile-app-header__tab,
body[data-theme="light-accent"] .mobile-app-header__tab {
    color: rgba(17, 17, 17, 0.62);
}

html[data-theme="dark"] .mobile-app-header__tab,
body[data-theme="dark"] .mobile-app-header__tab,
html[data-theme="dark-accent"] .mobile-app-header__tab,
body[data-theme="dark-accent"] .mobile-app-header__tab {
    color: rgba(255, 255, 255, 0.66);
}

.mobile-app-header__tab.is-active {
    color: var(--primary-color, #ff4d2e) !important;
    -webkit-text-fill-color: var(--primary-color, #ff4d2e) !important;
}

.mobile-app-header__more {
    position: relative;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    grid-column: 1;
    justify-self: start;
    margin-right: 0;
}

.mobile-app-header__more-btn {
    width: 44px;
    height: 44px;
    position: relative;
    z-index: 2;
    border: 1px solid color-mix(in srgb, var(--text-primary, #111111) 9%, transparent);
    border-radius: 13px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--background-color, #ffffff) 88%, transparent), color-mix(in srgb, var(--text-primary, #111111) 5%, transparent));
    color: currentColor;
    -webkit-text-fill-color: currentColor;
    display: grid;
    place-items: center;
    font-size: 17px;
    line-height: 1;
    flex: 0 0 auto;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.09);
}

.mobile-app-header__more.has-active-tab .mobile-app-header__more-btn,
.mobile-app-header__more.is-open .mobile-app-header__more-btn {
    color: var(--primary-color, #ff4d2e) !important;
    -webkit-text-fill-color: var(--primary-color, #ff4d2e) !important;
    background: linear-gradient(180deg, color-mix(in srgb, var(--primary-color, #ff4d2e) 12%, var(--background-color, #ffffff)), color-mix(in srgb, var(--primary-color, #ff4d2e) 5%, var(--background-color, #ffffff))) !important;
    border-color: color-mix(in srgb, var(--primary-color, #ff4d2e) 18%, transparent) !important;
}

.mobile-app-header__more-menu {
    --mobile-more-menu-bg: rgba(250, 250, 252, 0.97);
    --mobile-more-menu-text: #111111;
    --mobile-more-menu-muted: rgba(17, 17, 17, 0.52);
    --mobile-more-menu-icon-bg: transparent;
    position: fixed;
    inset: 0 auto 0 0;
    width: min(82vw, 336px);
    max-width: calc(100vw - 56px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 0;
    padding: calc(env(safe-area-inset-top, 0px) + 22px) 16px calc(env(safe-area-inset-bottom, 0px) + 18px);
    border-radius: 0 30px 30px 0;
    background: var(--mobile-more-menu-bg) !important;
    border: 0;
    border-right: 1px solid color-mix(in srgb, var(--mobile-more-menu-text) 7%, transparent);
    box-shadow: 24px 0 70px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(34px) saturate(150%);
    -webkit-backdrop-filter: blur(34px) saturate(150%);
    z-index: 2147483000;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(-104%, 0, 0);
    transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease, visibility 0s linear 280ms;
}

.mobile-app-header__more.is-open .mobile-app-header__more-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
    transition-delay: 0s;
}

.mobile-app-header__more-backdrop {
    position: fixed;
    inset: 0;
    display: block;
    width: 100vw;
    height: 100dvh;
    padding: 0;
    border: 0;
    z-index: 2147482999;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    background: rgba(15, 15, 18, 0.16);
    backdrop-filter: blur(9px) saturate(92%);
    -webkit-backdrop-filter: blur(9px) saturate(92%);
    transition: opacity 200ms ease, visibility 0s linear 200ms;
}

.mobile-app-header__more.is-open .mobile-app-header__more-backdrop {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

body.mobile-header-menu-open {
    overflow: hidden !important;
}

.mobile-app-header__more-header {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 4px 24px 6px;
}

.mobile-app-header__more-identity {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
}

.mobile-app-header__more-logo {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 10px;
    background: var(--mobile-more-menu-icon-bg);
    color: var(--mobile-more-menu-text) !important;
    -webkit-text-fill-color: var(--mobile-more-menu-text) !important;
    font-size: 15px;
    font-weight: 900;
}

.mobile-app-header__more-logo.has-image {
    border-radius: 9px;
    background: transparent;
}

.mobile-app-header__more-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-app-header__more-name-wrap {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.mobile-app-header__more-name {
    max-width: 205px;
    overflow: hidden;
    color: var(--mobile-more-menu-text) !important;
    -webkit-text-fill-color: var(--mobile-more-menu-text) !important;
    font-size: 18px;
    font-weight: 850;
    line-height: 1.08;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-app-header__more-eyebrow {
    color: var(--mobile-more-menu-muted) !important;
    -webkit-text-fill-color: var(--mobile-more-menu-muted) !important;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.mobile-app-header__more-close {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: color-mix(in srgb, var(--mobile-more-menu-text) 6%, transparent);
    color: var(--mobile-more-menu-text) !important;
    -webkit-text-fill-color: var(--mobile-more-menu-text) !important;
    font-size: 15px;
}

.mobile-app-header__more-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mobile-app-header__more-refresh {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--mobile-more-menu-text) !important;
    -webkit-text-fill-color: var(--mobile-more-menu-text) !important;
    font-size: 15px;
}

.mobile-app-header__more-items {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    padding: 0 2px;
}

.mobile-app-header__more-items::-webkit-scrollbar {
    display: none;
}

.mobile-app-header__more-item {
    width: 100%;
    min-width: 0;
    height: 50px;
    border: 0;
    border-radius: 15px;
    background: transparent;
    color: var(--mobile-more-menu-text) !important;
    -webkit-text-fill-color: var(--mobile-more-menu-text) !important;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 13px;
    padding: 0 12px;
    font-size: 16px;
    font-weight: 720;
    line-height: 1;
    text-transform: none;
    white-space: nowrap;
    text-align: left;
    box-shadow: none;
}

.mobile-app-header__more-title {
    display: block;
    padding: 5px 12px 10px;
    color: var(--mobile-more-menu-muted) !important;
    -webkit-text-fill-color: var(--mobile-more-menu-muted) !important;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
}

.mobile-app-header__more-item i {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 0;
    background: var(--mobile-more-menu-icon-bg);
    color: var(--mobile-more-menu-text) !important;
    -webkit-text-fill-color: var(--mobile-more-menu-text) !important;
    display: grid;
    place-items: center;
    text-align: center;
    font-size: 17px;
}

.mobile-app-header__more-item.is-active {
    height: 50px;
    flex-direction: row;
    justify-content: flex-start;
    padding: 0 12px;
    text-align: left;
    font-size: 16px;
    color: var(--mobile-more-menu-text) !important;
    -webkit-text-fill-color: var(--mobile-more-menu-text) !important;
    background: color-mix(in srgb, var(--mobile-more-menu-text) 7%, transparent);
}

.mobile-app-header__more-item.is-active::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: auto;
    border-radius: 999px;
    background: var(--primary-color, #ff4d2e);
}

.mobile-app-header__more-item.is-active i {
    background: transparent;
    color: var(--primary-color, #ff4d2e) !important;
    -webkit-text-fill-color: var(--primary-color, #ff4d2e) !important;
}

.mobile-app-header__more-footer {
    padding: 12px 2px 0;
}

.mobile-app-header__more-action {
    margin-top: 0;
    border-top: 1px solid color-mix(in srgb, var(--text-primary, #111111) 8%, transparent) !important;
    border-radius: 0;
    padding-top: 10px;
    color: color-mix(in srgb, var(--text-primary, #111111) 78%, transparent);
    -webkit-text-fill-color: color-mix(in srgb, var(--text-primary, #111111) 78%, transparent);
}

.mobile-app-header__more-action i {
    background: color-mix(in srgb, var(--text-primary, #111111) 5%, transparent);
}

html[data-theme="dark"] .mobile-app-header__more-menu,
body[data-theme="dark"] .mobile-app-header__more-menu,
html[data-theme="dark-accent"] .mobile-app-header__more-menu,
body[data-theme="dark-accent"] .mobile-app-header__more-menu {
    --mobile-more-menu-bg: rgba(12, 12, 12, 0.94);
    --mobile-more-menu-text: #ffffff;
    --mobile-more-menu-muted: rgba(255, 255, 255, 0.54);
    --mobile-more-menu-icon-bg: rgba(255, 255, 255, 0.08);
    background: var(--mobile-more-menu-bg) !important;
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.36);
}

body.mobile-guest-app .mobile-app-header__guest-menu-only {
    display: none !important;
}

.mobile-app-header__refresh-btn {
    display: none !important;
}

.mobile-app-header__more-item span {
    color: inherit !important;
    -webkit-text-fill-color: currentColor !important;
}

.mobile-app-header__more-item[data-menu-action="logout"] {
    margin-top: 8px;
    color: #b42318 !important;
    border-top: 1px solid color-mix(in srgb, #b42318 12%, transparent);
    border-radius: 0;
    padding-top: 14px;
}

html[data-theme="dark"] .mobile-app-header__more-item[data-menu-action="logout"],
body[data-theme="dark"] .mobile-app-header__more-item[data-menu-action="logout"],
html[data-theme="dark-accent"] .mobile-app-header__more-item[data-menu-action="logout"],
body[data-theme="dark-accent"] .mobile-app-header__more-item[data-menu-action="logout"] {
    color: #ff8b82 !important;
    border-top-color: color-mix(in srgb, #ff8b82 18%, transparent);
}

.mobile-app-header__auth-btn {
    background: transparent !important;
}

html[data-theme="light"] .mobile-app-header__auth-btn,
body[data-theme="light"] .mobile-app-header__auth-btn,
html[data-theme="light-accent"] .mobile-app-header__auth-btn,
body[data-theme="light-accent"] .mobile-app-header__auth-btn {
    color: #111111 !important;
    -webkit-text-fill-color: #111111 !important;
    border-color: rgba(17, 17, 17, 0.18) !important;
}

html[data-theme="dark"] .mobile-app-header__auth-btn,
body[data-theme="dark"] .mobile-app-header__auth-btn,
html[data-theme="dark-accent"] .mobile-app-header__auth-btn,
body[data-theme="dark-accent"] .mobile-app-header__auth-btn {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
}

.mobile-app-header.has-custom-background {
    background: var(--mobile-header-bg) !important;
    color: #ffffff !important;
    border-bottom-color: transparent !important;
}

.mobile-app-header.has-custom-background .mobile-app-header__pill {
    background: rgba(0, 0, 0, 0.28) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

@media (max-width: 390px) {
    .mobile-app-header__brand-row {
        grid-template-columns: 40px minmax(0, 1fr) auto !important;
    }

    .mobile-app-header__pill {
        max-width: min(74vw, 250px);
    }
}

/* The workspace menu lives inside #mobile-app-header, which sets
   `isolation: isolate` at z-index 10020. That caps the menu's own
   z-index (2147483000) inside the header's stacking context, so
   full-screen surfaces like Seasons (z 120500) paint over the menu and
   only its top header row stays visible. Lift the whole header above
   those surfaces while the menu is open. */
body.mobile-header-menu-open #mobile-app-header,
body:has(.mobile-app-header__more.is-open) #mobile-app-header {
    z-index: 2147483000 !important;
}
