/* ============================================================ */
/* MODO ESTUDO BÍBLICO COM DICIONÁRIO STRONG (HEBRAICO & GREGO) */
/* ============================================================ */
#cv-btn-biblia-modo-estudo.active {
  background: var(--ipb-verde-principal, #005930) !important;
  color: #ffffff !important;
  box-shadow: 0 0 10px rgba(0, 89, 48, 0.4);
}

.cv-palavra-estudo {
  display: inline-block;
  cursor: pointer;
  padding: 1px 3px;
  margin: 0 1px;
  border-radius: 4px;
  border-bottom: 1.5px dotted var(--ipb-verde-principal, #005930);
  transition: background-color 0.15s ease, color 0.15s ease;
  user-select: text;
}

.cv-palavra-estudo:active,
.cv-palavra-estudo:hover {
  background-color: rgba(0, 89, 48, 0.16);
  color: var(--ipb-verde-principal, #005930);
}

body.cv-dark-mode .cv-palavra-estudo {
  border-bottom-color: #86efac;
}

body.cv-dark-mode .cv-palavra-estudo:active,
body.cv-dark-mode .cv-palavra-estudo:hover {
  background-color: rgba(134, 239, 172, 0.20);
  color: #86efac;
}

.cv-strong-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  z-index: 9998;
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.cv-strong-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.cv-strong-bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 600px;
  margin: 0 auto;
  max-height: 88vh;
  background: #ffffff;
  color: #0f172a;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.40);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-top: 1px solid #cbd5e1;
}

.cv-strong-bottom-sheet.show {
  transform: translateY(0);
}

/* ── TEMA ESCURO (DATA-TEMA="ESCURO") ── */
html[data-tema="escuro"] .cv-strong-bottom-sheet,
body[data-tema="escuro"] .cv-strong-bottom-sheet {
  background: #0f172a !important;
  color: #f8fafc !important;
  border-top: 1px solid #334155 !important;
  box-shadow: 0 -8px 36px rgba(0, 0, 0, 0.70);
}

.cv-strong-sheet-drag-handle {
  width: 44px;
  height: 5px;
  background: rgba(100, 116, 139, 0.40);
  border-radius: 4px;
  margin: 10px auto 4px auto;
  cursor: grab;
}

.cv-strong-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 10px 16px;
  border-bottom: 1px solid #e2e8f0;
}

html[data-tema="escuro"] .cv-strong-sheet-header {
  border-bottom-color: #334155;
}

