/* Atlas: estilos da app, a partir do design no Claude Design (tema escuro por omissão). */

:root {
  --bg: #0B0B0C; --s1: #141415; --s2: #1B1B1D; --s3: #26262A;
  --line: rgba(255,255,255,.08); --line2: rgba(255,255,255,.16);
  --tx: #F2F1EE; --tx2: #A9A7A1; --tx3: #8E8C86; --inv: #0B0B0C; --btn: #F2F1EE;
  --scrim: rgba(0,0,0,.66);
  --ok: #5FD08F; --warn: #F2B84B; --bad: #F2705F; --na: #8A8882;
  --okbg: rgba(95,208,143,.10); --warnbg: rgba(242,184,75,.10); --badbg: rgba(242,112,95,.10);
  --z1: #9CC9F0; --z2: #4F9BEB; --z3: #7D6FEA; --z4: #B05BD6; --z5: #DE4A98;
  --run: #F59E6B; --bike: #3CC6C0; --str: #C7B37A; --oth: #A9A7A1;
  --pro: #E8789C; --carb: #E6C46B; --fat: #9C8CE3; --h2o: #5AB3F0;
  color-scheme: dark;
}
:root.light {
  --bg: #F4F3EF; --s1: #FFFFFF; --s2: #EEEDE8; --s3: #E3E2DC;
  --line: rgba(17,17,16,.09); --line2: rgba(17,17,16,.18);
  --tx: #111110; --tx2: #4D4B46; --tx3: #5E5C57; --inv: #FFFFFF; --btn: #111110;
  --scrim: rgba(17,17,16,.42);
  --ok: #156B42; --warn: #946000; --bad: #AE2D23; --na: #6B6964;
  --okbg: rgba(27,129,80,.09); --warnbg: rgba(148,96,0,.09); --badbg: rgba(192,53,42,.08);
  --z1: #4E97CF; --z2: #2668B8; --z3: #6A5CD9; --z4: #9C46C2; --z5: #C9327F;
  --run: #A9531F; --bike: #127370; --str: #77652F; --oth: #5E5C57;
  --pro: #D6557D; --carb: #B8890F; --fat: #7B69D1; --h2o: #2F8FD6;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); }
body {
  font-family: 'Geist', system-ui, sans-serif; color: var(--tx);
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased;
  letter-spacing: -.005em; font-size: 16px; line-height: 24px;
  -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none;
}
:focus-visible { outline: 2px solid var(--tx); outline-offset: 2px; }
button, a { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0;
  cursor: pointer; text-align: inherit; text-decoration: none; transition: opacity 120ms ease-out; }
button:active, a:active { opacity: .72; }
button:disabled { opacity: .32; cursor: default; }
h1, h2, h3, p { margin: 0; font-weight: 500; }
p { font-weight: 400; }
input, textarea, select { font: inherit; color: var(--tx); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Estrutura */
#app { max-width: 480px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; }
.screen { flex: 1; display: flex; flex-direction: column; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.screen.no-nav { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
main.page { display: flex; flex-direction: column; gap: 32px; padding: 16px 16px 32px; }
header.top { display: flex; align-items: center; gap: 8px; padding: calc(8px + env(safe-area-inset-top)) 8px 0 20px; }
header.top h1 { font-size: 26px; line-height: 32px; letter-spacing: -.02em; flex: 1; }
header.bar { display: flex; align-items: center; gap: 4px; padding: calc(8px + env(safe-area-inset-top)) 8px 8px 4px;
  position: sticky; top: 0; background: var(--bg); z-index: 5; }
header.bar .eb { flex: 1; }

/* Texto */
.mono { font-family: 'Geist Mono', ui-monospace, monospace; letter-spacing: 0; }
.eb { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; line-height: 16px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--tx3); font-weight: 400; }
.sh { display: flex; align-items: center; gap: 12px; }
.sh::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.lbl { font-size: 14px; line-height: 21px; color: var(--tx2); }
.cap { font-size: 12px; line-height: 16px; color: var(--tx3); }
.u { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; font-weight: 400; color: var(--tx3); margin-left: 4px; letter-spacing: 0; }
.num { font-weight: 400; letter-spacing: -.03em; }
.big { font-size: 40px; line-height: 44px; font-weight: 500; letter-spacing: -.03em; }
.h2 { font-size: 26px; line-height: 32px; font-weight: 500; letter-spacing: -.02em; }
.h3 { font-size: 20px; line-height: 24px; font-weight: 500; }
.ok { color: var(--ok); } .warn { color: var(--warn); } .bad { color: var(--bad); } .muted { color: var(--tx3); }

/* Superfícies */
.panel { background: var(--s1); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.grid1 { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.cell { background: var(--s1); padding: 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sec { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 64px; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row .grow, .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.callout { display: flex; gap: 8px; align-items: flex-start; padding: 12px 16px; border-radius: 12px; font-size: 14px; line-height: 21px; }
.callout.bad { background: var(--badbg); color: var(--tx); }
.callout.warn { background: var(--warnbg); color: var(--tx); }
.callout.info { background: var(--s2); color: var(--tx2); }

/* Controlos */
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn { min-height: 52px; border-radius: 12px; background: var(--btn); color: var(--inv); font-weight: 500; font-size: 16px;
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 20px; text-align: center; }
.btn2 { min-height: 48px; border-radius: 12px; border: 1px solid var(--line2); font-weight: 500; font-size: 16px;
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; text-align: center; }
.ibtn { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--tx2); flex: none; }
.chip { min-height: 48px; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line2); font-size: 14px; white-space: nowrap; }
.chip.warn { border-color: rgba(242,184,75,.45); background: var(--warnbg); }
.chip.bad { border-color: rgba(242,112,95,.45); background: var(--badbg); }
.chip[aria-pressed="true"], .pill[aria-pressed="true"] { background: var(--btn); color: var(--inv); border-color: var(--btn); }
.seg { display: flex; background: var(--s2); border: 1px solid var(--line); border-radius: 12px; padding: 2px; gap: 2px; }
.seg > * { min-height: 44px; padding: 0 12px; border-radius: 10px; font-size: 14px; color: var(--tx2);
  display: flex; align-items: center; justify-content: center; flex: 1; white-space: nowrap; }
.seg > [aria-selected="true"], .seg > [aria-pressed="true"] { background: var(--s3); color: var(--tx); font-weight: 500; }
.st { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; line-height: 16px; font-weight: 500;
  border-radius: 6px; padding: 4px 8px; white-space: nowrap; }
.st.ok { background: var(--okbg); color: var(--ok); }
.st.warn { background: var(--warnbg); color: var(--warn); }
.st.bad { background: var(--badbg); color: var(--bad); }
.st.plain { border: 1px solid var(--line2); color: var(--tx2); }
.field { display: flex; flex-direction: column; gap: 8px; }
.input { min-height: 52px; background: var(--s2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-size: 16px; width: 100%; }
textarea.input { resize: none; min-height: 80px; }
.avatar { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; flex: none; }
.avatar span { width: 36px; height: 36px; border-radius: 18px; border: 1px solid var(--line2); display: flex;
  align-items: center; justify-content: center; font-size: 12px; font-family: 'Geist Mono', ui-monospace, monospace; }
.switch { width: 64px; height: 48px; display: flex; align-items: center; justify-content: center; flex: none; }
.switch span { width: 52px; height: 32px; border-radius: 16px; background: var(--s3); border: 1px solid var(--line2);
  display: flex; align-items: center; padding: 4px; justify-content: flex-start; }
.switch span::after { content: ""; width: 22px; height: 22px; border-radius: 11px; background: var(--tx2); }
.switch[aria-checked="true"] span { background: var(--btn); justify-content: flex-end; }
.switch[aria-checked="true"] span::after { background: var(--inv); }

/* Barras e trilhos */
.trk { position: relative; height: 4px; border-radius: 2px; background: var(--s3); }
.trk .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; }
.band { position: absolute; top: 0; bottom: 0; border-radius: 2px; background: var(--tx3); opacity: .55; }
.mk { position: absolute; top: -4px; width: 12px; height: 12px; border-radius: 6px; transform: translateX(-50%); border: 2px solid var(--bg); }
.steps { display: flex; align-items: flex-end; gap: 2px; border-bottom: 1px solid var(--line); }
.steps span { border-radius: 2px 2px 0 0; min-width: 2px; }

/* Barra de navegação */
nav.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: center;
  border-top: 1px solid var(--line); background: var(--bg); padding: 0 8px env(safe-area-inset-bottom); }
nav.nav .in { width: 100%; max-width: 480px; height: 80px; display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); align-items: center; padding-bottom: 8px; }
nav.nav a { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 56px; justify-content: center;
  font-size: 12px; line-height: 16px; font-weight: 500; color: var(--tx3); position: relative; }
nav.nav a.on { color: var(--tx); }
nav.nav a.on::before { content: ""; position: absolute; top: -8px; width: 20px; height: 2px; border-radius: 1px; background: var(--tx); }
.fab { width: 52px; height: 52px; border-radius: 16px; background: var(--btn); color: var(--inv); display: flex; align-items: center; justify-content: center; }

/* Folhas inferiores e avisos */
.scrim { position: fixed; inset: 0; z-index: 40; background: var(--scrim); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 480px; max-height: calc(100dvh - 48px); background: var(--s1); border-radius: 20px 20px 0 0;
  border-top: 1px solid var(--line2); display: flex; flex-direction: column; overflow: hidden; animation: up 180ms ease-out; }
.sheet .grab { display: flex; justify-content: center; padding: 8px 0 0; }
.sheet .grab span { width: 36px; height: 4px; border-radius: 2px; background: var(--s3); }
.sheet .body { overflow-y: auto; padding: 0 24px; flex: 1; }
.sheet footer { padding: 16px 24px calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--s1); }
@keyframes up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(104px + env(safe-area-inset-bottom)); z-index: 60;
  width: calc(100% - 32px); max-width: 448px; background: var(--btn); color: var(--inv); border-radius: 12px;
  display: flex; align-items: center; gap: 12px; padding: 4px 4px 4px 16px; min-height: 52px; font-size: 14px; }
.toast button { min-height: 44px; padding: 0 12px; font-weight: 600; color: var(--inv); }
.offline { background: var(--warnbg); color: var(--tx); font-size: 12px; padding: 8px 16px; text-align: center; }

/* Estados */
.skel { background: var(--s2); border-radius: 12px; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .5; } }
.empty { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; padding: 20px; background: var(--s2);
  border: 1px solid var(--line); border-radius: 14px; }

