/* Conveyor animation CSS — extracted from management-systems.css.
   Scoped under .pb-conveyor so multiple instances + coexistence with MS page are safe. */
.pb-conveyor .ms-conveyor {
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    padding: 28px 0 24px;
    overflow: hidden;
    border-radius: 20px;
    margin: 0;
}
.pb-conveyor .ms-conveyor-header {
    text-align: center;
    margin-bottom: 16px;
}
.pb-conveyor .ms-conveyor-header h3 {
    color: #e0e7ff;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.pb-conveyor .ms-conveyor-header p {
    color: #a5b4fc;
    font-size: 1.35rem;
    margin-top: 0;
    line-height: 1.5;
}
.pb-conveyor .conv-scene {
    max-width: 740px;
    margin: 0 auto;
    height: 120px;
    position: relative;
}
.pb-conveyor .conv-belt {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    height: 24px;
    background: rgba(0,0,0,0.25);
    border-radius: 6px;
    overflow: hidden;
}
.pb-conveyor .conv-belt-inner {
    height: 100%;
    width: 200%;
    background: repeating-linear-gradient(90deg, rgba(139,92,246,0.15) 0, rgba(139,92,246,0.15) 26px, rgba(139,92,246,0.35) 26px, rgba(139,92,246,0.35) 28px);
    animation: beltMove 1s linear infinite;
}
@keyframes beltMove {
    to { transform: translateX(-28px); }
}
.pb-conveyor .conv-belt.active .conv-belt-inner {
    animation-duration: 0.35s;
}
.pb-conveyor .conv-docs {
    position: absolute;
    bottom: 44px;
    left: 0;
    right: 0;
    height: 70px;
}
.pb-conveyor .conv-doc {
    position: absolute;
    width: 42px;
    height: 58px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.48rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
}
.pb-conveyor .conv-doc.manual {
    background: rgba(139,92,246,0.08);
    border: 1px solid rgba(139,92,246,0.2);
    color: #c4b5fd;
}
.pb-conveyor .conv-doc.ai {
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
    border: 1px solid #c4b5fd;
    color: #fff;
    box-shadow: 0 0 20px rgba(139,92,246,0.6), 0 0 40px rgba(139,92,246,0.2);
}
.pb-conveyor .conv-doc.show { opacity: 1; }
.pb-conveyor .conv-doc.done { opacity: 0; transform: translateY(-30px); }
.pb-conveyor .conv-toggle {
    max-width: 300px;
    margin: 0 auto 12px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    height: 32px;
    background: rgba(165,180,252,0.1);
    transition: background 0.6s;
}
.pb-conveyor .conv-toggle.on { background: rgba(74,222,128,0.2); }
.pb-conveyor .conv-toggle-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 600;
    color: #818cf8;
    transition: opacity 0.3s, transform 0.5s;
}
.pb-conveyor .conv-toggle.on .conv-toggle-label { color: #4ade80; }
.pb-conveyor .conv-toggle-label.old { opacity: 1; transform: translateX(0); }
.pb-conveyor .conv-toggle.on .conv-toggle-label.old { opacity: 0; transform: translateX(60px); }
.pb-conveyor .conv-toggle-label.new { opacity: 0; transform: translateX(-60px); }
.pb-conveyor .conv-toggle.on .conv-toggle-label.new { opacity: 1; transform: translateX(0); }
.pb-conveyor .conv-toggle-pill {
    position: absolute;
    left: 4px;
    top: 3px;
    width: 40px;
    height: 26px;
    border-radius: 13px;
    background: rgba(165,180,252,0.25);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.pb-conveyor .conv-toggle.on .conv-toggle-pill {
    left: calc(100% - 44px);
}

/* responsive — scoped */
    .pb-conveyor .ms-conveyor { border-radius: 14px; padding: 24px 12px; }
    .pb-conveyor .ms-conveyor-header { margin-bottom: 20px; padding: 0 4px; }
    .pb-conveyor .ms-conveyor-header p { font-size: 0.88rem; line-height: 1.4; }
    .pb-conveyor .conv-scene { height: 120px; margin: 0 6px; max-width: 100%; }
    .pb-conveyor .conv-doc { width: 30px; height: 42px; font-size: 0.4rem; }
    .pb-conveyor .conv-belt { height: 18px; bottom: 16px; left: 0; right: 0; }
    .pb-conveyor .conv-docs { bottom: 38px; height: 60px; left: 0; right: 0; }
    .pb-conveyor .conv-toggle { max-width: 240px; height: 28px; }
    .pb-conveyor .conv-toggle-pill { width: 34px; height: 22px; top: 3px; left: 3px; }
    .pb-conveyor .conv-toggle.on .conv-toggle-pill { left: calc(100% - 37px); }
    .pb-conveyor .conv-toggle-label { font-size: 0.7rem; }
    .pb-conveyor .ms-conveyor-header p { font-size: 0.82rem; }
    .ms-section-header h2 { font-size: 1.25rem; }
    .pb-conveyor .conv-scene { height: 100px; margin: 0 4px; }
    .pb-conveyor .conv-doc { width: 26px; height: 36px; font-size: 0.36rem; }
    .pb-conveyor .conv-belt { height: 14px; bottom: 12px; }
    .pb-conveyor .conv-docs { bottom: 30px; height: 50px; }
