.hua-mobile-language-open,.hua-language-layer{display:none}

@media(max-width:930px){
  .hua-mobile-menu{height:calc(100dvh - 68px);max-height:calc(100dvh - 68px);padding-bottom:calc(88px + env(safe-area-inset-bottom))}
  .hua-mobile-menu>nav{clear:both!important;float:none!important;width:100%!important;min-width:0!important;grid-template-columns:minmax(0,1fr)!important}
  .hua-mobile-menu>nav>a{box-sizing:border-box;width:100%!important;min-width:0!important}
  .hua-mobile-language-open{position:static!important;display:flex;width:calc(100% - 16px);min-height:58px;margin:14px 8px 2px;padding:8px 10px;float:none!important;clear:both!important;align-items:center;justify-content:space-between;border:1px solid #e4e8ee;border-radius:13px;background:#f8fafc;color:#172033;text-align:left;cursor:pointer;box-sizing:border-box}
  .hua-mobile-language-open>span{display:flex;min-width:0;align-items:center;gap:10px}
  .hua-mobile-language-open>span>.hua-icon{width:21px;height:21px;color:var(--hua-blue)}
  .hua-mobile-language-open>span>span{display:grid;min-width:0;gap:2px}
  .hua-mobile-language-open small{color:#697586;font-size:11px;font-weight:700}
  .hua-mobile-language-open strong{overflow:hidden;color:#172033;font-size:14px;text-overflow:ellipsis;white-space:nowrap}
  .hua-mobile-language-open>.hua-icon{width:17px;height:17px;color:#8d98a8}

  .hua-language-layer{position:fixed;inset:0;z-index:1800;display:block}
  .hua-language-layer[hidden]{display:none!important}
  .hua-language-backdrop{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;background:rgba(10,25,47,.48);cursor:pointer}
  .hua-language-dialog{position:absolute;right:0;bottom:0;left:0;display:flex;height:min(780px,calc(100dvh - 12px));max-height:calc(100dvh - 12px);flex-direction:column;overflow:hidden;border:1px solid rgba(255,255,255,.72);border-radius:24px 24px 0 0;background:#fff;box-shadow:0 -22px 60px rgba(10,25,47,.2)}
  .hua-language-dialog>header{position:static!important;inset:auto!important;z-index:auto!important;float:none!important;clear:none!important;display:flex!important;width:auto!important;height:auto!important;min-height:76px!important;margin:0!important;padding:15px 18px 12px!important;align-items:center!important;justify-content:space-between!important;border:0!important;border-bottom:1px solid #edf0f4!important;background:linear-gradient(135deg,#fff8f8 0%,#f5f8ff 100%)!important;box-shadow:none!important;transform:none!important}
  .hua-language-dialog>header>div{display:flex;min-width:0;align-items:center;gap:11px}
  .hua-language-dialog>header>div>span{display:grid;width:40px;height:40px;flex:0 0 40px;border-radius:12px;background:linear-gradient(145deg,var(--hua-red),var(--hua-blue));color:#fff;place-items:center}
  .hua-language-dialog>header>div>span>.hua-icon{width:20px;height:20px}
  .hua-language-dialog>header>div>div{display:grid;min-width:0;gap:2px}
  .hua-language-dialog>header small{overflow:hidden;color:#697586;font-size:11px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}
  .hua-language-dialog>header h2{margin:0;color:#172033;font-size:21px;line-height:1.2}
  .hua-language-dialog>header>button{display:grid;width:44px;height:44px;flex:0 0 44px;padding:0;border:1px solid #dfe4ea;border-radius:13px;background:#fff;color:#172033;place-items:center;cursor:pointer}
  .hua-language-dialog>header>button>.hua-icon{width:20px;height:20px}

  .hua-language-search{position:relative;display:block;margin:14px 18px 10px}
  .hua-language-search>.hua-icon{position:absolute;top:50%;left:14px;width:19px;height:19px;color:#697586;transform:translateY(-50%);pointer-events:none}
  .hua-language-search input{width:100%;height:48px;padding:0 14px 0 43px;border:1px solid #dfe4ea;border-radius:13px;background:#f8fafc;color:#172033;font-size:16px;outline:none}
  .hua-language-search input:focus{border-color:rgba(31,91,166,.55);background:#fff;box-shadow:0 0 0 3px rgba(31,91,166,.12)}

  .hua-language-dialog-body{min-height:0;flex:1;padding:2px 18px calc(24px + env(safe-area-inset-bottom));overflow:auto;overscroll-behavior:contain}
  .hua-language-dialog-body>section{margin-top:16px}
  .hua-language-option[hidden],.hua-language-picker-group[hidden],.hua-language-priority[hidden],.hua-language-recent[hidden],.hua-language-empty[hidden]{display:none!important}
  .hua-language-dialog-body>section>strong,.hua-language-picker-group>small{display:block;margin-bottom:9px;color:#697586;font-size:11px;font-weight:800;letter-spacing:.02em}
  .hua-language-priority>div,.hua-language-recent>div,.hua-language-picker-group>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .hua-language-picker-group{margin-top:15px}
  .hua-language-option{display:flex;min-width:0;min-height:48px;padding:9px 11px;align-items:center;justify-content:space-between;gap:8px;border:1px solid #e1e6ed;border-radius:12px;background:#fff;color:#263244;line-height:1.25}
  .hua-language-option span{min-width:0;overflow-wrap:anywhere;font-size:13px;font-weight:720}
  .hua-language-option small{flex:0 0 auto;color:#8792a2;font-size:10px;font-weight:800}
  .hua-language-option.is-active{border-color:rgba(231,36,42,.38);background:var(--hua-red-soft);color:var(--hua-red);box-shadow:inset 3px 0 0 var(--hua-red)}
  .hua-language-roadmap{padding-top:15px;border-top:1px solid #edf0f4}
  .hua-language-roadmap>strong{display:flex!important;align-items:center;justify-content:space-between;gap:8px}
  .hua-language-roadmap>strong>small{display:grid;min-width:25px;height:25px;padding:0 7px;border-radius:999px;color:#5f6b7c;background:#edf1f5;place-items:center}
  .hua-language-roadmap-help{margin:7px 0 12px;color:#697586;font-size:12px;line-height:1.55}
  .hua-language-picker-group.is-roadmap>div{grid-template-columns:minmax(0,1fr)}
  .hua-language-option.is-pending{border-style:dashed;color:#667085;background:#f8fafc;cursor:not-allowed}
  .hua-language-option.is-pending small{max-width:104px;text-align:right;white-space:normal;line-height:1.2}
  .hua-language-option:active{transform:translateY(1px)}
  .hua-language-empty{margin:28px 0;padding:22px;border-radius:14px;background:#f8fafc;color:#697586;text-align:center;font-size:14px}
  .hua-language-open{overflow:hidden}
}

@media(max-width:350px){
  .hua-language-dialog{height:calc(100dvh - 6px);max-height:calc(100dvh - 6px)}
  .hua-language-dialog>header{padding-right:12px!important;padding-left:12px!important}
  .hua-language-search{margin-right:12px;margin-left:12px}
  .hua-language-dialog-body{padding-right:12px;padding-left:12px}
  .hua-language-option{padding-right:9px;padding-left:9px}
  .hua-language-option span{font-size:12px}
}

@media(prefers-reduced-motion:reduce){.hua-language-option:active{transform:none}}

@media(max-width:767px){
  .hua-language-dialog>header>button{width:48px;height:48px;flex-basis:48px}
}
