/* PéPi reading surface over the original exercise controls and saved identities. */
#pepiStudyRoom{--pepi-study-paper:#fbfaf7;--pepi-study-ink:#302b23;background:var(--pepi-study-paper);font-family:'Pridi',Georgia,system-ui,sans-serif}
#pepiStudyRoom .pepi-study-body{max-width:1220px}.pepi-study-header{position:relative;background:var(--pepi-study-paper);z-index:1}.pepi-study-header nav a{font-size:15px;text-underline-offset:5px}
#pepiStudyRoom .rm-heading{border:0;background:transparent;text-align:center;max-width:880px;margin:0 auto 2rem;padding:0 0 1.5rem;border-bottom:1px solid #ded9d0;border-radius:0}
#pepiStudyRoom .rm-heading h1{font:500 clamp(28px,4vw,48px)/1.25 Georgia,'Pridi',serif;margin:1.2rem 0;color:var(--pepi-study-ink)}#pepiStudyRoom .rm-heading:before{content:'';display:block;margin:0 auto 1rem;width:128px;height:128px;background:url('/pepi-ui/assets/display/duck-reading-320.png') center/contain no-repeat}
#pepiStudyRoom .rm-reading-flow{display:flex;gap:1rem;flex-wrap:wrap;justify-content:center;list-style:none;padding:0;margin-top:1rem}#pepiStudyRoom .rm-reading-flow li{font-size:14px;max-width:230px}#pepiStudyRoom .rm-reading-step-number{display:inline-flex;width:24px;height:24px;justify-content:center;align-items:center;border:1px solid #bda574;border-radius:50%;margin-right:.5rem}
#pepiStudyRoom .rm-workspace{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:2rem;align-items:start}#pepiStudyRoom .rm-reader-pane{min-width:0;padding:clamp(18px,3vw,36px);background:#fffdf8;border:1px solid #ded9d0;border-radius:24px}#pepiStudyRoom .rm-french{font:400 clamp(20px,2vw,24px)/1.95 Georgia,'Pridi',serif;max-width:68ch}#pepiStudyRoom .rm-french p{line-height:1.95;margin:0 0 1.5rem}#pepiStudyRoom .rm-task-pane{min-width:0}#pepiStudyRoom .rm-task-tabs{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:1rem}#pepiStudyRoom .rm-task-tabs button{border:1px solid #ded9d0;border-radius:999px;padding:.5rem 1rem;background:transparent;color:inherit}#pepiStudyRoom .rm-task-tabs [aria-selected=true]{background:#967728;color:#fffdf8}#pepiStudyRoom .rm-question{padding:1.5rem}#pepiStudyRoom .rm-question label{display:block;margin:.7rem 0;padding:.6rem;border-radius:12px}#pepiStudyRoom .rm-reading-next{margin:2rem 0;display:flex;align-items:center;justify-content:space-between;gap:1.5rem;padding-top:2rem;border-top:1px solid #ded9d0}
#pepiStudyRoom .fkd-view{max-width:1000px;margin:auto}#pepiStudyRoom .fkd-lesson-preview{background:transparent;border:0}#pepiStudyRoom .gs-reference-reading{font:400 22px/1.9 Georgia,'Pridi',serif}
/* Owner editor remains available beneath both embedded and native activities. */
.pepi-study-room-open body>#pepiNativeReviewHost{display:block!important;max-width:1060px;margin:auto;padding:0 24px 48px;background:var(--pepi-study-paper,#fbfaf7);color:var(--pepi-study-ink,#302b23)}#pepiNativeReviewHost:empty{display:none!important}#pepiNativeReviewHost .review-panel{border:1px solid #ded9d0;border-radius:20px;padding:1.5rem;font:16px/1.6 system-ui,sans-serif;background:#fffdf8;margin:2rem auto;max-width:1000px}#pepiNativeReviewHost .review-panel>summary{font-weight:600;cursor:pointer}#pepiNativeReviewHost textarea{width:100%;box-sizing:border-box;min-height:160px;font:16px/1.7 system-ui,sans-serif;padding:1rem;border:1px solid #c8bda9;border-radius:14px}#pepiNativeReviewHost button,#pepiNativeReviewHost .review-upload{min-height:44px;border:1px solid #b9a476;border-radius:12px;padding:.55rem .9rem;margin:.3rem;background:#f5f0e5;color:#302b23;cursor:pointer}#pepiNativeReviewHost .reference-photos{display:flex;flex-wrap:wrap;gap:1rem}#pepiNativeReviewHost .reference-photo{max-width:220px;margin:0}#pepiNativeReviewHost .reference-photo img{max-width:100%;height:150px;object-fit:contain}#pepiNativeReviewHost .review-toolbar,#pepiNativeReviewHost .review-scopes{display:flex;gap:.5rem;flex-wrap:wrap;margin:1rem 0}
/* Reference-inspired account presentation around the original form. */
#screen-member.active{max-width:1120px;margin:2rem auto;padding:clamp(16px,4vw,44px);background:#eee6dc;border-radius:30px}#screen-member .member-hero{background:#dccbb7;border-radius:26px;position:relative;min-height:260px;padding:2rem;display:grid;grid-template-columns:1fr 220px;gap:1rem;align-items:center}#screen-member .member-hero .member-plan-badge{position:absolute;right:22px;top:18px}#screen-member .pepi-auth-books{width:220px;height:220px;object-fit:contain}#screen-member .member-login-card{position:relative;overflow:visible;border-radius:28px;background:#fffdf8;max-width:520px;margin:2rem auto;padding:2rem;border:1px solid #ddd0bb}#screen-member .pepi-auth-character{height:200px;margin:-2rem -2rem 1.5rem;background:#e5d5c4;border-radius:28px 28px 0 0;text-align:center}#screen-member .pepi-auth-giant{width:100%;height:260px;object-fit:contain;transform:translateY(-25px)}#screen-member .member-field-label{display:block;margin:1rem 0 .5rem}#screen-member #memberLoginForm input{border-radius:999px;padding:.85rem 1.2rem;background:#f4f1eb;border:1px solid #e2dbd0;font-size:16px;width:100%;box-sizing:border-box}#screen-member #memberLoginSubmit{border-radius:999px;padding:.9rem 1.5rem;justify-content:center;min-height:48px;width:100%}#screen-member .member-login-methods{display:flex;gap:.7rem;flex-wrap:wrap}#screen-member .member-login-methods button{border-radius:999px;padding:.6rem 1rem}#pepiMembershipArrival{padding:2rem!important;background:#eee6dc!important;color:#302b23!important}#pepiMembershipArrival>.pepi-arrival-art{border-radius:28px 28px 0 0;background:#e0cdb5;max-width:440px;width:100%;margin:0 auto;height:260px;box-sizing:border-box}#pepiMembershipArrival .pepi-auth-giant{height:300px;width:100%;object-fit:contain;transform:translateY(-25px)}#pepiMembershipArrival>div:not(.pepi-arrival-art){max-width:440px;width:100%;margin:-12px auto 0;border-radius:28px;background:#fffdf8;padding:2rem;box-sizing:border-box;position:relative}
[data-theme=dark] #pepiStudyRoom{--pepi-study-paper:#17130f;--pepi-study-ink:#f8f5ef}[data-theme=dark] #pepiStudyRoom :is(.rm-reader-pane,.fl-card,.fkd-lesson-preview){background:#211b15;color:#f8f5ef;border-color:#4b4032}[data-theme=dark] #pepiStudyRoom :is(p,h1,h2,h3,h4,label,legend){color:inherit}[data-theme=dark] #screen-member.active{background:#241e18}[data-theme=dark] #screen-member :is(.member-hero,.pepi-auth-character){background:#493d30}[data-theme=dark] #screen-member .member-login-card{background:#211b15;color:#f8f5ef}[data-theme=dark] #screen-member #memberLoginForm input{background:#31281f;color:#f8f5ef;border-color:#5a4b39}
@media(max-width:700px){#pepiStudyRoom .rm-workspace{grid-template-columns:1fr}#pepiStudyRoom .rm-reading-next{flex-direction:column;align-items:flex-start}#screen-member .member-hero{grid-template-columns:1fr;min-height:0;padding:1.5rem}#screen-member .pepi-auth-book-scene{text-align:center}#screen-member .pepi-auth-books{height:160px;width:200px}#screen-member .member-hero .member-plan-badge{position:static;grid-column:1}#screen-member .member-login-card{padding:1.5rem}#screen-member .pepi-auth-character{margin:-1.5rem -1.5rem 1.5rem}#pepiStudyRoom :is(input,textarea,select){font-size:16px!important}}
.pepi-connected-visible #pepiNativeReviewHost{display:none!important}
@media(min-width:850px){#screen-member.active:has(#memberSignedOut:not([hidden])){display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:2rem;align-items:stretch}#screen-member:has(#memberSignedOut:not([hidden]))>.member-hero{grid-column:1;grid-row:1;display:flex;flex-direction:column;justify-content:center;text-align:left;min-height:620px}#screen-member:has(#memberSignedOut:not([hidden]))>.member-hero>div:first-child{width:100%}#screen-member:has(#memberSignedOut:not([hidden]))>.member-hero .screen-title{font:500 38px/1.2 Georgia,'Pridi',serif;margin:1rem 0}#screen-member:has(#memberSignedOut:not([hidden])) #memberSignedOut{grid-column:2;grid-row:1}#screen-member:has(#memberSignedOut:not([hidden])) .member-login-card{margin:0;min-height:100%;box-sizing:border-box}#screen-member:has(#memberSignedOut:not([hidden]))>.fo-account-summary{display:none}#screen-member:has(#memberSignedOut:not([hidden]))>.pepi-account-return{grid-column:1/-1}}
