:root{font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color-scheme:light;--bg:#f7faff;--paper:#fff;--text:#1d304c;--muted:#697c96;--stroke:#dfE7f3;--soft:#f3f7fd;--blue:#357df1;--blue-dark:#1f64d1;--light:#eaf2ff;--purple:#8060d6;--shadow:0 20px 72px rgba(40,85,140,.08)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text)}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.46;cursor:not-allowed}.dropzone:focus-visible,a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #8cb5ff;outline-offset:3px}a{color:var(--blue);text-decoration:none}.hidden{display:none!important}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip{position:fixed;left:14px;top:-60px;background:#fff;padding:10px;z-index:50}.skip:focus{top:12px}.site{max-width:1510px;margin:auto;padding:0 34px}.topbar{display:flex;gap:32px;align-items:center;height:78px;border-bottom:1px solid var(--stroke)}.brand{display:inline-flex;align-items:center;font-size:21px;font-weight:850;letter-spacing:-1px;color:var(--text)}.brand-mark{height:34px;width:34px;display:grid;place-items:center;font-size:23px;background:var(--blue);color:#fff;border-radius:10px;margin-right:9px}.blue,.hero h1 span{color:var(--blue)}.topbar nav{display:flex;gap:26px;font-size:12px;font-weight:680}.topbar nav a{color:var(--muted)}.top-status{margin-left:auto;font-size:11px;color:var(--muted);white-space:nowrap}.status-dot{display:inline-block;height:7px;width:7px;border-radius:50%;background:#35bf91;margin-right:7px}.hero{padding:36px 0 28px;display:flex;align-items:flex-end;gap:24px;justify-content:space-between}.eyebrow{font-size:10px;color:var(--blue);letter-spacing:2px;font-weight:820;margin:0 0 13px}.hero h1{font-size:clamp(31px,4.4vw,52px);line-height:1.09;font-weight:830;letter-spacing:-2px;margin:0 0 14px}.hero p:not(.eyebrow){color:var(--muted);font-size:13px;line-height:1.7;max-width:700px;margin:0}.hero-pills{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;min-width:260px}.hero-pills span{font-size:10px;color:var(--muted);background:var(--paper);padding:9px 12px;border:1px solid var(--stroke);border-radius:24px;white-space:nowrap}.workspace{background:var(--paper);border:1px solid #ccd9ed;border-radius:18px;box-shadow:var(--shadow);overflow:hidden}.workspace-toolbar{min-height:65px;padding:12px 16px;display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid var(--stroke)}.workspace-title{display:flex;gap:11px;align-items:center}.workspace-icon{height:38px;width:38px;border-radius:11px;background:var(--light);display:grid;place-items:center;color:var(--blue);font-size:24px}.workspace-title strong{display:block;font-size:13px}.workspace-title small{display:block;font-size:10px;color:var(--muted);margin-top:4px;max-width:350px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.toolbar-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.btn{background:var(--paper);color:var(--text);border:1px solid var(--stroke);padding:10px 13px;border-radius:9px;font-size:11.5px;font-weight:740;min-height:36px;white-space:nowrap}.btn:not(:disabled):hover{background:var(--light)}.btn.primary{background:var(--blue);border-color:var(--blue);color:#fff}.btn.primary:not(:disabled):hover{background:var(--blue-dark)}.btn.secondary{background:var(--soft)}.btn.wide{width:100%;margin-top:13px}.btn.small{padding:6px 9px;min-height:29px;font-size:10px}.layout{display:grid;grid-template-columns:300px minmax(0,1fr);min-height:780px}.sidebar{border-right:1px solid var(--stroke);background:var(--soft);padding:17px;min-width:0}.section-title{margin:7px 0 12px;font-size:10px;letter-spacing:1.2px;text-transform:uppercase;color:var(--muted);font-weight:820;display:flex;align-items:center;gap:10px}.section-title:not(:first-child){margin-top:26px}.section-title span{background:var(--light);color:var(--blue);padding:5px;border-radius:6px;font-size:10px}.dropzone{border:1.6px dashed #aac7eb;padding:22px 13px;text-align:center;border-radius:12px;display:grid;justify-items:center;background:var(--paper);transition:.16s;cursor:pointer}.dropzone.drag{background:var(--light);border-color:var(--blue)}.dropzone .file-icon{width:42px;height:46px;border:2px solid #b4cef4;border-radius:7px;color:var(--blue);background:var(--light);font-size:11px;font-weight:900;display:grid;place-items:center;margin-bottom:10px}.dropzone strong{font-size:12px}.dropzone p{font-size:11px;color:var(--muted);margin:6px 0 12px}.dropzone small{font-size:9px;color:var(--muted);margin-top:12px}.file-meta{margin-top:10px;color:var(--muted);font-size:11px;overflow-wrap:anywhere}.field-grid{display:grid;gap:8px}.field-grid label{font-size:11px;font-weight:730}.field-grid select{width:100%;background:var(--paper);border:1px solid var(--stroke);border-radius:8px;color:var(--text);padding:9px 10px;font-size:11px;min-height:38px}.hint{margin:11px 0 0;padding:10px;background:var(--paper);border:1px solid var(--stroke);border-radius:9px;line-height:1.55;color:var(--muted);font-size:10px}.tiny{font-size:10px;color:var(--muted);line-height:1.65}.field-grid .checkrow{display:flex;align-items:center;gap:8px;font-weight:600;margin:7px 0}.checkrow input{accent-color:var(--blue)}.export-grid{display:flex;gap:7px;margin-top:13px}.export-grid button{flex:1;min-width:0;padding:9px 6px}.main-pane{min-width:0;display:flex;flex-direction:column}.stats{display:grid;grid-template-columns:repeat(4,1fr);background:var(--paper);border-bottom:1px solid var(--stroke)}.stats>div{display:grid;gap:8px;padding:16px 19px;border-right:1px solid var(--stroke)}.stats>div:last-child{border-right:0}.stats small{font-size:9px;font-weight:830;color:var(--muted);letter-spacing:1.3px}.stats strong{font-size:16px;letter-spacing:-.5px;overflow-wrap:anywhere}.preview-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 16px;border-bottom:1px solid var(--stroke)}.section-name{font-size:12px;font-weight:780}.chip{font-size:9px;background:var(--light);color:var(--blue);padding:5px 8px;border-radius:15px;margin-left:5px}.page-controls{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.page-controls>span{font-size:10px;color:var(--muted);min-width:70px;text-align:center}.icon-button{border:1px solid var(--stroke);background:var(--paper);color:var(--text);font-size:21px;border-radius:8px;height:29px;min-width:31px;line-height:22px}.preview-stage{height:410px;min-height:280px;background:repeating-linear-gradient(45deg,#f3f6fc,#f3f6fc 12px,#edf2fa 12px,#edf2fa 24px);overflow:auto;display:flex;justify-content:center;align-items:flex-start;padding:18px}.preview-empty{text-align:center;margin:auto;max-width:430px;padding:20px}.preview-empty .empty-icon{font-size:50px;color:var(--blue);opacity:.66}.preview-empty h2{font-size:19px;letter-spacing:-.7px}.preview-empty p{font-size:12px;color:var(--muted);line-height:1.7}#pageCanvas{height:auto;width:auto;max-width:100%;box-shadow:0 8px 24px #223d6733;background:#fff}.preview-foot{font-size:10px;padding:10px 16px;color:var(--muted);border-bottom:1px solid var(--stroke)}.review-head{padding:16px 17px 11px;display:flex;align-items:center;justify-content:space-between;gap:12px}.review-head h2{font-size:15px;margin:0 0 4px}.review-head p{font-size:11px;color:var(--muted);margin:0}.review-filters select{font-size:11px;border:1px solid var(--stroke);padding:7px;background:var(--paper);color:var(--text);border-radius:8px}.segments{padding:4px 16px 14px;min-height:150px;max-height:315px;overflow:auto}.segments-empty{padding:38px 12px;text-align:center;color:var(--muted);font-size:12px}.segment{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px;border:1px solid var(--stroke);border-radius:10px;padding:12px;margin-bottom:9px;background:var(--paper)}.segment-head{grid-column:1/-1;display:flex;justify-content:space-between;font-size:10px;color:var(--muted);gap:10px}.segment label{font-size:10px;font-weight:750;display:block;margin-bottom:6px}.segment .source{font-size:11px;line-height:1.5;max-height:110px;overflow:auto;padding:9px;background:var(--soft);border-radius:7px;white-space:pre-wrap;overflow-wrap:anywhere}.segment textarea{resize:vertical;border-radius:7px;border:1px solid var(--stroke);background:var(--paper);color:var(--text);padding:9px;width:100%;min-height:73px;font-size:11px;line-height:1.5}.segment .flag{color:#b27336}.segment.done .flag{color:#2a9c7c}.review-foot{padding:8px 16px 14px;font-size:10px;color:var(--muted)}.statusbar{border-top:1px solid var(--stroke);padding:10px 16px;font-size:10px;color:var(--muted);background:var(--soft)}.learn{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:22px 0}.learn article{border:1px solid var(--stroke);background:var(--paper);border-radius:14px;padding:22px}.learn h2{font-size:15px;margin:0 0 9px}.faq p,.learn p{font-size:11.5px;line-height:1.7;color:var(--muted);margin:0}.faq{margin:25px 0}.faq h2{font-size:18px}.faq details{padding:14px 4px;border-bottom:1px solid var(--stroke);font-size:12px}.faq summary{font-weight:700;cursor:pointer}.faq details p{margin-top:10px}footer{border-top:1px solid var(--stroke);padding:25px 0 34px;display:flex;justify-content:space-between;font-size:11px;color:var(--muted)}.processing{position:fixed;inset:0;background:#0c223a9e;backdrop-filter:blur(7px);z-index:20;display:grid;place-items:center;padding:18px}.processing-card{background:var(--paper);color:var(--text);border-radius:19px;padding:34px;min-width:min(95vw,380px);max-width:460px;text-align:center;box-shadow:0 35px 100px #142e4f55}.processing-card h2{font-size:24px;margin:10px 0}.processing-card p:not(.eyebrow){font-size:12px;line-height:1.6;color:var(--muted)}.spinner{height:45px;width:45px;border:4px solid var(--light);border-top-color:var(--blue);border-radius:50%;animation:spin .8s linear infinite;margin:0 auto 20px}.track{height:7px;border-radius:9px;background:var(--light);overflow:hidden;margin:16px 0}.track span{display:block;height:100%;width:7%;background:var(--blue);transition:width .25s}.toast{position:fixed;right:19px;bottom:20px;background:#18314c;color:#fff;padding:12px 15px;max-width:390px;box-shadow:0 8px 40px #1e304f55;border-radius:9px;z-index:30;font-size:12px;display:none}.toast.show{display:block}html[data-theme=dark]{color-scheme:dark;--bg:#0d1726;--paper:#17263a;--text:#e9f1ff;--muted:#9badc5;--stroke:#31435f;--soft:#1b2d44;--blue:#82b2ff;--blue-dark:#5a94f4;--light:#263e5c}html[data-theme=dark] .preview-stage{background:repeating-linear-gradient(45deg,#233249,#233249 12px,#203046 12px,#203046 24px)}html[data-theme=dark] .processing{background:#061323ba}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:1100px){.site{padding:0 20px}.layout{grid-template-columns:265px minmax(0,1fr)}.hero-pills{display:none}.stats>div{padding:13px 10px}}@media(max-width:830px){.layout{grid-template-columns:1fr}.sidebar{border-right:0;border-bottom:1px solid var(--stroke);display:grid;grid-template-columns:1fr 1fr;column-gap:18px}.sidebar .export-grid,.sidebar .file-meta,.sidebar .hint,.sidebar .section-title,.sidebar .tiny,.sidebar .wide{grid-column:1/-1}.dropzone{grid-column:1/-1}.preview-stage{height:430px}.learn{grid-template-columns:1fr 1fr}}@media(max-width:580px){.site{padding:0 12px}.topbar{height:65px;gap:12px}.brand{font-size:18px}.brand-mark{height:30px;width:30px;font-size:20px}.topbar nav{margin-left:auto;font-size:10px;gap:10px}.top-status{display:none}.hero{padding:26px 0 23px}.hero h1{letter-spacing:-1.3px}.workspace-toolbar{align-items:flex-start;flex-wrap:wrap}.toolbar-actions{justify-content:flex-end;width:100%}.sidebar{display:block}.sidebar .section-title{margin-top:20px}.stats{grid-template-columns:1fr 1fr}.stats>div:nth-child(2){border-right:0}.stats>div:nth-child(-n+2){border-bottom:1px solid var(--stroke)}.preview-head{flex-wrap:wrap}.page-controls{width:100%;justify-content:flex-start}.preview-stage{height:370px;padding:10px}.segment{grid-template-columns:1fr}.segment-head{grid-column:auto}.segment .source{max-height:75px}.learn{grid-template-columns:1fr}.learn article{padding:17px}.review-head{align-items:flex-start}.review-head p{max-width:210px}}@media(prefers-reduced-motion:reduce){*,:after,:before{transition:none!important;animation:none!important}}:root{--pdf-accent:#d94d60;--pdf-accent-deep:#b93449;--pdf-light:#fff0f2}.chip,.dropzone .file-icon,.eyebrow,.hero h1 span,.section-title span,.workspace-icon{color:var(--pdf-accent)}.chip,.dropzone .file-icon,.section-title span,.workspace-icon{background:var(--pdf-light)}.dropzone .file-icon{border-color:#efbbc4}.dropzone.drag{border-color:var(--pdf-accent);background:var(--pdf-light)}.btn.primary{background:var(--pdf-accent);border-color:var(--pdf-accent)}.btn.primary:not(:disabled):hover{background:var(--pdf-accent-deep)}.track span{background:var(--pdf-accent)}.spinner{border-top-color:var(--pdf-accent)}html[data-theme=dark]{--pdf-accent:#ff8f9e;--pdf-accent-deep:#df6377;--pdf-light:#47303e}/* v1.1: search, backup and scoped-export controls */ .form-inline-label{display:block;margin-top:14px;margin-bottom:7px;font-size:11px;font-weight:730}#translateScope{width:100%;background:var(--paper);color:var(--text);border:1px solid var(--stroke);border-radius:8px;min-height:38px;padding:9px 10px;font-size:11px}.field-grid input[type=text]{width:100%;background:var(--paper);color:var(--text);border:1px solid var(--stroke);border-radius:8px;padding:9px 10px;min-height:38px;font-size:11px}.field-grid input[aria-invalid=true]{border-color:var(--pdf-accent);outline-color:var(--pdf-accent)}.field-grid .hint{display:block;margin:0;padding:0;background:0 0;border:0;font-weight:400}.review-filters{display:flex;gap:7px;align-items:center;flex-wrap:wrap;justify-content:flex-end;max-width:560px}.review-filters input[type=search]{min-width:130px;flex:1 1 145px;max-width:250px;border-radius:8px;border:1px solid var(--stroke);min-height:31px;background:var(--paper);color:var(--text);padding:7px;font-size:11px}.search-foot{font-size:10px;color:var(--muted);padding:0 17px 4px;margin:0}@media(max-width:830px){.sidebar #translateScope,.sidebar .form-inline-label{grid-column:1/-1}}@media(max-width:580px){.review-head{display:block}.review-filters{justify-content:flex-start;max-width:none;margin-top:12px}.review-filters input[type=search]{max-width:none}.review-head p{max-width:none}}.review-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:10px 16px;border-bottom:1px solid var(--stroke);background:var(--soft)}.review-actions .tiny{margin-left:auto;max-width:320px}.region-actions{grid-column:1/-1;display:flex;gap:6px;flex-wrap:wrap}.region-geometry{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;background:var(--soft);border-radius:9px;padding:9px}.region-geometry label{font-size:10px;font-weight:660;display:grid;gap:4px}.region-geometry input,.segment .source+input{min-width:0;width:100%;border:1px solid var(--stroke);border-radius:7px;padding:7px;background:var(--paper);color:var(--text);font-size:12px}.region-pick{color:var(--blue);background:0 0;border:0;text-decoration:underline;cursor:pointer;font-weight:700;text-align:left;font-size:11px;padding:1px}.btn:focus-visible,.icon-button:focus-visible,.region-pick:focus-visible,.segment input:focus-visible,.segment textarea:focus-visible{outline:3px solid var(--blue)!important;outline-offset:2px}.segment.selected{border:2px solid #e69b26;background:var(--light)}.btn.active{border-color:#e69b26;background:var(--light);color:var(--text)}#drawRegionBtn[aria-pressed=true]{border-color:#e69b26;background:var(--light)}#pageCanvas{touch-action:auto}#pageCanvas.draw-mode{cursor:crosshair;touch-action:none}.export-grid{flex-wrap:wrap}.export-grid button{flex:1 1 90px}@media(max-width:580px){.region-geometry{grid-template-columns:repeat(2,minmax(0,1fr))}.review-actions .tiny{margin-left:0}.preview-head .section-name{display:flex;flex-wrap:wrap;gap:4px}}.pk-studio-navigation:not([open])>nav{display:none!important}@media(max-width:580px){.topbar .pk-site-search{display:none!important}.topbar{max-width:100%;min-width:0}.topbar .pk-studio-navigation{position:relative;min-width:0;flex-shrink:0;margin-left:auto}.topbar .pk-studio-navigation[open]>nav{position:absolute;right:0;left:auto;top:100%;width:min(260px,85vw);max-height:65vh;overflow-y:auto;display:grid;z-index:30;padding:10px;background:var(--paper);border:1px solid var(--stroke);border-radius:10px;box-shadow:var(--shadow)}.topbar .pk-studio-navigation[open]>nav a{display:block;padding:6px 8px;white-space:normal}}@media(max-width:580px){.pk-studio-footer{display:flex;flex-wrap:wrap;gap:8px;max-width:100%;min-width:0}.pk-studio-footer small{min-width:0;white-space:normal;overflow-wrap:anywhere}}#pageZoom{border:1px solid var(--stroke);border-radius:7px;color:var(--text);background:var(--paper);padding:6px;max-width:86px;font-size:11px}.layout-preflight{border-bottom:1px solid var(--stroke);padding:8px 16px;font-size:11px;line-height:1.5;color:var(--muted);margin:0;background:var(--paper)}.layout-preflight.error{color:#a32535;background:#fff0f2}html[data-theme=dark] .layout-preflight.error{color:#ffbbc4;background:#4a2935}