/* Desktop keeps the original two-part header; compact controls are mobile only. */
.am-desktop-search{display:none}
@media(min-width:768px){
 .am-mobile-context-header{display:none!important}
 .am-desktop-site-header{display:block}
 html body .lm-header{--cat-bg:#fff;--cat-panel:#f6f7f9;--cat-ink:#181d25;--cat-muted:#687386;--cat-line:#dfe4ec;--cat-accent:#E63336;--ui-ink:#181d25;background:#fff!important;border-bottom:1px solid #e5e8ed!important;box-shadow:none!important}
 html body.lm-marvel-site .lm-header{--cat-bg:#260d14;--cat-panel:#391c24;--cat-ink:#f6f7fa;--cat-muted:#c3b6bd;--cat-line:#62414b;--cat-accent:#F13B43;--ui-ink:#f6f7fa;background:#260d14!important;border-color:#55212f!important}
 html body.lm-starwars-site .lm-header{--cat-bg:#031b2a;--cat-panel:#0d2b3b;--cat-ink:#f6f7fa;--cat-muted:#b4c7d3;--cat-line:#365262;--cat-accent:#ffda30;--ui-ink:#f6f7fa;background:#031b2a!important;border-color:#21475c!important}
 html body .lm-header>.lm-wrap{display:grid!important;grid-template-columns:auto auto minmax(180px,1fr) auto;align-items:center!important;gap:clamp(12px,1.5vw,28px)!important;flex-wrap:nowrap!important}
 html body .lm-header>.lm-wrap>.lm-brand{grid-column:1;grid-row:1;flex-wrap:nowrap;max-width:none}
 html body .lm-header>.lm-wrap>.lm-nav{grid-column:2;grid-row:1;gap:clamp(10px,1vw,20px)!important;flex-wrap:nowrap!important}
 html body .lm-header>.lm-wrap>.am-desktop-search{grid-column:3;grid-row:1;display:block;min-width:0;width:100%}
 html body .lm-header>.lm-wrap>.lm-row:not(.lm-brand):not(.lm-nav){grid-column:4;grid-row:1;gap:clamp(10px,1vw,20px)!important;flex-wrap:nowrap!important}
 body:not(.lm-marvel-site):not(.lm-starwars-site) .lm-header .lm-brand a:has(:is(.lm-header-logo-marvel,.lm-header-logo-starwars)){display:none!important}
 body.am-catalog-v2{--cat-header:var(--lm-desktop-header-height,84px)}
 body.am-catalog-v2 .am-cat-sidebar{top:calc(var(--lm-desktop-header-clearance,116px) + 20px);max-height:calc(100dvh - var(--lm-desktop-header-clearance,116px) - 40px)}
 body .am-desktop-search .dgwt-wcas-search-wrapp{max-width:none!important;min-width:0!important}
 body .lm-header .am-desktop-search input[type=search]{font-size:16px!important;font-weight:400!important}
 body .am-desktop-search .dgwt-wcas-search-form{width:100%}
}
@media(min-width:768px) and (max-width:1199px){
 html body .lm-header>.lm-wrap{grid-template-columns:auto 1fr auto;row-gap:13px!important}
 html body .lm-header>.lm-wrap>.lm-row:not(.lm-brand):not(.lm-nav){grid-column:3}
 html body .lm-header>.lm-wrap>.lm-nav{grid-column:1;grid-row:2;justify-self:start}
 html body .lm-header>.lm-wrap>.am-desktop-search{grid-column:2 / -1;grid-row:2}
}
@media(max-width:767px){
 .am-desktop-site-header,.am-desktop-search{display:none!important}
 .am-mobile-context-header{display:block}
 .am-desktop-site-header+.lm-mobile-header-spacer{display:none!important}
}
/* Round account/cart actions share the search field's exact universe tokens. */
.am-header-utility-label{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(min-width:768px){
 html body .lm-header a.am-header-utility{display:inline-flex!important;align-items:center!important;justify-content:center!important;position:relative;flex:0 0 44px!important;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;margin:0!important;border:1px solid var(--cat-line)!important;border-radius:50%!important;background:var(--cat-panel)!important;color:var(--cat-ink)!important;box-shadow:none!important;line-height:1!important;text-decoration:none!important;box-sizing:border-box;transition:border-color .15s,color .15s}
 html body .lm-header a.am-header-utility>svg{display:block;width:23px;height:23px;flex:none;stroke-width:1.8}
 html body .lm-header a.am-header-utility:hover{border-color:var(--cat-accent)!important;color:var(--cat-accent)!important}
 html body .lm-header a.am-header-utility:focus-visible{outline:2px solid var(--cat-accent)!important;outline-offset:3px}
 html body .lm-header .am-header-cart-count{position:absolute;top:-5px;right:-5px;display:grid;place-items:center;min-width:19px;height:19px;padding:1px 4px;box-sizing:border-box;border-radius:99px;background:var(--cat-accent);color:var(--ui-accent-ink,#fff);border:2px solid var(--cat-bg);font:750 10px/1 'DM Sans',sans-serif;font-variant-numeric:tabular-nums;pointer-events:none}
 html body:not(.lm-starwars-site) .lm-header .am-header-cart-count{color:#fff}
 html body .lm-header .am-header-cart-count[hidden]{display:none!important}
}
