:root {
  --cutoff-primary: #1769aa;
  --cutoff-primary-dark: #0d4f83;
  --cutoff-ink: #162738;
  --cutoff-muted: #68798a;
  --cutoff-line: #dbe4eb;
  --cutoff-surface: #f6f9fb;
}

.cutoff-date-dialog {
  border: 1px solid #d3dee7;
  border-radius: 12px;
  padding: 32px;
  max-width: 680px;
  width: min(92%, 680px);
  color: var(--cutoff-ink);
  box-shadow: 0 24px 60px rgb(22 39 56 / 20%);
  font-family: "Segoe UI", sans-serif;
  position: fixed;
}

.cutoff-date-dialog::backdrop {
  background: rgb(22 39 56 / 38%);
  backdrop-filter: blur(3px);
}

.cutoff-modal-eyebrow {
  margin: 0 0 8px;
  color: var(--cutoff-primary);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cutoff-modal-title {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.cutoff-modal-title span {
  color: var(--cutoff-muted);
  font-weight: 450;
}

.cutoff-modal-intro {
  margin: 8px 0 24px;
  color: var(--cutoff-muted);
  font-size: 14px;
}

.cutoff-modal-body {
  display: flex;
  gap: 32px;
  border-top: 1px solid var(--cutoff-line);
  border-bottom: 1px solid var(--cutoff-line);
  padding: 24px 0;
}

.cutoff-left-section,
.cutoff-right-section {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cutoff-left-section {
  border-right: 1px solid var(--cutoff-line);
  padding-right: 32px;
}

.cutoff-section-heading {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: 0.01em;
}

.cutoff-left-section .cutoff-section-heading,
.cutoff-input-label,
.cutoff-input-help {
  color: var(--cutoff-muted);
}

.cutoff-input-label {
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 650;
}

.cutoff-input-help {
  margin: 8px 0 20px;
  font-size: 12px;
  line-height: 1.4;
}

.cutoff-calendar-input {
  width: 100%;
}

.cutoff-calendar-input .DateInput_input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #b9c8d4;
  border-radius: 6px;
}

.cutoff-saves-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cutoff-save-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.cutoff-save-item {
  flex: 1;
  padding: 8px 12px;
  background: var(--cutoff-surface);
  border: 1px solid var(--cutoff-line);
  border-radius: 6px;
  color: var(--cutoff-ink);
  cursor: pointer;
  text-align: left;
}

.cutoff-save-item:hover {
  background: #edf5fa;
  border-color: #a9c9df;
}

.selected-cutoff {
  border-color: #4b9b70;
  background: #edf8f1;
  color: #24613d;
  font-weight: 650;
}

.cutoff-delete-button,
.cutoff-close-button {
  background: transparent;
  border: 1px solid transparent;
  color: var(--cutoff-muted);
  cursor: pointer;
}

.cutoff-delete-button {
  padding: 8px;
  color: #dc3545;
  border-radius: 6px;
}

.cutoff-delete-button:hover {
  background: #f8d7da;
  border-color: #f5c6cb;
}

.cutoff-close-button {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 23px;
  line-height: 1;
}

.cutoff-close-button:hover {
  color: var(--cutoff-ink);
  background: var(--cutoff-surface);
  border-color: var(--cutoff-line);
}

.cutoff-action-button {
  padding: 11px 14px;
  background: var(--cutoff-primary);
  color: white;
  border: 1px solid var(--cutoff-primary-dark);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 650;
}

.cutoff-action-button:hover {
  background: var(--cutoff-primary-dark);
}

.cutoff-timeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 28px 0 16px;
  position: sticky;
}

.cutoff-timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.cutoff-timeline-line {
  flex: 1;
  height: 4px;
  background: #e0e0e0;
  margin: 0 8px 24px;
}

.cutoff-timeline-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f5f5f5;
  border: 2px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #666;
}

.cutoff-timeline-label {
  font-size: 12px;
  color: #666;
  text-align: center;
}

.cutoff-completion-message {
  text-align: center;
  color: #28a745;
  font-weight: 600;
  margin-top: 12px;
}

.cutoff-progress-dialog {
  max-width: 680px;
}

@media (width <= 560px) {
  .cutoff-date-dialog {
    padding: 26px 20px;
  }

  .cutoff-modal-title {
    padding-right: 24px;
    font-size: 23px;
  }

  .cutoff-modal-body {
    flex-direction: column;
    gap: 24px;
  }

  .cutoff-left-section {
    border-right: none;
    border-bottom: 1px solid var(--cutoff-line);
    padding: 0 0 24px;
  }
}
