/* One task screen at a time. Business-role hidden flags remain independent. */
[data-step-off] {
  display: none !important;
}
body[data-workspace-view="detail"] #workspaceOverview,
body[data-workspace-view="detail"] #rfqPanel,
body[data-workspace-view="detail"] #uploadPanel,
body[data-workspace-view="upload"] #workspaceOverview,
body[data-workspace-view="upload"] #rfqPanel,
body[data-workspace-view="list"] #uploadPanel {
  display: none !important;
}
body[data-workspace-view="detail"] .app-area > .progress-panel,
body[data-workspace-view="list"] .app-area > .progress-panel {
  display: none;
}
body[data-workspace-view="upload"] .progress-panel ol {
  display: none;
}
#detail {
  margin-top: 0;
}
.wizard-shell {
  position: static;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 16px;
  margin: 12px 0;
}
.wizard-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wizard-caption h2 {
  font-size: 26px;
  margin: 4px 0 6px;
  letter-spacing: -0.03em;
}
.wizard-caption p {
  margin: 0;
  max-width: 72ch;
}
.wizard-caption .eyebrow {
  font-size: 11px;
}
.wizard-steps {
  display: flex;
  overflow: auto;
  gap: 6px;
  padding: 16px 0 12px;
  scrollbar-width: thin;
}
.wizard-step {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  font-size: 12px;
  min-height: 40px;
  padding: 7px 10px;
  white-space: nowrap;
  border-radius: 10px;
}
.wizard-step-number {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--surface);
  font-variant-numeric: tabular-nums;
}
.wizard-steps .wizard-step[aria-current="step"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.wizard-step[aria-current="step"] .wizard-step-number {
  background: var(--orange);
  color: #111;
}
.wizard-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}
#wizardMessage:empty {
  display: none;
}
#wizardProgress {
  height: 4px;
  margin: 0;
}
#detail > [data-wizard-panel] {
  margin-top: 0;
  min-height: 260px;
}
#assignmentPanel {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--paper);
}
body[data-workspace-view="detail"] .workspace-main {
  padding-top: 24px;
}
@media (max-width: 980px) {
  .wizard-shell {
    top: var(--header);
    padding: 14px;
  }
  .wizard-caption h2 {
    font-size: 23px;
  }
  .wizard-caption p.muted {
    font-size: 12px;
  }
  .wizard-step {
    font-size: 12px;
  }
  .wizard-controls button {
    max-width: 44%;
    white-space: normal;
  }
  .wizard-controls {
    align-items: stretch;
  }
  .wizard-controls > span {
    align-self: center;
  }
}
@media (max-width: 600px) {
  .wizard-shell {
    margin: 14px 0;
    padding: 12px;
  }
  .wizard-caption {
    align-items: flex-start;
  }
  .wizard-caption > button {
    font-size: 12px;
    padding: 8px;
  }
  .wizard-caption h2 {
    font-size: 21px;
  }
  .wizard-caption p.muted {
    display: none;
  }
  .wizard-steps {
    padding: 12px 0 8px;
  }
  .wizard-controls {
    gap: 8px;
  }
  .wizard-controls button {
    font-size: 12px;
  }
  .wizard-position {
    font-size: 12px;
  }
  #detail > [data-wizard-panel] {
    padding: 14px;
  }
  #detail > .section-head h2 {
    font-size: 20px;
  }
}

/* The stage title is present in the navigator. */
body[data-workspace-view="detail"] .work-section > .section-heading,
body[data-workspace-view="detail"] #cardForm > .section-heading,
body[data-workspace-view="detail"] #poPanel > .section-head > .section-heading {
  display: none;
}
body[data-workspace-view="detail"] #poPanel > .section-head {
  justify-content: flex-end;
}

.demo-badge {
  padding: 5px 8px;
  border: 1px solid var(--accent-border);
  background: var(--peach);
  color: var(--accent-text);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}
.demo-profiles {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}
.demo-profiles button {
  text-align: left;
  justify-content: flex-start;
  min-height: 48px;
}
.demo-mode .header-account #sessionName {
  max-width: 180px;
}
@media (max-width: 600px) {
  .demo-mode .header-account #sessionName {
    display: none;
  }
  .demo-mode .header-account {
    gap: 5px;
  }
  .demo-badge {
    font-size: 9px;
    padding: 4px;
  }
  .demo-mode #logout {
    font-size: 11px;
    padding: 8px;
  }
}

/* Navigation is not a measure of task completion. */
#wizardCounter,
#wizardPosition,
#wizardProgress {
  display: none;
}
.wizard-caption h2 {
  font-size: 22px;
}
.wizard-controls {
  margin-top: 4px;
}
