@font-face{font-family:"WCImageText";src:url("fonts/DejaVuSans-Bold.ttf") format("truetype");font-style:normal;font-weight:700;font-display:swap}
[hidden]{display:none!important}
.tool-shell{max-width:1080px;margin:0 auto}
.tool-heading{max-width:780px;margin-bottom:28px}
.tool-heading h1{font-size:clamp(34px,5vw,54px);line-height:1.02;margin:4px 0 12px}.tool-heading p{font-size:18px;line-height:1.6;color:#667085}
.back-link{display:inline-block;margin-bottom:22px;color:#2563eb;text-decoration:none;font-weight:700}
.tool-workspace{display:grid;grid-template-columns:minmax(300px,.9fr) minmax(0,1.45fr);gap:22px;align-items:start}
.tool-form,.preview-card{background:#fff;border:1px solid #dfe4ec;border-radius:16px;padding:22px;box-shadow:0 5px 22px rgba(16,24,40,.04)}
.field{margin-bottom:18px}.field label{display:block;font-weight:750;margin-bottom:7px}.field input[type=text],.field select{width:100%;padding:11px;border:1px solid #cfd6e2;border-radius:9px;background:white;font:inherit}.field input[type=color]{width:100%;height:44px;border:1px solid #cfd6e2;border-radius:9px;background:white;padding:4px}
.options-grid{display:grid;gap:10px}.options-grid-2{grid-template-columns:1fr 110px}.check-row{display:flex;gap:9px;align-items:flex-start;font-weight:650;margin:6px 0 10px}.mini-help{font-size:14px;color:#667085;margin:0 0 18px}
.field-range input[type=range]{width:100%}.range-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.range-head strong{font-size:14px;color:#0f172a}.tool-submit{width:100%}
.preview-stack{display:grid;gap:22px}.preview-label{font-size:13px;font-weight:800;color:#475467;margin-bottom:12px;text-transform:uppercase;letter-spacing:.06em}
.preview-stage{min-height:260px;border:1px dashed #cbd5e1;border-radius:12px;background:#f8fafc;display:grid;place-items:center;overflow:hidden;color:#98a2b3;text-align:center;padding:14px}.preview-stage img{display:block;max-width:100%;max-height:520px;object-fit:contain}.preview-stage-editor{padding:12px}
.editor-canvas{position:relative;display:inline-block;max-width:100%;line-height:0;border-radius:10px;overflow:hidden;touch-action:none}.editor-canvas img{display:block;max-width:100%;height:auto}
.draggable-text{position:absolute;left:0;top:0;display:inline-flex;align-items:center;justify-content:center;color:#fff;font:700 40px/1.1 "WCImageText",Arial,sans-serif;padding:10px 14px;border-radius:12px;cursor:grab;user-select:none;touch-action:none;max-width:90%;word-break:break-word;text-align:center;text-shadow:0 2px 2px rgba(0,0,0,.45);box-shadow:0 8px 24px rgba(15,23,42,.18)}
.draggable-text.has-bg{background:rgba(0,0,0,.42)}.draggable-text:not(.has-bg){background:transparent;box-shadow:none;padding:0}.draggable-text.is-dragging{cursor:grabbing}
.result-actions{display:flex;gap:10px;margin-top:14px}
.tool-progress{display:flex;flex-direction:column;gap:10px;color:#475467;margin-top:15px}.progress-meta{display:flex;align-items:center;gap:10px;justify-content:flex-start}.progress-meta strong{margin-left:auto;color:#0f172a}.progress-bar{height:10px;background:#e2e8f0;border-radius:999px;overflow:hidden}.progress-bar span{display:block;height:100%;width:0;background:linear-gradient(90deg,#2563eb,#4f8dff);border-radius:999px;transition:width .18s ease}
.spinner{width:18px;height:18px;border:2px solid #d0d5dd;border-top-color:#2563eb;border-radius:50%;animation:wcspin .7s linear infinite}@keyframes wcspin{to{transform:rotate(360deg)}}
.module-meta{display:grid;grid-template-columns:130px 1fr;gap:12px 18px}.module-meta dt{font-weight:750}.module-meta dd{margin:0;color:#475467}
.tool-title-line{display:flex;align-items:center;gap:14px}.tool-title-line h1{margin:0}.tool-title-icon{width:52px;height:52px;border-radius:13px;object-fit:cover;display:block;flex:0 0 52px}
.upload-dropzone{position:relative;border:2px dashed #bfd0ec;border-radius:14px;background:#f8fbff;padding:20px;text-align:center;cursor:pointer;transition:border-color .18s ease,background-color .18s ease,box-shadow .18s ease;outline:none}.upload-dropzone:hover,.upload-dropzone:focus,.upload-dropzone.is-dragover{border-color:#2563eb;background:#eef4ff;box-shadow:0 0 0 4px rgba(37,99,235,.08)}.upload-dropzone-inner{display:grid;gap:6px;justify-items:center}.upload-icon{width:42px;height:42px;border-radius:999px;background:#dbeafe;color:#1d4ed8;display:grid;place-items:center;font-weight:900;font-size:22px}.upload-title{font-weight:800;color:#0f172a}.upload-note{color:#667085;font-size:14px}.sr-only-file{position:absolute;inset:0;opacity:0;pointer-events:none;width:100%;height:100%}
@media(max-width:850px){.tool-workspace{grid-template-columns:1fr}.options-grid-2{grid-template-columns:1fr 110px}.preview-stage{min-height:220px}}@media(max-width:520px){.options-grid-2{grid-template-columns:1fr}.result-actions{flex-direction:column}.tool-form,.preview-card{padding:18px}.draggable-text{font-size:28px}}
