/* Client Home: story rings and the centered + bar. Green family only — no blue rings. */

body.igm nav.home-bar.ig-tabs {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: none;
  transform: none;
  height: auto;
  min-height: 62px;
  margin: 0;
  padding: 8px max(4px, env(safe-area-inset-left, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(4px, env(safe-area-inset-right, 0px));
  display: flex !important;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0;
  border: 0;
  border-radius: 0;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 94%, transparent);
  backdrop-filter: blur(16px);
  box-shadow: 0 -10px 28px #12203314;
  z-index: 40;
}
@media (min-width: 520px) {
  body.igm nav.home-bar.ig-tabs {
    width: min(480px, 100%);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
}
body.igm nav.home-bar a {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  min-height: 48px;
  padding: 4px 0 2px;
  border-radius: 14px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0;
}
body.igm nav.home-bar a.on,
html.dark body.igm nav.home-bar a.on {
  color: #08663c;
  background: transparent;
}
html.dark body.igm nav.home-bar a.on { color: #b7f3d4; }
body.igm nav.home-bar a .ic { stroke-width: 1.9; }
body.igm nav.home-bar a.on .ic { stroke-width: 2.3; }
body.igm nav.home-bar sup,
body.igm nav.home-bar .tab-n,
.home-stories .dot { display: none !important; }
.home-plus-slot { flex: 0 0 72px; width: 72px; pointer-events: none; }
.home-plus {
  position: absolute;
  left: 50%;
  bottom: calc(26px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: 58px;
  height: 58px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: radial-gradient(circle at 32% 28%, #5ee0a8, #0c8f58 58%, #08663c);
  box-shadow: 0 0 0 4px var(--card), 0 10px 18px #0c8f5855;
  z-index: 41;
  cursor: pointer;
}
.home-plus .home-ic { width: 28px; height: 28px; stroke-width: 2.2; }
.home-plus:focus-visible,
.home-story:focus-visible { outline: 2px solid #0c8f58; outline-offset: 3px; }

/* Client screens have no top bar. The notch is padded once, on the page. */
body.igm .ig:not(.ig-full) .ig-main .page { padding-top: calc(8px + env(safe-area-inset-top, 0px)); }
body.igm .ig-pagebar,
body.igm header.top { display: none !important; }
.client-back { margin: 0 0 4px; }
.client-back a { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; font-weight: 750; color: inherit; }
.client-actions { display: flex; justify-content: flex-end; min-height: 44px; }

.home-stories-wrap { margin: -8px -14px 12px; padding-top: 12px; padding-bottom: 4px; }
.home-stories {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 14px 0 18px;
  scroll-padding-inline: 18px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.home-story:first-child { margin-left: 18px; }
.home-story:last-child { margin-right: 18px; }
.home-stories::-webkit-scrollbar { display: none; height: 0; }
.home-story {
  flex: 0 0 auto;
  width: 76px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  scroll-snap-align: start;
  cursor: pointer;
}
.home-story small {
  display: block;
  width: 76px;
  max-width: 76px;
  text-align: center;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.15;
  color: var(--text);
}
.home-ring {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-sizing: border-box;
}
.home-gap, .home-face {
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-sizing: border-box;
}
.home-gap { width: 100%; height: 100%; }
.home-face {
  width: 100%;
  height: 100%;
  color: #0c8f58;
  background: radial-gradient(circle at 35% 28%, #ffffff, #e7f7ef 58%, #d4f0e3);
}
.home-face .home-ic { width: 28px; height: 28px; }

/* Default: soft green edge, halo, and a float shadow. No hard outline. */
.home-story.is-default .home-ring {
  padding: 2.5px;
  background: radial-gradient(circle at 40% 30%, #e7fbee, #9edcb8 72%, #6fbf90);
  box-shadow: 0 0 0 5px rgba(12, 143, 88, 0.12), 0 10px 16px rgba(18, 48, 36, 0.12);
}
.home-story.is-default .home-gap { padding: 0; background: transparent; }

/* Unviewed: thicker vivid ring and a white gap, then it fades once opened. */
.home-story.is-active .home-ring {
  padding: 3.5px;
  background: linear-gradient(145deg, #d8ffe6 0%, #3ee58a 38%, #0c8f58 78%, #067848 100%);
  box-shadow: 0 0 0 6px rgba(46, 212, 122, 0.2), 0 12px 20px rgba(8, 110, 60, 0.22);
}
.home-story.is-active .home-gap { padding: 3px; background: #fff; }

/* Weight is the exception: dark until today is logged, light after. */
.home-story.weight-dark .home-ring {
  padding: 2.5px;
  background: radial-gradient(circle at 40% 30%, #3d4a45, #1a2420 70%, #0c1210);
  box-shadow: 0 0 0 4px rgba(12, 18, 16, 0.16), 0 10px 16px rgba(0, 0, 0, 0.28);
}
.home-story.weight-dark .home-gap { padding: 0; background: transparent; }
.home-story.weight-dark .home-face {
  background: radial-gradient(circle at 35% 28%, #2c3834, #121816);
  color: #d7ece3;
}
.home-story.weight-light .home-ring {
  padding: 2.5px;
  background: radial-gradient(circle at 40% 30%, #ffffff, #e5fff2 55%, #b7f3d4);
  box-shadow: 0 0 0 6px rgba(183, 243, 212, 0.55), 0 10px 16px rgba(18, 48, 36, 0.1);
}
.home-story.weight-light .home-gap { padding: 0; background: transparent; }
.home-story.weight-light .home-face {
  background: radial-gradient(circle at 35% 28%, #ffffff, #f4fbf7);
  color: #0c8f58;
}

html.dark body.igm .home-story.is-default .home-face {
  background: radial-gradient(circle at 35% 28%, #243830, #15241e);
  color: #b7f3d4;
}
html.dark body.igm .home-story.is-active .home-gap { background: #f4fff8; }
html.dark body.igm .home-plus { box-shadow: 0 0 0 4px #172430, 0 10px 18px #0c8f5866; }

.book-session {
  display: flex;
  align-items: center;
  margin: 0 0 12px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--sh);
}
.book-session b { display: block; font-size: 15px; }
.book-session small { color: var(--muted); font-weight: 650; }

.home-plus-grid { display: flex; flex-direction: column; gap: 8px; }
.home-plus-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  margin: 0;
  padding: 8px 12px;
  border: 0;
  border-radius: 16px;
  background: var(--soft);
  color: var(--text);
  font-weight: 750;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}
.home-plus-ic {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  color: #0c8f58;
  background: radial-gradient(circle at 35% 30%, #ffffff, #e5f6ee);
  box-shadow: 0 6px 12px #0c8f5822;
}
.home-plus-ic .home-ic { width: 22px; height: 22px; }

.home-frame {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  color: #f4fff8;
  background: radial-gradient(120% 80% at 50% 0%, #1f8a5b, #0d4f36 52%, #08261c);
}
.home-frame-head{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;padding:10px 10px 0;flex:none}
.home-frame-x,.home-frame-back {
  justify-self: start;
  margin: 0;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #ffffff22;
  color: #fff;
  display: grid;
  place-items: center;
}
.home-frame-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  gap: 8px;
}
.home-frame-ic {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ffffff18;
  margin-bottom: 8px;
}
.home-frame h2 { margin: 0; font-size: 28px; letter-spacing: -.03em; }
.home-frame p { margin: 0; max-width: 18em; color: #e5fff2; }

body.igm .ig-main .page { padding-bottom: 128px; }

.story-view {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  color: #f4fff8;
  background: radial-gradient(120% 90% at 50% 0%, #1f8a5b, #0d4f36 46%, #08261c);
  touch-action: pan-y;
}
.sv-segs { display: flex; gap: 4px; padding: 12px 10px 0; }
.sv-segs i { flex: 1; height: 3px; border-radius: 99px; background: #ffffff44; overflow: hidden; position: relative; }
.sv-segs i.done { background: #fff; }
.sv-segs i.run::after { content: ''; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: svbar 5s linear forwards; }
@keyframes svbar { from { transform: scaleX(0) } to { transform: scaleX(1) } }
.sv-top { display: flex; align-items: center; gap: 8px; padding: 10px 12px 0; position: relative; z-index: 6; }
.sv-top b { flex: 1; font-size: 14px; }
.sv-x { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #ffffff22; color: #fff; display: grid; place-items: center; }
.sv-body { flex: 1; display: flex; align-items: center; justify-content: center; padding: 18px 22px 8px; min-height: 0; overflow: hidden; }
.sv-body:has(.sv-wo) { align-items: stretch; justify-content: stretch; }
.sv-wo { flex: 1; min-height: 0; display: flex; flex-direction: column; text-align: left; }
.sv-wo h2 { text-align: center; flex: none; }
.sv-card { width: min(100%, 420px); text-align: center; }
.sv-card h2 { margin: 8px 0; font-size: 30px; letter-spacing: -.03em; }
.sv-card p { margin: 0 auto; max-width: 22em; font-size: 18px; line-height: 1.35; white-space: pre-wrap; }
.sv-status { font-weight: 750; }
.sv-thumb { width: 96px; height: 96px; object-fit: cover; border-radius: 50%; margin-top: 14px; }
.sv-list { list-style: none; padding: 0; margin: 12px 0 0; text-align: left; }
.sv-list li { padding: 0; border-top: 1px solid #ffffff33; }
.sv-habit {
  position: relative;
  z-index: 6;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.sv-habit.on { color: #b7f3d4; }
.sv-open { display: inline-flex; margin-top: 16px; min-height: 44px; align-items: center; padding: 0 16px; border-radius: 999px; background: #fff; color: #08663c; font-weight: 800; text-decoration: none; }
.sv-react, .sv-datebox, .sv-open { position: relative; z-index: 6; }
.sv-react { display: flex; gap: 8px; margin-top: 18px; }
.sv-react button { flex: 1; min-height: 48px; border: 0; border-radius: 999px; font-weight: 800; font-size: 15px; }
.sv-react .done { background: #fff; color: #08663c; }
.sv-react .later { background: #ffffff24; color: #fff; }
.sv-datebox { margin-top: 12px; text-align: left; }
.sv-datebox input { background: #fff; color: #122033; }
.sv-weight-card canvas { width: 100% !important; background: #f4fff8; border-radius: 18px; margin-top: 8px; }
.sv-reply { display: flex; align-items: center; gap: 8px; padding: 8px 12px calc(12px + env(safe-area-inset-bottom)); position: relative; z-index: 6; }
.sv-reply input { flex: 1; min-height: 44px; border: 0; border-radius: 999px; padding: 0 14px; background: #ffffffee; color: #122033; }
.sv-reply button[type="submit"], .sv-cam, .sv-confirm button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: #08663c; display: grid; place-items: center; flex: none; }
.sv-cam { position: relative; overflow: hidden; }
.sv-lb { flex: 1; display: flex; align-items: center; gap: 6px; background: #ffffffee; border-radius: 999px; padding-right: 12px; color: #08663c; font-weight: 800; }
.sv-lb input { background: transparent; }
.sv-confirm { justify-content: center; gap: 10px; }
.sv-confirm b { margin-right: 6px; }
.sv-confirm button { width: auto; padding: 0 14px; font-weight: 800; }
.sv-reply-spacer { height: 52px; }
.sv-prev, .sv-next { position: absolute; top: 64px; bottom: 88px; width: 50%; border: 0; background: none; z-index: 4; }
.sv-prev { left: 0; }
.sv-next { right: 0; }

.home-feed { margin: 8px 0 14px; }
.home-seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: var(--soft); border-radius: 999px; padding: 3px; margin: 0 2px 10px; }
.home-seg i { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px; background: var(--card); box-shadow: 0 2px 8px #0c234822; transition: transform .2s ease; }
.home-seg[data-on="community"] i { transform: translateX(100%); }
.home-seg button { position: relative; z-index: 1; border: 0; background: transparent; min-height: 34px; font-weight: 750; color: #08663c; }
html.dark .home-seg button { color: var(--text); }
.hf-card { background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 8px 24px #0c234814; margin: 0 0 12px; overflow: visible; }
.hf-top { display: flex; gap: 8px; align-items: center; padding: 10px 12px; }
.hf-top b { display: block; color: var(--text); }
.hf-text { color: var(--text); }
.hf-top small, .hf-empty, .hf-aud small { color: var(--muted); }
.hf-card img, .hf-card video { display: block; width: 100%; max-height: 420px; object-fit: cover; background: #102033; }
.hf-text { padding: 0 12px 8px; margin: 0; white-space: pre-wrap; }
.hf-bar { display: flex; align-items: center; gap: 8px; padding: 4px 12px 12px; }
.hf-like, .hf-textbtn { border: 0; background: var(--soft); color: #08663c; border-radius: 999px; min-height: 36px; padding: 0 12px; font-weight: 750; }
html.dark .hf-like, html.dark .hf-textbtn, html.dark .hf-choice { background: #12352a; color: #b7f3d4; }
.hf-like { display: inline-flex; gap: 6px; align-items: center; }
.hf-like.on { background: #0c8f58; color: #fff; }
.hf-like svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.hf-compose, .hf-aud, .hf-person { display: flex; gap: 8px; align-items: center; }
.hf-compose { margin: 0 0 12px; flex-wrap: wrap; }
body.igm .btn:not(.ghost):not(.light):not(.outline):not(.red),
body.igm .ig-cta,
body.igm .rlog { background: #0c8f58; color: #fff; }
body.igm .ig-cta,
body.igm .rlog { background: #0c8f58 !important; color: #fff !important; }
body.igm .hero-card .btn:not(.ghost):not(.light):not(.outline):not(.red),
body.igm .hero-card .btn.ghost,
html.dark body.igm .hero-card .btn.ghost { background: #fff; color: #0c2348; border: 1.5px solid #fff; }
.hf-compose input[type="text"], .hf-compose input:not([type="file"]), .hf-compose .hf-input { flex: 1; min-height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); padding: 0 12px; }
.hf-file { position: relative; overflow: hidden; display: inline-flex; align-items: center; font-size: 12px; color: #08663c; font-weight: 700; min-height: 36px; }
html.dark .hf-file { color: #b7f3d4; }
.hf-file input[type="file"] { position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; cursor: pointer; }
.hf-kind { order: -1; width: 100%; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hf-kind[hidden], .hf-preview[hidden], .hf-status[hidden], .hf-menu[hidden] { display: none !important; }
.hf-ask { margin: 0; font-weight: 750; color: var(--text); }
.hf-choice { border: 0; background: var(--soft); color: #08663c; border-radius: 999px; min-height: 36px; padding: 0 12px; font-weight: 750; }
.hf-preview { width: 100%; }
.hf-preview img, .hf-preview video { width: 100%; max-height: 180px; object-fit: cover; border-radius: 12px; background: #102033; }
.hf-status { width: 100%; margin: 0; }
.hf-more { position: relative; margin-left: auto; flex: none; }
.hf-more-btn { border: 0; background: transparent; color: #5c6b7a; font-size: 22px; line-height: 1; width: 36px; height: 36px; padding: 0; }
.hf-menu { position: absolute; right: 0; top: 34px; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px #0c234822; min-width: 148px; z-index: 6; padding: 4px; }
.hf-menu button { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 8px 10px; border-radius: 8px; font-weight: 700; color: var(--text); }
.hf-check { display: flex; gap: 8px; align-items: center; color: var(--text); margin: 8px 0; }
.hf-empty { text-align: center; margin: 12px 0; }
.hf-note { background: #fff7ed; color: #7c2d12; border-radius: 12px; padding: 8px 10px; font-size: 13px; margin: 0 0 10px; }
.hf-aud { flex-direction: column; align-items: stretch; gap: 6px; margin: 8px 0; }
.hf-aud-row, .hf-person { display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; }
.hf-aud-row span { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.hf-aud-row small { display: block; line-height: 1.3; }
.hf-extra { display: flex; flex-direction: column; align-items: stretch; gap: 2px; margin: 4px 0 8px; }
.hf-extra[hidden] { display: none !important; }
.hf-link { width: 100%; font-size: 13px; }

.client-head { display: flex; align-items: center; justify-content: space-between; padding: calc(6px + env(safe-area-inset-top, 0px)) 16px 0; }
.client-head .brand { font-size: 22px; letter-spacing: 0; }
.tu-bell { position: relative; border: 0; background: none; color: var(--text); min-width: 44px; min-height: 44px; }
.tu-count { position: absolute; top: 4px; right: 2px; background: #b42318; color: #fff; border-radius: 99px; font-size: 10px; line-height: 16px; min-width: 16px; padding: 0 4px; font-weight: 800; }
.tu-count[hidden] { display: none !important; }
.circuit-label { margin: 0 18px 0; font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.week-nav { display: flex; align-items: stretch; gap: 6px; touch-action: pan-y; }
.week-arrow { flex: none; width: 44px; min-height: 44px; border: 1px solid var(--line); background: var(--card); border-radius: 14px; font-size: 22px; font-weight: 800; color: var(--text); }
.week-strip { display: flex; gap: 4px; overflow: hidden; padding: 4px 0 12px; scrollbar-width: none; flex: 1; min-width: 0; }
.week-day { flex: 1 1 0; min-width: 0; border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 8px 2px; text-align: center; color: var(--text); font: inherit; cursor: pointer; min-height: 64px; }
.week-day.is-today { border-color: #0c8f58; box-shadow: 0 0 0 2px #0c8f5833; }
.week-back { margin: 0 0 10px; }
.week-day .new-cue { display: block; color: #0c8f58; font-size: 10px; font-weight: 750; line-height: 1.2; }
.pin-stack .pin-card { margin: 6px 0; }
.pin-stack .hero-card, .pin-stack .week-card, .pin-stack .book-session, .pin-stack .progress-pin { padding: 8px 12px; }
.pin-stack .hero-card h2, .pin-stack .week-card h2, .pin-stack .progress-pin b { font-size: 16px; margin: 0; }
.pin-stack .week-ring svg { width: 52px; height: 52px; }
.pin-stack .pin-card:not(.is-open) .count,
.pin-stack .hero-card:not(.is-open) p,
.pin-stack .hero-card:not(.is-open) .btn,
.pin-stack .hero-card:not(.is-open) .hero-badge,
.pin-stack .book-session:not(.is-open) small,
.pin-stack .progress-pin:not(.is-open) small { display: none; }
.progress-pin { display: flex; flex-direction: column; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: inherit; }
.home-story.is-overdue .home-ring { box-shadow: 0 0 0 3px #b42318; animation: overdue-pulse 1.2s ease-in-out infinite; }
@keyframes overdue-pulse { 50% { box-shadow: 0 0 0 6px #b4231866; } }
@media (prefers-reduced-motion: reduce) { .home-story.is-overdue .home-ring { animation: none; } }
.streak-n { display: block; font-style: normal; font-size: 10px; color: #0c8f58; }
.wo-list { list-style: none; margin: 8px 0 0; padding: 0; text-align: left; overflow: auto; flex: 1; min-height: 0; }
.wo-prev { display: flex; gap: 10px; align-items: center; padding: 6px 0; }
.wo-prev img, .wo-ph { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: #ffffff22; display: grid; place-items: center; flex: none; }
.wo-start, .sv-weight-card, .meal-preview, .macro-slot { position: relative; z-index: 6; }
.wo-start { margin: 16px auto 0; display: flex; flex-direction: column; align-items: center; border: 0; background: none; color: #fff; font-weight: 800; }
.wo-start .chev { font-size: 28px; line-height: 1; font-weight: 400; }
.set-type { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-weight: 800; }
.rtgt { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hr-side { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.swipe-complete { display: flex; flex-direction: column; gap: 6px; font-weight: 800; }
.swipe-complete input { width: 100%; }
.range-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.range-chip { border: 1px solid var(--line); background: var(--card); border-radius: 999px; min-height: 32px; padding: 0 10px; font-weight: 750; color: var(--text); }
.range-chip.on { background: #0c8f58; color: #fff; border-color: #0c8f58; }
.meal-preview { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.meal-preview img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; }
.meal-check { width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: #08663c; font-weight: 800; }
.hf-comments { padding: 0 12px 10px; }
.hf-thread { margin-top: 6px; }
.hf-comment { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0; }
.macro-line, .streak-line { font-size: 14px; }

/* v99 player: RIR slider styled like the Log button, '?' until touched; compact dock (weight × reps left, sets right, ± set under) */
.reel .tank{background:#0c8f58;border:1px solid #ffffff1f;border-radius:16px;box-shadow:0 4px 14px #0005;-webkit-backdrop-filter:none;backdrop-filter:none;padding:6px 12px 4px;margin:6px 0 2px;row-gap:0}
.reel .tank > span:first-child{font-size:14px}
.reel .tank-read{background:#fff;color:#08663c;min-width:36px;justify-content:center;padding:2px 10px;font-size:15px;box-shadow:none}
.reel .tank.is-unset{background:#35584a;border-color:#ffffff14}
.reel .tank.is-unset .tank-read{display:inline-flex;background:#ffffff1a;color:#ffffffa6;box-shadow:none}
.reel .tank-range{-webkit-appearance:none;appearance:none;background:transparent;border:0;padding:0;box-shadow:none;border-radius:999px;width:100%;height:40px;min-height:40px;margin:0;cursor:pointer;touch-action:pan-y}
.reel .tank-range:focus{outline:none}
.reel .tank-range:focus-visible{outline:2px solid #fff;outline-offset:2px;border-radius:999px}
.reel .tank-range::-webkit-slider-runnable-track{height:8px;border-radius:999px;background:#ffffff59;border:0}
.reel .tank-range::-moz-range-track{height:8px;border-radius:999px;background:#ffffff59;border:0}
.reel .tank-range::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:30px;height:30px;margin-top:-11px;border-radius:50%;background:#fff;border:0;box-shadow:0 2px 8px #0006}
.reel .tank-range::-moz-range-thumb{width:30px;height:30px;border-radius:50%;background:#fff;border:0;box-shadow:0 2px 8px #0006}
.reel .tank.is-unset .tank-range::-webkit-slider-runnable-track{background:#ffffff2b}
.reel .tank.is-unset .tank-range::-moz-range-track{background:#ffffff2b}
.reel .tank.is-unset .tank-range::-webkit-slider-thumb{background:#c9d3ce;opacity:.6;box-shadow:none}
.reel .tank.is-unset .tank-range::-moz-range-thumb{background:#c9d3ce;opacity:.6;box-shadow:none}
.reel .tank-stops span{background:transparent;color:#ffffffd9;padding:0 2px;font-size:12px;border-radius:6px}
.reel .tank.is-unset .tank-stops span,.reel .tank.is-unset > span:first-child{color:#ffffffa6}
.reel .tank[data-tank="6"] .tank-stops span:last-child{background:#b42318;color:#fff;padding:0 6px}
.reel .rrest{font-weight:700;color:#ffffffc7;white-space:nowrap}
.reel .rrest .ic{width:13px;height:13px;vertical-align:-2px}
.reel .rdock{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:6px 0 0;flex:none;position:relative;z-index:5}
.reel .rdock-l{display:flex;flex-direction:row;align-items:center;gap:6px;min-width:0;flex:1 1 auto}
.reel .rdock .rtgt{margin:0;gap:4px;flex-wrap:nowrap;min-width:0}
.reel .rdock .rtgt span{padding:4px 8px;min-height:36px;font-size:13px;display:inline-flex;align-items:center;gap:3px;box-sizing:border-box}
.reel .rdock .rtgt .setx{padding:0;min-height:0;background:transparent}
.reel .rdock .rsets{margin:0;justify-content:flex-end;gap:4px;flex-wrap:wrap;flex:0 1 auto;max-width:46%}
.reel .rdock .rsets span{width:34px;height:36px;min-width:34px;min-height:36px;border-radius:10px;font-size:14px;border-width:1.5px;box-sizing:border-box}
.reel .rdock .rsets span.active{box-shadow:0 0 0 2px #fff}
.reel .rpm{margin:0;gap:0;align-items:center;flex-wrap:nowrap;flex:none;border:1.5px solid #ffffff80;border-radius:10px;overflow:visible}
.reel .rpm-l{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
body .reel .live-sets .add-set.rpm-b{width:30px;height:33px;min-width:30px;min-height:33px;flex:none;padding:0;font-size:18px;line-height:1;border-radius:0;background:#ffffff1f!important;color:#fff!important;border:0;position:relative}
body .reel .live-sets .add-set.rpm-b:first-of-type{border-radius:9px 0 0 9px;border-right:1px solid #ffffff59}
body .reel .live-sets .add-set.rpm-b:last-of-type{border-radius:0 9px 9px 0}
body .reel .live-sets .add-set.rpm-b::after{content:"";position:absolute;inset:-5px -2px}
body .reel .live-sets .add-set.rpm-b:disabled{opacity:.35}
.reel .rlog{margin-top:6px}
.rbot.is-review .rdock{display:none}
@media (max-height:800px){.reel .tank{padding:2px 10px 2px}.reel .rdock{margin-top:3px}.reel .rlog{margin-top:4px}}
/* v99 close-workout sheet: full-size swipe to complete on top, Pause + Cancel side by side */
.close-wo{gap:10px}
.close-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.close-pair .btn{min-height:52px;border-radius:14px;font-size:16px;width:100%}
.swipe-done{--f:0;position:relative;height:56px;border-radius:14px;background:#dff3e8;overflow:hidden;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;font-weight:800;font-size:16px}
html.dark .swipe-done{background:#163a2a}
.swipe-fill{position:absolute;left:0;top:0;bottom:0;width:calc(56px + (100% - 56px) * var(--f));background:linear-gradient(90deg,#0c8f58,#16c47f);border-radius:14px;transition:width .35s cubic-bezier(.2,1.4,.4,1)}
.swipe-text{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding-left:44px;color:#08663c;pointer-events:none;z-index:1}
html.dark .swipe-text{color:#b7f3d4}
.swipe-text.on{color:#fff;clip-path:inset(0 calc(100% - (56px + (100% - 56px) * var(--f))) 0 0);-webkit-clip-path:inset(0 calc(100% - (56px + (100% - 56px) * var(--f))) 0 0);transition:clip-path .35s cubic-bezier(.2,1.4,.4,1),-webkit-clip-path .35s cubic-bezier(.2,1.4,.4,1)}
.swipe-knob{position:absolute;top:4px;left:calc(4px + (100% - 56px) * var(--f));width:48px;height:48px;border-radius:11px;background:#fff;color:#0c8f58;display:grid;place-items:center;box-shadow:0 2px 8px #0003;z-index:2;cursor:grab;touch-action:none;transition:left .35s cubic-bezier(.2,1.4,.4,1)}
.swipe-knob .ic{width:24px;height:24px}
.swipe-done.is-drag .swipe-fill,.swipe-done.is-drag .swipe-knob,.swipe-done.is-drag .swipe-text.on{transition:none;cursor:grabbing}
.swipe-done:focus-visible{outline:3px solid #0c8f58;outline-offset:2px}
.confetti-cv{position:fixed;inset:0;width:100vw;height:100vh;pointer-events:none;z-index:9999}
@media (prefers-reduced-motion:reduce){.swipe-fill,.swipe-knob,.swipe-text.on{transition:none}}
/* v100 list view: one section per page, swipe sideways; progress bubbles; whole-workout clock in the header */
.wlist{overflow:hidden;display:flex;flex-direction:column;padding:8px 0 0}
.wlist .wlist-in{display:flex;flex-direction:column;flex:1 1 auto;min-height:0}
.wlist .wlist-bar{padding:0 16px;gap:10px;flex:none}
.wlist .wlist-bar > b{flex:1 1 auto;min-width:0}
.wlist-clock{flex:none;font-size:15px;font-weight:800;color:#b7f3d4;font-variant-numeric:tabular-nums;white-space:nowrap}
.wlist-clock b{font-size:16px;color:#fff}
.cv-dots{display:flex;justify-content:center;align-items:center;gap:2px;padding:2px 16px 4px;flex:none;flex-wrap:wrap}
.cv-dot{width:28px;height:28px;border:0;background:none;padding:0;display:grid;place-items:center;cursor:pointer}
.cv-dot i{display:block;width:8px;height:8px;border-radius:999px;background:#ffffff40;transition:width .2s,background .2s}
.cv-dot.is-done i{background:#3dcaa0}
.cv-dot.is-cur i{width:22px;background:#fff}
.cv-dot.is-cur.is-done i{background:#b7f3d4}
.cv-pager{flex:1 1 auto;min-height:0;display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;scrollbar-width:none;touch-action:pan-x pan-y}
.cv-pager::-webkit-scrollbar{display:none}
.cv-page{flex:0 0 100%;width:100%;box-sizing:border-box;scroll-snap-align:start;scroll-snap-stop:always;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;padding:0 16px calc(32px + env(safe-area-inset-bottom))}
.cv-page .cv-block{border-bottom:0}
@media (prefers-reduced-motion:reduce){.cv-dot i{transition:none}}
/* v100 top bar: one thin segment per section */
.rprog.is-seg{display:flex;gap:3px;height:4px;background:transparent;border-radius:0;overflow:visible;align-items:center}
.rprog .rseg{flex:1 1 0;min-width:2px;height:4px;border-radius:99px;background:#ffffff38;overflow:hidden;transition:height .2s}
.rprog .rseg i{display:block;height:100%;width:0;background:#3dcaa0;border-radius:99px;transition:width .3s}
.rprog .rseg.is-done i{background:#3dcaa0}
.rprog .rseg.is-cur{height:6px;background:#ffffff66;box-shadow:0 0 0 1px #ffffffb3}
.rprog .rseg.is-cur i{background:#fff}
.rprog .rseg.is-cur.is-done i{background:#b7f3d4}
@media (prefers-reduced-motion:reduce){.rprog .rseg,.rprog .rseg i{transition:none}}
/* v100 swipe clock: time since last set, with a tiny label */
.rclock{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.05;min-width:64px;min-height:40px;padding:3px 8px}
.rclock small{font-size:9.5px;font-weight:750;letter-spacing:.02em;opacity:.8;white-space:nowrap}
.rclock b{font-size:15px}
.wlist-clock small{font-size:11px;font-weight:750;color:#b7f3d4;text-transform:lowercase}
.rprog #rbar{display:none}
/* v101: RIR slider sits directly on the Log set button, below the weight × reps / ± / sets row */
.reel .rtank{flex:none;position:relative;z-index:5}
.reel .rtank .tank{margin:6px 0 0}
.reel .rtank + .rlog{margin-top:4px}
.rbot.is-review .rtank{display:none}
/* v101 RIR slider: one pill the height of Log set; caption centered on the track; value rides on the handle */
.tank{display:block}
.tank-pill{position:relative;display:block;height:48px;border-radius:16px;background:#0c8f58;overflow:hidden;color:#fff}
.tank-cap{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:0 8px 0 72px;font-size:15px;font-weight:800;color:#ffffffd9;pointer-events:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tank-knob{position:absolute;top:4px;left:calc(4px + (100% - 68px) * var(--p, 0));width:60px;height:40px;border-radius:12px;background:#fff;color:#08663c;display:grid;place-items:center;font-size:16px;font-weight:850;line-height:1;box-shadow:0 2px 8px #0003;pointer-events:none;z-index:1;transition:left .12s ease-out}
.tank-range{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;border:0;opacity:0;cursor:pointer;-webkit-appearance:none;appearance:none;background:transparent;touch-action:pan-y;z-index:2}
.tank-range::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:68px;height:48px}
.tank-range::-moz-range-thumb{width:68px;height:48px;border:0}
.tank-pill:has(.tank-range:focus-visible){outline:2px solid #fff;outline-offset:2px}
.tank.is-unset .tank-pill{background:#35584a}
.tank.is-unset .tank-knob{background:#ffffff38;color:#ffffffa6;box-shadow:none}
.tank[data-tank="6"] .tank-knob{background:#fff;color:#b42318}
.reel .tank{display:block;margin:6px 0 0;padding:0;background:transparent;border:0;border-radius:16px;box-shadow:0 4px 14px #0004;-webkit-backdrop-filter:none;backdrop-filter:none}
.reel .tank > span.tank-pill:first-child{background:#0c8f58;padding:0;border-radius:16px;font-size:inherit;text-shadow:none;line-height:normal}
.reel .tank.is-unset > span.tank-pill:first-child{background:#35584a}
.reel .tank .tank-knob{display:grid;margin:0;padding:0;min-width:0;font-size:16px;background:#fff;color:#08663c}
.reel .tank.is-unset .tank-knob{display:grid;background:#ffffff38;color:#ffffffa6}
.reel .tank[data-tank="6"] .tank-knob{color:#b42318}
.reel .tank .tank-range{height:100%;min-height:0}
@media (prefers-reduced-motion:reduce){.tank-knob{transition:none}}
.tank-end{position:absolute;right:10px;top:50%;transform:translateY(-50%);font-size:11px;font-weight:800;letter-spacing:.02em;color:#ffffffb3;pointer-events:none;text-transform:uppercase}
.tank-cap{padding:0 64px 0 72px}
.tank.is-unset .tank-end{color:#ffffff80}
/* v101 dock row: weight × reps far left, set numbers in the middle, [−|+] sets at the far right */
.reel .rdock{gap:6px;justify-content:space-between}
.reel .rdock-l{flex:0 0 auto}
.reel .rdock .rtgt span{padding:4px 6px}
.reel .rdock .rsets{flex:1 1 auto;max-width:none;min-width:0;justify-content:center;gap:3px}
.reel .rdock .rsets span{width:32px;min-width:32px}
.reel .rpm{border:0;gap:4px;flex:none}
.reel .rpm-k{display:inline-flex;border:1.5px solid #ffffff80;border-radius:10px}
.reel .rpm-l{position:static;width:auto;height:auto;overflow:visible;clip:auto;font-size:12px;font-weight:800;color:#ffffffd9;white-space:nowrap}
body .reel .live-sets .add-set.rpm-b{width:28px;min-width:28px}
body .reel .live-sets .add-set.rpm-b:first-child{border-radius:9px 0 0 9px;border-right:1px solid #ffffff59}
body .reel .live-sets .add-set.rpm-b:last-child{border-radius:0 9px 9px 0}
/* v101 sets box: same look as the weight / reps boxes; [−|+] at its left, 'sets' at its right */
.reel .rdock .rpm{background:#ffffff24;border:0;border-radius:12px;min-height:36px;height:36px;box-sizing:border-box;padding:0 8px 0 3px;gap:6px;font-size:13px;justify-content:space-between}
.reel .rdock .rpm-k{border:0;border-radius:9px;gap:2px}
.reel .rdock .rpm-l{font-size:13px;font-weight:700;color:#fff}
body .reel .rdock .live-sets .add-set.rpm-b{width:26px;min-width:26px;height:30px;min-height:30px;background:#ffffff1f!important;border:0;border-radius:8px;font-size:17px}
body .reel .rdock .live-sets .add-set.rpm-b:first-child,body .reel .rdock .live-sets .add-set.rpm-b:last-child{border-radius:8px;border-right:0}
body .reel .rdock .live-sets .add-set.rpm-b::after{inset:-3px -1px}
.reel .rdock .rtgt b{font-size:16px}
.reel .rdock .rtgt span{padding:4px 6px;font-size:12px}
.reel .rdock .rsets{gap:3px}
.reel .rdock .rsets span{width:30px;min-width:30px;font-size:13px}
.reel .rdock .rpm{padding:0 7px 0 3px;gap:5px}
body .reel .rdock .live-sets .add-set.rpm-b{width:24px;min-width:24px}
/* v102 edit a completed workout */
.rhud .redit{background:#0c8f58;color:#fff}
.edit-bar{position:sticky;bottom:0;display:flex;gap:8px;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:#071422f2;border-top:1px solid #ffffff1f;flex:none;z-index:3}
.edit-bar .btn{min-height:48px;border-radius:14px;font-size:15px;width:100%}
.edit-bar .eb-save{background:#0c8f58!important;color:#fff!important}
.edit-bar .eb-cancel,.edit-bar .eb-restart{background:#ffffff1f!important;color:#fff!important}
.edit-bar .eb-restart{color:#ffd7d3!important}
.cv-sets .cv-rir{width:64px}
.cv-rsel{-webkit-appearance:none;appearance:none;text-align:center;text-align-last:center;max-width:60px;padding:0 4px}
.cv-addrow{display:flex}
.cv-addrow .cv-add{flex:1}
.cv-add.cv-rm{color:#ffd7d3}
.edit-bar .btn{flex:1 1 0}
.edit-bar .eb-save{flex:2 1 0}
/* v102: a finished workout's button on Home/Train reads Completed: green pill with a check, opens the saved log. */
a.btn.wo-done{background:#0c8f58;color:#fff;border-color:#0c8f58;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;gap:6px}
a.btn.wo-done{background:#0c8f58 !important;color:#fff !important;border:1.5px solid #0c8f58 !important;border-radius:999px !important}
/* v105: set chips stay in order; logged sets are a blue check, the current set is its number with the highlight. */
.rsets span.set-tick{background:var(--blue);border-color:var(--blue);color:#fff}
.rsets span.active,.rsets span.active.on{background:#ffffff26;border-color:#fff;color:#fff}
/* v105 swipe dock: one row — Start set | RIR slider | check */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.reel .ract{display:flex;align-items:stretch;gap:6px;margin-top:6px;position:relative;z-index:5}
.reel .ract .rtank{flex:1 1 auto;min-width:0}
.reel .ract .rtank .tank{margin:0}
.reel .ract-start{flex:none;width:64px;height:48px;border:0;border-radius:16px;background:#16c47f;color:#06261a;font-weight:850;font-size:13px;line-height:1.05;cursor:pointer;box-shadow:0 4px 14px #0004;padding:0}
.reel .ract-start.on{background:#fff;color:#b42318;font-size:15px}
.reel .ract-check{flex:none;width:52px;height:48px;border-radius:16px;border:2px solid #ffffffb3;background:#ffffff1f;color:#ffffffd9;display:grid;place-items:center;cursor:pointer;padding:0;box-shadow:0 4px 14px #0004;transition:background .15s,border-color .15s}
.reel .ract-check.on{background:#06603a;border-color:#06603a;color:#fff}
.reel .ract-check.flash{transform:scale(1.06)}
.reel .ract .tank-cap{padding:0 40px 0 54px;font-size:12.5px;line-height:1.1;white-space:normal;text-align:center}
.reel .ract .tank-knob{width:44px;left:calc(4px + (100% - 52px) * var(--p, 0))}
.reel .ract .tank-range::-webkit-slider-thumb{width:52px}
.reel .ract .tank-range::-moz-range-thumb{width:52px}
.reel .ract .tank-end{right:8px;font-size:10px}
.rbot.is-review .ract{display:none}
.rsw-ov{position:fixed;inset:0;display:grid;place-items:center;z-index:60;pointer-events:none}
.rsw-face{pointer-events:auto;display:flex;flex-direction:column;align-items:center;gap:4px;min-width:230px;padding:22px 28px;border:0;border-radius:28px;background:#0b1424d9;color:#fff;box-shadow:0 12px 40px #0008;cursor:pointer;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);transform:translateY(-12vh)}
.rsw-face small{font-size:13px;letter-spacing:.08em;text-transform:uppercase;font-weight:800;color:#b7f3d4}
.rsw-face b{font-size:64px;line-height:1;font-weight:850;font-variant-numeric:tabular-nums;letter-spacing:-.02em}
.rsw-face span{font-size:13px;color:#ffffffb3}
.rsw-ov.done .rsw-face{background:#06603ae6}
@media (max-width:360px){.reel .ract-start{width:56px;font-size:12px}.reel .ract-check{width:46px}.reel .ract .tank-cap{font-size:11.5px;padding:0 36px 0 50px}}
body.igm .reel .ract-check.rlog{background:#ffffff1f!important;color:#ffffffd9!important;margin:0}
body.igm .reel .ract-check.rlog.on{background:#06603a!important;color:#fff!important}
.rsw-ov.is-count .rsw-face b{font-size:110px;min-width:2ch;text-align:center}
.rsw-ov .rsw-face b.go{font-size:72px;color:#16c47f}
.rsw-face{cursor:default}
.rsw-btn{margin-top:8px;min-width:120px;height:40px;border-radius:20px;border:0;background:#fff;color:#b42318;font-weight:850;font-size:15px;letter-spacing:.04em;text-transform:uppercase;cursor:pointer}
.rsw-btn.is-resume{background:#16c47f;color:#06261a}
.rsw-ov.is-count .rsw-btn{background:#ffffff26;color:#fff}
.rsw-ov.paused .rsw-face{background:#0b1424e6}
.reel .ract-start.paused{background:#fff;color:#08663c;font-size:13px}
.fin-set .fin-rir,.fin-set .fin-times{font-size:12px;color:var(--muted)}

/* v131 in-workout cleanup: one icon row under the exercise name (History, Swap, React, More), flat fills, no outlines.
   Tall bottom sheets for More / React / Swap / Add exercise that sit above the keyboard and close on outside tap or swipe down. */
.ex-actions{display:flex;flex-wrap:nowrap;align-items:center;gap:8px;margin:8px 0 10px}
.exa,.reel .exa,body.igm .reel .exa{width:56px;min-width:44px;height:44px;border:0;outline:0;border-radius:10px;background:var(--soft);color:var(--text);display:grid;place-items:center;padding:0;box-shadow:none;cursor:pointer}
.reel .exa,body.igm .reel .exa{background:#ffffff24;color:#fff}
.exa:focus-visible{box-shadow:0 0 0 2px #16c47f}
.exa:active{filter:brightness(1.25)}
.exa-emo{font-size:20px;line-height:1}
.reel .exa-react:not([data-kind=""]){background:#ffffff3d}
@media(max-width:720px){.ex-actions{gap:8px}.exa{width:56px;height:44px}}
.react-bar{display:flex;align-items:center;gap:4px;width:max-content;max-width:100%;margin:-2px 0 10px;padding:4px;border-radius:14px;background:var(--card);box-shadow:var(--sh2,0 6px 20px #0003);animation:fade .15s}
.reel .react-bar{background:#071422eb;box-shadow:0 6px 20px #0006}
.react-emo,.react-more{width:48px;height:44px;border:0;border-radius:10px;background:transparent;font-size:24px;line-height:1;display:grid;place-items:center;padding:0;cursor:pointer;color:inherit}
.react-emo.on{background:#16c47f33}
.react-more{background:var(--soft);color:var(--text)}
.reel .react-more{background:#ffffff24;color:#fff}
.reel .rbot{padding-right:0}
.reel .react-line{display:none}
/* tall sheets */
#modal.has-tall{align-items:flex-end;padding-bottom:var(--kb,0px);box-sizing:border-box}
#modalBody.is-tall{display:flex;flex-direction:column;overflow:hidden;box-sizing:border-box;max-height:calc(var(--vvh,100dvh) - max(env(safe-area-inset-top,0px),12px) - 8px);padding:6px 16px calc(14px + env(safe-area-inset-bottom,0px));transition:transform .12s}
#modalBody.is-tall .modal-x{display:none!important}
#modal.has-tall .more-sheet,#modal.has-tall .react-sheet,#modal.has-tall .pick-sheet{display:flex;flex-direction:column;min-height:0;flex:1 1 auto}
#modal.has-tall .pick-sheet{min-height:min(78dvh,calc(var(--vvh,100dvh) - 24px))}
.sheet-grab{display:flex;justify-content:center;padding:6px 0 12px;cursor:grab;touch-action:none}
.sheet-grab i{display:block;width:44px;height:5px;border-radius:3px;background:var(--line,#cbd5e1)}
.more-sheet h2,.react-sheet h2,.pick-sheet h2{margin:0 44px 6px 0;font-size:19px;line-height:1.2}
.react-sheet>.small,.pick-sheet>.small{margin:0 0 10px}
.more-list{display:flex;flex-direction:column;gap:8px;overflow:auto;min-height:0;flex:1 1 auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding-top:6px}
.more-opt{display:flex;align-items:center;gap:14px;width:100%;min-height:52px;padding:12px 14px;border:0;border-radius:12px;background:var(--soft);color:var(--text);font:inherit;font-size:16px;font-weight:700;text-align:left;cursor:pointer;box-sizing:border-box}
.more-opt .ic{flex:none;opacity:.85}
.more-check input{width:20px;height:20px;margin:0;flex:none}
.react-opt small{display:block;margin-top:2px;font-size:13px;font-weight:500;color:var(--muted)}
.react-opt.on{background:#16c47f26}
.react-big{font-size:28px;line-height:1;width:32px;text-align:center;flex:none}
.pick-sheet input[type=search],.pick-sheet #addQ,.pick-sheet #swapQ{min-height:48px;font-size:16px;margin:0 0 8px;flex:none}
.pick-sheet .add-pop{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;gap:8px;position:static;background:none;border:0;padding:0;max-height:none}
#swapList,.pick-sheet #addList{flex:1 1 auto;min-height:0;overflow:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;display:flex;flex-direction:column;gap:0}
.swap-row{gap:12px;padding:12px 2px;border-bottom:1px solid var(--line);align-items:center}
.swap-txt{min-width:0}
.swap-txt b{display:block;line-height:1.25}
.swap-txt .small{display:block;margin-top:4px;line-height:1.3}
.pick-sheet .add-lib{display:flex;flex-direction:column;align-items:flex-start;gap:4px;border:0;border-radius:0;border-bottom:1px solid var(--line);background:none;min-height:52px}
.pick-sheet .add-tag{display:block;font-weight:500}
@media(min-width:700px){#modal.has-tall{align-items:center;padding-bottom:0}#modalBody.is-tall{max-width:560px;border-radius:20px;max-height:min(86vh,760px)}#modal.has-tall .pick-sheet{min-height:min(70vh,620px)}}
/* flat controls on the player: no outlines anywhere, fills only */
.rhud .iconbtn,.rhud .rclock,.rhud .rlist{border:0;outline:0}
body.igm .reel .ract-check,.reel .ract-check{border:0}
.reel .rdock .rsets span{border:0;background:#ffffff1f}
.reel .rdock .rsets span.active,.reel .rdock .rsets span.active.on{border:0;box-shadow:none;background:#ffffff47}
.reel .rpm-k{border:0}
.reel .rdock .rsets span.on{background:#0c8f58;color:#fff}
.reel .rdock .rsets span.set-tick{background:var(--blue);color:#fff}
#modal.has-tall{z-index:56}
label.more-opt.more-check{margin:0}
/* v131 r2 full-screen exercise search (Swap / Add exercise / Add to superset) */
#modal.has-full{z-index:57;align-items:stretch;justify-content:stretch;padding:0;background:var(--bg,#f6f8f7)}
#modal.has-full #modalBody.is-full{width:100%;max-width:none;height:100%;max-height:none;margin:0;padding:0;border-radius:0;box-shadow:none;display:flex;flex-direction:column;overflow:hidden;background:var(--bg,#f6f8f7);animation:fade .15s}
#modalBody.is-full>.modal-x{display:none}
.xp-full{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;width:100%;max-width:760px;margin:0 auto}
.xp-head{display:flex;align-items:center;gap:8px;padding:calc(env(safe-area-inset-top,0px) + 10px) 12px 10px 6px;background:var(--bg,#f6f8f7);flex:none}
.xp-back{flex:none;width:44px;height:44px;border:0;border-radius:12px;background:transparent;color:var(--text);display:grid;place-items:center;padding:0;cursor:pointer}
.xp-back:active{background:var(--soft)}
.xp-head input{flex:1 1 auto;min-width:0;height:46px;min-height:46px;margin:0;padding:0 14px;border:0;outline:0;border-radius:12px;background:var(--card,#fff);box-shadow:inset 0 0 0 1px var(--line,#e2e8f0);font-size:16px;color:var(--text)}
.xp-head input:focus{box-shadow:inset 0 0 0 2px #16c47f}
.xp-title{display:flex;flex-direction:column;gap:2px;padding:4px 16px 8px;flex:none}
.xp-title b{font-size:17px;line-height:1.25}
.xp-list{flex:1 1 auto;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding:0 0 calc(env(safe-area-inset-bottom,0px) + 16px);background:var(--card,#fff);border-top:1px solid var(--line,#e2e8f0)}
.xp-row,.pick-sheet .add-lib.xp-row,.xp-full .add-opt.xp-row{display:flex;flex-direction:row;align-items:center;gap:12px;width:100%;min-height:68px;padding:8px 16px;margin:0;border:0;border-bottom:1px solid var(--line,#e2e8f0);border-radius:0;background:transparent;color:var(--text);font:inherit;text-align:left;cursor:pointer;box-sizing:border-box}
.xp-row:active{background:var(--soft)}
.xp-row.is-current{background:#16c47f14}
.xp-thumb{position:relative;flex:none;width:72px;height:52px;border-radius:10px;overflow:hidden;background:var(--soft,#eef2f1);color:var(--muted,#94a3b8);display:grid;place-items:center}
.xp-thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.xp-txt{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:4px}
.xp-txt b{font-size:16px;font-weight:750;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.xp-tag{display:block;font-size:13px;font-weight:500;line-height:1.25}
.xp-row .pill{flex:none}
.xp-empty{padding:16px}
.xp-free{margin:8px 16px calc(var(--kb,0px) + env(safe-area-inset-bottom,0px) + 12px);flex:none;width:auto}
/* the inline end-card picker uses the same row */
.rend-slot .xp-row{min-height:60px;padding:6px 8px}
.reel .add-pop .xp-row{color:#fff;border-bottom-color:#ffffff22}
.reel .add-pop .xp-thumb{background:#ffffff1f;color:#ffffff99}


/* v139: every coach (and client) pop-up is full screen. None of the page shows behind it.
   The sheet fills the visual viewport (--vvh / dvh), which already excludes the keyboard.
   Swipe down, X, or back closes it. */
#modal.has-full, #modal:not(.hidden) {
  z-index: 200;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  background: var(--bg, #f6f8f7);
}
#modal.has-full #modalBody,
#modal:not(.hidden) #modalBody.sheet {
  width: 100%;
  max-width: none;
  height: var(--vvh, 100dvh);
  max-height: var(--vvh, 100dvh);
  min-height: var(--vvh, 100dvh);
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg, #f6f8f7);
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 16px calc(env(safe-area-inset-bottom, 0px) + 16px);
  animation: fade .15s;
  box-sizing: border-box;
}
#modal.has-full #modalBody.is-pick,
#modalBody.is-full.is-pick { padding: 0; }
#modalBody.is-pick > .modal-x,
#modal.has-full #modalBody > .modal-x,
#modalBody.is-full > .modal-x {
  display: none !important;
}
#modal.has-full #modalBody > .dq,
#modal.has-full #modalBody > .more-sheet,
#modal.has-full #modalBody > .react-sheet,
#modal.has-full #modalBody > .pick-sheet,
#modal.has-full #modalBody > .wc-ask {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
/* Fix 5 (Nick Nov 22): the movement History / Comments sheet scrolls to its last session (it was clipped by the
   full-screen rule above, which sets #modalBody to overflow:hidden). */
#modal:not(.hidden) #modalBody > .hx {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 24px);
}
#modal:not(.hidden) #modalBody > .hx > .sheet-head,
#modal:not(.hidden) #modalBody > .hx > .hx-tabs { flex: 0 0 auto; }
#modal.has-full #modalBody > .lt-chat {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
#modal.has-full #modalBody .dq-list,
#modal.has-full #modalBody #dqPickList,
#modal.has-full #modalBody #dqExList,
#modal.has-full #modalBody #bwList,
#modal.has-full #modalBody #ownHits,
#modal.has-full #modalBody #addExList,
#modal.has-full #modalBody #ltMsgs {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
/* hide floating bubbles / FABs / tab bars while any picker is open */
body.picker-open .dq-fab,
body.picker-open .home-plus,
body.picker-open .wo-mini,
body.picker-open .timerbox,
body.picker-open .bnav,
body.picker-open .lt-nav,
body.picker-open nav.ig-tabs,
body.picker-open .ig-tabs {
  visibility: hidden !important;
  pointer-events: none !important;
}

a.lt-comp{color:inherit;text-decoration:none;display:inline-block}
/* v153: overscroll inside a sheet or picker never pulls the page (Android Chrome pull-to-refresh) or bubbles out */
body.picker-open{overscroll-behavior-y:none}
#modal,#modalBody,#modal .xp-list,#modal .bk-drop{overscroll-behavior:contain}

/* v154: "are you sure" confirm above sheets (sheet 200 < confirm 300 < toast 400) */
.tu-confirm{position:fixed;inset:0;z-index:300;background:rgba(15,23,42,.45);display:flex;align-items:center;justify-content:center;padding:24px}
.tu-confirm-card{background:var(--card,#fff);color:var(--text,#0f172a);border-radius:16px;padding:20px;max-width:340px;width:100%;box-shadow:0 12px 40px rgba(0,0,0,.25)}
.tu-confirm-card h3{margin:0 0 8px;font-size:18px;line-height:1.3}
.tu-confirm-card p{margin:0 0 16px;font-size:14px;color:var(--muted,#64748b)}
.tu-confirm-btns{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.dq-why.warn{color:#b45309}

/* v155: blocks (meetings / travel), no-show ghosts under a replacement, Book client / Block time chooser */
.ds-card.ds-block{background:repeating-linear-gradient(135deg,#eef0f3 0 8px,#e4e7ec 8px 16px);border-left:4px solid #94a3b8;color:#334155;box-shadow:none}
.ds-card.ds-block .ds-name{color:#334155}
.sc-b.sc-block{background:repeating-linear-gradient(135deg,#eef0f3 0 8px,#e4e7ec 8px 16px)!important;border-left:4px solid #94a3b8;color:#334155;z-index:0}
.ds-card.ds-ns{opacity:.62;filter:grayscale(.85)}
.ds-fill-row{margin-top:4px}
.ds-slot.has-ghost{padding-bottom:0}
.ds-ghost{position:absolute;left:6px;right:6px;bottom:-9px;z-index:2;font-size:11px;line-height:16px;padding:0 8px;border-radius:8px;background:#e5e7eb;color:#475569;border:1px dashed #94a3b8;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dq-mode{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:4px 0 10px;background:var(--bg2,#f1f5f9);padding:4px;border-radius:12px}
.dq-mode button{border:0;background:transparent;padding:9px 6px;border-radius:9px;font-weight:600;color:var(--muted,#64748b);display:flex;gap:6px;align-items:center;justify-content:center}
.dq-mode button.on{background:var(--card,#fff);color:var(--text,#0f172a);box-shadow:0 1px 3px rgba(0,0,0,.12)}
.blk-chips{margin:6px 0 2px;gap:6px}
.blk-chips .chip.on{background:#0b5fff;color:#fff}
.tu-choose-btns{display:grid;gap:8px}
.dq-fill-note{background:#fff7ed;color:#9a3412;border-radius:10px;padding:8px 10px}
/* v155 placeholders: No-show / Cancelled / Away (light shades), legend */
.ds-card.ds-ph{box-shadow:none;border:1px dashed #94a3b8;cursor:pointer}
.ph-no_show{--ph:#fdecec;--phb:#e7a3a3;--pht:#8a2c2c}
.ph-cancelled{--ph:#eef0f3;--phb:#a8b0bb;--pht:#475569}
.ph-away{--ph:#eaf3fe;--phb:#9cc0ea;--pht:#24507e}
.ph-block{--ph:#e4e7ec;--phb:#94a3b8;--pht:#334155}
.ds-card.ds-ph{background:var(--ph);border-color:var(--phb);color:var(--pht)}
.ds-card.ds-ph .ds-name,.ds-card.ds-ph .ds-when,.ds-card.ds-ph .ds-place{color:var(--pht)}
.ds-ph-pill{background:transparent;border:1px solid var(--phb);color:var(--pht)}
.ds-ghosts{position:absolute;left:6px;right:6px;bottom:-9px;z-index:2;display:flex;flex-direction:column;gap:2px}
.ds-ghosts .ds-ghost{position:static;background:var(--ph);border-color:var(--phb);color:var(--pht)}
.ds-legend{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;margin:6px 2px 8px;font-size:12px}
.ds-legend .lg{display:inline-flex;align-items:center;gap:5px;color:var(--text,#0f172a)}
.ds-legend .lg::before{content:'';width:14px;height:10px;border-radius:3px;background:var(--ph);border:1px dashed var(--phb)}
.sc-b.sc-ph{background:var(--ph)!important;border:1px dashed var(--phb);color:var(--pht);z-index:0;opacity:.95}
.rs-chips{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0}
.rs-chips .chip.on{background:#0b5fff;color:#fff}
.sc-b.sc-ph.sc-ph-side{padding:3px 4px;font-size:11px;overflow:hidden}.sc-b.sc-ph.sc-ph-side b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sc-b.sc-ph.sc-ph-side span{display:block;white-space:normal;line-height:1.15}

/* Nick, Nov 23 2026 feed cleanup: one line under every post (Like, Comment, Share), plain buttons, no extra gaps. */
.hf-card { margin: 0 0 8px; }
.hf-bar { gap: 2px; padding: 2px 6px 6px; flex-wrap: nowrap; }
.hf-like, .hf-act, .hf-textbtn { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; color: var(--text); border-radius: 10px; min-height: 40px; padding: 0 10px; font-weight: 650; font-size: 14px; }
.hf-like.on { background: none; color: #e0245e; }
.hf-like.on svg { fill: currentColor; }
.hf-act svg, .hf-like svg { width: 18px; height: 18px; }
.hf-count:empty { display: none; }
.hf-comments { padding: 0 12px; }
.hf-comments .hf-thread:not([hidden]) { padding-bottom: 10px; }
html.dark .hf-like, html.dark .hf-act { background: none; color: var(--text); }
.pa { gap: 2px; padding: 4px 6px 6px; flex-wrap: nowrap; }
.pa .tu-act { border: 0; background: none; min-height: 40px; padding: 0 10px; font-weight: 650; }
.pa .tu-act.lk.on, html.dark body.igm .pa .tu-act.lk.on { background: none; color: #e0245e; }
.pa .tu-act.lk.on svg { fill: currentColor; }
.tu-n:empty { display: none; }
.feed .post { margin-bottom: 8px; }
.community-fold > summary { font-weight: 800; }
/* Nov 23 2026 You side: meals, workouts and sessions as one-line cards that open their own log. */
.you-logs { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 8px; padding: 2px 0; }
.you-logs a { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--text); font-weight: 650; font-size: 13px; text-decoration: none; }
.you-act { display: flex; align-items: center; gap: 10px; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin: 0 0 8px; text-decoration: none; }
.you-act b { font-weight: 800; }
.you-act small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.you-act .grow { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.you-ic { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; flex: 0 0 36px; color: #fff; background: #0b5fff; }
.you-food .you-ic { background: #ff6b2c; } .you-workout .you-ic { background: #0c8f58; } .you-session .you-ic { background: #6d4bd8; }
.you-ph { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; flex: 0 0 36px; }
.you-go { color: var(--muted); font-size: 20px; }
