/* Daily-time-limit picker: a 5-up radio group styled as chunky tappable pills.
   Visually matches `.year-pill` but sized for short text labels. */

.limit-pills {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
}

@media (max-width: 479px) {
  .limit-pills {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.limit-pill {
  position: relative;
  display: block;
  cursor: pointer;
}

.limit-pill input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.limit-pill-label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.5rem;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.875rem;
  color: #475569;
  transition: background 0.12s, border-color 0.12s, color 0.12s, box-shadow 0.12s, transform 0.08s;
  text-align: center;
  user-select: none;
}

.limit-pill:hover .limit-pill-label {
  background: #EFF6FF;
  border-color: #BFDBFE;
  color: #1D4ED8;
}

.limit-pill input:focus-visible + .limit-pill-label {
  outline: 2px solid #1565C0;
  outline-offset: 2px;
}

.limit-pill input:checked + .limit-pill-label {
  background: linear-gradient(135deg, #4389DD 0%, #1565C0 100%);
  border-color: #1565C0;
  color: #FFFFFF;
  box-shadow: 0 4px 12px -2px rgba(21, 101, 192, 0.35);
  transform: translateY(-1px);
}

.limit-pill:active .limit-pill-label {
  transform: translateY(0);
}
