/* Owner-authorized reversible module. Disable home-header-compact-config.js to restore.
   Scope every existing-element override to a tg-* class; never alter cabinet/moderation CSS. */
body.future .site-header .header-tools .tg-ai-search{box-sizing:border-box;position:relative;display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 44px;width:44px;min-width:44px;height:44px;padding:6px;border:1px solid #dfcbe7;border-radius:16px;background:linear-gradient(145deg,#fffdfbea 0%,#f5ecffe8 54%,#fce9f2db 100%);color:#8d326f;box-shadow:inset 0 1px 0 #fff,0 2px 8px #794b9010;cursor:pointer;isolation:isolate;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}
body.future .site-header .header-tools .tg-ai-search::before{content:'';position:absolute;inset:1px;border:1px solid #ffffffb3;border-radius:14px;pointer-events:none}
body.future .site-header .header-tools .tg-ai-search .ic{position:relative;display:block;width:30px;height:30px;flex:none;overflow:visible}
body.future .site-header .header-tools .tg-ai-search:hover,body.future .site-header .header-tools .tg-ai-search[aria-expanded="true"]{border-color:#c39ad9;background:linear-gradient(145deg,#fffdfb,#eee0ff 54%,#f9dce9);box-shadow:inset 0 1px 0 #fff,0 3px 12px #a35d9c24}
body.future .site-header .header-tools .tg-ai-search:active{box-shadow:inset 0 1px 4px #94689920}
@media(prefers-reduced-motion:reduce){body.future .site-header .header-tools .tg-ai-search{transition:none}}
.tg-ai-search:focus-visible,.tg-all-stores:focus-visible,.tg-join-store:focus-visible,.tg-store-banner:focus-visible,.tg-store-more:focus-visible{outline:3px solid #b45180;outline-offset:3px}
body.tg-search-compact .site-header form.header-search,body.tg-search-compact .future-home-main>.mobile-home-search{display:none!important}
.tg-all-stores{display:inline-flex;align-items:center;gap:7px;flex:0 0 auto;min-height:44px;padding:5px 10px;border:1px solid #ead5df;border-radius:13px;background:#fffaf4c9;color:#852446;text-decoration:none;font-size:13px;font-weight:600;white-space:nowrap}
.tg-all-stores .ic{width:19px;height:19px}
.tg-search-dialog{box-sizing:border-box;width:min(720px,calc(100vw - 28px));max-height:calc(100dvh - 32px);margin:auto;padding:22px;border:1px solid #e9c9df;border-radius:24px;background:#fffaf6;color:#251c25;box-shadow:0 18px 80px #22101c35;overflow:auto}
.tg-search-dialog::backdrop{background:#20152155;backdrop-filter:blur(4px)}
.tg-search-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:15px}
.tg-search-heading h2{font-size:21px;line-height:1.2;margin:0;font-weight:700;letter-spacing:-.02em}
.tg-search-close{display:grid;place-items:center;flex:none;width:44px;height:44px;border:0;border-radius:50%;background:#f7eaf0;color:#8c1747;font-size:28px;line-height:1;cursor:pointer}
.tg-search-close:focus-visible{outline:3px solid #b45180;outline-offset:2px}
.tg-search-dialog .tg-search-form{display:flex!important;align-items:center;flex-wrap:wrap;gap:8px;width:100%;min-width:0;margin:0!important;padding:8px;box-sizing:border-box;border:2px solid #e1b3ee;border-radius:17px;background:linear-gradient(120deg,#fffafef2,#f5effcf2);box-shadow:inset 0 0 0 1px #fff,0 0 9px #e67bca44}
.tg-search-dialog .tg-search-form label{display:flex;align-items:center;gap:8px;min-width:0;margin:0}
.tg-search-dialog .tg-search-form .unified-query{flex:1 1 240px}
.tg-search-dialog .tg-search-form .unified-location{flex:0 1 190px;border-left:1px solid #e8dbe6;padding-left:10px}
.tg-search-dialog .tg-search-form .ic{width:19px;height:19px;flex:none;color:#6f3a5f}
.tg-search-dialog .tg-search-form input[type="search"]{flex:1 1 220px;width:100%;min-width:0;min-height:44px;margin:0;padding:8px;border:0;background:transparent;color:#271b29;font:inherit;font-size:16px}
.tg-search-dialog .tg-search-form select{width:100%;min-height:44px;margin:0;padding:7px 22px 7px 0;border:0;background:transparent;color:#271b29;font:inherit;font-size:14px}
.tg-search-dialog .tg-search-form button[type="submit"],.tg-search-dialog .tg-search-form button:not([type]){display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:0 0 auto;min-height:44px;padding:9px 16px;border:0;border-radius:12px;background:#a10043;color:#fff;font:inherit;font-weight:700;cursor:pointer}
.tg-search-dialog .tg-search-form button .ic{color:inherit}
.tg-search-dialog .tg-search-form input:focus-visible,.tg-search-dialog .tg-search-form select:focus-visible{outline:2px solid #b354b6;outline-offset:1px;border-radius:8px}
.tg-search-dialog .tg-search-form:focus-within{border-color:#c76cdb;box-shadow:inset 0 0 0 1px #fff,0 0 12px #e45dcf44}
body.tg-home-compact .future-hero-stores{display:none!important}
html body.future.page-home.buyer-web.tg-home-compact .future-hero,html body.future.page-home.buyer-web.tg-home-compact .future-hero-copy{min-height:300px!important;height:auto!important;box-sizing:border-box}
html body.future.page-home.buyer-web.tg-home-compact .future-hero-copy{padding:16px 24px!important;justify-content:center;gap:10px}
html body.future.page-home.buyer-web.tg-home-compact .future-hero h1{font-size:clamp(42px,4vw,56px)!important;line-height:.95;letter-spacing:-.02em;margin:0!important;max-width:49%}
html body.future.page-home.buyer-web.tg-home-compact .future-hero-copy>p{font-size:16px!important;line-height:1.25;max-width:230px;margin:0!important;white-space:pre-line}
html body.future.page-home.buyer-web.tg-home-compact .future-hero-copy>.future-hero-actions{position:relative;left:auto;right:auto;bottom:auto;width:auto!important;max-width:100%;padding:0;margin:0;gap:0}
html body.future.page-home.buyer-web.tg-home-compact .future-hero-actions>.future-hero-cta{flex:0 1 auto;min-height:46px!important;padding:8px 15px!important;border-radius:16px;gap:10px}
body.tg-home-compact .future-hero-cta .hero-action-copy strong{font-size:16px;line-height:1.15}
body.tg-home-compact .future-hero-cta .hero-action-copy small{font-size:10px}
body.tg-home-compact .future-hero-cta .hero-action-symbol{width:24px;height:24px}
body.tg-home-compact .future-hero-cta .hero-action-chevron{font-size:28px}
body.tg-home-compact .owner-content-rail.tg-stores-rail{display:flex;flex-direction:column;gap:14px;background:transparent}
.tg-store-rail-heading{display:flex;min-width:0}
.tg-join-store{display:flex;align-items:center;gap:8px;width:100%;min-height:50px;padding:10px 12px;border:1px solid #e8c9d7;border-radius:16px;background:linear-gradient(125deg,#fffaf3,#fff0f7);color:#8e1745;font-size:14px;font-weight:700;line-height:1.25;text-decoration:none;box-sizing:border-box}
.tg-join-store .ic{flex:none;width:22px;height:22px}
.tg-join-store span{flex:1;min-width:0}
.tg-join-store .ic:last-child{width:16px;height:16px}
body.tg-home-compact .tg-stores-rail>.owner-presentation{height:260px!important;min-height:0!important;flex:none;box-sizing:border-box}
body.tg-home-compact .tg-stores-rail .owner-tiktok-card{padding:17px}
body.tg-home-compact .tg-stores-rail .owner-tiktok-pearl.has-profile-logo{width:112px;height:112px;top:14%;right:13px}
body.tg-home-compact .tg-stores-rail .owner-tiktok-copy h2{font-size:26px}
body.tg-home-compact .tg-stores-rail .owner-tiktok-handle{margin-bottom:7px}
body.tg-home-compact .tg-stores-rail .owner-tiktok-hint{font-size:11px;margin-bottom:10px}
.tg-demo-stores,.tg-live-stores{display:flex;flex-direction:column;gap:14px;min-width:0}
.tg-demo-stores:empty,.tg-live-stores:empty{display:none}
.tg-store-banner{position:relative;display:flex;flex-direction:column;justify-content:space-between;isolation:isolate;overflow:hidden;box-sizing:border-box;min-height:205px;padding:15px;border:1px solid #ecd0dd;border-radius:20px;background:#2a202b;color:#fff;text-decoration:none;box-shadow:0 5px 16px #44233612}
.tg-store-banner::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#26162614 0%,#26162635 32%,#201221dc 100%)}
.tg-store-photo{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover}
.tg-store-no-photo{background:radial-gradient(ellipse at 85% 15%,#be8eac,#514357 45%,#281c2d)}
.tg-store-badge{align-self:flex-start;display:inline-flex;padding:4px 8px;border:1px solid #fffc;border-radius:999px;background:#211a256b;color:#fff;font-size:10px;font-weight:700;letter-spacing:.04em}
.tg-store-demo .tg-store-badge{background:#fff6e9;color:#744626;border-color:#ffedcf}
.tg-store-copy{display:flex;flex-direction:column;gap:7px;margin-top:35px;min-width:0}
.tg-store-copy strong{font-size:23px;line-height:1.08;font-weight:700;color:#fff}
.tg-store-note{font-size:12px;line-height:1.35;color:#fff4f8}
.tg-store-demo-note{font-size:10px;line-height:1.2;color:#fff0ce}
.tg-store-action{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:36px;padding-top:5px;border-top:1px solid #ffffff50;color:#fff;font-size:11px;font-weight:600}
.tg-store-action .ic{width:17px;height:17px;flex:none}
.tg-store-banner:hover{border-color:#cf8eaf}
.tg-store-rail-end{min-height:1px}
.tg-store-load-status{font-size:12px;line-height:1.45;color:#6e5666;margin:0 0 8px}
.tg-store-load-status:empty{display:none}
.tg-store-more{min-height:40px;width:100%;padding:8px 10px;border:1px solid #e6cbd9;border-radius:12px;background:#fff8fb;color:#8d1749;font:inherit;font-size:12px;font-weight:600;cursor:pointer}
.tg-store-more[hidden]{display:none!important}
@media(min-width:768px){html body.future.page-home.buyer-web.tg-home-compact .site-header .header-row{min-height:68px}}
@media(min-width:768px) and (max-width:1150px){.tg-all-stores{padding:5px 7px;font-size:12px;gap:5px}.tg-store-copy strong{font-size:21px}}
@media(max-width:767px){
 .tg-all-stores{display:none}
 .tg-ai-search{width:42px;min-width:42px;flex-basis:42px;height:44px}
 .tg-ai-search .ic{width:25px;height:25px}
 .tg-search-dialog{padding:16px;border-radius:20px}
 .tg-search-heading h2{font-size:19px}
 .tg-search-dialog .tg-search-form{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:8px}
 .tg-search-dialog .tg-search-form .unified-query,.tg-search-dialog .tg-search-form>input[type="search"]{grid-column:1/-1}
 .tg-search-dialog .tg-search-form .unified-location{border:0;padding-left:4px}
 .tg-search-dialog .tg-search-form button{grid-column:2}
 html body.future.page-home.buyer-web.tg-home-compact .future-hero,html body.future.page-home.buyer-web.tg-home-compact .future-hero-copy{min-height:190px!important}
 html body.future.page-home.buyer-web.tg-home-compact .future-hero-copy{padding:14px 12px!important;gap:10px;justify-content:center}
 html body.future.page-home.buyer-web.tg-home-compact .future-hero h1{font-size:clamp(30px,8.3vw,38px)!important;line-height:.98;max-width:58%}
 html body.future.page-home.buyer-web.tg-home-compact .future-hero-copy>p{font-size:13px!important;line-height:1.2;max-width:56%}
 html body.future.page-home.buyer-web.tg-home-compact.tg-has-ai-dock .future-hero-actions{display:none!important}
 body.tg-home-compact .owner-content-rail.tg-stores-rail{display:none!important}
}
@media(prefers-reduced-motion:reduce){.tg-store-banner,.tg-ai-search,.tg-search-dialog{scroll-behavior:auto;transition:none;animation:none}}

/* Owner 2026-10-29: product intent labels match feed photo badges; keep existing desktop/phone placement and visibility. */
html body.future .product .media-intent.tg-listing-intent{align-items:center;gap:3px;padding:2px 7px 2px 4px;border:0;border-radius:0 10px 10px 0;background:var(--wine-600);color:#fff;font-size:10px;font-weight:600;white-space:nowrap}
html body.future .product .media-intent.tg-listing-intent[data-tg-intent="buy"]{background:var(--blue);color:#fff}
html body.future .product .media-intent.tg-listing-intent[data-tg-intent="give"]{background:var(--purple);color:#fff}
html body.future .product .item-media-status .media-intent.tg-listing-intent{display:inline-flex}
html body.future .product .media-intent.tg-listing-intent .ic{width:13px;height:13px;flex:none}
@media(max-width:767px){
 html body.future .product .media-intent.tg-listing-intent{padding:2px 5px 2px 3px;font-size:9px}
 html body.future .product .media-intent.tg-listing-intent .ic{width:10px;height:10px}
}

/* Owner 2026-10-29: AI request explanation on search hover/keyboard focus. */
body.future .tg-search-hint{box-sizing:border-box;position:fixed;z-index:1000;left:12px;top:12px;width:min(340px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:14px 16px;border:1px solid #e4cce2;border-radius:18px;background:#fffaf8fc;color:#4d2b42;box-shadow:0 12px 36px #52274022,inset 0 1px 0 #fff;backdrop-filter:blur(12px);font-size:13px;font-weight:400;line-height:1.55;letter-spacing:normal;white-space:normal;overflow-wrap:break-word;pointer-events:auto}

/* Owner accepted UI, 2026-10-29: the existing AI action is available at the top of every view. */
html body.tg-header-add-ready>.site-header{display:block!important}
html body.tg-header-add-ready .site-header .header-row{position:relative}
html body.tg-header-add-ready .site-header .tg-header-add{box-sizing:border-box;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:none;min-height:40px;max-width:230px;margin:0;padding:7px 13px;border:1px solid #ffe6fb;border-radius:14px;background:linear-gradient(110deg,#ff075d,#b30076 43%,#6334dc 83%,#3358f6);box-shadow:inset 0 1px 8px #ffffff50,0 0 6px #c958b035;color:#fff;font-size:min(14px,var(--tg-logo-font-size,14px));font-weight:700;line-height:1.15;text-decoration:none;white-space:nowrap;text-shadow:0 1px 3px #390a4533;transition:filter .18s ease}
html body.tg-header-add-ready .site-header .tg-header-add-label{font-size:inherit;font-weight:inherit;line-height:inherit}
html body.tg-header-add-ready .site-header .tg-header-add .ic{width:18px;height:18px;flex:none}
html body.tg-header-add-ready .site-header .tg-header-add:hover{filter:brightness(1.08)}
html body.tg-header-add-ready .site-header .tg-header-add:focus-visible{outline:3px solid #a85eaa;outline-offset:3px}
html body.future.page-home.tg-home-compact.tg-header-add-ready .future-hero-actions{display:none!important}
@media(min-width:768px){
 html body.future.page-home.buyer-web.tg-home-compact.tg-header-add-ready .future-hero,html body.future.page-home.buyer-web.tg-home-compact.tg-header-add-ready .future-hero-copy{min-height:254px!important}
 /* Preserve the previous photograph scale/anchor on its virtual surface; clip only the 46px removed from the bottom. */
 html body.future.page-home.owner-floating-reference.tg-home-compact.tg-header-add-ready::before{height:calc(var(--owner-masthead-height,330px) + 46px);clip-path:inset(0 0 46px 0)}
}
@media(max-width:767px){
 html body.tg-header-add-ready .site-header .header-row{display:flex;flex-wrap:wrap;column-gap:8px;row-gap:2px;padding-block:5px}
 html body.tg-header-add-ready .site-header .header-row::after{content:'';order:9;flex-basis:100%;height:0}
 html body.tg-header-add-ready .site-header .tg-header-add{position:static;order:10;transform:none;min-height:36px;margin:0 auto 2px;padding:6px 12px;font-size:min(12px,var(--tg-logo-font-size,12px));border-radius:12px}
 html body.tg-header-add-ready .site-header .tg-header-add .ic{width:16px;height:16px}
 html body.future.tg-header-add-ready .site-header .header-tools{margin-left:auto}
}
@media(prefers-reduced-motion:reduce){html body.tg-header-add-ready .site-header .tg-header-add{transition:none}}

@media(min-width:768px) and (max-width:1023px){html body.future.tg-header-add-ready .site-header .tg-all-stores{box-sizing:border-box;width:40px;min-height:40px;padding:8px;justify-content:center;gap:0}html body.future.tg-header-add-ready .site-header .tg-all-stores span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}}

/* The cabinet keeps its native AI route through the new top action; do not duplicate it in cabinet navigation. */
body.admin.tg-header-add-ready .cabinet-nav .cabnav-add{display:none}

/* One shared action: the existing SSR control receives the same compact sizing and font cap. */
@media(min-width:768px){html body.tg-header-add-ready .site-header .tg-header-ai.tg-header-add{display:inline-flex!important}}
@media(min-width:768px){html body.future.page-home.buyer-web.tg-home-compact.tg-header-add-ready .future-hero.future-hero,html body.future.page-home.buyer-web.tg-home-compact.tg-header-add-ready .future-hero.future-hero>.future-hero-copy{min-height:254px!important}}

/* Owner-approved publication and office invitation update. Existing hero dimensions retained. */
.tg-company-banner{display:block;width:100%;overflow:hidden;border-radius:18px;border:1px solid #ecd0dd;box-sizing:border-box}
.tg-company-banner-art{display:block;width:100%;height:auto}
.tg-company-banner:focus-visible{outline:3px solid #a85c97;outline-offset:3px}
@media(min-width:768px){body.future .site-header .tg-all-stores,body.future .site-header .main-nav>a[href="/veikali"]{display:none!important}}
html body.future.page-home.buyer-web.tg-home-compact .tg-hero-copy-updated .future-hero-copy{justify-content:center;gap:8px;padding-block:10px!important}
html body.future.page-home.buyer-web.tg-home-compact .tg-hero-copy-updated h1{font-size:clamp(38px,3.5vw,48px)!important}
html body.future.page-home.buyer-web.tg-home-compact .tg-hero-copy-updated .future-hero-copy>p{font-size:14px!important;max-width:270px;line-height:1.25}
.tg-free-publication{display:inline-block;max-width:45%;padding:6px 9px;border:1px solid #e6ade0aa;border-radius:10px;background:#54304755;color:#fff1fb;font-size:11px;line-height:1.3;box-sizing:border-box}
@media(max-width:767px){html body.future.page-home.buyer-web.tg-home-compact .tg-hero-copy-updated h1{font-size:28px!important}.tg-free-publication{font-size:9px;max-width:56%;padding:4px 6px}html body.future.page-home.buyer-web.tg-home-compact .tg-hero-copy-updated .future-hero-copy>p{font-size:11px!important;max-width:55%}}

/* Community campaign 2026-10-30, live LV/RU copy. */
.tg-community-ads{display:flex;flex-direction:column;gap:14px}.tg-community-ad{position:relative;isolation:isolate;overflow:hidden;border:1px solid #ead1dc;border-radius:18px;min-height:205px;padding:16px;box-sizing:border-box;background:#fcf2e6;color:#431a32}.tg-community-ad>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}.tg-community-ad:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#fff9f0fa 0%,#fff7edf0 38%,#fff7edb0 68%,#fff7ed22);z-index:-1}.tg-community-ad h3{max-width:90%;font:700 23px/1.06 Arial,sans-serif;letter-spacing:-.025em;margin:0 0 10px;text-wrap:balance}.tg-community-ad p{font:400 13px/1.4 Arial,sans-serif;max-width:85%;margin:0 0 14px}.tg-community-ad a{display:inline-flex;align-items:center;min-height:36px;padding:6px 10px;border:1px solid #a93562;border-radius:11px;background:#930039;color:#fff;font:600 12px/1.2 Arial,sans-serif;text-decoration:none}.tg-community-ad a:focus-visible{outline:3px solid #b37bd8;outline-offset:3px}@media(max-width:767px){.tg-community-ads{display:none}}

@media(max-width:767px){
 html body.tg-header-add-ready .site-header .tg-header-add,
 html body.admin .site-header [data-bell]{display:none!important}
}

/* Owner correction 2026-11-02: one bottom AI action; stores use the same glass badge as the free-publication note. */
.tg-store-glass{display:none;text-decoration:none}
@media(max-width:767px){
 html body.future.page-home.buyer-web.tg-home-compact .future-hero .future-hero-actions,
 html body.future.page-home .owner-below-banner,
 html body.future .site-header .tg-header-ai,
 html body.future .site-header .tg-header-add{display:none!important}
 html body.future.page-home.buyer-web.tg-home-compact .future-hero-copy>.tg-store-glass{display:inline-flex;align-items:center;justify-content:center;min-height:32px;max-width:56%;margin:0;color:#fff1fb;text-decoration:none;cursor:pointer;background:#54304755;border:1px solid #e6ade0aa;border-radius:10px;box-shadow:inset 0 1px 3px #ffffff24;backdrop-filter:blur(6px)}
 html body.future.page-home.buyer-web.tg-home-compact .tg-store-glass:focus-visible{outline:3px solid #fff;outline-offset:3px}
}

@media(max-width:767px){
 html body.future.page-home.owner-floating-reference::before{background-size:auto,auto var(--tg-mobile-warm-height,440px);background-position:center,right top}
}

@media(max-width:767px){
 html body.future.page-home.buyer-web.tg-home-compact .future-hero-copy>.tg-free-publication{display:inline-flex;align-items:center;min-height:32px;box-sizing:border-box;border-radius:10px;line-height:1.3;max-width:56%}
}

@media(max-width:767px){
 html body.tg-header-add-ready .site-header .tg-header-ai.tg-header-add,
 html body.future .site-header .header-tools .tg-ai-search,
 html body.future .gallery-layout [data-gallery-columns]{display:none!important}
}

/* Owner's final mobile correction, 2026-11-03: two glass labels on one row. */
.tg-hero-badges{display:contents}
@media(max-width:767px){
 html body.future.page-home.buyer-web.tg-home-compact .future-hero-copy>.tg-hero-badges{display:flex;align-items:stretch;gap:6px;width:100%;max-width:100%}
 html body.future.page-home.buyer-web.tg-home-compact .tg-hero-badges>.tg-free-publication{display:flex;align-items:center;flex:1;min-width:0;max-width:none;min-height:36px;margin:0;padding:5px 7px;font-size:10px;line-height:1.3;border:1px solid #e6ade0aa;border-radius:10px;background:#54304755;box-shadow:inset 0 1px 3px #ffffff24;backdrop-filter:blur(6px);color:#fff1fb;box-sizing:border-box}
 html body.future.page-home.buyer-web.tg-home-compact .tg-hero-badges>.tg-store-glass{justify-content:center;text-decoration:none}
 html body.tg-header-add-ready .site-header .tg-header-ai.tg-header-add,
 html body .site-header .header-tools .tg-ai-search{display:none!important}
}

@media(max-width:767px){
 html:lang(ru) body.future.page-home.buyer-web.tg-home-compact .tg-hero-copy-updated h1{font-size:22px!important;width:max-content;max-width:100%!important}
 html:lang(ru) body.future.page-home.buyer-web.tg-home-compact .tg-hero-copy-updated h1 em{width:max-content;max-width:100%}
}
