/* ANSEIO ÍNTIMO — Etapa 11: atendimento público único */
.anseio-support-close{margin-left:auto;min-width:44px;min-height:44px;border:1px solid currentColor;border-radius:4px;background:transparent;color:inherit;font:28px/1 Arial,sans-serif;cursor:pointer}
.anseio-support{position:fixed;right:18px;bottom:18px;z-index:5600;font-family:var(--anseio-font-body);color:var(--anseio-theme-text)}
.anseio-support-toggle{width:60px;height:60px;display:grid;place-items:center;padding:7px;border:2px solid var(--anseio-theme-accent);border-radius:6px;background:var(--anseio-theme-surface-elevated);box-shadow:0 16px 42px rgba(42,0,10,.24);cursor:pointer;transition:transform .18s ease,box-shadow .18s ease}
.anseio-support-toggle:hover,.anseio-support-toggle:focus-visible{transform:translateY(-2px);box-shadow:0 22px 56px rgba(42,0,10,.32)}
.anseio-support-toggle img{width:100%;height:100%;display:block;object-fit:contain}
.anseio-support-panel{position:absolute;right:0;bottom:0;width:min(420px,calc(100vw - 28px));max-height:min(700px,calc(100dvh - 38px));display:grid;grid-template-rows:auto minmax(170px,1fr) auto auto;background:var(--anseio-theme-surface-elevated);color:var(--anseio-theme-text);border:1px solid var(--anseio-theme-border);border-radius:6px;box-shadow:var(--anseio-theme-shadow);overflow:hidden;opacity:0;visibility:hidden;pointer-events:none;transform:translateY(10px) scale(.985);transform-origin:bottom right;transition:opacity .18s ease,transform .18s ease,visibility .18s ease}
.anseio-support-panel.is-open{opacity:1;visibility:visible;pointer-events:auto;transform:none}
.anseio-support-head{display:grid;grid-template-columns:42px minmax(0,1fr) 44px;align-items:center;gap:12px;padding:14px 16px;background:linear-gradient(135deg,#780007,#340008);color:#fff}
.anseio-support-head img{width:42px;height:42px;display:block;object-fit:contain;background:#fff;border-radius:6px;padding:4px}
.anseio-support-head div{display:grid;gap:3px;min-width:0}
.anseio-support-head strong{font:700 1.02rem/1.1 var(--anseio-font-body);color:#fff!important}
.anseio-support-head span{font-size:.76rem;line-height:1.25;color:#fff!important;opacity:.88}
.anseio-support-chat{display:grid;align-content:start;gap:10px;padding:14px;overflow:auto;overscroll-behavior:contain;background:var(--anseio-theme-surface-elevated)}
.anseio-support-message{max-width:88%;display:grid;gap:4px}
.anseio-support-message>span{font-size:.66rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--anseio-theme-accent)}
.anseio-support-message p{margin:0;padding:10px 12px;border:1px solid var(--anseio-theme-border);border-radius:6px;background:var(--anseio-theme-surface-soft);color:var(--anseio-theme-text);font-size:.84rem;line-height:1.5;overflow-wrap:anywhere}
.anseio-support-message.is-user{justify-self:end}
.anseio-support-message.is-user>span{text-align:right}
.anseio-support-message.is-user p{background:var(--anseio-theme-accent);border-color:var(--anseio-theme-accent);color:var(--anseio-theme-on-accent)}
.anseio-support-message.is-loading p{opacity:.68}
.anseio-support-controls{display:grid;gap:9px;padding:10px 11px 11px;border-top:1px solid var(--anseio-theme-border);background:var(--anseio-theme-surface-elevated)}
.anseio-support-quick{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.anseio-support-quick button{width:100%;min-height:40px;border:1px solid var(--anseio-theme-border);border-radius:6px;background:transparent;color:var(--anseio-theme-accent);padding:8px 10px;font:700 .72rem/1.25 var(--anseio-font-body);cursor:pointer}
.anseio-support-form{display:grid;gap:6px}
.anseio-support-input{display:grid;grid-template-columns:1fr auto;align-items:end;gap:8px}
.anseio-support-input textarea{min-height:54px!important;max-height:132px;resize:vertical;padding:10px 12px!important}
.anseio-support-input button{min-height:46px;border:1px solid var(--anseio-theme-accent);border-radius:6px;background:var(--anseio-theme-accent);color:var(--anseio-theme-on-accent);padding:0 15px;font-weight:800;cursor:pointer}
.anseio-support-status{display:block;min-height:18px;color:var(--anseio-theme-muted);font-size:.72rem;line-height:1.35}
.anseio-support-status:empty{display:none}
.anseio-support-handoff{display:grid;gap:8px;padding:10px;border:1px solid var(--anseio-theme-border);border-radius:6px;background:var(--anseio-theme-surface-soft)}
.anseio-support-handoff[hidden]{display:none!important}
.anseio-support-handoff p{margin:0;color:var(--anseio-theme-muted);font-size:.76rem;line-height:1.45}
.anseio-support-handoff a{display:flex;min-height:42px;align-items:center;justify-content:center;border:1px solid var(--anseio-theme-accent);border-radius:6px;background:var(--anseio-theme-accent);color:var(--anseio-theme-on-accent)!important;text-decoration:none;font-size:.78rem;font-weight:800}
.anseio-support-note{display:block;padding:0 11px 11px;background:var(--anseio-theme-surface-elevated);color:var(--anseio-theme-muted);font-size:.68rem;line-height:1.4}
body.anseio-support-open{overflow:hidden}

/* Central de contato */
.anseio-support-page{padding-block:clamp(42px,7vw,86px)}
.anseio-support-page .anseio-support-layout{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(320px,.82fr);gap:24px;align-items:start}
.anseio-support-card{border:1px solid var(--anseio-theme-border);border-radius:6px;background:var(--anseio-theme-surface-elevated);padding:clamp(20px,3vw,30px);box-shadow:var(--anseio-shadow-card)}
.anseio-support-card h2{margin:0 0 8px}
.anseio-support-card>p{margin:0 0 20px;color:var(--anseio-theme-muted)}
.anseio-support-contact-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.anseio-support-contact-form label{display:grid;gap:7px}
.anseio-support-contact-form .is-wide{grid-column:1/-1}
.anseio-support-contact-form textarea{min-height:150px!important}
.anseio-support-contact-form .anseio-support-honeypot{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important}
.anseio-support-contact-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.anseio-support-contact-actions button,.anseio-support-contact-actions a{min-height:46px;display:inline-flex;align-items:center;justify-content:center;border-radius:6px;padding:0 18px;font-weight:800;text-decoration:none}
.anseio-support-contact-actions button{border:1px solid var(--anseio-theme-accent);background:var(--anseio-theme-accent);color:var(--anseio-theme-on-accent);cursor:pointer}
.anseio-support-contact-actions a{border:1px solid var(--anseio-theme-border);background:transparent;color:var(--anseio-theme-accent)}
.anseio-support-contact-status{grid-column:1/-1;min-height:22px;margin:0;color:var(--anseio-theme-muted);font-size:.84rem}
.anseio-support-contact-status.is-success{color:#17653a}
.anseio-support-contact-status.is-error{color:#a00019}
.anseio-support-channels{display:grid;gap:12px}
.anseio-support-channel{display:grid;grid-template-columns:44px 1fr;gap:14px;align-items:center;border:1px solid var(--anseio-theme-border);border-radius:6px;padding:16px;text-decoration:none;color:var(--anseio-theme-text);background:var(--anseio-theme-surface-soft);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.anseio-support-channel:hover,.anseio-support-channel:focus-visible{transform:translateY(-2px);border-color:var(--anseio-theme-accent);box-shadow:var(--anseio-shadow-card)}
.anseio-support-channel img{width:30px;height:30px;display:block;object-fit:contain;justify-self:center}
.anseio-support-channel strong{display:block;margin-bottom:3px;color:var(--anseio-theme-text)!important}
.anseio-support-channel span{display:block;color:var(--anseio-theme-muted);font-size:.84rem;line-height:1.4}
.anseio-support-hours{margin-top:18px;padding-top:18px;border-top:1px solid var(--anseio-theme-border)}
.anseio-support-hours h3{margin:0 0 6px;font-size:1rem}
.anseio-support-hours p{margin:0;color:var(--anseio-theme-muted);font-size:.84rem;line-height:1.5}

html[data-theme="dark"] .anseio-support-contact-status.is-success{color:#8fe0b2}
html[data-theme="dark"] .anseio-support-contact-status.is-error{color:#ff9cad}
@media (max-width:760px){
  .anseio-support{right:10px;bottom:10px}
  .anseio-support-toggle{width:56px;height:56px}
  .anseio-support-panel{right:0;bottom:0;width:calc(100vw - 20px);max-height:calc(100dvh - 28px)}
  .anseio-support-page .anseio-support-layout{grid-template-columns:1fr}
  .anseio-support-contact-form{grid-template-columns:1fr}
  .anseio-support-contact-form .is-wide,.anseio-support-contact-actions,.anseio-support-contact-status{grid-column:auto}
}
@media (max-width:420px){.anseio-support-quick{grid-template-columns:1fr}.anseio-support-input{grid-template-columns:1fr}.anseio-support-input button{width:100%}}
@media (prefers-reduced-motion:reduce){.anseio-support-panel,.anseio-support-toggle,.anseio-support-channel{transition:none!important}.anseio-support-toggle:hover,.anseio-support-channel:hover{transform:none!important}}

/* Lótus oficial fornecida — sem recorte, distorção ou fundo raster. */
.anseio-support-toggle img,.anseio-support-head img{display:block;object-fit:contain!important;object-position:center;width:100%;height:100%;padding:7px;filter:none!important}
.anseio-support-head img{padding:4px}

/* ETAPA 15.6.1 — lótus original visível na Lia em ambos os temas. */
.anseio-support-toggle{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
}
.anseio-support-toggle>img{
  flex:0 0 42px!important;
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  max-width:42px!important;
  padding:0!important;
  box-sizing:border-box!important;
  object-fit:contain!important;
  object-position:center!important;
}
.anseio-support-head>img{
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  max-width:42px!important;
  padding:4px!important;
  box-sizing:border-box!important;
  object-fit:contain!important;
  object-position:center!important;
}
html[data-theme="dark"] .anseio-support-toggle{
  background:#12070a!important;
  border-color:#ffd0dc!important;
}
@media(max-width:760px){
  .anseio-support-toggle>img{flex-basis:38px!important;width:38px!important;height:38px!important;min-width:38px!important;max-width:38px!important}
}


/* ETAPA 15.6.2 — Lia progressiva: interface inicial simples e opções após iniciar. */
.anseio-support-panel{grid-template-rows:auto minmax(92px,auto) auto auto auto;max-height:min(620px,calc(100dvh - 110px))}
.anseio-support-intro{display:grid;padding:0 14px 14px;background:var(--anseio-theme-surface-elevated)}
.anseio-support-intro[hidden],.anseio-support-controls[hidden],.anseio-support-note[hidden]{display:none!important}
.anseio-support-intro button{min-height:46px;border:1px solid var(--anseio-theme-accent);border-radius:6px;background:var(--anseio-theme-accent);color:var(--anseio-theme-on-accent);font:800 .82rem/1 var(--anseio-font-body);cursor:pointer}
.anseio-support-panel[data-support-stage="intro"] .anseio-support-chat{min-height:92px;padding-bottom:10px}
.anseio-support-panel[data-support-stage="active"] .anseio-support-chat{min-height:130px;max-height:280px}
.anseio-support-controls{padding-top:11px}
.anseio-support-note{padding-top:1px}
@media(max-width:420px){.anseio-support-panel{max-height:calc(100dvh - 86px)}.anseio-support-panel[data-support-stage="active"] .anseio-support-chat{max-height:210px}}

/* Lia — editorial Anseio. Scoped to the chat, preserving contact forms. */
body.anseio-public-page .anseio-support{
  --lia-paper:#fcf6f3;--lia-surface:#f4e8e5;--lia-ink:#43232c;
  --lia-muted:#765660;--lia-line:#d8bdc5;--lia-accent:#70243e;--lia-on-accent:#fff7f5;
  font-family:"Cinzel",Georgia,serif;
}
html[data-theme="dark"] body.anseio-public-page .anseio-support{
  --lia-paper:#211318;--lia-surface:#301d25;--lia-ink:#f6e9e6;
  --lia-muted:#d0adb9;--lia-line:#694553;--lia-accent:#e8bdc9;--lia-on-accent:#321721;
}
body.anseio-public-page .anseio-support-panel{
  width:min(410px,calc(100vw - 32px));max-height:calc(100dvh - 40px);
  background:var(--lia-paper)!important;color:var(--lia-ink)!important;
  border:1px solid var(--lia-line)!important;border-radius:12px!important;
  box-shadow:0 18px 64px rgba(32,10,20,.22)!important;
  grid-template-rows:auto minmax(0,1fr) auto auto auto;
}
body.anseio-public-page .anseio-support-head{
  grid-template-columns:48px minmax(0,1fr) 44px;padding:22px 22px 18px;gap:14px;
  background:var(--lia-paper)!important;border-bottom:1px solid var(--lia-line);color:var(--lia-ink)!important;
}
body.anseio-public-page .anseio-support-head>img{
  width:48px!important;height:38px!important;min-width:48px!important;max-width:48px!important;
  padding:0!important;background:transparent!important;border:0!important;border-radius:0!important;
}
body.anseio-public-page .anseio-support-head strong{
  font:400 30px/1.3 "Tan Pearl",Georgia,serif!important;letter-spacing:0!important;color:var(--lia-ink)!important;
}
body.anseio-public-page .anseio-support-head span{
  font:400 10px/1.6 "Cinzel",Georgia,serif!important;letter-spacing:.1em;color:var(--lia-muted)!important;opacity:1;
}
body.anseio-public-page .anseio-support-close{
  border:0!important;background:transparent!important;color:var(--lia-muted)!important;
  padding:0!important;box-shadow:none!important;border-radius:0!important;font:300 27px/1 Arial,sans-serif!important;
}
body.anseio-public-page .anseio-support-chat{padding:24px 22px;gap:20px;background:var(--lia-paper)!important;min-height:0!important}
body.anseio-public-page .anseio-support-panel[data-support-stage="active"] .anseio-support-chat{max-height:260px}
body.anseio-public-page .anseio-support-message{max-width:94%;gap:7px}
body.anseio-public-page .anseio-support-message>span{font:400 10px/1.5 "Cinzel",Georgia,serif;color:var(--lia-muted)!important;letter-spacing:.13em}
body.anseio-public-page .anseio-support-message p{
  padding:0;border:0!important;background:transparent!important;color:var(--lia-ink)!important;
  font:400 14px/1.85 "Cinzel",Georgia,serif!important;text-transform:none!important;box-shadow:none!important;
}
body.anseio-public-page .anseio-support-message.is-user p{padding:12px 15px;background:var(--lia-surface)!important;border-radius:8px 8px 0 8px}
body.anseio-public-page .anseio-support-intro{padding:0 22px 24px;background:var(--lia-paper)!important}
body.anseio-public-page .anseio-support :is(.anseio-support-intro button,.anseio-support-input button,.anseio-support-handoff a){
  background:var(--lia-accent)!important;color:var(--lia-on-accent)!important;border:1px solid var(--lia-accent)!important;
  border-radius:5px!important;min-height:44px;padding:10px 14px;font:400 12px/1.5 "Cinzel",Georgia,serif!important;box-shadow:none!important;
}
body.anseio-public-page .anseio-support-controls{padding:0 22px 12px;gap:20px;border:0;background:var(--lia-paper)!important}
body.anseio-public-page .anseio-support-quick{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
body.anseio-public-page .anseio-support-quick button{
  min-height:44px;padding:8px 10px;border:1px solid var(--lia-line)!important;border-radius:5px!important;
  background:transparent!important;color:var(--lia-ink)!important;box-shadow:none!important;font:400 11px/1.6 "Cinzel",Georgia,serif!important;
}
body.anseio-public-page .anseio-support-input{grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:stretch}
body.anseio-public-page .anseio-support-input textarea{
  width:100%;min-width:0;box-sizing:border-box;min-height:64px!important;resize:none;
  border:1px solid var(--lia-line)!important;border-radius:5px!important;background:var(--lia-surface)!important;
  color:var(--lia-ink)!important;box-shadow:none!important;font:400 16px/1.5 "Cinzel",Georgia,serif!important;
}
body.anseio-public-page .anseio-support-input textarea::placeholder{color:var(--lia-muted)!important;opacity:1!important;font-size:12px}
body.anseio-public-page .anseio-support-note{padding:0 22px 18px;background:var(--lia-paper)!important;color:var(--lia-muted)!important;font:400 10px/1.7 "Cinzel",Georgia,serif!important}
body.anseio-public-page .anseio-support-status{color:var(--lia-muted)!important;font:400 11px/1.6 "Cinzel",Georgia,serif}
body.anseio-public-page .anseio-support-handoff{background:var(--lia-surface)!important;border-color:var(--lia-line)!important}
body.anseio-public-page .anseio-support-handoff p{color:var(--lia-ink)!important;font:400 12px/1.7 "Cinzel",Georgia,serif}
body.anseio-public-page .anseio-support :is(button,a,textarea):focus-visible{outline:2px solid var(--lia-accent)!important;outline-offset:3px}
@media(max-width:820px){
  body.anseio-public-page .anseio-support-panel{position:fixed;left:12px!important;right:12px!important;bottom:max(12px,env(safe-area-inset-bottom))!important;width:auto!important;max-height:calc(100dvh - 28px)!important}
  body.anseio-public-page .anseio-support-head{padding:18px 18px 14px}
  body.anseio-public-page .anseio-support-chat{padding:20px 18px}
  body.anseio-public-page .anseio-support-controls{padding-inline:18px}
  body.anseio-public-page .anseio-support-panel[data-support-stage="active"] .anseio-support-chat{max-height:24dvh!important}
}
