:root{--bg-color: #202331;--primary-color: #f36b2d;--primary-hover: #ff7c42;--accent-color: #d7d9e8;--muted-color: #9aa0b8;--container-bg: #2b2e3a;--container-shadow: rgba(0, 0, 0, .6);--input-bg: #363a49;--input-border: transparent;--advanced-bg: #252937;--advanced-border: #454b5d;--file-container-bg: #333848;--file-container-hover-bg: #42485a;--file-container-dragover-bg: #4b5266;--url-error-color: #e74c3c;--transition-speed: .3s}*{margin:0;padding:0;box-sizing:border-box}html{min-height:100%;background-color:var(--bg-color)}body{font-family:Source Code Pro,monospace;background:linear-gradient(180deg,#ffffff06,#fff0 220px),var(--bg-color);color:var(--accent-color);font-size:16px;padding:16px;min-height:100vh;-webkit-font-smoothing:antialiased;animation:fadeIn var(--transition-speed) ease-out}h1,h2,h3,p,select,input,button,textarea{font-family:inherit}h1{text-align:center;margin:12px 0 16px;font-size:clamp(2.15rem,6vw,3rem);color:var(--primary-color);text-shadow:0 2px 4px rgba(0,0,0,.6);letter-spacing:0}@media(max-width:600px){h1{margin-top:0}}#type-container{max-width:940px;margin:20px auto;padding:22px;background-color:var(--container-bg);border:1px solid rgba(255,255,255,.06);border-radius:8px;box-shadow:0 8px 16px var(--container-shadow);animation:fadeIn var(--transition-speed) ease-out}#form{display:grid;gap:4px}textarea,input[type=url],input[type=text],input[type=range],input[type=checkbox],input[type=submit],input[type=number],input[type=tel],input[type=datetime-local],select{width:100%;height:44px;margin-top:6px;margin-bottom:14px;padding:10px;background-color:var(--input-bg);border:2px solid var(--input-border);border-radius:8px;color:var(--accent-color);font-size:16px;transition:border-color var(--transition-speed),background-color var(--transition-speed)}textarea:hover,input[type=url]:hover,input[type=text]:hover,input[type=range]:hover,input[type=number]:hover,input[type=tel]:hover,input[type=datetime-local]:hover,select:hover{border-color:#f36b2d73}form>div{min-width:0}textarea:focus,input[type=url]:focus,input[type=text]:focus,input[type=range]:focus,input[type=checkbox]:focus,input[type=submit]:focus,input[type=number]:focus,input[type=tel]:focus,input[type=datetime-local]:focus,select:focus{outline:none;border-color:var(--primary-color)}input[type=range]{padding:0}input[type=range]::-webkit-slider-thumb,input[type=range]::-moz-range-thumb,input[type=range]::-ms-thumb{background-color:var(--primary-color);border:none;border-radius:50%;height:20px;width:20px;cursor:pointer}input[type=checkbox]{width:24px;height:24px;accent-color:var(--primary-color)}textarea{height:220px;resize:none}.file-text{font-size:1.5rem;font-weight:700;color:var(--primary-color);text-overflow:ellipsis;overflow:hidden;white-space:nowrap}#file-input{display:none}#file-container{display:block;flex-direction:column}#file-input-container{display:flex;flex-direction:column;align-items:center;justify-content:center;border:2px dashed var(--primary-color);border-radius:8px;background-color:var(--file-container-bg);padding:22px;margin:6px 0 10px;min-height:178px;text-align:center;cursor:pointer;transition:background-color var(--transition-speed),border-color var(--transition-speed),transform var(--transition-speed)}#file-input-container:hover{background-color:var(--file-container-hover-bg)}#file-input-container.dragover{background-color:var(--file-container-dragover-bg);border-color:var(--primary-hover)}#selected-files-container{font-size:16px;margin-bottom:14px;background-color:var(--advanced-bg);border:1px solid var(--advanced-border);border-radius:8px;padding:12px}#converted-results-container{font-size:16px;margin-top:8px;margin-bottom:16px;background-color:var(--advanced-bg);border:1px solid var(--advanced-border);border-radius:8px;padding:12px}#selected-files-header,#converted-results-header{display:flex;align-items:center;justify-content:space-between;gap:12px}#selected-files-text,#converted-results-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#selected-files-actions,#converted-results-actions{display:flex;align-items:center;gap:8px}#converted-results-header,#converted-results-actions{flex-wrap:wrap}#converted-results-actions .icon-button{width:44px;min-width:44px;height:44px}#converted-results-download{width:auto;min-height:44px;margin:0;padding:8px 12px;font-size:14px;border:1px solid var(--primary-color);border-radius:6px;background:var(--input-bg);color:var(--accent-color);cursor:pointer}#converted-failures{margin-top:12px;color:var(--url-error-color);overflow-wrap:anywhere}#converted-failures[hidden],#converted-results-download[hidden]{display:none}#converted-failures summary{min-height:44px;padding:10px 0;cursor:pointer}#converted-failures ul{margin:0;padding-left:20px}#converted-failures li{margin:8px 0}@media(max-width:600px){#converted-results-actions{display:grid;grid-template-columns:minmax(0,1fr) 44px 44px;gap:6px;width:100%}#converted-results-download{grid-column:1;min-width:0;white-space:normal}#converted-results-toggle{grid-column:2}#converted-results-clear{grid-column:3}#converted-results-text{white-space:normal}#conversion-status{flex-wrap:wrap}#conversion-status-text{flex:1 1 100%}#conversion-status>button{margin-left:auto}}#selected-files-list,#converted-results-list{margin-top:12px;max-height:300px;overflow-y:auto;border-top:1px solid var(--advanced-border);padding-top:8px}.file-item,.converted-result-item{display:flex;align-items:center;gap:10px;padding:8px;border-bottom:1px solid var(--input-bg);transition:background-color var(--transition-speed)}.file-item:last-child,.converted-result-item:last-child{border-bottom:none}.file-item:hover,.converted-result-item:hover{background-color:var(--input-bg)}.file-icon{font-size:18px;width:20px;text-align:center}.file-info{flex:1;min-width:0}.file-name{font-weight:700;color:var(--accent-color);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.file-details{font-size:12px;color:#888;margin-top:2px}.file-preview{margin-top:8px;max-width:200px;max-height:150px;border-radius:4px;border:1px solid var(--advanced-border)}.file-preview img{width:100%;height:auto;border-radius:4px}#file-preview-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#000c;z-index:1000;display:flex;align-items:center;justify-content:center;padding:20px;box-sizing:border-box}#file-preview-modal{background-color:var(--container-bg);border-radius:10px;max-width:min(1180px,94vw);max-height:92vh;width:100%;display:flex;flex-direction:column;box-shadow:0 20px 40px #0009;animation:fadeIn .3s ease-out}#file-preview-header{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;border-bottom:1px solid var(--advanced-border)}#file-preview-title{min-width:0;padding-right:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:1.15rem;font-weight:700;color:var(--primary-color)}#file-preview-close{background:none;border:none;color:var(--accent-color);font-size:1.5rem;cursor:pointer;flex:0 0 auto;width:36px;height:36px;padding:0;border-radius:4px;transition:background-color var(--transition-speed)}#file-preview-close:hover{background-color:var(--input-bg)}#file-preview-content{padding:16px;flex:1;overflow:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:200px}.file-preview-image{max-width:100%;max-height:70vh;border-radius:8px;box-shadow:0 4px 8px #0000004d;transform-origin:center center;will-change:transform}.image-viewer{width:100%;max-width:1100px}.image-toolbar{justify-content:flex-start;flex-wrap:wrap}.image-stage{display:flex;align-items:center;justify-content:center;height:70vh;min-height:320px;overflow:hidden;border:1px solid var(--advanced-border);border-radius:8px;background-color:#202331;background-image:linear-gradient(45deg,rgba(255,255,255,.08) 25%,transparent 25%),linear-gradient(-45deg,rgba(255,255,255,.08) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,rgba(255,255,255,.08) 75%),linear-gradient(-45deg,transparent 75%,rgba(255,255,255,.08) 75%);background-position:0 0,0 10px,10px -10px,-10px 0;background-size:20px 20px;cursor:grab;touch-action:none}.image-stage:active{cursor:grabbing}.file-preview-video{max-width:100%;max-height:70vh;border-radius:8px;box-shadow:0 4px 8px #0000004d}.file-preview-audio{width:100%;max-width:500px;margin:20px 0}.file-preview-frame{width:100%;height:68vh;border:1px solid var(--advanced-border);border-radius:8px;background:#fff}.archive-viewer,.document-viewer,.json-viewer,.table-viewer,.font-viewer,.code-viewer,.model-viewer{width:100%;max-width:1100px}.archive-summary{color:var(--primary-color);font-weight:700;margin-bottom:12px}.viewer-toolbar .archive-summary{margin-bottom:0}.archive-layout{display:grid;grid-template-columns:minmax(240px,.75fr) minmax(0,1.25fr);gap:12px;width:100%}.archive-list{width:100%;max-height:70vh;overflow:auto;border:1px solid var(--advanced-border);border-radius:8px}.archive-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;width:100%;padding:10px 12px;background:var(--input-bg);color:var(--accent-color);border:0;border-bottom:1px solid var(--advanced-border);font:inherit;text-align:left;cursor:pointer}.archive-row:hover,.archive-row:focus{background:var(--file-container-hover-bg);outline:none}.archive-row span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.archive-actions{display:inline-flex;align-items:center;gap:8px}.archive-actions button{width:auto;height:30px;margin:0;padding:0 8px;border:1px solid var(--advanced-border);border-radius:6px;background:var(--advanced-bg);color:var(--accent-color);cursor:pointer;font-size:12px}.archive-preview{min-width:0;min-height:360px;max-height:70vh;overflow:auto;padding:12px;border:1px solid var(--advanced-border);border-radius:8px;background:#25293799}.viewer-toolbar{display:flex;align-items:center;gap:8px;margin-bottom:10px}.archive-toolbar,.code-toolbar{justify-content:space-between}.viewer-toolbar button,.editor-reset-field>button,.editor-color-reset,.image-tool-panel>button,.image-editor-values>button{width:auto;min-width:104px;height:36px;margin:0;padding:0 12px;border:1px solid var(--advanced-border);border-radius:6px;background:var(--input-bg);color:var(--accent-color);cursor:pointer;font-size:13px}.viewer-toolbar button:hover,.editor-reset-field>button:hover,.editor-color-reset:hover,.image-tool-panel>button:hover,.image-editor-values>button:hover{border-color:var(--primary-color)}.viewer-search{width:min(280px,100%);height:36px;margin:0;padding:0 10px;border:1px solid var(--advanced-border);border-radius:6px;background:var(--input-bg);color:var(--accent-color);font:inherit;font-size:13px}.json-tree{width:100%;max-height:70vh;overflow:auto;padding:14px 16px;border:1px solid var(--advanced-border);border-radius:8px;background:var(--input-bg);font-family:Courier New,monospace;font-size:14px;line-height:1.55}.json-tree details{margin-left:16px}.json-tree>details{margin-left:0}.json-tree summary{cursor:pointer;user-select:none}.json-children{margin-left:18px;border-left:1px solid var(--advanced-border);padding-left:12px}.json-leaf{margin-left:16px}.json-key{color:var(--primary-color)}.json-type{color:#9aa0b8}.json-string{color:#b8e986}.json-number,.json-boolean{color:#89c2ff}.json-null{color:#9aa0b8}.table-scroll{width:100%;max-height:70vh;overflow:auto;border:1px solid var(--advanced-border);border-radius:8px;background:var(--input-bg)}.preview-table{width:100%;border-collapse:collapse;font-size:13px;color:var(--accent-color)}.preview-table th,.preview-table td{max-width:280px;padding:8px 10px;border-bottom:1px solid var(--advanced-border);border-right:1px solid var(--advanced-border);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}.preview-table th{position:sticky;top:0;background:var(--advanced-bg);color:var(--primary-color);z-index:1}.font-viewer{padding:24px;border:1px solid var(--advanced-border);border-radius:8px;background:var(--input-bg)}.font-preview-sample{margin:18px 0;color:var(--accent-color);font-size:56px;line-height:1.1;word-break:break-word}.font-preview-pangram{color:#b9bed3;font-size:24px;line-height:1.35}.document-viewer{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);gap:12px}.document-frame,.document-text{height:70vh;max-height:70vh}.document-frame,.file-preview-text.document-text{box-sizing:border-box}.file-preview-text.document-text{max-width:none;max-height:70vh;margin:0}.legacy-doc-viewer{width:100%;max-width:1100px}.document-meta{margin-bottom:12px;padding:12px;border:1px solid var(--advanced-border);border-radius:8px;background:#252937b8}.document-meta-title{color:var(--accent-color);font-weight:700}.document-meta-detail{margin-top:4px;color:var(--muted-color);font-size:13px;line-height:1.45}.legacy-doc-text{width:100%}.pdf-page-pane,.pdf-text-pane{min-width:0}.pdf-page-canvas{display:block;max-width:100%;max-height:64vh;margin:0 auto;border:1px solid var(--advanced-border);border-radius:8px;background:#fff}.pdf-page-label{min-width:120px;color:var(--muted-color);text-align:center;font-size:13px}.pdf-text-pane{display:grid;grid-template-rows:auto minmax(0,1fr);gap:10px}.code-lines{width:100%;max-height:70vh;overflow:auto;border:1px solid var(--advanced-border);border-radius:8px;background:var(--input-bg);font-family:Courier New,monospace;font-size:13px;line-height:1.5}.code-line{display:grid;grid-template-columns:64px minmax(0,1fr);min-height:22px}.code-line-number{padding:1px 10px;color:var(--muted-color);border-right:1px solid var(--advanced-border);text-align:right;user-select:none}.code-line-content{padding:1px 10px;overflow-wrap:anywhere;white-space:pre-wrap}.code-line-match{background:#f36b2d2e}.hljs-keyword,.hljs-selector-tag,.hljs-built_in,.hljs-name{color:#ff9f6e}.hljs-string,.hljs-title,.hljs-section,.hljs-attribute,.hljs-literal{color:#b8e986}.hljs-number,.hljs-symbol,.hljs-bullet{color:#89c2ff}.hljs-comment,.hljs-quote{color:#8d93aa}.hljs-variable,.hljs-template-variable,.hljs-regexp,.hljs-link{color:#e7c673}.model-viewer{position:relative;height:70vh;min-height:360px;border:1px solid var(--advanced-border);border-radius:8px;overflow:hidden;background:#202331}.model-viewer canvas{display:block;width:100%;height:100%}.model-viewer-status{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:var(--accent-color);background:#202331eb;z-index:1}@media(max-width:760px){.document-viewer,.archive-layout{grid-template-columns:1fr}.archive-preview{max-height:66vh}.viewer-toolbar{align-items:center;flex-direction:row}.viewer-search{width:100%}}.file-preview-text{width:100%;max-width:800px;background-color:var(--input-bg);border:1px solid var(--advanced-border);border-radius:8px;padding:20px;font-family:Courier New,monospace;font-size:14px;line-height:1.5;white-space:pre-wrap;word-wrap:break-word;max-height:60vh;overflow:auto;color:var(--accent-color)}.file-preview-unsupported{text-align:center;color:var(--accent-color);font-size:1.2rem;padding:40px}.file-preview-error-detail{margin-top:10px;color:#9aa0b8;font-size:.9rem;overflow-wrap:anywhere}.file-preview-status{color:var(--accent-color);font-size:1rem;padding:40px}.file-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}.icon-button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:32px;height:32px;margin:0;padding:0;border:1px solid var(--advanced-border);border-radius:6px;background:var(--input-bg);cursor:pointer;color:var(--primary-color);font-size:16px;line-height:1;opacity:.88;transition:border-color var(--transition-speed),color var(--transition-speed),background-color var(--transition-speed),opacity var(--transition-speed)}.icon-button:hover,.icon-button:focus-visible{border-color:var(--primary-color);color:var(--primary-hover);background:var(--advanced-bg);opacity:1;outline:none}.icon-button-small{width:30px;height:30px;font-size:14px}.icon-button-danger{color:#ff806f}.icon-button-danger:hover,.icon-button-danger:focus-visible{border-color:var(--url-error-color);color:#e74c3c}#url-error{font-size:16px;color:var(--url-error-color);margin-top:8px;margin-bottom:12px}#url-preview{display:block;width:84px;height:84px;margin:10px auto;border:2px solid var(--primary-color);border-radius:8px}#currency-note{min-height:20px;margin:-8px 0 12px;color:var(--muted-color);font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#conversion-status{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;margin:4px 0 14px;padding:9px 10px 9px 12px;background:var(--advanced-bg);border:1px solid var(--advanced-border);border-radius:8px;color:var(--accent-color)}#conversion-status[hidden]{display:none}#conversion-status[data-state=busy]{border-color:var(--primary-color)}#conversion-status[data-state=done]{border-color:#55a66a}#conversion-status[data-state=error]{border-color:var(--url-error-color)}#conversion-status-text{min-width:0;overflow-wrap:anywhere;font-size:14px}#conversion-cancel,#conversion-retry{flex:0 0 auto;width:auto;min-height:44px;margin:0;padding:0 10px;border:1px solid var(--advanced-border);border-radius:6px;background:var(--input-bg);color:var(--accent-color);cursor:pointer;font-size:13px}#conversion-cancel:hover,#conversion-retry:hover{border-color:var(--primary-color);color:#fff}#submit-button{background-color:var(--primary-color);color:#1c1c1c;padding:12px;font-weight:700;border:none;border-radius:8px;cursor:pointer;transition:background-color var(--transition-speed),transform var(--transition-speed)}#submit-button:not(:disabled):hover{background-color:var(--primary-hover);transform:translateY(-1px)}#submit-button:disabled{background-color:#555;color:#999;cursor:not-allowed}#converted-input-container{position:relative}#converted-input{padding-right:142px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;background-color:var(--file-container-bg);border:2px solid var(--advanced-border);border-radius:8px;height:45px;color:var(--accent-color);transition:border-color var(--transition-speed)}#converted-input:focus{border-color:var(--advanced-border)}#converted-copy,#converted-view,#converted-download{display:none;align-items:center;justify-content:center;border:none;position:absolute;top:8px;right:2px;background-color:var(--primary-color);color:#1c1c1c;border-radius:6px;cursor:pointer;height:41px;width:41px;transition:background-color var(--transition-speed)}#converted-copy[style*=block],#converted-view[style*=block],#converted-download[style*=block]{display:flex!important}#converted-copy:hover,#converted-view:hover,#converted-download:hover{background-color:var(--primary-hover)}#converted-input-container:has(#converted-view[style*=block]) #converted-copy,#converted-input-container:has(#converted-download[style*=block]) #converted-view{right:47px}#converted-input-container:has(#converted-download[style*=block]) #converted-copy{right:92px}select{appearance:none;background-image:url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 140'%3E%3Cpolygon points='70,105 0,35 140,35' fill='%23ff5722'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;background-size:12px}label{font-size:.95rem;margin-bottom:4px;color:var(--accent-color);display:block}@media(max-width:640px){body{padding:10px}h1{font-size:2.2rem;margin-bottom:14px}#type-container{margin:10px auto;padding:16px;border-radius:8px}.file-text{font-size:1.25rem}#file-input-container{height:160px}#file-preview-overlay{padding:8px}#file-preview-modal{max-width:100vw;max-height:96vh}#file-preview-content{padding:10px}.file-preview-frame,.document-frame,.document-text,.model-viewer{height:66vh;max-height:66vh}.font-preview-sample{font-size:38px}.font-preview-pangram{font-size:18px}}.model-resource-warning{color:#ffbf75;font-size:.85rem;padding:.75rem;overflow-wrap:anywhere}.viewer-summary{color:var(--primary-color);font-size:.85rem;padding:.5rem 0}.viewer-note{color:#aeb2c7;font-size:.8rem;line-height:1.6;margin:.65rem 0}.spreadsheet-viewer,.drawing-viewer,.tiff-viewer{width:100%;max-width:1400px}.spreadsheet-editbar{display:flex;gap:.5rem;align-items:center;margin:.6rem 0}.spreadsheet-editbar input{flex:1;min-width:80px}.cell-address{min-width:110px;color:var(--primary-color);font-weight:700;font-size:.85rem}.spreadsheet-scroll{max-height:56vh}.spreadsheet-table{font-family:Source Code Pro,monospace;font-size:.82rem}.spreadsheet-table td{min-width:100px;max-width:300px;white-space:pre;overflow:hidden;text-overflow:ellipsis;cursor:cell}.spreadsheet-table th{position:sticky;top:0;background:#34394c;z-index:1}.spreadsheet-table tbody th{position:sticky;left:0;min-width:45px}.spreadsheet-table td.selected-cell{outline:2px solid #f36b2d;outline-offset:-2px;background:#f36b2d22}.spreadsheet-table td.numeric-cell{text-align:right}.spreadsheet-table td.formula-cell:before{content:"ƒ ";color:#f36b2d;font-size:.7rem}.spreadsheet-table td.merged-cell{border-bottom:2px solid #788098}.drawing-layout{display:grid;grid-template-columns:200px minmax(0,1fr);border:1px solid #414658;border-radius:8px;overflow:hidden}.layer-panel{padding:1rem;overflow:auto;max-height:66vh;background:#272b3b}.layer-panel label,.model-layer-list label{display:flex;align-items:center;gap:.5rem;font-size:.8rem;padding:.5rem 0;overflow-wrap:anywhere}.layer-panel input,.model-layer-list input{width:auto;margin:0}.drawing-stage{height:66vh;min-height:350px;background:#fff;overflow:hidden}.dxf-canvas{width:100%;height:100%;display:block;touch-action:none;cursor:grab}.dxf-canvas.measuring{cursor:crosshair}.model-inspector{display:flex;gap:.8rem;flex-wrap:wrap;align-items:center;padding:.85rem 0}.model-inspector label{display:flex;align-items:center;gap:.5rem;font-size:.8rem}.model-inspector input[type=range]{width:90px}.model-inspector .viewer-note,.model-inspector details{flex-basis:100%}.model-inspector pre{font-size:.75rem;white-space:pre-wrap;overflow-wrap:anywhere}.model-layer-list{display:flex;flex-wrap:wrap;gap:0 1rem;max-height:180px;overflow:auto}.viewer-toolbar select,.model-inspector select{max-width:100%}@media(max-width:650px){.drawing-layout{grid-template-columns:1fr}.layer-panel{max-height:140px;display:flex;flex-wrap:wrap;gap:0 1rem}.layer-panel strong{width:100%}.spreadsheet-editbar{flex-wrap:wrap}.cell-address{min-width:60px}.viewer-toolbar input[type=search]{min-width:0;width:100%}}#file-preview-content{justify-content:flex-start}.model-preview{width:100%;max-width:1100px;min-width:0}.viewer-toolbar{flex-wrap:wrap}.viewer-toolbar button{white-space:nowrap;min-width:0;width:auto;flex:0 0 auto}.viewer-toolbar select{width:auto;min-width:120px;margin:0;height:36px;padding:0 30px 0 10px;font-size:.82rem;line-height:1.3}.viewer-toolbar input[type=search]{height:36px;max-width:280px;min-width:140px;margin:0;font-size:.82rem}@media(max-width:650px){.viewer-toolbar{gap:.5rem}.viewer-toolbar button{flex:0 0 auto}.viewer-toolbar select{flex:1 1 120px}.viewer-toolbar input[type=search]{flex:1 1 100%;max-width:none}}.viewer-toolbar input[type=search],.spreadsheet-editbar input{box-sizing:border-box;height:36px;padding:0 10px;border:1px solid var(--advanced-border, #414658);border-radius:6px;background:var(--input-bg, #34394c);color:var(--accent-color, #d7d9e8);font-family:inherit;font-size:.82rem}.viewer-toolbar button:focus-visible,.viewer-toolbar select:focus-visible,.spreadsheet-editbar input:focus-visible,.spreadsheet-table td:focus-visible{outline:2px solid var(--primary-color, #f36b2d);outline-offset:2px}.pdf-reader{width:100%;max-width:1400px;min-width:0}.pdf-reader .viewer-toolbar{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:8px}.pdf-reader .viewer-toolbar button{flex:0 0 auto}.pdf-reader .viewer-toolbar select{flex:0 1 auto}.pdf-reader .viewer-toolbar input{margin:0;height:36px}.pdf-reader .viewer-toolbar[hidden],.pdf-tools[hidden],.raw-viewer [hidden]{display:none}.pdf-reader>.viewer-note:empty{display:none}.pdf-tools{padding:12px;margin-bottom:12px;background:var(--advanced-bg);border:1px solid var(--advanced-border);border-radius:8px}.pdf-searchbar input{flex:1;min-width:120px}.pdf-reader-stage{position:relative;width:100%;height:62vh;min-height:280px;background:#171922;border:1px solid var(--advanced-border)}.pdf-reader-scroll{position:absolute;inset:0;overflow:auto;overscroll-behavior:contain;touch-action:pan-x pan-y}.pdf-reader-scroll.pdf-hand-tool,.pdf-reader-scroll.pdf-hand-tool *{cursor:grab!important}.pdf-reader-scroll.is-panning,.pdf-reader-scroll.is-panning *{cursor:grabbing!important}.pdf-reader .pdfViewer .page{box-sizing:content-box}.pdf-reader .pdfViewer .textLayer{font-family:initial}.pdf-reader input[aria-label="PDF page"]{width:55px}.pdf-reader input,.pdf-reader select{max-width:100%;padding:6px;background:var(--input-bg);color:var(--text-color);border:1px solid var(--advanced-border);border-radius:4px}.pdf-reader input[aria-label="PDF export pages"]{width:240px}.pdf-reader-text{max-height:30vh;overflow:auto;margin:8px 0}.pdf-reader-text[hidden]{display:none}.pdf-reader-stage .annotationLayer input,.pdf-reader-stage .annotationLayer select{color:#000;padding:0;background:transparent;border-radius:0}.pdf-organizer[hidden]{display:none}.conversion-preflight{margin:10px 0 0;font-size:13px;line-height:1.5;color:var(--muted-color)}.conversion-report{color:var(--muted-color);font-size:12px;margin:6px 0}.pdf-page-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(175px,1fr));gap:12px;max-height:420px;overflow:auto;padding:8px}.pdf-page-card{min-width:0;padding:10px;border:1px solid var(--advanced-border);border-radius:8px;background:var(--input-bg)}.pdf-page-card canvas{display:block;max-width:100%;max-height:180px;margin:0 auto 8px;background:#fff}.pdf-page-card>span{display:block;overflow-wrap:anywhere;font-size:12px;margin-bottom:8px}.pdf-page-card .viewer-toolbar button{font-size:11px;padding:4px 6px}.pdf-organizer{border:1px solid var(--advanced-border);border-radius:8px;padding:10px;margin-bottom:12px}.conversion-comparison{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;width:100%}.comparison-column{min-width:0}.comparison-column h3{font-size:14px;overflow-wrap:anywhere}.comparison-content{min-width:0;overflow:auto;max-height:76vh}.comparison-content .document-viewer{grid-template-columns:1fr}.comparison-content .pdf-reader-stage{height:45vh}@media(max-width:800px){.conversion-comparison{grid-template-columns:1fr}.comparison-content{max-height:60vh}}.raw-viewer{width:100%;min-width:0}.raw-file-toolbar{width:100%}.raw-viewer .viewer-toolbar{flex-direction:row;flex-wrap:wrap;align-items:center}.raw-viewer .viewer-toolbar select{flex:0 1 auto;min-width:90px}.raw-viewer .viewer-toolbar button{flex:0 1 auto}.raw-text-editor,.raw-hex-view{display:block;width:100%;height:56vh;min-height:240px;box-sizing:border-box;padding:14px;border:1px solid var(--advanced-border);border-radius:8px;background:var(--input-bg);color:var(--text-color);font:13px/1.6 monospace;tab-size:4;overflow:auto}.raw-text-editor{resize:vertical;white-space:pre}.raw-hex-view{margin:0}.raw-text-editor:focus-visible,.raw-hex-view:focus-visible{outline:2px solid var(--primary-color);outline-offset:2px}.raw-viewer .viewer-note{margin:8px 0}.ui-icon{width:19px;height:19px;flex-shrink:0;vertical-align:middle}.file-icon .ui-icon{width:24px;height:24px}.conversion-details{margin-top:5px;font-size:12px}.conversion-details summary{cursor:pointer;color:#a9abb8}.pdf-password-dialog{color:inherit;background:#202331;border:1px solid #555;border-radius:6px;max-width:min(360px,90vw)}.pdf-password-dialog::backdrop{background:#0009}.pdf-password-dialog form{display:block}.pdf-password-dialog p{overflow-wrap:anywhere}.pdf-password-dialog label,.pdf-password-dialog input{display:block;width:100%;box-sizing:border-box}.pdf-password-dialog input{margin:8px 0 16px;padding:10px;background:var(--input-bg);color:var(--accent-color);border:1px solid var(--advanced-border);border-radius:4px}.pdf-password-dialog input:focus{outline:2px solid var(--primary-color)}.pdf-password-dialog button{margin-right:8px}.scan-toolbar{flex-wrap:wrap;gap:8px}.scan-toolbar button{display:inline-flex;align-items:center;justify-content:center;gap:7px}.scan-toolbar button:disabled,.scan-page-actions button:disabled{opacity:.45;cursor:default}#scan-container [hidden]{display:none}.scan-camera-stage{position:relative;background:#11141d;border-radius:8px;overflow:hidden}.scan-live-outline{position:absolute;pointer-events:none}.scan-live-outline polygon{fill:#f36b2d12;stroke:#f36b2d;stroke-width:3px;vector-effect:non-scaling-stroke}#scan-auto[aria-pressed=true]{background:var(--primary-color);color:#141722}#scan-video{display:block;width:100%;max-height:55vh;object-fit:contain}.scan-guide{position:absolute;inset:9% 14%;border:2px dashed rgba(255,255,255,.65);border-radius:8px;pointer-events:none}.scan-pages-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 10px;font-size:.9rem}#scan-clear{background:none;border:0;color:var(--accent-color);text-decoration:underline;cursor:pointer;padding:8px}.scan-pages{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px;list-style:none}.scan-page{min-width:0;padding:12px;border:1px solid var(--advanced-border);border-radius:8px;background:var(--advanced-bg)}.scan-page img{display:block;width:100%;height:190px;object-fit:contain;background:#191c27;border-radius:4px}.scan-page>p{margin:10px 0;font-size:.85rem}.scan-page-actions{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:5px}.scan-page-actions button{flex:1 0 auto;min-width:0;padding:0 8px;font-size:12px}.scan-page-more{flex:0 0 auto}.scan-page-more[open]{flex:1 1 100%}.scan-page-more>.viewer-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.scan-error{color:#ffae99}.scan-crop-dialog{margin:auto;padding:20px;width:min(860px,calc(100vw - 24px));max-height:95vh;overflow:auto;color:var(--accent-color);background:var(--container-bg);border:1px solid var(--advanced-border);border-radius:10px}.scan-crop-dialog::backdrop{background:#000000bf}.scan-crop-dialog h2{font-size:1.1rem}.scan-crop-stage{position:relative;max-width:calc(100% - 8px);margin:24px auto;touch-action:none}#scan-crop-canvas{display:block;width:100%;height:auto;touch-action:none;cursor:crosshair}.scan-crop-corner{position:absolute;width:44px;height:44px;min-height:0;margin:0;padding:0;border:0;border-radius:50%;background:transparent;transform:translate(-50%,-50%);touch-action:none;cursor:move}.scan-crop-corner:after{content:"";display:block;width:18px;height:18px;margin:auto;border:2px solid var(--primary-color);border-radius:50%;background:#fff;box-shadow:0 1px 5px #0008}.scan-crop-corner:focus-visible{outline:2px solid var(--primary-color);outline-offset:-4px}@media(max-width:480px){.scan-pages{grid-template-columns:1fr;gap:8px}.scan-page{padding:8px}.scan-page img{height:200px}}.file-editor{width:100%;min-width:0;text-align:left}.editor-title{font-size:1.25rem;margin:0 0 14px}.editor-body,.editor-controls,.editor-preview,.archive-editor-preview{min-width:0;width:100%}.file-editor [hidden]{display:none!important}.file-editor .viewer-toolbar{display:flex;flex-direction:row;flex-wrap:wrap;align-items:end;gap:8px}.editor-field{display:flex;flex-direction:column;gap:5px;min-width:0;font-size:.75rem;color:var(--text-muted, #b8bbcc)}.editor-field input{box-sizing:border-box;width:140px;max-width:100%;height:36px;min-height:0;margin:0;padding:6px 8px;font-size:.85rem;color:var(--text-color, #ececf4);background:var(--advanced-bg, #252937);border:1px solid var(--advanced-border, #4a4e5d);border-radius:6px}.editor-field input[type=checkbox]{width:22px;height:22px;accent-color:#f36b2d}.editor-field input[type=range]{padding:0;accent-color:#f36b2d}.editor-field:has(input[type=checkbox]){align-self:center}.editor-summary{font-size:.8rem;color:var(--text-muted, #b8bbcc);align-self:center}.editor-savebar{margin-top:16px;padding-top:14px;border-top:1px solid var(--advanced-border, #4a4e5d)}.editor-savebar .editor-field{flex:1 1 220px}.editor-savebar .editor-field input{width:100%}.viewer-note:empty{display:none}.editor-save-options{margin-top:14px}.editor-draft-badge[hidden]{display:none}.editor-error{color:#ff9c9c}.editor-preview,.archive-editor-preview{padding:14px;margin-top:14px;border:1px solid var(--advanced-border, #4a4e5d);border-radius:8px;box-sizing:border-box}.editor-preview>button,.archive-editor-preview>button{margin-bottom:12px}.editor-body .cm-editor{border:1px solid var(--advanced-border, #4a4e5d);border-radius:6px;overflow:hidden}.editor-body .cm-editor button,.editor-body .cm-editor input{width:auto;min-width:0;height:auto;margin:3px;font-size:13px}.editor-body .cm-editor button{padding:4px 8px}.editor-body .cm-editor .cm-textfield{color:inherit;background:#252937}.image-editor-stage{display:block;box-sizing:border-box;min-width:0;width:100%;height:clamp(220px,52dvh,560px);padding:20px;overflow:auto;touch-action:none;overscroll-behavior:contain;border:1px solid var(--advanced-border, #4a4e5d);border-radius:8px;background:#1b1e29}.image-editor-surface{position:relative;display:inline-block;max-width:100%;line-height:0;background:repeating-conic-gradient(#c8c8c8 0% 25%,#fff 0% 50%) 50% / 20px 20px}.image-editor-canvas{display:block;max-width:100%;max-height:60vh;width:auto;height:auto}.image-editor-selection{position:absolute;border:2px dashed #ff7a40;box-shadow:0 0 0 1px #111;background:#f36b2d18;pointer-events:none;box-sizing:border-box}.document-editor-content{color:#202331;background:#fff;border-radius:6px}.document-editable{min-height:45vh;padding:clamp(16px,3vw,40px);line-height:1.65;outline:none;overflow-wrap:anywhere}.document-editable p{margin:.65em 0}.document-editable h1,.document-editable h2,.document-editable h3{color:inherit;line-height:1.25}.document-editable a{color:#1854af;text-decoration:underline}.document-editable img{max-width:100%;height:auto}.document-editable table{border-collapse:collapse;width:100%;table-layout:fixed}.document-editable td,.document-editable th{border:1px solid #aab0ba;min-width:36px;padding:8px;position:relative;vertical-align:top}.document-editable th{background:#edf0f5}.document-editable .selectedCell{background:#f36b2d33}.document-editable blockquote{border-left:3px solid #b8bdc8;padding-left:16px;margin-left:0}.document-editable pre{background:#eceef3;padding:12px;overflow:auto}.rich-editor-toolbar button[aria-pressed=true],.editor-toolbar button[aria-pressed=true]{background:#f36b2d;color:#fff}.archive-editor-list{max-height:55vh;overflow:auto}.archive-editor-row{display:flex;align-items:end;flex-wrap:wrap;gap:8px;padding:12px 0;border-bottom:1px solid var(--advanced-border, #4a4e5d)}.archive-editor-row .editor-field{flex:1 1 200px}.archive-editor-row .editor-field input{width:100%}.archive-editor-row>span{font-size:.8rem;align-self:center}.archive-editor-row button{flex:0 0 auto;width:auto;padding:7px 10px;font-size:.8rem}.file-editor .file-preview-video{display:block;max-width:100%;max-height:50vh;margin:auto}.file-editor .file-preview-audio{width:100%}@media(max-width:600px){.file-editor .editor-field{flex:1 1 110px}.file-editor .editor-field input{width:100%}.file-editor .editor-field:has(input[type=checkbox]),.file-editor .editor-field:has(input[type=color]){flex:0 1 auto}.editor-preview,.archive-editor-preview{padding:8px}.file-actions{flex-wrap:wrap}}.document-editable ul,.document-editable ol{padding-left:1.6em}.document-editable .tableWrapper{overflow-x:auto}.editor-tool-panel{margin:8px 0;border:1px solid var(--advanced-border);border-radius:6px}.editor-tool-panel summary{cursor:pointer;padding:9px 12px;font-size:.82rem;color:var(--accent-color)}.editor-tool-panel>.viewer-toolbar{margin:0;padding:8px 12px 12px}.document-editable{font-family:Arial,sans-serif}.document-editable h1,.document-editable h2,.document-editable h3,.document-editable h4,.document-editable h5,.document-editable h6{text-shadow:none;text-align:inherit;color:inherit;letter-spacing:normal;margin:.8em 0 .4em}.document-editable h1{font-size:2em}.document-editable h2{font-size:1.5em}.document-editable h3{font-size:1.25em}:where(button,input,select,textarea,summary,[tabindex]):focus-visible{outline:2px solid var(--primary-color);outline-offset:3px}:where(button,input,select,textarea)[disabled]{cursor:not-allowed;opacity:.5}input[aria-invalid=true]{border-color:#fa8989!important}#file-input-container[aria-disabled=true]{opacity:.55;cursor:wait}.icon-button[data-feedback=copied]{color:#a8d58b;border-color:#a8d58b}.icon-button[data-feedback=copied]:after{content:"✓";position:absolute;right:-3px;top:-5px;font-size:14px;background:var(--container-bg);border-radius:50%}.icon-button{position:relative}.editor-draft-badge{display:inline-block;vertical-align:middle;margin-left:12px;padding:4px 8px;font-size:.65rem;font-weight:400;color:var(--muted-color);border:1px solid var(--advanced-border);border-radius:20px}.file-editor[aria-busy=true] .editor-body{opacity:.65}.editor-savebar{background:var(--container-bg);border-radius:0 0 6px 6px;padding-bottom:8px}.editor-empty{text-align:center;padding:28px 12px;color:var(--muted-color);font-size:.85rem}.archive-pagination[hidden]{display:none}.archive-pagination{justify-content:space-between;padding-top:12px}.archive-editor-list{scrollbar-gutter:stable}.image-editor-surface{display:block;width:max-content;max-width:none;margin:0 auto}.image-editor-canvas{max-width:none;max-height:none}.scan-history{display:flex;gap:6px;flex-wrap:wrap}.scan-history button{width:auto;min-width:52px;padding:7px 10px;font-size:.78rem}.scan-pages-header{gap:10px;flex-wrap:wrap}.document-summary{display:block;margin:8px 0}.media-selection-summary{border-left:2px solid var(--primary-color);padding:8px 12px;background:var(--advanced-bg);border-radius:0 5px 5px 0}@media(max-width:600px){#file-preview-content{padding:10px}.editor-savebar{gap:6px}.editor-savebar>.editor-field{flex-basis:calc(100% - 130px)}.editor-savebar>select{flex:0 1 112px!important;min-width:90px}.editor-savebar>button{flex:1 1 auto;font-size:.75rem;padding:8px}.scan-history{justify-content:flex-end}.archive-editor-row{gap:6px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}.url-input-row{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}.url-input-row #url-input{min-width:0;margin:0}.url-input-row #url-preview{margin:0;object-fit:contain;background:var(--advanced-bg)}.viewer-more{align-self:center;position:relative}.viewer-more>summary{cursor:pointer;padding:8px;font-size:.85rem}.viewer-more[open]>:not(summary){margin:8px 0}#result-container[hidden],#scalar-result-label[hidden],#selected-files-container[hidden]{display:none}.scan-progress{display:flex;align-items:center;gap:12px}.scan-progress .viewer-note{flex:1}.scan-progress button{width:auto;padding:6px 10px;margin:8px 0}.scan-page-preview{display:block;width:100%;height:auto;min-height:0;margin:0;padding:0;border:0;border-radius:4px;background:none;cursor:zoom-in}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.viewer-toolbar .toolbar-group{display:inline-flex;flex:0 1 auto;align-items:center;justify-content:flex-start;gap:6px;max-width:100%;min-width:0}.viewer-toolbar .toolbar-group>button{flex:0 0 auto;width:auto;min-width:0;margin:0}.viewer-toolbar .toolbar-group>select{flex:0 1 auto;min-width:0;max-width:200px}.viewer-toolbar .toolbar-group:not(:has(>:not([hidden]))){display:none}.image-toolbar .archive-summary{min-width:0;overflow-wrap:anywhere;font-size:.8rem;font-weight:400;color:var(--muted-color)}@media(max-width:650px){.viewer-toolbar .toolbar-group>button{min-height:44px}}#file-input-container.has-files{min-height:48px;height:auto;padding:10px}#file-input-container.has-files .file-text{font-size:.85rem}#file-input-container.has-files .file-text+.file-text{display:none}.file-name.file-open{display:block;width:100%;min-width:0;margin:0;padding:0;border:0;border-radius:2px;background:transparent;color:var(--accent-color);font:inherit;font-weight:700;text-align:left;cursor:pointer}.file-name.file-open:hover{color:var(--primary-hover)}.result-download{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:0 0 auto;width:auto;height:36px;margin:0;padding:0 10px;border:1px solid var(--primary-color);border-radius:6px;background:var(--primary-color);color:#141722;font-size:.8rem;font-weight:700;cursor:pointer}.result-download svg{width:18px;height:18px}#form:has(.result-download) #submit-button{background:var(--input-bg);color:var(--accent-color);border-color:var(--advanced-border);box-shadow:none}.viewer-toolbar.workspace-savebar{position:sticky;top:0;z-index:25;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 12px;padding:8px 0;border-top:0;border-bottom:1px solid var(--advanced-border);background:var(--container-bg)}.workspace-savebar [data-save-action=apply],.workspace-savebar:not(:has([data-save-action=apply])) [data-save-action=download]{margin-left:auto;background:var(--primary-color);border-color:var(--primary-color);color:#141722;font-weight:700}.workspace-savebar [hidden]{display:none!important}.spreadsheet-viewer>.viewer-toolbar{flex-direction:row}.spreadsheet-viewer [hidden]{display:none!important}.spreadsheet-viewer .workspace-savebar button{flex:0 0 auto}.spreadsheet-viewer>.viewer-toolbar>select{min-width:0;max-width:100%}.workspace-savebar+.viewer-note{margin:0 0 12px;overflow-wrap:anywhere}@media(max-width:600px){.file-item,.converted-result-item{display:grid;grid-template-columns:20px minmax(0,1fr);gap:8px}.file-item>.file-actions,.converted-result-item>.file-actions{grid-column:2;justify-content:flex-end;gap:6px;flex-wrap:wrap}.file-actions .icon-button{width:44px;height:44px}.result-download{height:44px}.workspace-savebar>button{min-height:44px;height:auto;flex:0 1 auto;padding:8px 10px}.file-editor .editor-toolbar>button,.file-editor .editor-controls button,.spreadsheet-viewer>.viewer-toolbar>button{min-height:44px}.file-editor .editor-field input,.file-editor .viewer-toolbar select{min-height:44px;height:auto;font-size:16px}.spreadsheet-editbar{flex-wrap:wrap}.spreadsheet-editbar .cell-address{flex:1 0 100%}.spreadsheet-editbar input{margin:0}.spreadsheet-editbar button{flex:0 0 auto;width:auto;min-height:44px;margin:0;padding:8px 12px}}.unsaved-changes-dialog{margin:auto;padding:24px;width:min(380px,calc(100vw - 32px));box-sizing:border-box;color:var(--accent-color);background:var(--container-bg);border:1px solid var(--advanced-border);border-radius:10px}.unsaved-changes-dialog::backdrop{background:#000a}.unsaved-changes-dialog h2{margin:0 0 12px;font-size:1.15rem}.unsaved-changes-dialog p{margin:0 0 20px}.unsaved-changes-dialog .viewer-toolbar{margin:0;justify-content:flex-end}.editor-reset-field{display:flex;align-items:end;gap:5px;min-width:0}.editor-reset-field>.editor-field{flex:1 1 auto;min-width:0}:is(.file-editor,.pdf-reader) .editor-reset-field input{width:100%}:is(.file-editor,.pdf-reader) .editor-reset-field>button{flex:0 0 36px;width:36px;height:36px;min-height:36px;padding:0;font-size:1.15rem}.editor-color-picker{flex:0 1 280px;box-sizing:border-box;width:280px;max-width:100%;border:1px solid var(--advanced-border);border-radius:8px;background:var(--advanced-bg);color:var(--accent-color);font-size:.8rem}.editor-color-picker>summary{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-height:44px;box-sizing:border-box;padding:7px 10px;cursor:pointer;list-style:none}.editor-color-picker>summary::-webkit-details-marker{display:none}.editor-color-picker>summary:after{content:"⌄";margin-left:auto}.editor-color-picker[open]>summary:after{content:"⌃"}.editor-color-preview{flex:0 0 30px;width:30px;height:30px;border:1px solid #888;border-radius:5px;box-shadow:inset 0 0 0 1px #fff4}.editor-color-value{font-family:monospace;font-size:.75rem;color:var(--muted-color)}.editor-color-panel{display:grid;gap:12px;padding:12px;border-top:1px solid var(--advanced-border)}.editor-color-swatches{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}.editor-color-picker .editor-color-swatch{width:100%;min-width:0;min-height:36px;height:36px;margin:0;padding:0;border:1px solid #888;border-radius:5px;box-shadow:inset 0 0 0 1px #fff3}.editor-color-picker .editor-color-swatch[aria-pressed=true]{outline:2px solid var(--primary-color);outline-offset:2px}.editor-color-picker .editor-color-panel .editor-field input{width:100%;font-size:16px;min-height:40px}.editor-color-slider{display:grid;grid-template-columns:1fr auto;gap:2px 8px;font-size:.75rem;color:var(--muted-color)}.editor-color-slider output{color:var(--accent-color);font-variant-numeric:tabular-nums}.editor-color-picker .editor-color-slider input[type=range]{grid-column:1 / -1;width:100%;height:36px;min-height:36px;margin:0;padding:0;accent-color:var(--primary-color);cursor:ew-resize}.editor-color-reset{justify-self:start}.image-editor-workbench{display:grid;grid-template-columns:minmax(0,1fr) 280px;align-items:start;gap:16px}.image-editor-workbench:has(>.image-editor-settings[hidden]){grid-template-columns:minmax(0,1fr)}.image-editor-settings{min-width:0;padding:12px;box-sizing:border-box;border:1px solid var(--advanced-border);border-radius:8px;background:var(--advanced-bg)}.image-tool-panel{display:grid;gap:14px;min-width:0}.image-editor-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:end}.image-editor-values>.editor-field:has(input[type=checkbox]){grid-column:1 / -1;flex-direction:row;align-items:center}.image-editor-values select{width:100%;max-width:100%;min-width:0;min-height:36px;margin:0;padding:6px;border-radius:6px;color:var(--accent-color);background:var(--input-bg);border:1px solid var(--advanced-border)}.image-editor-text{box-sizing:border-box;width:100%;height:90px;min-height:76px;resize:vertical;margin:0;padding:10px;font-family:inherit;font-size:16px;line-height:1.4;color:var(--accent-color);background:var(--input-bg);border:1px solid var(--advanced-border);border-radius:6px}.image-editor-values>button{min-width:0}.image-editor-values>button[aria-pressed=true]{background:var(--primary-color);color:#141722}.image-tool-chooser{align-items:center!important}.image-tool-chooser>select{flex:0 1 auto}.image-editor-hint{flex:1 1 220px;margin:0;font-size:.8rem;line-height:1.5}.image-editor-help{margin-top:12px;color:var(--muted-color);font-size:.8rem}.image-editor-help summary{cursor:pointer;padding:8px 0}.image-editor-help p{max-width:80ch;line-height:1.6;margin:6px 0 12px}.image-editor-stage[data-tool=inspect],.image-editor-stage.space-pan{cursor:grab}.image-editor-stage[data-tool=draw],.image-editor-stage[data-tool=crop]{cursor:crosshair}.image-editor-stage[data-tool=text]{cursor:text}.image-editor-stage[data-tool=text].over-text{cursor:move}.image-editor-stage.is-panning,.image-editor-stage.space-pan.is-panning{cursor:grabbing}.image-editor-stage .image-editor-canvas{touch-action:none}.image-editor-text-selection{position:absolute;pointer-events:none;box-sizing:border-box;outline:2px solid #f36b2d;outline-offset:3px;border-radius:1px}.image-editor-text-selection:after{content:"↔";position:absolute;top:-20px;right:-8px;font:14px/18px sans-serif;color:#151722;background:#f36b2d;border-radius:3px;padding:0 3px}.image-editor-brush-cursor{position:absolute;pointer-events:none;box-sizing:border-box;border:1px solid white;outline:1px solid #111;border-radius:50%;transform:translate(-50%,-50%)}.image-editor-adjustments .editor-field input[type=range]{height:40px;cursor:ew-resize}.image-editor-adjustments .editor-field output{color:var(--accent-color);font-variant-numeric:tabular-nums}.image-editor-settings .editor-color-picker{width:100%}.image-editor-settings .editor-color-swatches{grid-template-columns:repeat(4,minmax(0,1fr))}.image-editor-settings .editor-color-swatch{min-height:40px;height:40px}@media(max-width:900px){.image-editor-workbench{grid-template-columns:minmax(0,1fr)}.image-editor-stage{height:clamp(200px,44dvh,440px)}.image-editor-settings .editor-color-picker{width:min(100%,320px)}.image-editor-settings .editor-color-swatches{grid-template-columns:repeat(6,minmax(0,1fr))}}.pdf-reader [hidden],.signature-dialog [hidden],.scan-edit-dialog [hidden]{display:none!important}.pdf-reader[aria-busy=true] .pdf-reader-stage{opacity:.7}.pdf-fill-host{min-width:0}.pdf-fill-panel{padding:12px;margin-bottom:12px;border:1px solid var(--advanced-border);border-radius:8px;background:var(--advanced-bg)}.pdf-fill-panel .viewer-toolbar:last-child{margin-bottom:0}.pdf-fill-values{align-items:end!important}.pdf-fill-values .editor-reset-field{flex:0 1 170px}.pdf-fill-text{flex:1 1 240px;min-width:0;height:72px;min-height:54px;max-height:180px;margin:0;resize:vertical;font-size:16px}.pdf-fill-panel .editor-color-picker{align-self:start}.pdf-fill-hint{margin:8px 0 0;line-height:1.5}.pdf-form-navigation select{flex:1 1 240px!important}.pdf-annotation-options{align-items:end!important}.pdf-fill-layer{position:absolute;inset:0;z-index:10;pointer-events:none;overflow:hidden}.pdf-fill-layer.is-placing{pointer-events:auto;cursor:crosshair;touch-action:none}.pdf-fill-mark{position:absolute;transform-origin:0 100%;min-width:1px;min-height:1px;pointer-events:none;user-select:none;-webkit-user-select:none;box-sizing:content-box}.pdf-fill-mark.is-active{pointer-events:auto;touch-action:none;cursor:move}.pdf-fill-mark.is-active:before{content:"";position:absolute;left:50%;top:50%;width:max(100%,44px);height:max(100%,44px);transform:translate(-50%,-50%)}.pdf-fill-mark.is-selected,.pdf-fill-mark:focus-visible{outline:2px solid #f36b2d;outline-offset:3px}.pdf-fill-mark>svg,.pdf-fill-mark>img{display:block;width:100%;height:100%;max-width:none;max-height:none;pointer-events:none}.pdf-fill-resize{position:absolute;right:-22px;bottom:-22px;width:44px;height:44px;min-width:44px;padding:0;margin:0;border:0;background:transparent;cursor:nwse-resize;touch-action:none}.pdf-fill-resize:after{content:"";display:block;width:13px;height:13px;margin:auto;border:2px solid white;background:#f36b2d;border-radius:3px;box-shadow:0 1px 4px #0008}.signature-dialog{margin:auto;padding:20px;width:min(680px,calc(100vw - 24px));max-height:94dvh;overflow:auto;border:1px solid var(--advanced-border);border-radius:10px;color:var(--accent-color);background:var(--container-bg)}.signature-dialog::backdrop,.scan-edit-dialog::backdrop{background:#000b}.signature-dialog h2{margin:0 0 14px;font-size:1.2rem}.signature-dialog .viewer-toolbar{display:flex;flex-wrap:wrap}.signature-methods input{flex:1 1 220px;width:auto;min-width:0;margin:0}.signature-canvas{display:block;width:100%;height:auto;background:linear-gradient(transparent calc(65% - 1px),#ccc 65%,transparent calc(65% + 1px)),#fff;border:1px solid var(--advanced-border);border-radius:6px;touch-action:none;cursor:crosshair}.signature-dialog .viewer-note{margin:10px 0;font-size:.8rem;line-height:1.5}.signature-dialog .viewer-toolbar>button:last-child{margin-left:auto;background:var(--primary-color);color:#141722;border-color:var(--primary-color)}.scan-edit-dialog{margin:auto;width:min(1180px,calc(100vw - 24px));max-height:94dvh;overflow:auto;padding:16px;border:1px solid var(--advanced-border);border-radius:10px;color:var(--accent-color);background:var(--container-bg)}.scan-edit-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.scan-edit-heading h2{font-size:1.05rem}.scan-edit-heading button{min-height:44px;padding:0 14px;border:1px solid var(--advanced-border);border-radius:6px;background:var(--input-bg);color:var(--accent-color);cursor:pointer}.scan-name-label{display:flex;align-items:center;gap:8px;min-width:0;font-size:.75rem;color:var(--muted-color)}.scan-name-label input{width:190px;max-width:100%;margin:0}@media(max-width:650px){.pdf-reader .viewer-toolbar button,.pdf-reader .editor-field input,.pdf-reader .viewer-toolbar input,.pdf-reader .viewer-toolbar select{min-height:44px;height:auto;font-size:16px}.pdf-reader .viewer-toolbar .toolbar-group{gap:4px}.pdf-reader .viewer-toolbar .toolbar-group>button{padding-inline:9px}.pdf-reader .viewer-toolbar .toolbar-group>select{min-width:86px}.pdf-reader-stage{min-height:220px;height:56dvh}.pdf-fill-panel{padding:10px}.pdf-fill-panel>.viewer-toolbar>select{flex:1 1 100%}.pdf-fill-values .editor-reset-field{flex:1 1 110px;max-width:170px}.pdf-fill-values .editor-color-picker{flex:1 1 140px}.pdf-fill-values .editor-color-picker[open]{flex-basis:100%}.signature-dialog{padding:12px}.signature-dialog .viewer-toolbar button{min-height:44px}.signature-methods select,.signature-methods input{min-height:44px;font-size:16px}.scan-edit-dialog{width:calc(100vw - 16px);padding:10px}.scan-name-label{flex:1 1 100%}.scan-name-label input{flex:1;min-width:0;font-size:16px}}@media(max-width:600px){.image-editor-settings{padding:10px}:is(.file-editor,.pdf-reader) .editor-reset-field>button{flex-basis:44px;width:44px;height:44px;min-height:44px}.file-editor .editor-color-picker{flex:1 1 100%}.editor-color-picker .editor-color-swatch,.editor-color-picker .editor-color-slider input[type=range]{min-height:44px;height:44px}.file-editor .editor-field textarea,.file-editor .image-editor-values select{font-size:16px;min-height:44px}}.editor-header{position:sticky;top:0;z-index:25;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 24px;padding:0 0 14px;margin-bottom:18px;border-bottom:1px solid var(--advanced-border);background:var(--container-bg)}.editor-navigation{display:flex;align-items:center;flex-wrap:wrap;gap:8px 20px;min-width:0}.editor-header .editor-title{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0;font-size:1.05rem;line-height:1.5;text-align:left;letter-spacing:normal;text-shadow:none}.editor-header .editor-draft-badge{margin:0;border-radius:4px}.editor-header .editor-toolbar{margin:0;align-items:center}.editor-header .workspace-savebar{position:static;width:auto;margin:0;padding:0;border:0;gap:6px}.file-editor .editor-header button,.file-editor .editor-header summary{min-height:44px;box-sizing:border-box}.editor-header .editor-more:has(>.viewer-toolbar:empty){display:none}.editor-header .editor-more>summary{display:flex;align-items:center;border:1px solid var(--advanced-border);border-radius:6px;padding:8px 12px;list-style:none}.editor-header .editor-more>summary:after{content:"⌄";margin-left:10px}.editor-header .editor-more[open]>.viewer-toolbar{position:absolute;top:100%;left:0;z-index:26;width:min(260px,calc(100vw - 64px));box-sizing:border-box;padding:10px;border:1px solid var(--advanced-border);border-radius:8px;background:var(--container-bg);box-shadow:0 10px 24px #0005}.editor-header .editor-more[open]>.viewer-toolbar>button{width:100%;text-align:left}.file-editor .editor-controls>.viewer-toolbar{align-items:center;gap:12px;margin-bottom:14px}.file-editor .editor-controls .toolbar-group{padding-right:12px;border-right:1px solid var(--advanced-border)}.file-editor .editor-controls .toolbar-group:last-child{padding-right:0;border-right:0}.file-editor .editor-controls .toolbar-group button{min-height:44px}.file-editor .editor-tool-panel>summary{min-height:44px;box-sizing:border-box;display:list-item;padding:12px}.file-editor .editor-tool-panel[open]>summary{border-bottom:1px solid var(--advanced-border)}.file-editor .editor-save-options{margin-top:18px}.editor-with-inspector{display:grid;grid-template-columns:minmax(0,1fr) 272px;grid-template-rows:auto auto max-content minmax(0,1fr) auto auto;grid-template-areas:"header header" "status status" "controls settings" "body settings" "save save" "preview preview";gap:0 20px;align-items:start}.editor-with-inspector>.editor-header{grid-area:header}.editor-with-inspector>.editor-status{grid-area:status}.editor-with-inspector>.editor-controls{grid-area:controls}.editor-with-inspector>.editor-body{grid-area:body}.editor-with-inspector>.editor-save-options{grid-area:save}.editor-with-inspector>.editor-preview{grid-area:preview}.editor-inspector,.media-inspector{box-sizing:border-box;min-width:0;padding:14px;border:1px solid var(--advanced-border);border-radius:8px;background:var(--advanced-bg)}.editor-inspector{grid-area:settings}.editor-inspector h3,.media-inspector h3{margin:0 0 12px;font-size:.9rem;text-align:left;letter-spacing:normal;text-shadow:none}.editor-inspector .editor-tool-panel,.media-inspector .editor-tool-panel{margin:0;border-width:0 0 1px;border-radius:0}.editor-inspector .editor-tool-panel>summary,.media-inspector .editor-tool-panel>summary{padding-left:0}.file-editor .editor-inspector .viewer-toolbar{gap:8px;padding:12px 0;align-items:end}.editor-inspector .editor-reset-field,.editor-inspector .editor-field{flex:1 1 100%}.file-editor .editor-inspector .editor-field input{width:100%}.editor-inspector button{min-height:44px}.rich-editor-toolbar>button{min-width:44px}.archive-editor-row{padding:14px;border:1px solid var(--advanced-border);border-radius:6px;margin-bottom:8px}.archive-editor-row button{min-height:44px}@media(max-width:900px){.editor-with-inspector{display:block}.editor-inspector{margin-top:16px}}@media(max-width:600px){.editor-header{gap:12px;margin-bottom:14px}.editor-header .editor-navigation{width:100%;justify-content:space-between;gap:8px}.editor-header .workspace-savebar{width:100%}.editor-header .editor-title{font-size:.95rem}.editor-header .editor-draft-badge{font-size:.6rem}.editor-header .editor-more[open]>.viewer-toolbar{left:auto;right:0}.editor-inspector{padding:12px}.editor-inspector .editor-field input,.editor-inspector select{min-height:44px;font-size:16px}.file-editor .editor-controls>.viewer-toolbar{gap:8px}.file-editor .editor-controls .toolbar-group{padding-right:0;border-right:0}}.file-editor .editor-reset-field>button{min-width:44px;width:44px;height:44px;flex:0 0 44px}:is(.archive-editor-preview,.editor-preview,.scan-edit-dialog) .editor-header{position:static}.editor-header .editor-more .editor-field,.editor-header .editor-more .editor-field input{width:100%}.image-tool-chooser{padding:10px 12px;margin:0 0 14px;border:1px solid var(--advanced-border);border-radius:8px;background:var(--advanced-bg)}.image-tool-chooser>select{min-height:44px}.file-editor .editor-inspector select{min-height:44px;font-size:16px}
