/* Download.chat — language switcher (modern, non-intrusive). */
.dc-lang { position: relative; margin-left: 8px; flex: 0 0 auto; }
.dc-lang__toggle {
	display: inline-flex; align-items: center; gap: 6px;
	background: var(--dc-surface); border: 1px solid var(--dc-border); color: var(--dc-text);
	border-radius: var(--dc-radius-pill); padding: 6px 12px; cursor: pointer; font: inherit; font-size: .85rem;
}
.dc-lang__toggle:hover { border-color: var(--dc-lavender); }
.dc-lang__current { max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-lang__menu {
	position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
	list-style: none; margin: 0; padding: 6px;
	background: var(--dc-surface-2); border: 1px solid var(--dc-border); border-radius: var(--dc-radius);
	box-shadow: var(--dc-shadow); max-height: 320px; overflow-y: auto;
	min-width: 190px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
}
.dc-lang__menu[hidden] { display: none; }
.dc-lang__item {
	display: block; padding: 7px 10px; border-radius: var(--dc-radius-sm); color: var(--dc-text);
	font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dc-lang__item:hover { background: rgba(184,166,255,.08); text-decoration: none; }
.dc-lang__item.is-active { background: var(--dc-accent-gradient); color: #0a0616; font-weight: 600; }
[dir="rtl"] .dc-lang__menu { left: 0; right: auto; }
@media (max-width: 600px) { .dc-lang__current { display: none; } .dc-lang__menu { grid-template-columns: 1fr; min-width: 150px; } }
/* RTL flow for the whole app when active. */
[dir="rtl"] .dc-msg--user { justify-content: flex-start; }
[dir="rtl"] .dc-msg--assistant { justify-content: flex-end; }
