.jie-editor { position: absolute; inset: 0; z-index: 40; pointer-events: none; color: #fff; font: 400 13px/20px 'PingFang SC','Hiragino Sans GB','Microsoft YaHei',Arial,sans-serif; }
.jie-editor *, .jie-editor *::before, .jie-editor *::after { box-sizing: border-box; }
.jie-editor [hidden] { display: none !important; }
.jie-frame { position: absolute; pointer-events: auto; touch-action: none; cursor: grab; border: 0; outline: 1px solid #ffffffa6; box-shadow: 0 0 0 1px #0005; background-color: #181818; background-image: linear-gradient(45deg,#ffffff0d 25%,transparent 25%),linear-gradient(-45deg,#ffffff0d 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ffffff0d 75%),linear-gradient(-45deg,transparent 75%,#ffffff0d 75%); background-size: 16px 16px; background-position: 0 0,0 8px,8px -8px,-8px 0; }
.jie-frame:active { cursor: grabbing; }
.jie-source { position: absolute; display: block; max-width: none; max-height: none; object-fit: fill; pointer-events: none; user-select: none; }
.jie-loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; background: #15151588; color: #ccc; }
.jie-toolbar { position: absolute; display: flex; align-items: center; gap: 2px; width: max-content; max-width: calc(100% - 16px); height: 40px; padding: 4px; border-radius: 12px; background: #202022; overflow-x: auto; overflow-y: hidden; pointer-events: auto; }
.jie-editor .jie-scale, .jie-editor .jie-ratio { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; gap: 4px; height: 32px; padding: 4px 8px; border: 0; border-radius: 8px; background: transparent; color: #fff; font: inherit; cursor: pointer; }
.jie-editor .jie-scale { width: 56px; font-variant-numeric: tabular-nums; }
.jie-editor .jie-ratio { width: 61px; }
.jie-editor .jie-ratio[data-ratio="4:3"], .jie-editor .jie-ratio[data-ratio="3:4"] { width: 56px; }
.jie-editor .jie-ratio.is-original { width: 84px; }
.jie-editor .jie-scale svg { display: block; width: 12px; height: 12px; }
.jie-editor .jie-ratio svg { display: block; flex: 0 0 16px; width: 16px; height: 16px; }
.jie-editor .jie-scale:hover, .jie-editor .jie-ratio:hover, .jie-editor .jie-ratio[aria-pressed="true"] { background: #ffffff14; }
.jie-editor .jie-scale:disabled { background: transparent; color: #ffffff33; cursor: not-allowed; }
.jie-divider { flex: 0 0 8px; width: 8px; height: 16px; padding: 2px; background: #ffffff0a; }
.jie-composer { position: absolute; display: flex; align-items: center; gap: 24px; width: 500px; max-width: calc(100% - 16px); min-height: 58px; padding: 13px 12px; border-radius: 12px; background: #202022; pointer-events: auto; }
.jie-editor .jie-description { display: block; flex: 1; width: 0; min-width: 0; min-height: 32px; max-height: 120px; padding: 6px 0; resize: vertical; border: 0; outline: none; background: transparent; color: #fff; font: inherit; line-height: 20px; }
.jie-description::placeholder { color: #ffffff59; }
.jie-editor .jie-save { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; padding: 6px; border: 0; border-radius: 50%; background: #fff; color: #161616; cursor: pointer; font-size: 22px; }
.jie-editor .jie-save:disabled { background: #ffffff29; color: #ffffff33; cursor: not-allowed; }
.jie-editor .jie-handle { position: absolute; z-index: 1; width: 12px; height: 12px; padding: 0; border: 1px solid #0008; border-radius: 2px; background: #fff; }
.jie-handle-nw { left: -6px; top: -6px; cursor: nwse-resize; }
.jie-handle-ne { right: -6px; top: -6px; cursor: nesw-resize; }
.jie-handle-se { right: -6px; bottom: -6px; cursor: nwse-resize; }
.jie-handle-sw { left: -6px; bottom: -6px; cursor: nesw-resize; }
.jie-editor .jie-handle-n, .jie-editor .jie-handle-s { left: 50%; width: 24px; transform: translateX(-50%); cursor: ns-resize; }
.jie-handle-n { top: -9px; }
.jie-handle-s { bottom: -9px; }
.jie-editor .jie-handle-e, .jie-editor .jie-handle-w { top: 50%; height: 24px; transform: translateY(-50%); cursor: ew-resize; }
.jie-handle-e { right: -9px; }
.jie-handle-w { left: -9px; }
.jie-scale-menu { position: absolute; z-index: 2; display: flex; flex-direction: column; gap: 4px; width: 128px; height: 130px; padding: 4px; border-radius: 12px; background: #262626; box-shadow: 0 8px 24px #0006; pointer-events: auto; }
.jie-editor .jie-scale-choice { display: flex; align-items: center; flex: 0 0 38px; width: 100%; height: 38px; padding: 8px 12px; border: 0; border-radius: 8px; background: transparent; color: #fff; font: inherit; text-align: left; cursor: pointer; }
.jie-editor .jie-scale-choice:hover, .jie-editor .jie-scale-choice:focus { background: #ffffff14; }
.jie-editor :is(button,textarea):focus-visible, .jie-frame:focus-visible { outline: 1px solid #66d9fa; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .jie-editor * { transition: none !important; } }
