/* MCS ICT v3.9 — copy studio and refresh control */
.mcs-refresh-toggle{display:inline-flex;align-items:center;gap:7px;flex-shrink:0;padding:8px 12px;background:color-mix(in srgb,var(--d-surface) 83%,transparent);border:1px solid var(--d-border);border-radius:9px;color:var(--d-text);font-size:11px;font-weight:650;cursor:pointer}
.mcs-refresh-toggle[hidden]{display:none!important}.mcs-refresh-toggle:hover{border-color:var(--d-accent)}.mcs-refresh-toggle.is-paused{color:var(--d-accent);border-color:var(--d-accent)}.mcs-refresh-toggle-icon{font-size:14px;color:var(--d-accent)}
.mcs-copy-preview{display:flex;flex-direction:column;gap:8px;min-height:500px;width:100%}.mcs-copy-preview[hidden]{display:none!important}.mcs-copy-preview-caption{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px;color:var(--d-muted);font-size:11px}.mcs-copy-frame-wrap{position:relative;overflow:auto;border-radius:13px;border:1px solid var(--d-border);background:var(--d-bg);min-height:460px;max-height:68vh}.mcs-copy-frame-viewport{position:relative;margin:0 auto}.mcs-copy-frame{position:absolute;top:0;left:0;transform-origin:top left;border:0;background:var(--d-bg)}
.mcs-copy-editor-fields{display:grid;gap:10px;margin-top:13px;padding:12px;border:1px solid var(--d-border);border-radius:12px;background:color-mix(in srgb,var(--d-surface) 85%,transparent)}.mcs-copy-editor-fields>strong{font-size:13px;color:var(--d-accent)}.mcs-copy-editor-fields small{font-size:11px;line-height:1.5;color:var(--d-muted);overflow-wrap:anywhere}.mcs-copy-editor-fields label{display:grid;gap:7px;font-size:12px;color:var(--d-text)}.mcs-copy-editor-fields textarea{font:inherit;resize:vertical;min-height:70px;width:100%;background:var(--d-bg);border:1px solid var(--d-border);border-radius:10px;padding:10px;color:var(--d-text)}.mcs-copy-edit-actions{display:flex;flex-wrap:wrap;gap:5px}.mcs-copy-edit-actions .d-btn{font-size:11px}
body.mcs-page-idle .ict-orbit,body.mcs-page-idle .ict-satellite,body.mcs-page-idle .ict-form-icon,body.mcs-page-idle .ict-auth-shell::before{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){.ict-orbit,.ict-satellite,.ict-form-icon,.ict-login-submit:before{animation:none!important}}
@media(max-width:960px){.mcs-refresh-toggle{padding:7px 9px}.mcs-refresh-toggle #mcsRefreshToggleLabel{display:none}}
body.mcs-copy-studio #dStudio .d-preview-head,body.mcs-copy-studio #dStudio .d-preview-note,body.mcs-copy-studio #dStudio .d-stage{display:none!important}
body.mcs-copy-studio #dStudio .mcs-copy-preview{display:flex!important}

/* iframe real-screen snapshot: external stylesheet to satisfy strict CSP */
body.mcs-copy-snapshot{overflow:auto!important}
body.mcs-copy-snapshot.ict-locked .app-shell{display:none!important}
body.mcs-copy-snapshot:not(.ict-locked) .ict-auth-shell{display:none!important}
body.mcs-copy-snapshot .page{display:none!important}
body.mcs-copy-snapshot .page.mcs-copy-visible{display:block!important}
body.mcs-copy-snapshot .ict-modal-backdrop:not(.mcs-copy-modal){display:none!important}
body.mcs-copy-snapshot .ict-modal-backdrop.mcs-copy-modal{display:flex!important}
body.mcs-copy-snapshot .d-studio,body.mcs-copy-snapshot .toast,body.mcs-copy-snapshot #ictBootCover{display:none!important}
body.mcs-copy-snapshot [data-mcs-copy-key],body.mcs-copy-snapshot [data-mcs-copy-placeholder]{cursor:crosshair!important;outline:1px dashed transparent;outline-offset:2px;transition:outline-color .12s}
body.mcs-copy-snapshot [data-mcs-copy-key]:hover,body.mcs-copy-snapshot [data-mcs-copy-placeholder]:hover{outline-color:#6beedd!important;background:rgba(107,238,221,.12)!important}
body.mcs-copy-snapshot .mcs-copy-highlight{outline:3px solid #6beedd!important;outline-offset:2px!important}
body.mcs-copy-snapshot *{animation-play-state:paused!important}
