:root{--paper:#f6f3eb;--ink:#25382e;--muted:#697267;--line:#d7d9cc;--accent:#d7ea68;--white:#fffdf7}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:"Avenir Next",Avenir,sans-serif}header{height:95px;border-bottom:1px solid var(--line);padding:0 5vw;display:flex;align-items:center;gap:44px}.brand{font:italic 48px Georgia,serif;letter-spacing:-.03em;color:var(--ink);text-decoration:none}.brand span{font-style:normal;color:#87915a}.strap,.local,.eyebrow,.section-label,.pane-label,.site-footer{font-size:10px;font-weight:600;letter-spacing:1.8px}.local{margin-left:auto;letter-spacing:.4px;font-weight:400}.local i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#7d963e;margin-right:7px}main{max-width:1500px;margin:auto;padding:0 5vw}.welcome{display:grid;grid-template-columns:1.1fr 1fr;align-items:center;min-height:570px;gap:80px;padding:55px 0 65px}.eyebrow{margin:0 0 22px;color:var(--muted)}h1{font:normal clamp(42px,5.1vw,76px)/1.02 Georgia,serif;letter-spacing:-.03em;margin:0 0 26px}h1 em{font-weight:normal;color:#6a7458}.intro{font-size:16px;line-height:1.75;color:var(--muted)}button,.upload{font:500 13px "Avenir Next",Avenir,sans-serif;border:1px solid var(--line);border-radius:3px;background:var(--white);color:var(--ink);padding:12px 18px;cursor:pointer;transition:background var(--motion-fast)}button:hover{background:#e9eddb}.upload{display:inline-flex;gap:65px;background:var(--ink);color:white;border:0;margin-top:15px}.upload:hover{background:#435442}.upload span{font-size:17px}.fine{font-size:11px;line-height:1.6;color:var(--muted)}.book-art{position:relative;width:340px;height:410px;margin:0 auto}.paper{position:absolute;width:290px;height:365px;border:1px solid #dbdecc}.behind{background:#dfe4d2;transform:rotate(-11deg);top:27px;left:6px}.front{background:#e6edc8;transform:rotate(5deg);left:43px;top:7px;padding:27px 25px;box-shadow:12px 20px 30px #25382e14;overflow:hidden}.front>span{font-size:8px;letter-spacing:1.6px}.front h2{font:normal 31px/1.12 Georgia,serif;margin-top:102px;position:relative}.art-circle{position:absolute;width:210px;height:210px;right:-90px;top:30px;border:1px solid #95a45e;border-radius:50%;box-shadow:0 0 0 22px #d7e1b1,0 0 0 23px #95a45e,0 0 0 45px #d7e1b1,0 0 0 46px #95a45e}.fake-line{width:110px;height:2px;background:#acb58d;margin:8px 0}.fake-line.short{width:70px}.front footer{display:flex;justify-content:space-between;border-top:1px solid #adb794;padding-top:12px;margin-top:20px;font:10px Georgia}.front footer span{font:6px sans-serif;letter-spacing:1px}.library{padding-bottom:45px}.section-label{display:flex;justify-content:space-between;border-bottom:1px solid var(--ink);padding:13px 0}.jobs{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:15px;padding:20px 0}.job-card{text-align:left;min-height:130px;position:relative;background:transparent;padding:20px}.job-card h3{font:24px/1.1 Georgia,serif;margin:10px 0}.job-card small{font-size:10px;letter-spacing:1px;text-transform:uppercase;color:var(--muted)}.job-card .arrow{position:absolute;right:15px;bottom:17px}.empty{color:var(--muted);font-size:13px}.workspace-head{display:flex;justify-content:space-between;align-items:center;padding:25px 0}.workspace-head h2{font:36px Georgia,serif;margin:0}.workspace-head .eyebrow{margin-bottom:10px}.workspace-head p{color:var(--muted);font-size:12px}.quiet{background:transparent;border:0}.controls{display:flex;gap:15px;align-items:end;flex-wrap:wrap;background:#e9eddf;padding:20px}label{display:flex;flex-direction:column;gap:7px;font-size:11px;color:var(--muted)}input,select,textarea{font:13px "Avenir Next",Avenir,sans-serif;border:1px solid var(--line);border-radius:2px;padding:10px;background:var(--white);color:var(--ink);max-width:100%}textarea{resize:vertical}input:focus,select:focus,textarea:focus,button:focus-visible{outline:2px solid #708845;outline-offset:2px}.controls label:first-child{flex:1}.controls input{width:150px}.primary{background:var(--ink);color:var(--white);border-color:var(--ink)}.primary:hover{background:#435442}button:disabled{cursor:wait;opacity:.45}.progress-row{display:flex;justify-content:space-between;font-size:12px;margin:22px 0 8px}progress{appearance:none;width:100%;height:4px;border:0;background:var(--line)}progress::-webkit-progress-bar{background:var(--line)}progress::-webkit-progress-value{background:#839a4a}.review-bar{display:flex;align-items:center;gap:20px;margin:25px 0 15px}.review-bar>div{display:flex;gap:5px}.review-bar .check{margin-left:auto;display:flex;flex-direction:row;align-items:center}.compare{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--line);max-height:850px}.source-pane{padding:15px;background:#e8e9df;overflow:auto}.reading-pane{background:var(--white);padding:15px 25px;overflow:auto}.pane-label{font-size:9px;letter-spacing:1px;margin-bottom:15px;display:flex;justify-content:space-between;gap:15px}.pane-label span{font-weight:400;letter-spacing:0;text-align:right;color:var(--muted)}#source-wrap{position:relative;line-height:0}#source{width:100%;display:block}#overlay{position:absolute;inset:0;width:100%;height:100%;touch-action:none}.block{border-bottom:1px solid #e6e8df;padding:12px 0}.block-toolbar{display:flex;gap:6px;align-items:center}.block-toolbar button{padding:3px 9px;font-size:11px}.block-toolbar select{font-size:10px;padding:4px}.block-toolbar .order{margin-left:auto}.block textarea{border:0;width:100%;font:16px/1.6 Georgia,serif;padding:8px 0;min-height:60px;background:transparent}.block[data-kind=heading] textarea{font-size:22px;font-weight:bold}.block[data-kind=footer] textarea{font:11px/1.4 sans-serif;color:var(--muted)}.block.figure{background:#eef1e1;padding:12px;margin:8px 0}.block.selected{outline:2px solid #829a3c;outline-offset:3px}.warning{font-size:12px;background:#f2e9cf;padding:12px;line-height:1.5;border:1px solid #a2873d}#job-errors{font-size:12px;color:#963d2e}.metadata{border-bottom:1px solid var(--line);padding:22px 0}.metadata summary{cursor:pointer;font-size:13px}.metadata label{margin:15px 0}.metadata input,.metadata textarea{width:100%}.export{display:flex;justify-content:space-between;align-items:center;padding:40px 0;gap:25px}.export h3{font:32px Georgia,serif;margin:10px 0}.export p{font-size:13px;line-height:1.6;color:var(--muted)}.export .eyebrow{font-size:9px;margin-bottom:12px}#downloads{display:flex;gap:12px;margin-top:15px}#downloads a{color:var(--ink);font-size:13px;text-underline-offset:4px}.site-footer{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding:25px 5vw;color:var(--muted);font-size:8px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;padding:12px 20px;border-radius:4px;opacity:0;pointer-events:none;max-width:90vw;font-size:13px;transition:opacity .2s}#toast.visible{opacity:1}[hidden]{display:none!important}@media(max-width:800px){header{gap:15px;height:75px}.strap{display:none}.local{font-size:9px}.welcome{gap:20px;grid-template-columns:1fr;min-height:auto;padding:35px 0}.book-art{display:none}h1{font-size:52px}.compare{grid-template-columns:1fr;max-height:none}.source-pane{max-height:600px}.reading-pane{max-height:700px}.controls{gap:10px}.controls label:first-child{flex-basis:100%}.review-bar{flex-wrap:wrap;gap:10px}.export{align-items:start;flex-direction:column}.workspace-head h2{font-size:26px}.jobs{grid-template-columns:1fr}.site-footer span:last-child{display:none}}

.upload{flex-direction:row;align-items:center}

#account-menu{margin-left:auto;display:flex;align-items:center;gap:12px;font-size:11px}#account-email{max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#account-menu .quiet{font-size:11px;padding:9px}.session-loading{max-width:1500px;margin:auto;padding:55px 5vw;color:var(--muted);font-size:14px}.sign-in{max-width:1200px;margin:0 auto;padding:75px 5vw 90px;display:grid;grid-template-columns:1.2fr 1fr;gap:65px;align-items:center;min-height:600px}.sign-in h1{font-size:clamp(39px,4.3vw,62px)}.sign-in .fine{line-height:1.8}.login-form{padding:35px;border:1px solid var(--line);background:var(--white)}.login-form h2{font:29px Georgia,serif;margin:0 0 27px}.login-form label{margin:18px 0;font-size:12px}.login-form input{width:100%;padding:13px}.login-form .primary{width:100%;margin-top:12px}#login-error,#session-error{color:#963d2e;font-size:13px;line-height:1.6}#login-error:empty,#login-message:empty,#session-error:empty{display:none}@media(max-width:800px){header:has(#account-menu:not([hidden])) .local{display:none}#account-menu{gap:3px}#account-email{max-width:155px}.sign-in{grid-template-columns:1fr;gap:25px;padding:40px 5vw;min-height:0}.sign-in h1{font-size:45px}.login-form{padding:25px}.sign-in-copy .intro{font-size:14px}}

.credit-balance{display:flex;align-items:center;gap:28px;padding:22px 0;border-bottom:1px solid var(--line);flex-wrap:wrap}.credit-balance .eyebrow{margin:0 0 5px;font-size:9px}.credit-balance .fine{margin:0;max-width:330px}.credit-balance dl{display:flex;gap:26px;margin:0 0 0 auto}.credit-balance dt{font-size:10px;color:var(--muted)}.credit-balance dd{font:27px Georgia,serif;margin:5px 0 0}.credit-balance #credits-message{flex-basis:100%;max-width:none;font-size:10px}@media(max-width:800px){.credit-balance{gap:15px}.credit-balance dl{margin:0;gap:28px;flex-basis:100%}.credit-balance>div{width:100%}}

.sandbox-checkout{flex-basis:100%;display:flex;align-items:center;flex-wrap:wrap;gap:14px 25px;background:#edf0e2;border:1px solid var(--line);padding:18px}.sandbox-checkout strong{display:block;font-size:12px;margin-bottom:6px}.sandbox-checkout .fine{max-width:none}.sandbox-actions{display:flex;align-items:center;gap:8px;margin-left:auto}.sandbox-actions button{font-size:11px}.sandbox-checkout #checkout-message{flex-basis:100%;font-size:11px}@media(max-width:800px){.sandbox-actions{margin-left:0;flex-wrap:wrap}}

.guest-landing{max-width:900px;margin:auto;padding:65px 5vw 80px}.guest-landing h1{font-size:clamp(44px,7vw,78px)}.guest-landing .intro{margin:24px 0}.guest-landing .fine{max-width:610px;line-height:1.8}.guest-fixture{padding:20px 24px;border:1px solid var(--line);background:#edf0e2;font-size:14px;line-height:1.7;margin:24px 0}.guest-fixture strong{display:block}.guest-landing .upload{margin:28px 0 12px}#guest-pdf{position:absolute;width:1px;height:1px;opacity:0}#guest-pdf:focus-visible{position:static;width:auto;height:auto;opacity:1}#guest-message{color:#963d2e;line-height:1.6}.guest-mode .model-control,.guest-mode .budget-control,.guest-mode #cost,.guest-mode #credit-balance,.guest-mode .book-art{display:none!important}.guest-mode .controls{grid-template-columns:1fr auto}.guest-fixture-mode #add-block{display:none}.guest-mode .welcome{grid-template-columns:1fr}.guest-mode .welcome h1{font-size:44px}#back-to-guest{align-self:start}@media(max-width:700px){.guest-landing{padding-top:35px}.guest-mode .controls{grid-template-columns:1fr}}

/* The guest fixture contains original images, so text-editing controls do not apply. */
.guest-fixture-mode #next-flagged,.guest-fixture-mode .review-bar>.check,.guest-fixture-mode #save,.guest-fixture-mode .reading-pane,.guest-fixture-mode .metadata,.guest-fixture-mode .source-pane .pane-label span,.guest-fixture-mode #overlay{display:none!important}
.guest-fixture-mode .compare{grid-template-columns:1fr;max-width:760px;margin-inline:auto}.guest-mode #downloads a[href$="/report.json"]{font-size:11px;opacity:.7}.guest-mode .review-bar{justify-content:center}.guest-mode .review-bar>div{display:flex;align-items:center;gap:10px}

/* Keep the whole source page in document flow: export must follow, never overlap. */
.guest-fixture-mode .compare{max-height:none;height:auto;align-items:start;min-width:0}.guest-mode .source-pane{max-height:none;height:auto;overflow:visible;min-width:0}.guest-mode #source-wrap{height:auto;max-height:none}.guest-mode #source{width:100%;height:auto;max-height:none;object-fit:contain}.upload-feedback{color:#963d2e;font-size:14px;line-height:1.7;overflow-wrap:anywhere;max-width:760px}.upload-feedback:empty{display:none}#guest-quota-note{line-height:1.8;padding:15px 0}#guest-message{overflow-wrap:anywhere}.guest-mode .export{min-width:0}.guest-mode #downloads{flex-wrap:wrap}@media(max-width:700px){.guest-mode .source-pane{padding:8px}.guest-mode .workspace-head{flex-wrap:wrap}.guest-mode .workspace-head h2{overflow-wrap:anywhere}.guest-mode .review-bar>div{max-width:100%}.guest-mode #page-select{min-width:0;max-width:180px}}

.guest-mode .workspace-head>div{min-width:0;flex:1 1 250px}.guest-mode .workspace-head h2{overflow-wrap:anywhere}.guest-mode .workspace-head{flex-wrap:wrap;gap:12px}.guest-mode #guest-download-jump{margin:16px 0}.guest-mode .controls input{min-width:0;max-width:100%}@media(max-width:700px){header{flex-wrap:wrap;gap:10px}.guest-mode #account-menu{max-width:100%}.guest-mode .workspace-head .quiet{max-width:100%;white-space:normal}}

#guest-download-jump a{display:inline-block;color:var(--ink,#263323);border-bottom:1px solid currentColor;text-decoration:none;font-size:13px;padding:5px 0}#guest-download-jump a:hover{border-bottom-width:2px}.guest-fixture details{font-size:12px;margin-top:8px}.guest-fixture summary{cursor:pointer;text-decoration:underline;text-underline-offset:3px}.guest-fixture details p{margin:8px 0 0}@media(max-width:700px){#guest-notice{padding:12px 15px;margin:16px 0;font-size:13px}}

/* Shared editorial reading scale and accessible interaction layer. */
:root{--muted:#566252;--focus:#435d29}
body{font-size:16px;line-height:1.5}
.fine,.empty,.workspace-head p,.progress-row,.warning,#job-errors,label,.login-form label,.guest-fixture details{font-size:14px;line-height:1.65}
.strap,.local,.eyebrow,.section-label,.pane-label,.site-footer,.job-card small,.export .eyebrow,.credit-balance .eyebrow,.credit-balance dt{font-size:12px;line-height:1.6;letter-spacing:1px}
.credit-balance #credits-message,.sandbox-checkout #checkout-message,.sandbox-checkout strong,#account-menu,#account-menu .quiet,.sandbox-actions button{font-size:13px}
button,.upload,input,select,textarea{font-size:15px}
button,.upload,input:not([type=checkbox]):not([type=file]),select{min-height:var(--control-height)}
button:disabled{cursor:not-allowed;opacity:.62}
a{color:var(--ink);text-underline-offset:4px}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--focus);outline-offset:4px}
/* Native file controls stay in the tab order; their styled label gets the ring. */
.file-input,#guest-pdf,#guest-pdf:focus-visible{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0;opacity:1}
.upload:has(+.file-input:focus-visible){outline:3px solid var(--focus);outline-offset:4px}
.upload:has(+.file-input:disabled){opacity:.62;cursor:not-allowed}
input[type=checkbox]{width:18px;height:18px;accent-color:var(--ink);flex:none}
.check{min-height:var(--control-height);align-items:center}
.sign-in{grid-template-areas:'copy form' 'back form';grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:24px 60px;align-content:center}
.sign-in-copy{grid-area:copy}.login-form{grid-area:form;min-width:0}#back-to-guest{grid-area:back;justify-self:start}
.controls>*{min-width:0}.controls label{max-width:100%}.controls select{width:100%}
.workspace-head{gap:16px;flex-wrap:wrap}.workspace-head>div{min-width:0;flex:1 1 240px}.workspace-head h2,.job-card h3{overflow-wrap:anywhere}
.compare{min-width:0;max-height:none;align-items:start}.source-pane,.reading-pane{min-width:0;max-height:850px;overflow:auto}.guest-mode .source-pane{max-height:none;overflow:visible}
.block-toolbar{flex-wrap:wrap}.block-toolbar select,.block-toolbar button{font-size:13px;min-height:36px}.pane-label{flex-wrap:wrap}.pane-label span{text-align:left}
.review-bar>div{flex-wrap:wrap;max-width:100%}.review-bar .check{margin-left:0}.review-bar{flex-wrap:wrap}
#downloads{flex-wrap:wrap}#downloads a{display:inline-flex;align-items:center;min-height:var(--control-height);padding:5px 0;font-size:15px}.guest-mode #downloads a[href$='/report.json']{font-size:13px;opacity:1;color:var(--muted)}
#ebook-export{scroll-margin-top:24px}#guest-download-jump a{min-height:var(--control-height);font-size:14px;padding:10px 0}
#account-menu{flex-wrap:wrap;min-width:0}header{height:auto;min-height:95px;padding-block:14px;flex-wrap:wrap;gap:18px 32px}.local{font-size:12px;max-width:100%}
.site-footer{gap:15px;flex-wrap:wrap}.guest-landing,.sign-in,main{min-width:0}.jobs{grid-template-columns:repeat(auto-fit,minmax(min(270px,100%),1fr))}
@media(max-width:800px){
 header{min-height:75px;gap:10px 16px}.local{font-size:12px}.sign-in{grid-template-areas:'back' 'copy' 'form';grid-template-columns:minmax(0,1fr);gap:22px}.sign-in h1{font-size:clamp(36px,7vw,48px)}
 .source-pane{max-height:600px}.reading-pane{max-height:700px}.guest-mode .source-pane{max-height:none}.controls label{flex:1 1 180px}.controls button{flex:1 1 160px}.login-form{padding:24px}
 input,select,textarea{font-size:16px}.guest-mode .workspace-head .quiet{flex:0 1 auto}.export{width:100%}.export>div{min-width:0;max-width:100%}
}
@media(max-width:390px){
 h1,.guest-landing h1{letter-spacing:-1.7px}.guest-landing{padding-inline:5vw}.guest-landing .eyebrow{letter-spacing:.7px}.upload{max-width:100%;gap:28px}
 .guest-mode #page-select{max-width:145px}.review-bar>div{gap:6px}.review-bar button{padding-inline:12px}#account-email{max-width:135px}.brand{font-size:42px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
input:not([type=checkbox]):not([type=file]),select,textarea{border-color:#7b886f}progress::-webkit-progress-value{background:var(--focus)}progress::-moz-progress-bar{background:var(--focus)}

.document-checkout{border:1px solid var(--line);padding:22px;margin:24px 0;background:var(--white)}.document-checkout h3{font:28px Georgia,serif;margin:0 0 14px}.document-actions{display:flex;gap:12px;flex-wrap:wrap}.document-checkout[aria-busy=true]{opacity:.8}

.reading-preview{font:18px/1.7 Georgia,serif;overflow-wrap:anywhere}.reading-preview p{white-space:pre-wrap;margin:0 0 1em}.reading-preview h3{font:600 23px/1.35 Georgia,serif}#advanced-editor>summary{cursor:pointer;padding:14px 0;font-size:14px;color:var(--ink);text-decoration:underline;text-underline-offset:4px}

.crop-review{padding:18px 0;border-block:1px solid var(--line);margin:18px 0}.crop-review h3{font:24px Georgia,serif;margin:0 0 10px}.crop-review canvas{max-width:100%;height:auto;margin:15px 0;border:1px solid var(--line);background:white}.crop-review .check{display:flex;flex-direction:row;gap:10px;align-items:center}.crop-coordinates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}.crop-coordinates input{width:100%}.crop-review summary{cursor:pointer;padding:10px 0}

.polygon-editor{margin-block:1rem;padding-block:1rem;border-block:1px solid var(--line,#d2d8c8)}.polygon-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.75rem}.polygon-actions button{min-height:var(--control-height)}.polygon-editor input{min-width:0;width:100%}
/* Keep mask actions in normal document flow on narrow screens. */
@media(max-width:800px){.reading-pane{max-height:none;overflow:visible}.compare{height:auto;max-height:none}}

.customer-mode .model-control,.customer-mode .budget-control,.customer-mode #next-flagged,.customer-mode .review-bar>.check,.customer-mode #save,.customer-mode #advanced-editor,.customer-mode #crop-review,.customer-mode #legacy-original-repair,.customer-mode .metadata,.customer-mode #quality-review,.customer-mode #warnings,.customer-mode #overlay,.customer-mode .pane-label span,.customer-mode .diagnostic-help{display:none!important}
body:not(.customer-mode) #customer-result,body:not(.customer-mode) #customer-cost{display:none}
.customer-mode #reading-preview:not([hidden]){display:block}.customer-mode .reading-preview::before{content:'Unfinished text preview · final export checks may still fail';display:block;font:14px/1.6 "Avenir Next",sans-serif;color:var(--muted);margin-bottom:1rem}

.conversion-origin{padding:16px 20px;border:1px solid var(--line);background:#e9eddf;font-size:15px;line-height:1.6;overflow-wrap:anywhere}.customer-mode.verified-cache .reading-preview::before{content:'Previously source-reviewed text · reused for this exact PDF'}

#edition-preview{display:block;width:100%;height:720px;max-width:100%;border:1px solid var(--line);background:var(--white)}#edition-preview[hidden]{display:none}@media(max-width:800px){#edition-preview{height:650px}}

.customer-status{color:var(--ink);font-size:15px;line-height:1.7}.controls[hidden]{display:none}

/* Converter-first customer layout: upload, result, optional preview. */
.customer-mode header{height:76px;padding-inline:5vw;gap:24px}.customer-mode .brand{font-size:38px}.customer-mode .strap{font-size:12px;letter-spacing:1px}.customer-mode main{max-width:1080px}.customer-mode .welcome{display:block;min-height:0;padding:46px 0 24px}.customer-mode .welcome>div{max-width:780px;margin:auto;text-align:center}.customer-mode h1{font-size:clamp(32px,4vw,46px);letter-spacing:-1.3px;line-height:1.15;margin-bottom:12px}.customer-mode .welcome .eyebrow{display:none}.customer-mode .intro{font-size:16px;margin:0 0 24px}.upload-zone{padding:28px 24px;border:1px dashed #8c9983;border-radius:8px;background:#eeeee2}.customer-mode .upload{margin:0;min-height:54px;font-size:17px;gap:45px}.customer-mode .upload-zone .fine{margin:12px 0 0}.customer-mode .library{margin:8px auto 26px;padding:0;max-width:780px;border-top:1px solid var(--line)}.customer-mode .library>summary,.customer-mode #review>summary{cursor:pointer;padding:18px 0;font-size:15px;color:var(--ink)}.customer-mode .library .section-label{font-size:12px;border-color:var(--line)}.customer-mode .workspace-head{padding:18px 0 8px;align-items:start}.customer-mode .workspace-head h2{font:26px/1.3 Georgia,serif}.customer-mode .workspace-head .eyebrow{display:none}.customer-mode .workspace-head p{margin:7px 0}.customer-mode .workspace-head button{padding:10px 12px}.customer-mode .conversion-origin{font-size:14px;padding:12px 16px;margin:12px 0}.customer-mode #customer-result{margin:12px 0;font-size:16px}.customer-mode .export{padding:22px 0;margin:12px 0;border-top:1px solid var(--line);gap:22px}.customer-mode .export h3{font:26px/1.2 Georgia,serif;margin:0 0 10px}.customer-mode .export p{font-size:14px;margin:8px 0}.customer-mode #downloads{display:flex;flex-wrap:wrap;gap:10px}.customer-mode #downloads a{font-size:15px;padding:12px 18px}.customer-mode #review{border-top:1px solid var(--line)}.customer-mode .site-footer{margin-top:30px;padding-block:24px}.customer-mode .guest-landing{min-height:0;max-width:820px;margin:auto;padding:40px 5vw}.customer-mode .guest-landing h1{font-size:clamp(32px,4vw,46px)}
@media(max-width:600px){.customer-mode header{height:auto;min-height:68px}.customer-mode .strap{display:none}.customer-mode .welcome{padding-top:30px}.customer-mode .upload-zone{padding:24px 15px}.customer-mode .export{display:flex;flex-direction:column;align-items:stretch;gap:12px}.customer-mode .workspace-head h2{font-size:23px}.customer-mode #downloads a{flex:1;text-align:center}}
.customer-mode.verified-cache #customer-cost,.customer-mode.verified-cache #conversion-privacy,.customer-mode.verified-cache .progress-row,.customer-mode.verified-cache #progress,.customer-mode.verified-cache #review-note{display:none}
.customer-mode.verified-cache #workspace:not([hidden]){display:flex;flex-direction:column}.customer-mode.verified-cache .workspace-head{order:0}.customer-mode.verified-cache #customer-result{order:1}.customer-mode.verified-cache #ebook-export{order:2}.customer-mode.verified-cache #conversion-origin{order:3}.customer-mode.verified-cache #review{order:4}.customer-mode.verified-cache #ebook-export{margin-top:0}.customer-mode.verified-cache #conversion-origin{font-size:13px;line-height:1.6}
.customer-mode #downloads{margin-top:8px}.customer-mode #downloads a{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:4px;text-decoration:none;white-space:nowrap;min-height:46px}.customer-mode #downloads a:first-child{background:var(--ink);color:var(--white);border-color:var(--ink)}.customer-mode #downloads a[href$="/report.json"]{display:none}.customer-mode #export-note{font-size:13px}

.customer-mode #cost,.customer-mode #customer-cost,.customer-mode #job-errors,.customer-mode #warnings,.customer-mode #quality-review,.customer-mode #review-note{display:none!important}.customer-mode .controls label:has(#range){display:none}.customer-mode #reading-preview{display:none!important}.export[hidden]{display:none!important}.customer-mode.sample-ready #conversion-privacy{display:none}.customer-mode #full-conversion-note{font-size:14px;line-height:1.6}

#reading-preview .information{margin:1em 0;break-inside:avoid}#reading-preview .information dt{font-weight:600}#reading-preview .information dd{margin:.2em 0 0}

/* Utility product identity: application chrome, not exported book typography. */
:root{--paper:#f5f7fb;--white:#ffffff;--ink:#20304a;--muted:#536176;--line:#d5dce7;--accent:#244dcc;--focus:#244dcc;--action-hover:#193a9f;--control-line:#718096;--soft:#edf2ff;--error:#b42318;--success:#167149;--ui-font:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--control-height:44px;--radius-compact:6px;--content-width:1040px;--page-gutter:32px;--page-gutter-mobile:20px;--motion-fast:.15s}
html,body{min-height:100%}
body{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
body>main,body>.guest-landing,body>.sign-in,body>.public-offer{width:100%;margin-inline:auto;margin-block:0}
body>.site-footer{width:100%;margin-top:auto}
body,button,.upload,input,select,textarea{font-family:var(--ui-font)}
.brand,.customer-mode .brand{font-family:var(--ui-font);font-style:normal;font-weight:750;font-size:28px;letter-spacing:-1px}
.brand span{color:var(--accent)}
h1,.guest-landing h1,.sign-in h1,.workspace-head h2,.customer-mode .workspace-head h2,.job-card h3,.export h3,.customer-mode .export h3,.document-checkout h3{font-family:var(--ui-font);font-style:normal;font-weight:700;letter-spacing:-.035em}
h1 em{color:inherit;font-style:normal}
.strap,.local,.eyebrow,.section-label,.pane-label,.site-footer{letter-spacing:.025em}
.local i{background:var(--success)}
button:hover{background:#e6ecf8}
.primary,.upload,.customer-mode #downloads a:first-child{background:var(--accent);border-color:var(--accent);color:#fff}
.primary:hover,.upload:hover,.customer-mode #downloads a:first-child:hover{background:var(--action-hover);border-color:var(--action-hover);color:#fff}
.upload-zone{background:var(--white);border-color:var(--control-line)}
.controls,.guest-fixture,.conversion-origin,.source-pane{background:var(--soft)}
.reading-pane,.login-form,.document-checkout{background:var(--white)}
input:not([type=checkbox]):not([type=file]),select,textarea{border-color:var(--control-line)}
input[type=checkbox]{accent-color:var(--accent)}
.block.figure{background:var(--soft)}.block.selected{outline-color:var(--accent)}
.warning{background:#fff6e5;border-color:#996000;color:#674300}
#job-errors,#guest-message,#session-error,#login-error,.upload-feedback.error{color:var(--error)}
.customer-mode .reading-preview::before{font-family:var(--ui-font)}
@media(max-width:390px){.brand,.customer-mode .brand{font-size:25px}}

/* Public identity does not expose hosting or development mode labels. */
.customer-mode header .local{display:none}
.policy{max-width:760px;margin:40px auto;padding:0 20px;font-size:16px;line-height:1.65}
.policy h1{font-size:36px}.policy h2{font-size:22px;margin-top:28px}
.site-footer a,.fine a{color:var(--accent);text-underline-offset:3px}
.document-checkout .check{display:flex;flex-direction:row;justify-content:flex-start;gap:10px;text-align:left}

.environment-notice{margin:0;padding:8px 5vw;background:#eef2ff;color:#405174;font-size:12px;text-align:center}

dialog{border:0;border-radius:10px;max-width:520px;width:calc(100% - 32px);padding:28px;color:var(--ink);background:#fff}dialog::backdrop{background:rgb(20 30 50 / 45%)}dialog label{display:flex;flex-direction:column;gap:8px;margin:18px 0}dialog input{width:100%;box-sizing:border-box}.document-actions{display:flex;flex-wrap:wrap;gap:10px}#customer-purchases-list article{padding:12px 0;border-bottom:1px solid var(--line)}

.customer-mode #credit-balance dl>div:nth-child(n+2){display:none}

.account-commerce #credit-balance{padding:12px 0;min-height:0;display:flex;align-items:center;justify-content:flex-end}.account-commerce #credit-balance>div:first-child,.account-commerce #credits-message{display:none}.account-commerce #credit-balance dl{margin:0}.account-commerce #credit-balance dl>div:first-child{display:flex;align-items:baseline;gap:10px}.account-commerce #credit-balance dt{font-size:13px;letter-spacing:0}.account-commerce #credit-balance dd{font:600 18px/1.5 system-ui;margin:0}

.public-offer{max-width:1100px;margin:0 auto;padding:24px clamp(20px,5vw,64px);border-top:1px solid var(--line,#ddd)}
.public-offer h2{font-size:22px}.public-offer p{max-width:75ch;line-height:1.6}.public-offer summary{cursor:pointer;font-weight:600}

/* Account navigation belongs in the header; uploading stays the main action. */
.account-nav{display:flex;align-items:center;gap:8px;margin-left:auto;flex-shrink:0}
.account-nav button{font-size:14px;font-weight:600;min-height:var(--control-height);padding:10px 16px;white-space:nowrap}
.account-nav .account-create{background:var(--white);border:1px solid var(--line);border-radius:var(--radius-compact)}
.account-nav .account-create:hover{background:var(--soft);border-color:var(--control-line)}
.customer-mode header{height:auto;min-height:76px}
.login-account-option{text-align:center;margin-top:12px}
.login-account-option .quiet{min-height:var(--control-height);color:var(--accent)}
.customer-mode .guest-landing{padding-block:52px 40px}
.customer-mode .guest-landing>.fine{max-width:68ch}
.customer-mode .guest-landing #guest-message:empty{display:none}
@media(max-width:600px){
 .customer-mode header{padding-inline:20px;gap:8px;min-height:76px}
 .account-nav{gap:4px}
 .account-nav button{font-size:13px;padding-inline:10px}
 .customer-mode .guest-landing{padding:34px 20px}
}
@media(max-width:359px){
 .brand,.customer-mode .brand{font-size:22px}
 .account-nav button{font-size:12px;padding-inline:8px}
}
/* Account forms use the same application typography as the converter. */
.login-form h2{font-family:var(--ui-font);font-size:24px;font-weight:700;letter-spacing:-.025em;line-height:1.25}
.account-nav button:focus-visible,.upload:focus-visible{outline:2px solid var(--focus);outline-offset:3px}

/* Keep the selected document visible through session setup and upload. */
.upload-card{max-width:900px;margin:48px auto;padding:32px 24px;min-height:320px}
.upload-card h1{font-size:clamp(28px,5vw,44px);margin:12px 0 24px}
.upload-filename{font-weight:600;overflow-wrap:anywhere}
.upload-card progress{width:100%;margin:16px 0}
body.upload-active #guest-landing,body.upload-active #app-content,body.upload-active #session-loading,body.upload-active #public-offer,body.upload-active #sign-in{display:none!important}
body.upload-active #guest-account-nav,body.upload-active #account-menu{visibility:hidden}

.customer-mode .guest-limit{width:100%;max-width:690px;margin:0 auto;padding:70px 32px 80px;min-height:500px}
.guest-limit h1{font-size:clamp(34px,4.5vw,48px);line-height:1.13;margin:0 0 16px}
.guest-limit .intro{margin:0 0 26px;line-height:1.6}
.guest-limit-file{margin:0 0 18px;padding:14px 18px;border:1px solid var(--line);border-radius:var(--radius-compact);background:var(--white);font-size:14px;font-weight:600;overflow-wrap:anywhere}
.guest-limit-offer{padding:28px;border:1px solid #a6b5e7;border-radius:var(--radius-compact);background:#eef2ff}
.guest-limit-offer .eyebrow{font-size:11px;margin:0 0 12px}
.guest-limit-offer h2{font-size:24px;line-height:1.3;margin:0 0 12px}
.guest-limit-offer .guest-limit-price{font-size:22px;font-weight:700;color:var(--ink);margin:0 0 8px}
.guest-limit-detail{font-size:14px;line-height:1.6;color:var(--muted);margin:0}
.guest-limit-actions{margin:24px 0 0}
.guest-limit-actions button{min-height:48px;padding:12px 20px}
.guest-limit-next{margin:25px 0 12px;padding:16px 18px;border:1px solid var(--line);border-radius:var(--radius-compact);background:var(--white);line-height:1.6;color:var(--ink)}
.guest-limit .fine{margin-top:18px}
body.upload-active #guest-limit{display:none!important}
html.checkout-return #guest-limit{display:none!important}
@media(max-width:600px){.customer-mode .guest-limit{padding:44px 20px 64px;min-height:400px}.guest-limit-offer{padding:22px}.guest-limit-actions button{width:100%}}

/* Keep the active document first; account limits remain available below it. */
.customer-mode:not(.guest-fixture-mode) #app-content{display:flex;flex-direction:column}
.customer-mode:not(.guest-fixture-mode) #app-content>#guest-notice,
.customer-mode:not(.guest-fixture-mode) #app-content>#credit-balance{order:2}
.customer-mode:not(.guest-fixture-mode) #guest-notice{padding:14px 18px;margin:24px 0 0;font-size:13px}
.customer-mode:not(.guest-fixture-mode) #workspace{min-width:0}
.customer-mode:not(.guest-fixture-mode) #ebook-export{padding:24px;border:1px solid var(--line);border-radius:var(--radius-compact);background:var(--white)}
.customer-mode:not(.guest-fixture-mode) #customer-commerce{margin-top:20px;padding:20px 24px;background:transparent}
.customer-mode:not(.guest-fixture-mode) #customer-commerce h3{font-size:20px}
.customer-mode.sample-ready:not(.guest-fixture-mode) #customer-continue{background:var(--white);color:var(--ink);border-color:var(--line)}
.customer-mode.sample-ready:not(.guest-fixture-mode) #customer-continue:hover{background:var(--soft)}
.customer-mode:not(.guest-fixture-mode) #guest-download-jump{display:none}
@media(max-width:700px){
 .customer-mode:not(.guest-fixture-mode) #ebook-export,
 .customer-mode:not(.guest-fixture-mode) #customer-commerce{padding:20px}
}
.customer-mode:has(#workspace:not([hidden])) #public-offer{display:none}

/* A consistent content column and clear task surfaces across the converter. */
.customer-mode .guest-landing,.customer-mode .public-offer,.customer-mode main{
 width:100%;max-width:var(--content-width);margin-inline:auto;padding-inline:var(--page-gutter);
}
.customer-mode .guest-landing{padding-top:56px;padding-bottom:40px}
.customer-mode .public-offer{padding-block:28px 36px}
.customer-mode .public-offer h2{margin:0 0 12px;line-height:1.3}
.customer-mode .public-offer p{margin:10px 0;font-size:15px}
.customer-mode .public-offer details{margin-top:20px}
.customer-mode .guest-landing .intro{max-width:55ch;line-height:1.65;margin:18px 0 26px}
.customer-mode button,.customer-mode .upload{border-radius:var(--radius-compact);font-weight:600;min-height:var(--control-height)}
.customer-mode button:focus-visible,.customer-mode a:focus-visible,.customer-mode summary:focus-visible{outline:2px solid var(--focus);outline-offset:4px}
.customer-mode button:disabled{cursor:default}
.customer-mode #account-menu{min-width:0;flex-wrap:wrap;justify-content:flex-end;gap:4px 8px}
.customer-mode #account-menu .quiet{font-size:13px;min-height:var(--control-height)}
.header-credit-balance{display:inline-flex;align-items:baseline;gap:5px;padding:8px 12px;border-left:1px solid var(--line);font-size:12px;color:var(--muted);white-space:nowrap}.header-credit-balance strong{font-size:15px;color:var(--ink)}#header-buy-credits{min-height:40px;padding:9px 14px;background:var(--accent);color:#fff;border-color:var(--accent);font-weight:700}#header-buy-credits:hover{filter:brightness(.93)}
.customer-mode #account-email{font-size:12px;max-width:160px}
.customer-mode .workspace-head{gap:8px 12px;padding-top:28px;margin-bottom:12px}
.customer-mode .workspace-head>div{min-width:0;flex:1 1 360px}
.customer-mode .workspace-head h2{overflow-wrap:anywhere}
.customer-mode .workspace-head>button{font-size:13px;padding-inline:12px;flex-shrink:0}
.customer-mode #delete-job{color:var(--muted)}
.customer-mode #conversion-privacy{font-size:13px;line-height:1.6;max-width:65ch;color:var(--muted)}
.customer-mode progress{height:6px;border-radius:8px;overflow:hidden}
.customer-mode progress::-webkit-progress-bar{border-radius:8px}
.customer-mode progress::-webkit-progress-value{border-radius:8px;background:var(--accent)}
.customer-mode.sample-ready .progress-row,.customer-mode.sample-ready #progress{display:none}
.customer-mode.conversion-busy #conversion-controls{display:none}
.customer-mode:not(.guest-fixture-mode) #ebook-export{margin-top:20px;box-shadow:0 2px 8px rgb(32 48 74 / 3%)}
.customer-mode #ebook-export h3{font-size:24px;margin:0 0 10px}
.customer-mode:not(.guest-fixture-mode) #customer-commerce{border-radius:var(--radius-compact);border-color:var(--line);background:var(--soft)}
.account-commerce #credit-balance{display:none!important}
.customer-mode #customer-commerce-detail{font-size:14px;line-height:1.7;max-width:65ch}
.customer-mode #customer-commerce-message:empty,.customer-mode #export-note:empty,.customer-mode #review-note:empty{display:none}
.customer-mode #review>summary{min-height:48px;padding-block:16px}
.customer-mode #guest-notice{border-radius:var(--radius-compact)}
.customer-mode dialog{padding:28px;max-height:calc(100dvh - 32px);overflow-y:auto;border:0;box-shadow:0 16px 48px rgb(20 30 50 / 18%)}
.customer-mode dialog h2{font-family:var(--ui-font);font-size:25px;line-height:1.3;letter-spacing:-.025em;margin:0 0 20px}
.customer-mode dialog label{font-size:14px}
.customer-mode dialog input{min-height:46px;border-radius:var(--radius-compact)}
.customer-mode dialog .fine{line-height:1.6}
.customer-mode #google-register button,.customer-mode #google-login button{width:100%;background:var(--white);border-color:var(--line)}
.customer-mode #google-register button:hover,.customer-mode #google-login button:hover{background:var(--soft)}
.customer-mode #customer-auth-context{font-size:15px;line-height:1.65;margin:18px 0}
.customer-mode #customer-auth-existing{padding-inline:0;color:var(--accent);text-align:left}
#customer-auth{max-width:440px;padding:0;border:0;border-radius:18px;overflow:hidden;box-shadow:0 24px 56px rgb(15 28 50 / 28%)}
#customer-auth::backdrop{background:rgb(20 30 50 / 58%);backdrop-filter:blur(3px)}
#customer-auth-form{position:relative;padding:34px 36px 32px}
#customer-auth h2{font-size:28px;margin:0 40px 8px 0}
#customer-auth-context{margin:0 0 22px;color:var(--muted);font-size:14px;line-height:1.55}
#customer-auth-close{position:absolute;right:20px;top:18px;display:grid;place-items:center;width:40px;height:40px;min-height:40px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--muted);line-height:0}
#customer-auth-close svg{display:block;width:18px;height:18px;overflow:visible;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;fill:none}
#customer-auth-close:hover{background:var(--soft);color:var(--ink)}
#google-register button{position:relative;display:flex;align-items:center;justify-content:center;gap:12px;min-height:50px;border:1px solid #c6cfdd;border-radius:8px;background:#fff;color:#20304a;font-weight:650;box-shadow:0 1px 2px rgb(20 30 50 / 5%)}
#google-register button:hover{background:#f8faff;border-color:#9eabc0;box-shadow:0 2px 6px rgb(20 30 50 / 9%)}
#google-register button:active{transform:translateY(1px);box-shadow:none}
.google-mark{width:19px;height:19px;flex:none}
.auth-divider{display:flex;align-items:center;gap:12px;margin:24px 0 4px;color:#69768a;font-size:12px}
.auth-divider::before,.auth-divider::after{content:"";height:1px;background:var(--line);flex:1}.auth-divider span{white-space:nowrap}
#customer-auth label{gap:7px;margin:15px 0;font-size:13px;font-weight:600;color:var(--ink)}
#customer-auth input{min-height:48px;border-radius:8px;background:#fff;transition:border-color var(--motion-fast),box-shadow var(--motion-fast)}
#customer-auth input:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgb(36 77 204 / 12%);outline:0}
#customer-auth .fine{margin:-4px 0 16px;font-size:12px}
#customer-auth .document-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:20px}
#customer-auth .document-actions button{width:100%;border-radius:8px;font-weight:650}
#customer-auth.auth-signing-in #customer-auth-signin,#customer-auth:not(.auth-signing-in) button[value=register]{grid-column:1/-1;grid-row:1}
#customer-auth.auth-signing-in button[value=register],#customer-auth:not(.auth-signing-in) #customer-auth-signin{grid-column:1/-1;grid-row:2;background:transparent;border:0;color:var(--accent);min-height:40px}
#customer-auth>form>p:has(#customer-auth-existing){margin:12px 0 0;text-align:center}
#customer-auth-error{margin:12px 0 0;color:var(--error);font-size:13px;line-height:1.5}
#customer-auth-error:empty{display:none}
#credit-confirm{max-width:460px}#credit-confirm p{font-size:15px;line-height:1.65;color:var(--muted)}#credit-confirm .credit-confirm-balance{padding:12px 14px;background:var(--soft);border-radius:var(--radius-compact);color:var(--ink)}#credit-confirm .document-actions{justify-content:flex-end;margin-top:24px}
.site-footer{align-items:flex-start;padding-block:30px}.site-footer>div{display:flex;flex-direction:column;gap:6px}.site-footer strong{font-size:13px;color:var(--ink)}.site-footer span{font-size:11px;letter-spacing:0}.site-footer nav{display:flex;gap:22px}.site-footer a{font-size:11px;letter-spacing:0}
@media(max-width:900px){
 .customer-mode header:has(#account-menu:not([hidden])){flex-wrap:wrap;padding-block:12px;gap:8px 16px}
 .customer-mode header:has(#account-menu:not([hidden])) .strap{display:none}
 .customer-mode #account-menu{flex:1 1 100%;margin-left:0;justify-content:flex-start}
 .customer-mode #account-email{margin-left:auto}
}
@media(max-width:600px){
 .customer-mode .guest-landing,.customer-mode .public-offer,.customer-mode main{padding-inline:var(--page-gutter-mobile)}
 .customer-mode .guest-landing{padding-top:32px;padding-bottom:30px}
 .customer-mode .public-offer{padding-block:26px 30px}
 .customer-mode .workspace-head{flex-wrap:wrap;padding-top:22px;gap:2px 4px}
 .customer-mode .workspace-head>div{flex-basis:100%;margin-bottom:4px}
 .customer-mode .workspace-head>button{padding-left:0;padding-right:18px}
 .customer-mode #account-menu{gap:0 8px}
 .customer-mode #account-menu .quiet{font-size:12px;padding-inline:6px}
 .customer-mode #account-email{flex-basis:100%;max-width:100%;order:2;margin:0;padding:2px 6px;font-size:11px}
 .customer-mode #customer-continue{width:100%}
 .customer-mode dialog{padding:24px 20px}
 #customer-auth{padding:0;width:calc(100% - 24px)}
 #customer-auth-form{padding:28px 22px 24px}
 .customer-mode dialog .document-actions{gap:8px}
 .customer-mode dialog .document-actions button{flex:1 1 auto}
}

/* Keep checkout return on one stable surface until the document is restored. */
.checkout-loading{display:none;max-width:var(--content-width);margin:0 auto;padding:56px var(--page-gutter);min-height:340px}
.checkout-loading h1{font-size:clamp(28px,4vw,40px);margin:14px 0 18px}
.checkout-loading [role=status]{color:var(--muted);font-size:16px;line-height:1.65}
html.checkout-return #checkout-loading{display:block}
html.checkout-return #guest-landing,html.checkout-return #app-content,html.checkout-return #public-offer,html.checkout-return #session-loading{display:none!important}
@media(max-width:600px){.checkout-loading{padding:36px var(--page-gutter-mobile);min-height:300px}}

html.checkout-return #guest-account-nav,html.checkout-return #account-menu{visibility:hidden}
/* Upload uses the same content edges as the page it replaces. */
.customer-mode .upload-card{max-width:var(--content-width);margin:0 auto;padding:56px var(--page-gutter);min-height:340px}
.customer-mode .upload-card .upload-stage{font-size:15px;line-height:1.6}
@media(max-width:600px){.customer-mode .upload-card{padding:36px var(--page-gutter-mobile);min-height:320px}}

/* A real, licensed before-and-after example on the public upload page. */
.customer-mode .guest-landing{max-width:1200px}
.home-hero{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:clamp(36px,5vw,72px);align-items:start}
.home-hero-copy{padding-top:28px;min-width:0}
.home-hero-copy h1{max-width:13ch;font-size:clamp(40px,4.4vw,58px);line-height:1.08}
.home-hero-copy .intro{font-size:18px;line-height:1.62;max-width:43ch}
.home-benefits{display:flex;flex-wrap:wrap;gap:8px 18px;list-style:none;padding:0;margin:0 0 24px;color:var(--ink);font-size:13px;font-weight:700}
.home-benefits li{position:relative;padding-left:15px}
.home-benefits li::before{content:'';position:absolute;left:0;top:.62em;width:7px;height:2px;background:var(--accent)}
.conversion-progress{margin:22px 0 18px;padding:20px 22px;border-radius:var(--radius-compact);background:var(--soft)}
.conversion-progress .progress-row{display:grid;grid-template-columns:1fr auto;align-items:baseline;gap:8px 24px;margin:0 0 14px}
.conversion-progress #status{font-size:18px;font-weight:700;color:var(--ink)}
.conversion-progress #progress-detail{font-size:15px;font-weight:650;color:var(--ink);font-variant-numeric:tabular-nums;text-align:right}
.conversion-progress #cost{grid-column:1/-1;color:var(--muted)}
.conversion-progress progress{display:block;height:9px;border-radius:999px;overflow:hidden;background:var(--line)}
.conversion-progress progress::-webkit-progress-bar{background:var(--line);border-radius:999px}
.conversion-progress progress::-webkit-progress-value{background:var(--accent);border-radius:999px;transition:width .25s ease-out}
.conversion-progress progress::-moz-progress-bar{background:var(--accent);border-radius:999px}
.progress-help{margin:12px 0 0;color:var(--muted);font-size:13px;line-height:1.5}
.home-hero-copy .fine{font-size:13px;line-height:1.55;margin:8px 0}
.home-hero-copy .upload{min-height:56px;margin:22px 0 9px}
.home-example{min-width:0;margin:0;border:1px solid var(--line);border-radius:10px;background:var(--white);overflow:hidden;box-shadow:0 14px 34px rgb(32 48 74 / 5%)}
.home-example-heading{display:flex;justify-content:space-between;align-items:end;gap:14px;padding:19px 20px 16px;border-bottom:1px solid var(--line)}
.home-example-heading .eyebrow{font-size:10px;line-height:1.3;margin:0 0 5px}
.home-example-heading h2{font-size:21px;line-height:1.2;letter-spacing:-.025em;margin:0}
.home-example-heading>span{font-size:11px;color:var(--muted);white-space:nowrap}
.home-example-pair{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--line)}
.home-example-source,.home-example-reader{min-width:0;background:#f9fafc;padding:14px}
.home-example-reader{background:#fffdf9}
.home-example-label{margin:0 0 11px;font-size:11px;font-weight:700;color:var(--muted);letter-spacing:.04em;text-transform:uppercase}
.home-example-source img{display:block;width:100%;height:292px;object-fit:contain;object-position:top center;background:#fff}
.home-reader-text{height:292px;overflow:auto;padding:15px;background:#fff;color:#252c38;font:15px/1.5 Georgia,serif}
.home-reader-text h3{font:700 21px/1.18 Georgia,serif;margin:0 0 12px}
.home-reader-text p{margin:0 0 16px}
.home-reader-text img{display:block;width:100%;height:auto;margin-top:13px}
.home-example figcaption{padding:13px 20px 16px;color:var(--muted);font-size:11px;line-height:1.5}
.home-example figcaption a,.home-reasons a{color:var(--accent);text-underline-offset:2px}
.home-reasons{margin-top:66px;padding:35px 0 8px;border-top:1px solid var(--line)}
.home-reasons-intro{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:clamp(36px,5vw,72px);align-items:end}
.home-reasons-intro .eyebrow{grid-column:1/-1;margin:0 0 -25px}
.home-reasons-intro h2{font-size:clamp(26px,3vw,35px);line-height:1.2;letter-spacing:-.035em;max-width:18ch;margin:0}
.home-reasons-intro>p:last-child{font-size:16px;line-height:1.65;color:var(--muted);max-width:45ch;margin:0}
.home-reasons ol{list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 28px;padding:0;margin:34px 0 0;counter-reset:reason}
.home-reasons li{counter-increment:reason;border-top:2px solid var(--ink);padding:16px 10px 0 0;min-width:0}
.home-reasons li:before{content:'0' counter(reason);display:block;color:var(--accent);font-size:13px;font-weight:700;margin-bottom:16px}
.home-reasons li strong{display:block;font-size:17px;line-height:1.35;margin-bottom:8px}
.home-reasons li span{display:block;font-size:14px;line-height:1.6;color:var(--muted)}
@media(max-width:900px){.home-hero,.home-reasons-intro{grid-template-columns:1fr;gap:24px}.home-hero-copy{padding-top:0}.home-hero-copy h1{max-width:none}.home-example{max-width:660px}.home-reasons-intro .eyebrow{grid-column:auto;margin:0}.home-reasons-intro h2{max-width:22ch}}
@media(max-width:650px){.home-example-pair{grid-template-columns:1fr}.home-example-source img{height:260px}.home-reader-text{height:265px}.home-example-heading>span{display:none}.home-reasons{margin-top:48px}.home-reasons ol{grid-template-columns:1fr;gap:24px}.home-reasons li{padding-top:12px}.home-reasons li:before{margin-bottom:7px}.home-benefits{display:grid;grid-template-columns:1fr;gap:7px;margin-bottom:22px}}
@media(max-width:600px){.conversion-progress{padding:18px}.conversion-progress .progress-row{grid-template-columns:1fr;gap:4px}.conversion-progress #progress-detail{text-align:left}}
body.customer-mode>.site-footer{margin-top:auto}

#source-wrap.source-loading{min-height:220px}
#source-wrap.source-loading::before{content:"Loading original page…";position:absolute;inset:0;display:grid;place-items:center;line-height:1.4;font-size:14px;color:var(--muted);background:var(--soft)}

/* Final public-surface polish: clearer hierarchy, calmer proof, complete browser chrome. */
.customer-mode{caret-color:var(--accent)}
.customer-mode ::selection{background:#cdd9ff;color:#14213a}
.customer-mode{scrollbar-color:#9aa8bb transparent;scrollbar-width:thin}
.customer-mode::-webkit-scrollbar,.customer-mode *::-webkit-scrollbar{width:10px;height:10px}
.customer-mode::-webkit-scrollbar-thumb,.customer-mode *::-webkit-scrollbar-thumb{background:#9aa8bb;border:3px solid transparent;border-radius:10px;background-clip:padding-box}
.customer-mode summary{transition:color var(--motion-fast) ease}
.customer-mode summary:hover{color:var(--accent)}
.customer-mode .warning{border:1px solid #d5b979}
.customer-mode .guest-limit-next{padding:16px 18px;border:1px solid var(--line);border-radius:var(--radius-compact);background:var(--white)}
.customer-mode .guest-landing .eyebrow,.customer-mode .sign-in-copy .eyebrow,.home-example-heading .eyebrow,.home-reasons-intro .eyebrow{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.home-hero-copy{padding-top:18px}
.home-hero-copy h1{margin-top:0;text-wrap:balance}
.home-hero-copy .upload svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .18s cubic-bezier(.2,.8,.2,1)}
.home-hero-copy .upload:hover svg{transform:translate(2px,-2px)}
.home-example{box-shadow:0 18px 42px rgb(32 48 74 / 7%)}
.home-example-heading{align-items:center;padding-block:20px}
.home-example-heading h2{font-size:23px}
.home-example-heading>span{padding:5px 8px;border:1px solid var(--line);border-radius:999px;background:var(--paper);font-size:11px}
.home-example figcaption{font-size:12px;line-height:1.55}
.home-reasons{padding-top:42px}
.home-reasons-intro{align-items:start}
.home-reasons-intro h2{text-wrap:balance}
.home-reasons ol{counter-reset:none;gap:28px}
.home-reasons li{counter-increment:none;padding-top:18px}
.home-reasons li::before{content:none}
.home-reasons li span{font-size:15px;line-height:1.65}
.customer-mode .public-offer{max-width:var(--content-width)}
.customer-mode .public-offer h2{text-wrap:balance}
.site-footer{max-width:none;padding-inline:5vw;background:rgb(255 255 255 / 42%)}
#dev-tools:not([hidden]){display:flex;align-items:center;gap:14px;max-width:var(--content-width);margin:0 auto;padding:16px var(--page-gutter)!important;border-top:1px solid var(--line);font-size:13px!important}
#dev-tools button{min-height:40px}
#dev-tools p{margin:0}
@media(max-width:900px){
 .home-hero-copy{padding-top:0}
 .home-example{margin-inline:auto}
}
@media(max-width:650px){
 .home-hero-copy h1{font-size:clamp(36px,10vw,46px)}
 .home-hero-copy .intro{font-size:17px}
 .home-example-heading{padding:17px 16px}
 .home-example-heading h2{font-size:21px}
 .home-example figcaption{padding:15px 16px 18px;font-size:12px}
 .home-reasons{padding-top:34px}
 .home-reasons ol{gap:28px;margin-top:28px}
 .home-reasons li{padding-top:15px}
 .home-reasons li span{font-size:15px}
 .site-footer{padding-inline:20px}
 #dev-tools:not([hidden]){padding:14px 20px!important;flex-wrap:wrap}
}
.connection-status{position:sticky;inset-block-start:0;z-index:20;margin:0;padding:10px 20px;background:#fff3cd;color:#5f4600;border-block-end:1px solid #d7b95f;text-align:center;font-size:14px;line-height:1.45}
.customer-mode :is(.upload-feedback,.customer-status,#session-error,#navigation-message,#customer-auth-context,#customer-auth-error,#customer-history-message,#customer-purchases-list,.guest-limit-file,.workspace-head h2,.job-card h3,#account-email){overflow-wrap:anywhere}
.customer-mode button,.customer-mode .upload{max-width:100%;white-space:normal}
.customer-mode button:disabled,.customer-mode [aria-disabled="true"]{cursor:not-allowed;opacity:.58}
.customer-mode [aria-busy="true"]{cursor:progress}
.customer-mode #account-email{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#google-register[hidden]+.auth-divider{display:none}
@media(max-width:600px){
 .customer-mode :is(input,select,textarea){font-size:16px}
 .connection-status{padding-inline:16px}
}
@media(forced-colors:active){
 .customer-mode :is(button,.upload,input,select,textarea,dialog,.home-example,.document-checkout){forced-color-adjust:auto;border:1px solid ButtonText}
 .customer-mode :is(a,button,.upload,summary):focus-visible{outline:3px solid Highlight}
 .customer-mode progress{border:1px solid CanvasText}
}

/* Compact homepage proof and developer controls in the navigation. */
.home-reasons{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:clamp(36px,5vw,72px);align-items:start;padding-bottom:28px}
.home-reasons-intro{display:block}
.home-reasons-intro h2{max-width:15ch}
.home-reasons-intro>p:last-child{margin-top:14px;max-width:35ch}
.home-reasons dl{margin:0;border-top:1px solid var(--ink)}
.home-reasons dl>div{display:grid;grid-template-columns:100px 1fr;gap:18px;padding:18px 0;border-bottom:1px solid var(--line)}
.home-reasons dt{font-weight:750;color:var(--ink)}
.home-reasons dd{margin:0;color:var(--muted);line-height:1.55}
header #dev-tools:not([hidden]){display:flex;align-items:center;gap:8px;margin-left:auto;padding:0!important;border:0;max-width:none;font-size:12px!important}
header #dev-tools button{min-height:36px;padding:7px 11px;font-size:12px;white-space:nowrap}
header #dev-reset-result{position:absolute;top:calc(100% + 8px);right:5vw;z-index:5;padding:6px 9px;border-radius:4px;background:var(--ink);color:#fff;box-shadow:0 6px 18px rgb(20 30 50 / 18%)}
header #dev-reset-result:empty{display:none}
@media(max-width:900px){.home-reasons{grid-template-columns:1fr;gap:24px}.home-reasons-intro h2{max-width:none}}
@media(max-width:650px){.home-reasons dl>div{grid-template-columns:82px 1fr;gap:12px;padding:15px 0}header #dev-tools:not([hidden]){order:4;margin-left:auto}header #dev-tools button{font-size:11px;padding-inline:8px}}

/* Signed-in account shell: stable navigation, useful file density, clear purchases. */
.customer-mode header{width:100%;min-width:0;flex-wrap:nowrap}
.customer-mode header>*{min-width:0}
.customer-mode #account-menu{flex-wrap:nowrap;white-space:nowrap}
.customer-mode #account-email{display:none}
.customer-mode .library{width:100%;max-width:var(--content-width);margin:0 auto;padding:46px 0 56px;border:0}
.library-head{display:flex;align-items:end;justify-content:space-between;gap:24px;padding-bottom:20px;border-bottom:1px solid var(--line)}
.library-head h1{font-size:clamp(30px,4vw,42px);line-height:1.1;letter-spacing:-.04em;margin:0 0 8px}
.library-head p{margin:0;color:var(--muted);font-size:15px}
.library-head>span{color:var(--muted);font-size:13px;white-space:nowrap}
.customer-mode .library .jobs{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:24px 0 0}
.customer-mode .job-card{display:flex;flex-direction:column;align-items:flex-start;min-height:178px;padding:24px;text-align:left;background:var(--white);border:1px solid var(--line);border-radius:var(--radius-compact);box-shadow:none;transition:border-color var(--motion-fast),transform var(--motion-fast)}
.customer-mode .job-card:hover{border-color:#9baccc;background:var(--white);transform:translateY(-1px)}
.customer-mode .job-card small{font-size:12px;color:var(--muted);letter-spacing:.045em}
.customer-mode .job-card h3{font-size:22px;line-height:1.25;margin:16px 30px 12px 0}
.customer-mode .job-card .fine{margin-top:auto;color:var(--muted);font-size:14px}
.customer-mode .job-card .arrow{right:22px;bottom:21px;font-size:18px}
#customer-purchases{position:relative;width:min(600px,calc(100% - 32px));max-width:600px;padding:0;border-radius:16px;overflow:hidden}
#customer-purchases::backdrop{background:rgb(20 30 50 / 52%);backdrop-filter:blur(2px)}
#customer-purchases>.purchase-history-head{display:block;width:auto;min-height:0;height:auto;padding:32px 72px 23px 32px;border:0;border-bottom:1px solid var(--line);background:var(--white)}
#customer-purchases>.purchase-history-head h2{margin:0 0 6px;font-size:27px}
#customer-purchases>.purchase-history-head p{margin:0;color:var(--muted);font-size:14px}
#customer-history-close{position:absolute;z-index:2;right:20px;top:20px;display:grid;place-items:center;width:40px;height:40px;min-height:40px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--muted)}
#customer-history-close:hover{background:var(--soft);color:var(--ink)}
#customer-history-close svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;fill:none}
#customer-history-message{margin:0;padding:0 32px;color:var(--success);font-size:13px;line-height:1.5}
#customer-history-message:not(:empty){padding-top:18px}
#customer-purchases-list{padding:0 32px}
#customer-purchases-list article{display:grid;grid-template-columns:1fr auto;gap:8px 24px;padding:22px 0;border-bottom:1px solid var(--line)}
.purchase-main{display:flex;flex-direction:column;gap:4px}
.purchase-main strong{font-size:16px}
.purchase-main span{color:var(--muted);font-size:14px}
.purchase-meta{display:flex;flex-direction:column;align-items:flex-end;gap:7px;color:var(--muted);font-size:13px}
.purchase-status{display:inline-flex;align-items:center;min-height:24px;padding:3px 9px;border-radius:999px;background:#e8f5ee;color:var(--success);font-size:12px;font-weight:700}
.purchase-status[data-status=pending]{background:#fff4d6;color:#795600}
.purchase-status[data-status=expired]{background:#f1f3f6;color:var(--muted)}
.purchase-actions,.purchase-note{grid-column:1/-1}
.purchase-actions{display:flex;gap:8px;margin-top:8px}.purchase-actions button{min-height:38px}
.purchase-note{margin:4px 0 0;color:var(--muted);font-size:13px}
.purchase-empty{padding:30px 0;margin:0;color:var(--muted);text-align:center}
.purchase-history-foot{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 32px;background:var(--soft);border-top:1px solid var(--line)}
.purchase-history-foot span{font-size:14px;color:var(--muted)}.purchase-history-foot strong{color:var(--ink);font-size:18px}
@media(max-width:1200px){
 .customer-mode header:has(#account-menu:not([hidden])) .strap,.customer-mode header:has(#account-menu:not([hidden])) .local{display:none}
 .customer-mode header:has(#account-menu:not([hidden])){gap:14px}
 header #dev-tools:not([hidden]){margin-left:auto}
 .customer-mode #account-menu{margin-left:0}
}
@media(max-width:850px){
 .customer-mode header:has(#account-menu:not([hidden])){flex-wrap:wrap;padding-block:12px}
 .customer-mode header:has(#account-menu:not([hidden])) #account-menu{order:3;flex:1 0 100%;justify-content:flex-start;overflow-x:auto;padding-bottom:2px}
 .customer-mode header:has(#account-menu:not([hidden])) #dev-tools{margin-left:auto}
}
@media(max-width:650px){
 .customer-mode .library{padding:32px 0 42px}
 .library-head{align-items:start}.library-head h1{font-size:32px}.library-head p{font-size:14px}
 .customer-mode .library .jobs{grid-template-columns:1fr;gap:12px;padding-top:18px}
 .customer-mode .job-card{min-height:158px;padding:20px}
 #customer-purchases>.purchase-history-head{padding:26px 64px 20px 22px}
 #customer-purchases-list{padding:0 22px}
 #customer-purchases-list article{grid-template-columns:1fr;gap:12px}
 .purchase-meta{align-items:flex-start;flex-direction:row;justify-content:space-between}
 .purchase-history-foot{padding:18px 22px;align-items:stretch;flex-direction:column}
 .purchase-history-foot button{width:100%}
}
@media(max-width:850px){
 .customer-mode header:has(#account-menu:not([hidden])){display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center}
 .customer-mode header:has(#account-menu:not([hidden])) .brand{grid-column:1}
 .customer-mode header:has(#account-menu:not([hidden])) #dev-tools{grid-column:2;margin:0}
 .customer-mode header:has(#account-menu:not([hidden])) #account-menu{grid-column:1/-1;order:initial;width:100%;overflow-x:auto}
}
@media(max-width:850px){.customer-mode header:has(#account-menu:not([hidden])) #dev-tools{order:initial}}

/* Purchases are an account page, not a transient dialog. */
#app-content[hidden]{display:none!important}
.purchases-page{width:100%;max-width:var(--content-width);margin:0 auto;padding:48px var(--page-gutter) 64px}
#customer-purchases.purchases-page{position:static;width:100%;max-width:var(--content-width);max-height:none;overflow:visible;padding:48px var(--page-gutter) 64px;border:0;border-radius:0;background:transparent;box-shadow:none}
.purchases-page-head{display:flex;align-items:end;justify-content:space-between;gap:24px;padding-bottom:24px;border-bottom:1px solid var(--line)}
.purchases-page-head .eyebrow{margin:0 0 8px}.purchases-page-head h1{font-size:clamp(34px,4vw,46px);margin:0 0 8px}.purchases-page-head p:last-child{margin:0;color:var(--muted)}
.purchases-balance{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:24px 0;padding:20px 22px;background:var(--soft);border:1px solid var(--line);border-radius:var(--radius-compact)}
.purchases-balance>span{color:var(--muted);font-size:14px}.purchases-balance strong{font-size:19px}
#customer-purchases.purchases-page #customer-history-message{padding-inline:0}
#customer-purchases.purchases-page #customer-purchases-list{padding:0;border-top:1px solid var(--line)}
#customer-purchases.purchases-page #customer-purchases-list article{grid-template-columns:minmax(180px,1fr) 120px minmax(260px,auto);align-items:center;gap:20px;padding:22px 4px}
#customer-purchases.purchases-page .purchase-meta{align-items:flex-start}
.purchase-action-cell{display:flex;align-items:center;justify-content:flex-end;min-height:42px}.purchase-actions{display:flex;justify-content:flex-end;gap:8px;margin:0}.purchase-actions button{min-height:38px;padding:9px 12px}.purchase-actions .quiet{border:1px solid var(--line);background:var(--white)}.purchase-links{display:flex;align-items:center;justify-content:flex-end;gap:16px;min-height:28px}
.purchase-links a{font-size:14px;font-weight:650;color:var(--accent);white-space:nowrap}
.purchase-unavailable{color:var(--muted);font-size:13px}
#customer-purchases.purchases-page .purchase-actions,#customer-purchases.purchases-page .purchase-note{grid-column:1/-1}
#customer-purchases.purchases-page .purchase-empty{padding:64px 20px;text-align:center;border-bottom:1px solid var(--line)}
.purchase-empty h2{margin:0 0 8px;font-size:22px}.purchase-empty p{margin:0;color:var(--muted)}
@media(max-width:760px){
 .purchases-page,#customer-purchases.purchases-page{padding:32px var(--page-gutter-mobile) 48px}
 .purchases-page-head{align-items:stretch;flex-direction:column}.purchases-page-head button{width:100%}
 .purchases-balance{align-items:flex-start;flex-direction:column;gap:6px}
 #customer-purchases.purchases-page #customer-purchases-list article{grid-template-columns:1fr;gap:12px;padding:22px 0}
 #customer-purchases.purchases-page .purchase-meta{flex-direction:row;justify-content:space-between}
 .purchase-action-cell,.purchase-actions,.purchase-links{justify-content:flex-start}.purchase-actions,.purchase-links{flex-wrap:wrap;gap:10px 14px}
}
