/* Grammar Studio Phase 4 - scoped, no global overrides */
.g4-dashboard{margin:22px 0;padding:24px;border:1px solid #dce3f1;border-radius:18px;background:#fff;color:#17243e}.g4-dashboard h2{margin:5px 0}.g4-dashboard h3{margin:22px 0 12px}.g4-eyebrow{font-size:11px;font-weight:800;letter-spacing:.11em;color:#5363a2}.g4-muted{color:#56637b;line-height:1.6}.g4-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}.g4-metric{background:#f5f7fc;border:1px solid #e1e6f1;border-radius:12px;padding:15px}.g4-metric strong{display:block;font-size:25px;color:#202f56}.g4-metric span{font-size:12px;color:#52617c}.g4-queue-item{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid #e5e9f2;padding:12px 0}.g4-queue-item strong,.g4-queue-item small{display:block}.g4-queue-item small{color:#68758c;margin-top:3px}.g4-wrap{margin:20px 0;border:1px solid #dce3f1;border-radius:16px;padding:22px;background:#fff;color:#17243e}.g4-top h3{margin:0}.g4-top p{margin:7px 0 18px}.g4-sentence{padding:18px;background:#f3f6fb;border-radius:12px;margin:12px 0 16px;font-size:18px;font-weight:650;line-height:1.5}.g4-answer{display:block;width:100%;box-sizing:border-box;min-height:45px;border:1px solid #a9b6d0;border-radius:10px;padding:12px;font:inherit;color:#182742;background:#fff;margin-bottom:12px}.g4-wrap textarea.g4-answer{min-height:95px}.g4-wrap button.g4-btn,.g4-wrap button.g4-choice,.g4-dashboard button.g4-secondary,.lesson-top button.g4-toggle{border:1px solid #344d93;background:#344d93;color:#fff;border-radius:10px;padding:10px 15px;font-weight:700;cursor:pointer}.g4-wrap button.g4-choice{display:block;width:100%;text-align:left;background:#f6f8fd;color:#233660;border-color:#d4dded;margin:8px 0}.g4-dashboard button.g4-secondary{background:#fff;color:#263d80;white-space:nowrap}.g4-wrap button:focus-visible,.g4-dashboard button:focus-visible,.lesson-top button.g4-toggle:focus-visible{outline:3px solid #6f9de8;outline-offset:2px}.g4-wrap button:disabled{opacity:.6;cursor:default}.g4-feedback{margin:14px 0;padding:15px;border-radius:11px;border:1px solid #b5c9e2;background:#f2f6fc}.g4-correct{border-color:#8bc8a6;background:#effaf3}.g4-feedback p{margin:8px 0;line-height:1.55}@media(max-width:650px){.g4-metrics{grid-template-columns:1fr}.g4-dashboard,.g4-wrap{padding:16px}.g4-queue-item{align-items:flex-start;flex-direction:column}}