/* Structure from the supplied artboards; existing semantic colours and interactions. */
.stitch-home .market-geography-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.15fr); gap:24px; align-items:start; }
.stitch-home .market-geography-layout .market-map-layout { display:grid; grid-template-columns:minmax(0,1fr); gap:12px; margin:0; }
.stitch-home .market-map-panel .market-map-viewport { height:300px; min-height:0; aspect-ratio:auto; }
.stitch-home .market-map-panel .market-map-head { align-items:start; }
.stitch-home .market-map-panel .map-preview { max-height:180px; overflow:auto; }
.stitch-home .market-map-panel .market-map-side { max-height:240px; overflow:auto; }
.stitch-home .market-map-panel .map-source-list ul { max-height:180px; overflow:auto; padding:8px; }
.stitch-home .market-map-panel .map-navigation { flex-wrap:wrap; }
.stitch-home .market-map-panel .map-legend { max-height:110px; overflow:auto; }
.stitch-home .market-map-panel #map-navigation-help { font-size:12px; }
.region-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.region-tile { display:flex; align-items:center; gap:10px; min-height:76px; padding:12px; background:var(--surface-2); border:1px solid var(--border); border-radius:10px; text-decoration:none; color:var(--fg); }
.region-tile > span { min-width:0; }
.region-tile strong { font-size:13px; display:block; overflow-wrap:anywhere; }
.region-tile small { display:block; font-size:11px; color:var(--fg-muted); }
.region-initial { flex:0 0 32px; width:32px; height:36px; display:grid; place-items:center; background:var(--surface); border-radius:6px; color:var(--tg-link); font-size:12px; }
.region-count { margin-left:auto; text-align:right; }
.region-count b { font-size:18px; color:var(--tg-link); }
.region-tile[aria-current] { border-color:var(--tg-link); box-shadow:inset 0 0 0 1px var(--tg-link); }
.region-more summary { min-height:44px; align-content:center; cursor:pointer; }
.region-more > .region-grid { max-height:240px; overflow:auto; }
.stitch-footer { background:var(--surface); border-top:1px solid var(--border); padding:32px 0 80px; }
.stitch-footer-grid { display:grid; grid-template-columns:1.2fr 1fr 1fr 1.4fr; gap:24px; }
.stitch-footer-grid h2 { font-size:15px; margin:0 0 12px; }
.stitch-footer-grid a { display:block; min-height:44px; padding:8px 0; font-size:13px; }
.stitch-footer-grid p { font-size:13px; color:var(--fg-muted); }
.stitch-footer-note,.stitch-copyright { font-size:12px; color:var(--fg-muted); margin-top:24px; }
.auth-minimal-footer { display:flex; justify-content:center; flex-wrap:wrap; gap:20px; padding:20px; font-size:13px; }
.auth-minimal-footer a { min-height:44px; display:inline-flex; align-items:center; }
.inventory-panel .pagination a { min-width:44px; min-height:44px; display:inline-flex; align-items:center; justify-content:center; border:1px solid var(--border); border-radius:8px; }
.inventory-panel .pagination a[aria-current] { background:var(--surface-2); border-color:var(--tg-link); }
.site-telegram.stitch-auth .telegram-auth-benefits { flex:none; display:block; height:auto; }
.site-telegram.stitch-auth .telegram-auth-benefits ul { align-items:start; margin:0; padding:0; }
.site-telegram.stitch-auth .telegram-auth-benefits h2.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); }
.auth-registration-link { font-size:14px; text-align:center; margin:0; }
.workspace-header-badge { font-size:11px; background:var(--surface-2); padding:4px 8px; border-radius:6px; }
.stitch-workspace .telegram-header .telegram-back { margin-left:auto; border:0; background:none; order:1; }
.stitch-workspace .telegram-header [data-reference-theme] { order:2; }
.stitch-workspace .telegram-header .telegram-me { order:3; margin-left:0; }
.telegram-me small { display:block; font-size:11px; color:var(--fg-muted); }
.stitch-workspace .telegram-side-note { display:none; }
.stitch-car .stitch-header .catalog-reference-nav a.on { box-shadow:none; }
.stitch-car .stitch-header .catalog-reference-nav a { white-space:nowrap; }
.stitch-home .catalog-results-heading { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.catalog-display-count { text-align:center; color:var(--fg-muted); font-size:13px; margin:20px 0 0; }
.featured-source-block { padding:10px; background:var(--surface-2); border-radius:8px; text-decoration:none; margin-top:12px; }
.featured-source-block small { display:block; font-size:11px; }
.stitch-home .featured-controls { justify-content:flex-end; background:none; padding:0; }
.stitch-home .featured-switch { margin-left:auto; }
.inventory-sync { max-height:220px; overflow:auto; }
.inventory-sync > div { display:flex; flex-wrap:wrap; align-items:center; gap:8px 16px; padding:8px 0; font-size:13px; }
.inventory-sync > div > span { color:var(--fg-muted); }
.inventory-panel h1 { font-size:24px; margin:0; }
.inventory-toolbar { display:flex; flex-wrap:wrap; gap:16px; align-items:center; justify-content:space-between; }
.inventory-search { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.stitch-workspace .inventory-panel .inventory-search { display:flex; flex-direction:row; align-items:center; flex:1 1 460px; }
.inventory-search label:first-of-type { flex:1 1 200px; }
.inventory-search label:first-of-type input { width:100%; }
.stitch-workspace .inventory-panel .inventory-search button { width:auto; }
.inventory-search input,.inventory-search select { min-width:0; min-height:44px; border:1px solid var(--control-border); background:var(--surface-2); color:var(--fg); border-radius:8px; padding:10px; }
.inventory-advanced > summary { min-height:44px; cursor:pointer; align-content:center; }
.inventory-table-head { display:grid; grid-template-columns:minmax(160px,1.5fr) 100px minmax(130px,1fr) 100px 80px 100px; gap:12px; padding:12px 0; font-size:11px; color:var(--fg-muted); background:var(--surface-2); }
.stitch-workspace .inventory-rows .telegram-listing-row { grid-template-columns:56px minmax(90px,1.5fr) 100px minmax(130px,1fr) 100px 80px 100px; gap:10px 12px; }
.stitch-workspace .inventory-rows .telegram-listing-image { grid-column:1; grid-row:1; width:56px; }
.stitch-workspace .inventory-rows .telegram-listing-main { grid-column:2; grid-row:1; }
.stitch-workspace .inventory-rows .telegram-listing-price { grid-column:3; grid-row:1; font-size:16px; }
.inventory-rows .telegram-listing-price del { display:block; font-size:11px; font-weight:400; color:var(--fg-muted); }
.stitch-workspace .inventory-rows .stitch-listing-facts { grid-column:4; grid-row:1; }
.stitch-workspace .inventory-rows .status { grid-column:5; grid-row:1; }
.stitch-workspace .inventory-rows .telegram-listing-views { grid-column:6; grid-row:1; }
.stitch-workspace .inventory-rows .stitch-row-source { grid-column:7; grid-row:1; }
.stitch-workspace .inventory-rows .stitch-row-source > span:not(.avatar) { display:none; }
.stitch-workspace .inventory-rows .telegram-listing-row > :is(form,.btn-secondary) { grid-column:7; grid-row:2; }
.inventory-notifications { display:grid!important; grid-template-columns:1.3fr 1fr; gap:24px; }
.inventory-notifications > div:last-child { background:var(--surface-2); padding:16px; border-radius:12px; }
.inventory-notifications li { margin:10px 0; font-size:14px; }
.listing-top-actions { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-bottom:16px; }
.listing-top-actions .listing-actions { margin:0!important; }
.detail-price-block { display:flex; flex-direction:column; align-items:end; gap:6px; }
.detail-price-block .price { margin:0; }
.price-change { display:block; font-size:12px; padding:6px 10px; border-radius:8px; background:var(--surface-2); }
.price-change small { display:block; }
.price-change.is-lower { color:var(--ok-fg); }
.listing-technical .specs .spec-vin { grid-column:1/-1; }
.spec-vin small { display:block; font-size:12px; font-weight:400; color:var(--fg-muted); margin-top:6px; }
.listing-timeline { margin-top:28px; }
.listing-timeline h2 { font-size:18px; }
.listing-timeline ol { list-style:none; padding-left:14px; border-left:2px solid var(--border-strong); }
.listing-timeline li { position:relative; padding:8px 0 16px 12px; }
.listing-timeline li::before { content:''; width:10px; height:10px; border-radius:50%; background:var(--tg-link); position:absolute; left:-20px; top:14px; }
.listing-timeline li span { display:block; font-size:13px; color:var(--fg-muted); }
.listing-timeline li strong { font-size:14px; }
.original-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.original-heading small { color:var(--fg-muted); }
.listing-contact-bar { position:sticky; bottom:0; z-index:4; display:flex; flex-wrap:wrap; align-items:center; gap:10px; padding:12px 0 max(12px,env(safe-area-inset-bottom)); background:var(--surface); border-top:1px solid var(--border); margin-top:24px; }
.listing-contact-bar > div:first-child { flex:1 1 180px; min-width:0; }
.listing-contact-bar small,.listing-contact-bar strong { display:block; overflow-wrap:anywhere; }
.listing-contact-bar small { color:var(--fg-muted); font-size:12px; }
.listing-contact-bar .listing-actions { margin:0!important; }
.listing-contact-bar a { min-height:44px; }
.stitch-car .detail-main,#quick-view { scroll-padding-bottom:220px; }
.stitch-car .detail-main :is(a,button),#quick-view :is(a,button) { scroll-margin-bottom:220px; }
.listing-contact-bar .write-btn { background:var(--tg-primary)!important; color:white!important; }
#quick-view .listing-technical .specs { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
#quick-view .listing-technical .specs > div { background:var(--surface-2); padding:12px; border:0; border-radius:10px; }
#quick-view .listing-technical dt { font-size:12px; color:var(--fg-muted); }
#quick-view .listing-technical dd { margin:6px 0 0; overflow-wrap:anywhere; }
#original-post,[id^=flyout-original] { scroll-margin-top:100px; }
@media(max-width:1280px){
 .stitch-home .market-geography-layout { grid-template-columns:minmax(0,1fr); }
 .stitch-footer-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .stitch-car .stitch-header .catalog-reference-nav { display:none!important; }
 .stitch-car .stitch-header .header-inner { flex-wrap:nowrap; }
 .inventory-table-head { display:none; }
 .stitch-workspace .inventory-rows .telegram-listing-row { grid-template-columns:56px minmax(0,1fr) 100px; }
 .stitch-workspace .inventory-rows .stitch-listing-facts { grid-column:2; grid-row:2; }
 .stitch-workspace .inventory-rows .status { grid-column:3; grid-row:2; }
 .stitch-workspace .inventory-rows .telegram-listing-views { grid-column:2; grid-row:3; }
 .stitch-workspace .inventory-rows .stitch-row-source { grid-column:1; grid-row:3; }
 .stitch-workspace .inventory-rows .telegram-listing-row > :is(form,.btn-secondary) { grid-column:3; grid-row:3; }
}
@media(max-width:640px){
 .region-grid { grid-template-columns:minmax(0,1fr); }
 .stitch-footer-grid > :first-child,.stitch-footer-grid > :last-child { grid-column:1/-1; }
 .workspace-header-badge { display:none; }
 .stitch-home .market-map-panel .map-legend { display:none; }
 .listing-contact-bar { padding-bottom:max(16px,env(safe-area-inset-bottom)); }
 #quick-view .listing-technical .specs { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .detail-price-block { align-items:start; }
 .inventory-notifications { grid-template-columns:minmax(0,1fr); }
 .inventory-search,.inventory-search label { width:100%; }
 .inventory-search input,.inventory-search select { width:100%; font-size:16px; }
 .stitch-workspace .inventory-rows .telegram-listing-row { grid-template-columns:56px minmax(0,1fr); }
 .stitch-workspace .inventory-rows .telegram-listing-price { grid-column:2; grid-row:2; }
 .stitch-workspace .inventory-rows .stitch-listing-facts { grid-column:1/-1; grid-row:3; }
 .stitch-workspace .inventory-rows .status { grid-column:1/-1; grid-row:4; }
 .stitch-workspace .inventory-rows .telegram-listing-views { grid-column:2; grid-row:5; }
 .stitch-workspace .inventory-rows .stitch-row-source { grid-column:1; grid-row:5; }
 .stitch-workspace .inventory-rows .telegram-listing-row > :is(form,.btn-secondary) { grid-column:1/-1; grid-row:6; }
 .stitch-home .featured-slide > .featured-source-block { grid-column:1/-1; }
}
