/* Reuse the existing brand palette. No simulated progress or forced waiting. */
.zi-progress { margin:18px 0; }
.zi-progress ol { display:grid; gap:0; list-style:none; padding:0; margin:0; }
.zi-step { display:grid; grid-template-columns:28px minmax(0,1fr); gap:12px; position:relative; padding:0 0 18px; min-width:0; }
.zi-step:not(:last-child)::after { content:""; position:absolute; left:13px; top:28px; bottom:0; width:1px; background:var(--line); }
.zi-step:last-child { padding-bottom:0; }
.zi-step-mark { display:grid; place-items:center; width:28px; height:28px; border:1px solid var(--line); border-radius:50%; box-sizing:border-box; font-size:12px; color:var(--muted); background:var(--ep-cream); }
.zi-done .zi-step-mark { color:var(--ink); background:var(--mint); }
.zi-current .zi-step-mark { color:var(--ink); border-color:currentColor; border-width:2px; }
.zi-step strong { display:block; font-size:14px; font-weight:550; line-height:1.8; }
.zi-step p,.zi-progress-note { margin:4px 0 0; font-size:12px; line-height:1.8; color:var(--muted); overflow-wrap:anywhere; }
.zi-progress-note { margin-top:12px; }
.zi-draft-summary { padding:20px; margin:24px 0 4px; border:1px solid var(--line); border-left:4px solid var(--mint); border-radius:16px; background:var(--ep-cream); }
.zi-draft-summary h3 { margin:0 0 12px; font-size:18px; line-height:1.6; }
.zi-draft-summary p { margin:10px 0 0; font-size:14px; line-height:1.9; overflow-wrap:anywhere; }
.zi-summary-boundary,.zi-summary-missing,.zi-validity-advice { color:var(--muted); font-size:13px; line-height:1.8; }
.zi-validity-advice { margin:8px 0 0; }
.zi-summary-missing[hidden] { display:none; }
/* Saving indicator follows existing aria-busy state; a failed request never becomes success. */
.modal:has(form[aria-busy="true"]) #ux-save-state::before { content:""; display:inline-block; width:12px; height:12px; box-sizing:border-box; border:2px solid var(--line); border-top-color:currentColor; border-radius:50%; margin-right:8px; vertical-align:-1px; }
@media(prefers-reduced-motion:no-preference) {
 .ep-main :is(.button,.ux-area-tile,.ux-add-card,.ac-home-entry),.modal .button,.ep-mobile-tabs>button { transition:transform 100ms ease,box-shadow 140ms ease; }
 .ep-main :is(.button,.ux-area-tile,.ux-add-card,.ac-home-entry):active:not(:disabled),.modal .button:active:not(:disabled),.ep-mobile-tabs>button:active { transform:translateY(1px); }
 .ux-home,.ux-library,.ux-area,.sw-page,.sn-workspace,.sn-reader,.ac-home { animation:zi-enter 160ms ease-out; }
 .modal { animation:zi-dialog 140ms ease-out; }
 .modal:has(form[aria-busy="true"]) #ux-save-state::before { animation:zi-saving 800ms linear infinite; }
}
@keyframes zi-enter { from { opacity:.7; transform:translateY(5px); } to { opacity:1; transform:translateY(0); } }
@keyframes zi-dialog { from { opacity:.8; transform:translateY(4px); } to { opacity:1; transform:translateY(0); } }
@keyframes zi-saving { to { transform:rotate(360deg); } }
@media(max-width:480px) { .zi-draft-summary { padding:18px 16px; }.zi-step { gap:10px; } }
@media(forced-colors:active) { .zi-step-mark { border-color:CanvasText; }.zi-current .zi-step-mark { outline:1px solid CanvasText; outline-offset:2px; } }
