:root {
  --bg: #E0E5EC;
  --azul: #4A6B8A;
  --verde: #60B89C;
  --text: #1a1a2e;
  --text-sec: #4a5a6a;
  --shadow-light: #ffffff;
  --shadow-dark: #b8bec7;
}

.nome-usuario {
  font-size: 1.5rem;
  font-weight: 800;
  color: #2d6a7f;
  margin: 0;
  font-family: 'Nunito', sans-serif;
}

.badge-fundador {
  font-size: 0.65rem;
  font-weight: 700;
  color: #2a5a6e;
  font-family: 'Nunito', sans-serif;
  margin-left: 6px;
  vertical-align: middle;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  color: var(--text);
}

html {
  font-size: 16px;
}

body, body * {
  font-family: 'Nunito', sans-serif;
  line-height: 1.6;
}

p, span, div, li, label, button, input, textarea, a {
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
}

h1 { font-size: 1.5rem !important; }
h2 { font-size: 1.375rem !important; }
h3 { font-size: 1.25rem !important; }

#nav-bar span, #nav-bar p {
  font-size: 11px !important;
}

input, textarea {
  background: #ffffff !important;
  color-scheme: light !important;
}

.neumorf-out {
  background: #E0E5EC;
  border-radius: 16px;
  box-shadow: 6px 6px 12px #b8bec7, -6px -6px 12px #ffffff;
}

.neumorf-in {
  background: #E0E5EC;
  border-radius: 16px;
  box-shadow: inset 4px 4px 8px #b8bec7, inset -4px -4px 8px #ffffff;
}

.skeleton-bloco {
  border-radius: 14px;
  animation: pulsoSkeleton 1.4s ease-in-out infinite;
}

.skeleton-svg {
  fill: #E0E5EC;
  animation: pulsoSkeleton 1.4s ease-in-out infinite;
}

@keyframes pulsoSkeleton {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.btn-primary {
  background: linear-gradient(135deg, #4A6B8A, #60B89C);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  font-family: 'Nunito', sans-serif;
}

.btn-primary:active {
  opacity: 0.9;
}

#nav-bar {
  position: fixed;
  bottom: 0;
  width: 100%;
  max-width: 430px;
  background: var(--bg);
  display: flex;
  justify-content: space-around;
  padding: 12px 0;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.65rem;
  color: var(--text);
  cursor: pointer;
  gap: 4px;
  transition: color 0.2s;
}

#nav-bar .nav-item span:first-child {
  font-size: 28px !important;
  line-height: 1 !important;
}

.nav-item.active {
  color: var(--azul);
  font-weight: 700;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-insight {
  background: #E0E5EC;
  border-radius: 20px;
  padding: 32px;
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.gpoms-badge {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 8px;
}

.badge-real {
  color: var(--verde);
  background: rgba(96,184,156,0.15);
}

.badge-simulado {
  color: var(--text);
  background: rgba(90,106,122,0.1);
}

.gpoms-loading {
  font-size: 0.8rem;
  color: var(--text);
  opacity: 0.7;
  margin: 4px 0 12px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 0.3; }
}

.home-skel {
  background: var(--shadow-dark);
  animation: pulse 1.5s ease-in-out infinite;
}

.gpoms-media-marker {
  position: absolute;
  top: 0;
  height: 12px;
  width: 2px;
  border-left: 2px dashed rgba(74, 107, 138, 0.6);
  transform: translateX(-1px);
  pointer-events: auto;
  cursor: help;
}

.espelho-card {
  border-left: 3px solid var(--verde);
  background: rgba(96,184,156,0.08);
  padding: 16px;
  border-radius: 12px;
  margin: 0 0 16px 0;
  animation: slideDown 0.4s ease;
}

.espelho-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.espelho-titulo {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--azul);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.espelho-fechar {
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
  opacity: 0.5;
}

.espelho-texto {
  font-style: italic;
  line-height: 1.6;
  color: var(--text);
  font-size: 1rem;
}

.espelho-rodape {
  font-size: 0.78rem;
  opacity: 0.55;
  text-align: center;
  margin-top: 12px;
  font-style: normal;
  color: var(--text);
  letter-spacing: 0.03em;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

#tela-1,
#tela-2,
#tela-3,
#tela-4,
#tela-5 {
  padding: 24px 20px 100px;
  min-height: 100vh;
}

.etapa-registro {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.progresso-etapas {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.etapa-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
}

.etapa-dot.ativa {
  background: var(--azul);
  color: white;
}

.etapa-dot.concluida {
  background: var(--verde);
  color: white;
}

.etapa-dot.pendente {
  background: var(--bg);
  color: var(--text);
  box-shadow: 3px 3px 6px var(--shadow-dark),
             -3px -3px 6px var(--shadow-light);
}

.label-etapa {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--azul);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 8px;
}

.compromisso-card {
  background: rgba(96,184,156,0.1);
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 12px;
  font-style: italic;
  color: var(--verde);
  font-weight: 700;
  font-size: 0.95rem;
}

.territorio-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0 20px;
}

