/* 原生语言选择框沿用顶栏的地球与箭头，移动端使用系统选择器。 */
.language-button { position: relative; padding: 0; cursor: pointer; }
.language-button select {
  min-width: 0; max-width: 205px; min-height: 40px; margin: 0; padding: 8px 0; border: 0;
  padding-inline: 29px 26px;
  background: transparent; color: inherit; font: inherit; cursor: pointer;
  appearance: none; -webkit-appearance: none;
}
.language-button select:focus { outline: none; }
/* 图标覆盖在选择框内部并穿透点击，文字、箭头和留白都由原生控件接收。 */
.language-button svg { position: absolute; top: 50%; transform: translateY(-50%); pointer-events: none; }
.language-button .language-icon { inset-inline-start: 5px; }
.language-button .chevron { inset-inline-end: 5px; }
.language-button:focus-within { background: #fff1e6; border-radius: 9px; }
.language-icon { width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.5; }
.auth-top-actions { display: flex; align-items: center; gap: 20px; min-width: 0; }
.auth-top-actions .language-button { display: inline-flex; align-items: center; gap: 7px; color: #44403c; font-size: 13px; }
.auth-top-actions .language-button select { max-width: 174px; min-height: 0; padding-block: 0; padding-inline: 24px 0; }
.auth-top-actions .language-icon { inset-inline-start: 0; }
.auth-top-actions .top-link { margin: 0; text-align: end; }
.brand-english, .language-code { display: inline-block; direction: ltr; unicode-bidi: isolate; }
.language-native { unicode-bidi: isolate; }
.account-name, .account-email, [type="email"], .code-input { direction: ltr; unicode-bidi: isolate; }
.plan-price, .renew-price, .dual-price strong, #order-amount { direction: ltr; unicode-bidi: isolate; }
.brand-tagline { white-space: normal; max-width: 260px; }
.account-menu-item { text-align: start; }
.feature-benefits li, .renew-benefits li { overflow-wrap: anywhere; }
.stat { hyphens: auto; }
/* RTL 使用逻辑方向，金额、品牌和邮箱仍按自身方向显示。 */
[dir="rtl"] .navigation { margin-left: 0; margin-right: auto; }
[dir="rtl"] .language-button { margin-left: 0; margin-right: 5px; }
[dir="rtl"] .account-dropdown { right: auto; left: 0; }
[dir="rtl"] .order-row dd, [dir="rtl"] .err { text-align: end; }
[dir="rtl"] .pricing-plan > .recommend-tag { right: auto; left: 12px; }
[dir="rtl"] .pay-check { right: auto; left: -6px; }
[dir="rtl"] .eye { right: auto; left: 6px; }
[dir="rtl"] .input.has-toggle { padding-right: 14px; padding-left: 42px; }
[dir="rtl"] .forgot, [dir="rtl"] .field-top .forgot { margin-left: 0; margin-right: auto; }
[dir="rtl"] .feature-benefits li { padding-left: 0; padding-right: 26px; }
[dir="rtl"] .feature-benefits li::before { left: auto; right: 3px; }
[dir="rtl"] .nav-divider { margin-left: 0; margin-right: auto; }
/* 译文长度不同：顶栏提前分行，并允许表单按钮与价格说明自然换行。 */
.code-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.send { white-space: normal; height: auto; min-height: 44px; padding: 8px 10px; }
.code-row .input { min-width: 0; }
.field-top { flex-wrap: wrap; }
.cta { height: auto; min-height: 44px; padding: 10px 14px; }
.input::placeholder { font-size: 13px; }
@media (min-width: 1321px) {
  html:not([lang="zh-CN"]):not([lang="zh-TW"]) .header-inner { gap: 12px; }
  html:not([lang="zh-CN"]):not([lang="zh-TW"]) .brand-tagline { max-width: 185px; font-size: 12px; }
  html:not([lang="zh-CN"]):not([lang="zh-TW"]) .nav-pages { gap: 4px; }
}
@media (max-width: 600px) {
  [dir="rtl"] .nav-divider { margin-right: 0; }
  .brand-tagline { max-width: 180px; font-size: 11px; }
  .auth-top-actions { gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
  .auth-top-actions .language-button select { max-width: 144px; }
  .auth-top-actions .top-link { font-size: 12px; }
  .top { gap: 12px; }
  .top-brand { min-width: 0; }
  .brand-sub { white-space: normal; max-width: 150px; }
  .renew-action { flex-wrap: wrap; }
}
