/* Compact account entry: shared topbar across horizontal/vertical navigation. */
.gtt-accounts-anchor{position:relative;display:flex;align-items:center;z-index:95}
.gtt-accounts-button{display:inline-flex;align-items:center;gap:8px;max-width:175px;min-height:36px;border:1px solid rgba(167,200,232,.21);border-radius:10px;background:rgba(22,37,57,.72);color:#eff5ff;font-size:12px;font-weight:750;padding:6px 11px;cursor:pointer}
.gtt-accounts-button span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gtt-accounts-button img{width:24px;height:24px;object-fit:cover;border-radius:50%}
.gtt-accounts-person{color:#a6d8fe;font-size:17px}
.gtt-accounts-panel{position:absolute;right:0;top:calc(100% + 11px);width:min(340px,calc(100vw - 30px));padding:20px;border:1px solid rgba(165,208,255,.25);border-radius:16px;color:#eaf2fc;background:#172235;box-shadow:0 20px 60px rgba(0,0,0,.48);font-size:13px;line-height:1.5}
.gtt-accounts-panel[hidden]{display:none!important}
.gtt-accounts-heading{font-size:18px;font-weight:800;line-height:1.25}
.gtt-accounts-panel p{margin:8px 0 14px;color:#bdc9d8}
.gtt-accounts-panel a,.gtt-accounts-panel button{cursor:pointer}
.gtt-accounts-panel a{text-decoration:none}
.gtt-auth-discord,.gtt-auth-google{display:flex;align-items:center;justify-content:center;min-height:40px;margin-top:9px;border-radius:8px;font-weight:800}
.gtt-auth-discord{color:white!important;background:#5865f2}
.gtt-auth-google{color:#242424!important;background:#fafafa}
.gtt-accounts-note{font-size:11px;color:#a3b3c8!important;line-height:1.45}
.gtt-accounts-switch{display:flex;align-items:flex-start;gap:9px;font-weight:700;margin-top:14px}
.gtt-accounts-switch input{margin-top:4px;accent-color:#5c9bf8}
.gtt-accounts-section,.gtt-accounts-row{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:12px 0}
.gtt-accounts-section span{font-size:12px;color:#b5c9df;text-transform:capitalize}
.gtt-accounts-link{display:block;margin:8px 0;color:#a2d9ff!important;font-weight:700}
.gtt-accounts-row button,.gtt-accounts-row a{border:1px solid rgba(159,191,222,.25);border-radius:8px;padding:8px;background:rgba(255,255,255,.06);color:#eaf2fc;font-size:12px;font-weight:700;line-height:1.2}
.gtt-accounts-row a{color:#eaf2fc!important}
.gtt-accounts-message{color:#b9e6ff;font-size:12px}
@media(max-width:740px){.gtt-accounts-button{padding:7px}.gtt-accounts-button span:last-child{display:none}.gtt-accounts-panel{right:-12px}}

/* Account dashboard uses the existing charcoal glass palette and compact type. */
.gtt-account-dashboard{width:min(760px,calc(100vw - 28px));max-height:min(87dvh,800px);padding:0;border:1px solid rgba(166,208,255,.27);border-radius:17px;background:#152133;color:#eaf3fd;box-shadow:0 24px 90px rgba(0,0,0,.65);overflow:auto}
.gtt-account-dashboard::backdrop{background:rgba(2,7,14,.72);backdrop-filter:blur(4px)}
.gtt-account-dashboard-inner{padding:clamp(18px,3vw,28px)}
.gtt-account-dashboard header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;border-bottom:1px solid rgba(182,215,242,.16);padding-bottom:16px}
.gtt-account-dashboard small{font-size:11px;letter-spacing:.1em;color:#8da9c6}
.gtt-account-dashboard h2{font-size:24px;line-height:1.25;margin:6px 0}
.gtt-account-dashboard p{font-size:12px;color:#abbdd0;margin:4px 0 8px}
.gtt-account-dashboard h3{font-size:13px;margin:0 0 12px;color:#eaf3fd}
.gtt-account-dashboard button,.gtt-account-dashboard footer a{color:#eff7ff;background:rgba(176,218,255,.08);border:1px solid rgba(176,218,255,.22);border-radius:9px;padding:8px 12px;font-size:12px;font-weight:700;cursor:pointer}
.gtt-account-dashboard header button{font-size:22px;font-weight:400;line-height:1;padding:6px 11px}
.gtt-account-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:20px 0}
.gtt-account-totals>div{padding:13px;border:1px solid rgba(172,205,234,.15);border-radius:10px;background:rgba(201,223,250,.045)}
.gtt-account-totals b{font-size:21px;font-variant-numeric:tabular-nums;display:block}
.gtt-account-totals span{font-size:11px;color:#afc1d8}
.gtt-account-dashboard section{padding:16px 0;border-top:1px solid rgba(182,215,242,.12)}
.gtt-account-dashboard table{width:100%;border-collapse:collapse;font-size:12px}
.gtt-account-dashboard th{text-align:left;text-transform:capitalize;font-weight:700;color:#e5eef8;padding:7px 8px 7px 0}
.gtt-account-dashboard td{text-align:right;padding:7px 0 7px 8px;color:#afc3da}
.gtt-account-dashboard tbody tr+tr{border-top:1px solid rgba(178,205,234,.09)}
.gtt-account-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.gtt-account-dashboard ul{list-style:none;margin:0;padding:0;max-height:220px;overflow:auto}
.gtt-account-dashboard li{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;font-size:11px;padding:8px 0;border-top:1px solid rgba(178,205,234,.09)}
.gtt-account-dashboard li b{font-weight:600;text-transform:capitalize}
.gtt-account-dashboard li span{color:#8fa7be;text-align:right;white-space:nowrap}
.gtt-account-dashboard footer{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-top:12px}
.gtt-account-dashboard footer a{text-decoration:none}
@media(max-width:570px){.gtt-account-totals{grid-template-columns:repeat(2,minmax(0,1fr))}.gtt-account-columns{grid-template-columns:1fr;gap:0}.gtt-account-dashboard li span{white-space:normal}}

.gtt-accounts-panel .gtt-accounts-unlink{display:inline-block;margin:2px 8px 3px 0;border:0;border-bottom:1px dotted rgba(170,194,219,.45);padding:3px 0;background:transparent;color:#b1c9e1;font-size:11px;text-transform:capitalize}
.gtt-account-v4-cloud textarea{display:block;width:100%;min-height:58px;box-sizing:border-box;margin:10px 0;padding:9px 11px;border:1px solid rgba(166,208,255,.27);border-radius:9px;resize:vertical;background:#101b2b;color:#f0f5fc;font:12px/1.45 ui-monospace,monospace}
.gtt-account-v4-cloud textarea[hidden]{display:none}
.gtt-account-v4-actions{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.gtt-account-v4-actions button[disabled]{opacity:.6;cursor:wait}
.gtt-account-v4-cloud [data-gtt-v4-status]{color:#afcfed;min-height:16px}

.gtt-auth-discord,.gtt-auth-google{gap:11px;font-size:13px}
.gtt-auth-discord svg{flex:none;color:#fff}
.gtt-auth-google-mark{font-weight:900;font-family:Arial,Helvetica,sans-serif;font-size:19px;line-height:1;
 background:conic-gradient(#4285f4 0deg 115deg,#34a853 115deg 185deg,#fbbc05 185deg 235deg,#ea4335 235deg 300deg,#4285f4 300deg);
 background-clip:text;-webkit-background-clip:text;color:transparent;flex:none}

/* The website's two real, visible navigation hosts. The legacy .topbar is hidden. */
#gtt-shell-dock .gtt-accounts-anchor,
#wb2-shell .gtt-accounts-anchor{flex:0 0 auto;min-width:0;z-index:120}
#gtt-shell-dock .gtt-accounts-button{
  min-height:38px;border-radius:13px;
  border-color:rgba(173,225,255,.28);
  background:linear-gradient(150deg,rgba(129,191,244,.13),rgba(32,61,104,.19));
  box-shadow:inset 0 1px rgba(255,255,255,.19),0 7px 22px rgba(1,10,27,.16);
}
#wb2-shell .gtt-accounts-button{
  min-height:38px;border-radius:9px;max-width:155px;
  background:var(--wb-raised,rgba(78,127,187,.22));
  color:var(--wb-ink,#eff8ff);
  border-color:var(--wb-rule,rgba(178,216,255,.31));
}
#gtt-shell-dock .gtt-accounts-panel,#wb2-shell .gtt-accounts-panel{
  display:block;z-index:140;right:0;max-height:min(78dvh,650px);overflow-y:auto;
}
#gtt-shell-dock .gtt-accounts-panel[hidden],#wb2-shell .gtt-accounts-panel[hidden]{
  display:none!important;
}
@media(max-width:1090px){
  #wb2-shell .gtt-accounts-button{width:38px;min-width:38px;justify-content:center;padding:6px}
  #wb2-shell .gtt-accounts-button span:last-child{display:none}
}
@media(max-width:740px){
  #gtt-shell-dock .gtt-accounts-button{width:38px;min-width:38px;justify-content:center}
}

/* Signed-in primary avatar opens My Player Hub, secondary caret keeps
   provider linking, export, sign-out and account settings available. */
.gtt-accounts-anchor:has(.gtt-accounts-menu-trigger:not([hidden])){gap:4px}
.gtt-accounts-menu-trigger{display:grid;place-items:center;flex:0 0 25px;width:25px;min-height:36px;
 padding:3px 0;border:1px solid rgba(154,204,250,.25);border-radius:10px;
 color:#cce8ff;background:rgba(48,98,150,.23);font-size:17px;cursor:pointer;
 box-shadow:inset 0 1px rgba(255,255,255,.10)}
.gtt-accounts-menu-trigger[hidden]{display:none!important}
.gtt-accounts-menu-trigger:hover,.gtt-accounts-menu-trigger[aria-expanded=true]{
 background:rgba(68,138,200,.37);border-color:rgba(139,204,255,.48)}
.gtt-accounts-button:focus-visible,.gtt-accounts-menu-trigger:focus-visible{
 outline:2px solid #90d2ff;outline-offset:2px}
@media(max-width:740px){.gtt-accounts-menu-trigger{width:24px;flex-basis:24px;min-height:38px}}

/* Profile appearance persists in the visible dock and Workbench header. */
.gtt-accounts-button{position:relative}
.gtt-accounts-button>.gtt-account-flag{width:22px;height:17px;flex:none;object-fit:contain;
 border-radius:0;box-shadow:none;image-rendering:auto}
.gtt-accounts-button>img:first-child[src^="/static/"]{image-rendering:pixelated;object-fit:contain}
@media(max-width:1090px){
 #wb2-shell .gtt-accounts-button>span:nth-child(2){display:none}
 #wb2-shell .gtt-accounts-button>.gtt-account-flag{position:absolute;bottom:-5px;right:-5px;
 width:18px;height:13px;filter:drop-shadow(0 2px 2px #071222)}
}
@media(max-width:740px){
 #gtt-shell-dock .gtt-accounts-button>span:nth-child(2){display:none}
 #gtt-shell-dock .gtt-accounts-button>.gtt-account-flag{position:absolute;bottom:-5px;right:-5px;
 width:18px;height:13px;filter:drop-shadow(0 2px 2px #071222)}
}
