.pt-new-tool .pt-work-view>.pt-new-view{display:flex;flex-direction:column;gap:.65rem;min-height:300px;overflow:hidden;padding:.85rem!important}.pt-new-bar{display:flex;align-items:center;justify-content:space-between;gap:.5rem;flex-wrap:wrap;flex:none}.pt-new-bar h2{margin:0}.pt-new-stage{min-height:0;min-width:0;flex:1;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#101219;border:1px solid var(--pt-border);border-radius:8px;padding:6px;text-align:center;color:var(--pt-muted)}.pt-new-stage img,.pt-new-stage canvas{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;min-width:0;min-height:0}.pt-new-stage [hidden],.pt-new-tool [hidden]{display:none!important}.pt-new-scroll{overflow:auto;min-height:0;flex:1}.pt-data-table{border-collapse:collapse;width:100%;font-size:.84rem;overflow-wrap:anywhere}.pt-data-table th,.pt-data-table td{padding:.45rem .55rem;border-bottom:1px solid var(--pt-border);text-align:left;vertical-align:middle}.pt-data-table th{position:sticky;top:0;background:#1c2130;z-index:1}.pt-data-table td button{white-space:nowrap}.pt-data-table td input{min-width:110px;width:100%}.pt-small-select{max-width:230px;font-size:.8rem}.pt-ocr-panes,.pt-cut-panes{display:flex;gap:.65rem;min-height:0;flex:1}.pt-ocr-panes>* ,.pt-cut-panes>*{flex:1;min-width:0}.pt-ocr-result{display:flex;flex-direction:column;gap:.4rem;min-height:0}.pt-ocr-result p{margin:0}.pt-tsv{resize:vertical;min-height:85px;max-height:50%;font:12px/1.5 monospace;white-space:pre;overflow:auto}.pt-checker{background-color:#e7e7e7;background-image:conic-gradient(#c7c7c7 25%,#eee 0 50%,#c7c7c7 0 75%,#eee 0);background-size:20px 20px;color:#222}.pt-cut-panes canvas,.pt-thumb-stage canvas{touch-action:none;cursor:crosshair}.pt-thumb-stage canvas{cursor:grab}.pt-new-faq details{padding:.8rem 1rem;border:1px solid var(--pt-border);border-radius:8px;margin-bottom:.5rem;background:var(--pt-panel,#161922)}.pt-new-faq summary{cursor:pointer;font-weight:600}.pt-new-faq p{margin:.6rem 0 0;color:var(--pt-muted)}.pt-new-tool .pt-work-controls input[type=color]{min-height:34px}.pt-new-tool .pt-work-controls .form-check{font-size:.82rem}.pt-new-tool .pt-work-actions .btn{flex:1 1 auto}.pt-new-tool .pt-work-actions #actionStatus{white-space:normal;overflow-wrap:anywhere}.pt-new-tool .pt-work-controls .btn{margin-bottom:.2rem}.pt-new-tool .pt-work-controls input[type=range]{padding:0}.pt-new-tool .pt-work-controls label{display:block}.pt-new-tool .pt-work-controls label.form-check{display:flex}.pt-new-tool .pt-work-controls .form-text{margin:0}
@media(min-width:992px){.pt-new-stage{height:100%;position:relative}.pt-new-stage img,.pt-new-stage canvas{max-height:calc(var(--pt-work-height) - 95px);max-width:100%;object-fit:contain}.pt-ocr-panes .pt-new-stage{height:auto}.pt-new-tool .pt-new-view{min-height:0!important}}
@media(max-width:991.98px){.pt-new-stage{min-height:180px;max-height:420px}.pt-new-stage img,.pt-new-stage canvas{max-height:380px}.pt-ocr-panes{flex-direction:column}.pt-ocr-result .pt-new-scroll{max-height:250px}.pt-tsv{min-height:100px}.pt-new-view .pt-new-scroll{max-height:460px}.pt-cut-panes{flex-direction:column}.pt-cut-panes .pt-new-stage{min-height:180px}}

.pt-data-table td[contenteditable=true],.pt-data-table td[contenteditable=plaintext-only]{cursor:text;min-width:52px}.pt-data-table td[contenteditable]:focus{outline:2px solid #65e6f2;outline-offset:-2px;background:#1f2a38}.pt-new-stage img{user-select:none}.pt-new-tool .pt-new-bar .btn{white-space:nowrap}
