.sg-ready .is-shelf .hero,.sg-ready .is-shelf .how-card,.sg-ready .is-shelf .sidebar,.sg-ready .is-shelf .main>.topbar,.sg-ready .is-shelf .section-heading,.sg-ready .is-shelf .project-grid,.sg-ready .is-shelf .book-meta,.sg-ready .is-shelf .book-info p,.sg-ready .is-shelf .cover-badge{display:none!important}
.sg-ready .shell.is-shelf{display:block!important;padding:0}
.sg-ready .shell.is-shelf .main{width:min(100%,58rem);max-width:58rem;padding:1rem 1rem 6.2rem;margin:auto}
.sg-ready .is-shelf .book-grid,.sg-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:clamp(.7rem,2vw,1.25rem);align-items:start}
.sg-ready .is-shelf .book-card{min-width:0;grid-column:auto!important;width:100%;text-align:start}
.sg-ready .is-shelf .book-info{padding:.6rem .7rem}
.sg-ready .is-shelf .create-card{align-self:stretch;min-height:8rem}
.sg-ready .is-shelf .create-card p{display:none}
.sg-head,.sg-bar,.sg-row,.sg-actions,.sg-filters,.sg-tools{display:flex;align-items:center;gap:.6rem}.sg-head,.sg-bar{justify-content:space-between}.sg-head{margin:0 0 .8rem}.sg-head h1,.sg-bar h2{font:700 clamp(1.35rem,4vw,2rem)/1.2 Georgia,serif;margin:0;color:#263e37}
.sg-ready .sg-tabs{display:flex;gap:.4rem;margin:0 0 1rem}.sg-tabs button,.sg-push,.sg-tools button,.sg-actions button{font:inherit;font-weight:650;border:1px solid #d5dbd3;border-radius:.75rem;background:white;color:#29463d;padding:.55rem .85rem;cursor:pointer}
.sg-tabs button[aria-current],.sg-mainbtn,.sg-tools button[aria-pressed=true]{background:#284d42!important;color:white!important}
.sg-btn{border:0;background:transparent;color:#29463d;display:inline-grid;place-items:center;min-height:44px;min-width:44px;border-radius:.75rem;cursor:pointer}
.sg-icon{width:1.55rem;height:1.55rem;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.sg-dock{position:fixed;z-index:24;inset:auto 0 0;display:flex;justify-content:center;gap:clamp(.1rem,3vw,2.5rem);padding:.35rem .5rem max(.4rem,env(safe-area-inset-bottom));background:#fffefbf7;border-top:1px solid #dce1d9;color:#28483f}
.sg-dock button[aria-current]{background:#e3eee5;color:#214d39}.sg-btn:focus-visible,.sg-push:focus-visible,.sg-card:focus-visible{outline:3px solid #318773;outline-offset:2px}
.sg-dialog{box-sizing:border-box;color:#253b33;background:#fbfaf6;border:0;padding:0;width:min(100%,58rem);max-width:100%;height:min(95dvh,70rem);max-height:100%;border-radius:1rem;overflow:auto;overscroll-behavior:contain;font:1rem/1.5 system-ui,sans-serif}
.sg-dialog::backdrop{background:#10251f77}.sg-bar{position:sticky;z-index:3;top:0;background:#fbfaf6f5;border-bottom:1px solid #dce1d9;padding:.5rem 1rem}
.sg-body{padding:1rem clamp(.85rem,3vw,2rem) 2rem}.sg-dialog p{margin:.65rem 0}.sg-filters{flex-wrap:wrap;margin:0 0 1rem}.sg-filters input,.sg-filters select{font:inherit;min-height:44px;background:white;border:1px solid #cdd6ce;border-radius:.65rem;padding:.5rem;color:inherit;min-width:0;max-width:100%}.sg-filters input{flex:1 1 12rem}.sg-card{display:block;width:100%;border:0;background:transparent;color:inherit;text-align:start;text-decoration:none;cursor:pointer;padding:0;font:inherit}
.sg-cover{position:relative;display:grid;place-items:center;aspect-ratio:3/4;background:var(--cover,#314e48);border-radius:.65rem;color:#fff6d8;box-shadow:inset 5px 0 #ffffff24;overflow:hidden;padding:1.2rem;text-align:center;font:600 clamp(1rem,4vw,1.8rem)/1.3 Georgia,serif}.sg-cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.sg-card strong,.sg-card small{display:block;margin-top:.3rem;overflow-wrap:anywhere}.sg-card small{color:#516258}.sg-actions{flex-wrap:wrap;margin:.5rem 0}.sg-actions button{padding:.35rem .6rem}.sg-status{min-height:1em;color:#51635a}
.sg-intro{max-width:34rem;height:auto;background:#fffdf8}.sg-intro .sg-body{padding:clamp(1.25rem,5vw,2.6rem)}.sg-intro h2{font:700 clamp(1.6rem,6vw,2.45rem)/1.2 Georgia,serif;color:#27463a}.sg-intro .sg-count{display:block;color:#315346;font-weight:700;margin:1.1rem 0 .2rem}.sg-intro .sg-push{margin-top:.8rem;width:100%}.sg-menu{display:grid;gap:.3rem}.sg-menu button{display:flex;align-items:center;gap:.7rem;font:inherit;background:white;color:inherit;padding:.7rem 1rem;border:1px solid #d9ded6;border-radius:.65rem;cursor:pointer}
.sg-read{width:min(100%,80rem);height:min(100dvh,56rem);background:#18221c;color:white}.sg-read .sg-bar{background:#24362b;color:white}.sg-read .sg-bar h2,.sg-read .sg-bar .sg-btn{color:white}.sg-read .sg-body{padding:.5rem;display:flex;flex-direction:column;align-items:center;gap:.4rem}.sg-read .sg-stage{position:relative;width:min(100%,calc(65dvh * 16 / 9));aspect-ratio:16/9;margin:auto;background:#101812;overflow:hidden;border-radius:.6rem}.sg-read[data-layout=portrait] .sg-stage{width:min(100%,calc(65dvh * 3 / 4));aspect-ratio:3/4}
.sg-stage>img{width:100%;height:100%;object-fit:contain}.sg-stage>.sg-face{position:absolute;width:19%;max-height:30%;right:3%;top:3%;object-fit:cover;border-radius:50%}.sg-read .sg-caption{font-size:clamp(1rem,3vmin,1.55rem);max-height:20dvh;overflow:auto;white-space:pre-line;text-align:center}.sg-reader-controls{display:flex;align-items:center;justify-content:center;gap:.5rem;flex-wrap:wrap}.sg-read .sg-btn{color:white}.sg-read .sg-status{color:#ebecdc}
.sg-art{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.sg-art[data-active=true]{pointer-events:auto;touch-action:none}.sg-tools{position:absolute;z-index:4;inset:.35rem auto auto .35rem;align-items:flex-start;flex-direction:column}.sg-tools button{display:grid;place-items:center;background:#263a36bd;color:#fff;min-width:36px;min-height:36px;padding:.25rem;border:1px solid #ffffff60}.sg-palette{position:absolute;z-index:5;top:.35rem;left:3.2rem;right:3rem;display:flex;flex-wrap:wrap;gap:.25rem}.sg-palette button{cursor:pointer;border-radius:100%;width:32px;height:32px;padding:0;border:2px solid white;color:#2e4136;font:bold 1rem Georgia;background:#fff0b6}.sg-palette button[aria-pressed=true]{outline:2px solid #27483a}
@media(max-width:650px){.sg-dialog:not(.sg-intro){width:100%;height:100dvh;border-radius:0}.sg-ready .is-shelf .book-grid .book-card h3{font-size:1rem}.sg-dialog.sg-intro{max-width:calc(100% - 1.2rem)}}
#export-progress:not(.hide):not([hidden]){position:sticky;top:.25rem;z-index:15;background:#fffdf8;box-shadow:0 .15rem .65rem #1f382825}
.sg-ready .scene-text .text-label{display:flex;justify-content:space-between;align-items:center}
.sg-ready .scene-text [data-action="edit-text"]{margin-inline-start:auto}
.sg-art{z-index:1}.sg-tools{z-index:6}.sg-palette{z-index:7}
