/* Montserrat hospedada no próprio site (licença SIL Open Font License 1.1). Só 400 (normal) e 700 (títulos). */
@font-face { font-family:"Montserrat"; font-style:normal; font-weight:400; font-display:swap; src:url("/fonts/montserrat-regular.woff") format("woff"); }
@font-face { font-family:"Montserrat"; font-style:normal; font-weight:700; font-display:swap; src:url("/fonts/montserrat-bold.woff") format("woff"); }
/* PACERYX — tema moderno em vidro (glassmorphism). Cores base vêm de packages/config via JS (variáveis --bg, --text, --accent...). */
:root { --accent-ink:var(--accent); --bg:#000000; --surface:#111111; --raised:#1A1A1A; --border:#2A2A2A; --text:#FFFFFF; --muted:#A3A3A3; --accent:#DFFF3A; --on-accent:#000000; --ok:#4ADE80; --warn:#FBBF24; --danger:#F87171; --on-danger:#000000;
  --glass:#111111; --glass-2:#1A1A1A; --glass-border:#2A2A2A; --shadow:none; --field:#0A0A0A; --line:#2A2A2A;
  --c-easy:#5EEAD4; --c-mod:#FBBF24; --c-hard:#F472B6; --glow:rgba(223,255,58,.10);
  --r:20px; color-scheme: dark; }
