/* ==========================================================================
   Nexus — sistema visual 3.0
   Cada área tem uma cor e imagens que a representam:
   Tarefas (azul) · Finanças (verde) · Objetivos (coral) · Hábitos (violeta) · Conquistas (dourado).
   A cor nunca é o único sinal: ícones, formas e texto acompanham cada estado.
   ========================================================================== */

:root {
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Segoe UI', Roboto, sans-serif;
  --mono: var(--font);
  --r-xs: 8px; --r-sm: 12px; --r-md: 16px; --r-lg: 22px; --r-xl: 28px; --r-full: 999px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.32, 1.3, .52, 1);
  --t-fast: 140ms; --t-med: 260ms; --t-slow: 480ms;
  --dock-h: 64px; --dock-gap: 12px; --maxw: 720px;
  /* Cores das áreas (base) */
  --tasks: #2F6BFF; --money: #12B76A; --goals: #FF6A3D; --habits: #8B5CF6; --wins: #F2B705; --danger: #E5484D; --brand: #2F6BFF;
}

/* ---------- Tema claro (padrão) ---------- */
[data-theme='light'] {
  color-scheme: light;
  --bg: #F5F4F0;
  --surface: #FFFFFF;
  --surface-solid: #FFFFFF;
  --surface-2: rgba(22, 24, 35, .045);
  --surface-3: rgba(22, 24, 35, .085);
  --line: rgba(22, 24, 40, .08);
  --line-strong: rgba(22, 24, 40, .15);
  --text: #15161A;
  --text-2: #4F525C;
  --text-3: #686B75;
  --ink: #15161A;
  --ink-inv: #FFFFFF;
  /* Tons fortes para texto e preenchimentos com texto branco (contraste ≥ 4,5:1) */
  --tasks-ink: #1F55E0; --money-ink: #067647; --goals-ink: #C4320A; --habits-ink: #6927DA; --wins-ink: #8A5A00; --danger-ink: #C62A2F;
  --on-fill: #FFFFFF;
  --shadow-1: 0 1px 2px rgba(20, 22, 35, .06);
  --shadow-2: 0 1px 2px rgba(20, 22, 35, .04), 0 8px 24px -10px rgba(20, 22, 35, .14);
  --shadow-3: 0 24px 60px -18px rgba(20, 22, 35, .3), 0 4px 14px rgba(20, 22, 35, .08);
  --glass: rgba(255, 255, 255, .72);
  --glass-strong: rgba(255, 255, 255, .9);
  --glass-rim: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(20, 22, 40, .07);
  --scrim: rgba(20, 22, 30, .32);
  --mark-tile: #FFFFFF; --mark-core: #FFFFFF; --mark-blend: multiply;
  --tint: 12%;
}

/* ---------- Tema escuro ---------- */
[data-theme='dark'] {
  color-scheme: dark;
  --bg: #0E0F13;
  --surface: #17181D;
  --surface-solid: #1E1F25;
  --surface-2: rgba(255, 255, 255, .055);
  --surface-3: rgba(255, 255, 255, .1);
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .15);
  --text: #F3F3F5;
  --text-2: #B9BBC4;
  --text-3: #8F929C;
  --ink: #F3F3F5;
  --ink-inv: #0E0F13;
  --tasks-ink: #7CA2FF; --money-ink: #3DD68C; --goals-ink: #FF916E; --habits-ink: #B39AFC; --wins-ink: #F5C842; --danger-ink: #FF7377;
  --on-fill: #0E0F13;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-2: 0 10px 30px -14px rgba(0, 0, 0, .7);
  --shadow-3: 0 28px 70px -20px rgba(0, 0, 0, .85), 0 6px 18px rgba(0, 0, 0, .45);
  --glass: rgba(30, 31, 38, .72);
  --glass-strong: rgba(26, 27, 33, .92);
  --glass-rim: inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 0 0 1px rgba(255, 255, 255, .07);
  --scrim: rgba(0, 0, 0, .55);
  --mark-tile: #1E1F25; --mark-core: #0E0F13; --mark-blend: screen;
  --tint: 18%;
}

/* Contexto de área: define --area / --area-ink / preenchimentos */
[data-area='tasks'] { --area: var(--tasks); --area-ink: var(--tasks-ink); }
[data-area='money'] { --area: var(--money); --area-ink: var(--money-ink); }
[data-area='goals'] { --area: var(--goals); --area-ink: var(--goals-ink); }
[data-area='habits'] { --area: var(--habits); --area-ink: var(--habits-ink); }
[data-area='wins'] { --area: var(--wins); --area-ink: var(--wins-ink); }
[data-area='brand'] { --area: var(--brand); --area-ink: var(--tasks-ink); }
[data-theme='light'] [data-area], [data-theme='light'][data-area] { --area-fill: var(--area-ink); }
[data-theme='dark'] [data-area], [data-theme='dark'][data-area] { --area-fill: var(--area); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; letter-spacing: -.006em;
  color: var(--text); background: var(--bg); min-height: 100dvh;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--t-med) var(--ease), color var(--t-med) var(--ease);
  overflow-x: hidden;
}
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 30px; line-height: 1.1; letter-spacing: -.03em; font-weight: 800; }
h2 { font-size: 18px; line-height: 1.3; letter-spacing: -.02em; font-weight: 700; }
h3 { font-size: 15.5px; line-height: 1.35; letter-spacing: -.012em; font-weight: 700; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
::selection { background: color-mix(in srgb, var(--tasks) 30%, transparent); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-2); }
.subtle { color: var(--text-3); }
.small { font-size: 13.5px; }
.tiny { font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { flex: none; display: block; }
p > .ic, .small > .ic, .tiny > .ic, .muted > .ic, .hint > .ic { display: inline-block; vertical-align: -2px; margin-right: 4px; }
:focus-visible { outline: 2.5px solid var(--tasks); outline-offset: 2px; border-radius: 10px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: var(--ink-inv); padding: 10px 14px; border-radius: var(--r-sm); font-weight: 700; }
.skip-link:focus { top: 12px; }
kbd { font-family: var(--font); font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 6px; color: var(--text-3); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }

/* Atmosfera: halos de cor suaves */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ambient i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; }
.ambient i:nth-child(1) { width: 55vmax; height: 40vmax; left: -15vmax; top: -22vmax; background: radial-gradient(closest-side, color-mix(in srgb, var(--tasks) 22%, transparent), transparent); }
.ambient i:nth-child(2) { width: 50vmax; height: 40vmax; right: -18vmax; top: -18vmax; background: radial-gradient(closest-side, color-mix(in srgb, var(--goals) 16%, transparent), transparent); }
[data-theme='dark'] .ambient i { opacity: .35; }
.grain { display: none; }

