.profile-draft-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
}

.profile-draft-filter__label {
  color: var(--secondary-foreground, #3b3464);
  white-space: nowrap;
}

.profile-draft-filter__control {
  position: relative;
  width: 108px;
}

/* 文字与箭头作为整体居中，不保留左侧对称占位。 */
.profile-draft-filter__trigger {
  display: inline-flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #d9dce6;
  border-radius: 10px;
  background: #fff;
  color: #53596a;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.profile-draft-filter__trigger > span[aria-hidden='true']:first-child {
  display: none;
}

.profile-draft-filter__trigger:hover {
  border-color: #a99bdf;
  background: #fafaff;
}

.profile-draft-filter__chevron {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  transition: transform 180ms ease;
}

.profile-draft-filter__chevron.is-open {
  transform: rotate(180deg);
}

.profile-draft-filter__menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  border: 0;
  border-radius: 12px;
  background: var(--popover, #fff);
  box-shadow: 0 8px 24px rgba(59, 52, 100, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
}

.profile-draft-filter__menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}

.profile-draft-filter__option {
  width: 100%;
  min-height: 34px;
  padding: 6px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #7656a6;
  text-align: center;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.profile-draft-filter__option[aria-selected='true'] {
  background: #f5efff;
}

.profile-draft-filter__option.is-active {
  background: #eee5fb;
  color: #6d28d9;
}

@media (prefers-reduced-motion: reduce) {
  .profile-draft-filter__trigger,
  .profile-draft-filter__chevron,
  .profile-draft-filter__menu,
  .profile-draft-filter__option {
    transition: none;
  }
}
