:root{--cream:#fffdf0;--green:#6ba044;--green-dark:#4f8034;--yellow:#ffcc32;--blue:#b7ddf4;--navy:#123b73;--ink:#1d3557;--muted:#72809a;--white:#fff;--line:#e8e9df;--shadow:0 10px 26px rgba(31,73,55,.08)}*{box-sizing:border-box}body{margin:0;background:#dfe9dd;color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.app-shell{width:min(100%,430px);min-height:100vh;margin:auto;background:var(--cream);overflow:hidden;position:relative}.topbar{height:68px;padding:0 20px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(18,59,115,.07);background:rgba(255,253,240,.9);position:sticky;top:0;z-index:2}.brand-mini{font-weight:800;letter-spacing:-.02em;color:var(--navy);display:flex;align-items:center;gap:8px}.brand-mark{font-size:21px}.icon-button{border:0;background:transparent;color:var(--navy);font-size:25px;width:34px;height:34px;cursor:pointer}.screen{padding:25px 20px 32px;min-height:calc(100vh - 68px)}.hero{text-align:center;padding:20px 12px 24px;position:relative}.hero-badge,.eyebrow{font-size:11px;font-weight:800;letter-spacing:.12em;color:var(--green-dark)}.hero h1{font-size:38px;line-height:1;margin:12px 0 8px;color:var(--navy);letter-spacing:-.05em}.subtitle{font-weight:700;color:var(--green-dark);font-size:16px;margin:0}.hero-copy{font-size:14px;line-height:1.5;color:var(--muted);max-width:260px;margin:14px auto 0}.bee-illustration{font-size:66px;background:var(--yellow);width:112px;height:112px;display:grid;place-items:center;border-radius:38% 62% 55% 45%;margin:23px auto 0;transform:rotate(-8deg);box-shadow:0 11px 0 #f1b922}.home-actions{display:grid;gap:11px}.action-button,.section-card{width:100%;border:1px solid var(--line);background:var(--white);color:var(--ink);border-radius:17px;min-height:69px;padding:12px 15px;display:flex;align-items:center;gap:12px;text-align:left;box-shadow:var(--shadow);cursor:pointer;font:inherit}.action-button>span:first-child{font-size:24px;width:30px;text-align:center}.action-button>span:nth-child(2){font-weight:800;flex:1}.action-button small,.section-card small{display:block;color:var(--muted);font-size:11px;font-weight:500;margin-top:3px}.action-button b,.section-card b{font-size:26px;font-weight:400;color:var(--muted)}.primary{background:var(--green);color:#fff;border-color:var(--green)}.primary small{color:#eaf5e3}.blue{border-left:5px solid #83c6e9}.yellow{border-left:5px solid var(--yellow)}.home-footer{display:flex;justify-content:center;gap:24px;padding-top:23px}.home-footer button{border:0;background:transparent;color:var(--muted);font-size:12px;cursor:pointer}.page-heading{padding:10px 2px 22px}.page-heading h2{font-size:30px;line-height:1.1;color:var(--navy);margin:8px 0}.page-heading p{margin:0;color:var(--muted);font-size:14px}.section-list,.topic-list{display:grid;gap:12px}.section-card{min-height:83px}.section-card>span:nth-child(2){flex:1}.section-card strong{display:block;font-size:15px}.section-icon{width:43px;height:43px;border-radius:14px;display:grid;place-items:center;font-size:23px;background:#e5f1df}.section-card.yellow .section-icon{background:#fff1bd}.section-card.blue .section-icon{background:#e0f2fc}.tip{display:flex;gap:10px;padding:15px;background:#eef7e9;border-radius:15px;margin-top:18px;font-size:12px;color:var(--green-dark);line-height:1.4}.tip p{margin:0}.topic-row{background:var(--white);border:1px solid var(--line);border-radius:14px;padding:14px;display:flex;align-items:center;gap:11px;cursor:pointer;box-shadow:0 4px 14px rgba(31,73,55,.04)}.topic-num{width:27px;height:27px;border-radius:9px;background:#eef7e9;color:var(--green-dark);display:grid;place-items:center;font-size:12px;font-weight:800}.topic-row strong{font-size:13px;display:block}.topic-row small{font-size:11px;color:var(--muted)}.topic-row b{margin-left:auto;color:var(--muted);font-size:20px;font-weight:400}.test-card,.purchase-card{background:#fff;border-radius:22px;padding:27px 22px;box-shadow:var(--shadow);text-align:center}.test-icon,.purchase-icon{width:70px;height:70px;border-radius:22px;background:#e0f2fc;display:grid;place-items:center;font-size:35px;margin:0 auto 18px}.test-card h3,.purchase-card h2{color:var(--navy);font-size:21px;margin:0 0 10px}.test-card p,.purchase-card li{color:var(--muted);font-size:13px;line-height:1.5}.wide{width:100%;border:0;border-radius:13px;padding:14px;font-weight:800;font-size:14px;cursor:pointer;margin-top:12px}.wide span{float:right;font-size:20px;line-height:14px}.empty-state{text-align:center;padding:55px 15px}.empty-state>div{font-size:60px}.empty-state h2{color:var(--navy)}.empty-state p{color:var(--muted);font-size:14px;line-height:1.5;margin:0 auto 22px;max-width:270px}.purchase-card{text-align:left}.purchase-card .purchase-icon{margin-left:0;background:#fff1bd}.purchase-card h2{margin-top:10px}.purchase-card ul{padding-left:20px}.purchase-card li{margin:12px 0}.purchase-card .wide{display:block}@media(min-width:431px){.app-shell{margin:28px auto;min-height:calc(100vh - 56px);border-radius:28px;box-shadow:0 20px 60px rgba(22,51,39,.18)}}
.detail-actions{display:grid;gap:18px}.detail-actions .wide{margin-top:0}.notes-button{background:#e0f2fc;color:#1276c7}
.question{text-align:left;border:0;border-top:1px solid var(--line);padding:18px 0;margin:0}.question legend{font-weight:800;color:var(--navy);line-height:1.4;padding:0 0 10px}.question label{display:block;padding:9px 0;color:var(--ink);font-size:14px}.question input{accent-color:var(--green)}
.question-image-wrap{position:relative;min-height:150px;display:grid;place-items:center;margin:0 0 14px;background:#f4f5ee;border-radius:12px;overflow:hidden}
.question-image{display:block;width:100%;max-height:280px;object-fit:contain;opacity:0}
.question-image-wrap.is-loaded .question-image{opacity:1}
.question-image-status,.question-image-retry{position:absolute;top:50%;left:12px;right:12px;transform:translateY(-50%);text-align:center;font-size:13px;color:var(--muted)}
.question-image-wrap.is-loaded .question-image-status{display:none}
.question-image-retry{padding:12px;border:1px solid #d8e9cf;border-radius:10px;background:#fff;color:var(--navy);font:inherit;font-size:13px;cursor:pointer}
.question-image-retry[hidden],.question-image-status[hidden]{display:none}
#testScreen .question label{position:relative;margin:4px 0;padding:10px 12px;border:1px solid transparent;border-radius:11px;line-height:1.4}
#testScreen .question label.answer-correct{background:#e5f5df;border-color:#75b66e;color:#205e2b}
#testScreen .question label.answer-incorrect{background:#fde8e6;border-color:#e58c84;color:#9b2c27}
#testScreen .question-feedback{display:block;min-height:18px;margin:7px 2px 0;font-size:12px;font-weight:700;color:#a23a34}
#testScreen .question-feedback.is-correct{color:#286d35}
.answer-burst{position:fixed;inset:0;pointer-events:none;z-index:1000;overflow:hidden}
.answer-particle{position:absolute;opacity:0;will-change:transform,opacity}
.answer-particle.ribbon{width:14px;height:30px}
.answer-particle.ribbon svg{display:block;width:100%;height:100%;transform:scale(var(--ribbon-scale,1));filter:drop-shadow(0 1px 1px #0002)}
.answer-particle.bee{width:auto;height:auto;background:none;font-size:16px;line-height:1}
.answer-launch-flash{position:absolute;width:110px;height:110px;border-radius:50%;background:radial-gradient(circle,#fff7bd 0%,#ffcc32a8 28%,#ffcc3200 72%);pointer-events:none;animation:bee-answer-flash 420ms ease-out forwards}
.test-sound-toggle{margin-top:10px;padding:8px 11px;border:1px solid #d8e9cf;border-radius:10px;background:#fff;color:var(--navy);font:inherit;font-size:12px;font-weight:700;cursor:pointer}
.test-sound-toggle:focus-visible{outline:2px solid var(--navy);outline-offset:2px}
@keyframes bee-answer-pop{0%{transform:scale(1)}45%{transform:scale(1.045)}100%{transform:scale(1)}}
@keyframes bee-answer-shake{0%,100%{transform:translateX(0)}25%{transform:translateX(-5px)}50%{transform:translateX(4px)}75%{transform:translateX(-2px)}}
@keyframes bee-answer-flash{0%{opacity:0;transform:translate(-50%,-50%) scale(.2)}35%{opacity:1;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(-50%,-50%) scale(1.5)}}
@media (prefers-reduced-motion:no-preference){
  #testScreen .question label.answer-correct{animation:bee-answer-pop 380ms ease-out}
  #testScreen .question label.answer-incorrect{animation:bee-answer-shake 360ms ease-in-out}
}
@media (prefers-reduced-motion:reduce){.answer-launch-flash{animation:none;opacity:0}}
.progress-card{background:#fff;border-radius:22px;padding:22px;box-shadow:var(--shadow)}.progress-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;text-align:center}.progress-stats>div{background:#f4f8ef;border-radius:14px;padding:14px 6px}.progress-stats strong{display:block;color:var(--navy);font-size:22px}.progress-stats small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.progress-message{color:var(--muted);font-size:13px;line-height:1.5;padding:20px 4px 8px;text-align:center}
.purchase-price{font-weight:800;color:var(--green-dark)!important;font-size:16px!important}.language-list{display:grid;gap:12px}.language-list .section-card{min-height:76px}
.hero-copy{white-space:pre-line}

/* Course cards and materials: one consistent treatment in both languages. */
.section-card.green{border-left:5px solid #9acb83}
.topic-row{text-align:left}
.topic-row .topic-num{flex:none}
.topic-row .topic-row-copy{flex:1;min-width:0;text-align:left}
.topic-row .topic-row-copy strong,.topic-row .topic-row-copy small{text-align:left}
.topic-row b{flex:none}
.detail-actions .detail-action{display:flex;align-items:center;justify-content:center;gap:12px;min-height:58px;background:#e8f3e2;color:var(--navy);border:1px solid #d8e9cf;text-decoration:none;text-align:center;line-height:1.3}
.detail-actions .detail-action:hover{background:#dcefd3}
.detail-actions .detail-action:disabled{opacity:.65;cursor:wait}
.detail-action .detail-action-icon{float:none;width:24px;height:24px;flex:none;display:grid;place-items:center;font-size:inherit;line-height:normal}
.detail-action .detail-action-icon svg{display:block;width:24px;height:24px}
.detail-action .detail-action-label{float:none;font-size:14px;line-height:1.3}
.detail-action .detail-action-label{text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.detail-image{display:block;width:100%;max-width:440px;max-height:440px;aspect-ratio:1;object-fit:contain;margin:0 auto 18px;border-radius:16px;background:var(--cream)}
.detail-image[hidden]{display:none}

/* Shared material layout for every course topic in both languages. */
#detailCard.topic-feature{
  max-width:500px;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  grid-template-areas:"status status" "image notes" "image test" "video video" "purchase purchase" "content content";
  gap:9px;
  text-align:left;
  padding:14px;
}
#detailCard.topic-feature.without-video{grid-template-areas:"status status" "image notes" "image test" "video video" "purchase purchase" "content content"}
#detailCard.topic-feature #detailStatus{grid-area:status;text-align:center;margin:0 0 2px}
#detailCard.topic-feature #detailImage{grid-area:image;width:100%;height:100%;min-height:0;max-width:none;max-height:none;aspect-ratio:auto;object-fit:cover;margin:0;border-radius:10px}
#detailCard.topic-feature #detailActions{display:contents}
#detailCard.topic-feature .detail-notes-button{grid-area:notes}
#detailCard.topic-feature .detail-test{grid-area:test}
#detailCard.topic-feature .detail-link{grid-area:video;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-content:start;column-gap:8px;row-gap:7px;padding:10px}
#detailCard.topic-feature .detail-link .detail-action-icon{grid-column:1;justify-self:end}
#detailCard.topic-feature .detail-link .detail-action-label{grid-column:2;max-width:none}
#detailCard.topic-feature .detail-video-unavailable{grid-area:video;min-height:44px;margin:0;background:#f3f5ee;color:var(--muted);cursor:default}
#detailCard.topic-feature .detail-video-unavailable .detail-action-label{text-decoration:none;max-width:none}
#detailCard.topic-feature.topic-locked .detail-locked-action,
#detailCard.topic-feature.topic-locked .detail-video-locked{background:#f3f5ee;color:#748092;border-color:#e4e8e0;cursor:default;opacity:1}
#detailCard.topic-feature.topic-locked .detail-locked-action:hover,
#detailCard.topic-feature.topic-locked .detail-video-locked:hover{background:#f3f5ee}
#detailCard.topic-feature.topic-locked .detail-locked-action .detail-action-label,
#detailCard.topic-feature.topic-locked .detail-video-locked .detail-action-label{text-decoration:underline}
#detailCard.topic-feature.topic-locked .detail-test{background:#6ba044;border-color:#5a903b;color:#fff}
#detailCard.topic-feature.topic-locked .detail-test:hover{background:#5a903b}
#detailCard.topic-feature .detail-notes-button,#detailCard.topic-feature .detail-test{min-height:68px;padding:8px;gap:7px}
#detailCard.topic-feature .detail-action-icon{width:24px;height:24px}
#detailCard.topic-feature .detail-action-label{max-width:105px}
#detailCard.topic-feature #detailNotes{grid-area:content}
#detailCard.topic-feature .detail-purchase{grid-area:purchase;width:100%;padding:17px 10px 5px;margin-top:0;border-radius:15px;box-shadow:none;text-align:left}
#detailCard.topic-feature .detail-purchase[hidden]{display:none}
#detailCard.topic-feature .detail-purchase h3{margin:8px 0 11px;color:var(--navy);font-size:20px;line-height:1.2}
#detailCard.topic-feature .detail-purchase .purchase-price{margin:0;color:var(--green-dark);font-weight:800;font-size:14px}
#detailCard.topic-feature .detail-purchase ul{margin:14px 0 12px;padding-left:18px}
#detailCard.topic-feature .detail-purchase li{margin:7px 0;font-size:12px}
#detailCard.topic-feature .detail-purchase .wide{margin-top:0;background:#6ba044;color:#fff;min-height:46px}
#detailCard.topic-feature .detail-purchase .wide:hover{background:#5a903b}
#detailScreen .detail-footer{padding:20px 0 4px}
.video-thumbnail{grid-column:1/-1;display:block;position:relative;width:100%;aspect-ratio:16/9;max-height:190px;overflow:hidden;border-radius:9px;background:#e4efd8}
.video-thumbnail img{display:block;width:100%;height:100%;object-fit:cover}
.video-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:rgba(26,31,34,.76);color:white;font-size:23px;padding-left:4px}
/* Section-specific video covers; text follows the selected course language. */
#detailCard.topic-feature .video-thumbnail.video-cover{max-height:none;container-type:inline-size;background-size:cover;background-position:center}
.video-cover--biology{background-image:url('./covers/general-biology-base.png')}
.video-cover--anatomy{background-image:url('./covers/anatomy-base.png')}
.video-cover-lesson,.video-cover-title,.video-cover-number{position:absolute;pointer-events:none}
.video-cover-lesson{top:7%;left:6%;color:#111;font:400 7cqw/1.1 Arial,sans-serif}
.video-cover-title{top:25%;left:6%;width:49%;max-height:58%;overflow:hidden;overflow-wrap:anywhere;text-align:left;color:#619737;font:900 5.1cqw/1.16 'DejaVu Sans',Arial,sans-serif;letter-spacing:-.04em;text-transform:uppercase}
.video-cover-title--long{font-size:4.1cqw}
.video-cover--anatomy .video-cover-title{color:#7850a5}
.video-cover-number{right:12%;bottom:-6%;color:#ffda41;font:italic 900 43cqw/1 Georgia,serif;-webkit-text-stroke:.5cqw #111;text-shadow:.8cqw .7cqw #111}
.video-cover--anatomy .video-cover-number{color:#fff0a1}
.video-cover .video-play{left:70%}
@media (max-width:699px) and (max-height:610px){
  #detailCard.topic-feature{gap:4px;padding:8px}
  #detailCard.topic-feature .detail-notes-button,#detailCard.topic-feature .detail-test{min-height:44px;padding:5px}
  #detailCard.topic-feature .detail-link{padding:7px;row-gap:4px}
  #detailCard.topic-feature .video-thumbnail{max-height:94px}
  #detailCard.topic-feature .video-thumbnail img{object-fit:contain}
  #detailScreen .detail-footer{padding-top:4px}
}

/* Keep the image and all three material actions in a short phone WebView. */
@media (max-width:699px){
  #detailScreen{padding:12px 16px;min-height:calc(100vh - 68px)}
  #detailScreen .page-heading{padding:0 2px 10px}
  #detailScreen .page-heading h2{font-size:clamp(21px,5.8vw,27px);line-height:1.1;margin:5px 0 4px}
  #detailScreen .page-heading p{font-size:12px;line-height:1.25}
  #detailCard{padding:12px 14px 14px}
  #detailImage{width:min(100%,clamp(72px,calc(100vh - 455px),320px));width:min(100%,clamp(72px,calc(100dvh - 455px),320px));height:auto;max-height:none;margin-bottom:6px}
  #detailStatus{font-size:12px;line-height:1.2;margin:4px 0 8px}
  #detailActions{gap:8px}
  #detailActions .detail-action{min-height:44px;padding:10px 12px}
}

/* Responsive learning dashboard: keep the phone layout, then use the available
   canvas for tablet and desktop rather than centering a narrow phone mockup. */
.home-footer button{min-height:44px;padding:10px 12px;border-radius:10px}
.icon-button{width:44px;height:44px;display:grid;place-items:center}
.icon-button[hidden]{display:none}
.topbar-menu{position:absolute;right:16px;top:calc(100% - 4px);width:min(260px,calc(100vw - 32px));padding:7px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 16px 38px rgba(18,59,115,.18);z-index:5}
.topbar-menu[hidden]{display:none}
.topbar-menu button{display:flex;align-items:center;gap:12px;width:100%;min-height:46px;padding:10px 12px;border:0;border-radius:10px;background:transparent;color:var(--ink);font-family:inherit;font-size:14px;font-weight:600;line-height:1.3;text-align:left;cursor:pointer}
.topbar-menu button:hover,.topbar-menu button:focus-visible{background:#eef7e9;outline:none}
.topbar-menu button span:first-child{width:23px;text-align:center;font-size:17px}
.bee-mobile-logo{display:none}
.telegram-fullscreen .app-shell{
  padding-top:calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px));
  padding-bottom:calc(var(--tg-safe-area-inset-bottom, 0px) + var(--tg-content-safe-area-inset-bottom, 0px));
}

@media (min-width:700px){
  .bee-emoji{display:none}
  .brand-mark .bee-mobile-logo{display:block;width:28px;height:28px;object-fit:contain}
  #homeScreen .bee-illustration{background:none;border-radius:0;box-shadow:none;transform:none;overflow:visible}
  #homeScreen .bee-illustration .bee-mobile-logo{display:block;width:100%;height:100%;object-fit:contain}
  body{background:linear-gradient(135deg,#e6f0df 0%,#dceaf0 100%)}
  .app-shell{width:min(calc(100% - 40px),1120px);min-height:calc(100vh - 40px);margin:20px auto;border-radius:28px;box-shadow:0 20px 60px rgba(22,51,39,.14)}
  .topbar{height:76px;padding:0 32px}
  .brand-mini{font-size:19px}
  .screen{min-height:calc(100vh - 116px);padding:32px clamp(28px,5vw,64px) 48px}
  #homeScreen:not([hidden]){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px 32px;align-content:center;align-items:center}
  #homeScreen .hero{align-self:stretch;display:flex;flex-direction:column;justify-content:center;min-height:410px;padding:36px 28px;background:linear-gradient(150deg,#eef8e8,#fff8d8);border-radius:28px}
  #homeScreen .hero h1{font-size:clamp(42px,5vw,62px)}
  #homeScreen .hero-copy{max-width:340px;font-size:16px}
  #homeScreen .bee-illustration{margin-top:30px}
  #homeScreen .home-actions{gap:14px}
  #homeScreen .action-button{min-height:82px;padding:16px 18px}
  #homeScreen .home-footer{grid-column:1/-1;padding-top:0}
  .page-heading{padding:6px 0 28px}
  .page-heading h2{font-size:clamp(32px,4vw,44px)}
  .page-heading p{font-size:16px}
  .section-list,.topic-list,.language-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
  .section-card{min-height:112px;padding:18px}
  .section-card strong{font-size:17px}
  .section-card small,.topic-row small{font-size:12px}
  .section-icon{width:52px;height:52px;font-size:27px;flex:none}
  .topic-row{min-height:78px;padding:16px}
  .topic-row>span:nth-child(2){min-width:0}
  .topic-row strong{font-size:14px;overflow-wrap:anywhere}
  .topic-num{flex:none}
  .tip{max-width:720px;font-size:14px;padding:18px}
  #detailScreen .page-heading,#testScreen .page-heading{max-width:800px;margin-inline:auto}
  .detail-card,.test-card{max-width:800px;margin-inline:auto}
  .progress-card{max-width:780px;margin-inline:auto;padding:32px}
  .progress-stats{gap:16px}
  .progress-stats>div{padding:22px 12px}
  .progress-stats strong{font-size:30px}
  .progress-stats small{font-size:12px}
  .purchase-card{max-width:780px;margin:10px auto;padding:38px 46px}
  .purchase-card h2{font-size:28px}
  .purchase-card li{font-size:15px}
  .language-list{max-width:780px}
}

@media (min-width:1100px){
  .app-shell{width:min(calc(100% - 64px),1180px);margin:32px auto;min-height:calc(100vh - 64px)}
  .screen{min-height:calc(100vh - 140px);padding:48px 64px 64px}
  #homeScreen:not([hidden]){grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:28px 48px}
  #homeScreen .hero{min-height:490px}
  #homeScreen .hero h1{font-size:64px}
  #homeScreen .action-button{min-height:96px}
  .section-list{gap:20px}
  .section-card{min-height:124px}
  .topic-list{gap:14px 20px}
}

@media (min-width:700px) and (max-height:600px){
  #homeScreen .hero{min-height:0;padding:22px}
  #homeScreen .bee-illustration{width:76px;height:76px;font-size:46px;margin-top:14px}
  #homeScreen .action-button{min-height:66px}
}

/* Review concept: a broader learning dashboard, using the prototype's
   original palette, type stack, emoji artwork, copy and navigation hooks. */
@media (min-width:700px){
  body{background:var(--cream)}
  .app-shell{width:100%;max-width:none;min-height:100vh;margin:0;border-radius:0;box-shadow:none}
  .topbar{height:82px;padding-inline:clamp(32px,6vw,96px);border-bottom:1px solid var(--line)}
  .brand-mini{font-size:21px}
  .screen{min-height:calc(100vh - 82px);padding:clamp(32px,5vw,72px) clamp(32px,6vw,96px) 56px}
  #homeScreen:not([hidden]){display:grid;grid-template-columns:1fr;align-content:center;gap:22px}
  #homeScreen .hero{min-height:280px;padding:28px 38px;display:grid;grid-template-columns:minmax(0,1fr) 180px;grid-template-rows:repeat(4,auto);align-content:center;align-items:center;text-align:left;column-gap:30px;background:#eef7e9;border:1px solid #dcebd3;box-shadow:none}
  #homeScreen .hero-badge,#homeScreen .hero h1,#homeScreen .subtitle,#homeScreen .hero-copy{grid-column:1;margin-left:0;margin-right:0}
  #homeScreen .hero h1{font-size:clamp(42px,6vw,58px);margin-block:12px 8px}
  #homeScreen .hero-copy{max-width:420px;font-size:16px}
  #homeScreen .bee-illustration{grid-column:2;grid-row:1/5;width:154px;height:154px;margin:0 auto;font-size:92px}
  #homeScreen .home-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
  #homeScreen .action-button{min-height:116px;padding:22px;border-radius:21px}
  #homeScreen .action-button>span:first-child{font-size:31px;width:40px}
  #homeScreen .action-button>span:nth-child(2){font-size:17px}
  #homeScreen .action-button small{font-size:12px;margin-top:6px}
  #homeScreen .home-footer{grid-column:1;justify-content:flex-start;gap:12px;padding:0}
  #homeScreen .home-footer button{background:#fff;border:1px solid var(--line);padding-inline:17px;color:var(--navy);font-weight:600}
  .page-heading{max-width:960px}
  .section-list,.topic-list{max-width:1120px}
  .section-card{border-radius:20px}
  .tip{max-width:1120px}
}
@media (min-width:1100px){
  .screen{padding-block:clamp(44px,6vh,88px)}
  #homeScreen:not([hidden]){grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);gap:22px 34px}
  #homeScreen .hero{grid-column:1;grid-row:1;min-height:480px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:50px 52px}
  #homeScreen .hero h1{font-size:clamp(50px,5vw,74px)}
  #homeScreen .bee-illustration{width:146px;height:146px;font-size:88px;margin:42px 0 0}
  #homeScreen .home-actions{grid-column:2;grid-row:1;align-self:stretch;grid-template-rows:repeat(2,minmax(0,1fr))}
  #homeScreen .action-button{min-height:0;align-items:flex-start;flex-direction:column;gap:12px;position:relative}
  #homeScreen .action-button>span:nth-child(2){flex:0;font-size:18px}
  #homeScreen .action-button b{position:absolute;right:22px;top:20px}
  #homeScreen .home-footer{grid-column:1/-1}
}
@media (min-width:700px) and (max-height:600px){
  #homeScreen .hero{min-height:0}
  #homeScreen .action-button{min-height:88px}
}

/* Gentle feedback on the home and lesson screens only. */
@keyframes bee-soft-arrive{
  from{opacity:.72;transform:translateY(7px)}
  to{opacity:1;transform:translateY(0)}
}
@media (prefers-reduced-motion:no-preference){
  #homeScreen.active .home-actions .action-button{animation:bee-soft-arrive 260ms ease-out both}
  #homeScreen.active .home-actions .action-button:nth-child(2){animation-delay:35ms}
  #homeScreen.active .home-actions .action-button:nth-child(3){animation-delay:70ms}
  #homeScreen.active .home-actions .action-button:nth-child(4){animation-delay:105ms}
  #detailScreen.active #detailCard.topic-feature{animation:bee-soft-arrive 240ms ease-out both}
  #homeScreen .action-button,#detailCard.topic-feature .detail-action:not(.detail-video-unavailable){transition:transform 150ms ease,box-shadow 150ms ease}
  #homeScreen .action-button:active,#detailCard.topic-feature .detail-action:not(.detail-video-unavailable):active{transform:scale(.985);box-shadow:0 3px 10px rgba(31,73,55,.09)}
}
@media (prefers-reduced-motion:no-preference) and (hover:hover){
  #homeScreen .action-button:hover,#detailCard.topic-feature .detail-action:not(.detail-video-unavailable):hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(31,73,55,.13)}
}
#homeScreen .action-button:focus-visible,#detailCard.topic-feature .detail-action:focus-visible{outline:2px solid var(--navy);outline-offset:3px}

/* In-app PDF reader. Pages are drawn as they enter the scroll area. */
.pdf-viewer{max-width:800px;margin:0 auto;background:#fff;border-radius:18px;padding:12px;box-shadow:var(--shadow)}
#pdfStatus{margin:8px;text-align:center;color:var(--muted);font-size:13px}
#pdfStatus:empty{display:none}
.pdf-pages{display:flex;flex-direction:column;align-items:flex-start;gap:10px;overflow-x:auto;background:#f5f5f2;border-radius:9px}
.pdf-page-slot{flex:none;background:#fff;box-shadow:0 1px 5px rgba(0,0,0,.13)}
.pdf-page-slot canvas{display:block;max-width:none}
.pdf-controls{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:9px;padding:7px 0 12px;position:sticky;top:68px;background:#fff;z-index:1;color:var(--navy);font-size:13px}
.pdf-controls[hidden]{display:none}
.pdf-controls button{width:34px;height:34px;border:1px solid var(--line);border-radius:9px;background:#e8f3e2;color:var(--navy);font-size:20px;cursor:pointer}
.pdf-controls button:disabled{opacity:.45;cursor:default}
#pdfPageCount,#pdfZoomLabel{min-width:45px;text-align:center}
.pdf-external{display:flex;align-items:center;gap:7px;margin:0 auto 12px;border:0;background:none;color:var(--navy);text-decoration:underline;font-size:13px;cursor:pointer}
.pdf-file-icon{display:inline-grid;place-items:center;width:29px;height:32px;border:1.5px solid currentColor;border-radius:4px;font-size:9px;font-weight:800;text-decoration:none}
