/* Publishing engine: fixed output ratios, page navigation and export center. */
.release{height:calc(100dvh - 74px);overflow:auto;overscroll-behavior:contain}
.release-heading{position:sticky;top:-34px;z-index:4;display:flex;align-items:center;justify-content:space-between;margin:-34px -34px 14px;padding:34px 34px 13px;color:#8f8580;background:#f4f0ecf2;border-bottom:1px solid #e5ddd6;backdrop-filter:blur(10px);font-size:10px;letter-spacing:.08em}
.release-heading b{color:#625956;font-weight:600;letter-spacing:0}
.page-index-strip{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 14px}
.page-index-strip button{min-width:30px;height:28px;padding:0 8px;border:1px solid #ddd4cc;border-radius:7px;color:#786e69;background:#fffaf6;font-size:10px}
.page-index-strip button.active{border-color:#c7655c;color:#fff;background:#c7655c}
.page-index-strip button:active{transform:translateY(1px)}
.release-pages{display:flex;flex-direction:column;align-items:center;gap:17px}
.output-page-wrap{width:100%;display:flex;flex-direction:column;align-items:center;gap:6px}
.output-card-scale{flex:none;transform-origin:top center}
.output-page-caption{color:#9b918c;font-size:10px}
.screen-card{width:var(--output-width,360px);height:auto;min-height:0;aspect-ratio:3/4}
.screen-card.format-story{min-height:0;aspect-ratio:9/16}
.screen-card.format-square{min-height:0;aspect-ratio:1/1}
.screen-card.format-landscape{min-height:0;aspect-ratio:4/3}
.screen-card .card-body{overflow:hidden}
.screen-card .card-body p{margin:0 0 8px}
.screen-card h2.title-blank{visibility:hidden}
.screen-card .card-body ol,.screen-card .card-body ul{margin:0 0 8px;padding-inline-start:20px}
.screen-card .card-body li{margin:0 0 4px;padding-inline-start:1px}
.screen-card .card-body li:last-child{margin-bottom:0}
.screen-card .card-body li.list-continuation{list-style:none}
.rich ol,.rich ul{margin:0 0 10px;padding-inline-start:25px}
.rich li{margin:0 0 4px;padding-inline-start:1px}
.toolbar .list-command{width:31px;font-weight:700}
.toolbar .justify-command{width:31px;font-weight:700}
.toolbar{position:relative;flex-wrap:wrap}
.toolbar .more-command{width:auto;padding:0 9px;margin-left:auto;border-left:1px solid #e4ddd6;color:#6d625d;font-size:10px}
.rich-more-menu{position:absolute;right:0;top:calc(100% + 7px);z-index:15;width:285px;padding:10px;border:1px solid #e1d8d0;border-radius:10px;background:#fffdfa;box-shadow:0 14px 34px #30251d24}
.rich-more-menu[hidden]{display:none}
.rich-font-panel{position:absolute;right:74px;top:calc(100% + 7px);z-index:16;width:265px;padding:10px;border:1px solid #e1d8d0;border-radius:10px;background:#fffdfa;box-shadow:0 14px 34px #30251d24}
.rich-font-panel[hidden]{display:none}
.rich-font-picker-row{display:flex;align-items:center;gap:7px;padding:7px 0;border-top:1px solid #eee6df}
.rich-font-picker-row input{width:38px;height:30px;padding:2px;border:1px solid #ddd4cc;border-radius:6px;background:#fff;cursor:pointer}
.rich-font-picker-row button{width:auto;padding:0 8px;border:1px solid #e5ddd6;border-radius:6px;background:#fff;color:#675e59;font-size:10px}
.rich-saved-colors{display:flex;flex-wrap:wrap;gap:6px;padding-top:8px;border-top:1px solid #eee6df}
.saved-rich-color{display:inline-flex;align-items:center;border:1px solid #e5ddd6;border-radius:6px;overflow:hidden;background:#fff}
.saved-rich-color>[data-saved-color]{width:25px;height:25px;border:0;background:var(--saved-color);cursor:pointer}
.saved-rich-color .delete-saved-color{width:16px;height:25px;padding:0;border-left:1px solid #e5ddd6;color:#867b75;background:#fff;font-size:12px;cursor:pointer}
.rich-empty-colors{color:#a09791;font-size:10px}
.rich-menu-label{padding:2px 5px 8px;color:#958982;font-size:10px}
.rich-menu-row{display:flex;flex-wrap:wrap;gap:5px;padding:6px 0;border-top:1px solid #eee6df}
.rich-menu-row button{width:auto;height:28px;padding:0 8px;border:1px solid #e5ddd6;border-radius:6px;background:#fff;color:#675e59;font-size:10px}
.rich-menu-row button:hover{background:#fff1ed;border-color:#d98a7c}
.rich-color-picker{display:flex;align-items:center;gap:5px;height:28px;padding:0 7px;border:1px solid #e5ddd6;border-radius:6px;color:#675e59;background:#fff;font-size:10px;cursor:pointer}
.rich-color-picker input{width:22px;height:20px;padding:0;border:0;border-radius:4px;background:transparent;cursor:pointer}
.rich-menu-actions button{flex:1;min-width:78px}
.rich mark,.rich [style*="background-color"],.screen-card .card-body mark,.screen-card .card-body [style*="background-color"]{padding:0 .08em;border-radius:2px}
.rich .checklist-body,.screen-card .card-body .checklist-body{padding-left:0;list-style:none}
.rich .checklist-body li,.screen-card .card-body .checklist-body li{position:relative;padding-left:22px}
.rich .checklist-body li:before,.screen-card .card-body .checklist-body li:before{position:absolute;left:0;top:.2em;width:12px;height:12px;border:1px solid currentColor;border-radius:3px;content:"";opacity:.65}
.screen-card .card-body a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.screen-card .card-body s,.screen-card .card-body strike{text-decoration:line-through}
.screen-card .card-body h2,.screen-card .card-body h3,.screen-card .card-body h4{margin:8px 0 5px;line-height:1.45}
.pagination-safety{display:block;height:14px}
.screen-card footer{padding-right:58px}
.screen-card .card-number{z-index:3}
.pagination-measurer,.export-render-stage{position:fixed;left:-12000px;top:0;z-index:-1;width:var(--measure-width,360px);visibility:hidden;pointer-events:none}
.pagination-measurer .screen-card,.export-render-stage .screen-card{width:var(--measure-width,360px)}
.export-render-stage{display:flex;flex-direction:column;gap:16px;visibility:visible}
.export-modal{position:fixed;inset:0;z-index:30;display:grid;place-items:center;padding:18px;background:#24212899}
.export-modal[hidden]{display:none}
.export-dialog{width:min(560px,100%);max-height:min(720px,calc(100dvh - 32px));overflow:auto;padding:26px;border:1px solid #e7ddd6;border-radius:16px;color:#302b2d;background:#fffdfa;box-shadow:0 28px 80px #2c22262e}
.export-dialog-head,.export-dialog-foot,.export-inline{display:flex;align-items:center;justify-content:space-between;gap:10px}
.export-dialog-head{align-items:flex-start;padding-bottom:18px;border-bottom:1px solid #eee5de}
.export-dialog-head h2{margin:5px 0;font-size:22px}
.export-dialog-head p{margin:0;color:#817873;font-size:12px}
.export-close{font-size:24px;color:#8d837e}
.export-options{padding:20px 0}
.export-options>label{display:block;margin:0 0 10px;color:#6f6662;font-size:11px;font-weight:700}
.export-choice-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:20px}
.export-choice-grid label{display:flex;gap:8px;padding:12px 10px;border:1px solid #e3dad3;border-radius:10px;cursor:pointer}
.export-choice-grid label:has(input:checked){border-color:#c7655c;background:#fff1ed}
.export-choice-grid input,.export-check input{accent-color:#c7655c}
.export-choice-grid span{display:flex;flex-direction:column;gap:4px}
.export-choice-grid b{font-size:12px}.export-choice-grid small{color:#908681;font-size:10px;line-height:1.45}
.export-inline{margin-bottom:15px}.export-inline select{flex:1;padding:10px;border:1px solid #ddd4cd;border-radius:8px;background:#fff;font-size:11px}
.export-check{display:flex;align-items:center;gap:7px;color:#756c67;font-size:11px}
.export-dialog-foot{padding-top:17px;border-top:1px solid #eee5de;color:#8e8580;font-size:11px}
.export-dialog-foot .solid{min-width:112px;white-space:nowrap}
.export-dialog-foot .solid:disabled{opacity:.55;cursor:wait}
@media(max-width:1040px){.app.rail-collapsed .studio{grid-template-columns:160px minmax(330px,1fr) minmax(290px,.8fr)}.app.rail-collapsed .release{display:block}}
@media(max-width:720px){.release{display:block;height:auto;max-height:none;padding:22px 16px}.release-heading{position:static;margin:-22px -16px 13px;padding:18px 16px 12px;backdrop-filter:none}.export-choice-grid{grid-template-columns:1fr}.export-inline{align-items:stretch;flex-direction:column}.export-dialog-foot{align-items:stretch;flex-direction:column}.export-dialog-foot .solid{width:100%}}
@media(prefers-reduced-motion:reduce){.page-index-strip button:active{transform:none}}
