html body .site-header{background:#202020!important;color:#f7f7f7!important;border-bottom:1px solid #ffffff17!important;backdrop-filter:blur(14px)}
html[data-theme="dark"] body .site-header{background:#281c39!important;border-bottom-color:#59416e!important}
html body .site-header :is(.logo-word,nav>a,.component-menu-link,.component-menu-trigger,.header-about-link,.header-icon-button,.header-search-launch,.theme-toggle,.pf-header-cta,.pf-menu-trigger,.pcf-region-trigger){color:#f7f7f7!important}
html body .site-header .logo-symbol{filter:grayscale(1) brightness(0) invert(1)!important}
html[data-theme="dark"] body .site-header .logo-symbol{filter:none!important}
html body .site-header :is(.header-icon-button,.header-search-launch,.theme-toggle):hover{background:#ffffff18!important;color:white!important}
html body .site-header .pcf-region-trigger{background:#ffffff0d!important;border-color:#ffffff35!important}

/* Account menu action: orange in light mode, purple in dark mode. */
html body .site-header .profile-hover-menu .profile-menu-primary{background:#ff9565!important;color:#24160f!important;border-color:#ff9565!important}
html body .site-header .profile-hover-menu .profile-menu-primary:hover{background:#ffad88!important;color:#24160f!important}
html[data-theme="dark"] body .site-header .profile-hover-menu .profile-menu-primary{background:#7350ad!important;color:#fff!important;border-color:#7350ad!important}
html[data-theme="dark"] body .site-header .profile-hover-menu .profile-menu-primary:hover{background:#604092!important;color:#fff!important}
html body .site-header .profile-hover-menu .profile-menu-primary:focus-visible{outline:2px solid currentColor;outline-offset:4px}
@media(max-width:480px){html body .site-header .pcf-region-trigger{font-size:10px;padding-inline:7px;gap:3px}html body .site-header .pcf-region-trigger .pcf-region-flag{display:none}}

/* Shared search panel: independent of page-specific form and card styles. */
html body .header-search-dialog {
    --search-surface: #fafaf8;
    --search-text: #252827;
    --search-muted: #626866;
    --search-line: #d8dcda;
    --search-field: #ffffff;
    --search-hover: #eeefec;
    color: var(--search-text);
    background: var(--search-surface);
    font-family: var(--font-body, Arial), Arial, sans-serif;
    border: 1px solid var(--search-line);
    border-top: 0;
    border-radius: 0 0 20px 20px;
    overscroll-behavior: contain;
}
html[data-theme="dark"] body .header-search-dialog {
    --search-surface: #242629;
    --search-text: #f3f4f2;
    --search-muted: #bdc2bf;
    --search-line: #484c50;
    --search-field: #303337;
    --search-hover: #363a3e;
    color-scheme: dark;
}
html body .header-search-dialog .header-search-topbar {
    background: var(--search-surface);
    color: var(--search-text);
    border-bottom: 1px solid var(--search-line);
    min-height: 80px;
    padding: 14px 24px;
    gap: 14px;
}
html body .header-search-dialog #header-search-input {
    box-sizing: border-box;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    height: 48px;
    margin: 0;
    padding: 10px 16px;
    border: 1px solid var(--search-line) !important;
    border-radius: 12px;
    background: var(--search-field) !important;
    color: var(--search-text) !important;
    -webkit-text-fill-color: var(--search-text);
    caret-color: var(--search-text);
    font: 400 16px/1.5 var(--font-body, Arial), Arial, sans-serif !important;
    box-shadow: none;
    appearance: none;
}
html body .header-search-dialog #header-search-input::placeholder {
    color: var(--search-muted) !important;
    -webkit-text-fill-color: var(--search-muted);
    opacity: 1;
}
html body .header-search-dialog #header-search-input:focus {
    outline: 2px solid var(--search-muted);
    outline-offset: 2px;
    box-shadow: none;
}
html body .header-search-dialog .header-dialog-close-form { margin: 0; padding: 0; border: 0; background: transparent; }
html body .header-search-dialog .header-dialog-close {
    display: grid; place-items: center; width: 40px; min-width: 40px; height: 40px;
    padding: 0; margin: 0; border-radius: 50%; border: 1px solid var(--search-line);
    color: var(--search-text); background: var(--search-field); font: 400 24px/1 Arial, sans-serif;
}
html body .header-search-dialog .header-dialog-close:hover { background: var(--search-hover); }
html body .header-search-dialog :is(h2,.header-search-suggestion,.header-search-product,.header-search-product strong) { color: var(--search-text); }
html body .header-search-dialog :is(.header-search-status,.header-search-product > span:not(.header-search-product-media)) { color: var(--search-muted); }
html body .header-search-dialog :is(.header-search-suggestions,.header-search-products-heading) { border-color: var(--search-line); }
html body .header-search-dialog .header-search-suggestion { background: transparent; border-radius: 8px; }
html body .header-search-dialog .header-search-suggestion:hover { background: var(--search-hover); }
html body .header-search-dialog .header-search-product-media { border: 1px solid var(--search-line); border-radius: 12px; }
html body .header-search-dialog .header-search-results { gap: 18px 14px; }
html body .header-search-dialog :is(a,button):focus-visible { outline: 2px solid var(--search-muted); outline-offset: 3px; }
@media (max-width: 640px) {
    html body .header-search-dialog .header-search-topbar { min-height: 76px; padding: 12px; gap: 10px; }
    html body .header-search-dialog .header-search-large-icon { display: none; }
    html body .header-search-dialog .header-search-suggestion { border-color: var(--search-line); }
}
html body .header-search-dialog h2 { font-size: 17px !important; line-height: 1.35; letter-spacing: normal; }
html body .header-search-dialog .header-search-product strong { font-size: 15px !important; line-height: 1.35; }
@media (max-width: 640px) {
    html body .header-search-dialog { width: 100%; max-width: 100%; margin-inline: 0; }
}
@media (max-width: 820px) {
    html body.home-page .site-header .header-actions > [data-open-search] { display: inline-flex; flex: 0 0 32px; width: 32px; height: 36px; padding: 7px; }
}
