[data-tool-workspace]{--tw-workspace-border:var(--ui-border-card);--tw-workspace-shadow:0 1px 3px #10182806}.tw-page{width:100%;max-width:1520px;min-height:calc(100dvh - 64px);margin-inline:auto;padding:28px clamp(16px,3.7vw,56px) 48px;display:block}#tool-uploader.tw-root,.tw-root{width:100%;max-width:none;box-shadow:none;color:var(--ui-text-secondary);background:0 0;border:0;border-radius:0;margin:0;padding:0}.tw-header{width:100%;margin-bottom:24px}.tw-header .tw-back{color:var(--ui-accent);margin:0 0 20px;font-size:14px;font-weight:500}.tw-header .tw-back svg{width:20px;height:20px}.tw-header .tw-title{letter-spacing:-.035em;color:var(--ui-text);margin:0 0 8px;font-size:clamp(26px,2.3vw,36px);font-weight:600;line-height:1.2}.tw-header .tw-description{color:var(--ui-text-muted);max-width:75ch;margin:0;font-size:15px;line-height:1.6}.tw-shell{grid-template-columns:minmax(0,1fr) 320px;align-items:start;gap:20px;display:grid}.tw-shell[data-sidebar=none]{grid-template-columns:minmax(0,1fr)}.tw-panel{background:var(--ui-surface);border:1px solid var(--tw-workspace-border);border-radius:var(--ui-radius-lg);min-width:0;box-shadow:none;padding:18px}.tw-main{min-height:320px}[data-tool-workspace=document] .tw-main{min-height:220px}.tw-sidebar{padding:20px;position:sticky;top:84px}.tw-sidebar-heading{border-bottom:1px solid var(--ui-border-card);margin-bottom:16px;padding-bottom:14px}.tw-sidebar-heading h2{color:var(--ui-text);margin-bottom:4px;font-size:18px;font-weight:600;line-height:1.3}.tw-sidebar-heading p{color:var(--ui-text-muted);font-size:14px}.tw-list-header{border-bottom:1px solid var(--ui-border-card);justify-content:space-between;align-items:center;gap:16px;min-height:54px;margin-bottom:0;padding-bottom:14px;display:flex}.tw-list-summary{min-width:0}.tw-list-summary strong{color:var(--ui-text);font-size:14px;font-weight:600;line-height:1.35;display:block}.tw-list-summary p{color:var(--ui-text-muted);margin-top:3px;font-size:12px;line-height:1.35}.tw-toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;display:flex}.tw-toolbar:not(:empty){margin-top:12px;margin-bottom:12px}.tw-region{min-width:0}.tw-region:empty{display:none}.tw-mode{border:1px solid var(--ui-border-card);background:var(--ui-surface-raised);border-radius:8px;gap:4px;margin:0;padding:3px;display:flex}.tw-mode button{white-space:nowrap;padding:9px 16px;font-size:14px;font-weight:500}.tw-file-controls{flex-wrap:wrap;gap:8px;margin:0}.tw-file-controls button{border:1px solid var(--ui-border-card);background:var(--ui-surface);color:var(--ui-accent);box-shadow:none;padding:9px 12px;font-size:13px;font-weight:500}.tw-file-controls button svg{width:16px;height:16px}.tw-file-controls button.text-white{color:var(--ui-accent)}.tw-settings .tw-controls{width:100%;min-width:0;max-width:100%}.tw-settings .grid{grid-template-columns:minmax(0,1fr)}.tw-thumbnail-grid{grid-template-columns:repeat(auto-fill,minmax(130px,1fr));max-height:none;overflow:visible}.tw-native-surface{background:var(--ui-surface);border-color:var(--ui-border-card);border-radius:var(--ui-radius-lg);box-shadow:var(--tw-workspace-shadow)}.tw-native-toolbar{background:var(--ui-surface);border-color:var(--ui-border-card);gap:8px}.tw-native-settings{background:var(--ui-surface);border-color:var(--ui-border-card);color:var(--ui-text-secondary)}.tw-native-toolbar button,.tw-native-settings button{border-radius:6px}.tw-file-controls button:hover{border-color:var(--ui-accent);background:var(--ui-tint-blue)}.tw-content{gap:16px;display:grid}.tw-file-list{min-width:0;margin:0}.tw-file-row{border-color:var(--ui-border-card);background-color:var(--ui-surface-raised);min-width:0}.tw-file-row+.tw-file-row{margin-top:12px}.tw-file-row:focus-within{border-color:var(--ui-accent)}.tw-upload{background:var(--ui-surface);border:1px dashed var(--ui-border-strong);border-radius:var(--ui-radius-lg);min-height:240px;box-shadow:var(--tw-workspace-shadow)}.tw-upload:hover,.tw-upload:focus-within{border-color:var(--ui-accent);background-color:var(--ui-tint-blue)}.tw-root[data-workspace-state=ready]:not([data-workspace-persistent-upload]) .tw-upload,.tw-upload[data-workspace-uploaded=true]{display:none}.tw-page>.tw-native{max-width:none;margin-inline:auto}.tw-add-files.tw-change-files{min-height:44px;margin-block:12px;padding:10px 16px}.tw-page-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:14px;display:grid}.tw-page-choice{border:1px solid var(--ui-border-card);background:var(--ui-surface-raised);text-align:center;min-width:0;color:var(--ui-text-muted);border-radius:8px;margin:0;padding:12px}button.tw-page-choice{cursor:pointer}button.tw-page-choice:hover{border-color:var(--ui-accent);background:var(--ui-tint-blue)}.tw-page-choice.tw-selected{border-color:var(--ui-accent);box-shadow:0 0 0 1px var(--ui-accent);background:var(--ui-tint-blue);color:var(--ui-accent)}.tw-page-paper{object-fit:contain;width:100%;height:180px;box-shadow:var(--ui-shadow-sm);background:#fff;border-radius:4px;margin-bottom:10px;display:block}.tw-page-choice>span{font-size:12px}.tw-preview-note{color:var(--ui-text-muted);grid-column:1/-1;font-size:13px}.tw-page-browser[hidden]{display:none}.tw-add-files{border:1px solid var(--ui-border-hover);background:var(--ui-surface);width:auto;min-height:36px;color:var(--ui-accent);border-radius:7px;flex:none;justify-content:center;align-items:center;gap:7px;margin:0;padding:8px 11px;font-size:13px;font-weight:500;display:inline-flex}.tw-add-files>span:first-child{font-size:18px;line-height:1}.tw-add-files:hover,.tw-add-files.tw-dragover{border-color:var(--ui-accent);background:var(--ui-tint-blue)}.tw-settings>.tw-region>:first-child{margin-top:0}.tw-settings .tw-action{background:var(--ui-action-bg);width:100%;min-height:46px;color:var(--ui-on-accent);border-radius:8px;padding:12px 16px;font-size:15px;font-weight:600}.tw-settings>.tw-region+.tw-region{margin-top:10px}.tw-settings .tw-action:hover{background:var(--ui-action-hover)}.tw-settings input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]),.tw-settings select,.tw-settings textarea{border-radius:6px;min-width:0;max-width:100%;font-size:14px}.tw-settings label{font-weight:500;line-height:1.5}.tw-advanced{border-top:1px solid var(--ui-border);margin-block:16px;padding-top:16px}.tw-advanced>summary{cursor:pointer;color:var(--ui-text-secondary);align-items:center;gap:10px;font-size:14px;font-weight:500;list-style:none;display:flex}.tw-advanced>summary::marker{content:""}.tw-advanced>summary::-webkit-details-marker{display:none}.tw-advanced-chevron{width:18px;height:18px;color:var(--ui-text-muted);flex:0 0 18px;transition:transform .16s}.tw-advanced[open]>summary .tw-advanced-chevron{transform:rotate(90deg)}.tw-advanced[open]>summary{color:var(--ui-accent);margin-bottom:12px}@media (prefers-reduced-motion:reduce){.tw-advanced-chevron{transition:none}}.tw-preview{background:var(--ui-surface-raised);border:1px solid var(--ui-border);border-radius:8px;min-width:0;margin:0;padding:12px}.tw-page-tile{border-color:var(--ui-border-card);border-radius:8px;min-width:0}.tw-page-tile canvas,.tw-page-tile img{object-fit:contain;max-width:100%}.tw-privacy{text-align:center;color:var(--ui-text-muted);margin-top:18px;font-size:12px;line-height:1.6}.tw-feedback{overflow-wrap:anywhere;margin-top:16px;font-size:13px;line-height:1.5}.tw-feedback:empty{display:none}.tw-feedback[data-state=error]{color:var(--ui-danger);background:var(--ui-tint-red);border-radius:6px;padding:10px}.tw-feedback[data-state=success]{color:var(--ui-success);background:var(--ui-tint-green);border-radius:6px;padding:10px}.tw-feedback[data-state=processing]{color:var(--ui-accent)}.tw-root [data-workspace-part~=status]{color:var(--ui-accent);background:var(--ui-tint-blue);border-radius:6px}.tw-root [data-workspace-part~=status].bg-red-900{color:var(--ui-danger);background:var(--ui-tint-red)}.tw-root [data-workspace-part~=status].bg-green-900{color:var(--ui-success);background:var(--ui-tint-green)}.tw-shell[hidden],.tw-region[hidden],.tw-sidebar[hidden],.tw-add-files[hidden]{display:none}.tw-native{width:100%;min-width:0}.tw-merge-file{border:1px solid var(--ui-border-card);background:var(--ui-surface);border-radius:10px;grid-template-columns:20px 32px 96px minmax(0,1fr) 180px 24px;align-items:center;gap:16px;min-height:148px;padding:14px 16px;display:grid}.tw-source-file{border:1px solid var(--ui-border-card);background:var(--ui-surface);border-radius:8px;grid-template-columns:32px 56px minmax(0,1fr) 24px;align-items:center;gap:14px;padding:14px;display:grid}.tw-source-thumbnail{border:1px solid var(--ui-border);background:var(--ui-surface-raised);width:56px;height:64px;color:var(--ui-accent);border-radius:4px;place-items:center;font-size:11px;display:grid;overflow:hidden}.tw-source-thumbnail img{object-fit:contain;width:100%;height:100%}.tw-merge-file:hover{border-color:var(--ui-border-hover);background:var(--ui-surface-hover)}.tw-drag-handle{color:var(--ui-text-muted);cursor:grab}.tw-drag-handle svg,.tw-file-remove svg{width:19px;height:19px}.tw-file-number{background:var(--ui-tint-blue);width:32px;height:32px;color:var(--ui-accent);border-radius:7px;place-items:center;font-weight:500;display:grid}.tw-file-thumbnail{border:1px solid var(--ui-border);width:96px;height:124px;color:var(--ui-accent);background:#fff;border-radius:4px;justify-content:center;align-items:center;display:flex;overflow:hidden}.tw-file-thumbnail canvas{object-fit:contain;max-width:100%;max-height:100%}.tw-file-info{min-width:0}.tw-file-name{color:var(--ui-text);text-overflow:ellipsis;white-space:nowrap;font-size:15px;font-weight:600;overflow:hidden}.tw-file-meta{color:var(--ui-text-muted);margin-top:6px;font-size:13px}.tw-file-range{min-width:0}.tw-file-range label{color:var(--ui-text-muted);margin-bottom:6px;font-size:12px;display:block}.tw-file-range input{border:1px solid var(--ui-border-strong);border-radius:6px;width:100%;min-width:0;padding:10px 12px;font-size:13px}.tw-file-remove{color:var(--ui-text-muted)}.tw-file-remove:hover{color:var(--ui-danger)}.tw-output-summary{color:var(--ui-text-muted);justify-content:space-between;align-items:center;margin-bottom:24px;font-size:14px;display:flex}.tw-output-summary strong{color:var(--ui-text);font-weight:600}.tw-output-name{margin-bottom:24px}.tw-output-name label{color:var(--ui-text-muted);margin-bottom:7px;font-size:14px;display:block}.tw-output-name input{border:1px solid var(--ui-border-strong);border-radius:6px;width:100%;min-width:0;padding:10px 12px}[data-workspace-tool=word-to-pdf] .tw-content,[data-workspace-tool=excel-to-pdf] .tw-content,[data-workspace-tool=powerpoint-to-pdf] .tw-content{overscroll-behavior:contain;scrollbar-gutter:stable;gap:0;max-height:min(58dvh,560px);overflow:hidden auto}[data-workspace-tool$=-to-pdf] .tw-office-file{border:0;border-bottom:1px solid var(--ui-border-card);background:0 0;border-radius:0;grid-template-columns:38px minmax(0,1fr) auto 72px;align-items:center;gap:12px;min-height:60px;padding:9px 10px;display:grid}[data-workspace-tool$=-to-pdf] .tw-office-file+.tw-office-file{margin-top:0}[data-workspace-tool$=-to-pdf] .tw-office-file:hover{background:var(--ui-surface-hover)}.tw-format-icon{color:#46688d;background:#eaf0f7;border-radius:7px;place-items:center;width:34px;height:38px;font-size:14px;font-weight:700;display:grid}.tw-format-doc,.tw-format-docx{color:#416a9d;background:#e7eef7}.tw-format-xls,.tw-format-xlsx{color:#41765d;background:#e5f1eb}.tw-format-ppt,.tw-format-pptx{color:#a05e47;background:#f6ebe6}:root[data-theme=dark] .tw-format-icon{color:#a9bdd3;background:#303a45}:root[data-theme=dark] .tw-format-doc,:root[data-theme=dark] .tw-format-docx{color:#a9c5e8;background:#293746}:root[data-theme=dark] .tw-format-xls,:root[data-theme=dark] .tw-format-xlsx{color:#a7cfba;background:#293a32}:root[data-theme=dark] .tw-format-ppt,:root[data-theme=dark] .tw-format-pptx{color:#e0b09e;background:#42332e}.tw-office-file .tw-file-name{font-size:14px;font-weight:500}.tw-office-file .tw-file-meta{text-overflow:ellipsis;white-space:nowrap;max-width:56ch;margin-top:2px;font-size:12px;overflow:hidden}.tw-office-file[data-state=error] .tw-file-meta{color:var(--ui-danger)}.tw-file-status{max-width:140px;color:var(--ui-text-muted);background:var(--ui-surface-raised);white-space:nowrap;border-radius:999px;align-items:center;gap:5px;padding:5px 8px;font-size:12px;line-height:1;display:inline-flex}.tw-file-status[data-state=complete]{color:var(--ui-success);background:var(--ui-tint-green)}.tw-file-status[data-state=processing]{color:var(--ui-accent);background:var(--ui-tint-blue)}.tw-file-status[data-state=error]{color:var(--ui-danger);background:var(--ui-tint-red)}.tw-file-status-icon{width:13px;height:13px}.tw-file-actions{justify-content:flex-end;gap:4px;display:flex}.tw-file-actions button{width:32px;height:32px;color:var(--ui-text-muted);border:1px solid #0000;border-radius:6px;place-items:center;padding:0;display:grid}.tw-file-actions button svg{width:17px;height:17px}.tw-file-actions .tw-file-download{color:var(--ui-accent);background:var(--ui-tint-blue)}.tw-file-actions button:hover{border-color:var(--ui-border-hover);background:var(--ui-surface-hover)}.tw-office-button,.tw-office-clear{border:1px solid var(--ui-border-strong);width:100%;min-height:42px;color:var(--ui-text-secondary);background:0 0;border-radius:7px;justify-content:center;align-items:center;gap:8px;padding:10px 12px;font-size:13px;font-weight:500;display:flex}.tw-office-button+.tw-office-button,.tw-office-button+.tw-office-clear,.tw-settings .tw-action+.tw-office-button{margin-top:9px}#office-download-zip.tw-office-primary{color:var(--ui-on-accent);border-color:var(--ui-action-bg);background:var(--ui-action-bg)}#office-download-zip.tw-office-primary:hover{background:var(--ui-action-hover)}.tw-office-clear{color:var(--ui-danger);border-color:color-mix(in srgb, var(--ui-danger) 35%, transparent);background:var(--ui-tint-red);margin-top:16px}.tw-office-clear svg{width:16px;height:16px}#office-clear-completed{min-height:34px;color:var(--ui-text-muted);background:0 0;border-color:#0000;font-size:12px}#office-cancel{color:var(--ui-danger)}#office-status{color:var(--ui-text-muted);margin-top:12px;font-size:12px;line-height:1.45}[data-workspace-tool=word-to-pdf] #office-privacy,[data-workspace-tool=excel-to-pdf] #office-privacy,[data-workspace-tool=powerpoint-to-pdf] #office-privacy,[data-workspace-tool=word-to-pdf] [data-workspace-state=ready] [data-workspace-part~=notice],[data-workspace-tool=excel-to-pdf] [data-workspace-state=ready] [data-workspace-part~=notice],[data-workspace-tool=powerpoint-to-pdf] [data-workspace-state=ready] [data-workspace-part~=notice]{display:none}#office-retry{width:auto;min-height:36px;color:var(--ui-accent);background:var(--ui-surface);margin-top:10px;padding-inline:14px}@media (width<=1200px){.tw-merge-file{grid-template-columns:16px 26px 66px minmax(0,1fr) 24px;gap:12px;min-height:120px}.tw-file-thumbnail{width:66px;height:88px}.tw-file-number{width:26px;height:28px}.tw-merge-file .tw-file-range{grid-column:4}.tw-merge-file .tw-file-info{grid-area:1/4}.tw-merge-file .tw-file-thumbnail,.tw-merge-file .tw-file-number,.tw-merge-file .tw-drag-handle,.tw-merge-file .tw-file-remove{grid-row:1/3}}@media (width<=500px){.tw-source-file{grid-template-columns:42px minmax(0,1fr) 22px;gap:10px;padding:12px}.tw-source-thumbnail{width:42px;height:52px}.tw-merge-file{grid-template-columns:16px 42px minmax(0,1fr) 22px;gap:10px;padding:12px}.tw-file-number{display:none}.tw-file-thumbnail{grid-column:2;width:42px;height:58px}.tw-merge-file .tw-file-info,.tw-merge-file .tw-file-range{grid-column:3}.tw-file-name{font-size:13px}.tw-file-meta{font-size:11px}.tw-file-range input{padding:7px}}@media (width<=1000px){.tw-shell{grid-template-columns:minmax(0,1fr) 300px}.tw-panel{padding:16px}}@media (width<=800px){.tw-page{padding-top:20px}.tw-shell{grid-template-columns:minmax(0,1fr)}.tw-sidebar{position:static}.tw-main,[data-tool-workspace=document] .tw-main{min-height:0}.tw-header .tw-back{margin-bottom:16px}.tw-header .tw-title{font-size:28px}.tw-header .tw-description{font-size:14px}.tw-toolbar{align-items:stretch;gap:12px}.tw-sidebar-heading{margin-bottom:14px;padding-bottom:14px}[data-workspace-tool=word-to-pdf] .tw-content,[data-workspace-tool=excel-to-pdf] .tw-content,[data-workspace-tool=powerpoint-to-pdf] .tw-content{max-height:min(52dvh,480px)}}@media (width<=620px){.tw-list-header{align-items:flex-start}.tw-add-files{min-height:34px;padding:7px 9px}[data-workspace-tool$=-to-pdf] .tw-office-file{grid-template-columns:34px minmax(0,1fr) auto;gap:9px;padding-inline:4px}.tw-office-file .tw-file-status{grid-column:2;justify-self:start;margin-top:-4px}.tw-office-file .tw-file-actions{grid-area:1/3/3}.tw-format-icon{width:32px;height:36px}}
