.filters { padding: 6px 12px; }
.search-and-filter { gap: 7px; }
.searchbox input { height: 44px; }
.searchbox:before { top: 50%; transform: translateY(-50%); }
.filter-toggle {
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  font-size: 12px;
  cursor: pointer;
}
#filterCount {
  min-width: 18px;
  padding: 1px 4px;
  line-height: 16px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--paper);
  text-align: center;
}
#filterExtra {
  width: 28rem;
  max-width: calc(100% - 24px);
  max-height: calc(100% - 24px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
#filterExtra[open] { display: flex; flex-direction: column; }
#filterExtra::backdrop { background: rgba(42, 28, 31, .5); }
.filter-sheet-header, .filter-sheet-actions {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 16px;
}
.filter-sheet-header { border-bottom: 1px solid var(--line); }
.filter-sheet-header h2 { margin: 0; color: var(--navy); font: 700 21px/1.3 'Libre Baskerville', Georgia, serif; }
#filterClose, #reset, #showFilterResults {
  min-height: 44px;
  border: 0;
  font: inherit;
  color: var(--navy);
  background: transparent;
  cursor: pointer;
}
#filterClose { width: 44px; font-size: 26px; }
.filter-sheet-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px; }
.filter-sheet-body .controls-grid { grid-template-columns: 1fr; gap: 8px; margin: 0; }
.filter-field {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 12px;
  font-weight: 700;
}
.filter-field select { width: 100%; height: 44px; padding: 0 6px; font-size: 13px; font-weight: 400; }
.filter-sheet-body .filter-label { margin: 18px 0 8px; }
.filter-sheet-body .chips { gap: 6px; }
.filter-sheet-body .chip { min-height: 38px; padding: 6px 10px; font-size: 12px; }
.filter-sheet-body .switchline { min-height: 44px; font-size: 13px; }
.filter-sheet-actions { border-top: 1px solid var(--line); }
#reset { padding: 0 4px; text-decoration: underline; font-size: 13px; }
#showFilterResults { padding: 0 16px; border-radius: 8px; background: var(--navy); color: var(--paper); font-weight: 700; }
@media (max-width: 800px) {
  #filterExtra { width: 100%; max-width: 100%; margin: auto auto 0; border-radius: 16px 16px 0 0; }
}