.territorio-selector .btn-territorio:last-child {
  grid-column: 1 / -1;
  max-width: 50%;
  margin: 0 auto;
  width: 100%;
}

.btn-territorio {
  padding: 10px;
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--text);
  cursor: pointer;
  border: none;
  background: var(--bg);
  text-align: center;
  transition: all 0.2s;
  box-shadow: 3px 3px 6px var(--shadow-dark),
             -3px -3px 6px var(--shadow-light);
}

.btn-territorio.selecionado {
  background: var(--azul);
  color: white;
  box-shadow: none;
  transform: scale(1.03);
}

.filtro-periodo {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.btn-filtro {
  padding: 6px 14px;
  font-size: 0.85rem;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  color: var(--text);
  background: var(--bg);
  box-shadow: 2px 2px 5px var(--shadow-dark),
             -2px -2px 5px var(--shadow-light);
  transition: all 0.2s;
}

.btn-filtro.ativo {
  background: var(--azul);
  color: white;
  box-shadow: none;
}

.registro-card-mapa {
  background: #ffffff;
  border-radius: 16px;
  border: 0.5px solid rgba(74, 107, 138, 0.2);
  padding: 1rem 1.25rem;
  margin-bottom: 12px;
}

.registro-data {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a56db;
  margin-bottom: 4px;
}

.registro-passo {
  font-size: 0.8rem;
  color: var(--verde);
  margin-top: 6px;
}

.territorio-vazio {
  text-align: center;
  padding: 24px 16px;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.6;
}

.contador-registros {
  font-size: 0.875rem;
  color: var(--text);
  opacity: 0.7;
  margin-bottom: 12px;
}

/* ── Lentes de Sabedoria ── */

.lentes-titulo {
  font-size: 1rem;
  font-weight: 800;
  color: var(--azul);
  text-align: center;
  margin-bottom: 6px;
}

.lentes-subtitulo {
  font-size: 0.85rem;
  color: var(--text);
  text-align: center;
  font-style: italic;
  margin-bottom: 16px;
}

.lentes-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 600px) {
  .lentes-grid {
    flex-direction: row;
  }
  .btn-lente {
    flex: 1;
  }
}

.btn-lente {
  background: var(--bg);
  border: none;
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--azul);
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  text-align: center;
  transition: all 0.2s;
  box-shadow: 6px 6px 12px var(--shadow-dark),
             -6px -6px 12px var(--shadow-light);
}

.btn-lente:active {
  box-shadow: inset 4px 4px 8px var(--shadow-dark),
              inset -4px -4px 8px var(--shadow-light);
}

.btn-lente:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ── Bottom Sheet ── */

.bottom-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 300;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bottom-sheet-overlay.open {
  opacity: 1;
}

.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: 430px;
  height: 70vh;
  background: var(--bg);
  border-radius: 20px 20px 0 0;
  z-index: 301;
  padding: 20px 20px 32px;
  overflow-y: auto;
  transition: transform 0.4s cubic-bezier(0.32,0.72,0,1);
  box-shadow: 0 -8px 30px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bottom-sheet.open {
  transform: translateX(-50%) translateY(0);
}

