/* Keep both portal themes resident during client navigation. :where adds no specificity; management rules are inactive on the public Partner landing. Original palette and declarations are preserved. */
/* Motion international testing management: presentation only, no geometry changes. */
.platform-app:where(:not(.motion-partner-landing)){--ink:#2b2845;--ink-soft:#726a89;--muted:#726a89;--line:#e1d8fa;--paper:#fbf9ff;--paper-deep:#f0ebff;--aqua:#7952e8;--aqua-dark:#7952e8;--accent:#7952e8;background-color:#fbf9ff;color:#2b2845}
.platform-app:where(:not(.motion-partner-landing)) :is(.platform-header,.admin-appbar){background-color:#f0e9ff;border-color:#e1d8fa;color:#50338e}
.platform-app:where(:not(.motion-partner-landing)) :is(.platform-header,.admin-appbar) :is(.brand-lockup,nav a){color:#50338e}
.platform-app:where(:not(.motion-partner-landing)) :is(.platform-header,.admin-appbar) .brand-lockup>span{border-color:#cfc0ed}
.platform-app:where(:not(.motion-partner-landing)) :is(.platform-footer,.next-action){background-color:#f0ebff;border-color:#e1d8fa;color:#726a89}
.platform-app:where(:not(.motion-partner-landing)) :is(.platform-sidebar,.admin-sidebar){background-color:#fff;border-color:#e1d8fa}
.platform-app:where(:not(.motion-partner-landing)) :is(.platform-sidebar,.brand-sidebar) a[aria-current=page],.platform-app:where(:not(.motion-partner-landing)) .admin-sidebar nav a.active{background-color:#efe7ff;color:#7952e8}
.platform-app:where(:not(.motion-partner-landing)) :is(.platform-sidebar,.brand-sidebar) a:hover,.platform-app:where(:not(.motion-partner-landing)) .admin-sidebar nav a:hover{background-color:#f3eeff;color:#6840d3}
.platform-app:where(:not(.motion-partner-landing)) .admin-sidebar nav a{color:#625573}
.platform-app:where(:not(.motion-partner-landing)) .admin-sidebar nav a.active::before{background-color:#7952e8}
.platform-app:where(:not(.motion-partner-landing)) .admin-sidebar-account{border-color:#e1d8fa;background-color:#fff}
.platform-app:where(:not(.motion-partner-landing)) .admin-sidebar-account>span{background-color:#352451;color:#d8c5ff}
.platform-app:where(:not(.motion-partner-landing)) :is(.admin-sidebar-account small,.admin-sidebar nav h2){color:#726a89}
.platform-app:where(:not(.motion-partner-landing)) :is(.admin-shell,.admin-app-shell){background-color:#fbf9ff}
.platform-app:where(:not(.motion-partner-landing)) :is(.platform-panel,.platform-card,.partner-section,.partner-operation-card,.brand-task-grid>a,.partner-metrics article){background-color:#fff;border-color:#e1d8fa;color:#2b2845}
.platform-app:where(:not(.motion-partner-landing)) :is(.platform-empty,.brand-workspace-page .partner-operation-card.dark-card){background-color:#f0ebff;color:#2b2845}
.platform-app:where(:not(.motion-partner-landing)) :is(.platform-panel>p,.platform-card p,.platform-page-title p,.brand-page-heading p,.admin-heading>p){color:#726a89}
.platform-app:where(:not(.motion-partner-landing)) :is(.partner-auth-panel h1,.platform-page-title h1,.brand-page-heading h1,.admin-workspace .admin-heading h1){color:#7952e8}
.platform-app:where(:not(.motion-partner-landing)) :is(.button.dark,.button.accent,.platform-form button[type=submit]){background-color:#7952e8;border-color:#7952e8;color:#fff}
.platform-app:where(:not(.motion-partner-landing)) :is(.button.dark,.button.accent,.platform-form button[type=submit]):hover{background-color:#6840d3;border-color:#6840d3;color:#fff}
.platform-app:where(:not(.motion-partner-landing)) :is(.button.ghost,.button.outline){background-color:#fff;border-color:#d5c7ee;color:#7952e8}
.platform-app:where(:not(.motion-partner-landing)) :is(.platform-form,.platform-filters,.admin-filter,.partner-filter-bar,.brand-scope) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background-color:#fff;border-color:#d5c7ee;color:#2b2845}
.platform-app:where(:not(.motion-partner-landing)) :is(input[type=checkbox],input[type=radio]){accent-color:#7952e8}
.platform-app:where(:not(.motion-partner-landing)) :is(.platform-panel,.platform-card) a:not(.button){color:#7952e8}
.platform-app:where(:not(.motion-partner-landing)) :is(.platform-tabs a[aria-current=page],.platform-pill){background-color:#efe7ff;color:#6840d3;border-color:#d5c7ee}
.platform-app:where(:not(.motion-partner-landing)) .brand-account-menu summary,.platform-app:where(:not(.motion-partner-landing)) .brand-platform-links{border-color:#e1d8fa}
.platform-app:where(:not(.motion-partner-landing)) .brand-account-menu>a{background-color:#fff;color:#7952e8}
.platform-app:where(:not(.motion-partner-landing)) .brand-recent-list>a{border-color:#e1d8fa}
.platform-app:where(:not(.motion-partner-landing)) .partner-studio{background-color:#fbf9ff;background-image:linear-gradient(rgba(121,82,232,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(121,82,232,.025) 1px,transparent 1px)}
.platform-app:where(:not(.motion-partner-landing)) :is(.partner-hero,.partner-process-rail,.partner-filter-bar,.admin-funnel,.form-panel){--aqua:#d8c5ff;background-color:#352451;border-color:#685081;color:#fff}
.platform-app:where(:not(.motion-partner-landing)) :is(.partner-hero p,.partner-process-rail small,.partner-filter-bar label,.admin-funnel p,.funnel-chart span,.form-panel>p){color:#ddd2eb}
.platform-app:where(:not(.motion-partner-landing)) .partner-hero-console{background-color:rgba(58,39,86,.72);border-color:#80639c;box-shadow:22px 22px 0 rgba(121,82,232,.08)}
.platform-app:where(:not(.motion-partner-landing)) :is(.partner-hero-meta,.partner-process-rail article){border-color:#80639c}
.platform-app:where(:not(.motion-partner-landing)) .partner-hero-meta span{color:#d8c5ff}
.platform-app:where(:not(.motion-partner-landing)) .partner-hero::before{border-color:rgba(186,157,247,.18);box-shadow:0 0 0 110px rgba(121,82,232,.035),0 0 0 220px rgba(121,82,232,.025)}
.platform-app:where(:not(.motion-partner-landing)) .partner-filter-bar .button.outline{background-color:transparent;border-color:#b59cce;color:#fff}
.platform-app:where(:not(.motion-partner-landing)) .admin-workspace .admin-heading{border-color:#e1d8fa}
.platform-app:where(:not(.motion-partner-landing)) .admin-workspace .admin-heading>p{color:#726a89}
.platform-app:where(:not(.motion-partner-landing)) .admin-workspace .metric-ledger{border-color:#e1d8fa}
.platform-app:where(:not(.motion-partner-landing)) .form-panel :is(h1,h2,h3,label,legend){color:#fff}
.platform-app:where(:not(.motion-partner-landing)) .form-panel :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background-color:#46315f;border-color:#9b82b8;color:#fff}
.platform-app:where(:not(.motion-partner-landing)) .form-panel .eyebrow{color:#d8c5ff}
.platform-app:where(:not(.motion-partner-landing)) .language-trigger{background-color:#fff;border-color:#e1d8fa;color:#2b2845}
.platform-app:where(:not(.motion-partner-landing)) .language-trigger:hover,.platform-app:where(:not(.motion-partner-landing)) .language-panel :is([aria-checked=true],[role=radio]:hover){background-color:#efe7ff}
.platform-app:where(:not(.motion-partner-landing)) .language-panel{background-color:#fff;border-color:#e1d8fa;color:#2b2845}
.platform-app:where(:not(.motion-partner-landing)) .language-check{color:#7952e8}

/* Motion Partner landing: colors only. */
.motion-partner-landing{--ink:#2b2845;--ink-soft:#726a89;--muted:#726a89;--line:#e1d8fa;--paper:#fbf9ff;--paper-deep:#f0ebff;--aqua:#7952e8;--aqua-dark:#7952e8;background-color:#fbf9ff;color:#2b2845}
.motion-partner-landing .platform-header{background-color:#f0e9ff;border-color:#e1d8fa;color:#50338e}
.motion-partner-landing .platform-header :is(.brand-lockup,nav a){color:#50338e}
.motion-partner-landing .platform-header .brand-lockup>span{border-color:#cfc0ed}
.motion-partner-landing :is(.button.dark,.button.accent){background-color:#7952e8;border-color:#7952e8;color:#fff}
.motion-partner-landing :is(.button.dark,.button.accent):hover{background-color:#6840d3;border-color:#6840d3;color:#fff}
.motion-partner-landing .partner-landing{background-color:#fbf9ff;border-color:#e1d8fa}
.motion-partner-landing .partner-landing-copy h1{color:#7952e8}
.motion-partner-landing .partner-process-link{color:#7952e8}
.motion-partner-landing .partner-landing-visual{background-color:#352451;color:#fff}
.motion-partner-landing .partner-landing-visual::after{border-color:#9879d3}
.motion-partner-landing .partner-landing-visual>span,.motion-partner-landing .partner-brand-pair i,.motion-partner-landing .partner-visual-flow i{color:#d8c5ff}
.motion-partner-landing .partner-landing-visual p{color:#ddd2eb}
.motion-partner-landing .partner-visual-flow{border-color:#6c528f}
.motion-partner-landing .partner-landing-benefits article{border-color:#c8b4ef}
.motion-partner-landing .partner-landing-process{background-color:#f0ebff;border-color:#e1d8fa}
.motion-partner-landing .partner-landing-process li{border-color:#d5c7ee}
.motion-partner-landing .partner-landing-empty{background-color:#fff;border-color:#d5c7ee}
.motion-partner-landing .partner-landing-history,.motion-partner-landing .partner-landing-application-list>article{border-color:#e1d8fa}
.motion-partner-landing .platform-footer{background-color:#f0ebff;border-color:#e1d8fa;color:#726a89}
.motion-partner-landing .language-trigger{background-color:#fff;border-color:#e1d8fa;color:#2b2845}
.motion-partner-landing .language-trigger:hover{background-color:#efe7ff}
.motion-partner-landing .language-panel{background-color:#fff;border-color:#e1d8fa;color:#2b2845}
.motion-partner-landing .language-panel :is([aria-checked=true],[role=radio]:hover){background-color:#efe7ff}
.motion-partner-landing .language-check{color:#7952e8}
.motion-partner-landing .partner-application-drawer::backdrop{background-color:rgba(25,16,43,.68)}
.motion-partner-landing .partner-application-drawer-surface{background-color:#251b38;color:#fff}
.motion-partner-landing .partner-application-drawer-surface>header{background-color:#2e2144;border-color:#685081}
.motion-partner-landing .partner-application-drawer-surface>header :is(span,p){color:#d8c5ff}
.motion-partner-landing .partner-application-drawer-surface>header>button{border-color:#8b72a8;color:#fff}
.motion-partner-landing :is(.partner-application-identity,.partner-application-sports,.partner-application-contact){border-color:#685081}
.motion-partner-landing .partner-application-sports :is(div,label){border-color:#685081}
.motion-partner-landing .partner-application-form :is(input:not([type=checkbox]),textarea){background-color:#332448;border-color:#8b72a8;color:#fff}
.motion-partner-landing .partner-application-form :is(input[type=checkbox],input[type=radio]){accent-color:#bca1ff}
.motion-partner-landing .partner-application-form small{color:#d8c5ff}
/* Shared list, pagination and dialog controls previously retained literal ocean colors. */
.platform-app:where(:not(.motion-partner-landing)) .admin-stat-strip>div:last-child{background-color:#352451;color:#fff}
.platform-app:where(:not(.motion-partner-landing)) .admin-stat-strip>div:last-child span{color:#d8c5ff}
.platform-app:where(:not(.motion-partner-landing)) .admin-workspace .content-heading>a{color:#7952e8;border-color:#d5c7ee;background-color:#fff}
.platform-app:where(:not(.motion-partner-landing)) .admin-workspace .content-heading>a:hover{color:#6840d3;border-color:#bca1eb;background-color:#f3eeff}
.platform-app:where(:not(.motion-partner-landing)) :is(.admin-workspace .button.compact,.admin-workspace .button.accent,.workspace-main .button.accent,.workspace-dialog-trigger.primary){background-image:none;background-color:#7952e8;border-color:#7952e8;color:#fff}
.platform-app:where(:not(.motion-partner-landing)) :is(.admin-workspace .button.compact,.admin-workspace .button.accent,.workspace-main .button.accent,.workspace-dialog-trigger.primary):hover{background-image:none;background-color:#6840d3;border-color:#6840d3;color:#fff}
.platform-app:where(:not(.motion-partner-landing)) .workspace-dialog-trigger{color:#7952e8;border-color:#d5c7ee}
.platform-app:where(:not(.motion-partner-landing)) .workspace-dialog-trigger.secondary{color:#7952e8;border-color:#d5c7ee;background-color:#fff}
.platform-app:where(:not(.motion-partner-landing)) .workspace-dialog-trigger.secondary:hover{color:#6840d3;border-color:#bca1eb;background-color:#f3eeff}
.platform-app:where(:not(.motion-partner-landing)) .workspace-dialog-trigger.quiet{background-color:transparent;border-color:transparent;color:#7952e8}
.platform-app:where(:not(.motion-partner-landing)) .workspace-dialog-trigger b{color:#6840d3}
.platform-app:where(:not(.motion-partner-landing)) :is(.data-table,.saas-pagination,.saas-page-controls){border-color:#e1d8fa}
.platform-app:where(:not(.motion-partner-landing)) .data-table .table-head{background-color:#f3eeff}
.platform-app:where(:not(.motion-partner-landing)) .saas-pagination{background-color:#fff;color:#726a89}
.platform-app:where(:not(.motion-partner-landing)) .saas-pagination>span strong,.platform-app:where(:not(.motion-partner-landing)) .saas-page-controls b{color:#2b2845}
.platform-app:where(:not(.motion-partner-landing)) .saas-page-size a{color:#726a89}
.platform-app:where(:not(.motion-partner-landing)) .saas-page-size a.active{background-color:#efe7ff;border-color:#d5c7ee;color:#7952e8}
.platform-app:where(:not(.motion-partner-landing)) .saas-page-controls a{color:#7952e8}
.platform-app:where(:not(.motion-partner-landing)) .saas-page-controls a[aria-disabled=true]{color:#b0a6bd}
.platform-app:where(:not(.motion-partner-landing)) .workspace-dialog::backdrop{background-color:rgba(25,16,43,.58)}
.platform-app:where(:not(.motion-partner-landing)) .workspace-dialog-surface{background-color:#fbf9ff;border-color:#e1d8fa;box-shadow:0 28px 80px rgba(32,17,53,.24)}
.platform-app:where(:not(.motion-partner-landing)) .workspace-dialog-surface>header{background-color:rgba(251,249,255,.97);border-color:#e1d8fa}
.platform-app:where(:not(.motion-partner-landing)) .workspace-dialog-surface>header span{color:#7952e8}
.platform-app:where(:not(.motion-partner-landing)) .workspace-dialog-surface>header p{color:#726a89}
.platform-app:where(:not(.motion-partner-landing)) .workspace-dialog-surface>header>button{background-color:#fff;border-color:#d5c7ee;color:#625573}
.platform-app:where(:not(.motion-partner-landing)) .workspace-dialog-body label{color:#625573}
.platform-app:where(:not(.motion-partner-landing)) .workspace-dialog-body :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background-color:#fff;border-color:#d5c7ee;color:#2b2845}
.platform-app:where(:not(.motion-partner-landing)) .workspace-modal-form .notice-card{background-color:#352451;border-color:#80639c;color:#fff}
.platform-app:where(:not(.motion-partner-landing)) .workspace-modal-form .notice-card strong{color:#d8c5ff}
.platform-app:where(:not(.motion-partner-landing)) .workspace-modal-form .notice-card p{color:#ddd2eb}

/* Motion Partner landing: colors only. */
.motion-partner-landing{--ink:#2b2845;--ink-soft:#726a89;--muted:#726a89;--line:#e1d8fa;--paper:#fbf9ff;--paper-deep:#f0ebff;--aqua:#7952e8;--aqua-dark:#7952e8;background-color:#fbf9ff;color:#2b2845}
.motion-partner-landing .platform-header{background-color:#f0e9ff;border-color:#e1d8fa;color:#50338e}
.motion-partner-landing .platform-header :is(.brand-lockup,nav a){color:#50338e}
.motion-partner-landing .platform-header .brand-lockup>span{border-color:#cfc0ed}
.motion-partner-landing :is(.button.dark,.button.accent){background-color:#7952e8;border-color:#7952e8;color:#fff}
.motion-partner-landing :is(.button.dark,.button.accent):hover{background-color:#6840d3;border-color:#6840d3;color:#fff}
.motion-partner-landing .partner-landing{background-color:#fbf9ff;border-color:#e1d8fa}
.motion-partner-landing .partner-landing-copy h1{color:#7952e8}
.motion-partner-landing .partner-process-link{color:#7952e8}
.motion-partner-landing .partner-landing-visual{background-color:#352451;color:#fff}
.motion-partner-landing .partner-landing-visual::after{border-color:#9879d3}
.motion-partner-landing .partner-landing-visual>span,.motion-partner-landing .partner-brand-pair i,.motion-partner-landing .partner-visual-flow i{color:#d8c5ff}
.motion-partner-landing .partner-landing-visual p{color:#ddd2eb}
.motion-partner-landing .partner-visual-flow{border-color:#6c528f}
.motion-partner-landing .partner-landing-benefits article{border-color:#c8b4ef}
.motion-partner-landing .partner-landing-process{background-color:#f0ebff;border-color:#e1d8fa}
.motion-partner-landing .partner-landing-process li{border-color:#d5c7ee}
.motion-partner-landing .partner-landing-empty{background-color:#fff;border-color:#d5c7ee}
.motion-partner-landing .partner-landing-history,.motion-partner-landing .partner-landing-application-list>article{border-color:#e1d8fa}
.motion-partner-landing .platform-footer{background-color:#f0ebff;border-color:#e1d8fa;color:#726a89}
.motion-partner-landing .language-trigger{background-color:#fff;border-color:#e1d8fa;color:#2b2845}
.motion-partner-landing .language-trigger:hover{background-color:#efe7ff}
.motion-partner-landing .language-panel{background-color:#fff;border-color:#e1d8fa;color:#2b2845}
.motion-partner-landing .language-panel :is([aria-checked=true],[role=radio]:hover){background-color:#efe7ff}
.motion-partner-landing .language-check{color:#7952e8}
.motion-partner-landing .partner-application-drawer::backdrop{background-color:rgba(25,16,43,.68)}
.motion-partner-landing .partner-application-drawer-surface{background-color:#251b38;color:#fff}
.motion-partner-landing .partner-application-drawer-surface>header{background-color:#2e2144;border-color:#685081}
.motion-partner-landing .partner-application-drawer-surface>header :is(span,p){color:#d8c5ff}
.motion-partner-landing .partner-application-drawer-surface>header>button{border-color:#8b72a8;color:#fff}
.motion-partner-landing :is(.partner-application-identity,.partner-application-sports,.partner-application-contact){border-color:#685081}
.motion-partner-landing .partner-application-sports :is(div,label){border-color:#685081}
.motion-partner-landing .partner-application-form :is(input:not([type=checkbox]),textarea){background-color:#332448;border-color:#8b72a8;color:#fff}
.motion-partner-landing .partner-application-form :is(input[type=checkbox],input[type=radio]){accent-color:#bca1ff}
.motion-partner-landing .partner-application-form small{color:#d8c5ff}

/* Authentication failures remain distinct from the violet portal theme. */
.platform-app [data-testid^="brand-"] [role="alert"]{color:#b42318;background-color:#fff1f0;border:1px solid #f5b5b0;border-radius:10px;padding:12px 14px;font-weight:600;line-height:1.6}

/* Keep authentication controls on the international violet palette despite legacy member theme overrides. */
.platform-app:has([data-testid^="native-"]) {--ink:#2b2845;--ink-soft:#726a89;--muted:#726a89;--line:#e1d8fa;--paper:#fbf9ff;--paper-deep:#f0ebff;--aqua:#7952e8;--aqua-dark:#7952e8;--accent:#7952e8}
.platform-app:has([data-testid^="native-"]) .button.dark,.platform-app :is([data-testid^="native-"],[data-testid^="brand-"]) button[type="submit"] {background:#7952e8!important;border-color:#7952e8!important;color:#fff!important}
.platform-app:has([data-testid^="native-"]) .button.dark:hover,.platform-app :is([data-testid^="native-"],[data-testid^="brand-"]) button[type="submit"]:hover {background:#6840d3!important;border-color:#6840d3!important;color:#fff!important}

/* Reset legacy gradients as well as solid colors in authenticated management controls. */
.platform-app :is(.admin-workspace,.workspace-main) .button.accent,.platform-app .workspace-dialog-trigger.primary {background:#7952e8!important;border-color:#7952e8!important;color:#fff!important}
.platform-app :is(.admin-workspace,.workspace-main) .button.accent:hover,.platform-app .workspace-dialog-trigger.primary:hover {background:#6840d3!important;border-color:#6840d3!important;color:#fff!important}

/* Keep short pages full height without covering long legal or account content. */
.platform-app{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
.platform-app>main{flex:1 0 auto;box-sizing:border-box;width:100%}
.platform-app>.platform-header,.platform-app>.platform-footer{flex-shrink:0}
.platform-app>.platform-footer{margin-top:auto}
