/* DOVYR HEALTH · Treino */

/* ---------- Semana ---------- */
.tr-live { display: flex; align-items: center; gap: 16px; padding: 16px 18px; margin-bottom: 26px; border: 1px solid var(--acid-line); background: var(--acid-wash); border-radius: 14px; }
.tr-live > div { flex: 1; min-width: 0; }
.tr-live b { display: block; font-weight: 550; }
.tr-live small { color: var(--ink-3); font-size: 12.5px; }
.dotpulse { width: 9px; height: 9px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 0 rgba(216, 255, 62, .5); animation: pulse 1.8s infinite; flex: none; }
html[data-theme="light"] .dotpulse { background: var(--acid-text); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(216, 255, 62, .45); } 70% { box-shadow: 0 0 0 10px rgba(216, 255, 62, 0); } 100% { box-shadow: 0 0 0 0 rgba(216, 255, 62, 0); } }
.tr-today { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(0, 1.5fr); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.tr-today-l { padding: 28px 32px 30px 0; border-right: 1px solid var(--rule); }
.tr-name { font: 600 34px/1.08 var(--display); letter-spacing: -.03em; margin: 12px 0 10px; }
.tr-today-l p { margin: 0; font-size: 13.5px; line-height: 1.55; }
.tr-done { color: var(--acid-text); display: flex; align-items: center; gap: 8px; }
.tr-done svg { width: 16px; height: 16px; }
.acts-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tr-wk { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.tr-wk > div { padding: 28px 18px 26px 24px; border-left: 1px solid var(--rule); }
.tr-wk > div:first-child { border-left: 0; }
.tr-wk dt { font-size: 13px; color: var(--ink-3); }
.tr-wk dd { margin: 12px 0 0; font: 600 30px/1 var(--display); letter-spacing: -.025em; white-space: nowrap; }
.tr-wk dd small { font: 500 15px var(--font); color: var(--ink-3); letter-spacing: 0; }
.tr-wk p { margin: 12px 0 0; font-size: 12px; line-height: 1.45; color: var(--ink-4); }
.tr-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--rule); }
.tr-day { padding: 16px 14px 18px; border-left: 1px solid var(--rule); min-width: 0; position: relative; }
.tr-day:first-child { border-left: 0; padding-left: 0; }
.tr-dw { font-size: 12px; color: var(--ink-4); display: block; }
.tr-dw i { font-style: normal; }
.tr-day b { display: block; margin: 8px 0 4px; font-weight: 550; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-day small { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-4); }
.tr-day small svg { width: 13px; height: 13px; }
.tr-day.done small { color: var(--acid-text); }
.tr-day.today::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--acid); }
.tr-day.today:first-child::before { left: 0; }
html[data-theme="light"] .tr-day.today::before { background: var(--acid-text); }
.tr-day.today .tr-dw { color: var(--ink); font-weight: 550; }
.tr-day.rest b { color: var(--ink-4); font-weight: 450; }
.tr-day.miss b { color: var(--ink-3); }
.tr-exsel { width: 280px; }
.ch-svg .vol { fill: var(--line); transform-box: fill-box; transform-origin: 50% 100%; animation: barUp .8s var(--ease) both; animation-delay: var(--d, 0ms); }
.ch-svg .ln.e1 { stroke: var(--ink-3); stroke-dasharray: .012 .01; animation: none; stroke-width: 1.4; }
.ch-svg .pt.on { opacity: 1; animation: fade .5s var(--ease) .6s both; }
.lg-ln.e1 { background: repeating-linear-gradient(90deg, var(--ink-3) 0 4px, transparent 4px 7px); }
.lg-tog { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); opacity: .55; transition: opacity .2s; }
.lg-tog[aria-pressed="true"] { opacity: 1; }
.lg-tog:hover { color: var(--ink); }
.tr-extbl { margin-top: 18px; }
.tr-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.tr-groups { border-top: 1px solid var(--rule); }
.tr-g { display: grid; grid-template-columns: 130px 1fr 40px; gap: 14px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 13.5px; }
.tr-g b { text-align: right; font-weight: 550; }
.tr-gbar { position: relative; height: 8px; border-radius: 4px; background: var(--rule-2); }
.tr-gbar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--ink-3); transform-origin: left; animation: grow .9s var(--ease) both; }
.tr-gbar em { position: absolute; top: -4px; width: 2px; height: 16px; border-radius: 2px; background: var(--acid); transform: translateX(-1px); }
html[data-theme="light"] .tr-gbar em { background: var(--acid-text); }
@keyframes grow { from { transform: scaleX(0); } to { transform: none; } }
.tr-grid { display: flex; gap: 10px; }
.tr-gl { display: grid; grid-template-rows: repeat(7, 1fr); font-size: 10.5px; color: var(--ink-4); padding: 1px 0; }
.tr-gl span:nth-child(1) { grid-row: 1; } .tr-gl span:nth-child(2) { grid-row: 3; } .tr-gl span:nth-child(3) { grid-row: 5; } .tr-gl span:nth-child(4) { grid-row: 7; }
.tr-gc { flex: 1; display: grid; grid-template-columns: repeat(16, 1fr); gap: 4px; }
.tr-wkcol { display: grid; grid-template-rows: repeat(7, 1fr); gap: 4px; }
.tr-wkcol i { aspect-ratio: 1; border-radius: 3px; background: var(--rule); }
.tr-wkcol i.on { background: var(--acid); }
html[data-theme="light"] .tr-wkcol i.on { background: #b5d82a; }
.tr-wkcol i.fut { background: transparent; box-shadow: inset 0 0 0 1px var(--rule-2); }
.tr-wkcol i.now { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.tr-gnote { margin: 14px 0 0; font-size: 12.5px; color: var(--ink-3); }
.tr-gnote b { color: var(--ink); }
.rec { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; background: var(--acid-wash); border: 1px solid var(--acid-line); color: var(--acid-text); font-size: 11px; font-weight: 600; letter-spacing: .02em; }

/* ---------- Treinos e exercícios ---------- */
.tr-plans { border-top: 1px solid var(--rule); }
.tr-plan { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.4fr); grid-template-areas: "h l" "f l"; column-gap: 40px; padding: 22px 0; border-bottom: 1px solid var(--rule); cursor: pointer; transition: background .2s; }
.tr-plan:hover { background: linear-gradient(90deg, transparent, var(--hover) 20%, var(--hover) 80%, transparent); }
.tr-plan-h { grid-area: h; display: flex; flex-direction: column; gap: 14px; }
.tr-plan h3 { margin: 0; font: 600 20px/1.2 var(--display); letter-spacing: -.02em; }
.tr-plan-h p { margin: 4px 0 0; color: var(--ink-3); font-size: 13px; }
.tr-plan-a { display: flex; gap: 8px; }
.tr-plan ol { grid-area: l; list-style: none; margin: 0; padding: 0; counter-reset: ex; }
.tr-plan ol li { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid var(--rule-2); font-size: 13.5px; counter-increment: ex; }
.tr-plan ol li:last-child { border-bottom: 0; }
.tr-plan ol li span::before { content: counter(ex, decimal-leading-zero); color: var(--ink-4); font-size: 11.5px; margin-right: 12px; font-variant-numeric: tabular-nums; }
.tr-plan ol li small { color: var(--ink-3); white-space: nowrap; }
.tr-plan-f { grid-area: f; margin: 14px 0 0; font-size: 12px; color: var(--ink-4); align-self: end; }

/* escolher treino */
.cw-list { display: flex; flex-direction: column; margin-top: 18px; border-top: 1px solid var(--rule); }
.cw-list button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 13px 10px; border-bottom: 1px solid var(--rule); text-align: left; border-radius: 0; transition: background .2s; }
.cw-list button:hover { background: var(--hover); }
.cw-list b { font-weight: 550; }
.cw-list small { color: var(--ink-3); font-size: 12.5px; }

