.member-view-inbox {
  padding-bottom: 116px;
}

.inbox-overview {
  position: relative;
  overflow: hidden;
  margin: 4px 16px 20px;
  padding: 18px;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 24px;
  background: #201915;
  color: #fffaf2;
  box-shadow: 0 16px 34px rgb(44 29 20 / 14%);
}

.inbox-overview::after {
  position: absolute;
  top: 24px;
  right: -26px;
  width: 88px;
  height: 88px;
  border: 20px solid rgb(245 175 81 / 12%);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.inbox-overview-mark {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 15px;
  background: #f4b45e;
  color: #201915;
}

.inbox-overview .eyebrow {
  margin: 0 58px 8px 0;
  color: #d8bfa5;
}

.inbox-overview-count {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.inbox-overview-count h2 {
  margin: 0;
  color: #fffaf2;
  font-size: clamp(2.5rem, 13vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.95;
}

.inbox-overview-count span {
  color: #f3dfca;
  font-size: 0.82rem;
  font-weight: 700;
}

.inbox-overview > p:not(.eyebrow, .sr-only) {
  max-width: 260px;
  margin: 12px 0 16px;
  color: #d8cec7;
  font-size: 0.875rem;
  line-height: 1.55;
}

.inbox-overview-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 13px;
  border-top: 1px solid rgb(255 255 255 / 11%);
  color: #cbbdb3;
  font-size: 0.69rem;
}

.inbox-overview-meta strong {
  color: #fffaf2;
  font-size: 0.72rem;
}

.inbox-mark-all {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 0 14px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 999px;
  background: rgb(255 255 255 / 7%);
  color: #fffaf2;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 720;
  transition: transform 100ms ease-out, opacity 100ms ease-out;
}

.inbox-mark-all:active:not(:disabled) { transform: scale(0.98); }
.inbox-mark-all:disabled { opacity: 0.58; }

.inbox-undo {
  min-width: 44px;
  min-height: 44px;
  margin: 12px 0 0 8px;
  padding: 8px 14px;
  border: 1px solid #d8bfa5;
  border-radius: 999px;
  background: transparent;
  color: #fffaf2;
  font: inherit;
  font-size: 0.875rem;
}

.inbox-overview > .inbox-action-status {
  max-width: none;
  margin: 8px 0 0;
  color: #fffaf2;
  font-size: 0.8125rem;
  line-height: 1.5;
}
.inbox-action-status:empty { display: block; margin: 0; }
.inbox-mark-all, .inbox-undo { max-width: 100%; white-space: normal; }
.inbox-mark-all svg { flex: 0 0 auto; }
.inbox-mark-all:focus-visible, .inbox-undo:focus-visible { outline: 2px solid #f4b45e; outline-offset: 3px; }

.inbox-center-section { padding-top: 0; }

.inbox-center-section .section-heading {
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
  margin-bottom: 10px;
}

.inbox-result-count {
  margin: 0 0 2px;
  color: #7a675c;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.inbox-filter-rail {
  display: flex;
  gap: 8px;
  margin: 0 -16px 18px;
  padding: 0 16px 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.inbox-filter-rail::-webkit-scrollbar { display: none; }
.inbox-filter-rail .filter-chip { flex: 0 0 auto; }

.inbox-center-list,
.inbox-time-group,
.inbox-time-group ol {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.inbox-time-group + .inbox-time-group { margin-top: 14px; }

.inbox-time-group > h3 {
  margin: 0 0 2px;
  color: #806d61;
  font-size: 0.75rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inbox-time-group ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.inbox-center-row {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 92px;
  grid-template-columns: 44px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid rgb(54 39 31 / 9%);
  border-radius: 18px;
  background: #fffdf9;
  color: #281f1a;
  font: inherit;
  text-align: left;
  box-shadow: 0 5px 16px rgb(62 43 31 / 5%);
  transition: transform 100ms ease-out, opacity 100ms ease-out;
}

.inbox-center-row.unread {
  border-color: rgb(185 112 42 / 26%);
  background: #fff9ef;
}

.inbox-center-row:active { transform: scale(0.988); }

.inbox-center-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 15px;
  background: #eee8e1;
  color: #4e4038;
}

.inbox-center-icon.points { background: #f4e5d0; color: #89531f; }
.inbox-center-icon.studio { background: #e5e6df; color: #4d5b49; }
.inbox-center-icon.quest { background: #e9e1d8; color: #694f3c; }
.inbox-center-icon.reward { background: #f5dfc8; color: #8d4d20; }

.inbox-center-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.inbox-center-copy > small {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  align-items: center;
  gap: 7px;
  color: #87746a;
  font-size: 0.75rem;
  line-height: 1.2;
}

.inbox-center-copy > small strong {
  color: #9b6027;
  font-weight: 760;
  overflow-wrap: anywhere;
}

.inbox-center-copy > small i {
  flex: 0 0 auto;
  color: #66564d;
  font-style: normal;
}

.inbox-center-copy > span {
  font-size: 0.875rem;
  font-weight: 770;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.inbox-center-copy > p {
  margin: 0;
  color: #75675f;
  font-size: 0.8125rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.inbox-unread-dot {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d8752b;
}

.inbox-center-chevron { color: #9d8e84; }

.inbox-center-empty {
  padding: 28px 20px;
  border: 1px dashed rgb(54 39 31 / 18%);
  border-radius: 20px;
  text-align: center;
}

.inbox-center-empty > span {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  place-items: center;
  border-radius: 16px;
  background: #eee8e1;
  color: #6c5a50;
}

.inbox-center-empty h3 { margin: 0 0 5px; font-size: 0.95rem; }
.inbox-center-empty p { margin: 0 0 14px; color: #76675f; font-size: 0.73rem; }
.inbox-center-empty .button { width: 100%; }

.inbox-policy {
  margin: 16px 2px 0;
  color: #84736a;
  font-size: 0.68rem;
  text-align: center;
}

.member-view-notification-settings {
  padding-bottom: 116px;
}

.notification-rhythm-hero {
  position: relative;
  overflow: hidden;
  margin: 4px 16px 22px;
  padding: 22px 18px 18px;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 24px;
  background: #201915;
  color: #fffaf2;
  box-shadow: 0 16px 34px rgb(44 29 20 / 14%);
}

.notification-rhythm-hero::after {
  position: absolute;
  right: -36px;
  bottom: -50px;
  width: 126px;
  height: 126px;
  border: 24px solid rgb(244 180 94 / 12%);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.notification-rhythm-mark {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 15px;
  background: #f4b45e;
  color: #201915;
}

.notification-rhythm-hero .eyebrow {
  margin: 0 58px 10px 0;
  color: #d8bfa5;
}

.notification-rhythm-hero h1 {
  max-width: 260px;
  margin: 0;
  color: #fffaf2;
  font-size: clamp(2rem, 10vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.notification-rhythm-hero > p:not(.eyebrow) {
  max-width: 268px;
  margin: 16px 0;
  color: #d8cec7;
  font-size: 0.78rem;
  line-height: 1.55;
}

.notification-rhythm-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgb(255 255 255 / 11%);
  color: #cbbdb3;
  font-size: 0.75rem;
}

.notification-rhythm-meta strong {
  color: #fffaf2;
  font-size: 0.76rem;
}

.notification-settings-section {
  padding-top: 0;
}

.notification-settings-section + .notification-settings-section {
  margin-top: 22px;
}

.notification-choice-group,
.notification-quiet-group {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.notification-switch-row {
  position: relative;
  display: grid;
  min-height: 76px;
  grid-template-columns: 44px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: 1px solid rgb(54 39 31 / 9%);
  border-radius: 18px;
  background: #fffdf9;
  box-shadow: 0 5px 16px rgb(62 43 31 / 5%);
  cursor: pointer;
}

.notification-choice-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 15px;
  background: #eee8e1;
  color: #5c4940;
}

.notification-choice-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.notification-choice-copy strong {
  color: #281f1a;
  font-size: 0.86rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.notification-choice-copy small {
  color: #76675f;
  font-size: 0.75rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.notification-switch-row input {
  position: absolute;
  right: 12px;
  width: 48px;
  height: 44px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.notification-switch-visual {
  position: relative;
  width: 46px;
  height: 28px;
  border: 1px solid #c9bcb2;
  border-radius: 999px;
  background: #ddd5cf;
  pointer-events: none;
  transition: background 140ms ease-out, border-color 140ms ease-out;
}

.notification-switch-visual i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fffdf9;
  box-shadow: 0 2px 5px rgb(42 30 24 / 20%);
  transition: transform 120ms ease-out;
}

.notification-switch-row input:checked + .notification-switch-visual {
  border-color: #9a5d26;
  background: #b76d2d;
}

.notification-switch-row input:checked + .notification-switch-visual i {
  transform: translateX(18px);
}

.notification-switch-row input:focus-visible + .notification-switch-visual {
  outline: 3px solid #201915;
  outline-offset: 3px;
}

.notification-quiet-group {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.notification-quiet-group label {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 48px;
  place-items: center;
  cursor: pointer;
}

.notification-quiet-group input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.notification-quiet-group span {
  display: grid;
  width: 100%;
  min-height: 48px;
  place-items: center;
  padding: 6px;
  border: 1px solid rgb(54 39 31 / 12%);
  border-radius: 15px;
  background: #fffdf9;
  color: #6e5d54;
  font-size: 0.75rem;
  font-weight: 720;
  line-height: 1.25;
  text-align: center;
}

.notification-quiet-group input:checked + span {
  border-color: #71401f;
  background: #f4e2cb;
  color: #4b2c1b;
}

.notification-quiet-group input:focus-visible + span {
  outline: 3px solid #201915;
  outline-offset: 2px;
}

.notification-preview-section {
  padding-top: 0;
  margin-top: 22px;
}

.notification-preview-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  border: 1px solid rgb(54 39 31 / 10%);
  border-radius: 20px;
  background: #f4e2cb;
}

.notification-preview-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 15px;
  background: #201915;
  color: #fffaf2;
}

.notification-preview-card .eyebrow {
  margin: 1px 0 5px;
  color: #4b2c1b;
}

.notification-preview-card h2 {
  margin: 0 0 6px;
  color: #281f1a;
  font-size: 1rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.notification-preview-card p:not(.eyebrow) {
  margin: 0;
  color: #6b564a;
  font-size: 0.8125rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.notification-preview-card > .button {
  grid-column: 1 / -1;
}

.notification-memory-note {
  margin: 10px 2px 0;
  color: #6e5d54;
  font-size: 0.75rem;
  line-height: 1.45;
  text-align: center;
}

.notification-actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.notification-actions .button { min-height: 44px; white-space: normal; }
.notification-actions .button:focus-visible { outline: 2px solid #201915; outline-offset: 3px; }
.notification-edit-status { min-height: 3em; margin: 12px 2px 0; color: #57453b; font-size: 0.8125rem; line-height: 1.5; overflow-wrap: anywhere; }

@media (max-width: 350px) {
  .inbox-overview { margin-inline: 12px; padding: 16px; }
  .inbox-filter-rail { margin-inline: 0; padding-inline: 0; }
  .inbox-center-row { grid-template-columns: 42px minmax(0, 1fr) 16px; gap: 9px; padding: 10px; }
  .inbox-center-icon { width: 42px; height: 42px; }
  .notification-rhythm-hero { margin-inline: 12px; padding-inline: 16px; }
  .notification-switch-row { grid-template-columns: 42px minmax(0, 1fr) 46px; gap: 9px; padding-inline: 10px; }
  .notification-choice-icon { width: 42px; height: 42px; }
  .notification-quiet-group { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .inbox-mark-all,
  .inbox-center-row,
  .notification-switch-visual,
  .notification-switch-visual i { transition: none; }
}

@media (forced-colors: active) {
  .notification-switch-visual { forced-color-adjust: none; background: Canvas; border-color: CanvasText; }
  .notification-switch-visual i { background: CanvasText; box-shadow: none; }
  .notification-switch-row input:checked + .notification-switch-visual { background: Highlight; border-color: Highlight; }
  .notification-switch-row input:checked + .notification-switch-visual i { background: HighlightText; }
  .inbox-overview,
  .inbox-center-row,
  .inbox-center-empty,
  .notification-rhythm-hero,
  .notification-switch-row,
  .notification-preview-card { border: 1px solid CanvasText; }
}
