.publish-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  font-family: $font-body;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.publish-icon--info {
  border-radius: 50%;
  border: 1px solid currentColor;
  font-size: 10px !important;
}

.publish-avatar {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: $primary-on;
  overflow: visible;
}

.publish-avatar--sm {
  width: 30px;
  height: 30px;
}

.publish-avatar--md {
  width: 40px;
  height: 40px;
}

.publish-avatar__img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.publish-avatar__label {
  font-family: $font-display;
  font-weight: 700;
  font-size: 16px;
}

.publish-avatar--gradient-avatar-1 {
  background: linear-gradient(135deg, $accent-2, $primary);
}

.publish-avatar--gradient-avatar-2 {
  background: linear-gradient(135deg, $accent, #a4d4ff);
}

.publish-avatar--gradient-avatar-3 {
  background: linear-gradient(135deg, $success, $accent);
}

.publish-avatar--gradient-avatar-4 {
  background: linear-gradient(135deg, $primary, $accent-2);
}

.publish-avatar--gradient-avatar-5 {
  background: linear-gradient(135deg, #a4d4ff, $primary);
}

.publish-avatar--gradient-avatar-6 {
  background: linear-gradient(135deg, $accent-2, $accent);
}

.publish-switch {
  position: relative;
  width: 36px;
  height: 22px;
  border-radius: 11px;
  background: $muted;
  transition: background 200ms;
  flex-shrink: 0;
}

.publish-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: $fg;
  transition: transform 200ms cubic-bezier(0.2, 0, 0, 1);
}

.publish-switch--checked {
  background: $accent;
}

.publish-switch--checked::after {
  transform: translateX(14px);
}

.publish-chip {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 12px;
  border-radius: $radius-pill;
  background: rgba(45, 34, 85, 0.4);
  color: $fg-2;
  border: 1px solid rgba(216, 180, 255, 0.1);
  font: 500 12px / 1 $font-body;
  transition: all 200ms;
}

.publish-chip--active {
  background: linear-gradient(90deg, $accent 0%, $accent-2 100%);
  color: $primary-on;
  border-color: transparent;
}

.publish-chip__prefix {
  font-weight: 700;
}

.publish-bottom-sheet-bg {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: flex-end;
  background: rgba(10, 7, 25, 0.6);
}

.publish-bottom-sheet-bg--centered {
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.publish-bottom-sheet {
  width: 100%;
  background: $surface-2;
  border-radius: 24px 24px 0 0;
  padding: 16px 16px 32px;
  border-top: 1px solid rgba(216, 180, 255, 0.1);
  animation: slideUp 280ms cubic-bezier(0.2, 0, 0, 1);
  box-sizing: border-box;
}

.publish-bottom-sheet-bg--centered .publish-bottom-sheet {
  max-width: 320px;
  border-radius: 24px;
  padding: 32px 24px;
}
