:root {
  --bg: #f7f2e9;
  --bg-2: #efe6d6;
  --surface: #fffdf8;
  --surface-2: #faf5ec;
  --ink: #1d2338;
  --ink-2: #4a4f66;
  --ink-3: #80849a;
  --line: #e6dcc9;
  --accent: #c8862a;
  --accent-2: #e8a94a;
  --accent-ink: #8a5713;
  --accent-soft: #f6e6c8;
  --green: #4f7a52;
  --green-soft: #e1eddc;
  --red: #b2463c;
  --red-soft: #f6dfdb;
  --shadow: 0 1px 2px rgba(29, 35, 56, .06), 0 8px 24px rgba(29, 35, 56, .06);
  --shadow-lg: 0 20px 50px rgba(29, 35, 56, .16);
  --radius: 18px;
  --radius-sm: 12px;
  --font-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
  --font-read: 'Lora', Georgia, serif;
  --read-size: 19px;
  --nav-h: 68px;
  --hl-amber: #fbe3a6;
  --hl-green: #cfe8c6;
  --hl-blue: #cde0f5;
  --hl-rose: #f7d3d6;
  --hl-violet: #e2d6f3;
  color-scheme: light;
}

[data-theme='dark'] {
  --bg: #11141f;
  --bg-2: #171b29;
  --surface: #1a1f2f;
  --surface-2: #20263a;
  --ink: #f1ebdf;
  --ink-2: #c4bfb3;
  --ink-3: #8f8c86;
  --line: #2c3349;
  --accent: #e5a647;
  --accent-2: #f1bd66;
  --accent-ink: #f1bd66;
  --accent-soft: #3a2e1a;
  --green: #86b98a;
  --green-soft: #1f3324;
  --red: #e0837a;
  --red-soft: #3c2224;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, .5);
  --hl-amber: #5a4718;
  --hl-green: #2a4a2c;
  --hl-blue: #23395a;
  --hl-rose: #57272e;
  --hl-violet: #3d2f58;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--accent-ink); }
button { font: inherit; color: inherit; }
img, svg { display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; margin: 0; line-height: 1.15; }
h1 { font-size: clamp(28px, 6vw, 38px); }
h2 { font-size: clamp(22px, 4.5vw, 28px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.center { text-align: center; }
.hidden { display: none !important; }
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--accent-ink); }
.serif { font-family: var(--font-display); }

/* ---------- Layout ---------- */
.shell { min-height: 100dvh; }
.main { padding: 20px 18px calc(var(--nav-h) + 32px + env(safe-area-inset-bottom)); max-width: 760px; margin: 0 auto; }
.main.wide { max-width: 1100px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 21px; font-weight: 600; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand .logo { width: 32px; height: 32px; }
.stack { display: grid; gap: 16px; }
.stack-lg { display: grid; gap: 28px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grid-2 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 8px 0 12px; }
.section-title h3 { font-size: 19px; }

/* nav inferior (mobile) */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  text-decoration: none; color: var(--ink-3); font-size: 11.5px; font-weight: 500;
}
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a.active { color: var(--accent-ink); }
.sidebar { display: none; }

@media (min-width: 960px) {
  .tabbar { display: none; }
  .sidebar {
    display: flex; flex-direction: column; gap: 4px;
    position: fixed; top: 0; left: 0; bottom: 0; width: 248px; padding: 26px 16px;
    border-right: 1px solid var(--line); background: var(--surface-2);
  }
  .sidebar .brand { padding: 0 6px 22px; font-size: 19px; }
  .sidebar a.nav {
    display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px;
    text-decoration: none; color: var(--ink-2); font-weight: 500;
  }
  .sidebar a.nav svg { width: 21px; height: 21px; }
  .sidebar a.nav:hover { background: var(--bg-2); }
  .sidebar a.nav.active { background: var(--accent-soft); color: var(--accent-ink); }
  .sidebar .spacer { flex: 1; }
  .shell.has-nav .main { margin-left: max(248px, calc((100vw - 760px) / 2)); padding-bottom: 60px; padding-top: 36px; }
  .shell.has-nav .main.wide { margin-left: 280px; }
}

/* ---------- Componentes ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.card.flat { box-shadow: none; }
.card.pad-lg { padding: 28px; }
.card-link { text-decoration: none; color: inherit; display: block; transition: transform .15s ease, box-shadow .15s ease; }
.card-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 13px 22px; font-weight: 600; font-size: 15.5px;
  background: var(--ink); color: var(--bg); cursor: pointer; text-decoration: none;
  transition: transform .1s ease, opacity .15s ease, background .15s ease;
}
[data-theme='dark'] .btn { background: var(--accent); color: #1a1408; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.accent { background: var(--accent); color: #fff; }
[data-theme='dark'] .btn.accent { color: #1a1408; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.soft { background: var(--accent-soft); color: var(--accent-ink); }
.btn.danger { background: var(--red-soft); color: var(--red); }
.btn.small { padding: 8px 14px; font-size: 14px; }
.btn.block { width: 100%; }
.btn svg { width: 18px; height: 18px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  display: inline-grid; place-items: center; cursor: pointer; color: var(--ink-2); flex: none;
}
.icon-btn svg { width: 20px; height: 20px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent-ink); font-weight: 600; cursor: pointer; text-decoration: none; }

.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: 13px; color: var(--ink-3); }
.input, .textarea, .select {
  width: 100%; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: var(--radius-sm); padding: 12px 14px; font: inherit; font-size: 16px; outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.textarea { min-height: 110px; resize: vertical; font-family: var(--font-read); line-height: 1.6; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  font-size: 13px; font-weight: 600; background: var(--bg-2); color: var(--ink-2); border: 0;
}
.chip.accent { background: var(--accent-soft); color: var(--accent-ink); }
.chip.green { background: var(--green-soft); color: var(--green); }
.chip.red { background: var(--red-soft); color: var(--red); }
button.chip { cursor: pointer; }
button.chip.on { background: var(--ink); color: var(--bg); }

.tabs { display: flex; gap: 6px; background: var(--bg-2); padding: 4px; border-radius: 999px; width: fit-content; }
.tabs button { border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink-3); cursor: pointer; }
.tabs button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

.progress { height: 8px; background: var(--bg-2); border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 99px; transition: width .5s ease; }

.empty { text-align: center; padding: 40px 16px; color: var(--ink-3); }
.empty .big { font-size: 42px; margin-bottom: 8px; }

.alert { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14.5px; }
.alert.error { background: var(--red-soft); color: var(--red); }
.alert.ok { background: var(--green-soft); color: var(--green); }
.alert.info { background: var(--accent-soft); color: var(--accent-ink); }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 20px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-weight: 500; font-size: 14.5px;
  opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 100; max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.modal-bg { position: fixed; inset: 0; background: rgba(10, 12, 20, .45); z-index: 90; display: grid; place-items: end center; animation: fade .2s ease; }
.modal {
  background: var(--surface); width: 100%; max-width: 560px; border-radius: 24px 24px 0 0; padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
  max-height: 92dvh; overflow: auto; animation: up .25s ease;
}
@media (min-width: 640px) { .modal-bg { place-items: center; } .modal { border-radius: 24px; } }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }

.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; margin: 60px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Auth ---------- */
.auth { min-height: 100dvh; display: grid; place-items: center; padding: 24px 18px; background:
  radial-gradient(ellipse at 50% -10%, color-mix(in srgb, var(--accent-2) 35%, transparent), transparent 60%), var(--bg); }
.auth .card { width: 100%; max-width: 420px; padding: 32px 26px; }
.auth .brand { justify-content: center; margin-bottom: 22px; font-size: 26px; }
.auth .brand .logo { width: 40px; height: 40px; }
.auth h1 { font-size: 26px; text-align: center; margin-bottom: 6px; }
.auth .sub { text-align: center; color: var(--ink-3); margin-bottom: 22px; font-size: 15px; }
.auth form { display: grid; gap: 14px; }
.auth .foot { margin-top: 20px; text-align: center; font-size: 14.5px; display: grid; gap: 8px; }

/* ---------- Hoje ---------- */
.hello h1 { font-size: clamp(26px, 6vw, 34px); }
.verse-card {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: 24px;
  background: linear-gradient(135deg, #1d2338 0%, #2c3557 100%); color: #f6efe2; box-shadow: var(--shadow-lg);
}
.verse-card::after {
  content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 169, 74, .55), transparent 65%);
}
.verse-card .eyebrow { color: var(--accent-2); }
.verse-card blockquote { margin: 12px 0 10px; font-family: var(--font-display); font-size: 21px; line-height: 1.4; position: relative; z-index: 1; }
.verse-card cite { font-style: normal; font-size: 14px; opacity: .8; }

