@import "https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,300;0,400;0,500;1,400&family=Archivo:wght@400;500;600;700&family=Spline+Sans+Mono:wght@400;500&display=swap";:root,[data-theme=light]{--ds-color-bg:#fff;--ds-color-bg-subtle:#f8fafc;--ds-color-surface:#fff;--ds-color-surface-hover:#f1f5f9;--ds-color-text:#0f172a;--ds-color-text-muted:#475569;--ds-color-text-soft:#94a3b8;--ds-color-border:#e2e8f0;--ds-color-border-strong:#cbd5e1;--ds-color-brand:#1f6f5c;--ds-color-brand-hover:#185748;--ds-color-brand-soft:#1f6f5c1a;--ds-brand-pdftools:#ef4444;--ds-brand-pdftools-soft:#ef44442e;--ds-brand-imgtools:#06b6d4;--ds-brand-imgtools-soft:#06b6d42e;--ds-brand-webtools:#8b5cf6;--ds-brand-webtools-soft:#8b5cf62e;--ds-brand-mathtools:#10b981;--ds-brand-mathtools-soft:#10b9812e;--ds-brand-stockboard:#6366f1;--ds-brand-stockboard-soft:#6366f12e;--ds-brand-enh:#0ea5e9;--ds-brand-enh-soft:#0ea5e92e;--ds-brand-storyteller:#7c3aed;--ds-brand-storyteller-soft:#7c3aed2e;--ds-brand-imgfund:#f59e0b;--ds-brand-imgfund-soft:#f59e0b2e;--ds-color-success:#16a34a;--ds-color-warning:#d97706;--ds-color-danger:#dc2626;--ds-color-badge-bg:#1f6f5c1a;--ds-color-badge-text:#1f6f5c;--ds-color-timeline-line:#e2e8f0;--ds-color-timeline-dot:#1f6f5c;--ds-nav-bg:#ffffffeb;--ds-hero-gradient:linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #e0f2fe 100%);--ds-space-0:0;--ds-space-1:.25rem;--ds-space-2:.5rem;--ds-space-3:.75rem;--ds-space-4:1rem;--ds-space-5:1.25rem;--ds-space-6:1.5rem;--ds-space-7:1.75rem;--ds-space-8:2rem;--ds-space-9:2.25rem;--ds-space-10:2.5rem;--ds-space-11:2.75rem;--ds-space-12:3rem;--ds-radius-sm:.25rem;--ds-radius-md:.5rem;--ds-radius-lg:.75rem;--ds-radius-pill:999px;--ds-shadow-sm:0 1px 3px #0f172a14;--ds-shadow-md:0 8px 24px #0f172a1f;--ds-shadow-lg:0 24px 70px #0f172a38;--ds-font-display:"Spectral", Georgia, "Times New Roman", serif;--ds-font-sans:"Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", ui-sans-serif, system-ui, sans-serif;--ds-font-mono:"Spline Sans Mono", ui-monospace, SFMono-Regular, Menlo, monospace;--ds-type-xs:.75rem;--ds-type-sm:.875rem;--ds-type-base:1rem;--ds-type-md:1.0625rem;--ds-type-lg:1.125rem;--ds-type-xl:1.25rem;--ds-type-2xl:1.5rem;--ds-type-3xl:1.875rem;--ds-type-4xl:2.25rem;--ds-leading-tight:1;--ds-leading-snug:1.25;--ds-leading-normal:1.5;--ds-leading-relaxed:1.65;--ds-weight-regular:400;--ds-weight-medium:600;--ds-weight-bold:700;--ds-tool-dropzone-bg:#f8fafc;--ds-tool-dropzone-border:#cbd5e1;--ds-tool-dropzone-active-bg:#1f6f5c14;--ds-tool-dropzone-active-border:#1f6f5c;--ds-tool-canvas-bg:#f8fafc;--ds-tool-checkerboard-light:#fff;--ds-tool-checkerboard-dark:#e2e8f0;--ds-data-positive:#16a34a;--ds-data-negative:#dc2626;--ds-data-neutral:#64748b;--ds-data-accent:#1f6f5c;--ds-code-bg:#0f172a;--ds-code-text:#e2e8f0;--ds-code-border:#334155}[data-theme=grey]{--ds-color-bg:#374151;--ds-color-bg-subtle:#4b5563;--ds-color-surface:#4b5563;--ds-color-surface-hover:#6b7280;--ds-color-text:#f9fafb;--ds-color-text-muted:#d1d5db;--ds-color-text-soft:#9ca3af;--ds-color-border:#6b7280;--ds-color-border-strong:#9ca3af;--ds-color-brand:#5cbfa5;--ds-color-brand-hover:#7fd0ba;--ds-color-brand-soft:#5cbfa52e;--ds-color-badge-bg:#5cbfa533;--ds-color-badge-text:#7fd0ba;--ds-color-timeline-line:#6b7280;--ds-color-timeline-dot:#5cbfa5;--ds-nav-bg:#374151f2;--ds-hero-gradient:linear-gradient(135deg, #4b5563 0%, #374151 50%, #1f2937 100%);--ds-shadow-sm:0 1px 3px #0000004d;--ds-shadow-md:0 8px 24px #0000004d;--ds-shadow-lg:0 24px 70px #00000059}[data-theme=dark]{--ds-color-bg:#0f172a;--ds-color-bg-subtle:#1e293b;--ds-color-surface:#1e293b;--ds-color-surface-hover:#334155;--ds-color-text:#f8fafc;--ds-color-text-muted:#cbd5e1;--ds-color-text-soft:#64748b;--ds-color-border:#334155;--ds-color-border-strong:#475569;--ds-color-brand:#5cbfa5;--ds-color-brand-hover:#7fd0ba;--ds-color-brand-soft:#5cbfa51f;--ds-color-badge-bg:#5cbfa524;--ds-color-badge-text:#7fd0ba;--ds-color-timeline-line:#334155;--ds-color-timeline-dot:#5cbfa5;--ds-nav-bg:#0f172af2;--ds-hero-gradient:linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #0c1020 100%);--ds-shadow-sm:0 1px 3px #00000080;--ds-shadow-md:0 8px 24px #0006;--ds-shadow-lg:0 24px 70px #00000073;--ds-tool-dropzone-bg:#1e293b;--ds-tool-dropzone-border:#475569;--ds-tool-dropzone-active-bg:#5cbfa51f;--ds-tool-dropzone-active-border:#5cbfa5;--ds-tool-canvas-bg:#0f172a;--ds-tool-checkerboard-light:#1e293b;--ds-tool-checkerboard-dark:#334155;--ds-data-neutral:#94a3b8}:root{--pdftoolset-brand:var(--ds-color-brand);--pdftoolset-brand-soft:var(--ds-color-brand-soft);color:var(--ds-color-text);background:var(--ds-color-bg-subtle);font-family:var(--ds-font-sans)}*{box-sizing:border-box}body{margin:0}h1,h2,h3{font-family:var(--ds-font-display)}button,input,select,textarea{font:inherit;font-family:var(--ds-font-sans);font-size:var(--ds-type-base);min-width:0}button{line-height:var(--ds-leading-tight)}button:disabled{cursor:not-allowed;opacity:.58}.shell{min-height:100vh;padding:var(--ds-space-8)}.workspace{max-width:1180px;margin:0 auto}.shell-editor .workspace{max-width:1560px}.header{justify-content:space-between;align-items:center;gap:var(--ds-space-6);margin-bottom:var(--ds-space-8);display:flex}.header-actions,.auth-session{align-items:center;gap:var(--ds-space-3);min-width:0;display:flex}.auth-session>span{color:var(--ds-color-text-muted);font-weight:var(--ds-weight-bold);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.eyebrow{color:var(--ds-color-text-muted);font-size:var(--ds-type-sm);font-weight:var(--ds-weight-bold);text-transform:uppercase;margin:0 0 6px}h1,h2,h3,p{margin-top:0}h1{margin-bottom:0;font-size:42px}h2{margin-bottom:8px;font-size:28px}h3{font-size:var(--ds-type-base);text-transform:capitalize;margin:0}.security-pill{background:color-mix(in srgb, var(--ds-color-success) 12%, var(--ds-color-surface));border:1px solid color-mix(in srgb, var(--ds-color-success) 28%, var(--ds-color-border));border-radius:var(--ds-radius-md);color:var(--ds-color-success);align-items:center;gap:var(--ds-space-2);padding:var(--ds-space-2) var(--ds-space-3);white-space:nowrap;display:flex}.auth-button{background:var(--ds-color-surface);border:1px solid var(--ds-color-border-strong);border-radius:var(--ds-radius-md);color:var(--ds-color-text);cursor:pointer;align-items:center;gap:var(--ds-space-2);min-height:42px;padding:0 var(--ds-space-3);white-space:nowrap;font-weight:800;display:inline-flex}.security-pill svg,.auth-button svg,.tool-button svg,.primary-action svg,.download-link svg,.dropzone svg,.job-heading svg,.icon-button svg,.editor-title svg,.toolbar-button svg,.toolbar-icon svg,.add-card svg,.workspace-dropzone svg,.split-marker svg,.home-tool-icon svg,.home-upload-button svg,.result-file-download svg{width:20px;height:20px}.site-footer{color:var(--ds-color-text-muted);align-items:center;gap:var(--ds-space-3);margin-top:var(--ds-space-6);padding:var(--ds-space-5) 0 var(--ds-space-1);flex-wrap:wrap;justify-content:center;display:flex}.site-footer a{color:var(--ds-color-brand);font-weight:800;text-decoration:none}.site-footer a:hover{text-decoration:underline}.result-file-icon svg{width:24px;height:24px}.layout{gap:var(--ds-space-6);grid-template-columns:280px 1fr;display:grid}.layout-home{grid-template-columns:1fr}.tool-list{gap:var(--ds-space-2);flex-direction:column;display:flex}.tool-button{background:var(--ds-color-surface);border:1px solid var(--ds-color-border);border-radius:var(--ds-radius-md);color:var(--ds-color-text);cursor:pointer;align-items:center;gap:var(--ds-space-3);min-height:48px;padding:var(--ds-space-3);text-align:left;display:flex}.tool-button.active{background:var(--ds-color-brand);border-color:var(--ds-color-brand);color:#fff}.panel{background:var(--ds-color-surface);border:1px solid var(--ds-color-border);border-radius:var(--ds-radius-md);padding:var(--ds-space-6)}.modal-backdrop{padding:var(--ds-space-5);z-index:80;background:#10182875;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.login-modal{background:var(--ds-color-surface);border-radius:var(--ds-radius-md);box-shadow:var(--ds-shadow-lg);gap:var(--ds-space-5);max-width:440px;padding:var(--ds-space-6);width:100%;display:grid;position:relative}.modal-close{border:1px solid var(--ds-color-border-strong);border-radius:var(--ds-radius-md);color:var(--ds-color-text-muted);cursor:pointer;background:0 0;justify-content:center;align-items:center;width:34px;height:34px;display:inline-flex;position:absolute;top:18px;right:18px}.modal-close svg,.modal-heading svg,.owned-job-age svg{width:20px;height:20px}.modal-heading{grid-template-columns:34px minmax(0,1fr);align-items:start;gap:12px;padding-right:42px;display:grid}.modal-heading>svg{background:var(--ds-color-brand-soft);color:var(--ds-color-brand);border-radius:8px;width:34px;height:34px;padding:7px}.modal-heading h2,.modal-heading p{margin:0}.modal-actions{justify-content:flex-end;gap:10px;display:flex}.modal-actions .result-secondary{width:auto;min-width:110px}.modal-message{margin:0}.success-text{color:var(--ds-color-success);font-weight:800}.editor-panel{background:var(--ds-color-brand-soft);border:1px solid var(--ds-color-border);border-radius:8px;min-height:680px;overflow:hidden}.classic-editor-panel{background:var(--ds-color-brand-soft)}.classic-stage-content{gap:18px;min-height:520px;padding:0 28px 42px;display:grid}.classic-dropzone{margin-top:70px;margin-bottom:12px}.classic-file-list{width:100%;max-width:820px;margin:0 auto}.compare-stage-content{align-content:start}.compare-file-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}.compare-file-slot .classic-dropzone{min-height:220px;margin-top:24px}.home-panel{background:var(--ds-color-brand-soft);min-height:760px}.legal-panel{background:var(--ds-color-surface);min-height:720px}.legal-content,.jobs-content{max-width:840px;margin:0 auto;padding:48px 28px 64px}.legal-content h2{margin-bottom:18px;font-size:34px}.legal-content h3{color:var(--ds-color-text);font-size:var(--ds-type-lg);text-transform:none;margin-top:28px}.legal-content p{color:var(--ds-color-text-muted);line-height:var(--ds-leading-relaxed)}.legal-content a{color:#153e75;font-weight:800}.auth-verify-content{text-align:center;place-content:center;justify-items:center;min-height:520px;display:grid}.auth-verify-content svg{color:var(--ds-color-brand);width:34px;height:34px}.job-table{gap:10px;display:grid}.owned-job-row{background:var(--ds-color-bg-subtle);border:1px solid var(--ds-color-border);border-radius:8px;grid-template-columns:minmax(0,1fr) auto auto 42px 42px;align-items:center;gap:14px;min-height:76px;padding:12px 14px;display:grid}.owned-job-row strong,.owned-job-row span{display:block}.owned-job-row div:first-child{min-width:0}.owned-job-row div:first-child span{color:var(--ds-color-text-soft);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.job-status-pill{background:var(--ds-color-brand-soft);color:#153e75;text-transform:capitalize;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:900}.job-status-pill.done{color:var(--ds-color-success);background:#e8f5ef}.job-status-pill.failed,.job-status-pill.expired,.job-status-pill.cancelled{color:var(--ds-color-warning);background:#fde7df}.owned-job-age{color:var(--ds-color-text-muted);align-items:center;gap:var(--ds-space-2);white-space:nowrap;display:flex}.home-topbar{min-height:72px}.home-upload-button{min-width:170px}.home-upload-row{justify-content:flex-end;display:flex}.home-upload-row .home-upload-button{min-width:240px}.home-filter-tabs{align-items:flex-start;gap:var(--ds-space-2);flex-wrap:wrap;margin-bottom:22px;display:flex}.home-filter-tabs button{background:var(--ds-color-surface);border:1px solid var(--ds-color-border-strong);border-radius:var(--ds-radius-md);color:var(--ds-color-text-muted);cursor:pointer;font-weight:var(--ds-weight-bold);min-height:38px;padding:var(--ds-space-2) var(--ds-space-3)}.home-filter-tabs button.active{background:var(--ds-color-brand);border-color:var(--ds-color-brand);color:#fff}.home-content{gap:var(--ds-space-6);max-width:920px;min-height:660px;padding:var(--ds-space-8) var(--ds-space-6) 3.5rem;align-content:start;margin:0 auto;display:grid}.home-content.dragging{background:linear-gradient(#eef4ffe6,#eef4ffe6),repeating-linear-gradient(135deg,#7aa7ff 0 6px,#0000 6px 14px)}.home-with-sidebar{align-items:start;gap:var(--ds-space-5);grid-template-columns:minmax(0,1fr) 300px;display:grid}.home-with-sidebar .home-content{width:100%;max-width:none}.recent-jobs-panel{background:var(--ds-color-surface);border:1px solid var(--ds-color-border-strong);border-radius:var(--ds-radius-md);box-shadow:var(--ds-shadow-sm);margin:28px 24px 56px 0;position:sticky;top:18px;overflow:hidden}.recent-jobs-panel.collapsed{width:210px}.recent-jobs-toggle{background:var(--ds-color-surface);color:var(--ds-color-text);cursor:pointer;align-items:center;gap:var(--ds-space-2);min-height:48px;padding:var(--ds-space-3);text-align:left;border:0;grid-template-columns:auto minmax(0,1fr) auto;width:100%;font-weight:900;display:grid}.recent-jobs-panel.collapsed .recent-jobs-toggle svg:last-child{transform:rotate(90deg)}.recent-jobs-list{border-top:1px solid var(--ds-color-border);gap:var(--ds-space-3);max-height:620px;padding:var(--ds-space-3);display:grid;overflow-y:auto}.recent-job-row{background:var(--ds-color-bg-subtle);border:1px solid var(--ds-color-border);border-radius:var(--ds-radius-md);gap:var(--ds-space-3);padding:var(--ds-space-3);display:grid}.recent-job-main{min-width:0}.recent-job-main strong,.recent-job-main span{display:block}.recent-job-main strong{color:var(--ds-color-text);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.recent-job-main span{color:var(--ds-color-text-muted);margin-top:4px;font-size:12px}.recent-job-actions{gap:var(--ds-space-2);display:flex}.home-section{gap:var(--ds-space-5);display:grid}.home-section h3{color:var(--ds-color-text);font-size:var(--ds-type-lg);text-transform:none}.home-grid{gap:var(--ds-space-2);grid-template-columns:repeat(3,minmax(0,1fr));display:grid}.home-tool-card{background:var(--ds-color-surface);border:1px solid var(--ds-color-border-strong);border-radius:var(--ds-radius-sm);color:var(--ds-color-text);cursor:pointer;align-items:center;gap:var(--ds-space-3);min-height:66px;padding:var(--ds-space-3) var(--ds-space-6);text-align:left;grid-template-columns:auto minmax(0,1fr) auto;display:grid}.home-tool-card:hover{border-color:var(--ds-color-brand);box-shadow:0 8px 22px #1557ff1a}.home-tool-card>span:not(.home-tool-icon){text-overflow:ellipsis;white-space:nowrap;font-weight:800;overflow:hidden}.home-tool-card small{color:var(--ds-color-text-soft);font-size:var(--ds-type-xs);font-weight:var(--ds-weight-bold)}.home-tool-copy{gap:3px;min-width:0;display:grid}.home-tool-copy strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.home-tool-copy em{color:var(--ds-color-text-soft);text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-style:normal;font-weight:500;line-height:1.25;overflow:hidden}.home-tool-card.disabled{cursor:default;opacity:.66}.home-tool-card.disabled:hover{box-shadow:none;border-color:#b9d0f7}.home-tool-icon{background:var(--ds-color-brand-soft);color:var(--ds-color-brand);border-radius:6px;justify-content:center;align-items:center;width:28px;height:28px;display:inline-flex}.panel-title p,.file-list p,.status,.job-heading p,.option-note{color:var(--ds-color-text-muted)}.tool-options{gap:var(--ds-space-3);grid-template-columns:repeat(auto-fit,minmax(180px,1fr));margin-bottom:18px;display:grid}.field{gap:var(--ds-space-2);display:grid}.field span{color:var(--ds-color-text-muted);font-size:var(--ds-type-sm);font-weight:var(--ds-weight-bold)}.field input,.field select,.field textarea{background:var(--ds-color-surface);border:1px solid var(--ds-color-border-strong);border-radius:var(--ds-radius-md);color:var(--ds-color-text);font-size:var(--ds-type-base);min-height:42px;padding:var(--ds-space-2) var(--ds-space-3);width:100%}.field textarea{font:inherit;resize:vertical;min-height:92px}.checkbox-field input{width:20px;height:20px;min-height:20px}.tool-options-wide{grid-column:1/-1}.dropzone{border:2px dashed var(--ds-tool-dropzone-border);border-radius:var(--ds-radius-md);color:var(--ds-color-text-muted);cursor:pointer;align-items:center;gap:var(--ds-space-3);min-height:176px;padding:var(--ds-space-6);text-align:center;flex-direction:column;justify-content:center;display:flex}.classic-editor-panel .dropzone{margin:28px}.dropzone.dragging{background:var(--ds-tool-dropzone-active-bg);border-color:var(--ds-tool-dropzone-active-border)}.dropzone input{opacity:0;width:1px;height:1px;position:absolute}.dropzone span{font-weight:700}.file-list{gap:var(--ds-space-2);margin:18px 0;display:grid}.classic-editor-panel .file-list,.classic-status,.classic-editor-panel .job-card{margin-left:28px;margin-right:28px}.file-row{background:var(--ds-color-bg-subtle);border:1px solid var(--ds-color-border);border-radius:var(--ds-radius-md);align-items:center;gap:var(--ds-space-3);min-height:44px;padding:var(--ds-space-2) var(--ds-space-3);grid-template-columns:minmax(0,1fr) auto 34px;display:grid}.file-row span:first-child{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.outline-editor-list{gap:var(--ds-space-3);display:grid}.outline-editor-row{background:var(--ds-color-bg-subtle);border:1px solid var(--ds-color-border);border-radius:var(--ds-radius-md);align-items:end;gap:var(--ds-space-3);margin-left:calc(var(--outline-depth,0) * 24px);padding:var(--ds-space-3);grid-template-columns:minmax(0,1fr) 96px auto;display:grid}.outline-title-field,.outline-page-field{margin:0}.outline-row-actions{flex-wrap:wrap;justify-content:flex-end;gap:6px;display:flex}.icon-button{border:1px solid var(--ds-color-border-strong);border-radius:var(--ds-radius-md);color:var(--ds-color-text-muted);cursor:pointer;background:0 0;justify-content:center;align-items:center;width:34px;height:34px;display:inline-flex}.actions{align-items:center;gap:var(--ds-space-3);display:flex}.primary-action{background:var(--ds-color-danger);border-radius:var(--ds-radius-md);color:#fff;cursor:pointer;align-items:center;gap:var(--ds-space-2);min-height:44px;padding:var(--ds-space-2) var(--ds-space-5);border:0;font-weight:700;display:inline-flex}.editor-export{background:var(--ds-color-brand);justify-content:center;min-width:260px}.editor-export span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.editor-actions{align-items:center;gap:var(--ds-space-3);display:flex}.limits-badge{background:var(--ds-color-brand-soft);color:#194185;white-space:nowrap;border:1px solid #c7d7fe;border-radius:999px;padding:7px 10px;font-size:12px;font-weight:800;line-height:1.2}.editor-download{min-height:44px}.status{margin:0}.job-card{border:1px solid var(--ds-color-border);border-radius:8px;gap:14px;margin-top:20px;padding:16px;display:grid}.job-card.done{border-color:#b8dfcc}.job-card.failed{border-color:#efb8a9}.job-heading{align-items:center;gap:10px;display:flex}.progress-track{appearance:none;background:#e8edf2;border:0;border-radius:999px;width:100%;height:8px;overflow:hidden}.progress-track::-webkit-progress-bar{background:#e8edf2;border-radius:999px}.progress-track::-webkit-progress-value{background:#2d8b6f;border-radius:999px}.progress-track::-moz-progress-bar{background:#2d8b6f;border-radius:999px}.file-progress-card{background:var(--ds-color-bg-subtle);border:1px solid #e3e9f0;border-radius:8px;gap:10px;padding:12px;display:grid}.file-progress-card strong{color:var(--ds-color-text);font-size:14px}.file-progress-list{flex-wrap:wrap;gap:8px;display:flex}.file-progress-pill,.file-progress-more{background:var(--ds-color-brand-soft);color:#153e75;text-overflow:ellipsis;white-space:nowrap;border:1px solid #d8e5ff;border-radius:999px;max-width:220px;padding:5px 8px;font-size:12px;font-weight:800;overflow:hidden}.file-progress-pill.done{color:var(--ds-color-success);background:#e8f5ef;border-color:#c8ead8}.file-progress-pill.failed{color:var(--ds-color-warning);background:#fde7df;border-color:#f5c7ba}.retry-job-button{justify-self:start;width:auto}.error-text{color:#a43a24;margin-bottom:0}.result-grid{grid-template-columns:minmax(0,1fr) auto auto auto;align-items:center;gap:10px;display:grid}.download-link{color:#fff;background:#153e75;border-radius:8px;align-items:center;gap:8px;min-height:38px;padding:8px 12px;font-weight:700;text-decoration:none;display:inline-flex}.spin{animation:.9s linear infinite spin}.visually-hidden{opacity:0;width:1px;height:1px;position:absolute}.editor-topbar{background:var(--ds-color-surface);border-bottom:1px solid var(--ds-color-border);justify-content:space-between;align-items:center;gap:16px;padding:14px 18px;display:flex}.editor-title{align-items:center;gap:12px;min-width:0;display:flex}.editor-title h2{margin:0 0 4px;font-size:24px}.editor-title p{color:var(--ds-color-text-soft);margin:0}.workspace-toolbar{background:var(--ds-color-surface);border-bottom:1px solid var(--ds-color-border);align-items:center;gap:10px;min-height:64px;padding:10px 14px;display:flex;position:relative}.segmented-control{border:1px solid var(--ds-color-border);border-radius:8px;display:inline-flex;overflow:hidden}.segmented-control button,.toolbar-button,.toolbar-icon{background:var(--ds-color-surface);color:var(--ds-color-text);cursor:pointer;border:0;justify-content:center;align-items:center;gap:8px;min-height:42px;display:inline-flex}.segmented-control button{border-right:1px solid var(--ds-color-border);padding:0 13px}.segmented-control button:last-child{border-right:0}.segmented-control button.active,.toolbar-icon.active{background:var(--ds-color-brand-soft);color:#0957ff}.toolbar-button{border:1px solid var(--ds-color-border);border-radius:8px;padding:0 13px}.toolbar-icon{border:1px solid var(--ds-color-border);border-radius:8px;width:42px}.toolbar-icon.danger{color:var(--ds-color-warning)}.toolbar-divider{background:var(--ds-color-border);width:1px;height:28px}.toolbar-spacer{flex:1}.split-every-control{white-space:nowrap;align-items:center;gap:10px;display:inline-flex}.split-every-control label{align-items:center;gap:8px;display:inline-flex}.split-every-control input[type=checkbox]{width:18px;height:18px}.stepper{border:1px solid var(--ds-color-border);border-radius:8px;display:inline-flex;overflow:hidden}.stepper button,.stepper input{background:var(--ds-color-surface);color:var(--ds-color-text);text-align:center;border:0;height:42px}.stepper button{cursor:pointer;width:42px}.stepper button:disabled,.stepper input:disabled{color:#9aa4b2;background:#f3f4f6}.stepper input{border-left:1px solid var(--ds-color-border);border-right:1px solid var(--ds-color-border);width:52px}.stepper input::-webkit-outer-spin-button{appearance:none;margin:0}.stepper input::-webkit-inner-spin-button{appearance:none;margin:0}.sort-group{gap:8px;display:inline-flex}.add-menu{position:relative}.menu-popover{background:var(--ds-color-surface);border:1px solid var(--ds-color-border);z-index:10;border-radius:8px;min-width:220px;padding:8px;display:grid;position:absolute;top:50px;left:0;box-shadow:0 12px 36px #19212e24}.menu-popover button{color:var(--ds-color-text);cursor:pointer;text-align:left;background:0 0;border:0;border-radius:6px;align-items:center;gap:10px;min-height:44px;padding:0 12px;display:flex}.menu-popover button:hover{background:var(--ds-color-bg-subtle)}.selection-bar{color:var(--ds-color-text);align-items:center;gap:18px;min-height:56px;padding:12px 18px;display:flex}.workspace-options{background:var(--ds-color-surface);border-bottom:1px solid var(--ds-color-border);grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;padding:12px 18px;display:grid}.workspace-options .tool-options{margin-bottom:0}.workspace-options .option-note{margin:0}.sign-draw-panel{gap:18px}.sign-draw-grid{grid-template-columns:minmax(280px,380px) minmax(0,1fr);gap:18px;display:grid}.sign-draw-column,.sign-draw-preview-card{background:#f8fbfc;border:1px solid #d6e1ea;border-radius:18px;padding:16px}.signature-pad-card{gap:10px;display:grid}.signature-pad-canvas{cursor:crosshair;touch-action:none;background:#fff;border:1px solid #d6e1ea;border-radius:12px;width:100%;height:180px}.signature-pad-actions,.signature-position-fields{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.signature-pad-actions span{color:var(--ds-color-text-soft);flex:1;font-size:.9rem}.signature-position-fields .field{flex:90px}.sign-draw-preview-card{place-items:center;min-height:420px;display:grid}.signature-page-preview{display:inline-block;position:relative}.signature-page-preview img{cursor:crosshair;border-radius:10px;max-width:100%;max-height:68vh;display:block;box-shadow:0 18px 40px #18202a29}.signature-placement-box{pointer-events:none;border:2px solid #2f6fed;border-radius:8px;position:absolute;box-shadow:0 0 0 2px #ffffffbf}.primary-action.compact{min-height:36px;padding:0 12px}@media (width<=860px){.sign-draw-grid{grid-template-columns:1fr}}.tool-disclaimer{color:#7c2d12;background:#fff7ed;border:1px solid #fed7aa;border-radius:8px;gap:4px;padding:10px 12px;display:grid}.tool-disclaimer strong{font-size:13px}.tool-disclaimer p{margin:0}.result-disclaimer{margin-bottom:14px}.toggle-option{border:1px solid var(--ds-color-border);cursor:pointer;border-radius:8px;align-items:center;gap:12px;max-width:360px;padding:12px 14px;display:flex}.toggle-option input{width:18px;height:18px}.toggle-option span{gap:2px;display:grid}.toggle-option strong{color:#102033}.toggle-option small{color:var(--ds-color-text-soft);line-height:1.35}.direction-control{border:1px solid var(--ds-color-border);border-radius:8px;width:fit-content;display:inline-flex;overflow:hidden}.direction-control button{background:var(--ds-color-surface);border:0;border-right:1px solid var(--ds-color-border);color:var(--ds-color-text);cursor:pointer;min-height:42px;padding:0 14px}.direction-control button:last-child{border-right:0}.direction-control button.active{background:var(--ds-color-brand-soft);color:#0957ff;font-weight:800}.html-options{grid-template-columns:minmax(260px,max-content) repeat(auto-fit,minmax(160px,1fr))}.html-input-tabs{align-self:end}.html-stage-content{align-items:stretch}.html-source-field{width:min(100%,920px)}.html-source-field textarea{font-family:SFMono-Regular,Consolas,Liberation Mono,monospace;line-height:1.5}.html-margin-grid{grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;width:min(100%,920px);display:grid}.workspace-body{min-height:560px}.workspace-body.with-result-panel{grid-template-columns:minmax(0,1fr) 360px;display:grid}.workspace-stage{min-width:0}.checkbox-line{align-items:center;gap:10px;display:inline-flex}.checkbox-line input,.card-checkbox input{accent-color:var(--ds-color-brand);width:22px;height:22px}.workspace-dropzone{color:#4f83e7;cursor:pointer;text-align:center;border:2px dashed #7aa7ff;border-radius:8px;flex-direction:column;justify-content:center;align-items:center;gap:12px;max-width:360px;min-height:280px;margin:70px auto;padding:28px;font-weight:800;display:flex}.workspace-dropzone.dragging{background:var(--ds-color-brand-soft)}.workspace-dropzone input{opacity:0;width:1px;height:1px;position:absolute}.document-grid,.page-grid{grid-template-columns:repeat(auto-fill,minmax(190px,1fr));align-items:start;gap:28px;padding:42px 32px 52px;display:grid}.document-list,.page-list{gap:12px;padding:22px;display:grid}.document-slot{align-items:center;gap:14px;min-width:0;display:flex}.list-document-slot{align-items:stretch;gap:8px;display:grid}.document-card,.page-card{border:2px solid #0000;border-radius:8px;place-items:center;gap:10px;min-width:0;padding:10px;display:grid;position:relative}.document-slot .document-card{width:100%}.document-card.selected,.page-card.selected{background:var(--ds-color-brand-soft);border-color:#c5dcff}.document-list .document-card,.page-list .page-card{grid-template-columns:48px 96px minmax(0,1fr) auto;place-items:center start;gap:18px;width:100%;min-height:132px;display:grid;overflow:hidden}.document-list .document-card{grid-template-columns:48px 88px minmax(0,1fr) auto;min-height:112px}.document-stack{background:var(--ds-color-surface);box-shadow:-10px -10px 0 #fff, -10px -10px 0 1px var(--ds-color-border), 0 0 0 1px var(--ds-color-border);place-items:center;width:160px;min-height:230px;display:grid}.document-stack img,.page-preview img{max-width:100%;max-height:100%;display:block}.document-list .document-stack{box-shadow:0 0 0 1px var(--ds-color-border);width:64px;min-height:86px}.page-slot{align-items:center;gap:14px;min-width:0;display:flex}.list-page-slot{align-items:stretch;gap:8px;display:grid}.page-card{cursor:grab;touch-action:pan-y;width:100%}.page-card:active{cursor:grabbing}.page-card.sortable{touch-action:none}.page-card.sortable.dragging{border-color:var(--ds-color-brand);cursor:grabbing;box-shadow:0 12px 30px #1557ff2e}.page-preview{background:var(--ds-color-surface);box-shadow:0 0 0 1px var(--ds-color-border);justify-content:center;align-items:center;width:160px;height:230px;transition:transform .18s;display:flex}.page-preview.rotate-90{transform:rotate(90deg)}.page-preview.rotate-180{transform:rotate(180deg)}.page-preview.rotate-270{transform:rotate(270deg)}.page-list .page-preview{width:86px;height:118px}.blank-preview{background:linear-gradient(#fff,#fff) padding-box padding-box,repeating-linear-gradient(135deg,#e2e8f0 0 6px,#0000 6px 12px) border-box;border:1px dashed #b7c7da;width:100%;height:100%}.card-checkbox{z-index:2;position:absolute;top:8px;left:8px}.document-list .card-checkbox,.page-list .card-checkbox{position:static;top:auto;left:auto}.filename-chip{color:#783346;text-overflow:ellipsis;white-space:nowrap;background:#f7c6d4;border-radius:6px;max-width:min(150px,100%);padding:5px 10px;overflow:hidden}.document-list .filename-chip,.page-list .filename-chip{justify-self:start;max-width:100%}.document-card:nth-child(2n) .filename-chip,.page-card:nth-child(2n) .filename-chip{color:#6c5313;background:#f4dfa2}.document-card p,.page-card p{color:#8a96a5;margin:0}.page-rotate{background:var(--ds-color-surface);color:var(--ds-color-brand);border:1px solid #3d7dff;border-radius:999px;justify-content:center;align-items:center;width:46px;height:46px;display:inline-flex;position:absolute;top:100px}.page-list .page-rotate{display:none}.add-card{color:#4f83e7;cursor:pointer;text-align:center;background:0 0;border:1px dashed #7aa7ff;border-radius:8px;flex-direction:column;justify-content:center;align-self:stretch;align-items:center;gap:12px;min-height:250px;padding:24px;font-weight:800;display:flex}.add-card.dragging{background:var(--ds-color-brand-soft);border-color:var(--ds-color-brand)}.add-card svg{color:var(--ds-color-brand)}.insert-point{flex:none;display:inline-flex;position:relative}.insert-button{color:#fff;cursor:pointer;background:#9abaff;border:0;border-radius:999px;justify-content:center;align-items:center;width:34px;height:34px;display:inline-flex}.insert-button:hover,.insert-button:focus-visible{background:var(--ds-color-brand)}.insert-menu{background:var(--ds-color-surface);border:1px solid var(--ds-color-border);z-index:20;border-radius:8px;min-width:190px;padding:8px;display:grid;position:absolute;top:50%;left:42px;transform:translateY(-50%);box-shadow:0 12px 36px #19212e24}.insert-menu button{color:var(--ds-color-text);cursor:pointer;text-align:left;background:0 0;border:0;border-radius:6px;align-items:center;gap:10px;min-height:40px;padding:0 10px;display:flex}.insert-menu button:hover{background:var(--ds-color-bg-subtle)}.document-list .insert-point,.page-list .insert-point{justify-self:stretch}.document-list .insert-button,.page-list .insert-button{border-radius:8px;width:100%}.document-list .insert-menu,.page-list .insert-menu{top:40px;left:50%;transform:translate(-50%)}.page-add-card{min-height:330px}.document-list .add-card,.page-list .page-add-card{flex-direction:row;min-height:96px}.split-marker{color:#fff;cursor:pointer;background:#9abaff;border:0;border-radius:999px;flex:none;justify-content:center;align-items:center;width:38px;height:38px;display:inline-flex}.split-marker.active{background:var(--ds-color-brand);box-shadow:0 0 0 6px #dbe9ff}.page-list .split-marker{border-radius:8px;justify-self:stretch;width:100%;height:34px;position:relative}.page-list .split-marker:before,.page-list .split-marker:after{content:"";background:#1557ff47;width:calc(50% - 28px);height:1px;position:absolute;top:50%}.page-list .split-marker:before{left:12px}.page-list .split-marker:after{right:12px}.loading-state{color:#506070;justify-content:center;align-items:center;gap:10px;min-height:280px;display:flex}.result-file-list{gap:0;max-width:940px;margin:54px auto;padding:0 28px;display:grid}.result-file-row{background:var(--ds-color-surface);border-bottom:1px solid #e5ebf2;grid-template-columns:74px minmax(0,1fr) auto 44px;align-items:center;gap:18px;min-height:116px;padding:18px 26px;display:grid}.result-file-row:first-child{border-radius:8px 8px 0 0}.result-file-row:last-child{border-bottom:0;border-radius:0 0 8px 8px}.result-file-row:only-child{border-radius:8px}.result-file-icon{background:var(--ds-color-bg-subtle);border:1px solid var(--ds-color-border);color:var(--ds-color-danger);place-items:end center;width:58px;height:74px;padding:10px 8px 8px;display:grid}.result-file-icon span{color:#fff;background:#e12727;border-radius:3px;padding:4px 5px;font-size:11px;font-weight:800;line-height:1}.result-file-main{min-width:0}.result-file-main h3{color:var(--ds-color-text);text-overflow:ellipsis;text-transform:none;white-space:nowrap;margin:0 0 8px;font-size:16px;font-weight:700;overflow:hidden}.result-file-main p{color:#04a44a;margin:0;font-size:13px;font-weight:800}.result-file-size{color:var(--ds-color-text-soft);white-space:nowrap}.result-file-download{border:1px solid var(--ds-color-border);color:var(--ds-color-text);border-radius:8px;justify-content:center;align-items:center;width:38px;height:38px;display:inline-flex}.result-panel{background:var(--ds-color-surface);border-left:1px solid var(--ds-color-border);align-content:start;gap:12px;padding:42px 24px 24px;display:grid}.result-panel-heading{grid-template-columns:40px minmax(0,1fr);align-items:start;gap:12px;display:grid}.result-panel-heading>svg{color:#fff;background:#0ac45c;border-radius:8px;width:38px;height:38px;padding:5px}.result-panel-heading h3{margin:0 0 8px;font-size:24px}.result-panel-heading p,.result-panel-heading span{text-overflow:ellipsis;white-space:nowrap;min-width:0;display:block;overflow:hidden}.result-panel-heading p{margin:0 0 4px}.result-panel-heading span{color:var(--ds-color-text-soft)}.result-menu{grid-template-columns:minmax(0,1fr) 50px;display:grid;position:relative}.result-primary,.result-primary-toggle,.result-secondary,.result-icon-row button,.continue-list button,.start-over-button{cursor:pointer;border:0;align-items:center;gap:10px;min-height:48px;display:inline-flex}.result-primary,.result-primary-toggle{background:var(--ds-color-brand);color:#fff;justify-content:center;font-weight:800;text-decoration:none}.result-primary{border-radius:8px 0 0 8px}.result-primary-toggle{border-left:1px solid #ffffff73;border-radius:0 8px 8px 0}.result-secondary{background:var(--ds-color-bg-subtle);color:var(--ds-color-text);border-radius:8px;grid-column:1/-1;justify-content:center;width:100%}.result-popover{background:var(--ds-color-surface);border:1px solid var(--ds-color-border);z-index:12;border-radius:8px;padding:8px;display:grid;position:absolute;top:54px;left:0;right:0;box-shadow:0 16px 40px #19212e2e}.result-popover a,.result-popover button{color:var(--ds-color-text);cursor:pointer;text-align:left;background:0 0;border:0;border-radius:6px;align-items:center;gap:12px;min-height:46px;padding:0 12px;text-decoration:none;display:flex}.result-popover button:disabled,.continue-list button:disabled{cursor:not-allowed;opacity:.46}.result-popover a:hover,.result-popover button:not(:disabled):hover,.continue-list button:not(:disabled):hover{background:var(--ds-color-brand-soft)}.export-popover{top:56px}.result-icon-row{grid-template-columns:1fr 1fr;gap:8px;display:grid}.result-icon-row button{background:var(--ds-color-bg-subtle);border-radius:8px;justify-content:center}.continue-list{gap:6px;margin-top:10px;display:grid}.continue-list h4{margin:0 0 6px;font-size:16px}.continue-list button{background:var(--ds-color-bg-subtle);color:var(--ds-color-text);border-radius:8px;justify-content:start;padding:0 10px}.continue-list button svg:last-child{margin-left:auto}.start-over-button{background:var(--ds-color-surface);border:1px solid var(--ds-color-border);color:var(--ds-color-text);border-radius:8px;justify-content:center;margin-top:24px}@keyframes spin{to{transform:rotate(360deg)}}@media (width<=1120px){.layout{display:block}.tool-list{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:18px;display:grid}.workspace-toolbar,.editor-topbar,.selection-bar{flex-wrap:wrap;align-items:stretch}.toolbar-spacer{display:none}.editor-export{flex:1}.editor-actions{width:100%}.workspace-body.with-result-panel{grid-template-columns:1fr}.result-panel{border-left:0;border-top:1px solid var(--ds-color-border)}.home-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=768px){.shell{padding:18px}.header,.header-actions{align-items:stretch;display:grid}.tool-list{scroll-snap-type:x proximity;flex-direction:row;gap:8px;margin-bottom:18px;padding-bottom:8px;display:flex;overflow-x:auto}.tool-button{scroll-snap-align:start;flex:0 0 min(210px,72vw)}.tool-button span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.security-pill{width:fit-content;margin-top:16px}.auth-session{align-items:stretch;display:grid}.auth-session>span{white-space:normal}.actions,.result-grid{align-items:stretch;display:grid}.editor-export{width:100%}.editor-actions{grid-template-columns:1fr;display:grid}.editor-title{align-items:flex-start}.editor-title h2{font-size:22px}.tool-options,.workspace-options{grid-template-columns:minmax(0,1fr)}.workspace-toolbar{flex-wrap:nowrap;overflow-x:auto}.workspace-toolbar>*{flex:none}.toolbar-icon{flex:0 0 42px}.selection-bar{flex-wrap:wrap}.split-every-control{white-space:normal;flex-wrap:wrap}.document-grid,.page-grid{grid-template-columns:1fr;padding:20px}.workspace-body.with-result-panel{padding-bottom:min(72vh,520px);display:block}.result-panel{border:1px solid var(--ds-color-border);z-index:30;border-radius:16px 16px 8px 8px;max-height:min(72vh,520px);padding:24px 18px 18px;position:fixed;bottom:12px;left:12px;right:12px;overflow-y:auto;box-shadow:0 -18px 44px #19212e38}.home-with-sidebar{grid-template-columns:1fr}.recent-jobs-panel,.recent-jobs-panel.collapsed{width:auto;margin:0 16px 32px;position:static}.home-content{padding:24px 16px 36px}.legal-content,.jobs-content{padding:32px 18px 44px}.owned-job-row{grid-template-columns:minmax(0,1fr) auto}.owned-job-age,.owned-job-row .result-file-download,.owned-job-row .icon-button{justify-self:start}.home-grid{grid-template-columns:1fr}h1{font-size:34px}}@media (width<=480px){.shell{padding:12px}.home-upload-row{justify-content:stretch}.home-upload-row .home-upload-button{width:100%;min-width:0}.modal-actions{display:grid}.classic-stage-content{padding:0 14px 32px}.classic-editor-panel .file-list,.classic-status,.classic-editor-panel .job-card{margin-left:14px;margin-right:14px}.classic-editor-panel .dropzone{margin:18px 14px}.document-grid,.page-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px}.document-card,.page-card{gap:8px;padding:8px}.document-stack,.page-preview{width:80px;min-height:112px}.page-preview{height:112px}.page-rotate{width:36px;height:36px;top:54px}.page-list,.document-list{padding:14px}.document-list .document-card,.page-list .page-card{grid-template-columns:34px 72px minmax(0,1fr);gap:10px;min-height:104px}.document-list .document-stack,.page-list .page-preview{width:64px;min-height:92px}.document-list .filename-chip,.document-list .document-card p,.page-list .filename-chip,.page-list .page-card p{grid-column:3}.filename-chip{max-width:100%}.file-row,.result-file-row{grid-template-columns:minmax(0,1fr) auto}.compare-file-grid{grid-template-columns:1fr}.file-row .icon-button,.result-file-download{grid-column:2}.result-file-size{display:none}}
