/* Branding and the left-edge inventory shortcut reuse the toolbar glass. */
#brand-watermark{
  position:absolute!important;left:0;top:0;display:flex;align-items:center;gap:8px;
  box-sizing:border-box;height:var(--ui-pill-h)!important;min-height:var(--ui-pill-h)!important;
  padding:0 12px!important;border-radius:var(--ui-pill-radius)!important;
  color:var(--ui-text);font-size:13px;font-weight:700;letter-spacing:.3px;white-space:nowrap;
  pointer-events:none;user-select:none;
}
#brand-watermark img{display:block;flex:none;width:20px;height:20px}
/* Only position the label; shared glass layers must remain absolute. */
#brand-watermark > span:not(.glass__clip){position:relative}
#loot-edge-handle{
  position:fixed!important;left:var(--sal,0px);top:50%;transform:translateY(-50%);
  z-index:955;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;
  box-sizing:border-box;width:44px;height:76px;padding:8px 5px;
  border-radius:0 14px 14px 0;color:var(--ui-text);cursor:pointer;touch-action:manipulation;
  font:700 12px/1.2 system-ui,-apple-system,"Microsoft YaHei",sans-serif;
}
#loot-edge-handle[hidden]{display:none!important}
#loot-edge-handle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#loot-edge-handle:focus-visible{outline:2px solid var(--ui-accent);outline-offset:2px}
body.glass-disabled :is(#brand-watermark,#loot-edge-handle){background:var(--op-card)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
@media(hover:hover) and (pointer:fine){
  #loot-edge-handle:hover{color:var(--ui-accent)!important}
}
/* Two rows reserve independent space for branding, tools and the status pill. */
@media(max-width:1100px) and (min-width:621px){
  #commandbar #island{left:50%!important;top:42px!important;transform:translateX(-50%)!important}
  #dock,#roster.glass,#loot-drawer.glass{top:96px!important}
}
@media(max-width:620px){
  #brand-watermark{top:42px;height:30px!important;min-height:30px!important;padding:0 10px!important;font-size:11px;gap:6px}
  #brand-watermark img{width:17px;height:17px}
  #commandbar #island{top:78px!important}
  #dock,#roster.glass,#loot-drawer.glass{top:134px!important;max-height:calc(100dvh - 152px)!important}
}
