/* REC0DET universal interface V2: presentation only.
   3-across category landing, compact list navigation afterward.
   Does not alter databases, routing, accounts, orders, payments, maps, or Jobs imports. */
#viewModule :is(.unifiedCategoryGrid,.premiumCategoryGrid,.catalogHomeGrid,.mirrorCodeGrid:not(.mirrorSubGrid),.financeQuickGrid,.coinQuickGrid):has(> .recodetCatCard),
#viewJobsHome #jobsVacancyNext35 .jobsNext35SectorGrid.shopMainReferenceGrid,
body.servicesLiveV150 #viewShopExplore #shopExploreList:has(> .recodetCatCard){
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  align-items:stretch!important;gap:8px!important;min-width:0!important;
}
@media(min-width:761px){
 #viewModule :is(.unifiedCategoryGrid,.premiumCategoryGrid,.catalogHomeGrid,.mirrorCodeGrid:not(.mirrorSubGrid),.financeQuickGrid,.coinQuickGrid):has(> .recodetCatCard),
 #viewJobsHome #jobsVacancyNext35 .jobsNext35SectorGrid.shopMainReferenceGrid,
 body.servicesLiveV150 #viewShopExplore #shopExploreList:has(> .recodetCatCard){
  grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:12px!important;
 }
}
/* Second level of mirror catalogues is a simple one-column button list.
   Existing data-mirror-subcategory handlers remain on the buttons. */
#viewModule .mirrorCodeGrid.mirrorSubGrid:has(> .recodetCatCard){
 display:grid!important;grid-template-columns:minmax(0,1fr)!important;
 gap:8px!important;max-width:680px!important;margin:10px auto 0!important;
 padding:0 8px 105px!important;
}
#viewModule .mirrorSubGrid > .recodetCatCard{
 display:grid!important;grid-template-columns:48px minmax(0,1fr) 18px!important;
 align-items:center!important;justify-content:stretch!important;
 gap:12px!important;width:100%!important;aspect-ratio:auto!important;
 min-height:68px!important;height:auto!important;max-height:none!important;
 padding:9px 13px!important;border:1px solid #795d2d!important;border-radius:14px!important;
 text-align:left!important;
 background:linear-gradient(120deg,#151519,#0a0b0d)!important;
 box-shadow:inset 0 0 0 2px rgba(219,163,43,.055)!important;
}
#viewModule .mirrorSubGrid > .recodetCatCard::before{content:none!important}
#viewModule .mirrorSubGrid > .recodetCatCard::after{
 content:"›";display:block;grid-column:3;grid-row:1;color:#e4b746;
 font:600 27px/1 system-ui;text-align:center;
}
#viewModule .mirrorSubGrid > .recodetCatCard .recodetCatBadge,
#viewModule .mirrorSubGrid > .recodetCatCard .recodetCatDivider{display:none!important}
#viewModule .mirrorSubGrid > .recodetCatCard .recodetCatArt{
 display:grid!important;grid-column:1;grid-row:1;
 width:46px!important;height:46px!important;min-height:46px!important;
 aspect-ratio:1!important;margin:0!important;padding:5px!important;
 border:1px solid rgba(215,165,61,.3)!important;border-radius:11px!important;
 background:#1a160e!important;filter:none!important;box-sizing:border-box!important;
}
#viewModule .mirrorSubGrid > .recodetCatCard .recodetCatArt svg{
 width:100%!important;height:100%!important;
}
#viewModule .mirrorSubGrid > .recodetCatCard .recodetCatLabel{
 display:block!important;grid-column:2;grid-row:1;
 width:100%!important;min-width:0!important;min-height:0!important;
 margin:0!important;overflow:visible!important;
 font:700 clamp(13px,3.6vw,16px)/1.25 system-ui,sans-serif!important;
 color:#f1f0ea!important;text-align:left!important;
 -webkit-line-clamp:unset!important;
}
/* Services uses a dedicated secondary-screen list renderer. */
body.servicesLiveV150 #viewSubcats #subcatGrid{
 display:grid!important;grid-template-columns:minmax(0,1fr)!important;
 gap:8px!important;max-width:680px!important;margin-inline:auto!important;
}
body.servicesLiveV150 #viewSubcats #subcatGrid > .serviceSubcategoryCard{width:100%!important}
/* Homes: 3 Buy/Rent/Space buttons on first screen; retain the existing
   approved 3-across property categories and third-screen bedroom list. */
