/* DROPZ Ingressos · identidade DROPZ Agência v2 leve (claro) + modo noturno */
@font-face { font-family: "DM Sans"; src: url(/assets/fontes/dm-sans.woff2) format("woff2"); font-weight: 100 1000; font-display: swap; }
@font-face { font-family: "Bebas Neue"; src: url(/assets/fontes/bebas-neue.woff2) format("woff2"); font-display: swap; }

:root, :root[data-theme="claro"] {
  --fundo: #faf8f4; --cartao: #ffffff; --tinta: #080808; --texto-2: #5a5650;
  --roxo: #7b2fbe; --roxo-hover: #6a27a6; --roxo-tx: #7b2fbe; --lilas: #f1e9fa; --limao: #d4f25a; --limao-hover: #c6e84a; --limao-tx: #080808;
  --linha: rgba(8,8,8,.08); --linha-forte: rgba(8,8,8,.18); --gota: #7b2fbe;
  --chip-on-bg: #080808; --chip-on-tx: #fff; --verde-bg: #e8f3ec; --verde-tx: #1d6b44;
  --erro-bg: #fdecec; --erro-tx: #9b1c1c; --foco: #b88af0;
  --arte1: #efe6f8; --arte2: #e7eef3; --arte3: #f3ece2; --arte4: #e6f0ea; --sombra: rgba(0,0,0,.10);
  color-scheme: light;
}
:root[data-theme="escuro"] {
  --fundo: #0e0d0c; --cartao: #181716; --tinta: #f5f3ef; --texto-2: #b8b2a9;
  --roxo: #7b2fbe; --roxo-hover: #8c3fd0; --roxo-tx: #cdabf7; --lilas: #2a1d3a; --limao: #d4f25a; --limao-hover: #e0f77e; --limao-tx: #080808;
  --linha: rgba(255,255,255,.09); --linha-forte: rgba(255,255,255,.2); --gota: #b88af0;
  --chip-on-bg: #f5f3ef; --chip-on-tx: #080808; --verde-bg: #12291d; --verde-tx: #8fdcb2;
  --erro-bg: #3a1414; --erro-tx: #ffb4b4; --foco: #cdabf7;
  --arte1: #2a1d3a; --arte2: #17262f; --arte3: #2d2416; --arte4: #15291e; --sombra: rgba(0,0,0,.5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--fundo); color: var(--tinta); font-family: "DM Sans", system-ui, sans-serif; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--foco); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: 16px; }
@media (min-width: 760px) { .wrap { padding-inline: 32px; } }
.muted { color: var(--texto-2); }
h1, h2, h3 { letter-spacing: -0.035em; line-height: 1.1; margin: 0; }

/* logo v3: gota + dropz + descritor */
.logo { display: inline-flex; align-items: center; gap: .32em; font-size: 28px; color: var(--tinta); text-decoration: none; flex: none; }
.logo svg { width: 1.05em; height: 1.05em; fill: var(--gota); flex: none; }
.logo span { display: flex; flex-direction: column; gap: .22em; }
.logo b { font: 700 1em/.82 "DM Sans", sans-serif; letter-spacing: -0.055em; }
.logo i { font: normal 500 .27em/1 "DM Sans", sans-serif; letter-spacing: .42em; color: var(--texto-2); padding-left: .05em; }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; background: var(--roxo); color: #fff; }
.btn:hover { background: var(--roxo-hover); color: #fff; }
.btn.o { background: var(--cartao); color: var(--tinta); border-color: var(--linha-forte); }
.btn.o:hover { border-color: var(--roxo); }
.btn.peq { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn.perigo { background: var(--cartao); color: var(--erro-tx); border-color: var(--linha-forte); }
.btn[disabled] { opacity: .55; cursor: wait; }
.btn.cheio { width: 100%; }
.icone { width: 46px; height: 46px; border-radius: 999px; border: 1px solid var(--linha-forte); background: var(--cartao); color: var(--tinta); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; padding: 0; }
.icone svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.so-claro, .so-escuro { display: none; }
:root[data-theme="claro"] .so-claro, :root:not([data-theme]) .so-claro { display: block; }
:root[data-theme="escuro"] .so-escuro { display: block; }

/* topo */
.topo { position: sticky; top: 0; z-index: 20; background: var(--fundo); border-bottom: 1px solid var(--linha); }
.topo .wrap { display: flex; align-items: center; gap: 12px; padding-block: 12px; }
.topo .acoes { margin-left: auto; display: flex; gap: 8px; align-items: center; }
/* busca da vitrine: pílula fixa no topo, sempre à vista (celular e computador) */
.topo-vitrine .wrap { gap: 10px; padding-block: 10px; }
.topo-vitrine .logo { font-size: 28px; }
.busca { flex: 1; min-width: 0; position: relative; margin: 0; }
.busca svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); stroke: var(--texto-2); fill: none; stroke-width: 2.2; stroke-linecap: round; pointer-events: none; }
.busca input { width: 100%; font: inherit; font-size: 16px; background: var(--cartao); color: var(--tinta); border: 1px solid var(--linha-forte); border-radius: 999px; padding: 10px 16px 10px 44px; min-height: 46px; }
.busca input:focus { outline: 3px solid var(--foco); outline-offset: 0; border-color: var(--roxo); }
@media (max-width: 559px) { .topo-vitrine .logo > span { display: none; } .topo-vitrine .logo svg { width: 34px; height: 34px; } }
@media (min-width: 760px) { .topo-vitrine .busca { max-width: 560px; margin-inline: auto; } }

/* letreiro andando (próximos eventos + cupom) */
.letreiro { background: #161616; color: #edece9; border-bottom: 1px solid rgba(255,255,255,.08); overflow: hidden; height: 38px; display: flex; align-items: center; }
.letreiro-trilho { display: flex; width: max-content; animation: letreiro 40s linear infinite; }
.letreiro:hover .letreiro-trilho { animation-play-state: paused; }
.letreiro span { white-space: nowrap; padding-right: 40px; font: 500 12px/1 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: .14em; }
.letreiro b { color: #b88af0; font-weight: 700; }
@keyframes letreiro { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .letreiro-trilho { animation: none; } }

/* faixa do cupom: uma linha só */
.faixa { margin: 14px 0 0; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--texto-2); }
.cupom { font-family: "Bebas Neue", sans-serif; font-weight: 400; font-size: 20px; letter-spacing: .06em; background: var(--roxo); color: #fff; border-radius: 8px; padding: 1px 10px; line-height: 1.25; flex: none; }

/* filtros por casa: uma linha que rola de lado (dentro dela, a página não) */
.chips { display: flex; gap: 8px; padding: 14px 0 2px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { font: inherit; font-size: 14px; font-weight: 600; border: 1px solid var(--linha-forte); background: var(--cartao); color: var(--tinta); border-radius: 999px; padding: 7px 16px; min-height: 40px; white-space: nowrap; flex: none; }

.chip[aria-pressed="true"] { background: var(--chip-on-bg); color: var(--chip-on-tx); border-color: var(--chip-on-bg); }
.chips.semanas { padding-top: 8px; }
.chips.semanas .chip { min-height: 36px; padding: 5px 14px; font-size: 13px; cursor: pointer; }
#eventos { padding-top: 18px; }

/* semanas (não usado na vitrine em grade; fica para outras páginas) */
.semana { padding-top: 26px; }
.semana-topo { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; margin-bottom: 12px; }
.semana h2 { font-size: 22px; font-weight: 700; }
.semana-topo span { color: var(--texto-2); font-size: 14px; }
@media (min-width: 900px) { .semana h2 { font-size: 26px; } }

/* grade de eventos: 2 colunas no celular, até 5 no computador */
.grade { display: grid; gap: 22px 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .grade { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 16px; } }
@media (min-width: 940px) { .grade { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px; } }
@media (min-width: 1180px) { .grade { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.ev { display: flex; flex-direction: column; color: inherit; text-decoration: none; min-width: 0; }
.arte { position: relative; aspect-ratio: 3 / 4; background: var(--arte1); border-radius: 16px; overflow: hidden; border: 1px solid var(--linha); }
.arte img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.ev:hover .arte img { transform: scale(1.03); }
.ev:focus-visible { outline: none; }
.ev:focus-visible .arte { outline: 3px solid var(--foco); outline-offset: 2px; }
.arte .sem-arte { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 72px 12px 12px; font-family: "Bebas Neue", sans-serif; font-size: clamp(20px, 5.4vw, 28px); line-height: .95; overflow-wrap: anywhere; }
.arte.a2 { background: var(--arte2); } .arte.a3 { background: var(--arte3); } .arte.a4 { background: var(--arte4); }
.data { position: absolute; top: 8px; left: 8px; background: var(--cartao); color: var(--tinta); border-radius: 12px; text-align: center; padding: 6px 8px 5px; font-family: "Bebas Neue", sans-serif; font-size: 24px; line-height: .9; min-width: 46px; box-shadow: 0 2px 10px var(--sombra); }
.data em { display: block; font: normal 700 10px "DM Sans", sans-serif; color: var(--roxo-tx); letter-spacing: .08em; margin-top: 3px; }
.info { padding: 10px 2px 0; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.info .quando { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--roxo-tx); }
.info h3 { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; overflow-wrap: anywhere; }
.info .local { margin: 0; font-size: 13px; color: var(--texto-2); }
.preco { margin: auto 0 10px; padding-top: 6px; display: flex; flex-direction: column; line-height: 1.1; }
.preco small { font-size: 12px; color: var(--texto-2); }
.preco b { font-family: "Bebas Neue", sans-serif; font-weight: 400; font-size: 24px; color: var(--tinta); letter-spacing: .02em; }
.info .btn { min-height: 42px; font-size: 14px; padding: 0 12px; white-space: normal; text-align: center; line-height: 1.15; }
.ev:hover .btn { background: var(--roxo-hover); }
.info .via { display: block; text-align: center; font-size: 12px; color: var(--texto-2); margin-top: 6px; }
@media (min-width: 940px) { .info h3 { font-size: 16px; } }

.vazio { text-align: center; padding: 64px 16px; color: var(--texto-2); }
.vazio strong { display: block; color: var(--tinta); font-size: 20px; margin-bottom: 6px; }
.carregando { padding: 48px 0; color: var(--texto-2); text-align: center; }

/* rodapé */
.rodape { border-top: 1px solid var(--linha); margin-top: 48px; }
.rodape .wrap { padding-block: 22px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px; font-size: 14px; }
.feito { display: flex; align-items: center; gap: 10px; color: var(--texto-2); text-decoration: none; }
.legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.legal a, .legal button { color: var(--tinta); text-underline-offset: 3px; font: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
.rodape .aviso-venda { width: 100%; color: var(--texto-2); font-size: 13px; margin: 0; }

/* aviso de cookies */
.cookies { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; max-width: 560px; margin-inline: auto; background: var(--cartao); color: var(--tinta); border: 1px solid var(--linha-forte); border-radius: 16px; padding: 16px; box-shadow: 0 10px 30px var(--sombra); display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.cookies p { margin: 0; }
.cookies .linha { display: flex; gap: 8px; }
.cookies .linha .btn { flex: 1; min-height: 42px; }
.cookies[hidden] { display: none; }

/* formulários e painel */
.cartao { background: var(--cartao); border: 1px solid var(--linha); border-radius: 20px; padding: 22px; }
.campo { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.campo > label, .rot { font-weight: 700; font-size: 15px; }
.n { display: inline-flex; width: 24px; height: 24px; border-radius: 999px; background: var(--lilas); color: var(--roxo-tx); align-items: center; justify-content: center; font-size: 13px; margin-right: 6px; vertical-align: 1px; }
.entrada { font: inherit; font-size: 16px; min-height: 50px; padding: 11px 14px; border: 1px solid var(--linha-forte); border-radius: 12px; background: var(--cartao); color: var(--tinta); width: 100%; }
.entrada:focus { outline: 3px solid var(--foco); outline-offset: 0; border-color: var(--roxo); }
.dica { font-size: 13px; color: var(--texto-2); margin: 0; }
.g2 { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
@media (min-width: 560px) { .g2 { grid-template-columns: 1fr 1fr; } }
.msg { border-radius: 14px; padding: 12px 14px; font-size: 14px; margin-bottom: 16px; overflow-wrap: anywhere; }
.msg.ok { background: var(--verde-bg); color: var(--verde-tx); }
.msg.erro { background: var(--erro-bg); color: var(--erro-tx); }
.msg.info { background: var(--lilas); color: var(--roxo-tx); }
.msg[hidden] { display: none; }
.lido { display: flex; flex-direction: column; gap: 4px; }
.lido .linha { display: flex; justify-content: space-between; gap: 12px; }
.lido .linha b { text-align: right; }
.upload { border: 2px dashed var(--linha-forte); border-radius: 14px; padding: 18px; text-align: center; color: var(--texto-2); cursor: pointer; display: block; }
.upload input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.upload:focus-within { outline: 3px solid var(--foco); }
.previa { display: flex; gap: 12px; align-items: center; margin-top: 10px; }
.previa img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; }
.check { display: flex; gap: 10px; align-items: center; font-size: 15px; margin-bottom: 16px; }
.check input { width: 20px; height: 20px; accent-color: var(--roxo); }

.painel { display: grid; gap: 20px; grid-template-columns: 1fr; padding-top: 22px; }
@media (min-width: 980px) { .painel { grid-template-columns: 440px 1fr; align-items: start; } }
.painel h1 { font-size: 26px; margin-bottom: 18px; }
.painel h2 { font-size: 20px; margin-bottom: 12px; }
.abas { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.lista-ev { display: flex; flex-direction: column; }
.item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--linha); }
.item img, .item .mini { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--arte1); flex: none; }
.item .txt { flex: 1; min-width: 0; }
.item .txt strong { display: block; overflow-wrap: anywhere; }
.item .txt small { color: var(--texto-2); display: block; overflow-wrap: anywhere; }
.item .bts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.tag { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--lilas); color: var(--roxo-tx); white-space: nowrap; display: inline-block; }
.tag.ok { background: var(--verde-bg); color: var(--verde-tx); }
.tag.erro { background: var(--erro-bg); color: var(--erro-tx); }
.login { max-width: 420px; margin: 0 auto; padding: 56px 0 24px; }
.login .logo { font-size: 38px; }
.centro { text-align: center; }

/* páginas de texto (privacidade, termos, cookies) */
.texto { max-width: 760px; padding-block: 40px; }
.texto h1 { font-size: 36px; margin-bottom: 8px; }
.texto h2 { font-size: 21px; margin: 28px 0 8px; }
.texto p, .texto li { color: var(--tinta); }
.texto .muted { color: var(--texto-2); }
.logo.peq { font-size: 22px; }
.logo.grande { font-size: 38px; }
.tabela { width: 100%; border-collapse: collapse; font-size: 15px; }
.tabela th, .tabela td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--linha); vertical-align: top; }
.tabela th { border-bottom-color: var(--linha-forte); }
.rolar { overflow-x: auto; }
.espaco { height: 12px; }
.topo-painel { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.topo-painel h1 { margin: 0; }
.logo-link { text-decoration: none; display: inline-flex; }

/* página de uma casa (/<slug>): cartão com logo, nome, cidade e quantos eventos */
.casa-topo { margin-top: 20px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 18px; align-items: center; background: var(--cartao); border: 1px solid var(--linha); border-radius: 20px; padding: 16px; }
.casa-marca { width: 76px; height: 76px; border-radius: 18px; background: var(--fundo); border: 1px solid var(--linha); display: grid; place-items: center; overflow: hidden; flex: none; }
.casa-marca img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.casa-marca span { font-family: "Bebas Neue", sans-serif; font-size: 34px; color: #fff; background: var(--roxo); width: 100%; height: 100%; display: grid; place-items: center; letter-spacing: .04em; }
.casa-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.casa-rot { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--roxo-tx); }
.casa-topo h1 { font-size: 28px; line-height: 1.1; overflow-wrap: anywhere; }
.casa-info { margin: 4px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 14px; color: var(--texto-2); }
.casa-info svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; margin-right: -6px; }
.casa-qtd { background: var(--lilas); color: var(--roxo-tx); font-weight: 600; font-size: 13px; padding: 3px 10px; border-radius: 999px; }
.casa-voltar { grid-column: 1 / -1; justify-content: center; gap: 8px; }
.casa-voltar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
@media (min-width: 640px) {
  .casa-topo { grid-template-columns: auto minmax(0, 1fr) auto; padding: 18px 20px; }
  .casa-marca { width: 88px; height: 88px; }
  .casa-topo h1 { font-size: 34px; }
  .casa-voltar { grid-column: auto; }
}
a.chip { text-decoration: none; display: inline-flex; align-items: center; }
a.chip[aria-current="page"] { background: var(--chip-on-bg); color: var(--chip-on-tx); border-color: var(--chip-on-bg); }
.item .logo-casa { width: 52px; height: 52px; border-radius: 10px; object-fit: contain; background: var(--cartao); border: 1px solid var(--linha); flex: none; padding: 4px; }
label.btn { cursor: pointer; }
label.btn:focus-within { outline: 3px solid var(--foco); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .arte img { transition: none; } .ev:hover .arte img { transform: none; } }

/* ===== painel no molde da Blueticket (roxo DROPZ no lugar do azul) ===== */
.pn-topo { position: sticky; top: 0; z-index: 30; background: var(--roxo); color: #fff; }
.pn-topo .wrap { display: flex; align-items: center; gap: 18px; min-height: 60px; }
.pn-topo .logo { color: #fff; font-size: 24px; }
.pn-topo .logo svg { fill: #fff; }
.pn-topo .logo i { color: rgba(255,255,255,.75); }
.pn-nav { display: flex; gap: 4px; }
.pn-nav a, .pn-link { color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 999px; background: none; border: 0; cursor: pointer; font-family: inherit; white-space: nowrap; }
.pn-nav a:hover, .pn-link:hover, .pn-nav a[aria-current="page"] { background: rgba(255,255,255,.16); }
.pn-topo .acoes { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.icone.claro { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; width: 40px; height: 40px; }
@media (max-width: 640px) { .pn-topo .logo > span { display: none; } .pn-topo .wrap { gap: 8px; } .pn-nav a, .pn-link { padding: 8px 9px; font-size: 14px; } .pn-topo .acoes a.pn-link { display: none; } }

.pn-pagina { padding-block: 24px; }
.pn-cartao { background: var(--cartao); border: 1px solid var(--linha); border-radius: 20px; padding: 22px; }
.pn-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 14px; }
.pn-cab h1 { font-size: 26px; } .pn-cab h2 { font-size: 21px; }
.pn-cab-bts { display: flex; gap: 8px; flex-wrap: wrap; }
.pn-abas { display: flex; gap: 22px; border-bottom: 1px solid var(--linha); margin-bottom: 14px; }
.pn-abas button { font: inherit; font-weight: 600; font-size: 15px; background: none; border: 0; padding: 10px 2px; color: var(--texto-2); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.pn-abas button[aria-selected="true"] { color: var(--roxo-tx); border-bottom-color: var(--roxo); }
.pn-busca { position: relative; max-width: 360px; margin-bottom: 16px; }
.pn-busca svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; stroke: var(--texto-2); fill: none; stroke-width: 2.2; stroke-linecap: round; }
.pn-busca input { width: 100%; font: inherit; font-size: 15px; border: 1px solid var(--linha-forte); border-radius: 999px; padding: 9px 14px 9px 40px; min-height: 42px; background: var(--cartao); color: var(--tinta); }
.pn-lista { display: flex; flex-direction: column; gap: 12px; }
.pn-vazio { text-align: center; padding: 36px 12px; color: var(--texto-2); display: flex; flex-direction: column; align-items: center; gap: 12px; }

/* cartão de evento na lista */
.pn-ev { display: grid; grid-template-columns: 84px 1fr; gap: 12px 16px; align-items: center; border: 1px solid var(--linha); border-radius: 16px; padding: 12px; }
.pn-ev-arte { display: block; width: 84px; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: var(--arte1); }
.pn-ev-arte img { width: 100%; height: 100%; object-fit: cover; }
.pn-logo { aspect-ratio: 1 / 1; background: var(--fundo); border: 1px solid var(--linha); }
.pn-logo img { object-fit: contain; padding: 6px; }
.pn-ev-txt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pn-ev-txt h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; overflow-wrap: anywhere; }
.pn-ev-txt h3 a { text-decoration: none; }
.pn-ev-txt h3 a:hover { color: var(--roxo-tx); }
.pn-ev-linha { margin: 0; font-size: 13px; color: var(--texto-2); overflow-wrap: anywhere; }
.pn-ev-linha a { color: var(--roxo-tx); }
.pn-tags { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pn-ev-num { grid-column: 1 / -1; background: var(--lilas); border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; }
.pn-ev-num small { font-size: 12px; color: var(--roxo-tx); font-weight: 600; }
.pn-ev-num b { font-family: "Bebas Neue", sans-serif; font-weight: 400; font-size: 26px; line-height: 1.05; color: var(--tinta); }
.pn-ev-bts { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
@media (min-width: 900px) {
  .pn-ev { grid-template-columns: 84px minmax(0, 1fr) 200px auto; }
  .pn-ev-num, .pn-ev-bts { grid-column: auto; }
  .pn-ev-bts { flex-direction: column; align-items: stretch; }
  .pn-casa { grid-template-columns: 84px minmax(0, 1fr) auto; }
}

/* página de um evento */
.pn-faixa { background: var(--roxo); color: #fff; }
.pn-faixa .wrap { padding-block: 18px 22px; display: flex; flex-direction: column; gap: 6px; }
.pn-voltar { color: rgba(255,255,255,.85); font-size: 14px; font-weight: 600; text-decoration: none; }
.pn-voltar:hover { color: #fff; text-decoration: underline; }
.pn-faixa h1 { font-size: 26px; overflow-wrap: anywhere; }
.pn-meta { margin: 0; color: rgba(255,255,255,.88); font-size: 14px; }
.pn-faixa-bts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pn-faixa-bts .btn.o { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.pn-faixa-bts .btn.o:hover { background: rgba(255,255,255,.14); }
.pn-faixa-bts .btn.perigo { background: #fff; color: #9b1c1c; border-color: #fff; }
.pn-evento { display: grid; grid-template-columns: 1fr; gap: 18px; padding-block: 20px; }
.pn-menu { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.pn-menu::-webkit-scrollbar { display: none; }
.pn-menu .pn-grupo, .pn-menu .pn-breve { display: none; }
.pn-menu a { white-space: nowrap; text-decoration: none; font-size: 14px; font-weight: 600; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--linha-forte); background: var(--cartao); flex: none; }
.pn-menu a[aria-current="page"] { background: var(--chip-on-bg); color: var(--chip-on-tx); border-color: var(--chip-on-bg); }
.pn-menu a.desligado { opacity: .45; pointer-events: none; }
@media (min-width: 900px) {
  .pn-evento { grid-template-columns: 240px minmax(0, 1fr); align-items: start; }
  .pn-menu { flex-direction: column; gap: 2px; position: sticky; top: 76px; background: var(--cartao); border: 1px solid var(--linha); border-radius: 16px; padding: 14px 10px; overflow: visible; }
  .pn-menu .pn-grupo { display: block; margin: 12px 10px 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--roxo-tx); }
  .pn-menu .pn-grupo:first-child { margin-top: 0; }
  .pn-menu a { border: 0; background: none; border-radius: 10px; padding: 8px 10px; font-weight: 500; }
  .pn-menu a:hover { background: var(--fundo); }
  .pn-menu a[aria-current="page"] { background: var(--lilas); color: var(--roxo-tx); font-weight: 700; }
  .pn-menu .pn-breve { display: block; padding: 6px 10px; font-size: 14px; color: var(--texto-2); }
}
.pn-conteudo { min-width: 0; }
.pn-lote { border: 1px solid var(--linha); border-radius: 14px; padding: 12px 14px; margin-top: 10px; }
.pn-lote-cab { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.pn-lote-linha { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--linha); font-size: 14px; }
.pn-lote-linha b { text-align: right; }
.pn-numeros { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 700px) { .pn-numeros { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pn-num { background: var(--fundo); border: 1px solid var(--linha); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pn-num small { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--texto-2); }
.pn-num b { font-size: 22px; color: var(--roxo-tx); overflow-wrap: anywhere; }
.pn-num span { font-size: 13px; color: var(--texto-2); }
.pn-nota { grid-column: 1 / -1; margin-top: 6px; }

/* ===== ingresso (/i/<código>) e reserva do titular (/r/<token>) ===== */
.tk-pagina { padding-block: 24px 40px; display: flex; justify-content: center; }
.tk-cartao { width: 100%; max-width: 440px; background: var(--cartao); border: 1px solid var(--linha); border-radius: 20px; overflow: hidden; }
.tk-largo { max-width: 640px; }
.tk-arte { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; max-height: 300px; display: block; }
.tk-corpo { padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.tk-rot { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--roxo-tx); }
.tk-corpo h1 { font-size: 24px; line-height: 1.2; overflow-wrap: anywhere; }
.tk-linha { margin: 0; color: var(--texto-2); font-size: 15px; }
.tk-dados { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.tk-dados div { background: var(--fundo); border: 1px solid var(--linha); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.tk-dados small { display: block; font-size: 12px; color: var(--texto-2); }
.tk-dados b { overflow-wrap: anywhere; }
.tk-qr { width: 100%; max-width: 280px; aspect-ratio: 1; align-self: center; background: #fff; border-radius: 12px; padding: 8px; margin-top: 6px; }
.tk-codigo { text-align: center; font: 600 18px ui-monospace, Menlo, Consolas, monospace; letter-spacing: .2em; margin: 4px 0 8px; }
.rs-form { padding: 0 20px 20px; display: flex; flex-direction: column; gap: 12px; }
.rs-linha { border: 1px solid var(--linha); border-radius: 14px; padding: 12px; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.rs-linha legend { font-size: 13px; font-weight: 700; color: var(--roxo-tx); padding: 0 6px; }
.rs-linha .btn { align-self: flex-start; }

/* ===== painel: cortesias, reservas, pedidos e porta ===== */
.pn-grupo-lista { margin: 14px 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--roxo-tx); }
.pn-setor { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; border: 1px solid var(--linha); border-radius: 14px; padding: 12px 14px; }
.pn-setor.desligado { opacity: .7; }
.pn-setor .pn-ev-bts { flex-direction: row; grid-column: auto; }
.pn-form-setor { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--linha); }
textarea.entrada { resize: vertical; min-height: 140px; font-family: inherit; line-height: 1.5; }
#resultado-emitir { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.pn-res { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--linha); border-radius: 12px; padding: 10px 12px; }
.pn-res div { min-width: 0; display: flex; flex-direction: column; flex: 1 1 200px; }
.pn-res strong { overflow-wrap: anywhere; }
.pn-res small, .pn-bilhete small { color: var(--texto-2); font-size: 13px; overflow-wrap: anywhere; }
.pn-pedido { border: 1px solid var(--linha); border-radius: 14px; }
.pn-pedido summary { list-style: none; cursor: pointer; padding: 12px 14px; display: flex; }
.pn-pedido summary::-webkit-details-marker { display: none; }
.pn-pedido summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--texto-2); border-bottom: 2px solid var(--texto-2); transform: rotate(45deg); margin: 8px 4px 0 auto; flex: none; transition: transform .15s; }
.pn-pedido[open] summary::after { transform: rotate(-135deg); margin-top: 12px; }
.pn-pedido[open] summary { border-bottom: 1px solid var(--linha); }
.pn-pedido-det { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.pn-bilhete { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border: 1px solid var(--linha); border-radius: 12px; padding: 10px 12px; background: var(--fundo); }
.pn-bilhete > div { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; }
.pn-linha-tempo { margin: 0; padding-left: 18px; font-size: 13px; color: var(--texto-2); display: flex; flex-direction: column; gap: 3px; }
.pn-contagem { margin: 0; font-weight: 700; color: var(--roxo-tx); }
.porta-input { font-size: 20px; letter-spacing: .1em; text-transform: uppercase; }
#form-porta .pn-cab-bts { margin-top: 4px; }
.porta-video { width: 100%; max-width: 420px; aspect-ratio: 1; object-fit: cover; border-radius: 16px; margin-top: 14px; background: #000; display: block; }
.porta-resultado { margin-top: 16px; border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 16px; }
.porta-resultado:empty { display: none; }
.porta-resultado b { font-size: 24px; line-height: 1.15; }
.porta-resultado.ok { background: #1f7a3a; color: #fff; }
.porta-resultado.erro { background: #b42318; color: #fff; }
.porta-input::placeholder { text-transform: none; letter-spacing: 0; }

/* ===== ingresso na tela (/i/<código>): data, QR, evento, dados ===== */
.ig { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.ig-data { background: var(--lilas); color: var(--roxo-tx); border-radius: 14px; padding: 12px 16px; }
.ig-data p { margin: 0; font-size: 15px; }
.ig-data b { font-weight: 800; letter-spacing: .02em; }
.ig-qr { width: 100%; max-width: 230px; aspect-ratio: 1; align-self: center; background: #fff; border-radius: 12px; padding: 8px; }
.ig-codigo { margin: -6px 0 0; text-align: center; font: 600 16px ui-monospace, Menlo, Consolas, monospace; letter-spacing: .18em; }
.ig-evento { font-size: 24px; line-height: 1.2; color: var(--roxo-tx); text-transform: uppercase; overflow-wrap: anywhere; margin: 4px 0 0; }
.ig-dados { display: flex; flex-direction: column; gap: 12px; }
.ig-campo { display: flex; flex-direction: column; min-width: 0; }
.ig-campo small { font-size: 12px; color: var(--texto-2); }
.ig-campo b { font-weight: 600; overflow-wrap: anywhere; white-space: pre-line; }
.ig-baixar { align-self: center; margin-top: 4px; }
.ig-dica { text-align: center; }

/* ===== ingresso no papel: só existe na impressão / salvar em PDF ===== */
.pp { display: none; }
@media print {
  @page { margin: 14mm; }
  html, body { background: #fff !important; color: #000 !important; }
  body > header, body > footer, body > .sr, main { display: none !important; }
  .pp { display: block; font-size: 11pt; color: #000; }
  .pp-topo { margin: 0 0 8pt; font-weight: 800; font-size: 10pt; letter-spacing: .04em; text-transform: uppercase; color: #7b2fbe; }
  .pp-caixa { display: flex; gap: 18pt; align-items: center; border: 1pt solid #bbb; border-radius: 10pt; padding: 14pt; break-inside: avoid; }
  .pp-qr { flex: 0 0 120pt; text-align: center; }
  .pp-qr img { width: 120pt; height: 120pt; }
  .pp-qr p { margin: 4pt 0 0; font: 700 11pt ui-monospace, Menlo, Consolas, monospace; letter-spacing: .12em; }
  .pp-dados { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7pt; }
  .pp .ig-campo small { font-size: 7pt; letter-spacing: .08em; text-transform: uppercase; color: #555; }
  .pp .ig-campo b { font-size: 11pt; font-weight: 700; }
  .pp-linha { display: flex; gap: 28pt; }
  .pp-rot { margin: 16pt 0 4pt; font-weight: 800; font-size: 9pt; letter-spacing: .04em; text-transform: uppercase; color: #7b2fbe; }
  .pp-lista { margin: 0; padding-left: 14pt; font-size: 9.5pt; line-height: 1.45; }
  .pp-pe { margin-top: 14pt; padding-top: 8pt; border-top: 1pt dashed #999; display: flex; justify-content: space-between; gap: 12pt; font-size: 8pt; color: #333; }
  .pp-pe p { margin: 0; }
}

/* ===== janela de confirmação do painel (no lugar da janela do navegador) ===== */
.pn-janela { border: 1px solid var(--linha-forte); border-radius: 20px; background: var(--cartao); color: var(--tinta); padding: 22px; width: min(440px, calc(100vw - 32px)); }
.pn-janela::backdrop { background: rgba(8,8,8,.55); }
.pn-janela-txt { margin: 0 0 16px; font-size: 16px; line-height: 1.45; overflow-wrap: anywhere; }
.pn-janela .entrada { margin-bottom: 16px; }
.pn-janela-bts { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.pn-janela .btn.perigo { background: var(--erro-tx); color: var(--cartao); border-color: transparent; }

/* ===== e-mail de um ingresso já emitido (colocar / trocar) ===== */
.pn-res.com-email { flex-wrap: wrap; }
.pn-res.com-email > div { flex: 1 1 200px; }
.pn-email-form { flex: 1 1 100%; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pn-email-form .entrada { flex: 1 1 220px; min-height: 38px; }
.pn-email-st { flex: 1 1 100%; color: var(--texto-2); font-size: 13px; }
.pn-email-st:empty { display: none; }

/* ===== e-mail do ingresso: formulário + prévia ===== */
.em-duas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .em-duas { grid-template-columns: minmax(0, 1fr); } }
.em-linha { display: flex; gap: 8px; flex-wrap: wrap; }
.em-linha .entrada { flex: 1 1 200px; }
.em-bloco { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--linha); }
#form-email code { background: var(--lilas); color: var(--roxo-tx); border-radius: 6px; padding: 1px 5px; font-size: 12px; }
.em-previa-area { position: sticky; top: 12px; }
.em-assunto { margin: 0 0 8px; font-size: 13px; color: var(--texto-2); overflow-wrap: anywhere; }
.em-carta { background: #fff; color: #080808; border: 1px solid var(--linha-forte); border-radius: 20px; overflow: hidden; }
.em-marca { margin: 0; padding: 18px 22px 0; color: #7b2fbe; font-size: 16px; }
.em-marca span { font-size: 9px; letter-spacing: .28em; color: #5a5650; }
.em-topo { padding: 18px 22px 22px; text-align: center; }
.em-topo h3 { margin: 0 0 8px; font-size: 21px; line-height: 1.25; overflow-wrap: anywhere; }
.em-topo p { margin: 0 0 16px; color: #5a5650; font-size: 14px; overflow-wrap: anywhere; }
.em-botao { display: inline-block; background: #7b2fbe; color: #fff; font-weight: 700; padding: 11px 28px; border-radius: 999px; overflow-wrap: anywhere; }
.em-sec { margin: 0 22px; padding: 18px 0; border-top: 1px solid #e7e2d8; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.em-sec small { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #5a5650; margin-bottom: 6px; }
.em-sec p { margin: 0 0 10px; overflow-wrap: anywhere; white-space: pre-line; }
.em-sec p:last-child { margin-bottom: 0; }
.em-fraco { color: #5a5650; }
.em-link { color: #7b2fbe; text-decoration: underline; }
.em-rodape { margin: 0 22px; padding: 14px 0 20px; border-top: 1px solid #e7e2d8; font-size: 12px; line-height: 1.5; color: #5a5650; }

/* ===== terceira cor: limão (aprovado em 11/11/2026). Roxo = marca e estrutura; limão = só o que pede ação ou
   mostra que deu certo; branco = cartões. Vale no painel, no ingresso e na reserva; a vitrine continua roxa. ===== */
body.pn .btn:not(.o):not(.perigo), body.tk .btn:not(.o):not(.perigo) { background: var(--limao); color: var(--limao-tx); }
body.pn .btn:not(.o):not(.perigo):hover, body.tk .btn:not(.o):not(.perigo):hover { background: var(--limao-hover); color: var(--limao-tx); }
body.pn .pn-topo .logo svg { fill: var(--limao); }
body.pn .pn-menu a[aria-current="page"] { background: var(--limao); color: var(--limao-tx); border-color: var(--limao); font-weight: 700; }
body.pn .tag { background: var(--roxo); color: #fff; }
body.pn .tag.ok { background: var(--limao); color: var(--limao-tx); }
body.pn .tag.erro { background: var(--erro-bg); color: var(--erro-tx); }
body.pn .pn-pedido[open] { border-color: var(--roxo); }
body.pn .pn-faixa-bts .btn.perigo { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
body.pn .pn-janela .btn.perigo { background: var(--erro-tx); color: var(--cartao); }
body.pn .em-botao { background: #d4f25a; color: #080808; }
body.pn .em-marca { background: #7b2fbe; color: #fff; padding: 16px 22px; }
body.pn .em-marca span { color: rgba(255,255,255,.8); }
body.tk .ig-data { background: var(--roxo); color: #fff; }

/* ===== cupom na vitrine: bloco do topo, selo de desconto no cartão, contagem nos filtros ===== */
.cupom-bloco { margin: 14px 0 0; background: var(--roxo); color: #fff; border-radius: 20px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cupom-txt { min-width: 0; flex: 1 1 280px; }
.cupom-rot { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.cupom-cod { margin: 0; font-family: "Bebas Neue", sans-serif; font-size: 52px; line-height: 1; letter-spacing: .04em; }
.cupom-oferta { margin: 6px 0 0; font-size: 17px; }
.cupom-oferta b { background: var(--limao); color: var(--limao-tx); border-radius: 8px; padding: 1px 8px; font-weight: 800; white-space: nowrap; }
.cupom-nota { margin: 4px 0 0; font-size: 14px; opacity: .9; }
.cupom-bts { display: flex; gap: 8px; flex-wrap: wrap; }
.cupom-bts .btn.o { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.cupom-bts .btn.o:hover { background: rgba(255,255,255,.14); border-color: #fff; color: #fff; }
.selo-off { position: absolute; right: 10px; top: 10px; background: var(--limao); color: var(--limao-tx); font-weight: 800; font-size: 13px; letter-spacing: .02em; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.ev .falta { margin: 0 0 2px; font-size: 12px; font-weight: 700; color: var(--roxo-tx); }
.chip-n { display: inline-block; min-width: 20px; text-align: center; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 0 6px; background: var(--lilas); color: var(--roxo-tx); }
.chip[aria-pressed="true"] .chip-n { background: rgba(255,255,255,.22); color: inherit; }
.pn-desconto { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.pn-desconto label { font-size: 13px; font-weight: 600; }
.pn-desconto .entrada { width: 110px; min-height: 38px; }
.cupom-oferta { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; }
.cupom-item { white-space: normal; }
.em-topo.com-arte { display: flex; gap: 16px; align-items: center; text-align: left; }
.em-cartaz { width: 84px; height: 112px; object-fit: cover; border-radius: 12px; flex: none; }
.em-topo-txt { min-width: 0; }
.rs-aut { font-size: 14px; }
.ig-baixar + .ig-baixar { margin-top: -6px; }

/* ---- painel de conversas (chat.wearedropz.com.br) ---- */
body.ch { height: 100dvh; min-height: 0; overflow: hidden; }
body.ch:has(.login) { height: auto; min-height: 100vh; overflow: auto; }
.ch-wrap { max-width: none; }
.ch-app { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(300px, 380px) 1fr; background: var(--fundo); }
.ch-lista { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--linha); background: var(--cartao); }
.ch-lista-topo { padding: 18px 16px 12px; border-bottom: 1px solid var(--linha); display: flex; flex-direction: column; gap: 12px; }
.ch-lista-topo h1 { font-size: 24px; }
.ch-lista-topo .msg { margin: 0; }
.ch-filtros { display: flex; flex-wrap: wrap; gap: 6px; }
.ch-filtros button { font: inherit; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--linha-forte); background: var(--cartao); color: var(--tinta); cursor: pointer; }
.ch-filtros button[aria-pressed="true"] { background: var(--limao); color: var(--limao-tx); border-color: var(--limao); font-weight: 700; }
.ch-itens { flex: 1; min-height: 0; overflow-y: auto; }
.ch-pad { padding: 16px; margin: 0; }
.ch-item { display: block; padding: 14px 16px; border-bottom: 1px solid var(--linha); text-decoration: none; color: var(--tinta); border-left: 4px solid transparent; }
.ch-item:hover { background: var(--fundo); }
.ch-item[aria-current="true"] { background: var(--lilas); border-left-color: var(--roxo); }
.ch-item-topo { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.ch-item-topo strong { font-size: 16px; overflow-wrap: anywhere; }
.ch-item-topo time { font-size: 13px; flex: none; }
.ch-previa { margin: 4px 0 8px; font-size: 14px; color: var(--texto-2); overflow-wrap: anywhere; }
.ch-selos { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ch-conta { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--limao); color: var(--limao-tx); font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
body.ch .tag.cinza { background: var(--fundo); color: var(--texto-2); box-shadow: inset 0 0 0 1px var(--linha-forte); }
body.ch .tag.linha { background: transparent; color: var(--roxo-tx); box-shadow: inset 0 0 0 1px var(--roxo-tx); }

.ch-conversa { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.ch-conversa[hidden], .ch-vazio[hidden] { display: none; }
.ch-cab { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--cartao); border-bottom: 1px solid var(--linha); flex-wrap: wrap; }
.ch-quem { flex: 1 1 160px; min-width: 0; }
.ch-quem h2 { font-size: 20px; overflow-wrap: anywhere; }
.ch-quem p { margin: 2px 0 0; font-size: 14px; }
.ch-cab-bts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ch-voltar, .ch-so-estreito { display: none; }
.ch-estado { margin: 0; padding: 8px 16px; font-size: 13px; background: var(--lilas); color: var(--roxo-tx); }
.ch-meio { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 300px; }
.ch-coluna { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.ch-msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.ch-dia { align-self: center; margin: 8px 0 4px; font-size: 12px; font-weight: 700; color: var(--texto-2); background: var(--cartao); border: 1px solid var(--linha); border-radius: 999px; padding: 3px 12px; }
.ch-dia::first-letter { text-transform: uppercase; }
.ch-balao { max-width: min(560px, 82%); padding: 10px 14px; border-radius: 16px; background: var(--cartao); border: 1px solid var(--linha); align-self: flex-start; border-bottom-left-radius: 4px; }
.ch-balao.robo, .ch-balao.meu { align-self: flex-end; border-bottom-left-radius: 16px; border-bottom-right-radius: 4px; }
.ch-balao.robo { background: var(--lilas); border-color: transparent; }
.ch-balao.meu { background: var(--roxo); border-color: transparent; color: #fff; }
.ch-balao.falhou { background: var(--erro-bg); color: var(--erro-tx); border-color: transparent; }
.ch-texto { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.45; }
.ch-meta { margin: 4px 0 0; font-size: 12px; opacity: .75; }
.ch-erro { margin: 0 16px 8px; }
.ch-escrever { display: flex; gap: 10px; align-items: flex-end; padding: 12px 16px; background: var(--cartao); border-top: 1px solid var(--linha); }
.ch-escrever[hidden] { display: none; }
.ch-escrever textarea.entrada { min-height: 46px; height: 46px; max-height: 160px; resize: none; padding: 10px 14px; }
.ch-fechada { margin: 0; padding: 14px 16px; background: var(--cartao); border-top: 1px solid var(--linha); color: var(--texto-2); font-size: 14px; }
.ch-lado { border-left: 1px solid var(--linha); background: var(--cartao); padding: 16px; overflow-y: auto; min-height: 0; }
.ch-lado h3 { font-size: 15px; margin: 0 0 10px; }
.ch-lado h3:not(:first-child) { margin-top: 22px; }
.ch-lado .muted { font-size: 14px; margin: 0; }
.ch-ingresso { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--linha-forte); border-radius: 12px; text-decoration: none; margin-bottom: 8px; font-size: 14px; overflow-wrap: anywhere; }
.ch-ingresso:hover { border-color: var(--roxo); }
.ch-etiquetas { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ch-tirar { border: 0; background: none; color: inherit; font: inherit; font-weight: 800; cursor: pointer; padding: 0 0 0 6px; line-height: 1; }
.ch-nova-etiqueta { display: flex; gap: 8px; }
.ch-nova-etiqueta .entrada { min-height: 38px; padding: 6px 12px; font-size: 14px; }
.ch-vazio { display: flex; align-items: center; justify-content: center; text-align: center; color: var(--texto-2); padding: 24px; }
.ch-vazio .logo { font-size: 56px; opacity: .35; }
.ch-vazio p { margin: 14px 0 0; }

/* entrada do chat: segunda etapa */
.ch-codigo { font-size: 22px; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.ch-etapa-t { font-size: 20px; margin-bottom: 12px; }
.ch-passos { margin: 0 0 16px; padding-left: 20px; font-size: 15px; display: flex; flex-direction: column; gap: 6px; }
.ch-qr { width: 220px; height: 220px; margin: 0 auto 12px; border-radius: 12px; border: 1px solid var(--linha-forte); background: #fff; }
.ch-chave { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 15px; text-align: center; margin: 6px 0 18px; overflow-wrap: anywhere; user-select: all; }

@media (max-width: 1100px) {
  .ch-meio { grid-template-columns: 1fr; position: relative; }
  .ch-so-estreito { display: inline-flex; }
  .ch-lado { display: none; position: absolute; inset: 0; border-left: 0; z-index: 5; }
  .ch-lado.aberto { display: block; }
}
@media (max-width: 760px) {
  .ch-app { grid-template-columns: 1fr; }
  .ch-vazio { display: none; }
  body.ch-vendo .ch-lista { display: none; }
  .ch-voltar { display: inline-flex; }
  .ch-balao { max-width: 88%; }
}
.ch-lista-topo .pn-busca { max-width: none; margin: 0; }
body.ch #dica-trava { margin-top: 14px; }
