/* A quiet, consistent shell. Content is the focus; settings use native dialogs. */
:root{--ink:#332d47;--accent:#7959bf;--edge:#e7e0f0;--paper:#fffefa}
body{color:var(--ink);background:linear-gradient(140deg,#faf7fd,#f4f5fb);min-height:100dvh}
button,select,summary{font-family:'Noto Sans KR',sans-serif}
.primary{background:var(--accent);box-shadow:0 3px 0 #5c4196;border-radius:14px}
body>.top,body.picking-friends>.top,body.editing-draft>.top{display:flex;flex-wrap:nowrap;max-width:1400px;min-height:72px;height:72px;padding:10px 24px;gap:20px}
body.reading-mode>.top{display:none}
.top .brand{flex:1;gap:8px}.top .brand b{font-size:25px}.top .brand small{display:none}.top .logo,.top .logo img{width:38px;height:38px}.top .logo{box-shadow:none}
.top>nav{width:auto;padding:3px;gap:4px;border:1px solid #e7e0f0;border-radius:16px;background:#fff}.top>nav button{padding:8px 20px;min-height:44px;font-size:13px;border-radius:12px}.top>nav button.active{background:#eee7fb;color:#60419c;box-shadow:none}
.guardian-open{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 14px;border:1px solid var(--edge);border-radius:12px;background:#fff;color:#655478;font-size:13px;white-space:nowrap}
.top>.guardian-open{margin-left:auto}.site-footer{display:none}
.guardian-drawer{position:fixed;inset:0 0 0 auto;margin:0;width:min(420px,100vw);max-width:100vw;height:100dvh;max-height:100dvh;border:0;border-left:1px solid var(--edge);border-radius:24px 0 0 24px;padding:24px;background:var(--paper);color:var(--ink);overflow-y:auto;box-shadow:-16px 0 60px #30234222}
.guardian-drawer::backdrop{background:#22193066;backdrop-filter:blur(3px)}
.guardian-drawer>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:24px}.guardian-drawer header small{color:#8a769e;font-size:11px}.guardian-drawer h2{font-family:'Playground',sans-serif;font-size:28px;margin:8px 0}.drawer-close{min-width:44px;height:44px;font-size:26px;border:1px solid var(--edge);border-radius:50%;background:white}
.drawer-body{display:flex;flex-direction:column;gap:24px}.drawer-body section{display:flex;flex-wrap:wrap;gap:10px;border-bottom:1px solid var(--edge);padding-bottom:24px}.drawer-body h3{width:100%;font-size:14px;margin:0 0 4px}.drawer-body button,.drawer-body select,.drawer-body summary{min-height:48px;border:1px solid var(--edge);border-radius:12px;padding:10px 14px;background:white;color:var(--ink);font-size:14px;line-height:24px}.drawer-body .parent-account{display:flex;flex-direction:column;align-items:stretch;gap:10px;width:100%}.drawer-body .parent-account button,.drawer-body .parent-account a{text-align:left;padding:12px}.drawer-body .remaining-books{background:#eee7fb}
.drawer-body #beanPurchase summary{cursor:pointer}.drawer-body #beanPurchase label,.drawer-body #beanPurchase select{display:block;width:100%;margin:12px 0}.drawer-body #beanPurchase p{font-size:13px;line-height:1.7}.drawer-body #storyAccessBuy{width:100%;background:var(--accent);color:white}.drawer-body #storyAccessTopup{display:block;margin-top:14px;text-decoration:underline}
.drawer-body .caption-language{display:flex;align-items:center;gap:10px}.drawer-body .story-volume{width:100%;display:flex;gap:12px;align-items:center}.drawer-body .story-volume>div{flex:1}.drawer-body .story-volume label{display:block;font-size:13px}.drawer-body .story-volume small,#speakerLabel{display:none}.drawer-body #speakerFace{font-size:24px}.drawer-body input[type=range]{width:100%;accent-color:var(--accent)}.drawer-body label:has(#autoNext){display:flex;align-items:center;gap:12px;min-height:44px}.drawer-body #autoNext{width:24px;height:24px;accent-color:var(--accent)}
/* One stage per viewport; lists scroll inside it and the action stays in place. */
#studio.child-studio{max-width:1200px;padding:0 20px 12px;height:calc(100dvh - 72px);display:flex;flex-direction:column;gap:12px;min-height:340px}
.journey-steps{display:flex;justify-content:center;list-style:none;gap:28px;margin:0;padding:4px 0;flex:none}.journey-steps li{display:flex;align-items:center;gap:8px;color:#9a8ca6;font-size:12px;white-space:nowrap}.journey-steps li span{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#ece7f2;font-size:11px}.journey-steps .current{color:#624299;font-weight:700}.journey-steps .current span{background:var(--accent);color:white}.journey-steps .done span{background:#e0eee7;color:#3f7057}
#studio .workspace{display:flex;flex-direction:column;flex:1;min-height:0;margin:0;border:1px solid var(--edge);border-radius:24px;background:#fffefa;box-shadow:0 8px 30px #46305d08;overflow:hidden}
#studio .workspace-body{display:block;flex:1;min-height:0;padding:22px 24px 12px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}#studio #panel{max-width:1000px;margin:auto}
#studio .step-footer,.picking-friends #studio .step-footer{position:static;display:flex;flex:none;min-height:74px;padding:12px 24px;margin:0;border:0;border-top:1px solid var(--edge);border-radius:0;background:#fffefa;box-shadow:none;gap:12px}
#studio #next,.picking-friends #studio #next{flex:0 1 auto;width:auto;min-width:190px;min-height:48px;height:48px;font-size:16px;padding:0 22px;border-radius:14px;box-shadow:0 3px 0 #5c4196;margin-left:auto;white-space:nowrap}
#studio #back{min-height:48px;border-radius:14px}#studio #stepHint{font-size:12px;color:#8b7b98}
#studio #panel h2,#studio #panel .picker-heading h2{font-size:27px;text-align:left;max-width:none;white-space:normal;margin:0 0 10px;line-height:1.4}
#studio #panel>p{font-size:13px;text-align:left;margin:6px 0 14px;color:#8a7a96}#studio #panel>.host-note{font-size:10px!important}
.picking-friends .picker-heading{display:flex;flex-direction:column;align-items:stretch;gap:8px}.picking-friends .picker-heading>small{display:none}.picking-friends .picker-heading .character-tools{width:100%;margin:0}.picking-friends .picker-heading .filters{flex:1;width:100%;gap:6px;scrollbar-width:none}.picking-friends .filters button{font-size:12px!important;padding:8px 14px!important}
#studio .choice-grid,.picking-friends #studio .choice-grid{grid-template-columns:repeat(6,minmax(0,1fr));max-height:none;overflow:visible;gap:12px;padding:4px 2px 10px}.picking-friends #studio .picture-choice{border-radius:16px;border:1px solid var(--edge);box-shadow:0 2px 0 #e9e1f0;padding:8px}.picking-friends #studio .picture-choice.selected{border:2px solid #9b7acc;background:#f3edfc}.picking-friends #studio .picture-choice strong{font-size:13px;min-height:1.5em}
#chosenFriends,.picking-friends #chosenFriends{margin:10px 0 14px;padding:8px 12px;border:0;border-radius:14px;background:#f4effa;position:static;min-height:44px}
#studio .voice-grid{grid-template-columns:repeat(5,minmax(0,1fr));max-height:none;overflow:visible;margin:18px 0 0;gap:14px}#studio .voice-card{border:1px solid var(--edge);padding:14px 8px;border-radius:18px;box-shadow:0 2px 0 #e9e1f0}#studio .voice-card.selected{border-color:#9b7acc;background:#f3edfc}#studio .avatar{width:88px;height:88px;border-radius:22px}#studio .voice-card b{font-size:18px}#studio .provider-name{display:none}#studio .preview{font-size:12px;min-height:44px;background:#f5f0fb}
.quiet-details{border:1px solid var(--edge);border-radius:14px;padding:0 14px;margin:12px 0;background:#faf8fc;font-size:13px}.quiet-details>summary{cursor:pointer;min-height:44px;padding:12px 0;color:#756182}.quiet-details p{font-size:12px;line-height:1.7;color:#7b6a89}.quiet-details .language-choice h2,.quiet-details .language-choice>p{display:none}.quiet-details .language-buttons{margin:0 0 12px}
#studio .story-modes{margin:12px auto;gap:16px}#studio .mode-card{min-height:150px;padding:20px;gap:10px;border-width:2px;box-shadow:none}#studio .mode-card b{font-size:23px}#studio .mode-card strong{font-size:18px}
#studio .story-pad{margin:14px auto;padding:18px;border:1px solid #e9ddc7;border-radius:18px}#studio .story-pad>label{font-size:20px;margin-bottom:10px}#studio .story-pad textarea{min-height:130px;height:clamp(130px,22dvh,230px);padding:14px;font-size:18px;line-height:1.7}#studio .story-pad>small{font-size:10px;line-height:1.6}#studio .record-row{margin:10px 0;gap:12px}#studio .record-row button{min-height:48px;font-size:14px}
#studio .story-cast{margin:8px 0;gap:8px}#studio .story-cast .friend-picture{width:42px;height:42px}#studio .story-cast strong{font-size:12px}
#studio .idea-seeds{margin:0}#studio .idea-seeds button{font-size:12px;padding:8px 12px}.quiet-details .creation-note{font-size:12px!important;line-height:1.8}
/* Arrival and library have no redundant hero or account menu rows. */
#welcome.bean-welcome{max-width:1080px;margin:8px auto 16px;padding:0 20px}.bean-intro{margin:12px 0 20px}.bean-intro h1{font-size:32px!important;margin:6px 0!important}.bean-intro>p{font-size:12px;line-height:1.6}.bean-eyebrow{font-size:10px}.bean-layout{gap:20px}.bean-plans,.bean-wallet{border-radius:22px;padding:22px}.bean-plan-list{margin:16px 0;gap:10px}.bean-plan{padding:14px;min-height:82px}.bean-plan small{font-size:11px}.bean-plan strong{font-size:17px}.bean-note,.bean-plans>p,.bean-start small{font-size:11px;line-height:1.6}.bean-wallet #storyAccessStatus{font-size:14px;padding:14px;margin:12px 0}.bean-start{margin-top:14px;padding-top:14px}.bean-library{margin:14px auto;font-size:12px}
#library{max-width:1200px;padding:8px 20px 24px;min-height:0}#library>a.secondary{display:flex!important;justify-content:flex-end;min-height:44px!important;padding:6px 0!important;border:0;background:none!important;font-size:12px}#shelves{margin:8px 0;gap:20px;grid-template-columns:repeat(3,minmax(0,1fr))}.shelf{padding:14px;border:1px solid var(--edge);border-radius:22px;box-shadow:0 4px 12px #4433540a}.shelf h3{font-size:22px;margin:12px 0 6px}.shelf:hover{transform:translateY(-2px)}
/* Reading: three tools above; only playback actions below. */
#reader.compact-reader .compact-reader-tools{justify-content:space-between;max-width:1400px;height:56px;min-height:56px;padding:4px 0;flex-wrap:nowrap}#reader.compact-reader .compact-reader-tools #readerClose{margin-right:auto}#reader.compact-reader .compact-reader-tools .guardian-open{margin-left:auto}
#reader.compact-reader footer.child-player{display:grid;grid-template-columns:48px 100px minmax(100px,360px) 110px 48px;justify-content:center;gap:10px;height:68px;min-height:68px;max-width:1000px;padding:6px 0;overflow:visible}
#reader.compact-reader footer.child-player #prevPage{grid-area:1/1}#reader.compact-reader footer.child-player #narrationToggle{grid-area:1/2}#reader.compact-reader footer.child-player .story-timeline{grid-area:1/3;min-width:0;width:100%!important;max-width:none}#reader.compact-reader footer.child-player #replayPage{grid-area:1/4}#reader.compact-reader footer.child-player #nextPage{grid-area:1/5}
#reader.compact-reader footer.child-player #narrationToggle,#reader.compact-reader footer.child-player #replayPage{min-width:0;width:100%;font-size:14px;flex-direction:row}
#reader.compact-reader footer.child-player #prevPage,#reader.compact-reader footer.child-player #nextPage{width:48px}
#draft{padding-top:12px}#draft .draft-heading h1{font-size:26px}#draftPages textarea{border-radius:16px}#draft .draft-actions{box-shadow:0 -4px 24px #4934570a;border:1px solid var(--edge)}
@media(hover:hover) and (pointer:fine){button:not(:disabled):hover,summary:hover,a[href]:hover{scale:1;filter:brightness(1.02)}.choice:hover,.voice-card:hover,.steps button:hover{transform:translateY(-2px)}}
@media(max-width:700px){body>.top,body.picking-friends>.top,body.editing-draft>.top{padding:8px 12px;gap:8px;min-height:108px;height:108px;display:grid;grid-template-columns:1fr auto}.top .brand b{font-size:23px}.top>nav{grid-row:2;grid-column:1/-1;width:100%;display:flex}.top>nav button{flex:1}.top>.guardian-open{grid-row:1;grid-column:2;margin:0}body.reading-mode>.top{display:none}
 #studio.child-studio{height:calc(100dvh - 108px);padding:0 10px 8px;gap:6px;min-height:320px}.journey-steps{gap:14px;padding:3px 0}.journey-steps li{font-size:10px;gap:5px}.journey-steps li span{width:23px;height:23px}
 #studio .workspace-body{padding:14px 12px 8px}#studio #panel h2,#studio #panel .picker-heading h2{font-size:23px}#studio .step-footer,.picking-friends #studio .step-footer{padding:10px 12px;min-height:70px}#studio #stepHint{display:none}#studio #next,.picking-friends #studio #next{min-width:0;flex:1;font-size:15px}#studio #back{padding:8px 16px}
 #studio .choice-grid,.picking-friends #studio .choice-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}#studio .voice-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#studio .avatar{width:80px;height:80px}.picking-friends #studio .picture-choice strong{font-size:12px}
 #studio .story-modes{grid-template-columns:1fr;gap:10px}#studio .mode-card{min-height:100px;padding:14px;gap:6px}#studio .mode-card b{font-size:20px}#studio .mode-card strong{font-size:16px}#studio .story-pad{padding:12px}#studio .record-row{flex-direction:column;align-items:stretch}#studio .record-row span{font-size:11px}#studio .story-pad textarea{font-size:17px}
 #welcome.bean-welcome{padding:0 12px;margin-top:0}.bean-intro{margin:8px 0 14px}.bean-intro h1{font-size:26px!important}.bean-layout{gap:12px}.bean-plans,.bean-wallet{padding:16px}.bean-plan{min-height:70px;padding:10px}.bean-plan-list{margin:12px 0}.bean-library{margin:12px auto}.bean-wallet-heading h2{font-size:20px}#library{padding:4px 12px 16px}#shelves{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.shelf{padding:9px;border-radius:16px}.shelf h3{font-size:17px}.shelf small{font-size:10px}
 #reader.compact-reader footer.child-player{grid-template-columns:44px minmax(0,1fr) minmax(0,1fr) 44px;gap:8px;height:114px;min-height:114px}#reader.compact-reader footer.child-player #prevPage{grid-area:1/1;width:44px}#reader.compact-reader footer.child-player #narrationToggle{grid-area:1/2}#reader.compact-reader footer.child-player #replayPage{grid-area:1/3}#reader.compact-reader footer.child-player #nextPage{grid-area:1/4;width:44px}#reader.compact-reader footer.child-player .story-timeline{grid-area:2/1/3/5;height:40px}
 .guardian-drawer{padding:20px;border-radius:20px 0 0 20px}.drawer-body section{padding-bottom:18px}
}
@media(max-height:500px) and (orientation:landscape){body>.top,body.picking-friends>.top,body.editing-draft>.top{display:flex;height:60px;min-height:60px}.top>nav{width:auto}.top>nav button{padding:7px 12px}#studio.child-studio{height:calc(100dvh - 60px);min-height:260px}.journey-steps{display:none}#studio .workspace-body{padding:12px}#studio .step-footer{min-height:64px}#studio .voice-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}

#studio .story-cast>div{display:flex;align-items:center;gap:8px;padding:5px 10px;border-radius:30px;background:#f3eefb}#studio .story-cast .friend-picture{margin:0;width:32px;height:32px}#studio .story-cast strong{margin:0}#studio .story-cast{justify-content:flex-start;flex-wrap:wrap}
.guardian-drawer input[type=range]{height:44px;accent-color:#896ac3;cursor:pointer;max-width:100%}
@media(max-width:700px){#studio .story-pad textarea{height:130px}#studio .story-pad{margin:8px auto}#studio .story-cast{margin:6px 0}#studio .story-pad>label{font-size:17px;margin-bottom:6px}}

.drawer-body>p{font-size:13px;line-height:1.8;margin:0}
@media(max-width:700px){.bean-intro{margin:8px 0 12px}.bean-intro h1{font-size:24px!important}.bean-eyebrow{display:none}.bean-plans,.bean-wallet{padding:12px}.bean-plans>h2,.bean-plans>p:not(.bean-note){display:none}.bean-plan{min-height:60px;padding:8px 12px}.bean-plan-list{margin:0;gap:8px}.bean-note{margin:8px 0 0;font-size:10px}.bean-wallet-heading h2{font-size:18px}.bean-wallet-heading button{font-size:11px;min-height:36px;padding:5px 10px}.bean-wallet #storyAccessStatus{margin:8px 0;padding:10px;font-size:12px}.bean-wallet>.guardian-open{font-size:11px;padding:4px 10px;min-height:36px}.bean-start{margin-top:8px;padding-top:8px}.bean-start button{min-height:48px;font-size:16px}.bean-start small{font-size:10px}.bean-library{margin:8px auto}#storyAccessResult:empty{display:none}}
.choosing-story-mode #studio .step-footer{position:static;left:auto;right:auto;bottom:auto;transform:none;width:100%;max-width:100%}

/* Keep navigation beside the title, outside the scrolling content. */
#studio .studio-step-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex:none;padding:18px 24px 8px}
#studio .studio-step-heading h2{font-size:27px;line-height:1.4;margin:0;min-width:0}
#studio .studio-step-heading .step-footer{padding:0;min-height:0;border:0;gap:10px;width:auto;flex:none}
#studio .studio-step-heading #stepHint{display:none}
#studio .studio-step-heading #next{min-width:0;white-space:normal}
#studio #notice:not(:empty){position:static;flex:none;margin:0;padding:8px 16px;box-shadow:none;max-height:96px;overflow:auto}
#studio #notice:empty{display:none}
@media(max-width:600px){
 #studio .studio-step-heading{flex-wrap:wrap;gap:8px;padding:12px 12px 4px}
 #studio .studio-step-heading h2{font-size:22px}
 #studio .studio-step-heading .step-footer{margin-left:auto}
 #studio .studio-step-heading #next{font-size:14px;flex:none;padding:10px 14px}
}

#studio .studio-step-heading{position:relative;z-index:2;background:#fffefa}

/* Compact photo registration; navigation remains above the scroll area. */
#studio[data-step="-1"] .studio-step-heading .step-footer{width:auto;padding:0;min-height:0;border:0}
#studio[data-step="-1"] .portrait-guide{max-width:none;padding:0;background:transparent;border-radius:0}
#studio .photo-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px}
#studio .photo-toolbar h3{font-size:15px;margin:0}
#studio #addPhotoPerson{font-size:14px;padding:8px 14px;min-height:44px}
#studio .photo-short-tip{font-size:13px;margin:8px 0;line-height:1.5}
#studio .portrait-consent{font-size:13px;line-height:1.5;min-height:44px;gap:8px;margin:4px 0}
#studio .portrait-consent input{flex:none}
#studio .portrait-people{gap:12px;margin:10px 0}
#studio .portrait-person{display:grid;grid-template-columns:80px minmax(0,1fr);gap:8px 12px;padding:12px;border-radius:16px;align-items:start}
#studio .portrait-person-heading{grid-column:1/-1;font-size:14px}
#studio .portrait-person-heading button{min-height:40px;padding:6px 10px;font-size:12px}
#studio .portrait-person .portrait-preview,#studio .portrait-person .portrait-placeholder{grid-column:1;grid-row:2/4;width:80px;height:80px;margin:0;border-radius:12px;object-fit:cover;font-size:12px}
#studio .portrait-person label{grid-column:2;margin:0;font-size:13px;min-width:0}
#studio .portrait-person input:not([type=file]){padding:8px;min-height:44px;border-width:1px}
#studio .portrait-person .photo-upload{font-size:13px;font-weight:500}
#studio .portrait-person input[type=file]{width:100%;padding:6px;margin:4px 0 0;font-size:12px;min-height:44px}
#studio .portrait-person>small{grid-column:2;font-size:11px;line-height:1.4}
#studio .family-price{padding:8px 12px;margin:8px 0;font-size:13px;line-height:1.5}
#studio .portrait-guide details{font-size:12px;margin:6px 0}
#studio .portrait-guide summary{min-height:40px;padding:10px 0}
@media(max-width:600px){#studio .portrait-people{grid-template-columns:1fr}#studio .portrait-person{grid-template-columns:64px minmax(0,1fr);gap:6px 10px}#studio .portrait-person .portrait-preview,#studio .portrait-person .portrait-placeholder{width:64px;height:64px}#studio .photo-short-tip{font-size:12px}#studio .portrait-consent{font-size:12px}}

/* The photo itself is the upload control. Keep every source aspect ratio visible. */
#studio .portrait-person{display:flex;flex-direction:column;gap:8px;padding:12px}
#studio .portrait-person-heading{width:100%}
#studio .portrait-person .portrait-pick{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:clamp(180px,29dvh,300px);padding:8px;margin:0;border:2px dashed #cbb9e9;border-radius:14px;background:#f6f1ff;overflow:hidden;color:#7051a6}
#studio .portrait-pick img{display:block;width:100%;height:100%;object-fit:contain;border-radius:8px}
#studio .portrait-pick-empty{display:flex;flex-direction:column;align-items:center;gap:8px}
#studio .portrait-pick-empty>span{font-size:36px;line-height:1}
#studio .portrait-pick-empty strong{font-size:19px}
#studio .portrait-pick-empty small{font-size:13px}
#studio .portrait-pick-caption{position:absolute;right:12px;bottom:12px;padding:6px 12px;border-radius:20px;background:#fffef1eb;font-size:12px}
#studio .portrait-person>label{width:100%;font-size:13px}
#studio .portrait-person>small{font-size:11px}
#studio .portrait-person input[hidden]{display:none!important}
.photo-consent-dialog{width:min(500px,calc(100vw - 32px));max-height:calc(100dvh - 32px);box-sizing:border-box;overflow:auto;border:1px solid #e5d8f6;border-radius:24px;padding:24px;color:#35304f;background:#fffefa}
.photo-consent-dialog::backdrop{background:#27203588;backdrop-filter:blur(4px)}
.photo-consent-dialog h2{font-size:24px;margin:0 0 12px}
.photo-consent-dialog p{font-size:15px;line-height:1.6}
.photo-consent-dialog label{display:flex;align-items:flex-start;gap:12px;padding:16px 12px;border-radius:14px;background:#f3edfc;line-height:1.6;font-size:15px;cursor:pointer}
.photo-consent-dialog input[type=checkbox]{width:24px;height:24px;flex:none;margin:0;accent-color:#8060bf}
.photo-consent-dialog .photo-consent-note{font-size:12px;color:#776985}
.photo-consent-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px;flex-wrap:wrap}
.photo-consent-actions button{min-height:48px}
@media(max-width:600px){#studio .portrait-person .portrait-pick{height:240px}.photo-consent-dialog{padding:20px}.photo-consent-actions .primary{flex:1}}
@media(max-height:500px) and (orientation:landscape){#studio .portrait-person .portrait-pick{height:180px}.photo-consent-dialog{padding:16px}.photo-consent-dialog h2{font-size:20px}}

#studio .portrait-pick[aria-busy="true"]{opacity:1;cursor:wait}
.photo-upload-loading{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:#f7f1fff0;color:#5a388e;z-index:2}
.photo-upload-loading strong{font-size:18px}.photo-upload-loading small{font-size:13px}
.photo-upload-spinner{width:36px;height:36px;border:4px solid #d8c8ef;border-top-color:#7851b5;border-radius:50%;animation:photo-spin .9s linear infinite}
@keyframes photo-spin{to{transform:rotate(360deg)}}
#studio .portrait-pick.needs-photo,#studio .portrait-person input.needs-name{border:2px solid #a477dd;background-color:#faf5ff;animation:photo-attention 2.4s ease-in-out infinite}
#studio .portrait-person input.needs-name:focus{animation:none;outline:3px solid #b998e8;outline-offset:2px}
#studio .portrait-person .portrait-field-hint{font-size:14px;font-weight:600;color:#74509e;min-height:22px}
@keyframes photo-attention{0%,100%{box-shadow:0 0 0 0 #ad85dd12}50%{box-shadow:0 0 0 5px #ad85dd40}}
@media(prefers-reduced-motion:reduce){#studio .portrait-pick.needs-photo,#studio .portrait-person input.needs-name,.photo-upload-spinner{animation:none}}

#studio .studio-step-heading .step-footer{flex-wrap:wrap;justify-content:flex-end}#studio[data-step="-1"] .studio-step-heading{flex-wrap:wrap}#studio[data-step="-1"] .studio-step-heading .step-footer{margin-left:auto}#studio #photoAddFriends{min-height:44px}

#studio[data-step="-1"] .studio-step-heading :is(#next,#photoAddFriends){width:260px;min-height:52px;padding:12px 18px;font-size:16px;font-weight:700}
@media(max-width:600px){#studio[data-step="-1"] .studio-step-heading .step-footer{width:100%;display:grid;grid-template-columns:1fr 1fr}#studio[data-step="-1"] .studio-step-heading #back{grid-column:1/-1;justify-self:start}#studio[data-step="-1"] .studio-step-heading :is(#next,#photoAddFriends){width:100%;height:100%;min-height:56px;font-size:14px;padding:10px}}

.subject-review{margin-top:8px;font-size:13px}.subject-review summary{cursor:pointer;color:#7250b5;padding:6px 0}.subject-review textarea{box-sizing:border-box;width:100%;min-height:80px;height:90px;padding:10px;font:inherit;resize:vertical}.subject-review label{display:block}

/* Keep the review reminder beside the edit action, above the story text. */
#draft .draft-card-heading{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center}
.draft-review-notice{display:flex;align-items:center;justify-content:center;gap:10px;padding:12px 14px;border:2px solid #e5a132;border-radius:14px;background:#fff0c9;color:#733c08;box-shadow:0 2px 8px #d9932420;animation:draft-review-glow 2.4s ease-in-out 3}
.draft-review-notice strong{display:block;font-size:clamp(18px,1.6vw,23px);line-height:1.35;font-weight:800}
.draft-review-notice div>span{display:block;margin-top:3px;font-size:15px;font-weight:700;line-height:1.5;word-break:keep-all}
.draft-review-icon{flex:none;font-size:28px;animation:draft-review-pencil 2.4s ease-in-out 3}
@keyframes draft-review-glow{50%{box-shadow:0 0 0 5px #efb84c26;border-color:#bb7415}}
@keyframes draft-review-pencil{0%,100%{transform:rotate(-8deg)}50%{transform:rotate(8deg)}}
@media(max-width:800px){#draft .draft-card-heading{grid-template-columns:1fr auto}.draft-review-notice{grid-column:1/-1;grid-row:2;justify-content:flex-start}.draft-review-notice strong{font-size:20px}.draft-review-notice div>span{font-size:15px}}
@media(prefers-reduced-motion:reduce){.draft-review-notice,.draft-review-icon{animation:none}}

.story-type-choice{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin-bottom:12px}.story-type-choice label{font-size:15px!important;margin:0!important}.story-type-choice select{min-height:44px;max-width:100%;padding:8px 12px;border:1px solid #d9c8f4;border-radius:12px;background:#fff;color:#51406d;font:inherit}.story-type-choice small{font-size:12px;color:#77698b}

#beanPurchaseModal .bean-quantity-controls{display:flex;align-items:center;gap:12px;margin:16px 0}#beanPurchaseModal .bean-quantity-controls input{box-sizing:border-box;width:100px;min-width:100px;height:48px;padding:8px;text-align:center;font:600 20px/1.4 system-ui;border:2px solid #ded3f2;border-radius:12px;color:#35304f;background:white}#beanPurchaseModal .bean-quantity-controls button{min-width:48px;min-height:48px;padding:8px;font-size:22px}

