/* Lot 549 — restrained, truthful feedback. No processing state is inferred
   from disabled controls, elapsed time or the content of a status message. */
:is(.studio-page-shell,#workflowStudioRoot,.tool-page){
  --wts-feedback-accent:var(--studio-accent,#155bb5);
  --wts-feedback-duration:160ms;
}
/* The existing engine owns the fill width. A stable, labelled track avoids
   layout shifts and never animates an idle bar to a fictitious percentage. */
[data-wts-progress549]{
  position:relative;box-sizing:border-box;min-width:0;max-width:100%;
  height:20px!important;border-radius:8px;overflow:hidden;background:#e8eef5;
  border:1px solid #d5e0ec;
}
[data-wts-progress549]>span{
  height:100%;border-radius:6px;max-width:100%;
  transition:width var(--wts-feedback-duration,160ms) ease-out!important;
}
[data-wts-progress549][data-wts-percent549]::after{
  content:attr(data-wts-percent549);position:absolute;inset-block:1px;inset-inline-end:2px;
  display:grid;place-items:center;min-width:36px;padding:0 4px;box-sizing:border-box;
  border-radius:5px;background:#fff;color:#203950;font-size:11px;font-weight:750;
  font-variant-numeric:tabular-nums;line-height:1;pointer-events:none;
}
:is(.studio-page-shell,#workflowStudioRoot,.tool-page) progress{
  max-width:100%;height:14px;accent-color:#155bb5;vertical-align:middle;
}
/* Existing explicit busy states only. The cancel action remains untouched. */
:is(.studio-page-shell,#workflowStudioRoot,.tool-page) button[aria-busy=true],
#mediaStudioRoot.is-busy [data-media-run]:disabled{cursor:progress}
:is(.studio-page-shell,#workflowStudioRoot,.tool-page) :is(.button,.mini-button)[aria-busy=true]::after,
#mediaStudioRoot.is-busy #mediaStudioStatus.info:not(:empty)::before{
  content:"";display:inline-block;vertical-align:-2px;box-sizing:border-box;
  width:14px;height:14px;flex:0 0 14px;margin-inline:6px;
  border:2px solid currentColor;border-inline-end-color:transparent;border-radius:50%;
  animation:wtsFeedbackSpin549 .9s linear infinite;
}
@keyframes wtsFeedbackSpin549{to{transform:rotate(360deg)}}
/* Real status classes, not guessed success/error states. */
:is(.studio-page-shell,#workflowStudioRoot,.tool-page) :is(.notice,.media-studio-status,.pdf-studio-status,.office-studio-status,.image-studio-inline-status):is(.success,.error,.danger,.warn,.warning,.info):not(:empty){
  font-size:13px!important;line-height:1.55;overflow-wrap:anywhere;border-inline-start:3px solid var(--wts-feedback-status,#6b91bf);
}
:is(.studio-page-shell,#workflowStudioRoot,.tool-page) :is(.success){--wts-feedback-status:#238259}
:is(.studio-page-shell,#workflowStudioRoot,.tool-page) :is(.error,.danger){--wts-feedback-status:#b84848}
:is(.studio-page-shell,#workflowStudioRoot,.tool-page) :is(.warn,.warning){--wts-feedback-status:#a77425}
/* Subtle entrance only on explicitly visible studio panels. No displacement,
   no transform on editors, no forced scrolling, no animated layout. */
:is([data-media-control],[data-media-pro-control],[data-image-control],[data-pdf-control]).active,
:is([data-language-panel],[data-knowledge-panel]):not(.hidden):not([hidden]){
  animation:wtsPanelReveal549 var(--wts-feedback-duration,160ms) ease-out;
}
@keyframes wtsPanelReveal549{from{opacity:.88}to{opacity:1}}
/* Shared notifications: type is still supplied by the existing toast engine.
   Keep the original text, lifetime and live-region contract. */
#toastRegion{max-width:calc(100vw - 24px);gap:8px}
#toastRegion .toast{
  box-sizing:border-box;min-width:min(300px,calc(100vw - 24px));max-width:min(420px,calc(100vw - 24px));
  font-size:13px;line-height:1.5;font-weight:600;overflow-wrap:anywhere;
  padding:13px 15px 13px 43px;border-radius:12px;box-shadow:0 8px 26px #18365024;
  animation:wtsToastReveal549 160ms ease-out;
}
#toastRegion .toast::after{
  content:"";position:absolute;inset-inline-start:15px;top:15px;width:18px;height:18px;
  background:currentColor;mask:var(--wts-toast-icon) center/contain no-repeat;
}
#toastRegion .toast.success{--wts-toast-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12 3 3 5-6'/%3E%3C/svg%3E")}
#toastRegion .toast.error{--wts-toast-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v6m0 4h.01'/%3E%3C/svg%3E")}
#toastRegion .toast.info{--wts-toast-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v6m0-10h.01'/%3E%3C/svg%3E")}
@keyframes wtsToastReveal549{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@media(max-width:520px){#toastRegion{left:12px;right:12px;bottom:max(12px,env(safe-area-inset-bottom))}#toastRegion .toast{min-width:0;width:100%;max-width:100%}}
@media(prefers-reduced-motion:reduce){
  [data-wts-progress549]>span{transition:none!important}
  :is([data-media-control],[data-media-pro-control],[data-image-control],[data-pdf-control]).active,
  :is([data-language-panel],[data-knowledge-panel]):not(.hidden):not([hidden]),
  #toastRegion .toast,
  :is(.studio-page-shell,#workflowStudioRoot,.tool-page) :is(.button,.mini-button)[aria-busy=true]::after,
  #mediaStudioRoot.is-busy #mediaStudioStatus.info:not(:empty)::before{animation:none!important}
}
@media(forced-colors:active){[data-wts-progress549]{border-color:CanvasText}[data-wts-progress549]>span{background:Highlight;forced-color-adjust:none}[data-wts-progress549][data-wts-percent549]::after{background:Canvas;color:CanvasText}}
