/* =====================================================================
   Giao diện Bài kiểm tra trắc nghiệm — Tôi Là Thảo Mộc.

   Một bộ token duy nhất ở :root; mọi thành phần lấy màu từ đây.
   Hơi vẻ riêng: nền rêu nhạt, mực đậm màu than tre, hoạ tiết "vi lỗ"
   gợi cấu trúc xốp của than tre hoạt tính. Font Be Vietnam Pro (bộ Việt).
   ===================================================================== */

:root{
	--tm-nen:   #F4F7F3;   /* nền trang, rêu rất nhạt lạnh */
	--tm-den:   #16241B;   /* mực than tre — hero, topbar */
	--tm-goc:   #1E5B3E;   /* xanh rêu đậm — nút chính, tiêu đề */
	--tm-la:    #2F9155;   /* xanh lá — điểm nhấn */
	--tm-sang:  #E7F2EA;   /* rêu phủ — nền ô đang chọn */
	--tm-vien:  #D8E3DA;   /* viền nhạt */
	--tm-chu:   #1C2B22;   /* chữ chính */
	--tm-mo:    #5C6B61;   /* chữ phụ */
	--tm-vang:  #B45309;   /* đồng hồ sắp hết */
	--tm-do:    #B3261E;   /* sai, hết giờ */
	--tm-trang: #FFFFFF;
	--tm-bong:  0 18px 44px -22px rgba(22, 36, 27, .35);
	--tm-bo-goc: 14px;
}

*{ -webkit-tap-highlight-color: transparent; }

html{ scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce){
	html{ scroll-behavior: auto; }
	*, *::before, *::after{ animation: none !important; transition: none !important; }
}

