body {
            background-color: var(--bg);
            color: var(--text);
            margin: 0;
            padding: 0;
            font-family: "Segoe UI", sans-serif;
        }

        .main-container {
            display: flex;
            height: 100vh;
            position: relative;
            overflow: visible;
        }

        .sidebar {
            width: var(--sidebarW);
            background: linear-gradient(180deg, #2b2d31 0%, #1e1f22 100%);
            box-shadow: 3px 0 8px rgba(0, 0, 0, 0.4);
            padding: 4px;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            box-sizing: border-box;
            height: 100vh;
            border-right: none;
            overflow: hidden;
            z-index: 70;
        }

            .sidebar.is-collapsed {
                width: var(--sidebarWCollapsed);
            }

        .sidebar-top {
            flex: 1 1 auto;
            overflow-y: auto;
            overflow-x: hidden;
            padding-bottom: 8px;
        }

        .sidebar-bottom {
            flex: 0 0 auto;
            position: sticky;
            bottom: 0;
            background: inherit;
            padding-top: 6px;
        }

            .sidebar-bottom::before {
                content: "";
                display: block;
                height: 1px;
                background: rgba(255,255,255,0.12);
                margin: 4px 0 6px 0;
            }

        .content {
            flex: 1;
            padding: 0;
            margin: 0;
            overflow-y: auto;
            height: 100vh;
            background-color: var(--bg);
        }

        /* NOTE: Removed mobile-drawer/hamburger/backdrop CSS entirely */

        .section-bronze,
        .section-silver,
        .section-gold,
        .section-news,
        .section-admin {
            margin-bottom: 8px;
            padding: 4px 2px;
            width: 100%;
            border-radius: 10px;
            box-sizing: border-box;
            box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.1), 0 2px 4px rgba(0, 0, 0, 0.3);
            overflow: visible;
        }

        .section-news {
            background: linear-gradient(180deg, #2980b9, #145374);
            color: #fff;
        }

        .section-bronze {
            background: linear-gradient(180deg, #b5853d, #9f7a34);
        }

        .section-silver {
            background: linear-gradient(180deg, #d8d8d8, #a9a9a9);
            color: #222;
        }

        .section-gold {
            background: linear-gradient(180deg, #f0c93d, #d4af37);
        }

        .section-admin {
            background: linear-gradient(180deg, #f39c12, #b9770e);
            color: #222;
        }

        .sidebar .btn {
            width: 100%;
            margin-bottom: 4px;
            border: none;
            transition: all 0.2s ease-in-out;
            font-weight: 600;
            font-size: 0.8rem;
            border-radius: 6px;
        }

        .sidebar .btn-sm {
            padding: 4px 6px;
            line-height: 1.2;
        }

        .section-news .btn.btn-sm {
            padding-top: 3px;
            padding-bottom: 3px;
            padding-left: 6px;
            padding-right: 6px;
            line-height: 1.2;
        }

        .sidebar .btn:hover {
            filter: brightness(1.12);
            transform: translateY(-1px);
            box-shadow: 0 0 4px rgba(241, 196, 15, 0.45), 0 0 10px rgba(241, 196, 15, 0.35);
            color: var(--accentText) !important;
            text-shadow: 0 0 4px rgba(241, 196, 15, 0.8), 0 0 6px rgba(241, 196, 15, 0.6);
            transition: all 0.15s ease-in-out;
        }

        .sidebar .btn:disabled {
            opacity: 0.65;
            cursor: not-allowed;
            box-shadow: none;
            transform: none;
            text-shadow: none;
        }


        .logo {
            margin: 0;
            padding: 0;
            text-align: center;
            line-height: 0;
        }

            .logo a {
                display: block;
                margin: 0;
                padding: 0;
            }

            .logo img {
                display: block;
                width: 100%;
                max-width: 100%;
                height: auto;
                margin: 0;
                border: none;
                border-radius: 4px;
                vertical-align: middle;
                transition: filter 0.2s ease;
            }

                .logo img:hover {
                    filter: drop-shadow(0 0 4px #f1c40f);
                }

        #sidebarToggleBtn {
            width: 100%;
            margin: 4px 0 6px 0;
            padding: 4px 6px;
            line-height: 1.2;
            border-radius: 6px;
        }

        .sidebar button[data-short][data-full] {
            position: relative;
            overflow: visible;
        }

            .sidebar button[data-short][data-full]::after {
                content: attr(data-full);
                position: absolute;
                left: 100%;
                top: 50%;
                transform: translateY(-50%);
                background: var(--panel);
                color: #fff;
                padding: 4px 10px;
                border-radius: 6px;
                white-space: nowrap;
                opacity: 0;
                pointer-events: none;
                transition: opacity 0.15s ease-out;
                box-shadow: 0 2px 8px rgba(0,0,0,0.4);
                z-index: 9999;
                font-size: 0.8rem;
            }

        .sidebar.is-collapsed button[data-short][data-full]:hover::after {
            opacity: 1;
        }


        .tier-home-header {
            width: 100%;
            height: var(--accHeaderH);
            display: grid;
            grid-template-columns: minmax(0, 1fr) 34px;
            align-items: stretch;
            margin: 0 0 4px 0;
            border-radius: 8px;
            overflow: hidden;
            background: rgba(0,0,0,0.18);
        }

        .tier-home-link,
        .tier-collapse-toggle {
            border: 0;
            background: transparent;
            color: #fff;
            font-weight: 700;
            font-size: 0.8rem;
        }

        .tier-home-link {
            min-width: 0;
            padding: 0 8px;
            display: flex;
            align-items: center;
            text-align: left;
            text-decoration: none;
            line-height: normal;
            cursor: pointer;
        }

        .tier-home-link:hover,
        .tier-home-link:focus,
        .tier-home-link:active,
        .tier-home-link:visited {
            color: #fff;
            text-decoration: none;
        }

        .tier-collapse-toggle {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            cursor: pointer;
            border-left: 1px solid rgba(255,255,255,0.14);
        }

        .tier-home-link:focus,
        .tier-collapse-toggle:focus {
            outline: 2px solid rgba(241,196,15,0.55);
            outline-offset: -2px;
        }

        .sidebar.is-collapsed .tier-home-header {
            /* Keep a dedicated chevron target available in narrow mode. */
            grid-template-columns: minmax(0, 1fr) 22px;
        }

        .sidebar.is-collapsed .tier-collapse-toggle {
            display: flex;
            min-width: 22px;
        }

        .sidebar.is-collapsed .tier-home-link {
            padding: 0 2px;
            text-align: center;
        }

        .sidebar.is-collapsed .tier-home-header .tier-chevron {
            width: 14px;
            font-size: 0.68rem;
        }

        .tier-toggle {
            width: 100%;
            height: var(--accHeaderH);
            display: flex;
            align-items: center;
            justify-content: space-between;
            border: 0;
            border-radius: 8px;
            padding: 0 8px;
            margin: 0 0 4px 0;
            font-weight: 700;
            font-size: 0.8rem;
            cursor: pointer;
        }

            .tier-toggle:focus {
                outline: 2px solid rgba(241,196,15,0.55);
                outline-offset: 2px;
            }

            .tier-toggle .tier-title {
                display: inline-flex;
                gap: 8px;
                align-items: center;
                white-space: nowrap;
            }

            .tier-toggle .tier-meta {
                display: inline-flex;
                gap: 6px;
                align-items: center;
                opacity: 0.9;
                font-weight: 700;
            }

        .tier-chevron {
            display: inline-block;
            width: 18px;
            text-align: center;
            transition: transform 120ms ease;
        }

        .tier.is-collapsed .tier-body {
            display: none;
        }

        .tier.is-collapsed .tier-chevron {
            transform: rotate(-90deg);
        }

        .section-news .tier-toggle {
            background: rgba(0,0,0,0.18);
            color: #fff;
        }

        .section-bronze .tier-toggle {
            background: rgba(0,0,0,0.18);
            color: #fff;
        }

        .section-gold .tier-toggle {
            background: rgba(0,0,0,0.15);
            color: #222;
        }

        .section-silver .tier-toggle {
            background: rgba(0,0,0,0.12);
            color: #222;
        }

        .section-admin .tier-toggle {
            background: rgba(0,0,0,0.12);
            color: #222;
        }

        .sidebar.is-collapsed .tier-toggle .tier-title-text {
            display: none;
        }

        .sidebar.is-collapsed .tier-toggle {
            justify-content: center;
        }

            .sidebar.is-collapsed .tier-toggle .tier-meta {
                display: none;
            }

        #emailModal .modal-content {
            background-color: var(--panel);
            color: white;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
        }

        #emailModal .modal-header,
        #emailModal .modal-footer {
            border-color: #444;
        }

        #emailModal .modal-title {
            color: var(--accent);
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
        }

        #emailModal .form-control {
            background-color: var(--bg);
            color: white;
            border: 1px solid #555;
            border-radius: 6px;
        }

        #newsUpdatesBtn.has-new::before {
            content: "";
            position: absolute;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #ffd94a;
            top: 6px;
            right: 8px;
            box-shadow: 0 0 6px rgba(241, 196, 15, 0.85);
            pointer-events: none;
        }

        .sidebar.is-collapsed #newsUpdatesBtn.has-new::before {
            right: 6px;
        }

        #emailModal .btn-primary {
            background-color: var(--accent);
            border-color: var(--accent);
            color: var(--bg);
            font-weight: bold;
        }

        #donate-fx-wrapper {
            position: relative;
            display: inline-block;
        }

            #donate-fx-wrapper .hearts-layer {
                position: absolute;
                left: 0;
                right: 0;
                bottom: 0;
                top: 0;
                pointer-events: none;
                overflow: visible;
            }

            #donate-fx-wrapper .heart {
                position: absolute;
                bottom: 2px;
                left: 50%;
                transform: translateX(-50%);
                opacity: 0;
                pointer-events: none;
                color: var(--accentText);
                animation: none;
                will-change: transform, opacity;
            }

            #donate-fx-wrapper:hover .heart {
                animation: heartFloat 1.4s linear infinite;
                opacity: 1;
            }

        @keyframes heartFloat {
            0% {
                transform: translateY(0) scale(.7);
                opacity: 1;
            }

            25% {
                transform: translateY(-10px) translateX(-8px) scale(.9);
            }

            50% {
                transform: translateY(-22px) translateX(6px) scale(1);
                opacity: .9;
            }

            75% {
                transform: translateY(-30px) translateX(-4px) scale(1.1);
            }

            100% {
                transform: translateY(-40px) translateX(0px) scale(1.2);
                opacity: 0;
            }
        }

