/* catalog.css — filter/nav bar + series list rows + progress + groups.
   Issue grid, LEGO cards, modal and toast live in catalog-detail.css.
   Reuses the admin-base palette (#2945d6 accent, #d9dce6 borders). */

.cat-main { display: flex; flex-direction: column; gap: 14px; }

/* ---- filter / nav bar ---- */
/* Sticky directly below the .admin-top brand header. --admin-top-h is kept
   in sync with the header's rendered height by catalog-sticky.js so the tabs
   pin flush under it on any width (the header wraps on narrow viewports). */
.cat-bar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: #fff; border: 1px solid #d9dce6; border-radius: 10px;
  padding: 10px 14px; box-shadow: 0 1px 12px rgba(15, 17, 23, .04);
  position: sticky; top: calc(var(--admin-top-h, 64px) + 8px); z-index: 15;
}
.cat-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.cat-tab {
  padding: 6px 12px; background: transparent; border: 1px solid transparent;
  border-radius: 7px; color: #5a6172; font-size: 13px; font-weight: 600;
}
.cat-tab:hover { background: #eef0f7; color: #1a1d26; }
.cat-tab.active { background: #2945d6; color: #fff; }
.cat-controls { display: flex; gap: 8px; align-items: center; margin-left: auto; flex-wrap: wrap; }
.cat-search { min-width: 180px; }
.cat-status-filter { max-width: 150px; }

@media (max-width: 560px) {
  .cat-controls { margin-left: 0; width: 100%; }
  .cat-search { flex: 1; min-width: 0; }
}

/* ---- groups ---- */
.cat-group { background: #fff; border: 1px solid #d9dce6; border-radius: 10px; overflow: hidden;
  box-shadow: 0 1px 12px rgba(15, 17, 23, .04); }
.cat-group + .cat-group { margin-top: 14px; }
.cat-group-head {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; background: #f5f6fa; border-bottom: 1px solid #e6e8f0;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #3a4154;
  cursor: pointer; list-style: none; user-select: none;
}
.cat-group-head::-webkit-details-marker { display: none; }
.cat-group:not([open]) .cat-group-head { border-bottom: none; }
.cat-group-head:hover { background: #eef0f7; }
.cat-group-chevron {
  display: inline-flex; align-items: center; justify-content: center;
  width: 13px; height: 13px; color: #8a93a6; flex-shrink: 0; transition: transform .15s;
  transform: rotate(90deg); /* open: Phosphor caret-right rotated to point down */
}
.cat-group-chevron .ph { font-size: 13px; line-height: 1; display: block; }
.cat-group:not([open]) .cat-group-chevron { transform: rotate(0deg); /* closed: points right */ }
.cat-pub-logo { height: 22px; width: auto; max-width: 110px; object-fit: contain; border-radius: 3px; flex-shrink: 0; }
.cat-group-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-group-count {
  background: #e6e8f0; color: #5a6172; border-radius: 9px; flex-shrink: 0;
  font-size: 11px; font-weight: 700; padding: 1px 8px; letter-spacing: 0;
}
.cat-group-rollup {
  flex-shrink: 0; margin-left: auto; margin-right: 10px;
  font-size: 11px; font-weight: 600; color: #5a6172;
  text-transform: none; letter-spacing: 0; white-space: nowrap;
}
@media (max-width: 560px) { .cat-group-rollup { display: none; } }
.cat-group-refresh {
  flex-shrink: 0; margin-left: 4px; background: transparent; border: 1px solid transparent;
  border-radius: 6px; color: #8a93a6; padding: 3px 6px; line-height: 1; cursor: pointer;
}
.cat-group-refresh .ph { font-size: 14px; display: block; }
.cat-group-refresh:hover { color: #2945d6; background: #eef0f7; }
.cat-group-refresh.is-busy { color: #2945d6; cursor: default; }
.cat-group-refresh.is-busy .ph { animation: cat-spin 1s linear infinite; }
@keyframes cat-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cat-group-refresh.is-busy .ph { animation: none; } }
@media (prefers-reduced-motion: reduce) { .cat-group-chevron { transition: none; } }
/* Nested subtheme groups inside a LEGO theme. */
.cat-subgroup { border-top: 1px solid #eef0f5; }
.cat-subgroup-head {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 30px; background: #fff; cursor: pointer;
  list-style: none; user-select: none;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #5a6172;
}
.cat-subgroup-head::-webkit-details-marker { display: none; }
.cat-subgroup-head:hover { background: #f9fafc; }
.cat-subgroup-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-subgroup:not([open]) .cat-group-chevron { transform: rotate(0deg); }
.cat-subgroup .cat-lego-grid { padding-top: 2px; }
/* Responsive card grid — 2–3 per row on desktop, sized to content (not
   stretched), each card wide enough to hold the 10-wide issue grid. */
.cat-series-list {
  display: grid; align-items: start;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px; padding: 14px;
}
@media (max-width: 460px) { .cat-series-list { grid-template-columns: 1fr; } }

/* ---- series card: poster left + info right on top, issue matrix below ---- */
.cat-card {
  position: relative; display: flex; flex-direction: column; align-items: stretch;
  gap: 10px; padding: 14px; min-width: 0;
  background: #fff; border: 1px solid #e3e6ef; border-radius: 10px;
  box-shadow: 0 1px 6px rgba(15, 17, 23, .05);
}
.cat-card-actions { position: absolute; top: 8px; right: 8px; z-index: 2; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.cat-card-edit, .cat-card-src { background: #fff; }
/* Higher specificity than .cat-row-edit so these actually win the size. */
.cat-card-actions .cat-row-edit { font-size: 16px; padding: 5px 7px; line-height: 1; }
.cat-card-actions .cat-row-edit .ph { font-size: 16px; }
.cat-card-src { display: inline-flex; align-items: center; text-decoration: none; }

/* Edit-modal cover gallery (saved covers, each deletable). */
.cat-cover-gallery { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-cover-thumb { position: relative; }
.cat-cover-thumb img { width: 60px; height: 82px; object-fit: cover; border: 1px solid #d9dce6; border-radius: 5px; display: block; background: #f5f6fa; }
.cat-cover-del {
  position: absolute; top: -7px; right: -7px; width: 19px; height: 19px; padding: 0;
  border-radius: 50%; border: 1px solid #e0867d; background: #fff; color: #c0392b;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 1px 3px rgba(15, 17, 23, .25);
}
.cat-cover-del .ph { font-size: 11px; }
.cat-cover-del:hover { background: #fdecea; }
.cat-card-top { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.cat-card-poster { flex-shrink: 0; }
.cat-card-poster .cat-cover { width: 120px; height: 162px; }
.cat-card-poster .cat-cover-ph { width: 120px; height: 162px; font-size: 40px; border-radius: 6px; }
.cat-card-poster .cat-cover-wrap { width: 120px; height: 162px; }
.cat-card-info { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding-right: 42px; }
.cat-card .cat-row-title { font-size: 16px; text-align: left; white-space: normal; }
.cat-card .cat-row-byline { text-align: left; white-space: normal; }
.cat-card .cat-meta-line { text-align: left; }
.cat-card .cat-meta-dates { color: #8a93a6; font-size: 11px; }
.cat-card .cat-tag-row { justify-content: flex-start; }
/* Tighten the gap between the full-width Latest pill row and the genre tags
   (offsets the card's 10px flex gap + the tag-row's default top margin). */
.cat-card .cat-meta-pills + .cat-tag-row { margin-top: -7px; }
.cat-card-status { display: flex; align-items: center; justify-content: flex-start; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.cat-card .cat-mini-grid { margin-top: 0; }

.cat-chevron {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; color: #8a93a6; flex-shrink: 0;
  transform: rotate(0deg); transition: transform .15s, color .15s; /* closed: caret-right points right */
}
.cat-chevron .ph { font-size: 14px; line-height: 1; display: block; }
.cat-row[open] .cat-chevron { transform: rotate(90deg); /* open: points down */ }
.cat-summary:hover .cat-chevron { color: #3a4154; }
@media (prefers-reduced-motion: reduce) { .cat-chevron { transition: none; } }

/* Inline color-coded issue grid (spreadsheet-style): green = owned,
   faded = missing. Wraps under the series title. */
/* 10 columns per row, every cell the same width → a clean matrix. */
.cat-mini-grid {
  display: grid; grid-template-columns: repeat(10, 1fr);
  gap: 4px; margin-top: 8px; width: 100%;
}
.cat-mini {
  position: relative; height: 26px; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; line-height: 1; border-radius: 4px;
  border: 1px solid; font-variant-numeric: tabular-nums;
}
.cat-mini.is-owned { background: #bfe6b4; border-color: #7cc06a; color: #14532b; }
.cat-mini.is-missing { background: #f6c3bf; border-color: #e0867d; color: #7a1e16; }
.cat-mini.is-pad { background: transparent; border-color: transparent; }

/* Interactive cells: click to toggle owned (recorded) or add (gap). */
.cat-mini.is-owned, .cat-mini.is-missing { cursor: pointer; }
.cat-mini.is-owned:hover, .cat-mini.is-missing:hover {
  outline: 2px solid rgba(41, 69, 214, .45); outline-offset: -1px;
}
.cat-mini.is-busy { opacity: .45; pointer-events: none; }

/* Per-issue edit pencil — revealed on cell hover, top-right corner. */
.cat-mini-edit {
  position: absolute; top: -6px; right: -6px;
  width: 16px; height: 16px; padding: 0; border-radius: 50%;
  border: 1px solid #c9cee0; background: #fff; color: #5a6172;
  display: none; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 1px 3px rgba(15, 17, 23, .22); z-index: 2;
}
.cat-mini-edit .ph { font-size: 10px; }
.cat-mini:hover > .cat-mini-edit { display: inline-flex; }
.cat-mini-edit:hover { color: #2945d6; border-color: #2945d6; }

/* Trailing "add issue" cell. */
.cat-mini.cat-mini-add {
  background: #fff; border: 1px dashed #c2c8da; color: #8a93a6; cursor: pointer;
}
.cat-mini.cat-mini-add:hover { border-color: #2945d6; color: #2945d6; background: #f5f7ff; }
.cat-mini.cat-mini-add .ph { font-size: 13px; }

.cat-cover {
  width: 68px; height: 92px; border-radius: 5px; object-fit: cover;
  border: 1px solid #d9dce6; background: #f5f6fa; flex-shrink: 0; display: block;
}
.cat-cover-ph {
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: #aeb4c6; font-family: 'Alkatra', cursive;
}

/* ---- Phase 12: lazy comic covers ---- */
/* Wrapper holds a default Phosphor book glyph behind the <img>. The img is
   transparent until a real cover loads, so a pending / failed cover shows
   the book glyph — never a broken-image icon or a bare letter. */
.cat-cover-wrap {
  position: relative; display: block; flex-shrink: 0;
  width: 136px; height: 184px; border-radius: 6px; overflow: hidden;
  border: 1px solid #d9dce6; background: #f5f6fa;
}
.cat-cover-glyph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 64px; line-height: 1; color: #aeb4c6; opacity: .55;
  filter: grayscale(1); /* mute the 📚 emoji to a greyed placeholder */
}
.cat-cover-wrap .cat-cover {
  position: relative; z-index: 1;
  width: 100%; height: 100%; border: none; border-radius: 0;
  background: transparent;
}
/* Pending / errored: hide the img so the ::before letter shows through. */
.cat-cover.is-pending { opacity: 0; }
.cat-cover.is-loaded {
  opacity: 1; background: #fff;
  animation: cat-cover-fade .2s ease-in;
}
@keyframes cat-cover-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .cat-cover.is-loaded { animation: none; }
}

.cat-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cat-row-title { font-size: 18px; font-weight: 600; color: #1a1d26;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-row-byline { font-size: 12px; color: #8a93a6;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Resolved metadata (manga): author · demographic · year · status + genres. */
.cat-meta-line { display: block; font-size: 12px; color: #5a6172; margin-top: 2px; }
.cat-tag-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.cat-tag {
  font-size: 11px; font-weight: 600; color: #3a4154;
  background: #eef0f7; border: 1px solid #e0e3ee; border-radius: 9px;
  padding: 1px 8px; line-height: 1.5; white-space: nowrap;
}

.cat-row-meta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* collect-status chip */
.chip-status {
  font-size: 10px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 9px; border: 1px solid; line-height: 1.3; white-space: nowrap;
}
.chip-status-subscribed { color: #1d6f3f; border-color: #bfe3cd; background: #ecf7f0; }
.chip-status-ended      { color: #7a4d00; border-color: #f4c87a; background: #fff4e0; }
.chip-status-unknown    { color: #5a6172; border-color: #dde1ea; background: #f3f4f8; }

/* Clickable subscription toggle (collection status), replacing the static
   chip on cards. Subscribed = green, Not subscribed = neutral grey. */
.cat-sub-toggle {
  font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 9px; border: 1px solid; line-height: 1.3;
  white-space: nowrap; cursor: pointer;
}
.cat-sub-toggle.is-sub   { color: #1d6f3f; border-color: #bfe3cd; background: #ecf7f0; }
.cat-sub-toggle.is-unsub { color: #5a6172; border-color: #dde1ea; background: #f3f4f8; }
.cat-sub-toggle:hover { filter: brightness(0.97); }
.cat-sub-toggle[disabled] { opacity: .5; cursor: default; }

/* Year / publication-status pills on the card (publication status is the
   source's state — ongoing/completed — separate from the collect chip). */
.cat-meta-pills { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.cat-meta-pill {
  font-size: 12px; font-weight: 600; color: #5a6172;
  background: #f3f4f8; border: 1px solid #dde1ea; border-radius: 9px;
  padding: 1px 8px; line-height: 1.5; max-width: 100%; overflow-wrap: anywhere;
}
.cat-pub-status.is-ongoing   { color: #1d6f3f; border-color: #bfe3cd; background: #ecf7f0; }
.cat-pub-status.is-completed { color: #1d3fa8; border-color: #bccfee; background: #eef3fc; }
.cat-pub-status.is-hiatus    { color: #7a4d00; border-color: #f4c87a; background: #fff4e0; }
.cat-pub-status.is-cancelled { color: #7a1e16; border-color: #e6b3ad; background: #fbeae8; }

/* progress */
.cat-progress { display: flex; align-items: center; gap: 7px; }
.cat-progress-bar {
  width: 84px; height: 7px; border-radius: 4px; background: #e6e8f0; overflow: hidden;
}
.cat-progress-bar > span { display: block; height: 100%; background: #2945d6; border-radius: 4px; transition: width .2s; }
.cat-progress-bar.is-complete > span { background: #1d6f3f; }
.cat-progress-text { font-size: 11px; font-weight: 600; color: #5a6172; min-width: 40px; text-align: right;
  font-variant-numeric: tabular-nums; }

.cat-row-edit {
  background: transparent; border: 1px solid #d9dce6; border-radius: 6px;
  color: #8a93a6; font-size: 12px; padding: 3px 7px; line-height: 1;
}
.cat-row-edit:hover { border-color: #2945d6; color: #2945d6; }

.cat-row-detail { padding: 0 14px 4px 38px; }

@media (max-width: 640px) {
  .cat-progress-bar { width: 54px; }
  .cat-row-byline { display: none; }
  .cat-row-detail { padding-left: 14px; }
}

/* Collapsible multi-select filter bar, styled to mirror Reader: each row has
   an AND marker (rows AND-combine; OR within a row) + its pills; the collapse
   toggle, match count and Clear all sit in a footer below the rows. */
.cat-filters { display: flex; flex-direction: column; gap: 8px; flex-basis: 100%; width: 100%; }
.cat-filters:empty { display: none; }

.cat-filter-rows { display: flex; flex-direction: column; gap: 6px; }
.cat-filters[data-expanded="0"] .cat-filter-rows { display: none; }

.cat-filter-group { display: flex; align-items: flex-start; gap: 8px; }
.cat-filter-and {
  flex-shrink: 0; font-size: 10px; font-weight: 700; letter-spacing: .04em;
  color: #4a5568; background: #eef1f7; border: 1px solid #dfe3ec;
  border-radius: 7px; padding: 4px 9px; line-height: 1.4;
}

/* Genre AND/OR mode toggle (only the multi-valued genre row has one). */
.cat-filter-mode { display: inline-flex; flex-shrink: 0; border: 1px solid #dfe3ec; border-radius: 7px; overflow: hidden; }
.cat-filter-mode-btn {
  font-size: 10px; font-weight: 700; letter-spacing: .04em; color: #8a93a6;
  background: #fff; border: none; cursor: pointer; padding: 4px 8px; line-height: 1.4;
}
.cat-filter-mode-btn + .cat-filter-mode-btn { border-left: 1px solid #dfe3ec; }
.cat-filter-mode-btn:hover { color: #2945d6; }
.cat-filter-mode-btn.is-on { background: #2945d6; color: #fff; }

/* Refresh buttons — per-series (card action) + filtered-results (filter bar). */
.cat-card-refresh.is-busy { color: #2945d6; cursor: default; }
.cat-card-refresh.is-busy .ph { animation: cat-spin 1s linear infinite; }
.cat-filter-refresh {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; color: #5a6172;
  background: #fff; border: 1px solid #d9dce6; border-radius: 7px;
  padding: 3px 9px; cursor: pointer; line-height: 1.4;
}
.cat-filter-refresh .ph { font-size: 13px; }
.cat-filter-refresh:hover { border-color: #2945d6; color: #2945d6; }
.cat-filter-refresh.is-busy { color: #2945d6; cursor: default; }
.cat-filter-refresh.is-busy .ph { animation: cat-spin 1s linear infinite; }
/* Live done/total counter shown inside a refresh button while it works. */
.cat-refresh-count { margin-left: 4px; font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; }
/* LEGO top toolbar — global "Refresh metadata" button (per-theme refresh stays
   on each theme header). */
.cat-lego-toolbar { display: flex; justify-content: flex-end; }
.cat-lego-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap; margin: 6px 0 14px;
}
.cat-lego-summary { display: flex; flex-wrap: wrap; gap: 10px; flex: 1; min-width: 0; }
/* Each stat is its own little card. */
.cat-lego-stat {
  flex: 1 1 auto; min-width: 108px;
  display: flex; flex-direction: column; gap: 3px;
  background: #fff; border: 1px solid #e3e6ef; border-radius: 10px;
  padding: 11px 15px; box-shadow: 0 1px 6px rgba(15, 17, 23, .05);
}
.cat-lego-stat-val { font-size: 19px; font-weight: 700; color: #0f1117; font-variant-numeric: tabular-nums; line-height: 1.1; }
.cat-lego-stat-lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #8a93a6; }
/* Accent cards: green for money (Invested / MSRP), amber for Retired. */
.cat-lego-stat.is-money { background: #ecf7f0; border-color: #bfe3cd; }
.cat-lego-stat.is-money .cat-lego-stat-val { color: #1d6f3f; }
.cat-lego-stat.is-money .cat-lego-stat-lbl { color: #4e8e69; }
.cat-lego-stat.is-retired { background: #fff4e0; border-color: #f4c87a; }
.cat-lego-stat.is-retired .cat-lego-stat-val { color: #7a4d00; }
.cat-lego-stat.is-retired .cat-lego-stat-lbl { color: #9c7430; }
.cat-lego-refresh-all {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: #5a6172;
  background: #fff; border: 1px solid #d9dce6; border-radius: 7px;
  padding: 5px 12px; cursor: pointer; line-height: 1.4;
}
.cat-lego-refresh-all .ph { font-size: 14px; }
.cat-lego-refresh-all:hover { border-color: #2945d6; color: #2945d6; }
.cat-lego-refresh-all.is-busy { color: #2945d6; cursor: default; }
.cat-lego-refresh-all.is-busy .ph { animation: cat-spin 1s linear infinite; }
@media (prefers-reduced-motion: reduce) { .cat-lego-refresh-all.is-busy .ph { animation: none; } }
@media (prefers-reduced-motion: reduce) {
  .cat-card-refresh.is-busy .ph, .cat-filter-refresh.is-busy .ph { animation: none; }
}
.cat-filter-pills { display: flex; flex-wrap: wrap; gap: 5px; flex: 1; min-width: 0; }
.cat-filter-pill {
  font-size: 12px; font-weight: 500; color: #3a4154;
  background: #f3f4f8; border: 1px solid #dde1ea; border-radius: 999px;
  padding: 3px 11px; cursor: pointer; line-height: 1.4;
}
.cat-filter-pill:hover { border-color: #2945d6; color: #2945d6; }
.cat-filter-pill.is-on { background: #2945d6; border-color: #2945d6; color: #fff; }
.cat-filter-rowclear {
  flex-shrink: 0; display: inline-flex; align-items: center; font-size: 10px; color: #8a93a6;
  background: transparent; border: none; cursor: pointer; padding: 4px; line-height: 1;
}
.cat-filter-rowclear .ph { font-size: 12px; }
.cat-filter-rowclear:hover { color: #c0392b; }

/* Footer: collapse toggle + count + summary + Clear all. */
.cat-filter-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.cat-filter-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: #3a4154;
  background: transparent; border: none; cursor: pointer; padding: 0;
}
.cat-filter-toggle:hover { color: #2945d6; }
.cat-filter-caret { display: inline-flex; transition: transform .15s; }
.cat-filter-caret .ph { font-size: 13px; display: block; }
.cat-filters[data-expanded="1"] .cat-filter-caret { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .cat-filter-caret { transition: none; } }
.cat-filter-badge { background: #2945d6; color: #fff; border-radius: 9px; font-size: 10px; font-weight: 700; padding: 0 6px; }
.cat-filter-count { font-size: 11px; color: #8a93a6; }
.cat-filter-clearall {
  font-size: 12px; font-weight: 600; color: #2945d6; background: transparent; border: none;
  cursor: pointer; text-decoration: underline; text-underline-offset: 2px; padding: 0;
}
.cat-filter-summary { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.cat-filter-sum-pill { font-size: 11px; font-weight: 500; color: #3a4154; background: #eef0f7; border: 1px solid #e0e3ee; border-radius: 999px; padding: 2px 10px; }
.cat-filter-sum-none { font-size: 11px; color: #8a93a6; font-style: italic; }
.cat-filters[data-expanded="1"] .cat-filter-summary { display: none; }