.sheet-handle {
  width: 40px;
  height: 4px;
  background: var(--shadow-dark);
  border-radius: 2px;
  margin: 0 auto -4px;
  flex-shrink: 0;
}

.sheet-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sheet-icone {
  font-size: 2rem;
  line-height: 1;
}

.sheet-nome {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--azul);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sheet-resposta {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text);
  flex: 1;
}

.sheet-fonte {
  font-size: 0.8rem;
  color: var(--azul);
  font-weight: 700;
  background: rgba(74,107,138,0.08);
  padding: 8px 12px;
  border-radius: 8px;
  border-left: 3px solid var(--azul);
  flex-shrink: 0;
}

.sheet-loading {
  text-align: center;
  color: var(--text);
  font-size: 0.9rem;
  font-style: italic;
  animation: pulse 1.5s ease-in-out infinite;
  flex: 1;
}

.sheet-loading-aviso {
  text-align: center;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  color: var(--text-sec);
  opacity: 0.85;
  padding: 0 16px;
}

.sheet-acoes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.paragrafos-lente-container {
  flex: 1;
  overflow-y: auto;
}

.paragrafo-lente {
  display: flex;
  flex-direction: column;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.paragrafo-lente:hover {
  background: rgba(74,107,138,0.06);
}

.paragrafo-lente.selecionado {
  background: rgba(74,107,138,0.12);
  border-left: 3px solid var(--azul);
}

.paragrafo-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.paragrafo-check {
  font-size: 1.2rem;
  min-width: 24px;
  text-align: center;
  color: var(--azul);
  margin-top: 2px;
}

.paragrafo-texto {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  flex: 1;
}

.paragrafo-anotacao {
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  border: none;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text);
  background: #e0e5ec;
  box-shadow: inset 3px 3px 6px #b8bec9,
              inset -3px -3px 6px #ffffff;
  resize: vertical;
  min-height: 70px;
  font-family: 'Nunito', sans-serif;
  box-sizing: border-box;
}

.btn-fechar-sheet {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  padding: 10px;
  font-family: 'Nunito', sans-serif;
  text-align: center;
  opacity: 0.65;
}

/* ── Lente cards no Mapa ── */

.registro-card-lente {
  padding: 12px 0;
  border-bottom: 1px solid rgba(74,107,138,0.1);
}

.registro-card-lente:last-child {
  border-bottom: none;
}

.lente-mapa-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.lente-mapa-icone {
  font-size: 1rem;
}

.lente-mapa-tipo {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--verde);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.lente-mapa-data {
  font-size: 0.85rem;
  color: var(--text);
  opacity: 0.6;
  margin-left: auto;
}

.lente-mapa-texto {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text);
  font-style: italic;
}

.lente-mapa-fonte {
  font-size: 0.85rem;
  color: var(--azul);
  font-weight: 700;
  margin-top: 4px;
}

.lentes-secao-titulo {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--azul);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 16px 0 10px;
  opacity: 0.7;
}

/* ── Nudge de lentes no Dashboard ── */

.nudge-lentes {
  padding: 12px;
  border-radius: 8px;
  background: rgba(74,107,138,0.08);
  margin: 8px 0;
  font-size: 0.88rem;
  border-left: 3px solid var(--azul);
}

/* ── Lentes vinculadas dentro do card de registro ── */

.registro-lentes-vinculadas {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(74,107,138,0.2);
}

.lentes-vinculadas-titulo {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--azul);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  opacity: 0.7;
}

.lente-vinculada-item {
  margin-bottom: 6px;
}

.lente-vinculada-header {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 4px 0;
  user-select: none;
}

.lente-vinculada-conteudo {
  padding: 8px 0 4px;
  border-left: 2px solid rgba(74,107,138,0.15);
  padding-left: 10px;
  margin-left: 4px;
}

/* ── Botão secundário ── */

.btn-secundario {
  background: transparent;
  border: 2px solid var(--azul);
  color: var(--azul);
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 12px;
  cursor: pointer;
  width: 100%;
  text-align: center;
}

/* ── Botão Ressoar no Mural dentro do card do Mapa ── */

