/*Estrutura Básica */

#topo{
     background-color: #0F1014;
}

body{
    &.light{
        --background: var(--nown-n-surface, #f6f8fc);
    }
    
    &.dark{
        --background: var(--nown-n-surface, #121212);
    }
}

body{
    background-color: var(--background);
}

#topo{
    background-color: var(--background);
}

#conteudo{
    background-color: var(--background);
}


/* Menu Hamburguer */
.openMenu {
  position: relative;
  width: 30px;
  height: 30px;
  border: none;
  cursor: pointer;

  &.ativo {
    .barra {
      &:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
      }

      &:nth-child(2) {
        opacity: 0;
      }

      &:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
      }
    }
  }

  .barra {
    position: absolute;
    width: 100%;
    height: 2px;
    transition: all 0.3s ease;
    left: 0px;

    &:nth-child(1) {
      top: 5px;
    }

    &:nth-child(2) {
      top: 50%;
      transform: translateY(-50%);
    }

    &:nth-child(3) {
      bottom: 5px;
    }
  }
}

body.light{
    .openMenu{
        .barra{
            background-color: black;
        }
    }
}

body.dark{
    .openMenu{
        .barra{
            background-color: white;
        }
    }
}
/* Fim Menu Hamburguer */



    .bottom-nav-nown{
 
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 10;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 8px 30px;
    box-sizing: border-box;

    background-color: var(--nown-n-surface);
    
    transition: background-color 0.3s ease;

    /* Sombra sutil (Elevation 2) */
    box-shadow: 0px -2px 8px rgba(0, 0, 0, 0.08);
    
    transition: transform 0.3s cubic-bezier(0.2, 0.0, 0, 1.0), background-color 0.3s ease;
    transform: translateY(0);
    
    &.nav-hidden {
    /* Move a barra 100% da sua altura para baixo */
    transform: translateY(100%);
    
    /* Opcional: remove a sombra para não ficar "manchado" na borda da tela */
    box-shadow: none;
}

    /* --- VARIANTE: TRANSLÚCIDO (Glassmorphism) --- */
    &.translucido {
        /* Usa color-mix para pegar a cor da surface e dar 85% de opacidade */
        /* Nota: color-mix tem bom suporte moderno. Se falhar, usa o fallback acima. */
        background-color: color-mix(in srgb, var(--nown-n-surface) 50%, transparent);
        
        /* O segredo do vidro: desfoque do que está atrás */
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        
        /* Remove a sombra sólida e adiciona uma borda sutil no topo para contraste */
        box-shadow: none;
        border-top: 1px solid color-mix(in srgb, var(--nown-n-outline) 20%, transparent);
    }

    /* --- ITEM DE NAVEGAÇÃO --- */
    .nav-item {
        background: transparent;
        border: none;
        padding: 0;
        margin: 0;
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        cursor: pointer;
        text-decoration: none;
        text-align: center;
        
        /* Cor Inativo: On Surface Variant */
        color: var(--nown-n-on-surface-variant);
        
        /* Remove highlight azul no mobile */
        -webkit-tap-highlight-color: transparent;

        /* Container da Pílula (Indicator) */
        .nav-indicator {
            position: relative;
            width: 64px;
            height: 32px;
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            
            /* ANIMAÇÃO MD3: */
            /* A transição ocorre na cor de fundo. */
            /* Cubic-bezier(0.2, 0, 0, 1) é a curva 'Emphasized' do Material */
            background-color: transparent; /* Começa transparente */
            transition: background-color 0.4s cubic-bezier(0.2, 0.0, 0, 1.0);

            i {
                font-size: 24px;
                line-height: 1;
                /* Transição da cor do ícone */
                transition: color 0.2s linear; 
            }

            /* Badge */
            .nown-badge {
                position: absolute;
                top: 2px;     
                left: 50%;    
                margin-left: 2px;
                display: flex;
                align-items: center;
                justify-content: center;
                background-color: var(--nown-n-error);
                color: var(--nown-n-on-error);
                font-family: sans-serif;
                font-size: 11px;
                font-weight: 700;
                line-height: 1;
                min-width: 16px;
                height: 16px;
                border-radius: 8px;
                padding: 0 4px;
                z-index: 2;
                pointer-events: none;

                &.dot {
                    min-width: 6px;
                    width: 6px;
                    height: 6px;
                    padding: 0;
                    top: 6px;
                    margin-left: 4px;
                }
            }
        }

        /* Texto (Label) */
        .nav-label {
            font-size: 12px;
            font-weight: 500;
            line-height: 16px;
            letter-spacing: 0.5px;
            transition: font-weight 0.2s ease, color 0.2s ease;
        }

        /* --- ESTADO HOVER (Desktop) --- */
        @media (hover: hover) {
            &:hover .nav-indicator {
                 background-color: color-mix(in srgb, var(--nown-n-on-surface) 8%, transparent);
            }
        }

        /* --- ESTADO ATIVO --- */
        &.active {
            /* Texto ativo fica mais forte */
            color: var(--nown-n-on-surface);

            .nav-indicator {
                /* Fundo Ativo: Secondary Container */
                background-color: var(--nown-n-secundaria-container);

                i {
                    /* Ícone Ativo: On Secondary Container */
                    color: var(--nown-n-on-secundaria-container);
                    /* Pequeno efeito de escala para dar "vida" ao clique */
                    transform: scale(1.05); 
                    transition: color 0.2s linear, transform 0.2s cubic-bezier(0.2, 0.0, 0, 1.0);
                }
            }

            .nav-label {
                font-weight: 700;
            }
        }
    }
}

/* ==========================================================================
   RESET GERAL (Corrige o problema do Dark Mode)
   ========================================================================== */
   
