.bottom-nav {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.notifications-stack {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.notifications-stack .content-card {
  margin-top: 0;
}

.notifications-heading-row {
  align-items: center;
}

.notifications-state-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid rgb(148 163 184 / 24%);
  border-radius: 999px;
  background: rgb(148 163 184 / 8%);
  color: #cbd5e1;
  font-size: 0.76rem;
  font-weight: 750;
  white-space: nowrap;
}

.notifications-state-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #94a3b8;
  box-shadow: 0 0 0 5px rgb(148 163 184 / 10%);
}

.notifications-state-badge[data-state="active"] {
  border-color: rgb(74 222 128 / 28%);
  background: rgb(74 222 128 / 8%);
  color: #bbf7d0;
}

.notifications-state-badge[data-state="active"] .notifications-state-dot {
  background: #4ade80;
  box-shadow: 0 0 0 5px rgb(74 222 128 / 10%);
}

.notifications-state-badge[data-state="inactive"],
.notifications-state-badge[data-state="needs-player"],
.notifications-state-badge[data-state="offline"],
.notifications-state-badge[data-state="setup"] {
  border-color: rgb(251 191 36 / 28%);
  background: rgb(251 191 36 / 8%);
  color: #fde68a;
}

.notifications-state-badge[data-state="inactive"] .notifications-state-dot,
.notifications-state-badge[data-state="needs-player"] .notifications-state-dot,
.notifications-state-badge[data-state="offline"] .notifications-state-dot,
.notifications-state-badge[data-state="setup"] .notifications-state-dot {
  background: #fbbf24;
  box-shadow: 0 0 0 5px rgb(251 191 36 / 10%);
}

.notifications-state-badge[data-state="denied"],
.notifications-state-badge[data-state="error"],
.notifications-state-badge[data-state="unsupported"] {
  border-color: rgb(248 113 113 / 28%);
  background: rgb(248 113 113 / 8%);
  color: #fecaca;
}

.notifications-state-badge[data-state="denied"] .notifications-state-dot,
.notifications-state-badge[data-state="error"] .notifications-state-dot,
.notifications-state-badge[data-state="unsupported"] .notifications-state-dot {
  background: #f87171;
  box-shadow: 0 0 0 5px rgb(248 113 113 / 10%);
}

.notifications-details {
  display: grid;
  gap: 0;
  margin: 22px 0 0;
}

.notifications-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.notifications-actions button {
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 14px;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}

.notifications-actions[data-count="1"] button:not([hidden]),
.notifications-actions[data-count="3"] .notifications-primary-button {
  grid-column: 1 / -1;
}

.notifications-primary-button {
  border: 1px solid rgb(96 165 250 / 34%);
  background: rgb(37 99 235 / 24%);
  color: #dbeafe;
}

.notifications-secondary-button {
  border: 1px solid rgb(147 197 253 / 26%);
  background: rgb(59 130 246 / 12%);
  color: #bfdbfe;
}

.notifications-danger-button {
  border: 1px solid rgb(248 113 113 / 28%);
  background: rgb(127 29 29 / 18%);
  color: #fecaca;
}

.notifications-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.notifications-actions button:focus-visible {
  outline: 2px solid #bfdbfe;
  outline-offset: 2px;
}

.notifications-feature-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.notifications-feature-list li {
  position: relative;
  padding-left: 22px;
  color: #cbd5e1;
  line-height: 1.5;
}

.notifications-feature-list li::before {
  position: absolute;
  top: 0.58em;
  left: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #60a5fa;
  box-shadow: 0 0 0 5px rgb(96 165 250 / 9%);
  content: "";
}

.notifications-status-card[data-state="error"],
.notifications-status-card[data-state="denied"],
.notifications-status-card[data-state="unsupported"] {
  border-color: rgb(248 113 113 / 30%);
}

.notifications-status-card[data-state="offline"],
.notifications-status-card[data-state="needs-player"],
.notifications-status-card[data-state="setup"] {
  border-color: rgb(251 191 36 / 26%);
}

@media (max-width: 390px) {
  .bottom-nav {
    padding: 7px;
  }

  .nav-item {
    min-height: 56px;
    padding-right: 2px;
    padding-left: 2px;
    font-size: clamp(0.6rem, 2.55vw, 0.7rem);
  }

  .notifications-heading-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .notifications-state-badge {
    padding: 7px 9px;
    font-size: 0.7rem;
  }

  .notifications-actions {
    grid-template-columns: 1fr;
  }

  .notifications-actions button {
    grid-column: 1;
    width: 100%;
  }
}
