

.icn { width: 24px; height: 24px; flex: none; }


.topo { padding-top: env(safe-area-inset-top, 0px); }
.topo .faixa, .rodape .faixa { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.topo .marca { padding-block: 10px; }   
@media (max-width: 399px) { .topo .marca { padding-block: 11px; } }
@media (min-width: 720px) { .topo .marca { padding-block: 8px; } }
.nav > a.so-largo { white-space: nowrap; padding-top: 10px; padding-bottom: 10px; }
.idiomas summary { min-width: 44px; min-height: 44px; display: grid; place-items: center; padding: 0 10px; }
.nav > a.entrar { min-height: 44px; display: inline-flex; align-items: center; }
.topo .botao-p { min-height: 44px; white-space: nowrap; }
.botao-p .rot-curto, .botao-p .rot-minimo { display: none; }

@media (max-width: 1039px) {
  
  .nav > a.so-largo, .nav > a.entrar { display: none; }
  .nav { gap: 8px; }
  .topo .faixa { min-height: 60px; gap: 8px; }
  .nav > .botao-p { white-space: nowrap; max-width: none; padding: 0 16px; line-height: 1; font-size: .92rem; }
}
@media (max-width: 479px) {
  .botao-p .rot-longo { display: none; }
  .botao-p .rot-curto { display: inline; }
}
@media (max-width: 399px) {
  .marca .wordmark { width: 82px; }
  .nav > .botao-p { padding: 0 13px; font-size: .88rem; }
}
@media (max-width: 339px) {
  .botao-p .rot-curto { display: none; }
  .botao-p .rot-minimo { display: inline; }
}

.topo.apertado .botao-p .rot-longo, .topo.apertado .botao-p .rot-curto { display: none; }
.topo.apertado .botao-p .rot-minimo { display: inline; }


.barra-polegar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  display: none; grid-template-columns: repeat(5, minmax(0, 1fr));
  background: rgba(10, 12, 34, .96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--linha);
  padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  box-shadow: 0 -8px 28px rgba(0, 0, 0, .35);
}
.barra-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0;
  min-height: 62px; padding: 7px 2px 6px; border: 0; background: none;
  color: var(--suave); font: inherit; font-size: .72rem; font-weight: 650; line-height: 1.12; text-align: center;
  text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.barra-item span { max-width: 100%; overflow-wrap: anywhere; }