/* 1. O Root (Tela inteira) */
::view-transition-old(root),
::view-transition-new(root) {
    /* Desliga a animação padrão do navegador para não conflitar */
    animation: none;
    mix-blend-mode: normal;
    height: 100%;
}

/* 2. O Conteúdo (#conteudo) */
#conteudo {


    width: 100%;



    view-transition-name: none !important;
}

/* Wrapper interno (Se seu JS gera a div .page-wrapper, isso ajuda) */
.page-wrapper {
  
}

/* ==========================================================================
   NAVEGAÇÃO SPA (Só ativa quando tem o atributo data-vt-effect)
   ========================================================================== */

/* AQUI ESTÁ A CORREÇÃO DO DARK MODE:
   Só aplicamos o nome se o HTML tiver o atributo de efeito.
   Se não tiver (como na troca de tema), essa regra é ignorada. */
html[data-vt-effect] #conteudo {
    view-transition-name: page-content !important;
}

/* Configuração do "Palco" da animação */
html[data-vt-effect] ::view-transition-group(page-content) {
    animation-duration: 0.5s;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    /* Remove a mistura de cores estranha */
    mix-blend-mode: normal; 
}

/* Configuração das "Fotos" (Antiga e Nova) */
html[data-vt-effect] ::view-transition-old(page-content),
html[data-vt-effect] ::view-transition-new(page-content) {
    /* Força o tamanho total */
    width: 100%;
    height: 100%;
    /* Garante que não fiquem transparentes */
    background-color: var(--bg-body, #ffffff); 
    /* Impede distorção */
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* --- EFEITO: SLIDE (Aqui forçamos o movimento) --- */
html[data-vt-effect="slide"]::view-transition-old(page-content) {
    animation-name: spa-slide-out;
    transform-origin: left center;
}
html[data-vt-effect="slide"]::view-transition-new(page-content) {
    animation-name: spa-slide-in;
    transform-origin: right center;
    box-shadow: -15px 0 30px rgba(0,0,0,0.1); /* Sombra para ver a separação */
}

@keyframes spa-slide-out {
    0% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(-20%); opacity: 0; }
}

@keyframes spa-slide-in {
    0% { transform: translateX(100%); opacity: 1; }
    100% { transform: translateX(0); opacity: 1; }
}

/* --- EFEITO: FADE --- */
html[data-vt-effect="fade"]::view-transition-old(page-content) {
    animation-name: spa-fade-out;
    mix-blend-mode: plus-lighter;
}
html[data-vt-effect="fade"]::view-transition-new(page-content) {
    animation-name: spa-fade-in;
    mix-blend-mode: plus-lighter;
}
@keyframes spa-fade-out { to { opacity: 0; } }
@keyframes spa-fade-in { from { opacity: 0; } }

/* --- EFEITO: POPUP --- */
html[data-vt-effect="popup"]::view-transition-old(page-content) {
    animation-name: spa-scale-out;
    z-index: 1;
}
html[data-vt-effect="popup"]::view-transition-new(page-content) {
    animation-name: spa-scale-in;
    z-index: 2;
}
@keyframes spa-scale-out { to { transform: scale(0.95); opacity: 0; } }
@keyframes spa-scale-in { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }



[data-theme-transition="1"]::view-transition-new(root) {
    animation: theme-circle 0.6s ease-in forwards;
}
@keyframes theme-circle {
    0% { clip-path: circle(0px at var(--click-x) var(--click-y)); }
    100% { clip-path: circle(150vmax at var(--click-x) var(--click-y)); }
}



/* --- EFEITO: OPEN-MODAL (Deslizar para cima) --- */
html[data-vt-effect="open-modal"]::view-transition-old(page-content) {
    animation-name: spa-modal-old-bg; /* A página de trás diminui */
    z-index: 1;
}
html[data-vt-effect="open-modal"]::view-transition-new(page-content) {
    animation-name: spa-modal-new-in; /* A nova página desliza de baixo */
    z-index: 2; /* Garante que a nova página fique por cima */
    /* Garante que o fundo do modal seja branco, cobrindo o conteúdo antigo */
    background-color: var(--bg-body, #ffffff); 
}

@keyframes spa-modal-old-bg {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; } /* Diminui e escurece um pouco */
}

@keyframes spa-modal-new-in {
    0% { transform: translateY(100%); } /* Começa lá embaixo */
    100% { transform: translateY(0); } /* Sobe para a posição normal */
}

/* --- EFEITO: SLIDE-BACK (Saída para a direita) --- */
html[data-vt-effect="slide-back"]::view-transition-old(page-content) {
    animation-name: spa-slide-back-out;
    z-index: 2;
}
html[data-vt-effect="slide-back"]::view-transition-new(page-content) {
    animation-name: spa-slide-back-in;
    z-index: 1;
}

@keyframes spa-slide-back-out {
    0% { transform: translateX(0); }
    100% { transform: translateX(100%); }
}

@keyframes spa-slide-back-in {
    0% { transform: translateX(-20%); opacity: 0.5; }
    100% { transform: translateX(0); opacity: 1; }
}

/* --- EFEITO: CLOSE-MODAL (Deslizar para baixo) --- */
html[data-vt-effect="close-modal"]::view-transition-old(page-content) {
    animation-name: spa-modal-out;
    z-index: 2;
}
html[data-vt-effect="close-modal"]::view-transition-new(page-content) {
    animation-name: spa-modal-in-bg;
    z-index: 1;
}

@keyframes spa-modal-out {
    0% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

/* A nova página apenas faz um leve fade/scale ao fundo */
@keyframes spa-modal-in-bg {
    0% { transform: scale(0.95); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}



:root {
  --m3-easing: cubic-bezier(0.2, 0, 0, 1);
  --m3-duration: 300ms;
}

/* 1. GATILHO: SEARCH BAR INICIAL */
.m3-search-bar {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 720px;
  height: 56px;
  padding: 0 16px;
  cursor: pointer;
  background-color: var(--nown-n-surface-variant);
  color: var(--nown-n-on-surface-variant);
  border: none;
  border-radius: 28px;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.1s;

  &:hover {
    background-color: color-mix(in srgb, var(--nown-n-surface-variant), black 5%);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
  }

  &:active { transform: scale(0.98); }

  i { font-size: 1.25rem; margin-right: 16px; }
  .placeholder-text { flex: 1; font-size: 1rem; opacity: 0.8; }
  img { width: 32px; height: 32px; border-radius: 50%; margin-left: 12px; object-fit: cover; }
}

/* 2. COMPONENTE: SEARCH VIEW (ABA QUE COBRE TUDO) */
.m3-search-view {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  background-color: var(--nown-n-surface);
  z-index: 9999;
  display: none;
  flex-direction: column;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity var(--m3-duration) var(--m3-easing), 
              transform var(--m3-duration) var(--m3-easing), 
              display var(--m3-duration) allow-discrete;

  &.active {
    display: flex;
    opacity: 1;
    transform: scale(1);
  }

  .m3-search-view-header {
    display: flex;
    align-items: center;
    height: 72px;
    padding: 0 8px;
    border-bottom: 1px solid var(--nown-n-outline);

    .searchInput {
      flex: 1;
      border: none;
      outline: none;
      background: transparent;
      font-size: 1.2rem;
      color: var(--nown-n-on-surface);
      padding: 0 16px;
    }
  }

  .m3-search-view-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 0;

    .m3-section-label {
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--nown-n-primaria);
      padding: 8px 24px;
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    .listaItens .m3-list-item {
      display: flex;
      align-items: center;
      padding: 12px 24px;
      gap: 16px;
      cursor: pointer;
      color: var(--nown-n-on-surface);
      transition: background 0.2s;

      &:hover { background-color: var(--nown-n-surface-variant); }
      i { font-size: 1.25rem; color: var(--nown-n-outline); }
    }
  }
}

/* 3. COMPONENTE: VOICE OVERLAY (ESTILO YOUTUBE) */
.m3-voice-modal {
  position: fixed;
  inset: 0;
  background-color: var(--nown-n-surface);
  color: var(--nown-n-on-surface);
  z-index: 10001;
  display: none;
  flex-direction: column;
  padding: 24px;

  &.active {
    display: flex;
    animation: m3-surface-fade 0.4s var(--m3-easing);
  }

  /* Botão de fechar no topo, isolado do centro */
  .m3-voice-top-bar {
    position: absolute;
    top: 24px;
    right: 24px;

    .m3-icon-button {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      border: none;
      background-color: var(--nown-n-surface-variant);
      color: var(--nown-n-on-surface-variant);
      display: grid;
      place-items: center;
      transition: all 0.2s;

      &:hover { background-color: var(--nown-n-outline); color: var(--nown-n-surface); }
    }
  }

  /* Centro da tela: Transcrição e Microfone */
  .m3-voice-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 60px;

    .voice-feedback {
      text-align: center;
      max-width: 800px;

      .voice-status {
        color: var(--nown-n-primaria);
        font-weight: 600;
        text-transform: uppercase;
        font-size: 0.8rem;
        letter-spacing: 2px;
      }

      .voice-text-display {
        margin-top: 20px;
        font-size: clamp(1.5rem, 5vw, 2.5rem);
        font-weight: 400;
        min-height: 3em;

        &::after {
          content: "";
          display: inline-block;
          width: 3px;
          height: 1em;
          background-color: var(--nown-n-primaria);
          margin-left: 6px;
          animation: m3-cursor-blink 0.8s infinite;
          vertical-align: middle;
        }
      }
    }

    .m3-voice-visualizer {
      position: relative;
      width: 140px;
      height: 140px;
      display: grid;
      place-items: center;
      
      

      .m3-mic-sphere {
        width: 90px;
        height: 90px;
        background-color: var(--nown-n-primaria);
        color: var(--nown-n-on-primaria);
        border-radius: 50%;
        display: grid;
        place-items: center;
        font-size: 2.5rem;
        z-index: 2;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
      }

     .m3-pulse-effect {
        position: absolute;
        inset: 0;
        background-color: var(--nown-n-primaria-container);
        border-radius: 50%;
        z-index: 1;
        /* Removida a animation: m3-ripple; */
        transition: transform 0.1s ease-out; /* Suaviza a resposta do volume */
        transform: scale(1);
        opacity: 0.6;
    }
    }
  }

  /* Footer: Botão de Parar centralizado */
  .m3-voice-footer {
    display: flex;
    justify-content: center;
    padding-bottom: 40px;

    .m3-btn-stop {
      border: none;
      background-color: var(--nown-n-error-container);
      color: var(--nown-n-on-error-container);
      padding: 16px 40px;
      border-radius: 32px;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 12px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
      transition: all 0.2s;

      &:active { transform: scale(0.95); }
      i { font-size: 1.3rem; }
    }
  }
}

/* UTILITÁRIO: BOTÃO DE ÍCONE PADRÃO */
.m3-icon-button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: transparent;
  display: grid;
  place-items: center;
  color: var(--nown-n-on-surface);
  transition: background 0.2s;
  &:hover { background-color: var(--nown-n-surface-variant); }
}