/* montar treino */
.modal.wf { width: min(980px, calc(100vw - 48px)); }
.wf-top { display: grid; grid-template-columns: minmax(200px, 1fr) auto; gap: 16px 20px; align-items: end; margin-bottom: 22px; }
.wf-top .fld:last-child { grid-column: 1 / -1; }
.wf-top .seg { flex-wrap: wrap; }
.wf-head, .wf-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) 64px 120px 96px 36px; gap: 10px; align-items: center; }
.wf-head { font-size: 12px; color: var(--ink-4); padding: 0 0 8px; border-bottom: 1px solid var(--rule); }
.wf-row { padding: 12px 0; border-bottom: 1px solid var(--rule); background: var(--pop); transition: background .2s, opacity .2s; }
.wf-row.drag { opacity: .4; }
.wf-row.over { box-shadow: inset 0 2px 0 var(--acid); }
.wf-row .grip { color: var(--ink-4); cursor: grab; font-size: 13px; letter-spacing: -2px; user-select: none; text-align: center; }
.wf-row .inp { height: 38px; border-radius: 9px; padding: 0 10px; }
.wf-row select.inp { padding-right: 26px; background-position: right 8px center; }
.wf-row .num { text-align: center; }
.wf-ex { display: flex; flex-direction: column; align-items: flex-start; text-align: left; min-width: 0; padding: 4px 8px; margin-left: -8px; border-radius: 8px; transition: background .2s; }
.wf-ex:hover { background: var(--hover); }
.wf-ex b { font-weight: 550; font-size: 14px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf-ex small { font-size: 12px; color: var(--ink-4); }
.wf-x { padding: 0; width: 34px; }
.wf-note { grid-column: 2 / -1; height: 34px !important; font-size: 13px; background: transparent !important; border-color: var(--rule) !important; }

/* lista de exercícios para escolher */
.xp { position: fixed; z-index: 95; width: 360px; background: var(--pop); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; animation: rise .3s var(--ease) both; }
.xp .inp { height: 40px; }
.xp-list { max-height: 260px; overflow: auto; margin-top: 6px; display: flex; flex-direction: column; }
.xp-list button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 9px 10px; border-radius: 9px; text-align: left; }
.xp-list button.on, .xp-list button:hover { background: var(--hover); }
.xp-list button b { font-weight: 500; font-size: 13.5px; }
.xp-list button small { font-size: 12px; color: var(--ink-4); }
.xp-list button[data-used] { opacity: .5; }
.xp-list button.new { flex-direction: row; align-items: center; gap: 8px; color: var(--acid-text); }
.xp-list button.new svg { width: 15px; height: 15px; }
.xp-empty { margin: 8px 10px; font-size: 12.5px; color: var(--ink-3); }

