/* ==========================================================================
   AI Suggestion Processing dialog (global).
   ========================================================================== */

.ai-proc-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(7, 17, 30, 0.45);
    z-index: 540;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.ai-proc-backdrop.ai-proc-backdrop--open {
    opacity: 1;
    pointer-events: auto;
}

.ai-proc-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.96);
    width: min(calc(100vw - 32px), 440px);
    z-index: 550;
    background: var(--white);
    border: 1.5px solid rgba(26, 172, 232, 0.2);
    border-radius: 14px;
    padding: 22px 22px 18px;
    box-shadow:
        0 24px 60px rgba(7, 17, 30, 0.25),
        0 6px 20px rgba(7, 17, 30, 0.1);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.ai-proc-modal.ai-proc-modal--open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.ai-proc-track {
    height: 3px;
    background: var(--surface2);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 18px;
}

.ai-proc-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--teal), var(--blue));
    border-radius: 2px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-proc-steps {
    display: flex;
    flex-direction: column;
}

.ai-proc-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--ghost);
    padding: 4px 0;
    transition: color 0.25s, font-weight 0.25s;
}

.ai-proc-step.is-active {
    color: var(--ink);
    font-weight: 500;
}

.ai-proc-step.is-done {
    color: var(--teal);
}

.ai-proc-step-ic {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
}

.ai-proc-spin {
    width: 13px;
    height: 13px;
    border: 1.5px solid rgba(26, 172, 232, 0.2);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: aiProcSpin 0.7s linear infinite;
}

@keyframes aiProcSpin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .ai-proc-fill { transition: none; }
    .ai-proc-spin { animation: none; border-top-color: rgba(26, 172, 232, 0.4); }
}
