*{box-sizing:border-box}body{margin:0;background:#f6f5f0;color:#233f38;font-family:'Microsoft JhengHei',sans-serif;font-size:14px}button,input,textarea{font:inherit}button,label.add{cursor:pointer}button{border:0}aside{position:fixed;inset:0 auto 0 0;width:226px;background:#fdfcf8;border-right:1px solid #e2e5db;padding:34px 22px;display:flex;flex-direction:column}.brand{display:flex;gap:12px;font-size:28px;text-decoration:none;color:#27483e;align-items:center}.brand span{font-size:21px;font-weight:bold;letter-spacing:3px}.brand small{display:block;font-size:9px;letter-spacing:2px;margin-top:7px}.section{font-size:11px;color:#8b958b;margin:52px 13px 16px}.nav{text-align:left;background:transparent;padding:15px 12px;border-radius:7px;color:#617269;margin-bottom:8px;font-size:13px}.nav.active{background:#e8eee4;color:#244e3c}.nav span{float:right}.aside-bottom{margin-top:auto;padding:20px 12px 0}.aside-bottom img{width:115px;mix-blend-mode:multiply}.aside-bottom p{font-size:12px;line-height:1.9;color:#6f7b70}.aside-bottom small{font-size:10px;color:#8b958b}main{margin-left:226px;padding:0 42px;max-width:1800px}header{height:80px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e1e4da;font-size:11px;color:#7a867c}.crumb span{padding:0 15px;color:#b0b6ab}#status{color:#63816d}.heading{display:flex;justify-content:space-between;align-items:center;padding:37px 0 32px}.eyebrow{font-size:10px;letter-spacing:2.5px;color:#9b8755}h1{font-size:29px;letter-spacing:1px;font-weight:500;margin:13px 0}h1 em{font-style:normal}p{color:#879083;font-size:12px}.primary{background:#264d3e;color:white;padding:13px 23px;border-radius:5px}.secondary{padding:12px;border:1px solid #bbc9bb;background:#fff;border-radius:5px}.workspace{display:grid;grid-template-columns:340px minmax(0,1fr);gap:25px;align-items:start}.editor{border:1px solid #e0e4d9;border-radius:10px;background:#fffefa;padding:23px;max-height:700px;overflow:auto}h2{font-size:16px;margin:0 0 20px;font-weight:600}.panel-title{display:flex;justify-content:space-between;align-items:baseline}.panel-title h2{margin-bottom:8px}.add{font-size:12px;color:#54754e}h2 small{font-size:10px;color:#899a86}.hint{font-size:11px;line-height:1.8;color:#909488}.card{background:#f8f8f2;border:1px solid #e2e6db;border-radius:6px;padding:13px;margin:15px 0}.card.selected{border-color:#829a73}.card-head{display:flex;align-items:center;gap:11px;margin-bottom:12px}.thumb{width:65px;height:45px;object-fit:contain;background:#eeeee4}.card-head span{font-size:11px;flex:1}.actions{display:flex;gap:4px}.actions button{background:transparent;color:#6e806a;padding:4px}.field{display:block;font-size:11px;color:#7c8979;margin:11px 0}.field input,.field textarea{display:block;width:100%;border:1px solid #dce2d6;border-radius:4px;background:white;color:#2f4b3d;padding:9px;margin-top:6px;resize:vertical}.field textarea{min-height:78px}.subtle{background:none;color:#6e8364;border:1px dashed #c6d0bf;width:100%;padding:13px;border-radius:5px}.preview-area{background:#eaece3;border:1px solid #e0e4da;border-radius:10px;padding:22px;min-width:0}.preview-top{display:flex;justify-content:space-between;font-size:11px;color:#7b8875;margin-bottom:24px}.page{aspect-ratio:420/297;background:#faf8f0;box-shadow:0 12px 25px #33463018;position:relative;overflow:hidden}.page svg{width:100%;height:100%;display:block}.pager{display:flex;justify-content:center;align-items:center;gap:24px;margin-top:25px;color:#738269;font-size:11px}.pager button{background:#f9faf5;border:1px solid #d8dfce;border-radius:50%;width:30px;height:30px;color:#526b48}.preview-note{text-align:center;font-size:10px;color:#95a08b;margin:18px 0 0}.preview-note span{padding:0 12px}footer{font-size:10px;color:#97a08f;margin:32px 0;display:flex;justify-content:space-between}.empty{padding:35px 16px;text-align:center;color:#89987e;font-size:12px;line-height:2}.empty b{font-size:26px;display:block;color:#8ca27b}.spec{display:grid;gap:10px;background:#f2f4eb;padding:18px;margin-bottom:20px;font-size:12px}.spec b{font-size:20px}.check{display:flex;gap:9px;font-size:11px;line-height:1.7;margin:14px 0}.quality{font-size:11px;border-bottom:1px solid #e4e5db;padding:12px 0;line-height:1.8}.quality.warn{color:#9b7835}#download{width:100%;margin-top:20px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);padding:13px 24px;background:#264d3e;color:#fff;border-radius:6px;display:none;z-index:10;font-size:13px}button:disabled{opacity:.5;cursor:wait}button:hover{filter:brightness(.96)}input:focus,textarea:focus{outline:2px solid #9eb18c} @media(min-width:1500px){.workspace{grid-template-columns:370px minmax(0,1fr)}}@media(max-width:1100px){aside{width:185px;padding:25px 14px}main{margin-left:185px;padding:0 22px}.workspace{grid-template-columns:300px minmax(0,1fr)}h1{font-size:23px}.preview-area{padding:14px}}@media(max-width:850px){aside{position:static;width:100%;flex-direction:row;gap:12px;align-items:center;padding:16px}.brand{font-size:20px}.brand span{font-size:15px}.section,.aside-bottom{display:none}.nav{font-size:11px;margin:0;padding:8px}main{margin:0;padding:0 18px}.workspace{grid-template-columns:1fr}.preview-area{grid-row:1}.editor{max-height:none}.heading{padding:25px 0}h1{font-size:20px}.heading p{font-size:10px}.primary{padding:12px}header{height:55px}.crumb{font-size:10px}footer{line-height:1.7;gap:20px}}
.heading{gap:14px}.heading>div{flex:1}.book-dialog{width:min(1400px,96vw);height:94vh;max-height:94vh;padding:0;border:0;border-radius:12px;background:#eaece3;color:#203f39}.book-dialog::backdrop{background:#142b24bb;backdrop-filter:blur(5px)}.book-toolbar{display:flex;align-items:center;justify-content:space-between;padding:20px 28px;gap:20px;background:#fffdf7}.book-toolbar small{display:block;font-size:11px;color:#83917b;margin-top:7px}.book-toolbar select{padding:8px;border:1px solid #c6d1be;border-radius:4px;color:#203f39;background:white}#book-pages{height:calc(100% - 85px);overflow:auto;padding:25px max(24px,8%)}#book-pages section{margin-bottom:38px;scroll-margin-top:20px}.book-caption{font-size:12px;margin-bottom:12px;color:#7f8e76}@media(max-width:850px){.heading{flex-wrap:wrap}.heading>div{flex-basis:100%}.book-toolbar{padding:14px;flex-wrap:wrap}.book-toolbar small{display:none}#book-pages{padding:18px}}
.style-choice{border:1px solid #d7dfd0;border-radius:7px;overflow:hidden;margin:14px 0;background:#fff}.style-choice.applied{border:2px solid #547b60}.style-choice img{width:100%;display:block;aspect-ratio:420/297;object-fit:cover}.style-choice>div{padding:14px}.style-choice p{font-size:11px;line-height:1.7}.style-choice button{width:100%}#cover-styles{border-bottom:1px solid #dce2d6;margin-bottom:25px;padding-bottom:24px}#cover-styles h3{font-size:14px}
.guide-controls{padding:12px;background:#f8faf5;border:1px solid #d3ddcc;border-radius:6px;margin-bottom:18px;font-size:11px}.guide-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.guide-heading button{background:none;text-decoration:underline;color:#607658;font-size:11px}.guide-options{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:9px 0}.guide-options label{display:flex;align-items:center;gap:4px}.guide-options input[type=number]{width:50px;padding:5px;border:1px solid #c6d1be;border-radius:4px}.guide-options select{padding:5px;background:white;border:1px solid #c6d1be;border-radius:4px;font:inherit}.guide-controls p{font-size:10px;line-height:1.7;margin:8px 0 0;color:#6b7965}.trim-key{color:#b23f5a}.safe-key{color:#17806b}.binding-key{color:#865b9a}.book-dialog{display:none;flex-direction:column}.book-dialog[open]{display:flex}.book-toolbar{flex-shrink:0}#book-guides{margin:12px 24px 0;flex-shrink:0}#book-pages{height:auto;flex:1;min-height:0}.print-guides{pointer-events:none}@media print{.print-guides,.guide-controls{display:none!important}}

.page{aspect-ratio:var(--page-ratio,420/297)}.orientation-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;font-size:11px}.orientation-controls button{font-size:12px;white-space:nowrap}

#export-format{display:block;width:100%;margin-top:8px;padding:12px;border:1px solid #bbc9bb;background:white;color:#264d3e;border-radius:5px;font:inherit;font-size:13px}
/* Keep voting provenance visible in the editor without printing rankings on children's pages. */
.card-head .source-badge{display:block;margin-top:4px;color:#718579;font-size:9px;font-weight:400;line-height:1.45}
/* Preserve the exact rare character in the child's name with the supplied Kai glyph. */
@font-face{font-family:AlbumKaiSupplement;src:url('/kai-supplement.ttf') format('truetype');font-style:normal;font-weight:400;font-display:block;unicode-range:U+36D3}
body{font-family:AlbumKaiSupplement,'Microsoft JhengHei',sans-serif}
.effect-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:14px 0}.effect-shortcuts button{padding:10px 7px;border:1px solid #b9c9bc;border-radius:5px;background:#f5f8f1;color:#315242;font:inherit;font-size:12px;cursor:pointer;text-align:left}.effect-shortcuts button[aria-pressed="true"]{background:#375e4c;color:#fff}.style-choice[data-effect^="study-"] img{aspect-ratio:1;object-fit:contain}
#bleed-note,#format-note + .spec,.check:has(#strict),.check:has(#bleed),.check:has(#strict)+p{display:none}