.btn-ressoar-mural-card {
  background: transparent;
  border: 1px solid rgba(74,107,138,0.35);
  color: var(--azul);
  font-family: 'Nunito', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 8px;
  display: block;
}

/* ── Botões de deleção ── */

.btn-deletar-lente {
  background: transparent;
  border: 1px solid rgba(192, 57, 43, 0.3);
  color: #c0392b;
  font-family: 'Nunito', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 6px;
  display: block;
}

.btn-deletar-icon {
  background: transparent;
  border: none;
  color: #b0b8c1;
  font-size: 1rem;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
  transition: color 0.2s ease;
  flex-shrink: 0;
}
.btn-deletar-icon:hover {
  color: #c0392b;
}

.registro-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.lente-chevron {
  margin-left: auto;
  font-size: 0.9rem;
  color: var(--azul);
  opacity: 0.5;
  display: inline-block;
  transition: transform 0.22s ease;
  line-height: 1;
  user-select: none;
}
.lente-chevron.aberto {
  transform: rotate(90deg);
}

/* ── Badge de contagem de território ── */

.card-territorio {
  position: relative;
}

/* Card sozinho na última linha ocupa a largura total */
.card-territorio:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.badge-territorio {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #d1d9e0;
  box-shadow: 2px 2px 4px #b8bec7, -1px -1px 3px #ffffff;
  color: #6b7a8d;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  padding: 2px 7px;
  border-radius: 20px;
  line-height: 1.5;
  pointer-events: none;
}

.date-below {
  font-size: 11px;
  color: var(--text-sec);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  justify-content: center;
}

/* ── Textarea de destilação ── */

.destilacao-textarea {
  width: 100%;
  min-height: 80px;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--azul);
  line-height: 1.6;
}

/* ── Tag de lente no card do Mural ── */

.mural-card-lente-tag {
  font-size: 0.8rem;
  color: var(--azul);
  font-weight: 700;
  opacity: 0.65;
  margin: 4px 0 0;
}

/* ── Âncora de sabedoria no card do Mural ── */

.mural-ancora {
  margin: 8px 0 4px;
  padding: 8px 12px;
  border-left: 2px solid rgba(74,107,138,0.2);
}

.mural-ancora-ref {
  font-size: 0.76rem;
  color: var(--azul);
  font-weight: 700;
  opacity: 0.65;
  margin-bottom: 4px;
}

.mural-ancora-trecho {
  font-size: 0.76rem;
  color: var(--text);
  font-style: italic;
  line-height: 1.55;
  opacity: 0.75;
}

/* ── Abas discretas dentro do registro no Cofre ── */

.registro-tabs {
  display: flex;
  gap: 4px;
  margin: 8px 0 4px;
}

.tab-btn {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  color: var(--text);
  background: transparent;
  opacity: 0.45;
  transition: all 0.2s;
}

.tab-btn.tab-ativa {
  color: var(--azul);
  opacity: 1;
  background: rgba(74,107,138,0.1);
}

.aba-conteudo {
  min-height: 0;
}

/* ── Ações no rodapé do card de registro ── */

.registro-acoes {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed rgba(0,0,0,0.1);
}

.btn-acao-registro {
  flex: 1;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 7px 8px;
  border-radius: 10px;
  border: 1px solid rgba(74,107,138,0.25);
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  color: var(--azul);
  background: transparent;
  text-align: center;
  transition: background 0.2s;
}

.btn-acao-registro:active {
  background: rgba(74,107,138,0.08);
}

.btn-reeditar-card {
  flex: 1;
  height: 40px;
  border-radius: 12px;
  border: 1.5px solid var(--azul);
  background: none;
  color: var(--azul);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  transition: background 0.2s;
}
.btn-reeditar-card:active {
  background: rgba(74,107,138,0.08);
}

.btn-ressoar-card {
  flex: 1;
  height: 40px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--azul), var(--verde));
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  white-space: nowrap;
}

/* ══ Nudges Éticos com IA — Dashboard ══ */

