:root{--bg: #f4f5f7;--surface: #ffffff;--text: #16181d;--muted: #5d6573;--line: #dfe3e8;--accent: #2457d6;--accent-ink: #ffffff;--accent-soft: #e8eefc;--page-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 14px rgba(16, 24, 40, .08);--radius: 10px;color-scheme:light}@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--bg: #111317;--surface: #1a1d23;--text: #e8eaee;--muted: #9aa3b2;--line: #2c313a;--accent: #6d8fff;--accent-ink: #0d1020;--accent-soft: #1f2740;--page-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 18px rgba(0, 0, 0, .35);color-scheme:dark}}:root[data-theme=dark]{--bg: #111317;--surface: #1a1d23;--text: #e8eaee;--muted: #9aa3b2;--line: #2c313a;--accent: #6d8fff;--accent-ink: #0d1020;--accent-soft: #1f2740;color-scheme:dark}*{box-sizing:border-box}html,body{height:100%}body{margin:0;background:var(--bg);color:var(--text);font:15px/1.45 system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;display:flex;flex-direction:column}svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}[hidden]{display:none!important}.bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 20px;background:var(--surface);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:2}.brand{display:flex;align-items:center;gap:8px;font-weight:600;letter-spacing:-.01em}.brand svg{width:22px;height:22px;color:var(--accent)}.actions{display:flex;align-items:center;gap:10px;min-width:0}.file{color:var(--muted);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:34vw}button,.primary,.btn{font:inherit;font-size:14px;display:inline-flex;align-items:center;gap:7px;border-radius:8px;padding:8px 14px;cursor:pointer;text-decoration:none;border:1px solid transparent}.ghost{background:transparent;color:var(--text);border-color:var(--line)}.ghost:hover{background:var(--bg)}.primary,.btn{background:var(--accent);color:var(--accent-ink);font-weight:600}.primary:hover,.zone:hover .btn{filter:brightness(1.06)}main{flex:1;display:flex;flex-direction:column;min-height:0}.drop{flex:1;display:grid;place-items:center;padding:24px 16px;gap:12px;align-content:center}.zone{width:min(560px,100%);aspect-ratio:16 / 10;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;background:var(--surface);border:1.5px dashed var(--line);border-radius:16px;cursor:pointer;transition:border-color .15s,background .15s}.zone .big{width:46px;height:46px;color:var(--accent);stroke-width:1.3}.zone strong{font-size:18px;font-weight:600}.zone.over{border-color:var(--accent);background:var(--accent-soft)}.error{color:#c0392b;margin:0}.work{flex:1;display:grid;place-content:center;gap:14px;padding:24px 16px;text-align:center}.progress{width:min(420px,80vw);height:6px;border-radius:6px;background:var(--line);overflow:hidden}.progress div{height:100%;width:0;background:var(--accent);transition:width .2s}.work p{margin:0;color:var(--muted);font-variant-numeric:tabular-nums}.result{flex:1;display:flex;flex-direction:column;min-height:0}.tabs{display:none}.panes{flex:1;display:grid;grid-template-columns:1fr 1fr;min-height:0}.pane{min-height:0;overflow:auto;padding:0 20px 40px}.pane+.pane{border-left:1px solid var(--line)}.pane h2{position:sticky;top:0;z-index:1;margin:0 -20px 16px;padding:10px 20px;font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);background:var(--bg)}.pages{display:flex;flex-direction:column;align-items:center;gap:18px}.pages img{width:100%;max-width:820px;height:auto;background:#fff;box-shadow:var(--page-shadow);display:block}.word .docx-wrapper{background:transparent!important;padding:0!important;display:flex;flex-direction:column;align-items:center;gap:18px}.word .docx-wrapper>section.docx{box-shadow:var(--page-shadow)!important;margin:0!important}.word .docx-column-break{display:block;break-after:column;height:0}.word .docx-wrapper>section.docx{position:relative}@media(max-width:820px){.bar{padding:10px 16px;flex-wrap:wrap}.file,.actions .ghost span{display:none}.tabs{display:flex;gap:4px;padding:10px 16px 0}.tabs button{flex:1;justify-content:center;background:var(--surface);border:1px solid var(--line);color:var(--muted)}.tabs button.on{color:var(--text);border-color:var(--accent)}.panes{grid-template-columns:1fr}.pane{padding:0 16px 32px}.pane h2{display:none}.pane+.pane{border-left:0}.panes[data-show=pdf] #wordPane,.panes[data-show=word] #pdfPane{display:none}.pages{padding-top:12px}}
