
.profile-banner-container lightbox-image-group {
  display: block;
  width: 100%;
  height: 100%;
}

.profile-header {
  position: relative;
  z-index: var(--profile-header-z-index);
  padding: 16px;
  padding-bottom: 4px;
}

.profile-header .avatar {
  position: absolute;
  top: -65px;
  left: 0;
}

.profile-header .avatar-image-frame {
  width: var(--avatar-size-profile);
  height: var(--avatar-size-profile);
  border-color: var(--background-color);
  border-width: 2px;
}

.profile-top-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.profile-top-row .rounded-button {
  margin-left: 4px;
}

.profile-info {
  margin-top: 10px;
}

.profile-name {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 4px 0;
  line-height: 1.2;
}

.verification-badge {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  /* margin-left: 1px; */
  /* margin-bottom: -1px; */
  flex-shrink: 0;
  color: var(--highlight-color);
}

.verification-badge svg {
  width: 12px;
  height: 12px;
}

.profile-info .verification-badge {
  margin-left: 6px;
  margin-bottom: 2px;
}

.profile-list-item .verification-badge {
  margin-left: 3px;
  margin-bottom: 2px;
}

.notification-text .verification-badge {
  margin-left: 4px;
  margin-bottom: 2px;
}

.profile-name .verification-badge svg {
  width: 18px;
  height: 18px;
}

.automated-account-badge {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  flex-shrink: 0;
  color: var(--text-color-muted);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.automated-account-badge svg {
  width: 12px;
  height: 12px;
}

.profile-info .automated-account-badge {
  margin-left: 6px;
  margin-bottom: 2px;
}

.profile-list-item .automated-account-badge {
  margin-left: 3px;
  margin-bottom: 2px;
}

.profile-name .automated-account-badge svg {
  width: 18px;
  height: 18px;
}

.profile-handle {
  color: var(--text-color-muted);
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.profile-handle-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.profile-card .author-badges {
  gap: 4px;
  margin-top: 12px;
  padding: 0 16px;
}

.profile-card .label-badge {
  font-size: 13px;
  min-height: 23px;
  padding: 3px 8px 4px;
  background: light-dark(var(--lightest-gray), var(--gray));
}

@media (hover: hover) {
  .profile-card .label-badge:hover {
    background: light-dark(var(--lighter-gray), var(--light-gray));
  }
}

.profile-card .label-badge-image {
  width: 16px;
  height: 16px;
}

.profile-follows-you {
  font-size: 13px;
  background: var(--secondary-button-color);
  padding: 3px 8px;
  border-radius: var(--tag-border-radius);
  display: inline-block;
  width: fit-content;
  flex: none;
}

.profile-blocked-badge {
  font-size: 13px;
  background: var(--secondary-button-color);
  padding: 3px 8px;
  border-radius: var(--tag-border-radius);
  display: inline-block;
  margin-left: 1em;
}

.profile-stats {
  padding: 0 16px 0 16px;
  display: flex;
  gap: 10px;
}

.profile-stat {
  color: var(--text-color-muted);
  font-size: 15px;
  text-decoration: none;
}

.profile-stat strong {
  color: var(--text-color);
  font-weight: 600;
}

@media (hover: hover) {
  a.profile-stat:hover {
    cursor: pointer;
    text-decoration: underline;
  }
}

.known-followers-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 0 16px;
  color: var(--text-color-muted);
  font-size: 14px;
  text-decoration: none;
  line-height: 1.3;
}

@media (hover: hover) {
  .known-followers-summary:hover .known-followers-text {
    text-decoration: underline;
  }
}

.known-followers-summary strong {
  color: var(--text-color);
  font-weight: 600;
}

.known-followers-avatars {
  display: flex;
  flex-shrink: 0;
}

.known-followers-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--background-color);
  overflow: hidden;
  margin-left: -8px;
}

.known-followers-avatar:first-child {
  margin-left: 0;
}

.chat-request-follow-status .known-followers-summary {
  margin-top: 0;
  padding: 0;
}

.chat-request-follow-status .known-followers-avatar {
  width: 20px;
  height: 20px;
}

.known-followers-avatar .avatar,
.known-followers-avatar .avatar-image-frame,
.known-followers-avatar .avatar-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.profile-description {
  margin-top: 12px;
  padding: 0 16px 0px 16px;
  line-height: 1.3;
}

.profile-description a {
  color: var(--text-link-color);
}

@media (hover: hover) {
  .profile-description a:hover {
    text-decoration: underline;
  }
}

.profile-skeleton {
  pointer-events: none;
}

.profile-skeleton .profile-list-item-body {
  gap: 8px;
}

.profile-list-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: var(--hair) solid var(--post-border-color);
}

container-link.profile-list-item,
button.profile-list-item-button {
  cursor: pointer;
}

button.profile-list-item-button {
  display: flex;
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  text-align: left;
  width: 100%;
}

button.profile-list-item-button.is-disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.profile-list-item-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

@media (hover: hover) {
  container-link.profile-list-item:hover,
  button.profile-list-item-button:not(:disabled):hover {
    background: var(--post-hover-color);
  }
}

