/* Painel extra NexaIQ: gaveta e notificação, sem cobrir o escritório quando fechados. */
#nexaiq-overlay { font-family: 'DM Sans', system-ui, sans-serif; color: #ECEDF1; pointer-events: none; }
#nexaiq-overlay * { box-sizing: border-box; }
#nexaiq-overlay button { font: inherit; cursor: pointer; color: inherit; background: none; border: 0; padding: 0; }
.nx-ex { display: inline-block; background: rgba(245,165,36,.14); color: #F5A524; font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 2px 7px; margin-left: 6px; }

/* Botões na barra: injetados no topo do Habblaud ou, se não der, logo abaixo. */
.nx-toolbar {
  pointer-events: auto;
  display: flex; align-items: center; gap: 8px;
}
#nexaiq-overlay > .nx-toolbar {
  position: fixed; top: 72px; right: 12px; z-index: 45;
}
.nx-btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 12px; border-radius: 10px;
  font-weight: 600; font-size: 13px; color: #fff;
  background: #0061F8;
  box-shadow: 0 6px 16px rgba(37,99,235,.28);
}
.nx-btn--ghost {
  background: #191C24; color: #ECEDF1;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: none;
}
.nx-btn[aria-pressed="true"] {
  background: rgba(0,97,248,.16);
  color: #5C9BFF;
  border: 1px solid rgba(0,97,248,.35);
  box-shadow: none;
}
.nx-badge {
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: #F04462; color: #fff;
  font-size: 11px; font-weight: 700; display: inline-grid; place-items: center;
}
.nx-btn[aria-pressed="true"] .nx-badge { background: #0061F8; }

/* Gaveta: só aparece quando aberta; fica abaixo da barra, à direita, sem cobrir o topo nativo. */
.nx-drawer[hidden] { display: none !important; }
.nx-drawer {
  pointer-events: auto;
  position: fixed;
  top: 76px; right: 12px; bottom: 16px;
  width: 300px; z-index: 34;
  display: flex; flex-direction: column;
  background: rgba(14,16,21,.96);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
  padding: 14px 14px 12px;
  overflow: auto;
}
.nx-drawer h2 { margin: 0 0 4px; font-family: Manrope, sans-serif; font-size: 16px; font-weight: 700; }
.nx-drawer .nx-hint { margin: 0 0 10px; font-size: 12px; color: #A1A6B3; line-height: 1.4; }
.nx-ticket { background: #13151B; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 10px; margin: 0 0 8px; }
.nx-ticket .nx-id { font-size: 11px; color: #6B7180; display: flex; justify-content: space-between; gap: 8px; }
.nx-ticket b { display: block; margin: 4px 0 2px; font-size: 13px; }
.nx-ticket p { margin: 0; font-size: 12px; color: #A1A6B3; }
.nx-tag { font-size: 10px; font-weight: 600; border-radius: 6px; padding: 2px 6px; }
.nx-tag.rev { background: rgba(105,37,246,.16); color: #A47BFF; }
.nx-tag.cli { background: rgba(0,97,248,.16); color: #5C9BFF; }

/* Notificação compacta de pedido de ajuda — não é um painel fixo. */
.nx-note[hidden] { display: none !important; }
.nx-note {
  pointer-events: auto;
  position: fixed; top: 76px; left: 50%; transform: translateX(-50%);
  z-index: 46; width: min(420px, calc(100vw - 24px));
  background: #0E1015;
  border: 1px solid rgba(245,165,36,.4);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
  padding: 10px 12px 12px;
}
.nx-note__head { display: flex; align-items: flex-start; gap: 8px; }
.nx-note__head h3 { margin: 0; font-size: 13px; font-weight: 700; color: #F5A524; flex: 1; }
.nx-note p { margin: 6px 0 0; font-size: 12px; color: #A1A6B3; line-height: 1.4; }
.nx-note__x {
  width: 24px; height: 24px; border-radius: 8px; color: #A1A6B3;
  display: grid; place-items: center; font-size: 16px; line-height: 1;
}
.nx-note__x:hover { background: #191C24; color: #ECEDF1; }
.nx-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.nx-actions button { border: 0; border-radius: 10px; padding: 6px 10px; font-weight: 600; font-size: 12px; color: #fff; }
.nx-ok { background: #0061F8; }
.nx-no { background: #F04462; }
.nx-more { background: #191C24; border: 1px solid rgba(255,255,255,.1) !important; }

.nx-banner {
  pointer-events: auto;
  position: fixed; left: 12px; bottom: 12px; z-index: 30;
  background: rgba(14,16,21,.92); border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px; padding: 8px 12px; font-size: 11px; color: #A1A6B3;
  max-width: 380px; line-height: 1.4;
}
.nx-banner strong { color: #ECEDF1; font-weight: 600; }

.nx-modal[hidden] { display: none !important; }
.nx-modal {
  pointer-events: auto;
  position: fixed; inset: 0; z-index: 80;
  background: rgba(10,11,15,.72);
  display: grid; place-items: center; padding: 24px;
}
.nx-modal__box {
  width: min(920px, 100%); max-height: 90vh; overflow: auto;
  background: #0E1015; border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px; padding: 22px 24px 20px;
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
}
.nx-modal__box h2 { font-family: Manrope, sans-serif; margin: 0 0 8px; }
.nx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.nx-box { background: #13151B; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 14px; }
.nx-box h3 { margin: 0 0 6px; font-size: 14px; }
.nx-box p, .nx-box li { font-size: 13px; color: #A1A6B3; line-height: 1.45; }
.nx-box ul { margin: 8px 0 0; padding-left: 18px; }
.nx-drop { border: 1px dashed rgba(0,97,248,.45); border-radius: 12px; padding: 16px; text-align: center; color: #A1A6B3; font-size: 13px; margin-top: 8px; }
.nx-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.nx-chips span { background: #191C24; border-radius: 999px; padding: 4px 8px; font-size: 11px; }
.nx-close { float: right; background: #191C24; color: #ECEDF1; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 6px 10px; font-weight: 600; }
.nx-toast { pointer-events: none; position: fixed; bottom: 64px; left: 50%; transform: translateX(-50%); background: #191C24; border: 1px solid rgba(16,185,129,.4); color: #ECEDF1; padding: 10px 14px; border-radius: 10px; z-index: 90; font-size: 13px; }
@media (max-width: 1100px) {
  .nx-drawer { width: 260px; }
  .nx-grid { grid-template-columns: 1fr; }
}