:root[data-theme=light] { --glass:#F4F4F2; --glass-2:#FFFFFF; --glass-border:#DADAD5; --shadow:0 1px 2px rgba(0,0,0,.06); --field:#FFFFFF; --line:#DADAD5;
  --c-easy:#0F766E; --c-mod:#B45309; --c-hard:#BE185D; --glow:rgba(76,94,0,.08); color-scheme: light; }
* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
body { margin:0; color:var(--text); min-height:100vh; overflow-wrap:anywhere; font:400 15.5px/1.6 "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:radial-gradient(90vw 45vh at 85% -10%, var(--glow), transparent 65%), var(--bg); background-attachment:fixed; }
#app { max-width:720px; margin:0 auto; min-height:100vh; display:flex; flex-direction:column; animation:fade .35s ease both; }
@keyframes fade { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }
.skip { position:absolute; left:-999px; top:8px; background:var(--accent); color:var(--on-accent); padding:8px 12px; border-radius:10px; z-index:100; }
.skip:focus { left:8px; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* tipografia: negrito só em títulos; o resto é normal */
h1, h2, h3, h4, th, .brand, .t, .num { font-weight:700; letter-spacing:-.01em; }
strong, b, label, button, summary, legend, dt { font-weight:400; }
h1 { font-size:28px; line-height:1.2; margin:6px 0 0; }
h2 { font-size:18px; margin:0 0 10px; }
h3 { font-size:21px; line-height:1.25; margin:0 0 6px; }
h4 { font-size:12px; margin:16px 0 8px; color:var(--muted); text-transform:uppercase; letter-spacing:.08em; }
p { margin:0 0 10px; }
.muted { color:var(--muted); } .hint { color:var(--muted); font-size:13px; } .center { text-align:center; }
a { color:var(--accent-ink); }
.num { font-variant-numeric:tabular-nums; }

.top { display:flex; justify-content:space-between; align-items:center; padding:calc(14px + env(safe-area-inset-top)) 18px 6px; }
.brand { color:var(--accent-ink); text-decoration:none; font-size:17px; letter-spacing:.14em; }
.gear { color:var(--muted); text-decoration:none; font-size:20px; min-width:48px; min-height:48px; display:grid; place-items:center; border-radius:50%; }
.main { flex:1; padding:0 16px calc(112px + env(safe-area-inset-bottom)); outline:none; }
.view > * + * { margin-top:14px; }

/* vidro */
.card, .week, .stat, .banner, .seg, .pill-day, .tabs, .errors, .chip, details.fold { background:var(--glass); border:1px solid var(--glass-border); box-shadow:var(--shadow); }
.card { border-radius:var(--r); padding:18px; min-width:0; }
.card > :last-child { margin-bottom:0; }
.hero { position:relative; border:1px solid var(--glass-border); border-radius:26px; padding:20px; box-shadow:var(--shadow);
  background:radial-gradient(120% 70% at 0% 0%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 65%), var(--glass-2); }
.hero::before { content:""; position:absolute; inset:0; border-radius:inherit; padding:1.5px; pointer-events:none;
  background:linear-gradient(135deg, color-mix(in srgb, var(--accent) 90%, transparent), color-mix(in srgb, var(--c-easy) 50%, transparent) 40%, transparent 72%);
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite:xor; mask-composite:exclude; }
.hero .eyebrow { font-size:12px; letter-spacing:.14em; text-transform:uppercase; color:var(--accent-ink); margin:0 0 6px; }
.hero-num { display:flex; align-items:baseline; gap:6px; margin:4px 0 2px; } .hero-num .num { font-size:52px; line-height:1; } .hero-num span:last-child { color:var(--muted); }

.chips { display:flex; flex-wrap:wrap; gap:6px; margin:8px 0 12px; }
.chip { display:inline-block; font-size:12.5px; padding:3px 11px; border-radius:999px; color:var(--text); white-space:nowrap; box-shadow:none; }
.chip-ok { border-color:var(--ok); } .chip-warn { border-color:var(--warn); } .chip-danger { border-color:var(--danger); }
.banner { border-radius:14px; padding:12px 14px; border-width:2px; margin-bottom:8px; box-shadow:none; }
.banner-ok { border-color:var(--ok); } .banner-warn { border-color:var(--warn); } .banner-danger { border-color:var(--danger); }
.urgent { color:var(--danger); font-weight:700; }

.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:50px; padding:10px 20px; border-radius:16px; border:1px solid transparent; font:inherit; cursor:pointer; text-decoration:none; text-align:center; transition:transform .12s ease, box-shadow .2s ease; }
.btn:active { transform:scale(.98); }
.btn-primary { background:var(--accent); color:var(--on-accent); width:100%; box-shadow:0 8px 28px color-mix(in srgb, var(--accent) 38%, transparent); }
.btn-ghost { background:var(--glass); color:var(--text); border-color:var(--glass-border); }
.btn-danger-ghost { background:transparent; color:var(--danger); border-color:var(--danger); }
.btn-small { min-height:40px; padding:4px 14px; font-size:14px; border-radius:12px; }
.btn-row { display:flex; flex-wrap:wrap; gap:10px; margin:10px 0; } .btn-row .btn { flex:1 1 150px; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, .seg-btn:focus-visible { outline:3px solid var(--accent); outline-offset:2px; }

.form > * + * { margin-top:14px; }
.field label { display:block; margin-bottom:5px; color:var(--text); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=search], select, textarea { width:100%; max-width:100%; min-height:50px; padding:11px 14px; border-radius:14px; border:1px solid var(--glass-border); background:var(--field); color:var(--text); font:inherit; }
input[type=range] { width:100%; accent-color:var(--accent); }
.range { display:flex; gap:10px; align-items:center; } .range output { min-width:2ch; }
input[type=checkbox], input[type=radio] { width:22px; height:22px; accent-color:var(--accent); flex:none; }
.check { display:flex; gap:10px; align-items:flex-start; padding:8px 0; min-height:44px; cursor:pointer; }
.notice { background:var(--glass); border:1px solid var(--warn); border-radius:14px; padding:12px; }
fieldset { border:1px solid var(--glass-border); border-radius:16px; padding:10px 14px; margin:0; min-width:0; background:var(--glass); } legend { padding:0 6px; }
.alert-set { border-color:var(--danger); }
.radios { display:grid; grid-template-columns:repeat(auto-fit,minmax(120px,1fr)); gap:6px; }
.radio { display:flex; gap:8px; align-items:center; min-height:44px; cursor:pointer; }
.days { display:grid; grid-template-columns:repeat(7,1fr); gap:6px; } .days legend { grid-column:1/-1; }
.day-pick { display:flex; flex-direction:column; align-items:center; gap:4px; font-size:13px; padding:6px 0; cursor:pointer; }
.indent { margin-left:8px; padding-left:12px; border-left:3px solid var(--glass-border); } [hidden] { display:none !important; }
.errors { border-radius:14px; border:2px solid var(--danger); padding:10px 14px; box-shadow:none; } .errors ul { margin:6px 0 0; padding-left:20px; }

/* lista de treinos */
.rows { list-style:none; margin:0; padding:0; } .rows li { border-top:1px solid var(--glass-border); } .rows li:first-child { border-top:0; }
.rows a { display:flex; gap:12px; align-items:center; padding:10px 0; text-decoration:none; color:var(--text); min-height:58px; }
.grow { flex:1; display:flex; flex-direction:column; min-width:0; } .rows small { display:block; }
.day { display:flex; flex-direction:column; align-items:center; min-width:46px; } .day small { color:var(--muted); font-size:12px; }
.entry { display:flex; gap:10px; align-items:center; padding:10px 0; }
.week { border-radius:var(--r); padding:0 16px; }
.week > summary { cursor:pointer; padding:14px 0; display:flex; flex-direction:column; min-height:50px; list-style-position:inside; }

/* faixa da semana */
.week-strip { display:grid; grid-template-columns:repeat(7,1fr); gap:6px; }
.pill-day { display:flex; flex-direction:column; align-items:center; gap:5px; padding:9px 0 8px; border-radius:18px; text-decoration:none; color:var(--text); font-size:12px; box-shadow:none; }
.pill-day .d { font-size:15px; } .pill-day small { color:var(--muted); font-size:11px; letter-spacing:.04em; text-transform:uppercase; }
.dot { width:9px; height:9px; border-radius:50%; border:1.5px solid var(--muted); }
.pill-day.done .dot { background:var(--accent); border-color:var(--accent); } .pill-day.partial .dot { background:linear-gradient(90deg, var(--accent) 50%, transparent 50%); border-color:var(--accent); }
.pill-day.missed .dot { border-color:var(--danger); background:var(--danger); } .pill-day.planned .dot { border-color:var(--accent); } .pill-day.rest { opacity:.6; }
.pill-day.today { border-color:var(--accent); box-shadow:0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent); }

/* progresso do plano */
.progress { display:flex; align-items:center; gap:16px; }
.ring { width:76px; height:76px; flex:none; transform:rotate(-90deg); } .ring-track { stroke:var(--glass-border); } .ring-val { stroke:var(--accent); stroke-linecap:round; }
.progress .num { font-size:22px; }

/* gráfico do treino e abas */
.graph { width:100%; height:auto; display:block; margin:6px 0; } .blk-easy { fill:var(--c-easy); } .blk-mod { fill:var(--c-mod); } .blk-hard { fill:var(--c-hard); } .blk-base { fill:var(--glass-border); }
.legend { display:flex; gap:12px; flex-wrap:wrap; font-size:12px; color:var(--muted); } .legend i { display:inline-block; width:9px; height:9px; border-radius:3px; margin-right:5px; vertical-align:middle; }
.i-easy { background:var(--c-easy); } .i-mod { background:var(--c-mod); } .i-hard { background:var(--c-hard); }
.seg { display:grid; grid-auto-flow:column; grid-auto-columns:1fr; gap:4px; padding:4px; border-radius:16px; margin:12px 0; box-shadow:none; }
.seg-btn { min-height:44px; border-radius:12px; border:0; background:transparent; color:var(--muted); font:inherit; cursor:pointer; }
.seg-btn[aria-selected=true] { background:var(--accent); color:var(--on-accent); }
.panel > * + * { margin-top:12px; }
.steps { padding-left:22px; margin:6px 0; } .steps li { padding:6px 0; } .steps li span { display:block; } .steps small { display:block; }
details.fold { border-radius:14px; padding:0 14px; box-shadow:none; } details.fold > summary { cursor:pointer; min-height:46px; display:flex; align-items:center; } details.fold[open] { padding-bottom:12px; }
.notes, .reasons { margin:8px 0; padding-left:20px; } .notes { color:var(--muted); }
.mini { background:var(--glass); border:1px solid var(--glass-border); border-radius:14px; padding:12px 14px; }
.mini h4 { margin:0 0 6px; }
.foods { display:flex; flex-wrap:wrap; gap:6px; list-style:none; padding:0; margin:8px 0; } .foods li { background:var(--glass); border:1px solid var(--glass-border); border-radius:999px; padding:3px 12px; font-size:13px; }
.routine { list-style:none; margin:6px 0; padding:0; } .routine li { padding:8px 0; border-top:1px solid var(--glass-border); } .routine li:first-child { border-top:0; } .routine small { display:block; color:var(--muted); }
.src { font-size:12.5px; color:var(--muted); } .src ul { padding-left:18px; margin:6px 0; } .src a { color:var(--muted); }

.stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:10px; } .stat { border-radius:16px; padding:12px 14px; display:flex; flex-direction:column; box-shadow:none; } .stat .num { font-size:24px; }
.chart-wrap { margin:6px 0 10px; } .chart { width:100%; height:auto; } .bar { fill:var(--accent); } .axis, .val { fill:var(--muted); font-size:10px; font-family:inherit; } .val { fill:var(--text); }
.table-wrap { overflow-x:auto; margin-top:8px; } table { border-collapse:collapse; width:100%; font-size:14px; } th, td { text-align:left; padding:8px 6px; border-bottom:1px solid var(--glass-border); white-space:nowrap; overflow-wrap:normal; } thead th { color:var(--muted); }
.topics { display:grid; gap:8px; } .topics .btn { justify-content:flex-start; text-align:left; } .topics .btn[aria-pressed=true] { border-color:var(--accent); }
.answer p, .answer ul { margin-bottom:10px; } .answer ul { padding-left:20px; }
.dl { display:grid; grid-template-columns:auto 1fr; gap:6px 14px; margin:0 0 12px; } .dl dt { color:var(--muted); } .dl dd { margin:0; }
.back { display:inline-block; text-decoration:none; padding:8px 0; min-height:44px; }

/* navegação flutuante em vidro */
.tabs { position:fixed; left:12px; right:12px; bottom:calc(12px + env(safe-area-inset-bottom)); max-width:696px; margin:0 auto; z-index:20; display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:2px; padding:6px; border-radius:30px; background:var(--glass-2); }
.tab { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; min-height:56px; border-radius:24px; color:var(--muted); text-decoration:none; font-size:11.5px; }
.tab-icon { font-size:17px; line-height:1; }
.tab[aria-current=page] { color:var(--accent-ink); background:color-mix(in srgb, var(--accent) 16%, transparent); }
.tab-primary { color:var(--text); } .tab-primary .tab-icon { background:var(--accent); color:var(--on-accent); width:42px; height:42px; border-radius:50%; display:grid; place-items:center; margin-top:-16px; box-shadow:0 6px 22px color-mix(in srgb, var(--accent) 50%, transparent); }
.toast { position:fixed; left:50%; bottom:calc(98px + env(safe-area-inset-bottom)); transform:translate(-50%,20px); opacity:0; pointer-events:none; background:var(--glass-2); border:2px solid var(--ok); color:var(--text); padding:10px 18px; border-radius:999px; transition:.2s; z-index:50; max-width:90vw; }
.toast-warn { border-color:var(--warn); } .toast-danger { border-color:var(--danger); } .toast.show { opacity:1; transform:translate(-50%,0); }
.noscript { padding:24px; }
@media (prefers-reduced-motion: reduce) { *, #app { transition:none !important; animation:none !important; scroll-behavior:auto !important; } }
@media print { .tabs, .top, .toast { display:none; } }
.top-right { display:flex; align-items:center; gap:8px; } .cloud-chip { font-size:12px; color:var(--muted); background:var(--glass); border:1px solid var(--glass-border); border-radius:999px; padding:2px 10px; }
.form-msg { padding:10px 14px; border-radius:14px; border:1px solid var(--glass-border); background:var(--glass); } .form-msg.err { border-color:var(--danger); } .form-msg.ok { border-color:var(--ok); }

.import-row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:8px 0; border-top:1px solid var(--line, rgba(255,255,255,.12)); }
.import-row span { flex:1 1 180px; }
.import-row select { width:auto; min-width:64px; }

.auth-logo { display:block; margin:8px auto 4px; width:112px; height:112px; border-radius:26px; box-shadow:0 0 28px rgba(190,255,0,.25); }

.doc-page { max-width:720px; margin:0 auto; padding:24px 16px 64px; }
.doc-page h2 { margin-top:24px; }

.race-list { display:grid; gap:12px; }
.race-mini { display:flex; flex-direction:column; gap:2px; padding:8px 0; border-top:1px solid var(--line, rgba(255,255,255,.12)); text-decoration:none; color:inherit; }
.race-plan { margin-top:12px; display:grid; gap:10px; }
.grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:10px; }
.tabs .tab { font-size:10.5px; padding:0 1px; min-width:0; text-align:center; overflow-wrap:normal; word-break:keep-all; white-space:nowrap; }
.btn-danger-ghost:not(.btn-small) { width:100%; }
.entry .btn { flex:none; width:auto; }
.grid-2 > * { min-width:0; }
input[type=search] { -webkit-appearance:none; appearance:none; }
@media (max-width:480px) { .tabs { left:8px; right:8px; padding:5px 3px; gap:0; } .tabs .tab { font-size:10px; } .grid-2 { grid-template-columns:1fr; } .hero { padding:18px 16px; } .card { padding:16px; } }
@media (min-width:900px) { .tabs { bottom:20px; } .tab { font-size:12px; } }

