/* W45: left menu on wide screens (HANDOFFS/ARCHITECT/LEFT_NAV_WIDE_20261101). 1799px and below is untouched.
   >=1800: rail 240, label 16/500, icon 22, Create right under the menu, tagline at the bottom. >=2200: rail 280, label 18/500, icon 24, bigger logo. */
@media (min-width:1800px){
  .app{grid-template-columns:240px minmax(0,1fr) 342px!important}
  .left{padding:24px 18px!important}
  .left .focfocBrand{zoom:1.15}
  .left .navs{flex:0 1 auto}                                   /* shrinks and scrolls on a short window, never pushes Create off the column */
  .left .nav,.left .nav[data-mode]{font-size:16px!important;font-weight:500!important;padding:13px 14px!important}          /* the label inherits both (font:inherit); an older rule pins Account at 15/400 */
  .left .nav.active{font-weight:500!important}
  .left .nav .ffNavGlyph{width:34px!important;height:34px!important}
  .left .nav .ffNavGlyph svg{width:22px!important;height:22px!important}
  .left .createMain{margin-top:24px;font-size:15px;padding:14px}
  .left .leftHint{margin-top:auto;padding-top:16px;font-size:13px}
  .left .leftHint .ffBrandTagline{font-size:13px}
}
@media (min-width:2200px){
  .app{grid-template-columns:280px minmax(0,1fr) 342px!important}
  .left{padding:28px 20px!important}
  .left .focfocBrand{zoom:1.3}
  .left .navs{gap:8px}
  .left .nav,.left .nav[data-mode]{font-size:18px!important;padding:15px 16px!important}
  .left .nav .ffNavGlyph{width:38px!important;height:38px!important}
  .left .nav .ffNavGlyph svg{width:24px!important;height:24px!important}
  .left .createMain{margin-top:28px;font-size:16px;padding:16px;border-radius:13px}
  .left .leftHint{font-size:14px}
  .left .leftHint .ffBrandTagline{font-size:14px}
}

/* 1121-1799px: item pitch 46px like the approved reference (LEFT_NAV_WIDE_20261101 / Places shell): 45px item + 1px gap, hit area stays >= 44px */
@media (min-width:1121px) and (max-width:1799px){
  .left .navs{gap:1px}
  .left .nav,.left .nav[data-mode]{padding:7px 11px!important}
}

