.modal-content.scheduler-form-modal {
  width: min(960px, calc(100vw - 3rem));
  min-width: 0;
  max-width: none;
  max-height: calc(100dvh - 3rem);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color-scheme: dark;
}
.modal-content.scheduler-block-form-modal {
  width: min(720px, calc(100vw - 3rem));
}
.modal-content.scheduler-missed-form-modal {
  width: min(760px, calc(100vw - 3rem));
}
.scheduler-form-modal .scheduler-form-header {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1rem 1.25rem 0.75rem;
  margin-bottom: 0;
  border-bottom: 1px solid var(--color-border);
}
.scheduler-form-modal .scheduler-form-header > div {
  flex: 1 1 auto;
  min-width: 0;
}
.scheduler-form-modal .scheduler-form-header h3 {
  margin: 0;
  color: var(--color-text);
  font-size: 1.1rem;
}
.scheduler-form-modal .scheduler-form-header p {
  margin: 0.2rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}
.scheduler-form-modal .scheduler-form-header .btn {
  flex: 0 0 auto;
}
.scheduler-form-modal .scheduler-form-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 1rem 1.25rem;
}
.scheduler-form-modal .scheduler-form-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--color-border);
  background: color-mix(in srgb, var(--color-surface) 65%, var(--color-surface-raised));
}
.scheduler-form-modal .scheduler-form-error {
  flex: 1 0 100%;
  margin: 0;
}
.scheduler-form-modal .scheduler-modal-summary {
  flex: 1 1 14rem;
  min-width: 0;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
.scheduler-form-modal .scheduler-form-footer > .btn,
.scheduler-form-modal .scheduler-form-footer > button {
  flex: 0 0 auto;
}
.scheduler-job-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.1rem;
}
.scheduler-form-column,
.scheduler-form-section {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.scheduler-form-column {
  gap: 1rem;
}
.scheduler-form-section {
  border: 1px solid color-mix(in srgb, var(--color-border) 72%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--color-surface) 42%, transparent);
  padding: 0.75rem;
}
.scheduler-form-section > h4 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--color-text-faint);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.scheduler-form-section > h4 > span {
  display: inline-grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  background: var(--slate-700);
  color: var(--color-text-subtle);
  font-size: 0.66rem;
}
.scheduler-form-modal .scheduler-form-field,
.scheduler-form-modal label.scheduler-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  margin: 0;
  color: var(--color-text-subtle);
  font-size: 0.82rem;
  font-weight: 500;
}
.scheduler-form-label {
  color: var(--color-text-subtle);
  font-size: 0.82rem;
  font-weight: 500;
}
.scheduler-form-field-compact {
  max-width: 14rem;
}
.scheduler-form-row {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}
.scheduler-form-row-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.scheduler-form-row-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.scheduler-form-modal input:not([type="checkbox"]):not([type="hidden"]),
.scheduler-form-modal select,
.scheduler-form-modal textarea {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-surface-sunken);
  color: var(--color-text);
  padding: 0.4rem 0.55rem;
  font: inherit;
  font-size: 0.875rem;
  color-scheme: dark;
}
.scheduler-form-modal textarea {
  min-height: 4.2rem;
  resize: vertical;
}
.scheduler-form-modal input:not([type="checkbox"]):not([type="hidden"]):focus-visible,
.scheduler-form-modal select:focus-visible,
.scheduler-form-modal textarea:focus-visible {
  outline: 2px solid var(--blue-400);
  outline-offset: 1px;
}
.scheduler-form-modal .scheduler-timezone-note,
.scheduler-form-modal .scheduler-field-help,
.scheduler-form-modal .scheduler-wells-hint,
.scheduler-form-modal .scheduler-optional {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.74rem;
  font-weight: 400;
}
.scheduler-form-modal .scheduler-duration-tools {
  margin-top: -0.1rem;
}
.scheduler-form-modal .scheduler-duration-tools .btn {
  padding: 0.12rem 0.45rem;
}
.scheduler-form-modal .scheduler-equipment-tokenbox {
  min-height: 2.25rem;
}
.scheduler-form-modal .scheduler-device-summary {
  min-height: 1.5rem;
  padding: 0.4rem 0.55rem;
  border: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent);
  border-radius: 5px;
  background: color-mix(in srgb, var(--color-surface-sunken) 80%, transparent);
}
.scheduler-form-modal .scheduler-form-notes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  padding: 0.25rem 0 0.65rem;
}
.scheduler-form-modal .scheduler-location-summary-row {
  margin: 0;
}
.scheduler-form-modal .scheduler-block-type-cards,
.scheduler-form-modal .scheduler-reason-chips {
  width: 100%;
}
.scheduler-form-modal .scheduler-reason-chip {
  padding: 0.26rem 0.7rem;
}
.scheduler-form-modal .scheduler-block-type-card {
  flex: 1 1 12rem;
}
.scheduler-form-modal .scheduler-block-transit-associations {
  margin: 0;
}
.scheduler-form-modal .scheduler-missed-detail-grid {
  padding-top: 0.3rem;
}
@media (max-width: 800px) {
  .modal-content.scheduler-form-modal,
  .modal-content.scheduler-block-form-modal,
  .modal-content.scheduler-missed-form-modal {
    width: min(100%, calc(100vw - 1rem));
    max-height: calc(100dvh - 1rem);
  }
  .scheduler-form-modal .scheduler-form-body,
  .scheduler-form-modal .scheduler-form-header,
  .scheduler-form-modal .scheduler-form-footer {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
  .scheduler-job-form-grid,
  .scheduler-form-row-two,
  .scheduler-form-row-three,
  .scheduler-form-modal .scheduler-form-notes-grid,
  .scheduler-missed-detail-grid {
    grid-template-columns: 1fr;
  }
}
