/**
 * ARQUIVO: carteira-anotacoes.css
 * CATEGORIA: Carteira Mobile › Sub-Aba Anotações & Leitor Apple Books
 * RESPONSABILIDADE: Estilos dedicados e 100% isolados para a seleção de clientes
 * e leitor editorial premium com temas e barra flutuante estilo Apple Books.
 */

/* ──────────────────────────────────────────────────────────────
   1. VISÃO 1: CARDS PREMIUM DE SELEÇÃO DE CLIENTES
   ────────────────────────────────────────────────────────────── */
.cm-notes-selection-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Barra de Busca de Anotações */
.cm-notes-search-wrap {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  padding: 9px 14px;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 12px;
}

.cm-notes-search-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 13.5px;
  font-family: inherit;
}

.cm-notes-search-wrap input::placeholder {
  color: rgba(255, 255, 255, 0.75);
}

.cm-notes-search-clear {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Header de Seção */
.cm-notes-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
  padding: 0 2px;
}

.cm-notes-header-title {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.3px;
}

.cm-notes-header-count {
  font-size: 12px;
  font-weight: 600;
  color: #6B7280;
}

/* Grade / Lista de Cards Premium */
.cm-notes-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Card Individual de Cliente para Anotações */
.cm-notes-client-card {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 16px;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.025);
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease, background 0.15s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cm-notes-client-card:active {
  transform: scale(0.985);
  background: #F9FAFB;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.015);
}

/* Topo do Card: Avatar, Nome e Indicador de Leitura */
.cm-notes-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cm-notes-avatar-box {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  letter-spacing: -0.5px;
}

.cm-notes-card-meta {
  flex: 1;
  min-width: 0;
}

.cm-notes-client-name {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.2px;
}

.cm-notes-client-contact {
  font-size: 12px;
  color: #6B7280;
  margin-top: 1px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cm-notes-badge-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 122, 255, 0.08);
  color: #007AFF;
  border: 1px solid rgba(0, 122, 255, 0.18);
  white-space: nowrap;
  flex-shrink: 0;
}

.cm-notes-badge-time.empty {
  background: rgba(107, 114, 128, 0.08);
  color: #6B7280;
  border-color: rgba(107, 114, 128, 0.16);
}

/* Snippet Editorial da Anotação no Card */
.cm-notes-card-snippet {
  font-family: Georgia, -apple-system, "Times New Roman", serif;
  font-size: 13.5px;
  line-height: 1.5;
  color: #374151;
  background: #F9FAFB;
  border-radius: 12px;
  padding: 10px 12px;
  font-style: italic;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  border-left: 3px solid #007AFF;
}

.cm-notes-card-snippet.empty {
  color: #9CA3AF;
  border-left-color: #E5E7EB;
  font-style: normal;
}

/* Rodapé do Card */
.cm-notes-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.cm-notes-footer-tag {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: #6B7280;
}

.cm-notes-open-action {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  font-weight: 700;
  color: #007AFF;
}


/* ──────────────────────────────────────────────────────────────
   2. VISÃO 2: LEITOR EDITORIAL APPLE BOOKS (Full Screen Modal)
   ────────────────────────────────────────────────────────────── */
