body.tool-compact main,body.tool-compact .page{width:min(100%,1180px);max-width:1180px;margin:0 auto;padding:10px 24px 8px}
body.tool-compact .tool-compact-heading{margin:0 0 6px;display:flex;align-items:center;gap:12px}
body.tool-compact .image-title-row{display:flex;flex:1;min-width:0;align-items:center;gap:12px;justify-content:flex-start}
body.tool-compact .tool-compact-heading h1{font-size:var(--font-xl);line-height:1.4;margin:0;white-space:nowrap}
body.tool-compact .compact-description{min-width:0;flex:1;margin:0;color:var(--sub);font-size:var(--font-sm);line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.tool-compact .image-more-intro{margin:-2px 0 6px;border:0;font-size:var(--font-sm)}
body.tool-compact .image-more-intro>summary{display:inline-block;color:var(--brand-deep);cursor:pointer;list-style:none}
body.tool-compact .image-more-intro>summary::after{content:' ›'}
body.tool-compact .image-more-intro[open]>summary::after{content:' ⌄'}
body.tool-compact .image-more-intro>summary::-webkit-details-marker{display:none}
body.tool-compact .tool-intro-fold{margin:-2px 0 6px;border:0;padding:0}
body.tool-compact .tool-intro-fold>summary{display:inline-block;list-style:none}
body.tool-compact .tool-intro-fold>summary::after{content:' ›'}
body.tool-compact .tool-intro-fold[open]>summary::after{content:' ⌄'}
body.tool-compact .tool-intro-fold>summary::-webkit-details-marker{display:none}
body.tool-compact .tool-intro-fold[open]{padding:10px 12px;background:var(--card);border:1px solid var(--line);border-radius:var(--r-md)}
body.tool-compact .image-more-intro[open]{padding:10px 12px;background:var(--card);border:1px solid var(--line);border-radius:var(--r-md)}
body.tool-compact .image-tool-content{margin-top:8px;color:var(--sub);line-height:1.65}
body.tool-compact .image-tool-content h2{margin:10px 0 4px;color:var(--ink);font-size:var(--font-base)}
body.tool-compact .image-tool-content :is(ul,dl){margin:4px 0;padding-left:20px}
body.tool-compact .image-tool-content dt{font-weight:600;color:var(--ink)}
body.tool-compact .image-tool-content dd{margin:2px 0 8px}
body.tool-compact .compact-intro-line{display:grid;grid-template-columns:minmax(0,max-content) auto;justify-content:start;align-items:center;gap:0 8px;flex:1;min-width:0}
body.tool-compact .compact-intro-line .image-more-intro{display:contents}
body.tool-compact .compact-intro-line .image-more-intro>summary{white-space:nowrap;line-height:1.5}
body.tool-compact :is(.image-page,.translation-page,.document-tool-page)>.image-tool-content{margin:0 0 8px;padding:10px 12px;background:var(--card);border:1px solid var(--line);border-radius:var(--r-md)}
body.tool-compact .document-tool-page .image-title-row>.eyebrow{margin-left:auto;flex-shrink:0}
body.tool-compact .document-tool-page .modes a{border:1px solid var(--line);border-radius:var(--r-pill);background:var(--card);color:var(--ink);text-decoration:none}
body.tool-compact .document-tool-page .modes a[aria-current="page"]{background:var(--brand-deep);border-color:var(--brand-deep);color:var(--card)}
body.tool-compact .document-tool-page>.image-tool-content .tool-content{margin:0}
body.tool-compact .translation-heading .translation-kicker{margin-left:auto;flex-shrink:0}
body.tool-compact .translation-tabs a{border:1px solid var(--line);border-radius:var(--r-pill);background:var(--card);color:var(--ink);text-decoration:none}
body.tool-compact .translation-tabs a[aria-current="page"]{background:var(--brand-deep);color:var(--card);border-color:var(--brand-deep)}
body.tool-compact .image-title-row :is(.eyebrow,.image-eyebrow,.translation-kicker){margin:0;padding:0;font-size:var(--font-sm);letter-spacing:0;background:none;color:var(--sub)}
body.tool-compact [data-workbench-entry]{margin-left:auto;flex-shrink:0}
body.tool-compact [data-workbench-entry] .p-btn{font-size:var(--font-sm);min-height:32px;padding:6px 10px;white-space:nowrap}
body.tool-compact :is(.image-tabs,.speech-tabs,.modes){display:flex;flex-wrap:nowrap;overflow-x:auto;gap:6px;margin:0 0 8px;padding:2px 2px 4px;scrollbar-width:thin}
body.tool-compact :is(.image-tabs,.speech-tabs,.modes) a{flex-shrink:0;white-space:nowrap;padding:7px 12px;font-size:var(--font-sm)}
body.tool-compact :is(.workspace-grid,.translation-workspace,.image-grid,.speech-grid,.photo-layout,.erase-layout){display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);align-items:start;gap:16px;margin:0}
body.tool-compact :is(.workspace-main,.workspace-side,.translation-settings){min-width:0;gap:8px}
body.tool-compact :is(.p-card,.settings-card,.upload-card){padding:14px;min-width:0;margin:0}
body.tool-compact h2{font-size:var(--font-lg);margin:0 0 10px}
body.tool-compact :is(.note,.help,.translation-panel-description,.translation-processing-note){font-size:var(--font-sm);line-height:1.5;margin:6px 0}
body.tool-compact :is(.image-error,.speech-error,#error,#upload-state,#capability,#capability-state,#download-state):empty{display:none}
body.tool-compact :is(.drop,.image-drop,.translation-drop,.speech-drop){padding:16px;min-height:120px;gap:8px;margin:0 0 8px}
body.tool-compact .image-drop-icon{font-size:var(--font-xl)}
body.tool-compact .image-preview{max-height:none;height:auto;max-width:100%;margin:8px auto}
body.tool-compact #result-preview{max-height:none;height:auto;width:auto;max-width:100%;margin:8px auto}
body.tool-compact .image-source:has(>#source-preview:not([hidden])) .image-drop{min-height:0;padding:8px}
body.tool-compact .image-source:has(>#source-preview:not([hidden])) .image-drop-icon{display:none}
body.tool-compact :is(.image-settings,.panel) label{margin:4px 0}
body.tool-compact :is(.image-settings input,.image-settings select,.panel select,.speech-page select){min-height:34px;margin:4px 0;padding:5px 8px}
body.tool-compact :is(.image-settings,.panel) input[type=range]{min-height:24px;padding:0;margin:0}
body.tool-compact :is(.image-settings,.panel) output{margin-bottom:4px}
body.tool-compact :is(.image-fields,.pair,.speech-settings,.option-grid){gap:8px}
body.tool-compact :is(.options,.settings-card>.options){padding:8px 0;margin:0;box-shadow:none;border:0}
body.tool-compact :is(.actions,.main-action,.image-settings #submit-image){margin:8px 0;min-height:36px}
body.tool-compact :is(.panel-heading,.translation-panel-heading,.workspace-heading,.heading){margin-bottom:8px}
body.tool-compact :is(.translation-step,.translation-panel-heading .status:empty){display:none}
body.tool-compact :is(.photo-stage,.erase-stage){height:clamp(220px,36vh,340px);min-height:0}
body.tool-compact :is(.toolbar,.view-tools){margin-top:8px}
body.tool-compact :is(.panel,.erase-panel) fieldset{margin:8px 0}
body.tool-compact :is(.panel,.erase-panel) legend{margin-bottom:6px}
body.tool-compact :is(.panel details,.image-settings details){margin:6px 0;padding:6px 0}
body.tool-compact .privacy{padding-top:6px;margin-top:8px}
body.tool-compact #speech-text{height:150px;min-height:100px;margin:4px 0 8px}
body.tool-compact .quote-number{font-size:var(--font-xl);margin:8px 0}
body.tool-compact :is(.image-feedback,.erase-feedback){padding:10px;margin:8px 0}
body.tool-compact .image-stages{margin:8px 0 0}
body.tool-compact .tool-fold{margin:8px 0;border-top:1px solid var(--line);padding-top:6px;font-size:var(--font-sm)}
body.tool-compact summary{cursor:pointer;color:var(--brand-deep)}
body.tool-compact .tool-extras{display:flex;flex-wrap:wrap;align-items:start;gap:6px 20px;margin-top:4px}
body.tool-compact .tool-extras>.tool-fold{border:0;margin:0;padding:0}
body.tool-compact .tool-extras>.tool-fold[open]{flex-basis:100%}
body.tool-compact .translation-footer-actions{margin:0;gap:8px}
body.tool-compact [data-growth-notice]:empty{display:none}
body.tool-compact #imageOptions .doc-image-choices{margin-bottom:8px}
body.tool-compact #imageOptions .option-grid{margin:8px 0}
body.tool-compact #imageOptions .doc-image-choices label{padding:6px 10px}
body.tool-compact .translation-advanced{margin:8px 0;padding:10px}
body.tool-compact .translation-language-pair{margin-top:8px}
body.tool-compact .translation-pager{margin-top:8px}
body.tool-compact .translation-history-state{margin:6px 0;padding:8px}
body.tool-compact .translation-field{margin-top:4px}
body.tool-compact .translation-submit-help{min-height:0}
body.tool-compact #edit-tools{margin:8px 0}
body.tool-compact #edit-tools legend{margin-bottom:6px}
body.tool-compact .image-settings>h2,body.tool-compact #operation-help{display:none}
body.tool-compact #capability,body.tool-compact #capability-state{margin:0 0 6px;font-size:var(--font-sm);color:var(--sub)}
body.tool-compact .tool-fold:has(>[hidden]){display:none}
body.tool-compact .tool-fold[open]>:not(summary){margin-top:8px}
body.tool-compact #image-result{padding:0;border:0;box-shadow:none}
body.tool-compact .image-source:has(#image-result:not([hidden]))>:not(#image-result):not(.image-drop):not(.image-file-actions):not(#file-error){display:none}
body.tool-compact :is(#cur,#task-feedback){grid-column:auto}
body.tool-compact .picked-list,body.tool-compact #batch-list{max-height:150px;overflow:auto}
body.tool-compact .resize-result-wrap{min-height:0;padding:6px}
body.tool-compact .resize-result-wrap:has(canvas[hidden]),body.tool-compact .resize-toolbar:has(+.resize-result-wrap canvas[hidden]){display:none}
body.tool-compact .resize-toolbar{margin:6px 0;gap:6px}
body.tool-compact .resize-toolbar .p-btn{min-height:30px;padding:5px 10px}
body.tool-compact #watermark-preview{max-height:none;height:auto;max-width:100%}
body.tool-compact #watermark-preview-panel{margin:8px 0}
body.tool-compact .image-source:has(canvas:not([hidden])) .image-drop{min-height:0;padding:8px}
body.tool-compact .image-source:has(canvas:not([hidden])) .image-drop span{display:none}
body.tool-compact #resize-panel{margin:8px 0}
body.tool-compact #resize-canvas{max-height:none;height:auto;max-width:100%;width:auto;margin:8px auto}
body.tool-compact #resize-source:has(option:only-child),body.tool-compact #resize-panel>label:has(+#resize-source option:only-child),
body.tool-compact #watermark-preview-source:has(option:only-child),body.tool-compact label:has(+#watermark-preview-source option:only-child){display:none}
body.tool-compact #resize-settings>p:first-child{display:none}
body.tool-compact #resize-result{max-height:none;height:auto;max-width:100%}
body.tool-compact #watermark-mode{margin:6px 0;gap:16px}
body.tool-compact #watermark-mode label{min-height:28px}
body.tool-compact .translation-drop{min-height:160px}
body.tool-compact .translation-file-mark{width:42px;height:42px;font-size:var(--font-base)}
body.tool-compact .translation-language-pair{gap:8px}
body.tool-compact .translation-selection{margin:6px 0}
body.tool-compact .translation-settings-card{padding:14px}
body.tool-compact :is(.recent,.image-history,.translation-history,.speech-history,.photo-history,.erase-history){margin-top:16px}
body.tool-compact .translation-task-list{max-height:220px;overflow:auto}
body.tool-compact .translation-history-heading{margin-bottom:6px}
body.tool-compact .translation-history-heading p{display:none}
body.tool-compact .desktop-hero{padding:14px;margin:0;gap:20px}
body.tool-compact .desktop-hero h1{font-size:var(--font-title);margin:6px 0}
body.tool-compact .desktop-hero p{margin:8px 0}
body.tool-compact .desktop-package{padding:18px}
body.tool-compact .desktop-package img{width:40px;height:40px}
body.tool-compact .desktop-footer{margin-top:12px;padding:8px 0}
@media(max-width:720px){
  body.tool-compact main,body.tool-compact .page{padding:6px 12px 16px}
  body.tool-compact :is(.workspace-grid,.translation-workspace,.image-grid,.speech-grid,.photo-layout,.erase-layout){grid-template-columns:minmax(0,1fr);gap:10px}
  body.tool-compact .tool-compact-heading{flex-wrap:wrap;gap:2px}
  body.tool-compact .tool-compact-heading h1{white-space:normal;font-size:var(--font-lg)}
  body.tool-compact .image-title-row{gap:6px}
  body.tool-compact .image-title-row :is(.eyebrow,.image-eyebrow,.translation-kicker){display:none}
  body.tool-compact [data-workbench-entry] .p-btn{font-size:var(--font-xs);padding:6px 8px}
  body.tool-compact :is(.photo-stage,.erase-stage){height:240px}
  body.tool-compact .compact-description{flex-basis:100%;order:3;white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}
  body.tool-compact .image-title-row:has(.compact-intro-line){flex-wrap:wrap}
  body.tool-compact .compact-intro-line{flex-basis:100%;order:3}
  body.tool-compact .compact-intro-line .compact-description{order:0}
}
body.tool-compact.image-scan-page main.image-page{padding-top:4px}
body.tool-compact.image-scan-page .image-tabs{margin-bottom:6px}
body.tool-compact .image-file-actions{display:flex;align-items:center;gap:10px;margin:6px 0}
body.tool-compact .image-file-actions #file-state{flex:1;margin:0}
body.tool-compact .image-file-actions #clear-image{flex-shrink:0}
body.tool-compact.image-scan-page main.image-page>.image-history{margin-top:16px}
@media(min-width:721px){
  body.tool-compact.image-scan-page main.image-page{padding-top:14px}
  body.tool-compact.image-scan-page .tool-compact-heading{margin-bottom:4px}
  body.tool-compact.image-scan-page .tool-compact-heading h1{line-height:1.3}
  body.tool-compact.image-scan-page .image-tabs{gap:6px;margin-bottom:4px;padding:1px 2px}
  body.tool-compact.image-scan-page .image-tabs a{padding:6px 12px}
}
