.language-switch {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: 110px;
  min-height: 36px;
}
.language-switch select {
  width: 100%;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  color: #fff;
  background: #141414;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0;
  cursor: pointer;
}
.language-switch select:focus-visible { outline: 2px solid #ff5100; outline-offset: 3px; }
.file-input-shell { position: relative; min-width: 0; }
.file-input-shell input[type="file"] { position: relative; z-index: 1; opacity: 0; cursor: pointer; }
.file-picker-display {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: #fff;
  background: #111;
  font-size: 14px;
  font-weight: 700;
  pointer-events: none;
}
.file-input-shell:focus-within .file-picker-display { outline: 2px solid #ff5100; outline-offset: 2px; }
.file-input-shell:has(input:disabled) .file-picker-display { opacity: 0.5; }
#authError, #feishuBindError, .i18n-diagnostic { white-space: pre-wrap; overflow-wrap: anywhere; }
#authError, #feishuBindError { max-height: 240px; overflow-y: auto; }
.hero-language {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 12;
  pointer-events: auto;
}
body.workspace-entered .hero-language { display: none; }
.account-topbar .language-switch { margin-left: auto; margin-right: 16px; }
html[lang="en"] .top-bar { flex-wrap: wrap; }
html[lang="en"] .top-bar h1 { min-width: 0; overflow-wrap: anywhere; line-height: 1.5; }
html[lang="en"] .user-badge > button { min-width: 96px !important; }
html[lang="en"] .option-item { white-space: normal; }
html[lang="en"] .option-item span { min-width: 0; overflow-wrap: anywhere; }
html[lang="en"] .slider-header { gap: 12px; }
html[lang="en"] .slider-header label { min-width: 0; line-height: 1.4; }
html[lang="en"] .slider-header .value { flex: 0 0 auto; }
html[lang="en"] .quad-screen-fields { grid-template-columns: minmax(0, 1fr); }
html[lang="en"] .quad-screen-fields label { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
html[lang="en"] .user-badge { min-width: 0; max-width: 100%; flex-wrap: wrap; }
html[lang="en"] #userLabel { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
html[lang="en"] .account-menu button { line-height: 1.4; white-space: normal; }
html[lang="en"] .account-status { overflow-wrap: anywhere; white-space: normal; }
html[lang="en"] .action-deck button { white-space: normal; line-height: 1.4; }
html[lang="en"] .admin-badge, html[lang="en"] .beta-badge { white-space: normal; }
html[lang="en"] .hero-copy-full h1 { letter-spacing: 0; }
@media (max-width: 720px) {
  .hero-language { top: 16px; right: 16px; }
  .top-bar .language-switch { width: 96px; margin-left: auto; }
  .top-bar .user-badge { width: 100%; flex-wrap: wrap; justify-content: flex-end; }
  .account-topbar { flex-wrap: wrap; gap: 10px; min-height: 74px; height: auto; padding-top: 12px; padding-bottom: 12px; }
  .account-topbar .language-switch { width: 96px; margin-right: 0; }
  html[lang="en"] .top-bar h1 { flex: 1 1 100%; font-size: 14px; }
  html[lang="en"] .workspace-nav { margin-left: 0; }
  html[lang="en"] .account-back { font-size: 12px; }
  html[lang="en"] .account-menu button { min-width: 106px; }
  html[lang="en"] .image-advanced-grid label,
  html[lang="en"] .video-item-fields label { overflow-wrap: anywhere; line-height: 1.4; }
  html[lang="en"] .quad-screen-fields { grid-template-columns: 1fr; }
  html[lang="en"] .modal-switch { white-space: normal; line-height: 1.5; }
}
