/* Consultoria Individual · Vanessa Rebouças — app da aluna */

:root {
  --bg: #f4efee;
  --surface: #ffffff;
  --rose-50: #fcf4f3;
  --rose-100: #f8e4e3;
  --rose-200: #f0cfcd;
  --rose-300: #e5b6b4;
  --rose-400: #d4919a;
  --wine: #8b1f47;
  --wine-600: #741a3c;
  --wine-900: #3f0e22;
  --ink: #2b1a20;
  --ink-2: #5d4a51;
  --muted: #9a878d;
  --line: #ecdfdf;
  --green: #2c9a55;
  --green-bg: #e6f5eb;
  --night: #1b1418;
  --r-lg: 22px;
  --r: 16px;
  --r-sm: 12px;
  --shadow: 0 1px 2px rgba(63, 14, 34, .06), 0 8px 24px -12px rgba(63, 14, 34, .18);
  --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: "Urbanist", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: #e9e1e0;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.4;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
svg.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.i.fill { fill: currentColor; stroke: none; }

.app {
  position: relative;
  max-width: 480px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  box-shadow: 0 0 60px rgba(63, 14, 34, .12);
  overflow-x: hidden;
}

.boot { min-height: 100vh; display: grid; place-items: center; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--rose-200); border-top-color: var(--wine); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- topo ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: grid; grid-template-columns: 44px 1fr 44px; align-items: center;
  height: 60px; padding: 0 8px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar .icon-btn { width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink-2); border-radius: 12px; }
.topbar .icon-btn:active { background: var(--rose-50); }
.logo { text-align: center; line-height: 1; color: var(--wine); font-family: "Oswald", sans-serif; text-transform: uppercase; }
.logo b { display: block; font-weight: 600; font-size: 18px; letter-spacing: .02em; }
.logo small { display: block; font-weight: 500; font-size: 10.5px; letter-spacing: .04em; color: var(--wine-900); margin-top: 2px; }
.logo img { max-height: 38px; margin: 0 auto; }

.view { padding-bottom: calc(var(--nav-h) + var(--safe-b) + 24px); min-height: calc(100dvh - 60px); }
.view.has-action { padding-bottom: calc(var(--nav-h) + var(--safe-b) + 150px); }

/* ---------- navegação inferior ---------- */
.bottomnav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; z-index: 40;
  height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.bottomnav a, .bottomnav button {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--muted); font-size: 10.5px; font-weight: 600;
}
.bottomnav svg.i { width: 23px; height: 23px; }
.bottomnav .on { color: var(--wine); }
.bottomnav .on::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--wine); }
.bottomnav .lock-dot { position: absolute; top: 9px; left: calc(50% + 6px); width: 15px; height: 15px; border-radius: 50%; background: var(--rose-100); color: var(--wine); display: grid; place-items: center; }
.bottomnav .lock-dot svg.i { width: 9px; height: 9px; stroke-width: 2.6; }

