:root {
  --wf-navy: #07152d;
  --wf-navy-2: #0c2346;
  --wf-blue: #1769e0;
  --wf-canvas: #eef3f9;
  --wf-line: #d3deeb;
  --wf-muted: #62748b;
}

.workflow-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  background: var(--wf-canvas);
}

.workflow-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
  color: #f5f9ff;
  background: var(--wf-navy);
  border-right: 1px solid rgba(255, 255, 255, .09);
}

.workflow-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 28px;
}

.workflow-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #edf4ff;
  color: #155ad1;
  font-size: 12px;
  font-weight: 950;
}

.workflow-brand strong { display: block; font-size: 16px; }
.workflow-brand small { display: block; margin-top: 3px; color: #9db7d8; font-size: 11px; }
.workflow-nav-label { margin: 0 10px 10px; color: #7897bd; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.workflow-nav { display: grid; gap: 6px; }

.workflow-step {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #bcd0e9;
}

.workflow-step:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.workflow-step.active { border-color: rgba(121, 178, 255, .3); background: #102d58; color: #fff; }
.workflow-step.done .workflow-num { background: #dceaff; color: #174f9d; }
.workflow-num { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; background: rgba(255,255,255,.08); color: #a8c8ee; font-size: 11px; font-weight: 950; }
.workflow-copy strong { display: block; font-size: 13px; }
.workflow-copy small { display: block; margin-top: 3px; color: #829fc1; font-size: 10px; line-height: 1.35; }
.workflow-step.active .workflow-copy small { color: #b8cff0; }
.workflow-arrow { margin: 0 0 0 25px; height: 14px; border-left: 1px solid rgba(145,180,222,.35); }

.workflow-rail-foot { margin-top: auto; padding-top: 20px; }
.workflow-beta { padding: 13px; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; background: rgba(255,255,255,.05); }
.workflow-beta strong { display: block; color: #fff; font-size: 12px; }
.workflow-beta span { display: block; margin-top: 5px; color: #91aaca; font-size: 10px; line-height: 1.5; }
.workflow-service { display: block; margin-top: 9px; padding: 9px 10px; color: #9db7d8; font-size: 11px; font-weight: 800; }
.workflow-service:hover { color: #fff; }
.workflow-main { min-width: 0; }

.workflow-stagebar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--wf-line);
  background: rgba(255,255,255,.94);
}
.workflow-stagebar a { position: relative; padding: 15px 22px; border-right: 1px solid var(--wf-line); color: var(--wf-muted); font-size: 12px; font-weight: 850; }
.workflow-stagebar a:last-child { border-right: 0; }
.workflow-stagebar a.active { color: var(--wf-navy); background: #fff; }
.workflow-stagebar a.active::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: -1px; height: 3px; background: var(--wf-blue); }

@media (max-width: 900px) {
  .workflow-shell { grid-template-columns: 1fr; }
  .workflow-rail { position: relative; height: auto; padding: 12px; }
  .workflow-brand { margin-bottom: 10px; }
  .workflow-nav-label, .workflow-arrow, .workflow-rail-foot { display: none; }
  .workflow-nav { display: grid; grid-template-columns: repeat(3, 1fr); }
  .workflow-step { min-height: 48px; grid-template-columns: 26px 1fr; padding: 7px; }
  .workflow-num { width: 26px; height: 26px; }
  .workflow-copy small { display: none; }
  .workflow-stagebar { display: none; }
}

@media (max-width: 560px) {
  .workflow-step { display: block; text-align: center; }
  .workflow-num { margin: 0 auto 4px; }
  .workflow-copy strong { font-size: 11px; }
}
