/* Phone controls only; laptop and desktop rules remain untouched. */
@media(max-width:991px){
 html.sj-header-compact #sj-responsive-header#sj-responsive-header#sj-responsive-header#sj-responsive-header .sj-header-brand{flex:0 0 76px!important;width:76px!important;min-width:76px!important;align-self:center!important;margin:0!important;padding:0!important}
 html.sj-header-compact #sj-responsive-header#sj-responsive-header#sj-responsive-header#sj-responsive-header .sj-header-brand>a{width:76px!important;justify-content:flex-start!important;transform:none!important}
 html.sj-header-compact #sj-responsive-header#sj-responsive-header#sj-responsive-header#sj-responsive-header .sj-header-brand img{width:76px!important;height:34px!important;object-fit:contain!important;object-position:left center!important;margin:0!important}
 html body #sjindustry-app#sjindustry-app#sjindustry-app .industry-topbar{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:4px!important;height:auto!important;min-height:38px!important;padding:3px 4px!important;margin-bottom:6px!important;box-sizing:border-box!important}
 html body #sjindustry-app#sjindustry-app#sjindustry-app .industry-menu{flex:0 0 23px!important}
 html body #sjindustry-app#sjindustry-app#sjindustry-app #industry-menu>summary{width:23px!important;height:28px!important;min-height:28px!important;padding:0!important;border-radius:7px!important}
 html body #sjindustry-app#sjindustry-app#sjindustry-app #industry-menu .industry-back-icon{width:18px!important;height:18px!important}
 html body #sjindustry-app#sjindustry-app#sjindustry-app .industry-heading{display:flex!important;align-items:baseline!important;flex-wrap:nowrap!important;flex:1 1 auto!important;gap:3px!important;min-width:0!important}
 html body #sjindustry-app#sjindustry-app#sjindustry-app .industry-kicker{font-size:clamp(10px,2.8vw,14px)!important;line-height:1.3!important;white-space:nowrap!important;min-width:0!important;overflow:hidden;text-overflow:ellipsis}
 html body #sjindustry-app#sjindustry-app#sjindustry-app #industry-title{font-size:clamp(12px,3.55vw,18px)!important;line-height:1.3!important;white-space:nowrap!important;min-width:0!important;flex:0 0 auto!important}
 html body #sjindustry-app#sjindustry-app#sjindustry-app .hero-stats{display:flex!important;flex:0 0 37%!important;max-width:37%!important;flex-wrap:nowrap!important;gap:2px!important;margin:0!important;grid-column:auto!important}
 html body #sjindustry-app#sjindustry-app#sjindustry-app .hero-stats>span{flex:1 1 0!important;justify-content:center!important;min-width:0!important;text-align:center!important;font-size:clamp(8px,2.1vw,11px)!important;line-height:1.25!important;padding:4px 2px!important;min-height:0!important;border-radius:4px!important;white-space:normal!important;overflow-wrap:anywhere!important}
 html body #sjindustry-app#sjindustry-app#sjindustry-app .industry-thanks{flex:0 0 22px!important;margin:0!important}
 html body #sjindustry-app#sjindustry-app#sjindustry-app .industry-thanks>summary{display:flex!important;align-items:center!important;justify-content:center!important;width:22px!important;height:28px!important;min-width:0!important;min-height:0!important;gap:0!important;padding:0!important;border-radius:7px!important}
 html body #sjindustry-app#sjindustry-app#sjindustry-app .industry-thanks>summary .thanks-label{display:none!important}
 html body #sjindustry-app#sjindustry-app#sjindustry-app .industry-thanks>summary svg{width:15px!important;height:15px!important}
 html body #sjindustry-app#sjindustry-app#sjindustry-app #modes.mode-tabs{display:grid!important;grid-template-columns:repeat(20,minmax(0,1fr))!important;grid-auto-flow:row!important;gap:4px!important;width:100%!important;padding:0!important;margin:0 0 6px!important}
 html body #sjindustry-app#sjindustry-app#sjindustry-app #modes>.mode-tab{display:flex!important;align-items:center!important;justify-content:center!important;grid-column:span 4;gap:3px!important;min-width:0!important;min-height:31px!important;height:auto!important;padding:3px 2px!important;margin:0!important;font-size:clamp(10px,2.8vw,13px)!important;line-height:1.3!important;white-space:normal!important;overflow-wrap:anywhere!important;text-align:center!important;border-radius:7px!important;box-sizing:border-box!important}
 html body #sjindustry-app#sjindustry-app#sjindustry-app #modes>[data-mode=pdf]{grid-column:span 3}
 html body #sjindustry-app#sjindustry-app#sjindustry-app #modes>[data-mode=quiz]{grid-column:span 5}
 html body #sjindustry-app#sjindustry-app#sjindustry-app #modes>[data-mode=read]{grid-column:span 8}
 html body #sjindustry-app#sjindustry-app#sjindustry-app #modes>.mode-tab>svg{width:13px!important;height:13px!important;flex:0 0 13px!important}
 html body #sjindustry-app#sjindustry-app#sjindustry-app .pdf-reader-toolbar{display:flex!important;flex-wrap:wrap!important;gap:2px!important;padding:3px 6px!important;min-height:0!important}
 html body #sjindustry-app#sjindustry-app#sjindustry-app .pdf-reader-title{display:flex!important;align-items:center!important;flex:1 0 100%!important;gap:6px!important;min-height:18px!important;font-size:11px!important;line-height:1.2!important}
 html body #sjindustry-app#sjindustry-app#sjindustry-app .pdf-brand-logo{width:44px!important;height:18px!important}
 html body #sjindustry-app#sjindustry-app#sjindustry-app .pdf-reader-controls{display:grid!important;grid-template-columns:26px 50px 26px 26px minmax(0,1fr) 26px 26px 26px 26px!important;align-items:center!important;gap:2px!important;flex:1 0 100%!important;width:100%!important;min-width:0!important;margin:0!important}
 html body #sjindustry-app#sjindustry-app#sjindustry-app .pdf-reader-controls :is(button,a){display:flex!important;align-items:center!important;justify-content:center!important;width:26px!important;min-width:0!important;height:30px!important;min-height:30px!important;max-height:30px!important;padding:0!important;font-size:14px!important;line-height:1!important;border-radius:5px!important}
 html body #sjindustry-app#sjindustry-app#sjindustry-app .pdf-reader-controls label{display:flex!important;align-items:center!important;justify-content:center!important;gap:2px!important;min-width:0!important;white-space:nowrap!important;font-size:10px!important;line-height:1!important}
 html body #sjindustry-app#sjindustry-app#sjindustry-app #pdf-page{width:25px!important;min-width:0!important;height:30px!important;min-height:30px!important;padding:0!important;font-size:11px!important;-moz-appearance:textfield}
 html body #sjindustry-app#sjindustry-app#sjindustry-app #pdf-page::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}
 html body #sjindustry-app#sjindustry-app#sjindustry-app #pdf-zoom{width:100%!important;min-width:0!important;height:30px!important;min-height:30px!important;padding:2px!important;font-size:10px!important;line-height:1!important}
 html body #sjindustry-app#sjindustry-app#sjindustry-app .pdf-download-label{display:none!important}
 html body #sjindustry-app#sjindustry-app#sjindustry-app .pdf-reader-bottom{display:grid!important;grid-template-columns:auto auto minmax(0,1fr)!important;align-items:center!important;gap:6px!important;min-height:0!important;padding:4px 6px!important;font-size:11px!important;line-height:1.2!important}
 html body #sjindustry-app#sjindustry-app#sjindustry-app #pdf-position{grid-column:1!important;grid-row:1!important;white-space:nowrap!important}
 html body #sjindustry-app#sjindustry-app#sjindustry-app #pdf-scale{grid-column:2!important;grid-row:1!important;white-space:nowrap!important;font-size:10px!important}
 html body #sjindustry-app#sjindustry-app#sjindustry-app .pdf-bottom-navigation{display:flex!important;align-items:center!important;justify-content:flex-end!important;grid-column:3!important;grid-row:1!important;gap:4px!important;min-width:0!important;margin:0!important}
 html body #sjindustry-app#sjindustry-app#sjindustry-app .pdf-bottom-navigation button{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 1 auto!important;min-width:0!important;width:auto!important;min-height:32px!important;height:auto!important;margin:0!important;padding:5px 6px!important;font-size:11px!important;line-height:1.2!important;white-space:normal!important;overflow-wrap:anywhere!important;border-radius:7px!important}
}
@media(max-width:767px){
 html body #sjindustry-app#sjindustry-app#sjindustry-app .learning-layout{gap:5px!important}
 html body #sjindustry-app#sjindustry-app#sjindustry-app .lesson-rail{padding:2px 7px!important;min-height:0!important;border-radius:8px!important}
 html body #sjindustry-app#sjindustry-app#sjindustry-app .lesson-title{gap:5px!important;min-height:22px!important;margin:0!important}
 html body #sjindustry-app#sjindustry-app#sjindustry-app .lesson-title h2{font-size:12px!important;line-height:1.2!important}
 html body #sjindustry-app#sjindustry-app#sjindustry-app #lesson-toggle{height:22px!important;min-height:22px!important;padding:2px 7px!important;font-size:11px!important;line-height:1.2!important;white-space:nowrap!important;border-radius:7px!important}
 html body #sjindustry-app#sjindustry-app#sjindustry-app .lesson-rail.is-open .lesson-title{margin-bottom:6px!important}
 html body #sjindustry-app#sjindustry-app#sjindustry-app .toolbar{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;align-items:center!important;gap:1px 5px!important;min-height:0!important;margin:0 0 4px!important;padding:0!important}
 html body #sjindustry-app#sjindustry-app#sjindustry-app .study-heading{grid-row:1;grid-column:1;gap:4px!important;min-width:0!important}
 html body #sjindustry-app#sjindustry-app#sjindustry-app .toolbar .eyebrow{font-size:9px!important;line-height:1.2!important}
 html body #sjindustry-app#sjindustry-app#sjindustry-app .toolbar h2{font-size:14px!important;line-height:1.2!important;margin:0!important}
 html body #sjindustry-app#sjindustry-app#sjindustry-app #study-count{font-size:12px!important}
 html body #sjindustry-app#sjindustry-app#sjindustry-app .toolbar-actions{display:flex!important;grid-row:1;grid-column:2;gap:3px!important;min-width:0!important;width:100%!important;margin:0!important}
 html body #sjindustry-app#sjindustry-app#sjindustry-app #study-search{height:24px!important;min-height:24px!important;min-width:0!important;width:100%!important;font-size:10px!important;padding:3px 6px!important;border-radius:7px!important}
 html body #sjindustry-app#sjindustry-app#sjindustry-app #focus-mode{width:28px!important;min-width:28px!important;height:24px!important;min-height:24px!important;padding:0!important;font-size:15px!important;border-radius:7px!important}
 html body #sjindustry-app#sjindustry-app#sjindustry-app .lesson-stepper{grid-row:2;grid-column:1/-1;min-width:0!important;width:100%!important;gap:3px!important;order:0!important;flex-basis:auto!important}
 html body #sjindustry-app#sjindustry-app#sjindustry-app #current-lesson{font-size:11px!important;line-height:1.3!important;white-space:normal!important}
 html body #sjindustry-app#sjindustry-app#sjindustry-app .lesson-step{width:26px!important;flex-basis:26px!important;height:22px!important;min-height:22px!important}
 html body #sjindustry-app#sjindustry-app#sjindustry-app .lesson-step-art{transform:scale(.7);transform-origin:center}
}
@media(max-width:359px){
 html body #sjindustry-app#sjindustry-app#sjindustry-app .industry-topbar{gap:3px!important;padding-inline:2px!important}
 html body #sjindustry-app#sjindustry-app#sjindustry-app .industry-heading{gap:2px!important}
 html body #sjindustry-app#sjindustry-app#sjindustry-app .industry-kicker{font-size:8px!important}
 html body #sjindustry-app#sjindustry-app#sjindustry-app #industry-title{font-size:10px!important}
 html body #sjindustry-app#sjindustry-app#sjindustry-app .hero-stats>span{font-size:7px!important;padding-inline:2px!important}
 html body #sjindustry-app#sjindustry-app#sjindustry-app .pdf-bottom-navigation button{font-size:10px!important;padding-inline:4px!important}
}
@media(max-width:374px){html body #sjindustry-app#sjindustry-app#sjindustry-app #modes>.mode-tab>svg{display:none!important}}