/* ANIMAÇÕES */
@keyframes m3-ripple {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}

@keyframes m3-cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes m3-surface-fade {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}



:root {
  --m3-easing: cubic-bezier(0.2, 0, 0, 1);
  --m3-duration: 300ms;
}

.m3-search-view {
  /* Configuração Base (Mobile First - Fullscreen) */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  background-color: var(--nown-n-surface);
  z-index: 9999;
  display: none;
  flex-direction: column;
  
  /* Estado inicial para animação */
  opacity: 0;
  transform: scale(0.95) translateY(-10px);
  transition: 
    opacity var(--m3-duration) linear,
    transform var(--m3-duration) var(--m3-easing),
    display var(--m3-duration) allow-discrete;

  /* Quando ativa */
  &.active {
    display: flex;
    opacity: 1;
    transform: scale(1) translateY(0);
  }

  /* Cabeçalho de busca */
  .m3-search-view-header {
    display: flex;
    align-items: center;
    height: 72px;
    padding: 0 8px;
    border-bottom: 1px solid var(--nown-n-surface-variant);

    .searchInput {
      flex: 1;
      border: none;
      outline: none;
      background: transparent;
      font-size: 1.15rem;
      color: var(--nown-n-on-surface);
      padding: 0 16px;

      &::placeholder {
        color: var(--nown-n-on-surface-variant);
        opacity: 0.7;
      }
    }
  }

  /* Corpo e Lista de Resultados */
  .m3-search-view-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 0;

    .m3-section-label {
      font-size: 0.85rem;
      font-weight: 500;
      color: var(--nown-n-primaria);
      padding: 8px 24px;
      letter-spacing: 0.5px;
    }

    .listaItens {
      /* Estilo dos cards injetados dinamicamente */
      .m3-list-item {
        display: flex;
        align-items: center;
        padding: 12px 24px;
        gap: 16px;
        cursor: pointer;
        color: var(--nown-n-on-surface);
        transition: background 0.2s ease;

        &:hover {
          background-color: var(--nown-n-surface-variant);
        }

        i {
          font-size: 1.25rem;
          color: var(--nown-n-on-surface-variant);
        }

        .item-info {
          display: flex;
          flex-direction: column;
          
          .title {
            font-weight: 500;
          }
          .subtitle {
            font-size: 0.85rem;
            color: var(--nown-n-on-surface-variant);
          }
        }
      }
    }
  }

  /* Botões de Ícone Genéricos (M3 Style) */
  .m3-icon-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: transparent;
    display: grid;
    place-items: center;
    color: var(--nown-n-on-surface);
    transition: background 0.2s;

    &:hover {
      background-color: var(--nown-n-surface-variant);
    }

    &:active {
      background-color: var(--nown-n-primaria-container);
      color: var(--nown-n-on-primaria-container);
    }
  }
}

