/* Newtil 실무 도구 공용 스타일 (파일명 변경·블로그 정리·모자이크·에디터·GIF 등) */
.nt-tool-workspace .nt-drop{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:150px;padding:22px;border:2px dashed #cbd5e1;border-radius:16px;background:var(--nt-soft,#f8fafc);text-align:center;cursor:pointer;transition:border-color .15s,background .15s}
.nt-tool-workspace .nt-drop:hover,.nt-tool-workspace .nt-drop.is-over{border-color:var(--nt-accent,#0f766e);background:rgba(15,118,110,.06)}
.nt-tool-workspace .nt-drop strong{font-size:1rem}
.nt-tool-workspace .nt-drop span{color:var(--nt-muted,#64748b);font-size:.84rem}
.nt-tool-workspace .nt-drop input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%;min-height:0;padding:0;border:0}
.nt-kbd{display:inline-block;padding:1px 7px;border:1px solid #cbd5e1;border-bottom-width:2px;border-radius:6px;background:#fff;font-size:.78rem;font-weight:700}
.nt-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.nt-grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.nt-field{margin-bottom:14px}
.nt-field-row{display:flex;flex-wrap:wrap;gap:12px}
.nt-field-row>.nt-field{flex:1 1 150px;min-width:0}
.nt-hint{margin:6px 0 0;color:var(--nt-muted,#64748b);font-size:.82rem;line-height:1.55}
.nt-status{margin:14px 0 0;color:var(--nt-muted,#64748b);font-size:.88rem;min-height:1.3em}
.nt-status.is-error{color:#dc2626}
.nt-status.is-ok{color:#0f766e}
.nt-btn.nt-btn-secondary{background:#fff;color:var(--nt-ink,#0f172a);border:1px solid #cbd5e1}
.nt-btn[disabled]{opacity:.5;cursor:not-allowed}
.nt-check{display:inline-flex;align-items:center;gap:7px;padding:8px 12px;border:1px solid var(--nt-line,#e2e8f0);border-radius:999px;font-size:.84rem;margin:0 6px 8px 0;cursor:pointer}
.nt-tool-workspace .nt-check input{width:auto;margin:0}
.nt-tool-workspace .nt-check{display:inline-flex;font-weight:600}
.nt-notice{margin:14px 0 0;padding:12px 14px;border-radius:12px;background:#fffbeb;border:1px solid #fde68a;color:#78350f;font-size:.84rem;line-height:1.6}

/* 파일 목록 (파일명 변경) */
.nt-file-list{list-style:none;margin:14px 0 0;padding:0;border:1px solid var(--nt-line,#e2e8f0);border-radius:14px;overflow:hidden}
.nt-file-list li{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:9px 12px;border-bottom:1px solid var(--nt-line,#e2e8f0);background:#fff;font-size:.86rem}
.nt-file-list li:last-child{border-bottom:0}
.nt-file-list li.is-drag{opacity:.45}
.nt-file-list .nt-handle{cursor:grab;color:#94a3b8;user-select:none;padding:0 4px}
.nt-file-names{min-width:0;display:grid;gap:2px}
.nt-file-names .old{color:var(--nt-muted,#64748b);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nt-file-names .new{font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nt-file-names .new.is-dup{color:#dc2626}
.nt-file-actions{display:flex;gap:4px}
.nt-mini{border:1px solid #cbd5e1;background:#fff;border-radius:8px;width:30px;height:30px;cursor:pointer;font-size:.85rem;line-height:1}
.nt-mini:hover{border-color:var(--nt-accent,#0f766e);color:var(--nt-accent,#0f766e)}

/* 블로그 미리보기 */
.nt-blog-preview{min-height:210px;padding:20px;border:1px solid #cbd5e1;border-radius:12px;background:#fff;white-space:pre-wrap;word-break:keep-all;overflow-wrap:anywhere;line-height:1.9;font-size:.96rem;overflow:auto}
.nt-blog-preview.is-center{text-align:center}
.nt-blog-preview .tags{display:block;margin-top:14px;color:var(--nt-accent-2,#2563eb)}

/* 캔버스 편집 영역 (모자이크·에디터·배경) */
.nt-stage-wrap{position:relative;border:1px solid var(--nt-line,#e2e8f0);border-radius:14px;background:conic-gradient(#eef2f7 25%,#fff 0 50%,#eef2f7 0 75%,#fff 0) 0 0/20px 20px;overflow:auto;max-height:70vh;text-align:center;touch-action:none}
.nt-stage{position:relative;display:inline-block;max-width:100%;line-height:0;user-select:none}
.nt-stage canvas{max-width:100%;height:auto;display:block;touch-action:none}
.nt-stage .nt-overlay{position:absolute;inset:0;width:100%;height:100%;cursor:crosshair}
.nt-thumbs{display:flex;gap:8px;overflow-x:auto;padding:10px 2px}
.nt-thumb{flex:0 0 auto;width:74px;height:74px;border:2px solid transparent;border-radius:10px;overflow:hidden;cursor:pointer;background:#e2e8f0;position:relative;padding:0}
.nt-thumb.is-active{border-color:var(--nt-accent,#0f766e)}
.nt-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.nt-thumb .badge{position:absolute;right:3px;bottom:3px;background:#0f766e;color:#fff;border-radius:999px;font-size:.66rem;font-weight:800;padding:1px 6px}
.nt-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.nt-toolbar .nt-btn{padding:8px 13px;font-size:.85rem}
.nt-toolbar .nt-btn.is-on{background:#0f172a;color:#fff;border-color:#0f172a}
.nt-side{display:grid;gap:4px}
.nt-workbench{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px;align-items:start}
.nt-range{display:flex;align-items:center;gap:10px}
.nt-range input[type=range]{padding:0;border:0;min-height:0}
.nt-range output{min-width:2.6em;text-align:right;font-weight:800;font-size:.86rem}
.nt-tool-workspace input[type=color]{padding:2px;min-height:38px;height:38px;width:100%}
.nt-tool-workspace input[type=checkbox],.nt-tool-workspace input[type=radio],.nt-tool-workspace input[type=range]{width:auto}
.nt-tool-workspace input[type=range]{width:100%}
.nt-result-list{display:grid;gap:8px;margin-top:14px}
.nt-result-item{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 14px;border:1px solid var(--nt-line,#e2e8f0);border-radius:12px;background:#fff;font-size:.86rem}
.nt-result-item a{color:var(--nt-accent,#0f766e);font-weight:800;text-decoration:none}
.nt-progress{height:8px;border-radius:999px;background:#e2e8f0;overflow:hidden;margin-top:12px}
.nt-progress>i{display:block;height:100%;width:0;background:var(--nt-accent,#0f766e);transition:width .2s}
@media(max-width:860px){.nt-workbench{grid-template-columns:1fr}.nt-grid-2,.nt-grid-3{grid-template-columns:1fr}}
[data-theme=dark] .nt-drop,[data-theme=dark] .nt-file-list li,[data-theme=dark] .nt-blog-preview,[data-theme=dark] .nt-result-item,[data-theme=dark] .nt-mini,[data-theme=dark] .nt-check,[data-theme=dark] .nt-kbd{background:#0b1220;color:#e2e8f0;border-color:#273449}
[data-theme=dark] .nt-btn.nt-btn-secondary{background:#0b1220;color:#e2e8f0;border-color:#273449}
[data-theme=dark] .nt-notice{background:#2a2110;border-color:#5b4a14;color:#fde68a}

/* hidden 속성 보장 + 이미지 도구 골격(image-tools-page) 안에서의 보조 스타일 */
.nt-workbench[hidden],.nt-stage-wrap[hidden],[data-seq][hidden],[data-rep][hidden]{display:none}
.image-tools-page .nt-drop{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:140px;padding:22px;border:2px dashed #cbd5e1;border-radius:16px;background:rgba(248,250,252,.7);text-align:center;cursor:pointer}
.image-tools-page .nt-drop.is-over{border-color:#0f766e;background:rgba(15,118,110,.06)}
.image-tools-page .nt-drop span{color:#64748b;font-size:.84rem}
.image-tools-page .nt-drop input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}
.image-tools-page .nt-toolbar .image-tool-button{padding:8px 13px;font-size:.85rem;min-height:0}
.image-tools-page .nt-toolbar .image-tool-button.is-on{background:#0f172a;color:#fff;border-color:#0f172a}
.image-tools-page .nt-field label,.image-tools-page .nt-side label{display:block;margin:0 0 6px;font-weight:700;font-size:.88rem}
.image-tools-page .nt-field select,.image-tools-page .nt-field input[type=text],.image-tools-page .nt-field input[type=number],.image-tools-page .nt-side select,.image-tools-page .nt-side input[type=text]{width:100%;box-sizing:border-box;min-height:40px;padding:8px 10px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:inherit;font:inherit}
.image-tools-page .nt-side input[type=range]{width:100%}
.image-tools-page .nt-side .nt-check input{width:auto}
.image-tools-page .nt-status{margin:14px 0 0;color:#64748b;font-size:.88rem;min-height:1.3em}
.image-tools-page .nt-status.is-error{color:#dc2626}
.image-tools-page .nt-status.is-ok{color:#0f766e}
.image-tools-page .nt-kbd{display:inline-block;padding:1px 7px;border:1px solid #cbd5e1;border-bottom-width:2px;border-radius:6px;background:#fff;font-size:.78rem;font-weight:700;color:#0f172a}
.image-tools-page .nt-check{display:inline-flex;align-items:center;gap:7px;padding:8px 12px;border:1px solid #e2e8f0;border-radius:999px;font-size:.84rem;margin:0 6px 8px 0;cursor:pointer;background:#fff;color:#0f172a}
.image-tools-page .nt-notice{margin:16px 0 0}
.image-tools-page .nt-btn-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
[data-theme=dark] .image-tools-page .nt-drop,[data-theme=dark] .image-tools-page .nt-check,[data-theme=dark] .image-tools-page .nt-kbd{background:#0b1220;color:#e2e8f0;border-color:#273449}
[data-theme=dark] .image-tools-page .nt-field select,[data-theme=dark] .image-tools-page .nt-side select,[data-theme=dark] .image-tools-page .nt-side input[type=text]{background:#0b1220;color:#e2e8f0;border-color:#273449}

/* 배경 제거 에디터(remove-bg) */
.bg-editor{margin:22px 0 8px;text-align:left}
.bg-editor .bg-editor-title{font-size:1.25rem;margin:0 0 6px}
.bg-editor .bg-editor-sub{margin:0 0 14px;color:#64748b;font-size:.92rem;line-height:1.6}
.bg-editor .nt-drop{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:130px;padding:20px;border:2px dashed #cbd5e1;border-radius:16px;background:rgba(248,250,252,.7);text-align:center;cursor:pointer}
.bg-editor .nt-drop.is-over{border-color:#0f766e;background:rgba(15,118,110,.06)}
.bg-editor .nt-drop span{color:#64748b;font-size:.84rem}
.bg-editor .nt-drop input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}
.bg-editor .bg-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:9px 15px;border-radius:12px;border:1px solid #cbd5e1;background:#fff;color:#0f172a;font:inherit;font-size:.86rem;font-weight:700;cursor:pointer;line-height:1.2}
.bg-editor .bg-btn:hover{border-color:#0f766e}
.bg-editor .bg-btn[disabled]{opacity:.5;cursor:not-allowed}
.bg-editor .bg-btn-primary{background:linear-gradient(135deg,#6366f1,#ec4899);border-color:transparent;color:#fff}
.bg-editor .bg-btn-primary:hover{border-color:transparent;filter:brightness(1.06)}
.bg-editor .bg-btn.is-on{background:#0f172a;color:#fff;border-color:#0f172a}
.bg-editor .nt-side .bg-btn{width:100%}
.bg-editor .nt-field label,.bg-editor .nt-side label{display:block;margin:0 0 6px;font-weight:700;font-size:.88rem}
.bg-editor .nt-field select{width:100%;box-sizing:border-box;min-height:40px;padding:8px 10px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:inherit;font:inherit}
.bg-editor input[type=color]{width:100%;height:40px;padding:2px}
.bg-editor .nt-side input[type=range]{width:100%}
.bg-editor .nt-check{display:inline-flex;align-items:center;gap:7px;padding:8px 12px;border:1px solid #e2e8f0;border-radius:999px;font-size:.84rem;margin:0 6px 8px 0;cursor:pointer;background:#fff;color:#0f172a}
.bg-editor .nt-check input{width:auto}
.bg-editor .nt-status{margin:14px 0 0;color:#64748b;font-size:.88rem;min-height:1.3em}
.bg-editor .nt-status.is-error{color:#dc2626}.bg-editor .nt-status.is-ok{color:#0f766e}
.bg-editor .nt-notice{margin:14px 0 0}
.bg-editor .nt-btn-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.bg-editor .nt-kbd{display:inline-block;padding:1px 7px;border:1px solid #cbd5e1;border-bottom-width:2px;border-radius:6px;background:#fff;font-size:.78rem;font-weight:700;color:#0f172a}
.bg-swatches{display:flex;gap:8px;margin-top:8px}
.bg-swatches button{width:28px;height:28px;border-radius:50%;border:2px solid #cbd5e1;cursor:pointer;padding:0}
.bg-editor-stage{background:conic-gradient(#e5e7eb 25%,#fff 0 50%,#e5e7eb 0 75%,#fff 0) 0 0/20px 20px}
.bg-legacy{margin-top:26px;border:1px solid #e2e8f0;border-radius:14px;padding:4px 16px}
.bg-legacy>summary{cursor:pointer;font-weight:700;padding:12px 0}
.bg-legacy[open]>summary{margin-bottom:8px}
[data-theme=dark] .bg-editor .bg-btn-secondary,[data-theme=dark] .bg-editor .nt-drop,[data-theme=dark] .bg-editor .nt-check,[data-theme=dark] .bg-editor .nt-kbd,[data-theme=dark] .bg-editor .nt-field select{background:#0b1220;color:#e2e8f0;border-color:#273449}
[data-theme=dark] .bg-legacy{border-color:#273449}

/* GIF 스튜디오 */
.gif-studio .gs-videos{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.gif-studio .gs-chip{padding:7px 12px;border:1px solid #cbd5e1;border-radius:999px;background:#fff;color:#0f172a;font:inherit;font-size:.82rem;font-weight:700;cursor:pointer;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gif-studio .gs-chip.is-on{background:#0f172a;color:#fff;border-color:#0f172a}
.gif-studio .gs-player{width:100%;max-height:60vh;background:#000;border-radius:12px;display:block}
.gif-studio .gs-time-row{margin:6px 0 0;font-size:.82rem;color:#64748b;font-variant-numeric:tabular-nums}
.gif-studio .gs-clips{list-style:none;margin:8px 0 0;padding:0;border:1px solid #e2e8f0;border-radius:12px;overflow:hidden}
.gif-studio .gs-clips:empty{display:none}
.gif-studio .gs-clip{display:grid;grid-template-columns:28px 1fr 1fr auto auto;gap:8px;align-items:center;padding:8px 10px;border-bottom:1px solid #e2e8f0;background:#fff;font-size:.84rem}
.gif-studio .gs-clip:last-child{border-bottom:0}
.gif-studio .gs-clip label{margin:0;font-weight:600;display:flex;align-items:center;gap:6px}
.gif-studio .gs-clip input{width:100%;min-width:0;box-sizing:border-box;padding:6px 8px;border:1px solid #cbd5e1;border-radius:8px;font:inherit}
.gif-studio .gs-clip-n{font-weight:800;color:#0f766e}
.gif-studio .gs-clip-d{color:#64748b;white-space:nowrap}
.gif-studio .gs-clip-act{display:flex;gap:4px}
.gif-studio .gs-mini{border:1px solid #cbd5e1;background:#fff;border-radius:8px;width:30px;height:30px;cursor:pointer}
.gif-studio .gs-thumb{width:72px;height:54px;object-fit:contain;background:#f1f5f9;border-radius:8px}
.gif-studio .nt-result-item{display:flex;align-items:center;gap:12px}
@media(max-width:640px){.gif-studio .gs-clip{grid-template-columns:24px 1fr 1fr}.gif-studio .gs-clip-d,.gif-studio .gs-clip-act{grid-column:2/4}}
[data-theme=dark] .gif-studio .gs-chip,[data-theme=dark] .gif-studio .gs-clip,[data-theme=dark] .gif-studio .gs-mini,[data-theme=dark] .gif-studio .gs-clip input{background:#0b1220;color:#e2e8f0;border-color:#273449}

/* 사진·문서 서명 */
.sd-app .sd-preview{min-height:96px;display:flex;align-items:center;justify-content:center;margin:0 0 12px;padding:10px;border:1px dashed #cbd5e1;border-radius:12px;background:#fff}
.sd-app .sd-preview img{max-height:110px;max-width:100%}
.sd-app .sd-checker{background:conic-gradient(#eef2f7 25%,#fff 0 50%,#eef2f7 0 75%,#fff 0) 0 0/16px 16px}
.sd-app .sd-draw{width:100%;max-width:720px;height:auto;display:block;border:1px solid #cbd5e1;border-radius:12px;background:#fff;touch-action:none;cursor:crosshair}
.sd-app .sd-sigs{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px}
.sd-app .sd-sig{border:1px solid #cbd5e1;border-radius:10px;background:#fff;padding:6px 10px;cursor:pointer}
.sd-app .sd-sig:hover{border-color:#0f766e}
.sd-app .sd-sig img{height:44px;display:block}
.sd-app .sd-pages{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 10px}
.sd-app .sd-pages[hidden]{display:none}
.sd-app .sd-pg{padding:6px 11px;border:1px solid #cbd5e1;border-radius:999px;background:#fff;font:inherit;font-size:.82rem;font-weight:700;cursor:pointer}
.sd-app .sd-pg.is-on{background:#0f172a;color:#fff;border-color:#0f172a}
.sd-app .sd-stage{overflow:auto;max-height:80vh;border:1px solid var(--nt-line,#e2e8f0);border-radius:12px;background:#e5e7eb;padding:12px;text-align:center}
.sd-app .sd-pagebox{position:relative;display:inline-block;line-height:0;max-width:100%;box-shadow:0 4px 18px rgba(0,0,0,.18);background:#fff}
.sd-app .sd-pagebox canvas{max-width:100%;height:auto;display:block}
.sd-app .sd-layer{position:absolute;left:0;top:0;touch-action:none}
.sd-app .sd-mark{position:absolute;cursor:move;touch-action:none;outline:1px dashed transparent}
.sd-app .sd-mark img{width:100%;height:100%;display:block;pointer-events:none;user-select:none}
.sd-app .sd-mark.is-sel{outline:2px dashed #0f766e}
.sd-app .sd-h{position:absolute;right:-7px;bottom:-7px;width:14px;height:14px;border-radius:50%;background:#fff;border:2px solid #0f766e;cursor:nwse-resize;display:none}
.sd-app .sd-mark.is-sel .sd-h{display:block}
[data-theme=dark] .sd-app .sd-preview,[data-theme=dark] .sd-app .sd-sig,[data-theme=dark] .sd-app .sd-pg{background:#0b1220;color:#e2e8f0;border-color:#273449}

/* 화면녹화 GIF */
.rec-app .rec-stage{position:relative;display:inline-block;max-width:100%;line-height:0;background:#0f172a;border-radius:12px;overflow:hidden}
.rec-app .rec-preview{max-width:100%;max-height:60vh;display:block}
.rec-app .rec-overlay{position:absolute;left:0;top:0;cursor:crosshair;touch-action:none}
.rec-app .rec-timer{align-self:center;font-variant-numeric:tabular-nums;color:#dc2626;font-weight:800}
.rec-app .rec-result{margin-top:14px;padding:14px;border:1px solid var(--nt-line,#e2e8f0);border-radius:14px;background:#fff}
.rec-app .rec-result[hidden],.rec-app [data-stage][hidden]{display:none}
.rec-app .rec-result-img{max-width:100%;max-height:50vh;display:block;margin-bottom:8px;border-radius:8px}
[data-theme=dark] .rec-app .rec-result{background:#0b1220;border-color:#273449}

/* PDF 페이지 관리자 */
.pm-app .pm-grid{list-style:none;margin:10px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px}
.pm-app .pm-grid:empty{display:none}
.pm-app .pm-card{position:relative;padding:8px;border:2px solid var(--nt-line,#e2e8f0);border-radius:12px;background:#fff;cursor:grab}
.pm-app .pm-card.is-sel{border-color:#0f766e;background:rgba(15,118,110,.06)}
.pm-app .pm-card.is-drag{opacity:.4}
.pm-app .pm-sel{position:absolute;left:10px;top:8px;z-index:2;margin:0;padding:0}
.pm-app .pm-sel input{width:18px;height:18px;margin:0}
.pm-app .pm-thumb{position:relative;width:100%;background:#f1f5f9;border-radius:6px;overflow:hidden;display:flex;align-items:center;justify-content:center}
.pm-app .pm-thumb img{display:block;max-width:100%;max-height:100%;object-fit:contain;transition:transform .15s}
.pm-app .pm-blank{color:#94a3b8;font-size:.8rem}
.pm-app .pm-blank[hidden],.pm-app .pm-thumb img[hidden]{display:none}
.pm-app .pm-name{margin-top:6px;font-size:.76rem;color:#475569;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pm-app .pm-act{display:flex;justify-content:space-between;gap:2px;margin-top:5px}
.pm-app .pm-act button{flex:1;padding:4px 0;border:1px solid #cbd5e1;background:#fff;border-radius:6px;cursor:pointer;font-size:.78rem;line-height:1.2}
.pm-app .pm-act button:hover{border-color:#0f766e;color:#0f766e}
[data-theme=dark] .pm-app .pm-card,[data-theme=dark] .pm-app .pm-act button{background:#0b1220;color:#e2e8f0;border-color:#273449}
[data-theme=dark] .pm-app .pm-thumb{background:#141f30}

/* 페이지 캡처 안내 */
.pc-app .pc-steps{margin:14px 0 0;padding-left:22px;line-height:1.9}
.pc-app code{padding:1px 6px;border-radius:6px;background:#f1f5f9;font-size:.86rem}
[data-theme=dark] .pc-app code{background:#141f30}
