#grammar-lab-app{margin:0 0 4rem;color:#193650;font-family:inherit;scroll-margin-top:5rem}
#grammar-lab-app *{box-sizing:border-box}
#grammar-lab-app button{font:inherit;cursor:pointer}
.gl-intro{display:flex;gap:2rem;align-items:end;justify-content:space-between;padding:2rem 0 2.5rem;border-bottom:1px solid #d8e1e5}
.gl-intro h2,.gl-module-head h2{font-size:clamp(1.8rem,3vw,2.7rem);line-height:1.15;margin:.45rem 0}
.gl-intro p,.gl-module-head p{max-width:44rem;line-height:1.6}
.gl-kicker,.gl-module-head>span,.gl-step>span,.gl-results>span,.gl-number{font-size:.78rem;font-weight:800;letter-spacing:.11em;color:#319b91}
.gl-primary,#grammar-lab-app .gl-card button,#grammar-lab-app .gl-question button,#grammar-lab-app .gl-challenge button,#grammar-lab-app .gl-step>button{border:0;border-radius:.5rem;background:#193650;color:#fff;padding:.75rem 1rem;font-weight:700}
.gl-primary:hover,#grammar-lab-app .gl-card button:hover,#grammar-lab-app .gl-question button:hover{background:#319b91}
#grammar-lab-app button:focus-visible,#grammar-lab-app input:focus-visible{outline:3px solid #e8b84d;outline-offset:3px}
.gl-category{margin:2.5rem 0}
.gl-category>h3{font-size:1.4rem;margin:0 0 1rem}
.gl-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1rem}
.gl-card,.gl-step,.gl-practice,.gl-results{background:#fff;border:1px solid #d8e1e5;border-radius:.85rem;padding:1.4rem;box-shadow:0 5px 25px rgba(25,54,80,.05)}
.gl-card{display:flex;flex-direction:column;min-height:15rem}
.gl-card-top,.gl-card-bottom{display:flex;justify-content:space-between;align-items:center;gap:.65rem}
.gl-card-top{font-size:.75rem;font-weight:800;color:#319b91;text-transform:uppercase;letter-spacing:.06em}
.gl-card h4{font-size:1.18rem;line-height:1.25;margin:1rem 0 .4rem}
.gl-card p{line-height:1.5;margin:0 0 1rem}
.gl-card-bottom{margin-top:auto;flex-wrap:wrap}
.gl-status{font-size:.8rem;color:#526a78}
.gl-card button{font-size:.86rem!important}
.gl-back{border:0;background:none;color:#193650;font-weight:700;padding:.5rem 0;margin:1rem 0}
.gl-module-head{border-bottom:1px solid #d8e1e5;margin:0 0 1.5rem;padding-bottom:1.2rem}
.gl-step,.gl-practice{margin:1.2rem 0}
.gl-step h3,.gl-practice h3,.gl-results h3{margin:.5rem 0 1rem;font-size:1.5rem}
.gl-step p,.gl-practice>p{line-height:1.6}
.gl-step blockquote{border-left:4px solid #f07861;margin:1rem 0;padding:.7rem 1rem;background:#f9f5f2;font-size:1.12rem}
.gl-examples{background:#edf7f5;padding:1rem 1.3rem;border-radius:.5rem;line-height:1.6}
.gl-examples ul{margin:.5rem 0 0;padding-left:1.2rem}
.gl-question,.gl-challenge{padding:1.15rem 0;border-top:1px solid #d8e1e5}
.gl-question h4{font-size:1.05rem;margin:.45rem 0 .8rem}
.gl-question fieldset{border:0;padding:0;margin:0 0 .75rem;display:flex;flex-wrap:wrap;gap:.55rem}
.gl-question fieldset label{display:flex;align-items:center;gap:.35rem;border:1px solid #b9cbd0;border-radius:.45rem;padding:.55rem .7rem;cursor:pointer}
.gl-question fieldset label:has(input:checked){background:#edf7f5;border-color:#319b91}
.gl-text-label,.gl-challenge label{display:block;font-size:.85rem;font-weight:700;margin-bottom:.35rem}
.gl-question input[type=text],.gl-challenge input,.gl-spot-input{width:min(100%,34rem);display:block;border:1px solid #9fb3bd;border-radius:.4rem;padding:.6rem;margin-bottom:.65rem;font:inherit}
.gl-feedback:not(:empty){margin:.8rem 0;background:#edf7f5;border-left:4px solid #319b91;padding:.7rem .9rem;line-height:1.5}
.gl-feedback p{margin:.3rem 0}
.gl-progress{height:.4rem;background:#d8e1e5;border-radius:1rem;overflow:hidden;margin:1rem 0}
.gl-progress span{display:block;height:100%;background:#319b91}
.gl-results{margin:1.2rem 0;background:#fff9eb;border-color:#e8b84d}
.gl-score strong{font-size:1.9rem}
.gl-missed ul{padding-left:1.2rem;line-height:1.8}
.gl-missed li span{font-weight:700}
.gl-recommendations{display:grid;gap:.5rem;margin:1rem 0}
.gl-theme{display:flex;justify-content:space-between;gap:1rem;padding:.45rem 0;border-bottom:1px solid #d8e1e5}
.gl-recommendations button{display:flex;justify-content:space-between;gap:1rem;padding:.7rem;border:1px solid #b9cbd0;border-radius:.4rem;background:#fff;color:#193650;text-align:left}
.gl-challenge>strong{display:block;margin-bottom:.6rem}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:700px){.gl-intro{display:block}.gl-intro .gl-primary{margin-top:1rem;width:100%}.gl-card-bottom{align-items:start}.gl-question fieldset{display:grid}.gl-recommendations button{display:block}}
