/* One shared mode strip for Industry, account Vocabulary and the course chooser. */
html body :is(#sjindustry-app#sjindustry-app #modes,#s3-vocabulary#s3-vocabulary .sj-study-modes,#s3-flash-hub#s3-flash-hub .sj-study-modes,#rune-dual#rune-dual .sj-study-modes){display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:center!important;justify-content:flex-start!important;gap:5px!important;min-width:0;max-width:100%;grid-template-columns:none!important}
html body :is(#sjindustry-app#sjindustry-app#sjindustry-app #modes,#s3-vocabulary#s3-vocabulary#s3-vocabulary .sj-study-modes,#s3-flash-hub#s3-flash-hub#s3-flash-hub .sj-study-modes,#rune-dual#rune-dual#rune-dual .sj-study-modes)>:is(a,span):not(.sv-audio-sources,.rq-audio-sources){display:inline-flex!important;flex:0 0 auto!important;align-items:center!important;justify-content:center!important;gap:5px!important;min-width:0!important;width:auto!important;height:34px!important;min-height:34px!important;margin:0!important;padding:4px 9px!important;border:1px solid #d9d9d9!important;border-radius:8px!important;background:#fff!important;color:#000!important;box-shadow:none!important;transform:none!important;font:750 13px/1.2 var(--sj-font-mixed,'Segoe UI',sans-serif)!important;text-decoration:none!important;white-space:nowrap!important}
html body :is(#sjindustry-app#sjindustry-app#sjindustry-app #modes,#s3-vocabulary#s3-vocabulary#s3-vocabulary .sj-study-modes,#s3-flash-hub#s3-flash-hub#s3-flash-hub .sj-study-modes,#rune-dual#rune-dual#rune-dual .sj-study-modes)>:is(a,span):not(.sv-audio-sources,.rq-audio-sources):is(.active,[aria-current=page]){background:#000!important;border-color:#000!important;color:#fff!important}
html body .sj-study-modes :is(.sj-mode-long,.sj-mode-short){font:inherit!important;line-height:inherit!important}.sj-study-modes .sj-mode-short{display:none!important}
html body .sj-study-modes svg{display:block;width:16px!important;height:16px!important;min-width:16px;flex-shrink:0;stroke:currentColor}
.sj-native-frame{display:block;width:100%;min-width:0;border:0;background:#fff;min-height:400px}.sj-native-study{width:100%;min-width:0}
@media(max-width:700px){html body :is(#sjindustry-app#sjindustry-app#sjindustry-app #modes,#s3-vocabulary#s3-vocabulary#s3-vocabulary .sj-study-modes,#s3-flash-hub#s3-flash-hub#s3-flash-hub .sj-study-modes,#rune-dual#rune-dual#rune-dual .sj-study-modes)>:is(a,span):not(.sv-audio-sources,.rq-audio-sources){padding:4px 7px!important;font-size:11px!important;min-height:32px!important;height:auto!important}.sj-study-modes .sj-mode-long{display:none!important}.sj-study-modes .sj-mode-short{display:inline!important}}

/* Labels determine button width; legacy mobile grid sizing must not clip them. */
@layer sj-study-mode-fit {
 html body #sjindustry-app #modes.sj-study-modes {
  display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;
  align-items:center!important;justify-content:flex-start!important;gap:5px!important;
  grid-template-columns:none!important;grid-auto-flow:initial!important;max-width:100%!important;
 }
 html body #sjindustry-app #modes.sj-study-modes>.mode-tab {
  display:inline-flex!important;flex:0 0 auto!important;grid-column:auto!important;
  width:max-content!important;min-width:max-content!important;max-width:100%!important;
  white-space:nowrap!important;overflow-wrap:normal!important;box-sizing:border-box!important;
 }
}
