/* Header search shares the existing masthead palette and native controls. */
/* Notifications are paused in the header; underlying account records are retained. */
html body>header .global-notifications{display:none!important}
body>header:has(.site-header-search){display:grid;grid-template-columns:max-content minmax(0,1fr) minmax(250px,330px) max-content;gap:20px;align-items:center}
body>header:has(.site-header-search)>.site-nav{min-width:0;justify-content:center}
body>header:has(.site-header-search)>.compact-build{min-width:0}
.site-header-search{position:relative;min-width:0}
.header-search-panel{min-width:0}
body>header .header-character-search{box-sizing:border-box;display:grid;grid-template-columns:64px minmax(0,1fr) 38px;align-items:stretch;gap:0;width:100%;min-width:0;margin:0;padding:0;border:1px solid #6f5a3b;border-radius:5px;background:#17130fbf;box-shadow:none}
body>header .header-character-search:focus-within{border-color:#d8b36b;box-shadow:0 0 0 2px #d8b36b16}
body>header .header-character-search :is(input,select,button){box-sizing:border-box;min-width:0;width:100%;height:38px;min-height:38px;margin:0;border:0;border-radius:0;box-shadow:none;background:transparent;color:#ead6ae;font:inherit;font-size:12px}
body>header .header-character-search select{appearance:none;padding:0 22px 0 12px;border-right:1px solid #80613b50;background-image:linear-gradient(45deg,transparent 50%,#c5aa76 50%),linear-gradient(135deg,#c5aa76 50%,transparent 50%);background-position:calc(100% - 15px) 17px,calc(100% - 11px) 17px;background-size:4px 4px;background-repeat:no-repeat;cursor:pointer}
body>header .header-character-search input{padding:0 11px}
body>header .header-character-search input::placeholder{color:#b9a68b;opacity:1}
body>header .header-character-search button{display:grid;place-items:center;padding:0;cursor:pointer;color:#daba7d;border-radius:0 4px 4px 0}
body>header .header-character-search button:hover{background:#daba7d16;color:#ffe0a3}
.header-search-icon{display:block;width:18px;height:18px;flex:none}
.header-search-icon svg{display:block;width:100%;height:100%}
.header-search-toggle{display:grid;place-items:center;width:36px;height:38px;padding:0;border:1px solid #6f5a3b;border-radius:5px;background:#17130fbf;color:#dfbf83}
.header-search-error{position:absolute;z-index:55;top:100%;left:0;right:0;margin:6px 0 0;padding:10px 12px;border:1px solid #94713f;border-radius:5px;background:#211a13;color:#f3c89a;font-size:12px;line-height:1.5;box-shadow:0 6px 18px #0006}
body>header .header-character-search :is(input,select,button):focus-visible,.header-search-toggle:focus-visible{outline:2px solid #edca86;outline-offset:-3px}
@media(min-width:760px) and (max-width:1279px){
 body>header:has(.site-header-search){grid-template-columns:max-content minmax(220px,1fr) max-content;gap:8px 20px}
 body>header:has(.site-header-search)>.brand{grid-column:1;grid-row:1}
 body>header:has(.site-header-search)>.site-nav{grid-column:1/-1;grid-row:2;order:0;width:auto;margin:0;justify-content:center}
 body>header:has(.site-header-search)>.site-header-search{grid-column:2;grid-row:1;width:100%;max-width:400px;justify-self:end}
 body>header:has(.site-header-search)>.compact-build{grid-column:3;grid-row:1}
}
@media(max-width:759px){
 html body>header:has(.site-header-search){grid-template-columns:minmax(0,1fr) 40px max-content;gap:10px 6px;padding:10px 12px 12px}
 html body>header:has(.site-header-search)>.brand{grid-column:1;grid-row:1;min-width:0;gap:6px;align-items:center}
 html body>header:has(.site-header-search) .brand>.brand-wordmark{margin:0;font-size:16px;letter-spacing:-.6px;line-height:1.15}
 html body>header:has(.site-header-search) .brand>.brand-icon{width:30px;height:30px;flex-basis:30px}
 html body>header:has(.site-header-search)>.compact-build{grid-column:3;grid-row:1;margin:0;padding:0;min-width:0}
 html body>header:has(.site-header-search) .account-control{flex-wrap:nowrap;align-items:center;gap:0}
 html body>header:has(.site-header-search) .account-control .global-notifications{width:36px;height:40px;margin:0 8px 0 0}
 html body>header:has(.site-header-search) .account-control .notification-bell{width:36px;height:36px;min-height:36px}
 html body>header:has(.site-header-search) .account-control #account-button{box-sizing:border-box;min-height:40px;max-width:132px;margin:0;padding:5px 8px;font-size:11px;line-height:1.15;white-space:normal}
 html body>header:has(.site-header-search) .account-control #account-button:not(.profile-account-trigger):not(.account-connect-branded){max-width:70px}
 html body>header:has(.site-header-search) .account-control #account-button.account-connect-branded{width:40px;min-width:40px;max-width:40px;height:40px;min-height:40px;padding:0;font-size:0}
 html body>header:has(.site-header-search) .account-control #account-button.account-connect-branded::before{left:50%;top:50%;width:23px;height:23px;transform:translate(-50%,-50%)}
 html body>header:has(.site-header-search) .account-control #account-button.profile-account-trigger{width:40px;height:40px;min-height:40px;padding:5px;gap:0}
 html body>header:has(.site-header-search) .profile-account-trigger>img{width:28px;height:28px}
 html body>header:has(.site-header-search) .profile-account-trigger>.profile-account-name{display:none}
 html body>header:has(.site-header-search) .account-control .account-menu-toggle{box-sizing:border-box;width:32px;min-width:32px;height:40px;min-height:40px;padding:0}
 html body>header:has(.site-header-search)>.site-nav{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:1.5fr 1fr 1fr;align-items:stretch;gap:4px;width:100%;min-width:0;max-width:none;margin:0;padding:0;order:0;overflow:visible}
 html body>header:has(.site-header-search)>.site-nav>:is(#nav-builds,#nav-find-gear,#nav-talents){grid-column:auto;display:flex;flex:none;align-items:center;justify-content:center;gap:4px;width:auto;min-width:0;max-width:none;min-height:44px;margin:0;padding:6px 4px;border:1px solid transparent;border-radius:4px;font-size:11px;line-height:1.15;white-space:nowrap;background:transparent}
 html body>header:has(.site-header-search)>.site-nav>:is(#nav-builds,#nav-find-gear,#nav-talents)[aria-current=page]{border-color:#ad8b4b;background:#b48b4224;color:#ffe0a3}
 html body>header:has(.site-header-search)>.site-nav>:is(#nav-builds,#nav-find-gear,#nav-talents)>svg{width:14px;height:14px;flex:none}
 html body>header:has(.site-header-search)>.site-nav>:is(#nav-builds,#nav-find-gear,#nav-talents)>span{min-width:0;line-height:1.15;text-align:center;white-space:nowrap}
 html body>header>.site-header-search{display:contents}
 html body>header .header-search-toggle{grid-column:2;grid-row:1;justify-self:end;align-self:center;box-sizing:border-box;width:40px;height:40px;min-height:40px;margin:0;padding:0;border-radius:4px}
 .header-search-panel{position:relative;grid-column:1/-1;grid-row:3;margin:0}
 body>header .header-character-search{grid-template-columns:70px minmax(0,1fr) 44px}
 body>header .header-character-search :is(input,select,button){height:44px;min-height:44px;font-size:16px}
 body>header .header-character-search select{background-position:calc(100% - 15px) 20px,calc(100% - 11px) 20px;font-size:12px}
}

@media(max-width:360px){
 html body>header:has(.site-header-search) .brand>.brand-wordmark{font-size:15px}
 html body>header:has(.site-header-search) .brand>.brand-icon{width:28px;height:28px;flex-basis:28px}
 html body>header:has(.site-header-search)>.brand{gap:5px}
}
/* Preview navigation is revealed only after the server account-feature check. */
.site-nav>#nav-sim[hidden]{display:none!important}.site-nav>#nav-sim{display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap}.site-nav>#nav-sim>small{font-size:9px;line-height:1;padding:3px 4px;border:1px solid #bfa05c77;border-radius:3px;color:#e1c88f;background:#c49d4914;text-transform:none;font-weight:500}
@media(max-width:759px){html body>header:has(.site-header-search)>.site-nav:has(#nav-sim:not([hidden])){grid-template-columns:1.5fr 1fr 1fr .95fr}html body>header:has(.site-header-search)>.site-nav>#nav-sim{grid-column:auto;min-width:0;min-height:44px;padding:6px 3px;margin:0;border:1px solid transparent;border-radius:4px;font-size:11px;gap:4px}html body>header:has(.site-header-search)>.site-nav>#nav-sim>small{font-size:8px;padding:2px 3px}}
/* Primary workflows stay together; reference tools form a separate group. */
body>header:has(.site-header-search)>.site-nav{display:flex;align-items:center;gap:24px}.site-nav-primary,.site-nav-secondary{display:flex;align-items:center;gap:8px;min-width:0}.site-nav-primary{min-width:245px;justify-content:flex-start}.site-nav-secondary{gap:14px}.site-nav :is(#nav-builds,#nav-sim,#nav-find-gear,#nav-talents,#nav-items){display:flex;align-items:center;justify-content:center;gap:6px;min-height:40px;box-sizing:border-box;white-space:nowrap;margin:0}.site-nav-secondary>a{font-size:12px;padding:7px 5px}.site-nav-secondary>a>svg{width:15px;height:15px;flex:none}.site-nav #nav-sim[hidden]{display:none!important}.site-nav #nav-sim{padding:8px 10px;border:1px solid #7c633c;border-radius:4px;font-size:13px}.site-nav #nav-sim>small{font-size:9px;line-height:1;padding:3px 4px;border:1px solid #bfa05c77;border-radius:3px;color:#e1c88f;background:#c49d4914;font-weight:500}.site-nav-primary>#nav-builds{padding:8px 10px;border-radius:4px}
@media(min-width:760px) and (max-width:1479px){html body>header:has(.site-header-search){grid-template-columns:max-content minmax(220px,1fr) max-content;gap:8px 20px}html body>header:has(.site-header-search)>.brand{grid-column:1;grid-row:1}html body>header:has(.site-header-search)>.site-nav{grid-column:1/-1;grid-row:2;width:100%;justify-content:center}html body>header:has(.site-header-search)>.site-header-search{grid-column:2;grid-row:1}html body>header:has(.site-header-search)>.compact-build{grid-column:3;grid-row:1}}
@media(max-width:759px){html body>header:has(.site-header-search)>.site-nav{display:flex;flex-direction:column;align-items:stretch;gap:6px;grid-template-columns:none}html body>header:has(.site-header-search)>.site-nav>.site-nav-primary{min-width:0;min-height:44px;justify-content:flex-start;gap:8px}html body>header:has(.site-header-search)>.site-nav>.site-nav-secondary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}html body>header:has(.site-header-search) .site-nav :is(#nav-builds,#nav-sim,#nav-find-gear,#nav-talents,#nav-items){min-width:0;min-height:40px;font-size:12px;padding:7px 10px;gap:5px;width:auto;border-radius:4px;white-space:nowrap}.site-nav-secondary>a>span{white-space:nowrap}.site-nav-primary>#nav-builds{border:1px solid #ad8b4b;background:#b48b4224;color:#ffe0a3}.site-nav-secondary>a[aria-current=page]{background:#b48b4214;color:#ffe0a3}.site-nav :is(#nav-builds,#nav-find-gear,#nav-talents,#nav-items)>svg{width:14px;height:14px;flex:none}.site-nav #nav-sim>small{font-size:9px}.site-nav-secondary{border-top:1px solid #8b71332c;padding-top:3px}}
/* Nested groups retain the established gold outline icons and primary buttons. */
html body>header .site-nav :is(#nav-builds,#nav-find-gear,#nav-talents,#nav-items)>svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}
html body>header .site-nav .site-nav-primary>:is(#nav-builds,#nav-sim){box-sizing:border-box;min-height:40px;padding:8px 10px;border:1px solid #725a37;border-radius:4px;background:transparent;text-decoration:none}
html body>header .site-nav .site-nav-primary>:is(#nav-builds,#nav-sim)[aria-current=page]{border-color:#ad8b4b;background:#b48b4224;color:#ffe0a3}
html body>header .site-nav .site-nav-primary>:is(#nav-builds,#nav-sim)::after{display:none}.site-nav-secondary>a{font-size:13px}
@media(max-width:759px){html body>header .site-nav .site-nav-secondary>a{font-size:12px}}
/* Workflow tabs use one quiet rail, with reference links separated by a rule. */
html body>header .site-nav{gap:18px}.site-nav-primary{min-width:292px;gap:4px}.site-nav-primary:not(:has(#nav-sim:not([hidden]))){min-width:0}.site-nav-secondary{padding-left:18px;border-left:1px solid #9b7a3f40;gap:10px}
html body>header .site-nav .site-nav-primary>:is(#nav-builds,#nav-sim){position:relative;border:0;border-radius:5px;background:transparent;padding:10px 12px;color:#d8c09a;font-size:13px;font-weight:600;gap:7px;min-height:44px}
html body>header .site-nav .site-nav-primary>:is(#nav-builds,#nav-sim):hover{background:#e4bd7010;color:#ffe0a3}
html body>header .site-nav .site-nav-primary>:is(#nav-builds,#nav-sim)[aria-current=page]{border:0;background:#d5ad5d14;color:#ffe0a3;box-shadow:inset 0 -2px #d6b36e}
html body>header .site-nav #nav-sim>img{width:17px;height:17px;flex:none}
html body>header .site-nav #nav-sim>small{display:inline-block;padding:4px 6px;border:1px solid #c4f18b88;border-radius:4px;background:#bde783;color:#25301a;font-size:9px;line-height:1;font-weight:750;letter-spacing:.1px;white-space:nowrap}
html body>header .site-nav .site-nav-secondary>a{color:#b9a98d;border:0;text-decoration:none;padding:8px 5px;gap:6px;font-size:13px}
html body>header .site-nav .site-nav-secondary>a:hover,html body>header .site-nav .site-nav-secondary>a[aria-current=page]{color:#ffe0a3;background:#c5a0570b}
@media(max-width:759px){html body>header:has(.site-header-search)>.site-nav{gap:3px}html body>header:has(.site-header-search)>.site-nav>.site-nav-primary{min-width:0;justify-content:flex-start;gap:5px}html body>header .site-nav .site-nav-primary>:is(#nav-builds,#nav-sim){padding:8px 10px;font-size:13px;min-height:42px}html body>header .site-nav>.site-nav-secondary{border-left:0;padding-left:0;border-top:1px solid #8b71332c;padding-top:3px}html body>header .site-nav .site-nav-secondary>a{font-size:12px;padding:7px 4px;min-height:38px}html body>header .site-nav #nav-sim>small{font-size:9px;padding:4px 5px}}
