/* Move — identidade dos apps PlatyDo (mesma base de apps/shared/base.css do PlatyDo):
   tinta escura, ciano + laranja, títulos condensados em itálico, mono para rótulos.
   Cor própria do app: --app (vermelho-coral, combina com o mapa muscular). Tema escuro único. */
:root {
  --ink: #0A1017;
  --panel: #111B24;
  --charcoal: #1A2530;
  --line: #22323E;
  --deep: #0D4C5C;
  --cyan: #248799;
  --glow: #4FD3E6;
  --teal: #36B4A3;
  --orange: #F45B24;
  --gold: #FFA629;
  --text: #E7F2F3;
  --muted: #8DA4AB;
  --danger: #FF7A6B;
  --good: #5BD6A0;
  --app: #FF4F3F;
  --app2: var(--orange);
  --muscle: #FF4436;
  --muscle-2: #FF9A7A;
  --f-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --f-body: "Outfit", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --rail: 248px;
  --nav-h: 68px;
  --tap: 52px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink); color: var(--text);
  font-family: var(--f-body); font-size: 16px; line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
}
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--glow); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
h1:focus { outline: none; }
h1, h2, h3, h4, p { margin: 0; }
h2 { font-size: 1.15rem; font-weight: 600; }
h3 { font-size: 1.05rem; font-weight: 600; }
h4 { font-weight: 600; }
small { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #000; padding: 8px 12px; z-index: 100; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.hidden, [hidden] { display: none !important; }

/* ---------- Tipografia ---------- */
h1, .display {
  font-family: var(--f-display); font-style: italic; font-weight: 800; text-transform: uppercase;
  font-size: clamp(2rem, 7vw, 2.8rem); line-height: .95; letter-spacing: .005em; text-wrap: balance;
}
.eyebrow, .label, .small-title, .section-title {
  font-family: var(--f-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}
.eyebrow { margin-bottom: 6px; color: var(--glow); }
.eyebrow.accent { color: var(--app); }
.section-title { margin: 14px 0 -8px; }
.small-title { margin-bottom: 2px; }
.lead { color: var(--muted); font-size: 1.05rem; }
.accent { color: var(--app); }
.accent-text { color: var(--gold); font-weight: 600; }
.big-text { font-size: 1.15rem; font-weight: 600; }
.hint { color: var(--muted); font-size: .88rem; }
.center { text-align: center; }
.meta-line { color: var(--muted); font-size: .92rem; }
.error { color: var(--danger); font-size: .9rem; font-weight: 600; }
.review-flag { font-family: var(--f-mono); font-size: .72rem; color: var(--gold); letter-spacing: .02em; }
.note {
  padding: 12px 14px; border-radius: 14px; font-size: .94rem;
  border: 1px dashed color-mix(in srgb, var(--glow) 40%, var(--line));
  background: color-mix(in srgb, var(--deep) 25%, transparent);
}
.tag {
  display: inline-flex; align-items: center; font-family: var(--f-mono); font-size: .7rem; color: var(--gold);
  background: color-mix(in srgb, var(--orange) 14%, transparent); padding: 2px 8px; border-radius: 99px; vertical-align: middle; font-style: normal; text-transform: none; letter-spacing: 0;
}
.badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 26px; padding: 0 8px;
  border-radius: 99px; background: var(--charcoal); font-family: var(--f-mono); font-size: .76rem; color: var(--muted);
}

/* ---------- Shell (igual aos apps PlatyDo) ---------- */
.app { min-height: 100vh; display: grid; grid-template-columns: var(--rail) 1fr; }
.app.no-rail { grid-template-columns: 1fr; }
.rail {
  position: sticky; top: 0; height: 100vh; padding: 24px 16px;
  border-right: 1px solid var(--line);
  background: radial-gradient(ellipse at 0% 0%, rgba(13,76,92,.35), transparent 60%), var(--ink);
  display: flex; flex-direction: column; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); padding: 0 8px; }
