/* Warm interaction accent; existing Telegram surfaces and primary actions stay familiar. */
:root { --search-gold: #b77900; --search-gold-text: #8a5a00; --search-glow: rgba(234,179,8,.12); }
[data-theme="dark"] { --search-gold: #f5c451; --search-gold-text: #f5c451; --search-glow: rgba(245,196,81,.12); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --search-gold: #f5c451; --search-gold-text: #f5c451; --search-glow: rgba(245,196,81,.12); } }
.search-hero > .eyebrow, .search-hero > h1, .search-hero > .hero-description,
.join-hero > .eyebrow, .join-hero > h1, .join-hero > .hero-description { text-align: center; }
.search-hero > h1 { margin-inline: auto; }
.search-hero > .hero-description, .join-hero > .hero-description { max-width: 780px; margin-inline: auto; line-height: 1.7; }
.smart-search { max-width: 860px; margin: 24px auto; text-align: center; }
.join-hero { margin-inline: auto; max-width: 960px; }
.join-actions { justify-content: center; }
.smart-search, .catalog-shortcuts, .filters { --text: var(--fg); --muted: var(--fg-muted); }
.smart-search .search-box { max-width: none; margin-inline: auto; }
.smart-search .search-box input { min-width: 0; width: 100%; }
.search-tools, .catalog-shortcuts, .source-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.search-tools { justify-content: center; margin-top: 12px; }
.search-tools .btn-secondary { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.search-tools svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.search-status { font-size: .875rem; line-height: 1.6; overflow-wrap: anywhere; margin: 12px 0; }
.search-status:empty { display: none; }
.search-tools [aria-pressed="true"] { border-color: var(--search-gold); background: var(--search-glow); }
.catalog-shortcuts { margin: 24px auto 0; justify-content: center; }
.catalog-shortcuts a { flex: 1 1 180px; border: 1px solid var(--border); border-radius: 14px; padding: 15px; color: var(--text); font-weight: 600; text-decoration: none; }
.catalog-shortcuts small { display: block; margin-top: 6px; color: var(--muted); font-weight: 400; line-height: 1.5; }
.quick-searches { justify-content: center; }
.source-option { display: flex; gap: 4px; align-items: center; border-radius: 8px; }
.source-option .check { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.source-option .source-handle { display: block; }
.source-profile { min-width: 44px; min-height: 44px; display: grid; place-items: center; border-radius: 8px; text-decoration: none; }
.source-actions button { flex: 1; min-height: 44px; font-size: .75rem; }
.source-filter-options { max-height: 340px; overflow-y: auto; overscroll-behavior: contain; }
.source-filter summary, .date-filters summary { cursor: pointer; padding-block: 8px; }
.date-filters { border-top: 1px solid var(--border); padding-top: 8px; }
.date-filters input { min-width: 0; max-width: 100%; }
.results-head .field-inline { min-width: 0; max-width: 100%; }
.results-head .field-inline select { min-width: 0; max-width: 100%; }
.landing-how { margin-top: 24px; }
.landing-how ol { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px 40px; padding-left: 24px; line-height: 1.7; }
.landing-how strong { display: block; }
.photo-results { text-align: left; margin-top: 24px; }
.photo-results-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.photo-match { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; padding-bottom: 12px; text-decoration: none; color: var(--text); }
.photo-match img { width: 100%; height: 150px; object-fit: contain; background: var(--bg); }
.photo-match strong, .photo-match span { padding-inline: 12px; overflow-wrap: anywhere; }
.photo-match span { font-size: .8rem; color: var(--muted); }
:is(.smart-search, .filters, .catalog-shortcuts, .quick-searches, .header-nav) :is(a, button, input, select, summary):focus-visible { outline: 2px solid var(--search-gold); outline-offset: 3px; }
@media (hover: hover) {
  .card:hover { border-color: var(--search-gold); }
  :is(.smart-search, .filters, .catalog-shortcuts, .quick-searches) :is(a, button, input, select):hover { border-color: var(--search-gold); }
  .search-tools .btn-secondary:hover, .catalog-shortcuts a:hover, .source-profile:hover, .source-option:hover, .header-nav a:hover { background: var(--search-glow); }
  .smart-search .search-box:hover, .smart-search .search-box:focus-within { border-color: var(--search-gold); }
}
[hidden] { display: none !important; }
@media (max-width: 600px) {
  .results-head .field-inline { width: 100%; flex-direction: column; align-items: stretch; }
  .smart-search .search-box { flex-direction: column; gap: 8px; }
  .smart-search .search-box input { font-size: 16px; min-height: 48px; flex: 0 0 auto; }
  .smart-search .search-box .btn-primary { width: 100%; min-height: 48px; }
  .search-tools .btn-secondary { font-size: .8rem; padding: 10px; }
  .catalog-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-shortcuts a { padding: 12px; font-size: .85rem; }
  .landing-how ol { grid-template-columns: 1fr; }
  .photo-results-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
