/* Only width, spacing and placement change. All artwork and component styles stay upstream. */
/* Header order refinements are below the original layout declarations. */
body>header.gugu-site-header.gugu-site-header{max-width:none!important;width:100%!important;margin:0!important;padding-left:24px!important;padding-right:24px!important}
body>header.gugu-site-header.gugu-site-header{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:16px!important;padding:12px 20px!important;overflow-x:auto!important;overflow-y:visible!important;min-height:72px!important}
.gugu-site-header #header-search-slot,.gugu-site-header .brand-slogan{display:none!important}
body>header.gugu-site-header.gugu-site-header>.site-header-controls{display:contents!important}
.gugu-site-header .brand-heading{flex:none!important;order:0}.gugu-site-header .brand-heading h1{font-size:22px!important;white-space:nowrap!important;margin:0!important}.gugu-site-header .brand-mark{width:40px!important;height:40px!important}
.gugu-site-header .header-server{flex:0 0 330px!important;width:330px!important;order:1}.gugu-site-header .market-picker{min-width:0!important}.gugu-site-header .market-picker summary{font-size:12px!important;min-height:44px!important;padding:6px 10px!important}
.gugu-site-header .gugu-site-nav{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:2px!important;order:2;flex:none!important;width:auto!important;margin:0!important;padding:0!important;border:0!important}.gugu-site-header .gugu-site-nav>a{font-size:14px!important;white-space:nowrap!important;padding:12px 10px!important;margin:0!important}
.gugu-site-header #gugu-rights-bar{order:3;flex:0 0 240px!important;width:240px!important;min-width:240px!important;margin:0!important;font-size:12px!important;padding:6px 10px!important;min-height:44px!important}.gugu-site-header #gugu-rights-summary{font-size:12px!important}
.gugu-site-header #gugu-rights-detail{order:4;flex:none!important;white-space:nowrap!important;margin:0!important;font-size:13px!important;padding:10px 12px!important}.gugu-site-header .header-account-button{order:5;flex:none!important;white-space:nowrap!important;margin:0!important;font-size:13px!important;padding:10px 12px!important}

body>header.gugu-site-header.gugu-site-header{justify-content:flex-start!important;gap:12px!important}
body>header.gugu-site-header.gugu-site-header .brand-heading{order:0!important;margin:0!important;flex:none!important}
body>header.gugu-site-header.gugu-site-header .gugu-site-nav{order:1!important;margin:0!important;flex:none!important}
body>header.gugu-site-header.gugu-site-header .header-server{order:2!important;flex:0 0 auto!important;width:auto!important;margin:0 0 0 auto!important;white-space:nowrap!important}
body>header.gugu-site-header.gugu-site-header .market-picker{width:auto!important;min-width:max-content!important}
body>header.gugu-site-header.gugu-site-header .market-picker summary{display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:10px!important;white-space:nowrap!important}
.gugu-site-header .market-scan-time,.gugu-site-header .market-current{white-space:nowrap!important;flex:none!important;display:inline-flex!important;margin:0!important}
body>header.gugu-site-header.gugu-site-header #gugu-rights-bar{order:3!important;flex:none!important;width:auto!important;min-width:0!important;white-space:nowrap!important}
body>header.gugu-site-header.gugu-site-header #gugu-rights-summary{white-space:nowrap!important}
body>header.gugu-site-header.gugu-site-header #gugu-rights-detail{order:4!important}
body>header.gugu-site-header.gugu-site-header .header-account-button{order:5!important}
.gugu-site-header .gold-beta:not(.terminal-new){display:none!important}
.gugu-site-header .terminal-new{display:block!important}
body>header.gugu-site-header.gugu-site-header .brand-heading{width:auto!important;max-width:none!important;transform:none!important}
body>header.gugu-site-header.gugu-site-header .gugu-site-nav{position:static!important;transform:none!important;left:auto!important;right:auto!important;max-width:none!important}
body>header.gugu-site-header.gugu-site-header .header-server{display:flex!important}
body>header.gugu-site-header.gugu-site-header #gugu-rights-bar{display:flex!important}
body>header.gugu-site-header.gugu-site-header #gugu-rights-detail,body>header.gugu-site-header.gugu-site-header .header-account-button{display:inline-flex!important}


