/* Meu Rumo — identidade: tinta escura, verde-petróleo de bússola e um toque de sol.
   Títulos em Fraunces (serifa com personalidade), texto em Inter. */
:root {
  --bg: #f4f2ec; --bg2: #ebe7dc; --surface: #ffffff; --surface2: #faf8f3; --line: #e4dfd2; --line2: #d6d0c0;
  --fg: #1b1f1d; --muted: #6a6b62; --faint: #9a998e;
  --accent: #0e6b62; --accent-2: #0a4f49; --accent-ink: #ffffff; --accent-soft: #dcefeb;
  --sun: #e39b2d; --sun-soft: #fbecd2;
  --good: #1f7a4d; --good-soft: #dff2e7; --warn: #a35b00; --warn-soft: #fbedd5; --bad: #c23a32; --bad-soft: #fbe3e0;
  --hero-1: #0e6b62; --hero-2: #12332f; --hero-ink: #f4fbf8;
  --shadow: 0 1px 2px rgba(30,30,20,.05), 0 8px 24px -12px rgba(30,30,20,.18);
  --shadow-lg: 0 20px 60px -20px rgba(10,30,25,.45);
  --r: 18px; --r-sm: 12px;
  --display: "Fraunces", ui-serif, Georgia, serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0d1211; --bg2: #121a18; --surface: #151d1b; --surface2: #19221f; --line: #24302c; --line2: #2f3d38;
  --fg: #e7eeea; --muted: #97a59f; --faint: #6b7a74;
  --accent: #3cc7b4; --accent-2: #2aa595; --accent-ink: #062420; --accent-soft: #123430;
  --sun: #f2b54f; --sun-soft: #3a2c13;
  --good: #5cd394; --good-soft: #143226; --warn: #f0b45a; --warn-soft: #3a2b14; --bad: #ff8178; --bad-soft: #3d1c1a;
  --hero-1: #0f4c46; --hero-2: #0b1c1a; --hero-ink: #eafaf5;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -14px rgba(0,0,0,.6);
  --shadow-lg: 0 24px 70px -20px rgba(0,0,0,.8);
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --bg: #0d1211; --bg2: #121a18; --surface: #151d1b; --surface2: #19221f; --line: #24302c; --line2: #2f3d38;
  --fg: #e7eeea; --muted: #97a59f; --faint: #6b7a74;
  --accent: #3cc7b4; --accent-2: #2aa595; --accent-ink: #062420; --accent-soft: #123430;
  --sun: #f2b54f; --sun-soft: #3a2c13;
  --good: #5cd394; --good-soft: #143226; --warn: #f0b45a; --warn-soft: #3a2b14; --bad: #ff8178; --bad-soft: #3d1c1a;
  --hero-1: #0f4c46; --hero-2: #0b1c1a; --hero-ink: #eafaf5;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -14px rgba(0,0,0,.6);
  --shadow-lg: 0 24px 70px -20px rgba(0,0,0,.8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--fg);
  font: 15px/1.5 var(--body); -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(1200px 500px at 10% -10%, var(--bg2), transparent 70%);
  background-attachment: fixed;
}
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(28px, 6vw, 36px); line-height: 1.1; font-variation-settings: "opsz" 96; }
h2 { font-size: 20px; line-height: 1.2; font-variation-settings: "opsz" 40; }
h3 { font-size: 16px; }
em { font-style: italic; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; color: var(--muted); }
.eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.in { color: var(--good); } .out { color: var(--bad); }

/* ---------- abertura ---------- */
.splash { position: fixed; inset: 0; display: grid; place-items: center; gap: 12px; align-content: center; color: var(--muted); }
.splash svg { width: 64px; height: 64px; animation: girar 2.4s ease-in-out infinite; }
@keyframes girar { 50% { transform: rotate(25deg); } }

