.tool-pic-gray{color: #94a3b8;--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='%23A8B3C4'/%3E%3Cstop offset='1' stop-color='%23475569'/%3E%3C/linearGradient%3E%3ClinearGradient id='c' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23F87171'/%3E%3Cstop offset='.5' stop-color='%23FBBF24'/%3E%3Cstop offset='1' stop-color='%2338BDF8'/%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%3Ccircle cx='16.5' cy='17' r='6.6' fill='%23fff'/%3E%3Cpath d='M16.5 10.4a6.6 6.6 0 0 0 0 13.2z' fill='url(%23c)'/%3E%3Crect x='9.5' y='7' width='8' height='1.7' rx='.85' fill='%23fff' opacity='.85'/%3E%3C/svg%3E")}.tool-pic-repair{color: #38bdf8;--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='%2338BDF8'/%3E%3Cstop offset='1' stop-color='%230369A1'/%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='M14.6 12h3.8v3.8h3.8v3.8h-3.8v3.8h-3.8v-3.8h-3.8v-3.8h3.8z' fill='%23fff'/%3E%3C/svg%3E")}#graySection:not(.hidden) ~ .tool-info-wrap .tool-info[data-for="graySection"],#repairSection:not(.hidden) ~ .tool-info-wrap .tool-info[data-for="repairSection"]{display: block}.fx-phone-head,.fx-dock{display: none}.fx-sr{position: absolute;width: 1px;height: 1px;overflow: hidden;clip: rect(0 0 0 0);white-space: nowrap}.fx-wrap{max-width: 1120px}.fx-layout{display: grid;grid-template-columns: minmax(0,1fr) 340px;gap: 14px;align-items: start}.fx-main{display: flex;flex-direction: column;gap: 14px;min-width: 0}.fx-side{position: sticky;top: calc(var(--header-height,64px) + 14px);display: flex;flex-direction: column;gap: 14px}.fx-viewer,.fx-card,.fx-runbar,.fx-stats,.fx-result{background: var(--ds-panel);border: 1px solid var(--ds-line);border-radius: 16px;box-shadow: var(--ds-shadow)}.fx-card{padding: 18px;display: flex;flex-direction: column;gap: 14px}.fx-runbar{padding: 16px;display: flex;flex-direction: column;gap: 12px}.fx-field{display: flex;flex-direction: column;gap: 6px;font-size: 0.86rem;font-weight: 700;color: var(--ds-ink)}.fx-field > span b{font-weight: 700;color: var(--ds-accent);margin-left: 6px}.fx-field.hidden,.fx-card .hidden{display: none}.fx-field input[type="range"]{width: 100%;min-height: 32px;accent-color: var(--ds-accent)}.fx-range-ends{display: flex;justify-content: space-between;color: var(--ds-muted);font-weight: 600}.fx-help{margin: 0;font-size: 0.82rem;line-height: 1.45;color: var(--ds-muted)}.fx-help strong{color: var(--ds-ink)}.fx-stats{display: grid;grid-template-columns: repeat(3,minmax(0,1fr));gap: 8px;padding: 12px}.fx-stat{display: flex;flex-direction: column;gap: 2px;padding: 8px 10px;border-radius: 12px;background: var(--ds-soft);text-align: center;min-width: 0}.fx-stat small{font-size: 0.7rem;font-weight: 700;letter-spacing: 0.04em;text-transform: uppercase;color: var(--ds-muted)}.fx-stat strong{font-size: 1.1rem;color: var(--ds-ink);white-space: nowrap;overflow: hidden;text-overflow: ellipsis}.fx-viewer{padding: 12px;display: flex;flex-direction: column;gap: 10px;min-width: 0}.fx-viewer-bar{display: flex;align-items: center;justify-content: space-between;flex-wrap: wrap;gap: 8px 12px}.fx-nav{display: flex;align-items: center;gap: 8px}.fx-page input{width: 58px;min-height: 38px;padding: 0 8px;text-align: center;font: inherit;font-weight: 700;color: var(--ds-ink);background: var(--ds-soft);border: 1px solid var(--ds-line);border-radius: 9px}.fx-of{font-size: 0.9rem;color: var(--ds-muted)}.fx-of b{color: var(--ds-ink)}.fx-icon-btn{width: 38px;height: 38px;border-radius: 10px;cursor: pointer;display: inline-flex;align-items: center;justify-content: center;color: var(--ds-ink);background: var(--ds-soft);border: 1px solid var(--ds-line)}.fx-icon-btn:hover:not(:disabled){border-color: var(--ds-accent);color: var(--ds-accent)}.fx-seg{display: inline-grid;grid-template-columns: 1fr 1fr;gap: 3px;padding: 3px;background: var(--ds-soft);border: 1px solid var(--ds-line);border-radius: 11px}.fx-seg-btn{min-height: 34px;padding: 0 14px;border: 0;border-radius: 8px;cursor: pointer;font: inherit;font-size: 0.86rem;font-weight: 700;background: transparent;color: var(--ds-muted)}.fx-seg-btn.is-on{background: var(--ds-accent);color: var(--ds-accent-ink)}.fx-stage{display: flex;align-items: center;justify-content: center;overflow: hidden;height: calc(100vh - 330px);min-height: 380px;border-radius: 12px;background: var(--ds-soft)}.fx-stage canvas{display: block;background: #fff;box-shadow: 0 6px 22px rgba(0,0,0,0.3);max-width: 100%}.fx-note{margin: 0;text-align: center;font-size: 0.84rem;color: var(--ds-muted);min-height: 1.3em}.fx-result{padding: 18px;display: flex;flex-direction: column;gap: 10px;border-color: rgba(34,197,94,0.5)}.fx-result.is-warn{border-color: rgba(245,158,11,0.6)}.fx-result.hidden{display: none}.fx-result-head{display: flex;align-items: center;gap: 12px}.fx-result-head strong{font-size: 1.05rem;color: var(--ds-ink)}.fx-result-icon{flex: 0 0 auto;width: 32px;height: 32px;border-radius: 50%;display: inline-flex;align-items: center;justify-content: center;font-weight: 800;color: #fff;background: #16a34a}.fx-result.is-warn .fx-result-icon{background: #d97706}.fx-result-text{margin: 0;font-size: 0.92rem;color: var(--ds-ink)}.fx-notes{margin: 0;padding-left: 20px;display: flex;flex-direction: column;gap: 4px;font-size: 0.86rem;line-height: 1.45;color: var(--ds-muted)}.fx-pages-head{padding: 0 4px;font-size: 0.8rem;letter-spacing: 0.04em;text-transform: uppercase;color: var(--ds-muted)}.fx-grid{display: grid;grid-template-columns: repeat(auto-fill,minmax(104px,1fr));gap: 10px}.fx-thumb{display: flex;flex-direction: column;align-items: center;gap: 4px;padding: 6px 6px 8px;border-radius: 12px;background: var(--ds-panel);border: 1px solid var(--ds-line)}.fx-thumb img{width: 100%;height: 120px;object-fit: contain;background: #fff;border-radius: 4px}.fx-thumb span{font-size: 0.78rem;font-weight: 700;color: var(--ds-muted)}.repair-section #repairWork.is-opening .fx-layout{opacity: 0.55}@media (min-width: 901px){.fx-side{max-height: calc(100vh - 200px)}.fx-side > .fx-card{min-height: 0;overflow-y: auto;flex: 0 1 auto}.fx-side > .fx-runbar{flex: 0 0 auto}}@media (max-width: 900px){.fx-layout{grid-template-columns: minmax(0,1fr)}.fx-side{position: static}.fx-stage{height: min(62vh,560px);min-height: 300px}}@media (max-width: 760px){.fx-section.docsplit-section{padding: 0 0 calc(96px + env(safe-area-inset-bottom,0px))}.fx-section .ds-wrap{max-width: none}.fx-section .ds-empty{margin: 18px 12px}.fx-section .ds-work{display: flex;flex-direction: column}.fx-section .fx-layout,.fx-section .fx-main,.fx-section .fx-side,.fx-section .fx-card{display: contents}.fx-phone-head{order: 0;display: flex;align-items: center;gap: 8px;padding: 4px 12px;margin: 0;background: var(--ds-panel);border-bottom: 2px solid transparent;border-image: linear-gradient(90deg,rgba(99,102,241,0),#6366f1 18%,#a855f7 82%,rgba(168,85,247,0)) 1}.fx-phone-head .extract-sidebar-title{margin: 0}.fx-phone-title{font-size: 0.86rem;font-weight: 800;letter-spacing: 0.04em;background: linear-gradient(90deg,#6366f1,#a855f7);-webkit-background-clip: text;background-clip: text;-webkit-text-fill-color: transparent;color: transparent}.fx-phone-head .extract-sidebar-view-icon{color: #6366f1}.fx-phone-close{margin-left: auto;min-height: 44px;padding: 0 8px;border: 0;background: transparent;font-size: 0.82rem}.fx-section .ds-progress{order: 1;margin: 0;padding: 8px 12px;background: var(--ds-soft);flex-wrap: wrap}.fx-section .ds-progress-track{flex: 1 1 100%}.fx-viewer{order: 2;position: sticky;top: var(--header-height,64px);z-index: 30;border: 0;border-radius: 0;box-shadow: none;padding: 6px 12px 4px;gap: 6px;border-bottom: 1px solid var(--ds-line)}.fx-viewer-bar{justify-content: center}.fx-seg{display: none}.fx-icon-btn{width: 44px;height: 44px}.fx-page input{width: 54px;min-height: 44px}.fx-stage{height: min(34vh,300px);min-height: 200px}.fx-note{font-size: 0.74rem;min-height: 0}.fx-section .ds-file{order: 3;margin: 8px 0 0;border-radius: 0;border-width: 1px 0;padding: 8px 12px;gap: 8px;flex-wrap: wrap}.fx-section .ds-file-icon,.fx-section .ds-file-actions .ds-close{display: none}.fx-section .ds-file-text{flex: 1 1 100%}.fx-section .ds-file-actions{flex: 1 1 100%}.fx-section .ds-file-actions .ds-btn{flex: 1;min-height: 44px;font-size: 0.82rem}.fx-stats{order: 4;border: 0;border-radius: 0;box-shadow: none;background: transparent;padding: 8px 12px 2px;gap: 6px}.fx-result{order: 3;margin: 8px 12px 0}.fx-pages-head{order: 5;padding: 8px 14px 0}.fx-grid{order: 6;padding: 8px 12px;grid-template-columns: repeat(auto-fill,minmax(92px,1fr))}.fx-section .fx-card > *{margin-left: 12px;margin-right: 12px}.fx-section .fx-card > :first-child{margin-top: 12px}.fx-section .fx-card > .fx-field,.fx-section .fx-card > .fx-help,.fx-section .fx-card > input{order: 7}.fx-section .fx-card > *{margin-top: 12px}.fx-section .fx-card > .fx-help{margin-top: 6px}.fx-field select,.fx-field input[type="text"],.fx-card > input.ds-range{min-height: 44px}.fx-runbar{display: none}.fx-section.is-working .fx-dock{display: flex;align-items: stretch;gap: 8px;position: fixed;left: 0;right: 0;bottom: 0;z-index: 900;padding: 10px 12px;padding-bottom: max(10px,env(safe-area-inset-bottom,0px));background: var(--bg-secondary);border-top: 1px solid var(--border-color);box-shadow: 0 -6px 18px rgba(15,23,42,0.12)}}@supports (overflow: clip){@media (max-width: 760px){html:has(.fx-section.is-working),body:has(.fx-section.is-working){overflow-x: clip}}}@media (max-width: 760px) and (max-height: 780px){.fx-stage{height: min(30vh,250px);min-height: 170px}}@media (max-width: 760px) and (max-height: 700px){.fx-viewer{position: static}}
