.book-studio{--book-green:#253449;--book-ink:#253449;--book-line:#c8c4ba;--book-muted:#596370;color:var(--book-ink);font-family:'Zen Kaku Gothic New',sans-serif;font-size:15px;line-height:1.7;max-width:1200px;margin:auto;padding:48px 48px 24px;box-sizing:border-box}
.book-studio *,.book-page *{box-sizing:border-box}.book-studio button,.book-studio input,.book-studio select,.book-studio textarea{font:inherit}.book-studio button,.book-studio a,.book-studio label.book-open{cursor:pointer}.book-studio button:disabled{opacity:.4;cursor:default}.book-studio button{color:inherit}.book-studio :focus-visible{outline:3px solid #596370;outline-offset:4px}.book-studio h1,.book-studio h2,.book-studio p{margin:0}.book-studio h1{font-family:'Zen Old Mincho',serif;font-size:34px;letter-spacing:.08em;font-weight:500}.book-studio h2{font-family:'Zen Old Mincho',serif;font-size:24px;font-weight:500;line-height:1.6;letter-spacing:.035em}.book-studio-heading{display:flex;align-items:center;justify-content:space-between;gap:24px}.book-eyebrow{font-size:12px;color:var(--book-muted);letter-spacing:.12em;margin-bottom:7px!important}.book-file-actions{display:flex;gap:8px 20px;justify-content:flex-end;flex-wrap:wrap;max-width:300px;align-items:center}.book-file-actions small{width:100%;text-align:right;color:var(--book-muted);font-size:11px}.book-quiet{border:0;background:transparent;padding:8px 0;font-size:13px!important;white-space:nowrap;min-height:44px}.book-open{position:relative;display:flex;align-items:center}.book-open input{position:absolute;inset:0;width:100%;opacity:0;cursor:pointer}.book-open:focus-within{outline:3px solid #596370;outline-offset:4px}
.book-primary{display:inline-flex;align-items:center;justify-content:center;gap:24px;border:1px solid var(--book-green);background:var(--book-green);color:white!important;padding:13px 25px;border-radius:5px;min-height:50px;white-space:nowrap;font-weight:500}.book-primary:hover{background:#253449}.book-studio svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex:none;vertical-align:middle}
.book-steps{display:grid;grid-template-columns:repeat(3,1fr);margin:32px 0 36px;border-bottom:1px solid var(--book-line);gap:24px}.book-steps button{display:flex;gap:10px;align-items:center;justify-content:flex-start;border:0;border-bottom:2px solid transparent;background:none;padding:15px 0;margin-bottom:-1px;color:var(--book-muted);font-size:13px}.book-steps button[aria-current]{border-color:var(--book-green);color:var(--book-green);font-weight:700}.book-steps button span{display:inline-flex;justify-content:center;align-items:center;width:26px;height:26px;border-radius:50%;border:1px solid #c8c4ba;font-size:11px}.book-steps button[aria-current] span{background:var(--book-green);color:white;border-color:var(--book-green)}.book-steps svg{width:14px;height:14px}.book-status:empty{display:none}.book-status{font-size:13px;margin:0 0 20px;padding:12px 16px;background:#e9edf1;border-radius:4px}.book-section-heading{display:flex;gap:16px;align-items:center;justify-content:space-between;margin-bottom:22px}.book-section-heading p,.book-muted{font-size:13px;color:var(--book-muted);margin-top:7px!important}.book-selection-grid{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:60px}.book-search-row{display:flex;gap:10px}.book-search-row input{min-width:0;flex:1}.book-studio input:not([type=checkbox]):not([type=radio]):not([type=file]),.book-studio select,.book-studio textarea{border:1px solid var(--book-line);border-radius:4px;background:#fffdfa;color:var(--book-ink);padding:11px 13px;min-height:46px;max-width:100%}.book-studio textarea{resize:vertical}.book-studio input[type=checkbox],.book-studio input[type=radio]{accent-color:var(--book-green);width:18px;height:18px;flex:none}.book-results-count{font-size:12px;color:var(--book-muted);padding:16px 0 9px}
.book-story-choice{display:flex;align-items:flex-start;gap:15px;position:relative;border:1px solid var(--book-line);border-radius:6px;padding:20px;margin-bottom:10px;background:#fffefa;cursor:pointer;transition:background .15s,border .15s}.book-story-choice.is-selected{background:#e9edf1;border-color:#596370}.book-story-choice input{margin-top:5px}.book-story-choice-copy{display:flex;flex-direction:column;min-width:0;flex:1;gap:6px}.book-story-choice-copy strong{font-family:'Zen Old Mincho',serif;font-weight:600;font-size:18px;line-height:1.6;overflow-wrap:anywhere}.book-story-choice-copy>span{color:#596370;font-size:13px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.book-story-choice-copy small{font-size:11px;color:var(--book-muted);margin-top:3px}.book-story-choice-copy small svg{height:14px;width:14px}.book-choice-mark{display:none}.book-selection-aside{padding-top:8px}.book-mini-cover{width:100%;aspect-ratio:148/210;display:flex;flex-direction:column;padding:35px 26px;box-shadow:7px 9px 22px #25344919,inset 5px 0 7px #0002;position:relative;overflow:hidden}.book-mini-cover small{font-size:9px;letter-spacing:.12em;opacity:.75}.book-mini-cover strong{font-family:'Zen Old Mincho',serif;font-weight:400;font-size:27px;line-height:1.8;letter-spacing:.1em;overflow-wrap:anywhere;margin:auto 0;white-space:pre-wrap}.book-mini-cover i{display:block;width:30px;height:1px;background:currentColor;margin-bottom:18px;opacity:.5}.book-mini-cover>span{font-size:11px;letter-spacing:.1em;overflow-wrap:anywhere}.book-theme-forest{background:#253449;color:#f1ebdf}.book-theme-ivory{background:#f1ebdf;color:#253449;border:1px solid #c8c4ba}.book-summary{padding:24px 0;text-align:center}.book-summary>span{font-size:11px;color:var(--book-muted);display:block;letter-spacing:.1em}.book-summary strong{font-family:'Zen Old Mincho',serif;font-size:25px;font-weight:400}.book-summary p{font-size:12px;color:var(--book-muted);margin-top:12px!important;line-height:1.9}.book-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:32px;padding:18px 0;background:#faf8f3;position:sticky;bottom:0;border-top:1px solid var(--book-line);z-index:3}.book-bottom>span{font-size:13px;color:var(--book-muted)}.book-prototype-note{font-size:11px;color:var(--book-muted);margin-top:20px!important}.book-empty{padding:40px 16px;border:1px dashed var(--book-line);font-size:14px}
.book-edit-grid{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:70px}.book-settings{display:grid;grid-template-columns:1fr 1fr;gap:22px}.book-settings>label{display:flex;flex-direction:column;gap:8px;font-size:13px}.book-settings>label>span{display:inline;font-size:11px;color:var(--book-muted)}.book-settings>label:first-child,.book-settings>label:has(textarea),.book-themes,.book-settings>.book-inline-check{grid-column:1/-1}.book-settings>label:nth-child(2){grid-column:1/-1}.book-settings .book-inline-check{flex-direction:row}.book-themes{border:0;padding:0;margin:0;display:flex;gap:24px}.book-themes legend{font-size:13px;margin-bottom:10px}.book-themes label{display:flex;align-items:center;gap:10px;font-size:13px}.book-swatch{width:22px;height:28px;border:1px solid #c8c4ba;display:inline-block;border-radius:2px}.book-swatch-forest{background:#253449}.book-swatch-ivory{background:#f1ebdf}.book-inline-check{display:flex!important;flex-direction:row!important;align-items:center;gap:10px;font-size:12px!important}.book-edit-grid aside{padding-top:85px}.book-edit-grid aside>p{text-align:center;font-size:11px;color:var(--book-muted);margin-top:16px!important}.book-order{margin-top:48px;padding-top:32px;border-top:1px solid var(--book-line)}.book-order .book-section-heading{margin-bottom:0}.book-order ol{list-style:none;padding:0;margin:22px 0 0}.book-order-item{background:#fffefa;border:1px solid var(--book-line);border-radius:6px;margin:0 0 12px;padding:18px}.book-order-top{display:flex;align-items:center;gap:15px}.book-order-number{font-family:'Marcellus',serif;font-size:21px;color:#596370;flex:none}.book-item-title{flex:1;min-width:0}.book-item-title input{width:100%;border:0!important;border-bottom:1px solid var(--book-line)!important;background:transparent!important;border-radius:0!important;font-family:'Zen Old Mincho',serif!important;font-size:17px!important;padding:5px 2px!important}.book-order-actions{display:flex;gap:6px;flex:none}.book-order-actions button{background:none;border:1px solid var(--book-line);border-radius:4px;width:40px;height:40px;font-size:17px}.book-order-item summary{cursor:pointer;font-size:12px;color:var(--book-muted);padding:15px 0 0 40px}.book-order-item summary span{margin-left:12px;font-size:11px}.book-block-settings{padding-top:14px}.book-block-setting{display:flex;flex-wrap:wrap;gap:12px;align-items:center;border-top:1px solid #e9edf1;padding:16px 0}.book-block-setting>div{display:flex;gap:12px;align-items:baseline;flex:1;min-width:200px}.book-block-setting strong{font-size:12px;white-space:nowrap;font-weight:500}.book-block-setting span{font-size:12px;color:var(--book-muted);overflow-wrap:anywhere}.book-block-setting>label{font-size:11px;display:flex;gap:7px;align-items:center}.book-block-setting select{font-size:12px;padding:5px 7px;min-height:36px}.book-warning{background:#fcf0dc;padding:12px 16px;border:1px solid #e7d0a9;color:#75582e;font-size:13px;margin:14px 0!important}
.book-preview-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:22px 0 18px}.book-preview-bar span{color:var(--book-muted);font-size:11px}.book-preview-bar select{max-width:70%}.book-spread{display:grid;grid-template-columns:1fr 1fr;gap:3px;max-width:1123px;padding:30px;background:#e9edf1;border-radius:6px;min-height:100px}.book-spread.is-cover{display:flex;justify-content:center}.book-spread.is-cover .book-page-wrap{width:50%;max-width:360px}.book-page-wrap{position:relative;width:100%;overflow:hidden;box-shadow:0 5px 16px #253a321c}.book-page-wrap .book-page{transform-origin:0 0}.book-page-controls{display:flex;align-items:center;justify-content:center;gap:28px;padding:20px}.book-page-controls button{width:44px;font-size:20px!important;border:1px solid var(--book-line);border-radius:50%;padding:0}.book-page-controls span{font-size:12px;min-width:75px;text-align:center}.book-quality{margin:10px 0 28px;border:1px solid #c8c4ba;background:#f1ebdf;border-radius:5px;padding:15px 20px;color:#75582e;font-size:13px}.book-quality summary{cursor:pointer}.book-quality p{margin-top:10px!important}.book-quality-ok{font-size:12px;color:var(--book-muted);padding-bottom:24px}.book-preview-end{display:flex;gap:24px;align-items:center;justify-content:space-between;border-top:1px solid var(--book-line);padding:24px 0}.book-preview-end strong{font-family:'Zen Old Mincho',serif;font-size:18px;font-weight:500}.book-preview-end p{font-size:12px;color:var(--book-muted);margin-top:7px!important}.book-studio [hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* Stable paper geometry: layout and preview use this exact canvas, scaled only after pagination. */
.book-measure{position:fixed;left:-10000px;top:0;width:560px;visibility:hidden;pointer-events:none}.book-page{width:560px;height:794px;box-sizing:border-box;background:#fffef9;color:#243b30;position:relative;overflow:hidden;padding:60px 60px 64px;font-family:'Zen Old Mincho',serif;flex:none}.book-page-body{height:670px;overflow:visible;display:flow-root}.book-page-number{position:absolute;bottom:27px;left:0;width:100%;text-align:center;font:12px 'Marcellus',serif;color:#647267}.book-page .book-text{white-space:pre-wrap;overflow-wrap:anywhere;line-break:strict;word-break:normal;margin:0 0 17px;font-size:16px;line-height:1.95;letter-spacing:.025em;font-weight:400}.book-page h3.book-text{font-size:26px;line-height:1.65;margin:0 0 25px;font-weight:500;letter-spacing:.04em}.book-page blockquote.book-text{font-size:14px;line-height:1.85;border-left:2px solid #bccbb5;padding:0 0 0 17px;color:#52684f;margin:0 0 22px}.book-page .book-text span[style*="700"]{font-weight:700;font-synthesis:weight}.book-page .book-story-number{font:14px 'Marcellus',serif;color:#74846c;letter-spacing:.2em;margin-bottom:18px}.book-section-title{font-size:24px;font-weight:400;margin:0 0 40px;letter-spacing:.15em}.book-toc-row{display:flex;gap:14px;align-items:baseline;border-bottom:1px solid #e2e7dc;padding:14px 0;font-size:15px;line-height:1.8;break-inside:avoid}.book-toc-index{font:12px 'Marcellus',serif;color:#87947c;flex:none}.book-toc-title{flex:1;overflow-wrap:anywhere}.book-toc-number{font:12px 'Marcellus',serif;min-width:25px;text-align:right;flex:none}.book-page figure.book-photo{margin:12px auto 24px;text-align:center;break-inside:avoid;width:100%}.book-page figure.book-photo-medium{width:80%}.book-page figure.book-photo-small{width:60%}.book-photo img{display:block;width:100%;height:auto;max-height:420px;object-fit:contain}.book-photo figcaption{font-size:12px;line-height:1.8;color:#596370;white-space:pre-wrap;overflow-wrap:anywhere;margin-top:10px}.book-page-cover{padding:67px 62px}.book-page-cover.book-theme-forest{background:#284f3f;color:#faf7ee}.book-page-cover.book-theme-ivory{background:#f2ecdd;color:#2c4b3b}.book-page-cover .book-page-body{display:flex;flex-direction:column;height:660px}.book-cover-kicker{font-size:12px;letter-spacing:.18em;opacity:.85}.book-cover-title{font-size:38px;font-weight:400;line-height:1.9;letter-spacing:.12em;overflow-wrap:anywhere;margin:auto 0;white-space:pre-wrap}.book-cover-rule{height:1px;width:50px;background:currentColor;opacity:.5;margin-bottom:26px}.book-cover-author{font-size:16px;letter-spacing:.12em;margin:0;overflow-wrap:anywhere}.book-page-dedication .book-page-body{padding-top:70px;height:670px}.book-page-dedication .book-text{font-size:17px;line-height:2.1}.book-page-dedication .book-section-title{font-size:15px;color:#75826d;margin-bottom:38px}
@media(max-width:1100px){.book-studio{padding:36px 28px 24px}.book-selection-grid,.book-edit-grid{grid-template-columns:minmax(0,1fr) 190px;gap:32px}.book-mini-cover{padding:28px 21px}.book-mini-cover strong{font-size:23px}.book-spread{padding:20px}}
@media(max-width:760px){.book-studio{padding:26px 20px 24px}.book-studio-heading{align-items:flex-start;gap:12px}.book-studio h1{font-size:27px}.book-eyebrow{font-size:10px}.book-file-actions{max-width:140px;gap:0 10px}.book-file-actions .book-quiet{font-size:11px!important;min-height:32px}.book-file-actions small{font-size:9px}.book-steps{gap:8px;margin:23px 0 28px}.book-steps button{font-size:11px;gap:5px;flex-direction:column;justify-content:center;padding:10px 0 14px}.book-steps button span{width:24px;height:24px}.book-studio h2{font-size:21px}.book-section-heading{gap:12px;align-items:flex-start}.book-section-heading p{font-size:12px}.book-selection-grid{display:block}.book-selection-aside{display:none}.book-search-row{gap:8px}.book-search-row input{width:1px}.book-search-row input,.book-search-row select{font-size:12px!important;padding:10px!important}.book-search-row select{width:105px}.book-story-choice{padding:16px 13px;gap:12px}.book-story-choice-copy strong{font-size:17px}.book-story-choice-copy>span{font-size:12px}.book-bottom{padding:14px 0;gap:10px}.book-bottom>span{font-size:11px}.book-primary{font-size:12px!important;padding:12px 15px;gap:10px;min-height:46px}.book-primary svg{width:16px}.book-edit-grid{display:flex;flex-direction:column;gap:26px}.book-edit-grid>section{order:1}.book-edit-grid aside{order:0;padding:0;display:flex;gap:20px;align-items:center;justify-content:center}.book-edit-grid aside .book-mini-cover{width:110px;flex:none;padding:17px 12px}.book-edit-grid aside .book-mini-cover small{font-size:5px}.book-edit-grid aside .book-mini-cover strong{font-size:13px;line-height:1.6;letter-spacing:.06em}.book-edit-grid aside .book-mini-cover i{width:15px;margin-bottom:9px}.book-edit-grid aside .book-mini-cover>span{font-size:6px}.book-edit-grid aside>p{font-size:11px;max-width:100px;text-align:left}.book-settings{gap:20px}.book-order{margin-top:32px;padding-top:24px}.book-order .book-section-heading{align-items:center}.book-order .book-section-heading h2{white-space:nowrap}.book-order .book-quiet{font-size:11px!important}.book-order-item{padding:14px}.book-order-top{gap:10px;flex-wrap:wrap}.book-order-number{font-size:18px}.book-item-title{min-width:calc(100% - 40px)}.book-item-title input{font-size:16px!important}.book-order-actions{margin-left:auto}.book-order-actions button{width:44px;height:38px}.book-order-item summary{padding:10px 0 0;font-size:11px}.book-block-setting{gap:10px}.book-block-setting>div{flex-basis:100%;min-width:0}.book-block-setting>label{min-height:38px}.book-block-setting .book-inline-check{margin-left:auto}.book-preview-bar{margin:15px 0}.book-preview-bar select{max-width:100%;width:100%;font-size:12px!important}.book-preview-bar>span{display:none}.book-spread{grid-template-columns:1fr;padding:15px;gap:0}.book-spread.is-cover .book-page-wrap{width:100%;max-width:280px}.book-preview-end{flex-direction:column;align-items:flex-start;gap:15px}.book-preview-end .book-primary{width:100%}.book-preview-end strong{font-size:17px}.book-quality-ok{font-size:11px}.book-prototype-note{font-size:10px;line-height:1.9}.book-studio input:not([type=checkbox]):not([type=radio]),.book-studio textarea{font-size:16px}.book-section-heading>#book-edit{font-size:11px!important;white-space:normal;min-width:82px;text-align:right}}
@media(prefers-reduced-motion:reduce){.book-studio *{scroll-behavior:auto!important;transition:none!important}}

@media(max-width:760px){.book-studio-heading{display:block}.book-file-actions{max-width:none;justify-content:flex-start;gap:2px 18px;margin-top:10px}.book-file-actions small{width:auto;margin-left:auto;text-align:left}.book-studio-heading h1{white-space:nowrap}.book-eyebrow{white-space:nowrap}}

.book-spread.is-first .book-page-wrap{grid-column:2}.book-spread.is-zoomed{display:flex;justify-content:flex-start;overflow:auto;max-width:100%;gap:3px}.book-spread.is-zoomed .book-page-wrap{width:560px!important;min-width:560px;flex:none}.book-preview-bar select{flex:1;min-width:0;max-width:450px}.book-preview-bar #book-zoom{flex:none}@media(max-width:760px){.book-preview-bar{gap:12px}.book-preview-bar select{width:1px;flex:1}.book-preview-bar #book-zoom{font-size:11px!important}.book-spread.is-first .book-page-wrap{grid-column:auto}}

/* Ten coordinated jackets, shared with the editable Figma recipes. */
.book-studio .book-cover-art{display:block;padding:0;aspect-ratio:560/794;overflow:hidden;background:none;min-height:0;border:0}
.book-cover-art svg,.book-design-thumb svg{display:block;width:100%;height:auto}
.book-selection-tools{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:16px 0}
.book-selection-tools>div{display:flex;gap:8px;flex-wrap:wrap}.book-selection-tools .book-quiet{padding:8px 10px;font-size:12px}
.book-design-picker{min-width:0;margin:36px 0 48px;padding:0;border:0}.book-design-picker legend{font:500 25px 'Zen Old Mincho',serif;color:#253449}.book-design-picker>p{font-size:13px;color:#596370;margin:10px 0 24px}
.book-design-options{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:24px 18px}
.book-design-option{position:relative;display:block;cursor:pointer;min-width:0;padding:9px;border:2px solid transparent;border-radius:8px;transition:background .15s,border-color .15s}
.book-design-option:has(input:checked){background:#e9edf1;border-color:#253449}.book-design-option:has(input:focus-visible){outline:3px solid #9a7052;outline-offset:3px}
.book-design-option input{position:absolute;top:16px;right:16px;z-index:1;accent-color:#253449;width:18px;height:18px}
.book-design-thumb{display:block;box-shadow:0 4px 12px #25344920}.book-design-name{display:block;font-size:14px;font-weight:600;margin:12px 0 5px;color:#253449}.book-design-name small{font:11px 'Marcellus',serif;color:#596370;margin-right:7px}.book-design-description{display:block;font-size:11px;line-height:1.7;color:#596370}
.book-page.book-designed-cover{padding:0}.book-designed-cover .book-page-body{height:794px;width:560px;display:block;padding:0}.book-designed-cover svg{display:block;width:560px;height:794px}.book-designed-cover .book-page-number{display:none}
.book-page .book-section-title,.book-page h3.book-text{font-family:var(--book-heading-font),'Zen Old Mincho',serif}.book-page .book-story-number{color:var(--book-accent);border-bottom:1px solid var(--book-accent);padding-bottom:12px;margin-bottom:24px}.book-page .book-page-number{color:var(--book-accent)}.book-page .book-section-title{border-bottom:1px solid var(--book-accent);padding-bottom:16px}
@media(max-width:1100px){.book-design-options{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.book-design-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 9px}.book-design-option{padding:6px}.book-design-name{font-size:13px}.book-design-description{font-size:11px}.book-design-option input{right:12px;top:12px}.book-selection-tools{align-items:flex-start;flex-direction:column;gap:0}.book-design-picker legend{font-size:22px}}
.book-studio .book-cover-art svg,.book-studio .book-design-thumb svg,.book-designed-cover svg{stroke:none;stroke-width:1;fill:initial}
@media(max-width:760px){.book-studio .book-edit-grid aside .book-cover-art{padding:0}}
.book-cover-art svg text,.book-design-thumb svg text,.book-designed-cover svg text{font-weight:400;letter-spacing:normal}
/* Illustration backgrounds and editable text stay separate. Review-only geometry. */
.illustration-cover{position:relative;container-type:inline-size;width:100%;overflow:visible;background:#f4efe4;font-family:'Zen Old Mincho',serif}
.illustration-cover>img{display:block;width:100%;height:100%;position:absolute;inset:0;object-fit:contain}
.illustration-cover.is-front-half{overflow:hidden}
.illustration-cover.is-front-half>img{width:200%;max-width:none;left:-100%;right:auto;object-fit:fill}
.illustration-text{position:absolute;text-align:center;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5;font-weight:500;letter-spacing:0;overflow:hidden}
.illustration-text.is-overflow{outline:2px solid #b84f35;background:#fff8}
.illustration-image-error{position:absolute;inset:0;display:grid;place-content:center;padding:20px;background:#f7ede4;color:#71442d;font:12px/1.8 sans-serif;text-align:center;z-index:3}
.illustration-unavailable{display:grid;place-content:center;min-height:210px;background:#e9edf1;color:#596370;text-align:center;font:13px/1.8 sans-serif}
.book-studio .book-cover-art:has(.illustration-cover){aspect-ratio:auto;overflow:visible}
.book-studio .book-edit-grid aside:has(.illustration-cover){padding-top:0;display:flex;flex-direction:column;align-items:stretch;gap:12px}
.book-studio .book-edit-grid aside:has(.illustration-cover) .book-mini-cover{width:100%;padding:0}
.book-studio .book-edit-grid aside:has(.illustration-cover)>p{max-width:none;text-align:left}
.book-cover-filters{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px}
.book-cover-filters[hidden]{display:none}
.book-cover-filters button{border:1px solid #cad4c6;border-radius:24px;background:none;padding:10px 18px;font-size:13px}
.book-cover-filters button[aria-pressed=true]{background:#285342;color:white;border-color:#285342}
.book-design-option.is-pending{opacity:.65;cursor:default}
.book-design-thumb:has(.illustration-cover){aspect-ratio:auto}
.book-design-thumb .illustration-cover{pointer-events:none}
#book-cover-error:empty{display:none}#book-cover-error{color:#9a472d;font-size:13px}
.book-settings small{font-size:11px;color:#596370}
.illustration-page-fit{height:794px;width:560px;display:flex;align-items:center;justify-content:center;background:#f1ebdf}
.illustration-page-fit .illustration-cover{height:auto;width:100%;max-width:calc(794px * var(--cover-ratio))}
.book-steps button{min-width:0}
@media(max-width:760px){.book-studio .book-edit-grid aside:has(.illustration-cover){max-width:240px;margin:0 auto}.book-studio .book-edit-grid aside:has(.illustration-cover) .book-mini-cover{width:100%}.book-steps button{font-size:10px}.book-design-options{gap:22px 9px}}
.book-steps{grid-template-columns:repeat(4,minmax(0,1fr))}
.illustration-cover [hidden]{display:none!important}
.illustration-image-loading{position:absolute;inset:0;display:grid;place-content:center;background:#f1ebdf;color:#596370;font:11px/1.8 sans-serif;z-index:3}
.book-bottom{position:static}
.book-export-actions{display:flex;gap:16px;align-items:center;flex-wrap:wrap}
.book-pdf-dialog{width:min(520px,calc(100% - 32px));max-height:calc(100dvh - 48px);overflow:auto;border:1px solid #c8c4ba;border-radius:20px;padding:28px;background:#fffef9;color:#253449;font:14px/1.8 'Zen Kaku Gothic New',sans-serif}
.book-pdf-dialog::backdrop{background:#25344966}
.book-pdf-dialog h2{font:24px/1.5 'Zen Old Mincho',serif;margin:0 0 16px}
.book-pdf-guide{background:#e9edf1;border-radius:12px;padding:4px 18px;font-size:13px}
.book-pdf-note{font-size:12px;color:#596370}
.book-pdf-actions{display:flex;justify-content:flex-end;gap:12px;flex-wrap:wrap;margin-top:20px}
.book-pdf-actions button{border:1px solid #c8c4ba;border-radius:8px;padding:12px 16px;background:transparent;color:inherit;font:inherit;cursor:pointer;min-height:44px}
.book-pdf-actions [data-pdf-print]{background:#253449;color:#fff;border-color:#253449}
#book-pdf-status:empty{display:none}
#book-pdf-pages{position:fixed;left:-20000px;top:0;visibility:hidden;pointer-events:none;width:560px}
@page nocosu-book{size:148mm 210mm;margin:0}
@media print{
 html:has(body.book-pdf-active),body.book-pdf-active{width:auto!important;height:auto!important;overflow:visible!important;margin:0!important;padding:0!important;background:white!important}
 body.book-pdf-active>*:not(#book-pdf-pages){display:none!important}
 .book-pdf-dialog::backdrop{display:none!important}
 body.book-pdf-active #book-pdf-pages{position:static;left:auto;top:auto;visibility:visible;pointer-events:auto;width:148mm;display:block!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}
 #book-pdf-pages .book-pdf-sheet{page:nocosu-book;position:relative;width:148mm;height:210mm;overflow:hidden;break-inside:avoid;break-after:page;margin:0;padding:0}
 #book-pdf-pages .book-pdf-sheet:last-child{break-after:auto}
 #book-pdf-pages .book-page{position:absolute;left:0;top:0;margin:0;transform:scale(.99887514)!important;transform-origin:top left;box-shadow:none}
 #book-pdf-pages .illustration-text{outline:none}
}
@media(max-width:760px){.book-export-actions{width:100%;flex-direction:column-reverse;gap:8px}.book-export-actions button{width:100%}.book-pdf-dialog{padding:22px}.book-pdf-actions{flex-direction:column-reverse}.book-pdf-actions button{width:100%}}
@media(max-width:760px){.book-section-heading:has(>#book-edit){align-items:flex-start;flex-direction:column;gap:8px}.book-section-heading>#book-edit{white-space:nowrap;text-align:left;align-self:flex-end}}