/* Ajuste para telas maiores (Desktop) */
@media (min-width: 768px) {
  .m3-search-view.active {
    /* Opcional: Em desktop, pode ser um modal centralizado em vez de full */
    /* width: 720px; height: 80vh; left: 50%; top: 10%; transform: translateX(-50%); border-radius: 28px; */
  }
}

#backAdmin {
    --bg-glass: rgba(15, 23, 42, 0.8); /* Dark Glass Premium */
    --accent: #818cf8;
    
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    width: max-content;
    min-width: 500px;
    
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 10px 14px 10px 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    font-family: 'Inter', system-ui, sans-serif;
    color: white;

    /* Nesting das classes internas */
    & .bar-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 40px;

        & .user-info {
            display: flex;
            align-items: center;
            gap: 16px;

            & .status-tag {
                background: rgba(129, 140, 248, 0.2);
                color: var(--accent);
                border: 1px solid rgba(129, 140, 248, 0.3);
                font-size: 11px;
                font-weight: 700;
                padding: 4px 10px;
                border-radius: 20px;
                text-transform: uppercase;
            }

            & .avatar-flow {
                display: flex;
                align-items: center;
                gap: 8px;

                & .avatar {
                    width: 34px;
                    height: 34px;
                    border-radius: 50%;
                    border: 2px solid rgba(255, 255, 255, 0.2);
                }

                & .separator {
                    color: rgba(255, 255, 255, 0.4);
                    font-size: 14px;
                }
            }

            & .desc {
                margin: 0;
                font-size: 14px;
                color: rgba(255, 255, 255, 0.8);

                & strong {
                    color: #fff;
                    font-weight: 600;
                }
            }
        }

        & .btn-restore {
            background: #fff;
            color: #0f172a;
            text-decoration: none;
            font-size: 13px;
            font-weight: 700;
            padding: 10px 24px;
            border-radius: 50px;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);

            & span {
                color: var(--accent);
            }

            &:hover {
                background: #f8fafc;
                transform: scale(1.03);
                box-shadow: 0 0 15px rgba(129, 140, 248, 0.4);
            }
        }
    }
}

/* Ajuste para telas menores */
@media (max-width: 600px) {
    #backAdmin {
        width: 95%;
        min-width: unset;
        padding: 8px;
        
        & .status-tag, & .avatar-flow .separator, & .avatar:first-child {
            display: none;
        }
    }
}


/* ===========================================================
   ModalCrop — Premium Edition
   CSS em nesting, ancorado em #modalCrop
   Temas: body.light  |  body.dark
   =========================================================== */

