/* Website công khai IC.36 "Kính mờ" (quyết định 177, 178; bộ thiết kế docs/giao-dien/kinh-mo, IC36-Website.dc.html).
 * Phông chữ đặt trên máy chủ: Be Vietnam Pro, Newsreader (OFL), Material Symbols Rounded rút gọn (Apache 2.0); không gọi
 * Google Fonts. Màu, cỡ chữ, bo góc theo bộ thiết kế; kích thước theo bề rộng khung (đơn vị cqw như bản thiết kế).
 * Mỗi phông khai báo phần "latin-ext", "latin" rồi "vietnamese" sau cùng: khoảng ký tự trùng nhau thì trình duyệt xét khai báo
 * sau trước, nên chữ tiếng Việt (đ, ơ, ư, ă…) lấy từ tệp "vietnamese" nhỏ, không tải thêm tệp "latin-ext" (quyết định 193, đo tốc
 * độ trên điện thoại). */
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/be-vietnam-pro/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('../fonts/be-vietnam-pro/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: 400; font-display: swap; src: url('../fonts/be-vietnam-pro/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: 500; font-display: swap; src: url('../fonts/be-vietnam-pro/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('../fonts/be-vietnam-pro/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: 'Be Vietnam Pro'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/be-vietnam-pro/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: 600; font-display: swap; src: url('../fonts/be-vietnam-pro/be-vietnam-pro-600-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: 600; font-display: swap; src: url('../fonts/be-vietnam-pro/be-vietnam-pro-600-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: 600; font-display: swap; src: url('../fonts/be-vietnam-pro/be-vietnam-pro-600-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: 700; font-display: swap; src: url('../fonts/be-vietnam-pro/be-vietnam-pro-700-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: 700; font-display: swap; src: url('../fonts/be-vietnam-pro/be-vietnam-pro-700-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: 700; font-display: swap; src: url('../fonts/be-vietnam-pro/be-vietnam-pro-700-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: 'Newsreader'; font-style: italic; font-weight: 400 500; font-display: swap; src: url('../fonts/newsreader/newsreader-italic-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: 'Newsreader'; font-style: italic; font-weight: 400 500; font-display: swap; src: url('../fonts/newsreader/newsreader-italic-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: 'Newsreader'; font-style: italic; font-weight: 400 500; font-display: swap; src: url('../fonts/newsreader/newsreader-italic-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: 'Material Symbols Rounded'; font-style: normal; font-weight: 400; font-display: block; src: url('../fonts/material-symbols/material-symbols-rounded.woff2') format('woff2'); }

:root {
  --bg: #E7EFEB; --ink: #10221F; --ink-2: #3C4D49; --muted: #55665F; --dark: #0F2622; --deep: #0B1A17;
  --orange: #F59A4E; --orange-hi: #F8AE6E; --orange-ink: #1A1206; --accent: #C2410C; --accent-light: #F7B27A;
  --green: #2BA36F; --green-ink: #13633F; --green-bar: #17855A;
  --glass: rgba(255, 255, 255, .58); --glass-border: rgba(255, 255, 255, .8); --shadow: 0 10px 30px rgba(16, 34, 31, .07);
  --blur: blur(20px) saturate(1.4); --line: rgba(16, 34, 31, .16); --chip: rgba(16, 34, 31, .12);
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--deep); }
html.sheet-open { overflow: hidden; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--deep); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; outline: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ms { font-family: 'Material Symbols Rounded'; font-weight: 400; font-style: normal; font-size: 20px; line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; direction: ltr; flex: none; font-feature-settings: 'liga'; -webkit-font-feature-settings: 'liga'; font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
.em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); }
.em-light { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent-light); }

/* Khung: nền xanh nhạt có hai vệt màu, chứa đầu trang, nội dung, chân trang, thanh liên hệ nổi. */
.site { position: relative; min-height: 100vh; container-type: inline-size; background: var(--deep); }
.shell { position: relative; z-index: 1; min-height: 100vh; padding: 12px 0 16px; background-color: var(--bg);
  background-image: radial-gradient(60% 34% at 0% 10%, #CBEBDC 0%, rgba(203, 235, 220, 0) 70%), radial-gradient(60% 34% at 100% 60%, #F8D6BE 0%, rgba(248, 214, 190, 0) 70%);
  background-size: 100% 1900px; background-repeat: repeat-y; }
/* Rộng hết màn hình (chủ dự án 13/11/2026, quyết định 179 điểm 1): không giới hạn bề rộng nội dung, chỉ chừa lề hai bên. */
.main { padding: clamp(20px, 3cqw, 40px) clamp(16px, 4cqw, 64px) 0; transition: filter .25s ease; }
.wrap { width: 100%; }
.site.is-sheet .main, .site.is-sheet .ftr { filter: blur(5px) brightness(.93); pointer-events: none; }

/* Đầu trang. */
.hdr { position: sticky; top: 12px; z-index: 20; padding: 0 clamp(10px, 3cqw, 48px); }
.hdr-bar { view-transition-name: hdr; height: 64px; border-radius: 32px; background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5); border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 10px 30px rgba(16, 34, 31, .1); display: flex; align-items: center; gap: 6px; padding: 0 8px 0 10px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; min-width: 0; }
.brand-logo { width: 44px; height: 44px; border-radius: 14px; background: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.brand-logo img { width: 34px; height: 31px; object-fit: contain; }
.brand-name { font-size: 15px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav-item { height: 44px; padding: 0 14px; border-radius: 22px; display: flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .25s, color .25s; }
.nav-item:hover { background: rgba(16, 34, 31, .06); }
.nav-item.is-on { background: var(--dark); color: #fff; }
.nav-more { padding: 0 10px 0 14px; }
.hdr-book { height: 48px; padding: 0 20px; flex: none; }
.hdr-menu { width: 48px; height: 48px; border-radius: 24px; background: var(--dark); color: #fff; display: none; align-items: center; justify-content: center; flex: none; }
.hdr-menu .ms { font-size: 22px; }
/* Màn hình hẹp hơn 1160 (như bản thiết kế): bỏ menu chữ và nút đặt lịch ở đầu trang, chỉ còn nút menu; thanh liên hệ bỏ số. */
@container (max-width: 1159px) {
  .hdr-bar .nav, .hdr-bar .hdr-book { display: none; }
  .hdr-bar .hdr-menu { display: flex; }
  .dock .dock-tel { display: none; }
}

/* Nút, chip, thẻ kính. */
.btn { height: 48px; padding: 0 22px; border-radius: 24px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; font-weight: 700; white-space: nowrap; transition: background .2s, transform .2s; }
.btn-lg { height: 50px; border-radius: 25px; font-size: 15px; }
.btn-orange { background: var(--orange); color: var(--orange-ink); }
.btn-orange:hover { background: var(--orange-hi); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #17352F; }
.btn-ghost { border: 1px solid var(--line); background: rgba(255, 255, 255, .6); font-weight: 600; }
.btn-muted { background: rgba(16, 34, 31, .08); color: var(--muted); font-weight: 600; cursor: default; }
.btn-block { display: flex; width: 100%; }
.btn-grow { flex: 1; }
.btn .ms { font-size: 20px; }
.chip { height: 44px; padding: 0 14px; border-radius: 22px; display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; white-space: nowrap; background: rgba(255, 255, 255, .62); color: var(--ink); border: 1px solid var(--chip); transition: background .2s, color .2s; }
.chip.is-on { background: var(--dark); color: #fff; border-color: var(--dark); }
.glass { background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--glass-border); box-shadow: var(--shadow); border-radius: 24px; }
/* Nổi lên khi di chuột (như thiết kế: thẻ nhấc lên 5 điểm ảnh), thêm bóng đổ đậm hơn cho rõ (quyết định 182). */
.lift { transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease; }
.lift:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(16, 34, 31, .15); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 250px)), 1fr)); gap: 14px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.muted { font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.small { font-size: 13px; }
.body { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--green-ink); }
.eyebrow-light { font-size: 13px; font-weight: 600; color: var(--accent-light); }
.h2 { margin: 0; font-size: clamp(26px, 3.4cqw, 44px); font-weight: 600; letter-spacing: -.03em; line-height: 1.12; }
.h3 { font-size: clamp(24px, 2.6cqw, 34px); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.link-more { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; color: var(--accent); padding: 10px 0; }
.link-more .ms { font-size: 18px; }
.link-accent { font-size: 13.5px; font-weight: 600; color: var(--accent); padding: 13px 0; }
.empty { padding: 36px 20px; text-align: center; font-size: 15px; color: var(--ink-2); }

/* Trang chủ. */
.home { display: flex; flex-direction: column; gap: clamp(40px, 5.5cqw, 84px); }
.hero { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.hero-text { flex: 1 1 540px; min-width: min(100%, 300px); display: flex; flex-direction: column; gap: 20px; justify-content: center; }
.pill-live { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 20px; background: rgba(255, 255, 255, .66); border: 1px solid rgba(255, 255, 255, .9); font-size: 13px; font-weight: 600; color: var(--green-ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.h-hero { margin: 0; font-size: clamp(36px, 5.4cqw, 74px); font-weight: 600; letter-spacing: -.035em; line-height: 1.05; text-wrap: balance; }
.lead { margin: 0; font-size: clamp(15px, 1.35cqw, 18px); line-height: 1.6; color: var(--ink-2); max-width: 600px; text-wrap: pretty; }
/* Bộ tìm lô: các nhóm nút có nhãn dùng chung kiểu với bộ lọc trang Quỹ đất (.lf-group, .lf-k, .lf-chips). */
.finder { --lf-bleed: 18px; background: rgba(255, 255, 255, .6); border-color: rgba(255, 255, 255, .85); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.finder-go { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; padding-top: 4px; }
.finder-go .btn-orange { padding: 0 18px 0 22px; }
.hero-media { flex: 1 1 440px; min-width: min(100%, 300px); min-height: clamp(320px, 40cqw, 620px); position: relative; border-radius: 32px; overflow: hidden;
  background: var(--dark) center / cover no-repeat; box-shadow: 0 24px 60px rgba(16, 34, 31, .18); }
.hero-tag { position: absolute; left: 14px; top: 14px; padding: 8px 14px; border-radius: 18px; background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 12.5px; font-weight: 600; }
.hero-facts { position: absolute; left: 14px; right: 14px; bottom: 14px; border-radius: 22px; background: rgba(15, 38, 34, .78); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: #fff; padding: 14px 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 12px; }
.hero-facts small { display: block; font-size: 11.5px; color: rgba(255, 255, 255, .72); }
.hero-facts b { display: block; font-size: 15px; font-weight: 600; margin-top: 2px; }
.card-path { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.ico-dark { width: 46px; height: 46px; border-radius: 15px; background: var(--dark); color: var(--accent-light); display: flex; align-items: center; justify-content: center; }
.ico-dark .ms { font-size: 23px; }
.card-path-title { font-size: 17px; font-weight: 600; letter-spacing: -.01em; margin-top: 4px; }
.cta-accent { margin-top: auto; padding-top: 6px; display: flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 700; color: var(--accent); }
.cta-accent .ms { font-size: 18px; }
.card-cluster { border-radius: 26px; padding: 10px; display: flex; flex-direction: column; gap: 12px; }
.card-cluster-img { height: 200px; border-radius: 18px; background: #D2DED8 center / cover no-repeat; position: relative; display: block; }
.card-cluster-info { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-cluster.is-wide { flex-direction: row; flex-wrap: wrap; gap: 16px; }
.card-cluster.is-wide .card-cluster-img { flex: 1.5 1 420px; min-width: min(100%, 280px); height: auto; min-height: clamp(220px, 24cqw, 380px); }
.card-cluster.is-wide .card-cluster-info { flex: 1 1 320px; min-width: min(100%, 260px); justify-content: center; padding: 8px 6px; gap: 16px; }
.card-cluster.is-wide .card-cluster-name { font-size: clamp(20px, 2cqw, 28px); }
.tag { position: absolute; left: 10px; top: 10px; padding: 5px 11px; border-radius: 12px; font-size: 11.5px; font-weight: 700; }
.card-cluster-body { padding: 0 8px; display: flex; flex-direction: column; gap: 6px; }
.card-cluster-name { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.fill-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.fill-row b { font-weight: 700; }
.bar { height: 7px; border-radius: 4px; background: rgba(16, 34, 31, .08); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--green-bar); border-radius: 4px; }
.card-cluster-body.small { color: var(--ink-2); }
.card-cluster-body.small b { font-weight: 600; color: var(--ink); }
.card-cluster-actions { display: flex; gap: 8px; padding: 0 2px 2px; }
.card-cluster-actions .btn { height: 46px; border-radius: 23px; }
.teaser { border-radius: 28px; padding: clamp(14px, 2cqw, 26px); display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.teaser-text { flex: 1 1 320px; min-width: min(100%, 270px); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.teaser-text .h2 { font-size: clamp(26px, 3.2cqw, 42px); }
.teaser-map { flex: 1.6 1 420px; min-width: min(100%, 270px); }
.legend-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 168px), 1fr)); gap: 8px; width: 100%; }
.legend-item { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .66); font-size: 13px; }
.legend-item i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legend-item span { flex: 1; min-width: 0; }
.legend-item b { font-weight: 700; }
.card-dark { border-radius: 28px; background: radial-gradient(90% 120% at 100% 0%, rgba(43, 163, 111, .36) 0%, rgba(15, 38, 34, 0) 60%), var(--dark); color: #fff; padding: clamp(20px, 2.8cqw, 34px); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.on-dark { font-size: 14.5px; line-height: 1.6; color: rgba(255, 255, 255, .78); }
.card-factory .btn, .card-bts .btn { margin-top: 8px; }
.card-bts { border-radius: 28px; padding: clamp(20px, 2.8cqw, 34px); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.card-bts .body { font-size: 14.5px; }
.card-step { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.step-n { font-family: var(--serif); font-style: italic; font-size: 44px; line-height: 1; color: var(--accent); }
.card-step-title { font-size: 17px; font-weight: 600; }
.stats { border-radius: 32px; background: radial-gradient(70% 140% at 0% 100%, rgba(245, 154, 78, .22) 0%, rgba(15, 38, 34, 0) 60%), var(--dark); color: #fff; padding: clamp(22px, 3cqw, 42px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 24px; }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-v { display: flex; align-items: baseline; gap: 6px; }
.stat-v span { font-size: clamp(36px, 4.4cqw, 60px); font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-v small { font-size: 15px; color: var(--accent-light); }
.stat-k { font-size: 13.5px; color: rgba(255, 255, 255, .76); }
.cta-visit { border-radius: 32px; background: rgba(255, 255, 255, .6); border-color: rgba(255, 255, 255, .85); padding: clamp(24px, 4cqw, 56px); display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.cta-visit-text { flex: 1 1 380px; min-width: min(100%, 270px); }
.cta-visit-text .body { margin-top: 10px; }
.cta-visit-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Trang nội dung: đầu trang, chip chọn, lưới tự xếp, chia trang. */
.page-stack { display: flex; flex-direction: column; gap: clamp(22px, 3cqw, 44px); }
.page-head { display: flex; flex-direction: column; gap: 12px; max-width: 900px; padding-top: clamp(6px, 2cqw, 26px); }
.h-page { margin: 0; font-size: clamp(32px, 4.6cqw, 60px); font-weight: 600; letter-spacing: -.035em; line-height: 1.06; text-wrap: balance; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.grid-fill { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--min, 300px)), 1fr)); gap: 14px; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
.pager-info { font-size: 14px; font-weight: 600; color: var(--muted); }

/* Thẻ tin. */
.card-news { border-radius: 24px; padding: 10px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card-news-img { display: block; height: 180px; border-radius: 16px; background: #D2DED8 center / cover no-repeat; }
.card-news-img.is-empty, .related-img.is-empty { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #DCE9E2, #F3E3D6); }
.card-news-img.is-empty img { width: 62px; height: 57px; object-fit: contain; opacity: .9; }
.related-img.is-empty img { width: 40px; height: 37px; object-fit: contain; }
/* Ảnh thẻ (tin, cụm, thư viện ảnh) và ảnh lớn đầu trang: ảnh thật phủ kín khung như ảnh nền (UI\Site::picture: bản WebP khi
   trình duyệt đọc được, quyết định 194); ảnh thẻ chỉ tải khi khách cuộn tới (loading="lazy"; quyết định 193). Nhãn, số liệu nổi
   trên ảnh (đặt sau ảnh, có position) nằm trên ảnh. */
.card-news-img, .related-img, .gallery-tile, .card-cluster-img, .card-project-img, .article-cover, .factory-photo { position: relative; overflow: hidden; }
.bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.card-news-body { display: flex; flex-direction: column; gap: 6px; padding: 2px 8px 8px; min-width: 0; }
.card-news-meta { font-size: 12px; font-weight: 600; color: var(--green-ink); }
.card-news-meta span { font-weight: 400; color: var(--muted); }
.card-news-title { font-size: 17px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }

/* Bài viết rộng hết màn hình (quyết định 183): đầu bài và ảnh trải hết chiều ngang; dưới ảnh chia cột theo bề rộng: từ 1100
 * điểm ảnh có cột phải (liên hệ, tin liên quan), từ 1700 điểm ảnh thêm cột trái (chuyên mục); cột giữa giữ độ rộng dễ đọc. */
.article { display: flex; flex-direction: column; gap: clamp(20px, 2.4cqw, 32px); min-width: 0; }
/* Tiêu đề bài trải hết bề rộng như ảnh đầu bài; chữ lấp đầy từng dòng, chỉ tránh dòng cuối còn một chữ (chủ dự án ngày 14/11/2026:
   "tiêu đề đang bị thu lại trên desktop", quyết định 197). */
.article-head { display: flex; flex-direction: column; gap: 12px; padding-top: clamp(6px, 2cqw, 26px); }
.article-head .eyebrow a:hover { text-decoration: underline; }
.h-article { margin: 0; font-size: clamp(28px, 3.6cqw, 56px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; text-wrap: pretty; overflow-wrap: anywhere; }
.article-cover { width: 100%; aspect-ratio: 16 / 9; max-width: 100%; min-height: 200px; max-height: 72vh; border-radius: 28px; background: var(--dark) center / cover no-repeat; box-shadow: 0 24px 60px rgba(16, 34, 31, .14); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "side"; gap: clamp(24px, 3cqw, 48px); align-items: start; }
.article-meta { grid-area: meta; display: none; }
.article-main { grid-area: main; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.article-side { grid-area: side; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.article-cta { gap: 12px; align-items: stretch; }
.article-cta-title { font-size: clamp(20px, 1.6cqw, 24px); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.article-meta-box { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 24px; background: rgba(255, 255, 255, .58); border: 1px solid rgba(255, 255, 255, .8); }
.article-meta-k { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-top: 8px; }
.article-meta-k:first-child { margin-top: 0; }
.article-meta-v { font-size: 15px; font-weight: 600; }
.article-cats { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.article-cats a { padding: 8px 10px; border-radius: 12px; font-size: 14px; font-weight: 500; }
.article-cats a:hover { background: rgba(16, 34, 31, .06); }
.article-cats a.is-on { background: var(--dark); color: #fff; }
@container (min-width: 1100px) {
  .article-cover { aspect-ratio: 21 / 9; }
  .article-layout { grid-template-columns: minmax(0, 1fr) clamp(320px, 24cqw, 420px); grid-template-areas: "main side"; }
  .article-layout.is-doc { grid-template-columns: clamp(240px, 20cqw, 320px) minmax(0, 1fr); grid-template-areas: "meta main" "meta side"; }
  .article-layout.is-doc .article-meta { display: block; }
}
@container (min-width: 1700px) {
  .article-layout, .article-layout.is-doc { grid-template-columns: clamp(240px, 15cqw, 300px) minmax(0, 1fr) clamp(320px, 22cqw, 440px); grid-template-areas: "meta main side"; }
  .article-meta { display: block; }
}
/* Trang văn bản (chính sách bảo mật…): mục lục bên trái, nội dung giữa, liên hệ bên phải. */
.doc-toc { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; counter-reset: toc; }
.doc-toc a { padding: 8px 10px; border-radius: 12px; font-size: 14px; line-height: 1.35; }
.doc-toc a:hover { background: rgba(16, 34, 31, .06); }
.doc-updated { font-size: 13.5px; color: var(--muted); }
.prose h2[id] { scroll-margin-top: 100px; }
.doc-contact { padding: 20px; border-radius: 24px; display: flex; flex-direction: column; gap: 10px; }
.doc-contact-title { font-size: 18px; font-weight: 600; }
.doc-contact a { font-weight: 600; color: var(--accent); overflow-wrap: anywhere; }
.preview-bar { padding: 12px 16px; border-radius: 16px; background: rgba(245, 154, 78, .2); color: #7C2D12; font-size: 14px; font-weight: 600; }
.prose { display: flex; flex-direction: column; gap: 16px; font-size: clamp(16px, 1.25cqw, 19px); line-height: 1.75; color: #22312D; text-wrap: pretty; min-width: 0; max-width: 1040px; overflow-wrap: anywhere; }
.prose > * { margin: 0; }
.prose-lead { font-weight: 600; }
.prose h2 { font-size: clamp(22px, 2.2cqw, 28px); font-weight: 600; letter-spacing: -.02em; line-height: 1.25; margin-top: 8px; }
.prose h3, .prose h4, .prose h5 { font-size: clamp(18px, 1.7cqw, 21px); font-weight: 600; line-height: 1.3; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 24px; display: flex; flex-direction: column; gap: 6px; }
.prose img { border-radius: 16px; height: auto; margin: 0 auto; }
.prose figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.prose figcaption { font-size: 13.5px; color: var(--muted); text-align: center; }
.prose blockquote { margin: 0; padding: 12px 18px; border-left: 4px solid var(--orange); background: rgba(255, 255, 255, .55); border-radius: 0 14px 14px 0; }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; font-size: 15px; max-width: 100%; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; min-width: 90px; }
.prose hr { border: 0; border-top: 1px solid var(--line); }
.article-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.related { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; }
.related-title { margin: 0; font-size: 19px; font-weight: 600; }
.related-item { display: flex; gap: 14px; align-items: center; padding: 10px; border-radius: 20px; background: rgba(255, 255, 255, .62); border: 1px solid rgba(255, 255, 255, .85); min-width: 0; }
.related-img { width: 96px; height: 68px; border-radius: 12px; background: #D2DED8 center / cover no-repeat; flex: none; }
.related-meta { display: block; font-size: 12px; color: var(--muted); }
.related-name { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; font-weight: 600; line-height: 1.35; margin-top: 2px; overflow-wrap: anywhere; }

/* Hai cột (thẻ tối + biểu mẫu) và biểu mẫu trên trang. */
.split { display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }
.split-main { flex: 1.2 1 380px; min-width: min(100%, 280px); }
.split-side { flex: 1 1 320px; min-width: min(100%, 280px); }
.steps-dark { display: flex; flex-direction: column; gap: 10px; align-self: stretch; }
.step-dark { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, .08); }
.step-n-light { font-family: var(--serif); font-style: italic; font-size: 36px; line-height: 1; color: var(--accent-light); width: 26px; flex: none; }
.step-dark-title { font-size: 16px; font-weight: 600; }
.step-dark .on-dark { font-size: 13.5px; margin-top: 2px; }
.btn-outline-light { border: 1px solid rgba(255, 255, 255, .3); color: #fff; font-weight: 600; height: 46px; white-space: normal; text-align: center; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .08); }
.form-card { border-radius: 28px; padding: 22px; display: flex; flex-direction: column; gap: 10px; background: rgba(255, 255, 255, .62); }
.form-card-title { font-size: 20px; font-weight: 600; }
.inline-form { display: flex; flex-direction: column; gap: 10px; }
.textarea { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.inline-sent { padding: 16px; border-radius: 18px; background: rgba(43, 163, 111, .14); font-size: 14px; line-height: 1.55; color: var(--green-ink); }
.inline-sent b { font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Giới thiệu: ảnh, ba giá trị, chặng đường, thông tin doanh nghiệp. */
.about-media { min-height: clamp(300px, 34cqw, 560px); }
.value-card { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.value-title { font-size: clamp(26px, 2.4cqw, 34px); line-height: 1.1; }
.timeline { display: flex; flex-direction: column; gap: 10px; align-self: stretch; }
.timeline-row { display: flex; gap: 16px; align-items: baseline; padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, .08); }
.timeline-year { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--accent-light); min-width: 92px; flex: none; }
.facts { margin: 0; display: grid; grid-template-columns: minmax(96px, auto) 1fr; gap: 10px 16px; font-size: 14.5px; line-height: 1.5; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.facts a { color: var(--accent); font-weight: 600; }
.doc-body { padding: clamp(20px, 3cqw, 40px); border-radius: 28px; }

/* Ưu đãi & thủ tục: các bước, ưu đãi, ngành nghề, hỗ trợ FDI, lối sang trang khác. */
.steps-list { display: flex; flex-direction: column; gap: 12px; }
.step-row { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; padding: 18px 22px; border-radius: 22px; }
.step-row .step-n { width: 44px; flex: none; }
.step-main { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.step-head { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.step-time { font-size: 12.5px; font-weight: 700; color: var(--green-ink); background: rgba(43, 163, 111, .12); padding: 4px 10px; border-radius: 10px; }
.step-docs { flex: 0 1 340px; min-width: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .6); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-ok { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 14px; background: rgba(43, 163, 111, .12); color: var(--green-ink); font-size: 14px; font-weight: 600; }
.tag-ok .ms { font-size: 18px; }
.small-title { font-size: 16px; margin-top: 8px; }
.line-no, .line-yes { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; }
.line-no .ms { color: #B3362F; font-size: 20px; }
.line-yes { color: rgba(255, 255, 255, .86); }
.line-yes .ms { color: var(--accent-light); font-size: 20px; }
.link-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 20px 22px; border-radius: 22px; font-size: 16px; font-weight: 600; }
.link-card .ms { color: var(--accent); }

/* Hỏi đáp: hai cột trên màn hình rộng, mở từng câu (thẻ details). */
.faq-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 560px), 1fr)); gap: 12px; align-items: start; }
.faq-item { border-radius: 20px; padding: 0 18px; }
.faq-item summary { list-style: none; display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 18px 0; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { font-size: 16px; font-weight: 600; line-height: 1.4; }
.faq-mark { width: 34px; height: 34px; border-radius: 50%; background: var(--dark); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; transition: transform .25s ease; }
.faq-item[open] .faq-mark { transform: rotate(45deg); }
.faq-a { font-size: 15px; line-height: 1.65; color: var(--ink-2); padding: 0 44px 18px 0; text-wrap: pretty; }
.faq-more { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; padding: 20px 24px; border-radius: 24px; }
.faq-more-text { font-size: 17px; font-weight: 600; }

/* Liên hệ: thẻ tối thông tin liên hệ. */
.contact-card { gap: 16px; }
.contact-item { display: flex; flex-direction: column; gap: 2px; }
.contact-k { font-size: 13px; color: rgba(255, 255, 255, .7); }
.contact-big { font-size: clamp(28px, 3cqw, 40px); font-weight: 600; letter-spacing: -.02em; color: #fff; }
.contact-v { font-size: 16px; font-weight: 500; color: #fff; overflow-wrap: anywhere; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

/* Dự án: thẻ lớn mỗi cụm (ảnh trái, thông tin phải; hẹp thì xếp dọc). */
.card-project { border-radius: 28px; padding: 12px; display: flex; flex-wrap: wrap; gap: 18px; }
.card-project-img { flex: 1 1 320px; min-width: min(100%, 260px); min-height: clamp(250px, 26cqw, 420px); border-radius: 20px; background: #D2DED8 center / cover no-repeat; position: relative; display: block; }
.card-project-img .tag { left: 12px; top: 12px; padding: 6px 12px; border-radius: 14px; font-size: 12px; }
.card-project-info { flex: 1.4 1 340px; min-width: min(100%, 260px); padding: 8px 8px 8px 0; display: flex; flex-direction: column; gap: 14px; }
.card-project-name { margin: 0; font-size: clamp(22px, 2.4cqw, 30px); font-weight: 600; letter-spacing: -.02em; }
.card-project-name a:hover { color: var(--accent); }
.card-project-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
@container (max-width: 760px) { .card-project-info { padding: 0 6px 6px; } }
.kv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 8px; }
.kv { padding: 11px 13px; border-radius: 14px; background: rgba(255, 255, 255, .66); min-width: 0; }
.kv small { display: block; font-size: 11.5px; color: var(--muted); }
.kv b { display: block; font-size: 15px; font-weight: 600; margin-top: 2px; overflow-wrap: anywhere; }
.stack-xs { display: flex; flex-direction: column; gap: 6px; }
.ink-2 { color: var(--ink-2); }

/* Chi tiết cụm: ảnh lớn có số liệu, thông tin cụm và mặt bằng, hạ tầng, kết nối giao thông, ảnh. */
.crumb a:hover { text-decoration: underline; }
.cluster-title { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.cluster-title .tag { position: static; padding: 7px 14px; border-radius: 16px; font-size: 13px; }
.cluster-hero { position: relative; height: clamp(240px, 34cqw, 600px); border-radius: 32px; overflow: hidden; background: var(--dark) center / cover no-repeat; box-shadow: 0 24px 60px rgba(16, 34, 31, .16); }
.cluster-hero .hero-facts b { font-size: 19px; }
/* Điện thoại (quyết định 199; chủ dự án 14/11/2026: "phần mô tả che gần hết ảnh"): khung số liệu trên ảnh lớn của trang chủ và
 * Chi tiết cụm gọn một hàng ba cột, chữ nhỏ, sát mép dưới; ảnh lớn của Chi tiết cụm cao hơn một chút. */
@container (max-width: 639px) {
  .hero-facts { left: 10px; right: 10px; bottom: 10px; padding: 9px 12px; border-radius: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .hero-facts small { font-size: 10.5px; line-height: 1.35; }
  .hero-facts b, .cluster-hero .hero-facts b { font-size: 13.5px; line-height: 1.3; margin-top: 1px; text-wrap: balance; }
  .cluster-hero { height: min(76cqw, 320px); border-radius: 26px; }
}
.cluster-info { flex: 1 1 340px; min-width: min(100%, 280px); border-radius: 26px; padding: 20px; display: flex; flex-direction: column; }
.cluster-info-title { margin: 0 0 6px; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.fact-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(16, 34, 31, .08); font-size: 14px; }
.fact-row span { color: var(--muted); flex: none; }
.fact-row b { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.cluster-info .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 14px; }
.cluster-map { flex: 1.6 1 440px; min-width: min(100%, 280px); border-radius: 26px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.map-legend .legend-item { padding: 7px 11px; border-radius: 12px; font-size: 12.5px; }
.map-legend .btn { margin-left: auto; height: 46px; }
.map-soon { flex: 1; min-height: 260px; border-radius: 18px; border: 1.5px dashed rgba(16, 34, 31, .22); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; }
.map-soon-title { font-size: 22px; font-weight: 600; }
.infra-card { border-radius: 22px; padding: 18px; display: flex; gap: 14px; align-items: flex-start; }
.ico-soft { width: 44px; height: 44px; border-radius: 14px; background: rgba(43, 163, 111, .16); color: var(--green-ink); display: flex; align-items: center; justify-content: center; flex: none; }
.ico-soft .ms { font-size: 22px; }
.infra-title { font-size: 15.5px; font-weight: 600; }
.connect { border-radius: 28px; background: var(--dark); color: #fff; padding: clamp(20px, 2.8cqw, 34px); display: flex; flex-direction: column; gap: 16px; }
.connect .h3 { margin: 0; }
.connect-item { padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .08); }
.connect-item small { display: block; font-size: 12.5px; color: rgba(255, 255, 255, .72); }
.connect-item b { display: block; font-size: 18px; font-weight: 600; margin-top: 3px; }
.connect-note { font-size: 12.5px; color: rgba(255, 255, 255, .7); }
.gallery-tile { height: clamp(160px, 14cqw, 240px); border-radius: 20px; background: #D2DED8 center / cover no-repeat; display: block; }

/* Tham quan: ảnh lớn có nút trước, sau, hàng ảnh nhỏ; video (bấm mới tải YouTube); góc nhìn rộng kéo ngang. */
.tour-main, .tour-video, .tour-pano { position: relative; width: 100%; aspect-ratio: 16 / 9; max-width: 100%; min-height: 240px; max-height: 80vh; border-radius: 30px; overflow: hidden;
  background: var(--dark) center / cover no-repeat; box-shadow: 0 24px 60px rgba(16, 34, 31, .16); }
.tour-nav { position: absolute; top: 50%; margin-top: -24px; width: 48px; height: 48px; border-radius: 24px; background: rgba(255, 255, 255, .88); display: flex; align-items: center; justify-content: center; }
.tour-nav .ms { font-size: 24px; }
.tour-prev { left: 12px; }
.tour-next { right: 12px; }
.tour-cap { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 9px 14px; border-radius: 16px; background: rgba(15, 38, 34, .8); color: #fff; font-size: 13.5px; font-weight: 600; }
.tour-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 8px; }
.tour-thumb { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 14px; background: #D2DED8; opacity: .7; transition: opacity .25s, box-shadow .3s, transform .3s; }
.tour-thumb:hover { opacity: .9; }
.tour-thumb.is-on { opacity: 1; box-shadow: 0 0 0 3px var(--dark); transform: translateY(-2px); }
/* Đổi ảnh lớn (quyết định 195): ảnh mới tải xong mới hiện; trượt nhẹ theo chiều bấm, từ hơi phóng về cỡ thật và hiện dần; ảnh cũ
   trượt ngược chiều, mờ đi. Chú thích đổi mờ dần. Ảnh mới tải chậm thì có thanh chạy mỏng ở mép trên. */
.tour-main { touch-action: pan-y; }
.tour-main:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.tour-stage { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; user-select: none; -webkit-user-select: none; }
/* Phần phóng to (mỗi bên (tỉ lệ - 1) / 2) luôn lớn hơn phần trượt, nên mép ảnh không hở nền trong lúc chuyển. */
.tour-slide { position: absolute; inset: 0; opacity: 0; transform: translate3d(calc(var(--dir, 1) * 3%), 0, 0) scale(1.08);
  transition: opacity .75s cubic-bezier(.22, .61, .36, 1), transform 1.1s cubic-bezier(.16, 1, .3, 1); will-change: opacity, transform; }
.tour-slide.is-on { opacity: 1; transform: none; }
.tour-slide.is-out { opacity: 0; transform: translate3d(calc(var(--dir, 1) * -2%), 0, 0) scale(1.05); transition-duration: .8s, 1.1s; }
.tour-slide img { pointer-events: none; -webkit-user-drag: none; }
.tour-nav, .tour-cap { z-index: 2; }
.tour-nav { transition: transform .2s, background-color .2s; }
.tour-nav:hover { transform: scale(1.07); background: #fff; }
.tour-cap { transition: opacity .25s ease, transform .25s ease; }
.tour-cap.is-swap { opacity: 0; transform: translateY(6px); }
.tour-main::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 3; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--orange), transparent) no-repeat; background-size: 40% 100%; transition: opacity .2s; }
.tour-main.is-loading::after { opacity: 1; animation: tour-load 1.1s linear infinite; }
@keyframes tour-load { from { background-position: -40% 0; } to { background-position: 140% 0; } }
.tour-video-btn { position: absolute; inset: 0; width: 100%; background: rgba(15, 38, 34, .5); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #fff; text-align: center; padding: 20px; }
.play { width: 84px; height: 84px; border-radius: 50%; background: var(--orange); color: var(--orange-ink); display: flex; align-items: center; justify-content: center; transition: transform .25s; }
.tour-video-btn:hover .play { transform: scale(1.06); }
.play .ms { font-size: 44px; }
.tour-video-title { font-size: 20px; font-weight: 600; }
.tour-video-note { font-size: 14px; color: rgba(255, 255, 255, .82); }
.tour-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tour-video noscript { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); }
.tour-pano { background-size: auto 150%; background-position: 50% 50%; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.tour-pano.is-drag { cursor: grabbing; }
.pano-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 9px 16px; border-radius: 18px; background: rgba(15, 38, 34, .8); color: #fff; font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; white-space: nowrap; pointer-events: none; }
.visit-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 18px 20px; border-radius: 24px; background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .85); }
.visit-bar-text { font-size: 16px; font-weight: 600; }

/* Tài liệu: mỗi tài liệu một dòng (biểu tượng, tên, nhóm và dung lượng, nút tải hoặc nhận qua email). */
.doc-list { display: flex; flex-direction: column; gap: 8px; }
.doc-item { border-radius: 20px; background: rgba(255, 255, 255, .62); border: 1px solid rgba(255, 255, 255, .85); box-shadow: 0 6px 18px rgba(16, 34, 31, .05); padding: 12px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.doc-ico { width: 46px; height: 46px; border-radius: 14px; background: rgba(229, 87, 79, .14); color: #B3362F; display: flex; align-items: center; justify-content: center; flex: none; }
.doc-ico .ms { font-size: 22px; }
.doc-text { flex: 1 1 220px; min-width: 0; }
.doc-title { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.doc-item .btn { height: 44px; padding: 0 16px; border-radius: 22px; font-size: 13.5px; }

/* Tuyển dụng: danh sách vị trí bên trái, mô tả và biểu mẫu bên phải. */
.job-list { display: flex; flex-direction: column; gap: 8px; align-self: flex-start; }
.job-item { padding: 16px 18px; border-radius: 22px; background: rgba(255, 255, 255, .62); border: 1px solid var(--chip); display: flex; flex-direction: column; gap: 4px; transition: background .2s, color .2s; }
.job-item:hover { background: rgba(255, 255, 255, .85); }
.job-item.is-on { background: var(--dark); color: #fff; border-color: var(--dark); }
.job-item-title { font-size: 16px; font-weight: 600; line-height: 1.35; }
.job-item-meta { font-size: 13px; opacity: .82; }
.job-detail { border-radius: 28px; padding: clamp(18px, 2.4cqw, 28px); display: flex; flex-direction: column; gap: 12px; align-self: flex-start; background: rgba(255, 255, 255, .62); }
.job-title { margin: 0; font-size: clamp(22px, 2.4cqw, 30px); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.job-sec { font-size: 15px; font-weight: 600; margin-top: 4px; }
.job-line { display: flex; gap: 8px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.job-line::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; margin-top: 8px; }
.job-line.is-req::before { background: var(--green-bar); }
.job-form { padding-top: 6px; }
.file-pick { position: relative; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px; border-radius: 14px; border: 1px dashed rgba(16, 34, 31, .28); background: #fff; font-size: 14px; color: var(--ink-2); cursor: pointer; overflow-wrap: anywhere; }
.file-pick input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.file-pick .ms { color: var(--accent); }
.file-pick.is-bad { border-color: #C9423A; }

/* Mặt bằng cụm (SVG vẽ từ bản vẽ thật). Nét vẽ giữ độ dày trên màn hình khi phóng to (non-scaling-stroke). */
.plan { position: relative; width: 100%; border-radius: 18px; overflow: hidden; background: #D2DED8; touch-action: pan-x pan-y;
  -webkit-user-select: none; user-select: none; }
.plan svg { display: block; width: 100%; height: 100%; }
.pf { stroke: none; }
.plan .pf { vector-effect: non-scaling-stroke; }
.pf-boundary { fill: #E3EBE6; stroke: rgba(229, 87, 79, .75); stroke-width: 1.5; stroke-dasharray: 6 4; }
.pf-green { fill: #C7E3CF; }
.pf-canal { fill: #B5D6E6; }
.pf-technical { fill: #D8E1DC; }
.pf-road { fill: #F3F6F4; }
.pf.is-line { fill: none; }
.pf-road.is-line { stroke: #FFFFFF; stroke-width: 2; }
.pf-boundary.is-line { stroke-width: 1.5; }
.pl path { stroke: #FFFFFF; stroke-width: 1; vector-effect: non-scaling-stroke; transition: opacity .25s, stroke .2s; }
.pl:hover path, .pl:focus-visible path { stroke: var(--ink); stroke-width: 2.5; }
.pl text { font-family: var(--sans); font-weight: 700; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
/* Mã lô: có JavaScript thì mã trên trình duyệt chọn lô đủ lớn trên màn hình (is-off) và cỡ chữ; không có thì như trước (lô nhỏ,
 * màn hình hẹp không hiện mã). */
.pl text.is-off { display: none; }
.plan:not(.js-labels) .pl text.is-tiny { display: none; }
@container (max-width: 700px) { .plan:not(.js-labels) text { display: none; } }
/* Phóng to, thu nhỏ (quyết định 190): nút ở góc trên trái; đang phóng thì kéo để di chuyển (một ngón trên điện thoại); chưa phóng
 * thì vuốt trên mặt bằng vẫn cuộn trang, chụm hai ngón để phóng; lời nhắc khi lăn chuột không giữ Ctrl. Cần JavaScript. */
.plan.is-zoomed { touch-action: none; cursor: grab; }
.plan.is-dragging { cursor: grabbing; }
.plan.is-dragging .pl { pointer-events: none; }
.plan-zoom { position: absolute; top: 10px; left: 10px; z-index: 2; display: flex; gap: 2px; padding: 3px; border-radius: 999px;
  background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 4px 14px rgba(16, 34, 31, .14); }
.plan-zoom button { min-width: 30px; height: 28px; padding: 0 8px; border-radius: 999px; font-size: 19px; font-weight: 600; line-height: 1; color: var(--ink); }
.plan-zoom button:hover:not(:disabled) { background: rgba(16, 34, 31, .08); }
.plan-zoom button:disabled { opacity: .35; cursor: default; }
.plan-zoom .plan-zoom-all { font-size: 12.5px; padding: 0 11px; }
.no-js .plan-zoom, .no-js .plan-view { display: none; }
.plan-hint { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center;
  background: rgba(15, 38, 34, .5); color: #FFFFFF; font-size: 15px; font-weight: 600; pointer-events: none; opacity: 0; transition: opacity .25s ease; }
.plan-hint.is-on { opacity: 1; }
/* Lô đang chọn viền đậm; lô không khớp bộ lọc (Quỹ đất) và lô khác lô đang xem (Chi tiết lô) mờ đi. */
.pl { transition: opacity .25s; }
.pl.is-sel path { stroke: var(--dark); stroke-width: 3; }
.pl.is-out, .pl.is-dim { opacity: .3; }
.pl.is-dim:hover { opacity: .75; }
/* Ảnh vệ tinh dưới mặt bằng (quyết định 188): nút chọn nền ở góc trên phải; nền vệ tinh thì lớp bản vẽ chỉ còn ranh giới cụm
 * (nét đỏ), lô tô màu trong suốt, mã lô chữ trắng viền tối; logo và ghi công của nhà cung cấp ảnh ở cạnh dưới. */
.plan-view { position: absolute; top: 10px; right: 10px; z-index: 2; display: flex; gap: 2px; padding: 3px; border-radius: 999px;
  background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 4px 14px rgba(16, 34, 31, .14); }
.plan-view button { padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1.2; color: var(--ink-2); }
.plan-view button.is-on { background: var(--dark); color: #FFFFFF; }
.plan.is-sat { background: #3B4A42; }
.plan.is-sat .pf { display: none; }
.plan.is-sat .pf-boundary { display: inline; fill: none; stroke: rgba(255, 99, 88, .95); stroke-width: 2; }
.plan.is-sat .pl path { fill-opacity: .5; stroke: rgba(255, 255, 255, .9); stroke-width: 1.2; }
.plan.is-sat .pl:hover path, .plan.is-sat .pl:focus-visible path { fill-opacity: .7; stroke: #FFFFFF; stroke-width: 2.5; }
.plan.is-sat .pl.is-sel path { fill-opacity: .8; stroke: #FFFFFF; stroke-width: 3; }
.plan.is-sat .pl text { fill: #FFFFFF !important; paint-order: stroke; stroke: rgba(0, 0, 0, .6); stroke-width: calc(var(--u, 1) * 2.5px); stroke-linejoin: round; }
.plan-credit { position: absolute; left: 8px; right: 8px; bottom: 6px; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between;
  gap: 8px; pointer-events: none; }
.plan-credit-logo { width: 70px; height: 18px; flex: none; object-fit: cover; object-position: left center; }
.plan-credit-text { pointer-events: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 7px; padding: 1px 6px; border-radius: 6px;
  background: rgba(255, 255, 255, .78); color: #1F2A26; font-size: 10.5px; line-height: 1.5; }
.plan-credit-text a { text-decoration: underline; text-underline-offset: 2px; }
.plan-credit-info { display: none; pointer-events: auto; width: 22px; height: 22px; border-radius: 50%; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .85); color: #1F2A26; flex: none; }
.plan-credit-info .ms { font-size: 17px; }
/* Màn hình hẹp (điện thoại): nút chọn nền nhỏ hơn; logo chỉ còn biểu tượng tròn, ghi công gọn vào nút "i". */
@container (max-width: 700px) {
  .plan-view { top: 6px; right: 6px; padding: 2px; }
  .plan-view button { padding: 4px 9px; font-size: 11.5px; }
  .plan-zoom { top: 6px; left: 6px; padding: 2px; }
  .plan-zoom button { min-width: 28px; height: 26px; font-size: 18px; }
  .plan-zoom .plan-zoom-all { font-size: 11.5px; padding: 0 9px; }
  .plan-credit { left: 6px; right: 6px; bottom: 5px; align-items: center; }
  .plan-credit-logo { width: 18px; height: 18px; }
  .plan-credit-info { display: inline-flex; margin-left: auto; }
  .plan-credit-text { display: none; position: absolute; right: 28px; bottom: 0; max-width: calc(100% - 60px); }
  .plan-credit.is-open .plan-credit-text { display: flex; }
}
/* Mặt bằng dùng lại cho thẻ lô: vẽ một lần vào <defs>, không chiếm chỗ trên trang. */
.plan-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.pm { fill: #FFFFFF; fill-opacity: .6; stroke: rgba(16, 34, 31, .16); stroke-width: .8px; vector-effect: non-scaling-stroke; }

/* Quỹ đất: chọn cụm, bộ lọc, mặt bằng và khung thông tin lô, danh sách lô. */
.land-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.land-tab { min-height: 56px; padding: 8px 20px; border-radius: 28px; display: flex; flex-direction: column; justify-content: center; background: rgba(255, 255, 255, .62); border: 1px solid var(--chip); transition: background .2s, color .2s; }
.land-tab b { font-size: 15px; font-weight: 700; }
.land-tab small { font-size: 12px; opacity: .8; }
.land-tab:hover { background: rgba(255, 255, 255, .85); }
.land-tab.is-on { background: var(--dark); color: #fff; border-color: var(--dark); }
/* Bộ lọc: ba nhóm có nhãn; nhóm nào không đủ chỗ thì sang hàng dưới (màn hình rộng: Loại và Diện tích chung một hàng), nút xuống
 * dòng thẳng hàng sau nhãn; điện thoại: nhãn ở trên, mỗi nhóm một hàng nút vuốt ngang, mép phải mờ dần báo còn nút. */
.land-filters { padding: 12px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.lf-group { display: flex; align-items: flex-start; gap: 10px; min-width: 0; max-width: 100%; }
.lf-k { width: 72px; flex: none; font-size: 13px; line-height: 40px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.lf-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.lf-chips::-webkit-scrollbar { display: none; }
.lf-chips .chip { height: 40px; padding: 0 14px; gap: 7px; flex: none; font-size: 13px; }
.lf-chips .chip .dot { width: 9px; height: 9px; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .7); }
.lf-chips .chip.is-zero:not(.is-on) { opacity: .5; }
.chip-n { opacity: .7; }
@container (max-width: 700px) {
  .land-filters { gap: 8px; }
  .lf-group { width: 100%; flex-direction: column; align-items: stretch; gap: 6px; }
  .lf-k { width: auto; font-size: 12.5px; line-height: 1.3; }
  .lf-chips { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding-right: 22px; margin-right: calc(-1 * var(--lf-bleed, 14px));
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 22px), transparent); }
}
/* Lô chưa có hình trên mặt bằng (thêm bằng tay, chưa có trong bản vẽ): thẻ ghi rõ thay vì ô trống. */
.lot-card-none { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); text-align: center; padding: 0 10px; }
.lot-card-none .ms { font-size: 22px; opacity: .7; }
.land-main { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.land-map { flex: 3 1 560px; min-width: min(100%, 280px); border-radius: 26px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.land-map .map-soon { min-height: 200px; }
.land-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 0 6px 4px; font-size: 12.5px; color: var(--ink-2); }
.land-legend span { display: flex; align-items: center; gap: 6px; }
.land-legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.land-legend b { font-weight: 700; }
.land-legend .land-legend-note { margin-left: auto; color: var(--muted); }
.land-panel { flex: 1 1 320px; min-width: min(100%, 280px); border-radius: 26px; background: rgba(255, 255, 255, .66); border-color: rgba(255, 255, 255, .85); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.land-panel:empty { display: none; }
.badge { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 14px; font-size: 12.5px; font-weight: 700; white-space: nowrap; flex: none; }
.lp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.lp-code { font-size: 36px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; overflow-wrap: anywhere; }
.lp-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lp-specs .kv { padding: 10px 12px; background: rgba(255, 255, 255, .7); }
.lp-specs .kv b { font-size: 14px; }
.lp-price { padding: 14px 16px; border-radius: 16px; background: var(--dark); color: #fff; }
.lp-price small { display: block; font-size: 12px; color: rgba(255, 255, 255, .72); }
.lp-price b { display: block; font-size: 21px; font-weight: 600; letter-spacing: -.01em; margin-top: 3px; }
.lp-msg { font-size: 13.5px; line-height: 1.5; padding: 11px 14px; border-radius: 14px; background: rgba(245, 154, 78, .16); color: #7C2D12; }
.lp-actions { display: flex; gap: 8px; }
.lp-actions .btn { flex: 1 1 0; min-width: 0; padding: 0 12px; }
.lp-cmp { height: 44px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); border-radius: 22px; }
.lp-cmp:hover { background: rgba(16, 34, 31, .05); }
.lp-cmp.is-on, .lp-actions .btn.is-on { color: var(--green-ink); }
.land-more { display: flex; justify-content: center; }
.land-more:has(> [hidden]) { display: none; }
.lot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(150px, min(100%, 17cqw)), 1fr)); gap: 12px; }
.lot-card { border-radius: 20px; background: rgba(255, 255, 255, .66); border: 1px solid rgba(255, 255, 255, .85); box-shadow: 0 8px 22px rgba(16, 34, 31, .06); padding: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.lot-card.is-sel { box-shadow: 0 0 0 2px var(--dark), 0 8px 22px rgba(16, 34, 31, .1); }
.lot-card-map { position: relative; display: block; aspect-ratio: 16 / 10; max-width: 100%; border-radius: 14px; overflow: hidden; background: #EEF3F0; }
.lot-mini { position: absolute; inset: 0; width: 100%; height: 100%; }
.lot-mini-hl { stroke: var(--dark); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.lot-card-st { position: absolute; right: 8px; top: 8px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 10px; }
.lot-card-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 0 4px; }
.lot-card-row b { font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.lot-card-row span { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.lot-card > .muted { padding: 0 4px; font-size: 12.5px; line-height: 1.45; }
.lot-card-actions { display: flex; gap: 8px; margin-top: auto; }
.lot-card-actions .btn { flex: 1 1 0; min-width: 0; height: 44px; padding: 0 12px; border-radius: 22px; font-size: 13.5px; }
.btn-soft { background: rgba(16, 34, 31, .06); color: var(--ink); }
.btn-soft:hover { background: rgba(16, 34, 31, .1); }

/* Chi tiết lô: mặt bằng (lô khác mờ), thông số, thẻ giá, nút giữ chỗ, lô tương tự. */
.lot-split { align-items: flex-start; }
.lot-split > .split-main { flex: 1.7 1 480px; gap: 16px; }
.lot-split > .split-side { flex: 1 1 340px; }
.lot-side { gap: 12px; }
.lot-map { border-radius: 26px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.lot-map > .muted { padding: 0 6px 2px; }
.spec-card { padding: 16px 18px; border-radius: 20px; background: rgba(255, 255, 255, .62); border: 1px solid rgba(255, 255, 255, .85); min-width: 0; }
.spec-card small { display: block; font-size: 12.5px; color: var(--muted); }
.spec-card b { display: block; font-size: 18px; font-weight: 600; margin-top: 4px; overflow-wrap: anywhere; }
.lot-price { border-radius: 26px; padding: 22px; gap: 6px; align-items: stretch; }
.lot-price .on-dark { font-size: 13px; }
.lot-price-range { font-size: 22px; font-weight: 600; }
.lot-price .lot-price-k { margin-top: 10px; }
.lot-price-est { font-size: clamp(26px, 3cqw, 36px); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; color: var(--accent-light); }
.lot-price .on-dark.small { font-size: 12.5px; line-height: 1.5; margin-top: 6px; }
.lot-side > .muted { padding: 4px 6px; line-height: 1.6; }
.sim-card { border-radius: 20px; padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sim-card b { display: block; font-size: 19px; font-weight: 600; }
.sim-card small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.sim-card-right { text-align: right; }
.sim-card-right small { font-size: 13px; font-weight: 600; color: var(--ink); margin: 0; }
.sim-card-right b { font-size: 12.5px; font-weight: 700; color: var(--accent); margin-top: 2px; }

/* Nhà xưởng: ảnh và thẻ tối số xưởng, danh sách xưởng, xây theo yêu cầu. */
.factory-photo { flex: 1.3 1 420px; min-width: min(100%, 280px); min-height: 300px; border-radius: 28px; background: var(--dark) center / cover no-repeat; }
.factory-stats { flex: 1 1 320px; min-width: min(100%, 280px); padding: 22px; gap: 4px; align-items: stretch; }
.factory-count { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 6px 0 10px; }
.factory-count span { font-size: 56px; font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.factory-count small { font-size: 15px; color: rgba(255, 255, 255, .76); }
.factory-row { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 14px; }
.factory-row span { color: rgba(255, 255, 255, .72); }
.factory-row b { font-weight: 600; text-align: right; }
.factory-note { margin-top: auto; padding-top: 10px; }
.on-dark.small { font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, .7); }
.factory-card { border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.factory-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.factory-card-head b { font-size: 20px; font-weight: 600; }
.factory-card-head .badge { font-size: 11.5px; padding: 4px 10px; border-radius: 11px; }
.factory-card-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 8px; font-size: 14px; }
.factory-card-row b { font-weight: 600; }
.factory-card-row span { color: var(--ink-2); }
.bts { border-radius: 30px; padding: clamp(18px, 2.6cqw, 34px); display: flex; flex-wrap: wrap; gap: 24px; }
.bts-steps { flex: 1.4 1 400px; min-width: min(100%, 270px); display: flex; flex-direction: column; gap: 16px; }
.bts-step { padding: 16px; border-radius: 18px; background: rgba(255, 255, 255, .66); display: flex; flex-direction: column; gap: 3px; }
.bts-step .step-n { font-size: 34px; }
.bts-step .card-step-title { font-size: 15.5px; margin-top: 3px; }
.bts-step .muted { font-size: 13px; line-height: 1.5; }
.bts-form { flex: 1 1 300px; min-width: min(100%, 270px); display: flex; flex-direction: column; gap: 10px; }
.bts-form .form-card-title { font-size: 18px; }

/* So sánh lô: bảng tối đa ba cột, cuộn ngang trên màn hình hẹp; ô khác nhau tô cam. */
.cmp-box { border-radius: 26px; background: rgba(255, 255, 255, .62); border-color: rgba(255, 255, 255, .85); padding: 12px; overflow-x: auto; }
.cmp-inner { min-width: max-content; display: flex; flex-direction: column; }
.cmp-row { display: grid; gap: 8px; padding: 0 6px; border-top: 1px solid rgba(16, 34, 31, .07); }
.cmp-headrow { padding: 6px 6px 12px; border-top: 0; }
.cmp-col { display: flex; flex-direction: column; gap: 8px; padding: 6px 8px; }
.cmp-col-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cmp-code { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.cmp-code:hover { color: var(--accent); }
.cmp-col .badge { align-self: flex-start; font-size: 11.5px; padding: 4px 10px; border-radius: 11px; }
.cmp-k { font-size: 13px; color: var(--muted); padding: 13px 0; }
.cmp-v { font-size: 14px; font-weight: 500; padding: 13px 8px; border-radius: 8px; }
.cmp-v.is-diff { background: rgba(245, 154, 78, .16); font-weight: 600; }
.cmp-foot { padding: 12px 6px 6px; }
.cmp-foot .btn { height: 46px; margin: 0 4px; padding: 0 14px; font-size: 13.5px; }
.cmp-empty { padding: 40px 20px; border-radius: 26px; border: 1.5px dashed rgba(16, 34, 31, .22); text-align: center; font-size: 15px; color: var(--ink-2); }
.cmp-add { align-self: flex-start; }

/* Trợ lý chọn lô: thanh tiến độ, câu hỏi, ba gợi ý. */
.wizard-page { width: 100%; max-width: 980px; margin: 0 auto; }
.wz { border-radius: 30px; background: rgba(255, 255, 255, .62); border-color: rgba(255, 255, 255, .85); padding: clamp(18px, 2.8cqw, 34px); display: flex; flex-direction: column; gap: 18px; }
.wz-progress { display: flex; align-items: center; gap: 14px; }
.wz-progress .bar { flex: 1; height: 8px; }
.wz-progress .bar i { background: var(--orange); transition: width .5s cubic-bezier(.2, .7, .2, 1); }
.wz-progress .muted { font-size: 13px; font-weight: 600; white-space: nowrap; }
.wz-body { display: flex; flex-direction: column; gap: 16px; }
.wz-title { font-size: clamp(24px, 3cqw, 36px); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.wz-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.wz-opt { min-height: 72px; padding: 14px 18px; border-radius: 20px; display: flex; flex-direction: column; justify-content: center; gap: 3px; text-align: left; background: rgba(255, 255, 255, .62); border: 1px solid var(--chip); transition: transform .25s, background .2s, color .2s; }
.wz-opt:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .85); }
.wz-opt.is-on { background: var(--dark); color: #fff; border-color: var(--dark); }
.wz-opt b { font-size: 16px; font-weight: 600; }
.wz-opt small { font-size: 13px; opacity: .8; }
.wz-back { align-self: flex-start; height: 44px; display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.wz-tag { padding: 7px 13px; border-radius: 16px; background: rgba(16, 34, 31, .07); font-size: 13px; font-weight: 600; }
.wz-res { border-radius: 22px; background: rgba(255, 255, 255, .8); border: 1px solid rgba(16, 34, 31, .08); padding: 16px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.wz-rank { font-family: var(--serif); font-style: italic; font-size: 46px; line-height: 1; color: var(--accent); width: 34px; flex: none; }
.wz-res-main { flex: 1 1 180px; min-width: 0; }
.wz-res-code { font-size: 21px; font-weight: 600; }
.wz-res-code small { font-size: 13px; font-weight: 500; color: var(--muted); }
.wz-res-main .muted { font-size: 14px; color: var(--ink-2); margin-top: 3px; }
.wz-why { flex: 1.2 1 220px; display: flex; flex-direction: column; gap: 4px; }
.wz-why > span { display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 1.4; color: var(--green-ink); }
.wz-why .ms { font-size: 18px; }
.wz-res-actions { flex: 1 1 220px; display: flex; gap: 8px; }
.wz-res-actions .btn { flex: 1 1 0; height: 46px; padding: 0 14px; font-size: 13.5px; }
.wz-none { padding: 24px; border-radius: 20px; border: 1.5px dashed rgba(16, 34, 31, .22); font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.wz-end { display: flex; flex-wrap: wrap; gap: 8px; }
.wz-end .btn { height: 46px; padding: 0 20px; }

/* Ước tính chi phí: chọn bên trái, kết quả trên thẻ tối bên phải. */
.split[data-cost] { align-items: flex-start; }
.cost-form { flex: 1.3 1 420px; min-width: min(100%, 280px); border-radius: 28px; background: rgba(255, 255, 255, .62); border-color: rgba(255, 255, 255, .85); padding: clamp(16px, 2.2cqw, 26px); display: flex; flex-direction: column; gap: 18px; }
.cost-row { display: flex; flex-direction: column; gap: 8px; }
.cost-k { font-size: 13px; font-weight: 600; color: var(--muted); }
.cost-form .chip { height: 46px; padding: 0 18px; border-radius: 23px; font-size: 14px; }
.cost-build { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 14px; border-radius: 18px; background: rgba(255, 255, 255, .7); text-align: left; }
.cost-build b { display: block; font-size: 14.5px; font-weight: 600; }
.cost-build small { display: block; font-size: 12.5px; color: var(--muted); }
.cost-box { width: 26px; height: 26px; border-radius: 9px; border: 2px solid var(--green-bar); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.cost-box .ms { font-size: 18px; opacity: 0; }
.cost-build.is-on .cost-box { background: var(--green-bar); }
.cost-build.is-on .cost-box .ms { opacity: 1; }
.cost-result { flex: 1 1 340px; min-width: min(100%, 280px); padding: clamp(18px, 2.4cqw, 28px); gap: 6px; align-items: stretch; }
.cost-result .on-dark { font-size: 13px; }
.cost-lines { display: flex; flex-direction: column; }
.cost-line { display: flex; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); font-size: 14.5px; }
.cost-line span { color: rgba(255, 255, 255, .82); }
.cost-line b { font-weight: 600; white-space: nowrap; }
.cost-result .cost-total-k { margin-top: 14px; }
.cost-total { font-size: clamp(28px, 3.4cqw, 42px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; color: var(--accent-light); }
.cost-result .btn { margin-top: 10px; }
.cost-result .on-dark.small { font-size: 12.5px; line-height: 1.5; margin-top: 10px; }

/* Chân trang. */
.ftr { padding: clamp(44px, 6cqw, 90px) clamp(16px, 4cqw, 64px) 0; transition: filter .25s ease; }
.ftr-in { border-radius: 32px; background: var(--dark); color: #fff; padding: clamp(22px, 3.4cqw, 46px); display: flex; flex-direction: column; gap: 28px; }
.ftr-top { display: flex; flex-wrap: wrap; gap: 32px; }
.ftr-company { flex: 1.4 1 300px; min-width: min(100%, 260px); display: flex; flex-direction: column; gap: 12px; }
.ftr-brand { display: flex; align-items: center; gap: 12px; }
.ftr-logo { width: 52px; height: 52px; border-radius: 16px; background: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.ftr-logo img { width: 42px; height: 38px; object-fit: contain; }
.ftr-name { font-size: 16px; font-weight: 700; }
.ftr-tagline { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--accent-light); }
.ftr-contact { font-size: 13.5px; line-height: 1.7; color: rgba(255, 255, 255, .78); }
.ftr-group { flex: 1 1 170px; display: flex; flex-direction: column; gap: 2px; }
.ftr-group-name { font-size: 12.5px; font-weight: 600; color: var(--accent-light); margin-bottom: 6px; }
.ftr-group a { font-size: 14px; color: rgba(255, 255, 255, .86); padding: 9px 0; }
.ftr-group a:hover { color: #fff; }
.ftr-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 13px; color: rgba(255, 255, 255, .7); }
.ftr-links { display: flex; gap: 18px; flex-wrap: wrap; }
.ftr-links a { color: var(--accent-light); }
.ftr-nowrap { white-space: nowrap; }
/* Điện thoại (chủ dự án 13/11/2026: "footer bố trí cho gọn gàng trên điện thoại hiện tại dài quá"): các trang của mỗi nhóm chia
 * hai cột, chữ và khoảng cách gọn lại (chân trang cao khoảng một nửa trước). */
@container (max-width: 700px) {
  .ftr { padding-top: 28px; }
  .ftr-in { border-radius: 26px; padding: 22px 20px; gap: 18px; }
  .ftr-top { gap: 18px; }
  .ftr-company { gap: 10px; }
  .ftr-logo { width: 44px; height: 44px; border-radius: 13px; }
  .ftr-logo img { width: 36px; height: 32px; }
  .ftr-name { font-size: 15px; line-height: 1.3; }
  .ftr-tagline { font-size: 14px; }
  .ftr-contact { font-size: 13px; line-height: 1.6; }
  .ftr-group { flex-basis: 100%; display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; }
  .ftr-group-name { grid-column: 1 / -1; margin-bottom: 2px; }
  .ftr-group a { font-size: 13.5px; padding: 6px 0; }
  .ftr-bottom { padding-top: 14px; font-size: 12.5px; gap: 6px 16px; }
  .ftr-links { gap: 6px 14px; }
}

/* Thanh liên hệ nổi. */
.dock-wrap { view-transition-name: dock; position: sticky; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 30; margin: 20px 0 0; padding: 0 clamp(10px, 3cqw, 48px); display: flex; justify-content: flex-end; pointer-events: none; }
.dock { pointer-events: auto; display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 32px; background: var(--dark); box-shadow: 0 16px 36px rgba(15, 38, 34, .35); }
.dock-btn { height: 48px; min-width: 48px; padding: 0 14px; border-radius: 24px; color: #fff; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.dock-btn:hover { background: rgba(255, 255, 255, .1); }
.dock-cmp { height: 48px; padding: 0 14px; border-radius: 24px; background: rgba(255, 255, 255, .12); color: #fff; display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; }
.dock-book { height: 48px; padding: 0 18px; border-radius: 24px; background: var(--orange); color: var(--orange-ink); display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.site.is-sheet .dock-wrap { visibility: hidden; }
/* Điện thoại: thanh liên hệ vừa màn hình 320 khi có thêm nút trợ lý AI (quyết định 196): "Đặt lịch" thay "Đặt lịch khảo sát"; đang
 * có lô so sánh thì nút đặt lịch chỉ còn hình (tên đầy đủ đọc được qua aria-label). */
@container (max-width: 479px) {
  .dock .dock-book-more { display: none; }
  .dock:has(.dock-cmp:not([hidden])) .dock-book { padding: 0 14px; }
  .dock:has(.dock-cmp:not([hidden])) .dock-book-text { display: none; }
}

/* Bảng nổi: tất cả các trang, biểu mẫu. */
.sheet-layer { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; padding: 0 clamp(10px, 3cqw, 40px) calc(14px + env(safe-area-inset-bottom)); }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(11, 26, 23, .12); }
.sheet { position: relative; width: 100%; max-width: 560px; max-height: min(640px, calc(100dvh - 40px)); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; border-radius: 28px;
  background: rgba(251, 253, 252, .97); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); border: 1px solid #fff; box-shadow: 0 30px 80px rgba(16, 34, 31, .4);
  padding: 20px; display: flex; flex-direction: column; gap: 14px; animation: sheet-in .35s cubic-bezier(.2, .7, .2, 1); }
.sheet-menu { max-width: 880px; padding: 18px; max-height: min(620px, calc(100dvh - 40px)); }
@keyframes sheet-in { from { transform: translateY(24px); opacity: 0; } }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sheet-title { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.sheet-menu .sheet-title { font-size: 20px; letter-spacing: -.01em; }
.sheet-sub { font-size: 13.5px; line-height: 1.5; color: var(--muted); margin-top: 4px; }
.x { width: 44px; height: 44px; border-radius: 22px; background: rgba(16, 34, 31, .07); display: flex; align-items: center; justify-content: center; flex: none; }
.sheet-lot { font-size: 13.5px; font-weight: 600; padding: 11px 14px; border-radius: 14px; background: var(--dark); color: #fff; }
.sheet-body { display: flex; flex-direction: column; gap: 12px; }
.f-book { display: flex; flex-direction: column; gap: 8px; }
.days, .slots { display: flex; gap: 6px; flex-wrap: wrap; }
.pick { position: relative; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick span { background: rgba(255, 255, 255, .62); color: var(--ink); border: 1px solid var(--chip); cursor: pointer; transition: background .2s, color .2s; }
.pick input:checked + span { background: var(--dark); color: #fff; border-color: var(--dark); }
.pick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.day { flex: 1 1 60px; }
.day span { height: 56px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.day small { font-size: 11.5px; opacity: .8; }
.day b { font-size: 14px; font-weight: 700; }
.slot { flex: 1 1 70px; }
.slot span { height: 44px; border-radius: 22px; display: flex; align-items: center; justify-content: center; font-size: 13.5px; font-weight: 600; }
.f-hold { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 16px; background: rgba(245, 154, 78, .14); }
.terms { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.terms li { display: flex; gap: 8px; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.terms li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; margin-top: 7px; }
.agree { position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-size: 13.5px; font-weight: 600; }
.agree input { position: absolute; opacity: 0; }
.agree .box { width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--green-bar); display: flex; align-items: center; justify-content: center; flex: none; color: #fff; }
.agree .box .ms { font-size: 18px; opacity: 0; }
.agree input:checked + .box { background: var(--green-bar); }
.agree input:checked + .box .ms { opacity: 1; }
.agree input:focus-visible + .box { outline: 2px solid var(--accent); outline-offset: 2px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.input { height: 48px; border-radius: 14px; border: 1px solid rgba(16, 34, 31, .18); background: #fff; padding: 0 14px; font-size: 14px; width: 100%; }
.input:focus { border-color: var(--ink); }
.input.is-bad { border-color: #C9423A; }
.consent { margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.consent a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.form-error { margin: 0; font-size: 13px; font-weight: 600; color: #B3362F; }
.sheet-sent { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding: 16px; border-radius: 18px; background: rgba(43, 163, 111, .14); }
.sent-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--green-bar); color: #fff; display: flex; align-items: center; justify-content: center; }
.sent-icon .ms { font-size: 24px; }
.sent-title { font-size: 18px; font-weight: 600; }
.sent-text { font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.sent-note { font-size: 12.5px; color: var(--muted); }
.menu-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px; }
.menu-group { display: flex; flex-direction: column; gap: 6px; }
.menu-group-name { font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 0 4px; }
.menu-item { height: 46px; padding: 0 12px; border-radius: 14px; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; background: rgba(255, 255, 255, .7); }
.menu-item.is-on { background: var(--dark); color: #fff; }
.menu-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.menu-actions .btn { flex: 1 1 150px; }

/* Trợ lý AI (quyết định 180, 196): nút trên thanh liên hệ nổi; khung trò chuyện ở góc dưới bên phải (máy tính), gần hết màn hình
 * (điện thoại). Khung nằm ngoài #site nên giữ nguyên khi chuyển trang tại chỗ; mở khung thì thanh liên hệ ẩn. Bàn phím điện thoại
 * mở thì ic36-tro-ly.js đặt khung vừa phần màn hình còn thấy (lớp is-kb). */
.dock-ai { background: rgba(255, 255, 255, .12); }
html.ai-open .dock-wrap { visibility: hidden; }
.ai { position: fixed; z-index: 55; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); display: flex;
  width: min(410px, calc(100vw - 32px)); height: min(660px, calc(100dvh - 28px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px))); }
.ai[hidden] { display: none; }
.ai-panel { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; border-radius: 28px; overflow: hidden;
  background: rgba(251, 253, 252, .97); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); border: 1px solid #fff; box-shadow: 0 30px 80px rgba(16, 34, 31, .4);
  animation: sheet-in .35s cubic-bezier(.2, .7, .2, 1); }
.ai-head { display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 14px; border-bottom: 1px solid var(--chip); flex: none; }
.ai-avatar { width: 40px; height: 40px; border-radius: 14px; background: var(--dark); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.ai-avatar .ms { font-size: 22px; }
.ai-head-text { flex: 1; min-width: 0; }
.ai-title { font-size: 15px; font-weight: 700; }
.ai-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-icon { width: 40px; height: 40px; border-radius: 20px; display: flex; align-items: center; justify-content: center; flex: none; background: rgba(16, 34, 31, .06); }
.ai-icon:hover { background: rgba(16, 34, 31, .11); }
.ai-log { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.ai-msg { max-width: 88%; padding: 10px 14px; border-radius: 18px; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.ai-msg.is-ai { align-self: flex-start; background: #fff; border: 1px solid var(--chip); border-bottom-left-radius: 6px; }
.ai-msg.is-me { align-self: flex-end; background: var(--dark); color: #fff; border-bottom-right-radius: 6px; white-space: pre-wrap; }
.ai-msg > * { margin: 0; }
.ai-msg > * + * { margin-top: 8px; }
.ai-msg ul, .ai-msg ol { padding-left: 20px; }
.ai-msg li + li { margin-top: 3px; }
.ai-msg a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.ai-typing { display: inline-flex; gap: 4px; padding: 6px 0; }
.ai-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: .35; animation: ai-dot 1.2s infinite ease-in-out; }
.ai-typing i:nth-child(2) { animation-delay: .15s; }
.ai-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ai-dot { 0%, 80%, 100% { opacity: .35; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
.ai-wait { font-size: 12px; color: var(--muted); }
.ai-suggest { display: flex; gap: 6px; padding: 0 14px 10px; overflow-x: auto; scrollbar-width: none; flex: none; }
.ai-suggest::-webkit-scrollbar { display: none; }
@media (hover: hover) and (pointer: fine) { .ai-suggest { flex-wrap: wrap; overflow: visible; } }
.ai-chip { height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--chip); background: rgba(255, 255, 255, .85); font-size: 13px; font-weight: 600; white-space: nowrap; flex: none; }
.ai-chip:hover { background: #fff; border-color: var(--line); }
.ai-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px 8px; border-top: 1px solid var(--chip); flex: none; }
.ai-input { flex: 1; min-width: 0; height: 44px; max-height: 132px; resize: none; overflow-y: hidden; border-radius: 22px; border: 1px solid rgba(16, 34, 31, .18); background: #fff;
  padding: 11px 16px; font: inherit; font-size: 14px; line-height: 1.45; color: var(--ink); }
.ai-input:focus { border-color: var(--ink); outline: none; }
.ai-send { width: 44px; height: 44px; border-radius: 22px; background: var(--orange); color: var(--orange-ink); display: flex; align-items: center; justify-content: center; flex: none; }
.ai-send:hover { background: var(--orange-hi); }
.ai-send[disabled] { opacity: .5; cursor: progress; }
.ai-note { margin: 0; padding: 0 14px 12px; font-size: 11.5px; line-height: 1.45; color: var(--muted); flex: none; }
.ai-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.ai-card { align-self: stretch; display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 18px; background: rgba(245, 154, 78, .14); }
.ai-card-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.ai-card-title .ms { color: var(--accent); }
.ai-card .input { height: 44px; }
.ai-card-text { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.ai-card.is-sent { background: rgba(43, 163, 111, .14); }
.ai-card.is-sent .ai-card-title .ms { width: 28px; height: 28px; border-radius: 50%; background: var(--green-bar); color: #fff; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.ai-busy { align-self: stretch; display: flex; flex-wrap: wrap; gap: 8px; }
.ai-busy .btn { height: 44px; padding: 0 14px; flex: 1 1 120px; }
@media (max-width: 639px) {
  .ai { left: max(8px, env(safe-area-inset-left, 0px)); right: max(8px, env(safe-area-inset-right, 0px)); width: auto; height: auto;
    top: calc(10px + env(safe-area-inset-top, 0px)); bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
  .ai.is-kb { top: var(--ai-top, 0px); bottom: auto; height: var(--ai-h, 60vh); }
  .ai-panel { border-radius: 24px; }
  .ai-input { font-size: 16px; line-height: 1.35; padding-block: 10px; }
  html.ai-open, html.ai-open body { overflow: hidden; }
}

/* Màn chào (quyết định 179 điểm 5): hiện khi mở website ở thẻ mới và khi tải lại trang, không hiện khi bấm sang trang khác của
 * website. Lớp intro-on đặt ngay trong <head> (trước khi vẽ trang) nên không thấy trang chớp lên rồi mới chào; ic36-site.js
 * chạy tiếp: logo, thanh chạy, rồi vòng tròn mở dần từ góc trên trái. Máy đặt "giảm chuyển động" (intro-calm): logo đứng yên,
 * trang hiện ra bằng cách mờ dần, không có chuyển động. */
.intro { position: absolute; left: 0; right: 0; top: 0; height: min(100vh, 760px); display: none; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: #E9F1EE; pointer-events: none; z-index: 0; transition: opacity .6s ease; }
html.intro-on .intro { display: flex; }
html.intro-on .shell { clip-path: circle(0 at 60px 60px); }
html.intro-reveal .shell { clip-path: circle(4200px at 60px 60px); transition: clip-path 1.25s cubic-bezier(.7, 0, .25, 1); }
html.intro-reveal .intro { opacity: 0; }
.intro-logo { width: 84px; height: 84px; border-radius: 24px; background: #fff; display: flex; align-items: center; justify-content: center; transform: scale(.84); transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.intro-logo img { width: 66px; height: 61px; object-fit: contain; }
html.intro-splash .intro-logo { transform: scale(1); }
.intro-name { font-size: 18px; font-weight: 600; }
.intro-tagline { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--accent-light); margin-top: -8px; }
.intro-bar { width: 160px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.intro-bar i { display: block; height: 100%; width: 0; background: var(--orange); transition: width .95s cubic-bezier(.4, 0, .2, 1); }
html.intro-splash .intro-bar i { width: 100%; }
html.intro-calm.intro-on .shell { clip-path: none; opacity: 0; }
html.intro-calm.intro-on .intro-logo { transform: none; }
html.intro-calm.intro-on .intro-bar i { width: 100%; }
html.intro-calm.intro-reveal .shell { opacity: 1; transition: opacity .5s ease !important; }
html.intro-calm .intro { transition: opacity .5s ease !important; }

/* Chuyển trang tại chỗ (quyết định 187; public/js/ic36-site.js): thanh chạy mảnh trên cùng khi trang mới tải lâu hơn một chút;
 * vùng nội dung nhận tiêu điểm sau khi đổi trang (người dùng bàn phím, trình đọc màn hình) nhưng không vẽ viền. Hiệu ứng mờ dần
 * khi chuyển trang ở dưới chỉ còn dùng khi trang tải lại cả trang (mở từ nơi khác, trình duyệt cũ). */
.main:focus { outline: none; }
.nav-progress { position: fixed; top: 0; left: 0; z-index: 100; height: 3px; width: 0; border-radius: 0 3px 3px 0; background: var(--orange);
  box-shadow: 0 0 10px rgba(245, 154, 78, .7); opacity: 0; pointer-events: none; }
.nav-progress.is-on { opacity: 1; width: 75%; transition: width 3s cubic-bezier(.08, .6, .2, 1), opacity .15s ease; }
.nav-progress.is-done { opacity: 0; width: 100%; transition: width .2s ease, opacity .3s ease .15s; }

/* Hiện dần khi cuộn, chuyển trang mờ dần. */
.js [data-rv].rv-wait { opacity: 0; transform: translateY(18px) scale(.985); }
.js [data-rv].rv-in { opacity: 1; transform: none; transition: opacity .6s ease var(--d, 0s), transform .75s cubic-bezier(.2, .7, .2, 1) var(--d, 0s); }
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .2s ease both ic36-out; }
::view-transition-new(root) { animation: .25s ease both ic36-in; }
@keyframes ic36-out { to { opacity: .2; filter: blur(10px); } }
@keyframes ic36-in { from { opacity: .2; filter: blur(10px); } }
/* Máy đặt "giảm chuyển động" (quyết định 182): bỏ chuyển động lớn, giữ hiệu ứng nhẹ của thiết kế: thẻ vẫn nổi khi di chuột,
 * khối vẫn hiện dần khi cuộn nhưng chỉ bằng độ mờ (không trượt), số vẫn đếm; màn chào là bản mờ dần (intro-calm). */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .lift { transition-duration: .25s !important; }
  .js [data-rv].rv-wait { transform: none; }
  .js [data-rv].rv-in { transition-duration: .6s !important; }
  /* Tham quan (quyết định 195): đổi ảnh chỉ mờ dần, không trượt, không phóng. */
  .tour-slide, .tour-slide.is-out { transform: none !important; transition-property: opacity !important; transition-duration: .45s !important; }
  .tour-cap { transition-duration: .2s !important; }
}