.brand-mascot { height: 24px; width: auto; transform: scaleX(-1); }
.wordmark { font-family: "Poppins", var(--f-body); font-weight: 600; font-size: 1.2rem; display: inline-flex; align-items: center; line-height: 1; }
.wordmark .d { color: var(--teal); }
.wordmark svg { width: .82em; height: .82em; margin-left: 1px; margin-top: .08em; }
.app-tag { font-family: var(--f-display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 1rem; color: var(--app); letter-spacing: .04em; margin-left: 2px; }
.brand-lg { padding: 0; margin: 8px 0 22px; }
.brand-lg .brand-mascot { height: 34px; }
.brand-lg .wordmark { font-size: 1.6rem; }
.brand-lg .app-tag { font-size: 1.35rem; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px;
  color: var(--muted); text-decoration: none; font-weight: 500; transition: background .2s, color .2s;
}
.nav-item svg { width: 21px; height: 21px; flex: none; }
.nav-item:hover { color: var(--text); background: color-mix(in srgb, var(--charcoal) 60%, transparent); }
.nav-item[aria-current="page"] { color: var(--text); background: var(--charcoal); }
.nav-item[aria-current="page"] svg { color: var(--app); }
.live-dot { position: absolute; left: 30px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--app); box-shadow: 0 0 10px var(--app); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.rail-foot { margin-top: auto; padding: 0 8px; display: grid; gap: 4px; }
.rail-foot a { color: var(--muted); font-size: .82rem; text-decoration: none; }
.rail-foot a:hover { color: var(--text); }
.main { min-width: 0; padding: 40px max(24px, env(safe-area-inset-right, 0px)) 64px max(24px, env(safe-area-inset-left, 0px)); }

.screen { max-width: 720px; margin: 0 auto; display: grid; gap: 18px; align-content: start; }
.screen.narrow { max-width: 560px; }
.page-head { display: flex; gap: 14px; align-items: flex-end; }
.page-head > div { min-width: 0; }
.sticky-head { position: sticky; top: 0; z-index: 5; padding: 10px 0; margin-top: -10px; background: color-mix(in srgb, var(--ink) 92%, transparent); backdrop-filter: blur(12px); }
.icon-btn {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-size: 1.15rem;
}
.icon-btn:hover { color: var(--text); background: var(--charcoal); }

/* ---------- Painéis ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: grid; gap: 12px; min-width: 0; position: relative; }
.card > * { min-width: 0; }
.card.highlight {
  overflow: hidden; border-radius: 22px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(255,79,63,.20), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(13,76,92,.55), transparent 60%),
    var(--panel);
}
.card.muted { background: color-mix(in srgb, var(--panel) 70%, var(--ink)); }
.card.warn, .note-card { border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.card.warn::before, .note-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; border-radius: 18px 0 0 18px; background: linear-gradient(var(--gold), var(--orange)); }
.rec-top::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; border-radius: 22px 0 0 22px; background: linear-gradient(var(--app), var(--gold)); }
.rec-top { border-radius: 22px; }
.card h2 { font-size: 1.25rem; }
.card h2.small-title { font-size: .74rem; font-weight: 500; }
.card.highlight > h2, .rec-top > h2, .paywall > h2 { font-family: var(--f-display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 1.9rem; line-height: 1; }
.row-actions .btn { font-size: .98rem; }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.list > li > .card { margin: 0; }
.list.compact { gap: 0; }
.list.compact li { padding: 8px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.list.compact li:first-child { border-top: 0; }
.list-link { display: grid; gap: 3px; color: var(--text); text-decoration: none; }
a.card.list-link { transition: border-color .2s; }
a.card.list-link:hover { border-color: color-mix(in srgb, var(--app) 50%, var(--line)); }
.list-link span { color: var(--muted); font-size: .9rem; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.meta li { font-family: var(--f-mono); font-size: .74rem; color: var(--glow); background: color-mix(in srgb, var(--cyan) 18%, transparent); padding: 4px 10px; border-radius: 99px; }
.why, .reasons { padding-left: 20px; margin: 0; display: grid; gap: 4px; }
.why li::marker { color: var(--teal); }
.reasons li { color: var(--gold); }
.split { font-family: var(--f-display); font-style: italic; font-weight: 700; text-transform: uppercase; font-size: 1.1rem; line-height: 1.2; color: var(--text); }
.preview { padding-left: 20px; margin: 0; color: var(--muted); }
.preview .more { list-style: none; margin-left: -20px; font-family: var(--f-mono); font-size: .8rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; list-style: none; padding: 0; margin: 0; text-align: center; }
.stats strong { display: block; font-family: var(--f-display); font-style: italic; font-weight: 900; font-size: 2.2rem; line-height: 1; color: var(--gold); }
.stats span { font-family: var(--f-mono); color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.kv { margin: 0; }
.kv div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.kv div:first-child { border-top: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; }
.details > summary { cursor: pointer; color: var(--glow); font-weight: 600; min-height: 40px; display: flex; align-items: center; list-style-position: inside; }
.details.section > summary { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.details.section { display: grid; gap: 12px; }
.tpl-session { display: grid; gap: 4px; margin-top: 10px; }
.tpl-session h4 small { font-family: var(--f-mono); font-size: .72rem; }
.tpl-session ol { margin: 0; padding-left: 22px; color: var(--muted); }
.tpl-session li small { display: block; font-family: var(--f-mono); font-size: .72rem; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.table th { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.table th, .table td { text-align: left; padding: 8px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; position: relative; isolation: isolate;
  font-family: var(--f-display); font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 1.05rem;
  min-height: 44px; padding: 10px 20px; border-radius: 10px; border: 0; text-decoration: none; color: var(--glow); background: none;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--glow) 50%, transparent);
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:hover:not(:disabled) { background: color-mix(in srgb, var(--glow) 10%, transparent); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn small { font-family: var(--f-body); font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: .85rem; }
/* "Hot": gradiente laranja→dourado inclinado (texto continua reto) */
.btn.primary { color: #fff; box-shadow: none; background: none; }
.btn.primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 10px; transform: skewX(-6deg);
  background: linear-gradient(100deg, var(--orange), #ff7a2f 55%, var(--gold));
  box-shadow: 0 8px 24px -10px rgba(244,91,36,.8);
}
.btn.primary:hover:not(:disabled) { background: none; transform: translateY(-1px); }
.btn.primary:active:not(:disabled) { transform: translateY(1px); }
.btn.secondary { color: var(--glow); }
.btn.ghost { color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover:not(:disabled) { color: var(--text); background: var(--charcoal); }
.btn.danger { color: var(--danger); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--danger) 50%, transparent); }
.btn.danger:hover:not(:disabled) { background: color-mix(in srgb, var(--danger) 10%, transparent); }
.btn.link {
  font-family: var(--f-body); font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 600; font-size: .95rem;
  box-shadow: none; padding: 4px 6px; min-height: 36px; justify-self: start; color: var(--glow);
}
.btn.link:hover { background: none; text-decoration: underline; }
.btn.big { min-height: var(--tap); font-size: 1.35rem; width: 100%; }
.btn.block { width: 100%; }
.btn.small { min-height: 38px; padding: 6px 12px; font-size: .95rem; }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.row-actions .btn:not(.small) { flex: 1 1 140px; }
.session-pick { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.chip-btn {
  min-height: 40px; padding: 8px 14px; border-radius: 99px; font-size: .92rem; color: var(--text);
  background: color-mix(in srgb, var(--gold) 10%, var(--charcoal)); border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
}
.chip-btn:hover { background: color-mix(in srgb, var(--gold) 20%, var(--charcoal)); }

/* ---------- Formulários ---------- */
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 10px; }
legend { font-weight: 600; font-size: 1.05rem; padding: 0; margin-bottom: 10px; }
form.screen > fieldset { margin-top: 6px; }
.field { display: grid; gap: 8px; margin: 0; min-width: 0; }
.field > span, .field > label { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea {
  width: 100%; min-height: 48px; background: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; color: var(--text);
}
textarea { resize: vertical; line-height: 1.6; min-height: 80px; }
input:focus, select:focus, textarea:focus { border-color: var(--glow); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--glow) 20%, transparent); }
input:disabled, select:disabled { opacity: .5; }
.fields-grid { display: grid; grid-template-columns: 1fr; gap: 14px 16px; }
@media (min-width: 520px) { .fields-grid { grid-template-columns: 1fr 1fr; } }
.inline-fields { display: flex; gap: 8px; }
.inline-fields label { display: flex; align-items: center; gap: 6px; flex: 1; color: var(--muted); font-family: var(--f-mono); }
.inline-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.inline-form .field { flex: 1 1 180px; }
.stack-form { display: grid; gap: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.stack-form .btn { justify-self: start; }
.form-nav { display: flex; gap: 12px; align-items: center; margin-top: 6px; }
.form-nav .btn.big { flex: 1; width: auto; }
.bmi-preview { font-weight: 600; font-size: 1.05rem; color: var(--gold); }

/* Cartões de escolha */
.choices { display: grid; gap: 8px; }
.choice input, .chip input, .segmented input, .toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: grid; gap: 2px; padding: 13px 16px; min-height: var(--tap); border-radius: 14px; cursor: pointer;
  border: 1px solid var(--line); background: var(--charcoal); transition: border-color .2s, background .2s;
}
.choice span small { font-size: .85rem; }
.choice span:hover { border-color: color-mix(in srgb, var(--app) 40%, var(--line)); }
.choice input:checked + span {
  border-color: var(--app); background: color-mix(in srgb, var(--app) 12%, var(--charcoal));
  box-shadow: inset 3px 0 0 var(--app);
}
.choice input:focus-visible + span, .chip input:focus-visible + span, .segmented input:focus-visible + span, .toggle input:focus-visible + .toggle-ui { outline: 2px solid var(--gold); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border-radius: 99px; cursor: pointer; font-size: .92rem;
  background: var(--charcoal); border: 1px solid var(--line); color: var(--muted);
}
.chip input:checked + span { color: var(--text); background: color-mix(in srgb, var(--teal) 16%, var(--charcoal)); border-color: color-mix(in srgb, var(--teal) 60%, transparent); }
.chip input:checked + span::before { content: "✓"; color: var(--teal); font-weight: 700; }
.segmented { display: flex; flex-wrap: wrap; background: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 2px; }
.segmented label { flex: 1 1 0; min-width: 44px; }
.segmented span {
  display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 8px; border-radius: 9px; cursor: pointer;
  color: var(--muted); font-weight: 600; font-size: .95rem; white-space: nowrap;
}
.segmented input:checked + span { background: var(--charcoal); color: var(--text); box-shadow: inset 0 -2px 0 var(--app); }
.toggle { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.toggle-ui { width: 44px; height: 26px; border-radius: 99px; background: var(--line); position: relative; transition: background .2s; flex: none; }
.toggle-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--text); transition: transform .2s; }
.toggle input:checked + .toggle-ui { background: var(--app); }
.toggle input:checked + .toggle-ui::after { transform: translateX(18px); }

