/* The add action and catalog disclosure share one control rhythm. */
.business-item-add-actions { align-items:center; gap:8px 12px; }
.business-item-add-actions > .add-business-item,
.business-item-add-actions .toggle-business-template-picker {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:44px; margin:0; padding:9px 12px; font-size:14px; font-weight:700; line-height:1.5;
}
.business-catalog-controls { display:flex; align-items:center; gap:6px; min-width:0; max-width:100%; }
.catalog-toggle-label { min-width:0; }
.catalog-toggle-label > span { display:inline-block; white-space:nowrap; }
.catalog-disclosure-icon { flex:0 0 16px; width:16px; height:16px; transition:transform 140ms ease; }
.toggle-business-template-picker[aria-expanded="true"] .catalog-disclosure-icon { transform:rotate(180deg); }
.business-catalog-controls > .business-template-help-button {
  display:grid; place-items:center; width:44px; min-width:44px; height:44px; min-height:44px;
  margin:0; padding:0; border:1px solid var(--line); background:var(--panel); color:var(--brand-dark,#174fce); line-height:1;
}
.business-catalog-controls > .business-template-help-button:hover { border-color:var(--brand); background:#f2f6ff; }
.business-catalog-controls > .business-template-help-button:focus-visible { outline:2px solid var(--brand); outline-offset:2px; }
.business-template-help { border:1px solid var(--line); border-radius:6px; background:var(--bg); padding:10px 12px; color:var(--muted); font-size:13px; line-height:1.65; }
.business-template-help p { margin:0; }
.business-template-help p + p { margin-top:6px; }
.business-template-help strong { color:var(--ink); }

/* Keep the input and favorite filter on the same row, including small phones. */
.business-template-picker .catalog-tools { display:grid; grid-template-columns:minmax(0,1fr) max-content; align-items:end; gap:8px; margin:12px 0 0; }
.business-template-picker .catalog-tools > label { display:grid; min-width:0; margin:0; gap:6px; }
.business-template-picker .catalog-tools > label > span { font-size:13px; font-weight:600; line-height:1.5; }
.business-template-picker .catalog-tools input[type="search"] { width:100%; min-width:0; height:44px; min-height:44px; margin:0; padding:8px 10px; box-sizing:border-box; font-size:16px; }
.business-template-picker .catalog-tools > button { display:inline-flex; align-items:center; justify-content:center; align-self:end; gap:5px; min-height:44px; height:44px; margin:0; padding:8px 10px; font-size:13px; line-height:1.5; white-space:nowrap; }
.business-template-picker .catalog-favorite-mark { font-size:18px; line-height:1; }
.business-template-picker [data-catalog-status]:empty { display:none; }
.catalog-picker-head > strong { font-size:14px; }

/* Two named groups, without adding nested cards or a second selection mode. */
.catalog-result-section { min-width:0; margin-top:16px; }
.catalog-result-section + .catalog-result-section { margin-top:20px; }
.catalog-result-heading { display:flex; align-items:center; flex-wrap:wrap; gap:6px 8px; padding:8px 10px; border-block:1px solid var(--line); background:var(--panel-strong); }
.catalog-result-heading > h4 { margin:0; color:var(--ink); font-size:14px; font-weight:700; line-height:1.5; }
.catalog-result-heading > span, .catalog-result-heading > small { color:var(--muted); font-size:12px; line-height:1.5; }
.catalog-result-heading > small { margin-left:auto; }
.catalog-price-context { margin:8px 0 0; color:var(--muted); font-size:12px; line-height:1.5; overflow-wrap:anywhere; }
.catalog-result-section .business-catalog-row:last-child { border-bottom:0; }
.business-template-picker:has(.catalog-result-section) { border-bottom:0; }

@media(max-width:600px) {
  .business-item-add-actions { display:grid; grid-template-columns:minmax(0,1fr); gap:8px; }
  .business-item-add-actions > .add-business-item { justify-self:start; }
  .business-catalog-controls { display:grid; grid-template-columns:minmax(0,max-content) 44px; gap:6px; }
  .business-catalog-controls > .toggle-business-template-picker { min-width:0; gap:6px; padding-inline:10px; }
  .business-template-picker .work-set-candidate-body { display:contents; }
  .business-template-picker .work-set-option { grid-column:2; }
  .business-template-picker .work-set-preview { grid-column:1 / -1; min-width:0; padding-inline:0; }
}
@media(prefers-reduced-motion:reduce) { .catalog-disclosure-icon { transition:none; } }
