/* V15.65.0 — LUNA, a assistente da Central (Entrega 1: só orientação).
   A orb é a animação original aprovada pelo RoB, isolada: classes, variáveis, keyframes e o id da máscara SVG com o
   prefixo luna- (a máscara "clipping" virou "luna-clipping"); o estilo de body do arquivo original não entra.
   O tamanho sai da variável --luna-size (o --size original). Tudo que mexe no layout da Central só vale com
   html.luna-on: desligada a Luna, a Central fica exatamente como era. */

/* ---- espaço reservado para a orb (só com a Luna ligada) ---- */
html.luna-on { --luna-reserve: 76px; }
/* O aviso rápido da Central (#systemToast) fica ao lado da orb, na altura de sempre (sem subir para cima do TOTAL da
   Planilha). O aviso da Conferência é centralizado e só encontra a orb em tela estreita (ver celular, abaixo). */
html.luna-on .system-toast { right: calc(18px + var(--luna-reserve)); }
/* Anterior/próximo documento na prévia da Conferência: o botão da direita sai de baixo da orb. */
html.luna-on .document-switcher { right: calc(22px + var(--luna-reserve)); }
/* Barra de totais da Planilha: o TOTAL fica à esquerda da orb. */
html.luna-on .cf-planilha-footer { padding-right: calc(12px + var(--luna-reserve)); }
/* Toda tela rola até o último conteúdo ficar acima da orb. A Conferência só rola inteira na tela estreita (ver abaixo);
   na larga ela ocupa a altura toda e rola por dentro. */
