@media(max-width:800px){
    :root{
        --brand-bg:#0F1113;
        --brand-surface:#1E2A20;
        --brand-accent:#556B2F;
        --brand-tan:#C7B98A;
        --brand-stone:#E6E1D5;
        --ae-shell-bg:var(--brand-bg);
        --ae-shell-panel:#141917;
        --ae-shell-line:#344036;
        --ae-shell-text:var(--brand-stone);
        --ae-shell-muted:#aaa99f;
        --ae-shell-accent:var(--brand-accent);
    }

    *{
        box-sizing:border-box;
    }

    html,
    body{
        overflow-x:hidden;
    }

    body.ae-shell-ready{
        background:
            radial-gradient(circle at top left, #1E2A20 0%, #151a17 36%, #0F1113 100%) !important;
        padding-bottom:calc(82px + env(safe-area-inset-bottom)) !important;
    }

    body.ae-shell-ready .mobile-top,
    body.ae-shell-ready .mobile-page-header,
    body.ae-shell-ready .topbar,
    body.ae-shell-ready > .bottom-nav,
    body.ae-shell-ready > .mobile-bottom-nav,
    body.ae-shell-ready .mobile-tabs{
        display:none !important;
    }

    body.ae-shell-ready .sidebar{
        display:none !important;
        width:0 !important;
        min-width:0 !important;
        height:0 !important;
        padding:0 !important;
        margin:0 !important;
        overflow:hidden !important;
    }

    body.ae-shell-ready .main,
    body.ae-shell-ready .page,
    body.ae-shell-ready .mobile-main{
        margin-left:0 !important;
        width:100% !important;
        max-width:100vw !important;
    }

    body.ae-shell-ready .main{
        padding:22px 14px 96px !important;
    }

    .ae-mobile-header{
        position:sticky;
        top:0;
        z-index:220;
        min-height:82px;
        display:grid;
        grid-template-columns:48px minmax(0,1fr) 48px;
        align-items:center;
        gap:8px;
        padding:12px 14px;
        background:linear-gradient(180deg,#1E2A20,#0F1113);
        border-bottom:1px solid rgba(199,185,138,.28);
        box-shadow:0 10px 28px rgba(0,0,0,.24);
    }

    .ae-mobile-brand{
        grid-column:2;
        justify-self:center;
        color:var(--ae-shell-text);
        text-decoration:none;
        display:flex;
        align-items:center;
        justify-content:center;
    }

    .ae-mobile-brand img{
        display:block;
        width:190px;
        max-width:100%;
        height:48px;
        object-fit:contain;
    }

    .ae-mobile-menu-button{
        grid-column:3;
        justify-self:end;
        width:48px;
        height:48px;
        border-radius:50%;
        border:1px solid rgba(55,65,81,.95);
        background:rgba(2,6,23,.74);
        color:var(--ae-shell-text);
        font-size:30px;
        line-height:1;
        font-weight:900;
    }

    .ae-mobile-drawer{
        position:fixed;
        inset:0;
        z-index:240;
        pointer-events:none;
        opacity:0;
        transition:opacity .16s ease;
    }

    body.ae-drawer-open .ae-mobile-drawer{
        pointer-events:auto;
        opacity:1;
    }

    .ae-mobile-drawer-backdrop{
        position:absolute;
        inset:0;
        background:rgba(2,6,23,.62);
    }

    .ae-mobile-drawer-panel{
        position:absolute;
        top:0;
        right:0;
        width:min(312px,86vw);
        height:100%;
        padding:18px;
        background:linear-gradient(180deg,#1E2A20,#0F1113);
        border-left:1px solid rgba(55,65,81,.95);
        transform:translateX(100%);
        transition:transform .18s ease;
        box-shadow:-18px 0 50px rgba(0,0,0,.42);
    }

    body.ae-drawer-open .ae-mobile-drawer-panel{
        transform:translateX(0);
    }

    .ae-mobile-drawer-head{
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:12px;
        margin-bottom:14px;
    }

    .ae-mobile-drawer-head strong{
        display:flex;
        align-items:center;
    }

    .ae-mobile-drawer-head img{
        width:190px;
        height:54px;
        object-fit:contain;
    }

    .ae-mobile-drawer-close{
        width:44px;
        height:44px;
        border-radius:50%;
        border:1px solid rgba(55,65,81,.95);
        background:#111827;
        color:var(--ae-shell-text);
        font-size:24px;
        font-weight:900;
    }

    .ae-mobile-drawer a{
        display:flex;
        min-height:48px;
        align-items:center;
        padding:0 12px;
        border-radius:10px;
        color:var(--ae-shell-text);
        text-decoration:none;
        font-size:16px;
        font-weight:900;
    }

    .ae-mobile-drawer a.active,
    .ae-mobile-drawer a:hover{
        color:var(--brand-stone);
        background:var(--ae-shell-accent);
    }

    .ae-mobile-bottom-nav{
        position:fixed;
        left:14px;
        right:14px;
        bottom:calc(10px + env(safe-area-inset-bottom));
        z-index:230;
        height:58px;
        display:grid;
        grid-template-columns:repeat(4,1fr);
        border:1px solid rgba(55,65,81,.95);
        border-radius:24px;
        background:rgba(3,7,18,.98);
        box-shadow:0 -14px 30px rgba(0,0,0,.34);
        overflow:hidden;
        backdrop-filter:blur(18px);
    }

    .ae-mobile-bottom-nav a{
        min-width:0;
        display:flex;
        flex-direction:column;
        align-items:center;
        justify-content:center;
        gap:2px;
        color:#7b7e88;
        text-decoration:none;
        font-size:14px;
        font-weight:900;
    }

    .ae-mobile-bottom-nav span{
        display:block;
        font-size:11px;
        line-height:1;
    }

    .ae-mobile-bottom-nav a.active{
        color:var(--ae-shell-accent);
    }

    body.ae-shell-ready .card,
    body.ae-shell-ready .section,
    body.ae-shell-ready .metric,
    body.ae-shell-ready .deal-card,
    body.ae-shell-ready .summary-tile,
    body.ae-shell-ready .mobile-card,
    body.ae-shell-ready .mobile-hero-card,
    body.ae-shell-ready .mobile-metric-card,
    body.ae-shell-ready .mobile-page-intro{
        border-radius:12px !important;
        border-color:rgba(55,65,81,.86) !important;
        box-shadow:0 14px 34px rgba(0,0,0,.18) !important;
    }

    body.ae-shell-ready .card,
    body.ae-shell-ready .section,
    body.ae-shell-ready .deal-card,
    body.ae-shell-ready .mobile-card,
    body.ae-shell-ready .mobile-hero-card,
    body.ae-shell-ready .mobile-page-intro{
        padding:16px !important;
    }

    body.ae-shell-ready h1{
        margin-top:18px !important;
        margin-bottom:12px !important;
        letter-spacing:0 !important;
        line-height:1.04 !important;
    }

    body.ae-shell-ready h2,
    body.ae-shell-ready .section-title{
        margin-top:0 !important;
        margin-bottom:12px !important;
        letter-spacing:0 !important;
        line-height:1.1 !important;
    }

    body.ae-shell-ready p,
    body.ae-shell-ready .muted,
    body.ae-shell-ready .small,
    body.ae-shell-ready small{
        line-height:1.42 !important;
    }

    body.ae-shell-ready button,
    body.ae-shell-ready .button,
    body.ae-shell-ready .primary-button,
    body.ae-shell-ready .secondary-button,
    body.ae-shell-ready .mobile-primary-button,
    body.ae-shell-ready .details-button,
    body.ae-shell-ready .ae-mini-button{
        min-height:46px !important;
        border-radius:10px !important;
        align-items:center !important;
        justify-content:center !important;
        letter-spacing:0 !important;
    }

    body.ae-shell-ready .ae-mobile-menu-button,
    body.ae-shell-ready .ae-mobile-drawer-close{
        min-width:48px !important;
        min-height:48px !important;
        border-radius:50% !important;
    }

    body.ae-shell-ready input,
    body.ae-shell-ready select{
        min-height:48px !important;
        border-radius:10px !important;
    }

    body.ae-shell-ready .empty,
    body.ae-shell-ready [id*="loading"],
    body.ae-shell-ready .mobile-hero-photo,
    body.ae-shell-ready .photo-panel{
        border-radius:12px !important;
    }

    body.ae-shell-ready .empty,
    body.ae-shell-ready .mobile-hero-photo:empty{
        color:var(--ae-shell-muted) !important;
    }
}
