:root{
  --picker-height: 64px;
  --picker-gap: 12px;
}

/* Give main content room for the fixed day picker */
.day-page .container{
  padding-bottom: calc(var(--picker-height) + var(--picker-gap) + env(safe-area-inset-bottom));
}

.ref{
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 10px;
}

pre{
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  line-height: 1.6;
  font-size: 1.02rem;
  color: color-mix(in oklab, var(--text) 92%, transparent);
}

/* Fixed bottom day picker */
.daypicker-wrap{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;

  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
}

.daypicker{
  max-width: 900px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  height: var(--picker-height);
}

.daypicker .btn{
  flex: 1;
  justify-content: center;
}

.daypicker .btn.today{
  flex: 0.9;
  font-weight: 800;
}

@media (max-width: 360px){
  .daypicker .btn{
    padding: 10px 10px;
    font-size: 0.95rem;
  }
}
