/* Shared navigation and small-screen accessibility; experiments remain separate. */
.module-home{display:inline-flex;align-items:center;min-height:40px;padding:8px 10px;border:1px solid #dfe5ec;border-radius:8px;color:#667085;background:white;text-decoration:none;font-size:12px;white-space:nowrap}
.topinner .title{min-width:0}.name-row input{min-width:0}.card{min-width:0}.panel-title h3{min-width:0;overflow-wrap:anywhere}
.classroom-banner{flex-wrap:wrap}.classroom-banner span:first-child{overflow-wrap:anywhere}.classroom-join input,.classroom-join button{min-height:46px}
@media(max-width:820px){
 .topbar .topinner{padding:8px 9px;gap:6px}.topbar .title{flex:1}.topbar h1{font-size:clamp(13px,3.7vw,16px)}.topbar .scorewrap,.topbar .scorebox{gap:6px;margin-left:0}.topbar .score{min-width:34px;font-size:18px}.topbar #resetBtn{padding:8px;min-height:40px;font-size:12px}.who{max-width:65px}
 .stagebar{top:var(--topbar-height,56px);scroll-padding-inline:12px}.stagebtn{min-height:42px!important}.classroom-banner{margin-top:4px;font-size:11px;gap:7px;padding:7px 9px}.classroom-banner span:first-child{flex:1 1 60%}.classroom-banner span:nth-child(2){order:3;flex:1 1 100%;margin:0}.classroom-banner button{min-height:40px;padding:8px}.module-home{padding:7px 9px;min-height:40px;font-size:11px}
 main{padding-bottom:calc(110px + env(safe-area-inset-bottom))!important}.name-row{flex-direction:column}.name-row input,.name-row .btn{width:100%}.control input[type=range]{height:44px;touch-action:pan-y}.panel-title{flex-wrap:wrap;gap:7px}.panel-title h3{font-size:16px}.badge{font-size:10px}.formula{font-size:18px;max-width:100%;overflow-x:auto}.matrixbox,.matrix{font-size:15px;max-width:100%;overflow-x:auto}.metric .v{font-size:15px;overflow-wrap:anywhere}.metric .k{font-size:11px}.mobile-nav button{min-height:46px}.mobile-nav{padding-bottom:calc(9px + env(safe-area-inset-bottom))}.stepper .btn,.modebtns .btn{min-height:44px;font-size:12px}.table-wrap{max-width:100%;overscroll-behavior-x:contain}.tbl{min-width:440px}.direction-grid{grid-template-columns:repeat(3,64px);grid-template-rows:repeat(3,52px)}.dirbtn{touch-action:manipulation}#tempCanvas{touch-action:pan-y}.classroom-overlay{padding:12px}.classroom-join{max-height:calc(100dvh - 24px);padding:22px}.classroom-join h2{font-size:22px}
}
@media(max-width:360px){.topbar .brand{display:none}.topbar .title h1{font-size:13px}.metric-row{gap:5px}.metric{padding:8px 5px}.metric .v{font-size:14px}}
