/* 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}
}
