/* Desenvolvido por: DriveWeb | Rodrigo Soares | © DriveWeb — Todos os direitos reservados
   https://driveweb.pt · contacto@driveweb.pt · WhatsApp +351 913 671 493
   DW Treino · camada UX/UI-02 (v1.15.0, sobre 1.14.2): tipografia carregada, sem glow,
   hierarquia do treino e do descanso, ícones SVG. Tokens/foco/movimento ficam em dwt-theme/dwt-usability. Carregada por último; rollback = remover o <link>. */

/* Fontes locais (SIL OFL 1.1 — ver fonts/OFL-*.txt). Sem pedidos externos: funciona offline. */
@font-face{font-family:'Oswald';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/oswald-500.woff2) format('woff2')}
@font-face{font-family:'Oswald';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/oswald-600.woff2) format('woff2')}
@font-face{font-family:'Oswald';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/oswald-700.woff2) format('woff2')}
@font-face{font-family:'Barlow';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/barlow-500.woff2) format('woff2')}
@font-face{font-family:'Barlow';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/barlow-600.woff2) format('woff2')}
@font-face{font-family:'Barlow';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/barlow-700.woff2) format('woff2')}

/* ---------- Base ---------- */
.dwt{font-size:var(--t-body);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
.dwt .num,.dwt .rest-t,.dwt .stat .v,.dwt .rep .v{font-variant-numeric:tabular-nums}

/* Sem glow neon: o acento vive em dados (barras, séries feitas, timer), não em sombras. */
.dwt .btn.primary,.dwt .tick.on,.dwt .seg .on,.dwt #tabbar .active .ic{box-shadow:none}
.dwt .dwt-plan.on{box-shadow:0 0 0 1px var(--accent)}
.dwt .dwt-lock-veil span{box-shadow:var(--shadow)}
.dwt .bar>i,.dwt .bar i,.dwt .meter i{background:var(--accent)!important}
.dwt .hero{background-image:none}

/* ---------- Texto auxiliar: mínimo 13 px, tracking menor ---------- */
.dwt .brand small,.dwt .hero .eyebrow,.dwt .prog-top .lab,.dwt .sec-h .hint,.dwt .chart-card .leg,
.dwt .field label,.dwt .verdict .wk,.dwt .rep .k,.dwt .rest-mid .lab,.dwt .set-h span,
.dwt .disc,.dwt .lastw,.dwt .ex-meta span,.dwt .info h3 .tag,.dwt .up,.dwt .day-tab span,
.dwt .wd span,.dwt .tabbar button .tl,.dwt .dwt-pro-chip,.dwt .fld .unit{font-size:var(--t-aux)}
.dwt .hero .eyebrow,.dwt .brand small,.dwt .rest-mid .lab,.dwt .verdict .wk{letter-spacing:.07em}
.dwt .day-tab span,.dwt .wd span,.dwt .set-h span,.dwt .field label,.dwt .rep .k{letter-spacing:.04em}
.dwt .fld .unit{font-size:11px;right:6px}   /* dentro do input de 48 px: 11 px é legível e não colide com o valor */
.dwt .disc{line-height:1.5}

/* ---------- Header e ícones ---------- */
.dwt .icon-btn{border-radius:12px}
.dwt .dw-i{width:20px;height:20px;display:block;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.dwt .tabbar .ic .dw-i{width:22px;height:22px}
.dwt .info li .k .dw-i{width:14px;height:14px}
.dwt .day-tab{min-width:60px;padding:9px 12px}

/* ---------- Treino de hoje: exercício aberto é o protagonista ---------- */
.dwt .hero h2{font-size:clamp(24px,7vw,30px);letter-spacing:.01em}
.dwt .ex-info h3{font-size:var(--t-ex)}
.dwt .ex.open{border-color:color-mix(in srgb,var(--accent) 55%,var(--border));box-shadow:inset 3px 0 0 var(--accent),var(--shadow)}
.dwt .ex.done-ex:not(.open){opacity:.72}
.dwt .ex.done-ex:not(.open) .ex-head{padding-block:11px}
.dwt .cue{font-size:14px}

/* Registo de série: alvos de 48 px */
.dwt .set{grid-template-columns:34px 1fr 1fr 48px}
.dwt .fld input,.dwt .tick{height:48px}
.dwt .tick{font-size:19px}

/* Botões e segmentos */
.dwt .btn{height:48px;font-size:15px;transition:transform .12s ease,background-color .15s ease}
.dwt .btn:active,.dwt .seg button:active,.dwt .tabbar button:active{transform:scale(.97)}
.dwt .seg button{height:44px;font-size:14px}
.dwt #reset-day{background:transparent;border-style:dashed}

/* ---------- Descanso: tempo dominante, controlos ao polegar ---------- */
.dwt .rest{bottom:calc(76px + env(safe-area-inset-bottom))}
.dwt .rest-inner{padding:14px 16px;border-radius:20px}
.dwt .rest-t{font-size:clamp(40px,12vw,52px);min-width:auto;letter-spacing:-.01em}
.dwt .rest.done .rest-t{font-size:clamp(34px,10vw,44px)}
.dwt .rest-mid .nm{font-size:14px}
.dwt .rest-btns button{min-height:40px;padding:8px 14px;font-size:14px;border-radius:11px}
.dwt .rest-x{width:56px;height:56px;border-radius:14px;font-size:14px}

/* ---------- Tabbar ---------- */
.dwt .tabbar button{min-height:52px;gap:4px}
.dwt .tabbar button.active .tl{color:var(--text)}

/* ---------- Gráficos / relatório ---------- */
.dwt .stat .v{font-size:clamp(22px,7vw,28px)}
.dwt .sec-h h2{font-size:clamp(19px,5.4vw,22px)}

/* ---------- Pop-ups ---------- */
.dwt .dwt-pop-ic{box-shadow:none}

/* ---------- Ecrãs muito estreitos (320 px) ---------- */
@media (max-width:360px){
  .dwt .set{grid-template-columns:28px 1fr 1fr 46px;gap:6px}
  .dwt .rest-inner{gap:10px;padding:12px}
  .dwt .rest-x{width:50px;height:50px}
  .dwt .day-tab{min-width:54px;padding:8px 9px}
}

/* Movimento reduzido: já tratado em dwt-usability.css (1.14.2). */