.nudge-indicador { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px dashed rgba(0,0,0,0.1); }
.nudge-label { font-size: 0.65rem; letter-spacing: 2px; text-transform: uppercase; color: var(--azul); opacity: 0.7; margin: 0 0 8px; font-weight: 800; }
.nudge-recorrencia-titulo { font-size: 0.9rem; color: var(--text); margin: 8px 0 12px; line-height: 1.5; }
.nudge-sublabel { font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--azul); opacity: 0.7; margin-bottom: 10px; }
.nudge-perspectiva { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; padding: 10px 12px; background: var(--bg); border-radius: 12px; }
.nudge-perspectiva-titulo { font-weight: 800; font-size: 0.8rem; color: var(--azul); margin-bottom: 2px; }
.nudge-perspectiva-texto { font-size: 0.85rem; color: var(--text); line-height: 1.5; }
.nudge-pico { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; }
.nudge-palavras { font-size: 0.95rem; font-weight: 700; color: var(--azul); margin: 6px 0 14px; line-height: 1.8; }
.nudge-recontexto-box { padding: 12px 14px; background: var(--bg); border-radius: 12px; border-left: 3px solid var(--azul); }

/* ══ Epifanias Curativas — Dashboard ══ */

.dashboard-epifanias { margin-bottom: 24px; }
.epifanias-total { font-size: 1rem; color: var(--text); margin: 8px 0 16px; }
.epifania-item { padding: 12px 0; border-top: 1px dashed rgba(0,0,0,0.1); }
.epifania-count { font-weight: 800; color: var(--verde); font-size: 0.9rem; }
.epifania-frase { font-size: 0.88rem; color: var(--text); margin: 4px 0; font-style: italic; opacity: 0.85; white-space: normal; }
.epifania-data { font-size: 0.85rem; color: var(--text); opacity: 0.5; margin: 2px 0; }
.epifania-almas { font-size: 0.8rem; color: var(--azul); font-weight: 600; margin: 4px 0 0; font-family: 'Nunito', sans-serif; }

/* ══ Reeditados, Lentes de Releitura e Mural v2 ══ */

