.guide-top{height:99px;padding:22px 3.3%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #1f3d5a;background:#071b34;gap:22px}.guide-logo{display:flex;align-items:center;gap:25px;flex-shrink:0}.guide-logo img{width:203px;height:auto}.guide-logo>span{border-left:1px solid #315571;padding-left:24px;font-size:10px;letter-spacing:.14em;color:#b5d6e9;line-height:1.8}.guide-logo small{font-size:8px;color:#6e96b4;letter-spacing:.1em}.guide-top nav{display:flex;align-items:center;gap:26px}.guide-top nav>a,.guide-top nav>button{font-size:12px;white-space:nowrap}.guide-top nav>button{border:0;background:transparent;color:white;padding:8px 0;position:relative}.guide-top nav>.top-active:after{content:'';position:absolute;bottom:0;left:0;right:0;height:2px;background:#32b8ef}.guide-top .locale-menu{color:#d8edfa;background:#102c4c;border:1px solid #315675;border-radius:7px;padding:10px 12px;max-width:180px;font-size:11px;min-height:39px}
.site-header { --g-bg:#06182f; --g-panel:#0c2645; --g-line:#254764; --g-text:#edf6fc; box-sizing: border-box; color: #edf6fc; font: 14px/1.5 Inter, Arial, sans-serif; }
.site-header * { box-sizing: border-box; }
.site-header a { color: #67cef3; text-decoration: none; }
.site-header a:hover { text-decoration: underline; }
.site-header button { cursor: pointer; }
.site-header :is(a,button,summary):focus-visible { outline: 2px solid #36bfd9; outline-offset: 3px; }
.site-header .guide-logo img { display: block; }
html[data-theme=light] .site-header a { color: #125973; }
html[data-theme=light] .site-header nav > button:not(.appearance-toggle) { color: #173d53; }
@media(max-width:1200px) {
 .site-header nav { gap: 16px; }
 .site-header .guide-logo img { width: 180px; }
}
@media(max-width:980px) {
 .site-header { height: auto; min-height: 76px; padding: 16px; gap: 12px; }
 .site-header nav > a { display: none; }
 .site-header .guide-logo img { width: 155px; }
}
@media print { .site-header { display: none !important; } }
html[data-theme=light] .site-header { --g-bg:#f5f8fc; --g-panel:#fff; --g-line:#c8dbe5; --g-text:#173d53; }

.guide-mobile-menu, .guide-erp-menu { display: none; }
@media (max-width: 980px) {
 .guide-top { position: relative; justify-content: flex-start; }
 .guide-top nav > button:not(.appearance-toggle) { display: none; }
 .guide-top nav { margin-left: auto; min-width: 0; }
 .guide-top nav [data-locale-host] { min-width: 0; }
 .guide-top nav .locale-menu { max-width: 100%; }
 .guide-mobile-menu { display: block; flex: 0 0 auto; }
 .guide-mobile-links > * {
  min-height: 44px; display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border: 1px solid var(--g-line); border-radius: 8px;
  background: var(--g-panel); color: var(--g-text); text-align: left;
 }
 .guide-mobile-menu summary { cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
 .guide-mobile-menu summary::-webkit-details-marker { display: none; }
 .guide-mobile-links { position: absolute; z-index: 15; top: calc(100% + 4px); right: 12px; width: min(270px, calc(100% - 24px)); display: grid; gap: 6px; padding: 8px; border: 1px solid var(--g-line); border-radius: 12px; background: var(--g-bg); box-shadow: 0 8px 24px #0003; }
 html[data-theme=light] :is(.guide-mobile-links,.guide-mobile-links > *) {
  background: #edf5fa; color: #234b62; border-color: #bfd5e2;
 }
}
@media (max-width: 560px) {
 .guide-top { padding-inline: 10px; gap: 6px; }
 .guide-top .guide-logo img { width: clamp(94px, 29vw, 136px); }
 .site-header.guide-top nav { gap: 6px !important; }
}

 .guide-top {
 --guide-control-size: 44px;
 --guide-control-border: #436276;
 --guide-control-bg: #12324b;
 --guide-control-ink: #d9f4ff;
 }
 html[data-theme=light] .guide-top {
 --guide-control-border: #b9d3df;
 --guide-control-bg: #fff;
 --guide-control-ink: #166382;
 }
 .site-header.guide-top nav .appearance-toggle,
 .guide-top [data-locale-host],
 .guide-top :is(.guide-mobile-menu summary,.guide-erp-menu) { width: var(--guide-control-size); height: var(--guide-control-size); min-width: var(--guide-control-size); min-height: var(--guide-control-size); }
 .guide-top [data-locale-host] { position: relative; display: inline-grid; flex: 0 0 auto; }
 .guide-top :is(.guide-locale-code, .guide-mobile-menu summary,.guide-erp-menu) {
  border: 1px solid var(--guide-control-border); border-radius: 50%; background: var(--guide-control-bg); color: var(--guide-control-ink);
 }
 .guide-mobile-menu summary svg { width: 18px; height: 18px; }
.guide-top [data-locale-host] .locale-menu { width: 100%; height: 44px; padding: 0; opacity: 0; cursor: pointer; }
.guide-locale-code {
 position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 4px;
 font-size: 12px; font-weight: 600; pointer-events: none;
}
.guide-locale-code::after { content: ''; width: 5px; height: 5px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-1px) rotate(45deg); }
.guide-top .locale-menu:focus-visible + .guide-locale-code { outline: 2px solid #6de2d4; outline-offset: 3px; }

html[data-theme=light] .site-header { background: #fff; border-color: #c8dbe5; }

@media (max-width: 850px) {
 .guide-top .guide-erp-public-menu { display: none; }
 .guide-top .guide-erp-menu { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; padding: 0; cursor: pointer; }
}
/* Shared visual language with the main HydrensO website. */
.site-header.guide-top{background:#1d3045;color:#fff;border-color:#33495b;min-height:76px;height:auto;padding:18px 3.3%;gap:20px}.site-header .guide-logo img{width:180px}.site-header nav{gap:18px;flex-wrap:wrap;justify-content:flex-end}.site-header nav>a,.site-header nav>button{color:#e8f2f8;font-size:13px}.site-header nav>.site-external-link{font-size:12px;opacity:.85}.site-header .site-logout{display:inline-flex;align-items:center;justify-content:center;line-height:1.2;border:1px solid #68839a;border-radius:24px;padding:8px 12px;min-height:40px;text-decoration:none}.site-header .guide-logo{max-width:32%}html[data-theme=light] .site-header.guide-top{background:#fff;color:#173d53;border-color:#c8dbe5}html[data-theme=light] .site-header nav>a,html[data-theme=light] .site-header nav>button:not(.appearance-toggle){color:#125973}html[data-theme=light] .site-header .guide-logo img{content:url('/brand/logo-hydrenso-light.png')}.site-header .guide-logo img{object-fit:contain}@media(max-width:980px){.site-header.guide-top{padding:14px 12px;gap:10px;min-height:76px}.site-header .guide-logo{max-width:none}.site-header .guide-logo img{width:150px}.site-header nav{flex-wrap:nowrap}.site-header nav>a.site-logout{display:inline-flex;font-size:12px;padding:8px 10px}.site-header .guide-mobile-menu summary{color:#fff;border-color:#68839a}.site-header .locale-menu{max-width:110px}}@media(max-width:560px){.site-header .guide-logo img{width:110px}.site-header nav{gap:6px}.site-header nav>a.site-logout{font-size:11px;padding:6px}.site-header .locale-menu{max-width:65px;padding:8px 4px}.site-header.guide-top{gap:6px}}

@media(max-width:560px){.site-header nav>a.site-logout{display:none}}

/* Light controls follow the same theme as the shared header on mobile. */
html[data-theme=light] .site-header .guide-mobile-menu summary{color:#166382;border-color:#b9d3df}html[data-theme=light] .site-header .site-logout{border-color:#b9d3df}

/* Match the language and appearance controls; keep a readable name for assistive tools. */
.site-header.guide-top a.site-logout{width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border-radius:50%;line-height:1;flex:0 0 auto}.site-header .site-logout svg{display:block;width:18px;height:18px;pointer-events:none}.site-header .guide-mobile-links .site-logout{justify-content:center}

/* Contact stays directly reachable alongside the language and appearance controls. */
.site-header.guide-top nav>a.site-contact{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border:1px solid var(--guide-control-border);border-radius:50%;background:var(--guide-control-bg);color:var(--guide-control-ink);text-decoration:none}
.site-header .site-contact svg{display:block;width:18px;height:18px;pointer-events:none}
.site-header.guide-top nav>a.site-contact:hover{border-color:currentColor}
@media(max-width:560px){.site-header .guide-logo{flex-shrink:1;min-width:54px}.site-header .guide-logo img{width:clamp(54px,calc(100vw - 280px),110px);max-width:100%}}

/* The connected external account's company sits beside the HydrensO brand. */
.site-header .site-brand{display:flex;align-items:center;gap:14px;min-width:0;flex-shrink:1}
.site-header .site-account-company{font-size:.95rem;font-weight:600;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:inherit}
.site-header .site-account-company:empty{display:none}
.site-header .site-account-company:not(:empty)::before{content:'›';margin-inline-end:5px;color:var(--guide-control-ink,#166382)}
@media(max-width:980px){.site-header .site-brand{gap:6px;max-width:40%}.site-header .site-account-company{max-width:160px;font-size:.8rem}}
@media(max-width:560px){.site-header .site-brand{flex-direction:column;align-items:flex-start;gap:3px;max-width:calc(100vw - 240px)}.site-header .site-account-company{max-width:100%;font-size:.72rem;line-height:1.2}}

.site-header .site-brand .guide-logo{max-width:none;flex-shrink:0}
.site-header .site-account-company{min-width:0}

/* Keep the external partner beside the logo on phones; full name remains in its title. */
@media(max-width:560px){
 .site-header.guide-top{padding-inline:10px;gap:6px}
 .site-header .site-brand{flex-direction:row;align-items:center;gap:7px;flex:1;max-width:none;min-width:0}
 .site-header .site-brand .guide-logo{flex:none;min-width:0;width:clamp(68px,21vw,110px)}
 .site-header .site-brand .guide-logo img{width:100%;max-width:100%;height:auto}
 .site-header .site-account-company{max-width:none;flex:1;min-width:0;font-size:11px;line-height:1.3;white-space:nowrap}
 .site-header.guide-top nav>a.site-contact{display:none}
 .site-header .guide-mobile-links .site-contact{display:flex;align-items:center;justify-content:flex-start;gap:8px}
 .site-header .guide-mobile-links .mobile-contact-label{display:inline}
}
.site-header nav .mobile-contact-label{display:none}
