/* Carga · layout de coluna única (mobile first), centrada no computador. Cores das anilhas olímpicas. */
:root{
  --page:#E2E5E9; --app:#F4F5F7; --surface:#FFFFFF; --surface-2:#EDEFF2; --fg:#14171C; --muted:#5A626D; --line:#DCE0E5;
  --accent:#C93A2A; --accent-soft:#F8E1DC; --on-accent:#FFFFFF;
  --cobalt:#2350B8; --cobalt-soft:#C9D6F2;
  --good:#1C7A49; --good-soft:#D9EFE3; --danger:#B3261E; --warn-soft:#FBEBC4; --warn-fg:#7A5200;
  --ink:#171A1F; --on-ink:#F2F3F5; --on-ink-muted:#A3AAB4; --ink-line:#2C3139;
  --hm0:#DFE3E8; --hm1:#F1BDB3; --hm2:#E07B67; --hm3:#C93A2A;
  --p25:#D23A2C; --p20:#2457C5; --p15:#E0AE0A; --p10:#2E8B4E; --p5:#F4F4F4; --p2:#2A2C30; --p1:#AEB4BC;
  --scrim:rgba(12,14,18,.48);
  --f-display:'Barlow Condensed','Arial Narrow',sans-serif;
  --f-body:'Archivo',system-ui,-apple-system,'Segoe UI',sans-serif;
  --g:max(16px, env(safe-area-inset-left, 0px));
  --gr:max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --page:#07080A; --app:#101215; --surface:#181B20; --surface-2:#22262C; --fg:#ECEEF1; --muted:#949BA6; --line:#2A2F36;
    --accent:#E5573F; --accent-soft:#3A1E1A; --on-accent:#FFFFFF;
    --cobalt:#7499EE; --cobalt-soft:#2B3550;
    --good:#4CC385; --good-soft:#163527; --danger:#F2867D; --warn-soft:#3A2E12; --warn-fg:#F2C467;
    --ink:#1F2329; --on-ink:#F2F3F5; --on-ink-muted:#9AA1AC; --ink-line:#343A43;
    --hm0:#22262C; --hm1:#5A2C25; --hm2:#9B3E30; --hm3:#E5573F;
    --p5:#E9E9E9; --p2:#0B0C0E;
    --scrim:rgba(0,0,0,.6);
    color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --page:#07080A; --app:#101215; --surface:#181B20; --surface-2:#22262C; --fg:#ECEEF1; --muted:#949BA6; --line:#2A2F36;
  --accent:#E5573F; --accent-soft:#3A1E1A; --on-accent:#FFFFFF;
  --cobalt:#7499EE; --cobalt-soft:#2B3550;
  --good:#4CC385; --good-soft:#163527; --danger:#F2867D; --warn-soft:#3A2E12; --warn-fg:#F2C467;
  --ink:#1F2329; --on-ink:#F2F3F5; --on-ink-muted:#9AA1AC; --ink-line:#343A43;
  --hm0:#22262C; --hm1:#5A2C25; --hm2:#9B3E30; --hm3:#E5573F;
  --p5:#E9E9E9; --p2:#0B0C0E;
  --scrim:rgba(0,0,0,.6);
  color-scheme:dark;
}
*{box-sizing:border-box}
html,body{height:100%}
body{background:var(--page);color:var(--fg);font-family:var(--f-body);font-size:15px;line-height:1.45;-webkit-font-smoothing:antialiased}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;padding:0}
input,select,textarea{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--cobalt);outline-offset:2px}
h1,h2,h3{margin:0;text-wrap:balance}
p{margin:0}
.num,.tnum{font-variant-numeric:tabular-nums}
.muted{color:var(--muted)}
.eyebrow{font-size:11.5px;font-weight:600;letter-spacing:.09em;text-transform:uppercase;color:var(--muted)}

/* App shell */
.app{display:flex;flex-direction:column;height:100%}
.top{display:flex;align-items:center;gap:10px;padding-top:calc(14px + env(safe-area-inset-top,0px));padding-bottom:10px;padding-left:var(--g);padding-right:var(--gr);min-height:56px}
.top h1{font-family:var(--f-display);font-weight:700;font-size:30px;letter-spacing:.01em;line-height:1;flex:1}
.top .sub{flex:1;min-width:0}
.top .sub h1{font-size:24px}
.icon-btn{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:var(--surface-2);flex:none}
.icon-btn.accent{background:var(--accent);color:var(--on-accent)}
.scroll{flex:1;overflow-y:auto;overscroll-behavior:contain;padding-top:6px;padding-bottom:28px;padding-left:var(--g);padding-right:var(--gr);display:flex;flex-direction:column;gap:22px}
.scroll > *{min-width:0}
.tabbar{display:grid;grid-template-columns:repeat(5,1fr);border-top:1px solid var(--line);background:var(--surface);padding-top:6px;padding-bottom:calc(10px + env(safe-area-inset-bottom,0px));padding-left:var(--g);padding-right:var(--gr)}
.tab{display:flex;flex-direction:column;align-items:center;gap:3px;font-size:11px;font-weight:500;color:var(--muted);padding:6px 0}
.tab[aria-current="page"]{color:var(--accent)}
.tab[aria-current="page"] svg{stroke-width:2.3}

.section{display:flex;flex-direction:column;gap:12px}
.section-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.section-head h2{font-family:var(--f-display);font-size:21px;font-weight:600;letter-spacing:.01em}
.link{color:var(--cobalt);font-weight:600;font-size:13.5px}

.card{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:16px}

