.shared-page-shell {
    max-width: 1280px;
}

.shared-page-header-shell {
    padding-top: 30px !important;
    padding-bottom: 0 !important;
}

.shared-page-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 22px;
}

.shared-page-brand-row {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    flex: 0 1 560px;
    max-width: 560px;
    min-width: 0;
}

.shared-page-brand-logo {
    width: 84px;
    height: 84px;
    flex: 0 0 84px;
    border-radius: 24px;
    border: 0;
    background: #ffffff;
    box-shadow: none;
    overflow: hidden;
}

.home-center-theme .shared-page-brand-logo {
    width: 84px;
    height: 84px;
    flex-basis: 84px;
    border-radius: 24px;
}

.shared-page-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 12px;
}

.shared-page-brand-logo span {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    font-size: 32px;
    font-weight: 800;
    color: #334155;
    letter-spacing: -0.04em;
}

.shared-page-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    padding-top: 2px;
}

.shared-page-title {
    margin: 0;
    font-size: 42px;
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -1.2px;
}

.shared-page-subtitle {
    margin: 10px 0 0;
    font-size: 18px;
    line-height: 1.6;
    max-width: 100%;
}

.shared-page-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.shared-page-action-button {
    min-width: 132px;
    height: 44px;
    padding: 0 16px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.shared-page-action-slot-1 {
    order: 1;
}

.shared-page-action-slot-2 {
    order: 2;
}

.shared-page-action-slot-3 {
    order: 3;
}

.shared-page-action-slot-4 {
    order: 4;
}

.shared-page-action-button.shared-page-action-compact {
    min-width: 102px;
}

.shared-page-action-ghost {
    border: 1px solid rgba(203, 213, 225, 0.9);
    background: rgba(255, 255, 255, 0.8);
    color: #1f2937;
    box-shadow: none;
}

.shared-page-action-ghost:hover {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(191, 219, 254, 0.92);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.shared-page-action-accent {
    border-color: rgba(251, 146, 60, 0.92);
    background: linear-gradient(135deg, #f59e0b, #fb7185);
    color: #ffffff;
    box-shadow: none;
}

.shared-page-action-accent:hover {
    border-color: rgba(251, 146, 60, 0.92);
    background: linear-gradient(135deg, #f59e0b, #fb7185);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(249, 115, 22, 0.22);
}

.shared-page-action-primary {
    border-color: rgba(111, 156, 255, 0.95);
    background: linear-gradient(135deg, #3f7cff, #5168ff);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(59, 110, 255, 0.28);
}

.shared-page-action-primary:hover {
    border-color: rgba(111, 156, 255, 0.95);
    background: linear-gradient(135deg, #3f7cff, #5168ff);
    color: #ffffff;
    box-shadow: 0 16px 30px rgba(59, 110, 255, 0.32);
}

.shared-page-action-button svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.home-center-theme #authStatus.shared-page-action-slot-2 {
    border-color: rgba(129, 140, 248, 0.36);
    background: linear-gradient(135deg, #4f46e5, #8b5cf6);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(99, 102, 241, 0.24);
}

.home-center-theme #authStatus.shared-page-action-slot-2:hover {
    border-color: rgba(167, 139, 250, 0.5);
    background: linear-gradient(135deg, #5b4bf2, #9d67ff);
    color: #ffffff;
    box-shadow: 0 16px 30px rgba(139, 92, 246, 0.3);
}

.home-center-theme #authToggle.shared-page-action-slot-2 {
    order: 3;
}

.member-hub {
    position: relative;
    min-width: 0;
}

.home-center-theme .member-hub.shared-page-action-slot-2 {
    order: 3;
}

#authStatus.member-hub-trigger {
    min-width: 192px;
    height: 56px;
    padding: 6px 14px 6px 6px;
    gap: 10px;
    justify-content: flex-start;
    border-radius: 999px;
    border: 1px solid rgba(251, 191, 36, 0.22);
    background: rgba(255, 255, 255, 0.86);
    color: #0f172a;
    box-shadow:
        0 18px 32px rgba(249, 115, 22, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

#authStatus.member-hub-trigger:hover {
    border-color: rgba(251, 146, 60, 0.34);
    background: rgba(255, 255, 255, 0.96);
    color: #0f172a;
    box-shadow:
        0 22px 36px rgba(249, 115, 22, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
    transform: translateY(-1px);
}

#authStatus.member-hub-trigger.is-open {
    border-color: rgba(251, 146, 60, 0.34);
    background: rgba(255, 255, 255, 0.98);
    box-shadow:
        0 20px 38px rgba(249, 115, 22, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.member-hub-avatar,
.member-hub-panel-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    flex-shrink: 0;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #f59e0b, #fb7185);
    box-shadow: 0 16px 28px rgba(249, 115, 22, 0.28);
}

.member-hub-avatar {
    width: 38px;
    height: 38px;
    font-size: 17px;
}

#authStatus.member-hub-trigger #memberAvatar {
    box-shadow: 0 16px 28px rgba(249, 115, 22, 0.28);
    transform: none;
    filter: none;
}

#authStatus.member-hub-trigger:hover #memberAvatar,
#authStatus.member-hub-trigger.is-open #memberAvatar {
    transform: scale(1.02);
    box-shadow: 0 18px 32px rgba(249, 115, 22, 0.32);
    filter: none;
}

.member-hub-copy,
.member-hub-panel-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.member-hub-copy {
    align-items: flex-start;
    gap: 2px;
    flex: 1;
}

.member-hub-name,
.member-hub-panel-name {
    font-weight: 800;
    color: #0f172a;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-hub-name {
    font-size: 14px;
}

.member-hub-meta,
.member-hub-panel-subtitle,
.member-hub-panel-extra {
    color: #9a3412;
    line-height: 1.3;
}

.member-hub-meta,
.member-hub-panel-subtitle {
    font-size: 11px;
    font-weight: 600;
}

.member-hub-panel-extra {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}

.member-hub-chevron {
    width: 14px;
    height: 14px;
    margin-left: auto;
    color: #c2410c;
    flex-shrink: 0;
    transition: transform 0.2s ease, color 0.2s ease;
}

#authStatus.member-hub-trigger.is-open .member-hub-chevron {
    transform: rotate(180deg);
    color: #ea580c;
}

.member-hub-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(300px, calc(100vw - 24px));
    z-index: 80;
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.member-hub-menu.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.member-hub-panel {
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.88);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 237, 0.96));
    box-shadow:
        0 22px 40px rgba(15, 23, 42, 0.15),
        0 8px 18px rgba(249, 115, 22, 0.1);
    overflow: hidden;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.member-hub-panel-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 16px 12px;
}