.aba-label-orig {
  font-size: 0.85rem; font-weight: 800; color: var(--text);
  text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.5; margin-bottom: 3px;
}
.aba-label-reed {
  font-size: 0.85rem; font-weight: 800; color: #9F99D6;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0;
}
.aba-label-frase-inspi {
  font-size: 0.85rem; font-weight: 800; color: #9F99D6;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 5px;
}
.aba-label-lentes-sec {
  font-size: 0.85rem; font-weight: 800; color: var(--azul);
  text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.6; margin: 8px 0 5px;
}
.aba-divisor {
  border: none; border-top: 1px dashed rgba(74,107,138,0.2); margin: 8px 0;
}
.aba-frase-box {
  background: #F5F0FF; border-radius: 10px; padding: 9px 12px;
  display: flex; gap: 7px; align-items: flex-start; margin: 4px 0;
}
.aba-frase-texto { font-style: italic; color: #3C3489; font-size: 0.83rem; line-height: 1.5; }
.aba-texto-orig {
  font-size: 1rem; line-height: 1.6; color: var(--text);
  font-style: italic; opacity: 0.7; padding: 3px 0;
}
.aba-texto-reed { font-size: 1rem; line-height: 1.6; color: var(--text); padding: 3px 0 0; }
.aba-reed-row { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.btn-add-lente {
  background: transparent; border: 1px dashed rgba(159,153,214,0.5); color: #9F99D6;
  font-size: 0.72rem; font-weight: 700; padding: 3px 9px; border-radius: 8px;
  cursor: pointer; font-family: 'Nunito', sans-serif; white-space: nowrap; flex-shrink: 0;
}
.badge-lente-nova {
  font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 20px;
  white-space: nowrap; flex-shrink: 0;
}
.badge-historica { background: #E6F1FB; color: #0C447C; }
.badge-literaria  { background: #E1F5EE; color: #085041; }
.badge-biblica    { background: #EEEDFE; color: #3C3489; }
.lente-perspectiva-item {
  display: flex; align-items: flex-start; gap: 7px;
  padding: 3px 0; font-size: 0.83rem; color: var(--text); line-height: 1.45;
}

@keyframes dotBounce {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.35; }
  40% { transform: scale(1); opacity: 1; }
}
.loading-dots-row { display: flex; justify-content: center; gap: 6px; padding: 14px 0; }
.loading-dots-row span {
  width: 9px; height: 9px; border-radius: 50%; background: #9F99D6;
  display: inline-block; animation: dotBounce 1.3s ease-in-out infinite;
}
.loading-dots-row span:nth-child(2) { animation-delay: 0.18s; }
.loading-dots-row span:nth-child(3) { animation-delay: 0.36s; }

.modal-lente-opcao {
  padding: 12px 14px; border-radius: 12px; border: 2px solid transparent;
  background: var(--bg); box-shadow: 3px 3px 6px var(--shadow-dark), -3px -3px 6px var(--shadow-light);
  cursor: pointer; margin-bottom: 10px; transition: border-color 0.2s, box-shadow 0.2s;
  text-align: left; font-family: 'Nunito', sans-serif; width: 100%;
}
.modal-lente-opcao.selecionada { border-color: #9F99D6; box-shadow: none; }
.modal-lente-opcao-titulo { font-size: 0.88rem; font-weight: 800; color: var(--azul); margin-bottom: 2px; }
.modal-lente-opcao-desc { font-size: 0.78rem; color: var(--text); opacity: 0.7; line-height: 1.4; }

.lente-ativa-row { display: flex; gap: 6px; margin-bottom: 10px; }
.btn-lente-ativa {
  flex: 1; padding: 7px 4px; border-radius: 9px; border: 1px solid rgba(74,107,138,0.22);
  background: transparent; font-family: 'Nunito', sans-serif; font-size: 0.73rem;
  font-weight: 700; color: var(--text); cursor: pointer; transition: all 0.2s;
}
.btn-lente-ativa.ativo { background: var(--azul); color: white; border-color: var(--azul); }

.modal-ressoar-section { margin-bottom: 12px; }
.modal-ressoar-sec-label {
  font-size: 0.7rem; font-weight: 800; color: var(--azul);
  text-transform: uppercase; letter-spacing: 1px; opacity: 0.6; margin-bottom: 6px;
}
.modal-ressoar-cb-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.85rem; color: var(--text); cursor: pointer; padding: 4px 0;
}

.mural-frase-v2 { background: #F5F0FF; border-radius: 10px; padding: 9px 14px; margin: 8px 0; }
.mural-frase-v2-label {
  font-size: 0.68rem; font-weight: 800; color: #9F99D6;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px;
}
.mural-frase-v2-text {
  font-style: italic; color: #3C3489; font-size: 0.88rem; line-height: 1.5;
  display: flex; gap: 7px; align-items: flex-start;
}
.mural-lente-ctx { border-radius: 10px; padding: 10px 14px; margin: 5px 0; }
.mural-lente-ctx-titulo { font-size: 0.8rem; font-weight: 800; margin-bottom: 4px; }
.mural-lente-ctx-texto { font-size: 0.82rem; line-height: 1.5; color: var(--text); }
.lente-fonte-linha {
  font-size: 0.72rem; color: #a8b4be; margin-top: 3px; line-height: 1.4;
}

/* ── Botões de período — Gráfico GPOM ── */

.btn-periodo-gpom {
  padding: 6px 14px;
  font-size: 0.85rem;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  color: var(--text);
  background: var(--bg);
  box-shadow: 2px 2px 5px var(--shadow-dark), -2px -2px 5px var(--shadow-light);
  transition: all 0.2s;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
}

.btn-periodo-gpom.ativo {
  background: var(--azul);
  color: white;
  box-shadow: none;
}

/* ── Blocos IA (Síntese / Recontextualização) ── */

.ia-bloco {
  background: var(--bg);
  border-radius: 16px;
  padding: 16px;
  margin: 12px 0;
  box-shadow: 4px 4px 10px #b8bec7, -4px -4px 10px #ffffff;
}
.ia-bloco-titulo {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--azul);
}
.ia-resultado {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 10px;
  font-style: italic;
}
.ia-btn {
  background: linear-gradient(135deg, #4A6B8A, #60B89C);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  width: 100%;
}

/* ── Tela de Login ── */

#tela-login {
  padding: 0 20px 40px;
  min-height: 100vh;
  overflow-y: auto;
}

.login-input {
  flex: 1;
  padding: 12px 14px;
  border: none;
  outline: none;
  border-radius: 10px;
  font-size: 1rem;
  font-family: 'Nunito', sans-serif;
  color: #3c4043;
  background: #ffffff !important;
  color-scheme: light;
  box-shadow: inset 2px 2px 5px #d1d9e0, inset -2px -2px 5px #f8f9fa;
}

.login-input::placeholder {
  color: #a8b4be;
}

#login-senha::-ms-reveal { display: none !important; }
#login-senha::-webkit-credentials-auto-fill-button { visibility: hidden !important; }

/* ── Card Ressonâncias da Semana ── */

.ressonancia-card {
  margin: 12px 0;
}

.ressonancia-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.ressonancia-corpo {
  margin-top: 4px;
}

.ressonancia-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(74,107,138,0.08);
}

.ressonancia-item:last-child {
  border-bottom: none;
}

.ressonancia-icone {
  font-size: 1rem;
  flex-shrink: 0;
}

.ressonancia-fonte {
  font-size: 0.85rem;
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  flex: 1;
  line-height: 1.3;
}

.ressonancia-tag {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: 'Nunito', sans-serif;
}

/* ══ Redesign card de registro — Cofre ══ */

.registro-secao {
  padding: 14px 0;
  border-top: 1px dashed rgba(0,0,0,0.1);
}
.registro-secao:first-child {
  border-top: none;
  padding-top: 6px;
}

.registro-label {
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--azul);
  opacity: 0.7;
  margin: 0 0 8px;
  font-weight: 800;
}

.registro-texto {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text);
  margin: 2px 0;
}

.lente-perspectiva-expandida {
  display: none;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text);
  margin-top: 8px;
  padding: 10px 12px;
  background: #ffffff;
  border-radius: 10px;
  animation: fadeInLente 0.2s ease;
}

