.jdm-motion-overlay{position:absolute;inset:0;z-index:95;display:grid;place-items:center;padding:16px;background:#0008;color:#eee;font:13px/1.5 "PingFang SC","Hiragino Sans GB","Microsoft YaHei",Arial,sans-serif;pointer-events:auto}
.jdm-motion-editor{width:min(900px,100%);max-height:100%;overflow:auto;border:1px solid #ffffff10;border-radius:16px;background:#202022;box-shadow:0 16px 80px #0008;outline:none}
.jdm-motion-editor *{box-sizing:border-box}.jdm-motion-editor [hidden]{display:none!important}
.jdm-motion-editor button{min-height:32px;padding:6px 12px;border:1px solid #ffffff0c;border-radius:8px;background:#ffffff08;color:#ddd;font:inherit;cursor:pointer}.jdm-motion-editor button:hover{background:#ffffff12}.jdm-motion-editor button:disabled{opacity:.4;cursor:default}.jdm-motion-editor button:focus-visible,.jdm-motion-editor input:focus-visible{outline:2px solid #8bd9df;outline-offset:2px}
.jdm-motion-editor .jdm-header{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #ffffff0a}.jdm-motion-editor h2{margin:0;font-size:16px;line-height:24px;font-weight:600}.jdm-motion-editor h3{margin:14px 0 8px;font-size:12px;color:#aaa;font-weight:500}
.jdm-motion-editor .jdm-content{display:grid;grid-template-columns:240px minmax(0,1fr);min-width:0}.jdm-motion-editor .jdm-library{padding:0 14px 16px;border-right:1px solid #ffffff0a;min-width:0}.jdm-motion-editor .jdm-known,.jdm-motion-editor .jdm-clips{display:grid;gap:6px}.jdm-motion-editor .jdm-clips button{text-align:left;overflow:hidden;text-overflow:ellipsis}.jdm-motion-editor [aria-pressed=true]{border-color:#89bdbf;background:#86ced314}
.jdm-motion-editor .jdm-edit{padding:14px 16px;min-width:0}.jdm-motion-editor p{margin:8px 0}.jdm-motion-editor .jdm-source-note,.jdm-motion-editor .jdm-empty,.jdm-motion-editor .jdm-priority{color:#93939e;font-size:12px}.jdm-motion-editor .jdm-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px}.jdm-motion-editor .jdm-field{display:flex;flex-direction:column;gap:4px;margin:6px 0;color:#aaa;min-width:0}.jdm-motion-editor .jdm-field:first-child{grid-column:1/-1}
.jdm-motion-editor input{width:100%;min-width:0;height:32px;padding:5px 8px;border:1px solid #ffffff0d;border-radius:6px;background:#161618;color:#eee;font:inherit}.jdm-motion-editor input[type=checkbox]{width:18px;height:18px;accent-color:#b1edef;appearance:auto}.jdm-motion-editor input[aria-invalid=true]{border-color:#c88a7c}.jdm-motion-editor input[type=range]{height:28px;padding:0;accent-color:#b1edef}
.jdm-motion-editor .jdm-preview{display:block;width:100%;height:auto;aspect-ratio:18/11;margin:12px 0 8px;border-radius:10px;background:#111}.jdm-motion-editor .jdm-transport{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px}.jdm-motion-editor .jdm-status{min-height:20px;color:#b8ccd0}.jdm-motion-editor .jdm-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}.jdm-motion-editor .jdm-actions button:last-child{background:#c8ecec;color:#192020}.jdm-motion-editor .jdm-actions button:nth-child(2){color:#dfa99f}
@media(max-width:640px){.jdm-motion-overlay{padding:8px}.jdm-motion-editor .jdm-content{grid-template-columns:1fr}.jdm-motion-editor .jdm-library{border-right:0;border-bottom:1px solid #ffffff0a}.jdm-motion-editor .jdm-known,.jdm-motion-editor .jdm-clips{grid-template-columns:repeat(2,minmax(0,1fr))}.jdm-motion-editor .jdm-transport{grid-template-columns:auto minmax(0,1fr)}.jdm-motion-editor .jdm-transport output{grid-column:1/-1}.jdm-motion-editor .jdm-actions{flex-wrap:wrap}}

.jdm-motion-editor { display:flex;flex-direction:column;height:min(680px,calc(100dvh - 32px));overflow:hidden; }
.jdm-motion-editor .jdm-header { flex:0 0 auto; }
.jdm-motion-editor .jdm-content { flex:1 1 auto;min-height:0;overflow:auto;scrollbar-width:thin; }
.jdm-motion-editor>.jdm-actions { flex:0 0 auto;justify-content:flex-end;padding:12px 16px;margin:0;border-top:1px solid #ffffff0a;background:#242426; }
@media(max-width:760px){.jdm-motion-overlay { position:fixed;padding:8px; }.jdm-motion-editor { width:100%;height:calc(100dvh - 16px);max-height:calc(100dvh - 16px); }.jdm-motion-editor h2 { font-size:14px; }.jdm-motion-editor>.jdm-actions { padding:10px;gap:6px; }}
