/* Giao diện riêng của công cụ chấm bài chuẩn SEO. Mọi quy tắc bắt đầu bằng .tl-page */
.tl-page {
  --blue: #004aef; --blue-d: #0033b3; --green: #07ef9c; --cyan: #0fd6f7; --yellow: #ffce00;
  --bg: #f4f7fd; --surface: #ffffff; --ink: #212025; --text: #434343; --muted: #616a7a;
  --line: #dbe3f5; --blue-soft: #e3ebff; --green-soft: #dcfbef; --cyan-soft: #e3fafe; --yellow-soft: #fff6d6;
  --red: #dc2f2f; --red-soft: #f6cbcb; --red-ink: #8f1d1d;
}
.tl-page .fig { margin-top: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.tl-page .fig svg { display: block; width: 100%; height: auto; }
.tl-page .fig-cap { font-size: 13.5px; color: var(--muted); margin-top: 14px; line-height: 1.5; margin-bottom: 0; }
.tl-page .fig-cap b { color: var(--ink); }
.tl-page .legend { margin-top: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 26px; }
.tl-page .leg { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.tl-page .leg .leg-t { display: block; font-size: 15px; line-height: 1.35; color: var(--ink); }
.tl-page .leg p { font-size: 14px; color: var(--muted); margin: 4px 0 0; }
.tl-page .pin { width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: var(--ink); font-weight: 700; font-size: 12.5px; line-height: 24px; text-align: center; display: inline-block; flex: none; }

.tl-page .note { margin-top: 18px; background: var(--blue-soft); border-radius: 14px; padding: 14px 18px; font-size: 14.5px; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; color: var(--ink); }
.tl-page .note .ic { width: 20px; height: 20px; margin-top: 3px; fill: var(--blue); flex: none; }
.tl-page .note.warn { background: var(--yellow-soft); }
.tl-page .note.warn .ic { fill: #7a5f00; }

.tl-page .bul { margin-top: 12px; padding-left: 0; list-style: none; }
.tl-page .bul li { position: relative; padding-left: 22px; margin-top: 8px; font-size: 15px; }
.tl-page .bul li:before { content: ""; position: absolute; left: 4px; top: 10px; width: 7px; height: 7px; border-radius: 2px; background: var(--blue); }

.tl-page .f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.tl-page .tool-btns { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.tl-page .btn { border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 999px; padding: 9px 15px; font: inherit; font-weight: 600; font-size: 13.5px; line-height: 1.2; cursor: pointer; }
.tl-page .btn:hover { background: var(--blue-soft); border-color: var(--blue); color: var(--blue-d); }
.tl-page .btn-chinh { background: var(--blue); border-color: var(--blue); color: #fff; }
.tl-page .btn-chinh:hover { background: var(--blue-d); border-color: var(--blue-d); color: #fff; }

.tl-page .diem-hop { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.tl-page .diem-vong { width: 96px; height: 96px; border-radius: 20px; background: var(--blue); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; flex: none; }
.tl-page .diem-vong.tot { background: var(--blue); }
.tl-page .diem-vong.kha { background: var(--yellow-soft); color: #7a5f00; border: 2px solid var(--yellow); }
.tl-page .diem-vong.yeu { background: var(--red-soft); color: var(--red-ink); border: 2px solid var(--red); }
.tl-page .diem-so { font-weight: 700; font-size: 32px; line-height: 1; font-variant-numeric: tabular-nums; }
.tl-page .diem-thang { font-size: 12px; margin-top: 4px; opacity: .9; }
.tl-page .diem-ket { font-weight: 700; font-size: 17px; color: var(--ink); line-height: 1.3; }
.tl-page .diem-phu { font-size: 13.5px; color: var(--muted); margin-top: 4px; line-height: 1.45; }
.tl-page .dem-nhom { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tl-page .dn { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; font-weight: 600; }
.tl-page .dn.ok { background: var(--green-soft); color: #046b47; }
.tl-page .dn.canh { background: var(--yellow-soft); color: #7a5f00; }
.tl-page .dn.loi { background: var(--red-soft); color: var(--red-ink); }

.tl-page .sua-hop { margin-top: 18px; }
.tl-page .sua-hop h3 { font-size: 16px; font-weight: 700; color: var(--ink); margin: 0 0 10px; }
.tl-page .sua-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.tl-page .sua-list li { background: var(--bg); border-radius: 14px; padding: 11px 14px; font-size: 14px; line-height: 1.5; color: var(--ink); border-left: 4px solid var(--line); word-break: break-word; }
.tl-page .sua-list li.muc-loi { background: var(--red-soft); border-left-color: var(--red); color: var(--red-ink); }
.tl-page .sua-list li.muc-canh { background: var(--yellow-soft); border-left-color: var(--yellow); color: #7a5f00; }
.tl-page .sua-list li.muc-ok { background: var(--green-soft); border-left-color: #046b47; color: #046b47; }
.tl-page .sua-list li.sua-trong { color: var(--muted); }

.tl-page .tc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 16px; }
.tl-page .tc-card { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--line); border-radius: 16px; padding: 16px 18px; min-width: 0; }
.tl-page .tc-card.ok { border-left-color: #046b47; }
.tl-page .tc-card.canh { border-left-color: var(--yellow); }
.tl-page .tc-card.loi { border-left-color: var(--red); }
.tl-page .tc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.tl-page .tc-ten { font-weight: 700; font-size: 15.5px; color: var(--ink); line-height: 1.35; }
.tl-page .tc-nhan { font-weight: 700; font-size: 12px; padding: 4px 10px; border-radius: 999px; white-space: nowrap; flex: none; }
.tl-page .tc-nhan.ok { background: var(--green-soft); color: #046b47; }
.tl-page .tc-nhan.canh { background: var(--yellow-soft); color: #7a5f00; }
.tl-page .tc-nhan.loi { background: var(--red-soft); color: var(--red-ink); }
.tl-page .tc-nhan.trong { background: var(--bg); color: var(--muted); }
.tl-page .tc-mota { margin-top: 8px; font-size: 14px; color: var(--text); line-height: 1.5; word-break: break-word; }
.tl-page .tc-trich { margin-top: 8px; background: var(--bg); border-radius: 10px; padding: 8px 11px; font-size: 13px; color: var(--muted); word-break: break-word; }

.tl-page .nguoi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 24px; }
.tl-page .nguoi-o { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.tl-page .nguoi-o strong { display: block; font-size: 15.5px; color: var(--ink); line-height: 1.35; }
.tl-page .nguoi-o p { margin: 5px 0 0; font-size: 14px; color: var(--text); line-height: 1.55; }

@media (max-width: 960px) {
    .tl-page .tc-grid { grid-template-columns: 1fr; }
  .tl-page .nguoi-grid { grid-template-columns: 1fr; }
  .tl-page .legend { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .tl-page .f2 { grid-template-columns: 1fr; }
  .tl-page .diem-hop { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .tl-page .dem-nhom { justify-content: center; }
  .tl-page .tl-hop > .block { padding: 18px; border-radius: 16px; }
}

/* ===== Bố cục hai cột theo trang mẫu kiem-tra-ma-phan-hoi (07/11/2026) ===== */
.tl-page .tl-hop > .block { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; margin-top: 24px; }
.tl-page .tl-hop > .block .fig { margin-top: 14px; padding: 0; border: 0; border-radius: 0; background: none; }
.tl-page .cb-buoc { margin: 0 0 18px; }
.tl-page .tl-cc-trai input[type="text"] { padding: 11px 14px; font-family: inherit; font-size: 15px; color: var(--ink); }
.tl-page #nhap { display: block; height: 300px; min-height: 240px; resize: vertical; padding: 12px 14px; font-family: inherit; font-size: 15px; line-height: 1.6; color: var(--ink); }
.tl-page .tl-cc-thu { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.tl-page .tl-cc-lien.cb-phu { color: var(--muted); font-weight: 500; }
.tl-page .tl-cc-ma { white-space: nowrap; }
.tl-page .cb-luu-y { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.tl-page .cb-luu-y b { color: var(--ink); }
.tl-page #cb-kq[hidden] { display: none; }
.tl-page .cb-vd-sua { margin-top: 14px; }
