.jmk-editor { position: absolute; z-index: 40; inset: 0; pointer-events: none; color: #fff; font: 400 13px/20px 'PingFang SC','Hiragino Sans GB','Microsoft YaHei',Arial,sans-serif; }
.jmk-editor *, .jmk-editor *::before, .jmk-editor *::after { box-sizing: border-box; }
.jmk-editor [hidden] { display: none !important; }
.jmk-stage { position: absolute; overflow: hidden; pointer-events: auto; touch-action: none; cursor: none; outline: 1px solid #ffffff1f; }
.jmk-source, .jmk-mask { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.jmk-source { object-fit: contain; user-select: none; }
.jmk-mask { opacity: .28; }
.jmk-loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: #c3c3c8; background: #15151566; }
.jmk-toolbar { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; position: absolute; display: flex; justify-content: space-between; align-items: center; width: 480.453px; max-width: calc(100% - 16px); height: 40px; padding: 4px; border-radius: 12px; background: #222222b8; backdrop-filter: blur(12px); box-shadow: 0 6px 24px #0003; pointer-events: auto; }
.jmk-toolbar:empty { display: none; }
.jmk-tools { display: flex; flex: 0 0 140px; align-items: center; gap: 4px; width: 140px; height: 32px; }
.jmk-actions { display: grid; flex: 0 0 188.453px; grid-template-columns: 32px 32px 38.453px 80px; align-items: center; gap: 2px; width: 188.453px; height: 32px; }
.jmk-editor button { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; height: 32px; margin: 0; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #fff; font: inherit; cursor: pointer; }
.jmk-editor .jmk-tool, .jmk-editor .jmk-history { width: 32px; }
.jmk-editor .jmk-tool svg { display: block; width: 16px; height: 16px; fill: currentColor; }
.jmk-editor .jmk-tool:nth-child(3) svg { width: 16px; height: 16px; }
.jmk-editor .jmk-history svg { display: block; width: 16px; height: 16px; fill: currentColor; }
.jmk-editor button:hover, .jmk-editor button[aria-pressed="true"] { background: #ffffff14; }
.jmk-editor button:active { background: #ffffff1f; }
.jmk-editor .jmk-generate { width: 80px; padding: 4px 16px; background: #fff; color: #161616; font-weight: 500; }
.jmk-editor .jmk-generate:hover { background: #e6e6e8; }
.jmk-editor button:disabled { background: transparent; color: #ffffff33; opacity: 1; cursor: not-allowed; }
.jmk-editor .jmk-generate:disabled { background: #ffffff29; color: #ffffff33; }
.jmk-model-state { display: flex; flex-direction: column; align-items: center; color: #ffffff70; font: 400 10px/12px 'PingFang SC','Microsoft YaHei',sans-serif; white-space: nowrap; }
.jmk-cursor { position: absolute; border: 1px solid #fff; border-radius: 50%; background: #ffffff0a; transform: translate(-50%,-50%); box-shadow: 0 0 0 1px #0007; pointer-events: none; }
.jmk-cursor[data-tool="eraser"] { border-style: dashed; background: #0000000a; }
.jmk-size-control { display: flex; flex: 1 1 auto; align-items: center; justify-content: center; gap: 8px; min-width: 112px; height: 32px; padding: 0 12px; }
.jmk-editor .jmk-size-control svg { display: block; flex-shrink: 0; width: 16px; height: 16px; }
.jmk-size-range { appearance: none; width: 80px; height: 12px; margin: 0; border: 0; border-radius: 4px; background: #ffffff12; outline: 0; cursor: pointer; }
.jmk-size-range::-webkit-slider-thumb { appearance: none; width: 4px; height: 16px; border: 1px solid #ffffff40; border-radius: 11px; background: #f5f5f5; }
.jmk-size-range::-moz-range-thumb { width: 4px; height: 16px; border: 1px solid #ffffff40; border-radius: 11px; background: #f5f5f5; }
.jmk-editor :is(button,input):focus-visible, .jmk-stage:focus-visible { outline: 1px solid #66d9fa; outline-offset: 2px; }
@media (max-width: 380px) { .jmk-toolbar { width: calc(100% - 16px); overflow-x: auto; gap: 8px; } }

.jmk-toolbar::-webkit-scrollbar { height: 0; }
