/* AIBackground pill: runs that keep going after the AI dialog is closed
   (myaccount-content-ai-background.js). Under the AI dialog (z-index 1100). */
.aibg-pill {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1090;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 0;
    border-radius: 999px;
    background: #16a34a;
    color: #fff;
    font: 600 13px/1.2 Inter, system-ui, sans-serif;
    box-shadow: 0 6px 20px rgba(15, 23, 42, .25);
    cursor: pointer;
}
.aibg-pill.aibg-running { background: #4f46e5; }
.aibg-pill.aibg-failed  { background: #dc2626; }
.aibg-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
}
.aibg-running .aibg-dot {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    animation: aibg-spin .9s linear infinite;
}
@keyframes aibg-spin { to { transform: rotate(360deg); } }
@media (max-width: 600px) {
    .aibg-pill { right: 12px; bottom: 76px; }
}