#viewModule .homesEntryOptions{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
#viewModule .homesEntryChoice{
 display:flex!important;flex-direction:column!important;align-items:center!important;
 justify-content:center!important;gap:8px!important;
 min-height:0!important;aspect-ratio:1/1.07!important;
 padding:10px 5px!important;border-radius:13px!important;text-align:center!important;
}
#viewModule .homesEntryChoiceIcon{width:45px!important;height:45px!important}
#viewModule .homesEntryChoiceIcon svg{width:28px!important;height:28px!important}
#viewModule .homesEntryChoice strong{flex:none!important;font-size:clamp(10px,2.8vw,15px)!important;line-height:1.18!important}
#viewModule .homesEntryArrow{display:none!important}
/* Far-right country flag is shared across category modules.
   Native select retains the accessibility and 27-market capability. */
.topbar .topbarSecondaryActions{min-width:0!important}
.topbar .recodetGlobalCountry{
 order:9999;position:relative;flex:0 0 40px;
 width:40px;height:40px;min-width:40px;display:grid;place-items:center;
 border:1px solid rgba(215,167,56,.6);border-radius:11px;
 background:#17130d;color:#f6dc90;margin-left:auto;z-index:9;
}
.topbar .recodetGlobalCountry[hidden]{display:none!important}
.topbar .recodetGlobalCountryFlag{font-size:23px;line-height:1}
.topbar .recodetGlobalCountry select{
 position:absolute;inset:0;width:100%;height:100%;
 opacity:0;cursor:pointer;z-index:1;
}
.topbar .recodetGlobalCountry:focus-within{
 outline:2px solid #ffe09b;outline-offset:2px;
}
body:has(.recodetGlobalCountry:not([hidden])) #viewJobsHome #jobsVacancyNext35 .jobsCareerInitialCountry,
body:has(.recodetGlobalCountry:not([hidden])) #viewJobsHome #jobsVacancyNext35 .jobsTechFilters > .jobsCountrySelect,
body:has(.recodetGlobalCountry:not([hidden])) .serviceMarketTiny{
 display:none!important;
}
@media(max-width:380px){
 .topbar .recodetGlobalCountry{flex-basis:34px;width:34px;height:36px;min-width:34px}
 .topbar .recodetGlobalCountryFlag{font-size:20px}
 #viewModule .mirrorSubGrid > .recodetCatCard{min-height:58px!important;gap:9px!important;padding:7px 10px!important}
 #viewModule .mirrorSubGrid > .recodetCatCard .recodetCatArt{width:40px!important;height:40px!important;min-height:40px!important}
 #viewModule .mirrorSubGrid > .recodetCatCard{grid-template-columns:40px minmax(0,1fr) 16px!important}
}
@media(prefers-reduced-motion:reduce){
 #viewModule .mirrorSubGrid > .recodetCatCard{transition:none!important}
}

/* Header V76/V78 uses absolute-positioned controls, not flex slots.
   Anchor the flag at the far right and shift existing right-side controls
   rather than letting it overlap Search, Sort or RC on narrow phones. */
.topbar.topbarTwoRow .recodetGlobalCountry{
 position:absolute!important;top:50%!important;right:var(--v76-edge,12px)!important;
 left:auto!important;bottom:auto!important;margin:0!important;
 transform:translateY(-50%)!important;
 display:grid!important;z-index:15!important;pointer-events:auto!important;
}
.topbar.topbarTwoRow.v76Module #btnSort{right:60px!important}
.topbar.topbarTwoRow.v76Module #btnSearch{right:110px!important}
.topbar.topbarTwoRow.v76Module.v73OneAction #btnSearch{right:60px!important}
@media(max-width:760px){
 .topbar.topbarTwoRow.v78MobileShell .recodetGlobalCountry{right:7px!important}
 .topbar.topbarTwoRow.v78MobileShell .premiumCoinButton{
  right:56px!important;left:auto!important;
 }
 /* Search remains available in list screens; remove only the crowded header button. */
 .topbar.topbarTwoRow.v78MobileShell #btnSearch{display:none!important}
}
@media(max-width:380px){
 .topbar.topbarTwoRow.v78MobileShell .recodetGlobalCountry{right:6px!important}
 .topbar.topbarTwoRow.v78MobileShell .premiumCoinButton{right:49px!important}
}
