/* Strong Lab: black, bordeaux (vermelho bordô) and white. Colours V1 approved by the owner 2026-11-12 09:40
   (V1 replaces V0). Owner asked for a light, non-exaggerated sheen instead of flat colours; this is our own
   CSS-only treatment (gradients + 1px highlights), no third-party assets. Contrast (WCAG 2.x), worst case:
   white on --bordo-hi 6.6:1 and on --bordo 8.1:1 (buttons); --bordo-ui on black >= 3:1 (lines, indicators);
   --bordo-text on black 6.08:1 (small text). With prefers-contrast: more, everything falls back to flat colours. */
:root {
  --bg: #000; --surface: #161616; --surface-2: #232323; --field: #0b0b0b; --grid: #4d4d4d;
  --text: #fff; --muted: #b3b3b3; --disabled: #9a9a9a;
  --bordo: #9b1b30;        /* primary: buttons and filled areas with white text */
  --bordo-hi: #b0243b;     /* top of the button sheen (white text 6.6:1) */
  --bordo-lo: #86172a;     /* bottom of the button sheen */
  --bordo-ui: #d32541;     /* lines, borders, indicators on black */
  --bordo-text: #e35d73;   /* small bordeaux text on black/greys */
  --bordo-deep: #550f1a;   /* banners with white text */
  --gloss-btn: linear-gradient(180deg, var(--bordo-hi) 0%, var(--bordo) 52%, var(--bordo-lo) 100%);
  --gloss-surface: linear-gradient(180deg, #1d1d1d 0%, #151515 55%, #121212 100%);
  --edge-light: inset 0 1px 0 rgba(255, 255, 255, .07);
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; color: var(--text); min-height: 100vh; padding: 0 16px 88px;
       font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
       /* faint bordeaux glow behind the header, fading to pure black */
       background: radial-gradient(120% 55% at 50% -12%, rgba(155, 27, 48, .20) 0%, rgba(155, 27, 48, 0) 62%) no-repeat, var(--bg); }
.top { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--bordo-ui); }
.brand { font-weight: 800; letter-spacing: .08em; }
.brand b { color: var(--bordo-text); }
.banner { background: linear-gradient(90deg, #6a1220 0%, var(--bordo-deep) 60%, #400b14 100%); color: var(--text);
          padding: 8px 12px; margin: 12px 0; font-size: 13px; font-weight: 700; border-radius: 6px; box-shadow: var(--edge-light); }
main { max-width: 640px; margin: 0 auto; }
h1.sec { border-top: 1px solid var(--bordo-ui); padding-top: 12px; font-size: 22px; }
h2.sub { font-size: 17px; margin: 0 0 8px; }
.muted { color: var(--muted); }
.status { color: var(--bordo-text); font-weight: 700; }
.card { background: var(--gloss-surface); border-left: 3px solid var(--bordo-ui); padding: 14px; margin: 12px 0; border-radius: 8px;
        box-shadow: var(--edge-light), 0 1px 3px rgba(0, 0, 0, .6); }
.exercise dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 0 0 10px; }
.exercise dt { color: var(--muted); }
.exercise dd { margin: 0; }
.rail { display: flex; gap: 6px; overflow-x: auto; margin: 8px 0; }
.rail-btn { background: var(--gloss-surface); color: var(--text); border: 1px solid var(--grid); padding: 6px 12px; min-height: 44px;
            border-radius: 22px; box-shadow: var(--edge-light); }
.rail-btn.current { background: var(--gloss-btn); border-color: var(--bordo-ui); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22); }
label { display: block; margin: 10px 0 4px; }
input, textarea { width: 100%; padding: 10px; background: var(--field); color: var(--text); border: 1px solid var(--grid); font: inherit;
                  border-radius: 6px; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .7); }
input:focus-visible, textarea:focus-visible, button:focus-visible { outline: 2px solid var(--bordo-ui); outline-offset: 2px; }
input[type="checkbox"] { width: auto; margin-right: 8px; box-shadow: none; }
button { background: var(--gloss-btn); color: var(--text); border: 0; padding: 10px 16px; min-height: 44px; font: inherit; font-weight: 700;
         margin-top: 10px; cursor: pointer; border-radius: 8px;
         box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -1px 0 rgba(0, 0, 0, .25), 0 1px 2px rgba(0, 0, 0, .6); }
button:hover { filter: brightness(1.06); }
button:active { filter: brightness(.94); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .45); }
button.ghost { background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0)); border: 1px solid var(--grid); margin: 0;
               box-shadow: var(--edge-light); }
button.video.off, button:disabled { background: #3a3a3a; color: var(--disabled); cursor: not-allowed; box-shadow: none; filter: none; }
.error { color: #ff6b6b; }
/* bottom tab bar (structure from the approved reference layout; only "Hoje" exists in this skeleton) */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around;
          background: linear-gradient(180deg, #1b1b1b 0%, #0e0e0e 100%); border-top: 1px solid var(--grid); box-shadow: var(--edge-light);
          padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.tabbar span { min-width: 56px; min-height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center;
               font-size: 12px; color: var(--disabled); }
.tabbar span.current { color: var(--text); font-weight: 700; box-shadow: inset 0 3px 0 var(--bordo-ui);
                       background: radial-gradient(80% 90% at 50% 0%, rgba(211, 37, 65, .22), rgba(211, 37, 65, 0) 70%); }
/* accessibility: users who ask for more contrast get flat colours, no sheen */
@media (prefers-contrast: more) {
  body { background: var(--bg); }
  .card, .rail-btn, .tabbar { background: var(--surface); box-shadow: none; }
  button, .rail-btn.current { background: var(--bordo); box-shadow: none; }
  .banner { background: var(--bordo-deep); box-shadow: none; }
  .tabbar span.current { background: none; }
}
