/* A small map tool, with the shared drag / resize / minimize controls intact. */
body.pc-search-settings #filterDialog.search-settings-panel{
 top:var(--search-settings-top,92px)!important;
 width:min(356px,calc(100vw - 32px))!important;
 max-height:calc(100dvh - var(--search-settings-top,92px) - 16px)!important;
 padding:12px 16px 14px!important;border-radius:18px;
 overscroll-behavior:contain;scrollbar-width:thin;
}
#filterDialog.search-settings-panel>.pc-dragbar{
 display:flex!important;margin:0 -4px 6px;top:-12px;padding:0 4px;
 border-radius:10px;background:#faf7fd;border-bottom:0;
}
#filterDialog.search-settings-panel .pc-drag-handle{color:#57108e;font-size:12px}
#filterDialog.search-settings-panel .dialog-head{align-items:center;padding:0;gap:8px}
#filterDialog.search-settings-panel .dialog-head .eyebrow{display:none}
#filterDialog.search-settings-panel .dialog-head h2{font-size:21px;letter-spacing:-.5px;margin:0}
#filterDialog.search-settings-panel .dialog-head>.close{margin:0;width:36px;min-width:36px;height:36px;min-height:36px}
#filterDialog.search-settings-panel>p.muted{display:none}
#filterDialog .search-personal-settings{margin:0 0 10px}
#filterDialog .search-personal-settings h3,#filterDialog .compact-category-title{font-size:12px;color:#65556e;margin:0 0 7px;letter-spacing:0}
#filterDialog.search-settings-panel .personal-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px}
#filterDialog .personal-filter-grid button{min-height:36px;padding:7px 6px;font-size:12px;border-radius:8px}
#filterDialog .personal-filter-grid [aria-pressed=true]{background:#f0e5fa;border-color:#57108e;color:#57108e}
#filterDialog.search-settings-panel .category-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:4px;margin:0 0 6px;display:grid}
#filterDialog.search-settings-panel .category-grid button{
 display:flex;flex-direction:row;align-items:center;justify-content:flex-start;
 text-align:left;gap:8px;min-height:36px;min-width:0;padding:7px 8px;
 border-radius:8px;font-size:12px;line-height:1.3;position:relative;
}
#filterDialog .category-grid button svg{width:18px;height:18px;flex:none;margin:0}
#filterDialog .category-grid button span{margin:0;min-width:0}
#filterDialog .category-grid button.selected{box-shadow:inset 0 0 0 1px #57108e}
#filterDialog.search-settings-panel .switch-row{min-height:38px;padding:7px 0;gap:10px;font-size:12px}
#filterDialog .switch-row small{display:none}
#filterDialog .switch-row input{width:19px;height:19px;flex:none;margin:0}
#filterDialog.search-settings-panel #applyFilters{position:sticky;bottom:-14px;margin:8px 0 0;min-height:40px;padding:8px 12px;font-size:13px;box-shadow:0 -6px 0 6px #fff}
/* Larger text remains an explicit accessibility choice, even in this compact tool. */
body.pc-large-text #filterDialog.search-settings-panel .category-grid button{padding:9px 8px;min-height:48px}
body.pc-large-text #filterDialog.search-settings-panel .switch-row{font-size:17px;min-height:56px}
@media(pointer:coarse){#filterDialog.search-settings-panel .category-grid button,#filterDialog .personal-filter-grid button{min-height:44px}}
@media(max-width:760px){
 body.pc-search-settings #filterDialog.search-settings-panel{top:78px!important;right:8px!important;width:min(356px,calc(100vw - 16px))!important;max-height:calc(100dvh - 94px)!important;padding:12px 14px 14px!important}
 #filterDialog.search-settings-panel .category-grid button,#filterDialog .personal-filter-grid button{min-height:44px}
 #filterDialog.search-settings-panel .pc-drag-handle{min-height:40px}
}
@container(max-width:260px){#filterDialog.search-settings-panel .category-grid,#filterDialog.search-settings-panel .personal-filter-grid{grid-template-columns:1fr!important}}
