/* Site guru.grupodigitalsf.com.br: so o que o shell do disparador dava e aqui falta.
   Tudo por token do kit (base.css + tema.css); nada de cor solta. */

/* Sem o shell, a pagina e a janela inteira: o topo da tela e menor que o do disparador. */
body.gc-site { padding: 16px 20px; }
.gc-site .gc-shell { height: calc(100dvh - 104px); }
.gc-site .k-topo { margin-bottom: var(--sp-3); }
.gc-quem { display: inline-flex; align-items: center; gap: 6px; max-width: 240px; font-size: var(--fs-sm); font-weight: 600; color: var(--color-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-quem svg { width: 15px; height: 15px; flex: none; }

/* Acao que o usuario do Guru nao tem: o elemento fica (o JS liga eventos nele), mas nao aparece. */
.gc-sem-perm { display: none !important; }

@media (max-width: 720px) {
    body.gc-site { padding: 10px 12px; }
    .gc-site .gc-shell { height: calc(100dvh - 92px); }
    .gc-quem { display: none; }
}

/* ── Caixa de mensagem: arquivo, biblioteca, dialogo, audio e "/" (compor.js) ── */
.gc-site .gc-compor { position: relative; }
.gc-compor.gravando .gc-compor-l2 { display: none; }

/* Respostas rapidas: lista acima da caixa, como no Guru */
.gc-rapidas { position: absolute; left: 12px; right: 12px; bottom: calc(100% + 6px); z-index: 20; max-height: 300px; overflow-y: auto; padding: 4px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
.gc-rapidas[hidden] { display: none; }
.gc-rapida { display: flex; flex-direction: column; gap: 2px; width: 100%; min-width: 0; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--color-text); font: inherit; text-align: left; cursor: pointer; }
.gc-rapida b { font-size: var(--fs-md); color: var(--color-primary); }
.gc-rapida span { font-size: var(--fs-sm); color: var(--color-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-rapida.ativa { background: var(--k-acento-suave); }
@media (hover: hover) { .gc-rapida:hover { background: var(--k-acento-suave); } }

/* Gravando audio: a barra toma o lugar do texto */
.gc-gravando { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 4px; }
.gc-gravando[hidden] { display: none; }
.gc-rec-ponto { width: 12px; height: 12px; border-radius: 50%; background: var(--color-danger); flex: none; animation: gc-pisca 1s ease-in-out infinite; }
.gc-rec-tempo { flex: 1; font-size: var(--fs-lg); font-weight: 650; font-variant-numeric: tabular-nums; color: var(--color-text); }
@keyframes gc-pisca { 50% { opacity: .25; } }

/* Arrastar arquivo para a conversa */
.gc-conv.gc-soltar { outline: 2px dashed var(--color-primary); outline-offset: -6px; }

/* Enviar arquivo: previa */
.gc-arq-previa { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 140px; padding: 12px; border-radius: var(--radius-md); background: var(--color-surface-2); overflow: hidden; }
.gc-arq-previa img { max-width: 100%; max-height: 320px; object-fit: contain; border-radius: 8px; }
.gc-arq-sigla { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 12px; background: var(--k-acento-suave); color: var(--color-primary); font-size: var(--fs-md); font-weight: 750; }
.gc-arq-nome { font-size: var(--fs-sm); color: var(--color-text-muted); text-align: center; overflow-wrap: anywhere; }

/* Busca fixa no topo dos modais de lista (biblioteca e dialogos) */
.gc-modal-busca { flex: none; display: flex; flex-direction: column; gap: 8px; padding: 12px 20px; border-bottom: 1px solid var(--color-border); }
.gc-modal-busca .k-chips[hidden] { display: none; }
.gc-busca-linha { display: flex; align-items: center; gap: 8px; }
.gc-busca-linha .k-input { flex: 1; min-width: 0; }
.gc-dlg-quando { font-size: var(--fs-xs); color: var(--color-text-muted); }
.gc-dlg-quando:empty { display: none; }

/* Biblioteca */
.gc-bib-item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--color-border); }
.gc-bib-item:last-child { border-bottom: 0; }
.gc-bib-mini { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; overflow: hidden; background: var(--color-neutral-light); color: var(--color-text-muted); font-size: var(--fs-xs); font-weight: 750; }
.gc-bib-mini img { width: 100%; height: 100%; object-fit: cover; }
.gc-bib-txt, .gc-dlg-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gc-bib-txt b, .gc-dlg-txt b { font-size: var(--fs-md); font-weight: 650; color: var(--color-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc-bib-txt span, .gc-dlg-txt span { font-size: var(--fs-sm); color: var(--color-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Dialogos: grupos fechados; a busca mostra os achados de todos os grupos */
.gc-dlg-grupo { border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
.gc-dlg-grupo + .gc-dlg-grupo { margin-top: 8px; }
.gc-dlg-h { display: flex; align-items: center; gap: 8px; width: 100%; min-height: var(--toque); padding: 0 12px; border: 0; background: var(--color-surface-2); color: var(--color-text); font: inherit; text-align: left; cursor: pointer; }
.gc-dlg-h b { flex: 1; min-width: 0; font-size: var(--fs-md); font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc-dlg-h svg { width: 16px; height: 16px; flex: none; color: var(--color-text-muted); transition: transform .15s; }
.gc-dlg-h[aria-expanded="true"] svg { transform: rotate(180deg); }
.gc-dlg-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--color-border); }
.gc-dlg-busca .gc-dlg-item:first-child { border-top: 0; }
.gc-dlg-txt .gc-dlg-grupo-rot { color: var(--color-primary); font-weight: 600; }
.gc-dlg-item .k-btn { min-width: 92px; }

@media (max-width: 720px) {
    .gc-modal-busca { padding: 10px 16px; }
    .gc-modal-busca .k-input { font-size: 16px; }
    .gc-bib-item .k-btn, .gc-dlg-item .k-btn { min-height: var(--toque); }
}

/* ── Login ─────────────────────────────────────────────────────────────────── */
body.gl-site { min-height: 100dvh; display: grid; place-items: center; padding: 16px; }
.gl-caixa { width: min(380px, 100%); display: flex; flex-direction: column; gap: var(--sp-4); padding: 28px 26px 26px; }
.gl-caixa h1 { margin: 2px 0 0; font-size: var(--fs-xl); font-weight: 700; letter-spacing: -.01em; color: var(--color-text); }
.gl-campos { display: flex; flex-direction: column; gap: var(--sp-3); }
.gl-campos[hidden] { display: none; }
.gl-caixa .k-input { min-height: var(--toque); font-size: var(--fs-base); }
.gl-caixa .k-btn { min-height: var(--toque); }
.gl-codigo { letter-spacing: .3em; font-variant-numeric: tabular-nums; }
.gl-carregando { opacity: .7; cursor: progress; }