/* ---------- registro da sessão ---------- */
.ts { position: fixed; inset: 0; z-index: 60; background: var(--bg); display: grid; grid-template-columns: 250px minmax(0, 1fr); grid-template-rows: 68px minmax(0, 1fr) 78px; opacity: 0; transform: translateY(12px); transition: opacity .35s var(--ease), transform .45s var(--ease); }
.ts.on { opacity: 1; transform: none; }
.ts-top { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 28px 0 92px; border-bottom: 1px solid var(--rule-2); }
.ts-top > .btn { justify-self: start; }
.ts-title { text-align: center; }
.ts-title b { display: block; font: 600 17px/1.2 var(--display); letter-spacing: -.01em; }
.ts-title small { color: var(--ink-3); font-size: 12px; }
.ts-right { justify-self: end; display: flex; gap: 12px; align-items: center; }
.ts-clock { font: 600 24px/1 var(--display); letter-spacing: -.02em; }
.ts-mini { flex-direction: row; align-items: center; gap: 8px; }
.ts-mini > span { font-size: 12px; color: var(--ink-4); font-weight: 450; }
.ts-mini .inp { height: 36px; border-radius: 9px; }
.ts-mini select.inp { width: 130px; }
.ts-mini .inp-unit { width: 100px; }
.ts-rail { border-right: 1px solid var(--rule-2); padding: 22px 16px; overflow: auto; }
.ts-rk { margin: 0 0 10px 8px; font-size: 12px; color: var(--ink-4); }
.ts-rail ol { list-style: none; margin: 0; padding: 0; }
.ts-rail li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 8px; border-radius: 9px; font-size: 13px; color: var(--ink-2); cursor: pointer; transition: background .2s; }
.ts-rail li:hover { background: var(--hover); }
.ts-rail li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ts-rail li small { color: var(--ink-4); }
.ts-rail li.mid small { color: var(--ink-2); }
.ts-rail li.ok small { color: var(--acid-text); }
.ts-main { overflow: auto; padding: 26px 40px 60px; scroll-padding-top: 20px; }
.ts-ex { max-width: 820px; padding: 22px 0 18px; border-bottom: 1px solid var(--rule); }
.ts-ex:first-child { padding-top: 4px; }
.ts-ex header { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 14px; }
.ts-ex h3 { margin: 0; font: 600 19px/1.25 var(--display); letter-spacing: -.015em; }
.ts-ex header p { margin: 4px 0 0; font-size: 12.5px; color: var(--ink-3); }
.ts-ex header .ts-note { color: var(--ink-2); font-style: italic; }
.ts-ex-r { display: flex; align-items: center; gap: 6px; text-align: right; }
.ts-last { font-size: 12px; color: var(--ink-4); max-width: 320px; }
.ts-sets { display: flex; flex-direction: column; }
.ts-sh, .ts-set { display: grid; grid-template-columns: 44px repeat(var(--cols), 150px) minmax(0, 1fr); gap: 10px; align-items: center; }
.ts-sh { font-size: 11.5px; color: var(--ink-4); padding-bottom: 6px; }
.ts-set { padding: 5px 0; border-radius: 10px; transition: background .25s; }
.ts-set.done { background: linear-gradient(90deg, var(--acid-wash), transparent 62%); }
.ts-n { text-align: center; color: var(--ink-3); font-size: 13px; }
.ts-in { position: relative; }
.ts-in .inp { height: 40px; padding: 0 12px; border-radius: 10px; font-weight: 550; }
.ts-in.load .inp, .ts-in.dist .inp { padding-right: 34px; }
.ts-in b { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); font-weight: 450; font-size: 12px; color: var(--ink-4); pointer-events: none; }
.ts-act { display: flex; justify-content: flex-start; align-items: center; gap: 10px; padding-left: 6px; }
.ts-check { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: transparent; transition: all .25s var(--ease); }
.ts-check svg { width: 18px; height: 18px; }
.ts-check:hover { border-color: var(--acid-line); color: var(--ink-4); }
.ts-check[aria-pressed="true"] { background: var(--acid); border-color: var(--acid); color: var(--on-acid); transform: scale(1.02); }
.ts-ex-foot { display: flex; gap: 6px; margin-top: 8px; margin-left: 46px; }
.ts-add { max-width: 820px; padding: 24px 0; }
.ts-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 22px; padding: 0 28px 0 32px; border-top: 1px solid var(--rule-2); background: color-mix(in srgb, var(--bg) 90%, transparent); }
.ts-sum { margin-left: auto; display: flex; gap: 20px; font-size: 13px; color: var(--ink-3); }
.ts-sum b { color: var(--ink); font-weight: 600; }
.ts-rest { display: flex; align-items: center; gap: 14px; padding: 8px 10px 8px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--raised); animation: rise .35s var(--ease) both; }
.ts-rest-k { font-size: 12px; color: var(--ink-3); max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-rest b { font: 600 22px/1 var(--display); letter-spacing: -.02em; min-width: 56px; }
.ts-rest-bar { width: 110px; height: 3px; border-radius: 3px; background: var(--rule); overflow: hidden; }
.ts-rest-bar i { display: block; height: 100%; background: var(--acid); transform-origin: left; transition: transform .25s linear; }
.ts-rest.over { border-color: var(--acid-line); background: var(--acid-wash); }
.ts-rest.over b { font-size: 15px; color: var(--acid-text); }
.ts-res { display: grid; grid-template-columns: repeat(4, 1fr); margin: 18px 0 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.ts-res > div { padding: 14px 12px 14px 0; }
.ts-res dt { font-size: 12px; color: var(--ink-4); }
.ts-res dd { margin: 6px 0 0; font: 600 22px/1 var(--display); letter-spacing: -.02em; }
.ts-recs { list-style: none; margin: 12px 0 0; padding: 0; }
.ts-recs li { display: flex; justify-content: space-between; padding: 7px 0; font-size: 13.5px; border-bottom: 1px solid var(--rule-2); }
.ts-recs li span { color: var(--acid-text); font-weight: 550; }
.ts-recs li small { color: var(--ink-4); font-weight: 400; }

@media (max-width: 1260px) {
  .tr-today { grid-template-columns: 1fr; }
  .tr-today-l { border-right: 0; border-bottom: 1px solid var(--rule); padding-right: 0; }
  .tr-wk > div:first-child { padding-left: 0; }
  .tr-cols { grid-template-columns: 1fr; gap: 0; }
  .tr-cols > section + section { margin-top: 48px; }
  .tr-day { padding: 14px 10px 16px; }
  .ts { grid-template-columns: 210px minmax(0, 1fr); }
  .ts-main { padding: 22px 28px 60px; }
  .ts-last { max-width: 220px; }
  .wf-head, .wf-row { grid-template-columns: 22px minmax(0, 1fr) 56px 104px 88px 34px; gap: 8px; }
  .tr-plan { grid-template-columns: minmax(210px, .8fr) minmax(0, 1.3fr); column-gap: 28px; }
}
.tr-extbl td.r { white-space: nowrap; }
.tr-extbl .rec { margin-left: 8px; }

/* ================= 0.13 · Treino em painéis ================= */
.tr2-top { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.tr2-name { margin: 4px 0 6px; font: 600 28px/1.15 var(--display); letter-spacing: -.025em; }
.tr2-today .acts-row { margin-top: 18px; flex-wrap: wrap; }
.tr2-exlist { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; counter-reset: ex; }
.tr2-exlist li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--panel-line); font-size: 13px; counter-increment: ex; min-width: 0; }
.tr2-exlist li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr2-exlist li span::before { content: counter(ex) "  "; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.tr2-exlist li small { color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.tr2-exlist li.more { color: var(--ink-4); border: 0; }
.tr2-exlist li.more::before { content: none; }
.tr2-hr { border: 0; border-top: 1px solid var(--panel-line); margin: 20px 0 14px; }
.tr2-donefacts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.tr2-donefacts dt { font-size: 12px; color: var(--ink-4); }
.tr2-donefacts dd { margin: 6px 0 0; font: 600 22px/1 var(--display); letter-spacing: -.02em; }
.tr2-donefacts dd small { font: 500 12px var(--font); color: var(--ink-4); }
.tr2-weekbody { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 26px; align-items: center; }
.tr2-ring { position: relative; text-align: center; }
.tr2-ringc { position: absolute; left: 0; right: 0; top: 0; height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.tr2-ringc b { font: 650 38px/1 var(--display); letter-spacing: -.03em; }
.tr2-ringc small { margin-top: 4px; font-size: 11.5px; color: var(--ink-4); }
.tr2-ring p { margin: 10px 0 0; font-size: 12px; color: var(--ink-3); }
.tr2-cmps { display: flex; flex-direction: column; gap: 16px; }
.tr2-cmph { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.tr2-cmph b { font: 600 17px var(--display); color: var(--ink); }
.tr2-cmpb { height: 7px; border-radius: 4px; background: var(--rule-2); overflow: hidden; }
.tr2-cmpb + .tr2-cmpb { margin-top: 3px; height: 4px; }
.tr2-cmpb i { display: block; height: 100%; border-radius: 4px; background: var(--c, var(--line-strong)); transform-origin: left; animation: grow .9s var(--ease) both; }
.tr2-cmpb.prev i { background: var(--tone-a); opacity: .6; }
.tr2-cmp small { display: block; margin-top: 5px; font-size: 11.5px; color: var(--ink-4); }

.tr2-strip-pn { margin-top: 16px; padding: 14px; }
.tr2-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.tr2-day { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 12px 12px 16px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--panel-line); min-width: 0; }
.tr2-day small { font-size: 11px; color: var(--ink-4); font-weight: 550; }
.tr2-day small i { font-style: normal; }
.tr2-day b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr2-day em { font-style: normal; display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink-4); }
.tr2-day em svg { width: 12px; height: 12px; }
.tr2-day .tr2-bar { position: absolute; left: 12px; right: 12px; bottom: 7px; height: 3px; border-radius: 2px; background: var(--rule); }
.tr2-day.done { background: color-mix(in srgb, var(--acid-fill) 9%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acid-fill) 35%, transparent); }
.tr2-day.done .tr2-bar { background: var(--acid-fill); }
.tr2-day.done em { color: var(--ink-2); }
.tr2-day.plan { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone-a) 40%, transparent); }
.tr2-day.plan .tr2-bar { background: color-mix(in srgb, var(--tone-a) 50%, transparent); }
.tr2-day.today { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.tr2-day.today .tr2-bar { background: var(--tone-a); }
.tr2-day.miss { background: repeating-linear-gradient(135deg, var(--rule-2) 0 3px, transparent 3px 8px); }
.tr2-day.miss b { color: var(--ink-3); }
.tr2-day.rest b { color: var(--ink-4); font-weight: 500; }
.tr2-day.now small { color: var(--ink); }

.tr2-exrow { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 26px; align-items: start; }
.tr2-exrow .tr-extbl { margin-top: 0; }
.ch-svg .tr2-top { stroke: var(--acid-fill); stroke-width: 2.2; }
.ch-svg .tr2-tp { fill: var(--acid-fill); }
.ch-svg .tr2-e1 { stroke: var(--tone-a); }
.ch-svg .tr2-vol { fill: var(--tone-b); fill-opacity: .45; }
.lg-ln.tr2-lgt { background: var(--acid-fill); }
.lg-ln.tr2-lge { background: repeating-linear-gradient(90deg, var(--tone-a) 0 4px, transparent 4px 7px); }
.ch-svg .tr2-vline { stroke: var(--tone-b); stroke-width: 2; }
.ch-svg .tr2-vpt { fill: var(--tone-b); }
.ch-svg .tr2-axv { fill: var(--tone-b); opacity: .9; }
.lg-ln.tr2-lgv { background: var(--tone-b); }

.tr2-mid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.tr2-gwrap { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 22px; align-items: center; }
.tr2-gwrap .tr-g { padding: 8px 0; border-bottom-color: var(--panel-line); font-size: 13px; grid-template-columns: 130px 1fr 36px; }
.tr2-gwrap .tr-g > span { display: inline-flex; align-items: center; gap: 7px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr2-gd { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--gc); }
.tr2-dn { fill: none; stroke: var(--gc); stroke-width: 16; }
.tr-gbar i.g0, .tr-gbar i.g1, .tr-gbar i.g2, .tr-gbar i.g3, .tr-gbar i.g4, .tr-gbar i.g5 { background: var(--gc); }
.g0 { --gc: var(--acid-fill); } .g1 { --gc: var(--tone-a); } .g2 { --gc: var(--tone-b); }
.g3 { --gc: color-mix(in srgb, var(--acid-fill) 50%, transparent); } .g4 { --gc: color-mix(in srgb, var(--tone-a) 50%, transparent); } .g5 { --gc: var(--ink-4); }
.tr-gbar em { background: var(--ink); opacity: .7; }
html[data-theme="light"] .tr-gbar em { background: var(--ink); }
.tr-wkcol { position: relative; }
.tr-wkcol i.on { background: var(--acid-fill); }
html[data-theme="light"] .tr-wkcol i.on { background: var(--acid-fill); }
.tr2-wn { display: block; text-align: center; font-size: 10px; color: var(--ink-4); height: 12px; margin-top: 2px; }
.tr2-wn.hit { color: var(--ink); }
.tr2-cstats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--panel-line); }
.tr2-cstats > div { display: flex; align-items: center; gap: 12px; }
.tr2-cstats p { margin: 0; font-size: 12px; color: var(--ink-3); line-height: 1.45; }
.tr2-cstats p b { color: var(--ink); font-size: 14px; }
.tr2-big { font: 650 30px/1 var(--display); letter-spacing: -.03em; }
.tr-plans { margin-top: 4px; }
@media (max-width: 1260px) {
  .tr2-top, .tr2-mid { grid-template-columns: 1fr; }
  .tr2-exrow { grid-template-columns: 1fr; }
  .tr2-strip { gap: 5px; } .tr2-day { padding: 10px 8px 15px; }
}

