.nexora-assistant {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10000;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}
.nexora-orb-button {
  position: relative;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  outline: none;
  background: transparent;
  cursor: pointer;
}
.nexora-orb-button:focus-visible {
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px #7042ff;
}
.nexora-mic-hint {
  position: absolute;
  right: 68px;
  bottom: 15px;
  min-width: 112px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(112,66,255,.3);
  border-radius: 999px;
  color: #f1ecff;
  background: rgba(12,6,25,.92);
  box-shadow: 0 14px 38px rgba(12,6,25,.24);
  font-size: 10px;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.nexora-mic-hint.is-hidden {
  opacity: 0;
  transform: translateX(8px);
}
.nexora-chat-panel {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: min(380px, calc(100vw - 28px));
  height: 480px;
  max-height: calc(100dvh - 118px);
  display: none;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(180deg,rgba(15,8,31,.98),rgba(7,5,15,.99));
  box-shadow: 0 28px 90px rgba(5,3,14,.48);
  backdrop-filter: blur(18px);
}
.nexora-assistant.is-open .nexora-chat-panel {
  display: grid;
  animation: nexoraUniversalIn .2s ease both;
}
.nexora-chat-head {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 15px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.nexora-face {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
}
.nexora-chat-title {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.nexora-chat-title b {
  color: #fff;
  font-size: 12px;
  letter-spacing: .16em;
}
.nexora-chat-title span {
  overflow: hidden;
  color: rgba(255,255,255,.58);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nexora-close {
  width: 32px;
  height: 32px;
  margin-left: auto;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: rgba(255,255,255,.08);
  font-size: 18px;
  cursor: pointer;
}
.nexora-messages {
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}
.nexora-msg {
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 15px;
  color: rgba(255,255,255,.84);
  background: rgba(255,255,255,.08);
  font-size: 12px;
  line-height: 1.45;
}
.nexora-msg.user {
  align-self: flex-end;
  color: #32147e;
  background: #f6f2ff;
}
.nexora-msg.bot {
  align-self: flex-start;
  border: 1px solid rgba(112,66,255,.26);
}
.nexora-chat-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.nexora-chat-form input {
  min-width: 0;
  height: 42px;
  flex: 1;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  outline: none;
  color: #fff;
  background: rgba(255,255,255,.08);
  font-size: 13px;
}
.nexora-chat-form input::placeholder { color: rgba(255,255,255,.45); }
.nexora-chat-form button {
  width: 44px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: #7042ff;
  font-size: 17px;
  cursor: pointer;
}
@keyframes nexoraUniversalIn {
  from { opacity: 0; transform: translateY(9px) scale(.98); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 640px) {
  .nexora-assistant { right: 13px; bottom: 13px; }
  .nexora-orb-button { width: 56px; height: 56px; }
  .nexora-chat-panel {
    right: 0;
    bottom: 68px;
    width: calc(100vw - 26px);
    height: min(460px, calc(100dvh - 94px));
    border-radius: 18px;
  }
  .nexora-mic-hint { right: 60px; }
  body.arx-mobile-backend .nexora-assistant,
  body:has(.bottom-nav) .nexora-assistant { right: 12px; bottom: 96px; }
  body.arx-mobile-backend .nexora-chat-panel,
  body:has(.bottom-nav) .nexora-chat-panel { bottom: 70px; max-height: calc(100dvh - 188px); }
}
@media (prefers-reduced-motion: reduce) {
  .nexora-assistant *, .nexora-assistant *::before, .nexora-assistant *::after { animation: none !important; transition: none !important; }
}
