
.who-can-reply-body span {
  display: block;
}
.who-can-reply-body span + span {
  margin-top: 8px;
}

.who-can-reply-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 0;
  color: var(--text-color-muted);
  font-size: 13px;
  cursor: pointer;
  margin-left: 2px;
}
.who-can-reply-badge .icon {
  width: 15px;
  height: 15px;
}
@media (hover: hover) {
  .who-can-reply-badge:hover {
    color: var(--text-color);
  }
}
@media (hover: hover) {
  .who-can-reply-badge:hover :not(.icon) {
    text-decoration: underline;
  }
}

.post-text {
  line-height: 1.3125;
  margin-top: -4px;
}

.large-post {
  border-bottom: var(--hair) solid var(--post-border-color);
}

.large-post .post-text {
  font-size: 18px;
}

.large-post-header-text {
  min-width: 0;
}

.large-post-header-text .post-header-text {
  flex: 1;
  flex-wrap: wrap;
}

.large-post-header-text .post-name {
  font-size: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.large-post-header-text .post-username {
  width: 100%;
}

.label-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-color-muted);
  width: fit-content;
  border-radius: var(--label-badge-border-radius);
  border: none;
  background-color: inherit;
}

.label-badge-image {
  border-radius: var(--avatar-border-radius);
  object-fit: cover;
}

.author-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.author-badges .label-badges,
.author-badges plugin-slot {
  display: contents;
}

.author-badges:not(:has(.label-badge, plugin-slot:not(:empty))) {
  display: none;
}

.large-post .label-badge {
  font-size: 13px;
  min-height: 23px;
  padding: 3px 8px 4px;
  margin-right: 4px;
  margin-top: 5px;
  background: light-dark(var(--lightest-gray), var(--gray));
}

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

.large-post .label-badge-image {
  width: 16px;
  height: 16px;
}

.large-post .author-badges {
  gap: 4px;
  margin-top: 3px;
  margin-bottom: 4px;
}

.small-post .pinned-label {
  font-size: 14px;
  margin-bottom: 5px;
  color: var(--text-color-muted);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 3px;
}

.pinned-label .icon {
  height: 13px;
  width: 13px;
}

.small-post .repost-label {
  font-size: 14px;
  margin-bottom: 5px;
  color: var(--text-color-muted);
  display: flex;
  gap: 4px;
}

@media (hover: hover) {
  .small-post .repost-label a:hover,
  .reply-to-author a:hover {
    text-decoration: underline;
  }
}

.small-post .repost-label .icon {
  height: 17px;
  width: 17px;
}

.small-post .repost-label .icon path {
  stroke: var(--text-color-muted);
}

.small-post .missing-post-indicator {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  border-radius: var(--blocked-post-radius);
  padding: 14px;
  background: light-dark(var(--lightest-gray), var(--gray));
  color: var(--text-color-muted);
  width: 100%;
}

.small-post .missing-post-indicator .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.small-post .missing-post-indicator.no-unauthenticated {
  margin-top: 8px;
}

.missing-quote-indicator {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
}

.missing-quote-indicator .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.large-post.no-unauthenticated-post {
  display: block;
}

