/* C45 人物切换器：业务页只提供人物数据和选中值。 */
wqxt-person-switcher {
  --wqxt-person-item-size: 72px;
  --wqxt-person-portrait-size: 64px;
  display: flex;
  max-height: 100%;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.wqxt-person-switcher__item {
  position: relative;
  width: var(--wqxt-person-item-size);
  height: var(--wqxt-person-item-size);
  flex: 0 0 var(--wqxt-person-item-size);
  padding: 4px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #f4f1eb;
  cursor: pointer;
}
.wqxt-person-switcher__portrait {
  width: var(--wqxt-person-portrait-size);
  height: var(--wqxt-person-portrait-size);
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid rgba(238, 233, 223, .32);
  border-radius: 50%;
  background: #17171d;
  transition: filter 160ms ease, transform 160ms ease;
}
.wqxt-person-switcher__portrait img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.72) brightness(.74); }
.wqxt-person-switcher__fallback { font: 600 20px/1 var(--wqxt-serif, serif); }
.wqxt-person-switcher__item::before { position: absolute; inset: 2px; content: ""; border: 2px solid transparent; border-radius: 50%; pointer-events: none; }
.wqxt-person-switcher__item:hover .wqxt-person-switcher__portrait { filter: brightness(1.08); transform: scale(1.025); }
.wqxt-person-switcher__item.is-selected::before { border-color: var(--wqxt-person-accent, #e4bd67); box-shadow: 0 0 18px color-mix(in srgb, var(--wqxt-person-accent, #e4bd67) 24%, transparent); }
.wqxt-person-switcher__item.is-selected .wqxt-person-switcher__portrait img { filter: saturate(.95) brightness(1); }
.wqxt-person-switcher__item:focus-visible { outline: 2px solid var(--wqxt-person-accent, #e4bd67); outline-offset: 2px; }
.wqxt-person-switcher__primary { position: absolute; right: 5px; bottom: 7px; width: 8px; height: 8px; border: 1px solid #0b0b0f; border-radius: 50%; background: var(--wqxt-person-accent, #e4bd67); box-shadow: 0 0 8px rgba(228, 189, 103, .6); }
.wqxt-person-switcher__item:disabled { opacity: .34; cursor: default; }

@media (max-width: 1000px), (max-height: 560px) {
  wqxt-person-switcher { --wqxt-person-item-size: 56px; --wqxt-person-portrait-size: 52px; }
  .wqxt-person-switcher__item { padding: 2px; }
  .wqxt-person-switcher__item::before { inset: 0; }
  .wqxt-person-switcher__fallback { font-size: 16px; }
  .wqxt-person-switcher__primary { right: 2px; bottom: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .wqxt-person-switcher__portrait { transition: none; }
}
