/* Shared operation screen. All selectors are scoped to this component. */
.bgc-task-loading[hidden] { display: none !important; }
.bgc-task-loading {
    position: fixed; inset: 0; z-index: 10000;
    display: grid; place-items: center; box-sizing: border-box;
    min-height: 100vh; min-height: 100dvh; padding: 32px 24px;
    background: #fff; color: #6e687a; text-align: center;
    font: 400 13px/1.6 Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    isolation: isolate; cursor: progress;
}
.bgc-task-loading:focus { outline: none; }
.bgc-task-loading__content { display: grid; justify-items: center; width: min(100%, 360px); gap: 0; }
.bgc-task-loading__mark {
    display: grid; place-items: center; width: 80px; height: 80px;
    margin-bottom: 25px; border-radius: 50%;
    background: linear-gradient(145deg, #ba94ff 0%, #9d73fa 48%, #8352f1 100%);
    color: #fff; font: 600 43px/1 Poppins, Inter, sans-serif;
    box-shadow: 0 0 0 0 #8352f112;
    animation: bgc-loading-breathe 2.4s ease-in-out infinite;
}
.bgc-task-loading__message { max-width: 100%; margin: 0 0 11px; overflow-wrap: anywhere; font-size: 12px; font-weight: 400; }
.bgc-task-loading__percentage { margin: 0 0 6px; color: #8352f1; font-size: 11px; font-variant-numeric: tabular-nums; }
.bgc-task-loading__progress { position: relative; width: 132px; height: 3px; overflow: hidden; border-radius: 3px; background: #eeebf3; }
.bgc-task-loading__fill { position: absolute; inset: 0 auto 0 0; width: 40%; border-radius: inherit; background: #a679ff; animation: bgc-loading-glide 1.5s ease-in-out infinite; }
.bgc-task-loading__progress[data-determinate="true"] .bgc-task-loading__fill { animation: none; transform: none; transition: width .2s ease; }
.bgc-task-loading__footer { position: absolute; left: 24px; right: 24px; bottom: max(28px, env(safe-area-inset-bottom)); margin: 0; font-size: 10px; color: #99939f; }
.bgc-task-loading__slow { margin-top: 23px; font-size: 12px; color: #76707f; cursor: auto; }
.bgc-task-loading__slow[hidden], .bgc-task-loading__percentage[hidden] { display: none !important; }
.bgc-task-loading__slow p { margin: 0 0 10px; }
.bgc-task-loading__dismiss { display: inline-flex; align-items: center; justify-content: center; padding: 8px 14px; border: 1px solid #e4daf8; border-radius: 8px; background: #fff; color: #7243d4; font: inherit; cursor: pointer; }
.bgc-task-loading__dismiss:hover { background: #f8f4ff; }
.bgc-task-loading__dismiss:focus-visible { outline: 2px solid #8352f1; outline-offset: 3px; }
.bgc-loading-inline { display: grid; justify-items: center; gap: 12px; }
.bgc-loading-inline__mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(145deg,#ba94ff,#8352f1); color: #fff; font: 600 27px/1 Poppins,Inter,sans-serif; }
.bgc-loading-inline__track { position: relative; width: 100px; height: 3px; overflow: hidden; border-radius: 3px; background: #eeebf3; }
.bgc-loading-inline__track::after { content: ''; position: absolute; inset: 0 auto 0 0; width: 40%; background: #a679ff; animation: bgc-loading-glide 1.5s ease-in-out infinite; }
@keyframes bgc-loading-glide { 0% { transform: translateX(-110%); } 100% { transform: translateX(360%); } }
@keyframes bgc-loading-breathe { 0%,100% { box-shadow: 0 0 0 0 #8352f112; } 50% { box-shadow: 0 0 0 9px #8352f108; } }
@media (max-width: 480px) { .bgc-task-loading__mark { width: 68px; height: 68px; font-size: 37px; } }
@media (prefers-reduced-motion: reduce) {
    .bgc-task-loading__mark { animation: none; }
    .bgc-task-loading__fill, .bgc-loading-inline__track::after { animation: none; width: 40%; transform: translateX(75%); opacity: .65; }
    .bgc-task-loading__progress[data-determinate="true"] .bgc-task-loading__fill { transition: none; }
}