/* ---------- Superfícies ---------- */
.card, .nextstep, .confirm-card, .note-item, .support, .privacy-note, .glass, .tile {
  position: relative; background: var(--surface); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line);
}
[data-theme='light'] .card, [data-theme='light'] .nextstep, [data-theme='light'] .tile { box-shadow: var(--shadow-2); }
.liquid, .glass-chrome {
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  box-shadow: var(--glass-rim), var(--shadow-3);
}
.liquid { backdrop-filter: url(#nx-liquid) blur(14px) saturate(180%); }

/* ---------- Shell ---------- */
.app { position: relative; z-index: 1; min-height: 100dvh; }
.shell { display: flex; min-height: 100dvh; }
.main { flex: 1; min-width: 0; position: relative; padding: calc(env(safe-area-inset-top) + var(--s3)) var(--s4) calc(var(--dock-h) + var(--dock-gap) + 64px + env(safe-area-inset-bottom)); }
.main > .view { max-width: var(--maxw); margin: 0 auto; }
.main > .view > * { animation: rise 520ms var(--ease-out) both; }
.main > .view > *:nth-child(2) { animation-delay: 40ms; }
.main > .view > *:nth-child(3) { animation-delay: 80ms; }
.main > .view > *:nth-child(4) { animation-delay: 120ms; }
.main > .view > *:nth-child(n+5) { animation-delay: 160ms; }
.main > .view.no-anim > *, .no-anim .core-ring, .no-anim .bar-row__fill, .no-anim .area-path, .no-anim .col__bar, .no-anim .stackbar i, .no-anim .week__bar { animation: none !important; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

.appbar {
  position: fixed; z-index: 25; top: 0; left: 0; right: 0; height: calc(52px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top);
  display: flex; align-items: center; justify-content: center; background: var(--glass-strong);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  box-shadow: inset 0 -1px 0 var(--line); opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.appbar__title { font-size: 15px; font-weight: 800; }
.is-scrolled .appbar { opacity: 1; transform: none; pointer-events: auto; }

.topbar { display: flex; align-items: flex-end; gap: var(--s3); min-height: 52px; margin: var(--s3) 4px var(--s4); }
.topbar__title { flex: 1; min-width: 0; }
.topbar__title h1 { font-size: 32px; }
.topbar__actions { display: flex; gap: var(--s2); }
.eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }

/* Banner fotográfico de cada área */
.banner { position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: 176px; display: flex; flex-direction: column; justify-content: flex-end; padding: var(--s5); color: #fff; isolation: isolate; box-shadow: var(--shadow-2); }
.banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.banner::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.12) 35%, color-mix(in srgb, var(--area, #000) 50%, #000) 100%); }
.banner h1 { font-size: 32px; color: #fff; text-shadow: 0 1px 14px rgba(0,0,0,.3); }
.banner__sub { margin-top: 4px; font-size: 14.5px; font-weight: 600; color: rgba(255,255,255,.92); }
.banner__top { position: absolute; top: var(--s4); left: var(--s4); right: var(--s4); display: flex; align-items: center; gap: 8px; }
.banner__top .grow { min-width: 0; }
.banner__actions { display: flex; gap: 8px; }
.glass-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.2); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); transition: background var(--t-fast), transform var(--t-fast) var(--ease); }
.glass-btn:hover { background: rgba(255,255,255,.3); }
.glass-btn:active { transform: scale(.92); }
.glass-btn--solid { background: #fff; color: #15161A; box-shadow: 0 6px 18px -6px rgba(0,0,0,.4); }
.glass-btn--solid:hover { background: #fff; transform: scale(1.05); }
.pill-light { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: var(--r-full); font-size: 12px; font-weight: 800; color: #fff; background: rgba(255,255,255,.2); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); white-space: nowrap; }

/* ---------- Marca ---------- */
.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand__name { font-size: 21px; font-weight: 800; letter-spacing: -.05em; }
.mark { flex: none; }

/* ---------- Navegação ---------- */
.nav { position: fixed; z-index: 30; left: var(--dock-gap); right: calc(var(--dock-gap) * 2 + var(--dock-h)); bottom: calc(var(--dock-gap) + env(safe-area-inset-bottom)); height: var(--dock-h); border-radius: var(--r-full); padding: 5px; max-width: 520px; }
.nav__brand, .nav__foot, .nav__ask { display: none; }
.nav__list { position: relative; z-index: 1; height: 100%; display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); list-style: none; padding: 0; margin: 0; }
.nav__list::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: calc(100% / var(--n, 5)); border-radius: var(--r-full);
  background: color-mix(in srgb, var(--lc, var(--tasks)) var(--tint), transparent);
  transform: translateX(calc(var(--i, 0) * 100%)); transition: transform 560ms var(--spring), background var(--t-med);
}
.nav__item { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: var(--r-full); color: var(--text-3); text-decoration: none; font-size: 10.5px; font-weight: 700; transition: color var(--t-fast); }
.nav__item:hover { color: var(--text-2); }
.nav__item[aria-current='page'] { color: var(--area-ink, var(--text)); }
.nav__item .ic { transition: transform 420ms var(--spring); }
.nav__item:active .ic { transform: scale(.86); }
.nav__item kbd { display: none; }

/* Orbe do assistente: anel com as cores das áreas */
.fab { position: fixed; z-index: 40; right: var(--dock-gap); bottom: calc(var(--dock-gap) + env(safe-area-inset-bottom)); width: var(--dock-h); height: var(--dock-h); border-radius: 50%; display: grid; place-items: center; isolation: isolate; transition: transform 420ms var(--spring), opacity var(--t-fast); }
.fab::before { content: ''; position: absolute; inset: -2px; border-radius: 50%; z-index: -1; padding: 2.5px; background: conic-gradient(from var(--a, 0deg), var(--tasks), var(--money), var(--wins), var(--goals), var(--habits), var(--tasks)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: orbit 8s linear infinite; }
@property --a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes orbit { to { --a: 360deg; } }
.fab:hover { transform: scale(1.05); }
.fab:active { transform: scale(.94); }
.fab .mark { transition: transform 900ms var(--spring); }
.fab:hover .mark { transform: rotate(90deg); }
.fab[aria-expanded='true'] { transform: scale(.6); opacity: 0; pointer-events: none; }

/* ---------- Layout ---------- */
.card { border-radius: var(--r-lg); padding: var(--s5); }
.card + .card, .section + .section, .card + .section, .section + .card { margin-top: var(--s4); }
.card--flush { padding: 0; overflow: hidden; }
.card--quiet { background: var(--surface-2); box-shadow: none !important; }
.card--interactive { text-align: left; width: 100%; display: block; transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med); }
.card--interactive:hover { box-shadow: var(--shadow-3); transform: translateY(-2px); }
.card--interactive:active { transform: scale(.985); }
.section { margin-top: var(--s8); }
.section__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin: 0 4px var(--s3); min-height: 28px; }
.section__head h2 { font-size: 20px; font-weight: 800; letter-spacing: -.025em; }
.stack > * + * { margin-top: var(--s3); }
.row { display: flex; align-items: center; gap: var(--s3); }
.row--between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.divider { height: 1px; border: 0; margin: var(--s5) 0; background: var(--line); }

/* ---------- Botões ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: var(--r-full); font-weight: 700; font-size: 15px; white-space: nowrap; text-decoration: none; transition: background var(--t-fast) var(--ease), color var(--t-fast), transform var(--t-fast) var(--ease), box-shadow var(--t-med), filter var(--t-fast); }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn--primary { background: var(--ink); color: var(--ink-inv); box-shadow: 0 6px 16px -8px rgba(0,0,0,.5); }
[data-area] .btn--primary { background: var(--area-fill); color: var(--on-fill); box-shadow: 0 6px 16px -8px var(--area); }
.btn--primary:hover { filter: brightness(1.08); }
.btn--secondary { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--secondary:hover { background: var(--surface-2); }
.btn--tint { background: color-mix(in srgb, var(--area) var(--tint), transparent); color: var(--area-ink); }
.btn--tint:hover { background: color-mix(in srgb, var(--area) 20%, transparent); }
.btn--ghost { color: var(--text-2); }
.btn--ghost:hover { background: var(--surface-2); color: var(--text); }
.btn--danger { background: var(--danger-ink); color: #fff; }
[data-theme='dark'] .btn--danger { background: var(--danger); }
.btn--danger-ghost { color: var(--danger-ink); }
.btn--danger-ghost:hover { background: color-mix(in srgb, var(--danger) 10%, transparent); }
.btn--sm { min-height: 38px; padding: 0 15px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--lg { min-height: 54px; font-size: 16px; padding: 0 24px; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-full); flex: none; color: var(--text-2); transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast) var(--ease); }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn:active { transform: scale(.92); }
.icon-btn--filled { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text); }
.icon-btn--accent { background: var(--ink); color: var(--ink-inv); }
[data-area] .icon-btn--accent { background: var(--area-fill); color: var(--on-fill); box-shadow: 0 6px 16px -8px var(--area); }
.icon-btn--accent:hover { filter: brightness(1.08); background: var(--area-fill, var(--ink)); color: var(--on-fill); }
.icon-btn--sm { width: 36px; height: 36px; }
.link-btn { text-decoration: none; color: var(--area-ink, var(--text-2)); font-weight: 700; font-size: 13.5px; min-height: 36px; display: inline-flex; align-items: center; gap: 4px; padding: 0 4px; border-radius: 8px; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Chips e controle segmentado ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 28px 4px 4px; margin: -4px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 14px; border-radius: var(--r-full); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 13.5px; font-weight: 600; color: var(--text-2); white-space: nowrap; transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast); }
.chip:hover { color: var(--text); }
.chip[aria-pressed='true'], .chip.is-active { background: var(--ink); color: var(--ink-inv); box-shadow: none; }
.chip .dot { width: 8px; height: 8px; }

.segmented { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: var(--r-full); background: var(--surface-3); }
.segmented::before { content: ''; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / var(--n, 3)); border-radius: var(--r-full); transform: translateX(calc(var(--k, 0) * 100%)); background: var(--surface-solid); box-shadow: 0 2px 8px -2px rgba(0,0,0,.18), 0 0 0 .5px var(--line); transition: transform 520ms var(--spring); }
.segmented:not([style*='--n'])::before { display: none; }
.segmented button { position: relative; z-index: 1; min-height: 36px; border-radius: var(--r-full); font-size: 13.5px; font-weight: 700; color: var(--text-3); display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: color var(--t-med); }
.segmented button:hover { color: var(--text-2); }
.segmented button[aria-selected='true'], .segmented button[aria-pressed='true'], .segmented button[aria-checked='true'] { color: var(--area-ink, var(--text)); }
.segmented:not([style*='--n']) button[aria-selected='true'] { background: var(--surface-solid); }

.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: var(--r-full); font-size: 11.5px; font-weight: 700; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.badge--accent { background: color-mix(in srgb, var(--area, var(--tasks)) var(--tint), transparent); color: var(--area-ink, var(--tasks-ink)); }
.badge--good { background: color-mix(in srgb, var(--money) var(--tint), transparent); color: var(--money-ink); }
.badge--warn { background: color-mix(in srgb, var(--wins) 22%, transparent); color: var(--wins-ink); }
.badge--bad { background: color-mix(in srgb, var(--danger) var(--tint), transparent); color: var(--danger-ink); }
.badge--info { background: color-mix(in srgb, var(--tasks) var(--tint), transparent); color: var(--tasks-ink); }
.badge--demo { background: color-mix(in srgb, var(--wins) 24%, var(--surface)); color: var(--wins-ink); }
.badge--demo::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: breathe 2.4s var(--ease) infinite; }
@keyframes breathe { 50% { opacity: .3; } }

/* ---------- Listas ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list-row { display: flex; align-items: center; gap: var(--s3); padding: 12px var(--s4); min-height: 64px; position: relative; background: transparent; }
.list > li + li > .list-row::before, .list > li + li > .swipe > .list-row::before, .list-row + .list-row::before, .setting + .setting::before { content: ''; position: absolute; top: 0; left: 64px; right: 0; height: 1px; background: var(--line); }
.setting + .setting::before { left: var(--s4); }
.setting:has(.set-ic) + .setting:has(.set-ic)::before { left: 58px; }
.list-row--btn { width: 100%; text-align: left; transition: background var(--t-fast); }
.list-row--btn:hover { background: var(--surface-2); }
.list-row__main { flex: 1; min-width: 0; }
.list-row__title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.list-row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 12px; font-size: 12.5px; color: var(--text-3); margin-top: 3px; font-weight: 500; }
.list-row__meta > span { display: inline-flex; align-items: center; gap: 5px; }
.list-row__end { text-align: right; flex: none; }
.lead-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--area, var(--text-3)) var(--tint), transparent); color: var(--area-ink, var(--text)); }
.lead-icon--accent, .lead-icon--good { background: var(--area-fill, var(--money-ink)); color: var(--on-fill); }
.lead-icon--warn { background: color-mix(in srgb, var(--wins) 24%, transparent); color: var(--wins-ink); }
.lead-icon--bad { background: color-mix(in srgb, var(--danger) var(--tint), transparent); color: var(--danger-ink); }

/* Avatar de categoria (foto redonda com anel na cor da categoria) */
.cat-av { position: relative; flex: none; border-radius: 50%; overflow: hidden; background: color-mix(in srgb, var(--cc) 30%, var(--surface)); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--cc); }
.cat-av img { width: 100%; height: 100%; object-fit: cover; }

/* Ponto de categoria: cor + forma (a forma garante leitura sem depender da cor) */
.cat-dot, .chip .dot { width: 8px; height: 8px; flex: none; display: inline-block; background: var(--cc, currentColor); border-radius: 50%; color: var(--cc, var(--text-3)); }
.chip[aria-pressed='true'] .dot { box-shadow: 0 0 0 1.5px var(--ink-inv); }
[data-g='1'] { background: transparent !important; box-shadow: inset 0 0 0 2px var(--cc, currentColor); }
[data-g='2'] { border-radius: 2px !important; }
[data-g='3'] { border-radius: 1px !important; transform: rotate(45deg) scale(.85); }
[data-g='4'] { background: linear-gradient(90deg, var(--cc, currentColor) 50%, transparent 50%) !important; box-shadow: inset 0 0 0 1.5px var(--cc, currentColor); }

/* Gesto de deslizar */
.swipe { position: relative; overflow: hidden; touch-action: pan-y; }
.swipe__under { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; padding: 0 22px; font-size: 13.5px; font-weight: 800; color: #fff; background: linear-gradient(90deg, #067647 50%, #8A5A00 50%); }
.swipe__under span { display: inline-flex; align-items: center; gap: 8px; opacity: 0; transition: opacity var(--t-fast), transform var(--t-med) var(--spring); }
.swipe.is-left .swipe__under span:first-child, .swipe.is-right .swipe__under span:last-child { opacity: 1; }
.swipe.is-armed .swipe__under span { transform: scale(1.08); }
.swipe > .list-row { background: var(--surface); transition: transform 420ms var(--spring); will-change: transform; }
.swipe.is-dragging > .list-row { transition: none; }

/* Caixa de seleção circular na cor da categoria */
.check { width: 26px; height: 26px; border-radius: 50%; flex: none; position: relative; display: grid; place-items: center; color: transparent; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--cc, var(--text-3)) 75%, transparent); transition: background var(--t-fast) var(--ease), box-shadow var(--t-fast), color var(--t-fast), transform var(--t-med) var(--spring); }
.check::before { content: ''; position: absolute; inset: -9px; }
.check::after { content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; }
.check:hover { background: color-mix(in srgb, var(--cc, var(--tasks)) 12%, transparent); }
.check[aria-checked='true'] { background: var(--cc, var(--tasks)); color: #fff; box-shadow: none; }
.check[aria-checked='true']::after { animation: pulse 640ms var(--ease-out); }
.check:active { transform: scale(.86); }
.check--prio-alta { box-shadow: inset 0 0 0 3px var(--cc, var(--tasks)); }
.check--sm { width: 22px; height: 22px; }
@keyframes pulse { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--cc, var(--tasks)) 45%, transparent); } to { box-shadow: 0 0 0 12px transparent; } }
.is-done .list-row__title { color: var(--text-3); text-decoration: line-through; }
.prio { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.prio--alta { color: var(--goals-ink); }
.is-late { color: var(--danger-ink) !important; font-weight: 700; }

/* ---------- Progresso ---------- */
.progress { height: 6px; border-radius: 6px; background: color-mix(in srgb, var(--area, var(--tasks)) 14%, transparent); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 6px; background: var(--area, var(--tasks)); transition: width 800ms var(--ease-out); }
.progress--lg { height: 8px; }
.ring { transform: rotate(-90deg); overflow: visible; }
.ring__track { stroke: color-mix(in srgb, var(--area, var(--tasks)) 16%, transparent); }
.ring__value { stroke: var(--area, var(--tasks)); transition: stroke-dashoffset 900ms var(--ease-out); }
.segbar { display: flex; gap: 4px; height: 6px; }
.segbar i { flex: 1; border-radius: 3px; background: color-mix(in srgb, var(--area, var(--goals)) 16%, transparent); }
.segbar i.on { background: var(--area, var(--goals)); }

/* ---------- Estatísticas ---------- */
.stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat__label { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.stat__value { font-size: 22px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat__value--xl { font-size: 42px; letter-spacing: -.045em; line-height: 1.05; }
.stat__value--xl .cents { font-size: .45em; color: var(--text-3); vertical-align: .9em; margin-left: 2px; letter-spacing: 0; }
.stat__hint { font-size: 12.5px; color: var(--text-2); }
.masked { letter-spacing: .1em; color: var(--text-3); }

/* ---------- Início ---------- */
.home-hero { min-height: 236px; }
.home-hero h1 { font-size: 30px; }
.home-hero .soft { opacity: .85; font-weight: 600; }
.me { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 800; text-decoration: none; background: #fff; color: #15161A; box-shadow: 0 6px 18px -6px rgba(0,0,0,.4); }

.ask { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 8px 0 14px; border-radius: var(--r-full); background: var(--surface); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line); color: var(--text-3); text-align: left; font-size: 15px; font-weight: 500; margin-top: var(--s4); transition: box-shadow var(--t-med), transform var(--t-fast) var(--ease); }
.ask:hover { box-shadow: var(--shadow-3), inset 0 0 0 1px var(--line-strong); }
.ask:active { transform: scale(.99); }
.ask__txt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ask__go { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--ink-inv); }
@media (hover: none) { .ask kbd { display: none; } }

.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: var(--s3); }
.quick__btn { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px 10px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); font-size: 12.5px; font-weight: 700; color: var(--text); transition: transform var(--t-fast) var(--ease), box-shadow var(--t-med); }
.quick__btn:hover { box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line); transform: translateY(-1px); }
.quick__btn:active { transform: scale(.95); }
.quick__btn .qi { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--area) var(--tint), transparent); color: var(--area-ink); }

/* Cartões das áreas com foto */
.acards { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 4px 12px; margin: -4px -4px 0; }
.acards::-webkit-scrollbar { display: none; }
.acard { position: relative; flex: 0 0 158px; height: 196px; border-radius: var(--r-lg); overflow: hidden; scroll-snap-align: start; color: #fff; text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; padding: 12px; isolation: isolate; box-shadow: var(--shadow-2); transition: transform var(--t-med) var(--ease-out); }
.acard:hover { transform: translateY(-3px); }
.acard:active { transform: scale(.97); }
.acard > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease-out); }
.acard:hover > img { transform: scale(1.06); }
.acard::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.05) 25%, color-mix(in srgb, var(--area) 75%, #000) 100%); }
.acard__label { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 7px; border-radius: var(--r-full); font-size: 12px; font-weight: 800; background: rgba(255,255,255,.94); color: var(--area-ink); }
[data-theme='dark'] .acard__label { background: rgba(14,15,19,.8); }
.acard__val { display: block; font-size: 22px; overflow-wrap: anywhere; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; text-shadow: 0 1px 10px rgba(0,0,0,.3); }
.acard__hint { font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.92); margin-top: 2px; }

/* Anéis coloridos (Núcleo) */
.core-card { border-radius: var(--r-xl); padding: var(--s5); overflow: hidden; }
.core { display: grid; gap: var(--s5); align-items: center; }
.core__viz { position: relative; width: 188px; aspect-ratio: 1; margin: 0 auto; }
.core__legend { grid-template-columns: 1fr 1fr; }
@media (min-width: 560px) { .core { grid-template-columns: 168px 1fr; } .core__viz { width: 168px; } .core__legend { grid-template-columns: 1fr; } }
.core__viz svg { width: 100%; height: 100%; overflow: visible; }
.core__center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; pointer-events: none; }
.core__center b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.core__center b span { color: var(--text-3); font-weight: 600; }
.core__center small { display: block; margin-top: 3px; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.core-ring { fill: none; stroke-linecap: round; transform-origin: 80px 80px; transform: rotate(-90deg); animation: ringIn 1400ms var(--ease-out) both; }
@keyframes ringIn { from { stroke-dashoffset: var(--c); } }
.core__legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.core__legend a { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; text-decoration: none; color: var(--text); transition: background var(--t-fast); }
.core__legend a:hover { background: var(--surface-2); }
.core__legend i { width: 10px; height: 10px; border-radius: 50%; background: var(--area); }
.core__legend .lg-name { font-size: 13.5px; font-weight: 700; line-height: 1.2; }
.core__legend .lg-hint { display: block; font-size: 11.5px; font-weight: 500; color: var(--text-3); }
.core__legend .lg-val { font-size: 17px; font-weight: 800; color: var(--area-ink); font-variant-numeric: tabular-nums; }

.nextstep { overflow: hidden; display: flex; gap: var(--s4); align-items: flex-start; border-radius: var(--r-lg); padding: var(--s5); }
.nextstep::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--area, var(--tasks)); }
.nextstep__node { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--area, var(--tasks)) var(--tint), transparent); color: var(--area-ink, var(--tasks-ink)); }
.nextstep h2 { margin-top: 4px; font-size: 17px; }
.home-grid { display: grid; gap: var(--s4); }

