@font-face{font-family:'Playground';src:url('./fonts/Cafe24Ssurround-v2.0.ttf') format('truetype');font-display:swap}@font-face{font-family:'Noto Sans KR';src:url('./fonts/NotoSansKR-VariableFont_wght.ttf') format('truetype');font-weight:100 900;font-display:swap}

.cover-drawing{height:96px;background:url('./sample-cover.png') center/cover;border-radius:8px;font-size:0!important}.cover-drawing span{display:none}
:root{font-family:'Noto Sans KR',sans-serif;color:#343930;background:#f7f4ed;font-synthesis:none;--green:#425d49;--line:#e2e4d9;--muted:#7d8276}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #be9653;outline-offset:4px}a{color:inherit;text-decoration:none}button{border:0;background:none;color:inherit}button,input,select{min-height:44px}input,select{padding:12px;border:1px solid var(--line);border-radius:12px;background:white;max-width:100%}[hidden]{display:none!important}.top{height:94px;padding:0 5%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:20px}.brand{display:flex;gap:12px;align-items:center}.logo{background:var(--green);color:#f8e8b9;border-radius:13px;width:43px;height:46px;text-align:center;font-size:34px;line-height:41px}.brand b{font-size:22px}.brand small{display:block;font-size:10px;font-weight:500;letter-spacing:1.3px;color:var(--muted)}nav{display:flex;gap:26px;align-items:center;font-size:14px}nav button.active{border-bottom:2px solid var(--green);font-weight:700}.local{font-size:10px;letter-spacing:1.5px;border:1px solid #d9ded1;padding:8px 12px;border-radius:99px;color:#7c8372}main{max-width:1200px;margin:auto;padding:0 36px}.hero{display:grid;grid-template-columns:1.3fr 1fr;align-items:center;min-height:400px;padding:40px 0}.eyebrow{font-size:10px;letter-spacing:2px;color:#7f8871;font-weight:700;margin:0 0 22px}h1{font-family:'Noto Serif KR',serif;font-size:39px;line-height:1.65;letter-spacing:-1.6px;margin:0 0 20px;font-weight:600}h1 em{font-style:normal;color:#6b845b}.intro{font-size:14px;color:#7a7c71;line-height:1.9}.pills{display:flex;gap:8px;flex-wrap:wrap;margin-top:24px}.pills span{padding:7px 11px;border:1px solid #e0dfd1;border-radius:30px;font-size:10px;color:#737b68}.book-scene{position:relative;height:330px;display:grid;place-items:center;background:radial-gradient(ellipse,#e5e9d8 0,transparent 65%)}.book-cover{background:#e4e8d0;width:215px;height:286px;border-radius:4px 15px 15px 4px;transform:rotate(9deg);box-shadow:inset 8px 0 6px #bec6a8,7px 8px 0 #e8debf,9px 10px 0 #c9c6ad,15px 20px 35px #445c3426;text-align:center;padding:25px 16px;position:relative;z-index:1}.book-cover>span{font-size:8px;letter-spacing:2px;color:#7d8866}.cover-drawing{font-size:56px;display:flex;justify-content:center;align-items:center;margin:26px 0 12px}.cover-drawing span{font-size:20px;color:#bba657;align-self:start}.book-cover h2{font-family:'Noto Serif KR',serif;font-size:23px;line-height:1.6;margin:0 0 15px}.book-cover small{font-size:8px;color:#7d8866}.spark{position:absolute;color:#bfa66a;font-style:normal}.s1{top:20px;right:65px;font-size:33px}.s2{bottom:24px;left:45px;font-size:30px}.workspace{background:#fffefa;border:1px solid #e4e4d7;border-radius:22px;box-shadow:0 12px 35px #343f2710;overflow:hidden;margin-bottom:16px}.steps{display:grid;grid-template-columns:repeat(4,1fr);border-bottom:1px solid var(--line);padding:0 27px}.steps button{padding:22px 5px;font-size:12px;color:#92958b;text-align:left;border-bottom:3px solid transparent}.steps b{font-size:10px;margin-right:10px;letter-spacing:1px}.steps .current{color:var(--green);border-color:var(--green);font-weight:700}.workspace-body{display:grid;grid-template-columns:minmax(0,1fr) 235px;padding:30px;gap:36px;min-height:390px}#panel h2{font-size:22px;font-family:'Noto Serif KR',serif;letter-spacing:-.5px;margin:0 0 10px}#panel>p{font-size:12px;color:var(--muted);line-height:1.8;margin-bottom:20px}.filters{display:flex;gap:7px;margin-bottom:18px;flex-wrap:wrap}.filters button{border-radius:99px;padding:7px 14px;border:1px solid var(--line);font-size:11px;min-height:34px}.filters .selected{background:var(--green);color:white;border-color:var(--green)}.voice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-height:350px;overflow:auto;padding:2px}.voice-card{border:1px solid var(--line);border-radius:14px;padding:13px;position:relative;background:#fff}.voice-card.selected{border:1.5px solid #627f5c;background:#f2f5ed}.voice-select{width:100%;text-align:left;padding:0;display:flex;gap:9px;align-items:center;min-height:44px}.avatar{width:34px;height:34px;border-radius:50%;background:#ebe5f2;display:grid;place-items:center;font-family:serif;color:#7e6b8b;flex-shrink:0}.male .avatar{background:#e2eadd;color:#667b5b}.voice-card b{font-size:12px;display:block}.voice-card small{font-size:9px;color:var(--muted)}.preview{font-size:10px;background:#f6f5ef;border-radius:8px;width:100%;margin-top:11px;min-height:30px;color:#747d69}.summary{background:#f5f5ed;border-radius:16px;padding:25px 20px;align-self:start}.summary .eyebrow{font-size:8px;margin-bottom:10px}.summary h3{font-family:'Noto Serif KR',serif;font-size:17px;margin:0 0 22px}dl{margin:0}dt{font-size:10px;color:#929686;margin:16px 0 5px}dd{font-size:12px;margin:0;line-height:1.7}.summary-note{border-top:1px solid #e0e3d6;margin-top:25px;padding-top:20px;font-size:11px;color:#848c77;line-height:1.9}.connection{font-size:10px;color:#708165;line-height:1.8}.step-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding:18px 30px;gap:15px}.step-footer>span{font-size:10px;color:#8b907f}.primary{background:var(--green);color:#fff;padding:13px 24px;border-radius:11px;font-size:12px;font-weight:600}.secondary{border:1px solid var(--line);padding:10px 18px;border-radius:10px;font-size:12px}.notice{font-size:12px;color:#9a5842;min-height:24px;text-align:center;line-height:1.8}.choice-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.choice{border:1px solid var(--line);border-radius:15px;padding:20px 12px;text-align:left;background:white;min-height:95px}.choice.selected{background:#edf2e6;border-color:#769269}.choice strong{display:block;font-size:13px;margin:10px 0 5px}.choice span{font-size:25px}.choice small{font-size:10px;color:#7b826e;line-height:1.6}.field-row{display:flex;gap:12px;margin-top:22px;flex-wrap:wrap}.field-row label{font-size:11px;display:flex;flex-direction:column;gap:8px;flex:1;min-width:120px}.custom-row{display:flex;gap:8px;margin:18px 0}.custom-row input{flex:1;min-width:0;font-size:12px}.review-box{padding:20px;background:#f7f5ef;border-radius:14px;font-size:13px;line-height:2}.review-box b{color:var(--green)}.site-footer{padding:36px;text-align:center;font-size:9px;letter-spacing:2px;color:#939887}.site-footer span{display:block;letter-spacing:0;margin-top:10px;font-size:10px}#library,#draft{padding-top:50px;min-height:70vh}#shelves{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:30px 0}.shelf{border:1px solid var(--line);background:white;border-radius:16px;padding:22px;text-align:left}.shelf img{width:100%;aspect-ratio:1.5;object-fit:cover;border-radius:10px}.shelf h3{font-family:'Noto Serif KR',serif}.shelf small{color:#89917b}#draftPages{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:28px 0}#draftPages article{padding:24px;border:1px solid var(--line);border-radius:14px;background:#fffefa}#draftPages article small{color:#809071}#draftPages article p{font-size:13px;line-height:2;white-space:pre-wrap}.draft-actions{position:sticky;bottom:0;background:#f7f4edf5;padding:20px 0;display:flex;justify-content:space-between;align-items:center;gap:20px}.draft-actions p{font-size:12px;line-height:1.8;color:#7e8474}.progress-card{text-align:center;padding:80px 20px}.progress-card h1{font-size:30px}.spinner{border:3px solid #e4e8da;border-top-color:#6e8961;border-radius:50%;height:45px;width:45px;margin:0 auto 35px;animation:spin 1.2s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}progress{width:min(450px,100%);height:10px;accent-color:#72865e}.muted{color:#929886;font-size:12px;line-height:1.9}#reader{background:#f4efdf;min-height:100vh;padding:0 3%}#reader header{display:flex;justify-content:space-between;align-items:center;height:70px;gap:15px;font-size:12px}.spread{display:grid;grid-template-columns:1.15fr 1fr;background:#fffaf0;border-radius:6px;box-shadow:0 10px 40px #564e2320;max-width:1400px;margin:auto;min-height:65vh;overflow:hidden}.illustration{position:relative;display:grid;place-items:center;background:#e5e8d4}.illustration img{width:100%;height:100%;max-height:75vh;object-fit:contain}.illustration span{position:absolute;bottom:15px;left:20px;background:#ffffffe0;padding:5px 12px;border-radius:20px;font-size:11px}.reading{padding:38px;display:flex;align-items:center;box-shadow:inset 12px 0 25px #70613d0b}.reading p{font-family:'Noto Serif KR',serif;line-height:2.2;font-size:clamp(16px,1.45vw,23px);white-space:pre-wrap;margin:0}#reader footer{display:flex;align-items:center;justify-content:center;gap:20px;padding:24px}#reader footer button{border:1px solid #d9d3bd;border-radius:50%;width:46px;height:46px;font-size:20px}#reader label{font-size:12px;display:flex;align-items:center;gap:8px}#reader audio{width:min(420px,50vw)}#conversation{text-align:center;padding:25px;background:#e8eddd;border-radius:15px;max-width:1000px;margin:0 auto 30px;line-height:1.9}#conversation h3{font-family:'Noto Serif KR',serif}body.reading-mode>.top,body.reading-mode>.site-footer{display:none}@media(max-width:800px){.top{height:75px;padding:0 20px}.local{display:none}nav{gap:13px;font-size:11px}nav>a{display:none}main{padding:0 20px}.hero{grid-template-columns:1fr .75fr;min-height:340px;gap:8px}h1{font-size:29px}.eyebrow{font-size:8px;letter-spacing:1.4px}.intro{font-size:12px}.book-cover{transform:rotate(8deg) scale(.8)}.book-scene{height:290px}.pills{display:none}.workspace-body{grid-template-columns:1fr;padding:22px;gap:18px}.summary{display:none}.voice-grid{grid-template-columns:repeat(3,1fr)}.steps{padding:0 15px}.steps button{font-size:10px}.steps b{display:block;margin-bottom:6px}.step-footer{padding:16px 20px}.step-footer>span{display:none}.spread{grid-template-columns:1fr}.illustration img{max-height:48vh}.reading{padding:24px;min-height:25vh}.reading p{font-size:17px}.draft-actions{flex-direction:column;align-items:stretch}#shelves{grid-template-columns:1fr 1fr}}@media(max-width:480px){.hero{grid-template-columns:1fr;min-height:0;padding:35px 0 28px}.hero h1{font-size:31px}.book-scene{display:none}.voice-grid{grid-template-columns:repeat(2,1fr)}.choice-grid{grid-template-columns:repeat(2,1fr)}.workspace-body{padding:20px 15px}.steps{padding:0 10px}.steps button{font-size:9px}.primary{padding:13px 17px}#draftPages,#shelves{grid-template-columns:1fr}#reader footer{gap:8px;flex-wrap:wrap}#reader audio{width:calc(100% - 120px)}#reader label{width:100%;justify-content:center}#reader header b{max-width:45%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.site-footer{padding:25px 15px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important}}
@media(max-width:480px){#reader header{display:grid;grid-template-columns:1fr auto;gap:0 10px;height:auto;padding:10px 0}#reader header button{white-space:nowrap}#reader header b{grid-column:1;grid-row:2;max-width:100%;font-size:12px}#readingTime{grid-column:2;grid-row:2;font-size:9px}#fullscreen{grid-column:2;grid-row:1}#reader footer #prevPage{order:0}#reader footer audio{order:1}#reader footer #nextPage{order:2}#reader footer label{order:3}}

/* Picturebook playground: app-like icons, illustrated hosts and soft toy colors. */

:root{font-family:'Noto Sans KR',sans-serif;color:#393455;background:#f4f0ff;--green:#7860cb;--line:#e7dff5;--muted:#706780}
body{background:radial-gradient(ellipse at 0 10%,#ffe8ee,transparent 42%),radial-gradient(ellipse at 100% 30%,#def5f5,transparent 45%),#f4f0ff;min-height:100vh}
.top{height:96px;border:0;max-width:1440px;margin:auto;padding:0 4%}.brand{gap:10px}.logo{background:#fff3ce;box-shadow:0 5px 0 #e4d7b9;width:53px;height:53px;border-radius:18px;font-size:32px;line-height:53px}.brand b{font-family:'Playground',sans-serif;font-size:28px;font-weight:400}.brand small{font-family:'Noto Sans KR',sans-serif;font-size:10px;letter-spacing:0;margin-top:4px}nav{background:#ffffff9c;padding:6px;border:2px solid white;border-radius:25px;gap:4px;box-shadow:0 5px 20px #8570aa0b}nav button,nav a{padding:10px 20px;border-radius:18px;font-weight:700;font-size:13px}nav button.active{background:#8972d8;color:white;border:0;box-shadow:0 3px 0 #6851b1}.local{border:0;background:none;color:#77638e;font-size:12px;letter-spacing:0}
main{max-width:1240px;padding:0 32px}.hero{min-height:315px;grid-template-columns:1.2fr 1fr;padding:20px 28px 30px}.eyebrow{letter-spacing:1px;color:#8467b2;font-size:12px;margin-bottom:12px}h1,h2,h3{font-family:'Playground','Noto Sans KR',sans-serif!important;font-weight:400!important}h1{font-size:49px;line-height:1.25;letter-spacing:-1px;margin-bottom:15px}h1 em{color:#9671d3}.intro{font-size:14px;color:#776d89;line-height:1.8}.pills{margin-top:15px;gap:8px}.pills span{border:0;background:#ffffffa8;font-size:11px;color:#6d5e83;padding:9px 12px}.book-scene{height:295px;background:radial-gradient(ellipse,#e2d9fc,transparent 68%)}.book-cover{width:190px;height:242px;padding:14px;background:#ffefb7;transform:rotate(8deg);border-radius:7px 20px 20px 7px;box-shadow:inset 7px 0 0 #efd68f,5px 6px 0 #fff7db,8px 9px 0 #deca9e,16px 20px 30px #70569425}.book-cover>span{font-size:10px;color:#846b41;letter-spacing:0}.cover-drawing{height:106px;margin:12px 0 9px;border:3px solid #fff8df}.book-cover h2{font-size:22px;line-height:1.2;margin:0 0 8px;color:#765637}.book-cover small{color:#8a734f}.floating-sticker{position:absolute;font-size:53px;filter:drop-shadow(0 5px 0 #ffffffb5)}.sticker-star{left:14%;top:24px;transform:rotate(-16deg)}.sticker-rocket{right:7%;top:35px;transform:rotate(20deg)}.sticker-rainbow{left:8%;bottom:34px;font-size:61px}.bubble{position:absolute;bottom:0;right:4%;z-index:2;border:3px solid white;background:#ece5ff;padding:11px 16px;border-radius:20px;font-size:12px;transform:rotate(-4deg);box-shadow:0 5px 15px #7860ab15}
.workspace{border:3px solid white;background:#ffffffb8;border-radius:32px;box-shadow:0 14px 40px #8777ad13;overflow:visible}.steps{padding:22px 26px;gap:14px;border-bottom:2px dashed #e9e0f3}.steps button{display:flex;gap:13px;align-items:center;padding:14px;border:2px solid transparent;border-radius:21px;color:#79718a;text-align:left;transition:transform .18s,background .18s}.steps button:hover{transform:translateY(-3px);background:#f5f0fc}.steps b{display:grid;place-items:center;width:52px;height:52px;margin:0;border-radius:17px;background:#e8e2fc;font-size:29px;flex-shrink:0;box-shadow:0 4px 0 #d8cef1}.steps button:nth-child(2) b{background:#d8f1e7;box-shadow:0 4px 0 #c1e3d6}.steps button:nth-child(3) b{background:#ffe2e8;box-shadow:0 4px 0 #f3cbd4}.steps button:nth-child(4) b{background:#fff0c4;box-shadow:0 4px 0 #ecdfaf}.steps span{font-family:'Playground',sans-serif;font-size:18px}.steps small{display:block;font-family:'Noto Sans KR',sans-serif;font-size:10px;font-weight:400;margin-top:7px}.steps .current{background:#f0eaff;border:2px solid #d6c7f4;color:#6c50ae}.workspace-body{grid-template-columns:minmax(0,1fr) 230px;gap:28px;padding:30px}.workspace-body #panel h2{font-size:28px;color:#493b65}#panel>p{font-size:13px;margin-top:10px}#panel>p small{font-size:11px;color:#81738f}.filters button{font-size:12px;min-height:40px;background:white;padding:8px 18px;border:1px solid #e9e2f2}.filters .selected{background:#8972d8;border-color:#8972d8}.voice-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;max-height:550px;padding:4px 6px 12px}.voice-card{padding:12px 9px 10px;border:2px solid #ece5f4;border-radius:23px;background:#fff;transition:transform .18s,box-shadow .18s;box-shadow:0 4px 0 #ede7f5}.voice-card:hover{transform:translateY(-4px);box-shadow:0 8px 15px #8d77b321}.voice-card.selected{border:2px solid #9a7ad8;background:#f6f1ff;box-shadow:0 4px 0 #bba4e7}.voice-select{display:flex;flex-direction:column;text-align:center;gap:8px;position:relative}.voice-card.selected .voice-select:after{content:'✓';position:absolute;right:0;top:0;border-radius:50%;background:#8b6dcb;color:white;font-size:13px;width:23px;height:23px;display:grid;place-items:center}.avatar,.male .avatar{width:90px;height:90px;border-radius:30px;background:#fff0d9;overflow:hidden}.avatar svg{width:100%;height:100%}.voice-card:nth-child(4n+2) .avatar{background:#e9e2ff}.voice-card:nth-child(4n+3) .avatar{background:#dff3ef}.voice-card:nth-child(4n+4) .avatar{background:#ffe5ec}.voice-card b{font-family:'Playground',sans-serif;font-size:17px;font-weight:400}.provider-name{display:block;font-size:10px;color:#7a6d8c;margin:3px 0}.voice-card small{font-size:9px}.preview{background:#f0eafa;color:#7054aa;font-size:12px;min-height:38px;margin-top:12px;border-radius:12px}.preview:hover{background:#e6dcf8}.summary{background:#fff8e4;border:2px solid #fff;border-radius:22px;padding:23px 20px;transform:rotate(1deg);box-shadow:0 5px 0 #efe2bf;position:sticky;top:20px}.summary:before{content:'🎒';display:block;font-size:43px;text-align:center;margin-bottom:12px}.summary .eyebrow{display:none}.summary h3{font-size:23px;text-align:center;color:#866448}.summary dt{font-size:10px;color:#917b66}.summary dd{font-size:12px;color:#66553f}.summary-note{border-color:#eadfbf;color:#90795b;font-size:11px}.connection{font-size:10px;color:#6d7f55}.step-footer{border-top:2px dashed #e9e0f3;padding:22px 30px}.primary{background:#8b6cd1;border-radius:17px;box-shadow:0 4px 0 #6950a2;font-size:15px;padding:15px 25px;transition:transform .15s}.primary:hover{background:#7d5dc4;transform:translateY(-2px)}.primary:active{transform:translateY(2px);box-shadow:0 1px 0 #6950a2}.secondary{background:white;border:2px solid #e7dff2;border-radius:15px;font-size:13px}.choice-grid{gap:16px}.choice{border:2px solid #e9e2f2;border-radius:24px;text-align:center;min-height:145px;box-shadow:0 4px 0 #ece6f3;transition:transform .18s;position:relative}.choice:hover{transform:translateY(-4px)}.choice>span{display:inline-grid;place-items:center;width:70px;height:70px;border-radius:23px;background:#f2eaff;font-size:43px}.choice:nth-child(3n+2)>span{background:#dff5eb}.choice:nth-child(3n)>span{background:#fff0d7}.choice strong{font-family:'Playground',sans-serif;font-size:19px;font-weight:400}.choice small{font-size:11px}.choice.selected{background:#f4efff;border-color:#a38bce}.choice.selected:after{content:'✓';position:absolute;right:12px;top:10px;color:#8964bf;font-weight:bold}.field-row{background:#f6f0fc;padding:18px;border-radius:18px}.field-row label{font-size:12px}.review-box{background:#fff8df;border:2px dashed #e8d79b;border-radius:22px;font-size:15px;line-height:2.2;padding:25px}.review-box b{color:#8765bc}.notice{background:#fff5eb;border-radius:12px}.notice:empty{background:none}.site-footer{color:#9380ae;letter-spacing:1px}.shelf{border:3px solid white;border-radius:26px;background:#fffbef;box-shadow:0 6px 0 #ded4ed;transition:transform .18s}.shelf:hover{transform:rotate(-2deg) translateY(-5px)}.shelf h3{font-size:23px}.shelf img{border-radius:16px}#draftPages article{background:#fffdf6;border:2px solid white;border-radius:22px}.draft-actions{background:#f3edfcf5;border-radius:20px;padding:20px}.progress-card{background:#ffffffb8;border:3px solid white;border-radius:30px;margin:30px 0}.spinner{border:0;animation:float 2s ease-in-out infinite;width:80px;height:80px}.spinner:after{content:'🎨';font-size:65px}@keyframes float{50%{transform:translateY(-10px) rotate(10deg)}}progress{accent-color:#9b79d5;height:16px}#reader{background:#f5efff}#reader header button{background:white;border-radius:14px;padding:8px 14px}.spread{border:5px solid #fff;border-radius:24px;background:#fffdf4}.reading p{font-family:'Noto Sans KR',sans-serif;font-size:20px;line-height:2.2}#reader footer button{background:white;border:2px solid #dcd0ee;color:#805cac}#conversation{background:#e8ddf9}
@media(min-width:1000px){.voice-grid{scrollbar-width:thin;scrollbar-color:#d3c2ec transparent}}
@media(max-width:1000px){.top{padding:0 24px}.local{display:none}.steps{gap:7px;padding:18px}.steps button{gap:8px;padding:10px}.steps span{font-size:15px}.steps b{width:44px;height:44px;font-size:25px}.steps small{font-size:9px}.workspace-body{grid-template-columns:1fr 190px;gap:20px;padding:24px}.voice-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.summary{padding:18px 14px}}
@media(max-width:800px){.top{height:85px}.brand small{font-size:8px}nav button,nav a{padding:9px 12px;font-size:12px}.hero{padding:25px 8px;min-height:300px}h1{font-size:40px}.book-scene{height:265px}.sticker-star{left:0}.sticker-rocket{right:0}.sticker-rainbow{left:0;font-size:45px}.bubble{font-size:9px;right:0;bottom:8px}.workspace-body{grid-template-columns:1fr}.summary{display:none}.voice-grid{grid-template-columns:repeat(4,minmax(0,1fr));max-height:none}.steps button{flex-direction:column;text-align:center;gap:10px}.steps small{display:none}.spread{grid-template-columns:1fr}.reading p{font-size:18px}.reading{padding:25px}}
@media(max-width:480px){main{padding:0 14px}.top{padding:0 16px;height:80px;gap:10px}.brand b{font-size:23px}.brand small{display:none}.logo{width:40px;height:40px;font-size:25px;line-height:40px;border-radius:13px}nav{padding:4px;gap:0;border-radius:19px}nav button{padding:8px 10px;font-size:11px;border-radius:14px}.hero{grid-template-columns:1fr .7fr;gap:0;padding:22px 6px;min-height:235px}.hero h1{font-size:34px}.eyebrow{font-size:10px;letter-spacing:0}.intro{font-size:11px}.pills{display:none}.book-scene{display:grid;height:210px}.book-cover{transform:rotate(9deg) scale(.57);position:absolute}.floating-sticker{font-size:28px}.sticker-star{top:6px;left:5px}.sticker-rocket{top:20px;right:-3px;font-size:29px}.sticker-rainbow{bottom:12px;left:-7px;font-size:35px}.bubble{display:none}.workspace{border-radius:24px}.steps{padding:15px 8px;gap:3px}.steps button{padding:7px 2px;border-radius:16px;min-width:0}.steps b{width:43px;height:43px;font-size:26px;border-radius:14px}.steps span{font-size:12px}.workspace-body{padding:22px 13px}.workspace-body #panel h2{font-size:24px}#panel>p{font-size:12px}#panel>p small{font-size:10px}.voice-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;max-height:620px}.avatar,.male .avatar{width:100px;height:100px}.voice-card{padding:14px 10px}.voice-card b{font-size:19px}.voice-card small{font-size:10px}.preview{min-height:44px}.filters{gap:6px}.filters button{padding:7px 14px}.step-footer{padding:18px 14px}.primary{font-size:13px;padding:14px 18px}.choice-grid{gap:12px}.choice{padding:18px 8px;min-height:140px}.choice strong{font-size:17px}.choice small{font-size:10px}.review-box{font-size:13px;padding:18px}#reader header{gap:4px 8px}#reader header button{padding:7px 10px}#reader header b{padding:6px;font-size:12px}#readingTime{padding:6px;font-size:9px}.reading p{font-size:17px}.reading{padding:21px}.spread{border-radius:19px}.draft-actions{padding:15px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}



/* One question per screen for a child-led tablet flow. */
.child-studio{max-width:1180px;padding-top:25px}.child-studio .workspace{overflow:visible}.child-studio .workspace-body{display:block;padding:32px}.child-studio #panel h2{text-align:center;font-size:34px}.child-studio #panel>p{text-align:center}.child-studio .voice-grid{grid-template-columns:repeat(5,minmax(0,1fr));max-height:none;overflow:visible;gap:18px;margin-top:28px}.child-studio .voice-card{padding:18px 12px 12px}.child-studio .avatar{width:112px;height:112px}.child-studio .preview{min-height:44px}.child-studio .step-footer{position:sticky;bottom:12px;z-index:5;background:#faf7ffed;backdrop-filter:blur(12px);border:2px solid white;border-radius:22px;box-shadow:0 5px 25px #8871b02b;margin:0 15px 15px}.child-studio .step-footer>span{display:block;font-size:12px;color:#79678c}.host-note{font-size:10px!important;color:#84798e!important}.child-studio #notice:not(:empty){position:sticky;bottom:100px;z-index:6;padding:14px;background:#fff0ce;box-shadow:0 3px 12px #8a729e22}.child-studio .choice-grid{grid-template-columns:repeat(5,minmax(0,1fr));max-height:480px;overflow:auto;padding:5px 8px 12px;scrollbar-width:thin}.child-studio .choice{min-height:135px}.child-studio .choice>span{width:62px;height:62px;font-size:38px}.child-studio .choice strong{font-size:17px}#chosenFriends{display:flex;align-items:center;flex-wrap:wrap;gap:9px;padding:16px;margin:20px 0;background:#f1ebfb;border-radius:18px;min-height:64px}#chosenFriends strong{font-size:13px;color:#7c659c;margin-right:10px}#chosenFriends button{background:white;border-radius:14px;padding:8px 14px;border:1px solid #dfd0f1;font-size:13px}.character-tools{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin-bottom:15px}.character-tools input{min-width:180px;flex:1}.character-tools .filters{margin:0}.story-pad{max-width:850px;margin:26px auto;background:#fffaf0;border:2px solid #eee0c4;border-radius:24px;padding:26px}.story-pad>label{display:block;font-family:'Playground',sans-serif;color:#9a794e;font-size:23px;margin-bottom:15px}.story-pad textarea{display:block;width:100%;min-height:225px;resize:vertical;border:0;border-radius:15px;padding:20px;background:#fffdf7;color:#55465d;font:17px/1.9 'Noto Sans KR',sans-serif;box-sizing:border-box}.story-pad textarea:focus-visible{outline:3px solid #ad91d5}.story-pad textarea::placeholder{color:#a69c8d}.record-row{display:flex;align-items:center;gap:16px;margin:18px 0 10px}.record-row button{background:#efe4ff;border-color:#decef3;font-size:16px;min-height:52px;flex-shrink:0}.record-row span{font-size:12px;line-height:1.7}.story-pad>small{font-size:10px;color:#9a8a72}.idea-seeds{max-width:850px;margin:0 auto 20px}.idea-seeds p{font-size:14px;color:#82708f}.idea-seeds button{padding:11px 16px;border:1px solid #e6dcf3;border-radius:15px;margin:0 7px 9px 0;background:#fff;font-size:13px}.idea-seeds button:hover{background:#f0e8fd}.advanced{max-width:850px;margin:20px auto;background:#f3eef9;border-radius:16px;padding:17px 20px;font-size:12px}.advanced summary{cursor:pointer;min-height:30px;display:list-item;padding:5px;font-size:13px}.advanced p{color:#7f6d8b}.advanced small{color:#8b7c96}.creation-note{font-size:12px!important;line-height:1.9}.child-studio .provider-name{font-size:9px}.child-studio .voice-card b{font-size:19px}
@media(max-width:1000px){.child-studio .voice-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.child-studio .choice-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.child-studio .workspace-body{padding:25px}.child-studio .avatar{width:100px;height:100px}}
@media(max-width:700px){.child-studio .voice-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.child-studio .choice-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.child-studio #panel h2{font-size:28px}.child-studio .avatar{width:90px;height:90px}.child-studio .voice-card b{font-size:17px}.child-studio .workspace-body{padding:24px 15px}.character-tools{gap:12px}.character-tools .filters{width:100%}.record-row{flex-direction:column;align-items:stretch;gap:10px}.story-pad{padding:18px}.story-pad textarea{padding:14px;font-size:16px}}
@media(max-width:480px){.child-studio{padding-top:12px}.child-studio .voice-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:22px;gap:13px}.child-studio .avatar{width:106px;height:106px}.child-studio #panel h2{font-size:25px}.child-studio .choice-grid{gap:10px;max-height:430px;padding:3px 3px 10px}.child-studio .choice{padding:12px 3px;min-height:112px;border-radius:18px}.child-studio .choice>span{width:48px;height:48px;font-size:30px;border-radius:16px}.child-studio .choice strong{font-size:13px}.child-studio .step-footer{bottom:7px;margin:0 7px 7px;padding:14px 10px;gap:10px}.child-studio .step-footer>span{display:none}.child-studio .voice-card{padding:13px 7px}.child-studio .voice-card b{font-size:18px}.child-studio .provider-name{font-size:9px}#chosenFriends{padding:12px;gap:6px}#chosenFriends strong{width:100%;font-size:12px}#chosenFriends button{font-size:12px;padding:7px 10px}.story-pad{padding:14px;border-radius:18px}.idea-seeds button{font-size:12px;padding:10px 12px}.character-tools .filters{gap:5px}.character-tools .filters button{padding:8px 12px;font-size:11px}}
/* Character identity comes from the picture, with text only as a secondary label. */
.child-studio .choice-grid{max-height:550px;grid-template-columns:repeat(5,minmax(0,1fr))}.child-studio .picture-choice{padding:10px 8px 12px;min-height:184px;background:#fff;overflow:hidden}.child-studio .picture-choice>.friend-picture{display:block;width:100%;height:auto;aspect-ratio:1;border-radius:16px;background-color:#fff;background-image:none;overflow:hidden}.friend-picture img{display:block;width:100%;height:100%;object-fit:contain}.child-studio .picture-choice>.atlas-friend{background-image:url('./friends-atlas.png');background-size:500% 500%;background-color:#fbf9ef}.custom-friend svg{width:100%;height:100%}.child-studio .picture-choice strong{font-family:'Noto Sans KR',sans-serif;font-size:14px;font-weight:700!important;margin:10px 0 0}.child-studio .picture-choice.selected{background:#eee4ff;border-color:#9871d2;box-shadow:0 4px 0 #c5afe6}.child-studio .picture-choice.selected:after{content:'✓';width:28px;height:28px;background:#8b65c4;color:#fff;border:3px solid white;border-radius:50%;display:grid;place-items:center;top:7px;right:7px;font-size:17px}.child-studio .picture-choice:hover{transform:translateY(-3px)}#chosenFriends{position:sticky;top:8px;z-index:2;background:#f0e9fcf5;backdrop-filter:blur(10px);border:2px solid white}#chosenFriends button{display:flex;align-items:center;gap:7px;padding:5px 9px}#chosenFriends .friend-picture{width:44px;height:44px;flex-shrink:0;display:block;overflow:hidden;border-radius:10px;background-color:white}#chosenFriends .atlas-friend{background-image:url('./friends-atlas.png');background-size:500% 500%}#chosenFriends .friend-picture img{object-fit:contain}
@media(max-width:1000px){.child-studio .choice-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:700px){.child-studio .choice-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.child-studio .picture-choice{min-height:150px}.child-studio .picture-choice strong{font-size:13px}}
@media(max-width:480px){.child-studio .choice-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-height:440px;gap:9px}.child-studio .picture-choice{padding:6px 5px 10px;min-height:125px;border-radius:17px}.child-studio .picture-choice strong{font-size:12px;margin-top:7px}.child-studio .picture-choice.selected:after{width:22px;height:22px;font-size:13px;right:3px;top:3px;border-width:2px}#chosenFriends button{padding:4px 7px;font-size:10px}#chosenFriends .friend-picture{width:35px;height:35px}#chosenFriends{gap:6px;padding:9px}}
#creationLock{border:3px solid #fff;border-radius:34px;padding:54px 40px;text-align:center;width:min(640px,90vw);max-width:90vw;box-sizing:border-box;color:#594577;background:#faf6ff;box-shadow:0 20px 100px #34214b40;outline:none}#creationLock::backdrop{background:#34294391;backdrop-filter:blur(7px)}#creationLock h2{font-size:clamp(25px,4vw,38px);line-height:1.5;margin:20px 0 14px;word-break:keep-all}#creationLock p{font-size:15px;line-height:1.9;color:#847095;word-break:keep-all}.creation-locked{overflow:hidden}.lock-star{font-size:64px;color:#b58adb;animation:lock-pulse 1.5s ease-in-out infinite}.lock-dots{display:flex;justify-content:center;gap:12px;margin-top:27px}.lock-dots i{height:12px;width:12px;border-radius:50%;background:#b795dc;animation:lock-pulse 1.5s ease-in-out infinite}.lock-dots i:nth-child(2){animation-delay:.2s}.lock-dots i:nth-child(3){animation-delay:.4s}@keyframes lock-pulse{50%{transform:scale(.8);opacity:.5}}#draftPages article label{display:block;font-family:'Playground',sans-serif;font-size:20px;color:#8563ad;margin-bottom:12px}#draftPages textarea{width:100%;min-height:235px;resize:vertical;box-sizing:border-box;font:16px/1.9 'Noto Sans KR',sans-serif;color:#493e5a;border:2px solid #e5d9ee;border-radius:15px;background:white;padding:18px}#draftPages textarea:focus{outline:3px solid #cbb0e6;border-color:#a780cf}.page-length{display:block;text-align:right;margin-top:8px;font-size:11px!important}.edit-help{font-size:15px;color:#7c6795}#draftSaveStatus{color:#79529b;min-height:25px;font-size:14px}.draft-actions{flex-wrap:wrap}.draft-actions p{flex:1;min-width:200px}#saveDraft{white-space:nowrap}@media(max-width:480px){#creationLock{padding:35px 20px}#creationLock p{font-size:13px}#draftPages article{padding:18px}#draftPages textarea{font-size:16px;min-height:280px;padding:14px}.draft-actions{position:static}.edit-help{font-size:13px}}
@media(prefers-reduced-motion:reduce){.lock-star,.lock-dots i{animation:none}}
#draftTitle{word-break:keep-all;overflow-wrap:anywhere}

/* Photographic fictional reading teachers and persistent chosen cast. */
.voice-select .avatar{width:136px;height:150px;border-radius:26px;overflow:hidden;background:#f0e8ff;box-shadow:0 5px 14px #58407214}
.avatar img{width:100%;height:100%;object-fit:cover;display:block}
.story-cast{display:flex;justify-content:center;flex-wrap:wrap;gap:20px;margin:18px auto 28px}
.story-cast>div{display:grid;justify-items:center;gap:7px;min-width:100px;padding:10px 14px;background:#ffffffc9;border:2px solid #e7ddfa;border-radius:24px}
.story-cast .friend-picture{width:90px;height:90px}
.story-cast strong{font-size:15px;color:#655084}
@media(max-width:600px){.voice-select .avatar{width:112px;height:126px}.story-cast{gap:8px}.story-cast>div{min-width:72px;padding:8px}.story-cast .friend-picture{width:66px;height:66px}}

.brand .logo{background:transparent;box-shadow:none}.brand .logo img{display:block;width:100%;height:100%}


/* Original dancing picture-book mascot shared by creation and transcription. */
#creationLock{width:min(900px,94vw);max-width:94vw;padding:42px;overflow:hidden;background:linear-gradient(130deg,#fff2dc,#f7eaff 55%,#e5fbff)}
#creationLock h2{font-size:clamp(27px,4vw,44px)}#creationLock #creationLockDetail{font-size:clamp(20px,2.8vw,29px);font-weight:700;color:#695080;line-height:1.6}
.dance-stage{position:relative;width:240px;height:190px;margin:auto}.book-dancer{position:absolute;left:52px;top:22px;width:140px;height:145px;animation:book-hula 1.2s ease-in-out infinite;transform-origin:50% 85%}.dancer-book{position:absolute;inset:10px 0 20px;border:5px solid #7552a4;border-radius:20px 20px 28px 28px;background:linear-gradient(90deg,#fff6cb 49%,#ebcb93 50%,#fffbe3 52%);box-shadow:0 7px 0 #ac82e5;z-index:2}.dancer-eye{position:absolute;top:37px;width:10px;height:15px;background:#53386d;border-radius:50%}.eye-left{left:32px}.eye-right{right:32px}.dancer-cheek{position:absolute;top:56px;width:22px;height:12px;border-radius:50%;background:#ffacbb}.cheek-left{left:17px}.cheek-right{right:17px}.dancer-smile{position:absolute;left:52px;top:54px;width:25px;height:15px;border-bottom:4px solid #74466b;border-radius:50%}.dancer-arm{position:absolute;top:55px;width:49px;height:15px;border-radius:20px;background:#bd91f0;border:3px solid #7552a4;animation:book-wave .6s ease-in-out infinite alternate}.arm-left{left:-34px;transform-origin:right center}.arm-right{right:-34px;transform-origin:left center;animation-delay:-.6s}.dancer-foot{position:absolute;bottom:0;width:31px;height:27px;border-radius:10px 10px 15px 15px;background:#f4b852;border:3px solid #97663d}.foot-left{left:20px}.foot-right{right:20px}.dance-shadow{position:absolute;bottom:7px;left:50px;width:145px;height:15px;border-radius:50%;background:#b7a0cd45}.dance-spark{position:absolute;font-size:35px;color:#e5a32a;animation:book-wave 1.2s ease-in-out infinite alternate}.spark-one{left:0;top:15px}.spark-two{right:0;top:42px;color:#a282d6}
@keyframes book-hula{0%,100%{transform:translateX(-13px) rotate(-9deg)}50%{transform:translateX(13px) rotate(9deg)}}@keyframes book-wave{from{transform:rotate(-25deg)}to{transform:rotate(25deg)}}
@media(max-width:480px){#creationLock{padding:24px 16px}.dance-stage{transform:scale(.8);margin:-15px auto}#creationLock h2{margin-top:12px}}
@media(prefers-reduced-motion:reduce){.book-dancer,.dancer-arm,.dance-spark,.lock-dots i{animation:none}}

.parent-account{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.parent-account button,.parent-account a{font-size:13px;padding:10px;border-radius:14px}#purchaseBook{max-width:min(560px,92vw);border:0;border-radius:28px;padding:32px;color:#403758;background:#fffbf1}#purchaseBook::backdrop{background:#24203999}.book-price{font-size:40px;color:#8061c9}.purchase-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}.purchase-actions button{min-height:52px}#purchaseBook p{line-height:1.8}

.character-policy{padding:16px 20px;margin:0 0 20px;background:#fff8df;border:1px solid #f0dca8;border-radius:20px;text-align:center;color:#6c567c;line-height:1.8;font-size:14px}.character-policy strong{font-size:16px}.picture-choice .dino-facts,.picture-choice .dino-species{display:block;white-space:normal;overflow-wrap:anywhere;line-height:1.6;margin-top:6px;font-size:11px;color:#756687}.picture-choice .dino-species{font-style:italic;font-size:10px}.child-studio .picture-choice strong{overflow-wrap:anywhere}

/* Compact picture-led picker; retain generous touch targets. */
.picking-friends .top{height:76px;min-height:76px}
.picking-friends .child-studio{max-width:1340px;padding:12px 24px 0}
.picking-friends .workspace-body{padding:16px 18px 8px;min-height:0}
.picker-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:8px}
.child-studio #panel .picker-heading h2{font-size:27px;line-height:1.35;margin:0;text-align:left}
.picker-heading small{font-size:11px;line-height:1.6;color:#897996;text-align:right}
.picking-friends #chosenFriends{position:static;min-height:40px;margin:0 0 8px;padding:5px 10px;gap:6px;border-radius:12px}
.picking-friends #chosenFriends strong{width:auto;margin-right:6px;font-size:12px}
.picking-friends #chosenFriends button{min-height:44px;padding:3px 7px}
.picking-friends #chosenFriends .friend-picture{width:30px;height:30px}
.picking-friends .character-tools{margin-bottom:8px;gap:0}
.picking-friends .character-tools .filters{width:100%;gap:5px;flex-wrap:nowrap;overflow-x:auto;padding-bottom:2px}
.picking-friends .character-tools .filters button{flex-shrink:0;min-height:44px;padding:6px 13px;font-size:12px}
.picking-friends .child-studio .choice-grid{grid-template-columns:repeat(8,minmax(0,1fr));gap:9px;padding:3px 5px 10px;max-height:clamp(280px,calc(100dvh - 300px),670px);align-content:start;scroll-padding:8px}
.picking-friends .child-studio .picture-choice{padding:6px;min-height:0;border-radius:16px;box-shadow:0 3px 0 #ddd4ec;text-align:center}
.picking-friends .child-studio .picture-choice>.friend-picture{border-radius:11px}
.picking-friends .child-studio .picture-choice strong{font-size:12px;line-height:1.4;min-height:2.8em;display:grid;align-items:center;margin:4px 0 0}
.picking-friends .picture-choice .dino-facts,.picking-friends .picture-choice .dino-species{display:none}
.picking-friends .child-studio .custom-row{margin:10px 0 4px}
.picking-friends #panel>.host-note{margin:5px 0 0}
.picking-friends .child-studio .step-footer{position:static;margin:0 12px 10px;padding:9px 14px;min-height:64px}
.picking-friends .child-studio .step-footer .primary{min-height:48px}
.picking-friends .notice:empty{display:none}
@media(max-width:1100px){.picking-friends .child-studio .choice-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.picking-friends .child-studio{padding:8px 16px 0}.picking-friends .workspace-body{padding:12px}.child-studio #panel .picker-heading h2{font-size:25px}}
@media(max-width:700px){.picking-friends .top{height:auto;min-height:70px;padding-top:8px;padding-bottom:8px}.picking-friends .child-studio{padding:6px 8px 0}.picking-friends .workspace-body{padding:10px}.picker-heading{gap:10px;align-items:flex-start}.child-studio #panel .picker-heading h2{font-size:21px;max-width:52%}.picker-heading small{font-size:9px;max-width:48%;line-height:1.5}.picking-friends .child-studio .choice-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;max-height:clamp(250px,calc(100dvh - 300px),600px)}.picking-friends .child-studio .picture-choice{padding:4px;border-radius:12px}.picking-friends .child-studio .picture-choice strong{font-size:11px}.picking-friends .child-studio .step-footer{margin:0 7px 8px;padding:8px}.picking-friends .child-studio .step-footer .primary{padding:10px 12px;font-size:12px}}
@media(max-width:370px){.picking-friends .child-studio .choice-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Category tabs share the heading row (A → B). */
.picking-friends .picker-heading{display:grid;grid-template-columns:auto minmax(0,1fr) 210px;gap:12px;align-items:center}
.picking-friends .picker-heading .character-tools{min-width:0;margin:0}
.picking-friends .picker-heading .filters{padding:0;gap:4px}
.picking-friends .picker-heading .filters button{padding:6px 10px;font-size:11px}
.picking-friends .picker-heading small{font-size:10px;max-width:none}
.picking-friends .picker-heading h2{white-space:nowrap}
@media(max-width:1100px){.picking-friends .picker-heading{grid-template-columns:auto minmax(0,1fr);gap:4px 12px}.picking-friends .picker-heading small{grid-column:1/-1;line-height:1.4}.picking-friends .picker-heading small br{display:none}}
@media(max-width:700px){.picking-friends .picker-heading{grid-template-columns:1fr;gap:4px}.picking-friends .picker-heading h2{max-width:none;font-size:22px}.picking-friends .picker-heading .character-tools{grid-row:2}.picking-friends .picker-heading small{grid-row:3;text-align:left;font-size:9px}.picking-friends .picker-heading .filters button{padding:6px 10px}}

/* Large, keyboard-friendly original-character editor. */
#friendDialog{width:min(760px,calc(100vw - 28px));max-height:calc(100dvh - 28px);padding:30px;border:3px solid white;border-radius:30px;background:#fffaf3;color:#524165;box-shadow:0 20px 90px #40305750;overflow:auto}
#friendDialog::backdrop{background:#34274c80;backdrop-filter:blur(4px)}
#friendDialog header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
#friendDialog h2{font-family:'Playground',sans-serif;font-size:30px;margin:8px 0 12px;line-height:1.3}
.friend-dialog-kicker{font-size:12px;color:#9670bd}
#closeFriendDialog{width:48px;height:48px;font-size:30px;border-radius:50%;background:#eee4fb;flex-shrink:0}
#friendDialog p{font-size:14px;line-height:1.7}#friendDialog label{display:block;font-size:17px;font-weight:700;margin:20px 0 9px}
#friendDialog input,#friendDialog textarea{width:100%;border:2px solid #e2d4ef;border-radius:16px;background:white;color:#4a3e60;padding:15px;font:16px/1.7 'Noto Sans KR',sans-serif;box-sizing:border-box}
#friendDialog textarea{min-height:190px;resize:vertical}#friendDialog textarea:focus-visible{outline:3px solid #ab8dd1}
.friend-description-hints{font-size:12px;line-height:1.7;margin:10px 0;color:#8a719f}#friendDialog small{display:block;font-size:11px;line-height:1.7;color:#928299}
#friendDialog footer{display:flex;justify-content:flex-end;gap:12px;margin-top:16px}#friendDialog footer button{min-height:50px;font-size:15px}#friendFormError{color:#a64b49;min-height:22px}
#customFriendList{display:flex;flex-wrap:wrap;gap:7px;margin:7px 0}#customFriendList button{font-size:12px}.custom-row>span{align-self:center;font-size:12px;color:#897996}
.picking-friends .picker-heading{grid-template-columns:auto minmax(0,1fr);gap:6px 12px}
.picking-friends .picker-heading>small{grid-column:1/-1;text-align:right}.picking-friends .picker-heading>small br{display:none}
.picking-friends .picker-heading .character-tools{display:flex;flex-wrap:nowrap;align-items:center;gap:9px}
.picking-friends .picker-heading .filters{width:auto;flex:0 1 auto;min-width:0}
.picking-friends #next{flex:1 0 220px;min-height:68px;padding:16px 24px;font-size:22px;font-weight:800;white-space:nowrap;border-radius:20px;box-shadow:0 5px 0 #6446a0,0 8px 20px #8966cb30}
@media(max-width:1100px){.picking-friends .picker-heading{grid-template-columns:1fr}.picking-friends .picker-heading .character-tools{grid-row:2}.picking-friends .picker-heading>small{grid-row:3}.picking-friends .picker-heading .filters{flex:0 1 auto}}
@media(max-width:600px){#friendDialog{padding:18px;border-radius:22px}#friendDialog h2{font-size:24px}#friendDialog textarea{min-height:160px}.picking-friends #next{flex:1 0 174px;min-height:60px;font-size:17px;padding:12px 14px}.picking-friends .picker-heading .character-tools{gap:6px}.picking-friends .custom-row{flex-wrap:wrap}.picking-friends .picker-heading>small{text-align:left}}

#storyAccess{width:min(620px,calc(100vw - 32px));max-height:90dvh;overflow:auto;border:2px solid #fff;border-radius:30px;padding:30px;text-align:center;background:#fffdf8;color:#43365f;box-sizing:border-box}#storyAccess::backdrop{background:#31244588;backdrop-filter:blur(5px)}#storyAccess h2{font-size:clamp(22px,4vw,30px)}#storyAccess p{line-height:1.7}#storyAccess .story-access-offer{padding:18px;margin:20px 0;border-radius:20px;background:#f1eaff}#storyAccess .story-access-offer strong{font-size:22px}#storyAccess a.primary{display:inline-block;text-decoration:none;padding:16px 24px}#storyAccess [hidden]{display:none!important}#storyAccess .purchase-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}#storyAccess button{min-height:48px}

.parent-account .remaining-books{background:#eee5ff;color:#60419c;border:2px solid #d4c3f7;font-weight:800;padding:12px 16px;min-height:44px;white-space:nowrap}.remaining-books[hidden]{display:none}#storyAccessQuote{font-size:14px}#storyAccessResult{font-weight:700;color:#60419c}
@media(max-width:1100px){.top,.picking-friends .top{height:auto;min-height:94px;flex-wrap:wrap;padding-top:14px;padding-bottom:14px;gap:12px}.top .parent-account{width:100%;justify-content:center}.top .brand,.top nav{flex-shrink:0}}

#readerLoadStatus{position:absolute;z-index:5;left:50%;top:90px;transform:translateX(-50%);max-width:90%;padding:12px 20px;border-radius:18px;background:#fff8e7;box-shadow:0 4px 20px #43365f22;font-weight:700}#readerLoadStatus button{margin-left:10px;color:#6950b0;text-decoration:underline}

/* One editable page at a time; all page values remain mounted for saving. */
#draft{max-width:1000px;padding-bottom:36px}#draft h1{font-size:clamp(26px,4vw,38px);margin:16px 0}
.draft-page-nav{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:20px 0 12px}.draft-page-nav button{min-height:54px;font-size:17px}
#draftPagePicker{display:flex;gap:8px;overflow-x:auto;padding:8px 2px 14px}#draftPagePicker button{flex:0 0 48px;min-height:48px;border-radius:15px;background:#fff;border:2px solid #e0d4f2;color:#594577;font-weight:700}#draftPagePicker button[aria-pressed=true]{background:#8864c7;color:#fff;border-color:#8864c7}
#draftPages{display:block}#draftPages article{padding:24px;background:#fffaf0;border:2px solid #ebdcbf;border-radius:28px;box-shadow:0 6px 0 #e9dfcf}
.draft-card-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}#draftPages article label{margin:0;font-size:24px}.draft-card-heading button{min-height:56px;font-size:18px}.draft-edit-hint{color:#806b53;font-size:15px}
#draftPages textarea{min-height:260px;font-size:24px;line-height:1.8;padding:24px;background:#fff;border:2px solid #d8c5ed;border-radius:20px}#draftPages .page-length{font-size:14px!important}
#draft .draft-actions{position:static;margin-top:24px;border-radius:24px;gap:12px}#draft .draft-actions button{min-height:56px;font-size:17px}#draft .draft-actions p{font-size:13px}
@media(max-width:600px){#draftPages article{padding:16px}#draftPages textarea{font-size:21px;padding:16px;min-height:260px}.draft-card-heading button{width:100%}.draft-page-nav button{font-size:15px;padding:10px}#draft .draft-actions button{width:100%}}
.story-modes{display:grid;grid-template-columns:1fr 1fr;gap:20px;max-width:950px;margin:30px auto}.mode-card{display:grid;gap:16px;padding:30px 20px;border:3px solid #e5dcfa;border-radius:26px;background:#fffdf7;color:#46365f;min-height:190px}.mode-card b{font-size:26px}.mode-card strong{font-size:22px;color:#7651be}.mode-card.selected{border-color:#9271dc;background:#f1eaff;box-shadow:0 5px #d9c9f3}.portrait-guide{max-width:950px;margin:auto;padding:24px;border-radius:24px;background:#fffaf0}.portrait-example{width:100%;border-radius:16px;display:block}.photo-tips{display:grid;grid-template-columns:1fr 1fr;gap:16px}.photo-tips p{background:white;padding:18px;border-radius:16px;text-align:left!important}.photo-upload{display:block;margin:20px 0;font-size:20px;font-weight:bold}.photo-upload input{display:block;max-width:100%;margin:12px 0}.portrait-preview{width:180px;height:180px;object-fit:contain;border-radius:18px}.portrait-guide input[type=checkbox]{width:24px;height:24px;vertical-align:middle}@media(max-width:600px){.story-modes,.photo-tips{grid-template-columns:1fr}.mode-card{min-height:145px;padding:20px}.portrait-guide{padding:16px}}

.choosing-story-mode .step-footer{position:static;margin-top:24px}.choosing-story-mode .notice:empty{display:none}

.portrait-people{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}.portrait-person{background:#fff;border:2px solid #e7dcfb;border-radius:22px;padding:18px;text-align:left;min-width:0}.portrait-person-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}.portrait-person label{display:block;margin-top:12px}.portrait-person input:not([type=file]){width:100%;box-sizing:border-box;padding:13px;border:2px solid #e5dbf8;border-radius:12px;font:inherit}.portrait-person input[type=file]{max-width:100%;font-size:14px}.portrait-person .portrait-preview,.portrait-placeholder{width:120px;height:120px;object-fit:cover;border-radius:22px;margin:16px auto;display:block}.portrait-placeholder{display:grid;place-items:center;background:#f0e9fc;color:#8165b0}.portrait-consent{display:flex;gap:10px;align-items:center}.family-price{padding:18px;border-radius:18px;background:#eee6ff;font-weight:700}.family-price small{font-weight:400}.scene-people{margin-top:16px;border:1px solid #dbc9f8;border-radius:12px}.scene-people label{display:inline-flex;align-items:center;gap:8px;padding:12px}.scene-people input{width:20px;height:20px}@media(max-width:600px){.portrait-people{grid-template-columns:1fr}.portrait-guide{padding:16px}.story-modes{grid-template-columns:1fr}}

/* The primary action stays in the visible viewport, including the first screen. */
.choosing-story-mode .step-footer{position:fixed;bottom:max(8px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(1080px,calc(100vw - 24px));box-sizing:border-box;margin:0;z-index:30;background:#fcfafff5;box-shadow:0 -4px 20px #54437818}
.choosing-story-mode #studio{padding-bottom:130px}.choosing-story-mode .language-choice{padding:6px 8px 16px;margin-bottom:16px}.choosing-story-mode .story-modes{margin:18px auto}.choosing-story-mode .mode-card{min-height:150px;padding:20px}
@media(max-width:600px){.choosing-story-mode .step-footer{gap:8px;padding:12px}.choosing-story-mode #stepHint{display:none}.choosing-story-mode #next{flex:1;min-height:56px}.language-buttons button{flex:1 0 145px;white-space:nowrap}.mode-card b{font-size:22px}.parent-account{gap:6px;flex-wrap:wrap}}

/* Keep the editable story in the first tablet viewport. */
.editing-draft .top{height:72px;min-height:72px;padding-top:8px;padding-bottom:8px;flex-wrap:nowrap}
.editing-draft .top .parent-account{display:none}
#draft{padding-top:12px}
.draft-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
#draft .draft-heading h1{font-size:clamp(23px,3vw,30px);margin:0;line-height:1.3}
.draft-heading button{flex-shrink:0}
#draft .draft-actions{display:flex;flex-direction:row;align-items:center;gap:10px;margin:10px 0 0;padding:10px 12px;border-radius:16px}
#draft .draft-actions button{min-height:48px;font-size:15px;padding:10px 16px;width:auto}
#draft .draft-actions #draftSaveStatus{flex:1;min-width:170px;min-height:0;margin:0;font-size:13px;line-height:1.5}
#draft .draft-actions #draftSaveStatus:empty{display:none}
#draft .draft-page-nav{margin:10px 0;gap:8px}
#draft .draft-page-nav button{min-height:44px;font-size:15px;padding:8px 14px}
#draftPages{margin:0}
#draftPages article{padding:16px;border-radius:20px}
#draft .draft-card-heading{margin-bottom:10px;flex-wrap:nowrap}
#draft .draft-card-heading label{font-size:21px}
#draft .draft-card-heading button{width:auto;min-height:44px;padding:8px 14px;font-size:15px}
#draftPages textarea{min-height:220px;height:clamp(220px,32dvh,340px);font-size:22px;padding:16px}
#draftPagePicker{padding:12px 2px 6px}
#draftMeta{margin:8px 0;font-size:12px;color:#7c6795}
.art-style-choice{border:0;padding:0;margin:24px 0;min-width:0}
.art-style-choice legend{font-size:21px;font-weight:800;margin-bottom:12px}
.art-style-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.art-style-card{position:relative;display:flex;flex-direction:column;gap:8px;padding:10px;border:2px solid #e8dff4;border-radius:16px;background:white;cursor:pointer;color:#514469}
.art-style-card:has(input:checked){border-color:#8059c3;background:#f5efff;box-shadow:0 0 0 1px #8059c3}
.art-style-card:focus-within{outline:3px solid #c4a6f1;outline-offset:3px}
.art-style-card input{position:absolute;top:18px;right:18px;width:20px;height:20px;accent-color:#8059c3;margin:0}
.art-style-sample{display:block;aspect-ratio:1;background:url('./art-style-samples.png') var(--style-position) center/300% 100%;border-radius:10px}
.art-style-card:has(input[value="photoreal-fantasy"]) .art-style-sample{background-image:url('./art-style-photoreal.png');background-size:cover;background-position:center}
@media(max-width:700px){.art-style-options{grid-template-columns:repeat(2,minmax(0,1fr))}}
.art-style-card strong{font-size:17px}.art-style-card>span:last-child{font-size:13px;line-height:1.5}
.art-style-choice>small{display:block;margin-top:10px;font-size:12px;line-height:1.6;color:#7c6795}
@media(max-width:520px){.art-style-options{gap:7px}.art-style-card{padding:6px;gap:6px}.art-style-card strong{font-size:13px}.art-style-card>span:last-child{font-size:11px}.art-style-card input{top:10px;right:10px;width:17px;height:17px}}
.draft-cost{font-size:13px;color:#7c6795;margin:8px 0;line-height:1.7}
.draft-cost summary{cursor:pointer;min-height:44px;display:list-item;padding:10px 0}
#draft button:disabled{transform:none;box-shadow:none}
@media(max-width:600px){#draft{padding:10px 12px 24px}.draft-heading{gap:8px;align-items:flex-start}.draft-heading button{font-size:11px;padding:8px}.editing-draft .top{padding:8px 12px;gap:8px}#draft .draft-actions{padding:10px;gap:8px}#draft .draft-actions button{flex:1;font-size:13px;padding:10px 8px}#draft .draft-actions #draftSaveStatus{flex-basis:100%}#draft .draft-card-heading label{font-size:18px}#draft .draft-card-heading button{font-size:13px;padding:8px}#draftPages article{padding:12px}#draftPages textarea{font-size:20px}}
#lockStage{margin:18px auto 0;max-width:520px}#lockBar{display:block;width:100%;height:14px;appearance:none;-webkit-appearance:none;border:0;border-radius:99px;background:#eadff5;overflow:hidden}#lockBar::-webkit-progress-bar{background:#eadff5;border-radius:99px}#lockBar::-webkit-progress-value{background:linear-gradient(90deg,#c9a4ea,#7c5ac9);border-radius:99px;transition:width .9s linear}#lockBar::-moz-progress-bar{background:#8f69cf;border-radius:99px}#creationLock #lockEta{margin:10px 0 0;font-size:16px;font-weight:700;color:#6d548c}@media(max-width:480px){#creationLock #lockEta{font-size:13px}}
