:root{--editor-bg: #e9edf3}[data-theme=dark]{--editor-bg: #0a0f19}[data-theme=dark] .sig-style.is-active{background:#eef6e1}@font-face{font-family:Dancing Script;src:url(/assets/fonts/dancing-script.woff2) format("woff2");font-display:block}@font-face{font-family:Great Vibes;src:url(/assets/fonts/great-vibes.woff2) format("woff2");font-display:block}@font-face{font-family:Caveat;src:url(/assets/fonts/caveat.woff2) format("woff2");font-display:block}.ed-shell{background:var(--surface);border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow);overflow:clip}.ed-toolbar{position:sticky;top:64px;z-index:30;background:var(--surface);border-bottom:1px solid var(--line);padding:10px 14px;display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center}.ed-tools,.ed-props,.ed-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.ed-actions{margin-left:auto}.ed-tool{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:6px 12px;border-radius:10px;border:1px solid transparent;background:transparent;cursor:pointer;font-weight:600;color:var(--ink-2);font-size:.93rem}.ed-tool:hover{background:var(--bg)}.ed-tool .ico{width:19px;height:19px}.ed-tool.is-active{background:var(--accent-soft);border-color:var(--accent);color:var(--accent-hover)}.ed-sep{width:1px;height:28px;background:var(--line)}.ed-props{padding:6px 10px;border-radius:12px;background:var(--bg)}.ed-props[hidden]{display:none!important}.ed-props select,.ed-props input[type=number]{min-height:36px;padding:4px 8px;border:1.5px solid var(--line-2);border-radius:9px;background:var(--field-bg);font-size:.9rem}.ed-props select{max-width:210px}.ed-props input[type=number]{width:64px}.ed-props input[type=color]{width:36px;height:36px;padding:2px;border-radius:9px}.ed-props label{font-size:.8rem;color:var(--muted);font-weight:600}.ed-status{display:flex;align-items:flex-start;gap:8px;padding:9px 16px;font-size:.9rem;border-bottom:1px solid var(--line);background:var(--surface-2);color:var(--ink-2);min-height:62px}.ed-props{min-height:48px}.ed-props .ed-empty-hint{padding:0 4px}.ed-status.ok{background:var(--accent-soft);color:var(--accent-hover)}.ed-status.warn{background:var(--warn-bg);color:var(--warn-ink)}.ed-status .ico{width:18px;height:18px;flex:none;margin-top:1px}.ed-viewport{background:var(--editor-bg, #e9edf3);padding:22px 12px 40px;max-height:calc(100vh - 150px);min-height:420px;overflow:auto;overscroll-behavior:contain}.ed-viewport{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.ed-viewport .ed-input{user-select:text;-webkit-user-select:text}.ed-pages{display:flex;flex-direction:column;align-items:center;gap:22px}.ed-page{position:relative;background:#fff;box-shadow:0 2px 12px #141e322e}.ed-page canvas{display:block;width:100%;height:100%}.ed-page .ph{position:absolute;top:0;right:0;bottom:0;left:0;width:auto;height:auto;border-radius:0}.ed-pnum{position:absolute;top:100%;left:0;right:0;text-align:center;font-size:.78rem;color:var(--muted);margin-top:4px}.ed-layer{position:absolute;top:0;right:0;bottom:0;left:0;touch-action:pan-x pan-y}.ed-layer.mode-text,.ed-layer.mode-whiteout,.ed-layer.mode-redact{cursor:crosshair;touch-action:none}.ed-rect.is-redact{background:#000000d1!important;box-shadow:0 0 0 1.5px #ef4444}.ed-find{display:flex;gap:6px;align-items:center}.ed-find input{min-height:38px;width:210px;padding:6px 10px;border:1.5px solid var(--line-2);border-radius:10px;background:var(--field-bg);font-size:.92rem}.ed-find input:focus{outline:0;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-ring)}@media (max-width: 760px){.ed-find{flex:1}.ed-find input{width:auto;flex:1;min-width:0}}.ed-run{position:absolute;border-radius:2px;cursor:text;z-index:2}.ed-cover{z-index:1}.ed-item{z-index:3}.mode-edit .ed-run:hover,.mode-edit .ed-run:focus-visible{background:#4d7c0f21;outline:1.5px dashed var(--accent)}.ed-layer:not(.mode-edit) .ed-run{pointer-events:none}.ed-run.is-edited{display:none}.ed-cover{position:absolute;pointer-events:none}.ed-item{position:absolute;touch-action:none}.ed-item.is-selected{outline:2px solid var(--accent);outline-offset:1px}.ed-text{cursor:move;white-space:pre;line-height:1.2;font-kerning:none;font-variant-ligatures:none;transform-origin:0 0}.ed-text.is-existing{cursor:text}.ed-style{min-width:36px;min-height:36px;border:1.5px solid var(--line-2);border-radius:9px;background:var(--field-bg);cursor:pointer;font-size:1rem;color:var(--ink);padding:0 8px}.ed-style[aria-pressed=true]{background:var(--accent-soft);border-color:var(--accent);color:var(--accent-hover)}.ed-style:disabled{opacity:.45;cursor:not-allowed}.ed-text .ed-txt{white-space:pre;min-width:4px;min-height:1em}.ed-text.is-editing .ed-txt{visibility:hidden}.ed-glyphs{position:absolute;left:0;top:0;pointer-events:none;overflow:visible}.ed-text.has-glyphs .ed-input{color:transparent;caret-color:#1d4ed8}.ed-text.is-editing{cursor:text}.ed-input{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;border:0;padding:0;margin:0;background:transparent;resize:none;overflow:hidden;outline:none;font:inherit;color:inherit;line-height:inherit;white-space:pre;letter-spacing:inherit;word-spacing:inherit}.ed-grip{position:absolute;left:-30px;top:-2px;width:26px;height:26px;border-radius:7px;border:1.5px solid var(--accent);background:var(--surface);color:var(--accent);display:none;place-items:center;cursor:move;padding:0;font-size:14px;line-height:1;touch-action:none}.ed-item.is-editing .ed-grip{display:grid}.ed-img img{display:block;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;user-select:none;-webkit-user-drag:none}.ed-img,.ed-rect{cursor:move}.ed-resize{position:absolute;right:-9px;bottom:-9px;width:18px;height:18px;border-radius:50%;background:#fff;border:2px solid var(--accent);cursor:nwse-resize;display:none;touch-action:none}.ed-item.is-selected .ed-resize{display:block}.ed-draft{position:absolute;border:1.5px dashed var(--accent);background:#ffffffb3;pointer-events:none}.ed-empty-hint{color:var(--muted);font-size:.85rem}.pv-pages{display:flex;flex-direction:column;gap:16px;align-items:center;background:var(--editor-bg, #e9edf3);padding:16px;border-radius:12px;max-height:65vh;overflow:auto}.pv-pages canvas{max-width:100%;box-shadow:0 2px 10px #0000002e;background:#fff}.pv-notes{list-style:none;padding:0;margin:12px 0 0}.pv-notes li{padding:8px 12px;border-radius:10px;background:var(--warn-bg);color:var(--warn-ink);font-size:.9rem;margin-bottom:6px}.sig-tabs{display:flex;gap:6px;margin:6px 0 14px;border-bottom:1px solid var(--line)}.sig-tab{border:0;background:none;padding:10px 14px;font-weight:650;color:var(--muted);cursor:pointer;border-bottom:3px solid transparent;margin-bottom:-1px}.sig-tab.is-active{color:var(--accent);border-bottom-color:var(--accent)}.sig-draw{position:relative;border:1.5px dashed var(--line-2);border-radius:12px;background:#fff;touch-action:none}.sig-draw canvas{display:block;width:100%;height:200px;cursor:crosshair;touch-action:none}.sig-line{position:absolute;left:24px;right:24px;bottom:46px;border-bottom:1.5px solid #cbd3df;pointer-events:none}.sig-x{position:absolute;left:24px;bottom:50px;color:#a5afbf;font-size:18px;pointer-events:none}.sig-row{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:10px;flex-wrap:wrap}.sig-colors{display:flex;gap:8px}.sig-color{width:28px;height:28px;border-radius:50%;border:3px solid #fff;box-shadow:0 0 0 1.5px var(--line-2);cursor:pointer;padding:0}.sig-color.is-active{box-shadow:0 0 0 2.5px var(--accent)}.sig-styles{display:grid;gap:8px;margin-top:12px}.sig-style{border:1.5px solid var(--line-2);border-radius:12px;background:#fff;color:#111827;padding:8px 14px;font-size:34px;text-align:left;cursor:pointer;min-height:64px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.sig-style.is-active{border-color:var(--accent);background:var(--accent-soft)}.sig-upload-prev{margin-top:12px;min-height:120px;border:1.5px dashed var(--line-2);border-radius:12px;display:grid;place-items:center;background:repeating-conic-gradient(#f2f4f7,#f2f4f7 25%,#fff 0%,#fff 50%) 50% / 16px 16px}.sig-upload-prev img{max-width:100%;max-height:180px}@media (max-width: 760px){.ed-toolbar{top:64px;padding:8px;gap:6px}.ed-tool span.lbl{display:none}.ed-tool{padding:6px 10px}.ed-actions{margin-left:0;width:100%}.ed-actions .btn-primary{flex:1;white-space:nowrap}.ed-props label[for=ed-size],.ed-props label[for=ed-font]{display:none}.ed-props select{max-width:170px}.ed-viewport{padding:14px 6px 30px;max-height:none}.ed-status{min-height:84px;font-size:.86rem}.ed-props{width:100%}.ed-grip{left:-4px;top:-30px}}
