body {
  background:
    radial-gradient(circle at top, rgba(13, 148, 136, 0.12), transparent 28rem),
    #f8fafc;
  font-family: "Segoe UI", system-ui, sans-serif;
}

html.dark {
  color-scheme: dark;
}

html.dark body {
  background:
    radial-gradient(circle at top, rgba(45, 212, 191, 0.16), transparent 28rem),
    #020617;
}

.theme-knob {
  left: 0.25rem;
  transition: left 180ms ease;
}

html.dark .theme-knob {
  left: calc(100% - 2rem);
}

.timeline-hour,
.timeline-now {
  position: absolute;
  left: 0;
  right: 0;
}

.timeline-block {
  position: absolute;
  overflow: hidden;
}

.timeline-hour {
  border-top: 1px solid rgb(226 232 240);
}

html.dark .timeline-hour {
  border-top-color: rgb(51 65 85);
}

.timeline-block {
  overflow: hidden;
}

.timeline-now {
  height: 2px;
  background: rgb(244 63 94);
}

.habit-card {
  animation: rise 180ms ease-out;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