/* G7: the menu never scrolls sideways and never cuts an icon: the column is as wide as the shell says, labels that do not fit end in "…" */
.left .navs{overflow-x:hidden!important}
.left .nav{min-width:0}
.left .nav .ffNavLabel{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* 761-1100px: the 190px column is narrow; slim padding so "FocFoc TapShow" is whole (ellipsis stays as the safety net) */
@media (min-width:761px) and (max-width:1100px){
  .left{padding-left:10px!important;padding-right:10px!important}
  .left .nav,.left .nav[data-mode]{padding-left:8px!important;padding-right:4px!important;gap:6px!important}
}

/* G7b (prototype v3-places-r3 entry A, #885/#1012, ACCOUNT_MENU_SPEC_20261101): one-colour 20px icons with no square frame; the active item is a soft rounded pill; a 1px divider sits above Account */
.left .nav .ffNavGlyph{width:20px!important;height:20px!important;margin:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;color:inherit!important}
.left .nav .ffNavGlyph svg{width:20px!important;height:20px!important;opacity:.8}
.left .nav,.left .nav[data-mode]{color:#dce6ef;border-radius:12px!important}
.left .nav:hover,.left .nav:hover .ffNavGlyph{background:#0a1830!important;color:#dce6ef!important}
.left .nav:hover .ffNavGlyph{background:none!important}
.left .nav.active,.left .nav.ffMenuOpen[data-mode="profile"]{background:#0c1d33!important;box-shadow:none!important;border:0!important;color:#fff!important}
.left .nav.active .ffNavGlyph,.left .nav.ffMenuOpen .ffNavGlyph{background:none!important;box-shadow:none!important;color:#fff!important}
.left .nav.active .ffNavGlyph svg,.left .nav.ffMenuOpen .ffNavGlyph svg{opacity:1}
.left .nav.ffHelpNav .ffNavLabel{font-weight:inherit}
/* while the Account popover is open only Account looks active (the page behind keeps its own state) */
.left .navs:has(.nav.ffMenuOpen) .nav.active:not(.ffMenuOpen){background:transparent!important;color:#dce6ef!important}
.left .navs:has(.nav.ffMenuOpen) .nav.active:not(.ffMenuOpen) .ffNavGlyph{color:#dce6ef!important}
.left .navs:has(.nav.ffMenuOpen) .nav.active:not(.ffMenuOpen) .ffNavGlyph svg{opacity:.8}
.left .navsep{flex:0 0 auto;height:1px;background:#142035;margin:8px 12px}
@media (min-width:1800px){.left .nav .ffNavGlyph,.left .nav .ffNavGlyph svg{width:22px!important;height:22px!important}}
@media (min-width:2200px){.left .nav .ffNavGlyph,.left .nav .ffNavGlyph svg{width:24px!important;height:24px!important}}
/* G7b rhythm: item min-height 44, padding 0 12, gap 12, list gap 2 => 46px pitch (spec (e)); wide tiers keep their #1007 heights */
@media (max-width:1799px){
  .left .navs{gap:2px!important}
  .left .nav,.left .nav[data-mode]{min-height:44px!important;padding:0 12px!important;gap:12px!important;font-size:15px!important}
}
@media (min-width:761px) and (max-width:1100px){.left .nav,.left .nav[data-mode]{padding:0 8px!important;gap:8px!important}}
/* Boss/Trum 01/11: item pitch = 44 + 2 = 46px at EVERY width (v3-places-r3 #885/#1012 is newer than #1007); only the column (240/280) and the label size (16/18) follow the wide tiers */
@media (min-width:1800px){.left .navs{gap:2px!important}.left .nav,.left .nav[data-mode]{min-height:44px!important;padding:0 12px!important;gap:12px!important;font-size:16px!important}}
@media (min-width:2200px){.left .nav,.left .nav[data-mode]{font-size:18px!important}}
.left .nav,.left .nav[data-mode]{color:#dce6ef!important}
.left .nav.active,.left .nav.ffMenuOpen[data-mode="profile"]{color:#fff!important}
.left .nav .ffNavLabel{color:inherit!important}
.left .nav.ffHelpNav,.left .nav.ffHelpNav .ffNavLabel{font-weight:inherit!important}
.left .nav.ffHelpNav{font-weight:400!important}
.left .navs:has(.nav.ffMenuOpen) .nav.active:not(.ffMenuOpen){color:#dce6ef!important}
@media (max-width:1799px){.left .nav,.left .nav[data-mode],.left .nav .ffNavLabel{font-weight:400!important}}

/* G7c (Trùm spec 01/11, #1007 column widths kept): phone bottom bar = 64px with 5 items, Create is the 34px round one inside the bar (v3 .tab .plus); 761-1120 keeps the full wordmark (the old "symbol only" rule dates from the 82px column, the column is 190px now). */
@media (max-width:760px){
  /* #1413 (Boss, 13/11): ONE track system for the five tabs at EVERY width 0-760 (390, 600, 601, 744, 760): item = grid [34px icon track | 18px label track], icon centred in its track (24px glyph, the 34px Create circle fills it), all labels on one baseline, nothing leaves the item (no translate, no overflow). `html body nav.bottomNav .bnav` (0,2,3) beats the l2/inline `.bottomNav .bnav` (0,2,0) and any other !important rule of lower specificity whatever the stylesheet order, and `display:grid` is explicit because a 601-760 rule had turned the items into block/row. */
  html body nav.bottomNav{height:calc(64px + env(safe-area-inset-bottom))!important;padding:4px 6px env(safe-area-inset-bottom)!important;align-items:center!important;overflow:visible!important}
  html body nav.bottomNav .bnav{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:34px 18px!important;justify-items:center!important;align-items:center!important;align-content:center!important;row-gap:0!important;gap:0!important;min-width:0!important;height:56px!important;min-height:56px!important;padding:0!important;margin:0!important;box-sizing:border-box!important}
  html body nav.bottomNav .bnav .ffBottomGlyph{grid-row:1!important;grid-column:1!important;width:24px!important;height:24px!important;margin:0!important;align-self:center!important;justify-self:center!important;transform:none!important;position:static!important}
  html body nav.bottomNav .bnav.createB .ffBottomGlyph{width:34px!important;height:34px!important;border-radius:50%!important;display:grid!important;place-items:center!important}
  html body nav.bottomNav .bnav .ffNavLabel{grid-row:2!important;grid-column:1!important;display:block!important;height:18px!important;line-height:18px!important;margin:0!important;padding:0!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;text-align:center!important}
  html.ffGuest .ffGuestAuth{gap:4px!important}html.ffGuest .ffGuestAuth button{padding:0 10px!important}   /* M318: guest header at 375-430: Log in / Sign up shrink so "Search FocFoc" is not cut*/
  .feedWrap{padding-bottom:calc(76px + env(safe-area-inset-bottom))!important}
}
@media (min-width:761px) and (max-width:1120px){
  .brand.focfocBrand.focfocBrandPremium{width:156px!important;margin:1px 0 21px 7px!important;justify-content:flex-start!important;gap:8px!important}
  .focfocBrandPremium .focfocBrandSymbol{width:42px!important;height:34px!important;flex:0 0 42px!important}
  .focfocBrandPremium .focfocBrandWord{display:block!important}
}

/* M320: the guest header grid assumes [brand, search, Log in/Sign up, language]. The language chooser and the guest bar are inserted by different scripts, so on some loads the language came FIRST in the DOM, Log in/Sign up fell into the 44px column and Sign up ended up ~30px off screen (375/390, staging). Pin the visual order whatever the DOM order. */
@media(max-width:760px){
  html.ffGuest .header .searchrow>.focfocMobileBrand{order:0}
  html.ffGuest .header .searchrow>.search{order:1}
  html.ffGuest .header .searchrow>.round{order:2}
  html.ffGuest .header .searchrow>.ffGuestAuth{order:3}
  html.ffGuest .header .searchrow>#ffLocaleChoice{order:4}
}
