/* Scoped image tools; load after workspace.css. */
.seller-toolbox-root .sh-image-tool{--image-blue:#365bb8;--image-line:#dce4f0;color:#263b55;min-width:0}
.sh-image-tool *{box-sizing:border-box}.sh-image-tool [hidden]{display:none!important}
.sh-image-tool .sh-image-form{margin-top:18px;min-width:0}
.sh-image-tool .sh-image-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-height:174px;width:100%;margin:0;padding:24px 18px;border:1.5px dashed #9ab0d5;border-radius:10px;background:#f7faff;text-align:center;cursor:pointer}
.sh-image-tool .sh-image-drop strong{font-size:15px;font-weight:750;color:#2d4a80;line-height:1.5}
.sh-image-tool .sh-image-drop>span{font-size:13px;color:#61738d}
.sh-image-tool .sh-image-drop.is-dragging,.sh-image-tool .sh-image-drop:focus-within{border-color:#365bb8;background:#edf3ff;outline:2px solid #94abe1;outline-offset:2px}
.sh-image-tool .sh-image-file{display:block;max-width:100%;width:330px;padding:5px 0;border:0;border-radius:0;background:transparent;font-size:13px;color:#4d6280;cursor:pointer}
.sh-image-tool .sh-image-file::file-selector-button{padding:8px 13px;margin-right:10px;border:1px solid #b8c7df;border-radius:6px;background:#fff;color:#3456a0;font:inherit;font-weight:700;cursor:pointer}
.sh-image-tool .sh-image-help,.sh-image-tool .sh-image-privacy{margin:10px 0;color:#66758b;font-size:12px;line-height:1.75;overflow-wrap:anywhere}
.sh-image-tool .sh-image-privacy{padding:10px 12px;border-radius:6px;background:#f3f6fa;color:#556981}
.sh-image-tool .sh-image-options{display:grid;grid-template-columns:1fr 1.2fr 1.2fr;gap:16px;margin-top:20px}
.sh-image-tool .sh-image-options>label{display:flex;flex-direction:column;gap:8px;min-width:0;font-size:14px;font-weight:650;color:#34465d;line-height:1.5}
.sh-image-tool .sh-image-options select,.sh-image-tool .sh-image-options input[type=number]{width:100%;min-width:0;min-height:42px;padding:8px 10px;border:1px solid #ccd6e4;border-radius:6px;background:#fff;color:#2a3d56;font:inherit;font-size:14px}
.sh-image-tool .sh-image-quality-control{display:flex;align-items:center;gap:9px;min-height:42px}
.sh-image-tool .sh-image-quality-control input{flex:1;min-width:0;width:100%;accent-color:#365bb8;cursor:pointer}
.sh-image-tool .sh-image-quality-control output{flex:none;min-width:39px;color:#365bb8;font-size:13px;font-weight:750;text-align:right}
.sh-image-tool .sh-image-options input:disabled{opacity:.4;cursor:default}
.sh-image-tool .sh-image-options input:focus-visible,.sh-image-tool select:focus-visible,.sh-image-tool button:focus-visible,.sh-image-tool a:focus-visible{outline:2px solid #5b79cf;outline-offset:3px}
.sh-image-tool .sh-image-options input[aria-invalid=true]{border-color:#bb4343}
.sh-image-tool .sh-image-merge{margin:15px 0 0;padding:13px 15px;border:1px solid #bdcee9;border-radius:8px;background:#f3f7ff}
.sh-image-tool .sh-image-merge label{display:flex;align-items:center;gap:9px;color:#284a91;font-size:14px;font-weight:750;cursor:pointer}
.sh-image-tool .sh-image-merge input{width:17px;height:17px;margin:0;accent-color:#365bb8}
.sh-image-tool .sh-image-merge .sh-image-help{margin:6px 0 0 26px;color:#536682}
.sh-image-tool .sh-image-pdf-options,.sh-image-tool .sh-image-pdf-plan,.sh-image-tool .sh-image-pdf-compression{margin:15px 0 0;padding:15px;border:1px solid #c8d6e9;border-radius:9px;background:#f8fbff}
.sh-image-tool .sh-image-pdf-options h4,.sh-image-tool .sh-image-pdf-plan h4,.sh-image-tool .sh-image-pdf-gallery h4{margin:0 0 11px;color:#24477e;font-size:15px;line-height:1.5}
.sh-image-tool .sh-image-pdf-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.sh-image-tool .sh-image-pdf-fields label{display:grid;gap:7px;min-width:0;color:#34465d;font-size:13px;font-weight:700}
.sh-image-tool .sh-image-pdf-fields select,.sh-image-tool .sh-image-pdf-fields input{width:100%;min-width:0;min-height:42px;padding:8px 10px;border:1px solid #bdcee4;border-radius:6px;background:#fff;color:#273b57;font:inherit;font-weight:500}
.sh-image-tool .sh-image-pdf-fields [aria-invalid=true]{border-color:#bb4343}
.sh-image-tool .sh-image-pdf-compression>label{display:grid;gap:7px;color:#24477e;font-size:14px;font-weight:700}
.sh-image-tool .sh-image-pdf-compression select{width:100%;min-width:0;min-height:42px;padding:8px 10px;border:1px solid #bdcee4;border-radius:6px;background:#fff;color:#273b57;font:inherit;font-weight:500}
.sh-image-tool .sh-image-pdf-options .sh-image-help,.sh-image-tool .sh-image-pdf-plan .sh-image-help,.sh-image-tool .sh-image-pdf-compression .sh-image-help{margin:10px 0 0;color:#526884}
.sh-image-tool .sh-image-pdf-plan-pages{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr));align-items:start;gap:14px;margin-top:14px}
.sh-image-tool .sh-image-pdf-plan-item{min-width:0;margin:0;padding:11px;border:1px solid #dce5f0;border-radius:8px;background:#fff}
.sh-image-tool .sh-image-pdf-plan-sheet{position:relative;width:100%;max-width:210px;margin:auto;overflow:hidden;border:1px solid #d5dce6;background:#fff;box-shadow:0 2px 8px #25456d18}
.sh-image-tool .sh-image-pdf-plan-sheet img{position:absolute;display:block;object-fit:fill}
.sh-image-tool .sh-image-pdf-plan-item figcaption{margin-top:9px;color:#45607e;font-size:12px;line-height:1.45;overflow-wrap:anywhere;text-align:center}
.sh-image-tool .sh-image-actions{display:flex;gap:10px;align-items:center;margin-top:19px}
.seller-toolbox-root .sh-image-tool .sh-image-run{display:inline-flex;align-items:center;justify-content:center;width:auto;min-width:150px;min-height:44px;margin:0;padding:10px 22px;border:1px solid #365bb8;border-radius:7px;background:#365bb8;color:#fff;font-size:14px;font-weight:750;line-height:1.5;cursor:pointer}
.seller-toolbox-root .sh-image-tool .sh-image-run:hover{background:#274a9f}
.sh-image-tool .sh-image-clear,.sh-image-tool .sh-image-defaults{min-height:44px;padding:9px 14px;border:1px solid #ced8e6;border-radius:7px;background:#fff;color:#566780;font:inherit;font-size:13px;cursor:pointer}
.seller-toolbox-root .sh-image-tool button:disabled{opacity:.45;cursor:default}
.sh-image-tool .sh-image-status{min-height:21px;margin:14px 0;font-size:13px;line-height:1.7;color:#476491}
.sh-image-tool .sh-image-batch-downloads{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:0 0 17px;padding:15px;border:1px solid #9ab5de;border-radius:9px;background:#eef5ff;color:#244984}
.sh-image-tool .sh-image-batch-downloads strong{font-size:14px;line-height:1.5}
.sh-image-tool .sh-image-batch-downloads figure{width:160px;max-width:100%;margin:0;order:2}
.sh-image-tool .sh-image-batch-downloads img{display:block;width:100%;height:105px;object-fit:contain;background:#fff;border-radius:5px}
.sh-image-tool .sh-image-batch-downloads figcaption{font-size:11px;color:#5c718c}
.sh-image-tool .sh-image-pdf-gallery{flex:1 0 100%;min-width:0;padding-top:14px;border-top:1px solid #cbdcf1}
.sh-image-tool .sh-image-batch-downloads .sh-image-pdf-selected{width:min(100%,470px);max-width:100%;margin:0 auto 14px;text-align:center}
.sh-image-tool .sh-image-pdf-selected img{display:block;width:100%;height:auto;max-height:560px;object-fit:contain;border:1px solid #d7e0ec;border-radius:5px;background:#fff;box-shadow:0 3px 10px #25456d1c}
.sh-image-tool .sh-image-pdf-selected figcaption{margin-top:8px;font-size:12px;line-height:1.5;color:#345580;overflow-wrap:anywhere}
.sh-image-tool .sh-image-pdf-page-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,95px),1fr));gap:9px}
.sh-image-tool .sh-image-pdf-page-choice{display:grid;justify-items:center;gap:5px;min-width:0;padding:7px;border:1px solid #bccde5;border-radius:7px;background:#fff;color:#3b587d;font:inherit;font-size:12px;cursor:pointer}
.sh-image-tool .sh-image-pdf-page-choice[aria-pressed=true]{border-color:#315bb6;box-shadow:inset 0 0 0 1px #315bb6;color:#214b9e;font-weight:750}
.sh-image-tool .sh-image-pdf-page-choice img{display:block;width:auto;max-width:100%;height:100px;object-fit:contain;background:#fff}
.sh-image-tool .sh-image-pdf-page-choice span{line-height:1.3}
.seller-toolbox-root .sh-image-tool .sh-image-batch-downloads .sh-image-download{background:#315bb6;color:#fff;border-color:#315bb6}
.sh-image-tool .sh-image-error{padding:11px 13px;margin:12px 0;border:1px solid #eed1d1;border-radius:6px;background:#fff6f6;color:#9d3535;font-size:13px;line-height:1.7}
.sh-image-tool .sh-image-results{display:grid;gap:17px;min-width:0}
.sh-image-tool .sh-image-file-card{min-width:0;padding:18px;border:1px solid var(--image-line);border-radius:9px;background:#fff}
.sh-image-tool .sh-image-filename{margin:0 0 14px;color:#263d5e;font-size:14px;font-weight:750;line-height:1.6;overflow-wrap:anywhere;word-break:break-word}
.sh-image-tool .sh-image-order{display:flex;align-items:center;gap:8px;margin:-6px 0 13px;color:#3d5b8d;font-size:12px;font-weight:700}
.sh-image-tool .sh-image-order button{padding:4px 9px;border:1px solid #c3d2e8;border-radius:5px;background:#fff;color:#3d5b8d;font:inherit;cursor:pointer}
.sh-image-tool .sh-image-previews{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.sh-image-tool .sh-image-previews figure{margin:0;min-width:0;overflow:hidden;border:1px solid #e0e6ee;border-radius:6px;background:#f7f9fc}
.sh-image-tool .sh-image-previews img{display:block;width:100%;height:164px;object-fit:contain;padding:8px;background-color:#fff;background-image:linear-gradient(45deg,#edf0f4 25%,transparent 25%),linear-gradient(-45deg,#edf0f4 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#edf0f4 75%),linear-gradient(-45deg,transparent 75%,#edf0f4 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0}
.sh-image-tool .sh-image-previews figcaption{padding:7px 10px;font-size:12px;line-height:1.4;color:#5c718c;text-align:center}
.sh-image-tool .sh-image-info{display:grid;gap:0;margin:13px 0;font-size:12px;line-height:1.65}
.sh-image-tool .sh-image-info>div{display:grid;grid-template-columns:92px minmax(0,1fr);gap:12px;padding:7px 0;border-bottom:1px solid #edf0f5}
.sh-image-tool .sh-image-info dt{color:#677990;font-weight:500}.sh-image-tool .sh-image-info dd{margin:0;color:#304761;text-align:right;font-weight:650;overflow-wrap:anywhere}
.sh-image-tool .sh-image-change{margin:13px 0;padding:10px 12px;border-left:3px solid #5477c3;border-radius:4px;background:#f0f5ff;color:#30549d;font-size:13px;line-height:1.7;font-weight:650}
.sh-image-tool .sh-image-change.is-larger{border-left-color:#c9a066;background:#fbf7ef;color:#7e5b28}
.sh-image-tool .sh-image-warning{margin:10px 0;color:#8d612f;font-size:12px;line-height:1.75}
.sh-image-tool .sh-image-data-loss{padding:11px 13px;border-left:4px solid #bd6b24;border-radius:8px;background:#fff2e1;color:#6f3819;font-size:13px;line-height:1.65}
.sh-image-tool .sh-image-downloads{display:flex;align-items:center;gap:15px;flex-wrap:wrap;margin-top:14px}
.seller-toolbox-root .sh-image-tool .sh-image-download{display:inline-flex;align-items:center;justify-content:center;min-height:39px;padding:8px 13px;border:1px solid #b9ccec;border-radius:6px;background:#f1f6ff;color:#345aab;font-size:13px;font-weight:750;text-decoration:none}
.seller-toolbox-root .sh-image-tool .sh-image-original{display:inline-block;padding:8px 0;color:#62758e;font-size:12px;text-decoration:underline;text-underline-offset:3px}
.sh-image-tool .sh-image-result-pdf-preview{min-width:0;margin-top:17px;border:1px solid #c8d6e9;border-radius:8px;background:#f8fbff}
.sh-image-tool .sh-image-result-pdf-preview>summary{padding:13px 14px;color:#24477e;font-size:14px;font-weight:750;line-height:1.5;cursor:pointer;overflow-wrap:anywhere}
.sh-image-tool .sh-image-result-pdf-preview>summary:focus-visible{outline:2px solid #5b79cf;outline-offset:3px}
.sh-image-tool .sh-image-pdf-viewer-body{min-width:0;padding:0 12px 13px}
.sh-image-tool .sh-image-pdf-viewer-body>.sh-image-help{margin:0 0 13px}
.sh-image-tool .sh-image-pdf-viewer-toolbar{display:grid;grid-template-columns:auto minmax(65px,1fr) auto minmax(115px,1.2fr);align-items:end;gap:8px;min-width:0;margin-bottom:10px}
.sh-image-tool .sh-image-pdf-viewer-toolbar label{display:grid;gap:5px;min-width:0;font-size:12px;color:#45607e}
.sh-image-tool .sh-image-pdf-viewer-toolbar select,.sh-image-tool .sh-image-pdf-viewer-toolbar button{min-width:0;min-height:40px;margin:0;padding:7px 9px;border:1px solid #bdcee4;border-radius:6px;background:#fff;color:#2b4c7f;font:inherit;font-size:13px}
.sh-image-tool .sh-image-pdf-viewer-toolbar select{width:100%}
.sh-image-tool .sh-image-pdf-viewer-toolbar button{cursor:pointer}
.sh-image-tool .sh-image-pdf-viewport{min-width:0;max-width:100%;min-height:80px;max-height:min(65vh,600px);overflow:auto;overscroll-behavior:contain;border:1px solid #d6e0eb;border-radius:6px;background:#e8edf4;scrollbar-gutter:stable}
.sh-image-tool .sh-image-pdf-viewport:focus-visible{outline:2px solid #5b79cf;outline-offset:2px}
.sh-image-tool .sh-image-pdf-viewer-sheet{width:max-content;min-width:100%;padding:12px}
.sh-image-tool .sh-image-pdf-viewer-sheet img{display:block;max-width:none!important;height:auto;max-height:none;margin:0 auto;background:#fff;box-shadow:0 2px 9px #263b5526}
.sh-image-tool .sh-image-pdf-viewer-status{margin:0 0 8px;color:#486485;font-size:12px;line-height:1.6}
.sh-image-tool .sh-image-pdf-viewer-status:empty{display:none}
.sh-image-tool .sh-image-pdf-viewer-caption{margin:9px 0 13px;color:#45607e;font-size:12px;line-height:1.5;text-align:center}
.sh-image-tool .sh-image-result-pdf-preview .sh-image-pdf-page-choices{grid-template-columns:repeat(auto-fill,minmax(min(100%,76px),1fr));gap:7px}
.sh-image-tool .sh-image-result-pdf-preview .sh-image-pdf-page-choice{min-height:92px;padding:6px}
.sh-image-tool .sh-image-result-pdf-preview .sh-image-pdf-page-choice img{height:70px}
.sh-image-tool .sh-image-result-pdf-preview .sh-image-pdf-page-choice[data-thumbnail-status=pending]::before{content:'미리보기';display:flex;align-items:center;justify-content:center;width:100%;height:70px;background:#edf2f8;color:#7b8da4;font-size:11px}
.sh-image-tool .sh-image-result-pdf-preview .sh-image-pdf-page-choice[data-thumbnail-status=error]::before{content:'페이지 선택';display:flex;align-items:center;justify-content:center;width:100%;height:70px;color:#7b8da4;font-size:11px}
@media(max-width:640px){
 .sh-image-tool .sh-image-options{grid-template-columns:1fr;gap:14px}
 .sh-image-tool .sh-image-pdf-fields{grid-template-columns:1fr}
 .sh-image-tool .sh-image-options>label{display:grid;grid-template-columns:minmax(0,1fr) minmax(125px,160px);align-items:center;gap:12px}
 .sh-image-tool .sh-image-drop{min-height:174px;padding:21px 12px}
 .sh-image-tool .sh-image-drop strong{font-size:14px}
 .sh-image-tool .sh-image-file-card{padding:13px}
 .sh-image-tool .sh-image-previews{grid-template-columns:1fr}
 .sh-image-tool .sh-image-previews img{height:180px}
 .sh-image-tool .sh-image-info>div{grid-template-columns:76px minmax(0,1fr);gap:8px}
 .sh-image-tool .sh-image-actions{flex-wrap:wrap}
 .sh-image-tool .sh-image-pdf-viewer-toolbar{grid-template-columns:auto minmax(55px,1fr) auto;gap:7px}
 .sh-image-tool .sh-image-pdf-viewer-toolbar>label:last-child{grid-column:1/-1;grid-template-columns:45px minmax(0,1fr);align-items:center}
 .seller-toolbox-root .sh-image-tool .sh-image-run{flex:1;min-width:140px}
}
@media(max-width:360px){.sh-image-tool .sh-image-options>label{grid-template-columns:1fr;gap:7px}.sh-image-tool .sh-image-downloads{gap:7px}}
