@font-face{font-family:"DejaVu Sans";src:url("assets/DejaVuSans.ttf") format("truetype");font-display:block}
@font-face{font-family:"DejaVu Serif";src:url("assets/DejaVuSerif.ttf") format("truetype");font-display:block}
@font-face{font-family:"DejaVu Sans Mono";src:url("assets/DejaVuSansMono.ttf") format("truetype");font-display:block}
@font-face{font-family:"Noto Sans JP";src:url("assets/NotoSansJP-japanese-400.woff2") format("woff2");font-weight:400;font-style:normal;font-display:block;unicode-range:U+3000-30FF,U+31F0-31FF,U+3400-4DBF,U+4E00-9FFF,U+F900-FAFF,U+FF00-FFEF}
@font-face{font-family:"Noto Sans JP";src:url("assets/NotoSansJP-japanese-700.woff2") format("woff2");font-weight:700;font-style:normal;font-display:block;unicode-range:U+3000-30FF,U+31F0-31FF,U+3400-4DBF,U+4E00-9FFF,U+F900-FAFF,U+FF00-FFEF}
@font-face{font-family:"Noto Sans JP";src:url("assets/NotoSansJP-latin-ext-400.woff2") format("woff2");font-weight:400;font-style:normal;font-display:block;unicode-range:U+0100-024F,U+1E00-1EFF,U+20A0-20AB}
@font-face{font-family:"Noto Sans JP";src:url("assets/NotoSansJP-latin-ext-700.woff2") format("woff2");font-weight:700;font-style:normal;font-display:block;unicode-range:U+0100-024F,U+1E00-1EFF,U+20A0-20AB}
:root{font-family:"DejaVu Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#202124;background:#e9ebef;color-scheme:light;--line:#d9dce3;--muted:#737985;--blue:#0a84ff;--panel:#f8f8fa;--glass:#ffffffdc;--shadow:0 18px 50px #18223320}
*{box-sizing:border-box}html,body{height:100%;margin:0;overflow:hidden}button,input,textarea,select{font:inherit}button{color:inherit;border:1px solid #d4d7de;background:linear-gradient(#fff,#f3f4f6);border-radius:8px;padding:7px 11px;cursor:pointer;box-shadow:0 1px 1px #0000000d}button:hover{background:#fff;border-color:#bfc3cb}button:active{transform:translateY(1px)}button:disabled{opacity:.4;cursor:default}.svg-defs{position:absolute;width:0;height:0}.titlebar{height:54px;display:flex;align-items:center;gap:12px;padding:6px 12px;background:#f7f7f8ef;border-bottom:1px solid #d0d3d9;box-shadow:0 1px 10px #1720330b;backdrop-filter:blur(18px)}.traffic{display:flex;gap:8px}.traffic i{width:12px;height:12px;border-radius:50%;background:#ff5f57;border:1px solid #d84b44}.traffic i:nth-child(2){background:#ffbd2e;border-color:#d5a224}.traffic i:nth-child(3){background:#28c840;border-color:#20a934}.brand{display:flex;align-items:center;gap:7px;font-size:15px;font-weight:700;white-space:nowrap}.brand em{font-style:normal;font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:#218739;background:#e4f8e9;padding:3px 6px;border-radius:999px}.app-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;overflow:hidden;box-shadow:0 4px 11px #20283b2d}.app-icon img{display:block;width:100%;height:100%}.title-actions,.export-actions{display:flex;align-items:center;gap:4px}.export-actions{margin-left:auto}.separator{height:24px;width:1px;background:#d4d6dc;margin:0 3px}.icon-label,.icon-only{display:inline-flex;align-items:center;gap:6px}.icon-label svg,.icon-only svg,.sidebar svg,.tool-dock svg,.search-box svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.titlebar button{min-height:32px;padding:5px 9px;border-radius:7px;font-size:13px}.titlebar .icon-label svg,.titlebar .icon-only svg{width:16px;height:16px}.icon-only{padding:8px}.titlebar .icon-only{width:32px;padding:6px}.icon-label.accent,.large-open,.modal-actions .accent{color:white;background:linear-gradient(180deg,#2895ff,#087bf1);border-color:#0875df;box-shadow:0 3px 9px #0a84ff30}.icon-label.dark{color:white;background:linear-gradient(#3e4148,#292c31);border-color:#26292e}.app-shell{display:grid;grid-template-columns:218px minmax(620px,1fr) 275px;height:calc(100% - 54px)}.sidebar{background:var(--panel);overflow:auto}.pages-pane{border-right:1px solid var(--line)}.inspector{border-left:1px solid var(--line)}.sidebar-heading{height:52px;display:flex;align-items:center;justify-content:space-between;padding:10px 13px;border-bottom:1px solid var(--line)}.sidebar-heading>div{display:flex;align-items:center;gap:8px}.sidebar-heading span{font-size:11px;color:#69707c;background:#e9ebef;padding:2px 7px;border-radius:99px}.circle-button{display:grid;place-items:center;border-radius:50%;padding:6px}.circle-button svg{width:16px;height:16px}.page-actions{display:flex;gap:6px;padding:8px 12px}.page-actions button{flex:1;display:grid;place-items:center}.thumbnails{padding:5px 13px 20px}.thumb{position:relative;display:grid;grid-template-columns:24px 1fr;gap:8px;padding:8px 7px;border:2px solid transparent;border-radius:12px;margin:4px 0 10px;cursor:pointer;transition:.15s}.thumb:hover{background:#eceef2}.thumb.active{background:#e5f1ff;border-color:#70aff3}.thumb.dragging{opacity:.35}.thumb canvas{background:white;max-width:100%;height:auto;border-radius:3px;box-shadow:0 4px 12px #27324429}.thumb-number{text-align:center;font-size:11px;color:#7a808b;padding-top:3px}.workspace{min-width:0;display:grid;grid-template-rows:64px 1fr 34px;background:radial-gradient(circle at 50% 20%,#f5f6f8,#e3e5e9 70%)}.tool-dock{display:flex;align-items:center;justify-content:center;gap:3px;padding:6px 12px;background:#ffffffb8;border-bottom:1px solid #d1d4da;backdrop-filter:blur(16px);overflow-x:auto}.tool-dock button{min-width:56px;padding:6px 8px;border-color:transparent;background:transparent;box-shadow:none;display:flex;flex-direction:column;align-items:center;gap:2px;color:#5f6570}.tool-dock button:hover{background:#eef0f4}.tool-dock button.active{color:#076ed3;background:#e2f0ff;border-color:#abd1f7}.tool-dock button span{font-size:10px}.tool-dock svg{width:21px;height:21px}.viewer-wrap{position:relative;overflow:auto;display:grid;place-items:start center;padding:32px}.empty-state{margin:auto;text-align:center;color:var(--muted);padding:35px}.empty-state h1{margin:25px 0 7px;color:#252930;font-size:26px}.empty-state p{line-height:1.6}.empty-state small{display:block;margin-top:16px}.empty-document{position:relative;width:125px;height:158px;margin:auto;border-radius:12px;background:white;box-shadow:0 22px 50px #1c2c4524;border:1px solid #dfe2e7;overflow:hidden}.empty-document:after{content:"";position:absolute;right:-1px;top:-1px;border-style:solid;border-width:0 0 38px 38px;border-color:transparent transparent #e9ebef transparent}.empty-document span{position:absolute;left:20px;top:25px;color:#e13a47;font-size:22px;font-weight:800}.empty-document i{display:block;height:5px;background:#daddE3;border-radius:9px;margin:13px 20px}.empty-document i:first-of-type{margin-top:75px;width:75px}.empty-document i:nth-of-type(2){width:86px}.empty-document i:nth-of-type(3){width:58px}.large-open{display:inline-flex;align-items:center;gap:9px;padding:11px 17px;border-radius:10px;font-weight:650}.large-open svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8}.page-stage{position:relative;background:white;line-height:0;box-shadow:0 25px 75px #1c293c38,0 2px 8px #1720331c;border-radius:3px;overflow:hidden}.page-stage canvas{display:block}.page-stage #annotationCanvas,.text-layer,.widget-layer{position:absolute;inset:0}.text-layer,.widget-layer{pointer-events:none}.editable-text{position:absolute;pointer-events:auto;white-space:pre-wrap;overflow:visible;line-height:1.12;outline:1px solid transparent;border-radius:2px;color:transparent;cursor:text;min-width:4px;min-height:8px;padding:0;margin:0;transform-origin:top left}.text-layer.disabled .editable-text{pointer-events:none}.editable-text:hover{outline-color:#0a84ff88;background:#e8f4ff30}.editable-text:focus{outline:2px solid #0a84ff;background:var(--text-bg,#fff);color:var(--text-color,#111);box-shadow:0 0 0 3px #0a84ff22;z-index:5}.editable-text.changed:not(:focus){outline:1px dashed #0a84ff66}.widget-layer input{position:absolute;pointer-events:auto;border:1px solid #5aa7ef;background:#ffffffeb;color:#17191c;border-radius:3px;padding:2px;line-height:1.2}.statusbar{display:flex;align-items:center;padding:4px 12px;background:#fafafbea;border-top:1px solid #d1d4da;color:#707680;font-size:12px}.statusbar .spacer{flex:1}.statusbar button{padding:0 8px;margin:0 3px;border:0;background:transparent;box-shadow:none}.offline-dot{width:7px;height:7px;border-radius:50%;background:#30b94e;margin-right:7px;box-shadow:0 0 0 3px #30b94e1e}.inspector-section{padding:15px;border-bottom:1px solid var(--line)}.inspector-section h3{margin:0 0 11px;font-size:13px}.hint{color:var(--muted);font-size:11px;line-height:1.45}.inspector label{display:flex;justify-content:space-between;align-items:center;margin:8px 0;font-size:12px}.inspector select,.inspector input[type=number],.search-box input{border:1px solid #d2d5db;background:white;color:#222;border-radius:7px;padding:6px;min-width:0}.inspector select{width:145px}.style-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.style-grid label{display:grid;gap:4px;justify-content:stretch}.style-grid input{width:100%}.format-buttons,.two-buttons{display:flex;gap:6px}.format-buttons button,.two-buttons button{flex:1}.format-buttons svg,.two-buttons svg,.wide svg{width:16px;height:16px;vertical-align:-3px;margin-right:4px;fill:none;stroke:currentColor;stroke-width:1.8}.format-buttons button.active{background:#dceeff;border-color:#84bdf5;color:#076ed3}.wide{width:100%;margin-top:7px}.subtle{background:#f3f4f6}.ocr-badge{margin-top:10px;padding:7px 9px;background:#ecf8ef;color:#25823b;border-radius:7px;font-size:11px}.search-box{display:grid;grid-template-columns:18px 1fr auto;align-items:center;gap:6px;background:white;border:1px solid #d2d5db;border-radius:8px;padding-left:7px}.search-box input{border:0;padding-left:0;width:100%;outline:0}.search-box button{border:0;border-left:1px solid #e0e2e6;border-radius:0 7px 7px 0;box-shadow:none}.results{font-size:11px;color:#666d78;margin-top:7px;max-height:140px;overflow:auto}.result{display:block;width:100%;text-align:left;margin:4px 0}.hidden{display:none!important}.modal,.progress{position:fixed;inset:0;background:#1b243052;backdrop-filter:blur(10px);display:grid;place-items:center;z-index:30}.modal-card,.progress-card{width:min(520px,90vw);background:#fbfbfc;border:1px solid #ffffff;border-radius:16px;padding:21px;box-shadow:0 28px 100px #11182755}.modal-card h2{margin-top:0}.modal-card textarea{width:100%;height:150px;resize:vertical;border:1px solid #cfd3da;border-radius:9px;padding:9px}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}.progress-card{width:370px;text-align:center}.progress-card progress{display:block;width:100%;margin:17px 0}.spinner{width:34px;height:34px;margin:0 auto 13px;border:3px solid #d9e9f8;border-top-color:#0a84ff;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.signature-canvas{background:white;width:100%;height:180px;touch-action:none;border:1px solid #d5d8df;border-radius:9px}
@media(max-width:1200px){.app-shell{grid-template-columns:190px minmax(560px,1fr) 245px}.title-actions .icon-label span,.export-actions .icon-label span{display:none}.tool-dock button{min-width:44px}.tool-dock button span{display:none}}

/* 1.2: scrollovatelný prohlížeč, přesný jednořádkový text a nástroj Ruka. */
.app-tooltip{position:fixed;z-index:100;left:0;top:0;max-width:min(360px,calc(100vw - 24px));padding:8px 11px;border:1px solid #273244;background:#172033f2;color:#fff;border-radius:8px;box-shadow:0 10px 32px #11182745;font-size:12px;line-height:1.4;text-align:left;white-space:normal;pointer-events:none;opacity:0;visibility:hidden;transform:translateY(-2px);transition:opacity .12s ease,transform .12s ease,visibility 0s linear .12s}.app-tooltip.visible{opacity:1;visibility:visible;transform:translateY(0);transition-delay:0s}
.app-shell,.workspace{min-height:0}
.workspace{overflow:hidden}
.viewer-wrap{min-width:0;min-height:0;display:block;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:32px}
.page-stage{margin:0 auto}
.empty-state{max-width:520px}
.editable-text{white-space:pre;overflow:visible;width:max-content}
.editable-text.selected{outline:2px solid #0a84ff88}
.editable-text.hand{cursor:grab;user-select:none}
.editable-text.hand.moving{cursor:grabbing;color:var(--text-color,#111);background:var(--text-bg,#fff);outline:2px solid #0a84ff;z-index:6}
.editable-text.moving{cursor:grabbing;color:var(--text-color,#111);background:var(--text-bg,transparent);outline:2px solid #0a84ff;z-index:6}
.viewer-wrap.hand-active,.viewer-wrap.hand-active canvas{cursor:grab}
.viewer-wrap.hand-active.panning,.viewer-wrap.hand-active.panning canvas{cursor:grabbing;user-select:none}
.statusbar button{font-size:17px;min-width:28px;border-radius:6px}
.window-emblem{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;background:#e8eef7;color:#37516f;border:1px solid #ced9e7;box-shadow:inset 0 1px #ffffff;flex:0 0 auto}
.window-emblem svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.format-picker-label{display:grid;gap:8px;font-size:13px;font-weight:650;color:#343941}
.format-picker{width:100%;margin-top:3px;padding:10px 12px;border:1px solid #cfd4dc;border-radius:9px;background:white;color:#20242a;outline:none}
.format-picker:focus{border-color:#0a84ff;box-shadow:0 0 0 3px #0a84ff22}
.translation-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.translation-grid label,.translation-scope{display:grid;gap:6px;font-size:12px;font-weight:650}.translation-grid select,.translation-scope select{width:100%;padding:9px;border:1px solid #cfd4dc;border-radius:8px;background:#fff}.translation-note{padding:10px 12px;border-radius:9px;background:#eef5ff;color:#35506c;font-size:11px;line-height:1.5}.translation-warning{color:#8a5a13;background:#fff7e7}
.language-switch{display:flex;align-items:center;gap:5px;padding:3px 5px 3px 8px;border:1px solid #d4d7de;border-radius:7px;background:#fff;color:#4b5260;font-size:11px;white-space:nowrap}.language-switch select{height:25px;border:0;border-left:1px solid #e1e3e7;background:transparent;color:#20242a;font-weight:750;padding:0 3px 0 7px;outline:none;cursor:pointer}
@media(max-width:1320px){.language-switch span{display:none}.language-switch{padding-left:4px}}
.signature-color{display:flex;align-items:center;justify-content:space-between;margin:8px 0 10px;font-size:12px;font-weight:650}.signature-color input{width:52px;height:30px;padding:2px;border:1px solid #cfd4dc;border-radius:7px;background:white}

/* Subtle cool tint; PDF page and document contents stay white. */
.titlebar,.statusbar{background:#f5f7fa}.sidebar{background:#f7f9fc}.workspace{background:#edf1f6}.tool-dock{background:#f7f9fc}.viewer-wrap{background:#e9eef5}.author-credit{color:#596777;white-space:nowrap;margin-right:14px}.statusbar #status{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tool-dock{overflow-x:auto}.translation-scope{margin-top:10px}
.hover-translate-controls{display:flex;align-items:center;gap:3px;padding:2px 4px;border:1px solid #d5dbe4;border-radius:8px;background:#fff9}.hover-translate-controls.active{border-color:#79b7ef;background:#eaf5ff}.hover-translate-controls select{width:46px;padding:4px 2px;border:0;background:transparent;font-size:11px}.hover-translate-controls>span{font-size:11px;color:#718096}.hover-translation{position:fixed;z-index:60;max-width:320px;padding:8px 11px;border-radius:8px;background:#172033;color:#fff;box-shadow:0 8px 28px #17203355;font-size:13px;line-height:1.35;pointer-events:none}.hover-translation strong{display:block;color:#9fd0ff;font-size:11px;margin-bottom:2px}.hover-translation.loading{color:#d8e0ea}
.text-layer.hover-translation-active .editable-text{pointer-events:auto;cursor:help}
