/* /Components/CourtDisplayCard.razor.rz.scp.css */
/* ============================================
   COURT DISPLAY CARD — Display-only variant
   Used in Court Monitor (TV/scoreboard view)
   ============================================ */

.court-display-card[b-nd36acaxr4] {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.court-display-card:hover[b-nd36acaxr4] {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md-glow) !important;
}

.court-display-card:active[b-nd36acaxr4] {
    transform: translateY(0);
}

/* Focused state — enlarged card with glow */
.court-display-focused[b-nd36acaxr4] {
    box-shadow: var(--shadow-lg-glow) !important;
    border-width: 2px !important;
}

.court-display-focused .card-body[b-nd36acaxr4] {
    padding: 1.25rem;
}

.court-display-focused h5[b-nd36acaxr4] {
    font-size: 1.35rem;
}

.court-display-focused small.fw-bold[b-nd36acaxr4] {
    font-size: 1rem !important;
}
/* /Layout/MainLayout.razor.rz.scp.css */
/* ============================================
   APP LAYOUT — Sidebar + Main Content
   Mobile-first: stacked → side-by-side
   ============================================ */

/* --- Mobile: no sidebar offset, just stacked --- */
.app-layout[b-frqkkngtxf] {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-main[b-frqkkngtxf] {
    flex: 1;
    min-height: 100vh;
    /* Mobile top bar padding */
    padding-top: 52px;
    padding-bottom: 0;
}

/* --- Tablet (768px–1199px: iPad Mini, Air, Pro): top bar, no sidebar offset --- */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .app-layout[b-frqkkngtxf] {
        flex-direction: column;
    }

    .app-main[b-frqkkngtxf] {
        margin-left: 0 !important;
        padding-top: 60px !important; /* match tablet-topbar height */
        padding-bottom: 0 !important;
        width: 100% !important;
    }
}

/* --- Desktop (xl ≥ 1200px): full sidebar + offset main + top header --- */
@media (min-width: 1200px) {
    .app-layout[b-frqkkngtxf] {
        flex-direction: row;
    }

    .app-main[b-frqkkngtxf] {
        margin-left: 220px !important;
        padding-top: 80px !important; /* desktop top header height */
        padding-bottom: 0 !important;
        width: calc(100% - 220px) !important;
    }
}

/* --- Standalone pages (no sidebar) --- */
main:not(.app-main)[b-frqkkngtxf] {
    min-height: 100vh;
}
/* /Layout/NavMenu.razor.rz.scp.css */
/* ============================================
   VERTICAL SIDEBAR NAVIGATION
   Mobile-first: bottom tab bar → slim sidebar → full sidebar
   ============================================ */

/* --- Sidebar container (tablet + desktop) --- */
.sidebar-nav[b-2u6bjtxoiy] {
    flex-direction: column;
    align-items: center;
    position: fixed;
    top: 80px;
    left: 0;
    bottom: 0;
    z-index: 1030;
    width: var(--sidebar-width, 64px);
    background-color: var(--nav-bg);
    border-right: 1px solid var(--nav-border);
    padding: 12px 0;
    transition: width 0.25s ease;
    overflow: hidden;
}

/* --- Brand --- */
.sidebar-brand[b-2u6bjtxoiy] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px;
    /* margin-bottom: 10px; */
    text-decoration: none;
    white-space: nowrap;
    width: 100%;
}

.sidebar-brand-icon[b-2u6bjtxoiy] {
    flex-shrink: 0;
    object-fit: contain;
}

/* Tablet (md): show small icon, hide full logo */
.sidebar-brand-icon-sm[b-2u6bjtxoiy] {
    display: block;
    width: 36px;
    height: 36px;
}

.sidebar-brand-icon-lg[b-2u6bjtxoiy] {
    display: none;
}

.sidebar-brand-custom[b-2u6bjtxoiy] {
    border-radius: 6px;
}

.sidebar-brand-custom-lg[b-2u6bjtxoiy] {
    border-radius: 8px;
    max-height: 48px;
}

.sidebar-brand-text[b-2u6bjtxoiy] {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-primary, #CCFF00);
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* --- Link groups --- */
.sidebar-links[b-2u6bjtxoiy] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    padding: 0 8px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-links[b-2u6bjtxoiy]::-webkit-scrollbar {
    width: 3px;
}

.sidebar-links[b-2u6bjtxoiy]::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-links[b-2u6bjtxoiy]::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.sidebar-group-label[b-2u6bjtxoiy] {
    display: flex;
    align-items: center;
    padding: 12px 12px 4px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand-primary, #CCFF00);
    opacity: 0.65;
    font-family: 'Norwester', 'Helvetica Neue', sans-serif;
}

.sidebar-group-label-text[b-2u6bjtxoiy] {
    opacity: 0;
    overflow: hidden;
    width: 0;
    transition: opacity 0.2s ease;
}

.sidebar-spacer[b-2u6bjtxoiy] {
    display: none;
}

.sidebar-bottom[b-2u6bjtxoiy] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    padding: 0 8px;
    border-top: 1px solid var(--border-subtle, rgba(204, 255, 0, 0.10));
    padding-top: 12px;
    margin-top: 8px;
}

/* --- Individual link (::deep needed for NavLink component boundary) --- */
.sidebar-nav[b-2u6bjtxoiy]  .sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-md, 8px);
    color: var(--text-secondary, rgba(255, 255, 255, 0.70));
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease;
    cursor: pointer;
    font-family: 'Norwester', 'Helvetica Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

