.tool-pic-enhance{color: #f472b6;--pic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='3 1 26 30'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23F472B6'/%3E%3Cstop offset='1' stop-color='%23BE185D'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M8 2h12l7 7v19a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z' fill='url(%23g)'/%3E%3Cpath d='M20 2v5a2 2 0 0 0 2 2h5z' fill='%23fff' opacity='.45'/%3E%3Cpath d='M16.2 11.2l1.6 4.2 4.2 1.6-4.2 1.6-1.6 4.2-1.6-4.2-4.2-1.6 4.2-1.6z' fill='%23fff'/%3E%3Cpath d='M22.6 21.4l.7 1.9 1.9.7-1.9.7-.7 1.9-.7-1.9-1.9-.7 1.9-.7z' fill='%23fff' opacity='.85'/%3E%3C/svg%3E")}.enhance-workspace .enhance-thumb-box{display: flex;align-items: center;justify-content: center;aspect-ratio: 5 / 6;overflow: hidden}.enhance-workspace .enhance-thumb-canvas{max-width: 82%;max-height: 82%;width: auto;height: auto}.enhance-workspace .enhance-thumb-state{color: var(--text-secondary);font-weight: 500}.enhance-workspace .extract-thumb-card.is-enhanced .enhance-thumb-state{color: #ec4899;font-weight: 700}.enhance-workspace .extract-thumb-card.is-enhanced{border-color: rgba(236,72,153,0.5)}.enhance-canvas-stage{position: relative;display: flex;align-items: flex-start;justify-content: center;overflow: auto;padding: 24px 24px 24px}.enhance-page-holder{position: relative;display: flex;align-items: center;justify-content: center;flex: 0 0 auto;margin: 0 auto}.enhance-preview-canvas{display: block;flex: 0 0 auto;max-width: none;background: #fff;box-shadow: 0 10px 30px rgba(0,0,0,0.35)}#enhanceMiddleViewer{position: relative}.enhance-compare{position: absolute;top: 52px;left: 12px;z-index: 6;display: flex;white-space: nowrap;box-shadow: 0 4px 14px rgba(0,0,0,0.25);border-radius: 10px}.enhance-compare-btn{display: inline-block;min-height: 34px;padding: 0 14px;border: 1px solid var(--border-color);cursor: pointer;font: inherit;font-size: 0.8rem;font-weight: 700;color: var(--text-secondary);background: var(--bg-secondary)}.enhance-compare-btn:first-child{border-radius: 10px 0 0 10px}.enhance-compare-btn:last-child{border-radius: 0 10px 10px 0;margin-left: -1px}.enhance-compare-btn.is-on{background: #ec4899;border-color: #ec4899;color: #fff}.enhance-compare-btn:focus-visible{outline: 2px solid #ec4899;outline-offset: 1px}.enhance-presets{display: grid !important;grid-template-columns: repeat(4,minmax(0,1fr))}.enhance-colors,.enhance-targets{display: grid !important;grid-template-columns: repeat(3,minmax(0,1fr))}.enhance-presets .pdf2img-mode-tab,.enhance-colors .pdf2img-mode-tab,.enhance-targets .pdf2img-mode-tab{min-height: 0;padding: 9px 4px}.enhance-presets .pdf2img-mode-tab-title,.enhance-colors .pdf2img-mode-tab-title,.enhance-targets .pdf2img-mode-tab-title{font-size: 0.76rem;line-height: 1.2;text-align: center;overflow-wrap: anywhere}.enhance-sliders{display: flex;flex-direction: column;gap: 6px;padding: 2px 12px 0}.enhance-slider{display: grid;grid-template-columns: 1fr auto;align-items: center;gap: 0 10px;font-size: 0.8rem;font-weight: 600;color: var(--text-primary)}.enhance-slider.hidden{display: none}.enhance-slider output{min-width: 2.2em;text-align: right;font-weight: 800;color: #ec4899;font-variant-numeric: tabular-nums}#enhanceToolsPanel .enhance-slider input[type="range"]{grid-column: 1 / -1;width: 100%;height: 26px;min-height: 0;margin: 0;padding: 0;accent-color: #ec4899}.enhance-checks{display: flex;flex-direction: column;gap: 2px;padding: 8px 12px 2px}.enhance-check{display: flex;align-items: center;gap: 9px;min-height: 28px;font-size: 0.82rem;font-weight: 600;color: var(--text-primary);cursor: pointer}.enhance-check input{width: 16px;height: 16px;margin: 0;flex: 0 0 auto;accent-color: #ec4899}.enhance-selects{display: grid;grid-template-columns: 1fr 1fr;gap: 8px;padding: 8px 12px 0}.enhance-select{display: flex;flex-direction: column;gap: 3px;min-width: 0;font-size: 0.7rem;font-weight: 700;letter-spacing: 0.04em;text-transform: uppercase;color: var(--text-secondary)}.enhance-select select{width: 100%;min-height: 34px;text-transform: none;letter-spacing: 0;font-size: 0.82rem;font-weight: 600}.enhance-reset{display: inline;margin-left: 4px;padding: 0;border: 0;background: none;font: inherit;font-weight: 700;color: #ec4899;text-decoration: underline;cursor: pointer}.enhance-busy{margin: 4px 12px 0;font-size: 0.8rem;font-weight: 700;color: #ec4899}.enhance-busy.hidden{display: none}#enhanceStatus.is-error{color: #ef4444}@media (min-width: 761px){#enhanceToolsPanel .tools-panel-top-controls{flex: 1 1 auto;min-height: 0;overflow-y: auto;overscroll-behavior: contain}#enhanceToolsPanel .rotate-action-buttons{position: sticky;bottom: 0;z-index: 26;display: flex;gap: 8px;margin-top: auto;padding: 10px 12px;border-top: 1px solid var(--border-color);background: var(--bg-secondary)}#enhanceToolsPanel .rotate-action-buttons .btn-secondary{flex: 0 0 auto}#enhanceToolsPanel .rotate-action-buttons .btn-primary{flex: 1 1 auto}#enhanceToolsPanel #btnClearEnhance{display: inline-flex;align-items: center;gap: 6px;flex: 0 0 auto;min-height: 0;padding: 4px 10px;border-radius: 6px;cursor: pointer;white-space: nowrap;font: inherit;font-size: 0.78rem;font-weight: 500}#enhanceToolsPanel #btnClearEnhance .phone-clear-word{display: inline}#enhanceToolsPanel .compress-step-label{padding: 8px 12px 3px;font-size: 0.68rem;font-weight: 800;letter-spacing: 0.08em;text-transform: uppercase;color: var(--text-secondary)}#enhanceMiddleViewer .viewer-file-info{max-width: none}}@media (max-width: 760px){#enhanceWorkspace{display: flex;flex-direction: column;overflow: hidden;height: calc(100dvh - var(--header-height,64px));padding-bottom: var(--en-pad,86px)}#enhanceSidebar{order: -2;flex: none;height: auto;min-height: 0;border: 0;border-bottom: 1px solid var(--border-color)}#enhanceSidebar .extract-sidebar-header{height: 34px;min-height: 34px;max-height: 34px;padding: 0 12px;gap: 8px}#enhanceSidebar .extract-sidebar-title{margin-right: auto}#enhanceSidebar #btnClearEnhance{order: 3;margin-left: auto;min-height: 26px;padding: 2px 8px}#enhanceSidebarCount,#enhanceThumbnailsList{display: none}#enhanceMiddleViewer{order: -1;position: relative;top: auto;flex: 0 0 auto;height: 34dvh;min-height: 200px;max-height: 38dvh}#enhanceMiddleViewer .extract-viewer-toolbar{height: 34px;min-height: 34px;justify-content: space-between;gap: 8px;padding: 0 10px}#enhanceMiddleViewer .viewer-file-info{display: flex;flex: 1 1 auto;min-width: 0;max-width: none;font-size: 0.78rem}#enhanceMiddleViewer .viewer-zoom-group{display: none}#enhanceMiddleViewer .viewer-nav-group{flex: none}#enhanceMiddleViewer .viewer-page-input{min-height: 0 !important;height: 26px !important;padding: 0 4px;width: 42px}#enhanceCanvasStage{padding: 48px 8px 8px;touch-action: pan-x pan-y}#enhanceWorkspace > #enhanceToolsPanel{flex: 1 1 0;min-height: 0;overflow-y: auto;overscroll-behavior: contain;-webkit-overflow-scrolling: touch;display: block;height: auto;max-height: none;padding-bottom: 0 !important}#enhanceToolsPanel .tools-panel-top-controls{flex: none;overflow: visible}#enhanceToolsPanel .tools-stats-bar{display: none}#enhanceToolsPanel .rotate-action-buttons{display: none}#enhanceToolsPanel .compress-step-label{display: flex;align-items: center;padding: 8px 12px 4px;font-size: 0.95rem;font-weight: 800;letter-spacing: 0.02em;text-transform: none;color: var(--text-primary)}.enhance-presets .pdf2img-mode-tab,.enhance-colors .pdf2img-mode-tab,.enhance-targets .pdf2img-mode-tab{padding: 11px 3px;min-height: 44px}.enhance-check{min-height: 40px;font-size: 0.88rem}.enhance-check input{width: 20px;height: 20px}.enhance-select select{min-height: 44px}#enhanceToolsPanel .enhance-slider input[type="range"]{height: 32px}.enhance-compare{top: 42px;left: 8px}.enhance-compare-btn{min-height: 30px;padding: 0 10px;font-size: 0.74rem}}@media (max-width: 760px) and (max-height: 720px){#enhanceMiddleViewer{height: 36dvh;min-height: 190px;max-height: 40dvh}}#enhanceMiddleViewer .viewer-file-info{max-width: none}#enhanceMiddleViewer .viewer-file-info .viewer-file-prefix{flex: none}#enhanceMiddleViewer .viewer-file-info .vfi-clip{flex: 1 1 auto;min-width: 0;overflow: hidden}@media (min-width: 761px) and (max-width: 1100px){#enhanceSidebar{flex: 0 0 120px;width: 120px;min-width: 120px}#enhanceToolsPanel{flex: 0 0 340px;width: 340px;min-width: 340px}#enhanceSidebar .extract-sidebar-header{padding: 0 8px;gap: 4px}#enhanceSidebar .extract-sidebar-title span:not(.extract-sidebar-view-icon){font-size: 0.7rem}#enhanceSidebarCount{display: none}#enhanceMiddleViewer .viewer-file-info,#enhanceMiddleViewer .viewer-zoom-group{display: none}#enhanceMiddleViewer .extract-viewer-toolbar{justify-content: center;padding: 0 8px}.enhance-presets{grid-template-columns: repeat(2,minmax(0,1fr))}}@media (max-width: 760px){.enhance-reset{display: inline-block;min-height: 36px;padding: 0 6px;line-height: 36px}}.enhance-pill{position: absolute;left: 50%;bottom: 14px;z-index: 7;transform: translateX(-50%);display: inline-flex;align-items: center;gap: 8px;max-width: calc(100% - 24px);padding: 7px 14px;border-radius: 999px;font-size: 0.78rem;font-weight: 700;white-space: nowrap;color: var(--text-primary);background: var(--bg-secondary);border: 1px solid var(--border-color);box-shadow: 0 6px 18px rgba(0,0,0,0.3)}.enhance-pill.hidden{display: none}.enhance-spin{width: 14px;height: 14px;border-radius: 50%;border: 2px solid rgba(236,72,153,0.3);border-top-color: #ec4899;animation: enhance-spin 0.7s linear infinite}@keyframes enhance-spin{to{transform: rotate(360deg)}}@media (prefers-reduced-motion: reduce){.enhance-spin{animation-duration: 2s}}.enhance-hint{margin: 6px 12px 0;font-size: 0.76rem;line-height: 1.4;color: var(--text-secondary);min-height: 2.1em}.enhance-tip{margin-left: 6px;font-size: 0.68rem;font-weight: 600;letter-spacing: 0;text-transform: none;opacity: 0.8}.enhance-preview-canvas{cursor: zoom-in;-webkit-user-select: none;user-select: none;-webkit-touch-callout: none}.enhance-slider input[type="range"]{cursor: pointer}.enhance-slider:hover .enhance-slider-name{color: #ec4899}@media (max-width: 760px){.enhance-pill{bottom: 10px}.enhance-tip{display: none}.enhance-hint{font-size: 0.8rem;min-height: 0}}@media (max-width: 440px){#enhanceMiddleViewer .viewer-file-info .vfi-clip{display: none}}#enhanceSection:not(.hidden) ~ .tool-info-wrap .tool-info[data-for="enhanceSection"]{display: block}
