.sb-shell{max-width:1200px;margin:0 auto;padding:48px 24px 80px}.sb-shell h1{margin:16px 0;font-size:clamp(2rem,5vw,3.6rem);line-height:1.12}.sb-shell h2{margin:0 0 18px;font-size:1.5rem}.sb-shell p{margin:12px 0 20px;line-height:1.65}.sb-layout{grid-template-columns:minmax(280px,1fr) minmax(280px,1.2fr);gap:32px;margin-top:32px;display:grid}.sb-panel{background:#fffdf8;border:1px solid #d9d0c3;border-radius:16px;margin:20px 0;padding:24px}.sb-studio-callout{background:#eaf0df;border:1px solid #b9cbb2;border-radius:16px;justify-content:space-between;align-items:center;gap:24px;margin:28px 0;padding:26px 28px;display:flex}.sb-studio-callout h2{margin:6px 0}.sb-shell .sb-studio-callout p{max-width:650px;margin:8px 0 0}.sb-studio-kicker{color:#315c47;letter-spacing:.06em;text-transform:uppercase;font-size:.8rem;font-weight:700}.sb-studio-link{color:#fff;background:#2a4834;border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;gap:10px;padding:12px 18px;font-weight:700;text-decoration:none;display:inline-flex}.sb-studio-link:hover{background:#1d3526;text-decoration:underline}.sb-studio-callout-compact{margin:20px 0;padding:20px}.sb-shell fieldset{border:0;min-width:0;padding:0}.sb-shell label{gap:8px;margin:16px 0;font-weight:600;display:grid}.sb-shell input,.sb-shell textarea,.sb-shell select{color:#24211b;width:100%;font:inherit;background:#fff;border:1px solid #a9a194;border-radius:8px;padding:12px}.sb-shell textarea{resize:vertical;min-height:120px}.sb-shell button{cursor:pointer;border:1px solid #b0a898;border-radius:8px;margin:4px 4px 4px 0;padding:10px 16px}.sb-shell button:disabled{opacity:.5;cursor:not-allowed}.sb-shelf{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;display:grid}.sb-book-card{background:#fff;border:1px solid #d9d0c3;border-radius:12px;flex-direction:column;gap:10px;padding:16px;display:flex}.sb-book-card img{aspect-ratio:1;object-fit:cover;border-radius:6px;width:100%}.sb-book-card span,.sb-note{color:#605b50;font-size:.85rem}.sb-toolbar{flex-wrap:wrap;justify-content:space-between;gap:16px;display:flex}.sb-error{background:#fff0eb;border-left:4px solid #b5462e;padding:16px}.sb-progress{background:#eaf0df;border-radius:12px;padding:18px;line-height:1.6}.sb-progress progress{width:100%;margin-top:12px;display:block}.sb-people{flex-wrap:wrap;gap:20px;display:flex}.sb-people>div{width:140px}.sb-people img{object-fit:cover;border-radius:12px;width:140px;height:140px}.sb-people strong{display:block}.sb-editor{grid-template-columns:160px minmax(0,1fr);gap:24px;margin-top:28px;display:grid}.sb-pages{flex-direction:column;padding-top:20px;display:flex}.sb-pages [aria-current]{color:#fff;background:#2a4834}.sb-page-move{flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:16px;display:flex}.sb-illustration-wrap{width:100%;max-width:620px;margin:0 auto 24px;position:relative}.sb-illustration{-webkit-mask-composite:source-in;width:100%;display:block;-webkit-mask-image:linear-gradient(90deg,#0000,#000 8% 92%,#0000),linear-gradient(#0000,#000 8% 92%,#0000);mask-image:linear-gradient(90deg,#0000,#000 8% 92%,#0000),linear-gradient(#0000,#000 8% 92%,#0000);-webkit-mask-composite:source-in;mask-composite:intersect}.sb-refining-overlay{color:#fff;text-align:center;background:#14241ab3;border-radius:8px;flex-direction:column;justify-content:center;align-items:center;gap:12px;padding:20px;font-weight:600;display:flex;position:absolute;inset:0}.sb-spinner{border:4px solid #ffffff59;border-top-color:#fff;border-radius:50%;width:36px;height:36px;animation:.8s linear infinite sb-spin}@keyframes sb-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.sb-spinner{animation:none}}.sb-placeholder{text-align:center;background:#f1eee7;border-radius:8px;padding:80px 20px}.sb-shell summary{cursor:pointer;font-size:1.2rem;font-weight:600}.sb-shell a:focus-visible,.sb-shell button:focus-visible{outline-offset:3px;outline:3px solid #315c47}@media (max-width:700px){.sb-studio-callout{flex-direction:column;align-items:flex-start;padding:20px}.sb-shell{padding:28px 16px}.sb-layout,.sb-editor{grid-template-columns:1fr}.sb-pages{flex-direction:row;overflow:auto}.sb-pages button{white-space:nowrap}.sb-panel{padding:18px}.sb-toolbar .sb-note{overflow-wrap:anywhere}}.sb-shell label.sb-character-choice{align-items:center;gap:10px;margin:8px 0;display:flex}.sb-shell .sb-character-choice input{width:auto;margin:0}.sb-character-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:16px;margin:20px 0;display:grid}.sb-character-card{text-align:left;cursor:pointer;color:inherit;background:#fffaf4;border:1px solid #d9cfc3;border-radius:14px;flex-direction:column;align-items:stretch;gap:8px;padding:10px;display:flex}.sb-character-card[aria-pressed=true]{outline:3px solid #80583c}.sb-character-card img,.sb-portrait-placeholder{aspect-ratio:1;object-fit:cover;border-radius:10px;width:100%}.sb-portrait-placeholder,.sb-choice-placeholder{color:#72523d;background:#eadbca;place-items:center;font-size:2rem;display:grid}.sb-choice-portrait,.sb-choice-placeholder{object-fit:cover;border-radius:10px;flex:none;width:56px;height:56px}.sb-library{margin-top:28px}.sb-new-book-link{margin-bottom:32px}.sb-new-book{max-width:720px}.sb-shelf{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}
