/* Painel de igreja no formato dashboard (como os apps de referência do Vitor):
   menu lateral, cartões, números grandes, gráficos. Claro por padrão; modo noturno pelo botão.
   Verde da casa como cor de marca, laranja para despesas. Archivo como única família. */

@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url(/fonts/archivo.woff2) format('woff2-variations'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url(/fonts/archivo-ext.woff2) format('woff2-variations'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  color-scheme: light;
  --bg: oklch(97% 0.006 150);
  --plate: oklch(100% 0 0);
  --plate-2: oklch(95.5% 0.007 150);
  --plate-3: oklch(91% 0.01 150);
  --line: oklch(91.5% 0.008 150);
  --line-2: oklch(86% 0.01 150);
  --text: oklch(24% 0.02 160);
  --text-2: oklch(45% 0.018 160);
  --text-3: oklch(58% 0.014 160);
  --marca: oklch(45% 0.1 158);
  --marca-2: oklch(39% 0.095 158);
  --on-marca: oklch(99% 0 0);
  --marca-soft: oklch(94% 0.035 158);
  --gold: var(--marca); --gold-2: var(--marca-2); --on-gold: var(--on-marca); --gold-soft: var(--marca-soft);
  --ok: oklch(52% 0.12 158);
  --bad: oklch(55% 0.19 27);
  --bad-soft: oklch(95% 0.03 27);
  --aviso: oklch(60% 0.15 65);
  --aviso-soft: oklch(96% 0.04 85);
  /* gráficos: receitas x despesas validados no script do dataviz (claro e escuro) */
  --c-rec: #1baf7a; --c-desp: #eb6834; --c-marca: oklch(52% 0.11 158); --c-neutra: oklch(85% 0.012 150); --trilho: oklch(93% 0.008 150);
  --st-ok: #1baf7a; --st-aviso: #eda100; --st-ruim: #e34948; --st-neutro: oklch(82% 0.01 150);
  --sombra-c: 0 1px 2px oklch(30% 0.02 160 / .05), 0 4px 16px oklch(30% 0.02 160 / .05);
  --bg-2: var(--plate); --bg-3: var(--plate-2); --bg-4: var(--plate-3);
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --t-13: .8125rem; --t-15: .9375rem; --t-17: 1.0625rem; --t-21: 1.3125rem; --t-26: 1.625rem;
  --r: 16px; --r-s: 11px; --r-chip: 6px;
  --ease: cubic-bezier(.2, 0, 0, 1);
  --lat: 252px;
}
:root[data-tema="escuro"] {
  color-scheme: dark;
  --bg: oklch(17.5% 0.02 162); --plate: oklch(22% 0.022 162); --plate-2: oklch(26.5% 0.024 162); --plate-3: oklch(32% 0.026 162);
  --line: oklch(29% 0.022 162); --line-2: oklch(36% 0.024 162);
  --text: oklch(95% 0.01 100); --text-2: oklch(76% 0.016 110); --text-3: oklch(60% 0.014 120);
  --marca: oklch(74% 0.12 158); --marca-2: oklch(80% 0.11 158); --on-marca: oklch(18% 0.03 162); --marca-soft: oklch(30% 0.05 158);
  --ok: oklch(76% 0.11 158); --bad: oklch(72% 0.15 27); --bad-soft: oklch(30% 0.06 27); --aviso: oklch(80% 0.13 80); --aviso-soft: oklch(31% 0.05 80);
  --c-rec: #199e70; --c-desp: #d95926; --c-marca: oklch(70% 0.12 158); --c-neutra: oklch(38% 0.02 162); --trilho: oklch(30% 0.02 162);
  --st-ok: #199e70; --st-aviso: #c98500; --st-ruim: #e66767; --st-neutro: oklch(42% 0.02 162);
  --sombra-c: none;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: var(--t-17); line-height: 1.45; -webkit-font-smoothing: antialiased; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.05rem); line-height: 1.1; font-weight: 760; letter-spacing: -0.015em; }
