@layer reset{*,:before,:after{box-sizing:border-box}body,h1,h2,h3,p{margin:0}button,input{font:inherit}button,a,input,summary{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer;color:inherit;background:0 0;border:0}button:disabled{cursor:default}a{color:inherit;text-decoration:none}img,svg{flex-shrink:0}img{max-width:100%;display:block}}@layer base{:root{--paper:#f7f8fa;--white:#fff;--ink:#20242c;--text:#424956;--muted:#626c7a;--accent:#315bd6;--accent-hover:#2448b5;--pale:#edf2ff;--line:#e2e5eb;--subtle:#f0f2f5;--sans:-apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;color:var(--text);background:var(--paper);font-family:var(--sans);font-synthesis:none;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;font-weight:400}body{min-width:320px;font-size:14px;line-height:1.5}::selection{color:var(--ink);background:#dce5ff}:focus-visible{outline:2px solid var(--accent);outline-offset:3px}input{min-width:0;color:var(--ink);background:var(--white);border:1px solid #cdd3dc;border-radius:7px;outline:none;transition:border-color .12s,box-shadow .12s}input:focus{border-color:var(--accent);box-shadow:0 0 0 3px #315bd619}input::placeholder{color:#747e8d;opacity:1}input:disabled{color:var(--muted);background:var(--subtle)}button:disabled,.disabled{opacity:.48}h1,h2,h3{color:var(--ink);font-weight:600}h2{letter-spacing:-.25px;font-size:17px;line-height:1.4}summary{cursor:pointer;list-style:none}summary::-webkit-details-marker{display:none}summary>svg:last-child{transition:transform .12s}details[open]>summary>svg:last-child{transform:rotate(180deg)}.visually-hidden{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;position:absolute!important}.skip-link{z-index:100;background:var(--ink);color:#fff;border-radius:7px;padding:10px 18px;position:fixed;top:12px;left:20px;transform:translateY(-160%)}.skip-link:focus{transform:none}.spin{animation:.9s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}}@layer components{.app{min-height:100dvh}.site-header{border-bottom:1px solid var(--line);background:var(--white);align-items:center;height:68px;padding:0 32px;display:flex}.wordmark{color:var(--ink);letter-spacing:-.7px;align-items:center;gap:10px;font-size:22px;font-weight:650;line-height:1;display:inline-flex}.folio-mark{width:34px;height:34px;color:var(--accent);overflow:visible}.header-right{margin-left:auto}.header-help{min-height:40px;color:var(--muted);border-radius:6px;align-items:center;gap:7px;padding:8px;font-size:13px;display:flex}.header-help:hover{background:var(--subtle);color:var(--ink)}.icon-button{width:36px;height:36px;color:var(--muted);border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;padding:0;transition:background .12s,color .12s;display:inline-flex}.icon-button:hover:not(:disabled){color:var(--ink);background:#e8ebf0}.button{border-radius:7px;justify-content:center;align-items:center;gap:8px;min-height:44px;padding:11px 17px;font-size:14px;font-weight:500;line-height:1.4;transition:background .12s;display:inline-flex}.button.primary{background:var(--accent);color:#fff}.button.primary:hover:not(:disabled){background:var(--accent-hover)}.button.secondary{background:var(--white);color:var(--text);border:1px solid #cdd3dc}.button.secondary:hover:not(:disabled){background:var(--subtle)}.button.small{min-height:40px;padding:8px 12px;font-size:13px}.button.text-button{color:var(--muted)}.text-link{color:var(--accent);align-items:center;gap:5px;min-height:36px;padding:5px 0;font-size:13px;display:inline-flex}.text-link:hover{text-underline-offset:3px;text-decoration:underline}.dot{color:var(--muted);margin:0 3px}.welcome{width:min(560px,100% - 40px);margin:clamp(64px,12vh,132px) auto 48px}.welcome-heading{margin-bottom:28px}.welcome h1{letter-spacing:-1px;font-size:32px;line-height:1.2}.welcome-heading p{color:var(--muted);margin-top:10px;font-size:15px}.upload-area{background:var(--white);border:1px dashed #b9c2d0;border-radius:12px;flex-direction:column;justify-content:center;align-items:center;width:100%;min-height:290px;padding:40px 24px;transition:border-color .12s,background .12s;display:flex}.upload-area:hover:not(:disabled){border-color:var(--accent);background:#fcfdff}.upload-area>svg{color:var(--accent);margin-bottom:20px}.upload-title{color:var(--ink);font-size:16px;font-weight:500}.upload-or{color:var(--muted);margin:8px 0 18px;font-size:13px}.welcome-meta{color:var(--muted);justify-content:space-between;align-items:center;gap:16px;margin-top:16px;font-size:12px;display:flex}.welcome-meta>span,.sample-link{align-items:center;gap:6px;display:inline-flex}.sample-link{color:var(--accent);min-height:40px;padding:5px 0 5px 8px;font-size:13px}.sample-link:hover{text-underline-offset:3px;text-decoration:underline}.workspace-shell{background:var(--white);grid-template-columns:260px minmax(0,1fr);max-width:1600px;min-height:calc(100dvh - 68px);margin:auto;display:grid}.bookshelf{border-right:1px solid var(--line);background:var(--paper);flex-direction:column;align-self:start;min-height:calc(100dvh - 68px);max-height:100dvh;padding:28px 16px 24px;display:flex;position:sticky;top:0}.shelf-heading{justify-content:space-between;align-items:center;margin-bottom:20px;padding:0 8px;display:flex}.shelf-heading h2{letter-spacing:-.1px;font-size:14px}.shelf-heading h2 span{color:var(--muted);margin-left:7px;font-size:12px;font-weight:400}.add-book-button{background:var(--white);width:100%;color:var(--text);border:1px solid #ccd2dc}.add-book-button:hover:not(:disabled){border-color:#9da8ba}.book-list{gap:5px;min-height:0;margin:20px 0;display:grid;overflow:auto}.book-item{border:1px solid #0000;border-radius:8px;align-items:center;padding:10px 4px 10px 10px;display:flex;position:relative}.book-item.active{background:#e9edf6;border-color:#dde3ef}.book-select{text-align:left;align-items:center;gap:10px;width:100%;min-width:0;padding:0;display:flex}.book-cover{width:34px;height:46px;color:var(--muted);background:#edf0f5;border:1px solid #d5dae4;border-radius:3px;flex-direction:column;flex-shrink:0;justify-content:center;align-items:center;display:flex;overflow:hidden}.book-cover img{object-fit:cover;width:100%;height:100%}.book-cover>span{font-size:12px}.book-text{flex-direction:column;gap:4px;min-width:0;display:flex}.book-text>strong{-webkit-line-clamp:2;color:var(--ink);overflow-wrap:anywhere;-webkit-box-orient:vertical;font-size:13px;font-weight:500;line-height:1.4;display:-webkit-box;overflow:hidden}.book-text>span{color:var(--muted);font-size:12px}.book-text .unsaved-note{color:#87620c;font-size:11px}.book-menu-button{width:30px;margin-left:2px}.book-checkbox{cursor:pointer;flex-shrink:0;place-items:center;margin-right:8px;display:grid;position:relative}.book-checkbox input{opacity:0;width:20px;height:20px;margin:0;position:absolute}.book-checkbox>span{color:#0000;background:#fff;border:1px solid #a9b3c2;border-radius:4px;place-items:center;width:18px;height:18px;display:grid}.book-checkbox input:checked+span{background:var(--accent);border-color:var(--accent);color:#fff}.book-checkbox input:focus-visible+span{outline:2px solid var(--accent);outline-offset:3px}.batch-toggle{color:var(--muted);text-align:left;border-top:1px solid var(--line);align-items:center;gap:8px;padding:12px 8px;font-size:12px;display:flex}.batch-toggle svg:last-child{margin-left:auto}.batch-toggle.active{color:var(--accent)}.shelf-bottom{margin-top:auto;padding:32px 8px 0}.shelf-saved{color:var(--muted);align-items:center;gap:7px;font-size:11px;display:flex}.status-dot{background:#4f8a68;border-radius:50%;width:5px;height:5px}.shelf-storage{color:var(--muted);align-items:center;gap:7px;margin-top:4px;padding:4px 0 4px 12px;font-size:11px;display:flex}.main-workspace{min-width:0;padding:40px 48px 48px}.workspace-heading{margin-bottom:36px}.workspace-heading h1{letter-spacing:-.8px;-webkit-line-clamp:2;overflow-wrap:anywhere;-webkit-box-orient:vertical;font-size:28px;font-weight:600;line-height:1.25;display:-webkit-box;overflow:hidden}.book-metadata{color:var(--muted);align-items:center;gap:8px;margin-top:8px;font-size:13px;display:flex}.editor-grid{grid-template-columns:minmax(0,.95fr) minmax(0,1fr);align-items:start;gap:48px;display:grid}.selection-panel,.preview-section{min-width:0}.section-heading{justify-content:space-between;align-items:center;gap:12px;display:flex}.page-count-badge{color:var(--muted);background:var(--subtle);border-radius:5px;padding:3px 8px;font-size:12px}.ranges{gap:16px;margin-top:22px;display:grid}.range-line{grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr) 28px;align-items:center;gap:10px;display:grid}.range-field{flex-direction:column;gap:8px;display:flex}.range-field>span{color:var(--text);font-size:13px}.range-field input{font-variant-numeric:tabular-nums;width:100%;height:46px;padding:10px 12px;font-size:16px}.range-field input::placeholder{font-size:14px;font-weight:400}.range-arrow{color:var(--muted);margin-top:27px}.range-actions{flex-direction:column;margin-top:27px;display:flex}.range-actions .icon-button{width:28px;height:28px}.range-block.has-error input{background:snow;border-color:#c34c4c}.inline-error{color:#b33232;margin-top:8px;font-size:12px;line-height:1.5}.range-bottom{justify-content:space-between;align-items:center;margin-top:12px;display:flex}.add-range{color:var(--accent);align-items:center;gap:6px;min-height:40px;padding:6px 0;font-size:13px;display:flex}.clear-ranges{color:var(--muted);padding:8px 0 8px 12px;font-size:12px}.quick-entry{color:var(--muted);margin-top:4px;font-size:13px}.quick-entry summary{align-items:center;gap:6px;min-height:36px;display:flex}.quick-entry>div{padding-top:10px}.quick-entry label{margin-bottom:8px;font-size:12px;display:block}.quick-entry-input{gap:8px;display:flex}.quick-entry-input input{width:100%;padding:9px;font-size:14px}.quick-entry-input .button{flex-shrink:0}.field-note{color:var(--muted);margin-top:8px;font-size:12px;line-height:1.6}.output-section{border-top:1px solid var(--line);margin-top:24px;padding-top:24px}.output-mode{isolation:isolate;background:var(--subtle);border-radius:8px;grid-template-columns:1fr 1fr;gap:4px;margin-top:16px;padding:4px;display:grid;position:relative}.output-mode button{min-height:40px;color:var(--muted);white-space:nowrap;border:1px solid #0000;border-radius:5px;align-items:center;gap:7px;padding:8px 10px;font-size:13px;display:flex}.output-mode button.active{color:var(--ink)}.output-mode button>svg:last-child:not(:first-child){color:var(--accent);margin-left:auto}.mode-explanation{color:var(--muted);margin-top:10px;font-size:12px;line-height:1.5}.filename-label{color:var(--text);margin:22px 0 8px;font-size:13px;display:block}.filename-label>span{color:var(--muted);margin-left:4px;font-size:12px}.filename-input{background:var(--white);border:1px solid #cdd3dc;border-radius:7px;align-items:center;display:flex;overflow:hidden}.filename-input:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px #315bd619}.filename-input input{width:100%;height:44px;box-shadow:none;border:0;border-radius:0;padding:10px 12px;font-size:14px}.filename-input>span{color:var(--muted);flex-shrink:0;padding-right:12px;font-size:12px}.export-section{padding-top:24px}.export-summary{color:var(--muted);justify-content:space-between;align-items:center;gap:8px;padding-bottom:12px;font-size:12px;display:flex}.export-summary strong{color:var(--text);font-weight:500}.summary-check{color:var(--accent);display:flex}.create-button{justify-content:space-between;width:100%;min-height:46px}.create-button>span{align-items:center;gap:8px;display:flex}.export-below{justify-content:space-between;align-items:center;padding-top:8px;display:flex}kbd{font-family:var(--sans);color:var(--muted);font-size:11px}.progress-copy{color:var(--muted);margin-top:10px;font-size:12px;line-height:1.6}.preview-card{border:1px solid var(--line);background:var(--subtle);border-radius:10px;overflow:hidden}.preview-toolbar{justify-content:space-between;align-items:center;min-height:54px;padding:8px 12px 8px 20px;display:flex}.preview-toolbar h2{letter-spacing:0;color:var(--text);font-size:13px;font-weight:500}.preview-canvas-wrap{justify-content:center;align-items:center;width:100%;height:420px;padding:8px 28px 24px;display:flex;position:relative}.preview-canvas{background:#fff;border-radius:1px;flex-shrink:0;display:block;box-shadow:0 2px 8px #20242c14}.preview-loading,.preview-error,.preview-empty{color:var(--muted);text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:12px;padding:24px;font-size:13px;display:flex;position:absolute;inset:0}.preview-section>.preview-loading{border:1px solid var(--line);background:var(--subtle);border-radius:10px;height:534px;position:relative}.preview-error p{max-width:290px}.preview-error span{font-size:12px}.preview-error .text-button{color:var(--accent);padding:10px 14px}.preview-footer{border-top:1px solid var(--line);background:var(--white);justify-content:space-between;align-items:center;gap:8px;min-height:60px;padding:10px 12px;display:flex}.preview-navigation{align-items:center;gap:2px;display:flex}.preview-page-position{color:var(--muted);align-items:center;gap:7px;font-size:12px;display:flex}.preview-page-input{text-align:center;font-variant-numeric:tabular-nums;border-radius:5px;width:42px;height:34px;padding:4px;font-size:13px}.preview-use-page{min-height:36px;color:var(--accent);white-space:nowrap;align-items:center;gap:4px;padding:6px 2px;font-size:12px;display:flex}.preview-navigation .icon-button{width:30px}.numbering-settings{color:var(--muted);padding:12px 0 0;font-size:12px}.numbering-settings summary{align-items:center;gap:7px;min-height:40px;display:flex}.numbering-settings summary>svg:last-child{margin-left:auto}.numbering-body{background:var(--paper);border:1px solid var(--line);border-radius:8px;margin-top:8px;padding:16px}.numbering-body>p{font-size:12px;line-height:1.6}.numbering-fields{grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;margin-top:14px;display:grid}.numbering-fields label{flex-direction:column;gap:6px;font-size:12px;display:flex}.numbering-fields input{width:100%;padding:9px 10px;font-size:14px}.numbering-fields>span{padding-top:24px}.numbering-actions{align-items:center;gap:14px;margin-top:14px;display:flex}.batch-tray{background:var(--pale);border:1px solid #dae2fa;border-radius:8px;margin-bottom:28px;padding:16px}.batch-tray>div:first-child{flex-wrap:wrap;align-items:center;gap:8px;font-size:13px;display:flex}.batch-tray strong{font-weight:500}.batch-tray>div:first-child>span{color:var(--muted);margin-left:auto;font-size:12px}.batch-chips{flex-wrap:wrap;gap:7px;margin-top:12px;display:flex}.batch-chips:empty{margin-top:0}.batch-chip{background:#f8faff;border:1px solid #d6dff5;border-radius:6px;align-items:center;max-width:100%;padding:4px 8px;display:flex}.batch-chip.active{background:var(--white);border-color:#9bb1ed}.batch-chip>button:first-child{text-overflow:ellipsis;white-space:nowrap;align-items:center;gap:7px;max-width:250px;min-height:30px;font-size:12px;display:flex;overflow:hidden}.batch-chip>button:first-child>span{color:var(--accent);font-variant-numeric:tabular-nums}.batch-reorder{color:var(--accent);border-left:1px solid #d6dff5;margin-left:6px;padding:6px;display:flex}.not-included{color:#84621b;background:#fffaeb;border-radius:6px;justify-content:space-between;align-items:center;gap:10px;margin-top:16px;padding:10px 12px;font-size:12px;display:flex}.recent-section{border-top:1px solid var(--line);margin-top:40px;padding-top:24px}.recent-heading{margin-bottom:16px}.recent-heading h2{letter-spacing:-.1px;align-items:center;gap:8px;font-size:14px;display:flex}.recent-list{grid-template-columns:1fr 1fr;gap:10px;display:grid}.recent-item{border:1px solid var(--line);border-radius:7px;align-items:center;gap:4px;min-width:0;padding:12px;display:flex}.recent-restore{text-align:left;align-items:center;gap:10px;width:100%;min-width:0;padding:0;display:flex}.recent-file-icon{background:var(--subtle);width:32px;height:38px;color:var(--muted);border-radius:5px;place-items:center;display:grid}.recent-restore>span:nth-child(2){flex-direction:column;gap:4px;min-width:0;display:flex}.recent-restore strong{white-space:nowrap;text-overflow:ellipsis;font-size:12px;font-weight:500;overflow:hidden}.recent-restore>span>span{color:var(--muted);font-size:11px}.recent-restore>svg{color:var(--muted);margin-left:auto}.recent-item .icon-button{width:28px}.last-download{min-height:44px;color:var(--accent);align-items:center;gap:6px;margin-top:8px;padding:12px 0;font-size:12px;display:flex}.mobile-only,.mobile-shelf-button,.shelf-scrim{display:none}.no-active-book,.initial-loading{text-align:center;min-height:65dvh;color:var(--muted);flex-direction:column;justify-content:center;align-items:center;gap:16px;padding:24px;display:flex}.no-active-book h1,.initial-loading h1{letter-spacing:-.5px;font-size:24px}.dialog{border:1px solid var(--line);background:var(--white);width:min(460px,100vw - 32px);max-height:calc(100dvh - 40px);color:var(--text);overscroll-behavior:contain;border-radius:12px;padding:40px 32px 28px;overflow-y:auto;box-shadow:0 16px 64px #20242c26}.dialog::backdrop{background:#151c2b66}.preview-dialog::backdrop{background:#151c2b66}.dialog-close{position:absolute;top:10px;right:10px}.dialog h2{letter-spacing:-.6px;font-size:24px;line-height:1.25}.dialog-intro{color:var(--muted);overflow-wrap:anywhere;margin-top:12px;font-size:14px;line-height:1.6}.dialog-symbol{color:var(--accent);margin-bottom:20px}.result-dialog{text-align:center}.success-mark{color:#2e774a;background:#eaf5ed;border-radius:50%;place-items:center;width:48px;height:48px;margin:0 auto 20px;display:grid}.result-file{background:var(--paper);border:1px solid var(--line);text-align:left;border-radius:8px;align-items:center;gap:12px;margin:24px 0;padding:16px 12px;display:flex}.file-symbol{width:32px;height:42px;color:var(--muted);place-items:center;display:grid}.result-file>div{flex-direction:column;flex:1;gap:5px;min-width:0;display:flex}.result-file strong{overflow-wrap:anywhere;font-size:13px;font-weight:500}.result-file>div>span{color:var(--muted);font-size:12px}.result-file>svg:last-child{color:#2e774a}.result-dialog>.button.primary,.manage-dialog>.button.primary{width:100%}.keep-splitting{margin-top:8px}.download-hint{color:var(--muted);margin-top:16px;font-size:12px}.separate-downloads{margin-top:16px}.separate-downloads summary{color:var(--accent);justify-content:center;align-items:center;gap:7px;min-height:36px;font-size:13px;display:flex}.separate-downloads>div{gap:6px;max-height:200px;margin-top:12px;display:grid;overflow-y:auto}.individual-download{text-align:left;background:var(--paper);color:var(--accent);border-radius:6px;align-items:center;gap:8px;padding:10px;font-size:12px;display:flex}.individual-download span:first-of-type{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.individual-download span:last-of-type{flex-shrink:0;margin-left:auto;font-size:11px}.import-dialog{text-align:center}.import-dialog .dialog-close{display:none}.import-name{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;margin-top:18px;font-size:13px;overflow:hidden}.help-dialog{width:min(540px,100vw - 32px)}.help-top-tip{background:var(--paper);border-radius:7px;align-items:center;gap:12px;margin:24px 0 8px;padding:14px;font-size:13px;display:flex}.help-top-tip svg{color:var(--accent)}.faq-list details{border-bottom:1px solid var(--line);padding:18px 0}.faq-list summary{color:var(--ink);justify-content:space-between;align-items:center;gap:20px;font-size:13px;line-height:1.5;display:flex}.faq-list details p{color:var(--muted);margin-top:12px;font-size:13px;line-height:1.7}.storage-info{color:var(--muted);margin-top:20px;font-size:11px}.manage-name-input{width:100%;margin:2px 0 18px;padding:12px;font-size:14px}.manage-dialog .filename-label{margin-top:24px}.remove-book-link{color:#b33232;justify-content:center;align-items:center;gap:7px;min-height:40px;margin:16px auto 0;font-size:13px;display:flex}.manage-note{color:var(--muted);margin:18px 0 24px;font-size:13px;line-height:1.7}.dialog-actions{gap:10px;display:flex}.dialog-actions .button{flex:1}.button.danger{color:#fff;background:#b33232}.button.danger:hover{background:#962626}.notice{color:#80600e;background:#fff8e6;border-bottom:1px solid #eddfb7;justify-content:space-between;align-items:center;gap:20px;padding:12px 32px;font-size:13px;line-height:1.6;display:flex}.notice.error{color:#a42b2b;background:#fff0f0;border-bottom-color:#efcfcf}.notice .icon-button{color:inherit}.toast{z-index:30;bottom:max(24px, env(safe-area-inset-bottom));color:#fff;background:#293241;border-radius:8px;align-items:center;gap:10px;width:max-content;max-width:calc(100vw - 32px);padding:12px 16px;font-size:13px;display:flex;position:fixed;left:50%;transform:translate(-50%);box-shadow:0 4px 16px #20242c26}.toast button{color:#dce2ed;place-items:center;margin-left:4px;padding:6px;display:grid}.drag-overlay{z-index:40;border:2px dashed var(--accent);pointer-events:none;background:#f2f6fff5;border-radius:12px;place-items:center;display:grid;position:fixed;inset:12px}.drag-overlay>div{text-align:center;color:var(--accent);padding:30px}.drag-overlay h2{margin-top:20px;font-size:28px}.preview-dialog{border:1px solid var(--line);background:var(--subtle);width:min(1000px,100vw - 28px);max-height:calc(100dvh - 28px);color:var(--text);border-radius:10px;padding:0;overflow:auto}.preview-dialog-inner{width:100%}.preview-dialog .preview-toolbar{padding:10px 20px}.preview-dialog .preview-canvas-wrap{height:min(72dvh,850px);padding:12px 30px 20px}.preview-dialog .preview-footer{padding:12px 24px}}@layer motion{:root{--ease-out:cubic-bezier(.2,.8,.2,1)}.motion-list{position:relative}.button,.icon-button,.header-help,.book-item,.recent-item,.batch-chip,.add-range,.preview-use-page{transition:background-color .15s, border-color .15s, color .15s, transform .15s var(--ease-out), opacity .15s}.button:active:not(:disabled),.icon-button:active:not(:disabled),.add-range:active:not(:disabled),.preview-use-page:active:not(:disabled){transform:scale(.975)}.button svg,.sample-link svg,.add-range svg,.preview-use-page svg{transition:transform .18s var(--ease-out)}.create-button:not(:disabled):hover>svg:last-child,.sample-link:hover svg{transform:translate(3px)}.add-range:hover svg{transform:rotate(90deg)}.upload-area>svg{transition:transform .22s var(--ease-out)}.upload-area:hover:not(:disabled)>svg{transform:translateY(-3px)}.upload-area:active:not(:disabled) .button{transform:scale(.975)}.book-item:hover:not(.active),.recent-item:hover{background:#f4f6fa}.book-checkbox>span{transition:background-color .14s,border-color .14s}.book-checkbox svg{opacity:0;transition:transform .18s var(--ease-out), opacity .14s;transform:scale(.6)}.book-checkbox input:checked+span svg{opacity:1;transform:scale(1)}.folio-mark path{transition:transform .24s var(--ease-out)}.wordmark:hover .mark-top,.wordmark:focus-visible .mark-top{transform:translate(2px,-2px)}.wordmark:hover .mark-middle,.wordmark:focus-visible .mark-middle{transform:translate(1px,-1px)}.output-mode:before{content:"";z-index:-1;background:var(--white);width:calc(50% - 6px);transition:transform .26s var(--ease-out);border:1px solid #dce1e9;border-radius:5px;position:absolute;inset:4px auto 4px 4px;box-shadow:0 1px 3px #20242c0b}.output-mode.mode-separate:before{transform:translate(calc(100% + 4px))}.output-mode button{justify-content:center;transition:color .18s}.output-mode button>svg{transition:color .18s, transform .22s var(--ease-out)}.output-mode button.active>svg{color:var(--accent);transform:translateY(-1px)}.mode-explanation{animation:copy-change .18s var(--ease-out)}.page-count-badge{animation:count-change .2s var(--ease-out)}.page-motion{--sheet-width:38px;--sheet-height:50px;width:88px;height:84px;color:var(--accent);flex-shrink:0;display:inline-block;position:relative}.motion-sheet{left:calc(50% - var(--sheet-width) / 2);top:calc(50% - var(--sheet-height) / 2);width:var(--sheet-width);height:var(--sheet-height);background:var(--white);border:1.5px solid;border-radius:4px;position:absolute}.sheet-back{opacity:.28;animation:sheet-back 1.8s var(--ease-out) infinite}.sheet-middle{opacity:.55;animation:sheet-middle 1.8s var(--ease-out) infinite}.sheet-front{animation:sheet-extract 1.8s var(--ease-out) infinite;flex-direction:column;gap:5px;padding:13px 8px;display:flex}.sheet-front i{opacity:.35;background:currentColor;border-radius:1px;height:2px}.sheet-front i:last-child{width:65%}.page-motion.is-compact{--sheet-width:17px;--sheet-height:23px;width:36px;height:32px}.is-compact .motion-sheet{border-width:1px;border-radius:2px}.is-compact .sheet-front{gap:3px;padding:6px 4px}.is-compact .sheet-front i{height:1px}.create-button .page-motion{color:#fff;width:25px;height:22px;margin-right:2px}.create-button .motion-sheet{background:var(--accent)}.import-dialog>.page-motion{margin:0 auto 12px}.operation-progress{background:var(--subtle);border-radius:4px;height:4px;margin-top:24px;position:relative;overflow:hidden}.operation-progress i{border-radius:inherit;background:var(--accent);transform-origin:0;height:100%;transition:transform .24s linear;display:block}.operation-progress:not(.is-determinate) i{animation:1.4s ease-in-out infinite progress-pass}.export-progress{animation:feedback-in .18s var(--ease-out)}.export-progress .operation-progress{margin-top:8px}.import-dialog .operation-progress{margin-bottom:16px}.preview-canvas-wrap:not([aria-busy=true]) .preview-canvas{animation:.18s ease-out page-resolve}.preview-loading{animation:.2s ease-out loading-in}.dialog,.preview-dialog{opacity:0;transition:opacity .16s ease-out, transform .22s var(--ease-out), display .22s allow-discrete, overlay .22s allow-discrete;transform:translateY(8px)scale(.985)}.dialog[open],.preview-dialog[open]{opacity:1;transform:none}.dialog::backdrop{opacity:0;transition:opacity .18s, display .22s allow-discrete, overlay .22s allow-discrete}.preview-dialog::backdrop{opacity:0;transition:opacity .18s, display .22s allow-discrete, overlay .22s allow-discrete}.dialog[open]::backdrop{opacity:1}.preview-dialog[open]::backdrop{opacity:1}@starting-style{.dialog[open],.preview-dialog[open]{opacity:0;transform:translateY(8px)scale(.985)}.dialog[open]::backdrop{opacity:0}.preview-dialog[open]::backdrop{opacity:0}}.success-mark{animation:success-arrive .28s var(--ease-out)}.success-mark path{stroke-dasharray:40;stroke-dashoffset:0;animation:.3s ease-out .1s both check-draw}.toast{animation:toast-in .22s var(--ease-out)}.notice,.batch-tray,.drag-overlay,.inline-error{animation:feedback-in .18s var(--ease-out)}.drag-overlay>div>svg{animation:drop-in .26s var(--ease-out)}details[open]>div{animation:feedback-in .18s var(--ease-out)}@supports (interpolate-size:allow-keywords){details{interpolate-size:allow-keywords}details::details-content{opacity:0;block-size:0;transition:block-size .24s var(--ease-out), opacity .18s, content-visibility .24s allow-discrete;overflow:clip}details[open]::details-content{opacity:1;block-size:auto}}@keyframes sheet-extract{0%,to{transform:translate(0)rotate(0)}45%,65%{transform:translate(10px,-7px)rotate(8deg)}}@keyframes sheet-middle{0%,to{transform:translate(-3px,2px)rotate(-4deg)}45%,65%{transform:translate(0)}}@keyframes sheet-back{0%,to{transform:translate(-6px,4px)rotate(-8deg)}45%,65%{transform:translate(-7px,5px)rotate(-10deg)}}@keyframes progress-pass{0%{transform:translate(-100%)scaleX(.4)}to{transform:translate(100%)scaleX(.4)}}@keyframes copy-change{0%{opacity:.25;transform:translateY(2px)}to{opacity:1;transform:none}}@keyframes count-change{0%{opacity:.4;transform:scale(.94)}to{opacity:1;transform:scale(1)}}@keyframes page-resolve{0%{opacity:.2}to{opacity:1}}@keyframes loading-in{0%{opacity:0}to{opacity:1}}@keyframes feedback-in{0%{opacity:0}to{opacity:1}}@keyframes success-arrive{0%{opacity:0;transform:scale(.85)}to{opacity:1;transform:scale(1)}}@keyframes check-draw{0%{stroke-dashoffset:40px}to{stroke-dashoffset:0}}@keyframes toast-in{0%{opacity:0;transform:translate(-50%,6px)}to{opacity:1;transform:translate(-50%)}}@keyframes drop-in{0%{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}}@layer responsive{@media (min-width:1500px){.main-workspace{padding-left:64px;padding-right:64px}.editor-grid{gap:64px}.preview-canvas-wrap{height:460px}}@media (max-width:1200px){.workspace-shell{grid-template-columns:224px minmax(0,1fr)}.main-workspace{padding:32px}.editor-grid{gap:28px}.preview-canvas-wrap{height:380px;padding:8px 20px 24px}.output-mode button{gap:5px;padding:8px;font-size:12px}.preview-footer{gap:4px;padding:10px 8px}.preview-navigation{gap:0}.preview-use-page{font-size:11px}}@media (max-width:1050px) and (min-width:761px){.editor-grid{grid-template-columns:1fr;gap:36px}.preview-canvas-wrap{height:460px}.recent-list{grid-template-columns:1fr}}@media (max-width:760px){.site-header{height:60px;padding:0 20px}.wordmark{font-size:21px}.welcome{margin-top:64px}.workspace-shell{min-height:calc(100dvh - 60px);display:block}.bookshelf{z-index:25;visibility:hidden;pointer-events:none;width:min(320px,100vw - 40px);height:calc(100dvh - 60px);min-height:0;max-height:calc(100dvh - 60px);transition:transform .24s var(--ease-out), visibility .24s;padding:24px 16px;display:flex;position:fixed;top:60px;bottom:0;left:0;transform:translate(-100%)}.bookshelf.mobile-open{visibility:visible;pointer-events:auto;transform:translate(0)}.shelf-scrim{z-index:24;visibility:hidden;opacity:0;pointer-events:none;background:#151c2b55;transition:opacity .2s,visibility .2s;display:block;position:fixed;inset:0}.shelf-scrim.is-visible{visibility:visible;opacity:1;pointer-events:auto}.mobile-only{display:inline-flex}.main-workspace{padding:16px 24px 36px}.mobile-shelf-button{min-height:44px;color:var(--muted);align-items:center;gap:8px;margin-bottom:24px;padding:8px 0;font-size:13px;display:flex}.mobile-shelf-button>span{font-size:12px}.mobile-shelf-button>svg:last-child{margin-left:4px}.workspace-heading{margin-bottom:28px}.workspace-heading h1{font-size:25px}.editor-grid{grid-template-columns:1fr;gap:32px}.preview-canvas-wrap{height:440px}.preview-footer{padding:10px 12px}.preview-use-page{font-size:12px}.recent-list{grid-template-columns:1fr}.batch-tray>div:first-child>span{width:100%;margin-left:0}.dialog{padding:40px 24px 24px}.notice{padding:12px 20px}input,.quick-entry-input input,.filename-input input,.manage-name-input,.numbering-fields input,.preview-page-input{font-size:16px}kbd{display:none}.icon-button{min-width:36px;min-height:36px}.range-actions .icon-button{min-width:28px;min-height:32px}}@media (max-width:380px){.welcome-meta{flex-direction:column;align-items:flex-start;gap:0}.sample-link{padding-left:0}.main-workspace{padding-left:16px;padding-right:16px}.range-line{gap:7px}.preview-canvas-wrap{height:360px;padding-left:16px;padding-right:16px}.preview-navigation .icon-button{width:28px;min-width:28px}.preview-page-position{gap:4px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}.operation-progress:not(.is-determinate) i{opacity:.6;transform:none}.page-motion .sheet-front{transform:translate(5px,-3px)rotate(6deg)}.page-motion .sheet-middle{transform:translate(0)}.page-motion .sheet-back{transform:translate(-5px,3px)rotate(-6deg)}.success-mark path{stroke-dashoffset:0}.wordmark:hover .mark-top,.wordmark:hover .mark-middle{transform:none}}}
