/* One visual layer shared by existing public, card, hub and workspace controllers. */
html body.mx-assistant-ready button[data-mx-assistant-launcher]{position:fixed!important;inset:auto 18px max(18px,env(safe-area-inset-bottom)) auto!important;display:grid!important;place-items:center!important;box-sizing:border-box!important;width:190px!important;min-width:54px!important;height:54px!important;min-height:54px!important;padding:3px!important;margin:0!important;border:0!important;border-radius:999px!important;background:linear-gradient(110deg,#6544b9,#087d95)!important;color:#fff!important;box-shadow:0 3px 12px #172d4220!important;z-index:1100!important;overflow:visible!important;transform:none!important;transition:width .26s cubic-bezier(.2,.8,.2,1),opacity .18s ease!important;isolation:isolate}
html body.mx-assistant-ready button[data-mx-assistant-launcher]>:is(strong,small,b,.mymex-jarvis-launcher-copy){display:none!important}
html body.mx-assistant-ready button[data-mx-assistant-launcher]>span:first-child:not(.mx-assistant-label){display:grid!important;place-items:center!important;position:absolute!important;right:3px!important;top:3px!important;z-index:2!important;grid-area:auto!important;width:48px!important;height:48px!important;margin:0!important;padding:0!important;transform:none!important;border:0!important;border-radius:50%!important;overflow:hidden!important;background:#042136!important}
html body.mx-assistant-ready button[data-mx-assistant-launcher] img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;border-radius:50%!important}
html body.mx-assistant-ready button[data-mx-assistant-launcher] .mx-assistant-label{position:absolute!important;left:auto!important;right:64px!important;top:50%!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:3px!important;min-width:0!important;width:110px!important;max-width:110px!important;height:auto!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:#fff!important;box-shadow:none!important;transform:translateY(-50%)!important;opacity:1!important;pointer-events:none!important;overflow:hidden!important;transition:opacity .22s ease,transform .22s ease!important}
html body.mx-assistant-ready .mx-assistant-label strong{display:block!important;font:600 13px/1.35 Inter,Arial,sans-serif!important;color:#f1fdff!important;text-align:left!important;white-space:normal!important;overflow-wrap:anywhere}
html body.mx-assistant-ready .mx-assistant-label small{display:block!important;font:400 11px/1.35 Inter,Arial,sans-serif!important;color:#edf6ff!important;white-space:normal!important}
html body.mx-assistant-ready button[data-mx-assistant-launcher][data-mx-assistant-open=true]{opacity:0!important;pointer-events:none!important}
html body.mx-assistant-ready button[data-mx-assistant-launcher] .mx-assistant-unread{position:absolute!important;display:grid!important;place-items:center!important;top:-4px!important;right:-4px!important;width:22px!important;height:22px!important;border:2px solid #fff!important;border-radius:50%!important;background:#087f94!important;color:#fff!important;font:700 11px/1 Arial,sans-serif!important;box-shadow:0 2px 6px #061b3433!important}
html body.mx-assistant-ready button[data-mx-assistant-launcher] .mx-assistant-unread[hidden]{display:none!important}
html body.mx-assistant-ready .mx-assistant-description{font:400 12px/1.55 Arial,sans-serif!important;color:inherit!important;padding:10px 18px!important;margin:0!important;border-bottom:1px solid #92b7c42b!important;background:transparent!important;flex-shrink:0}
html body.mx-assistant-ready :is(#mymex-jarvis-panel,#mymex-public-jarvis,#assistant-dialog,#mymex-company-jarvis) .mx-assistant-sound{display:inline-flex!important;align-items:center!important;min-height:32px!important;margin:6px 0 0 8px!important;padding:4px 9px!important;border:1px solid #78a8b455!important;border-radius:10px!important;background:transparent!important;color:inherit!important;font:500 10px/1.4 Arial,sans-serif!important;cursor:pointer}
html body.mx-assistant-ready :is(#mymex-jarvis-panel,#mymex-public-jarvis,#assistant-dialog,#mymex-company-jarvis) [data-mx-assistant-composer]{border:1px solid #67bbc955!important;border-radius:20px!important;background:var(--mx-assistant-compose-bg,#f4fafc)!important;padding:12px!important;box-shadow:0 3px 16px #0e4e6310!important;transition:opacity .16s ease!important}
html[data-mymex-theme=dark] body.mx-assistant-ready :is(#mymex-jarvis-panel,#mymex-public-jarvis,#assistant-dialog,#mymex-company-jarvis) [data-mx-assistant-composer],html[data-hub-theme=dark] body.mx-assistant-ready :is(#mymex-jarvis-panel,#mymex-public-jarvis,#assistant-dialog,#mymex-company-jarvis) [data-mx-assistant-composer],html[data-theme=dark] body.mx-assistant-ready :is(#mymex-jarvis-panel,#mymex-public-jarvis,#assistant-dialog,#mymex-company-jarvis) [data-mx-assistant-composer]{--mx-assistant-compose-bg:#0b273a}
html body.mx-assistant-ready :is(#mymex-jarvis-panel,#mymex-public-jarvis,#assistant-dialog,#mymex-company-jarvis) [data-mx-assistant-composer]:focus-within{border-color:#208da7!important;box-shadow:0 0 0 3px #209eb514!important}
html body.mx-assistant-ready :is(#mymex-jarvis-panel,#mymex-public-jarvis,#assistant-dialog,#mymex-company-jarvis) [data-mx-assistant-composer] :is(textarea,input[type=text]){border:1px solid #89b9c444!important;border-radius:14px!important;background:transparent!important;color:inherit!important;box-shadow:none!important;outline-offset:3px;min-height:44px!important}
html body.mx-assistant-ready :is(#mymex-jarvis-panel,#mymex-public-jarvis,#assistant-dialog,#mymex-company-jarvis) [data-mx-assistant-composer] :is(button[type=submit],.mymex-public-jarvis-send,[data-hub-send]){border-radius:13px!important;background:linear-gradient(125deg,#176a92,#087d8c)!important;color:white!important}
@media(max-width:760px){
 html body.mx-assistant-ready button[data-mx-assistant-launcher]{right:max(14px,env(safe-area-inset-right))!important;bottom:max(16px,env(safe-area-inset-bottom))!important;width:54px!important;min-width:54px!important;height:54px!important;min-height:54px!important}
 html body.mx-assistant-ready button[data-mx-assistant-launcher]>span:first-child:not(.mx-assistant-label){width:48px!important;height:48px!important}
 html body.mx-assistant-ready button[data-mx-assistant-launcher] .mx-assistant-label{opacity:0!important;transform:translate(8px,-50%)!important}
 html body.mx-assistant-ready button[data-mx-assistant-launcher].mx-assistant-introducing,html body.mx-assistant-ready button[data-mx-assistant-launcher]:focus-visible{width:190px!important}
 html body.mx-assistant-ready button[data-mx-assistant-launcher].mx-assistant-introducing .mx-assistant-label,html body.mx-assistant-ready button[data-mx-assistant-launcher]:focus-visible .mx-assistant-label{opacity:1!important;transform:translate(0,-50%)!important}
 html body.mx-assistant-ready [data-mx-assistant-panel]{max-height:calc(var(--mx-assistant-viewport,100dvh) - 16px)!important}
 html body.mx-assistant-ready :is(#mymex-jarvis-panel,#mymex-public-jarvis,#assistant-dialog,#mymex-company-jarvis) [data-mx-assistant-composer]{margin:8px!important;flex-shrink:0!important;max-height:none!important}
 html body.mx-assistant-ready :is(#mymex-jarvis-panel,#mymex-public-jarvis,#assistant-dialog,#mymex-company-jarvis) [data-mx-assistant-composer].mx-assistant-composer-hidden{opacity:1!important;visibility:visible!important;pointer-events:auto!important}
 /* The interactive orb supplies this identity on mobile; avoid a duplicate hero badge. */
 html body.mx-assistant-ready .hero-ai-signature{display:none!important}
}
@media(prefers-reduced-motion:reduce){html body.mx-assistant-ready button[data-mx-assistant-launcher],html body.mx-assistant-ready button[data-mx-assistant-launcher] .mx-assistant-label,html body.mx-assistant-ready :is(#mymex-jarvis-panel,#mymex-public-jarvis,#assistant-dialog,#mymex-company-jarvis) [data-mx-assistant-composer]{transition:none!important;animation:none!important}}

/* A single clean composer: no nested purple field frame or extra sound control. */
html body.mx-assistant-ready :is(#mymex-jarvis-panel,#mymex-public-jarvis,#assistant-dialog,#mymex-company-jarvis) [data-mx-assistant-composer] :is(textarea,input[type=text]){border:0!important;outline:none!important;box-shadow:none!important;resize:none!important}
html body.mx-assistant-ready :is(#mymex-jarvis-panel,#mymex-public-jarvis,#assistant-dialog,#mymex-company-jarvis) [data-mx-assistant-composer]:focus-within{border-color:#198eaa!important;box-shadow:0 0 0 3px #198eaa1a!important}
html body.mx-assistant-ready :is(#mymex-jarvis-panel,#mymex-public-jarvis,#assistant-dialog,#mymex-company-jarvis) :is(button,a):focus-visible{outline:2px solid #198eaa!important;outline-offset:3px!important}
html body.mx-assistant-ready :is(#mymex-jarvis-panel,#mymex-public-jarvis,#assistant-dialog,#mymex-company-jarvis) .mx-assistant-sound{display:block!important;width:auto!important;height:auto!important;min-height:28px!important;margin:5px 0 0!important;padding:2px 0!important;white-space:nowrap!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:inherit!important;text-align:left!important}
html body.mx-assistant-ready :is(#mymex-public-jarvis-title,#assistant-public-title,#hub-assistant-title,.mymex-jarvis-identity>span>strong){font-size:16px!important;line-height:1.3!important;display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden!important}
html body.mx-assistant-ready .mx-assistant-label strong{display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden!important}

/* Universal assistant header actions, using the existing platform SVG paths. */
html body.mx-assistant-ready :is(#mymex-jarvis-panel,#mymex-public-jarvis,#assistant-dialog,#mymex-company-jarvis) button.mx-assistant-header-action[data-mx-assistant-action][type=button]{display:grid!important;place-items:center!important;box-sizing:border-box!important;flex:0 0 44px!important;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;margin:0!important;border:1px solid var(--jp-line,#c8dce8)!important;border-radius:14px!important;background:var(--jp-panel,#fff)!important;color:var(--jp-ink,#173b55)!important;box-shadow:none!important;font-size:0!important}
html body.mx-assistant-ready :is(#mymex-jarvis-panel,#mymex-public-jarvis,#assistant-dialog,#mymex-company-jarvis) button.mx-assistant-header-action[data-mx-assistant-action][type=button] svg{display:block!important;width:18px!important;height:18px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important;transform:none!important}

/* Canonical MyMEX action style, copied from the approved live free-trial CTA. */
body.mx-assistant-ready{--mx-action-gradient:linear-gradient(110deg,#6544b9,#087d95);--mx-action-radius:11px}
html body.mx-assistant-ready:not([data-mx-assistant-scope=business]) :is(.mlp-cta,.mymex-site-cta,.mxp-primary,.tenant-button-primary):not(:disabled):not(.tenant-button-danger){background:var(--mx-action-gradient)!important;color:#fff!important;border-radius:var(--mx-action-radius)!important;border-color:#7e70bd66!important;font-weight:600!important;box-shadow:0 4px 12px #493e7e14!important}
html body.mx-assistant-ready :is(#mymex-jarvis-panel,#mymex-public-jarvis,#assistant-dialog,#mymex-company-jarvis) :is(.mymex-jarvis-modes button.is-active,.mymex-public-jarvis-choices button,.mymex-jarvis-message-actions button,button[data-jarvis-send],button.mymex-public-jarvis-send,[id=assistant-form] button[type=submit],button[data-hub-send]):not(:disabled){background:var(--mx-action-gradient)!important;color:#fff!important;border:1px solid #7e70bd66!important;border-radius:var(--mx-action-radius)!important;font-weight:600!important;box-shadow:0 4px 12px #493e7e14!important}

/* Secondary suggested questions: quiet outlined controls, distinct from primary CTAs. */
html body.mx-assistant-ready :is(#mymex-jarvis-panel,#mymex-public-jarvis,#assistant-dialog,#mymex-company-jarvis) :is(.mymex-jarvis-suggestions button,.mymex-public-jarvis-suggestions button,button[data-ai-reply]):not(:disabled){background:#fff!important;color:#171717!important;border:1px solid #252525!important;border-radius:11px!important;font-weight:400!important;box-shadow:none!important;transition:border-color .16s ease,box-shadow .16s ease,background-color .16s ease!important}
@media(hover:hover) and (pointer:fine){
 html body.mx-assistant-ready :is(#mymex-jarvis-panel,#mymex-public-jarvis,#assistant-dialog,#mymex-company-jarvis) :is(.mymex-jarvis-suggestions button,.mymex-public-jarvis-suggestions button,button[data-ai-reply]):not(:disabled):hover{background:#f7fbfc!important;border-color:#111!important;box-shadow:0 0 0 2px #087d950d,0 3px 10px #0e273515!important}
}
html body.mx-assistant-ready :is(#mymex-jarvis-panel,#mymex-public-jarvis,#assistant-dialog,#mymex-company-jarvis) :is(.mymex-jarvis-suggestions button,.mymex-public-jarvis-suggestions button,button[data-ai-reply]):not(:disabled):active{background:#edf4f5!important;box-shadow:inset 0 1px 3px #132a3a14!important}
@media(prefers-reduced-motion:reduce){html body.mx-assistant-ready :is(#mymex-jarvis-panel,#mymex-public-jarvis,#assistant-dialog,#mymex-company-jarvis) :is(.mymex-jarvis-suggestions button,.mymex-public-jarvis-suggestions button,button[data-ai-reply]){transition:none!important}}

/* Remove legacy neon rings and availability dots; real unread counts remain separate. */
html body.mx-assistant-ready button[data-mx-assistant-launcher]::before,html body.mx-assistant-ready button[data-mx-assistant-launcher]::after{content:none!important;display:none!important;animation:none!important;box-shadow:none!important}
html body.mx-assistant-ready button[data-mx-assistant-launcher]>span:first-child>i{display:none!important}
html body.mx-assistant-ready button[data-mx-assistant-launcher]>span:first-child,html body.mx-assistant-ready button[data-mx-assistant-launcher] img{box-shadow:none!important;outline:none!important;filter:none!important}

html body.mx-assistant-ready button[data-mx-assistant-launcher]:focus-visible{outline:2px solid #6544b9!important;outline-offset:3px!important}
@media(max-width:760px){html body.mx-assistant-ready button[data-mx-assistant-launcher].mx-assistant-introducing .mx-assistant-label{transition-delay:.16s!important}}

/* Exact live launcher palette and typography; mobile portrait stays bottom-right. */
html body.mx-assistant-ready button[data-mx-assistant-launcher]{width:168px!important;height:60px!important;min-height:60px!important;background:rgba(8,35,55,.96)!important;border:1px solid #3b647b!important;border-radius:40px!important;box-shadow:0 0 20px #20cde925!important}
html body.mx-assistant-ready button[data-mx-assistant-launcher]>span:first-child:not(.mx-assistant-label){left:6px!important;right:auto!important;top:6px!important;width:46px!important;height:46px!important;padding:0!important;border:1px solid #44bed6!important;box-sizing:border-box!important;background:#061927!important;box-shadow:none!important}
html body.mx-assistant-ready button[data-mx-assistant-launcher] .mx-assistant-label{left:61px!important;right:auto!important;top:50%!important;width:90px!important;max-width:90px!important;gap:0!important;align-items:flex-start!important;background:transparent!important;border:0!important;padding:0!important}
html body.mx-assistant-ready button[data-mx-assistant-launcher] .mx-assistant-label strong{font:600 13px/18.2px Inter,Arial,sans-serif!important;text-align:left!important;color:#fff!important;white-space:nowrap!important}
html body.mx-assistant-ready button[data-mx-assistant-launcher] .mx-assistant-label small{font:500 10px/15px Inter,Arial,sans-serif!important;letter-spacing:.08em!important;text-transform:uppercase!important;text-align:left!important;color:#a3d9e7!important}
/* A single connected capsule; the portrait never moves as the shell opens inward. */
@media(max-width:760px){
 html body.mx-assistant-ready button[data-mx-assistant-launcher]{left:auto!important;right:max(14px,env(safe-area-inset-right))!important;bottom:max(16px,env(safe-area-inset-bottom))!important;width:60px!important;min-width:60px!important;max-width:calc(100vw - 28px)!important;height:60px!important;padding:0!important;overflow:visible!important;border-radius:40px!important;background:rgba(8,35,55,.96)!important;transition:width .38s cubic-bezier(.22,1,.36,1),opacity .18s ease!important}
 html body.mx-assistant-ready button[data-mx-assistant-launcher]>span:first-child:not(.mx-assistant-label){left:auto!important;right:6px!important;top:6px!important;width:46px!important;height:46px!important;z-index:2!important}
 html body.mx-assistant-ready button[data-mx-assistant-launcher] .mx-assistant-label{left:auto!important;right:64px!important;top:50%!important;width:90px!important;max-width:90px!important;height:34px!important;justify-content:center!important;box-sizing:border-box!important;padding:0!important;gap:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;opacity:0!important;transform:translate(8px,-50%)!important;clip-path:inset(0 0 0 100%);pointer-events:none!important;transition:clip-path .25s ease,opacity .16s ease,transform .3s ease!important;transition-delay:0s!important}
 html body.mx-assistant-ready button[data-mx-assistant-launcher].mx-assistant-introducing,html body.mx-assistant-ready button[data-mx-assistant-launcher]:focus-visible{width:168px!important;border-radius:40px!important}
 html body.mx-assistant-ready button[data-mx-assistant-launcher].mx-assistant-introducing .mx-assistant-label,html body.mx-assistant-ready button[data-mx-assistant-launcher]:focus-visible .mx-assistant-label{opacity:1!important;clip-path:inset(0);transform:translate(0,-50%)!important;transition-delay:.07s!important}
}
@media(prefers-reduced-motion:reduce){html body.mx-assistant-ready button[data-mx-assistant-launcher],html body.mx-assistant-ready button[data-mx-assistant-launcher] .mx-assistant-label{transition:none!important}}
/* Reuse the live rotating border and breathing halo, including reduced motion. */
@property --mymex-jarvis-orbit{syntax:"<angle>";inherits:false;initial-value:0deg}
@keyframes mymex-jarvis-orbit{100%{--mymex-jarvis-orbit:360deg}}
@keyframes mymex-jarvis-halo{0%,100%{opacity:.2;transform:scale(1)}50%{opacity:.6;transform:scale(1.035)}}
html body.mx-assistant-ready button[data-mx-assistant-launcher]::before{content:""!important;display:block!important;position:absolute!important;inset:-1px!important;padding:2px!important;border:0!important;border-radius:inherit!important;background:conic-gradient(from var(--mymex-jarvis-orbit),#2acfe7,transparent 22%,#a885e8 48%,transparent 70%,#2acfe7)!important;mask:linear-gradient(#fff 0 0) content-box exclude,linear-gradient(#fff 0 0)!important;box-shadow:none!important;filter:none!important;pointer-events:none!important;z-index:3!important;animation:mymex-jarvis-orbit 4s linear infinite!important;transform:none!important}
html body.mx-assistant-ready button[data-mx-assistant-launcher]::after{content:""!important;display:block!important;position:absolute!important;inset:-5px!important;padding:0!important;border:1px solid #2ec8dd66!important;border-radius:inherit!important;background:none!important;box-shadow:0 0 18px #1ebddf20!important;pointer-events:none!important;z-index:-1!important;animation:mymex-jarvis-halo 2.8s ease-in-out infinite!important}
@media(prefers-reduced-motion:reduce){html body.mx-assistant-ready button[data-mx-assistant-launcher]::before,html body.mx-assistant-ready button[data-mx-assistant-launcher]::after{animation:none!important}}

/* Public cards and embedded card previews clear their own native action bar. */
html body.mx-assistant-ready button.assistant-launcher[data-mx-assistant-launcher]{bottom:max(18px,env(safe-area-inset-bottom),var(--mx-card-action-clearance,18px))!important}

/* Compact public composer; native form controls and send handlers retain ownership. */
html body.mx-assistant-ready #mymex-public-jarvis [data-mx-assistant-composer]{display:grid!important;grid-template-columns:44px minmax(0,1fr) 44px 44px!important;grid-template-areas:none!important;gap:6px!important;align-items:end!important;padding:8px!important;border-radius:24px!important}
#mymex-public-jarvis .mymex-public-jarvis-tools{display:contents!important}
html body.mx-assistant-ready #mymex-public-jarvis [data-public-jarvis-attach],html body.mx-assistant-ready #mymex-public-jarvis [data-public-jarvis-record]{display:flex!important;align-items:center!important;justify-content:center!important;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;border-radius:50%!important;cursor:pointer}
#mymex-public-jarvis [data-public-jarvis-attach]{grid-column:1;grid-row:2}
#mymex-public-jarvis [data-public-jarvis-record]{grid-column:2;grid-row:2;position:relative}
#mymex-public-jarvis .mymex-public-jarvis-tool strong,#mymex-public-jarvis .mymex-public-jarvis-send strong{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap}
html body.mx-assistant-ready #mymex-public-jarvis .mymex-public-jarvis-tool>span{width:24px!important;height:24px!important;flex-basis:24px!important;font-size:28px!important}
#mymex-public-jarvis [data-public-jarvis-record] svg{width:22px;height:22px}
html body.mx-assistant-ready #mymex-public-jarvis [data-mx-assistant-composer] textarea{grid-column:1/-1!important;grid-row:1!important;width:100%!important;min-width:0!important;height:var(--mx-compose-input-height,52px)!important;min-height:52px!important;max-height:152px!important;padding:10px 8px!important;font-size:16px!important;line-height:22px!important;box-sizing:border-box;overflow-y:auto}
html body.mx-assistant-ready #mymex-public-jarvis form.mymex-public-jarvis-composer button[type=submit].mymex-public-jarvis-send{grid-column:4!important;grid-row:2!important;display:grid!important;place-items:center!important;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;border-radius:50%!important;font-size:24px!important}
#mymex-public-jarvis [data-public-jarvis-media-status],#mymex-public-jarvis [data-public-jarvis-reset],#mymex-public-jarvis [data-public-jarvis-voice-review]{grid-column:1/-1;min-width:0;overflow-wrap:anywhere}
#mymex-public-jarvis [data-public-jarvis-media-status]{padding:2px 10px;font-size:12px!important;line-height:1.4}
#mymex-public-jarvis [data-public-jarvis-media-status]:empty{display:none!important}
#mymex-public-jarvis [data-public-jarvis-voice-review]:not([hidden]){display:flex!important;flex-wrap:wrap;align-items:center;gap:8px;padding:8px;border-top:1px solid var(--jp-line)}
#mymex-public-jarvis [data-public-jarvis-voice-review] audio{width:100%;min-width:0;max-width:100%;height:40px}
html body.mx-assistant-ready :is(#mymex-public-jarvis,#mymex-jarvis-panel) :is([data-public-jarvis-record],[data-jarvis-record])[data-voice-state=recording]{color:#fff!important;background:#b91c1c!important;box-shadow:0 0 0 3px #b91c1c22!important}
html body.mx-assistant-ready :is(#mymex-public-jarvis,#mymex-jarvis-panel) :is([data-public-jarvis-record],[data-jarvis-record])[data-voice-state=ready]{color:#fff!important;background:#15803d!important;box-shadow:0 0 0 3px #15803d22!important}
:is([data-public-jarvis-record],[data-jarvis-record])[data-voice-state=recording]::after,:is([data-public-jarvis-record],[data-jarvis-record])[data-voice-state=ready]::after{content:"";display:block;position:absolute;right:2px;top:2px;width:9px;height:9px;border:2px solid #fff;border-radius:50%;background:#b91c1c}
:is([data-public-jarvis-record],[data-jarvis-record])[data-voice-state=ready]::after{background:#15803d}
@media(max-width:760px){
 html body.mx-assistant-ready #mymex-public-jarvis[data-mx-keyboard-open=true] [data-mx-assistant-composer]{max-height:none!important;overflow:visible!important}
 #mymex-public-jarvis[data-mx-keyboard-open=true]>.mymex-public-jarvis-body{grid-template-rows:minmax(0,1fr) auto!important}
 #mymex-public-jarvis[data-mx-keyboard-open=true] [data-public-jarvis-media-status]{display:block!important}
 #mymex-public-jarvis[data-mx-keyboard-open=true] [data-public-jarvis-media-status]:empty{display:none!important}
}

@media(max-width:760px){html body.mx-assistant-ready #mymex-public-jarvis.mx-marketing-jarvis-connect>.mymex-public-jarvis-body{height:auto!important;min-height:0!important;max-height:100%!important;align-self:stretch!important}}

:is([data-public-jarvis-record],[data-jarvis-record])[data-voice-state]{position:relative}
#mymex-public-jarvis [data-public-jarvis-attach] svg{width:22px;height:22px}

#mymex-public-jarvis [data-public-jarvis-voice-review]:not([hidden]){background:var(--jp-soft)!important;color:var(--jp-ink)!important}
#mymex-public-jarvis [data-public-jarvis-voice-review] span{color:var(--jp-ink)!important}
#mymex-public-jarvis [data-public-jarvis-voice-review] span small{display:none}

html body #mymex-public-jarvis [data-public-jarvis-voice-review] span strong{color:var(--jp-ink)!important}

html body.mx-assistant-ready #mymex-public-jarvis form.mymex-public-jarvis-composer button[type=submit].mymex-public-jarvis-send{background:linear-gradient(135deg,#6544b9,#087d95)!important;border:0!important;box-shadow:none!important;cursor:pointer;aspect-ratio:1}
#mymex-public-jarvis .mymex-public-jarvis-send>span{display:grid;place-items:center;width:24px;height:24px}
#mymex-public-jarvis .mymex-public-jarvis-send svg{display:block;width:22px;height:22px}
#mymex-public-jarvis .mymex-public-jarvis-send:disabled{opacity:.5;cursor:wait}

/* Shared composer treatment; native controllers retain features and sending. */
html body.mx-assistant-ready :is(#mymex-jarvis-panel,#assistant-dialog,#mymex-company-jarvis)[data-mx-assistant-panel] [data-mx-compose-row]{display:grid!important;grid-template-columns:minmax(0,1fr) 44px!important;align-items:center!important;gap:6px!important;min-width:0!important}
html body.mx-assistant-ready :is(#mymex-jarvis-panel,#assistant-dialog,#mymex-company-jarvis)[data-mx-assistant-panel] [data-mx-compose-layout=voice]{grid-template-columns:minmax(0,1fr) 44px 44px!important}
html body.mx-assistant-ready :is(#mymex-jarvis-panel,#assistant-dialog,#mymex-company-jarvis)[data-mx-assistant-panel] [data-mx-compose-layout=attachment]{grid-template-columns:44px minmax(0,1fr) 44px 44px!important}
html body.mx-assistant-ready :is(#mymex-jarvis-panel,#assistant-dialog,#mymex-company-jarvis)[data-mx-assistant-panel] [data-mx-assistant-composer]{border-radius:28px!important;padding:6px!important}
html body.mx-assistant-ready :is(#mymex-jarvis-panel,#assistant-dialog,#mymex-company-jarvis)[data-mx-assistant-panel] [data-mx-compose-input]{grid-area:auto!important;width:100%!important;min-width:0!important;height:44px!important;min-height:44px!important;max-height:96px!important;padding:10px 4px!important;border:0!important;background:transparent!important;box-sizing:border-box;font-size:16px!important;line-height:24px!important}
html body.mx-assistant-ready :is(#mymex-jarvis-panel,#assistant-dialog,#mymex-company-jarvis)[data-mx-assistant-panel] [data-mx-compose-row][data-mx-compose-layout] :is(button[data-mx-compose-send],button[data-mx-compose-voice],label[data-mx-compose-attach]){grid-area:auto!important;display:grid!important;place-items:center!important;width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;border-radius:50%!important;border:0!important;background:var(--jp-panel,#fff)!important;color:var(--jp-ink,#203d55)!important;box-shadow:none!important;cursor:pointer}
html body.mx-assistant-ready :is(#mymex-jarvis-panel,#assistant-dialog,#mymex-company-jarvis)[data-mx-assistant-panel] [data-mx-compose-row][data-mx-compose-layout] button[data-mx-compose-send]{color:#fff!important;background:linear-gradient(135deg,#6544b9,#087d95)!important}
html body.mx-assistant-ready :is(#mymex-jarvis-panel,#assistant-dialog,#mymex-company-jarvis)[data-mx-assistant-panel] [data-mx-compose-row][data-mx-compose-layout] :is(svg,[data-mx-compose-voice]>span,[data-mx-compose-attach]>span){width:22px!important;height:22px!important}
[data-mx-compose-row][data-mx-compose-layout] :is([data-mx-compose-voice],[data-mx-compose-attach]) strong{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap}
html body.mx-assistant-ready :is(#mymex-jarvis-panel,#assistant-dialog) [data-mx-compose-row][data-mx-compose-layout] button[data-mx-compose-voice][data-voice-state=recording]{background:#b91c1c!important;color:#fff!important}
html body.mx-assistant-ready :is(#mymex-jarvis-panel,#assistant-dialog) [data-mx-compose-row][data-mx-compose-layout] button[data-mx-compose-voice][data-voice-state=ready]{background:#15803d!important;color:#fff!important}
html body.mx-assistant-ready #assistant-dialog .assistant-form>.assistant-tools{border:0!important;padding:2px 6px 6px!important}
@media(max-width:760px){
 html body.mx-assistant-ready #mymex-jarvis-panel .mymex-jarvis-body{min-height:0!important;height:auto!important;flex:1 1 auto!important}
 html body.mx-assistant-ready #mymex-company-jarvis .hub-chat{min-height:0!important;height:100%!important}
}

html body.mx-assistant-ready :is(#mymex-jarvis-panel,#assistant-dialog) [data-mx-compose-row][data-mx-compose-layout] button[data-mx-compose-voice]{animation:none!important;transform:none!important}

/* Voice review must sit above the shared chat panel, not behind it. */
html body.mx-assistant-ready>.mymex-jarvis-voice-layer{z-index:2147483002!important}

/* Voice-enabled inputs get a full-width writing row and a separate action row. */
html body.mx-assistant-ready :is(#mymex-jarvis-panel,#assistant-dialog)[data-mx-assistant-panel] [data-mx-compose-row][data-mx-compose-layout] [data-mx-compose-input]{grid-column:1/-1!important;grid-row:1!important;height:var(--mx-compose-input-height,52px)!important;min-height:52px!important;max-height:152px!important;padding:10px 8px!important}
html body.mx-assistant-ready :is(#mymex-jarvis-panel,#assistant-dialog)[data-mx-assistant-panel] [data-mx-compose-row][data-mx-compose-layout] button[data-mx-compose-send]{grid-column:-2/-1!important;grid-row:2!important}
html body.mx-assistant-ready :is(#mymex-jarvis-panel,#assistant-dialog)[data-mx-assistant-panel] [data-mx-compose-layout=voice] button[data-mx-compose-voice]{grid-column:1!important;grid-row:2!important;justify-self:start}
html body.mx-assistant-ready #assistant-dialog[data-mx-assistant-panel] [data-mx-compose-layout=attachment] label[data-mx-compose-attach]{grid-column:1!important;grid-row:2!important}
html body.mx-assistant-ready #assistant-dialog[data-mx-assistant-panel] [data-mx-compose-layout=attachment] button[data-mx-compose-voice]{grid-column:2!important;grid-row:2!important;justify-self:start}

@media(max-width:760px){
 html body.mx-assistant-ready :is(#mymex-jarvis-panel,#assistant-dialog)[data-mx-keyboard-open=true] [data-mx-assistant-composer]{max-height:none!important;overflow:visible!important}
 html body.mx-assistant-ready #mymex-jarvis-panel[data-mx-keyboard-open=true] .mymex-jarvis-chat{grid-template-rows:minmax(0,1fr) auto!important}
 html body.mx-assistant-ready #mymex-jarvis-panel[data-mx-keyboard-open=true] .mymex-jarvis-footer{display:none!important}
 html[data-theme] body.mx-assistant-ready #assistant-dialog[open][data-mx-keyboard-open=true].mx-company-card{grid-template-rows:90px minmax(0,1fr) auto!important}
}

/* Keep voice review compact so the transcript remains readable above the keyboard. */
html body.mx-assistant-ready #mymex-public-jarvis [data-public-jarvis-voice-review]:not([hidden]){flex-wrap:nowrap!important;padding:8px!important;gap:8px!important}
html body.mx-assistant-ready #mymex-public-jarvis [data-public-jarvis-voice-review] audio{flex:1 1 0!important;width:0!important;min-width:0!important;height:40px!important}
html body.mx-assistant-ready #mymex-public-jarvis [data-public-jarvis-voice-review]>span{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap}
html body.mx-assistant-ready #mymex-public-jarvis [data-public-jarvis-voice-review] button[data-public-jarvis-discard-voice]{flex:0 0 auto;min-height:40px!important;padding:8px 10px!important;border:1px solid #bd7b89!important;border-radius:12px!important;background:var(--jp-panel,#fff)!important;color:var(--mx-discard-ink,#a21e3a)!important;font-size:13px!important;font-weight:500!important}
html[data-mymex-theme=dark] #mymex-public-jarvis [data-public-jarvis-discard-voice]{--mx-discard-ink:#fda4af}

@media(max-width:760px){
 html[data-theme] body.mx-assistant-ready #assistant-dialog[open][data-mx-keyboard-open=true].mx-company-card>.assistant-messages{grid-row:2!important}
 html[data-theme] body.mx-assistant-ready #assistant-dialog[open][data-mx-keyboard-open=true].mx-company-card>.assistant-form{grid-row:3!important;margin:6px 12px 8px!important;max-height:none!important;overflow:visible!important}
}

/* Use the shared composer geometry over legacy card input and focus pills. */
html body.mx-assistant-ready #mymex-public-jarvis form,
html[data-theme] body.mx-assistant-ready #assistant-dialog[open] #assistant-form,
html body.mx-assistant-ready #mymex-jarvis-panel [data-mx-assistant-composer]{border-radius:14px!important}
html[data-theme] body.mx-assistant-ready #assistant-dialog[open] #assistant-form #assistant-input{border:1px solid var(--jp-line,#9bb4c5)!important;border-radius:8px!important;box-shadow:none!important;outline:none!important;background:var(--jp-panel,#fff)!important;padding:10px 12px!important}
html[data-theme] body.mx-assistant-ready #assistant-dialog[open] #assistant-form #assistant-input:focus{border-color:var(--jp-accent,#087e98)!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--jp-accent,#087e98) 20%,transparent)!important}
html[data-theme] body.mx-assistant-ready #assistant-dialog[open] #assistant-form .assistant-tools{padding:0 0 6px!important}

/* Manual compact-screen writing-area toggle. */
.mx-composer-toggle{display:none!important}
@media(max-width:760px){
html body.mx-assistant-ready :is(#mymex-public-jarvis,#mymex-jarvis-panel,#assistant-dialog,#mymex-company-jarvis) :is(#mymex-public-jarvis-composer-toggle,#mymex-jarvis-panel-composer-toggle,#assistant-dialog-composer-toggle,#mymex-company-jarvis-composer-toggle){display:block!important;position:absolute!important;right:16px!important;bottom:6px!important;top:auto!important;left:auto!important;width:auto!important;max-width:none!important;min-width:0!important;height:28px!important;max-height:28px!important;min-height:28px!important;padding:3px 8px!important;border:1px solid var(--jp-line,#9bb4c5)!important;border-radius:6px!important;background:var(--jp-panel,#fff)!important;color:var(--jp-ink,#16384b)!important;font:500 12px/20px system-ui!important;z-index:4}
html body.mx-assistant-ready [data-mx-assistant-panel]>header,html body.mx-assistant-ready #assistant-dialog>.assistant-heading{position:relative!important}
html body.mx-assistant-ready :is(#mymex-public-jarvis,#mymex-jarvis-panel,#assistant-dialog,#mymex-company-jarvis)[data-mx-composer-collapsed=true] :is(#assistant-form,[data-mx-assistant-composer]){display:none!important}
}

/* Native card tools retain a two-column label layout unless explicitly reset. */
html[data-theme] body.mx-assistant-ready #assistant-dialog[open] #assistant-form [data-mx-compose-row] :is([data-mx-compose-voice],[data-mx-compose-attach],[data-mx-compose-send]){display:grid!important;place-items:center!important;grid-template-columns:1fr!important;grid-template-rows:1fr!important;gap:0!important;padding:0!important;width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;box-sizing:border-box!important}
html[data-theme] body.mx-assistant-ready #assistant-dialog[open] #assistant-form [data-mx-compose-row] :is([data-mx-compose-voice],[data-mx-compose-attach])>span{display:grid!important;place-items:center!important;width:24px!important;height:24px!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
html[data-theme] body.mx-assistant-ready #assistant-dialog[open] #assistant-form [data-mx-compose-row] :is([data-mx-compose-voice],[data-mx-compose-attach],[data-mx-compose-send]) svg{display:block!important;width:22px!important;height:22px!important;margin:0!important}
html[data-theme] body.mx-assistant-ready #assistant-dialog[open] #assistant-form [data-mx-compose-row] :is([data-mx-compose-voice],[data-mx-compose-attach])>strong{display:none!important}

@media(max-width:760px){html body.mx-assistant-ready #mymex-public-jarvis:has(#mymex-public-jarvis-composer-toggle)>header{min-height:98px!important;height:auto!important;padding-bottom:38px!important;box-sizing:border-box!important}}
