@import url('/assets/fonts/gamja-flower.css');
#book-production{margin:0;max-width:none;padding:0;background:#f8f7f3;min-height:100vh;color:#293b32;font-family:var(--studio-font)}body.production-open>.studio-rail,body.production-open>.studio-header,body.production-open>.studio-announcement,body.production-open>#message,body.production-open>footer{display:none}#book-production *{box-sizing:border-box}#book-production button{margin:0;font:inherit;cursor:pointer}#book-production button:disabled{opacity:.42;cursor:not-allowed}#book-production button:focus-visible,#book-production a:focus-visible{outline:3px solid #2a9177;outline-offset:3px}#book-production [hidden]{display:none!important}.pb-topbar{height:66px;background:#fffefa;border-bottom:1px solid #e5e6dc;display:flex;align-items:center;gap:18px;padding:0 24px}.pb-project-title{font-size:17px;letter-spacing:-.5px;max-width:50%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pb-back,.pb-quiet{border:0;background:transparent;color:#617468;padding:9px 12px;border-radius:8px;font-size:var(--pb-control-size)}.pb-back{display:flex;align-items:center;gap:5px}.pb-icon{width:32px;height:32px;object-fit:contain}.pb-back .pb-icon{width:20px;height:20px}.pb-save-state{margin-left:auto;color:#7c887d;font-size:11px}.pb-steps{display:flex;justify-content:center;gap:3px;background:#fffefa;border-bottom:1px solid #e9e9df;padding:10px 16px;overflow:auto}.pb-step{background:transparent;border:0;color:#8d9489;padding:10px 16px;border-radius:22px;white-space:nowrap;font-size:var(--pb-control-size)}.pb-step[aria-current=step]{background:#e7f1de;color:#38775b;font-weight:700!important}.pb-body{padding:0!important;min-height:calc(100vh - 126px)}.pb-message{margin:0!important;padding:0 25px;background:#fff7db;color:#78653a;font-size:12px;position:relative;z-index:4}.pb-message:not(:empty){padding:9px 25px}.pb-story-card,.pb-plan-room{width:min(820px,calc(100% - 64px));margin:42px auto!important;background:#fffefa!important;border:1px solid #e4e6da!important;border-radius:18px;padding:32px 40px!important;box-shadow:0 12px 40px #34412b05}.pb-eyebrow{letter-spacing:.18em;font-size:10px;color:#8b9a79;font-weight:700;margin:0 0 8px}.pb-body h1{font-size:27px;font-weight:650;letter-spacing:-1px;line-height:1.5;margin:0 0 12px}.pb-body h2{font-size:22px;letter-spacing:-.6px}.pb-body h3{font-size:15px;margin:18px 0 10px}.pb-note{color:#87917d;font-size:12px;line-height:1.75;margin:6px 0 15px;white-space:pre-wrap;overflow-wrap:anywhere}.pb-field{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:500;color:#7e8b77;margin:20px 0 12px}.pb-field input,.pb-field textarea,#book-production select{background:#fffefb;border:1px solid #dfe4d7;border-radius:10px;padding:12px 14px;color:#334638;font:14px/1.7 Arial,'Malgun Gothic',sans-serif;width:100%;outline:none;box-shadow:none}.pb-field input:focus,.pb-field textarea:focus{border-color:#7b9d77;box-shadow:0 0 0 3px #dae9d744}.pb-field textarea{min-height:100px;resize:vertical}.pb-story-input{min-height:280px!important}.pb-primary,.pb-secondary{border-radius:8px!important;padding:10px 18px!important;font-size:14px!important;min-height:40px;font-weight:600!important;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;line-height:1.5;background-size:100% 100%;background-repeat:no-repeat;white-space:nowrap}.pb-primary{background-color:#087b60!important;background-image:url('/assets/ui/primary.png')!important;color:#fff!important;border:0}.pb-secondary{background-color:#f1f4e9!important;background-image:url('/assets/ui/secondary.png')!important;color:#53734f!important;border:1px solid #e0e7d5}.pb-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:18px 0}.pb-character-row{display:grid;grid-template-columns:34px 140px 1fr 45px;gap:12px;align-items:center;border-top:1px solid #ebeee5}.pb-character-row .pb-field{margin:10px 0}.pb-character-row textarea{min-height:70px}.pb-style-room{padding:34px 40px!important;max-width:1220px;margin:0 auto;background:transparent!important;border:0!important}.pb-style-hero{height:350px;border-radius:16px;background:#e7eadf;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;margin:22px 0}.pb-style-hero>img{width:100%;height:100%;object-fit:cover}.pb-style-description{position:absolute;bottom:0;left:0;right:0;padding:22px 30px;background:linear-gradient(transparent,#fffdf4f5 45%)}.pb-style-description .pb-note{margin:0;color:#647658}.pb-style-cards{display:grid;grid-template-columns:repeat(6,1fr);gap:12px}.pb-style-card{background:#fffefa!important;border:1px solid #e1e5d9;border-radius:12px;overflow:hidden;padding:0!important;text-align:left;color:#425b43}.pb-style-card img{width:100%;aspect-ratio:1;object-fit:cover;display:block}.pb-style-card strong{display:block;font-size:12px;padding:10px 10px 0}.pb-style-card small{display:block;font-size:10px;line-height:1.6;color:#8c9685;padding:5px 10px 12px}.pb-style-card[aria-pressed=true]{border:2px solid #519274;box-shadow:0 0 0 3px #e1eddd}.pb-style-room>.pb-field{max-width:760px}.pb-concept-room{max-width:820px;margin:auto;padding:24px 32px!important;background:transparent!important;border:0!important;display:flex;flex-direction:column;align-items:center;text-align:center}.pb-concept-room>.pb-actions{justify-content:center;margin:16px 0 0}.pb-concept-frame{aspect-ratio:2/3;width:min(100%,43.333vh,630px);min-width:min(100%,240px);height:auto;max-height:none;max-width:min(100%,max(240px,calc((100dvh - 380px)*2/3)));background:#f0eee5;border:1px solid #e0e4d5;border-radius:15px;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden}.pb-concept-frame>img:not(.pb-icon){height:100%;width:100%;object-fit:contain}.pb-concept-frame>.pb-icon{width:100px;height:100px}.pb-plan-list{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:14px 0}.pb-plan-list article{border:1px solid #e1e5d9;background:#f7f8f0;border-radius:10px;padding:12px;font-size:11px;line-height:1.7;white-space:pre-wrap;max-height:160px;overflow:auto}.pb-assets-room{padding:28px 35px!important;border:0!important;background:transparent!important}.pb-assets-room>.pb-actions{justify-content:flex-end;margin:0 0 24px}.pb-assets-heading{margin-right:auto}.pb-asset-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.pb-asset-card{background:#fffefa;border:1px solid #e0e4d8;border-radius:13px;padding:15px!important;box-shadow:0 6px 20px #2f3e2505}.pb-asset-card>small{font-size:var(--pb-meta-size);color:#9aa18d}.pb-asset-art{margin-top:10px!important;padding:0!important;aspect-ratio:1;width:100%;background:#f0f0e5!important;border-radius:10px;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#9ca68d!important;font-size:var(--pb-control-size)}.pb-asset-art>img:not(.pb-icon){width:100%;height:100%;object-fit:contain}.pb-asset-art>.pb-icon{width:70px;height:70px}.pb-asset-card h3{margin:12px 0 0}.pb-asset-card .pb-note{font-size:var(--pb-meta-size);margin:3px 0 12px}.pb-asset-card .pb-secondary{font-size:14px!important;padding:8px 15px!important}.pb-editor-grid{display:grid;grid-template-columns:166px minmax(350px,1fr) 302px;min-height:calc(100vh - 126px)}.pb-page-rail{background:#fffefa;border-right:1px solid #e2e5da;padding:14px 13px;overflow:auto;max-height:calc(100vh - 126px);position:sticky;top:0}.pb-page-rail>.pb-actions{font-size:var(--pb-label-size);margin:0 0 12px;justify-content:space-between;gap:0}.pb-page-thumb{display:block;width:100%;margin:0 0 12px!important;border:2px solid transparent;border-radius:8px;padding:7px!important;background:#f0f0e7!important;color:#69775d!important}.pb-page-thumb>img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:4px;display:block}.pb-page-thumb>.pb-icon{padding:22px;object-fit:contain}.pb-page-thumb span{display:block;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:7px}.pb-page-thumb[aria-current=true]{border-color:#6b9e6d;background:#eef4e3!important}.pb-canvas-column{padding:0!important;background:#eaece3!important;min-width:0;border:0!important;display:flex;flex-direction:column}.pb-canvas-toolbar{min-height:48px;justify-content:center;background:#fffefa;border-bottom:1px solid #e1e6d8;margin:0;padding:5px;gap:2px;font-size:var(--pb-label-size)}.pb-canvas-toolbar button{padding:8px!important;font-size:var(--pb-control-size)}.pb-canvas-surface{padding:34px 28px;overflow:auto;display:flex;align-items:center;justify-content:center;flex:1;min-height:500px}.pb-page-canvas{position:relative;background:#fffef7;box-shadow:0 6px 22px #243a2522;flex-shrink:0;max-width:100%;overflow:hidden}.pb-page-canvas>#pb-canvas-image{width:100%;height:100%;position:absolute;inset:0;object-fit:cover}.pb-canvas-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px}.pb-canvas-empty>.pb-icon{width:72px;height:72px}.pb-canvas-empty h3{color:#8b977d}.pb-caption{position:absolute;cursor:text;outline:none}.pb-caption:focus{box-shadow:0 0 0 2px #66986c}.pb-caption-handle{position:absolute;border:1px dashed #689265;background:#eef7e7!important;color:#51784e!important;border-radius:5px;padding:3px 7px!important;font-size:var(--pb-control-size);touch-action:none;cursor:move!important}.pb-canvas-bottom{margin:0;padding:12px;justify-content:center;border-top:1px solid #dbe0d3}.pb-properties{padding:20px 18px;background:#fffefa;border-left:1px solid #e0e5d8;overflow:auto;max-height:calc(100vh - 126px);position:sticky;top:0}.pb-properties h3{margin:0 0 16px}.pb-properties .pb-field{font-size:var(--pb-label-size);margin:12px 0}.pb-properties textarea{min-height:110px;font-size:15px}.pb-properties input{font-size:15px}.pb-properties .pb-actions{margin:12px 0;gap:5px}.pb-properties .pb-primary,.pb-properties .pb-secondary{padding:9px 12px!important;font-size:14px!important;white-space:normal}.pb-properties>button{margin:7px 0!important;display:block;width:100%}.pb-properties>input[type=file]{font-size:10px;padding:8px;background:#f3f5ea;border:1px solid #e0e5d8}.pb-danger{background:transparent!important;color:#a56d60!important;font-size:var(--pb-control-size);border:0}.pb-preview-room{padding:24px 40px!important;max-width:1050px;margin:auto;background:transparent!important;border:0!important;text-align:center}.pb-preview-room>.pb-actions{justify-content:center}.pb-preview-room>.pb-actions:first-child{justify-content:space-between}.pb-reading-page{max-width:680px;max-height:72vh;margin:auto;background:#fffdf4;position:relative;box-shadow:0 8px 25px #263b2820;overflow:hidden}.pb-reading-page>img{width:100%;height:100%;position:absolute;inset:0;object-fit:cover}.pb-progress{background:#fffdf7;border-top:1px solid #e3e7d8;padding:5px 24px}.pb-progress:empty{display:none}.pb-job-list .pb-note{font-size:var(--pb-meta-size);margin:3px 0}.pb-job-list .pb-actions{margin:3px 0}.pb-dialog{border:1px solid #dde4d2;border-radius:15px;padding:26px;max-width:640px;width:calc(100% - 30px);max-height:85vh;overflow:auto;background:#fffefa;color:#344d38}.pb-dialog::backdrop{background:#20352655}.pb-dialog button{margin:4px}.pb-dialog .pb-field textarea{min-height:160px}[hidden]{display:none!important}body:not(.developer-open) #legacy-studio .layout>div:first-child,body:not(.developer-open) #legacy-studio .content>section:first-child{display:none}body:not(.developer-open) #legacy-studio .layout{grid-template-columns:1fr}@media(max-width:1100px){.pb-editor-grid{grid-template-columns:130px minmax(300px,1fr) 260px}.pb-properties{padding:15px 12px}.pb-step{padding:9px 10px}.pb-asset-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.pb-style-cards{grid-template-columns:repeat(3,1fr)}.pb-style-hero{height:310px}}@media(max-width:760px){.pb-topbar{padding:0 12px;gap:8px}.pb-project-title{max-width:40%;font-size:13px}.pb-topbar>.pb-quiet{display:none}.pb-steps{justify-content:flex-start}.pb-step{font-size:var(--pb-control-size)}.pb-story-card,.pb-plan-room{width:calc(100% - 24px);margin:16px auto!important;padding:22px!important}.pb-character-row{grid-template-columns:24px 1fr}.pb-character-row>.pb-field:nth-child(3){grid-column:2}.pb-style-room,.pb-concept-room,.pb-assets-room{padding:20px 15px!important}.pb-style-hero{height:260px}.pb-style-cards{gap:8px}.pb-asset-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.pb-editor-grid{grid-template-columns:85px minmax(0,1fr)}.pb-page-rail{padding:8px 5px}.pb-properties{grid-column:1/-1;max-height:none;position:static;border-top:1px solid #dce4d1}.pb-canvas-surface{padding:20px 10px;min-height:360px}.pb-canvas-toolbar .pb-quiet{padding:7px 4px!important;font-size:var(--pb-control-size)}.pb-canvas-bottom .pb-secondary{padding:8px 10px!important;font-size:14px!important}.pb-plan-list{grid-template-columns:1fr 1fr}.pb-reading-page{width:100%}.pb-preview-room{padding:20px 12px!important}.pb-body h1{font-size:22px}.pb-roster{margin-bottom:14px}}

