/* רצים עם טל: deep green for the group, warm orange for "now" and actions that matter.
   Phone first: one column, the tab bar at the bottom. */
:root{
  --g1:#C23B2E; --g2:#B7791F; --g3:#1B7FA8;          /* the half marathon groups */
  --g4:#7A4FB5; --g5:#B5407A; --g6:#2F7D6B;          /* the 10K groups */
  --g7:#5E7A1E;                                       /* the half marathon's 4th group, 1:50–2:00 */
  --r:14px; --mono:"IBM Plex Mono",ui-monospace,Consolas,monospace;
  color-scheme:light;
}
@media (prefers-color-scheme: dark){:root{ --warn:#E3B05A; --crit:#FF7A6E; --g1:#FF7A6E; --g2:#E3B05A; --g3:#6CC3F0; --g4:#B79BEA; --g5:#F08DBA; --g6:#6FD1B8; --g7:#B5D46A; color-scheme:dark}}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;touch-action:pan-x pan-y}
body{margin:0;color:var(--ink);font-size:16px;line-height:1.5}
h1,h2,h3{margin:0;line-height:1.2} h2{font-size:1.35rem} h3{font-size:1.05rem;margin-bottom:10px}
p{margin:0}
.num{direction:ltr;unicode-bidi:isolate}
.small{font-size:.88rem} .muted{color:var(--muted)} .err{color:var(--crit);font-size:.9rem}
.row{display:flex;flex-wrap:wrap;align-items:center;gap:8px} .between{justify-content:space-between} .col{display:flex;flex-direction:column;gap:8px}
.eyebrow{color:var(--muted);font-size:.85rem;font-weight:500}

/* frame */
.top{position:sticky;top:0;z-index:5;display:flex;justify-content:space-between;align-items:center;gap:10px;
  padding:calc(10px + env(safe-area-inset-top,0px)) max(16px,env(safe-area-inset-right,0px)) 10px max(16px,env(safe-area-inset-left,0px));color:var(--brand-ink)}
.brand{font-weight:800;font-size:1.2rem;letter-spacing:-.01em} .brand em{font-style:normal}
.brand.big{font-size:2.2rem;color:var(--brand)}
.page{max-width:680px;margin:0 auto;padding:16px max(16px,env(safe-area-inset-left,0px)) calc(96px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column}
.solo{max-width:460px;margin:0 auto;padding:40px 16px;display:flex;flex-direction:column;gap:16px}
.tabs{position:fixed;inset-inline:0;bottom:0;z-index:5;display:flex;padding-bottom:env(safe-area-inset-bottom,0px)}
.tabs button{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 2px 10px;background:none;border:0;font:inherit;cursor:pointer;min-height:56px}
.tabs button span{font-size:1.15rem;line-height:1}
.demo-bar{background:var(--hot-soft);color:var(--ink);text-align:center;font-size:.85rem;padding:6px 12px}

/* parts */
.card,.hero-card{background:var(--surface);border:1px solid var(--line);padding:16px;display:flex;flex-direction:column;gap:10px}
.hero-card{text-align:center;border:0;background:none;padding:0}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:8px 16px;border:1px solid var(--line);color:var(--ink);font:inherit;cursor:pointer;text-decoration:none}
.btn.ghost{border-color:transparent} .btn.danger{color:var(--crit)}
.btn.sm{padding:4px 12px;font-size:.9rem} .btn.big{font-size:1.05rem}
.btn:disabled{opacity:.6;cursor:default}
.btn:focus-visible,.chip:focus-visible,.tabs button:focus-visible{outline:3px solid var(--brand);outline-offset:2px}
.form{display:flex;flex-direction:column;gap:12px}
.form label{display:flex;flex-direction:column;gap:4px;font-size:.9rem;font-weight:500}
input,select,textarea{font:inherit;color:var(--ink);background:var(--surface);border:1px solid var(--line);padding:10px 12px;width:100%;min-height:44px}
textarea{min-height:80px;resize:vertical}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chip{color:var(--ink);font:inherit;font-size:.9rem;cursor:pointer}
.chip[aria-pressed="true"]{color:var(--brand-ink)}
.pill{font-size:.75rem;border-radius:99px;padding:1px 9px;background:var(--surface-2);color:var(--muted)}
.pill.good{background:var(--brand-soft);color:var(--good)}
.score{display:inline-block;font-size:.75rem;font-weight:600;border-radius:99px;padding:1px 9px;border:1.5px solid currentColor;white-space:nowrap}
.score b{font-weight:800} .s-good{color:var(--good)} .s-warn{color:var(--warn)} .s-crit{color:var(--crit)}
.score-line{margin-top:6px;font-size:.88rem;line-height:1.45}
.seg{display:flex;gap:6px;margin-top:4px} .seg button{flex:1;min-height:44px;border:1px solid var(--line);background:var(--surface);border-radius:10px;font:inherit;cursor:pointer;color:var(--ink)}
.seg button[aria-pressed="true"]{background:var(--brand);color:var(--brand-ink);border-color:var(--brand)}

/* today's workout */
.wcard{background:var(--surface);border:1px solid var(--line);border-top:6px solid var(--k-easy);border-radius:var(--r);padding:18px;display:flex;flex-direction:column;gap:12px}
.wcard h2{font-size:1.7rem;font-weight:800}
.kind{font-size:.8rem;font-weight:700;color:var(--k-easy)}
.k-long{border-color:var(--k-long)}.k-long .kind{color:var(--k-long)} .k-tempo{border-color:var(--k-tempo)}.k-tempo .kind{color:var(--k-tempo)}
.k-interval{border-color:var(--k-interval)}.k-interval .kind{color:var(--k-interval)} .k-strength{border-color:var(--k-strength)}.k-strength .kind{color:var(--k-strength)}
.k-rest{border-color:var(--k-rest)}.k-rest .kind{color:var(--k-rest)}
.nums{display:flex;gap:24px} .nums div{display:flex;flex-direction:column} .nums b{font-size:1.9rem;line-height:1.1} .nums span{font-size:.8rem;color:var(--muted)}
.done{background:var(--brand-soft);border-radius:10px;padding:10px 12px;font-size:.92rem}

/* feed, board, members */
.feed{display:flex;flex-direction:column;gap:8px}
.fitem{display:flex;gap:10px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:10px 12px}
.fbody{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.note{font-size:.9rem;color:var(--muted)}
.ava{flex:none;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;font-size:.8rem;font-weight:700;color:#fff;background:var(--k-rest)}
.ava.g1{background:var(--g1)}.ava.g2{background:var(--g2)}.ava.g3{background:var(--g3)}.ava.g4{background:var(--g4)}.ava.g5{background:var(--g5)}.ava.g6{background:var(--g6)}.ava.g7{background:var(--g7)}
.feel{font-weight:600}.f-great{color:var(--good)}.f-tired{color:var(--warn)}.f-pain{color:var(--crit)}
.board{display:flex;flex-direction:column;gap:6px;border-radius:var(--r)} .brow .ava{width:30px;height:30px}
.bname{width:5.5em;flex:none;font-weight:500} .bbar{flex:1;height:10px;background:var(--surface-2);border-radius:99px;overflow:hidden}
.bbar i{display:block;height:100%;border-radius:99px}
.mrow{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 0;border-top:1px solid var(--line)} .mrow:first-of-type{border-top:0}
.mrow select{width:auto;flex:1;min-width:130px}

/* week */
.days{display:flex;flex-direction:column;gap:8px}
.day{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:10px 12px;display:flex;flex-direction:column;gap:6px}
.day.is-today{border-color:var(--brand);box-shadow:inset 0 0 0 1px var(--brand)}
.dh{display:flex;justify-content:space-between;color:var(--muted);font-size:.88rem}
.wrow{display:block;text-align:start;width:100%;background:var(--bg);border:0;border-inline-start:4px solid var(--k-easy);border-radius:8px;padding:8px 10px;font:inherit;color:inherit}
button.wrow{cursor:pointer} .wrow .kind{margin-inline-end:6px} .wrow.own{border-color:var(--hot);background:var(--hot-soft)}
.add{border:1px dashed var(--line);background:none;border-radius:8px;padding:6px;color:var(--muted);font:inherit;font-size:.88rem;cursor:pointer;min-height:36px}

/* pay */
.pay{text-align:center;align-items:center}
.fee{font-size:3rem;font-weight:800;color:var(--brand)} .pay .col{width:100%} .fee .num{font-family:var(--font)} .fee.trial{font-size:2.1rem;line-height:1.15}

/* pop-up, toast */
.scrim{position:fixed;inset:0;z-index:20;background:rgb(0 0 0 / .45);display:flex;align-items:flex-end;justify-content:center}
.modal{background:var(--surface);width:100%;max-width:560px;max-height:92vh;overflow-y:auto;border-radius:18px 18px 0 0;padding:20px 16px calc(20px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:14px}
@media (min-width:700px){.scrim{align-items:center}.modal{border-radius:18px}}
.toast{position:fixed;z-index:30;bottom:calc(72px + env(safe-area-inset-bottom,0px));inset-inline:16px;margin:0 auto;max-width:480px;background:var(--ink);color:var(--bg);border-radius:12px;padding:12px 16px;text-align:center}
.toast.crit{background:var(--crit);color:#fff}
/* choosing a group when joining */
.grp-pick{display:flex;flex-direction:column;gap:6px;margin-top:6px}
.grp-pick button{min-height:48px;border:1px solid var(--line);border-inline-start:6px solid var(--k-rest);background:var(--surface);color:var(--ink);border-radius:10px;font:inherit;font-weight:600;text-align:start;padding:8px 14px;cursor:pointer}
.grp-pick .g1{border-inline-start-color:var(--g1)}.grp-pick .g2{border-inline-start-color:var(--g2)}.grp-pick .g3{border-inline-start-color:var(--g3)}
.grp-pick .g4{border-inline-start-color:var(--g4)}.grp-pick .g5{border-inline-start-color:var(--g5)}.grp-pick .g6{border-inline-start-color:var(--g6)}.grp-pick .g7{border-inline-start-color:var(--g7)}
/* joining: the race first, two big buttons side by side */
.race-pick{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:6px}
.race-pick button{min-height:56px;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:10px;font:inherit;font-size:1.05rem;font-weight:700;cursor:pointer}
.race-pick button[aria-pressed="true"]{background:var(--brand);border-color:var(--brand);color:var(--brand-ink)}
.chip.race{font-weight:700}
/* the coach's roster: a block per race, a heading per group */
.race-block{margin-top:10px}.race-block h4{margin:6px 0;display:flex;gap:8px;align-items:center}
.grp-head{margin:12px 0 2px;font-size:.88rem;padding-inline-start:8px;border-inline-start:4px solid var(--k-rest)}
.grp-head.g1{border-color:var(--g1)}.grp-head.g2{border-color:var(--g2)}.grp-head.g3{border-color:var(--g3)}.grp-head.g4{border-color:var(--g4)}.grp-head.g5{border-color:var(--g5)}.grp-head.g6{border-color:var(--g6)}.grp-head.g7{border-color:var(--g7)}
.race-names{border:1px solid var(--line);border-radius:10px;padding:8px 12px 12px;display:grid;gap:8px}.race-names legend{font-size:.88rem;font-weight:700;padding:0 4px}
.grp-pick button[aria-pressed="true"]{background:var(--brand-soft);border-color:var(--brand);box-shadow:inset 0 0 0 1px var(--brand)}
/* my week: progress, and workouts already run */
.wprog{height:8px;background:var(--surface-2);border-radius:99px;overflow:hidden;margin-top:-10px}
.wprog i{display:block;height:100%;background:var(--good);border-radius:99px}
.wcard.is-done{border-top-color:var(--good);opacity:.85}
.wcard.is-done h2{font-size:1.25rem}
.own-box,.card.own{border:1.5px dashed var(--hot);border-radius:12px;padding:10px 12px;display:flex;flex-direction:column;gap:6px;background:var(--hot-soft)}
/* the goal over the team photo: the people are in the lower middle of the picture */
.goal{position:relative;border-radius:var(--r);overflow:hidden;aspect-ratio:4/3;max-height:340px;width:100%;flex:none;background:var(--brand);box-shadow:0 6px 20px rgb(0 0 0 / .12)}
.goal img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 62%}
.goal::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgb(8 30 22 / .85) 0%,rgb(8 30 22 / .35) 40%,transparent 65%)}
.goal-text{position:absolute;z-index:1;inset-inline:0;bottom:0;padding:16px 18px;color:#fff;display:flex;flex-direction:column;gap:2px}
.goal-eyebrow{font-size:.8rem;font-weight:700;letter-spacing:.04em;color:var(--hot)}
.goal h1{font-size:1.65rem;font-weight:800;line-height:1.1;text-shadow:0 1px 8px rgb(0 0 0 / .4)}
.goal h1 .num{font-family:var(--font);font-weight:800}
/* report from a screenshot; turning on notifications */
.shot{display:flex;flex-direction:column;gap:4px;align-items:flex-start;padding:12px;border:1.5px dashed var(--brand);border-radius:12px;background:var(--brand-soft);cursor:pointer}
.shot-btn{font-weight:700;color:var(--brand)} .shot.busy{opacity:.7;cursor:progress} .good{color:var(--good)}
.card.push{border-color:var(--brand)}

/* the "install the app" screen: numbered steps; the coach's phone status in the roster */
.steps{margin:8px 0;padding-inline-start:22px;display:grid;gap:6px}
.phone{font-size:.75rem;color:var(--muted)} .phone.on{color:var(--good)}

/* ---------- home: slim banner, the next workout with the report button, the week as lines ---------- */
.hero-week{position:relative;overflow:hidden;flex:none}
.hero-week img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 38%}
.hero-week::after{position:absolute;inset:0;background:linear-gradient(to top,rgb(8 30 22 / .92) 0%,rgb(8 30 22 / .55) 45%,rgb(8 30 22 / .1) 100%);content:none}
.hw-text{z-index:1;inset-inline:0;bottom:0;color:#fff;display:flex;flex-direction:column}
.hw-text .num{font-family:var(--font)}
.hw-dates{font-size:.8rem;opacity:.85}
.hw-prog{height:8px;margin-top:8px;background:rgb(255 255 255 / .25);border-radius:99px;overflow:hidden}
.hw-prog i{display:block;height:100%;background:var(--hot);border-radius:99px}

.next{background:var(--surface);border:1px solid var(--line);border-top:6px solid var(--k-easy);border-radius:var(--r);padding:18px;display:flex;flex-direction:column;gap:12px;box-shadow:0 10px 28px rgb(0 0 0 / .08)}
.next h2{font-size:1.7rem;font-weight:800;line-height:1.15}
.next.week-done{border-top-color:var(--good);background:var(--brand-soft)}
.report-cta{min-height:60px;font-size:1.15rem;font-weight:800;border-radius:14px;box-shadow:0 8px 18px rgb(232 100 42 / .35)}
.report-cta:active{transform:translateY(1px);box-shadow:0 4px 10px rgb(232 100 42 / .3)}
.cta-hint{text-align:center;margin-top:-4px}

.wlist{gap:8px}
.wline{display:flex;align-items:center;gap:12px;width:100%;min-height:62px;padding:10px 14px;text-align:start;background:var(--surface);border:1px solid var(--line);border-radius:12px;color:var(--ink);font:inherit}
button.wline{cursor:pointer} button.wline:hover{border-color:var(--brand)}
.wline.is-next{border-color:var(--hot);box-shadow:inset 0 0 0 1px var(--hot)}
.wl-mark{flex:none;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-weight:800;background:var(--surface-2);color:var(--k-easy)}
.wline.k-long .wl-mark{color:var(--k-long)} .wline.k-tempo .wl-mark{color:var(--k-tempo)} .wline.k-interval .wl-mark{color:var(--k-interval)}
.wline.k-strength .wl-mark{color:var(--k-strength)} .wline.k-rest .wl-mark{color:var(--k-rest)}
.wline.is-done .wl-mark{background:var(--good);color:#fff}
.wl-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.wl-body b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wl-go{flex:none;color:var(--hot);font-weight:700;font-size:.9rem;white-space:nowrap}
.extra{margin-top:8px}

/* the report button that stays in reach while scrolling, over the tab bar */
.fab{position:fixed;z-index:6;inset-inline-end:16px;bottom:calc(72px + env(safe-area-inset-bottom,0px));min-height:52px;padding:0 20px;border:0;border-radius:99px;background:var(--hot);color:var(--hot-ink);font:inherit;font-size:1rem;font-weight:800;cursor:pointer;box-shadow:0 8px 22px rgb(0 0 0 / .25);opacity:0;transform:translateY(12px) scale(.9);pointer-events:none;transition:opacity .18s ease,transform .18s ease}
.fab:focus-visible{outline:3px solid var(--brand);outline-offset:2px}
.fab.show{opacity:1;transform:none;pointer-events:auto}
@media (prefers-reduced-motion: reduce){.fab{transition:none}}
.page:has(.fab){padding-bottom:calc(150px + env(safe-area-inset-bottom,0px))}

/* ---------- home: the report box, the week's workouts as big buttons ---------- */
.report-box{position:relative;overflow:hidden;padding:20px 18px 14px;display:flex;flex-direction:column;gap:12px;box-shadow:0 12px 30px rgb(14 90 68 / .28)}
.report-box::after{position:absolute;inset-inline-start:-40px;top:-40px;width:160px;height:160px;border-radius:50%;background:rgb(255 255 255 / .07);content:none}
.rb-text h2{font-size:1.5rem;font-weight:800}.rb-text p{font-size:.95rem;margin-top:2px}
.rb-upload{position:relative;z-index:1;cursor:pointer}
.report-box .rb-manual{align-self:center;opacity:.9;position:relative;z-index:1}
@media (prefers-color-scheme: dark){.report-box{color:#fff;background:radial-gradient(120% 140% at 100% 0%,#1f6b52 0%,#134636 50%,#0b2a20 100%)}}

.wgrid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:8px}
.wtile{position:relative;display:flex;flex-direction:column;align-items:flex-start;text-align:start;cursor:pointer;border:1px solid var(--line);border-top:5px solid var(--k-easy);border-radius:14px;color:var(--ink);font:inherit;transition:transform .12s ease,box-shadow .12s ease}
.wtile:hover{box-shadow:0 6px 16px rgb(0 0 0 / .08)} .wtile:active{transform:scale(.98)}
.wtile.k-long{border-top-color:var(--k-long)}.wtile.k-tempo{border-top-color:var(--k-tempo)}.wtile.k-interval{border-top-color:var(--k-interval)}.wtile.k-strength{border-top-color:var(--k-strength)}.wtile.k-rest{border-top-color:var(--k-rest)}
.wtile.is-next{box-shadow:0 0 0 2px var(--hot),0 8px 20px rgb(232 100 42 / .18)}
.wt-top{display:flex;justify-content:space-between;align-items:center;width:100%;font-size:1.1rem}.wt-n b{font-size:1.6rem;color:var(--ink);font-family:var(--font);margin-inline-start:2px}
.wt-check{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--good);color:#fff;font-weight:800;font-size:.95rem}
.wt-kind{font-weight:700;color:var(--k-easy)}
.wtile.k-long .wt-kind{color:var(--k-long)}.wtile.k-tempo .wt-kind{color:var(--k-tempo)}.wtile.k-interval .wt-kind{color:var(--k-interval)}.wtile.is-next .wt-kind{color:var(--hot)}
.wt-title{font-size:1.05rem;line-height:1.25}
.wt-sub{font-size:.85rem;color:var(--muted);margin-top:auto}
@media (max-width:340px){.wgrid{grid-template-columns:1fr}}

/* ---------- a workout's own page ---------- */
.wpage{display:flex;flex-direction:column;gap:16px}
.back{align-self:flex-start;padding-inline:4px}
.wp-hero{border-radius:18px;padding:20px 18px;display:flex;flex-direction:column;gap:10px;color:#fff;background:linear-gradient(150deg,var(--k-easy),#0a3f30);box-shadow:0 12px 30px rgb(0 0 0 / .15)}
.wpage.k-long .wp-hero{background:linear-gradient(150deg,#167a5a,#062b20)}
.wpage.k-tempo .wp-hero{background:linear-gradient(150deg,#d48a22,#8a4a0c)}
.wpage.k-interval .wp-hero{background:linear-gradient(150deg,#d24a3a,#7a1d14)}
.wp-eyebrow{font-size:.82rem}.wp-eyebrow .num{font-family:var(--font)}
.wp-hero p{opacity:.92;line-height:1.55}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:8px}
.stat{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border-radius:12px;background:var(--surface-2)}
.stat b{font-size:1.45rem;line-height:1.1;font-weight:700}.stat span{font-size:.78rem;color:var(--muted)}
.wp-hero .stat{background:rgb(255 255 255 / .14)}
.wp-hero .stat.hot{background:rgb(255 255 255 / .26)}
.result{background:var(--surface);border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:10px}
.result h3{margin:0}
.steps-line li{position:relative;padding-inline-start:26px;border-inline-start:2px solid var(--line);margin-inline-start:8px}
.steps-line li:last-child{border-color:transparent;padding-bottom:0}
.steps-line li::before{position:absolute;inset-inline-start:-9px;top:6px;width:16px;height:16px;border-radius:50%;background:var(--surface);border:3px solid var(--k-easy);content:none}
.steps-line li.z-main::before{border-color:var(--hot);background:var(--hot)} .steps-line li.z-rec::before{border-color:var(--k-rest)} .steps-line li.z-none::before{border-color:var(--line)}
.steps-line p{color:var(--muted);margin-top:2px}
.zpace{white-space:nowrap;font-weight:700;padding:2px 10px;border-radius:99px;background:var(--brand-soft);color:var(--brand)}
.z-main .zpace{background:var(--hot-soft);color:var(--hot)} .zpace small{font-weight:500;font-size:.72rem}
.tips{margin:0;padding-inline-start:20px;display:grid;gap:6px}
.card.why{border-color:var(--hot);background:var(--hot-soft)}
.pill.hot{background:var(--hot-soft);color:var(--hot)} .pill.draft{background:var(--hot-soft);color:var(--hot)}

/* ---------- the coach: next week from the assistant ---------- */
.card.review{border:2px solid var(--brand)}
.rv-race{border-top:1px solid var(--line);padding-top:12px;display:flex;flex-direction:column;gap:10px}
.rv-race h4{margin:0;font-size:1.05rem}
.rv-workouts{margin:0;padding-inline-start:20px;display:grid;gap:2px}
.linkish{background:none;border:0;padding:0;font:inherit;color:var(--brand);cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.rv-table{display:flex;flex-direction:column;gap:6px}
.rv-row{display:grid;grid-template-columns:auto 1fr auto;grid-template-areas:"ava who ok" "cells cells cells" "note note note";gap:6px 10px;align-items:center;padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.rv-row.ok{background:var(--brand-soft);border-color:transparent}
.rv-row .ava{grid-area:ava}.rv-who{grid-area:who;display:flex;flex-direction:column;min-width:0}.rv-row>.btn,.rv-row>.pill{grid-area:ok}
.rv-cells{grid-area:cells;display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.rv-note{grid-area:note}
.rv-cell{display:flex;flex-direction:column;align-items:center;gap:0;min-height:44px;padding:4px;border:1px solid var(--line);border-bottom:3px solid var(--k-easy);border-radius:8px;background:var(--bg);color:var(--ink);font:inherit;font-weight:700;cursor:pointer}
.rv-cell small{font-size:.68rem;font-weight:500;color:var(--muted)}
.rv-cell.k-long{border-bottom-color:var(--k-long)}.rv-cell.k-tempo{border-bottom-color:var(--k-tempo)}.rv-cell.k-interval{border-bottom-color:var(--k-interval)}
.spin{display:inline-block;width:14px;height:14px;border:2px solid var(--line);border-top-color:var(--brand);border-radius:50%;animation:spin 1s linear infinite;vertical-align:-2px}
@keyframes spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion: reduce){.spin{animation:none}.wtile{transition:none}}

/* the report button in the middle of the tab bar, on every screen: opens the camera roll for the watch screenshot */
.tabs{align-items:flex-end}
.tab-report{order:2;flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;padding:0 2px 10px;color:var(--hot);font-size:.78rem;font-weight:800;cursor:pointer;min-height:56px}
.tab-report span{display:grid;place-items:center;font-size:1.45rem}
.tab-report:active span{transform:scale(.95)}
.tabs button:nth-child(1){order:0}.tabs button:nth-child(2){order:1}.tabs button:nth-child(3){order:3}.tabs button:nth-child(4){order:4}

/* ---------- a report as a card (the feed, a workout's page, "well done" after saving) ---------- */
.rcard{background:var(--surface);border:1px solid var(--line);border-inline-start:5px solid var(--k-rest);border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:10px;box-shadow:0 4px 14px rgb(0 0 0 / .05)}
.rcard.k-easy{border-inline-start-color:var(--k-easy)}.rcard.k-long{border-inline-start-color:var(--k-long)}.rcard.k-tempo{border-inline-start-color:var(--k-tempo)}.rcard.k-interval{border-inline-start-color:var(--k-interval)}
.rcard header{display:flex;align-items:center;gap:10px}
.rc-who{flex:1;min-width:0;display:flex;flex-direction:column}.rc-who .small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rstats{display:grid;grid-template-columns:repeat(auto-fit,minmax(64px,1fr));gap:6px}
.rstats div{display:flex;flex-direction:column;align-items:center;padding:8px 4px;border-radius:12px;background:var(--surface-2)}
.rstats b{font-size:1.3rem;line-height:1.1;font-weight:700}.rstats span{font-size:.72rem;color:var(--muted)}
.rc-tags{gap:6px}
.rc-tags .feel,.vs{font-size:.8rem;font-weight:700;padding:3px 10px;border-radius:99px;background:var(--surface-2)}
.vs.on{background:var(--brand-soft);color:var(--good)}.vs.fast{background:var(--hot-soft);color:var(--hot)}.vs.slow{color:var(--warn)}
.ring{flex:none;width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--c) calc(var(--p) * 1%),var(--surface-2) 0);--c:var(--hot)}
.ring b{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--surface);font-size:.95rem;font-weight:800;color:var(--c)}
.done-sheet{display:flex;flex-direction:column;gap:14px;text-align:center}
.ds-top{display:flex;flex-direction:column;align-items:center;gap:4px}
.ds-emoji{font-size:3rem;line-height:1;animation:pop .5s ease-out}
.ds-top h2{font-size:2rem;font-weight:800;color:var(--brand)}
.ds-top .ring{width:72px;height:72px;margin-top:6px}.ds-top .ring b{width:58px;height:58px;font-size:1.4rem}
.done-sheet .rstats b{font-size:1.6rem}
.done-sheet .rc-tags{justify-content:center}
.ds-week{display:flex;flex-direction:column;gap:6px;font-weight:700}
.ds-week .hw-prog{background:var(--surface-2)}
@keyframes pop{0%{transform:scale(.3);opacity:0}70%{transform:scale(1.15)}100%{transform:scale(1);opacity:1}}
@media (prefers-reduced-motion: reduce){.ds-emoji{animation:none}}

/* ---------- 2026-10-29: header on one line, quieter tiles, the event, a group page for many runners ---------- */
.top .brand{white-space:nowrap;flex:none}
.top-me{display:flex;align-items:center;gap:8px;min-width:0}
.top-who{display:flex;flex-direction:column;align-items:flex-end;min-width:0;line-height:1.15;font-size:.85rem}
.top-who b,.top-who small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:38vw}
.top-who small{opacity:.8;font-size:.72rem}
.top-out{flex:none;padding:6px 10px;border:1px solid rgb(255 255 255 / .35)}

.wtile{min-height:118px;gap:2px;padding:14px;border-top-width:0;border-inline-start:5px solid var(--k-easy);
  background:linear-gradient(160deg,var(--surface) 55%,color-mix(in srgb,var(--k-easy) 12%,var(--surface)))}
.wtile.k-long{border-inline-start-color:var(--k-long);background:linear-gradient(160deg,var(--surface) 55%,color-mix(in srgb,var(--k-long) 12%,var(--surface)))}
.wtile.k-tempo{border-inline-start-color:var(--k-tempo);background:linear-gradient(160deg,var(--surface) 55%,color-mix(in srgb,var(--k-tempo) 12%,var(--surface)))}
.wtile.k-interval{border-inline-start-color:var(--k-interval);background:linear-gradient(160deg,var(--surface) 55%,color-mix(in srgb,var(--k-interval) 12%,var(--surface)))}
.wtile.is-done{background:var(--brand-soft)}
.wt-icon{font-size:1.5rem;line-height:1}
.wt-n{font-size:1.45rem;font-weight:800;color:var(--ink);margin-top:auto}
.wt-n .num{font-size:inherit}
.wt-kind{font-size:.85rem}
.wt-next{font-size:.72rem;font-weight:700;color:#fff;background:var(--hot);padding:2px 8px;border-radius:99px}
.wtile.is-event{border-inline-start-color:var(--hot);color:#fff;background:linear-gradient(140deg,#e8642a 0%,#c2410c 55%,#7c2d12 100%)}
.wtile.is-event .wt-n,.wtile.is-event .wt-kind,.wtile.is-event .wt-sub{color:#fff}
.wtile.is-event.is-done{background:linear-gradient(140deg,#1f7a5c,#0a3f30)}
.wpage.is-event .wp-hero{background:linear-gradient(140deg,#e8642a 0%,#c2410c 55%,#7c2d12 100%)}

.g-sum{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.g-sum div{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:12px 8px;text-align:center;display:flex;flex-direction:column;gap:2px}
.g-sum b{font-size:1.5rem;font-weight:800;color:var(--brand)} .g-sum b small{font-size:.9rem;color:var(--muted)} .g-sum span{font-size:.78rem;color:var(--muted)}
.podium{display:grid;grid-template-columns:1fr 1.15fr 1fr;align-items:end;gap:8px}
.pod{display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px 6px;background:var(--surface);border:1px solid var(--line);text-align:center;min-width:0}
.pod b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.pod .pod-km{font-size:.85rem;color:var(--muted);font-weight:600}
.pod.p1{order:2;padding-top:18px;border-color:var(--brand)} .pod.p1 .ava{width:48px;height:48px;font-size:1rem}
.pod.p2{order:1} .pod.p3{order:3} .pod-medal{line-height:1}
.board.slim{gap:2px;padding:6px 10px}
.board.slim .brow{padding:6px 0;border-top:1px solid var(--line)} .board.slim .brow:first-child{border-top:0}
.board.slim .ava{width:26px;height:26px;font-size:.7rem}
.brank{width:1.6em;flex:none;text-align:center;color:var(--muted);font-size:.85rem;font-weight:600}
.board.slim .bname{width:auto;flex:1.4;min-width:0;display:flex;flex-direction:column;line-height:1.2;font-size:.92rem}
.board.slim .bname small{color:var(--muted);font-size:.72rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.board.slim .bbar{flex:1;height:7px}
.bkm{width:2.6em;text-align:end;flex:none}
.board.slim > .btn{align-self:center;margin-top:4px}
/* heart-rate zones 1-5 */
.stat.zone b{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.zbar{display:flex;gap:3px;direction:ltr}
.zbar i{width:14px;height:6px;border-radius:3px}
.zbar i.on.z1{background:#9ca3af}.zbar i.on.z2{background:#4ade80}.zbar i.on.z3{background:#facc15}.zbar i.on.z4{background:#fb923c}.zbar i.on.z5{background:#ef4444}
.zt{font-weight:800;padding:0 6px;border-radius:6px;background:var(--surface);margin-inline-start:4px;direction:ltr;display:inline-block}
/* the report: which run this is */
.pick-wrap{display:flex;flex-direction:column;gap:6px}
.pick-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px}
.pick{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:10px 10px 8px;border-radius:12px;border:1.5px solid var(--line);background:var(--surface);color:var(--ink);font:inherit;text-align:start;cursor:pointer}
.pick b{font-size:1.05rem} .pick small{font-size:.75rem;color:var(--muted)}
.pick[aria-pressed="true"]{border-color:var(--brand);background:var(--brand-soft);box-shadow:inset 0 0 0 1px var(--brand)}
.pick.ev{border-color:var(--hot)} .pick.ev[aria-pressed="true"]{background:var(--hot-soft);box-shadow:inset 0 0 0 1px var(--hot)}
.pick.extra{border-style:dashed}
.pk-done{position:absolute;top:6px;inset-inline-end:8px;font-style:normal;color:var(--good);font-weight:800}
.pk-ai{font-style:normal;font-size:.68rem;font-weight:700;color:var(--hot);margin-top:2px}
.rc-del{align-self:flex-start;padding-inline:0}
.shot-hint{margin:0}
/* ---------- profile photos, screenshots, the profile tab ---------- */
.ava{overflow:hidden} .ava img{width:100%;height:100%;object-fit:cover;display:block}
.rc-person{background:none;border:0;padding:0;cursor:pointer;border-radius:50%}
.rc-name{font-weight:700;color:var(--ink);text-decoration:none;min-height:24px}
button.brow,button.pod{font:inherit;color:inherit;cursor:pointer;width:100%;text-align:start}
button.brow{background:none;border:0;border-top:1px solid var(--line)} .board.slim button.brow:first-child{border-top:0}
.rc-shot{position:relative;display:block;width:100%;height:150px;border:0;padding:0;border-radius:12px;overflow:hidden;cursor:pointer;background:var(--surface-2)}
.rc-shot img{width:100%;height:100%;object-fit:cover;object-position:top;display:block}
.rc-shot > span{position:absolute;bottom:8px;inset-inline-start:8px;background:rgb(0 0 0 / .6);color:#fff;font-size:.78rem;font-weight:600;padding:4px 10px;border-radius:99px}
.viewer{position:fixed;inset:0;z-index:50;background:#000;display:flex;flex-direction:column;color:#fff}
.viewer header{display:flex;align-items:center;gap:12px;padding:calc(10px + env(safe-area-inset-top,0px)) 12px 10px;font-size:.9rem}
.viewer-x{width:44px;height:44px;border-radius:50%;border:0;background:rgb(255 255 255 / .16);color:#fff;font-size:1.3rem;cursor:pointer;flex:none}
.viewer-body{flex:1;overflow:auto;display:flex;align-items:flex-start;justify-content:center;padding-bottom:env(safe-area-inset-bottom,0px);touch-action:pan-x pan-y pinch-zoom}
.viewer-body img{max-width:100%;height:auto;display:block}
.profile{display:flex;flex-direction:column;gap:18px}
.pf-head{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center}
.pf-head h1{font-size:1.6rem;font-weight:800}
.pf-photo{position:relative;cursor:pointer} .pf-photo .ava{width:112px;height:112px;font-size:2.2rem;box-shadow:0 6px 20px rgb(0 0 0 / .15)}
.pf-cam{position:absolute;bottom:2px;inset-inline-end:2px;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--hot);font-size:1rem;border:3px solid var(--bg,#fff)}
.pf-pr-grid{grid-template-columns:repeat(3,1fr)}
.pf-pr-grid div{border-radius:14px;padding:14px 6px;text-align:center;display:flex;flex-direction:column;gap:4px}
.pf-pr-grid .empty{background:var(--surface)}
.pf-runs{display:flex;flex-direction:column;gap:6px;margin-top:8px}
.prow{display:flex;align-items:center;gap:12px;width:100%;padding:10px 12px;background:var(--surface);border:1px solid var(--line);border-inline-start:4px solid var(--k-easy);border-radius:12px;font:inherit;color:var(--ink);text-align:start}
button.prow{cursor:pointer} button.prow:active{transform:scale(.99)}
.prow.k-long{border-inline-start-color:var(--k-long)}.prow.k-tempo{border-inline-start-color:var(--k-tempo)}.prow.k-interval{border-inline-start-color:var(--k-interval)}
.pr-date{display:flex;flex-direction:column;align-items:center;min-width:3.2em;flex:none} .pr-date small{font-size:.7rem;color:var(--muted)}
.pr-what{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px} .pr-what b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis} .pr-what small{color:var(--muted);font-size:.8rem}
.pr-cam{flex:none;opacity:.8}
/* the small "אקסטרה" tag beside workout 4 */
.xtra{display:inline-block;vertical-align:middle;margin-inline-start:6px;font-size:.62rem;font-weight:700;letter-spacing:.02em;line-height:1;padding:3px 7px 4px;border-radius:99px;background:var(--brand-soft);color:var(--good);border:1px solid color-mix(in srgb,var(--good) 25%,transparent)}
.wp-eyebrow .xtra{font-size:.68rem}
.wt-n:has(.xtra){white-space:nowrap}.wt-n .xtra{position:relative;top:-2px}

/* the coach's "replace this workout" buttons, on a workout's page and in the review */
.swap-cta{margin:4px 0 10px}
.rv-swap{margin:8px 0 4px}

/* communities: the bar over the group tab, the coach's toggles per runner, the sign-up picker */
.comm-bar{margin-bottom:8px}
.chip.comm{font-weight:700}
.comm-tog{display:flex;flex-wrap:wrap;gap:4px;flex-basis:100%}
.chip.sm{padding:3px 10px;font-size:.8rem}
.comm-pick{margin-top:6px}

/* several pictures in a report: small previews with remove, and "+" for another */
.shot-thumbs{display:flex;flex-wrap:wrap;gap:8px}
.shot-thumbs .st{position:relative;width:64px;height:64px;border-radius:10px;overflow:hidden;background:var(--surface);border:1px solid var(--line)}
.shot-thumbs .st img{width:100%;height:100%;object-fit:cover;display:block}
.shot-thumbs .st-x{position:absolute;top:2px;inset-inline-end:2px;width:24px;height:24px;border:0;border-radius:99px;background:rgb(0 0 0 / .65);color:#fff;font-size:.75rem;line-height:1;cursor:pointer;padding:0}
.shot-thumbs .st-add{display:flex;align-items:center;justify-content:center;font-size:1.6rem;font-weight:700;color:var(--brand);border-style:dashed;border-color:var(--brand);cursor:pointer}
.viewer-body.many{flex-direction:column;align-items:center;gap:10px}

/* reactions under a report: emoji chips with a count, word lines, and the small reply box */
.rx-wrap{display:flex;flex-direction:column;gap:6px}
.rx-row{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.rx{display:inline-flex;align-items:center;gap:4px;padding:2px 10px;border:1px solid var(--line);border-radius:99px;background:var(--surface);color:var(--ink);font:inherit;font-size:.95rem;cursor:pointer}
.rx span{font-size:.8rem;font-weight:700;color:var(--muted)}
.rx[aria-pressed="true"]{background:var(--brand-soft);border-color:var(--brand)}
.rx[aria-pressed="true"] span{color:var(--brand)}
.rx.add{color:var(--muted);font-size:.85rem}
.rx-line{margin:0;font-size:.9rem}
.rx-line .linkish{font-weight:700}
.rx-del{border:0;background:none;color:var(--muted);cursor:pointer;font-size:.75rem;padding:2px 6px}
.rx-box{display:flex;flex-direction:column;gap:8px;padding:10px;border-radius:12px;background:var(--surface-2)}
.rx-quick{display:flex;flex-wrap:wrap;gap:6px}
.rx-quick .rx{font-size:1.2rem;min-width:44px;justify-content:center}
.rx-write{gap:6px;flex-wrap:nowrap}
.rx-write input{flex:1;min-width:0}

/* deleting my own account: a quiet red link at the bottom of the profile and the waiting screen */
.btn.danger-link{color:var(--crit);align-self:center;margin-top:10px;font-weight:500}
.btn.danger[data-act="deleteMeNow"]{background:var(--crit);border-color:var(--crit);color:#fff}

/* the App Store app: no connection (data kept on the phone), and the share button after a run */
.offline-bar{background:var(--warn);color:#fff;text-align:center;font-size:.85rem;font-weight:600;padding:6px 12px}
.ds-actions{justify-content:center;gap:8px;flex-wrap:nowrap}
.ds-actions .btn.big{flex:1}

/* what to photograph (by workout kind), what the reading could not find, and the coach's feedback on a run */
.shot-hint{background:var(--brand-soft);color:var(--ink);border-radius:10px;padding:10px 12px;font-size:.92rem;display:flex;flex-direction:column;gap:4px;text-align:start}
.shot-hint ol{margin:0;padding-inline-start:20px;display:flex;flex-direction:column;gap:3px}
.needs{background:var(--hot-soft);border:1px solid var(--hot);border-radius:10px;padding:8px 12px;font-size:.9rem;font-weight:500}
.coach-fb{border-inline-start:3px solid var(--brand);padding:10px 12px;text-align:start;display:flex;flex-direction:column;gap:4px}
.coach-fb p{margin:0;line-height:1.55}

/* a checkbox with its words (the AI consent for Garmin runs) */
.check{display:flex;gap:10px;text-align:start;cursor:pointer}
.check input{width:20px;height:20px;min-height:0;flex:none;accent-color:var(--brand)}
/* "⌚ שלח לשעון" on a workout (Garmin Training API) */
.watch{display:flex;flex-direction:column;gap:6px;margin:12px 0}
.btn.dark{color:var(--brand-ink)}
.watch-cta{align-self:stretch}
/* the workout builder (החלפת האימון) */
.btypes .chip{flex:1 1 30%}
.bgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px}
.row.nowrap{flex-wrap:nowrap;gap:6px}.row.nowrap input{flex:1;min-width:0}.row.nowrap select{flex:0 0 auto;width:auto}
.blocks{display:flex;flex-direction:column;gap:6px}
.brow{display:grid;grid-template-columns:3.2rem 1fr auto 1fr;gap:6px;align-items:center}
.brow input,.brow select{min-width:0}
.brow.bhead span{font-size:.8rem;color:var(--muted)}

/* ================= The look (2026-11): navy, marker pink, a touch of turquoise =================
   Navy is the ground of the headers; pink is "now" and "fast" (the next workout, the report button, paces);
   turquoise is "done" (days I ran, ✓, a score of 90+). Text on pink is navy, never white. */
:root{
  --bg:#FFFFFF; --surface:#FFFFFF; --surface-2:#F3F5F9; --ink:#0C1430; --muted:#59637A; --line:#E5E8EF;
  --brand:#111B36; --brand-ink:#FFFFFF; --brand-soft:#EEF1F7;
  --hot:#FF0099; --hot-ink:#0C1430; --hot-soft:#FFE3F1; --hot-text:#C5007A;
  --tq:#3FD8C9; --tq-text:#0E9C90; --tq-soft:#DDF7F4;
  --good:#0E9C90; --warn:#B7791F; --crit:#C23B2E;
  --k-easy:#0E9C90; --k-long:#111B36; --k-tempo:#C5007A; --k-interval:#C5007A; --k-strength:#46617A; --k-rest:#8A92A6;
  --font:"Heebo","Segoe UI",Arial,sans-serif;--brand-fg:var(--brand);
}
@media (prefers-color-scheme: dark){:root{
  --bg:#070D20; --surface:#0E1630; --surface-2:#151F3D; --ink:#EEF1F8; --muted:#9AA4BC; --line:#1E2A4A;
  --brand:#111B36; --brand-ink:#FFFFFF; --brand-soft:#151F3D; --hot:#FF0099; --hot-ink:#0C1430; --hot-soft:#3A0F2C; --hot-text:#FF5CB8;
  --tq:#3FD8C9; --tq-text:#3FD8C9; --tq-soft:#0F3332; --good:#3FD8C9;
  --k-easy:#3FD8C9; --k-long:#C9D2E6; --k-tempo:#FF5CB8; --k-interval:#FF5CB8; --k-strength:#8FB0D6; --k-rest:#7F8AA3;--brand-fg:#EEF1F8}}
/* brand as text: navy in light, near-white in dark (navy text on a dark surface disappears) */
.shot-btn,.linkish,.shot-thumbs .st-add,.rx[aria-pressed="true"] span,.g-sum b,.ds-top h2,.fee,.brand.big{color:var(--brand-fg)}
.shot,.shot-thumbs .st-add{border-color:var(--brand-fg)}
.btn:focus-visible,.chip:focus-visible,.tabs button:focus-visible{outline-color:var(--hot)}
a{color:var(--hot-text)}
.btn.ghost{color:var(--hot-text)}
.btn.ghost.light{color:#fff}
.card,.hero-card{border-radius:18px}
.top{background:var(--brand)}
.brand em{color:var(--hot)}

/* the tab bar: line icons, the current one in ink */
.tabs button span{display:flex}

/* the week on the home screen: a navy block, a big headline, the seven days */
.hero-week{height:auto;background:var(--brand);border-radius:22px;padding:20px 18px 18px;display:flex;flex-direction:column;gap:18px;box-shadow:none}
.hw-text{position:static;padding:0;gap:4px}
.hw-text h1{font-size:2.2rem;font-weight:900;line-height:1.02;letter-spacing:-.03em;text-shadow:none}
.hero-week .goal-eyebrow{color:rgb(255 255 255 / .72);font-weight:600;letter-spacing:0}
.hw-days{display:flex}
.hw-day{flex:1;display:flex;flex-direction:column;align-items:center;gap:6px}
.hw-day b{border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.82rem}
.hw-day b svg{width:16px;height:16px;stroke-width:2.6}

/* the "finished a run?" box: quieter, on white */
.report-box{color:var(--ink)}
.rb-text p{opacity:1;color:var(--muted)}
.report-box .rb-manual{color:var(--hot-text)}

/* the week's workouts: a list */
.wlist{display:flex;flex-direction:column;margin-top:4px}
.witem{display:flex;align-items:center;gap:14px;width:100%;min-height:64px;padding:12px 2px;background:none;border:0;border-bottom:1px solid var(--line);font:inherit;color:var(--ink);text-align:start;cursor:pointer}
.witem:last-child{border-bottom:0}
.wr-n{font-size:.8rem;color:var(--muted);width:22px;flex:none}
.wr-main{flex:1;display:flex;flex-direction:column;gap:1px;min-width:0}
.wr-kind{font-size:.75rem;color:var(--muted);letter-spacing:.02em}
.wr-main b{letter-spacing:-.01em}
.wr-res{font-size:.85rem;color:var(--muted)}
.wr-mark{width:24px;display:flex;justify-content:center;flex:none}
.wr-mark i{width:10px;height:10px;border-radius:50%;background:var(--hot)}
.witem.is-next .wr-n,.witem.is-next .wr-kind{color:var(--hot-text)}
.witem .xtra{margin-inline-start:6px}

/* a workout's page: the navy block for every kind */
.wp-hero,.wpage.k-long .wp-hero,.wpage.k-tempo .wp-hero,.wpage.k-interval .wp-hero{background:var(--brand);border-radius:22px}
.wp-hero h1{letter-spacing:-.03em;line-height:1.02}
.wp-eyebrow{opacity:.75;font-weight:600}
.zbar i.on.z1,.zbar i.on.z2,.zbar i.on.z3,.zbar i.on.z4,.zbar i.on.z5{background:var(--hot)}
.result{border-color:var(--tq)}

/* the score rings: pink, turquoise from 90 */

/* the coach's words */
.coach-fb{background:var(--surface-2);border-radius:16px}
.btn.dark{background:var(--brand);border-color:var(--brand)}
/* the group's table: gold medals in a turquoise ring, and each runner's average score beside the km */
.pod-medal{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;font-size:1.5rem}
.pod.p1{background:var(--surface);border:1.5px solid var(--tq)} .pod.p1 .pod-medal{width:52px;height:52px;font-size:1.8rem}
.sc-pill{display:inline-flex;align-items:center;gap:3px;font-size:.75rem;font-weight:700;color:var(--muted);border-radius:99px;white-space:nowrap}
.sc-pill.top{color:var(--tq-text)}
.board.slim .brow{display:flex;align-items:center;gap:10px;flex-wrap:nowrap}
.board.slim .sc-pill{width:3.2em;justify-content:center;flex:none}
/* the camera as a line icon (no emoji): navy on pink */
.tab-report span{color:var(--hot-ink)} .tab-report span svg{width:26px;height:26px}
.pf-cam{color:var(--hot-ink)} .pf-cam svg{width:18px;height:18px}
.pr-cam svg{width:16px;height:16px} .report-cta svg,.rb-upload svg,.shot-btn svg{width:20px;height:20px}

/* ================= The screens as on the design canvas =================
   Every screen opens with a full-width navy block (the app's name and who I am, then the screen's eyebrow,
   a big headline and its numbers); below it a white body of lists split by thin lines. */
.page{padding-top:0;gap:0}
.phead{display:flex;flex-direction:column}
.ph-top{display:flex;justify-content:space-between;align-items:center;gap:10px}
.ph-top .brand{font-weight:900;color:#fff}
.ph-who{font-size:.8rem;font-weight:600;color:rgb(255 255 255 / .72);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ph-text{display:flex;flex-direction:column;gap:4px}
.phead h1{margin:0}
.ph-sub{color:rgb(255 255 255 / .8);font-size:.95rem;line-height:1.5}
.ph-back{align-self:flex-start;display:inline-flex;align-items:center;gap:4px;min-height:40px;padding:0;background:none;border:0;font:inherit;font-size:.92rem;cursor:pointer}
.ph-back svg{width:18px;height:18px}
.ph-stats > div{display:flex;flex-direction:column}
.ph-stats b small{font-size:.9rem}
.ph-stats .zone b{display:flex;flex-direction:column;gap:6px}
.ph-seg{display:flex;gap:3px}
.ph-seg i{height:8px;border-radius:4px;opacity:.55}
.ph-seg i.z-main{opacity:1}
.ph-person{display:flex;align-items:center}
.ph-person .pf-photo .ava{width:76px;height:76px;font-size:1.6rem;border:0}

.pbody{display:flex;flex-direction:column}
.pbody h3{font-size:1.05rem;font-weight:800}

/* home */
.ran-today{display:flex;align-items:center;gap:12px;padding-bottom:14px;border-bottom:1px solid var(--line);font-size:.92rem;color:var(--muted)}
.ran-today b{color:var(--ink)}
.faces{display:flex;padding-inline-start:8px}
.faces .ava{width:30px;height:30px;font-size:.7rem;border:2px solid var(--surface);margin-inline-start:-8px}
.garmin-line{display:flex;align-items:center;gap:8px;font-size:.85rem;color:var(--muted)}
.garmin-line svg{width:18px;height:18px;color:var(--tq-text)}

/* a workout: the steps as a list, the coach's note, the two buttons side by side */
.steps-line{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-direction:column}
.steps-line li{display:flex;align-items:center;gap:14px;padding:12px 0;border-bottom:1px solid var(--line)}
.steps-line li:last-child{border-bottom:0}
.st-dot{width:8px;height:8px;border-radius:50%;background:var(--hot);opacity:.5;flex:none}
.steps-line li.z-main .st-dot{opacity:1}
.st-text{flex:1;min-width:0}.st-text b{font-size:1rem}.st-text p{font-size:.9rem;color:var(--muted);margin:0}
.steps-line .zpace{font-size:.95rem;font-weight:600;color:var(--ink);white-space:nowrap}
.steps-line li.z-main .zpace{color:var(--hot-text)}
.coach-note{margin:0;padding:14px 16px;background:var(--surface-2);border-radius:16px;font-size:.95rem;line-height:1.55}
.coach-note p{margin:0}.coach-note footer{margin-top:6px;font-size:.78rem;font-weight:700;color:var(--muted)}
.wp-actions{display:flex;gap:10px;align-items:flex-start}
.wp-actions .watch{flex:1;margin:0}
.wp-actions .report-cta{flex:1.3;min-height:54px}
.wp-actions .watch-cta{min-height:54px;background:var(--surface);color:var(--ink);border:1.5px solid var(--ink)}
.wp-actions .watch-cta.btn.dark{background:var(--surface);color:var(--ink)}
.wp-actions .watch .small{font-size:.72rem}
.swap-cta{align-self:flex-start}

/* the group's podium and table sit on white */
.pod{border-radius:18px}

/* Calmer: one accent at a time. Faces are quiet navy initials (a photo when there is one), numbers are ink,
   pink is only the main action and "now", turquoise only "done". */
.pf-pr-grid div{background:var(--surface-2);border:0}
.pod-medal{background:transparent;box-shadow:0 0 0 1.5px var(--tq)}
.pod.p1 .pod-medal{box-shadow:0 0 0 2px var(--tq)}
.sc-pill{background:transparent;padding:0 2px}
.sc-pill.top{background:transparent}
.card.warn{border-color:var(--line)}
.card.warn h3{color:var(--hot-text)}
.pill.hot,.pill.draft{background:var(--surface-2);color:var(--hot-text)}
.wr-mark{color:var(--ink)}
.chip[aria-pressed="true"]{background:var(--ink);border-color:var(--ink)}
.result{border:1px solid var(--line)} .result h3{color:var(--ink)}
.ring.s-good{--c:var(--tq)} .ring.s-warn{--c:var(--ink)} .ring.s-crit{--c:var(--crit)}
.extra{align-self:flex-start;color:var(--muted)}
.btn.ghost.extra{color:var(--muted)}
.ph-who{display:flex;align-items:center;gap:10px}
.ph-out{min-height:32px;padding:0 12px;border-radius:99px;border:1px solid rgb(255 255 255 / .3);background:none;font:inherit;font-size:.78rem;cursor:pointer}
.home-pic{margin:0;overflow:hidden;background:var(--brand)}
.home-pic img{display:block;width:100%;height:auto}
.prow,.prow.k-long,.prow.k-tempo,.prow.k-interval,.prow.k-easy{border-inline-start:1px solid var(--line)} .pr-cam{color:var(--muted)}
/* the top: the app's name and the week a little bigger, the headline a little smaller */
.ph-top .brand{font-size:1.35rem}
.ph-eyebrow{font-size:1rem;font-weight:700;color:rgb(255 255 255 / .85)}
.ph-person h1{font-size:1.7rem}
/* a workout I did: a turquoise ✓ at its side */
.witem .wr-mark{width:28px;height:28px}
.witem.is-done .wr-mark{border-radius:50%;align-items:center}
.witem.is-done .wr-mark svg{width:16px;height:16px;stroke-width:2.6}
.tabs button{white-space:nowrap;font-size:.72rem}

/* the AI chat on the home page */
.chat{gap:12px}
.chat-head{display:flex;align-items:center;gap:10px}
.chat-head>div{flex:1;min-width:0}
.chat-head h3{margin:0;font-size:1.05rem;line-height:1.2}
.chat-head p{margin:2px 0 0}
.chat-ava{flex:none;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;font-size:.8rem;letter-spacing:.04em}
.chat-clear{border:0;background:none;color:var(--muted);font:inherit;font-size:.85rem;cursor:pointer}
.chat-log{display:flex;flex-direction:column;gap:8px;max-height:360px;overflow-y:auto;padding:2px;overscroll-behavior:contain}
.cm{max-width:88%;padding:10px 14px;border-radius:18px;line-height:1.55;font-size:.95rem;overflow-wrap:anywhere}
.cm-me{align-self:flex-start;border-start-start-radius:6px}
.cm-ai{align-self:flex-end;background:var(--surface-2);color:var(--ink);border-start-end-radius:6px}
.cm p{margin:0}.cm p+p,.cm p+ul,.cm ul+p{margin-top:6px}
.cm ul{margin:4px 0 0;padding-inline-start:18px}.cm li{margin:2px 0}
.cm b{font-weight:700}
.cm-wait{display:flex;align-items:center;gap:8px;color:var(--muted)}
.chat .chips{display:flex;flex-wrap:wrap;gap:6px}
.chat .chip{font-size:.85rem}
.chat-in{display:flex;gap:8px;align-items:center;border-radius:99px;padding:4px 4px 4px 4px}
.chat-in input{flex:1;border:0;background:transparent;padding:8px 14px;border-radius:99px}
.chat-in input:focus{outline:none}
.chat-send{flex:none;border-radius:50%;border:0;background:var(--hot);color:#fff;display:grid;place-items:center;cursor:pointer}
.chat-send svg{width:18px;height:18px;transform:scaleX(-1)}
.chat-send:disabled{opacity:.5}

/* sign-out, on my profile */
.pf-out{width:100%;justify-content:center;margin-top:4px}

/* the report button: the group's pink sunglasses on navy */
.tab-report span svg.glasses{height:auto}

/* touch targets: 44px for what a thumb presses while moving (chips, small buttons) */
.chip{min-height:44px;padding:8px 16px}
.chip.sm{min-height:36px}
.btn.sm{min-height:44px}
.chat-clear{min-height:44px;min-width:44px;padding:0 10px}
.check{min-height:44px;align-items:center}
.check input{margin-top:0}

/* Garmin consent: the details one tap away */
.gm-more summary{cursor:pointer;color:var(--hot-text);font-size:.9rem;font-weight:600;min-height:44px;display:flex;align-items:center;list-style:none}
.gm-more summary::-webkit-details-marker{display:none}
.gm-more summary::after{content:"";width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin-inline-start:8px;margin-top:-4px;transition:transform .2s ease-out}
.gm-more[open] summary::after{transform:rotate(-135deg);margin-top:4px}
.gm-more p{margin:0 0 4px;color:var(--muted)}
.chat-send{width:44px;height:44px}
.chat-in input{min-height:44px}
.rx{min-height:40px}

/* ===== the frame, take 2: a slim navy app bar, then each screen's head on the page itself ===== */
.appbar{margin-inline:calc(-1 * max(16px, env(safe-area-inset-left, 0px)));padding:calc(12px + env(safe-area-inset-top, 0px)) 20px 12px;display:flex;justify-content:space-between;align-items:center;gap:12px}
.appbar .brand{display:flex;align-items:center;gap:10px;letter-spacing:-.01em}
.appbar .brand svg.glasses{width:38px;height:auto;flex:none}
.appbar .brand em{font-style:normal}
.appbar .ph-who{font-size:.85rem}

.phead{background:none;color:var(--ink);gap:16px;margin-inline:0}
.phead .ph-text{gap:6px}
.phead h1{font-size:2rem;font-weight:900;line-height:1.1;letter-spacing:-.03em;color:var(--ink)}
.ph-small h1{font-size:1.9rem}
/* the line under a title: what the screen covers (never a label over it) */
.ph-text .ph-eyebrow{order:2}
.ph-text h1{order:1} .ph-text .ph-sub{order:3} .ph-text .row{order:4}
.phead .ph-sub{color:var(--muted);font-size:.98rem}
.ph-back{margin:-8px 0 -4px}
.phead .pill{background:var(--hot-soft);color:var(--hot-text)}
.phead .pill.draft{background:var(--surface-2);color:var(--muted)}
.phead .ava{background:var(--brand);color:#fff}

/* numbers: one row of quiet tiles */
.ph-stats{grid-template-columns:repeat(auto-fit,minmax(0,1fr));gap:8px}
.ph-stats > div{gap:2px}
.ph-stats b{color:var(--ink);line-height:1.15;white-space:nowrap}
.ph-stats span{color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ph-stats .hot b{color:var(--hot-text)}
.ph-stats b small{opacity:.6}
.ph-seg i{background:var(--hot)} .zbar i.on{background:var(--hot)}

/* home: the week number is the headline, what is left under it, then the seven days */
.ph-home h1{display:flex;align-items:baseline;gap:12px;font-size:2.6rem;line-height:1}
.ph-home h1 small{color:var(--muted);letter-spacing:0}
.ph-left{margin:6px 0 0;color:var(--ink)}
.ph-cheer{margin:0;font-size:.95rem}
.hw-days{margin-top:4px}
.hw-day.is-ran b{background:#111B36;color:#fff}
.hw-day.is-today.is-ran b{border:0;background:var(--hot);color:#fff}

/* my workouts: the week as a real line */
.wk-line{display:flex;flex-direction:column;gap:2px;margin:4px 0 2px}
.wk-line b{font-size:1.25rem;font-weight:800;color:var(--ink)}
.wk-line span{font-size:.95rem;font-weight:600;color:var(--muted)}

/* the coach's swap buttons: two by two */
.rv-swap{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.rv-swap .chip{width:100%;justify-content:center}

/* Garmin, connected */
.gm-on{display:flex;align-items:center;gap:8px}
.gm-on .small{margin-inline-start:auto}
.gm-dot{width:10px;height:10px;border-radius:50%;background:var(--tq);box-shadow:0 0 0 4px var(--tq-soft)}
.gm-more .btn{margin-top:4px}
.ph-text .ph-left{order:2} .ph-text .ph-cheer{order:3}
.ph-stats{display:flex;flex-wrap:wrap}
.ph-stats > div{flex:1 1 0;min-width:0}
.ph-stats > div.hot{flex:2 1 auto}
.ph-workout .ph-stats{gap:6px}
.ph-workout .ph-stats > div{padding:10px 8px}
.ph-workout .ph-stats b{font-size:1.15rem}
.ph-workout .ph-stats > div.hot{flex:1.7 1 0}

/* the group's logo: the round mark in the app bar, the whole logo on the home page */
.appbar .brand .mark{width:40px;height:40px;border-radius:50%;flex:none;box-shadow:0 0 0 2px var(--hot)}
.logo-pic img{display:block;width:100%;height:auto;border-radius:0}

/* workouts asked for in the chat: the coach's yes/no, the runner's waiting line */
.rq-card h3{display:flex;align-items:center;gap:8px}
.rq{display:flex;gap:12px;align-items:flex-start;padding:12px 0;border-top:1px solid var(--line)}
.rq:first-of-type{border-top:0}
.rq-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.rq-w{margin:0;display:flex;flex-direction:column;gap:2px;background:var(--surface-2);border-radius:12px;padding:10px 12px}
.rq-w b{font-size:1.05rem}
.rq-parts{margin:0;padding-inline-start:18px;color:var(--muted);display:flex;flex-direction:column;gap:2px}
.rq-parts b{color:var(--ink);font-weight:600}
.rq-mine{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border-radius:14px;background:var(--hot-soft);margin:4px 0}
.rq-mine > div{display:flex;flex-direction:column;gap:2px}
.rq-dot{width:10px;height:10px;border-radius:50%;background:var(--hot);margin-top:6px;flex:none;animation:rqpulse 1.6s ease-out infinite}
.rq-mine.declined{background:var(--surface-2)} .rq-mine.declined .rq-dot{background:var(--muted);animation:none}
@keyframes rqpulse{0%{box-shadow:0 0 0 0 rgb(255 0 153 / .45)}100%{box-shadow:0 0 0 8px rgb(255 0 153 / 0)}}
@media (prefers-reduced-motion: reduce){.rq-dot{animation:none}}
.rq-ask{margin:0;font-style:italic;color:var(--ink)}
.rq-real{color:var(--hot-text);font-weight:600}
ol.rq-parts{padding-inline-start:20px}

/* zoom stays allowed; inputs at 16px or more so iOS does not zoom in on focus */
input,select,textarea{font-size:max(16px,1em)}

/* long names and titles (harden): never more than they need */
.ph-person h1{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.bname{min-width:0;display:flex;flex-direction:column}
.bname, .bname small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wr-main b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.rc-name,.rq-body > b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.appbar .brand{white-space:nowrap;flex:none}
.appbar .ph-who{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bname .bn{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}

/* communities card */
.comm-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.comm { border: 1px solid var(--line, #e5e7eb); border-radius: 12px; overflow: hidden; }
.comm.open { border-color: var(--brand, #0b1f3a); }
.comm-head { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 10px 14px; cursor: pointer; }
.comm-head b { flex: 1; }
.comm-head:focus-visible { outline: 2px solid var(--brand, #0b1f3a); outline-offset: -2px; }
.comm-chev { width: 8px; height: 8px; border-inline-end: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .5; transition: transform .15s; }
.comm.open .comm-chev { transform: rotate(-135deg); }
.comm-body { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.comm-body .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.comm-add input, .comm-body form input { flex: 1; min-width: 0; }
.danger-link { color: var(--crit, #b42318) !important; }
.comm-sub { margin: 4px 0 0; font-weight: 700; font-size: .9rem; }
.comm-chip span { margin-inline-end: 6px; font-weight: 700; opacity: .7; }
.comm-chip.on, .comm-chip.on[aria-pressed="true"] { background: var(--brand, #0b1f3a); color: #fff; border-color: transparent; }
.comm-chip:not(.on), .comm-chip[aria-pressed="false"] { background: transparent; border-style: dashed; }

/* ---------- as an app (App Store, or the home screen): feels native ---------- */
html.app body{overscroll-behavior-y:none;-webkit-tap-highlight-color:transparent}
html.app button,html.app .tabs,html.app .chip,html.app .phead,html.app .appbar,html.app img,html.app label{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
html.app .tabs{-webkit-backdrop-filter:saturate(1.6) blur(18px);backdrop-filter:saturate(1.6) blur(18px)}
html.app button:active,html.app .chip:active,html.app .card[data-act]:active{transform:scale(.97);transition:transform .08s ease}
html.app main.page{transition:transform .18s ease}
main.page.enter{animation:pageIn .22s cubic-bezier(.2,.8,.2,1)}
@keyframes pageIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
/* pull to refresh */
.ptr{position:fixed;top:calc(env(safe-area-inset-top,0px) - 34px);left:50%;z-index:9;width:34px;height:34px;border-radius:50%;background:var(--surface);box-shadow:0 4px 14px rgb(0 0 0 / .18);display:grid;place-items:center;opacity:0;transform:translate(-50%,0);transition:opacity .15s}
.ptr.on{opacity:1}
.ptr span{width:16px;height:16px;border-radius:50%;border:2.5px solid var(--line);border-top-color:var(--brand)}
.ptr.ready span{border-color:var(--brand);border-top-color:transparent}
.ptr.spin{transition:transform .2s ease,opacity .15s}
.ptr.spin span{animation:ptrSpin .7s linear infinite}
@keyframes ptrSpin{to{transform:rotate(360deg)}}
/* loading: the shape of the page */
.skel .sk{border-radius:var(--r);background:linear-gradient(90deg,var(--surface-2) 25%,var(--surface) 50%,var(--surface-2) 75%);background-size:200% 100%;animation:skShine 1.2s ease-in-out infinite}
.skel .sk-head{height:120px}.skel .sk-card{height:150px}.skel .sk-card.short{height:90px}
@keyframes skShine{from{background-position:200% 0}to{background-position:-200% 0}}
@media (prefers-reduced-motion: reduce){main.page.enter,.skel .sk,.ptr.spin span{animation:none}html.app main.page{transition:none}}

/* ---------- the entry: a welcome screen with two doors, then sign-in or sign-up, each on its own screen ---------- */
.entry,.auth{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
.entry{position:relative;overflow:hidden;justify-content:space-between;gap:28px;
  padding:calc(env(safe-area-inset-top,0px) + 36px) 22px calc(env(safe-area-inset-bottom,0px) + 28px)}
.en-logo{animation:enIn .5s cubic-bezier(.2,.8,.2,1) both}
.en-logo img{display:block;width:100%;height:auto}
.en-bottom{width:100%;max-width:420px;margin:0 auto;display:flex;flex-direction:column;gap:12px;text-align:center;animation:enIn .5s .08s cubic-bezier(.2,.8,.2,1) both}
.en-title{margin:0;letter-spacing:-.02em;line-height:1.05}
.en-title em{font-style:normal;color:var(--hot)}
.en-sub{margin:0 0 14px;font-size:1.03rem;line-height:1.5}
.entry .btn.big{width:100%;min-height:56px;font-size:1.12rem;border-radius:16px}
@keyframes enIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}

.auth{
  padding:calc(env(safe-area-inset-top,0px) + 12px) 16px calc(env(safe-area-inset-bottom,0px) + 28px)}
.auth > *{width:100%;max-width:460px;margin-inline:auto}
.au-bar{display:flex;align-items:center;gap:10px;min-height:48px}
.au-back{all:unset;box-sizing:border-box;flex:none;width:44px;height:44px;display:grid;place-items:center;border-radius:50%;cursor:pointer}
.au-back:focus-visible{outline:2px solid var(--hot);outline-offset:2px}
.au-bar .brand{margin-inline-start:auto;display:flex;align-items:center;gap:8px;font-size:1.05rem;font-weight:900;color:#fff;white-space:nowrap}
.au-bar .mark{width:32px;height:32px;border-radius:50%;box-shadow:0 0 0 2px var(--hot)}
.au-head{padding:18px 4px 24px;color:#fff}
.au-head h1{margin:0;font-size:2.1rem;letter-spacing:-.02em;color:#fff}
.au-head p{margin:6px 0 0}
.au-card{border-radius:22px;padding:22px 18px;animation:enIn .35s cubic-bezier(.2,.8,.2,1) both}
.au-card input{min-height:50px;border-radius:12px}
.au-card input:focus{outline:none;border-color:var(--hot);box-shadow:0 0 0 3px var(--hot-soft)}
.au-card .btn.big{width:100%;min-height:54px;font-size:1.08rem;border-radius:14px;margin-top:4px}
.au-forgot{align-self:center}
.au-switch{text-align:center;margin-top:18px;color:var(--muted)}
.linkbtn{all:unset;cursor:pointer;color:var(--hot-text);padding:10px 4px}
.linkbtn:focus-visible{outline:2px solid var(--hot);border-radius:6px}
@media (prefers-reduced-motion: reduce){.en-logo,.en-bottom,.au-card{animation:none}}

/* ---------- a run as the watch's app shows it: the route on a map, the laps with a bar each (runviz.js) ---------- */
.rmap{position:relative;width:100%;aspect-ratio:600/320;border-radius:16px;overflow:hidden;background:#e8eef3;margin:10px 0;border:1px solid var(--line)}
.rmap:not(.big){aspect-ratio:600/260}
.rm-tiles{position:absolute;inset:0}
.rm-tiles img{position:absolute;max-width:none;user-select:none;-webkit-user-drag:none}
.rmap svg{position:absolute;inset:0;width:100%;height:100%}
.rm-casing{fill:none;stroke:#fff;stroke-width:9;stroke-linecap:round;stroke-linejoin:round;opacity:.9}
.rm-line{fill:none;stroke-width:5;stroke-linecap:round;stroke-linejoin:round}
.rm-start{fill:#13C39A;stroke:#fff;stroke-width:3}
.rm-end{stroke:#fff;stroke-width:3;fill:#15151B}
.rm-credit{position:absolute;inset-inline-end:6px;bottom:4px;font-size:.62rem;color:#555;background:rgb(255 255 255 / .75);padding:1px 5px;border-radius:5px;direction:ltr}

.rprev{all:unset;box-sizing:border-box;display:block;width:100%;cursor:pointer;margin-top:8px;border-radius:16px}
.rprev:focus-visible{outline:2px solid var(--hot);outline-offset:2px}
.rprev .rmap{margin:0 0 6px}
.rprev-laps{display:flex;align-items:flex-end;gap:10px;padding:8px 10px;border-radius:12px;background:var(--bg);border:1px solid var(--line)}
.rprev-laps .small{white-space:nowrap;color:var(--hot-text);font-weight:700}
.lstrip{flex:1;display:flex;align-items:flex-end;gap:3px;height:38px}
.lstrip i{flex:1;min-width:3px;max-width:18px;height:var(--h);border-radius:3px 3px 1px 1px;background:color-mix(in srgb,var(--hot) 45%,transparent)}
.lstrip i.best{background:var(--hot)}

.laps{margin:12px 0 4px}
.laps-h{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:6px}
.laps table{width:100%;border-collapse:collapse;font-size:.9rem}
.laps th{font-weight:600;font-size:.75rem;color:var(--muted);text-align:start;padding:4px 6px;border-bottom:1px solid var(--line)}
.laps td{padding:6px;border-bottom:1px solid var(--line);white-space:nowrap}
.laps tr:last-child td{border-bottom:0}
.laps th.lp-pace,.laps td.lp-pace{width:46%}
.lp-bar{display:flex;align-items:center;height:24px;width:var(--w);min-width:52px;border-radius:7px;padding-inline:8px;box-sizing:border-box;background:color-mix(in srgb,var(--hot) 22%,transparent)}
.lp-bar b{font-weight:700}
.laps tr.best .lp-bar{background:var(--hot)}
.laps tr.best td:first-child::after{content:" ⚡"}

.run-sheet h2{margin:0;font-size:1.35rem}
.run-sheet .rmap{margin-top:12px}
.lp-bar.part{width:auto;background:transparent;color:var(--muted)}

/* Reporting and blocking (App Store guideline 1.2): small, quiet links on others' content; the coach's list in ניהול */
.rc-flag,.rx-flag{background:none;border:0;padding:4px 2px;font:inherit;font-size:.78rem;color:var(--muted);cursor:pointer;min-height:28px}
.rc-flag{align-self:flex-start;margin-top:-2px}
.rc-flag:hover,.rx-flag:hover{color:var(--crit);text-decoration:underline}
.flag-reasons{display:flex;flex-direction:column;gap:6px}
.flag-r{display:flex;align-items:center;gap:8px;font-size:.92rem;cursor:pointer}
.flag-r input{width:auto;min-height:0;margin:0}
.flag-row{border-top:1px solid var(--line);padding-top:10px;display:flex;flex-direction:column;gap:4px}
.flag-row p{margin:0}
.pf-safety{display:flex;flex-direction:column;gap:6px}
.au-terms{line-height:1.5;margin:0}

/* ---------- the group tab: one navy stage that continues the app bar (no white boxes on top) ---------- */
.phead.ph-group{gap:18px;overflow:hidden}
.gh-stats{display:flex;margin:0;gap:0}
.gh-stats > div{flex:1 1 0;min-width:0;padding-inline:14px;border-inline-start:1px solid rgb(255 255 255 / .14)}
.gh-stats > div:first-child{padding-inline-start:0;border-inline-start:0}
.gh-stats dt{font-size:.74rem;white-space:nowrap}
.gh-stats dd{margin:2px 0 0;line-height:1.1;white-space:nowrap}
.gh-stats dd small{font-size:.9rem;opacity:.55;font-weight:600}
/* segmented filters on the navy: one quiet track, the picked one lit */
.gseg{display:flex;gap:4px;padding:4px;border-radius:14px;overflow-x:auto;scrollbar-width:none}
.gseg::-webkit-scrollbar{display:none}
.gseg-b{flex:1 0 auto;min-height:40px;padding:6px 14px;border:0;border-radius:10px;background:transparent;font:inherit;font-size:.9rem;cursor:pointer;white-space:nowrap}
.gseg-b:focus-visible{outline:2px solid var(--hot);outline-offset:1px}
.gseg.gseg-sm{padding:0;gap:6px;margin-top:-8px}
.gseg.gseg-sm .gseg-b{flex:0 0 auto;min-height:34px;padding:4px 12px;font-size:.82rem;border:1px solid rgb(255 255 255 / .18)}
.gseg.gseg-sm .gseg-b[aria-pressed="true"]{border-color:transparent}
/* the stage: 2nd · 1st · 3rd, standing on steps */
.stage{display:grid;grid-template-columns:1fr 1.1fr 1fr;align-items:end;gap:8px;margin-top:4px}
.stg{display:flex;flex-direction:column;align-items:center;gap:3px;min-width:0;padding:0;background:none;border:0;font:inherit;cursor:pointer;text-align:center}
.stg-1{order:2} .stg-2{order:1} .stg-3{order:3}
.stg-ava{position:relative;margin-bottom:4px}
.stg .ava{width:52px;height:52px;font-size:1rem}
.stg-1 .ava{width:66px;height:66px;font-size:1.2rem}
.stg-medal{position:absolute;inset-block-end:-6px;inset-inline-start:50%;transform:translateX(50%);width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-size:.72rem;font-weight:900}
.stg-name{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.95rem}
.stg-km{font-size:.8rem;color:rgb(255 255 255 / .7);font-weight:600}
.stg-block{align-self:stretch;margin-top:8px;border-radius:12px 12px 0 0;display:flex;align-items:flex-start;justify-content:center;padding-top:10px}
.stg-1 .stg-block{height:74px}
.stg-2 .stg-block{height:52px} .stg-3 .stg-block{height:38px}
.stg-score{font-size:.74rem;font-weight:700;opacity:.9}
.gh-empty{margin:0 0 22px;color:rgb(255 255 255 / .7);font-size:.95rem}
/* the table under the stage: a plain list, no box */
.board.gboard{background:none;border:0;padding:0 2px}
.board.gboard .brow{padding:10px 0}
/* last place of a community: "קנוס" in red instead of the number */
.brank.fined{width:auto;min-width:1.6em;padding:2px 7px;border-radius:99px;background:#B3261E;color:#fff;font-size:.72rem;font-weight:800;letter-spacing:.02em}
.brow.is-fined .bn{color:var(--crit)}
/* which workout a run is */
.pick-card{border-color:var(--hot);box-shadow:0 0 0 1px var(--hot)}
.pick-head{display:flex;gap:10px;align-items:flex-start;margin-bottom:10px}
.pick-head h3{margin:0 0 2px}
.pick-dot{flex:none;width:10px;height:10px;margin-top:7px;border-radius:50%;background:var(--hot)}
.pick-list{display:flex;flex-direction:column;gap:6px;margin-top:10px}
.pick-opt{display:flex;align-items:center;gap:10px;width:100%;min-height:52px;padding:8px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);font:inherit;text-align:start;cursor:pointer}
.pick-opt[aria-pressed="true"]{border-color:var(--ink);box-shadow:0 0 0 1px var(--ink)}
.pick-opt:disabled{opacity:.55}
.pick-opt svg{width:20px;height:20px;flex:none}
.pick-n{flex:none;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--surface-2);font-weight:800;font-size:.85rem}
.pick-main{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25}
.pick-main small{color:var(--muted);font-size:.78rem}
.move-run{align-self:flex-start;margin-top:8px}
.score-rules ul{margin:6px 0;padding-inline-start:18px;display:flex;flex-direction:column;gap:4px}

/* the story picture's sheet */
.story-sheet{display:flex;flex-direction:column;gap:12px;align-items:stretch}
.story-sheet h2{margin:0;font-size:1.35rem}
.story-img{display:block;width:min(100%,280px);aspect-ratio:9/16;margin:0 auto;border-radius:18px;box-shadow:0 10px 30px rgb(12 20 48 / .28)}
.story-sheet .ds-actions{flex-wrap:wrap}

/* ================= The look, 2026-11-19: clean =================
   White ground, light-grey boxes with soft corners, one dark pink for "now", "done" and the main action,
   everything else ink and grey. One font (Rubik), at most medium-bold: the order comes from size and space,
   not from heavy weights. Rubik is loaded only up to 600, so every 700-900 left above draws at 600. */
/* 2026-11-19, take 2: one theme only, dark navy (the logo's ink) as the ground, white text, the same pink */
:root,:root:not(#x){
  --bg:#0D1630; --surface:#0D1630; --surface-2:#17234A; --ink:#F3F5FB; --muted:#A4AECB; --line:#223161;
  --brand:#F3F5FB; --brand-ink:#0D1630; --brand-soft:#17234A; --brand-fg:#F3F5FB;
  --hot:#E8317A; --hot-ink:#FFFFFF; --hot-soft:#3A1A45; --hot-text:#FF73A8;
  --tq:#E8317A; --tq-text:#FF73A8; --tq-soft:#3A1A45;
  --good:#FF73A8; --warn:#E3B05A; --crit:#FF7A6E;
  --k-easy:#FF73A8; --k-long:#F3F5FB; --k-tempo:#FF73A8; --k-interval:#FF73A8; --k-strength:#A4AECB; --k-rest:#7F89A6;
  --r:20px;
  color-scheme:dark;--font:"IBM Plex Sans Hebrew","Segoe UI",Arial,sans-serif;--display:"Secular One","IBM Plex Sans Hebrew",sans-serif;
}

body{font-family:var(--font);background:var(--bg)}
h1,h2,h3{font-weight:600;letter-spacing:-.01em}
h3,.pbody h3{font-size:1.15rem;font-weight:500}
.num{font-family:var(--font);font-variant-numeric:tabular-nums}

/* the top: white, the name in ink, the logo as drawn (no ring around it) */
.appbar{background:var(--bg);color:var(--ink);padding-top:calc(14px + env(safe-area-inset-top,0px));padding-bottom:6px}
.appbar .brand{color:var(--ink);font-weight:600;font-size:1.1rem}
.appbar .brand em{color:var(--hot)}
.appbar .brand .mark,.au-bar .mark{box-shadow:none}
.appbar .ph-who{color:var(--muted);font-weight:400}
.ph-out{border-color:var(--line);color:var(--ink);font-weight:500}
.phead{padding:14px 4px 4px}
.phead h1,.ph-home h1{font-weight:600;letter-spacing:-.015em;line-height:1.15}
.ph-small h1,.ph-person h1{font-size:1.6rem}
.ph-home h1 small{font-size:.95rem;font-weight:400}
.ph-text .ph-eyebrow{font-size:.92rem;font-weight:400;color:var(--muted)}
.ph-left{font-size:1.1rem;font-weight:500}
.ph-cheer{font-weight:400;color:var(--hot-text)}
.ph-back{color:var(--muted);font-weight:500}
.pbody{gap:26px;padding-top:22px}

/* the seven days: grey track, done days filled pink, today ringed */
.hw-days{background:var(--surface-2);border:0;border-radius:22px;padding:14px 6px}
.hw-day{color:var(--muted);font-weight:400;font-size:.78rem}
.hw-day b{width:38px;height:38px;background:var(--bg);color:var(--ink);font-weight:500}
.hw-day.is-ran b,.hw-day.is-today.is-ran b{background:var(--hot);color:#fff;border:0}
.hw-day.is-today{color:var(--hot-text);font-weight:500}
.hw-day.is-today b{border:2px solid var(--hot);color:var(--hot-text)}
@media (prefers-color-scheme: dark){.hw-day.is-ran b{background:var(--hot);color:#fff}}

/* boxes: grey, no border, soft corners */
.card{background:var(--surface-2);border:0;border-radius:22px;padding:18px}
.card input,.card select,.card textarea{background:var(--bg);border-color:transparent}
.card.warn{background:var(--hot-soft)}
.board{background:none;border:0;padding:0}
.report-box{background:var(--surface-2);border-radius:22px}
.coach-fb,.coach-note,.rq-w{background:var(--surface-2);border:0;border-radius:18px}
.ph-stats > div{background:var(--surface-2);border:0;border-radius:18px;padding:12px 14px}
/* my profile: the totals as one strip split by thin lines; the records as a plain list (not a second set of boxes) */
.ph-profile .ph-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;background:var(--surface-2);border-radius:20px;padding:16px 0}
.ph-profile .ph-stats > div{background:none;border-radius:0;padding:0 12px;border-inline-start:1px solid var(--line);align-items:center;text-align:center}
.ph-profile .ph-stats > div:first-child{border-inline-start:0}
.ph-profile .ph-stats b{font-size:1.5rem}
.ph-profile .ph-stats span{font-size:.8rem}
.ph-person{gap:18px}
.pf-pr-grid{display:flex;flex-direction:column;gap:0;margin-top:10px;background:var(--surface-2);border-radius:20px;padding:4px 16px}
.pf-pr-grid div,.pf-pr-grid .empty{flex-direction:row;justify-content:space-between;align-items:center;background:none;border:0;border-radius:0;padding:14px 0;border-top:1px solid var(--line);text-align:start}
.pf-pr-grid div:first-child{border-top:0}
.pf-pr-grid span{order:1;font-size:1rem;color:var(--ink)}
.pf-pr-grid b{order:2;font-size:1.15rem;font-weight:500;color:var(--ink)}
.pf-pr-grid .empty b{color:var(--muted)}
.ph-stats b{font-weight:500;font-size:1.25rem}
.ph-stats span{font-size:.78rem}
.pod,.pod.p1{background:var(--surface-2);border:0;border-radius:20px}
.logo-pic{background:#fff;border:0;padding:14px;border-radius:22px}
.home-pic{border-radius:22px}

/* buttons and chips */
.btn{border-radius:16px;font-weight:500;border-color:transparent;background:var(--surface-2)}
.btn.primary{background:var(--hot);border-color:var(--hot);color:#fff;font-weight:500}
.btn.ghost{background:none}
.btn.big{min-height:54px}
.btn.dark,.wp-actions .watch-cta,.wp-actions .watch-cta.btn.dark{background:var(--surface-2);color:var(--ink);border:0}
.chip{border:1px solid var(--line);border-radius:99px;background:var(--bg);font-weight:400}
.chip[aria-pressed="true"],.comm-chip.on,.comm-chip.on[aria-pressed="true"]{background:var(--hot);border-color:var(--hot);color:#fff}
@media (prefers-color-scheme: dark){.chip{border-color:var(--line)}.chip[aria-pressed="true"]{color:#fff}}
.pill{font-weight:500}
input,select,textarea{border-radius:14px;border-color:var(--line)}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--hot);box-shadow:0 0 0 3px var(--hot-soft)}

/* lists */
.wr-main b{font-weight:500;font-size:1.05rem}
.wr-kind{font-weight:400}
.witem.is-done .wr-mark{background:var(--hot);color:#fff}
.ava,.ava.g0,.ava.g1,.ava.g2,.ava.g3,.ava.g4,.ava.g5,.ava.g6,.ava.g7{background:var(--hot-soft);color:var(--hot-text);font-weight:500}
.bbar i{background:var(--hot);opacity:1}
.pod-medal,.pod.p1 .pod-medal{box-shadow:0 0 0 1.5px var(--hot)}

/* a workout's page: a grey box instead of the dark block */
.wp-hero,.wpage.k-long .wp-hero,.wpage.k-tempo .wp-hero,.wpage.k-interval .wp-hero,.wpage.is-event .wp-hero{background:var(--surface-2);color:var(--ink);box-shadow:none;border-radius:22px}
.wp-hero h1{font-weight:600;font-size:1.8rem}
.wp-hero .pill{background:var(--hot-soft);color:var(--hot-text)}
.wp-hero .stat,.wp-hero .stat.hot{background:var(--bg)}
.wp-hero .stat span{color:var(--muted);opacity:1}
.wp-hero .stat.hot b{color:var(--hot-text)}
.zbar i{background:var(--line)}

/* the tab bar: white, the current one pink, the report button a pink rounded square */
.tabs{background:var(--bg);border-top:1px solid var(--line)}
html.app .tabs{background:color-mix(in srgb,var(--bg) 88%,transparent)}
.tabs button{color:var(--muted);font-weight:400}
.tabs button[aria-current="true"]{color:var(--hot);font-weight:500}
.tab-report span{width:52px;height:52px;margin-top:-18px;border-radius:18px;background:var(--hot);box-shadow:none;border:0}
.tab-report span svg.glasses{width:36px}

/* the AI chat */
.chat-ava{background:var(--hot-soft);color:var(--hot-text);font-weight:600}
.cm-me{background:var(--hot);color:#fff}
.chat-in{background:var(--surface-2)}

/* the group: a light pink stage instead of the dark one */
.phead.ph-group{background:var(--hot-soft);color:var(--ink);margin-inline:0;border-radius:24px;padding:18px 18px 0;margin-top:10px}
.ph-group h1{color:var(--ink);font-size:1.7rem}
.ph-group .ph-text .ph-eyebrow{color:var(--muted)}
.gh-stats > div{border-inline-start-color:rgb(255 255 255 / .12)}
.gh-stats dt{color:var(--muted);font-weight:400}
.gh-stats dd{color:var(--ink);font-weight:500;font-size:1.45rem}
.gh-stats > div:first-child dd{color:var(--hot-text)}
.gseg{background:var(--bg)}
.gseg-b{color:var(--muted);font-weight:500}
.gseg-b[aria-pressed="true"]{background:var(--hot);color:#fff}
.gseg.gseg-sm{background:transparent}
.gseg.gseg-sm .gseg-b{border-color:rgb(255 255 255 / .16);color:var(--ink)}
.gseg.gseg-sm .gseg-b[aria-pressed="true"]{background:var(--ink);color:var(--bg)}
.stg{color:var(--ink)}
.stg .ava{background:var(--bg);color:var(--ink);box-shadow:0 0 0 3px var(--hot-soft),0 0 0 5px rgb(255 255 255 / .14)}
.stg-1 .ava{background:var(--hot);color:#fff;box-shadow:0 0 0 3px var(--hot-soft),0 0 0 5px var(--hot)}
.stg-medal{background:var(--bg);color:var(--ink);box-shadow:0 0 0 2px var(--hot-soft)}
.stg-1 .stg-medal{background:var(--ink);color:var(--bg)}
.stg-km,.gh-empty{color:var(--muted)}
.stg-score{color:var(--ink)}
.stg-block{background:rgb(255 255 255 / .06)}
.stg-1 .stg-block{background:rgb(255 255 255 / .12)}
@media (prefers-color-scheme: dark){.gseg-b[aria-pressed="true"]{color:#fff}.stg-block,.stg-1 .stg-block{background:rgb(255 255 255 / .06)}.gseg.gseg-sm .gseg-b{border-color:rgb(255 255 255 / .14)}}

/* the run's route */
.rm-line{stroke:var(--hot)}
.laps tr.best .lp-bar{color:#fff}

/* the entry and sign-in: light, the logo as drawn */
.entry{background:var(--bg);color:var(--ink)}
/* the welcome screen: navy, the logo on a white card in the middle, the words and the two doors under it */
.en-logo{margin:auto;width:min(60vw,240px);padding:14px;border-radius:28px;background:#fff;box-shadow:0 18px 40px rgb(0 0 0 / .35)}
.en-title{font-size:2.2rem;color:var(--ink);font-weight:600}
.en-sub{color:var(--muted)}
.entry .btn.primary{box-shadow:none}
.btn.on-dark{background:var(--surface-2);border:0;color:var(--ink)}
.btn.on-dark:hover{background:var(--line)}
.auth{background:var(--bg)}
.au-back{color:var(--ink);background:var(--surface-2)}
.au-bar .brand,.au-head,.au-head h1{color:var(--ink)}
.au-head h1{font-weight:600}
.au-head p{color:var(--muted)}
.au-card{border:0;box-shadow:none;background:var(--surface-2)}
.au-card input{background:var(--bg);border-color:transparent}
.linkbtn{font-weight:500}

/* the type, take 2: IBM Plex Sans Hebrew for reading (engineered, not the usual rounded app font),
   Secular One for headlines and the big numbers (a sporty Israeli display face; it has one weight, already bold) */
h1,h2,.phead h1,.ph-home h1,.wp-hero h1,.en-title,.au-head h1,.appbar .brand,.au-bar .brand,
.ph-stats b,.gh-stats dd,.pf-pr-grid b,.stg-name,.ds-top h2{font-family:var(--display);font-weight:400;letter-spacing:0}
.phead h1,.ph-home h1{font-size:2rem}
h1 .num,h2 .num,.ph-stats b.num,.pf-pr-grid b.num,.gh-stats dd .num{font-family:var(--display);font-weight:400}

/* ===== the terms at sign-up: the document in its own box (no need to scroll to its end), the three approvals under it ===== */
.terms{display:flex;flex-direction:column;gap:10px;margin-top:4px}
.terms-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.terms-head b{font-family:var(--display);font-weight:400;font-size:1.08rem}
.terms-head a{color:var(--hot-text);font-size:.9rem;font-weight:600;text-decoration:none;min-height:24px;display:inline-flex;align-items:center}
.terms-doc{max-height:min(38vh,320px);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
  background:var(--bg);border-radius:14px;padding:14px 16px;font-size:.86rem;line-height:1.65;color:var(--muted);
  -webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(to bottom,#000 calc(100% - 28px),transparent)}
.terms-doc:focus-visible{outline:2px solid var(--hot);outline-offset:2px}
.terms-doc h1{font-family:var(--display);font-weight:400;font-size:1.05rem;color:var(--ink);margin:0 0 6px}
.terms-doc h2{font-family:var(--display);font-weight:400;font-size:.98rem;color:var(--ink);margin:16px 0 4px}
.terms-doc h3{font-size:.9rem;color:var(--ink);margin:12px 0 2px}
.terms-doc p{margin:0 0 6px}
.terms-hint{font-size:.82rem;color:var(--muted);margin:0}
.terms-ok{display:flex;flex-direction:column;gap:6px}
.au-card .terms-ok .check,.terms-ok .check{flex-direction:row;align-items:flex-start;gap:12px;padding:10px 12px;border-radius:12px;background:var(--bg);font-size:.88rem;line-height:1.5;min-height:44px}
.au-card .terms-ok .check input{width:22px;height:22px;min-height:0;margin:1px 0 0;flex:none;border-radius:6px;accent-color:var(--hot);background:none}
.terms-ok .check:has(input:checked){box-shadow:inset 0 0 0 1.5px var(--hot)}

/* home, the last days of the free weeks */
.trial-bar{display:flex;flex-direction:column;gap:2px;padding:12px 16px;border-radius:16px;background:var(--hot-soft);color:var(--hot-text)}
.trial-bar b{font-size:1rem}
.trial-bar span{font-size:.88rem;color:var(--ink)}
/* the AI box at sign-up (not required), and the line in place of the chat without AI */
.terms-ai{margin-top:-4px}
.terms-ok .check i{font-style:normal;color:var(--muted)}
.chat-off{margin:0;padding:12px 16px;border-radius:14px;background:var(--surface-2)}

/* ===== home: the group's values, between the week and the chat ===== */
.values{position:relative;overflow:hidden;border-radius:22px;padding:22px 20px 18px;color:#fff;
  background:radial-gradient(120% 90% at 100% 0%,rgba(232,49,122,.28) 0%,rgba(232,49,122,0) 60%),linear-gradient(160deg,#16224A 0%,#0D1630 100%);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.06)}
.values::after{content:"";position:absolute;inset-inline-start:-40px;bottom:-60px;width:180px;height:180px;border-radius:50%;
  background:radial-gradient(circle,rgba(255,115,168,.16),rgba(255,115,168,0) 70%);pointer-events:none}
.vl-eyebrow{display:inline-block;font-size:.78rem;font-weight:600;letter-spacing:.04em;color:#FF9CC2;background:rgba(232,49,122,.18);padding:4px 10px;border-radius:99px}
.vl-motto{margin:12px 0 16px;font-family:var(--display);font-weight:400;font-size:1.65rem;line-height:1.15;color:#fff}
.vl-motto em{font-style:normal;color:#FF73A8}
.vl-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px;counter-reset:vl}
.vl-list li{counter-increment:vl;position:relative;display:flex;gap:12px;align-items:flex-start;font-size:.92rem;line-height:1.5;color:#E6EAF5}
.vl-list li::before{content:counter(vl);flex:none;width:26px;height:26px;margin-top:-1px;border-radius:50%;display:grid;place-items:center;
  font-family:var(--display);font-size:.9rem;color:#fff;background:#E8317A;box-shadow:0 4px 12px rgba(232,49,122,.35)}
/* the story button on my own runs (the group feed and my profile) */
.rc-story{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:6px 14px;border-radius:99px;border:0;cursor:pointer;
  font:inherit;font-size:.86rem;font-weight:600;color:#fff;background:linear-gradient(135deg,#E8317A,#B5407A);box-shadow:0 4px 14px rgba(232,49,122,.3)}
.rc-story:disabled{opacity:.6}
.pr-story{margin:-4px 0 8px;margin-inline-start:auto;display:flex}
/* reactions: who gave each emoji, and the bigger emoji picker (wraps in rows) */
.rx-who{display:flex;flex-wrap:wrap;gap:4px 14px;margin:6px 0 0;font-size:.82rem;color:var(--muted);line-height:1.5}
.rx-who b{font-weight:400;margin-inline-end:2px}
.rx-who .linkish{color:var(--ink);font-size:inherit;text-decoration:none;min-height:24px}
.rx-quick{display:flex;flex-wrap:wrap;gap:6px}
.rx-line{overflow-wrap:anywhere}

/* ===== design pass 2026-11-22: lighter cards ===== */
/* the values fold to the motto after the first time; a tap opens them */
details.values > summary{list-style:none;cursor:pointer;display:block;position:relative}
details.values > summary::-webkit-details-marker{display:none}
.vl-more{position:absolute;top:2px;inset-inline-end:0;width:28px;height:28px;border-radius:50%;background:rgba(255,255,255,.1)}
.vl-more::before{content:"";position:absolute;inset:0;margin:auto;width:8px;height:8px;border:solid #fff;border-width:0 2px 2px 0;transform:translateY(-2px) rotate(45deg);transition:transform .2s}
details.values[open] .vl-more::before{transform:translateY(2px) rotate(-135deg)}
details.values:not([open]) .vl-motto{margin-bottom:0}
/* the report flag: a small ⋯ in the card's corner */
.rc-more{flex:none;width:32px;height:32px;margin-inline-start:-4px;border:0;border-radius:50%;background:none;color:var(--muted);font:inherit;font-size:1.2rem;line-height:1;cursor:pointer}
.rc-more:hover{background:var(--surface-2);color:var(--ink)}
/* the watch screenshot: a small picture with its label, a tap opens it */
.rc-shot{display:inline-flex;align-items:center;gap:10px;width:auto;height:auto;padding:4px;padding-inline-end:12px;border:1px solid var(--line);background:var(--surface);align-self:flex-start}
.rc-shot img{width:44px;height:44px;border-radius:8px;flex:none}
.rc-shot > span{position:static;background:none;color:var(--ink);padding:0;font-size:.82rem}
/* rings in lists: smaller */
.ring.sm{width:36px;height:36px}.ring.sm b{width:28px;height:28px;font-size:.8rem}
/* who already did this workout: one line each */
.same-list{display:flex;flex-direction:column;gap:6px}
.same-row{display:flex;align-items:center;gap:10px;width:100%;padding:8px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);font:inherit;text-align:start;cursor:pointer}
.same-row:active{transform:scale(.99)}
.same-row .ava{width:34px;height:34px;flex:none;font-size:.8rem}
.same-main{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.3}
.same-main small{color:var(--muted);font-size:.8rem}
/* which workout: small buttons, two in a row */
.pick-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.pick-list .pick-opt{min-width:0}
.pick-opt{min-height:44px;padding:6px 10px;gap:8px}
.pick-opt .pick-n{width:24px;height:24px;font-size:.78rem}
.pick-main b{font-size:.86rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* profile: the story as a small icon beside the run */
.pr-wrap{display:flex;align-items:center;gap:6px}
.pr-wrap > .prow{flex:1;min-width:0}
.pr-story{flex:none;width:40px;height:40px;margin:0;border:1px solid var(--line);border-radius:12px;background:var(--surface);font-size:1.05rem;cursor:pointer;display:grid;place-items:center}
.pr-story:disabled{opacity:.5}

/* ===== birthdays (2026-11-23) ===== */
.date-in{font:inherit;min-height:44px}
.form label small{display:block;margin-top:4px;font-weight:400}
.bday-card{position:relative;overflow:hidden;border-radius:22px;padding:22px 20px;text-align:center;color:#fff;
  background:radial-gradient(120% 100% at 50% 0%,rgba(232,49,122,.45),rgba(232,49,122,0) 70%),linear-gradient(160deg,#16224A,#0D1630)}
.bday-card h2{margin:4px 0 2px;font-family:var(--display);font-weight:400;font-size:1.6rem;color:#fff}
.bday-card p{margin:0;color:#E6EAF5}
.bday-emoji{font-size:2.2rem;line-height:1}
.confetti{position:absolute;inset:0;pointer-events:none}
.confetti i{position:absolute;top:-12px;left:var(--x);width:7px;height:12px;border-radius:2px;background:var(--c);opacity:0;animation:conf 2.4s ease-in var(--d) 1 forwards}
@keyframes conf{0%{opacity:1;transform:translateY(0) rotate(0)}100%{opacity:0;transform:translateY(220px) rotate(540deg)}}
@media (prefers-reduced-motion:reduce){.confetti{display:none}}
.bday-ask .row{gap:8px;margin-top:8px}.bday-ask input{flex:1;min-width:0}
.bday-line{display:block;width:100%;padding:10px 14px;margin-bottom:8px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--ink);font:inherit;text-align:start;cursor:pointer}

/* ===== the web pay screen: Bit for a runner without an iPhone (2026-11-24) ===== */
.pay-bit{margin-top:14px;padding-top:14px;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:6px}
.pay-bit p{margin:0}
.bit-btn{background:#1A9DFF;color:#fff;border:0;text-align:center}

/* ---------- Tal: the coach's screens (trainees list, organized ניהול, the Friday reminder) ---------- */
.tone-good{background:var(--brand-soft);color:var(--good)} .tone-warn{background:var(--hot-soft);color:var(--hot-text)} .tone-crit{background:var(--surface-2);color:var(--crit)}
.remind{border:2px solid var(--hot);background:var(--hot-soft)} .remind h3{margin:0}
.rm-head{display:flex;gap:12px;align-items:flex-start} .rm-ico{font-size:1.6rem;line-height:1}
.tr-search{width:100%;min-height:46px;border-radius:14px;border:1px solid var(--line);background:var(--surface-2);color:var(--ink);font:inherit;padding:8px 14px;margin-bottom:10px}
.tr-list{display:flex;flex-direction:column;gap:8px;margin-top:8px}
.tr-row,.ap-head{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:10px;width:100%;min-height:60px;padding:10px 12px;cursor:pointer}
.tr-row{background:var(--surface-2);border-radius:16px}
.tr-row:focus-visible,.ap-head:focus-visible{outline:2px solid var(--hot);outline-offset:2px}
.tr-who{flex:1;min-width:0;display:flex;flex-direction:column} .tr-who b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis} .tr-who small{color:var(--muted);font-size:.78rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tr-week{display:flex;flex-direction:column;align-items:center;gap:3px;min-width:58px} .tr-week small{font-size:.75rem;color:var(--muted)}
.tr-bar{display:flex;gap:3px} .tr-bar i{width:10px;height:6px;border-radius:3px;background:var(--line)} .tr-bar i.on{background:var(--hot)}
.tr-row .pill,.ap-head .pill{white-space:nowrap}
.cb-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.cb-grid>div{background:var(--bg);border-radius:14px;padding:10px 8px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:2px}
.cb-grid b{font-size:1.15rem} .cb-grid span{font-size:.75rem;color:var(--muted)} .cb-grid .tone-good span,.cb-grid .tone-warn span{color:inherit;opacity:.85}
.cb h4,.ap-body h5{margin:6px 0 0;font-size:.95rem}
.seg{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;background:var(--surface-2);border-radius:16px;padding:4px;margin:4px 0 12px;position:sticky;top:0;z-index:3}
.seg-b{all:unset;box-sizing:border-box;text-align:center;min-height:42px;display:flex;align-items:center;justify-content:center;border-radius:12px;font-size:.88rem;cursor:pointer;color:var(--muted)}
.seg-b[aria-pressed="true"]{background:var(--hot);color:#fff;font-weight:600}
.seg-b:focus-visible{outline:2px solid var(--hot);outline-offset:1px}
.ap{border-top:1px solid var(--line)} .ap:first-of-type{border-top:0}
.ap.open .comm-chev{transform:rotate(-135deg)}
.ap-body{display:flex;flex-direction:column;gap:8px;padding:0 4px 14px}
.ap-body .days{display:flex;flex-direction:column;gap:6px}
.cb .days{display:flex;flex-direction:column;gap:6px}
.wrow.done{opacity:.85}
.gm-line{display:flex;align-items:center;gap:8px;margin:2px 0}

/* the goal card (Tal) */
.goal-card .goal-race{font-size:1.35rem;margin:0}
.goal-grid .tone-warn b{color:inherit}
.goal-gap{background:var(--bg);border-radius:12px;padding:8px 12px}
