/* Token mặc định = GG88; app.js ghi đè từ tenant.theme (MM88/RR88 chỉ đổi biến). */
:root {
  --jade: #25c4af; --jadeDark: #007f70; --jadeSoft: #e8f8f4;
  --dark: #102f2c; --darkLine: #2c4945; --ink: #102a29; --muted: #5f716d;
  --line: #dfeae6; --canvas: #eef6f3;
  --gold: #edc45c; --goldDark: #946c15; --goldSoft: #fff7de;
  --red: #d9291f; --redSoft: #fff1f0; --white: #fff;
  --bar: linear-gradient(90deg, var(--jadeDark), color-mix(in srgb, var(--jadeDark) 55%, var(--jade)));
  --r: 12px; --shadow: 0 8px 20px -12px rgba(16, 47, 44, .35);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; font: 15px/1.45 "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--canvas); font-variant-numeric: tabular-nums; padding-bottom: 72px; }
::selection { background: var(--jade); color: var(--dark); }
:focus-visible { outline: 2px solid var(--jadeDark); outline-offset: 2px; }
* { scrollbar-color: var(--jadeDark) var(--jadeSoft); scrollbar-width: thin; }
a { color: var(--jadeDark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
h2, h3, h4, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
.sr { position: absolute; clip: rect(0 0 0 0); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.ic { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.18em; flex: none; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.empty { padding: 20px 16px; color: var(--muted); }

/* ---------- khung ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.pad { padding: 14px 16px; }
.bar { background: var(--bar); color: #fff; font-size: 16px; font-weight: 700; padding: 12px 16px; display: flex; align-items: center; gap: 8px; border-radius: var(--r) var(--r) 0 0; }
.bar span { margin-left: auto; font-size: 13px; font-weight: 500; opacity: .92; }
.bar.plain { border-radius: var(--r); }
.card > .bar, .card .bar { border-radius: var(--r) var(--r) 0 0; }
h4 { font-size: 15px; font-weight: 700; margin: 14px 0 8px; }
.pad > h4:first-child { margin-top: 0; }
.btn { display: block; width: 100%; padding: 13px 16px; border: 0; border-radius: 10px; background: var(--jade); color: var(--dark); font-weight: 700; font-size: 15px; transition: filter .15s ease-out, transform .15s ease-out; }
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip, .chips button, .pill { display: inline-flex; align-items: center; gap: 6px; background: var(--jadeSoft); color: var(--jadeDark); font-weight: 600; padding: 9px 14px; border-radius: 8px; text-decoration: none; border: 1px solid transparent; }
.chips button[aria-pressed="true"], .chip.cur { background: var(--jadeDark); color: #fff; }
.chips.small button { padding: 7px 12px; font-size: 13px; }
.chip b { color: var(--red); margin-left: 4px; }
.chip.cur b { color: #fff; }
.chip .ic { margin-left: auto; opacity: .6; }

/* ---------- header ---------- */
.top { background: var(--jadeDark); color: #fff; position: sticky; top: 0; z-index: 5; box-shadow: 0 2px 10px -4px rgba(0, 0, 0, .35); }
.top .wrap { max-width: 1880px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 16px; min-height: 56px; flex-wrap: wrap; }
.logo { color: #fff; text-decoration: none; line-height: 1; display: none; }
.logo b { display: block; font-size: 24px; font-weight: 800; font-style: italic; letter-spacing: -.02em; }
.logo img { height: 36px; display: block; }
.ttl { font-size: 19px; font-weight: 700; flex: 1; }
.tabs { display: flex; gap: 6px; flex: 1 0 100%; background: var(--canvas); margin: 0 -16px; padding: 8px 12px; }
.tab { flex: 1; text-align: center; padding: 9px 12px; border-radius: 8px; font-weight: 600; text-decoration: none; color: var(--ink); white-space: nowrap; }
.tab.cur { background: var(--jadeDark); color: #fff; }
.tab.off { color: var(--muted); opacity: .6; cursor: not-allowed; display: inline-flex; flex-direction: column; align-items: center; gap: 0; line-height: 1.2; }
.tab.off small { font-size: 10px; font-weight: 500; }

/* ---------- bố cục: DOM = thứ tự desktop; mobile xếp lại bằng order ---------- */
.cols { max-width: 1880px; margin: 0 auto; padding: 12px 12px 0; display: flex; flex-direction: column; gap: 12px; }
.side, .main, .right { display: contents; }
.b { order: var(--o, 50); }
.b-backup { --o: 1; } .b-pick { --o: 2; } .b-banner { --o: 3; } .b-head { --o: 4; } .b-status { --o: 5; } .b-kq1 { --o: 6; }
.b-dove { --o: 7; } .b-kqn { --o: 8; } .b-lich { --o: 9; } .b-dbtuan { --o: 10; } .b-thongke { --o: 11; } .b-ghichu { --o: 12; }
.b-faq { --o: 13; } .b-homqua { --o: 14; } .b-tintuc { --o: 15; } .b-danhmuc { --o: 16; } .b-tienich { --o: 17; }

/* ---------- link dự phòng + banner + chọn ---------- */
.backup { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--goldSoft); border: 2px solid var(--gold); border-radius: var(--r); padding: 12px 16px; text-decoration: none; }
.backup span { font-style: italic; font-weight: 700; text-transform: uppercase; color: var(--ink); letter-spacing: .02em; }
.backup b { color: var(--jadeDark); text-decoration: underline; text-underline-offset: 4px; font-size: 18px; font-weight: 800; }
.banner { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.banner img { display: block; width: 100%; height: auto; }
.banner .ph { min-height: 150px; display: grid; place-content: center; text-align: center; padding: 22px 16px; color: #fff; background: radial-gradient(120% 90% at 85% 20%, color-mix(in srgb, var(--jade) 65%, #fff0) 0, #fff0 60%), linear-gradient(135deg, var(--dark), var(--jadeDark) 70%, color-mix(in srgb, var(--jadeDark) 50%, var(--jade))); position: relative; }
.banner .ph-t { font-size: clamp(34px, 9vw, 64px); font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: -.02em; line-height: 1; }
.banner .ph-s { margin-top: 10px; justify-self: center; background: var(--dark); color: var(--jade); font-size: clamp(9px, 2.4vw, 12px); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; white-space: nowrap; }
.banner small { position: absolute; right: 8px; bottom: 6px; font-size: 10px; opacity: .55; }
.miens { display: flex; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 4px; margin-bottom: 10px; }
.mien { flex: 1; text-align: center; padding: 8px; border-radius: 7px; font-weight: 600; color: var(--muted); }
.mien.cur { background: var(--jadeSoft); color: var(--jadeDark); }
.pickrow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sel { position: relative; display: block; }
.sel select, .sel input { width: 100%; appearance: none; -webkit-appearance: none; font: inherit; font-weight: 600; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 38px 12px 12px; }
.sel .ic { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--jadeDark); pointer-events: none; }
.sel input[type="date"]::-webkit-calendar-picker-indicator { opacity: 0; position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.crumb { margin-top: 10px; font-size: 13px; color: var(--muted); }
.crumb b { color: var(--ink); }

/* ---------- khối tiêu đề + tab thứ ---------- */
.head { background: var(--bar); color: #fff; border-radius: var(--r); padding: 14px 16px 12px; box-shadow: var(--shadow); }
.head h1 { font-size: 21px; font-weight: 700; margin: 0; }
.head p { font-size: 13px; opacity: .9; margin-top: 2px; }
.thutabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; align-items: center; }
.thutabs [role="tab"] { background: rgba(255, 255, 255, .16); color: #fff; border: 0; padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.thutabs [role="tab"][aria-selected="true"] { background: #fff; color: var(--jadeDark); }
.thutabs .lnk { margin-left: auto; color: #fff; font-weight: 600; text-decoration: none; padding: 8px 12px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 8px; }
.thutabs .lnk.cal { display: none; }
.status { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.status.live .dot { background: var(--red); animation: pulse 1.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--red) 55%, #fff0); } 100% { box-shadow: 0 0 0 12px #fff0; } }

/* ---------- thẻ kỳ ---------- */
.ky { padding: 14px 16px 16px; }
.ky-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.ky-h h3 { font-size: 20px; font-weight: 700; }
.ky-h .sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.icb { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--jadeDark); display: grid; place-items: center; font-size: 18px; }
.ky-side { display: none; }
.kq { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.kq th { width: 46px; background: var(--jadeSoft); color: var(--jadeDark); font-weight: 700; font-size: 13px; text-align: center; border-bottom: 1px solid var(--line); }
.kq td { padding: 5px 4px; border-bottom: 1px solid var(--line); }
.kq tr:last-child th, .kq tr:last-child td { border-bottom: 0; }
.ns { display: flex; flex-wrap: wrap; justify-content: center; row-gap: 2px; }
.n { position: relative; flex: 0 0 33.333%; text-align: center; font-weight: 700; font-size: 22px; line-height: 1.3; padding: 2px 0; border-radius: 6px; transition: background .2s ease-out, box-shadow .2s ease-out; white-space: nowrap; }
.r-g4 .n:nth-child(n+4) { flex-basis: 50%; }
.r-g8 .n, .r-db .n { color: var(--red); }
.r-g8 .n { font-size: 26px; }
.r-db .n { font-size: 32px; letter-spacing: .02em; }
.r-db td, .r-db th { background: var(--redSoft); }
.r-db th { color: var(--red); }
.m-2 .p1, .m-2 .p2, .m-3 .p1 { position: absolute; clip: rect(0 0 0 0); width: 1px; height: 1px; overflow: hidden; }
.hl-0 .n[data-d="0"], .hl-1 .n[data-d="1"], .hl-2 .n[data-d="2"], .hl-3 .n[data-d="3"], .hl-4 .n[data-d="4"], .hl-5 .n[data-d="5"], .hl-6 .n[data-d="6"], .hl-7 .n[data-d="7"], .hl-8 .n[data-d="8"], .hl-9 .n[data-d="9"] { background: var(--goldSoft); box-shadow: inset 0 0 0 2px var(--gold); }
.datenav { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; background: var(--jadeSoft); border-radius: 8px; padding: 6px 8px; }
.datenav button, .datenav a { background: none; border: 0; color: var(--jadeDark); font-weight: 600; font-size: 14px; padding: 6px 8px; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.loto { margin-top: 12px; border: 1px solid var(--line); border-radius: 8px; }
.loto summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; font-weight: 700; color: var(--jadeDark); background: var(--jadeSoft); }
.loto summary::-webkit-details-marker { display: none; }
.loto[open] summary { background: #fff; color: var(--ink); }
.loto[open] summary .ic { transform: rotate(180deg); }
.digits { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 2px 12px 10px; }
.digits button { font-weight: 700; font-size: 18px; padding: 10px 0; border: 1px solid var(--line); background: var(--jadeSoft); color: var(--ink); border-radius: 8px; transition: background .15s ease-out; }
.digits button[aria-pressed="true"] { background: var(--jadeDark); color: #fff; border-color: var(--jadeDark); }
.modes { display: flex; gap: 18px; padding: 0 12px 12px; font-weight: 600; }
.modes input { accent-color: var(--jadeDark); margin: 0 4px 0 0; }
.dd-block { margin-top: 12px; }
.dd-block .bar { border-radius: 8px 8px 0 0; font-size: 15px; padding: 10px 14px; }
.ddwrap { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.ddwrap.one { grid-template-columns: 1fr; margin-top: 0; }
.dd { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; font-size: 14px; }
.dd thead th { background: var(--jadeSoft); color: var(--jadeDark); font-size: 12px; text-align: left; padding: 6px 10px; }
.dd tbody th { color: var(--jadeDark); font-weight: 700; width: 36px; text-align: left; padding: 6px 10px; border-top: 1px solid var(--line); }
.dd td { padding: 6px 10px; border-top: 1px solid var(--line); font-weight: 600; }
.more { margin: 12px 0 0; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.b-kqn .ky { margin-top: 12px; }
.b-kqn .bar { border-radius: var(--r); }

/* ---------- dò vé ---------- */
.dove { padding: 14px 16px 16px; display: grid; gap: 12px; }
.fld { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.fld input { font: inherit; font-weight: 600; letter-spacing: .08em; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.fld input::placeholder { color: var(--muted); letter-spacing: 0; font-weight: 400; }
.dove-kq:empty { display: none; }
.hit, .miss { padding: 12px 14px; border-radius: 8px; font-weight: 500; }
.hit { background: var(--goldSoft); border: 1px solid var(--gold); }
.miss { background: var(--jadeSoft); color: var(--jadeDark); }

/* ---------- lịch · ĐB tuần · thống kê ---------- */
.b-lich .card { margin-top: 12px; }
.calnav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.calnav button { background: none; border: 0; color: var(--jadeDark); font-size: 18px; padding: 6px 10px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal .h { font-size: 12px; font-weight: 600; color: var(--muted); padding: 6px 0; }
.cal .d { display: block; width: 100%; padding: 10px 0; border-radius: 6px; font-weight: 600; font-size: 14px; border: 1px solid transparent; background: none; color: var(--ink); }
.cal .has { background: var(--jadeSoft); color: var(--jadeDark); }
.cal .now { background: var(--jadeDark); color: #fff; }
.cal .future { border-color: var(--line); color: var(--muted); }
.cal .out { color: color-mix(in srgb, var(--muted) 45%, #fff); }
.legend { margin-top: 10px; font-size: 13px; color: var(--muted); }
.legend b { color: var(--jadeDark); display: block; }
.dbt { display: grid; grid-template-columns: repeat(var(--cols, 2), 1fr); gap: 10px; }
.dbt h4 { text-align: center; color: var(--jadeDark); margin: 0 0 6px; }
.dbt li { display: flex; justify-content: space-between; align-items: baseline; background: var(--jadeSoft); border-radius: 8px; padding: 8px 10px; margin-top: 6px; }
.dbt li:nth-child(even) { background: #f6faf9; }
.dbt b { font-size: 18px; font-weight: 700; }
.dbt em { font-style: normal; color: var(--red); }
.dbt small { color: var(--muted); font-size: 12px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: var(--jadeSoft); border-radius: 10px; padding: 12px; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: baseline; }
.stat b { font-size: 30px; color: var(--jadeDark); font-weight: 800; grid-row: span 2; }
.stat span { font-weight: 600; }
.stat small { color: var(--muted); font-size: 12px; }
.ddrows { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.ddrows > .muted, .stats > .muted { grid-column: 1 / -1; }
.ddrows small { color: var(--muted); }

/* ---------- ghi chú · FAQ · hôm qua · tin · tiện ích · danh mục ---------- */
.latest { background: var(--jadeSoft); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
.latest p { font-size: 17px; font-weight: 700; }
.latest p b { color: var(--red); font-size: 24px; }
.latest .muted { font-size: 14px; font-weight: 600; }
.faq details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--jadeDark); transition: transform .2s ease-out; }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq p { color: var(--muted); margin-top: 6px; }
.news li { border-bottom: 1px solid var(--line); }
.news li:last-child { border-bottom: 0; }
.news a { display: flex; gap: 12px; align-items: center; padding: 10px 16px; text-decoration: none; color: var(--ink); font-weight: 500; }
.news img { width: 90px; height: 64px; object-fit: cover; border-radius: 6px; flex: none; }
.news .thumb.ph { display: block; width: 90px; height: 64px; border-radius: 6px; background: var(--jadeSoft); flex: none; }
.news .news-row, .news li.ph { display: flex; gap: 12px; align-items: center; padding: 10px 16px; }
.news li.ph > span:last-child { flex: 1; display: grid; gap: 8px; }
.news li.ph i { display: block; height: 10px; border-radius: 5px; background: var(--line); }
.news b { display: block; font-weight: 600; line-height: 1.35; }
.news small { color: var(--muted); font-size: 12px; }
.news-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 13px; }
.news-more { display: inline-flex; align-items: center; gap: 2px; color: var(--jadeDark); font-weight: 600; margin-left: auto; }
.news-more[aria-disabled="true"] { color: var(--muted); cursor: default; }
.util { padding: 6px 0; }
.util a { display: flex; align-items: center; gap: 8px; padding: 10px 16px; text-decoration: none; color: var(--ink); font-weight: 600; border-top: 1px solid var(--line); }
.util li:first-child a { border-top: 0; }
.util .ic { color: var(--jadeDark); }
.grp { padding: 14px 16px 6px; font-size: 15px; margin: 0; }
.plist { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 16px 12px; }
.plist .chip { width: 100%; justify-content: space-between; }
.plist .chip .ic { display: none; }
.totop { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 12px auto 0; max-width: 1880px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; font-weight: 700; text-decoration: none; }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 20px 16px 8px; }
.foot b { color: var(--ink); }

/* ---------- bottom nav (mobile) ---------- */
.bnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); background: #fff; border-top: 1px solid var(--line); padding: 6px 0 max(6px, env(safe-area-inset-bottom)); }
.bnav a { display: grid; justify-items: center; gap: 2px; font-size: 12px; font-weight: 600; color: var(--jadeDark); text-decoration: none; }
.bnav .ic { width: 22px; height: 22px; }

/* ---------- skeleton / lỗi ---------- */
.skel .top { height: 56px; }
.skel .sk { height: 120px; background: #fff; border-radius: var(--r); border: 1px solid var(--line); animation: sk 1.2s ease-in-out infinite alternate; }
.skel .tall { height: 420px; }
@keyframes sk { to { opacity: .55; } }
.err { padding: 24px 16px; text-align: center; display: grid; gap: 12px; max-width: 420px; margin: 40px auto; }

/* ---------- ≥769: 2 cột ---------- */
@media (min-width: 769px) {
  body { padding-bottom: 0; }
  .bnav { display: none; }
  .top .wrap { flex-wrap: nowrap; min-height: 64px; }
  .logo { display: block; }
  .ttl { display: none; }
  .tabs { flex: 0 1 auto; background: none; margin: 0 0 0 auto; padding: 0; gap: 10px; }
  .tab { color: #fff; padding: 8px 18px; flex: none; white-space: nowrap; }
  .tab.cur { background: #fff; color: var(--jadeDark); }
  .tab.off { color: #fff; opacity: .6; }
  .cols { display: grid; grid-template-columns: minmax(0, 1fr) 400px; grid-template-areas: "banner banner" "main right" "side side"; gap: 16px; padding: 16px; align-items: start; }
  .side, .main, .right { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
  .main { grid-area: main; } .right { grid-area: right; } .side { grid-area: side; } .b-banner { grid-area: banner; }
  .b { order: 0; }
  .b[hidden] { display: none; }
  .banner .ph { min-height: 190px; }
  .pickrow { grid-template-columns: 1fr 1fr; max-width: 560px; }
  .miens { max-width: 420px; }
  .head { padding: 12px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
  .head h1 { font-size: 18px; text-transform: uppercase; }
  .head p { display: none; }
  .thutabs { margin: 0 0 0 auto; }
  .thutabs .lnk { display: none; }
  .thutabs .lnk.cal { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; }
  .ky-body { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 12px; align-items: start; }
  .ky-side { display: block; }
  .dd-block { display: none; }
  .n { font-size: 21px; }
  .r-g8 .n { font-size: 24px; }
  .r-db .n { font-size: 30px; }
  .plist { grid-template-columns: repeat(4, 1fr); }
  .stats { grid-template-columns: 1fr 1fr; }
}

/* ---------- ≥1281: 3 cột đúng Figma 281 / 937 / 618 ---------- */
@media (min-width: 1281px) {
  .cols { grid-template-columns: 281px minmax(0, 1fr) 618px; grid-template-areas: "side banner banner" "side main right"; gap: 20px; padding: 20px; }
  .side { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; }
  .b-danhmuc .bar { font-size: 14px; text-transform: uppercase; padding: 10px 14px; }
  .grp { font-size: 13px; text-transform: uppercase; color: var(--jadeDark); padding: 12px 14px 4px; }
  .plist { display: block; padding: 0; }
  .plist li + li { border-top: 1px solid var(--line); }
  .plist .chip { background: none; color: var(--ink); border-radius: 0; padding: 9px 14px; font-weight: 500; }
  .plist .chip.cur { background: var(--jadeSoft); color: var(--jadeDark); font-weight: 700; }
  .plist .chip .ic { display: block; }
  .ky-body { grid-template-columns: minmax(0, 1fr) 200px; }
  .n { font-size: 22px; }
  .r-g8 .n { font-size: 26px; }
  .r-db .n { font-size: 32px; }
  .util { display: grid; grid-template-columns: 1fr 1fr; }
  .util a { border-top: 0; }
}

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