/* tag-list.css — tag_list chip input (.cem-tag-*), split from edit-modal.css
   2026-09-26 to stay under the 300-line cap. */

/* tag_list chips (spec 2026-09-25-episodes-view-design.md §1.5) */
.cem-field .cem-tag-list {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
  padding: 4px 6px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--bg-subtle, var(--bg-surface));
}
.cem-field .cem-tag-list:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(10, 110, 92, 0.15);
}
.cem-tag-chips { display: contents; }
.cem-tag-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 999px;
  font-size: 12px; line-height: 18px;
  background: var(--primary-light); color: var(--primary);
}
.cem-tag-x {
  border: none; background: none; padding: 0; margin: 0;
  color: inherit; cursor: pointer; font-size: 14px; line-height: 1;
}
/* the entry input must NOT take the .cem-field input { width: 100% } rule */
.cem-field .cem-tag-list .cem-tag-entry {
  flex: 1 1 120px; min-width: 120px; width: auto;
  border: none; background: transparent; padding: 4px 2px; box-shadow: none;
}
.cem-field .cem-tag-list .cem-tag-entry:focus { outline: none; box-shadow: none; }
