html body .site-header.site-header .site-tools{position:absolute;top:8px;right:min(0px,calc((100% - 100vw)/2 + 16px));display:flex;align-items:center;gap:6px;z-index:8;height:36px}
html body .site-header.site-header .site-tools>*{position:static!important;inset:auto!important;margin:0!important;flex:0 0 auto}
html body .site-header.site-header .site-tools>:is(button,a.portal-button),html body .site-header.site-header .site-tools>.language-switch>summary{box-sizing:border-box!important;width:40px!important;min-width:40px!important;max-width:40px!important;height:36px!important;min-height:36px!important;max-height:36px!important;padding:2px!important;gap:0!important;line-height:30px!important;display:flex!important;align-items:center;justify-content:center}
html body .site-header.site-header .site-tools .language-switch>summary{width:58px!important;min-width:58px!important;max-width:58px!important;gap:4px!important}
html body .site-header.site-header .site-tools img[data-ui-icon]{width:30px!important;height:30px!important;max-width:none!important;object-fit:contain;filter:none!important}
html body .site-header.site-header .site-tools .language-switch img{width:28px!important;height:20px!important;object-fit:fill}
html[data-mobile-view] body .site-header.site-header .site-tools{right:0}
@media(max-width:350px){html[data-mobile-view] body .site-header>.brand{width:80px!important}}
@media print{.site-tools{display:none!important}}
@media(hover:none){button,button *,a[data-site-link],a[data-site-link] *,a.button,a.button *,a.portal-button,a.portal-button *,[data-budo-button],[data-budo-button] *,summary,summary *{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;-webkit-user-drag:none}}

/* Desktop menu rows keep a fixed top origin; the tools own a separate column. */
html:not([data-mobile-view]) body .site-header.site-header{
 --header-tool-space:214px;align-items:start;align-content:start;
 padding-top:12px;padding-inline-end:0;grid-template-rows:auto auto;
}
html:not([data-mobile-view]) body .site-header.site-header>.brand{align-self:start;margin-top:0}
html:not([data-mobile-view]) body .site-header.site-header>nav:not(.section-menu){
 align-self:start;align-items:start;box-sizing:border-box;padding-inline-end:var(--header-tool-space);
 min-width:0;max-width:none;flex-wrap:wrap;row-gap:12px;margin-top:0;
}
html:not([data-mobile-view]) body .site-header.site-header .site-tools{top:12px}
html:not([data-mobile-view]) body .site-header.site-header nav :is(a[data-budo-button],button[data-budo-button]),
html:not([data-mobile-view]) body .site-header.site-header .portal-header-actions [data-budo-button]{
 box-sizing:border-box!important;height:36px!important;min-height:36px!important;max-height:36px!important;
 display:inline-flex;align-items:center;justify-content:center;line-height:26px!important;padding-block:3px!important;margin-block:0!important;
}
html:not([data-mobile-view]) body .library-button-icon:not(.password-visibility),
html:not([data-mobile-view]) body.admin-symbol-actions [data-admin-action-icon]:not(.password-visibility):not([data-action-label=true]),
html:not([data-mobile-view]) body .save-icon-button{
 box-sizing:border-box!important;width:40px!important;min-width:40px!important;height:36px!important;min-height:36px!important;max-height:36px!important;padding:2px!important;
}
html:not([data-mobile-view]) body .library-button-icon>img.budo-library-icon[data-ui-icon]{width:30px!important;height:30px!important}
html:not([data-mobile-view]) body .portal .admin-language-pair{grid-template-columns:minmax(0,1fr) 40px minmax(0,1fr)}
@media print{html body .site-header.site-header>nav{padding-inline-end:0}}

html:not([data-mobile-view]) body.admin-symbol-actions [data-admin-action-icon]::before{width:30px;height:30px}


/* Keep the tools with the logo, inside the page margins. */
html:not([data-mobile-view]) body .site-header.site-header{grid-template-columns:196px minmax(0,1fr);grid-template-rows:auto auto;column-gap:20px}
html:not([data-mobile-view]) body .site-header.site-header>.site-brand-tools{grid-column:1;grid-row:1 / 3;display:flex;flex-direction:column;align-items:flex-start;gap:12px;min-width:0}
html:not([data-mobile-view]) body .site-header.site-header .site-brand-tools>.brand{width:178px;margin:0;align-self:flex-start}
html:not([data-mobile-view]) body .site-header.site-header>nav:not(.section-menu){grid-column:2;grid-row:1;width:100%;min-width:0;padding-inline-end:0}
html:not([data-mobile-view]) body .site-header.site-header .site-brand-tools>.site-tools{position:static;inset:auto;align-self:flex-start;height:auto;max-width:100%;flex-wrap:wrap}
html:not([data-mobile-view]) body .site-header.site-header>nav.section-menu,html:not([data-mobile-view]) body .site-header.site-header>.member-navigation{grid-column:2;grid-row:2}
@media(max-width:700px){
html:not([data-mobile-view]) body .site-header.site-header{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto}
html:not([data-mobile-view]) body .site-header.site-header>.site-brand-tools{grid-column:1;grid-row:1}
html:not([data-mobile-view]) body .site-header.site-header>nav:not(.section-menu){grid-column:1;grid-row:2}
html:not([data-mobile-view]) body .site-header.site-header>nav.section-menu,html:not([data-mobile-view]) body .site-header.site-header>.member-navigation{grid-column:1;grid-row:3}
html:not([data-mobile-view]) body .site-header.site-header>#admin-website-row{grid-row:4}
html:not([data-mobile-view]) body .site-header.site-header>#admin-actions-row{grid-row:5}
html:not([data-mobile-view]) body .site-header.site-header>#admin-voting-row{grid-row:6}
}