/* Semana: barras por dia */
@keyframes colIn { from { transform: scaleY(0); } }
.month-stats { display: grid; grid-template-columns: 1.45fr 1fr 1fr; gap: 8px; margin-top: var(--s5); }
.mstat { border-radius: var(--r-md); padding: 12px; background: color-mix(in srgb, var(--area) 10%, transparent); min-width: 0; }
.mstat .stat__label { color: var(--area-ink); }
.mstat .stat__value { font-size: 16px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Agenda */
.agenda__time { width: 42px; flex: none; text-align: left; font-size: 12px; font-weight: 700; color: var(--text-3); font-variant-numeric: tabular-nums; }
.agenda__time .ic { display: inline-block; color: var(--danger-ink); }
.agenda .list > li + li > .swipe > .list-row::before { left: 96px; }

/* ---------- Tarefas / calendário ---------- */
.group-label { font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); margin: var(--s6) 6px var(--s2); display: flex; justify-content: space-between; align-items: center; min-height: 20px; }
.group-label--late { color: var(--danger-ink); }
.group-label > span, .group-label summary > span { display: inline-flex; align-items: center; gap: 6px; }
details > summary::-webkit-details-marker { display: none; }
.cal { user-select: none; }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s3); }
.cal__head h2 { font-size: 16px; font-weight: 800; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__wd { text-align: center; font-size: 11px; font-weight: 700; color: var(--text-3); text-transform: uppercase; padding-bottom: 4px; }
.cal__day { aspect-ratio: 1 / 1; min-height: 40px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 14.5px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; position: relative; transition: background var(--t-fast), transform var(--t-fast) var(--ease); }
.cal__day:hover { background: var(--surface-2); }
.cal__day:active { transform: scale(.94); }
.cal__day.is-out { opacity: .35; }
.cal__day.is-today { color: var(--tasks-ink); font-weight: 800; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--tasks) 50%, transparent); }
.cal__day[aria-pressed='true'] { background: var(--tasks-ink); color: #fff; box-shadow: 0 8px 18px -8px var(--tasks); }
[data-theme='dark'] .cal__day[aria-pressed='true'] { background: var(--tasks); }
.cal__dots { display: flex; gap: 2px; height: 5px; }
.cal__dots i { width: 5px; height: 5px; border-radius: 5px; background: var(--tasks); }
.cal__day[aria-pressed='true'] .cal__dots i { background: #fff; }
.week-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.week-strip .cal__day { aspect-ratio: auto; padding: 10px 0; }
.week-strip .cal__wd { padding: 0; font-size: 10px; }
.week-strip .cal__day[aria-pressed='true'] .cal__wd { color: rgba(255,255,255,.85); }
.swipe-hint { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--text-3); margin-top: 12px; }

/* ---------- Finanças ---------- */
.money-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s4); }
.money-delta { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 5px 11px 5px 7px; border-radius: var(--r-full); font-size: 12.5px; font-weight: 700; align-self: flex-start; }
.money-delta.is-down { background: color-mix(in srgb, var(--money) var(--tint), transparent); color: var(--money-ink); }
.money-delta.is-up { background: color-mix(in srgb, var(--goals) var(--tint), transparent); color: var(--goals-ink); }
.area { margin: var(--s4) calc(-1 * var(--s5)) 0; height: clamp(110px, 18vw, 150px); position: relative; }
.area svg { width: 100%; height: 100%; display: block; overflow: visible; }
.area-path { animation: areaIn 1200ms var(--ease-out) both; }
@keyframes areaIn { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.area__dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--goals); box-shadow: 0 0 0 3px var(--surface), 0 4px 10px -2px var(--goals); }
.area__dot::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; box-shadow: 0 0 0 2px var(--goals); opacity: 0; animation: ping 2.4s var(--ease-out) infinite 1.2s; }
@keyframes ping { 0% { opacity: .6; transform: scale(.5); } 100% { opacity: 0; transform: scale(1.6); } }
.area__ref { position: absolute; right: var(--s5); transform: translateY(-120%); font-size: 11px; font-weight: 800; color: var(--money-ink); }
.area__axis { display: flex; justify-content: space-between; padding: 6px var(--s5) 0; font-size: 11px; font-weight: 600; color: var(--text-3); }
.flow-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: var(--s4); }
.flow { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-md); }
.flow--in { background: color-mix(in srgb, var(--money) 11%, transparent); }
.flow--out { background: color-mix(in srgb, var(--goals) 11%, transparent); }
.flow .lead-icon { width: 36px; height: 36px; border-radius: 50%; }
.flow--in .lead-icon { background: var(--money-ink); color: #fff; }
.flow--out .lead-icon { background: var(--goals-ink); color: #fff; }
[data-theme='dark'] .flow--in .lead-icon { background: var(--money); color: #0E0F13; }
[data-theme='dark'] .flow--out .lead-icon { background: var(--goals); color: #0E0F13; }
.flow .stat__value { font-size: 16px !important; }
/* Barra empilhada por categoria */
.stackbar { display: flex; height: 14px; border-radius: 8px; overflow: hidden; gap: 2px; margin-bottom: var(--s3); }
.stackbar i { display: block; height: 100%; background: var(--cc); animation: grow 900ms var(--ease-out) both; transform-origin: left; }
.bars { display: grid; gap: 2px; }
.bar-row { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; font-size: 14px; padding: 6px 0; }
.bar-row__label { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row__track { display: block; height: 4px; border-radius: 4px; margin-top: 6px; background: color-mix(in srgb, var(--cc) 16%, transparent); }
.bar-row__fill { display: block; height: 100%; border-radius: 4px; background: var(--cc); animation: grow 1000ms var(--ease-out) both; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } }
.bar-row__value { font-variant-numeric: tabular-nums; font-weight: 800; text-align: right; }
.bar-row__value small { display: block; font-size: 11.5px; font-weight: 600; color: var(--text-3); }
.cols { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: end; height: 130px; }
.col { display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; position: relative; outline: none; border-radius: 10px; }
.col__bar { width: 100%; max-width: 34px; border-radius: 10px 10px 4px 4px; min-height: 4px; background: color-mix(in srgb, var(--goals) 22%, transparent); animation: colIn 1000ms var(--ease-out) both; transform-origin: bottom; }
.col.is-current .col__bar { background: linear-gradient(180deg, var(--goals), color-mix(in srgb, var(--goals) 75%, #000)); box-shadow: 0 8px 18px -8px var(--goals); }
.col__label { font-size: 11px; font-weight: 700; color: var(--text-3); text-transform: capitalize; }
.col.is-current .col__label { color: var(--goals-ink); }
.col:hover .col__tip, .col:focus-visible .col__tip { opacity: 1; transform: translate(-50%, -6px); }
.col__tip { position: absolute; bottom: 100%; left: 50%; transform: translate(-50%, 0); opacity: 0; pointer-events: none; z-index: 2; background: var(--ink); color: var(--ink-inv); font-size: 12px; font-weight: 700; padding: 6px 9px; border-radius: 9px; white-space: nowrap; transition: opacity var(--t-fast), transform var(--t-med) var(--spring); }
.disclaimer { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: var(--text-3); margin: var(--s8) 6px 0; line-height: 1.55; }
.disclaimer .ic { margin-top: 1px; }
.tx-amt { font-weight: 800; font-variant-numeric: tabular-nums; }
.tx-amt.is-in { color: var(--money-ink); }
/* Capas de metas e objetivos */
.cover { position: relative; height: 128px; margin: calc(-1 * var(--s5)) calc(-1 * var(--s5)) var(--s4); overflow: hidden; border-radius: var(--r-lg) var(--r-lg) 0 0; isolation: isolate; }
.cover > img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.card--interactive:hover .cover > img { transform: scale(1.05); }
.cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.5)); }
.cover__badge { position: absolute; z-index: 1; left: 12px; top: 12px; }
.cover__title { position: absolute; z-index: 1; left: 16px; bottom: 12px; right: 16px; color: #fff; font-size: 18px; font-weight: 800; letter-spacing: -.02em; text-shadow: 0 1px 10px rgba(0,0,0,.35); }
.cover__pct { position: absolute; z-index: 1; right: 12px; top: 12px; }

/* ---------- Objetivos / hábitos ---------- */
.habit-thumb { width: 56px; height: 56px; border-radius: 16px; overflow: hidden; flex: none; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px color-mix(in srgb, var(--habits) 60%, transparent); }
.habit-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dots-row { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; }
.hdot { aspect-ratio: 1; border-radius: 6px; background: color-mix(in srgb, var(--habits) 12%, transparent); position: relative; transition: transform var(--t-fast) var(--spring); }
button.hdot:hover { transform: scale(1.1); }
.hdot--done { background: var(--habits); }
.hdot--relapse { background: transparent; box-shadow: inset 0 0 0 1.5px var(--goals-ink); }
.hdot--relapse::after { content: ''; position: absolute; left: 22%; right: 22%; top: 50%; height: 1.5px; background: var(--goals-ink); transform: rotate(-45deg); }
.hdot--pause { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--habits) 45%, transparent) 0 2px, transparent 2px 5px); }
.hdot--today { outline: 2px solid var(--habits-ink); outline-offset: 2px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; font-weight: 600; color: var(--text-3); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .hdot { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.month-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.milestones { display: flex; gap: 6px; flex-wrap: wrap; }
.milestone { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-full); font-size: 12.5px; font-weight: 700; color: var(--text-3); background: var(--surface-2); }
.milestone.is-reached { background: color-mix(in srgb, var(--wins) 26%, transparent); color: var(--wins-ink); }
.note-item { padding: 14px; border-radius: var(--r-md); }
.support { display: flex; gap: 12px; align-items: flex-start; padding: var(--s4); border-radius: var(--r-md); font-size: 13px; color: var(--text-2); background: color-mix(in srgb, var(--habits) 8%, var(--surface)); }
.support .ic { color: var(--habits-ink); margin-top: 2px; }
.support strong { color: var(--text); font-weight: 800; }
.big-run { display: flex; align-items: baseline; gap: 10px; margin: 16px 0 14px; }
.big-run b { font-size: 56px; font-weight: 800; letter-spacing: -.05em; line-height: .9; color: var(--habits-ink); font-variant-numeric: tabular-nums; }

/* Conquistas */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, var(--wins), color-mix(in srgb, var(--wins) 10%, transparent)); }
.tl-item { position: relative; }
.tl-item + .tl-item { margin-top: var(--s3); }
.tl-item::before { content: ''; position: absolute; left: -24px; top: 22px; width: 12px; height: 12px; border-radius: 50%; background: var(--wins); box-shadow: 0 0 0 3px var(--bg); }
.tl-photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-md); margin-top: var(--s3); }
.tl-card { overflow: hidden; padding: 0 !important; }
.tl-card .tl-photo { margin: 0; border-radius: 0; aspect-ratio: 21 / 9; }
.tl-card__body { padding: var(--s4) var(--s5) var(--s5); }

/* ---------- Estados vazios ---------- */
.empty { text-align: center; padding: var(--s8) var(--s5); display: flex; flex-direction: column; align-items: center; gap: var(--s3); }
.empty__photo { width: 116px; height: 116px; border-radius: 50%; object-fit: cover; margin-bottom: var(--s3); box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px color-mix(in srgb, var(--area, var(--tasks)) 50%, transparent), var(--shadow-3); background: var(--surface-2); }
.empty__icon { width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; background: color-mix(in srgb, var(--area, var(--tasks)) var(--tint), transparent); color: var(--area-ink, var(--tasks-ink)); margin-bottom: var(--s2); }
.empty h2 { font-size: 20px; font-weight: 800; }
.empty p { max-width: 320px; color: var(--text-2); }

