:root { --operation-status-height: 48px; }
.has-operation-status { scroll-padding-bottom: calc(var(--operation-status-height) + 16px); }
.has-operation-status body { padding-bottom: var(--operation-status-height); }
.has-operation-status .onboarding-case-command-bar { bottom: var(--operation-status-height); }
.has-operation-status .sign-toast { bottom: calc(24px + var(--operation-status-height)); }
.has-operation-status .modal { bottom: var(--operation-status-height); }
.has-operation-status .candidate-preview { bottom: var(--operation-status-height); }
.has-operation-status .candidate-preview-card { max-height: calc(100dvh - var(--operation-status-height) - 44px); }
@media (min-width: 861px) {
  .has-operation-status .primary-nav { bottom: var(--operation-status-height); height: calc(100dvh - var(--operation-status-height)); max-height: calc(100dvh - var(--operation-status-height)); }
}
@media (max-width: 860px) {
  .has-operation-status:has(#appRoot:not(.hidden)) { scroll-padding-bottom: calc(var(--operation-status-height) + var(--operation-navigation-height, 72px) + 16px); }
  .has-operation-status:has(#appRoot:not(.hidden)) body { padding-bottom: calc(var(--operation-status-height) + var(--operation-navigation-height, 72px)); }
  .has-operation-status .primary-nav { bottom: var(--operation-status-height); }
  .has-operation-status .onboarding-case-command-bar { bottom: calc(var(--operation-navigation-height, 72px) + var(--operation-status-height)); }
}
.operation-status { position: fixed; inset: auto 0 0; z-index: 3100; min-height: 48px; box-sizing: border-box; display: flex; align-items: center; gap: 12px; padding: 8px 20px calc(8px + env(safe-area-inset-bottom)); background: #f7fbfa; color: #1b383e; border-top: 1px solid #bbd2cf; box-shadow: 0 -3px 15px #102f3610; font-family: Inter, sans-serif; font-size: 12px; line-height: 1.35; }
.operation-status * { box-sizing: border-box; }
/* Passive status text must not intercept actions in a scrolling workspace. */
.operation-status { pointer-events: none; }
.operation-status button, .operation-status-history { pointer-events: auto; }
.operation-status-icon { flex: 0 0 8px; width: 8px; height: 8px; background: #65877d; border-radius: 50%; }
.operation-status[data-state="running"] .operation-status-icon { background: #087c82; box-shadow: 0 0 0 4px #087c8218; }
.operation-status[data-state="failed"] { border-top-color: #d49c9b; background: #fff7f6; }
.operation-status[data-state="failed"] .operation-status-icon { background: #b63236; }
.operation-status[data-state="complete"] .operation-status-icon { background: #258359; }
.operation-status[data-state="queued"] .operation-status-icon { background: #b47118; }
.operation-status[data-state="warning"] { background: #fffaf0; border-top-color: #d7b779; }
.operation-status[data-state="warning"] .operation-status-icon { background: #b47118; }
.operation-status-copy { display: flex; gap: 12px; flex: 1 1 260px; min-width: 0; align-items: baseline; }
.operation-status-copy strong { font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.operation-status-copy > span { color: #526a70; overflow-wrap: anywhere; }
.operation-status-meter { flex: 0 1 150px; height: 4px; overflow: hidden; border-radius: 4px; background: #d6e6e3; }
.operation-status-meter > span { display: block; height: 100%; width: 35%; background: #087c82; }
.operation-status-meter:not([aria-valuenow]) > span { animation: operation-status-wait 1.6s ease-in-out infinite alternate; }
.operation-status-meter[hidden], .operation-status-history[hidden] { display: none; }
.operation-status-count, .operation-status-elapsed { flex: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.operation-status-count { color: #115e60; font-weight: 600; }
.operation-status-toggle { flex: none; min-height: 32px; padding: 6px 10px; font: 600 12px Inter, sans-serif; color: #1b5458; background: #fff; border: 1px solid #bbd2cf; border-radius: 7px; cursor: pointer; box-shadow: none; }
.operation-status-toggle:focus-visible { outline: 2px solid #087c82; outline-offset: 3px; }
.operation-status-history { position: absolute; right: 12px; bottom: calc(100% + 8px); width: min(520px, calc(100vw - 24px)); max-height: min(440px, 60dvh); overflow: auto; overscroll-behavior: contain; padding: 10px 14px; background: #fff; border: 1px solid #bfd5d0; border-radius: 12px; box-shadow: 0 10px 36px #102f3626; }
.operation-status-history-item { display: grid; gap: 4px; padding: 10px 0; border-bottom: 1px solid #e1ebe8; }
.operation-status-history-item span { color: #526a70; }
.operation-status-history-item:last-child { border-bottom: none; }
.operation-status-announcement { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
@keyframes operation-status-wait { from { transform: translateX(-60%); } to { transform: translateX(260%); } }
@media (max-width: 780px) {
  .operation-status { padding-inline: 12px; gap: 8px; }
  .operation-status-copy { display: grid; gap: 2px; flex-basis: 170px; }
  .operation-status-meter { flex-basis: 70px; }
}
@media (max-width: 480px) { .operation-status-meter { display: none; } .operation-status-elapsed { display: none; } .operation-status-copy strong, .operation-status-copy > span { font-size: 11px; } }
@media (prefers-reduced-motion: reduce) { .operation-status-meter:not([aria-valuenow]) > span { animation: none; width: 100%; opacity: .5; } }
