/* Unified Ask Our AI: preserve the original homepage layout. */
.vj-master-overlay[hidden]{display:none!important}
.vj-master-overlay{position:fixed;inset:0;z-index:15020;display:grid;place-items:center;padding:15px;background:rgba(9,25,39,.50);backdrop-filter:blur(5px)}
.vj-master-dialog{width:min(560px,100%);max-height:min(85dvh,770px);overflow:auto;background:#fff;color:#203b4c;border:1px solid #d9e4ec;border-radius:18px;padding:19px;box-shadow:0 24px 78px #00162650;animation:vjMasterIn .22s ease both}
@keyframes vjMasterIn{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
.vj-master-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;border-bottom:1px solid #e4ebf0;padding-bottom:10px}
.vj-master-dialog-head strong{font:850 16px/1.4 Inter,system-ui,sans-serif;color:#173449}
.vj-master-dialog-head button{background:#f4f7f9;border:0;border-radius:9px;width:32px;height:32px;color:#4c6573;font-size:22px;cursor:pointer}
.vj-master-role-name{display:flex;gap:10px;align-items:center;font-size:15px;color:#193c53}
.vj-master-role p,.vj-master-dialog>p{font-size:13px;line-height:1.65;color:#537184}
.vj-master-role small{display:block;margin:16px 0 10px;color:#526b7d;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.06em}
.vj-master-tool-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.vj-master-tool,.vj-master-research-options button,.vj-master-history-actions button,.vj-master-profile-list button{cursor:pointer;min-height:42px;padding:10px 11px;border:1px solid #d9e6ed;border-radius:10px;background:#f9fcfe;color:#274c62;font:750 12px/1.3 Inter,system-ui,sans-serif;text-align:left}
.vj-master-tool:hover,.vj-master-research-options button:hover,.vj-master-history-actions button:hover,.vj-master-profile-list button:hover{border-color:#78b4e2;background:#eef8ff}
.vj-master-avatar{display:inline-flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;height:32px;border-radius:10px;background:#eff8f1;color:#16a34a}
.vj-master-avatar svg{width:22px;height:22px;stroke:currentColor;stroke-width:1.7;max-width:100%}
.vj-master-avatar-ads{background:#fff1f1;color:#dd2929}.vj-master-avatar-sales{background:#fff7de;color:#b58903}.vj-master-avatar-business{background:#f4eaff;color:#8051b9}.vj-master-avatar-research{background:#eaf0ff;color:#305baa}
.vj-master-reply-label{font-size:11px;font-weight:900;letter-spacing:.02em;margin-bottom:9px;color:#4a677a}
.vj-chat-turn.vj-chat-assistant>.vj-master-avatar{margin:0 9px 0 0;align-self:flex-start;flex-shrink:0}
.vj-chat-turn.vj-chat-assistant>.vj-master-avatar+.vj-chat-bubble{min-width:0}
.vj-chat-turn.vj-chat-assistant .vj-ask-summary strong{white-space:pre-wrap;overflow-wrap:anywhere}
.vj-master-extra{margin-top:10px}
.vj-master-research-options{display:flex;gap:8px;flex-wrap:wrap}
.vj-master-history-scroll{max-height:60dvh;overflow:auto;display:grid;gap:7px;margin-top:12px}
.vj-master-history-entry{display:flex;align-items:center;gap:5px;border:1px solid #e4ecf3;border-radius:11px;padding:5px}
.vj-master-history-entry.current{border-color:#80badc;background:#f5fbff}
.vj-master-history-entry>button:first-child{flex:1;display:grid;gap:4px;text-align:left;border:0;background:transparent;color:#25445b;padding:8px;font:700 12px Inter,sans-serif;cursor:pointer}
.vj-master-history-entry>button small{font-size:10px;color:#7d91a0}
.vj-master-history-entry>button:last-child{border:0;background:transparent;color:#7291a7;font-size:18px;cursor:pointer}
.vj-master-profile-list{display:grid;gap:6px}
.vj-master-profile-list button[aria-current=true]{border-color:#087dff;background:#eaf6ff}
/* The original specialist API-backed workflow forms appear in this ONE transcript. */
#askViberjayaThread .vj-team-workflow,#askViberjayaThread .vj-team-tool-thinking{width:min(690px,100%);box-sizing:border-box;margin:12px 0 14px 38px;border:1px solid #d8e7f1;background:#fff;border-radius:15px;padding:14px;box-shadow:0 6px 22px rgba(31,74,105,.07);color:#294358}
#askViberjayaThread .vj-team-workflow header{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px}
#askViberjayaThread .vj-team-workflow header strong{font-size:13px;color:#203b51}
#askViberjayaThread .vj-team-workflow header button{width:28px;height:28px;background:#fff;border:1px solid #d6e3ec;border-radius:7px;cursor:pointer;font-size:18px}
#askViberjayaThread .vj-team-workflow p{font-size:12px;line-height:1.55;color:#668090}
#askViberjayaThread .vj-team-workflow form{display:grid;gap:10px}
#askViberjayaThread .vj-team-field{display:grid;gap:5px;font-size:11px;font-weight:800;color:#3b5f73}
#askViberjayaThread .vj-team-field input,#askViberjayaThread .vj-team-field textarea,#askViberjayaThread .vj-team-field select{width:100%;box-sizing:border-box;padding:10px 11px;border:1px solid #d6e5ef;border-radius:9px;background:#fff;color:#243f51;font:500 13px/1.45 Inter,system-ui,sans-serif}
#askViberjayaThread .vj-team-workflow-execute{border:0;border-radius:11px;padding:12px;background:#087dff;color:#fff;font:850 12px Inter,sans-serif;cursor:pointer}
#askViberjayaThread .vj-team-workflow-execute:disabled{opacity:.5;cursor:wait}
#askViberjayaThread .vj-team-workflow-status{font-weight:750;color:#395a6e}
#askViberjayaThread .vj-team-tool-thinking{display:flex;gap:9px;align-items:center;font-size:11px;font-weight:850}
#askViberjayaThread .vj-team-tool-thinking-avatar,#askViberjayaThread .vj-team-workflow-avatar{display:inline-flex;width:30px;height:30px;align-items:center;justify-content:center}
#askViberjayaThread .vj-team-tool-thinking-avatar svg,#askViberjayaThread .vj-team-workflow-avatar svg{width:22px;height:22px}
#askViberjayaThread .vj-team-result-media{display:block;max-width:100%;max-height:440px;margin-top:10px;border-radius:10px}
#askViberjayaThread .vj-team-social-actions{display:flex;flex-wrap:wrap;gap:5px;margin-top:10px}
#askViberjayaThread .vj-team-social-actions button{border:1px solid #c7dce9;border-radius:8px;padding:7px 9px;background:#fff;color:#32607b;cursor:pointer;font-size:11px}
@media(max-width:650px){.vj-master-dialog{max-height:87dvh;padding:14px}.vj-master-tool-list{grid-template-columns:1fr 1fr;gap:6px}.vj-master-tool{font-size:11px;padding:9px}.vj-master-dialog-head strong{font-size:14px}#askViberjayaThread .vj-team-workflow,#askViberjayaThread .vj-team-tool-thinking{margin-left:0;width:100%}.vj-master-avatar{width:28px;height:28px;flex-basis:28px}}
@media(prefers-reduced-motion:reduce){.vj-master-dialog{animation:none}}

/* Original VIGENTIC team settings are editable in this same Ask Our AI interface. */
#vjMasterCustomizeForm{display:grid;gap:10px}
.vj-master-custom-field{display:grid;gap:5px;font:800 11px/1.3 Inter,system-ui,sans-serif;color:#436579}
.vj-master-custom-field input,.vj-master-custom-field select{width:100%;min-height:40px;box-sizing:border-box;padding:9px 11px;background:white;color:#24455b;border:1px solid #d4e2ec;border-radius:8px;font:550 12px/1.4 Inter,system-ui,sans-serif}
.vj-master-save{min-height:43px;border:0;border-radius:9px;background:#087dff;color:white;font-size:12px;font-weight:850;cursor:pointer}
.vj-master-save:disabled{opacity:.6}
.vj-master-custom-error{margin:0;font-size:12px;color:#b91c1c}

/* 28 Oct: instant specialist menus and compact inline modes. */
/* Role and research popups fade smoothly without changing their contents. */
.vj-master-dialog{animation:vjMasterIn .24s ease both!important}
.vj-master-overlay:not([hidden]){animation:vjMasterOverlayFade .20s ease both}
@keyframes vjMasterOverlayFade{from{opacity:0}to{opacity:1}}
#vjUniversalDrawer .vj-u-divider.vj-u-affiliate-divider{display:block!important;height:1px!important;margin:12px 5px!important;background:#dae3e9!important;border:0!important}
#vjUniversalDrawer .vj-u-section[data-u-section="dashboard"]{position:relative!important}
#vjUniversalDrawer .vj-u-section[data-u-section="dashboard"]>.v31-unread-dot{position:absolute!important;top:50%!important;right:16px!important;transform:translateY(-50%)!important;width:7px;height:7px}
#vjUniversalDrawer #vjMasterBusiness .vj-u-inline-sign{font-size:15px!important;line-height:1!important;font-weight:700!important;transition:transform .18s ease;display:inline-block!important}
#vjUniversalDrawer #vjMasterBusiness[aria-expanded=true] .vj-u-inline-sign{transform:rotate(180deg)}
@media(prefers-reduced-motion:reduce){.vj-master-dialog,.vj-master-overlay{animation:none!important}}
#vjUniversalDrawer .vj-master-profile-empty{font-size:11px;color:#537184;line-height:1.4;margin:6px}
#vjUniversalDrawer .vj-u-inline-panel button:disabled{opacity:.55;cursor:progress}

/* Mobile homepage: replace perpetual GPU work with static icons/chips.
   Keep the user-requested fade animation on accordion panels. */
@media(max-width:650px) and (pointer:coarse){
 body.vj-home-unified-menu .vj-agent-home-icon:not(.vj-agent-home-icon--team),
 body.vj-home-unified-menu .vj-affiliate-home-card .vj-agent-home-icon,
 body.vj-home-unified-menu .vj-chat-home .vj-ask-quick button{
  animation:none!important;will-change:auto!important;filter:none!important;
 }
 body.vj-home-unified-menu .vj-chat-home .vj-ask-input-row::before{animation:none!important}
 body.vj-home-unified-menu .vj-ask-business,
 body.vj-home-unified-menu .current-plan-badge,
 body.vj-home-unified-menu .vj-chat-composer-wrap{
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
 }
}
