/* The chosen single-page poster is the lesson's actual working surface. */
/* Wide horizontal tiles follow the supplied lesson poster. */
.in-lesson .reference-shell>.study-bar{display:none}
.in-lesson .reference-shell>.catalog-view{padding:0;background:transparent;border:0;box-shadow:none}
.in-lesson .catalog-crumbs{padding:12px 18px;margin:0;background:#effffb;border-radius:16px 16px 0 0}
.lesson-poster{overflow:hidden;background:#edfcfa}
.lesson-poster-top{display:grid;grid-template-columns:minmax(0,23fr) minmax(0,47fr) minmax(0,30fr);gap:12px;align-items:center;padding:12px 12px 0 0}
.lesson-dna{align-self:stretch;min-height:395px;background:url('/biology-surround.png?v=upper-abdomen') left center/auto 100% no-repeat;display:flex;align-items:flex-start;justify-content:center}
.lesson-dna p{margin:18px 10px 0 35px;font-weight:800;font-style:italic;font-size:1.125rem;color:#064c58;text-shadow:0 1px white;background:#eefffaaf;border-radius:12px;padding:10px}
.lesson-poster-center{display:grid;gap:20px;min-width:0;padding:12px 0}
.poster-clock{padding:20px 15px;border:5px solid #7be6d5;border-radius:40px;background:linear-gradient(135deg,#20caba,#029f9e 55%,#008599);color:white;text-align:center;box-shadow:inset 0 3px 1px #ffffff66,0 8px 0 #008c9114}
.poster-clock>span{font-size:1.3rem;font-weight:800}.poster-clock>strong{display:block;font-size:clamp(2.4rem,4vw,4rem);font-variant-numeric:tabular-nums;line-height:1.25;letter-spacing:-2px;font-weight:800;margin:10px 0}
.poster-clock>small{font-size:1rem;display:block;line-height:1.6}.poster-clock>p{font-size:1.125rem;font-style:italic;margin:15px 0 0}
.poster-title{display:flex;gap:16px;align-items:center;padding:25px 20px;border:2px solid #ffc7a5;border-radius:24px;background:linear-gradient(125deg,#ff9467,#fc7558 55%,#ee604f);color:#123e4c;box-shadow:0 5px 0 #d15c3b20}
.poster-title-icon{color:#007f7b;background:#fff6ed;display:grid;place-items:center;width:58px;height:74px;border-radius:16px;flex-shrink:0}.poster-title-icon svg{width:40px;height:40px}
.poster-title h1{font-size:clamp(1.45rem,2.5vw,2.3rem);line-height:1.2;margin:5px 0 10px;overflow-wrap:anywhere}.poster-title p{font-size:1.125rem;margin:0;font-weight:700}.poster-title .eyebrow{font-size:.875rem;color:#3f3a2e;letter-spacing:.04em}
.lesson-anatomy{margin:0;min-width:0;align-self:center}.lesson-anatomy figcaption{text-align:center;font-size:1.2rem;font-style:italic;font-weight:700}.lesson-anatomy img{display:block;width:100%;height:auto;max-height:460px;object-fit:contain;mix-blend-mode:multiply}
.lesson-welcome-strip{display:flex;align-items:center;gap:18px;flex-wrap:wrap;padding:12px 20px;background:linear-gradient(90deg,#ecfff8,#fff,#e8fcfa);border-bottom:2px solid #b6e9de}
.lesson-student{width:130px;height:155px;object-fit:cover;object-position:top;border:5px solid #8ce1d0;border-radius:50%;background:#cff5ec}
.lesson-welcome-strip h2{font-size:1.5rem;margin:0 0 8px}.lesson-welcome-strip p{font-size:1rem;margin:5px 0;color:#315e6a}
.lesson-welcome-strip .visitor-badge{margin-left:auto;padding:18px;background:#e4f8fa;border:1px solid #b4dfe0}.lesson-welcome-strip .visitor-badge strong{font-size:1.8rem}
.poster-study{font:inherit;font-weight:800;border:2px solid #a1edda;border-radius:17px;background:linear-gradient(135deg,#00ad82,#007f81);color:white;padding:18px;cursor:pointer}.poster-study small{display:block;font-size:1rem;margin-top:7px}
.in-lesson .lesson-layout{padding:22px 18px;background:#f8fffd;border:2px solid white;border-radius:24px;margin-top:16px;grid-template-columns:minmax(0,1fr) 300px}
.in-lesson .resource-panel{padding:0;background:transparent;border:0;box-shadow:none}
.in-lesson .resource-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.in-lesson .resource-tile{min-height:168px;display:flex;flex-direction:column;justify-content:center;padding:16px;border:2px solid #ffffff;border-bottom-width:5px;box-shadow:0 4px 0 #11605c12}
.in-lesson .resource-heading h2{font-size:1.7rem}.in-lesson .resource-symbol{width:50px;height:54px}.in-lesson .resource-symbol svg{width:32px;height:32px}
.in-lesson .assistant-panel{background:linear-gradient(145deg,#d6f8f2,#efffff);border:2px solid #a0dfdb;border-radius:22px}
.in-lesson .scientist-note{display:none}
@media(max-width:1100px){.in-lesson .lesson-layout{grid-template-columns:minmax(0,1fr) 260px}.in-lesson .resource-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.lesson-welcome-strip{gap:12px}.lesson-welcome-strip .visitor-badge{margin-left:0}.poster-title{padding:18px 12px;gap:10px}}
@media(max-width:760px){.lesson-poster-top{grid-template-columns:1fr;position:relative;padding:14px}.lesson-dna{display:none}.lesson-poster-center{padding:0}.poster-clock{border-radius:35px;padding:22px 12px}.poster-clock>strong{font-size:3.3rem;letter-spacing:-1px}.poster-title h1{font-size:1.6rem}.lesson-anatomy{max-width:280px;justify-self:center}.lesson-anatomy img{max-height:320px}.lesson-anatomy figcaption{font-size:1rem}.lesson-student{width:95px;height:115px}.lesson-welcome-strip{padding:14px}.lesson-welcome-strip>div:nth-child(2){flex:1;min-width:170px}.lesson-welcome-strip h2{font-size:1.3rem}.lesson-welcome-strip .visitor-badge{flex:1}.poster-study{flex:1}.in-lesson .lesson-layout{padding:16px 12px;grid-template-columns:1fr}.in-lesson .resource-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.in-lesson .resource-tile{padding:12px;min-height:160px}}
@media(max-width:390px){.in-lesson .resource-grid{grid-template-columns:1fr}.poster-clock>strong{font-size:2.8rem}}

/* Final poster composition, shared by every unlocked lesson. */
.in-lesson .reference-shell{max-width:1360px}
.in-lesson .lesson-poster-top{grid-template-columns:27fr 43fr 30fr;gap:8px;align-items:center}
.in-lesson .poster-clock{border-radius:65px;padding:25px 12px}
.in-lesson .poster-title{border-radius:22px;padding:24px 16px}
.in-lesson .lesson-welcome-strip{border:0;border-radius:24px;margin-top:10px;box-shadow:0 2px 15px #1ba59b12}
.in-lesson .lesson-student{width:140px;height:150px;border:5px solid #70d9c4;border-radius:50%;object-fit:contain;background:#d1f8eb}
.in-lesson .lesson-layout{grid-template-columns:minmax(0,72fr) minmax(250px,28fr);gap:14px;padding:22px 16px;margin-top:16px;border-radius:27px;background:#ffffffdd}
.in-lesson .resource-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.in-lesson .resource-tile{display:grid;grid-template-columns:44px minmax(0,1fr);align-content:center;align-items:center;column-gap:12px;row-gap:3px;min-height:150px;padding:16px 12px;border-radius:15px;color:#fff;background:linear-gradient(125deg,color-mix(in srgb,var(--tile) 76%,white),var(--tile));border:1px solid #ffffffa0;border-bottom:4px solid color-mix(in srgb,var(--tile) 85%,#004459);box-shadow:inset 0 2px 0 #ffffff38,0 3px 8px #008a9712}
.in-lesson .resource-tile .resource-symbol{grid-column:1;grid-row:1/4;align-self:center;width:44px;height:56px;padding:8px;margin:0;border-radius:13px;box-sizing:border-box;display:grid;place-items:center}
.in-lesson .resource-tile .resource-symbol svg{width:29px;height:29px}
.in-lesson .resource-panel .resource-tile strong{grid-column:2;font-size:1.125rem;line-height:1.3;margin:0;overflow-wrap:normal}
.in-lesson .resource-panel .resource-tile>span[lang]{grid-column:2;font-size:1rem;line-height:1.4;margin:0}
.in-lesson .resource-tile>small{display:none}
.in-lesson .resource-tile .resource-status{grid-column:2;justify-self:start;font-size:.875rem;line-height:1.3;padding:3px 5px;margin-top:6px;color:#fff;background:#06445675;border:0}
.in-lesson .resource-tile:nth-child(3),.in-lesson .resource-tile:nth-child(9){color:#123e4c}
.in-lesson .resource-tile:nth-child(3) .resource-status,.in-lesson .resource-tile:nth-child(9) .resource-status{color:#163e4a;background:#ffffffe0}
.in-lesson .resource-tile[data-pdf] .resource-status{background:#fff;color:#a52345}
.in-lesson .assistant-heading{display:flex;flex-wrap:wrap;gap:10px}
.in-lesson .assistant-heading .assistant-mascot{height:95px;width:95px}
.in-lesson .assistant-panel{border-radius:18px;padding:16px;background:linear-gradient(140deg,#c2f1eb,#effdfb 70%);border:2px solid #a7e4df}
.in-lesson .nature-world{margin-top:0;border-radius:0;background-size:100% 100%}
@media(max-width:960px){.in-lesson .lesson-layout{grid-template-columns:1fr}.in-lesson .lesson-sidebar{grid-template-columns:1fr}.in-lesson .assistant-panel{display:grid;grid-template-columns:1fr 1fr;gap:10px 20px}.in-lesson .assistant-heading{margin:0}.in-lesson .assistant-example{margin:0}.in-lesson .assistant-scope{line-height:1.6}.in-lesson .resource-tile{min-height:145px}}
@media(max-width:760px){.in-lesson .lesson-poster-top{grid-template-columns:1fr}.in-lesson .poster-clock{border-radius:35px}.in-lesson .resource-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.in-lesson .resource-tile{grid-template-columns:36px minmax(0,1fr);padding:12px 9px;column-gap:8px}.in-lesson .resource-tile .resource-symbol{width:36px;height:48px;padding:5px}.in-lesson .resource-panel .resource-tile strong{font-size:1.0625rem}.in-lesson .lesson-student{width:100px;height:130px}.in-lesson .assistant-panel{grid-template-columns:1fr}.in-lesson .nature-world{background-size:auto 100%}}
@media(max-width:420px){.in-lesson .resource-grid{grid-template-columns:1fr}.in-lesson .resource-tile{grid-template-columns:48px minmax(0,1fr);min-height:115px;padding:14px;gap:4px 14px}.in-lesson .resource-tile .resource-symbol{width:48px;height:58px}.in-lesson .resource-panel .resource-tile strong{font-size:1.25rem}}

.biolab-dialog{width:96vw;max-width:1500px;height:94dvh;max-height:96dvh;padding:0;border:2px solid #13b9b3;border-radius:22px;background:#07101e;color:white}.biolab-dialog::backdrop{background:#002c39b8}.biolab-dialog[open]{display:flex;flex-direction:column}.biolab-dialog>header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 18px;background:#008e94;flex-wrap:wrap}.biolab-dialog button{border:0;border-radius:10px;padding:10px;font-weight:800;cursor:pointer;background:white;color:#004951}.biolab-dialog iframe{width:100%;flex:1;border:0;min-height:0}

/* Compact, unbroken visit totals and a shorter mobile introduction. */
.visitor-badge strong,#homeVisitors,#lessonVisitors{white-space:nowrap;word-break:normal;overflow-wrap:normal;flex-shrink:0;font-variant-numeric:tabular-nums;direction:ltr}
.lesson-welcome-strip .visitor-badge{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 14px;min-width:180px}
.lesson-welcome-strip .visitor-badge strong{font-size:1.5rem}.lesson-welcome-strip .visitor-badge small{display:block;font-size:.75rem}
@media(max-width:760px){.lesson-anatomy{max-width:170px}.lesson-anatomy img{max-height:175px}.lesson-anatomy figcaption{font-size:.8rem}.poster-clock{padding:12px;border-radius:24px}.poster-clock>strong{font-size:2.4rem}.poster-clock p{margin:5px;font-size:.85rem}.lesson-welcome-strip{display:grid;grid-template-columns:56px minmax(0,1fr);gap:10px;padding:12px}.lesson-student{width:56px;height:76px}.lesson-welcome-strip>div:nth-child(2){min-width:0}.lesson-welcome-strip h2{font-size:1.05rem;margin-bottom:4px}.lesson-welcome-strip p{font-size:.8rem;line-height:1.4;margin:3px 0}.lesson-welcome-strip .visitor-badge{grid-column:1/-1;width:100%;min-width:0;margin:0;padding:7px 12px;font-size:.8rem}.lesson-welcome-strip .visitor-badge strong{font-size:1.4rem}.poster-study{grid-column:1/-1;padding:10px;font-size:1rem}.poster-study small{font-size:.8rem}}
