/* modules/exercises/exercisePicker.css — the reusable filtered exercise picker (routine
   builder + gym-floor swap + catalog picker). Extracted from index.css to live next to
   exercisePicker.js. */

.exercise-picker {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
/* Names the axis a chip row filters. Two unlabelled chip rows read as one wall of options, and the
   "All" chip appears in both — the label is what tells them apart at a glance. */
.picker-chips-label,
.filter-chips-label {
  align-self: center;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
/* Typing is cheaper than scrolling on a phone: the search narrows the list live, and Enter takes
   the top match, so a known movement needs no scroll and no aimed tap at all. */
.picker-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--input-bg);
}
.picker-search-wrap i {
  color: var(--text-muted);
  font-size: 12px;
}
/* The field fills its frame: it sat 16 pixels high inside it, and a tap on the frame above or below
   the text did nothing. */
.picker-search {
  flex: 1 1 auto;
  align-self: stretch;
  min-height: 44px;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 14px;
  outline: none;
}
.picker-search-wrap:focus-within {
  border-color: var(--primary);
}
.picker-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip-sm {
  padding: 4px 10px;
  font-size: 12px;
}
.picker-count {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}
.picker-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 240px;
  overflow-y: auto;
}
.picker-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--input-bg);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}
.picker-item:hover {
  border-color: var(--primary);
}
.picker-item.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}
.picker-item.just-added {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: scale(0.98);
}
.picker-item-name {
  font-size: 13px;
  font-weight: 600;
}
/* Allowed to shrink, so that a third badge wraps under the first two. With `flex-shrink: 0` the
   row never wrapped: at 390px "CONDITIONING" ran 8px past the item's border and the name beside it
   was squeezed to one word per line. */
.picker-item-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
}
.picker-empty {
  font-size: 12px;
  padding: 12px;
  text-align: center;
}

/* The two ways on under an empty typed search (also drawn by the exercise library view). */
.empty-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 12px 12px;
}
.empty-actions .empty-action {
  min-height: 44px;
  height: auto;
  white-space: normal;
  overflow-wrap: anywhere;
}
