@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
.smh-editor{max-width:1200px;margin:24px auto;padding:0 14px;color:#172b40;font-family:Inter,Arial,sans-serif}
.smh-editor *{box-sizing:border-box}
.smh-editor-head{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:28px;background:linear-gradient(125deg,#12334e,#08798e);border-radius:18px;color:#fff}
.smh-editor-kicker{font-size:10px;font-weight:800;letter-spacing:1.5px;color:#bfeaf0}
.smh-editor-head h1{margin:8px 0;color:#fff;font-size:34px;line-height:1.2}
.smh-editor-head p{margin:0;color:#e5f2f5;line-height:1.6;max-width:700px}
.smh-editor-upload{background:#fff;color:#075d72;padding:13px 20px;border-radius:9px;font-weight:800;white-space:nowrap;cursor:pointer}
.smh-editor-upload input{display:none}
.smh-editor-status{margin:14px 0;padding:12px 15px;background:#edf7f2;color:#155b3a;border-radius:9px;font-size:13px}
.smh-editor-status.is-error{background:#fff0ee;color:#a12b22}
.smh-editor-toolbar,.smh-editor-editbar,.smh-editor-pages{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px;background:#fff;border:1px solid #dce6ed;border-radius:12px;margin-bottom:10px}
.smh-editor button{border:1px solid #d2dfe7;background:#f5f9fb;color:#24465a;padding:10px 13px;border-radius:8px;font-weight:700;font-size:12px;cursor:pointer}
.smh-editor button:hover:not(:disabled){border-color:#08798e;background:#eaf6f8}
.smh-editor button:disabled{opacity:.4;cursor:not-allowed}
.smh-editor button.is-active,.smh-editor #smh-editor-download,.smh-editor #smh-editor-apply{background:#08798e;border-color:#08798e;color:#fff}
.smh-editor-editbar label{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:700;color:#475569}
.smh-editor-editbar input[type=text]{width:min(280px,45vw);padding:9px;border:1px solid #ccd9e2;border-radius:7px}
.smh-editor-editbar input[type=number]{width:65px;padding:8px;border:1px solid #ccd9e2;border-radius:7px}
.smh-editor-editbar input[type=color]{width:34px;height:34px;padding:2px;border:1px solid #ccd9e2;border-radius:6px;background:#fff}
.smh-editor-pages{justify-content:center;color:#52677d;font-size:12px}
.smh-editor-stage-wrap{overflow:auto;padding:18px;background:#eaf0f4;border:1px solid #dce6ed;border-radius:12px;min-height:300px}
.smh-editor-stage{display:flex;justify-content:center;min-width:100%;min-height:260px}
.smh-editor-empty{margin:auto;color:#738496;font-size:14px}
.smh-editor-page{position:relative;flex:none;background:#fff;box-shadow:0 4px 18px #1b34431f}
.smh-editor-page>canvas{position:absolute;inset:0;display:block}
.smh-editor-page .textLayer{position:absolute;inset:0;overflow:hidden;line-height:1;opacity:1;user-select:text;-webkit-user-select:text;cursor:text}
.smh-editor-page .textLayer span,.smh-editor-page .textLayer br{position:absolute;color:transparent;white-space:pre;transform-origin:0% 0%;cursor:text}
.smh-editor-page .textLayer ::selection{background:rgba(30,130,220,.35)}
.smh-editor-overlay{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.smh-editor-mask{position:absolute;background:#fff;outline:1px solid rgba(15,100,130,.12)}
.smh-editor-text{position:absolute;white-space:pre;max-width:95%;pointer-events:auto;cursor:move;user-select:none;background:rgba(255,255,255,.04);padding:1px}
.smh-editor-text.signature{font-family:cursive,serif;font-style:italic}
.smh-editor-note{margin:12px 2px;color:#64748b;font-size:12px;line-height:1.7}
@media(max-width:700px){.smh-editor-head{display:block;padding:20px}.smh-editor-head h1{font-size:27px}.smh-editor-upload{display:inline-block;margin-top:15px}.smh-editor-editbar{align-items:stretch}.smh-editor-editbar label{width:100%;justify-content:space-between}.smh-editor-editbar input[type=text]{width:65%}.smh-editor-toolbar button{flex:1}.smh-editor-stage-wrap{padding:8px}}

.smh-editor-text.is-picked{outline:2px dashed #08798e;background:rgba(8,121,142,.12);z-index:5}
.smh-editor #smh-editor-delete-added{background:#fff2ee;color:#9a3412;border-color:#fed7aa}
.smh-editor #smh-editor-clear-page{background:#fff;color:#9a3412}
.smh-editor-note{background:#f8fafc;border-left:3px solid #08798e;padding:12px 14px;border-radius:6px}
