/* A single light band travels through the letters from left to right. */
.ai-thinking-text,
.ai-image-loader-text,
.study-generation-inline-stage,
.logicum-generation-status {
    color: var(--text-secondary, #9399a3) !important;
    animation: none !important;
    text-shadow: none !important;
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
    .ai-thinking-text,
.ai-image-loader-text,
.study-generation-inline-stage,
.logicum-generation-status {
        background-image: linear-gradient(100deg,
            var(--text-secondary, #9399a3) 43%,
            var(--text-primary, #f2f3f5) 50%,
            var(--text-secondary, #9399a3) 57%);
        background-size: 300% 100%;
        background-position: 100% 0;
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent !important;
        -webkit-text-fill-color: transparent;
        animation: logicumGenerationGlint 2.2s linear infinite !important;
    }
}

@keyframes logicumGenerationGlint {
    0% { background-position: 100% 0; }
    80%, 100% { background-position: 0% 0; }
}

.logicum-corner-handoff::before,
.logicum-corner-handoff::after {
    visibility: hidden !important;
}

/* The handoff already supplies the entrance motion; avoid moving its target. */
.logicum-generation-arrived {
    animation: none !important;
}

.study-workspace .study-message.is-pending {
    width: auto;
    max-width: 100%;
}

.study-workspace .study-message.is-pending .study-message-copy {
    display: block;
}

.study-workspace .study-message.is-pending::after {
    display: none;
    content: none;
    animation: none;
}

.logicum-generation-corner {
    position: absolute;
    pointer-events: none;
    z-index: 2;
    box-sizing: content-box;
    transform-origin: 0 0;
}

@media (prefers-reduced-motion: reduce) {
    .ai-thinking-text,
.ai-image-loader-text,
.study-generation-inline-stage,
.logicum-generation-status {
        animation: none !important;
        background: none;
        color: var(--text-secondary, #9399a3) !important;
        -webkit-text-fill-color: currentColor;
    }
}