#modalCrop {
    /* Tokens padrão (light por default, caso o body não tenha classe) */
    --mc-surface: #ffffff;
    --mc-surface-2: #f5f5f7;
    --mc-surface-3: #ebebed;
    --mc-text: #1d1d1f;
    --mc-text-secondary: #6e6e73;
    --mc-border: rgba(0, 0, 0, 0.08);
    --mc-hover: rgba(0, 0, 0, 0.05);
    --mc-hover-strong: rgba(0, 0, 0, 0.09);
    --mc-chip-bg: rgba(0, 0, 0, 0.06);
    --mc-accent: #0a84ff;
    --mc-accent-hover: #0070e0;
    --mc-accent-shadow: rgba(10, 132, 255, 0.32);
    --mc-radius: 18px;
    --mc-radius-sm: 10px;
    --mc-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), 0 8px 20px rgba(0, 0, 0, 0.15);

    /* === Dialog & content === */
    & .mc-dialog {
        max-width: 720px;
    }

    & .mc-content {
        background: var(--mc-surface);
        color: var(--mc-text);
        border: none;
        border-radius: var(--mc-radius);
        overflow: hidden;
        box-shadow: var(--mc-shadow);
        font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
    }

    &.fade .modal-dialog {
        transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .35s;
        transform: scale(.96) translateY(8px);
    }

    &.show .modal-dialog {
        transform: scale(1) translateY(0);
    }

    /* === Header === */
    & .mc-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 22px 14px;
        border-bottom: 1px solid var(--mc-border);

        & .mc-header-title {
            font-size: 17px;
            font-weight: 600;
            letter-spacing: -0.01em;
        }

        & .mc-close {
            background: transparent;
            border: none;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: var(--mc-text-secondary);
            cursor: pointer;
            transition: background .2s, color .2s;

            &:hover {
                background: var(--mc-hover-strong);
                color: var(--mc-text);
            }
        }
    }

    /* === Body / Stage === */
    & .mc-body {
        padding: 18px 22px 8px;

        & .mc-stage {
            background: linear-gradient(180deg, var(--mc-surface-2) 0%, var(--mc-surface-3) 100%);
            border-radius: 14px;
            padding: 14px;

            & .mc-stage-inner {
                position: relative;
                width: 100%;
                max-height: 60vh;
                aspect-ratio: 1 / 1;
                border-radius: 10px;
                overflow: hidden;

                & .mc-img {
                    display: block;
                    max-width: 100%;
                    opacity: 0;
                }
            }
        }
    }

    /* Cropper toma controle do <img> quando inicializa */
    & .cropper-container .mc-img {
        opacity: 1;
    }

    /* === Loading overlay === */
    & .mc-loading-overlay {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: color-mix(in srgb, var(--mc-surface-2) 65%, transparent);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        transition: opacity .3s;

        &.mc-hidden {
            opacity: 0;
            pointer-events: none;
        }

        & .mc-spinner {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            border: 2.5px solid color-mix(in srgb, var(--mc-text-secondary) 30%, transparent);
            border-top-color: var(--mc-accent);
            animation: mc-spin .8s linear infinite;
        }
    }

    /* === Presets de aspect ratio === */
    & .mc-presets {
        display: flex;
        gap: 6px;
        padding: 14px 22px 4px;
        overflow-x: auto;
        scrollbar-width: none;

        &::-webkit-scrollbar {
            display: none;
        }

        & .mc-preset-btn {
            flex: 0 0 auto;
            padding: 7px 14px;
            border-radius: 999px;
            border: 1px solid var(--mc-border);
            background: transparent;
            color: var(--mc-text-secondary);
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: all .2s;

            &:hover {
                background: var(--mc-hover);
                color: var(--mc-text);
            }

            &.active {
                background: var(--mc-text);
                color: var(--mc-surface);
                border-color: var(--mc-text);
            }
        }
    }

    /* === Toolbar === */
    & .mc-toolbar {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 14px 22px;
        border-top: 1px solid var(--mc-border);
        flex-wrap: wrap;

        & .mc-tool-group {
            display: flex;
            gap: 4px;
            padding: 4px;
            background: var(--mc-chip-bg);
            border-radius: var(--mc-radius-sm);

            & .mc-tool-btn {
                width: 34px;
                height: 34px;
                border: none;
                background: transparent;
                border-radius: 7px;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                color: var(--mc-text);
                cursor: pointer;
                transition: background .15s, transform .1s;

                &:hover {
                    background: var(--mc-hover-strong);
                }

                &:active {
                    transform: scale(.92);
                }
            }
        }

        & .mc-zoom {
            flex: 1;
            min-width: 160px;
            display: flex;
            align-items: center;
            gap: 10px;
            color: var(--mc-text-secondary);

            & .mc-zoom-slider {
                flex: 1;
                -webkit-appearance: none;
                appearance: none;
                height: 4px;
                background: var(--mc-chip-bg);
                border-radius: 99px;
                outline: none;

                &::-webkit-slider-thumb {
                    -webkit-appearance: none;
                    appearance: none;
                    width: 18px;
                    height: 18px;
                    border-radius: 50%;
                    background: var(--mc-surface);
                    border: 1px solid var(--mc-border);
                    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18), 0 1px 1px rgba(0, 0, 0, 0.1);
                    cursor: grab;
                    transition: transform .15s;
                }

                &::-webkit-slider-thumb:active {
                    transform: scale(1.1);
                    cursor: grabbing;
                }

                &::-moz-range-thumb {
                    width: 18px;
                    height: 18px;
                    border-radius: 50%;
                    background: var(--mc-surface);
                    border: 1px solid var(--mc-border);
                    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
                    cursor: grab;
                }
            }
        }
    }

    /* === Footer === */
    & .mc-footer {
        display: flex;
        justify-content: flex-end;
        gap: 10px;
        padding: 14px 22px 18px;
        border-top: 1px solid var(--mc-border);

        & .mc-btn {
            position: relative;
            padding: 9px 20px;
            border-radius: var(--mc-radius-sm);
            border: none;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all .2s;
            font-family: inherit;
            min-width: 100px;

            & .mc-btn-spinner {
                display: none;
                width: 14px;
                height: 14px;
                border-radius: 50%;
                border: 2px solid rgba(255, 255, 255, 0.4);
                border-top-color: #fff;
                animation: mc-spin .7s linear infinite;
                vertical-align: middle;
            }

            &.mc-loading {
                & .mc-btn-label {
                    opacity: 0;
                }
                & .mc-btn-spinner {
                    display: inline-block;
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    margin: -7px 0 0 -7px;
                }
            }

            &.mc-btn-ghost {
                background: var(--mc-chip-bg);
                color: var(--mc-text);

                &:hover {
                    background: var(--mc-hover-strong);
                }
            }

            &.mc-btn-primary {
                background: var(--mc-accent);
                color: #fff;
                box-shadow: 0 1px 2px var(--mc-accent-shadow);

                &:hover {
                    background: var(--mc-accent-hover);
                    transform: translateY(-1px);
                    box-shadow: 0 4px 12px var(--mc-accent-shadow);
                }

                &:active {
                    transform: translateY(0);
                }

                &:disabled {
                    opacity: .7;
                    cursor: wait;
                    transform: none;
                }
            }
        }
    }

    /* === Mobile === */
    @media (max-width: 576px) {
        & .mc-dialog {
            margin: 8px;
        }
        & .mc-header {
            padding: 14px 16px 10px;
        }
        & .mc-body {
            padding: 14px 16px 6px;

            & .mc-stage .mc-stage-inner {
                max-height: 50vh;
            }
        }
        & .mc-presets {
            padding: 10px 16px 4px;
        }
        & .mc-toolbar {
            padding: 12px 16px;
            gap: 10px;
        }
        & .mc-footer {
            padding: 12px 16px 14px;

            & .mc-btn {
                min-width: 88px;
                padding: 9px 14px;
            }
        }
    }
}