@keyframes fadeInLente {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.btn-ver-perspectiva {
  background: none;
  border: none;
  color: var(--azul);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0 4px;
  opacity: 0.8;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}

.paragrafos-marcados {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(74,107,138,0.2);
}

.paragrafos-marcados-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--azul);
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.paragrafo-marcado-item {
  margin-bottom: 12px;
  padding: 10px 12px;
  background: rgba(74,107,138,0.06);
  border-radius: 8px;
  border-left: 2px solid var(--azul);
}

.paragrafo-marcado-texto {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.65;
  font-style: italic;
  margin: 0 0 6px;
}

.paragrafo-marcado-nota {
  font-size: 0.85rem;
  color: var(--azul);
  line-height: 1.6;
  margin: 0;
}

/* ── Marcações Emocionais ── */
.marcacoes-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.btn-marcacao {
  flex: 1;
  padding: 8px 4px;
  font-size: 1.25rem;
  line-height: 1;
  border: none;
  border-radius: 12px;
  background: #E0E5EC;
  box-shadow: 4px 4px 8px #b8bec7, -4px -4px 8px #ffffff;
  cursor: pointer;
  transition: box-shadow 0.18s ease, background 0.18s ease;
}

.btn-marcacao.marcado {
  box-shadow: inset 3px 3px 6px #b8bec7, inset -3px -3px 6px #ffffff;
}

.btn-marcacao[data-emoji="❤️"].marcado { background: #FFE8E8; }
.btn-marcacao[data-emoji="😢"].marcado { background: #E8F0FF; }
.btn-marcacao[data-emoji="🤔"].marcado { background: #FFF5E0; }
.btn-marcacao[data-emoji="💡"].marcado { background: #FFFBE0; }
.btn-marcacao[data-emoji="😊"].marcado { background: #E8FAF0; }

@keyframes carta-pulso {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}

.carta-badge-ativo {
  animation: carta-pulso 1.5s ease-in-out infinite;
}