.hero-dev { display: grid; gap: 14px; }
.hero-dev .day { font-family: var(--font-display); font-size: 15px; color: var(--accent-ink); font-weight: 600; }
.hero-dev h2 { font-size: clamp(24px, 5.5vw, 30px); }

.streak { display: flex; align-items: center; gap: 14px; }
.streak .flame { width: 54px; height: 54px; border-radius: 16px; background: var(--accent-soft); display: grid; place-items: center; font-size: 28px; flex: none; }
.streak .num { font-family: var(--font-display); font-size: 28px; font-weight: 600; line-height: 1; }
.week-dots { display: flex; gap: 6px; margin-top: 12px; }
.week-dots span { flex: 1; display: grid; gap: 4px; justify-items: center; font-size: 11px; color: var(--ink-3); }
.week-dots i { width: 100%; max-width: 34px; aspect-ratio: 1; border-radius: 10px; background: var(--bg-2); display: grid; place-items: center; font-style: normal; font-size: 14px; }
.week-dots i.on { background: var(--accent); color: #fff; }
.week-dots i.today { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Devocional (passo a passo) ---------- */
.flow { max-width: 680px; margin: 0 auto; }
.flow-head { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 12px 0 10px; margin: -20px 0 10px; }
.steps { display: flex; gap: 6px; margin-top: 10px; }
.steps span { flex: 1; height: 5px; border-radius: 9px; background: var(--line); transition: background .3s ease; }
.steps span.on { background: var(--accent); }
.step-label { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--accent-ink); margin-bottom: 8px; }
.step { animation: stepIn .35s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } }
.reading { font-family: var(--font-read); font-size: var(--read-size); line-height: 1.75; color: var(--ink); }
.reading p { margin-bottom: 1.05em; }
.reading strong { color: var(--accent-ink); font-weight: 600; }
.scripture { font-family: var(--font-read); font-size: var(--read-size); line-height: 1.85; }
.scripture sup { font-family: var(--font-ui); font-size: .6em; color: var(--accent-ink); font-weight: 700; margin-right: 3px; vertical-align: .55em; }
.scripture .key { background: linear-gradient(transparent 55%, color-mix(in srgb, var(--accent-2) 45%, transparent) 55%); }
.flow-nav { display: flex; gap: 10px; margin-top: 28px; position: sticky; bottom: calc(var(--nav-h) + 10px + env(safe-area-inset-bottom)); }
.flow-nav .btn { flex: 1; box-shadow: var(--shadow-lg); }
@media (min-width: 960px) { .flow-nav { bottom: 16px; } }
.question { font-family: var(--font-display); font-size: 18.5px; line-height: 1.35; margin-bottom: 8px; }
.prayer-box { font-family: var(--font-read); font-style: italic; font-size: calc(var(--read-size) - 1px); line-height: 1.75; padding: 20px 22px; border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.breath { width: 180px; height: 180px; margin: 20px auto; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-2) 55%, transparent), transparent 70%); font-family: var(--font-display); font-size: 19px; }
.breath.run { animation: breathe 10s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(.78); } 50% { transform: scale(1.08); } }
.mood { display: flex; gap: 8px; flex-wrap: wrap; }
.mood button { border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 14px; cursor: pointer; font-size: 14.5px; }
.mood button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }

.celebrate { text-align: center; padding: 30px 10px; }
.celebrate .glow { width: 120px; height: 120px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; font-size: 56px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-2) 60%, transparent), transparent 70%); animation: pop .6s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 120; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* ---------- Listas ---------- */
.list { display: grid; gap: 10px; }
.item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: inherit; }
.item:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.item .num { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; background: var(--bg-2); color: var(--ink-2); flex: none; font-size: 15px; }
.item .num.done { background: var(--green-soft); color: var(--green); }
.item .num.next { background: var(--accent); color: #fff; }
.item .body { flex: 1; min-width: 0; }
.item .title { font-weight: 600; }
.item .meta { font-size: 13.5px; color: var(--ink-3); }
.week-title { font-family: var(--font-display); font-size: 17px; margin: 18px 0 8px; color: var(--ink-2); }

.check { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; cursor: pointer; background: var(--surface); flex: none; transition: all .15s ease; }
.check.on { background: var(--green); border-color: var(--green); color: #fff; }
.check svg { width: 16px; height: 16px; }

.entry { padding: 18px; }
.entry .date { font-size: 13px; color: var(--ink-3); font-weight: 600; text-transform: capitalize; }
.entry .title { font-family: var(--font-display); font-size: 19px; margin: 4px 0 6px; }
.entry .excerpt { color: var(--ink-2); font-family: var(--font-read); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.soap-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); margin-top: 16px; }
.soap-text { font-family: var(--font-read); font-size: 17px; line-height: 1.7; white-space: pre-wrap; }

.prayer { padding: 16px 18px; display: grid; gap: 8px; }
.prayer .title { font-weight: 600; font-size: 16.5px; }
.prayer.answered { border-color: color-mix(in srgb, var(--green) 40%, var(--line)); }

/* ---------- Bíblia ---------- */
.bible-head { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.bible-head .picker { flex: 1; text-align: left; font-family: var(--font-display); font-size: 22px; font-weight: 600; background: none; border: 0; cursor: pointer; padding: 4px 0; display: flex; align-items: center; gap: 6px; }
.verse { cursor: pointer; border-radius: 4px; padding: 1px 0; transition: background .15s ease; }
.verse.sel { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.verse.hl-amber { background: var(--hl-amber); } .verse.hl-green { background: var(--hl-green); } .verse.hl-blue { background: var(--hl-blue); }
.verse.hl-rose { background: var(--hl-rose); } .verse.hl-violet { background: var(--hl-violet); }
.verse .note-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-left: 3px; vertical-align: super; }
.selbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + 14px + env(safe-area-inset-bottom)); z-index: 50;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); border-radius: 999px; padding: 8px 10px; display: flex; gap: 6px; align-items: center; }
@media (min-width: 960px) { .selbar { bottom: 24px; } }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.book-grid button, .ch-grid button { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 10px 8px; cursor: pointer; font-size: 14px; text-align: center; }
.book-grid button:hover, .ch-grid button:hover { border-color: var(--accent); }
.ch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; }
.chapter-nav { display: flex; justify-content: space-between; margin-top: 28px; gap: 10px; }