/* ================= 0.25 · Treino explicado (passo a passo, semanas A/B, circuito) ================= */
.tr2-top { align-items: start; }
.tr3-wk { font-style: normal; display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; font: 600 11px/1.6 var(--font); letter-spacing: .04em; color: var(--on-acid); background: var(--acid); vertical-align: 3px; }
.tr3-tag { font-style: normal; display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font: 600 10.5px/1.6 var(--font); letter-spacing: .04em; text-transform: uppercase; color: var(--acid-text); background: var(--acid-wash); box-shadow: inset 0 0 0 1px var(--acid-line); vertical-align: 2px; }
.tr3-circ { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--acid-wash); box-shadow: inset 0 0 0 1px var(--acid-line); font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.tr3-circ b { display: block; margin-bottom: 2px; color: var(--acid-text); font-weight: 650; }
.tr3-steps { list-style: none; margin: 14px 0 0; padding: 0; }
.tr3-steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--panel-line); }
.tr3-steps li:last-child { border-bottom: 0; }
.tr3-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 650; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-strong); margin-top: 1px; }
.tr3-t { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.tr3-t b { font-size: 15px; font-weight: 600; line-height: 1.3; }
.tr3-p { flex: none; font: 650 17px/1.2 var(--display); letter-spacing: -.01em; color: var(--acid-text); text-align: right; max-width: 50%; }
.tr3-s { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-4); }
.tr3-how { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.tr3-note { margin: 6px 0 0; font-size: 12.5px; color: var(--ink-2); font-style: italic; }
.tr3-wnote { margin: 12px 0 0; font-size: 13px; color: var(--ink-2); }
.tr3-read { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--rule-2); font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }
.tr3-read b { color: var(--ink-2); font-weight: 600; }
.tr3-hint { margin: 10px 0 0; font-size: 12px; color: var(--ink-4); line-height: 1.5; }

