/* DogZen · app de treino. Mobile-first, centralizado em telas grandes. */
:root {
  --bg: #FFFBF1; --card: #FFFFFF; --ink: #231E19; --muted: #7A7268; --line: #EEE6D8;
  --brand: #AE66F6; --brand-d: #8E44E0; --brand-l: #F3E8FE; --hl: #FFE14D;
  --ok: #1FA968; --bad: #E5484D;
  --yellow: #F2BE1B; --purple: #A970F2; --cyan: #22AFD3; --pink: #EF6E9F; --green: #26B36A;
  --orange: #F0832F; --teal: #17A99C; --blue: #4C7BF4; --red: #E5484D;
  --r: 20px; --shadow: 0 6px 20px rgba(60, 40, 10, .08);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.45; }
#app { max-width: 480px; margin: 0 auto; min-height: 100vh; position: relative; background: var(--bg); }
@media (min-width: 520px) { body { background: #F2EBDD; } #app { box-shadow: 0 0 40px rgba(0,0,0,.06); } }
#app.has-tabs { padding-bottom: 84px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
input, select { font: inherit; color: var(--ink); }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h1 { font-size: 26px; font-weight: 900; letter-spacing: -.3px; }
h2 { font-size: 21px; font-weight: 900; }
h3 { font-size: 18px; font-weight: 900; margin: 24px 0 10px; }
p { margin: 0 0 10px; }
.ic { flex-shrink: 0; display: block; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.center { text-align: center; }
.m0 { margin: 0 0 12px; }
.pad { padding: 14px 16px; margin: 0; }
.lead { color: var(--muted); font-size: 15.5px; margin: 4px 0 16px; }
.hl { background: linear-gradient(180deg, transparent 12%, var(--hl) 12%, var(--hl) 90%, transparent 90%); padding: 0 4px; border-radius: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* cores dos cards */
.c-yellow { --c: var(--yellow); } .c-purple { --c: var(--purple); } .c-cyan { --c: var(--cyan); } .c-pink { --c: var(--pink); }
.c-green { --c: var(--green); } .c-orange { --c: var(--orange); } .c-teal { --c: var(--teal); } .c-blue { --c: var(--blue); } .c-red { --c: var(--red); }

/* botões */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 54px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 800; font-size: 17px; padding: 0 22px; box-shadow: 0 6px 16px rgba(174, 102, 246, .35); transition: transform .12s, background .2s; margin-top: 12px; text-align: center; }
.btn:active { transform: scale(.98); }
.btn:disabled { background: #D9CDE8; box-shadow: none; cursor: default; }
.btn.ghost { background: transparent; color: var(--brand-d); box-shadow: inset 0 0 0 2px var(--brand); }
.btn.white { background: #fff; color: var(--ink); box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.btn.white.ghosted { background: rgba(255,255,255,.22); color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.today.c-yellow .btn.white.ghosted { color: var(--ink); box-shadow: inset 0 0 0 2px rgba(35,30,25,.35); }
.btn.sm { min-height: 44px; font-size: 15px; padding: 0 14px; margin: 0; width: auto; }
.btn.ok { background: var(--ok); box-shadow: none; } .btn.bad { background: #fff; color: var(--bad); box-shadow: inset 0 0 0 2px #F6C9CA; }
.btn.file { cursor: pointer; }
.link { display: block; width: 100%; text-align: center; color: var(--brand-d); font-weight: 700; padding: 10px; font-size: 15px; }
.link.strong { font-weight: 900; }
.pill { background: var(--brand); color: #fff; font-size: 12.5px; font-weight: 800; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.iconbtn { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.iconbtn.round { background: var(--brand-l); color: var(--brand-d); width: 54px; height: 54px; flex-shrink: 0; }
.two-btn { display: flex; gap: 10px; } .two-btn .btn { flex: 1; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid2 .btn { width: 100%; }

/* telas */
.scr { padding: 16px 16px 24px; }
.scr.detail { padding-top: 0; }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 6px; padding: 10px 0; margin: 0 -4px 6px; background: var(--bg); }
.top h2 { flex: 1; font-size: 20px; }
.top-x { min-width: 42px; display: flex; justify-content: flex-end; }
.hello { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 6px 0 16px; }
.hello p { margin: 0; font-weight: 700; }
.title { font-size: 32px; }
.avatar { border-radius: 50%; overflow: hidden; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--brand); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.block { margin-top: 26px; }
.shelf-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-weight: 900; font-size: 18px; gap: 10px; }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.card.pad { padding: 18px; }
.list-card { overflow: hidden; }

/* marca */
.brand { display: flex; align-items: center; gap: 8px; font-size: 20px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand b { font-weight: 900; letter-spacing: -.3px; }

/* estatísticas */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: #fff; border-radius: 16px; padding: 12px 10px; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.stat .ic { color: var(--brand); }
.stat b { font-size: 22px; font-weight: 900; line-height: 1.1; margin-top: 4px; }
.stat span { font-size: 12.5px; color: var(--muted); line-height: 1.2; }
.warn { margin-top: 14px; display: flex; gap: 10px; align-items: center; background: #FFF2D6; border-radius: 14px; padding: 12px 14px; font-size: 14px; cursor: pointer; }

/* card do treino de hoje */
.today { margin-top: 18px; background: var(--c); color: #fff; border-radius: 24px; padding: 18px; box-shadow: 0 10px 24px rgba(0,0,0,.1); }
.today.c-yellow { color: var(--ink); }
.today.solo { margin-top: 4px; }
.today-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.today-head h2 { margin: 2px 0 2px; }
.today-head .small { opacity: .9; margin: 0; }
.eyebrow { font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; opacity: .92; margin: 0; }
.eyebrow.dark { color: var(--brand-d); opacity: 1; }
.ring { position: relative; width: 56px; height: 56px; flex-shrink: 0; }
.ring b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 900; }
.today.c-yellow .ring circle:first-child { stroke: rgba(0,0,0,.12); } .today.c-yellow .ring circle:last-child { stroke: var(--ink); }
.today-list { margin: 14px 0 4px; display: flex; flex-direction: column; gap: 8px; }
.lrow { display: flex; align-items: center; gap: 12px; background: #fff; color: var(--ink); border-radius: 16px; padding: 10px 12px; }
.lrow-t { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.lrow-t small { font-size: 12px; color: var(--muted); font-weight: 700; }
.lrow-t b { font-size: 15.5px; line-height: 1.25; }
.lrow-s { color: var(--muted); }
.lrow.ok .lrow-s { color: #fff; background: var(--ok); border-radius: 50%; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; }
.lrow.ok b { color: var(--muted); }
.mission { display: flex; gap: 10px; align-items: flex-start; background: rgba(255,255,255,.2); border-radius: 14px; padding: 12px; margin-top: 10px; font-size: 14.5px; }
.today.c-yellow .mission { background: rgba(255,255,255,.45); }
.done-msg { display: flex; align-items: center; gap: 10px; font-weight: 800; margin-top: 12px; background: rgba(255,255,255,.22); border-radius: 14px; padding: 12px 14px; }
.done-msg.dark { background: #E6F7EE; color: #12784A; margin: 6px 0; }

.thumb { width: 48px; height: 48px; border-radius: 14px; background: var(--c); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; background: #FFFBF0; }

/* hábitos / checklist */
.check-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 15px; }
.check-row:last-child { border-bottom: 0; }
.cb { width: 24px; height: 24px; border-radius: 8px; border: 2px solid #D5CBBB; display: flex; align-items: center; justify-content: center; color: transparent; flex-shrink: 0; transition: .15s; }
.check-row.on .cb, .opt.sel .cb, .steps li.on .cb { background: var(--ok); border-color: var(--ok); color: #fff; }
.check-row.on > span:last-child { color: var(--muted); text-decoration: line-through; }

/* xixi rápido */
.xixi-quick { padding: 16px; }
.xixi-quick p { margin-bottom: 12px; }

/* sos chips */
.hscroll { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; margin: 0 -16px; padding: 4px 16px 10px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.chips-row { gap: 8px; }
.sos-chip { display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 999px; padding: 10px 14px; font-weight: 800; font-size: 14px; white-space: nowrap; box-shadow: var(--shadow); scroll-snap-align: start; }
.sos-chip .ic { color: var(--c); }

/* card grande (estilo prateleira) */
.bigcard { position: relative; flex: 0 0 80%; min-height: 164px; padding-top: 44px; border-radius: 22px; background: var(--c); color: #fff; padding: 16px; overflow: hidden; scroll-snap-align: start; display: flex; align-items: flex-end; box-shadow: 0 8px 18px rgba(0,0,0,.08); }
.bigcard.c-yellow { color: var(--ink); }
.bc-t { position: relative; z-index: 2; display: flex; flex-direction: column; max-width: 60%; }
.bc-t b { font-size: 18px; font-weight: 900; line-height: 1.15; }
.bc-t small { font-size: 13px; opacity: .92; margin-top: 4px; line-height: 1.3; }
.badge { position: absolute; top: 12px; left: 12px; z-index: 2; background: #fff; color: var(--ink); font-size: 11.5px; font-weight: 900; padding: 3px 10px; border-radius: 999px; }
.art { position: absolute; right: -12px; bottom: -12px; width: 116px; height: 116px; border-radius: 50%; background: #FFFBF0; display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--c); box-shadow: 0 0 0 8px rgba(255,255,255,.18); }
.art img { width: 86%; height: 86%; object-fit: contain; }
.art.lg { position: relative; right: auto; bottom: auto; width: 120px; height: 120px; flex-shrink: 0; }

/* linhas de desafio */
.drow { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: #fff; border-radius: 18px; box-shadow: var(--shadow); margin-bottom: 10px; }
.dimg { width: 56px; height: 56px; border-radius: 50%; background: var(--c); color: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; box-shadow: 0 0 0 3px var(--c); }
.dimg img { width: 100%; height: 100%; object-fit: contain; background: #FFFBF0; }
.drow-t { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.drow-t b { font-size: 16px; }
.drow-t small { color: var(--muted); font-size: 13px; font-weight: 700; }
.drow > .ic { color: var(--muted); }

/* barra */
.bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--brand); border-radius: 99px; transition: width .5s; }
.bar.thin { height: 6px; }
.prog-line { display: flex; align-items: center; gap: 10px; margin: 6px 0 10px; }
.prog-line .bar { flex: 1; }

/* dica e caixas */
.tip { display: flex; gap: 12px; background: #FFF6CC; border-radius: 18px; padding: 14px 16px; margin: 14px 0; }
.tip .ic { color: #B98A00; margin-top: 2px; }
.tip p { margin: 2px 0 0; font-size: 14.5px; }
.note { display: flex; gap: 8px; align-items: center; background: #FFF2D6; border-radius: 12px; padding: 10px 12px; font-size: 13.5px; margin: 0 0 12px; }
.note-box { display: flex; gap: 10px; background: var(--brand-l); border-radius: 16px; padding: 12px 14px; margin: 14px 0; font-size: 14.5px; }
.note-box .ic { color: var(--brand-d); margin-top: 2px; }
.note-box.age { background: #E8F6FB; } .note-box.age .ic { color: #1B8DB0; }
.avoid { background: #FDECEC; border-radius: 16px; padding: 14px 16px; margin: 14px 0; }
.avoid b { display: flex; align-items: center; gap: 6px; color: #B42318; }
.avoid ul { margin: 8px 0 0; padding-left: 20px; font-size: 14.5px; }
.goal { display: flex; gap: 10px; background: #E6F7EE; border-radius: 16px; padding: 14px; margin: 14px 0; font-size: 14.5px; }
.goal .ic { color: #12784A; margin-top: 2px; }
.kept { display: flex; gap: 10px; background: #E6F7EE; border-radius: 14px; padding: 12px; font-size: 14.5px; margin: 10px 0; }

/* lição */
.lesson { padding-bottom: 110px; }
.l-hero { background: var(--c); color: #fff; padding: 0 16px 22px; border-radius: 0 0 28px 28px; }
.l-hero.c-yellow { color: var(--ink); }
.l-hero .top { background: transparent; position: static; color: inherit; }
.l-hero-in { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.l-hero h1 { margin: 4px 0 10px; font-size: 25px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; }
.meta span { display: inline-flex; align-items: center; gap: 4px; background: rgba(255,255,255,.25); border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 800; }
.l-body { padding: 4px 16px 10px; }
.l-body p { font-size: 16px; }
.need { padding-left: 20px; margin: 0; } .need li { margin-bottom: 4px; }
.steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); cursor: pointer; font-size: 15.5px; }
.steps.plain li { cursor: default; }
.steps li > span:nth-child(2) { flex: 1; }
.steps li.on > span:nth-child(2) { color: var(--muted); }
.num { width: 26px; height: 26px; border-radius: 50%; background: var(--brand-l); color: var(--brand-d); font-weight: 900; font-size: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.l-foot { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; display: flex; gap: 10px; align-items: center; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(255,251,241,0), var(--bg) 30%); z-index: 6; }
.l-foot .btn { margin: 0; flex: 1; }

/* sheet */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet-bg { position: absolute; inset: 0; background: rgba(35,30,25,.45); opacity: 0; transition: opacity .25s; }
.sheet { position: relative; width: 100%; max-width: 480px; background: var(--bg); border-radius: 26px 26px 0 0; padding: 18px 18px calc(22px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .25s ease-out; max-height: 90vh; overflow: auto; }
.sheet-wrap.on .sheet-bg { opacity: 1; } .sheet-wrap.on .sheet { transform: none; }
.sheet-h { display: flex; justify-content: space-between; align-items: center; }
.rate { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.rate-b { background: #fff; border-radius: 16px; padding: 14px 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 800; box-shadow: var(--shadow); border: 2px solid transparent; }
.rate-b .ic { color: var(--brand); }
.rate-b.on { border-color: var(--brand); background: var(--brand-l); }
.lbl { font-weight: 800; margin: 16px 0 8px; font-size: 15px; }
.seg { display: flex; background: #fff; border-radius: 14px; padding: 4px; gap: 4px; box-shadow: var(--shadow); margin-bottom: 12px; }
.seg button { flex: 1; padding: 9px 4px; border-radius: 10px; font-size: 13px; font-weight: 800; color: var(--muted); line-height: 1.2; }
.seg button.on { background: var(--brand); color: #fff; }
.celebrate { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 6px; position: relative; overflow: hidden; }
.celebrate h2 { font-size: 24px; margin-top: 6px; }
.cf-box { position: absolute; inset: 0; pointer-events: none; }
.cf { position: absolute; top: -10px; width: 8px; height: 12px; border-radius: 2px; animation: cf 1.6s ease-in forwards; }
@keyframes cf { to { transform: translate(var(--dx), 340px) rotate(540deg); opacity: 0; } }

/* toast */
.toast { position: fixed; left: 50%; bottom: 100px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 14px; font-weight: 700; font-size: 14.5px; display: flex; gap: 8px; align-items: center; max-width: 92vw; width: max-content; z-index: 60; opacity: 0; transition: .25s; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast .ic { color: var(--hl); }

/* barra de abas */
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; background: #fff; display: flex; padding: 8px 4px calc(8px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 20px rgba(60,40,10,.08); z-index: 10; border-radius: 22px 22px 0 0; }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11.5px; font-weight: 800; color: #A39A8E; padding: 4px 0; }
.tabbar a.on { color: var(--brand); }

/* login e onboarding */
.auth { padding: 18px 16px 30px; min-height: 100vh; display: flex; flex-direction: column; }
.auth-head { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 8px 0 18px; }
.auth-art .art { position: relative; right: auto; bottom: auto; width: 150px; height: 150px; box-shadow: 0 0 0 10px var(--brand-l); color: var(--brand); }
.auth-card { background: #fff; border-radius: 26px; padding: 22px 18px; box-shadow: var(--shadow); }
.auth-card h1 { margin-bottom: 6px; }
.auth-card form { margin-top: 14px; }
label { display: block; font-weight: 800; font-size: 14px; margin-bottom: 12px; }
label input, label select, .field input, .field select { display: block; width: 100%; margin-top: 6px; height: 52px; border-radius: 14px; border: 2px solid var(--line); padding: 0 14px; font-size: 16px; background: #fff; font-weight: 600; outline: none; transition: border .15s; }
label input:focus, label select:focus { border-color: var(--brand); }
.pw { position: relative; }
.pw input { padding-right: 84px; }
.pw-eye { position: absolute; right: 8px; top: 13px; font-size: 13px; font-weight: 800; color: var(--brand-d); padding: 8px; }
.form-err { color: var(--bad); font-weight: 700; font-size: 14px; min-height: 0; margin: 4px 0 0; }
.form-err:empty { display: none; }
.auth-links { margin-top: 10px; }
.auth-sup { margin-top: 18px; }
.auth-sup .row, .auth-card .row { background: #fff; border-radius: 14px; margin-top: 8px; box-shadow: var(--shadow); }
.loading-scr { min-height: 90vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid var(--brand-l); border-top-color: var(--brand); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ob { padding: 12px 16px 120px; min-height: 100vh; }
.ob-top { display: flex; justify-content: space-between; align-items: center; height: 48px; margin-bottom: 8px; }
.ob-top > span { width: 42px; }
.ob-step { font-size: 13px; font-weight: 800; color: var(--brand-d); margin: 10px 0 6px; }
.ob h1 { margin-bottom: 8px; }
.ob-foot { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(255,251,241,0), var(--bg) 30%); }
.ob-done { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; }
.opts { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.opts.two { flex-direction: row; } .opts.two .opt { flex: 1; justify-content: center; }
.opts.compact { margin-top: 0; gap: 8px; }
.opt { display: flex; align-items: center; gap: 12px; text-align: left; background: #fff; border-radius: 16px; padding: 16px; font-weight: 800; font-size: 16px; border: 2px solid transparent; box-shadow: var(--shadow); transition: .15s; }
.opts.compact .opt { padding: 12px 14px; font-size: 15px; }
.opt.sel { border-color: var(--brand); background: var(--brand-l); }
.big-input { width: 100%; height: 60px; border-radius: 16px; border: 2px solid var(--line); padding: 0 16px; font-size: 20px; font-weight: 800; margin-top: 14px; outline: none; background: #fff; }
.big-input:focus { border-color: var(--brand); }
.photo-pick { width: 150px; height: 150px; border-radius: 50%; margin: 20px auto; background: var(--brand-l); color: var(--brand); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.photo-pick img { width: 100%; height: 100%; object-fit: cover; }

/* treinos / curso */
.lessons { display: flex; flex-direction: column; gap: 8px; }
.lesson-row { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px; padding: 10px 12px; box-shadow: var(--shadow); }
.lesson-row > .ic { color: var(--muted); }
.lr-t { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.lr-t small { color: var(--brand-d); font-weight: 800; font-size: 12.5px; }
.lr-t b { font-size: 15.5px; line-height: 1.25; }
.okc { width: 28px; height: 28px; border-radius: 50%; background: var(--ok); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lesson-row.ok b { color: var(--muted); }

/* plano */
.etapa-blk { margin-bottom: 18px; }
.etapa-h { background: var(--c); color: #fff; border-radius: 20px; padding: 14px 16px; display: flex; flex-direction: column; }
.etapa-h.c-yellow { color: var(--ink); }
.etapa-h span { font-size: 12.5px; font-weight: 900; text-transform: uppercase; letter-spacing: .6px; opacity: .9; }
.etapa-h b { font-size: 20px; font-weight: 900; }
.etapa-h small { opacity: .92; }
.week { margin: 14px 0 0; }
.week-h { display: flex; flex-direction: column; margin: 0 4px 8px; }
.week-h small { color: var(--muted); }
.day-row { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 14px; padding: 10px 12px; margin-bottom: 6px; box-shadow: var(--shadow); cursor: pointer; }
.day-n { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-l); color: var(--brand-d); font-weight: 900; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.day-t { flex: 1; display: flex; flex-direction: column; }
.day-t small { color: var(--muted); font-size: 12.5px; font-weight: 700; }
.day-row > .ic { color: var(--muted); }
.day-row.st-feito .day-n { background: var(--ok); color: #fff; }
.day-row.st-futuro, .day-row.st-renovar { opacity: .6; box-shadow: none; background: #F7F1E6; }
.day-row.cur { box-shadow: 0 0 0 2px var(--brand), var(--shadow); }

/* desafio */
.ch-hero { position: relative; background: var(--c); border-radius: 24px; height: 170px; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 4px; }
.ch-hero .art.lg { width: 140px; height: 140px; }
.cal { position: absolute; top: 14px; right: 14px; background: #fff; border-radius: 12px; width: 52px; display: flex; flex-direction: column; align-items: center; padding: 4px 0 5px; box-shadow: 0 4px 10px rgba(0,0,0,.12); border-top: 8px solid var(--bad); }
.cal b { font-size: 22px; font-weight: 900; line-height: 1; } .cal small { font-size: 10.5px; font-weight: 800; color: var(--muted); }
.h-day { margin: 4px 0 14px; }

/* ferramentas */
.tools { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tool { background: #fff; border-radius: 20px; padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; min-height: 130px; }
.tool .ic { color: #fff; background: var(--c); border-radius: 14px; padding: 9px; width: 46px; height: 46px; margin-bottom: 6px; }
.tool b { font-size: 16px; }
.tool small { color: var(--muted); font-size: 13px; line-height: 1.3; }
.clicker-wrap { display: flex; justify-content: center; padding: 26px 0 10px; }
.clicker { width: 210px; height: 210px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #C792FF, var(--brand) 60%, var(--brand-d)); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-weight: 900; letter-spacing: 2px; box-shadow: 0 14px 30px rgba(142,68,224,.45), inset 0 -8px 0 rgba(0,0,0,.12); touch-action: manipulation; user-select: none; }
.clicker.hit { animation: hit .18s; }
@keyframes hit { 50% { transform: scale(.93); box-shadow: 0 6px 14px rgba(142,68,224,.4), inset 0 -3px 0 rgba(0,0,0,.12); } }
.count { color: var(--muted); }
.count b { color: var(--ink); font-size: 20px; }
.timer { position: relative; width: 220px; height: 220px; margin: 22px auto; }
.timer b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 46px; font-weight: 900; font-variant-numeric: tabular-nums; }
.timer circle { transition: stroke-dashoffset .2s linear; }
.big-num { display: flex; align-items: baseline; gap: 10px; padding: 16px 16px 0; flex-wrap: wrap; }
.big-num b { font-size: 34px; font-weight: 900; }
.big-num b small { font-size: 18px; color: var(--muted); }
.big-num span { color: var(--muted); font-size: 14px; }
.center-n { flex-direction: column; align-items: center; text-align: center; gap: 0; padding: 6px 0 12px; }
.chart { display: flex; gap: 8px; height: 130px; align-items: flex-end; padding: 16px; }
.chart .col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.chart .stack { width: 100%; max-width: 28px; display: flex; flex-direction: column; border-radius: 8px; overflow: hidden; min-height: 3px; background: var(--line); }
.chart .stack i { display: block; min-height: 0; }
.chart .o { background: var(--ok); } .chart .b { background: var(--bad); }
.chart small { font-size: 11.5px; color: var(--muted); font-weight: 700; text-transform: capitalize; }
.legend { padding: 0 16px 14px; font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; margin: 0; }
.legend span { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 8px; }
.legend .o { background: var(--ok); } .legend .b { background: var(--bad); }
.log-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 700; }
.log-row:last-child { border-bottom: 0; }
.log-row > span:nth-child(2) { flex: 1; }
.log-row small { color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; } .dot.o { background: var(--ok); } .dot.b { background: var(--bad); }
.cmds { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.cmd { background: #fff; border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); }
.cmd-h { display: flex; justify-content: space-between; align-items: center; }
.cmd-h a { display: flex; align-items: center; gap: 2px; font-size: 17px; }
.cmd-h a .ic { color: var(--muted); }
.lv { font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 99px; background: #F2ECE2; color: var(--muted); }
.lv1 { background: #FFF2D6; color: #9A6B00; } .lv2 { background: var(--brand-l); color: var(--brand-d); } .lv3 { background: #E6F7EE; color: #12784A; }
.dots { display: flex; gap: 8px; margin-top: 10px; }
.dots button { flex: 1; height: 10px; border-radius: 99px; background: var(--line); }
.dots button.on { background: var(--brand); }
.soc-row { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.soc-row:last-child { border-bottom: 0; }
.soc-row > span { font-weight: 800; font-size: 15px; }
.soc-b { display: flex; gap: 6px; margin-top: 8px; }
.sb { flex: 1; font-size: 12.5px; font-weight: 800; padding: 7px 4px; border-radius: 10px; background: #F7F1E6; color: var(--muted); }
.sb.ok.on { background: var(--ok); color: #fff; } .sb.cur.on { background: var(--yellow); color: var(--ink); } .sb.medo.on { background: var(--bad); color: #fff; }
.sos-head { background: var(--c); color: #fff; border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.sos-head.c-yellow { color: var(--ink); }
.time-pick input { font-size: 22px; font-weight: 900; }

/* perfil */
.profile { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10px 0 6px; }
.pf-photo { position: relative; width: 116px; height: 116px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--brand); margin: 6px 0 14px; cursor: pointer; }
.pf-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.pf-cam { position: absolute; right: -2px; bottom: 2px; width: 34px; height: 34px; border-radius: 50%; background: var(--hl); color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 3px #fff; }
.plan-card { margin-top: 16px; background: linear-gradient(135deg, var(--brand), #7C3AED); color: #fff; border-radius: 22px; padding: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-card div { display: flex; flex-direction: column; }
.plan-card small { opacity: .85; font-weight: 700; } .plan-card b { font-size: 22px; font-weight: 900; } .plan-card span { font-size: 13.5px; opacity: .92; }
.badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bdg { background: #fff; border-radius: 16px; padding: 12px 8px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; box-shadow: var(--shadow); opacity: .45; filter: grayscale(1); }
.bdg span { width: 46px; height: 46px; border-radius: 50%; background: var(--hl); display: flex; align-items: center; justify-content: center; color: var(--ink); }
.bdg b { font-size: 13px; line-height: 1.2; }
.bdg small { font-size: 11px; color: var(--muted); line-height: 1.2; }
.bdg.on { opacity: 1; filter: none; }
.menu .row, .row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 15px 16px; border-bottom: 1px solid var(--line); font-weight: 800; font-size: 15.5px; text-align: left; }
.row:last-child { border-bottom: 0; }
.row > span { flex: 1; }
.row .ic { color: var(--brand-d); }
.row > .ic:last-child { color: var(--muted); }
.field { display: block; margin-bottom: 12px; }
.adm-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.adm-row > div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.adm-row b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; }
.adm-row small { color: var(--muted); }
.adm-row .link { width: auto; padding: 6px; font-size: 13px; }
.tag { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: #FDECEC; color: #B42318; }
.tag.on { background: #E6F7EE; color: #12784A; }

/* impressão */
#print { display: none; }
@media print {
  body { background: #fff; }
  #app, .sheet-wrap, .toast { display: none !important; }
  #print { display: block; font-family: "Nunito", sans-serif; color: #000; padding: 10px; }
  #print h1 { font-size: 26px; margin: 10px 0; }
  #print h3 { margin: 16px 0 6px; }
  #print .btn, #print button { display: none; }
  #print table { width: 100%; border-collapse: collapse; margin-top: 12px; }
  #print td, #print th { border: 1px solid #999; padding: 8px; vertical-align: top; text-align: left; font-size: 13px; }
  #print td:last-child { width: 60px; }
  .print-brand { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 18px; }
  .print-brand img { width: 28px; height: 28px; border-radius: 6px; }
}

[hidden] { display: none !important; }

/* setas dos carrosséis (só em computador / mouse) */
.hs-wrap { position: relative; }
.hs-btn { display: none; position: absolute; top: calc(50% - 22px); width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 4px 14px rgba(0,0,0,.18); align-items: center; justify-content: center; z-index: 3; }
.hs-btn.prev { left: -6px; } .hs-btn.next { right: -6px; }
@media (hover: hover) and (pointer: fine) { .hs-btn { display: flex; } .hs-btn[hidden] { display: none !important; } }
.legal-links { text-align: center; font-size: 13px; color: var(--muted); margin: 18px 0 0; }
.legal-links a { color: var(--muted); text-decoration: underline; }
