/* The supplied Stitch catalogue, integrated over existing server-rendered controls.
   All layout overrides belong to this page; subsequent artboards retain their own styles. */
body.site-telegram.catalog-v10.stitch-home {
  --bg: #f7f9ff; --surface: #fff; --surface-2: #edf4ff;
  --fg: #121c26; --fg-muted: #414751; --border: #e2e8f0; --border-strong: #c0c7d2;
  --control-border: #717882; --tg-primary: #005f9f; --tg-hover: #004b80; --tg-link: #005f9f;
  --tg-soft: #edf4ff; --catalog-accent: #005f9f; --catalog-accent-ink: #00497c;
  --catalog-accent-soft: #d1e4ff; --catalog-accent-stripe: #d1e4ff;
  --action: #005f9f; --action-soft: #edf4ff; --action-fg: #fff;
  --ok-fg: #176e2f; --catalog-shadow: none;
  --font: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-disp: var(--font); --font-mono: var(--font);
  font: 400 16px/1.5 var(--font); font-variant-numeric: tabular-nums;
}
:root[data-theme="dark"] body.site-telegram.catalog-v10.stitch-home {
  --bg: #101923; --surface: #182430; --surface-2: #213244;
  --fg: #f2f6fc; --fg-muted: #b7c5d6; --border: #314256; --border-strong: #60758c;
  --control-border: #8da0b7; --tg-primary: #176fae; --tg-hover: #0d609c; --tg-link: #9ecaff;
  --tg-soft: #213244; --catalog-accent: #176fae; --catalog-accent-ink: #9ecaff;
  --catalog-accent-soft: #213244; --catalog-accent-stripe: #213244;
  --action: #9ecaff; --action-soft: #213244; --ok-fg: #83dfa0;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.site-telegram.catalog-v10.stitch-home {
    --bg: #101923; --surface: #182430; --surface-2: #213244;
    --fg: #f2f6fc; --fg-muted: #b7c5d6; --border: #314256; --border-strong: #60758c;
    --control-border: #8da0b7; --tg-primary: #176fae; --tg-hover: #0d609c; --tg-link: #9ecaff;
    --tg-soft: #213244; --catalog-accent: #176fae; --catalog-accent-ink: #9ecaff;
    --catalog-accent-soft: #213244; --catalog-accent-stripe: #213244;
    --action: #9ecaff; --action-soft: #213244; --ok-fg: #83dfa0;
  }
}
.stitch-home .shell { max-width: 1360px; padding-inline: 40px; }
.stitch-home :is(button, .btn-primary, .btn-secondary, select) { border-radius: 8px; }
.stitch-home :is(.btn-primary, .btn-secondary) { font-size: 14px; min-height: 44px; }
.stitch-home :focus-visible { outline: 2px solid var(--tg-link); outline-offset: 3px; }
.stitch-home .stitch-header { backdrop-filter: none; }
.stitch-home .stitch-header .header-inner { height: 68px; gap: 18px; flex-wrap: nowrap; }
.stitch-home .reference-logo { gap: 8px; font-weight: 600; color: var(--tg-link); }
.stitch-home .reference-logo-mark { width: 34px; height: 34px; border-radius: 8px; background: var(--surface-2); }
.stitch-home .catalog-reference-nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 10px 14px; }
.stitch-home .catalog-reference-nav a.on { background: var(--catalog-accent-soft); box-shadow: none; }
.stitch-home .catalog-header-actions .reference-icon-button { background: var(--surface-2); border-radius: 8px; }
.stitch-home .stitch-market-ribbon { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: 12px; color: var(--fg-muted); }
.stitch-market-ribbon > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.stitch-ribbon-label { display: inline-flex; gap: 7px; align-items: center; }
.stitch-ribbon-label i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok-fg); }
.stitch-home .search-hero { padding: 20px 0 0; }
.stitch-home .taste-hero, .stitch-home .taste-hero.without-featured-car { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.stitch-home .market-hero-copy { min-width: 0; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.stitch-search-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.stitch-home .taste-hero .eyebrow { font: 600 12px/1.4 var(--font); letter-spacing: .035em; color: var(--tg-link); margin: 0; }
.stitch-result-badge { padding: 4px 8px; border-radius: 5px; background: var(--surface-2); color: var(--fg-muted); font-size: 12px; }
.site-telegram.stitch-home .taste-hero h1, .site-telegram.stitch-home .taste-hero .catalog-home-title { font: 700 clamp(25px, 2.1vw, 30px)/1.22 var(--font); letter-spacing: -.025em; margin: 14px 0 12px; text-wrap: balance; }
.stitch-home .hero-description { max-width: 65ch; font-size: 15px; line-height: 1.55; margin: 0 0 20px; }
.site-telegram.stitch-home .taste-hero .reference-search { padding: 0; border: 0; border-radius: 0; box-shadow: none; margin: 0; }
.stitch-home .catalog-search-row { flex-wrap: nowrap; background: var(--surface-2); border: 1px solid transparent; border-radius: 8px; padding: 5px 5px 5px 12px; }
.stitch-home .catalog-search-row:focus-within { border-color: var(--tg-link); box-shadow: none; }
.stitch-home .catalog-search-row > .reference-search-icon { stroke: var(--tg-link); }
.stitch-home .catalog-search-row input[type="search"] { font-size: 16px; height: 44px; min-height: 44px; font-weight: 400; }
.stitch-home .catalog-search-row .btn-primary { flex: 0 0 auto; width: auto; min-height: 44px; height: 44px; padding: 0 18px; margin: 0 0 0 4px; border-radius: 8px; }
.stitch-home .reference-search-tools button { width: 32px; }
.stitch-home .reference-search-separator { display: none; }
.stitch-home .quick-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 16px 0 0; padding: 0; gap: 8px; }
.site-telegram.stitch-home .quick-filter-chip { display: grid; grid-template-columns: minmax(0, 1fr) 16px; align-content: center; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 10px; font-size: 14px; min-height: 52px; height: auto; padding: 10px 12px; gap: 4px; min-width: 0; }
.stitch-home .quick-filter-chip > .quick-filter-symbol { display: none; }
.stitch-home .quick-filter-chip > svg:last-child { grid-column: 2; grid-row: 1; }
.site-telegram.stitch-home .quick-filter-chip[data-set] [data-quick-label] { display: block; font-size: 12px; color: var(--fg-muted); }
.stitch-home .quick-filter-value { grid-column: 1/-1; font-size: 14px; max-width: none; white-space: normal; overflow: visible; overflow-wrap: anywhere; line-height: 1.4; }
.stitch-home .quick-filter-more { grid-column: 2/4; }
.site-telegram.stitch-home .quick-filter-more { display: flex; justify-content: center; }
.stitch-home .quick-extra-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stitch-home .quick-extra[open] { grid-column: 1/-1; }
.stitch-home .quick-extra[open] + .quick-filter-more { grid-column: 1/-1; }
.site-telegram.stitch-home .quick-filter-chip[data-set] { background: var(--catalog-accent-soft); color: var(--tg-link); border-color: var(--tg-link); }
.stitch-home .quick-filter-more { border: 1px solid var(--border-strong); background: var(--surface); }
.stitch-home .quick-filter-more small { display: none; }
.stitch-home .quick-extra { align-self: center; }
.stitch-home .quick-extra > summary { border-radius: 8px; background: var(--surface-2); border-color: transparent; font-size: 13px; }
/* Filter disclosures occupy the document flow below the search controls. */
.site-telegram.stitch-home .quick-filter-dialog[data-inline-quick] {
  position: static; inset: auto; margin: 16px 0 0; width: 100%; max-width: none;
  height: auto; max-height: none; overflow: visible; padding: 16px;
  border: 1px solid var(--border-strong); border-radius: 12px; box-shadow: none;
  transform: none; opacity: 1; background: var(--surface);
}
.stitch-home [data-inline-quick] .quick-filter-heading { position: static; padding: 0; margin: 0 0 10px; }
.stitch-home [data-inline-quick] .quick-filter-footer { position: static; padding: 12px 0 0; margin: 12px 0 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
.stitch-home [data-inline-quick] .quick-filter-footer button { min-height: 48px; white-space: normal; }
.stitch-home [data-inline-quick] :is(input, select) { font-size: 16px; }
.stitch-home [data-inline-quick] .quick-choice-options { gap: 8px; padding: 4px; scrollbar-width: thin; }
.stitch-home [data-inline-quick] .quick-choice-options button { min-height: 48px; font-size: 14px; border-radius: 8px; }
.quick-choice-empty { padding: 12px 0; margin: 0; color: var(--fg-muted); font-size: 14px; }
.filter-range-caption { display: block; font-size: 12px; color: var(--fg-muted); margin-bottom: 6px; }
.stitch-home .field-pair > label { min-width: 0; }
.stitch-home .field-pair > label input { width: 100%; }
.stitch-home [data-inline-quick] [data-quick-slot] { margin: 12px 0; }
.stitch-home [data-inline-quick] .quick-choice-options { max-height: 320px; }
/* Compact «Усі фільтри» (owner, 2026-10-10: «компактні, маленькі, а не на пів сторінки»).
   Density comes from spacing, type size and a grid that follows the panel width (container
   query, not viewport). Every control keeps its 44px target; no field or name= is removed. */
.stitch-home .inline-filter-panel { margin-top: 14px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); }
.stitch-home .inline-filter-panel > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 8px 14px; margin: 0; border: 0; border-radius: 12px; background: var(--surface-2); cursor: pointer; font-size: 14px; font-weight: 600; }
.stitch-home .inline-filter-panel > summary span { font-size: 12px; font-weight: 400; }
.stitch-home .inline-full-body { position: relative; padding: 8px 14px 12px; container: filters / inline-size; }
.stitch-home .inline-full-body > .field-hint { margin: 0; padding-right: 72px; font-size: 12px; line-height: 16px; }
.stitch-home .inline-filter-panel .filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 4px; padding: 0; border: 0; box-shadow: none; background: none; }
/* The reset link shares the first hint line; its 44px box is centred on that line. */
.stitch-home .inline-filter-panel .filters-head { position: absolute; top: -6px; right: 8px; z-index: 1; margin: 0; }
.stitch-home .inline-filter-panel .filters-head h2 { display: none; }
.stitch-home .inline-filter-panel .filters-reset { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; }
.stitch-home .inline-filter-panel .filter-section > summary { min-height: 44px; padding: 4px 0; gap: 8px; font-size: 14px; }
.stitch-home .inline-filter-panel .filter-section-hint { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 400; color: var(--fg-muted); }
.stitch-home .inline-filter-panel .filter-section[open] > summary .filter-section-hint { display: none; }
.stitch-home .inline-filter-panel .filter-section-body { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 8px; padding: 0 0 12px; }
.stitch-home .inline-filter-panel :is(.field, .field-group) { gap: 4px; }
.stitch-home .inline-filter-panel .field-label { font-size: 11px; }
.stitch-home .inline-filter-panel .field-group legend { margin-bottom: 4px; }
.stitch-home .inline-filter-panel .filter-range-caption { font-size: 11px; margin-bottom: 2px; }
.stitch-home .inline-filter-panel .field-pair { gap: 6px; }
.stitch-home .inline-filter-panel .field-pair > label { flex: 1 1 0; }
.stitch-home .inline-filter-panel .field-pair input { padding-inline: 10px; }
.stitch-home .inline-filter-panel .field-hint { margin: 0; }
.stitch-home .inline-filter-panel :is(#filter-year, #filter-price, .filter-fuel-group, #filter-state-status),
.stitch-home .inline-filter-panel .filter-section-body > :is(.char-panel, .char-options, .char-option) { grid-column: 1 / -1; }
.stitch-home .inline-filter-panel #filter-price { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 4px 8px; align-items: center; }
.stitch-home .inline-filter-panel #filter-price > .field-pair { grid-column: 1 / -1; }
.stitch-home .inline-filter-panel .char-group > legend { min-height: 30px; margin-bottom: 4px; }
.stitch-home .inline-filter-panel .char-clear { margin-bottom: 4px; }
.stitch-home .inline-filter-panel .char-options { gap: 6px; }
.stitch-home .inline-filter-panel .filter-fuel-group .char-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stitch-home .inline-filter-panel .char-option { gap: 6px; padding: 0 12px 0 10px; font-size: 13px; }
.stitch-home .inline-filter-panel .char-option .char-check { left: 21px; }
.stitch-home .inline-filter-panel .char-options-drive { display: flex; }
.stitch-home .inline-filter-panel .char-options-drive .char-option { justify-content: flex-start; padding: 0 12px 0 10px; }
.stitch-home .inline-filter-panel .char-options-drive .char-option .char-check { left: 21px; right: auto; top: 5px; margin-top: 0; }
.stitch-home .inline-filter-panel .char-layout { gap: 10px; }
.stitch-home .inline-filter-panel .char-body-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.stitch-home .inline-filter-panel .char-tile { min-height: 56px; gap: 2px; padding: 6px 2px; border-radius: 12px; font-size: 11.5px; }
.stitch-home .inline-filter-panel .char-tile .char-body-icon { width: 44px; height: 22px; }
.stitch-home .inline-filter-panel .char-tile .char-check { top: 4px; right: 4px; }
.stitch-home .inline-filter-panel .filter-section-quality .filter-section-body { display: flex; flex-wrap: wrap; gap: 6px; }
.stitch-home .inline-filter-panel .filter-section-quality .filter-quality-options { display: contents; }
.stitch-home .inline-filter-panel .filter-section-quality .char-option { width: auto; }
@container filters (max-width: 400px) {
  .stitch-home .inline-filter-panel .filter-section-hint { display: none; }
}
.stitch-home .inline-filter-footer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: end; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 0; padding-top: 10px; border-top: 1px solid var(--border); }
.stitch-home .inline-filter-footer p { flex: 1 1 100%; grid-column: 1 / -1; font-size: 12px; color: var(--fg-muted); margin: 0; }
.stitch-home .inline-filter-footer p:empty { display: none; }
.stitch-home .inline-filter-footer button { min-height: 44px; padding-inline: 12px; white-space: normal; }
.stitch-home .inline-filter-panel .filters > .btn-primary { margin: 0 0 12px; }
@container filters (min-width: 540px) {
  .stitch-home .inline-filter-panel .filter-section-body { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 10px; }
  .stitch-home .inline-filter-panel #filter-region { grid-column: span 2; }
  .stitch-home .inline-filter-panel #filter-year { grid-column: span 2; }
  .stitch-home .inline-filter-panel .filter-fuel-group .char-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stitch-home .inline-filter-footer { display: flex; }
  .stitch-home .inline-filter-panel #filter-price { grid-template-columns: minmax(0, 2fr) 92px minmax(0, 1fr); align-items: end; }
  .stitch-home .inline-filter-panel #filter-price > .field-pair { grid-column: auto; }
  .stitch-home .inline-filter-panel #filter-price > .field-hint { align-self: center; }
  .stitch-home .inline-filter-panel .filter-section-place .filter-section-body { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stitch-home .inline-filter-panel #filter-state-status { grid-column: auto; }
}
/* With JS the form applies itself and «Показати N авто» below repeats the submit; the
   no-JS GET keeps the visible native submit. */
:root[data-inline-filters] .stitch-home .inline-filter-panel .filters > button[type="submit"] { display: none; }
:root[data-inline-filters] .stitch-home .inline-filter-panel:not([open]) { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .site-telegram.stitch-home [data-inline-quick][data-pointer-open],
  .stitch-home .inline-filter-panel[open][data-pointer-open] .inline-full-body {
    transition: opacity 180ms var(--ease-overlay), transform 180ms var(--ease-overlay);
    @starting-style { opacity: 0; transform: translateY(-8px); }
  }
}
@media (max-width: 640px) {
  .site-telegram.stitch-home .quick-filter-dialog[data-inline-quick] { padding: 14px; }
  .stitch-home .inline-full-body { padding: 8px 12px 12px; }
  .stitch-home .inline-filter-panel > summary { flex-wrap: wrap; }
}
.stitch-home .stitch-fuel-section { margin-top: 18px; }
.stitch-fuel-heading { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 12px; font-weight: 600; }
.stitch-fuel-heading a { font-weight: 400; }
.stitch-fuels { display: flex; flex-wrap: wrap; gap: 6px; }
.stitch-home .stitch-fuels a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 12px; border-radius: 8px; background: var(--surface-2); border: 1px solid transparent; color: var(--fg); font-size: 13px; text-decoration: none; }
.stitch-home .stitch-fuels a[aria-pressed="true"] { background: var(--tg-primary); color: #fff; }
.stitch-home .stitch-fuels a[aria-pressed="true"] svg { stroke: currentColor; }
.stitch-home .catalog-trust { gap: 8px 16px; margin: 16px 0 0; font-size: 12px; }
.stitch-home .catalog-trust li::before { content: ""; display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--tg-link); }
.stitch-home .featured-carousel { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 14px; min-width: 0; border: 1px solid var(--border); border-radius: 16px; box-shadow: none; }
.stitch-home .featured-slide { width: 100%; }
.stitch-home .featured-top { background: none; padding: 0 0 12px; color: var(--fg-muted); letter-spacing: 0; font: 500 11px/1.4 var(--font); }
.stitch-home .featured-top > strong { padding: 5px 8px; background: var(--warning-bg); color: var(--warning); }
.stitch-home .featured-top > span { padding: 0; background: none; }
.stitch-home .featured-progress { order: -1; margin: 0 0 10px; padding: 0; height: 4px; }
.stitch-home .featured-progress-track { position: static; }
.stitch-home .featured-progress i { background: var(--catalog-accent-soft); box-shadow: none; height: 4px; }
.stitch-home .featured-progress b { background: var(--tg-primary); }
.stitch-home .featured-carousel .listing-media { margin: 0; border-radius: 8px; }
.stitch-home .featured-carousel .detail-media { aspect-ratio: 4/3; border-radius: 8px; }
.stitch-home .featured-details { flex-direction: column; gap: 5px; padding: 12px 0 8px; }
.stitch-home .featured-details h2 { font: 600 18px/1.35 var(--font); margin: 0; flex: 0 0 auto; width: 100%; }
.stitch-home .featured-details .price { order: -1; font: 700 28px/1.15 var(--font); color: var(--ok-fg); }
.stitch-home .featured-facts { margin: 0; padding: 0; gap: 6px 12px; display: flex; flex-wrap: wrap; font-size: 12px; border: 0; background: none; }
.stitch-home .featured-facts > div { display: flex; gap: 5px; padding: 0; border: 0; }
.stitch-home .featured-facts dt { color: var(--fg-muted); font-size: 12px; }
.stitch-home .featured-facts dd { margin: 0; font-size: 12px; }
.stitch-home .featured-meta { padding: 0; margin: 10px 0; font-size: 12px; }
.stitch-home .stitch-feature-origin { display: flex; align-items: center; justify-content: center; text-decoration: none; width: 100%; margin: 10px 0 0; }
.stitch-home .featured-controls { margin: 10px 0 0; padding: 8px; border-radius: 8px; background: var(--surface-2); }
.stitch-home .featured-source-link { display: flex; gap: 8px; align-items: center; }
.stitch-home .featured-source-text b { font-size: 12px; }
.stitch-home .featured-empty { padding: 32px 12px; }
.stitch-home .market-directory { padding-top: 24px; margin-top: 0; }
.stitch-home .stitch-source-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px; }
.stitch-home .market-heading { margin: 0 0 12px; padding: 0; align-items: center; gap: 12px; }
.stitch-home .market-heading h2 { font: 600 18px/1.4 var(--font); }
.stitch-home .market-heading p { font-size: 12px; margin: 3px 0 0; }
.stitch-home .reference-section-tools { gap: 8px; }
.stitch-home .reference-section-tools a { font-size: 12px; padding: 8px 10px; }
.stitch-home .source-wall { mask-image: none; padding: 4px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.stitch-home .source-wall::-webkit-scrollbar { display: none; width: 0; height: 0; }
.stitch-home .source-wall-track { width: max-content; }
.stitch-home .source-wall-group { gap: 12px; padding: 0 12px 5px 0; }
.stitch-home .source-tile { width: 76px; height: 76px; min-height: 76px; display: grid; place-items: center; padding: 6px; border-radius: 50%; background: var(--surface); box-shadow: none; border: 2px solid var(--border-strong); }
.stitch-home .source-tile[aria-current="true"] { border-color: var(--tg-link); box-shadow: none; }
.stitch-home .source-tile .avatar { width: 60px; height: 60px; font-size: 20px; border-radius: 50%; }
.stitch-home .stitch-source-copy { display: none; }
.stitch-source-copy strong, .stitch-source-copy small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stitch-source-copy strong { font-size: 14px; font-weight: 600; }
.stitch-source-copy small { font-size: 11px; color: var(--fg-muted); margin-top: 3px; }
.stitch-home .source-verified { display: none; }
.stitch-home .catalog-layout-right { padding-top: 28px; }
.stitch-home .catalog-results-heading { margin: 0; padding: 16px 18px 0; background: var(--surface); border: 1px solid var(--border); border-bottom: 0; border-radius: 12px 12px 0 0; }
.stitch-home .catalog-section-title { font: 600 20px/1.4 var(--font); }
.stitch-home .results .active-filters { gap: 6px; margin-block: 8px 12px; }
.stitch-home .results .active-filters .chip { font-size: 12px; line-height: 1.4; padding: 4px 8px; }
.stitch-home .results .active-filters a.chip { display: inline-flex; align-items: center; min-height: 44px; }
.stitch-home .catalog-section-title { font-size: 18px; }
.stitch-home .catalog-results-heading { padding-top: 12px; }
.stitch-home .results-head { background: var(--surface); border: 1px solid var(--border); border-top: 0; border-radius: 0 0 12px 12px; padding: 10px 18px 14px; margin: 0 0 18px; gap: 8px 12px; }
.stitch-home .results-head .results-count { font-size: 13px; }
.stitch-home .results-head :is(.btn-secondary, select, .field-label) { font-size: 12px; }
.stitch-home .results-head .mobile-filter-trigger { order: 0; }
.stitch-home .results-head select { background: var(--surface-2); border-color: var(--control-border); }
.stitch-home .results .grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.stitch-home .catalog-card { border-radius: 16px; border-color: var(--border); box-shadow: none; transform: none; }
.stitch-home .catalog-cover, .stitch-home .catalog-photo-pager { aspect-ratio: 4/3; }
.stitch-home .catalog-card-body { padding: 14px; gap: 8px; }
.stitch-home .catalog-card .price { order: -2; font: 700 22px/1.25 var(--font); color: var(--ok-fg); margin: 0; }
.stitch-home .catalog-card .card-title { order: -1; font: 500 16px/1.4 var(--font); margin: 0; }
.stitch-home .catalog-specs { background: var(--surface-2); border-radius: 8px; padding: 10px; font-size: 12px; gap: 8px 12px; }
.stitch-home .catalog-excerpt { display: none; }
.stitch-home .catalog-location { font-size: 12px; }
.stitch-home .catalog-media-count { top: 10px; bottom: auto; height: 24px; right: 10px; font: 500 11px/1 var(--font); }
.stitch-home .catalog-card-status { height: auto; min-height: 24px; max-width: calc(100% - 78px); font-size: 11px; padding: 4px 7px; }
.stitch-home .catalog-card > .catalog-card-actions { display: grid; grid-template-columns: 44px 44px 44px minmax(0, 1fr); grid-template-rows: auto 44px; gap: 8px 0; padding: 0 12px 8px; border: 0; }
.stitch-home .catalog-card-actions .catalog-icon-action { width: 44px; height: 44px; padding: 0; border-radius: 8px; }
.stitch-home .catalog-card-actions .catalog-source-logo { grid-column: 1/-1; grid-row: 1; width: auto; height: auto; min-height: 44px; margin: 0; padding: 6px 8px; display: flex; justify-content: start; gap: 8px; background: var(--surface-2); border-radius: 8px; text-decoration: none; }
.stitch-home .catalog-source-logo .avatar { flex: 0 0 26px; width: 26px; height: 26px; font-size: 11px; }
.stitch-home .stitch-card-source-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 500; }
.stitch-home .catalog-card-actions .stitch-origin-action { width: 100%; display: flex; gap: 6px; background: var(--catalog-accent-soft); color: var(--fg); font-size: 12px; }
.stitch-home .stitch-origin-action svg { width: 16px; height: 16px; }
.stitch-home .stitch-original-label { display: inline; }
.stitch-home .catalog-action-planned { border: 0; }
.stitch-home .catalog-action-planned small { font: 500 8px/1.3 var(--font); top: -1px; right: 2px; text-transform: none; padding: 0 2px; border-color: var(--border); background: var(--surface-2); color: var(--fg-muted); }
.stitch-home .catalog-card-date { font: 400 11px/1.5 var(--font); padding: 0 14px 12px; align-items: start; }
.stitch-home .catalog-card-date svg { margin-top: 2px; }
.stitch-home .market-map-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; margin-top: 36px; }
.stitch-home .market-map-panel h2 { font: 600 26px/1.3 var(--font); }
.stitch-home .market-map-subtitle { font-size: 13px; line-height: 1.5; }
.stitch-home .market-map-layout { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 24px; }
.stitch-home .market-map-viewport { border-radius: 12px; background: var(--surface-2); }
.stitch-home .map-preview { background: var(--surface-2); }
.stitch-home .catalog-telegram { padding: 28px 0 36px; }
.stitch-home .catalog-telegram h2 { font: 600 22px/1.4 var(--font); }
.stitch-home .catalog-telegram .reference-section-head { margin-bottom: 12px; padding: 0; }
.stitch-home .reference-telegram-icon { background: var(--surface-2); color: var(--tg-link); }
.stitch-home .stitch-footer { background: var(--surface); margin-top: 0; padding: 36px 0 80px; border-top: 1px solid var(--border); }
.stitch-footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.4fr; gap: 36px; }
.stitch-footer-grid h2 { font: 600 15px/1.4 var(--font); margin: 0 0 12px; }
.stitch-footer-brand { color: var(--tg-link); font-size: 20px; }
.stitch-footer-grid p, .stitch-footer-grid a { font-size: 13px; line-height: 1.6; color: var(--fg-muted); }
.stitch-footer-grid a { display: block; min-height: 32px; padding-block: 4px; }
.stitch-footer-note { margin: 24px 0 0; font-size: 12px; color: var(--fg-muted); }
@media (hover: hover) and (pointer: fine) {
  .stitch-home .catalog-card:hover { border-color: var(--border-strong); transform: none; }
  .stitch-home .source-tile:hover { border-color: var(--tg-link); }
  .stitch-home .stitch-fuels a:not([aria-pressed="true"]):hover { border-color: var(--tg-link); }
}
@media (max-width: 1180px) {
  .stitch-home .shell { padding-inline: 24px; }
  .stitch-home .results .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .stitch-home .taste-hero, .stitch-home .taste-hero.without-featured-car { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .stitch-home .reference-search-tools { display: none; }
  .stitch-home .catalog-reference-nav a { padding-inline: 10px; }
}
@media (max-width: 1000px) {
  .stitch-home .stitch-header .header-inner { min-height: 64px; height: 64px; }
  .stitch-home .stitch-header .catalog-reference-nav { display: none !important; }
  .stitch-home .stitch-header .listing-menu-toggle:not([hidden]) { display: inline-flex; border-radius: 8px; }
  .stitch-home .taste-hero, .stitch-home .taste-hero.without-featured-car { grid-template-columns: minmax(0, 1fr); }
  .stitch-home .featured-carousel { display: flex; width: 100%; }
  .stitch-home .featured-carousel .detail-media { aspect-ratio: 16/9; max-height: 340px; }
  .stitch-home .market-map-layout { grid-template-columns: minmax(0, 1fr); }
  .stitch-home .stitch-market-ribbon > a { display: none; }
  .stitch-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .stitch-home .results .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .stitch-home .catalog-header-actions .reference-hide-mobile { display: none; }
}
@media (max-width: 640px) {
  .stitch-home .shell { padding-inline: 16px; }
  .stitch-home .stitch-market-ribbon { display: none; }
  .stitch-market-ribbon > div { gap: 4px 12px; font-size: 11px; }
  .stitch-market-ribbon > div > span:last-child { display: none; }
  .stitch-home .search-hero { padding: 16px 0 0; }
  .stitch-home .market-hero-copy { padding: 18px 16px; }
  .site-telegram.stitch-home .taste-hero .catalog-home-title { font-size: 23px; margin: 12px 0 8px; text-wrap: pretty; }
  .stitch-home .hero-description { font-size: 14px; }
  .stitch-home .hero-description { display: none; }
  .stitch-home .catalog-search-row { flex-wrap: nowrap; gap: 0; padding-left: 6px; }
  .stitch-home .catalog-search-row input[type="search"] { flex: 1 1 0; }
  .stitch-home .catalog-search-row .btn-primary { flex: 0 0 auto; width: auto; margin: 0; padding: 0 12px; }
  .stitch-home .catalog-search-row > .reference-search-icon { display: none; }
  .stitch-home .quick-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stitch-home .quick-filter-more { grid-column: auto; }
  .stitch-home .quick-filter-value { max-width: none; }
  .site-telegram.stitch-home .quick-filter-chip { min-height: 48px; }
  .stitch-home .quick-extra > summary { min-height: 48px; padding: 12px; }
  .stitch-home .catalog-trust { display: none; }
  .stitch-home .featured-carousel { padding: 12px; }
  .stitch-home .featured-slide { display: grid; grid-template-columns: minmax(100px, .9fr) minmax(0, 1.1fr); gap: 8px 12px; }
  .stitch-home .featured-slide > .listing-media { grid-column: 1; grid-row: 1; }
  .stitch-home .featured-carousel .detail-media { aspect-ratio: 4/3; }
  .stitch-home .featured-slide > .featured-details { grid-column: 2; grid-row: 1; padding: 0; justify-content: center; }
  .stitch-home .featured-slide > :is(.featured-facts, .featured-meta, .stitch-feature-origin, .media-status) { grid-column: 1/-1; }
  .stitch-home .featured-slide > .stitch-feature-origin { margin: 0; }
  .stitch-home .featured-details { padding-top: 10px; }
  .stitch-home .featured-details h2 { font-size: 17px; }
  .stitch-home .featured-details .price { font-size: 25px; }
  .stitch-home .featured-facts { gap: 4px 12px; }
  .stitch-home .featured-meta { margin-block: 8px; }
  .stitch-home .featured-controls { margin-top: 8px; }
  .stitch-home .quick-filter-chip { flex: 1 0 auto; }
  .stitch-home .quick-extra .quick-filter-chip { flex: none; }
  .stitch-home .stitch-fuels a { flex-grow: 1; }
  .stitch-home .market-directory { padding-top: 18px; }
  .stitch-home .stitch-source-panel { padding: 14px; }
  .stitch-home .market-heading { align-items: start; }
  .stitch-home .stitch-source-panel .market-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; }
  .stitch-home .stitch-source-panel .market-heading p,
  .stitch-home .stitch-source-panel .reference-section-tools [data-open-map] { display: none; }
  .stitch-home .market-heading h2 { font-size: 16px; }
  .stitch-home .source-tile { width: 64px; height: 64px; min-height: 64px; padding: 4px; }
  .stitch-home .source-tile .avatar { width: 52px; height: 52px; font-size: 18px; }
  .stitch-home .catalog-layout-right { padding-top: 20px; }
  .stitch-home .results-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 10px 12px 12px; }
  .stitch-home .results-head .results-count { grid-column: 1; grid-row: 1; }
  .stitch-home .results-head .save-search-link { grid-column: 2; grid-row: 1; justify-content: center; }
  .stitch-home .results-head .mobile-filter-trigger { grid-column: 1; grid-row: 2; justify-content: center; }
  .stitch-home .results-head .view-switch { grid-column: 2; grid-row: 2; justify-content: center; }
  .stitch-home .results-head .view-switch button { min-width: 44px; }
  .stitch-home .results-head .view-switch button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .stitch-home .results-head .field-inline { grid-column: 1/-1; grid-row: 3; }
  .stitch-home .results-head .results-count { flex-basis: 100%; }
  .stitch-home .results-head .field-inline { flex: 1 1 100%; }
  .stitch-home .results-head select { flex: 1; }
  .stitch-home .catalog-results-heading { padding: 14px 12px 0; }
  .stitch-home .market-map-panel { padding: 16px; }
  .stitch-home .market-map-panel h2 { font-size: 22px; }
}
@media (max-width: 560px) {
  :root:not([data-catalog-view="stream"]) .stitch-home .results .grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .stitch-home .catalog-card-body { padding: 16px; }
  :root:not([data-catalog-view="stream"]) .stitch-home .results .card-title { font-size: 18px; }
  .stitch-home .catalog-card .price { font-size: 24px; }
  .stitch-home .catalog-specs { font-size: 13px; }
  .stitch-home .catalog-card > .catalog-card-actions { grid-template-columns: 44px 44px 44px minmax(0, 1fr); grid-template-rows: auto 44px; padding-inline: 16px; }
  .stitch-home .catalog-card-actions .catalog-source-logo { grid-column: 1/-1; grid-row: 1; width: auto; height: auto; }
  .stitch-home .stitch-footer { padding-top: 24px; }
  .stitch-footer-grid { gap: 24px; }
  .stitch-footer-grid > :first-child, .stitch-footer-grid > :last-child { grid-column: 1/-1; }
}
:root[data-catalog-view="stream"] .stitch-home .results .grid { grid-template-columns: minmax(0, 1fr); }
:root[data-catalog-view="stream"] .stitch-home .catalog-excerpt { display: -webkit-box; }
@media (prefers-reduced-motion: reduce) {
  .stitch-home *, .stitch-home *::before { scroll-behavior: auto; }
}