.member-hub-panel-avatar {
    width: 48px;
    height: 48px;
    font-size: 20px;
}

.member-hub-panel-name {
    font-size: 17px;
}

.member-hub-panel-balance {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0 14px 14px;
    padding: 12px 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(251, 113, 133, 0.14));
    border: 1px solid rgba(251, 146, 60, 0.2);
}

.member-hub-balance-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #c2410c;
}

.member-hub-balance-value {
    font-size: 22px;
    line-height: 1;
    font-weight: 900;
    color: #111827;
}

.member-hub-balance-tip {
    font-size: 10px;
    color: #78716c;
}

.member-hub-primary-action {
    width: calc(100% - 28px);
    margin: 0 14px 12px;
    height: 38px;
    border: 0;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f59e0b, #fb7185);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 16px 28px rgba(249, 115, 22, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.member-hub-primary-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(249, 115, 22, 0.24);
    filter: saturate(1.05);
}

#logoutButton.member-hub-logout {
    width: 100%;
    border: 0;
    border-top: 1px solid rgba(251, 146, 60, 0.14);
    background: transparent;
    color: #ef4444;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    padding: 14px 16px 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: none;
}

#logoutButton.member-hub-logout:hover {
    background: rgba(254, 242, 242, 0.78);
    color: #dc2626;
}

#logoutButton.member-hub-logout svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* Fixed palette for the 4 header action slots on both pages */
#themeToggle.shared-page-action-slot-1 {
    order: 1;
    border-color: rgba(99, 102, 241, 0.42);
    background: linear-gradient(135deg, #0f172a, #4338ca);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(67, 56, 202, 0.24);
}

#themeToggle.shared-page-action-slot-1:hover {
    border-color: rgba(129, 140, 248, 0.5);
    background: linear-gradient(135deg, #172554, #4f46e5);
    color: #ffffff;
    box-shadow: 0 16px 30px rgba(79, 70, 229, 0.3);
}

#topRefreshBtn.shared-page-action-slot-1 {
    order: 1;
    border-color: rgba(96, 122, 255, 0.38);
    background: linear-gradient(135deg, #367aff 0%, #8884ff 100%);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(101, 110, 255, 0.24);
}

