/* A group of related controls (Days, API key permissions), and a compact row of time pickers.
   The browser default fieldset is a bright white groove border; this takes the card's border and radius
   so it reads as part of the same page in both colour schemes. min-width resets the fieldset's
   min-content floor, which otherwise pushes a narrow viewport sideways. */
fieldset {
  min-width: 0;
  margin-inline: 0;
  padding: var(--size-3) var(--size-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
}
legend {
  padding-inline: var(--size-1);
  font-weight: var(--font-weight-6);
}
fieldset > input + label { margin-block-start: var(--size-2); }
.field-row {
  display: flex;
  gap: var(--size-3);
}
input[type="time"] {
  width: auto;
  padding-inline: var(--size-2);
}

/* An en-US browser draws a time as "02:00 AM" plus a clock icon, wide enough that Ends leaves the
   card on a 320px screen. Below 360px, drop the icon (the fields still take focus and keys) and the
   padding, so Starts and Ends stay on one line. */
@media (max-width: 360px) {
  input[type="time"] { padding-inline: var(--size-1); }
  input[type="time"]::-webkit-calendar-picker-indicator { display: none; }
}