body>header.gugu-site-header.gugu-site-header{overflow:visible!important;height:76px!important;min-height:76px!important;box-sizing:border-box!important;padding:12px 16px!important;gap:10px!important;position:relative!important;z-index:50}
body>header.gugu-site-header.gugu-site-header .brand-heading{width:max-content!important;min-width:0!important;max-width:none!important;gap:8px!important;user-select:none;-webkit-user-drag:none}
body>header.gugu-site-header.gugu-site-header .brand-heading>div{width:auto!important;flex:none!important}body>header.gugu-site-header.gugu-site-header .brand-heading h1{letter-spacing:0!important}
body>header.gugu-site-header.gugu-site-header .market-picker,body>header.gugu-site-header.gugu-site-header #gugu-rights-bar{box-sizing:border-box!important;width:440px!important;min-width:440px!important;max-width:440px!important;height:44px!important;min-height:44px!important;max-height:44px!important;margin:0!important;flex:none!important}
body>header.gugu-site-header.gugu-site-header .market-picker summary{box-sizing:border-box!important;width:100%!important;height:44px!important;min-height:44px!important;padding:8px 12px!important;border-width:1px!important;font-size:12px!important;line-height:26px!important}
body>header.gugu-site-header.gugu-site-header #gugu-rights-bar{padding:8px 12px!important;align-items:center!important;line-height:26px!important;border-width:1px!important}
body>header.gugu-site-header.gugu-site-header #gugu-rights-detail,body>header.gugu-site-header.gugu-site-header .header-account-button{box-sizing:border-box!important;height:44px!important;align-items:center!important;justify-content:center!important}
/* Upstream rights controls use align-self:start; normalize all four controls. */
body>header.gugu-site-header.gugu-site-header .market-picker{width:max-content!important;min-width:500px!important;max-width:none!important}
body>header.gugu-site-header.gugu-site-header .market-picker summary{width:max-content!important;min-width:100%!important;padding-right:30px!important;overflow:visible!important;text-overflow:clip!important}
body>header.gugu-site-header.gugu-site-header .header-server,body>header.gugu-site-header.gugu-site-header #gugu-rights-bar,body>header.gugu-site-header.gugu-site-header #gugu-rights-detail,body>header.gugu-site-header.gugu-site-header .header-account-button{align-self:center!important}
body>header.gugu-site-header.gugu-site-header .header-server{height:44px!important;min-height:44px!important;align-items:center!important}
.gugu-site-header .market-menu{z-index:1000!important}.gugu-site-header .gugu-site-nav{overflow:visible!important}#gugu-rights-dialog{max-height:calc(100dvh - 80px)!important;overflow:auto!important}

.gugu-site-header .header-timezone,.gugu-site-header .header-language{display:none!important}.gugu-site-header .brand-heading{margin-right:0!important}.gugu-site-header .gugu-site-nav{margin-left:0!important}.gugu-site-header .brand-mark{user-select:none;-webkit-user-drag:none}
@media(max-width:1800px){body>header.gugu-site-header.gugu-site-header{height:auto!important;min-height:76px!important;flex-wrap:wrap!important}.gugu-site-header .header-server{margin-left:0!important}}

body>header.gugu-site-header.gugu-site-header .brand-heading>div,body>header.gugu-site-header.gugu-site-header .brand-heading h1{width:max-content!important;min-width:0!important;max-width:none!important;flex:none!important}

/* Allow the desktop controls to use as many rows as their contents require. */
@media (min-width: 801px) {
  body > header.gugu-site-header.gugu-site-header {
    flex-wrap: wrap !important;
    height: auto !important;
    max-height: none !important;
    max-width: 100% !important;
  }

  body > header.gugu-site-header.gugu-site-header .gugu-site-nav,
  body > header.gugu-site-header.gugu-site-header .header-server,
  body > header.gugu-site-header.gugu-site-header .header-account-cluster {
    flex-wrap: wrap !important;
    max-width: 100% !important;
    height: auto !important;
  }

  body > header.gugu-site-header.gugu-site-header .header-gold-index-label {
    display: inline !important;
  }
}

/* Scale the header controls together across common scaled desktop viewports. */
@media (min-width: 1280px) and (max-width: 2399px) {
  body > header.gugu-site-header.gugu-site-header {
    flex-wrap: nowrap !important;
    gap: 6px !important;
    padding-inline: 10px !important;
    --desktop-header-scale: .94;
  }
  body > header.gugu-site-header.gugu-site-header .brand-heading,
  body > header.gugu-site-header.gugu-site-header .gugu-site-nav,
  body > header.gugu-site-header.gugu-site-header .gugu-bug-widget,
  body > header.gugu-site-header.gugu-site-header #treasure-bay-plan-entry,
  body > header.gugu-site-header.gugu-site-header .header-server,
  body > header.gugu-site-header.gugu-site-header .header-account-cluster {
    zoom: var(--desktop-header-scale);
  }
  body > header.gugu-site-header.gugu-site-header .market-picker,
  body > header.gugu-site-header.gugu-site-header > .site-header-controls > .header-account-cluster > #gugu-rights-bar {
    width: max-content !important;
    min-width: 0 !important;
    max-width: none !important;
  }
}
@media (min-width: 1280px) and (max-width: 2099px) {
  body > header.gugu-site-header.gugu-site-header {
    --desktop-header-scale: .84;
  }
  body > header.gugu-site-header.gugu-site-header .gugu-site-nav > a {
    padding-inline: 4px !important;
  }
}
@media (min-width: 1280px) and (max-width: 1799px) {
  body > header.gugu-site-header.gugu-site-header {
    --desktop-header-scale: .8;
  }
  body > header.gugu-site-header.gugu-site-header .market-picker summary {
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 0 !important;
    line-height: 16px !important;
    padding: 2px 22px 2px 8px !important;
  }
}
@media (min-width: 1280px) and (max-width: 1535px) {
  body > header.gugu-site-header.gugu-site-header { --desktop-header-scale: .68; }
}
