.storyBookStudio{--book:#e4d5f2;--book-deep:#9e82b8;max-width:1280px;margin:auto;min-width:0;color:#392d48}.storyBookStudio .lilac,.sbShelfBook.lilac{--book:#e4d5f2;--book-deep:#9e82b8}.storyBookStudio .sky,.sbShelfBook.sky{--book:#d6eaf2;--book-deep:#7fa7bd}.storyBookStudio .peach,.sbShelfBook.peach{--book:#f5ddcd;--book-deep:#cb9e88}.storyBookStudio .mint,.sbShelfBook.mint{--book:#dcebdc;--book-deep:#8eaf99}.sbTag{font-size:11px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#7a608f}.sbWelcome{display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:30px;padding:38px;background:linear-gradient(130deg,#fff4e2,#f2e9f9 60%,#e3eff6);border:1px solid #e1d6e8;border-radius:32px;margin:20px 0 30px;box-shadow:0 14px 35px #8d71a412}.sbWelcome h2{font-size:clamp(32px,4vw,54px);line-height:1.12;margin:15px 0}.sbWelcome p{font-size:19px;line-height:1.6}.sbWelcomeArt{text-align:center;min-width:0}.sbOpenBook{display:grid;grid-template-columns:1fr 1fr;transform:rotate(-4deg);border-radius:12px;box-shadow:0 12px 0 #c9b8d8,0 20px 28px #735d9320;border:1px solid #d7c5e3;margin:20px 0 28px}.sbOpenBook>span{min-height:220px;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:20px;background:#fffaf0;gap:20px}.sbOpenBook>span:first-child{border-radius:12px 0 0 12px;box-shadow:inset -12px 0 18px #8d6ca317}.sbOpenBook>span+span{border-radius:0 12px 12px 0;box-shadow:inset 10px 0 18px #8d6ca312}.sbOpenBook b{font-size:clamp(15px,2vw,22px);font-family:Georgia,serif;font-style:italic;line-height:1.5;color:#7d638d}.sbOpenBook i{font-size:38px;color:#c9a460}.sbOpenBook img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:60px}.sbWelcomeArt>small{font-size:10px;letter-spacing:.2em;color:#846995;font-weight:800}.sbStarters,.sbShelf{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:20px 0 30px}.sbStarters button{display:flex;flex-direction:column;gap:12px;background:#fff;border:1px solid #e1d6ea;border-radius:22px;padding:24px;text-align:left;box-shadow:0 6px 0 #e9e0ef}.sbStarters button>span{font-size:36px}.sbStarters strong{font-size:21px}.sbStarters small{font-size:14px;color:#786a83;line-height:1.5}.sbShelfBook{display:flex;flex-direction:column;gap:14px;min-height:300px;border:1px solid var(--book-deep);border-left:12px solid var(--book-deep);border-radius:8px 20px 20px 8px;padding:24px;text-align:center;background:linear-gradient(120deg,var(--book),#fff7ee);box-shadow:5px 8px 0 #e5dce9}.sbShelfBook strong{font-size:24px;overflow-wrap:anywhere}.sbShelfBook img{width:100%;height:150px;object-fit:contain;border-radius:12px}.sbShelfBook span{font-size:14px}.sbShelfBook small{font-size:12px;color:#796487}.storyBookStudio button{touch-action:manipulation}.storyBookStudio label{display:block;font-size:14px;font-weight:700;margin:15px 0}.storyBookStudio input,.storyBookStudio select,.storyBookStudio textarea{font:inherit;display:block;width:100%;max-width:100%;min-height:48px;padding:12px;color:#392d48;border:1px solid #dbcee6;border-radius:12px;background:#fff;margin-top:7px}.storyBookStudio textarea{min-height:95px;line-height:1.6;resize:vertical}.storyBookStudio .sbStoryText{min-height:180px;font-size:18px}.sbEditorHeading{display:flex;flex-wrap:wrap;gap:14px;align-items:end;margin:20px 0}.sbEditorHeading label{flex:1;min-width:200px;margin:0}.sbEditorHeading input{font-size:25px;font-weight:800}.sbRecipe{display:flex;flex-wrap:wrap;gap:12px;padding:18px;background:#f0e7f7;border-radius:18px;margin:24px 0;font-size:13px}.sbPageRail{display:flex;gap:12px;overflow-x:auto;padding:8px 5px 16px;max-width:100%;overscroll-behavior-x:contain;margin-bottom:16px}.sbPageRail button{flex:0 0 100px;min-width:100px;padding:9px;border-radius:14px;background:#fff;border:1px solid #e1d6e9;display:flex;flex-direction:column;gap:8px;align-items:center}.sbPageRail button[aria-pressed=true]{outline:3px solid #9b79b5}.sbPageRail img,.sbMiniCover{width:80px;height:54px;object-fit:contain;border-radius:7px;background:#f4eef8}.sbMiniCover{display:grid;place-items:center;background:var(--book);font-size:28px}.sbPageRail b{font-size:12px}.sbEditorGrid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(260px,1fr);gap:22px;align-items:start}.sbPagePreview,.sbWritingTools{padding:22px;border-radius:24px;background:#fffdfa;border:1px solid #e5dceb;min-width:0}.sbPagePreview h3,.sbWritingTools h3{margin-top:0}.sbPaper{position:relative;background:#fffdf6;border:1px solid #e5dce8;border-radius:18px;box-shadow:0 8px 18px #88719b10;padding:18px 18px 34px;min-width:0}.sbPicture{position:relative;min-width:0}.sbPicture>img{display:block;width:100%;height:auto;aspect-ratio:8/5;object-fit:contain;border-radius:12px;background:#fffaf3}.sbWords{font-size:clamp(18px,2vw,24px);line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;margin:22px 10px 10px;font-weight:500}.sbWords.empty{color:#ac9eb4;font-size:16px}.sbPageNumber{display:block;text-align:center;font-size:12px;color:#99849f;margin-top:20px}.sbBubble{position:absolute;max-width:43%;max-height:48%;overflow:auto;font-size:clamp(13px,1.4vw,19px);line-height:1.4;white-space:pre-wrap;overflow-wrap:anywhere;padding:12px 15px;border:2px solid #80618e;border-radius:20px;background:#fffffff2;box-shadow:0 4px 0 #b6a0c020;margin:0}.sbBubble.bubble0{left:3%;top:4%}.sbBubble.bubble1{right:3%;bottom:4%}.sbBubble:after{content:'';position:absolute;left:22px;bottom:-10px;border-top:10px solid #80618e;border-left:9px solid transparent}.sbCover{background:linear-gradient(140deg,var(--book),#fff6e6);border:1px solid var(--book-deep);border-left:14px solid var(--book-deep);border-radius:9px 24px 24px 9px;text-align:center;padding:30px 24px;box-shadow:6px 8px 0 #e7dfeb;min-height:430px}.sbCoverEdition{font-size:10px;letter-spacing:.18em;color:#78618d;font-weight:800}.sbCover h2{font-size:clamp(27px,4vw,45px);line-height:1.2;overflow-wrap:anywhere;margin:20px 0}.sbCoverPicture{background:#fff9;border-radius:15px;overflow:hidden;border:2px solid #fff}.sbCoverPicture img{width:100%;max-height:300px;object-fit:contain;display:block}.sbByline{font-size:15px;line-height:1.6;margin:22px 0 0}.sbByline strong{font-size:24px}.sbDedication{font-style:italic;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.7}.sbPageButtons,.sbKeep{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 5px}.sbPageButtons button{font-size:13px}.sbKeep p{font-size:13px;line-height:1.6;flex-basis:100%;margin:4px 0}.sbWritingTools details{background:#f4edf8;border-radius:16px;padding:16px;margin:20px 0}.sbWritingTools summary{font-size:14px;font-weight:800;min-height:32px;cursor:pointer}.sbWritingTools details p{font-size:13px;line-height:1.6}.sbWritingTools details button{font-size:13px;margin:5px 0}.sbSceneOptions{display:grid;grid-template-columns:1fr 1fr;gap:12px}.sbFileLabel{font-weight:600!important}.sbFileLabel input{font-size:12px;font-weight:400;padding:9px;min-height:44px}.sbRecording{padding:18px;border-radius:16px;background:#fff0e2;border:2px solid #d8a78b;margin:15px 0}.sbRecording strong{display:block;line-height:1.6}.sbRecording button{margin:10px 8px 0 0}.sbReadingTop{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;margin-bottom:22px}.sbReadingTop>strong{font-size:18px;overflow-wrap:anywhere}.sbReadingPage{max-width:950px;margin:0 auto}.sbReadingPage .sbPaper{padding:25px 25px 35px}.sbReadingPage .sbPicture>img{max-height:58vh;aspect-ratio:8/5}.sbReadingPage .sbWords{font-size:clamp(20px,2.5vw,30px)}.sbReadControls{display:flex;align-items:center;justify-content:center;gap:16px;flex-wrap:wrap;margin:20px 0}.sbReadControls>span{font-size:14px;color:#8d749c}.sbReadControls button[aria-pressed=true]{box-shadow:inset 0 0 0 2px #9f7aba}.sbReader>#storybookStatus{text-align:center}.sbReader>.sbKeep{justify-content:center}.sbReaderWide{position:fixed!important;inset:0;z-index:150;max-width:none!important;height:100vh;height:100dvh;overflow:auto;background:#f5effa;padding:24px max(24px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left));overscroll-behavior:contain}.sbReaderWide .sbReadingPage{max-width:1000px}.sbReaderWide .sbReadingTop{max-width:1250px;margin:0 auto 20px}#storybookStatus{font-size:14px;line-height:1.6;color:#81648f}.storyBookStudio .learningGameHeader{flex-wrap:wrap}@media(max-width:1100px){.sbEditorGrid{grid-template-columns:1fr}.sbEditorHeading label{flex-basis:100%}}@media(max-width:700px){.sbWelcome{grid-template-columns:1fr;padding:25px}.sbWelcome p{font-size:17px}.sbOpenBook>span{min-height:150px;padding:15px}.sbOpenBook img{max-height:145px}.sbStarters,.sbShelf{grid-template-columns:1fr}.sbStarters button{padding:20px}.sbEditorHeading input{font-size:22px}.sbPagePreview,.sbWritingTools{padding:16px}.sbSceneOptions{grid-template-columns:1fr}.sbBubble{padding:8px 10px;font-size:12px}.sbPaper{padding:12px 12px 25px}.sbWords{margin:15px 5px;font-size:19px}.sbCover{padding:25px 18px;min-height:340px}.sbReadingPage .sbPaper{padding:14px}.sbReadControls{gap:9px}.sbReadControls button{font-size:14px}.sbReaderWide{padding:16px}.sbReadingTop button{font-size:13px}.sbRecipe{gap:8px;font-size:11px}.sbRecipe>span{display:none}.sbShelfBook{min-height:280px}}

@media(max-width:700px){.sbPaper.comic .sbBubble{position:relative;left:auto;right:auto;top:auto;bottom:auto;max-width:100%;max-height:none;overflow:visible;margin:14px 0 0;font-size:15px}.sbPaper.comic .sbBubble:after{display:none}}