/* ---------- Barra ativa ---------- */
.active-banner {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin: -12px auto 20px; max-width: 720px;
  padding: 12px 16px; border-radius: 14px; text-decoration: none; font-weight: 600; color: var(--text);
  background: color-mix(in srgb, var(--app) 16%, var(--panel)); border: 1px solid color-mix(in srgb, var(--app) 50%, var(--line));
}
.active-banner::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--app); box-shadow: 0 0 10px var(--app); animation: pulse 1.6s infinite; }
.active-banner [data-timer-text] { font-family: var(--f-mono); color: var(--gold); }

/* ---------- Treino ---------- */
.progress { height: 6px; background: var(--charcoal); border-radius: 99px; overflow: hidden; }
.progress div { height: 100%; background: linear-gradient(90deg, var(--app), var(--gold)); border-radius: inherit; }
.ex-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ex-row {
  width: 100%; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 14px;
  min-height: var(--tap); padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--charcoal); text-align: left;
  transition: border-color .2s;
}
.ex-row:hover { border-color: color-mix(in srgb, var(--app) 50%, var(--line)); }
.ex-num {
  width: 28px; height: 28px; border-radius: 50%; border: 2.5px solid color-mix(in srgb, var(--app) 70%, #3A4E5B);
  display: grid; place-items: center; font-family: var(--f-mono); font-size: .78rem; color: var(--muted);
}
.ex-row.complete .ex-num { background: var(--app); border-color: var(--app); color: #fff; box-shadow: 0 0 14px color-mix(in srgb, var(--app) 70%, transparent); }
.ex-row.complete .ex-row-name { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }
.ex-row-name { font-weight: 500; overflow-wrap: anywhere; }
.ex-row-count { font-family: var(--f-mono); font-size: .78rem; color: var(--muted); white-space: nowrap; }
.ex-card { border-color: color-mix(in srgb, var(--app) 55%, var(--line)); border-radius: 22px; }
.ex-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; border-radius: 22px 0 0 22px; background: linear-gradient(var(--app), var(--gold)); }
.ex-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ex-head h2 { flex: 1; font-family: var(--f-display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 1.6rem; line-height: 1; }
.target { font-family: var(--f-mono); font-size: .8rem; color: var(--glow); }
.last { font-size: 1.02rem; font-weight: 600; color: var(--gold); padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--orange) 12%, var(--charcoal)); }
.last.first { color: var(--muted); background: var(--charcoal); font-weight: 500; }
.sets { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.set { border-radius: 14px; }
.set.done, .set.pending { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; min-height: 52px; background: var(--charcoal); border: 1px solid var(--line); }
.set.done .set-value { flex: 1; font-weight: 600; color: var(--good); }
.set.pending { opacity: .55; }
.set.pending .set-value { color: var(--muted); font-family: var(--f-mono); font-size: .8rem; }
.set.active { padding: 14px; display: grid; gap: 10px; background: color-mix(in srgb, var(--app) 8%, var(--ink)); border: 1px solid color-mix(in srgb, var(--app) 45%, var(--line)); }
.set-label { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); min-width: 70px; }
.set-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stepper-field label { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stepper { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 12px; background: var(--ink); overflow: hidden; }
.stepper input:not([type=checkbox]) {
  border: 0; border-radius: 0; background: transparent; text-align: center; min-width: 0; padding: 8px 2px;
  font-family: var(--f-display); font-style: italic; font-weight: 800; font-size: 1.7rem;
}
.stepper input:focus { box-shadow: inset 0 0 0 2px var(--glow); }
.stepper .step { flex: 0 0 46px; min-height: 58px; border: 0; background: none; color: var(--glow); font-size: 1.4rem; }
.stepper .step:hover { background: var(--charcoal); }
.count { color: var(--muted); font-size: .9rem; }
.count strong { font-family: var(--f-display); font-style: italic; font-weight: 900; font-size: 1.5rem; color: var(--text); }
.ex-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ex-actions .btn { flex: 1 1 140px; }

/* ---------- Timer de descanso (mostrador, como o Foco do Flow) ---------- */
.rest {
  position: sticky; top: 72px; z-index: 6; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center;
  padding: 16px; border-radius: 22px; border: 1px solid color-mix(in srgb, var(--glow) 40%, var(--line));
  background: radial-gradient(ellipse at 0% 50%, rgba(79,211,230,.14), transparent 60%), var(--panel);
  box-shadow: 0 16px 40px -16px rgba(0,0,0,.9);
}
.dial { position: relative; width: 132px; aspect-ratio: 1; }
.dial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dial-track { fill: none; stroke: var(--line); stroke-width: 9; }
.dial-fill { fill: none; stroke: var(--glow); stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset .25s linear; filter: drop-shadow(0 0 8px rgba(79,211,230,.55)); }
.dial-center { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 2px; text-align: center; }
.rest-label { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--glow); }
.rest-time { font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-size: 2.1rem; font-weight: 500; letter-spacing: -.02em; line-height: 1; }
.rest-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rest-actions .btn { min-height: 44px; padding: 8px 10px; }
.rest-actions .btn.primary, .rest-actions .btn.ghost, .rest-actions .btn.big { grid-column: 1 / -1; }
.rest.done { border-color: color-mix(in srgb, var(--gold) 60%, var(--line)); background: radial-gradient(ellipse at 0% 50%, rgba(255,166,41,.2), transparent 60%), var(--panel); animation: glow 1s ease-in-out 3; }
.rest.done .dial-fill { stroke-dashoffset: 0 !important; stroke: var(--gold); filter: drop-shadow(0 0 10px rgba(255,166,41,.6)); }
.rest.done .rest-label { color: var(--gold); }
.rest.done .rest-actions .btn.big { margin: 0; }
@keyframes glow { 50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 40%, transparent), 0 16px 40px -16px rgba(0,0,0,.9); } }
@media (max-width: 380px) { .dial { width: 112px; } .rest-time { font-size: 1.8rem; } }

