/* Catalog Intelligence (Figma MqxpTVwkhcoRRx0k0zDBB4, page "Catalog Intelligence": frames 92:1543 Products,
   173:275 Collections, 190:242 collection products; drawers 188:792, 184:647, 173:672). The section uses the
   Figma shell from figma-overview.css (body[data-figma-shell]). Tokens: the --ov-* set plus the ones below.
   The design has no tablet or phone frame: below 1100px the cards go two-up, the table scrolls sideways
   inside its card and the drawers take the full width. */
:root {
  --ci-ink: #111;
  --ci-body: #374151;
  --ci-muted: #6b7280;
  --ci-line: #e5e5e5;
  --ci-line-soft: #f0f0f0;
  --ci-line-input: #d9d9d6;
  --ci-surface: #f6f6f5;
  --ci-chip: #f0f0ed;
  --ci-green: #00945b;
  --ci-green-soft: #eaf6ef;
  --ci-green-ink: #00785b;
  --ci-orange: #ba5800;
  --ci-red: #e00000;
  --ci-unsure: #b43d0c;
  --ci-unsure-bg: #fff7f1;
  --ci-unsure-line: #ffc9ac;
  --ci-ai: #4934d6;
  --ci-ai-soft: #eeedff;
  --ci-ai-ink: #3830c4;
  --ci-drawer-ink: #1a1a1a;
}

.ci { width: 100%; max-width: 1392px; color: var(--ci-ink); font-family: var(--ov-font); }
.ci * { box-sizing: border-box; }
.ci button { font-family: inherit; }
.ci-muted { color: var(--ci-muted); }
.ci-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
/* Containing blocks for the hidden labels above (a table cell is none), so they never widen the page. */
.ci-search, .ci-add-tag label, .ci-table-scroll { position: relative; }

/* Tabs under the shared top bar (page header 172:263: "Product" active with a 2px underline). */
.ci-tabs { display: flex; gap: 0; margin: -17px -24px 21px; padding: 0 24px; border-bottom: 1px solid #efefef; background: #fff; }
.ci-tab { position: relative; height: 40px; padding: 0 23px; border: 0; background: none; color: var(--ci-muted); font: 400 13px/normal var(--ov-font); cursor: pointer; }
.ci-tab.is-active { color: var(--ci-ink); font-weight: 600; }
.ci-tab.is-active:after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: var(--ci-ink); }
.ci-tab:hover, .ci-tab:focus-visible { color: var(--ci-ink); }
.ci-rules-note { margin: 0 0 14px; color: var(--ci-muted); font: 400 12px/1.4 var(--ov-font); }

