*{box-sizing:border-box}body{margin:0;background:#f6f7f3;color:#193c35;font:15px system-ui,sans-serif}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button{font:inherit;border:1px solid #d6dfd9;background:#fff;border-radius:9px;padding:11px 16px;cursor:pointer;color:inherit}button:hover{border-color:#28705a}button:disabled{opacity:.4;cursor:default}.primary{background:#1c5946;color:white;border:0;padding:15px 23px}.primary:hover{background:#114632}header{height:86px;display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid #dfe5df;padding:0 5%}.brand{text-decoration:none;color:inherit;font-size:22px;font-weight:750;display:flex;align-items:center;gap:10px}.brand span{background:#1c5946;color:#fff;padding:4px 12px;border-radius:10px}.privacy{font-size:12px;color:#4e7767}main{max-width:1440px;margin:auto;padding:45px 5%}#welcome{text-align:center}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:700;color:#5c806e}h1{font-size:clamp(38px,5vw,66px);line-height:1.12;letter-spacing:-2.5px;margin:23px 0}h1 em{font-family:Georgia,serif;font-weight:400;color:#48816a}p{color:#64776d;line-height:1.7}#drop{margin:32px auto;max-width:730px;padding:35px;border:1.5px dashed #a8c2af;border-radius:18px;background:#fff;transition:.2s}#drop.over{background:#e8f3eb}.fileicon{font-size:13px;font-weight:800;display:grid;place-items:center;width:48px;height:58px;margin:auto;background:#eaf2eb;border-radius:7px}h2{font-size:23px;margin:17px 0 6px}#drop p{margin:8px 0 23px}#drop small{display:block;margin-top:16px}small{color:#768579;font-size:11px;line-height:1.7}.features{display:flex;text-align:left;max-width:730px;margin:38px auto;gap:35px}.features>div{flex:1}.features b{font-size:13px}.features p{font-size:12px}footer{padding:25px 5%;border-top:1px solid #dfe5df;display:flex;justify-content:space-between;font-size:11px;color:#6c8072}.editorhead{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}.editorhead h2{word-break:break-all}.workspace{display:grid;grid-template-columns:260px 1fr;border:1px solid #dfe5df;border-radius:14px;overflow:hidden;background:#fff}aside{padding:20px;border-right:1px solid #e5ebe5}aside h3{margin:0 0 18px;font-size:14px}.tool{display:block;width:100%;margin:8px 0;text-align:left;font-size:13px}.tool.active{background:#e5f0e8;border-color:#81a68c}label{display:block;font-size:12px;margin-top:19px}textarea,input{display:block;margin-top:8px;width:100%;padding:9px;border:1px solid #d9e2dc;border-radius:6px;font:inherit}input[type=color]{height:38px;padding:4px}.fields{display:flex;gap:12px}.fields label{width:50%}#undo{width:100%;font-size:12px;margin-top:20px}.hint{background:#f2f5ef;border-radius:9px;padding:13px;margin:22px 0 15px;font-size:12px}.hint p{margin-bottom:0}.document{background:#e8ece6;min-width:0;padding-bottom:15px}nav{display:flex;gap:16px;align-items:center;justify-content:center;padding:12px;background:#f9faf7;font-size:12px}.zoom{color:#829283}.paperwrap{padding:25px;overflow:auto;text-align:center;max-height:78vh}canvas{max-width:100%;height:auto;background:white;box-shadow:0 5px 20px #253d3117;touch-action:none;cursor:crosshair}.tip{text-align:center;font-size:11px;padding:0 10px}#status{color:#405f50;margin-top:16px;font-size:13px}body.busy{cursor:progress}@media(max-width:750px){header{height:72px;padding:0 5%}.privacy{display:none}main{padding-top:30px}.workspace{grid-template-columns:1fr}aside{border-right:0}.tool{display:inline-block;width:auto}aside small{display:block}.document{min-height:300px}.features{gap:12px}.editorhead{align-items:start}.editorhead .primary{font-size:12px;padding:12px}footer{gap:20px}#drop{padding:25px 14px}.paperwrap{padding:12px}}

.history{display:flex;gap:8px;margin-top:18px}.history button,#undo{margin:0;width:50%;font-size:24px;padding:4px}#delete{width:100%;margin-top:10px;font-size:12px}.precision{font-size:11px;margin-top:18px}.precision label{margin-top:8px}canvas:focus{outline:2px solid #85b39a;outline-offset:3px}
select{font:inherit;background:white;color:#193c35;border:1px solid #d6dfd9;border-radius:8px;padding:10px;max-width:140px}header .privacy{margin-left:auto}#guide{max-width:800px;margin:55px auto 25px;text-align:left;padding:25px;border-top:1px solid #dfe5df}#guide h2{font-size:21px}#guide details{padding:15px 0;border-bottom:1px solid #dfe5df}summary{cursor:pointer;font-weight:600;line-height:1.5}.mobilehelp{display:none}nav{flex-wrap:wrap;gap:8px}nav button{padding:8px 12px;min-height:40px}#pan[aria-pressed=true]{background:#d9eadc}.paperwrap{scrollbar-gutter:stable;overscroll-behavior:contain}canvas{display:block;margin:auto}
@media(max-width:750px){header{flex-wrap:wrap;height:auto;min-height:76px;padding:12px 4%;gap:8px}.brand{font-size:18px}.brand span{padding:3px 9px}header select{margin-left:auto;font-size:12px;padding:8px;max-width:108px}header #new{font-size:12px;padding:9px}.workspace{display:flex;flex-direction:column}.document{order:0;position:relative}aside{order:1;padding:16px}.paperwrap{max-height:58vh;min-height:280px;overflow:auto}.mobilehelp{display:block;font-size:11px;padding:0 12px;line-height:1.5}.tip{display:none}.tool{font-size:12px;padding:11px 9px;min-height:44px}aside textarea{min-height:75px}.history{max-width:220px}.precision{max-width:340px}input,textarea{font-size:16px}#guide{padding:15px 0}.editorhead{margin-bottom:16px}main{padding-left:4%;padding-right:4%}.features{flex-wrap:wrap}.features>div{min-width:130px}footer{flex-wrap:wrap}nav{position:sticky;top:0;z-index:2}nav button{min-height:44px}#pan{font-size:11px}#prev,#next{padding:8px}}
.languages{display:flex;flex-wrap:wrap;justify-content:center;background:none;gap:14px;padding:12px 0}.languages a,.guide-link{color:#1c5946;text-underline-offset:3px}.guide-link{display:inline-block;margin-top:12px}.guidepage{max-width:820px}.guidepage h1{font-size:40px}.guidepage .primary{color:white;text-decoration:none}.guidepage p{margin:24px 0}footer{flex-wrap:wrap}footer .languages{width:100%;font-size:12px}nav.languages a{padding:5px}#language:focus-visible,button:focus-visible,a:focus-visible{outline:3px solid #86b89c;outline-offset:3px}
.pages-panel{background:#fff;border:1px solid #dfe5df;border-radius:12px;margin-bottom:16px;padding:12px}.pages-title{display:flex;align-items:center;justify-content:space-between;font-size:13px}.pages-title button{font-size:12px;padding:8px 12px}#thumbnails{display:flex;gap:10px;overflow-x:auto;padding-top:12px}.page-card{flex:none;border:1px solid #e0e7df;border-radius:8px;padding:5px;width:100px}.page-card.selected{border:2px solid #42866a;background:#f0f7ee}.thumb{padding:2px;width:100%;border:0;background:none}.thumb img{width:52px;height:68px;object-fit:contain;display:block;margin:auto}.thumb span{font-size:11px}.page-controls{display:flex;justify-content:center;gap:2px}.page-controls button{padding:2px 6px;border:0;font-size:15px;background:none}.quality-label{margin:0 0 0 auto;font-size:11px}.quality-label select{display:block;margin-top:4px;font-size:12px;padding:8px;max-width:180px}.extra-tools{margin-top:15px;border-top:1px solid #dfe5df;padding-top:12px;display:grid;gap:8px}.extra-tools button{font-size:12px}.check{display:flex;gap:8px;align-items:center;font-size:12px;margin-top:6px}.check input{width:auto;margin:0}#floating{position:fixed;z-index:20;background:#fff;border:1px solid #c6d7cd;box-shadow:0 5px 25px #14332426;border-radius:10px;padding:5px;display:flex;gap:4px;align-items:center;max-width:calc(100vw - 16px)}#floating[hidden]{display:none}#floating button{padding:6px 9px;font-size:14px;min-width:32px;height:35px}#floatbold[aria-pressed=true]{background:#d6ebdf}#floating input{margin:0;padding:4px;font-size:12px}#floatsize{width:54px;height:35px}#floatcolor{width:33px;height:35px}dialog{border:1px solid #d3e0d5;border-radius:16px;padding:25px;width:min(650px,94vw);color:#193c35}dialog::backdrop{background:#183d3280}dialog p{font-size:13px}#signaturecanvas{width:100%;height:180px;border:1px dashed #9bbba7;border-radius:9px;box-shadow:none;touch-action:none;background:#f9fbf8}.signature-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:15px}#tour{margin:0 0 0 10px}#tourbar{position:sticky;top:0;z-index:25;background:#e5f1e6;border:1px solid #bad3bd;padding:12px;border-radius:10px;margin-bottom:16px;display:flex;align-items:center;gap:15px;font-size:13px}#tourbar[hidden]{display:none}#tourprogress{flex:1;min-width:40px;accent-color:#286247}.pulse{animation:pulse 1s infinite}@keyframes pulse{50%{box-shadow:0 0 0 7px #458d6c36}}@media(prefers-reduced-motion:reduce){.pulse{animation:none}}@media(max-width:750px){.editorhead{flex-wrap:wrap;gap:10px}.editorhead>div{width:100%}.quality-label{margin-left:0;flex:1}.quality-label select{max-width:100%;width:100%}.editorhead #download{align-self:end;min-height:44px}.pages-panel{padding:10px}.thumb img{height:48px;width:40px}.page-card{width:85px}.page-controls button{padding:5px 7px;min-height:34px}#floating{gap:2px;padding:4px}#floating button{padding:6px;min-width:30px;height:39px}#floatsize{width:45px}#floating input{font-size:16px}#tour{margin:12px 0 0}#tourbar{flex-wrap:wrap}#tourbar strong{width:100%}.signature-actions{flex-wrap:wrap}.signature-actions button{font-size:12px}#signaturecanvas{height:150px}.pages-title button{min-height:44px}}
[hidden]{display:none!important}
.drag-hint{font-size:11px;margin:8px 0 0;line-height:1.5}.thumb{cursor:grab;touch-action:pan-y;user-select:none;-webkit-user-select:none}.thumb:active{cursor:grabbing}.thumb img{pointer-events:none;user-select:none}.page-card{position:relative}.page-card.dragging{opacity:.3}.page-card.drop-before:before,.page-card.drop-after:after{content:'';position:absolute;top:0;bottom:0;width:4px;background:#287452;border-radius:3px;pointer-events:none}.page-card.drop-before:before{left:-7px}.page-card.drop-after:after{right:-7px}.page-drag-ghost{position:fixed;z-index:1000;pointer-events:none;border:2px solid #287452;border-radius:8px;padding:5px;background:#f2faf1;box-shadow:0 10px 28px #183e3540;transform:rotate(3deg)}.page-drag-ghost .thumb{width:100%;display:block}.page-drag-ghost .page-controls{visibility:hidden}.reordering-pages{cursor:grabbing;user-select:none}#thumbnails{padding-left:7px;padding-right:7px;scroll-behavior:auto}
/* Compact workbench */
header{height:68px;padding:0 4%}main{max-width:1540px;padding:30px 4%}#welcome{max-width:1020px;margin:auto}#welcome h1{font-size:clamp(34px,4.1vw,57px);letter-spacing:-2px;margin:20px 0}#welcome>p{max-width:680px;margin:18px auto;font-size:16px}.home-capabilities{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin:28px 0 0}.home-capabilities>div{display:flex;align-items:center;gap:8px;border:1px solid #dce6dc;background:#edf2e9;padding:10px 14px;border-radius:30px;font-size:12px;font-weight:550}.home-capabilities svg{width:18px;height:18px;flex:none}#drop{margin:24px auto;padding:26px;max-width:760px;background:linear-gradient(150deg,#fff,#f7faf4);border-radius:20px}.home-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}.home-actions #tour{margin:0}.text-button{border:0;background:none;padding:8px;color:#2c6b53;font-size:12px;text-decoration:underline;text-underline-offset:3px}.features{margin:32px auto}.features>div{border-left:2px solid #c2d4bc;padding-left:14px}#guide{margin-top:32px}
body.editing main{padding-top:18px;padding-bottom:14px}body.editing footer{display:none}.editorhead{margin:0 0 15px;gap:14px;align-items:center}.editorhead .eyebrow{font-size:9px;letter-spacing:1.5px}.editorhead h2{font-size:19px;margin:5px 0 0;max-width:520px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.editorhead>div{min-width:0}.editorhead .primary{padding:12px 20px;font-size:13px}.quality-label{margin:0 0 0 auto}.quality-label select{padding:8px;font-size:12px}
.main-tools{display:flex;align-items:center;gap:6px;padding:8px;background:#fff;border:1px solid #dce5da;border-radius:13px;box-shadow:0 3px 14px #26453305}.main-tools .tool{width:auto;min-width:82px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;margin:0;padding:9px 13px;border:1px solid transparent;background:transparent;font-size:11px;border-radius:9px;line-height:1.2}.main-tools .tool svg{width:21px;height:21px}.main-tools .tool:hover{background:#f2f6ef}.main-tools .tool.active{background:#e5efdf;border-color:#bdd1b5;color:#205941}.main-tools .history{margin:0 0 0 9px;max-width:none;padding-left:12px;border-left:1px solid #e1e8df;gap:3px}.main-tools .history button{margin:0;width:36px;min-width:36px;height:38px;font-size:22px;border:0;background:#f4f6f1;padding:2px}.main-tools .help-button{margin-left:auto;display:flex;align-items:center;gap:7px;font-size:12px;padding:11px;border-color:#c6d9bd;background:#f3f8ed;white-space:nowrap}.help-button svg{width:19px;height:19px}.context-help{display:flex;align-items:center;gap:8px;padding:9px 3px;min-height:42px}.context-help>svg{width:15px;height:15px;flex:none;color:#618657}.context-help #help{font-size:11px;line-height:1.45;margin:0;color:#6a7b6b}.context-help .text-button{margin-left:auto;white-space:nowrap;padding:4px;font-size:11px}
.workspace{display:grid;grid-template-columns:112px minmax(0,1fr) 232px;gap:12px;align-items:stretch;height:calc(100dvh - 290px);min-height:380px;max-height:1000px;border:0;background:transparent;overflow:hidden;border-radius:0}.workspace .pages-panel{order:0;height:100%;min-height:0;margin:0;padding:9px 6px;border:1px solid #dce5da;background:#fff;border-radius:12px;display:flex;flex-direction:column;overflow:hidden}.pages-title{flex-direction:column;gap:9px;align-items:stretch;padding:4px}.pages-title>b{font-size:12px}.pages-title #merge{font-size:10px;padding:7px 5px;min-height:32px;line-height:1.3}.pages-panel .drag-hint{display:none}#thumbnails{display:flex;flex-direction:column;align-items:center;gap:9px;overflow-y:auto;overflow-x:hidden;flex:1;min-height:0;padding:9px 5px}.page-card{width:86px;padding:4px}.thumb img{width:44px;height:61px}.thumb span{font-size:10px}.page-controls{gap:1px}.page-controls button{padding:2px 7px;min-height:25px}.page-card.drop-before:before{left:0;right:0;top:-6px;bottom:auto;width:auto;height:3px}.page-card.drop-after:after{left:0;right:0;bottom:-6px;top:auto;width:auto;height:3px}
.workspace .document{order:1;height:100%;min-height:0;display:flex;flex-direction:column;border:1px solid #d8e1d3;border-radius:12px;overflow:hidden;background:#e8ece4;padding:0}.document nav{flex:none;padding:8px;gap:7px;background:#f8faf6;border-bottom:1px solid #dce5d7}.document nav button{padding:6px 11px;min-height:32px;height:32px;font-size:12px}.document nav #pan{font-size:11px}.paperwrap{flex:1;min-height:0;max-height:none!important;padding:20px;overflow:auto}.document .tip{flex:none;margin:0;padding:7px;font-size:10px;border-top:1px solid #dce4d8;color:#7d8a77;line-height:1.4}.document .mobilehelp{display:none}
.workspace aside.inspector{order:2;height:100%;min-height:0;max-height:100%;overflow-y:auto;border:1px solid #dce5da;border-radius:12px;padding:16px;background:#fff;scrollbar-width:thin}.inspector h3{font-size:13px;margin:0 0 7px}.inspector-intro{font-size:11px;line-height:1.5;margin:0 0 10px;color:#82907d}.inspector label{margin-top:12px;font-size:11px}.inspector textarea{margin-top:6px;padding:10px;font-size:13px;resize:vertical;min-height:70px;max-height:150px}.inspector input{margin-top:5px;padding:7px;font-size:12px;height:34px}.inspector input[type=color]{padding:3px}.inspector .fields{gap:10px}.inspector #delete{margin:14px 0 8px;padding:9px;font-size:11px;width:100%;min-height:34px}.advanced-settings{margin-top:7px;border-top:1px solid #e3e9df;padding-top:11px}.advanced-settings summary{font-size:11px;font-weight:550;color:#668359}.advanced-settings .precision{margin:12px 0 0}.advanced-settings .check{display:flex;gap:8px;margin:13px 0}.advanced-settings .check input{height:auto;margin:0}.editor-note{font-size:10px;color:#87917e;text-align:center;margin:9px 0 0}.editing #status{font-size:12px;margin-top:10px;line-height:1.5}
#helpdialog{width:min(800px,94vw);max-height:88dvh;padding:26px;border:1px solid #d1dfc8;border-radius:20px;overflow:auto}#helpdialog::backdrop{background:#142c27a6;backdrop-filter:blur(3px)}.help-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.help-heading h2{font-size:24px;margin:0}.help-heading button{width:36px;height:36px;padding:0;font-size:24px;background:#f3f6ef;border:0}.help-heading+h3,#helpdialog h3{font-size:13px;margin:24px 0 13px}.onboarding-steps{list-style:none;padding:0;counter-reset:steps;display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.onboarding-steps li{counter-increment:steps;background:#eff5e9;border-radius:12px;padding:15px;font-size:12px;color:#536d50;line-height:1.6}.onboarding-steps li:before{content:counter(steps);display:grid;place-items:center;background:#2c6247;color:white;width:24px;height:24px;border-radius:50%;margin-bottom:9px;font-size:11px}.help-tools{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.help-tools>div{border:1px solid #e0e7da;border-radius:10px;padding:13px;display:grid;grid-template-columns:24px 1fr;gap:7px 9px}.help-tools svg{width:21px;height:21px;color:#4c805e}.help-tools b{font-size:12px;align-self:center}.help-tools p{grid-column:2;font-size:11px;line-height:1.6;margin:0}.important-info{padding:16px;background:#f5f6f0;border-radius:12px;margin:20px 0}.important-info>b{font-size:12px}.important-info small{display:block;margin-top:8px;font-size:11px}.important-info p{font-size:11px;margin:10px 0 0}.important-info #help-pages{margin-top:10px}#helpgotit{display:block;margin-left:auto;padding:12px 24px;font-size:13px}
@media(min-width:751px) and (max-width:1050px){.workspace{grid-template-columns:94px minmax(0,1fr) 205px;gap:8px}.main-tools .tool{min-width:66px;padding:9px;font-size:10px}.main-tools .help-button{font-size:11px;padding:9px}.main-tools .history{margin-left:3px;padding-left:6px}.main-tools .history button{min-width:30px;width:30px}.workspace aside.inspector{padding:12px}.editorhead h2{max-width:350px}}
@media(max-width:750px){header{height:auto;min-height:64px;padding:10px 4%}main{padding:24px 4%}#welcome h1{font-size:35px;letter-spacing:-1.5px;line-height:1.15}#welcome>p{font-size:14px;line-height:1.7}.home-capabilities{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:22px}.home-capabilities>div{justify-content:center;padding:10px 6px;font-size:10px;gap:6px}.home-capabilities svg{width:16px;height:16px}#drop{padding:24px 13px;margin:20px 0}.home-actions{gap:8px}.home-actions button{font-size:11px;padding:11px}.features{gap:12px;flex-wrap:nowrap}.features>div{min-width:0}.features b{font-size:10px}.features p{font-size:10px;line-height:1.6}.features>div{padding-left:8px}.editing main{padding-top:14px!important}.editorhead{gap:9px;flex-wrap:wrap;margin-bottom:12px}.editorhead>div{width:100%}.editorhead h2{max-width:100%;font-size:17px}.editorhead .quality-label{margin:0;flex:1;min-width:0;display:flex;align-items:center;gap:8px;font-size:10px}.editorhead .quality-label select{margin:0;width:auto;max-width:140px;flex:1;font-size:11px;padding:8px}.editorhead .primary{font-size:11px;padding:10px 12px;min-height:38px}.main-tools{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;padding:7px}.main-tools .tool{min-width:0;padding:9px 4px;font-size:11px;flex-direction:row;gap:6px;min-height:42px}.main-tools .tool svg{width:18px;height:18px}.main-tools .history{grid-column:1;margin:0;border:0;padding:0;gap:3px}.main-tools .history button{height:34px;min-width:0;width:50%;font-size:20px}.main-tools .help-button{grid-column:2/4;margin:0;justify-content:center;padding:7px;font-size:11px;min-height:34px}.context-help{align-items:flex-start;padding:9px 2px;gap:6px}.context-help #help{font-size:10px}.context-help .text-button{display:none}.context-help>svg{margin-top:2px}.workspace{display:grid;grid-template-columns:1fr;height:auto;min-height:0;max-height:none;gap:10px;overflow:visible}.workspace .pages-panel{height:auto;padding:7px 9px;overflow:visible;display:block}.pages-title{flex-direction:row;align-items:center;padding:0}.pages-title #merge{min-height:30px;padding:6px 9px;font-size:10px}#thumbnails{flex-direction:row;justify-content:flex-start;align-items:stretch;overflow-x:auto;overflow-y:hidden;max-height:125px;min-height:0;padding:8px 5px 2px;gap:8px}.page-card{width:70px;padding:3px;flex:none}.thumb img{height:39px;width:29px}.thumb span{font-size:9px}.page-controls button{font-size:13px;padding:3px 6px;min-height:24px}.page-card.drop-before:before{top:0;bottom:0;left:-5px;right:auto;width:3px;height:auto}.page-card.drop-after:after{top:0;bottom:0;right:-5px;left:auto;width:3px;height:auto}.workspace .document{height:58dvh;min-height:330px;max-height:720px;order:1}.document nav{padding:6px;gap:5px}.document nav button{min-height:36px;height:36px;padding:6px 10px}.document nav #pan{font-size:10px}.document nav #pageinfo,.document nav #zoomvalue{font-size:10px}.paperwrap{padding:13px}.document .tip{display:none}.workspace aside.inspector{height:auto;max-height:none;overflow:visible;padding:13px;order:2;display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.inspector h3,.inspector-intro,.inspector>label,.inspector #delete,.inspector>.advanced-settings{grid-column:1/-1}.inspector .fields{grid-column:1/-1}.inspector h3{margin:0}.inspector-intro{margin:4px 0 0;font-size:10px}.inspector textarea{min-height:60px;max-height:120px;font-size:16px}.inspector input{font-size:16px;height:36px}.inspector #delete{margin-top:12px}.editor-note{font-size:9px;margin-top:12px}#helpdialog{padding:19px;max-height:90dvh}.help-heading h2{font-size:21px}.onboarding-steps{grid-template-columns:1fr;gap:8px}.onboarding-steps li{padding:12px;display:flex;align-items:flex-start;gap:10px;font-size:11px}.onboarding-steps li:before{flex:none;margin:0}.help-tools{grid-template-columns:1fr;gap:8px}.help-tools>div{padding:11px}.help-tools p{font-size:11px}.important-info{padding:12px}}
@media(min-width:751px){.pages-panel .thumb{touch-action:none}}@media(max-width:750px){.main-tools{position:sticky;top:0;z-index:9;box-shadow:0 4px 18px #183b2510}}
.help-tools p,.important-info small,.important-info p{font-size:12px}.inspector label{font-size:12px}.context-help #help{font-size:12px}@media(max-width:750px){.context-help #help{font-size:11px}}
.editorhead .add-pdf-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;background:#e2f0d3;color:#204d35;border:1px solid #9dbd84;border-radius:10px;padding:8px 14px;font-size:13px;font-weight:650;box-shadow:0 2px 6px #244a2810;white-space:nowrap;margin-left:auto}.editorhead .add-pdf-button:hover{background:#d4e9bf;border-color:#628f4d;box-shadow:0 3px 10px #244a2820}.add-pdf-plus{display:grid;place-items:center;width:26px;height:26px;border-radius:7px;background:#2a6042;color:white;font-size:24px;line-height:1;font-weight:400;flex:none}.editorhead .quality-label{margin-left:0}.editorhead .eyebrow{letter-spacing:1px}@media(max-width:1050px) and (min-width:751px){.editorhead h2{max-width:290px}.editorhead .add-pdf-button{padding:8px 10px;font-size:12px}.editorhead .primary{padding:12px 14px}}@media(max-width:750px){.editorhead .add-pdf-button{width:100%;margin:0;padding:9px 14px;font-size:13px;min-height:44px}.editorhead .quality-label{margin:0}.add-pdf-plus{width:25px;height:25px}.pages-title{min-height:20px}}
.pages-panel .pages-title #merge.add-pdf-button{display:flex;align-items:center;justify-content:center;gap:5px;white-space:normal;background:#e2f0d3;color:#204d35;border:1px solid #9dbd84;border-radius:8px;padding:8px 4px;width:100%;font-size:10px;font-weight:650;line-height:1.4;min-height:54px}.pages-panel #merge.add-pdf-button:hover{background:#d4e9bf;border-color:#628f4d}.pages-panel .add-pdf-plus{width:21px;height:24px;border-radius:5px;font-size:22px}.editorhead .quality-label{margin-left:auto}@media(max-width:750px){.pages-panel .pages-title #merge.add-pdf-button{width:auto;max-width:230px;padding:8px 10px;min-height:40px;font-size:11px;gap:7px}.editorhead .quality-label{margin-left:0}}
/* Refined navigation and clear action hierarchy */
header{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:24px;height:78px;padding:0 4%;background:#fbfcf8;border-bottom:1px solid #e1e7dc}.brand{justify-self:start;font-size:21px;letter-spacing:-.4px}.brand>span{border-radius:11px;padding:5px 12px;font-size:24px;box-shadow:0 3px 8px #1d4c3810}.privacy{justify-self:center;margin:0!important;display:flex;align-items:center;gap:7px;color:#667960;font-size:11px;white-space:nowrap}.privacy svg{width:16px;height:16px;color:#618155;flex:none}.header-actions{justify-self:end;display:flex;align-items:center;gap:10px}.header-actions #language{margin:0;max-width:130px;border:1px solid #dce4d7;background:#fff;border-radius:11px;font-size:12px;height:41px;padding:8px 11px;color:#4a6147}.header-actions #new{height:41px;display:flex;align-items:center;justify-content:center;gap:8px;padding:10px 15px;background:#e9f0e2;border:1px solid #c9d9bc;border-radius:11px;font-size:12px;font-weight:600;white-space:nowrap;color:#2c563c}.header-actions #new svg{width:17px;height:17px}.header-actions #new:hover{background:#dae9ce;border-color:#acc897}.home-trust{display:flex;justify-content:center;gap:9px;margin:20px 0 8px}.trust-chip{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:650;color:#315d3c;background:#e6efdd;border:1px solid #d2e2c7;padding:6px 11px;border-radius:30px}.trust-chip svg{width:14px;height:14px}.home-capabilities{margin-top:21px}#welcome h1{font-size:clamp(34px,4vw,55px)}#welcome>p{font-size:15px;line-height:1.8;max-width:760px}.home-actions{max-width:760px;margin:0 auto;display:grid;grid-template-columns:1.15fr 1fr 1fr;gap:10px}.home-actions .onboarding-card{margin:0!important;display:flex;align-items:center;justify-content:flex-start;gap:12px;text-align:left;text-decoration:none;padding:16px 15px;border:1px solid #d9e3d1;border-radius:13px;background:#fff;min-height:76px;transition:background .15s,box-shadow .15s}.onboarding-card>svg{width:23px;height:23px;color:#54784a;flex:none}.action-copy{display:flex;flex-direction:column;gap:5px;min-width:0}.action-copy strong{font-size:12px;font-weight:650;line-height:1.3}.action-copy small{font-size:10px;color:#8a9683;line-height:1.4}.home-actions .start-guide{background:#21583f;border-color:#21583f;box-shadow:0 4px 12px #21583f18;color:#fff}.start-guide>svg{color:#d9edc9}.start-guide .action-copy small{color:#b9d3ae}.home-actions .start-guide:hover{background:#164a32;box-shadow:0 6px 15px #21583f23}.home-actions .sample-button:hover,.home-actions .tour-button:hover{background:#f0f6e9;border-color:#b9cfa9}
/* Keep appending pages beside page thumbnails, without wrapped button text. */
.workspace{grid-template-columns:176px minmax(0,1fr) 232px;height:calc(100dvh - 300px)}.workspace .pages-panel{padding:13px 9px}.pages-title{gap:11px;padding:0 2px;align-items:stretch}.pages-title>b{font-size:12px;padding:1px 2px}.pages-panel .pages-title #merge.add-pdf-button{white-space:nowrap;width:100%;min-height:41px;padding:9px 9px;gap:7px;font-size:12px;border-radius:9px;background:#e3efd7;color:#244f35;box-shadow:0 2px 5px #284e2710}.pages-panel .add-pdf-plus{height:23px;width:23px;font-size:21px;flex:none}.append-note{font-size:10px;line-height:1.4;margin:-4px 0 5px;text-align:center;color:#84917b}.page-card{width:94px}#thumbnails{gap:12px;padding-top:12px}
/* Export panel */
.editorhead{align-items:center;gap:18px}.editorhead .export-controls{width:auto;display:flex;align-items:center;gap:10px;margin-left:auto;padding:6px 6px 6px 14px;background:#fff;border:1px solid #dce4d6;border-radius:13px;box-shadow:0 2px 6px #25452504;flex:none}.export-controls .quality-label{margin:0;min-width:137px;font-size:9px;color:#819077;display:flex;flex-direction:column;gap:3px}.export-controls .quality-label>span{letter-spacing:.25px;line-height:1.2}.export-controls .quality-label #quality{height:27px;margin:0;padding:2px 19px 2px 0;border:0;border-radius:0;background:transparent;color:#355332;font-size:12px;max-width:165px;cursor:pointer}.export-controls #download{display:flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:12px 19px;border-radius:9px;font-size:12px;font-weight:600;background:#21583f;box-shadow:none}.export-controls #download svg{width:18px;height:18px;flex:none}.export-controls #download:hover{background:#164a32}
@media(min-width:751px) and (max-width:1050px){.workspace{grid-template-columns:158px minmax(0,1fr) 205px}.pages-panel .pages-title #merge.add-pdf-button{font-size:11px;padding:8px 5px;gap:5px}.pages-panel .add-pdf-plus{width:20px;height:22px}.editorhead h2{max-width:330px}.export-controls .quality-label{min-width:117px}.export-controls #download{padding:12px 13px;font-size:11px}header{gap:15px}.privacy{font-size:10px}.header-actions{gap:7px}.header-actions #new{padding:9px 11px;font-size:11px}.header-actions #language{font-size:11px;max-width:115px}}
@media(max-width:900px){header{grid-template-columns:1fr auto;gap:12px}.privacy{display:none}.header-actions{grid-column:2}}
@media(max-width:750px){header{height:68px;min-height:68px;display:grid;padding:10px 4%}.brand{font-size:17px}.brand>span{font-size:21px;padding:4px 10px}.header-actions{gap:6px}.header-actions #language{height:36px;max-width:96px;font-size:11px;padding:7px}.header-actions #new{height:36px;padding:8px 9px;font-size:10px;gap:5px}.header-actions #new svg{width:14px;height:14px}#welcome h1{font-size:34px;letter-spacing:-1.3px}#welcome>p{font-size:13px;line-height:1.75}.home-trust{margin-top:16px}.home-capabilities{margin-top:17px}.home-actions{grid-template-columns:1fr 1fr;gap:8px}.home-actions .start-guide{grid-column:1/-1;min-height:64px;justify-content:center;padding:13px}.home-actions .onboarding-card{padding:12px 9px;gap:8px;min-height:70px}.onboarding-card>svg{width:20px;height:20px}.action-copy strong{font-size:11px}.action-copy small{font-size:9px}.workspace{grid-template-columns:1fr;height:auto}.workspace .pages-panel{padding:10px}.pages-title{flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}.pages-title>b{margin-right:auto}.pages-panel .pages-title #merge.add-pdf-button{min-height:37px;width:auto;max-width:none;font-size:11px;padding:7px 11px;gap:7px}.append-note{width:100%;text-align:right;margin:-4px 0 0;font-size:9px}.pages-panel .add-pdf-plus{height:21px;width:21px;font-size:20px}.page-card{width:70px}#thumbnails{padding-top:8px;gap:8px}.editorhead .export-controls{width:100%;margin:0;padding:6px 6px 6px 11px;gap:7px;justify-content:space-between;flex:none}.export-controls .quality-label{min-width:0;flex:1;display:flex;align-items:flex-start;flex-direction:column;gap:3px;margin:0}.export-controls .quality-label #quality{width:100%;max-width:145px;font-size:12px;height:27px;padding-right:10px}.export-controls #download{min-height:43px;font-size:11px;padding:11px 12px;gap:7px}.editorhead>div.export-controls{min-width:0}.export-controls #download svg{width:16px;height:16px}}
#choose{display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:10px;padding:14px 23px;font-size:14px;font-weight:550}#choose svg{width:19px;height:19px}
/* Review, reuse and export workflow */
.element-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-top:14px}.element-actions button{font-size:10px;padding:8px 3px;min-height:33px;background:#f3f7ed;border-color:#d8e4cc}.document{position:relative}#compare{border-color:#b8cfa9;color:#315e3d;background:#f1f7e9;white-space:nowrap}#compare[aria-pressed=true]{background:#235c40;color:white;border-color:#235c40}.original-badge{position:absolute;top:53px;left:50%;transform:translateX(-50%);z-index:5;background:#214d37;color:#fff;border-radius:20px;padding:8px 14px;font-size:11px;white-space:nowrap;box-shadow:0 3px 12px #19352533;pointer-events:none}.document:has(#originalbadge:not([hidden])) #canvas{cursor:default}
#exportdialog{width:min(940px,96vw);max-height:94dvh;overflow:auto;border-radius:18px;padding:22px}#exportdialog .help-heading h2{font-size:22px;margin:0}.export-intro{font-size:12px;line-height:1.6;margin:14px 0}.export-meta{display:flex;justify-content:space-between;gap:14px;align-items:center;background:#edf4e7;border:1px solid #dce6d3;border-radius:10px;padding:12px;font-size:12px}.export-meta>strong{word-break:break-all}.export-meta>span{flex:none;color:#5b7454}.export-page-nav{display:flex;justify-content:center;align-items:center;gap:12px;font-size:12px;margin:12px 0}.export-page-nav button{padding:7px 13px}.export-paper{background:#e8ede4;border:1px solid #d7e2d0;border-radius:10px;padding:16px;max-height:57dvh;overflow:auto}.export-paper #exportcanvas{max-width:100%;height:auto;margin:auto;cursor:default;touch-action:pan-x pan-y}.export-final{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:14px}.export-final>span{font-size:11px;color:#66825e}.export-final .primary{font-size:13px;padding:12px 20px}#exportsize{color:#285837;font-size:14px}
@media(max-width:750px){body.editing{padding-bottom:calc(176px + env(safe-area-inset-bottom,0px))}.editing .main-tools{position:fixed;left:8px;right:8px;bottom:calc(6px + env(safe-area-inset-bottom,0px));top:auto;z-index:30;border:1px solid #c1d5b6;background:#fcfdf9f7;backdrop-filter:blur(10px);box-shadow:0 -4px 22px #183b2526;border-radius:15px;grid-template-columns:repeat(3,minmax(0,1fr));padding:7px}.editing .main-tools .tool{min-height:44px;font-size:12px;padding:9px 4px}.editing .main-tools .tool svg{width:21px;height:21px}.editing .main-tools .help-button{min-height:36px}.editing.input-focus .main-tools{display:none}.editing.input-focus{padding-bottom:15px}.workspace .document{height:62dvh;min-height:350px}.document nav #compare{font-size:11px;min-height:36px}.original-badge{top:96px;font-size:10px;max-width:95%;white-space:normal;text-align:center}#floating{z-index:31}.element-actions{grid-column:1/-1;gap:7px}.element-actions button{min-height:42px;font-size:12px}#exportdialog{padding:15px;width:96vw;max-height:96dvh}#exportdialog .help-heading h2{font-size:19px}.export-intro{font-size:11px}.export-meta{flex-wrap:wrap;gap:7px;padding:10px;font-size:11px}.export-meta>strong{width:100%}.export-meta>span{width:100%}.export-paper{padding:8px;max-height:54dvh}.export-final{flex-wrap:wrap}.export-final .primary{width:100%;min-height:45px}.export-page-nav button{min-height:40px}.export-final>span:empty{display:none}}
/* Browser-local image and text conversion */
.conversion-card{max-width:800px;margin:16px auto 22px;background:#eaf1e4;border:1px solid #d2e0c8;border-radius:14px;padding:19px 22px;display:flex;align-items:center;justify-content:space-between;gap:20px;text-align:left}.conversion-card strong{display:block;font-size:15px;color:#244e3e}.conversion-card small{display:block;font-size:11px;color:#5d745c;margin-top:6px}.conversion-card button{flex:none;display:flex;gap:8px;align-items:center;min-height:44px;background:white;border-color:#b8ccb0;font-weight:600;font-size:12px}.conversion-card svg{height:20px;width:20px}#convertdialog{width:min(660px,94vw);max-height:94dvh;overflow:auto;padding:25px;border-radius:18px}#convertdialog h2{font-size:24px;margin:0}.convert-intro{font-size:13px;line-height:1.6;color:#526c60}#convertdrop{display:flex;flex-direction:column;align-items:center;gap:14px;background:#f5f8f1;border:1.5px dashed #afc3a5;border-radius:12px;padding:24px 14px;text-align:center}#convertdrop.over{background:#e2efd7;border-color:#3c754e}#convertdrop strong{font-size:14px}#convertdrop small,.convert-note{font-size:11px;line-height:1.6;color:#657a5d}#convertdrop button{background:white;min-height:44px}.convert-list-heading{display:flex;align-items:center;justify-content:space-between;font-size:12px;gap:10px;margin:22px 0 10px}.convert-list-heading small{font-size:11px;color:#657a5d}#convertlist{list-style:none;padding:0;margin:0 0 20px;max-height:230px;overflow:auto}#convertlist:empty{display:none}#convertlist li{display:flex;gap:6px;align-items:center;padding:10px 0;border-bottom:1px solid #e1e7dc;font-size:12px}.convert-file-name{flex:1;min-width:0;overflow-wrap:anywhere;padding-right:8px}.convert-file-name small{display:block;color:#73846a;font-size:10px;margin-top:3px}#convertlist button{padding:8px;min-height:36px;min-width:36px;flex:none}.convert-layout{display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:12px}.convert-layout select{max-width:290px;font-size:12px}.convert-note{margin-top:10px}#convertstatus{font-size:12px;line-height:1.6;color:#365f46;min-height:20px}#convertcreate{width:100%;min-height:46px;font-size:13px}#exportedit{min-height:43px;font-size:12px;margin-left:auto}#exportedit[hidden]{display:none}
@media(max-width:750px){.conversion-card{padding:18px;flex-direction:column;align-items:stretch;gap:14px}.conversion-card button{justify-content:center;width:100%}.conversion-card strong{font-size:14px}#convertdialog{padding:18px;max-height:96dvh}.convert-layout{align-items:stretch;flex-direction:column;gap:8px}.convert-layout select{max-width:none;width:100%}#convertlist button{min-width:42px;min-height:42px}#exportedit{width:100%;margin-left:0}#convertlist{max-height:27dvh}}