/* Tabelas */
table { border-collapse: collapse; width: 100%; }
th { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; font-weight: 400; letter-spacing: .08em;
  text-transform: uppercase; color: var(--tx3); text-align: right; padding: 12px 16px; }
td { text-align: right; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 16px; line-height: 24px; }
th:first-child, td:first-child { text-align: left; }

/* Semana de treino */
.day { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 12px; padding: 16px; min-height: 88px; border-top: 1px solid var(--line); }
.day:first-child { border-top: 0; }
.day.today { background: var(--s2); }
.dl { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.dl > span:last-child { font-size: 24px; line-height: 28px; letter-spacing: -.02em; }
.ct { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.t1 { display: flex; align-items: center; gap: 8px; }
.t1 b { flex: 1; font-size: 16px; line-height: 24px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Passos da sessão */
.stp { display: grid; grid-template-columns: 4px 1fr auto; gap: 16px; align-items: center; min-height: 64px; padding: 12px 16px 12px 12px; border-top: 1px solid var(--line); }
.stp:first-child { border-top: 0; }
.stp .bar { align-self: stretch; border-radius: 2px; }
.stp .t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stp .t b { font-size: 16px; line-height: 24px; font-weight: 500; }
.stp .d { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 16px; text-align: right; }
.rep { border-top: 1px solid var(--line); padding: 12px 0 4px 12px; display: flex; flex-direction: column; }
.rep .in { margin-left: 4px; border-left: 1px dashed var(--line2); }
.rep .in .stp { border-top: 0; min-height: 56px; }

/* Escalas do check-in */
.scale { display: grid; gap: 8px; }
.scale button { height: 52px; border-radius: 10px; background: var(--s2); border: 1px solid var(--line); font-size: 18px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.scale button i { width: 16px; height: 2px; border-radius: 1px; display: block; }
.blk { display: flex; flex-direction: column; gap: 12px; padding: 24px 0; border-top: 1px solid var(--line); }
.blk:first-child { border-top: 0; padding-top: 16px; }
.hd { display: flex; justify-content: space-between; align-items: baseline; }

/* Folha + */
.quick { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.quick button, .quick a { min-height: 104px; border-radius: 14px; background: var(--s2); border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 14px; }
.quick b { font-weight: 500; font-size: 16px; line-height: 20px; }

/* Gráficos */
svg.chart { width: 100%; display: block; overflow: visible; }
svg.chart text { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 11px; fill: var(--tx3); }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--tx2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 3px; border-radius: 1px; display: inline-block; }

/* Login e arranque */
.splash { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 24px; }
.splash form { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }

/* Folha + (mosaicos) */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.tile { min-height: 112px; background: var(--s1); display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between;
  padding: 16px; font-size: 16px; font-weight: 500; color: var(--tx); text-align: left; }
.tile > span { display: flex; flex-direction: column; gap: 2px; }

/* Check-in */
.q { font-size: 16px; line-height: 24px; font-weight: 500; }
.scale button[aria-pressed="true"] { background: var(--btn); color: var(--inv); border-color: var(--btn); }
.seg > button[aria-pressed="true"] { background: var(--s1); }
.sheet header .grow { gap: 4px; }

/* Valores em grelha */
.kv { background: var(--s1); padding: 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kv b { font-size: 24px; line-height: 28px; font-weight: 400; letter-spacing: -.03em; }

/* Calendário do mês */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 4px; }
.wd { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; line-height: 16px; color: var(--tx3); text-align: center; padding-bottom: 4px; }
.dc { min-height: 72px; border-radius: 10px; padding: 6px 4px; display: flex; flex-direction: column; align-items: center; gap: 6px; border: 1px solid transparent; background: var(--s1); }
.dc .n { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 14px; line-height: 20px; width: 28px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 6px; }
.dc.dim { background: none; }
.dc.dim .n { color: var(--tx3); }
.dc.today .n { background: var(--btn); color: var(--inv); }
.dc[aria-pressed="true"] { border-color: var(--tx); }
.it { display: flex; align-items: center; gap: 3px; width: 100%; justify-content: center; }
.it i { width: 8px; height: 8px; border-radius: 4px; flex: none; }
.it b { height: 3px; border-radius: 2px; flex: none; }
.lg { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.lg span { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 21px; color: var(--tx2); }

/* Histórico */
.wh { display: flex; flex-direction: column; gap: 4px; padding: 0 4px; }
.wh .r { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ac { display: grid; grid-template-columns: 40px minmax(0,1fr); gap: 12px; padding: 16px; border-top: 1px solid var(--line); }
.ac:first-child { border-top: 0; }
.ac .ic { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.ac .t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ac .l1 { display: flex; align-items: baseline; gap: 8px; }
.ac .l1 b { flex: 1; font-size: 16px; line-height: 24px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac .l1 span { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 16px; }
.cmp { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; line-height: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.rep .h { display: flex; align-items: center; gap: 8px; padding: 0 16px 4px 4px; }

/* Nutrição */
.dp { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0; border-radius: 12px; min-height: 88px; justify-content: center; border: 1px solid transparent; }
.dp b { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--tx3); }
.dp .n { font-size: 20px; line-height: 24px; }
.dh { display: flex; align-items: baseline; justify-content: space-between; padding: 0 4px 12px; gap: 12px; }
.grp { background: var(--s1); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: block; }
.ml { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 12px 12px 16px; border-top: 1px solid var(--line); }
.ml:first-child { border-top: 0; }
.ml .t { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.tl { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 12px; }
.tt { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 16px; }
.tt i { width: 1px; flex: 1; background: var(--line); margin-left: 4px; }
.card { background: var(--s1); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.mb { display: flex; height: 4px; border-radius: 2px; overflow: hidden; gap: 2px; }
.thumb { width: 64px; height: 64px; border-radius: 10px; background: var(--s2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--tx3); flex: none; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Receita e lista de compras */
.ing { display: flex; align-items: baseline; gap: 12px; min-height: 52px; padding: 14px 16px; border-top: 1px solid var(--line); }
.ing:first-child { border-top: 0; }
.ing .n { flex: 1; font-size: 16px; line-height: 24px; }
.ing .q { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 14px; color: var(--tx2); text-align: right; }
.step { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; padding-top: 0; }
.step .k { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 14px; line-height: 24px; color: var(--tx3); }
.stepper { display: flex; align-items: center; border: 1px solid var(--line2); border-radius: 12px; }
.foot { position: sticky; bottom: 0; padding: 12px 16px 16px; background: var(--bg); border-top: 1px solid var(--line); display: flex; gap: 8px; z-index: 4; }
.screen:not(.no-nav) .foot { bottom: calc(81px + env(safe-area-inset-bottom)); }
.chk { display: flex; align-items: center; gap: 16px; min-height: 56px; padding: 8px 16px; width: 100%; border-top: 1px solid var(--line); }
.chk:first-child { border-top: 0; }
.chk .box { width: 24px; height: 24px; border-radius: 6px; border: 1.5px solid var(--line2); display: flex; align-items: center; justify-content: center; flex: none; color: var(--inv); }
.chk[aria-checked="true"] .box { background: var(--tx3); border-color: var(--tx3); }
.chk .n { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.chk[aria-checked="true"] .n b { color: var(--tx3); text-decoration: line-through; text-decoration-thickness: 1px; }
.chk .n b { font-weight: 400; }
.chk .q { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 14px; color: var(--tx2); text-align: right; white-space: nowrap; }
.chk[aria-checked="true"] .q { color: var(--tx3); }

/* Registar refeição */
.fav { min-height: 112px; background: var(--s1); padding: 16px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; align-items: flex-start; text-align: left; }
.fav b { font-size: 16px; line-height: 20px; font-weight: 500; }
.alt { min-height: 96px; background: var(--s1); display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 16px; font-size: 14px; line-height: 18px; font-weight: 500; text-align: left; }
.alt[aria-pressed="true"] { background: var(--s2); }
select.chip { appearance: none; color: var(--tx); }

/* Diário */
.mr { display: flex; flex-direction: column; gap: 8px; }
.mr .h { display: flex; align-items: baseline; gap: 8px; }
.mr .h .lbl { flex: 1; }
.mbar { position: relative; height: 6px; border-radius: 3px; background: var(--s3); }
.mbar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; }
.mbar b { position: absolute; left: 83.3%; top: -4px; bottom: -4px; width: 2px; background: var(--tx); border-radius: 1px; }
.stt { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; line-height: 16px; display: inline-flex; align-items: center; gap: 4px; min-width: 64px; justify-content: flex-end; }
.mh { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 16px; min-height: 56px; border-bottom: 1px solid var(--line); background: var(--s2); }
.mh .eb { flex: 1; color: var(--tx2); }
.en { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 16px; border-top: 1px solid var(--line); width: 100%; text-align: left; }
.mh + .en { border-top: 0; }
.en .src { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--tx3); flex: none; }
.en .t { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.en .t b { font-size: 16px; line-height: 24px; font-weight: 400; }
.en .k { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 14px; color: var(--tx2); }
.tag { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; line-height: 16px; border: 1px solid var(--line2); border-radius: 6px; padding: 2px 6px; color: var(--tx2); align-self: flex-start; margin-top: 4px; }
details summary { list-style: none; display: flex; align-items: center; }
details summary::-webkit-details-marker { display: none; }

/* Progresso */
.seg5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.seg5 > * { padding: 0 4px; justify-content: center; text-align: center; }
.headline { font-size: 32px; line-height: 38px; font-weight: 500; letter-spacing: -.03em; }
.dlt { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; line-height: 16px; color: var(--tx2); }
.sw { width: 10px; height: 10px; border-radius: 2px; flex: none; }
.mt { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 0 4px; }
.mt .t { display: flex; flex-direction: column; gap: 2px; }
.mini { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-top: 1px solid var(--line); }
.mini:first-child { border-top: 0; }
.ep { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 16px; border-top: 1px solid var(--line); }
.ep:first-child { border-top: 0; }
.ep .t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ep .t b { font-size: 16px; line-height: 24px; font-weight: 500; }
.pk { width: 56px; height: 56px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid; }
.pk b { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 20px; line-height: 24px; font-weight: 400; }
.pk span { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; line-height: 16px; }
.pk.warn { color: var(--warn); border-color: rgba(242,184,75,.45); background: var(--warnbg); }
.pk.bad { color: var(--bad); border-color: rgba(242,112,95,.45); background: var(--badbg); }

/* Eu */
.dot { width: 8px; height: 8px; border-radius: 4px; flex: none; }
.zr { display: grid; grid-template-columns: 12px 40px 1fr auto; align-items: center; gap: 12px; min-height: 56px; padding: 8px 16px; border-top: 1px solid var(--line); }
.zr:first-child { border-top: 0; }
.zr .sw { width: 12px; height: 24px; border-radius: 3px; }
.zr .z { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 14px; }
.zr .r { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 16px; text-align: right; }
.note { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-top: 1px solid var(--line); }
.note:first-child { border-top: 0; }
.note p { font-size: 16px; line-height: 24px; }

/* Progresso · recordes e marcos */
.rhd { display: grid; grid-template-columns: 1fr auto auto; column-gap: 16px; padding: 0 16px; }
.rhd span { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--tx3); text-align: right; }
.rc { display: grid; grid-template-columns: 1fr auto auto; align-items: baseline; column-gap: 16px; row-gap: 2px; padding: 14px 16px; border-top: 1px solid var(--line); min-height: 48px; }
.rc:first-child { border-top: 0; }
.rc .n { font-size: 16px; line-height: 24px; }
.rc .v { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 20px; line-height: 24px; text-align: right; }
.rc .r { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 14px; line-height: 24px; color: var(--tx2); text-align: right; min-width: 64px; }
.rc .d { grid-column: 1 / -1; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; line-height: 16px; color: var(--tx3); }
.ms { display: grid; grid-template-columns: 72px 16px 1fr; gap: 0 12px; align-items: start; min-height: 48px; }
.ms .dt { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 14px; line-height: 24px; color: var(--tx3); text-align: right; }
.ms .ln { position: relative; align-self: stretch; display: flex; justify-content: center; }
.ms .ln::before { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line2); }
.ms .ln i { position: relative; margin-top: 8px; width: 9px; height: 9px; border-radius: 5px; background: var(--tx); }
.ms .ln i.open { background: var(--bg); border: 1.5px solid var(--tx3); }
.ms .tx { font-size: 16px; line-height: 24px; padding-bottom: 24px; }
.tb td, .tb th { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 14px; padding: 12px 8px; }
.tb th:first-child, .tb td:first-child { padding-left: 16px; }
.tb th:last-child, .tb td:last-child { padding-right: 16px; }
.tb td { color: var(--tx2); }
.tb tr.cur td { color: var(--tx); }
/* Atividade · percurso */
.route { background: var(--s2); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.route svg { display: block; width: 100%; height: 220px; }
