/* Top progress bar */
  .om-top-progress{
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 4px;
    opacity: 0;
    pointer-events: none;
    z-index: 1100;
    transition: opacity .18s ease;
    background: rgba(var(--bs-body-color-rgb), .14); /* track */
  }
  .om-top-progress.is-active{ opacity: 1; }
  .om-top-progress-bar{
    height: 100%;
    width: 0%;
    transition: width .22s ease;
    background: var(--bs-primary); /* the actual bar */
  }

   /* Blocking overlay: solid background, theme-aware, minimal */
  .om-blocking-overlay{
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1095;

    background: var(--bs-body-bg);
    color: var(--bs-body-color);
  }
  .om-blocking-overlay.is-active{ display: flex; }

  .om-blocking-content{
    width: min(520px, 92vw);
    text-align: center;
    padding: 1.25rem;
  }
  .om-blocking-percent{
    font-weight: 700;
    letter-spacing: .5px;
    font-size: clamp(2.25rem, 7vw, 3.25rem);
    line-height: 1.05;
  }
  .om-blocking-current{
    margin-top: .35rem;
    font-size: .95rem;
    color: var(--bs-secondary-color);
    overflow-wrap: anywhere;
  }
  .om-blocking-error{
    display: none;
    margin-top: 1rem;
    padding: .75rem;
    border-radius: .75rem;
    text-align: left;
    white-space: pre-wrap;

    background: rgba(var(--bs-danger-rgb), .12);
    border: 1px solid rgba(var(--bs-danger-rgb), .35);
    color: var(--bs-danger-text-emphasis);
  }
  .om-blocking-error.is-active{ display: block; }
