.math2-hero{align-items:center}.math2-badges{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.math2-badges span{font-size:11px;font-weight:850;color:#4c1d95;background:#faf8ff;border:1px solid #ddd6fe;border-radius:999px;padding:6px 10px}.math2-card-kicker{font-size:10px;font-weight:950;text-transform:uppercase;letter-spacing:.12em;color:#7c3aed;margin-bottom:8px}.math2-hero-card strong{font-size:20px;line-height:1.2}.math2-builder{overflow:hidden}.math2-step{display:flex;gap:13px;align-items:flex-start;margin-bottom:8px}.math2-step>span{width:34px;height:34px;border-radius:10px;background:#ede9fe;color:#5b21b6;display:grid;place-items:center;font-weight:950}.math2-step h2{margin:0}.math2-step p{margin:3px 0 0;color:#64748b;font-size:13px}.math2-side-card h3{font-size:22px;margin-top:4px}.math2-preview{margin-top:22px;padding:24px;border:1px solid #c4b5fd;border-radius:22px;background:linear-gradient(180deg,#fff,#fbfaff);box-shadow:0 18px 46px rgba(76,29,149,.07)}.math2-preview[hidden]{display:none}.math2-preview-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.math2-preview-head h2{margin:3px 0 7px}.math2-preview-head p{margin:0;color:#56657a}.math2-score{min-width:110px;border:1px solid #ddd6fe;background:#fff;border-radius:16px;padding:12px;text-align:center}.math2-score strong{display:block;font-size:26px;color:#4c1d95}.math2-score span{font-size:10px;text-transform:uppercase;letter-spacing:.08em;font-weight:900;color:#7c3aed}.math2-preview-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:18px 0}.math2-preview-grid>div{border:1px solid #e2e8f0;border-radius:16px;padding:15px;background:#fff}.math2-preview-grid h3{font-size:14px;margin:0 0 8px}.math2-preview-grid ul{margin:0;padding-left:20px;color:#475569;line-height:1.55;font-size:13px}.math2-structure{display:grid;gap:8px}.math2-structure span{display:flex;justify-content:space-between;gap:12px;padding:8px 10px;background:#f8fafc;border-radius:10px;font-size:12px;color:#64748b}.math2-structure strong{color:#312e81}.math2-quality-list{display:grid;gap:8px}.math2-quality{display:flex;gap:10px;align-items:flex-start;padding:11px 12px;border-radius:13px;border:1px solid #e2e8f0;background:#fff}.math2-quality-icon{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;font-weight:950;flex:0 0 auto}.math2-quality.pass .math2-quality-icon{background:#dcfce7;color:#166534}.math2-quality.warn .math2-quality-icon{background:#fef3c7;color:#92400e}.math2-quality.fail .math2-quality-icon{background:#fee2e2;color:#991b1b}.math2-quality strong{display:block;font-size:12px;color:#24324a}.math2-quality p{margin:2px 0 0;font-size:11.5px;color:#64748b;line-height:1.45}.math2-repairs{margin-top:12px;padding:12px 14px;border-left:4px solid #8b5cf6;background:#faf5ff;border-radius:10px;color:#4c1d95;font-size:12px}.math2-repairs ul{margin:6px 0 0;padding-left:20px}.math2-preview-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:18px}.math2-preview-actions .btn{min-width:170px}@media(max-width:760px){.math2-preview-grid{grid-template-columns:1fr}.math2-preview-head{display:grid}.math2-score{width:100%}.math2-preview-actions{display:grid}.math2-preview-actions .btn{width:100%}.math2-badges{margin-bottom:6px}}

/* HQ v3.3 — get educators directly to Math Practice setup on tablets and phones. */
@media (max-width:900px){
 .math2-shell{display:flex;flex-direction:column}
 .math2-shell .math2-hero{display:contents}
 .math2-shell .math2-hero>div:first-child{order:0;padding:12px 0 4px}
 .math2-shell .math2-hero>div:first-child h1{font-size:clamp(30px,4.7vw,45px);line-height:1.08;margin:7px 0}
 .math2-shell .math2-hero>div:first-child p{font-size:15px;line-height:1.48;margin:4px 0}
 .math2-shell .math2-badges{margin-top:8px;margin-bottom:5px}
 .math2-shell .math2-layout{order:1;margin-top:10px}
 .math2-shell .math2-hero-card{order:2;margin-top:15px}
 .math2-shell .stem-card{padding:20px}
 .math2-shell .stem-field input,.math2-shell .stem-field select,.math2-shell .stem-field textarea{min-height:44px;font-size:16px}
}
@media (max-width:620px){
 .math2-shell .math2-hero>div:first-child{padding-top:6px}
 .math2-shell .math2-hero>div:first-child h1{font-size:32px}
 .math2-shell .math2-badges{display:none} /* decorative, redundant labels */
 .math2-shell .stem-card{padding:17px}
 .math2-shell .math2-step h2{font-size:23px}
 .math2-shell .stem-field{margin-top:11px}
}

/* U10: opaque local badge surface keeps text readable across the hero gradient. */
body.hq-polish.hq-polish-math-practice .math2-hero .math2-badges span{color:#123b67!important;background:#fff!important;border:1px solid #c9d9e9!important;border-radius:999px!important;padding:6px 10px!important}
body.hq-polish.hq-polish-math-practice .math2-hero .math2-badges span::before{color:#123b67!important;background:#123b67!important}
