/* Labels in a row must not inherit the spacing for stacked form fields. */
.clock-inputs > label,
.format-options > label,
.language-options > label,
.upload-row > label,
.language-extras > label {
  margin: 0;
  min-width: 0;
}

.clock-inputs {
  align-items: start;
}

.clock-inputs input[type="time"] {
  display: block;
  width: 100%;
  min-width: 0;
  height: 48px;
}

.day-inputs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.day-inputs > label {
  position: relative;
  display: grid;
  place-items: center;
  margin: 0;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  color: #65748b;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}

.day-inputs input[type="checkbox"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.day-inputs > label:has(input:checked) {
  background: #edf2ff;
  border-color: #7896ff;
  color: #214dff;
}

.day-inputs > label:has(input:focus-visible) {
  outline: 3px solid #7394ff;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .day-inputs > label { transition: none; }
}

