[hidden] {
  display: none !important;
}

body {
  margin: 0;
}

/* Lock-screen style preview of the notification being written. */
.phone {
  position: relative;
  width: 280px;
  max-width: 100%;
  height: 470px;
  border-radius: 40px;
  padding: 14px;
  box-sizing: border-box;
  background: #111;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.phone::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 32px;
  background: linear-gradient(160deg, #3a5a78 0%, #8a6d8f 55%, #d9a97c 100%);
}

.phone__notch {
  position: relative;
  width: 90px;
  height: 24px;
  margin: 2px auto 0;
  border-radius: 14px;
  background: #111;
}

.phone__clock {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 26px;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.phone__date {
  font-size: 14px;
  font-weight: 500;
}

.phone__time {
  font-size: 58px;
  font-weight: 600;
  line-height: 1.05;
}

.notification {
  position: relative;
  display: flex;
  gap: 10px;
  margin: 38px 6px 0;
  padding: 11px 12px;
  border-radius: 18px;
  background: rgba(245, 245, 247, 0.86);
  backdrop-filter: blur(12px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111;
  animation: notification-in 0.35s ease-out;
}

@keyframes notification-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.notification__icon {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #1f2937;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 18px;
}

.notification__content {
  min-width: 0;
  flex: 1;
}

.notification__meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #6b7280;
}

.notification__app {
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.notification__title {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.notification__body {
  font-size: 14px;
  line-height: 1.3;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notification--placeholder .notification__title,
.notification--placeholder .notification__body {
  color: #9ca3af;
}

.metric-value {
  font-size: 26px;
  font-weight: 650;
  line-height: 1.2;
}

.automation {
  margin-top: 16px;
}

.automation__fields {
  max-width: 640px;
}
