/* The workspace language selector shares the existing report/account row. */
body.ouyi-inline-locale { padding-top: 0; --ouyi-language-height: 0px; }
body.ouyi-inline-locale .app-shell,
body.ouyi-inline-locale .app { height: 100dvh; max-height: 100dvh; }
.top-actions > .ouyi-locale-control,
.top-actions > .school-language {
  position: static; inset: auto; z-index: auto; box-sizing: border-box;
  display: inline-flex; align-items: center; flex: 0 0 auto; order: -2;
  width: auto; height: 34px; min-height: 0; padding: 0; margin: 0;
  background: transparent; border: 0; gap: 0;
}
.top-actions > .ouyi-locale-control label,
.top-actions > .school-language .school-language-icon {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.top-actions > .ouyi-locale-control select,
.top-actions > .school-language select {
  box-sizing: border-box; width: 122px; max-width: 122px !important;
  min-height: 34px; border: 1px solid #344137; border-radius: 7px;
  padding: 5px 7px; background: #131b16; color: #dce6d9;
  font-size: 12px; cursor: pointer;
}
.top-actions > .ouyi-locale-control select:focus-visible,
.top-actions > .school-language select:focus-visible { outline: 2px solid #c6ff1a; outline-offset: 2px; }
.top-actions > .report-issue-button { order: -1; }
@media (max-width: 1100px) {
  .topbar .top-actions, .audio-topbar .top-actions { flex-wrap: wrap; gap: 6px; }
  .top-actions > .ouyi-locale-control select,
  .top-actions > .school-language select { width: 104px; max-width: 104px !important; }
  body.ouyi-inline-locale .audio-first-shell .audio-workspace { grid-template-rows: auto minmax(360px, 1fr) minmax(132px, 18vh) 52px; }
  body.ouyi-inline-locale .audio-first-shell .compact-topbar { height: auto; min-height: 58px; padding: 8px 0; gap: 8px; }
}
@media (max-width: 760px) {
  body.ouyi-inline-locale .audio-first-shell .compact-topbar { box-sizing: border-box; width: calc(100vw - 180px); max-width: calc(100vw - 180px); flex-wrap: wrap; }
  body.ouyi-inline-locale .audio-first-shell .audio-topbar-left { max-width: 100%; flex-wrap: wrap; }
  body.ouyi-inline-locale .audio-first-shell .top-actions { width: 100%; min-width: 0; justify-content: flex-start; }
}
@media (max-width: 480px) {
  body.ouyi-inline-locale .app-shell .topbar {
    box-sizing: border-box; width: calc(100vw - 82px); max-width: calc(100vw - 82px);
    display: flex; height: auto; min-height: 58px; flex-wrap: wrap; gap: 8px; padding: 10px;
  }
  body.ouyi-inline-locale .app-shell .top-workspace-controls { max-width: 100%; min-width: 0; flex-wrap: wrap; }
  body.ouyi-inline-locale .app-shell .top-actions { width: 100%; min-width: 0; justify-content: flex-start; gap: 6px; }
  body.ouyi-inline-locale .app-shell .top-actions button { padding: 7px; font-size: 11px; }
}