/* This element fixes a weird bug on iOS safari
  where the chatDetail page would render extra slowly.
  I don't know why it works, but it does. */
.hack-x {
  color: transparent;
}

.profile-list-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-list-item-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-color);
  text-decoration: none;
}

@media (hover: hover) {
  .profile-list-item-name:hover {
    text-decoration: underline;
  }
}

.profile-list-item-display-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.profile-list-item-handle {
  font-size: 14px;
  color: var(--text-color-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.profile-list-item-badges {
  display: contents;
}

.profile-list-item .label-badge {
  font-size: 12px;
  padding-right: 5px;
  margin-top: 5px;
  margin-right: 2px;
}

.profile-list-item .label-badge-image {
  width: 12px;
  height: 12px;
}

.profile-list-item-follow {
  margin-left: auto;
  align-self: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.profile-list-item-skeleton-bio {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-list-item-description {
  font-size: 13px;
  color: var(--text-color-muted);
}

.profile-list-item-description .rich-text {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

.search-input-container {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.search-input {
  padding-top: 12px;
  padding-bottom: 12px;
  padding-left: 42px;
  padding-right: 36px;
  margin: 14px;
  border: var(--hair) solid var(--post-border-color);
  border-radius: var(--text-input-border-radius);
  background: var(--text-input-background-color);
  color: var(--text-color);
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
}

@media (hover: hover) {
  .search-input:hover {
    background: var(--post-hover-color);
  }
}

.search-input-container .search-icon {
  position: absolute;
  left: 24px;
  top: 24px;
  width: 24px;
  height: 24px;
}

.search-clear-button {
  position: absolute;
  right: 23px;
  top: 23px;
  width: 24px;
  height: 24px;
  background: var(--background-color);
  color: var(--text-color-muted);
  cursor: pointer;
  border-radius: var(--circular-button-border-radius);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-clear-button .close-icon {
  width: 16px;
  height: 16px;
}

.search-results-container {
  margin: 0 0 24px 0;
  padding-bottom: 48px;
}

.search-tab-panels {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.search-typeahead {
  display: flex;
  flex-direction: column;
}

.search-typeahead-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: none;
  background: none;
  text-align: left;
  font-size: 15px;
  color: var(--text-color);
  cursor: pointer;
  border-bottom: var(--hair) solid var(--post-border-color);
}

@media (hover: hover) {
  .search-typeahead-row:hover {
    background-color: color-mix(
      in srgb,
      var(--highlight-color) 6%,
      transparent
    );
  }
}

.search-typeahead-loading {
  display: flex;
  justify-content: center;
  padding: 16px;
}

.search-typeahead-icon {
  width: var(--avatar-size-post);
  height: var(--avatar-size-post);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-color-muted);
}

.search-typeahead-icon .search-icon {
  width: 24px;
  height: 24px;
}

.search-typeahead-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-typeahead-name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-typeahead-handle {
  color: var(--text-color-muted);
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-results-panel {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.search-recent-heading {
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-color);
}

.search-recent-row {
  position: relative;
  display: flex;
  align-items: center;
}

.search-recent-row .search-typeahead-row {
  border: none;
}

.search-recent-row .search-typeahead-icon {
  display: none;
}

.search-recent-row-button {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding-right: 48px;
}

.search-recent-remove-button {
  position: absolute;
  right: 12px;
  width: 32px;
  height: 32px;
  color: var(--text-color-muted);
}

.search-recent-remove-button .icon,
.search-recent-remove-button .icon svg {
  width: 20px;
  height: 20px;
}

.search-recent-profiles {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  padding-inline: 16px;
  padding-top: 8px;
  padding-bottom: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.search-recent-profiles::-webkit-scrollbar {
  display: none;
}

.search-recent-profile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 80px;
  flex-shrink: 0;
}

.search-recent-profile .avatar {
  height: 72px;
  line-height: 0;
}

.search-recent-profile .avatar-image-frame {
  width: 72px;
  height: 72px;
}

.search-recent-profile-name {
  max-width: 100%;
  font-size: 11px;
  color: var(--text-color);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-recent-profile-remove {
  top: 0;
  right: 4px;
  width: 18px;
  height: 18px;
}

.search-recent-profile-skeleton-avatar {
  width: 72px;
  height: 72px;
}

.search-recent-profile-skeleton-name-line {
  display: inline-block;
  width: 48px;
  height: 10px;
}

.search-recent-profile-remove .close-icon,
.search-recent-profile-remove .close-icon svg {
  width: 16px;
  height: 16px;
}

.search-placeholder {
  padding: 48px 24px;
  color: var(--text-color-muted);
  font-size: 15px;
  text-align: center;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.search-placeholder-icon {
  width: 64px;
  height: 64px;
  opacity: 0.3;
}

.search-placeholder-icon path {
  stroke: var(--text-color-muted);
}

.search-placeholder-text {
  max-width: 345px;
}

.search-status-message {
  padding: 16px;
  color: var(--text-color-muted);
  font-size: 14px;
}

.search-status-message.error {
  color: var(--error-color);
}

.search-post-results .feed-item {
  border-bottom: var(--hair) solid var(--post-border-color);
  background: transparent;
}

.search-post-results .feed-item:last-of-type {
  border-bottom: none;
}

.feeds-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.feeds-list-header {
  padding: 16px;
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
  border-bottom: var(--hair) solid var(--post-border-color);
}

.feeds-list .loading-spinner {
  margin-left: auto;
  margin-right: auto;
  margin-top: 16px;
}

.feeds-list-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: var(--hair) solid var(--post-border-color);
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s;
}

.feeds-list-item.clickable {
  cursor: pointer;
}

@media (hover: hover) {
  .feeds-list-item.clickable:hover {
    background-color: var(--post-hover-color);
  }
}

.feeds-list-item-avatar {
  flex-shrink: 0;
}

.feeds-list-item-avatar .feed-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--list-avatar-border-radius);
}

.feeds-list-item-content {
  flex: 1;
  min-width: 0;
  padding-left: 12px;
}

.feeds-list-item-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--text-primary);
}

.feeds-list-item-creator {
  font-size: 14px;
  color: var(--text-color-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feeds-list-item-description {
  font-size: 14px;
  color: var(--text-color-secondary);
  white-space: pre-wrap;
}

.feeds-list-item-chevron {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color-muted);
}

.feeds-list-item-chevron svg {
  width: 32px;
  height: 32px;
}

.feeds-list-item-chevron svg path {
  stroke-width: 1.2px;
}

.feeds-list-item-drag-handle {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  color: var(--text-color-muted);
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.feeds-list-item-unpin-button {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  color: var(--highlight-color);
  cursor: pointer;
}

.feeds-list-item-unpin-button svg {
  width: 20px;
  height: 20px;
}

.feeds-list-item-drag-handle:active {
  cursor: grabbing;
}

.feeds-list-item-drag-handle svg {
  width: 20px;
  height: 20px;
}

.feeds-list-item.is-dragging {
  opacity: 0.85;
  z-index: 1;
  will-change: transform;
  background-color: var(--background-color);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--text-color) 15%, transparent);
  user-select: none;
}

.feeds-list-item.is-shifting {
  transition: transform 150ms ease;
}

.following-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--list-avatar-border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0070ff;
  color: white;
}

.following-avatar .icon svg {
  width: 24px;
  height: 24px;
}

.header-edit-button {
  padding: 8px;
}

.header-edit-button svg {
  width: 24px;
  height: 24px;
}

.header svg {
  display: block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 8px;
  min-height: 40px;
}

.feeds-list-item-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.context-menu-button {
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-color-muted);
  font-size: 18px;
  font-weight: 600;
  padding: 0 4px;
  position: relative;
  top: -2px;
  margin-right: 12px;
}

.context-menu-button span {
  position: relative;
  top: -2px;
}

#feed-detail-view .pin-feed-button,
#list-detail-view .pin-feed-button {
  width: 24px;
  height: 24px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-color-muted);
  font-size: 24px;
}

