.qol-dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: 85vh;
  box-sizing: border-box;
  overflow: auto;
  border: 1px solid #ccc;
  border-radius: 3px;
  font: inherit;
  padding: 20px;
}
.qol-dialog::backdrop {
  background: #0006;
}
.qol-dialog h2 {
  margin: 0 0 16px;
  font-size: 1.2rem;
}
.qol-dialog input:not([type='checkbox']),
.qol-dialog textarea,
.qol-dialog select,
.library-page input:not([type='checkbox']),
.messages-page textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font: inherit;
}
.qol-dialog button,
.library-card button {
  margin: 6px 6px 6px 0;
}
.qol-dialog label,
.qol-inline-form label,
#messageForm label {
  display: block;
  margin: 10px 0 5px;
}
.qol-post-tools {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.qol-post-tools-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}
.qol-post-tools .link-button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #555;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.post-icon-btn {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.post-icon-btn .post-icon {
  display: inline-flex;
  font-size: 18px;
  opacity: 0.45;
  filter: grayscale(1);
  transition:
    transform 0.15s ease,
    filter 0.15s ease,
    opacity 0.15s ease;
}
.post-icon-btn[aria-pressed='true'] .post-icon,
.post-icon-btn:hover .post-icon,
.post-icon-btn:focus-visible .post-icon {
  opacity: 1;
  filter: none;
}
/* Grows on hover like the like, reply and repost icons. */
.post-icon-btn:hover .post-icon,
.post-icon-btn:focus-visible .post-icon {
  transform: scale(1.2);
}
.post-icon-btn:active .post-icon {
  transform: scale(0.95);
}
.post-icon-btn .twemoji {
  width: 18px;
  height: 18px;
}
a[data-profile-lists] {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
[data-dm-profile] img.twemoji {
  width: 1.2em;
  height: 1.2em;
}
.dm-header-link {
  color: black;
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-right: 16px;
  text-decoration: none;
}
.dm-header-link svg {
  width: 26px;
  height: 26px;
}
#dmUnread {
  position: absolute;
  top: -5px;
  right: -8px;
  background: red;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.75rem;
}
.draft-restore,
.setup-checklist {
  padding: 12px;
  margin: 12px 0;
  border: 1px solid #e3e3e3;
  border-radius: 3px;
}
.draft-restore button {
  margin: 4px;
}
.draft-restore small {
  display: block;
  color: #666;
}
.mention-suggestions {
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 6px;
  max-height: 220px;
  overflow: auto;
  background: white;
  color: black;
}
.mention-suggestions button {
  display: block;
  width: 100%;
  text-align: left;
  margin: 3px 0;
}
.mention-suggestions [aria-selected='true'] {
  background: #eee;
}
.post-spoiler {
  display: block;
  margin: 8px 0;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 3px;
}
.post-spoiler summary {
  cursor: pointer;
  font-weight: bold;
}
.post-spoiler:not([open]) > :not(summary) {
  display: none;
}
.post-spoiler img {
  max-width: 100%;
}
.messages-page {
  display: block;
  max-width: 1100px;
  padding: 20px 16px;
}
.messages-page h1,
.library-page h1 {
  font-size: 1.5rem;
}
.messages-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.messages-tabs,
#requestActions:not([hidden]),
.library-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.messages-tabs [aria-pressed='true'],
.library-tabs [aria-current] {
  background: black;
  color: white;
}
.dm-avatar {
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  background: #eee;
}
.dm-avatar.pfp-square {
  border-radius: 3px;
}
.conversation-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: black;
  text-decoration: none;
  padding: 10px;
  border: 1px solid #e3e3e3;
  border-radius: 3px;
  margin: 8px 0;
}
.conversation-row:hover {
  background: #f7f7f7;
}
.conversation-row[aria-current] {
  background: #f3f3f3;
  border-color: #ccc;
}
.conversation-text {
  flex: 1;
  min-width: 0;
}
.conversation-text strong,
.conversation-text small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.conversation-text small {
  color: #666;
  font-size: 0.85rem;
}
.conversation-unread {
  flex-shrink: 0;
  background: red;
  color: white;
  border-radius: 999px;
  min-width: 20px;
  padding: 2px 6px;
  box-sizing: border-box;
  text-align: center;
  font-size: 0.75rem;
}
#conversationTitle {
  margin: 0 0 8px;
  font-size: 1rem;
}
#conversationTitle a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: black;
  text-decoration: none;
}
#conversationTitle small {
  display: block;
  color: #666;
  font-weight: normal;
}
.message-thread {
  border: 1px solid #e3e3e3;
  border-radius: 3px;
  padding: 16px;
  min-width: 0;
}
#messageList {
  max-height: 55vh;
  padding-right: 8px;
  overflow: auto;
  overflow-wrap: anywhere;
}
.direct-message {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 10px 40px 10px 0;
}
.direct-message.mine {
  flex-direction: row-reverse;
  margin: 10px 0 10px 40px;
}
.direct-message-body {
  min-width: 0;
  max-width: 100%;
  border: 1px solid #e3e3e3;
  border-radius: 3px;
  padding: 10px 12px;
}
.direct-message-body:has(.quoted-post) {
  width: min(440px, 100%);
  box-sizing: border-box;
}
.direct-message-body .quoted-post {
  margin-top: 8px;
  background: white;
}
.direct-message.mine .direct-message-body {
  background: #fafafa;
}
.direct-message time {
  display: block;
  color: #666;
  font-size: 0.75rem;
  margin: 4px 0;
}
.direct-message-text {
  white-space: pre-wrap;
}
.message-image {
  max-width: 100%;
  max-height: 360px;
  display: block;
  margin: 8px 0;
  border-radius: 3px;
}
#messageForm {
  margin-top: 16px;
}
#messageImage {
  max-width: 100%;
}
.library-page {
  display: block;
  max-width: 760px;
  padding: 20px 16px;
}
.library-tabs a {
  border: 1px solid black;
  border-radius: 3px;
  padding: 8px 10px;
  color: black;
  text-decoration: none;
}
.library-card {
  border: 1px solid #e3e3e3;
  border-radius: 3px;
  padding: 16px;
  margin: 16px 0;
}
.library-card h2 {
  font-size: 1.1rem;
  margin: 0;
}
.library-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin-bottom: 12px;
}
.library-card-header small {
  color: #666;
}
.library-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 14px 10px;
}
.library-tile {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  font-size: 0.85rem;
}
.library-tile-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 3px;
  background: #f0f0f0;
  color: #666;
  padding: 0;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.library-tile-cover.album,