.cm-reader-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10090;
  display: flex;
  flex-direction: column;
  background: var(--bg-card, var(--app-card-bg, #FFFFFF));
  color: var(--text-main, var(--app-text-main, #1C1C1E));
  transition: background 0.25s ease, color 0.25s ease;
  overflow: hidden;
  font-family: Georgia, "New York", -apple-system, serif;
  animation: cmReaderSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cmReaderSlideUp {
  from { transform: translateY(100%); opacity: 0.8; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes cmReaderSlideDown {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(100%); opacity: 0.8; }
}

.cm-reader-screen.exiting {
  animation: cmReaderSlideDown 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Barra Superior de Leitura (Apple Books Navigation Bar com Grid Robusto) */
.cm-reader-nav {
  display: grid;
  grid-template-columns: minmax(70px, max-content) 1fr minmax(70px, max-content);
  align-items: center;
  padding: calc(10px + env(safe-area-inset-top, 6px)) 16px 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: inherit;
  z-index: 20;
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}

.cm-reader-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: transparent;
  border: none;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 14.5px;
  font-weight: 500;
  color: #007AFF;
  cursor: pointer;
  padding: 4px 6px 4px 0;
  border-radius: 8px;
  white-space: nowrap;
  justify-self: start;
  transition: opacity 0.15s ease;
}

.cm-reader-back-btn:active {
  opacity: 0.6;
}

.cm-reader-header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  padding: 0 6px;
}

.cm-reader-book-title {
  font-size: 13.5px;
  font-weight: 600;
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  color: inherit;
  line-height: 1.25;
  letter-spacing: -0.1px;
}

.cm-reader-book-sub {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  color: #8E8E93;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  margin-top: 1px;
}

.cm-reader-nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  justify-self: end;
}

.cm-reader-icon-btn {
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  opacity: 0.75;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.cm-reader-icon-btn:active {
  opacity: 1;
  background: rgba(0, 0, 0, 0.06);
}

/* Área de Rolagem do Texto do Livro / Anotação */
.cm-reader-body-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px 22px 140px;
  position: relative;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

/* Efeito de Fade / Blur Suave na base como na Imagem 1 */
.cm-reader-bottom-fade {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 90px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(244, 244, 246, 0) 0%, rgba(244, 244, 246, 0.95) 80%, rgba(244, 244, 246, 1) 100%);
  z-index: 10;
  transition: background 0.3s ease;
}

/* Detalhes Clássicos do Topo do Texto (The Frog-Prince Style) */
.cm-reader-prologue {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 24px;
  padding: 0 10px;
}

.cm-reader-chapter-title {
  font-size: 21px;
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.2px;
  line-height: 1.35;
  margin-bottom: 10px;
  color: inherit;
  text-align: center;
}

.cm-reader-vintage-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #8E8E93;
  margin: 4px 0 12px;
  width: 100%;
  user-select: none;
}

.cm-reader-ornament-line {
  height: 1px;
  width: 44px;
  background: currentColor;
  opacity: 0.35;
}

.cm-reader-ornament-symbol {
  font-size: 13px;
  line-height: 1;
  opacity: 0.7;
}

.cm-reader-meta-subtitle {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 11.5px;
  color: #8E8E93;
  letter-spacing: 0.1px;
}

.cm-reader-meta-subtitle strong {
  color: inherit;
  font-weight: 600;
}

/* ──────────────────────────────────────────────────────────────
   2. SUPERFÍCIE UNIFICADA DE ESCRITA E LEITURA (WYSIWYG)
   Sem alternância brusca: o texto é lido e editado no mesmo container
   ────────────────────────────────────────────────────────────── */
.cm-reader-editor {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", -apple-system-ui-serif, Georgia, serif;
  font-size: var(--reader-font-size, 17px);
  line-height: 1.8;
  color: inherit;
  text-align: left;
  hyphens: none;
  word-break: break-word;
  cursor: text;
  min-height: 340px;
  position: relative;
  user-select: text;
  -webkit-user-select: text;
  outline: none !important;
  border: none !important;
  padding: 0 0 100px 0;
  margin: 0;
  background: transparent;
  box-shadow: none !important;
}

.cm-reader-editor:focus,
.cm-reader-editor:active {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

.cm-reader-editor p {
  margin-bottom: 1.1em;
  text-indent: 0;
}

.cm-reader-editor p:last-child {
  margin-bottom: 0;
}

/* Listas com Marcadores no Editor */
.cm-reader-editor ul {
  margin: 0.8em 0 1.1em 0;
  padding-left: 1.4em;
  list-style-type: disc;
}

.cm-reader-editor li {
  margin-bottom: 0.4em;
  line-height: 1.7;
}

.cm-reader-editor b,
.cm-reader-editor strong {
  font-weight: 700;
}

.cm-reader-editor i,
.cm-reader-editor em {
  font-style: italic;
}

/* Placeholder elegante quando o editor estiver vazio */
.cm-reader-editor:empty::before,
.cm-reader-editor[data-empty="true"]::before {
  content: attr(data-placeholder);
  color: #9CA3AF;
  font-style: italic;
  pointer-events: none;
  display: block;
}

/* ──────────────────────────────────────────────────────────────
   3. BARRA FLUTUANTE INFERIOR DE FORMATAÇÃO (B, I, BI, Marcadores)
   ────────────────────────────────────────────────────────────── */
.cm-reader-toolbar-container {
  position: fixed;
  bottom: calc(16px + env(safe-area-inset-bottom, 10px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 10095;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.cm-reader-pill-toolbar {
  pointer-events: auto;
  background: #111827 !important;
  color: #FFFFFF !important;
  border-radius: 999px;
  padding: 5px 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.cm-fmt-btn {
  background: transparent !important;
  border: none !important;
  color: #FFFFFF !important;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 15px;
  min-width: 42px;
  height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.16s ease;
  user-select: none;
  -webkit-user-select: none;
  opacity: 0.95;
}

.cm-fmt-btn strong,
.cm-fmt-btn b {
  font-weight: 800 !important;
  color: #FFFFFF !important;
}

.cm-fmt-btn em,
.cm-fmt-btn i {
  font-style: italic !important;
  font-family: Georgia, serif !important;
  color: #FFFFFF !important;
}

.cm-fmt-btn svg,
.cm-fmt-btn [data-lucide] {
  color: #FFFFFF !important;
  stroke: #FFFFFF !important;
}

.cm-fmt-btn:hover {
  color: #FFFFFF !important;
  background: rgba(255, 255, 255, 0.16) !important;
  opacity: 1;
}

.cm-fmt-btn:active {
  transform: scale(0.92);
}

/* Estado Ativo: Fundo Branco Puro com Letra Escura de Alto Contraste */
.cm-fmt-btn.active {
  background: #FFFFFF !important;
  color: #0F172A !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
  opacity: 1 !important;
}

.cm-fmt-btn.active strong,
.cm-fmt-btn.active b,
.cm-fmt-btn.active em,
.cm-fmt-btn.active i,
.cm-fmt-btn.active span {
  color: #0F172A !important;
}

.cm-fmt-btn.active svg,
.cm-fmt-btn.active [data-lucide] {
  color: #0F172A !important;
  stroke: #0F172A !important;
}

.cm-fmt-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.22);
  margin: 0 2px;
}

/* Botão Chevron Inferior ˅ para recolher */
.cm-reader-tool-collapse {
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.04);
  border: none;
  color: #6B7280;
  cursor: pointer;
  padding: 2px 10px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}

.cm-reader-tool-collapse:active {
  transform: translateY(2px);
}


/* ──────────────────────────────────────────────────────────────
   4. ADAPTAÇÃO AUTOMÁTICA AOS TEMAS DO SISTEMA
   (Padrão/White, Grafite, Midnight, Bege)
   ────────────────────────────────────────────────────────────── */

/* 1. Sistema: Padrão (White) */
[data-theme="white"] .cm-reader-screen,
body.theme-white .cm-reader-screen {
  background: #FFFFFF;
  color: #0F172A;
}
[data-theme="white"] .cm-reader-nav,
body.theme-white .cm-reader-nav {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}
[data-theme="white"] .cm-reader-bottom-fade,
body.theme-white .cm-reader-bottom-fade {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.95) 80%, #FFFFFF 100%);
}
[data-theme="white"] .cm-reader-book-sub,
[data-theme="white"] .cm-reader-meta-subtitle,
body.theme-white .cm-reader-book-sub,
body.theme-white .cm-reader-meta-subtitle {
  color: #64748B;
}

/* 2. Sistema: Grafite (Escuro & Branco Meio Creme) */
[data-theme="grafite"] .cm-reader-screen,
body.theme-grafite .cm-reader-screen {
  background: #16181D;
  color: #F6F3EC;
}
[data-theme="grafite"] .cm-reader-nav,
body.theme-grafite .cm-reader-nav {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
[data-theme="grafite"] .cm-reader-bottom-fade,
body.theme-grafite .cm-reader-bottom-fade {
  background: linear-gradient(to bottom, rgba(22, 24, 29, 0) 0%, rgba(22, 24, 29, 0.95) 80%, #16181D 100%);
}
[data-theme="grafite"] .cm-reader-book-sub,
[data-theme="grafite"] .cm-reader-meta-subtitle,
body.theme-grafite .cm-reader-book-sub,
body.theme-grafite .cm-reader-meta-subtitle {
  color: #9E988D;
}
[data-theme="grafite"] .cm-reader-vintage-ornament,
body.theme-grafite .cm-reader-vintage-ornament {
  color: #6B655B;
}
[data-theme="grafite"] .cm-notes-client-card {
  background: #21242B;
  border-color: rgba(255, 255, 255, 0.08);
  color: #F6F3EC;
}
[data-theme="grafite"] .cm-notes-client-name,
[data-theme="grafite"] .cm-notes-header-title {
  color: #F6F3EC;
}
[data-theme="grafite"] .cm-notes-client-contact,
[data-theme="grafite"] .cm-notes-header-count,
[data-theme="grafite"] .cm-notes-footer-tag {
  color: #9E988D;
}
[data-theme="grafite"] .cm-notes-card-snippet {
  background: #1C1F26;
  color: #CDC8BE;
  border-left-color: #38BDF8;
}
[data-theme="grafite"] .cm-notes-open-action {
  color: #38BDF8;
}

/* 3. Sistema: Midnight (Preto Profundo) */
[data-theme="midnight"] .cm-reader-screen,
body.theme-midnight .cm-reader-screen {
  background: #07090E;
  color: #FFFFFF;
}
[data-theme="midnight"] .cm-reader-nav,
body.theme-midnight .cm-reader-nav {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
[data-theme="midnight"] .cm-reader-bottom-fade,
body.theme-midnight .cm-reader-bottom-fade {
  background: linear-gradient(to bottom, rgba(7, 9, 14, 0) 0%, rgba(7, 9, 14, 0.95) 80%, #07090E 100%);
}
[data-theme="midnight"] .cm-reader-book-sub,
[data-theme="midnight"] .cm-reader-meta-subtitle,
body.theme-midnight .cm-reader-book-sub,
body.theme-midnight .cm-reader-meta-subtitle {
  color: #94A3B8;
}
[data-theme="midnight"] .cm-reader-vintage-ornament,
body.theme-midnight .cm-reader-vintage-ornament {
  color: #475569;
}
[data-theme="midnight"] .cm-notes-client-card {
  background: #0F131C;
  border-color: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}
[data-theme="midnight"] .cm-notes-client-name,
[data-theme="midnight"] .cm-notes-header-title {
  color: #FFFFFF;
}
[data-theme="midnight"] .cm-notes-client-contact,
[data-theme="midnight"] .cm-notes-header-count,
[data-theme="midnight"] .cm-notes-footer-tag {
  color: #94A3B8;
}
[data-theme="midnight"] .cm-notes-card-snippet {
  background: #161B26;
  color: #CBD5E1;
  border-left-color: #00B2FE;
}
[data-theme="midnight"] .cm-notes-open-action {
  color: #00B2FE;
}

/* 4. Sistema: Bege (Warm Luxury Editorial) */
[data-theme="bege"] .cm-reader-screen,
body.theme-bege .cm-reader-screen {
  background: #F4EFEA;
  color: #2D241E;
}
[data-theme="bege"] .cm-reader-nav,
body.theme-bege .cm-reader-nav {
  border-bottom-color: rgba(45, 36, 30, 0.08);
}
[data-theme="bege"] .cm-reader-bottom-fade,
body.theme-bege .cm-reader-bottom-fade {
  background: linear-gradient(to bottom, rgba(244, 239, 234, 0) 0%, rgba(244, 239, 234, 0.95) 80%, #F4EFEA 100%);
}
[data-theme="bege"] .cm-reader-book-sub,
[data-theme="bege"] .cm-reader-meta-subtitle,
body.theme-bege .cm-reader-book-sub,
body.theme-bege .cm-reader-meta-subtitle {
  color: #7D7065;
}
[data-theme="bege"] .cm-reader-vintage-ornament,
body.theme-bege .cm-reader-vintage-ornament {
  color: #B5A99D;
}
[data-theme="bege"] .cm-notes-client-card {
  background: #FDFBF7;
  border-color: rgba(45, 36, 30, 0.08);
  color: #2D241E;
}
[data-theme="bege"] .cm-notes-client-name,
[data-theme="bege"] .cm-notes-header-title {
  color: #2D241E;
}
[data-theme="bege"] .cm-notes-client-contact,
[data-theme="bege"] .cm-notes-header-count,
[data-theme="bege"] .cm-notes-footer-tag {
  color: #7D7065;
}
[data-theme="bege"] .cm-notes-card-snippet {
  background: #EFE9E2;
  color: #55483E;
  border-left-color: #C08A4E;
}
[data-theme="bege"] .cm-notes-open-action {
  color: #C08A4E;
}
[data-theme="bege"] .cm-fmt-btn.active {
  background: #C08A4E !important;
  color: #FFFFFF !important;
}
[data-theme="bege"] .cm-fmt-btn.active strong,
[data-theme="bege"] .cm-fmt-btn.active b,
[data-theme="bege"] .cm-fmt-btn.active em,
[data-theme="bege"] .cm-fmt-btn.active i,
[data-theme="bege"] .cm-fmt-btn.active svg {
  color: #FFFFFF !important;
  stroke: #FFFFFF !important;
}

[data-theme="midnight"] .cm-fmt-btn.active {
  background: #00B2FE !important;
  color: #06090E !important;
}
[data-theme="midnight"] .cm-fmt-btn.active strong,
[data-theme="midnight"] .cm-fmt-btn.active b,
[data-theme="midnight"] .cm-fmt-btn.active em,
[data-theme="midnight"] .cm-fmt-btn.active i,
[data-theme="midnight"] .cm-fmt-btn.active svg {
  color: #06090E !important;
  stroke: #06090E !important;
}

[data-theme="grafite"] .cm-fmt-btn.active {
  background: #F6F3EC !important;
  color: #16181D !important;
}
[data-theme="grafite"] .cm-fmt-btn.active strong,
[data-theme="grafite"] .cm-fmt-btn.active b,
[data-theme="grafite"] .cm-fmt-btn.active em,
[data-theme="grafite"] .cm-fmt-btn.active i,
[data-theme="grafite"] .cm-fmt-btn.active svg {
  color: #16181D !important;
  stroke: #16181D !important;
}