/* ===== PACERYX: identidade escura (preto, grafite, lima neon, branco) ===== */
.brand { display:inline-flex; align-items:center; gap:10px; font-size:16px; letter-spacing:.2em; text-transform:uppercase; }
.brand-mark { display:inline-flex; color:var(--accent-ink); }
.card > h2:first-child, .card > .t:first-child { font-size:12.5px; letter-spacing:.14em; text-transform:uppercase; color:var(--muted); margin-bottom:12px; }
.card, .week, .hero { border-radius:var(--r); }
.hero { background:radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%), var(--surface); box-shadow:none; }
.hero-num .num { font-size:56px; }
.hero-num span:last-child { color:var(--accent-ink); }
.num { letter-spacing:-.02em; }
.stat { background:var(--surface); }
.stat .num { font-size:26px; }
.btn { letter-spacing:.04em; }
.btn-primary { text-transform:uppercase; letter-spacing:.08em; font-size:14px; font-weight:700; box-shadow:0 6px 24px color-mix(in srgb, var(--accent) 22%, transparent); }
.btn-small.btn-primary { text-transform:none; letter-spacing:.02em; }
.btn-ghost { background:transparent; border-color:var(--border); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=search], select, textarea { background:var(--field); border-color:var(--border); }
input:focus, select:focus, textarea:focus { border-color:var(--accent); outline:none; box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
fieldset, .mini, details.fold, .foods li, .chip, .cloud-chip, .form-msg, .notice { background:var(--surface); border-color:var(--border); }
.week > summary, details.fold > summary { color:var(--text); }
.seg { background:var(--surface); }
.pill-day { background:var(--surface); }
.rows li, .routine li, .import-row, .race-mini { border-color:var(--border); }
.tabs { left:0; right:0; bottom:0; max-width:720px; margin:0 auto; border-radius:24px 24px 0 0; border:1px solid var(--border); border-bottom:0; background:var(--surface); padding:8px 8px calc(8px + env(safe-area-inset-bottom)); box-shadow:0 -10px 30px rgba(0,0,0,.35); }
.tab { border-radius:16px; gap:3px; position:relative; }
.tab[aria-current=page] { background:transparent; color:var(--accent-ink); }
.tab[aria-current=page]:not(.tab-primary)::after { content:""; position:absolute; bottom:2px; width:4px; height:4px; border-radius:50%; background:var(--accent); }
.tab-icon { display:grid; place-items:center; height:24px; }
.tab-primary { color:var(--muted); }
.tab-primary .tab-icon { width:46px; height:46px; margin-top:-22px; border:4px solid var(--surface); box-shadow:0 6px 20px color-mix(in srgb, var(--accent) 35%, transparent); }
.tab-primary[aria-current=page] { color:var(--accent-ink); }
.toast { bottom:calc(104px + env(safe-area-inset-bottom)); background:var(--raised); }
.auth-logo { box-shadow:0 0 36px color-mix(in srgb, var(--accent) 22%, transparent); }
@media (max-width:480px) { .tabs { padding-left:4px; padding-right:4px; } .hero-num .num { font-size:52px; } }
@media (min-width:900px) { .tabs { bottom:16px; border-radius:24px; border-bottom:1px solid var(--border); } }
.btn-row .btn-primary, .race-plan .btn-primary { text-transform:none; letter-spacing:.02em; font-size:15px; }
.btn-row .btn { flex:1 1 140px; }

/* ===== Layout PACERYX: início, detalhe do treino e compartilhamento ===== */
.greet { margin:2px 0 4px; } .greet h1 { margin:2px 0 0; font-size:30px; }
.greet-date { margin:0; font-size:12px; letter-spacing:.16em; font-weight:700; color:var(--muted); }
.label { margin:0; font-size:11.5px; letter-spacing:.16em; font-weight:700; text-transform:uppercase; color:var(--muted); }
small.label { display:block; margin-bottom:4px; }
.today-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }
.today-arrow { display:grid; place-items:center; width:38px; height:38px; border-radius:50%; background:var(--raised); border:1px solid var(--border); color:var(--text); text-decoration:none; }
.today-arrow:hover { border-color:var(--accent); color:var(--accent-ink); }
.today-body { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:6px 0 18px; }
.today-stats { display:grid; gap:18px; min-width:0; }
.today-num { margin:0; display:flex; align-items:baseline; gap:2px; } .today-num .num { font-size:44px; line-height:1; font-weight:700; } .today-num .unit { font-size:15px; color:var(--muted); }
.today-type { margin:0; font-size:19px; font-weight:700; line-height:1.2; overflow-wrap:anywhere; }
.today-rest { margin:4px 0 6px; font-size:22px; font-weight:700; }
.donut-wrap { display:grid; justify-items:center; gap:6px; flex:none; }
.donut { width:112px; height:112px; display:block; filter:drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 35%, transparent)); }
.donut-track { stroke:var(--border); } .donut-val { stroke:var(--accent); }
.donut-text { fill:var(--text); font-size:22px; font-weight:700; font-family:inherit; }
.donut-cap { font-size:9.5px; letter-spacing:.14em; font-weight:700; color:var(--muted); text-align:center; max-width:120px; }
.btn-go { display:flex; align-items:center; justify-content:space-between; gap:10px; text-decoration:none; padding-left:22px; padding-right:22px; }
.btn-go .btn-ico { display:grid; place-items:center; }
.progress-card .today-body { margin-bottom:2px; }
.pill-lime { display:inline-block; align-self:flex-start; padding:5px 12px; border-radius:999px; background:var(--accent); color:var(--on-accent); font-size:11px; font-weight:700; letter-spacing:.1em; }
.metric-row { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:10px; margin:12px 0; }
.metric-box { background:var(--surface); border:1px solid var(--border); border-radius:16px; padding:12px 10px; text-align:center; min-width:0; }
.metric-box small { display:block; font-size:10px; letter-spacing:.14em; font-weight:700; color:var(--muted); margin-bottom:6px; }
.metric-box strong { display:block; font-size:17px; line-height:1.2; overflow-wrap:anywhere; }
.curve { width:100%; height:auto; display:block; color:var(--accent-ink); margin:8px 0 2px; }
.curve-line { stroke:var(--accent); filter:drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 60%, transparent)); }
.detail-top { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:4px 0 6px; }
.detail-date { font-size:12px; letter-spacing:.14em; font-weight:700; color:var(--muted); }
.detail-big { display:flex; align-items:baseline; justify-content:center; gap:8px; margin:10px 0 0; }
.detail-big .num { font-size:96px; line-height:1; font-weight:700; letter-spacing:-.03em; } .detail-big .unit { font-size:26px; font-weight:700; color:var(--accent-ink); }
.detail-sub { text-align:center; margin:2px 0 8px; color:var(--muted); } .detail-sub .t { color:var(--text); }
.rows li > a { align-items:center; } .chev { color:var(--muted); font-size:22px; line-height:1; margin-left:4px; }
.share-stage { display:grid; place-items:center; padding:14px; background:var(--surface); border:1px solid var(--border); border-radius:var(--r); margin:12px 0; }
.share-canvas { width:100%; max-width:340px; height:auto; border-radius:14px; border:1px solid var(--border); background:#000; }
.seg-btn[aria-pressed=true] { background:var(--accent); color:var(--on-accent); }
@media (min-width:900px) { .today-num .num { font-size:52px; } .donut { width:132px; height:132px; } .share-canvas { max-width:420px; } }
.donut-sub { fill:var(--accent); font-size:9px; font-weight:700; letter-spacing:.12em; font-family:inherit; }

/* ===== Tema claro: mesmo verde-limão do escuro (preenchimentos); textos e traços sobre branco usam preto para ter contraste ===== */
:root[data-theme=light] { --accent-ink:#000000; --glow:rgba(223,255,58,.28); }
:root[data-theme=light] .tab[aria-current=page] { background:var(--accent); border-radius:14px; }
:root[data-theme=light] .tab[aria-current=page]:not(.tab-primary)::after { display:none; }
:root[data-theme=light] .donut-track { stroke:#1A1A1A; }
:root[data-theme=light] .donut { filter:none; }
:root[data-theme=light] .curve-line { stroke:#000; filter:none; }
:root[data-theme=light] .bar { stroke:#1A1A1A; stroke-width:1; }
:root[data-theme=light] .ring-track { stroke:#1A1A1A; }
:root[data-theme=light] .hero, :root[data-theme=light] .today-card { background:radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 60%), var(--surface); }
:root[data-theme=light] .btn-primary { box-shadow:0 6px 20px color-mix(in srgb, var(--accent) 60%, transparent); }
:root[data-theme=light] .pill-day.planned .dot, :root[data-theme=light] .pill-day.done .dot { border-color:#1A1A1A; }
:root[data-theme=light] .pill-day.today { border-color:#000; box-shadow:0 0 0 2px var(--accent); }

/* ===== Páginas estáticas: só rolam para cima e para baixo, nunca para os lados ===== */
html, body { max-width:100%; overflow-x:clip; overscroll-behavior-x:none; }
html { touch-action:pan-y pinch-zoom; }
#app, .main, .view { max-width:100%; min-width:0; overflow-x:clip; }
.view > *, .card, details.fold-card, .week, .field, .btn-row, .grid-2, .rows li { min-width:0; max-width:100%; }
img, svg, canvas, video { max-width:100%; }
input, select, textarea, button { max-width:100%; }
.table-wrap { max-width:100%; touch-action:pan-x pan-y; }

/* ===== Cartões recolhíveis (menu suspenso) ===== */
details.fold-card { padding:0; overflow:hidden; }
details.fold-card > summary { list-style:none; cursor:pointer; display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:56px; padding:14px 18px; font-size:12.5px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--muted); }
details.fold-card > summary::-webkit-details-marker { display:none; }
details.fold-card > summary::after { content:""; flex:none; width:9px; height:9px; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(45deg) translateY(-2px); transition:transform .2s ease; }
details.fold-card[open] > summary { color:var(--text); }
details.fold-card[open] > summary::after { transform:rotate(-135deg) translateY(-2px); }
details.fold-card > :not(summary) { margin-left:18px; margin-right:18px; max-width:calc(100% - 36px); }
details.fold-card > :last-child { margin-bottom:18px; }
details.fold-card > summary + * { margin-top:0; }
@media (max-width:480px) { details.fold-card > summary { padding:14px 16px; } details.fold-card > :not(summary) { margin-left:16px; margin-right:16px; max-width:calc(100% - 32px); } details.fold-card > :last-child { margin-bottom:16px; } }
