/* Only loaded by brands enrolled in the unified help pilot. */
#assistant-beta-dialog[data-unified-help] {
  --uh-ink:#292738; --uh-muted:#737080; --uh-line:#eeedf3;
  --uh-soft:#f6f5f9; --uh-paper:#fff; --uh-accent:#7560a9;
  width:min(800px,calc(100vw - 48px)); height:min(760px,calc(100dvh - 48px));
  border:1px solid #ffffffb3; border-radius:32px; animation:none;
  background:var(--uh-paper); color:var(--uh-ink); box-shadow:0 24px 90px #29243c29;
}
#assistant-beta-dialog[data-unified-help]::backdrop { background:#29243c50; backdrop-filter:blur(5px); }
#assistant-beta-dialog[data-unified-help] [hidden] { display:none!important; }
[data-unified-help] .ab-dialog-bar { padding:23px 26px 17px; border:0; background:var(--uh-paper); }
[data-unified-help] .ab-dialog-heading { gap:13px; min-width:0; }
[data-unified-help] .ab-dialog-heading h2 { font-size:16px; font-weight:650; letter-spacing:-.3px; }
[data-unified-help] .ab-dialog-heading small { display:none; }
[data-unified-help] .ab-dialog-heading p { display:block; color:var(--uh-muted); font-size:12px; margin-top:4px; }
#assistant-beta-dialog[data-unified-help] .ab-dialog-star { width:46px; height:46px; border-radius:50%; background:#f0ebf9; color:#8a70b9; }
[data-unified-help] .ab-dialog-controls { gap:6px; }
[data-unified-help] .ab-dialog-controls a,[data-unified-help] .ab-dialog-controls button { width:36px; height:36px; border-radius:50%; background:var(--uh-soft); color:var(--uh-muted); }
[data-unified-help] .ab-dialog-controls a:hover,[data-unified-help] .ab-dialog-controls button:hover { background:#eae5f3; color:#67518f; }
.uh-toolbar { flex-shrink:0; padding:0 26px 14px; border-bottom:1px solid var(--uh-line); }
.uh-nav { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.uh-segments { display:flex; gap:3px; padding:4px; border-radius:24px; background:var(--uh-soft); }
.uh-nav button { display:inline-flex; align-items:center; justify-content:center; gap:7px; border:1px solid transparent; border-radius:22px; background:transparent; color:var(--uh-muted); padding:10px 13px; font-family:inherit; font-weight:550; font-size:12px; line-height:1.2; white-space:nowrap; cursor:pointer; transition:background .15s,color .15s,box-shadow .15s; }
.uh-nav svg { width:15px; height:15px; flex-shrink:0; stroke-width:1.8; }
.uh-nav button[aria-pressed=true] { background:var(--uh-paper); color:#6b5298; box-shadow:0 2px 7px #30233e0b; }
.uh-nav #uh-team { border:1px solid #e4dcee; color:#735a9d; background:#faf8fd; padding:12px 15px; }
.uh-nav #uh-team:hover { background:#f0eaf8; border-color:#d4c8e5; }
.uh-nav button:focus-visible,[data-unified-help] button:focus-visible { outline:2px solid #a28ac8; outline-offset:3px; }
#uh-status { font-size:11px; line-height:1.6; margin:12px 4px 0; color:var(--uh-muted); }
#uh-support { flex:1; min-height:0; display:flex; padding:16px 20px 20px; background:var(--uh-soft); }
#uh-support #scw-panel { position:static; width:100%; max-width:none; height:100%; max-height:none; border:1px solid var(--uh-line); border-radius:22px; box-shadow:0 3px 12px #29243c03; flex:1; min-height:0; background:var(--uh-paper); }
#uh-support #scw-close { display:none; }
#uh-support .scw-head { background:var(--uh-paper); color:var(--uh-ink); border-bottom:1px solid var(--uh-line); padding:13px 18px; }
#uh-support .scw-head h3 { font-size:13px; font-weight:600; }
#uh-support .scw-head button { color:var(--uh-muted); width:30px; height:30px; border-radius:50%; background:var(--uh-soft); }
#uh-support .scw-body { min-height:0; background:var(--uh-paper); }
#uh-support .scw-foot { padding:14px 18px; background:var(--uh-paper); border-color:var(--uh-line); }
#uh-support .scw-input { border:1px solid #e4e1ea; border-radius:18px; padding:13px 14px; background:#faf9fc; color:var(--uh-ink); line-height:1.6; outline:none; }
#uh-support .scw-input:focus { border-color:#b6a1d2; box-shadow:0 0 0 3px #a28ac812; }
#uh-support .scw-meta { color:var(--uh-muted); font-size:12px; }
#uh-support .scw-hint { background:var(--uh-soft); border:0; border-radius:15px; color:var(--uh-muted); margin:14px; padding:12px 14px; font-size:12px; line-height:1.6; }
#uh-support .scw-btn { border-radius:22px; padding:10px 17px; background:var(--uh-accent); font-size:12px; font-weight:600; }
#uh-support .scw-btn.ghost { background:transparent; color:var(--uh-muted); }
#uh-support .scw-mic { border-color:var(--uh-line); }
#uh-support .scw-msg { max-width:85%; border-radius:18px; }
#uh-support .scw-msg.mine { background:var(--uh-accent); }
#uh-support .scw-item { margin:8px 12px; border:1px solid var(--uh-line); border-radius:16px; background:var(--uh-paper); }
#uh-support .scw-item:hover { background:var(--uh-soft); }
#uh-support .scw-subject { color:var(--uh-ink); }
.uh-share { display:flex; align-items:flex-start; gap:9px; padding:0 16px 18px; font-size:11px; color:var(--uh-muted); line-height:1.6; }
.uh-share input { margin-top:3px; accent-color:var(--uh-accent); }
.uh-count { border-radius:12px; min-width:16px; padding:2px 5px; color:#fff; background:#9b7187; font-size:10px; line-height:1; }
/* A circular launcher with a separate, readable label. */
.ab-floating-launcher.uh-launcher { width:60px; height:60px; border-radius:50%; padding:0; background:#fff; border:1px solid #ece6f4; box-shadow:0 5px 22px #56416e19; transition:transform .18s,box-shadow .18s; }
.ab-floating-launcher.uh-launcher::before,.ab-floating-launcher.uh-launcher::after { display:none; }
.ab-floating-launcher.uh-launcher>span { display:flex; align-items:center; justify-content:center; width:46px; height:46px; border-radius:50%; background:#f0eaf8; color:#8a70b9; padding:0; }
.ab-floating-launcher.uh-launcher:hover { transform:translateY(-2px); box-shadow:0 8px 26px #56416e26; }
.ab-floating-launcher.uh-launcher:hover>span { background:#eae2f4; }
.uh-launcher b { position:absolute; right:calc(100% + 10px); top:50%; transform:translateY(-50%); font-size:12px; line-height:1.3; font-weight:550; white-space:nowrap; color:#62566f; background:#fff; border:1px solid #ece6f4; border-radius:22px; padding:10px 15px; box-shadow:0 3px 15px #56416e0a; }
.uh-launcher-badge { position:absolute; right:-2px; top:-3px; border:2px solid #fff; border-radius:12px; background:#9b7187; color:#fff; padding:2px 5px; font-size:10px; }
/* Calmer composer, scoped to the opted-in assistant, including its iframe. */
#assistant-beta[data-unified-help-assistant] .ab-compose { animation:none; background:var(--ab-soft); border:1px solid var(--ab-line); border-radius:24px; box-shadow:none; }
#assistant-beta[data-unified-help-assistant] .ab-compose:focus-within { border-color:#b6a1d2; box-shadow:0 0 0 3px #a28ac80d; }
#assistant-beta[data-unified-help-assistant] #ab-submit { background:#7560a9; }
#assistant-beta[data-unified-help-assistant] .ab-chat-toolbar { padding-top:12px; }
#assistant-beta[data-unified-help-assistant] .ab-suggestions button { border-radius:22px; }
.dark #assistant-beta-dialog[data-unified-help] { --uh-ink:#e7e3ee; --uh-muted:#aaa4b8; --uh-line:#36313f; --uh-soft:#242129; --uh-paper:#2c2832; --uh-accent:#84709f; border-color:#403847; }
.dark #assistant-beta-dialog[data-unified-help] .ab-dialog-star { background:#3f334e; color:#c9b6e2; }
.dark .uh-nav button[aria-pressed=true] { color:#dccced; }
.dark .uh-nav #uh-team { background:#352d40; border-color:#4e405f; color:#d2bce9; }
.dark #uh-support .scw-input { background:#242129; border-color:#453c50; }
.dark #uh-support .scw-msg.theirs { background:var(--uh-soft); border-color:var(--uh-line); color:var(--uh-ink); }
.dark .ab-floating-launcher.uh-launcher { background:#2c2832; border-color:#483d55; }
.dark .ab-floating-launcher.uh-launcher>span { background:#3f334e; color:#c9b6e2; }
.dark .uh-launcher b { background:#2c2832; border-color:#483d55; color:#d5c9e1; }
#assistant-beta-dialog[data-unified-help].ab-dialog-contextual { width:min(460px,calc(100vw - 24px)); height:calc(100dvh - 24px); }
[data-unified-help].ab-dialog-contextual .uh-nav { flex-wrap:wrap; }
[data-unified-help].ab-dialog-contextual .uh-segments { flex:1; }
[data-unified-help].ab-dialog-contextual .uh-nav #uh-team { width:100%; }
@media(max-width:640px) {
  #assistant-beta-dialog[data-unified-help],#assistant-beta-dialog[data-unified-help].ab-dialog-contextual { width:calc(100vw - 16px); height:calc(100dvh - 16px); border-radius:26px; margin:auto; inset:0; }
  [data-unified-help] .ab-dialog-bar { padding:17px 16px 14px; }
  [data-unified-help] .ab-dialog-heading { gap:9px; }
  [data-unified-help] .ab-dialog-heading h2 { font-size:14px; }
  [data-unified-help] .ab-dialog-heading p { font-size:10px; }
  #assistant-beta-dialog[data-unified-help] .ab-dialog-star { width:36px; height:36px; }
  [data-unified-help] .ab-dialog-controls { gap:4px; }
  [data-unified-help] .ab-dialog-controls a,[data-unified-help] .ab-dialog-controls button { width:30px; height:30px; }
  .uh-toolbar { padding:0 14px 12px; }
  .uh-nav { flex-wrap:wrap; gap:9px; }
  .uh-segments { width:100%; }
  .uh-segments button { flex:1; padding:10px 8px; font-size:11px; }
  .uh-nav #uh-team { width:100%; padding:10px; font-size:12px; }
  #uh-status { margin-top:9px; font-size:10px; }
  #uh-support { padding:10px; }
  #uh-support #scw-panel { border-radius:18px; }
  #uh-support .scw-foot { padding:12px 10px; }
  #uh-support .scw-btn { padding:10px 12px; font-size:11px; }
  #uh-support .scw-input { font-size:16px; }
  #uh-support .scw-hint { font-size:11px; margin:10px; padding:10px 12px; }
  .ab-floating-launcher.uh-launcher { width:54px; height:54px; }
  .ab-floating-launcher.uh-launcher>span { width:42px; height:42px; }
  .uh-launcher b { font-size:11px; padding:9px 12px; }
}
@media(prefers-reduced-motion:reduce) { .ab-floating-launcher.uh-launcher,.uh-nav button { transition:none; } }
@media(max-width:360px) {
  .uh-segments { gap:1px; }
  .uh-segments button { min-width:0; gap:4px; padding:10px 6px; font-size:10px; }
  .uh-segments svg { display:none; }
  #uh-support .scw-actions { flex-wrap:wrap; }
  #uh-support .scw-actions>span { width:100%; }
  #uh-support .scw-actions>div { width:100%; justify-content:flex-end; }
  #uh-support .scw-btn { white-space:nowrap; }
}
@media(forced-colors:active) { #assistant-beta-dialog[data-unified-help],.uh-nav button,.ab-floating-launcher.uh-launcher { border:1px solid ButtonText; } }

/* Chat App: a tela nativa de suporte fica sem cabeçalho nativo e precisa do próprio fechar. */
html.chat-ios[data-chat-support=true] #scw-close{display:inline-flex!important;align-items:center;justify-content:center}