.agn-route-state,.agn-route-error{min-height:50vh;display:grid;place-content:center;text-align:center;gap:12px;padding:32px}.sidebar [data-agn-page].is-active{outline:2px solid rgba(255,255,255,.8);box-shadow:0 0 0 2px rgba(241,196,15,.45),0 0 12px rgba(241,196,15,.35)}

/* Compact sidebar authentication */
.agn-auth-panel {
    margin-top: 2px;
    padding: 7px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 10px;
    background:
        radial-gradient(circle at 0 0, rgba(44,169,224,.14), transparent 58%),
        rgba(12,14,18,.46);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}

.agn-auth-state {
    min-width: 0;
}

.agn-auth-panel .btn {
    margin-bottom: 5px;
}

.agn-auth-panel .btn:last-child {
    margin-bottom: 0;
}

.agn-auth-identity {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin-bottom: 7px;
    padding: 2px 2px 5px;
}

.agn-auth-avatar {
    flex: 0 0 auto;
    color: #70d99a;
    font-size: .72rem;
    filter: drop-shadow(0 0 5px rgba(112,217,154,.55));
}

.agn-auth-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.15;
}

.agn-auth-copy strong,
.agn-auth-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.agn-auth-copy strong {
    color: #f0f2f5;
    font-size: .78rem;
}

