/* The inbox stays within the account, using the public theme and original menu. */
.panel.full:has(.account-notifications) {
  height: calc(100dvh - var(--menu-bottom, 0px));
  width: calc(100% - var(--menu-left, 0px));
  padding-block: calc(12px + env(safe-area-inset-top)) 8px;
}
.panel.full:has(.account-notifications) > .close {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top));
  right: 16px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0;
}
.panel.full:has(.account-notifications) #panel-body {
  height: 100%;
  width: 100%;
}
.profile-redesign:has([data-tab='notifications']) > .profile-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.profile-redesign[data-account-tab='notifications'] {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  padding-bottom: 0;
}
.profile-redesign[data-account-tab='notifications'] > .profile-top {
  padding: 0;
  border: 0;
  margin-bottom: 12px;
  background: none;
  padding-right: 56px;
}
.profile-redesign[data-account-tab='notifications'] .profile-head {
  gap: 12px;
}
.profile-redesign[data-account-tab='notifications'] .profile-avatar {
  width: 44px;
  height: 44px;
  font-size: 16px;
}
.profile-redesign[data-account-tab='notifications'] .profile-name {
  margin: 0;
  font-size: 16px;
}
.profile-redesign[data-account-tab='notifications']
  :is(
    .profile-who > :not(.profile-name),
    .profile-numbers,
    .profile-actions,
    .profile-avatar-edit
  ) {
  display: none;
}
.profile-redesign[data-account-tab='notifications'] > .profile-tabs {
  margin-bottom: 12px;
  flex-shrink: 0;
}
.profile-redesign[data-account-tab='notifications'] > .profile-tab-body {
  flex: 1;
  min-height: 0;
}
.account-notifications,
.account-notifications .notes-page {
  height: 100%;
  min-height: 0;
}
.account-notifications .notes-page {
  display: flex;
  flex-direction: column;
  max-width: 720px;
}
.notes-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.notes-heading h2 {
  margin: 0;
  font-size: 22px;
}
.notes-heading .button {
  width: 44px;
  padding: 0;
}
.notes-heading .i,
.note-system .i {
  width: 22px;
  height: 22px;
}
.notes-filters {
  display: flex;
  gap: 4px;
  margin-top: 12px;
}
.notes-filters .button {
  flex: 1;
  padding-inline: 8px;
  white-space: normal;
}
.notes-filters [aria-pressed='true'] {
  background: var(--color-notice-bg);
  color: var(--color-text);
  border-color: var(--color-border);
}
.notes-status {
  margin: 8px 0;
}
.account-notifications :is(.muted, .notes-guidelines) {
  color: var(--color-text);
}
.account-notifications .notes {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) var(--color-surface);
  min-height: 120px;
  padding-inline: 2px;
}
.account-notifications .note + .note {
  border-top: 1px solid var(--color-border);
}
.account-notifications .note-link {
  align-items: start;
  gap: 10px;
  padding: 14px 8px;
  min-height: 64px;
}
.account-notifications .note.unread .note-link {
  background: var(--color-notice-bg);
}
.note-text {
  min-width: 0;
  overflow-wrap: anywhere;
}
.note-sentence {
  font-size: 14px;
  line-height: 1.5;
}
.note-unread-label {
  color: var(--color-text);
  font-weight: 600;
}
.note-system {
  display: grid;
  place-items: center;
  background: var(--color-bg);
  color: var(--color-text);
}
.notes-guidelines {
  display: flex;
  align-items: center;
  min-height: 44px;
  width: fit-content;
  margin-top: 8px;
  font-size: 13px;
  text-underline-offset: 3px;
}
@media (max-width: 760px) {
  .profile-redesign[data-account-tab='notifications'] .profile-tabs {
    margin-bottom: 4px;
  }
  .profile-redesign[data-account-tab='notifications'] > .profile-top {
    margin-bottom: 4px;
  }
  .notes-heading h2 {
    font-size: 20px;
  }
  .notes-filters {
    margin-top: 4px;
  }
}