.sidebar-nav[b-2u6bjtxoiy]  .sidebar-link i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
    color: var(--nav-icon);
    transition: color 0.15s ease;
}

.sidebar-nav[b-2u6bjtxoiy]  .sidebar-link-text {
    opacity: 0;
    transition: opacity 0.2s ease;
    overflow: hidden;
}

.sidebar-nav[b-2u6bjtxoiy]  .sidebar-link:hover {
    background-color: var(--bg-hover, rgba(204, 255, 0, 0.06));
    color: var(--text-primary, #CAC1BD);
    text-decoration: none;
}

.sidebar-nav[b-2u6bjtxoiy]  .sidebar-link:hover i {
    color: var(--nav-icon-hover);
}

.sidebar-nav[b-2u6bjtxoiy]  .sidebar-link.active {
    background-color: var(--nav-active-bg);
    color: var(--brand-primary, #CCFF00);
    border-left: 3px solid var(--brand-primary, #CCFF00);
    padding-left: 9px;
}

.sidebar-nav[b-2u6bjtxoiy]  .sidebar-link.active i {
    color: var(--brand-primary, #CCFF00);
}

/* --- Button variant (for sign out / profile) --- */
.sidebar-nav[b-2u6bjtxoiy]  .sidebar-link-btn {
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    outline: none;
    /* Do NOT use font: inherit — it resets Norwester + weight set by sidebar-link */
}

/* ============================================
   DESKTOP: Full sidebar with labels (xl ≥ 1200px)
   ============================================ */
@media (min-width: 1200px) {
    .sidebar-nav[b-2u6bjtxoiy] {
        --sidebar-width: 220px;
    }

    .sidebar-brand-text[b-2u6bjtxoiy] {
        opacity: 1;
        width: auto;
    }

    .sidebar-nav[b-2u6bjtxoiy]  .sidebar-link-text {
        opacity: 1;
        width: auto;
    }

    .sidebar-group-label-text[b-2u6bjtxoiy] {
        opacity: 1;
        width: auto;
    }

    .sidebar-brand[b-2u6bjtxoiy] {
        justify-content: flex-start;
        padding: 8px 16px;
    }

    .sidebar-brand-icon-sm[b-2u6bjtxoiy] {
        display: none;
    }

    .sidebar-brand-icon-lg[b-2u6bjtxoiy] {
        display: block;
        width: 160px;
        height: auto;
    }

    .sidebar-nav[b-2u6bjtxoiy]  .sidebar-link {
        justify-content: flex-start;
        padding: 10px 12px;
    }
}

/* ============================================
   DESKTOP TOP HEADER (xl 1200px+ only)
   Fixed strip above page content, right of sidebar
   ============================================ */

.desktop-topbar[b-2u6bjtxoiy] {
    display: none;
}

@media (min-width: 1200px) {
    .desktop-topbar[b-2u6bjtxoiy] {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        min-height: 86px;
        z-index: 1040;
        display: flex;
        align-items: center;
        padding: 0 24px 0 calc(24px + 24px);
        background: var(--nav-bg);
        border-bottom: 1px solid var(--nav-border);
        box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.08));
    }
}

.desktop-topbar-brand[b-2u6bjtxoiy] {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.desktop-topbar-logo[b-2u6bjtxoiy] {
    max-height: 84px;
    max-width: 180px;
    width: auto;
    object-fit: contain;
}

.desktop-topbar-spacer[b-2u6bjtxoiy] {
    flex: 1;
}

/* === Global search bar (desktop topbar) === */
.topbar-search-wrapper[b-2u6bjtxoiy] {
    position: relative;
    margin-left: 24px;
    width: 320px;
    flex-shrink: 0;
}

.topbar-search-icon[b-2u6bjtxoiy] {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
    pointer-events: none;
    transition: color 0.15s ease;
}

.topbar-search-wrapper:focus-within .topbar-search-icon[b-2u6bjtxoiy] {
    color: var(--brand-primary, #CCFF00);
}

.topbar-search-input[b-2u6bjtxoiy] {
    width: 100%;
    padding: 9px 38px 9px 38px;
    border-radius: 12px;
    border: 1px solid var(--border-color, rgba(255,255,255,0.1));
    background: var(--bg-card, rgba(255,255,255,0.04));
    color: var(--text-primary);
    font-size: 0.85rem;
    outline: none;
    transition: all 0.2s ease;
}

.topbar-search-input[b-2u6bjtxoiy]::placeholder {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.topbar-search-input:focus[b-2u6bjtxoiy] {
    border-color: var(--brand-primary, #CCFF00);
    background: var(--bg-card, #1a1a1a);
    box-shadow: 0 0 0 3px rgba(204, 255, 0, 0.08), 0 2px 8px rgba(0,0,0,0.12);
}

.topbar-search-kbd[b-2u6bjtxoiy] {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--border-color, rgba(255,255,255,0.1));
    background: var(--bg-hover, rgba(255,255,255,0.04));
    color: var(--text-muted);
    font-size: 0.65rem;
    font-family: system-ui, -apple-system, sans-serif;
    pointer-events: none;
    line-height: 1;
}

.topbar-search-wrapper:focus-within .topbar-search-kbd[b-2u6bjtxoiy] {
    display: none;
}

.topbar-search-dropdown[b-2u6bjtxoiy] {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-card, #1a1a1a);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.04);
    z-index: 1100;
    overflow: hidden;
    max-height: 380px;
    overflow-y: auto;
    padding: 4px 0;
}

.topbar-search-result[b-2u6bjtxoiy] {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    text-align: left;
    cursor: pointer;
    transition: background 0.1s;
    font-size: 0.85rem;
}

.topbar-search-result:hover[b-2u6bjtxoiy],
.topbar-search-result.active[b-2u6bjtxoiy] {
    background: var(--bg-hover, rgba(255,255,255,0.06));
    color: var(--text-primary);
}

.topbar-search-result i[b-2u6bjtxoiy] {
    font-size: 1.05rem;
    color: var(--brand-primary, #CCFF00);
    flex-shrink: 0;
    width: 22px;
    text-align: center;
}

.topbar-search-result div[b-2u6bjtxoiy] {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 1px;
}

.topbar-search-result-title[b-2u6bjtxoiy] {
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.85rem;
}

.topbar-search-result-desc[b-2u6bjtxoiy] {
    font-size: 0.72rem;
    color: var(--text-muted);
}

[data-theme="light"] .topbar-search-input[b-2u6bjtxoiy] {
    background: rgba(0,0,0,0.03);
}

[data-theme="light"] .topbar-search-input:focus[b-2u6bjtxoiy] {
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.08);
}

[data-theme="light"] .topbar-search-dropdown[b-2u6bjtxoiy] {
    box-shadow: 0 12px 32px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.06);
}

/* "Account ∨" button (desktop header) */
.topbar-account-btn[b-2u6bjtxoiy] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 6px;
    border: 1px solid var(--border-color, rgba(204,255,0,0.12));
    border-radius: 24px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.topbar-account-btn:hover[b-2u6bjtxoiy] {
    background: var(--bg-hover, rgba(255,255,255,0.04));
    border-color: var(--border-hover, rgba(204,255,0,0.25));
    color: var(--text-primary);
}

.topbar-avatar-sm[b-2u6bjtxoiy] {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
}

.topbar-account-label[b-2u6bjtxoiy] {
    line-height: 1;
}

.topbar-account-chevron[b-2u6bjtxoiy] {
    font-size: 0.7rem;
    opacity: 0.6;
    transition: transform 0.15s;
}

:global([data-theme="light"]) .topbar-account-btn[b-2u6bjtxoiy] {
    border-color: #e5e7eb;
    color: #333;
}

:global([data-theme="light"]) .topbar-account-btn:hover[b-2u6bjtxoiy] {
    background: rgba(0, 69, 126, 0.04);
    border-color: #cbd5e1;
    color: #00457E;
}

/* ============================================
   MOBILE BOTTOM TAB BAR
   ============================================ */

.mobile-tab-bar[b-2u6bjtxoiy] {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1080;
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    background-color: var(--nav-bg, var(--bg-card, #111111));
    /* border-top: 1px solid var(--border-color, rgba(204, 255, 0, 0.20)); */
    box-shadow: var(--nav-tab-shadow, 0 -2px 10px rgba(0, 0, 0, 0.5));
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-tab-bar[b-2u6bjtxoiy]  .mobile-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px 4px;
    min-height: 56px;
    border: none;
    background: transparent;
    color: var(--text-muted, rgba(255, 255, 255, 0.45));
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    font-family: 'Norwester', 'Helvetica Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.mobile-tab-bar[b-2u6bjtxoiy]  .mobile-tab.disabled {
    opacity: 0.35;
    pointer-events: none;
    cursor: default;
}

.mobile-tab-bar[b-2u6bjtxoiy]  .mobile-tab i {
    font-size: 1.2rem;
    color: var(--nav-icon);
    transition: color 0.15s ease;
}

.mobile-tab-bar[b-2u6bjtxoiy]  .mobile-tab:hover i {
    color: var(--nav-icon-hover);
}

.mobile-tab-bar[b-2u6bjtxoiy]  .mobile-tab.active i {
    color: var(--brand-primary, #CCFF00);
}

.mobile-tab-bar[b-2u6bjtxoiy]  .mobile-tab.active {
    color: var(--brand-primary, #CCFF00);
}

.mobile-tab-bar[b-2u6bjtxoiy]  .mobile-tab:active {
    background-color: var(--bg-hover, rgba(204, 255, 0, 0.06));
}

/* ============================================
   QUEUE DROPDOWN (sidebar)
   ============================================ */

.sidebar-dropdown[b-2u6bjtxoiy] {
    width: 100%;
}

/* Chevron indicator — hidden on tablet, shown on desktop */
.sidebar-nav .sidebar-chevron[b-2u6bjtxoiy] {
    font-size: 0.7rem;
    margin-left: auto;
    opacity: 0;
    width: 0;
    overflow: hidden;
    transition: opacity 0.2s ease;
    color: var(--text-muted, rgba(255, 255, 255, 0.45));
}

/* Sub-list container */
.sidebar-sub-list[b-2u6bjtxoiy] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px 8px;
    animation: sidebar-dropdown-in-b-2u6bjtxoiy 0.15s ease-out;
}

@keyframes sidebar-dropdown-in-b-2u6bjtxoiy {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Sub-item button (::deep for NavSessionList child component) */
.sidebar-sub-list[b-2u6bjtxoiy]  .sidebar-sub-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: var(--radius-sm, 6px);
    color: var(--text-secondary, rgba(255, 255, 255, 0.70));
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.sidebar-sub-list[b-2u6bjtxoiy]  .sidebar-sub-item:hover {
    background-color: var(--bg-hover, rgba(204, 255, 0, 0.06));
    color: var(--text-primary, #CAC1BD);
}

/* Status dot */
.sidebar-sub-list[b-2u6bjtxoiy]  .sidebar-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sidebar-sub-list[b-2u6bjtxoiy]  .status-live {
    background-color: #28a745;
    box-shadow: 0 0 6px rgba(40, 167, 69, 0.5);
}

.sidebar-sub-list[b-2u6bjtxoiy]  .status-ready {
    background-color: #0dcaf0;
}

.sidebar-sub-list[b-2u6bjtxoiy]  .status-blocked {
    background-color: #dc3545;
    box-shadow: 0 0 6px rgba(220, 53, 69, 0.5);
}

/* Sub-item text — follows same responsive show/hide as sidebar-link-text */
.sidebar-sub-list[b-2u6bjtxoiy]  .sidebar-sub-text {
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    width: 0;
    transition: opacity 0.2s ease;
}

/* Sub-item status label */
.sidebar-sub-list[b-2u6bjtxoiy]  .sidebar-sub-status {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    opacity: 0;
    width: 0;
    overflow: hidden;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.sidebar-sub-list[b-2u6bjtxoiy]  .sub-status-live {
    color: #28a745;
}

.sidebar-sub-list[b-2u6bjtxoiy]  .sub-status-ready {
    color: #0dcaf0;
}

.sidebar-sub-list[b-2u6bjtxoiy]  .sub-status-blocked {
    color: #dc3545;
}

/* Empty state */
.sidebar-sub-list[b-2u6bjtxoiy]  .sidebar-sub-empty {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    color: var(--text-muted, rgba(255, 255, 255, 0.45));
    font-size: 0.75rem;
    font-style: italic;
}

.sidebar-sub-list[b-2u6bjtxoiy]  .sidebar-sub-empty i {
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* --- Desktop: full sidebar (xl ≥ 1200px) --- */
@media (min-width: 1200px) {
    .sidebar-nav .sidebar-chevron[b-2u6bjtxoiy] {
        opacity: 1;
        width: auto;
    }

    .sidebar-sub-list[b-2u6bjtxoiy]  .sidebar-sub-item {
        justify-content: flex-start;
        padding: 7px 12px 7px 36px;
    }

    .sidebar-sub-list[b-2u6bjtxoiy]  .sidebar-sub-text {
        opacity: 1;
        width: auto;
    }

    .sidebar-sub-list[b-2u6bjtxoiy]  .sidebar-sub-status {
        opacity: 1;
        width: auto;
        margin-left: auto;
    }

    .sidebar-sub-list[b-2u6bjtxoiy]  .sidebar-sub-empty {
        justify-content: flex-start;
        padding: 7px 12px 7px 36px;
    }

    .sidebar-sub-list[b-2u6bjtxoiy]  .sidebar-sub-empty .sidebar-sub-text {
        opacity: 1;
        width: auto;
    }
}

/* ============================================
   MOBILE TAB BAR BADGE
   ============================================ */

.mobile-tab-icon-wrapper[b-2u6bjtxoiy] {
    position: relative;
    display: inline-flex;
}

.mobile-tab-badge[b-2u6bjtxoiy] {
    position: absolute;
    top: -4px;
    right: -8px;
    font-size: 0.55rem;
    background-color: var(--brand-primary, #CCFF00);
    color: #000;
    border-radius: var(--radius-md);
    padding: 0 4px;
    font-weight: 700;
    min-width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ============================================
   TABLET TOP BAR & HAMBURGER (768px–1199px)
   ============================================ */

.tablet-topbar[b-2u6bjtxoiy] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    background-color: var(--nav-bg);
    border-bottom: 1px solid var(--nav-border);
    box-shadow: var(--shadow-md);
    /* iOS Safari: promote to compositor layer and ensure correct fixed rendering */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.tablet-topbar-brand[b-2u6bjtxoiy] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    flex-shrink: 0;
}

.tablet-topbar-logo[b-2u6bjtxoiy] {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.tablet-topbar-logo-full[b-2u6bjtxoiy] {
    max-height: 40px;
    max-width: 160px;
    width: auto;
    object-fit: contain;
}

.tablet-topbar-title[b-2u6bjtxoiy] {
    font-family: 'Norwester', 'Helvetica Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--brand-primary, #CCFF00);
    letter-spacing: 0.05em;
}

.tablet-topbar-spacer[b-2u6bjtxoiy] {
    flex: 1;
}

/* Hamburger button */
.tablet-hamburger[b-2u6bjtxoiy] {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: var(--brand-primary-light, rgba(204, 255, 0, 0.08));
    border: 1px solid var(--nav-border);
    border-radius: 10px;
    cursor: pointer;
    padding: 0.55rem 0.6rem;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
    margin-right: 0.75rem;
}

.tablet-hamburger:hover[b-2u6bjtxoiy] {
    background: var(--bg-hover);
    border-color: var(--border-hover);
}

.tablet-ham-line[b-2u6bjtxoiy] {
    width: 22px;
    height: 2px;
    background: var(--brand-primary, #CCFF00);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
    display: block;
}

.tablet-hamburger.is-open .tablet-ham-line:nth-child(1)[b-2u6bjtxoiy] {
    transform: translateY(7px) rotate(45deg);
}

.tablet-hamburger.is-open .tablet-ham-line:nth-child(2)[b-2u6bjtxoiy] {
    opacity: 0;
    transform: scaleX(0);
}

.tablet-hamburger.is-open .tablet-ham-line:nth-child(3)[b-2u6bjtxoiy] {
    transform: translateY(-7px) rotate(-45deg);
}

/* Overlay backdrop */
.tablet-nav-overlay[b-2u6bjtxoiy] {
    position: fixed;
    inset: 0;
    z-index: 1028;
    background: rgba(0, 0, 0, 0.55);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    animation: tablet-overlay-in-b-2u6bjtxoiy 0.2s ease;
}

@keyframes tablet-overlay-in-b-2u6bjtxoiy {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Slide-in drawer */
.tablet-nav-drawer[b-2u6bjtxoiy] {
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 0;
    z-index: 1029;
    width: 280px;
    background-color: var(--nav-bg);
    border-right: 1px solid var(--nav-border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-animation: tablet-drawer-in 0.22s ease;
    animation: tablet-drawer-in-b-2u6bjtxoiy 0.22s ease;
    box-shadow: var(--shadow-lg);
    /* iOS Safari: ensure drawer is above page content */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

@keyframes tablet-drawer-in-b-2u6bjtxoiy {
    from { transform: translateX(-100%); opacity: 0; }
    to   { transform: translateX(0);   opacity: 1; }
}

.tablet-nav-header[b-2u6bjtxoiy] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.tablet-nav-logo[b-2u6bjtxoiy] {
    height: 36px;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
}

.tablet-nav-links[b-2u6bjtxoiy] {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0.75rem 0.75rem;
    overflow-y: auto;
}

.tablet-nav-bottom[b-2u6bjtxoiy] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0.75rem;
    /* border-top: 1px solid var(--border-subtle); */
    flex-shrink: 0;
}

.tablet-nav-divider[b-2u6bjtxoiy] {
    margin: 0.25rem 0;
    border-color: var(--border-subtle, rgba(204, 255, 0, 0.10));
    opacity: 0.5;
}

/* Nav link in drawer (::deep for NavLink wrapping) */
.tablet-nav-drawer[b-2u6bjtxoiy]  .tablet-nav-link,
.tablet-nav-link[b-2u6bjtxoiy] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text-secondary, rgba(255, 255, 255, 0.70));
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Norwester', 'Helvetica Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    text-decoration: none;
    letter-spacing: 0.04em;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.tablet-nav-drawer[b-2u6bjtxoiy]  .tablet-nav-link i,
.tablet-nav-link i[b-2u6bjtxoiy] {
    font-size: 1.15rem;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
    color: var(--nav-icon);
    transition: color 0.15s ease;
}

.tablet-nav-drawer[b-2u6bjtxoiy]  .tablet-nav-link:hover,
.tablet-nav-link:hover[b-2u6bjtxoiy] {
    background-color: var(--bg-hover, rgba(204, 255, 0, 0.06));
    color: var(--text-primary, #CAC1BD);
    text-decoration: none;
}

.tablet-nav-drawer[b-2u6bjtxoiy]  .tablet-nav-link:hover i,
.tablet-nav-link:hover i[b-2u6bjtxoiy] {
    color: var(--nav-icon-hover);
}

.tablet-nav-drawer[b-2u6bjtxoiy]  .tablet-nav-link.active,
.tablet-nav-link.active[b-2u6bjtxoiy] {
    background-color: var(--nav-active-bg);
    color: var(--brand-primary, #CCFF00);
    border-left: 3px solid var(--brand-primary, #CCFF00);
    padding-left: 9px;
}

.tablet-nav-drawer[b-2u6bjtxoiy]  .tablet-nav-link.active i,
.tablet-nav-link.active i[b-2u6bjtxoiy] {
    color: var(--brand-primary, #CCFF00);
}

.tablet-nav-group-label[b-2u6bjtxoiy] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px 4px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand-primary, #CCFF00);
    opacity: 0.65;
    font-family: 'Norwester', 'Helvetica Neue', sans-serif;
}

.tablet-nav-sub[b-2u6bjtxoiy] {
    padding: 0 0 4px 12px;
}

/* Tablet sub-list items from NavSessionList */
.tablet-nav-sub[b-2u6bjtxoiy]  .sidebar-sub-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    color: var(--text-secondary, rgba(255, 255, 255, 0.70));
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.tablet-nav-sub[b-2u6bjtxoiy]  .sidebar-sub-item:hover {
    background-color: var(--bg-hover, rgba(204, 255, 0, 0.06));
    color: var(--text-primary, #CAC1BD);
}

.tablet-nav-sub[b-2u6bjtxoiy]  .sidebar-sub-text {
    opacity: 1;
    width: auto;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tablet-nav-sub[b-2u6bjtxoiy]  .sidebar-sub-status {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    opacity: 1;
    width: auto;
    margin-left: auto;
    flex-shrink: 0;
}

.tablet-nav-sub[b-2u6bjtxoiy]  .sidebar-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tablet-nav-sub[b-2u6bjtxoiy]  .status-live {
    background-color: #28a745;
    box-shadow: 0 0 6px rgba(40, 167, 69, 0.5);
}

.tablet-nav-sub[b-2u6bjtxoiy]  .status-ready {
    background-color: #0dcaf0;
}

.tablet-nav-sub[b-2u6bjtxoiy]  .status-blocked {
    background-color: #dc3545;
    box-shadow: 0 0 6px rgba(220, 53, 69, 0.5);
}

.tablet-nav-sub[b-2u6bjtxoiy]  .sidebar-sub-empty {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    color: var(--text-muted, rgba(255, 255, 255, 0.45));
    font-size: 0.75rem;
    font-style: italic;
}

.tablet-nav-sub[b-2u6bjtxoiy]  .sub-status-live { color: #28a745; }
.tablet-nav-sub[b-2u6bjtxoiy]  .sub-status-ready { color: #0dcaf0; }
.tablet-nav-sub[b-2u6bjtxoiy]  .sub-status-blocked { color: #dc3545; }

/* ============================================
   LIGHT MODE — Ensure neon icons/text readable on white nav bg
   ============================================ */

:global([data-theme="light"]) .sidebar-nav[b-2u6bjtxoiy]  .sidebar-link.active {
    color: #1A1A1A;
    border-left-color: #CCFF00;
    background-color: rgba(204, 255, 0, 0.18);
}

:global([data-theme="light"]) .sidebar-nav[b-2u6bjtxoiy]  .sidebar-link.active i {
    color: #1A1A1A;
}

:global([data-theme="light"]) .mobile-tab-bar[b-2u6bjtxoiy]  .mobile-tab.active i {
    color: #1A1A1A;
}

:global([data-theme="light"]) .mobile-tab-bar[b-2u6bjtxoiy]  .mobile-tab.active {
    color: #1A1A1A;
}

:global([data-theme="light"]) .mobile-tab-bar[b-2u6bjtxoiy]  .mobile-tab:active {
    background-color: rgba(204, 255, 0, 0.10);
}

:global([data-theme="light"]) .tablet-topbar-title[b-2u6bjtxoiy] {
    color: #1A1A1A;
}

:global([data-theme="light"]) .sidebar-nav[b-2u6bjtxoiy] {
    border-right-color: rgba(0, 0, 0, 0.06);
    box-shadow: 1px 0 0 rgba(0, 0, 0, 0.04);
}

/* ============================================
   MOBILE TOP BAR + HAMBURGER DRAWER (< 768px)
   Same pattern as tablet, scoped to mobile only
   ============================================ */

.mobile-topbar[b-2u6bjtxoiy] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    height: 52px;
    display: flex;
    align-items: center;
    padding: 0 0.75rem;
    background-color: var(--nav-bg);
    border-bottom: 1px solid var(--nav-border);
    box-shadow: var(--shadow-md);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.mobile-topbar-brand[b-2u6bjtxoiy] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    flex-shrink: 0;
}

.mobile-topbar-logo[b-2u6bjtxoiy] {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.mobile-topbar-logo-full[b-2u6bjtxoiy] {
    max-height: 36px;
    max-width: 140px;
    width: auto;
    object-fit: contain;
}

.mobile-topbar-title[b-2u6bjtxoiy] {
    font-family: 'Norwester', 'Helvetica Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-primary, #CCFF00);
    letter-spacing: 0.05em;
}

.mobile-back-btn[b-2u6bjtxoiy] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--nav-border);
    border-radius: 8px;
    background: var(--brand-primary-light, rgba(204, 255, 0, 0.08));
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.15s ease;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.mobile-back-btn:hover[b-2u6bjtxoiy] {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.mobile-back-btn:active[b-2u6bjtxoiy] {
    background: var(--brand-primary-light);
}

.mobile-topbar-spacer[b-2u6bjtxoiy] {
    flex: 1;
}

/* Hamburger button */
.mobile-hamburger[b-2u6bjtxoiy] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--brand-primary-light, rgba(204, 255, 0, 0.08));
    border: 1px solid var(--nav-border);
    border-radius: 8px;
    cursor: pointer;
    padding: 0.45rem 0.5rem;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
    margin-right: 0.5rem;
}

.mobile-hamburger:hover[b-2u6bjtxoiy] {
    background: var(--bg-hover);
    border-color: var(--border-hover);
}

.mobile-ham-line[b-2u6bjtxoiy] {
    width: 20px;
    height: 2px;
    background: var(--brand-primary, #CCFF00);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
    display: block;
}

.mobile-hamburger.is-open .mobile-ham-line:nth-child(1)[b-2u6bjtxoiy] {
    transform: translateY(6px) rotate(45deg);
}

.mobile-hamburger.is-open .mobile-ham-line:nth-child(2)[b-2u6bjtxoiy] {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-hamburger.is-open .mobile-ham-line:nth-child(3)[b-2u6bjtxoiy] {
    transform: translateY(-6px) rotate(-45deg);
}

/* Overlay backdrop */
.mobile-nav-overlay[b-2u6bjtxoiy] {
    position: fixed;
    inset: 0;
    z-index: 1028;
    background: rgba(0, 0, 0, 0.55);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    animation: mobile-overlay-in-b-2u6bjtxoiy 0.2s ease;
}

@keyframes mobile-overlay-in-b-2u6bjtxoiy {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Slide-in drawer */
.mobile-nav-drawer[b-2u6bjtxoiy] {
    position: fixed;
    top: 52px;
    left: 0;
    bottom: 0;
    z-index: 1029;
    width: 260px;
    background-color: var(--nav-bg);
    border-right: 1px solid var(--nav-border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-animation: mobile-drawer-in 0.22s ease;
    animation: mobile-drawer-in-b-2u6bjtxoiy 0.22s ease;
    box-shadow: var(--shadow-lg);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

@keyframes mobile-drawer-in-b-2u6bjtxoiy {
    from { transform: translateX(-100%); opacity: 0; }
    to   { transform: translateX(0);   opacity: 1; }
}

.mobile-nav-header[b-2u6bjtxoiy] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.75rem 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.mobile-nav-logo[b-2u6bjtxoiy] {
    height: 32px;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
}

.mobile-nav-links[b-2u6bjtxoiy] {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0.5rem 0.5rem;
    overflow-y: auto;
}

.mobile-nav-bottom[b-2u6bjtxoiy] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0.5rem;
    border-top: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

/* Nav link in mobile drawer */
.mobile-nav-drawer[b-2u6bjtxoiy]  .mobile-nav-link,
.mobile-nav-link[b-2u6bjtxoiy] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    color: var(--text-secondary, rgba(255, 255, 255, 0.70));
    font-size: 0.88rem;
    font-weight: 600;
    font-family: 'Norwester', 'Helvetica Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    text-decoration: none;
    letter-spacing: 0.04em;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.mobile-nav-drawer[b-2u6bjtxoiy]  .mobile-nav-link i,
.mobile-nav-link i[b-2u6bjtxoiy] {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    color: var(--nav-icon);
    transition: color 0.15s ease;
}

.mobile-nav-drawer[b-2u6bjtxoiy]  .mobile-nav-link:hover,
.mobile-nav-link:hover[b-2u6bjtxoiy] {
    background-color: var(--bg-hover, rgba(204, 255, 0, 0.06));
    color: var(--text-primary, #CAC1BD);
    text-decoration: none;
}

.mobile-nav-drawer[b-2u6bjtxoiy]  .mobile-nav-link:hover i,
.mobile-nav-link:hover i[b-2u6bjtxoiy] {
    color: var(--nav-icon-hover);
}

.mobile-nav-drawer[b-2u6bjtxoiy]  .mobile-nav-link.active,
.mobile-nav-link.active[b-2u6bjtxoiy] {
    background-color: var(--nav-active-bg);
    color: var(--brand-primary, #CCFF00);
    border-left: 3px solid var(--brand-primary, #CCFF00);
    padding-left: 7px;
}

.mobile-nav-drawer[b-2u6bjtxoiy]  .mobile-nav-link.active i,
.mobile-nav-link.active i[b-2u6bjtxoiy] {
    color: var(--brand-primary, #CCFF00);
}

.mobile-nav-group-label[b-2u6bjtxoiy] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px 2px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand-primary, #CCFF00);
    opacity: 0.65;
    font-family: 'Norwester', 'Helvetica Neue', sans-serif;
}

.mobile-nav-badge[b-2u6bjtxoiy] {
    font-size: 0.55rem;
    background-color: var(--brand-primary, #CCFF00);
    color: #000;
    border-radius: var(--radius-md);
    padding: 0 4px;
    font-weight: 700;
    min-width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.mobile-nav-sub[b-2u6bjtxoiy] {
    padding: 0 0 4px 10px;
}

/* Reuse sidebar sub-item styles for mobile drawer */
.mobile-nav-sub[b-2u6bjtxoiy]  .sidebar-sub-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 8px;
    border-radius: 6px;
    color: var(--text-secondary, rgba(255, 255, 255, 0.70));
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.mobile-nav-sub[b-2u6bjtxoiy]  .sidebar-sub-item:hover {
    background-color: var(--bg-hover, rgba(204, 255, 0, 0.06));
    color: var(--text-primary, #CAC1BD);
}

.mobile-nav-sub[b-2u6bjtxoiy]  .sidebar-sub-text {
    opacity: 1;
    width: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align:left;
}

.mobile-nav-sub[b-2u6bjtxoiy]  .sidebar-sub-status {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    opacity: 1;
    width: auto;
    margin-left: auto;
    flex-shrink: 0;
}

.mobile-nav-sub[b-2u6bjtxoiy]  .sidebar-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.mobile-nav-sub[b-2u6bjtxoiy]  .status-live {
    background-color: #28a745;
    box-shadow: 0 0 6px rgba(40, 167, 69, 0.5);
}

.mobile-nav-sub[b-2u6bjtxoiy]  .status-ready {
    background-color: #0dcaf0;
}

.mobile-nav-sub[b-2u6bjtxoiy]  .status-blocked {
    background-color: #dc3545;
    box-shadow: 0 0 6px rgba(220, 53, 69, 0.5);
}

.mobile-nav-sub[b-2u6bjtxoiy]  .sub-status-live { color: #28a745; }
.mobile-nav-sub[b-2u6bjtxoiy]  .sub-status-ready { color: #0dcaf0; }
.mobile-nav-sub[b-2u6bjtxoiy]  .sub-status-blocked { color: #dc3545; }

/* Light mode adjustments */
:global([data-theme="light"]) .mobile-topbar-title[b-2u6bjtxoiy] {
    color: #1A1A1A;
}

:global([data-theme="light"]) .mobile-nav-drawer[b-2u6bjtxoiy]  .mobile-nav-link.active,
:global([data-theme="light"]) .mobile-nav-link.active[b-2u6bjtxoiy] {
    color: #1A1A1A;
    border-left-color: #CCFF00;
    background-color: rgba(204, 255, 0, 0.18);
}

:global([data-theme="light"]) .mobile-nav-drawer[b-2u6bjtxoiy]  .mobile-nav-link.active i,
:global([data-theme="light"]) .mobile-nav-link.active i[b-2u6bjtxoiy] {
    color: #1A1A1A;
}

/* ============================================
   ACCOUNT DROPDOWN & THEME TOGGLE (topbar)
   ============================================ */

.topbar-right-actions[b-2u6bjtxoiy] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 10px;
}

/* Topbar live clock */
.topbar-clock[b-2u6bjtxoiy] {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    margin-right: 10px;
    line-height: 1.2;
}

.topbar-clock-date[b-2u6bjtxoiy] {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.topbar-clock-time[b-2u6bjtxoiy] {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.topbar-clock-compact[b-2u6bjtxoiy] {
    flex-direction: row;
    margin-right: 8px;
}

.topbar-clock-compact .topbar-clock-time[b-2u6bjtxoiy] {
    font-size: 0.75rem;
}

.topbar-theme-btn[b-2u6bjtxoiy] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--nav-border);
    border-radius: 50%;
    background: var(--brand-primary-light, rgba(204, 255, 0, 0.08));
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.2s, color 0.15s;
}

.topbar-theme-btn:hover[b-2u6bjtxoiy] {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.topbar-account-wrapper[b-2u6bjtxoiy] {
    position: relative;
}

.topbar-avatar-btn[b-2u6bjtxoiy] {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

.topbar-avatar-circle[b-2u6bjtxoiy] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand-primary, #CCFF00);
    color: #1a1a2e;
    font-size: 1.1rem;
    font-weight: 700;
    transition: box-shadow 0.15s;
    overflow: hidden;
}

.topbar-avatar-circle i[b-2u6bjtxoiy] {
    color: #1a1a2e;
}

.topbar-avatar-btn:hover .topbar-avatar-circle[b-2u6bjtxoiy] {
    box-shadow: 0 0 0 3px rgba(204, 255, 0, 0.25);
}

.topbar-avatar-lg[b-2u6bjtxoiy] {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
}

.topbar-avatar-photo[b-2u6bjtxoiy] {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.topbar-sub-badge[b-2u6bjtxoiy] {
    font-size: 0.55rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
    letter-spacing: 0.04em;
    line-height: 1.3;
}

.topbar-sub-badge.badge-pro[b-2u6bjtxoiy] {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
}

.topbar-sub-badge.badge-basic[b-2u6bjtxoiy] {
    background: var(--bg-hover, rgba(255, 255, 255, 0.08));
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.account-dropdown-backdrop[b-2u6bjtxoiy] {
    position: fixed;
    inset: 0;
    z-index: 1019;
    background: transparent;
}

.topbar-account-dropdown[b-2u6bjtxoiy] {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 1040;
    min-width: 260px;
    background: var(--bg-card, #1e1e1e);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    padding: 16px;
    animation: dropdown-fade-in-b-2u6bjtxoiy 0.15s ease;
}

@keyframes dropdown-fade-in-b-2u6bjtxoiy {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.topbar-account-info[b-2u6bjtxoiy] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 4px;
}

.topbar-account-name[b-2u6bjtxoiy] {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.topbar-account-email[b-2u6bjtxoiy] {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.topbar-dropdown-divider[b-2u6bjtxoiy] {
    margin: 12px 0;
    border-color: var(--border-subtle, rgba(255, 255, 255, 0.06));
}

.topbar-dropdown-item[b-2u6bjtxoiy] {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    text-align: left;
}

.topbar-dropdown-item:hover[b-2u6bjtxoiy] {
    background: var(--bg-hover, rgba(255, 255, 255, 0.06));
    color: var(--text-primary);
}

.topbar-dropdown-item i[b-2u6bjtxoiy] {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.topbar-dropdown-signout[b-2u6bjtxoiy] {
    color: #ef4444;
}

.topbar-dropdown-signout:hover[b-2u6bjtxoiy] {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
}

/* Desktop sidebar account */
.sidebar-account-wrapper[b-2u6bjtxoiy] {
    position: relative;
}

.sidebar-avatar-circle[b-2u6bjtxoiy] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--brand-primary, #CCFF00);
    color: #1a1a1a;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}

.sidebar-account-dropdown[b-2u6bjtxoiy] {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    z-index: 1040;
    min-width: 260px;
    background: var(--bg-card, #1e1e1e);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    padding: 16px;
    animation: dropdown-fade-in-b-2u6bjtxoiy 0.15s ease;
}

/* Light mode */
:global([data-theme="light"]) .topbar-account-dropdown[b-2u6bjtxoiy],
:global([data-theme="light"]) .sidebar-account-dropdown[b-2u6bjtxoiy] {
    background: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

:global([data-theme="light"]) .topbar-avatar-circle[b-2u6bjtxoiy],
:global([data-theme="light"]) .sidebar-avatar-circle[b-2u6bjtxoiy] {
    background: #00457E !important;
    color: #fff !important;
}

:global([data-theme="light"]) .topbar-avatar-circle i[b-2u6bjtxoiy],
:global([data-theme="light"]) .sidebar-avatar-circle i[b-2u6bjtxoiy] {
    color: #fff !important;
}

:global([data-theme="light"]) .topbar-theme-btn[b-2u6bjtxoiy] {
    background: rgba(0, 69, 126, 0.06);
    border-color: rgba(0, 69, 126, 0.12);
    color: #333;
}

:global([data-theme="light"]) .topbar-theme-btn:hover[b-2u6bjtxoiy] {
    background: rgba(0, 69, 126, 0.12);
    color: #00457E;
}

:global([data-theme="light"]) .topbar-sub-badge.badge-basic[b-2u6bjtxoiy] {
    background: rgba(0, 69, 126, 0.06);
    color: #555;
    border-color: #cbd5e1;
}

/* Uploaded brand logos — PNG with transparency adapts to both themes natively */