.agn-auth-copy small {
    color: #9fa8b5;
    font-size: .67rem;
    margin-top: 2px;
}

.agn-auth-logout {
    width: 100%;
    border: 0;
    background: transparent;
    color: #aeb6c2;
    font-size: .72rem;
    padding: 3px 5px;
    border-radius: 5px;
}

.agn-auth-logout:hover {
    color: #ff9b9b;
    background: rgba(206,70,70,.10);
}

.sidebar.is-collapsed .agn-auth-panel {
    padding: 4px 2px;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.sidebar.is-collapsed .agn-auth-identity,
.sidebar.is-collapsed .agn-auth-logout {
    display: none !important;
}

.sidebar.is-collapsed .agn-auth-panel .btn {
    font-size: 0;
}

.sidebar.is-collapsed .agn-auth-panel .btn::before {
    content: attr(data-short);
    font-size: .72rem;
}

/* Login modal */
.agn-login-modal {
    color: #edf0f4;
    background:
        radial-gradient(circle at 0 0, rgba(43,153,206,.18), transparent 48%),
        linear-gradient(145deg, #292c32, #202228);
    border: 1px solid #484d57;
    border-radius: 14px;
    box-shadow: 0 22px 65px rgba(0,0,0,.55);
}

.agn-login-modal .modal-header,
.agn-login-modal .modal-footer {
    border-color: rgba(255,255,255,.09);
}

.agn-login-modal .modal-title {
    color: #f5d44f;
    font-weight: 700;
}

.agn-login-subtitle {
    margin-top: 2px;
    color: #9fa8b5;
    font-size: .76rem;
}

.agn-login-modal .form-label {
    margin-bottom: 4px;
    color: #bec6d0;
    font-size: .76rem;
    font-weight: 600;
}

.agn-login-modal .form-control {
    color: #f4f6f8;
    background: #181a1f;
    border-color: #454b55;
}

.agn-login-modal .form-control:focus {
    background: #181a1f;
    border-color: #40a9d8;
    box-shadow: 0 0 0 .2rem rgba(64,169,216,.15);
}

.agn-login-message {
    min-height: 18px;
    margin-top: 8px;
    font-size: .76rem;
}

.agn-login-message.is-error { color: #ff8d8d; }
.agn-login-message.is-success { color: #76df9a; }

.agn-forgot-link {
    display: block;
    margin: 10px auto 0;
    padding: 3px 6px;
    border: 0;
    background: transparent;
    color: #9fcfff;
    font-size: .75rem;
}

.agn-forgot-link:hover {
    color: #c7e4ff;
    text-decoration: underline;
}

.agn-inline-recovery {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,.09);
}

.agn-inline-recovery p {
    margin: 0 0 8px;
    color: #aeb6c2;
    font-size: .75rem;
}

.agn-login-footer {
    justify-content: space-between;
    color: #9fa8b5;
    font-size: .76rem;
}

/* ========================================================================== 
   nav94 – Sidebar visual alignment with the current AGN design system
   ========================================================================== */
.sidebar {
    padding: 5px 6px;
    background:
        radial-gradient(circle at 0 0, rgba(43, 153, 206, .08), transparent 34%),
        linear-gradient(180deg, #24262b 0%, #1b1d21 100%);
    border-right: 1px solid rgba(255,255,255,.075);
    box-shadow: 4px 0 18px rgba(0,0,0,.28);
}

.sidebar-top {
    padding-right: 1px;
}

.section-bronze,
.section-silver,
.section-gold,
.section-news,
.section-admin {
    --tier-rgb: 129, 138, 150;
    --tier-text: #e8ebef;
    position: relative;
    margin: 0 0 5px;
    padding: 2px;
    border: 1px solid rgba(var(--tier-rgb), .17);
    border-radius: 8px;
    color: var(--tier-text);
    background:
        linear-gradient(110deg, rgba(var(--tier-rgb), .10), rgba(var(--tier-rgb), .025) 52%, transparent 100%),
        rgba(255,255,255,.012);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
    overflow: hidden;
}

.section-news   { --tier-rgb: 44, 169, 224; --tier-text: #dff5ff; }
.section-bronze { --tier-rgb: 181, 133, 61; --tier-text: #f1dfc3; }
.section-silver { --tier-rgb: 188, 195, 204; --tier-text: #edf0f4; }
.section-gold   { --tier-rgb: 240, 201, 61; --tier-text: #fff3bd; }
.section-admin  { --tier-rgb: 243, 156, 18; --tier-text: #ffe2ad; }

.tier-home-header,
.tier-toggle,
.section-news .tier-toggle,
.section-bronze .tier-toggle,
.section-silver .tier-toggle,
.section-gold .tier-toggle,
.section-admin .tier-toggle {
    min-height: 29px;
    height: auto;
    margin: 0;
    border: 0;
    border-radius: 6px;
    color: var(--tier-text);
    background:
        linear-gradient(90deg, rgba(var(--tier-rgb), .16), rgba(var(--tier-rgb), .055) 60%, transparent);
    box-shadow: inset 2px 0 0 rgba(var(--tier-rgb), .82);
}

.tier-home-header:hover,
.tier-toggle:hover {
    background:
        linear-gradient(90deg, rgba(var(--tier-rgb), .23), rgba(var(--tier-rgb), .075) 64%, transparent);
}

.tier-home-link,
.tier-collapse-toggle {
    color: var(--tier-text);
}

.tier-collapse-toggle {
    border-left-color: rgba(var(--tier-rgb), .18);
}

.tier-body {
    padding: 3px 1px 1px 7px;
}

.sidebar .tier-body .btn,
.sidebar-bottom > .btn,
.agn-auth-panel .btn {
    position: relative;
    width: 100%;
    min-height: 27px;
    margin: 0 0 2px;
    padding: 4px 7px 4px 10px;
    border: 1px solid transparent;
    border-radius: 5px;
    color: #c8ced7;
    background: transparent;
    box-shadow: none;
    text-align: left;
    font-size: .76rem;
    font-weight: 600;
    line-height: 1.15;
    filter: none;
    transform: none;
}

.sidebar .tier-body .btn::before,
.agn-auth-panel .btn::after {
    content: "";
    position: absolute;
    left: 1px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    border-radius: 99px;
    background: rgba(var(--tier-rgb, 44, 169, 224), 0);
    transition: background-color .14s ease, box-shadow .14s ease;
}

.sidebar .tier-body .btn:hover,
.agn-auth-panel .btn:hover {
    color: #f4f6f8 !important;
    background:
        linear-gradient(90deg, rgba(var(--tier-rgb, 44, 169, 224), .13), rgba(var(--tier-rgb, 44, 169, 224), .035) 72%, transparent);
    border-color: rgba(var(--tier-rgb, 44, 169, 224), .14);
    box-shadow: none;
    text-shadow: none;
    filter: none;
    transform: translateX(1px);
}

.sidebar .tier-body .btn:hover::before,
.agn-auth-panel .btn:hover::after {
    background: rgba(var(--tier-rgb, 44, 169, 224), .9);
    box-shadow: 0 0 7px rgba(var(--tier-rgb, 44, 169, 224), .45);
}

.sidebar [data-agn-page].is-active {
    color: #fff !important;
    outline: 0;
    border-color: rgba(var(--tier-rgb, 241, 196, 15), .22);
    background:
        linear-gradient(90deg, rgba(var(--tier-rgb, 241, 196, 15), .22), rgba(var(--tier-rgb, 241, 196, 15), .07) 70%, transparent);
    box-shadow: inset 2px 0 0 rgba(var(--tier-rgb, 241, 196, 15), .95);
    text-shadow: none;
}

.sidebar [data-agn-page].is-active::before {
    background: rgba(var(--tier-rgb, 241, 196, 15), 1);
    box-shadow: 0 0 8px rgba(var(--tier-rgb, 241, 196, 15), .5);
}

.sidebar .btn:disabled {
    color: #79818d;
    opacity: .58;
    background: transparent;
}

#sidebarToggleBtn {
    min-height: 26px;
    margin: 4px 0 5px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 6px;
    color: #aeb5bf;
    background: linear-gradient(90deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
    box-shadow: none;
}

#sidebarToggleBtn:hover {
    color: #f0d35b !important;
    border-color: rgba(240,201,61,.22);
    background: linear-gradient(90deg, rgba(240,201,61,.10), rgba(240,201,61,.025));
    box-shadow: none;
    text-shadow: none;
    transform: none;
}

.sidebar-bottom::before {
    margin: 4px 2px 6px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent);
}

.agn-auth-panel {
    --tier-rgb: 44, 169, 224;
    padding: 5px;
    border-color: rgba(44,169,224,.11);
    border-radius: 8px;
    background:
        linear-gradient(110deg, rgba(44,169,224,.075), rgba(44,169,224,.018) 58%, transparent),
        rgba(12,14,18,.30);
}

.agn-auth-panel .btn {
    text-align: center;
}

.agn-auth-panel .btn-primary,
.agn-auth-panel .btn-info,
.agn-auth-panel .btn-outline-info {
    color: #dceef7;
    border-color: rgba(44,169,224,.16);
    background: linear-gradient(90deg, rgba(44,169,224,.15), rgba(44,169,224,.045));
}

.agn-auth-logout {
    border-top: 1px solid rgba(255,255,255,.05);
    border-radius: 0 0 5px 5px;
}

.sidebar.is-collapsed .section-bronze,
.sidebar.is-collapsed .section-silver,
.sidebar.is-collapsed .section-gold,
.sidebar.is-collapsed .section-news,
.sidebar.is-collapsed .section-admin {
    padding: 2px;
}

.sidebar.is-collapsed .tier-body {
    padding-left: 1px;
}

.sidebar.is-collapsed .tier-body .btn {
    padding-left: 4px;
    padding-right: 4px;
    text-align: center;
}

/* ========================================================================== 
   nav95 – Responsive sidebar behavior and touch-friendly controls
   ========================================================================== */
.sidebar,
.content {
    transition: width .2s ease, transform .22s ease, box-shadow .22s ease;
}

#sidebarToggleBtn,
.mobile-sidebar-toggle {
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    touch-action: manipulation;
}

#sidebarToggleBtn {
    display: flex;
    padding: 7px 9px;
    font-size: .78rem;
}

.sidebar-toggle-icon {
    display: inline-grid;
    width: 20px;
    min-width: 20px;
    place-items: center;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1;
}

.sidebar-toggle-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar.is-collapsed #sidebarToggleBtn {
    padding-inline: 4px;
}

.sidebar.is-collapsed #sidebarToggleBtn .sidebar-toggle-text {
    display: none;
}

.mobile-sidebar-toggle,
.sidebar-backdrop {
    display: none;
}

@media (max-width: 1050px) and (min-width: 721px) {
    :root {
        --sidebarW: 164px;
        --sidebarWCollapsed: 62px;
    }

    .sidebar.is-collapsed .logo img {
        padding: 3px;
    }

    .sidebar.is-collapsed .tier-toggle,
    .sidebar.is-collapsed .tier-home-header {
        min-height: 36px;
    }

    .sidebar.is-collapsed .tier-body .btn {
        min-height: 34px;
        font-size: .73rem;
    }
}

@media (max-width: 720px) {
    :root {
        --sidebarW: min(86vw, 304px);
    }

    html,
    body {
        height: auto !important;
        min-height: 100% !important;
        max-height: none !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .main-container {
        display: block !important;
        width: 100% !important;
        min-height: 100dvh !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .content {
        display: block !important;
        width: 100% !important;
        min-height: 100dvh !important;
        height: auto !important;
        max-height: none !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
        scrollbar-gutter: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    #contentWindow {
        min-height: 100dvh !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .mobile-sidebar-toggle {
        position: fixed;
        top: max(10px, env(safe-area-inset-top));
        left: max(10px, env(safe-area-inset-left));
        z-index: 92;
        display: inline-flex;
        min-width: 92px;
        padding: 8px 12px;
        border: 1px solid rgba(240,201,61,.25);
        border-radius: 9px;
        color: #f3e7a2;
        background:
            linear-gradient(100deg, rgba(240,201,61,.16), rgba(44,169,224,.08)),
            rgba(25,27,31,.94);
        box-shadow: 0 5px 18px rgba(0,0,0,.32);
        font: 700 .82rem/1 "Segoe UI", sans-serif;
        backdrop-filter: blur(8px);
    }

    .mobile-sidebar-toggle:focus-visible,
    #sidebarToggleBtn:focus-visible {
        outline: 2px solid rgba(240,201,61,.9);
        outline-offset: 2px;
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 79;
        display: block;
        border: 0;
        padding: 0;
        opacity: 0;
        visibility: hidden;
        background: rgba(5,7,10,.64);
        backdrop-filter: blur(2px);
        transition: opacity .2s ease, visibility .2s ease;
    }

    .sidebar-backdrop.is-visible {
        opacity: 1;
        visibility: visible;
    }

    .sidebar.is-mobile {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 90;
        width: var(--sidebarW);
        height: 100dvh;
        padding-top: max(6px, env(safe-area-inset-top));
        padding-bottom: max(6px, env(safe-area-inset-bottom));
        transform: translateX(calc(-100% - 16px));
        box-shadow: 12px 0 34px rgba(0,0,0,.46);
        overflow: hidden;
    }

    .sidebar.is-mobile.is-mobile-open {
        transform: translateX(0);
    }

    .sidebar.is-mobile #sidebarToggleBtn {
        position: sticky;
        top: 0;
        z-index: 2;
        min-height: 44px;
        margin: 3px 0 7px;
        border-color: rgba(255,255,255,.12);
        background:
            linear-gradient(90deg, rgba(255,255,255,.065), rgba(255,255,255,.018)),
            #202227;
    }

    .sidebar.is-mobile .sidebar-top {
        overscroll-behavior: contain;
        scrollbar-gutter: stable;
    }

    .sidebar.is-mobile .tier-home-header,
    .sidebar.is-mobile .tier-toggle {
        min-height: 42px;
    }

    .sidebar.is-mobile .tier-collapse-toggle {
        min-width: 44px;
    }

    .sidebar.is-mobile .tier-body .btn,
    .sidebar.is-mobile .agn-auth-panel .btn {
        min-height: 40px;
        padding-top: 8px;
        padding-bottom: 8px;
        font-size: .82rem;
    }

    html:has(body.agn-mobile-nav-open),
    body.agn-mobile-nav-open {
        overflow: hidden;
        overscroll-behavior: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sidebar,
    .content,
    .sidebar-backdrop {
        transition: none !important;
    }
}