#topRefreshBtn.shared-page-action-slot-1:hover {
    border-color: rgba(129, 140, 255, 0.48);
    background: linear-gradient(135deg, #2f6ff5 0%, #7a74ff 100%);
    color: #ffffff;
    box-shadow: 0 16px 30px rgba(122, 116, 255, 0.3);
}

#authToggle.shared-page-action-slot-2,
#authStatus.shared-page-action-slot-2,
#backBtn.shared-page-action-slot-2 {
    order: 2;
    border-color: rgba(129, 140, 248, 0.36);
    background: linear-gradient(135deg, #4f46e5, #8b5cf6);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(99, 102, 241, 0.24);
}

#authToggle.shared-page-action-slot-2:hover,
#authStatus.shared-page-action-slot-2:hover,
#backBtn.shared-page-action-slot-2:hover {
    border-color: rgba(167, 139, 250, 0.5);
    background: linear-gradient(135deg, #5b4bf2, #9d67ff);
    color: #ffffff;
    box-shadow: 0 16px 30px rgba(139, 92, 246, 0.3);
}

#authToggle.shared-page-action-slot-2 {
    min-width: 0;
    width: auto;
    height: 48px;
    padding: 0 14px;
    gap: 6px;
    border-radius: 18px;
    border-color: rgba(251, 146, 60, 0.22);
    background: linear-gradient(135deg, #f59e0b 0%, #fb923c 48%, #fb7185 100%);
    color: #ffffff;
    box-shadow:
        0 18px 32px rgba(249, 115, 22, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

#authToggle.shared-page-action-slot-2:hover {
    border-color: rgba(251, 146, 60, 0.3);
    background: linear-gradient(135deg, #ffab1f 0%, #ff9752 48%, #ff7d92 100%);
    color: #ffffff;
    box-shadow:
        0 20px 36px rgba(249, 115, 22, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

#authToggle.shared-page-action-slot-2 svg {
    color: #ffffff !important;
}

#announcementToggle.shared-page-action-slot-3,
#contactSupportBtn.shared-page-action-slot-3 {
    order: 3;
    border-color: rgba(251, 146, 60, 0.92);
    background: linear-gradient(135deg, #f59e0b, #fb7185);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(249, 115, 22, 0.22);
}

#announcementToggle.shared-page-action-slot-3:hover,
#contactSupportBtn.shared-page-action-slot-3:hover {
    border-color: rgba(251, 146, 60, 0.92);
    background: linear-gradient(135deg, #ffab1f, #ff7d92);
    color: #ffffff;
    box-shadow: 0 16px 30px rgba(251, 146, 60, 0.28);
}

#themeToggle.home-header-icon-button.shared-page-action-slot-1,
#announcementToggle.home-header-icon-button.shared-page-action-slot-3 {
    min-width: 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    gap: 0;
    flex: 0 0 44px;
    border-radius: 999px;
    position: relative;
    border-color: rgba(255, 255, 255, 0.76);
    background: rgba(255, 255, 255, 0.62);
    color: rgba(15, 23, 42, 0.78);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

#themeToggle.home-header-icon-button.shared-page-action-slot-1:hover,
#announcementToggle.home-header-icon-button.shared-page-action-slot-3:hover {
    border-color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.78);
    color: rgba(15, 23, 42, 0.92);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
}

.home-header-icon-button svg {
    width: 18px;
    height: 18px;
}

#announcementToggle.home-header-icon-button {
    order: 1;
}

#themeToggle.home-header-icon-button {
    order: 2;
}

.home-center-theme #authStatus.shared-page-action-slot-2,
.home-center-theme #authToggle.shared-page-action-slot-2 {
    order: 3;
}

.home-center-theme #logoutButton.shared-page-action-slot-4 {
    order: 4;
}

.home-header-icon-button span.header-icon-button-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#announcementToggle.home-header-icon-button .announcement-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #ff4d4f;
    border: 2px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
    pointer-events: none;
}

#logoutButton.shared-page-action-slot-4,
#logoutBtn.shared-page-action-slot-4 {
    order: 4;
    border-color: rgba(56, 189, 248, 0.42);
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(14, 165, 233, 0.24);
}

#logoutButton.shared-page-action-slot-4:hover,
#logoutBtn.shared-page-action-slot-4:hover {
    border-color: rgba(96, 165, 250, 0.52);
    background: linear-gradient(135deg, #3b82f6, #22c3ee);
    color: #ffffff;
    box-shadow: 0 16px 30px rgba(56, 189, 248, 0.3);
}

