/* Screen layouts: home, routine detail, sign-in, splash. */

/* ---------- home ---------- */
.top{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px}
.brand{display:flex;align-items:center;gap:8px;font-family:var(--display);font-weight:800;font-size:1.1rem}
.brand svg{width:26px;height:26px}
.week{margin-top:22px;background:var(--yellow);border:var(--line) solid var(--ink);border-radius:24px;padding:18px 20px 20px;box-shadow:4px 5px 0 var(--ink)}
.week .label{color:var(--ink)}
.week-stats{display:flex;gap:28px;margin:6px 0 14px}
.week-stat b{display:block;font-family:var(--display);font-weight:800;font-size:2.2rem;line-height:1}
.week-stat span{font-size:.92rem;font-weight:600}

.section-head{display:flex;align-items:baseline;justify-content:space-between;margin:34px 0 14px}
.list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:14px}

.rcard{display:flex;align-items:center;gap:10px;background:var(--card);border:var(--line) solid var(--ink);border-radius:22px;box-shadow:3px 4px 0 var(--ink);padding-right:12px}
.rcard.done{background:#E3F7F3;box-shadow:none}
.rcard-open{flex:1;min-width:0;display:flex;align-items:center;gap:14px;text-align:left;padding:16px 4px 16px 18px}
.rcard-text{flex:1;min-width:0}
.rcard h3{font-size:1.35rem;font-weight:800;overflow-wrap:anywhere}
.rcard .meta{margin:2px 0 0;color:var(--muted);font-size:.92rem}
.rcard .mini{margin-top:10px;height:10px;border:2px solid var(--ink);border-radius:99px;overflow:hidden;background:var(--bg)}
.rcard .mini span{display:block;height:100%;background:var(--orange)}
.badge{flex:none;display:grid;place-items:center;min-width:56px;height:56px;padding:0 6px;border:var(--line) solid var(--ink);border-radius:18px;background:var(--bg);font-family:var(--display);font-weight:800;font-size:1.05rem}
.rcard.done .badge{background:var(--teal)}
.badge svg{width:26px;height:26px}
.rcard.pop{animation:pop .6s cubic-bezier(.2,1.6,.4,1)}
.act{display:flex;align-items:center;gap:10px;background:var(--card);border:var(--line) solid var(--ink);border-radius:20px;padding:14px 12px 14px 16px}
.act-main{flex:1;min-width:0;display:flex;align-items:center;gap:14px;text-align:left}
.act-icon{flex:none;width:46px;height:46px;border-radius:14px;border:var(--line) solid var(--ink);background:var(--yellow);display:grid;place-items:center;font-family:var(--display);font-weight:800;font-size:1.3rem;text-transform:uppercase}
.act-text{flex:1;min-width:0}
.act-text b{display:block;font-family:var(--display);font-weight:800;font-size:1.12rem;line-height:1.15;overflow-wrap:anywhere}
.act-text span{display:block;color:var(--muted);font-size:.9rem}
.act-text em{display:block;font-style:normal;font-size:.9rem;margin-top:2px;overflow-wrap:anywhere}
.older{margin-top:12px;font-family:var(--display);font-weight:700;color:var(--teal-ink);padding:6px 2px}

.fab{position:fixed;right:max(20px, calc((100vw - 480px)/2 + 20px));bottom:calc(var(--tabbar-h) + 18px + env(safe-area-inset-bottom,0px));width:72px;height:72px;border-radius:50%;background:var(--orange);border:var(--line) solid var(--ink);box-shadow:4px 5px 0 var(--ink);display:grid;place-items:center;z-index:5;transition:transform .08s,box-shadow .08s}
.fab:active{transform:translate(3px,4px);box-shadow:1px 1px 0 var(--ink)}
.fab svg{width:32px;height:32px}
/* ---------- routine screen ---------- */
.topbar{display:flex;align-items:center;gap:16px;margin-bottom:30px}
.count{font-family:var(--display);font-weight:800;font-size:1.1rem}
.rhead{display:flex;align-items:flex-start;gap:8px}
.rhead>div:first-child,.rhead>.mascot+div{flex:1;min-width:0}
.rhead .ibtns{margin-top:6px}
.rhead h1{overflow-wrap:anywhere}
.banner{display:flex;align-items:center;gap:12px;margin-top:20px;padding:12px 16px;border:var(--line) solid var(--ink);border-radius:18px;background:var(--teal);font-weight:600}
.banner svg{flex:none;width:26px;height:26px}
.exlist{margin-top:26px}
.ex{background:var(--card);border:var(--line) solid var(--ink);border-radius:20px;padding:12px 14px;box-shadow:3px 4px 0 var(--ink);transition:background .2s,box-shadow .2s,opacity .2s}
.ex-row{display:flex;align-items:center;gap:12px}
.ex.done{box-shadow:none;background:transparent;opacity:.6}
.ex.done.open{opacity:1;background:var(--card)}
.check{flex:none;width:36px;height:36px;border:var(--line) solid var(--ink);border-radius:11px;background:var(--card);display:grid;place-items:center}
.check svg{width:22px;height:22px;opacity:0;transform:scale(.4);transition:opacity .15s,transform .25s cubic-bezier(.2,1.6,.4,1)}
.ex.done .check{background:var(--teal)}
.ex.done .check svg{opacity:1;transform:none}
.ex-body{flex:1;min-width:0;text-align:left;padding:2px 0}
.ex-name{display:block;font-family:var(--display);font-weight:800;font-size:1.2rem;line-height:1.15;overflow-wrap:break-word;hyphens:auto}
.ex.done .ex-name{text-decoration:line-through;text-decoration-thickness:2.5px}
.stats{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:4px;color:var(--muted);font-size:.93rem}
.stats b{color:var(--ink);font-weight:700;font-variant-numeric:tabular-nums}
.delta{font-weight:700;color:var(--teal-ink)}
.delta.down{color:var(--muted)}
.add-ex{margin-top:16px;width:100%;min-height:58px;border:var(--line) dashed var(--ink);border-radius:20px;font-family:var(--display);font-weight:800;font-size:1.1rem;display:flex;align-items:center;justify-content:center;gap:8px}
.add-ex svg{width:20px;height:20px}
.reset{display:block;margin:14px auto 0;color:var(--teal-ink)}
.ex .ibtns{margin-left:2px}
/* Partly done: the big box shows "1/3"; tapping it checks the rest. */
.ex.partial .check{background:var(--yellow)}
.check-n{font-family:var(--display);font-weight:800;font-size:.78rem;line-height:1;letter-spacing:-.02em}
.setline{color:var(--muted)}
.setline b{color:var(--ink)}
/* ---------- open exercise: one row per set ---------- */
.sets{margin-top:12px;padding-top:12px;border-top:2px dashed rgba(43,27,18,.2)}
.last{margin:0 0 10px;font-size:.88rem;color:var(--muted);line-height:1.4}
.last b{color:var(--ink);font-weight:700}
.set-head,.set{display:grid;grid-template-columns:22px minmax(0,1fr) 12px minmax(0,1.25fr) 22px 42px 30px;align-items:center;gap:6px}
.set-head{font-size:.75rem;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;padding:0 0 4px}
.set-head span:nth-child(2),.set-head span:nth-child(4){text-align:center}
.setlist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.set-n{font-family:var(--display);font-weight:800;color:var(--muted);text-align:center}
.set-in{width:100%;min-width:0;height:44px;border:2px solid var(--ink);border-radius:12px;background:var(--bg);text-align:center;font-family:var(--display);font-weight:800;font-size:1.15rem;padding:0 4px;color:var(--ink);-webkit-appearance:none;appearance:none}
.set-in:focus{outline:none;background:var(--card);box-shadow:0 0 0 3px var(--yellow)}
.set-x,.set-u{color:var(--muted);font-weight:600;text-align:center;font-size:.9rem}
.set-check{width:42px;height:42px;border:var(--line) solid var(--ink);border-radius:12px;background:var(--card);display:grid;place-items:center}
.set-check svg{width:22px;height:22px;opacity:.15;transition:opacity .15s,transform .25s cubic-bezier(.2,1.6,.4,1)}
.set.done .set-check{background:var(--teal)}
.set.done .set-check svg{opacity:1}
.set.done .set-in{background:transparent;border-color:rgba(43,27,18,.35)}
.set-del{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font-size:1.3rem;line-height:1;color:var(--muted)}
.add-set{margin-top:10px;width:100%;min-height:44px;border:2px dashed var(--ink);border-radius:14px;font-family:var(--display);font-weight:800;display:flex;align-items:center;justify-content:center;gap:6px}
.add-set svg{width:16px;height:16px}
/* ---------- auth & account ---------- */
.top-right{display:flex;align-items:center;gap:10px}
.hello-row{display:flex;align-items:center;gap:12px;margin:0 0 6px}
.hello-row .hello{margin:0}
.rhead>.mascot{align-self:center;margin-left:-4px}
.hello{margin:0 0 4px;font-family:var(--display);font-weight:700;font-size:1.1rem;color:var(--teal-ink)}
.tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:26px 0 22px;border:var(--line) solid var(--ink);border-radius:999px;background:var(--card);overflow:hidden}
.tabs.auth-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
.tabs button{padding:12px 8px;font-family:var(--display);font-weight:800;font-size:1.05rem}
.tabs button[aria-selected="true"]{background:var(--ink);color:var(--bg)}
.authform{display:flex;flex-direction:column}
.authform .btn{margin-top:6px}
#f-reset{margin-top:26px}
.pw{position:relative}
.pw .input{padding-right:58px}
.eye{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:44px;height:44px;border-radius:12px;display:grid;place-items:center;color:var(--muted)}
.eye svg{width:22px;height:22px}
.or{display:flex;align-items:center;gap:14px;margin:22px 0;color:var(--muted);font-family:var(--display);font-weight:700}
.or::before,.or::after{content:"";flex:1;height:2px;background:var(--ink);opacity:.18}
.splash{min-height:70vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;font-family:var(--display);font-weight:700;color:var(--muted)}
.splash-star{width:64px;height:64px;animation:spin 1.6s cubic-bezier(.5,0,.5,1) infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* "Verify your email" reminder on the home screen. */
.notice.verify{display:flex;flex-direction:column;gap:4px;margin:6px 0 18px}
.notice.verify b{font-family:var(--display);font-weight:800;font-size:1.05rem}
.verify-msg{font-weight:600;color:var(--teal-ink)}
.verify-actions{display:flex;gap:16px;flex-wrap:wrap}
.verify-actions .textbtn{padding:6px 0}
/* Reps-only rows: # [reps] reps ✓ × */
.t-reps .set-head,.t-reps .set{grid-template-columns:22px minmax(0,90px) 1fr 42px 30px}
.set-u.left{text-align:left}
/* Per side rows: # [L] [R] [weight] ✓ ×  and  # [L] [R] ✓ × */
.t-side .set-head,.t-side .set{grid-template-columns:22px minmax(0,1fr) minmax(0,1fr) minmax(0,1.3fr) 42px 30px}
.t-side-reps .set-head,.t-side-reps .set{grid-template-columns:22px minmax(0,80px) minmax(0,80px) 1fr 42px 30px}
.t-side .set-head span,.t-side-reps .set-head span{text-align:center}
/* Drop set: indented under its set, a little smaller. */
.set.drop{position:relative}
.set.drop .set-n{color:var(--orange);font-size:1.1rem}
.set.drop .set-in{height:40px;font-size:1.05rem;border-style:dashed}
.set.drop .set-check{width:38px;height:38px;justify-self:center}
/* + Serie / ↓ Drop */
.set-actions{display:grid;gap:8px;margin-top:10px}
.set-actions.two{grid-template-columns:1fr 1fr}
.set-actions .add-set{margin-top:0}
.add-set.drop span[aria-hidden]{font-size:1.1rem;color:var(--orange)}
/* Small phones (iPhone SE): tighter set rows so "102,5" still fits. */
@media (max-width:360px){
  .set-head,.set{grid-template-columns:16px minmax(0,1fr) 10px minmax(0,1.4fr) 18px 38px 22px;gap:4px}
  .set-in{font-size:1rem;padding:0 2px}
  .set-check{width:38px;height:38px}
  .set-u{font-size:.8rem}
  .ex-name{font-size:1.05rem}
  .ex .ex-row{gap:8px}
  .ex .ib{width:36px;height:36px}
}
/* ---------- bottom tabs (Rutinas | Progreso) ---------- */
.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:6;max-width:480px;margin:0 auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  height:calc(var(--tabbar-h) + env(safe-area-inset-bottom,0px));padding-bottom:env(safe-area-inset-bottom,0px);
  background:var(--card);border:var(--line) solid var(--ink);border-bottom:0;border-radius:24px 24px 0 0}