body.tm-nen{
	background: var(--tm-nen);
	color: var(--tm-chu);
	font-family: "Be Vietnam Pro", -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

main.container{ flex: 1 0 auto; }

/* ================= Nút ================= */

.tm-nut{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	border: 1.5px solid transparent;
	border-radius: 10px;
	padding: .62rem 1.25rem;
	font: 600 15px/1.2 "Be Vietnam Pro", sans-serif;
	cursor: pointer;
	text-decoration: none;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.tm-nut:focus-visible{ outline: 3px solid rgba(47, 145, 85, .45); outline-offset: 2px; }

.tm-nut--lon{
	background: var(--tm-goc);
	color: #fff;
	padding: .95rem 1.5rem;
	border-radius: 12px;
	font-size: 16px;
	width: 100%;
}
.tm-nut--lon:hover{ background: #17492f; color: #fff; }
.tm-nut--lon:active{ transform: translateY(1px); }

.tm-nut--ngoai{
	background: var(--tm-trang);
	border-color: var(--tm-vien);
	color: var(--tm-goc);
}
.tm-nut--ngoai:hover{ border-color: var(--tm-la); background: var(--tm-sang); color: var(--tm-goc); }

.tm-nut--nop{
	background: var(--tm-la);
	color: #fff;
}
.tm-nut--nop:hover{ background: #257a45; color: #fff; }

.tm-nut--nho{
	padding: .35rem .8rem;
	font-size: 13px;
	background: var(--tm-sang);
	color: var(--tm-goc);
	border-color: transparent;
}
.tm-nut--nho:hover{ background: #d4e8db; color: var(--tm-goc); }

.tm-nut[disabled]{ opacity: .5; cursor: not-allowed; }

/* ================= Hero trang chủ ================= */

.tm-hero{
	background:
		/* hoạ tiết vi lỗ than tre: vài chấm lệch nhau, lặp kín */
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Ccircle cx='9' cy='10' r='2.4' fill='%23ffffff' fill-opacity='.06'/%3E%3Ccircle cx='38' cy='22' r='1.7' fill='%23ffffff' fill-opacity='.05'/%3E%3Ccircle cx='22' cy='44' r='2.8' fill='%23ffffff' fill-opacity='.05'/%3E%3Ccircle cx='52' cy='52' r='1.4' fill='%23ffffff' fill-opacity='.06'/%3E%3Ccircle cx='58' cy='4' r='1.1' fill='%23ffffff' fill-opacity='.04'/%3E%3C/svg%3E"),
		linear-gradient(160deg, #1b2f22 0%, var(--tm-den) 68%);
	color: #fff;
	padding: 52px 0 128px;
}

/* Hai cột: nội dung bên trái, số liệu dồn phải, đáy thẳng hàng */
.tm-hero__trong{
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 26px 60px;
}
.tm-hero__chinh{ flex: 1 1 480px; min-width: 0; }

.tm-hero__logo{
	display: inline-flex;
	align-items: center;
	background: var(--tm-trang);
	padding: 11px 20px 13px;
	border-radius: 14px;
	margin-bottom: 22px;
}
.tm-hero__logo img{ display: block; height: 52px; width: auto; }

.tm-hero__tieu-de{
	font-size: clamp(2.1rem, 4.6vw, 3.2rem);
	font-weight: 800;
	letter-spacing: -.02em;
	line-height: 1.08;
	margin: 0 0 10px;
}

.tm-hero__phu-de{
	color: #C4D6C9;
	font-size: 1.08rem;
	max-width: 34em;
	margin: 0;
}

.tm-hero__so-lieu{
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 14px 44px;
	margin: 0 0 6px;
	padding: 0;
}
.tm-hero__so-lieu li{ min-width: 86px; }
.tm-hero__so-lieu strong{
	display: block;
	font-size: 2rem;
	font-weight: 800;
	letter-spacing: -.02em;
	color: #fff;
	line-height: 1.1;
}
.tm-hero__so-lieu span{ color: #93B49E; font-size: .92rem; }

/* khối hero hiện lên đúng một lần khi mở trang */
.tm-hero__chinh, .tm-hero__so-lieu{
	animation: tm-len .55s cubic-bezier(.2, .7, .3, 1) both;
}
.tm-hero__so-lieu{ animation-delay: .18s; }

@keyframes tm-len{
	from{ opacity: 0; transform: translateY(14px); }
	to{ opacity: 1; transform: none; }
}

/* ================= Thẻ chính (nội dung chèn lên hero) ================= */

.tm-trang-chu{ margin-top: -84px; padding-bottom: 56px; }

.tm-the-chinh{
	background: var(--tm-trang);
	border: 1px solid var(--tm-vien);
	border-radius: 18px;
	box-shadow: var(--tm-bong);
	overflow: hidden;
	animation: tm-len .55s cubic-bezier(.2, .7, .3, 1) .18s both;
}

.tm-the-chinh--nho{ max-width: 460px; margin: 56px auto 0; padding: 40px 36px 32px; }

.tm-the-chinh__thong-tin{ padding: 40px 44px 36px; }
.tm-the-chinh__form{
	padding: 40px 34px 36px;
	background: linear-gradient(180deg, #FBFDFB 0%, #F1F7F2 100%);
	border-left: 1px solid var(--tm-vien);
}

@media (max-width: 991.98px){
	.tm-the-chinh__form{ border-left: 0; border-top: 1px solid var(--tm-vien); }
	.tm-hero{ padding: 56px 0 130px; }
}

.tm-tieu-de-muc{
	font-size: 1.2rem;
	font-weight: 700;
	letter-spacing: -.01em;
	color: var(--tm-goc);
	margin: 28px 0 14px;
}
.tm-tieu-de-muc:first-child{ margin-top: 0; }
.tm-tieu-de-muc--lon{ font-size: 1.5rem; }

.tm-mo-dau{ color: var(--tm-mo); }

/* Danh sách phần thi */
.tm-phan{ list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tm-phan__dong{
	display: flex;
	gap: 14px;
	align-items: baseline;
	background: #FAFCFA;
	border: 1px solid var(--tm-vien);
	border-radius: 12px;
	padding: 14px 18px;
}
.tm-phan__so{
	flex: none;
	width: 30px;
	height: 30px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--tm-sang);
	color: var(--tm-goc);
	font-weight: 700;
	font-size: 14px;
	transform: translateY(4px);
}
.tm-phan__ten{ font-size: 1rem; font-weight: 600; margin: 0; }
.tm-phan__mo-dau{ color: var(--tm-mo); font-size: .92rem; margin: 6px 0 0; }

/* Luật làm bài */
.tm-luat{ list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tm-luat li{ display: flex; gap: 12px; align-items: baseline; }
.tm-luat .bi{ color: var(--tm-la); flex: none; transform: translateY(2px); font-size: .8rem; }

/* Bảng xếp loại */
.tm-bang-xep-loai{
	width: 100%;
	border-collapse: collapse;
}
.tm-bang-xep-loai td{ padding: 9px 12px 9px 0; border-top: 1px solid var(--tm-vien); }
.tm-bang-xep-loai tr:first-child td{ border-top: 0; }
.tm-bang-xep-loai__diem{
	width: 110px;
	font-weight: 700;
	color: var(--tm-goc);
	font-variant-numeric: tabular-nums;
}
.tm-moc{
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	margin-right: 10px;
	transform: translateY(-1px);
}
.tm-moc--gioi{ background: var(--tm-la); }
.tm-moc--dat{ background: var(--tm-vang); }
.tm-moc--lai{ background: var(--tm-do); }

/* ================= Form ================= */

.tm-o{ margin-bottom: 16px; }
.tm-o__nhan{
	display: block;
	font-weight: 600;
	font-size: 13.5px;
	margin-bottom: 6px;
	color: var(--tm-chu);
}
.tm-o__nhan em{ color: var(--tm-do); font-style: normal; }
.tm-o__nhap{
	width: 100%;
	border: 1.5px solid var(--tm-vien);
	border-radius: 10px;
	padding: .6rem .85rem;
	font: 400 15px/1.4 "Be Vietnam Pro", sans-serif;
	color: var(--tm-chu);
	background: var(--tm-trang);
	transition: border-color .15s ease, box-shadow .15s ease;
}
.tm-o__nhap:focus{
	outline: none;
	border-color: var(--tm-la);
	box-shadow: 0 0 0 3px rgba(47, 145, 85, .18);
}
.tm-o__nhap--ngan{ width: auto; min-width: 180px; }

.tm-o--hang{ display: flex; gap: 10px; align-items: center; }
.tm-o__tick{ width: 18px; height: 18px; accent-color: var(--tm-goc); }
.tm-o--hang label{ font-size: 14px; }

.tm-form-chu-thich{
	color: var(--tm-mo);
	font-size: 13px;
	line-height: 1.5;
	margin: 12px 0 0;
}
.tm-form-chu-thich .bi{ color: var(--tm-la); transform: translateY(1px); }
.tm-form-chu-thich code{
	color: var(--tm-goc);
	background: var(--tm-sang);
	border-radius: 5px;
	padding: 1px 5px;
	font-size: 12px;
	overflow-wrap: anywhere;
}

/* Ô bẫy máy — có mặt trong HTML nhưng người thật không thấy */
.tm-bay{
	position: absolute !important;
	left: -6000px;
	top: -6000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
}

/* Thông báo */
.tb{
	display: flex;
	gap: 10px;
	align-items: baseline;
	border-radius: 10px;
	padding: 12px 16px;
	margin-bottom: 20px;
	font-size: 14.5px;
}
.tb--loi{ background: #FBEDEB; color: #7C1D16; border: 1px solid #F0C9C5; }
.tb--ok{ background: #E7F2EA; color: #1E5B3E; border: 1px solid #C4E0CE; }
.tb .bi{ flex: none; transform: translateY(2px); }

/* ================= Topbar khi thi ================= */

.tm-topbar{
	background: var(--tm-den);
	color: #fff;
	position: sticky;
	top: 0;
	z-index: 40;
	box-shadow: 0 8px 26px -18px rgba(22, 36, 27, .8);
}
.tm-topbar__trong{
	display: flex;
	align-items: center;
	gap: 10px 22px;
	flex-wrap: wrap;
	padding-top: 13px;
	padding-bottom: 13px;
}
.tm-topbar__thuong-hieu{
	font-weight: 700;
	font-size: 15px;
	display: inline-flex;
	align-items: center;
	gap: .45rem;
}
.tm-topbar__logo{
	display: inline-flex;
	align-items: center;
	background: var(--tm-trang);
	padding: 4px 11px 6px;
	border-radius: 9px;
}
.tm-topbar__logo img{ display: block; height: 23px; width: auto; }
.tm-topbar__quantri{ color: #C4D6C9; font-size: 14px; font-weight: 600; }
.tm-topbar__thi-sinh{
	color: #C4D6C9;
	font-size: 14px;
	font-weight: 600;
	margin-left: auto;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 30vw;
}
.tm-topbar__thi-sinh small{ color: #8FAF9B; font-weight: 400; }
.tm-topbar__tien-do{ color: #8FAF9B; font-size: 13.5px; white-space: nowrap; }
.tm-topbar__tien-do strong{ color: #fff; }

.tm-dong-ho{
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 999px;
	padding: .42rem 1rem .42rem .8rem;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	font-size: 15.5px;
	color: #fff;
	white-space: nowrap;
}
.tm-dong-ho .bi{ font-size: 15px; }
.tm-dong-ho--canh{ background: var(--tm-vang); border-color: transparent; animation: tm-nhay 1s ease-in-out infinite; }
.tm-dong-ho--het{ background: var(--tm-do); border-color: transparent; animation: tm-nhay .6s ease-in-out infinite; }

@keyframes tm-nhay{
	0%, 100%{ box-shadow: 0 0 0 0 rgba(180, 83, 9, .0); }
	50%{ box-shadow: 0 0 0 7px rgba(255, 255, 255, .08); }
}

.tm-tien-do-gach{ height: 3px; background: rgba(255, 255, 255, .12); }
.tm-tien-do-gach span{
	display: block;
	height: 100%;
	width: 0;
	background: var(--tm-la);
	transition: width .35s ease;
}

/* ================= Khu làm bài ================= */

.tm-thi{ padding: 30px 12px 64px; }

.tm-cau-hoi{
	background: var(--tm-trang);
	border: 1px solid var(--tm-vien);
	border-radius: 18px;
	box-shadow: var(--tm-bong);
	padding: 34px 38px 30px;
	min-height: 380px;
}
.tm-cau-hoi.hien-ra{ animation: tm-cau-ra .22s ease both; }
@keyframes tm-cau-ra{
	from{ opacity: 0; transform: translateX(10px); }
	to{ opacity: 1; transform: none; }
}

.tm-cau-hoi__phan{
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--tm-sang);
	color: var(--tm-goc);
	border-radius: 999px;
	padding: .3rem .95rem;
	font-weight: 600;
	font-size: 13px;
	margin-bottom: 18px;
}
.tm-cau-hoi__so{
	font-size: 1.02rem;
	font-weight: 800;
	color: var(--tm-la);
	letter-spacing: .02em;
	margin-bottom: 6px;
}
.tm-cau-hoi__noi-dung{
	font-size: 1.22rem;
	font-weight: 600;
	line-height: 1.45;
	letter-spacing: -.005em;
	margin: 0 0 26px;
}

.tm-lua-chon{ list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tm-lua-chon button{
	display: flex;
	gap: 14px;
	align-items: flex-start;
	width: 100%;
	text-align: left;
	background: var(--tm-trang);
	border: 1.5px solid var(--tm-vien);
	border-radius: 12px;
	padding: 13px 16px;
	font: 400 15.5px/1.5 "Be Vietnam Pro", sans-serif;
	color: var(--tm-chu);
	cursor: pointer;
	transition: border-color .13s ease, background-color .13s ease;
}
.tm-lua-chon button:hover{ border-color: var(--tm-la); }
.tm-lua-chon button:focus-visible{ outline: 3px solid rgba(47, 145, 85, .4); outline-offset: 2px; }
.tm-lua-chon .chu{
	flex: none;
	width: 28px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	background: var(--tm-sang);
	color: var(--tm-goc);
	font-weight: 700;
	font-size: 13.5px;
	transform: translateY(1px);
}
.tm-lua-chon .danh-dau{ margin-left: auto; color: var(--tm-la); flex: none; visibility: hidden; font-size: 17px; }

.tm-lua-chon button.chon{
	border-color: var(--tm-la);
	background: var(--tm-sang);
	font-weight: 500;
}
.tm-lua-chon button.chon .chu{ background: var(--tm-la); color: #fff; }
.tm-lua-chon button.chon .danh-dau{ visibility: visible; }

.tm-dieu-huong{
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-top: 20px;
}

/* ================= Bảng câu hỏi (palette) ================= */

.tm-bang{
	background: var(--tm-trang);
	border: 1px solid var(--tm-vien);
	border-radius: 18px;
	box-shadow: var(--tm-bong);
	padding: 26px 26px 24px;
	position: sticky;
	top: 86px;
}
.tm-bang__tieu-de{ font-size: 1.05rem; font-weight: 700; color: var(--tm-goc); margin: 0 0 16px; }
.tm-bang--nho{ margin-top: 18px; position: static; }

.tm-bang__luoi{
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 9px;
	margin-bottom: 18px;
}
.tm-bang__luoi button{
	border: 1.5px solid var(--tm-vien);
	background: var(--tm-trang);
	border-radius: 9px;
	height: 40px;
	font: 600 13.5px/1 "Be Vietnam Pro", sans-serif;
	color: var(--tm-mo);
	cursor: pointer;
	transition: border-color .12s ease, background-color .12s ease, color .12s ease;
}
.tm-bang__luoi button:hover{ border-color: var(--tm-la); }
.tm-bang__luoi button:focus-visible{ outline: 3px solid rgba(47, 145, 85, .4); outline-offset: 1px; }
.tm-bang__luoi button.da-lam{
	background: var(--tm-la);
	border-color: var(--tm-la);
	color: #fff;
}
.tm-bang__luoi button.dang-xem{
	border-color: var(--tm-goc);
	box-shadow: 0 0 0 2px rgba(30, 91, 62, .35);
	color: var(--tm-goc);
}
.tm-bang__luoi button.da-lam.dang-xem{ background: var(--tm-goc); border-color: var(--tm-goc); color: #fff; }

.tm-bang__chu-thich{
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	font-size: 12.5px;
	color: var(--tm-mo);
	margin-bottom: 18px;
}
.tm-cham{ font-size: 9px; transform: translateY(-1px); }
.tm-cham--lam{ color: var(--tm-la); }
.tm-cham--hien{ color: var(--tm-goc); }
.tm-cham--chua{ color: var(--tm-vien); }

.tm-bang__ghi-chu{ color: var(--tm-mo); font-size: 13px; margin: 12px 0 0; text-align: center; }

/* ================= Kết quả ================= */

.tm-ket-qua{ padding-bottom: 24px; }

.tm-ket-qua__the{
	background: var(--tm-trang);
	border: 1px solid var(--tm-vien);
	border-radius: 20px;
	box-shadow: var(--tm-bong);
	overflow: hidden;
}
.tm-ket-qua__vien-vien{
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Ccircle cx='9' cy='10' r='2.4' fill='%23ffffff' fill-opacity='.06'/%3E%3Ccircle cx='38' cy='22' r='1.7' fill='%23ffffff' fill-opacity='.05'/%3E%3Ccircle cx='22' cy='44' r='2.8' fill='%23ffffff' fill-opacity='.05'/%3E%3C/svg%3E"),
		linear-gradient(160deg, #1b2f22 0%, var(--tm-den) 70%);
	color: #fff;
	padding: 42px 30px 46px;
	text-align: center;
}
.tm-ket-qua__vien-vien .chao{ color: #9DC3AB; font-weight: 600; margin-bottom: 4px; }
.tm-ket-qua__vien-vien h2{ font-size: 1.35rem; font-weight: 700; margin: 0 0 26px; }

.tm-vong-diem{
	width: 196px;
	height: 196px;
	margin: 0 auto 10px;
	position: relative;
}
.tm-vong-diem svg{ transform: rotate(-90deg); }
.tm-vong-diem .nen-vong{ fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 12; }
.tm-vong-diem .diem-vong{
	fill: none;
	stroke: var(--tm-la);
	stroke-width: 12;
	stroke-linecap: round;
	transition: stroke-dashoffset 1s cubic-bezier(.25, .8, .3, 1);
}
.tm-vong-diem .trong-vong{
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}
.tm-vong-diem .trong-vong strong{
	font-size: 3rem;
	font-weight: 800;
	letter-spacing: -.03em;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}
.tm-vong-diem .trong-vong span{ color: #93B49E; font-size: .9rem; margin-top: 4px; }

.tm-ket-qua__hang{ display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; color: #C4D6C9; font-size: 14.5px; }
.tm-ket-qua__hang strong{ color: #fff; }

.nhan-ket-qua{
	display: inline-block;
	border-radius: 999px;
	padding: .5rem 1.4rem;
	font-weight: 700;
	font-size: 1rem;
	margin-bottom: 22px;
	background: rgba(255, 255, 255, .12);
	border: 1px solid rgba(255, 255, 255, .25);
}
.nhan-ket-qua--gioi{ background: var(--tm-la); border-color: transparent; }
.nhan-ket-qua--dat{ background: var(--tm-vang); border-color: transparent; }
.nhan-ket-qua--lai{ background: var(--tm-do); border-color: transparent; }

.tm-ket-qua__than{ padding: 34px 38px 38px; }
.tm-ket-qua__than h3{
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--tm-goc);
	margin: 0 0 16px;
}
.tm-phan-diem{ display: grid; gap: 12px; margin-bottom: 30px; }
.tm-phan-diem__dong .ten{
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 6px;
}
.tm-phan-diem__dong .ten span{ color: var(--tm-mo); font-weight: 500; font-variant-numeric: tabular-nums; }
.tm-phan-diem__gach{ height: 8px; border-radius: 99px; background: var(--tm-sang); overflow: hidden; }
.tm-phan-diem__gach span{
	display: block;
	height: 100%;
	background: var(--tm-la);
	border-radius: 99px;
	transition: width .8s cubic-bezier(.25, .8, .3, 1);
}

/* Xem lại bài */
.tm-xem-lai{ list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tm-xem-lai li{
	border: 1px solid var(--tm-vien);
	border-radius: 12px;
	padding: 14px 18px;
	display: grid;
	gap: 8px;
}
.tm-xem-lai li.dung{ border-color: #BFDCC8; background: #FAFEFB; }
.tm-xem-lai li.sai{ border-color: #EFC9C5; background: #FEFAF9; }
.tm-xem-lai .cau{
	font-size: 14.5px;
	font-weight: 600;
	display: flex;
	gap: 9px;
	align-items: baseline;
}
.tm-xem-lai .cau .st{ color: var(--tm-mo); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tm-xem-lai .cau .bi{ margin-left: auto; flex: none; }
.tm-xem-lai li.dung .cau .bi{ color: var(--tm-la); }
.tm-xem-lai li.sai .cau .bi{ color: var(--tm-do); }
.tm-xem-lai .tra-loi{ font-size: 14px; color: var(--tm-mo); }
.tm-xem-lai .tra-loi b{ font-weight: 600; }
.tm-xem-lai .tra-loi .dung-cua-noi{ color: #1B7A43; font-weight: 600; }
.tm-xem-lai .tra-loi .chon-sai{ color: var(--tm-do); font-weight: 600; }

.tm-ket-qua__hanh-dong{ display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.tm-ket-qua__hanh-dong .tm-nut{ width: auto; }

/* ================= Hộp thoại (modal) ================= */

.tm-hop{ border: 1px solid var(--tm-vien); border-radius: 16px; font-family: inherit; }
.tm-hop .modal-header{ border-bottom: 1px solid var(--tm-vien); }
.tm-hop .modal-title{ font-weight: 700; color: var(--tm-goc); font-size: 1.1rem; }
.tm-hop .modal-footer{ border-top: 1px solid var(--tm-vien); }
.tm-hop .btn-close:focus-visible{ outline: 3px solid rgba(47, 145, 85, .4); }

.tm-hop .canh-bao-bo-trong{
	background: #FDF6EC;
	border: 1px solid #F0DCC0;
	color: #7C4A0B;
	border-radius: 10px;
	padding: 10px 14px;
	margin-bottom: 12px;
	font-size: 14.5px;
}
.tm-hop .danh-sach-bo-trong{
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
}
.tm-hop .danh-sach-bo-trong button{
	border: 1.5px solid var(--tm-vien);
	background: #fff;
	border-radius: 8px;
	min-width: 40px;
	height: 34px;
	padding: 0 8px;
	font: 600 13px/1 "Be Vietnam Pro", sans-serif;
	color: var(--tm-goc);
	cursor: pointer;
}
.tm-hop .danh-sach-bo-trong button:hover{ border-color: var(--tm-la); background: var(--tm-sang); }
.tm-hop .chu-thich-qua-gio{ color: var(--tm-mo); font-size: 14px; }

/* ================= Quản trị ================= */

.tm-dang-nhap{ padding-bottom: 60px; }
.tm-dang-nhap__logo{ display: block; height: 50px; width: auto; margin: 0 auto 24px; }

.tm-quantri{ padding: 28px 12px 64px; }

.tm-thong-ke{
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 12px;
	margin-bottom: 24px;
}
.tm-thong-ke__o{
	background: var(--tm-trang);
	border: 1px solid var(--tm-vien);
	border-radius: 14px;
	padding: 16px 18px;
}
.tm-thong-ke__o strong{
	display: block;
	font-size: 1.7rem;
	font-weight: 800;
	letter-spacing: -.02em;
	color: var(--tm-goc);
	line-height: 1.15;
	font-variant-numeric: tabular-nums;
}
.tm-thong-ke__o span{ font-size: 12.5px; color: var(--tm-mo); }
.tm-thong-ke__o--gioi strong{ color: var(--tm-la); }
.tm-thong-ke__o--dat strong{ color: var(--tm-vang); }
.tm-thong-ke__o--lai strong{ color: var(--tm-do); }

@media (max-width: 1199.98px){ .tm-thong-ke{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575.98px){ .tm-thong-ke{ grid-template-columns: repeat(2, 1fr); } }

.tm-khung-bang{
	background: var(--tm-trang);
	border: 1px solid var(--tm-vien);
	border-radius: 18px;
	padding: 22px 24px;
}
.tm-khung-bang__cong-cu{
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: end;
	justify-content: space-between;
	margin-bottom: 16px;
}
.tm-loc{ display: flex; gap: 10px 14px; align-items: end; flex-wrap: wrap; }
.tm-loc label{ font-size: 13px; font-weight: 600; color: var(--tm-mo); display: block; margin-bottom: 5px; }
.tm-loc__o{ min-width: 0; }
.tm-chon-ngon{ width: auto; min-width: 88px; }
.tm-khung-bang__hanh-dong{ display: flex; gap: 10px; flex-wrap: wrap; }
.tm-form-dong{ margin: 0; }

.tm-bang-ket-qua{
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}
.tm-bang-ket-qua th{
	text-align: left;
	font-size: 12px;
	text-transform: none;
	font-weight: 700;
	color: var(--tm-mo);
	padding: 8px 10px;
	border-bottom: 2px solid var(--tm-vien);
	white-space: nowrap;
}
.tm-bang-ket-qua td{
	padding: 10px;
	border-bottom: 1px solid #ECF2ED;
	vertical-align: middle;
}
.tm-bang-ket-qua td.ten{ font-weight: 600; }
.tm-bang-ket-qua td.so, .tm-bang-ket-qua th.so{ text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.tm-bang-ket-qua td.hanh-dong{ text-align: right; white-space: nowrap; }
.tm-bang-ket-qua__rong{ text-align: center; color: var(--tm-mo); padding: 34px 10px !important; }
.tm-khung-bang__chu-thich{ color: var(--tm-mo); font-size: 12.5px; margin: 10px 2px 0; }

.nhan{
	display: inline-block;
	border-radius: 999px;
	padding: .22rem .7rem;
	font-size: 12px;
	font-weight: 600;
	background: #EEF3EF;
	color: var(--tm-mo);
	white-space: nowrap;
}
.nhan--gioi{ background: var(--tm-la); color: #fff; }
.nhan--dat{ background: #F6E8D4; color: #8A4B09; }
.nhan--lai{ background: #FBEDEB; color: #7C1D16; }
.nhan--vang{ background: #FDF3E1; color: var(--tm-vang); }
.nhan--do{ background: #FBEDEB; color: var(--tm-do); cursor: help; }

/* ================= Xem bài trong modal ================= */

.tm-hop .cau-dong{
	border: 1px solid var(--tm-vien);
	border-radius: 10px;
	padding: 10px 14px;
	margin-bottom: 10px;
	font-size: 14px;
}
.tm-hop .cau-dong .st{
	font-weight: 700;
	color: var(--tm-mo);
	margin-right: 8px;
	white-space: nowrap;
}
.tm-hop .cau-dong.dung{ border-color: #BFDCC8; background: #FAFEFB; }
.tm-hop .cau-dong.sai{ border-color: #EFC9C5; background: #FEFAF9; }
.tm-hop .cau-dong.bo-trong{ border-color: #E8DFC8; background: #FFFDF6; }

/* ================= Chân trang ================= */

.tm-chan{
	flex-shrink: 0;
	border-top: 1px solid var(--tm-vien);
	background: var(--tm-trang);
	padding: 18px 0;
	margin-top: 26px;
}
.tm-chan .container{ display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; }
@media (max-width: 575.98px){
	.tm-chan .container{ flex-direction: column; align-items: flex-start; gap: 10px; }
}
.tm-chan__thuong-hieu{ color: var(--tm-mo); font-size: 13.5px; display: inline-flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.tm-chan__logo{ height: 30px; width: auto; }
.tm-chan__quantri{ color: var(--tm-goc); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.tm-chan__quantri:hover{ text-decoration: underline; color: var(--tm-goc); }
.tm-chan__quantri i{ transform: translateY(1px); }

/* ================= Di động ================= */

@media (max-width: 767.98px){
	.tm-cau-hoi{ padding: 22px 18px 20px; min-height: 0; }
	.tm-cau-hoi__noi-dung{ font-size: 1.05rem; margin-bottom: 20px; }
	.tm-lua-chon{ gap: 9px; }
	.tm-lua-chon button{ padding: 12px 14px; font-size: 15px; gap: 12px; }
	.tm-the-chinh__thong-tin{ padding: 26px 20px 24px; }
	.tm-the-chinh__form{ padding: 26px 20px 24px; }
	.tm-tieu-de-muc{ margin: 22px 0 12px; font-size: 1.1rem; }
	.tm-o{ margin-bottom: 13px; }
	/* 16px để iOS Safari không tự phóng ô nhập khi chạm vào */
	.tm-o__nhap{ font-size: 16px; padding: .55rem .8rem; }
	.tm-nut--lon{ padding: .85rem 1.2rem; }
	.tm-bang{ position: static; padding: 20px 18px 18px; }
	.tm-bang__luoi{ grid-template-columns: repeat(6, 1fr); gap: 7px; }
	.tm-bang__luoi button{ height: 36px; }
	.tm-topbar__trong{ gap: 8px 14px; padding-top: 10px; padding-bottom: 10px; }
	.tm-topbar__thi-sinh{ display: none; }
	.tm-topbar__logo{ padding: 3px 8px 4px; border-radius: 7px; }
	.tm-topbar__logo img{ height: 18px; }
	.tm-hero{ padding: 34px 0 112px; }
	.tm-hero__trong{ gap: 18px; }
	.tm-hero__logo{ padding: 8px 14px 10px; border-radius: 10px; margin-bottom: 16px; }
	.tm-hero__logo img{ height: 34px; }
	.tm-hero__tieu-de{ font-size: clamp(1.75rem, 7.5vw, 2.15rem); margin-bottom: 8px; }
	.tm-hero__phu-de{ font-size: .98rem; }
	/* số liệu 3 cột đều, không vỡ dòng lộn xộn */
	.tm-hero__so-lieu{
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 12px;
		width: 100%;
		margin: 0;
	}
	.tm-hero__so-lieu li{ min-width: 0; }
	.tm-hero__so-lieu strong{ font-size: 1.45rem; }
	.tm-hero__so-lieu span{ font-size: .8rem; }
	.tm-phan{ gap: 10px; }
	.tm-phan__dong{ padding: 11px 14px; }
	.tm-luat{ gap: 8px; }
	.tm-ket-qua__than{ padding: 26px 20px 30px; }
	.tm-ket-qua__vien-vien{ padding: 34px 18px 38px; }
	.tm-dieu-huong{ margin-top: 14px; }
	.tm-dieu-huong .tm-nut{ padding: .6rem .85rem; font-size: 14px; }
	.tm-chan__logo{ height: 24px; }
}