/* ---------- Mapa muscular (região trabalhada em vermelho) ---------- */
.mm { margin: 0; display: grid; gap: 8px; }
.mm svg { width: 100%; max-width: 360px; display: block; margin: 0 auto; }
.mm-compact svg { max-width: 260px; }
.mm-sides { display: flex; justify-content: space-around; max-width: 360px; width: 100%; margin: 0 auto; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mm-body { fill: #1F2D38; }
.mm-idle { fill: #2B3D4A; }
.mm-primary { fill: var(--muscle); stroke: #FFD2CC; stroke-width: .8; filter: drop-shadow(0 0 3px rgba(255,68,54,.6)); }
.mm-secondary { fill: url(#mm-hatch); stroke: var(--muscle-2); stroke-width: .6; }
.mm-hatch-bg { fill: #6B2A26; }
.mm-hatch-line { stroke: var(--muscle-2); stroke-width: 1.4; }
.mm-legend { margin: 0; display: grid; gap: 4px; }
.mm-legend dt { font-weight: 600; display: inline; }
.mm-legend dt::after { content: ": "; }
.mm-legend dd { margin: 0; display: inline; color: var(--muted); }
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; }
.sw-primary { background: var(--muscle); border: 1px solid #FFD2CC; }
.sw-secondary { background: repeating-linear-gradient(45deg, #6B2A26 0 2px, var(--muscle-2) 2px 3.5px); border: 1px solid var(--muscle-2); }
.mm-unavailable { color: var(--muted); font-style: italic; }

/* ---------- Ficha ---------- */
.plan-sessions, .plan-items { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.plan-item-head { display: flex; align-items: center; gap: 10px; }
.plan-item-head a { color: var(--text); text-decoration: none; }
.mini-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 10px; }
.mini-field { display: grid; gap: 4px; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); position: relative; }
.mini-field input:not([type=checkbox]) { text-align: center; font-weight: 600; }
.mini-field em { position: absolute; right: 10px; bottom: 14px; font-style: normal; color: var(--muted); }

/* ---------- Gráficos ---------- */
.chart { margin: 0; display: grid; gap: 6px; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.bar { fill: color-mix(in srgb, var(--app) 45%, var(--charcoal)); }
.bar.current { fill: var(--app); filter: drop-shadow(0 0 6px rgba(255,79,63,.5)); }
.bar-val { fill: var(--muted); font-family: var(--f-mono); font-size: 10px; text-anchor: middle; }
.bar-lbl { fill: var(--muted); font-family: var(--f-mono); font-size: 9px; text-anchor: middle; }
.target-line { stroke: var(--gold); stroke-dasharray: 2 4; stroke-width: 1.5; }
.line { fill: none; stroke: var(--glow); stroke-width: 2.5; filter: drop-shadow(0 0 4px rgba(79,211,230,.5)); }
.dot { fill: var(--glow); }
.set-list { margin: 0; padding-left: 20px; color: var(--muted); }

/* ---------- Folha (modal) ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(4,8,12,.7); backdrop-filter: blur(4px); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal {
  position: fixed; z-index: 51; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(540px, calc(100% - 32px)); max-height: calc(100vh - 32px); overflow: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 22px;
  display: grid; gap: 14px; animation: rise .25s cubic-bezier(.2,.8,.2,1);
}
@keyframes rise { from { opacity: 0; margin-top: 16px; } }
.modal-close { position: absolute; top: 14px; right: 14px; }
.modal h2 { padding-right: 50px; font-family: var(--f-display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 1.7rem; line-height: 1; }
.modal form { display: grid; gap: 14px; }
.results { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.result {
  width: 100%; text-align: left; display: grid; gap: 2px; padding: 12px 14px; min-height: var(--tap);
  background: var(--charcoal); border: 1px solid var(--line); border-radius: 14px; color: var(--text); transition: border-color .2s;
}
.result:hover { border-color: color-mix(in srgb, var(--app) 50%, var(--line)); }
.result strong { font-weight: 600; }
.results .empty { color: var(--muted); padding: 12px 0; }
.scope-buttons { display: grid; gap: 10px; }
.scope-buttons .btn { flex-direction: column; align-items: flex-start; text-align: left; gap: 2px; padding: 14px 20px; }

/* ---------- Aviso ---------- */
#toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60;
  background: var(--charcoal); border: 1px solid color-mix(in srgb, var(--app) 50%, var(--line)); color: var(--text);
  padding: 12px 18px; border-radius: 12px; box-shadow: 0 16px 40px -12px rgba(0,0,0,.8); max-width: calc(100vw - 32px);
  opacity: 0; pointer-events: none; transition: opacity .2s; text-align: center;
}
#toast.show { opacity: 1; animation: rise .25s; }
#toast:empty { display: none; }

/* ---------- Tempo livre e ficha sob medida ---------- */
.time-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 360px; }
.time-fields input { font-family: var(--f-display); font-style: italic; font-weight: 800; font-size: 1.5rem; text-align: center; }
.gen-sessions { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.gen-sessions > li { background: var(--charcoal); border: 1px solid var(--line); border-radius: 14px; padding: 4px 14px; }
.gen-sessions summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; color: var(--text); }
.gen-name { font-family: var(--f-display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 1.15rem; }
.gen-sessions summary small { font-family: var(--f-mono); font-size: .72rem; }
.gen-sessions ol { margin: 0 0 10px; padding-left: 22px; color: var(--muted); display: grid; gap: 4px; }
.gen-sessions ol small { display: block; font-family: var(--f-mono); font-size: .72rem; }

/* ---------- Régua de IMC ---------- */
.bmi-scale { display: grid; gap: 6px; padding-top: 26px; }
.bmi-bar { position: relative; height: 12px; border-radius: 99px; background: var(--charcoal); }
.bmi-bar i { position: absolute; top: 0; bottom: 0; }
.bmi-bar i:first-child { border-radius: 99px 0 0 99px; }
.bmi-bar i:nth-child(4) { border-radius: 0 99px 99px 0; }
.band-under { background: color-mix(in srgb, var(--glow) 70%, var(--charcoal)); }
.band-normal { background: var(--good); }
.band-over { background: var(--gold); }
.band-obese { background: var(--orange); }
.bmi-marker { position: absolute; top: -4px; bottom: -4px; width: 4px; margin-left: -2px; border-radius: 2px; background: var(--text); box-shadow: 0 0 0 2px var(--ink), 0 0 10px rgba(231,242,243,.6); }
.bmi-marker span { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); font-family: var(--f-mono); font-size: .78rem; color: var(--text); background: var(--charcoal); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; white-space: nowrap; }
.bmi-ticks { position: relative; height: 16px; }
.bmi-ticks span { position: absolute; transform: translateX(-50%); font-family: var(--f-mono); font-size: .7rem; color: var(--muted); }
.bmi-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .78rem; color: var(--muted); }
.bmi-legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.lg-under::before { background: color-mix(in srgb, var(--glow) 70%, var(--charcoal)); }
.lg-normal::before { background: var(--good); }
.lg-over::before { background: var(--gold); }
.lg-obese::before { background: var(--orange); }
.bmi-range { font-weight: 600; color: var(--good); }

/* ---------- Login ---------- */
.auth .card.stack { gap: 14px; }
.auth .btn.big { margin-top: 4px; }
.auth .btn.link { justify-self: center; }
.check-line { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--muted); cursor: pointer; }
.check-line input { width: 22px; height: 22px; flex: none; margin-top: 1px; accent-color: var(--app); }
.sync-line { color: var(--muted); font-size: .9rem; }
.account-card strong { word-break: break-all; }

/* ---------- Imagens de demonstração ---------- */
.ex-demo { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #141E28; }
.ex-demo img, .ex-demo video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.ex-demo-link { display: block; }
.ex-demo-full { border-radius: 22px; }
.ex-thumb { width: 64px; height: 36px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); flex: none; }
.plan-item-link { display: flex; align-items: center; gap: 10px; min-width: 0; }

/* ---------- Edição em bloco ---------- */
.bulk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card > .btn.secondary:not(.block), .card > .btn.link { justify-self: start; }
#customize fieldset { margin-top: 4px; }

/* ---------- Gráficos de evolução ---------- */
.grow { flex: 1; min-width: 0; }
.page-head .btn.small svg { width: 16px; height: 16px; }
.chart-metric { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--glow); }
.grid-line { stroke: var(--line); stroke-dasharray: 2 4; }
.axis-lbl { fill: var(--muted); font-family: var(--f-mono); font-size: 9px; }
.val-lbl { fill: var(--gold); font-family: var(--f-mono); font-size: 11px; font-weight: 700; }
.dot.last { fill: var(--gold); filter: drop-shadow(0 0 6px rgba(255,166,41,.7)); }

/* ---------- Player de música ---------- */
.mini-player {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; overflow: hidden;
  padding: 8px 8px 10px 12px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--teal) 45%, var(--line));
  background: radial-gradient(ellipse at 0% 0%, rgba(54,180,163,.18), transparent 60%), var(--panel);
}
.mp-info { display: flex; align-items: center; gap: 10px; min-width: 0; background: none; border: 0; padding: 4px; text-align: left; border-radius: 10px; }
.mp-text { display: grid; min-width: 0; }
.mp-text strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-text small { font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-controls { display: flex; align-items: center; gap: 2px; }
.mp-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; color: var(--text); display: grid; place-items: center; }
.mp-btn svg { width: 20px; height: 20px; }
.mp-btn:hover { background: var(--charcoal); }
.mp-play { width: 46px; height: 46px; color: #fff; background: linear-gradient(135deg, var(--teal), var(--cyan)); box-shadow: 0 6px 18px -8px rgba(54,180,163,.9); }
.mp-play:hover { background: linear-gradient(135deg, #48c9b7, var(--teal)); }
/* Barra de posição: arrastar para avançar/voltar */
.mp-seek-row { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.mp-seek-row.compact { gap: 8px; margin-top: -2px; }
.mp-time { font-family: var(--f-mono); font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 3.2em; text-align: center; }
.mp-seek {
  -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; --pct: 0%;
}
.mp-seek:disabled { cursor: default; opacity: .5; }
.mp-seek::-webkit-slider-runnable-track {
  height: 6px; border-radius: 99px;
  background: linear-gradient(90deg, var(--teal), var(--glow)) 0 / var(--pct) 100% no-repeat, var(--charcoal);
}
.mp-seek::-moz-range-track { height: 6px; border-radius: 99px; background: var(--charcoal); }
.mp-seek::-moz-range-progress { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--teal), var(--glow)); }
.mp-seek::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; margin-top: -7px; border-radius: 50%;
  background: var(--text); border: 3px solid var(--teal); box-shadow: 0 0 10px rgba(79,211,230,.5);
}
.mp-seek::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--text); border: 3px solid var(--teal); }
.mp-seek:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
.compact .mp-seek { height: 22px; }
.compact .mp-seek::-webkit-slider-thumb { width: 16px; height: 16px; margin-top: -5px; }
.compact .mp-seek::-webkit-slider-runnable-track { height: 5px; }

/* Tela Música */
.now-playing { border-color: color-mix(in srgb, var(--teal) 45%, var(--line)); border-radius: 22px; gap: 16px;
  background: radial-gradient(ellipse at 100% 0%, rgba(54,180,163,.22), transparent 55%), radial-gradient(ellipse at 0% 100%, rgba(13,76,92,.55), transparent 60%), var(--panel); }
.np-head { display: flex; align-items: center; gap: 14px; min-width: 0; }
.np-art { position: relative; width: 64px; height: 64px; flex: none; border-radius: 16px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--deep)); box-shadow: 0 8px 24px -10px rgba(54,180,163,.9); }
.np-art svg { width: 28px; height: 28px; }
.np-art .mp-eq { position: absolute; right: 6px; bottom: 6px; width: 14px; height: 12px; }
.np-art .mp-eq i { background: #fff; }
.np-title { font-family: var(--f-display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 1.45rem; line-height: 1.05; white-space: normal !important; }
.np-controls { display: flex; justify-content: center; align-items: center; gap: 10px; }
.np-controls .mp-btn { position: relative; width: 48px; height: 48px; }
.np-controls .mp-btn svg { width: 24px; height: 24px; }
.np-controls .mp-btn small { position: absolute; font-family: var(--f-mono); font-size: .55rem; color: var(--muted); bottom: 4px; }
.np-controls .mp-btn:disabled { opacity: .35; }
.np-play { width: 64px !important; height: 64px !important; }
.np-play svg { width: 30px !important; height: 30px !important; }
/* Controle mínimo fora da tela Música: tocar/pausar e trocar */
.mini-pill {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 99px;
  background: color-mix(in srgb, var(--panel) 92%, transparent); backdrop-filter: blur(10px);
  border: 1px solid color-mix(in srgb, var(--teal) 50%, var(--line)); box-shadow: 0 10px 28px -10px rgba(0,0,0,.9);
}
.pill-eq { width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; display: grid; place-items: center; }
.pill-eq:hover { background: var(--charcoal); }
.pill-eq .mp-eq { width: 14px; height: 13px; }
.mini-pill .mp-btn { width: 36px; height: 36px; }
.mini-pill .mp-btn svg { width: 17px; height: 17px; }
.mini-pill .pill-play { color: #fff; background: linear-gradient(135deg, var(--teal), var(--cyan)); }
.page-head [data-music="bar"] { flex: none; align-self: center; }
.sticky-head h1 { font-size: clamp(1.5rem, 6vw, 2.2rem); }

/* Volume junto do player */

/* Trocar faixa: lista recolhida */
.track-picker { padding: 6px; gap: 6px; }
.picker-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left;
  padding: 12px 14px; border: 0; border-radius: 14px; background: none; color: var(--text);
}
.picker-toggle:hover { background: var(--charcoal); }
.picker-toggle .mp-text { flex: 1; }
.picker-toggle .mp-text small { color: var(--glow); }
.picker-n { width: 28px; text-align: center; font-family: var(--f-mono); font-size: .8rem; color: var(--muted); flex: none; }
.picker-toggle .chev {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--cyan)); box-shadow: 0 6px 18px -6px rgba(54,180,163,.9);
  transition: transform .25s;
}
.picker-toggle .chev svg { width: 22px; height: 22px; }
.picker-toggle:hover .chev { transform: translateY(2px); }
.track-picker.is-open .chev, .track-picker.is-open .picker-toggle:hover .chev { transform: rotate(180deg); }
[data-music="page"] { display: grid; gap: 16px; }
#track-list { padding: 0 6px 8px; }