html.luna-on .module-view:not(#module-conference)::after { content: ""; display: block; height: var(--luna-reserve); }

/* ---- a orb e o painel ---- */
/* Camada 250: acima da Conferência em tela cheia (200) e das telas (até 40); abaixo de TODA janela da Central
   (contas de conferência 300, senha de Configurações 5000, login, janelas e carregamento 200000+) e do aviso rápido.
   Janela aberta cobre a orb e o painel. Nenhum outro z-index da Central mudou. */
.luna-root { position: fixed; right: 18px; bottom: 18px; z-index: 250; font-family: inherit; }
body.auth-pending .luna-root, body.auth-locked .luna-root { display: none; }
.luna-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.luna-launcher { position: relative; display: block; width: 48px; height: 48px; padding: 0; margin: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.luna-launcher:focus-visible { outline: 3px solid #1f6feb; outline-offset: 4px; }
.luna-launcher .luna-orb { --luna-size: .48; position: absolute; top: 0; left: 0; transform-origin: 0 0; pointer-events: none; }
/* V15.106.0: a orb do Início (luna-guia.js), 72 px, com a máscara dela (cada orb tem a sua). */
.luna-orb.luna-orb-inicio { --luna-size: .72; position: absolute; top: 0; left: 0; transform-origin: 0 0; pointer-events: none; }
.luna-orb.luna-orb-inicio .luna-orb-box { mask: url(#luna-clipping-inicio); -webkit-mask: url(#luna-clipping-inicio); }
.luna-unread { position: absolute; top: -2px; right: -2px; width: 12px; height: 12px; border-radius: 50%; background: #1f8a4c; border: 2px solid #fff; }
.luna-unread[hidden] { display: none; }

/* A animação original (orb-assistente-voz.html), com o prefixo luna-. */
.luna-orb {
  --luna-color-one: #ffbf48;
  --luna-color-two: #be4a1d;
  --luna-color-three: #ffbf4780;
  --luna-color-four: #bf4a1d80;
  --luna-color-five: #ffbf4740;
  --luna-time-animation: 2s;
  --luna-size: 1;
  position: relative;
  display: block;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  transform: scale(var(--luna-size));
  box-shadow:
    0 0 25px 0 var(--luna-color-three),
    0 20px 50px 0 var(--luna-color-four);
  animation: luna-colorize calc(var(--luna-time-animation) * 3) ease-in-out infinite;
}
.luna-orb::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border-top: solid 1px var(--luna-color-one);
  border-bottom: solid 1px var(--luna-color-two);
  background: linear-gradient(180deg, var(--luna-color-five), var(--luna-color-four));
  box-shadow:
    inset 0 10px 10px 0 var(--luna-color-three),
    inset 0 -10px 10px 0 var(--luna-color-four);
}
.luna-orb .luna-orb-box {
  display: block;
  width: 100px;
  height: 100px;
  background: linear-gradient(180deg, var(--luna-color-one) 30%, var(--luna-color-two) 70%);
  mask: url(#luna-clipping);
  -webkit-mask: url(#luna-clipping);
}
.luna-orb svg { position: absolute; }
.luna-orb svg mask { filter: contrast(15); animation: luna-roundness calc(var(--luna-time-animation) / 2) linear infinite; }
.luna-orb svg mask polygon { filter: blur(7px); }
.luna-orb svg mask polygon:nth-child(1) { transform-origin: 75% 25%; transform: rotate(90deg); }
.luna-orb svg mask polygon:nth-child(2) { transform-origin: 50% 50%; animation: luna-rotation var(--luna-time-animation) linear infinite reverse; }
.luna-orb svg mask polygon:nth-child(3) { transform-origin: 50% 60%; animation: luna-rotation var(--luna-time-animation) linear infinite; animation-delay: calc(var(--luna-time-animation) / -3); }
.luna-orb svg mask polygon:nth-child(4) { transform-origin: 40% 40%; animation: luna-rotation var(--luna-time-animation) linear infinite reverse; }
.luna-orb svg mask polygon:nth-child(5) { transform-origin: 40% 40%; animation: luna-rotation var(--luna-time-animation) linear infinite reverse; animation-delay: calc(var(--luna-time-animation) / -2); }
.luna-orb svg mask polygon:nth-child(6) { transform-origin: 60% 40%; animation: luna-rotation var(--luna-time-animation) linear infinite; }
.luna-orb svg mask polygon:nth-child(7) { transform-origin: 60% 40%; animation: luna-rotation var(--luna-time-animation) linear infinite; animation-delay: calc(var(--luna-time-animation) / -1.5); }
@keyframes luna-rotation { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes luna-roundness { 0% { filter: contrast(15); } 20% { filter: contrast(3); } 40% { filter: contrast(3); } 60% { filter: contrast(15); } 100% { filter: contrast(15); } }
@keyframes luna-colorize { 0% { filter: hue-rotate(0deg); } 20% { filter: hue-rotate(-30deg); } 40% { filter: hue-rotate(-60deg); } 60% { filter: hue-rotate(-90deg); } 80% { filter: hue-rotate(-45deg); } 100% { filter: hue-rotate(0deg); } }

/* Estados: parada (cores originais), pensando (azul), erro (vermelho), indisponível (discreta), falando (V15.66.0, só
   enquanto o áudio da resposta toca de verdade) e ouvindo (V15.68.0, só enquanto o microfone está aberto). */
.luna-root[data-luna-state="thinking"] .luna-orb {
  --luna-color-one: #8fd3ff; --luna-color-two: #1f5fd1; --luna-color-three: #8fd3ff80; --luna-color-four: #1f5fd180; --luna-color-five: #8fd3ff40;
  --luna-time-animation: 1.2s; animation: none;
}
.luna-root[data-luna-state="error"] .luna-orb {
  --luna-color-one: #ff9a8a; --luna-color-two: #c62828; --luna-color-three: #ff9a8a80; --luna-color-four: #c6282880; --luna-color-five: #ff9a8a40;
  animation: none;
}
.luna-root[data-luna-state="unavailable"] .luna-orb { filter: grayscale(1); opacity: .5; animation: none; }
.luna-root[data-luna-state="unavailable"] .luna-orb svg mask,
.luna-root[data-luna-state="unavailable"] .luna-orb svg mask polygon { animation-play-state: paused; }
/* Falando: as cores originais, mais viva (gira mais rápido) e com um anel que pulsa em volta. */
.luna-root[data-luna-state="speaking"] .luna-orb { --luna-time-animation: .9s; }
.luna-root[data-luna-state="speaking"] .luna-launcher { animation: luna-speak 1.2s ease-out infinite; }
@keyframes luna-speak { 0% { box-shadow: 0 0 0 0 rgba(255, 191, 72, .6); } 70% { box-shadow: 0 0 0 10px rgba(255, 191, 72, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 191, 72, 0); } }
/* Ouvindo: verde-azulado, com um anel que "respira" (diferente do falando), para ficar claro que o microfone está aberto. */
.luna-root[data-luna-state="listening"] .luna-orb {
  --luna-color-one: #7ef0d8; --luna-color-two: #0f8f7e; --luna-color-three: #7ef0d880; --luna-color-four: #0f8f7e80; --luna-color-five: #7ef0d840;
  --luna-time-animation: 1.6s; animation: none;
}
.luna-root[data-luna-state="listening"] .luna-launcher { animation: luna-listen 1.4s ease-in-out infinite; }
@keyframes luna-listen { 0%, 100% { box-shadow: 0 0 0 2px rgba(20, 184, 166, .6); } 50% { box-shadow: 0 0 0 9px rgba(20, 184, 166, .1); } }
/* Esperando ser chamada (V15.69.0): discreta de propósito. As cores de sempre, girando devagar, um anel fraquinho parado e
   um ouvido pequeno no canto. Diferente do "Ouvindo" (verde-azulado, anel que respira): o microfone está ligado, mas ela
   não está ouvindo a conversa, só o chamado. Nada do que o microfone pega aparece no balão. */
.luna-ear { position: absolute; right: -2px; bottom: -2px; display: none; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; color: #0f766e; box-shadow: 0 1px 4px rgba(15, 23, 42, .25); pointer-events: none; }
.luna-root[data-luna-state="waiting"] .luna-ear { display: inline-flex; }
.luna-root[data-luna-state="waiting"] .luna-launcher { box-shadow: 0 0 0 2px rgba(20, 184, 166, .25); }
.luna-root[data-luna-state="waiting"] .luna-orb { --luna-time-animation: 3.2s; }
html[data-theme="dark"] .luna-ear { background: #171b20; color: #5eead4; }

/* Movimento reduzido: a orb fica parada (sem nenhuma animação); falando, só um anel fixo. */
@media (prefers-reduced-motion: reduce) {
  .luna-orb, .luna-orb svg mask, .luna-orb svg mask polygon { animation: none !important; }
  .luna-root[data-luna-state="speaking"] .luna-launcher { animation: none; box-shadow: 0 0 0 3px rgba(255, 191, 72, .7); }
  .luna-root[data-luna-state="listening"] .luna-launcher { animation: none; box-shadow: 0 0 0 3px rgba(20, 184, 166, .75); }
}

/* ---- a conversa por voz (V15.68.0) ---- */
/* V15.69.0: o botão do balão para religar o chamado ("Clique aqui para eu voltar a atender pelo nome"). */
.luna-balloon .luna-ack[data-luna-wake-rearm] { margin-top: 0; }
.luna-balloon .luna-ack[hidden] { display: none; }
/* O balão em cima da orb: "Ouvindo…", "Pensando…", "Falando…" (com a frase da vez) e a explicação do microfone. */
.luna-balloon { position: absolute; right: 0; bottom: 60px; width: max-content; max-width: min(280px, calc(100vw - 36px)); padding: 8px 11px; border-radius: 12px;
  background: #fff; color: #1f2a33; border: 1px solid #dfe3e8; box-shadow: 0 10px 30px rgba(15, 23, 42, .18); font-size: 13px; line-height: 1.4; }
.luna-balloon[hidden] { display: none; }
.luna-balloon::after { content: ""; position: absolute; right: 18px; bottom: -6px; width: 10px; height: 10px; background: inherit; border-right: 1px solid #dfe3e8;
  border-bottom: 1px solid #dfe3e8; transform: rotate(45deg); }
.luna-balloon-title { margin: 0; font-weight: 700; }
.luna-balloon-text { margin: 2px 0 0; overflow-wrap: anywhere; max-height: 8.4em; overflow: hidden; }
.luna-balloon-title[hidden], .luna-balloon-text[hidden], .luna-balloon-actions[hidden] { display: none; }
.luna-balloon-actions { display: flex; gap: 6px; align-items: center; margin-top: 6px; }
.luna-balloon .luna-ack { margin-top: 0; }
/* A setinha ao lado da orb abre o chat (com o microfone ligado, o clique na orb é para falar). */
.luna-chat { position: absolute; right: 54px; bottom: 10px; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0;
  border: 1px solid #dfe3e8; border-radius: 50%; background: #fff; color: #1f5fa8; box-shadow: 0 4px 12px rgba(15, 23, 42, .15); cursor: pointer; }
.luna-chat[hidden] { display: none; }
.luna-chat:hover { background: #eef4fb; }
.luna-chat[aria-expanded="true"] svg { transform: rotate(180deg); }
.luna-chat:focus-visible { outline: 2px solid #1f6feb; outline-offset: 2px; }
html[data-theme="dark"] .luna-balloon, html[data-theme="dark"] .luna-chat { background: #171b20; color: #e2e8ee; border-color: #30363d; }
html[data-theme="dark"] .luna-balloon::after { border-color: #30363d; }
html[data-theme="dark"] .luna-chat { color: #8cc2ff; }

/* ---- V15.70.0: o cartão em cima da orb ("Abrir mesmo assim?" ou um aviso curto), com o painel aberto ou fechado ---- */
.luna-card { position: absolute; right: 0; bottom: 60px; z-index: 2; width: max-content; max-width: min(300px, calc(100vw - 36px)); padding: 10px 12px; border-radius: 12px;
  background: #fff; color: #1f2a33; border: 1px solid #f0c77a; box-shadow: 0 10px 30px rgba(15, 23, 42, .2); font-size: 13px; line-height: 1.45; }
.luna-card[hidden] { display: none; }
.luna-card-text { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.luna-card-actions { display: flex; gap: 6px; align-items: center; margin-top: 8px; }
.luna-card .luna-ack { margin-top: 0; }
.luna-card .luna-ack[hidden] { display: none; }
html[data-theme="dark"] .luna-card { background: #171b20; color: #e2e8ee; border-color: #8a6a1c; }

/* ---- o painel ---- */
/* Chamar pela voz neste computador (V15.69.0): ligar, o pacote de português, o consentimento do Google e o modo. Também
   no cartão de Configurações. */
.luna-wakebar { margin: 8px 12px 0; padding: 7px 9px; border-radius: 8px; background: #f0fbf9; border: 1px solid #b9ebe2; color: #134e48; font-size: 12px; line-height: 1.45; }
.luna-wakebar[hidden] { display: none; }
.luna-wake-text { margin: 0; }
.luna-wake-text + .luna-wake-text { margin-top: 3px; }
.luna-wake-error { color: #8a1c1c; font-weight: 700; }
.luna-wake-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.luna-wake-actions .luna-ack { margin-top: 0; }
html[data-theme="dark"] .luna-wakebar { background: #10231f; border-color: #1f4d45; color: #c8efe7; }
html[data-theme="dark"] .luna-wake-error { color: #ffb4a9; }
.luna-panel { position: absolute; right: 0; bottom: 62px; width: min(380px, calc(100vw - 36px)); max-height: min(560px, calc(100vh - 110px)); display: flex; flex-direction: column;
  background: #fff; color: #1f2a33; border: 1px solid #dfe3e8; border-radius: 12px; box-shadow: 0 18px 50px rgba(15, 23, 42, .22); overflow: hidden; font-size: 13px; }
.luna-panel[hidden] { display: none; }
/* V15.81.0: com as letras no tamanho certo, os 5 botões do alto (voz, Tutoriais, Alterações, Nova conversa e fechar) não cabem ao lado do nome:
   o nome e a frase ocupam a linha de cima e os botões descem para a de baixo, à direita, quando não há lugar. */
.luna-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 4px 8px; padding: 10px 12px; border-bottom: 1px solid #eef1f4; }
.luna-head > :first-child { flex: 1 1 150px; min-width: 0; }
.luna-title { margin: 0; font-size: 15px; font-weight: 700; color: #1f2a33; }
.luna-mode { margin: 2px 0 0; font-size: 12px; font-weight: 700; color: #5b6773; }
.luna-head-actions { display: flex; flex: 0 1 auto; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; gap: 4px; align-items: center; }
.luna-link { border: 0; background: transparent; color: #1f5fa8; font: inherit; font-size: 12px; font-weight: 700; padding: 5px 6px; border-radius: 6px; cursor: pointer; }
.luna-link:hover:not(:disabled) { background: #eef4fb; }
.luna-link:disabled { color: #9aa4ae; cursor: not-allowed; }
.luna-close { width: 28px; height: 28px; border: 0; border-radius: 6px; background: transparent; color: #4b5b6b; font-size: 18px; line-height: 1; cursor: pointer; }
.luna-close:hover { background: #f0f2f5; }
.luna-link:focus-visible, .luna-close:focus-visible, .luna-send:focus-visible, .luna-ack:focus-visible,
.luna-mute:focus-visible, .luna-stop:focus-visible, .luna-replay:focus-visible { outline: 2px solid #1f6feb; outline-offset: 2px; }
/* A voz (V15.66.0): som/mudo no topo, a barra "falando" com "Parar" e o botão de cada resposta. */
.luna-mute { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #1f5fa8; cursor: pointer; }
.luna-mute[hidden] { display: none; }
.luna-mute:hover { background: #eef4fb; }
.luna-mute[aria-pressed="true"] { color: #8a5a00; }
.luna-mute[aria-pressed="true"] .luna-mute-waves, .luna-mute[aria-pressed="false"] .luna-mute-x { display: none; }
.luna-voicebar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 12px 6px; padding: 5px 8px; border-radius: 8px; background: #f3f5f7; color: #4b5b6b; font-size: 12px; line-height: 1.4; }
.luna-voicebar[hidden] { display: none; }
.luna-stop { flex: none; border: 1px solid #c98d12; background: #fff; color: #6b4a07; font: inherit; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 6px; cursor: pointer; }
.luna-stop[hidden] { display: none; }
.luna-replay { display: block; margin-top: 6px; padding: 2px 0; border: 0; background: transparent; color: #1f5fa8; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.luna-replay:hover { text-decoration: underline; }
.luna-replay-tap { padding: 4px 10px; border-radius: 6px; background: #1f5fa8; color: #fff; }
.luna-replay-tap:hover { text-decoration: none; background: #174a84; }
.luna-notice { margin: 10px 12px 0; padding: 8px 10px; border-radius: 8px; background: #fff7e6; border: 1px solid #f3d9a4; color: #6b4a07; font-size: 12px; line-height: 1.45; }
.luna-notice[hidden] { display: none; }
.luna-ack { margin-top: 6px; border: 1px solid #c98d12; background: #fff; color: #6b4a07; font: inherit; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 6px; cursor: pointer; }
.luna-reason { margin: 10px 12px 0; padding: 8px 10px; border-radius: 8px; background: #f3f5f7; color: #4b5b6b; font-size: 12px; line-height: 1.45; }
.luna-reason[hidden] { display: none; }
.luna-messages { list-style: none; margin: 0; padding: 10px 12px; overflow: auto; flex: 1; display: flex; flex-direction: column; gap: 8px; min-height: 110px; }
.luna-empty { color: #6b7580; font-size: 13px; line-height: 1.5; }
.luna-msg { max-width: 88%; padding: 8px 10px; border-radius: 10px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; font-size: 13px; }
.luna-msg-user { align-self: flex-end; background: #e8f1ff; color: #12325c; }
.luna-msg-luna { align-self: flex-start; background: #f3f5f7; color: #1f2a33; }
.luna-msg-pending { color: #5b6b78; }
html[data-theme="dark"] .luna-msg-pending { color: #a7b2bc; }
/* V15.70.0: a resposta chegando em partes (e o que a Luna está consultando) e as fontes da consulta, com "Abrir". */
.luna-msg-live { border: 1px dashed #d9dee4; }
.luna-fontes { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; white-space: normal; }
.luna-fonte { display: inline-flex; align-items: center; gap: 4px; padding: 2px 3px 2px 8px; border: 1px solid #d9dee4; border-radius: 999px; background: #fff; color: #4b5b6b;
  font-size: 12px; font-weight: 700; }
.luna-fonte-abrir { border: 0; border-radius: 999px; background: #eef4fb; color: #1f5fa8; font: inherit; font-size: 12px; font-weight: 700; padding: 2px 8px; cursor: pointer; }
.luna-fonte-abrir:hover { background: #dbe9fb; }
.luna-fonte-abrir:focus-visible { outline: 2px solid #1f6feb; outline-offset: 1px; }
html[data-theme="dark"] .luna-msg-live { border-color: #3a424b; }
html[data-theme="dark"] .luna-fonte { background: #171b20; color: #b8c4d0; border-color: #3a424b; }
html[data-theme="dark"] .luna-fonte-abrir { background: #1d3552; color: #dbe9fb; }
.luna-msg-error { align-self: stretch; max-width: none; background: #fdecec; color: #8a1c1c; border: 1px solid #f5c2c2; }
.luna-status { margin: 0; padding: 0 12px; min-height: 16px; font-size: 12px; color: #5b6773; }
.luna-form { display: flex; gap: 8px; padding: 8px 12px 8px; border-top: 1px solid #eef1f4; align-items: flex-end; }
.luna-input { flex: 1; resize: none; min-height: 38px; max-height: 120px; padding: 8px 10px; border: 1px solid #cfd6dd; border-radius: 8px; font: inherit; font-size: 14px; color: #1f2a33; background: #fff; }
.luna-input:focus { outline: 2px solid #1f6feb; outline-offset: 0; border-color: #1f6feb; }
.luna-input:disabled { background: #f3f5f7; color: #7a8590; }
.luna-send { border: 0; border-radius: 8px; background: #1f5fa8; color: #fff; font: inherit; font-size: 13px; font-weight: 700; padding: 9px 14px; cursor: pointer; }
.luna-send:disabled { background: #9fb3c8; cursor: not-allowed; }
.luna-foot { padding: 0 12px 10px; font-size: 12px; color: #6b7580; line-height: 1.4; }

/* Tema escuro da Central. */
html[data-theme="dark"] .luna-panel { background: #171b20; color: #e2e8ee; border-color: #30363d; }
html[data-theme="dark"] .luna-head, html[data-theme="dark"] .luna-form { border-color: #262c33; }
html[data-theme="dark"] .luna-title { color: #eef3f7; }
html[data-theme="dark"] .luna-mode, html[data-theme="dark"] .luna-status, html[data-theme="dark"] .luna-foot, html[data-theme="dark"] .luna-empty { color: #9aa7b3; }
html[data-theme="dark"] .luna-msg-user { background: #1d3552; color: #dbe9fb; }
html[data-theme="dark"] .luna-msg-luna, html[data-theme="dark"] .luna-reason { background: #222830; color: #dfe6ec; }
html[data-theme="dark"] .luna-input { background: #0f1216; color: #e2e8ee; border-color: #3a424b; }
html[data-theme="dark"] .luna-close { color: #b8c4d0; }
html[data-theme="dark"] .luna-close:hover, html[data-theme="dark"] .luna-link:hover:not(:disabled) { background: #222830; }
html[data-theme="dark"] .luna-link { color: #8cc2ff; }
html[data-theme="dark"] .luna-unread { border-color: #171b20; }
html[data-theme="dark"] .luna-mute, html[data-theme="dark"] .luna-replay { color: #8cc2ff; }
html[data-theme="dark"] .luna-mute[aria-pressed="true"] { color: #f3c969; }
html[data-theme="dark"] .luna-mute:hover { background: #222830; }
html[data-theme="dark"] .luna-voicebar { background: #222830; color: #c9d3dc; }
html[data-theme="dark"] .luna-stop { background: #171b20; color: #f3d9a4; border-color: #8a6a1c; }
html[data-theme="dark"] .luna-replay-tap { background: #2f6fbf; color: #fff; }

/* Até 1000 px a Conferência rola inteira (lista em cima, documento embaixo): o fim dela também fica acima da orb. No
   modo tela cheia ela é uma coluna flexível, e o espaço vira uma faixa fixa no pé. */
@media (max-width: 1000px) {
  html.luna-on #module-conference::after { content: ""; display: block; flex: 0 0 var(--luna-reserve); height: var(--luna-reserve); }
}

/* Celular: orb menor e o painel ocupando a largura (acima da orb). A reserva (80 px) cobre a orb (44 px + 12 px da
   borda) com folga: o fim de cada tela para 24 px acima dela. */
@media (max-width: 620px) {
  html.luna-on { --luna-reserve: 80px; }
  /* No celular não cabe ao lado: os avisos sobem acima da orb. */
  html.luna-on .system-toast { right: 18px; bottom: calc(18px + var(--luna-reserve)); }
  html.luna-on .toast { bottom: calc(24px + var(--luna-reserve)); }
  .luna-root { right: 12px; bottom: 12px; }
  .luna-launcher { width: 44px; height: 44px; }
  .luna-launcher .luna-orb { --luna-size: .44; }
  .luna-balloon, .luna-card { bottom: 54px; }
  .luna-chat { right: 50px; bottom: 8px; }
  .luna-panel { position: fixed; left: 12px; right: 12px; bottom: 66px; width: auto; max-height: calc(100vh - 92px); max-height: calc(100dvh - 92px); }
}
@media print { .luna-root { display: none !important; } }

/* ---- Configurações › Luna ---- */
.cf-luna-settings-body { margin-top: 10px; font-size: 13px; line-height: 1.5; }
.cf-luna-grid { display: grid; grid-template-columns: minmax(150px, max-content) 1fr; gap: 4px 14px; margin: 8px 0; }
.cf-luna-grid dt { font-weight: 700; color: #4b5b6b; }
.cf-luna-grid dd { margin: 0; }
.cf-luna-fields { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.cf-luna-fields label { display: flex; flex-direction: column; gap: 3px; font-weight: 700; font-size: 13px; }
.cf-luna-fields input { width: 130px; }
.cf-luna-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
/* V15.92.0: o texto de apoio das duas telas da Luna em Configurações: 13 px e contraste de pelo menos 4,5:1 nos dois temas (a nitidez mede). */
.cf-luna-wa-body .cf-notes-recovery-help, .cf-luna-settings-body .cf-notes-recovery-help { font-size: 13px; color: var(--cf-texto-2); }
/* V15.92.0: as cores de estado da Luna com contraste de pelo menos 4,5:1 nos dois temas (a nitidez mede Configurações › Luna). */
.cf-luna-state-on { color: #17703d; font-weight: 700; }
.cf-luna-state-off { color: #7a4f00; font-weight: 700; }
.cf-luna-error { color: var(--cf-danger-texto, #b42318); font-weight: 700; }
html[data-theme="dark"] .cf-luna-state-on { color: #6fdc9b; }
html[data-theme="dark"] .cf-luna-state-off { color: #f0c26a; }
html[data-theme="dark"] .cf-luna-grid dt { color: #b8c4d0; }
/* Voz da Luna (V15.66.0). */
.cf-luna-voice { margin-top: 14px; padding-top: 10px; border-top: 1px solid #eef1f4; }
.cf-luna-voice-title { margin: 0 0 4px; font-size: 14px; font-weight: 700; }
.cf-luna-voice .cf-luna-fields input[data-luna-voice-field="voiceId"], .cf-luna-voice .cf-luna-fields input[data-luna-voice-field="model"] { width: 200px; }
.cf-luna-voice-test { min-height: 16px; margin: 6px 0 0; font-weight: 700; }
html[data-theme="dark"] .cf-luna-voice { border-color: #262c33; }
/* Frases da Luna (V15.68.0): uma categoria por bloco, uma frase por linha. */
.cf-luna-phrases-cat { margin-top: 12px; }
.cf-luna-phrases-label { display: block; font-weight: 700; font-size: 13px; }
.cf-luna-phrases-cat .cf-notes-recovery-help { margin: 2px 0 4px; }
.cf-luna-phrases-input { display: block; box-sizing: border-box; width: 100%; max-width: 680px; min-height: 64px; resize: vertical; font: inherit; line-height: 1.45; }
/* Chamar pela voz (V15.69.0): as frases de chamado, o tempo e o que este computador está fazendo. */
.cf-luna-wake .cf-luna-fields input { width: 110px; }
.cf-luna-wake-local { margin-top: 10px; padding: 8px 10px; border: 1px dashed #9ddfd3; border-radius: 8px; max-width: 680px; }
html[data-theme="dark"] .cf-luna-wake-local { border-color: #1f4d45; }
/* Conversa por voz (V15.68.0): as opções do microfone. */
.cf-luna-checks { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 4px 0 8px; }
.cf-luna-check { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 12px; }
.cf-luna-mic .cf-luna-fields input { width: 110px; }

/* ---- V15.71.0: o tutorial guiado (holofote). Por cima das janelas da Central (z-index 210000) e por baixo do
   "Carregando" (220000): o alvo fica no buraco das quatro sombras, com o anel pulsando; fora do buraco, a tela não recebe clique.
   O passo sem volta fica laranja e o botão fica coberto (o tutorial termina ali).
   V15.106.0: o jeito das trilhas do Início — o cartão escuro da Luna (o mesmo do balão do Início), com "FISCAL · PASSO 4 DE 9", o título
   curto, a barra de progresso e o botão da voz; o anel rosa (#ff9fbe); no sem volta, o anel e o cartão LARANJA (#ffb36b); e, no alto,
   o selo "Tutorial · modo treino". Fundo sólido no cartão e no selo (camada própria: sem fundo sólido a letra perde o ClearType). ---- */
.luna-tutor { position: fixed; inset: 0; z-index: 215000; pointer-events: none; font-family: inherit; }
.luna-tutor-sombra { position: fixed; background: rgba(8, 12, 20, .58); pointer-events: auto; }
.luna-tutor-anel { position: fixed; border-radius: 10px; pointer-events: none; box-shadow: 0 0 0 3px #ff9fbe, 0 0 12px 3px rgba(255, 159, 190, .5); }
.luna-tutor-tampa { position: fixed; border-radius: 10px; pointer-events: auto; cursor: not-allowed; background: rgba(255, 179, 107, .16); }
.luna-tutor-anel[hidden], .luna-tutor-tampa[hidden], .luna-tutor-cartao[hidden], .luna-tutor-btn[hidden], .luna-tutor-explica[hidden], .luna-tutor-aviso[hidden],
.luna-tutor-titulo[hidden], .luna-tutor-progresso[hidden], .luna-tutor-voz[hidden] { display: none; }
.luna-tutor-selo { position: fixed; top: 12px; left: 0; right: 0; width: max-content; max-width: calc(100vw - 32px); margin: 0 auto; padding: 6px 16px; border-radius: 999px;
  background: #ff9fbe; color: #2a0f1a; font-size: 13px; font-weight: 600; line-height: 1.3; pointer-events: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.luna-tutor-cartao { position: fixed; pointer-events: auto; box-sizing: border-box; max-width: calc(100vw - 32px); padding: 14px 16px; border-radius: 16px; background: #1a1418;
  color: #f5eef1; border: 1px solid #6e4656; box-shadow: 0 16px 40px rgba(0, 0, 0, .45); font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.luna-tutor-topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 6px; }
.luna-tutor-passo { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .06em; color: #ff9fbe; }
.luna-tutor-voz { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border-radius: 999px; border: 1px solid #4a3a44; background: #2a2228;
  color: #f5eef1; cursor: pointer; }
.luna-tutor-voz[aria-pressed="false"] .luna-tutor-onda, .luna-tutor-voz[aria-pressed="true"] .luna-tutor-mudo { display: none; }
.luna-tutor-voz:focus-visible { outline: 2px solid #ff9fbe; outline-offset: 2px; }
.luna-tutor-titulo { margin: 0 0 4px; font-size: 17px; font-weight: 600; color: #fff; }
.luna-tutor-texto { margin: 0; font-weight: 500; }
.luna-tutor-explica { margin: 8px 0 0; color: #e7d9df; }
.luna-tutor-aviso { margin: 10px 0 0; padding: 8px 10px; border-radius: 8px; background: #ffb36b; color: #2a1606; font-weight: 600; }
.luna-tutor-progresso { height: 4px; margin: 12px 0 0; border-radius: 999px; background: #3a2c33; overflow: hidden; }
.luna-tutor-progresso i { display: block; height: 100%; width: 0; border-radius: 999px; background: #ff9fbe; }
.luna-tutor-botoes { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.luna-tutor-btn { min-height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid #4a3a44; background: #2a2228; color: #f5eef1; font-family: inherit; font-size: 14px;
  font-weight: 600; cursor: pointer; }
.luna-tutor-btn:focus-visible { outline: 2px solid #ff9fbe; outline-offset: 2px; }
.luna-tutor-principal { background: #ff9fbe; border-color: #ff9fbe; color: #2a0f1a; }
.luna-tutor-semvolta { border: 2px solid #ffb36b; }
.luna-tutor-semvolta .luna-tutor-passo { color: #ffb36b; }
.luna-tutor-semvolta .luna-tutor-progresso i { background: #ffb36b; }
.luna-tutor:has(.luna-tutor-semvolta) .luna-tutor-anel { box-shadow: 0 0 0 3px #ffb36b, 0 0 12px 3px rgba(255, 179, 107, .5); }
@keyframes luna-tutor-pulso { 0%, 100% { box-shadow: 0 0 0 3px #ff9fbe, 0 0 10px 2px rgba(255, 159, 190, .45); } 50% { box-shadow: 0 0 0 5px #ff9fbe, 0 0 22px 8px rgba(255, 159, 190, .6); } }
@keyframes luna-tutor-pulso-laranja { 0%, 100% { box-shadow: 0 0 0 3px #ffb36b, 0 0 10px 2px rgba(255, 179, 107, .45); } 50% { box-shadow: 0 0 0 5px #ffb36b, 0 0 22px 8px rgba(255, 179, 107, .6); } }
@media (prefers-reduced-motion: no-preference) {
  .luna-tutor-anel { animation: luna-tutor-pulso 1.6s ease-in-out infinite; }
  .luna-tutor:has(.luna-tutor-semvolta) .luna-tutor-anel { animation-name: luna-tutor-pulso-laranja; }
  .luna-tutor-progresso i { transition: width .35s ease; }
}
/* V15.71.0: a lista "Tutoriais" no painel (roteiros fixos, sem IA). */
.luna-tutoriais { margin: 8px 12px 0; padding: 8px; border-radius: 10px; border: 1px solid #f0c77a; background: #fffaf0; max-height: 45vh; overflow: auto; }
.luna-tutoriais[hidden] { display: none; }
.luna-tutoriais-info { margin: 0 0 6px; font-size: 12px; color: #6b5a3a; }
.luna-tutorial { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 4px; border-top: 1px solid #f3e2bd; }
.luna-tutorial-titulo { margin: 0; font-size: 13px; font-weight: 700; }
.luna-tutorial-area { margin: 10px 4px 2px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #9a5b10; }
html[data-theme="dark"] .luna-tutorial-area { color: #f0c77a; }
.luna-tutorial-frase { margin: 2px 0 0; font-size: 12px; color: #5b6570; }
.luna-tutorial .luna-ack { margin-top: 0; flex: 0 0 auto; }
html[data-theme="dark"] .luna-tutoriais { background: #1d1a14; border-color: #8a6a1c; }
html[data-theme="dark"] .luna-tutoriais-info, html[data-theme="dark"] .luna-tutorial-frase { color: #b8b0a0; }
html[data-theme="dark"] .luna-tutorial { border-color: #3a3222; }


/* ---- V15.79.0 · Luna v5, "falou, alterou": o cartão verde da alteração (antes → depois em número grande, a linha fora do normal em
   laranja, "Desfazer"), as opções da pergunta, o cartão perto da bolinha e a lista "Alterações da Luna". ---- */
.luna-alt { box-sizing: border-box; margin-top: 8px; padding: 9px 10px; border-radius: 12px; border: 1px solid #8fd3a5; background: #effaf2; color: #17382a; white-space: normal; text-align: left; }
.luna-alt-topo { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 8px; }
.luna-alt-titulo { font-size: 14px; font-weight: 700; color: #14633a; }
.luna-alt-onde { font-size: 12px; font-weight: 700; color: #4d6a5a; overflow-wrap: anywhere; }
.luna-alt-linhas { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.luna-alt-linha { display: grid; grid-template-columns: 1fr; gap: 1px; padding: 6px 8px; border-radius: 9px; background: rgba(255, 255, 255, .7); border-left: 4px solid #38a169; }
.luna-alt-produto { font-size: 12px; font-weight: 700; color: #3f5b4c; overflow-wrap: anywhere; }
.luna-alt-valores { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.luna-alt-antes { font-size: 15px; font-weight: 700; color: #6b7a72; text-decoration: line-through; text-decoration-thickness: 1px; }
.luna-alt-seta { font-size: 15px; font-weight: 700; color: #14633a; }
.luna-alt-depois { font-size: 20px; font-weight: 700; color: #0f5132; letter-spacing: -.01em; }
.luna-alt-conta { font-size: 12px; font-weight: 700; color: #4d6a5a; }
.luna-alt-aviso { font-size: 12px; font-weight: 700; color: #9a3412; }
.luna-alt-estranho { background: #fff4e5; border-left-color: #ea580c; }
.luna-alt-estranho .luna-alt-depois { color: #9a3412; }
.luna-alt-linha-desfeita { color: #5b6b78; border-left-color: #94a3b8; }
.luna-alt-linha-desfeita .luna-alt-antes, .luna-alt-linha-desfeita .luna-alt-depois { color: #5b6b78; }
html[data-theme="dark"] .luna-alt-linha-desfeita, html[data-theme="dark"] .luna-alt-linha-desfeita .luna-alt-antes, html[data-theme="dark"] .luna-alt-linha-desfeita .luna-alt-depois { color: #9aa8b3; }
.luna-alt-linha-desfeita .luna-alt-depois { text-decoration: line-through; text-decoration-thickness: 1px; }
.luna-alt-acoes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.luna-alt-desfazer { min-height: 32px; padding: 0 14px; border-radius: 8px; border: 1px solid #14633a; background: #fff; color: #14633a; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.luna-alt-desfazer:hover:not(:disabled) { background: #e3f5e9; }
.luna-alt-desfazer:disabled { background: #eef1f4; border-color: #c5ced6; color: #5b6b78; cursor: wait; }
html[data-theme="dark"] .luna-alt-desfazer:disabled, html[data-theme="dark"] .luna-opcao:disabled { background: #222830; border-color: #3b4651; color: #98a4af; }
.luna-alt-desfazer:focus-visible, .luna-opcao:focus-visible, .luna-flutuante-fechar:focus-visible { outline: 2px solid #1f6feb; outline-offset: 2px; }
.luna-alt-desfeita { border-color: #cbd5e1; background: #f3f5f7; color: #475569; }
.luna-alt-desfeita .luna-alt-titulo, .luna-alt-desfeita .luna-alt-seta { color: #475569; }
.luna-alt-parcial { border-color: #e7c36c; background: #fffaf0; }
.luna-alt-parcial .luna-alt-titulo { color: #8a5a00; }
/* As opções da pergunta: até 4 botões; o clique manda o texto do botão como a resposta da pessoa. */
.luna-opcoes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.luna-opcao { min-height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid #1f5fa8; background: #fff; color: #1f5fa8; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; text-align: left; }
.luna-opcao:hover:not(:disabled) { background: #eef4fb; }
.luna-opcao:disabled { background: #eef1f4; border-color: #c5ced6; color: #5b6b78; cursor: wait; }
/* O cartão perto da bolinha (painel fechado, também na conversa só por voz): o JS põe o "bottom" por cima do balão e do cartão. */
.luna-flutuante { --luna-flut-base: 60px; position: absolute; right: 0; bottom: var(--luna-flut-base); z-index: 2; box-sizing: border-box; width: min(330px, calc(100vw - 36px)); max-height: 60vh; overflow: auto;
  padding: 8px 10px 10px; border-radius: 14px; background: #fff; color: #1f2a33; border: 1px solid #dfe3e8; box-shadow: 0 12px 34px rgba(15, 23, 42, .24); font-size: 13px; line-height: 1.45; }
.luna-flutuante[hidden] { display: none; }
.luna-flutuante .luna-alt { margin-top: 0; }
.luna-flutuante-fechar { position: absolute; top: 4px; right: 6px; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #4b5b6b; font-size: 17px; line-height: 1; cursor: pointer; }
.luna-flutuante-fechar:hover { background: #f0f2f5; }
.luna-flutuante-texto { margin: 0 24px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.luna-flutuante-aviso { margin: 6px 0 0; padding: 6px 8px; border-radius: 8px; background: #fff4e5; color: #9a3412; font-weight: 700; }
.luna-flutuante .luna-alt-topo { padding-right: 24px; }
/* A lista "Alterações da Luna" no painel (as últimas 50). */
.luna-alteracoes { margin: 8px 12px 0; padding: 8px; border-radius: 10px; border: 1px solid #b9dfc6; background: #f6fbf8; max-height: 45vh; overflow: auto; }
.luna-alteracoes[hidden] { display: none; }
.luna-alteracoes-titulo { margin: 0 0 4px; font-size: 13px; font-weight: 700; }
.luna-alteracoes-item + .luna-alteracoes-item { margin-top: 6px; }
.luna-alteracoes .luna-alt { margin-top: 0; }
/* A planilha aberta: as células que a Luna alterou ficam destacadas alguns segundos (a classe sai sozinha). */
.luna-celula-alterada { --luna-contorno: #1f8a4c; animation: luna-celula 6s ease-out 1; outline: 3px solid var(--luna-contorno); outline-offset: -3px; }
/* O fundo vence os fundos fixos da grade (coluna congelada e linha do cursor, que usam !important): por isso o id da grade. */
#cfPlanilhaGrid .tabulator-row .tabulator-cell.luna-celula-alterada { background-color: #fff1a8 !important; }
@keyframes luna-celula { 0%, 70% { outline-color: var(--luna-contorno); } 100% { outline-color: transparent; } }
@media (prefers-reduced-motion: reduce) { .luna-celula-alterada { animation: none; } }
html[data-theme="dark"] .luna-alt { background: #10231a; border-color: #1f6b3f; color: #d4efdd; }
html[data-theme="dark"] .luna-alt-titulo, html[data-theme="dark"] .luna-alt-seta { color: #7ee2a6; }
html[data-theme="dark"] .luna-alt-onde, html[data-theme="dark"] .luna-alt-produto, html[data-theme="dark"] .luna-alt-conta { color: #a6c9b4; }
html[data-theme="dark"] .luna-alt-linha { background: rgba(255, 255, 255, .05); border-left-color: #2f9e62; }
html[data-theme="dark"] .luna-alt-antes { color: #94a3a0; }
html[data-theme="dark"] .luna-alt-depois { color: #b8f3cf; }
html[data-theme="dark"] .luna-alt-estranho { background: #2a1a10; border-left-color: #ea580c; }
html[data-theme="dark"] .luna-alt-estranho .luna-alt-depois, html[data-theme="dark"] .luna-alt-aviso { color: #ffb27a; }
html[data-theme="dark"] .luna-alt-desfazer, html[data-theme="dark"] .luna-opcao { background: #171b20; color: #7ee2a6; border-color: #2f9e62; }
html[data-theme="dark"] .luna-opcao { color: #8cc2ff; border-color: #2f6fbf; }
html[data-theme="dark"] .luna-alt-desfazer:hover:not(:disabled) { background: #1a2e23; }
html[data-theme="dark"] .luna-opcao:hover:not(:disabled) { background: #1b2733; }
html[data-theme="dark"] .luna-alt-desfeita { background: #1b2026; border-color: #3a444f; color: #b8c4d0; }
html[data-theme="dark"] .luna-alt-parcial { background: #1d1a14; border-color: #8a6a1c; }
html[data-theme="dark"] .luna-flutuante { background: #171b20; color: #e2e8ee; border-color: #30363d; }
html[data-theme="dark"] .luna-flutuante-fechar { color: #b8c4d0; }
html[data-theme="dark"] .luna-flutuante-fechar:hover { background: #222830; }
html[data-theme="dark"] .luna-flutuante-aviso { background: #2a1a10; color: #ffb27a; }
html[data-theme="dark"] .luna-alteracoes { background: #10231a; border-color: #1f6b3f; }
html[data-theme="dark"] .luna-celula-alterada { --luna-contorno: #7ee2a6; }
html[data-theme="dark"] #cfPlanilhaGrid .tabulator-row .tabulator-cell.luna-celula-alterada { background-color: #5c4a10 !important; }
@media (max-width: 620px) {
  .luna-flutuante { --luna-flut-base: 54px; }
  .luna-alt-depois { font-size: 19px; }
}

/* ---- V15.79.0: Faturamento · a marca "Luna alterou N itens · ver" e a janela com a lista do que mudou. ---- */
.cf-luna-marca { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 999px; border: 1px solid #8fd3a5; background: #effaf2; color: #14633a; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.cf-luna-marca:hover { background: #dcf3e3; }
.cf-luna-marca:focus-visible { outline: 2px solid #1f6feb; outline-offset: 2px; }
.cf-luna-changes-card { max-width: min(640px, 96vw) !important; width: 100%; }
/* As janelas da Central têm o cartão escuro nos dois temas: a lista usa cores claras sobre fundo verde escuro. */
.cf-luna-change { border: 1px solid #1f6b3f; border-radius: 10px; padding: 10px 12px; margin: 0 0 10px; background: #10231a; color: #d4efdd; }
.cf-luna-change header { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin-bottom: 6px; }
.cf-luna-change header strong { color: #7ee2a6; }
.cf-luna-change header span { font-size: 13px; color: #a6c9b4; }
.cf-luna-change ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.cf-luna-change li { display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: baseline; justify-content: space-between; font-size: 14px; }
.cf-luna-change li strong { font-variant-numeric: tabular-nums; color: #b8f3cf; }
.cf-luna-change li.desfeita, .cf-luna-change li.desfeita strong { color: #8fb3a0; text-decoration: line-through; }
.cf-luna-change li em { font-style: normal; font-size: 12px; font-weight: 700; color: #a6c9b4; text-decoration: none; }
html[data-theme="dark"] .cf-luna-marca { background: #10231a; border-color: #1f6b3f; color: #7ee2a6; }
html[data-theme="dark"] .cf-luna-marca:hover { background: #1a2e23; }

/* ---- V15.86.0: Configurações › Luna no WhatsApp, e a faixa "WhatsApp desligado desde DD/MM HH:MM (PC do mensageiro)" (barra de cima e Painel do dia, só o Master). ---- */
.cf-luna-wa-body { margin-top: 10px; font-size: 14px; line-height: 1.5; }
.cf-luna-wa-body .cf-luna-fields label { font-size: 14px; }
/* V15.92.0: a largura do campo vem da classe (antes ".cf-luna-fields input { width: 130px }" ganhava e cortava o número: "+55 11 93333-"). */
.cf-luna-wa-body .cf-luna-fields .cf-luna-wa-in-s { width: 90px; }
.cf-luna-wa-body .cf-luna-fields .cf-luna-wa-in-m { width: 120px; }
.cf-luna-wa-body .cf-luna-fields .cf-luna-wa-in-l { width: 190px; }
.cf-luna-wa-body .cf-luna-fields .cf-luna-wa-in-xl { width: 240px; max-width: 100%; }
.cf-luna-wa-body .cf-luna-check { font-size: 14px; }
.cf-luna-wa-numeros { list-style: none; margin: 6px 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cf-luna-wa-numero { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cf-luna-wa-pessoa { min-width: 240px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cf-luna-wa-meta { flex: 1 1 220px; font-size: 13px; color: var(--cf-texto-2); }
.cf-luna-wa-pessoas { margin: 6px 0; font-weight: 600; }
.cf-luna-wa-aviso-topo { box-sizing: border-box; display: flex; align-items: center; padding: 0 12px; border: 1px solid #e3c36b; background: #fff4d6; color: #5c3d00; font-size: 14px; font-weight: 600; }
.cf-luna-wa-aviso-topo { height: 32px; max-width: min(46vw, 560px); border-radius: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-luna-wa-aviso-topo[hidden] { display: none !important; }
html[data-theme="dark"] .cf-luna-wa-aviso-topo { background: #3a2c0a; border-color: #8a6a1d; color: #ffe2a0; }
@media (max-width: 760px) { .cf-luna-wa-aviso-topo { max-width: 100%; } }