/* Summary cards (92:1571 …): four across, 88px tall, 9px uppercase label, 30px value, 9px note. */
.ci-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 22px; }
.ci-metric { position: relative; display: flex; flex-direction: column; min-height: 88px; margin: 0; padding: 12px 20px 10px; border: .5px solid var(--ci-line); border-radius: 9px; background: #fff; }
.ci-metric-label { margin: 0; color: var(--ci-muted); font: 700 9px/normal var(--ov-font); text-transform: uppercase; }
.ci-metric-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ci-metric-value { margin: 1px 0 2px; color: var(--ci-ink); font: 400 30px/normal var(--ov-font); white-space: nowrap; }
.ci-metric-value small { color: var(--ci-muted); font-size: 15px; }
.ci-metric-value.is-untracked { color: var(--ci-muted); }
.ci-metric-note { margin: 0; font: 500 9px/1.3 var(--ov-font); white-space: normal; } /* wraps: the denominators must stay readable */
.ci-metric-note.is-green { color: #16a34a; }
.ci-metric-note.is-red { color: var(--ci-red); }
.ci-metric-note.is-muted { color: var(--ci-muted); }
.ci-ring { width: 41px; height: 41px; flex: none; transform: rotate(-90deg); }
.ci-ring circle { fill: none; stroke: #e5e5e5; stroke-width: 4.5; }
.ci-ring .ci-ring-arc { stroke: var(--ci-ink); stroke-linecap: round; }

.ci-notice { margin: -8px 0 16px; padding: 10px 14px; border: 1px solid var(--ci-unsure-line); border-radius: 8px; background: var(--ci-unsure-bg); color: var(--ci-unsure); font: 400 12px/1.4 var(--ov-font); }

/* Filters and search (175:17). */
.ci-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 13px; }
.ci-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.ci-pill { display: inline-flex; align-items: center; gap: 6px; height: 29px; padding: 0 12px; border: 1px solid #d6d8d6; border-radius: 16px; background: #fff; color: var(--ci-ink); font: 400 12.5px/normal var(--ov-font); white-space: nowrap; cursor: pointer; }
.ci-pill img { display: block; }
.ci-pill.is-active { border-color: var(--ci-ink); background: var(--ci-ink); color: #fff; font-weight: 500; }
.ci-search input { width: 212px; max-width: 100%; height: 34px; padding: 0 11px; border: 1px solid var(--ci-line-input); border-radius: 7px; background: #fff; color: var(--ci-ink); font: 400 12.5px/normal var(--ov-font); }
.ci-search input::placeholder { color: var(--ci-muted); }
.ci-collection-heading { margin: 0 0 12px; }
.ci-collection-heading h3 { margin: 0; color: var(--ci-ink); font: 600 13px/normal var(--ov-font); }
.ci-collection-heading p { margin: 3px 0 0; color: var(--ci-muted); font: 400 11.5px/normal var(--ov-font); }
.ci-back { display: inline-block; margin: 0 0 6px; padding: 0; border: 0; background: none; color: var(--ci-muted); font: 500 11px/normal var(--ov-font); cursor: pointer; }
.ci-back:hover, .ci-back:focus-visible { color: var(--ci-ink); text-decoration: underline; }

/* Tables (175:35, 179:27). */
.ci-table-card { border: 1px solid var(--ci-line); border-radius: 9px; background: #fff; overflow: hidden; }
.ci-table-scroll { overflow-x: auto; }
.ci-table { width: 100%; min-width: 860px; border-collapse: collapse; table-layout: fixed; }
.ci-table th { height: 32px; padding: 0 14px; background: var(--ci-surface); color: var(--ci-body); font: 400 10.5px/normal var(--ov-font); letter-spacing: .7px; text-align: left; text-transform: uppercase; }
/* Product table: widths and alignment by named column (catalog-intelligence.js), never by position, so the optional
   Select column cannot shift the others. Select is only rendered when a product in the list can be bulk-approved. */
.ci-products-table .ci-col-select { width: 44px; padding-right: 0; }
.ci-products-table .ci-col-product { width: 30%; }
.ci-products-table .ci-col-tags { width: 28%; }
.ci-products-table .ci-col-confidence { width: 14%; text-align: center; }
.ci-products-table .ci-col-status { width: 15%; }
.ci-products-table .ci-col-action { width: 13%; text-align: right; }
/* The collections table keeps its released layout (the product table above gained a Status column). */
.ci-collections-table th:nth-child(1) { width: 31%; }
.ci-collections-table th:nth-child(2) { width: 14%; }
.ci-collections-table th:nth-child(3) { width: 17%; text-align: center; }
.ci-collections-table th:nth-child(4) { width: 18%; text-align: right; }
.ci-collections-table th:nth-child(5) { width: 20%; text-align: right; }
.ci-status { white-space: nowrap; }
.ci-status-pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 12px; background: #f3f3f1; color: var(--ci-ink); font: 500 11px/normal var(--ov-font); }
.ci-status-pill img { display: block; }
.ci-status-pill.is-completed { background: var(--ci-green-soft); color: var(--ci-green-ink); }
.ci-status-pill.is-review { background: #fff1e7; color: var(--ci-unsure); }
.ci-status-pill.is-auto { color: var(--ci-muted); font-weight: 400; }
.ci-table th small { display: block; margin-top: 1px; color: var(--ci-muted); font: 400 8.5px/normal var(--ov-font); letter-spacing: .3px; text-transform: none; }
.ci-table td { height: 57px; padding: 8px 14px; border-top: 1px solid var(--ci-line-soft); color: var(--ci-ink); font: 400 13px/normal var(--ov-font); vertical-align: middle; }
.ci-table tbody tr:first-child td { border-top: 0; }
.ci-product { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ci-product img, .ci-swatch { display: block; width: 31px; height: 39px; flex: none; border-radius: 5px; object-fit: cover; background: #e9e7e1; }
.ci-product > div { min-width: 0; }
.ci-product strong { display: block; overflow: hidden; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.ci-product small { display: block; margin-top: 2px; color: var(--ci-muted); font-size: 11.5px; }
.ci-tags { font-size: 11.5px; color: var(--ci-muted); }
.ci-chip { display: inline-block; margin: 2px 5px 2px 0; padding: 2px 7.5px; border-radius: 11px; background: var(--ci-chip); color: var(--ci-body); font: 400 12px/15px var(--ov-font); }
.ci-chip.is-more { background: #fff; border: 1px solid var(--ci-line); }
.ci-confidence { text-align: center; }
.ci-confidence strong { display: block; font: 600 13px/normal var(--ov-font); }
.ci-confidence small { display: block; margin-top: 3px; font: 400 11.5px/normal var(--ov-font); }
.ci-confidence .is-green { color: var(--ci-green); }
.ci-confidence .is-orange { color: var(--ci-orange); }
.ci-confidence .is-red { color: var(--ci-red); }
.ci-confidence .is-muted { color: var(--ci-muted); }
.ci-action { text-align: right; white-space: nowrap; }
.ci-no-results { text-align: center; color: var(--ci-muted); }

/* Buttons. */
.ci-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 31px; padding: 0 11.5px; border: 1px solid var(--ci-line-input); border-radius: 6px; background: #fff; color: var(--ci-ink); font: 500 11.5px/normal var(--ov-font); white-space: nowrap; cursor: pointer; }
.ci-button img { display: block; }
.ci-button.is-primary { border-color: var(--ci-ink); background: var(--ci-ink); color: #fff; font-weight: 600; }
.ci-button.is-primary img { filter: invert(1); }
.ci-button.is-ai { height: 32px; border-color: var(--ci-ai); background: var(--ci-ai); color: #fff; font: 600 12px/normal var(--ov-font); }
.ci-button.is-ai img { filter: invert(1); }
.ci-button:hover:not([disabled]), .ci-button:focus-visible { filter: brightness(.94); }
.ci-button[disabled] { opacity: .55; cursor: default; }
.ci-completed { display: inline-flex; align-items: center; height: 31px; padding: 0 9px; border-radius: 6px; background: var(--ci-green-soft); color: var(--ci-green-ink); font: 500 11.5px/normal var(--ov-font); }
.ci-link { padding: 0; border: 0; background: none; color: var(--ci-ink); font: 500 12.5px/normal var(--ov-font); cursor: pointer; }
.ci-link:hover, .ci-link:focus-visible { text-decoration: underline; }
.ci-text-link { padding: 0; border: 0; background: none; color: #555550; font: 400 13px/normal var(--ov-font); text-decoration: underline; cursor: pointer; }
.ci-text-link.is-danger { color: #e12b26; font-size: 11.5px; }
.ci-text-link[disabled] { opacity: .5; cursor: default; }

/* Pager (175:207 …). */
.ci-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0 0; color: var(--ci-muted); font: 400 11.5px/normal var(--ov-font); }
.ci-pager > div { display: flex; gap: 4px; }
.ci-pager button { width: 32px; height: 31px; border: 1px solid var(--ci-line-input); border-radius: 7px; background: #fff; color: var(--ci-body); font: 400 17px/1 var(--ov-font); cursor: pointer; }
.ci-pager button[disabled] { opacity: .45; cursor: default; }

/* Collections (173:322). */
.ci-collections-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 0 0 12px; }
.ci-collections-head p { margin: 4px 0 0; max-width: 760px; color: var(--ci-muted); font: 400 12.5px/1.4 var(--ov-font); }
.ci-collections-head a { color: var(--ci-ink); }
.ci-collections-head .ci-button { height: 34px; padding: 0 12px; font-size: 12.5px; }
.ci-collections-table th { height: 34px; letter-spacing: .8px; }
.ci-collections-table th:nth-child(1) { width: 36%; }
.ci-collections-table th:nth-child(2) { width: 12%; text-align: left; }
.ci-collections-table th:nth-child(3) { width: 15%; }
.ci-collections-table th:nth-child(4) { width: 20%; text-align: left; }
.ci-collections-table th:nth-child(5) { width: 17%; }
.ci-collections-table td { height: 54px; }
.ci-collections-table td strong { display: block; font-weight: 600; }
.ci-collections-table td small { display: block; margin-top: 3px; color: var(--ci-muted); font-size: 11.5px; }
.ci-kind { display: inline-block; padding: 1.5px 6px; border-radius: 7px; font: 500 10px/12px var(--ov-font); }
.ci-kind.is-auto { background: var(--ci-ai-soft); color: var(--ci-ai-ink); }
.ci-kind.is-manual { background: var(--ci-chip); color: var(--ci-ink); }
.ci-switch { position: relative; width: 46px; height: 29px; padding: 0; border: 0; border-radius: 15px; background: #d5d5d1; cursor: pointer; transition: background .15s ease; }
.ci-switch i { position: absolute; top: 3px; left: 3px; width: 23px; height: 23px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .18); transition: left .15s ease; }
.ci-switch.is-on { background: var(--ci-ink); }
.ci-switch.is-on i { left: 20px; }
.ci-switch[disabled] { opacity: .6; cursor: default; }

/* States. */
.ci-state { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 48px 20px; border: 1px solid var(--ci-line); border-radius: 9px; background: #fff; color: var(--ci-muted); text-align: center; font: 400 13px/1.4 var(--ov-font); }
.ci-state h4 { margin: 0; color: var(--ci-ink); font: 600 14px/normal var(--ov-font); }
.ci-state p { margin: 0; }
.ci-state.is-error { color: var(--ci-red); }
.ci-state.is-loading .sg-spinner { width: 28px; height: 28px; }

/* Drawers (188:792 Review AI tags: 390px; 184:647 / 173:672 New collection: 429px). */
.ci-drawer-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(17, 17, 16, .18); }
.ci-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 41; display: flex; flex-direction: column; width: 390px; max-width: 100%; background: #fff; box-shadow: -8px 0 24px rgba(0, 0, 0, .12); color: var(--ci-drawer-ink); font-family: var(--ov-font); }
.ci-drawer.is-collection { width: 429px; }
.ci-drawer-head { position: relative; flex: none; padding: 12px 56px 12px 17px; border-bottom: 1px solid #eeeeec; }
.ci-drawer.is-collection .ci-drawer-head { padding: 18px 56px 14px 23px; }
.ci-drawer-head p { margin: 0 0 3px; color: #70706a; font: 600 10px/normal var(--ov-font); letter-spacing: .5px; text-transform: uppercase; }
.ci-drawer.is-collection .ci-drawer-head p { font-size: 11px; letter-spacing: .6px; }
.ci-drawer-head h3 { margin: 0; color: var(--ci-drawer-ink); font: 600 14.5px/normal var(--ov-font); }
.ci-drawer.is-collection .ci-drawer-head h3 { font-size: 16px; }
.ci-drawer-close { position: absolute; top: 10px; right: 15px; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: none; cursor: pointer; }
.ci-drawer.is-collection .ci-drawer-close { top: 17px; right: 23px; }
.ci-drawer-close:hover, .ci-drawer-close:focus-visible { background: var(--ci-surface); }
.ci-drawer-body { flex: 1; min-height: 0; overflow: auto; padding: 16px 17px 20px; }
.ci-drawer.is-collection .ci-drawer-body { padding: 19px 23px 20px; }
.ci-drawer-foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 17px; border-top: 1px solid #eeeeec; background: #fff; }
.ci-drawer.is-collection .ci-drawer-foot { padding: 13px 18px 9px 28px; }
.ci-drawer-foot > div { display: flex; gap: 7px; }
.ci-drawer-foot .ci-button { height: 35px; font-size: 12px; }
.ci-drawer.is-collection .ci-drawer-foot .ci-button { height: 38px; padding: 0 12px; border-radius: 8px; font-size: 13px; }
.ci-drawer-note { margin: 14px 0 0; color: #6b6b66; font: 400 10.5px/1.45 var(--ov-font); }
.ci-drawer-note a { color: var(--ci-drawer-ink); }
.ci-drawer-error { margin: 10px 0 0; padding: 8px 10px; border: 1px solid var(--ci-unsure-line); border-radius: 7px; background: var(--ci-unsure-bg); color: var(--ci-unsure); font: 400 11.5px/1.4 var(--ov-font); }

.ci-review-product { display: flex; gap: 10px; margin: 0 0 19px; }
.ci-review-product img, .ci-review-product .ci-swatch { width: 40px; height: 50px; border-radius: 6px; }
.ci-review-product small { display: block; color: #6b6b66; font: 400 11px/normal var(--ov-font); }
.ci-review-product p { margin: 4px 0 0; color: #6b6b66; font: 400 10px/1.35 var(--ov-font); }
.ci-review-product p strong { color: var(--ci-unsure); font-weight: 600; }
.ci-field-label { margin: 0 0 6px; color: var(--ci-drawer-ink); font: 600 12px/normal var(--ov-font); }
.ci-field-label small { display: block; margin-top: 2px; color: #686862; font: 400 10.5px/normal var(--ov-font); }
.ci-attributes + .ci-drawer-note, .ci-add-tag + .ci-field-label { margin-top: 14px; }
.ci-tag-list { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ci-tag-row { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 10px; border: 1px solid #e3e3df; border-radius: 8px; background: #fff; font: 400 11.5px/normal var(--ov-font); }
.ci-tag-row span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ci-tag-row small { color: #686862; font-size: 10.5px; white-space: nowrap; }
.ci-tag-row.is-unsure { border-color: var(--ci-unsure-line); background: var(--ci-unsure-bg); }
.ci-tag-row.is-unsure small { color: var(--ci-unsure); }
.ci-tag-row.is-empty { color: var(--ci-muted); }
.ci-tag-row button { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-right: -6px; padding: 0; border: 0; border-radius: 4px; background: none; cursor: pointer; }
.ci-tag-row button:hover, .ci-tag-row button:focus-visible { background: var(--ci-surface); }
.ci-add-tag { display: flex; gap: 7px; margin: 0 0 19px; }
.ci-add-tag label { flex: 1; }
.ci-add-tag input { width: 100%; height: 32px; padding: 0 9px; border: 1px solid #ddddda; border-radius: 7px; font: 400 11.5px/normal var(--ov-font); color: var(--ci-drawer-ink); }
.ci-add-tag .ci-button { height: 32px; padding: 0 10px; border-radius: 7px; font-weight: 400; }
.ci-attributes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
.ci-field { display: block; }
.ci-field > span { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; color: var(--ci-drawer-ink); font: 400 10.5px/normal var(--ov-font); }
.ci-field > span em { display: inline-block; padding: 1px 5px; border-radius: 6px; background: #fff1e7; color: var(--ci-unsure); font: 600 8.5px/normal var(--ov-font); font-style: normal; }
.ci-field input, .ci-field textarea { width: 100%; padding: 0 9px; border: 1px solid #ddddda; border-radius: 7px; background: #fff; color: var(--ci-drawer-ink); font: 400 11.5px/normal var(--ov-font); }
.ci-field input { height: 33px; }
.ci-field textarea { min-height: 54px; padding: 8px 10px; resize: vertical; font-size: 12px; line-height: 1.4; }
.ci-field.is-unsure input { border-color: #ffbe9f; background: #fffbf8; }
.ci-drawer.is-collection .ci-field { margin: 0 0 16px; }
.ci-drawer.is-collection .ci-field > span { margin-bottom: 5px; font: 600 13px/normal var(--ov-font); }
.ci-drawer.is-collection .ci-field input { height: 39px; padding: 0 10px; border-radius: 8px; font-size: 14px; }
.ci-drawer.is-collection .ci-field input::placeholder, .ci-drawer.is-collection .ci-field textarea::placeholder { color: #7a7a75; }
.ci-segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0 0 19px; padding: 3px; border-radius: 10px; background: var(--ci-chip); }
.ci-segmented button { height: 35px; border: 1px solid transparent; border-radius: 7px; background: none; color: #70706a; font: 600 12px/normal var(--ov-font); cursor: pointer; }
.ci-segmented button.is-active { border-color: #e5e5e2; background: #fff; color: var(--ci-drawer-ink); box-shadow: 0 1px 1.5px rgba(0, 0, 0, .1); }
.ci-drawer .ci-button.is-ai { margin: 0 0 14px; }
.ci-rule { margin: -4px 0 14px; color: var(--ci-drawer-ink); font: 400 12px/1.4 var(--ov-font); }
.ci-rule small { display: block; color: #6b6b66; font-size: 10.5px; }
.ci-rule.is-empty { color: var(--ci-unsure); }
.ci-pick-list { list-style: none; margin: 0; padding: 0; max-height: 268px; overflow: auto; border: 1px solid #e3e3df; border-radius: 10px; background: #fff; }
.ci-pick-list.is-tall { max-height: 400px; }
.ci-pick-list li + li { border-top: 1px solid #f0f0ee; }
.ci-pick-list li.ci-muted { padding: 12px; font-size: 11.5px; }
.ci-pick-list label { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 7px 11px; cursor: pointer; }
.ci-pick-list input { width: 17px; height: 17px; margin: 0; flex: none; accent-color: #000; }
.ci-pick-list img, .ci-pick-list .ci-swatch { width: 24px; height: 29px; border-radius: 4px; }
.ci-pick-list label > span { min-width: 0; }
.ci-pick-list strong { display: block; overflow: hidden; color: var(--ci-drawer-ink); font: 400 12px/normal var(--ov-font); text-overflow: ellipsis; white-space: nowrap; }
.ci-pick-list small { display: block; color: #6b6b66; font: 400 11.5px/normal var(--ov-font); }

@media (max-width: 1100px) {
  .ci-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ci-controls { flex-wrap: wrap; }
  .ci-search { width: 100%; }
  .ci-search input { width: 100%; }
}
@media (max-width: 900px) {
  .ci-tabs { margin: -14px -16px 16px; padding: 0 8px; }
  .ci-collections-head { flex-direction: column; }
}
@media (max-width: 600px) {
  .ci-summary { grid-template-columns: minmax(0, 1fr); }
  .ci-drawer, .ci-drawer.is-collection { width: 100%; }
  .ci-attributes { grid-template-columns: minmax(0, 1fr); }
  .ci-drawer-foot { flex-wrap: wrap; }
}

/* Collections for launch: Active / Archived, Edit, Archive (confirmation), Restore; bulk approve of up to 25
   selected products with a current → proposed preview (catalog-intelligence.js). */
.ci-collection-views { margin: 0 0 12px; }
.ci-row-actions { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 14px; }
.ci-row-actions .ci-link, .ci-action .ci-link { min-height: 32px; }
.ci-link:disabled { color: var(--ci-muted); cursor: default; }
.ci-collections-note { margin: 10px 0 0; color: var(--ci-muted); font: 400 12px/1.45 var(--ov-font); }
.ci-collections-note code { font-size: 11.5px; }
.ci-confirm { position: fixed; z-index: 42; top: 50%; left: 50%; width: min(440px, calc(100vw - 32px)); padding: 20px 22px 18px; border-radius: 12px; background: #fff; box-shadow: 0 12px 40px rgba(0, 0, 0, .18); color: var(--ci-drawer-ink); font-family: var(--ov-font); transform: translate(-50%, -50%); }
.ci-confirm h3 { margin: 0 0 10px; font: 600 16px/1.3 var(--ov-font); overflow-wrap: anywhere; }
.ci-confirm p { margin: 0 0 8px; color: var(--ci-body); font: 400 13px/1.5 var(--ov-font); }
.ci-confirm-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.ci-confirm-actions .ci-button { min-height: 38px; padding: 0 14px; }
.ci-rule-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; padding: 0; list-style: none; }
.ci-rule-tags li { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 10px; border-radius: 14px; background: var(--ci-chip); color: var(--ci-body); font: 400 12.5px/18px var(--ov-font); }
.ci-rule-tags li.ci-muted { padding: 0; background: none; }
.ci-rule-tags button { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.ci-rule-tags button:hover, .ci-rule-tags button:focus-visible { background: #e2e2de; }
.ci-select { width: 16px; height: 16px; margin: 0; accent-color: var(--ci-ink); cursor: pointer; }
.ci-table tr.is-selected td { background: #fafaf8; }
.ci-bulk-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; min-height: 44px; margin: 0 0 10px; padding: 6px 12px; border: 1px dashed var(--ci-line-input); border-radius: 8px; color: var(--ci-muted); font: 400 12.5px/1.4 var(--ov-font); }
.ci-bulk-bar.is-active { border-style: solid; border-color: var(--ci-ink); color: var(--ci-ink); font-weight: 500; }
.ci-bulk-actions { display: inline-flex; align-items: center; gap: 12px; }
.ci-bulk-actions .ci-button { min-height: 34px; padding: 0 12px; }
.ci-drawer.is-bulk { width: 520px; }
.ci-bulk-intro { margin: 0 0 12px; color: var(--ci-body); font: 400 12.5px/1.5 var(--ov-font); }
.ci-bulk-list { display: flex; flex-direction: column; gap: 10px; margin: 0 0 14px; padding: 0; list-style: none; }
.ci-bulk-item { padding: 10px 12px; border: 1px solid var(--ci-line); border-radius: 8px; }
.ci-bulk-item > strong { display: block; font: 600 13px/1.3 var(--ov-font); overflow-wrap: anywhere; }
.ci-bulk-item > small { display: block; margin: 1px 0 6px; color: var(--ci-muted); font-size: 11.5px; }
.ci-bulk-item p { margin: 4px 0 0; font: 400 12.5px/1.4 var(--ov-font); }
.ci-bulk-item.is-ok { border-color: #b9e2cb; background: var(--ci-green-soft); }
.ci-bulk-item.is-ok p { color: var(--ci-green-ink); }
.ci-bulk-item.is-failed { border-color: var(--ci-unsure-line); background: var(--ci-unsure-bg); }
.ci-bulk-item.is-failed p { color: var(--ci-unsure); }
.ci-bulk-compare { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: start; }
.ci-bulk-label { display: block; margin-bottom: 2px; color: var(--ci-muted); font: 700 9.5px/normal var(--ov-font); text-transform: uppercase; }
.ci-bulk-arrow { padding-top: 14px; color: var(--ci-muted); }
.ci-chip.is-added { background: var(--ci-green-soft); color: var(--ci-green-ink); font-weight: 500; }
.ci-bulk-effect { padding: 12px; border-radius: 8px; background: var(--ci-surface); font: 400 12.5px/1.5 var(--ov-font); }
.ci-bulk-effect p { margin: 0 0 8px; }
.ci-bulk-ack { display: flex; align-items: flex-start; gap: 8px; min-height: 44px; cursor: pointer; }
.ci-bulk-ack input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ci-ink); }
@media (max-width: 760px) {
  .ci-drawer.is-bulk { width: 100%; }
  .ci-bulk-compare { grid-template-columns: minmax(0, 1fr); }
  .ci-bulk-arrow { display: none; }
  .ci-row-actions .ci-link, .ci-action .ci-link, .ci-bulk-actions .ci-button, .ci-confirm-actions .ci-button { min-height: 44px; }
  .ci-select { width: 22px; height: 22px; }
}

/* A collection's detail view stays under Collections: breadcrumb, name and count, Back to collections. */
.ci-breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 8px; padding: 0; list-style: none; color: var(--ci-muted); font: 400 12px/normal var(--ov-font); }
.ci-breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--ci-muted); }
.ci-breadcrumb li[aria-current="page"] { color: var(--ci-ink); font-weight: 500; overflow-wrap: anywhere; }
.ci-crumb { min-height: 28px; padding: 0; border: 0; background: none; color: var(--ci-muted); font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.ci-crumb:hover, .ci-crumb:focus-visible { color: var(--ci-ink); }
.ci-collection-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ci-collection-title > div { min-width: 0; }
.ci-collection-title h3 { font-size: 16px; overflow-wrap: anywhere; }
.ci-back-button { flex: none; height: 34px; padding: 0 12px; font-size: 12.5px; }
@media (max-width: 760px) { .ci-crumb, .ci-back-button { min-height: 44px; } }
