/* "When" filter bar (views/partials/when_bar.ejs) – chips scroll sideways on phones, 44 px touch targets */
.when-bar { display: grid; gap: 8px; margin: 12px 0; }
.wb-row { display: flex; gap: 8px; align-items: center; overflow-x: auto; scrollbar-width: none; padding: 2px; -webkit-overflow-scrolling: touch; }
.wb-row::-webkit-scrollbar { display: none; }
.wb-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: .9rem; font-weight: 500; white-space: nowrap; cursor: pointer; text-decoration: none; }
.wb-chip:hover { text-decoration: none; border-color: var(--brand); }
.wb-chip:focus-visible, .wb-clear:focus-visible, .wb-date:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.wb-chip.on { background: var(--ink); border-color: var(--ink); color: var(--card); }
.wb-chip small { opacity: .75; font-size: .78rem; }
.wb-chip[disabled] { opacity: .7; cursor: progress; }
.wb-n { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: .75rem; font-weight: 700; text-align: center; }
.wb-chip.on .wb-n { background: rgba(255,255,255,.22); color: inherit; }
.wb-date { position: relative; }
.wb-date input[type=date] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.wb-near { flex-wrap: wrap; overflow: visible; }
.wb-note { color: var(--muted); font-size: .78rem; }
.wb-clear { font-size: .85rem; min-height: 40px; display: inline-flex; align-items: center; padding: 0 6px; }
.wb-error { color: #B42318; font-size: .85rem; width: 100%; }
.wb-count { margin: 2px 2px 0; font-weight: 700; }
.wb-empty { text-align: center; padding: 24px 16px; }
.wb-empty-ico { font-size: 2rem; margin: 0; }
.wb-empty h2 { font-size: 1.15rem; margin: 6px 0; }
.wb-sugg { list-style: none; padding: 0; margin: 12px 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
@media (max-width: 560px) { .wb-chip small { display: none; } }