.no-unauthenticated-avatar {
  width: var(--avatar-size-post);
  height: var(--avatar-size-post);
  border-radius: var(--avatar-border-radius);
  background-color: var(--skeleton-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.no-unauthenticated-avatar .icon {
  width: 20px;
  height: 20px;
  color: var(--text-color-muted);
}

.no-unauthenticated-message {
  font-style: italic;
  color: var(--text-color-muted);
  font-size: 14px;
  padding-top: 4px;
}

.no-unauthenticated-message .icon {
  display: inline-block;
  vertical-align: middle;
  width: 16px;
  height: 16px;
  margin-right: 4px;
}

.no-unauthenticated-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.no-unauthenticated-skeleton-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.no-unauthenticated-skeleton-text .skeleton-line {
  background-color: var(--skeleton-color);
}

.no-unauthenticated-message-large {
  font-size: 18px;
}

.small-post .label-badge {
  font-size: 12px;
  padding-right: 5px;
  margin-top: 5px;
  margin-right: 2px;
}

.small-post .label-badge-image {
  width: 12px;
  height: 12px;
}

.quoted-post .label-badge {
  font-size: 12px;
  padding: 0;
  padding-right: 5px;
  margin-top: 5px;
  margin-right: 2px;
  background: none;
}

@media (hover: hover) {
  .quoted-post .label-badge:hover {
    background: none;
  }
}

.quoted-post .label-badge-image {
  width: 12px;
  height: 12px;
}

.post-thread {
  min-height: calc(100dvh - 46px - var(--safe-area-inset-bottom));
  padding-bottom: var(--post-thread-reply-prompt-height);
}

@media (min-width: 800px) {
  .post-thread {
    padding-bottom: 0;
  }
}

.post-thread-reply-prompt {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--footer-height) + var(--safe-area-inset-bottom) - 2px);
  height: var(--post-thread-reply-prompt-height);
  box-sizing: border-box;
  color: var(--text-color-muted);
  cursor: pointer;
  padding-left: 10px;
  padding-right: 10px;
  padding-bottom: 1px;
  padding-top: 6px;
  background: var(--background-color);
  z-index: var(--reply-prompt-z-index);
}

.post-thread-reply-prompt-inner {
  border-radius: var(--pill-button-border-radius);
  padding: 5px;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  background: var(--text-input-background-color);
}

@media (min-width: 800px) {
  .post-thread-reply-prompt {
    position: static;
    height: auto;
    padding: 0;
    border-bottom: var(--hair) solid var(--post-border-color);
    z-index: 0;
  }
}

@media (min-width: 800px) {
  .post-thread-reply-prompt-inner {
    border-radius: 0;
    padding: 10px;
    background: var(--background-color);
  }
}

.post-thread-reply-prompt .avatar {
  display: flex;
}

.post-thread-reply-prompt .avatar .avatar-image-frame {
  width: var(--avatar-size-reply-prompt);
  height: var(--avatar-size-reply-prompt);
}

.post-thread-reply-prompt-text {
  padding-bottom: 3px;
}

.post-thread-reply-chain {
  border-bottom: var(--hair) solid var(--post-border-color);
}

.post-thread-extra-space {
  height: 100px;
}

.reply-to-author {
  font-size: 14px;
  color: var(--text-color-muted);
  margin-top: 4px;
}

.reply-to-author .icon {
  display: inline-block;
  width: 13px;
  height: 13px;
  vertical-align: -2px;
}

.icon {
  position: relative;
}

.icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.close-icon {
  width: 24px;
  height: 24px;
}

.account-switcher-add-icon .icon {
  width: 24px;
  height: 24px;
}

.account-switcher-item.account-switcher-add {
  color: var(--text-color-secondary);
}

.account-switcher-current-check .icon {
  width: 24px;
  height: 24px;
}

.post-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  height: 28px;
  padding-top: 8px;
  margin-bottom: 8px;
}

.large-post .post-actions {
  height: 32px;
  padding-top: 0;
  margin-top: 4px;
  margin-bottom: 4px;
}

.large-post .post-action-icon {
  transform: scale(1.22);
  transform-origin: center;
}

.large-post .post-action-count {
  font-size: 16px;
}

.large-post .post-action-button {
  gap: 7px;
}

.post-actions-primary {
  display: flex;
  flex: 1;
  max-width: 320px;
}

.post-actions-primary > .post-action:first-child {
  margin-left: -6px;
}

.large-post .post-actions-primary > .post-action:first-child {
  margin-left: -2px;
}

.post-actions-secondary {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
}

.large-post .post-actions-secondary {
  gap: 8px;
}

.post-actions-secondary .post-action {
  flex: 0;
}

.post-actions .text-button {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--pill-button-border-radius);
}

.post-actions .text-button-text {
  position: relative;
  top: -2px;
}

.post-action {
  flex: 1;
}

.post-action-bookmark {
  flex: 0;
}