.tab{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-family:var(--display);font-weight:800;font-size:.85rem;color:var(--muted)}
.tab svg{width:26px;height:26px}
.tab[aria-current="page"]{color:var(--ink)}
.tab[aria-current="page"] svg{background:var(--yellow);border-radius:10px;padding:2px;width:34px;height:30px;border:2px solid var(--ink)}
.tab{position:relative}
.tab-badge{position:absolute;top:6px;left:calc(50% + 8px);min-width:20px;height:20px;padding:0 5px;border-radius:99px;background:var(--orange);color:var(--card);border:2px solid var(--ink);font-style:normal;font-size:.75rem;display:grid;place-items:center;line-height:1}
/* ---------- friends ---------- */
.fr-search{margin-top:18px;width:100%;min-height:54px;display:flex;align-items:center;gap:10px;padding:0 16px;border:var(--line) solid var(--ink);border-radius:18px;background:var(--card);color:var(--muted);font-size:1rem;text-align:left}
.fr-search svg{width:22px;height:22px;color:var(--ink)}
.fr-invite{margin-top:10px;display:inline-flex;align-items:center;gap:8px;color:var(--teal-ink);font-family:var(--display);font-weight:800}
.fr-invite svg{width:16px;height:16px}
.section-head .count{display:inline-grid;place-items:center;min-width:26px;height:26px;padding:0 6px;margin-left:6px;border-radius:99px;background:var(--yellow);border:2px solid var(--ink);font-size:.9rem;vertical-align:middle}
.people{gap:8px}
.person{display:flex;align-items:center;gap:12px;width:100%;padding:10px 12px;border:2px solid var(--ink);border-radius:18px;background:var(--card);text-align:left}
.person.tap:active{transform:translate(1px,1px)}
.person-open{flex:1;min-width:0;display:flex;align-items:center;gap:12px;text-align:left}
.pav{flex:none;width:42px;height:42px;border-radius:50%;border:2px solid var(--ink);background:var(--yellow);display:grid;place-items:center;font-family:var(--display);font-weight:800;font-size:1.15rem}
.pav.big{width:76px;height:76px;font-size:2rem}
.ptext{flex:1;min-width:0;display:flex;flex-direction:column}
.ptext b{font-family:var(--display);font-weight:800;font-size:1.02rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ptext span{color:var(--muted);font-size:.88rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pbtns{flex:none;display:flex;gap:6px}
.pbtn{min-height:38px;padding:0 14px;border:2px solid var(--ink);border-radius:99px;background:var(--card);font-family:var(--display);font-weight:800;font-size:.92rem}
.pbtn.ok{background:var(--orange);color:var(--card)}
.pbtn.icon{width:38px;padding:0;display:grid;place-items:center}
.pbtn.icon svg{width:16px;height:16px}
.pbtn:disabled{opacity:.5}
.pchip{padding:6px 12px;border-radius:99px;background:var(--teal);border:2px solid var(--ink);font-family:var(--display);font-weight:800;font-size:.85rem}
.pchev{flex:none;width:18px;height:18px;transform:rotate(180deg);color:var(--muted)}
.pchev svg{width:100%;height:100%}
.fr-empty{display:flex;align-items:center;gap:14px;padding:14px;border:2px dashed var(--ink);border-radius:20px}
.fr-empty h3{margin:0 0 4px;font-family:var(--display);font-weight:800}
.fr-empty p{margin:0;color:var(--muted);font-size:.92rem}
.fr-results{margin-top:12px;min-height:40px}
.fr-hint{margin-top:10px}
.fr-card{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;margin:4px 0 6px}
.fr-card h2{margin:8px 0 0}
.fr-card .sub{margin:0}
.fr-actions{flex-direction:column}
.fr-since{display:flex;align-items:center;justify-content:center;gap:8px;margin:0 0 6px;font-family:var(--display);font-weight:800}
.fr-since svg{width:20px;height:20px;padding:3px;border-radius:50%;background:var(--teal);border:2px solid var(--ink)}
.danger-text{color:var(--danger)}
/* friends: a friend's week (list dots + card) */
.person .ptext{flex:1;min-width:0}
.person .ptext span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mdots{flex:none;display:flex;gap:3px}
.mdots i{width:8px;height:8px;border-radius:50%;border:1.5px solid var(--ink);background:var(--card)}
.mdots i.on{background:var(--orange)}
.mdots i.today{box-shadow:0 0 0 2px var(--yellow)}
.fr-week{border:2px solid var(--ink);border-radius:20px;background:var(--card);padding:14px;margin:6px 0 12px;display:flex;flex-direction:column;gap:10px}
.fr-week-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.fr-week-head h3{margin:0}
.fr-week .week-met{margin:0}
.fr-streak{display:flex;align-items:center;gap:10px;padding-top:10px;border-top:2px dashed var(--hairline)}
.fr-streak>svg{flex:none;width:30px;height:30px}
.fr-streak>div{flex:1;min-width:0;display:flex;flex-direction:column}
.fr-streak b{font-family:var(--display);font-weight:800}
.fr-streak small{color:var(--muted)}
.fr-jokers{flex:none;display:flex;align-items:center;gap:4px;padding:4px 10px;border:2px solid var(--ink);border-radius:999px;background:var(--yellow);font-family:var(--display);font-weight:800}
.fr-jokers svg{width:18px;height:18px}
.fr-last{display:grid;grid-template-columns:1fr auto;gap:2px 8px;padding-top:10px;border-top:2px dashed var(--hairline)}
.fr-last span{grid-column:1/-1;font-size:.8rem;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;font-weight:700}
.fr-last b{font-family:var(--display);font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fr-last small{color:var(--muted)}
.fr-week-note{text-align:center;margin:4px 0 12px}
@media (max-width:359px){.mdots{display:none}}
/* friends: cheers + their routines */
.fr-cheer{display:flex;flex-direction:column;gap:8px}
.fr-cheer>span{font-size:.8rem;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;font-weight:700}
.fr-cheer small{color:var(--muted)}
.cheer-btns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.cheer-btn{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 4px;border:2px solid var(--ink);border-radius:16px;background:var(--card);font-family:var(--display);font-weight:800;font-size:.9rem;box-shadow:2px 3px 0 var(--ink)}
.cheer-btn svg{width:26px;height:26px}
.cheer-btn[aria-pressed="true"]{background:var(--orange);color:var(--ink)}
.cheer-btn:active{transform:translate(1px,1px);box-shadow:1px 2px 0 var(--ink)}
.cheer-btn.pop{animation:cheer-pop .45s cubic-bezier(.3,1.6,.5,1)}
.cheer-btn.pop svg{animation:cheer-wiggle .45s ease}
@keyframes cheer-pop{0%{transform:scale(1)}40%{transform:scale(1.12)}100%{transform:scale(1)}}
@keyframes cheer-wiggle{0%,100%{transform:rotate(0)}30%{transform:rotate(-14deg)}60%{transform:rotate(10deg)}}
@media (prefers-reduced-motion:reduce){.cheer-btn.pop,.cheer-btn.pop svg{animation:none}}
.fr-routines-box .section-head{margin-top:4px}
.fr-routines{margin-bottom:14px}
.fr-copy{display:flex;flex-direction:column;gap:6px;padding:0 14px 14px}
.fr-copy .hint{margin:0;text-align:center}
.fr-copy .fr-since{margin:0}
.cheers{gap:8px}
.cheer-item{display:flex;align-items:center;gap:12px;padding:10px 12px;border:2px solid var(--ink);border-radius:18px;background:var(--yellow-soft)}
.cheer-item .cheer-ico{flex:none;width:42px;height:42px;border-radius:50%;border:2px solid var(--ink);background:var(--orange);display:grid;place-items:center}
.cheer-item .cheer-ico svg{width:24px;height:24px}
.cheer-item .ptext{flex:1;min-width:0}
.cheer-item .ptext span{white-space:normal}
.cheer-item small{flex:none;color:var(--muted)}

/* ---------- progress: personal records ---------- */
.rec-banner{background:var(--yellow)}
.rec{display:flex;align-items:center;gap:12px;background:var(--card);border:var(--line) solid var(--ink);border-radius:20px;padding:14px 16px;box-shadow:3px 4px 0 var(--ink)}
.rec.new{background:var(--yellow-soft)}
.rec-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.rec-text>b{font-family:var(--display);font-weight:800;font-size:1.15rem;line-height:1.15;overflow-wrap:anywhere}
.rec-text>span{color:var(--muted);font-size:.9rem}
.rec-chip{align-self:flex-start;margin-top:6px;background:var(--orange)}
.rec-val{flex:none;display:flex;align-items:baseline;gap:4px;flex-wrap:wrap;justify-content:flex-end;max-width:50%}
.rec-val b{font-family:var(--display);font-weight:800;font-size:1.7rem;line-height:1}
.rec-val small{font-weight:700;color:var(--muted)}
.rec-val em{font-style:normal;font-weight:700;width:100%;text-align:right;color:var(--muted)}
.empty svg{width:44px;height:44px;margin-bottom:6px}
/* ---------- weekly streak ---------- */
.streak{margin-top:22px;background:var(--card);border:var(--line) solid var(--ink);border-radius:24px;padding:16px 18px;box-shadow:4px 5px 0 var(--ink)}
.streak-top{display:flex;align-items:center;gap:14px}
.streak-top svg{flex:none;width:46px;height:46px}
.streak-top b{display:block;font-family:var(--display);font-weight:800;font-size:1.5rem;line-height:1.1}
.streak-top span{display:block;color:var(--muted);font-size:.92rem;line-height:1.35}
.sdots{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:6px;margin-top:14px}
.sdot{height:14px;border:2px solid var(--ink);border-radius:99px;background:var(--bg)}
.sdot.on{background:var(--orange)}
.sdot.now:not(.on){border-style:dashed}
.sdot.saved{background:var(--teal)}
.jokers{display:flex;align-items:center;gap:12px;margin-top:14px;padding-top:12px;border-top:2px dashed var(--hairline)}
.jokers-ico{flex:none;width:40px;height:40px;border-radius:12px;border:2px solid var(--ink);background:var(--teal);display:grid;place-items:center}
.jokers-ico svg{width:24px;height:24px}
.jokers-text{display:flex;flex-direction:column}
.jokers-text b{font-family:var(--display);font-weight:800;font-size:1.05rem}
.jokers-text span{color:var(--muted);font-size:.9rem}
.jokers-how{margin:8px 0 0;color:var(--muted);font-size:.85rem;line-height:1.35}
.sdot.part{background:linear-gradient(to right,var(--orange) 50%,var(--bg) 50%)}
.week-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.week-goal{padding:4px 10px;border:2px solid var(--ink);border-radius:99px;background:var(--card);font-family:var(--display);font-weight:800;font-size:.85rem;white-space:nowrap}
.wdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin-top:2px}
.wday{display:flex;flex-direction:column;align-items:center;gap:4px}
.wday i{width:30px;height:30px;border-radius:50%;border:2px solid var(--ink);background:var(--card);display:grid;place-items:center}
.wday i svg{width:16px;height:16px}
.wday.on i{background:var(--orange)}
.wday.today i{box-shadow:0 0 0 3px var(--yellow),0 0 0 5px var(--ink)}
.wday b{font-family:var(--display);font-weight:800;font-size:.85rem}
.done-banner{flex-wrap:wrap}
.done-banner span{flex:1;min-width:160px}
.pill-btn{padding:6px 14px;border:2px solid var(--ink);border-radius:99px;background:var(--card);font-family:var(--display);font-weight:800;white-space:nowrap}
.repeat-hint{margin:8px 4px 0}
.week-met{margin:8px 0 0;font-family:var(--display);font-weight:800}
.goal-label{min-height:44px;display:flex;flex-direction:column;margin:14px 0 4px}
.goal-label b{font-family:var(--display);font-weight:800;font-size:1.1rem}
.streak-best{margin:10px 0 0;font-size:.88rem;font-weight:600;color:var(--muted)}
.week-streak{display:flex;align-items:center;gap:8px;margin-top:14px;font-size:.95rem;text-align:left}
.week-streak svg{flex:none;width:24px;height:24px}
.week-streak b{font-family:var(--display);font-weight:800}
/* "▶ Ver técnica" inside an open exercise */
.tech{display:inline-flex;align-items:center;gap:6px;margin:0 0 10px;padding:6px 12px;border:2px solid var(--ink);border-radius:99px;background:var(--card);font-family:var(--display);font-weight:800;font-size:.9rem;color:var(--ink);text-decoration:none}
.tech span{color:var(--danger)}
.tech-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 10px}
.tech-row .tech{margin:0}
.tech-edit{font-size:.88rem}
/* ---------- onboarding + first language screen ---------- */
.ob{display:flex;flex-direction:column;min-height:calc(100vh - 160px - var(--tabbar-h));min-height:calc(100dvh - 60px - var(--safe-top))}
.ob h1{font-size:1.9rem;line-height:1.1;margin:6px 0 6px}
.ob .sub{margin:0 0 18px}
.ob-top{display:flex;align-items:center;gap:12px;margin-bottom:22px}
.ob-top .bar{flex:1}
.ob-skip{min-width:56px;text-align:right;color:var(--teal-ink)}
.ob-hero{display:flex;justify-content:center;margin:10px 0 18px}
.ob-center{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:6px;padding-top:12px}
.ob-center .sub{max-width:320px}
.ob-list{display:flex;flex-direction:column;gap:10px}
.ob-opt{display:flex;align-items:center;gap:14px;width:100%;text-align:left;padding:14px 16px;border:var(--line) solid var(--ink);border-radius:20px;background:var(--card);box-shadow:3px 4px 0 var(--ink);transition:background .15s,transform .08s,box-shadow .08s}
.ob-opt:active{transform:translate(2px,3px);box-shadow:1px 1px 0 var(--ink)}
.ob-opt[aria-pressed="true"]{background:var(--yellow)}
.ob-ico{flex:none;width:44px;height:44px;border-radius:14px;border:2px solid var(--ink);background:var(--bg);display:grid;place-items:center}
.ob-opt[aria-pressed="true"] .ob-ico{background:var(--card)}
.ti{width:26px;height:26px;stroke-width:2.2}
.ob-txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.ob-txt b{font-family:var(--display);font-weight:800;font-size:1.08rem;line-height:1.15}
.ob-txt span{color:var(--muted);font-size:.9rem;line-height:1.3}
.ob-opt[aria-pressed="true"] .ob-txt span{color:var(--ink)}
.ob-tick{flex:none;width:28px;height:28px;border-radius:50%;border:2px solid var(--ink);display:grid;place-items:center;background:var(--card)}
.ob-tick svg{width:16px;height:16px;opacity:0}
[aria-pressed="true"]>.ob-tick{background:var(--teal)}
[aria-pressed="true"]>.ob-tick svg{opacity:1}
.ob-compact .ob-opt{padding:10px 14px}
.ob-compact .ob-ico{width:36px;height:36px;border-radius:12px}
.ob-compact .ti{width:22px;height:22px}
.ob-foot{position:sticky;bottom:0;margin-top:auto;padding:18px 0 calc(8px + env(safe-area-inset-bottom,0px));background:linear-gradient(to bottom,transparent,var(--bg) 30%);display:flex;flex-direction:column;align-items:center;gap:6px}
.ob-foot .btn{width:100%}
.ob-foot .btn:disabled{opacity:.4;box-shadow:none}
/* character cards */
.ob-chars{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ob-char{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 8px 14px;border:var(--line) solid var(--ink);border-radius:22px;background:var(--card);box-shadow:3px 4px 0 var(--ink)}
.ob-char[aria-pressed="true"]{background:var(--yellow)}
.ob-char b{font-family:var(--display);font-weight:800;font-size:1.15rem}
.ob-char-art{height:196px;display:flex;align-items:flex-end;justify-content:center}
.ob-char .ob-tick{position:absolute;top:10px;right:10px}
.ob-char.off{box-shadow:none;border-style:dashed;opacity:.7}
.ob-soon{align-self:center;padding:4px 12px;border-radius:99px;background:var(--bg);border:2px dashed var(--ink);font-family:var(--display);font-weight:800;font-size:.9rem}
/* days 1–7 */
.ob-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.ob-day{-webkit-appearance:none;appearance:none;min-width:0;max-width:100%;width:100%;height:auto;padding:0;aspect-ratio:1/1;text-align:center;border:var(--line) solid var(--ink);border-radius:14px;background:var(--card);font-family:var(--display);font-weight:800;font-size:1.3rem}
.ob-day[aria-pressed="true"]{background:var(--ink);color:var(--bg)}
.ob-days-label{min-height:64px;display:flex;align-items:center;gap:12px;margin-top:18px;padding:0 4px}
.ob-days-label span{display:flex;flex-direction:column}
.ob-days-label b{font-family:var(--display);font-weight:800;font-size:1.15rem}
/* body */
.ob-units{margin-bottom:18px}
.ob-body{display:flex;flex-direction:column;gap:14px}
.ob-num{display:flex;flex-direction:column;gap:6px;font-weight:600}
.ob-num-in{display:flex;align-items:center;gap:8px}
.ob-num-in .input{flex:1;min-width:0;font-family:var(--display);font-weight:800;font-size:1.3rem;text-align:center}
.ob-num-in em{font-style:normal;font-weight:700;color:var(--muted);min-width:52px}
.ob-hft .row{margin-top:6px}
.ob-private{display:flex;align-items:center;gap:10px;margin:18px 0 0;color:var(--muted);font-size:.9rem}
.ob-private .ti{flex:none;color:var(--teal-ink)}
/* done */
.ob-summary{list-style:none;margin:14px 0 0;padding:0;display:flex;flex-direction:column;gap:8px;width:100%;max-width:340px}
.ob-summary li{display:flex;justify-content:space-between;gap:12px;padding:10px 14px;border:2px solid var(--ink);border-radius:14px;background:var(--card);text-align:left}
.ob-summary span{color:var(--muted)}
.ob-s-welcome .mascot,.ob-s-done .mascot{max-width:100%}
/* starter plan (last screen) */
.ob-plan-head{display:flex;align-items:center;gap:14px;margin:4px 0 16px}
.ob-plan-head .mascot{flex:none}
.ob-plan-head h1{margin:0 0 4px}
.ob-plan-head .sub{margin:0}
.ob-plan{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.ob-plan-r{border:var(--line) solid var(--ink);border-radius:20px;background:var(--card);box-shadow:3px 4px 0 var(--ink);overflow:hidden}
.ob-plan-r summary{display:flex;align-items:center;gap:12px;padding:12px 14px;cursor:pointer;list-style:none}
.ob-plan-r summary::-webkit-details-marker{display:none}
.ob-plan-n{flex:none;width:34px;height:34px;border-radius:50%;border:2px solid var(--ink);background:var(--yellow);display:grid;place-items:center;font-family:var(--display);font-weight:800}
.ob-plan-t{flex:1;min-width:0;display:flex;flex-direction:column}
.ob-plan-t b{font-family:var(--display);font-weight:800;font-size:1.08rem;line-height:1.2}
.ob-plan-t span{color:var(--muted);font-size:.9rem}
.ob-plan-chev{flex:none;width:22px;height:22px;transform:rotate(-90deg);transition:transform .2s}
.ob-plan-chev svg{width:100%;height:100%}
.ob-plan-r[open] .ob-plan-chev{transform:rotate(90deg)}
.ob-plan-ex{margin:0;padding:2px 14px 12px 14px;list-style:none;border-top:2px dashed var(--hairline)}
.ob-plan-ex li{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:8px 0;border-bottom:1px solid var(--hairline);font-size:.95rem}
.ob-plan-ex li:last-child{border-bottom:0}
.ob-plan-ex span{min-width:0}
.ob-plan-ex b{flex:none;font-family:var(--display);font-weight:800;color:var(--teal-ink);white-space:nowrap}
.ob-plan-note{margin:14px 2px 0;color:var(--muted);font-size:.9rem}
.ob-plan-why{display:flex;align-items:flex-start;gap:10px;margin:0 0 14px;padding:10px 12px;border-radius:14px;background:var(--yellow-soft);border:2px solid var(--ink);font-size:.95rem;line-height:1.35}
.ob-plan-why .ti{flex:none;width:22px;height:22px;color:var(--teal-ink)}
.ob-vol{margin:18px 0 0;padding:14px 14px 10px;border:var(--line) solid var(--ink);border-radius:20px;background:var(--card)}
.ob-vol h2{font-family:var(--display);font-weight:800;font-size:1.1rem;margin:0}
.ob-vol-sub{margin:2px 0 10px;color:var(--muted);font-size:.88rem}
.ob-vol ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:7px}
.ob-vol li{display:grid;grid-template-columns:86px 1fr 28px;align-items:center;gap:10px;font-size:.92rem}
.ob-vol-g{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ob-vol-bar{height:10px;border-radius:99px;background:var(--hairline);overflow:hidden}
.ob-vol-bar i{display:block;height:100%;border-radius:99px;background:var(--teal)}
.ob-vol li.focus .ob-vol-g{font-weight:800}
.ob-vol li.focus .ob-vol-bar i{background:var(--orange)}
.ob-vol b{text-align:right;font-family:var(--display);font-weight:800}
.ob-more{margin:14px 0 0;border-top:2px dashed var(--hairline);padding-top:6px}
.ob-more summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 2px;cursor:pointer;list-style:none;font-family:var(--display);font-weight:800;color:var(--teal-ink)}
.ob-more summary::-webkit-details-marker{display:none}
.ob-more[open] .ob-plan-chev{transform:rotate(90deg)}
.ob-more ul{margin:0;padding:0 0 4px 18px;display:flex;flex-direction:column;gap:8px;color:var(--ink);font-size:.93rem;line-height:1.4}
@media (prefers-reduced-motion:reduce){.ob-plan-chev{transition:none}}
.cheer-item.new .ptext b::after{content:'';display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--orange);border:1.5px solid var(--ink);margin-left:6px;vertical-align:middle}

/* ---------- weekly recap ---------- */
.recap-card{position:relative;display:flex;align-items:flex-start;gap:12px;margin:4px 0 14px;padding:12px 12px 12px 14px;border:var(--line) solid var(--ink);border-radius:20px;background:var(--yellow-soft);box-shadow:3px 4px 0 var(--ink)}
.recap-card .mascot{flex:none}
.recap-card-t{flex:1;min-width:0;display:flex;flex-direction:column;padding-right:22px}
.recap-card-t span{font-size:.78rem;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.recap-card-t b{font-family:var(--display);font-weight:800;font-size:1.08rem;line-height:1.2}
.recap-card-t small{color:var(--muted)}
.recap-card-t .pill-btn{align-self:flex-start;margin-top:8px}
.recap-card .icon-btn{position:absolute;top:6px;right:6px;width:30px;height:30px;display:grid;place-items:center;border-radius:50%;color:var(--muted)}
.recap-card .icon-btn svg{width:18px;height:18px}
.recap{display:flex;flex-direction:column;gap:14px}
.recap-head{display:flex;align-items:center;gap:12px}
.recap-head .mascot{flex:none}
.recap-head h2{margin:2px 0 4px;line-height:1.15}
.recap-head p{margin:0;color:var(--muted)}
.recap-range{font-size:.8rem;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.recap-days b{font-family:var(--display);font-weight:800;font-size:1.6rem}
.recap-days span{color:var(--muted);font-weight:600}
.recap-stats{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.recap-stats li{display:flex;flex-direction:column;padding:12px 14px;border:2px solid var(--ink);border-radius:18px;background:var(--card)}
.recap-stats li:first-child{background:var(--yellow)}
.recap-stats b{font-family:var(--display);font-weight:800;font-size:1.8rem;line-height:1}
.recap-stats span{font-weight:600;font-size:.9rem}
.recap-recs h3{display:flex;align-items:center;gap:8px;margin:0 0 6px}
.recap-recs h3 svg{width:22px;height:22px}
.recap-recs ul{list-style:none;margin:0;padding:0}
.recap-recs li{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--hairline)}
.recap-recs li:last-child{border-bottom:0}
.recap-recs b{font-family:var(--display);font-weight:800;color:var(--orange);white-space:nowrap}
.recap-cheers{display:flex;align-items:center;gap:8px;margin:0;font-weight:600}
.recap-cheers svg{width:22px;height:22px;flex:none}
.recap-link{margin:-4px 0 6px}
.recap + .actions .btn,.sheet .actions .btn svg{vertical-align:middle}
.sheet .actions .btn[data-k=share]{display:flex;align-items:center;justify-content:center;gap:8px}
.sheet .actions .btn[data-k=share] svg{width:22px;height:22px}

/* ---------- points and badges ---------- */
.top{gap:12px}
.top>.brand,.top-right>.avatar{flex:none}
.top-right{min-width:0}
.account-language{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;margin-bottom:12px;border-bottom:2px dashed var(--hairline)}
.header-points{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:6px 10px;border:2px solid var(--ink);border-radius:999px;background:var(--card);font-size:.8rem;white-space:nowrap}
.header-points svg{width:19px;height:19px;flex:none}
.header-points{min-width:0}
.header-points>span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.header-points:focus-visible{outline:3px solid var(--teal-ink);outline-offset:3px}
.rewards{margin:26px 0 24px;padding:16px 18px;border:var(--line) solid var(--ink);border-radius:24px;background:var(--card);box-shadow:3px 4px 0 var(--ink)}
.rw-title{margin:0;font-family:var(--display);font-size:1.15rem;line-height:1.2}
.rw-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
.rw-pts{display:flex;align-items:baseline;gap:6px}
.rw-pts svg{width:24px;height:24px;align-self:center}
.rw-pts b{font-family:var(--display);font-weight:800;font-size:1.6rem;line-height:1}
.rw-pts span{font-weight:700;color:var(--muted)}
.rw-row{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.rw-row li{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;min-width:0}
.rw-row li span{font-size:.72rem;font-weight:700;line-height:1.15;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.rewards .hint{margin:10px 0 0}
.medal{position:relative;flex:none;width:48px;height:48px;border-radius:50%;border:2.5px solid var(--ink);display:grid;place-items:center;background:var(--teal)}
.medal svg{width:24px;height:24px}
.medal em{position:absolute;bottom:-6px;right:-5px;min-width:22px;height:20px;padding:0 5px;border-radius:99px;border:2px solid var(--ink);background:var(--card);font-family:var(--display);font-weight:800;font-style:normal;font-size:.72rem;line-height:16px;text-align:center}
.medal.fam-workouts{background:var(--teal)}
.medal.fam-streak{background:var(--orange)}
.medal.fam-records{background:var(--yellow)}
.medal.fam-social{background:#FF9EC0}
.medal.locked{background:var(--hairline);color:var(--muted);border-style:dashed}
.medal.locked svg{opacity:.55}
.medal.list{width:52px;height:52px}
.medal.big{width:96px;height:96px;border-width:3px}
.medal.big svg{width:48px;height:48px}
.medal.big em{font-size:.95rem;height:26px;line-height:22px;min-width:30px}
/* Earned artwork carries its own frame/numeral. Locked artwork is a static SVG,
   not an animated image paused with CSS (which cannot stop SVG image timelines). */
.medal.medal-art{width:56px;max-width:100%;height:56px;background:transparent;border:0;border-radius:0}
.medal-art picture,.medal-art img{display:block;width:100%;height:100%;object-fit:contain}
.medal.medal-art.list{width:72px;height:72px}
.medal.medal-art.big{width:128px;height:128px}
.medal.medal-art.locked{filter:grayscale(1);opacity:.55}
.medal.medal-art.locked,.medal.medal-art.locked *{animation:none!important;transition:none!important}
.bn-item .medal.locked{animation:none}
.badge-list{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-direction:column;gap:12px}
.badge-list li{display:flex;align-items:center;gap:14px}
.bl-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.bl-text b{font-family:var(--display);font-weight:800}
.bl-text span{color:var(--muted);font-size:.9rem}
.bl-text small{color:var(--muted)}
.badge-list li.locked .bl-text b{color:var(--muted)}
.bl-bar{display:block;height:8px;border-radius:99px;background:var(--hairline);overflow:hidden;margin-top:4px}
.bl-bar i{display:block;height:100%;background:var(--orange)}
.rw-how{margin-top:16px;border-top:2px dashed var(--hairline);padding-top:10px}
.rw-how summary{font-family:var(--display);font-weight:800;cursor:pointer}
.rw-how p{color:var(--muted);margin:8px 0 0}
.badge-new{display:flex;flex-direction:column;align-items:center;text-align:center;gap:14px;margin:6px 0 10px}
.badge-new h2{margin:0}
.bn-item{display:flex;flex-direction:column;align-items:center;gap:6px}
.bn-item b{font-family:var(--display);font-weight:800;font-size:1.25rem}
.bn-item span{color:var(--muted)}
.bn-item .medal{animation:cheer-pop .6s cubic-bezier(.3,1.6,.5,1)}
.fr-badges{display:flex;align-items:center;justify-content:center;gap:6px;margin:0 0 8px;font-weight:700}
.fr-badges svg{width:20px;height:20px}
