/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-w2qw0v2iwb],
.components-reconnect-repeated-attempt-visible[b-w2qw0v2iwb],
.components-reconnect-failed-visible[b-w2qw0v2iwb],
.components-pause-visible[b-w2qw0v2iwb],
.components-resume-failed-visible[b-w2qw0v2iwb],
.components-rejoining-animation[b-w2qw0v2iwb] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-w2qw0v2iwb],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-w2qw0v2iwb],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-w2qw0v2iwb],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-w2qw0v2iwb],
#components-reconnect-modal.components-reconnect-retrying[b-w2qw0v2iwb],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-w2qw0v2iwb],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-w2qw0v2iwb],
#components-reconnect-modal.components-reconnect-failed[b-w2qw0v2iwb],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-w2qw0v2iwb] {
    display: block;
}


#components-reconnect-modal[b-w2qw0v2iwb] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-w2qw0v2iwb 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-w2qw0v2iwb 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-w2qw0v2iwb 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-w2qw0v2iwb]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-w2qw0v2iwb 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-w2qw0v2iwb {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-w2qw0v2iwb {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-w2qw0v2iwb {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-w2qw0v2iwb] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-w2qw0v2iwb] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-w2qw0v2iwb] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-w2qw0v2iwb] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-w2qw0v2iwb] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-w2qw0v2iwb] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-w2qw0v2iwb] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-w2qw0v2iwb 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-w2qw0v2iwb] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-w2qw0v2iwb {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Shared/ImageCropDialog.razor.rz.scp.css */
.icd-backdrop[b-daqnhzynlz] {
    position: fixed; inset: 0; z-index: 20100;
    display: flex; align-items: flex-end; justify-content: center;
    padding: 12px; background: rgba(15, 23, 42, .5); backdrop-filter: blur(4px);
    animation: icd-fade-b-daqnhzynlz .16s ease-out;
}
@media (min-width: 640px) {
    .icd-backdrop[b-daqnhzynlz] { align-items: center; padding: 24px; }
}
@keyframes icd-fade-b-daqnhzynlz { from { opacity: 0; } to { opacity: 1; } }
@keyframes icd-spin-b-daqnhzynlz { to { transform: rotate(360deg); } }