.tr3-rot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.tr3-rot h2 { margin: 0; font: 600 17px/1.2 var(--display); }
.tr3-rot p { margin: 4px 0 0; font-size: 13px; color: var(--ink-3); }
.tr3-guide-t { white-space: pre-wrap; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.tr3-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.tr3-day { display: block; font-size: 11px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 4px; }
.tr3-plan ol li small { color: var(--acid-text); font-weight: 550; }
.tr3-exhow { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; font-size: 12px; color: var(--ink-4); font-weight: 400; max-width: 520px; }

/* editor */
.wf-top .fld.full, .wf-top .full { grid-column: 1 / -1; }
.wf-fhint { margin: -6px 0 0; font-size: 12.5px; color: var(--ink-4); }
.wf-circ { display: grid; grid-template-columns: 120px minmax(0, 220px); gap: 16px; }
.wf-circ[hidden] { display: none; }
.modal.wf.circ .wf-head, .modal.wf.circ .wf-row { grid-template-columns: 22px minmax(0, 1fr) 170px 36px; }

/* treino em andamento */
.ts-k { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 10px; border-radius: 50%; font: 650 12px/1 var(--font); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-strong); vertical-align: 2px; }
.ts-ex header p.ts-tell { font-size: 14px; color: var(--acid-text); font-weight: 550; margin-top: 6px; }
.ts-how { margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.ts-how summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); list-style: none; }
.ts-how summary::-webkit-details-marker { display: none; }
.ts-how summary::before { content: '+'; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 12px; line-height: 1; }
.ts-how[open] summary::before { content: '−'; }
.ts-how p { margin: 6px 0 0; line-height: 1.5; max-width: 560px; }
.ts-in.tgt span { display: flex; align-items: center; height: 40px; padding: 0 12px; border-radius: 10px; background: var(--rule-2); font-size: 13.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-round h3 small { font: 500 13px var(--font); color: var(--ink-4); margin-left: 4px; }
.ts-round.ok h3 { color: var(--acid-text); }
.ts-rlist { display: flex; flex-direction: column; gap: 4px; }
.ts-rrow { display: grid; grid-template-columns: minmax(0, 1fr) auto 40px; gap: 14px; align-items: center; padding: 8px 10px; border-radius: 12px; transition: background .25s; }
.ts-rrow.done { background: linear-gradient(90deg, var(--acid-wash), transparent 70%); }
.ts-rname b { font-size: 14.5px; font-weight: 600; }
.ts-rname small { display: block; margin: 2px 0 0 34px; font-size: 13px; color: var(--acid-text); font-weight: 550; }
.ts-rname .ts-how { margin-left: 34px; }
.ts-rin { display: grid; grid-template-columns: repeat(var(--cols), 130px); gap: 8px; }
.ts-rfoot { margin-left: 0; }