.home-center-theme.dark-theme #themeToggle.home-header-icon-button.shared-page-action-slot-1,
.home-center-theme.dark-theme #announcementToggle.home-header-icon-button.shared-page-action-slot-3 {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.16);
    color: rgba(248, 250, 252, 0.94);
    box-shadow: 0 18px 34px rgba(2, 6, 23, 0.22);
}

.home-center-theme.dark-theme #themeToggle.home-header-icon-button.shared-page-action-slot-1:hover,
.home-center-theme.dark-theme #announcementToggle.home-header-icon-button.shared-page-action-slot-3:hover {
    border-color: rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.home-center-theme.dark-theme #authStatus.member-hub-trigger {
    border-color: rgba(251, 146, 60, 0.18);
    background: rgba(15, 23, 42, 0.72);
    color: #f8fafc;
    box-shadow:
        0 20px 36px rgba(2, 6, 23, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.home-center-theme.dark-theme #authStatus.member-hub-trigger:hover,
.home-center-theme.dark-theme #authStatus.member-hub-trigger.is-open {
    border-color: rgba(251, 146, 60, 0.26);
    background: rgba(15, 23, 42, 0.84);
    color: #ffffff;
}

.home-center-theme.dark-theme #authToggle.shared-page-action-slot-2 {
    border-color: rgba(251, 146, 60, 0.22);
    background: linear-gradient(135deg, #f59e0b 0%, #fb923c 48%, #fb7185 100%);
    color: #ffffff;
    box-shadow:
        0 18px 34px rgba(249, 115, 22, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.home-center-theme.dark-theme #authToggle.shared-page-action-slot-2:hover {
    border-color: rgba(251, 146, 60, 0.32);
    background: linear-gradient(135deg, #ffab1f 0%, #ff9752 48%, #ff7d92 100%);
    color: #ffffff;
}

.home-center-theme.dark-theme .member-hub-name,
.home-center-theme.dark-theme .member-hub-panel-name {
    color: #f8fafc;
}

.home-center-theme.dark-theme .member-hub-meta,
.home-center-theme.dark-theme .member-hub-panel-subtitle {
    color: #fdba74;
}

.home-center-theme.dark-theme .member-hub-panel-extra,
.home-center-theme.dark-theme .member-hub-balance-tip {
    color: #cbd5e1;
}

.home-center-theme.dark-theme .member-hub-chevron {
    color: #fb923c;
}

.home-center-theme.dark-theme .member-hub-panel {
    border-color: rgba(251, 146, 60, 0.14);
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.96));
    box-shadow:
        0 28px 60px rgba(2, 6, 23, 0.44),
        0 12px 24px rgba(249, 115, 22, 0.12);
}

.home-center-theme.dark-theme .member-hub-panel-balance {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.18), rgba(244, 114, 182, 0.16));
    border-color: rgba(251, 146, 60, 0.2);
}

.home-center-theme.dark-theme .member-hub-balance-label {
    color: #fdba74;
}

.home-center-theme.dark-theme .member-hub-balance-value {
    color: #f8fafc;
}

.home-center-theme.dark-theme #logoutButton.member-hub-logout {
    border-top-color: rgba(251, 146, 60, 0.14);
    color: #fda4af;
    background: transparent !important;
    box-shadow: none !important;
}

.home-center-theme.dark-theme #logoutButton.member-hub-logout:hover {
    background: rgba(127, 29, 29, 0.24) !important;
    color: #fecaca;
    box-shadow: none !important;
}

#authStatus.shared-page-action-slot-2 #memberAvatar {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: none;
}

#authStatus.shared-page-action-slot-2:hover #memberAvatar {
    transform: scale(1.02);
    box-shadow: none;
}

.shared-page-section-nav {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-bottom: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    scrollbar-width: none;
}

.shared-page-section-nav::-webkit-scrollbar {
    display: none;
}

.shared-page-section-nav-btn {
    min-width: 132px;
    height: 38px;
    padding: 0 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
}

