.study-timer {
  margin-left: auto;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.study-timer.urgent {
  background: #ff5d73;
  color: #fff;
  animation: study-pulse 1s ease-in-out infinite;
}

@keyframes study-pulse {
  50% {
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .study-timer.urgent {
    animation: none;
  }
}

.handoff {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #5b3df5, #ff5d9e);
  color: #fff;
  font-size: clamp(2rem, 8vw, 4.5rem);
  font-weight: 800;
  text-align: center;
  animation: handoff-in 400ms ease-out;
}

.handoff[hidden] {
  display: none;
}

@keyframes handoff-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
}

@media (prefers-reduced-motion: reduce) {
  .handoff {
    animation: handoff-fade 400ms linear;
  }

  @keyframes handoff-fade {
    from {
      opacity: 0;
    }
  }
}

.study-timer[hidden] + .study-settings-toggle {
  margin-left: auto;
}

.study-settings {
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
}

.study-settings[hidden] {
  display: none;
}

.study-settings label {
  display: grid;
  gap: 4px;
  font-weight: 600;
}

.study-settings input[type="number"] {
  padding: 10px 12px;
  border: 2px solid #c9cbe0;
  border-radius: 10px;
  font: inherit;
}

.study-settings .study-check {
  display: flex;
  align-items: center;
  gap: 8px;
}

.study-settings-intro {
  margin: 0;
  font-size: 0.9rem;
}

.study-settings-error {
  margin: 0;
  color: #b3122b;
  font-weight: 600;
}

.study-settings-error[hidden] {
  display: none;
}

.study-settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