.cv-strong-header-titles {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cv-strong-sheet-badge {
  background: var(--ipb-verde-principal, #005930);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

html[data-tema="escuro"] .cv-strong-sheet-badge {
  background: #059669;
}

.cv-strong-sheet-idioma {
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
}

html[data-tema="escuro"] .cv-strong-sheet-idioma {
  color: #94a3b8;
}

.cv-strong-btn-fechar {
  background: transparent;
  border: none;
  font-size: 1.15rem;
  font-weight: 800;
  color: #64748b;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}

html[data-tema="escuro"] .cv-strong-btn-fechar {
  color: #94a3b8;
}

.cv-strong-sheet-body {
  padding: 10px 14px 36px 14px;
  max-height: calc(88vh - 54px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── CARTÃO SUPERIOR COMPACTO (ORIGINAL & PRONÚNCIA ENXUTOS) ── */
.cv-strong-original-card {
  background: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  border-left: 4px solid var(--ipb-verde-principal, #005930) !important;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

html[data-tema="escuro"] .cv-strong-original-card,
[data-tema="escuro"] .cv-strong-original-card {
  background: rgba(16, 185, 129, 0.10) !important;
  border: 1px solid rgba(16, 185, 129, 0.32) !important;
  border-left-color: #34d399 !important;
}

.cv-strong-header-lado-a-lado {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.cv-strong-col-original {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.cv-strong-col-pronuncia {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 3px;
}

.cv-strong-termo-pt {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ipb-verde-principal, #005930) !important;
  letter-spacing: 0.2px;
  text-transform: capitalize;
}

html[data-tema="escuro"] .cv-strong-termo-pt,
[data-tema="escuro"] .cv-strong-termo-pt {
  color: #34d399 !important;
}

.cv-strong-original-txt {
  font-size: 1.85rem;
  line-height: 1.1;
  font-weight: 700;
  color: #005930 !important;
  font-family: "SBL Greek", "Cardo", "Gentium Plus", "Times New Roman", "SBL Hebrew", "Ezra SIL", serif;
}

html[data-tema="escuro"] .cv-strong-original-txt,
[data-tema="escuro"] .cv-strong-original-txt {
  color: #86efac !important;
}

.cv-strong-translit {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

html[data-tema="escuro"] .cv-strong-translit,
[data-tema="escuro"] .cv-strong-translit {
  color: #f8fafc;
}

.cv-strong-pronuncia-txt {
  font-size: 0.80rem;
  color: #64748b;
  font-style: normal;
}

html[data-tema="escuro"] .cv-strong-pronuncia-txt,
[data-tema="escuro"] .cv-strong-pronuncia-txt {
  color: #94a3b8;
}

.cv-strong-sinonimos-box {
  margin-top: 10px;
  padding: 10px 12px;
  background: rgba(14, 165, 233, 0.06);
  border: 1px solid rgba(14, 165, 233, 0.22);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

html[data-tema="escuro"] .cv-strong-sinonimos-box,
[data-tema="escuro"] .cv-strong-sinonimos-box {
  background: rgba(14, 165, 233, 0.10);
  border-color: rgba(56, 189, 248, 0.25);
}

.cv-strong-sinonimos-titulo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 800;
  color: #0284c7;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

html[data-tema="escuro"] .cv-strong-sinonimos-titulo,
[data-tema="escuro"] .cv-strong-sinonimos-titulo {
  color: #38bdf8;
}

.cv-strong-sinonimos-lista {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.cv-strong-sinonimo-pill {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(14, 165, 233, 0.12);
  color: #0369a1;
  border: 1px solid rgba(14, 165, 233, 0.25);
  text-transform: capitalize;
}

html[data-tema="escuro"] .cv-strong-sinonimo-pill,
[data-tema="escuro"] .cv-strong-sinonimo-pill {
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.3);
}

.cv-strong-raiz-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 7px;
  border-radius: 5px;
  background: rgba(0, 89, 48, 0.08);
  border: 1px solid rgba(0, 89, 48, 0.25);
  color: var(--ipb-verde-principal, #005930);
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.cv-strong-raiz-link:hover {
  background: var(--ipb-verde-principal, #005930);
  color: #ffffff;
}

html[data-tema="escuro"] .cv-strong-raiz-link,
[data-tema="escuro"] .cv-strong-raiz-link {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
}

.cv-strong-raiz-primitiva {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--ipb-verde-principal, #005930);
  font-weight: 700;
}

html[data-tema="escuro"] .cv-strong-raiz-primitiva,
[data-tema="escuro"] .cv-strong-raiz-primitiva {
  color: #86efac;
}

.cv-strong-badge-pill {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(0, 89, 48, 0.06);
  border: 1px solid rgba(0, 89, 48, 0.18);
  font-weight: 700;
  font-size: 0.78rem;
}

html[data-tema="escuro"] .cv-strong-badge-pill,
[data-tema="escuro"] .cv-strong-badge-pill {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(52, 211, 153, 0.28);
  color: #34d399;
}

.cv-strong-correlatos-box {
  margin-top: 10px;
  margin-bottom: 12px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--cv-border, #e2e8f0);
  border-radius: 8px;
}

html[data-tema="escuro"] .cv-strong-correlatos-box,
[data-tema="escuro"] .cv-strong-correlatos-box {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.10);
}

.cv-strong-correlatos-titulo {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--cv-text-muted, #64748b);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.cv-strong-correlatos-desc {
  font-size: 0.74rem;
  color: var(--cv-text-muted, #64748b);
  margin: 0 0 8px 0;
}

html[data-tema="escuro"] .cv-strong-translit {
  color: #f8fafc !important;
}

.cv-strong-pronuncia {
  font-size: 0.72rem;
  color: #475569 !important;
  font-style: italic;
  line-height: 1.1;
}

html[data-tema="escuro"] .cv-strong-pronuncia {
  color: #94a3b8 !important;
}

/* ── FICHA MORFOLÓGICA EM GRID COMPACTO ── */
.cv-strong-ficha-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.cv-strong-ficha-item {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px;
  padding: 5px 8px;
}

html[data-tema="escuro"] .cv-strong-ficha-item {
  background: #1e293b !important;
  border: 1px solid #334155 !important;
}

.cv-strong-ficha-label {
  font-size: 0.60rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #64748b !important;
  margin-bottom: 1px;
  letter-spacing: 0.3px;
}

html[data-tema="escuro"] .cv-strong-ficha-label {
  color: #94a3b8 !important;
}

.cv-strong-ficha-val {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f172a !important;
  line-height: 1.25;
}

html[data-tema="escuro"] .cv-strong-ficha-val {
  color: #f8fafc !important;
}

/* ── LINKS DIRETOS PARA PALAVRA DE ORIGEM NA RAIZ ETIMOLÓGICA (STRONG) ── */
.cv-strong-raiz-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 700;
  font-size: 0.76rem;
  line-height: 1.35;
  text-decoration: none;
  vertical-align: middle;
  margin: 0 2px;
  color: #0f766e;
  background: rgba(13, 148, 136, 0.12);
  border: 1px solid rgba(13, 148, 136, 0.3);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

.cv-strong-raiz-link:hover,
.cv-strong-raiz-link:active,
.cv-strong-raiz-link:focus-visible {
  background: rgba(13, 148, 136, 0.22);
  border-color: #0d9488;
  transform: translateY(-1px);
}

[data-tema="escuro"] .cv-strong-raiz-link,
[data-theme="dark"] .cv-strong-raiz-link,
html[data-tema="escuro"] .cv-strong-raiz-link,
body[data-tema="escuro"] .cv-strong-raiz-link {
  color: #34d399 !important;
  background: rgba(16, 185, 129, 0.15) !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
}

[data-tema="escuro"] .cv-strong-raiz-link:hover,
[data-tema="escuro"] .cv-strong-raiz-link:active,
[data-tema="escuro"] .cv-strong-raiz-link:focus-visible,
[data-theme="dark"] .cv-strong-raiz-link:hover,
[data-theme="dark"] .cv-strong-raiz-link:active,
[data-theme="dark"] .cv-strong-raiz-link:focus-visible,
html[data-tema="escuro"] .cv-strong-raiz-link:hover,
html[data-tema="escuro"] .cv-strong-raiz-link:active,
html[data-tema="escuro"] .cv-strong-raiz-link:focus-visible,
body[data-tema="escuro"] .cv-strong-raiz-link:hover,
body[data-tema="escuro"] .cv-strong-raiz-link:active,
body[data-tema="escuro"] .cv-strong-raiz-link:focus-visible {
  background: rgba(16, 185, 129, 0.28) !important;
  border-color: #10b981 !important;
  transform: translateY(-1px);
}

/* ── DEFINIÇÃO & SIGNIFICADO EXEGÉTICO EXPANDIDO ── */
.cv-strong-definicao-box {
  background: #f8fafc !important;
  border-left: 4px solid #005930 !important;
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  font-size: 0.90rem;
  line-height: 1.62;
  color: #0f172a !important;
  border-top: 1px solid #e2e8f0 !important;
  border-right: 1px solid #e2e8f0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

html[data-tema="escuro"] .cv-strong-definicao-box {
  background: #1e293b !important;
  border-left-color: #10b981 !important;
  border-top-color: #334155 !important;
  border-right-color: #334155 !important;
  border-bottom-color: #334155 !important;
  color: #f8fafc !important;
}

.cv-strong-definicao-titulo {
  font-weight: 800;
  font-size: 0.74rem;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: #005930 !important;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.4px;
}

html[data-tema="escuro"] .cv-strong-definicao-titulo {
  color: #86efac !important;
}

.cv-strong-definicao-texto {
  font-size: 0.89rem;
  line-height: 1.64;
  color: #0f172a !important;
}

html[data-tema="escuro"] .cv-strong-definicao-texto {
  color: #f8fafc !important;
}

/* ── OCORRÊNCIAS & EXEMPLOS DE USO EM OUTROS TEXTOS ── */
.cv-strong-exemplos-box {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

html[data-tema="escuro"] .cv-strong-exemplos-box {
  background: #1e293b !important;
  border: 1px solid #334155 !important;
}

.cv-strong-exemplos-titulo {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #005930 !important;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

html[data-tema="escuro"] .cv-strong-exemplos-titulo {
  color: #86efac !important;
}

.cv-strong-exemplo-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #cbd5e1 !important;
}

.cv-strong-exemplo-item:last-child {
  border-bottom: none !important;
  padding-bottom: 0;
}

html[data-tema="escuro"] .cv-strong-exemplo-item {
  border-bottom: 1px dashed #334155 !important;
}

.cv-strong-exemplo-ref {
  font-size: 0.76rem;
  font-weight: 800;
  color: #0369a1 !important;
  display: flex;
  align-items: center;
  gap: 4px;
}

html[data-tema="escuro"] .cv-strong-exemplo-ref {
  color: #38bdf8 !important;
}

.cv-strong-exemplo-trecho {
  font-size: 0.83rem;
  line-height: 1.48;
  color: #1e293b !important;
  padding-left: 2px;
}

html[data-tema="escuro"] .cv-strong-exemplo-trecho {
  color: #cbd5e1 !important;
}

.cv-strong-palavra-destaque {
  font-weight: 800;
  color: #005930;
  text-decoration: underline;
  text-decoration-color: #86efac;
}

html[data-tema="escuro"] .cv-strong-palavra-destaque {
  color: #86efac;
  text-decoration-color: #059669;
}

/* ========================================================== */
/* CARD QUEM SOMOS & NOSSAS CRENÇAS (IPB / FÉ REFORMADA)      */
/* ========================================================== */
.crencas-card {
  border-top: 3.5px solid var(--ipb-verde-principal, #005930) !important;
  background: var(--surface, #ffffff);
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

html[data-tema="escuro"] .crencas-card {
  border-top-color: #10b981 !important;
  background: #111827;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.crencas-intro-box {
  background: rgba(0, 89, 48, 0.05);
  border: 1px solid rgba(0, 89, 48, 0.15);
  border-radius: 8px;
  padding: 10px 14px;
}

html[data-tema="escuro"] .crencas-intro-box {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.22);
}

.crencas-pilares-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.crencas-pilar-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

html[data-tema="escuro"] .crencas-pilar-item {
  background: #1e293b;
  border-color: #334155;
}

.crencas-pilar-header {
  display: flex;
  align-items: center;
  gap: 6px;
}

.crencas-pilar-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.crencas-pilar-titulo {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--ipb-verde-principal, #005930);
  letter-spacing: 0.2px;
}

html[data-tema="escuro"] .crencas-pilar-titulo {
  color: #86efac;
}

.crencas-pilar-desc {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted, #475569);
}

html[data-tema="escuro"] .crencas-pilar-desc {
  color: #94a3b8;
}

.crencas-solas-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

html[data-tema="escuro"] .crencas-solas-box {
  background: #1e293b;
  border-color: #334155;
}

.crencas-solas-titulo {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ipb-verde-principal, #005930);
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.3px;
}

html[data-tema="escuro"] .crencas-solas-titulo {
  color: #86efac;
}

.crencas-solas-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.crencas-sola-chip {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  outline: none;
}

.crencas-sola-chip:hover {
  transform: translateY(-1px);
  border-color: var(--ipb-verde-principal, #005930);
  box-shadow: 0 3px 8px rgba(0, 89, 48, 0.12);
}

.crencas-sola-chip:active {
  transform: scale(0.96);
}

.crencas-sola-chip.destaque {
  background: rgba(0, 89, 48, 0.08);
  border-color: var(--ipb-verde-principal, #005930);
  color: var(--ipb-verde-principal, #005930);
  font-weight: 800;
}

html[data-tema="escuro"] .crencas-sola-chip {
  background: #0f172a;
  border-color: #334155;
  color: #f8fafc;
}

html[data-tema="escuro"] .crencas-sola-chip:hover {
  border-color: #86efac;
  box-shadow: 0 3px 8px rgba(16, 185, 129, 0.2);
}

html[data-tema="escuro"] .crencas-sola-chip.destaque {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  color: #86efac;
}

/* ==========================================================================
   COMENTÁRIO BÍBLICO EXPOSITIVO (MATTHEW HENRY & JOÃO CALVINO)
   ========================================================================== */
.cv-comentario-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.cv-comentario-backdrop.show {
  opacity: 1;
}

.cv-comentario-bottom-sheet {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  background: #ffffff;
  color: #0f172a;
  border-radius: 0;
  box-shadow: none;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  padding-top: env(safe-area-inset-top, 0px);
}

.cv-comentario-bottom-sheet.show {
  transform: translateY(0);
}

html[data-tema="escuro"] .cv-comentario-bottom-sheet,
body[data-tema="escuro"] .cv-comentario-bottom-sheet {
  background: #0f172a !important;
  color: #f8fafc !important;
  box-shadow: none;
}

.cv-comentario-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}

html[data-tema="escuro"] .cv-comentario-sheet-header {
  border-bottom-color: #334155;
}

.cv-comentario-header-titles {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
  flex: 1;
}

.cv-comentario-sheet-badge {
  background: var(--ipb-verde-principal, #005930);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.3px;
  white-space: nowrap;
  flex-shrink: 0;
}

html[data-tema="escuro"] .cv-comentario-sheet-badge {
  background: #059669;
}

.cv-comentario-pericope-inline {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-tema="escuro"] .cv-comentario-pericope-inline {
  color: #f8fafc;
}

.cv-comentario-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.cv-btn-comentario-icon,
.cv-comentario-btn-fechar {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: rgba(100, 116, 139, 0.08);
  color: #334155;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  padding: 0;
  transition: all 0.18s ease;
}

.cv-comentario-btn-fechar {
  border-color: transparent;
  background: transparent;
  color: #64748b;
  font-size: 1.15rem;
}

.cv-btn-comentario-icon:hover,
.cv-comentario-btn-fechar:hover {
  background: rgba(100, 116, 139, 0.18);
}

html[data-tema="escuro"] .cv-btn-comentario-icon {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}

html[data-tema="escuro"] .cv-btn-comentario-icon:hover,
html[data-tema="escuro"] .cv-comentario-btn-fechar:hover {
  background: #334155;
}

html[data-tema="escuro"] .cv-comentario-btn-fechar {
  color: #94a3b8;
}

.cv-btn-comentario-icon.active,
.cv-btn-comentario-icon.copiado {
  background: rgba(5, 150, 105, 0.16);
  border-color: #059669;
  color: #059669;
}

html[data-tema="escuro"] .cv-btn-comentario-icon.active,
html[data-tema="escuro"] .cv-btn-comentario-icon.copiado {
  background: rgba(16, 185, 129, 0.22);
  border-color: #10b981;
  color: #86efac;
}

/* ── BARRA COMPACTA DE REPRODUÇÃO DE ÁUDIO TTS (PADRÃO CANÔNICO UNIFICADO) ── */
.cv-comentario-audio-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Alinhamento prioritário à direita para facilitar destros */
  gap: 8px;
  padding: 6px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin: 6px 0 10px 0;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

html[data-tema="escuro"] .cv-comentario-audio-bar,
[data-tema="escuro"] .cv-comentario-audio-bar {
  background: #0f172a;
  border-color: #1e293b;
}

.cv-comentario-audio-controles {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Agrupamento de botões à direita */
  gap: 8px;
  margin-left: auto; /* Empurra os controles para a direita para acesso com o polegar */
  flex: 0 0 auto;
}

.cv-btn-audio-ctrl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 36px;
  padding: 0 8px;
  border-radius: 9px;
  border: 1.5px solid #cbd5e1;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.18s ease;
  line-height: 1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  position: relative;
  user-select: none;
}

.cv-btn-audio-ctrl span,
.cv-btn-audio-ctrl .cv-tts-svg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.cv-btn-audio-ctrl:hover:not(:disabled) {
  background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 100%);
  transform: translateY(-1px);
}

.cv-btn-audio-ctrl:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), inset 0 1px 2px rgba(0, 0, 0, 0.08);
}

.cv-btn-audio-ctrl:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* 1. Play (Reproduzir / Continuar) — Pílula Verde Esmeralda Viva */
.cv-btn-audio-ctrl.cv-btn-audio-play {
  min-width: 48px !important;
  height: 36px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  border-color: #16a34a !important;
  background: linear-gradient(180deg, #22c55e 0%, #15803d 100%) !important;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}
.cv-btn-audio-ctrl.cv-btn-audio-play:hover:not(:disabled) {
  color: #ffffff !important;
  border-color: #15803d !important;
  background: linear-gradient(180deg, #16a34a 0%, #166534 100%) !important;
  box-shadow: 0 3px 10px rgba(22, 163, 74, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

/* 2. Pause (Pausar / Lendo em execução) — Pílula Âmbar Dourada Vibrante */
.cv-btn-audio-ctrl.cv-btn-audio-pause,
.cv-btn-audio-ctrl.is-playing {
  min-width: 48px !important;
  height: 36px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  border-color: #d97706 !important;
  background: linear-gradient(180deg, #f59e0b 0%, #b45309 100%) !important;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}
.cv-btn-audio-ctrl.cv-btn-audio-pause:hover:not(:disabled),
.cv-btn-audio-ctrl.is-playing:hover:not(:disabled) {
  color: #ffffff !important;
  border-color: #b45309 !important;
  background: linear-gradient(180deg, #d97706 0%, #92400e 100%) !important;
  box-shadow: 0 3px 10px rgba(217, 119, 6, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

/* Estado de Pausa Ativa (pronto para voltar a tocar -> Pílula Verde Play) */
.cv-btn-audio-ctrl.is-paused:not(.is-playing):not(.cv-btn-audio-pause) {
  min-width: 48px !important;
  height: 36px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  border-color: #16a34a !important;
  background: linear-gradient(180deg, #22c55e 0%, #15803d 100%) !important;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}

/* 3. Stop (Parar) — Quadrado Chanfrado Vermelho Rubi / Coral */
.cv-btn-audio-ctrl.cv-btn-audio-stop {
  width: 36px !important;
  min-width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  border-radius: 8px !important;
  color: #dc2626 !important;
  border-color: rgba(239, 68, 68, 0.65) !important;
  background: linear-gradient(180deg, #fef2f2 0%, #fee2e2 100%) !important;
  box-shadow: 0 2px 5px rgba(220, 38, 38, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}
.cv-btn-audio-ctrl.cv-btn-audio-stop:hover:not(:disabled) {
  color: #b91c1c !important;
  border-color: rgba(220, 38, 38, 0.85) !important;
  background: linear-gradient(180deg, #fee2e2 0%, #fecaca 100%) !important;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}

/* 4. Navegação (Retroceder / Avançar Progresso) — Círculos Azuis Celestes */
.cv-btn-audio-nav {
  width: 36px !important;
  min-width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  justify-content: center;
  color: #0284c7 !important;
  border-color: rgba(2, 132, 199, 0.55) !important;
  background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%) !important;
  box-shadow: 0 2px 5px rgba(2, 132, 199, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}
.cv-btn-audio-nav:hover:not(:disabled) {
  color: #0369a1 !important;
  border-color: rgba(2, 132, 199, 0.8) !important;
  background: linear-gradient(180deg, #e0f2fe 0%, #bae6fd 100%) !important;
  box-shadow: 0 2px 7px rgba(2, 132, 199, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}

/* 5. Velocidade (1.0x / 2.0x) — Pílula Compacta Violeta / Esmeralda */
.cv-btn-audio-ctrl.cv-btn-audio-vel-ciclo,
.cv-btn-audio-vel-ciclo {
  min-width: 48px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px !important;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #f5f3ff 0%, #ede9fe 100%) !important;
  color: #5b21b6 !important;
  border: 1.5px solid rgba(139, 92, 246, 0.45) !important;
  box-shadow: 0 2px 5px rgba(139, 92, 246, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}
.cv-btn-audio-ctrl.cv-btn-audio-vel-ciclo:hover:not(:disabled),
.cv-btn-audio-vel-ciclo:hover:not(:disabled) {
  border-color: #7c3aed !important;
  color: #4c1d95 !important;
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}

/* ── TEMA ESCURO / OBSIDIANA ── */
[data-tema="escuro"] .cv-btn-audio-ctrl,
html[data-tema="escuro"] .cv-btn-audio-ctrl,
[data-theme="dark"] .cv-btn-audio-ctrl,
html[data-theme="dark"] .cv-btn-audio-ctrl {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border-color: rgba(148, 163, 184, 0.22);
  color: #f8fafc;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -1px 0 rgba(0, 0, 0, 0.4);
}

[data-tema="escuro"] .cv-btn-audio-ctrl:hover:not(:disabled),
html[data-tema="escuro"] .cv-btn-audio-ctrl:hover:not(:disabled),
[data-theme="dark"] .cv-btn-audio-ctrl:hover:not(:disabled),
html[data-theme="dark"] .cv-btn-audio-ctrl:hover:not(:disabled) {
  background: linear-gradient(180deg, #283548 0%, #131d2c 100%);
}

[data-tema="escuro"] .cv-btn-audio-ctrl:active:not(:disabled),
html[data-tema="escuro"] .cv-btn-audio-ctrl:active:not(:disabled),
[data-theme="dark"] .cv-btn-audio-ctrl:active:not(:disabled),
html[data-theme="dark"] .cv-btn-audio-ctrl:active:not(:disabled) {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.6), inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* 1. Play no tema escuro: Pílula Verde Esmeralda Brilhante */
[data-tema="escuro"] .cv-btn-audio-ctrl.cv-btn-audio-play,
html[data-tema="escuro"] .cv-btn-audio-ctrl.cv-btn-audio-play,
[data-theme="dark"] .cv-btn-audio-ctrl.cv-btn-audio-play,
html[data-theme="dark"] .cv-btn-audio-ctrl.cv-btn-audio-play {
  color: #ffffff !important;
  border-color: #4ade80 !important;
  background: linear-gradient(180deg, #16a34a 0%, #14532d 100%) !important;
  box-shadow: 0 2px 10px rgba(34, 197, 94, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}
[data-tema="escuro"] .cv-btn-audio-ctrl.cv-btn-audio-play:hover:not(:disabled),
html[data-tema="escuro"] .cv-btn-audio-ctrl.cv-btn-audio-play:hover:not(:disabled),
[data-theme="dark"] .cv-btn-audio-ctrl.cv-btn-audio-play:hover:not(:disabled),
html[data-theme="dark"] .cv-btn-audio-ctrl.cv-btn-audio-play:hover:not(:disabled) {
  color: #ffffff !important;
  border-color: #86efac !important;
  background: linear-gradient(180deg, #22c55e 0%, #15803d 100%) !important;
  box-shadow: 0 3px 12px rgba(34, 197, 94, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

/* 2. Pause no tema escuro: Pílula Âmbar / Laranja Dourado */
[data-tema="escuro"] .cv-btn-audio-ctrl.cv-btn-audio-pause,
html[data-tema="escuro"] .cv-btn-audio-ctrl.cv-btn-audio-pause,
[data-theme="dark"] .cv-btn-audio-ctrl.cv-btn-audio-pause,
html[data-theme="dark"] .cv-btn-audio-ctrl.cv-btn-audio-pause,
[data-tema="escuro"] .cv-btn-audio-ctrl.is-playing,
html[data-tema="escuro"] .cv-btn-audio-ctrl.is-playing,
[data-theme="dark"] .cv-btn-audio-ctrl.is-playing,
html[data-theme="dark"] .cv-btn-audio-ctrl.is-playing {
  color: #ffffff !important;
  border-color: #fbbf24 !important;
  background: linear-gradient(180deg, #d97706 0%, #92400e 100%) !important;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}
[data-tema="escuro"] .cv-btn-audio-ctrl.cv-btn-audio-pause:hover:not(:disabled),
html[data-tema="escuro"] .cv-btn-audio-ctrl.cv-btn-audio-pause:hover:not(:disabled),
[data-theme="dark"] .cv-btn-audio-ctrl.cv-btn-audio-pause:hover:not(:disabled),
html[data-theme="dark"] .cv-btn-audio-ctrl.cv-btn-audio-pause:hover:not(:disabled),
[data-tema="escuro"] .cv-btn-audio-ctrl.is-playing:hover:not(:disabled),
html[data-tema="escuro"] .cv-btn-audio-ctrl.is-playing:hover:not(:disabled),
[data-theme="dark"] .cv-btn-audio-ctrl.is-playing:hover:not(:disabled),
html[data-theme="dark"] .cv-btn-audio-ctrl.is-playing:hover:not(:disabled) {
  color: #ffffff !important;
  border-color: #fde047 !important;
  background: linear-gradient(180deg, #f59e0b 0%, #b45309 100%) !important;
  box-shadow: 0 3px 12px rgba(245, 158, 11, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

/* Estado de Pausa no tema escuro (Pílula Verde Play) */
[data-tema="escuro"] .cv-btn-audio-ctrl.is-paused:not(.is-playing):not(.cv-btn-audio-pause),
html[data-tema="escuro"] .cv-btn-audio-ctrl.is-paused:not(.is-playing):not(.cv-btn-audio-pause),
[data-theme="dark"] .cv-btn-audio-ctrl.is-paused:not(.is-playing):not(.cv-btn-audio-pause),
html[data-theme="dark"] .cv-btn-audio-ctrl.is-paused:not(.is-playing):not(.cv-btn-audio-pause) {
  color: #ffffff !important;
  border-color: #4ade80 !important;
  background: linear-gradient(180deg, #16a34a 0%, #14532d 100%) !important;
  box-shadow: 0 2px 10px rgba(34, 197, 94, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

/* 3. Stop no tema escuro: Quadrado Vermelho Rubi / Coral */
[data-tema="escuro"] .cv-btn-audio-ctrl.cv-btn-audio-stop,
html[data-tema="escuro"] .cv-btn-audio-ctrl.cv-btn-audio-stop,
[data-theme="dark"] .cv-btn-audio-ctrl.cv-btn-audio-stop,
html[data-theme="dark"] .cv-btn-audio-ctrl.cv-btn-audio-stop {
  color: #f87171 !important;
  border-color: rgba(248, 113, 113, 0.65) !important;
  background: linear-gradient(180deg, #3b1219 0%, #22090d 100%) !important;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}
[data-tema="escuro"] .cv-btn-audio-ctrl.cv-btn-audio-stop:hover:not(:disabled),
html[data-tema="escuro"] .cv-btn-audio-ctrl.cv-btn-audio-stop:hover:not(:disabled),
[data-theme="dark"] .cv-btn-audio-ctrl.cv-btn-audio-stop:hover:not(:disabled),
html[data-theme="dark"] .cv-btn-audio-ctrl.cv-btn-audio-stop:hover:not(:disabled) {
  color: #fca5a5 !important;
  border-color: rgba(248, 113, 113, 0.9) !important;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

/* 4. Navegação no tema escuro: Círculos Azuis Ciano */
[data-tema="escuro"] .cv-btn-audio-nav,
html[data-tema="escuro"] .cv-btn-audio-nav,
[data-theme="dark"] .cv-btn-audio-nav,
html[data-theme="dark"] .cv-btn-audio-nav {
  width: 36px !important;
  min-width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  color: #38bdf8 !important;
  border-color: rgba(56, 189, 248, 0.65) !important;
  background: linear-gradient(180deg, #0c2d48 0%, #07192b 100%) !important;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}
[data-tema="escuro"] .cv-btn-audio-nav:hover:not(:disabled),
html[data-tema="escuro"] .cv-btn-audio-nav:hover:not(:disabled),
[data-theme="dark"] .cv-btn-audio-nav:hover:not(:disabled),
html[data-theme="dark"] .cv-btn-audio-nav:hover:not(:disabled) {
  color: #7dd3fc !important;
  border-color: rgba(56, 189, 248, 0.9) !important;
  box-shadow: 0 2px 10px rgba(14, 165, 233, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

/* 5. Velocidade no tema escuro: Pílula Violeta / Lavanda */
[data-tema="escuro"] .cv-btn-audio-ctrl.cv-btn-audio-vel-ciclo,
[data-tema="escuro"] .cv-btn-audio-vel-ciclo,
html[data-tema="escuro"] .cv-btn-audio-ctrl.cv-btn-audio-vel-ciclo,
html[data-tema="escuro"] .cv-btn-audio-vel-ciclo,
[data-theme="dark"] .cv-btn-audio-ctrl.cv-btn-audio-vel-ciclo,
[data-theme="dark"] .cv-btn-audio-vel-ciclo,
html[data-theme="dark"] .cv-btn-audio-ctrl.cv-btn-audio-vel-ciclo,
html[data-theme="dark"] .cv-btn-audio-vel-ciclo {
  min-width: 48px;
  height: 34px;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #1e1b4b 0%, #0f172a 100%) !important;
  border: 1.5px solid rgba(167, 139, 250, 0.55) !important;
  color: #c4b5fd !important;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}
[data-tema="escuro"] .cv-btn-audio-ctrl.cv-btn-audio-vel-ciclo:hover:not(:disabled),
[data-tema="escuro"] .cv-btn-audio-vel-ciclo:hover:not(:disabled),
html[data-tema="escuro"] .cv-btn-audio-ctrl.cv-btn-audio-vel-ciclo:hover:not(:disabled),
html[data-tema="escuro"] .cv-btn-audio-vel-ciclo:hover:not(:disabled),
[data-theme="dark"] .cv-btn-audio-ctrl.cv-btn-audio-vel-ciclo:hover:not(:disabled),
[data-theme="dark"] .cv-btn-audio-vel-ciclo:hover:not(:disabled),
html[data-theme="dark"] .cv-btn-audio-ctrl.cv-btn-audio-vel-ciclo:hover:not(:disabled),
html[data-theme="dark"] .cv-btn-audio-vel-ciclo:hover:not(:disabled) {
  border-color: rgba(167, 139, 250, 0.85) !important;
  color: #ddd6fe !important;
  box-shadow: 0 2px 10px rgba(139, 92, 246, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

/* ── DESTAQUE DE LEITURA TTS (HIGHLIGHT) ── */
.cv-tts-paragrafo-ativo,
.tts-highlight {
  background: rgba(2, 132, 199, 0.15) !important;
  border-left: 3px solid #0284c7 !important;
  border-radius: 4px;
  padding-left: 8px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.cv-tts-sentenca.cv-tts-paragrafo-ativo,
.cv-tts-sentenca-ativa {
  background: rgba(2, 132, 199, 0.24) !important;
  border-left: none !important;
  padding: 2px 4px !important;
  margin: 0 -2px;
  border-radius: 4px;
  text-decoration: underline;
  text-decoration-color: #0284c7;
  text-underline-offset: 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.cv-tts-bloco-ativo {
  border-left: 3px solid rgba(2, 132, 199, 0.55) !important;
  padding-left: 8px;
  transition: border-color 0.2s ease;
}

html[data-tema="escuro"] .cv-tts-paragrafo-ativo,
html[data-tema="escuro"] .tts-highlight,
[data-tema="escuro"] .cv-tts-paragrafo-ativo,
[data-tema="escuro"] .tts-highlight {
  background: rgba(56, 189, 248, 0.18) !important;
  border-left-color: #38bdf8 !important;
}

html[data-tema="escuro"] .cv-tts-sentenca.cv-tts-paragrafo-ativo,
html[data-tema="escuro"] .cv-tts-sentenca-ativa,
[data-tema="escuro"] .cv-tts-sentenca.cv-tts-paragrafo-ativo,
[data-tema="escuro"] .cv-tts-sentenca-ativa {
  background: rgba(56, 189, 248, 0.28) !important;
  color: #f8fafc !important;
  border-left: none !important;
  text-decoration-color: #38bdf8;
}

html[data-tema="escuro"] .cv-tts-bloco-ativo,
[data-tema="escuro"] .cv-tts-bloco-ativo {
  border-left-color: rgba(56, 189, 248, 0.65) !important;
}

/* ── CORPO E TEXTO DO COMENTÁRIO ── */
.cv-comentario-sheet-body {
  flex: 1;
  min-height: 0;
  padding: 12px 16px 36px 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  box-sizing: border-box;
}

.cv-comentario-bloco-header {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ipb-verde-principal, #005930);
  background: rgba(0, 89, 48, 0.06);
  padding: 6px 10px;
  border-radius: 6px;
  border-left: 3px solid var(--ipb-verde-principal, #005930);
}

.cv-comentario-aviso-trecho {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 12px;
  background: rgba(0, 89, 48, 0.08);
  border-left: 3px solid var(--ipb-verde-principal, #005930);
  border-radius: 0 8px 8px 0;
  font-size: 0.80rem;
  color: #1e293b;
}

html[data-tema="escuro"] .cv-comentario-aviso-trecho,
[data-tema="escuro"] .cv-comentario-aviso-trecho {
  background: rgba(16, 185, 129, 0.14);
  border-left-color: #34d399;
  color: #f1f5f9;
}

.cv-btn-comentario-ver-todo {
  color: var(--ipb-verde-principal, #005930);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: underline;
  transition: opacity 0.15s ease;
}

html[data-tema="escuro"] .cv-btn-comentario-ver-todo,
[data-tema="escuro"] .cv-btn-comentario-ver-todo {
  color: #6ee7b7 !important;
}

html[data-tema="escuro"] .cv-comentario-bloco-header {
  color: #86efac;
  background: rgba(16, 185, 129, 0.12);
  border-left-color: #10b981;
}

.cv-comentario-paragrafo {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #1e293b;
  text-align: justify;
  margin: 0;
  letter-spacing: 0.1px;
}

html[data-tema="escuro"] .cv-comentario-paragrafo {
  color: #f1f5f9 !important;
}

.cv-comentario-skeleton {
  padding: 24px;
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
}

/* ==========================================================================
   WP-06: Prévia de Versículo Bíblico (Bottom Sheet Ágil)
   ========================================================================== */
.cv-previa-versiculo-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 10050;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.cv-previa-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.cv-previa-sheet {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 82vh;
  background: var(--ipb-cartao-bg, #ffffff);
  color: var(--ipb-texto, #1e293b);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1;
  animation: cvSlideUpPrevia 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cvSlideUpPrevia {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.cv-previa-drag-handle {
  width: 44px;
  height: 5px;
  background: var(--ipb-borda, #cbd5e1);
  border-radius: 3px;
  margin: 10px auto 4px;
  cursor: pointer;
  flex-shrink: 0;
}

.cv-previa-header {
  padding: 8px 18px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ipb-borda, #e2e8f0);
  flex-shrink: 0;
}

.cv-previa-badge-tipo {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ipb-verde-principal, #10b981);
  margin-bottom: 2px;
}

.cv-previa-titulo {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ipb-texto, #0f172a);
}

.cv-btn-fechar-previa {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--ipb-borda, #f1f5f9);
  color: var(--ipb-texto, #475569);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.cv-btn-fechar-previa:hover,
.cv-btn-fechar-previa:active {
  background: var(--ipb-borda, #e2e8f0);
}

.cv-previa-body {
  padding: 16px 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  font-size: 1.05rem;
  line-height: 1.65;
}

.cv-previa-verso {
  margin: 0 0 12px 0;
  color: var(--ipb-texto, #334155);
}

.cv-previa-num-verso {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ipb-verde-principal, #10b981);
  margin-right: 6px;
  vertical-align: super;
}

.cv-previa-mais-versos {
  margin-top: 14px;
  padding: 10px 14px;
  background: var(--ipb-fundo-creme, #f8fafc);
  border-radius: 8px;
  border-left: 3px solid var(--ipb-verde-principal, #10b981);
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--ipb-texto-muted, #64748b);
}

.cv-btn-link-previa {
  background: none;
  border: none;
  color: var(--ipb-verde-principal, #059669);
  font-weight: 600;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.cv-previa-footer {
  padding: 12px 18px;
  background: var(--ipb-fundo-creme, #f8fafc);
  border-top: 1px solid var(--ipb-borda, #e2e8f0);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  overflow-x: auto;
}

.cv-btn-previa-action {
  flex: 1;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.1s ease, filter 0.15s ease;
  border: 1px solid var(--ipb-borda, #cbd5e1);
  background: var(--ipb-cartao-bg, #ffffff);
  color: var(--ipb-texto, #1e293b);
}

.cv-btn-previa-action:active {
  transform: scale(0.97);
}

.cv-btn-previa-abrir {
  background: var(--ipb-verde-principal, #10b981) !important;
  color: #ffffff !important;
  border-color: var(--ipb-verde-principal, #10b981) !important;
}

/* ── Blindagem Específica de Alto Contraste para Tema Escuro na Prévia Bíblica ── */
[data-tema="escuro"] .cv-previa-sheet,
body[data-tema="escuro"] .cv-previa-sheet,
html[data-tema="escuro"] .cv-previa-sheet {
  background: #1c221e !important;
  color: #f1f5f3 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.65) !important;
}

[data-tema="escuro"] .cv-previa-drag-handle {
  background: rgba(255, 255, 255, 0.20) !important;
}

[data-tema="escuro"] .cv-previa-header {
  border-bottom-color: rgba(255, 255, 255, 0.10) !important;
}

[data-tema="escuro"] .cv-previa-badge-tipo {
  color: #34d399 !important;
}

[data-tema="escuro"] .cv-previa-titulo {
  color: #f8fafc !important;
}

[data-tema="escuro"] .cv-btn-fechar-previa {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #f8fafc !important;
}

[data-tema="escuro"] .cv-btn-fechar-previa:hover,
[data-tema="escuro"] .cv-btn-fechar-previa:active {
  background: rgba(255, 255, 255, 0.22) !important;
}

[data-tema="escuro"] .cv-previa-verso {
  color: #f1f5f3 !important;
}

[data-tema="escuro"] .cv-previa-num-verso {
  color: #34d399 !important;
}

[data-tema="escuro"] .cv-previa-mais-versos {
  background: rgba(255, 255, 255, 0.05) !important;
  border-left-color: #10b981 !important;
  color: #94a3b8 !important;
}

[data-tema="escuro"] .cv-btn-link-previa {
  color: #34d399 !important;
}

[data-tema="escuro"] .cv-previa-footer {
  background: #111513 !important;
  border-top-color: rgba(255, 255, 255, 0.10) !important;
}

[data-tema="escuro"] .cv-btn-previa-action {
  background: #252e28 !important;
  color: #f1f5f3 !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}

[data-tema="escuro"] .cv-btn-previa-action:hover {
  background: #2f3a33 !important;
}

[data-tema="escuro"] .cv-btn-previa-abrir {
  background: #10b981 !important;
  color: #ffffff !important;
  border-color: #10b981 !important;
}

/* ==========================================================================
   WP-09: Modo Leitura em Foco (body.cv-modo-foco)
   ========================================================================== */
body.cv-modo-foco #cv-leitor-tabs-nav,
body.cv-modo-foco .cv-leitor-header,
body.cv-modo-foco .cv-sub-header,
body.cv-modo-foco #cv-banner-offline,
body.cv-modo-foco .cv-alca-lateral,
body.cv-modo-foco .cv-leitor-footer,
body.cv-modo-foco .cv-selo-estado-conexao {
  display: none !important;
}

body.cv-modo-foco .cv-view.active {
  padding-top: 12px !important;
  height: 100vh !important;
  max-height: 100vh !important;
}

body.cv-modo-foco #view-artigo .cv-article-sheet {
  height: 100vh !important;
  max-height: 100vh !important;
  box-shadow: none !important;
  border: none !important;
}

.cv-btn-sair-foco {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10040;
  background: rgba(15, 23, 42, 0.82);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  display: none;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.cv-btn-sair-foco:hover,
.cv-btn-sair-foco:active {
  transform: scale(1.03);
  background: rgba(15, 23, 42, 0.95);
}

.cv-btn-modo-foco.is-foco-ativo {
  background: var(--ipb-verde-principal, #10b981) !important;
  color: #ffffff !important;
}

