/* v18.5.102 — owner-approved mobile corrections. Desktop is intentionally unaffected. */
@media (max-width:1024px){
  /* Main services: Alex is desktop-only; Eva moves into the opened category card. */
  .mobileHeaderAssistantBtn[data-assistant="Алекс"]{display:none!important}
  #categoryPage .mobileHeaderAssistantBtn[data-assistant="Ева"]{position:absolute!important;right:14px!important;bottom:14px!important;z-index:5!important;display:flex!important;align-items:center!important;justify-content:center!important;width:58px!important;height:58px!important;min-width:58px!important;padding:4px!important;border:2px solid #fff!important;border-radius:50%!important;background:#28663f!important;box-shadow:0 5px 18px #183d2860!important}
  #categoryPage .mobileHeaderAssistantBtn[data-assistant="Ева"] img{width:48px!important;height:48px!important;border-radius:50%!important;object-fit:cover!important}
  #categoryPage .mobileHeaderAssistantBtn[data-assistant="Ева"] span{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important}
  #categoryHero{position:relative!important;padding-right:76px!important}
  .categoryPage>.back{display:grid!important;place-items:center!important;width:58px!important;min-width:58px!important;height:58px!important;min-height:58px!important;padding:0!important;font-size:0!important}
  .categoryPage>.back::after{content:'←';font-size:26px!important;line-height:1!important}

  /* Local services: the page uses the language already chosen in the platform. */
  .localHeaderActions .partnerLink,.localHeaderActions .langbar{display:none!important}

  /* Social header/footer use the same 44px control size. */
  #profileApp{--footer81:calc(56px + env(safe-area-inset-bottom))!important}
  #profileApp .v18MobileNav.nav81{grid-template-rows:44px!important;height:var(--footer81)!important;min-height:var(--footer81)!important;padding:6px 6px calc(6px + env(safe-area-inset-bottom))!important}
  #profileApp .v18MobileNav.nav81>button{height:44px!important;min-height:44px!important;padding:3px 1px!important}
  #profileApp .v18MobileNav.nav81>button .label81{font-size:9px!important;line-height:1.05!important}
  #profileApp .v18MobileNav.nav81 .icon81{width:21px!important;height:21px!important}
  #profileApp .v18CommunityBack{min-width:44px!important;min-height:44px!important;padding:8px!important}

  /* Feed settings. */
  #feed74Dialog .feed74Modes{grid-template-columns:repeat(3,minmax(0,1fr))!important;display:grid!important}
  #feed74Dialog .feed74Modes button{min-width:0!important;overflow-wrap:anywhere!important;hyphens:auto!important;font-size:12px!important;line-height:1.12!important;padding:6px 3px!important}
  #feed74Dialog label:has([name="city"]),#feed74Dialog #feed74City102{display:none!important}

  /* Community composer remains available while the feed scrolls. */
  #v18CommunityPage .v18CommunityComposer{position:sticky!important;top:calc(var(--header81) + 6px)!important;z-index:30!important;margin:0 0 10px!important;padding:8px!important;background:#fff!important;box-shadow:0 4px 14px #183d281c!important}
  #v18CommunityPage .v18CommunityComposer>button:first-of-type{min-height:44px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  #ownerEditCommunity102{display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;min-height:44px!important;margin:8px 0 0 auto!important;padding:8px 12px!important;border:1px solid #a9c7b0!important;border-radius:12px!important;background:#edf5ed!important;color:#205a34!important;font-size:13px!important;font-weight:800!important}

  /* Feed cards: visual material dominates; long author text is expandable. */
  #profileApp .post,#v18CommunityPage .v18EntityPost{overflow:hidden!important}
  #profileApp .postMedia,#v18CommunityPage .v18EntityPostMedia{width:100%!important;margin:10px 0!important;border-radius:12px!important}
  #profileApp .postMedia.single img,#profileApp .postMedia.single video,#v18CommunityPage .v18EntityPostMedia.single img,#v18CommunityPage .v18EntityPostMedia.single video{width:100%!important;height:75vw!important;min-height:280px!important;max-height:none!important;object-fit:cover!important}
  #profileApp .postMedia:not(.single) img,#profileApp .postMedia:not(.single) video,#v18CommunityPage .v18EntityPostMedia:not(.single) img,#v18CommunityPage .v18EntityPostMedia:not(.single) video{height:37.5vw!important;min-height:140px!important;object-fit:cover!important}
  #profileApp .post>p,#v18CommunityPage .v18EntityPost>p{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:3!important;overflow:hidden!important}
  #profileApp .post>p.mobileTextExpanded102,#v18CommunityPage .v18EntityPost>p.mobileTextExpanded102{display:block!important}
  .mobileTextToggle102{display:inline-flex!important;align-items:center!important;min-height:32px!important;margin:2px 0 8px!important;border:0!important;background:transparent!important;padding:0!important;color:#28663f!important;font:inherit!important;font-size:13px!important;font-weight:800!important}

  /* Profile identity is a compact two-line block. */
  #profileApp #profileView#profileView:not(.cabinetOpen):not(.workspaceMode74)>.profileHero .profileIdentity{grid-template-columns:52px minmax(0,1fr)!important;grid-template-rows:auto auto!important}
  #profileApp #profileView#profileView:not(.cabinetOpen):not(.workspaceMode74) .identityText{display:grid!important;gap:3px!important}
  #profileApp #profileView#profileView:not(.cabinetOpen):not(.workspaceMode74) #profileName{grid-row:1!important;line-height:1.15!important}
  #profileApp #profileView#profileView:not(.cabinetOpen):not(.workspaceMode74) #profileMeta,#profileApp #profileView#profileView:not(.cabinetOpen):not(.workspaceMode74) #profileAccountType{display:inline!important;font-size:12px!important;line-height:1.25!important}
}

/* v18.5.106 — compact mobile category and community details. */
@media (max-width:1024px){
  body:has(#categoryPage:not(.hidden)){--ynh-header-height:76px!important}
  body:has(#categoryPage:not(.hidden)) .categoryPage{padding-top:0!important}
  body:has(#categoryPage:not(.hidden)) #categoryHero{margin-top:0!important}
  .header .mobileHeaderNav{justify-content:center!important}
  .header .mobileHeaderAssistants .mobileHeaderAssistantBtn[data-assistant="Ева"]{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important}

  #v18CommunityPage .v18CommunitySide>.v18GroupInfo{display:none!important}
  #v18CommunityPage .ownerCommunityInfo106{display:flex!important;align-items:center!important;justify-content:center!important;width:calc(100% - 16px)!important;min-height:44px!important;margin:8px!important;border:1px solid #b8cfbd!important;border-radius:12px!important;background:#edf5ed!important;color:#205a34!important;font-size:14px!important;font-weight:800!important}
  .ownerCommunityInfoDialog106{width:min(34rem,calc(100vw - 1rem));max-height:calc(100dvh - 1rem);padding:0;border:0;border-radius:16px;overflow:hidden;background:#fff}
  .ownerCommunityInfoDialog106::backdrop{background:rgba(13,24,16,.56);backdrop-filter:blur(3px)}
  .ownerCommunityInfoHead106{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid #d7e0d7}.ownerCommunityInfoHead106 h2{margin:0;font-size:20px}.ownerCommunityInfoHead106 button{width:40px;height:40px;border:0;border-radius:50%;background:#edf2ed;font-size:24px}
  .ownerCommunityInfoBody106{max-height:calc(100dvh - 6rem);overflow:auto;padding:16px;line-height:1.48}.ownerCommunityInfoBody106 h3{margin:0 0 9px}.ownerCommunityInfoBody106 p{margin:0 0 14px}.ownerCommunityInfoBody106 .v18GroupFacts{display:grid;gap:7px;margin:0 0 16px}.ownerCommunityInfoBody106 .v18GroupFacts span{padding:7px 10px;border-radius:999px;background:#edf5ed;color:#205a34;font-size:13px;font-weight:700}
  #v18CommunityPage .ownerCommunityPreviewReturn106{display:none!important}
  #v18CommunityPage.ownerCommunityVisitorPreview105 .ownerCommunityPreviewReturn106{display:flex!important;align-items:center!important;justify-content:center!important;width:calc(100% - 16px)!important;min-height:44px!important;margin:8px!important;border:1px solid #b8cfbd!important;border-radius:12px!important;background:#edf5ed!important;color:#205a34!important;font-weight:800!important}
}

/* v18.5.105 — mobile corrections: Eva in header, visitor view, feed top button. */
@media (max-width:1024px){
  .header .mobileHeaderAssistants{order:initial!important}
  .header .mobileHeaderAssistants .mobileHeaderAssistantBtn[data-assistant="Алекс"]{display:none!important}
  #categoryPage .mobileHeaderAssistantBtn[data-assistant="Ева"]{position:static!important;right:auto!important;bottom:auto!important;width:44px!important;height:44px!important;min-width:44px!important;padding:2px!important;border-radius:12px!important;box-shadow:none!important}
  #categoryPage .mobileHeaderAssistantBtn[data-assistant="Ева"] img{width:36px!important;height:36px!important}

  #mobileFeedTop105{position:fixed!important;right:14px!important;bottom:calc(var(--footer81,56px) + 14px)!important;z-index:70!important;display:grid!important;place-items:center!important;width:44px!important;height:44px!important;padding:0!important;border:1px solid #b8cfbd!important;border-radius:50%!important;background:#28663f!important;color:#fff!important;font-size:27px!important;font-weight:800!important;line-height:1!important;box-shadow:0 4px 12px #183d2844!important;opacity:0!important;pointer-events:none!important;transform:translateY(8px)!important;transition:opacity .16s ease,transform .16s ease!important}
  #mobileFeedTop105.visible105{opacity:1!important;pointer-events:auto!important;transform:translateY(0)!important}

  /* Visitor preview hides only owner controls and keeps the community itself unchanged. */
  #v18CommunityPage.ownerCommunityVisitorPreview105 :is(.ownerCommunityTools104,.v18HeroEdit,.v18CommunityComposer,.v66Admin){display:none!important}
}

/* v18.5.104 — mobile-only community and fixed service-view corrections. */
@media (max-width:1024px){
  /* On a service page the navigation and category card stay visible; only its list moves. */
  #categoryPage:not(.hidden)>.back{position:sticky!important;top:var(--ynh-header-height,0px)!important;z-index:80!important;background:#f7f5ef!important}
  #categoryPage:not(.hidden) #categoryHero{position:sticky!important;top:calc(var(--ynh-header-height,0px) + 58px)!important;z-index:79!important}

  /* Never split a word in community names, labels or descriptions. */
  #v18CommunityPage :is(h1,h2,h3,p,span,button,a){word-break:normal!important;overflow-wrap:normal!important;hyphens:none!important}
  #v18CommunityPage .v18CommunityHero .v18EntityIdentity{grid-template-columns:66px minmax(0,1fr)!important;column-gap:10px!important;padding-right:0!important}
  #v18CommunityPage .v18CommunityHero .v18EntityIdentity h1{max-width:none!important;min-width:0!important;line-height:1.08!important}

  /* Compact owner actions live in the lower-right corner of the banner. */
  #v18CommunityPage .ownerCommunityTools104{position:absolute!important;right:10px!important;bottom:10px!important;z-index:9!important;display:flex!important;gap:6px!important}
  #v18CommunityPage .ownerCommunityTools104>button{display:grid!important;place-items:center!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;padding:0!important;border:1px solid #c5d7c9!important;border-radius:12px!important;background:#fff!important;color:#205a34!important;font-size:22px!important;font-weight:800!important;box-shadow:0 2px 8px #10251622!important}

  /* The two community controls form one compact row below the banner. */
  #v18CommunityPage .v18CommunityComposer{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:7px!important;padding:8px!important}
  #v18CommunityPage .v18CommunityComposer>button:first-of-type{width:auto!important;min-width:0!important}
  #v18CommunityPage .ownerJobsCommunity104{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:44px!important;min-height:44px!important;padding:0 10px!important;white-space:nowrap!important;border:1px solid #a9c7b0!important;border-radius:12px!important;background:#edf5ed!important;color:#205a34!important;font-size:12px!important;font-weight:800!important}
}

/* v18.5.103 — exact mobile corrections from owner acceptance review. */
@media (max-width:1024px){
  /* Service-header controls form one equal visual row. */
  .header .mobileHeaderNav{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:5px!important;min-width:0!important}
  .header .mobileHeaderNav>#mobileHeaderServicesBtn,.header .mobileHeaderNav>#mobileHeaderAboutBtn,.header .mobileHeaderNav>#mobileHeaderImportantBtn{display:none!important}
  .header .mobileHeaderNav>:is(.mobileHeaderCountryBtn,#mobileHeaderLanguageBtn,.mobileHeaderCommunityBtn,.mobileUnifiedAccount),.header .mobileHeaderAssistants,.header .mobileHeaderAssistants .mobileHeaderAssistantBtn[data-assistant="Ева"]{box-sizing:border-box!important;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;margin:0!important}
  .header .mobileHeaderAssistants{position:static!important;display:block!important}
  .header .mobileHeaderAssistants .mobileHeaderAssistantBtn[data-assistant="Ева"]{display:flex!important}
  .header .mobileHeaderCommunityBtn .mobileCommunityEntryText,.header .mobileUnifiedAccount .ynhAccountCopy{display:none!important}
  .header .mobileUnifiedAccount .ynhAccountAvatar{margin:0!important}

  /* Social header: equal buttons, genuinely centered page name. */
  #profileApp .socialHeader{position:sticky!important;grid-template-columns:44px 44px minmax(0,1fr) 44px 44px 44px!important;grid-template-areas:"back home title search messages notifications"!important;justify-content:initial!important;gap:3px!important}
  #profileApp .socialHeader #mobileBack81{grid-area:back!important}
  #profileApp .socialHeader #mobileHome81{grid-area:home!important}
  #profileApp .socialHeader #mobileTitle81{position:absolute!important;left:50%!important;top:50%!important;z-index:1!important;width:calc(100% - 270px)!important;transform:translate(-50%,-50%)!important;padding:0!important;text-align:center!important;font-size:14px!important;font-weight:800!important;pointer-events:none!important}
  #profileApp .socialHeader :is(#mobileBack81,#mobileHome81,#mobileSearchButton81,.headerQuick){width:44px!important;height:44px!important;min-height:44px!important}

  /* Footer controls match header height and are aligned as one row. */
  #profileApp{--footer81:calc(56px + env(safe-area-inset-bottom))!important}
  #profileApp .v18MobileNav.nav81{align-items:center!important;grid-template-rows:44px!important}
  #profileApp .v18MobileNav.nav81>button{align-self:center!important;height:44px!important;min-height:44px!important}

  /* Profile card: exactly two visual text rows below the banner. */
  #profileApp #profileView#profileView:not(.cabinetOpen):not(.workspaceMode74) .identityText{display:grid!important;grid-template-columns:max-content minmax(0,1fr)!important;column-gap:5px!important;row-gap:4px!important}
  #profileApp #profileView#profileView:not(.cabinetOpen):not(.workspaceMode74) #profileName{grid-column:1/-1!important;grid-row:1!important}
  #profileApp #profileView#profileView:not(.cabinetOpen):not(.workspaceMode74) #profileMeta{grid-column:1!important;grid-row:2!important;margin:0!important;white-space:nowrap!important}
  #profileApp #profileView#profileView:not(.cabinetOpen):not(.workspaceMode74) #profileAccountType{grid-column:2!important;grid-row:2!important;margin:0!important;min-width:0!important;white-space:nowrap!important}
  #profileApp #profileView#profileView:not(.cabinetOpen):not(.workspaceMode74) #profileAccountType button{display:inline!important;padding:0!important;border:0!important;background:transparent!important;color:inherit!important;font:inherit!important;text-decoration:underline!important}

  /* The community composer belongs to the banner flow and leaves with it. */
  #v18CommunityPage .v18CommunityComposer{position:static!important;top:auto!important;z-index:auto!important;margin:8px 0 10px!important;box-shadow:none!important}
}

/* Final mobile cascade: the category banner begins directly under the real header edge. */
@media (max-width:1024px){
  body:has(#categoryPage:not(.hidden)){padding-top:var(--ynh-header-height,64px)!important}
  body:has(#categoryPage:not(.hidden)) #app{margin-top:0!important;padding-top:0!important}
  #categoryPage:not(.hidden){margin-top:0!important;padding-top:0!important}
  #categoryPage:not(.hidden)>.back{display:none!important}
  #categoryPage:not(.hidden) #categoryHero{top:0!important;margin-top:0!important}
  .header .mobileHeaderNav{position:relative!important;justify-content:flex-end!important}
  .header .mobileHeaderAssistants{position:static!important;transform:none!important}
}


/* v18.5.110.1 — mobile service-header layout: approved order Back, Home, Eva, Country, Cabinet, Language. */
@media (max-width:1024px){
  header.header{justify-content:center!important;gap:6px!important}

  header.header.hasBack92:not(.socialHeader):not(.backStrip92){padding:6px 8px!important}

  header.header > .globalBack92{position:static!important;left:auto!important;top:auto!important;display:grid!important;place-items:center!important;flex:0 0 44px!important;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;font-size:0!important;gap:0!important}
  header.header > .globalBack92::after{content:'←';font-size:22px!important;line-height:1!important;color:#28663f!important;font-weight:800!important}

  header.header > .brand{flex:0 0 44px!important;width:44px!important;min-width:44px!important}
  header.header .mobileHeaderNav{flex:0 1 auto!important;width:auto!important;justify-content:center!important;gap:6px!important}
  header.header .mobileHeaderAssistants,
  header.header #mobileHeaderCountryBtn,
  header.header .mobileUnifiedAccount{flex:0 0 44px!important;width:44px!important;min-width:44px!important}

  header.header #mobileHeaderCountryBtn{position:static!important;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;border-radius:12px!important}

  /* Language is separated from Country and fixed at the right edge after Cabinet. */
  header.header > #mobileHeaderLanguageBtn{position:absolute!important;right:8px!important;top:50%!important;bottom:auto!important;left:auto!important;transform:translateY(-50%)!important;z-index:4!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:1px!important;box-sizing:border-box!important;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;margin:0!important;padding:4px 5px!important;border:1px solid rgba(72,91,69,.20)!important;border-radius:12px!important;background:rgba(255,255,255,.88)!important;color:#202a22!important;box-shadow:none!important;font-weight:850!important;letter-spacing:.01em!important}
  header.header > #mobileHeaderLanguageBtn small{display:block!important;font-size:7.75px!important;line-height:1!important;font-weight:650!important;letter-spacing:0!important;opacity:.72!important}
  header.header > #mobileHeaderLanguageBtn b{display:block!important;font-size:10.5px!important;line-height:1!important;font-weight:900!important;letter-spacing:.04em!important;color:inherit!important}
}

@media (min-width:1025px){
  header.header > #mobileHeaderLanguageBtn{display:none!important}
}
