:root {
  --bg: #0f1420; --panel: #1a2233; --border: #2a3550;
  --text: #e6ebf5; --muted: #8b98b8; --accent: #4f8cff;
  --ok: #3fb96b; --warn: #e6a23c; --bad: #e05b5b;
}
* { box-sizing: border-box; margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 15px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
}
nav {
  display: flex; gap: 4px; align-items: center;
  padding: 10px 24px; background: var(--panel);
  border-bottom: 1px solid var(--border);
}
nav .brand { font-weight: 700; margin-right: 20px; color: var(--accent); }
nav a {
  color: var(--muted); text-decoration: none; padding: 6px 14px; border-radius: 8px;
}
nav a:hover { color: var(--text); }
nav a.active { background: var(--bg); color: var(--text); }
main { max-width: 1080px; margin: 24px auto; padding: 0 20px; }
h1 { font-size: 22px; margin-bottom: 18px; }
h2 { font-size: 16px; margin: 18px 0 10px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 18px;
}
.card .big { font-size: 26px; font-weight: 700; }
.card .label { color: var(--muted); font-size: 13px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; }
.dot.ok { background: var(--ok); } .dot.bad { background: var(--bad); }
form.panel, .panel {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px; margin-bottom: 16px;
}
label { display: block; margin: 12px 0 4px; color: var(--muted); font-size: 13px; }
input[type=text], input[type=number], textarea, select {
  width: 100%; padding: 10px 12px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
  font: inherit;
}
textarea { min-height: 200px; resize: vertical; }
button {
  margin-top: 16px; padding: 10px 22px; border: 0; border-radius: 8px;
  background: var(--accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer;
}
button:disabled { opacity: .5; cursor: wait; }
.progress { color: var(--muted); font-size: 14px; white-space: pre-line; margin-top: 12px; }
.result pre {
  white-space: pre-wrap; background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 16px; max-height: 480px; overflow-y: auto;
}
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; font-size: 13px; }
.badge { padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge.TRUNG, .badge.loai { background: #3d1f1f; color: var(--bad); }
.badge.NGHIVAN, .badge.can_sua { background: #3d331f; color: var(--warn); }
.badge.KHAC, .badge.dat { background: #1f3d29; color: var(--ok); }
.muted { color: var(--muted); }
.scores { display: flex; gap: 16px; margin: 10px 0; }
.scores div { background: var(--bg); border-radius: 8px; padding: 8px 16px; }

/* chat */
.tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.tabs button { margin: 0; background: var(--panel); color: var(--muted); border: 1px solid var(--border); }
.tabs button.on { background: var(--accent); color: #fff; }
.chat-layout { display: grid; grid-template-columns: 240px 1fr; gap: 16px; }
.chat-list { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 10px; max-height: 70vh; overflow-y: auto; }
.chat-list .item { padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.chat-list .item:hover, .chat-list .item.on { background: var(--bg); }
.chat-box { display: flex; flex-direction: column; height: 70vh; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 12px; white-space: pre-wrap; }
.msg.user { align-self: flex-end; background: var(--accent); color: #fff; }
.msg.ai { align-self: flex-start; background: var(--bg); border: 1px solid var(--border); }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.chat-input textarea { min-height: 44px; height: 44px; }
.chat-input button { margin: 0; align-self: stretch; }
.chat-bar { display: flex; gap: 8px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--border); }
.chat-bar .grow { flex: 1; font-weight: 600; }
.chat-bar select { width: auto; padding: 5px 8px; font-size: 13px; }
.think { align-self: flex-start; max-width: 85%; background: #14243a; border: 1px dashed var(--border); border-radius: 12px; padding: 4px 12px; }
.think summary { cursor: pointer; color: var(--muted); font-size: 13px; padding: 4px 0; list-style: none; }
.think summary::-webkit-details-marker { display: none; }
.think-body { color: #a9b8d6; font-size: 13px; font-style: italic; white-space: pre-wrap; padding: 6px 0 8px; border-top: 1px solid var(--border); margin-top: 4px; }
.chat-list .item { display: flex; justify-content: space-between; align-items: center; }
.chat-list .item .x { color: var(--muted); opacity: 0; padding: 0 4px; }
.chat-list .item:hover .x { opacity: 1; }

/* workbench: menubar thao tác + lịch sử + khung xem (tab Sinh/Sửa/Check) */
.workbar {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 14px; margin-bottom: 14px;
}
.workbar input[type=text], .workbar textarea, .workbar select {
  width: auto; flex: 1; min-width: 180px; padding: 8px 10px; font-size: 14px;
}
.workbar textarea { min-height: 38px; height: 38px; resize: vertical; }
.workbar button { margin: 0; padding: 8px 18px; white-space: nowrap; }
.workbar label { display: inline; margin: 0; white-space: nowrap; font-size: 13px; }
.workbar .sep { width: 1px; align-self: stretch; background: var(--border); }
.work-layout { display: grid; grid-template-columns: 300px 1fr; gap: 14px; }
.side-list {
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  padding: 8px; max-height: 74vh; overflow-y: auto;
}
.side-list .head { padding: 6px 10px; color: var(--muted); font-size: 12px;
  display: flex; justify-content: space-between; align-items: center; }
.side-list .item { padding: 8px 10px; border-radius: 8px; cursor: pointer; margin-bottom: 2px; }
.side-list .item:hover, .side-list .item.on { background: var(--bg); }
.side-list .item .t { font-size: 13px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-list .item .m { font-size: 11.5px; color: var(--muted); margin-top: 3px;
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.side-list .badge { font-size: 10.5px; padding: 1px 8px; }
.viewer {
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 18px; max-height: 74vh; overflow-y: auto;
}
.viewer pre { white-space: pre-wrap; background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 14px; font: 14px/1.7 Georgia, serif; }
.viewer .empty { color: var(--muted); text-align: center; padding: 60px 0; }
@media (max-width: 900px) { .work-layout { grid-template-columns: 1fr; } }

/* settings */
.set-row { display: grid; grid-template-columns: 220px 200px 1fr; gap: 14px;
  align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.set-row .lbl { font-weight: 600; font-size: 14px; }
.set-row .hint { color: var(--muted); font-size: 13px; }

/* manager table (kiểu tool quản trị job) */
main.wide { max-width: none; margin: 16px 18px; }
.filterbar { display: flex; gap: 8px; align-items: end; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 14px; margin-bottom: 10px; }
.filterbar .f { display: flex; flex-direction: column; gap: 2px; }
.filterbar .f > span { font-size: 11px; color: var(--muted); }
.filterbar input, .filterbar select { padding: 6px 9px; font-size: 13px; width: auto; }
.filterbar .grow { flex: 1; }
.bulkbar { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.bulkbar button { margin: 0; padding: 7px 14px; font-size: 13px; }
.bulkbar .danger { background: #5c2b2b; }
.bulkbar .info { color: var(--muted); font-size: 13px; margin-left: auto; }
.pager { display: flex; gap: 4px; align-items: center; }
.pager button { margin: 0; padding: 5px 12px; background: var(--panel);
  border: 1px solid var(--border); color: var(--text); }
.mgr-wrap { background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; overflow: auto; max-height: 72vh; }
.mgr-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 1080px; }
.mgr-table th { position: sticky; top: 0; background: var(--panel); z-index: 2;
  padding: 9px 10px; border-bottom: 2px solid var(--border); white-space: nowrap; }
.mgr-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.mgr-table tr:hover td { background: #1e2940; }
.mgr-table tr.sel td { background: #22304e; }
.mgr-table .t { font-weight: 600; line-height: 1.35; cursor: pointer;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mgr-table .t:hover { color: var(--accent); }
.mgr-table .sub { color: var(--muted); font-size: 11px; }
.mgr-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.mgr-table .act { white-space: nowrap; }
.mgr-table .act a, .mgr-table .act button { margin: 0 2px; padding: 3px 8px; font-size: 13px;
  background: var(--bg); border: 1px solid var(--border); color: var(--text);
  border-radius: 6px; cursor: pointer; text-decoration: none; display: inline-block; }
.toggle.on { background: var(--ok) !important; }

/* slide-over "Tạo bài" */
.slideover { position: fixed; top: 0; right: -480px; width: 460px; height: 100vh;
  background: var(--panel); border-left: 1px solid var(--border); z-index: 50;
  transition: right .25s ease; display: flex; flex-direction: column; }
.slideover.open { right: 0; box-shadow: -12px 0 40px rgba(0,0,0,.5); }
.slideover .head { background: var(--accent); color: #fff; font-weight: 700;
  padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; }
.slideover .head .x { cursor: pointer; font-size: 18px; }
.slideover .body { padding: 16px 18px; overflow-y: auto; flex: 1; }

/* modal xem bài */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 60;
  display: none; align-items: center; justify-content: center; padding: 30px; }
.modal-bg.open { display: flex; }
.modal { background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
  width: min(940px, 96vw); max-height: 90vh; display: flex; flex-direction: column; }
.modal .head { padding: 12px 18px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.modal .body { padding: 14px 18px; overflow-y: auto; }
.modal .head .x { cursor: pointer; font-size: 20px; color: var(--muted); }

/* hội thoại 2 agent (writer Claude ↔ critic GPT) */
.conv { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
/* wrapper anchor (rail số): phải là flex-cột full-ngang để bubble còn lệch trái/phải */
.conv .cvi { display: flex; flex-direction: column; width: 100%; }
.conv .bub { max-width: 80%; padding: 8px 12px; border-radius: 10px; font-size: 12.5px; line-height: 1.5; }
.conv .bub .who { font-weight: 700; font-size: 11.5px; margin-bottom: 3px; opacity: .9; }
.conv .writer { align-self: flex-start; background: #16281c; border: 1px solid #2a4a34; }
.conv .critic { align-self: flex-end; background: #1d2436; border: 1px solid #34405c; }
.conv .sys { align-self: center; color: var(--muted); font-size: 11.5px; text-align: center;
  padding: 2px 10px; }
.conv .iss { margin: 3px 0 0 8px; }
.conv .iss.nang { color: var(--bad); } .conv .iss.nhe { color: var(--warn); }
.conv .ok { color: var(--ok); margin-top: 3px; }
.conv .quote { color: var(--muted); font-style: italic; }
/* chi tiết mốc trong popup (ngoài .conv) */
.iss.nhe { color: var(--warn); }
.iss.nang { color: var(--bad); }
/* văn bản inline trong bubble hội thoại (≤3000 ký tự hiện trọn) */
.conv .btxt { white-space: pre-wrap; background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 11px; margin-top: 6px;
  font: 13px/1.7 -apple-system, 'Segoe UI', Roboto, 'Noto Sans', Arial, sans-serif; max-height: 420px; overflow-y: auto; }
/* chấm "đang gõ..." cho dòng đang-tạo + live view */
.dots::after { content: ""; display: inline-block; width: 14px; text-align: left;
  animation: kb-dots 1.2s steps(1, end) infinite; }
@keyframes kb-dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }

/* ===================== MOBILE (phone ≤ 720px) ===================== */
@media (max-width: 720px) {
  /* nav: cuộn ngang, không xuống dòng, chạm thoải mái */
  nav { padding: 8px 10px; gap: 2px; overflow-x: auto; white-space: nowrap;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  nav::-webkit-scrollbar { display: none; }
  nav .brand { margin-right: 8px; font-size: 14px; }
  nav a { padding: 8px 10px; font-size: 13px; }

  main, main.wide { margin: 12px 8px; padding: 0; max-width: none; }
  h1 { font-size: 18px; margin-bottom: 12px; }

  /* bộ lọc: mỗi ô chiếm nửa hàng, ô tìm kiếm full hàng */
  .filterbar { padding: 10px; gap: 6px; }
  .filterbar .f { flex: 1 1 46%; min-width: 130px; }
  .filterbar .f.grow { flex: 1 1 100%; }
  .filterbar input, .filterbar select { width: 100%; font-size: 14px; padding: 9px 10px; }
  .bulkbar { gap: 6px; }
  .bulkbar .info { margin-left: 0; flex-basis: 100%; order: 9; }

  /* bảng: cuộn ngang trong khung, giấu cột phụ (Loại, View%, CTA) cho gọn */
  .mgr-wrap { max-height: none; border-radius: 10px; }
  .mgr-table { min-width: 760px; font-size: 12.5px; }
  .gen-table th:nth-child(6), .gen-table td:nth-child(6),
  .gen-table th:nth-child(10), .gen-table td:nth-child(10),
  .gen-table th:nth-child(12), .gen-table td:nth-child(12) { display: none; }
  /* kho bài: giấu SITE(3), ID(4), CHUNK(7) trên phone */
  .mgr-table:not(.gen-table) th:nth-child(3), .mgr-table:not(.gen-table) td:nth-child(3),
  .mgr-table:not(.gen-table) th:nth-child(4), .mgr-table:not(.gen-table) td:nth-child(4),
  .mgr-table:not(.gen-table) th:nth-child(7), .mgr-table:not(.gen-table) td:nth-child(7) { display: none; }
  .mgr-table td { padding: 9px 8px; }
  .mgr-table .act a, .mgr-table .act button { padding: 7px 9px; font-size: 15px; }

  /* slide-over Tạo bài: full màn hình */
  .slideover { width: 100vw; right: -100vw; }

  /* modal: full màn hình, chữ dễ đọc */
  .modal-bg { padding: 0; }
  .modal { width: 100vw !important; max-width: 100vw; height: 100dvh; max-height: 100dvh;
    border-radius: 0; border: none; }
  .modal .head { padding: 12px 14px; position: sticky; top: 0; background: var(--panel); }
  .modal .body { padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); }
  .modal .head .x { font-size: 26px; padding: 2px 8px; }
  #mText, #dText { font-size: 15px !important; padding: 10px !important; }

  /* hội thoại 2 agent: bubble chiếm trọn bề ngang, chữ to hơn */
  .conv .bub { max-width: 100%; font-size: 13.5px; }
  .conv .btxt { font-size: 14px; max-height: 320px; }

  /* nút bấm chạm ngon */
  button { padding: 10px 16px; font-size: 14px; }
  input[type="range"] { height: 28px; }
}

/* ===== card list + FAB + bộ lọc thu gọn (generate, phone) ===== */
.m-toolbar { display: none; }
.cards { display: none; }
.fab { display: none; }

@media (max-width: 720px) {
  /* bảng → card */
  .mgr-wrap { display: none; }
  .cards { display: flex; flex-direction: column; gap: 10px; }
  .ci { background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
    padding: 12px 12px 10px; }
  .ci.sel { background: #22304e; }
  .ci-top { display: flex; justify-content: space-between; gap: 8px; align-items: start; }
  .ci-title { font-weight: 700; line-height: 1.35; cursor: pointer; font-size: 14.5px; }
  .ci-title:active { color: var(--accent); }
  .ci-sub { color: var(--muted); font-size: 11.5px; margin-top: 3px; }
  .ci-meta { font-size: 13px; margin-top: 7px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
  .ci-act { display: flex; gap: 6px; align-items: center; margin-top: 9px;
    border-top: 1px solid var(--border); padding-top: 9px; }
  .ci-act button, .ci-act a { margin: 0; padding: 7px 11px; font-size: 15px;
    background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
    color: var(--text); text-decoration: none; line-height: 1; }
  .ci-act input[type="checkbox"] { width: 20px; height: 20px; margin-right: 2px; }

  /* bộ lọc: mặc định gập, bấm ☰ mới xổ */
  .m-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
  .m-toolbar button { margin: 0; padding: 8px 14px; font-size: 13px;
    background: var(--panel); border: 1px solid var(--border); color: var(--text); }
  .filterbar { display: none; }
  .filterbar.open { display: flex; }
  /* nút "+ Tạo bài" trong bộ lọc nhường chỗ cho FAB */
  #openCreate { display: none; }

  /* nút ＋ tròn nổi góc phải dưới */
  .fab { display: flex; position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
    width: 52px; height: 52px; border-radius: 50%; align-items: center; justify-content: center;
    font-size: 26px; line-height: 1; padding: 0; z-index: 45;
    background: var(--accent); color: #fff; border: none;
    box-shadow: 0 6px 18px rgba(0,0,0,.45); }
  .fab:active { transform: scale(.94); }
}

/* CỬA SỔ HỘI THOẠI: full cửa sổ, 2 CỘT RIÊNG — chat trái, rail số phải */
.conv-modal { width: 80vw !important; max-width: 80vw; height: 88vh;
  max-height: 88vh; border-radius: 14px; border: 1px solid var(--border);
  display: flex; flex-direction: column; }
@media (max-width: 720px) {
  .conv-modal { width: 100vw !important; max-width: 100vw; height: 100dvh;
    max-height: 100dvh; border-radius: 0; border: none; }
}
.conv-cols { display: flex; flex: 1; min-height: 0; }
.conv-cols .body { flex: 1; min-width: 0; overflow-y: auto; }
.conv-nav { flex: 0 0 25%; min-width: 215px; max-width: 360px;
  border-left: 1px solid var(--border); background: var(--bg); overflow-y: auto;
  display: flex; flex-direction: column; gap: 5px; padding: 12px 8px; }
.cnav { display: flex; gap: 8px; align-items: center; padding: 7px 8px;
  border-radius: 9px; cursor: pointer; border: 1px solid transparent; }
.cnav:hover { background: var(--panel); border-color: var(--accent); }
.cnav .n { flex: 0 0 25px; width: 25px; height: 25px; border-radius: 50%;
  border: 1.5px solid var(--border); background: var(--panel); color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; }
.cnav:hover .n { border-color: var(--accent); color: var(--accent); }
.cnav .t { font-size: 12px; line-height: 1.35; color: var(--muted);
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cnav:hover .t { color: var(--text); }
@media (max-width: 720px) {
  .conv-nav { flex-basis: 20%; min-width: 130px; }
  .cnav .t { font-size: 11px; }
}

/* ===== thanh cuộn mảnh, thanh thoát toàn trang ===== */
* { scrollbar-width: thin; scrollbar-color: #3a4763 transparent; }
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #3a4763; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #55679a; }
::-webkit-scrollbar-corner { background: transparent; }

/* tiêu đề section trong dòng chat + số đang xem sáng lên */
.sec-head { display: flex; align-items: center; gap: 9px; width: 100%;
  margin: 16px 0 6px; padding: 8px 12px; border-radius: 10px;
  background: var(--panel); border: 1px solid var(--border);
  border-left: 3px solid var(--accent); font-weight: 700; font-size: 13.5px; }
.sec-head .n { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: #fff; display: flex; align-items: center;
  justify-content: center; font-size: 11.5px; }
.cnav.active { background: var(--panel); border-color: var(--accent); }
.cnav.active .n { border-color: var(--accent); color: #fff; background: var(--accent); }
.cnav.active .t { color: var(--text); }

/* cây mục lục: mục cha đậm, mục con thụt vào */
.cnav.sec { margin-top: 7px; background: var(--panel); border-color: var(--border); }
.cnav.sec .t { font-weight: 700; color: var(--text); font-size: 12.5px; }
.cnav.sub { padding: 3px 8px 3px 26px; border: none; border-left: 1px solid var(--border);
  margin-left: 13px; border-radius: 0 8px 8px 0; }
.cnav.sub .t { font-size: 11.5px; -webkit-line-clamp: 1; }
.cnav.sub:hover { background: var(--panel); }

/* ===== trang Hướng dẫn: 2 cột (mục lục dính trái + nội dung phải) ===== */
.guide-layout { display: flex; gap: 18px; align-items: flex-start; }
.guide-toc { display: block; flex: 0 0 240px; position: sticky; top: 12px; background: var(--panel);
  border: 1px solid var(--border); border-radius: 12px; padding: 10px;
  max-height: calc(100vh - 40px); overflow-y: auto; }
.guide-toc a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--muted);
  text-decoration: none; font-size: 13px; line-height: 1.4; border-left: 3px solid transparent; }
.guide-toc a:hover { background: var(--bg); color: var(--text); }
.guide-toc a.active { background: var(--bg); color: var(--text);
  border-left-color: var(--accent); font-weight: 600; }
.guide-body { flex: 1; min-width: 0; }
.guide-body .panel { margin-bottom: 14px; scroll-margin-top: 12px; }
.guide-body h2 { margin-top: 0; }
.g-why { background: var(--bg); border-left: 3px solid var(--accent); border-radius: 8px;
  padding: 8px 12px; margin: 8px 0; font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.g-why b:first-child { color: var(--accent); }
@media (max-width: 900px) {
  /* màn hẹp: mục lục vẫn DỌC, xếp trên nội dung */
  .guide-layout { flex-direction: column; }
  .guide-toc { position: static; flex-basis: auto; width: 100%; max-height: none; }
}
