:root{color:#182b49;font-synthesis:none;--ink:#182b49;--muted:#536781;--line:#d5deea;--blue:#225cce;--surface:#edf3fa;--focus:#1758c8;color-scheme:light;background:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{min-width:320px;margin:0}button,input,select,a{font:inherit}button,.button{min-height:38px;color:var(--ink);cursor:pointer;background:#fff;border:1px solid #c5d1e1;border-radius:6px;justify-content:center;align-items:center;gap:7px;padding:8px 13px;font-size:13px;font-weight:600;line-height:1.35;text-decoration:none;transition:background-color .16s,border-color .16s;display:inline-flex}button:hover,.button:hover{background:#eaf1fb;border-color:#a7bbd5}button:disabled{cursor:not-allowed;opacity:.48}.primary{color:#fff;background:var(--blue);border-color:var(--blue)}.primary:hover{background:#194cac;border-color:#194cac}.quiet{background:0 0;border-color:#0000}.icon-button{min-width:32px;min-height:32px;padding:7px}.icon-button svg{flex-shrink:0}:focus-visible{outline:3px solid var(--focus);outline-offset:3px}::selection{color:#102747;background:#bdd5ff}input,select{caret-color:var(--blue);accent-color:var(--blue)}*{scrollbar-color:#a3b4cc #edf3fa;scrollbar-width:thin}h1,h2,h3,p{margin:0}h1{letter-spacing:-.025em;font-size:23px;font-weight:700;line-height:1.3}h2{font-size:14px;font-weight:650}h3{white-space:nowrap;flex-shrink:0;font-size:13px;font-weight:650}svg{flex-shrink:0}small{font-weight:400}.workbench{max-width:1360px;margin:auto;padding:24px 28px 16px}.workbench-heading{justify-content:space-between;align-items:center;gap:28px;margin-bottom:22px;display:flex}.workbench-heading p{color:var(--muted);margin-top:5px;font-size:13px;line-height:1.55}.privacy-note{color:#426049;align-items:flex-start;gap:8px;max-width:300px;font-size:11px;line-height:1.5;display:flex}.privacy-note svg{margin-top:1px}.file-area{background:#f7faff;border:1px dashed #a8bdd9;border-radius:8px;margin-bottom:20px;padding:22px 24px 13px;transition:background-color .16s,border-color .16s}.file-area.is-dragging{border-color:var(--blue);background:#e0edff}.file-area.has-files{background:#f8fafd;border-style:solid;padding:13px 16px 9px}.drop-content{justify-content:center;align-items:center;gap:18px;min-height:62px;display:flex}.drop-content>svg{color:var(--blue)}.drop-content>div{flex-direction:column;gap:5px;margin-right:10px;display:flex}.drop-content strong{font-size:15px;font-weight:650}.drop-content span{color:var(--muted);font-size:12px}.limits{text-align:center;color:var(--muted);margin-top:14px;font-size:11px;line-height:1.5}.file-toolbar{justify-content:space-between;align-items:center;gap:12px;margin-bottom:9px;font-size:13px;display:flex}.count{color:var(--muted);margin-left:5px;font-size:11px;font-weight:500}.inline-actions{align-items:center;gap:5px;display:flex}.inline-actions button{min-height:32px;padding:6px 9px;font-size:12px}.file-list{gap:8px;padding:3px 2px 8px;display:flex;overflow-x:auto}.file-item{border:1px solid var(--line);background:#fff;border-radius:5px;flex-shrink:0;align-items:center;max-width:300px;display:flex}.file-item.selected{background:#edf4ff;border-color:#6595de}.file-select{text-align:left;background:0 0;border:0;min-width:0;max-width:260px;padding:7px 9px;font-weight:500}.file-select span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.file-select small{color:var(--muted);font-variant-numeric:tabular-nums}.file-item .icon-button{background:0 0;border:0;margin-right:2px}.alert{color:#8b3324;background:#fff4f1;border:1px solid #e9b8aa;border-radius:6px;align-items:flex-start;gap:10px;margin-bottom:15px;padding:11px 14px;font-size:13px;line-height:1.5;display:flex}.alert>svg{margin-top:2px}.alert .icon-button{color:inherit;background:0 0;border:0;margin:-5px -5px -5px auto}.preview-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;display:grid}.preview-pane{border:1px solid var(--line);background:#fff;border-radius:7px;min-width:0;overflow:hidden}.pane-heading{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:12px;height:49px;padding:10px 16px;display:flex}.pane-heading h2,.settings>h2,.crop-heading h3{align-items:center;gap:8px;display:flex}.pane-heading h2 svg,.settings>h2 svg,.crop-heading h3 svg{color:#597390}.paper-label{color:var(--muted);font-size:12px}.page-navigation{color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums;align-items:center;gap:5px;font-size:11px;display:flex}.page-navigation .icon-button{background:0 0;border-color:#0000;min-width:27px;min-height:27px;padding:4px}.page-navigation select{border:1px solid var(--line);color:var(--ink);background:#fff;border-radius:4px;max-width:66px;padding:3px 5px}.preview-stage{--sheet-height:320px;background:var(--surface);justify-content:center;align-items:center;height:360px;padding:20px;display:flex;overflow:hidden}.source-stage{background:#eef3f9}.output-stage{background:#e8f0fa}.empty-preview{text-align:center;color:#54708e;flex-direction:column;align-items:center;gap:9px;max-width:280px;display:flex}.empty-preview>svg{color:#829ab7;margin-bottom:5px}.empty-preview p{color:#3b5677;font-size:14px;font-weight:500;line-height:1.45}.empty-preview span{font-size:12px;line-height:1.6}.page-surface,.output-sheet{background:#fff;max-width:100%;height:auto;max-height:100%;position:relative;box-shadow:0 3px 12px #20375a1a}.page-surface canvas,.output-sheet canvas{object-fit:contain;width:100%;height:100%;display:block}.page-surface{touch-action:none}.canvas-loading{color:var(--muted);background:#ffffffd9;justify-content:center;align-items:center;gap:10px;font-size:13px;display:flex;position:absolute;inset:0}.preview-error{text-align:center;color:#8b3324;flex-direction:column;padding:20px;font-size:12px;line-height:1.6}.crop-box{cursor:move;touch-action:none;background:#2761ca08;border:1px dashed #356ed5;position:absolute}.crop-box.active{z-index:2;background:#2761ca05;border:2px solid #2563d2}.crop-number{color:#fff;pointer-events:none;background:#225cce;min-width:17px;height:17px;padding:1px 4px;font-size:10px;line-height:15px;position:absolute;top:3px;left:3px}.crop-handle{z-index:3;touch-action:none;background:#fff;border:2px solid #225cce;width:11px;height:11px;position:absolute}.crop-handle:after{content:"";position:absolute;inset:-8px}.crop-handle.nw{cursor:nwse-resize;top:-6px;left:-6px}.crop-handle.ne{cursor:nesw-resize;top:-6px;right:-6px}.crop-handle.sw{cursor:nesw-resize;bottom:-6px;left:-6px}.crop-handle.se{cursor:nwse-resize;bottom:-6px;right:-6px}.pane-caption{min-height:40px;color:var(--muted);border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:15px;padding:9px 13px;font-size:10px;line-height:1.5;display:flex}.pane-caption>span:first-child{flex-shrink:0}.pane-caption>span:nth-child(2){text-align:right;max-width:280px}.pane-caption strong{color:var(--ink);font-variant-numeric:tabular-nums;margin-left:5px;font-size:12px}.settings{padding:21px 0 18px}.settings>h2{margin-bottom:14px}.settings-grid{grid-template-columns:minmax(180px,1.4fr) minmax(140px,1fr) minmax(80px,.55fr) minmax(170px,1fr);align-items:start;gap:17px;display:grid}.settings fieldset{border:0;min-width:0;margin:0;padding:0}.field{flex-direction:column;gap:7px;min-width:0;font-size:12px;font-weight:550;display:flex}.field>span{justify-content:space-between;align-items:center;gap:8px;display:flex}.field small{color:var(--muted);font-size:10px}.field input,.field select{width:100%;height:37px;color:var(--ink);font-variant-numeric:tabular-nums;background:#fff;border:1px solid #becde0;border-radius:5px;padding:7px 10px;font-size:13px}.field input:disabled,.field select:disabled{color:#65758a;background:#f1f4f8}.checks{flex-direction:column;gap:11px;padding-top:22px;font-size:12px;display:flex}.checks label{cursor:pointer;align-items:center;gap:8px;display:flex}.checks input{width:15px;height:15px;margin:0}.setting-note{color:var(--muted);margin-top:11px;font-size:11px;line-height:1.55}.crop-settings{border-top:1px solid #e2e8f1;margin-top:17px;padding-top:14px}.crop-heading{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;display:flex}.crop-heading small{color:var(--muted);font-size:11px}.crop-fields{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;max-width:650px;display:grid}.export-bar{border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:20px;padding:18px 0 9px;display:flex}.export-status{align-items:center;gap:10px;min-width:0;display:flex}.export-status>svg{color:#286247}.export-status>div{flex-direction:column;gap:5px;display:flex}.export-status strong{font-size:13px;font-weight:650}.export-status span{color:var(--muted);max-width:470px;font-size:11px;line-height:1.5}.export-actions{flex-shrink:0;align-items:center;gap:8px;display:flex}.export-actions .primary{min-height:41px;padding-inline:20px}.print-note{color:var(--muted);margin-top:8px;font-size:10px;line-height:1.6}.export-status progress{width:180px;height:5px;accent-color:var(--blue);border:0;border-radius:5px;overflow:hidden}.export-status progress::-webkit-progress-bar{background:#dce7f7}.export-status progress::-webkit-progress-value{background:var(--blue)}.visually-hidden{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;padding:0;position:absolute;overflow:hidden}.spin{animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@media (width>=1200px){.preview-stage{--sheet-height:355px;height:395px}}@media (width<=800px){.workbench{padding:20px 18px 14px}.workbench-heading{align-items:flex-start;gap:18px}.privacy-note{max-width:240px}.drop-content{flex-wrap:wrap;gap:11px}.drop-content>div{margin-right:0}.preview-grid{gap:12px}.preview-stage{--sheet-height:264px;height:300px;padding:18px}.pane-heading{padding-inline:11px}.pane-caption{flex-wrap:wrap;align-items:flex-start;gap:6px}.pane-caption>span:nth-child(2){text-align:left}.settings-grid{grid-template-columns:1.4fr 1fr 80px}.checks{flex-direction:row;grid-column:1/-1;gap:20px;padding-top:0}.export-status span{max-width:270px}}@media (width<=540px){.workbench{padding:18px 14px 12px}h1{font-size:21px}.workbench-heading{margin-bottom:17px;display:block}.privacy-note{max-width:none;margin-top:12px;font-size:11px}.file-area{margin-bottom:16px;padding:20px 13px 13px}.drop-content{gap:11px}.drop-content>svg{width:25px}.drop-content>div{width:calc(100% - 48px);margin:0}.drop-content>button{flex:1;margin-top:3px}.limits{font-size:10px}.file-toolbar{gap:5px}.file-toolbar .inline-actions button{padding-inline:6px;font-size:11px}.preview-grid{grid-template-columns:1fr;gap:14px}.preview-stage{--sheet-height:264px;height:300px;padding:18px}.pane-caption{flex-wrap:nowrap;min-height:36px}.pane-caption>span:nth-child(2){text-align:right;max-width:195px}.settings{padding-top:20px}.settings-grid{grid-template-columns:1fr 90px;gap:13px}.preset-field{grid-column:1/-1}.checks{flex-wrap:wrap;gap:17px}.crop-heading{flex-wrap:wrap;align-items:flex-start}.crop-heading .inline-actions{flex-wrap:wrap;justify-content:flex-end;gap:0}.crop-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px}.export-bar{flex-direction:column;align-items:stretch;gap:14px;padding-top:15px}.export-actions{width:100%}.export-actions>*{flex:1;min-width:0}.export-status span{max-width:none}.print-note{margin-top:7px}.preview-pane{border-radius:6px}.crop-heading h3{padding-top:8px}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition:none!important}.spin{animation-duration:2.5s}}
