.demo-step-banner {
  background: #2a1f14;
  border: 1px solid #e85d04;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #e6edf3;
}
.demo-step-banner .demo-step-label {
  display: inline-block;
  background: #e85d04;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  margin-right: 0.5rem;
  vertical-align: middle;
}
.demo-step-banner a { color: #e85d04; font-size: 0.8rem; text-decoration: none; }
.demo-step-banner a:hover { text-decoration: underline; }
.demo-focus {
  outline: 2px solid #e85d04;
  outline-offset: 4px;
  box-shadow: 0 0 0 6px rgba(232, 93, 4, 0.15);
  scroll-margin-top: 5rem;
}

/* Shared in-app guidance (workflow, integration, onboarding) */
.panel-lead { margin: 0 0 1rem; font-size: 0.875rem; color: #8b949e; line-height: 1.5; }
.help-callout {
  background: #0d1117;
  border: 1px solid #30363d;
  border-left: 3px solid #e85d04;
  border-radius: 0 8px 8px 0;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: #8b949e;
  line-height: 1.5;
}
.help-callout strong { color: #e6edf3; }
.help-callout ul { margin: 0.5rem 0 0; padding-left: 1.15rem; }
.help-callout li { margin-bottom: 0.35rem; }
.start-options { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1rem; align-items: stretch; }
@media (max-width: 800px) { .start-options { grid-template-columns: 1fr; } }
.start-card {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.start-card strong { font-size: 0.95rem; color: #e6edf3; }
.start-card p { margin: 0; font-size: 0.82rem; color: #8b949e; flex: 1; }
.start-card.highlight { border-color: #e85d04; background: #2a1f14; }
.flow-hint { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.25rem; }
.flow-hint span { font-size: 0.8rem; padding: 0.35rem 0.75rem; border-radius: 999px; background: #1a2332; border: 1px solid #30363d; color: #8b949e; }
.flow-hint span em { font-style: normal; color: #e85d04; font-weight: 700; margin-right: 0.35rem; }

/* —— Mobile-ready app shell (demo workflow pages) —— */
.app-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #30363d;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
}
.app-header h1 { margin: 0; font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.app-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 0.35rem;
}
.app-nav a {
  color: #8b949e;
  font-size: 0.875rem;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.app-nav a:hover { color: #e85d04; }
.app-main {
  padding: 1.5rem;
  display: grid;
  gap: 1.25rem;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}
.grid-2-app {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.25rem;
  align-items: start;
}
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 1rem;
}
.table-scroll table { min-width: 520px; }
.toolbar-stack { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.steps-progress { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.steps-progress .step {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: #1a2332;
  color: #8b949e;
  font-size: 0.8rem;
  border: 1px solid #30363d;
}
.steps-progress .step.active { color: #e6edf3; border-color: #e85d04; background: #2a1f14; }
.steps-progress .step.done { color: #3fb950; border-color: #3fb950; }

.mobile-fab {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
  background: rgba(15, 20, 25, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid #30363d;
  gap: 0.5rem;
}
.mobile-fab button { flex: 1; min-height: 44px; font-size: 0.9rem; font-weight: 600; border-radius: 8px; border: none; cursor: pointer; font-family: inherit; }
.mobile-fab .fab-primary { background: #e85d04; color: #fff; }
.mobile-fab .fab-secondary { background: #30363d; color: #e6edf3; }

@media (max-width: 960px) {
  .grid-2-app { grid-template-columns: 1fr; }
  .mobile-fab.is-visible { display: flex; }
  body.fab-pad .app-main { padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 640px) {
  .app-header { padding: 0.85rem 1rem; flex-direction: column; align-items: stretch; }
  .app-header h1 { font-size: 1.05rem; }
  .app-main { padding: 1rem; gap: 1rem; }
  .app-nav { gap: 0.35rem 0.75rem; }
  .app-nav a { font-size: 0.82rem; min-height: 40px; }
  .toolbar-stack { flex-direction: column; align-items: stretch; }
  .toolbar-stack > button,
  .toolbar-stack > label,
  .toolbar-stack > select { width: 100%; }
  .toolbar-stack label { display: flex; flex-direction: column; gap: 0.35rem; }
  .toolbar-stack label select { width: 100%; min-height: 44px; }
  .flow-hint { flex-direction: column; gap: 0.35rem; }
  .flow-hint span { width: 100%; box-sizing: border-box; }
  .steps-progress {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
  }
  .steps-progress .step {
    text-align: center;
    font-size: 0.7rem;
    padding: 0.45rem 0.35rem;
    border-radius: 8px;
    line-height: 1.25;
  }
  .grid-2-onboarding { grid-template-columns: 1fr !important; }
  .type-picker { grid-template-columns: 1fr !important; }
  .summary-cards .card { flex: 1 1 calc(50% - 0.5rem); min-width: 0; }
  .panel { padding: 1rem !important; }
  button, .btn, input[type="submit"] { min-height: 44px; }
  .form-field input[type="datetime-local"],
  .form-field input[type="text"],
  .form-field input[type="number"],
  .form-field select { min-height: 44px; font-size: 16px; }
  .choice-pill { min-height: 40px; padding: 0.45rem 0.65rem; }
  .type-chip { min-height: 44px; }
  .demo-hero { padding: 1.15rem 1rem !important; }
  .demo-hero h1 { font-size: 1.35rem !important; }
  .hero-actions { flex-direction: column; }
  .hero-actions button, .hero-actions .btn { width: 100%; }
  .path-grid { grid-template-columns: 1fr !important; }
  .personas { grid-template-columns: 1fr !important; }
  .dashboard-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }
  .dashboard-cards .card { min-width: 0; }
  .score-mobile { font-size: 2.25rem !important; }
  .status-track span { flex: 1 1 auto; text-align: center; min-width: calc(50% - 0.35rem); }
  .action-row { flex-direction: column; }
  .action-row button { width: 100%; }
}

@media (max-width: 400px) {
  .steps-progress { grid-template-columns: 1fr; }
  .dashboard-cards { grid-template-columns: 1fr; }
  .summary-cards { flex-direction: column; }
  .summary-cards .card { width: 100%; }
}
