/* v356: Camo theme overlap fixes. Every rule is scoped to html[data-camo], so Light and Dark are unchanged.
   Found by an automated overlap audit (Camo, 360x780 / 390x844 / 412x915 / 1280x800, signed in and signed out). */

/* 1) Plan > This week: rest-day rows carry the generic .rest class (the workout rest-timer bar, position:sticky;bottom:0),
      so on phones they stuck to the bottom of the screen and piled on top of each other behind the tab bar. */
html[data-camo] #view-plan .pg-day.rest{position:relative;bottom:auto;z-index:auto}

/* 2) Premium welcome: the profile photo-grid rule (.pw-grid: 3 tiny columns, 2px gaps) also matched this page's card grid,
      so on phones the three cards were squeezed side by side and their text spilled out of the cards. */
html[data-camo] #pwContent .pw-grid{display:grid;grid-template-columns:1fr;gap:12px;padding:0;list-style:none}
@media (min-width:800px){
  html[data-camo] #pwContent .pw-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  html[data-camo] #pwContent .pw-grid.two{grid-template-columns:1fr 1fr}
}
html[data-camo] #pwContent .pw-grid>.pw-f{min-width:0}

/* 3) Exercise sheet (big photo): the tip callout sat on top of the pause button (both top-right), and the
      "Avoid" callout covered the Start/End phase tag (both bottom-left). */
html[data-camo] .ex-media.big.has-photo .c-tip{right:58px;max-width:calc(100% - 78px)}
html[data-camo] .ex-media.big .c-bad{bottom:42px}

/* 4) Photo Booth on laptops: the sticky unlock card is taller than the space between the top bar and the tab bar,
      so "Unlock booth" stayed hidden behind the tab bar. Let it scroll with the page instead. */
@media (min-width:900px) and (max-height:1000px){
  html[data-camo] #boothContent:has(.bl-hero)>.bl-wrap{position:relative;top:auto}
}

/* 5) Social on laptops with an urgent banner: the side menu plus the Stories card ran under the tab bar
      (story names hidden). Tighten the side menu so both fit. Not the like button / post actions. */
@media (min-width:1000px) and (max-height:940px){
  html[data-camo].urgent-on.hs-open #homeSocial .hs-tt .tt-head .tt-hbtn{height:38px}
  html[data-camo].urgent-on.hs-open #homeSocial .hs-tt .tt-tab{min-height:36px}
  html[data-camo].urgent-on.hs-open #homeSocial .hs-tt .tt-tab.is-on::after{top:8px}
  html[data-camo].urgent-on.hs-open #homeSocial .hs-tt .tt-kbd{display:none}
}
@media (min-width:1000px) and (max-height:760px){
  html[data-camo].hs-open #homeSocial .hs-tt .tt-head .tt-hbtn{height:38px}
  html[data-camo].hs-open #homeSocial .hs-tt .tt-tab{min-height:36px}
  html[data-camo].hs-open #homeSocial .hs-tt .tt-tab.is-on::after{top:8px}
  html[data-camo].hs-open #homeSocial .hs-tt .tt-kbd{display:none}
}

/* 6) Cookie "choice saved" toast on laptops sat on top of the bottom tab bar (Home / Plan). Lift it above the bar. */
@media (min-width:900px){
  html[data-camo]:not(.hs-open) .ck-toast{bottom:calc(var(--tb-h,65px) + 12px + env(safe-area-inset-bottom,0px))}
}

/* 7) Coach Mode locked preview: the "Premium members only" label is stretched across the whole demo box (inset:0),
      and the wider Camo font pushed it over the "1:24 / REST" timer ring. Keep it to the right of the ring. */
html[data-camo] .cm-demo .pp-lockbadge{left:140px;right:12px;text-align:center;line-height:1.2}

/* 8) Buddy how-to (phones): at full pulse the rotated "LET'S TALK" stamp's corner ran ~25px past the card
      edge (and "NO WAY" ~3px at 360). Nudge both stamps inward. */
@media (max-width:420px){
  html[data-camo] .bd-sw-howto-side.is-left{transform:translateX(calc(-8% + 8px))}
  html[data-camo] .bd-sw-howto-side.is-right{transform:translateX(calc(8% - 32px))}
}

/* 9) Social header on phones (urgent banner on or off): in Camo's wider typewriter/stencil type the
      Following / For you / Live tabs need more room than the strip between + and Refresh, so "Live" ran
      under the Refresh button. Tighten the header (button size, gaps) and the tab type so all three fit. */
@media (max-width:999px){
  html[data-camo].hs-open #homeSocial .hs-tt .tt-head{gap:2px;padding-left:6px;padding-right:6px}
  html[data-camo].hs-open #homeSocial .hs-tt .tt-hr{gap:2px}
  html[data-camo].hs-open #homeSocial .hs-tt .tt-tabs{gap:0;margin:0}
  html[data-camo].hs-open #homeSocial .hs-tt .tt-tab,
  html[data-camo].hs-open #homeSocial .hs-tt .live351-tabpill{letter-spacing:-.02em;padding-left:3px;padding-right:3px}
  html[data-camo].hs-open #homeSocial .hs-tt .live351-tabpill{gap:4px}
}
@media (max-width:412px){
  html[data-camo].hs-open #homeSocial .hs-tt .tt-head .tt-hbtn{width:36px;height:36px}
  html[data-camo].hs-open #homeSocial .hs-tt .tt-tab,
  html[data-camo].hs-open #homeSocial .hs-tt .live351-tabpill{font-size:12.5px}
}
@media (max-width:359px){
  html[data-camo].hs-open #homeSocial .hs-tt .tt-head .tt-hbtn{width:34px;height:34px}
  html[data-camo].hs-open #homeSocial .hs-tt .tt-tab,
  html[data-camo].hs-open #homeSocial .hs-tt .live351-tabpill{font-size:11.5px;padding-left:2px;padding-right:2px}
}
