/* 10.4.3: consistent image surfaces, readable actions and visible status. */
body.ecu-mercury{
 --mc-success:#87d7af;--mc-success-surface:#18392f;
 --mc-warning:#f2c879;--mc-warning-surface:#3c3020;
 --mc-danger:#ffadb7;--mc-danger-surface:#422730;
 --mc-focus:#91c8ef;--mc-selection:#234b70;
}
html[data-theme="light"] body.ecu-mercury{
 --mc-success:#166a48;--mc-success-surface:#e8f5ee;
 --mc-warning:#855617;--mc-warning-surface:#fff4df;
 --mc-danger:#a72a3b;--mc-danger-surface:#fff0f2;
 --mc-focus:#1769aa;--mc-selection:#d4e9f9;
}

/* White product photographs keep their original surface and colours. */
body.ecu-mercury img.ecu-photo-product,
html[data-theme="light"] body.ecu-mercury img.ecu-photo-product{
 background:#fff!important;mix-blend-mode:normal!important;
 filter:none!important;opacity:1!important;
}
body.ecu-mercury .module-choice-photo:has(>.ecu-photo-product),
html[data-theme="light"] body.ecu-mercury .module-choice-photo:has(>.ecu-photo-product){background:#fff!important;}
body.ecu-mercury .module-choice-photo img{mix-blend-mode:normal;filter:none;opacity:1;}
body.ecu-mercury .module-choice-photo{padding:0;}
body.ecu-mercury .service-hero-grid>.ecu-photo-product{
 display:block;width:100%;height:auto!important;aspect-ratio:4/3;
 max-height:360px;padding:14px;border:1px solid var(--mc-line);
 border-radius:16px;object-fit:cover!important;
}
body.ecu-mercury .service-card>img.ecu-photo-product{
 display:block;width:100%;height:auto!important;aspect-ratio:4/3;
 max-height:250px;padding:10px 16px;object-fit:cover!important;
 border-bottom:1px solid var(--mc-line);border-radius:0;
}
body.ecu-mercury :is(.service-hero-grid,.service-card)>img.ecu-photo-product[data-photo-fit="contain"]{object-fit:contain!important;}
body.ecu-mercury :is(.module-choice-photo,.service-work-photo,.service-image) .ecu-photo-scene{
 filter:none;mix-blend-mode:normal;opacity:1;
}
body.ecu-mercury :is(.ecu-card-photo,.journal-card-media,.news-card-photo){
 overflow:hidden;isolation:isolate;background:var(--mc-card);
}
body.ecu-mercury :is(.ecu-card-photo,.journal-card-media,.news-card-photo)>img{
 display:block;width:100%;height:100%;object-fit:cover;
 filter:none;mix-blend-mode:normal;opacity:1;
}
body.ecu-mercury .journal-card-media>span{
 background:var(--mc-card);color:var(--mc-ink);
 border:1px solid var(--mc-line);line-height:1.4;padding:6px 10px;
}

/* Collaborators: one consistent frame, intact marks, useful contact targets. */
body.ecu-mercury .partner-network{padding:30px 0;background:var(--mc-card);}
body.ecu-mercury .partner-network-shell{display:block;}
body.ecu-mercury .partner-network-heading{
 display:block;text-align:left;margin:0 0 20px;max-width:none;
}
body.ecu-mercury .partner-network-heading .ecu-kicker{font-size:10px;letter-spacing:.14em;color:var(--mc-muted);}
body.ecu-mercury .partner-network-heading h2{font:480 25px/1.2 var(--mc-display);margin:6px 0 0;}
body.ecu-mercury .partner-network-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
body.ecu-mercury .partner-network-card{
 display:grid;grid-template-columns:124px minmax(0,1fr) 36px;
 align-items:center;gap:20px;padding:18px 20px;min-height:108px;
 border-radius:14px!important;overflow:visible;text-decoration:none;
 transition:border-color .2s,background-color .2s;
}
body.ecu-mercury .partner-network-logo{
 display:flex;align-items:center;justify-content:center;
 width:124px;min-width:124px;height:72px;padding:8px!important;
 background:#fff!important;border:0;border-radius:10px;
 overflow:hidden;isolation:isolate;
}
html[data-theme="light"] body.ecu-mercury .partner-network-logo{background:#fff!important;}
body.ecu-mercury .partner-network-logo img{
 display:block;width:100%;height:auto;max-width:100%;max-height:100%;
 object-fit:contain;filter:none;mix-blend-mode:normal;opacity:1;
}
body.ecu-mercury .partner-name-display{
 display:flex;flex-direction:column;align-items:center;justify-content:center;
 gap:3px;width:100%;line-height:1.05;white-space:nowrap;
}
body.ecu-mercury .partner-name-display :is(small,strong){display:block;color:#17435b!important;}
body.ecu-mercury .partner-name-display small{font:500 9px/1.1 var(--mc-ui);letter-spacing:.18em;}
body.ecu-mercury .partner-name-display strong{font:700 29px/1 var(--mc-ui);letter-spacing:.035em;}
body.ecu-mercury .partner-network-copy{gap:4px;min-width:0;overflow-wrap:break-word;}
body.ecu-mercury .partner-network-copy>b{font:500 15px/1.35 var(--mc-ui);color:var(--mc-ink);}
body.ecu-mercury .partner-network-copy>small{font:400 12px/1.45 var(--mc-ui);color:var(--mc-secondary);}
body.ecu-mercury .partner-network-copy>em{font:500 12px/1.5 var(--mc-ui);color:var(--mc-link);}
body.ecu-mercury .partner-network-action{
 display:grid;width:36px;height:36px;margin:0;padding:9px;
 color:var(--mc-link);background:var(--mc-tint);border-radius:50%;
}
body.ecu-mercury .partner-network-card:is(:hover,:focus-visible){border-color:var(--mc-link)!important;transform:none!important;}
body.ecu-mercury .partner-network-card:hover .partner-network-copy>em{text-decoration:underline;text-underline-offset:3px;}

/* Cards keep the same image baseline and a clear, comfortably sized link. */
body.ecu-mercury :is(.service-card,.journal-card){display:flex;flex-direction:column;}
body.ecu-mercury :is(.service-card-body,.journal-card-content){display:flex;flex-direction:column;flex:1;}
body.ecu-mercury .service-card-body>a{margin-top:auto;min-height:44px;display:inline-flex;align-items:center;padding-top:12px;}
body.ecu-mercury .journal-card-link{margin-top:auto;min-height:44px;display:inline-flex;align-items:center;}
html[data-theme="light"] body.ecu-mercury :is(.home-discovery,.home-process-section){background:#eef3f8!important;}
html[data-theme="light"] body.ecu-mercury .discovery-shell{background:transparent!important;border:0!important;box-shadow:none!important;}

/* Hover and keyboard focus must remain legible in both palettes. */
body.ecu-mercury :focus-visible{outline:3px solid var(--mc-focus);outline-offset:4px;}
html[data-theme="light"] body.ecu-mercury :is(.btn,.commerce-primary,.agent-button,.plan-action):hover,
body.ecu-mercury :is(.btn,.commerce-primary,.agent-button,.plan-action):hover{
 background:#12548a!important;border-color:#12548a!important;color:#fff!important;
}
html[data-theme="light"] body.ecu-mercury :is(.btn-ghost,.btn-secondary,.btn-light,.btn-outline-light):hover,
body.ecu-mercury :is(.btn-ghost,.btn-secondary,.btn-light,.btn-outline-light):hover{
 background:var(--mc-tint)!important;color:var(--mc-link)!important;border-color:var(--mc-link)!important;
}
body.ecu-mercury :is(.btn,.commerce-primary,.agent-button) :is(span,b,strong,svg){color:inherit!important;}
body.ecu-mercury :is(.ecu-service-card,.journal-card,.service-card,.fixed-service-card,.shop-card):hover{transform:none!important;}
body.ecu-mercury ::selection,
html[data-theme="light"] body.ecu-mercury ::selection{background:var(--mc-selection);color:var(--mc-ink);}

/* State colours carry meaning: signature, repair progress and online status. */
body.ecu-mercury .repair-authorization.is-pending{color:var(--mc-danger)!important;}
body.ecu-mercury .repair-authorization.is-authorized{color:var(--mc-success)!important;}
html[data-theme="light"] body.ecu-mercury .repair-authorization i,
body.ecu-mercury .repair-authorization i{background:var(--mc-danger)!important;box-shadow:none;}
html[data-theme="light"] body.ecu-mercury .repair-authorization.is-authorized i,
body.ecu-mercury .repair-authorization.is-authorized i{background:var(--mc-success)!important;}
body.ecu-mercury :is(.progress-track,.customer-progress,.form-completion progress){background:var(--mc-line);}
body.ecu-mercury :is(.progress-track,.customer-progress)>i{background:var(--mc-action);}
html[data-theme="light"] body.ecu-mercury .form-completion progress::-webkit-progress-bar,
body.ecu-mercury .form-completion progress::-webkit-progress-bar{background:var(--mc-line);}
body.ecu-mercury .form-completion progress::-webkit-progress-value{background:var(--mc-action);}
body.ecu-mercury .form-completion progress::-moz-progress-bar{background:var(--mc-action);}
html[data-theme="light"] body.ecu-mercury :is(.timeline-mini>div.done>span,.repair-history .history-current:before),
body.ecu-mercury :is(.timeline-mini>div.done>span,.repair-history .history-current:before){background:var(--mc-action);border-color:var(--mc-action);}
html[data-theme="light"] body.ecu-mercury :is(.live-dot,.pro-online-dot),
body.ecu-mercury :is(.live-dot,.pro-online-dot){background:var(--mc-success)!important;}

@media(max-width:1000px){
 body.ecu-mercury .partner-network-card{grid-template-columns:108px minmax(0,1fr);gap:14px;padding:16px;}
 body.ecu-mercury .partner-network-logo{width:108px;min-width:108px;height:68px;}
 body.ecu-mercury .partner-network-action{display:none;}
}
@media(max-width:700px){
 body.ecu-mercury .partner-network-list{grid-template-columns:1fr;gap:12px;}
 body.ecu-mercury .partner-network-card{grid-template-columns:108px minmax(0,1fr) 32px;gap:16px;padding:14px 16px;min-height:100px;}
 body.ecu-mercury .partner-network-action{display:grid;width:32px;height:32px;padding:8px;}
 body.ecu-mercury .partner-network-heading{display:block;margin-bottom:18px;}
 body.ecu-mercury .partner-network-heading h2{font-size:23px;}
 body.ecu-mercury .service-hero-grid>.ecu-photo-product{max-height:320px;padding:12px;}
}
@media(max-width:420px){
 body.ecu-mercury .partner-network-card{grid-template-columns:96px minmax(0,1fr);gap:14px;padding:14px;}
 body.ecu-mercury .partner-network-logo{width:96px;min-width:96px;height:66px;padding:5px!important;}
 body.ecu-mercury .partner-network-copy>b{font-size:14px;}
 body.ecu-mercury .partner-network-action{display:none;}
}
@media(prefers-reduced-motion:reduce){
 body.ecu-mercury :is(.partner-network-card,.btn,.commerce-primary,.agent-button){transition:none!important;}
 body.ecu-mercury :is(.btn,.commerce-primary,.agent-button):hover{transform:none!important;}
}

/* A full-width photographic opening, from the complete bench to the PCB. */
body.ecu-mercury .workbench-hero.workbench-immersive{
 --mc-ink:#f4f8fc;--mc-secondary:#dce7f1;--mc-muted:#bfd0df;--mc-link:#b5dcf7;
 --mc-ink-rgb:244,248,252;--mc-secondary-rgb:220,231,241;
 --bench-header-height:81px;height:190svh;margin-top:0;background:#091725;
 border:0!important;border-radius:0!important;box-shadow:none!important;
}
body.ecu-mercury .workbench-immersive .workbench-sticky{
 position:sticky;top:var(--bench-header-height);height:calc(100svh - var(--bench-header-height));min-height:580px;
 max-height:none;display:block;padding:0;background:#091725;
}
body.ecu-mercury .workbench-immersive .workbench-scene{
 position:absolute;inset:0;display:block;width:100%;height:100%;
 min-height:0;max-height:none;flex:none;margin:0;border:0;border-radius:0;
 overflow:hidden;transform:none!important;mask-image:none;background:#091725;
}
body.ecu-mercury .workbench-immersive .workbench-scene picture{
 position:absolute;inset:0;display:block;width:100%;height:100%;
 will-change:transform,opacity;
}
body.ecu-mercury .workbench-immersive .workbench-scene img{
 display:block;width:100%;height:100%;max-width:none;object-fit:cover;
 object-position:50% 57%;border:0;border-radius:0;padding:0;
}
body.ecu-mercury .workbench-immersive .workbench-far{
 transform:translate3d(0,var(--bench-pan-y,0px),0) scale(var(--bench-scale,1));
 transform-origin:50% 57%;
}
body.ecu-mercury .workbench-immersive .workbench-near{
 opacity:var(--bench-detail-opacity,0);
 transform:translate3d(0,var(--bench-near-pan-y,0px),0) scale(var(--bench-near-scale,.355));
 transform-origin:50% 58%;
 mask-image:radial-gradient(ellipse at 50% 58%,#000 56%,transparent 92%);
}
body.ecu-mercury .workbench-immersive .workbench-shade{
 position:absolute;inset:0;display:block;z-index:2;pointer-events:none;
 background:linear-gradient(180deg,#07131fe8 0%,#07131f78 25%,#07131f08 56%,#07131f12 75%,#07131fbd 100%);
 opacity:var(--bench-shade-opacity,1);
}
body.ecu-mercury .workbench-immersive .workbench-copy{
 position:absolute;top:clamp(36px,6svh,76px);left:0;right:0;
 width:min(1000px,calc(100% - 48px));margin-inline:auto;padding:0;z-index:4;
}
body.ecu-mercury .workbench-immersive .workbench-copy h1{font-size:clamp(34px,4vw,52px);line-height:1.12;margin:18px auto;}
body.ecu-mercury .workbench-immersive .workbench-copy>p{font-size:15px;max-width:510px;line-height:1.6;}
body.ecu-mercury .workbench-immersive .workbench-copy .ecu-actions{margin-top:22px;}
body.ecu-mercury .workbench-immersive .workbench-secondary{
 color:#fff!important;background:#0b213b91!important;border-color:#d4e6f782!important;
}
body.ecu-mercury .workbench-immersive .workbench-secondary:hover{background:#12395a!important;border-color:#e3f1ff!important;}
body.ecu-mercury .workbench-immersive .workbench-bottom{
 position:absolute;left:0;right:0;bottom:20px;z-index:5;margin:0 auto;
 width:min(1280px,calc(100% - 48px));max-width:1280px;padding:0 64px 0 0;
 display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:20px;
}
body.ecu-mercury .workbench-immersive :is(.workbench-detail-toggle,.workbench-controls .effects-toggle){
 color:#f4f8fc!important;background:#081a2dcc!important;border-color:#d4e6f766!important;
 font-size:11px;min-height:40px;padding:9px 13px;
}
body.ecu-mercury .workbench-immersive .workbench-caption{color:#dce7f1;}
body.ecu-mercury .workbench-immersive .workbench-scroll-cue{color:#f4f8fc;}
body.ecu-mercury .workbench-immersive:not(.workbench-enhanced){height:auto;}
body.ecu-mercury .workbench-immersive:not(.workbench-enhanced) .workbench-sticky{position:relative;top:0;}
@media(max-width:900px){
 body.ecu-mercury .workbench-immersive .workbench-bottom{grid-template-columns:1fr auto;}
}
@media(max-width:700px){
 body.ecu-mercury .workbench-hero.workbench-immersive{--bench-header-height:67px;height:185svh;margin-top:0;}
 body.ecu-mercury .workbench-immersive .workbench-sticky{top:var(--bench-header-height);height:calc(100svh - var(--bench-header-height));min-height:574px;}
 body.ecu-mercury .workbench-immersive .workbench-scene img{object-position:50% 52%;}
 body.ecu-mercury .workbench-immersive .workbench-far{transform-origin:50% 52%;}
 body.ecu-mercury .workbench-immersive .workbench-near{transform-origin:50% 62%;mask-image:radial-gradient(ellipse at 50% 62%,#000 54%,transparent 94%);}
 body.ecu-mercury .workbench-immersive .workbench-copy{top:28px;width:calc(100% - 36px);}
 body.ecu-mercury .workbench-immersive .workbench-copy h1{font-size:clamp(24px,6.5vw,32px);line-height:1.12;margin:14px auto;}
 body.ecu-mercury .workbench-immersive .workbench-copy>p{font-size:12px;line-height:1.5;max-width:310px;}
 body.ecu-mercury .workbench-immersive .workbench-copy .ecu-actions{gap:8px;margin-top:16px;}
 body.ecu-mercury .workbench-immersive .workbench-copy :is(.btn,.workbench-secondary){font-size:11px!important;min-height:40px;padding:10px 12px;}
 body.ecu-mercury .workbench-immersive .workbench-bottom{
  display:flex;justify-content:space-between;bottom:18px;width:calc(100% - 28px);
  gap:10px;padding-right:62px;
 }
 body.ecu-mercury .workbench-immersive .workbench-controls{gap:6px;max-width:220px;}
 body.ecu-mercury .workbench-immersive :is(.workbench-detail-toggle,.workbench-controls .effects-toggle){font-size:10px;min-height:36px;padding:8px 10px;}
 body.ecu-mercury .workbench-immersive .workbench-scroll-cue{font-size:10px;max-width:76px;}
}
@media(max-width:359px){
 body.ecu-mercury .workbench-immersive .workbench-copy{top:22px;}
 body.ecu-mercury .workbench-immersive .workbench-copy h1{margin:12px auto;}
 body.ecu-mercury .workbench-immersive .workbench-copy .ecu-actions{gap:6px;}
 body.ecu-mercury .workbench-immersive .workbench-copy .btn{padding:10px;}
 body.ecu-mercury .workbench-immersive .workbench-copy .workbench-secondary{padding:10px 0;background:transparent!important;border-color:transparent!important;}
}
@media(prefers-reduced-motion:reduce){
 body.ecu-mercury .workbench-hero.workbench-immersive{height:auto!important;}
 body.ecu-mercury .workbench-immersive .workbench-sticky{position:relative;top:0;}
 body.ecu-mercury .workbench-immersive :is(.workbench-far,.workbench-near,.workbench-copy){will-change:auto;}
}

/* 10.4.6: editorial text is unboxed; only actual components own borders. */
body.ecu-mercury .journal-prose{border:0;background:transparent;box-shadow:none;border-radius:0}
body.ecu-mercury .journal-article>header{border:0;background:transparent;box-shadow:none}
/* Controls and inline styles follow the same palette on all shared pages. */
body.ecu-mercury :is(input,select,textarea){color-scheme:inherit}
body.ecu-mercury :is(input[type=checkbox],input[type=radio]){color-scheme:inherit;accent-color:var(--mc-action)}
body.ecu-mercury :is(.btn,.commerce-primary,.agent-button,.plan-action){color:#fff!important}
body.ecu-mercury :is(.btn-secondary,.btn-ghost,.btn-light,.btn-outline-light){color:var(--mc-ink)!important}
body.ecu-mercury :is(.catalog-product-form,.technical-form-grid,.form-grid) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea){background:var(--mc-control);color:var(--mc-ink);border-color:var(--mc-control-border)}
body.ecu-mercury :is(input,textarea)::placeholder{color:var(--mc-muted);opacity:1}
body.ecu-mercury .service-line-options{background:var(--mc-tint);color:var(--mc-ink)}
body.ecu-mercury .invoice-note-tools{padding-top:12px;border-top:1px solid var(--mc-line)}
body.ecu-mercury .catalog-product-form .form-grid>label.check{display:flex!important;align-items:center;gap:10px;min-height:44px;margin:0;white-space:normal}
body.ecu-mercury .catalog-product-form label.check>input[type=checkbox]{flex:0 0 18px;width:18px!important;min-width:18px!important;height:18px!important;min-height:18px!important;margin:0!important;padding:0!important}
