/* Client shell. Brand navy and green, one tab bar, states that read at a glance. */
body.igm {
  --tu-navy: #0c2348;
  --tu-navy-2: #12356e;
  --tu-green: #0c8f58;
  --tu-green-ink: #08663c;
  --space: 14px;
  --title: 1.5rem;
  --body: 1rem;
}
body.igm .ig-top { background: var(--tu-navy); color: #fff; border-bottom: 0; padding: 10px 12px; }
body.igm .ig-top h1, body.igm .ig-top .iconbtn { color: #fff; }
body.igm .ig-top .iconbtn:hover { background: #ffffff22; }
body.igm .tu-logo { display: block; height: 46px; width: auto; max-width: min(268px, 68vw); object-fit: contain; object-position: left center; }
body.igm .ig-tabs { height: auto; min-height: 64px; }
body.igm .ig-tabs a { position: relative; min-height: 48px; font-size: 11px; }
body.igm .tab-n { position: absolute; top: 2px; right: 10px; background: var(--tu-green); color: #fff; border-radius: 99px; font-size: 10px; line-height: 16px; min-width: 16px; padding: 0 4px; font-weight: 800; }
body.igm .btn, body.igm .slot, body.igm .choice { min-height: 44px; }
body.igm .chip { min-height: 40px; display: inline-flex; align-items: center; }
.auth-brand { display: flex; justify-content: center; }
.auth-badge { width: 148px; height: 148px; border-radius: 50%; display: block; margin: 8px auto 10px; background: var(--tu-navy, #0c2348); }
.hero-card { display: flex; gap: 12px; align-items: center; background: linear-gradient(145deg, #0c2348, #16356e 58%, #0a6e48); color: #fff; border-radius: 22px; padding: 16px; margin: 4px 0 12px; animation: fadeUp .35s var(--ease); }
.hero-badge { width: 72px; height: 72px; border-radius: 50%; flex: none; background: #0c2348; }
.hero-card h2 { margin: 2px 0 4px; font-size: 1.35rem; color: #fff; letter-spacing: -.03em; }
.hero-card p { margin: 0; color: #e7eefc; }
.hero-card .kicker, .train-card .kicker, .kicker { margin: 0 0 4px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; color: #b7f3d4; }
.hero-card .count { margin-top: 6px; font-weight: 800; color: #fff; }
.hero-card .btn { background: #fff; color: #0c2348; }
body.igm .hero-card .btn,
body.igm .hero-card .btn.ghost,
html.dark body.igm .hero-card .btn.ghost { background: #fff; color: #0c2348; border: 1.5px solid #fff; }
.hero-card .pill.g { background: #e5f6ee; color: #08663c; }
.week-card { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 12px 14px; margin-bottom: 12px; }
.week-ring { position: relative; width: 92px; height: 92px; flex: none; }
.week-ring svg { display: block; }
.week-ring div { position: absolute; inset: 18px; display: flex; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
.week-ring b { font-size: 15px; line-height: 1; }
.me-stats small { display: block; color: var(--muted); font-size: 11px; font-weight: 700; }
.week-card h2 { margin: 0 0 4px; font-size: 1.05rem; }
.week-card p { margin: 0 0 6px; color: var(--muted); font-size: .9rem; }
.tu-section { font-size: 1.05rem; margin: 16px 0 8px; }
.tu-nudge { display: flex; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--tu-green, #0c8f58); border-radius: 16px; padding: 12px 14px; margin: 4px 0 14px; }
.tu-nudge p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.test-store-banner { background: #fef3c7; color: #78350f; font-weight: 800; border-radius: 12px; padding: 10px 12px; margin: 0 0 12px; }
.dark .test-store-banner { background: #45310b; color: #fcd34d; }
.state-error { text-align: center; padding: 28px 16px; }
.state-error .ic { color: #b45309; }
.state-error b { display: block; margin: 8px 0 4px; }
.shop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.shop-card { display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 10px; color: inherit; min-height: 44px; }
.shop-photo { display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #eef3fb; }
.shop-photo img, .gallery img, .cart-line img, .thumb-img, .photo-row img { width: 100%; height: 100%; object-fit: contain; background: #eef3fb; display: block; }
.shop-card b { font-size: .95rem; line-height: 1.25; }
.price-line { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
body.igm .shop-card .price, body.igm .product .price { font-size: 1.05rem; font-weight: 800; line-height: 1.2; color: #0c2348; }
body.igm .product .price { font-size: 1.65rem; }
.dark .price, html.dark body.igm .price { color: #d7e6ff; }
.price-note { display: block; font-size: 11px; font-weight: 700; line-height: 1.2; color: var(--muted); }
.shop-card .pill { font-weight: 700; }
.product .gallery img { width: 100%; border-radius: 18px; background: #0c2348; max-height: 460px; object-fit: contain; }
.thumb, .choice { border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 12px; padding: 8px 10px; font-weight: 700; }
.thumb.on, .choice.on { background: #0c2348; color: #fff; border-color: #0c2348; }
.choice { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.choice small { font-weight: 650; color: inherit; opacity: .8; }
.choice:disabled { opacity: .45; }
.choice-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.cart-line { display: flex; gap: 10px; align-items: center; }
.cart-line img { width: 72px; height: 72px; border-radius: 12px; background: #0c2348; object-fit: cover; }
.qty { display: flex; align-items: center; gap: 6px; }
.qty button { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-size: 20px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.link-list { display: flex; flex-direction: column; padding: 6px 12px; }
.link-list a { display: flex; gap: 10px; align-items: center; min-height: 48px; color: inherit; border-bottom: 1px solid var(--line); font-weight: 700; }
.link-list a:last-child { border-bottom: 0; }
.me-head { display: flex; gap: 12px; align-items: center; margin: 6px 0 12px; }
.me-badge { width: 84px; height: 84px; border-radius: 50%; background: #0c2348; }
.me-head h2 { margin: 0 0 4px; }
.me-head p { margin: 0; color: var(--muted); }
.me-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.me-stats .me-stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; text-align: center; padding: 12px 4px; color: inherit; width: 100%; cursor: pointer; }
.me-stats b { font-size: 1.25rem; display: block; }
.me-stats small, .me-stats span { display: block; color: var(--muted); font-size: 11px; }
.points-card { display: flex; flex-direction: column; gap: 2px; color: inherit; margin-bottom: 12px; background: linear-gradient(160deg, #0c2348, #0a6e48); color: #fff; }
.points-card small, .points-card span { color: #e7eefc; }
.checkline { display: flex; gap: 10px; align-items: center; min-height: 44px; font-weight: 650; }
.tu-welcome { max-width: 440px; }
.tu-welcome .welcome-nav { margin-top: 18px; }
.train-card h2 { margin: 4px 0; }
.own-move { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.own-set { gap: 8px; align-items: end; margin: 6px 0; }
.own-set input { width: 72px; }
.per-arm { font-weight: 750; letter-spacing: .01em; }
.var-row { display: grid; grid-template-columns: 1fr 1fr 90px; gap: 8px; margin: 8px 0; }
.thumb-img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: #0c2348; flex: none; }
.photo-row { display: flex; gap: 8px; overflow: auto; margin: 8px 0; }
.photo-row img { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; }
.card.low { border-color: #f59e0b; }
fieldset.card { border: 1px solid var(--line); }
fieldset legend { font-weight: 800; padding: 0 6px; }
@media (prefers-reduced-motion: reduce) {
  .hero-card, .week-card, .shop-card, .tu-nudge { animation: none; }
}
/* Home: one Today card (booking + workout) */
.today-card { align-items: flex-start; }
.today-card .hero-badge { width: 44px; height: 44px; }
.today-card .tc-sess h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.today-card .tc-sess .count { margin-top: 0; font-weight: 700; color: #e7eefc; }
.today-card .tc-sess + .tc-wo { margin-top: 12px; padding-top: 12px; border-top: 1px solid #ffffff2e; }
.today-card .tc-wo h3 { margin: 0 0 2px; font-size: 1.15rem; color: #fff; letter-spacing: -.02em; }
.today-card .tc-act { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 12px; }
.today-card .tc-act .btn { min-width: 132px; }
.today-card .tc-link { color: #b7f3d4; font-weight: 750; font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; }
/* Train: week card and the Training screen */
.tw-card { display: block; color: inherit; text-decoration: none; }
.tw-card h2 { margin: 0 0 10px; font-size: 1.1rem; }
.tw-card h2 small { font-size: 13px; font-weight: 600; color: var(--muted); }
.tw-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; flex: 1; min-width: 0; }
.tw-day { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tw-day small { font-size: 12px; font-weight: 750; color: var(--muted); }
.tw-day i { font-style: normal; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: var(--text); }
.tw-day.is-done i { background: var(--tu-green, #0c8f58); color: #fff; }
.tw-day.is-plan i, .tw-day.is-today i { border: 2px solid var(--tu-green, #0c8f58); color: var(--tu-green, #0c8f58); }
.tw-day.is-missed i { border: 2px dashed var(--line); color: var(--muted); }
.tw-day.is-rest i { color: var(--muted); font-weight: 600; }
.tw-day.is-now small { color: var(--tu-green, #0c8f58); }
.tw-day.is-now:not(.is-done) i { background: #e5f6ee; }
.tw-day.is-now.is-today i { background: var(--tu-green, #0c8f58); color: #fff; }
.tw-line { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line); text-align: center; font-weight: 650; color: var(--muted); font-size: 14px; }
.tw-sess h2 { margin: 0; font-size: 1.1rem; }
.tw-sess p { margin: 8px 0 10px; }
.tw-tools { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; }
.tw-tools b { flex: 1; font-size: 15px; }
.tw-nav { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 10px 4px; }
.tw-nav + .tw-line { border-top: 0; padding-top: 0; margin: 10px 0 6px; }
.tw-list { margin: 4px 0 24px; }
.tw-row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tw-date { flex: none; width: 46px; display: flex; flex-direction: column; color: var(--muted); }
.tw-date small { font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.tw-date b { font-size: 20px; font-weight: 750; }
.tw-row.is-now .tw-date { color: var(--tu-green, #0c8f58); }
.tw-cards { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.tw-wo { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px 44px 14px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--text); text-decoration: none; min-height: 48px; }
.tw-wo b { font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
.tw-wo span { font-size: 14px; color: var(--muted); }
.tw-wo.is-done { background: linear-gradient(145deg, #0c2348, #16356e 58%, #0a6e48); border-color: transparent; color: #fff; }
.tw-wo.is-done span { color: #b7f3d4; font-weight: 700; }
.tw-wo.is-done i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; background: #ffffff2e; display: grid; place-items: center; color: #fff; }
.tw-wo.is-missed { opacity: .75; }
.tw-row.is-now .tw-wo:not(.is-done) { border: 2px solid var(--tu-green, #0c8f58); }
.tw-add { min-height: 56px; border-radius: 16px; border: 1.5px dashed var(--line); background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.tw-head { display: flex; align-items: center; gap: 4px; margin: 0 0 6px; }
.tw-head h1 { flex: 1; margin: 0 0 0 4px; font-size: 1.6rem; letter-spacing: -.03em; }
.tw-head .iconbtn { min-width: 44px; min-height: 44px; display: grid; place-items: center; color: inherit; }

/* v105: Home today card holds every workout for today as swipeable cards (+N corner badge). */
.today-card .tc-wo { min-width: 0; }
.today-card .grow { min-width: 0; }
.tc-swipe { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scrollbar-width: none; gap: 0; border-radius: 14px; outline: none; touch-action: pan-x pan-y; }
.tc-swipe::-webkit-scrollbar { display: none; }
.tc-swipe.dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.tc-swipe:focus-visible { box-shadow: 0 0 0 2px #b7f3d4; }
.tc-wcard { position: relative; flex: 0 0 100%; min-width: 100%; scroll-snap-align: start; scroll-snap-stop: always; box-sizing: border-box; padding: 2px 52px 2px 0; }
.tc-wcard h3 { margin: 0 0 2px; font-size: 1.15rem; color: #fff; letter-spacing: -.02em; overflow-wrap: anywhere; }
.tc-wcard .btn { margin-top: 10px; min-width: 132px; }
.tc-more { position: absolute; top: 0; right: 0; min-width: 34px; height: 26px; padding: 0 8px; border-radius: 13px; background: #16c47f; color: #06261a; font-weight: 900; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px #0004; }
.tc-dots { display: flex; gap: 6px; justify-content: center; margin-top: 10px; }
.tc-dots i { width: 7px; height: 7px; border-radius: 50%; background: #ffffff55; cursor: pointer; transition: background .2s, transform .2s; }
.tc-dots i.on { background: #fff; transform: scale(1.2); }
.today-card .tc-links { margin-top: 8px; }

/* v105: client workout builder */
.bw { padding-bottom: 24px; }
.bw .card { margin-bottom: 10px; }
.bw-head label { margin-top: 6px; }
.bw-restored { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bw-block.is-ss { border-left: 4px solid var(--green); }
.bw-bh { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.bw-bh b { font-size: 15px; letter-spacing: .02em; }
.bw-item + .bw-item { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.bw-ih { display: flex; align-items: center; gap: 10px; }
.bw-ih .lib-thumb { width: 48px; height: 48px; }
.bw-ih .grow { min-width: 0; }
.bw-name { overflow-wrap: anywhere; }
.bw-iact { display: flex; flex: none; }
.bw-iact .iconbtn, .bw-bh .iconbtn, .bw-set .iconbtn { width: 36px; height: 36px; min-width: 36px; min-height: 36px; }
.bw-iact .iconbtn[disabled], .bw-bh .iconbtn[disabled], .bw-set .iconbtn[disabled] { opacity: .3; }
.bw-sets { margin-top: 8px; display: grid; gap: 6px; }
.bw-set { display: flex; align-items: center; gap: 4px; }
.bw-sn { width: 22px; flex: none; text-align: center; font-weight: 800; color: var(--muted); font-size: 13px; }
.bw-in { position: relative; flex: 1 1 0; min-width: 0; margin: 0; }
.bw-in input { width: 100%; min-width: 0; box-sizing: border-box; padding: 8px 34px 8px 8px; margin: 0; font-size: 16px; text-align: center; }
.bw-in small { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 11px; pointer-events: none; }
.bw-x { color: var(--muted); flex: none; }
.bw-same { font-size: 13px; font-weight: 800; }
.bw-same-ph { width: 36px; flex: none; }
.bw-sact { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.bw-link { display: flex; justify-content: center; margin: -4px 0 6px; }
.bw-addex { margin: 4px 0 12px; }
.bw-foot { position: sticky; bottom: calc(env(safe-area-inset-bottom, 0px) + 86px); display: flex; gap: 8px; padding: 10px 0; z-index: 4; background: linear-gradient(to top, var(--bg) 70%, transparent); }
.bw-foot .grow { flex: 1; }
.bw-pick { max-height: 55vh; overflow-y: auto; -webkit-overflow-scrolling: touch; margin: 8px 0; }
.bw-opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 4px; background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left; color: inherit; font: inherit; cursor: pointer; }
.bw-opt .lib-thumb { width: 44px; height: 44px; }
.bw-opt .grow { min-width: 0; display: flex; flex-direction: column; }
.bw-own { gap: 6px; flex-wrap: wrap; align-items: center; margin: 6px 0; }
.lw-list { display: grid; gap: 6px; margin-bottom: 12px; }
.lw-row { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; color: inherit; text-decoration: none; }
.lw-row .grow { min-width: 0; display: flex; flex-direction: column; }
.lw-row small { color: var(--muted); }
.lw-row.is-done small { color: #0a8a58; font-weight: 700; }
.lw-build { margin-top: 4px; }
.chip .by-client, .tw-wo .by-you { display: block; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; opacity: .8; }
@media (min-width: 900px) { .bw { max-width: 720px; } }
@media (max-width: 360px) { .bw-set .iconbtn { width: 30px; min-width: 30px; } .bw-same-ph { width: 30px; } .bw-in input { padding-right: 28px; } }

/* v106 minimized workout bar: slim, nearly full width, above the bottom nav, styled like the Home workout card */
.wo-mini { position: fixed; left: 10px; right: 10px; bottom: calc(100px + env(safe-area-inset-bottom)); z-index: 30; }
.wo-mini[hidden] { display: none; }
.wo-mini-in { animation: fadeUp .25s var(--ease); width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 0; border-radius: 18px; background: linear-gradient(145deg, #0c2348, #16356e 58%, #0a6e48); color: #fff; text-align: left; font: inherit; cursor: pointer; box-shadow: 0 10px 28px rgba(8, 20, 45, .35); }
.wo-mini-in:focus-visible { outline: 3px solid #b7f3d4; outline-offset: 2px; }
.wo-mini-ic { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); color: #b7f3d4; }
.wo-mini-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.wo-mini-txt small { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; color: #b7f3d4; }
.wo-mini-txt b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wo-mini-txt span { font-size: 12.5px; color: #dbe6fb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wo-mini-t { flex: none; display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.wo-mini-t b { font-size: 17px; }
.wo-mini-t small { font-size: 11.5px; color: #b7f3d4; font-weight: 700; }
.wo-mini-t small.is-paused { color: #ffd38a; }
body.has-mini .main { padding-bottom: 180px; }
@media (min-width: 520px) { .wo-mini { width: min(460px, calc(100% - 20px)); left: 50%; right: auto; transform: translateX(-50%); } }
.wo-mini { z-index: 41; }
.rhud .rmin { margin-left: -6px; }
.today-card .tc-wcard.is-live .kicker .pill.live { background: #ffd38a; color: #3a2300; font-size: 11px; letter-spacing: .06em; padding: 2px 8px; border-radius: 999px; }
/* v106 list view long-press cue */
.cv-move { transition: transform .18s var(--ease), background-color .18s; -webkit-touch-callout: none; }
.cv-move.is-holding { transform: scale(.975); box-shadow: 0 0 0 3px #3ddc97, 0 0 24px rgba(61, 220, 151, .35); background-color: rgba(61, 220, 151, .10); border-radius: 16px; transition: transform .33s linear, box-shadow .2s, background-color .33s; }
.cv-move.is-held { transform: scale(.96); box-shadow: 0 0 0 3px #3ddc97, 0 0 30px rgba(61, 220, 151, .5); background-color: rgba(61, 220, 151, .18); border-radius: 16px; }

/* v107 workout results page */
.res-page { max-width: 560px; margin: 0 auto; }
.res-hero { position: relative; margin: -4px -4px 0; padding: 64px 20px 22px; border-radius: 0 0 22px 22px; background: linear-gradient(145deg, #0c2348, #1d4ed8 60%, #0a6e48); color: #fff; }
.res-hero .kicker { color: #b7f3d4; margin: 0 0 4px; }
.res-hero h1 { margin: 0; font-size: 1.6rem; letter-spacing: -.02em; color: #fff; text-transform: uppercase; }
.res-x { position: absolute; left: 14px; top: 14px; color: #fff; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; }
.res-body { padding: 12px 2px 24px; display: flex; flex-direction: column; gap: 12px; }
.res-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: 0 2px 10px #1220330a; }
.res-card h3 { margin: 0; font-size: 1.05rem; }
.res-top { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 18px 16px 0; }
.res-stat { display: flex; align-items: center; gap: 12px; padding: 0 8px 16px; }
.res-stat + .res-stat { border-left: 1px solid var(--line); padding-left: 16px; }
.res-stat b { display: block; font-size: 1.5rem; line-height: 1.1; }
.res-stat small { color: var(--muted); font-size: .95rem; }
.res-ic { color: #7b8db0; }
.res-pb { color: #1d4ed8; }
.res-when { grid-column: 1 / -1; margin: 0; padding: 12px 0 14px; border-top: 1px solid var(--line); text-align: center; font-size: 1rem; }
.res-ach { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.res-ach h3 { color: #1d4ed8; font-size: 1.15rem; }
.res-ach p { margin: 4px 0 0; font-size: .92rem; }
.res-trophy { color: #e3a008; }
.res-rate .row { align-items: center; }
.res-rpe-l { color: #1d4ed8; }
.res-rpe { width: 100%; margin: 16px 0 4px; accent-color: #1d4ed8; }
.res-rpe[data-unset] { accent-color: #c6cfdd; }
.res-rpe-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.res-an-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.res-an { background: var(--soft, #f3f6fb); border-radius: 12px; padding: 10px; }
.res-an small { display: block; color: var(--muted); font-size: 12px; }
.res-an b { font-size: 1.1rem; }
.res-h2 { margin: 10px 2px 0; font-size: 1.2rem; }
.res-sec h3 { display: flex; align-items: center; gap: 8px; font-size: 1.2rem; }
.res-dot { width: 9px; height: 9px; border-radius: 50%; background: #d5dbe5; }
.res-sec-meta { display: flex; gap: 16px; margin: 6px 0 4px; color: var(--muted); font-size: .95rem; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.res-sec-meta span { display: inline-flex; align-items: center; gap: 5px; }
.res-ex { padding: 12px 0 4px; }
.res-ex + .res-ex { border-top: 1px solid var(--line); }
.res-ex-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.res-ex-name { background: none; border: 0; padding: 0; font: inherit; font-weight: 800; font-size: 1.05rem; color: #1d4ed8; text-align: left; cursor: pointer; }
.res-1rm-h { font-weight: 800; font-size: .85rem; white-space: nowrap; }
.res-sets { list-style: none; margin: 8px 0 0; padding: 0; }
.res-sets li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; color: var(--muted); font-size: 1rem; }
.res-sets li.is-skip { opacity: .55; }
.res-st small.res-tm { display: block; font-size: 12px; }
.res-1rm { color: var(--muted); font-variant-numeric: tabular-nums; }
.res-stars { display: inline-flex; gap: 2px; margin-left: 6px; vertical-align: 1px; }
.res-stars i { font-style: normal; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #c9d1f5; color: #fff; font-size: 11px; }
.res-first { margin: 4px 0 0; }
.res-done { margin-top: 6px; }
.res-sheet h2 { text-align: center; margin: 4px 0 14px; }
.res-calc-k { margin: 12px 0 4px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 800; color: var(--muted); }
.res-pr-row { display: flex; align-items: center; gap: 12px; padding: 13px 2px; border-bottom: 1px solid var(--line); }
.res-pr-row small { display: block; color: var(--muted); font-size: 12px; }
.res-pr-ic { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: #e7ebf4; color: #8b97b0; flex: none; font-weight: 800; }
.res-pr-row.on .res-pr-ic { background: #c9d1f5; color: #1d4ed8; }
.res-pr-row.calc .res-pr-ic { background: #fff4d6; color: #a86b00; }
.res-calc { margin-top: 8px; padding: 2px 10px; border: 1px dashed #e3c27a; border-radius: 12px; background: color-mix(in srgb, #fff4d6 45%, transparent); }
.res-new { font-style: normal; font-size: 11px; background: #ffd38a; color: #3a2300; padding: 1px 6px; border-radius: 999px; }
.res-great { margin-top: 18px; background: #1d4ed8; color: #fff; border-radius: 999px; }
html.dark .res-ach h3, html.dark .res-ex-name, html.dark .res-rpe-l { color: #8fb0ff; }
@media (max-width: 380px) { .res-an-grid { grid-template-columns: repeat(2, 1fr); } }
body.on-results .top { display: none; }
body.on-results .res-hero { margin-top: calc(-1 * env(safe-area-inset-top, 0px)); }
/* LIT (left in tank) column on results */
.res-cols { display: inline-flex; gap: 6px; flex: none; align-items: baseline; }
.res-lit-h, .res-lit { width: 38px; text-align: center; }
.res-1rm-h, .res-1rm { width: 64px; text-align: right; }
.res-lit-h { font-weight: 800; font-size: .85rem; }
.res-lit { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.res-lit.is-empty, .cv-lit.is-empty, .fin-rir.is-empty { color: #b6bfcc; font-weight: 400; }
.cv-lit { text-align: center; font-weight: 700; }
.fin-set .fin-rir { font-size: 12.5px; font-weight: 800; color: var(--text); background: var(--soft, #eef2f8); border-radius: 8px; padding: 1px 7px; margin-left: auto; white-space: nowrap; }
.fin-set .fin-rir.is-empty { color: #b6bfcc; font-weight: 500; background: transparent; }

/* v108 Training Log + workout comments */
.res-who { position: absolute; left: 14px; top: 16px; display: inline-flex; align-items: center; gap: 6px; color: #fff; font-size: 12.5px; font-weight: 700; text-decoration: none; background: rgba(255, 255, 255, .14); padding: 3px 10px 3px 3px; border-radius: 999px; max-width: 60%; }
.res-who span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res-who-av { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #b7f3d4; color: #0c2348; font-size: 11px; font-weight: 800; overflow: hidden; flex: none; }
.res-who-av img { width: 100%; height: 100%; object-fit: cover; }
/* v140: results back stays top-left even when a who-chip is present */
.res-who ~ .res-x { left: 14px; right: auto; }
.wc-sec h3 { margin: 0 0 2px; }
.wc-list { display: flex; flex-direction: column; gap: 10px; margin: 10px 0; }
.wc-item { display: flex; flex-direction: column; gap: 6px; }
.wc-tag { align-self: flex-start; font-size: 11.5px; font-weight: 800; letter-spacing: .02em; color: #0a6e48; background: #e3f7ee; padding: 2px 8px; border-radius: 999px; }
.wc-bub { background: var(--soft, #f3f6fb); border-radius: 14px; padding: 10px 12px; }
.wc-bub.is-coach { background: #e8efff; }
.wc-meta { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.wc-meta small { margin-left: auto; color: var(--muted); font-size: 11.5px; }
.wc-av { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #0c2348; color: #fff; font-size: 11px; font-weight: 800; flex: none; }
.wc-bub.is-coach .wc-av { background: #1d4ed8; }
.wc-role { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #1d4ed8; }
.wc-text { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.wc-img, .wc-vid { display: block; margin-top: 8px; max-width: 100%; max-height: 320px; border-radius: 10px; }
.wc-comp textarea { width: 100%; min-height: 64px; resize: vertical; }
.wc-comp-row { display: flex; align-items: center; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.wc-att { margin: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.wc-send { margin-left: auto; }
.wc-card { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: inherit; text-decoration: none; }
.wc-card b { display: block; font-size: 13.5px; }
.wc-card small { display: block; color: var(--muted); font-size: 12px; }
.wc-card-ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: #e3f7ee; color: #0a6e48; flex: none; }
.wc-reply { align-self: flex-end; background: none; border: 0; color: var(--blue); font-weight: 700; font-size: 13px; cursor: pointer; padding: 0 4px; }
.wc-log { display: flex; flex-direction: column; gap: 14px; }
.wc-group > h3 { margin: 4px 2px 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.wc-day { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 10px; }
.wc-day h4 { margin: 0; font-size: 14px; }
.wc-group.is-today .wc-day { border-color: #16c47f; }
.wc-switch { display: flex; gap: 4px; background: var(--soft, #eef2f8); border-radius: 999px; padding: 4px; margin: 0 0 12px; }
.wc-switch a { flex: 1; text-align: center; padding: 7px 10px; border-radius: 999px; color: var(--muted); font-weight: 700; text-decoration: none; font-size: 14px; }
.wc-switch a.on { background: var(--card); color: var(--text); box-shadow: 0 1px 4px #12203320; }
.wc-ask .wc-tag { display: inline-block; margin: 0 0 10px; }

/* v109 end card: rating, note, add exercise, swipe up to complete */
.reel.rend .rmid { justify-content: center; }
.rend-in { width: min(440px, 100%); display: flex; flex-direction: column; gap: 12px; margin: 4px auto 0; text-align: left; }
.rend-in #rdone { text-align: center; margin: 0; }
.rend-q .tank { margin: 0; }
.rate-tank .tank-cap { justify-content: flex-end; padding: 0 16px 0 76px; }
.rate-tank.knob-r .tank-cap { justify-content: flex-start; padding: 0 76px 0 16px; }
.rend-note { display: flex; flex-direction: column; gap: 6px; color: #fff; font-weight: 700; font-size: 14px; }
.rend-note textarea { background: #ffffff1f; color: #fff; border: 1px solid #ffffff40; border-radius: 14px; padding: 10px 12px; font: inherit; font-weight: 500; resize: none; min-height: 56px; }
.rend-note textarea::placeholder { color: #ffffffa6; }
.rend-add { align-self: center; color: #fff; border-color: #ffffff66; background: #ffffff14; display: inline-flex; align-items: center; gap: 6px; }
.rend-slot:empty { display: none; }
.rend-slot .add-pop { background: #fff; color: var(--text); border-radius: 14px; }
.rend-swipe { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 10px; color: #fff; }
.rend-swipe b { font-size: 15px; letter-spacing: .02em; }
.rend-chev { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #ffffff26; animation: rendBob 1.4s ease-in-out infinite; }
@keyframes rendBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .rend-chev { animation: none; } }
.rend-done-btn { align-self: center; background: none; border: 0; color: #ffffffb3; text-decoration: underline; font: inherit; font-size: 13px; cursor: pointer; padding: 4px; }
.reel.rfinish .rmid h1 { color: #fff; }
/* results: rating pill on a white card, PR celebration */
.res-rate-pill { margin-top: 12px; }
.res-rate-pill .tank { margin: 0; }
.res-rate-pill .tank-range:disabled { cursor: default; }
.res-prs { border-color: #ffd38a; background: linear-gradient(180deg, #fff9ec, var(--card)); }
.res-prs h3 { color: #a86b00; }
.res-prs ul { list-style: none; margin: 10px 0 6px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.res-prs li { display: flex; gap: 8px; align-items: baseline; font-size: .95rem; }
.res-ftag { font-size: 11px; font-weight: 800; background: #e3f7ee; color: #0a6e48; padding: 1px 7px; border-radius: 999px; white-space: nowrap; }
.res-first { margin: 6px 0 0; color: #0a6e48; font-weight: 700; font-size: .9rem; }
.res-congrats { margin: 4px 0 8px; font-weight: 800; color: #0a6e48; }
html.dark .res-prs { background: var(--card); }
.res-edit { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .16); border: 0; cursor: pointer; }
.res-who ~ .res-x ~ .res-edit { right: 60px; }

/* Nov 22 2026 Food Log (food-log.js): the client's meals newest first, grouped by day, with likes and comments. */
.fl-day { margin: 0 0 14px; }
.fl-day h3 { font-size: 16px; margin: 6px 0 8px; }
.fl-meal { margin: 0 0 10px; }
.fl-head { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; }
.fl-dot { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #ff6b2c; color: #fff; }
.fl-card { background: var(--card); border-radius: 16px; padding: 12px; box-shadow: 0 1px 4px #12203314; }
.fl-photo { display: block; width: 96px; height: 96px; object-fit: cover; border-radius: 12px; margin: 0 0 8px; }
.fl-name { display: block; font-size: 16px; margin: 0 0 2px; }
.fl-acts { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.fl-acts .btn.on { color: var(--accent, #0b5fff); }
.fl-notes { margin-top: 8px; border-top: 1px solid #12203314; padding-top: 8px; }
.fl-bub p { margin: 4px 0 0; }
.fl-att { max-width: 160px; border-radius: 10px; margin-top: 6px; }
.fl-x { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; }
/* Builder Nov 22 (Claude gap 2): on a phone the floating buttons (+, AI, feedback) sit bottom-right over Send.
   Keep the Send row clear of that column, and let the last meal scroll up above them. */
@media (max-width: 600px) {
  .fl .fl-send { padding-right: 64px; }
  .fl { padding-bottom: 190px; }
}

/* Nick, Nov 23 2026: Messages full screen. One row with Back, the ☰ chat menu and the chat's name; one chat at a time. */
body.msg-full .client-head, body.msg-full .client-back, body.msg-full header.top { display: none !important; }
.wc-bar { position: sticky; top: 0; z-index: 23; display: flex; align-items: center; gap: 6px; background: var(--bg); padding: calc(env(safe-area-inset-top, 0px) + 6px) 0 8px; margin: 0 0 6px; }
.wc-back, .wc-burger { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; border: 0; border-radius: 12px; background: none; color: var(--text); font-size: 26px; line-height: 1; cursor: pointer; }
.wc-burger { font-size: 22px; }
.wc-cur { font-size: 18px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wc-menu { position: absolute; z-index: 30; top: 100%; left: 0; right: 0; max-width: 360px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 32px #0c234833; padding: 6px; }
.wc-menu a { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; color: var(--text); text-decoration: none; font-weight: 650; }
.wc-menu a.on { background: var(--soft, #eef2f8); }
.fl-acts { gap: 2px; margin-top: 4px; }
.fl-act { 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; cursor: pointer; }
.fl-act.on { color: #e0245e; } .fl-act.on svg { fill: currentColor; }
.fl-act .tu-n:empty { display: none; }
