#dnLanguageDock{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:9999;
  font-family:Arial,sans-serif;
}
#dnLanguageToggle{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:12px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background:linear-gradient(180deg,rgba(31,15,49,.96),rgba(20,8,31,.96));
  color:#fff;
  cursor:pointer;
  box-shadow:0 18px 50px rgba(7,3,17,.42);
  min-height:48px;
}
#dnLanguageToggle:hover{border-color:rgba(255,255,255,.32)}
#dnLanguageToggle.dn-language-suggested::after{
  content:"";
  width:10px;
  height:10px;
  border-radius:50%;
  background:#22d3ee;
  box-shadow:0 0 0 4px rgba(34,211,238,.16);
}
#dnLanguagePanel{
  position:absolute;
  right:0;
  bottom:60px;
  width:min(460px,calc(100vw - 28px));
  max-height:min(70vh,720px);
  display:none;
  gap:12px;
  padding:16px;
  border-radius:20px;
  border:1px solid rgba(192,132,252,.22);
  background:linear-gradient(180deg,rgba(31,15,49,.98),rgba(20,8,31,.98));
  color:#f8f6ff;
  box-shadow:0 18px 50px rgba(7,3,17,.42);
  backdrop-filter:blur(10px);
  overflow:hidden;
}
#dnLanguagePanel.dn-open{display:grid}
.dn-language-title{font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:#c4b5fd;font-weight:700}
.dn-language-copy,.dn-language-note,.dn-language-browser{font-size:13px;line-height:1.55;color:#ddd6ee}
.dn-language-browser{display:none}
.dn-language-browser.dn-visible{display:block}
.dn-language-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  overflow:auto;
  max-height:42vh;
  padding-right:4px;
}
.dn-language-option{
  padding:11px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.05);
  color:#fff;
  cursor:pointer;
  font-size:14px;
  font-weight:700;
  white-space:normal;
  text-align:left;
  line-height:1.35;
  overflow-wrap:anywhere;
}
.dn-language-option:hover{border-color:rgba(255,255,255,.28)}
.dn-language-option.dn-active{
  border-color:rgba(34,211,238,.65);
  background:linear-gradient(180deg,rgba(34,211,238,.14),rgba(255,255,255,.05));
}
.dn-language-meta{display:flex;gap:8px;flex-wrap:wrap}
.dn-language-pill{
  display:inline-flex;
  align-items:center;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.05);
  font-size:12px;
  color:#d8d0ea;
}
.dn-language-toast{
  position:fixed;
  right:18px;
  bottom:88px;
  z-index:10000;
  max-width:min(360px,calc(100vw - 28px));
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(34,211,238,.45);
  background:linear-gradient(180deg,rgba(31,15,49,.98),rgba(20,8,31,.98));
  color:#f8f6ff;
  box-shadow:0 18px 50px rgba(7,3,17,.42);
  opacity:0;
  transform:translateY(8px);
  pointer-events:none;
  transition:opacity .18s ease,transform .18s ease;
}
.dn-language-toast.dn-visible{opacity:1;transform:translateY(0)}
@media (max-width:900px){
  #dnLanguagePanel{width:min(420px,calc(100vw - 24px))}
  .dn-language-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:46vh}
}
@media (max-width:700px){
  #dnLanguageDock{right:12px;bottom:12px}
  #dnLanguageToggle{min-height:44px;padding:10px 12px}
  #dnLanguagePanel{bottom:54px;width:min(360px,calc(100vw - 24px));max-height:min(72vh,680px)}
  .dn-language-grid{grid-template-columns:1fr 1fr}
}