.post-action-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--post-action-icon-color);
  transition: background-color 0.2s;
  min-width: 30px;
  padding: 5px;
}

.post-action-button[disabled] {
  cursor: auto;
}

animated-button {
  display: contents;
}

.post-action[disabled] {
  pointer-events: none;
  color: var(--disabled-gray);
}

.post-action-repost.reposted {
  color: var(--highlight-color);
}

.like-button.active {
  color: var(--like-color);
}

.bookmark-button.active {
  color: var(--highlight-color);
}

.post-action-icon {
  position: relative;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-action-icon .icon {
  width: 18px;
  height: 18px;
  display: block;
}

.post-action-icon .icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.animated-button .post-action-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  border: 2px solid currentColor;
  background-color: currentColor;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
}

.animated-button.animating .post-action-icon::after {
  animation: ripple-out 0.3s ease-out;
}

@keyframes ripple-out {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    width: 40px;
    height: 40px;
    opacity: 0;
  }
}

.post-action-count {
  font-size: 14px;
}

.post-action-counts {
  display: flex;
  flex-direction: row;
  gap: 16px;
  border-top: var(--hair) solid var(--post-border-color);
  border-bottom: var(--hair) solid var(--post-border-color);
  margin-top: 8px;
  padding-top: 10px;
  padding-bottom: 12px;
}

.post-action-count-num {
  font-size: 14px;
  font-weight: 600;
}

.post-action-count-text {
  font-size: 14px;
  color: var(--text-color-muted);
}

.post-embed > * {
  margin-top: 8px;
}

.post-image-container {
  position: relative;
}

.post-image {
  width: 100%;
  height: auto;
  border: var(--hair) solid var(--post-border-color);
  border-radius: var(--image-border-radius);
  background-color: var(--background-color);
  object-fit: cover;
}

.post-image-container .alt-indicator {
  bottom: 9px;
  right: 6px;
  top: auto;
  left: auto;
  padding: 1px 3px;
  color: var(--white);
  background: var(--alt-indicator-background);
}

.post-video {
  position: relative;
  border: var(--hair) solid var(--post-border-color);
  border-radius: var(--video-border-radius);
  overflow: hidden;
  transform: translateZ(0); /* Prevents video jiggle on iPadOS scroll */
}

.post-video > .alt-indicator {
  pointer-events: auto;
  top: 8px;
  right: 8px;
  left: auto;
  padding: 1px 3px;
  color: var(--white);
  background: var(--alt-indicator-background);
  border: none;
  cursor: pointer;
}

.alt-text-dialog {
  padding: 0;
  border: none;
  background: transparent;
  color: var(--off-white);
  max-width: min(600px, calc(100vw - 40px));
  max-height: 80vh;
  overflow: visible;
  margin: auto;
}

.alt-text-dialog::backdrop {
  background: var(--overlay-color-darkest);
}

.alt-text-dialog-text {
  font-size: 16px;
  line-height: 1.5;
  white-space: pre-wrap;
  margin: 0;
  max-height: 80vh;
  overflow-y: auto;
}

.alt-text-dialog-close {
  position: fixed;
  top: 20px;
  right: 20px;
  color: var(--overlay-text-color);
  cursor: pointer;
  background: var(--overlay-color);
  width: 40px;
  height: 40px;
  border-radius: var(--icon-button-border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}

.post-video streaming-video {
  display: block;
  width: 100%;
  height: 100%;
}

.post-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateZ(0); /* Prevents video jiggle on iPadOS scroll */
}

.post-video img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.youtube-embed {
  display: block;
}

.youtube-embed.is-playing {
  position: relative;
  border: var(--hair) solid var(--post-border-color);
  border-radius: var(--video-border-radius);
  overflow: hidden;
  background: var(--black);
  transform: translateZ(0); /* Prevents video jiggle on iPadOS scroll */
}

.external-link-image-wrapper .play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  color: var(--black);
  background: color-mix(in srgb, var(--white) 70%, transparent);
  border-radius: 50%;
  transition: background 0.15s ease;
}

