.shared-section-host{display:flex!important;align-items:center;flex-wrap:wrap;gap:6px 12px;min-height:42px;padding:5px 16px;box-sizing:border-box;max-width:100%;background:#fff;color:#65758c;border-bottom:1px solid #dfe4ec;position:relative;z-index:100;overflow:visible!important;flex-shrink:0}
[data-old-site-link]{display:none!important}
#sharedSectionLinks{display:flex;flex:1;align-items:center;flex-wrap:wrap;gap:3px 6px;padding:0;margin:0;border:0;background:transparent;font:12px/18px 'Segoe UI',Arial,sans-serif;min-width:0}
#sharedSectionLinks a,#sharedSectionLinks summary{display:flex;align-items:center;gap:7px;margin:0;padding:7px 10px;border:0;border-radius:5px;background:transparent;font:inherit;color:inherit;white-space:nowrap;text-decoration:none;cursor:pointer;list-style:none;box-sizing:border-box}
#sharedSectionLinks summary::-webkit-details-marker{display:none}#sharedSectionLinks summary:after{content:'';flex:0 0 10px;width:10px;height:10px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%237f91aa' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px no-repeat}
#sharedSectionLinks details[open]>summary:after{transform:rotate(180deg)}#sharedSectionLinks a:hover,#sharedSectionLinks summary:hover,#sharedSectionLinks details[open]>summary{background:#f0f4fa;color:#355f94}#sharedSectionLinks [aria-current=page]{background:#edf3fc;color:#315f9e;font-weight:600}
#sharedSectionLinks .shared-section{position:relative}#sharedSectionLinks .shared-section-options{position:absolute;left:0;top:calc(100% + 4px);min-width:220px;max-width:min(360px,90vw);max-height:65vh;overflow:auto;padding:6px;background:#fff;border:1px solid #dde5ef;border-radius:9px;box-shadow:0 10px 30px #253b5b20;z-index:101}
#sharedSectionLinks .shared-section-options .shared-section-options{position:static;box-shadow:none;border:0;border-left:1px solid #e1e7ef;margin:3px 6px;padding:3px}#sharedSectionLinks .shared-section-options a{white-space:normal}
.shared-section-host #site-account{margin-left:auto}.shared-section-host .chrome-button{font:12px/18px 'Segoe UI',Arial,sans-serif;padding:5px 8px;border:1px solid #d7e0ec;border-radius:5px;background:transparent;color:inherit;cursor:pointer;white-space:nowrap}
html[data-theme=dark] .shared-section-host{background:#1f2938;color:#c4d0e0;border-color:#39485f}html[data-theme=dark] #sharedSectionLinks .shared-section-options{background:#222e40;border-color:#43536b;box-shadow:0 10px 30px #0005}html[data-theme=dark] #sharedSectionLinks a:hover,html[data-theme=dark] #sharedSectionLinks summary:hover,html[data-theme=dark] #sharedSectionLinks details[open]>summary{background:#2d405b;color:#e0eafa}html[data-theme=dark] #sharedSectionLinks [aria-current=page]{background:#2d405b;color:#a9c7ee}html[data-theme=dark] .shared-section-host .chrome-button{border-color:#43536b}
@media(max-width:700px){.shared-section-host{padding:5px 8px}#sharedSectionLinks .shared-section-options{position:fixed;left:8px;right:8px;max-width:none}#sharedSectionLinks .shared-section-options .shared-section-options{position:static}}

/* Submenu destinations stay neutral; hover/focus indicates the actionable row. */
#sharedSectionLinks .shared-section-options [aria-current=page]{background:transparent;color:inherit;font-weight:inherit}
#sharedSectionLinks .shared-section-options a:hover,#sharedSectionLinks .shared-section-options a:focus-visible{background:#f3f4f6;color:inherit}
html[data-theme=dark] #sharedSectionLinks .shared-section-options [aria-current=page]{background:transparent;color:inherit}
html[data-theme=dark] #sharedSectionLinks .shared-section-options a:hover,html[data-theme=dark] #sharedSectionLinks .shared-section-options a:focus-visible{background:#343c48;color:inherit}

/* Keep shared dropdown rows independent of each application's link styles. */
#sharedSectionLinks .shared-section-options{display:flex;flex-direction:column;align-items:stretch}
#sharedSectionLinks .shared-section-options>a{display:flex!important;width:100%;box-sizing:border-box}
/* One shared header density, independent of application typography and controls. */
html body .shared-section-host.site-global-header{
 zoom:var(--site-navigation-zoom,.9)!important;
 min-height:35px!important;height:auto!important;padding:1px 4px!important;
 gap:4px 8px!important;font:10.2px/normal 'Segoe UI',Arial,sans-serif!important;
}
html body .shared-section-host :is(#sharedSectionLinks,#priceSiteNavigation){
 display:flex!important;flex:1;align-items:center;flex-wrap:wrap;gap:3px 6px!important;
 padding:0!important;margin:0!important;border:0!important;font:12px/18px 'Segoe UI',Arial,sans-serif!important;
}
html body .shared-section-host :is(#sharedSectionLinks,#priceSiteNavigation) :is(a,summary){
 font:12px/18px 'Segoe UI',Arial,sans-serif!important;padding:7px 10px!important;
 min-height:0!important;height:auto!important;margin:0!important;gap:7px!important;
}
html body .shared-section-host #site-account{gap:10px!important;font:10.2px/normal 'Segoe UI',Arial,sans-serif!important}
html body .shared-section-host #site-account :is(button,a){
 box-sizing:border-box!important;height:26px!important;min-height:26px!important;
 font:10.2px/normal 'Segoe UI',Arial,sans-serif!important;padding:2px 6px!important;
 display:inline-flex;align-items:center;justify-content:center;
 min-width:0!important;width:auto!important;margin:0!important;letter-spacing:normal!important;
}
html body .shared-section-host #site-account-login{font:12px/normal 'Segoe UI',Arial,sans-serif!important}
html body .shared-section-host #site-account :is(#theme-toggle,#purchase-theme,#kiz-theme){font-size:0!important;gap:0!important}
html body .shared-section-host #site-account :is(#theme-toggle,#purchase-theme,#kiz-theme)>*{display:none!important}
html body .shared-section-host #site-account :is(#theme-toggle,#purchase-theme,#kiz-theme)::before{content:'☾ Тёмная тема';font:10.2px/normal 'Segoe UI',Arial,sans-serif}
html[data-theme=dark] body .shared-section-host #site-account :is(#theme-toggle,#purchase-theme,#kiz-theme)::before{content:'☀ Светлая тема'}