h2 { font-size: var(--t-17); line-height: 1.2; font-weight: 650; }
p { margin: 0 0 .75rem; text-wrap: pretty; max-width: 64ch; }
a { color: var(--marca); }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--marca); color: var(--on-marca); }
:focus-visible { outline: 2px solid var(--marca); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.mudo { color: var(--text-2); }
.peq { font-size: var(--t-15); }
.tnum, .num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
svg { flex: none; }

/* ---------- menu lateral ---------- */
.lateral { position: fixed; z-index: 1300; inset: 0 auto 0 0; width: var(--lat); background: var(--plate); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 1rem .75rem calc(.75rem + env(safe-area-inset-bottom)); transform: translateX(-102%); transition: transform .25s var(--ease); overflow-y: auto; }
.lateral.aberto { transform: none; box-shadow: 0 0 40px oklch(20% 0.02 160 / .25); }
.veu { position: fixed; inset: 0; z-index: 1250; background: oklch(20% 0.02 160 / .35); }
.lat-marca { display: flex; align-items: center; gap: .7rem; padding: .35rem .5rem 1rem; text-decoration: none; color: var(--text); }
.lat-marca b { display: block; font-size: 1.1rem; font-weight: 780; letter-spacing: -0.01em; }
.lat-marca small { display: block; font-size: var(--t-13); color: var(--text-3); line-height: 1.25; }
.lat-ico { width: 38px; height: 38px; border-radius: 11px; background: var(--marca); color: var(--on-marca); display: grid; place-items: center; }
.lat-ico svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lat-nav { flex: 1; }
.lat-sec { margin-top: .9rem; }
.lat-sec:first-child { margin-top: 0; }
.lat-t { font-size: var(--t-13); font-weight: 650; color: var(--text-3); padding: 0 .65rem .3rem; }
.lat-nav a { display: flex; align-items: center; gap: .7rem; min-height: 40px; padding: 0 .65rem; border-radius: 10px; text-decoration: none; color: var(--text-2); font-size: var(--t-15); font-weight: 560; }
.lat-nav a svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lat-nav a:hover { background: var(--plate-2); color: var(--text); }
.lat-nav a.ativa { background: var(--marca-soft); color: var(--marca-2); font-weight: 680; }
:root[data-tema="escuro"] .lat-nav a.ativa { color: var(--marca); }
.lat-pe { border-top: 1px solid var(--line); padding-top: .75rem; margin-top: 1rem; display: grid; gap: .5rem; }
.lat-tema { display: flex; align-items: center; gap: .7rem; min-height: 40px; padding: 0 .65rem; border: 0; border-radius: 10px; background: none; color: var(--text-2); font-size: var(--t-15); font-weight: 560; cursor: pointer; text-align: left; }
.lat-tema svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.lat-tema span { flex: 1; }
.chave-t { width: 36px; height: 21px; border-radius: 11px; background: var(--plate-3); position: relative; transition: background .15s; }
.chave-t::after { content: ''; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: var(--plate); box-shadow: 0 1px 2px oklch(0% 0 0 / .2); transition: transform .15s var(--ease); }
.lat-tema[aria-checked="true"] .chave-t { background: var(--marca); }
.lat-tema[aria-checked="true"] .chave-t::after { transform: translateX(15px); }
.lat-user { display: grid; grid-template-columns: auto 1fr auto; gap: .6rem; align-items: center; padding: .35rem .4rem; }
.lat-user b { display: block; font-size: var(--t-15); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lat-user small { font-size: var(--t-13); color: var(--text-3); }

/* ---------- topo e área principal ---------- */
.topo { display: flex; align-items: center; gap: .75rem; padding: .8rem 1rem; max-width: 1200px; margin: 0 auto; }
body.entrada-ativa .topo { visibility: hidden; }
.menu-btn { width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--plate); box-shadow: var(--sombra-c); display: grid; place-items: center; cursor: pointer; color: var(--text); }
.menu-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.marca { font-weight: 800; font-size: 1.15rem; text-decoration: none; color: var(--text); letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topo-dir { margin-left: auto; display: flex; align-items: center; gap: .65rem; }
.topo-ola { font-size: var(--t-15); color: var(--text-2); font-weight: 560; }
.topo-nome { font-size: var(--t-15); color: var(--on-marca); font-weight: 750; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--marca); flex: none; }
.topo-nome:empty { display: none; }
.app { max-width: 780px; margin: 0 auto; padding: .25rem 1rem 2.5rem; overflow-x: clip; }
.app.larga { max-width: 1200px; }
@media (max-width: 559px) { .topo-ola { display: none; } }
@media (min-width: 1000px) {
  body { padding-bottom: 0; }
  .lateral { transform: none; box-shadow: none; transition: none; }
  .veu, .menu-btn { display: none !important; }
  .principal { margin-left: var(--lat); }
  body.entrada-ativa .principal { margin-left: 0; }
  .topo { padding: 1.1rem 2rem .4rem; }
  .topo .marca { visibility: hidden; }
  .app { padding: .25rem 2rem 3rem; }
  body:not(.entrada-ativa) .app { margin-left: 0; }
  .barra { display: none !important; }
}

/* barra inferior (celular) */
.barra { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: color-mix(in oklch, var(--plate) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.barra a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 58px; text-decoration: none; font-size: .72rem; color: var(--text-3); font-weight: 620; }
.barra a svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.barra a.ativa { color: var(--marca); }

/* ---------- cabeçalho de tela ---------- */
.tela-cab { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 1.5rem; padding: .6rem 0 1.25rem; }
.tela-cab .sobre { font-size: var(--t-15); color: var(--text-3); font-weight: 600; margin-bottom: .3rem; }
.tela-cab h1 + p { margin: .45rem 0 0; color: var(--text-2); font-size: var(--t-17); }
.cab-acoes { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.filtros { display: flex; gap: .4rem; }
.filtros select { min-height: 42px; padding: 0 2.2rem 0 .8rem; border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--plate) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667068' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .6rem center / 16px; appearance: none; -webkit-appearance: none; font-size: var(--t-15); font-weight: 600; color: var(--text); cursor: pointer; }

/* ---------- cartões do painel ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.kpi { background: var(--plate); border-radius: var(--r); box-shadow: var(--sombra-c); padding: 1rem 1.1rem; display: flex; gap: .85rem; align-items: flex-start; border: 1px solid var(--line); }
:root:not([data-tema="escuro"]) .kpi, :root:not([data-tema="escuro"]) .card { border-color: transparent; }
.kpi-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--marca-soft); color: var(--marca); flex: none; }
.kpi-ico svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.kpi.entra .kpi-ico { background: color-mix(in oklch, var(--c-rec) 15%, var(--plate)); color: var(--c-rec); }
.kpi.sai .kpi-ico { background: color-mix(in oklch, var(--c-desp) 15%, var(--plate)); color: var(--c-desp); }
.kpi.ruim .kpi-ico { background: var(--bad-soft); color: var(--bad); }
.kpi-r { font-size: var(--t-15); color: var(--text-2); font-weight: 560; line-height: 1.25; }
.kpi-v { font-size: 1.75rem; font-weight: 780; letter-spacing: -0.02em; line-height: 1.1; margin-top: .2rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi-v small { font-size: 1.05rem; color: var(--text-3); font-weight: 650; }
.kpi.ruim .kpi-v { color: var(--bad); }
.kpi-s { font-size: var(--t-13); color: var(--text-3); margin-top: .25rem; }
.kpi-s a { font-weight: 650; }
@media (max-width: 559px) {
  .kpis { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .kpi { flex-direction: column; gap: .5rem; padding: .85rem .9rem; }
  .kpi:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .kpi-ico { width: 32px; height: 32px; border-radius: 9px; }
  .kpi-ico svg { width: 18px; height: 18px; }
  .kpi-r { font-size: var(--t-13); }
  .kpi-v { font-size: 1.3rem; font-stretch: 88%; }
  .kpi-s { font-size: .75rem; }
}
.grade { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1rem; }
.card { background: var(--plate); border-radius: var(--r); box-shadow: var(--sombra-c); padding: 1.1rem 1.2rem 1.2rem; min-width: 0; grid-column: span 12; border: 1px solid var(--line); }
@media (min-width: 900px) { .c-4 { grid-column: span 4; } .c-5 { grid-column: span 5; } .c-6 { grid-column: span 6; } .c-7 { grid-column: span 7; } .c-8 { grid-column: span 8; } }
.card-cab { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.card-t { font-size: var(--t-17); font-weight: 700; letter-spacing: -0.005em; }
.card-link { font-size: var(--t-15); font-weight: 650; text-decoration: none; white-space: nowrap; }
.card-nota { font-size: var(--t-13); color: var(--text-3); margin: .75rem 0 0; }
.vazio-c { color: var(--text-2); font-size: var(--t-15); padding: 1.2rem 0; }
.faixa-alerta { display: flex; align-items: center; gap: .75rem; background: var(--aviso-soft); color: var(--text); border-radius: var(--r); padding: .75rem 1rem; margin-bottom: 1rem; font-size: var(--t-15); }
.faixa-alerta svg { width: 22px; height: 22px; stroke: var(--aviso); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.faixa-alerta span { flex: 1; }
.lista-c { background: none; border-radius: 0; margin: -.25rem -1.2rem -.4rem; box-shadow: none !important; }
.lista-c > li { padding-left: 1.2rem; padding-right: 1.2rem; }

/* ---------- gráficos ---------- */
[id^="g-"] { position: relative; }
.g-grade { stroke: var(--line); stroke-width: 1; }
.g-eixo { fill: var(--text-3); font-size: 12px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.g-cruz { stroke: var(--text-3); stroke-width: 1; stroke-dasharray: 3 3; }
.g-ponto { stroke: var(--plate); stroke-width: 2.5; }
.g-alvo { cursor: crosshair; touch-action: pan-y; }
.g-dica { position: absolute; top: 6px; z-index: 5; background: var(--text); color: var(--plate); border-radius: 10px; padding: .55rem .7rem; font-size: var(--t-13); pointer-events: none; min-width: 150px; box-shadow: 0 6px 20px oklch(20% 0.02 160 / .25); }
.g-dica b { display: block; margin-bottom: .25rem; font-size: var(--t-13); }
.g-dica span { display: flex; align-items: center; gap: .4rem; white-space: nowrap; }
.g-dica span i { width: 8px; height: 8px; border-radius: 2px; }
.g-dica em { font-style: normal; font-weight: 700; margin-left: auto; padding-left: .8rem; font-variant-numeric: tabular-nums; }
.g-barras { display: flex; align-items: flex-end; gap: .6rem; height: 230px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.g-col { flex: 1 0 52px; display: flex; flex-direction: column; align-items: center; height: 100%; gap: .35rem; min-width: 0; }
@media (max-width: 559px) { .g-barras { gap: .35rem; } .g-col { flex-basis: 34px; } }
.g-val { font-size: var(--t-13); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; }
.g-trilho { flex: 1; width: 100%; max-width: 64px; display: flex; align-items: flex-end; }
.g-trilho i { display: block; width: 100%; border-radius: 6px 6px 2px 2px; min-height: 2px; transition: height .4s var(--ease); }
.g-rot { font-size: var(--t-13); color: var(--text-2); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.leg-l { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin: -.25rem 0 .6rem; font-size: var(--t-15); color: var(--text-2); }
.leg-l span { display: inline-flex; align-items: center; gap: .45rem; }
.leg-l i { width: 10px; height: 10px; border-radius: 3px; }
.leg-l b { color: var(--text); font-variant-numeric: tabular-nums; }
.rosca { position: relative; display: inline-grid; place-items: center; }
.rosca-c { position: absolute; text-align: center; }
.rosca-c b { display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.rosca-c small { display: block; font-size: var(--t-13); color: var(--text-3); margin-top: .2rem; }
.rosca-l { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; justify-content: center; }
.leg { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; min-width: 150px; }
.leg li { display: flex; align-items: center; gap: .55rem; font-size: var(--t-15); color: var(--text-2); }
.leg li i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.leg li b { margin-left: auto; color: var(--text); font-variant-numeric: tabular-nums; padding-left: 1rem; }
.hb { display: grid; gap: .65rem; }
.hb-l { display: grid; grid-template-columns: minmax(84px, 9rem) 1fr auto auto; gap: .65rem; align-items: center; font-size: var(--t-15); }
.hb-n { color: var(--text); font-weight: 560; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-t { height: 12px; border-radius: 6px; background: var(--trilho); overflow: hidden; }
.hb-t i { display: block; height: 100%; border-radius: 6px; background: var(--c-desp); }
.hb-p, .hb-v { font-variant-numeric: tabular-nums; font-size: var(--t-13); color: var(--text-2); text-align: right; white-space: nowrap; }
.hb-v { color: var(--text); font-weight: 650; min-width: 4.5rem; }
.hb-l.passou .hb-t i { background: var(--st-ruim); }
.hb-l.passou .hb-p, .hb-l.passou .hb-v { color: var(--bad); font-weight: 700; }
@media (max-width: 559px) { .hb { gap: .8rem; } .hb-l { grid-template-columns: 1fr auto auto; row-gap: .35rem; } .hb-t { grid-column: 1 / -1; grid-row: 2; height: 10px; } }
.meta-l { display: grid; gap: 1rem; }
.meta-r { display: grid; justify-items: center; gap: .5rem; text-align: center; }
@media (min-width: 600px) { .meta-l { grid-template-columns: 1fr auto; align-items: center; } }
.aviso-m { font-size: var(--t-13); color: var(--bad); font-weight: 650; margin: 0; max-width: 14rem; }
.contas { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.contas li { display: grid; grid-template-columns: 1fr auto; gap: .2rem .75rem; align-items: baseline; }
.contas li b { display: block; font-size: var(--t-15); }
.contas li small { font-size: var(--t-13); color: var(--text-3); }
.contas .prop { grid-column: 1 / -1; }
.agenda-c { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.agenda-c li { display: grid; grid-template-columns: 48px 1fr; gap: .75rem; align-items: center; padding: .5rem 0; }
.agenda-c li + li { border-top: 1px solid var(--line); }
.ag-d { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--plate-2); line-height: 1; }
.ag-d b { font-size: 1.15rem; font-weight: 760; font-variant-numeric: tabular-nums; }
.ag-d small { font-size: .7rem; color: var(--text-3); font-weight: 650; }
.ag-t { min-width: 0; }
.ag-t b { display: block; font-size: var(--t-15); font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-t small { display: block; font-size: var(--t-13); color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- seções e listas (telas internas) ---------- */
.secao { margin-top: 1.75rem; }
.secao > h2 { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 0 .15rem .55rem; color: var(--text-2); font-size: var(--t-15); }
.secao > h2 .cont { font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; }
.lista { list-style: none; margin: 0; padding: 0; background: var(--plate); border-radius: var(--r); overflow: hidden; box-shadow: var(--sombra-c); }
.lin { display: grid; grid-template-columns: 1fr auto; gap: .3rem 1rem; align-items: center; padding: .8rem 1rem; min-height: 60px; position: relative; }
.lista > .lin + .lin, .lista > li + li { border-top: 1px solid var(--line); }
.secao > .lin, .secao > a.lin { background: var(--plate); border-radius: var(--r); box-shadow: var(--sombra-c); }
.lin .t { font-weight: 650; font-size: var(--t-17); line-height: 1.25; }
.lin .t a { text-decoration: none; color: inherit; }
.lin .m { font-size: var(--t-15); color: var(--text-2); margin-top: .1rem; line-height: 1.35; }
.lin .m b { color: var(--text); font-weight: 600; }
.lin .dir { text-align: right; display: flex; align-items: center; gap: .6rem; justify-content: flex-end; }
.lin.link { cursor: pointer; transition: background .12s var(--ease); color: inherit; }
.lin.link:hover { background: var(--plate-2); }
.lin.com-anel { grid-template-columns: auto 1fr auto; gap: .3rem .85rem; }
.lin.com-ico { grid-template-columns: auto 1fr auto; gap: .2rem .8rem; }
.ico-l { width: 36px; height: 36px; border-radius: 10px; background: var(--marca-soft); color: var(--marca); display: grid; place-items: center; }
.ico-l svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vazio { padding: 1rem; color: var(--text-2); background: var(--plate); border-radius: var(--r); font-size: var(--t-15); box-shadow: var(--sombra-c); }
.lista .vazio { border-radius: 0; background: none; box-shadow: none; }
.vazio b { color: var(--text); font-weight: 600; }

/* anel de cadência */
.anel { --t: 46px; position: relative; width: var(--t); height: var(--t); display: inline-grid; place-items: center; flex: none; }
.anel svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.anel .trilho { fill: none; stroke: var(--trilho); stroke-width: 3.5; }
.anel .arco { fill: none; stroke: var(--text-3); stroke-width: 3.5; stroke-linecap: round; transition: stroke-dashoffset .6s var(--ease); }
.anel b { font-size: calc(var(--t) * .34); font-weight: 780; color: var(--text); font-variant-numeric: tabular-nums; }
.anel.em_dia .arco { stroke: var(--st-ok); }
.anel.vencendo .arco { stroke: var(--st-aviso); }
.anel.atrasado .arco { stroke: var(--st-ruim); }
.anel.atrasado b { color: var(--bad); }
.anel.sem_registro b { color: var(--text-3); }

/* estado */
.est { font-size: var(--t-13); font-weight: 650; white-space: nowrap; display: inline-flex; align-items: center; gap: .35rem; color: var(--text-2); }
.est::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.est.em_dia { color: var(--ok); }
.est.vencendo { color: var(--aviso); }
.est.atrasado { color: var(--bad); }
.est.sem_registro { color: var(--text-3); }
.est.sem_registro::before { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.lin .est { margin-top: .25rem; }
.dias { font-size: 1.6rem; line-height: 1; font-weight: 780; font-variant-numeric: tabular-nums; min-width: 2ch; text-align: right; }
.dias small { font-size: var(--t-13); color: var(--text-3); display: block; font-weight: 600; margin-top: 2px; }
.atrasado .dias { color: var(--bad); }
.vencendo .dias { color: var(--aviso); }

/* números das telas internas */
.regua { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin: .25rem 0 0; }
.regua > div { min-width: 0; background: var(--plate); border-radius: var(--r); box-shadow: var(--sombra-c); padding: 1rem 1.1rem; }
.regua .k { font-size: 1.7rem; line-height: 1.1; font-weight: 780; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; white-space: nowrap; }
.regua .k.manda { color: var(--marca); }
.regua .k.ruim { color: var(--bad); }
.regua .l { font-size: var(--t-15); color: var(--text-2); margin-top: .3rem; line-height: 1.3; }
.regua.dinheiro .k { font-size: clamp(1.35rem, 4.6vw, 1.7rem); }
.prop { position: relative; height: 8px; background: var(--trilho); border-radius: 4px; overflow: hidden; margin-top: .5rem; }
.prop i { position: absolute; inset: 0 auto 0 0; background: var(--text-3); border-radius: 4px; }
.prop i.ok { background: var(--c-marca); }
.segmentos { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--trilho); margin: .9rem 0 .6rem; gap: 2px; }
.segmentos i { display: block; height: 100%; }
.segmentos .s-em_dia { background: var(--st-ok); }
.segmentos .s-vencendo { background: var(--st-aviso); }
.segmentos .s-atrasado { background: var(--st-ruim); }
.segmentos .s-sem_registro { background: var(--st-neutro); }
.legenda { display: flex; gap: .4rem 1rem; flex-wrap: wrap; }
.legenda .est { margin: 0; }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: 0 1.1rem; border-radius: var(--r-s); border: 1px solid var(--line-2); background: var(--plate); color: var(--text); font-weight: 650; font-size: var(--t-15); cursor: pointer; text-decoration: none; transition: background .12s var(--ease), border-color .12s var(--ease); white-space: nowrap; }
.btn:hover { background: var(--plate-2); }
.btn:active { transform: translateY(1px); }
.btn.prim { background: var(--marca); border-color: var(--marca); color: var(--on-marca); }
.btn.prim:hover { background: var(--marca-2); border-color: var(--marca-2); }
.btn.cheio { width: 100%; }
.btn.peq { min-height: 38px; padding: 0 .8rem; font-size: var(--t-15); border-radius: 10px; }
.btn.quieto { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.quieto:hover { background: var(--plate-2); color: var(--text); }
.btn.perigo { color: var(--bad); }
.btn.perigo:not(.quieto) { background: var(--bad-soft); border-color: transparent; }
.btn.urgente { border-color: var(--text-3); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.acoes { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.1rem; }
.acoes .btn.quieto { padding: 0 .55rem; }
.duo-btn { display: grid; grid-template-columns: 1fr 1fr; max-width: 26rem; }

/* formulários */
.campo { display: block; margin: 0 0 1rem; }
.campo > span { display: block; font-size: var(--t-15); color: var(--text-2); font-weight: 600; margin-bottom: .4rem; }
.campo > span em { font-style: normal; color: var(--text-3); font-weight: 500; }
.campo input, .campo select, .campo textarea, input[type=search] { width: 100%; min-height: 46px; padding: .55rem .85rem; border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--plate); color: var(--text); font-size: var(--t-17); }
.campo input::placeholder, .campo textarea::placeholder, input[type=search]::placeholder { color: var(--text-3); }
.campo input:focus, .campo select:focus, .campo textarea:focus, input[type=search]:focus { outline: none; border-color: var(--marca); box-shadow: 0 0 0 3px var(--marca-soft); }
.campo select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667068' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; background-size: 16px; padding-right: 2.5rem; }
.campo textarea { min-height: 7rem; resize: vertical; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .7rem; }
.duo > * { min-width: 0; }
input[type=search] { margin-bottom: .75rem; }
.opcoes { display: flex; gap: .45rem; flex-wrap: wrap; }
.opcoes:has(> label) { display: inline-flex; flex-wrap: nowrap; gap: 3px; padding: 3px; background: var(--plate-2); border-radius: var(--r-s); max-width: 100%; }
.opcoes label { display: inline-flex; align-items: center; justify-content: center; flex: 1 1 auto; min-height: 40px; padding: 0 .95rem; border-radius: 9px; cursor: pointer; user-select: none; font-weight: 600; color: var(--text-2); font-size: var(--t-15); white-space: nowrap; }
.opcoes input { position: absolute; opacity: 0; width: 0; height: 0; }
.opcoes label:has(input:checked) { background: var(--plate); color: var(--text); box-shadow: 0 1px 3px oklch(20% 0.02 160 / .14); }
:root[data-tema="escuro"] .opcoes label:has(input:checked) { background: var(--plate-3); }
.opcoes label:has(input:focus-visible) { outline: 2px solid var(--marca); outline-offset: 1px; }
.filtro { display: flex; gap: 3px; padding: 3px; background: var(--plate-2); border-radius: var(--r-s); margin-bottom: 1rem; overflow-x: auto; scrollbar-width: none; }
.filtro::-webkit-scrollbar { display: none; }
.filtro button { flex: 1 1 0; min-height: 38px; padding: 0 .5rem; border: 0; border-radius: 9px; background: transparent; color: var(--text-2); font-weight: 600; font-size: var(--t-15); cursor: pointer; }
.filtro button[aria-pressed="true"] { background: var(--plate); color: var(--text); box-shadow: 0 1px 3px oklch(20% 0.02 160 / .14); }
.form-erro { color: var(--bad); background: var(--bad-soft); padding: .75rem .9rem; border-radius: var(--r-s); font-size: var(--t-15); margin-bottom: 1rem; }
.form-aviso { padding: .75rem .9rem; background: var(--marca-soft); border-radius: var(--r-s); font-size: var(--t-15); margin: .5rem 0 1rem; }
.aceite { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; padding: .9rem 1rem; background: var(--plate); border: 1px solid var(--line-2); border-radius: var(--r-s); margin: .5rem 0 .75rem; cursor: pointer; font-size: var(--t-15); line-height: 1.4; }
.aceite input { width: 20px; height: 20px; margin: .1rem 0 0; accent-color: var(--marca); }
.aceite a { font-weight: 650; }

/* presença */
.pres { display: grid; grid-template-columns: 1fr auto; align-items: center; min-height: 56px; padding: .5rem 1rem; cursor: pointer; user-select: none; background: var(--plate); font-size: var(--t-17); font-weight: 600; color: var(--text-2); }
.pres + .pres { border-top: 1px solid var(--line); }
.pres:first-of-type { border-radius: var(--r) var(--r) 0 0; }
.pres:last-of-type { border-radius: 0 0 var(--r) var(--r); }
.pres:only-of-type { border-radius: var(--r); }
.pres input[type=checkbox] { position: absolute; opacity: 0; width: 0; height: 0; }
.pres .marca-p { width: 28px; height: 28px; border: 2px solid var(--line-2); border-radius: 50%; display: grid; place-items: center; flex: none; }
.pres .marca-p svg { width: 15px; height: 15px; stroke: var(--on-marca); fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.pres:has(input[type=checkbox]:checked) { color: var(--text); }
.pres:has(input[type=checkbox]:checked) .marca-p { background: var(--marca); border-color: var(--marca); }
.pres:has(input[type=checkbox]:checked) .marca-p svg { opacity: 1; }
.folha .pres { background: var(--plate-2); }

/* folha */
.folha { position: fixed; inset: 0; z-index: 1400; background: oklch(20% 0.02 160 / .45); display: flex; align-items: flex-end; justify-content: center; }
.folha .caixa { width: 100%; max-width: 36rem; max-height: 92dvh; overflow: auto; background: var(--plate); border-radius: 20px 20px 0 0; padding: .9rem 1.1rem calc(1rem + env(safe-area-inset-bottom)); animation: sobe .28s var(--ease); }
.folha .caixa::before { content: ''; display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--plate-3); margin: 0 auto 1rem; }
@media (min-width: 760px) { .folha { align-items: center; } .folha .caixa { border-radius: 18px; padding: 1.5rem; } .folha .caixa::before { display: none; } }
@keyframes sobe { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.folha .caixa h2 { margin-bottom: 1rem; font-size: var(--t-21); font-weight: 760; }
.folha .caixa .lista { background: var(--plate-2); box-shadow: none; }
.folha .rodape { display: flex; gap: .5rem; justify-content: flex-end; margin-top: 1rem; position: sticky; bottom: calc(-1rem - env(safe-area-inset-bottom)); background: var(--plate); padding: .7rem 0 0; }
@media (prefers-reduced-motion: reduce) { .folha .caixa { animation: none; } .lateral, .anel .arco, .g-trilho i { transition: none; } }

.aviso { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 1500; background: var(--text); color: var(--plate); font-weight: 650; padding: .7rem 1.1rem; border-radius: var(--r-s); font-size: var(--t-15); max-width: calc(100% - 2rem); box-shadow: 0 8px 30px oklch(20% 0.02 160 / .3); }
@media (min-width: 1000px) { .aviso { bottom: 1.5rem; } }
.aviso.erro { background: var(--bad); color: #fff; }

/* entrada */
.entrada { max-width: 25rem; margin: 6vh auto 0; }
.entrada .marca-g { font-weight: 820; font-size: clamp(2.2rem, 1.6rem + 3vw, 2.9rem); line-height: 1; letter-spacing: -0.03em; color: var(--marca); }
.entrada h1 { margin: 1.2rem 0 .35rem; }
.entrada p { color: var(--text-2); }

/* faixa da semana */
.semana { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; background: var(--plate); border-radius: var(--r); box-shadow: var(--sombra-c); padding: .4rem; }
.semana a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: .45rem 0 .5rem; border-radius: 10px; text-decoration: none; color: var(--text); }
.semana a:hover { background: var(--plate-2); }
.semana .sd { font-size: var(--t-13); color: var(--text-3); font-weight: 650; }
.semana .sn { font-size: var(--t-17); font-weight: 720; font-variant-numeric: tabular-nums; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; }
.semana a.hoje .sn { background: var(--marca); color: var(--on-marca); }
.semana .pts { display: flex; gap: 3px; min-height: 6px; justify-content: center; flex-wrap: wrap; max-width: 34px; }
.semana .pt { width: 6px; height: 6px; }

/* árvore */
.arv { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.arv .no { padding: 1rem 1.1rem; background: var(--plate); border-radius: var(--r); box-shadow: var(--sombra-c); }
.arv .no .cab { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .85rem; }
.arv .no .cab .nome { font-weight: 700; display: flex; flex-direction: column; gap: .1rem; }
.arv .no .cab .nome a { text-decoration: none; color: inherit; }
.arv .no .cab .nome .sub { font-size: var(--t-15); color: var(--text-2); font-weight: 500; }
.arv .no .pct { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; color: var(--marca); text-align: right; }
.arv .no .pct small { font-size: var(--t-13); color: var(--text-3); display: block; font-weight: 600; margin-top: 3px; }
.arv .filhos { margin: .6rem 0 0; padding: 0 0 0 1rem; border-left: 2px solid var(--line); display: grid; }
.arv .filhos .no { background: transparent; padding: .8rem 0 .2rem; border-radius: 0; box-shadow: none; }
.arv .filhos .no + .no { border-top: 1px solid var(--line); }
.arv .dir-l { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .7rem; padding: .5rem 0; font-weight: 600; }
.arv .dir-l + .dir-l { border-top: 1px solid var(--line); }
.arv .dir-l a { text-decoration: none; color: inherit; }
.arv .dir-l .m { font-size: var(--t-13); font-weight: 500; display: flex; }

/* lição */
.licao-corpo { font-size: 1.1rem; line-height: 1.62; max-width: 64ch; }
.licao-corpo p { margin-bottom: 1rem; }
.licao-meta { display: grid; gap: .8rem; padding: 1rem 1.1rem; background: var(--plate); border-radius: var(--r); box-shadow: var(--sombra-c); margin: .25rem 0 1.4rem; }
.licao-meta div > span { display: block; font-size: var(--t-13); color: var(--marca); font-weight: 700; margin-bottom: .15rem; }

/* tabela */
.tab { overflow-x: auto; border-radius: var(--r); background: var(--plate); box-shadow: var(--sombra-c); }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
th { text-align: left; font-weight: 650; font-size: var(--t-13); color: var(--text-3); padding: .75rem .8rem .5rem; border-bottom: 1px solid var(--line-2); vertical-align: bottom; }
td { padding: .7rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td a { text-decoration: none; font-weight: 650; }
td.n, th.n { text-align: right; }
.grupo-h { padding: 1rem .15rem .4rem; font-size: var(--t-15); color: var(--text-2); font-weight: 650; }
.chip { font-size: var(--t-13); font-weight: 650; padding: .12rem .45rem; border-radius: var(--r-chip); background: var(--plate-2); color: var(--text-2); white-space: nowrap; }
.chip.ouro { background: var(--marca-soft); color: var(--marca); }
.pendencia { padding: .9rem 1rem; background: var(--aviso-soft); border-radius: var(--r); margin-top: .75rem; font-size: var(--t-15); }
.pendencia.ruim { background: var(--bad-soft); }

/* agenda */
.cal-nav { display: flex; gap: .4rem; align-items: center; margin: -.4rem 0 1rem; }
.cal-nav .btn:first-child, .cal-nav .btn:nth-child(3) { font-size: 1.3rem; min-width: 44px; padding: 0; }
.cal-sem { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-sem span { text-align: center; font-size: var(--t-13); font-weight: 650; color: var(--text-3); padding: .3rem 0; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; background: var(--plate); border-radius: var(--r); box-shadow: var(--sombra-c); padding: .4rem; }
.cal-dia { min-height: 56px; border: 0; border-radius: 10px; background: transparent; color: var(--text); padding: 4px 0; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.cal-dia.fora { cursor: default; }
.cal-dia:not(.fora):hover { background: var(--plate-2); }
.cal-dia .n { font-size: var(--t-15); font-weight: 650; font-variant-numeric: tabular-nums; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; }
.cal-dia:not(.tem) .n { color: var(--text-3); font-weight: 500; }
.cal-dia.hoje .n { color: var(--on-marca); background: var(--marca); }
.cal-dia.sel .n { box-shadow: 0 0 0 2px var(--text); }
.cal-dia.hoje.sel .n { box-shadow: 0 0 0 2px var(--plate), 0 0 0 4px var(--marca); }
.cal-dia .pts { display: flex; gap: 3px; flex-wrap: wrap; justify-content: center; max-width: 80%; min-height: 7px; }
.pt { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); flex: none; }
.pt.celula.aconteceu { background: var(--st-ok); }
.pt.celula.pendente { background: var(--st-aviso); }
.pt.celula.prevista { background: transparent; box-shadow: inset 0 0 0 1.5px var(--text-2); }
.pt.celula.nao_teve { background: transparent; box-shadow: inset 0 0 0 1.5px var(--text-3); }
.pt.encontro.realizado { background: var(--marca); }
.pt.encontro.nao_aconteceu { background: transparent; box-shadow: inset 0 0 0 1.5px var(--bad); }
.pt.proximo { background: transparent; box-shadow: inset 0 0 0 1.5px var(--marca); }
.pt.licao { background: var(--c-desp); border-radius: 2px; }
.pt.aniversario { background: var(--st-ruim); border-radius: 1px; transform: rotate(45deg) scale(.85); }
.pt.culto { background: var(--text-2); border-radius: 2px; }
.pt.evento { background: transparent; box-shadow: inset 0 0 0 1.5px var(--c-desp); border-radius: 2px; }
.pt.mais { width: auto; height: auto; background: none; font-size: .6rem; color: var(--text-2); line-height: 7px; }
.cal-leg { display: flex; flex-wrap: wrap; gap: .45rem 1rem; margin-top: 1rem; font-size: var(--t-13); color: var(--text-2); }
.cal-leg span { display: inline-flex; align-items: center; gap: .4rem; }
@media (min-width: 560px) { .cal-dia { min-height: 68px; } .cal-dia .n { width: 36px; height: 36px; } }

/* igreja */
.hub-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--marca-soft); color: var(--marca); flex: none; }
.hub-ico svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lin.hub { grid-template-columns: auto 1fr auto; gap: .2rem .9rem; }
.dia-h { font-size: var(--t-15); color: var(--text-2); font-weight: 650; padding: 1.1rem .15rem .45rem; }
.dia-h:first-child { padding-top: 0; }
.valor { font-size: var(--t-17); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.valor.entra { color: var(--ok); }
.faltam { margin-top: .7rem; }
.conflito { color: var(--bad); font-weight: 700; }
.sel-dia { box-shadow: inset 3px 0 0 var(--marca); }
table.fluxo { font-size: var(--t-15); }
table.fluxo th, table.fluxo td { padding: .5rem .6rem; white-space: nowrap; }
table.fluxo tr.grupo-h td { padding: 1rem .6rem .3rem; font-size: var(--t-13); font-weight: 700; color: var(--marca); border-bottom: 0; }
table.fluxo tr.total td { font-weight: 700; background: var(--plate-2); }
table.fluxo td:first-child, table.fluxo th:first-child { position: sticky; left: 0; background: var(--plate); z-index: 1; }
table.fluxo tr.total td:first-child { background: var(--plate-2); }
.app:has(table.fluxo) { max-width: 1200px; }

/* documentos legais */
.doc { max-width: 46rem; margin: 2rem auto 4rem; padding: 0 1.1rem; }
.doc h1 { margin-bottom: .4rem; }
.doc h2 { font-size: var(--t-21); margin: 2rem 0 .6rem; }
.doc p, .doc li { font-size: 1.02rem; line-height: 1.65; color: var(--text); max-width: none; }
.doc ul { padding-left: 1.2rem; }
.doc .versao { color: var(--text-3); font-size: var(--t-15); }
.doc .falta { background: var(--aviso-soft); color: var(--text); padding: 0 .3rem; border-radius: 4px; font-weight: 650; }
.doc-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 1.5rem 0; font-weight: 650; }

/* lançamentos: filtro no cabeçalho do cartão, dias como subtítulos */
.card-cab:has(.filtro-c) { align-items: center; flex-wrap: wrap; }
.filtro-c { margin: 0; flex: 0 1 30rem; }
.fin-lista .dia-h { padding: 1rem 0 .35rem; border-top: 1px solid var(--line); margin-top: .4rem; }
.fin-lista .dia-h:first-child { border-top: 0; margin-top: 0; padding-top: .2rem; }
.fin-lista .lista-c { margin: 0 -1.2rem; }

/* escalas: cada data é um cartão */
.dia-escala { background: var(--plate); border-radius: var(--r); box-shadow: var(--sombra-c); border: 1px solid var(--line); padding: 1rem 1.2rem 1.1rem; margin-top: 1rem; }
:root:not([data-tema="escuro"]) .dia-escala { border-color: transparent; }
.dia-escala h2 { margin-top: 0; }
.dia-escala .lista { box-shadow: none; background: none; margin: 0 -1.2rem .6rem; border-radius: 0; }
.dia-escala .lista > li { padding-left: 1.2rem; padding-right: 1.2rem; }
.cab-acoes .cal-nav { margin: 0; }
.cab-acoes .cal-nav .btn.peq { min-height: 44px; min-width: 44px; }
.filtro button { white-space: nowrap; }
@media (max-width: 559px) {
  .cab-acoes { width: 100%; }
  .cab-acoes > .cal-nav { flex-basis: 100%; }
  .cab-acoes > .btn { flex: 1 1 0; padding: 0 .6rem; }
  .filtro button { font-size: var(--t-13); padding: 0 .35rem; }
}

/* assinatura e plataforma */
.selo { display: inline-flex; align-items: center; gap: .4rem; font-size: var(--t-13); font-weight: 700; padding: .2rem .6rem; border-radius: 999px; background: var(--plate-2); color: var(--text-2); white-space: nowrap; }
.selo::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.selo.ok { background: var(--marca-soft); color: var(--ok); }
.selo.aviso, .selo.atencao { background: var(--aviso-soft); color: var(--text); }
.selo.aviso::before { background: var(--st-aviso); }
.selo.ruim { background: var(--bad-soft); color: var(--bad); }
.sit { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; }
.sit-p { font-size: var(--t-21); font-weight: 760; font-variant-numeric: tabular-nums; }
.uso + .uso { margin-top: 1rem; }
.uso-l { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--t-15); margin-bottom: .4rem; }
.uso-l b { font-variant-numeric: tabular-nums; }
.inclui { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.inclui li { display: flex; align-items: center; gap: .6rem; font-size: var(--t-15); }
.inclui svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.inclui .sim svg { stroke: var(--ok); }
.inclui .nao { color: var(--text-3); }
.planos-l { list-style: none; margin: 0; padding: 0; }
.planos-l li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--line); }
.planos-l li:first-child { border-top: 0; padding-top: 0; }
.planos-l li > div:first-child { display: grid; gap: .15rem; }
.planos-d { display: flex; align-items: center; gap: .75rem; white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; }
.planos-d small { font-weight: 500; color: var(--text-3); }
.falta-i { color: var(--text-3); font-weight: 600; }
.ig-l { grid-template-columns: 1fr auto; align-items: center; }
.ig-l .m + .m { margin-top: .3rem; }
.ig-a { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: flex-end; }
@media (max-width: 559px) { .ig-l { grid-template-columns: 1fr; } .ig-a { justify-content: flex-start; } }
.link-c { background: var(--plate-2); border-radius: var(--r-s); padding: .7rem .85rem; font-size: var(--t-15); word-break: break-all; }
.mods { border: 0; padding: 0; margin: .5rem 0 0; display: grid; gap: .1rem; }
.mods legend { font-size: var(--t-15); font-weight: 650; color: var(--text-2); margin-bottom: .3rem; }
.sub-t { font-size: var(--t-15); font-weight: 700; margin: 1.25rem 0 .5rem; }
.passos { margin: 0; padding-left: 1.2rem; display: grid; gap: .6rem; font-size: var(--t-15); line-height: 1.5; max-width: 70ch; }
.faixa-conta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; background: var(--aviso-soft); color: var(--text); border-radius: var(--r); padding: .7rem 1rem; margin: 0 1rem 1rem; font-size: var(--t-15); }
.faixa-conta.ruim { background: var(--bad-soft); }
.faixa-conta a { font-weight: 700; white-space: nowrap; }
@media (min-width: 1000px) { .faixa-conta { margin: 0 2rem 1rem; } }

/* página de planos (venda) */
.vitrine { max-width: 72rem; margin: 0 auto; padding: 1.25rem 1rem 4rem; }
.v-topo { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 2.5rem; }
.v-abre { max-width: 46rem; padding-bottom: 2.5rem; }
.v-abre h1 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); line-height: 1.06; letter-spacing: -0.025em; font-stretch: 88%; font-weight: 800; margin: 0; }
.v-abre p { font-size: var(--t-17); color: var(--text-2); margin: 1rem 0 0; max-width: 38rem; }
.v-planos { display: grid; gap: 1rem; align-items: start; }
@media (min-width: 760px) { .v-planos { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } }
.v-plano { background: var(--plate); border-radius: var(--r); box-shadow: var(--sombra-c); border: 1px solid var(--line); padding: 1.5rem 1.4rem; display: grid; gap: 1rem; }
:root:not([data-tema="escuro"]) .v-plano { border-color: transparent; }
.v-plano.cheio { outline: 2px solid var(--marca); outline-offset: -2px; }
.v-plano h2 { font-size: var(--t-26); margin: 0; }
.v-desc { margin: -.5rem 0 0; color: var(--text-2); font-size: var(--t-15); }
.v-preco { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; font-stretch: 88%; }
.v-preco small { font-size: var(--t-15); font-weight: 500; color: var(--text-3); letter-spacing: 0; font-stretch: 100%; }
.v-preco .falta-i { font-size: var(--t-17); }
.v-rodape { max-width: 46rem; padding-top: 2.5rem; color: var(--text-2); font-size: var(--t-15); line-height: 1.6; }

/* ajuda de senha, primeiros passos, árvore dobrável */
.ajuda-senha { margin-top: 1.25rem; font-size: var(--t-15); color: var(--text-2); }
.ajuda-senha summary { cursor: pointer; font-weight: 650; color: var(--text); }
.ajuda-senha ul { padding-left: 1.1rem; margin: .5rem 0 0; display: grid; gap: .4rem; }
.passos { margin-bottom: 1rem; }
.passos-l { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
@media (min-width: 760px) { .passos-l { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; } }
.passos-l li { display: flex; gap: .7rem; align-items: flex-start; }
.passos-l li > div { display: grid; gap: .1rem; }
.passos-l a { font-weight: 650; }
.passos-l .ok a { color: var(--text-3); text-decoration: line-through; }
.passo-i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; display: grid; place-items: center; margin-top: .1rem; }
.passos-l .ok .passo-i { background: var(--marca); border-color: var(--marca); }
.passo-i svg { width: 14px; height: 14px; fill: none; stroke: var(--on-marca); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.no-d > summary { list-style: none; cursor: pointer; }
.no-d > summary::-webkit-details-marker { display: none; }
.no-d > summary .nome::before { content: '▸'; display: inline-block; width: 1em; color: var(--text-3); transition: transform .15s; }
.no-d[open] > summary .nome::before { transform: rotate(90deg); }

/* revisão: textos longos, alvos, foco, avisos */
.lin .t, .lin .m { overflow-wrap: anywhere; }
.kpi-v { white-space: normal; overflow-wrap: anywhere; }
.barra a { font-size: .78rem; }
.pres:has(input:focus-visible) { outline: 2px solid var(--marca); outline-offset: 2px; border-radius: 10px; }
.aviso.alerta { background: var(--aviso-soft); color: var(--text); border: 1px solid var(--st-aviso); }
.form-aviso { background: var(--aviso-soft); color: var(--text); border-radius: var(--r-s); padding: .6rem .8rem; font-size: var(--t-15); margin: -.4rem 0 .9rem; }
.atalhos .btn.peq { min-height: 36px; }
.cal-dia .n { min-width: 36px; min-height: 36px; }
@media (max-width: 999px) { .topo .menu-btn { display: none; } }
@media print { .lateral, .barra, .topo, .acoes, .filtro, .menu-btn, .faixa-conta, .veu { display: none !important; } .principal { margin: 0 !important; } .app { max-width: none; padding: 0; } .card, .kpi { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; } body { background: #fff; color: #000; } }

.v-cta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.v-bloco { max-width: 60rem; padding: 2.5rem 0 0; }
.v-bloco h2 { font-size: var(--t-26); margin: 0 0 1rem; }
.v-bloco h3 { font-size: var(--t-17); margin: 0 0 .3rem; }
.v-bloco p { color: var(--text-2); font-size: var(--t-15); line-height: 1.55; margin: 0; }
.v-grid { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .v-grid { grid-template-columns: repeat(3, 1fr); } }
.v-passos { margin: 0; padding-left: 1.3rem; display: grid; gap: .7rem; font-size: var(--t-15); color: var(--text-2); line-height: 1.5; max-width: 46rem; }
.v-passos b { color: var(--text); }
.v-bloco details { border-top: 1px solid var(--line); padding: .8rem 0; }
.v-bloco summary { cursor: pointer; font-weight: 650; font-size: var(--t-15); }
.v-bloco details p { margin-top: .5rem; }
.v-planos { padding-top: 2.5rem; }

/* demonstração de resultado: assinaturas e impressão */
.grupo-l td { background: var(--plate-2); }
.ass-l { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2.5rem 2rem; margin: 2.5rem 0 1rem; }
.ass { display: grid; gap: .2rem; text-align: center; font-size: var(--t-15); }
.ass .linha { border-top: 1px solid var(--text); margin-bottom: .4rem; }
.ass span { color: var(--text-3); font-size: var(--t-13); }
@media print { .assinaturas { break-inside: avoid; } .tela-cab .cab-acoes, #f-per { display: none !important; } }

/* ---------- crescimento, Kids e site ---------- */
.filtro a.aba-l { flex: 1 1 0; display: flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 .7rem; border-radius: 9px; color: var(--text-2); font-weight: 600; font-size: var(--t-15); text-decoration: none; white-space: nowrap; }
.filtro a.aba-l[aria-pressed="true"] { background: var(--plate); color: var(--text); box-shadow: 0 1px 3px oklch(20% 0.02 160 / .14); }
.marca-l { display: inline-flex; align-items: center; gap: .55rem; cursor: pointer; }
.marca-l input { width: 20px; height: 20px; min-height: 0; accent-color: var(--gold); flex: none; }
.sel-cab { min-height: 44px; padding: 0 .8rem; border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--plate); color: var(--text); font-weight: 600; font-size: var(--t-15); max-width: 100%; }
.trilha-l { list-style: none; margin: 0; padding: 0 0 0 1.1rem; border-left: 2px solid var(--line-2); }
.trilha-l li { position: relative; padding: .35rem 0 .75rem .6rem; display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: baseline; }
.trilha-l li::before { content: ''; position: absolute; left: -1.55rem; top: .7rem; width: 12px; height: 12px; border-radius: 50%; background: var(--plate); border: 2px solid var(--line-2); }
.trilha-l li.atual::before { background: var(--gold); border-color: var(--gold); }
.trilha-l li span { color: var(--text-2); font-size: var(--t-15); }
details.decidiu { margin-top: 1rem; padding: .8rem 1rem; border: 1px solid var(--line-2); border-radius: var(--r-s); }
details.decidiu summary { cursor: pointer; font-weight: 700; min-height: 32px; display: flex; align-items: center; }
details.decidiu[open] summary { margin-bottom: .4rem; }
.vis-pe .aceite input { width: 20px; height: 20px; }
.codigo-k { font-variant-numeric: tabular-nums; letter-spacing: .08em; color: var(--text); }
.codigo-grande { font-size: clamp(3.5rem, 18vw, 5.5rem); font-weight: 800; letter-spacing: .14em; line-height: 1; margin: .4rem 0 .8rem; font-variant-numeric: tabular-nums; color: var(--text); }
.link-c { word-break: break-all; background: var(--plate-2); padding: .7rem .9rem; border-radius: var(--r-s); font-weight: 600; }
@media (max-width: 640px) { .vis.duo { grid-template-columns: 1fr !important; } }

/* ---------- marca da igreja ---------- */
.lat-logo { width: 40px; height: 40px; object-fit: contain; border-radius: 10px; flex: none; }
.lat-marca.com-logo { flex-direction: column; align-items: flex-start; gap: .45rem; }
.lat-marca.com-logo .lat-logo { width: auto; height: auto; max-width: 160px; max-height: 54px; border-radius: 0; }
:root[data-tema="escuro"] .lat-logo, :root[data-tema="escuro"] .marca-img, :root[data-tema="escuro"] .entrada-logo { background: #fff; padding: 4px 6px; border-radius: 8px; }
.marca { display: inline-flex; align-items: center; gap: .5rem; }
.marca-img { height: 30px; width: auto; max-width: 130px; object-fit: contain; display: block; }
.entrada-logo { display: block; max-height: 72px; max-width: 180px; object-fit: contain; margin-bottom: 1rem; }
.paleta { display: flex; flex-wrap: wrap; gap: .5rem; }
.cor-b { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 .9rem 0 .5rem; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--plate); color: var(--text); font: inherit; font-weight: 650; cursor: pointer; }
.cor-b i { width: 26px; height: 26px; border-radius: 50%; display: inline-block; }
.cor-b.on { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.prev-cor { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; min-height: 52px; }
.logo-prev { background: var(--plate-2); border-radius: var(--r-s); padding: 1rem; display: inline-flex; }
.logo-prev img { max-height: 90px; max-width: 220px; object-fit: contain; }

/* ---------- boas-vindas ---------- */
.sn { display: flex; gap: .5rem; }
.sn label { position: relative; flex: 1; }
.sn input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.sn span { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: var(--r-s); border: 1.5px solid var(--line-2); font-weight: 700; color: var(--text-2); background: var(--plate); cursor: pointer; }
.sn input:checked + span { border-color: var(--marca); background: var(--marca-soft); color: var(--text); box-shadow: inset 0 0 0 1px var(--marca); }
.sn input:focus-visible + span { outline: 3px solid var(--marca); outline-offset: 2px; }
.bv-ped { margin: .5rem 0 0; padding: .6rem .8rem; border-radius: var(--r-s); background: var(--aviso-soft); color: var(--text); font-size: var(--t-15); white-space: pre-wrap; }
.urgente-bv { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; margin-bottom: 1rem; border-radius: var(--r); background: var(--marca); color: var(--on-marca); text-decoration: none; box-shadow: var(--sombra-c); }
.urgente-bv .n { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--on-marca); color: var(--marca); display: grid; place-items: center; font-size: 1.4rem; font-weight: 850; }
.urgente-bv b { display: block; font-size: var(--t-17); }
.urgente-bv small { display: block; opacity: .85; font-size: var(--t-13); margin-top: .15rem; }
.urgente-bv .btn { margin-left: auto; flex: none; background: var(--on-marca); color: var(--marca); border-color: var(--on-marca); }
@media (max-width: 560px) { .urgente-bv { flex-wrap: wrap; } .urgente-bv .btn { margin-left: 0; width: 100%; } }

/* ---------- "em breve" para quem serve só em ministério ---------- */
.barra .breve { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 58px; border: 0; background: none; font: inherit; font-size: .72rem; font-weight: 620; color: var(--text-3); cursor: pointer; padding: 0; opacity: .75; }
.barra .breve .ico-breve { position: relative; display: block; width: 24px; height: 24px; }
.barra .breve .ico-breve > svg:first-child { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.barra .breve .cadeado { position: absolute; right: -7px; bottom: -4px; width: 14px; height: 14px; padding: 2px; border-radius: 50%; background: var(--plate); stroke: var(--text-2); fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; box-sizing: content-box; }
@media (min-width: 760px) { .barra .breve { font-size: .78rem; } }
.lat-breve .breve { display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 42px; padding: 0 .75rem; border: 0; border-radius: 10px; background: none; font: inherit; font-weight: 600; color: var(--text-3); opacity: .55; cursor: pointer; text-align: left; }
.lat-breve .breve svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.lat-breve .breve small { margin-left: auto; font-size: .7rem; font-weight: 700; padding: .1rem .5rem; border-radius: 99px; background: var(--marca-soft); color: var(--marca); }
.cel-prev { display: inline-flex; flex-direction: column; align-items: center; gap: .4rem; padding: 1rem 1.4rem; border-radius: var(--r); background: var(--plate-2); margin-bottom: 1rem; }
.cel-ico { width: 64px; height: 64px; border-radius: 15px; overflow: hidden; background: var(--marca); color: var(--on-marca); display: grid; place-items: center; box-shadow: 0 4px 12px oklch(20% 0.02 160 / .18); }
.cel-ico img { width: 100%; height: 100%; object-fit: cover; }
.cel-ico svg { width: 34px; height: 34px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cel-nome { font-size: .8rem; font-weight: 600; color: var(--text); }
