/* Cormorant Garamond, Be Vietnam Pro: Google Fonts, giấy phép SIL Open Font License 1.1 (tải 26/11/2026) */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/be-vietnam-pro-400-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/be-vietnam-pro-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/be-vietnam-pro-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/static/fonts/be-vietnam-pro-500-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/static/fonts/be-vietnam-pro-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/static/fonts/be-vietnam-pro-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/static/fonts/cormorant-garamond-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/static/fonts/cormorant-garamond-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/static/fonts/cormorant-garamond-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  /* Nền sáng xanh lơ rất nhạt (bạn hiền dặn 26/11/2026) */
  --bg: #eef8fc;
  --panel: #ffffff;
  --panel2: #f3fafd;
  --hover: #e3f3fa;
  --line: #cbe3ee;
  --text: #1c2b36;
  --muted: #5a6d79;
  --gold: #1f6fb8;        /* nền nút, viền nhấn: xanh (bạn hiền dặn 26/11/2026: Gentao không dùng màu vàng) */
  --gold-h: #2b80cc;      /* nút khi rê chuột */
  --gold2: #0f4c81;       /* chữ nhấn: tiêu đề, chữ đậm (xanh đậm) */
  --red: #c0392b;
  --green: #1e8a4c;
  --blue: #1f5fae;
  --brand: #0f4c81;       /* chữ Gentao.net: bản xanh đậm */
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
a { color: var(--gold2); }
/* Tiêu đề dùng Cormorant Garamond như chữ GENTAO (bạn hiền dặn 26/11/2026); phông này chữ nhỏ hơn Times nên tăng cỡ một chút */
h1, h2, h3 { font-family: "Cormorant Garamond", "Times New Roman", serif; font-weight: 700; letter-spacing: .01em; }
h1 { font-size: 2.3em; } h2 { font-size: 1.65em; } h3 { font-size: 1.3em; }
header.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 24px; border-bottom: 1px solid #7cc3e0;
  background: url(/static/sao.svg?v=3) repeat left center / 480px 72px, linear-gradient(180deg, #a9ddf1, #8fd0ea);
  min-height: 92px;
  box-shadow: 0 2px 10px rgba(15, 76, 129, .08);
  position: sticky; top: 0; z-index: 5;
}
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--brand); }
/* Chữ GENTAO theo bản logo của bạn hiền: Cormorant Garamond chữ hoa giãn rộng, to và đậm (bạn hiền dặn 26/11/2026) */
.brand-ten { font: 700 2.9rem/1 "Cormorant Garamond", "Times New Roman", serif; letter-spacing: .14em; color: #143558;
  -webkit-text-stroke: .6px #143558; text-transform: uppercase; white-space: nowrap; }
.brand-ten small { font: 700 2.15rem "Cormorant Garamond", "Times New Roman", serif; letter-spacing: 0; text-transform: none; color: #2f5f8f; -webkit-text-stroke: .3px #2f5f8f; margin-left: 2px; }
.brand-logo { width: 76px; height: 76px; flex: none; object-fit: contain; }
@media (max-width: 720px) { .brand { gap: 10px; } .brand-logo { width: 64px; height: 64px; } .brand-ten { font-size: 2.55rem; letter-spacing: .1em; } .brand-ten small { font-size: 1.85rem; } }
@media (max-width: 600px) {
  header.top { flex-wrap: wrap; row-gap: 4px; padding: 10px 12px 8px; }
  header.top nav { width: 100%; display: flex; justify-content: center; gap: 22px; border-top: 1px solid rgba(255, 255, 255, .5); padding-top: 6px; }
  header.top nav a { margin-left: 0; white-space: nowrap; }
}
nav a { color: #12324d; text-decoration: none; margin-left: 18px; font-weight: 600; opacity: .85; }
nav a.on, nav a:hover { color: var(--gold2); opacity: 1; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
main { max-width: 1080px; margin: 0 auto; padding: 24px 16px 60px; }
footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 24px 16px 40px; border-top: 1px solid var(--line); background: #e2f2f9; }

.hero { text-align: center; padding: 40px 0 20px; }
.hero h1 { font-size: 2.4rem; margin: 0 0 8px; color: var(--gold2); }
.hero p { color: var(--muted); max-width: 640px; margin: 0 auto; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 30px; }
.card {
  display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 24px; text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--gold); transform: translateY(-2px); }
.card h2 { margin: 6px 0 8px; color: var(--gold2); font-size: 1.7rem; }
.card .ico { font-size: 2rem; }
.card p { color: var(--muted); margin: 0; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 20px; }
.panel h2 { margin: 0 0 14px; color: var(--gold2); font-size: 1.6rem; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
label { display: block; color: var(--muted); font-size: .9rem; margin-bottom: 4px; }
input, select, textarea, button { font: inherit; }
input, select, textarea {
  width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--panel2); color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; }
.row { display: flex; gap: 8px; }
.row > * { flex: 1; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { background: transparent; color: var(--muted); border: 0; padding: 8px 14px; cursor: pointer; }
.seg button.on { background: var(--gold); color: #fff; font-weight: 600; }
.btn {
  background: var(--gold); color: #fff; border: 0; border-radius: 10px; padding: 12px 22px;
  font-weight: 700; cursor: pointer; font-size: 1rem;
}
.btn:hover { background: var(--gold-h); }
.btn.ghost { background: #fff; color: var(--gold2); border: 1px solid var(--gold); }
.btn.ghost:hover { background: #e8f3fb; }
.btn:disabled { opacity: .5; cursor: default; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.note { color: var(--muted); font-size: .88rem; }
.err { color: var(--red); font-weight: 600; }
.hidden { display: none !important; }
.check { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.check input { width: auto; }

/* Lá số Tử Vi: lưới 4 x 4, giữa là thông tin */
.tv-board {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(150px, auto);
  gap: 4px; background: var(--line); border: 4px solid var(--line); border-radius: 10px;
}
.tv-cung { min-width: 0; overflow-wrap: break-word; background: var(--panel); padding: 6px 7px; display: flex; flex-direction: column; font-size: .82rem; cursor: pointer; position: relative; }
.tv-cung:hover, .tv-cung.sel { background: var(--hover); }
.tv-cung.menh { box-shadow: inset 0 0 0 2px var(--gold); }
.tv-cung.han { background: #e2f0fb; }
.tv-head { display: flex; justify-content: space-between; gap: 4px; align-items: baseline; }
.tv-chuc { color: var(--gold2); font-weight: 700; text-transform: uppercase; font-size: .78rem; }
.tv-than { color: #fff; background: var(--gold); border-radius: 4px; padding: 0 4px; font-size: .7rem; font-weight: 700; }
.tv-dh { color: var(--muted); font-size: .75rem; }
.tv-chinh { color: #c2560c; font-weight: 700; font-size: .9rem; line-height: 1.25; margin: 4px 0 2px; }
.tv-hoa { color: var(--green); font-weight: 600; font-size: .72rem; margin-left: 3px; }
.tv-hoa.ky { color: var(--red); }
.tv-sao { line-height: 1.3; }
.tv-sao .cat { color: var(--blue); }
.tv-sao .sat { color: var(--red); }
.tv-sao .vong { color: var(--muted); }
.tv-sao .phu { font-size: .92em; }
.tv-sao .phu.tot { color: #1f6fb8; }
.tv-sao .phu.xau { color: #c0392b; }
.tv-sao .phu.tb { color: #7a7462; }
.tv-sang { font-size: .62rem; font-weight: 700; margin-left: 2px; vertical-align: super; color: var(--muted); }
.tv-sang.sM, .tv-sang.sV { color: var(--green); }
.tv-sang.sD { color: #2e7d6b; }
.tv-sang.sH { color: var(--red); }
.tv-sao .tt { color: #8e3fc4; font-weight: 700; }
.tv-foot { margin-top: auto; display: flex; justify-content: space-between; gap: 4px; color: var(--muted); font-size: .72rem; border-top: 1px dashed var(--line); padding-top: 3px; }
.tv-center { grid-column: 2 / 4; grid-row: 2 / 4; background: #f6fbfe; padding: 14px; text-align: center; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.tv-center .ten { color: var(--gold2); font: 700 1.7rem "Cormorant Garamond", "Times New Roman", serif; letter-spacing: .01em; }
.tv-center .dong { font-size: .92rem; }
.tv-center .dong b { color: var(--gold2); font-weight: 600; }
.p1 { grid-column: 3; grid-row: 4; } .p2 { grid-column: 2; grid-row: 4; } .p3 { grid-column: 1; grid-row: 4; }
.p4 { grid-column: 1; grid-row: 3; } .p5 { grid-column: 1; grid-row: 2; } .p6 { grid-column: 1; grid-row: 1; }
.p7 { grid-column: 2; grid-row: 1; } .p8 { grid-column: 3; grid-row: 1; } .p9 { grid-column: 4; grid-row: 1; }
.p10 { grid-column: 4; grid-row: 2; } .p11 { grid-column: 4; grid-row: 3; } .p12 { grid-column: 4; grid-row: 4; }

.giai-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.giai { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.giai.sel { border-color: var(--gold); }
.giai h3 { margin: 0 0 2px; font-size: 1.3rem; color: var(--gold2); }
.giai .sub { color: var(--muted); font-size: .85rem; margin-bottom: 6px; }
.giai ul { margin: 0; padding-left: 18px; }
.giai li { margin: 2px 0; }

/* Bàn Kỳ Môn: lưới 3 x 3 theo hướng (Nam ở trên) */
.km-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--line); border: 4px solid var(--line); border-radius: 10px; }
.km-cung { background: var(--panel); padding: 8px 10px; min-height: 150px; display: flex; flex-direction: column; gap: 2px; position: relative; cursor: pointer; }
.km-cung:hover { background: var(--hover); }
.km-cung.dt { box-shadow: inset 0 0 0 2px var(--gold); }
.km-cung.dung { box-shadow: inset 0 0 0 2px var(--green); }
.km-cung.mid { cursor: default; justify-content: center; text-align: center; background: #f6fbfe; }
.km-top { display: flex; justify-content: space-between; color: var(--muted); font-size: .78rem; }
.km-than { color: #c2560c; font-weight: 700; }
.km-sao { color: var(--gold2); }
.km-mon { color: var(--blue); font-weight: 700; }
.km-mon.hung { color: var(--red); }
.km-can { margin-top: auto; display: flex; justify-content: space-between; border-top: 1px dashed var(--line); padding-top: 4px; }
.km-can .tb { color: var(--text); font-weight: 600; }
.km-can .db { color: var(--muted); }
.tag { display: inline-block; font-size: .7rem; padding: 0 5px; border-radius: 4px; margin-right: 3px; font-weight: 700; }
.tag.tk { background: #efe3fb; color: #6b2ea0; }
.tag.ma { background: #dff3e6; color: #1e6b3d; }
.info { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 6px 18px; margin-bottom: 14px; }
.info div b { color: var(--gold2); font-weight: 600; }
.ketluan { font-size: 1.08rem; border-left: 4px solid var(--gold); padding: 8px 14px; background: var(--panel2); border-radius: 0 8px 8px 0; margin: 10px 0 16px; }
.spin { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.spin-num {
  width: 76px; height: 76px; border-radius: 50%; border: 3px solid var(--gold); display: flex; align-items: center;
  justify-content: center; font: 700 2rem "Cormorant Garamond", "Times New Roman", serif; color: var(--gold2); background: var(--panel2);
}
.spin-num.chot { border-color: var(--green); color: var(--green); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: .82rem; margin-top: 8px; }
.legend span::before { content: "■ "; }
.legend .l1::before { color: #c2560c; } .legend .l2::before { color: var(--gold2); }
.legend .l3::before { color: var(--blue); } .legend .l4::before { color: var(--red); }

/* Luận giải bằng AI */
.ai-form textarea { resize: vertical; }
.ai-chat { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.ai-ban { align-self: flex-end; max-width: 85%; background: var(--panel2); border: 1px solid var(--line); border-radius: 12px 12px 2px 12px; padding: 8px 12px; }
.ai-gentao { border-left: 4px solid var(--gold); padding: 4px 4px 4px 14px; }
.ai-gentao p { margin: 0 0 8px; }
.ai-gentao ul { margin: 0 0 8px; padding-left: 20px; }
.ai-gentao b { color: var(--gold2); }
.ai-cho { color: var(--gold2); font-style: italic; }
.ai-cho::before { content: "✥ "; display: inline-block; animation: xoay 1.6s linear infinite; }
@keyframes xoay { to { transform: rotate(360deg); } }
.ai-more { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.ai-more input { flex: 1; min-width: 200px; }

@media (max-width: 720px) {
  header.top { padding: 10px 12px; }
  nav a { margin-left: 12px; }
  main { padding: 16px 8px 50px; }
  .hero h1 { font-size: 1.8rem; }
  .tv-board { grid-auto-rows: minmax(120px, auto); }
  .tv-cung { font-size: .68rem; padding: 4px; }
  .tv-chinh { font-size: .74rem; }
  .tv-chuc { font-size: .64rem; }
  .tv-center .ten { font-size: 1rem; }
  .tv-center .dong { font-size: .74rem; }
  .km-cung { font-size: .8rem; padding: 6px; min-height: 130px; }
  .panel { padding: 14px; }
}
@media print {
  header.top, footer, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
}
.tv-foot span:last-child { white-space: nowrap; }
/* Trang quản trị */
.qt-login { max-width: 420px; margin: 40px auto; }
.qt-muc { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.qt-muc .giai label { margin-top: 8px; }
.qt-vd { margin-top: 10px; color: var(--gold2); font-size: .9rem; }
.qt-bang { overflow-x: auto; margin-top: 10px; }
.qt-bang table { border-collapse: collapse; width: 100%; font-size: .88rem; }
.qt-bang th, .qt-bang td { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: right; white-space: nowrap; }
.qt-bang th:first-child, .qt-bang td:first-child { text-align: left; }
.qt-bang th { color: var(--gold2); font-weight: 600; }
.ai-phi { color: var(--muted); font-size: .85rem; margin-top: -2px; }
.ai-phi b { color: var(--gold2); }
.ai-muc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.ai-muc label { display: flex; align-items: center; gap: 6px; color: var(--text); margin: 0; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; cursor: pointer; }
.ai-muc label.on { border-color: var(--gold); background: var(--panel2); }
.ai-muc input { width: auto; }
.ai-muc small { color: var(--muted); }
.ai-tong { color: var(--muted); font-size: .88rem; margin-top: 8px; }
.ai-nhom { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 4px; }
.ai-hang-ten { color: var(--gold2); font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.ai-hang .ai-muc { margin-top: 0; }
.ai-hang .ai-muc label { flex: 1; min-width: 120px; align-items: flex-start; }
.ai-muc-chu { display: flex; flex-direction: column; line-height: 1.3; }
.ai-muc-chu small { color: var(--muted); }
/* Chấm sao lời luận */
.ai-sao { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .88rem; color: var(--muted); }
.ai-sao-nut { display: inline-flex; }
.ai-sao-nut button { background: none; border: 0; color: var(--muted); font-size: 1.5rem; line-height: 1; padding: 2px 3px; cursor: pointer; }
.ai-sao-nut button.on { color: var(--gold); }
.ai-sao-bo { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 6px; padding: 3px 10px; cursor: pointer; font-size: .82rem; }
.ai-sao-bo:hover { color: var(--text); }
/* Người xem và nạp tiền */
.ai-khach { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; background: var(--panel2); }
.ai-khach-o { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; margin-top: 4px; }
.ai-khach-o small { display: block; color: var(--muted); font-size: .78rem; margin-bottom: 2px; }
.ai-khach .check { margin-top: 8px; font-size: .88rem; }
.ai-khach-dong { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.ai-khach-tt:empty { display: none; }
.ai-khach-dong .btn { padding: 6px 14px; font-size: .9rem; }
.ai-no { color: var(--gold2); font-weight: 600; }
.ai-nap { border: 1px solid var(--gold); border-radius: 10px; padding: 14px; margin: 10px 0 14px; background: var(--panel2); }
.ai-nap h3 { margin: 0 0 8px; color: var(--gold2); font-size: 1.35rem; }
.ai-nap-muc { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.ai-nap-muc .btn { padding: 6px 14px; font-size: .9rem; }
.ai-nap-muc .btn.on { background: var(--gold); color: #fff; }
.ai-nap-qr { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: start; }
.ai-nap-qr img { grid-row: span 4; background: #fff; border-radius: 8px; padding: 4px; width: 240px; height: 240px; }
.ai-nap-tt div { margin-bottom: 4px; }
.ai-nap-tt small { display: block; color: var(--muted); font-size: .78rem; }
.ai-nap-qr .btn { justify-self: start; text-decoration: none; }
@media (max-width: 720px) {
  .ai-khach-o { grid-template-columns: 1fr 1fr; }
  .ai-khach-o > div:first-child { grid-column: 1 / -1; }
  .ai-nap-qr { grid-template-columns: 1fr; }
  .ai-nap-qr img { grid-row: auto; justify-self: center; }
}
.qt-khoa { background: var(--panel2); border: 1px dashed var(--gold); padding: 10px; border-radius: 8px; word-break: break-all; }
#khSo { margin-top: 12px; }
#khSo .actions input { width: auto; flex: 1; min-width: 150px; }
.qt-bang td.err { color: var(--red); }
.ai-ket-hop { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 6px; }
.ai-ket-hop .check { margin: 0; flex: 1; min-width: 240px; }
.ai-ket-hop select { width: auto; }

/* Hiệu ứng: bàn cờ hiện dần từng lớp (như bản cũ), lời luận hiện như đang gõ */
@keyframes gtHien { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes gtMo { from { opacity: 0; filter: blur(2px); } to { opacity: 1; filter: none; } }
@keyframes gtNhay { 50% { opacity: 0; } }
.hien-dan .tv-cung, .hien-dan .km-cung { animation: gtHien .45s ease both; animation-delay: var(--d, 0s); }
.hien-dan .tv-center { animation: gtHien .6s ease both; animation-delay: .9s; }
.hien-dan .tv-chuc, .hien-dan .km-than { animation: gtMo .5s ease both; animation-delay: calc(var(--d, 0s) + .8s); }
.hien-dan .tv-chinh, .hien-dan .km-sao { animation: gtMo .5s ease both; animation-delay: calc(var(--d, 0s) + 1.4s); }
.hien-dan .tv-sao, .hien-dan .km-mon { animation: gtMo .5s ease both; animation-delay: calc(var(--d, 0s) + 2s); }
.hien-dan .tv-foot, .hien-dan .km-can, .hien-dan .km-top { animation: gtMo .5s ease both; animation-delay: calc(var(--d, 0s) + 2.5s); }
.an-go { display: none; }
.dang-go { cursor: pointer; }
.dang-go::after { content: "▍"; color: var(--gold); animation: gtNhay 1s steps(1) infinite; }
@media (prefers-reduced-motion: reduce) {
  .hien-dan .tv-cung, .hien-dan .km-cung, .hien-dan .tv-center, .hien-dan .tv-chuc, .hien-dan .km-than, .hien-dan .tv-chinh,
  .hien-dan .km-sao, .hien-dan .tv-sao, .hien-dan .km-mon, .hien-dan .tv-foot, .hien-dan .km-can, .hien-dan .km-top { animation: none; }
}
@media print {
  .hien-dan * { animation: none !important; opacity: 1 !important; filter: none !important; transform: none !important; }
}
/* Khung khách (khach.js) */
.khach-chao { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 18px; }
.khach-chao .khach-dong b { color: var(--gold2); }
.khach-nut { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.khach-nut .btn { padding: 6px 14px; font-size: .9rem; }
.khach-chao .ai-nap { flex-basis: 100%; }
.khach-nhap .check { margin-top: 12px; }
label.nho { margin: 0; align-self: center; }
input.nho-o { width: 110px; }
.ai-ket-hop.check { margin: 0 0 12px; }
.khach-nhap .grid2 > .rong { grid-column: span 2; }
@media (max-width: 720px) { .khach-nhap .grid2 > .rong { grid-column: auto; } }
.khach-nho { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; border-top: 1px dashed var(--line); padding-top: 8px; }
.khach-nho .check { margin: 0; flex: 1; min-width: 260px; font-size: .88rem; }
.khach-nho-nut { display: flex; gap: 8px; }
.khach-nho-nd { flex-basis: 100%; white-space: pre-wrap; background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: .9rem; }
/* Trang giới thiệu */
main.bai { max-width: 820px; }
.bai h1 { color: var(--gold2); font-size: 2.5rem; margin: 8px 0 12px; }
.bai h2 { color: var(--gold2); font-size: 1.65rem; margin: 28px 0 8px; }
.bai p, .bai li { line-height: 1.7; }
.bai ul { padding-left: 22px; }
.bai li { margin: 6px 0; }
.bai-mo { font-size: 1.08rem; }
.bai-the { color: var(--muted); font-size: .92rem; }
.bai-the a { color: var(--muted); text-decoration: none; }
.bai-the a.on { color: var(--gold2); font-weight: 600; }
.bai-nen li::marker { color: var(--gold); }
.bai-cuoi { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.bai-cuoi .btn { text-decoration: none; }
.gt-lien { margin: 0 0 10px; }
footer a { color: var(--gold2); font-weight: 600; }
.bai ul li::marker { color: var(--gold); }
.bai h3 { color: var(--gold2); font-size: 1.35rem; margin: 20px 0 6px; }
.qt-trang textarea { width: 100%; min-height: 420px; font: .92rem/1.5 ui-monospace, Consolas, monospace; }
.qt-xem { border: 1px dashed var(--line); border-radius: 10px; padding: 4px 18px 12px; margin-top: 12px; max-height: 560px; overflow: auto; }
.qt-huongdan code { color: var(--gold2); }
.panel .grid2 > .rong { grid-column: 1 / -1; }
.qt-heso { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; }
.qt-heso-o { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; }
.qt-heso-o input { width: 90px; }
.card, .panel { box-shadow: 0 1px 3px rgba(15, 76, 129, .06); }
.hero h1 { color: #1b3a5c; font: 600 3rem "Cormorant Garamond", "Times New Roman", serif; letter-spacing: .14em; text-transform: uppercase; }
@media (max-width: 420px) { .tv-foot { flex-wrap: wrap; } .tv-foot span:last-child { margin-left: auto; } }
/* Trang chủ: chỉ hai lựa chọn (bạn hiền dặn 26/11/2026) */
.an { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
main.chon { display: flex; flex-wrap: wrap; align-items: stretch; align-content: center; justify-content: center; gap: 28px; padding: 40px 16px; }
.chon-o { flex: 1 1 40%; min-width: 260px; max-width: 460px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 44px 24px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px; text-decoration: none; color: #143558;
  font: 700 1.9rem/1.2 "Cormorant Garamond", "Times New Roman", serif; text-align: center;
  box-shadow: 0 2px 8px rgba(15, 76, 129, .08); transition: transform .2s, border-color .2s, box-shadow .2s; }
.chon-o:hover, .chon-o:focus-visible { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 8px 22px rgba(15, 76, 129, .14); }
.chon-ico { font-size: 3.2rem; line-height: 1; color: #2f5f8f; }
@media (max-width: 600px) { main.chon { padding: 28px 14px; gap: 16px; } .chon-o { padding: 30px 18px; font-size: 1.6rem; } }
/* Chân trang luôn ở đáy màn hình */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; width: 100%; }
@media print { body { display: block; } }
@media (prefers-reduced-motion: reduce) { header.top { background-image: url(/static/sao-tinh.svg?v=1), linear-gradient(180deg, #a9ddf1, #8fd0ea); } }
img.chon-ico { width: 3.2rem; height: 3.2rem; }   /* ☯ trên điện thoại hiện thành hình tím, nên dùng hình tự vẽ cùng màu */
/* Header thu nhỏ khi cuộn xuống (dau.js thêm lớp nho) */
header.top, .brand-logo, .brand-ten, .brand-ten small { transition: all .25s ease; }
header.top.nho { min-height: 0; padding-top: 6px; padding-bottom: 6px; }
header.top.nho .brand-logo { width: 44px; height: 44px; }
header.top.nho .brand-ten { font-size: 1.8rem; }
header.top.nho .brand-ten small { font-size: 1.35rem; }
@media (max-width: 720px) {
  header.top.nho .brand-logo { width: 38px; height: 38px; }
  header.top.nho .brand-ten { font-size: 1.6rem; }
  header.top.nho .brand-ten small { font-size: 1.2rem; }
}
@media (max-width: 600px) { header.top.nho nav { padding-top: 3px; } }
@media (prefers-reduced-motion: reduce) { header.top, .brand-logo, .brand-ten, .brand-ten small { transition: none; } }
/* Khung nhập thông tin (bạn hiền dặn 26/11/2026): chấm sao đỏ ở ô bắt buộc, ô chọn điều cần luận giải */
.bat { color: var(--red); font-weight: 700; }
.khach-chu-de { margin-top: 14px; }
.khach-chu-de textarea { margin-top: 8px; resize: vertical; }
.qt-chude { width: 100%; margin-bottom: 4px; }
/* Trang Kỳ Môn: ô chọn điều cần luận giải, quay số, thời điểm khác */
.o-chu-de textarea { margin-top: 8px; resize: vertical; }
.km-quay { margin-top: 14px; }
.km-khac-luc { margin-top: 12px; }
.km-khac-luc summary { cursor: pointer; color: var(--gold2); font-weight: 600; font-size: .92rem; }
.km-khac-luc > div { margin-top: 8px; max-width: 320px; }
.qt-chude-km { display: flex; flex-direction: column; gap: 6px; margin: 4px 0; }
.qt-km-dong { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 8px; align-items: center; }
.qt-chude-km > .btn { align-self: flex-start; padding: 6px 14px; font-size: .9rem; }
@media (max-width: 600px) { .qt-km-dong { grid-template-columns: 1fr auto; } .qt-km-dong select { grid-column: 1 / -1; grid-row: 2; } }
.khach-nhap .ai-chon-muc, #kmQuay .ai-chon-muc { margin: 16px 0 10px; }
/* Trang Đại Lục Nhâm */
.ln-hang { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; margin: 8px 0 14px; }
.ln-khoi h3, .ln-tieu { margin: 0 0 8px; color: var(--gold2); font-size: 1.3rem; }
.ln-truyen { display: flex; flex-direction: column; gap: 6px; }
.ln-tr { display: grid; grid-template-columns: 6.2em 5.6em 3.4em 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: baseline;
  background: var(--panel2); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 8px; padding: 6px 10px; }
.ln-tr.hung { border-left-color: #9fb3c2; }
.ln-tr-ten { color: var(--muted); font-size: .85rem; }
.ln-tr-lt { font-weight: 600; color: var(--gold2); font-size: .9rem; }
.ln-tr-chi { font: 700 1.5rem "Cormorant Garamond", "Times New Roman", serif; color: #143558; grid-row: span 2; }
.ln-tr-than { color: var(--muted); font-size: .85rem; }
.ln-tr-tuong { grid-column: 2 / 4; font-size: .9rem; color: var(--text); }
.ln-tr.cat .ln-tr-tuong { color: var(--green); font-weight: 600; }
.ln-tr.hung .ln-tr-tuong { color: var(--red); }
.ln-tr-tag { grid-column: 4; }
.ln-khoa { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ln-k { display: flex; flex-direction: column; align-items: center; gap: 2px; background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 4px; text-align: center; }
.ln-k.co-khac { border-color: var(--gold); }
.ln-k-tuong { font-size: .78rem; color: var(--muted); }
.ln-k-tren { font: 700 1.45rem "Cormorant Garamond", "Times New Roman", serif; color: #143558; }
.ln-k-duoi { font-weight: 600; border-top: 1px solid var(--line); padding-top: 2px; min-width: 2.5em; }
.ln-k-so { font-size: .72rem; color: var(--muted); }
.ln-ban { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(78px, auto)); gap: 4px;
  background: var(--line); border: 4px solid var(--line); border-radius: 10px; }
.ln-o { background: var(--panel); padding: 6px 8px; position: relative; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ln-o.truyen { box-shadow: inset 0 0 0 2px var(--gold); }
.ln-o-thien { font: 700 1.45rem/1.1 "Cormorant Garamond", "Times New Roman", serif; color: #143558; }
.ln-o-tuong { font-size: .82rem; color: var(--red); }
.ln-o-tuong.cat { color: var(--green); }
.ln-o-dia { position: absolute; right: 8px; bottom: 6px; font-size: .75rem; color: var(--muted); }
.ln-o .tag { align-self: flex-start; }
.ln-giua { grid-row: 2 / 4; grid-column: 2 / 4; background: #f6fbfe; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; padding: 10px; }
.ln-giua .ten { font: 700 1.5rem "Cormorant Garamond", "Times New Roman", serif; color: var(--gold2); }
.hien-dan .ln-o { animation: gtHien .45s ease both; animation-delay: var(--d, 0s); }
.ln-tr { animation: gtHien .5s ease both; animation-delay: var(--d, 0s); }
@media (max-width: 720px) {
  .ln-hang { grid-template-columns: 1fr; }
  .ln-tr { grid-template-columns: 5.4em 5.2em 3em 1fr; font-size: .9rem; }
  .ln-o { padding: 4px 5px; }
  .ln-o-thien { font-size: 1.2rem; }
  .ln-o-tuong { font-size: .7rem; }
  .ln-o-dia { font-size: .66rem; right: 4px; bottom: 3px; }
}
@media (prefers-reduced-motion: reduce) { .hien-dan .ln-o, .ln-tr { animation: none; } }
@media (max-width: 600px) { header.top nav { gap: 14px; } header.top nav a { font-size: .92rem; } }
.ai-ket-hop-o { margin: 14px 0 4px; }
.ai-ket-hop-o .check { color: var(--text); }
.ai-ket-hop-o .note { margin: 4px 0 0 26px; }
.gio-vi-sao { margin-top: 6px; font-size: .88rem; color: var(--muted); }
.gio-vi-sao summary { cursor: pointer; color: var(--gold2); font-weight: 600; }
.gio-vi-sao p { margin: 6px 0 0; }
/* Tìm giờ sinh */
.tim-gio { margin: 6px 0 2px; font-size: .9rem; }
.tim-gio a { color: var(--gold2); font-weight: 600; }
main.tg { max-width: 900px; }
.tg-h1 { margin: 0 0 8px; color: var(--gold2); }
.tg-chon { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.tg-chon .check { color: var(--text); }
#tgNam input { min-width: 0; }
.tg-o { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; background: var(--panel2); }
.tg-o.dau { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.tg-o-dau { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.tg-o-ten { font: 700 1.5rem "Cormorant Garamond", "Times New Roman", serif; color: #143558; }
.tg-o-khung { color: var(--muted); }
.tg-o-diem { margin-left: auto; font-weight: 700; color: var(--gold2); }
.tg-thanh { height: 6px; background: var(--line); border-radius: 3px; margin: 6px 0; overflow: hidden; }
.tg-thanh span { display: block; height: 100%; background: var(--gold); }
.tg-o ul { margin: 6px 0 10px; padding-left: 20px; }
.tg-o .btn { padding: 8px 16px; font-size: .92rem; }
#tgAi { border-top: 1px dashed var(--line); margin-top: 10px; padding-top: 10px; }
#tgAi h3 { color: var(--gold2); margin: 0 0 6px; }
/* Phong thủy Huyền Không */
.pt-tieu { margin: 18px 0 4px; color: var(--gold2); font-size: 1.3rem; }
.pt-luoi, .pt-ban { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 8px 0 14px; }
.pt-o { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 6px; min-height: 96px; }
.pt-o-ten { font-weight: 600; color: var(--gold2); font-size: .85rem; }
.pt-o-ds { display: flex; flex-wrap: wrap; gap: 4px; }
.pt-chip { border: 1px solid var(--gold); background: #fff; color: var(--gold2); border-radius: 14px; padding: 2px 8px; font-size: .8rem; cursor: pointer; }
.pt-them { margin-top: auto; padding: 6px 8px; font-size: .85rem; }
.pt-ban { gap: 4px; background: var(--line); border: 4px solid var(--line); border-radius: 10px; }
.pt-c { background: var(--panel); padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; min-width: 0; border-top: 4px solid transparent; }
.pt-c.tot { border-top-color: var(--green); }
.pt-c.xau { border-top-color: #e8a59c; }
.pt-c-dau { display: flex; justify-content: space-between; color: var(--muted); font-size: .8rem; gap: 4px; }
.pt-c-van { font-weight: 700; color: var(--text); }
.pt-c-sao { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px; }
.pt-son, .pt-huong { font: 700 2rem/1 "Cormorant Garamond", "Times New Roman", serif; }
.pt-son { color: #2e7d6b; }
.pt-huong { color: #143558; }
.pt-c-duoi { display: flex; gap: 6px; align-items: center; font-size: .8rem; color: var(--muted); flex-wrap: wrap; }
.pt-c-phong { font-size: .8rem; color: var(--text); border-top: 1px dashed var(--line); padding-top: 3px; }
.hien-dan .pt-c { animation: gtHien .45s ease both; animation-delay: var(--d, 0s); }
.pt-g.tot { border-left: 4px solid var(--green); }
.pt-g.xau { border-left: 4px solid #e8a59c; }
@media (max-width: 600px) { .pt-son, .pt-huong { font-size: 1.5rem; } .pt-c { padding: 6px; } .pt-o { min-height: 80px; } }
@media (prefers-reduced-motion: reduce) { .hien-dan .pt-c { animation: none; } }
/* Vẽ mặt bằng nhà (Phong thủy, 27/11/2026) */
.tag.kh { background: #fdeeec; color: #a3402f; }
.vn-tab { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 10px; }
.vn-nut { border: 1px solid var(--gold); background: #fff; color: var(--gold2); border-radius: 8px; padding: 7px 12px; font: inherit; font-size: .9rem; cursor: pointer; }
.vn-nut:hover { background: #e8f3fb; }
.vn-nut.on { background: var(--gold); color: #fff; }
.vn-nut.nho { padding: 4px 10px; font-size: .82rem; }
.vn-dong { flex-wrap: wrap; gap: 8px; align-items: center; }
.vn-tai { cursor: pointer; display: inline-flex; align-items: center; }
.vn-cong-cu, .vn-mau { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
.vn-vat { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; margin: 8px 0; }
.vn-vat-nut { display: flex; flex-direction: column; align-items: center; gap: 2px; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 4px; font: inherit; font-size: .78rem; color: var(--text); cursor: pointer; line-height: 1.2; text-align: center; }
.vn-vat-nut:hover { border-color: var(--gold); }
.vn-vat-nut.on { border-color: var(--gold); background: #e8f3fb; box-shadow: 0 0 0 2px var(--gold) inset; }
.vn-goi-y { min-height: 2.6em; }
.vn-khung { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 4px; }
.vn-svg { display: block; width: 100%; height: auto; max-height: 72vh; touch-action: none; user-select: none; -webkit-user-select: none; font-family: "Be Vietnam Pro", system-ui, sans-serif; }
.vn-svg.ket { touch-action: auto; max-height: 80vh; }
.vn-luoi line { stroke: #e3eff5; stroke-width: 1px; vector-effect: non-scaling-stroke; }
.vn-nha { fill: #f3fafd; fill-opacity: .55; }
.vn-nha.mo { fill-opacity: .25; }
.vn-vien { fill: none; stroke: #143558; stroke-width: 3px; stroke-linejoin: round; }
.vn-tuong { stroke: #143558; stroke-width: 2px; stroke-linecap: round; }
.vn-ke { fill: none; stroke: #1f6fb8; stroke-width: 2px; stroke-dasharray: 6 4; }
.vn-ke-goc { fill: #1f6fb8; }
.vn-ke-goc.dau { fill: #fff; stroke: #1f6fb8; stroke-width: 2px; vector-effect: non-scaling-stroke; }
.vn-goc { fill: #1e8a4c; fill-opacity: .85; stroke: #fff; stroke-width: 2px; vector-effect: non-scaling-stroke; cursor: grab; }
.vn-so { fill: #0f4c81; text-anchor: middle; font-weight: 600; paint-order: stroke; stroke: #fff; stroke-linejoin: round; }
.vn-o { fill: transparent; stroke: #1f6fb8; stroke-width: 1px; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.vn-o.tot { fill: #1e8a4c; fill-opacity: .09; }
.vn-o.xau { fill: #e8a59c; fill-opacity: .16; }
.vn-o-ten.kh { fill: #a3402f; }
.vn-o-ten { fill: #0f4c81; text-anchor: middle; font-weight: 600; paint-order: stroke; stroke: #fff; stroke-linejoin: round; }
.vn-sv, .vn-ss, .vn-sh { text-anchor: middle; font-family: "Cormorant Garamond", "Times New Roman", serif; font-weight: 700; paint-order: stroke; stroke: #fff; stroke-linejoin: round; }
.vn-sv { fill: #1c2b36; }
.vn-ss { fill: #2e7d6b; }
.vn-sh { fill: #143558; }
.vn-v { cursor: grab; }
.vn-v.mo { opacity: .5; cursor: default; }
.vn-v-nen { fill: #fff; fill-opacity: .6; stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.vn-v-ten { fill: #1c2b36; text-anchor: middle; paint-order: stroke; stroke: #fff; stroke-linejoin: round; }
.vn-mt { fill: #1e8a4c; text-anchor: middle; font-weight: 700; }
.vn-lb { fill: #fff; stroke: #cbe3ee; stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.vn-lb-kim { stroke: #143558; stroke-width: 2px; }
.vn-lb-dau { fill: #c4512b; }
.vn-lb-chu { fill: #c4512b; text-anchor: middle; font-weight: 700; }
.vn-tom { margin-top: 6px; }
.vn-xn { border: 2px solid var(--gold); border-radius: 12px; background: #f3fafd; padding: 12px 16px; margin-top: 12px; }
.vn-xn h3 { margin: 0 0 6px; color: var(--gold2); }
.vn-xn ul { margin: 0 0 6px; padding-left: 20px; }
.vn-xn li { margin: 3px 0; }
@media (max-width: 600px) { .vn-vat { grid-template-columns: repeat(4, minmax(0, 1fr)); } .vn-vat-nut { font-size: .7rem; } .vn-nut { padding: 6px 9px; font-size: .84rem; } }
.vn-tia { stroke: #1f6fb8; stroke-width: 1.5px; stroke-dasharray: 6 4; }
.vn-tg { stroke: #1f6fb8; stroke-width: 1.5px; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.vn-tam { stroke: #c4512b; stroke-width: 2.5px; stroke-linecap: round; }
.vn-luoi line.dam { stroke: #c9dfeb; }
.vn-luoi-so text { fill: #5f86a3; fill-opacity: .8; paint-order: stroke; stroke: #fff; stroke-opacity: .7; }
.vn-toa { fill: #1f6fb8; font-weight: 600; paint-order: stroke; stroke: #fff; stroke-linejoin: round; }
.vn-tuong.kin { stroke: #a3402f; stroke-width: 4.5px; }
.vn-tuong.chon { stroke: #f0a020; stroke-width: 5px; }
.vn-tuong.kin.chon { stroke: #d9822b; }
.vn-v.chon .vn-v-nen { stroke-width: 3px; stroke-dasharray: 5 3; }
.vn-co { fill: #f0a020; stroke: #fff; stroke-width: 2px; vector-effect: non-scaling-stroke; cursor: nwse-resize; }
.vn-nha-khac { fill: #c9ced3; fill-opacity: .35; }
.vn-ten-nha { fill: #6b7d8a; text-anchor: middle; font-weight: 700; paint-order: stroke; stroke: #fff; stroke-linejoin: round; }
.vn-ten-nha.chon { fill: #0f4c81; }
.vn-chon { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; border: 1px solid var(--gold); background: #f3fafd; border-radius: 10px; padding: 8px 10px; margin: 6px 0; }
.vn-chon.hidden { display: none; }
.vn-o-so { display: inline-flex; align-items: center; gap: 4px; font-size: .9rem; }
.vn-o-so input { width: 5.2em; padding: 5px 6px; }
.vn-chia { flex-basis: 100%; margin: 0; }
.vn-cac-nha { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0; }
.vn-co[data-ck="1"], .vn-co[data-ck="3"] { cursor: nesw-resize; }
.qt-ld-the { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 10px 0; background: #fff; }
.qt-ld-the.tat { opacity: .6; }
.qt-ld-dau { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.qt-ld-o { min-height: 140px; font-size: .92rem; }
.qt-ld-xem { white-space: pre-wrap; word-break: break-word; background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 10px; font-size: .85rem; max-height: 50vh; overflow: auto; }
.qt-ld-cu summary { cursor: pointer; margin: 6px 0; }
.qt-ld-bat { display: inline-flex; align-items: center; gap: 4px; margin: 0; }
