.live-gallery{display:grid;grid-template-columns:0.8fr 1.4fr;gap:22px;align-items:center;background:#273d6c;color:#fff;border-radius:16px;padding:40px}.live-gallery-copy .overline{color:#eecb78;direction:ltr}.live-gallery-copy h2{font-size:clamp(25px,3vw,40px);line-height:1.5;margin:12px 0}.live-gallery-copy h2 em{color:#f2ca75;font-style:normal}.live-gallery-copy p{color:#dbe4f5}.live-gallery-photos{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}.live-gallery-photos img{width:100%;height:160px;object-fit:cover;border-radius:9px;background:#eaeef4}.daily-story-dialog{border:0;padding:0;background:transparent;max-height:min(90vh,740px);max-width:min(92vw,430px);width:430px;overflow:visible;direction:rtl}.daily-story-dialog::backdrop{background:#101b31d9;backdrop-filter:blur(4px)}.story-shell{background:#fbf8f0;color:#25395f;border-radius:18px;overflow:hidden;padding:15px;box-shadow:0 20px 70px #0007}.story-bars{display:flex;gap:5px;direction:ltr}.story-bars i{display:block;flex:1;background:#cbd3dc;height:3px;border-radius:5px}.story-bars i.on{background:#e3b64f}.story-header{display:flex;align-items:center;gap:10px;padding:14px 0}.story-brand{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:#263d6d;color:#f7d785;font:italic 23px Georgia}.story-header>div{flex:1}.story-header b{display:block;font-size:13px}.story-header small{display:block;font:700 9px Arial;color:#8290a7;letter-spacing:1px}.story-close{width:44px;height:44px;border:0;background:#edf0f5;border-radius:50%;font-size:24px;color:#3b4d68}.story-page{min-height:290px;max-height:52vh;overflow:auto;padding:22px;background:repeating-linear-gradient(to bottom,#fff 0,#fff 33px,#dfe9f5 34px,#fff 35px);border:2px solid #8aa3c7;border-radius:12px;color:#273f69}.story-kicker{display:block;font:700 9px Arial;letter-spacing:1px;color:#a98740;direction:ltr;text-align:right}.story-page h2{font-size:24px;margin:18px 0 10px;line-height:1.5}.story-page p{font-size:14px;white-space:pre-wrap;line-height:1.9}.story-image{display:block;width:100%;max-height:220px;object-fit:contain;border-radius:8px;margin-top:14px;background:#edf0f5}.story-image[hidden]{display:none}.story-lock a{display:inline-flex;min-height:44px;align-items:center;padding:8px 18px;background:#263d6d;color:#fff;border-radius:8px;text-decoration:none}.story-nav{display:flex;justify-content:space-between;align-items:center;padding-top:12px}.story-nav button{border:0;border-radius:8px;background:#e8eef6;color:#274374;padding:9px 15px;min-height:44px;font-weight:700}.story-nav button:disabled{opacity:.35;cursor:default}.story-count{font:700 11px Arial;color:#8290a7}.story-close:focus-visible,.story-nav button:focus-visible{outline:3px solid #c78c32;outline-offset:3px}@media(max-width:700px){.live-gallery{grid-template-columns:1fr;padding:24px}.live-gallery-photos img{height:115px}.story-page{min-height:240px}.story-page h2{font-size:20px}}

.story-count{direction:ltr}
.home-teachers{max-width:1250px;margin:60px auto;padding:42px;display:flex;justify-content:space-between;align-items:center;gap:25px;background:#f8e9cf;border:1px solid #ead9bb;border-radius:18px;color:#253d6d}.home-teachers span{font:700 10px Arial;letter-spacing:2px;color:#ad8247}.home-teachers h2{font-size:clamp(23px,3vw,34px);margin:12px 0}.home-teachers p{color:#66718a}.home-teacher-links{display:flex;flex-wrap:wrap;gap:10px}.home-teacher-links a{display:inline-flex;align-items:center;min-height:46px;padding:12px 16px;border-radius:8px;background:#263f70;color:white;font-size:13px;font-weight:700;text-decoration:none}.home-teacher-links a+ a{background:white;color:#263f70;border:1px solid #b5c2d5}.home-free{max-width:1250px;margin:40px auto 70px;display:flex;align-items:center;flex-wrap:wrap;gap:10px;color:#273e6e}.home-free b{margin-left:12px}.home-free a{padding:10px 14px;min-height:44px;border:1px solid #cad5e3;border-radius:8px;color:#273e6e;background:#fff;text-decoration:none;font:600 13px Arial;display:flex;align-items:center}@media(max-width:700px){.home-teachers{margin:40px 18px;padding:24px;display:block}.home-teacher-links{margin-top:20px}.home-free{margin:30px 18px 50px}.home-free b{width:100%}}
.home-teachers{display:block!important;background:#f8f0e2!important;padding:40px!important}.home-teachers-head{display:flex;justify-content:space-between;align-items:center;gap:24px}.home-teachers-head p{max-width:600px;font-size:13px;line-height:1.9}.home-portrait-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;margin-top:30px}.home-teacher{text-align:center;display:block;color:#253d6d;text-decoration:none}.home-portrait-ring{display:block;width:min(100%,190px);aspect-ratio:1;position:relative;margin:0 auto 14px;padding:7px;border:2px solid #d5bd87;border-radius:50%;background:white}.home-portrait-ring img,.home-portrait-empty{display:grid;width:100%;height:100%;object-fit:cover;border-radius:50%;place-items:center;background:#e7edf7;font:italic 52px Georgia;color:#315492}.home-portrait-ring i{position:absolute;bottom:4%;left:4%;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#263f70;color:white;border:3px solid #f8f0e2;font:700 10px Arial;font-style:normal}.home-teacher b,.home-teacher small{display:block}.home-teacher b{font-size:16px}.home-teacher small{color:#6e7b8c;font-size:11px;margin-top:6px}.home-teacher:hover .home-portrait-ring{border-color:#315492}@media(max-width:700px){.home-teachers{padding:24px!important}.home-teachers-head{display:block}.home-portrait-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.home-portrait-ring{width:min(100%,150px)}.home-teacher b{font-size:13px}}
/* Daily English stories: progressive bars, clear controls and generous tap areas. */
.story-bars i{overflow:hidden;position:relative}.story-bars i span{display:block;height:100%;width:0;background:#e3b64f}.story-bars i.done span{width:100%}.story-bars i.on{background:#cbd3dc}.story-playing .story-bars i.on span{animation:story-progress 7s linear forwards}.daily-story-dialog:not(.story-playing) .story-bars i.on span{width:100%}@keyframes story-progress{to{width:100%}}.story-pause{width:40px;height:40px;min-height:40px;border:0;border-radius:50%;background:#e8eef7;color:#263f70;font-size:14px;cursor:pointer}.story-page{position:relative}.story-tap{position:absolute;z-index:2;top:0;bottom:0;width:19%;border:0;background:transparent;cursor:pointer}.story-tap:disabled{cursor:default}.story-tap-prev{right:0}.story-tap-next{left:0}.story-tap:focus-visible{outline:3px solid #315492;outline-offset:-4px}@media(prefers-reduced-motion:reduce){.story-playing .story-bars i.on span{animation:none;width:100%}}
.owner-quick{display:inline-flex;align-items:center;min-height:44px;border:1px solid #ffe4a5;border-radius:8px;padding:9px 14px;color:#fff3d1;background:#203960db;font-size:13px;font-weight:700;text-decoration:none}.daily-items button .daily-item-icon{border-radius:50%!important;outline:2px solid #e5bc5e;outline-offset:3px;margin:4px}.daily-items button:nth-child(2) .daily-item-icon{outline-color:#849fce}.daily-items button:nth-child(3) .daily-item-icon{outline-color:#8db996}
/* Story player: private-feeling editorial frame for public lessons. */
.daily-story-dialog{width:min(440px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);margin:auto;overflow:visible;color:#f6f6f2}
.daily-story-dialog::backdrop{background:rgba(13,24,45,.86);backdrop-filter:blur(6px)}
.story-shell{padding:14px;background:#20365e;color:#fff;border:1px solid #51627f;border-radius:16px;box-shadow:0 24px 70px #101a2b80}
.story-bars{gap:4px}.story-bars i{height:3px;background:#7d8ba2}.story-bars i.on{background:#7d8ba2}.story-bars i span{background:#f5d189;animation:none!important}.story-bars i.done span{width:100%!important}
.story-header{padding:12px 0;gap:10px}.story-brand{width:42px;height:42px;flex:none;border-radius:50%;border:1px solid #f2cb77;background:#f8d688;color:#20365e;font:italic 700 22px Georgia}.story-header b{font-size:14px;color:#fff}.story-header small{color:#cbd7e9;letter-spacing:1.2px;font-size:9px}.story-close,.story-pause{width:44px;height:44px;min-height:44px;flex:none;border:1px solid #70809c;border-radius:50%;background:#344b72;color:white;cursor:pointer}.story-close{font-size:25px}.story-pause:disabled{opacity:.5}
.story-page{position:relative;min-height:min(55vh,450px);max-height:min(58vh,500px);overflow:auto;padding:0;border:0;border-radius:10px;background:#faf7ef;color:#213657}.story-content{min-height:inherit;padding:32px 42px 28px}.story-kicker{font-size:10px;letter-spacing:1.7px;color:#81602b}.story-page h2{font-size:clamp(22px,4vw,28px);line-height:1.55;margin:18px 0 10px;color:#192e52}.story-page p{font-size:15px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}.story-image{width:100%;max-height:240px;object-fit:contain;margin-top:20px;background:#f0ede5;border-radius:8px}.story-tap{width:14%;z-index:1}.story-tap-prev{right:0}.story-tap-next{left:0}.story-nav{padding-top:12px;gap:8px}.story-nav button{background:#344b72;color:#fff;min-height:44px}.story-nav button:disabled{opacity:.45}.story-count{font:600 13px Tahoma,sans-serif;color:#dbe4f1}.daily-story-dialog button:focus-visible{outline:3px solid #f3c66d;outline-offset:2px}
.home-teacher:focus-visible{outline:3px solid #315492;outline-offset:5px;border-radius:8px}.home-teacher small{font-size:13px}.home-teacher:hover .home-portrait-ring{border-color:#315492}
@media(max-width:600px){.daily-story-dialog{width:calc(100vw - 20px)}.story-shell{padding:11px}.story-content{padding:25px 34px}.story-page{min-height: min(52vh,400px);max-height:56vh}.story-page p{font-size:15px}.home-portrait-grid{gap:22px 12px}.home-teacher b{font-size:14px}}
@media(prefers-reduced-motion:reduce){.story-bars i.on span{transition:none!important}}
.story-count{direction:rtl;unicode-bidi:isolate}
/* Put the selected book on the right; the round book icon is its action. */
@media(min-width:801px){.shelf-layout{grid-template-columns:minmax(250px,.9fr) minmax(0,1.9fr)}.shelf-side{grid-column:1;grid-row:1}.cabinet{grid-column:2;grid-row:1}}
.shelf-side{min-height:570px}.chosen-book{padding:20px;gap:10px}.chosen-cover{width:min(190px,70%);margin:4px auto 8px;overflow:visible;isolation:isolate}.chosen-cover img{border-radius:5px 8px 8px 5px}.chosen-cover:after{border-radius:5px 8px 8px 5px}.chosen-meta h4{font-size:20px}.chosen-meta p{font-size:13px}.chosen-cover .shelf-open{position:absolute;left:50%;top:50%;z-index:4;transform:translate(-50%,-50%);width:64px;height:64px;min-height:64px;margin:0;padding:0;display:grid;place-items:center;border-radius:50%;border:2px solid #fff;background:#253b70;color:#fff;box-shadow:0 4px 20px #12244a99;cursor:pointer}.chosen-cover .shelf-open svg{width:30px;height:30px;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.chosen-cover .shelf-open:focus-visible{outline:3px solid white;outline-offset:5px}
@media(max-width:800px){.shelf-side{min-height:330px}.chosen-book{display:grid;grid-template-columns:1fr 130px;grid-template-rows:auto 1fr;text-align:right;gap:12px}.chosen-header{grid-column:1/3}.chosen-cover{grid-row:2;grid-column:2;width:125px}.chosen-meta{grid-row:2;grid-column:1}.chosen-cover .shelf-open{width:58px;height:58px;min-height:58px}}
.chosen-cover .shelf-open{left:calc(50% - 32px);top:calc(50% - 32px);transform:none}
@media(max-width:800px){.chosen-cover .shelf-open{left:calc(50% - 29px);top:calc(50% - 29px)}}
/* Inline stories live on the homepage; each card can pause independently. */
.inline-stories{margin-top:38px;padding:30px;background:#f5e9dc;border:1px solid #e8d7c3;border-radius:16px;color:#243558}
.inline-story-heading{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:20px}.inline-eyebrow{display:block;color:#916549;font:700 10px Arial;letter-spacing:1.6px;direction:ltr;text-align:right}.inline-story-heading h3{font-size:24px;margin:8px 0 4px}.inline-story-heading p{margin:0;color:#665f62;font-size:14px;line-height:1.8}.inline-hint{padding:7px 11px;border:1px solid #decbb5;border-radius:20px;background:#fffaf5}
.inline-story-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.inline-story{--card-bg:#253c6a;--card-sub:#dce6f5;--panel:#faf4e7;--panel-text:#22375c;--line:#f4cf7c;background:var(--card-bg);color:#fff;border-radius:14px;padding:14px;min-width:0;box-shadow:0 6px 16px #352a1d16}.story-practice{--card-bg:#436a67;--card-sub:#e2f1ec;--panel:#f5f7e9;--panel-text:#244947;--line:#d7e4a8}.story-reminder{--card-bg:#8d554b;--card-sub:#f6e8e2;--panel:#fff3e5;--panel-text:#65403b;--line:#ffdb9e}
.inline-story-top{display:flex;align-items:center;gap:10px;margin-bottom:12px}.inline-story-mark{width:42px;height:42px;display:grid;place-items:center;flex:none;border-radius:50%;background:var(--line);color:var(--card-bg);font-size:22px}.inline-story-top div{flex:1;min-width:0}.inline-story-top strong,.inline-story-top small{display:block}.inline-story-top strong{font-size:15px;line-height:1.5}.inline-story-top small{font:700 9px Arial;letter-spacing:1px;color:var(--card-sub);margin-top:3px;direction:ltr;text-align:right}.inline-toggle,.inline-story-bottom button{display:grid;place-items:center;border:1px solid #ffffff74;background:#ffffff19;color:#fff;border-radius:50%;width:44px;height:44px;cursor:pointer}.inline-toggle:disabled,.inline-story-bottom button:disabled{opacity:.45;cursor:default}.inline-progress{height:3px;border-radius:3px;background:#ffffff55;overflow:hidden}.inline-progress span{display:block;width:0;height:100%;background:var(--line)}
.inline-story-stage{border:0;display:flex;flex-direction:column;align-items:stretch;text-align:right;width:100%;height:290px;overflow:auto;margin:12px 0;background:var(--panel);color:var(--panel-text);padding:24px;border-radius:10px;cursor:pointer;position:relative}.inline-story-stage:disabled{cursor:default}.inline-slide-label{direction:ltr;text-align:right;font:700 10px Arial;letter-spacing:1.3px;color:#8b6a47;margin-bottom:18px}.inline-slide-title{font-size:20px;line-height:1.6}.inline-slide-copy{font-size:14px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;margin-top:8px}.inline-slide-image{width:100%;height:128px;flex:none;object-fit:contain;background:#ffffff77;border-radius:8px;margin-top:14px}.inline-slide-image[hidden]{display:none}.inline-story-bottom{display:flex;align-items:center;justify-content:space-between;min-height:44px;gap:8px}.inline-story-bottom span{font-size:13px;color:var(--card-sub)}.inline-story-bottom div{display:flex;gap:7px}.inline-stories button:focus-visible{outline:3px solid #e7b856;outline-offset:3px}
@media(max-width:950px){.inline-story-heading{align-items:start}.inline-story-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.inline-stories{margin-top:30px;padding:20px 16px}.inline-story-heading{display:block}.inline-story-heading h3{font-size:22px}.inline-story-heading .inline-hint{display:inline-block;margin-top:12px}.inline-story-grid{grid-template-columns:1fr;gap:12px}.inline-story-stage{height:235px;padding:20px}.inline-slide-title{font-size:19px}.inline-slide-image{height:100px}}
@media(prefers-reduced-motion:reduce){.inline-progress span{transition:none!important}}
/* Override the legacy action's spaced flex layout: the book icon is centered. */
.bookshelf .chosen-cover .shelf-open{display:flex;align-items:center;justify-content:center;gap:0;padding:0}
.inline-story-mark{font-family:Arial,sans-serif;font-weight:700}
/* Selected cover is the entire preview: no orange margin or stretched artwork. */
.bookshelf .chosen-book{display:block;padding:0;overflow:hidden;border-radius:inherit}
.bookshelf .chosen-cover{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;margin:0;overflow:hidden;border-radius:inherit;box-shadow:none}
.bookshelf .chosen-cover img{width:100%;height:100%;object-fit:cover;object-position:center;border-radius:inherit}
.bookshelf .chosen-cover:after{border-radius:inherit;box-shadow:inset 0 0 0 1px #00000012}
.bookshelf .chosen-header{position:absolute;top:14px;left:14px;right:14px;width:auto;z-index:5;display:flex;justify-content:flex-end}
.bookshelf .chosen-header>span{display:none}
.bookshelf .chosen-meta{display:none}
.bookshelf .chosen-cover .shelf-open{position:absolute;top:calc(50% - 32px);left:calc(50% - 32px);width:64px;height:64px;min-height:64px;margin:0;padding:0;border-radius:50%;display:flex;align-items:center;justify-content:center;gap:0;background:#243963e8;border:2px solid #fff;color:white;box-shadow:0 4px 20px #12244a99}
@media(max-width:800px){.bookshelf .shelf-side{min-height:0;aspect-ratio:2/3}.bookshelf .chosen-cover .shelf-open{top:calc(50% - 29px);left:calc(50% - 29px);width:58px;height:58px;min-height:58px}}