.barra-item .icn { width: 24px; height: 24px; }
.barra-item:hover { color: #fff; }
.barra-item[aria-current="page"], .barra-menu[aria-expanded="true"] { color: #fff; }
.barra-item[aria-current="page"] .icn, .barra-menu[aria-expanded="true"] .icn { color: var(--ouro); }
.barra-item:active { background: rgba(255, 255, 255, .05); }
.barra-item:focus-visible { outline-offset: -3px; }


.folha { position: fixed; inset: 0; z-index: 90; }
.folha-fundo { position: absolute; inset: 0; background: rgba(3, 4, 14, .62); }
.folha-painel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: calc(100% - 1.5rem); overflow-y: auto; overscroll-behavior: contain;
  background: var(--noite-2); color: var(--texto); border: 1px solid var(--linha); border-bottom: 0;
  border-radius: 22px 22px 0 0; box-shadow: 0 -18px 50px rgba(0, 0, 0, .55);
  padding: 10px max(18px, env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px));
  animation: folha-sobe .22s ease-out both;
}
.folha-painel::before { content: ""; display: block; width: 44px; height: 4px; margin: 0 auto 8px; border-radius: 4px; background: rgba(255, 255, 255, .22); }
@keyframes folha-sobe { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.folha-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.folha-titulo { margin: 0; font-size: 1.5rem; font-weight: 850; letter-spacing: -.02em; }
.folha-fechar { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--linha); background: transparent; color: var(--texto); cursor: pointer; }
.folha-fechar .icn { width: 22px; height: 22px; }
.folha-lista { list-style: none; margin: 6px 0 0; padding: 0; }
.folha-lista a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 6px 4px;
  border-bottom: 1px solid var(--linha); color: var(--texto); font-size: 1.12rem; font-weight: 600; text-decoration: none;
}
.folha-lista a .icn { width: 20px; height: 20px; color: var(--suave); }
.folha-lista a:hover { color: #fff; }
.folha-idiomas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.folha-idiomas a {
  display: grid; place-items: center; min-height: 44px; padding: 4px 6px; border-radius: 12px; border: 1px solid var(--linha);
  color: var(--suave); font-size: .9rem; font-weight: 650; text-decoration: none; text-align: center; line-height: 1.15;
}
.folha-idiomas a[aria-current] { color: #fff; border-color: var(--violeta-claro); background: rgba(106, 44, 255, .22); }
.folha-acoes { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 16px; }
.folha-acoes .botao { width: 100%; min-height: 50px; }
body.folha-aberta { overflow: hidden; }
@media (min-width: 600px) { .folha-painel { max-width: 560px; margin: 0 auto; } }


.falar-flutuante {
  position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 57;
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 20px 0 14px;
  border-radius: 999px; background: var(--violeta); color: #fff; font-weight: 750; font-size: .98rem; line-height: 1.1;
  text-decoration: none; white-space: nowrap; box-shadow: 0 10px 30px rgba(106, 44, 255, .45), 0 4px 14px rgba(0, 0, 0, .35);
  transition: transform .22s ease, opacity .22s ease;
}
.falar-flutuante:hover { color: #fff; background: #7A42FF; }
.falar-flutuante .icn { width: 24px; height: 24px; color: var(--ouro); }

.pg-home .falar-flutuante, .pg-conte .falar-flutuante { transform: translateY(160%); opacity: 0; pointer-events: none; }
.pg-home .falar-flutuante.visivel, .pg-conte .falar-flutuante.visivel { transform: none; opacity: 1; pointer-events: auto; }
body.folha-aberta .falar-flutuante, body.teclado-aberto .falar-flutuante { transform: translateY(160%) !important; opacity: 0 !important; pointer-events: none !important; }

@media (max-width: 1039px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .barra-polegar { display: grid; }
  .falar-flutuante { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  
  body.teclado-aberto { padding-bottom: 0; }
  body.teclado-aberto .barra-polegar { display: none; }
}
@media (max-width: 359px) {
  .falar-flutuante span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .falar-flutuante { padding: 0 14px; }
}
@media (min-width: 1040px) {
  .folha { display: none !important; }
}
@media print { .barra-polegar, .folha, .falar-flutuante { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .folha-painel { animation: none; } .falar-flutuante { transition: none; } }


.conversa[data-conversa] .falas,
.pg-conte .conversa[data-conversa] .falas {
  height: auto; min-height: 0; overflow-y: auto;
  max-height: var(--falas-max, clamp(240px, calc(100vh - 470px), 560px));
}
.conversa[data-conversa] { scroll-margin-top: calc(66px + env(safe-area-inset-top, 0px)); }
.conversa-topo .recomecar { min-height: 44px; margin: -7px 0; padding: 0 14px; }
.conversa[data-conversa] .chip { min-height: 44px; line-height: 1.25; }

@media (max-width: 720px) {
  .conversa[data-conversa] .falas { max-height: var(--falas-max, max(200px, calc(100dvh - 440px))); padding: 12px 10px 6px; }
  
  .conversa[data-conversa] .chips { padding: 8px 10px 0; gap: 8px; }
  .conversa[data-conversa] .chips.poucos {
    display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible;
  }
  .conversa[data-conversa] .chips.poucos .chip { width: 100%; max-width: none; white-space: normal; text-align: left; padding: 8px 12px; }
  .conversa[data-conversa] .chips:not(.poucos) { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); padding-right: 28px; }
  .voz-nota { padding: 0 10px 8px; }
}
@media (max-width: 299px) { .conversa[data-conversa] .chips.poucos { grid-template-columns: 1fr; } }
@media (max-width: 800px) {
  
  .conversa[data-conversa] .entrada { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 10px; align-items: center; }
  .conversa[data-conversa] .entrada textarea { grid-column: 1 / -1; width: 100%; min-height: 48px; font-size: 16px; }
  .conversa[data-conversa] .entrada .mic { grid-column: 1; justify-self: start; }
  .conversa[data-conversa] .entrada .enviar { grid-column: 2; }
  .conversa[data-conversa] .entrada .botao { min-height: 44px; padding: 0 18px; font-size: .98rem; box-shadow: none; }
}

.conversa[data-conversa] .entrada .mic::before, .conversa[data-conversa] .entrada .enviar::before {
  content: ""; width: 20px; height: 20px; flex: none; background: currentColor;
  -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat;
}
.conversa[data-conversa] .entrada .mic { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='3' width='6' height='11' rx='3'/%3E%3Cpath d='M5 11a7 7 0 0 0 14 0M12 18v3'/%3E%3C/svg%3E"); }
.conversa[data-conversa] .entrada .enviar { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E"); }
.conversa[data-conversa] .entrada .botao { gap: 8px; white-space: nowrap; }


@media (max-width: 600px) {
  .hero-chat { padding-top: 6px; padding-bottom: 28px; }
  .hero-chat .hero-topo { gap: 12px; margin-bottom: 12px; align-items: flex-start; }
  .hero-chat .hero-marca { width: 40px; margin-top: 4px; }
  .hero-chat .kicker { font-size: .72rem; letter-spacing: .1em; margin-bottom: 4px; }
  .hero-chat h1 { font-size: clamp(1.6rem, 6.8vw, 2.2rem); margin-bottom: 6px; }
  .hero-chat .sub { font-size: .94rem; line-height: 1.45; }
}
@media (max-width: 600px) and (max-height: 700px) {
  .hero-chat h1 { font-size: 1.45rem; }
  .hero-chat .sub { font-size: .88rem; line-height: 1.4; }
}


.folha-painel { max-height: calc(100dvh - 1.5rem); }
@media (min-width: 700px) { .folha .folha-painel { max-height: calc(100dvh - 110px); } }
.folha-cab { position: sticky; top: -10px; z-index: 2; margin: -10px 0 0; padding: 10px 0 4px; background: var(--noite-2); }


@media (max-width: 720px) {
  .conversa[data-conversa] .chips, .conversa[data-conversa] .chips:not(.poucos) {
    flex-wrap: wrap !important; overflow-x: hidden; -webkit-mask-image: none; mask-image: none; padding-right: 10px; }
  .conversa[data-conversa] .chips .chip { flex: 0 1 auto; max-width: 100%; min-width: 0; white-space: normal; overflow-wrap: break-word;
    word-break: normal; height: auto; text-align: left; }
}
