.yp-activity[hidden] { display: none; }
.yp-activity {
    position: fixed;
    z-index: 2147483647;
    inset-block-start: max(8px, env(safe-area-inset-top));
    inset-inline: 0;
    width: max-content;
    max-width: calc(100% - 24px);
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .55rem .9rem;
    border: 1px solid #d6e1db;
    border-radius: 999px;
    background: #fff;
    color: #18251d;
    box-shadow: 0 4px 16px #0003;
    font-size: .875rem;
    line-height: 1.5;
    pointer-events: none;
}
[data-theme="dark"] .yp-activity {
    background: #202822;
    color: #f6faf7;
    border-color: #506256;
}
.yp-activity__spinner {
    flex: none;
    width: 1rem;
    height: 1rem;
    border: 2px solid currentColor;
    border-inline-end-color: transparent;
    border-radius: 50%;
    animation: yp-activity-spin .7s linear infinite;
}
@keyframes yp-activity-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .yp-activity__spinner { animation: none; }
}

.yp-activity__status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