/* ===========================================================
   TEMA CLARO  (body.light)
   =========================================================== */
body.light #modalCrop {
    --mc-surface: #ffffff;
    --mc-surface-2: #f5f5f7;
    --mc-surface-3: #ebebed;
    --mc-text: #1d1d1f;
    --mc-text-secondary: #6e6e73;
    --mc-border: rgba(0, 0, 0, 0.08);
    --mc-hover: rgba(0, 0, 0, 0.05);
    --mc-hover-strong: rgba(0, 0, 0, 0.09);
    --mc-chip-bg: rgba(0, 0, 0, 0.06);
    --mc-shadow: 0 30px 80px rgba(0, 0, 0, 0.18), 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* ===========================================================
   TEMA ESCURO  (body.dark)
   =========================================================== */
body.dark #modalCrop {
    --mc-surface: #1c1c1e;
    --mc-surface-2: #2c2c2e;
    --mc-surface-3: #1c1c1e;
    --mc-text: #f5f5f7;
    --mc-text-secondary: #a1a1a6;
    --mc-border: rgba(255, 255, 255, 0.1);
    --mc-hover: rgba(255, 255, 255, 0.06);
    --mc-hover-strong: rgba(255, 255, 255, 0.12);
    --mc-chip-bg: rgba(255, 255, 255, 0.08);
    --mc-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Backdrop com blur em ambos os temas */
body.light .modal-backdrop.show,
body.dark .modal-backdrop.show {
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background-color: rgba(0, 0, 0, 0.45);
    opacity: 1;
}

body.light .modal-backdrop.show {
    background-color: rgba(0, 0, 0, 0.3);
}

/* Animação compartilhada */
@keyframes mc-spin {
    to { transform: rotate(360deg); }
}


.modal-idiomas-premium .mi-content {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}

.modal-idiomas-premium .mi-body {
    padding: 1.5rem;
}

.modal-idiomas-premium .mi-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.modal-idiomas-premium .mi-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.modal-idiomas-premium .mi-subtitle {
    font-size: .85rem;
    opacity: .6;
    margin: .15rem 0 0;
}

/* Item de idioma */
.modal-idiomas-premium .mi-item {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .7rem .9rem;
    border: 1px solid rgba(128, 128, 128, .18);
    border-radius: 12px;
    background: transparent;
    transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.modal-idiomas-premium .mi-item:hover {
    transform: translateY(-2px);
    border-color: var(--bs-primary, #0d6efd);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
}

.modal-idiomas-premium .mi-item.ativo {
    border-color: var(--bs-primary, #0d6efd);
    background: rgba(13, 110, 253, .08);
}

.modal-idiomas-premium .mi-flag {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1);
}

.modal-idiomas-premium .mi-name {
    font-weight: 500;
    text-align: left;
    line-height: 1.1;
}

.modal-idiomas-premium .mi-check {
    margin-left: auto;
    color: var(--bs-primary, #0d6efd);
    font-size: 1.15rem;
}

/* Por padrão (mobile first), esconde o elemento */
.hide-mobile {
    display: none !Important;
}

/* A partir do breakpoint lg (≥992px) o elemento aparece */
@media (min-width: 992px) {
    .hide-mobile {
        display: block !Important;
    }
}

/* Por padrão (mobile), o elemento aparece normalmente */
.hide-pc {
    display: block !Important;
}

/* A partir do breakpoint lg (≥992px) o elemento some */
@media (min-width: 992px) {
    .hide-pc {
        display: none !important;
    }
}

/* ===== Fullscreen animado ===== */
#lateral,
#topo,
#corpo,
#conteudo,
#botaoFlutuanteNownContato{
    transition:
        transform .5s cubic-bezier(.32,.72,0,1),
        opacity   .4s ease,
        margin    .5s cubic-bezier(.32,.72,0,1),
        padding   .5s cubic-bezier(.32,.72,0,1);
}

body.nown-fullscreen #lateral{
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
}
body.nown-fullscreen #topo{
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}
body.nown-fullscreen #corpo    { margin-left: 0; padding: 0; }
body.nown-fullscreen #conteudo { padding: 0; }
body.nown-fullscreen #botaoFlutuanteNownContato{
    transform: translateY(24px) scale(.9);
    opacity: 0;
    pointer-events: none;
}

