.digital-schedule-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 32px;
  background: rgba(15, 23, 42, 0.28);
}

.digital-schedule-dialog {
  width: min(520px, calc(100vw - 64px));
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}

.digital-schedule-head,
.digital-schedule-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid #e2e8f0;
}

.digital-schedule-head h3 {
  margin: 4px 0 0;
  color: #0f172a;
  font-size: 18px;
  font-weight: 820;
}

.digital-schedule-kicker {
  color: #64748b;
  font-size: 12px;
  font-weight: 760;
}

.digital-schedule-close {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #dbe4ee;
  border-radius: 6px;
  background: #fff;
  color: #475569;
  cursor: pointer;
}

.digital-schedule-body {
  padding: 18px 20px 20px;
}

.digital-schedule-mode-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.digital-schedule-mode {
  min-height: 36px;
  border: 1px solid #dbe4ee;
  border-radius: 6px;
  background: #fff;
  color: #475569;
  font-size: 13px;
  font-weight: 760;
  cursor: pointer;
}

.digital-schedule-mode.active {
  border-color: rgba(var(--theme-primary-rgb), 0.42);
  background: var(--theme-primary-soft);
  color: var(--theme-primary-active);
}

.digital-schedule-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.digital-schedule-fields label {
  display: grid;
  gap: 6px;
  color: #334155;
  font-size: 13px;
  font-weight: 760;
}

.digital-schedule-fields input,
.digital-schedule-fields select {
  width: 100%;
  min-height: 38px;
  border: 1px solid #dbe4ee;
  border-radius: 6px;
  padding: 0 10px;
  color: #0f172a;
  font: inherit;
  background: #fff;
}

.digital-schedule-cron-field {
  grid-column: 1 / -1;
}

.digital-schedule-preview {
  margin: 16px 0 0;
  padding: 10px 12px;
  border-radius: 6px;
  background: #f8fafc;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.digital-schedule-error {
  margin: 10px 0 0;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 760;
}

.digital-schedule-actions {
  justify-content: flex-end;
  border-top: 1px solid #e2e8f0;
  border-bottom: 0;
}

.digital-schedule-actions .success-action {
  border-color: var(--success-line);
  background: var(--success-soft);
  color: var(--success-hover);
}

.digital-schedule-dialog-enter-active,
.digital-schedule-dialog-leave-active {
  transition: opacity 160ms ease;
}

.digital-schedule-dialog-enter-from,
.digital-schedule-dialog-leave-to {
  opacity: 0;
}

@media (max-width: 720px) {
  .digital-schedule-overlay {
    align-items: flex-end;
    padding: 16px;
  }

  .digital-schedule-dialog {
    width: 100%;
  }

  .digital-schedule-mode-grid,
  .digital-schedule-fields {
    grid-template-columns: 1fr;
  }
}