/* ---------- Formulários ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field + .field, .field + .grid-2, .grid-2 + .field, .grid-2 + .grid-2, .sheet__body > * + .field { margin-top: var(--s4); }
.grid-2 > .field { margin-top: 0 !important; }
.label { font-size: 13px; font-weight: 700; color: var(--text-2); }
.input, .select, .textarea { width: 100%; min-height: 50px; padding: 13px 15px; border-radius: var(--r-sm); border: 0; background: var(--surface-2); color: var(--text); font-size: 16px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow var(--t-med) var(--ease), background var(--t-fast); appearance: none; -webkit-appearance: none; }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:hover, .select:hover, .textarea:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
.input:focus, .select:focus, .textarea:focus { outline: none; background: var(--surface-solid); box-shadow: inset 0 0 0 2px var(--tasks), 0 0 0 4px color-mix(in srgb, var(--tasks) 18%, transparent); }
.input[aria-invalid='true'] { box-shadow: inset 0 0 0 2px var(--danger); }
.input--lg { font-size: 19px; font-weight: 700; min-height: 56px; }
.input--money { font-size: 36px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; min-height: 68px; }
.textarea { min-height: 92px; resize: vertical; }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.select option { background: var(--surface-solid); color: var(--text); }
input[type='date'], input[type='time'] { color-scheme: inherit; }
.hint { font-size: 12.5px; color: var(--text-3); display: inline-flex; gap: 6px; align-items: flex-start; }
.error { font-size: 13px; color: var(--danger-ink); font-weight: 700; }
.error:not(:empty)::before { content: '! '; }
.pass-wrap { position: relative; }
.pass-wrap .icon-btn { position: absolute; right: 3px; top: 3px; }
.radio-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.radio-chips label { position: relative; }
.radio-chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.radio-chips span { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 15px; border-radius: var(--r-full); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 14px; font-weight: 700; color: var(--text-2); transition: background var(--t-fast), color var(--t-fast); }
.radio-chips input:hover + span { color: var(--text); }
.radio-chips input:checked + span { background: var(--ink); color: var(--ink-inv); box-shadow: none; }
.radio-chips input:focus-visible + span { outline: 2.5px solid var(--tasks); outline-offset: 2px; }
.switch { position: relative; width: 51px; height: 31px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 31px; background: var(--surface-3); transition: background var(--t-med); }
.switch span::after { content: ''; position: absolute; left: 2px; top: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.2), 0 0 0 .5px rgba(0,0,0,.05); transition: transform 460ms var(--spring); }
.switch input:checked + span { background: var(--money); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2.5px solid var(--tasks); outline-offset: 2px; }
.switch input:disabled + span { opacity: .4; }
input[type='range'] { width: 100%; accent-color: var(--tasks); height: 28px; }
.setting { position: relative; display: flex; align-items: center; gap: var(--s3); padding: 12px var(--s4); min-height: 58px; }
.setting--col { flex-direction: column; align-items: stretch; }
.set-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--sc, #8B8D98); color: #fff; }

/* ---------- Painéis ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; background: var(--scrim); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fadeIn var(--t-med) var(--ease); }
.scrim.is-closing { animation: fadeOut 200ms var(--ease) forwards; }
.sheet { position: relative; width: 100%; max-width: 560px; max-height: min(92dvh, 880px); display: flex; flex-direction: column; background: var(--surface-solid); border-radius: var(--r-xl) var(--r-xl) 0 0; box-shadow: var(--shadow-3); animation: sheetUp 480ms var(--spring); padding-bottom: env(safe-area-inset-bottom); transition: transform 380ms var(--spring); }
.sheet.is-dragging { transition: none; }
.scrim.is-closing .sheet { animation: sheetDown 220ms var(--ease) forwards; }
.sheet__grab { width: 40px; height: 5px; border-radius: 5px; background: var(--line-strong); margin: 8px auto 0; flex: none; cursor: grab; touch-action: none; }
.sheet__grab::before { content: ''; display: block; height: 30px; margin-top: -12px; }
.sheet__head { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s3) var(--s2) var(--s5); flex: none; touch-action: none; }
.sheet__title { flex: 1; font-size: 20px; font-weight: 800; letter-spacing: -.025em; }
.sheet__body { overflow-y: auto; padding: var(--s2) var(--s5) var(--s5); overscroll-behavior: contain; }
.sheet__foot { display: flex; gap: var(--s2); padding: var(--s3) var(--s5) var(--s4); flex: none; box-shadow: inset 0 1px 0 var(--line); }
.sheet__foot .btn { flex: 1; }
.sheet--alert { max-width: 400px; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes sheetUp { from { transform: translateY(80px); opacity: 0; } }
@keyframes sheetDown { to { transform: translateY(40px); opacity: 0; } }
.action-list .list-row { min-height: 54px; }
.action-list .list-row::before { left: 52px !important; }
.action-list .list-row .ic { color: var(--text-2); }

/* ---------- Avisos ---------- */
.toasts { position: fixed; z-index: 90; left: 50%; transform: translateX(-50%); bottom: calc(var(--dock-h) + var(--dock-gap) * 2 + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; width: min(420px, calc(100% - 24px)); pointer-events: none; }
.toast { pointer-events: auto; position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 12px; min-height: 54px; background: #1B1C22; color: #F3F3F5; border-radius: var(--r-full); box-shadow: var(--shadow-3); font-size: 14px; font-weight: 600; animation: toastIn 480ms var(--spring); }
[data-theme='dark'] .toast { background: #F3F3F5; color: #15161A; }
.toast > .ic { flex: none; width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--money); color: #fff; }
.toast__msg { flex: 1; line-height: 1.35; }
.toast__action { color: #15161A; background: #fff; font-weight: 800; padding: 0 14px; border-radius: var(--r-full); min-height: 38px; font-size: 13.5px; }
[data-theme='dark'] .toast__action { background: #15161A; color: #fff; }
.toast__timer { position: absolute; left: 22px; right: 22px; bottom: 0; height: 2px; background: var(--money); transform-origin: left; animation: timer var(--dur, 5s) linear forwards; border-radius: 2px; }
.toast:hover .toast__timer { animation-play-state: paused; }
@keyframes timer { to { transform: scaleX(0); } }
.toast.is-leaving { animation: toastOut 220ms var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.94); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px) scale(.97); } }

/* ---------- Assistente ---------- */
.asst-open .toasts { bottom: auto; top: calc(12px + env(safe-area-inset-top)); }
.assistant { position: fixed; z-index: 50; right: var(--dock-gap); left: var(--dock-gap); bottom: calc(var(--dock-gap) + env(safe-area-inset-bottom)); max-width: 420px; margin-left: auto; height: min(600px, 78dvh); display: flex; flex-direction: column; overflow: hidden; background: var(--surface-solid); border-radius: var(--r-xl); box-shadow: var(--shadow-3), inset 0 0 0 1px var(--line); transform-origin: bottom right; animation: asstIn 540ms var(--spring); }
.assistant::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 120px; background: linear-gradient(120deg, color-mix(in srgb, var(--tasks) 16%, transparent), color-mix(in srgb, var(--habits) 12%, transparent) 50%, color-mix(in srgb, var(--goals) 12%, transparent)); pointer-events: none; -webkit-mask: linear-gradient(#000, transparent); mask: linear-gradient(#000, transparent); }
.assistant > * { position: relative; }
.assistant.is-closing { animation: asstOut 200ms var(--ease) forwards; }
@keyframes asstIn { from { opacity: 0; transform: translateY(24px) scale(.88); } }
@keyframes asstOut { to { opacity: 0; transform: translateY(16px) scale(.94); } }
.assistant__head { display: flex; align-items: center; gap: 10px; padding: 14px 10px 12px 16px; }
.assistant__head .mark { animation: breatheMark 4s var(--ease) infinite; }
@keyframes breatheMark { 50% { transform: rotate(45deg) scale(.94); } }
.assistant__title { flex: 1; min-width: 0; }
.assistant__title h2 { font-size: 16px; font-weight: 800; }
.assistant__log { flex: 1; overflow-y: auto; padding: var(--s2) var(--s4) var(--s4); display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 20px; font-size: 14.5px; line-height: 1.5; }
.msg.is-new { animation: msgIn 480ms var(--ease-out); }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }
.msg--user { align-self: flex-end; background: var(--tasks-ink); color: #fff; border-bottom-right-radius: 6px; }
[data-theme='dark'] .msg--user { background: var(--tasks); color: #0E0F13; }
.msg--bot { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 6px; }
.msg--bot ul { margin: 6px 0 0; padding-left: 18px; }
.msg--bot li + li { margin-top: 3px; }
.msg__kind { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 6px; padding: 2px 8px 2px 6px; border-radius: var(--r-full); }
.msg__kind--fact { background: color-mix(in srgb, var(--tasks) var(--tint), transparent); color: var(--tasks-ink); }
.msg__kind--suggest { background: color-mix(in srgb, var(--habits) var(--tint), transparent); color: var(--habits-ink); }
.confirm-card { align-self: stretch; max-width: 100%; border-radius: var(--r-lg); padding: 16px; animation: msgIn 480ms var(--ease-out); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line) !important; }
.confirm-card__op { font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--money-ink); }
.confirm-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 12px 0 14px; font-size: 14px; }
.confirm-card dt { color: var(--text-3); font-weight: 600; }
.confirm-card dd { margin: 0; font-weight: 700; }
.confirm-card .row { gap: 6px; flex-wrap: wrap; }
.confirm-card.is-resolved { opacity: .6; }
.suggest-steps { list-style: none; padding: 0; margin: 8px 0 12px; }
.suggest-steps li { display: flex; gap: 10px; align-items: center; padding: 7px 0; font-size: 14px; }
.suggest-steps input { width: 18px; height: 18px; accent-color: var(--goals); }
.assistant__chips { padding: 0 var(--s4) var(--s2); }
.assistant__chips .chip { min-height: 34px; font-size: 13px; }
.assistant__bar { display: flex; gap: 6px; align-items: center; padding: 5px 5px 5px 14px; margin: 0 10px 4px; border-radius: var(--r-full); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.assistant__bar .input { min-height: 40px; padding: 8px 4px; background: transparent; box-shadow: none; font-size: 15px; }
.assistant__bar .input:focus { box-shadow: none; background: transparent; }
.assistant__bar:focus-within { box-shadow: inset 0 0 0 2px var(--tasks); }
.assistant__bar .icon-btn--accent { background: var(--tasks-ink); color: #fff; }
[data-theme='dark'] .assistant__bar .icon-btn--accent { background: var(--tasks); color: #0E0F13; }
.assistant__note { font-size: 11.5px; color: var(--text-3); padding: 6px 18px 12px; display: flex; gap: 6px; align-items: center; }
.mic { position: relative; }
.mic .wave { display: none; gap: 2px; align-items: center; height: 18px; }
.mic .wave i { width: 2.5px; border-radius: 2px; background: currentColor; animation: wave 900ms var(--ease) infinite; }
.mic .wave i:nth-child(1) { height: 40%; animation-delay: -.2s; } .mic .wave i:nth-child(2) { height: 90%; animation-delay: -.5s; }
.mic .wave i:nth-child(3) { height: 60%; animation-delay: -.1s; } .mic .wave i:nth-child(4) { height: 80%; animation-delay: -.7s; }
.mic.is-listening { background: var(--danger); color: #fff; }
.mic.is-listening .wave { display: flex; }
.mic.is-listening .ic { display: none; }
@keyframes wave { 50% { transform: scaleY(.35); } }
.typing { display: inline-flex; gap: 5px; padding: 15px; }
.typing i { width: 7px; height: 7px; border-radius: 7px; animation: blink 1.1s infinite; }
.typing i:nth-child(1) { background: var(--tasks); } .typing i:nth-child(2) { background: var(--habits); animation-delay: .15s; } .typing i:nth-child(3) { background: var(--goals); animation-delay: .3s; }
@keyframes blink { 50% { opacity: .25; transform: translateY(-2px); } }

/* ---------- Boas-vindas ---------- */
.welcome { position: relative; min-height: 100dvh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: #0E0F13; color: #fff; }
.welcome__media { position: absolute; inset: 0; }
.welcome__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; opacity: 0; transform: scale(1.06); transition: opacity 1200ms var(--ease), transform 8s linear; }
.welcome__media img.is-active { opacity: 1; transform: scale(1); }
.welcome__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.3) 0%, transparent 22%, transparent 40%, rgba(0,0,0,.5) 75%, rgba(0,0,0,.65) 100%); }
.welcome__light { display: none; }
.welcome__brand { position: absolute; z-index: 3; top: calc(18px + env(safe-area-inset-top)); left: 16px; padding: 6px 14px 6px 8px; border-radius: var(--r-full); background: rgba(255,255,255,.94); color: #15161A; box-shadow: 0 8px 24px -10px rgba(0,0,0,.5); }
.welcome__brand .brand__name { font-size: 18px; }
.welcome__brand .mark { --mark-core: #fff; --mark-blend: multiply; }
.welcome__body { position: relative; z-index: 2; padding: 0 12px calc(30px + env(safe-area-inset-bottom)); max-width: 540px; width: 100%; margin: 0 auto; }
.welcome__panel { position: relative; padding: 24px 22px 18px; border-radius: var(--r-xl); background: #fff; color: #15161A; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); }
.welcome__slides { position: relative; display: grid; }
.welcome__slide { grid-area: 1 / 1; transition: opacity 600ms var(--ease), transform 600ms var(--ease-out); }
.welcome__slide:not(.is-active) { opacity: 0; transform: translateY(8px); pointer-events: none; }
.welcome__body h1 { font-size: 30px; font-weight: 800; letter-spacing: -.035em; line-height: 1.08; color: #15161A; }
.welcome__body p { color: #4F525C; margin-top: 10px; font-size: 15px; }
.welcome__slide .eyebrow { color: var(--sc); }
.pager { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 20px 0 18px; }
.pager button { position: relative; height: 4px; border-radius: 4px; background: #E6E5E0; overflow: hidden; }
.pager button::before { content: ''; position: absolute; inset: -14px 0; }
.pager button::after { content: ''; position: absolute; inset: 0; background: var(--sc, #1F55E0); transform-origin: left; transform: scaleX(0); border-radius: 4px; }
.pager button.is-past::after { transform: scaleX(1); }
.pager button[aria-current='true']::after { animation: fill 6s linear forwards; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
[data-motion='reduce'] .pager button[aria-current='true']::after { animation: none; transform: scaleX(1); }
.welcome__actions { display: grid; gap: 6px; }
.welcome .btn--primary { background: #15161A; color: #fff; }
.welcome .btn--ghost { color: #15161A; }
.welcome .btn--ghost:hover { background: #F1F0EC; }
.welcome__trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; font-size: 12px; font-weight: 600; color: #686B75; }
.welcome__trust span { display: inline-flex; align-items: center; gap: 5px; }
.photo-credit { position: absolute; z-index: 3; left: 0; right: 0; bottom: calc(8px + env(safe-area-inset-bottom)); text-align: center; font-size: 10px; font-weight: 600; color: rgba(255,255,255,.75); }

/* Acesso */
.auth { position: relative; min-height: 100dvh; display: grid; place-items: start center; }
.auth-wrap { width: 100%; max-width: 420px; margin: 0 auto; padding: calc(16px + env(safe-area-inset-top)) 16px calc(32px + env(safe-area-inset-bottom)); }
.auth-card { border-radius: var(--r-xl); padding: 26px 22px; }
.auth-head { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.auth h1 { font-size: 28px; }
.oauth { display: grid; gap: 8px; margin-top: 22px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 12px; font-weight: 700; margin: 22px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line-strong); }
.privacy-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 16px; border-radius: var(--r-md); font-size: 13px; color: var(--text-2); background: color-mix(in srgb, var(--money) 8%, var(--surface)); box-shadow: none !important; }
.privacy-note .ic { color: var(--money-ink); margin-top: 1px; }
.privacy-note strong { color: var(--text); font-weight: 800; }
.auth-photo { height: 140px; border-radius: var(--r-xl); overflow: hidden; margin-bottom: 14px; position: relative; }
.auth-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 78%; }

.avatar { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--tasks), var(--habits)); color: #fff; font-weight: 800; font-size: 20px; flex: none; box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px color-mix(in srgb, var(--tasks) 30%, transparent); }
.photo-fallback { background: linear-gradient(135deg, color-mix(in srgb, var(--area, var(--tasks)) 60%, #fff), color-mix(in srgb, var(--area, var(--habits)) 90%, #000)); }

/* ---------- Desktop ---------- */
@media (min-width: 960px) {
  :root { --maxw: 980px; }
  .main { padding: 24px 40px 120px; margin-left: 272px; }
  .appbar { left: 272px; }
  .nav { top: 14px; bottom: 14px; left: 14px; right: auto; width: 244px; height: auto; max-width: none; border-radius: var(--r-xl); padding: 20px 12px 14px; display: flex; flex-direction: column; gap: 6px; background: var(--surface); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line); }
  .nav.liquid { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav__brand { display: flex; align-items: center; padding: 0 8px 16px; }
  .nav__ask { display: flex; align-items: center; gap: 10px; min-height: 42px; margin: 0 2px 14px; padding: 0 8px 0 12px; border-radius: 12px; font-size: 13.5px; font-weight: 600; color: var(--text-3); background: var(--surface-2); transition: color var(--t-fast), background var(--t-fast); }
  .nav__ask:hover { color: var(--text-2); background: var(--surface-3); }
  .nav__ask span { flex: 1; text-align: left; }
  .nav__ask kbd { flex: none; }
  .nav__list { grid-template-columns: 1fr; grid-auto-rows: 44px; gap: 2px; height: auto; }
  .nav__list::before { width: 100%; height: 44px; bottom: auto; transform: translateY(calc(var(--i, 0) * 46px)); border-radius: 12px; }
  .nav__item { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 0 12px; font-size: 14.5px; font-weight: 700; border-radius: 12px; }
  .nav__item span { flex: 1; }
  .nav__item kbd { display: inline-block; opacity: 0; transition: opacity var(--t-fast); }
  .nav__item:hover kbd { opacity: 1; }
  .nav__foot { display: block; margin-top: auto; padding: 0 10px; }
  .fab { right: 28px; bottom: 28px; }
  .assistant { right: 28px; bottom: 28px; left: auto; width: 412px; height: min(680px, calc(100dvh - 56px)); }
  .toasts { bottom: 32px; left: calc(50% + 136px); }
  .asst-open .toasts { top: 24px; }
  .scrim { align-items: center; padding: 24px; }
  .sheet { border-radius: var(--r-xl); animation: dialogIn 420ms var(--spring); }
  .scrim.is-closing .sheet { animation: fadeOut 160ms var(--ease) forwards; }
  .sheet__grab { display: none; }
  .sheet__head { padding-top: var(--s4); }
  @keyframes dialogIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }
  .welcome { flex-direction: row; justify-content: flex-start; align-items: flex-end; }
  .welcome__media::after { background: linear-gradient(90deg, transparent 40%, rgba(0,0,0,.35) 100%); }
  .welcome__body { margin: 0 5vw 7vh auto; max-width: 440px; padding: 0; }
  .welcome__body h1 { font-size: 36px; }
  .photo-credit { bottom: 16px; left: 24px; right: auto; text-align: left; }
  .welcome__brand { left: 24px; top: 24px; }
  .auth { place-items: center; }
  .home-hero { min-height: 280px; }
  .home-hero h1 { font-size: 40px; }
  .banner { min-height: 200px; padding: var(--s6); }
  .banner h1 { font-size: 38px; }
  .home-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .acard { flex: 1 1 0; min-width: 150px; }
  .acards { overflow: visible; }
}
@media (max-width: 380px) {
  .main { padding-left: var(--s3); padding-right: var(--s3); }
  .quick__btn { font-size: 11.5px; }
}
@media (max-width: 420px) { .segmented .ic { display: none; } }

/* ---------- Preferências de acessibilidade ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}
[data-motion='reduce'] *, [data-motion='reduce'] *::before, [data-motion='reduce'] *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
@media (prefers-reduced-transparency: reduce) {
  .liquid, .glass-chrome, .appbar { background: var(--surface-solid) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .glass-btn, .pill-light { background: rgba(0,0,0,.55) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .ambient { display: none; }
}
@media (prefers-contrast: more) {
  [data-theme='light'] { --line: rgba(0,0,0,.3); --line-strong: rgba(0,0,0,.55); --text-2: #2A2C33; --text-3: #3D4049; }
  [data-theme='dark'] { --line: rgba(255,255,255,.3); --line-strong: rgba(255,255,255,.55); --text-2: #E2E3E8; --text-3: #C9CBD2; }
  .banner::before, .acard::before { background: rgba(0,0,0,.6); }
}
@media (forced-colors: active) {
  .check[aria-checked='true'], .progress > span, .bar-row__fill, .hdot--done, .segbar i.on, .week__bar i, .col__bar { forced-color-adjust: none; background: Highlight; }
  .ambient { display: none; }
}

/* ==========================================================================
   3.1 — mini Nexus, categorias com ícone, logos, gráficos, parcelas,
   níveis e trilha do ano
   ========================================================================== */
[data-theme='light'] { --track: rgba(22, 24, 40, .07); --cc-mix: black; --cc-k: 58%; }
[data-theme='dark'] { --track: rgba(255, 255, 255, .08); --cc-mix: white; --cc-k: 62%; }

/* ---------- Mini Nexus (assistente) ---------- */
.nexie { flex: none; overflow: visible; }
.nexie__eyes { transform-box: fill-box; transform-origin: center; animation: nxBlink 5.2s infinite; }
@keyframes nxBlink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.12); } }
.nexie .np { transform-box: view-box; transform-origin: 32px 32px; transition: transform 600ms var(--spring); }
.nexie--think .nexie__petals, .is-thinking .nexie__petals { animation: nxSpin 1.6s var(--ease) infinite; transform-origin: 32px 32px; transform-box: view-box; }
@keyframes nxSpin { to { transform: rotate(360deg); } }
.nexie--think .nexie__mouth, .is-thinking .nexie__mouth { d: path('M29.5 36h5'); }
.fab { background: var(--surface); box-shadow: var(--shadow-2); }
.fab .nexie { transition: transform 700ms var(--spring); }
.fab:hover .nexie { transform: rotate(-8deg) scale(1.06); }
.fab:hover .np1 { transform: translateY(-1.5px); } .fab:hover .np2 { transform: translateX(1.5px); } .fab:hover .np3 { transform: translateY(1.5px); } .fab:hover .np4 { transform: translateX(-1.5px); }
.ask .nexie { margin: -4px 0; }
.assistant__face { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 16px; background: var(--surface-2); flex: none; }
.msg-row { display: flex; align-items: flex-end; gap: 8px; max-width: 94%; align-self: flex-start; }
.msg-row .msg { max-width: 100%; }
.msg-row > .nexie { margin-bottom: 2px; }
.msg-row__sp { width: 26px; flex: none; }

/* ---------- Foto de perfil ---------- */
.avatar-wrap { position: relative; flex: none; }
.avatar { overflow: hidden; }
.avatar img, .me img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.avatar.has-photo { background: var(--surface-2); }
.me.has-photo { padding: 0; overflow: hidden; }
.avatar-edit { position: absolute; right: -4px; bottom: -4px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: var(--ink); color: var(--ink-inv); box-shadow: 0 0 0 3px var(--surface), var(--shadow-2); transition: transform var(--t-med) var(--spring); }
.avatar-edit:hover { transform: scale(1.08); }
.avatar-edit:focus-within { outline: 3px solid var(--tasks); outline-offset: 2px; }

/* ---------- Ícone de categoria (cor fixa) e logos de empresas ---------- */
.cat-ic { --s: 40px; width: var(--s); height: var(--s); flex: none; display: grid; place-items: center; border-radius: calc(var(--s) * .32); background: color-mix(in srgb, var(--cc) 16%, var(--surface)); color: color-mix(in oklab, var(--cc) var(--cc-k), var(--cc-mix)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cc) 22%, transparent); }
.cat-ic .ic { stroke-width: 2; }
.cat-ic--solid { background: var(--cc); color: #fff; box-shadow: none; }
.logo-tile { --s: 40px; position: relative; width: var(--s); height: var(--s); flex: none; border-radius: calc(var(--s) * .3); overflow: hidden; display: grid; place-items: center; background: var(--bc); color: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(0,0,0,.06); }
.logo-tile b { font-size: calc(var(--s) * .42); font-weight: 800; mix-blend-mode: difference; color: #fff; }
.logo-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }
.cat-name { display: inline-flex; align-items: center; gap: 6px; }
.cat-name::before { content: ''; width: 7px; height: 7px; border-radius: 2px; background: var(--cc); flex: none; }
.chip--cat .ic { color: color-mix(in oklab, var(--cc) var(--cc-k), var(--cc-mix)); }
.chip--cat[aria-pressed='true'] { background: color-mix(in srgb, var(--cc) 18%, var(--surface)); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--cc); }
.chip--cat[aria-pressed='true'] .ic { color: inherit; }
.radio-chips--cat span .ic { color: color-mix(in oklab, var(--cc) var(--cc-k), var(--cc-mix)); }
.radio-chips--cat input:checked + span { background: color-mix(in srgb, var(--cc) 18%, var(--surface)) !important; color: var(--text) !important; box-shadow: inset 0 0 0 1.5px var(--cc) !important; }
.radio-chips--wrap { flex-wrap: wrap; }
.list-row > .cat-ic, .list-row > .logo-tile, .list-row--btn > .logo-tile, .list-row--btn > .cat-ic { margin-right: 2px; }

/* Prioridade discreta: sinal de 3 barras */
.prio-sig { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; flex: none; padding: 0 2px; }
.prio-sig i { width: 3px; border-radius: 2px; background: var(--line-strong); }
.prio-sig i:nth-child(1) { height: 6px; } .prio-sig i:nth-child(2) { height: 10px; } .prio-sig i:nth-child(3) { height: 14px; }
.prio-sig i.on { background: var(--text-3); }
.prio-sig--alta i.on { background: var(--goals-ink); }
.radio-chips .prio-sig { margin-right: 2px; }

/* ---------- Gráfico: curva por mês com valores ---------- */
.lc { margin: 0; padding-top: 30px; }
.lc__plot { position: relative; height: 150px; }
.lc__plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lc__line { fill: none; stroke: var(--lc); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.lc__avg { stroke: var(--line-strong); stroke-width: 1; }
.lc__avglbl { position: absolute; right: 0; transform: translateY(-115%); font-size: 10.5px; font-weight: 700; color: var(--text-3); background: var(--surface); padding: 0 0 0 6px; border-radius: 4px; }
.lc__pt { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; display: grid; place-items: center; }
.lc__pt::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--lc); box-shadow: 0 0 0 2.5px var(--surface); transition: transform var(--t-med) var(--spring); animation: ptIn 600ms var(--spring) both; animation-delay: calc(400ms + var(--d)); }
.lc__pt.is-current::before { width: 13px; height: 13px; box-shadow: 0 0 0 3px var(--surface), 0 0 0 7px color-mix(in srgb, var(--lc) 18%, transparent); }
.lc__pt:hover::before, .lc__pt:focus-visible::before { transform: scale(1.35); }
.lc__val { position: absolute; bottom: calc(100% - 2px); left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 11.5px; font-weight: 800; color: var(--text-2); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.lc__pt.is-current .lc__val { background: var(--ink); color: var(--ink-inv); padding: 3px 8px; border-radius: 999px; bottom: calc(100% + 2px); }
.lc__tip { position: absolute; top: calc(100% + 4px); left: 50%; transform: translate(-50%, -4px); opacity: 0; pointer-events: none; white-space: nowrap; background: var(--ink); color: var(--ink-inv); font-size: 12px; font-weight: 700; padding: 5px 9px; border-radius: 9px; z-index: 3; transition: opacity var(--t-fast), transform var(--t-med) var(--spring); }
.lc__pt:hover .lc__tip, .lc__pt:focus-visible .lc__tip { opacity: 1; transform: translate(-50%, 0); }
.lc__x { position: relative; height: 22px; margin-top: 10px; border-top: 1px solid var(--line); }
.lc__x span { position: absolute; top: 6px; transform: translateX(-50%); font-size: 11.5px; font-weight: 700; color: var(--text-3); }
.lc__x span.is-current { color: var(--text); font-weight: 800; }
@keyframes ptIn { from { transform: scale(0); } }
.draw { animation: areaIn 1200ms var(--ease-out) both; }

/* ---------- Gráfico: ritmo do mês ---------- */
.pc { margin: 6px 0 0; }
.pc__legend { display: flex; gap: 14px; justify-content: flex-end; font-size: 11.5px; font-weight: 700; color: var(--text-3); margin-bottom: 10px; }
.pc__legend span { display: inline-flex; align-items: center; gap: 6px; }
.k { display: inline-block; flex: none; }
.k--cur { width: 14px; height: 3px; border-radius: 2px; background: var(--goals); }
.k--prev { width: 14px; height: 3px; border-radius: 2px; background: color-mix(in srgb, var(--text-3) 55%, transparent); }
.pc__plot { position: relative; height: 128px; margin-left: 34px; touch-action: pan-y; }
.pc__plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pc__grid { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line); }
.pc__grid b { position: absolute; right: calc(100% + 8px); top: -7px; font-size: 10.5px; font-weight: 700; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pc__plot::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; border-top: 1px solid var(--line-strong); }
.pc__line { fill: none; stroke: var(--goals); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.pc__prev { fill: none; stroke: color-mix(in srgb, var(--text-3) 45%, transparent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.pc__end { position: absolute; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: var(--goals); box-shadow: 0 0 0 2.5px var(--surface); z-index: 2; }
.pc__end::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; box-shadow: 0 0 0 2px var(--goals); opacity: 0; animation: ping 2.4s var(--ease-out) infinite 1.2s; }
.pc__endlbl { position: absolute; bottom: calc(100% + 8px); right: -6px; white-space: nowrap; background: var(--ink); color: var(--ink-inv); font-size: 11.5px; font-weight: 800; padding: 3px 8px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.pc__cross { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line-strong); pointer-events: none; }
.pc__dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--goals); box-shadow: 0 0 0 2.5px var(--surface); pointer-events: none; z-index: 3; }
.pc__dot.is-prev { background: var(--text-3); }
.pc__tip { position: absolute; top: -6px; transform: translate(-50%, -100%); z-index: 4; pointer-events: none; display: grid; gap: 3px; background: var(--ink); color: var(--ink-inv); font-size: 12px; font-weight: 700; padding: 8px 10px; border-radius: 10px; white-space: nowrap; box-shadow: var(--shadow-3); }
.pc__tip span { display: flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.pc__tip .k--prev { background: rgba(160,160,170,.8); }
.pc__x { display: flex; justify-content: space-between; margin: 6px 0 0 34px; font-size: 11px; font-weight: 700; color: var(--text-3); }
.pc__plot[hidden], .pc__cross[hidden], .pc__dot[hidden], .pc__tip[hidden] { display: none; }

/* ---------- Rosca de categorias ---------- */
.cats { display: grid; gap: var(--s5); align-items: center; }
@media (min-width: 560px) { .cats { grid-template-columns: auto 1fr; } }
.dn { position: relative; width: var(--size); height: var(--size); margin: 0 auto; }
.dn svg { width: 100%; height: 100%; display: block; }
.dn__seg { fill: none; animation: dnIn 1100ms var(--ease-out) both; animation-delay: var(--d); transition: opacity var(--t-fast); }
@keyframes dnIn { from { opacity: 0; stroke-dasharray: 0 999; } }
.dn__center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.dn__center b { font-size: 21px; font-weight: 800; letter-spacing: -.03em; }
.dn__center small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-top: 2px; }
.cat-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.cat-legend li { display: flex; align-items: center; gap: 12px; padding: 7px 0; }
.cat-legend li + li { border-top: 1px solid var(--line); }
.cat-legend__n { display: block; font-weight: 700; font-size: 14px; }
.cat-legend__p { display: block; font-size: 12px; color: var(--text-3); font-weight: 600; }
.cat-legend__v { font-weight: 800; font-size: 14px; }

/* ---------- Anel pequeno (semana, níveis) ---------- */
.mring { --s: 40px; position: relative; width: var(--s); height: var(--s); flex: none; display: inline-grid; place-items: center; }
.mring > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mring__arc { animation: mrIn 1100ms var(--ease-out) both; }
@keyframes mrIn { from { stroke-dashoffset: var(--c); } }
.mring__in { position: relative; font-size: calc(var(--s) * .3); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.mring__in small { font-size: .62em; color: var(--text-3); font-weight: 700; }

/* Semana com anéis por dia */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; height: auto; align-items: start; }
.week__day { display: flex; flex-direction: column; align-items: center; gap: 6px; height: auto; padding: 8px 0 6px; border-radius: 14px; animation: fadeUp 600ms var(--ease-out) both; animation-delay: var(--d); }
.week__day.is-today { background: color-mix(in srgb, var(--tasks) 9%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--tasks) 30%, transparent); }
.week__lbl { font-size: 11px; font-weight: 700; color: var(--text-3); text-transform: capitalize; }
.week__num { font-size: 11px; font-weight: 700; color: var(--text-3); font-variant-numeric: tabular-nums; }
.week__day.is-today .week__lbl, .week__day.is-today .week__num { color: var(--tasks-ink); font-weight: 800; }
.week .mring__in { font-size: 12px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Finanças: atalho e aba de parcelas ---------- */
.fin-hero .flow-pair { margin-top: var(--s4); }
.inst-link { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: var(--s4); padding: 12px 12px 12px 12px; border-radius: var(--r-md); background: var(--surface-2); text-align: left; color: var(--text); transition: background var(--t-fast); }
.inst-link:hover { background: var(--surface-3); }
.inst-link__ic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--habits) 16%, var(--surface)); color: var(--habits-ink); flex: none; }
.inst-link__t { display: block; font-weight: 700; font-size: 14px; }
.inst-link__s { display: block; font-size: 12px; color: var(--text-3); font-weight: 600; }
.inst-link strong { font-size: 15px; }
.inst-hero { display: flex; flex-direction: column; }
.inst-meter { height: 10px; border-radius: 6px; margin-top: var(--s4); background: var(--track); overflow: hidden; }
.inst-meter span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--money), color-mix(in srgb, var(--money) 70%, #fff)); transition: width 900ms var(--ease-out); animation: grow 1000ms var(--ease-out) both; transform-origin: left; }
.inst__name { display: block; font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inst__sub { display: block; font-size: 12.5px; color: var(--text-3); font-weight: 600; margin-top: 2px; }
.inst__left { text-align: right; flex: none; }
.inst__left strong { display: block; font-size: 16px; font-weight: 800; }
.inst__left small { font-size: 11px; color: var(--text-3); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.inst.is-done { opacity: .72; }
.inst.is-done .inst__left strong { color: var(--money-ink); }
.pips { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 4px; }
.pips i { height: 14px; border-radius: 5px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); display: grid; place-items: center; color: #fff; transition: background var(--t-med), box-shadow var(--t-med); }
.pips i .ic { width: 9px; height: 9px; stroke-width: 3.2; }
.pips i.is-paid { background: var(--money); box-shadow: none; }
[data-theme='dark'] .pips i.is-paid { color: #0E0F13; }
.pips i.is-next { box-shadow: inset 0 0 0 2px var(--money-ink); animation: pipNext 1.6s var(--ease) infinite; }
.pips i.is-just { animation: pipKill 700ms var(--spring) both; }
@keyframes pipNext { 50% { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--money-ink) 35%, transparent); } }
@keyframes pipKill { 0% { transform: scale(1.6); background: var(--wins); } 100% { transform: scale(1); } }

/* ---------- Objetivos: níveis ---------- */
.goal-card { --area: var(--gc, var(--goals)); }
.lvlbar { display: flex; gap: 4px; height: 8px; margin: 2px 0 14px; }
.lvlbar i { flex: 1; border-radius: 4px; background: var(--track); overflow: hidden; position: relative; }
.lvlbar i.on { background: var(--gc, var(--goals)); }
.lvlbar i.cur::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--gc, var(--goals)); border-radius: 4px; opacity: .55; animation: grow 1000ms var(--ease-out) both; transform-origin: left; }
.goal-card__now { display: flex; align-items: center; gap: 12px; }
.goal-card__lvl { font-weight: 800; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.goal-card__now .mring__in { font-size: 13px; }
.goal-card__last { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-2); }
.goal-card__last .ic { flex: none; margin-top: 2px; color: var(--money-ink); }
.lvl-done-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--wins) 22%, var(--surface)); color: var(--wins-ink); flex: none; }
.howto { margin-bottom: 12px; }
.howto ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; font-size: 13.5px; color: var(--text-2); }
.howto b { color: var(--text); }
.ladder { list-style: none; margin: 0; padding: 0; position: relative; }
.ladder__lvl { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 0 0 18px; }
.ladder__lvl::before { content: ''; position: absolute; left: 17px; top: 36px; bottom: 0; width: 2px; background: var(--track); }
.ladder__lvl.is-done::before { background: var(--gc, var(--goals)); }
.ladder__lvl:last-child::before { display: none; }
.ladder__node { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: var(--text-3); background: var(--surface); box-shadow: inset 0 0 0 2px var(--line-strong); position: relative; z-index: 1; transition: transform var(--t-med) var(--spring); }
.ladder__node:active { transform: scale(.9); }
.ladder__lvl.is-done .ladder__node { background: var(--gc, var(--goals)); color: #fff; box-shadow: none; }
[data-theme='dark'] .ladder__lvl.is-done .ladder__node { color: #0E0F13; }
.ladder__lvl.is-current .ladder__node { box-shadow: none; background: var(--surface); }
.ladder__body { flex: 1; min-width: 0; padding-top: 7px; }
.ladder__t { display: block; font-weight: 700; font-size: 15px; }
.ladder__lvl.is-future .ladder__t { color: var(--text-2); font-weight: 600; }
.ladder__s { display: block; font-size: 12.5px; color: var(--text-3); font-weight: 600; margin-top: 2px; }
.ladder__lvl.is-current .ladder__body { background: color-mix(in srgb, var(--gc, var(--goals)) 8%, transparent); border-radius: 14px; padding: 10px 12px 12px; margin-top: -3px; }
.miclog { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.miclog li { display: grid; grid-template-columns: 52px 1fr; gap: 10px; font-size: 13.5px; }
.miclog__d { font-size: 12px; font-weight: 700; color: var(--text-3); padding-top: 1px; }
.miclog__b b { color: var(--money-ink); }
.miclog__n { display: block; color: var(--text-2); font-size: 12.5px; margin-top: 1px; }
.adv-head { display: flex; align-items: center; gap: 14px; }
.adv-head__t { font-size: 18px; font-weight: 800; margin-top: 2px; }
.adv-head .mring__in { font-size: 16px; }
.adv-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.adv-opts label { position: relative; }
.adv-opts input { position: absolute; opacity: 0; pointer-events: none; }
.adv-opts span { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); font-size: 13px; font-weight: 600; color: var(--text-2); cursor: pointer; transition: background var(--t-fast), box-shadow var(--t-fast); }
.adv-opts b { font-size: 18px; font-weight: 800; color: var(--text); }
.adv-opts input:checked + span { background: color-mix(in srgb, var(--money) 14%, var(--surface)); box-shadow: inset 0 0 0 2px var(--money-ink); }
.adv-opts input:focus-visible + span { outline: 3px solid var(--tasks); outline-offset: 2px; }
.chip--accent { background: var(--ink); color: var(--ink-inv); }
.trail-preview ol { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; counter-reset: lv; }
.trail-preview li { counter-increment: lv; font-size: 12px; font-weight: 700; color: var(--text-2); padding: 4px 10px 4px 6px; border-radius: 999px; background: var(--surface-2); display: inline-flex; gap: 6px; align-items: center; }
.trail-preview li::before { content: counter(lv); width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; background: var(--surface); color: var(--text-3); }

/* ---------- Conquistas: trilha do ano ---------- */
.trail-card { padding-bottom: var(--s5); }
.tmap { position: relative; height: 122px; margin: 18px 4px 30px; }
.tmap svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tmap__rest { fill: none; stroke: var(--line-strong); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1 9; }
.tmap__done { fill: none; stroke: var(--wins); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; animation: areaIn 1400ms var(--ease-out) both; }
.tmap .tm { position: absolute; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; }
.tm--mic { width: 7px; height: 7px; background: var(--c); box-shadow: 0 0 0 2px var(--surface); }
.tm--lvl { width: 16px; height: 16px; background: var(--c); color: #fff; box-shadow: 0 0 0 2px var(--surface); z-index: 2; }
.tm--lvl .ic { stroke-width: 3.4; }
.tm--flag { width: 22px; height: 22px; background: var(--surface); color: var(--c); box-shadow: inset 0 0 0 1.5px var(--c); z-index: 2; }
.tm--win { width: 24px; height: 24px; background: var(--wins); color: #3D2A00; box-shadow: 0 0 0 2.5px var(--surface), 0 6px 14px -4px color-mix(in srgb, var(--wins) 80%, transparent); z-index: 3; }
.tm--win .ic { fill: currentColor; }
.tm--me { width: 32px; height: 32px; background: var(--ink); color: var(--ink-inv); font-size: 11px; font-weight: 800; box-shadow: 0 0 0 3px var(--surface), 0 0 0 5.5px var(--wins); z-index: 4; overflow: hidden; animation: meBob 2.8s var(--ease) infinite; }
.tm--me img { width: 100%; height: 100%; object-fit: cover; }
@keyframes meBob { 50% { transform: translate(-50%, calc(-50% - 3px)); } }
.tmap__months { position: absolute; left: 0; right: 0; bottom: -28px; height: 18px; }
.tmap__months span { position: absolute; transform: translateX(-50%); font-size: 10.5px; font-weight: 800; color: var(--text-3); }
.tmap__months span.is-now { color: var(--wins-ink); }
.trail-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: var(--s4); }
.trail-stats > div { text-align: center; padding: 10px 4px; border-radius: 14px; background: var(--surface-2); }
.trail-stats b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.trail-stats span { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: var(--text-3); }
.k--win { width: 10px; height: 10px; border-radius: 50%; background: var(--wins); }
.k--lvl { width: 10px; height: 10px; border-radius: 50%; background: var(--goals); }
.k--mic { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }
.trail { list-style: none; margin: var(--s4) 0 0; padding: 0; }
.st { position: relative; display: flex; gap: 14px; padding-bottom: 18px; }
.st::before { content: ''; position: absolute; left: 19px; top: 40px; bottom: 0; width: 3px; border-radius: 3px; background: var(--wins); }
.st.is-now::before, .st.is-future::before { background: none; border-left: 3px dotted var(--line-strong); width: 0; }
.st:last-child::before { display: none; }
.st__node { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; background: color-mix(in srgb, var(--wins) 20%, var(--surface)); color: var(--wins-ink); position: relative; z-index: 1; box-shadow: 0 0 0 4px var(--bg); }
.st.is-now .st__node { background: var(--ink); color: var(--ink-inv); }
.st.is-future .st__node { background: var(--surface); color: var(--text-3); box-shadow: 0 0 0 4px var(--bg), inset 0 0 0 1.5px var(--line-strong); }
.st.is-empty .st__node { width: 28px; height: 28px; margin: 6px; font-size: 9.5px; }
.st.is-empty { padding-bottom: 10px; }
.st.is-empty::before { top: 34px; }
.st__body { flex: 1; min-width: 0; display: grid; gap: 8px; padding-top: 9px; }
.st.is-empty .st__body { padding-top: 10px; display: flex; align-items: baseline; gap: 10px; }
.st__title { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.st__title span { font-size: 12px; font-weight: 700; color: var(--text-3); }
.st.is-empty .st__title { font-size: 13.5px; color: var(--text-2); }
.st__here { background: var(--ink); color: var(--ink-inv) !important; padding: 2px 9px; border-radius: 999px; font-size: 11px !important; }
.st__none { font-size: 12px; color: var(--text-3); font-weight: 600; }
.st .tl-card { margin: 0; }
.st .tl-card .tl-photo { aspect-ratio: 5 / 2; }
.st-row, .st-mic { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); text-align: left; font-size: 13.5px; color: var(--text); width: 100%; }
.st-row__ic { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--c); color: #fff; }
.st-row__ic .ic { stroke-width: 3; }
.st-row--flag .st-row__ic { background: transparent; color: var(--c); box-shadow: inset 0 0 0 1.5px var(--c); }
.st-row--flag { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); border-style: dashed; }
.st-row .grow, .st-mic .grow, .st-next__i .grow { min-width: 0; }
.st-row__g { display: block; font-size: 12px; color: var(--text-3); font-weight: 600; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-mic__dots { display: grid; grid-template-columns: repeat(4, 6px); gap: 3px; flex: none; width: 33px; }
.st-mic__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.st-next { padding: 12px; border-radius: 16px; background: color-mix(in srgb, var(--wins) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--wins) 30%, transparent); display: grid; gap: 6px; }
.st-next__i { display: flex; align-items: center; gap: 10px; padding: 6px 4px; text-align: left; font-size: 13.5px; color: var(--text); border-radius: 10px; }
.st-next__i:hover { background: var(--surface-2); }
.st-next__go { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; color: var(--money-ink); flex: none; }

@media (prefers-reduced-motion: reduce) {
  .nexie__eyes, .tm--me, .pips i.is-next, .pc__end::after, .nexie--think .nexie__petals, .is-thinking .nexie__petals { animation: none !important; }
}
[data-motion='reduce'] .nexie__eyes, [data-motion='reduce'] .tm--me, [data-motion='reduce'] .pips i.is-next { animation: none !important; }
@media (forced-colors: active) {
  .lc__line, .pc__line, .tmap__done { stroke: Highlight; }
  .pips i.is-paid, .lvlbar i.on, .tm--win, .tm--lvl { forced-color-adjust: none; background: Highlight; }
}
.agenda .list-row > .icon-btn--sm[data-action="task-menu"] { display: none; }
.agenda .list-row { gap: 10px; }
.lc__avgnote { display: inline-flex; align-items: center; gap: 6px; }
.lc__avgnote::before { content: ''; width: 14px; height: 1px; background: var(--line-strong); box-shadow: 0 0 0 .5px var(--line-strong); }
.st__body { grid-template-columns: minmax(0, 1fr); }
.st-row, .st-mic { min-width: 0; max-width: 100%; }

/* ---------- 3.1.1 — check neutro, verde de sucesso, atraso só com relógio ---------- */
[data-theme='light'] { --ok: #16A34A; --ok-on: #FFFFFF; }
[data-theme='dark'] { --ok: #22C55E; --ok-on: #0E0F13; }
.check { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--text-3) 55%, transparent); }
.check:hover { background: var(--surface-2); box-shadow: inset 0 0 0 2px var(--ok); }
.check[aria-checked='true'] { background: var(--ok); color: var(--ok-on); box-shadow: none; }
.check { --cc: var(--ok); }
.cat-name::before { display: none; }
.late-ic { display: inline-flex; align-items: center; gap: 4px; color: var(--danger-ink); font-weight: 700; }
.late-ic .ic { stroke-width: 2.2; }
.agenda__time .late-ic { justify-content: center; }
.group-label--late .late-ic { gap: 0; }
.week__day.is-full .mring__in { color: var(--ok); }
.week__day.is-full .mring__in .ic { stroke-width: 3; }
.week__day.is-full .mring__in .ic { width: 18px; height: 18px; display: block; }

/* ==========================================================================
   3.2 — módulos opcionais: filmes e séries, livros, lugares, treinos, receitas
   ========================================================================== */
:root { --media: #E11D48; --books: #0D9488; --places: #0891B2; --fit: #C026D3; --food: #65A30D; }
[data-theme='light'] { --media-ink: #BE123C; --books-ink: #0F766E; --places-ink: #0E7490; --fit-ink: #A21CAF; --food-ink: #4D7C0F; --star: #F2B705; --star-off: rgba(22, 24, 40, .14); }
[data-theme='dark'] { --media-ink: #FB7185; --books-ink: #2DD4BF; --places-ink: #22D3EE; --fit-ink: #E879F9; --food-ink: #A3E635; --star: #F5C842; --star-off: rgba(255, 255, 255, .16); }
[data-area='media'] { --area: var(--media); --area-ink: var(--media-ink); }
[data-area='books'] { --area: var(--books); --area-ink: var(--books-ink); }
[data-area='places'] { --area: var(--places); --area-ink: var(--places-ink); }
[data-area='fit'] { --area: var(--fit); --area-ink: var(--fit-ink); }
[data-area='food'] { --area: var(--food); --area-ink: var(--food-ink); }

/* Indicadores rápidos */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.kpi { padding: 12px 10px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); text-align: center; }
.kpi b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.03em; color: var(--area-ink); }
.kpi span { font-size: 11.5px; font-weight: 700; color: var(--text-3); }

/* Estrelas */
.stars { display: inline-flex; gap: 2px; align-items: center; vertical-align: middle; }
.stars svg { display: block; }
.star-btn { padding: 3px; border-radius: 6px; transition: transform var(--t-med) var(--spring); }
.star-btn:hover { transform: scale(1.15); }
.star-btn:active { transform: scale(.9); }
.fav-btn[aria-pressed='true'] { color: var(--media-ink); }
.fav-btn[aria-pressed='true'] .ic { fill: currentColor; }

/* ---------- Pôsteres ---------- */
.mrow { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 4px 10px; margin: -4px -4px 0; }
.mrow::-webkit-scrollbar { display: none; }
.mcard { position: relative; flex: 0 0 116px; scroll-snap-align: start; text-align: left; display: flex; flex-direction: column; gap: 6px; }
.poster { position: relative; display: block; width: 100%; aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden; background: linear-gradient(160deg, color-mix(in srgb, var(--media) 60%, #000), #111); box-shadow: 0 10px 22px -12px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.06); transition: transform var(--t-med) var(--ease-out); }
.mcard:hover .poster { transform: translateY(-3px); }
.poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.poster b { position: absolute; inset: auto 8px 8px; color: #fff; font-size: 12px; line-height: 1.2; }
.poster:has(img) b { display: none; }
.poster--lg { width: 116px; flex: none; }
.mcard__fav { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.55); color: #FF4D6D; backdrop-filter: blur(6px); z-index: 1; }
.mcard__fav .ic { fill: currentColor; }
.mcard__prog { position: absolute; left: 8px; right: 8px; top: calc(116px * 1.5 - 12px); height: 4px; border-radius: 3px; background: rgba(255,255,255,.35); overflow: hidden; }
.mcard__prog i { display: block; height: 100%; background: #fff; border-radius: 3px; }
.mcard__t { font-size: 13px; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mcard__s { font-size: 11.5px; font-weight: 600; color: var(--text-3); margin-top: -2px; }
.mdetail { display: flex; gap: 16px; align-items: flex-start; }
.seasons { display: grid; gap: 14px; margin-top: 16px; }
.season__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.season__head .link-btn { margin-left: auto; }
.eps { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 6px; }
.ep { height: 38px; border-radius: 10px; font-size: 13px; font-weight: 700; color: var(--text-2); background: var(--surface-2); transition: background var(--t-fast), color var(--t-fast), transform var(--t-med) var(--spring); }
.ep:active { transform: scale(.9); }
.ep.is-seen { background: var(--ok); color: var(--ok-on); }

/* ---------- Busca online ---------- */
.results { display: grid; gap: 6px; margin-top: 10px; }
.result { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; text-align: left; background: var(--surface-2); transition: background var(--t-fast); }
.result:hover, .result:focus-visible { background: var(--surface-3); }
.result b { display: block; font-size: 14.5px; }
.result .small { display: block; }
.result__img { width: 54px; height: 54px; border-radius: 10px; overflow: hidden; flex: none; display: grid; place-items: center; background: var(--surface-3); }
.result__img--poster { width: 42px; height: 62px; border-radius: 6px; }
.result__img img { width: 100%; height: 100%; object-fit: cover; }
.search-state { display: flex; align-items: center; gap: 6px; padding: 8px 4px; }

/* ---------- Livros: estante ---------- */
.goalbar { display: flex; align-items: center; gap: 14px; }
.goalbar .mring__in { font-size: 17px; }
.bcover { position: relative; display: block; width: 100%; aspect-ratio: 2 / 3; border-radius: 3px 6px 6px 3px; overflow: hidden; background: linear-gradient(160deg, color-mix(in srgb, var(--books) 70%, #000), color-mix(in srgb, var(--books) 40%, #000)); box-shadow: inset 4px 0 0 rgba(0,0,0,.18), inset 5px 0 0 rgba(255,255,255,.08), 0 8px 14px -8px rgba(0,0,0,.6); }
.bcover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bcover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.22) 0, rgba(255,255,255,.12) 3%, transparent 7%, transparent 92%, rgba(0,0,0,.08)); pointer-events: none; }
.bcover__fb { position: absolute; inset: 0; padding: 10px 8px 8px 12px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; }
.bcover__fb b { font-size: 12px; line-height: 1.2; }
.bcover__fb small { font-size: 10px; opacity: .8; }
.bcover:has(img) .bcover__fb { display: none; }
.bcover--sm { width: 64px; flex: none; }
.bcover--lg { width: 118px; flex: none; }
.shelf { display: grid; gap: 4px; }
.shelf__row { position: relative; padding: 0 10px; }
.shelf__books { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: end; padding-top: 6px; position: relative; z-index: 1; }
.shelf__board { height: 14px; margin: -2px -10px 10px; border-radius: 3px 3px 6px 6px; background: linear-gradient(180deg, #C9A57B 0, #B08458 45%, #8C6440 100%); box-shadow: 0 10px 16px -8px rgba(60, 35, 10, .55), inset 0 1px 0 rgba(255,255,255,.35); }
[data-theme='dark'] .shelf__board { background: linear-gradient(180deg, #6B4E33 0, #57402A 45%, #3E2D1D 100%); }
.sbook { position: relative; display: block; transition: transform var(--t-med) var(--spring); transform-origin: bottom center; }
.sbook:hover { transform: translateY(-6px) rotate(-1.5deg); }
.sbook:active { transform: scale(.96); }
.sbook__fav { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.55); color: #FF4D6D; }
.sbook__fav .ic { fill: currentColor; }
.reading { display: flex; gap: 14px; align-items: flex-start; }
.reading__t { font-weight: 800; font-size: 15.5px; line-height: 1.25; }
.reading .progress > span { background: var(--area); }

/* ---------- Lugares ---------- */
.wmap { position: relative; aspect-ratio: 2 / 1; background: color-mix(in srgb, var(--places) 10%, var(--surface)); }
.wmap > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; opacity: .5; filter: saturate(0) contrast(.9); }
[data-theme='dark'] .wmap > img { filter: invert(1) saturate(0) brightness(.7); opacity: .45; }
.wpin { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--places); box-shadow: 0 0 0 2.5px var(--surface), 0 4px 10px -2px rgba(0,0,0,.4); z-index: 1; transition: transform var(--t-med) var(--spring); }
.wpin.is-visited { background: var(--ok); }
.wpin:hover, .wpin:focus-visible { transform: scale(1.4); z-index: 3; }
.wpin span { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 11px; font-weight: 800; background: var(--ink); color: var(--ink-inv); padding: 3px 7px; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity var(--t-fast); }
.wpin:hover span, .wpin:focus-visible span { opacity: 1; }
.k--want { width: 10px; height: 10px; border-radius: 50%; background: var(--places); }
.k--been { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); }
.pcard { display: flex; flex-direction: column; padding: 0 !important; overflow: hidden; text-align: left; }
.pcard__img { position: relative; display: block; height: 150px; background: color-mix(in srgb, var(--places) 20%, var(--surface)); }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard__when { position: absolute; left: 12px; top: 12px; background: rgba(255,255,255,.94) !important; color: #15161A !important; }
.pcard__body { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px 14px; }
.pcard__body b { font-size: 16px; }
.pcard__note { color: var(--text-2); margin-top: 4px; }
.pdetail__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-md); display: block; }
.pmap { margin-top: 16px; border-radius: var(--r-md); overflow: hidden; height: 190px; box-shadow: inset 0 0 0 1px var(--line); }
.pmap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Treinos ---------- */
.wk-week { display: flex; align-items: center; gap: 14px; }
.wk-week .mring__in { font-size: 16px; }
.wk-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 8px; }
.wk-day { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 800; color: var(--text-3); }
.wk-day i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 2px var(--line-strong); color: var(--ok-on); }
.wk-day.is-done i { background: var(--ok); box-shadow: none; }
.wk-day.is-today { color: var(--area-ink); }
.wk-day.is-today i { box-shadow: inset 0 0 0 2px var(--area); }
.wk-day.is-today.is-done i { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--area); }
.wk-plan__tag { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; font-weight: 800; font-size: 17px; background: color-mix(in srgb, var(--fit) 16%, var(--surface)); color: var(--fit-ink); }
.wk-ex { list-style: none; margin: 12px 0 0; padding: 0; display: grid; }
.wk-ex li { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 14px; border-top: 1px solid var(--line); }
.wk-kg { min-width: 74px; text-align: right; font-weight: 800; font-size: 13.5px; display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; }
.wk-up { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.wk-up .ic { stroke-width: 3; }
.wk-run { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wk-run li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }
.wk-run__chk { position: relative; display: grid; cursor: pointer; }
.wk-run__chk input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.wk-run__chk input:focus-visible + .check { outline: 3px solid var(--tasks); outline-offset: 2px; }
.wk-run__chk input:checked + .check { background: var(--ok); color: var(--ok-on); box-shadow: none; }
.wk-run__kg { display: flex; align-items: center; gap: 4px; flex: none; }
.wk-run__kg .input { width: 76px; min-height: 40px; text-align: right; padding: 0 8px; }
.wk-run__kg span { font-size: 12px; color: var(--text-3); font-weight: 700; }

/* ---------- Receitas ---------- */
.rgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 12px; }
@media (min-width: 640px) { .rgrid { grid-template-columns: repeat(3, 1fr); } }
.rcard { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.rcard__img { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; background: color-mix(in srgb, var(--food) 18%, var(--surface)); box-shadow: var(--shadow-2); }
.rcard__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s var(--ease-out); }
.rcard:hover .rcard__img img { transform: scale(1.05); }
.rcard__t { font-weight: 800; font-size: 14px; line-height: 1.25; margin-top: 4px; }
.rcard__s { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--text-3); }
.mealday__d { font-weight: 800; font-size: 15px; display: flex; align-items: baseline; gap: 6px; margin-bottom: 10px; }
.mealday__d span { font-size: 12px; color: var(--text-3); font-weight: 700; }
.mealday.is-today { box-shadow: var(--shadow-2), inset 0 0 0 1.5px color-mix(in srgb, var(--food) 45%, transparent); }
.meals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.meal { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.meal img, .meal__plus { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.meal__plus { display: grid; place-items: center; background: var(--surface-2); color: var(--text-3); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.meal small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--text-3); }
.meal b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; line-height: 1.25; }
.meal--empty b { color: var(--text-3); font-weight: 600; }
.shop { list-style: none; margin: 0; padding: 0; }
.shop li { display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--line); }
.shop li:first-child { border-top: 0; }
.shop label { display: flex; align-items: center; gap: 12px; padding: 10px 0; flex: 1; cursor: pointer; position: relative; }
.shop input { position: absolute; opacity: 0; width: 26px; height: 26px; cursor: pointer; }
.shop input:checked + .check { background: var(--ok); color: var(--ok-on); box-shadow: none; }
.shop input:focus-visible + .check { outline: 3px solid var(--tasks); outline-offset: 2px; }
.shop .grow { font-size: 14.5px; }
.shop small { display: block; font-size: 11.5px; color: var(--text-3); }
.shop .is-done { text-decoration: line-through; color: var(--text-3); }
.ings { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.pick-list { display: grid; gap: 6px; max-height: 260px; overflow: auto; }
.pick-list label { position: relative; }
.pick-list input { position: absolute; opacity: 0; }
.pick-list span { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 12px; background: var(--surface-2); font-weight: 700; font-size: 14px; cursor: pointer; }
.pick-list img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.pick-list input:checked + span { box-shadow: inset 0 0 0 2px var(--food); background: color-mix(in srgb, var(--food) 12%, var(--surface)); }

/* ---------- Escolha de módulos (cadastro) ---------- */
.auth-wrap--wide { max-width: 760px; }
.pick-mods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .pick-mods { grid-template-columns: repeat(3, 1fr); } }
.pick-mod { position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); cursor: pointer; transition: box-shadow var(--t-fast), transform var(--t-med) var(--spring); }
.pick-mod:active { transform: scale(.97); }
.pick-mod input { position: absolute; opacity: 0; pointer-events: none; }
.pick-mod__img { position: relative; display: block; aspect-ratio: 16 / 10; }
.pick-mod__img img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.55) brightness(.92); transition: filter var(--t-med); }
.pick-mod__chk { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.85); color: transparent; box-shadow: inset 0 0 0 2px rgba(0,0,0,.15); transition: background var(--t-fast); }
.pick-mod__body { padding: 10px 12px 12px; display: grid; gap: 2px; }
.pick-mod__body b { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.pick-mod__body b .ic { color: var(--area-ink); }
.pick-mod__body small { font-size: 12px; color: var(--text-3); line-height: 1.35; }
.pick-mod:has(input:checked) { box-shadow: var(--shadow-2), inset 0 0 0 2.5px var(--area); }
.pick-mod:has(input:checked) .pick-mod__img img { filter: none; }
.pick-mod:has(input:checked) .pick-mod__chk { background: var(--ok); color: #fff; box-shadow: none; }
.pick-mod:has(input:focus-visible) { outline: 3px solid var(--tasks); outline-offset: 2px; }
.pick-mods__foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; position: sticky; bottom: 12px; padding: 12px; border-radius: var(--r-lg); background: var(--glass-strong); backdrop-filter: blur(16px); box-shadow: var(--shadow-3); }

/* ---------- Perfil: módulos ---------- */
.mod-row { align-items: center; gap: 12px; }
.mod-row__img { position: relative; width: 48px; height: 48px; border-radius: 14px; overflow: hidden; flex: none; }
.mod-row__img img { width: 100%; height: 100%; object-fit: cover; }
.mod-row__img i { position: absolute; right: 3px; bottom: 3px; width: 20px; height: 20px; border-radius: 7px; display: grid; place-items: center; background: var(--area); color: #fff; }
.mod-row .grow p:first-child { font-weight: 700; }

/* ---------- Mais ---------- */
.mod-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mod-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 170px; border-radius: var(--r-lg); overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; box-shadow: var(--shadow-2); transition: transform var(--t-med) var(--ease-out); }
.mod-card:hover { transform: translateY(-3px); }
.mod-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.mod-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.05) 20%, color-mix(in srgb, var(--area) 75%, #000) 100%); }
.mod-card__ic { position: absolute; top: 12px; left: 12px; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.92); color: var(--area-ink); }
.mod-card__body { padding: 12px; display: grid; gap: 2px; }
.mod-card__body b { font-size: 16px; }
.mod-card__body small { font-size: 12px; opacity: .9; line-height: 1.3; }