#list-detail-view .pin-feed-button {
  margin-right: 8px;
}

#feed-detail-view .pin-feed-button.pinned,
#list-detail-view .pin-feed-button.pinned {
  color: var(--highlight-color);
}

.list-detail-header {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 12px;
}

.list-detail-avatar {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.list-detail-header-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 2px;
}

.list-detail-name {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  word-wrap: break-word;
}

.list-detail-creator {
  color: var(--text-color-muted);
  font-size: 14px;
  line-height: 1.3;
}

.list-detail-description {
  padding: 0 12px 14px;
  font-size: 15px;
  line-height: 1.4;
  word-wrap: break-word;
}

.list-detail-loading {
  display: flex;
  justify-content: center;
  padding: 32px 0;
}

.list-empty-add-people-button {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 auto;
}

.feeds-list-item .pin-feed-button svg {
  width: 16px;
  height: 16px;
}

.feeds-list-item-skeleton {
  pointer-events: none;
  min-height: 75px;
}

.feeds-list-item-skeleton-avatar {
  width: 30px;
  height: 30px;
  border-radius: var(--list-avatar-border-radius);
}

.feeds-list-item-skeleton-title {
  height: 14px;
  width: 45%;
  border-radius: var(--skeleton-border-radius);
  margin-bottom: 6px;
  margin-top: 2px;
}

.feeds-list-item-skeleton-creator {
  height: 12px;
  width: 30%;
  border-radius: var(--skeleton-border-radius);
}

.composer-error-banner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 16px 16px;
  padding: 10px 12px;
  border-radius: var(--text-input-border-radius);
  background-color: var(--error-subtle-color);
}

.composer-error-banner .alert-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--error-color);
}

.composer-error-banner-message {
  flex: 1;
  align-self: center;
  font-size: 14px;
  line-height: 1.4;
}

.composer-error-banner-dismiss {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 2px;
  cursor: pointer;
  border-radius: var(--icon-button-border-radius);
  color: var(--text-color-muted);
}

.composer-error-banner-dismiss .icon {
  width: 16px;
  height: 16px;
}

@media (hover: hover) {
  .composer-error-banner-dismiss:hover {
    color: var(--text-color);
  }
}