.pb-topbar{color:#334c3b!important}.pb-topbar .pb-project-title{color:#334c3b!important}#book-production h1,#book-production h2,#book-production h3,#book-production strong,#book-production label{font-family:var(--studio-font)}.pb-style-hero>img{object-fit:contain}.pb-caption{max-width:100%}

.pb-story-reader{max-width:1000px;margin:0 auto;padding:30px 44px!important;background:transparent!important;border:0!important}.pb-story-paper{max-height:58vh;overflow:auto;background:#fffdf7;border:1px solid #e7e6d9;border-radius:14px;padding:30px 44px;box-shadow:0 7px 25px #40513205}.pb-story-paper h1{font-size:30px;text-align:center;margin-bottom:24px}.pb-story-paper>p{font-size:16px;line-height:2.15;white-space:pre-wrap;color:#465442}.pb-story-guidance{background:#eef3e5;border-radius:10px;padding:16px 20px;color:#718064;font-size:12px;line-height:1.8;margin-top:24px}.pb-story-composer{padding:10px 0}.pb-story-composer>.pb-actions{justify-content:space-between;margin:8px 0}.pb-story-composer>.pb-field{margin:6px 0}.pb-story-composer textarea{min-height:70px}.pb-story-composer .pb-actions:last-child{justify-content:flex-end}.pb-story-history{max-height:160px;overflow:auto}.pb-story-history>.pb-note{padding:8px 12px;background:#eff2e7;border-radius:8px}.pb-style-custom{margin:18px 0;color:#77866a;font-size:12px}.pb-story-edit-dialog{max-width:850px}@media(max-width:760px){.pb-story-reader{padding:16px 12px!important}.pb-story-paper{padding:22px 20px}.pb-story-paper>p{font-size:14px}}

.pb-page-canvas{container-type:inline-size}

.pb-auth-notice{margin:0;padding:10px 24px;background:#fff4d9;border-bottom:1px solid #eddfb9;color:#765b25;font-size:13px}

.pb-caption-bounds-warning{padding:12px 16px;margin:0;color:#8d5b27;background:#fff3d9;border:1px solid #ead4aa;line-height:1.7;font-size:12px}

.pb-auxiliary{display:flex;gap:8px;flex-wrap:wrap;padding:10px 24px;background:#fffefa;border-bottom:1px solid #e5e6dc}.pb-auxiliary [aria-current="page"]{font-weight:700;text-decoration:underline}

body.production-open .history-launcher:not([hidden]){position:static;display:block;width:fit-content;margin:12px 24px 12px auto}
/* Existing editor structure, with readable controls and narrow-screen reflow. */
#book-production{--pb-control-size:15px;--pb-label-size:14px;--pb-meta-size:13px;--pb-muted:#586650;--pb-focus:#185c45;min-height:100dvh}.pb-note,.pb-field,.pb-step,.pb-save-state,.pb-eyebrow,.pb-style-card small,.pb-asset-card>small{color:var(--pb-muted)}.pb-note{font-size:var(--pb-label-size)}.pb-field{font-size:var(--pb-label-size)}.pb-save-state{font-size:var(--pb-meta-size)}.pb-topbar{height:auto;min-height:66px;flex-wrap:wrap;padding-block:12px}.pb-project-title{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;min-width:0}.pb-steps{flex-wrap:wrap;overflow:visible}.pb-progress{overflow-wrap:anywhere}.pb-host-handoff{background:#fffefa;border:1px solid #a9bca5;border-radius:12px;padding:16px;margin:12px 0}.pb-host-handoff summary{cursor:pointer;font-weight:700;color:#293b32}.pb-host-handoff textarea{width:100%;min-height:150px;resize:vertical;font:14px/1.7 system-ui;color:#293b32;border:1px solid #71806b;background:#fffefa;border-radius:8px;padding:12px}.pb-dialog{max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:contain}#book-production :where(button,a,input,textarea,select,summary):focus-visible{outline:3px solid var(--pb-focus);outline-offset:3px}.pb-field input,.pb-field textarea,#book-production select{border-color:#798674}.pb-primary{background-image:none!important;background-color:#087b60!important}.pb-secondary{background-image:none!important;color:#355c38!important;border-color:#798674!important}.pb-story-paper>p{max-width:70ch}.pb-plan-list article{font-size:13px}.pb-project-title{max-width:55%}.pb-page-thumb span{white-space:normal;overflow-wrap:anywhere}.pb-body h1{overflow-wrap:anywhere}
@media(max-width:760px){.pb-field input,.pb-field textarea,#book-production select,.pb-host-handoff textarea{font-size:16px}.pb-topbar{gap:8px}.pb-project-title{max-width:65%;font-size:14px}.pb-save-state{margin-left:0}.pb-steps{justify-content:flex-start}.pb-step{font-size:var(--pb-control-size);padding:8px!important}.pb-editor-grid{grid-template-columns:64px minmax(0,1fr)}.pb-canvas-toolbar{flex-wrap:wrap}.pb-canvas-bottom{flex-wrap:wrap}.pb-story-reader{min-width:0}.pb-primary,.pb-secondary{white-space:normal!important}.pb-plan-list{grid-template-columns:minmax(0,1fr)}.pb-style-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.pb-asset-grid{grid-template-columns:minmax(0,1fr)}.pb-actions{gap:8px}.pb-story-composer{min-width:0}.pb-story-composer>.pb-actions{flex-wrap:wrap}.pb-concept-room{padding:20px 16px!important}.pb-concept-frame{width:min(100%,630px);max-width:100%}}
@media(forced-colors:active){#book-production :focus-visible{outline-color:Highlight}}

.pb-story-guidance{color:var(--pb-muted);font-size:13px;line-height:1.7}
@media(max-width:760px){.pb-topbar>.pb-quiet{display:inline-flex;min-height:40px;align-items:center}}
/* Quiet controls retain legibility in every interaction state. */
#book-production .pb-canvas-toolbar .pb-quiet:disabled{opacity:1;color:#6d7068;background:transparent;cursor:not-allowed}
@media (hover:hover){#book-production .pb-canvas-toolbar .pb-quiet:not(:disabled):hover{background:#e3f3ec;color:#185c45}}
/* Calm hierarchy: the book leads, supporting controls stay close to their task. */
.pb-topbar{border-color:#e5e6dc}.pb-body h1{text-wrap:balance;font-size:26px;line-height:1.4;font-weight:600;letter-spacing:-.025em}.pb-body h2{text-wrap:balance;font-weight:600}.pb-primary,.pb-secondary{min-height:42px;border-radius:10px!important;font-size:14px!important;padding:10px 18px!important}.pb-secondary{background-color:#f2f4eb!important;border:1px solid #b4c0a9!important}.pb-quiet,.pb-back{font-size:var(--pb-control-size);min-height:40px}.pb-step{min-height:40px;font-size:var(--pb-control-size)}.pb-step[aria-current=step]{background:#e4f2e9;color:#285d3b}.pb-auxiliary{padding-block:8px}.pb-tools{background:#fffefa;border-bottom:1px solid #e5e6dc;padding:8px 24px}.pb-tools>summary{font-size:13px;color:#586650;cursor:pointer;min-height:32px;align-content:center}.pb-tools .pb-actions{margin-block:10px}.pb-style-room{padding-block:32px!important}.pb-story-paper{box-shadow:none;max-height:none}.pb-story-composer{margin-top:24px}.pb-story-paper>p{font-size:17px;line-height:1.95}.pb-story-guidance{margin-top:24px}.pb-story-composer>.pb-actions>strong{font-size:14px}.pb-story-composer .pb-field{margin-top:14px}.pb-note{line-height:1.7}.pb-style-card strong{font-size:14px}.pb-style-card small{font-size:12px}.pb-style-custom,.pb-export-details,.pb-image-details{margin-block:16px}.pb-style-custom>summary,.pb-export-details>summary,.pb-image-details>summary{cursor:pointer;font-size:13px;line-height:1.7;color:#586650;padding-block:8px}.pb-plan-room{box-shadow:none}.pb-asset-card{box-shadow:none}.pb-host-handoff{background:#f2f5ed;border-color:#cbd6c1}.pb-progress:empty{display:none}.pb-dialog h2{text-wrap:balance}.pb-dialog{font-size:14px}.pb-host-handoff textarea{min-height:120px}.pb-canvas-column{border-radius:0}.pb-reading-page{box-shadow:0 8px 28px #243a2514}.pb-save-state{font-variant-numeric:tabular-nums}
@media(max-width:760px){.pb-body h1{font-size:22px}.pb-story-paper>p{font-size:16px;line-height:1.9}.pb-primary,.pb-secondary{font-size:14px!important;min-height:42px}.pb-tools{padding-inline:16px}.pb-step{font-size:var(--pb-control-size)}.pb-story-composer .pb-actions{align-items:stretch}.pb-body .pb-plan-room{padding:22px!important}.pb-story-paper{padding:24px 20px}.pb-style-room .pb-style-hero{height:auto;min-height:260px;aspect-ratio:4/3}.pb-style-description{padding:18px}.pb-assets-room .pb-actions{justify-content:flex-start}}
@media(forced-colors:active){.pb-primary,.pb-secondary{border:1px solid ButtonText!important}}
.pb-tools-menu{background:#fffefa;border-bottom:1px solid #e5e6dc}.pb-tools-menu>summary{padding:8px 24px;font-size:13px;color:#586650;cursor:pointer;min-height:38px;line-height:1.7}.pb-tools-menu .pb-auxiliary{border-bottom:0;padding-top:0}.pb-style-catalog,.pb-upload-options,.pb-export-options{margin-block:14px}.pb-style-catalog>summary,.pb-upload-options>summary,.pb-export-options>summary{cursor:pointer;font-size:13px;line-height:1.7;color:#586650;padding-block:8px}.pb-style-hero{max-height:330px}.pb-asset-art{min-height:140px}.pb-asset-card>small{letter-spacing:.03em}.pb-style-cards{margin-block:18px}.pb-export-options>a{margin-block:8px}.pb-story-guidance{border-radius:10px}.pb-preview-room>.pb-actions{gap:12px}.pb-plan-list article{min-height:100px}.pb-page-canvas{border:1px solid #e5e6dc}.pb-page-thumb[aria-current=true]{border-color:#28694e}.pb-host-handoff>.pb-primary{margin-block:8px}
@media(max-width:760px){.pb-tools-menu>summary{padding-inline:16px}.pb-style-hero{max-height:300px}.pb-style-cards{gap:12px}.pb-asset-card .pb-note{font-size:12px}.pb-asset-art{min-height:0}}
.pb-text-options,.pb-image-options,.pb-page-options,.pb-narration-options{border-top:1px solid #e5e6dc;margin-block:14px;padding-top:4px}.pb-properties>details>summary{cursor:pointer;color:#586650;font-size:var(--pb-label-size);line-height:1.7;padding-block:10px;min-height:40px}.pb-properties>details>.pb-actions{flex-wrap:wrap}.pb-properties>details input[type=file]{max-width:100%;font-size:12px}.pb-properties>details .pb-secondary{width:100%;margin-block:6px}.pb-properties>h3{font-size:16px}.pb-properties>.pb-field{margin-bottom:16px}.pb-properties .pb-field textarea{font-size:14px}.pb-properties .pb-field input{font-size:14px}.pb-progress{padding:0 24px}.pb-host-handoff>details>summary{cursor:pointer;font-size:13px}.pb-host-handoff>p{font-size:13px}
@media(max-width:760px){.pb-properties .pb-field input,.pb-properties .pb-field textarea{font-size:16px}.pb-properties{padding:20px 16px}.pb-progress{padding-inline:16px}}

/* Measured book workspace. Stage scoping leaves the other creation workflows untouched. */
#book-production{--pb-shell:#faf8f4;--pb-panel:#fdfaf3;--pb-ink:#2b2a26;--pb-border:#e7e1d6;--pb-accent:#0fa47e;background:var(--pb-shell);color:var(--pb-ink);font-family:var(--studio-font);line-height:1.5}
#book-production :is(h1,h2,h3,strong,label){font-family:inherit}
#book-production[data-stage=pages],#book-production[data-stage=preview]{height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden}
#book-production[data-stage=pages]>.pb-topbar,#book-production[data-stage=preview]>.pb-topbar{height:62px;min-height:62px;flex-wrap:nowrap;padding:8px 16px;background:var(--pb-panel);border-color:var(--pb-border);flex-shrink:0;color:var(--pb-ink)!important}
#book-production .pb-project-title{color:var(--pb-ink)!important}
#book-production[data-stage] .pb-primary{background-color:var(--studio-green,#087b60)!important;border-radius:8px!important}
#book-production[data-stage] .pb-secondary{background-color:var(--pb-panel)!important;color:var(--pb-ink)!important;border-color:var(--pb-border)!important;border-radius:8px!important}
#book-production[data-stage=pages] .pb-body,#book-production[data-stage=preview] .pb-body{flex:1;min-height:0;overflow:auto}
#book-production[data-stage=pages] .pb-editor-grid{height:100%;min-height:0;grid-template-columns:173px minmax(0,1fr) 300px}
#book-production[data-stage=pages] :is(.pb-page-rail,.pb-properties){position:static;max-height:none;min-height:0;overflow:auto;background:var(--pb-panel);border-color:var(--pb-border)}
#book-production[data-stage=pages] .pb-page-rail{padding:12px 10px}
#book-production[data-stage=pages] .pb-page-thumb{background:transparent!important;color:var(--pb-ink)!important}
#book-production[data-stage=pages] .pb-page-thumb[aria-current=true]{border-color:var(--pb-accent);background:#e3f3ec!important}
#book-production[data-stage=pages] .pb-page-thumb span{font-size:var(--pb-label-size);word-break:keep-all;overflow-wrap:break-word}
#book-production[data-stage=pages] .pb-canvas-column{min-height:0;background:#e9e5de!important}
#book-production[data-stage=pages] .pb-canvas-toolbar{flex-shrink:0;justify-content:flex-start;gap:8px;background:var(--pb-panel);border-color:var(--pb-border);padding:6px 12px;min-height:52px}
#book-production[data-stage=pages] .pb-canvas-toolbar button{font-size:var(--pb-control-size)}
#book-production[data-stage=pages] .pb-canvas-surface{min-height:0;padding:24px;overflow:auto;justify-content:flex-start;align-items:flex-start}
#book-production[data-stage=pages] .pb-page-canvas{max-width:none;max-height:none!important;border:0;margin:auto}
#book-production[data-stage=pages] .pb-canvas-bottom{flex-shrink:0;background:var(--pb-panel);border-color:var(--pb-border);gap:12px;padding:8px}
#book-production[data-stage=pages] .pb-canvas-bottom button{min-height:40px;font-size:14px!important;line-height:1.333;padding:8px 14px!important}
#book-production[data-stage=pages] .pb-properties{padding:20px 16px}
#book-production[data-stage=pages] .pb-field :is(input,textarea),#book-production[data-stage=pages] select{font-family:inherit;background:var(--pb-shell);color:var(--pb-ink);border-color:var(--pb-border)}
#book-production[data-stage=pages] .pb-tools-menu,#book-production[data-stage=preview] .pb-tools-menu{position:relative;margin-inline-start:8px;border:1px solid var(--pb-border);border-radius:8px;background:var(--pb-panel);flex-shrink:0}
#book-production[data-stage=pages] .pb-tools-menu>summary,#book-production[data-stage=preview] .pb-tools-menu>summary{padding:8px 12px;min-height:40px;font-size:var(--pb-label-size)}
#book-production .pb-stage-options{position:absolute;inset-inline-end:0;top:100%;width:min(420px,calc(100vw - 32px));z-index:20;background:var(--pb-panel);border:1px solid var(--pb-border);padding:12px;box-shadow:0 12px 28px #2b2a2618}
#book-production .pb-stage-options :is(.pb-steps,.pb-auxiliary){position:static;flex-wrap:wrap;justify-content:flex-start;background:transparent;padding:8px;border:0}
#book-production[data-stage=preview] .pb-preview-room{height:100%;overflow:auto;padding:16px 24px!important}
#book-production[data-stage=preview] .pb-reading-page{width:min(100%,680px,calc(100dvh - 270px));max-height:none}
#book-production[data-stage=preview] .pb-preview-room>.pb-actions{margin:8px 0}
#book-production .pb-caption{min-height:0}
body.production-open .history-launcher:not([hidden]){position:fixed;inset-inline-end:18px;bottom:14px;margin:0;z-index:30;opacity:.9;font-size:12px}
@media(max-width:1000px){#book-production[data-stage=pages]{height:auto;min-height:100dvh;overflow:visible}#book-production[data-stage=pages] .pb-body{overflow:visible}#book-production[data-stage=pages] .pb-editor-grid{height:auto;grid-template-columns:100px minmax(0,1fr)}#book-production[data-stage=pages] .pb-properties{grid-column:1/-1;max-height:none}#book-production[data-stage=pages] .pb-page-rail{max-height:calc(100dvh - 62px)}#book-production[data-stage=pages] .pb-canvas-surface{min-height:300px;padding:16px}#book-production[data-stage=pages] .pb-canvas-column{min-height:500px}#book-production[data-stage=pages] .pb-canvas-toolbar{flex-wrap:wrap}#book-production[data-stage=pages] .pb-topbar,#book-production[data-stage=preview] .pb-topbar{height:auto;min-height:62px;flex-wrap:wrap}#book-production .pb-project-title{max-width:calc(100% - 96px);font-size:14px}#book-production .pb-save-state{margin-inline-start:auto}#book-production[data-stage=preview]{height:auto;overflow:visible}#book-production[data-stage=preview] .pb-reading-page{width:min(100%,680px)}body.production-open .history-launcher:not([hidden]){position:static;margin:12px 16px 12px auto}}
@media(max-width:480px){#book-production[data-stage=pages] .pb-editor-grid{grid-template-columns:72px minmax(0,1fr)}#book-production[data-stage=pages] .pb-page-rail{padding:8px 4px}#book-production[data-stage=pages] .pb-page-thumb{padding:3px!important}#book-production[data-stage=pages] .pb-page-thumb span{font-size:11px}#book-production[data-stage=pages] .pb-canvas-bottom{gap:6px;flex-wrap:wrap}#book-production[data-stage=pages] .pb-canvas-bottom button{padding:8px!important;min-height:40px}#book-production[data-stage=pages] .pb-canvas-column{min-height:440px}#book-production[data-stage=pages] .pb-canvas-surface{min-height:240px;padding:10px}#book-production .pb-properties :is(input,textarea,select){font-size:16px}#book-production[data-stage=preview] .pb-preview-room{padding:12px!important}}

@media(max-width:1000px){#book-production[data-stage=pages] .pb-page-rail{contain:size;max-height:none;align-self:stretch}#book-production[data-stage=pages] .pb-canvas-column{min-height:0}#book-production[data-stage=pages] .pb-canvas-surface{min-height:0;flex:none;padding:16px;max-height:calc(100dvh - 230px)}#book-production :is(.pb-topbar){position:relative}#book-production .pb-topbar .pb-tools-menu{position:static}#book-production .pb-stage-options{inset-inline:12px;width:auto;top:100%}#book-production[data-stage=pages] .pb-canvas-bottom{margin-top:0}}
@media(max-width:480px){#book-production[data-stage=pages] .pb-canvas-surface{padding:10px}#book-production[data-stage=pages] .pb-canvas-column{min-height:0}}

/* Narrow-screen navigation reuses the existing guarded page selection. */
.pb-mobile-page-picker{display:none}
@media(max-width:760px){#book-production[data-stage=pages] .pb-editor-grid{grid-template-columns:minmax(0,1fr)}#book-production[data-stage=pages] .pb-page-rail{display:none}#book-production[data-stage=pages] .pb-mobile-page-picker{display:flex;align-items:center;gap:12px;grid-column:1/-1;margin:0;padding:10px 16px;background:var(--pb-panel);border-bottom:1px solid var(--pb-border);font-size:var(--pb-label-size)}.pb-mobile-page-picker select{min-width:0;flex:1;min-height:40px;font-size:16px}#book-production[data-stage=pages] .pb-canvas-column{min-width:0;grid-column:1/-1}#book-production[data-stage=pages] .pb-canvas-toolbar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:8px}#book-production[data-stage=pages] .pb-canvas-toolbar button{font-size:var(--pb-control-size);min-height:40px}#book-production[data-stage=pages] .pb-zoom-value{align-self:center;text-align:center;font-size:var(--pb-label-size)}#book-production[data-stage=pages] .pb-canvas-surface{padding:8px;max-height:none}}

#book-production[data-stage=pages]>.pb-topbar,#book-production[data-stage=preview]>.pb-topbar{height:auto;min-height:52px;padding:4px 16px}
#book-production .pb-save-state[data-read-only=true]{font-size:13px;font-weight:600;color:var(--pb-ink)}
@media (min-width:761px) and (max-width:1000px){
 #book-production[data-stage=pages]{height:100dvh;min-height:0;overflow:hidden}
 #book-production[data-stage=pages] .pb-body{overflow:auto}
 #book-production[data-stage=pages] .pb-editor-grid{height:100%;grid-template-columns:100px minmax(0,1fr) 248px}
 #book-production[data-stage=pages] .pb-properties{grid-column:auto;min-height:0;overflow:auto}
 #book-production[data-stage=pages] .pb-page-rail{contain:none;min-height:0;max-height:none}
 #book-production[data-stage=pages] .pb-canvas-column{min-height:0}
 #book-production[data-stage=pages] .pb-canvas-surface{flex:1;max-height:none;min-height:0;padding:12px}
}

/* Editor panels can be tucked away independently without changing the page. */
#book-production[data-stage=pages] .pb-editor-grid{--page-rail:173px;--page-properties:300px;grid-template-columns:var(--page-rail) minmax(0,1fr) var(--page-properties)}
#book-production[data-stage=pages] .pb-editor-grid[data-pages-open=false]{--page-rail:0px}
#book-production[data-stage=pages] .pb-editor-grid[data-properties-open=false]{--page-properties:0px}
#book-production[data-stage=pages] .pb-page-rail{grid-column:1;grid-row:1;min-width:0}
#book-production[data-stage=pages] .pb-canvas-column{grid-column:2;grid-row:1;min-width:0}
#book-production[data-stage=pages] .pb-properties{grid-column:3;grid-row:1;min-width:0}
#book-production[data-stage=pages] .pb-page-thumb{padding:7px!important;text-align:start}
#book-production[data-stage=pages] .pb-page-thumb>img{width:100%;max-width:128px;margin-inline:auto}
#book-production[data-stage=pages] .pb-page-thumb span{font-size:14px;line-height:1.4;white-space:normal;word-break:keep-all;overflow-wrap:anywhere;overflow:visible;text-overflow:clip}
#book-production[data-stage=pages] .pb-canvas-toolbar{flex-wrap:wrap;gap:4px}
#book-production .pb-panel-toggle{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:5px 7px;border:1px solid var(--pb-border);border-radius:8px;background:var(--pb-panel);color:var(--pb-ink);font-size:15px;white-space:nowrap}
#book-production .pb-panel-toggle[aria-expanded=true]{background:#e3f3ec;color:#185c45;border-color:#9bcfba}
#book-production .pb-panel-toggle .pb-icon{width:18px;height:18px}
@media (min-width:761px) and (max-width:1100px){#book-production[data-stage=pages] .pb-editor-grid{--page-rail:173px;--page-properties:248px}}
@media (max-width:760px){
 #book-production[data-stage=pages] .pb-editor-grid{height:auto;grid-template-columns:minmax(0,1fr)}
 #book-production[data-stage=pages] .pb-page-rail:not([hidden]){display:block;grid-column:1;grid-row:auto;contain:none;max-height:260px;overflow:auto}
 #book-production[data-stage=pages] .pb-page-thumb{display:flex;align-items:center;gap:12px}
 #book-production[data-stage=pages] .pb-page-thumb>img{width:52px;height:52px;margin:0;flex:none}
 #book-production[data-stage=pages] .pb-page-thumb span{flex:1;min-width:0;margin:0}
 #book-production[data-stage=pages] .pb-canvas-column,#book-production[data-stage=pages] .pb-properties{grid-column:1;grid-row:auto}
 #book-production[data-stage=pages] .pb-canvas-toolbar{display:flex;gap:4px;padding:8px;align-items:center}
 #book-production[data-stage=pages] .pb-canvas-toolbar button{min-height:40px}
}

/* Compact controls retain their touch area while reducing internal vertical padding. */
#book-production :is(.pb-back,.pb-quiet,.pb-step){padding-block:5px!important}
#book-production :is(.pb-primary,.pb-secondary){padding-block:5px!important;font-size:16px!important}
#book-production :is(.pb-tools-menu,.pb-style-catalog,.pb-style-custom,.pb-image-details,.pb-export-details,.pb-upload-options,.pb-export-options,.pb-properties>details)>summary{padding-block:5px!important;font-size:15px}
@media(max-width:480px){#book-production .pb-style-room .pb-style-hero{min-height:0;width:100%}}
@media(max-width:480px){#book-production .pb-topbar{height:52px;min-height:52px;flex-wrap:nowrap;gap:4px;padding:4px 10px}#book-production .pb-topbar .pb-back,#book-production .pb-topbar>.pb-quiet{flex:none;padding:5px 3px!important;font-size:14px!important;white-space:nowrap}#book-production .pb-project-title{flex:1 1 auto;min-width:0;max-width:none;font-size:14px}#book-production .pb-save-state{flex:none;margin-left:0;font-size:12px}#book-production .pb-steps{flex-wrap:nowrap;justify-content:flex-start;gap:0;padding:4px;overflow-x:auto}#book-production .pb-step{flex:none;padding:5px 4px!important;font-size:14px!important}}

#book-production[data-stage=preview] .pb-preview-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 10px}
#book-production[data-stage=preview] .pb-preview-header-right{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin:0;flex-wrap:wrap}
#book-production[data-stage=preview] .pb-preview-position{font-size:14px;color:#415e50;font-variant-numeric:tabular-nums;white-space:nowrap}
#book-production[data-stage=preview] .pb-preview-readable-caption{display:none}
#book-production[data-stage=preview] .pb-preview-room[data-long-caption=true] .pb-reading-page>.pb-caption{display:none}
#book-production[data-stage=preview] .pb-preview-room[data-long-caption=true] .pb-preview-readable-caption{display:block}
#book-production[data-stage=preview] .pb-preview-readable-caption{width:min(100%,680px,calc(100dvh - 270px));margin:0 auto;padding:16px;background:#fffefa;color:#2b2a26;font-family:var(--studio-font);font-size:1rem;line-height:1.65;text-align:start;white-space:pre-wrap;overflow-wrap:break-word}
@media(max-width:1000px){#book-production[data-stage=preview] .pb-preview-readable-caption{width:min(100%,680px)}}
@media(max-width:600px){#book-production[data-stage=preview] .pb-reading-page>.pb-caption{display:none}#book-production[data-stage=preview] .pb-preview-readable-caption{display:block}}
#book-production[data-stage=preview] .pb-preview-navigation{position:absolute;inset:0;display:flex;align-items:center;justify-content:space-between;padding:0 8px;pointer-events:none}
#book-production[data-stage=preview] .pb-preview-arrow{display:grid;place-items:center;width:40px;height:40px;min-width:40px;min-height:40px;margin:0;padding:0;border:0;border-radius:50%;background:#1b3029b8;color:#fff;opacity:0;pointer-events:auto;cursor:pointer}
#book-production[data-stage=preview] .pb-preview-arrow::before{content:"";width:10px;height:10px;border-top:2px solid currentColor;border-right:2px solid currentColor;transform:rotate(45deg)}
#book-production[data-stage=preview] .pb-preview-previous::before{transform:rotate(-135deg)}
@media(hover:hover){#book-production[data-stage=preview] .pb-reading-page:hover .pb-preview-arrow:not(:disabled){opacity:1}}
#book-production[data-stage=preview] .pb-reading-page.pb-preview-touch .pb-preview-arrow:not(:disabled),#book-production[data-stage=preview] .pb-preview-arrow:focus-visible{opacity:1}
#book-production[data-stage=preview] .pb-preview-arrow:disabled{opacity:0;pointer-events:none;cursor:default}
#book-production[data-stage=preview] .pb-preview-arrow:focus-visible,#book-production[data-stage=preview] .pb-reading-page:focus-visible{outline:3px solid #4a8760;outline-offset:-3px}
#book-production[data-stage=preview] .pb-preview-header{flex-wrap:nowrap}
#book-production[data-stage=preview] .pb-preview-header-right{flex-wrap:nowrap}
#book-production[data-stage=preview] .pb-preview-header-right [data-personal-print-controls]{margin:0;flex-wrap:nowrap;gap:4px}
#book-production[data-stage=preview] .pb-preview-header-right [data-personal-print-controls] [role=status]:empty{display:none}
#book-production [data-print-feedback]:not([hidden]){position:fixed;right:16px;bottom:16px;z-index:100;display:flex;align-items:center;gap:12px;width:min(420px,calc(100% - 32px));padding:12px 14px;border:1px solid #bfa36d;border-radius:10px;background:#fff4d8;color:#60451a;box-shadow:0 8px 24px #2b2a2624}
#book-production [data-print-feedback] [role=status]{margin:0;flex:1;font-size:14px;line-height:1.5}
#book-production [data-print-feedback] [data-print-dismiss]{flex:none;min-height:36px;padding:5px 10px;border:1px solid #9b824e;border-radius:8px;background:#fffaf0;color:#60451a}
#book-production [data-print-feedback][data-progress=true]:not([hidden]){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0;box-shadow:none}
#book-production[data-stage=preview] .pb-preview-header>button,#book-production[data-stage=preview] .pb-preview-header-right :is(a,button){padding:5px 10px;white-space:nowrap}
@media(max-width:760px){
 #book-production[data-stage=preview]>.pb-topbar{height:52px;min-height:52px;flex-wrap:nowrap;gap:4px;padding:4px 10px}
 #book-production[data-stage=preview] .pb-project-title{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 #book-production[data-stage=preview] .pb-tools-menu{margin-inline-start:0}
}