@media (hover: hover) {
  .youtube-embed .external-link a:hover .play-icon {
    background: color-mix(in srgb, var(--white) 85%, transparent);
  }
}

.external-link-image-wrapper .play-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.youtube-embed-iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}

.alt-indicator {
  pointer-events: none;
  position: absolute;
  display: flex;
  align-items: center;
  gap: 3px;
  top: 8px;
  left: 8px;
  background: var(--overlay-color-medium);
  color: var(--white);
  padding: 2px 6px;
  border-radius: var(--tag-border-radius);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.alt-indicator .icon {
  width: 11px;
  height: 11px;
}

.external-link {
  overflow: hidden;
}

.embed-card {
  position: relative;
  border-radius: var(--embed-border-radius);
  border: var(--hair) solid var(--embed-border-color);
}

.external-link hr {
  margin-top: 4px;
  margin-bottom: 2px;
}

.external-link-content {
  display: flex;
  flex-direction: column;
  position: relative;
}

.external-link-image-wrapper {
  position: relative;
}

.external-link-image {
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 630;
  border-bottom: var(--hair) solid var(--post-border-color);
  object-fit: cover;
}

.external-link-image-wrapper .play-icon {
  pointer-events: none;
}

.external-link-video-placeholder {
  height: 96px;
  background: var(--background-color);
  border-bottom: var(--hair) solid var(--post-border-color);
}

.external-link-uri {
  color: var(--text-color-muted);
  font-size: 12px;
}

.external-link-title {
  font-size: 14px;
  font-weight: bold;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.external-link-description {
  word-break: break-word;
  font-size: 12px;
  overflow: hidden;
  width: 100%;
  /* https://stackoverflow.com/a/56523044 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.external-link-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
}

.quoted-post {
  padding: 10px 16px;
  transition: background-color 0.2s;
  margin-top: 8px;
  background: var(--background-color);
}

.post-composer .quoted-post,
.notification-reply-wrapper .quoted-post {
  background: transparent;
}

.quoted-post-link {
  cursor: pointer;
}

@media (hover: hover) {
  .quoted-post-link:hover .quoted-post {
    background-color: var(--post-hover-color);
  }
}

.quoted-post-link .quoted-post-body {
  padding-right: 16px;
}

.quoted-post .post-text {
  font-size: 14px;
}

.quoted-post .avatar-image-frame {
  width: var(--avatar-size-quoted-post);
  height: var(--avatar-size-quoted-post);
}

.quoted-post-header {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.quoted-post-header .post-header-text .post-separator,
.quoted-post-header .post-header-text .post-time {
  flex-shrink: 0;
}

.quoted-post-body > .post-text {
  margin-top: 5px;
}

.feed-generator-embed {
  overflow: hidden;
}

.feed-generator-embed-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 12px;
}

.feed-generator-embed-title {
  font-size: 14px;
  font-weight: bold;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.feed-generator-embed-subtitle {
  font-size: 13px;
  color: var(--text-color-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.feed-generator-embed-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.feed-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--feed-avatar-border-radius);
  object-fit: cover;
}

.list-embed {
  overflow: hidden;
}

.list-embed-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 12px;
}

.list-embed-title {
  font-size: 14px;
  font-weight: bold;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.list-embed-subtitle {
  font-size: 13px;
  color: var(--text-color-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.list-embed-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.list-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--embed-border-radius);
  object-fit: cover;
}

.starter-pack-embed {
  overflow: hidden;
}

.starter-pack-embed-content {
  display: flex;
  flex-direction: column;
}

.starter-pack-embed-title {
  font-size: 14px;
  font-weight: bold;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.starter-pack-embed-description {
  word-break: break-word;
  font-size: 13px;
  overflow: hidden;
  width: 100%;
  /* https://stackoverflow.com/a/56523044 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.starter-pack-embed-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
}

.starter-pack-embed-image {
  max-width: 100%;
  border-bottom: var(--hair) solid var(--post-border-color);
}

.starter-pack-embed-subtitle {
  color: var(--text-color-muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* Quoted-post cards carry a margin-top for the feed context; inside preview
   containers it would leave the close button flush with the card's top edge. */
.post-composer-embed-preview .quoted-post,
.message-embed-preview .quoted-post {
  margin-top: 0;
}

.embed-preview-close-button {
  z-index: 1;
  position: absolute;
  right: 8px;
  top: 8px;
  border-radius: var(--circular-button-border-radius);
  color: var(--text-color);
  border: var(--hair) solid var(--post-border-color);
  background: light-dark(var(--lightest-gray), var(--dark-gray));
  width: 33px;
  height: 33px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.embed-preview-close-button .close-icon {
  width: 18px;
  height: 18px;
}

.image-preview-item {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: var(--image-preview-border-radius);
  overflow: hidden;
  border: var(--hair) solid var(--post-border-color);
}

.image-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview-remove-button {
  z-index: 1;
  position: absolute;
  right: 4px;
  top: 4px;
  border-radius: var(--circular-button-border-radius);
  color: var(--overlay-text-color);
  border: none;
  background: var(--overlay-color-medium);
  width: 30px;
  height: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

@media (hover: hover) {
  .image-preview-remove-button:hover {
    background: var(--overlay-color-darker);
  }
}

.image-preview-remove-button span {
  font-size: 18px;
  line-height: 1;
  position: relative;
  top: -1px;
}

.video-preview-item {
  position: relative;
  width: 100%;
  max-width: 360px;
  border-radius: var(--image-preview-border-radius);
  overflow: hidden;
  border: var(--hair) solid var(--post-border-color);
  background: black;
}

.video-preview-item video {
  width: 100%;
  display: block;
  max-height: 360px;
}

.video-preview-item .alt-indicator {
  pointer-events: auto;
  border: none;
  cursor: pointer;
  z-index: 1;
}

.video-preview-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay-color-medium);
  color: var(--overlay-text-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  pointer-events: none;
}

lightbox-image-group {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  gap: 4px;
}

lightbox-image-group img {
  cursor: pointer;
}

lightbox-image-group.post-images.num-images-2 {
  flex-direction: row;
}

lightbox-image-group.post-images.num-images-2 .post-image-container {
  flex: 1;
  max-width: 50%;
}

lightbox-image-group.post-images.num-images-2 .post-image {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

lightbox-image-group.post-images.num-images-3 {
  display: flex;
  flex-direction: row;
  gap: 4px;
  width: 100%;
}

lightbox-image-group.post-images.num-images-3
  .post-image-container:first-child {
  flex: 1;
  aspect-ratio: 1/1;
}

lightbox-image-group.post-images.num-images-3
  .post-image-container:first-child
  .post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

lightbox-image-group.post-images.num-images-3 .right-column {
  flex: 1;
  aspect-ratio: 1/1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

lightbox-image-group.post-images.num-images-3
  .right-column
  .post-image-container {
  flex: 1;
  min-height: 0;
}

lightbox-image-group.post-images.num-images-3 .right-column .post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

lightbox-image-group.post-images.num-images-4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 4px;
  width: 100%;
}

lightbox-image-group.post-images.num-images-4 .post-image {
  width: 100%;
  height: 100%;
  aspect-ratio: 1.5/1;
  object-fit: cover;
}

image-carousel {
  display: block;
}

.image-carousel-container {
  position: relative;
}

.carousel-scroller {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  height: 200px;
}

.carousel-scroller::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  position: relative;
  flex: 0 0 auto;
  height: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  cursor: pointer;
  scroll-snap-align: start;
  border-radius: var(--image-border-radius);
  overflow: hidden;
}

.carousel-slide:focus-visible {
  outline: 2px solid var(--primary-button-color);
  outline-offset: 2px;
}

.carousel-slide .carousel-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: var(--hair) solid var(--post-border-color);
  border-radius: var(--image-border-radius);
  background-color: var(--background-color);
  user-select: none;
  -webkit-user-drag: none;
}

.carousel-counter {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 8px;
  background: var(--overlay-color-medium);
  color: var(--white);
  border-radius: var(--tag-border-radius);
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
}

.carousel-slide .alt-indicator {
  top: auto;
  left: auto;
  bottom: 8px;
  right: 8px;
}

.crop-indicator {
  pointer-events: none;
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--overlay-color-medium);
  color: var(--white);
  padding: 4px;
  border-radius: var(--tag-border-radius);
}

.carousel-slide:not(:has(.alt-indicator)) .crop-indicator {
  left: auto;
  right: 8px;
}

.crop-indicator svg {
  width: 14px;
  height: 14px;
  display: block;
}

@media (min-width: 600px) {
  .carousel-scroller {
    height: 260px;
  }
}

@media (min-width: 900px) {
  .carousel-scroller {
    height: 300px;
  }
}

.reply-context-line-in {
  position: absolute;
  left: 19px;
  top: -13px;
  width: var(--reply-context-line-width);
  height: 13px;
  background-color: var(--reply-context-line-color);
}

.reply-context-line-out-container {
  position: relative;
  height: 100%;
  width: 100%;
}

.reply-context-line-out {
  position: absolute;
  left: 19px;
  width: var(--reply-context-line-width);
  top: 0;
  bottom: -12px;
  background-color: var(--reply-context-line-color);
}

.reply-context-line-gap {
  position: absolute;
  left: 35px;
  top: -10px;
  bottom: -12px;
  width: var(--reply-context-line-width);
  background-color: var(--reply-context-line-color);
}

.load-more-link {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
}

.load-more-spacer {
  width: 69px;
  height: 2em;
  position: relative;
}

.load-more-link a {
  color: var(--text-link-color);
  font-size: 13px;
}

.hidden-replies-button-icon {
  width: 20px;
  height: 20px;
}

.hidden-replies-button {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-left: 18px;
  padding-top: 18px;
  padding-bottom: 18px;
  color: var(--text-color-muted);
  font-size: 14px;
  border-bottom: var(--hair) solid var(--post-border-color);
}

/* i don't know why the hidden attribute isn't working, but this hides it */
.hidden-replies-section.expanded .hidden-replies-button {
  display: none;
}

.hidden-replies-section .small-post {
  border-bottom: var(--hair) solid var(--post-border-color);
}

@media (hover: hover) {
  .hidden-replies-button:hover {
    background-color: var(--post-hover-color);
  }
}

.muted-parent-toggle-button-icon {
  width: 20px;
  height: 20px;
}

.muted-parent-toggle-button {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-left: 26px;
  padding-right: 26px;
  padding-top: 18px;
  padding-bottom: 18px;
  color: var(--text-color-muted);
  font-size: 14px;
}

/* i don't know why the hidden attribute isn't working, but this hides it */
.muted-parent-toggle.expanded .muted-parent-toggle-button {
  display: none;
}

@media (hover: hover) {
  .muted-parent-toggle-button:hover {
    background-color: var(--post-hover-color);
  }
}

.muted-account-show-more {
  color: var(--text-link-color);
  flex: 1;
  text-align: right;
}

.notifications-feed {
  padding: 0;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: var(--hair) solid var(--post-border-color);
  transition: background-color 0.2s;
}

.notification-item-clickable {
  text-decoration: none;
  color: inherit;
}

@media (hover: hover) {
  .notification-item:hover {
    background-color: var(--post-hover-color);
    cursor: pointer;
  }
}

.notification-item.unread {
  background-color: var(--highlight-color-tint);
}

@media (hover: hover) {
  .notification-item.unread:hover {
    background-color: var(--highlight-color-tint-hover);
  }
}

.notification-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  margin-top: 1px;
  margin-left: 6px;
  margin-right: 6px;
}

.notification-icon .user-icon,
.notification-icon .user-plus-icon {
  color: var(--highlight-color) !important;
}

.notification-icon .user-icon path,
.notification-icon .user-plus-icon path {
  fill: var(--highlight-color) !important;
  stroke: var(--highlight-color) !important;
}

.notification-icon .notifications-icon {
  color: var(--highlight-color) !important;
}

.notification-icon .heart-icon path {
  fill: var(--like-color);
  stroke: var(--like-color);
}

