/* GLOBAL-SEARCH-01: scoped navigation only; no tool or account layout rules. */
.tgl-search-desktop,.tgl-search-dialog{--search-bg:#171b30;--search-field:#101526;--search-ink:#f5f7fb;--search-muted:#c4cddd;--search-line:#65718b;--search-hover:#302742;color:var(--search-ink);font:14px/1.4 Arial,sans-serif}
html[data-tgl-theme=light] :is(.tgl-search-desktop,.tgl-search-dialog){--search-bg:#fff;--search-field:#f1f4fa;--search-ink:#17243a;--search-muted:#4d5b70;--search-line:#718098;--search-hover:#f9e8f2;color-scheme:light}
html[data-tgl-shell] .tgl-shell-header .tgl-search-desktop{display:none;position:relative;min-width:0}
.tgl-search-field{display:flex;align-items:center;gap:8px;background:var(--search-field);border:1px solid var(--search-line);border-radius:10px;padding:0 12px;min-height:44px}
.tgl-search-field svg,.tgl-search-panel svg,.tgl-search-mobile svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.tgl-search-field input{box-sizing:border-box;min-width:0;width:100%;min-height:44px;border:0!important;background:transparent!important;color:var(--search-ink)!important;font:inherit!important;padding:9px 0!important;border-radius:0;box-shadow:none!important}
.tgl-search-field input::placeholder{color:var(--search-muted);opacity:1}
.tgl-search-field:focus-within{outline:2px solid #e6007e;outline-offset:3px}
.tgl-search-field input:focus{outline:none!important}
.tgl-search-panel{box-sizing:border-box;background:var(--search-bg);color:var(--search-ink);border:1px solid var(--search-line);border-radius:14px;box-shadow:0 15px 45px #0005;padding:16px}
.tgl-search-panel[hidden]{display:none!important}
.tgl-search-desktop .tgl-search-panel{position:absolute;z-index:150;top:calc(100% + 12px);left:0;width:460px;max-height:min(620px,75dvh);overflow:auto}
.tgl-search-heading{margin:0 0 4px!important;font-size:15px!important;font-weight:700!important;color:var(--search-ink)!important}
.tgl-search-status{margin:0 0 12px!important;font-size:13px!important;color:var(--search-muted)!important}
.tgl-search-panel ul{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.tgl-search-panel li{margin:0;padding:0}
.tgl-search-panel a{display:flex!important;align-items:center;gap:10px;padding:12px!important;min-height:48px;color:var(--search-ink)!important;background:transparent;text-decoration:none!important;border:1px solid transparent;border-radius:9px;white-space:normal!important}
.tgl-search-panel a>span{flex:1;min-width:0}
.tgl-search-panel strong,.tgl-search-panel a>span>span{display:block}
.tgl-search-panel strong{font-size:14px;line-height:1.4}
.tgl-search-panel a>span>span{font-size:12px;line-height:1.45;color:var(--search-muted);margin-top:3px}
.tgl-search-panel small{font-size:11px;color:var(--search-muted)}
.tgl-search-panel a:hover,.tgl-search-panel a[aria-selected=true]{background:var(--search-hover);border-color:#e6007e}
.tgl-search-panel a:focus-visible,.tgl-search-close:focus-visible,.tgl-search-mobile:focus-visible{outline:3px solid #e6007e;outline-offset:3px}
html[data-tgl-shell] .tgl-shell-header>.tgl-search-mobile{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:44px;min-height:44px;background:transparent;color:#f5f7fb;border:1px solid #65718b;border-radius:9px;padding:8px;cursor:pointer}
html[data-tgl-shell] body>.tgl-shell-header{grid-template-columns:auto 44px minmax(0,1fr) auto!important;gap:16px!important}
html[data-tgl-shell] .tgl-shell-header>.tgl-search-mobile{grid-column:2;grid-row:1}
.tgl-search-dialog{box-sizing:border-box;width:min(560px,calc(100% - 24px));max-height:calc(100dvh - 24px);margin:12px auto auto;padding:16px;border:1px solid var(--search-line);border-radius:16px;overflow:auto;background:var(--search-bg);box-shadow:0 20px 60px #0006;overscroll-behavior:contain}
.tgl-search-dialog::backdrop{background:#080c1dbb}
.tgl-search-close{display:block;margin:0 0 12px auto;min-height:44px;padding:8px 14px;border:1px solid var(--search-line);border-radius:8px;background:var(--search-field);color:var(--search-ink);font:600 14px Arial,sans-serif;cursor:pointer}
.tgl-search-dialog .tgl-search-panel{margin-top:16px;border:0;box-shadow:none;padding:0}
@media(min-width:1280px){
 html[data-tgl-shell] body>.tgl-shell-header{grid-template-columns:auto minmax(240px,1fr) auto auto!important;gap:18px!important}
 html[data-tgl-shell] .tgl-shell-header>.tgl-search-desktop{display:block;grid-column:2;grid-row:1;width:min(100%,280px);justify-self:center}
 html[data-tgl-shell] .tgl-shell-header>.tgl-search-mobile{display:none}
 html[data-tgl-shell] .tgl-shell-header>.tgl-shell-nav{gap:20px!important}
}
@media(max-width:1279px) and (min-width:1060px){html[data-tgl-shell] .tgl-shell-header>.tgl-shell-nav{gap:16px!important}}
@media(max-width:1059px){
 html[data-tgl-shell] body>.tgl-shell-header{grid-template-columns:minmax(0,1fr) 44px auto!important;gap:0 8px!important}
 html[data-tgl-shell] .tgl-shell-header>.tgl-header-account{grid-column:3!important;grid-row:1}
 html[data-tgl-shell] .tgl-shell-header>.tgl-shell-nav{grid-column:1/-1!important;grid-row:2}
}
@media(max-width:680px){html[data-tgl-shell] .tgl-shell-header .brand-mark :is(.brand-name,strong){font-size:clamp(13.5px,4vw,18.62px)!important}.tgl-search-panel small{display:none}}
@media(prefers-reduced-motion:reduce){.tgl-search-dialog,.tgl-search-panel{scroll-behavior:auto}}

/* B1: identical dimensions while public navigation enhancement is loading. */
.tgl-search-icon-slot{display:block;width:20px;height:20px;flex:none}
html[data-tgl-shell] .tgl-shell-header>.tgl-header-account{box-sizing:border-box;min-width:128px!important}
@media(max-width:1059px){html[data-tgl-shell] .tgl-shell-header>.tgl-header-account{min-width:108px!important}}
@media(max-width:680px){html[data-tgl-shell] .tgl-shell-header>.tgl-header-account{min-width:96px!important}}
/* Keep the existing compact row height when the reserved account slot is needed. */
@media(max-width:680px){
 html[data-tgl-shell] .tgl-shell-header .brand-mark :is(.brand-name,strong){min-width:0;white-space:normal!important}
}

/* DESIGN-05 Package C: one navigation and account node at every width. */
html[data-tgl-shell] .tgl-shell-header{--header-bg:#101525;--header-panel:#192136;--header-soft:#202a40;--header-ink:#f2f3f8;--header-muted:#bac6d7;--header-line:#39455d;--header-focus:#ffb3d9;position:relative;z-index:100}
html[data-tgl-theme=light][data-tgl-shell] .tgl-shell-header{--header-bg:#f6f6f3;--header-panel:#fff;--header-soft:#edf0f3;--header-ink:#172238;--header-muted:#45566b;--header-line:#cad1d7;--header-focus:#97004f}
html[data-tgl-shell] body>.tgl-shell-header{display:flex!important;flex-wrap:nowrap!important;min-height:76px!important;padding:0 max(12px,calc((100% - 1250px)/2))!important;gap:clamp(10px,1.4vw,22px)!important;background:var(--header-bg)!important;border-color:var(--header-line)!important}
html[data-tgl-shell] .tgl-shell-header .brand-mark{gap:7px!important;color:var(--header-ink)!important;flex:none}
html[data-tgl-shell] .tgl-shell-header .brand-mark img{width:55px!important;height:42px!important}
html[data-tgl-shell] .tgl-shell-header .brand-mark .brand-name{font:800 clamp(15px,1.5vw,22px)/1.04 Arial,sans-serif!important;letter-spacing:-.045em!important;white-space:nowrap!important;color:var(--header-ink)!important}
html[data-tgl-shell] .tgl-mobile-menu{display:contents}
html[data-tgl-shell] .tgl-mobile-menu::details-content{display:contents;content-visibility:visible}
html[data-tgl-shell] .tgl-mobile-menu>summary{display:none}
html[data-tgl-shell] .tgl-nav-panel{display:contents}
html[data-tgl-shell] .tgl-shell-header .tgl-shell-nav{display:flex!important;align-items:center;justify-content:flex-end;gap:clamp(10px,1.3vw,20px)!important;margin:0 0 0 auto!important;padding:0!important;border:0!important;position:static!important}
html[data-tgl-shell] .tgl-shell-header .tgl-shell-nav>a{font:400 14px/1.3 Arial,sans-serif!important;min-height:44px!important;padding:0!important;color:var(--header-ink)!important}
html[data-tgl-shell] .tgl-shell-header .tgl-header-account{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:102px;min-height:44px;padding:0 12px;border:1px solid var(--header-line);border-radius:8px;margin:0;font:400 14px/1.3 Arial,sans-serif;white-space:nowrap;color:var(--header-ink)!important;background:transparent}
html[data-tgl-shell] .tgl-shell-header .tgl-header-account svg{width:18px;height:18px;flex:none}
html[data-tgl-shell] .tgl-shell-header :is(a,summary):focus-visible{outline:3px solid var(--header-focus)!important;outline-offset:3px;box-shadow:none!important}
html[data-tgl-shell] .tgl-shell-header .tgl-header-account:hover{text-decoration:underline;text-decoration-color:#e6007e;text-underline-offset:4px}
html[data-tgl-shell] .tgl-shell-header>.tgl-search-mobile{color:var(--header-muted);border-color:var(--header-line);width:44px;flex:none;padding:0}
html[data-tgl-shell] .tgl-guides-mobile{display:none}
@media(min-width:1280px){html[data-tgl-shell] .tgl-shell-header>.tgl-search-desktop{display:block;width:180px;flex:0 1 220px}.tgl-search-desktop .tgl-search-field{background:transparent;border-color:var(--header-line)}html[data-tgl-shell] .tgl-shell-header>.tgl-search-mobile{display:none}}
@media(max-width:1279px) and (min-width:1060px){html[data-tgl-shell] .tgl-shell-header>.tgl-search-desktop{display:none}html[data-tgl-shell] .tgl-shell-header>.tgl-search-mobile{display:inline-flex}}
@media(max-width:1059px){
 html[data-tgl-shell] body>.tgl-shell-header{gap:8px!important;padding:8px 12px!important;min-height:64px!important}
 html[data-tgl-shell] .tgl-shell-header>.tgl-shell-brand{margin-right:auto!important;min-height:44px;min-width:0;flex-shrink:1}
 html[data-tgl-shell] .tgl-shell-header .brand-mark{gap:6px!important}
 html[data-tgl-shell] .tgl-shell-header .brand-mark img{width:36px!important;height:32px!important}
 html[data-tgl-shell] .tgl-shell-header .brand-mark .brand-name{font-size:15px!important;white-space:nowrap!important}
 html[data-tgl-shell] .tgl-shell-header>.tgl-search-mobile{display:inline-flex;min-width:44px;min-height:44px}
 html[data-tgl-shell] .tgl-mobile-menu{display:block;flex:none;margin:0;padding:0;border:0;background:none}
 html[data-tgl-shell] .tgl-mobile-menu::details-content{display:block;content-visibility:revert}
 html[data-tgl-shell] .tgl-mobile-menu[open]::details-content{content-visibility:visible}
 html[data-tgl-shell] .tgl-mobile-menu:not([open])>.tgl-nav-panel{display:none}
 html[data-tgl-shell] .tgl-mobile-menu>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:6px;box-sizing:border-box;min-height:44px;padding:0 9px;border:1px solid var(--header-line);border-radius:8px;font:700 13px/1.3 Arial,sans-serif;color:var(--header-ink);background:none;white-space:nowrap}
 html[data-tgl-shell] .tgl-mobile-menu>summary::-webkit-details-marker{display:none}
 html[data-tgl-shell] .tgl-mobile-menu>summary>span{font-size:18px;line-height:1}
 html[data-tgl-shell] .tgl-mobile-menu[open]>summary{background:var(--header-soft)}
 html[data-tgl-shell] .tgl-nav-panel{box-sizing:border-box;position:absolute;top:100%;left:12px;right:12px;display:flex;flex-direction:column;padding:8px 12px;background:var(--header-panel);border:1px solid var(--header-line);border-radius:12px;box-shadow:0 10px 28px #070a1929;max-height:calc(100dvh - 88px);overflow-y:auto;z-index:110}
 html[data-tgl-shell] .tgl-shell-header .tgl-shell-nav{display:flex!important;flex-direction:column;align-items:stretch!important;gap:0!important;margin:0!important;width:100%!important}
 html[data-tgl-shell] .tgl-shell-header .tgl-shell-nav>a,html[data-tgl-shell] .tgl-shell-header .tgl-header-account{box-sizing:border-box;display:flex!important;justify-content:flex-start!important;align-items:center;min-height:48px!important;padding:8px 10px!important;font-size:15px!important;border:0;border-radius:6px;margin:0;flex-shrink:0}
 html[data-tgl-shell] .tgl-shell-header .tgl-shell-nav>a[aria-current=page]{background:var(--header-soft)!important;box-shadow:none;color:var(--header-focus)!important}
 html[data-tgl-shell] .tgl-shell-header .tgl-nav-panel a:hover{background:var(--header-soft)!important}
 html[data-tgl-shell] .tgl-shell-header .tgl-header-account{border-top:1px solid var(--header-line);border-radius:0;margin-top:5px;font-weight:700!important}
 html[data-tgl-shell] .tgl-guides-desktop{display:none}html[data-tgl-shell] .tgl-guides-mobile{display:inline}
}
@media(max-width:355px){html[data-tgl-shell] body>.tgl-shell-header{gap:4px!important;padding-inline:8px!important}html[data-tgl-shell] .tgl-shell-header .brand-mark{gap:4px!important}html[data-tgl-shell] .tgl-shell-header .brand-mark .brand-name{font-size:14px!important}}
@media(max-width:1059px){html[data-tgl-shell] .tgl-shell-header .tgl-shell-nav>a{max-width:none!important;white-space:nowrap!important}}