/* ---------- Botões de login (padrão das marcas) ---------- */
.btn--google { background: #fff; color: #1F1F1F; box-shadow: inset 0 0 0 1px #DADCE0; font-weight: 600; }
.btn--google:hover { background: #F8F9FA; box-shadow: inset 0 0 0 1px #D2D4D7; }
[data-theme='dark'] .btn--google { background: #fff; color: #1F1F1F; }
.btn--apple { background: #000; color: #fff; box-shadow: none; font-weight: 600; }
.btn--apple:hover { background: #1C1C1E; }
.btn--apple svg { color: #fff; margin-top: -2px; }
[data-theme='dark'] .btn--apple { background: #000; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.btn--google:focus-visible, .btn--apple:focus-visible { outline: 3px solid var(--tasks); outline-offset: 2px; }

/* ---------- 3.2.1 — tarefas mais limpas ---------- */
.swipe__under { opacity: 0; }
.swipe.is-left .swipe__under, .swipe.is-right .swipe__under { opacity: 1; }
.task-end { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 5px; flex: none; min-width: 34px; }
.task-time { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; line-height: 1; }
.task-time .ic { color: var(--text-3); }
.prio-sig--late { gap: 2px; align-items: flex-end; }
.prio-sig--late .ic { color: var(--danger-ink); stroke-width: 2.4; margin-right: 3px; align-self: center; }
.prio-sig--late i.on { background: var(--danger-ink); }
.list-row.is-done .task-end { display: none; }

/* ---------- Boas-vindas: mosaico com tudo o que o Nexus integra ---------- */
.welcome__media .mosaic { position: absolute; inset: -40px -24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; transform: rotate(-6deg) scale(1.08); opacity: 0; transition: opacity 1200ms var(--ease); }
.welcome__media .mosaic.is-active { opacity: 1; }
.mosaic__col { display: flex; flex-direction: column; gap: 10px; animation: mosaicUp var(--dur, 50s) linear infinite; animation-delay: var(--delay, 0s); will-change: transform; }
.mosaic__col:nth-child(2) { animation-direction: reverse; margin-top: -60px; }
@keyframes mosaicUp { to { transform: translateY(calc(-50% - 5px)); } }
.mtile { position: relative; margin: 0; border-radius: 22px; overflow: hidden; flex: none; box-shadow: 0 16px 30px -18px rgba(0,0,0,.7); }
.welcome__media .mtile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1; transform: none; transition: none; }
.mtile figcaption { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px 5px 6px; border-radius: 999px; background: rgba(255,255,255,.94); color: #15161A; font-size: 11px; font-weight: 800; letter-spacing: -.01em; box-shadow: 0 4px 12px -4px rgba(0,0,0,.35); }
.mtile figcaption .ic { color: var(--area); stroke-width: 2.2; }
@media (min-width: 900px) {
  .welcome__media .mosaic { inset: -60px 34% -60px -40px; grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .mosaic__col { gap: 14px; }
  .mtile figcaption { font-size: 12.5px; padding: 6px 11px 6px 8px; }
}
@media (prefers-reduced-motion: reduce) { .mosaic__col { animation: none; } }
[data-motion='reduce'] .mosaic__col { animation: none; }
.mosaic__col:nth-child(n+4) { display: none; }
.mosaic__col:nth-child(4) { animation-direction: reverse; margin-top: -120px; }
@media (min-width: 900px) {
  .welcome__media .mosaic { inset: -80px -40px; grid-template-columns: repeat(5, 1fr); }
  .mosaic__col:nth-child(n+4) { display: flex; }
}

/* ---------- Captura rápida ---------- */
.ask-wrap { position: relative; }
.ask-wrap .ask { padding-right: 60px; }
.ask-wrap .ask__go { position: absolute; right: 8px; top: calc(var(--s4) + 8px); transition: transform var(--t-med) var(--spring); }
.ask-wrap .ask__go:hover { transform: scale(1.06); }
.ask__ex { color: var(--text-2); font-weight: 600; }
.ask kbd { font: 700 11px var(--font); padding: 3px 7px; border-radius: 6px; background: var(--surface-2); color: var(--text-3); box-shadow: inset 0 -1px 0 var(--line-strong); }
@media (hover: none) { .ask kbd { display: none; } }
.cap__bar { display: flex; gap: 8px; align-items: center; }
.cap__input { flex: 1; font-size: 18px !important; }
.cap__mic { width: 52px; height: 52px; border-radius: 50%; flex: none; background: var(--surface-2); }
.cap__mic.is-on { background: var(--danger); color: #fff; animation: micPulse 1.4s var(--ease) infinite; }
@keyframes micPulse { 50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--danger) 18%, transparent); } }
.cap__preview { margin-top: 14px; display: grid; gap: 10px; }
.cap__card { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: var(--r-lg); background: color-mix(in srgb, var(--area) 9%, var(--surface)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--area) 35%, transparent); animation: capIn 260ms var(--ease-out); }
@keyframes capIn { from { opacity: 0; transform: translateY(4px); } }
.cap__ic { width: 42px; height: 42px; border-radius: 14px; flex: none; display: grid; place-items: center; background: var(--area); color: #fff; }
[data-theme='dark'] .cap__ic { color: #0E0F13; }
.cap__title { font-size: 17px; font-weight: 800; line-height: 1.25; margin-top: 2px; overflow-wrap: anywhere; }
.cap__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cap__chips span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: var(--surface); font-size: 12.5px; font-weight: 700; color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line); }
.cap__chips .ic { color: var(--area-ink); }
.cap__alt { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.cap__alt .chip .ic { color: var(--area-ink); }
.cap__ex { margin-top: 18px; }

/* ---------- Seletor rápido Claro/Escuro ---------- */
.topbar { align-items: center; }
.theme-switch { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); flex: none; }
.theme-switch button { width: 40px; height: 36px; border-radius: 999px; display: grid; place-items: center; color: var(--text-3); transition: background var(--t-fast), color var(--t-fast); }
.theme-switch button[aria-checked='true'] { background: var(--ink); color: var(--ink-inv); }
.theme-switch button:focus-visible { outline: 3px solid var(--tasks); outline-offset: 2px; }

/* ---------- Fundos temáticos (Livros e Filmes) ---------- */
.skin-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.skin-bg img { position: absolute; inset: -60px; width: calc(100% + 120px); height: calc(100% + 120px); object-fit: cover; filter: blur(26px) saturate(1.15); }
.skin-bg::after { content: ''; position: absolute; inset: 0; }
.view--skin .card, .view--skin .kpi, .view--skin .chip, .view--skin .segmented { -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); }

/* Livros: biblioteca à noite, luz quente de abajur, madeira */
body:has(.skin-books) {
  color-scheme: dark; --bg: #140D08;
  --surface: rgba(46, 32, 22, .72); --surface-solid: #2B1E15; --surface-2: rgba(255, 236, 210, .07); --surface-3: rgba(255, 236, 210, .13);
  --line: rgba(255, 236, 210, .1); --line-strong: rgba(255, 236, 210, .2);
  --text: #FBF3E6; --text-2: #E8D8C2; --text-3: #C4AE92; --ink: #FBF3E6; --ink-inv: #1C130D; --on-fill: #1C130D;
  --glass: rgba(34, 24, 16, .72); --glass-strong: rgba(34, 24, 16, .92); --glass-rim: inset 0 1px 0 rgba(255, 236, 210, .1), inset 0 0 0 1px rgba(255, 236, 210, .08);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .45); --shadow-2: 0 14px 34px -16px rgba(0, 0, 0, .75); --shadow-3: 0 28px 70px -20px rgba(0, 0, 0, .85);
  --star-off: rgba(255, 236, 210, .2); --track: rgba(255, 236, 210, .12); --tint: 18%;
}
.skin-bg--livros::after { background: radial-gradient(90% 55% at 50% 0%, rgba(255, 168, 70, .32), transparent 62%), radial-gradient(60% 40% at 85% 100%, rgba(255, 140, 50, .12), transparent 70%), linear-gradient(180deg, rgba(20, 13, 8, .5) 0%, rgba(20, 13, 8, .86) 55%, rgba(20, 13, 8, .94) 100%); }
.skin-books, .skin-books [data-area] { --area: #E2A33B; --area-ink: #F4C978; }
.skin-books .shelf__board { background: linear-gradient(180deg, #8A5E36 0, #6B4526 45%, #4A2E18 100%); box-shadow: 0 14px 22px -8px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 220, 170, .35); }
.skin-books .shelf__row::before { content: ''; position: absolute; left: 10%; right: 10%; top: -8px; height: 70%; background: radial-gradient(50% 60% at 50% 100%, rgba(255, 180, 90, .14), transparent 70%); pointer-events: none; }
.skin-books .bcover { box-shadow: inset 4px 0 0 rgba(0,0,0,.25), inset 5px 0 0 rgba(255,255,255,.08), 0 10px 16px -8px rgba(0,0,0,.85); }

/* Filmes: sala de cinema, veludo vermelho e luz do projetor */
body:has(.skin-cinema) {
  color-scheme: dark; --bg: #0A0507;
  --surface: rgba(32, 12, 18, .72); --surface-solid: #1E0B10; --surface-2: rgba(255, 220, 228, .07); --surface-3: rgba(255, 220, 228, .13);
  --line: rgba(255, 220, 228, .1); --line-strong: rgba(255, 220, 228, .2);
  --text: #FFF4F6; --text-2: #F0D6DC; --text-3: #C9A7AF; --ink: #FFF4F6; --ink-inv: #14070A; --on-fill: #14070A;
  --glass: rgba(26, 9, 13, .72); --glass-strong: rgba(26, 9, 13, .92); --glass-rim: inset 0 1px 0 rgba(255, 220, 228, .1), inset 0 0 0 1px rgba(255, 220, 228, .08);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .5); --shadow-2: 0 14px 34px -16px rgba(0, 0, 0, .8); --shadow-3: 0 28px 70px -20px rgba(0, 0, 0, .9);
  --star-off: rgba(255, 220, 228, .2); --track: rgba(255, 220, 228, .12); --tint: 18%;
}
.skin-bg--filmes::after { background: radial-gradient(70% 45% at 50% -8%, rgba(255, 245, 235, .26), transparent 62%), radial-gradient(120% 60% at 50% 110%, rgba(190, 18, 60, .35), transparent 60%), linear-gradient(180deg, rgba(10, 5, 7, .3) 0%, rgba(10, 5, 7, .72) 45%, rgba(10, 5, 7, .9) 100%); }
.skin-cinema, .skin-cinema [data-area] { --area: #F43F5E; --area-ink: #FDA4AF; }
.skin-cinema .poster { box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .06); }
@media (prefers-reduced-transparency: reduce) { .skin-bg img { display: none; } .view--skin .card { backdrop-filter: none; } }

/* Item ativo da barra em branco nos fundos temáticos */
body:has(.view--skin) .nav__item[aria-current='page'] { color: #FFFFFF; }
body:has(.view--skin) .nav__list::before { background: rgba(255, 255, 255, .14); }


/* Filmes temático: cortina de veludo fechada, escura e elegante (sem foto) */
.skin-bg--filmes { background: #1B0509; }
.skin-bg--filmes::before { content: ''; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .5) 0, rgba(0, 0, 0, .12) 16px, rgba(255, 120, 135, .07) 30px, rgba(0, 0, 0, .1) 44px, rgba(0, 0, 0, .48) 58px),
    repeating-linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .22) 41px, transparent 97px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0, transparent 7px, rgba(255, 255, 255, .02) 13px),
    linear-gradient(180deg, #4E0B16 0%, #3A0710 40%, #22040A 75%, #160206 100%); }
.skin-bg--filmes::after { background: radial-gradient(65% 40% at 50% -4%, rgba(255, 214, 190, .16), transparent 70%), radial-gradient(120% 50% at 50% 115%, rgba(0, 0, 0, .55), transparent 60%), linear-gradient(180deg, rgba(8, 2, 4, .05) 0%, rgba(8, 2, 4, .35) 55%, rgba(8, 2, 4, .6) 100%); }
/* Banner sem foto no modo temático: só o título sobre a cortina */
.banner--plain { background: transparent; box-shadow: none; min-height: 0; padding: var(--s5) 4px var(--s2); }
.banner--plain::before, .banner--plain::after { display: none; }
.banner--plain .pill-light { background: rgba(255, 255, 255, .1); }
.banner--plain h1 { color: #FFF4F6; }
.banner--plain .banner__top { position: static; inset: auto; margin-bottom: 22px; }
.banner--plain h1 { font-size: 40px; letter-spacing: -.035em; }

/* ---------- Acessibilidade (auditoria) ---------- */
/* Abas não selecionadas: cinza mais escuro para passar 4,5:1 */
.segmented button { color: var(--text-2); }
/* Tarefa sem linha de detalhes: a área de toque ocupa a altura toda da linha */
.list-row > .list-row__main { align-self: stretch; display: flex; flex-direction: column; justify-content: center; min-height: 44px; }
/* Pinos do mapa: alvo de toque maior que o ponto desenhado */
.wpin::before { content: ''; position: absolute; inset: -14px; border-radius: 50%; }

/* ---------- Conexões entre módulos ---------- */
.link-box { margin-top: 16px; padding: 14px; border-radius: var(--r-lg); background: var(--surface-2); display: grid; gap: 8px; }
.link-box .eyebrow { display: inline-flex; align-items: center; gap: 6px; }
.link-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); text-align: left; color: var(--text); text-decoration: none; width: 100%; min-height: 52px; }
.link-row b { display: block; font-size: 14px; }
.link-row small { display: block; font-size: 12px; color: var(--text-3); font-weight: 600; margin-top: 2px; }
.link-row__ic { width: 34px; height: 34px; border-radius: 11px; flex: none; display: grid; place-items: center; background: color-mix(in srgb, var(--lc) 16%, var(--surface)); color: color-mix(in oklab, var(--lc) var(--cc-k, 58%), var(--cc-mix, black)); }
.link-row .progress { height: 6px; }
.link-row--task.is-done b { text-decoration: line-through; color: var(--text-3); }
.link-chip { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; align-self: flex-start; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: color-mix(in srgb, var(--lc) 14%, var(--surface)); color: color-mix(in oklab, var(--lc) var(--cc-k, 58%), var(--cc-mix, black)); }
.link-dot { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 6px; vertical-align: -2px; border-radius: 6px; background: color-mix(in srgb, var(--goals) 14%, transparent); color: var(--goals-ink); }
.link-row .progress { display: block; }
[data-linktask] { flex-wrap: wrap; }
[data-linktask] input[name=task] { flex: 1 1 100%; }
[data-linktask] input[name=when] { flex: 1 1 auto; max-width: none !important; }

/* ---------- Resumo da semana ---------- */
.sum-nav { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 16px; }
.sum-nav__d { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.sum-hl { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--r-xl); background: var(--ink); color: var(--ink-inv); box-shadow: var(--shadow-2); }
.sum-hl .eyebrow { color: color-mix(in srgb, var(--area) 70%, var(--ink-inv)) !important; }
.sum-hl__ic { width: 48px; height: 48px; border-radius: 16px; flex: none; display: grid; place-items: center; background: var(--area); color: #fff; }
.sum-hl__t { font-size: 18px; font-weight: 800; line-height: 1.3; margin-top: 2px; }
.sum-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
@media (min-width: 720px) { .sum-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sum-card { padding: 16px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; animation: fadeUp 500ms var(--ease-out) both; }
.sum-card__ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--area) 16%, var(--surface)); color: var(--area-ink); margin-bottom: 6px; }
.sum-card__l { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.sum-card__v { font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; overflow-wrap: anywhere; }
.sum-card__v small { font-size: 13px; font-weight: 700; color: var(--text-2); letter-spacing: 0; margin-left: 6px; }
.sum-card__n { font-size: 12.5px; color: var(--text-3); font-weight: 600; line-height: 1.35; display: flex; gap: 4px; align-items: flex-start; }
.sum-card__n.is-good { color: var(--ok); }
.sum-card__n .ic { flex: none; margin-top: 2px; }
.sum-share { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.sum-share__opt { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.sum-mini { display: block; text-decoration: none; color: var(--text); }
.sum-mini__go { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 800; color: var(--tasks-ink); }
.sum-mini__hl { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: 14px; font-size: 13.5px; font-weight: 700; background: color-mix(in srgb, var(--area) 12%, var(--surface)); color: var(--text); }
.sum-mini__hl .ic { color: var(--area-ink); flex: none; }
.sum-mini__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.sum-mini__stats div { padding: 10px; border-radius: 14px; background: var(--surface-2); min-width: 0; }
.sum-mini__stats b { display: block; font-size: 18px; font-weight: 800; color: var(--area-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sum-mini__stats span { font-size: 11.5px; font-weight: 700; color: var(--text-3); }
.sum-share { flex-direction: column; align-items: stretch; }
.sum-share .btn { justify-content: center; }

/* ---------- Termos de uso e Política de privacidade ---------- */
.legal { font-size: 14.5px; line-height: 1.6; color: var(--text-2); }
.legal h2 { font-size: 16px; color: var(--text); margin: 22px 0 6px; letter-spacing: -.01em; }
.legal h2:first-of-type { margin-top: 12px; }
.legal p { margin: 0 0 10px; }
.legal ul { margin: 0 0 10px; padding-left: 20px; }
.legal li { margin: 4px 0; }
.legal b { color: var(--text); }
.legal a, .privacy-note a { color: var(--text); font-weight: 700; text-underline-offset: 3px; }
.legal mark { background: color-mix(in srgb, #F5B400 30%, transparent); color: var(--text); border-radius: 4px; padding: 0 3px; }
.legal__meta { font-size: 12.5px; color: var(--text-3, var(--text-2)); margin-top: 4px; }
.sheet .legal { padding-bottom: 8px; }
.terms-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 13.5px; line-height: 1.45; color: var(--text-2); cursor: pointer; }
.terms-check input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--ok); cursor: pointer; }
.terms-check .link-btn { min-height: 0; padding: 0; font-size: inherit; display: inline; color: var(--text); text-decoration: underline; text-underline-offset: 3px; vertical-align: baseline; }
.terms-check input[aria-invalid="true"] { outline: 2px solid var(--danger, #D93025); outline-offset: 2px; }

/* ---------- Instalar o Nexus ---------- */
.install-card { margin-top: 12px; border: 0; font: inherit; color: inherit; }
.install-card b { display: block; }
.install-steps { margin: 0; padding-left: 22px; display: grid; gap: 10px; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.install-steps b { color: var(--text); }
