.crm-activity[hidden], .crm-activity [hidden] { display: none !important; }
.reference-ui .crm-workspace-bar { gap: 12px; }
.crm-workspace-status { display: flex; align-items: center; gap: 12px; flex: 1.7 1 450px; min-width: 0; }
.reference-ui .crm-workspace-status .portal-notice-ticker { flex: 1 1 260px; max-width: 310px; }
.crm-activity-slot { position: relative; flex: 1 1 210px; min-width: 150px; max-width: 340px; height: 28px; color: #fff; }
.crm-activity { position: absolute; inset: 0; pointer-events: none; }
.crm-activity-line { position: absolute; inset: auto 0 0; height: 2px; overflow: hidden; background: rgb(255 255 255 / 10%); }
.crm-activity-line i { display: block; width: 35%; height: 100%; background: rgb(255 255 255 / 80%); animation: crm-activity-travel 1.4s ease-in-out infinite; will-change: transform; }
.crm-activity-notice { position: absolute; inset: 0; width: max-content; max-width: 100%; height: 28px; margin: auto; padding: 4px 10px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 4px; background: transparent; color: inherit; font-family: inherit; font-size: var(--crm-text-meta, 12px); font-weight: 400; line-height: 1.6; pointer-events: none; animation: crm-activity-appear .18s ease-out; }
.crm-activity-copy { min-width: 0; text-align: left; pointer-events: auto; }
.crm-activity-copy strong { display: block; font: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crm-activity-copy p { font: inherit; color: inherit; opacity: .9; margin: 0; }
.crm-activity-slot .crm-activity-copy p { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.crm-activity-notice button { flex: 0 0 20px; width: 20px; height: 20px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 4px; background: transparent; color: inherit; line-height: 1; pointer-events: auto; opacity: .8; }
.crm-activity-notice button:hover { background: rgb(255 255 255 / 14%); opacity: 1; }
.crm-activity-notice button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.crm-activity-spinner { display: inline-block; flex: 0 0 18px; width: 18px; height: 18px; margin-top: 3px; border: 2px solid #f2dbe2; border-top-color: #bd2443; border-radius: 50%; animation: crm-activity-spin .85s linear infinite; }
.crm-activity-notice > .crm-activity-spinner { flex-basis: 12px; width: 12px; height: 12px; margin-top: 0; border-color: rgb(255 255 255 / 30%); border-top-color: currentColor; }
.crm-activity[data-state="error"] .crm-activity-line, .crm-activity[data-state="complete"] .crm-activity-line { display: none; }
.crm-activity[data-state="error"] .crm-activity-notice > .crm-activity-spinner { animation: none; border-color: currentColor; border-radius: 3px; }
.crm-activity[data-state="complete"] .crm-activity-notice > .crm-activity-spinner { animation: none; width: 13px; height: 8px; flex-basis: 13px; border: solid currentColor; border-width: 0 0 2px 2px; border-radius: 0; transform: rotate(-45deg); }
.crm-activity-standalone { position: fixed; inset: 12px 12px auto; height: 78px; z-index: 1080; color: #38465a; }
.crm-activity-standalone .crm-activity-notice { max-width: min(560px, 100%); height: max-content; padding: 8px 12px; border: 1px solid #e4e7ef; border-radius: 6px; background: #fff; box-shadow: 0 3px 14px rgb(35 40 50 / 10%); }
.crm-activity-standalone .crm-activity-line { display: none; }
.crm-activity-standalone .crm-activity-notice > .crm-activity-spinner { border-color: #f2dbe2; border-top-color: #bd2443; }
.crm-inline-activity { display: flex; gap: 10px; align-items: center; padding: 10px 18px; margin: 0; min-height: 42px; font-size: 14px; line-height: 1.5; color: #8c2f47; background: #fff5f7; }
.crm-inline-activity .crm-activity-spinner { margin-top: 0; }
.crm-inline-activity[data-state="slow"] { color: #8c6031; background: #fff8ed; }
.crm-native-loading button[type="submit"] { cursor: progress; }
@keyframes crm-activity-spin { to { transform: rotate(360deg); } }
@keyframes crm-activity-travel { from { transform: translateX(-100%); } to { transform: translateX(385%); } }
@keyframes crm-activity-appear { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 991px) { .crm-activity-notice { gap: 7px; } }
@media (max-width: 767px) {
  .reference-ui .crm-workspace-bar { gap: 8px; }
  .reference-ui .crm-workspace-path { max-width: 28%; min-width: 0; overflow: hidden; }
  .reference-ui .crm-workspace-path > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .crm-workspace-status { flex: 1 1 0; gap: 0; }
  .crm-activity-slot { flex: 1 1 0; min-width: 0; max-width: none; }
  .crm-activity-notice { padding-inline: 6px; gap: 5px; }
  .reference-ui .crm-workspace-tools { flex-shrink: 0; }
  .reference-ui .crm-workspace-tools .crm-workspace-command span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .crm-activity-spinner, .crm-activity-notice { animation: none; }
  .crm-activity-line i { animation: none; width: 100%; opacity: .6; }
}
@media print { .crm-activity-slot, .crm-activity { display: none !important; } }
