.notification-inbox {
  position: fixed;
  inset: auto 0 0;
  box-sizing: border-box;
  width: min(100%, 480px);
  max-width: 100vw;
  max-height: 90svh;
  margin: auto auto 0;
  padding: 0;
  border: 2px solid #1a1a1a;
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  color: #1a1a1a;
  background: #f0ebe0;
  box-shadow: 0 -4px 0 #1a1a1a;
  font-family: "Nunito", sans-serif;
}
.notification-inbox::backdrop {
  background: rgba(26, 26, 26, 0.55);
}
.notification-inbox[open] {
  animation: inbox-enter 180ms ease-out;
}
.inbox-header {
  display: block;
  padding: 12px 22px 0;
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f0ebe0;
}
.inbox-handle {
  width: 36px;
  height: 4px;
  border-radius: 4px;
  background: #c9c2b5;
  margin: 0 auto 18px;
}
.inbox-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.inbox-eyebrow {
  color: #e8903a;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-weight: 900;
}
.inbox-heading h2 {
  font:
    800 27px "Bricolage Grotesque",
    "Nunito",
    sans-serif;
  letter-spacing: -0.7px;
  margin: 5px 0 6px;
}
.inbox-heading p {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #5a5148;
}
.inbox-close {
  flex: 0 0 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid #1a1a1a;
  border-radius: 50%;
  background: #fff;
  box-shadow: 2px 2px 0 #1a1a1a;
  color: #1a1a1a;
  cursor: pointer;
}
.inbox-close svg {
  width: 18px;
  height: 18px;
}
.inbox-filters {
  display: flex;
  gap: 5px;
  padding: 5px;
  margin: 20px 0 0;
  background: #fff;
  border: 2px solid #1a1a1a;
  border-radius: 100px;
}
.inbox-filters button {
  flex: 1;
  min-height: 39px;
  padding: 7px;
  font:
    800 12px "Nunito",
    sans-serif;
  background: transparent;
  border: 0;
  border-radius: 100px;
  color: #5a5148;
  cursor: pointer;
}
.inbox-filters [aria-pressed="true"] {
  background: #f5c228;
  color: #1a1a1a;
  box-shadow: inset 0 0 0 2px #1a1a1a;
}
#notifList {
  padding: 6px 22px 20px;
}
.inbox-group {
  margin: 20px 0 10px;
  font-size: 10px;
  font-weight: 900;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.inbox-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 13px;
  margin: 0 0 9px;
  border: 2px solid #1a1a1a;
  background: #fff;
  border-radius: 18px;
  box-shadow: 3px 3px 0 #1a1a1a;
  color: inherit;
  text-decoration: none;
}
.inbox-icon {
  flex: 0 0 38px;
  height: 38px;
  border-radius: 13px;
  border: 2px solid #1a1a1a;
  background: #dff5e4;
  color: #2f8a45;
  display: grid;
  place-items: center;
}
.inbox-icon svg {
  width: 21px;
  height: 21px;
}
.is-streak .inbox-icon {
  background: #ffe6cc;
  color: #c96a12;
}
.is-plan .inbox-icon {
  background: #fff3c0;
  color: #9a6f00;
}
.inbox-item.is-unread {
  background: #fffbe6;
}
.inbox-copy {
  min-width: 0;
  flex: 1;
}
.inbox-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  color: #888;
  font-size: 10px;
  font-weight: 800;
  margin-bottom: 5px;
}
.inbox-meta time {
  margin-left: auto;
  font-size: 9px;
}
.inbox-unread {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e84848;
}
.inbox-item h4 {
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
  margin: 0 0 5px;
}
.inbox-item p {
  font-size: 12px;
  line-height: 1.55;
  font-weight: 600;
  color: #5a5148;
  margin: 0;
  overflow-wrap: anywhere;
}
.inbox-arrow {
  color: #1a1a1a;
  margin-top: 22px;
  font-size: 22px;
}
a.inbox-item:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #1a1a1a;
}
a.inbox-item:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #1a1a1a;
}
.inbox-footer {
  border-top: 2px dashed #c9c2b5;
  padding: 15px 22px max(20px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.inbox-footer span {
  font-size: 11px;
  font-weight: 700;
  color: #888;
}
.inbox-footer a {
  color: #1a1a1a;
  font-size: 12px;
  font-weight: 900;
  padding: 8px 0;
}
.inbox-empty {
  padding: 42px 16px;
  text-align: center;
}
.inbox-empty svg {
  width: 60px;
  height: 60px;
  padding: 15px;
  box-sizing: border-box;
  color: #1a1a1a;
  border: 2px solid #1a1a1a;
  border-radius: 20px;
  background: #f5c228;
  box-shadow: 3px 3px 0 #1a1a1a;
}
.inbox-empty h3 {
  font:
    800 22px "Bricolage Grotesque",
    sans-serif;
  margin: 16px 0 10px;
}
.inbox-empty p {
  font-size: 13px;
  line-height: 1.6;
  font-weight: 700;
  color: #5a5148;
  max-width: 270px;
  margin: auto;
}
.notification-inbox :focus-visible {
  outline: 3px solid #286b9e;
  outline-offset: 3px;
}
@keyframes inbox-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 720px) {
  .notification-inbox {
    inset: 0;
    margin: auto;
    border: 2px solid #1a1a1a;
    border-radius: 28px;
    box-shadow: 6px 6px 0 #1a1a1a;
    max-height: 82svh;
  }
}
@media (prefers-reduced-motion: reduce) {
  .notification-inbox[open] {
    animation: none;
  }
}
