/* The stop/restart dialog (templates/dashboard/_shutdown.html). */
.shutdown-form fieldset { border: 0; margin-inline: 0; padding: 0; display: grid; gap: 0.4rem; }
.shutdown-form legend { padding: 0; font-weight: 600; margin-bottom: 0.4rem; }
.shutdown-form label:has(> input[type="radio"]) { display: flex; align-items: center; gap: 0.5rem; }
.shutdown-form input[name="custom_minutes"] { width: 5.5rem; }

/* "Now" swaps the countdown hint for the warning, and with players online the button stays
   off until the phrase is typed. The server checks the phrase whatever the button did. */
.shutdown-now { display: none; }
.shutdown-form:has(input[name="delay"][value="now"]:checked) .shutdown-now { display: block; }
.shutdown-form:has(input[name="delay"][value="now"]:checked) .shutdown-later { display: none; }
.shutdown-form:has(input[name="delay"][value="now"]:checked):has(input[name="confirm_phrase"]:invalid) button[type="submit"] { opacity: 0.5; pointer-events: none; }