.icd-panel[b-daqnhzynlz] {
    display: flex; flex-direction: column; width: 100%; max-height: 92dvh; overflow: hidden;
    background: #fff; color: #1e293b; border-radius: 16px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .28);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
}
.icd-head[b-daqnhzynlz] {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
    padding: 16px 20px 12px; border-bottom: 1px solid #f1f5f9; flex-shrink: 0;
}
.icd-head-text[b-daqnhzynlz] { min-width: 0; }
.icd-title[b-daqnhzynlz] { margin: 0; font-size: 15.5px; font-weight: 700; color: #0f172a; }
.icd-sub[b-daqnhzynlz] { margin: 3px 0 0; font-size: 12.5px; line-height: 1.5; color: #64748b; }
.icd-x[b-daqnhzynlz] {
    display: inline-flex; padding: 6px; border-radius: 9px; border: none; background: transparent;
    color: #94a3b8; cursor: pointer; flex-shrink: 0;
}
.icd-x svg[b-daqnhzynlz] { width: 20px; height: 20px; }
.icd-x:hover:not(:disabled)[b-daqnhzynlz] { background: #f1f5f9; color: #475569; }

.icd-body[b-daqnhzynlz] { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 20px; overscroll-behavior: contain; }

.icd-frame[b-daqnhzynlz] {
    position: relative; margin: 0 auto; overflow: hidden; border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .12);
}
.icd-stage[b-daqnhzynlz] {
    position: absolute; inset: 0; overflow: hidden;
    background:
        linear-gradient(45deg, #e2e8f0 25%, transparent 25%),
        linear-gradient(-45deg, #e2e8f0 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #e2e8f0 75%),
        linear-gradient(-45deg, transparent 75%, #e2e8f0 75%);
    background-color: #f8fafc; background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    cursor: grab; touch-action: none; user-select: none;
}
.icd-stage.is-dragging[b-daqnhzynlz] { cursor: grabbing; }
.icd-stage[b-daqnhzynlz]  img {
    position: absolute; top: 0; left: 0; max-width: none; transform-origin: 0 0; pointer-events: none;
}

/* 三分线辅助构图；圆形模式下改为暗化圆外区域 */
.icd-mask[b-daqnhzynlz] {
    position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
    background:
        linear-gradient(to right, transparent calc(33.333% - .5px), rgba(255, 255, 255, .55) calc(33.333% - .5px), rgba(255, 255, 255, .55) calc(33.333% + .5px), transparent calc(33.333% + .5px), transparent calc(66.666% - .5px), rgba(255, 255, 255, .55) calc(66.666% - .5px), rgba(255, 255, 255, .55) calc(66.666% + .5px), transparent calc(66.666% + .5px)),
        linear-gradient(to bottom, transparent calc(33.333% - .5px), rgba(255, 255, 255, .55) calc(33.333% - .5px), rgba(255, 255, 255, .55) calc(33.333% + .5px), transparent calc(33.333% + .5px), transparent calc(66.666% - .5px), rgba(255, 255, 255, .55) calc(66.666% - .5px), rgba(255, 255, 255, .55) calc(66.666% + .5px), transparent calc(66.666% + .5px));
    opacity: .7;
}
.icd-mask.is-round[b-daqnhzynlz] {
    background: none; opacity: 1; border-radius: 50%;
    box-shadow: 0 0 0 9999px rgba(15, 23, 42, .45), inset 0 0 0 2px rgba(255, 255, 255, .9);
}

.icd-tools[b-daqnhzynlz] { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.icd-zoom-icon[b-daqnhzynlz] { width: 17px; height: 17px; color: #94a3b8; flex-shrink: 0; }
.icd-range[b-daqnhzynlz] { flex: 1; min-width: 0; accent-color: #4f46e5; cursor: pointer; }
.icd-error[b-daqnhzynlz] { margin: 8px 0 0; font-size: 12.5px; color: #ef4444; }

.icd-foot[b-daqnhzynlz] {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 20px; border-top: 1px solid #f1f5f9; flex-shrink: 0;
}
.icd-foot-spacer[b-daqnhzynlz] { flex: 1; }

.icd-btn[b-daqnhzynlz] {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 36px; padding: 0 16px; border-radius: 9px; font-size: 13px; font-weight: 550;
    cursor: pointer; border: 1px solid transparent; white-space: nowrap; line-height: 1;
    transition: all .18s;
}
.icd-btn:disabled[b-daqnhzynlz] { opacity: .55; cursor: not-allowed; }
.icd-btn-sm[b-daqnhzynlz] { height: 30px; padding: 0 12px; font-size: 12.5px; border-radius: 8px; }
.icd-btn-ghost[b-daqnhzynlz] { background: #fff; border-color: #e2e8f0; color: #334155; }
.icd-btn-ghost:hover:not(:disabled)[b-daqnhzynlz] { border-color: #c7d2fe; color: #4f46e5; background: #eef2ff; }
.icd-btn-text[b-daqnhzynlz] { padding: 0 6px; background: transparent; color: #64748b; }
.icd-btn-text:hover:not(:disabled)[b-daqnhzynlz] { color: #4f46e5; }
.icd-btn-primary[b-daqnhzynlz] {
    background: #4f46e5; color: #fff; padding: 0 18px;
    box-shadow: 0 1px 2px rgba(79, 70, 229, .25), 0 4px 12px rgba(79, 70, 229, .18);
}
.icd-btn-primary:hover:not(:disabled)[b-daqnhzynlz] { background: #4338ca; }
.icd-spinner[b-daqnhzynlz] {
    width: 14px; height: 14px; border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff;
    animation: icd-spin-b-daqnhzynlz .6s linear infinite;
}

.dark .icd-panel[b-daqnhzynlz] { background: #0f172a; color: #e2e8f0; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.dark .icd-head[b-daqnhzynlz], .dark .icd-foot[b-daqnhzynlz] { border-color: #1e293b; }
.dark .icd-title[b-daqnhzynlz] { color: #f1f5f9; }
.dark .icd-sub[b-daqnhzynlz] { color: #94a3b8; }
.dark .icd-x:hover:not(:disabled)[b-daqnhzynlz] { background: #1e293b; color: #e2e8f0; }
.dark .icd-stage[b-daqnhzynlz] { background-color: #1e293b; }
.dark .icd-btn-ghost[b-daqnhzynlz] { background: #1e293b; border-color: #334155; color: #cbd5e1; }
.dark .icd-btn-ghost:hover:not(:disabled)[b-daqnhzynlz] { background: #312e81; border-color: #4338ca; color: #e0e7ff; }

@media (prefers-reduced-motion: reduce) {
    .icd-backdrop[b-daqnhzynlz], .icd-spinner[b-daqnhzynlz] { animation: none; }
}
