/* Native surfaces retain their controls, editor geometry and media ownership. */
body .tool-workspace-native{--workspace-ink:#17283d;--workspace-muted:#63748a;--workspace-line:#dfe7f0;--workspace-paper:#fff;--workspace-accent:#2869e8}
body .tool-workspace-main .workspace-layout-masthead{margin:0 0 24px;padding:0 4px}
body .tool-workspace-main .workspace-layout-masthead :is(h1,.workspace-layout-title){font-size:clamp(25px,2.5vw,34px);line-height:1.2;letter-spacing:-.04em}
body .tool-workspace-native.app{grid-template-columns:minmax(0,1.15fr) minmax(360px,.85fr);gap:22px;align-items:start}
body .tool-workspace-native>.left,body .tool-workspace-native>.right{min-width:0}
body .tool-workspace-native.app.tool-workspace-integrated-editor,body .tool-workspace-native.app.tool-workspace-page-editor{grid-template-columns:minmax(0,1fr)}
body .tool-workspace-native.app:is(.tool-workspace-integrated-editor,.tool-workspace-page-editor)>.left{grid-column:1/-1;order:0}
body .tool-workspace-native.app:is(.tool-workspace-integrated-editor,.tool-workspace-page-editor)>.right{grid-column:1/-1;order:1;width:100%;max-width:none}
body .tool-workspace-native .tool-workspace-unused-column{display:none!important}
body .tool-workspace-native.tool-workspace-page-editor>.right{width:100%;max-width:none}
body .tool-workspace-native.tool-workspace-page-editor .runbar{margin:0}
body .tool-workspace-native .tool-workspace-intake,body .tool-workspace-native .tool-workspace-settings{border:1px solid var(--workspace-line);border-radius:23px;background:var(--workspace-paper);box-shadow:0 3px 6px -5px #1e355a30,0 14px 38px -32px #23446b45}
body .tool-workspace-native .tool-workspace-intake{padding:22px}
body .tool-workspace-native .tool-workspace-settings{padding:24px}
body .tool-workspace-native .options-head{margin:0 0 17px;padding:0 0 17px;border-bottom:1px solid #edf1f6}
body .tool-workspace-native .options-head :is(h2,.options-title){font-size:17px;line-height:1.4;letter-spacing:-.025em}
body .tool-workspace-native .options-head .options-sub{font-size:13px;line-height:1.65;margin-top:7px}
body .tool-workspace-native .upload-head.imageee-illustrated-lead{grid-template-columns:minmax(0,1fr) 64px;gap:6px 16px;min-height:0}
body .tool-workspace-native .upload-head>.imageee-tool-illustration{width:64px;height:78px;align-self:start}
body .tool-workspace-native .upload-title{font-size:18px;line-height:1.4;letter-spacing:-.025em}
body .tool-workspace-native .upload-sub{font-size:13px;line-height:1.65;max-width:48ch}
body .tool-workspace-native .dropzone{border:1px dashed #c4d3e8;border-radius:16px;background:radial-gradient(ellipse at 50% 0,#f0f5ff,transparent 74%),#f8fafd;box-shadow:none}
body .tool-workspace-native .upload-start-action{border-radius:12px;min-height:46px}
body .tool-workspace-native .support-panel{border-radius:12px;box-shadow:none}
body .tool-workspace-native .workspace-layout-action{padding:0;margin-top:20px;border:0;border-radius:0;background:none;box-shadow:none;gap:12px}
body .tool-workspace-native .workspace-layout-action>.status{font-size:12px;line-height:1.6}
body .tool-workspace-native .workspace-layout-action>.btn.primary{border-radius:13px;min-height:48px}
body .tool-workspace-native .tool-workspace-empty,body .tool-workspace-native .tool-workspace-no-previews,body .tool-workspace-native .tool-workspace-redundant,body .tool-workspace-native .tool-workspace-repeated-file{display:none!important}
body .tool-workspace-native .tool-workspace-single-preview{grid-template-columns:minmax(0,1fr)!important}
body .tool-workspace-native .tool-workspace-single-preview::before,body .tool-workspace-native .tool-workspace-single-preview::after{content:none!important;display:none!important}
/* Keep secondary sharing after downloads when the native result image moves
   into the main workbench and leaves an otherwise empty grid row. */
body .preview-grid .panel>.actions+.share-strip{grid-column:1;grid-row:4}
body .tool-workspace-native .tool-workspace-consolidated-source{display:none!important}
body .tool-workspace-native .preview-grid.tool-workspace-consolidated-result{grid-template-columns:minmax(0,1fr)!important}
body .tool-workspace-native .tool-workspace-consolidated-result::before,body .tool-workspace-native .tool-workspace-consolidated-result::after{content:none!important;display:none!important}
/* Measured choices retain exact sizes, color/privacy warnings and native actions. */
body[data-page="compress"] .tool-workspace-native .tool-workspace-settings>.options-head{order:0}
body[data-page="compress"] .tool-workspace-native .tool-workspace-settings>.tool-workspace-compress-readiness{order:1}
body[data-page="compress"] .tool-workspace-native .tool-workspace-settings>#compressInputAdvice{order:2}
body[data-page="compress"] .tool-workspace-native .tool-workspace-settings>#compressCandidates{order:3}
body[data-page="compress"] .tool-workspace-native .tool-workspace-settings>.form{order:4}
body[data-page="compress"] .tool-workspace-native .tool-workspace-settings>.runbar{order:5}
body[data-page="compress"] .tool-workspace-native .options>#compressInputAdvice{margin:0 0 16px;color:var(--workspace-muted);font-size:13px;line-height:1.65}
body[data-page="compress"] .tool-workspace-measured #compressCandidates{padding:0;border:0;background:none;box-shadow:none}
body[data-page="compress"] .tool-workspace-measured .compress-candidates-head{margin:0 0 10px;font-size:14px;line-height:1.45;font-weight:650}
body[data-page="compress"] .tool-workspace-native :is(.tool-workspace-compress-choice-covered,.tool-workspace-compress-copy-covered){display:none}
body[data-page="compress"] .tool-workspace-compress-readiness{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin:0 0 16px;padding:12px 14px;border:1px solid #d8e5f6;border-radius:12px;background:#f4f8ff}
body[data-page="compress"] .tool-workspace-compress-readiness-copy{flex:1 1 210px;margin:0;color:#365477;font-size:13px;line-height:1.65}
body[data-page="compress"] .tool-workspace-compress-next{min-height:44px;padding:9px 12px;border:1px solid #b9d1f2;border-radius:10px;background:#fff;color:#245da8;font-family:inherit;font-size:13px;font-weight:650;line-height:1.4;cursor:pointer}
body[data-page="compress"] .tool-workspace-choice-state{display:inline-flex;align-items:center;padding:4px 7px;border-radius:7px;background:#fff2d9;color:#795411;font-size:12px;font-weight:650;line-height:1.4}
body[data-page="compress"] .tool-workspace-choice-state[data-choice-ready="true"]{background:#e9f5ed;color:#286140}
body[data-page="compress"] :is(.tool-workspace-choice-state,.tool-workspace-compress-readiness,.tool-workspace-compress-next)[hidden]{display:none!important}
body[data-page="compress"] .tool-workspace-compress-next:focus-visible{outline:3px solid #8aaff4;outline-offset:3px}
body[data-page="compress"] #compressCandidates :is(button,input):disabled,body[data-page="compress"] .tool-workspace-compress-next:disabled{cursor:default;opacity:.55}
body[data-page="compress"] .tool-workspace-native #batchList.tool-workspace-compress-small-queue{max-height:none;overflow:visible;padding-right:0;gap:7px}
body[data-page="compress"] .tool-workspace-native #batchList.tool-workspace-compress-small-queue .batch-item{padding:10px;gap:8px}
body[data-page="compress"] .tool-workspace-native #batchList.tool-workspace-compress-small-queue .batch-item-main{min-height:42px;gap:9px}
body[data-page="pdf"] .tool-workspace-pdf-range{margin:2px 0 0;color:#526b86;font-size:13px;line-height:1.65;overflow-wrap:anywhere}
body[data-page="pdf"] .tool-workspace-pdf-range[data-range-notice="true"]{padding:10px 12px;border-left:3px solid #c99635;border-radius:5px;background:#fff8eb;color:#735419}
body[data-page="pdf"] .tool-workspace-pdf-range-covered,body[data-page="pdf"] .tool-workspace-pdf-range[hidden]{display:none!important}
body[data-page="compress"] .tool-workspace-measured .compress-candidate-status{font-size:12px;line-height:1.65;margin:0 0 9px}
body[data-page="compress"] .tool-workspace-measured .compress-candidate-warning{font-size:12px;line-height:1.65;margin:0 0 14px}
/* This native outer field grid sits in the narrow settings inspector. The
   inner Page layout disclosure keeps its own native field arrangement. */
body[data-page="pdf"] .tool-workspace-native:not(.tool-workspace-page-editor) .options #pdfMergeSettings.workspace-layout-fields{grid-template-columns:minmax(0,1fr)}
body[data-page="compress"] .tool-workspace-measured .compress-candidate-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
body[data-page="compress"] .tool-workspace-measured .compress-candidate{border-radius:13px;box-shadow:none;padding:9px}
body[data-page="compress"] .tool-workspace-measured .compress-candidate[aria-pressed="true"]{border-color:#3975e8;background:#f1f6ff;box-shadow:0 0 0 1px #3975e8}
body[data-page="compress"] .tool-workspace-measured .compress-candidate-actions{gap:9px;flex-wrap:wrap}
body .tool-workspace-compare-box{position:relative}
body .tool-workspace-compare-box>.tool-workspace-original{position:absolute;inset:0;z-index:4;display:none;width:100%;height:100%;pointer-events:none;user-select:none;background-color:#f7f9fc;background-image:linear-gradient(45deg,#e9edf2 25%,transparent 25%),linear-gradient(-45deg,#e9edf2 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e9edf2 75%),linear-gradient(-45deg,transparent 75%,#e9edf2 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0}
body .tool-workspace-compare-box.tool-workspace-holding>.tool-workspace-original{display:block!important}
body .tool-workspace-hold{display:inline-flex;align-items:center;justify-content:center;min-height:44px;max-width:100%;padding:10px 14px;border:1px solid #d9e3f1;border-radius:11px;background:#f7faff;color:#304b71;font-family:inherit;font-weight:600;font-size:12px;line-height:1.4;touch-action:none;user-select:none;cursor:pointer}
body .tool-workspace-hold:is(:disabled,[aria-disabled="true"]){opacity:.55;cursor:default;box-shadow:none}
body:is([data-page="compress"],[data-page="upscale"],[data-page="exif"]) .tool-workspace-native .preview-grid .imgbox{height:clamp(220px,27vw,340px);min-height:220px;max-height:340px}
body:is([data-page="compress"],[data-page="upscale"],[data-page="exif"]) .tool-workspace-native .preview-grid .imgbox>img{max-height:100%;object-fit:contain}
body .tool-workspace-hold[aria-pressed="true"]{background:#eaf2ff;border-color:#6f9bea;color:#1c54ad}
body .tool-workspace-hold:focus-visible{outline:3px solid #75a1ee;outline-offset:3px}
/* The independent PDF text converter keeps its actual consent, status and result. */
@media(max-width:1100px){body .tool-workspace-native.app{grid-template-columns:minmax(0,1fr) minmax(340px,.9fr);gap:18px}}
@media(max-width:980px){body .tool-workspace-native.app{grid-template-columns:minmax(0,1fr)}body .tool-workspace-native .tool-workspace-settings{padding:22px}}
@media(max-width:760px){
 body .tool-workspace-native .tool-workspace-intake,body .tool-workspace-native .tool-workspace-settings{padding:19px;border-radius:20px}
 body .tool-workspace-main .workspace-layout-masthead{margin-bottom:20px}
 body .tool-workspace-native .upload-head.imageee-illustrated-lead{grid-template-columns:minmax(0,1fr) 52px;column-gap:12px}
 body .tool-workspace-native .upload-head>.imageee-tool-illustration{width:52px;height:64px}
 body .tool-workspace-native .upload-title{font-size:17px}
 body .tool-workspace-native .options-head .options-sub,body .tool-workspace-native .upload-sub{font-size:14px}
 body[data-page="compress"] .tool-workspace-native .options>#compressInputAdvice{font-size:14px}
 body .tool-workspace-native .tool-workspace-hold{flex:1;min-height:44px;font-size:12px}
}
@media(forced-colors:active){body .tool-workspace-native .tool-workspace-hold{border:1px solid ButtonBorder;background:Canvas;color:ButtonText;box-shadow:none}body .tool-workspace-hold[aria-pressed="true"]{outline:2px solid Highlight;outline-offset:-3px}}