/* evita flash ao abrir direto numa página fullscreen */
body.nown-sem-anim #lateral,
body.nown-sem-anim #topo,
body.nown-sem-anim #corpo,
body.nown-sem-anim #conteudo,
body.nown-sem-anim #botaoFlutuanteNownContato{ transition: none !important; }

/* ==========================================================================
   SeletorIcone — CSS GLOBAL DO MODAL  (CSS nesting nativo)
   Carregue uma única vez. O HTML do modal é criado dinamicamente pela classe.
   Tudo aninhado sob .si-modal -> não colide com nada fora do modal.
   Herda tokens do Nown: --nown-primaria / --nown-primaria-rgb, body.dark
   ========================================================================== */

.si-modal{
  /* tokens locais (fallback caso o escopo não tenha os do Nown) */
  --si-bg:#ffffff;
  --si-bg-2:#f7f7f9;
  --si-borda:#e5e7eb;
  --si-txt:#1f2430;
  --si-txt-2:#6b7280;
  --si-hover:rgba(var(--nown-primaria-rgb,79,70,229),.08);

  position:fixed;
  inset:0;
  z-index:9999;
  display:none;

  /* tema escuro do Nown */
  body.dark &{
    --si-bg:#151821;
    --si-bg-2:#0f1117;
    --si-borda:#262b36;
    --si-txt:#e6e8ee;
    --si-txt-2:#9aa1ad;
    --si-hover:rgba(var(--nown-primaria-rgb,79,70,229),.18);
  }

  &.aberto{ display:block; }

  .si-backdrop{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.45);
    backdrop-filter:blur(2px);
  }

  .si-painel{
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
    width:min(680px,92vw);
    height:min(620px,86vh);
    background:var(--si-bg);
    color:var(--si-txt);
    border:1px solid var(--si-borda);
    border-radius:16px;
    display:flex;
    flex-direction:column;
    overflow:hidden;
    box-shadow:0 24px 60px rgba(0,0,0,.3);
    animation:si-surge .16s ease;

    @media (prefers-reduced-motion:reduce){
      animation:none;
    }
  }

  .si-topo{
    padding:16px 18px;
    border-bottom:1px solid var(--si-borda);
    display:flex;
    gap:10px;
    align-items:center;
    flex-wrap:wrap;
  }

  .si-busca{
    flex:1;
    position:relative;
    display:flex;
    align-items:center;

    svg{
      position:absolute;
      left:12px;
      width:16px;
      height:16px;
      color:var(--si-txt-2);
      pointer-events:none;
    }
  }

  .si-busca-input{
    width:100%;
    box-sizing:border-box;
    border:1px solid var(--si-borda);
    background:var(--si-bg-2);
    border-radius:10px;
    padding:10px 12px 10px 38px;
    font-size:14px;
    color:var(--si-txt);
    outline:0;

    &:focus{
      border-color:var(--nown-primaria);
      box-shadow:0 0 0 3px rgba(var(--nown-primaria-rgb,79,70,229),.15);
    }
  }

  .si-fontes{
    display:inline-flex;
    border:1px solid var(--si-borda);
    border-radius:10px;
    overflow:hidden;
    flex-shrink:0;
  }

  .si-fonte-btn{
    border:0;
    background:var(--si-bg-2);
    color:var(--si-txt-2);
    cursor:pointer;
    padding:9px 12px;
    font-size:12px;
    font-weight:600;
    line-height:1;
    transition:background .12s, color .12s;

    &:hover{ color:var(--si-txt); }

    &:focus-visible{
      outline:2px solid var(--nown-primaria);
      outline-offset:-2px;
    }

    &.ativo{
      background:var(--nown-primaria);
      color:#fff;
    }

    &+.si-fonte-btn{
      border-left:1px solid var(--si-borda);
    }
  }

  .si-fechar{
    border:0;
    background:transparent;
    font-size:24px;
    line-height:1;
    color:var(--si-txt-2);
    cursor:pointer;
    width:38px;
    height:38px;
    border-radius:8px;
    flex-shrink:0;

    &:hover{
      background:var(--si-hover);
      color:var(--si-txt);
    }
  }

  .si-grid{
    flex:1;
    overflow:auto;
    padding:12px;
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(88px,1fr));
    gap:8px;
    align-content:start;
  }

  .si-item{
    /* virtualização barata: o navegador não pinta o que está fora da tela */
    content-visibility:auto;
    contain-intrinsic-size:84px 84px;
    height:84px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:6px;
    padding:10px 6px;
    border:1px solid transparent;
    border-radius:10px;
    background:transparent;
    color:var(--si-txt);
    cursor:pointer;
    transition:background .12s, border-color .12s;

    &:hover{
      background:var(--si-hover);
      border-color:var(--si-borda);
    }

    &.ativo{
      border-color:var(--nown-primaria);
      background:rgba(var(--nown-primaria-rgb,79,70,229),.12);
    }

    i,
    .material-symbols-outlined{
      font-size:24px;
    }

    span:last-child{
      font-size:10px;
      color:var(--si-txt-2);
      max-width:100%;
      overflow:hidden;
      text-overflow:ellipsis;
      white-space:nowrap;
    }
  }

  .si-rodape{
    padding:8px 16px;
    border-top:1px solid var(--si-borda);
    font-size:12px;
    color:var(--si-txt-2);
    text-align:center;
  }

  .si-sentinela{
    grid-column:1/-1;
    height:1px;
  }

  .si-vazio{
    grid-column:1/-1;
    text-align:center;
    color:var(--si-txt-2);
    padding:40px 0;
    font-size:14px;
  }
}