.track .mp-text strong { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.track-meta { font-family: var(--f-mono); font-size: .72rem; color: var(--muted); white-space: nowrap; }
.mp-eq { display: inline-flex; align-items: flex-end; gap: 2px; width: 18px; height: 16px; flex: none; }
.mp-eq i { flex: 1; height: 30%; border-radius: 2px; background: var(--teal); }
.mp-eq.on i { animation: eq .9s ease-in-out infinite; }
.mp-eq.on i:nth-child(2) { animation-delay: .2s; }
.mp-eq.on i:nth-child(3) { animation-delay: .45s; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.tracks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.track {
  width: 100%; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 12px; text-align: left;
  padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--charcoal);
}
.track:hover { border-color: color-mix(in srgb, var(--teal) 50%, var(--line)); }
.track.is-current { border-color: var(--teal); background: color-mix(in srgb, var(--teal) 12%, var(--charcoal)); }
.track-n { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); text-align: center; }
.track-bpm { font-family: var(--f-mono); font-size: .7rem; color: var(--muted); }
.music-options { display: grid; gap: 10px; }
input[type=range] { width: 100%; min-height: 0; padding: 0; border: 0; background: none; accent-color: var(--teal); }
.mini-player.in-sheet { margin-bottom: 4px; }
@media (max-width: 860px) {
  .app:has(.floating-player .mini-pill) .main { padding-bottom: calc(var(--nav-h) + 70px + env(safe-area-inset-bottom, 0px)); }
}