/* ---------- login ---------- */
.login { min-height: 100dvh; display: grid; grid-template-columns: 1fr; }
.login-arte {
  position: relative; overflow: hidden; color: var(--hero-ink); padding: 40px 24px 56px;
  background: radial-gradient(900px 500px at 80% 0%, rgba(227,155,45,.28), transparent 60%), linear-gradient(160deg, var(--hero-1), var(--hero-2));
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
}
.login-arte .rosa { position: absolute; right: -120px; bottom: -140px; width: 440px; height: 440px; opacity: .14; animation: rosa 60s linear infinite; }
@keyframes rosa { to { transform: rotate(360deg); } }
.marca { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 22px; font-weight: 600; }
.marca svg { width: 34px; height: 34px; }
.login-arte h1 { font-size: clamp(34px, 7vw, 56px); font-weight: 500; max-width: 12ch; }
.login-arte h1 em { color: var(--sun); }
.login-arte ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 360px; position: relative; }
.login-arte li { display: flex; gap: 12px; align-items: center; font-size: 15px; opacity: .92; }
.login-arte li i { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; flex: none; font-style: normal; font-size: 13px; }
.login-form { display: grid; place-items: center; padding: 32px 20px 48px; margin-top: -24px; position: relative; }
.login-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px 24px; box-shadow: var(--shadow-lg); display: grid; gap: 16px; }
.login-card h2 { font-size: 26px; }
.login-card .troca { text-align: center; font-size: 14px; color: var(--muted); }
.login-card .troca button { background: none; border: 0; color: var(--accent); font-weight: 600; padding: 0; }
.erro-form { background: var(--bad-soft); color: var(--bad); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
@media (min-width: 900px) {
  .login { grid-template-columns: 1.1fr 1fr; }
  .login-arte { padding: 56px; }
  .login-form { margin: 0; }
}

/* ---------- campos ---------- */
.campo { display: grid; gap: 6px; min-width: 0; }
.campo > span { font-size: 13px; font-weight: 600; color: var(--muted); }
.campo small { font-size: 12px; color: var(--faint); }
.inp, .campo input, .campo select, .campo textarea {
  width: 100%; min-width: 0; background: var(--surface2); border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: 12px 13px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.inp:focus, .campo input:focus, .campo select:focus, .campo textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.campo textarea { resize: vertical; min-height: 96px; }
.campo .valor { font-family: var(--display); font-size: 26px; font-weight: 600; padding: 10px 13px; }
.grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grade .inteiro { grid-column: 1 / -1; }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 12px 18px; font-weight: 600; background: var(--accent); color: var(--accent-ink); white-space: nowrap; transition: transform .1s, filter .15s; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(.97); }
.btn.claro { background: var(--accent-soft); color: var(--accent); }
.btn.linha { background: transparent; color: var(--fg); border: 1.5px solid var(--line2); }
.btn.perigo { background: var(--bad-soft); color: var(--bad); }
.btn.sol { background: var(--sun); color: #2b1a00; }
.btn.peq { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn.bloco { width: 100%; }
.btn svg { width: 18px; height: 18px; }
.icone-btn { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; color: var(--muted); flex: none; }
.icone-btn svg { width: 18px; height: 18px; }
.icone-btn:hover { color: var(--fg); }
.link { background: none; border: 0; color: var(--accent); font-weight: 600; padding: 0; font-size: 14px; }

/* segmentado (rádio estilizado) */
.seg { display: flex; gap: 4px; background: var(--bg2); border-radius: 12px; padding: 4px; }
.seg label, .seg button { flex: 1; position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span, .seg button { display: block; text-align: center; padding: 8px 10px; border-radius: 9px; font-weight: 600; font-size: 13.5px; color: var(--muted); cursor: pointer; border: 0; background: none; white-space: nowrap; }
.seg input:checked + span, .seg button.on { background: var(--surface); color: var(--fg); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); }
.seg.saida input:checked + span { color: var(--bad); }
.seg.entrada input:checked + span { color: var(--good); }

/* ---------- estrutura do app ---------- */
.app { min-height: 100dvh; }
.lateral { display: none; }
.tela { max-width: 780px; margin: 0 auto; padding: calc(18px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right)) 130px max(16px, env(safe-area-inset-left)); display: flex; flex-direction: column; gap: 26px; animation: entrar .35s ease both; }
@keyframes entrar { from { opacity: 0; transform: translateY(8px); } }
.topo { display: flex; align-items: flex-start; gap: 12px; }
.topo > .cresce { flex: 1; min-width: 0; display: grid; gap: 4px; }
.topo p { margin: 0; color: var(--muted); }
.secao { display: grid; gap: 12px; }
.secao-cab { display: flex; align-items: baseline; gap: 10px; }
.secao-cab h2 { flex: 1; }
.abas {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line); padding: 6px max(8px, env(safe-area-inset-left)) calc(6px + env(safe-area-inset-bottom, 0px));
  display: grid; grid-template-columns: repeat(6, 1fr);
}
.abas button { background: none; border: 0; display: grid; justify-items: center; gap: 2px; padding: 6px 2px; color: var(--faint); font-size: 11.5px; font-weight: 600; border-radius: 12px; }
.abas button svg { width: 24px; height: 24px; transition: transform .2s; }
.abas button[aria-current="page"] { color: var(--accent); }
.abas button[aria-current="page"] svg { transform: translateY(-1px) scale(1.06); }
.fab {
  position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 21;
  width: 58px; height: 58px; border-radius: 20px; border: 0; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; box-shadow: 0 12px 30px -8px color-mix(in srgb, var(--accent) 70%, transparent); transition: transform .15s;
}
.fab:active { transform: scale(.92); }
.fab svg { width: 26px; height: 26px; }

@media (min-width: 960px) {
  .app { display: grid; grid-template-columns: 260px 1fr; }
  .abas { display: none; }
  .lateral {
    display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100dvh; padding: 26px 16px;
    border-right: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 60%, transparent);
  }
  .lateral .marca { padding: 0 10px 22px; color: var(--fg); }
  .lateral .marca svg { color: var(--accent); }
  .lateral nav { display: grid; gap: 4px; }
  .lateral nav button { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 0; background: none; border-radius: 12px; font-weight: 600; color: var(--muted); text-align: left; }
  .lateral nav button svg { width: 22px; height: 22px; }
  .lateral nav button:hover { background: var(--bg2); color: var(--fg); }
  .lateral nav button[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
  .lateral .novo { margin: 14px 0 0; }
  .lateral .quem { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); text-align: left; }
  .tela { padding-top: 40px; padding-bottom: 80px; }
  .fab { bottom: 28px; right: 28px; }
  .so-celular { display: none !important; }
}
.avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--sun), var(--accent)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.quem .cresce { flex: 1; min-width: 0; }
.quem b, .quem span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quem span { font-size: 12px; color: var(--muted); }

