/* Supplemental search stays separate from the catalogue and chat UI. */
.catalog-pane .topbar { gap: 12px; align-items: center; }
.catalog-search-entries { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.catalog-search-entries button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 9px 12px; border: 1px solid #d7e1da; border-radius: 10px; background: #fff; color: #234b36; font-size: 13px; font-weight: 650; white-space: nowrap; cursor: pointer; }
.catalog-search-entries button:first-child { background: #eef5f0; }
.catalog-search-entries button:hover { border-color: #668b73; background: #e9f2ec; }
.catalog-search-entries svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; flex: none; }
.catalog-search-entries button:focus-visible, .catalog-search-dialog button:focus-visible { outline: 3px solid #55866b; outline-offset: 2px; }
.catalog-search-dialog { width: min(1180px, calc(100vw - 48px)); height: min(900px, calc(100dvh - 48px)); max-width: none; max-height: none; margin: auto; padding: 0; border: 0; border-radius: 16px; background: #fafbf9; color: #24382c; overflow: hidden; box-shadow: 0 24px 80px #14271e38; }
.catalog-search-dialog[open] { display: flex; flex-direction: column; }
.catalog-search-dialog::backdrop { background: #12251cb3; }
.catalog-search-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex: none; padding: 16px 24px 12px; background: #fff; }
.catalog-search-heading h2 { margin: 0; font-size: 21px; line-height: 1.5; }
.catalog-search-close { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 14px; border: 1px solid #d5ddd7; border-radius: 9px; color: inherit; background: #fff; font-size: 13px; cursor: pointer; }
.catalog-search-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.catalog-search-close:hover { background: #edf2ee; }
.catalog-search-modes { display: flex; padding: 0 24px; gap: 20px; background: #fff; border-bottom: 1px solid #dbe2dc; flex: none; }
.catalog-search-modes button { padding: 12px 4px; min-height: 46px; border: 0; border-bottom: 3px solid transparent; color: #66776b; background: none; font-size: 14px; cursor: pointer; }
.catalog-search-modes button[aria-pressed="true"] { color: #234b36; border-bottom-color: #345e45; font-weight: 700; }
.catalog-search-body { flex: 1; min-height: 0; position: relative; }
.catalog-search-body iframe { display: block; width: 100%; height: 100%; border: 0; background: #fafbf9; }
.catalog-search-body [hidden] { display: none !important; }
.catalog-search-loading, .catalog-search-error { position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-start; flex-direction: column; padding: 40px 24px; text-align: center; background: #fafbf9; z-index: 1; font-size: 15px; line-height: 1.7; }
.catalog-search-loading strong, .catalog-search-error h3 { margin: 20px 0 4px; font-size: 18px; font-weight: 650; }
.catalog-search-loading p { margin: 8px 0; color: #475f50; font-variant-numeric: tabular-nums; white-space: pre-line; }
.catalog-search-placeholder { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; width: min(560px, 100%); margin: 8px 0 20px; }
.catalog-search-placeholder i { display: block; aspect-ratio: 1; background: #e8ede7; border-radius: 8px; }
.catalog-search-error p { margin: 4px 0; }
.catalog-search-error button, .catalog-search-loading button { margin-top: 20px; padding: 12px 24px; min-height: 44px; border: 1px solid #345e45; border-radius: 8px; background: #345e45; color: #fff; font: inherit; cursor: pointer; }
.catalog-search-error button:hover, .catalog-search-loading button:hover { background: #274b36; }
.catalog-search-dialog ::selection { color: #153724; background: #d5e7d8; }
html.catalog-search-open { overflow: hidden; }
@media (max-width: 600px) {
  .catalog-search-dialog { width: 100%; height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .catalog-search-heading { padding: max(12px, env(safe-area-inset-top)) 16px 8px; }
  .catalog-search-heading h2 { font-size: 18px; }
  .catalog-search-modes { padding: 0 16px; gap: 16px; }
  .catalog-search-body { padding-bottom: env(safe-area-inset-bottom); }
  .catalog-search-loading, .catalog-search-error { padding: 28px 20px; }
  .catalog-search-placeholder { gap: 10px; margin-bottom: 16px; }
  .catalog-search-entries { gap: 5px; }
  .catalog-search-entries button { padding: 8px; gap: 4px; font-size: 12px; border-radius: 8px; }
  .catalog-search-entries svg { width: 16px; height: 16px; }
}
@media (max-width: 380px) {
  .catalog-pane .topbar { gap: 6px; }
  .catalog-pane .topbar h1 { font-size: 17px; }
  .catalog-search-entries button { font-size: 11px; padding: 7px 6px; }
  .catalog-search-entries svg { display: none; }
}
