.uid-profile-toolbar { grid-template-columns: auto minmax(0,1fr) auto; }
.uid-profile-toolbar .favorite-toggle { grid-column: 3; grid-row: 1; width: 44px; height: 44px; min-height: 44px; padding: 0; justify-content: center; }
.favorite-toggle[aria-pressed="true"] { color: #f0c672; border-color: #9c7538; }
.favorite-toggle[aria-pressed="true"] svg { fill: currentColor; }
.favorite-feedback { margin: .25rem 0 .55rem; color: var(--muted); font-size: .82rem; }
.favorite-feedback:empty { display: none; }
.uid-profile-toolbar .favorite-feedback { grid-column: 1 / -1; margin: 0; text-align: end; }
.player-favorites { margin-bottom: .85rem; padding: .6rem .8rem; }
.player-favorites[hidden] { display: none; }
.player-favorites summary { min-height: 44px; align-content: center; cursor: pointer; font-weight: 700; }
.player-favorites-count { display: inline-block; margin-inline-start: .45rem; color: var(--muted); font-size: .79rem; }
.player-favorites-list { list-style: none; margin: .35rem 0 .15rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,215px),1fr)); gap: .45rem; }
.player-favorites-list > li { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--raised); min-width: 0; }
.player-favorites-list a { display: block; padding: .6rem .65rem; min-height: 44px; align-content: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-decoration: none; }
.player-favorites-list a:hover { color: var(--accent); }
.player-favorites-list .favorite-remove { min-width: 44px; min-height: 44px; padding: 0; justify-content: center; color: var(--muted); background: transparent; border: 0; font-size: 1.15rem; }
.player-favorites-list .favorite-remove:hover { color: var(--text); }

.uid-profile-toolbar .favorite-toast {
  position: fixed;
  z-index: 21;
  inset: auto auto calc(20px + env(safe-area-inset-bottom, 0px)) 50%;
  display: block;
  width: max-content;
  max-width: calc(100vw - 24px);
  margin: 0;
  padding: .55rem .85rem;
  border: 1px solid #6f5c99;
  border-radius: 999px;
  background: #211b35;
  color: #eee1ff;
  font-weight: 650;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity .16s ease, transform .16s ease;
  pointer-events: none;
}
.uid-profile-toolbar .favorite-toast[data-visible] { opacity: 1; transform: translate(-50%, 0); }
.uid-profile-toolbar .favorite-toast[data-tone="error"] { border-color: #9c657b; background: #34202c; color: #ffcedc; }
@media (prefers-reduced-motion: reduce) { .uid-profile-toolbar .favorite-toast { transition: none; } }