/* ---------- cartões e listas ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.lista { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.item { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-top: 1px solid var(--line); min-width: 0; position: relative; }
.item:first-child { border-top: 0; }
.item .cresce { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.item .titulo { font-weight: 600; }
.item.clicavel { cursor: pointer; transition: background .15s; }
.item.clicavel:hover { background: var(--surface2); }
.vazio { padding: 26px 18px; text-align: center; color: var(--muted); display: grid; gap: 6px; justify-items: center; }
.vazio svg { width: 40px; height: 40px; color: var(--faint); }
.vazio b { color: var(--fg); font-family: var(--display); font-size: 17px; font-weight: 600; }
.pill { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.p-bad { background: var(--bad-soft); color: var(--bad); } .p-warn { background: var(--warn-soft); color: var(--warn); }
.p-good { background: var(--good-soft); color: var(--good); } .p-n { background: var(--accent-soft); color: var(--accent); }
.p-cinza { background: var(--bg2); color: var(--muted); }
.inicial { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; flex: none; font-size: 15px; }

/* caixa de seleção */
.check { width: 26px; height: 26px; border-radius: 9px; border: 2px solid var(--line2); background: var(--surface); flex: none; padding: 0; display: grid; place-items: center; transition: background .15s, border-color .15s, transform .15s; }
.check:hover { border-color: var(--accent); }
.check svg { width: 15px; height: 15px; color: #fff; opacity: 0; transform: scale(.4); transition: .2s; }
.check.on { background: var(--good); border-color: var(--good); }
.check.on svg { opacity: 1; transform: none; }
.check.redonda { border-radius: 50%; }
.feita .titulo { text-decoration: line-through; color: var(--faint); font-weight: 500; }
.estrela { background: none; border: 0; padding: 4px; color: var(--line2); display: grid; }
.estrela svg { width: 18px; height: 18px; }
.estrela.on { color: var(--sun); }
.estrela.on svg { fill: currentColor; }

/* ---------- herói do dia ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: 26px; padding: 24px 22px; color: var(--hero-ink);
  background: radial-gradient(500px 260px at 100% 0%, rgba(227,155,45,.35), transparent 65%), linear-gradient(150deg, var(--hero-1), var(--hero-2));
  display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; box-shadow: var(--shadow-lg);
}
.hero .rosa { position: absolute; left: -70px; bottom: -90px; width: 260px; opacity: .08; pointer-events: none; }
.hero .eyebrow { color: rgba(255,255,255,.7); }
.hero h1 { font-weight: 500; margin: 6px 0 8px; }
.hero h1 em { color: var(--sun); }
.hero p { margin: 0; color: rgba(255,255,255,.82); font-size: 14.5px; max-width: 46ch; }
.anel { position: relative; width: 96px; height: 96px; display: grid; place-items: center; text-align: center; }
.anel svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.anel circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.anel .fundo { stroke: rgba(255,255,255,.14); }
.anel .frente { stroke: var(--sun); transition: stroke-dashoffset .8s cubic-bezier(.2,.8,.2,1); }
.anel b { font-family: var(--display); font-size: 24px; line-height: 1; font-weight: 600; display: block; }
.anel span { font-size: 11px; opacity: .75; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 9px 13px; font-size: 13.5px; box-shadow: var(--shadow); cursor: pointer; }
.chip b { font-family: var(--display); font-size: 17px; font-weight: 600; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* adicionar rápido */
.rapido { display: flex; gap: 8px; align-items: center; background: var(--surface); border: 1.5px dashed var(--line2); border-radius: var(--r); padding: 6px 6px 6px 14px; transition: border-color .15s; }
.rapido:focus-within { border-style: solid; border-color: var(--accent); }
.rapido input[type=text] { flex: 1; border: 0; background: none; outline: none; padding: 8px 0; min-width: 0; }
.rapido .area { border: 0; background: var(--bg2); border-radius: 9px; padding: 7px 10px; font-size: 12.5px; font-weight: 600; color: var(--muted); }

/* compromissos (linha do tempo) */
.tempo { display: grid; gap: 0; }
.tempo .item { align-items: stretch; }
.hora { width: 52px; flex: none; font-family: var(--display); font-weight: 600; font-size: 16px; padding-top: 1px; }
.hora small { display: block; font-family: var(--body); font-size: 11px; color: var(--faint); font-weight: 500; }
.barra-cor { width: 4px; border-radius: 4px; background: var(--accent); flex: none; }

/* hábitos */
.habito .dias { display: flex; gap: 5px; }
.habito .dia { width: 26px; height: 26px; border-radius: 8px; border: 0; background: var(--bg2); display: grid; place-items: center; font-size: 10px; font-weight: 700; color: var(--faint); padding: 0; transition: transform .12s; }
.habito .dia:active { transform: scale(.88); }
.habito .dia.on { background: var(--accent); color: var(--accent-ink); }
.habito .dia.hoje { box-shadow: inset 0 0 0 2px var(--accent); }
.habito .dia.hoje.on { box-shadow: none; }
.fogo { font-size: 12px; font-weight: 700; color: var(--sun); white-space: nowrap; }
@media (max-width: 480px) { .habito { flex-wrap: wrap; } .habito .dias { width: 100%; justify-content: space-between; padding-left: 38px; } .habito .dia { width: 100%; max-width: 38px; height: 30px; } }

/* notas */
.notas { columns: 2 220px; column-gap: 12px; }
.nota { break-inside: avoid; margin: 0 0 12px; background: var(--sun-soft); border-radius: 16px; padding: 14px 14px 10px; cursor: pointer; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; position: relative; border: 1px solid color-mix(in srgb, var(--sun) 25%, transparent); transition: transform .15s; }
.nota:hover { transform: translateY(-2px); }
.nota.fixa::before { content: ""; position: absolute; top: 10px; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); }
.nota small { display: block; margin-top: 8px; color: var(--muted); font-size: 11.5px; }

