@media (max-width:767px) {
    html body.home-adopted.unified-page.app-shared-shell:not(.mobile-shell-embed):not(.results-dialog-active) #appViewportRegion #appContentRegion #searchSection .search-buttons:has(> .home-search-filter-row) { grid-template-columns:88px minmax(0,1.12fr) minmax(0,1fr) !important; grid-template-rows:40px !important; grid-template-areas:"filters create results" !important; }
    html body.home-adopted.unified-page.app-shared-shell:not(.mobile-shell-embed):not(.results-dialog-active) #appViewportRegion #appContentRegion #searchSection .search-buttons > .home-search-filter-row { display:grid !important; grid-area:filters; grid-template-columns:minmax(0,1fr) minmax(0,1fr) 104px; grid-template-areas:"status types license"; gap:4px; min-width:0; }
}

/* #450-157: on phones the search sheet owns status and type selection. */
.mobile-home-filter-choices { display:none; }
@media (max-width:767px) {
    #searchFilterDialog .mobile-home-filter-choices { display:grid; gap:8px; margin:8px 0; }
    #searchFilterDialog .mobile-home-filter-group h4 { display:flex; justify-content:space-between; margin:0 0 4px; font-size:14px; }
    #searchFilterDialog .mobile-home-filter-group h4 small { color:var(--color-text-secondary); font-size:12px; font-weight:500; }
    #searchFilterDialog .mobile-home-filter-group .data-type-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
    #searchFilterDialog .mobile-home-filter-group .data-type-chip { min-width:0; padding:4px 6px; }
    #searchFilterDialog .mobile-home-filter-group .data-type-chip input[type="radio"] { width:16px; height:16px; margin:0; accent-color:var(--color-primary,#3b82f6); }
    html body.home-adopted.unified-page.app-shared-shell:not(.mobile-shell-embed):not(.results-dialog-active) #appViewportRegion #appContentRegion #searchSection .search-buttons > .home-search-filter-row {
        grid-template-columns:minmax(0,1fr) !important;
        grid-template-areas:"license" !important;
    }
    html body.home-adopted.unified-page.app-shared-shell:not(.mobile-shell-embed):not(.results-dialog-active) #appViewportRegion #appContentRegion #searchSection :is(#viewFilters,#typeFilters) {
        display:none !important;
    }
    html body.home-adopted.unified-page.app-shared-shell:not(.mobile-shell-embed):not(.results-dialog-active) #appViewportRegion #appContentRegion #searchSection #licenseFilterBtn .filter-caption {
        display:flex !important; flex-direction:row !important; gap:2px !important; line-height:1.05 !important;
    }
    html body.home-adopted.unified-page.app-shared-shell:not(.mobile-shell-embed):not(.results-dialog-active) #appViewportRegion #appContentRegion #searchSection #licenseFilterBtn {
        display:flex !important; flex-direction:column !important; align-items:center !important;
        justify-content:center !important; gap:1px !important;
        height:40px !important; min-height:40px !important; padding:3px 2px !important;
    }
    html body.home-adopted.unified-page.app-shared-shell:not(.mobile-shell-embed):not(.results-dialog-active) #appViewportRegion #appContentRegion #searchSection :is(#homePrivateBidCreateAction,#infoPanelToggleBtn) {
        height:40px !important; min-height:40px !important;
    }
    html body.home-adopted.unified-page.app-shared-shell:not(.mobile-shell-embed):not(.results-dialog-active) #appViewportRegion #appContentRegion #searchSection #licenseFilterBtn .filter-active-label {
        display:block !important; font-size:10px !important; font-weight:500 !important; line-height:12px !important;
    }
    html body.home-adopted.unified-page.app-shared-shell #homeModules .home-pane-tabs :is(.home-pane-tab[data-home-value="overview"],.home-pane-tab[data-home-value="statistics"]) {
        display:none !important;
    }

}

/* #450-157: one scroll owner while the mobile results panel is open. */
@media (max-width:767px) {
    html body.home-adopted.unified-page.app-shared-shell.results-dialog-active #appMenuRegion {
        position:fixed !important;
        inset:0 0 auto !important;
        z-index:22001 !important;
        background:var(--color-surface,#fff) !important;
    }
    html body.home-adopted.unified-page.app-shared-shell.results-dialog-active #appMenuRegion > header {
        background:var(--color-surface,#fff) !important;
        filter:none !important;
        transition:none !important;
    }
    html body.home-adopted.unified-page.app-shared-shell.results-dialog-active #resultsSection.results-dialog-open {
        position:fixed !important;
        top:calc(var(--app-visual-viewport-offset-top,0px) + var(--results-menu-height,0px)) !important;
        right:0 !important;
        bottom:auto !important;
        left:0 !important;
        width:100% !important;
        height:calc(var(--app-visual-viewport-height,100dvh) - var(--results-menu-height,0px)) !important;
        max-height:none !important;
        min-height:0 !important;
        padding:0 !important;
        overflow-x:hidden !important;
        overflow-y:auto !important;
        overscroll-behavior:none !important;
        -webkit-overflow-scrolling:touch;
    }
    html body.home-adopted.unified-page.app-shared-shell.results-dialog-active #resultsSection .results-header {
        position:sticky !important;
        top:0 !important;
        z-index:2 !important;
        background:var(--color-surface,#fff) !important;
    }
    html body.home-adopted.unified-page.app-shared-shell.results-dialog-active #resultsVirtualWrapper {
        flex:none !important;
        height:auto !important;
        max-height:none !important;
        min-height:0 !important;
        overflow:visible !important;
    }
    html body.home-adopted.unified-page.app-shared-shell.results-dialog-active :is(#appAdRegion,#appBusinessRegion) {
        display:none !important;
    }
    html body.home-adopted.unified-page.app-shared-shell.results-dialog-active #searchBookmarkRow {
        display:none !important;
    }
}
