/* Nút chọn giao diện Tự động / Sáng / Tối (vo_theme_switch ở ui-parts.php, script ở inc/theme-mode.php): đặt trong menu và footer. */
.vo-themes { display: grid; justify-items: start; gap: var(--vo-space-3); }   /* 12px: cùng khoảng giữa tiêu đề và danh sách ở footer (.vo-footer__title) */
.vo-themes__label { color: var(--vo-ink); font-size: var(--vo-fs-sm); font-weight: var(--vo-fw-700); line-height: 1.2; }   /* = .vo-footer__title (Platform, Regions), cả trong menu */
/* Nút đóng: cùng dáng nút chọn ngôn ngữ (.vo-langpick__btn) */
.vo-themes__cur {
	display: inline-flex;
	align-items: center;
	gap: var(--vo-space-2);
	min-height: var(--vo-btn);
	padding: 0 var(--vo-space-4);
	border: 1px solid var(--vo-divider);
	border-radius: var(--vo-radius-pill);
	font-weight: var(--vo-fw-650);
	background: none;
	color: inherit;
	font: inherit;
	font-weight: var(--vo-fw-650);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.vo-themes__now { display: inline-flex; align-items: center; gap: var(--vo-space-2); }
.vo-themes__now .vo-themes__chk { display: none; }   /* chữ ở nút đóng là bản sao của dòng đang chọn: bỏ dấu tick */
.vo-themes__caret { transition: transform var(--vo-dur-fast) var(--vo-ease); }
.vo-themes__pick.is-open .vo-themes__caret { transform: rotate(180deg); }
@media (hover: hover) { .vo-themes__cur:hover { background: var(--vo-hover); } }
/* Bảng nổi lên phía trên nút, cùng kiểu bảng chọn ngôn ngữ (.vo-footer .vo-langpick__list) */
.vo-themes__pick { position: relative; }
.vo-themes .vo-themes__list {   /* 2 class: .vo-footer ul { padding: 0 } (0,1,1) thắng luật 1 class làm mất đệm quanh các dòng */
	position: absolute;
	bottom: calc(100% + var(--vo-space-2));
	inset-inline-start: 0;
	z-index: 2;
	display: grid;
	min-width: max-content;
	margin: 0;
	padding: var(--vo-space-2);
	border-radius: var(--vo-radius-md);
	background: var(--vo-pop);
	box-shadow: 0 0 12px rgba(0,0,0,.12), var(--vo-shadow-mega);   /* vo-allow: cùng bóng bảng chọn ngôn ngữ */
	list-style: none;
	max-height: var(--_room, 70vh);
	overflow-y: auto;
	visibility: hidden;
	opacity: 0;
	transform: translateY(var(--vo-space-2));
	transition: opacity var(--vo-dur-fast) ease, transform var(--vo-dur) var(--vo-ease), visibility 0s linear var(--vo-dur);
}
.vo-themes__pick.is-open .vo-themes__list { visibility: visible; opacity: 1; transform: none; transition: opacity var(--vo-dur-fast) ease, transform var(--vo-dur) var(--vo-ease), visibility 0s; }
.vo-themes__btn {
	display: flex;
	align-items: center;
	gap: var(--vo-space-3);
	width: 100%;
	min-height: var(--vo-btn);
	padding: 0 var(--vo-space-3);
	border: 0;
	border-radius: var(--vo-radius-sm);
	background: none;
	color: inherit;
	font: inherit;
	font-weight: var(--vo-fw-500);
	text-align: start;
	cursor: pointer;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}
.vo-themes__btn .vo-themes__chk { display: none; margin-inline-start: auto; color: var(--vo-primary); }
.vo-themes__btn[aria-pressed="true"] { font-weight: var(--vo-fw-650); }
.vo-themes__btn[aria-pressed="true"] .vo-themes__chk { display: block; }
@media (hover: hover) { .vo-themes__btn:hover { background: var(--vo-hover); } }
.vo-menu__body .vo-themes { display: flex; align-items: center; justify-content: space-between; margin-block-start: var(--vo-space-4); }   /* chữ Appearance và nút nằm chung 1 hàng */
.vo-menu__body .vo-themes__label { font-size: var(--vo-menu-fs); font-weight: var(--vo-fw-600); }   /* cùng cỡ chữ với các dòng menu (Insight, Planning…) */
.vo-menu__body .vo-themes__list { inset-inline-start: auto; inset-inline-end: 0; }   /* nút nằm sát mép phải menu: bảng mở thẳng hàng mép phải nút, không tràn ra ngoài  */
/* Footer: nút ngôn ngữ và nút giao diện nằm chung 1 hàng ở mọi cỡ màn hình, chữ Appearance ẩn (nút đã có icon + tên chế độ; nhãn đọc màn hình ở aria-label của nhóm) */
.vo-footer__prefs { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--vo-space-3); }
.vo-footer__prefs .vo-langpick { margin: 0; }
.vo-footer__prefs .vo-themes__label { display: none; }
