/* Overview and menus. The overview reads top to bottom: today's targets, today's workout, three quick stats, quick meals,
   the community and, for Free members, one Pro card. Colours and type come from styles.css. */
.ov-top{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(300px,.8fr);gap:18px}
.ov-top>.ov-today{grid-column:2;grid-row:1}
.ov-top>.session{grid-column:1;grid-row:1;min-height:300px}
.ov-top .session .primary,.ov-today-actions button,.ov-pro .primary{min-height:46px}
.ov-today,.ov-community,.ov-pro{display:flex;flex-direction:column;gap:16px}
.ov-today .section-head,.ov-community .section-head,.ov-pro .section-head{margin:0;align-items:flex-start;gap:12px}
.ov-today .section-head h2,.ov-pro .section-head h2{margin-top:4px}
.ov-goal{margin-inline-start:8px;padding:2px 8px;border:1px solid #4b3e18;border-radius:999px;color:var(--gold);font-size:10px;font-weight:800;letter-spacing:.6px;text-transform:uppercase}
.ov-rings{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%;max-width:440px;margin:0 auto;text-align:center}
.ov-ring{display:grid;justify-items:center;align-content:start;gap:1px;min-width:0}
.ov-dial{--value:0;width:min(92px,100%);aspect-ratio:1;border-radius:50%;background:conic-gradient(var(--gold) calc(var(--value)*1%),#292a23 0);display:grid;place-items:center;margin-bottom:8px}
.ov-dial>span{width:calc(100% - 14px);aspect-ratio:1;border-radius:50%;background:#12130f;display:grid;place-content:center;line-height:1.15}
.ov-dial strong{font-size:18px;font-weight:800}
.ov-dial small{color:var(--muted);font-size:10px}
.ov-ring>b{font-size:13px}
.ov-ring>small{color:var(--muted);font-size:11px}
.ov-today-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:auto}
.ov-today-actions .primary{grid-column:1/-1}
.ov-today-actions button{font-size:14px;font-weight:800}

.ov-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0 0}
.ov-stat{display:flex;align-items:flex-start;gap:12px;min-width:0;padding:16px 18px;color:var(--text);text-align:start;cursor:pointer;font-size:14px}
.ov-stat:hover,.ov-meal:hover{border-color:#4b3e18}
.ov-stat>i{flex:0 0 38px;height:38px;display:grid;place-items:center;border-radius:10px;background:#24251f;color:var(--gold);font-style:normal;font-size:17px}
.ov-stat>span{display:grid;gap:4px;min-width:0}
.ov-value strong{font-size:24px;font-weight:800;line-height:1.1}
.ov-value small{color:var(--muted);font-size:13px}
.ov-stat em{color:var(--muted);font-size:13px;font-style:normal;line-height:1.4}
.ov-stat em b{color:var(--text)}

.ov-meals-wrap .section-head{margin-top:26px}
.ov-meals{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.ov-meal{display:flex;flex-direction:column;min-width:0;padding:0;overflow:hidden;color:var(--text);text-align:start;cursor:pointer;scroll-snap-align:start}
.ov-meal img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;background:#0d0e0c}
.ov-meal>span{display:grid;gap:4px;padding:10px 12px 12px}
.ov-meal b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;line-height:1.3}
.ov-meal small{color:var(--muted);font-size:11px}

.ov-bottom{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);gap:18px;align-items:start;margin-top:26px}
.ov-bottom>:only-child{grid-column:1/-1}
.ov-community{gap:0}
.ov-community .section-head{margin-bottom:8px}
.ov-post{display:flex;align-items:flex-start;gap:12px;width:100%;padding:14px 0;border:0;border-top:1px solid var(--line);background:0;color:var(--text);text-align:start;cursor:pointer;font-size:14px}
.ov-post .avatar{flex:0 0 auto}
.ov-post-body{flex:1;display:grid;gap:2px;min-width:0}
.ov-post-body small{color:var(--muted);font-size:12px}
.ov-post-text{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;color:#d6d4cc;line-height:1.45}
.ov-post>img,.ov-post-video{flex:0 0 64px;width:64px;height:64px;border:1px solid var(--line);border-radius:8px;object-fit:cover}
.ov-post-video{display:grid;place-items:center;background:#0d0e0c;color:var(--gold);font-style:normal}
.ov-empty{display:grid;justify-items:start;gap:8px;padding-top:6px}
.ov-empty h3,.ov-empty p{margin:0}
.ov-empty p{color:var(--muted)}

.ov-pro{border-color:#4b3e18;background:radial-gradient(circle at 100% 0,rgba(217,180,74,.14),transparent 55%),linear-gradient(145deg,#171510,#10110f)}
.ov-pro-count{flex:0 0 auto;padding:4px 10px;border:1px solid #4b3e18;border-radius:999px;color:var(--gold);font-size:11px;font-weight:800;white-space:nowrap}
.ov-pro-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0;padding:0;list-style:none}
.ov-pro-tools li{display:flex;align-items:center;gap:10px;min-width:0;padding:8px;border:1px solid var(--line);border-radius:10px;background:#0d0e0c;font-size:13px;font-weight:650;line-height:1.25}
.ov-pro-tools i{flex:0 0 30px;height:30px;display:grid;place-items:center;border-radius:8px;background:#2b230e;color:var(--gold);font-style:normal}

/* Sidebar: Overview on top, then Train, Food, Learn and People. Profile is the row at the bottom. */
.sidebar{overflow-y:auto}
.sidebar .brand{margin-bottom:24px}
.sidebar nav .nav{padding:9px 12px}
.nav-group{display:grid;gap:3px;margin-top:12px}
.nav-group>small{padding:0 12px 2px;color:#6f716a;font-size:10px;font-weight:800;letter-spacing:1.4px;text-transform:uppercase}
.sidebar nav{margin-bottom:18px}
.sidebar .upgrade{flex-shrink:0}

/* Account row at the bottom of the sidebar: the name opens the profile, ••• opens the account menu. */
.sidebar .profile{position:relative;grid-template-columns:minmax(0,1fr) auto;gap:4px}
.sidebar .profile-link{display:flex;align-items:center;gap:10px;min-width:0;padding:6px;border:0;border-radius:10px;background:0;color:var(--text);text-align:start;cursor:pointer}
.sidebar .profile-link:hover,.sidebar .profile-link:focus-visible{background:#1a1b17}
.profile-link>span:last-child{display:grid;min-width:0}
.profile-link strong{overflow:hidden;font-size:14px;text-overflow:ellipsis;white-space:nowrap}
.profile-link small{font-size:12px}
.sidebar .profile .profile-more{width:36px;height:36px;border-radius:8px;font-size:16px;cursor:pointer}
.sidebar .profile .profile-more:hover,.sidebar .profile .profile-more[aria-expanded=true]{background:#1a1b17;color:var(--text)}
.account-menu{position:absolute;bottom:calc(100% + 6px);inset-inline:0;z-index:20;display:grid;gap:2px;padding:6px;border:1px solid var(--line);border-radius:12px;background:#11120f;box-shadow:0 18px 40px rgba(0,0,0,.5)}
.sidebar .account-menu button{display:flex;align-items:center;gap:10px;padding:10px 12px;border:0;border-radius:8px;background:0;color:var(--text);text-align:start;font-size:14px;cursor:pointer}
.sidebar .account-menu button:hover,.sidebar .account-menu button:focus-visible{background:#1a1b17}
.account-menu i{width:18px;color:var(--gold);font-style:normal;text-align:center}
.sidebar .account-menu .danger{color:var(--red)}
.account-menu [data-lang-toggle]::before{content:"◑";width:18px;color:var(--gold);text-align:center}

/* Laptops with short screens: the whole sidebar, down to the profile row, fits without scrolling. */
@media(min-width:1051px) and (max-height:900px){
  .sidebar{padding-top:20px;padding-bottom:14px}
  .sidebar .brand{margin-bottom:14px}
  .sidebar nav .nav{padding:7px 12px}
  .sidebar nav{margin-bottom:12px}
  .nav-group{gap:2px;margin-top:8px}
  .sidebar .upgrade{gap:6px;padding:12px}
  .sidebar .profile{margin-top:12px;padding-top:10px}
}
@media(min-width:1051px) and (max-height:840px){
  .sidebar nav .nav{padding:6px 12px}
  .sidebar .upgrade strong{display:none}
}
@media(min-width:1051px) and (max-height:775px){
  .sidebar .upgrade>small{display:none}
}
@media(min-width:1051px) and (max-height:740px){
  .sidebar nav .nav{padding:5px 12px}
  .nav-group{margin-top:6px}
}

/* Phone More sheet, grouped the same way. */
.more-group{display:grid;gap:8px}
.more-group>small{margin:6px 2px 0;color:var(--muted);font-size:11px;font-weight:800;letter-spacing:1.2px;text-transform:uppercase}

@media(max-width:1050px){
  .nav-group{margin-top:6px;padding-top:6px;border-top:1px solid var(--line)}
  .nav-group>small{display:none}
  .sidebar .nav i{width:auto;font-size:18px}
  .sidebar .profile{grid-template-columns:1fr}
  .sidebar .profile .profile-link{display:flex;justify-content:center;padding:4px}
  .profile-link>span:last-child{display:none}
}
@media(min-width:701px) and (max-width:1050px) and (max-height:900px){
  .sidebar nav .nav{padding:6px 12px}
}
@media(max-width:900px){
  .ov-top,.ov-bottom{grid-template-columns:1fr}
  .ov-top>.ov-today,.ov-top>.session{grid-column:auto;grid-row:auto}
  .ov-meals{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(150px,30%);overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:6px;scrollbar-width:thin}
}
@media(max-width:700px){
  .ov-top{gap:14px}
  .ov-top>.session{min-height:260px}
  .ov-today{padding:18px 16px}
  .ov-stats{grid-template-columns:1fr;gap:8px;margin-top:14px}
  .ov-stat{align-items:center;padding:12px 14px}
  .ov-meals{grid-auto-columns:minmax(150px,46%)}
  .ov-bottom{gap:14px}
  .bottom-nav{justify-content:stretch}
  .bottom-nav button{flex:1 1 0;min-width:0;display:grid;place-items:center;align-content:center;gap:3px;padding:8px 2px;font-size:21px;line-height:1}
  .bottom-nav small{font-size:11px;font-weight:700;line-height:1.2}
}

/* First page on phones: the three features as compact rows, member results and the two plans as swipe rows,
   and a shorter community section at the end. */
.swipe-hint{display:none;margin:10px 0 0;color:var(--muted);font-size:12px;text-align:center}
@media(max-width:700px){
  .landing-features>div{display:grid;grid-template-columns:96px minmax(0,1fr);column-gap:14px;align-items:center;padding:14px 16px}
  .landing-features>div>img{grid-row:1/4;width:96px;height:96px;aspect-ratio:auto;margin:0;border-radius:10px}
  .landing-features small{align-self:end}
  .landing-features h2{margin:2px 0;font-size:19px}
  .landing-features p{margin:0;font-size:13px;align-self:start}
  #member-results .member-results-grid[data-count]:not([data-count="1"]){grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:86%;gap:12px;margin-inline:-16px;padding:0 16px 6px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:16px;scrollbar-width:none}
  #member-results .member-results-grid::-webkit-scrollbar{display:none}
  #member-results .member-result{scroll-snap-align:start}
  #member-results .member-results-grid[data-count]:not([data-count="1"])+.swipe-hint{display:block}
  .plan-row{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:86%;margin-inline:-18px;padding:0 18px 6px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:18px;scrollbar-width:none}
  .plan-row::-webkit-scrollbar{display:none}
  .plan-row article{scroll-snap-align:start}
  .community-proof{min-height:0;padding-top:120px}
}

/* Overview: the weekly goal and the streak. */
.ov-weekgoal{display:flex;align-items:center;gap:18px;margin-top:14px;padding:16px 18px}
.goal-ring{--p:0;flex:0 0 auto;width:78px;height:78px;border-radius:50%;display:grid;place-items:center;align-content:center;background:conic-gradient(var(--gold) calc(var(--p)*360deg),#292a23 0);position:relative}
.goal-ring:before{content:"";position:absolute;inset:7px;border-radius:50%;background:var(--panel)}
.goal-ring strong,.goal-ring small{position:relative;line-height:1.1;text-align:center}
.goal-ring strong{font-size:22px;color:var(--gold2)}
.goal-ring small{font-size:11px;color:var(--muted)}
.goal-copy{flex:1;min-width:0;display:grid;gap:6px}
.goal-copy h3{margin:0;font-size:16px}
.goal-copy p{margin:0;font-size:13px}
.goal-days{display:flex;gap:6px}
.goal-day{display:grid;justify-items:center;gap:2px}
.goal-day b{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;font-size:12px;border:1px solid var(--line);color:#14120c}
.goal-day small{font-size:10px;color:var(--muted);white-space:nowrap}
.goal-day.today small{color:var(--gold);font-weight:800}
.goal-day.done b{background:var(--gold);border-color:var(--gold)}
.goal-day.frozen b{background:#1d2a33;border-color:#4f86a8;color:#9fd2f0}
.goal-day.today b{border-color:var(--gold)}
.goal-day.missed b{opacity:.55}
.goal-sheet{display:grid;gap:12px}
.goal-sheet h2{margin:0}
.goal-sheet p{margin:0}
.goal-pick{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}
.goal-pick button{padding:10px 0;border:1px solid var(--line);border-radius:10px;background:var(--panel2);color:var(--text);font-weight:800;cursor:pointer}
.goal-pick button.active{border-color:var(--gold);background:rgba(217,180,74,.16);color:var(--gold2)}
@media (max-width:640px){.ov-weekgoal{flex-wrap:wrap;gap:12px}.ov-weekgoal .ghost{width:100%}.goal-ring{width:68px;height:68px}}

/* Overview header on a phone: more room between the greeting and the buttons, and between the buttons. */
@media(max-width:700px){
  main>header{gap:16px;padding:12px 0}
  .header-actions{gap:10px}
  .header-actions .icon-btn,.header-actions .gold-btn{width:40px;height:40px;flex:0 0 40px;border-radius:10px}
  .header-actions [data-header-notifications].has-unread:after{top:-6px;right:-6px}
  html[dir=rtl] .header-actions [data-header-notifications].has-unread:after{right:auto;left:-6px}
}

/* Overview → this week's training and your progress. */
.ov-train,.ov-progress{display:flex;flex-direction:column;gap:16px;margin-top:14px}
.ov-train .section-head,.ov-progress .section-head{margin:0;align-items:flex-start;gap:12px}
.ov-train .section-head h2,.ov-progress .section-head h2{margin-top:4px}
.ov-train-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.ov-train-stats>div,.ov-last,.ov-weight-chart,.ov-prs{background:rgba(16,17,14,.78);border:1px solid var(--line);border-radius:10px}
.ov-train-stats>div{display:grid;gap:2px;padding:10px 12px;min-width:0}
.ov-train-stats strong{font-size:22px;font-weight:800;line-height:1.2}
.ov-train-stats small{color:var(--muted);font-size:12px}
.ov-bars{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;height:150px;padding:20px 2px 0}
.ov-bar{display:grid;grid-template-rows:minmax(0,1fr) auto;gap:6px;height:100%;text-align:center;min-width:0}
.ov-bar>span{position:relative;align-self:end;height:calc(var(--h)*1%);min-height:4px;border-radius:7px 7px 3px 3px;background:linear-gradient(180deg,var(--gold2),#7a621f);transition:height .8s cubic-bezier(.2,.7,.2,1) calc(var(--i)*60ms)}
.ov-bar>span[style="--h:0"]{background:#2b2c26}
.ov-bar em{position:absolute;left:0;right:0;top:-18px;font-style:normal;font-size:11px;font-weight:800;color:var(--text)}
.ov-bar small{color:var(--muted);font-size:11px;font-weight:700;white-space:nowrap}
.ov-bars-label{display:block;margin:18px 0 -10px;color:var(--muted);font-size:12px}
.ov-bar.is-today small{color:var(--gold)}
html.if-motion .ov-bars.if-chart:not(.is-in) .ov-bar>span{height:4px}
.ov-chart-empty{color:var(--muted);font-size:13px;margin:0}
.ov-last{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px}
.ov-last>span{display:grid;gap:3px;min-width:0}
.ov-last b{font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ov-last-meta{display:flex;flex-wrap:wrap;gap:2px 0;color:var(--muted)}
.ov-last-meta small+small:before{content:"·";margin:0 8px}
.ov-last .ghost{flex:0 0 auto;min-height:40px}
.ov-quick{display:grid;gap:8px}
.ov-quick>div{display:flex;flex-wrap:wrap;gap:8px}
.ov-quick button{min-height:40px}
.ov-progress-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:12px}
.ov-weight-chart,.ov-prs{display:grid;gap:8px;align-content:start;padding:12px 14px;min-width:0}
.ov-weight-chart .ghost{justify-self:start}
.ov-weight-now{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px;margin:0}
.ov-weight-now strong{font-size:26px;font-weight:800}
.ov-weight-now b{font-size:13px;color:var(--gold)}
.ov-line{display:block;width:100%;height:auto;overflow:visible}
.ov-line-path{fill:none;stroke:var(--gold);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:0;transition:stroke-dashoffset 1.4s cubic-bezier(.3,.6,.2,1)}
.ov-line-area{transition:opacity 1s ease .5s}
.ov-line-dot{fill:var(--gold2);stroke:#12130f;stroke-width:2;transition:opacity .4s ease 1.2s}
html.if-motion .ov-line.if-chart:not(.is-in) .ov-line-path{stroke-dashoffset:1}
html.if-motion .ov-line.if-chart:not(.is-in) :is(.ov-line-area,.ov-line-dot){opacity:0}
.ov-prs ol{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.ov-prs li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 10px;align-items:baseline;padding-bottom:8px;border-bottom:1px solid var(--line)}
.ov-prs li:last-child{border:0;padding-bottom:0}
.ov-prs li b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ov-prs li span{color:var(--muted);font-size:13px}
.ov-prs li span strong{color:var(--text)}
.ov-prs li em{grid-column:2;grid-row:1/span 2;align-self:center;font-style:normal;font-size:13px;font-weight:800;color:var(--green)}

/* The target rings and the weekly goal ring fill up from empty. */
@property --value{syntax:'<number>';inherits:false;initial-value:0}
@property --p{syntax:'<number>';inherits:false;initial-value:0}
.ov-dial{transition:--value 1.1s cubic-bezier(.2,.7,.2,1)}
html.if-motion .ov-rings.if-chart:not(.is-in) .ov-dial{--value:0!important}
.goal-ring{transition:--p 1.1s cubic-bezier(.2,.7,.2,1)}
html.if-motion .goal-ring.if-chart:not(.is-in){--p:0!important}

/* Social media buttons in the app: the desktop sidebar and the phone's More menu. */
.side-social{justify-content:flex-start;gap:8px;margin:auto 8px 12px}
.side-social .social-links{justify-content:flex-start;gap:8px}
.side-social .social-link{width:34px;height:34px}
.side-social .social-link svg{width:17px;height:17px}
.side-social+.upgrade{margin-top:0}
.more-social{margin:14px 0 2px;padding-top:14px;border-top:1px solid var(--line)}
@media(max-width:1050px){.side-social{display:none!important}}

@media(max-width:700px){
  .ov-train,.ov-progress{padding:18px 16px}
  .ov-train-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ov-progress-grid{grid-template-columns:1fr}
  .ov-bars{height:136px}
}
/* The short tiles: the photo shows on the side away from the text. */
.ov-stat.has-photo:before{background:linear-gradient(90deg,rgba(9,10,9,.94) 0,rgba(9,10,9,.78) 45%,rgba(9,10,9,.3) 100%),var(--photo) 70% 35%/cover no-repeat}
html[dir=rtl] .ov-stat.has-photo:before{background:linear-gradient(270deg,rgba(9,10,9,.94) 0,rgba(9,10,9,.78) 45%,rgba(9,10,9,.3) 100%),var(--photo) 30% 35%/cover no-repeat}
/* Wide screens: training and progress side by side. */
.ov-mid{display:grid;gap:14px;margin-top:14px}
.ov-mid>.ov-train,.ov-mid>.ov-progress{margin-top:0}
@media(min-width:1200px){
  .ov-mid{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:18px;align-items:stretch}
  .ov-mid .ov-progress-grid{grid-template-columns:1fr}
}
