/* Explicit primary states preserve contrast over shared button styles. */
#agent-studio button.as-primary:hover:not(:disabled),#agent-studio button.as-primary:focus-visible,
#trend-finder button.tf-primary:hover:not(:disabled),#trend-finder button.tf-primary:focus-visible,
.cf-dialog button.cf-primary:hover:not(:disabled),#widget-dialog button.btn:not(.secondary):hover:not(:disabled){background:#064f97;color:#fff;border-color:#064f97}
#agent-studio button.as-primary:disabled,#trend-finder button.tf-primary:disabled{background:#315f88;color:#fff;opacity:1}
.roadmap-dialog .roadmap-close,#roadmap-dialog .roadmap-close,button.roadmap-close{display:grid;place-items:center;align-self:flex-start;flex:0 0 44px;width:44px;height:44px;min-height:44px;padding:0;line-height:1;font-size:25px}
#tf-status[aria-busy=true]{padding:14px 16px;border:1px solid #b5d0e6;background:#edf6ff;color:#153859;border-radius:10px;font-weight:600}
#tf-status[aria-busy=true]::before{content:'';display:inline-block;width:12px;height:12px;border:2px solid #8db8dc;border-top-color:#075aa3;border-radius:50%;margin-right:10px;animation:zenshi-working 1s linear infinite}
@keyframes zenshi-working{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){#tf-status[aria-busy=true]::before{animation:none}}