.btn{height:50px;border-radius:14px;padding:0 18px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:15px;transition:transform .1s}
.btn:active{transform:scale(.98)}
.btn-primary{background:var(--accent);color:var(--on-accent)}
.btn-ghost{background:var(--surface-2)}
.btn-line{border:1.5px dashed var(--line);color:var(--muted)}
.btn-danger{color:var(--danger)}
.btn-block{width:100%}
.btn-sm{height:38px;border-radius:11px;padding:0 14px;font-size:14px}
.btn-row{display:flex;gap:10px}
.btn-row > *{flex:1}

.field{display:flex;flex-direction:column;gap:6px}
.field label,.label{font-size:13px;font-weight:600;color:var(--muted)}
.input{height:50px;border-radius:13px;border:1px solid var(--line);background:var(--surface);padding:0 14px;width:100%}
textarea.input{height:auto;min-height:84px;padding:12px 14px;resize:vertical}
select.input{appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);background-position:calc(100% - 20px) 22px,calc(100% - 15px) 22px;background-size:5px 5px;background-repeat:no-repeat}
.input:focus{outline:2px solid var(--cobalt);outline-offset:-1px}
.search{position:relative}
.search svg{position:absolute;left:14px;top:14px;color:var(--muted)}
.search .input{padding-left:42px}

.chips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin-left:calc(-1 * var(--g));margin-right:calc(-1 * var(--gr));padding-left:var(--g);padding-right:var(--gr)}
.chips::-webkit-scrollbar{display:none}
.chip{height:36px;padding:0 15px;border-radius:999px;border:1px solid var(--line);background:var(--surface);font-size:13.5px;font-weight:500;white-space:nowrap;flex:none}
.chip[aria-pressed="true"]{background:var(--fg);color:var(--app);border-color:var(--fg)}
.seg{display:flex;background:var(--surface-2);border-radius:13px;padding:4px;gap:4px}
.seg button{flex:1;height:38px;border-radius:10px;font-weight:600;font-size:14px;color:var(--muted)}
.seg button[aria-pressed="true"]{background:var(--surface);color:var(--fg);box-shadow:0 1px 3px rgba(0,0,0,.08)}

