/* A tactile, live view into the available calls, inside the existing sidebar. */
.filter-sidebar .sidebar-heading {margin-bottom:12px}
.filter-sidebar .sidebar-heading h2 {margin-right:auto}
.filter-sidebar .sidebar-heading .icon-button {flex:none}
.filter-readout {margin:0 0 16px;padding:0 0 12px;border-bottom:1px solid var(--line-soft)}
.filter-readout-main {display:flex;align-items:baseline;gap:9px;color:var(--fg)}
.filter-readout-number {display:inline-block;font:30px/1 var(--serif);font-variant-numeric:tabular-nums;letter-spacing:-1px}
.filter-readout-label {font:14px/1.4 var(--sans)}
.filter-readout-context {color:var(--muted);font:12px/1.5 var(--sans);margin-top:6px}
.filter-match-map {display:flex;gap:3px;height:7px;margin-top:9px;overflow:hidden}
.filter-match-map i {flex:1;min-width:1px;max-width:18px;border-radius:2px;background:#2c3731;transition:background 180ms ease,opacity 180ms ease}
.filter-match-map i.is-match {background:var(--gain)}
.filter-readout.is-empty .filter-readout-number {color:var(--text-secondary)}
.filter-sidebar .sidebar-result-count {position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;margin:0}
.filter-sidebar .sidebar-pill {position:relative;min-height:34px;padding:6px 10px;font-size:13px;border-radius:7px;gap:7px;transition:background 160ms,border-color 160ms,color 160ms,box-shadow 160ms;isolation:isolate}
.filter-sidebar .sidebar-pill::before {content:'';flex:none;display:block;width:10px;height:9px;opacity:0;clip-path:polygon(0 45%,18% 28%,42% 56%,83% 0,100% 15%,44% 100%);background:currentColor;transition:opacity 140ms}
.filter-sidebar .sidebar-pill[aria-pressed=true] {background:#85c9a524;border-color:#85c9a594;color:#a2dfbf;box-shadow:inset 0 1px #c0f6d91a}
.filter-sidebar .sidebar-pill[aria-pressed=true]::before {width:10px;opacity:1}
.filter-sidebar .sidebar-pill:not(:disabled):hover {background:#85c9a517;border-color:#85c9a594;color:var(--fg)}
.filter-sidebar .sidebar-pill:not(:disabled):active,.filter-sidebar .segments button:not(:disabled):active {transform:scale(.97)}
.filter-sidebar .sidebar-pill:disabled {opacity:.58}
.filter-sidebar .sidebar-pill-options {gap:6px}
.filter-sidebar .segments {gap:5px}
.filter-sidebar .segments button {min-height:36px;border-radius:7px;transition:background 160ms,border-color 160ms,color 160ms}
.filter-sidebar .segments button.active {background:#85c9a524;border-color:#85c9a594;color:#a2dfbf;box-shadow:inset 0 1px #c0f6d91a}
.filter-sidebar .filter-count {font-size:11px;opacity:.8}
.filter-sidebar .filter-fields {gap:20px}
.filter-sidebar .range-value {font-size:13px;min-height:20px}
.range-distribution {height:38px;display:flex;align-items:flex-end;gap:3px;margin:5px 9px -8px;pointer-events:none}
.range-distribution i {position:relative;flex:1;min-width:0;background:#34463a;border-radius:2px 2px 0 0;overflow:hidden;transition:height 180ms ease}
.range-distribution i b {display:block;position:absolute;bottom:0;left:0;right:0;background:var(--gain);opacity:.78;transition:height 140ms ease,opacity 140ms ease}
.range-distribution-note {color:var(--muted);font:12px/1.4 var(--sans);margin:2px 0 0}
.filter-sidebar .range-track {height:36px}
.filter-sidebar .range-track::before {top:16px;height:3px}
.filter-sidebar .range-track input {height:36px;touch-action:pan-y}
.filter-sidebar .range-track input::-webkit-slider-thumb {width:21px;height:21px;margin-top:-8.5px;border-width:4px;background:#bde8d0;box-shadow:0 0 0 1px #8dcead;transition:box-shadow 140ms,background 140ms}
.filter-sidebar .range-track input::-moz-range-thumb {width:15px;height:15px;border-width:4px;background:#bde8d0;box-shadow:0 0 0 1px #8dcead}
.filter-sidebar .range-track input:hover::-webkit-slider-thumb,.filter-sidebar .range-track input:focus-visible::-webkit-slider-thumb {box-shadow:0 0 0 5px #85c9a530;background:#e3ffef}
.filter-sidebar .range-track input:hover::-moz-range-thumb,.filter-sidebar .range-track input:focus-visible::-moz-range-thumb {box-shadow:0 0 0 5px #85c9a530;background:#e3ffef}
.filter-sidebar .range-track input:active::-webkit-slider-thumb {cursor:grabbing;box-shadow:0 0 0 7px #85c9a530}
.filter-sidebar .range-track input:focus-visible {z-index:2}
.filter-sidebar .range-ticks {margin-top:-4px}
.filter-sidebar .custom-range-field>button {font-size:12px;min-height:32px}
.filter-sidebar [data-custom-range]>div:not([hidden]) {padding:12px 10px 10px;border:1px solid #85c9a538;border-radius:8px;background:#85c9a506;animation:range-reveal 190ms ease-out}
.filter-sidebar [data-custom-range]>div[hidden] {display:none}
.filter-sidebar .filter-measurement-hint {font-size:12px;line-height:1.5}
.filter-sidebar .range-reset {min-height:32px}
.sidebar-recovery:empty {display:none}
.sidebar-recovery {text-align:left;display:grid;gap:8px;font-size:13px}
.sidebar-recovery p {margin:0;color:var(--text-secondary);font-size:13px;line-height:1.45}
.sidebar-recovery button {display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;border:1px solid #85c9a560;border-radius:6px;background:#85c9a510;min-height:40px;color:var(--gain);text-align:left}
.sidebar-recovery button span {font:12px var(--mono);white-space:nowrap}
.sidebar-results .pill-button {transition:background 160ms,border-color 160ms;overflow:hidden}
.filter-sidebar .reset-filters:hover svg {transform:rotate(-35deg)}
.filter-sidebar .reset-filters svg {transition:transform 220ms cubic-bezier(.2,.8,.2,1)}
#grid-wrap {overflow-anchor:none}
@keyframes range-reveal {from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:none}}
@media (max-width:700px),(pointer:coarse) {
 .filter-sidebar .sidebar-pill,.filter-sidebar .segments button {min-height:44px}
 .filter-sidebar .sidebar-pill-options {gap:7px}
 .filter-sidebar .range-track,.filter-sidebar .range-track input {height:44px}
 .filter-sidebar .range-track::before {top:20px}
 .filter-sidebar .range-track input::-webkit-slider-thumb {width:27px;height:27px;margin-top:-11.5px;border-width:6px}
 .filter-sidebar .range-track input::-moz-range-thumb {width:17px;height:17px;border-width:6px}
 .filter-sidebar .custom-range-field>button,.filter-sidebar .range-reset,.sidebar-recovery button {min-height:44px}
 .filter-sidebar .sidebar-heading .icon-button {width:40px;height:44px}
 .filter-readout-number {font-size:32px}
}
@media(prefers-reduced-motion:reduce) {
 .filter-sidebar *, .filter-sidebar *::before {animation:none!important;transition:none!important}
 .filter-sidebar .sidebar-pill:not(:disabled):active,.filter-sidebar .segments button:not(:disabled):active,.filter-sidebar .reset-filters:hover svg {transform:none}
}