/* ---------- Progresso ---------- */
.heat { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); gap: 4px; overflow-x: auto; padding-bottom: 4px; }
.heat i { width: 14px; height: 14px; border-radius: 4px; background: var(--bg-2); }
.heat i.on { background: var(--accent); }
.heat i.future { background: transparent; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.stat { padding: 16px; }
.stat .n { font-family: var(--font-display); font-size: 30px; font-weight: 600; line-height: 1.1; }
.stat .l { font-size: 13.5px; color: var(--ink-3); }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.badge { text-align: center; padding: 18px 12px; }
.badge .ic { font-size: 34px; }
.badge .t { font-weight: 700; margin-top: 6px; font-size: 14.5px; }
.badge .d { font-size: 12.5px; color: var(--ink-3); }
.badge.off { opacity: .45; filter: grayscale(1); }

/* ---------- Admin ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); background: var(--surface-2); }
.table tr:last-child td { border-bottom: 0; }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
pre.code { background: var(--surface-2); padding: 14px; border-radius: 10px; overflow: auto; font-size: 12.5px; max-height: 60vh; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 90px; }
.bars span { flex: 1; background: var(--accent); border-radius: 3px 3px 0 0; min-height: 2px; }

.paywall { text-align: center; max-width: 480px; margin: 40px auto; }
.paywall .glow { font-size: 54px; margin-bottom: 12px; }
.item > svg { width: 20px; height: 20px; flex: none; color: var(--ink-3); }
.item .num svg { width: 20px; height: 20px; }
.bible-head .picker svg { width: 20px; height: 20px; flex: none; color: var(--ink-3); }
.hero-dev .chip { justify-self: start; }
.stack > *, .stack-lg > *, .grid-2 > * { min-width: 0; }

/* ---------- Marcações livres ---------- */
.scripture .verse.key, .scripture > span.key { background: color-mix(in srgb, var(--accent-2) 20%, transparent); border-radius: 4px; padding: 2px 0; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.verse.sel { text-decoration: underline dotted var(--accent) 2px; text-underline-offset: 6px; }
.verse.hl-underline, mark.m-underline { background: none; text-decoration: underline solid var(--accent) 2px; text-underline-offset: 6px; text-decoration-skip-ink: none; }
mark.m { color: inherit; border-radius: 3px; padding: 1px 0; -webkit-box-decoration-break: clone; box-decoration-break: clone; cursor: pointer; }
mark.m-amber { background: var(--hl-amber); } mark.m-green { background: var(--hl-green); } mark.m-blue { background: var(--hl-blue); }
mark.m-rose { background: var(--hl-rose); } mark.m-violet { background: var(--hl-violet); }
mark.has-note::after { content: ''; display: inline-block; width: .62em; height: .62em; margin-left: 3px; vertical-align: super; background: var(--accent-ink); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.markbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + 84px + env(safe-area-inset-bottom)); z-index: 60;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); border-radius: 999px; padding: 8px 10px; display: flex; gap: 8px; align-items: center; animation: up .2s ease; }
@media (min-width: 960px) { .markbar { bottom: 90px; } }
.mk-u { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-family: var(--font-display); font-weight: 700; text-decoration: underline 2px var(--accent); text-underline-offset: 3px; color: var(--ink); }
.swatch.on, .mk-u.on { box-shadow: 0 0 0 2px var(--accent); }
.grifos { background: var(--surface-2); }
.grifo-list { display: grid; gap: 8px; }
.grifo { text-align: left; border: 0; border-radius: 12px; padding: 10px 12px; cursor: pointer; display: grid; gap: 4px; font-family: var(--font-read); font-size: 16px; line-height: 1.5; color: var(--ink); transition: transform .1s ease; }
.grifo:active { transform: scale(.98); }
.grifo small { font-family: var(--font-ui); font-size: 12px; color: var(--ink-3); }
.grifo em { font-family: var(--font-ui); font-size: 13.5px; font-style: normal; color: var(--ink-2); }
.grifo.g-amber { background: var(--hl-amber); } .grifo.g-green { background: var(--hl-green); } .grifo.g-blue { background: var(--hl-blue); }
.grifo.g-rose { background: var(--hl-rose); } .grifo.g-violet { background: var(--hl-violet); }
.grifo.g-underline { background: var(--surface); border-left: 4px solid var(--accent); }
a.chip { text-decoration: none; }
a.chip:hover { filter: brightness(.97); }

