.um-notification-icon svg {
  width: 21px;
  height: 21px;
}

.um-modal-composer[data-composer-dropzone] {
  position: relative;
}

.um-modal-composer.is-drag-active .um-composer-drop-overlay {
  display: grid;
}

.um-comment-form {
  display: flex;
  gap: 8px;
}

.um-comment-form input {
  flex: 1;
  border: 1px solid var(--um-line);
  border-radius: 999px;
  padding: 10px 12px;
  background: var(--um-chip-bg, #fff7f8);
}

.um-comment {
  margin: 8px 0;
  padding: 9px 11px;
  border-radius: var(--um-radius);
  background: var(--um-chip-bg, #fff7f8);
}

.um-comment-copy {
  display: grid;
  gap: 3px;
}

.um-comment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.um-comment-actions button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--um-muted);
  cursor: pointer;
  font-size: 12px;
  padding: 6px 8px;
}

.um-comment-actions button:hover,
.um-comment-actions button.is-reacted,
.um-comment-actions button.is-disliked {
  background: var(--um-chip-active-bg, #ffe4e6);
  color: var(--um-primary);
}

/* Thumbs-up / thumbs-down marks on a comment's actions. */
.um-comment-action-icon {
  display: inline-grid;
  width: 16px;
  height: 16px;
  place-items: center;
}

.um-comment-action-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.um-comment .um-reaction-picker {
  margin: 8px 0 0;
  padding: 8px;
  border: 1px solid var(--um-line);
  border-radius: var(--um-radius);
}

/* "@name" ahead of a reply that answers another reply -- the thread stays one level deep. */
.um-comment-mention {
  color: var(--um-primary, #be123c);
  font-weight: 600;
  text-decoration: none;
}

.um-comment-mention:hover,
.um-comment-mention:focus-visible {
  text-decoration: underline;
}

.um-comment-reply-form {
  margin-top: 8px;
}

.um-comment-replies {
  margin-top: 8px;
  padding-left: 14px;
  border-left: 2px solid #ffe4e6;
}

.um-comment.is-reply {
  background: var(--um-surface-strong);
}

/* Two classes, so it out-ranks .um-overlay's 380px on specificity rather than on this file happening
   to load after media-core.css. */
.um-overlay.um-notification-overlay {
  width: min(420px, calc(100vw - 36px));
}

.um-notification-panel {
  display: grid;
  gap: 12px;
  max-height: calc(100vh - 92px);
  overflow-y: auto;
  overflow-x: hidden;
  /* Reaching the end of the list must not carry the scroll on into the feed underneath. */
  overscroll-behavior: contain;
  padding: 14px;
  background: var(--um-surface-strong);
  border: 1px solid var(--um-line);
  border-radius: var(--um-radius);
  box-shadow: 0 18px 48px rgba(32, 35, 31, 0.16);
}

.um-notification-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.um-notification-head h2,
.um-notification-panel h3 {
  margin: 0;
}

.um-notification-filters {
  display: flex;
  gap: 8px;
}

.um-notification-filters button {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  background: var(--um-chip-bg, #fff7f8);
  color: var(--um-muted);
  font-weight: 850;
  cursor: pointer;
}

.um-notification-filters button.is-active {
  background: var(--um-primary);
  color: #fff;
}

.um-notification-list {
  display: grid;
  gap: 4px;
}

.um-notification-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 10px;
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 0;
  border-radius: var(--um-radius);
  padding: 9px;
  background: transparent;
  color: var(--um-text);
  text-align: left;
  cursor: pointer;
}

.um-notification-row:hover,
.um-notification-row.has-unread {
  background: var(--um-chip-active-bg, #ffe4e6);
}

.um-notification-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(225, 29, 72, 0.08);
  color: var(--um-primary-dark);
  font-weight: 900;
}

.um-notification-row span:nth-child(2) {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.um-notification-row small,
.um-notification-row em {
  color: var(--um-muted);
  line-height: 1.35;
}

.um-notification-row small {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.um-notification-row em {
  color: var(--um-primary);
  font-style: normal;
  font-weight: 850;
}

.um-notification-row b {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--um-primary);
}

.um-notification-friend-request {
  cursor: default;
}

.um-notification-load-more {
  width: 100%;
  border: 0;
  border-radius: var(--um-radius);
  padding: 11px;
  margin-top: 4px;
  background: var(--um-chip-bg, #fff7f8);
  color: var(--um-text);
  font-weight: 800;
  cursor: pointer;
}

.um-notification-load-more:hover {
  background: var(--um-chip-active-bg, #ffe4e6);
}

.um-notification-friend-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.um-message-row,
.um-search-result {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 0;
  border-radius: var(--um-radius);
  background: transparent;
  padding: 9px;
  text-align: left;
  cursor: pointer;
}

.um-message-row:hover,
.um-search-result:hover {
  background: var(--um-chip-active-bg, #ffe4e6);
}

.um-message-row span,
.um-search-result span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.um-message-row small,
.um-search-result small,
.um-muted-text {
  color: var(--um-muted);
  line-height: 1.4;
}

/* The post a notification opens: wide enough for the card, which keeps its own look. Two classes,
   so it out-ranks .um-modal's 560px wherever the files load. */
.um-modal.um-post-viewer-modal {
  width: min(700px, calc(100vw - 36px));
}

.um-post-viewer-modal .um-post-viewer {
  margin: 0 -4px;
}

.um-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: start center;
  padding: 84px 18px 24px;
  background: rgba(24, 33, 31, 0.42);
}

.um-modal {
  width: min(560px, calc(100vw - 36px));
  max-height: calc(100vh - 108px);
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--um-surface-strong);
  border: 1px solid var(--um-line);
  border-radius: var(--um-radius);
  box-shadow: 0 24px 70px rgba(24, 33, 31, 0.26);
  padding: 16px;
  color: var(--um-text);
  font-size: 15px;
  line-height: 1.5;
}

.um-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.um-modal-head h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.um-modal-close {
  width: 38px;
  height: 38px;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
}

.um-modal-composer,
.um-modal-login,
.um-chat-box {
  display: grid;
  gap: 14px;
}

.um-modal-error {
  margin: 0;
  color: var(--um-primary-dark);
  font-size: 0.9em;
}

.um-modal-success {
  margin: 0;
  color: #057a55;
  font-size: 0.9em;
  font-weight: 700;
}

.um-modal-composer textarea:focus {
  outline: none;
}

.um-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