.paywall .price { font-family: var(--f-display); font-style: italic; font-weight: 800; font-size: 1.6rem; color: var(--gold); }

/* ---------- Celular: barra inferior ---------- */
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .rail {
    position: fixed; inset: auto 0 0 0; top: auto; height: auto; z-index: 40;
    padding: 6px max(8px, env(safe-area-inset-left, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-right, 0px));
    border-right: 0; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--ink) 92%, transparent); backdrop-filter: blur(12px);
  }
  .rail .brand, .rail-foot { display: none; }
  .nav { flex-direction: row; justify-content: space-around; gap: 0; }
  .nav-item { flex-direction: column; gap: 3px; padding: 7px 4px; font-size: .7rem; flex: 1; text-align: center; border-radius: 10px; min-width: 0; }
  .nav-item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav-item[aria-current="page"] { background: none; }
  .live-dot { left: calc(50% + 6px); top: 4px; }
  .main { padding: 24px max(16px, env(safe-area-inset-right, 0px)) calc(var(--nav-h) + 32px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
  .app.no-rail .main { padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }
  .has-rail #toast { bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom, 0px)); }
  .active-banner { margin-top: -4px; }
}
@media (max-width: 480px) {
  .card { padding: 16px; }
  .set-fields { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stepper .step { flex-basis: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Controle de música flutuante (arrastável) ---------- */
.floating-player { position: fixed; z-index: 35; right: 24px; bottom: 24px; touch-action: none; user-select: none; -webkit-user-select: none; }
.floating-player[data-ctx="workout"] { top: 14px; right: 14px; bottom: auto; }
.floating-player.placed { right: auto; bottom: auto; }
.floating-player.dragging .mini-pill { cursor: grabbing; transform: scale(1.05); box-shadow: 0 18px 40px -8px rgba(0,0,0,.95), 0 0 0 2px var(--teal); }
.mini-pill { transition: transform .15s, box-shadow .15s; }
.pill-grip { width: 22px; height: 34px; border: 0; background: none; color: var(--muted); cursor: grab; display: grid; place-items: center; border-radius: 10px; touch-action: none; }
.pill-grip svg { width: 8px; height: 14px; fill: currentColor; }
.pill-grip:hover { color: var(--text); }
/* No treino, enquanto o controle está na posição padrão (topo), o título não passa por baixo dele */
.app:has(.floating-player[data-ctx="workout"]:not(.placed) .mini-pill) .sticky-head { padding-right: 150px; }
@media (max-width: 860px) {
  .floating-player[data-ctx="app"] { right: 12px; bottom: calc(var(--nav-h) + 10px + env(safe-area-inset-bottom, 0px)); }
  .floating-player[data-ctx="workout"] { top: 10px; right: 10px; }
}
/* =====================================================================
   Reestruturação (22/11/2026): estilo vitrificado, MOVE em destaque
   e menu interativo. Mesmas cores; este bloco tem prioridade sobre o anterior.
   ===================================================================== */
@property --bx { syntax: '<percentage>'; inherits: true; initial-value: 10%; }
:root {
  --glass: rgba(17, 27, 36, .5);
  --glass-2: rgba(30, 44, 56, .42);
  --glass-strong: rgba(12, 20, 28, .74);
  --glass-line: rgba(255, 255, 255, .09);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, .07);
  --glass-shadow: 0 18px 40px -22px rgba(0, 0, 0, .9);
  --blur: blur(18px) saturate(150%);
  --nav-h: 80px;
}

/* Fundo com brilhos das cores da marca, para o vidro aparecer */
body::before {
  content: ""; position: fixed; inset: -10%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 32% at 88% 6%, rgba(255, 79, 63, .30), transparent 70%),
    radial-gradient(45% 40% at 4% 28%, rgba(13, 76, 92, .75), transparent 70%),
    radial-gradient(34% 30% at 72% 62%, rgba(54, 180, 163, .20), transparent 70%),
    radial-gradient(42% 36% at 18% 96%, rgba(244, 91, 36, .20), transparent 70%);
}

/* Painéis de vidro */
.card, .now-playing, .track-picker, .modal, .ex-card {
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-hi), var(--glass-shadow);
}
.card.highlight, .rec-top {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(255, 79, 63, .22), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(13, 76, 92, .45), transparent 60%),
    var(--glass);
}
.now-playing {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(54, 180, 163, .22), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(13, 76, 92, .45), transparent 60%),
    var(--glass);
  border-color: color-mix(in srgb, var(--teal) 40%, var(--glass-line));
}
.ex-card { border-color: color-mix(in srgb, var(--app) 50%, var(--glass-line)); }
.card.muted { background: rgba(17, 27, 36, .35); }
.ex-row, .result, .track, .choice span, .chip span, .set.done, .set.pending, .gen-sessions > li, .last.first, .badge, .ex-num {
  background: var(--glass-2); border-color: var(--glass-line);
}
.choice input:checked + span { background: color-mix(in srgb, var(--app) 16%, rgba(30, 44, 56, .5)); }
.segmented, .stepper { background: rgba(10, 16, 23, .45); border-color: var(--glass-line); }
input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea {
  background: rgba(10, 16, 23, .55); border-color: var(--glass-line);
}
.stepper input:not([type=checkbox]) { background: transparent; }
.sticky-head { background: rgba(10, 16, 23, .55); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border-radius: 0 0 18px 18px; }
.rest { background: radial-gradient(ellipse at 0% 50%, rgba(79, 211, 230, .16), transparent 60%), var(--glass-strong); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.active-banner, #toast, .mini-pill { -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.active-banner { background: color-mix(in srgb, var(--app) 14%, rgba(17, 27, 36, .6)); }
#toast { background: var(--glass-strong); border-color: var(--glass-line); }
.modal-backdrop { background: rgba(4, 8, 12, .55); }

/* Marca: MOVE grande, "by PlatyDo" pequeno */
/* Tudo em "em" do tamanho do MOVE: a assinatura "by PlatyDo" nunca fica mais larga que o nome. */
.brand { flex-direction: column; align-items: flex-start; gap: 0; padding: 0 8px; font-size: 2.3rem; }
.move-mark {
  font-family: var(--f-display); font-style: italic; font-weight: 900; text-transform: uppercase;
  font-size: 1em; line-height: .9; letter-spacing: .01em;
  background: linear-gradient(100deg, var(--app), var(--orange) 60%, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 14px rgba(255, 79, 63, .35));
}
.by-platy { display: inline-flex; align-items: center; gap: .3em; margin-top: .07em; color: var(--muted); font-size: .23em; white-space: nowrap; }
.by-platy .brand-mascot { height: 1.05em; }
.by-platy .by { font-family: var(--f-mono); letter-spacing: .08em; text-transform: uppercase; font-size: .62em; }
.by-platy .wordmark { font-size: .88em; color: var(--text); opacity: .85; }
.brand-lg { margin: 4px 0 18px; font-size: 3.6rem; }

/* Menu lateral (computador): painel de vidro e destaque que desliza */
.rail {
  margin: 16px 0 16px 16px; height: calc(100vh - 32px); top: 16px; border-radius: 26px;
  background: var(--glass-strong); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-line); box-shadow: var(--glass-hi), var(--glass-shadow);
}
.app { grid-template-columns: calc(var(--rail) + 16px) 1fr; }
.app.no-rail { grid-template-columns: 1fr; }
.nav { position: relative; gap: 4px; }
.nav-item { height: 44px; padding: 0 14px; background: none !important; z-index: 1; transition: color .25s; }
.nav-item:hover { color: var(--text); }
.nav-item:active svg { transform: scale(.88); }
.nav-item svg { transition: transform .2s, color .25s; }
.nav-item.is-active { color: var(--text); }
.nav-item.is-active svg { color: var(--app); }
.nav-ind {
  position: absolute; left: 0; right: 0; top: 0; height: 44px; border-radius: 14px; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 79, 63, .20), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 79, 63, .35); box-shadow: 0 0 18px -6px rgba(255, 79, 63, .6);
  transform: translateY(calc(var(--i, 0) * 48px)); transition: transform .45s cubic-bezier(.3, 1.35, .5, 1);
}
.nav-bubble { display: none; }