/* ---------- Boas-vindas ---------- */
.auth .card.welcome { max-width: 520px; }
.welcome h2 { font-size: 25px; margin-bottom: 6px; }
.welcome .sub { color: var(--ink-3); margin: 0 0 18px; }
.opts { display: grid; gap: 10px; }
.opt { display: flex; align-items: center; gap: 14px; text-align: left; border: 1.5px solid var(--line); background: var(--surface); border-radius: 14px; padding: 13px 16px; cursor: pointer; transition: border-color .15s, background .15s; }
.opt .oi { font-size: 24px; width: 32px; text-align: center; flex: none; }
.opt b { display: block; font-size: 16px; }
.opt small { color: var(--ink-3); font-size: 13.5px; }
.opt.on { border-color: var(--accent); background: var(--accent-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.wday { border: 1.5px solid var(--line); background: var(--surface); border-radius: 12px; padding: 12px 0; font-weight: 700; cursor: pointer; font-size: 14px; }
.wday.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
[data-theme='dark'] .wday.on { background: var(--accent); color: #1a1408; border-color: var(--accent); }
/* ---------- Datas especiais ---------- */
.card.special { background: linear-gradient(135deg, var(--surface), var(--accent-soft)); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.card.special.worship { background: linear-gradient(135deg, var(--surface), var(--green-soft)); border-color: color-mix(in srgb, var(--green) 35%, var(--line)); }
.sp-ic { font-size: 30px; width: 48px; height: 48px; border-radius: 14px; background: var(--surface); display: grid; place-items: center; flex: none; box-shadow: var(--shadow); }
.upcoming { gap: 6px; margin-top: -10px; }
.book-grid button.deutero { border-color: color-mix(in srgb, #8a2b3a 45%, var(--line)); background: color-mix(in srgb, #8a2b3a 7%, var(--surface)); }

/* ---------- Orações e terço ---------- */
.prayer-item { padding: 0; }
.prayer-item summary { cursor: pointer; padding: 14px 18px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; }
.prayer-item summary::after { content: '+'; color: var(--accent-ink); font-size: 20px; line-height: 1; }
.prayer-item[open] summary::after { content: '–'; }
.pr-text { padding: 0 18px 16px; font-family: var(--font-read); font-size: calc(var(--read-size) - 1px); line-height: 1.75; }
.rosary .card.prayer-item { margin-top: 10px; }
.rosary-cta { background: linear-gradient(135deg, var(--surface), color-mix(in srgb, #8a2b3a 10%, var(--surface))); }
.beads-box { margin: 18px 0 6px; text-align: center; }
.bead-btn { width: 170px; height: 170px; border-radius: 50%; border: 0; cursor: pointer; display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, #fff6e2, var(--accent-2) 60%, var(--accent)); color: #2a1a05; box-shadow: var(--shadow-lg); transition: transform .08s ease; -webkit-user-select: none; user-select: none; }
.bead-btn:active { transform: scale(.95); }
.bead-btn .n { font-family: var(--font-display); font-size: 54px; font-weight: 600; line-height: 1; }
.bead-btn .l { font-size: 13px; font-weight: 600; margin-top: 4px; }
.beads { display: flex; justify-content: center; gap: 8px; margin: 18px 0 8px; flex-wrap: wrap; }
.beads i { width: 18px; height: 18px; border-radius: 50%; background: var(--bg-2); border: 2px solid var(--line); transition: all .2s ease; }
.beads i.on { background: var(--accent); border-color: var(--accent); transform: scale(1.1); }
.card-link .row > svg { width: 20px; height: 20px; flex: none; color: var(--ink-3); }

/* ---------- Recursos novos ---------- */
.vc-share { background: rgba(255,255,255,.12); color: #f6efe2; position: relative; z-index: 1; }
.img-prev { margin-top: 12px; display: grid; place-items: center; }
.img-prev img { width: 100%; max-width: 260px; aspect-ratio: 9 / 16; border-radius: 16px; box-shadow: var(--shadow-lg); background: var(--bg-2); }
.card.special.advent { background: linear-gradient(135deg, var(--surface), color-mix(in srgb, #7a1f2b 12%, var(--surface))); border-color: color-mix(in srgb, #7a1f2b 35%, var(--line)); }
.gcode { font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: .18em; }

/* ------------------------------ Ícones (no lugar de emojis) ------------------------------ */
svg.ic { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -.2em; flex: none; }

.btn svg.ic { width: 18px; height: 18px; }
.chip svg { width: 14px; height: 14px; flex: none; }
.alert svg.ic { margin-right: 4px; }
.empty .big svg { width: 44px; height: 44px; margin: 0 auto 4px; color: var(--accent-ink); }
.glow svg { width: 54px; height: 54px; color: var(--accent-ink); }
.paywall .glow { display: grid; place-items: center; }
.hero-ic { width: 72px; height: 72px; margin: 0 auto; border-radius: 22px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; }
.hero-ic svg { width: 36px; height: 36px; }
.streak .flame svg { width: 28px; height: 28px; color: var(--accent-ink); }
.sp-ic svg { width: 26px; height: 26px; color: var(--accent-ink); }
.opt .oi { display: grid; place-items: center; height: 32px; }
.opt .oi svg { width: 24px; height: 24px; color: var(--accent-ink); }
.badge .ic { display: grid; place-items: center; height: 40px; }
.badge .ic svg { width: 34px; height: 34px; color: var(--accent-ink); }
.week-dots i svg { width: 16px; height: 16px; }
.sidebar a.nav svg.ic { width: 21px; height: 21px; }

/* ------------------------- Anotações manuscritas na margem ------------------------- */
.hand { font-family: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive; font-weight: 600; font-size: 1.12em; line-height: 1.25; color: var(--accent-ink); }
.hand-input { font-family: 'Caveat', 'Segoe Print', cursive; font-size: 22px; line-height: 1.35; color: var(--accent-ink); }
.vnote { display: block; cursor: pointer; margin: 2px 0 14px 18px; padding: 2px 0 2px 12px; border-left: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); font-size: calc(var(--read-size) * 1.05); }
.vnote .vn-arrow { display: none; }
.vnote:hover .hand, .vnote:focus-visible .hand { text-decoration: underline dotted; text-underline-offset: 4px; }
.vnote:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
@media (min-width: 900px) {
  .scripture.with-notes { padding-right: 210px; }
  .vnote { float: right; clear: right; width: 190px; margin: 4px -210px 10px 0; padding: 0; border: 0; font-size: 20px; position: relative; }
  .vnote .vn-arrow { display: block; position: absolute; left: -46px; top: 2px; width: 38px; height: 19px; color: color-mix(in srgb, var(--accent-ink) 70%, transparent); }
  .vnote .hand { display: block; }
}
@media (min-width: 1320px) {
  .scripture.with-notes { padding-right: 0; }
  .vnote { width: 220px; margin-right: -260px; }
}

/* ------------------------- Barra de ações do versículo ------------------------- */
.selbar { display: grid; gap: 6px; border-radius: 18px; padding: 10px 12px 8px; max-width: calc(100vw - 20px); width: max-content; animation: up .2s ease; }
.sb-head { display: flex; align-items: center; gap: 8px; padding: 0 2px; }
.sb-head .icon-btn.sm { width: 30px; height: 30px; margin-left: auto; border: 0; }
.sb-head .icon-btn.sm svg { width: 16px; height: 16px; }
.sb-row { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.sb-act { display: grid; justify-items: center; gap: 3px; background: none; border: 0; padding: 6px 9px; border-radius: 10px; cursor: pointer; color: var(--ink); font: inherit; font-size: 12px; font-weight: 500; }
.sb-act svg { width: 22px; height: 22px; color: var(--ink-2); }
.sb-act:hover { background: var(--bg-2); }
.sb-sep { width: 1px; height: 32px; background: var(--line); margin: 0 6px; }


/* ------------------------- Original (interlinear hebraico/grego) ------------------------- */
.orig-toggle.on { background: var(--accent); border-color: var(--accent); color: #fff; }
[data-theme='dark'] .orig-toggle.on { color: #1a1408; }
.orig-hint { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent-ink); font-size: 14px; margin: -4px 0 16px; }
.orig-hint svg { width: 20px; height: 20px; flex: none; }
.orig-hint span { flex: 1; }
.scripture.orig-mode .verse { cursor: zoom-in; }
.scripture.orig-mode .verse:hover { background: color-mix(in srgb, var(--accent-2) 16%, transparent); }
.il-pt { font-size: 16.5px; line-height: 1.6; color: var(--ink-2); margin: 0 0 14px; }
.il-sub { font-size: 11px; color: var(--ink-3); margin: 6px 0 8px; }
.il-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.il-w { display: grid; justify-items: center; gap: 2px; min-width: 64px; padding: 8px 10px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; font: inherit; color: var(--ink); transition: border-color .15s, background .15s; }
.il-w:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.il-w.on { border-color: var(--accent); background: var(--accent-soft); }
.il-o { font-family: 'SBL Hebrew', 'Ezra SIL', 'Noto Serif Hebrew', 'Noto Serif', 'Times New Roman', serif; font-size: 22px; line-height: 1.3; }
.il-grid.heb .il-o { font-size: 25px; }
.il-tr { font-size: 12px; font-style: italic; color: var(--ink-3); direction: ltr; }
.il-g { font-size: 12.5px; font-weight: 600; color: var(--accent-ink); direction: ltr; max-width: 140px; text-align: center; line-height: 1.25; }
#ilDet { margin-top: 6px; }
.wm { border-left: 3px solid var(--line); padding: 2px 0 2px 14px; margin-top: 16px; }
.wm-main { border-left-color: var(--accent-ink); }
.wm .eyebrow { font-size: 11.5px; color: var(--ink-3); }
.wm-sense { font-size: 26px; margin: 6px 0 4px; }
.wm p { margin: 6px 0 0; color: var(--ink-2); line-height: 1.55; }
.wm-orig { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; margin-top: 6px; }
.wm-word { font-size: 30px; line-height: 1.2; color: var(--ink); font-family: 'SBL Hebrew', 'Ezra SIL', 'Noto Serif Hebrew', 'Noto Serif', 'Times New Roman', serif; }
.il-parts { margin: 8px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 14.5px; }
.il-parts span[lang] { font-family: 'Noto Serif Hebrew', 'Times New Roman', serif; font-size: 18px; }

/* Diagramação: títulos em linhas equilibradas e parágrafos sem palavra sozinha na última linha */
h1, h2, h3, h4 { text-wrap: balance; }
p, li { text-wrap: pretty; }

/* Compartilhe */
.share-hero { text-align: center; display: grid; gap: 12px; justify-items: center; }
.share-hero h2 { font-size: 26px; }
.share-hero p { margin: 0; max-width: 460px; }
.share-church { text-align: center; margin: 34px 0 10px; }
.share-church .eyebrow { margin-bottom: 8px; }
.share-church h2 { font-size: clamp(24px, 3.4vw, 30px); margin-bottom: 10px; }
.share-church > p { max-width: 520px; margin: 0 auto 18px; }
.share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; text-align: left; }
.share-grid .card { margin: 0; }
.share-grid h3 { font-size: 18px; margin: 10px 0 4px; }
.share-grid p { margin: 0; }
.sh-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; }
.sh-ic svg { width: 22px; height: 22px; }
@media (max-width: 720px) { .share-grid { grid-template-columns: 1fr; } }

/* Meu ano com Deus (retrospectiva em telas no estilo stories) */
.retro { position: fixed; inset: 0; z-index: 200; color: #f5efe2; overflow: hidden;
  background: radial-gradient(ellipse at 85% 0%, rgba(232, 169, 74, .28), transparent 55%), linear-gradient(170deg, #2c3557, #161b2e); }
.retro::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 44px 44px; }
.retro .spinner { margin-top: 45vh; border-color: rgba(255,255,255,.2); border-top-color: #e8a94a; }
.r-bars { position: absolute; top: calc(14px + env(safe-area-inset-top)); left: 14px; right: 14px; display: flex; gap: 5px; z-index: 3; }
.r-bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.22); overflow: hidden; }
.r-bars i b { display: block; height: 100%; width: 0; background: #f1bd66; transition: width .35s ease; }
.r-bars i.on b { width: 100%; }
.r-close { position: absolute; top: calc(30px + env(safe-area-inset-top)); right: 14px; z-index: 4; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #f5efe2; display: grid; place-items: center; cursor: pointer; }
.r-close svg { width: 20px; height: 20px; }
.r-zone { position: absolute; top: 80px; bottom: 0; width: 50%; border: 0; background: none; cursor: pointer; z-index: 2; -webkit-tap-highlight-color: transparent; }
.r-zone.left { left: 0; width: 32%; } .r-zone.right { right: 0; width: 68%; }
.r-slide { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 90px 30px 60px; max-width: 560px; margin: 0 auto; z-index: 1; }
.r-slide.in > * { animation: rIn .55s cubic-bezier(.2,1,.3,1) both; }
.r-slide.in > *:nth-child(2) { animation-delay: .08s; } .r-slide.in > *:nth-child(3) { animation-delay: .16s; } .r-slide.in > *:nth-child(4) { animation-delay: .24s; } .r-slide.in > *:nth-child(5) { animation-delay: .32s; }
@keyframes rIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.r-eye { display: flex; align-items: center; gap: 12px; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: #f1bd66; margin-bottom: 18px; }
.r-eye::before { content: ''; width: 24px; height: 3px; border-radius: 3px; background: #e8a94a; }
.r-year { font-family: var(--font-display); font-size: clamp(96px, 30vw, 150px); font-weight: 600; line-height: .95; }
.r-num { font-family: var(--font-display); font-size: clamp(84px, 26vw, 130px); font-weight: 600; line-height: 1; }
.r-label { font-size: 18px; color: rgba(245,239,226,.8); margin-top: 6px; }
.r-title { font-family: var(--font-display); font-size: 52px; font-weight: 600; line-height: 1.1; margin: 6px 0 14px; color: #f1bd66; }
.r-persona { font-family: var(--font-display); font-size: clamp(48px, 14vw, 68px); font-weight: 600; line-height: 1.05; margin-bottom: 18px;
  background: linear-gradient(transparent 70%, rgba(232,169,74,.5) 70%, rgba(232,169,74,.5) 92%, transparent 92%); width: fit-content; }
.r-word { font-family: 'Noto Serif Hebrew', 'Noto Serif', var(--font-display), serif; font-size: 88px; line-height: 1.2; color: #f1bd66; }
.r-tr { font-style: italic; font-size: 22px; color: rgba(245,239,226,.8); }
.r-lead { font-size: 18px; line-height: 1.55; color: rgba(245,239,226,.88); margin: 20px 0 0; text-wrap: pretty; }
.r-lead b { color: #fff; }
.r-tap { margin-top: 40px; font-size: 13px; color: rgba(245,239,226,.55); letter-spacing: .08em; text-transform: uppercase; }
.r-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; margin-top: 18px; }
.r-stat { border-top: 1px solid rgba(255,255,255,.18); padding-top: 12px; }
.r-stat b { display: block; font-family: var(--font-display); font-size: 48px; font-weight: 600; line-height: 1.05; }
.r-stat span { font-size: 14px; color: rgba(245,239,226,.75); }
.r-actions { display: grid; gap: 10px; margin-top: 30px; position: relative; z-index: 3; }
.r-actions .btn { width: 100%; }
.r-ghost { color: #f5efe2 !important; border-color: rgba(255,255,255,.3) !important; }
.retro-cta { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
