/* css/style.css */
/* CSS Variables & Tokens for Premium Dark/Glass Design */
:root {
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Color Palette */
  --bg-main: #0B0813;
  --bg-secondary: #120e20;
  --bg-card: rgba(22, 17, 38, 0.65);
  --bg-sidebar: rgba(18, 14, 32, 0.96);
  --bg-hover: rgba(45, 37, 74, 0.4);
  
  --accent: #6d28d9;
  --accent-light: #8b5cf6;
  --accent-glow: rgba(109, 40, 217, 0.3);
  
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --border: rgba(109, 40, 217, 0.15);
  --border-active: rgba(139, 92, 246, 0.4);
  
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;

  /* Glassmorphism Specs */
  --glass-backdrop: blur(16px) saturate(180%);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Reset & Global Base styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
}

/* Fundo com brilho (2026-09-30): antes era background-attachment: fixed no body, que obriga o navegador
   a repintar a página inteira a cada passo da rolagem. Agora é uma camada fixa separada (só no painel,
   .app-container), que o navegador compõe sem repintar. */
.app-container::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(109, 40, 217, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 45%);
}

/* App Container Layout */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* Collapsible Glassmorphism Sidebar */
.sidebar {
  width: 78px;
  /* Sem backdrop-filter (2026-09-30): o desfoque do fundo era recalculado a cada quadro da rolagem.
     Fundo quase opaco no lugar, visual praticamente igual (o que fica atrás é o fundo escuro). */
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 24px 14px;
  position: fixed;
  height: 100vh;
  z-index: 1000;
  box-shadow: var(--glass-shadow);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.sidebar:hover {
  width: 260px;
  padding: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  width: 100%;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px var(--accent-glow);
  flex-shrink: 0;
  overflow: hidden;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(to right, #ffffff, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: opacity 0.2s ease, max-width 0.2s ease;
}

.sidebar:hover .brand-name {
  opacity: 1;
  max-width: 200px;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  width: 100%;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  width: 100%;
  background: transparent;
}

.nav-item i {
  flex-shrink: 0;
}

.nav-item span {
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: opacity 0.2s ease, max-width 0.2s ease, margin-left 0.2s ease;
  margin-left: 0;
}

.sidebar:hover .nav-item span {
  opacity: 1;
  max-width: 200px;
  margin-left: 12px;
}

.nav-item:hover {
  background-color: var(--bg-hover);
  color: var(--text-primary);
  border-color: rgba(109, 40, 217, 0.1);
  transform: translateX(4px);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.2), rgba(139, 92, 246, 0.05));
  color: var(--text-primary);
  border-color: var(--border-active);
  box-shadow: inset 0 0 8px rgba(109, 40, 217, 0.1);
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 4px;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--border-active);
  flex-shrink: 0;
}

.user-info {
  display: flex;
  flex-direction: column;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: opacity 0.2s ease, max-width 0.2s ease;
}

.sidebar:hover .user-info {
  opacity: 1;
  max-width: 200px;
}

.user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.user-role {
  font-size: 11px;
  color: var(--text-muted);
}

/* Main Content Area */
.main-content {
  margin-left: 78px;
  flex: 1;
  padding: 40px;
  min-height: 100vh;
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar:hover ~ .main-content {
  margin-left: 260px;
}

/* Day button circular styles matching Image 5 */
.day-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.day-btn.active {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: white !important;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}

/* Views & Pages structure */
.view-header {
  margin-bottom: 32px;
  animation: fadeIn 0.4s ease-out;
}

.view-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.view-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
}

/* Layout Grids */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Card & Glass container */
.glass-card {
  /* Sem backdrop-filter (2026-09-30): eram centenas de desfoques recalculados na rolagem (cada um dos
     713 cartões de perfil da tela Contas usa .glass-card). O fundo atrás é escuro e quase liso, então o
     desfoque quase não aparecia; o custo na rolagem era enorme. */
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--glass-shadow);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.glass-card:hover {
  border-color: var(--border-active);
}

/* Stats Card */
.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 500;
}

.stat-icon-wrapper {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(109, 40, 217, 0.1);
  color: var(--accent-light);
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -1px;
}

.stat-footer {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Form Styles */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.input-text, .input-select, .textarea-caption {
  width: 100%;
  background: rgba(22, 17, 38, 0.8);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 14px;
  outline: none;
  transition: all 0.25s ease;
}

.input-text:focus, .input-select:focus, .textarea-caption:focus {
  border-color: var(--accent-light);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.25);
  background: var(--bg-hover);
}

.textarea-caption {
  min-height: 120px;
  resize: vertical;
}

/* Network Selectors */
.network-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.network-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(22, 17, 38, 0.5);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.25s ease;
  user-select: none;
}

.network-pill:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: rgba(139, 92, 246, 0.25);
}

/* Platform Branding States when Active */
.network-pill.active.instagram {
  border-color: #e1306c;
  background: rgba(225, 48, 108, 0.1);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(225, 48, 108, 0.15);
}

.network-pill.active.facebook {
  border-color: #1877f2;
  background: rgba(24, 119, 242, 0.1);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(24, 119, 242, 0.15);
}

.network-pill.active.tiktok {
  border-color: #00f2fe;
  background: rgba(0, 242, 254, 0.08);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

.network-pill.active.youtube {
  border-color: #ff0000;
  background: rgba(255, 0, 0, 0.08);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.15);
}

.network-pill.active.x {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}

.network-pill.active.pinterest {
  border-color: #cb141d;
  background: rgba(203, 20, 29, 0.08);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(203, 20, 29, 0.15);
}

.network-pill.active.threads {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}

.network-pill.active.kwai {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.15);
}