.library-tile-cover.track {
  aspect-ratio: 1;
}
.library-tile-cover.game {
  aspect-ratio: 3 / 4;
}
.library-tile-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.library-tile-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: black;
  font-weight: bold;
  text-decoration: none;
}
.library-tile small {
  color: #888;
}
.library-tile .link-button {
  align-self: flex-start;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #555;
  font: inherit;
  cursor: pointer;
}
.library-add-link {
  margin-top: 14px;
}
.library-add-link summary {
  cursor: pointer;
  color: #555;
  font-size: 0.85rem;
}
.library-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.library-card-actions button {
  margin: 0;
}
.library-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}
.library-item > a {
  flex: 1;
  color: black;
  overflow-wrap: anywhere;
}
.qol-inline-form {
  margin: 16px 0;
}
.qol-inline-form button {
  margin-top: 8px;
}
.favorite-management-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #e3e3e3;
}
.favorite-management-row > span {
  flex: 1;
}
.favorite-management-row small {
  color: #666;
}
.profile-layout-preview {
  display: grid;
  gap: 8px;
  border: 1px solid #e3e3e3;
  padding: 12px;
  border-radius: 3px;
  margin: 12px 0;
}
.profile-layout-preview > div {
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 12px;
  font-size: 0.85rem;
}
.queued-posts {
  position: sticky;
  top: 70px;
  z-index: 5;
  margin: 12px 0;
}
.relationship-help {
  color: #666;
  font-size: 0.85rem;
  margin: 8px 0;
}
.notification-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0;
}
.notification-controls label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.notification-controls button {
  padding: 8px 12px;
}
/* The heading with the settings link at the other end of its line. */
.notifications-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
}
.notifications-heading h1 {
  margin: 0;
}
.notification-preferences {
  color: #555;
  font-size: 0.9rem;
  white-space: nowrap;
}
.notification-controls select {
  font: inherit;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 3px;
  background: white;
}
.qol-retry {
  padding: 12px;
  border: 1px solid #e3e3e3;
  border-radius: 3px;
}
.qol-retry p {
  margin: 0 0 8px;
}
[hidden].mention-suggestions,
.messages-page [hidden],
.favorite-management-row[hidden] {
  display: none;
}
@media (max-width: 760px) {
  .messages-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  #conversationList {
    max-height: 220px;
    overflow: auto;
  }
  .messages-page,
  .library-page {
    padding: 20px 10px;
  }
  .messages-page textarea,
  .qol-dialog textarea,
  .qol-dialog input,
  .library-page input {
    font-size: 16px;
  }
  .post-icon-btn {
    min-width: 36px;
    min-height: 36px;
    justify-content: center;
  }
  .dm-header-link {
    margin-right: 10px;
  }
}
.post-editor-file {
  height: auto;
  min-height: 88px;
}
.post-editor-spoiler {
  display: block;
  font-size: 0.8rem;
}
.notification-group-note {
  color: #666;
  font-size: 0.85rem;
}
.relationship-help a {
  color: inherit;
}
.list-picker-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #e3e3e3;
}
.list-picker-row > span {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.list-picker-row small {
  display: block;
  color: #666;
}
.qol-dialog .list-picker-row button {
  margin: 0;
}
.list-picker-row [aria-pressed='true'] {
  background: black;
  color: white;
}
.list-picker-new {
  display: flex;
  gap: 8px;
  margin: 14px 0;
}
.qol-dialog .list-picker-new button {
  margin: 0;
  flex-shrink: 0;
}
#notificationPreferences form .button-primary {
  width: 100%;
  margin-top: 14px;
}

.library-tile-cover.sports_game,
.library-tile-cover.sports_play,
.library-tile-cover.sports_performance {
  aspect-ratio: 1;
}
.library-tile-cover.sports_game img,
.library-tile-cover.sports_play img,
.library-tile-cover.sports_performance img {
  object-fit: contain;
}
