/* Lottie Previewer — sidebar + preview stage */

body.cr-lottie .cr-workspace {
    --cr-sidebar-w: clamp(260px, 24vw, 320px);
}

body.cr-lottie .preview-container.drag-over {
    outline: none;
}

body.cr-lottie .preview-container.drag-over .cr-stage-panel {
    border-color: rgba(244, 63, 94, 0.55);
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.15), var(--cr-shadow, 0 18px 44px rgba(0, 0, 0, 0.4));
}

body.cr-lottie #lottie-wrapper {
    position: relative;
    width: min(100%, 520px);
    max-width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    border: 1px solid rgba(251, 113, 133, 0.2);
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: inset 0 0 40px rgba(244, 63, 94, 0.05);
}

body.cr-lottie #placeholder-text {
    text-align: center;
    color: var(--cr-dim, #8a6574);
    padding: 1.5rem;
    z-index: 1;
}

body.cr-lottie #placeholder-text svg {
    stroke: var(--cr-pink, #fb7185);
    opacity: 0.75;
}

body.cr-lottie #placeholder-text p {
    margin: 0.75rem auto 0;
    max-width: 26ch;
    font-size: 0.9rem;
    color: var(--cr-muted, #c4a0ad);
    line-height: 1.5;
}

body.cr-lottie dotlottie-player,
body.cr-lottie #lottie-player {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}

body.cr-lottie .url-input-group {
    display: flex;
    flex-direction: column;
    gap: 0;
}

body.cr-lottie .custom-upload input {
    display: none;
}

body.cr-lottie .state-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

body.cr-lottie .details-grid {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

body.cr-lottie .detail-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(251, 113, 133, 0.1);
    font-size: 0.88rem;
}

body.cr-lottie .detail-item:last-child {
    border-bottom: none;
}

body.cr-lottie .detail-label {
    color: var(--cr-muted, #c4a0ad);
    font-weight: 500;
}

body.cr-lottie .detail-value {
    color: var(--cr-text, #fff1f5);
    font-family: var(--cr-mono, ui-monospace, monospace);
    font-weight: 600;
    font-size: 0.82rem;
    text-align: right;
}

[data-theme="light"] body.cr-lottie #lottie-wrapper {
    background: rgba(255, 255, 255, 0.7);
}

[data-theme="light"] body.cr-lottie .detail-value {
    color: #1f0a14;
}