/* ---------- blocos genéricos ---------- */
.pad { padding: 16px; }
.stack > * + * { margin-top: 12px; }
.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.muted { color: var(--muted); }
.row { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.section-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin: 22px 4px 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 20px; border-radius: 14px; font-weight: 700; font-size: 16px;
  transition: transform .12s ease, background .2s, opacity .2s;
}
.btn:active { transform: scale(.98); }
.btn.block { width: 100%; }
.btn-wine { background: var(--wine); color: #fff; box-shadow: 0 10px 24px -10px rgba(139, 31, 71, .7); }
.btn-wine:active { background: var(--wine-600); }
.btn-rose { background: var(--rose-300); color: var(--wine-900); }
.btn-soft { background: var(--rose-100); color: var(--wine); }
.btn-ghost { background: transparent; color: var(--wine); border: 1.5px solid var(--rose-300); }
.btn-white { background: #fff; color: var(--wine-900); }
.btn-sm { height: 40px; font-size: 14px; border-radius: 12px; padding: 0 14px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.pill { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px; border-radius: 99px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.pill-rose { background: var(--rose-300); color: var(--wine-900); }
.pill-wine { background: var(--wine); color: #fff; }
.pill-green { background: var(--green-bg); color: var(--green); }
.pill-white { background: rgba(255, 255, 255, .9); color: var(--wine-900); }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); }
.seg button { height: 38px; border-radius: 10px; font-weight: 700; font-size: 14px; color: var(--ink-2); transition: background .2s, color .2s; }
.seg button.on { background: var(--rose-300); color: var(--wine-900); }

.empty { text-align: center; padding: 28px 20px; color: var(--muted); }
.empty svg.i { width: 32px; height: 32px; margin: 0 auto 8px; color: var(--rose-400); }

/* ---------- login ---------- */
.login { min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); }
.login-hero {
  position: relative; padding: 36px 24px 72px; color: #fff; overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0%, #c25a7d 0%, transparent 60%), linear-gradient(160deg, #a52a57 0%, var(--wine) 45%, var(--wine-900) 100%);
}
.login-hero::after { content: ""; position: absolute; inset: auto -20% -60px -20%; height: 120px; background: var(--bg); border-radius: 50% 50% 0 0; }
.login-hero .logo { color: #fff; text-align: left; }
.login-hero .logo small { color: rgba(255, 255, 255, .8); }
.login-hero h1 { font-size: 34px; line-height: 1.05; font-weight: 800; letter-spacing: -.02em; margin: 44px 0 10px; }
.login-hero p { margin: 0; font-size: 16px; color: rgba(255, 255, 255, .86); max-width: 330px; }
.login-card { position: relative; z-index: 2; margin: -44px 16px 0; padding: 20px; }
.field { display: block; margin-top: 14px; }
.field span { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin: 0 0 6px 2px; }
.field input, .field select, .field textarea {
  width: 100%; height: 52px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line);
  background: var(--rose-50); font-size: 16px; outline: none; transition: border .2s, background .2s;
}
.field textarea { height: auto; padding: 12px 16px; resize: vertical; }
.field input:focus { border-color: var(--rose-400); background: #fff; }
.form-msg { margin-top: 12px; padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; background: var(--rose-100); color: var(--wine-900); }
.form-msg.err { background: #fde8e8; color: #a3192f; }
.legal { font-size: 12px; color: var(--muted); text-align: center; margin: 14px 8px 0; }
.login-foot { margin-top: auto; padding: 24px; text-align: center; font-size: 12px; color: var(--muted); }

/* ---------- home ---------- */
.hero {
  display: flex; align-items: center; gap: 14px; padding: 18px 16px 44px;
  background: linear-gradient(180deg, var(--rose-300), var(--rose-200));
}
.avatar { width: 54px; height: 54px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--wine); color: #fff; font-weight: 800; font-size: 20px; border: 3px solid rgba(255, 255, 255, .7); }
.avatar.sm { width: 36px; height: 36px; font-size: 13px; border-width: 0; }
.hero .kicker { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: var(--wine-600); text-transform: uppercase; }
.hero h1 { margin: 2px 0 0; font-size: 25px; line-height: 1.1; font-weight: 800; color: var(--wine-900); letter-spacing: -.01em; }
.home-body { margin-top: -30px; padding: 0 16px; position: relative; }

.streak { padding: 14px 16px 16px; }
.streak-head { display: flex; align-items: center; gap: 10px; }
.streak-head .flame { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--rose-100); color: var(--wine); }
.streak-head b { display: block; font-size: 15.5px; }
.streak-head small { color: var(--muted); font-size: 12.5px; }
.streak-count { margin-left: auto; display: flex; align-items: baseline; gap: 4px; padding: 6px 10px; background: var(--rose-50); border-radius: 12px; }
.streak-count b { font-size: 22px; line-height: 1; }
.streak-count small { font-size: 12px; color: var(--muted); }
.week { display: grid; grid-template-columns: repeat(7, 1fr); margin-top: 14px; text-align: center; }
.week .d { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; color: var(--muted); }
.week .d span { padding: 1px 5px; border-radius: 6px; }
.week .d.today span { color: var(--wine-900); outline: 1.5px solid var(--wine-900); }
.week .dot { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--rose-200); display: grid; place-items: center; color: #fff; }
.week .today .dot { border-color: var(--rose-400); }
.week .done .dot { background: var(--wine); border-color: var(--wine); }
.week .dot svg.i { width: 15px; height: 15px; stroke-width: 2.8; }

.phase {
  position: relative; display: block; margin-top: 12px; padding: 16px; border-radius: var(--r-lg); color: #fff; overflow: hidden;
  background: linear-gradient(115deg, rgba(40, 10, 22, .92) 0%, rgba(80, 20, 45, .75) 55%, rgba(139, 31, 71, .45) 100%), var(--phase-img, linear-gradient(135deg, #5a1630, #b04a6f));
  background-size: cover; background-position: center;
  box-shadow: var(--shadow);
}
.phase-top { display: flex; align-items: center; gap: 8px; }
.phase-top h3 { margin: 0; font-size: 21px; font-weight: 800; }
.phase-top .chev { margin-left: auto; opacity: .8; }
.phase .until { font-size: 13.5px; opacity: .85; margin-top: 2px; }
.bar { position: relative; height: 6px; border-radius: 9px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 0; background: #fff; border-radius: 9px; transition: width .5s ease; }
.phase-prog { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 12.5px; font-weight: 700; }
.phase-prog .bar { flex: 1; }
.phase .note { font-size: 12px; opacity: .7; margin-top: 8px; }

.next-card { display: flex; align-items: center; gap: 12px; padding: 14px; margin-top: 12px; }
.next-card .ico { width: 46px; height: 46px; border-radius: 14px; background: var(--rose-100); color: var(--wine); display: grid; place-items: center; }
.next-card small { display: block; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--wine); }
.next-card b { display: block; font-size: 17px; }
.next-card .meta { font-size: 12.5px; color: var(--muted); }

.resume-banner { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border-radius: var(--r); background: var(--night); color: #fff; }
.resume-banner .pulse { width: 10px; height: 10px; border-radius: 50%; background: #ff6b8b; box-shadow: 0 0 0 0 rgba(255, 107, 139, .6); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 107, 139, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 107, 139, 0); } }

.trial-banner { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border-radius: var(--r); background: #fff6e5; color: #7a4b00; font-size: 13.5px; font-weight: 600; }
.trial-banner a { margin-left: auto; font-weight: 800; color: var(--wine); white-space: nowrap; }

.tabs-wrap { margin-top: 18px; }

.news { overflow: hidden; margin-top: 14px; }
.news-cover { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden; color: #fff; }
.news-cover img { width: 100%; height: 100%; object-fit: cover; }
.news-cover.whatsapp { background: radial-gradient(70% 70% at 50% 45%, #2fd46b 0%, #0b6b2d 55%, #063d19 100%); }
.news-cover.instagram { background: linear-gradient(135deg, #a52a57, #d4617f 55%, #f2a07b); }
.news-cover.brand { background: radial-gradient(100% 80% at 80% 10%, #c25a7d, transparent 60%), linear-gradient(150deg, var(--wine), var(--wine-900)); }
.news-cover .big-ico { width: 84px; height: 84px; border-radius: 26px; display: grid; place-items: center; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.news-cover .big-ico svg.i { width: 44px; height: 44px; stroke-width: 1.5; }
.news-cover .cover-text { font-family: "Oswald", sans-serif; text-transform: uppercase; font-size: 30px; line-height: 1.05; text-align: center; padding: 0 28px; letter-spacing: .01em; }
.news-body { padding: 16px; }
.news-body h3 { margin: 0 0 6px; font-size: 17px; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; }
.news-body p { margin: 0; color: var(--ink-2); white-space: pre-line; font-size: 14.5px; }
.news-body .btn { margin-top: 14px; }

/* comunidade */
.comm-head { padding: 14px 16px; border-radius: var(--r-lg); background: linear-gradient(180deg, var(--rose-300), var(--rose-200)); color: var(--wine-900); margin-top: 14px; }
.comm-head b { font-size: 20px; font-weight: 800; display: block; }
.feed-item { padding: 14px; margin-top: 10px; }
.feed-item .who { display: flex; align-items: center; gap: 10px; }
.feed-item .who b { display: block; font-size: 15px; }
.feed-item .who small { color: var(--muted); font-size: 12px; }
.feed-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.feed-stats div { padding: 10px 12px; border-radius: 12px; background: var(--rose-50); }
.feed-stats b { display: block; font-size: 17px; }
.feed-stats small { color: var(--muted); font-size: 12px; }
.podium { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 8px; align-items: end; margin-top: 14px; }
.podium .p { padding: 14px 8px; text-align: center; border-radius: var(--r); background: #fff; box-shadow: var(--shadow); }
.podium .p.first { background: #fff7e0; outline: 2px solid #f1c24b; padding: 20px 8px; }
.podium .avatar { margin: 0 auto 6px; position: relative; }
.podium .medal { position: absolute; bottom: -4px; right: -4px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.podium .first .medal { background: #f1a90b; color: #fff; }
.podium b { display: block; font-size: 14px; }
.podium small { color: var(--muted); font-size: 12px; }
.rank-list { margin-top: 12px; overflow: hidden; }
.rank-list .r { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); }
.rank-list .r:first-child { border-top: 0; }
.rank-list .n { width: 18px; font-weight: 700; color: var(--muted); }
.me-tag { color: var(--wine); font-weight: 800; font-size: 11px; margin-left: 4px; }

/* ---------- lista de treinos ---------- */
.wk-list { margin-top: 12px; overflow: hidden; }
.wk { display: flex; align-items: center; gap: 12px; padding: 14px; border-top: 1px solid var(--line); }
.wk:first-child { border-top: 0; }
.wk .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--rose-100); color: var(--wine); }
.wk b { display: block; font-size: 16px; }
.wk small { color: var(--muted); font-size: 12.5px; }
.wk.done { background: var(--green-bg); }
.wk.done .ico { background: #cdeed8; color: var(--green); }
.wk.done b { color: var(--green); }
.wk .ok { width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; }
.wk .ok svg.i { width: 15px; height: 15px; stroke-width: 3; }

/* ---------- treino ---------- */
.wo-head { padding: 16px 16px 0; }
.wo-head .t { display: flex; align-items: center; gap: 8px; }
.wo-head h1 { margin: 0; font-size: 27px; font-weight: 800; letter-spacing: -.02em; }
.wo-head .sess { margin-left: auto; font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.wo-head .sub { color: var(--ink-2); font-size: 14px; }
.wo-head .icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: var(--ink-2); }
.wo-mode { margin: 14px 16px 0; }

.ex-nav { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; margin: 14px 16px 0; text-align: center; }
.ex-nav small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--ink-2); }
.ex-nav b { font-size: 16px; }
.round-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow); color: var(--ink); }
.round-btn[disabled] { opacity: .35; }

.wblock { position: relative; margin: 12px 16px 0; border-radius: var(--r-lg); background: var(--rose-200); overflow: hidden; }
.wblock::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c, var(--wine)); }
.block-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px 0 18px; font-size: 13px; font-weight: 700; color: var(--wine-900); }
.block-head .name { opacity: .75; }
.block-head .lap { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(63, 14, 34, .18); }
.dots i.on { background: var(--wine); }

.stepper { display: flex; align-items: flex-start; padding: 12px 16px 2px 18px; }
.stepper .s { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 700; color: var(--wine-900); }
.stepper .s:last-child { flex: none; }
.stepper .s::after { content: ""; position: absolute; top: 14px; left: calc(50% + 16px); right: calc(-50% + 16px); height: 2px; background: rgba(63, 14, 34, .12); }
.stepper .s:last-child::after { display: none; }
.stepper .s.done::after { background: var(--wine); }
.stepper .c { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; border: 2px solid rgba(63, 14, 34, .2); color: rgba(63, 14, 34, .55); background: transparent; }
.stepper .s.now .c { border-color: var(--wine); color: var(--wine); background: rgba(255, 255, 255, .55); box-shadow: 0 0 0 4px rgba(139, 31, 71, .12); }
.stepper .s.done .c { background: var(--wine); border-color: var(--wine); color: #fff; }
.stepper .s.done .c svg.i { width: 15px; height: 15px; stroke-width: 3; }
.stepper .s .l { min-height: 13px; opacity: .8; }
.stepper .s.lap .c { border-style: dashed; }
.stepper .s.lap .c svg.i { width: 14px; height: 14px; }

.ex { padding: 12px 14px 16px 18px; }
.media { position: relative; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: #160f12; }
.media video, .media img { width: 100%; height: 100%; object-fit: cover; }
.media .badge { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 8px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; }
.media .badge svg.i { width: 13px; height: 13px; }
.media .watch { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 10px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 13px; font-weight: 700; backdrop-filter: blur(6px); }
.media .watch svg.i { width: 12px; height: 12px; }
.media .ph { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: rgba(255, 255, 255, .55); font-size: 13px; font-weight: 600; background: radial-gradient(80% 80% at 50% 30%, #3a1a27, #160f12); }
.media .ph svg.i { width: 34px; height: 34px; margin: 0 auto 6px; }

.ex-title { display: flex; align-items: flex-start; gap: 6px; margin-top: 12px; }
.ex-title h2 { margin: 0; font-size: 22px; line-height: 1.12; font-weight: 800; color: var(--wine-900); letter-spacing: -.01em; }
.ex-title .icon-btn { margin-left: auto; width: 32px; height: 32px; display: grid; place-items: center; color: var(--wine-900); opacity: .7; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 9px; background: rgba(255, 255, 255, .45); color: var(--wine-900); font-size: 12.5px; }
.chip svg.i { width: 14px; height: 14px; opacity: .7; }
.chip b { font-weight: 700; }
.notes { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .45); color: var(--wine-900); font-size: 13.5px; }
.notes p { margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.notes.open p { -webkit-line-clamp: unset; display: block; }
.notes button { margin-top: 2px; font-weight: 800; font-size: 12.5px; color: var(--wine); }
.ex .stepper { padding: 14px 0 0; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.stat { position: relative; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .5); color: var(--wine-900); min-height: 98px; }
.stat .v { font-size: 34px; line-height: 1.05; font-weight: 800; letter-spacing: -.02em; word-break: break-word; }
.stat .v.long { font-size: 26px; }
.stat .v small { font-size: 15px; font-weight: 700; margin-left: 2px; }
.stat .k { font-size: 13px; opacity: .7; }
.stat .edit { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: var(--wine-900); opacity: .6; }
.stat .edit svg.i { width: 16px; height: 16px; }
.stat .hist { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 12.5px; font-weight: 700; color: var(--wine); }
.stat .hist svg.i { width: 13px; height: 13px; }
.presc { margin-top: 8px; padding: 10px 14px 6px; border-radius: 14px; background: rgba(255, 255, 255, .5); color: var(--wine-900); font-size: 13px; }
.presc input[type=range] { width: 100%; margin: 8px 0 0; accent-color: var(--wine); }
.presc .scale { display: flex; justify-content: space-between; font-size: 11px; opacity: .6; }

.done-btn { margin-top: 12px; width: 100%; height: 56px; border-radius: 15px; background: var(--wine); color: #fff; font-weight: 700; font-size: 17px; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 12px 24px -12px rgba(63, 14, 34, .8); transition: transform .12s; }
.done-btn:active { transform: scale(.98); }
.done-btn svg.i { stroke-width: 2.6; }
.back-btn { display: flex; align-items: center; gap: 6px; margin: 10px auto 0; height: 32px; padding: 0 14px; border-radius: 99px; border: 1.5px solid rgba(63, 14, 34, .18); color: var(--wine-900); font-size: 13px; font-weight: 600; opacity: .8; }
.back-btn svg.i { width: 14px; height: 14px; }
.ex-complete { margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border-radius: 14px; background: rgba(255, 255, 255, .55); color: var(--green); font-weight: 800; }

.up-next { display: flex; align-items: center; gap: 10px; margin: 12px 16px 0; padding: 12px 14px; border-radius: var(--r); background: #fff; box-shadow: var(--shadow); width: calc(100% - 32px); text-align: left; }
.up-next small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--muted); }
.up-next b { font-size: 15.5px; }

/* modo livre */
.free-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px 10px 18px; text-align: left; color: var(--wine-900); border-top: 1px solid rgba(63, 14, 34, .08); }
.block-head + .stepper + .free-row, .wblock > .free-row:first-child { border-top: 0; }
.free-row .th { width: 46px; height: 46px; border-radius: 11px; overflow: hidden; flex: none; background: #2b1a20; display: grid; place-items: center; color: rgba(255,255,255,.5); }
.free-row .th img { width: 100%; height: 100%; object-fit: cover; }
.free-row .th svg.i { width: 18px; height: 18px; }
.free-row b { font-size: 15.5px; font-weight: 700; }
.free-row .cnt { font-size: 13px; opacity: .65; }
.free-row.complete .cnt { color: var(--green); opacity: 1; font-weight: 800; }
.free-row.open { background: rgba(255, 255, 255, .25); }
.wblock .ex.in-free { border-top: 1px solid rgba(63, 14, 34, .08); background: rgba(255, 255, 255, .18); }

/* barra de ação do treino */
.action-dock { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + var(--safe-b) + 10px); width: calc(100% - 24px); max-width: 456px; z-index: 35; }
.start-btn { width: 100%; height: 56px; border-radius: 16px; background: var(--rose-300); color: var(--wine-900); font-weight: 800; font-size: 17px; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 12px 30px -12px rgba(63, 14, 34, .5); }
.start-btn svg.i { width: 16px; height: 16px; }
.timer-pill { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 18px; background: #fff; box-shadow: 0 12px 30px -10px rgba(63, 14, 34, .35); }
.timer-pill .pp { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--rose-100); color: var(--wine); }
.timer-pill .pp svg.i { width: 16px; height: 16px; }
.timer-pill b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.timer-pill small { color: var(--muted); font-size: 12.5px; }
.timer-pill .paused { color: var(--wine); font-weight: 800; }
.timer-pill .icon-btn { width: 40px; height: 40px; display: grid; place-items: center; margin-left: auto; color: var(--ink-2); }
.rest { padding: 14px 16px 12px; border-radius: 20px; background: var(--night); color: #fff; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .6); }
.rest .top { display: flex; align-items: center; gap: 8px; }
.rest small.lbl { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; opacity: .75; }
.rest .clock { font-size: 40px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.rest .ctrl { margin-left: auto; display: flex; gap: 6px; }
.rest .ctrl button { height: 42px; min-width: 50px; padding: 0 10px; border-radius: 11px; background: #fff; color: var(--ink); font-weight: 800; font-size: 15px; }
.rest .ctrl .skip { background: var(--rose-300); color: var(--wine-900); }
.rest .foot { margin-top: 10px; font-size: 12.5px; opacity: .7; font-variant-numeric: tabular-nums; }
.rest .rbar { height: 4px; margin-top: 10px; border-radius: 4px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.rest .rbar i { display: block; height: 100%; background: var(--rose-300); transition: width .25s linear; }

/* ---------- folhas e modais ---------- */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(27, 20, 24, .45); opacity: 0; transition: opacity .2s; }
.scrim.on { opacity: 1; }
.sheet { position: fixed; left: 50%; bottom: 0; z-index: 81; width: 100%; max-width: 480px; max-height: 88dvh; overflow: auto; transform: translate(-50%, 100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); background: #fff; border-radius: 24px 24px 0 0; padding: 8px 18px calc(18px + var(--safe-b)); }
.sheet.on { transform: translate(-50%, 0); }
.sheet .grab { width: 40px; height: 5px; border-radius: 9px; background: var(--line); margin: 4px auto 10px; }
.sheet-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.sheet-head h3 { margin: 0; font-size: 19px; font-weight: 800; }
.sheet-head .icon-btn { margin-left: auto; width: 36px; height: 36px; display: grid; place-items: center; color: var(--ink-2); }
.menu-list button, .menu-list a { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 4px; font-size: 16px; font-weight: 600; text-align: left; }
.menu-list .danger { color: #b3123a; }
.menu-list hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.menu-list .val { margin-left: auto; font-size: 14px; color: var(--muted); font-weight: 600; }
.switch { margin-left: auto; width: 44px; height: 26px; border-radius: 99px; background: var(--line); position: relative; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch.on { background: var(--wine); }
.switch.on::after { transform: translateX(18px); }

.num-edit { display: grid; grid-template-columns: 56px 1fr 56px; gap: 10px; align-items: center; margin: 14px 0; }
.num-edit button { height: 56px; border-radius: 14px; background: var(--rose-100); color: var(--wine); font-size: 24px; font-weight: 700; }
.num-edit input { height: 64px; text-align: center; font-size: 32px; font-weight: 800; border-radius: 14px; border: 1.5px solid var(--line); width: 100%; outline: none; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.quick button { height: 34px; padding: 0 12px; border-radius: 10px; background: var(--rose-50); color: var(--wine-900); font-weight: 700; font-size: 14px; }

.hist-day { margin-top: 12px; }
.hist-day b { font-size: 13px; color: var(--ink-2); }
.hist-day .r { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }

.drawer { position: fixed; top: 0; bottom: 0; left: max(0px, calc(50% - 240px)); z-index: 81; width: min(82%, 340px); background: #fff; transform: translateX(-105%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; }
.drawer.on { transform: none; }
.drawer-head { display: flex; align-items: center; gap: 12px; padding: 22px 18px 16px; border-bottom: 1px solid var(--line); }
.drawer-head b { display: block; font-size: 16px; }
.drawer-head small { color: var(--muted); font-size: 12px; }
.drawer nav { flex: 1; overflow: auto; padding: 8px 10px; }
.drawer nav a, .drawer nav button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 10px; border-radius: 12px; font-weight: 600; color: var(--ink-2); text-align: left; }
.drawer nav .on { background: var(--rose-100); color: var(--wine); }
.drawer nav .lk { margin-left: auto; color: var(--rose-400); }
.drawer nav .lk svg.i { width: 15px; height: 15px; }
.drawer nav .lbl { margin: 14px 10px 4px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.drawer-foot { padding: 14px 18px calc(14px + var(--safe-b)); font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }

.player { position: fixed; inset: 0; z-index: 90; background: #000; display: flex; flex-direction: column; }
.player .bar-top { display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px; color: #fff; }
.player .bar-top b { font-size: 15px; }
.player .bar-top button { margin-left: auto; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; }
.player .stage { flex: 1; display: grid; place-items: center; }
.player video, .player iframe { width: 100%; max-height: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }

.lock-sheet { text-align: center; padding: 6px 4px 4px; }
.lock-sheet .lk { width: 64px; height: 64px; border-radius: 20px; margin: 4px auto 12px; display: grid; place-items: center; background: var(--rose-100); color: var(--wine); }
.lock-sheet .lk svg.i { width: 28px; height: 28px; }
.lock-sheet h3 { margin: 0 0 6px; font-size: 21px; font-weight: 800; }
.lock-sheet p { margin: 0 auto 14px; color: var(--ink-2); max-width: 340px; }
.lock-sheet ul { list-style: none; padding: 0; margin: 0 0 16px; text-align: left; }
.lock-sheet li { display: flex; gap: 10px; align-items: center; padding: 8px 0; font-weight: 600; }
.lock-sheet li svg.i { color: var(--wine); width: 18px; height: 18px; }

.toast { position: fixed; left: 50%; top: 72px; z-index: 95; transform: translate(-50%, -20px); opacity: 0; padding: 10px 16px; border-radius: 12px; background: var(--night); color: #fff; font-weight: 600; font-size: 14px; transition: all .25s; pointer-events: none; max-width: 90%; text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- fim do treino ---------- */
.finish { padding: 28px 16px 0; text-align: center; }
.finish .badge-ok { width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; background: var(--wine); color: #fff; box-shadow: 0 0 0 10px rgba(139, 31, 71, .12), 0 0 0 22px rgba(139, 31, 71, .06); animation: pop .5s cubic-bezier(.2, 1.6, .4, 1); }
.finish .badge-ok svg.i { width: 42px; height: 42px; stroke-width: 2.6; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.finish h1 { margin: 10px 0 4px; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.finish .lead { color: var(--ink-2); margin: 0; }
.fin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; text-align: left; }
.fin-grid .card { padding: 14px; }
.fin-grid b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.fin-grid small { color: var(--muted); font-size: 13px; }
.offer { margin-top: 16px; padding: 22px 18px; border-radius: var(--r-lg); color: #fff; text-align: left; background: radial-gradient(100% 80% at 90% 0%, #c25a7d, transparent 60%), linear-gradient(160deg, var(--wine), var(--wine-900)); box-shadow: var(--shadow); }
.offer small { font-size: 11px; font-weight: 800; letter-spacing: .1em; opacity: .75; text-transform: uppercase; }
.offer h3 { margin: 6px 0 8px; font-size: 22px; line-height: 1.15; font-weight: 800; }
.offer p { margin: 0 0 16px; opacity: .88; font-size: 14.5px; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 70; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* ---------- acesso encerrado ---------- */
.expired { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: 32px 20px; text-align: center; }
.expired .logo { margin-bottom: 28px; }
.expired h1 { font-size: 28px; line-height: 1.1; margin: 0 0 10px; font-weight: 800; }
.expired p { color: var(--ink-2); margin: 0 0 18px; }

/* ---------- impressão / PDF ---------- */
.print-area { display: none; }
@media print {
  body { background: #fff; }
  .app, .scrim, .sheet, .drawer, .toast { display: none !important; }
  .print-area { display: block; padding: 0 8mm; font-size: 12px; color: #000; }
  .print-area h1 { font-size: 20px; margin: 0 0 2px; }
  .print-area h2 { font-size: 13px; margin: 14px 0 4px; text-transform: uppercase; }
  .print-area table { width: 100%; border-collapse: collapse; }
  .print-area td, .print-area th { border-bottom: 1px solid #ccc; padding: 5px 4px; text-align: left; vertical-align: top; }
}

@media (min-width: 520px) {
  body { padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
