/* AutoFlow R45 — full desktop workflow audit / readability + interaction polish.
   Loaded after each screen stylesheet so approved layouts remain intact. */
:root{
  --af-focus:#7C3AED;
  --af-focus-ring:rgba(124,58,237,.22);
}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}
button,a,input,select,textarea{font-family:inherit}
button,a,[role="button"]{-webkit-tap-highlight-color:transparent}
button:disabled,[aria-disabled="true"]{cursor:not-allowed}
:where(a,button,input,select,textarea,[tabindex]):focus-visible{
  outline:3px solid var(--af-focus-ring)!important;
  outline-offset:2px!important;
  box-shadow:0 0 0 1px var(--af-focus)!important;
}

/* Locked future workflow steps are informational, never accidental shortcuts. */
.workflow-page a.workflow-step.locked{
  pointer-events:none;
  cursor:not-allowed;
}

/* Readability floor for the dense 9-step production workspace. */
.workflow-page .workflow-step strong{font-size:11px!important}
.workflow-page .workflow-step small{font-size:9.5px!important;line-height:1.3}
.workflow-page .sidebar-top p{font-size:11px!important;line-height:1.45}
.workflow-page .sidebar-order span{font-size:9px!important}
.workflow-page .sidebar-order small{font-size:9.5px!important;line-height:1.35}
.workflow-page .context-kicker,
.workflow-page .save-state,
.workflow-page .back-link{font-size:10.5px!important}
.workflow-page .workspace-head p{font-size:12px!important;line-height:1.5}
.workflow-page .section-heading p,
.workflow-page .summary-card p,
.workflow-page .status-card-side p,
.workflow-page .compact-support p,
.workflow-page .help-grid p{font-size:10.5px!important;line-height:1.48}
.workflow-page label{font-size:10.5px!important}
.workflow-page .button:not(.button-large),
.workflow-page .filter-chip,
.workflow-page .text-button{font-size:10.5px!important;min-height:34px}
.workflow-page .button-large{min-height:40px}
.workflow-page .icon-button{min-width:36px;min-height:36px}
.workflow-page .toast{font-size:10.5px!important}
.workflow-page .summary-line,
.workflow-page .manifest-row,
.workflow-page .verified-list div{font-size:10px!important}
.workflow-page .product-info span,
.workflow-page .product-meta span,
.workflow-page .direction-copy span,
.workflow-page .direction-rules span,
.workflow-page .direction-rules strong,
.workflow-page .delivery-asset-meta,
.workflow-page .asset-download-row small{font-size:9.5px!important}
.workflow-page .workspace-scroll{scroll-padding-bottom:76px}

/* Public/customer/internal controls use one accessible hit-area baseline. */
.public-page .button,
.workspace-page .button,
.operations-page .button-primary,
.operations-page .button-secondary{min-height:38px}
.public-page footer button,
.public-page footer a{font-size:11px}

/* Delivery: sticky action appears only when the hero download control has left view. */
.workflow-page .delivery-footer.af-contextual-footer{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(10px);
  transition:opacity .18s ease,transform .18s ease,visibility .18s ease;
}
.workflow-page .delivery-footer.af-contextual-footer.is-visible{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0);
}
.workflow-page .completion-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}

@media(max-width:1100px){
  .workflow-page .delivery-footer.af-contextual-footer{
    opacity:1;visibility:visible;pointer-events:auto;transform:none;
  }
}

@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}
}

/* R45 dashboard empty-state resilience. */
.workspace-page .dashboard-empty-card{
  background:#fff;border:1px solid #E5E2EE;border-radius:18px;padding:28px;
  display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:18px;align-items:center;
  box-shadow:0 12px 34px rgba(22,20,60,.05)
}
.workspace-page .dashboard-empty-card[hidden]{display:none!important}
.workspace-page .dashboard-empty-icon{width:52px;height:52px;border-radius:15px;background:#F1EAFF;color:#6D28D9;display:grid;place-items:center;font-size:26px;font-weight:800}
.workspace-page .dashboard-empty-card h2{font:800 22px/1.2 "Manrope","Segoe UI",sans-serif;margin:5px 0 6px;color:#111827}
.workspace-page .dashboard-empty-card p{margin:0;color:#64748B;font-size:14px;line-height:1.55;max-width:720px}
@media(max-width:980px){.workspace-page .dashboard-empty-card{grid-template-columns:auto 1fr}.workspace-page .dashboard-empty-card>.button{grid-column:1/-1;justify-self:start}}

/* Delivery price fidelity inside on-screen asset previews. */
.workflow-page .asset-preview-price{display:flex;align-items:baseline;gap:6px;margin-top:6px}
.workflow-page .asset-preview-price strong{font-size:12px!important;font-weight:900;line-height:1}
.workflow-page .asset-preview-price small{font-size:8.5px!important;opacity:.68;text-decoration:line-through;line-height:1}

/* Collapse the contextual delivery footer completely while the hero CTA is visible. */
.workflow-page .delivery-footer.af-contextual-footer{
  max-height:0;margin-top:0;padding-top:0;padding-bottom:0;border-width:0;overflow:hidden;
}
.workflow-page .delivery-footer.af-contextual-footer.is-visible{
  max-height:84px;margin-top:10px;padding:10px 12px;border-width:1px;
}
@media(max-width:1100px){
  .workflow-page .delivery-footer.af-contextual-footer{
    max-height:84px;margin-top:10px;padding:10px 12px;border-width:1px;overflow:visible;
  }
}

/* High-value commercial / QA guidance must never be microcopy. */
.workflow-page .smart-price-copy>span,
.workflow-page .commercial-check-kicker{font-size:9px!important}
.workflow-page .smart-price-copy strong,
.workflow-page .commercial-check-copy strong{font-size:11px!important}
.workflow-page .smart-price-copy p,
.workflow-page .commercial-check-copy p,
.workflow-page .commercial-review-card p,
.workflow-page .commercial-asset-note,
.workflow-page .guidance-grid p{font-size:10px!important;line-height:1.45}
