/* Shared Master/tenant page headers. Existing content, actions and artwork stay in place. */

body .mx-admin-heading{position:relative;isolation:isolate;border:1px solid #c6d9e9!important;border-radius:16px!important;background:linear-gradient(112deg,#f0ebfc,#f4f8ff 45%,#e5f7f2)!important;color:#173449!important;padding:22px 24px!important;box-shadow:0 8px 25px #29476d0b!important;min-width:0}

body .mx-admin-heading::after{content:'';position:absolute;z-index:-1;inset:0;border-radius:inherit;background:radial-gradient(ellipse at 80% 30%,#8cd9d52c,transparent 55%);pointer-events:none;animation:mx-admin-glow 8s ease-in-out infinite alternate}

html body .mx-admin-heading[data-heading-styled="1"]:not(.mx-gallery-toolbar) h1{font-size:clamp(19px,1.6vw,22px)!important;font-weight:600!important;letter-spacing:-.03em!important;line-height:1.25!important;color:#173449!important;margin:4px 0 8px!important}

body .mx-admin-heading h1 :is(span,em,strong){font-size:inherit!important;font-weight:inherit!important;color:inherit!important}

body .mx-admin-heading p{font-size:13px!important;font-weight:400!important;line-height:1.65!important;color:var(--mx-heading-muted,#36566b)!important;max-width:760px}

body .mx-admin-heading :is(.tenant-eyebrow,.ford-section-kicker){font-size:10px!important;font-weight:400!important;letter-spacing:.08em!important;color:#34647c!important}

body .mx-admin-heading-art{float:left;display:block;width:76px;height:76px;margin:0 17px 8px 0;animation:mx-admin-float 5s ease-in-out infinite;pointer-events:none}

body .mx-admin-heading-art svg{width:100%;height:100%;filter:drop-shadow(0 5px 6px #22476614)}

body .mx-admin-heading :is(.tenant-button,.platform-media-button){position:relative;min-height:38px;font-size:12px!important;font-weight:400!important;border-radius:9px!important;transition:transform .2s ease,box-shadow .2s ease!important}

body .mx-admin-heading :is(.tenant-button,.platform-media-button):hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 16px #29476d20!important}

body .mx-admin-heading :is(button,a):focus-visible{outline:2px solid #087d88;outline-offset:4px}

html[data-mymex-theme=dark] body .mx-admin-heading{background:linear-gradient(112deg,#29283f,#102d41 52%,#123a35)!important;border-color:#465675!important}

html[data-mymex-theme=dark] body .mx-admin-heading :is(h1,p,.tenant-eyebrow,.ford-section-kicker){color:#e6f1fb!important}

html[data-mymex-theme=dark] body .mx-admin-heading[data-heading-styled="1"]:not(.mx-gallery-toolbar) h1{color:#e6f1fb!important}

@keyframes mx-admin-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}

@keyframes mx-admin-glow{from{opacity:.35}to{opacity:1}}

@media(max-width:760px){body .mx-admin-heading{padding:16px!important;border-radius:13px!important;gap:12px!important}body .mx-admin-heading-art{width:54px;height:54px;margin-right:12px}html body .mx-admin-heading[data-heading-styled="1"]:not(.mx-gallery-toolbar) h1{font-size:18px!important;overflow-wrap:break-word}body .mx-admin-heading :is(.tenant-actions,.tenant-heading-actions){flex-wrap:wrap!important;gap:8px!important}}

@media(prefers-reduced-motion:reduce){body .mx-admin-heading::after,body .mx-admin-heading-art{animation:none!important;transform:none!important}body .mx-admin-heading :is(button,a){transition:none!important;transform:none!important}}

html body h1.mx-admin-heading-title{font-size:clamp(19px,1.6vw,22px)!important;font-weight:600!important;letter-spacing:-.03em!important;line-height:1.25!important}



body .mx-admin-heading.mymex-platform-notification-heading{display:grid!important;grid-template-columns:minmax(0,1fr) 40px!important;align-items:start!important;gap:12px!important}

body .mx-admin-heading.mymex-platform-notification-heading>div{min-width:0!important}

body .mx-admin-heading.mymex-platform-notification-heading>.mymex-notification-heading-action{position:static!important;inset:auto!important;transform:none!important;margin:0!important;align-self:start!important;width:40px!important;height:40px!important}

@media(max-width:760px){html body .mx-admin-heading[data-heading-styled="1"]:not(.mx-gallery-toolbar) h1,html body h1.mx-admin-heading-title{font-size:18px!important;font-weight:600!important;line-height:1.35!important}body .mx-admin-heading-art{width:44px;height:44px;margin-right:10px}body .mx-admin-heading.mymex-platform-notification-heading{grid-template-columns:minmax(0,1fr) 36px!important;gap:8px!important}body .mx-admin-heading.mymex-platform-notification-heading>.mymex-notification-heading-action{width:36px!important;height:36px!important}}



html body[data-gallery-compact] .mx-gallery-toolbar[class] h1{font-size:22px!important;font-weight:600!important;line-height:1.3!important}

@media(max-width:760px){html body[data-gallery-compact] .mx-gallery-toolbar[class] h1{font-size:18px!important}}

/* Empty, hidden notices must not become visible through legacy flex rules. */

body .tenant-notice[hidden]{display:none!important}



/* Nested header illustrations use the same surface palette as their heading.

   Interactive controls keep their own foreground/background pairs. */

body .mx-admin-heading{--mx-heading-ink:#102d42;--mx-heading-muted:#264c63;--mx-heading-accent:#075b70}

html[data-mymex-theme=dark] body .mx-admin-heading{--mx-heading-ink:#e6f1fb;--mx-heading-muted:#c5d9e8;--mx-heading-accent:#83e5db}

html body .mx-admin-heading[data-heading-styled="1"] :where(div,section,article,figure,figcaption,h1,h2,h3,h4,p,span,small,strong,b,em,label,dt,dd,li):not(:where(a,button,[role=button]) *){color:var(--mx-heading-ink)!important}

html body .mx-admin-heading[data-heading-styled="1"] :where(p,small,dt,figcaption):not(:where(a,button,[role=button]) *){color:var(--mx-heading-muted)!important}

html body .mx-admin-heading[data-heading-styled="1"] :where(.mx-visual-card>span,.mx-visual-card>i,.mx-campaign-safety>span){color:var(--mx-heading-accent)!important}



/* A shared, theme-aware data-flow background. No timers or canvas work. */

body .mx-admin-heading{--mx-heading-network:#388da1;--mx-heading-network-opacity:.78;--mx-heading-panel:#fff;--mx-heading-panel-line:#94b8cb;background:linear-gradient(110deg,#e9e3f8 0%,#eaf4fd 44%,#cceee5 100%)!important;border-color:#9ab9ce!important;box-shadow:0 10px 30px #24465d0a,inset 0 1px 0 #fff!important;}

body .mx-admin-heading::after{background:radial-gradient(ellipse at 90% 20%,#69d9ce35,transparent 55%),radial-gradient(ellipse at 50% 120%,#b39ae926,transparent 60%);animation:mx-admin-glow 9s ease-in-out infinite alternate}

body .mx-admin-heading-network{position:absolute;inset:0;z-index:-1;overflow:hidden;border-radius:inherit;pointer-events:none;opacity:var(--mx-heading-network-opacity,.78);color:var(--mx-heading-network)!important;mask-image:linear-gradient(90deg,transparent 22%,#000 62%)}

body .mx-admin-heading-network svg{width:100%;height:100%;display:block;color:inherit;stroke:currentColor;stroke-width:1;vector-effect:non-scaling-stroke}

body .mx-admin-heading-network svg :is(path,circle){vector-effect:non-scaling-stroke}

body .mx-admin-heading-network .mx-heading-rails{opacity:.4}

body .mx-admin-heading-network .mx-heading-flow{opacity:.75;stroke-width:1.8;stroke-dasharray:18 150;animation:mx-heading-data-flow 16s linear infinite}

body .mx-admin-heading-network .mx-heading-flow path:nth-child(2){stroke-dasharray:8 220;animation:mx-heading-data-flow 21s linear infinite reverse}

body .mx-admin-heading-network .mx-heading-nodes{fill:var(--mx-heading-panel);stroke-width:1.4}

body .mx-admin-heading-network .mx-heading-nodes circle{animation:mx-heading-node 5s ease-in-out infinite;transform-box:fill-box;transform-origin:center}

body .mx-admin-heading-network .mx-heading-nodes circle:nth-child(3n){animation-delay:-1.7s}

body .mx-admin-heading-network .mx-heading-nodes circle:nth-child(3n + 1){animation-delay:-3.2s}

body .mx-admin-heading :is(.mx-visual-card,.mx-campaign-safety){background:var(--mx-heading-panel);border-color:var(--mx-heading-panel-line);box-shadow:0 5px 16px #24465d05}

body .mx-admin-heading .mx-visual-card>span{background:#d9f4ee}

body .mx-admin-heading .mx-visual-card strong{font-size:12px;font-weight:600}

body .mx-admin-heading .mx-visual-card small{font-size:12px;letter-spacing:.08em}

body .mx-admin-heading .mx-campaign-safety strong{font-size:12px;font-weight:600}

body .mx-admin-heading .mx-campaign-safety small{font-size:12px;line-height:1.55}

body .mx-admin-heading .mx-visual-line{border-color:var(--mx-heading-panel-line)}

body .mx-admin-heading :is(.mxpartner-hero-summary,.pw-hero>aside){background:var(--mx-heading-panel);border:1px solid var(--mx-heading-panel-line);border-radius:14px;padding:18px}

body .mx-admin-heading .pw-status{background:#dbf6e7;color:#18583f!important;border:1px solid #9bcdb0}

html[data-mymex-theme=dark] body .mx-admin-heading{--mx-heading-network:#58d5d2;--mx-heading-network-opacity:.65;--mx-heading-panel:#132e41ed;--mx-heading-panel-line:#3b5b70;background:linear-gradient(110deg,#24273f 0%,#102a3c 48%,#103b36 100%)!important;box-shadow:0 12px 32px #0002,inset 0 1px 0 #ffffff09!important}

html[data-mymex-theme=dark] body .mx-admin-heading .mx-visual-card>span{background:#224d53}

html[data-mymex-theme=dark] body .mx-admin-heading .pw-status{background:#244c3e;color:#b4f1cd!important;border-color:#54866c}

html[data-mymex-theme=dark] body .mx-admin-heading-network .mx-heading-rails{opacity:.25}

@keyframes mx-heading-data-flow{to{stroke-dashoffset:-768}}

@keyframes mx-heading-node{0%,100%{opacity:.35;transform:scale(.9)}50%{opacity:.8;transform:scale(1.12)}}

@media(max-width:760px){body .mx-admin-heading-network{mask-image:linear-gradient(90deg,transparent 18%,#000 68%);opacity:var(--mx-heading-network-opacity,.78)}}

@media(prefers-reduced-motion:reduce){body .mx-admin-heading-network *,body .mx-admin-heading::after{animation:none!important;transform:none!important}body .mx-admin-heading-network .mx-heading-nodes circle{opacity:.5}}



/* Keep the progress value readable on its neutral inset surface. */

html body .mx-admin-heading[data-heading-styled="1"] .tenant-setup-progress-donut strong{color:var(--mx-heading-ink)!important}

html body .mx-admin-heading[data-heading-styled="1"] .tenant-setup-progress-donut::before{background:#fff!important}

html[data-mymex-theme=dark] body .mx-admin-heading[data-heading-styled="1"] .tenant-setup-progress-donut::before{background:#0b2038!important}

html body .mx-admin-heading[data-heading-styled="1"] .tenant-setup-progress-donut strong{position:relative;z-index:1}

html body .tenant-launch.mx-admin-heading small{font-size:12px!important;line-height:1.5}



html body :is(section,header,div).mx-admin-heading[data-heading-styled="1"] .tenant-eyebrow{color:var(--mx-heading-accent)!important}

html body[data-gallery-compact] .mx-gallery-toolbar.mx-admin-heading[data-heading-styled="1"] p{color:var(--mx-heading-muted)!important}



/* Gallery toolbar SVG rules must not shrink the decorative header artwork. */

html body .mx-admin-heading[data-heading-styled="1"]>.mx-admin-heading-network{color:var(--mx-heading-network)!important}

html body .mx-admin-heading[data-heading-styled="1"]>.mx-admin-heading-network>svg{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important}

html body .mx-gallery-toolbar.mx-admin-heading>.mx-admin-heading-art{flex:0 0 64px;width:64px!important;height:64px!important;margin:0 16px 0 0;animation:mx-admin-float 5s ease-in-out infinite}

html body .mx-admin-heading[data-heading-styled="1"] .mx-admin-heading-art>svg{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important}



@media(max-width:760px){html body .mx-gallery-toolbar.mx-admin-heading>.mx-admin-heading-art{flex-basis:44px;width:44px!important;height:44px!important;margin-right:10px}}

@media(prefers-reduced-motion:reduce){html body .mx-gallery-toolbar.mx-admin-heading>.mx-admin-heading-art{animation:none!important}}



/* Both gallery entry headers share the global header, rather than the old compact tile. */

html body[data-gallery-compact] .mx-gallery-toolbar.mx-admin-heading[data-heading-styled="1"]{grid-template-columns:64px minmax(0,1fr) auto!important;gap:18px!important;padding:22px 24px!important;background:linear-gradient(110deg,#e9e3f8 0%,#eaf4fd 44%,#cceee5 100%)!important;border-color:#9ab9ce!important;min-height:112px}

html[data-mymex-theme=dark] body[data-gallery-compact] .mx-gallery-toolbar.mx-admin-heading[data-heading-styled="1"]{background:linear-gradient(110deg,#24273f 0%,#102a3c 48%,#103b36 100%)!important;border-color:#465675!important}

html body[data-gallery-compact] .mx-gallery-toolbar.mx-admin-heading>.mx-admin-heading-art{margin:0}

@media(max-width:760px){html body[data-gallery-compact] .mx-gallery-toolbar.mx-admin-heading[data-heading-styled="1"]{grid-template-columns:44px minmax(0,1fr)!important;gap:12px!important;padding:16px!important;min-height:0}}



/* One mobile control treatment across the existing admin and Partner shells. */

@media(max-width:760px){

 html{--mx-topbar-surface:#fff;--mx-topbar-line:#cbdce8;--mx-topbar-ink:#23475e}

 html[data-mymex-theme=dark]{--mx-topbar-surface:#102638;--mx-topbar-line:#36546a;--mx-topbar-ink:#e1edf7}

 html body :is(.tenant-topbar,.pw-topbar,.mxpartner-top){min-height:64px;gap:8px;padding:10px 12px;border-bottom:1px solid var(--mx-topbar-line)}

 html body .tenant-topbar{display:grid!important;grid-template-columns:40px minmax(0,1fr) auto!important}

 html body .tenant-topbar>div:not(.tenant-topbar-actions){min-width:0}

 html body .tenant-topbar>div:not(.tenant-topbar-actions)>strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:1.35}

 html body :is(.tenant-topbar-actions,.pw-tools,.mxpartner-top-actions){gap:6px!important;align-items:center}

 html body .tenant-topbar :is(.tenant-menu-button,.mymex-platform-notification-trigger,.mymex-command-trigger,.tenant-theme-toggle,.tenant-topbar-profile),

 html body .pw-topbar .pw-icon,

 html body .mxpartner-top .mxpartner-theme-toggle{box-sizing:border-box!important;display:inline-grid!important;place-items:center;flex:0 0 40px!important;width:40px!important;height:40px!important;min-height:40px!important;padding:0!important;border:1px solid var(--mx-topbar-line)!important;border-radius:10px!important;background:var(--mx-topbar-surface)!important;color:var(--mx-topbar-ink)!important;box-shadow:none!important}

 html body :is(.tenant-topbar,.pw-topbar,.mxpartner-top) :is(button,a,summary,label):focus-visible{outline:2px solid #07839b;outline-offset:2px}

 html body .tenant-topbar :is(.mymex-platform-notification-trigger,.mymex-command-trigger) svg,

 html body .pw-topbar .pw-icon>svg{width:18px!important;height:18px!important;stroke-width:1.4!important}

 html body .tenant-topbar .tenant-topbar-profile .tenant-avatar{width:28px!important;height:28px!important;min-width:28px!important;border-radius:50%!important;font-size:12px}

 html body .tenant-topbar .mymex-command-trigger{position:relative;overflow:visible}

 html body .tenant-topbar .mymex-command-trigger>input{position:absolute;inset:0;width:100%!important;height:100%!important;opacity:0;cursor:pointer;padding:0!important}

 html body .mxpartner-top .mxpartner-theme-toggle :is(.mxpartner-theme-copy,.is-sun){display:none!important}

}



@media(max-width:760px){

 html[data-mymex-theme] body header.tenant-topbar .tenant-theme-toggle{border-radius:10px!important;background:var(--mx-topbar-surface)!important;color:var(--mx-topbar-ink)!important;border-color:var(--mx-topbar-line)!important;box-shadow:none!important}

 html body header.tenant-topbar .tenant-menu-button{min-width:40px!important;max-width:40px!important}

}



@media(max-width:760px){html body :is(.tenant-topbar,.pw-topbar,.mxpartner-top){--mymex-theme-control-radius:10px;--mymex-theme-control-line:var(--mx-topbar-line);--mymex-theme-control-surface:var(--mx-topbar-surface);--mymex-theme-control-ink:var(--mx-topbar-ink)}}



/* Optional field hints remain readable on upload dialog surfaces. */

html body .platform-media-modal :is(label em,.platform-media-field em){color:#4d6478!important}

html[data-mymex-theme=dark] body .platform-media-modal :is(label em,.platform-media-field em){color:#bfd1e1!important}



@media(max-width:760px){

 html body .mxpartner-top .mxpartner-top-actions{display:flex!important;flex:0 0 auto}

 html body .mxpartner-top .mxpartner-preview-exit{min-height:40px;max-width:106px;padding:6px 8px;font-size:11px;line-height:1.3;white-space:normal;border:1px solid var(--mx-topbar-line);border-radius:10px;background:var(--mx-topbar-surface);color:var(--mx-topbar-ink)}

 html body .mxpartner-top .mxpartner-brand{min-width:0;flex:1}

}



/* Jarvis' legacy image overlay must not override the approved shared palette. */

html[data-mymex-theme] body section.mymex-jarvis-control-hero-v2.mx-admin-heading[data-heading-styled="1"]{background:linear-gradient(110deg,#e9e3f8 0%,#eaf4fd 44%,#cceee5 100%)!important;color:#102d42!important}

html[data-mymex-theme=dark] body section.mymex-jarvis-control-hero-v2.mx-admin-heading[data-heading-styled="1"]{background:linear-gradient(110deg,#24273f 0%,#102a3c 48%,#103b36 100%)!important;color:#e6f1fb!important}



html[data-mymex-theme=light] body .mx-admin-heading .card-scan-description{color:#4d6478!important}



/* A dismissed capacity notice must respect the existing controller state. */

body .tenant-capacity-alert[hidden]{display:none!important}



/* Shared full-screen modal header; never creates another modal or action handler. */

html body .mx-fullscreen-intelligence-header.mx-admin-heading{border-radius:0!important;margin:0!important;border-width:0 0 1px!important;flex-shrink:0;overflow:hidden}

html body .mx-fullscreen-intelligence-header.mx-admin-heading>div{position:relative;z-index:1;min-width:0}

html body .mx-fullscreen-intelligence-header.mx-admin-heading h2{font-size:18px!important;font-weight:600!important;line-height:1.3!important;color:var(--mx-heading-ink)!important}

html body .mx-fullscreen-intelligence-header.mx-admin-heading>.mx-admin-heading-network{mask-image:linear-gradient(90deg,transparent 22%,#000 62%)}

html body .mx-fullscreen-intelligence-header.mx-admin-heading .mx-admin-heading-network>svg{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important}

@media(max-width:760px){html body .mx-fullscreen-intelligence-header.mx-admin-heading{padding:16px!important}html body .mx-fullscreen-intelligence-header.mx-admin-heading>.mx-admin-heading-network{mask-image:linear-gradient(90deg,transparent 18%,#000 68%);opacity:var(--mx-heading-network-opacity,.78)}}



/* One header Jarvis button; each existing controller retains its action. */

html[data-mymex-theme] body .mx-admin-heading[data-heading-styled="1"] button.mx-header-jarvis{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;box-sizing:border-box!important;height:40px!important;min-height:40px!important;max-height:40px!important;padding:8px 12px!important;border:1px solid #cbdce8!important;border-radius:10px!important;background:#fff!important;color:#173449!important;font-size:12px!important;font-weight:500!important;line-height:1.3!important;white-space:nowrap!important;box-shadow:none!important}

html[data-mymex-theme] body .mx-admin-heading[data-heading-styled="1"] button.mx-header-jarvis :is(span,svg){color:inherit!important}

html[data-mymex-theme] body .mx-admin-heading[data-heading-styled="1"] button.mx-header-jarvis>svg{width:17px!important;height:17px!important;flex:0 0 17px;stroke-width:1.4!important;stroke-linecap:round;stroke-linejoin:round}

html[data-mymex-theme] body .mx-admin-heading[data-heading-styled="1"] button.mx-header-jarvis:hover{background:#edf6fa!important;border-color:#8eb4c7!important}



html body .mx-fullscreen-intelligence-header.mx-admin-heading .mx-gallery-mark{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;background:#fff!important;color:#296c88!important;border:1px solid #c4dbe9;border-radius:11px;animation:mx-admin-float 5s ease-in-out infinite}

html body .mx-fullscreen-intelligence-header.mx-admin-heading .mx-gallery-mark>svg{width:22px!important;height:22px!important;stroke-width:1.4!important;color:inherit!important}

@media(prefers-reduced-motion:reduce){html body .mx-fullscreen-intelligence-header.mx-admin-heading .mx-gallery-mark{animation:none!important}}



html body .mx-admin-heading .master-scan-action small{color:#fff!important;opacity:1!important}

html body .master-scan-action .card-scan-icon{width:28px;height:34px;--scan-card-fill:#12334e}

html body .master-scan-action .scan-beam{animation:mx-header-scan 4s ease-in-out infinite}

@keyframes mx-header-scan{0%,100%{transform:translateY(0);opacity:.45}50%{transform:translateY(22px);opacity:1}}

@media(prefers-reduced-motion:reduce){html body .master-scan-action .scan-beam{animation:none!important}}



html body .mx-fullscreen-intelligence-header .mymex-notification-centre-mark{background:#fff!important;color:#296c88!important;border:1px solid #c4dbe9}

html body .mx-fullscreen-intelligence-header .tenant-avatar{color:#102d42!important}



/* Expanded Notification Centre uses the complete viewport; the existing toggle restores size. */

html body dialog.mymex-notification-centre.is-expanded{position:fixed!important;inset:0!important;margin:0!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:100dvh!important;border:0!important;border-radius:0!important}

html body .mymex-notification-centre{--mx-nc-chip:#edf3f8;--mx-nc-chip-ink:#304c61;--mx-nc-urgent:#a82a27;--mx-nc-warning:#8b470c;--mx-nc-open:#075b70;--mx-nc-resolved:#086148}

html[data-mymex-theme=dark] body .mymex-notification-centre{--mx-nc-chip:#18374b;--mx-nc-chip-ink:#d2e4ef;--mx-nc-urgent:#ffb0aa;--mx-nc-warning:#f6ce86;--mx-nc-open:#89d9ef;--mx-nc-resolved:#a0e4c8}

html body .mymex-notification-centre-summary [data-nc-count=urgent]{color:var(--mx-nc-urgent)!important}

html body .mymex-notification-centre-summary [data-nc-count=warning]{color:var(--mx-nc-warning)!important}

html body .mymex-notification-centre-summary [data-nc-count=open]{color:var(--mx-nc-open)!important}

html body .mymex-notification-centre-summary [data-nc-count=resolved]{color:var(--mx-nc-resolved)!important}

html body .mymex-notification-centre-categories button.is-active{background:#075b70!important;color:#fff!important}

html body .mymex-notification-centre-categories button>b,

html body .mymex-notification-centre-item-meta>span{background:var(--mx-nc-chip)!important;color:var(--mx-nc-chip-ink)!important;font-size:11px!important}



/* Notification Centre: controls on the left, messages on the right. */

html body dialog.mymex-notification-centre .mymex-notification-centre-header.mx-admin-heading{min-height:64px!important;padding:12px 16px!important;gap:10px!important;grid-template-columns:36px minmax(0,1fr) auto!important}

html body dialog.mymex-notification-centre .mymex-notification-centre-mark{width:36px;height:36px;border-radius:10px}

html body dialog.mymex-notification-centre .mymex-notification-centre-header h2{margin:2px 0!important;font-size:18px!important;line-height:1.25!important}

html body dialog.mymex-notification-centre .mymex-notification-centre-header-actions button{width:36px;height:36px;border-radius:10px}

html body dialog.mymex-notification-centre .mymex-notification-centre-body{display:grid!important;grid-template-columns:248px minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;gap:0;min-height:0;overflow:hidden}

html body .mymex-notification-centre .mx-nc-sidebar{min-width:0;min-height:0;overflow:auto;border-right:1px solid #cbdce8;background:#f4f8fb;padding:12px}

html[data-mymex-theme=dark] body .mymex-notification-centre .mx-nc-sidebar{border-color:#36546a;background:#0c2237}

html body .mymex-notification-centre .mx-nc-sidebar-controls{display:flex;flex-direction:column;gap:12px;min-width:0}

html body .mymex-notification-centre .mx-nc-content{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden}

html body .mymex-notification-centre .mx-nc-content>.mymex-notification-centre-list{flex:1 1 0!important;min-height:0!important;overflow:auto!important;padding:14px!important}

html body .mymex-notification-centre .mx-nc-sidebar .mymex-notification-centre-summary{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px;padding:0!important;background:transparent!important}

html body .mymex-notification-centre .mx-nc-sidebar .mymex-notification-centre-summary button{padding:9px 8px!important;min-height:40px;border-radius:9px}

html body .mymex-notification-centre .mx-nc-sidebar .mymex-notification-centre-summary small{font-size:10px;letter-spacing:0}

html body .mymex-notification-centre .mx-nc-sidebar .mymex-notification-centre-summary strong{font-size:17px}

html body .mymex-notification-centre .mx-nc-sidebar .mymex-notification-centre-categories{display:flex;flex-wrap:wrap;gap:6px;padding:0!important;margin:0!important;background:transparent!important}

html body .mymex-notification-centre .mx-nc-sidebar .mymex-notification-centre-tools{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px;padding:0!important;background:transparent!important;border:0}

html body .mymex-notification-centre .mx-nc-sidebar .mymex-notification-centre-tools :is(input,select){font-size:12px;height:38px}

html body .mymex-notification-centre .mx-nc-sidebar .mymex-notification-centre-bulk{display:flex;flex-wrap:wrap;gap:6px}

html body .mymex-notification-centre .mx-nc-help{border-top:1px solid #9bb7c933;padding-top:10px;font-size:12px}

html body .mymex-notification-centre .mx-nc-help>summary{cursor:pointer;font-size:12px;font-weight:600;min-height:32px;line-height:32px}

html body .mymex-notification-centre .mx-nc-help .mymex-notification-centre-guide{display:grid;grid-template-columns:1fr!important;padding:8px 0!important;background:transparent!important}

html body .mymex-notification-centre .mx-nc-help .mymex-notification-centre-device{margin:8px 0!important}

html body .mymex-notification-centre .mx-nc-help>[data-notification-centre-scope]{font-size:12px;line-height:1.5}

html body .mymex-notification-centre .mx-nc-filter-done{display:none}

@media(max-width:760px){

 html body .mymex-notification-centre .mx-nc-filter-done{display:block;min-height:40px;background:#075b70;color:#fff;border:0;border-radius:9px;font-size:12px;font-weight:600;flex-shrink:0}

 html[data-mymex-theme=dark] body .mymex-notification-centre .mx-nc-sidebar[open]>.mx-nc-sidebar-controls{background:#0c2237;border-color:#36546a}

 html body dialog.mymex-notification-centre .mymex-notification-centre-body{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto minmax(0,1fr)!important}

 html body .mymex-notification-centre .mx-nc-sidebar{border-right:0;border-bottom:1px solid #cbdce8;padding:8px 12px;overflow:visible;position:relative;z-index:3}

 html body .mymex-notification-centre .mx-nc-sidebar>summary{cursor:pointer;min-height:36px;font-size:12px;font-weight:600;line-height:36px}

 html body .mymex-notification-centre .mx-nc-sidebar[open]>.mx-nc-sidebar-controls{position:absolute;top:calc(100% - 1px);left:12px;right:12px;max-height:calc(100dvh - 140px);overflow:auto;padding:12px;background:#f4f8fb;border:1px solid #b7cedd;border-radius:0 0 12px 12px;box-shadow:0 14px 30px #061a2e40}

 html body .mymex-notification-centre .mx-nc-sidebar .mymex-notification-centre-summary{grid-template-columns:repeat(3,minmax(0,1fr))!important}

 html body .mymex-notification-centre .mx-nc-sidebar .mymex-notification-centre-tools{grid-template-columns:repeat(2,minmax(0,1fr))!important}

 html body .mymex-notification-centre .mx-nc-sidebar .mymex-notification-centre-tools>label,

 html body .mymex-notification-centre .mx-nc-sidebar .mymex-notification-centre-tools>.mymex-notification-centre-bulk{grid-column:1/-1}

 html body .mymex-notification-centre .mx-nc-content>.mymex-notification-centre-list{padding:10px!important}

}



html body .mymex-notification-centre .mymex-notification-centre-loading>span{color:var(--mx-nc-chip-ink)!important;font-size:12px}

html body .mymex-account-profile-summary small{color:#405d73!important}

html[data-mymex-theme=light] body .mymex-account-gallery-preview small{color:#405d73!important}

html[data-mymex-theme=dark] body .mymex-account-gallery-preview small{color:#c5d9e8!important}

html body .mx-nc-sidebar>summary:focus-visible{outline:2px solid #07839b;outline-offset:2px;border-radius:6px}



/* Profile's Master gallery adds a manage link before Close: reserve a real action column. */

html body header.tenant-media-modal-header.mx-fullscreen-intelligence-header{grid-template-columns:40px minmax(0,1fr) 44px!important;align-items:center!important;gap:12px!important}

html body header.tenant-media-modal-header.mx-fullscreen-intelligence-header:has(>a.tenant-button){grid-template-columns:40px minmax(0,1fr) auto 36px!important}

html body header.tenant-media-modal-header.mx-fullscreen-intelligence-header>.mx-gallery-mark{grid-column:1;grid-row:1}

html body header.tenant-media-modal-header.mx-fullscreen-intelligence-header>div{grid-column:2;grid-row:1}

html body header.tenant-media-modal-header.mx-fullscreen-intelligence-header>a.tenant-button{grid-column:3;grid-row:1;min-width:0!important;width:auto!important;max-width:none!important;min-height:40px!important;height:40px!important;padding:8px 12px!important;white-space:nowrap!important;font-size:12px!important}

html body header.tenant-media-modal-header.mx-fullscreen-intelligence-header>.tenant-modal-close{position:static!important;grid-column:-2/-1;grid-row:1;margin:0!important;inset:auto!important;align-self:center;width:36px!important;height:36px!important;border-radius:10px!important}

@media(max-width:600px){

 html body header.tenant-media-modal-header.mx-fullscreen-intelligence-header,

 html body header.tenant-media-modal-header.mx-fullscreen-intelligence-header:has(>a.tenant-button){grid-template-columns:40px minmax(0,1fr) 44px!important}

 html body header.tenant-media-modal-header.mx-fullscreen-intelligence-header>a.tenant-button{grid-column:2;grid-row:2;justify-self:start;max-width:100%!important}

}



html[data-mymex-theme=light] body .mymex-notification-centre-item small{color:#405d73!important;font-size:11px!important}

html[data-mymex-theme=dark] body .mymex-notification-centre-item small{color:#b3c8d4!important;font-size:11px!important}



html body .mx-fullscreen-intelligence-header .mx-header-close{display:grid!important;place-items:center;box-sizing:border-box!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;padding:0!important;border:1px solid var(--mx-heading-panel-line,#c4dbe9)!important;border-radius:10px!important;background:var(--mx-heading-panel,#fff)!important;color:var(--mx-heading-ink,#173449)!important;box-shadow:none!important}

html body .mx-fullscreen-intelligence-header .mx-header-close>svg{width:18px!important;height:18px!important;stroke-width:2!important;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}

/* Header actions stay above decorative siblings and use opaque theme surfaces. */

html body .mx-fullscreen-intelligence-header .mx-header-close{position:relative;z-index:3!important;opacity:1!important;background:#fff!important;color:#173449!important;isolation:isolate}

html[data-mymex-theme=dark] body .mx-fullscreen-intelligence-header .mx-header-close{background:#132e41!important;color:#e6f1fb!important}

html body #mymex-public-jarvis>header.mx-fullscreen-intelligence-header{position:relative!important;z-index:2!important;isolation:isolate}



html body .mymex-notification-centre-item-actions button.is-primary{background:#075b70!important;border-color:#075b70!important;color:#fff!important}

html body .mymex-notification-centre-item-actions button.is-primary>span{color:inherit!important}

html body .mymex-notification-centre-item-actions :is(button,button>span){font-size:12px!important;font-weight:500!important}

html body .mymex-notification-centre-item-actions button{min-height:36px!important}



/* Pair inbox empty-state copy with the current theme in every workspace. */

html body .mymex-notification-centre-empty h3{color:#173449!important}

html body .mymex-notification-centre-empty p{color:#405d73!important;font-size:12px;line-height:1.5}

html[data-mymex-theme=dark] body .mymex-notification-centre-empty h3{color:#edf6ff!important}

html[data-mymex-theme=dark] body .mymex-notification-centre-empty p{color:#c5d9e8!important}



/* Read status must not fade text, timestamps or actions. */

html body .mymex-notification-centre-item.is-read{opacity:1!important}

html body .mymex-notification-centre-item-copy>p{color:#405d73!important;font-size:12px;line-height:1.5}

html[data-mymex-theme=dark] body .mymex-notification-centre-item-copy>p{color:#c5d9e8!important}

html body .mymex-notification-centre-item-actions .is-danger{color:#9b2822!important}

html[data-mymex-theme=dark] body .mymex-notification-centre-item-actions .is-danger{color:#ffbbb6!important}



html body .tenant-launch-app-icon{position:relative;display:grid;place-items:center;overflow:hidden;background:#eff9fc;color:#075b70}

html[data-mymex-theme=dark] body .tenant-launch-app-icon{background:#123749;color:#99e7e5}

html body .tenant-launch-app-icon>svg{width:48px;height:48px;stroke-width:1.4}

html body .tenant-launch-app-icon>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;z-index:1}

html body .tenant-launch-app-icon>img[hidden]{display:none!important}



html body .tenant-brand-mark[data-business-icon]{position:relative;display:grid;place-items:center;overflow:hidden;color:#fff}

html body .tenant-brand-mark[data-business-icon]>svg{width:26px;height:26px;stroke-width:1.4}

html body .tenant-brand-mark[data-business-icon]>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;z-index:1}

html body .tenant-brand-mark[data-business-icon]>img[hidden]{display:none!important}



/* Keep business artwork fine-lined when the preview enlarges the 24px SVG. */

html body .tenant-launch-app-icon>svg{color:#28687d!important}

html[data-mymex-theme=dark] body .tenant-launch-app-icon>svg{color:#a9e3e8!important}

html body :is(.tenant-launch-app-icon,.tenant-brand-mark[data-business-icon])>svg path{vector-effect:non-scaling-stroke;stroke-width:1.25}



/* Email composing uses the same full-screen workspace frame as the other admin editors. */

html body dialog.tenant-campaign-editor[open]{inset:0!important;margin:0!important;width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;border:0!important;border-radius:0!important;padding:0!important}

html body dialog.tenant-campaign-editor>.tenant-lead-tool-shell{height:100%!important;max-height:none!important;border-radius:0!important;overflow:hidden!important}

html body dialog.tenant-campaign-editor .tenant-campaign-editor-heading h2{font-size:20px!important;font-weight:600!important;line-height:1.25!important}

html body dialog.tenant-campaign-editor .tenant-campaign-editor-body{min-height:0;overscroll-behavior:contain}

html body dialog.tenant-campaign-editor :is(button,a).tenant-button svg{width:17px;height:17px;stroke-width:1.4}

@media(max-width:600px){html body dialog.tenant-campaign-editor .tenant-campaign-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;overflow:visible}html body dialog.tenant-campaign-editor .tenant-campaign-steps>button{min-width:0;min-height:44px;white-space:normal;font-size:12px!important}html body dialog.tenant-campaign-editor .tenant-campaign-editor-heading{align-items:start!important}}



html body .tenant-campaign-editor .tenant-campaign-steps>button{background:var(--mx-heading-panel,#fff)!important;color:var(--mx-heading-ink,#173449)!important;border:1px solid var(--mx-heading-panel-line,#94b8cb)!important;font-size:13px!important;font-weight:500!important;opacity:1!important}

html body .tenant-campaign-editor .tenant-campaign-steps>button:is(.is-active,[aria-current=step]){background:#d9f6fa!important;color:#103d50!important;border-color:#309bb2!important}

html[data-mymex-theme=dark] body .tenant-campaign-editor .tenant-campaign-steps>button:is(.is-active,[aria-current=step]){background:#174b5c!important;color:#effbff!important;border-color:#55bbcc!important}

html body .tenant-campaign-editor .tenant-campaign-steps>button:disabled{color:var(--mx-heading-muted,#36566b)!important;opacity:.8!important}



/* Global public headings retain marketing scale; admin typography stays compact. */

.mx-global-ui-video{margin:24px 0;padding:20px;border:1px solid #94b8cb;border-radius:16px;background:#f4f8ff;color:#173449}

.mx-global-ui-video video{display:block;width:100%;height:auto;max-width:100%;border-radius:10px;margin-top:16px}

.mx-global-ui-video p{line-height:1.6;font-size:14px}

html[data-mymex-theme=dark] .mx-global-ui-video{background:#132e41;color:#e6f1fb;border-color:#3b5b70}

html body .mx-admin-heading .tenant-button-quiet{background:var(--mx-heading-panel,#fff)!important;color:#173449!important;border-color:var(--mx-heading-panel-line,#94b8cb)!important}

html[data-mymex-theme=dark] body .mx-admin-heading .tenant-button-quiet{color:#e6f1fb!important}

html body .mx-admin-heading .tenant-button:not(.tenant-button-primary){background:var(--mx-heading-panel,#fff)!important;color:#173449!important;border-color:var(--mx-heading-panel-line,#94b8cb)!important}

html[data-mymex-theme=dark] body .mx-admin-heading .tenant-button:not(.tenant-button-primary){color:#e6f1fb!important}

html body .mx-admin-heading .tenant-overview-pulse{background:var(--mx-heading-panel,#fff)!important;color:#173449!important;border:1px solid var(--mx-heading-panel-line,#94b8cb)}

html body .mx-admin-heading .tenant-overview-pulse :is(a,strong,small){color:inherit!important}

html[data-mymex-theme=dark] body .mx-admin-heading .tenant-overview-pulse{color:#e6f1fb!important}

/* Reuse established button geometry and theme tokens, without touching icon-only controls. */

html body :is(.mlp-cta,.mymex-site-cta,.mymex-site-button,.mymex-button,.tenant-form button[type=submit],dialog .tenant-button){box-sizing:border-box;min-height:44px;border-radius:10px;font-weight:400;line-height:1.35;white-space:normal;max-width:100%}

html body :is(.tenant-form,.mymex-contact-form,.mlp-contact-form,dialog form,.mx-global-public form) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]):not([type=color]):not([type=file]),select,textarea){box-sizing:border-box;max-width:100%;min-width:0;min-height:44px;border-radius:10px;font:inherit;font-size:16px;line-height:1.5}

html body :is(.tenant-form,.mymex-contact-form,.mlp-contact-form,dialog form,.mx-global-public form) :is(input,select,textarea):focus-visible,html body :is(.mlp-cta,.mymex-site-cta,dialog button):focus-visible{outline:2px solid var(--mx-heading-network,#087d88);outline-offset:3px}

html body :is(.mlp-cta,.mymex-site-cta,.tenant-form button[type=submit],dialog .tenant-button):disabled{cursor:not-allowed;filter:grayscale(1);box-shadow:none;transform:none}

html body dialog .mx-fullscreen-intelligence-header :is(h2,h3){color:var(--mx-heading-ink,#173449)!important;font-size:clamp(18px,2vw,22px)!important;font-weight:600!important;line-height:1.3!important}

html[data-mymex-theme=dark] body dialog .mx-fullscreen-intelligence-header :is(h2,h3){color:#e6f1fb!important}

html body dialog .mx-fullscreen-intelligence-header{min-width:0;gap:12px}

html body dialog .mx-fullscreen-intelligence-header>div{min-width:0;overflow-wrap:break-word}

@media(prefers-reduced-motion:reduce){html body .mx-admin-heading *,html body .mx-admin-heading::after{animation:none!important;transition:none!important;transform:none!important}}



html body #platform-story>.mx-global-ui-video{grid-column:1/-1;box-sizing:border-box;width:100%;max-width:100%}

html body #platform-story>.mx-global-ui-video figcaption{display:block;padding:0;border:0}

html body #platform-story>.mx-global-ui-video figcaption strong{display:block;font-size:18px;font-weight:600}

html body #platform-story>.mx-global-ui-video figcaption p{display:block;max-width:70ch;margin:8px 0;line-height:1.6}



/* Keep photography exposed. Intelligence is a transparent layer, never a content panel. */

html body .mx-public-intelligence-heading.mx-admin-heading{position:relative;isolation:isolate;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:hidden;--mx-heading-network:#68edff;--mx-heading-ink:#fff;--mx-heading-muted:#dfedf7}

html body .mxp-hero.mx-public-intelligence-heading{padding:0!important}

html body .mx-public-intelligence-heading::after{background:none!important;animation:none!important;pointer-events:none}

html body .mx-public-intelligence-heading>.mx-admin-heading-art{display:none!important}

html body .mx-public-intelligence-heading :is(.mlp-hero-content,.mxa-hero-copy),html body .mlp-subpage-hero.mx-public-intelligence-heading>div{background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;position:relative;z-index:3;color:#fff}

html body .mxp-hero.mx-public-intelligence-heading>.mlp-hero-content{box-sizing:border-box;padding:clamp(80px,12vh,130px) 5.5% 48px;max-width:660px;width:65%}

html body .mx-public-intelligence-heading:not(.mx-gallery-toolbar) h1{font-size:clamp(36px,4.1vw,58px)!important;font-weight:600!important;line-height:1.08!important;letter-spacing:-.035em!important;color:#fff!important;max-width:17ch;text-shadow:0 2px 22px #00152970}

html body .mx-public-intelligence-heading h1 :is(span,em){color:#79e5fa!important}

html body.mx-global-public .mx-public-intelligence-heading p{color:#e3edf6!important;font-size:15px!important;line-height:1.75!important;text-shadow:0 1px 8px #00152955}

html body .mx-public-intelligence-heading :is(.mlp-eyebrow,.mxp-eyebrow){color:#9cefff!important}

html body .mx-public-intelligence-heading .mlp-hero-content :is(a,button):not(.mlp-free-start){color:#fff!important}

html body .mx-public-intelligence-heading .mlp-hero-content .mlp-start-paid{background:#ffffff0e!important;border:1px solid #b2e5f47a!important}

html body .mxp-hero.mx-public-intelligence-heading>.mlp-hero-image{z-index:0!important}

html body .mxp-hero.mx-public-intelligence-heading>.mlp-hero-shade{z-index:1!important;background:linear-gradient(90deg,#03162bf0 0%,#08233ad9 42%,#08233a99 60%,#08233a22 78%,transparent 100%),linear-gradient(0deg,#04152666,transparent 50%)!important}

html body .mxp-hero>.mlp-hero-content>p{color:#e3edf6!important}

html body .mlp-subpage-hero.mx-public-intelligence-heading{padding:72px 5.5%!important}

html body .mlp-subpage-hero.mx-public-intelligence-heading>figure{z-index:0!important}

html body .mlp-subpage-hero.mx-public-intelligence-heading::after{z-index:1!important;background:linear-gradient(90deg,#03162be8,#08233ab8 38%,#08233a22 77%)!important}

html body .mx-public-intelligence-heading:not(:has(img)):not(.mx-gallery-toolbar) h1{color:#173449!important;text-shadow:none}

html body.mx-global-public .mx-public-intelligence-heading:not(:has(img)) p{color:#405d73!important;text-shadow:none}

html[data-mymex-theme=dark] body .mx-public-intelligence-heading:not(:has(img)):not(.mx-gallery-toolbar) h1{color:#e6f1fb!important}

html[data-mymex-theme=dark] body.mx-global-public .mx-public-intelligence-heading:not(:has(img)) p{color:#c5d9e8!important}



/* Hero typography must not depend on deferred decoration completing. */

html body .mxp-hero>.mlp-hero-content h1{font-size:clamp(36px,4.1vw,58px)!important;font-weight:600!important;line-height:1.08!important;letter-spacing:-.035em!important;max-width:17ch;color:#fff!important;text-shadow:0 2px 22px #00152970}

html body.mx-global-public .mya-public-course .mya-intro h1{font-size:clamp(34px,4.1vw,58px)!important;font-weight:600!important}

html body.mx-global-public .mya-public-course .mya-intro>.mx-admin-heading-network{opacity:.24!important}

/* Automotive retains its native photo, shade and placement; intelligence stays transparent. */

html body .mxa-hero-art.mx-automotive-intelligence>.mxa-hero-copy{position:relative;z-index:3}

html body .mxa-hero-art.mx-automotive-intelligence>.mx-public-network{opacity:.68!important}

html body .mx-automotive-intelligence:not(.mx-motion-visible) .mx-public-network *{animation-play-state:paused!important}

@media(max-width:760px){html body .mxp-hero>.mlp-hero-content h1{font-size:clamp(34px,7.5vw,44px)!important}}

/* Rails carry bright moving signals; the nucleus has three independently moving rings. */

html body .mx-public-network.mx-admin-heading-network{position:absolute;inset:0;z-index:2!important;width:100%;height:100%;overflow:hidden;pointer-events:none;mask-image:none!important;opacity:1!important;color:#62eaff!important;border-radius:inherit}

/* Photograph and intelligence artwork share the hero shade, keeping copy readable. */

html body .mxp-hero.mx-public-intelligence-heading>.mx-public-network{z-index:2!important;opacity:.45!important;pointer-events:none!important}

html body .mxp-hero.mx-public-intelligence-heading>.mlp-hero-content{position:relative;z-index:3!important}

html body.mx-global-public :is(dialog,[role=dialog]) .mx-fullscreen-intelligence-header .mx-header-close,html body.mx-global-public dialog.mx-intelligence-dialog .mx-header-close{width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;border-radius:14px!important}

html body.mx-global-public dialog.mlp-guide[open]{display:flex!important;flex-direction:column!important;padding:0!important;overflow:hidden!important}

html body.mx-global-public dialog.mlp-guide>header{display:flex;align-items:center;gap:12px;padding:18px 20px!important}

html body.mx-global-public dialog.mlp-guide>header>div{min-width:0;flex:1}

html body.mx-global-public dialog.mlp-guide>header small{font-size:9px;letter-spacing:.13em;color:var(--mlp-cyan)}

html body.mx-global-public dialog.mlp-guide>header h2{margin:4px 0 0!important;padding:0!important;font-size:22px!important}

html body.mx-global-public dialog.mlp-guide>header>[aria-label]{position:static!important;inset:auto!important;flex:0 0 42px}

html body.mx-global-public dialog.mlp-guide>.mlp-guide-body{min-height:0;overflow:auto;padding:24px}

html body.mx-global-public dialog.mlp-guide>.mlp-guide-body h3{font-size:24px;line-height:1.25;margin:0 0 14px;color:var(--mlp-ink)}

html body.mx-global-public dialog.mlp-guide>.mlp-guide-body>a{display:inline-flex}

html body.mx-global-public dialog.mymex-portfolio-dialog{overflow:hidden!important}

html body.mx-global-public dialog.mymex-portfolio-dialog>div{display:flex;flex-direction:column;max-height:calc(100dvh - 32px);overflow:hidden}

html body.mx-global-public dialog.mymex-portfolio-dialog>div>header{display:flex;align-items:center;gap:12px;padding:18px 20px!important}

html body.mx-global-public dialog.mymex-portfolio-dialog>div>header>div{min-width:0;flex:1}

html body.mx-global-public dialog.mymex-portfolio-dialog>div>header small{font-size:9px;letter-spacing:.13em;color:var(--mlp-cyan,#08758e)}

html body.mx-global-public dialog.mymex-portfolio-dialog>div>header h2{margin:4px 0 0!important;font-size:22px!important}

html body.mx-global-public dialog.mymex-portfolio-dialog figure{min-height:0;overflow:auto;max-height:none}

html body.mx-global-public dialog.mymex-portfolio-dialog img{border-radius:0;max-height:calc(100dvh - 180px)}

html:has(body.mx-global-public.mymex-jarvis-open),html:has(body.mx-global-public.mymex-overlay-open),html:has(body.mx-global-public dialog[open]){overflow:hidden}

html body .mx-public-network>svg{position:absolute;inset:0;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;stroke:currentColor;stroke-width:1;overflow:visible}

html body .mx-public-network .mx-neural-tracks{stroke-width:1;opacity:.32}

html body .mx-public-network .mx-neural-signals{stroke-width:2.3;stroke-dasharray:36 390;stroke-linecap:round;filter:drop-shadow(0 0 5px #49d9ff);animation:mx-intelligence-stream 6s linear infinite}

html body .mx-public-network .mx-neural-signals path:nth-child(2n){stroke:#b7a2ff;stroke-dasharray:18 275;animation:mx-intelligence-stream 8s linear infinite reverse}

html body .mx-neural-core{position:absolute;right:12%;top:29%;width:clamp(160px,20vw,280px);aspect-ratio:1;display:grid;place-items:center;opacity:.85}

html body .mx-neural-core>i{position:absolute;inset:0;border:1px solid #84ecff99;border-radius:50%;border-top:2px solid #d3fbff;box-shadow:0 0 24px #38d9ff18,inset 0 0 18px #38d9ff10;animation:mx-intelligence-orbit 18s linear infinite}

html body .mx-neural-core>i:nth-child(2){inset:18%;border-color:#c7afff88;border-left:2px solid #ece0ff;animation-duration:13s;animation-direction:reverse}

html body .mx-neural-core>i:nth-child(3){inset:36%;border:1px dashed #88f1ffb0;animation-duration:24s}

html body .mx-neural-core>i::after{content:'';position:absolute;left:12%;top:12%;width:7px;height:7px;border-radius:50%;background:#d8fbff;box-shadow:0 0 14px #65ebff}

html body .mx-neural-core>b{width:12px;height:12px;border-radius:50%;background:#c5faff;box-shadow:0 0 10px #70e9ff,0 0 32px #35b9ff;animation:mx-intelligence-node 3.6s ease-in-out infinite}

@keyframes mx-intelligence-stream{to{stroke-dashoffset:-852}}

@keyframes mx-intelligence-node{0%,100%{opacity:.4;transform:scale(.8)}50%{opacity:1;transform:scale(1.2)}}

@keyframes mx-intelligence-orbit{to{transform:rotate(360deg)}}

html body :is(.mx-public-intelligence-heading,.mx-intelligence-section):not(.mx-motion-visible) .mx-public-network *{animation-play-state:paused!important}



/* Pale sections keep their content clear, with a connected network behind it. */

html body .mx-intelligence-section{position:relative;isolation:isolate}

html body .mx-intelligence-section article{position:relative}

html body .mx-intelligence-section::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 83% 25%,#58d9e71c,transparent 54%),radial-gradient(ellipse at 60% 85%,#aa85e914,transparent 48%)}

html body .mx-intelligence-section>.mx-public-network{z-index:-1!important;color:#127e9e!important;opacity:.85!important;mask-image:linear-gradient(90deg,transparent 18%,#000 76%)!important}

html body .mx-intelligence-section>.mx-public-network .mx-neural-tracks{opacity:.2}

html body .mx-intelligence-section>.mx-public-network .mx-neural-signals{opacity:.8;stroke-width:1.6;filter:none;animation-duration:12s}

html body .mx-intelligence-section>.mx-public-network .mx-neural-core{display:none}

html[data-mymex-theme=dark] body .mx-intelligence-section>.mx-public-network{color:#69dfe5!important}

html[data-mymex-theme=dark] body .mx-intelligence-section>.mx-public-network .mx-neural-tracks{opacity:.2}



@media(max-width:760px){

 html body .mxp-hero.mx-public-intelligence-heading>.mlp-hero-content{width:100%;max-width:570px;padding:150px 24px 35px}

 html body .mx-public-intelligence-heading:not(.mx-gallery-toolbar) h1{font-size:clamp(34px,7.5vw,44px)!important;max-width:17ch}

 html body .mxp-hero.mx-public-intelligence-heading>.mlp-hero-shade{background:linear-gradient(0deg,#041326eb 0%,#05203bb8 58%,#05203b33 100%)!important}

 html body .mx-public-intelligence-heading p{font-size:13px!important}

 html body .mx-neural-core{right:7%;top:5%;width:140px;opacity:.75}

 html body .mx-public-intelligence-heading>.mx-public-network>svg{opacity:.65}

 html body .mlp-subpage-hero.mx-public-intelligence-heading{padding:110px 24px 48px!important}

 html body .mx-intelligence-section>.mx-public-network{opacity:.6!important}

}

@media(prefers-reduced-motion:reduce){html body .mx-public-network *,html body .mx-public-network *::after{animation:none!important;transition:none!important;transform:none!important}html body .mx-public-network .mx-neural-signals{stroke-dasharray:none;opacity:.18}html body .mx-neural-core{opacity:.5}}



html body .mx-public-network>.mx-neural-point{position:absolute;width:6px;height:6px;border-radius:50%;border:1px solid #8befff;background:#c5faff;box-shadow:0 0 9px #6deaff;animation:mx-intelligence-node 3.6s ease-in-out infinite}

html body .mx-public-network>.mx-neural-point:nth-of-type(3n){animation-delay:-1.2s;background:#e4d9ff;border-color:#e4d9ff}

html body .mx-public-network>.mx-neural-point:nth-of-type(3n+1){animation-delay:-2.4s}

html body .mx-intelligence-section>.mx-public-network>.mx-neural-point{width:4px;height:4px;border-color:#3e9eb2;background:#b8e7ef;box-shadow:none;opacity:.5}



/* Workspace and form/modal headers share the same motion, scaled for compact surfaces. */

html body .mx-interface-network.mx-public-network.mx-admin-heading-network{z-index:-1!important;color:#187f98!important;mask-image:linear-gradient(90deg,transparent 20%,#000 78%)!important;opacity:.9!important}

html body .mx-interface-network .mx-neural-tracks{opacity:.2;stroke-width:1}

html body .mx-interface-network .mx-neural-signals{opacity:.8;stroke-width:1.7;filter:none;animation-duration:9s}

html body .mx-interface-network>.mx-neural-point{width:4px;height:4px;background:#d5f9fb;border-color:#3d9cb1;box-shadow:0 0 6px #4bbec333}

html body .mx-admin-heading:not(.mx-motion-visible)>.mx-interface-network *{animation-play-state:paused!important}

html body dialog.mx-intelligence-dialog{isolation:isolate}

html body dialog.mx-intelligence-dialog:not(.mx-motion-visible)>.mx-interface-network *{animation-play-state:paused!important}

html body dialog.mx-intelligence-dialog>.mx-interface-network{opacity:.5!important}

html body dialog.mx-intelligence-dialog .mx-header-close{display:grid;place-items:center;box-sizing:border-box;width:36px;height:36px;min-width:36px;min-height:36px;padding:0;border-radius:10px;border:1px solid #94b8cb;background:#fff;color:#173449}

html body dialog.mx-intelligence-dialog .mx-header-close>svg{width:17px;height:17px;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}

html[data-mymex-theme=dark] body dialog.mx-intelligence-dialog .mx-header-close{background:#132e41;color:#e6f1fb;border-color:#3b5b70}

html[data-mymex-theme=dark] body .mx-interface-network.mx-public-network.mx-admin-heading-network{color:#69e5e3!important}

html[data-mymex-theme=dark] body .mx-interface-network .mx-neural-tracks{opacity:.3}

html[data-mymex-theme=dark] body .mx-interface-network>.mx-neural-point{background:#bbfaff;border-color:#68d5d8}

@media(prefers-reduced-motion:reduce){html body .mx-interface-network *{animation:none!important;transition:none!important;transform:none!important}}



/* Main landing exit offer: shared dialog geometry, controls and intelligence header. */

html body .mymex-trial-exit[hidden]{display:none!important}

html body .mymex-trial-exit>.mx-trial-panel{display:flex!important;flex-direction:column;width:min(580px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:0!important;margin:auto;overflow:auto;border:1px solid #ccdfea!important;border-radius:24px!important;background:#fff!important;color:#173449;box-shadow:0 28px 90px #00162b55}

html body .mx-trial-panel>header{position:relative;display:flex;align-items:center;gap:14px;padding:26px 24px!important;min-height:112px;box-sizing:border-box;overflow:hidden;border-bottom:1px solid #d0e0ec;background:linear-gradient(110deg,#f1ebff,#ecfaf6)!important}

html body .mx-trial-panel>header>div,html body .mx-trial-panel>header>.mx-trial-mark,html body .mx-trial-panel>header>button{position:relative;z-index:3}

html body .mx-trial-panel .mx-trial-mark{width:44px;height:44px;flex:none;display:grid;place-items:center;border:1px solid #c8deeb;border-radius:13px;background:#fff;color:#126b88}

html body .mx-trial-panel svg{width:23px;height:23px;flex:none}

html body .mx-trial-panel .mx-trial-mark svg{color:#126b88!important;stroke:#126b88!important}

html body .mx-trial-panel .mx-trial-eyebrow{font-size:10px;font-weight:600;letter-spacing:.12em;color:#42647c}

html body .mx-trial-panel h2{font-size:22px!important;font-weight:600!important;line-height:1.25!important;letter-spacing:-.02em!important;color:#173449!important;margin:7px 0 0!important}

html body .mx-trial-panel .mx-header-close{position:relative!important;inset:auto!important;flex:none;margin-left:auto!important;width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;border-radius:14px!important;padding:10px!important;background:#fff!important;border:1px solid #c9dfea!important;color:#24516b!important;display:grid;place-items:center}

html body .mx-trial-panel .mx-trial-body{padding:24px;overflow:visible}

html body .mx-trial-panel .mx-trial-badge{display:inline-block;padding:7px 10px;border-radius:20px;background:#e6f7f2;color:#126350;font-size:12px;font-weight:500}

html body .mx-trial-panel h3{font-size:22px;line-height:1.3;letter-spacing:-.02em;color:#173449;margin:19px 0 12px;font-weight:600}

html body .mx-trial-panel p{font-size:14px;line-height:1.7;color:#49647b;margin:0 0 18px}

html body .mx-trial-panel ul{display:grid;gap:10px;list-style:none;padding:16px;margin:0 0 20px;border:1px solid #d4e5ed;border-radius:14px;background:#f6fafc}

html body .mx-trial-panel li{display:flex;align-items:center;gap:10px;color:#284b61;font-size:13px;font-weight:400}

html body .mx-trial-panel li svg{width:18px;height:18px;color:#167c72}

html body .mx-trial-panel .mx-trial-note{font-size:12px;margin:0;color:#526b80}

html body .mx-trial-panel>footer{display:flex;justify-content:space-between;gap:12px;padding:18px 24px;border-top:1px solid #d4e5ed;margin-top:auto}

html body .mx-trial-panel>footer :is(a,button){display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:10px 16px;border-radius:11px;font:500 13px/1.4 Arial,sans-serif;text-decoration:none;cursor:pointer}

html body .mx-trial-panel .mx-trial-start{background:linear-gradient(110deg,#6241b6,#047e95);color:#fff!important;border:1px solid transparent}

html body .mx-trial-panel .mx-trial-later{background:#fff;color:#24516b;border:1px solid #c9dfea}

html[data-mymex-theme=dark] body .mymex-trial-exit>.mx-trial-panel{background:#102a3e!important;border-color:#36566b!important;color:#e7f1f8}

html[data-mymex-theme=dark] body .mx-trial-panel>header{background:linear-gradient(110deg,#292b46,#123e43)!important;border-color:#36566b}

html[data-mymex-theme=dark] body .mx-trial-panel :is(h2,h3){color:#edf5fc!important}

html[data-mymex-theme=dark] body .mx-trial-panel :is(p,.mx-trial-eyebrow,.mx-trial-note){color:#c2d6e5}

html[data-mymex-theme=dark] body .mx-trial-panel ul{background:#0b2234;border-color:#36566b}

html[data-mymex-theme=dark] body .mx-trial-panel li{color:#deedf6}

html[data-mymex-theme=dark] body .mx-trial-panel li svg{color:#78d8ca}

html[data-mymex-theme=dark] body .mx-trial-panel>footer{border-color:#36566b}

html[data-mymex-theme=dark] body .mx-trial-panel .mx-trial-later{background:#102a3e;color:#deedf6;border-color:#45647a}

@media(max-width:600px){html body .mymex-trial-exit{padding:0!important}html body .mymex-trial-exit>.mx-trial-panel{width:100vw;height:100dvh;max-height:100dvh;margin:0!important;border:0!important;border-radius:0!important}html body .mx-trial-panel>header{padding:20px!important}html body .mx-trial-panel .mx-trial-body{padding:24px 20px}html body .mx-trial-panel>footer{padding:16px 20px calc(16px + env(safe-area-inset-bottom));flex-wrap:wrap}html body .mx-trial-panel>footer :is(a,button){flex:1}html body .mx-trial-panel h2{font-size:20px!important}}



/* Native public dialogs share the established header controls and size toggle. */

/* Jarvis avatar selectors also matched the decorative span. Keep it out of layout. */

html body #mymex-public-jarvis>header>.mx-admin-heading-network{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-height:none!important;flex:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:inherit!important;box-shadow:none!important;background:none!important;z-index:0!important;pointer-events:none!important}

html body.mx-global-public #mymex-public-jarvis.mx-marketing-jarvis-connect>header{padding-right:178px!important;gap:10px!important}

html body.mx-global-public #mymex-public-jarvis.mx-marketing-jarvis-connect>header>:is([data-global-dialog-expand],[data-public-jarvis-new],[data-public-jarvis-close]){position:absolute!important;top:34px!important;left:auto!important;bottom:auto!important;margin:0!important;transform:none!important;width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;border-radius:14px!important;z-index:3!important}

html body.mx-global-public #mymex-public-jarvis.mx-marketing-jarvis-connect>header>[data-global-dialog-expand]{right:128px!important}

html body.mx-global-public #mymex-public-jarvis.mx-marketing-jarvis-connect>header>[data-public-jarvis-new]{right:76px!important}

html body.mx-global-public #mymex-public-jarvis.mx-marketing-jarvis-connect>header>[data-public-jarvis-close]{right:24px!important}

@media(max-width:760px){html body.mx-global-public #mymex-public-jarvis.mx-marketing-jarvis-connect>header{padding-right:166px!important}html body.mx-global-public #mymex-public-jarvis.mx-marketing-jarvis-connect>header>:is([data-global-dialog-expand],[data-public-jarvis-new],[data-public-jarvis-close]){top:24px!important}html body.mx-global-public #mymex-public-jarvis.mx-marketing-jarvis-connect>header>[data-global-dialog-expand]{right:116px!important}html body.mx-global-public #mymex-public-jarvis.mx-marketing-jarvis-connect>header>[data-public-jarvis-new]{right:66px!important}html body.mx-global-public #mymex-public-jarvis.mx-marketing-jarvis-connect>header>[data-public-jarvis-close]{right:16px!important}}

html body.mx-global-public #mymex-public-jarvis>header>.mx-header-expand{width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;border-radius:14px!important}

html body.mx-global-public :is(dialog,[role=dialog]) .mx-fullscreen-intelligence-header>.mx-header-expand{margin-left:auto!important;flex:none!important;position:relative!important;inset:auto!important}

html body.mx-global-public :is(dialog,[role=dialog]) .mx-fullscreen-intelligence-header>.mx-header-expand+.mx-header-close{margin-left:0!important;flex:none!important;position:relative!important;inset:auto!important}

html body.mx-global-public :is(dialog,[role=dialog]).mx-dialog-expanded{position:fixed!important;inset:12px!important;box-sizing:border-box!important;width:calc(100% - 24px)!important;max-width:calc(100% - 24px)!important;height:calc(100dvh - 24px)!important;max-height:calc(100dvh - 24px)!important;margin:auto!important}

html:has(body.mx-global-public dialog[open]){overflow:hidden;scrollbar-gutter:stable}

body.mx-global-public:has(dialog[open]){overflow:hidden}

@media(max-width:600px){html body.mx-global-public :is(dialog,[role=dialog]).mx-dialog-expanded{inset:6px!important;width:calc(100% - 12px)!important;max-width:calc(100% - 12px)!important;height:calc(100dvh - 12px)!important;max-height:calc(100dvh - 12px)!important}}



/* Public photographic heroes retain their own typography after decoration. */

html body.mx-global-public .mxp-hero.mx-public-intelligence-heading>.mlp-hero-content h1{font-size:clamp(42px,4.8vw,68px)!important;line-height:1.06!important;font-weight:600!important;color:#fff!important;max-width:17ch}

html body.mx-global-public .mxp-hero.mx-public-intelligence-heading>.mlp-hero-content h1 span{color:#79e5fa!important}

@media(max-width:760px){html body.mx-global-public .mxp-hero.mx-public-intelligence-heading>.mlp-hero-content h1{font-size:clamp(36px,9vw,48px)!important}}

/* Homepage content remains painted while scrolling; no hidden reveal states. */

html body.mx-global-public:has(.mlp-hero-content) [data-journey-section] [data-entry]{opacity:1!important;transform:none!important;transition:none!important}

/* Published cards use the automotive device frame; content stays interactive. */

html body.mx-global-public :is(.mlp-published-device,.mxa-live-device.mxa-current-card-preview){box-sizing:border-box;padding:0!important;border:2px solid #83cfff66!important;border-radius:35px!important;background:#eef5fa!important;box-shadow:0 4px 12px #102a4014!important;overflow:hidden}

html body.mx-global-public .mlp-published-device>.mlp-published-screen{border-radius:33px!important}

/* Native vertical panning belongs to the conversation, never a thumb-only UI. */

html body :is(#mymex-public-jarvis,#mymex-jarvis-panel,#assistant-dialog,.hub-assistant-dialog) :is(.mx-jarvis-conversation,.assistant-messages,.hub-chat-messages){touch-action:pan-y pinch-zoom;-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain}

/* Legacy message-list overflow must not capture gestures inside the real scroller. */

html body #mymex-public-jarvis .mx-jarvis-conversation>.mymex-public-jarvis-messages,html body #mymex-jarvis-panel .mx-jarvis-conversation>.mymex-jarvis-messages{overflow:visible!important;max-height:none!important;touch-action:pan-y pinch-zoom}

/* Reuse the shared orbit animation for a border-only Get started accent. */

html body.mx-global-public .mlp-hero-content .mlp-start-paid{position:relative;isolation:isolate}

html body.mx-global-public .mlp-hero-content .mlp-start-paid::before{content:'';position:absolute;inset:-1px;padding:2px;border-radius:inherit;pointer-events:none;background:conic-gradient(from var(--mymex-jarvis-orbit,0deg),#79e5fa,#79e5fa22 24%,#b6a0ff 50%,#79e5fa22 74%,#79e5fa);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;animation:mymex-jarvis-orbit 5s linear infinite}

@media(prefers-reduced-motion:reduce){html body.mx-global-public .mlp-hero-content .mlp-start-paid::before{animation:none!important;background:#79e5fa}}


/* Automotive notice has one primary action; reuse the existing border orbit. */
html body.mx-global-public [data-automotive-dialog] .mlp-automotive-continue{display:inline-flex;align-items:center;justify-content:center;position:relative;isolation:isolate;box-sizing:border-box;max-width:100%;min-height:48px;padding:14px 22px;border:1px solid #79e5fa88;border-radius:14px;background:linear-gradient(115deg,#6243a8,#08798d);color:#fff!important;font-weight:700;text-decoration:none;line-height:1.4;text-align:center;box-shadow:0 4px 14px #123a4c24}
html body.mx-global-public [data-automotive-dialog] .mlp-automotive-continue::before{content:'';position:absolute;inset:-1px;padding:2px;border-radius:inherit;pointer-events:none;background:conic-gradient(from var(--mymex-jarvis-orbit,0deg),#79e5fa,#79e5fa22 24%,#b6a0ff 50%,#79e5fa22 74%,#79e5fa);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;animation:mymex-jarvis-orbit 5s linear infinite}
html body.mx-global-public [data-automotive-dialog] .mlp-automotive-continue:focus-visible{outline:3px solid #7855c8;outline-offset:4px}
@media(prefers-reduced-motion:reduce){html body.mx-global-public [data-automotive-dialog] .mlp-automotive-continue::before{animation:none!important;background:#79e5fa}}

/* Preserve public hero typography after the shared heading decorator. */
html body .mxp-hero>.mlp-hero-content h1,html body .mxp-hero.mx-public-intelligence-heading[data-heading-styled="1"]>.mlp-hero-content h1{font-size:clamp(36px,4.1vw,58px)!important;font-weight:600!important;line-height:1.08!important;letter-spacing:-.035em!important;max-width:17ch;color:#fff!important;text-shadow:0 2px 22px #00152970}
@media(max-width:760px){html body .mxp-hero>.mlp-hero-content h1,html body .mxp-hero.mx-public-intelligence-heading[data-heading-styled="1"]>.mlp-hero-content h1{font-size:clamp(34px,7.5vw,44px)!important}}

/* Consistent phone popup chrome. Keep close/actions; omit redundant window sizing. */
@media(max-width:900px){
 html body :is(dialog,[role=dialog]) :is([data-global-dialog-expand],.mx-header-expand,[data-billing-expand],[data-pw-expand],[data-campaign-editor-expand],[data-platform-operation-expand],[data-toggle-tenant-management-size],.settings-expand){display:none!important}
 html body :is(dialog,[role=dialog]) .mx-fullscreen-intelligence-header{min-height:58px!important;padding:10px 14px!important;gap:10px!important}
 html body :is(dialog,[role=dialog]) .mx-fullscreen-intelligence-header :is(h1,h2,h3){font-size:16px!important;line-height:1.35!important;margin:0!important}
 html body :is(dialog,[role=dialog]) .mx-fullscreen-intelligence-header .mx-header-close{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important}
 html body.mx-global-public #mymex-public-jarvis.mx-marketing-jarvis-connect>header{padding-right:112px!important}
 html body.mx-global-public #mymex-public-jarvis.mx-marketing-jarvis-connect>header>[data-public-jarvis-new]{top:10px!important;right:62px!important}
 html body.mx-global-public #mymex-public-jarvis.mx-marketing-jarvis-connect>header>[data-public-jarvis-close]{top:10px!important;right:12px!important}
}
@media(max-width:900px){
 html:is([data-theme],[data-mymex-theme]) body.mx-global-public #mymex-public-jarvis.mx-marketing-jarvis-connect>header{min-height:64px!important;padding:10px 112px 10px 12px!important;gap:10px!important}
 html:is([data-theme],[data-mymex-theme]) body.mx-global-public #mymex-public-jarvis.mx-marketing-jarvis-connect>header>span:not(.mx-admin-heading-network){width:40px!important;height:40px!important;min-width:40px!important;flex:0 0 40px!important}
 html:is([data-theme],[data-mymex-theme]) body.mx-global-public #mymex-public-jarvis.mx-marketing-jarvis-connect>header>span>img{width:40px!important;height:40px!important}
 html:is([data-theme],[data-mymex-theme]) body.mx-global-public #mymex-public-jarvis.mx-marketing-jarvis-connect>header>[data-public-jarvis-new],html:is([data-theme],[data-mymex-theme]) body.mx-global-public #mymex-public-jarvis.mx-marketing-jarvis-connect>header>[data-public-jarvis-close]{top:10px!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important}
}
@media(max-width:900px){
 html:is([data-theme],[data-mymex-theme]) body.mx-global-public #mymex-public-jarvis.mx-marketing-jarvis-connect>header{height:auto!important}
 html:is([data-theme],[data-mymex-theme]) body.mx-global-public #mymex-public-jarvis.mx-marketing-jarvis-connect>header>div>small{font-size:9px!important;line-height:12px!important;white-space:nowrap!important}
 html:is([data-theme],[data-mymex-theme]) body.mx-global-public #mymex-public-jarvis.mx-marketing-jarvis-connect>header>div>strong{font-size:15px!important;line-height:20px!important}
 html:is([data-theme],[data-mymex-theme]) body.mx-global-public #mymex-public-jarvis.mx-marketing-jarvis-connect>header>div>i{font-size:10px!important;line-height:14px!important}
}
@media(max-width:900px){
 html:is([data-theme],[data-mymex-theme]) body.mx-global-public #mymex-public-jarvis.mx-marketing-jarvis-connect:not([hidden]){grid-template-rows:auto minmax(0,1fr)!important}
}

/* Blog hero shares the heading decorator but requires a light-theme palette. */
html:not([data-mymex-theme=dark]) body .mymex-blog-public-hero.mx-public-intelligence-heading{--mx-heading-ink:#102d42;--mx-heading-muted:#36566b;--mx-heading-network:#16869b}
html:not([data-mymex-theme=dark]) body .mymex-blog-public-hero .mymex-blog-public-hero-copy :is(h1,p,em,.mxp-eyebrow){text-shadow:none!important;filter:none!important}
html:not([data-mymex-theme=dark]) body .mymex-blog-public-hero .mymex-blog-public-hero-copy h1{color:#102d42!important}
html:not([data-mymex-theme=dark]) body .mymex-blog-public-hero .mymex-blog-public-hero-copy h1 em{color:#08758b!important;-webkit-text-fill-color:currentColor!important;background:none!important}
html:not([data-mymex-theme=dark]) body .mymex-blog-public-hero .mymex-blog-public-hero-copy p{color:#36566b!important}
html:not([data-mymex-theme=dark]) body .mymex-blog-public-hero .mymex-blog-public-hero-copy .mxp-eyebrow{color:#075d70!important}
html:not([data-mymex-theme=dark]) body .mymex-blog-public-hero .mymex-blog-public-journey>span{background:#edf5fa!important;border:1px solid #b5cbd9!important;backdrop-filter:none!important;box-shadow:none!important}
html:not([data-mymex-theme=dark]) body .mymex-blog-public-hero .mymex-blog-public-journey :is(b,em){color:#173f56!important;-webkit-text-fill-color:currentColor!important;background:none!important;text-shadow:none!important}
html:not([data-mymex-theme=dark]) body .mymex-blog-public-hero .mymex-blog-public-journey small{color:#36566b!important}

/* Shared dialog rhythm extends existing components; their controllers retain all actions. */
body.tenant-admin :is(dialog,[role=dialog]) .tenant-actions{min-width:0;max-width:100%;flex-wrap:wrap;gap:12px}
body.tenant-admin :is(dialog,[role=dialog]) :is(p,small)+.tenant-actions{margin-top:16px}
body.tenant-admin :is(dialog,[role=dialog]) .tenant-actions+p{margin-top:12px;line-height:1.6}
body.tenant-admin .mx-section-nav-icon{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

/* Shared mobile section navigation; existing tab handlers remain authoritative. */
body.tenant-admin .mx-dialog-section-picker{display:none}
@media(max-width:760px){
 body.tenant-admin .mx-mobile-section-nav{display:none!important}
 body.tenant-admin .mx-dialog-section-picker{display:grid!important;flex:0 0 auto;grid-column:1/-1;gap:6px;margin:0;padding:12px 14px;font-size:13px!important;line-height:1.4;font-weight:650;box-sizing:border-box;background:var(--tenant-surface,#fff);color:var(--tenant-ink,#173449);border-bottom:1px solid var(--tenant-line,#dce7f1)}
 body.tenant-admin .mx-dialog-section-picker select{box-sizing:border-box;width:100%;min-width:0;min-height:44px;border:1px solid var(--tenant-line,#dce7f1);border-radius:10px;padding:9px 12px;font:inherit;font-size:16px!important;background:var(--tenant-surface,#fff);color:inherit}
 body.tenant-admin .tenant-settings-side-menu>.tenant-settings-hub-header{flex-wrap:wrap!important;gap:12px!important}
 body.tenant-admin .tenant-settings-hub-header>.mx-dialog-section-picker{flex-basis:100%;order:5;padding:0 2px;border:0;background:transparent}
}

/* Letter marks remain legible on the shared light and dark heading palette. */
body.tenant-admin .mymex-tenant-management-head.mx-fullscreen-intelligence-header .mymex-tenant-management-head__mark{color:var(--mx-heading-ink,#173449);background:var(--mx-heading-panel,#fff);border:1px solid var(--mx-heading-panel-line,#c4dbe9)}

/* Content headers retain their icon/text grid and reserve the shared Close target. */
html body .tenant-content-sheet-header.mx-fullscreen-intelligence-header{padding-right:78px!important}
html body .tenant-content-sheet-header.mx-fullscreen-intelligence-header>.tenant-content-sheet-close.mx-header-close{position:absolute!important;top:12px;right:12px}

/* Profile actions stay visible within the existing scrolling form. */
body.tenant-admin .mymex-account-profile-popform>footer{position:sticky;bottom:0;z-index:2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:center;gap:12px;padding:12px 0;background:var(--tenant-surface,#fff)}
body.tenant-admin .mymex-account-profile-popform>footer>.tenant-button{min-width:0;max-width:100%;min-height:44px;white-space:normal;justify-content:center;box-sizing:border-box}

/* Existing absolute header controls keep their placement when themed globally. */
html body .mx-fullscreen-intelligence-header .mx-header-close[data-mx-header-absolute=true]{position:absolute!important}
html body .mx-fullscreen-intelligence-header[data-mx-absolute-actions=true]{padding-right:var(--mx-header-absolute-reserve,72px)!important}

/* Keep partner window controls at the top beside longer mobile headings. */
body.tenant-admin .mymex-partner-dialog header .mx-header-close{align-self:start}
/* Compact card-image pickers keep their existing single-line header. */
html body #mymex-shared-gallery.tenant-media-modal.is-card-image-picker header.tenant-media-modal-header.mx-fullscreen-intelligence-header{min-height:64px!important;padding:10px 66px 10px 16px!important;box-sizing:border-box!important}
html body #mymex-shared-gallery.tenant-media-modal.is-card-image-picker header.tenant-media-modal-header.mx-fullscreen-intelligence-header>.tenant-media-header-actions{position:static!important}
html body #mymex-shared-gallery.tenant-media-modal.is-card-image-picker header.tenant-media-modal-header.mx-fullscreen-intelligence-header [data-close-media-picker].mx-header-close{position:absolute!important;inset:10px 10px auto auto!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important}
@media(max-width:760px){html body .platform-media-modal footer>button{min-height:44px!important}}
html body .mxpc-dialog-head.mx-fullscreen-intelligence-header>div>strong{color:var(--mx-heading-ink)!important;overflow-wrap:anywhere}
html body .mxpc-dialog-head.mx-fullscreen-intelligence-header .tenant-eyebrow{color:var(--mx-heading-muted,var(--mx-heading-ink))!important}

/* Gallery studio loads after global chrome; retain the shared mobile touch target. */
@media(max-width:900px){html body #platform-media-gallery .platform-media-close.mx-header-close{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important}}

/* Preserve the existing staff-choice workflow inside the shared popup chrome. */
html body #staff-function-dialog.mx-staff-function-dialog{padding:0!important;overflow:hidden!important;max-height:calc(100dvh - 24px)!important;background:#fff!important;color:var(--tenant-ink,#10233e)!important}
html body #staff-function-dialog.mx-staff-function-dialog>header{position:relative;display:flex;align-items:start;padding:16px 72px 16px 18px;gap:12px}
html body #staff-function-dialog.mx-staff-function-dialog>header>div{min-width:0;flex:1;overflow-wrap:anywhere}
html[data-mymex-theme=dark] body #staff-function-dialog.mx-staff-function-dialog{background:#102638!important;color:#e1edf7!important}
html body #staff-function-dialog.mx-staff-function-dialog>header h2{margin:0 0 8px;font-size:18px;line-height:1.35}
html body #staff-function-dialog.mx-staff-function-dialog>header p{margin:0;line-height:1.5}
html body #staff-function-dialog.mx-staff-function-dialog [data-staff-function-close]{position:absolute!important;top:12px;right:12px;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important}
html body #staff-function-dialog.mx-staff-function-dialog>.tenant-form{box-sizing:border-box;max-height:calc(100dvh - 180px);overflow:auto;margin:0;padding:16px;gap:12px}
html body #staff-function-dialog.mx-staff-function-dialog [data-staff-function-choice]{min-height:44px;white-space:normal}

/* The connection guide keeps one scroll area, with its exit and next step visible. */
html body dialog.mx-brevo-guide>.mx-brevo-heading{position:sticky!important;top:0;z-index:5}
html body dialog.mx-brevo-guide>.mx-brevo-navigation{position:sticky;bottom:0;z-index:4;box-sizing:border-box;background:#fff;border-top:1px solid var(--tenant-line,#dce7f1)}
html body dialog.mx-brevo-guide>.mx-brevo-navigation button{min-height:44px;white-space:normal}
html[data-mymex-theme=dark] body dialog.mx-brevo-guide>.mx-brevo-navigation{background:#102638}

/* An inherited 520px minimum must not push composer actions below a short screen. */
@media(max-height:600px){html body dialog.tenant-campaign-editor>.tenant-lead-tool-shell{min-height:0!important;height:100%!important;max-height:100%!important;grid-template-rows:auto minmax(0,1fr) auto}}
