/* Common counter filter for history, statistics and analysis. */
.bgp-profile .bgp-counter-filter {
  display:flex; align-items:center; flex-wrap:wrap; gap:6px 10px;
  margin:0 0 12px; padding:8px 10px; min-width:0; background:rgba(0,0,0,.3);
  border:1px solid var(--bgp-line); border-radius:6px; font-size:11px;
}
.bgp-profile .bgp-counter-filter[hidden] { display:none; }
.bgp-profile .bgp-counter-filter.active { border-color:var(--bgp-cyan); box-shadow:0 0 0 1px rgba(45,226,255,.2); }
.bgp-counter-filter label,.bgp-counter-filter .date-range { display:flex; align-items:center; gap:4px; color:var(--bgp-muted); white-space:nowrap; min-width:0; }
.bgp-profile .bgp-counter-filter :is(select,input,button) {
  box-sizing:border-box; min-width:0; min-height:0; width:auto; margin:0; padding:4px 6px;
  border:1px solid var(--bgp-line); border-radius:3px; color:var(--bgp-ink);
  background:var(--bgp-card2); font-family:inherit; font-size:11px; line-height:1.4;
}
.bgp-counter-filter .presets { display:flex; gap:3px; flex-wrap:wrap; }
.bgp-profile .bgp-counter-filter .presets button { padding:3px 8px; color:var(--bgp-muted); font-size:10px; cursor:pointer; }
.bgp-profile .bgp-counter-filter .presets button:hover { color:var(--bgp-ink); border-color:var(--bgp-pink); }
.bgp-profile .bgp-counter-filter .presets [aria-pressed=true] { background:var(--bgp-cyan); color:#0f1220; border-color:var(--bgp-cyan); font-weight:700; }
.bgp-profile .bgp-counter-filter select { max-width:140px; }
.bgp-profile .bgp-counter-filter [data-history-filter=season] { max-width:220px; }
.bgp-profile .bgp-counter-filter input[type=date] { width:128px; padding:3px 4px; color-scheme:dark; }
.bgp-profile .bgp-counter-filter [data-history-filter=keyword] { width:130px; }
.bgp-profile .bgp-counter-filter .same-day-btn { width:24px; height:24px; padding:0; font:700 13px monospace; color:var(--bgp-yellow); cursor:pointer; }
.bgp-profile .bgp-counter-filter .reset-btn { padding:4px 10px; background:transparent; border-color:var(--bgp-muted); color:var(--bgp-muted); font-size:10px; cursor:pointer; }
.bgp-profile .bgp-counter-filter .reset-btn:hover { color:var(--bgp-red); border-color:var(--bgp-red); }
.bgp-profile .bgp-counter-filter .count { margin-inline-start:auto; color:var(--bgp-cyan); font:12px/1.5 monospace; }
@container (max-width:600px) {
  .bgp-profile .bgp-counter-filter select { max-width:100px; font-size:10px; }
  .bgp-profile .bgp-counter-filter .count { width:100%; text-align:right; }
  .bgp-counter-filter .date-range { max-width:100%; }
  .bgp-profile .bgp-counter-filter input[type=date] { max-width:100%; }
}