/* Controle de música: só a alça arrasta */
.floating-player { touch-action: auto; }
.pill-grip { touch-action: none; cursor: grab; }

/* Barra inferior (celular): encaixe curvo e bolha que desliza até o item tocado */
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .rail {
    position: fixed; inset: auto 0 0 0; top: auto; height: auto; margin: 0; z-index: 40;
    padding: 0 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 0;
  }
  .nav {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; height: 64px;
    --bx: calc((var(--i, 0) + .5) * 20%);
    transition: --bx .55s cubic-bezier(.3, 1.3, .5, 1);
  }
  .nav::before {
    content: ""; position: absolute; inset: 0; border-radius: 24px; pointer-events: none;
    background: var(--glass-strong); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
    border: 1px solid var(--glass-line); box-shadow: var(--glass-hi), 0 18px 40px -14px rgba(0, 0, 0, .95);
    -webkit-mask: radial-gradient(circle 37px at var(--bx) -4px, transparent 35.5px, #000 37px);
    mask: radial-gradient(circle 37px at var(--bx) -4px, transparent 35.5px, #000 37px);
  }
  .nav-ind { display: none; }
  .nav-bubble {
    display: grid; place-items: center; position: absolute; z-index: 2; top: -26px; left: var(--bx);
    width: 56px; height: 56px; margin-left: -28px; border-radius: 50%; color: #fff; pointer-events: none;
    background: linear-gradient(135deg, var(--app), var(--orange));
    box-shadow: 0 12px 26px -8px rgba(255, 79, 63, .85), inset 0 1px 0 rgba(255, 255, 255, .35);
  }
  .nav-bubble svg { width: 24px; height: 24px; }
  .nav-item {
    flex-direction: column; justify-content: flex-end; gap: 3px; height: 64px; padding: 0 2px 9px;
    font-size: .66rem; border-radius: 0; text-align: center;
  }
  .nav-item svg { width: 22px; height: 22px; transition: transform .35s cubic-bezier(.3, 1.3, .5, 1), opacity .2s; }
  .nav-item.is-active svg { opacity: 0; transform: translateY(-16px) scale(.6); }
  .nav-item.is-active span { color: var(--text); font-weight: 600; }
  .live-dot { left: calc(50% + 7px); top: 10px; }
  .main { padding-bottom: calc(var(--nav-h) + 36px + env(safe-area-inset-bottom, 0px)); }
  .floating-player[data-ctx="app"] { bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom, 0px)); }
  .has-rail #toast { bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .nav, .nav-ind { transition: none !important; } }
