/* Local brand assets remain usable over file:// and in either legacy layout. */
/* Keep the compact leaderboard and its user-configurable font size.
   League metadata returns beneath the name, without a brand icon column. */
.rank-name-copy { display:flex; flex-direction:column; min-width:0; width:100%; }
.rank-name-meta { display:flex; align-items:center; justify-content:flex-end; gap:6px; font-size:calc(var(--rank-font-size) - 4px); line-height:1.2; }
.rank-league-label { display:inline-flex; align-items:center; }
.rank-name-meta .league-icon { --league-badge-size:20px; height:20px; width:calc(20px * 0.862068966); margin:0; }
.rank-name-meta .league-none { width:auto; min-width:32px; padding-inline:3px; }
.league-none {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #a6bac1;
  font-family: sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  border: 1px solid rgba(179,210,219,.2);
  border-radius: 6px;
  box-sizing: border-box;
  filter: none;
}
.garage-cat-header .league-none {
  flex-shrink: 0;
  max-width: none !important;
  opacity: 1 !important;
  margin-left: 0 !important;
  font-size: 10px !important;
}
.g-brand-icon {
  position: absolute;
  top: 36px;
  right: 10px;
  display: flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 3;
}
.g-brand-icon .brand-logo, .g-brand-icon img, .g-brand-logo { width: 28px; height: 28px; object-fit: contain; }
.list-mode .g-brand-icon {
  position: static;
  flex-shrink: 0;
  margin-left: 8px;
}
#studio-hero-title { display: flex; gap: 12px; align-items: center; }
#studio-hero-title > span:first-child { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.studio-brand-icon { flex: 0 0 48px; display: flex; align-items: center; justify-content: center; }
.studio-brand-icon .brand-logo, .studio-brand-icon img, .studio-brand-logo { width: 48px; height: 48px; object-fit: contain; }
.brand-logo-text {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 3px;
  border: 1px solid rgba(179,210,219,.2);
  border-radius: 5px;
  box-sizing: border-box;
  font: 9px/1.1 sans-serif;
  font-weight: 600;
  color: #b2c6cd;
  text-align: center;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.g-brand-icon .brand-logo { --brand-size:28px; }
.studio-brand-icon .brand-logo { --brand-size:48px; }
.g-brand-icon .brand-logo img,.studio-brand-icon .brand-logo img { width:100%;height:100%; }