/* fora do modal: helper opcional p/ o gatilho e o preview */
.si-abre{ cursor:pointer; }

@keyframes si-surge{
  from{ opacity:0; transform:translate(-50%,-46%); }
}

.bt-modal{
  /* tokens locais (fallback caso o escopo não tenha os do Nown) */
  --bt-bg:#ffffff;
  --bt-bg-2:#f7f7f9;
  --bt-borda:#e5e7eb;
  --bt-txt:#1f2430;
  --bt-txt-2:#6b7280;
  --bt-hover:rgba(var(--nown-primaria-rgb,79,70,229),.08);

  position:fixed;
  inset:0;
  z-index:9999;
  display:none;

  /* tema escuro do Nown */
  body.dark &{
    --bt-bg:#151821;
    --bt-bg-2:#0f1117;
    --bt-borda:#262b36;
    --bt-txt:#e6e8ee;
    --bt-txt-2:#9aa1ad;
    --bt-hover:rgba(var(--nown-primaria-rgb,79,70,229),.18);
  }

  &.aberto{ display:block; }

  .bt-backdrop{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.45);
    backdrop-filter:blur(2px);
  }

  .bt-painel{
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
    width:min(560px,92vw);
    max-height:86vh;
    background:var(--bt-bg);
    color:var(--bt-txt);
    border:1px solid var(--bt-borda);
    border-radius:16px;
    display:flex;
    flex-direction:column;
    overflow:hidden;
    box-shadow:0 24px 60px rgba(0,0,0,.3);
    animation:bt-surge .16s ease;

    @media (prefers-reduced-motion:reduce){
      animation:none;
    }
  }

  .bt-topo{
    padding:16px 18px;
    border-bottom:1px solid var(--bt-borda);
    display:flex;
    gap:10px;
    align-items:flex-start;
    justify-content:space-between;
  }

  .bt-titulo{
    display:flex;
    flex-direction:column;
    gap:2px;
    font-size:16px;
    font-weight:600;
    line-height:1.2;
    min-width:0;
  }

  .bt-origem{
    font-size:12.5px;
    font-weight:400;
    color:var(--bt-txt-2);
    max-width:100%;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .bt-fechar{
    border:0;
    background:transparent;
    font-size:24px;
    line-height:1;
    color:var(--bt-txt-2);
    cursor:pointer;
    width:38px;
    height:38px;
    border-radius:8px;
    flex-shrink:0;

    &:hover{
      background:var(--bt-hover);
      color:var(--bt-txt);
    }
  }

  .bt-corpo{
    flex:1;
    overflow:auto;
    padding:14px 18px;
    display:grid;
    gap:10px;
    align-content:start;
  }

  .bt-linha{
    display:grid;
    grid-template-columns:150px 1fr;
    align-items:center;
    gap:12px;
    margin:0;
  }

  .bt-rotulo{
    display:flex;
    flex-direction:column;
    justify-content:center;
    line-height:1.15;
    min-width:0;
  }

  .bt-cod{
    font-size:10.5px;
    text-transform:uppercase;
    letter-spacing:.04em;
    color:var(--bt-txt-2);
  }

  .bt-nome{
    font-size:13px;
    color:var(--bt-txt);
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .bt-campo{
    width:100%;
    box-sizing:border-box;
    border:1px solid var(--bt-borda);
    background:var(--bt-bg-2);
    border-radius:10px;
    padding:9px 12px;
    font-size:14px;
    color:var(--bt-txt);
    outline:0;

    &[dir="rtl"]{ text-align:right; }

    &:focus{
      border-color:var(--nown-primaria);
      box-shadow:0 0 0 3px rgba(var(--nown-primaria-rgb,79,70,229),.15);
    }
  }

  .bt-rodape{
    padding:12px 18px;
    border-top:1px solid var(--bt-borda);
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:10px;
  }

  .bt-btn{
    border:1px solid transparent;
    border-radius:10px;
    padding:9px 18px;
    font-size:13px;
    font-weight:600;
    line-height:1;
    cursor:pointer;
    transition:background .12s, color .12s, border-color .12s;

    &:focus-visible{
      outline:2px solid var(--nown-primaria);
      outline-offset:2px;
    }
  }

  .bt-btn-sec{
    background:var(--bt-bg-2);
    color:var(--bt-txt-2);
    border-color:var(--bt-borda);

    &:hover{ color:var(--bt-txt); background:var(--bt-hover); }
  }

  .bt-btn-pri{
    background:var(--nown-primaria);
    color:#fff;

    &:hover{ filter:brightness(1.05); }
  }

  .bt-btn-ia{
    background:var(--bt-bg-2);
    color:var(--nown-primaria);
    border-color:var(--bt-borda);
    display:inline-flex;
    align-items:center;
    gap:8px;

    &:hover{ background:var(--bt-hover); }

    &:disabled{ opacity:.6; cursor:default; }
  }

  /* me-auto: empurra os botões de ação p/ a direita, IA fica à esquerda */
  .me-auto{ margin-right:auto; }

  .bt-ia-spin{
    width:14px;
    height:14px;
    border:2px solid currentColor;
    border-top-color:transparent;
    border-radius:50%;
    animation:bt-girar .6s linear infinite;
  }

  /* empilha rótulo sobre o campo no mobile */
  @media (max-width:480px){
    .bt-linha{
      grid-template-columns:1fr;
      gap:4px;
    }
  }
}

@keyframes bt-surge{
  from{ opacity:0; transform:translate(-50%,-46%); }
}

@keyframes bt-girar{
  to{ transform:rotate(360deg); }
}

#listaM .handle,
.filhosContainer .handle{
  touch-action: none;
}