/* plate letters */
.lt{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;font-family:var(--f-display);font-weight:700;font-size:24px;color:#fff;flex:none}
.lt-r{background:var(--p25)} .lt-b{background:var(--p20)} .lt-y{background:var(--p15);color:#1A1A1A} .lt-g{background:var(--p10)}

/* home */
.hello{display:flex;flex-direction:column;gap:4px}
.hello h1{font-family:var(--f-display);font-size:34px;font-weight:700;line-height:1.02}
.week{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;text-align:center}
.wd{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:11.5px;color:var(--muted);font-weight:600}
.wd .dot{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;font-size:14px;color:var(--fg);font-weight:600;background:var(--surface-2)}
.wd.trained .dot{background:var(--accent);color:var(--on-accent)}
.wd.today .dot{box-shadow:0 0 0 2px var(--app),0 0 0 4px var(--fg)}
.wd .plan{font-family:var(--f-display);font-size:13px;letter-spacing:.04em;height:14px}
.goal{display:flex;flex-direction:column;gap:8px}
.goal-top{display:flex;justify-content:space-between;font-size:13.5px}
.meter{height:8px;border-radius:99px;background:var(--surface-2);overflow:hidden}
.meter span{display:block;height:100%;background:var(--accent);border-radius:99px}

.hero{background:var(--ink);color:var(--on-ink);border-radius:22px;padding:18px;display:flex;flex-direction:column;gap:14px}
.hero .eyebrow{color:var(--on-ink-muted)}
.hero-top{display:flex;gap:12px;align-items:center}
.hero h2{font-family:var(--f-display);font-size:28px;font-weight:700;line-height:1}
.hero-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.hero-list li{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-top:1px solid var(--ink-line);font-size:14px}
.hero-list li span:last-child{color:var(--on-ink-muted);white-space:nowrap}
.hero-meta{display:flex;gap:14px;font-size:13px;color:var(--on-ink-muted);flex-wrap:wrap}
.hero-meta b{color:var(--on-ink);font-weight:600}

.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.stat{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:12px;display:flex;flex-direction:column;gap:2px;min-width:0}
.stat b{font-family:var(--f-display);font-size:28px;font-weight:700;line-height:1.05;font-variant-numeric:tabular-nums}
.stat b small{font-size:16px;font-weight:600;margin-left:2px}
.stat span{font-size:12px;color:var(--muted);line-height:1.3}

.list{display:flex;flex-direction:column}
.row{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);text-align:left;width:100%}
.row:last-child{border-bottom:0}
.row .grow{flex:1;min-width:0}
.row .t{font-weight:600;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.row .s{font-size:13px;color:var(--muted)}
.row .r{text-align:right;font-size:13px;color:var(--muted);white-space:nowrap}
.row .r b{display:block;color:var(--fg);font-size:15px;font-variant-numeric:tabular-nums}
.gico{width:42px;height:42px;border-radius:12px;background:var(--surface-2);display:grid;place-items:center;font-family:var(--f-display);font-weight:700;font-size:16px;letter-spacing:.04em;color:var(--muted);flex:none}

/* routines */
.rcard{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:16px;display:flex;flex-direction:column;gap:12px;text-align:left;width:100%}
.rcard-top{display:flex;gap:12px;align-items:center}
.rcard h3{font-size:17px;font-weight:700}
.tags{display:flex;gap:6px;flex-wrap:wrap}
.tag{font-size:12px;font-weight:600;padding:4px 9px;border-radius:8px;background:var(--surface-2);color:var(--muted)}
.tag.on{background:var(--accent-soft);color:var(--accent)}
.rcard ol{margin:0;padding-left:18px;font-size:13.5px;color:var(--muted);display:flex;flex-direction:column;gap:2px}
.hint{font-size:13px;color:var(--muted);background:var(--surface-2);padding:12px 14px;border-radius:14px;line-height:1.5}

.item{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:12px;display:flex;flex-direction:column;gap:10px}
.item-head{display:flex;gap:10px;align-items:center}
.item-head .n{font-family:var(--f-display);font-weight:700;font-size:20px;width:22px;color:var(--muted);text-align:center}
.item-head .grow{flex:1;min-width:0}
.item-head b{display:block;font-size:15px}
.item-head small{color:var(--muted);font-size:12.5px}
.tools{display:flex;gap:2px}
.tools button{width:32px;height:32px;border-radius:9px;display:grid;place-items:center;color:var(--muted)}
.tools button:hover{background:var(--surface-2);color:var(--fg)}
.mini{display:flex;flex-direction:column;gap:3px}
.mini span{font-size:11px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}
.mini input{height:40px;border-radius:10px;border:1px solid var(--line);background:var(--surface-2);text-align:center;width:100%;font-variant-numeric:tabular-nums;font-weight:600}

/* exercise library */
.seg .cnt{font-size:12px;font-weight:600;color:var(--muted);margin-left:3px;font-variant-numeric:tabular-nums}
.search-row{display:flex;gap:8px}
.search-row .search{flex:1;min-width:0}
.filter-btn{width:50px;height:50px;border-radius:13px;position:relative;background:var(--surface);border:1px solid var(--line);display:grid;place-items:center;flex:none}
.badge{position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;border-radius:10px;background:var(--accent);color:var(--on-accent);font-size:11px;font-weight:700;display:grid;place-items:center;padding:0 5px}
.chips-wrap{display:flex;flex-wrap:wrap;gap:8px}
.chip svg{vertical-align:-2px}
.star-mini{color:var(--p15);display:grid;flex:none}
.icon-btn.fav{color:var(--p15)}
button.tag{cursor:pointer;text-align:left}
.ex-title{font-family:var(--f-display);font-size:32px;font-weight:700;line-height:1.02}
.frames{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.frame{margin:0;aspect-ratio:4/3;max-width:100%;border-radius:14px;background:repeating-linear-gradient(135deg,var(--surface-2) 0 10px,var(--surface) 10px 20px);border:1px solid var(--line);display:grid;place-items:center;position:relative}
.frame span{font-family:var(--f-display);font-size:34px;font-weight:700;color:var(--muted);opacity:.45;letter-spacing:.05em}
.frame figcaption{position:absolute;left:10px;bottom:8px;font-size:11.5px;font-weight:600;color:var(--muted)}
.muscles{display:flex;flex-wrap:wrap;gap:8px}
.muscle{display:flex;flex-direction:column;padding:8px 12px;border-radius:12px;background:var(--surface-2);font-weight:600;font-size:14px;line-height:1.25}
.muscle small{font-size:11px;font-weight:500;color:var(--muted)}
.muscle.main{background:var(--accent-soft);color:var(--accent)}
.muscle.main small{color:var(--accent)}
.howto{margin:0;padding:0;list-style:none;counter-reset:s;display:flex;flex-direction:column;gap:12px}
.howto li{counter-increment:s;display:grid;grid-template-columns:28px 1fr;gap:12px;font-size:14.5px;line-height:1.45}
.howto li::before{content:counter(s);width:28px;height:28px;border-radius:50%;background:var(--fg);color:var(--app);display:grid;place-items:center;font-family:var(--f-display);font-weight:700;font-size:15px}
.errs{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px}
.errs li{display:grid;grid-template-columns:20px 1fr;gap:8px;font-size:14.5px;line-height:1.45}
.errs li::before{content:"×";color:var(--danger);font-weight:700;font-size:19px;line-height:1.1;text-align:center}

/* accounts, onboarding, skip */
.err{font-size:13.5px;color:var(--danger);background:var(--accent-soft);padding:10px 12px;border-radius:10px}
.pill{display:inline-block;font-size:11px;font-weight:700;padding:3px 8px;border-radius:7px;white-space:nowrap}
.pill.good{background:var(--good-soft);color:var(--good)}
.pill.warn{background:var(--warn-soft);color:var(--warn-fg)}
.pill.off{background:var(--surface-2);color:var(--muted)}
.avatar.sm{width:40px;height:40px;font-size:18px;flex:none}
.choice{display:flex;flex-direction:column;gap:8px}
.choice-opt{display:flex;flex-direction:column;gap:2px;text-align:left;padding:12px 14px;border-radius:13px;border:1.5px solid var(--line);background:var(--surface)}
.choice-opt span{font-size:13px;color:var(--muted)}
.choice-opt[aria-pressed="true"]{border-color:var(--accent);background:var(--accent-soft)}
.start-steps{margin:0;padding:0;list-style:none;counter-reset:s;display:flex;flex-direction:column;gap:8px}
.start-steps li{counter-increment:s;display:grid;grid-template-columns:24px 1fr;gap:10px;font-size:14px;align-items:center}
.start-steps li::before{content:counter(s);width:24px;height:24px;border-radius:50%;background:var(--ink-line);color:var(--on-ink);display:grid;place-items:center;font-weight:700;font-size:12px}
.sugg{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.sugg-card{display:flex;flex-direction:column;gap:4px;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:10px;font-size:13.5px;min-width:0}
.sugg-card .muted{font-size:12px}
.thumb{background:repeating-linear-gradient(135deg,var(--surface-2) 0 6px,var(--surface) 6px 12px);border:1px solid var(--line)}
.sugg-card .thumb{aspect-ratio:4/3;max-width:100%;border-radius:10px;display:grid;place-items:center;font-family:var(--f-display);font-weight:700;font-size:22px;color:var(--muted)}
.step.is-skipped{color:var(--p15)}
.empty-card{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.empty-card h2{font-family:var(--f-display);font-size:24px;font-weight:700}

/* progress */
.big{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.big b{font-family:var(--f-display);font-size:44px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums}
.big b small{font-size:22px}
.delta{font-size:12.5px;font-weight:700;padding:4px 8px;border-radius:8px;background:var(--good-soft);color:var(--good)}
.chart svg{display:block;width:100%;height:auto;overflow:visible}
.chart .grid{stroke:var(--line);stroke-width:1}
.chart text{fill:var(--muted);font-size:10px;font-family:var(--f-body);font-variant-numeric:tabular-nums}
.chart .ln{fill:none;stroke:var(--accent);stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}
.chart .ar{fill:var(--accent);opacity:.12}
.chart .pt{fill:var(--accent);opacity:.35}
.chart .end{fill:var(--accent);stroke:var(--surface);stroke-width:3}
.chart .bar{fill:var(--cobalt-soft)}
.chart .bar.now{fill:var(--cobalt)}
.kv{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;border-top:1px solid var(--line);padding-top:12px}
.kv div{display:flex;flex-direction:column;gap:2px;min-width:0}
.kv span{font-size:11.5px;color:var(--muted)}
.kv b{font-size:15px;font-variant-numeric:tabular-nums}
.heat{display:grid;grid-template-columns:18px 1fr;gap:6px}
.heat-rows{display:grid;grid-template-rows:repeat(7,1fr);gap:4px;font-size:10px;color:var(--muted);font-weight:600}
.heat-rows span{display:flex;align-items:center;height:100%}
.heat-grid{display:grid;grid-template-rows:repeat(7,1fr);grid-auto-flow:column;grid-auto-columns:1fr;gap:4px}
.heat-grid i{aspect-ratio:1;border-radius:4px;background:var(--hm0);max-width:100%}
.heat-grid i.l1{background:var(--hm1)} .heat-grid i.l2{background:var(--hm2)} .heat-grid i.l3{background:var(--hm3)}
.heat-grid i.fut{background:transparent;outline:1px dashed var(--line);outline-offset:-1px}
.legend{display:flex;align-items:center;gap:4px;font-size:11px;color:var(--muted);justify-content:flex-end}
.legend i{width:11px;height:11px;border-radius:3px;display:inline-block}
.gbars{display:flex;flex-direction:column;gap:10px}
.gbar{display:grid;grid-template-columns:92px 1fr 34px;align-items:center;gap:10px;font-size:13px}
.gtrack{position:relative;height:12px;border-radius:6px;background:var(--surface-2);overflow:hidden}
.gtrack .zone{position:absolute;top:0;bottom:0;left:41.66%;width:41.66%;background:var(--good-soft)}
.gtrack .fill{position:absolute;top:3px;bottom:3px;left:0;border-radius:4px;background:var(--fg)}
.gbar b{text-align:right;font-variant-numeric:tabular-nums}

/* profile */
.me{display:flex;gap:14px;align-items:center}
.avatar{width:60px;height:60px;border-radius:50%;background:var(--accent);color:var(--on-accent);display:grid;place-items:center;font-family:var(--f-display);font-size:28px;font-weight:700}
.setting{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}
.setting:last-child{border-bottom:0}
.setting > div:first-child{min-width:0}
.setting small{display:block;color:var(--muted);font-size:12.5px}
.stepper{display:flex;align-items:center;gap:6px}
.stepper button{width:34px;height:34px;border-radius:10px;background:var(--surface-2);font-weight:700;font-size:18px}
.stepper b{min-width:44px;text-align:center;font-variant-numeric:tabular-nums}
.mini-seg{display:flex;background:var(--surface-2);border-radius:10px;padding:3px;gap:2px}
.mini-seg button{height:30px;padding:0 10px;border-radius:8px;font-size:12.5px;font-weight:600;color:var(--muted)}
.mini-seg button[aria-pressed="true"]{background:var(--surface);color:var(--fg)}

/* auth */
.auth{height:100%;overflow-y:auto;display:flex;flex-direction:column;gap:26px;padding-top:calc(48px + env(safe-area-inset-top,0px));padding-bottom:28px;padding-left:max(22px,env(safe-area-inset-left,0px));padding-right:max(22px,env(safe-area-inset-right,0px))}
.brand{display:flex;flex-direction:column;gap:10px}
.brand-word{font-family:var(--f-display);font-weight:700;font-size:64px;line-height:.85;letter-spacing:.02em}
.brand p{font-size:16px;color:var(--muted);max-width:28ch}
.auth form{display:flex;flex-direction:column;gap:14px}
.or{display:flex;align-items:center;gap:12px;font-size:12.5px;color:var(--muted)}
.or::before,.or::after{content:"";flex:1;height:1px;background:var(--line)}
.fine{font-size:12px;color:var(--muted);text-align:center;line-height:1.5}

/* session */
.session{position:absolute;inset:0;z-index:20;background:var(--app);display:flex;flex-direction:column}
.s-head{background:var(--ink);color:var(--on-ink);padding-top:calc(14px + env(safe-area-inset-top,0px));padding-bottom:14px;padding-left:var(--g);padding-right:var(--gr);display:flex;align-items:center;gap:12px}
.s-head .grow{flex:1;min-width:0}
.s-head .eyebrow{color:var(--on-ink-muted)}
.elapsed{font-family:var(--f-display);font-size:30px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums}
.s-head .icon-btn{background:var(--ink-line);color:var(--on-ink)}
.steps{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;background:var(--ink);padding-bottom:14px;padding-left:var(--g);padding-right:var(--gr)}
.steps::-webkit-scrollbar{display:none}
.step{height:32px;padding:0 12px;border-radius:9px;background:var(--ink-line);color:var(--on-ink-muted);font-size:12.5px;font-weight:600;white-space:nowrap;flex:none;display:flex;align-items:center;gap:6px}
.step[aria-current="step"]{background:var(--on-ink);color:var(--ink)}
.step.is-done{color:var(--good)}
.step.is-done[aria-current="step"]{color:var(--ink)}
.ex-head{display:flex;flex-direction:column;gap:4px}
.ex-head h2{font-family:var(--f-display);font-size:30px;font-weight:700;line-height:1}
.target{font-size:14px;color:var(--muted)}
.target b{color:var(--fg)}
.plates{display:flex;align-items:center;gap:14px;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:10px 14px;font-size:13px}
.plates p{line-height:1.35}
.bar-vis{display:flex;align-items:center;gap:2px;height:56px;flex:none}
.bar-vis .sleeve{width:22px;height:6px;border-radius:2px;background:var(--p1)}
.bar-vis .collar{width:5px;height:14px;border-radius:2px;background:var(--p1)}
.pl{width:9px;border-radius:2px;display:block}
.pl-25{background:var(--p25)} .pl-20{background:var(--p20)} .pl-15{background:var(--p15)} .pl-10{background:var(--p10)}
.pl-5{background:var(--p5);box-shadow:inset 0 0 0 1px rgba(0,0,0,.25);width:7px} .pl-2_5{background:var(--p2);width:6px} .pl-1_25{background:var(--p1);width:5px}
.sets{display:flex;flex-direction:column;gap:6px}
.set-row{display:grid;grid-template-columns:42px 1fr 70px 60px 44px;gap:8px;align-items:center;padding:4px;border-radius:12px}
.set-row.sub{grid-template-columns:34px 1fr 64px 56px 42px;gap:6px}
.set-n small{display:block;font-family:var(--f-body);font-size:9px;font-weight:600;color:var(--muted);line-height:1;letter-spacing:0}
.set-n.t-aq,.set-n.t-aj{font-size:15px;color:var(--muted)}
.set-row.opt:not(.done){opacity:.72}
.set-bw{font-size:12px;color:var(--muted);text-align:center}
.blk{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;padding:12px 4px 2px;font-size:12.5px;color:var(--muted);border-top:1px dashed var(--line)}
.blk-name{font-weight:700;font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--fg);text-decoration:underline dotted;text-underline-offset:3px}
.tech-box{margin-left:18px;border-left:3px solid var(--accent);padding-left:8px;display:flex;flex-direction:column;gap:4px}
.tech-head{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:12.5px;text-align:left;color:var(--muted);padding:4px 0}
.tech-note{display:flex;gap:4px;align-items:center;font-size:12.5px;font-weight:600;color:var(--accent);padding:0 4px 4px 54px;text-align:left}
.peak{display:block;width:100%;text-align:left;background:var(--accent-soft);color:var(--fg);border-radius:12px;padding:10px 14px;font-size:13.5px;line-height:1.4}
.peak b{display:block;color:var(--accent);font-size:12px;text-transform:uppercase;letter-spacing:.06em}
.mob{display:flex;gap:10px;align-items:flex-start;background:var(--cobalt-soft);border-radius:14px;padding:12px 14px;font-size:13.5px;line-height:1.4}
.mob svg{flex:none;margin-top:2px}
.hero-mob{display:flex;gap:6px;align-items:flex-start;font-size:13px;color:var(--on-ink-muted);line-height:1.4}
.hero-mob svg{flex:none;margin-top:1px}
.ttag{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;font-weight:700;padding:3px 8px;border-radius:7px;background:var(--cobalt-soft);color:var(--cobalt);white-space:nowrap}
.ttag.hot{background:var(--accent-soft);color:var(--accent)}
.rcard ol li{display:flex;flex-wrap:wrap;gap:4px 8px;align-items:center}
.lt-k{background:var(--p2);color:#fff;box-shadow:inset 0 0 0 1px var(--ink-line)}
.lt-w{background:var(--p5);color:#1A1A1A;box-shadow:inset 0 0 0 1px rgba(0,0,0,.18)}
.cycle{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:5px}
.cycle .cyc{width:auto;height:38px;border-radius:10px;font-size:20px}
.cycle .cyc.rest{display:grid;place-items:center;background:var(--surface-2);color:var(--muted);font-size:10.5px;font-weight:600}
.cycle .cyc.cur{outline:3px solid var(--fg);outline-offset:2px}
.blocks{display:flex;flex-direction:column;gap:6px}
.brow{display:grid;grid-template-columns:92px repeat(3,minmax(0,1fr));gap:6px;align-items:center}
.brow.head span{font-size:10.5px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.05em;text-align:center}
.brow input{height:38px;border-radius:9px;border:1px solid var(--line);background:var(--surface-2);text-align:center;width:100%;min-width:0;font-weight:600;font-variant-numeric:tabular-nums}
.bname{font-size:12.5px;font-weight:700;text-align:left;text-decoration:underline dotted;text-underline-offset:3px}
.bname.t-aq,.bname.t-aj{color:var(--muted)}
.item-opts{display:grid;grid-template-columns:1fr 1.3fr;gap:8px}
.mini select{height:40px;border-radius:10px;border:1px solid var(--line);background:var(--surface-2);width:100%;padding:0 8px;font-weight:600}
.set-row.head{font-size:11px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.06em;padding-block:0}
.set-row.head span{text-align:center}
.set-row.head span:nth-child(2){text-align:left}
.set-row.done{background:var(--good-soft)}
.set-n{font-family:var(--f-display);font-size:20px;font-weight:700;text-align:center}
.set-prev{font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums}
.set-in{height:42px;border-radius:10px;border:1px solid var(--line);background:var(--surface);text-align:center;width:100%;font-weight:700;font-size:16px;font-variant-numeric:tabular-nums}
.set-row.done .set-in{border-color:transparent;background:transparent}
.set-check{width:42px;height:42px;border-radius:11px;background:var(--surface-2);display:grid;place-items:center;color:var(--muted)}
.set-check[aria-pressed="true"]{background:var(--good);color:#fff}
.s-foot{border-top:1px solid var(--line);background:var(--surface);padding-top:10px;padding-bottom:calc(12px + env(safe-area-inset-bottom,0px));padding-left:var(--g);padding-right:var(--gr);display:flex;flex-direction:column;gap:10px}
.rest{position:relative;overflow:hidden;border-radius:14px;background:var(--cobalt-soft);display:flex;align-items:center;gap:10px;padding:10px 12px}
.rest-fill{position:absolute;left:0;top:0;bottom:0;background:var(--cobalt);opacity:.22;transition:width .25s linear}
.rest > *:not(.rest-fill){position:relative}
.rest .grow{flex:1;font-size:13px;font-weight:600}
.rest b{font-family:var(--f-display);font-size:28px;line-height:1;font-variant-numeric:tabular-nums}
.rest button{height:32px;padding:0 10px;border-radius:9px;background:var(--surface);font-size:13px;font-weight:600}

/* sheet + toast */
#sheet{position:absolute;inset:0;z-index:40}
.sheet-wrap{position:absolute;inset:0;background:var(--scrim);display:flex;align-items:flex-end;animation:fade .18s ease-out}
.sheet{background:var(--surface);width:100%;max-height:90%;overflow-y:auto;border-radius:24px 24px 0 0;padding-top:8px;padding-bottom:calc(22px + env(safe-area-inset-bottom,0px));padding-left:var(--g);padding-right:var(--gr);display:flex;flex-direction:column;gap:16px;animation:rise .22s ease-out}
.grab{width:40px;height:5px;border-radius:3px;background:var(--line);align-self:center}
.sheet-title{font-family:var(--f-display);font-size:26px;font-weight:700;line-height:1.05}
.toast{position:absolute;top:calc(14px + env(safe-area-inset-top,0px));left:50%;transform:translateX(-50%);z-index:70;background:var(--fg);color:var(--app);padding:10px 16px;border-radius:12px;font-size:13.5px;font-weight:600;max-width:calc(100% - 32px);text-align:center;box-shadow:0 8px 24px rgba(0,0,0,.2);animation:fade .2s}
.summary-hero{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.pr{display:flex;gap:10px;align-items:center;padding:10px 12px;background:var(--accent-soft);border-radius:12px;font-size:14px}
.pr svg{color:var(--accent);flex:none}
@keyframes rise{from{transform:translateY(30px);opacity:.4}to{transform:none;opacity:1}}
@keyframes fade{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion: reduce){*{animation:none!important;transition:none!important}}

/* Shell */
html,body{height:100%;margin:0}
#root{position:relative;height:100%;height:100dvh;max-width:520px;margin:0 auto;background:var(--app);overflow:hidden}
@media (min-width:560px){#root{border-left:1px solid var(--line);border-right:1px solid var(--line)}}
#app{height:100%}
.boot{height:100%;display:grid;place-items:center;color:var(--muted);font-size:14px}
.boot-inner{display:flex;flex-direction:column;align-items:center;gap:14px}
.spin{width:28px;height:28px;border-radius:50%;border:3px solid var(--line);border-top-color:var(--accent);animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.btn[disabled],.btn.busy{opacity:.6;pointer-events:none}
.demo-bar{background:var(--p15);color:#1A1A1A;font-size:12px;font-weight:700;text-align:center;padding:6px 12px;padding-top:calc(6px + env(safe-area-inset-top,0px))}
.demo-bar + .top{padding-top:10px}
.frame img,.thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#fff}
.frame img{border-radius:13px}
.thumb{position:relative;overflow:hidden}
.frame{overflow:hidden}
.ok{font-size:13.5px;color:var(--good);background:var(--good-soft);padding:10px 12px;border-radius:10px}
.cyc-list{display:flex;flex-direction:column;gap:6px}
.cyc-item{display:flex;align-items:center;gap:10px;padding:6px 8px;border:1px solid var(--line);border-radius:12px}
.cyc-item .grow{flex:1;min-width:0;font-size:14px}
.cyc-item .lt{width:34px;height:34px;font-size:18px;border-radius:9px}
.cyc-item .lt.rest{background:var(--surface-2);color:var(--muted);font-size:11px;font-family:var(--f-body);font-weight:600}
.cyc-item .today-btn{height:30px;padding:0 10px;border-radius:8px;font-size:12px;font-weight:700;background:var(--surface-2);color:var(--muted)}
.cyc-item .today-btn[aria-pressed="true"]{background:var(--fg);color:var(--app)}
.cyc-item .x{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;color:var(--muted)}
.offline{position:absolute;left:12px;right:12px;bottom:calc(84px + env(safe-area-inset-bottom,0px));z-index:65;background:var(--danger);color:#fff;padding:10px 14px;border-radius:12px;font-size:13px;font-weight:600}
.resume-bar{display:flex;align-items:center;justify-content:center;gap:8px;margin:0 12px 8px;height:44px;border-radius:12px;background:var(--accent);color:var(--on-accent);font-weight:700;font-size:14px}

/* Novidades: foto, relatório, comparação, medidas e compartilhar */
.avatar{overflow:hidden;flex:none}
.avatar img{width:100%;height:100%;object-fit:cover;display:block}
.avatar.xl{width:120px;height:120px;font-size:52px}
.avatar-btn{position:relative;border-radius:50%;flex:none}
.avatar-btn .cam{position:absolute;right:-2px;bottom:-2px;width:26px;height:26px;border-radius:50%;background:var(--fg);color:var(--app);display:grid;place-items:center;border:2px solid var(--app)}
.icon-btn.avatar-top{padding:0;overflow:hidden;border-radius:50%}
.icon-btn.avatar-top img{width:100%;height:100%;object-fit:cover}
.last-time{font-size:13.5px;color:var(--muted);line-height:1.4}
.last-time b{color:var(--fg);font-variant-numeric:tabular-nums}
.sug{display:flex;gap:12px;align-items:center;background:var(--surface-2);border-radius:14px;padding:12px 14px}
.sug.up{background:var(--good-soft)}
.sug .grow{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0;font-size:13px;color:var(--muted);line-height:1.4}
.sug b{font-size:15px;color:var(--fg)}
.sug.up b{color:var(--good)}
.cmp-i{font-size:11px;font-weight:700;margin-left:6px}
.cmp{font-size:12px;font-weight:700;padding:3px 8px;border-radius:7px;background:var(--surface-2);white-space:nowrap}
.cmp-i.up,.cmp.up{color:var(--good)}
.cmp-i.down,.cmp.down{color:var(--danger)}
.cmp-i.eq,.cmp.eq{color:var(--muted)}
.cmp.up{background:var(--good-soft)}
.cmp.down{background:var(--accent-soft)}
.rep-top{display:flex;align-items:center;gap:12px;font-size:14px}
.rep-ex{display:flex;flex-direction:column;gap:10px;padding:14px}
.rep-head{display:flex;gap:12px;align-items:center;text-align:left;width:100%}
.rep-head .grow{display:flex;flex-direction:column;min-width:0;flex:1}
.rep-head b{font-size:15px}
.rep-head .muted{font-size:12.5px}
.rep-sets{display:flex;flex-wrap:wrap;gap:6px}
.rset{display:inline-flex;align-items:center;gap:6px;font-size:13.5px;font-weight:600;padding:5px 9px;border-radius:9px;background:var(--surface-2);font-variant-numeric:tabular-nums}
.rset i{font-style:normal;font-size:11px;font-weight:700;color:var(--muted)}
.rset.t-tr{background:var(--good-soft)}
.rset.t-rp,.rset.t-drop{background:var(--accent-soft)}
.rep-cmp{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:13px}
.edit-row{display:grid;grid-template-columns:40px minmax(0,1fr) minmax(0,1fr) 36px;gap:8px;align-items:end}
.edit-row .x{width:36px;height:40px;display:grid;place-items:center;color:var(--muted)}
.edit-row .set-n{align-self:center}
.m-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.delta.neutral{background:var(--cobalt-soft);color:var(--cobalt)}
.share-prev{display:grid;place-items:center;background:var(--surface-2);border-radius:14px;overflow:hidden;align-self:center;max-width:100%}
.share-prev.story{aspect-ratio:9/16;height:min(52vh,460px)}
.share-prev.square{aspect-ratio:1/1;width:min(100%,380px)}
.share-prev img{width:100%;height:100%;object-fit:contain;display:block}
.rest.rest-done{background:var(--good-soft);color:var(--good);animation:pulse .9s ease-in-out 3}
.rest.rest-done .grow{font-size:14px}
@keyframes pulse{50%{transform:scale(1.03)}}

/* Bi-set/tri-set, técnicas próprias e séries extras */
.ex-block{display:flex;flex-direction:column;gap:14px}
.ex-block + .ex-block{border-top:2px dashed var(--line);padding-top:20px}
.ex-actions{display:flex;justify-content:space-between;align-items:center;gap:10px}
.grp-banner{display:block;width:100%;text-align:left;background:var(--cobalt-soft);color:var(--fg);border-radius:12px;padding:10px 14px;font-size:13.5px;line-height:1.4}
.grp-banner b{display:block;color:var(--cobalt);font-size:12px;text-transform:uppercase;letter-spacing:.06em}
.tech-note.del{color:var(--danger)}
.item.in-grp{border-left:4px solid var(--cobalt)}
.item.in-grp:not(.grp-last){border-bottom-left-radius:4px;border-bottom-right-radius:4px}
.item.in-grp:not(.grp-first){border-top-left-radius:4px;border-top-right-radius:4px;margin-top:-8px}
.grp-tag{align-self:flex-start;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--cobalt)}
.tools button[aria-pressed="true"]{color:var(--cobalt);background:var(--cobalt-soft)}
.chips-wrap.tpl{gap:6px}
.chips-wrap.tpl .chip{height:30px;font-size:12.5px;padding:0 10px}
.peak-row{display:flex;gap:10px;align-items:flex-end}
.peak-row .mini{width:90px}
.tparams{grid-template-columns:repeat(2,minmax(0,1fr))}
optgroup{font-weight:700}

/* Trocas no treino do dia */
.ex-title-row{display:flex;align-items:flex-start;gap:10px}
.ex-title-row h2{flex:1;min-width:0}
.ex-title-row .icon-btn{margin-top:-2px}
.ex-title-row .icon-btn svg{stroke-width:3.2}
.swap-note{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--cobalt);font-weight:600}
.swap-note b{color:var(--fg)}

/* ---------- Saúde: água, nutrição, notificações ---------- */
.tabbar{grid-template-columns:repeat(6,1fr);padding-left:max(6px,env(safe-area-inset-left,0px));padding-right:max(6px,env(safe-area-inset-right,0px))}
.tab{font-size:10.5px;letter-spacing:-.01em;min-width:0}
.ring{position:relative;flex:none}
.ring svg{display:block}
.ring circle{transition:stroke-dasharray .4s ease}
.ring-in{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.05}
.ring-in b{font-family:var(--f-display);font-size:22px;font-weight:700}
.ring-in small{font-size:11px;color:var(--muted)}
.water-card{display:flex;flex-direction:column;gap:12px}
.water-top{display:flex;align-items:center;gap:14px}
.water-txt{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}
.wt{display:flex;align-items:center;gap:6px;color:var(--cobalt);font-size:14px}
.water-big{font-family:var(--f-display);font-size:28px;font-weight:700;line-height:1.05}
.water-big small{font-size:16px;color:var(--muted);font-weight:600}
.water-btns{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.water-btns .btn{height:auto;padding:8px 6px;flex-direction:column;gap:0;line-height:1.2;font-weight:700}
.water-btns small{font-size:11px;font-weight:500;color:var(--muted)}
.daynav{display:flex;align-items:center;justify-content:space-between;gap:10px}
.daynav b{font-size:16px}
.daynav .icon-btn[disabled]{opacity:.35}
.n-sum{display:flex;flex-direction:column;gap:12px}
.n-sum-top{display:flex;align-items:center;gap:16px}
.n-left{display:flex;flex-direction:column;gap:3px;min-width:0}
.mbar{display:flex;flex-direction:column;gap:5px}
.mbar-top{display:flex;justify-content:space-between;font-size:13.5px}
.mbar-top b small{color:var(--muted);font-weight:500}
.meter.m-p span{background:var(--accent)}
.meter.m-c span{background:var(--p15)}
.meter.m-g span{background:var(--p10)}
.meal{display:flex;flex-direction:column;gap:6px;padding-block:12px}
.meal-head{display:flex;align-items:center;gap:10px}
.meal-head b{flex:1;font-size:16px}
.meal-head span{font-size:12.5px}
.meal .icon-btn{width:34px;height:34px;background:none}
.meal-empty{flex-direction:row;align-items:center;gap:8px;padding-block:8px}
.meal-empty b{flex:1;font-size:15px;color:var(--muted);font-weight:600}
.meal .row .t{font-size:14.5px;font-weight:500}
.meal .row .r b{color:var(--fg);font-size:15px}
.q-head{display:flex;align-items:flex-start;gap:10px;justify-content:space-between}
.fav-on{color:var(--p15)}
.q-inputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.q-inputs input{height:50px;font-size:20px;font-weight:700}
.qprev{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;background:var(--surface-2);border-radius:14px;padding:12px 8px;text-align:center}
.qprev div{display:flex;flex-direction:column}
.qprev b{font-family:var(--f-display);font-size:22px;font-weight:700;line-height:1.1}
.qprev span{font-size:11px;color:var(--muted)}
.scanbox{position:relative;border-radius:16px;overflow:hidden;background:#000;aspect-ratio:4/3}
.scanbox video{width:100%;height:100%;object-fit:cover;display:block}
.scanline{position:absolute;left:12%;right:12%;top:50%;height:2px;background:var(--accent);box-shadow:0 0 12px var(--accent)}
.install-banner{display:flex;align-items:center;gap:12px;padding:12px}
.install-banner .grow{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;font-size:14px}
.install-banner .muted{font-size:12.5px;line-height:1.35}
.install-banner .icon-btn{width:30px;height:30px;background:none}
.good-note{display:flex;align-items:center;gap:8px;color:var(--good);font-weight:600;font-size:14.5px}
.input-sm{height:40px;border-radius:10px;padding:0 10px;font-size:14px}
.mr-row{padding:8px 0}
.mr-check{display:flex;align-items:center;gap:10px;font-weight:500}
.mr-check input,.consent-check input{width:20px;height:20px;accent-color:var(--accent);flex:none}
.consent-list{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:8px;font-size:14px;line-height:1.5;color:var(--muted)}
.consent-check{display:flex;gap:10px;align-items:flex-start;font-size:14px;line-height:1.45;font-weight:500}
.auth-card{display:flex;flex-direction:column;max-width:440px;width:100%;margin:0 auto}
.chart .bar.water{fill:var(--cobalt-soft)}
.chart .goal-line{stroke:var(--fg);stroke-width:1.2;stroke-dasharray:4 4;opacity:.55}
details summary{list-style-position:inside}
@media (max-width:360px){.tab{font-size:9.5px}.tab svg{width:20px;height:20px}}
