/* One responsive storefront header. Loaded only by the isolated test template. */
/* V3: real recommendation feed, quiet sidebar, and the designer's interactive states. */
.swapi-publish,.swapi-city,.swapi-header-nav a,.home-toolbar-button,.home-ad-favorite{transition:color .16s,background-color .16s,box-shadow .16s}
body .swapi-publish:hover,body .swapi-publish:focus-visible{background:#087fff!important;color:#fff!important}
body .swapi-site-header .swapi-city:hover,body .swapi-site-header .swapi-city:focus-visible,.swapi-header-nav a:hover,.swapi-header-nav a:focus-visible{color:#087fff!important}
body[data-page-name="index"] .home-feed-toolbar{margin-top:0!important}
body .home-sort .catalog-modern-sort{position:relative!important}
body .home-sort .catalog-modern-sort.open .account-ads-sort-button{color:#087fff!important;background:#f5f5f5!important;border-radius:18px!important;padding:0 9px!important}
body .home-sort .catalog-modern-sort.open .swapi-sort-chevron{transform:rotate(180deg)}
body .home-sort .catalog-modern-sort .account-ads-sort-menu{position:absolute!important;top:calc(100% + 8px)!important;right:0!important;left:auto!important;min-width:166px!important;width:max-content!important;max-width:240px!important;padding:8px!important;border:0!important;border-radius:16px!important;background:#f5f5f5!important;box-shadow:0 6px 18px rgb(0 0 0 / 6%)!important;z-index:100!important}
body .home-sort .catalog-modern-sort .account-ads-sort-menu a{position:relative!important;display:block!important;margin:0!important;padding:5px 26px 5px 5px!important;border:0!important;border-radius:7px!important;color:#333!important;background:transparent!important;font-size:12px!important;line-height:18px!important;white-space:nowrap}
body .home-sort .catalog-modern-sort .account-ads-sort-menu a:hover,body .home-sort .catalog-modern-sort .account-ads-sort-menu a:focus-visible{color:#087fff!important;background:#fff!important}
body .home-sort .catalog-modern-sort .account-ads-sort-menu a.active:after{content:"";position:absolute;right:7px;top:50%;width:12px;height:12px;transform:translateY(-50%);background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8 3 3 7-7' fill='none' stroke='%23333' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
body:is([data-page-name="index"],[data-page-name="catalog"]) .home-ad-photo .home-ad-views{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:3px!important;left:8px!important;bottom:8px!important;top:auto!important;right:auto!important;min-width:35px!important;height:24px!important;padding:3px 5px!important;border:0!important;border-radius:5px!important;background:rgb(255 255 255 / 78%)!important;box-shadow:none!important;color:#777!important;font-size:13px!important;line-height:18px!important;font-weight:400!important;backdrop-filter:blur(3px)}
.home-ad-views .swapi-icon{display:block!important;flex:0 0 18px!important;width:18px!important;height:18px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.3}
body:is([data-page-name="index"],[data-page-name="catalog"]) .home-ad-row .home-ad-favorite{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:32px!important;height:32px!important;border:0!important;border-radius:50%!important;background:rgb(255 255 255 / 88%)!important;box-shadow:none!important;color:#888!important;cursor:pointer}
body .home-ad-favorite .home-ad-favorite-svg{width:20px!important;height:20px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.3!important;overflow:visible}
body .home-ad-favorite:hover,body .home-ad-favorite:focus-visible,body .home-ad-favorite.home-ad-favorite-active{color:#f04452!important;background:#fff!important}
body .home-ad-favorite:hover .home-ad-favorite-svg,body .home-ad-favorite:focus-visible .home-ad-favorite-svg,body .home-ad-favorite.home-ad-favorite-active .home-ad-favorite-svg{fill:#f04452!important;stroke:#f04452!important}
body[data-page-name="index"] .home-rightbar .home-side-card.home-promo-card,body[data-page-name="index"] .home-rightbar .home-side-card.home-blog-card{padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
body[data-page-name="index"] .home-rightbar .home-promo-card .home-sidebar-promo-slider,body[data-page-name="index"] .home-rightbar .home-promo-card .place-banner,body[data-page-name="index"] .home-rightbar .home-promo-card .place-banner-content{padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
body[data-page-name="index"] .home-rightbar .home-sidebar-promo-slider,body[data-page-name="index"] .home-rightbar .home-sidebar-promo-slide,body[data-page-name="index"] .home-rightbar .home-sidebar-promo-link,body[data-page-name="index"] .home-rightbar .home-sidebar-promo-slider .slick-list,body[data-page-name="index"] .home-rightbar .home-sidebar-promo-slider .slick-track{height:auto!important;min-height:0!important;background:transparent!important}
body[data-page-name="index"] .home-rightbar .home-sidebar-promo-slider img{height:auto!important;object-fit:contain!important}
body[data-page-name="index"] .home-rightbar .home-sidebar-promo-slider .slick-list{border-radius:16px!important}
body[data-page-name="index"] .home-rightbar .home-sidebar-promo-slider img{display:block!important;width:100%!important;border-radius:16px!important}
body[data-page-name="index"] .home-rightbar .home-sidebar-promo-slider .slick-dots{position:static!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;margin:10px 0 0!important;padding:0!important;height:10px!important;background:transparent!important}
body[data-page-name="index"] .home-rightbar .home-sidebar-promo-slider .slick-dots li{width:6px!important;height:6px!important;margin:0!important}
body[data-page-name="index"] .home-rightbar .home-sidebar-promo-slider .slick-dots button{display:block!important;width:6px!important;height:6px!important;min-width:0!important;padding:0!important;border-radius:50%!important;background:#d4d4d4!important;font-size:0!important}
body[data-page-name="index"] .home-rightbar .home-sidebar-promo-slider .slick-dots .slick-active button{background:#333!important}
body[data-page-name="index"] .home-rightbar .home-sidebar-promo-slider .slick-dots button:before{content:none!important}
body[data-page-name="index"] .home-blog-card .home-blog-list,body[data-page-name="index"] .home-blog-card .home-blog-item{background:transparent!important;box-shadow:none!important;border:0!important}
/* App badges are explicitly inert placeholders until official store releases. */
body footer.swapi-footer{display:block!important;width:100%!important;margin:0!important;padding:70px 0 28px!important;border:0!important;border-radius:0!important;background:#fff!important;color:#333!important;box-shadow:none!important}
/* Ad details keep the footer on the page background, separated from related ads. */
body[data-page-name="ad_view"] footer.swapi-footer{margin-top:40px!important;background:transparent!important}
@media(max-width:767px){body[data-page-name="ad_view"] footer.swapi-footer{margin-top:24px!important}}
.swapi-footer-inner{width:min(1760px,calc(100% - 64px));max-width:1760px;margin:0 auto}
.swapi-footer-apps{display:flex;flex-wrap:wrap;gap:12px;margin-top:40px}
/* Static payment marks: no links, buttons, event handlers or payment integration. */
.swapi-footer-media{display:flex;flex-wrap:wrap;align-items:center;gap:24px 64px;margin-top:40px}
.swapi-footer-media>.swapi-footer-apps{margin-top:0}
.swapi-footer-payments{display:flex;flex-wrap:wrap;align-items:center;gap:14px;max-width:100%}
.swapi-payment-badge{display:inline-flex;align-items:center;justify-content:center;flex:0 0 60px;box-sizing:border-box;width:60px;height:40px;padding:5px;border:1px solid #dedee3;border-radius:3px;background:#fff;cursor:default;user-select:none}
.swapi-payment-badge img{display:block;width:44px;height:26px;max-width:100%;object-fit:contain}
.swapi-payment-badge-yoomoney{flex-basis:108px;width:108px}
.swapi-payment-badge-yoomoney img{width:92px}
@media(max-width:767px){
    .swapi-footer-media{gap:24px;margin-top:30px}
    .swapi-footer-payments{gap:8px}
    .swapi-payment-badge{flex-basis:52px;width:52px;height:36px;padding:4px}
    .swapi-payment-badge-yoomoney{flex-basis:94px;width:94px}
}
.swapi-app-badge{display:inline-flex;align-items:center;flex:0 0 auto;min-width:0;height:43px;padding:0;border:0;border-radius:0;background:transparent;color:#242424;line-height:0;cursor:default}
.swapi-app-badge img{display:block;width:auto;height:43px;max-width:100%;object-fit:contain}
.swapi-app-badge:focus-visible{outline:2px solid #087fff;outline-offset:3px}
@media(max-width:991px){.swapi-footer-inner{width:calc(100% - 32px)}}
.swapi-footer-grid{display:grid;grid-template-columns:1.2fr repeat(4,minmax(0,1fr));gap:40px;align-items:start}
.swapi-footer-brand{max-width:230px}
.swapi-footer-logo{display:inline-flex;flex-direction:column;align-items:flex-start;gap:3px;color:#222!important;text-decoration:none!important}
.swapi-footer-logo img{display:block;width:138px;height:auto}
.swapi-footer-logo span{font-size:8px;line-height:10px;font-weight:400;white-space:nowrap}
.swapi-footer-brand p{margin:20px 0 16px;font-size:12px;line-height:1.5;color:#333}
.swapi-footer-social{display:flex;gap:10px;align-items:center}
.swapi-footer-social a{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:8px;color:#fff;background:transparent}
.swapi-footer-social img{display:block;width:28px;height:28px;object-fit:contain}
.swapi-footer-column h2{margin:2px 0 16px;padding:0;font-size:12px;line-height:18px;font-weight:600;color:#222}
.swapi-footer-column a{display:block;width:fit-content;margin:0 0 10px;font-size:12px;line-height:18px;font-weight:400;color:#333}
.swapi-footer a:hover,.swapi-footer a:focus-visible{color:#087fff}
.swapi-footer-social a:hover{color:#fff;opacity:.85}
.swapi-footer-legal{margin-top:64px;max-width:1400px}
.swapi-footer-legal p{margin:0 0 5px;font-size:11px;line-height:1.5;color:#555}
.swapi-footer-legal a{color:inherit;text-decoration:underline;text-underline-offset:2px}
@media(max-width:1100px){.swapi-footer-grid{gap:22px}.swapi-footer-column h2,.swapi-footer-column a{font-size:11px}.swapi-footer-brand p{font-size:11px}}
@media(max-width:767px){
    body footer.swapi-footer{padding:35px 0 90px!important}
    .swapi-footer-inner{width:calc(100% - 32px)}
    .swapi-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 20px}
    .swapi-footer-brand{grid-column:1/-1;max-width:310px}
    .swapi-footer-brand p{margin:14px 0;font-size:12px}
    .swapi-footer-column h2,.swapi-footer-column a{font-size:12px}
    .swapi-footer-legal{margin-top:30px}
}
/* The shared header also has the legacy mobile class: never clip live results. */
html body header.swapi-site-header.header-wow.header-wow-mobile{position:sticky!important;top:0!important;z-index:110!important;display:block!important;width:100%!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;background:#fff!important;box-shadow:none!important;border:0!important;overflow:visible!important}
body .swapi-header-frame.header-wow-sticky-container{position:static!important;inset:auto!important;transform:none!important;width:min(1760px,calc(100% - 64px))!important;max-width:1760px!important;min-height:0!important;height:auto!important;margin:0 auto!important;padding:8px 0 18px!important;border:0!important;box-shadow:none!important;background:#fff!important;overflow:visible!important}
.swapi-site-header .header-wow-top{display:none!important}
.swapi-icon{display:inline-block;width:22px;height:22px;flex-shrink:0;vertical-align:middle}
.swapi-header-topline{display:flex;align-items:center;justify-content:space-between;min-height:22px;margin-bottom:12px;gap:20px}
.swapi-location-actions{display:flex;align-items:center;gap:8px;min-width:0}
.swapi-location-actions{position:relative}
body .swapi-city-picker[hidden],body .swapi-city-status[hidden]{display:none!important}
body .swapi-city-picker{position:absolute;left:0;top:calc(100% + 8px);z-index:130;width:min(248px,calc(100vw - 32px));padding:10px;border:1px solid #e9e9ed;border-radius:12px;background:#fff;box-shadow:0 8px 28px rgb(25 35 55 / 12%);color:#222}
.swapi-city-picker-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}
.swapi-city-picker-heading h2{margin:0;padding:0;color:#17191f;font-size:14px;line-height:20px;font-weight:600}
.swapi-city-close{display:flex;align-items:center;justify-content:center;width:22px;height:22px;padding:2px;border:0;border-radius:4px;background:transparent;color:#222;cursor:pointer}
.swapi-city-close .swapi-icon{width:16px;height:16px;stroke-width:1.4}
.swapi-city-search-box{display:flex;align-items:center;gap:7px;height:32px;padding:0 8px;margin:0 0 6px;border:1px solid #ededf0;border-radius:5px;background:#fff}
.swapi-city-search-box>.swapi-icon{width:15px;height:15px;color:#989da5}
body .swapi-city-search-box .swapi-city-search{position:static!important;width:100%!important;height:28px!important;min-width:0;margin:0!important;padding:0!important;border:0!important;outline:0;background:transparent!important;box-shadow:none!important;color:#222;font-family:inherit;font-size:12px;line-height:28px}
.swapi-city-search::placeholder{color:#969ca6;opacity:1}
.swapi-city-search-box:focus-within{border-color:#ededf0;box-shadow:none}
.swapi-city-search-box:has(input:focus-visible){border-color:#a4acb7}
.swapi-city-options .swapi-city-option[hidden]{display:none!important}
.swapi-city-options{max-height:min(238px,calc(100dvh - 235px));overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
body .swapi-city-picker .swapi-city-option{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:28px;margin:0;padding:5px 7px;border:0;border-radius:4px;background:transparent;color:#222;font-size:13px;line-height:18px;font-weight:400;text-decoration:none}
.swapi-city-option>span{min-width:0;overflow-wrap:anywhere}
.swapi-city-option small{display:block;font-size:10px;line-height:14px;color:#8993a1}
.swapi-city-check{display:none;flex:0 0 15px}
body .swapi-city-picker .swapi-city-option:hover,body .swapi-city-picker .swapi-city-option:focus-visible,body .swapi-city-picker .swapi-city-option.is-selected{background:#e8f2ff;color:#087fff}
.swapi-city-option.is-selected .swapi-city-check{display:block}
.swapi-city-status{margin:7px 5px;color:#6c7685;font-size:11px;line-height:16px}
.swapi-city-detect{display:flex;align-items:center;gap:7px;width:100%;margin-top:8px;padding:9px 5px 2px;border:0;border-top:1px solid #eeeeF2;background:transparent;color:#087fff;text-align:left;font-family:inherit;font-size:12px;line-height:18px;font-weight:400;cursor:pointer}
.swapi-city-detect:disabled{opacity:.55;cursor:wait}
.swapi-city-close:focus-visible,.swapi-city-detect:focus-visible{outline:2px solid #82b8ff;outline-offset:2px}
@media(max-width:420px){body .swapi-city-picker{width:min(248px,calc(100vw - 32px))}}
body .swapi-site-header .swapi-city{position:static!important;display:inline-flex;align-items:center;gap:4px;width:auto;max-width:260px;padding:0!important;border:0;background:none;color:#303030;font-family:inherit;font-weight:400;font-size:12px;line-height:20px;cursor:pointer}
.swapi-city .swapi-icon{width:16px;height:16px}
.swapi-city span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.swapi-city-reset{display:inline-flex;align-items:center;justify-content:center;color:#7a7a7a}
.swapi-city-reset .swapi-icon{width:14px;height:14px}
.swapi-header-nav{display:flex;align-items:center;gap:26px}
.swapi-header-nav a{font-size:12px;line-height:20px;font-weight:400;color:#333;white-space:nowrap}
.swapi-header-nav a:hover,.swapi-login:hover{color:#087fff}
.swapi-header-main{display:grid;grid-template-columns:280px minmax(180px,1fr) max-content;align-items:center;gap:26px}
.swapi-logo{display:inline-flex;flex-direction:column;align-items:flex-start;justify-self:start;gap:3px;text-decoration:none!important;color:#222!important}
.swapi-logo img{display:block;width:170px!important;height:25px!important;max-width:none!important;object-fit:contain;object-position:left center}
.swapi-logo span{display:block;width:180px;font-size:10px;font-weight:400;line-height:12px;letter-spacing:0;white-space:nowrap}
.swapi-search{position:relative;min-width:0;width:100%}
.swapi-search-form{display:flex!important;align-items:center;gap:8px;width:100%;margin:0}
.swapi-search-field{position:relative;flex:1 1 auto;min-width:0;display:flex;align-items:center;height:46px;border:1px solid #1683ff;border-radius:9px;background:#fff;transition:box-shadow .15s}
.swapi-search-field:focus-within{box-shadow:0 0 0 3px rgb(22 131 255 / 10%)}
body .swapi-search-field .ajax-live-search{position:static!important;display:block!important;width:100%!important;min-width:0!important;height:44px!important;margin:0!important;padding:0 43px 0 36px!important;border:0!important;border-radius:9px!important;background:transparent!important;box-shadow:none!important;text-indent:0!important;color:#30343b!important;font-size:14px!important;line-height:44px!important;font-weight:400!important;outline:none!important}
body .swapi-search-field .ajax-live-search::placeholder{color:#a4a7ad!important;font-size:14px!important;font-weight:400!important;opacity:1!important;letter-spacing:.1px!important;padding:0!important}
.swapi-search-glass{position:absolute;left:12px;top:50%;transform:translateY(-50%);display:flex;color:#a4a7ad;pointer-events:none}
.swapi-search-glass .swapi-icon{width:16px;height:16px}
body .swapi-site-header .swapi-photo-search.header-search-camera{position:absolute!important;inset:auto 8px auto auto!important;top:50%!important;transform:translateY(-50%)!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;width:28px!important;height:30px!important;min-width:0!important;margin:0!important;padding:3px!important;border:0!important;border-radius:5px!important;background:transparent!important;box-shadow:none!important;color:#999!important;cursor:pointer}
.swapi-photo-search .swapi-icon{width:19px;height:19px}
.swapi-photo-search:hover{color:#087fff!important;background:#f2f7ff!important}
.swapi-search-submit{flex:0 0 auto;height:46px;min-width:69px;padding:0 13px;border:0;border-radius:8px;background:#087fff;color:#fff;font-size:14px;font-weight:600;cursor:pointer}
.swapi-search-submit:hover{background:#006ee7}
.swapi-search .main-search-results{top:calc(100% + 5px)!important;left:0!important;right:77px!important;width:auto!important;z-index:115}
.swapi-header-actions{display:flex;align-items:center;gap:12px;white-space:nowrap}
.swapi-publish{display:inline-flex;align-items:center;justify-content:center;gap:5px;height:46px;padding:0 14px;border-radius:8px;background:#ff6b4a;color:#fff!important;text-decoration:none!important;font-size:13px;font-weight:500;line-height:1}
.swapi-publish:hover{background:#f75b3b}
.swapi-publish .swapi-icon{width:18px;height:18px;stroke-width:1.8}
.swapi-action{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 24px;width:24px;height:36px;padding:0;border:0;background:transparent;box-shadow:none;color:#353535;cursor:pointer}
.swapi-action:hover{color:#087fff}
.swapi-action>.swapi-icon{width:20px;height:20px}
.swapi-login{display:inline-flex;align-items:center;gap:5px;font-size:13px;line-height:22px;color:#333}
.swapi-login>.swapi-icon{width:17px;height:17px}
.swapi-account{position:relative}
.swapi-account .header-account-trigger{display:inline-flex;align-items:center;gap:4px;cursor:pointer}
.swapi-account .mini-avatar{margin:0!important}
.swapi-account .mini-avatar-img,.swapi-account .mini-avatar img{display:block;width:32px!important;height:32px!important;border-radius:50%;object-fit:cover}
/* The existing active-tariff helper puts the class on the new account wrapper. */
.swapi-account.tariff-ring .mini-avatar{display:inline-flex!important;align-items:center;justify-content:center;width:38px!important;height:38px!important;padding:1px!important;border:2px solid var(--tariff-ring-color,#1687ff)!important;border-radius:50%!important;background:#fff!important;box-sizing:border-box!important}
.swapi-account .header-account-trigger>.la-angle-down{display:none!important}
.swapi-account .toolbar-dropdown-box{top:calc(100% + 8px)!important;right:0!important;left:auto!important}
.swapi-avatar{display:flex;align-items:center;justify-content:center}
.swapi-avatar img{border-radius:50%;object-fit:cover}
.swapi-account-menu{display:none;position:absolute;right:0;top:100%;min-width:250px;padding-top:8px;z-index:120}
.swapi-account:hover .swapi-account-menu,.swapi-account:focus-within .swapi-account-menu{display:block}
.swapi-mobile-menu{display:none;border:0;background:transparent;color:#333}
.swapi-country .header-country-trigger{display:flex!important;align-items:center;width:22px!important;height:20px!important;padding:0!important;border:0;background:none}
.swapi-country .header-country-trigger img{width:18px!important;height:13px!important;object-fit:cover;border-radius:2px}
.swapi-country .header-country-menu{top:100%;left:0;right:auto}
.swapi-geo-dialog{display:none;position:fixed!important;inset:50% auto auto 50%!important;transform:translate(-50%,-50%)!important;width:min(1120px,calc(100vw - 40px))!important;max-height:calc(100vh - 40px)!important;z-index:1200!important;border:1px solid #e7edf4;border-radius:16px;background:#fff;box-shadow:0 24px 70px rgb(10 31 68 / 26%);overflow:hidden;padding:0!important}
.swapi-geo-dialog>.header-wow-sticky-search{width:100%!important;height:auto!important;background:#fff!important;border:0!important}
.swapi-geo-dialog .sticky-search-geo-list{position:static!important;max-height:none!important;width:100%!important;margin:0!important;padding:0!important;box-shadow:none!important;border:0!important;overflow:hidden!important}
.swapi-geo-dialog .desktop-geo-menu{display:grid;grid-template-columns:320px minmax(0,1fr);max-height:calc(100vh - 40px);min-height:min(620px,calc(100vh - 40px))}
.swapi-geo-dialog .desktop-geo-menu-sidebar{padding:28px 22px}
.swapi-geo-dialog .desktop-geo-menu-content{padding:30px 56px 32px 34px}
body[data-page-name="index"] .home-feed-toolbar{display:flex!important;flex-wrap:wrap!important;justify-content:space-between!important;align-items:center!important;gap:12px!important;margin:12px 0 20px!important;min-height:32px!important}
body[data-page-name="index"] .home-seo-h1{display:block!important;flex:1 1 auto;width:auto!important;min-width:0!important;margin:0!important;padding:0!important;font-size:20px!important;line-height:30px!important;font-weight:400!important;color:#262626!important}
body[data-page-name="index"] .home-seo-h1:after{content:none!important}
.swapi-name-underline{position:relative;display:inline-block}
.swapi-name-underline svg{position:absolute;bottom:-3px;left:-2px;width:calc(100% + 5px);height:8px;overflow:visible;color:#1683ff}
body[data-page-name="index"] .home-feed-tabs{flex:1 0 100%;order:3;display:flex!important;gap:16px!important;width:100%!important;overflow-x:auto;white-space:nowrap;min-height:26px!important}
body[data-page-name="index"] .home-feed-tab{padding:3px 0!important;font-size:12px!important;font-weight:400!important;border:0!important}
body[data-page-name="index"] .home-feed-tab.active{color:#087fff!important}
body .home-feed-actions{position:static!important;display:flex!important;align-items:center!important;gap:9px!important;flex:0 0 auto!important;margin:0!important}
body .home-toolbar-button{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:24px!important;min-width:24px!important;height:30px!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#8f9196!important}
.home-toolbar-button .swapi-icon{width:19px;height:19px}
body .home-toolbar-button.active,body .home-toolbar-button:hover{color:#087fff!important}
body .home-feed-toolbar .home-feed-actions .home-toolbar-button[data-home-view],body .home-feed-toolbar .home-feed-actions .home-toolbar-button[data-catalog-view]{display:inline-flex!important;width:24px!important;height:30px!important;min-width:24px!important;border:0!important;background:none!important;box-shadow:none!important;padding:0!important}
.home-toolbar-button[data-home-view="list"],.home-toolbar-button[data-catalog-view="list"]{order:1}
.home-toolbar-button[data-home-view="grid"],.home-toolbar-button[data-catalog-view="grid"]{order:2}
.home-feed-actions .home-sort{order:3}
body .home-feed-actions .home-sort,body .home-sort .catalog-modern-sort{width:auto!important;min-width:0!important}
.home-feed-actions .home-toolbar-map{order:0}
body .home-toolbar-map-wide{width:auto!important;gap:4px!important;font-size:12px!important;margin-right:6px!important}
body .home-sort .catalog-modern-sort .account-ads-sort-button{display:inline-flex!important;align-items:center!important;gap:8px!important;width:auto!important;min-width:0!important;height:30px!important;min-height:0!important;padding:0 0 0 8px!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;color:#333!important;font-size:13px!important;font-weight:400!important}
.swapi-sort-chevron{display:flex;align-items:center}
.swapi-sort-chevron .swapi-icon{width:14px;height:14px}
body .catalog-modern-sort .account-ads-sort-button>i{display:none!important}
.swapi-site-header~.auth-page-container .auth-logo{display:none}
.swapi-site-header~.auth-page-container{margin-top:28px!important}
.smart-photo-search-icon .swapi-icon{width:36px;height:36px}
.smart-photo-search-close .swapi-icon{width:24px;height:24px}
/* The legacy late grid rules also targeted list mode. Explicitly separate it. */
body:is([data-page-name="index"],[data-page-name="catalog"]) .home-content.home-view-list .index-ads-feed{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:14px!important}
body:is([data-page-name="index"],[data-page-name="catalog"]) .home-view-list .home-ad-row{--swapi-list-photo-width:clamp(180px,32%,300px);display:grid!important;grid-template-columns:var(--swapi-list-photo-width) minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;gap:0!important;width:100%!important;height:170px!important;min-height:170px!important;max-height:170px!important;box-sizing:border-box!important;margin:0!important;padding:0!important;border:1px solid #edf0f4!important;border-radius:12px!important;background:#fff!important;box-shadow:0 4px 14px rgb(24 38 61 / 5%)!important;overflow:hidden}
body:is([data-page-name="index"],[data-page-name="catalog"]) .home-view-list .home-ad-photo{grid-column:1!important;grid-row:1!important;width:100%!important;min-width:0!important;height:100%!important;min-height:0!important;aspect-ratio:auto!important;border-radius:12px 0 0 12px!important;overflow:hidden}
body:is([data-page-name="index"],[data-page-name="catalog"]) .home-view-list .home-ad-photo>a{display:block!important;width:100%!important;height:100%!important;min-height:0!important}
body:is([data-page-name="index"],[data-page-name="catalog"]) .home-view-list .home-ad-info{grid-column:2!important;grid-row:1!important;display:flex!important;flex-direction:column!important;min-width:0!important;min-height:0!important;width:auto!important;padding:10px 12px!important;overflow:hidden!important}
body:is([data-page-name="index"],[data-page-name="catalog"]) .home-view-list .home-ad-info-head{display:flex!important;flex:0 0 auto;align-items:flex-start;gap:8px}
body:is([data-page-name="index"],[data-page-name="catalog"]) .home-view-list .home-ad-info-head>div:first-child{flex:1;min-width:0}
body:is([data-page-name="index"],[data-page-name="catalog"]) .home-view-list .home-ad-title{display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal!important;overflow:hidden!important;text-overflow:ellipsis!important;height:auto!important;min-height:0!important;max-height:2.6em!important;font-size:14px!important;line-height:1.3!important;color:#30343b!important;font-weight:600!important}
body:is([data-page-name="index"],[data-page-name="catalog"]) .home-view-list .home-ad-price-now{font-size:16px!important}
body:is([data-page-name="index"],[data-page-name="catalog"]) .home-view-list .home-ad-seller{display:none!important}
body:is([data-page-name="index"],[data-page-name="catalog"]) .home-view-list .home-ad-text{display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;flex:1 1 auto!important;min-height:0!important;max-height:2.9em!important;overflow:hidden!important;font-size:12px!important;line-height:1.45!important;color:#707781!important;margin:6px 0 0!important}
body:is([data-page-name="index"],[data-page-name="catalog"]) .home-view-list .home-ad-badges{flex:0 0 auto!important;gap:4px!important;margin:6px 0 0!important}
body:is([data-page-name="index"],[data-page-name="catalog"]) .home-view-list .home-ad-badges>span{min-height:18px!important;line-height:18px!important;font-size:10px!important;max-width:100%!important}
body:is([data-page-name="index"],[data-page-name="catalog"]) .home-view-list .home-ad-meta{flex:0 0 auto!important;display:block!important;margin-top:auto!important;padding-top:6px!important;font-size:11px!important;gap:0!important}
body:is([data-page-name="index"],[data-page-name="catalog"]) .home-view-list .home-ad-meta span:first-child{display:block!important;margin:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body:is([data-page-name="index"],[data-page-name="catalog"]) .home-view-list .home-ad-meta span:nth-child(2),
body:is([data-page-name="index"],[data-page-name="catalog"]) .home-view-list .home-ad-meta span:nth-child(3){display:none!important}
@media(max-width:1399px) and (min-width:992px){
    .swapi-header-main{grid-template-columns:230px minmax(180px,1fr) max-content;gap:16px}
    .swapi-header-actions{gap:8px}
    .swapi-publish{padding:0 10px;font-size:12px}
    body[data-page-name="index"] .home-seo-h1{font-size:18px!important}
    body .home-feed-actions{gap:6px!important}
    body .home-sort .catalog-modern-sort .account-ads-sort-button{font-size:12px!important;gap:5px!important;padding-left:4px!important}
}
@media(max-width:991px){
    body .swapi-header-frame.header-wow-sticky-container{width:calc(100% - 32px)!important;padding:8px 0 12px!important}
    .swapi-header-topline{margin-bottom:8px}
    .swapi-header-nav{gap:14px}
    .swapi-header-nav a{font-size:11px}
    .swapi-header-main{grid-template-columns:auto minmax(0,1fr);gap:12px}
    .swapi-logo img{width:140px!important;height:auto!important}
    .swapi-logo span{width:auto;font-size:8px;line-height:10px}
    .swapi-header-actions{justify-self:end;gap:10px}
    .swapi-search{grid-column:1/-1;grid-row:2}
    .swapi-publish{width:32px;height:32px;padding:0;border-radius:6px}
    .swapi-publish span{display:none}
    .swapi-publish .swapi-icon{width:21px;height:21px}
    .swapi-mobile-menu{display:inline-flex;padding:0}
    .swapi-mobile-menu .swapi-icon{width:21px;height:21px}
    .swapi-search-field,.swapi-search-submit{height:40px}
    body .swapi-search-field .ajax-live-search{height:38px!important;line-height:38px!important;font-size:13px!important}
    body .swapi-search-field .ajax-live-search::placeholder{font-size:13px!important}
    .swapi-login span{display:none}
    .swapi-action{width:22px;flex-basis:22px;height:32px}
    .swapi-geo-dialog .desktop-geo-menu{grid-template-columns:1fr;overflow:auto;min-height:0;max-height:calc(100vh - 40px)}
    .swapi-geo-dialog .desktop-geo-menu-sidebar{padding:20px 16px}
    .swapi-geo-dialog .desktop-geo-menu-content{padding:20px 16px}
    body[data-page-name="index"] .home-seo-h1{font-size:18px!important}
    body[data-page-name="index"] .home-feed-toolbar{gap:8px!important}
}
@media(max-width:420px){
    .swapi-header-main{gap:10px}
    .swapi-header-actions{gap:5px}
    .swapi-logo img{width:110px!important}
    .swapi-logo span{font-size:7px}
    .swapi-header-nav{gap:9px}
    .swapi-header-nav a{font-size:10px}
    body:is([data-page-name="index"],[data-page-name="catalog"]) .home-view-list .home-ad-row{--swapi-list-photo-width:clamp(125px,36%,150px)}
}

/* V4: retain the production promotion palette above all generic test-card rules. */
html body .home-ad-row.home-ad-promoted.home-ad-up{
    border:1px solid #43d7c5!important;
    background:#edfbf8!important;
    box-shadow:0 10px 26px rgba(36,184,169,.14)!important;
}
html body .home-ad-row.home-ad-promoted.home-ad-up:hover{box-shadow:0 14px 34px rgba(36,184,169,.2)!important}
html body .home-ad-row.home-ad-promoted.home-ad-vip{
    border:1px solid transparent!important;
    background:linear-gradient(#f6f1ff,#f6f1ff) padding-box,linear-gradient(135deg,#7d33ff 0%,#5148ff 48%,#a855f7 100%) border-box!important;
    box-shadow:0 10px 26px rgba(93,87,255,.16),inset 0 0 18px rgba(123,92,255,.08)!important;
}
html body .home-ad-row.home-ad-promoted.home-ad-vip:hover{box-shadow:0 14px 34px rgba(93,87,255,.2),inset 0 0 20px rgba(123,92,255,.1),inset 0 0 12px rgba(255,88,238,.06)!important}
html body .home-ad-row.home-ad-promoted.home-ad-turbo{
    border:1px solid transparent!important;
    background:linear-gradient(#fff1f3,#fff1f3) padding-box,linear-gradient(135deg,#ff8a3d 0%,#ff4f8b 52%,#ff2e6d 100%) border-box!important;
    box-shadow:0 12px 30px rgba(255,94,129,.2),inset 0 0 18px rgba(255,138,61,.08)!important;
}
html body .home-ad-row.home-ad-promoted.home-ad-turbo:hover{box-shadow:0 16px 38px rgba(255,94,129,.26),inset 0 0 22px rgba(255,138,61,.1)!important}
html body .home-ad-row.home-ad-promoted.home-ad-up .home-ad-photo{box-shadow:inset 0 0 0 1px rgba(67,215,197,.24)!important}
html body .home-ad-row.home-ad-promoted.home-ad-turbo .home-ad-photo{box-shadow:inset 0 0 0 1px rgba(255,91,131,.24)!important}
/* Older carousel/shop cards use ads-promo-* instead of home-ad-row. */
html body .ads-promo-up{background:linear-gradient(#edfbf8,#edfbf8) padding-box,linear-gradient(135deg,#43d7c5 0%,#18b99d 100%) border-box!important}
html body .ads-promo-vip{background:linear-gradient(#f6f1ff,#f6f1ff) padding-box,linear-gradient(135deg,#7d33ff 0%,#5148ff 55%,#a855f7 100%) border-box!important}
html body .ads-promo-turbo{background:linear-gradient(#fff1f3,#fff1f3) padding-box,linear-gradient(135deg,#ff8a3d 0%,#ff4f8b 55%,#ff2e6d 100%) border-box!important}
html body .ads-promo-up .item-grid-info{background:#edfbf8!important}
html body .ads-promo-vip .item-grid-info{background:#f6f1ff!important}
html body .ads-promo-turbo .item-grid-info{background:#fff1f3!important}
/* Explicit SVG/path states beat the legacy repeated-class selectors. */
html body .home-ad-row .home-ad-favorite.home-ad-favorite{
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    width:32px!important;height:32px!important;padding:0!important;border:0!important;border-radius:50%!important;
    background:rgba(255,255,255,.9)!important;box-shadow:none!important;color:#888!important;
}
html body .home-ad-row .home-ad-favorite.home-ad-favorite > .home-ad-favorite-svg{
    display:block!important;position:static!important;width:18px!important;height:18px!important;flex:0 0 18px!important;
    margin:0!important;padding:0!important;color:#888!important;fill:none!important;stroke:#888!important;
}
html body .home-ad-row .home-ad-favorite.home-ad-favorite > .home-ad-favorite-svg path{fill:none!important;stroke:#888!important;stroke-width:1.4!important;stroke-linecap:round;stroke-linejoin:round}
html body .home-ad-row .home-ad-favorite.home-ad-favorite:hover,
html body .home-ad-row .home-ad-favorite.home-ad-favorite:focus-visible,
html body .home-ad-row .home-ad-favorite.home-ad-favorite.home-ad-favorite-active{background:#fff!important;color:#f04452!important}
html body .home-ad-row .home-ad-favorite.home-ad-favorite:hover > .home-ad-favorite-svg,
html body .home-ad-row .home-ad-favorite.home-ad-favorite:focus-visible > .home-ad-favorite-svg,
html body .home-ad-row .home-ad-favorite.home-ad-favorite.home-ad-favorite-active > .home-ad-favorite-svg{color:#f04452!important;fill:#f04452!important;stroke:#f04452!important}
html body .home-ad-row .home-ad-favorite.home-ad-favorite:hover > .home-ad-favorite-svg path,
html body .home-ad-row .home-ad-favorite.home-ad-favorite:focus-visible > .home-ad-favorite-svg path,
html body .home-ad-row .home-ad-favorite.home-ad-favorite.home-ad-favorite-active > .home-ad-favorite-svg path{fill:#f04452!important;stroke:#f04452!important}

/* V5: let the grid card's information fill the row, ending at the location. */
html body:is([data-page-name="index"],[data-page-name="catalog"]) .home-view-grid .home-ad-row{display:flex!important;flex-direction:column!important;gap:0!important;min-height:0!important;height:auto!important}
html body:is([data-page-name="index"],[data-page-name="catalog"]) .home-view-grid .home-ad-photo{flex:0 0 auto!important}
html body:is([data-page-name="index"],[data-page-name="catalog"]) .home-view-grid .home-ad-info{display:flex!important;flex-direction:column!important;flex:1 0 auto!important;min-height:0!important;height:auto!important;padding:10px 12px!important}
html body:is([data-page-name="index"],[data-page-name="catalog"]) .home-view-grid .home-ad-info-head{display:block!important;flex:0 0 auto!important}
html body:is([data-page-name="index"],[data-page-name="catalog"]) .home-view-grid .home-ad-title{height:auto!important;min-height:0!important;max-height:2.6em!important;line-height:1.3!important}
html body:is([data-page-name="index"],[data-page-name="catalog"]) .home-view-grid .home-ad-badges{flex:0 0 auto!important;margin:7px 0 8px!important;gap:4px!important;align-items:center!important}
html body:is([data-page-name="index"],[data-page-name="catalog"]) .home-ad-badges .home-ad-badge-date{flex:0 1 auto!important;width:auto!important;max-width:100%!important;gap:3px!important;padding:0 6px!important;white-space:nowrap!important}
.home-ad-badge-date .swapi-card-calendar{display:block!important;flex:0 0 12px!important;width:12px!important;height:12px!important;margin:0!important}
html body:is([data-page-name="index"],[data-page-name="catalog"]) .home-view-grid .home-ad-meta{flex:0 0 auto!important;margin-top:auto!important;padding-top:8px!important;gap:0!important}
html body:is([data-page-name="index"],[data-page-name="catalog"]) .home-view-grid .home-ad-meta span:first-child{display:flex!important;align-items:flex-start!important;margin:0!important;white-space:normal!important;overflow-wrap:anywhere;line-height:1.3!important}
html body:is([data-page-name="index"],[data-page-name="catalog"]) .home-view-grid .home-ad-meta span:first-child i{flex:0 0 auto;line-height:1.3}
html body:is([data-page-name="index"],[data-page-name="catalog"]) .home-view-grid .home-ad-meta span:nth-child(2),
html body:is([data-page-name="index"],[data-page-name="catalog"]) .home-view-grid .home-ad-meta span:nth-child(3){display:none!important}

/* One site-wide content grid: the same edges as the shared header and footer.
 * Target outer page shells only; nested containers, reading columns, forms and
 * modal/dropdown widths keep their component-level sizing.
 */
:root{--swapi-shell-max:1760px;--swapi-shell-gutter:32px}
@media(max-width:991px){:root{--swapi-shell-gutter:16px}}
@layer swapi-content-grid{
    html body .swapi-header-frame.header-wow-sticky-container,
    html body footer.swapi-footer .swapi-footer-inner,
    html body:has(>.swapi-site-header)>.container,
    html body:has(>.swapi-site-header)>main>.container,
    html body:has(>.swapi-site-header)>.home-page-shell>.home-page-container,
    html body:has(>.swapi-site-header)>main.page-404-shell,
    html body[data-page-name="ad_view"]:has(>.swapi-site-header)>div:has(>footer.swapi-footer)>.container,
    html body[data-page-name="map"]:has(>.swapi-site-header)>.map-search-container,
    html body[data-page-name="map"]:not(.map-layout-compact-topbar):has(>.swapi-site-header)>.map-desktop-topbar{
        width:min(var(--swapi-shell-max),calc(100% - var(--swapi-shell-gutter) - var(--swapi-shell-gutter)))!important;
        max-width:var(--swapi-shell-max)!important;
        min-width:0!important;
        margin-left:auto!important;
        margin-right:auto!important;
        box-sizing:border-box!important;
    }
    html body:has(>.swapi-site-header)>.container,
    html body:has(>.swapi-site-header)>main>.container,
    html body:has(>.swapi-site-header)>.home-page-shell>.home-page-container,
    html body:has(>.swapi-site-header)>main.page-404-shell,
    html body[data-page-name="ad_view"]:has(>.swapi-site-header)>div:has(>footer.swapi-footer)>.container{
        padding-left:0!important;
        padding-right:0!important;
    }
    @media(min-width:992px){
        html body[data-page-name="map"].map-layout-compact-topbar:has(>.swapi-site-header)>.map-desktop-topbar{
            margin-left:max(var(--swapi-shell-gutter),calc((100% - var(--swapi-shell-max))/2))!important;
        }
    }
}

/* Iconless category rows start at the sidebar edge, not in an empty icon slot. */
@media(min-width:992px){
    body:is([data-page-name="index"],[data-page-name="catalog"]) .home-categories-card>ul>li>a:not(:has(>.home-category-icon)){
        grid-template-columns:minmax(0,1fr)!important;
    }
    body:is([data-page-name="index"],[data-page-name="catalog"]) .home-categories-card>ul>li>a:not(:has(>.home-category-icon))>.home-category-name{
        grid-column:1!important;
        text-align:left!important;
    }
}

/* Crisp card geolocation marks; inline metro colors remain authoritative. */
.home-ad-meta .swapi-card-location{display:block;flex:0 0 14px;width:14px;height:14px;margin-top:1px}
.swapi-account .swapi-profile-link{color:inherit;text-decoration:none}
.swapi-account .swapi-profile-link:focus-visible{outline:2px solid #087fff;outline-offset:3px;border-radius:50%}
/* Desktop home: the banner and feed share the search column, without a legacy card inset. */
@media(min-width:992px){
    body[data-page-name="index"] .home-content{padding:0!important}
    body[data-page-name="index"] .home-content>.place-banner>.place-banner-content{display:block;width:100%}
    body[data-page-name="index"] .home-content>.place-banner>.place-banner-content picture{display:block}
    body[data-page-name="index"] .home-content>.place-banner>.place-banner-content img{display:block;width:100%;max-width:100%;height:auto}
}

/* Shared listing component: homepage, similar ads, favorites, sellers, shops and map.
 * Keep the feed/container sizing with each page; normalize only the card itself.
 * Promotion selectors above remain more specific than this neutral base.
 */
html body .home-ad-row.home-ad-row.home-ad-row{position:relative;container-type:inline-size;min-width:0!important;padding:0!important;border-radius:12px!important;overflow:hidden;box-sizing:border-box}
html body .home-ad-row.home-ad-row.home-ad-row:not(.home-ad-promoted){border:1px solid #edf0f4!important;background-color:#fff;box-shadow:0 6px 18px rgb(24 38 61 / 8%)!important}
html body .home-ad-row.home-ad-row .home-ad-photo{position:relative;min-width:0;overflow:hidden;background:#f0f3f8}
html body .home-ad-row.home-ad-row .home-ad-title{padding:0!important;color:#2d3036!important;font-size:14px!important;font-weight:500!important;line-height:1.3!important;text-decoration:none}
html body .home-ad-row.home-ad-row .home-ad-price-now{font-size:16px!important;font-weight:600!important;color:#0d1728!important}
html body .home-ad-row.home-ad-row .home-ad-badges{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:4px!important;margin:7px 0 8px!important}
html body .home-ad-row.home-ad-row .home-ad-badges>span{max-width:100%!important;min-height:20px!important;padding:0 8px!important;border-radius:5px!important;font-size:10px!important;line-height:20px!important;font-weight:400!important}
html body .home-ad-row.home-ad-row .home-ad-badges>.home-ad-badge-date{display:inline-flex!important;flex:0 1 auto!important;width:auto!important;gap:3px!important;padding:0 6px!important;white-space:nowrap!important;color:#384252!important;background:#edf3f8!important}
html body .home-ad-row.home-ad-row .home-ad-meta{flex:0 0 auto!important;display:block!important;margin-top:auto!important;padding-top:8px!important;border-top:1px solid #edf1f7!important;font-size:11px!important}
html body .home-ad-row.home-ad-row .home-ad-meta>span:first-child{display:flex!important;align-items:flex-start!important;gap:4px!important;min-width:0!important;margin:0!important;color:#68778d;font-size:11px!important;line-height:1.3!important;white-space:normal!important;overflow-wrap:anywhere}
html body .home-ad-row.home-ad-row .home-ad-meta>span:nth-child(2),html body .home-ad-row.home-ad-row .home-ad-meta>span:nth-child(3),html body .home-ad-row.home-ad-row .home-ad-photo .item-grid-count-photo{display:none!important}
html body .home-ad-row.home-ad-row .home-ad-photo .home-ad-views{position:absolute!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:3px!important;left:8px!important;bottom:8px!important;top:auto!important;right:auto!important;min-width:35px!important;height:24px!important;min-height:0!important;margin:0!important;padding:3px 5px!important;border:0!important;border-radius:5px!important;background:rgb(255 255 255 / 78%)!important;box-shadow:none!important;color:#777!important;font-size:13px!important;line-height:18px!important;font-weight:400!important;backdrop-filter:blur(3px)}
html body .home-ad-row.home-ad-row .home-ad-views .swapi-icon{width:18px!important;height:18px!important;flex:0 0 18px!important}
html body .home-ad-row.home-ad-row .home-ad-mini-actions{position:absolute!important;top:9px!important;right:9px!important;left:auto!important;z-index:9;display:flex!important;gap:0!important}
html body .home-ad-row.home-ad-row .home-ad-mini-actions>button{display:none!important}
html body .home-ad-row.home-ad-row .home-ad-mini-actions>.home-ad-favorite{position:relative!important;inset:auto!important;display:inline-flex!important;min-width:32px!important;width:32px!important;height:32px!important;padding:0!important;border:0!important;border-radius:50%!important;background:rgb(255 255 255 / 90%)!important;box-shadow:none!important}
html body .home-ad-row.home-ad-row .home-ad-mini-actions>.home-ad-favorite:is(:hover,:focus-visible,.home-ad-favorite-active){background:#fff!important}
/* Grid cards fill their row and end at the location, exactly as on the homepage. */
html body .home-view-grid .home-ad-row.home-ad-row{display:flex!important;flex-direction:column!important;gap:0!important;min-height:0!important;height:auto!important;max-height:none!important}
html body .home-view-grid .home-ad-row .home-ad-photo{flex:0 0 auto!important;width:100%!important;height:88cqw!important;min-height:0!important;aspect-ratio:1/.88!important;border-radius:12px 12px 0 0!important}
html body .home-view-grid .home-ad-row .home-ad-info{display:flex!important;flex-direction:column!important;flex:1 0 auto!important;min-width:0!important;min-height:0!important;height:auto!important;padding:10px 12px!important}
html body .home-view-grid .home-ad-row .home-ad-info-head{display:block!important;flex:0 0 auto!important}
html body .home-view-grid .home-ad-row .home-ad-title{height:auto!important;min-height:0!important;max-height:2.6em!important;display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden!important}
html body .home-view-grid .home-ad-text,html body .home-view-grid .home-ad-row .home-ad-seller{display:none!important}
/* Favorites and public seller/shop feeds keep their existing list/grid switch. */
html body .home-view-list.home-view-list .index-ads-feed,html body .home-view-list.home-view-list.index-ads-feed{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:14px!important}
html body .home-view-list .home-ad-row{--swapi-list-photo-width:clamp(180px,32%,300px);display:grid!important;grid-template-columns:var(--swapi-list-photo-width) minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;gap:0!important;width:100%!important;height:170px!important;min-height:170px!important;max-height:170px!important}
html body .home-view-list .home-ad-row .home-ad-photo{grid-column:1!important;grid-row:1!important;width:100%!important;height:100%!important;min-height:0!important;aspect-ratio:auto!important;border-radius:12px 0 0 12px!important}
html body .home-view-list .home-ad-row .home-ad-info{grid-column:2!important;grid-row:1!important;display:flex!important;flex-direction:column!important;min-width:0!important;min-height:0!important;width:auto!important;padding:10px 12px!important;overflow:hidden!important}
html body .home-view-list .home-ad-info-head{min-width:0!important;padding-right:36px!important}
html body .home-view-list .home-ad-row .home-ad-title{display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden!important;min-height:0!important;max-height:2.6em!important}
html body .home-view-list .home-ad-row .home-ad-seller{display:none!important}
html body .home-view-list .home-ad-meta{padding-top:6px!important}
/* Map desktop remains a horizontal results list, not a multi-column feed. */
@media(min-width:992px){
    html body[data-page-name="map"] :is(.map-search-offers-list,.map-search-offer-item) .home-ad-row{display:grid!important;grid-template-columns:180px minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;gap:0!important;height:170px!important;min-height:170px!important;max-height:170px!important}
    html body[data-page-name="map"] :is(.map-search-offers-list,.map-search-offer-item) .home-ad-photo{grid-column:1;grid-row:1;width:100%!important;height:100%!important;aspect-ratio:auto!important;border-radius:12px 0 0 12px!important}
    html body[data-page-name="map"] :is(.map-search-offers-list,.map-search-offer-item) .home-ad-info{grid-column:2;grid-row:1;min-height:0!important;overflow:hidden!important;flex:initial!important}
    html body[data-page-name="map"] :is(.map-search-offers-list,.map-search-offer-item) .home-ad-info-head{min-width:0!important;padding-right:36px!important}
}
@media(max-width:991px){
    html body[data-page-name="map"] :is(.map-search-offers-list,.map-search-offer-item).map-mobile-view-list .home-ad-row{display:grid!important;grid-template-columns:132px minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;height:170px!important;min-height:170px!important;max-height:170px!important}
    html body[data-page-name="map"] :is(.map-search-offers-list,.map-search-offer-item).map-mobile-view-list .home-ad-photo{grid-column:1;grid-row:1;height:100%!important;aspect-ratio:auto!important;border-radius:12px 0 0 12px!important}
    html body[data-page-name="map"] :is(.map-search-offers-list,.map-search-offer-item).map-mobile-view-list .home-ad-info{grid-column:2;grid-row:1;min-height:0!important;overflow:hidden!important;flex:initial!important}
    html body[data-page-name="map"] :is(.map-search-offers-list,.map-search-offer-item).map-mobile-view-list .home-ad-info-head{min-width:0!important;padding-right:36px!important}
}
@media(max-width:420px){html body .home-view-list .home-ad-row{--swapi-list-photo-width:clamp(125px,36%,150px)}}
html body .swapi-card-slide{min-width:0;padding:5px}
/* Reopen the existing weight layer so legacy 600 counters cannot win on other pages. */
@layer swapi-text-weights{
    :root:not(:has(body#page-top)) body .home-ad-row.home-ad-row .home-ad-photo .home-ad-views{font-weight:400!important}
}

/* Catalog headings follow the same desktop column as the header search and filters. */
@media(min-width:992px){
    body[data-page-name="catalog"]{--swapi-catalog-start:306px;--swapi-catalog-end:326px}
    html body[data-page-name="catalog"] nav.catalog-page-breadcrumb-global,
    html body[data-page-name="catalog"] .catalog-title-row-global{
        width:auto!important;
        margin-left:var(--swapi-catalog-start)!important;
        margin-right:var(--swapi-catalog-end)!important;
    }
    html body[data-page-name="catalog"] .catalog-main-column{padding-left:0!important;padding-right:0!important}
}
@media(min-width:992px) and (max-width:1399px){
    body[data-page-name="catalog"]{--swapi-catalog-start:246px;--swapi-catalog-end:261px}
}

/* Favorites: keep compact homepage-sized tiles, including feeds with only 1–2 ads.
 * auto-fill reserves empty tracks; no 1fr growth into unused account-page space.
 */
@media(min-width:992px){
    html body .favorite-ads-main.home-view-grid .index-ads-feed{
        display:grid!important;
        grid-template-columns:repeat(auto-fill,minmax(0,220px))!important;
        gap:18px!important;
        justify-content:start!important;
    }
}

/* Category tiles use the homepage's 190px minimum and 18px rhythm.
 * Retain empty tracks in sparse categories so a handful of ads cannot expand.
 */
@media(min-width:992px){
    html body[data-page-name="catalog"]>.container>.row>.min-height-600:has(>.catalog-modern-layout){padding-right:0!important}
    html body[data-page-name="catalog"] .catalog-main-column.home-view-grid .index-ads-feed{
        display:grid!important;
        grid-template-columns:repeat(auto-fill,minmax(190px,1fr))!important;
        gap:18px!important;
    }
}

/* Flat storefront surfaces, including hover/active states and pseudo-elements.
 * The photo editor's outside-crop mask is functional, not a decorative shadow.
 * A layer makes this policy authoritative over legacy per-page !important skins.
 */
@layer swapi-flat-surfaces{
    html body:has(>.swapi-site-header),
    html body:has(>.swapi-site-header) :not(.ad-image-crop-selection),
    html body:has(>.swapi-site-header) *::before,
    html body:has(>.swapi-site-header) *::after{box-shadow:none!important}

    /* Keyboard focus stays visible without using a shadow as its focus ring. */
    /* Fields use their own border (or compound-field owner) from unified-controls.css.
     * Inset action focus follows the existing edge instead of adding a second frame. */
    html body:has(>.swapi-site-header) :where(a,button,[tabindex],[contenteditable="true"]):focus-visible{
        outline:2px solid #087fff!important;
        outline-offset:-2px!important;
    }
    /* These checkboxes previously drew their only edge with an inset shadow. */
    /* City input uses its neutral field edge, never an extra blue rectangle. */
    html body:has(>.swapi-site-header) .swapi-city-search-box .swapi-city-search:is(:focus,:focus-visible){outline:none!important;outline-offset:0!important}
    /* The search wrapper already supplies its visible blue field boundary. */
    html body:has(>.swapi-site-header) .swapi-search-field .ajax-live-search:is(:focus,:focus-visible){outline:none!important;outline-offset:0!important}
    html body:has(>.swapi-site-header) .box-save-auth .checkbox input+span{border:1px solid #cdd7e5!important}
    html body:has(>.swapi-site-header) .box-save-auth .checkbox input:checked+span{border-color:#007aff!important}
}

/* Notification/city panel refresh: cosmetic only; retain all existing geometry. */
html body .notifications-center{border-color:#e6eaf0;color:#172033}
html body .notifications-center-arrow{border-color:#e6eaf0}
html body .notifications-center-read-all{color:#98a2b3}
html body .notifications-center-read-all:not(:disabled):hover{color:#087bf0}
html body .notifications-center-tabs{position:relative}
html body .notifications-center-tabs::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:#edf0f5;pointer-events:none}
html body .notifications-center-tabs button{background:#f5f7fa;border-color:transparent;color:#485266}
html body .notifications-center-tabs button:hover{border-color:#c6dfff;color:#087bf0}
html body .notifications-center-tabs button.active{background:#edf6ff;border-color:#69b6f5;color:#1688df}
/* Keep the 1px body border in the box model, but remove the nested-card look. */
html body .notifications-center-body{border-color:transparent;border-radius:0}
html body .notifications-center-item{border-bottom-color:#edf0f5}
html body .notifications-center-item.is-unread{background:#fbfdff}
html body .notifications-center-item-icon.system{background:#f2edff;color:#7657e8}
html body .notifications-center-copy p{color:#929eae}
html body .notifications-center-meta{color:#99a5b6}
html body .notifications-center-footer,
html body .notifications-center-footer>*+*{border-color:#e6eaf0}
html body .notifications-center-footer>*{color:#238edc}
html body .notifications-center-footer i{display:inline-block;flex:0 0 1em;width:1em;height:1em;background:currentColor;mask-position:center;mask-size:contain;mask-repeat:no-repeat}
html body .notifications-center-footer i::before{content:none}
html body .notifications-center-show-all i{mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")}
html body .notifications-center-footer .la-cog{mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9.5 3-.6 2a8 8 0 0 0-1.5.9l-2-.5L3 9.6 4.5 11a8 8 0 0 0 0 2L3 14.4l2.4 4.2 2-.5a8 8 0 0 0 1.5.9l.6 2h5l.6-2a8 8 0 0 0 1.5-.9l2 .5 2.4-4.2-1.5-1.4a8 8 0 0 0 0-2L21 9.6l-2.4-4.2-2 .5a8 8 0 0 0-1.5-.9l-.6-2Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E")}
@media(min-width:992px){
    html body .notifications-center{border-radius:10px}
    html body .notifications-center-footer>*:first-child{border-radius:0 0 0 10px}
    html body .notifications-center-footer>*:last-child{border-radius:0 0 10px 0}
}

/* Absolute SVG decorations use the existing row/gap space, not extra tracks. */
html body[data-page-name="catalog"] .catalog-left-column .catalog-city-links{border-color:#e6eaf0}
html body[data-page-name="catalog"] .catalog-left-city-links .catalog-city-links-icon{position:relative;border-radius:50%;background:#f2edff;color:#7657e8}
html body[data-page-name="catalog"] .catalog-left-city-links .catalog-city-links-icon i{visibility:hidden}
html body[data-page-name="catalog"] .catalog-left-city-links .catalog-city-links-icon::after{content:"";position:absolute;inset:5px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12S4 16 4 10a8 8 0 1 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='2.8'/%3E%3C/svg%3E") center/contain no-repeat;pointer-events:none}
html body[data-page-name="catalog"] .catalog-left-city-links :is(.catalog-city-links-grid,.catalog-city-links-all-list) a{position:relative;padding-right:18px;box-sizing:border-box}
html body[data-page-name="catalog"] .catalog-left-city-links :is(.catalog-city-links-grid,.catalog-city-links-all-list) a::before{content:"";position:absolute;left:0;right:0;bottom:-4px;height:1px;background:#edf0f5;pointer-events:none}
html body[data-page-name="catalog"] .catalog-left-city-links :is(.catalog-city-links-grid,.catalog-city-links-all-list) a::after,
html body[data-page-name="catalog"] .catalog-left-city-links .catalog-city-links-show-all::after{content:"";display:block!important;position:absolute;right:1px;top:50%;width:12px;height:12px;transform:translateY(-50%);background:#97a1b0;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 3 5 5-5 5'/%3E%3C/svg%3E") center/contain no-repeat;pointer-events:none}
html body[data-page-name="catalog"] .catalog-left-city-links .catalog-city-links-show-all{position:relative;background:#f3f7ff;border-color:transparent;color:#087bf0}
html body[data-page-name="catalog"] .catalog-left-city-links .catalog-city-links-show-all::after{right:12px;background:currentColor}
html body[data-page-name="catalog"] .catalog-left-city-links .catalog-city-links-show-all:hover{background:#eaf3ff}
@layer swapi-text-weights{
    :root:not(:has(body#page-top)) body[data-page-name="catalog"] .catalog-left-city-links :is(.catalog-city-links-grid,.catalog-city-links-all-list) a{font-weight:400!important}
}

/* filter-city-polish-20261030: sparse local feeds retain full homepage tracks. */
@media(min-width:992px){
 html body:is([data-page-name="index"],[data-page-name="catalog"]) .home-content.home-view-grid .index-ads-feed{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(190px,1fr))!important;gap:18px!important;align-items:stretch!important}
 html body[data-page-name="map"] .map-desktop-filter-panel{scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#68b6ff transparent;padding:16px 12px 16px 16px!important}
 html body[data-page-name="map"] .map-desktop-filter-panel::-webkit-scrollbar{width:6px}
 html body[data-page-name="map"] .map-desktop-filter-panel::-webkit-scrollbar-thumb{background:#68b6ff;border-radius:6px}
 html body[data-page-name="map"] .map-search-container{position:relative}
 html body[data-page-name="map"] .map-desktop-filter-panel.has-compact-scrollbar{scrollbar-width:none;scrollbar-gutter:auto}
 html body[data-page-name="map"] .map-desktop-filter-panel.has-compact-scrollbar::-webkit-scrollbar{display:none}
 .map-filter-scroll-rail{position:absolute;width:6px;z-index:30;background:transparent;border-radius:6px;cursor:pointer}
 .map-filter-scroll-thumb{position:absolute;top:0;left:0;width:6px;height:40px;min-width:0;min-height:0;margin:0;padding:0;border:0;border-radius:6px;background:#68b6ff;cursor:grab;touch-action:none;box-shadow:none}
 .map-filter-scroll-thumb:active{cursor:grabbing;background:#1688f5}.map-filter-scroll-thumb:focus-visible{outline:2px solid #1688f5;outline-offset:2px}
}
@media(max-width:991px){.map-filter-scroll-rail{display:none!important}}
