/* Tools4U — Unified public header: Home, categories, account, appearance/languages.
   This stylesheet loads last. Never affects admin dashboard or payment logic. */
html.t4u-ux-ready header.top.wrap{box-sizing:border-box}
html.t4u-ux-ready header.top .nav a[href="/"]{display:inline-flex!important;align-items:center;justify-content:center}
html.t4u-ux-ready header.top .t4u-preferences{background:transparent;border:0;box-shadow:none;z-index:1}
html.t4u-ux-ready header.top .t4u-preferences .t4u-language-hint{display:none!important}
html.t4u-ux-ready header.top .t4u-preferences .t4u-theme-switch,
html.t4u-ux-ready header.top .t4u-preferences .t4u-language-picker{font-family:inherit;line-height:1.2}
html.t4u-ux-ready header.top .t4u-preferences .t4u-language-picker{max-width:156px;min-width:94px;width:128px;font-size:12px}
html.t4u-ux-ready header.top .t4u-preferences .t4u-language-label{flex:none}
@media(min-width:1351px){
 html.t4u-ux-ready header.top.wrap{display:flex;flex-wrap:nowrap;align-items:center;gap:clamp(8px,.8vw,13px);height:auto;min-height:78px;padding-block:8px;justify-content:space-between}
 html.t4u-ux-ready header.top .logo{flex:0 0 auto;margin:0;min-width:0;font-size:clamp(19px,1.5vw,24px)}
 html.t4u-ux-ready header.top .logo small{font-size:10px}
 html.t4u-ux-ready header.top .nav{display:flex;flex:1 1 auto;min-width:0;gap:clamp(4px,.45vw,10px);justify-content:center;align-items:center;white-space:nowrap;overflow:visible;order:initial}
 html.t4u-ux-ready header.top .nav a{display:inline-flex;align-items:center;font-size:clamp(10px,.72vw,12px);padding:9px 6px;min-height:38px;white-space:nowrap;line-height:1.15}
 html.t4u-ux-ready header.top .right{display:flex;flex:0 0 auto;gap:6px;margin:0;align-items:center;order:initial;min-width:0}
 html.t4u-ux-ready header.top .right .pill{white-space:nowrap;padding:8px 9px}
 html.t4u-ux-ready header.top .right .profile-label{max-width:66px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 html.t4u-ux-ready header.top .t4u-mobile-toggle{display:none}
 html.t4u-ux-ready header.top .t4u-preferences{display:flex;flex:0 0 auto;order:initial;min-width:0;width:auto;max-width:none;min-height:0;height:40px;align-items:center;justify-content:flex-end;gap:5px;padding:0;margin:0}
 html.t4u-ux-ready header.top .t4u-preferences .t4u-theme-switch{min-width:95px;max-width:132px;width:auto;height:36px;flex:none;white-space:nowrap;padding:0 9px}
 html.t4u-ux-ready header.top .t4u-preferences .t4u-language-picker{height:36px;flex:none}
}
/* On widths that cannot fit all nav links, use the existing accessible mobile-menu button.
   Theme/language stay INSIDE the same header, rather than in a separate strip. */
@media(max-width:1350px){
 html.t4u-ux-ready header.top.wrap{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto;grid-template-areas:"brand account toggle" "prefs prefs prefs" "nav nav nav";align-items:center;align-content:center;gap:5px 8px;max-width:100%;width:100%;height:auto;min-height:65px;padding:9px 16px;flex-wrap:nowrap}
 html.t4u-ux-ready header.top .logo{grid-area:brand;order:initial;flex:none;margin:0;min-width:0;max-width:100%;white-space:nowrap}
 html.t4u-ux-ready header.top .right{grid-area:account;order:initial;flex:none;margin:0;display:flex;align-items:center;justify-content:flex-end;min-width:0;gap:5px}
 html.t4u-ux-ready header.top .t4u-mobile-toggle{grid-area:toggle;order:initial;display:inline-flex;min-height:40px;min-width:40px;height:40px;width:40px;padding:0;align-items:center;justify-content:center}
 html.t4u-ux-ready header.top .t4u-mobile-toggle .t4u-menu-label{display:none}
 html.t4u-ux-ready header.top .nav{grid-area:nav;order:initial;display:none;flex:1 0 auto;width:100%;max-width:100%;max-height:min(65dvh,540px);overflow-y:auto;overflow-x:hidden;flex-direction:column;align-items:stretch;gap:3px;background:#fff;border:1px solid #e9e2f7;border-radius:13px;padding:10px;margin:4px 0 0;box-shadow:0 15px 30px #20105915}
 html.t4u-ux-ready header.top.t4u-menu-open .nav{display:flex}
 html.t4u-ux-ready header.top .nav a,html.t4u-ux-ready header.top .nav a[href="/"]{display:flex!important;align-items:center;justify-content:flex-start;min-height:42px;padding:10px 12px;font-size:14px;white-space:normal;border-radius:9px}
 html.t4u-ux-ready header.top .t4u-preferences{grid-area:prefs;order:initial;display:flex;justify-content:flex-end;align-items:center;min-width:0;width:100%;max-width:100%;min-height:39px;height:auto;gap:7px;padding:4px 0 0;margin:0}
 html.t4u-ux-ready header.top .t4u-preferences .t4u-theme-switch{min-width:0;max-width:150px;height:35px;flex:0 1 auto;white-space:nowrap;padding:0 10px}
 html.t4u-ux-ready header.top .t4u-preferences .t4u-language-picker{height:35px;min-width:94px;max-width:156px;width:135px;flex:0 1 auto}
 html.t4u-ux-ready header.top .right .top-search{display:none}
 html.t4u-ux-ready header.top .nav a.t4u-mobile-search-link,html.t4u-ux-ready header.top .nav a.t4u-mobile-signup-link{display:flex}
 html[data-t4u-theme="dark".t4u-ux-ready header.top .nav{background:#1c2337;border-color:#3b4163}
}
@media(max-width:650px){
 html.t4u-ux-ready header.top.wrap{padding:8px 12px;gap:5px 6px}
 html.t4u-ux-ready header.top .logo{font-size:18px;gap:6px}
 html.t4u-ux-ready header.top .logo small{display:none}
 html.t4u-ux-ready header.top .right .pill{font-size:11px;white-space:nowrap;padding:7px 8px}
 html.t4u-ux-ready header.top .profilemenu .profile-label{display:none}
 html.t4u-ux-ready header.top .t4u-preferences{padding-top:1px;justify-content:flex-end}
 html.t4u-ux-ready header.top .t4u-preferences .t4u-theme-switch{font-size:12px;min-width:92px}
 html.t4u-ux-ready header.top .t4u-preferences .t4u-language-picker{width:118px}
}
@media(max-width:375px){
 html.t4u-ux-ready header.top.wrap{padding-inline:9px;gap:4px}
 html.t4u-ux-ready header.top .logo{font-size:16px}
 html.t4u-ux-ready header.top .right{gap:3px}
 html.t4u-ux-ready header.top .right .pill{font-size:10px;padding:6px}
 html.t4u-ux-ready header.top .t4u-preferences .t4u-theme-switch{font-size:11px;min-width:85px;padding:0 6px}
 html.t4u-ux-ready header.top .t4u-preferences .t4u-language-picker{width:109px;min-width:84px}
 html.t4u-ux-ready header.top .t4u-preferences .t4u-language-label{font-size:15px}
}
