/* One authoritative brand layer across the retained page styles.
   Important declarations are restricted to brand paint, never layout or behavior.
   Neutral body copy, photos and red/amber/green business states remain legible. */
:root{
 --brand-gradient:linear-gradient(110deg,#635af4,#308efa);
 --brand-action-gradient:linear-gradient(110deg,#5a4fe5,#246ecb);
 --brand-hover-gradient:linear-gradient(110deg,#5142d1,#1e5eb5);
 --brand-text-gradient:linear-gradient(110deg,#5545c8,#236bc7);
 --brand-soft-gradient:linear-gradient(110deg,#f4f7fb,#edf3fa);
 --brand-card-gradient:linear-gradient(145deg,#f8fafc,#ffffffed 58%,#edf3fa);
 --brand-pale-gradient:linear-gradient(115deg,#ece8ff,#e4efff);
 --brand-selected-soft-gradient:linear-gradient(110deg,#f1edff,#edf5ff);
 --brand-dark-gradient:linear-gradient(115deg,#30205c,#233464 55%,#154678);
 --brand-on-dark-text-gradient:linear-gradient(110deg,#c5baff,#9cd0ff);
 --brand-line:#dfe7f1;
}
body{--blue:#5545c8;--blue-soft:#f1f5fa;--action-gradient:var(--brand-gradient)}
body.scheduling-home{--scene-background:linear-gradient(110deg,#f7f8fa,#f1f5f9 50%,#eaf1f9);--ending-background:var(--brand-soft-gradient)}
body.design02-page{--blue:#5545c8;--blue-soft:#f1f5fa;--mes-green:#5545c8;--mes-green-soft:#f1f5fa}
/* A restrained grey-blue canvas spans navigation and content continuously. */
html body.textured-page{background:radial-gradient(ellipse 900px 650px at 0 180px,#dce7f25c,transparent 80%),linear-gradient(115deg,#f7f9fc,#fff 45%,#eef4fa)}
html body.textured-page::before{filter:saturate(.25);opacity:.24}
html body.textured-page::after{background:radial-gradient(ellipse at 0 30%,#dae5f238,transparent 23%),radial-gradient(ellipse at 100% 47%,#e0e9f238,transparent 22%),radial-gradient(ellipse at 10% 69%,#e3ebf42e,transparent 21%),radial-gradient(ellipse at 100% 92%,#dfe9f238,transparent 26%)}

/* Filled actions keep white labels; smaller text uses a darker, readable ramp. */
html body :is(.btn-primary,.btn-dark,.button-primary,.button.primary,.nav-cta,.nav-consult,.filter-btn[aria-pressed="true"],.contact-topic-nav [aria-pressed="true"],.scenario-links [aria-pressed="true"],.scenario-tabs [aria-pressed="true"],.scenario-links .is-active,.check-circle,.skip,.skip-link){
 background:var(--brand-action-gradient)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:transparent;
}
@media(hover:hover) and (pointer:fine){
 html body :is(.btn-primary,.btn-dark,.button-primary,.button.primary,.nav-cta,.nav-consult,.filter-btn[aria-pressed="true"],.contact-topic-nav [aria-pressed="true"],.scenario-links [aria-pressed="true"]):not(:disabled,[aria-disabled="true"]):hover{background:var(--brand-hover-gradient)!important}
}
html body :is(.brand-mark i,.brand-symbol i,.brand-mark,.studio-name-line,.book-line,.studio-career-track,.studio-connected-line,.studio-learning-line,.dot){background:var(--brand-gradient)!important}
html body :is(.eyebrow,.closing-eyebrow)::before{background:var(--brand-gradient)!important}
/* Home/inner-page marks consist of bars; keep their containing box transparent. */
html body:is(.scheduling-home,.design02-page) :is(.brand-mark,.brand-symbol){background:transparent!important}
html body :is(.main-navigation,.nav)>a[aria-current="page"]::after,
html body .nav-active::after,
html body .nav-group.is-current .nav-group-row>a::after,
html body .more-tabs [aria-selected="true"]::after,
html body .tabs button.active::after{background:var(--brand-gradient)!important}

/* Clear, stable focus indication alongside the decorative gradients. */
html body :is(a,button,input,select,textarea,summary):focus-visible{outline-color:#7660e7!important}
html body :is(input,select,textarea):focus{border-color:#7660e7!important}
html body :is(.menu-toggle,.nav-submenu-toggle){color:#6352cf}
html body .menu-toggle{background:var(--brand-soft-gradient)!important}
html body :is(.nav-submenu,.dialog-header){background:var(--brand-soft-gradient)!important}

/* Brand surfaces; the strength of the gradient follows the existing hierarchy. */
html body :is(.custom-service,.service-card.featured,.more-featured,.studio-guide-cover,.studio-display-label,.studio-library-back,.studio-name-line,.mes-metric-bars>span){background:var(--brand-gradient)!important}
html body :is(.section-dark,.quote-card,.cta-band,.service-level.custom,.auth-intro,.toast:not(.is-error),.ux-image-hint,.pmc-office-zoom){background:var(--brand-dark-gradient)!important}
html body :is(.section-dark,.quote-card,.cta-band,.custom-service,.service-card.featured,.more-featured){color:#fff}
html body .studio-guide-cover :is(h2,p,.studio-cover-top,.studio-cover-bottom,svg){color:#fff!important;-webkit-text-fill-color:#fff!important;background-image:none!important}
html body :is(.studio-mes-stage,.studio-training-stage)::before{background:var(--brand-gradient)!important}
html body :is(.studio-person-backdrop,.studio-person-name,.studio-career,.studio-rail,.studio-node-input,.studio-learning-card,.studio-resource-pair>a,.book-stage,.founder-profile,.side-card,.proof-grid,.business-diagram,.responsibility-map){background:var(--brand-card-gradient)!important}
html body :is(.section-blue,.mes-rollout,.closing-section,.contact-channel-box,.answer-box,.reading-next,.evidence-note,.status-note,.form-mode-note,.problem-guide,.mode-context,.industry-contact-fields,.form-result,.knowledge-empty,.download-kit,.home-demo-feedback,.home-job-detail,.dash-insight,.job-detail,.pmc-context,.scene-evidence,.patent-facts,.research-count,.patent-status,.patent-card-state,.chain-index,.research-detail,.diagram-caption,.training-facts>div,.version-comparison,.decision-details>summary,.mes-research-summary-icon){background:var(--brand-soft-gradient)!important}
/* Passive form guidance must not look like an input or a selectable option. */
html body.contact-page .form-card :is(.form-mode-note,.problem-guide){background:transparent!important;border:0;border-radius:0;padding:0;box-shadow:none;color:#58718f;font-size:12px;line-height:1.75;cursor:auto;transform:none;transition:none}
html body.contact-page .form-card .form-mode-note{margin:12px 0 24px}
html body.contact-page .form-card .form-mode-note::before{content:"提交说明 · ";font-weight:600;color:#3c5876}
html body.contact-page .form-card .problem-guide{margin:0 0 8px}
html body.contact-page .form-card .problem-guide::before{content:"填写参考：";font-weight:500;color:#3c5876}
html body :is(.knowledge-search,.article-side,.form-card,.research-group:not(.research-group-mes)){background:var(--brand-card-gradient)!important}
html body :is(.patent-document,.mes-image-button){background:linear-gradient(130deg,#f9fbfd,#f0f5fa)!important}
html body :is(.page-hero,.article-hero,.knowledge-hero,.studio-hero){background:linear-gradient(115deg,#fff 12%,#f5f8fb 60%,#edf3fa)!important}
/* Textured pages share one canvas with the header; no separate hero color band. */
html body.textured-page main>:is(.page-hero,.article-hero,.knowledge-hero,.studio-hero){background:transparent!important}
html body .site-footer{background:var(--brand-card-gradient)!important}
html body .icon-box{background:var(--brand-gradient)!important;color:#fff!important}
html body :is(.column-reading-icon,.column-callout-icon){background:var(--brand-soft-gradient)!important;color:#6352cf}
html body :is(.data-table,.decision-table,.comparison-table) :is(th,caption){background:var(--brand-soft-gradient)!important}
html body .comparison-ours{background:var(--brand-soft-gradient)!important}
html body .decision-table tr:nth-child(even){background:linear-gradient(110deg,#f8fafc,#f5f8fc)!important}
html body .pmc-plan.is-selected{background:var(--brand-selected-soft-gradient)!important;border-color:#8b7ae3!important}
html body :is(.scenario-tabs,.scenario-links button:not([aria-pressed="true"]),.dash-metric:not(.warning,.caution)){background:var(--brand-soft-gradient)!important}
html body :is(.mes-capability-evidence,.mes-result,.mes-flow-visual,.mes-version-grid article:first-child,.mes-capability-board){background:var(--brand-card-gradient)!important}
html body .mes-version-grid article:first-child{--version-tint:#eef3f9;--version-ink:#6352cf}
html body .mes-flow-list>li:first-child{--flow-soft:#eef3f9;--flow-accent:#6352cf;--flow-line:var(--brand-line)}
html body .mes-scene:first-child{--scene-tint:#eef3f9;--scene-accent:#6352cf;--scene-stroke:var(--brand-line);background:var(--brand-card-gradient)!important}
html body .mes-feature-grid>article:nth-child(3n+1){--feature-soft:#eef3f9;--feature-ink:#6352cf;background:var(--brand-card-gradient)!important}
html body .mes-inspired{--module-ink:#6352cf;--module-soft:#eef3f9;--module-line:var(--brand-line)}
html body :is(#factory-method .process-strip>div:nth-child(3n+1),#factory-directions .card:first-child,#roles .role-card:first-child,#training-outcomes .card:first-child,#team .card:first-child,#curriculum .module:nth-child(3n+1),.knowledge-card[data-category="qa"]){--module-ink:#6352cf;--module-soft:#eef3f9;--module-line:var(--brand-line);background:var(--brand-card-gradient)!important}
html body :is(.card:not(.featured),.knowledge-card,.mes-scene,.module,.role-card,.research-group,.mes-version-grid article){background:var(--brand-card-gradient)!important;--module-soft:#eef3f9!important;--scene-tint:#eef3f9!important;--feature-soft:#eef3f9!important;--version-tint:#eef3f9!important}
html body :is(#workflow .workflow-example>div:last-child,#career-story .timeline-item:nth-child(3n+1),#mes-reading .knowledge-card:first-child){background:var(--brand-card-gradient)!important}
html body :is(#factory-directions .card:first-child .icon-box,#roles .role-card:first-child>.column-art-icon,#training-outcomes .card:first-child .icon-box){background:var(--brand-gradient)!important;color:#fff!important}
html body :is(.icon-box,.service-icon,.studio-icon-tile,.studio-index,.module-num,.mes-scene-index,.mes-flow-number,.chain-index,.mes-capability-icon,.mes-feature-icon){border-color:var(--brand-line)}
html body :is(.studio-index,.studio-icon-tile,.chain-index,.mes-capability-icon,.mes-feature-grid>article:nth-child(3n+1) .mes-feature-icon){background:var(--brand-soft-gradient)!important;color:#6352cf}
html body #curriculum .module:nth-child(3n+1) .module-num{background:var(--brand-soft-gradient)!important}
html body .scene-card{--scene-surface-mid:#f5f8fc;--scene-surface-end:#e8f0fa}
html body .scene-card:first-child{--scene-start:#635af4;--scene-end:#308efa;--scene-ink:#fff}
html body .scene-card-main{background:linear-gradient(115deg,#fff 4%,#f5f8fc 48%,#e8f0fa)!important}
html body .scene-card:first-child .scene-card-footer{background:var(--brand-gradient)!important}
html body .gantt-row{background-color:#f8fbfe}
/* Blue simulation states retain their labels and position, with the new palette. */
html body :is(.job-bar.is-urgent,.job-bar.job-urgent:not(.job-late,.job-tight)){background:var(--brand-action-gradient)!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
html body .home-demo-key span:last-child::before{background:var(--brand-gradient)!important}
html body .job-normal:not(.job-urgent){background:var(--brand-soft-gradient)!important;color:#4d4682}
html body .gantt-legend>span:first-child i{background:var(--brand-soft-gradient)!important}

/* The workflow is a sequence, not a selected action. Keep 01 and its label clear. */
html body :where(.mes-flow-step){background:transparent!important}
/* Replace the legacy dark case surface before applying gradient emphasis below. */
html body :where(#mes-cases .mes-case:first-child){background:var(--brand-selected-soft-gradient)!important;border-color:var(--brand-line)!important;box-shadow:0 12px 30px -24px #2c506f55}
html body :where(#mes-cases .mes-case:first-child h3,#mes-cases .mes-case:first-child dd){color:#173452!important}
html body :where(#mes-cases .mes-case:first-child p,#mes-cases .mes-case:first-child dt,#mes-cases .mes-case:first-child .mes-case-top,#mes-cases .mes-case:first-child .mes-case-metric>span){color:#536a83!important}
html body :where(#mes-cases .mes-case:first-child .mes-case-top>span:first-child){background:var(--brand-selected-soft-gradient);border-color:#dcd7f2;color:#5545c8}
html body :where(#mes-cases .mes-case:first-child .mes-case-metric){background:var(--brand-card-gradient)!important;border-color:var(--brand-line)!important}
html body :where(#mes-cases .mes-case:first-child .mes-case-metric strong,#mes-cases .mes-case:first-child .mes-case-metric strong>span){color:#5545c8!important}
html body :where(#mes-cases .mes-case:first-child dl>div){border-color:#dce3ef!important}

/* Text clipping is scoped to brand emphasis. SVG icons keep a visible currentColor. */
@supports ((background-clip:text) or (-webkit-background-clip:text)){
 html body :where(
  .hero h1>span,.hero h1 em,.hero-text h1 em,.section-heading h2>span:not(.title-phrase),.section h2>span,.closing-card h2>span,
  .page-hero h1 em,.article-hero h1 em,.knowledge-hero h1 em,.studio-hero h1 em,
  .text-link:not(.scene-card-footer),.service-note a,.schedule-footer a,.hero-scene-link,.hero-lead,.article a:not(.btn,.button),.research-links a,.research-records a,
  .library-scenes a,.contact-resource a,.contact-topic-nav:not([aria-pressed]) a,.form-privacy a,.knowledge-suggestions button,
  .main-navigation>a[aria-current="page"],.main-navigation .nav-active,.nav>a[aria-current="page"]:not(.btn),.nav-group.is-current .nav-group-row>a,
  .eyebrow,.closing-eyebrow,.mes-hero-eyebrow,.research-group-kicker,.mes-proof-link strong,.mes-evidence-link,
  .mes-case-metric strong,.mes-case-metric strong>span,.mes-evidence-copy strong,.mes-scene:first-child .mes-result strong,.module-num,.column-method-top>strong,.process-strip strong,
  .mes-feature-grid>article>span,.studio-career strong,.founder-milestones time,.mes-version-name,.mes-version-step,
  .research-count,.patent-status,.patent-card-state,.answer-box>strong,.studio-learning-steps>span,
  .proof-number:not([data-counter-ready]),.proof-number-visual,.knowledge-card[data-category="qa"] .knowledge-kind,.research-topic-links a,
  .knowledge-card[data-category="qa"] .knowledge-card-foot a,.timeline-item:nth-child(3n+1) .year,
  #factory-method .process-strip>div:nth-child(3n+1) .column-method-top>strong,
  #roles .role-card:first-child :is(.badge,dt),.tabs button.active
 ){
  color:#5545c8!important;background-image:var(--brand-text-gradient)!important;
  background-clip:text!important;-webkit-background-clip:text!important;-webkit-text-fill-color:transparent!important;
 }
 html body :where(.hero h1>span,.section h2>span,.closing-card h2>span,.page-hero h1 em,.studio-hero h1 em,.knowledge-hero h1 em,.mes-case-metric strong,.proof-number:not([data-counter-ready]),.proof-number-visual){background-image:var(--brand-gradient)!important}
 /* Case data uses the darker ramp to stay clear across pale metric panels. */
 html body :where(.mes-case-metric strong){background-image:var(--brand-text-gradient)!important}
 /* Outline actions and tinted labels need independent text and surface layers. */
 html body :where(.btn-secondary,.btn-white,.button-soft,.button-outline,.button-white,.hero-eyebrow,.simulation-label,.service-status,.patent-status,.patent-card-state,.research-count,.mes-zoom,.badge:not(.badge-green,.badge-orange),.studio-index,.chain-index,.responsibility-map li:nth-child(odd)>span,.mes-scene:first-child .mes-scene-index,.mes-flow-list>li:first-child .mes-flow-number,.knowledge-card[data-category="qa"] .knowledge-kind,#roles .role-card:first-child .badge,.timeline-item:nth-child(3n+1) .year){
  color:#5545c8!important;-webkit-text-fill-color:transparent!important;
  background-image:var(--brand-text-gradient),linear-gradient(#fff,#fff)!important;
  background-clip:text,padding-box!important;-webkit-background-clip:text,padding-box!important;
 }
 html body :where(.hero-eyebrow,.simulation-label,.service-status,.patent-status,.patent-card-state,.research-count,.badge:not(.badge-green,.badge-orange),.studio-index,.chain-index,.responsibility-map li:nth-child(odd)>span,.mes-scene:first-child .mes-scene-index,.mes-flow-list>li:first-child .mes-flow-number,.knowledge-card[data-category="qa"] .knowledge-kind,.timeline-item:nth-child(3n+1) .year){background-image:var(--brand-text-gradient),var(--brand-soft-gradient)!important}
 html body .custom-service .service-status{background-image:var(--brand-text-gradient),linear-gradient(#ffffffcf,#ffffffcf)!important}
 html body :is(.more-section,.section-dark,.quote-card,.cta-band,.auth-intro) :is(.eyebrow,.text-link){background-image:var(--brand-on-dark-text-gradient)!important}
 html body .more-kicker{color:#c5baff;background-image:var(--brand-on-dark-text-gradient)!important;background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent}
 @media(hover:hover) and (pointer:fine){
  html body :where(.main-navigation>a:not(.nav-cta),.nav>a:not(.btn),.nav-group-row>a,.footer-navigation a,.site-footer a:not(.brand),.knowledge-card h3 a):hover{color:#5545c8!important;background-image:var(--brand-text-gradient)!important;background-clip:text!important;-webkit-background-clip:text!important;-webkit-text-fill-color:transparent!important}
 }
}
html body :is(.side-icon,.scene-category .icon,.circle-link,.service-icon,.dash-insight>svg,.industry-card-top svg){color:#6352cf}
/* SVG accents use the shared gradient definition rather than invisible text fill. */
html body :is(.side-icon,.scene-category .icon,.circle-link .icon,.service-icon){stroke:url('#site-brand-gradient')}
html body .connections{stroke:url('#site-brand-gradient')}

@media(max-width:940px){
 html body :is(.nav,.main-navigation)>a[aria-current="page"]:not(.btn,.button){background-image:var(--brand-text-gradient),var(--brand-selected-soft-gradient)!important;background-clip:text,padding-box!important;-webkit-background-clip:text,padding-box!important}
}
/* Unselected controls use the neutral surface; selected controls retain the brand. */
html body :is(.scenario-links button[aria-pressed="false"],.scenario-tabs button[aria-pressed="false"],.contact-topic-nav button[aria-pressed="false"],.filter-btn[aria-pressed="false"],.knowledge-suggestions button,.pmc-plan:not(.is-selected) [data-plan-button]){background:var(--brand-soft-gradient)!important;background-clip:border-box!important;-webkit-background-clip:border-box!important;color:#536a83!important;-webkit-text-fill-color:#536a83!important}
html body .more-section{background:linear-gradient(110deg,#f6f8fb,#edf3fa)!important;color:#173452!important}
html body .more-section h2{color:#173452!important}
html body .more-section .eyebrow{background-image:var(--brand-text-gradient)!important}
html body .more-section .more-peek{background:var(--brand-pale-gradient)!important;color:#536a83;border-color:#d9ddf4;box-shadow:0 10px 24px -20px #45617c55}
html body .more-section .more-peek-art{opacity:.42}
html body .more-section .more-peek span{text-shadow:none;color:#536a83}
html body .more-section .more-tabs{border-color:var(--brand-line)}
html body .more-section .more-tabs button{color:#60758e}
html body .more-section .more-tabs button[aria-selected="true"]{color:#5545c8}
html body .more-section .more-controls{color:#60758e}
html body .more-section .more-controls button{background:var(--brand-soft-gradient);color:#6352cf;border-color:var(--brand-line)}
@media print{
 html body *{background-image:none!important;-webkit-text-fill-color:currentColor!important}
 html body :is(h1,h2,h3,h4,p,span,strong,em,a,li,td,th,caption,.eyebrow,.module-num,.year){color:#173452!important}
 html body :is(.more-section,.section-dark,.quote-card,.cta-band,.custom-service,.service-card.featured,.more-featured){background:#fff!important;color:#173452!important}
 html body .proof-number-final{color:#173452!important;-webkit-text-fill-color:#173452!important}
}
@media(forced-colors:active){
 html body :is(a,button,h1,h2,h3,em,strong,span,.eyebrow,.module-num,.year){background-image:none!important;-webkit-text-fill-color:currentColor!important}
 html body :is(.side-icon,.scene-category .icon,.circle-link .icon,.service-icon,.connections){stroke:currentColor}
}

/* Front-office form geometry; keep long consent text aligned to its first line. */
html body.contact-page .field :is(input:not([type=checkbox]):not([type=radio]),select){height:48px;min-height:48px;line-height:1.5;padding-top:0;padding-bottom:0}
html body.contact-page .field select{appearance:none;-webkit-appearance:none;padding-right:38px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23587090' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}
html body.contact-page .check-field{align-items:flex-start;line-height:1.8;gap:10px}
html body.contact-page .check-field input[type=checkbox]{width:18px;height:18px;flex:0 0 18px;margin:3px 0 0;padding:0}
html body.contact-page .next-steps li::before{box-sizing:border-box;line-height:1}
html body .knowledge-search-row{align-items:center}
html body .knowledge-search-row>input,html body .knowledge-search-row>button{height:44px;min-height:44px;margin-top:0;margin-bottom:0;line-height:1.4}
@media(forced-colors:active){html body.contact-page .field select{appearance:auto;-webkit-appearance:auto;background-image:none}}
