.fx-unified-actions{position:fixed;z-index:1000;right:18px;bottom:18px;display:flex;gap:9px}
.fx-unified-actions a,.fx-unified-actions button{background:#0b2030;color:#fff;border:1px solid #38c5c1;border-radius:999px;padding:11px 15px;text-decoration:none;font:600 14px system-ui;box-shadow:0 6px 22px #0018;cursor:pointer}
.fx-unified-actions a:hover,.fx-unified-actions button:hover{background:#12384a}
.fx-assistant-toggle{display:flex;align-items:center;gap:8px;padding:5px 13px 5px 5px!important}.fx-assistant-avatar{width:44px;height:44px;flex:0 0 44px;object-fit:contain;border-radius:50%;background:#0b2030}.fx-assistant-brand{display:flex;align-items:center;gap:10px}.fx-assistant-head-avatar{width:50px;height:50px;flex:0 0 50px;object-fit:contain}
.fx-assistant-toggle-copy{display:grid;gap:2px;text-align:left;line-height:1.1}
.fx-assistant-toggle-copy small{color:#b8ef69;font-size:10px;font-weight:700;letter-spacing:.015em}
@media(max-width:520px){.fx-assistant-toggle-copy small{font-size:9px}}
.fx-assistant-panel{position:fixed;z-index:1001;right:18px;bottom:76px;width:min(390px,calc(100vw - 24px));height:min(560px,calc(100dvh - 105px));background:#081522;color:#eaf6fc;border:1px solid #2a566b;border-radius:18px;box-shadow:0 18px 60px #001b;display:flex;flex-direction:column;overflow:hidden;font:14px/1.5 system-ui,sans-serif}
.fx-assistant-panel[hidden]{display:none}
.fx-assistant-head{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;background:#0b2030;border-bottom:1px solid #234458}
.fx-assistant-head strong,.fx-assistant-head small{display:block}.fx-assistant-head small{font-size:11px;color:#9db8c8;margin-top:2px}
.fx-assistant-head button{border:0;background:transparent;color:#eaf6fc;font-size:25px;cursor:pointer}
.fx-assistant-messages{flex:1;overflow:auto;padding:14px;display:flex;flex-direction:column;gap:10px}
.fx-assistant-message{max-width:92%;padding:10px 12px;border-radius:13px;white-space:pre-wrap;overflow-wrap:anywhere}
.fx-assistant-message.assistant{align-self:flex-start;background:#102b3b;border:1px solid #21495c}
.fx-assistant-message.user{align-self:flex-end;background:#0c6667;color:#fff}
.fx-assistant-message.error{border-color:#9c4c4c;color:#ffdcdc}
.fx-assistant-sources{font-size:11px;color:#b5cbd7;padding-left:18px;margin:0}.fx-assistant-sources a{color:#7ddbd8}
.fx-assistant-privacy{font-size:10px;color:#91aabd;padding:0 14px;margin:0 0 8px}
.fx-assistant-form{display:flex;gap:8px;padding:10px;border-top:1px solid #234458;background:#091a28}
.fx-assistant-form textarea{min-width:0;flex:1;resize:none;border:1px solid #34596b;border-radius:10px;background:#06111d;color:#f4fbff;padding:10px;font:inherit}
.fx-assistant-form button{border:0;border-radius:10px;padding:0 13px;background:#2dc7be;color:#03191d;font-weight:800;cursor:pointer}
.fx-assistant-form button:disabled{opacity:.55;cursor:wait}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:520px){.fx-unified-actions{right:10px;bottom:12px}.fx-unified-actions a,.fx-unified-actions button{padding:10px 12px;font-size:12px}.fx-assistant-toggle{gap:6px;padding:4px 10px 4px 4px!important}.fx-assistant-avatar{width:38px;height:38px;flex-basis:38px}.fx-assistant-head-avatar{width:42px;height:42px;flex-basis:42px}.fx-assistant-panel{right:8px;bottom:66px;width:calc(100vw - 16px);height:min(560px,calc(100dvh - 86px))}}

.fx-assistant-prompts{display:flex;flex-wrap:wrap;gap:6px;padding:0 12px 9px;background:#081522}.fx-assistant-prompts button{border:1px solid #31576a;border-radius:999px;background:#102b3b;color:#dff8f5;padding:6px 9px;font:11px/1.25 system-ui,sans-serif;cursor:pointer}.fx-assistant-prompts button:hover{background:#174455;border-color:#38c5c1}

/* Nexa Jarvis visual refresh: isolated to the existing assistant presentation. */
.fx-assistant-panel{
  right:clamp(12px,2vw,28px);
  bottom:clamp(78px,10vh,104px);
  width:min(680px,calc(100vw - 36px));
  height:min(780px,calc(100dvh - 116px));
  border:1px solid #3c837f;
  border-radius:24px;
  background:radial-gradient(ellipse at 92% 0%,#164744 0,transparent 34%),linear-gradient(155deg,#081923 0%,#07131d 55%,#0c222b 100%);
  box-shadow:0 26px 90px #000a,0 0 42px #21d5b41c;
  animation:fxJarvisOpen .28s cubic-bezier(.2,.8,.2,1) both;
}
.fx-assistant-head{
  min-height:84px;
  padding:16px 20px;
  background:linear-gradient(115deg,#0d2b35,#103b3c 68%,#10252f);
  border-bottom:1px solid #285b5d;
}
.fx-assistant-head-avatar{
  width:56px;height:56px;flex-basis:56px;
  filter:drop-shadow(0 0 11px #42dfc35a);
}
.fx-assistant-head strong{font-size:17px;letter-spacing:.01em}
.fx-assistant-head small{font-size:12px}
.fx-assistant-head button{width:40px;height:40px;border-radius:12px;transition:background .18s,transform .18s}
.fx-assistant-head button:hover{background:#ffffff14;transform:rotate(5deg)}
.fx-assistant-messages{padding:22px;gap:14px;scroll-behavior:smooth}
.fx-assistant-message{
  max-width:min(86%,560px);
  padding:13px 16px;
  border-radius:17px;
  font-size:14px;
  line-height:1.6;
  box-shadow:0 5px 18px #0002;
  animation:fxJarvisMessage .22s ease-out both;
}
.fx-assistant-message.assistant{background:linear-gradient(145deg,#123542,#102833);border-color:#2a5960;border-bottom-left-radius:6px}
.fx-assistant-message.user{background:linear-gradient(125deg,#087b78,#0b5c67);border-bottom-right-radius:6px}
.fx-assistant-sources{padding:0 22px;margin-top:-8px}
.fx-assistant-privacy{font-size:11px;padding:0 18px;margin:0 0 10px}
.fx-assistant-form{gap:10px;padding:14px 16px max(14px,env(safe-area-inset-bottom));background:#091a28;border-top-color:#285b5d}
.fx-assistant-form textarea{min-height:56px;max-height:150px;padding:13px 14px;border-color:#3b666b;border-radius:14px;transition:border-color .18s,box-shadow .18s}
.fx-assistant-form textarea:focus{outline:none;border-color:#61e0c6;box-shadow:0 0 0 3px #61e0c622}
.fx-assistant-form button{min-width:92px;border-radius:13px;background:linear-gradient(120deg,#67e7c6,#9ae891);box-shadow:0 5px 20px #3fd8b32c;transition:transform .16s,filter .16s}
.fx-assistant-form button:hover:not(:disabled){transform:translateY(-1px);filter:brightness(1.06)}
.fx-assistant-prompts{gap:8px;padding:0 18px 12px;background:transparent}
.fx-assistant-prompts button{padding:8px 12px;border-radius:999px;font-size:12px;transition:transform .16s,background .16s,border-color .16s}
.fx-assistant-prompts button:hover{transform:translateY(-1px)}
@keyframes fxJarvisOpen{from{opacity:0;transform:translateY(14px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes fxJarvisMessage{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:680px){
  .fx-assistant-panel{left:0;right:0;bottom:0;width:100vw;height:100dvh;max-height:100dvh;border-radius:22px 22px 0 0;border-bottom:0}
  .fx-assistant-head{padding-top:max(14px,env(safe-area-inset-top))}
  .fx-assistant-messages{padding:16px}
  .fx-assistant-message{max-width:92%;font-size:14px}
}
@media(prefers-reduced-motion:reduce){
  .fx-assistant-panel,.fx-assistant-message{animation:none}
  .fx-assistant-form button,.fx-assistant-prompts button,.fx-assistant-head button{transition:none}
}

/* Nexa Jarvis: only the existing chat panel and its expand control. */
.fx-assistant-head .fx-assistant-expand{
  display:grid;place-items:center;width:38px;height:38px;margin-left:auto;
  border:1px solid #31576a;border-radius:11px;background:#102b3b;color:#dff8f5;
  font-size:22px;line-height:1;transition:transform .16s,background .16s,border-color .16s;
}
.fx-assistant-head .fx-assistant-expand:hover{transform:translateY(-1px);background:#174455;border-color:#54d7c5}
.fx-assistant-panel.fx-assistant-expanded{
  top:16px;right:16px;bottom:16px;left:16px;width:auto;height:auto;max-height:none;
  border-radius:22px;z-index:1200;
}
@media(max-width:680px){.fx-assistant-head .fx-assistant-expand{display:none}}
@media(prefers-reduced-motion:reduce){.fx-assistant-head .fx-assistant-expand{transition:none}}
