.flow-page {
  --app-accent: #ff9583;
  --app-accent-rgb: 255, 149, 131;
  --app-accent-ink: #250b07;
  --app-bg: #120e14;
  --app-sidebar: #1c1420;
  --app-panel: #241a29;
  --app-panel-strong: #302139;
}

.flow-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 18px;
}

.flow-form-panel {
  min-width: 0;
}

.flow-step-count {
  color: var(--app-accent);
  font-weight: 800;
}

.flow-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.flow-progress li {
  border-bottom: 3px solid var(--app-border);
  padding: 0 0 10px;
  color: var(--app-muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.flow-progress li span {
  display: inline-grid;
  width: 25px;
  aspect-ratio: 1;
  margin-right: 6px;
  place-items: center;
  border-radius: 50%;
  background: var(--app-panel-strong);
}

.flow-progress li[aria-current="step"],
.flow-progress li[data-complete="true"] {
  border-color: var(--app-accent);
  color: var(--app-text);
}

.flow-step {
  margin: 0;
  border: 0;
  padding: 0;
}

.flow-step + .flow-step {
  margin-top: 30px;
  border-top: 1px solid var(--app-border);
  padding-top: 30px;
}

.js-enabled .flow-step + .flow-step {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

.flow-step legend {
  margin-bottom: 20px;
  padding: 0;
  font-size: 1.25rem;
  font-weight: 850;
}

.flow-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.flow-wide {
  grid-column: 1 / -1;
}

.flow-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.flow-choice-grid label {
  display: flex;
  min-height: 130px;
  gap: 10px;
  border: 1px solid var(--app-border);
  border-radius: 7px;
  padding: 15px;
  cursor: pointer;
}

.flow-choice-grid input {
  margin-top: 4px;
  accent-color: var(--app-accent);
}

.flow-choice-grid strong,
.flow-choice-grid small {
  display: block;
}

.flow-choice-grid small {
  margin-top: 6px;
  color: var(--app-muted);
}

.flow-attachment {
  display: grid;
  grid-column: 1 / -1;
  justify-items: start;
  gap: 7px;
  border: 1px dashed var(--app-border);
  border-radius: 7px;
  padding: 17px;
}

.flow-attachment p,
.flow-disclaimer {
  margin: 0;
  color: var(--app-muted);
}

.flow-actions,
.flow-related {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.flow-review {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.flow-review div {
  border: 1px solid var(--app-border);
  border-radius: 6px;
  padding: 13px;
}

.flow-review span,
.flow-review strong {
  display: block;
}

.flow-review span {
  color: var(--app-muted);
  font-size: 0.72rem;
}

.flow-side-column {
  display: grid;
  align-content: start;
  gap: 18px;
}

.flow-request-list {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.flow-request-list button {
  display: flex;
  width: 100%;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--app-border);
  border-radius: 6px;
  padding: 11px;
  background: var(--app-bg);
  color: var(--app-text);
  text-align: left;
  cursor: pointer;
}

.flow-request-list strong,
.flow-request-list small {
  display: block;
}

.flow-request-list small {
  color: var(--app-muted);
}

.flow-timeline ol {
  display: grid;
  gap: 0;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.flow-timeline li {
  position: relative;
  border-left: 2px solid var(--app-border);
  padding: 0 0 20px 22px;
}

.flow-timeline li::before {
  position: absolute;
  top: 3px;
  left: -7px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--app-panel);
  border-radius: 50%;
  background: var(--app-muted);
  content: "";
}

.flow-timeline li.is-done::before,
.flow-timeline li.is-current::before {
  background: var(--app-accent);
}

.flow-timeline strong,
.flow-timeline span {
  display: block;
}

.flow-timeline span {
  color: var(--app-muted);
  font-size: 0.8rem;
}

@media (max-width: 1100px) {
  .flow-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .flow-progress {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-field-grid,
  .flow-choice-grid,
  .flow-review {
    grid-template-columns: 1fr;
  }

  .flow-wide {
    grid-column: auto;
  }
}