/* Premium Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px var(--accent-glow);
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(109, 40, 217, 0.5);
  filter: brightness(1.1);
}

.btn-primary:disabled {
  background: var(--text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.6;
}

/* Custom File Uploader */
.file-uploader-box {
  border: 2px dashed var(--border);
  border-radius: 14px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  background: rgba(22, 17, 38, 0.3);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.file-uploader-box:hover {
  border-color: var(--accent-light);
  background: var(--bg-hover);
}

.file-uploader-icon {
  color: var(--accent-light);
}

.file-preview {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  width: 100%;
}

.file-thumbnail {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Calendar Grid */
.calendar-month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.calendar-weekday {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 8px 0;
}

.calendar-day-cell {
  min-height: 110px;
  background: rgba(22, 17, 38, 0.4);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.25s ease;
}

.calendar-day-cell:hover {
  background: var(--bg-hover);
  border-color: var(--border-active);
}

.calendar-day-number {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.calendar-day-cell.today .calendar-day-number {
  color: var(--accent-light);
  font-weight: 800;
}

.calendar-day-cell.today {
  border-color: var(--accent-light);
  box-shadow: inset 0 0 10px rgba(109, 40, 217, 0.1);
}

.calendar-post-badge {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  color: #fff;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
  padding-right: 22px !important;
}

.btn-delete-post {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  display: none;
  padding: 2px;
  line-height: 1;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.calendar-post-badge:hover .btn-delete-post {
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-delete-post:hover {
  color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.25);
}

.calendar-post-badge.instagram { background: rgba(225, 48, 108, 0.85); }
.calendar-post-badge.facebook { background: rgba(24, 119, 242, 0.85); }
.calendar-post-badge.tiktok { background: #000000; border: 1px solid rgba(0, 242, 254, 0.4); }
.calendar-post-badge.youtube { background: rgba(255, 0, 0, 0.85); }
.calendar-post-badge.x { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.3); }
.calendar-post-badge.pinterest { background: rgba(203, 20, 29, 0.85); }
.calendar-post-badge.threads { background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.2); }
.calendar-post-badge.kwai { background: rgba(245, 158, 11, 0.85); }

/* Profile layout */
.prof-connect-btn {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.prof-connect-btn:hover {
  background: rgba(255,255,255,0.1);
}

.prof-connect-btn.connected {
  border-color: rgba(16,185,129,0.4);
  color: #10b981;
  background: rgba(16,185,129,0.1);
}

.prof-connect-btn.connected:hover {
  background: rgba(16,185,129,0.2);
}

.account-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.account-card-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.account-status {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.account-status.connected {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.account-status.disconnected {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-disconnect {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-disconnect:hover {
  border-color: var(--error);
  color: var(--error);
  background: rgba(239, 68, 68, 0.05);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Custom premium scrollbar for accounts list */
#accounts-facebook-list::-webkit-scrollbar,
#accounts-instagram-list::-webkit-scrollbar,
#accounts-tiktok-list::-webkit-scrollbar,
#accounts-youtube-list::-webkit-scrollbar {
  width: 5px;
}
#accounts-facebook-list::-webkit-scrollbar-track,
#accounts-instagram-list::-webkit-scrollbar-track,
#accounts-tiktok-list::-webkit-scrollbar-track,
#accounts-youtube-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
}
#accounts-facebook-list::-webkit-scrollbar-thumb,
#accounts-instagram-list::-webkit-scrollbar-thumb,
#accounts-tiktok-list::-webkit-scrollbar-thumb,
#accounts-youtube-list::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.3);
  border-radius: 4px;
}
#accounts-facebook-list::-webkit-scrollbar-thumb:hover,
#accounts-instagram-list::-webkit-scrollbar-thumb:hover,
#accounts-tiktok-list::-webkit-scrollbar-thumb:hover,
#accounts-youtube-list::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.55);
}



/* Listas longas (2026-09-30): o navegador pula o desenho dos cartões fora da tela (713 perfis na tela
   Contas e no Calendário). contain-intrinsic-size "auto" reserva a altura já medida, pra barra de
   rolagem não pular. */
.profile-card,
.calendar-profile-item {
  content-visibility: auto;
  contain-intrinsic-size: auto 72px;
}

/* Celular e tablet (2026-10-05): o painel estourava a largura da tela (Painel 551 px a mais, Agendar
   Post 551, Contas 330). O conteúdo principal agora pode encolher até a tela, os layouts de duas
   colunas viram uma, e as linhas de abas/botões quebram linha. As colunas ficam em estilo inline no
   HTML, por isso o !important. */
.main-content { min-width: 0; }
@media (max-width: 900px) {
  .dash-cols, .composer-cols { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (max-width: 600px) {
  .main-content { padding: 20px 14px; }
  .view-header { flex-wrap: wrap; gap: 12px; }
  .view-header-actions, .composer-tabs { flex-wrap: wrap; }
  .view-header-actions > button { flex: 1 1 auto; }
  .composer-tabs > button { flex: 1 1 auto; padding: 9px 12px !important; justify-content: center; }
  #composer-network-captions-box [style*="grid-template-columns: 1fr 1fr"],
  #composer-caption-lists-box [style*="grid-template-columns: 1fr 1fr"],
  #composer-music-section [style*="grid-template-columns: 1fr 1fr"],
  #multi-profile-list { grid-template-columns: minmax(0, 1fr) !important; }
  div:has(> #btn-clipei-platform-instagram), div:has(> #clipei-qty-controls) { flex-wrap: wrap; }
  #dashboard-upcoming-list > div { flex-wrap: wrap; row-gap: 8px; padding: 10px 12px !important; }
  #dashboard-upcoming-list > div > div:first-child { flex: 1 1 100% !important; gap: 10px !important; }
}

/* ── Central de Comentários (Fase 1, 2026-10-04; redesenho no mesmo dia) — tela em js/comments_v1.js ──
   Cada rede tem a sua cor (--net-grad / --net-color, definidas pelo script em cada cartão), para dar
   para achar tudo de relance: cartões por rede no topo, perfis na lateral, comentários agrupados por post. */
.comments-nav-badge {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff; font-size: 11px; font-weight: 700;
  align-items: center; justify-content: center;
}
/* Menu recolhido: o ícone não pode encolher (o contador o espremia até sumir) e o contador vira uma
   bolinha no canto do ícone; com o menu aberto volta para o fim da linha. */
.nav-item > svg { flex-shrink: 0; }
#nav-comments { position: relative; }
.nav-item .comments-nav-badge { position: absolute; top: 2px; left: 28px; opacity: 1; max-width: none; margin-left: 0; min-width: 18px; height: 18px; padding: 0 5px; font-size: 10px; box-shadow: 0 0 0 2px var(--bg-main); }
.sidebar:hover .nav-item .comments-nav-badge { position: static; margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; font-size: 11px; box-shadow: none; }
#view-comments svg { flex: 0 0 auto; }

/* Cabeçalho */
.cm-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 18px; }
.cm-header-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cm-last-sync { font-size: 12px; color: var(--text-muted); margin-right: 4px; }
.cm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 12px;
  background: var(--bg-hover); color: var(--text-primary); border: 1px solid var(--border-active);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s;
}
.cm-btn svg { width: 16px; height: 16px; }
.cm-btn:hover:not(:disabled) { border-color: var(--accent-light); transform: translateY(-1px); }
.cm-btn:disabled { opacity: .55; cursor: wait; }
.cm-btn-primary { background: linear-gradient(135deg, var(--accent-light), var(--accent)); border-color: transparent; color: #fff; box-shadow: 0 6px 18px var(--accent-glow); }
.is-loading svg { animation: cm-spin 1s linear infinite; }
@keyframes cm-spin { to { transform: rotate(360deg); } }

/* Cartões por rede */
.cm-networks { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 12px; margin-bottom: 14px; }
.cm-net-card {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; padding: 14px; text-align: left;
  border-radius: 16px; background: var(--bg-card); border: 1px solid var(--border); color: var(--text-primary);
  font: inherit; cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s;
}
.cm-net-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--net-grad); }
.cm-net-card::after { content: ''; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--net-grad); opacity: .10; pointer-events: none; }
.cm-net-card:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .35); border-color: var(--border-active); }
.cm-net-card.is-active {
  border: 2px solid transparent; padding: 13px;
  background: linear-gradient(var(--bg-secondary), var(--bg-secondary)) padding-box, var(--net-grad) border-box;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .4);
}
.cm-net-card.is-active::after { opacity: .18; }
.cm-net-card.is-soon { cursor: not-allowed; opacity: .55; filter: saturate(.6); }
.cm-net-icon {
  width: 44px; height: 44px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--net-grad); color: #fff; box-shadow: 0 6px 14px rgba(0, 0, 0, .3); flex: 0 0 auto;
}
.cm-net-icon svg { width: 22px; height: 22px; }
.cm-net-body { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.cm-net-name { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.cm-net-count { font-size: 13px; color: var(--text-secondary); }
.cm-net-count strong { font-size: 24px; line-height: 1.1; color: var(--text-primary); font-weight: 800; }
.cm-net-total { font-size: 11px; color: var(--text-muted); }
.cm-net-soon { font-size: 11px; color: var(--text-muted); line-height: 1.3; }

/* Duas colunas: perfis + comentários */
.cm-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; align-items: start; }
.cm-sidebar {
  position: sticky; top: 16px; display: flex; flex-direction: column; gap: 10px; padding: 12px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; max-height: calc(100vh - 32px);
}
.cm-sidebar-head { display: flex; align-items: center; justify-content: space-between; }
.cm-sidebar-title { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .04em; }
.cm-sidebar-title svg { width: 15px; height: 15px; }
.cm-search {
  width: 100%; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-secondary);
  color: var(--text-primary); font: inherit; font-size: 13px; outline: none;
}
.cm-search:focus { border-color: var(--accent-light); box-shadow: 0 0 0 3px var(--accent-glow); }
.cm-profiles { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; min-height: 0; margin: 0 -4px; padding: 0 4px; }
.cm-profile {
  position: relative; display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border-radius: 12px;
  background: transparent; border: 1px solid transparent; color: var(--text-primary); font: inherit; text-align: left; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.cm-profile:hover { background: var(--bg-hover); }
.cm-profile.is-active { background: rgba(139, 92, 246, .16); border-color: var(--border-active); }
.cm-profile.is-active::before { content: ''; position: absolute; left: -4px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--accent-light); }
.cm-profile-body { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; gap: 2px; }
.cm-profile-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-profile-sub { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-muted); }
.cm-dots { display: inline-flex; gap: 3px; }
.cm-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: 0 0 auto; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); }
.cm-count {
  min-width: 26px; height: 22px; padding: 0 7px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--text-muted); background: var(--bg-hover); flex: 0 0 auto;
}
.cm-count.has-pending { color: #fff; background: linear-gradient(135deg, #f59e0b, #ef4444); }
.cm-side-empty { font-size: 13px; color: var(--text-muted); padding: 10px 6px; }

.cm-avatar {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 700; background: var(--bg-hover); letter-spacing: .02em;
}
.cm-avatar svg { width: 17px; height: 17px; }
.cm-avatar-sm { width: 32px; height: 32px; font-size: 12px; }
.cm-avatar-all { background: linear-gradient(135deg, var(--accent-light), var(--accent)); }
.cm-avatar-anon { background: var(--bg-hover); color: var(--text-muted); border: 1px dashed var(--border-active); }

/* Barra de abas + busca */
.cm-main { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cm-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.cm-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.cm-tab {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; white-space: nowrap;
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text-secondary); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.cm-tab svg { width: 15px; height: 15px; }
.cm-tab:hover { color: var(--text-primary); border-color: var(--border-active); }
.cm-tab-count { min-width: 22px; padding: 1px 7px; border-radius: 999px; font-size: 11px; background: var(--bg-hover); color: var(--text-primary); text-align: center; }
.cm-tab.is-active { background: linear-gradient(135deg, var(--accent-light), var(--accent)); border-color: transparent; color: #fff; box-shadow: 0 6px 16px var(--accent-glow); }
.cm-tab.is-active .cm-tab-count { background: rgba(255, 255, 255, .22); color: #fff; }
.cm-tab.is-pending:not(.is-active) .cm-tab-count { background: rgba(245, 158, 11, .18); color: var(--warning); }
.cm-tab.is-answered:not(.is-active) .cm-tab-count { background: rgba(16, 185, 129, .16); color: var(--success); }
.cm-tab.is-hidden:not(.is-active) .cm-tab-count { background: rgba(239, 68, 68, .16); color: var(--error); }
.cm-search-wrap { position: relative; flex: 1 1 220px; max-width: 340px; }
.cm-search-wrap svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-muted); pointer-events: none; }
.cm-search-wrap .cm-search { padding-left: 34px; }

.cm-insight { display: flex; flex-wrap: wrap; gap: 8px; }
.cm-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-secondary); }
.cm-chip svg { width: 14px; height: 14px; }
.cm-chip.is-warn { color: #fcd34d; border-color: rgba(245, 158, 11, .35); background: rgba(245, 158, 11, .08); }
.cm-chip.is-info { color: #93c5fd; border-color: rgba(59, 130, 246, .35); background: rgba(59, 130, 246, .08); }

.cm-feedback { display: flex; align-items: flex-start; gap: 8px; padding: 10px 14px; border-radius: 12px; font-size: 14px; overflow-wrap: anywhere; }
.cm-feedback svg { width: 18px; height: 18px; margin-top: 1px; }
.cm-feedback.is-ok { background: rgba(16, 185, 129, .12); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, .3); }
.cm-feedback.is-error { background: rgba(239, 68, 68, .12); color: #fca5a5; border: 1px solid rgba(239, 68, 68, .3); }

/* Feed: um cartão por post */
.cm-feed { display: flex; flex-direction: column; gap: 16px; }
.cm-post { position: relative; overflow: hidden; border-radius: 16px; background: var(--bg-card); border: 1px solid var(--border); }
.cm-post::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--net-grad); }
.cm-post-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px 12px 20px; border-bottom: 1px solid var(--border); background: linear-gradient(90deg, rgba(255, 255, 255, .025), transparent 60%); }
.cm-post-thumb-link { flex: 0 0 auto; display: inline-flex; border-radius: 12px; }
.cm-post-thumb { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; background: var(--bg-hover); display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.cm-post-thumb svg { width: 22px; height: 22px; }
.cm-post-info { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cm-post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.cm-net-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 7px; border-radius: 999px; color: #fff; font-size: 11px; font-weight: 700; }
.cm-net-pill svg { width: 13px; height: 13px; }
.cm-post-profile { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.cm-post-account { font-size: 12px; color: var(--text-muted); }
.cm-post-caption { font-size: 13px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-post-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: 0 0 auto; }
.cm-post-n { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.cm-link { display: inline-flex; align-items: center; gap: 4px; background: none; border: none; padding: 0; color: var(--accent-light); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; text-decoration: none; }
.cm-link:hover { text-decoration: underline; }
.cm-link svg { width: 13px; height: 13px; }

.cm-comments { padding: 2px 16px 8px 20px; }
.cm-comment { padding: 14px 0; border-top: 1px dashed var(--border); }
.cm-comment:first-child { border-top: none; }
.cm-comment.is-hidden, .cm-comment.is-ignored { opacity: .72; }
.cm-comment.is-leaving { overflow: hidden; opacity: 0; transform: translateX(24px); transition: opacity .3s, transform .3s, max-height .3s, padding .3s; padding-top: 0; padding-bottom: 0; }
#cm-toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 2500; display: flex; flex-direction: column; gap: 8px; width: min(560px, calc(100vw - 32px)); pointer-events: none; }
.cm-toast { display: flex; align-items: flex-start; gap: 8px; padding: 11px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; box-shadow: 0 12px 30px rgba(0, 0, 0, .45); animation: cm-toast-in .25s ease-out; transition: opacity .3s, transform .3s; }
.cm-toast svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; }
.cm-toast.is-ok { color: #d1fae5; background: #064e3b; border: 1px solid rgba(16, 185, 129, .6); }
.cm-toast.is-erro { color: #fee2e2; background: #7f1d1d; border: 1px solid rgba(239, 68, 68, .6); }
.cm-toast.is-out { opacity: 0; transform: translateY(8px); }
@keyframes cm-toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.cm-comment-top { display: flex; align-items: center; gap: 10px; }
.cm-comment-who { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.cm-author { font-size: 14px; font-weight: 700; color: var(--text-primary); overflow-wrap: anywhere; }
.cm-author.is-anon { display: inline-flex; align-items: center; gap: 5px; color: var(--text-secondary); font-weight: 600; font-style: italic; cursor: help; }
.cm-author.is-anon svg { width: 13px; height: 13px; }
.cm-time { font-size: 12px; color: var(--text-muted); }
.cm-status { padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; border: 1px solid var(--border); white-space: nowrap; }
.cm-status.is-pending { color: #fcd34d; background: rgba(245, 158, 11, .10); border-color: rgba(245, 158, 11, .35); }
.cm-status.is-answered { color: #6ee7b7; background: rgba(16, 185, 129, .10); border-color: rgba(16, 185, 129, .35); }
.cm-status.is-ignored { color: var(--text-muted); }
.cm-status.is-hidden { color: #fca5a5; background: rgba(239, 68, 68, .10); border-color: rgba(239, 68, 68, .35); }
.cm-text { margin: 8px 0 0 42px; font-size: 15px; line-height: 1.5; color: var(--text-primary); white-space: pre-wrap; overflow-wrap: anywhere; }
.cm-reply-bubble {
  margin: 10px 0 0 42px; padding: 9px 12px; border-radius: 12px; display: flex; flex-direction: column; gap: 3px;
  background: rgba(139, 92, 246, .09); border-left: 3px solid var(--net-color);
}
.cm-reply-label { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: var(--accent-light); text-transform: uppercase; letter-spacing: .04em; }
.cm-reply-label svg { width: 13px; height: 13px; }
.cm-reply-text { font-size: 14px; color: var(--text-primary); white-space: pre-wrap; overflow-wrap: anywhere; }
.cm-reply-info { font-size: 11px; color: var(--text-muted); }
.cm-blocked { margin: 8px 0 0 42px; display: flex; align-items: center; gap: 6px; font-size: 12px; color: #fca5a5; }
.cm-blocked svg { width: 14px; height: 14px; }

.cm-actions { margin: 10px 0 0 42px; display: flex; flex-wrap: wrap; gap: 6px; }
.cm-act {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; cursor: pointer; text-decoration: none;
  background: var(--bg-hover); color: var(--text-primary); border: 1px solid var(--border); font: inherit; font-size: 13px; font-weight: 600;
  transition: border-color .15s, transform .15s;
}
.cm-act svg { width: 15px; height: 15px; }
.cm-act:hover:not(:disabled) { border-color: var(--border-active); transform: translateY(-1px); }
.cm-act:disabled { opacity: .45; cursor: not-allowed; }
.cm-act.is-primary { background: var(--net-grad); border-color: transparent; color: #fff; }
.cm-act.is-danger { color: #fca5a5; border-color: rgba(239, 68, 68, .35); }
.cm-act.is-ghost { background: transparent; color: var(--text-secondary); }
.cm-act.is-ai { border: 1px solid transparent; background: linear-gradient(var(--bg-secondary), var(--bg-secondary)) padding-box, linear-gradient(135deg, #8b5cf6, #ec4899) border-box; color: #f0abfc; }
.cm-act.is-dice { background: rgba(16, 185, 129, .12); border-color: rgba(16, 185, 129, .4); color: #6ee7b7; }
.cm-act.is-like.is-liked { background: rgba(24, 119, 242, .18); border-color: rgba(24, 119, 242, .55); color: #8ab4ff; }
.cm-act.is-like.is-liked svg { fill: currentColor; }

/* Caixa de resposta */
.cm-composer { margin: 10px 0 0 42px; padding: 12px; border-radius: 14px; background: var(--bg-secondary); border: 1px solid var(--border-active); }
.cm-suggest-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.cm-suggest-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--accent-light); }
.cm-suggest-label svg { width: 14px; height: 14px; }
.cm-suggest-more { font-size: 12px; }
.cm-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.cm-quick-chip.is-suggestion { text-align: left; border-radius: 12px; background: rgba(139, 92, 246, .10); border-color: var(--border-active); }
.cm-quick-chip.is-suggestion:hover { background: rgba(139, 92, 246, .2); }
.cm-quick-chip { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-hover); color: var(--text-primary); font: inherit; font-size: 13px; cursor: pointer; }
.cm-quick-chip:hover { border-color: var(--accent-light); }
.cm-textarea {
  width: 100%; min-height: 76px; resize: vertical; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg-main); color: var(--text-primary); font: inherit; font-size: 14px; line-height: 1.45; outline: none;
}
.cm-textarea:focus { border-color: var(--accent-light); box-shadow: 0 0 0 3px var(--accent-glow); }
.cm-composer-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.cm-counter { font-size: 12px; color: var(--text-muted); }
.cm-spacer { flex: 1 1 auto; }
.cm-send {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px; border: none; color: #fff;
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: 0 6px 16px rgba(0, 0, 0, .3);
}
.cm-send svg { width: 16px; height: 16px; }
.cm-send:disabled { opacity: .55; cursor: wait; }
.cm-result { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; padding: 9px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.cm-result svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 1px; }
.cm-result.is-ok { color: #6ee7b7; background: rgba(16, 185, 129, .12); border: 1px solid rgba(16, 185, 129, .35); }
.cm-result.is-erro { color: #fca5a5; background: rgba(239, 68, 68, .12); border: 1px solid rgba(239, 68, 68, .35); }
.cm-comment > .cm-result { margin-left: 42px; }

/* Estado vazio e carregando */
.cm-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 42px 20px; border-radius: 16px; background: var(--bg-card); border: 1px dashed var(--border-active); }
.cm-empty-icon { width: 64px; height: 64px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, #F58529, #DD2A7B 45%, #1877F2); box-shadow: 0 10px 26px rgba(221, 42, 123, .3); margin-bottom: 4px; }
.cm-empty-icon svg { width: 28px; height: 28px; }
.cm-empty strong { font-size: 17px; }
.cm-empty p { max-width: 460px; font-size: 14px; color: var(--text-secondary); }
.cm-empty .cm-btn { margin-top: 6px; }
.cm-skeleton { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 16px; background: var(--bg-card); border: 1px solid var(--border); }
.cm-skeleton span { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--bg-hover) 0%, rgba(139, 92, 246, .22) 50%, var(--bg-hover) 100%); background-size: 200% 100%; animation: cm-shimmer 1.3s infinite; }
.cm-skeleton span:nth-child(1) { width: 40%; }
.cm-skeleton span:nth-child(2) { width: 85%; }
.cm-skeleton span:nth-child(3) { width: 60%; }
@keyframes cm-shimmer { to { background-position: -200% 0; } }

/* Janela "Perfis e tom de voz" */
.cm-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: flex-start; justify-content: center; padding: 24px 16px; overflow-y: auto; background: rgba(5, 3, 10, .78); }
.cm-modal-card { width: 100%; max-width: 780px; border-radius: 18px; background: var(--bg-secondary); border: 1px solid var(--border-active); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
.cm-modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.cm-modal-head h3 { margin: 0 0 4px; font-size: 19px; }
.cm-modal-head p { margin: 0; font-size: 13px; color: var(--text-secondary); max-width: 600px; }
.cm-icon-btn { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); background: var(--bg-hover); color: var(--text-primary); cursor: pointer; flex: 0 0 auto; }
.cm-icon-btn svg { width: 18px; height: 18px; }
.cm-modal-body { padding: 14px 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.cm-prow { border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-card); }
.cm-prow.is-on { border-color: var(--border-active); }
.cm-prow-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cm-prow-title { display: flex; flex-direction: column; flex: 1 1 160px; min-width: 0; }
.cm-prow-title strong { font-size: 15px; }
.cm-prow-title span { font-size: 12px; color: var(--text-muted); }
.cm-prow-title .cm-niche-tag { margin-top: 3px; align-self: flex-start; padding: 2px 9px; border-radius: 999px; font-size: 11px; color: #6ee7b7; background: rgba(16, 185, 129, .1); border: 1px solid rgba(16, 185, 129, .3); }
.cm-prow-title .cm-niche-tag.is-none { color: var(--text-muted); background: var(--bg-hover); border-color: var(--border); }
.cm-niche-help { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 12px; font-size: 12px; color: var(--text-secondary); background: rgba(16, 185, 129, .07); border: 1px solid rgba(16, 185, 129, .25); }
.cm-niche-help svg { width: 16px; height: 16px; color: #6ee7b7; flex: 0 0 auto; margin-top: 1px; }
.cm-switch { position: relative; display: inline-flex; width: 44px; height: 24px; flex: 0 0 auto; cursor: pointer; }
.cm-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.cm-switch-ui { position: absolute; inset: 0; border-radius: 12px; background: var(--bg-hover); border: 1px solid var(--border-active); transition: background .2s; }
.cm-switch-ui::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.cm-switch input:checked + .cm-switch-ui { background: linear-gradient(135deg, #10b981, #059669); border-color: transparent; }
.cm-switch input:checked + .cm-switch-ui::after { transform: translateX(20px); }
.cm-switch input:focus-visible + .cm-switch-ui { box-shadow: 0 0 0 3px var(--accent-glow); }
.cm-acc-list { display: flex; flex-direction: column; gap: 6px; }
.cm-acc { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; font-size: 13px; color: var(--text-secondary); }
.cm-acc-name { color: var(--text-primary); font-weight: 600; }
.cm-acc-info { color: var(--text-muted); font-size: 12px; }
.cm-acc.has-error .cm-acc-info { color: #fcd34d; }
.cm-acc-error { flex-basis: 100%; color: #fca5a5; font-size: 12px; overflow-wrap: anywhere; }
.cm-voice { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; padding-top: 10px; border-top: 1px dashed var(--border); }
.cm-voice-help { grid-column: 1 / -1; font-size: 12px; color: var(--text-secondary); }
.cm-field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-secondary); }
.cm-field-wide, .cm-voice .cm-btn { grid-column: 1 / -1; }
.cm-voice .cm-btn { justify-self: start; }
.cm-input { width: 100%; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-main); color: var(--text-primary); font: inherit; font-size: 14px; outline: none; }
.cm-input:focus { border-color: var(--accent-light); }
textarea.cm-input { resize: vertical; }
.cm-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); }
.cm-check input { width: 17px; height: 17px; accent-color: var(--accent-light); }

/* Tablet: perfis viram uma faixa rolável em cima */
@media (max-width: 900px) {
  .cm-layout { grid-template-columns: minmax(0, 1fr); }
  .cm-sidebar { position: static; max-height: none; }
  .cm-profiles { flex-direction: row; overflow-x: auto; overflow-y: hidden; padding-bottom: 6px; scrollbar-width: thin; scrollbar-color: var(--border-active) transparent; }
  .cm-profile { width: auto; min-width: 210px; max-width: 250px; flex: 0 0 auto; background: var(--bg-secondary); border-color: var(--border); }
  .cm-profile.is-active::before { left: 10px; right: 10px; top: auto; bottom: -1px; width: auto; height: 3px; }
  .cm-search-wrap { max-width: none; }
}
/* Celular */
@media (max-width: 600px) {
  .cm-header-actions { width: 100%; }
  .cm-header-actions .cm-btn { flex: 1 1 auto; }
  .cm-last-sync { width: 100%; }
  /* width 0 + min-width 100%: a faixa rola por dentro em vez de esticar a página (a soma dos cartões
     entrava na largura mínima do conteúdo e criava rolagem lateral). */
  .cm-networks { display: flex; overflow-x: auto; scroll-snap-type: x proximity; gap: 8px; padding-bottom: 4px; scrollbar-width: none; width: 0; min-width: 100%; }
  .cm-networks::-webkit-scrollbar { display: none; }
  .cm-net-card { flex: 0 0 142px; flex-direction: column; align-items: flex-start; padding: 12px; gap: 8px; scroll-snap-align: start; }
  .cm-net-card.is-active { padding: 11px; }
  .cm-net-icon { width: 36px; height: 36px; border-radius: 11px; }
  .cm-net-icon svg { width: 18px; height: 18px; }
  .cm-net-count strong { font-size: 20px; }
  .cm-post-head { padding: 12px 12px 10px 16px; flex-wrap: wrap; }
  .cm-post-thumb { width: 44px; height: 44px; border-radius: 10px; }
  .cm-post-side { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
  .cm-comments { padding: 0 12px 6px 16px; }
  .cm-text, .cm-reply-bubble, .cm-actions, .cm-composer, .cm-blocked, .cm-comment > .cm-result { margin-left: 0; }
  .cm-comment-top { flex-wrap: wrap; }
  .cm-act { padding: 6px 10px; font-size: 12px; }
  .cm-actions .cm-act { flex: 1 1 auto; justify-content: center; }
  .cm-tab { padding: 7px 10px; font-size: 12px; }
  .cm-composer-foot .cm-send { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .cm-net-card, .cm-btn, .cm-act, .cm-profile { transition: none; }
  .cm-skeleton span, .is-loading svg { animation: none; }
}

/* ─── Desempenho (2026-10-13, js/performance_v1.js) ─────────────────────────────────────────── */
.perf-resumo { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.perf-kpi { padding: 14px; }
.perf-kpi-v { font-size: 22px; font-weight: 700; color: var(--text-primary); }
.perf-kpi-t { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.perf-barras { display: flex; flex-direction: column; gap: 6px; }
.perf-barra-linha { display: grid; grid-template-columns: 90px 1fr 120px; gap: 10px; align-items: center; font-size: 12px; }
.perf-barra-rotulo { color: var(--text-secondary); }
.perf-barra-trilho { background: rgba(255,255,255,0.05); border-radius: 6px; height: 10px; overflow: hidden; }
.perf-barra { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-light)); border-radius: 6px; }
.perf-barra-num { color: var(--text-muted); text-align: right; }
.perf-tabela { width: 100%; border-collapse: collapse; font-size: 12px; }
.perf-tabela th { text-align: left; color: var(--text-muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.perf-tabela td { padding: 6px 8px; border-bottom: 1px solid var(--border); color: var(--text-secondary); vertical-align: top; }
@media (max-width: 600px) {
  .perf-barra-linha { grid-template-columns: 60px 1fr 90px; }
  .ig-options-grid { grid-template-columns: 1fr !important; }
}

/* ─── Métricas AO VIVO (2026-10-16, js/metrics_live_v1.js) ─────────────────────────────────────────────
   Cada rede tem a sua cor (--net-grad / --net-cor no elemento). Número que sobe pisca em verde. */
.lv-secao { margin-bottom: 22px; }
.lv-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.lv-titulo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lv-titulo strong { font-size: 13px; letter-spacing: .12em; color: #fff; background: #ef4444; padding: 3px 9px; border-radius: 6px; }
.lv-sub { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.lv-dot { width: 11px; height: 11px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 0 rgba(239, 68, 68, .7); animation: lv-pulso 1.6s infinite; }
.lv-off .lv-dot { animation: none; background: var(--text-muted); }
.lv-off .lv-titulo strong { background: var(--text-muted); }
@keyframes lv-pulso { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .7); } 70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }
.lv-status { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.lv-btn { padding: 7px 14px; font-size: 12px; border-radius: 10px; background: transparent; border: 1px solid var(--border); color: var(--text-secondary); cursor: pointer; }
.lv-btn:hover { border-color: var(--border-active); color: var(--text-primary); }
.lv-filtros { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; }
.lv-campo label { font-size: 12px; color: var(--text-secondary); display: block; margin-bottom: 4px; }
.lv-campo select { min-width: 0; max-width: 100%; }

.lv-redes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-bottom: 14px; }
.lv-net {
  position: relative; overflow: hidden; text-align: left; cursor: pointer; padding: 16px 16px 12px; border-radius: 18px;
  background: var(--bg-card); border: 2px solid var(--border); color: var(--text-primary); font: inherit;
  transition: transform .15s, box-shadow .15s, border-color .15s; min-width: 0;
}
.lv-net::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--net-grad); }
.lv-net::after { content: ""; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px; border-radius: 50%; background: var(--net-grad); opacity: .12; pointer-events: none; }
.lv-net:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
.lv-net.is-active { border-color: transparent; background: linear-gradient(var(--bg-secondary), var(--bg-secondary)) padding-box, var(--net-grad) border-box; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
.lv-net.is-active::after { opacity: .22; }
.lv-net-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.lv-net-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--net-grad); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.lv-net-icon svg { width: 22px; height: 22px; }
.lv-net-nome { font-size: 18px; font-weight: 800; }
.lv-net-meta { font-size: 12px; color: var(--text-muted); margin-left: auto; }
.lv-net-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 10px; }
.lv-net-num { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lv-net-lbl { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text-secondary); }
.lv-net-lbl svg { width: 13px; height: 13px; color: var(--net-cor); }
.lv-net-num strong { font-size: 22px; font-weight: 800; line-height: 1.15; }
.lv-net-ganho { font-size: 12px; font-weight: 700; color: var(--text-muted); }
.lv-net-num.tem-ganho .lv-net-ganho { color: #34d399; }
.lv-net-rodape { margin-top: 10px; font-size: 11px; color: var(--text-muted); }
.lv-aviso { padding: 10px 14px; border-radius: 12px; background: rgba(245, 158, 11, .1); border: 1px solid rgba(245, 158, 11, .35); color: #fcd34d; font-size: 13px; margin-bottom: 14px; }

.lv-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.lv-vazio { padding: 26px; text-align: center; color: var(--text-muted); border: 1px dashed var(--border); border-radius: 14px; grid-column: 1 / -1; }
.lv-post {
  position: relative; display: flex; gap: 12px; padding: 12px 12px 12px 16px; border-radius: 16px; overflow: hidden; min-width: 0;
  background: var(--bg-card); border: 1px solid var(--border); transition: border-color .3s, box-shadow .3s;
}
.lv-post::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--net-grad); }
.lv-post.is-up { border-color: rgba(52, 211, 153, .7); box-shadow: 0 0 0 1px rgba(52, 211, 153, .35), 0 0 22px rgba(52, 211, 153, .18); }
.lv-thumb { position: relative; flex: 0 0 auto; width: 74px; height: 98px; border-radius: 12px; overflow: hidden; background: var(--bg-hover); display: inline-flex; }
.lv-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lv-thumb-vazio { width: 100%; height: 100%; display: inline-flex; align-items: center; justify-content: center; background: var(--net-grad); color: #fff; }
.lv-thumb-vazio svg { width: 26px; height: 26px; }
.lv-tipo { position: absolute; left: 4px; bottom: 4px; font-size: 10px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .65); padding: 2px 6px; border-radius: 6px; }
.lv-corpo { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.lv-cab { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lv-rede-pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 6px; border-radius: 999px; background: var(--net-grad); color: #fff; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.lv-rede-pill svg { width: 12px; height: 12px; }
.lv-conta { font-size: 13px; font-weight: 700; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.lv-painel { font-size: 10px; font-weight: 700; color: #c4b5fd; border: 1px solid rgba(139, 92, 246, .5); padding: 1px 6px; border-radius: 6px; }
.lv-linha2 { display: flex; gap: 8px; font-size: 11px; color: var(--text-muted); flex-wrap: wrap; }
.lv-legenda { font-size: 12px; color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.lv-nums { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: auto; padding-top: 4px; }
.lv-num { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text-secondary); padding: 2px 6px; border-radius: 8px; transition: background .3s; }
.lv-num svg { width: 15px; height: 15px; color: var(--net-cor); }
.lv-num .lv-v { font-weight: 800; color: var(--text-primary); }
.lv-num .lv-d { font-size: 11px; font-weight: 700; color: #34d399; }
.lv-num.is-up { background: rgba(52, 211, 153, .18); animation: lv-sobe .9s ease-out; }
@keyframes lv-sobe { 0% { transform: scale(1.18); } 100% { transform: scale(1); } }
.lv-mais { display: block; margin: 14px auto 0; }
.lv-contas { margin-top: 14px; font-size: 12px; color: var(--text-secondary); }
.lv-contas summary { cursor: pointer; color: var(--text-muted); }
.lv-contas-lista { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.lv-conta-linha { display: flex; gap: 10px; flex-wrap: wrap; padding: 5px 8px; border-radius: 8px; background: rgba(255, 255, 255, .02); }
.lv-conta-linha.tem-erro .lv-conta-lido { color: #fca5a5; }
.lv-conta-lido { margin-left: auto; color: var(--text-muted); overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .lv-lista { grid-template-columns: 1fr; }
  .lv-redes { grid-template-columns: 1fr; }
  .lv-filtros { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .lv-filtros select { width: 100%; font-size: 13px; padding-left: 10px; padding-right: 24px; }
  .lv-campo label { font-size: 11px; }
  .lv-sub { font-size: 14px; }
  .lv-net-meta { margin-left: 0; width: 100%; }
}

/* ─── Central de Comentários: fila por ordem de chegada (2026-10-16, js/comments_v1.js) ───────────────
   Um comentário por cartão, do mais antigo para o mais novo. A faixa do topo e o fundo levam a cor da
   rede (--net-grad / --net-tom / --net-borda) para dar para saber de relance de onde veio cada um. */
.cm-view-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.cm-seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--bg-card); border: 1px solid var(--border); }
.cm-seg-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 9px; border: none; background: transparent;
  color: var(--text-secondary); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.cm-seg-btn svg { width: 14px; height: 14px; }
.cm-seg-btn:hover { color: var(--text-primary); }
.cm-seg-btn.is-active { background: var(--bg-hover); color: var(--text-primary); box-shadow: inset 0 0 0 1px var(--border-active); }

.cm-net-card { background: linear-gradient(135deg, var(--net-tom, transparent), transparent 75%), var(--bg-card); }

.cm-qcard {
  position: relative; overflow: hidden; border-radius: 18px; border: 1px solid var(--net-borda, var(--border));
  background: linear-gradient(180deg, var(--net-tom, transparent), transparent 55%), var(--bg-card);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .22); transition: box-shadow .3s, transform .3s;
}
.cm-qcard.is-leaving { opacity: 0; transform: translateX(24px); transition: opacity .3s, transform .3s, max-height .3s; }
.cm-qcard.is-next { box-shadow: 0 0 0 2px var(--net-color), 0 10px 30px rgba(0, 0, 0, .35); }
.cm-qcard.is-ignored, .cm-qcard.is-hidden { opacity: .78; }
.cm-q-band {
  display: flex; align-items: center; gap: 10px; padding: 9px 14px; background: var(--net-grad); color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}
.cm-q-net { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; flex: 0 0 auto; }
.cm-q-net svg { width: 18px; height: 18px; }
.cm-q-who { display: flex; align-items: baseline; gap: 8px; min-width: 0; flex: 1 1 auto; overflow: hidden; }
.cm-q-who strong { font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-q-who span { font-size: 12px; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-q-pos { display: inline-flex; align-items: baseline; gap: 4px; flex: 0 0 auto; padding: 2px 10px; border-radius: 999px; background: rgba(0, 0, 0, .28); }
.cm-q-n { font-size: 15px; font-weight: 900; }
.cm-q-de { font-size: 11px; opacity: .85; }
.cm-q-body { padding: 4px 16px 6px; }
.cm-q-post { display: flex; align-items: center; gap: 10px; padding: 10px 0 8px; border-bottom: 1px dashed var(--border); }
.cm-q-post .cm-post-thumb { width: 42px; height: 42px; border-radius: 10px; }
.cm-q-post-info { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cm-q-post-lbl { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--net-color); }
.cm-q-body > .cm-comment { border-top: none; padding-top: 12px; }
.cm-q-body .cm-text { font-size: 16px; }
@media (max-width: 600px) {
  .cm-q-band { flex-wrap: wrap; row-gap: 4px; padding: 8px 12px; }
  .cm-q-who { order: 3; flex: 1 1 100%; }
  .cm-q-pos { margin-left: auto; }
  .cm-q-body { padding: 2px 12px 6px; }
  .cm-seg-btn { padding: 6px 9px; }
  .cm-seg-btn span { display: none; }
  .cm-seg-btn.is-active span { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  .cm-qcard { transition: none; }
}

/* ─── Comentários: "Enviar sugestão" (1 clique) e resposta automática (2026-10-16) ─────────────────── */
.cm-quick { margin: 10px 0 0 42px; padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--net-borda, var(--border)); background: rgba(255, 255, 255, .025); display: flex; flex-direction: column; gap: 8px; }
.cm-quick-top { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cm-quick-lbl { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--net-color, var(--accent-light)); }
.cm-quick-lbl svg { width: 13px; height: 13px; }
.cm-quick-txt { font-size: 14px; color: var(--text-primary); white-space: pre-wrap; overflow-wrap: anywhere; }
.cm-quick-edit { width: 100%; min-height: 24px; padding: 4px 6px; margin: 0 -6px; box-sizing: content-box; resize: none; overflow: hidden; border: 1px solid transparent; border-radius: 8px; background: transparent; font: inherit; font-size: 14px; line-height: 1.45; color: var(--text-primary); }
.cm-quick-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.cm-quick-hint { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text-muted); cursor: pointer; }
.cm-quick-hint svg { width: 12px; height: 12px; }
.cm-quick-hint:hover { color: var(--text-secondary); }
.cm-quick-edit { border-color: rgba(255, 255, 255, .08); cursor: text; }
.cm-quick-edit:hover { border-color: var(--border); }
.cm-quick-edit:focus { outline: none; border-color: var(--net-color, var(--accent-light)); background: rgba(255, 255, 255, .04); }
.cm-quick-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.cm-quick-send:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cm-quick > .cm-result { margin: 0; }
.cm-auto-chip { margin: 8px 0 0 42px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 12px; border: 1px solid var(--border); width: fit-content; max-width: calc(100% - 42px); overflow-wrap: anywhere; }
.cm-auto-chip svg { width: 14px; height: 14px; flex: 0 0 auto; }
.cm-auto-chip.is-info { color: #c4b5fd; border-color: rgba(139, 92, 246, .45); background: rgba(139, 92, 246, .10); }
.cm-auto-chip.is-muted { color: var(--text-secondary); }
.cm-auto-chip.is-erro { color: #fca5a5; border-color: rgba(239, 68, 68, .4); background: rgba(239, 68, 68, .08); }
.cm-auto-help { border-color: rgba(139, 92, 246, .35); }
.cm-auto-help.is-on { border-color: rgba(16, 185, 129, .45); }
.cm-auto-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; margin: 6px 0 4px; border-radius: 10px; background: rgba(139, 92, 246, .06); font-size: 13px; color: var(--text-secondary); }
.cm-auto-row.is-locked { opacity: .75; }
.cm-auto-row-txt { flex: 1 1 200px; min-width: 0; }
.cm-auto-lock { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: #fcd34d; }
.cm-auto-lock svg { width: 12px; height: 12px; }
.cm-switch-sm { transform: scale(.85); transform-origin: left center; }
@media (max-width: 600px) {
  .cm-quick, .cm-auto-chip { margin-left: 0; }
  .cm-auto-chip { max-width: 100%; }
  .cm-quick-acts .cm-act { flex: 1 1 auto; justify-content: center; }
}

/* ─── Comentários: rodapé "Carregar mais" (2026-10-16) ─────────────────────────────────────────────── */
.cm-more { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 14px 10px 24px; font-size: 13px; color: var(--text-secondary); }
.cm-more.is-done { opacity: .75; }
.cm-more .cm-btn { display: inline-flex; align-items: center; gap: 6px; }
.cm-more .cm-btn svg { width: 16px; height: 16px; }
.cm-more .cm-btn.is-loading { opacity: .6; pointer-events: none; }

/* Agendar > Quantidade por dia, por turnos (2026-10-17): cada dia com Manhã / Tarde / Noite. */
.plan-day-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; }
.plan-day-row-label { flex: 1 1 140px; font-size: 13px; }
.plan-day-turn { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-secondary); cursor: default; }
.plan-day-turn .plan-day-qty { width: 58px; height: 32px; padding: 4px 8px; }
.plan-day-row-total { font-size: 12px; color: var(--text-secondary); min-width: 36px; }
.plan-day-row-total b { color: var(--text-primary); }
.plan-day-remove { background: none; border: none; color: var(--text-secondary); cursor: pointer; font-size: 18px; line-height: 1; }
@media (max-width: 600px) {
    .plan-day-add-row > div { flex: 1 1 60px; min-width: 0; width: auto !important; }
    .plan-day-add-row > div:first-child { flex: 1 1 100% !important; }
    .plan-day-add-row #btn-plan-day-add { flex: 1 1 100%; justify-content: center; }
    /* No celular: dia, total e × numa linha; os três turnos lado a lado na de baixo. */
    .plan-day-row-label { flex: 1 1 calc(100% - 110px); }
    .plan-day-row-total { order: 1; }
    .plan-day-remove { order: 2; }
    .plan-day-turn { order: 3; flex: 1 1 28%; min-width: 0; flex-direction: column; align-items: stretch; gap: 2px; }
    .plan-day-turn .plan-day-qty { width: 100%; }
}
