.work-set-candidate { display:grid; grid-template-columns:44px minmax(0,1fr); align-items:start; }
.work-set-candidate > .catalog-star-button { margin-top:8px; }
.work-set-candidate:not(:has(> .catalog-star-button)) { display:block; }
.work-set-candidate-body { min-width:0; width:100%; }
.work-set-option { width:100%; padding-left:12px; }
.work-set-option-action { color:var(--muted,#52627a); font-size:13px; white-space:nowrap; }
.work-set-preview { padding:0 12px 16px; }
.work-set-preview-items { list-style:none; margin:0 0 12px; padding:0; }
.work-set-preview-items li { display:flex; justify-content:space-between; gap:16px; border-top:1px solid var(--line,#d9dfe7); padding:10px 0; font-size:16px; }
.work-set-preview-items li > span { min-width:0; overflow-wrap:anywhere; }
.work-set-preview-items li > span:last-child { text-align:right; }
.work-set-preview-items small,.work-set-settings small { display:block; color:var(--muted,#52627a); font-size:13px; font-weight:400; line-height:1.5; }
.work-set-settings { margin-top:20px; border-top:1px solid var(--line,#d9dfe7); background:#fff; }
.work-set-settings > summary { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:16px 0; font-size:18px; font-weight:700; cursor:pointer; }
.work-set-settings > summary small { display:inline; }
.work-set-settings-body { padding:0 0 12px; }
.work-set-editor-row { display:grid; grid-template-columns:44px minmax(0,1fr); align-items:start; gap:8px; border-top:1px solid var(--line,#d9dfe7); }
.work-set-editor-row > .catalog-star-button { margin-top:6px; }
.work-set-editor { min-width:0; }
.work-set-editor-row:not(:has(> .catalog-star-button)) { grid-template-columns:minmax(0,1fr); }
.work-set-favorite-feedback:has(> p:empty):has(> button[hidden]) { display:none; }
.work-set-favorite-feedback p:empty { display:none; }
.work-set-favorite-feedback { margin-block:8px; }
.work-set-editor > summary { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 0; font-size:16px; font-weight:700; cursor:pointer; }
.work-set-editor > summary span { overflow-wrap:anywhere; }
.work-set-editor-body { display:grid; gap:14px; padding:0 0 20px; }
.work-set-component { display:grid; grid-template-columns:minmax(0,1fr) 110px auto; align-items:end; gap:12px; padding:12px 0; border-top:1px solid var(--line,#d9dfe7); }
.work-set-component label { min-width:0; }
.work-set-component select,.work-set-component input { width:100%; min-width:0; }
.work-set-component-actions { display:flex; align-items:center; gap:4px; }
.work-set-component-actions button { min-width:36px; min-height:44px; padding:6px; }
.work-set-remove { justify-self:start; }
.work-set-error { color:var(--loss,#b42318); font-size:13px; line-height:1.6; }
.work-set-conflict { border-top:1px solid var(--line,#d9dfe7); margin-top:12px; padding-top:12px; font-size:13px; }
.work-set-settings button,.work-set-preview button { cursor:pointer; }
.work-set-settings button:disabled,.work-set-preview button:disabled { cursor:default; opacity:.55; }
.work-set-settings button:hover:not(:disabled),.work-set-preview button:hover:not(:disabled) { filter:brightness(.96); }
.work-set-settings button:active:not(:disabled),.work-set-preview button:active:not(:disabled) { filter:brightness(.9); }
.work-set-settings :focus-visible,.work-set-preview :focus-visible,.work-set-option:focus-visible { outline:2px solid var(--primary,#2868f0); outline-offset:2px; }
@media(max-width:600px) {
  .work-set-component { grid-template-columns:minmax(0,1fr) 90px; gap:8px; }
  .work-set-component-actions { grid-column:1/-1; justify-content:flex-end; }
  .work-set-preview-items li { flex-wrap:wrap; gap:4px; }
  .work-set-preview-items li > span:last-child { width:100%; text-align:left; }
  .work-set-option { gap:8px; }
}

/* A selected filter must retain legible ink against its quiet background. */
.business-template-picker .catalog-tools > button[aria-pressed="true"] { color:var(--brand-dark,#174fce); background:#e8f1ff; border-color:#9ebfec; }
[data-catalog-results] > .work-set-candidate:has(+ .work-set-favorite-feedback:last-child) { border-bottom:0; }
.business-template-picker:has([data-catalog-results] > .work-set-favorite-feedback:last-child) { border-bottom:0; }
