.manual-launch{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0}.manual-launch button{font:inherit;padding:9px 14px;border:1px solid #7971bd;border-radius:8px;background:#eeeafa;color:#34275c;cursor:pointer}.manual-launch small{color:#747086}
.manual-dialog{box-sizing:border-box;width:min(1080px,calc(100vw - 24px));max-height:calc(100dvh - 20px);border:1px solid #aaa2c5;border-radius:16px;padding:18px;background:#f7f6fb;color:#262235;box-shadow:0 20px 80px #0006;overflow:hidden}.manual-dialog::backdrop{background:#1510209c}.manual-dialog[open]{display:flex;flex-direction:column;gap:12px;position:fixed;inset:max(8px,env(safe-area-inset-top)) auto auto 50%;transform:translateX(-50%);margin:0}.manual-dialog header,.manual-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none}.manual-dialog h2{font-size:20px;margin:0}.manual-dialog button,.manual-dialog input,.manual-dialog select,.manual-dialog textarea{font:inherit;box-sizing:border-box;border:1px solid #c5bfd5;border-radius:7px;padding:8px;background:white;color:#272238}.manual-dialog button{cursor:pointer}.manual-dialog button:disabled{opacity:.5;cursor:default}.manual-dialog button.primary{background:#6250b7;color:white}.manual-dialog :focus-visible{outline:3px solid #9685f1;outline-offset:2px}.manual-dialog p{margin:0;line-height:1.4}.manual-body{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:16px;overflow:auto;min-height:0}.manual-body>div{min-width:0}.manual-stage{background:#101016;min-height:320px;height:clamp(320px,52vh,520px);display:flex;align-items:center;justify-content:center;border-radius:10px;overflow:hidden;position:relative}.manual-canvas{position:relative;touch-action:none;cursor:crosshair;flex:none;transform-origin:center center;will-change:transform}.manual-canvas.is-panning{cursor:grabbing}.manual-canvas img{display:block;width:100%;height:100%;user-select:none;pointer-events:none}.manual-canvas svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.manual-canvas rect{fill:#b68aff33;stroke:#d1a4ff;stroke-width:2;vector-effect:non-scaling-stroke}.manual-view-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:8px}.manual-view-tools output{min-width:48px;text-align:center;font-variant-numeric:tabular-nums}.manual-view-tools button[aria-pressed="true"]{background:#6250b7;color:#fff}.manual-image-help{font-size:12px;color:#6d667d;margin-top:8px!important}.manual-fields{display:flex;flex-direction:column;gap:8px}.manual-fields label{font-size:13px;display:flex;flex-direction:column;gap:4px}.manual-fields textarea{resize:vertical;min-height:58px;max-height:120px}.manual-status{font-size:13px;min-height:20px}.manual-records{display:flex;gap:8px;align-items:center;flex:none}.manual-records select{min-width:0;flex:1}.manual-dialog footer{flex-wrap:wrap}.manual-origin{font-size:12px;color:#6b627e}.manual-error{color:#9a274a}.ct-draft-note{font-size:12px;color:#a99ed0;padding:8px 0}
@media(max-width:760px){.manual-body{grid-template-columns:1fr}.manual-stage{height:360px;min-height:360px}.manual-dialog{padding:12px}.manual-dialog h2{font-size:17px}}
@media(max-height:620px){.manual-stage{height:360px;min-height:360px}}

.manual-dialog header{padding:0;border:0;background:none;position:static}.manual-dialog footer{padding:0}