@media (max-width: 860px) {
  .nav::before { background: rgba(34, 50, 62, .82); border-color: rgba(255, 255, 255, .16); }
  .nav-bubble { box-shadow: 0 0 0 5px rgba(10, 16, 23, .55), 0 12px 26px -8px rgba(255, 79, 63, .85), inset 0 1px 0 rgba(255, 255, 255, .35); }
}
@media (max-width: 860px) {
  .nav::before {
    -webkit-mask: radial-gradient(circle 41px at var(--bx) -6px, transparent 39.5px, #000 41px);
    mask: radial-gradient(circle 41px at var(--bx) -6px, transparent 39.5px, #000 41px);
  }
  .nav-bubble { width: 52px; height: 52px; margin-left: -26px; top: -24px;
    box-shadow: 0 12px 26px -8px rgba(255, 79, 63, .85), inset 0 1px 0 rgba(255, 255, 255, .35); }
}

/* =====================================================================
   Interface enxuta (22/11/2026): menos texto, cartões sólidos com bom
   contraste, vidro só no menu inferior. Tem prioridade sobre os blocos acima.
   ===================================================================== */
.card, .track-picker, .modal, .ex-card {
  background: var(--panel); -webkit-backdrop-filter: none; backdrop-filter: none;
  border: 1px solid var(--line); box-shadow: 0 10px 28px -20px rgba(0, 0, 0, .9);
}
.ex-row, .result, .track, .choice span, .chip span, .set.done, .set.pending, .gen-sessions > li, .last.first, .badge, .ex-num { background: var(--charcoal); border-color: var(--line); }
.segmented, .stepper { background: var(--ink); border-color: var(--line); }
input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea { background: var(--ink); border-color: var(--line); }
.stepper input:not([type=checkbox]) { background: transparent; }
.card.highlight, .rec-top { background: radial-gradient(ellipse at 100% 0%, rgba(255, 79, 63, .16), transparent 55%), var(--panel); }
.now-playing { background: radial-gradient(ellipse at 100% 0%, rgba(54, 180, 163, .18), transparent 55%), var(--panel); -webkit-backdrop-filter: none; backdrop-filter: none; }
.sticky-head { background: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; }
.rest { background: radial-gradient(ellipse at 0% 50%, rgba(79, 211, 230, .14), transparent 60%), var(--panel); -webkit-backdrop-filter: none; backdrop-filter: none; }
.active-banner { background: color-mix(in srgb, var(--app) 16%, var(--panel)); -webkit-backdrop-filter: none; backdrop-filter: none; }
#toast { background: var(--charcoal); border-color: var(--line); }
body::before { opacity: .55; }

/* Hoje */
.today-card { overflow: hidden; gap: 10px; border-color: color-mix(in srgb, var(--app) 35%, var(--line));
  background: radial-gradient(ellipse at 100% 0%, rgba(255, 79, 63, .16), transparent 60%), var(--panel); }
.today-card > h2 { font-family: var(--f-display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 2.1rem; line-height: 1; padding-right: 72px; }
.today-art { position: absolute; top: -18px; right: -18px; width: 120px; height: 120px; color: var(--text); opacity: .07; pointer-events: none; }
.today-focus { font-weight: 600; color: var(--text); }
.today-card .btn.primary.big { margin-top: 6px; min-height: 60px; font-size: 1.5rem; }
.row-actions.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row-actions.two .btn { min-height: 48px; font-size: 1rem; }
.week-line { text-align: center; color: var(--muted); font-size: .95rem; }
.week-line strong { color: var(--text); }

/* Seletor de treino e menus */
.pick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pick-row, .session-card { width: 100%; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; text-align: left; color: var(--text); text-decoration: none; }
.pick-row { min-height: 60px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--charcoal); }
.pick-row.is-current { border-color: color-mix(in srgb, var(--app) 60%, var(--line)); }
.letter { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; font-family: var(--f-display); font-style: italic; font-weight: 900; font-size: 1.5rem;
  color: #fff; background: linear-gradient(135deg, var(--app), var(--orange)); }
.pick-text, .session-text { display: grid; gap: 2px; min-width: 0; }
.pick-text small, .session-meta { color: var(--muted); font-size: .88rem; }
.session-focus { color: var(--text); font-size: .92rem; }
.session-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.session-card { padding: 14px 16px; min-height: 76px; }
a.card.session-card:hover { border-color: color-mix(in srgb, var(--app) 50%, var(--line)); }
.chev { color: var(--muted); font-size: 1.6rem; line-height: 1; }
.menu-row { display: flex; align-items: center; min-height: 52px; padding: 0 4px; width: 100%; text-align: left; font-weight: 600; font-size: 1.02rem;
  color: var(--text); background: none; border: 0; border-top: 1px solid var(--line); text-decoration: none; cursor: pointer; }
.menu-details > summary { list-style: none; }
.menu-details > summary::-webkit-details-marker { display: none; }
.menu-details[open] > summary { color: var(--glow); }
.menu-details .kv { padding: 0 4px 8px; }
.modal.sheet h2 { font-size: 1.5rem; }

/* Treino da ficha (ver e editar) */
.plan-rows { list-style: none; margin: 0; padding: 6px 16px; gap: 0; }
.plan-row { display: grid; grid-template-columns: 26px 1fr; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.plan-row:first-child { border-top: 0; }
.row-n { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); text-align: center; min-width: 22px; }
.plan-row-text { display: grid; gap: 2px; min-width: 0; color: var(--text); }
.plan-item { gap: 12px; }
.item-tools { display: grid; grid-template-columns: 48px 48px 1fr 48px; gap: 8px; }
.tool { min-height: 48px; min-width: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--charcoal); color: var(--text); font-size: 1.05rem; font-weight: 600; }
.tool:disabled { opacity: .35; cursor: not-allowed; }
.tool.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }
.tool.wide { font-size: .95rem; }
.danger-link { color: var(--danger) !important; justify-self: center; }
.edit-bar { position: sticky; bottom: calc(var(--nav-h) + 12px + env(safe-area-inset-bottom, 0px)); z-index: 7; display: grid; grid-template-columns: 1fr 2fr; gap: 10px;
  padding: 10px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 16px 36px -14px rgba(0, 0, 0, .95); }
.edit-bar .btn { min-height: 52px; }
@media (min-width: 861px) { .edit-bar { bottom: 16px; } }

/* Ajuste em massa */
.bulk-field { display: grid; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.bulk-field:first-of-type { border-top: 0; }

/* Evolução */
.weight-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.weight-now { font-family: var(--f-display); font-style: italic; font-weight: 900; font-size: 2.4rem; line-height: 1; color: var(--text); }
.details-card > summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; color: var(--glow); }
.weight-log li { gap: 12px; }
.weight-log li span { flex: 1; color: var(--muted); font-size: .9rem; }
.weight-log .tool { min-height: 40px; }
.last-workout { border-color: color-mix(in srgb, var(--app) 45%, var(--line)); }
.empty-line { text-align: center; color: var(--muted); padding: 24px 8px; }

/* Perfil */
.account-card { gap: 8px; }
.settings-list { padding: 4px 16px; gap: 0; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 10px 0;
  color: var(--text); text-decoration: none; border-top: 1px solid var(--line); }
.settings-row:first-child { border-top: 0; }
.settings-row > span:first-child { display: grid; gap: 2px; min-width: 0; }
.settings-row small { font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card > .btn.primary:not(.big), .card > .btn.danger { justify-self: stretch; }

/* Tela de treino: contraste e alvos de toque maiores */
.ex-row { min-height: 60px; }
.set.done, .set.pending { min-height: 56px; }
.ex-actions .btn, .rest-actions .btn { min-height: 52px; }
.screen { gap: 16px; }

/* Folhas no celular: sobem da parte de baixo */
@media (max-width: 860px) {
  .modal.sheet { top: auto; bottom: 0; transform: translateX(-50%); width: 100%; max-height: 85vh;
    border-radius: 22px 22px 0 0; padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)); animation: sheet-up .25s cubic-bezier(.2, .8, .2, 1); }
}
@keyframes sheet-up { from { transform: translate(-50%, 30%); opacity: 0; } }
.account-card .btn.small, .weight-log .tool { min-height: 44px; }

/* Menu com 4 ou 5 itens (a Música some quando não há faixas) */
@media (max-width: 860px) {
  .nav { grid-template-columns: repeat(var(--n, 5), 1fr); --bx: calc((var(--i, 0) + .5) * 100% / var(--n, 5)); }
}