.shared-page-section-nav-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .shared-page-topbar {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 14px;
    }

    .shared-page-brand-row {
        flex: 0 1 auto;
        width: 100%;
        max-width: 100%;
    }

    .shared-page-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .shared-page-header-shell {
        padding-top: 16px !important;
    }

    .shared-page-topbar {
        flex-direction: row;
        justify-content: space-between;
        gap: 8px;
        margin-bottom: 8px;
        align-items: center;
    }

    .shared-page-brand-row {
        flex: 1 1 auto;
        width: auto;
        max-width: none;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        text-align: left;
    }

    .shared-page-brand-copy {
        gap: 2px;
    }

    .shared-page-brand-logo {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        border-radius: 14px;
    }

    .home-center-theme .shared-page-brand-logo {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        border-radius: 14px;
    }

    .shared-page-brand-logo img {
        padding: 6px;
    }

    .shared-page-brand-logo span {
        font-size: 20px;
    }

    .shared-page-title {
        font-size: 14px;
        line-height: 1.05;
        letter-spacing: -0.02em;
    }

    .shared-page-subtitle {
        margin-top: 2px;
        font-size: 9px;
        line-height: 1.3;
        max-width: 136px;
    }

    .shared-page-action-button {
        min-width: 0;
        min-height: 30px;
        height: 30px;
        padding: 0 7px;
        gap: 5px;
        font-size: 10px;
        line-height: 1;
        border-radius: 11px;
    }

    .shared-page-actions {
        width: auto;
        flex: 0 0 auto;
        flex-wrap: nowrap;
        gap: 5px;
        justify-content: flex-end;
    }

    .shared-page-action-button.shared-page-action-compact {
        min-width: 84px;
    }

    #themeToggle.home-header-icon-button.shared-page-action-slot-1,
    #announcementToggle.home-header-icon-button.shared-page-action-slot-3 {
        min-width: 28px;
        min-height: 28px;
        width: 28px;
        height: 28px;
        max-height: 28px;
        flex-basis: 28px;
        padding: 0;
    }

    .home-header-icon-button svg,
    #authToggle.shared-page-action-slot-2 svg {
        width: 14px;
        height: 14px;
    }

    .member-hub {
        width: auto;
        min-width: 0;
    }

    #authStatus.member-hub-trigger {
        width: auto;
        max-width: 154px;
        min-width: 0;
        min-height: 36px;
        height: 36px;
        padding: 4px 9px 4px 4px;
        gap: 7px;
        line-height: 1;
        border-radius: 17px;
    }

    .member-hub-avatar {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }

    .member-hub-name {
        font-size: 11px;
    }

    .member-hub-meta {
        font-size: 9px;
    }

    .member-hub-chevron {
        width: 12px;
        height: 12px;
    }

    .member-hub-menu {
        left: auto;
        right: 0;
        width: min(280px, calc(100vw - 20px));
    }

    .member-hub-panel-head {
        padding: 14px 14px 12px;
    }

    .member-hub-panel-avatar {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .member-hub-panel-name {
        font-size: 16px;
    }

    #authToggle.shared-page-action-slot-2 {
        min-width: 0;
        min-height: 30px;
        width: auto;
        height: 30px;
        padding: 0 7px;
        font-size: 10px;
        line-height: 1;
        border-radius: 14px;
    }

    .shared-page-section-nav {
        margin-bottom: 12px;
        padding: 12px;
    }

    .shared-page-section-nav-btn {
        min-width: 112px;
        height: 36px;
        padding: 0 14px;
        font-size: 12px;
    }

    .shared-page-section-nav-btn svg {
        width: 14px;
        height: 14px;
    }

    body:not([data-app-shell]) .shared-page-topbar {
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 12px;
    }

    body:not([data-app-shell]) .shared-page-brand-row {
        width: 100%;
        max-width: 100%;
        align-items: center;
    }

    body:not([data-app-shell]) .shared-page-brand-copy {
        flex: 1 1 auto;
        min-width: 0;
    }

    body:not([data-app-shell]) .shared-page-title {
        font-size: 24px;
        line-height: 1.08;
        white-space: normal;
    }

    body:not([data-app-shell]) .shared-page-subtitle {
        max-width: none;
        font-size: 12px;
        line-height: 1.45;
    }

    body:not([data-app-shell]) .shared-page-actions {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        justify-content: stretch;
    }

    body:not([data-app-shell]) .shared-page-actions > * {
        min-width: 0;
        width: 100%;
    }

    body:not([data-app-shell]) .shared-page-action-button,
    body:not([data-app-shell]) #authToggle.shared-page-action-slot-2 {
        width: 100%;
        min-width: 0;
        height: 40px;
        min-height: 40px;
        padding: 0 12px;
        font-size: 13px;
        border-radius: 12px;
        justify-content: center;
    }

    body:not([data-app-shell]) .shared-page-action-button.shared-page-action-compact {
        min-width: 0;
    }
}
