@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2)format("woff2-variations");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2)format("woff2-variations");unicode-range:U+1F??}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-greek-wght-normal-CkhJZR-_.woff2)format("woff2-variations");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-latin-wght-normal-Dx4kXJAl.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--bg:#f3f4f6;--card:#fff;--panel:#f9fafb;--text:#1f2937;--title:#111827;--muted:#4b5563;--faint:#6b7280;--hint:#9ca3af;--border:#e5e7eb;--border-strong:#d1d5db;--indigo:#4f46e5;--indigo-hover:#4338ca;--indigo-50:#eef2ff;--indigo-500:#6366f1;--red:#ef4444;--red-hover:#dc2626;--green:#16a34a;--shadow-md:0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a;--mono:ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}:root[data-theme=dark]{--bg:#0f1115;--card:#171a21;--panel:#12151b;--text:#e5e7eb;--title:#f9fafb;--muted:#9ca3af;--faint:#9ca3af;--hint:#6b7280;--border:#272b35;--border-strong:#363b47;--indigo-50:#1e1b4b;--indigo:#6366f1;--indigo-hover:#818cf8;--shadow-md:0 4px 10px #00000059;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}html,body{margin:0}body{background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;font-family:Inter Variable,Inter,Segoe UI,system-ui,sans-serif;line-height:1.5}[hidden]{display:none!important}a{color:var(--indigo)}button{font:inherit;cursor:pointer}.accent{color:var(--indigo);font-weight:600}.loader-overlay{z-index:50;color:#fff;text-align:center;background:#0009;flex-direction:column;justify-content:center;align-items:center;padding:24px;transition:opacity .3s;display:flex;position:fixed;inset:0}.loader-overlay.hide{opacity:0;pointer-events:none}.loader-overlay h2{margin:0;font-size:20px;font-weight:600}.loader-overlay p{margin:8px 0 0;font-size:16px}.loader-overlay .err-title{color:var(--red)}.loader-large{border:8px solid #e5e7eb;border-top-color:#3498db;border-radius:50%;width:96px;height:96px;margin-bottom:16px;animation:1s linear infinite spin}.loader-small{border:4px solid #e5e7eb;border-top-color:#3498db;border-radius:50%;width:24px;height:24px;animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}#model-progress{appearance:none;background:#e5e7eb;border:0;border-radius:999px;width:256px;height:8px;margin-top:16px;overflow:hidden}#model-progress::-webkit-progress-bar{background:#e5e7eb;border-radius:999px}#model-progress::-webkit-progress-value{background:#3498db;border-radius:999px;transition:width .2s}#model-progress::-moz-progress-bar{background:#3498db}.loader-overlay .progress-text{font-size:14px}.loader-overlay .loader-file{font:12px var(--mono);opacity:.7;min-height:18px}.theme-btn{border:1px solid var(--border);background:var(--card);width:38px;height:38px;color:var(--muted);box-shadow:var(--shadow-md);z-index:10;border-radius:999px;place-items:center;display:grid;position:fixed;top:16px;right:16px}.theme-btn svg{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;width:18px;height:18px}.theme-btn .sun,:root[data-theme=dark] .theme-btn .moon{display:none}:root[data-theme=dark] .theme-btn .sun{display:block}.container{max-width:1280px;margin:0 auto;padding:32px}.header{text-align:center;margin-bottom:32px}.header h1{color:var(--title);letter-spacing:-.01em;margin:0;font-size:36px;font-weight:700;line-height:40px}.header p{color:var(--muted);margin:8px 0 0;font-size:18px}.model-chip{color:var(--faint);background:var(--card);border:1px solid var(--border);border-radius:999px;align-items:center;gap:8px;margin-top:14px;padding:4px 12px;font-size:13px;display:inline-flex}.model-chip i{background:var(--hint);border-radius:50%;width:8px;height:8px}.model-chip.ok i{background:var(--green)}.model-chip.busy i{background:#3498db;animation:1s infinite pulse}@keyframes pulse{50%{opacity:.3}}.grid{grid-template-columns:1fr 1fr;align-items:stretch;gap:32px;display:grid}.card{background:var(--card);box-shadow:var(--shadow-md);border-radius:8px;min-width:0;padding:24px}.card h2{color:var(--title);margin:0 0 16px;font-size:24px;font-weight:600;line-height:32px}.drop-area{border:2px dashed var(--border-strong);text-align:center;cursor:pointer;border-radius:8px;padding:32px;transition:border-color .2s,background-color .2s;position:relative}.drop-area:hover,.drop-area.over{border-color:var(--indigo-500);background:var(--indigo-50)}.drop-area.has-doc{cursor:default;padding:12px}.drop-area.has-doc:hover{border-color:var(--border-strong);background:0 0}.drop-area.has-doc.over{border-color:var(--indigo-500);background:var(--indigo-50)}.drop-icon{width:48px;height:48px;color:var(--hint);margin:0 auto;display:block}.drop-text{color:var(--muted);margin:8px 0 0;font-size:14px}.drop-hint{color:var(--faint);margin:0;font-size:12px}.preview-head{text-align:left;align-items:baseline;gap:10px;min-width:0;padding:0 44px 10px 4px;display:flex}.file-name{color:var(--title);white-space:nowrap;text-overflow:ellipsis;font-size:14px;font-weight:600;overflow:hidden}.file-meta{color:var(--faint);white-space:nowrap;font-size:12px}.pages{flex-direction:column;gap:14px;max-height:560px;padding:2px;display:flex;overflow:auto}.page{position:relative}.sheet{outline:1px solid var(--border);background:#fff;border-radius:6px;width:100%;position:relative;overflow:hidden;box-shadow:0 1px 2px #00000014}.sheet canvas{width:100%;height:100%;display:block}.overlays{position:absolute;inset:0}.overlay{border:2px solid rgb(var(--overlay-color-rgb));border-radius:2px;transition:background-color .2s;position:absolute}.overlay:hover{background-color:rgb(var(--overlay-color-rgb) / .35)}.page-label{color:var(--faint);justify-content:space-between;padding:4px 2px 0;font-size:12px;display:flex}.badge:empty{display:none}.badge{font-weight:600}.page[data-state=ocr-queued] .badge{color:#d97706}.page[data-state=ocr-done] .badge,.page[data-state=ocr] .badge{color:#db2777}.page[data-state=text] .badge{color:var(--green)}.remove-btn{z-index:10;background:var(--red);color:#fff;border:0;border-radius:999px;place-items:center;padding:8px;transition:background .2s;display:grid;position:absolute;top:8px;right:8px}.remove-btn:hover{background:var(--red-hover)}.remove-btn svg{width:20px;height:20px}.controls{align-items:center;gap:8px;margin-top:16px;display:flex}.options{border:1px solid var(--border-strong);border-radius:6px;flex-wrap:wrap;flex:1;gap:6px 16px;padding:8px 12px;font-size:14px;display:flex;box-shadow:0 1px 2px #0000000d}.opt{cursor:pointer;color:var(--text);white-space:nowrap;align-items:center;gap:6px;display:inline-flex}.opt input{accent-color:var(--indigo);width:15px;height:15px;margin:0}.btn-primary{background:var(--indigo);color:#fff;border:0;border-radius:6px;padding:8px 16px;font-size:15px;font-weight:500;transition:background .15s}.btn-primary:hover:not(:disabled){background:var(--indigo-hover)}.btn-primary:disabled{cursor:not-allowed;background:#9ca3af}.btn-secondary{background:var(--card);color:var(--text);border:1px solid var(--border-strong);border-radius:6px;padding:6px 12px;font-size:13px;font-weight:500}.btn-secondary:hover:not(:disabled){border-color:var(--indigo-500);color:var(--indigo)}.btn-secondary.strong{background:var(--indigo);border-color:var(--indigo);color:#fff}.btn-secondary.strong:hover:not(:disabled){background:var(--indigo-hover);color:#fff}.btn-secondary:disabled{opacity:.5;cursor:not-allowed}.examples-title{color:var(--title);margin:24px 0 12px;font-size:18px;font-weight:600}.examples{gap:16px;padding-bottom:6px;display:flex;overflow-x:auto}.example-image{border:2px solid var(--border);cursor:pointer;background:#fff;border-radius:6px;flex:none;width:auto;height:144px;transition:border-color .2s}.example-image:hover{border-color:var(--indigo-500)}.output-card{flex-direction:column;display:flex}.output-head{justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;display:flex}.output-head h2{margin:0}.processing{color:var(--faint);align-items:center;gap:8px;display:flex}.processing p{margin:0;font-size:14px}.view-toggle{align-items:center;gap:8px;font-size:14px;font-weight:500;display:flex}.switch{width:40px;height:24px;display:inline-block;position:relative}.switch input{opacity:0;width:0;height:0}.slider{cursor:pointer;background:#d1d5db;border-radius:999px;transition:all .2s;position:absolute;inset:0}.slider:before{content:"";background:#fff;border-radius:50%;width:16px;height:16px;transition:all .2s;position:absolute;top:4px;left:4px}.switch input:checked+.slider{background:var(--indigo)}.switch input:checked+.slider:before{transform:translate(16px)}.output-container{border:1px solid var(--border);background:var(--panel);border-radius:8px;flex:1;min-height:520px;max-height:760px;display:flex;overflow:hidden}.welcome{text-align:center;color:var(--faint);flex:1;justify-content:center;align-items:center;display:flex}.raw-view,.rendered-view{flex:1;overflow:auto}.raw-view pre{white-space:pre-wrap;word-break:break-word;font:13px/1.55 var(--mono);margin:0;padding:16px}.rendered-view{background:var(--card)}.output-foot{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-top:14px;display:flex}.stats{color:var(--faint);font-size:13px}.stats b{color:var(--text);font-weight:600}.out-actions{gap:8px;display:flex}.md{color:var(--text);padding:20px 24px 40px;font-size:15px;line-height:1.65}.md>:first-child{margin-top:0}.md h1,.md h2,.md h3,.md h4{color:var(--title);margin:1.3em 0 .5em;line-height:1.3}.md h1{font-size:1.6em}.md h2{font-size:1.3em}.md h3{font-size:1.1em}.md table{border-collapse:collapse;margin:1em 0;font-size:14px}.md th,.md td{border:1px solid var(--border-strong);text-align:left;vertical-align:top;padding:6px 10px}.md th{background:var(--panel);font-weight:600}.md code{font-family:var(--mono);background:var(--panel);border-radius:4px;padding:.1em .35em;font-size:.88em}.md pre{background:var(--panel);border-radius:6px;padding:12px;overflow:auto}.md img{max-width:100%}.md hr{border:0;border-top:1px solid var(--border)}.footer{text-align:center;color:var(--faint);margin-top:32px;font-size:13px}.link-btn{color:var(--indigo);background:0 0;border:0;padding:0;font-size:13px;text-decoration:underline}.toast{color:#fff;opacity:0;pointer-events:none;z-index:60;background:#111827;border-radius:8px;padding:8px 16px;font-size:14px;transition:all .2s;position:fixed;bottom:24px;left:50%;transform:translate(-50%,16px)}.toast.show{opacity:1;transform:translate(-50%)}@media (max-width:1023px){.grid{grid-template-columns:1fr}.container{padding:16px}.output-container{min-height:360px}}
