:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#242536;background:#fafafb;font-synthesis:none;font-weight:400;font-size:14px;--bg: #fafafb;--surface: #fff;--text: #242536;--muted: #828491;--border: #e9e9ef;--accent: #6954d9;--soft: #f0edfd;--stage: #f0f1f5;--input: #fff;--shadow: 0 12px 40px #21213a08;line-height:1.5}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;background:none}button:disabled{opacity:.4;cursor:not-allowed}button,a,input,select{outline-offset:4px}button:focus-visible,a:focus-visible{outline:2px solid var(--accent)}button{transition:background .16s,box-shadow .16s,transform .16s}a{color:inherit;text-decoration:none}svg{flex-shrink:0}h1,h2,h3,p{margin:0}input,select{min-width:0;width:100%;border:1px solid var(--border);background:var(--input);border-radius:7px;padding:10px 12px;color:var(--text);height:42px}input:focus,select:focus{outline:2px solid #6954d93b;border-color:#9e8eeb}input[type=number]{padding-right:6px}input::placeholder{color:#92929f}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.app-shell{min-height:100vh}.app-header{height:80px;padding:0 40px;border-bottom:1px solid var(--border);background:var(--surface);display:flex;align-items:center;justify-content:space-between;gap:30px}.brand{font-size:25px;letter-spacing:-1.1px;font-weight:750;gap:10px;padding:0;white-space:nowrap}.brand-icon{height:38px;width:38px;background:var(--accent);border-radius:11px;display:grid;place-items:center;color:#fff;box-shadow:0 4px 10px #6954d920}.beta{letter-spacing:1px;font-size:8px;color:#89859d;border:1px solid var(--border);border-radius:4px;padding:2px 4px;align-self:flex-start;margin-top:6px;margin-left:1px}.header-nav{display:flex;gap:29px;margin-right:auto;margin-left:35px;color:#626471;font-size:13px}.header-nav button{padding:0}.header-nav a:hover,.header-nav button:hover{color:var(--accent)}.header-actions{display:flex;align-items:center;gap:13px}.privacy-small{display:flex;align-items:center;gap:7px;font-size:11px;color:var(--muted);margin-right:10px}.privacy-small svg{color:#66a18d}.icon-button{height:33px;width:33px;flex-shrink:0;border-radius:6px;color:#727383;padding:0}.icon-button:hover{background:var(--soft);color:var(--accent)}.primary{background:var(--accent);color:#fff;border:1px solid transparent;border-radius:8px;padding:11px 18px;font-weight:550;font-size:13px;box-shadow:0 3px 6px #6954d912}.primary:hover:not(:disabled){background:#5944c5;box-shadow:0 4px 12px #6954d929}.secondary{background:var(--surface);color:#5a5b6d;border:1px solid var(--border);border-radius:7px;padding:10px 15px;font-weight:500;font-size:12px}.secondary:hover:not(:disabled){border-color:#bdb2ea;color:var(--accent);background:var(--soft)}.small{padding:8px 13px;font-size:12px}.full{width:100%;margin-top:12px;min-height:42px}.home-main{max-width:1160px;margin:auto;padding:48px 38px 0}.hero-eyebrow{display:flex;align-items:center;justify-content:center;gap:8px;font-size:9px;letter-spacing:1.8px;font-weight:650;color:#8b83b3}.hero-eyebrow>span{width:5px;height:5px;background:#9b8be2;border-radius:50%}h1{text-align:center;font-size:46px;line-height:1.22;letter-spacing:-1.9px;font-weight:700;margin:17px 0 16px}h1>span{color:var(--accent)}.hero-description{text-align:center;color:#82838f;font-size:13px;line-height:1.85;letter-spacing:.03px}.upload-zone{position:relative;display:flex;align-items:center;flex-direction:column;max-width:780px;margin:31px auto 0;padding:25px 24px 22px;border:1.5px dashed #cec7eb;border-radius:13px;background:linear-gradient(130deg,#fff 15%,#faf8ff);transition:background .2s,border-color .2s;box-shadow:0 5px 35px #6954d903}.upload-zone.dragging{background:var(--soft);border-color:var(--accent)}.upload-art{width:90px;height:68px;position:relative;margin-bottom:14px}.art-page{display:block;position:absolute;border-radius:7px;width:43px;height:54px;top:6px;left:24px}.art-page.rear{background:#eeebfb;border:1px solid #ddd5f8;transform:translate(-13px,-1px) rotate(-13deg)}.art-page.front{background:#fff;border:1px solid #dad2f2;transform:rotate(8deg);display:grid;place-items:center;box-shadow:0 4px 8px #30236b06;color:#8b75df}.art-plus{position:absolute;width:21px;height:21px;right:7px;top:38px;color:#fff;border:3px solid #fff;line-height:14px;text-align:center;border-radius:50%;background:#ab9be9;font-size:16px}.upload-zone h2{font-size:18px;letter-spacing:-.3px;font-weight:600}.upload-zone>p{color:var(--muted);font-size:11px;margin-top:5px}.upload-button{margin:20px 0 18px;min-width:210px;padding:12px 18px}.upload-button svg:last-child{margin-left:14px}.upload-formats{font-size:9px;display:flex;align-items:center;gap:6px;color:#9a98a8}.upload-formats>span{background:#efedf5;border-radius:4px;line-height:19px;min-width:29px;text-align:center;font-size:8px;letter-spacing:.4px;font-weight:550;color:#91899f}.upload-formats>i{height:12px;border-left:1px solid #ddd8ea;margin:0 5px}.try-sample{display:flex;align-items:center;justify-content:center;gap:7px;color:#9796a2;font-size:10px;margin:17px 0 42px}.try-sample button{font-size:10px;color:var(--accent);padding:0 3px}.tools-section{scroll-margin-top:25px}.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.section-title h2{font-size:18px;letter-spacing:-.4px;font-weight:650}.section-title>span{font-size:10px;color:#9695a2}.tool-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.tool-card{position:relative;text-align:left;align-items:flex-start;display:flex;flex-direction:column;border:1px solid var(--border);border-radius:11px;background:var(--surface);padding:21px 19px 18px;min-height:214px;gap:0;box-shadow:0 2px 4px #29233b01}.tool-card:hover{border-color:#bfb3eb;transform:translateY(-3px);box-shadow:var(--shadow)}.tool-icon{display:flex;align-items:center;justify-content:center;border-radius:10px;width:43px;height:43px;flex-shrink:0}.violet{background:#efecfd;color:#8a72da}.blue{background:#eaf1ff;color:#6d94d5}.peach{background:#fff1e6;color:#dc9a6c}.green{background:#e9f6f0;color:#67a58f}.tool-card h3{font-size:13px;letter-spacing:-.2px;margin:15px 0 6px;font-weight:650}.tool-card p{font-size:10px;color:#92919f;line-height:1.8}.card-link{margin-top:20px;font-size:10px;color:#8c859f;display:flex;align-items:center;justify-content:space-between;width:100%}.tool-card:hover .card-link{color:var(--accent)}.priority-tag{position:absolute;right:12px;top:17px;font-size:7px;letter-spacing:.5px;color:#9c8ad7;background:#f5f1ff;padding:3px 5px;border-radius:4px}.privacy-banner{display:flex;align-items:center;border:1px solid #e5eae7;border-radius:10px;background:#f6f9f7;margin-top:30px;padding:19px 22px;gap:15px}.privacy-icon{color:#77a18a;display:flex}.privacy-banner h3{font-size:11px;color:#577762;font-weight:600}.privacy-banner p{font-size:10px;color:#8d9c91;margin-top:3px}.privacy-badge{display:flex;align-items:center;gap:7px;margin-left:auto;white-space:nowrap;font-size:9px;color:#88a190}.home-footer{display:flex;justify-content:space-between;align-items:center;color:#aeacb6;font-size:9px;margin-top:33px;padding:20px 0 24px;border-top:1px solid var(--border)}.home-footer button{font-size:9px;padding:0;color:#96919f}.document-title{font-size:12px;display:flex;align-items:center;gap:9px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-right:auto}.tiny-dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:#7daa8c;flex-shrink:0}.tag{font-size:9px;padding:2px 7px;border-radius:4px;background:#f1f5f2;color:#80a18c}.working .app-header{height:69px;padding:0 25px;gap:25px}.working .brand{font-size:23px}.working .brand-icon{width:34px;height:34px;border-radius:9px}.working .header-actions{gap:8px}.working .privacy-small{display:none}.workspace-toolbar{height:52px;border-bottom:1px solid var(--border);background:var(--surface);display:flex;align-items:center;justify-content:space-between;padding:0 22px}.toolbar-group{display:flex;align-items:center;gap:5px}.text-button{font-size:11px;color:#777786;padding:7px 10px;border-radius:6px}.text-button:hover{background:var(--soft);color:var(--accent)}.divider{height:18px;width:1px;background:var(--border);margin:0 9px}.unsaved{font-size:10px;color:#ab924d;margin-right:12px}.editor-grid{display:grid;grid-template-columns:190px minmax(300px,1fr) 300px;height:calc(100dvh - 150px);min-height:540px}.pages-panel{display:flex;flex-direction:column;border-right:1px solid var(--border);background:var(--surface);min-height:0;overflow:hidden;padding:19px 14px 16px}.panel-heading{display:flex;align-items:center;justify-content:space-between;padding:0 5px;color:#858390}.panel-heading h2{font-size:12px;font-weight:600;color:var(--text);display:flex;align-items:center;gap:7px}.panel-heading h2 span{background:var(--stage);font-size:9px;line-height:18px;min-width:20px;border-radius:4px;text-align:center;font-weight:500;color:var(--muted)}.panel-hint{font-size:8px;color:#a6a2ae;text-align:center;margin:12px 0 15px}.page-list{list-style:none;margin:0;padding:0;overflow:auto;min-height:0;flex:1;scrollbar-width:thin}.page-list li{margin:0 10px 13px}.thumbnail-button{display:flex;flex-direction:column;width:100%;padding:9px 8px 5px;gap:6px;border-radius:8px;border:1px solid transparent}.thumbnail-wrap{position:relative;background:#fff;box-shadow:0 1px 5px #2222}.thumbnail-label{font-size:10px;display:flex;align-items:center;gap:6px;color:#9c97a8}.selected .thumbnail-button{background:#f2effd;border-color:#d7cdf7}.thumbnail-edited{position:absolute;bottom:4px;right:4px;background:var(--accent);color:#fff;width:18px;height:18px;display:grid;place-items:center;border-radius:4px}.add-pages{margin-top:14px;min-height:36px;font-size:10px;border:1px dashed #d9d4e7;border-radius:6px;color:#9791a5}.document-stage{background:var(--stage);display:flex;flex-direction:column;min-width:0;min-height:0}.stage-heading{padding:24px 28px 20px;display:flex;align-items:center;justify-content:space-between;gap:10px}.eyebrow{font-size:8px;letter-spacing:1.2px;color:#9e99ad}.stage-heading h2{font-size:15px;font-weight:600;margin-top:4px;letter-spacing:-.3px}.stage-heading h2 span{font-size:11px;font-weight:400;color:#a49eae;margin-left:3px}.segmented{display:flex;background:#e6e7ed;border:1px solid #e2e3eb;border-radius:7px;padding:3px;gap:2px}.segmented button{padding:6px 10px;font-size:10px;color:#9b96a6;border-radius:4px;white-space:nowrap}.segmented button.active{background:var(--surface);box-shadow:0 1px 4px #30303a0a;color:var(--accent)}.canvas-viewport{overflow:auto;flex:1;min-height:0;padding:0 36px 30px;display:flex;align-items:center;flex-direction:column;scrollbar-width:thin}.canvas-viewport>*{flex-shrink:0}.paper-meta{display:flex;gap:15px;justify-content:space-between;max-width:570px;width:100%;font-size:8px;color:#a5a0b1;margin-bottom:10px}.page-canvas{position:relative;flex-shrink:0;background:#fff;user-select:none;overflow:hidden;box-shadow:0 5px 22px #1f1b3712;touch-action:pan-x pan-y}.page-canvas.editable{touch-action:none}.page-canvas canvas{width:100%;height:100%;display:block}.thumbnail-wrap .page-canvas{box-shadow:none}.crop-box{position:absolute;border:1.5px solid #8d72e7;box-shadow:0 0 0 4000px #30264444;cursor:move;touch-action:none}.third{position:absolute;display:block;pointer-events:none;opacity:.35}.third.a{top:0;bottom:0;left:33.33%;border-left:1px solid #bba6f8}.third.b{top:0;bottom:0;left:66.66%;border-left:1px solid #bba6f8}.third.c{left:0;right:0;top:33.33%;border-top:1px solid #bba6f8}.third.d{left:0;right:0;top:66.66%;border-top:1px solid #bba6f8}.crop-handle{position:absolute;width:10px;height:10px;border:2px solid white;background:#8b6de0;box-shadow:0 0 0 1px #8b6de0;border-radius:2px;padding:0;z-index:3;touch-action:none}.crop-handle:before{content:"";position:absolute;inset:-9px}.crop-handle.nw{left:0;top:0;transform:translate(-20%,-20%);cursor:nwse-resize}.crop-handle.ne{right:0;top:0;transform:translate(20%,-20%);cursor:nesw-resize}.crop-handle.se{right:0;bottom:0;transform:translate(20%,20%);cursor:nwse-resize}.crop-handle.sw{left:0;bottom:0;transform:translate(-20%,20%);cursor:nesw-resize}.crop-handle.n{left:50%;top:0;transform:translate(-50%,-20%);cursor:ns-resize}.crop-handle.s{left:50%;bottom:0;transform:translate(-50%,20%);cursor:ns-resize}.crop-handle.e{right:0;top:50%;transform:translate(20%,-50%);cursor:ew-resize}.crop-handle.w{left:0;top:50%;transform:translate(-20%,-50%);cursor:ew-resize}.crop-tag{position:absolute;bottom:9px;left:50%;transform:translate(-50%);font-size:9px;border-radius:4px;background:#7761ccda;color:#fff;padding:3px 7px;white-space:nowrap;pointer-events:none}.canvas-loading{position:absolute;right:10px;top:10px;background:#fffe;color:#8775b2;font-size:10px;border-radius:5px;padding:3px 8px}.canvas-note{display:flex;align-items:center;gap:6px;color:#a5a0b1;font-size:9px;margin-top:20px;max-width:100%;text-align:center}.stage-footer{height:52px;border-top:1px solid #e3e3ec;display:flex;align-items:center;justify-content:space-between;padding:0 20px;flex-shrink:0}.page-navigation,.zoom-controls{display:flex;align-items:center;gap:9px;font-size:10px;color:#8d869f}.flip{transform:rotate(180deg)}.zoom-value{font-size:10px;color:#878196;min-width:37px;padding:0}.settings-panel{background:var(--surface);border-left:1px solid var(--border);display:flex;flex-direction:column;overflow:auto;scrollbar-width:thin}.tool-tabs{display:flex;height:65px;border-bottom:1px solid var(--border);flex-shrink:0;padding:0 18px;gap:10px}.tool-tabs>button{font-size:9px;gap:4px;flex:1;flex-direction:column;border-bottom:2px solid transparent;padding:9px 0 6px;color:#9e98ad}.tool-tabs>button.active{color:var(--accent);border-bottom-color:var(--accent)}.settings-content{padding:24px 23px 20px}.settings-title{display:flex;align-items:center;gap:11px;margin-bottom:22px}.settings-title .tool-icon{width:35px;height:35px;border-radius:8px}.settings-title h2{font-size:12px;font-weight:600;letter-spacing:-.1px}.settings-title p{font-size:9px;color:#a19aa9;margin-top:3px}.settings-description{font-size:10px;line-height:1.85;color:#9e97a8;margin-bottom:24px}.field-label{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#7f778c;margin-bottom:9px;margin-top:20px}.field-label>span{font-size:9px;color:#aba5b6}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 12px;margin-top:13px}.field-grid label{font-size:9px;color:#a19aab}.field-grid input{height:37px;margin-top:6px;font-size:11px}.reset-button{margin-top:16px;color:#aba2b8;font-size:9px;width:100%;padding:5px}.reset-button:hover{color:var(--accent)}.info-card{display:flex;gap:8px;background:#f7f6fb;border:1px solid #efedf7;border-radius:7px;padding:12px 11px;color:#a393c2;margin-top:24px}.info-card p{font-size:9px;line-height:1.8;color:#a299b2}.info-card>svg{margin-top:2px;width:15px;height:15px}.settings-rule{border-top:1px solid var(--border);margin:25px 0 20px}.settings-content select{font-size:10px;height:38px;color:#847b92}.settings-content .full{font-size:10px;gap:7px;min-height:40px;margin-top:12px}.subtle-note{text-align:center;font-size:8px;color:#b3acbe;line-height:1.8;margin-top:12px}.left{text-align:left}.settings-bottom{display:flex;align-items:center;justify-content:center;gap:6px;font-size:8px;color:#b0a7b9;padding:15px 8px 18px;margin-top:auto;border-top:1px solid var(--border)}.orientations{margin-top:5px;background:#f3f1f8;border:1px solid var(--border)}.orientations button{flex:1}.page-actions{display:flex;flex-direction:column;gap:10px}.page-actions .full{margin:0;justify-content:flex-start;padding-left:13px}.danger{color:#bb797d}.workspace-status{height:29px;display:flex;align-items:center;justify-content:space-between;background:var(--surface);border-top:1px solid var(--border);padding:0 19px;font-size:8px;color:#ada5b7}.workspace-status>span{display:flex;align-items:center;gap:8px}.workspace-status i{height:8px;width:1px;background:var(--border);margin:0 3px}.drop-overlay{position:fixed;inset:12px;z-index:100;background:#f4f0ffed;border:2px dashed var(--accent);border-radius:15px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px;color:var(--accent);backdrop-filter:blur(6px)}.drop-overlay h2{font-size:24px}.drop-overlay p{font-size:14px}.error-toast,.notice-toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%);max-width:min(600px,calc(100vw - 30px));border:1px solid #f1d3d7;background:#fff8f8;color:#a95565;display:flex;align-items:center;gap:12px;padding:13px 17px;border-radius:9px;box-shadow:0 5px 30px #35253615;font-size:12px;z-index:300}.error-toast .icon-button{width:24px;height:24px;color:inherit}.notice-toast{background:#f6faf7;border-color:#d8e6db;color:#658773;z-index:200;white-space:normal}.modal-backdrop{position:fixed;inset:0;z-index:150;background:#2020366b;backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;padding:20px;overflow:auto}.dialog{position:relative;max-width:460px;width:100%;padding:30px;background:var(--surface);border:1px solid var(--border);border-radius:15px;box-shadow:0 30px 100px #1c16392b;max-height:calc(100dvh - 40px);overflow:auto}.dialog-close{position:absolute;top:16px;right:16px}.dialog h2{font-size:20px;font-weight:650;letter-spacing:-.6px;margin:18px 0 8px}.dialog>p{font-size:11px;color:var(--muted)}.dialog .subtle-note{font-size:9px;margin-top:10px}.dialog .field-label,.dialog input{font-size:11px}.dialog .info-card{margin-top:17px}.export-summary{margin:24px 0;background:var(--stage);border-radius:8px;padding:13px 15px}.export-summary>span{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:var(--muted);padding:5px 0;gap:15px}.export-summary strong{font-size:10px;color:var(--text);font-weight:500}.export-result{display:flex;align-items:center;gap:8px;color:#619178!important;margin:12px 0}.warning{background:#fffaf1;border-color:#f4e8d2}.help-steps{padding-left:20px;margin:25px 0}.help-steps li{padding-left:7px;margin-bottom:18px;font-size:12px;color:var(--accent)}.help-steps strong{display:block;color:var(--text);font-weight:550;font-size:12px}.help-steps span{display:block;color:var(--muted);font-size:10px;line-height:1.8;margin-top:5px}.help-shortcuts{font-size:10px!important;line-height:1.9;margin-top:20px!important}.busy-backdrop{z-index:250}.busy-dialog{padding:35px;border-radius:15px;background:var(--surface);width:380px;text-align:center;box-shadow:var(--shadow)}.busy-dialog h2{font-size:18px;margin:17px 0 8px}.busy-dialog p{font-size:11px;color:var(--muted)}.busy-dialog progress{width:100%;height:6px;accent-color:var(--accent);display:block;margin:24px 0 6px;border:0}.busy-dialog>span:not(.spinner){display:block;font-size:10px;color:var(--muted)}.busy-dialog button{margin-top:22px;min-width:100px}.spinner{display:block;border:3px solid var(--soft);border-top-color:var(--accent);border-radius:50%;width:30px;height:30px;margin:auto;animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}[data-theme=dark]{--bg: #171820;--surface: #21222d;--text: #e4e1ed;--muted: #a29bad;--border: #333340;--accent: #9a86ec;--soft: #343043;--stage: #1a1b25;--input: #252631;background:var(--bg);color:var(--text)}[data-theme=dark] .upload-zone{background:linear-gradient(120deg,#22222d,#282535);border-color:#55486d}[data-theme=dark] .art-page.front{background:#34313f;border-color:#62547a}[data-theme=dark] .art-page.rear{background:#302b43;border-color:#4a3d67}[data-theme=dark] .privacy-banner{background:#202a27;border-color:#344039}[data-theme=dark] .privacy-banner p{color:#95ac9d}[data-theme=dark] .privacy-banner h3{color:#a0bca9}[data-theme=dark] .selected .thumbnail-button{background:#322c45;border-color:#655481}[data-theme=dark] .segmented{background:#2d2c3a;border-color:#3d384a}[data-theme=dark] .info-card{background:#292735;border-color:#363140}[data-theme=dark] .info-card p{color:#afa5c2}[data-theme=dark] .stage-footer{border-color:var(--border)}[data-theme=dark] .violet{background:#362d4b;color:#b4a0e8}[data-theme=dark] .blue{background:#2a3347;color:#8ba8dc}[data-theme=dark] .peach{background:#403329;color:#d7a17c}[data-theme=dark] .green{background:#293e36;color:#8bbb9f}[data-theme=dark] .tag{background:#293c30;color:#9db8a6}[data-theme=dark] .upload-formats>span{background:#3c354c;color:#b5a6c8}[data-theme=dark] .priority-tag{background:#3d3152;color:#b4a0dd}[data-theme=dark] .error-toast{background:#432a32;border-color:#70414b;color:#edb0ba}[data-theme=dark] .notice-toast{background:#293d33;border-color:#405c49;color:#b6d4bc}[data-theme=dark] .drop-overlay{background:#252038eb}@media(min-width:1500px){.home-main{max-width:1240px;padding-top:60px}.hero-description{font-size:14px}h1{font-size:52px}.upload-zone{padding-top:32px;padding-bottom:28px}.tool-card{min-height:230px;padding:24px}.tool-card h3{font-size:14px}.tool-card p{font-size:11px}.tool-cards{gap:20px}.editor-grid{grid-template-columns:215px minmax(300px,1fr) 325px}.settings-content{padding:28px}.settings-description,.settings-content .full,.settings-content select{font-size:11px}.settings-title h2{font-size:14px}.info-card p{font-size:10px}}@media(max-width:1100px){.privacy-small{display:none}.home-main{padding:40px 28px 0}.app-header{padding:0 28px}.tool-card{padding:19px 15px}.tool-card h3{font-size:12px}.priority-tag{font-size:6px;right:8px}.editor-grid{grid-template-columns:150px minmax(250px,1fr) 270px}.pages-panel{padding:16px 8px}.page-list li{margin-left:3px;margin-right:3px}.panel-hint{font-size:7px}.settings-content{padding:20px 17px}.stage-heading{padding:21px 19px 17px}.stage-heading .segmented{gap:0}.segmented button{padding:6px 7px}.stage-heading .segmented svg{display:none}.canvas-viewport{padding-left:20px;padding-right:20px}.working .app-header{padding:0 20px}.document-title .tag{display:none}}@media(max-width:850px){.header-nav{margin-left:5px;gap:20px}.header-actions{gap:5px}.home-main{padding-top:35px}h1{font-size:40px}.tool-cards{grid-template-columns:1fr 1fr}.tool-card{min-height:200px}.tool-card h3{font-size:14px}.tool-card p{font-size:11px}.tool-card p br{display:none}.priority-tag{font-size:7px}.document-title{display:none}.working .app-header{gap:10px}.working .header-actions{margin-left:auto}.editor-grid{grid-template-columns:120px minmax(240px,1fr) 250px}.panel-hint{display:none}.panel-heading{margin-bottom:15px}.page-list li{margin:0 0 12px}.thumbnail-button{padding:5px 4px}.thumbnail-wrap .page-canvas{width:82px!important}.add-pages{font-size:8px;gap:4px}.stage-heading{flex-direction:column;align-items:flex-start;gap:12px}.stage-heading h2{font-size:13px}.stage-heading .segmented{align-self:stretch}.stage-heading .segmented button{flex:1}.canvas-viewport{align-items:flex-start}.paper-meta{font-size:7px}.canvas-note{font-size:8px}.workspace-status{font-size:7px}.unsaved{font-size:8px}.tool-tabs{padding:0 12px;gap:5px}.settings-title{gap:8px}.settings-title h2{font-size:11px}.settings-title p{font-size:8px}}@media(max-width:670px){.app-header{height:68px;padding:0 18px;gap:10px}.brand{font-size:23px}.brand-icon{width:34px;height:34px}.header-nav{display:none}.header-actions .icon-button{width:29px}.home-main{padding:30px 19px 0}.hero-eyebrow{font-size:7px;letter-spacing:1.3px}h1{font-size:33px;letter-spacing:-1.4px;margin:17px 0 14px}.hero-description{font-size:11px;line-height:1.8}.desktop-break{display:none}.upload-zone{padding:24px 14px 23px;margin-top:25px}.upload-zone h2{font-size:16px}.upload-zone>p{font-size:10px}.try-sample{font-size:8px;gap:4px;margin-bottom:31px;flex-wrap:wrap}.try-sample button{font-size:9px}.section-title{align-items:flex-start;gap:7px;flex-direction:column}.section-title h2{font-size:17px}.section-title>span{font-size:9px}.tool-cards{gap:11px}.tool-card{padding:16px 13px;min-height:210px}.tool-card h3{font-size:11px;margin-top:14px}.tool-card p{font-size:10px}.tool-card .tool-icon{width:36px;height:36px}.tool-card .tool-icon svg{width:21px;height:21px}.card-link{font-size:8px;gap:4px}.priority-tag{display:none}.privacy-banner{padding:16px 13px;gap:10px;margin-top:23px}.privacy-banner h3{font-size:10px}.privacy-banner p{font-size:9px;line-height:1.8}.privacy-badge{display:none}.home-footer{font-size:8px;margin-top:24px;gap:10px;padding:20px 0}.home-footer>span:nth-child(2){display:none}.home-footer button{font-size:8px}.working .app-header{height:62px;padding:0 14px}.working .brand{font-size:20px;gap:7px}.working .brand-icon{width:30px;height:30px}.working .beta{display:none}.working .header-actions{gap:3px}.working .header-actions .primary{font-size:10px;padding:8px;gap:5px}.working .header-actions .primary svg{width:14px}.workspace-toolbar{height:47px;padding:0 9px}.toolbar-group{gap:1px}.text-button{font-size:9px;padding:6px}.text-button svg{width:15px}.toolbar-group .divider{margin:0 4px}.toolbar-group>.icon-button{width:27px}.unsaved{display:none}.toolbar-group:last-child .text-button{display:none}.editor-grid{height:auto;min-height:0;display:grid;grid-template-columns:1fr;grid-template-rows:auto auto auto}.pages-panel{grid-row:2;border-right:0;border-bottom:1px solid var(--border);padding:9px 12px;flex-direction:row;gap:8px;max-height:123px}.panel-heading,.add-pages{display:none}.page-list{display:flex;overflow:auto;gap:8px}.page-list li{margin:0;min-width:60px}.thumbnail-button{padding:5px 6px 3px;gap:3px}.thumbnail-wrap .page-canvas{width:47px!important;max-height:71px}.thumbnail-label{font-size:8px;line-height:12px}.thumbnail-label svg{height:10px}.document-stage{grid-row:1;min-height:460px;height:62dvh}.stage-heading{flex-direction:row;align-items:center;padding:15px 18px;gap:9px}.stage-heading h2{font-size:13px}.stage-heading .segmented{align-self:center}.stage-heading .segmented button{font-size:9px;padding:5px 7px}.eyebrow{font-size:7px}.canvas-viewport{align-items:center;padding:0 22px 20px}.canvas-viewport>.page-canvas{width:min(100%,340px)!important}.canvas-viewport .paper-meta{max-width:340px}.canvas-note{font-size:8px;line-height:1.8;margin-top:15px}.stage-footer{height:39px;padding:0 12px}.page-navigation,.zoom-controls{gap:4px}.stage-footer .icon-button{height:25px;width:25px}.settings-panel{grid-row:3;border-left:0;overflow:visible}.tool-tabs{height:53px;justify-content:center;gap:20px;padding:0 30px}.tool-tabs button{flex-direction:row;max-width:120px;gap:7px;font-size:10px;padding:12px 0}.settings-content{padding:22px;max-width:500px;width:100%;margin:auto}.settings-title h2{font-size:14px}.settings-title p{font-size:10px}.settings-title .tool-icon{height:38px;width:38px}.settings-description{font-size:11px;margin-bottom:15px}.field-grid{gap:14px}.field-grid label,.field-label{font-size:11px}.field-grid input,.settings-content select{font-size:12px;height:40px}.info-card p{font-size:10px}.settings-content .full{font-size:12px;min-height:43px}.settings-rule{margin:20px 0}.subtle-note,.settings-bottom{font-size:9px}.workspace-status{height:29px;padding:0 12px}.workspace-status>span:last-child{display:none}.dialog{padding:25px 22px}.dialog h2{font-size:19px}.help-steps{margin:22px 0}.error-toast,.notice-toast{font-size:11px;bottom:15px;padding:12px;gap:8px}.canvas-loading{font-size:8px}}.canvas-viewport{align-items:safe center}@media(max-width:670px){.canvas-viewport>.page-canvas{width:var(--page-width)!important}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition:none!important;scroll-behavior:auto!important}}@font-face{font-family:Open Sans;src:url(./open-sans-variable-B7EbeqL0.ttf) format("truetype");font-weight:300 800;font-display:swap}:root{font-family:Open Sans,sans-serif;--accent: #51689f;--soft: #edf0f7;--text: #273050;--muted: #4b526f;--border: #dce1eb;--stage: #f1f3f8;--ink: #273050;--brand-primary: #51689f;--brand-secondary: #809ad8;font-size:16px}.sinseti-logo{width:142px;height:auto;object-fit:contain;display:block}.service-name{font-size:16px;border-left:1px solid var(--border);padding-left:12px;color:var(--accent);letter-spacing:0;font-weight:600}.brand{gap:15px}.working .brand{font-size:18px}.primary{background:var(--accent);font-size:14px}.primary:hover:not(:disabled){background:var(--ink)}.hero-eyebrow{color:var(--muted);font-size:11px}.hero-description{font-size:16px;color:var(--muted)}h1{font-size:46px}.upload-zone{background:var(--surface);border-color:var(--brand-secondary)}.upload-zone h2{font-size:21px}.upload-zone>p,.try-sample,.try-sample button{font-size:13px}.upload-formats{font-size:12px}.upload-formats>span{font-size:10px;background:var(--soft);color:var(--muted)}.tool-cards{grid-template-columns:repeat(3,1fr)}.tool-card h3{font-size:16px}.tool-card p,.card-link{font-size:13px}.tool-card{min-height:235px}.priority-tag{font-size:9px;background:var(--soft);color:var(--accent)}.violet,.blue,.peach,.green{background:var(--soft);color:var(--accent)}.text-button,.secondary,.segmented button,.settings-content .full,.settings-content select,.field-grid input{font-size:14px}.icon-button{width:38px;height:38px}.header-nav,.document-title{font-size:14px}.privacy-small,.privacy-banner p,.home-footer,.home-footer button{font-size:12px}.privacy-banner h3{font-size:14px}.home-footer{flex-wrap:wrap;gap:16px}.home-footer a{color:var(--accent)}.workspace-toolbar{height:auto;min-height:58px;padding:8px 16px;gap:12px;flex-wrap:wrap}.toolbar-group{flex-wrap:wrap}.working .app-header{height:76px}.editor-grid{grid-template-columns:200px minmax(280px,1fr) 320px;height:calc(100dvh - 193px);min-height:610px}.pages-panel{position:relative}.panel-heading h2{font-size:15px}.panel-hint{font-size:11px}.thumbnail-label{font-size:13px}.stage-heading h2{font-size:18px}.eyebrow,.paper-meta,.canvas-note{font-size:11px}.settings-title h2{font-size:16px}.settings-title p,.settings-description,.field-grid label,.field-label,.info-card p,.settings-bottom,.subtle-note{font-size:13px}.settings-title p,.settings-description,.field-grid label,.field-label,.info-card p,.settings-bottom,.subtle-note,.canvas-note,.paper-meta{color:var(--muted)}.settings-content{padding:22px}.info-card{background:var(--soft);border-color:var(--border)}.settings-content select{height:43px}.settings-content .full{min-height:44px}.field-grid input{height:43px}.tool-tabs{height:72px}.tool-tabs>button{font-size:12px}.settings-rule{margin:20px 0}.reset-button{font-size:12px}.workspace-status{font-size:11px}.unsaved{font-size:12px}.crop-box{border-color:var(--brand-secondary)}.crop-handle{background:var(--accent);box-shadow:0 0 0 1px var(--accent)}.crop-tag,.thumbnail-edited{background:var(--accent)}.page-list li:is(.selected,.current)>.thumbnail-button,.page-list li:has(.thumbnail-button:focus-visible,.page-select-toggle:focus-visible)>.thumbnail-button{background:var(--soft);border-color:var(--accent)}.selected .thumbnail-label{color:var(--accent)}.selection-tools{display:flex;flex-direction:column;gap:6px;font-size:12px;margin-bottom:12px;color:var(--muted)}.selection-tools button{font-size:12px;justify-content:flex-start;color:var(--accent);padding:4px 0}.page-list li{position:relative;min-width:0;border-radius:8px}.pages-panel{min-width:0}.page-list{padding:2px;overflow-x:hidden;scroll-padding:4px}.page-list:focus-visible,.page-list .thumbnail-button:focus-visible,.page-list .page-select-toggle:focus-visible{outline:none;box-shadow:none}.page-list .thumbnail-button{min-width:0;box-shadow:none}.page-list .thumbnail-button:hover{background:var(--soft)}.page-list .thumbnail-wrap{max-width:100%;overflow:hidden;box-shadow:none;border:0;outline:0}.page-list .thumbnail-wrap .page-canvas{max-width:100%}.page-list li:has(.thumbnail-button:focus-visible,.page-select-toggle:focus-visible) .thumbnail-label,.page-list:focus-visible li.current .thumbnail-label{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px}.thumbnail-actions{display:flex;justify-content:center;gap:4px;padding:2px 0;width:100%}.thumbnail-actions button{border-radius:6px;width:32px;height:32px;min-height:32px;flex:0 0 auto;color:var(--muted);border:0;background:transparent}.thumbnail-actions button:is(:hover,:focus-visible){background:var(--soft);color:var(--accent);outline:none}.sort-ghost{opacity:.25}.page-context{position:fixed;z-index:180;left:20px;bottom:55px;width:min(310px,calc(100vw - 40px));max-height:80dvh;overflow:auto;background:var(--surface);border:1px solid var(--border);box-shadow:0 10px 50px #27305030;border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:5px}.page-context button{padding:9px 12px;justify-content:flex-start;min-height:40px;border-radius:6px;font-size:14px}.page-context button:hover{background:var(--soft)}.page-context label{font-size:12px;padding:8px 12px}.page-context select{margin-top:6px}.wide-dialog{max-width:1050px}.wide-dialog>p,.dialog .subtle-note,.dialog input,.dialog>p,.dialog .field-label,.help-steps strong,.help-steps span{font-size:14px}.dialog h2{font-size:24px}.dialog .info-card{font-size:13px;display:block;line-height:1.7}.dialog-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}.dialog-actions button{min-height:44px}.auto-workspace{display:flex;justify-content:center;align-items:flex-start;gap:24px;margin:20px 0;max-height:52dvh;overflow:auto;background:var(--stage);padding:14px;border-radius:8px}.quad-editor{position:relative;min-width:150px;max-width:48%;width:max-content;flex:1}.quad-editor img{display:block;width:100%;max-height:48dvh;object-fit:contain}.quad-editor svg{position:absolute;inset:0;width:100%;height:100%;touch-action:none;overflow:visible}.quad-editor polygon{fill:#51689f25;stroke:#51689f;stroke-width:3}.quad-editor circle{fill:#fff;stroke:#51689f;stroke-width:9;cursor:move}.quad-editor circle:focus{fill:#809ad8}.warp-result{max-width:48%;flex:1;display:flex;flex-direction:column;gap:8px;font-size:12px;color:var(--muted)}.warp-result canvas{width:100%;height:auto}.confirm-check{display:flex;align-items:flex-start;gap:12px;font-size:14px;margin-top:18px}.confirm-check input{width:22px;height:22px;flex-shrink:0;accent-color:var(--accent)}.text-options{display:flex;gap:16px;margin:20px 0}.text-options label{flex:1;font-size:13px}.text-options select{margin-top:8px}.text-dialog textarea{font:14px/1.7 Open Sans,sans-serif;width:100%;min-height:260px;resize:vertical;border:1px solid var(--border);border-radius:8px;padding:14px;background:var(--input);color:var(--text)}.text-status{padding-top:14px}.text-dialog progress{width:100%;accent-color:var(--accent);height:8px;margin-top:15px}.error-toast,.notice-toast{font-size:14px}.notice-toast button{font-size:14px;color:var(--accent)}.art-page.front{color:var(--accent);border-color:var(--brand-secondary)}.art-page.rear{background:var(--soft);border-color:var(--border)}.art-plus{background:var(--brand-secondary)}[data-theme=dark]{--accent: #809ad8;--soft: #273050;--text: #edf0f7;--muted: #b5bad1;--border: #4b526f;--stage: #121520;--surface: #202638;--input: #273050;--ink: #51689f;background:var(--stage)}[data-theme=dark] .upload-zone,[data-theme=dark] .info-card,[data-theme=dark] .selected .thumbnail-button{background:var(--surface);border-color:var(--border)}[data-theme=dark] .info-card p,[data-theme=dark] .tool-card p{color:var(--muted)}[data-theme=dark] .violet,[data-theme=dark] .blue,[data-theme=dark] .peach,[data-theme=dark] .green{background:var(--soft);color:var(--accent)}@media(max-width:1150px){.editor-grid{grid-template-columns:170px minmax(250px,1fr) 285px;height:calc(100dvh - 240px)}.advanced-tools{gap:4px}.text-button{font-size:13px;padding:7px}.workspace-toolbar{gap:4px}.header-nav{margin-left:0;font-size:13px}.stage-heading{flex-direction:column;align-items:flex-start}.working .sinseti-logo{width:120px}}@media(max-width:850px){.editor-grid{grid-template-columns:130px minmax(230px,1fr) 260px}.tool-cards{grid-template-columns:repeat(2,1fr)}.selection-tools,.selection-tools button{font-size:11px}.thumbnail-actions{gap:5px}.thumbnail-actions button{width:34px;height:34px}.settings-content{padding:18px}.working .app-header{height:72px}}@media(max-width:670px){h1{font-size:32px}.sinseti-logo,.working .sinseti-logo{width:109px}.brand{gap:8px}.service-name{font-size:13px;padding-left:8px}.app-header{padding:0 14px}.working .app-header{height:68px}.header-actions .primary{font-size:12px!important;padding:8px!important}.working .header-actions .icon-button{width:34px}.tool-card{padding:16px;min-height:245px}.tool-card h3{font-size:15px}.tool-card p,.card-link{font-size:12px}.hero-description{font-size:14px}.hero-eyebrow{font-size:9px}.upload-zone h2{font-size:18px}.tool-cards{gap:12px}.workspace-toolbar{padding:6px 8px;gap:4px;justify-content:flex-start}.toolbar-group .icon-button{width:38px;height:38px}.advanced-tools{width:100%;justify-content:flex-start}.advanced-tools .text-button{display:inline-flex!important;min-height:40px;font-size:12px}.advanced-tools .text-button:last-of-type{font-size:11px}.advanced-tools .unsaved{display:none}.editor-grid{display:flex;flex-direction:column;height:auto;min-height:0}.document-stage{order:1;height:64dvh;min-height:445px}.pages-panel{order:2;display:flex;flex-direction:column;max-height:none;padding:12px;gap:5px}.selection-tools{flex-direction:row;justify-content:space-between;margin:0;align-items:center;font-size:12px}.selection-tools button{font-size:12px;min-height:38px}.page-list{max-height:150px;min-height:140px;width:100%;padding-bottom:5px}.page-list li{min-width:84px}.thumbnail-actions button{width:36px;height:36px}.thumbnail-wrap .page-canvas{width:51px!important;max-height:75px}.thumbnail-label{font-size:12px}.settings-panel{order:3}.settings-content{padding:22px}.settings-title h2{font-size:17px}.settings-description,.field-label,.field-grid label,.settings-title p,.info-card p{font-size:14px}.settings-content .full,.settings-content select{font-size:14px;min-height:44px}.tool-tabs>button{font-size:13px}.tool-tabs{gap:20px;padding:0 18px;height:60px}.stage-heading{flex-direction:row}.stage-heading h2{font-size:16px}.stage-heading .segmented button{font-size:11px;padding:6px 8px}.canvas-note{font-size:11px}.wide-dialog{padding:24px 16px}.wide-dialog h2{font-size:21px}.dialog-actions button{flex:1;min-width:140px}.auto-workspace{gap:12px;padding:10px}.auto-workspace:has(.warp-result[style*="display: none"]) .quad-editor{max-width:100%}.quad-editor circle{r:23px;stroke-width:10}.text-options{flex-direction:column;gap:10px}.dialog .subtle-note{font-size:12px}.icon-button,.thumbnail-trash,.more-page{min-height:38px}.dialog-close{top:8px;right:8px}.page-context button{min-height:44px}.home-footer,.home-footer button{font-size:12px}.tool-card .tool-icon{width:43px;height:43px}}.quad-editor{flex:0 0 auto;width:min(38vw,340px);max-width:48%}.quad-editor img{width:100%;height:auto;max-height:none;object-fit:initial}.quad-editor:has(svg[aria-busy=true]) svg{pointer-events:none}@media(max-width:670px){.quad-editor{width:min(42vw,260px);min-width:115px}}.selection-tools{margin:6px 0 10px;padding:0 7px}.settings-title{margin-bottom:14px}.settings-title p:empty{display:none}.settings-content .settings-rule{margin:18px 0 14px}.dialog-footer{display:flex;justify-content:flex-end;gap:10px;margin-top:20px;padding-top:16px;border-top:1px solid var(--border)}.dialog-footer button{min-width:108px;min-height:44px}.clean-auto .auto-workspace{margin:16px 0 10px;max-height:54dvh}.clean-auto .dialog-actions{margin-top:10px}.compact-status{font-size:13px!important;color:var(--muted);line-height:1.5;margin:10px 0}.compact-warning{font-size:13px!important;color:var(--muted);line-height:1.6;margin-top:14px}.apply-confirmation,.apply-confirmation .confirm-check{margin-top:12px}.text-run-controls{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;margin-top:20px}.text-run-controls label{min-width:210px;flex:1;font-size:13px}.text-run-controls select{display:block;margin-top:6px}.text-run-controls button{min-height:42px}.compact-settings{margin:16px 0 12px;color:var(--muted);font-size:13px}.compact-settings summary{cursor:pointer;width:max-content;padding:3px 0}.compact-settings label{display:block;max-width:300px;margin:12px 0}.compact-settings select{margin-top:6px}.clean-text .field-label{margin-top:16px}.clean-text textarea{min-height:290px}.accuracy-note,.format-note{font-size:12px!important;line-height:1.6;color:var(--muted);margin:10px 0}.text-download-controls{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:10px;margin-top:18px}.text-download-controls button{min-height:44px}.format-select{width:160px;margin-left:auto}.format-select select{height:44px}.workspace-status{justify-content:flex-start}.settings-panel{padding-bottom:12px}@media(max-width:670px){.page-list{min-height:140px;overflow-x:auto}.text-run-controls{display:grid;grid-template-columns:1fr 1fr}.text-run-controls label{grid-column:1 / -1;width:100%}.text-run-controls button{font-size:13px;padding:10px}.text-download-controls{gap:8px}.text-download-controls button{flex:1}.format-select{width:120px;margin-left:0}.clean-text textarea{min-height:220px}.dialog-footer{padding-top:14px;margin-top:16px}.dialog-footer button{flex:1}.accuracy-note,.format-note{font-size:12px!important}}.page-canvas.editable{overflow:visible}.crop-mask{position:absolute;inset:0;overflow:hidden;pointer-events:none}.crop-shade{position:absolute;box-shadow:0 0 0 4000px #27305044}.crop-box{box-shadow:none}.crop-handle,.quad-handle{width:44px;height:44px;border:0;background:transparent;box-shadow:none;padding:0;touch-action:none;position:absolute;z-index:3}.crop-handle:before,.quad-handle:before{content:"";position:absolute;inset:15px;border:2px solid white;background:#51689f;box-shadow:0 0 0 1px #51689f;border-radius:3px}.crop-handle:focus-visible,.quad-handle:focus-visible{outline:2px solid #51689f;outline-offset:-8px;border-radius:50%}.crop-handle.nw{transform:translate(-50%,-50%)}.crop-handle.ne{transform:translate(50%,-50%)}.crop-handle.se{transform:translate(50%,50%)}.crop-handle.sw{transform:translate(-50%,50%)}.crop-handle.n{transform:translate(-50%,-50%)}.crop-handle.s{transform:translate(-50%,50%)}.crop-handle.e{transform:translate(50%,-50%)}.crop-handle.w{transform:translate(-50%,-50%)}.quad-handle{transform:translate(-50%,-50%);cursor:move}.quad-handle:before{border-radius:50%}.quad-editor svg{pointer-events:none}.auto-workspace{padding:24px}.document-magnifier{position:fixed;z-index:10000;border:2px solid #51689f;border-radius:50%;box-shadow:0 5px 22px #27305055;overflow:hidden;pointer-events:none;background:#fff;contain:strict}.document-magnifier canvas{display:block;width:100%;height:100%;image-rendering:pixelated}.lens-crosshair{position:absolute;inset:0;filter:drop-shadow(0 0 1px white)}.lens-crosshair:before,.lens-crosshair:after{content:"";position:absolute;background:#273050}.lens-crosshair:before{width:30px;height:1px;left:calc(50% - 15px);top:50%}.lens-crosshair:after{height:30px;width:1px;top:calc(50% - 15px);left:50%}.lens-caption{position:absolute;bottom:8px;left:50%;transform:translate(-50%);font-size:10px;white-space:nowrap;background:#fffd;padding:1px 7px;border-radius:8px;color:#273050}.lens-loading{position:absolute;inset:0;display:grid;place-items:center;font-size:12px;color:#273050}.lens-enter-active,.lens-leave-active{transition:opacity .16s ease}.lens-enter-from,.lens-leave-to{opacity:0}@media(prefers-reduced-motion:reduce){.lens-enter-active,.lens-leave-active{transition:none}}.download-fields{border:0;padding:0;margin:0;min-width:0}.download-dialog .compact-settings{margin:18px 0}.download-dialog progress{width:100%;margin-top:18px}.word-dialog iframe{border:1px solid var(--border);width:100%;height:48dvh;visibility:hidden;background:#fff}.word-dialog iframe.ready{visibility:visible}.batch-crop-dialog>select{max-width:330px}.batch-crop-dialog>progress{width:100%;margin-top:15px}.batch-crop-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:14px;max-height:45dvh;overflow:auto;margin:14px 0}.batch-crop-card{border:1px solid var(--border);border-radius:9px;padding:12px;background:var(--panel, white)}.batch-page-title{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.batch-compare{display:flex;gap:10px;justify-content:center;background:var(--stage);padding:10px;margin-top:8px}.batch-compare figure{margin:0;flex:1;text-align:center;min-width:0}.batch-compare img{display:block;max-width:100%;height:165px;object-fit:contain;margin:auto}.batch-compare figcaption{font-size:11px;margin-top:5px}.batch-crop-card p{font-size:12px}.batch-crop-card button{min-height:38px}.recognition-settings{margin:12px 0}.recognition-settings label{display:block}.recognition-settings select{margin-top:6px}@media(max-width:670px){.batch-crop-grid{grid-template-columns:1fr;max-height:42dvh}}.batch-crop-dialog{display:flex;flex-direction:column;max-height:calc(100dvh - 32px);overflow:hidden}.batch-crop-dialog .batch-crop-grid{flex:1 1 auto;min-height:90px;max-height:none}.batch-crop-dialog .dialog-footer{flex-shrink:0;margin-top:12px}.working{padding-bottom:86px}.working .editor-grid{height:calc(100dvh - 232px);min-height:530px;grid-template-columns:180px minmax(250px,1fr) 340px}.working .workspace-status{display:none}.workspace-toolbar{min-height:60px}.advanced-tools{gap:8px}.text-button.action-auto,.action-auto{background:#e6ecfa;color:#314f91;border:1px solid #bac9e9;border-radius:8px;padding:10px 13px;font-weight:650;min-height:44px}.text-button.action-text{background:#e7f3ee;color:#235f4c;border:1px solid #b5d6c8;border-radius:8px;padding:10px 13px;min-height:44px;font-weight:650}.text-button.action-delete{background:#fceced;color:#a52e3f;border:1px solid #eabcc3;border-radius:8px;padding:10px 13px;min-height:44px}.text-button.action-print{background:var(--accent);color:#fff;border-radius:8px;padding:10px 15px;min-height:44px;font-weight:650}.draft-badge{background:var(--surface);color:#3a6757;border:1px solid var(--border);padding:5px 11px;border-radius:20px;font-size:12px;white-space:nowrap}.draft-badge.changed{background:#fff5dd;color:#795715;border-color:#e9d59f}.stage-heading{padding:16px 22px}.canvas-viewport{padding:0 30px 28px}.interactive-page{position:relative;display:inline-flex;flex-shrink:0;touch-action:none;user-select:none}.page-interactions{position:absolute;inset:0;overflow:hidden;touch-action:none}.margin-guide{position:absolute;border:1px dashed #51689f38;pointer-events:none}.content-selection{position:absolute;border:1.5px solid #6481bb;cursor:move;touch-action:none;min-width:8px;min-height:8px}.content-selection.cropping{border-color:#3f74b9;outline:1px dashed #ffffffc0;outline-offset:-5px}.content-handle{position:absolute;width:44px;height:44px;padding:0;transform:translate(-50%,-50%);touch-action:none;z-index:3}.content-handle:after{content:"";width:11px;height:11px;background:#51689f;border:2px solid white;border-radius:3px;box-shadow:0 0 0 1px #51689f}.content-handle.nw{left:0;top:0;cursor:nwse-resize}.content-handle.ne{left:100%;top:0;cursor:nesw-resize}.content-handle.se{left:100%;top:100%;cursor:nwse-resize}.content-handle.sw{left:0;top:100%;cursor:nesw-resize}.redact-mode .page-interactions{cursor:crosshair}.redaction-outline,.redaction-drawing,.redaction-candidate{position:absolute;border:2px solid #bd4c57;pointer-events:none}.redaction-drawing{background:#8a203755}.redaction-candidate{pointer-events:auto;border:2px dashed #ce8d26;background:#ffe6a830;min-width:8px;min-height:8px;padding:0;cursor:pointer}.redaction-candidate.selected{border:2px solid #51689f;background:#51689f25}.redaction-candidate>span{position:absolute;top:-1px;left:-1px;background:#fff;color:#273050;line-height:18px;font-size:13px;padding:0 3px}.settings-panel{overflow-y:auto;padding-bottom:20px}.tool-tabs{height:62px;position:sticky;top:0;background:var(--surface);z-index:5}.tool-tabs>button{flex:1}.unified-tools{padding:16px 20px 30px}.editor-fields{padding:0;border:0;margin:0;min-width:0}.editor-mode-tools{display:grid;grid-template-columns:1fr 1fr 1fr;gap:4px;background:var(--stage);border-radius:9px;padding:4px;margin-bottom:17px}.editor-mode-tools button{flex-direction:column;font-size:11px;gap:6px;padding:10px 2px;border-radius:6px;min-height:64px}.editor-mode-tools button.active{background:var(--surface);color:var(--accent);box-shadow:0 1px 5px #27305018;font-weight:650}.transform-tools{display:grid;grid-template-columns:1fr 1fr 44px 44px;gap:7px;margin-bottom:18px}.transform-tools .secondary{padding:7px 4px;min-height:44px;font-size:13px}.transform-tools [aria-pressed=true]{background:var(--soft);border-color:var(--accent);color:var(--accent)}.tool-hint,.redaction-explanation{color:var(--muted);font-size:12px;line-height:1.65;margin:10px 0}.redaction-explanation{padding:10px;background:var(--soft);border-radius:6px}.editor-section{border-top:1px solid var(--border);margin-top:18px;padding-top:14px}.editor-section summary{cursor:pointer;font-weight:650;font-size:14px;margin-bottom:14px}.editor-section .field-label{margin-top:12px}.editor-section .field-grid{margin:12px 0;gap:10px}.orientations{margin-top:12px}.alignment-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;max-width:180px;margin:8px 0 16px}.alignment-grid button{border:1px solid var(--border);height:44px;display:grid;padding:8px;border-radius:5px}.alignment-grid button>span{display:block;width:15px;height:19px;border:1px solid var(--accent);background:#809ad855}.alignment-grid button.active{background:var(--soft);border-color:var(--accent)}.editor-commit-bar{position:fixed;bottom:0;left:0;right:0;z-index:25;background:var(--surface);border-top:1px solid var(--border);box-shadow:0 -5px 22px #27305008;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 24px max(13px,env(safe-area-inset-bottom));min-height:80px}.commit-status{display:flex;align-items:center;gap:9px;font-size:13px;color:var(--muted)}.commit-actions{display:flex;gap:10px}.commit-actions>button{min-height:48px;padding:11px 23px;font-size:14px}.apply-editor{min-width:168px;font-weight:650}.apply-scope{display:flex;align-items:center;gap:10px;margin-left:auto}.apply-scope>span{font-size:11px;color:var(--muted)}.apply-scope select{width:190px;height:44px;font-size:13px}.close-document{margin:15px 20px 0;color:var(--muted);font-size:12px}.redaction-tools h3{display:flex;align-items:center;gap:8px;font-size:15px;margin-bottom:12px}.redact-criteria{display:flex;flex-wrap:wrap;gap:14px;margin:14px 0}.redact-criteria label,.candidate-list label{display:flex;gap:9px;align-items:center;font-size:13px;cursor:pointer;min-height:40px}.redact-criteria input,.candidate-list input{width:18px;height:18px;flex-shrink:0;accent-color:var(--accent)}.candidate-actions{display:flex;justify-content:space-between;gap:8px}.candidate-actions .text-button{font-size:12px;min-height:44px}.candidate-list{max-height:240px;overflow:auto;border:1px solid var(--border);padding:5px 10px;border-radius:7px}.candidate-list span{overflow-wrap:anywhere}.redaction-list>div{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 0;border-bottom:1px solid var(--border)}.redaction-list span{overflow:hidden;text-overflow:ellipsis;font-size:13px}.redaction-list small{display:block;color:var(--muted);font-size:10px}.auto-inline{border:1px solid var(--border);border-radius:9px;padding:12px;margin-top:16px}.inline-quad{position:relative;margin:24px 5px 14px;touch-action:none}.inline-quad img{display:block;width:100%;height:auto}.inline-quad svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}.inline-quad polygon{fill:#51689f10;stroke:#51689f;stroke-width:6;vector-effect:non-scaling-stroke}.auto-corner{position:absolute;transform:translate(-50%,-50%);width:44px;height:44px;z-index:2;touch-action:none;padding:0}.auto-corner:after{content:"";width:12px;height:12px;background:var(--accent);border:2px solid white;box-shadow:0 0 0 1px var(--accent);border-radius:50%}.leave-dialog p{font-size:14px;line-height:1.8;color:var(--muted);margin-top:15px}.leave-actions{display:flex;flex-direction:column;gap:10px;margin-top:24px}.leave-actions>button{min-height:46px}[data-theme=dark] .action-auto{background:#273957;color:#cedcfc;border-color:#4c6494}[data-theme=dark] .text-button.action-text{background:#203e34;color:#c1e4d5;border-color:#476e5d}[data-theme=dark] .text-button.action-delete{background:#462a33;color:#f4bbc3;border-color:#79404b}@media(max-width:1150px){.working .editor-grid{grid-template-columns:125px minmax(200px,1fr) 310px}.apply-scope>span{display:none}.commit-status{font-size:12px}}@media(max-width:850px)and (min-width:671px){.working .editor-grid{grid-template-columns:95px minmax(180px,1fr) 285px}.unified-tools{padding:14px}.canvas-viewport{padding-left:22px;padding-right:22px}}@media(max-width:670px){.working{padding-bottom:150px}.working .editor-grid{height:auto;min-height:0;display:flex}.working .document-stage{order:0;height:58dvh;min-height:360px;position:sticky;top:0;z-index:9;border-bottom:1px solid var(--border)}.working .settings-panel{order:1;overflow:visible;padding-bottom:15px}.working .pages-panel{order:2;max-height:215px}.stage-heading{padding:12px 16px}.stage-heading h2{font-size:15px}.stage-heading .eyebrow{font-size:9px}.canvas-viewport{padding:0 24px 16px}.paper-meta{margin-bottom:8px;font-size:10px}.draft-badge{font-size:10px}.tool-tabs{position:static;padding:0 16px;gap:0}.unified-tools{padding:16px 20px 30px}.editor-mode-tools button{font-size:12px}.transform-tools{grid-template-columns:1fr 1fr 50px 50px}.editor-section .field-grid{gap:14px}.alignment-grid{grid-template-columns:repeat(3,48px);max-width:none}.editor-commit-bar{padding:10px 14px max(10px,env(safe-area-inset-bottom));gap:8px;flex-wrap:wrap;min-height:84px}.commit-status{width:100%;font-size:11px;order:0}.apply-scope{order:1;flex:1;margin:0;min-width:105px}.apply-scope select{width:100%;padding:8px 5px;height:44px;font-size:11px}.commit-actions{order:2;flex:1;gap:7px;justify-content:flex-end}.commit-actions>button{padding:10px 13px;min-height:46px;font-size:13px}.commit-actions .apply-editor{min-width:120px}.advanced-tools{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:8px}.advanced-tools .text-button{width:100%;font-size:12px!important;padding:8px;min-height:44px;justify-content:center}.workspace-toolbar{padding:10px 12px}.working .app-header{padding:14px}.inline-quad{max-width:280px;margin-left:auto;margin-right:auto}.notice-toast,.error-toast{bottom:148px;max-width:calc(100vw - 24px)}}@media(max-width:670px){.working .document-stage{height:46dvh;min-height:265px}.settings-panel button,.settings-panel input,.settings-panel select,.settings-panel summary{scroll-margin-top:max(280px,48dvh);scroll-margin-bottom:150px}.settings-panel{scroll-margin-top:max(280px,48dvh)}}.canvas-viewport:not(.zoomed-preview){overflow:hidden}.canvas-viewport.zoomed-preview{overflow:auto}.canvas-viewport.zoomed-preview .interactive-page{align-self:flex-start;margin-left:auto;margin-right:auto}.redaction-search{margin:18px 0 12px}.redaction-search-row{display:flex;align-items:stretch;gap:8px}.redaction-search-row input{flex:1;min-width:0}.redaction-search-row .secondary{min-height:44px;padding:8px 12px;white-space:nowrap}