/* estatísticas */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); display: grid; gap: 2px; min-width: 0; }
.stat b { font-family: var(--display); font-size: clamp(20px, 5vw, 26px); font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; line-height: 1.2; }
.stat .small { overflow-wrap: anywhere; }
.stat.destaque { background: linear-gradient(150deg, var(--hero-1), var(--hero-2)); color: var(--hero-ink); border: 0; }
.stat.destaque .eyebrow, .stat.destaque .small { color: rgba(255,255,255,.72); }
.barra { height: 10px; background: var(--bg2); border-radius: 99px; overflow: hidden; position: relative; }
.barra i { position: absolute; inset: 0 auto 0 0; background: var(--accent); border-radius: 99px; transition: width .6s cubic-bezier(.2,.8,.2,1); }

/* agenda: semana */
.semana { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.semana button { border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 9px 0 8px; display: grid; justify-items: center; gap: 2px; transition: .15s; }
.semana button span { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; }
.semana button b { font-family: var(--display); font-size: 20px; font-weight: 600; line-height: 1.1; }
.semana button i { display: flex; gap: 3px; height: 6px; }
.semana button i em { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.semana button i em.c { background: var(--sun); } .semana button i em.p { background: var(--bad); }
.semana button.hoje { border-color: var(--accent); }
.semana button.sel { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 22px -10px var(--accent); }
.semana button.sel span { color: inherit; opacity: .85; }
.semana button.sel i em { background: var(--accent-ink); }

/* contas: régua do mês */
.regua { position: relative; height: 54px; margin: 6px 4px 0; }
.regua .linha { position: absolute; left: 0; right: 0; top: 26px; height: 4px; border-radius: 4px; background: var(--bg2); }
.regua .feito { position: absolute; left: 0; top: 26px; height: 4px; border-radius: 4px; background: var(--accent); }
.regua .ponto { position: absolute; top: 20px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; border: 3px solid var(--surface); background: var(--accent); box-shadow: 0 0 0 1px var(--line2); }
.regua .ponto.paga { background: var(--good); } .regua .ponto.atrasada, .regua .ponto.hoje { background: var(--bad); } .regua .ponto.logo { background: var(--sun); }
.regua .agora { position: absolute; top: 0; bottom: 4px; width: 2px; margin-left: -1px; background: var(--fg); border-radius: 2px; }
.regua .agora span { position: absolute; top: -2px; left: 6px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.regua .marcas { position: absolute; left: 0; right: 0; bottom: -2px; display: flex; justify-content: space-between; font-size: 10.5px; color: var(--faint); }
.grupo-tit { padding: 10px 16px 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--surface2); border-top: 1px solid var(--line); }
.grupo-tit:first-child { border-top: 0; }

/* dinheiro */
.mes-nav { display: flex; align-items: center; gap: 6px; }
.mes-nav b { font-family: var(--display); font-weight: 600; font-size: 17px; min-width: 130px; text-align: center; text-transform: capitalize; }
.grafico svg { width: 100%; height: auto; display: block; overflow: visible; }
.grafico text { font-size: 10px; fill: var(--muted); font-family: var(--body); }
.legenda { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.legenda span { display: inline-flex; align-items: center; gap: 6px; }
.legenda i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.cats { display: grid; gap: 12px; }
.cat { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; font-size: 14px; }
.cat .barra { grid-column: 1 / -1; height: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.dia-cab { display: flex; justify-content: space-between; padding: 10px 16px 6px; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--surface2); border-top: 1px solid var(--line); text-transform: capitalize; }
.dia-cab:first-child { border-top: 0; }
.dica { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); background: var(--accent-soft); color: var(--fg); font-size: 14px; }
.dica svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 1px; }
.dica.sol { background: var(--sun-soft); } .dica.sol svg { color: var(--sun); }

/* metas */
.reserva { display: grid; gap: 16px; }
.reserva .grande { font-family: var(--display); font-size: clamp(34px, 9vw, 46px); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.trilha { position: relative; height: 14px; background: rgba(255,255,255,.14); border-radius: 99px; }
.trilha i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: linear-gradient(90deg, var(--sun), #ffd27d); transition: width .8s cubic-bezier(.2,.8,.2,1); }
.trilha .marco { position: absolute; top: -4px; bottom: -4px; width: 2px; background: rgba(255,255,255,.55); }
.trilha-rot { display: flex; justify-content: space-between; font-size: 12.5px; color: rgba(255,255,255,.75); }
.passos { list-style: none; margin: 0; padding: 0; display: grid; }
.passos li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding-bottom: 18px; position: relative; }
.passos li:not(:last-child)::before { content: ""; position: absolute; left: 16px; top: 34px; bottom: 2px; width: 2px; background: var(--line); }
.passos li.ok:not(:last-child)::before { background: var(--good); }
.passos .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 600; background: var(--bg2); color: var(--muted); }
.passos li.ok .n { background: var(--good); color: #fff; }
.passos li.agora .n { background: var(--sun); color: #2b1a00; box-shadow: 0 0 0 5px var(--sun-soft); }
.passos li b { display: block; padding-top: 5px; }
.passos li.agora b::after { content: "você está aqui"; margin-left: 8px; font-family: var(--body); font-size: 11px; font-weight: 700; color: var(--warn); background: var(--sun-soft); border-radius: 99px; padding: 2px 8px; vertical-align: 2px; }
.metas { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.meta { display: grid; gap: 10px; cursor: pointer; transition: transform .15s; }
.meta:hover { transform: translateY(-2px); }
.meta .topo-meta { display: flex; gap: 10px; align-items: center; }
.meta .emoji { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: var(--bg2); flex: none; }

/* folha (diálogo) */
dialog.folha {
  border: 0; padding: 0; background: var(--surface); color: var(--fg); width: 100%; max-width: 520px;
  margin: auto auto 0; border-radius: 26px 26px 0 0; max-height: 92dvh; box-shadow: var(--shadow-lg);
}
dialog.folha::backdrop { background: rgba(8,14,12,.5); backdrop-filter: blur(3px); }
dialog.folha[open] { animation: subir .28s cubic-bezier(.2,.8,.2,1); }
@keyframes subir { from { transform: translateY(40px); opacity: 0; } }
.folha form { display: flex; flex-direction: column; max-height: 92dvh; }
.folha .cab { display: flex; align-items: center; gap: 12px; padding: 20px 20px 6px; }
.folha .cab .cresce { flex: 1; min-width: 0; }
.folha .cab p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.folha .alca { width: 40px; height: 5px; border-radius: 5px; background: var(--line2); margin: 10px auto 0; }
.folha .corpo { padding: 14px 20px; overflow-y: auto; display: grid; gap: 14px; }
.folha .rodape { display: flex; gap: 10px; padding: 12px 20px calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.folha .rodape .btn:last-child { flex: 1; }
@media (min-width: 640px) {
  dialog.folha { margin: auto; border-radius: 26px; }
  dialog.folha[open] { animation: aparecer .22s ease; }
  .folha .alca { display: none; }
}
@keyframes aparecer { from { transform: scale(.96); opacity: 0; } }
.escolhas { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.escolhas button { display: grid; gap: 8px; justify-items: start; text-align: left; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface2); transition: .15s; }
.escolhas button:hover { border-color: var(--accent); background: var(--accent-soft); }
.escolhas button svg { width: 26px; height: 26px; color: var(--accent); }
.escolhas button b { font-family: var(--display); font-weight: 600; font-size: 16px; }
.escolhas button span { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.cores { display: flex; gap: 8px; flex-wrap: wrap; }
.cores label { position: relative; }
.cores input { position: absolute; opacity: 0; }
.cores span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--bg2); font-size: 20px; cursor: pointer; border: 2px solid transparent; }
.cores input:checked + span { border-color: var(--accent); background: var(--accent-soft); }

/* avisos */
.toasts { position: fixed; left: 0; right: 0; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); z-index: 50; display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 14px; background: var(--fg); color: var(--bg); padding: 12px 14px 12px 18px; border-radius: 14px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); animation: subir .25s ease; max-width: 480px; }
.toast.erro { background: var(--bad); color: #fff; }
.toast button { background: none; border: 0; color: var(--sun); font-weight: 700; padding: 4px 6px; }
@media (min-width: 960px) { .toasts { bottom: 28px; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- rotina: linha do tempo ---------- */
.linha-dia { display: grid; }
.bloco { display: grid; grid-template-columns: 50px 16px minmax(0, 1fr); gap: 10px; }
.b-hora { padding-top: 15px; text-align: right; line-height: 1.1; }
.b-hora b { font-family: var(--display); font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums; }
.b-hora small { display: block; font-size: 11.5px; color: var(--faint); margin-top: 3px; font-variant-numeric: tabular-nums; }
.b-linha { position: relative; }
.b-linha::before { content: ""; position: absolute; left: 7px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.bloco:first-child .b-linha::before { top: 20px; }
.bloco:last-child .b-linha::before { bottom: calc(100% - 20px); }
.b-ponto { position: absolute; left: 1px; top: 17px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 2.5px solid var(--line2); z-index: 1; }
.b-card { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 12px 12px 12px; margin-bottom: 10px; box-shadow: var(--shadow); cursor: pointer; transition: transform .15s, border-color .15s; min-width: 0; }
.b-card:hover { border-color: var(--line2); transform: translateX(2px); }
.b-card .cresce { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.b-card .titulo { font-weight: 600; }
.b-card .check { margin-top: 6px; }
.b-emoji { width: 42px; height: 42px; border-radius: 13px; background: var(--bg2); display: grid; place-items: center; font-size: 21px; flex: none; }
.b-prev { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 3px; font-size: 13.5px; }
.b-prev li { display: flex; gap: 8px; align-items: baseline; color: var(--fg); }
.b-prev li::before { content: ""; width: 6px; height: 6px; border-radius: 2px; border: 1.5px solid var(--faint); flex: none; transform: translateY(-1px); }
.b-prev li.mais { color: var(--muted); font-size: 12.5px; }
.b-prev li.mais::before { display: none; }
.bloco.agora .b-card { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow); }
.bloco.agora .b-ponto { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); animation: pulsar 2s ease-in-out infinite; }
.bloco.agora .b-hora b { color: var(--accent); }
.bloco.agora .b-emoji { background: var(--accent-soft); }
@keyframes pulsar { 50% { box-shadow: 0 0 0 9px transparent; } }
.bloco.feito .b-ponto { background: var(--good); border-color: var(--good); }
.bloco.feito .b-linha::before { background: color-mix(in srgb, var(--good) 45%, var(--line)); }
.bloco.feito .b-card { background: var(--surface2); box-shadow: none; }
.bloco.feito .b-card .titulo { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--faint); }
.bloco.passou:not(.feito) .b-card { opacity: .72; }
.bloco.passou:not(.feito) .b-hora b { color: var(--muted); }

.agora-card { display: flex; gap: 14px; align-items: center; cursor: pointer; padding: 14px 16px; transition: transform .15s; }
.agora-card:hover { transform: translateY(-1px); }
.agora-card.ativo { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: linear-gradient(120deg, var(--accent-soft), var(--surface) 60%); }
.agora-card .cresce { flex: 1; min-width: 0; }

.dias-sem { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.dias-sem label { position: relative; }
.dias-sem input { position: absolute; opacity: 0; pointer-events: none; }
.dias-sem span { display: grid; place-items: center; height: 40px; border-radius: 12px; background: var(--bg2); font-size: 12.5px; font-weight: 700; color: var(--muted); cursor: pointer; text-transform: capitalize; transition: .15s; }
.dias-sem input:checked + span { background: var(--accent); color: var(--accent-ink); }
.dias-sem input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.opcao { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; }
.opcao:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.opcao input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; margin-top: 1px; }
.opcao small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }

.os-num { font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--accent); min-width: 44px; align-self: flex-start; padding-top: 1px; }
.os-lista .item { align-items: flex-start; }
.os-lista .btn { align-self: center; }
.stat.clicavel { cursor: pointer; transition: transform .15s; }
.stat.clicavel:hover { transform: translateY(-2px); }
@media (max-width: 380px) { .abas button span { font-size: 10.5px; } .bloco { grid-template-columns: 44px 14px minmax(0, 1fr); gap: 8px; } }
.bloco.opcional .b-card, .bloco.pulado .b-card { background: transparent; border-style: dashed; border-width: 1.5px; box-shadow: none; align-items: center; }
.bloco.opcional .b-emoji, .bloco.pulado .b-emoji { filter: grayscale(1); opacity: .6; background: transparent; border: 1.5px dashed var(--line2); }
.bloco.opcional .b-ponto, .bloco.pulado .b-ponto { border-style: dashed; background: var(--bg); }
.bloco.opcional .b-card { border-color: color-mix(in srgb, var(--sun) 55%, var(--line)); }
.bloco.pulado .titulo { text-decoration: line-through; color: var(--faint); }
.bloco.opcional .b-hora b, .bloco.pulado .b-hora b { color: var(--faint); }
.dias-sem.opc input:checked + span { background: var(--sun); color: #2b1a00; }
.grupo-nav { display: flex; gap: 6px; align-items: center; flex: none; padding-top: 14px; }
.trilha-rot { position: relative; align-items: flex-start; line-height: 1.35; } .trilha-rot b { color: #fff; font-weight: 600; } .trilha-rot .meio { position: absolute; left: 50%; transform: translateX(-50%); text-align: center; }
