/* Story studio only. The existing reader, homepage and print layouts are untouched. */
.avatar-portrait.portrait-helena img,.avatar-portrait.portrait-theo img{position:absolute;inset:0;width:200%;height:100%;max-width:none;object-fit:fill}
.avatar-portrait.portrait-theo img{transform:translateX(-50%)}
.avatar-portrait.portrait-mama img,.avatar-portrait.portrait-papa img{object-position:center top}
.studio-v2.journey-studio{max-width:1180px;padding:20px 0 44px}
#main>.studio-v2.journey-studio{margin-block:12px;padding-block:14px 36px}
.studio-v2 .studio-topline{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}
.studio-v2 .back-link{color:#dfd5ed;margin:0;min-height:44px}
.studio-v2 .demo-pill{color:#e3d9ee;background:#ffffff09;border:1px solid #ffffff24;padding:6px 12px;font-size:10px}
.studio-v2 .studio-intro{display:flex;align-items:center;justify-content:space-between;gap:28px;margin-bottom:28px}
.studio-v2 .studio-intro .eyebrow{color:#e2c288;letter-spacing:2.4px;font-size:9px;margin-bottom:9px}
.studio-v2 .studio-intro p{font:clamp(29px,3.5vw,42px)/1.15 Georgia,serif;color:#fff7eb;letter-spacing:-.7px}
.studio-v2 .studio-intro>span{color:#cec6e0;font-size:12px;line-height:1.75;text-align:right}
.studio-v2 .stepper{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:0 0 24px;padding:7px;background:#ffffff07;border:1px solid #ffffff22;border-radius:17px}
.studio-v2 .stepper li{position:relative;min-width:0;max-width:none;gap:12px;flex-direction:row;text-align:left;padding:12px 20px;color:#ccc3df;line-height:1.4;font-size:12px}
.studio-v2 .stepper li+li:before{content:'';position:absolute;left:0;height:25px;width:1px;background:#ffffff20}
.studio-v2 .stepper li>span{width:33px;height:33px;flex:0 0 33px;border-color:#ffffff35;color:#eee4f5;font-size:13px}
.studio-v2 .stepper strong{display:block;font-size:12px}
.studio-v2 .stepper small{display:block;font-size:10px;font-weight:400;color:#c2b7d4;margin-top:3px}
.studio-v2 .stepper li.current{background:#f8efdfff;color:#503556;border-radius:11px;box-shadow:0 2px 10px #080b2220}
.studio-v2 .stepper li.current:before,.studio-v2 .stepper li.current+li:before{display:none}
.studio-v2 .stepper li.current>span{background:#70518d;border-color:#70518d;color:white}
.studio-v2 .stepper li.current small{color:#826987}
.studio-v2 .stepper li.complete>span{background:#ffffff12;border-color:#d1b5d7;color:#eed6f4}
.studio-v2 .studio-workspace{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;align-items:start}
.studio-v2 .studio-card{padding:32px;background:#fffaf5;border:1px solid #fbf0df;border-radius:24px;box-shadow:0 15px 45px #080e2c29;min-width:0}
.studio-v2 .studio-card-heading{border-bottom:1px solid #e8deeb;padding-bottom:25px;margin-bottom:25px}
.studio-v2 .studio-card-heading .eyebrow{font-size:9px;letter-spacing:1.7px;color:#95759d;margin:0 0 12px}
.studio-v2 .studio-card h1{font:clamp(29px,2.8vw,37px)/1.16 Georgia,serif;letter-spacing:-.8px;color:#382640}
.studio-v2 .lede{font-size:13px;line-height:1.75;color:#7a6b81;max-width:570px;margin:12px 0 0}
.studio-v2 .studio-companion{overflow:hidden;background:#efe5f5;color:#4d365d;border:1px solid #f4e2f8;border-radius:23px;position:sticky;top:24px;box-shadow:0 12px 30px #0c14302e}
.studio-v2 .studio-companion figure{position:relative;margin:0;overflow:hidden;background:#252a50;aspect-ratio:.95}
.studio-v2 .studio-companion figure img{height:100%;width:100%;object-fit:cover;object-position:50% 47%}
.studio-v2 .studio-companion figcaption{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(transparent,#1b2049cc);padding:32px 24px 18px;color:#fff2d8;font:italic 23px Georgia,serif}
.studio-v2 .companion-copy{padding:25px}
.studio-v2 .companion-copy .eyebrow{font-size:8px;letter-spacing:1.6px;color:#88669a;margin-bottom:12px}
.studio-v2 .companion-copy h2{font:29px/1.13 Georgia,serif;color:#4c2e62;letter-spacing:-.5px}
.studio-v2 .companion-copy>p{font-size:12px;line-height:1.75;color:#826b8d;margin-top:14px}
.studio-v2 .studio-summary{border-top:1px solid #d9cbe2;margin-top:23px;padding-top:20px}
.studio-v2 .studio-summary>div+div{margin-top:17px}
.studio-v2 .studio-summary span{font-size:8px;letter-spacing:1.1px;font-weight:700;color:#8c749c;display:block;margin-bottom:6px}
.studio-v2 .studio-summary p{font-size:12px;line-height:1.7;overflow-wrap:anywhere;color:#614770}
.studio-v2 .companion-foot{display:flex;align-items:center;gap:9px;color:#7b5b8b;font-size:10px;border-top:1px solid #d9cbe2;margin-top:20px;padding-top:18px}
.studio-v2 .companion-foot svg{width:18px;height:18px}
.studio-v2 .avatar-toolbar{margin:0 0 14px;gap:12px;justify-content:space-between}
.studio-v2 .avatar-toolbar p{font-size:12px;flex:0 1 auto;color:#65506f;font-weight:700}
.studio-v2 .avatar-toolbar .text-link{font-size:11px;gap:6px;min-height:44px;font-weight:400}
.studio-v2 .avatar-toolbar svg{height:17px;width:17px}
.studio-v2 .avatar-library{gap:12px;padding:4px 3px 14px;scroll-padding:3px}
.studio-v2 .avatar-card{flex:1 0 calc((100% - 36px)/4);max-width:none;border:1px solid #dfd1e6;border-radius:17px;background:#fffdf9;transition:border-color .15s,box-shadow .15s}
.studio-v2 .avatar-card>.avatar-portrait{width:100%;aspect-ratio:1;background:#f7e9e8}
.studio-v2 .avatar-card>span:not(.avatar-portrait){padding:12px 13px}
.studio-v2 .avatar-card strong{font:20px/1.25 Georgia,serif}
.studio-v2 .avatar-card small{font-size:10px;margin-top:3px}
.studio-v2 .avatar-card.selected{border-color:#9565aa;box-shadow:0 0 0 2px #a279b444;background:#f4eaf8}
.studio-v2 .avatar-card>svg{width:25px;height:25px;right:8px;top:8px;padding:5px;background:#74508d;color:#fff}
.studio-v2 .avatar-card:hover{border-color:#aa7ebc}
.studio-v2 .create-avatar-invite{display:flex;align-items:center;gap:15px;background:linear-gradient(105deg,#f2e9f7,#f8eff4);border:1px solid #e4d7ec;border-radius:16px;padding:19px;margin-top:8px}
.studio-v2 .studio-invite-icon{display:grid;place-items:center;flex-shrink:0;width:39px;height:39px;border-radius:12px;background:#e5d7ee;color:#835a9b}
.studio-v2 .create-avatar-invite>div{flex:1;min-width:0}
.studio-v2 .create-avatar-invite h2{font:21px/1.2 Georgia,serif;letter-spacing:-.3px;color:#5a3c6a}
.studio-v2 .create-avatar-invite p{font-size:11px;line-height:1.65;color:#87728f;margin-top:5px}
.studio-v2 .create-avatar-invite .button{font-size:11px;min-height:44px;padding:11px 15px;gap:8px;flex-shrink:0;background:#fffafc;border-color:#ccb3d8;color:#67477c}
.studio-v2 .selected-cast{margin-top:26px;padding-top:23px}
.studio-v2 .cast-heading h2,.studio-v2 .topic-heading h2{font:24px/1.2 Georgia,serif;letter-spacing:-.3px;margin:0}
.studio-v2 .cast-heading>span,.studio-v2 .topic-heading>span{font-size:10px;background:#eee3f3;border-radius:20px;padding:5px 10px;color:#805d91}
.studio-v2 .cast-name-fields{gap:17px;margin-top:19px;grid-template-columns:repeat(2,minmax(0,1fr))}
.studio-v2 .cast-name-fields label{gap:10px;margin:0}
.studio-v2 .cast-name-fields .avatar-portrait{width:46px;border-radius:50%}
.studio-v2 .cast-name-fields input{font-size:13px;min-height:43px;padding:9px 12px;margin-top:4px}
.studio-v2 .selected-cast>.hint{font-size:10px;color:#928199;margin-top:16px}
.studio-v2 .form-actions{margin-top:25px;padding-top:23px;gap:16px;align-items:center}
.studio-v2 .form-actions>.hint{font-size:11px;color:#8c7b94;margin:0;max-width:none}
.studio-v2 .form-actions>.button{padding:13px 21px;min-height:47px;font-size:12px;gap:15px;margin-left:auto}
.studio-v2 .form-actions>.text-link{min-height:44px;font-size:12px}
.studio-v2 #form-error:empty{margin:0}
.studio-v2 .studio-bottom-note{font-size:10px;color:#c8bed9;text-align:center;margin:25px 0 0;display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.studio-v2 .studio-bottom-note i{font-style:normal;color:#e6c992}
/* A composed portrait workspace rather than a long column of isolated controls. */
.studio-v2 .avatar-builder{background:#f4edf7;border-color:#e2d4e9;padding:22px;margin:12px 0 24px;border-radius:18px}
.studio-v2 .builder-heading{margin-bottom:22px;gap:12px}
.studio-v2 .builder-heading .eyebrow{margin-bottom:7px;font-size:8px;letter-spacing:1.5px}
.studio-v2 .builder-heading h2{font-size:27px;margin:0}
.studio-v2 .avatar-builder-body{grid-template-columns:minmax(0,.6fr) minmax(0,1.4fr);gap:24px;display:grid}
.studio-v2 .builder-preview{border-width:3px;border-radius:18px}
.studio-v2 .builder-preview-wrap{top:25px;padding-top:3px}
.studio-v2 .builder-preview-wrap>span:last-child{font-size:10px;line-height:1.6;color:#8c7396;max-width:130px;margin:13px auto 0}
.studio-v2 .portrait-picker{gap:6px;padding:3px 2px 8px}
.studio-v2 .portrait-picker button{flex:1 0 calc((100% - 18px)/4);max-width:none;padding:4px;border:1px solid #d9c8e3;border-radius:10px}
.studio-v2 .portrait-picker button.selected{border-color:#9160ac;box-shadow:0 0 0 1px #9160ac;background:#eadcf2}
.studio-v2 .portrait-picker button>span:last-child{font-size:9px;margin:4px 0 2px}
.studio-v2 .haircut-choice{margin:17px 0}
.studio-v2 .haircut-choice>strong,.studio-v2 .appearance-choice>strong{font-size:11px;margin-bottom:8px}
.studio-v2 .haircut-choice>div{gap:6px}
.studio-v2 .haircut-choice button{font-size:11px;min-height:40px;padding:9px 12px}
.studio-v2 .studio-colours{display:grid;grid-template-columns:1fr;gap:0}
.studio-v2 .appearance-choice{margin:8px 0 13px}
.studio-v2 .appearance-choice>div{gap:5px;flex-wrap:nowrap}
.studio-v2 .appearance-swatch{min-width:47px;flex:0 1 55px;padding:6px 4px;gap:5px}
.studio-v2 .appearance-swatch i{height:24px;width:24px}
.studio-v2 .appearance-swatch span{font-size:9px}
.studio-v2 .glasses-choice{border-top:1px solid #e1d4e8;padding-top:17px;margin-top:9px}
.studio-v2 .studio-identity-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.studio-v2 .studio-identity-fields label{font-size:11px;margin:8px 0}
.studio-v2 input,.studio-v2 select,.studio-v2 textarea{border-color:#dcccdf;background:#fffefd;border-radius:10px;font-size:13px}
.studio-v2 .studio-identity-fields input,.studio-v2 .studio-identity-fields select{padding:10px;font-size:12px}
.studio-v2 .builder-options>.button{font-size:12px;margin-top:19px;min-height:44px;padding:12px 20px}
.studio-v2 .avatar-builder>.hint{font-size:10px;margin:20px 0 0;padding-top:15px;border-top:1px solid #e1d4e8}
.studio-v2 #avatar-error:empty{margin:0}
/* Interests and the writing step use the same spacing rhythm. */
.studio-v2 .age-choice{display:flex;justify-content:space-between;align-items:center;gap:20px;max-width:none;margin:0 0 27px;padding:19px 22px;background:#f4edf7;border:1px solid #e5daec;border-radius:15px}
.studio-v2 .age-choice label{margin:0 0 5px;font-size:12px;color:#634773}
.studio-v2 .age-choice p{font-size:10px;color:#947b9e;line-height:1.6}
.studio-v2 .age-choice select{flex:0 0 165px;max-width:100%;font-size:12px}
.studio-v2 .topic-heading{gap:15px;align-items:center}
.studio-v2 .topic-heading+.hint{font-size:11px;margin:12px 0 0}
.studio-v2 .topic-library{gap:20px 16px;margin-top:25px}
.studio-v2 .topic-family{padding:14px 15px 18px;border:1px solid #e4d7e8;background:#fdf8fc;border-radius:16px}
.studio-v2 .topic-family-1{background:#f3f5fa;border-color:#dce1ed}
.studio-v2 .topic-family-2{background:#f2f5f0;border-color:#dce6d8}
.studio-v2 .topic-family-3{background:#fcf4e9;border-color:#ebdfcf}
.studio-v2 .topic-family legend{font:20px/1.25 Georgia,serif;letter-spacing:-.3px;color:#644975;padding:0 7px;margin-bottom:8px}
.studio-v2 .topic-family legend svg{width:17px;height:17px;vertical-align:-2px;margin-right:7px;color:#9477a6}
.studio-v2 .topic-family>div{gap:7px}
.studio-v2 .topic-pill{font-size:11px;min-height:40px;border-color:#e4d7e8;background:#ffffffc9;padding:8px 11px;gap:5px}
.studio-v2 .topic-pill.selected{color:#5b3c70;background:#eadcf2;border-color:#ac83bf}
.studio-v2 .studio-brief{background:#f4edf7;padding:16px 19px 0;border:1px solid #e6d9ed;border-radius:16px;margin-bottom:25px}
.studio-v2 .story-brief-cast{margin:0;gap:12px;padding-bottom:12px}
.studio-v2 .story-brief-cast>span{flex:0 0 58px}
.studio-v2 .story-brief-cast .avatar-portrait{width:58px;border-radius:50%}
.studio-v2 .story-brief-cast strong{font-size:10px;margin-top:6px}
.studio-v2 .brief-summary{gap:6px;margin:0;padding:12px 0 16px;border-top:1px solid #e2d6e8}
.studio-v2 .brief-summary>span{font-size:10px;padding:5px 10px;background:#fffafc;border-color:#e2d2e9}
.studio-v2 .idea-writing>label{font-size:13px;margin:22px 0 8px;color:#594265;line-height:1.6}
.studio-v2 .idea-writing>label:first-child{margin-top:0}
.studio-v2 .studio-field-help{font-size:11px;color:#8f7d98;line-height:1.7;margin:0 0 13px}
.studio-v2 textarea{padding:17px;min-height:175px;font-size:14px;line-height:1.85;box-shadow:0 3px 12px #4b2e5d04}
.studio-v2 input::placeholder,.studio-v2 textarea::placeholder{color:#9a8ca3}
.studio-v2 .book-next-steps{background:none;border-top:1px solid #e6dbe9;border-bottom:1px solid #e6dbe9;border-radius:0;padding:21px 0;gap:14px 21px;margin:26px 0 17px;font-size:11px;color:#896a98}
.studio-v2 .book-next-steps>strong{font:22px Georgia,serif;color:#61446f}
.studio-v2 .book-next-steps svg{width:17px;height:17px}
.studio-v2 .generation-status{font-size:10px;color:#917f99;line-height:1.8}
@media(min-width:1250px){.studio-v2 .studio-colours{grid-template-columns:1fr 1fr;gap:12px}.studio-v2 .appearance-swatch{min-width:37px}.studio-v2 .appearance-choice>div{gap:1px}.studio-v2 .appearance-swatch span{font-size:8px}}
@media(max-width:1100px){.studio-v2 .studio-workspace{grid-template-columns:minmax(0,1fr) 255px;gap:18px}.studio-v2 .studio-card{padding:25px}.studio-v2 .companion-copy{padding:22px}.studio-v2 .companion-copy h2{font-size:27px}.studio-v2 .create-avatar-invite{gap:11px;padding:16px;flex-wrap:wrap}.studio-v2 .create-avatar-invite .button{margin-left:50px}.studio-v2 .avatar-builder-body{grid-template-columns:145px minmax(0,1fr);gap:18px}.studio-v2 .avatar-builder{padding:18px}.studio-v2 .studio-identity-fields{grid-template-columns:1fr}}
@media(max-width:900px){.studio-v2 .studio-workspace{grid-template-columns:minmax(0,1fr)}.studio-v2 .studio-companion{position:static;display:grid;grid-template-columns:minmax(0,.75fr) minmax(0,1.25fr)}.studio-v2 .studio-companion figure{aspect-ratio:auto;min-height:260px;height:100%}.studio-v2 .companion-copy h2{font-size:25px}.studio-v2 .companion-copy h2 br{display:none}.studio-v2 .companion-copy h2 br:after{content:' '}.studio-v2 .studio-summary{margin-top:17px;padding-top:15px}.studio-v2 .companion-foot{margin-top:16px;padding-top:14px}.studio-v2 .avatar-builder-body{grid-template-columns:190px minmax(0,1fr);gap:26px}.studio-v2 .studio-identity-fields{grid-template-columns:1fr 1fr}.studio-v2 .create-avatar-invite{flex-wrap:nowrap}.studio-v2 .create-avatar-invite .button{margin-left:0}.studio-v2 .stepper li{padding:12px}.studio-v2 .studio-intro>span{font-size:11px}}
@media(max-width:600px){.studio-v2.journey-studio{padding-top:11px;padding-bottom:30px}.studio-v2 .studio-topline{margin-bottom:16px}.studio-v2 .studio-intro{margin-bottom:22px}.studio-v2 .studio-intro p{font-size:30px}.studio-v2 .studio-intro .eyebrow{font-size:8px;letter-spacing:1.7px}.studio-v2 .studio-intro>span{display:none}.studio-v2 .stepper{padding:5px;margin-bottom:17px;border-radius:14px}.studio-v2 .stepper li{flex-direction:column;gap:7px;padding:10px 3px;text-align:center}.studio-v2 .stepper li:before{top:25px}.studio-v2 .stepper strong{font-size:10px;font-weight:400}.studio-v2 .stepper li.current strong{font-weight:700}.studio-v2 .stepper small{display:none}.studio-v2 .stepper li>span{width:28px;height:28px;flex-basis:28px;font-size:11px}.studio-v2 .studio-card{padding:23px 19px;border-radius:20px}.studio-v2 .studio-card h1{font-size:30px;letter-spacing:-.6px}.studio-v2 .studio-card-heading{padding-bottom:21px;margin-bottom:17px}.studio-v2 .lede{font-size:12px;line-height:1.75}.studio-v2 .avatar-toolbar{gap:2px}.studio-v2 .avatar-toolbar p{font-size:11px;flex-basis:auto}.studio-v2 .avatar-toolbar .text-link{font-size:10px}.studio-v2 .avatar-card{flex:0 0 133px;max-width:133px}.studio-v2 .avatar-card strong{font-size:20px}.studio-v2 .create-avatar-invite{flex-wrap:wrap;padding:16px;gap:11px}.studio-v2 .create-avatar-invite h2{font-size:21px}.studio-v2 .create-avatar-invite p{font-size:10px}.studio-v2 .create-avatar-invite .button{width:100%;margin-top:3px;font-size:12px}.studio-v2 .studio-invite-icon{width:32px;height:32px}.studio-v2 .cast-name-fields{grid-template-columns:1fr}.studio-v2 .selected-cast{margin-top:23px}.studio-v2 .cast-heading h2,.studio-v2 .topic-heading h2{font-size:23px}.studio-v2 .form-actions{gap:12px;flex-wrap:nowrap}.studio-v2 .form-actions>.hint{display:none}.studio-v2 .form-actions>.button{flex:0 1 auto;font-size:11px;padding:12px 17px}.studio-v2.studio-step-0 .form-actions>.button{width:100%}.studio-v2 .studio-companion{grid-template-columns:1fr}.studio-v2 .studio-companion figure{min-height:0;aspect-ratio:1.4}.studio-v2 .companion-copy{padding:23px}.studio-v2 .companion-copy h2{font-size:27px;line-height:1.25}.studio-v2 .companion-copy>p{max-width:300px}.studio-v2 .studio-summary{display:none}.studio-v2 .companion-foot{margin-top:19px}.studio-v2 .studio-bottom-note{font-size:9px;gap:8px;line-height:1.8;display:block;margin:23px auto 0;max-width:240px}.studio-v2 .studio-bottom-note i{margin:0 5px}.studio-v2 .avatar-builder{padding:17px 13px;margin:9px 0 21px}.studio-v2 .builder-heading{margin-bottom:17px}.studio-v2 .builder-heading h2{font-size:25px}.studio-v2 .builder-heading .text-link{font-size:10px;gap:4px}.studio-v2 .builder-heading .text-link svg{width:17px}.studio-v2 .avatar-builder-body{display:flex;flex-direction:column;gap:21px}.studio-v2 .builder-preview-wrap{position:static;width:185px;max-width:100%;align-self:center;padding:0}.studio-v2 .builder-preview-wrap>span:last-child{max-width:none}.studio-v2 .portrait-picker button{flex:0 0 65px;max-width:75px}.studio-v2 .studio-identity-fields{grid-template-columns:1fr;gap:4px}.studio-v2 .appearance-swatch{min-width:43px;flex:0 1 54px}.studio-v2 .haircut-choice button{min-height:44px}.studio-v2 .builder-options>.button{width:100%}.studio-v2 .age-choice{padding:17px;display:block;margin-bottom:24px}.studio-v2 .age-choice p{font-size:11px;margin-top:5px}.studio-v2 .age-choice select{margin-top:14px;font-size:14px}.studio-v2 .topic-library{grid-template-columns:1fr;gap:19px;margin-top:23px}.studio-v2 .topic-family{padding:12px 14px 17px}.studio-v2 .topic-pill{min-height:44px;font-size:12px;padding:9px 12px}.studio-v2 .topic-heading+.hint{line-height:1.8}.studio-v2 .studio-brief{padding:15px 14px 0;margin-bottom:22px}.studio-v2 .idea-writing>label{font-size:12px}.studio-v2 textarea{font-size:14px;padding:14px;min-height:200px}.studio-v2 .book-next-steps{gap:13px 17px;font-size:10px}.studio-v2 .book-next-steps>strong{font-size:21px;line-height:1.3}.studio-v2 .generation-status{font-size:10px}}
.studio-v2 .studio-field-help,.studio-v2 .generation-status,.studio-v2 .selected-cast>.hint,.studio-v2 .age-choice p,.studio-v2 .create-avatar-invite p{color:#776382}
.studio-v2 .companion-copy>p{color:#735c7f}
@media(max-width:600px){.studio-v2 input,.studio-v2 select,.studio-v2 textarea,.studio-v2 .cast-name-fields input,.studio-v2 .studio-identity-fields input,.studio-v2 .studio-identity-fields select,.studio-v2 .age-choice select{font-size:16px}}
@media(prefers-reduced-motion:reduce){.studio-v2 .avatar-card{transition:none}}
/* The two-page journey: one hero, familiar companions, then story ingredients. */
.studio-v2 .stepper{grid-template-columns:repeat(2,minmax(0,1fr))}
.studio-v2 .character-section-heading{display:flex;align-items:flex-start;gap:12px;margin-bottom:20px;flex-wrap:wrap}
.studio-v2 .character-section-heading>div{flex:1;min-width:140px}
.studio-v2 .character-section-heading h2{font:26px/1.2 Georgia,serif;letter-spacing:-.4px;color:#50355e;margin:0}
.studio-v2 .character-section-heading p{font-size:12px;line-height:1.7;color:#776382;margin-top:8px}
.studio-v2 .section-number{display:inline-grid;place-items:center;flex:0 0 29px;width:29px;height:29px;border-radius:50%;font:13px/1 Arial,sans-serif;color:#7c568b;background:#ecdef1;border:1px solid #ddc9e5;vertical-align:3px}
.studio-v2 .hero-identity{display:grid;grid-template-columns:155px minmax(0,1fr);align-items:center;gap:26px;padding:22px;background:linear-gradient(125deg,#f3e8f5,#fff2ea);border:1px solid #e8d8e7;border-radius:18px}
.studio-v2 .hero-portrait{min-width:0;text-align:center}
.studio-v2 .hero-portrait>.avatar-portrait{width:100%;aspect-ratio:1;border:3px solid #fff9ef;border-radius:22px;box-shadow:0 5px 16px #58415a18}
.studio-v2 .hero-portrait>span:last-child{display:inline-block;color:#795084;font-size:10px;margin-top:11px;background:#ffffffc2;border-radius:15px;padding:5px 10px}
.studio-v2 .hero-fields label{font-size:12px;margin:0 0 8px;color:#5b4368}
.studio-v2 .hero-fields label:not(:first-child){margin-top:18px}
.studio-v2 .hero-fields input,.studio-v2 .hero-fields select{min-height:46px;width:100%;padding:11px 13px;font-size:15px}
.studio-v2 .hero-fields .hint{font-size:11px;margin:8px 0 0;color:#776382}
.studio-v2 .hero-avatar-actions{display:flex;gap:15px;align-items:center;flex-wrap:wrap;margin:17px 0 8px}
.studio-v2 .hero-avatar-actions .button{font-size:12px;min-height:44px;padding:11px 14px}
.studio-v2 .hero-avatar-actions .text-link{font-size:12px;min-height:44px}
.studio-v2 .main-character>.avatar-library{margin-top:18px}
.studio-v2 .story-companions{border-top:1px solid #e7dbe7;margin-top:30px;padding-top:28px}
.studio-v2 .cast-capacity{font-size:10px;white-space:nowrap;border-radius:15px;background:#eee3f3;padding:7px 10px;color:#805d91;margin-left:41px}
.studio-v2 .empty-companions{font-size:13px;line-height:1.8;color:#776382;padding:0 0 18px}
.studio-v2 .companion-cards{display:grid;gap:13px;margin-bottom:18px}
.studio-v2 .companion-person{position:relative;display:grid;grid-template-columns:72px minmax(0,1fr) 35px;align-items:center;gap:16px;padding:15px;border:1px solid #e1d5e6;border-radius:15px;background:#fffdfb;min-width:0}
.studio-v2 .companion-person>.avatar-portrait{width:72px;border-radius:16px}
.studio-v2 .companion-person>div{min-width:0}
.studio-v2 .companion-person label{font-size:11px;line-height:1.5;margin:0 0 6px;color:#7d628b}
.studio-v2 .companion-person input{min-height:43px;width:100%;font-size:14px;padding:9px 11px}
.studio-v2 .companion-person .text-link{font-size:11px;min-height:36px;gap:7px;margin-top:3px}
.studio-v2 .companion-person .text-link svg{width:14px;height:14px}
.studio-v2 .remove-character{display:grid;place-items:center;align-self:start;width:36px;height:36px;border:1px solid #e3d6e7;border-radius:50%;background:#f7eff8;color:#896497}
.studio-v2 .remove-character svg{width:16px;height:16px}
.studio-v2 .add-companion{min-height:44px;font-size:12px;padding:11px 16px}
.studio-v2 .capacity-note{font-size:11px!important;margin:12px 0 0!important;line-height:1.7}
.studio-v2 .companion-picker{padding:18px 0 0}
.studio-v2 .picker-label{font-size:12px;color:#776382;margin-bottom:14px;line-height:1.7}
.studio-v2 .companion-picker>.text-link{min-height:44px;font-size:12px;margin-top:3px}
.studio-v2 button:disabled{opacity:.5;cursor:default}
.studio-v2 .adventure-question{position:relative;min-width:0;margin:0 0 30px;padding:23px;border:1px solid #e2d5e9;border-radius:18px;background:#f6eff9}
.studio-v2 .adventure-question legend{font:24px/1.3 Georgia,serif;letter-spacing:-.4px;color:#50355e;padding:0 7px;max-width:100%}
.studio-v2 .adventure-question legend .section-number{margin-right:9px}
.studio-v2 .adventure-question .studio-field-help{font-size:12px;line-height:1.8;margin-bottom:17px}
.studio-v2 .encounter-counter{display:inline-block;padding:5px 10px;border-radius:16px;background:#ebdef2;color:#805d91;font-size:10px;margin-bottom:4px}
.studio-v2 .encounter-group{margin-top:19px}
.studio-v2 .encounter-group h3{font-size:11px;letter-spacing:.4px;font-weight:700;line-height:1.6;margin:0 0 10px;color:#836291}
.studio-v2 .ingredient-pills{display:flex;flex-wrap:wrap;gap:8px}
.studio-v2 .ingredient-pills .topic-pill{font-size:12px;min-height:44px;padding:10px 13px;white-space:normal;text-align:left}
.studio-v2 .encounter-own{padding-top:18px;margin-top:18px;border-top:1px solid #e3d4eb}
.studio-v2 .adventure-question>label:not(.visually-hidden){font-size:12px;color:#614773;margin:20px 0 9px}
.studio-v2 .adventure-question>input{font-size:14px;min-height:46px;width:100%}
.studio-v2 .setting-question{background:#f0f4f6;border-color:#d7e2e7}
.studio-v2 .setting-question .section-number{background:#dfebef;border-color:#cddfe5;color:#507080}
.studio-v2 .setting-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.studio-v2 .setting-card{position:relative;display:flex;align-items:flex-start;gap:10px;min-width:0;text-align:left;background:#ffffffd9;border:1px solid #d8e1e7;border-radius:13px;padding:14px 12px;color:#4c5266;min-height:90px}
.studio-v2 .setting-symbol{display:grid;place-items:center;flex:0 0 26px;width:26px;height:29px;color:#7b8f9e}
.studio-v2 .setting-symbol svg{width:23px;height:23px}
.studio-v2 .setting-card>span:nth-child(2){min-width:0;padding-right:3px}
.studio-v2 .setting-card strong{font-size:12px;line-height:1.5;display:block;font-weight:700}
.studio-v2 .setting-card small{font-size:10px;line-height:1.65;margin-top:5px;display:block;color:#78808c}
.studio-v2 .setting-card.selected{border-color:#8e73a4;box-shadow:0 0 0 1px #a38ab5;background:#f6eaf8;color:#5b3c70}
.studio-v2 .setting-card>svg{position:absolute;right:6px;top:5px;width:13px;height:13px;color:#876097}
.studio-v2 .idea-question{background:#fcf2e8;border-color:#ecddcd}
.studio-v2 .idea-question .section-number{background:#f4e4cd;border-color:#e7d1af;color:#967340}
.studio-v2 .idea-question textarea{min-height:150px;background:#fffdf9;font-size:15px;line-height:1.8}
.studio-v2 .story-starters{display:flex;flex-wrap:wrap;gap:7px;align-items:center;margin-top:14px}
.studio-v2 .story-starters>span{flex-basis:100%;font-size:11px;color:#907658;margin-bottom:2px}
.studio-v2 .story-starters button{display:inline-flex;align-items:center;gap:6px;min-height:40px;border:1px solid #e3cfba;background:#fffaf4;border-radius:12px;padding:8px 10px;color:#8a654e;font-size:11px}
.studio-v2 .story-starters svg{width:13px;height:13px}
.studio-v2 .creation-review{padding:18px 19px 0}
.studio-v2 .brief-title{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:15px}
.studio-v2 .brief-title h2{font:22px/1.3 Georgia,serif;letter-spacing:-.2px;margin:0;color:#60456f}
.studio-v2 .brief-title .text-link{font-size:11px;min-height:40px}
.studio-v2 .story-brief-cast small{display:block;font-size:9px;line-height:1.5;color:#8d7299;margin-top:4px}
.book-result .ready-cast small{display:block;font-size:10px;color:#806488;margin-top:5px}
@media(max-width:1100px) and (min-width:901px){.studio-v2 .hero-identity{grid-template-columns:125px minmax(0,1fr);gap:18px;padding:18px}.studio-v2 .setting-grid{grid-template-columns:1fr}}
@media(max-width:600px){.studio-v2 .hero-identity{grid-template-columns:100px minmax(0,1fr);gap:15px;padding:15px}.studio-v2 .hero-fields input,.studio-v2 .hero-fields select{font-size:16px}.studio-v2 .hero-portrait>span:last-child{font-size:9px;padding:5px 7px}.studio-v2 .hero-fields label{font-size:11px}.studio-v2 .hero-fields .hint{font-size:10px}.studio-v2 .character-section-heading h2{font-size:24px}.studio-v2 .character-section-heading p{font-size:12px}.studio-v2 .hero-avatar-actions{gap:6px}.studio-v2 .hero-avatar-actions .button,.studio-v2 .hero-avatar-actions .text-link{font-size:11px}.studio-v2 .hero-avatar-actions .button{width:100%;justify-content:center}.studio-v2 .companion-person{grid-template-columns:55px minmax(0,1fr) 29px;gap:10px;padding:12px}.studio-v2 .companion-person>.avatar-portrait{width:55px;border-radius:12px}.studio-v2 .companion-person input{font-size:16px}.studio-v2 .remove-character{width:30px;height:35px}.studio-v2 .add-companion{width:100%;justify-content:center}.studio-v2 .adventure-question{padding:18px 14px;margin-bottom:27px}.studio-v2 .adventure-question legend{font-size:22px;padding:0 3px}.studio-v2 .adventure-question legend .section-number{display:inline-grid;width:25px;height:25px;margin-right:5px;font-size:11px;vertical-align:2px}.studio-v2 .adventure-question .studio-field-help{font-size:12px}.studio-v2 .setting-grid{grid-template-columns:1fr}.studio-v2 .setting-card{min-height:76px;padding:13px}.studio-v2 .setting-card strong{font-size:13px}.studio-v2 .setting-card small{font-size:11px}.studio-v2 .idea-question textarea,.studio-v2 .adventure-question>input{font-size:16px}.studio-v2 .ingredient-pills .topic-pill{font-size:12px}.studio-v2 .brief-title{gap:3px}.studio-v2 .creation-review{padding-inline:14px}.studio-v2 .story-brief-cast{gap:12px;overflow-x:auto}.studio-v2 .hero-fields select{padding-inline:8px}}
@media(max-width:370px){.studio-v2 .hero-identity{grid-template-columns:1fr}.studio-v2 .hero-portrait{max-width:140px;margin:auto}.studio-v2 .hero-fields{width:100%}.studio-v2 .companion-person{grid-template-columns:44px minmax(0,1fr) 26px;gap:8px;padding:10px}.studio-v2 .companion-person>.avatar-portrait{width:44px}.studio-v2 .companion-person input{padding:8px}.studio-v2 .character-section-heading h2{font-size:22px}}

/* Local AI manuscript uses the established cards, buttons and reading layout. */
.ai-manuscript-fields{border:0;padding:0;margin:0;min-width:0}.ai-manuscript-fields[disabled]{opacity:.75}.ai-art-pending{min-height:180px;display:flex;flex-direction:column;gap:18px;align-items:center;justify-content:center;background:#f5edf8;color:#765186;text-align:center;border-radius:12px;padding:24px;font-size:32px}.ai-art-pending span{font:16px/1.5 Georgia,serif}.editor-sidebar>.avatar-portrait{max-width:130px;margin:0 auto 18px}.editor-page textarea{width:100%;max-width:100%;box-sizing:border-box}.studio-v2 #story-language{margin:10px 0 24px}.studio-v2 label.check{display:flex;gap:12px;align-items:flex-start;font-size:12px;line-height:1.7;margin-block:18px}.studio-v2 label.check input{flex:0 0 auto;min-height:20px;width:20px;margin-top:2px}
.studio-preview-fields{border:0;padding:0;margin:0;min-inline-size:0}
