:is(#free-motion-options,.fm-scope)[hidden],#free-motion-preview[hidden]{display:none!important}
:is(#free-motion-options,.fm-scope){margin:16px 0}:is(#free-motion-options,.fm-scope) .fm-intro{font-size:14px;font-weight:600;line-height:1.8}:is(#free-motion-options,.fm-scope) small,:is(#free-motion-options,.fm-scope) .muted{font-size:12px;color:#888;line-height:1.7;font-weight:400}
:is(#free-motion-options,.fm-scope) details{border:1px solid #eee2d9;border-radius:10px;margin:10px 0;background:#fff}:is(#free-motion-options,.fm-scope) summary{padding:14px;cursor:pointer;font-size:14px;font-weight:600;color:#684934}:is(#free-motion-options,.fm-scope) .fm-section{padding:0 14px 14px}:is(#free-motion-options,.fm-scope) .row{display:flex;gap:12px;flex-wrap:wrap}:is(#free-motion-options,.fm-scope) label{display:block;flex:1;min-width:130px;margin:10px 0;font-size:13px}:is(#free-motion-options,.fm-scope) input:not([type=checkbox]):not([type=color]),:is(#free-motion-options,.fm-scope) select{display:block;width:100%;margin-top:7px}:is(#free-motion-options,.fm-scope) input[type=text],:is(#free-motion-options,.fm-scope) select{padding:9px;border:1px solid #ddd;border-radius:7px;background:#fff}:is(#free-motion-options,.fm-scope) .check{display:flex;align-items:center;gap:6px}:is(#free-motion-options,.fm-scope) button{padding:7px 11px;margin:4px 6px 4px 0;border:1px solid #e3d4c9;border-radius:7px;background:#fff;color:#805635;cursor:pointer}:is(#free-motion-options,.fm-scope) button[aria-pressed=true]{background:#fff0e7;border-color:#e88955}:is(#free-motion-options,.fm-scope) .caption-preview{padding:14px;background:#292832;border-radius:8px;text-align:center;overflow:hidden}:is(#free-motion-options,.fm-scope) [hidden]{display:none!important}:is(#free-motion-options,.fm-scope) output{float:right}:is(#free-motion-options,.fm-scope) article{border-bottom:1px solid #eee;padding:10px 0}
#free-motion-preview{position:absolute;inset:0;overflow:hidden;background:#111922}#free-motion-preview .fm-preview-note{position:absolute;bottom:1%;width:100%;text-align:center;color:#ddd;font-size:9px;line-height:1.4;margin:0;z-index:4;pointer-events:none}
#free-motion-preview .layout-preview{width:270px;max-width:100%;aspect-ratio:9/16;margin:24px auto 12px;position:relative;overflow:hidden;background:radial-gradient(ellipse at 70% 45%,#293849,#111922 65%);border-radius:10px;color:#fff}
#free-motion-preview .layout-title{position:absolute;left:6.667%;top:13.75%;width:86.666%;height:7.5%;font-size:14.5px;font-weight:700;line-height:1.2;display:flex;flex-direction:column;justify-content:center;overflow:hidden}
#free-motion-preview .layout-progress{position:absolute;left:6.667%;top:22.4%;width:86.666%;display:flex;gap:3px;font-size:7px;color:#e8d09e}
#free-motion-preview .layout-progress span{flex:1;text-align:center;padding-bottom:6px;border-bottom:2px solid #75828a}
#free-motion-preview .layout-progress span:first-child{border-color:#e8d09e}
#free-motion-preview .layout-art{position:absolute;inset:29% 5% 30%;display:grid;align-content:center;justify-items:center;gap:24px;color:#b7c5d5;font-size:12px}
#free-motion-preview .layout-art i{width:80px;height:80px;border:1px solid #8398af;border-radius:50%;box-shadow:0 0 0 22px #526e8a18,0 0 0 44px #526e8a10}
#free-motion-preview .layout-art b{font-weight:400}
#free-motion-preview .layout-caption{position:absolute;top:78.333%;left:4.444%;width:91.112%;transform:translateY(-50%);text-align:center;white-space:nowrap;font-size:16px}
#free-motion-preview .layout-preview [hidden]{display:none!important}
#free-motion-preview input[type=color]:disabled{opacity:.45;cursor:default}
#free-motion-preview #fm-background_preview{position:absolute;inset:0;width:100%;height:100%;z-index:0}
#free-motion-preview .layout-title,#free-motion-preview .layout-progress,#free-motion-preview .layout-art,#free-motion-preview .layout-caption{z-index:1}
#free-motion-preview .background-safe-top,#free-motion-preview .background-safe-bottom{display:none;position:absolute;left:0;width:100%;text-align:center;font-size:10px;color:#ddd;background:#0003;border:1px dashed #ffffff40;pointer-events:none;z-index:2}
#free-motion-preview .background-safe-top{top:0;height:13.75%;padding-top:10px}
#free-motion-preview .background-safe-bottom{bottom:0;height:18.125%;padding-top:10px}
#free-motion-preview .has-personal-background .background-safe-top,#free-motion-preview .has-personal-background .background-safe-bottom{display:block}
#free-motion-preview #fm-background_protect_box{position:absolute;border:2px dashed #f0c66b;background:#f0c66b12;z-index:3;pointer-events:none}
#free-motion-preview .selecting-person-area{touch-action:none}
#free-motion-preview .layout-preview{width:100%;height:100%;margin:0;border-radius:0}#free-motion-preview .layout-art{font-size:10px}#free-motion-preview .layout-art i{width:48px;height:48px}#free-motion-preview .layout-progress{font-size:7px}

/* [FM-UI] 自由动效分区搬进高级设置分类后：沿用原样式；分类自带标题，原折叠标题隐藏、内容常开 */
.fm-scope[hidden]{display:none!important}.fm-scope{margin:0}.fm-scope>details{border:none;margin:0;background:transparent}.fm-scope>details>summary{display:none}

/* [FM-UI] 拆进高级设置后的控件外观：与站点其它分类一致（橙色强调、圆角输入框、文件按钮） */
.fm-scope input[type=checkbox],.fm-scope input[type=radio],.fm-scope input[type=range]{accent-color:var(--orange,#ff6b35)}
.fm-scope input[type=text],.fm-scope input:not([type]),.fm-scope textarea{box-sizing:border-box;max-width:100%;border:1px solid #e7ddd2;border-radius:10px;padding:9px 12px;font:inherit;font-size:14px;background:#fff;color:#2b2b2b;outline:none}
.fm-scope input[type=text]:focus,.fm-scope textarea:focus{border-color:var(--orange-light,#ff8c5a);box-shadow:0 0 0 3px rgba(255,107,53,.12)}
.fm-scope input[type=file]{font-size:13px;color:#8a7f75}
.fm-scope input[type=file]::file-selector-button{border:1px solid var(--orange-light,#ff8c5a);background:#fff6f0;color:var(--orange-dark,#e55a2b);border-radius:999px;padding:6px 16px;margin-right:10px;font:inherit;font-weight:600;cursor:pointer}
.fm-scope input[type=file]::file-selector-button:hover{background:#ffe9dc}

#fm-materials .fm-material-card{display:grid;grid-template-columns:84px minmax(0,1fr);gap:10px;align-items:start}
#fm-materials .fm-material-poster{width:84px;height:62px;position:relative;overflow:hidden;display:grid;place-items:center;border-radius:7px;background:#f3ede8;color:#725e50;font-size:11px}
#fm-materials .fm-material-poster img{width:100%;height:100%;object-fit:cover}
#fm-materials .fm-material-video-mark{position:absolute;bottom:4px;right:4px;padding:2px 5px;border-radius:4px;background:#201a16cc;color:white}
#fm-materials .fm-material-controls .check{min-width:0;margin:0;overflow-wrap:anywhere}
#fm-materials .fm-material-controls .check input{flex-shrink:0}
#fm-materials .fm-material-controls button:disabled{opacity:.5;cursor:default}
#fm-materials .fm-material-actions{display:flex;align-items:center;flex-wrap:wrap;gap:4px}
#fm-materials .fm-material-actions button{margin-right:0;padding-inline:7px}
#fm-materials .fm-image-duration{display:flex;align-items:center;gap:3px;flex:0 0 auto;min-width:0;margin:4px 0;font-size:12px;color:#735d4d;white-space:nowrap}
#fm-materials .fm-image-duration input[type=number]{width:39px;margin:0;padding:6px 2px;border:1px solid #e7ddd2;border-radius:6px;text-align:center;background:white;font:inherit}
#fm-upload_status.fm-upload-error{color:#a92d20;font-weight:600}
