/* ==========================================================================
   flexo-console.css: what only a back office has.

   EN: The console layer. Panels are .flx-card, tables are .flx-row and
       .flx-cell, status is .flx-status; this sheet adds the shell, the rail,
       the page header, record screens, navigation tiles, charts and the
       controls a console has and the customer product does not. Load order:
         flexo-tokens.css → flexo-components.css → flexo-spectrum.css → flexo-console.css
   VN: Lớp console. Bảng điều khiển là .flx-card, bảng dữ liệu là .flx-row và
       .flx-cell, trạng thái là .flx-status; bảng kiểu này thêm khung, thanh
       điều hướng, đầu trang, màn bản ghi, ô điều hướng, biểu đồ và các ô
       điều khiển mà console có còn sản phẩm khách hàng thì không.

   EN: Rules. References tokens and Spectrum only, never a new hex. Never
       redefines a .flx- class. Flexo is light only.
   VN: Quy tắc. Chỉ tham chiếu token và Spectrum, không bao giờ thêm mã hex
       mới. Không định nghĩa lại lớp .flx-. Flexo chỉ có chế độ sáng.
   ========================================================================== */

:root {
  --cx-ground: var(--n-025);   /* EN: the working plane (Chris, 11 Nov 2026). VN: mặt làm việc (Chris, 11/11/2026). */
  --cx-rail-w: 64px;
  --cx-rail-w-open: 300px;

  /* EN: The Spectrum registry of §2.5, as roles. VN: Sổ đăng ký Spectrum của §2.5, dưới dạng vai trò. */
  --cx-ch-email-050: var(--fx-blue-050);   --cx-ch-email-500: var(--fx-blue-500);   --cx-ch-email-800: var(--fx-blue-800);
  --cx-ch-push-050:  var(--fx-violet-050); --cx-ch-push-500:  var(--fx-violet-500); --cx-ch-push-800:  var(--fx-violet-800);
  --cx-ch-sms-050:   var(--fx-orange-050); --cx-ch-sms-500:   var(--fx-orange-500); --cx-ch-sms-800:   var(--fx-orange-800);
  --cx-ch-wa-050:    var(--fx-green-050);  --cx-ch-wa-500:    var(--fx-green-500);  --cx-ch-wa-800:    var(--fx-green-800);
  --cx-lane-otp:           var(--fx-magenta-500);
  --cx-lane-transactional: var(--fx-cyan-500);
  --cx-lane-service:       var(--fx-teal-500);
  --cx-lane-marketing:     var(--fx-lime-500);
}

/* ---------- C01 · Shell ---------- */
/* EN: A back office is never seen on a phone (Chris, 17 Nov 2026). It is drawn for 1024px and wider; in a narrower
       window the page scrolls sideways and nothing changes shape, so no rule below 1024px exists in this sheet.
   VN: Back office không bao giờ được xem trên điện thoại (Chris, 17/11/2026). Nó được vẽ cho bề rộng từ 1024px trở
       lên; trong cửa sổ hẹp hơn, trang cuộn ngang và không gì đổi hình dạng, nên bảng kiểu này không có quy tắc nào
       dưới 1024px. */
.cx-shell  { min-width: 1024px; min-height: 100vh; background: var(--cx-ground); color: var(--ink); display: flex; flex-direction: column; }
.cx-body   { flex: 1; display: flex; align-items: stretch; min-height: 0; }
.cx-body--bare > .cx-rail-spacer, .cx-body--bare > .cx-rail { display: none; }   /* EN: a page outside the console has no master menu (C01). VN: trang nằm ngoài console không có menu chính (C01). */
.cx-column { flex: 1; min-width: 0; padding: 20px; display: flex; flex-direction: column; gap: 20px; }
.cx-grid   { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.cx-grid > .cx-wide { grid-column: 1 / -1; }
.cx-cols   { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: start; }   /* EN: a record page: two thirds and one third. VN: trang bản ghi: hai phần ba và một phần ba. */
/* EN: C08 · A pair: the same two thirds and one third, both cards stretched to one height (a search beside its count).
   VN: C08 · Một cặp: cùng hai phần ba và một phần ba, hai thẻ kéo cao bằng nhau (ô tìm kiếm cạnh con số đếm). */
.cx-pair   { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.cx-stack  { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.cx-stack--tight { gap: 8px; }
.cx-halves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }   /* EN: two charts side by side. VN: hai biểu đồ cạnh nhau. */
.cx-thirds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }                       /* EN: three cards to a row. VN: ba thẻ một hàng. */
.cx-quarters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }                     /* EN: four small cards to a row. VN: bốn thẻ nhỏ một hàng. */
@media (max-width: 1280px) { .cx-quarters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cx-inline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }   /* EN: a few small things on one line. VN: vài thứ nhỏ trên một dòng. */
.cx-inline--tight { gap: 8px; }
.cx-measure { max-width: 520px; }                 /* EN: a block that should not run the full width. VN: khối không nên chạy hết chiều ngang. */
.cx-measure--narrow { max-width: 420px; }
.cx-measure--wide { max-width: 720px; }
.cx-pad { padding: 16px; }                      /* EN: prose or a control sitting directly in a card. VN: văn bản hoặc ô điều khiển nằm trực tiếp trong thẻ. */
.cx-pad--lg { padding: 20px; }
.cx-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }   /* EN: a line of buttons under a form. VN: một dòng nút dưới biểu mẫu. */
.cx-row-actions--split { justify-content: space-between; }
/* EN: The black mark cell and the rail are ONE unbroken strip. The header's
       rule is drawn after the cell, never as a border across it.
   VN: Ô logo đen và thanh điều hướng là MỘT dải liền. Vạch của thanh đầu được
       vẽ sau ô đó, không bao giờ là viền cắt ngang nó. */
.cx-header { position: sticky; top: 0; z-index: 40; height: 57px; display: flex; align-items: stretch; background: var(--card); }
.cx-header::after { content: ""; position: absolute; left: var(--cx-rail-w); right: 0; bottom: 0; height: 1px; background: var(--rule); pointer-events: none; }
.cx-mark { width: var(--cx-rail-w); flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--n-900); color: var(--n-000); }
.cx-mark svg { width: 18px; height: 18px; }
.cx-header__name { flex: 1 1 auto; min-width: 0; overflow: hidden; display: flex; align-items: center; gap: 14px; padding: 0 20px; }
.cx-header__title { font-family: var(--font-display); font-size: 16px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; }
.cx-header__hair { width: 1px; height: 14px; background: var(--border); flex-shrink: 0; }
.cx-header__client { display: block; height: 20px; width: auto; flex-shrink: 0; }   /* EN: a client's console names the client, in its own logo (C01). VN: console của khách hàng ghi tên khách hàng bằng chính logo của họ (C01). */
.cx-header__sub { font-family: var(--font-mono); font-size: 10px; line-height: 1; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-header__cell { flex-shrink: 0; display: flex; align-items: center; border-left: 1px solid var(--rule); }
.cx-header__cell--text { padding: 0 16px; }
.cx-clock { font-family: var(--font-mono); font-size: 10px; line-height: 1; letter-spacing: 0.14em; text-transform: uppercase; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
/* EN: THE ACCOUNT MENU OPENS ON HOVER (Chris, 17 Nov 2026: "on mouse over, you open it, and on mouse out, you close
       it... the click is really troublesome... fix that once and for all"). The panel is always in the markup, as
       the child of the account cell, and the sheet alone shows it: while the pointer is on the cell or on the
       panel, or while the keyboard's focus is inside either. No screen writes a click handler or keeps an open
       state for it, so it cannot be built as a click again. .is-closed is set by the behaviour script on Escape
       and lifted when the pointer leaves.
   VN: MENU TÀI KHOẢN MỞ KHI RÊ CHUỘT (Chris, 17/11/2026: "rê chuột vào thì mở, rê chuột ra thì đóng... bấm chuột thật
       phiền... sửa một lần cho xong"). Bảng luôn có trong mã đánh dấu, là phần tử con của ô tài khoản, và chỉ riêng
       bảng kiểu hiển thị nó: khi con trỏ ở trên ô hoặc trên bảng, hoặc khi tiêu điểm bàn phím nằm trong một trong
       hai. Không màn hình nào viết trình xử lý bấm chuột hay giữ trạng thái mở cho nó, nên không thể dựng lại thành
       kiểu bấm chuột. .is-closed do kịch bản hành vi đặt khi nhấn Escape và gỡ khi con trỏ rời đi. */
.cx-account { position: relative; }
.cx-account > .cx-account__pop { visibility: hidden; }
.cx-account:hover > .cx-account__pop, .cx-account:focus-within > .cx-account__pop { visibility: visible; }
.cx-account.is-closed > .cx-account__pop { visibility: hidden; }
.cx-account__btn { align-self: stretch; display: flex; align-items: center; gap: 11px; padding: 0 20px; border: none; background: transparent; color: inherit; font: inherit; line-height: 1; text-align: left; cursor: pointer; transition: background var(--t-feedback) var(--ease), color var(--t-feedback) var(--ease); }
.cx-account:hover > .cx-account__btn, .cx-account:focus-within > .cx-account__btn { background: var(--tint); color: var(--tint-ink); }   /* EN: the cell stays tinted while its panel is open, pointer on the panel included. VN: ô giữ sắc phủ khi bảng của nó đang mở, kể cả khi con trỏ ở trên bảng. */
.cx-account.is-closed > .cx-account__btn { background: transparent; color: inherit; }
.cx-account__who { display: flex; flex-direction: column; gap: 4px; }
.cx-account__name { font-size: 12px; line-height: 1; white-space: nowrap; }
.cx-account__role { font-family: var(--font-mono); font-size: 9px; line-height: 1; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); white-space: nowrap; }
.cx-account__pop { position: absolute; top: 100%; right: 0; width: 380px; z-index: var(--flx-z-header-pop); }
@media (max-width: 1180px) { .cx-header__extra { display: none; } }

/* ---------- C02 · The console rail: black, 64 → 300, every row a 44 × 44 square ---------- */
.cx-rail-spacer { width: var(--cx-rail-w); flex-shrink: 0; background: var(--n-900); }
/* EN: No border on the rail: inside 64px a border would leave the rows 43px wide.
   VN: Thanh không có viền: trong 64px, viền sẽ làm các hàng chỉ còn rộng 43px. */
.cx-rail { position: fixed; left: 0; top: 57px; bottom: 0; z-index: 30; width: var(--cx-rail-w); display: flex; flex-direction: column; gap: 2px;
  padding: 12px 10px; background: var(--n-900); overflow: hidden auto; scrollbar-width: none;
  transition: width var(--t-feedback) var(--ease), box-shadow var(--t-feedback) var(--ease); }
.cx-rail::-webkit-scrollbar { display: none; }
/* EN: Below the 1024px floor the page scrolls sideways; the behaviour script hands the sheet that scroll so the fixed
       menu moves with the page instead of covering it (§4.3). At every width above the floor it is 0.
   VN: Dưới mức sàn 1024px trang cuộn ngang; script hành vi chuyển độ cuộn đó cho bảng kiểu để menu cố định dịch theo
       trang thay vì che nó (§4.3). Ở mọi bề rộng trên mức sàn, giá trị này bằng 0. */
.cx-shell .cx-rail { translate: calc(-1 * var(--cx-scroll-x, 0px)) 0; }
.cx-rail:hover, .cx-rail:focus-within { width: var(--cx-rail-w-open); box-shadow: inset -1px 0 0 var(--n-800); }
.cx-rail__row { display: flex; align-items: center; gap: 6px; width: 100%; height: 44px; flex-shrink: 0; padding: 0; border: none; border-radius: 2px;
  background: transparent; color: var(--n-025); cursor: pointer; text-align: left; text-decoration: none; font: inherit;
  transition: background var(--t-feedback) var(--ease), color var(--t-feedback) var(--ease); }
.cx-rail__icon { position: relative; width: 44px; height: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--n-400);
  transition: color var(--t-feedback) var(--ease); }
.cx-rail__icon svg { width: 20px; height: 20px; stroke-width: 1.25; }
.cx-rail__badge { position: absolute; top: 4px; left: 24px; display: flex; }   /* EN: on the glyph's upper trailing corner, read with the rail closed. VN: ở góc trên phía cuối của glyph, đọc được khi thanh đóng. */
.cx-rail__text { display: flex; flex-direction: column; gap: 4px; white-space: nowrap; min-width: 0; opacity: 0; transition: opacity var(--t-feedback) var(--ease); }
.cx-rail:hover .cx-rail__text, .cx-rail:focus-within .cx-rail__text { opacity: 1; }
/* EN: C02 · The release (3.7.0): version, build and build moment, the open menu's last lines, hidden while it is closed.
   VN: C02 · Bản phát hành (3.7.0): phiên bản, số bản dựng và thời điểm dựng, những dòng cuối của menu khi mở, ẩn khi đóng. */
.cx-rail__build { margin-top: auto; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 0 4px; white-space: nowrap; font-family: var(--font-mono); font-size: var(--t-mono-label); line-height: var(--lh-ui); color: var(--n-600); opacity: 0; transition: opacity var(--t-feedback) var(--ease); }
.cx-rail:hover .cx-rail__build, .cx-rail:focus-within .cx-rail__build { opacity: 1; }
.cx-rail__name { font-family: var(--font-body); font-size: var(--t-body-s); font-weight: 500; line-height: var(--lh-ui); }
.cx-rail__desc { font-family: var(--font-body); font-size: var(--t-body-xs); line-height: var(--lh-ui); color: var(--n-400); }
.cx-rail__row:hover, .cx-rail__row[aria-current="page"] { background: var(--tint); color: var(--tint-ink); }   /* EN: a master menu row answers as a button, with the tint alone and never the brand bar (Chris, 19 Nov 2026). VN: hàng của menu chính phản hồi như một nút, chỉ với sắc phủ và không bao giờ có vạch thương hiệu (Chris, 19/11/2026). */
.cx-rail__row:hover .cx-rail__icon, .cx-rail__row[aria-current="page"] .cx-rail__icon { color: var(--tint-ink); }
.cx-rail__row:hover .cx-rail__desc, .cx-rail__row[aria-current="page"] .cx-rail__desc { color: var(--n-600); }
.cx-rail__divider { display: block; flex-shrink: 0; height: 1px; background: var(--n-700); margin: 8px 0; }

/* ---------- C03 · Page header, C42 · breadcrumb and back button ---------- */
.cx-ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 4px 0; }
.cx-ph__block { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cx-ph__eyebrow { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10px; line-height: 1; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }
.cx-ph__eyebrow a { color: inherit; }
.cx-ph__eyebrow a:hover { color: var(--ink); }
.cx-back { width: 28px; height: 28px; flex: 0 0 28px; margin-right: 8px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--border); color: var(--ink); text-decoration: none; transition: border-color var(--t-feedback) var(--ease); }
.cx-back svg { width: 16px; height: 16px; stroke-width: 1.6; transform: rotate(-135deg); }   /* EN: the one Flexo arrow, turned to point left. VN: mũi tên duy nhất của Flexo, xoay để chỉ sang trái. */
.cx-back:hover, .cx-back:focus-visible { border-color: var(--brand); color: var(--ink); outline: none; }
.cx-ph__title { font-family: var(--font-display); font-size: 34px; font-weight: 300; letter-spacing: -0.03em; line-height: 1.08; margin: 0; }
.cx-ph__headline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cx-ph__sep { display: inline-block; width: 8px; height: 8px; margin: 0 14px; background: var(--n-400); vertical-align: middle; }   /* EN: the square between a record's name and its code. VN: ô vuông giữa tên bản ghi và mã của nó. */
.cx-ph__code { color: var(--ink-mid); }
.cx-ph__meta { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; line-height: 1; color: var(--ink-soft); }
.cx-ph__meta::before { content: ""; width: 6px; height: 6px; background: var(--signal); }
.cx-ph__meta--facts::before { content: none; }   /* EN: facts, not freshness: no square (C03). VN: dữ kiện, không phải độ mới: không có ô vuông (C03). */
.cx-ph__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---------- C04 · Segmented control ---------- */
.cx-seg { display: inline-flex; border: 1px solid var(--border); border-radius: 2px; overflow: hidden; background: var(--card); }
.cx-seg__opt { font-family: var(--font-mono); font-size: 11px; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; padding: 9px 16px; border: none; background: var(--card); color: var(--ink-soft); cursor: pointer; transition: background var(--t-feedback) var(--ease), color var(--t-feedback) var(--ease); }
.cx-seg__opt + .cx-seg__opt { border-left: 1px solid var(--border); }
.cx-seg__opt:hover { background: var(--tint); color: var(--tint-ink); }
.cx-seg__opt.is-on, .cx-seg__opt[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
/* EN: The older joined group; kept as an alias of C04. VN: Nhóm ghép cũ; giữ làm bí danh của C04. */
.cx-switch { display: inline-flex; border: 1px solid var(--border); background: var(--card); }
.cx-switch > button { font-family: var(--font-mono); font-size: var(--t-mono-label); line-height: var(--lh-ui); letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 9px; border: 0; background: transparent; color: var(--ink); cursor: pointer; transition: background var(--t-feedback) var(--ease), color var(--t-feedback) var(--ease); }
.cx-switch > button + button { border-left: 1px solid var(--border); }
.cx-switch > button:hover { background: var(--tint); color: var(--tint-ink); }
.cx-switch > button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }

/* ---------- C05 · Alert band ---------- */
.cx-alert          { background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.cx-alert__main    { display: flex; align-items: stretch; min-height: 88px; }
/* EN: The glyph cell runs the band's full height, so its rule always meets the band's bottom edge, however many lines the
       text takes (Chris, 26 Nov 2026: "the right border doesn't touch the bottom border").
   VN: Ô biểu tượng cao trọn chiều cao của dải, để đường kẻ của nó luôn chạm mép dưới của dải, dù chữ chiếm bao nhiêu dòng
       (Chris, 26/11/2026: "viền phải không chạm viền dưới"). */
.cx-alert__cell    { width: 88px; min-height: 88px; align-self: stretch; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--card); border-right: 1px solid var(--rule); }
.cx-alert__cell svg { width: 24px; height: 24px; stroke-width: 1.25; fill: none; stroke-linecap: square; }
.cx-alert__cell[data-state="credit"]  svg { stroke: var(--credit); }
.cx-alert__cell[data-state="debit"]   svg { stroke: var(--debit); }
.cx-alert__cell[data-state="pending"] svg { stroke: var(--pending); }
.cx-alert__text    { flex: 1; min-width: 0; padding: 20px 24px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.cx-alert__line    { font-family: var(--font-display); font-size: var(--t-title-l); font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; }   /* EN: a sentence, which may wrap: never line-height 1. VN: một câu, có thể xuống dòng: không bao giờ dùng line-height 1. */
.cx-alert__detail  { font-size: var(--t-body-s); line-height: 1.45; color: var(--ink-soft); }
.cx-alert__actions { display: flex; align-items: center; gap: 8px; padding: 0 20px; }
.cx-vitals         { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 1px solid var(--hairline); background: var(--field); }
.cx-vitals > *     { padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.cx-vitals > * + * { border-left: 1px solid var(--hairline); }
/* EN: C05 · Caution (3.7.0, Chris 26 Nov 2026: "a light shade of the amber color… Its border should be fully amber"). The
       wash runs through the whole band, glyph cell and vitals included. A caution is a warning: it carries no action.
   VN: C05 · Cảnh báo (3.7.0, Chris 26/11/2026: "một sắc nhạt của màu hổ phách… Viền phải hoàn toàn màu hổ phách"). Lớp
       màu phủ suốt dải, cả ô biểu tượng lẫn dải chỉ số. Cảnh báo chỉ là lời báo: nó không mang nút hành động nào. */
.cx-alert--caution { background: var(--pending-wash); border-color: var(--pending); }
.cx-alert--caution .cx-alert__cell, .cx-alert--caution .cx-vitals { background: transparent; }
/* EN: Its inner lines are amber like its border (Chris, 26 Nov 2026: "The lines are white on the amber. They are not very
       visible"): the glyph cell's rule, the vitals' top rule and the rules between them.
   VN: Các đường bên trong màu hổ phách như viền (Chris, 26/11/2026: "Các đường màu trắng trên nền hổ phách, không thấy
       rõ"): đường của ô biểu tượng, đường trên của dải chỉ số và các đường giữa chúng. */
.cx-alert--caution .cx-alert__cell { border-right-color: var(--pending); }
.cx-alert--caution .cx-vitals { border-top-color: var(--pending); }
.cx-alert--caution .cx-vitals > * + * { border-left-color: var(--pending); }

/* ---------- C07 · No block carries a coloured line on its top edge (Chris, 19 Nov 2026) ----------
   EN: A card's top edge is its 1px border, the same as every other edge. VN: Cạnh trên của thẻ là viền 1px, giống mọi cạnh khác. */
/* EN: A panel reporting a status colours its glyph's stroke only. VN: Bảng báo trạng thái chỉ tô màu nét của glyph. */
.flx-card-header__cell[data-state="credit"]  svg { stroke: var(--credit); }
.flx-card-header__cell[data-state="debit"]   svg { stroke: var(--debit); }
.flx-card-header__cell[data-state="pending"] svg { stroke: var(--pending); }

/* ---------- C08 · Hero, C09 · stat card, C72 · stat strip ---------- */
.cx-hero { font-family: var(--font-display); font-size: 64px; font-weight: 300; letter-spacing: -0.05em; line-height: 1.08; font-variant-numeric: tabular-nums; }
.cx-herofig { padding: 20px 20px 16px; white-space: nowrap; }
.cx-herofig__row { display: flex; align-items: center; gap: 16px; }
.cx-herofig__caption { display: block; margin-top: 8px; font-family: var(--font-mono); font-size: 10px; line-height: 1; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.cx-stat { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.cx-stat__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cx-stat__value { font-family: var(--font-display); font-size: 32px; font-weight: 300; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.cx-delta { font-family: var(--font-mono); font-size: 10px; line-height: 1; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 9px; border: 1px solid var(--rule); color: var(--ink-soft); white-space: nowrap; }
/* EN: The stat strip: figures with their sub-figures across a card's width.
       Every cell carries a right and a bottom rule, and the grid is pulled 1px
       past the card's right and bottom edges so the outer rules fall on the
       card's own border: one line everywhere.
   VN: Dải số liệu: các con số kèm số phụ trải ngang thẻ. Mỗi ô có vạch phải
       và vạch dưới, và lưới được kéo 1px vượt mép phải và mép dưới của thẻ để
       các vạch ngoài trùng viền thẻ: mọi nơi chỉ một đường. */
.cx-statstrip { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); border-top: 1px solid var(--rule); margin: 0 -1px -1px 0; }
.cx-statcell { display: flex; flex-direction: column; gap: 8px; padding: 16px 24px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); min-width: 0; }
.cx-statcell__label { font-family: var(--font-mono); font-size: 10px; line-height: 1; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }
.cx-statcell__meta { font-family: var(--font-mono); font-size: 11px; line-height: 1; color: var(--ink-soft); }

/* EN: The older figure family; kept so existing markup resolves. New markup uses .flx-figure.
   VN: Họ con số cũ; giữ để mã hiện có vẫn chạy. Mã mới dùng .flx-figure. */
.cx-fig          { font-family: var(--font-display); font-weight: 300; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; line-height: 1; color: var(--ink); }
.cx-fig--hero    { font-size: var(--t-figure-xl); line-height: 0.9; }
.cx-fig--display { font-size: var(--t-figure-display); line-height: 0.9; }
.cx-fig--inline  { font-size: var(--t-figure-inline); }
.cx-fig__dec     { font-size: 0.58em; }
.cx-fig__pt      { font-size: 0.58em; color: var(--ink-mid); }
.cx-fig__unit    { font-family: var(--font-mono); font-size: 0.42em; letter-spacing: 0.14em; color: var(--ink-faint); margin-left: 0.14em; }
.cx-fig__sec     { font-size: 0.58em; color: var(--ink-faint); }
.cx-fig--credit  { color: var(--credit); }
.cx-fig--debit   { color: var(--debit); }

/* ---------- C10 · Sparkline, C11 · share bar, C17 · share rows and meter ---------- */
.cx-spark { display: block; width: 100%; height: 40px; overflow: visible; }
.cx-spark__line { fill: none; stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.cx-spark__area { fill: var(--track); stroke: none; }
.cx-share, .cx-bar { display: flex; gap: 1px; height: 6px; background: var(--track); }
.cx-share > span, .cx-bar > span { display: block; height: 100%; flex: 0 0 var(--share, auto); background: var(--series, currentColor); transition: flex-basis var(--t-feedback) var(--ease), width var(--t-feedback) var(--ease); }
.cx-share > span.is-rest, .cx-bar > span.is-rest { flex: 1 1 0; }   /* EN: the last segment takes what is left, so rounding never leaves a gap. VN: đoạn cuối lấy phần còn lại, để làm tròn không bao giờ để hở. */
.cx-bar > .cx-bar__secondary { color: var(--ink-mid); }
.cx-bar--unknown { background: none; border: 1px dashed var(--border); }
.cx-meter { display: flex; gap: 2px; }
.cx-meter > span { flex: 1; height: 6px; background: var(--track); }
.cx-meter > span.is-on { background: var(--ink); }
.cx-sharerow { display: grid; grid-template-columns: minmax(0, 1fr) auto 48px; align-items: center; gap: 6px 12px; padding: 12px 16px; border-bottom: 1px solid var(--hairline); }
.cx-sharerow__name { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 1; }
.cx-sharerow__count { font-family: var(--font-mono); font-size: 13px; line-height: 1; font-variant-numeric: tabular-nums; }
.cx-sharerow__pct { font-family: var(--font-mono); font-size: 11px; line-height: 1; color: var(--ink-soft); text-align: right; }
.cx-sharerow__bar { grid-column: 1 / -1; height: 6px; background: var(--track); }
.cx-sharerow__bar > span { display: block; height: 100%; width: var(--share, 0%); background: var(--series, currentColor); }

/* ---------- C25 · Spectrum chip: a type is the status block without its border (§2.5) ----------
   EN: Every number is the status block's (C24): mono 9 / 500 / 0.14em, line height 1, a 6px square 6px before the
       word. The status block pads 5px 8px inside a 1px border; the chip has no border and pads 6px 9px, so both
       outer boxes are 21px tall and equally wide for the same word (Chris, 19 Nov 2026).
   VN: Mọi con số đều là của khối trạng thái (C24): mono 9 / 500 / 0.14em, chiều cao dòng 1, ô vuông 6px cách chữ
       6px. Khối trạng thái đệm 5px 8px bên trong viền 1px; chip không có viền và đệm 6px 9px, nên hai hộp ngoài đều
       cao 21px và rộng bằng nhau với cùng một chữ (Chris, 19/11/2026). */
.cx-ch             { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; font-family: var(--font-mono);
                     font-size: 9px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
                     line-height: 1; white-space: nowrap; background: var(--ch-050, var(--n-050)); color: var(--ch-800, var(--ink)); }
.cx-ch::before     { content: ""; width: 6px; height: 6px; flex-shrink: 0; background: var(--ch-500, var(--ink)); }
/* EN: One modifier per hue sets the three tones; a console maps its own names onto them.
   VN: Mỗi màu một biến thể đặt ba tông; console ánh xạ tên riêng của mình lên chúng. */
.cx-ch--rose    { --ch-050: var(--fx-rose-050);    --ch-500: var(--fx-rose-500);    --ch-800: var(--fx-rose-800); }
.cx-ch--orange  { --ch-050: var(--fx-orange-050);  --ch-500: var(--fx-orange-500);  --ch-800: var(--fx-orange-800); }
.cx-ch--amber   { --ch-050: var(--fx-amber-050);   --ch-500: var(--fx-amber-500);   --ch-800: var(--fx-amber-800); }
.cx-ch--lemon   { --ch-050: var(--fx-lemon-050);   --ch-500: var(--fx-lemon-500);   --ch-800: var(--fx-lemon-800); }
.cx-ch--lime    { --ch-050: var(--fx-lime-050);    --ch-500: var(--fx-lime-500);    --ch-800: var(--fx-lime-800); }
.cx-ch--green   { --ch-050: var(--fx-green-050);   --ch-500: var(--fx-green-500);   --ch-800: var(--fx-green-800); }
.cx-ch--teal    { --ch-050: var(--fx-teal-050);    --ch-500: var(--fx-teal-500);    --ch-800: var(--fx-teal-800); }
.cx-ch--cyan    { --ch-050: var(--fx-cyan-050);    --ch-500: var(--fx-cyan-500);    --ch-800: var(--fx-cyan-800); }
.cx-ch--blue    { --ch-050: var(--fx-blue-050);    --ch-500: var(--fx-blue-500);    --ch-800: var(--fx-blue-800); }
.cx-ch--indigo  { --ch-050: var(--fx-indigo-050);  --ch-500: var(--fx-indigo-500);  --ch-800: var(--fx-indigo-800); }
.cx-ch--violet  { --ch-050: var(--fx-violet-050);  --ch-500: var(--fx-violet-500);  --ch-800: var(--fx-violet-800); }
.cx-ch--magenta { --ch-050: var(--fx-magenta-050); --ch-500: var(--fx-magenta-500); --ch-800: var(--fx-magenta-800); }
.cx-ch--email    { --ch-050: var(--cx-ch-email-050); --ch-500: var(--cx-ch-email-500); --ch-800: var(--cx-ch-email-800); }
.cx-ch--push     { --ch-050: var(--cx-ch-push-050);  --ch-500: var(--cx-ch-push-500);  --ch-800: var(--cx-ch-push-800); }
.cx-ch--sms      { --ch-050: var(--cx-ch-sms-050);   --ch-500: var(--cx-ch-sms-500);   --ch-800: var(--cx-ch-sms-800); }
.cx-ch--whatsapp { --ch-050: var(--cx-ch-wa-050);    --ch-500: var(--cx-ch-wa-500);    --ch-800: var(--cx-ch-wa-800); }
.cx-ch--off        { opacity: 0.45; }   /* EN: a chip is a mark, so a dormant one dims as a glyph does. VN: chip là dấu hiệu, nên chip ngủ thì mờ đi như glyph. */
.cx-sq             { display: inline-block; width: 6px; height: 6px; flex-shrink: 0; margin-right: 12px; background: var(--series, currentColor); }
.cx-sq--flush      { margin-right: 0; }
.cx-sq--otp           { background: var(--cx-lane-otp); }
.cx-sq--transactional { background: var(--cx-lane-transactional); }
.cx-sq--service       { background: var(--cx-lane-service); }
.cx-sq--marketing     { background: var(--cx-lane-marketing); }
.flx-row[data-off] > * { opacity: 0.45; }

/* ---------- Data enters through custom properties; looks stay in the sheets ----------
   EN: A page built on the system writes no style of its own. Where a number from the data must become
       geometry, it is passed as one of these properties and a class here turns it into a size or a place:
         --share   a part of a whole, as a percentage          (.cx-share segments, .cx-sharerow bars)
         --h       a bar's height, as a percentage of the plot  (.cx-vbar)
         --at      a position along an axis, as a percentage    (gridlines, ticks, references, cursors)
         --x, --y  a tooltip's place, in pixels                 (.cx-tip)
         --w, --h  a skeleton block's size                      (.flx-skeleton)
       A series colour is a class, never a property typed in the page: .cx-series-NN for the chart palette,
       .cx-hue-NAME for a Spectrum identity, .cx-tone-NAME for a status or ink.
   VN: Trang dựng trên hệ thống không tự viết kiểu nào. Khi một con số từ dữ liệu phải thành hình học, nó được
       truyền qua một trong các thuộc tính này và một lớp ở đây biến nó thành kích thước hay vị trí. Màu của chuỗi
       là một lớp, không bao giờ là thuộc tính gõ trong trang: .cx-series-NN cho bảng màu biểu đồ, .cx-hue-TÊN
       cho danh tính Spectrum, .cx-tone-TÊN cho trạng thái hoặc màu mực. */
.cx-series-01 { --series: var(--chart-01); }
.cx-series-02 { --series: var(--chart-02); }
.cx-series-03 { --series: var(--chart-03); }
.cx-series-04 { --series: var(--chart-04); }
.cx-series-05 { --series: var(--chart-05); }
.cx-series-06 { --series: var(--chart-06); }
.cx-series-07 { --series: var(--chart-07); }
.cx-series-08 { --series: var(--chart-08); }
.cx-series-09 { --series: var(--chart-09); }
.cx-series-10 { --series: var(--chart-10); }
.cx-series-11 { --series: var(--chart-11); }
.cx-series-12 { --series: var(--chart-12); }
.cx-hue-rose { --series: var(--fx-rose-500); }
.cx-hue-orange { --series: var(--fx-orange-500); }
.cx-hue-amber { --series: var(--fx-amber-500); }
.cx-hue-lemon { --series: var(--fx-lemon-500); }
.cx-hue-lime { --series: var(--fx-lime-500); }
.cx-hue-green { --series: var(--fx-green-500); }
.cx-hue-teal { --series: var(--fx-teal-500); }
.cx-hue-cyan { --series: var(--fx-cyan-500); }
.cx-hue-blue { --series: var(--fx-blue-500); }
.cx-hue-indigo { --series: var(--fx-indigo-500); }
.cx-hue-violet { --series: var(--fx-violet-500); }
.cx-hue-magenta { --series: var(--fx-magenta-500); }
.cx-tone-credit  { --series: var(--credit); }
.cx-tone-debit   { --series: var(--debit); }
.cx-tone-pending { --series: var(--pending); }
.cx-tone-ink     { --series: var(--ink); }
.cx-tone-ghost   { --series: var(--ink-ghost); }

/* ---------- C12 to C18 · Charts ---------- */
.cx-plot { position: relative; height: 260px; margin: 24px 24px 0 66px; border-bottom: 1px solid var(--border); transition: height var(--t-feedback) var(--ease); }
.cx-plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.cx-plot__grid { position: absolute; left: 0; right: 0; top: var(--at, 0%); border-top: 1px solid var(--hairline); }
.cx-plot__tick, .cx-axis { font-family: var(--font-mono); font-size: 9px; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.cx-plot__tick { position: absolute; left: -66px; top: var(--at, 0%); width: 54px; text-align: right; transform: translateY(-50%); }
.cx-plot__tick--ref { left: auto; right: 0; width: auto; transform: translateY(-140%); }   /* EN: a reference line's label, at its right end. VN: nhãn của đường tham chiếu, ở đầu bên phải. */
.cx-axis { display: flex; justify-content: space-between; margin: 8px 24px 16px 66px; }
.cx-axis--cols { justify-content: space-around; }   /* EN: one label under each column of a bar chart. VN: mỗi cột của biểu đồ cột một nhãn bên dưới. */
.cx-plot__series { fill: none; stroke: var(--series, var(--ink)); stroke-width: 1.8; stroke-linecap: square; stroke-linejoin: miter; vector-effect: non-scaling-stroke; }
.cx-plot__area { fill: var(--track); stroke: none; }
.cx-plot__ref { position: absolute; left: 0; right: 0; top: var(--at, 0%); border-top: 1px dashed var(--ink); pointer-events: none; }
.cx-plot__cursor { position: absolute; top: 0; bottom: 0; left: var(--at, 0%); width: 1px; background: var(--ink); pointer-events: none; }
.cx-plot__marker { position: absolute; left: var(--at, 0%); top: var(--y, 0%); width: 6px; height: 6px; transform: translate(-50%, -50%); pointer-events: none; background: var(--series, var(--ink)); }
/* EN: The chart tooltip. ONE black panel for every chart that shows data when the pointer moves over it. It rides
       12px off the pointer, right and below, and steps to the other side (.is-left, .is-up) where it would leave
       its card or the window. The behaviour script builds it from the plot's own data table; a page never writes one.
   VN: Chú giải biểu đồ. MỘT bảng đen cho mọi biểu đồ hiện dữ liệu khi con trỏ di chuyển trên nó. Nó cách con trỏ
       12px, về bên phải và phía dưới, và chuyển sang phía còn lại (.is-left, .is-up) khi sắp vượt khỏi thẻ hoặc
       cửa sổ. Kịch bản hành vi dựng nó từ chính bảng dữ liệu của ô đồ thị; trang không bao giờ tự viết. */
.cx-tip { position: absolute; left: var(--x, 0); top: var(--y, 0); z-index: 3; pointer-events: none; transform: translate(var(--tx, 12px), var(--ty, 12px)); display: flex; flex-direction: column; gap: 6px; width: max-content; max-width: 280px; padding: 10px 12px; background: #141414; color: #ffffff; text-align: left; }
.cx-tip.is-left { --tx: calc(-100% - 12px); }
.cx-tip.is-up { --ty: calc(-100% - 12px); }
.cx-tip__title { font-size: 13px; font-weight: 500; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-tip__row { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10px; line-height: 1; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.cx-tip__row::before { content: ''; width: 6px; height: 6px; flex: 0 0 auto; background: var(--series, #ffffff); }
.cx-tip__row > span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }   /* EN: the row's own ::before is its square; the name takes the room; the value sits at the end. VN: ::before của hàng là ô vuông của nó; tên chiếm phần trống; giá trị nằm ở cuối. */
.cx-tip__value { font-variant-numeric: tabular-nums; }
.cx-tip__row--bare::before, .cx-tip__total::before { display: none; }   /* EN: a row that names no series, and a total, have no square. VN: hàng không nêu chuỗi nào, và hàng tổng, không có ô vuông. */
.cx-tip__total { padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, 0.16); }
/* EN: On the black panel an ink series would vanish, so the two ink tones are restated for it.
   VN: Trên bảng đen, chuỗi màu mực sẽ biến mất, nên hai tông mực được khai báo lại cho nó. */
.cx-tip .cx-tone-ink { --series: #ffffff; }
.cx-tip .cx-tone-ghost { --series: rgba(255, 255, 255, 0.4); }
.cx-tip__head { font-family: var(--font-mono); font-size: 9px; line-height: 1; letter-spacing: 0.14em; text-transform: uppercase; color: var(--n-400); }   /* EN: the 2.x first line; .cx-tip__title replaces it. VN: dòng đầu của bản 2.x; .cx-tip__title thay thế nó. */
/* EN: A band-lines trace is marked by a ring, not a square: radius 3 to the middle of a 1.5px stroke.
   VN: Đường của biểu đồ có dải được đánh dấu bằng vòng tròn, không phải ô vuông: bán kính 3 tới giữa nét 1,5px. */
.cx-plot__marker--ring { width: 7.5px; height: 7.5px; box-sizing: border-box; border: 1.5px solid var(--series, var(--ink)); border-radius: 50%; background: var(--card); }
/* EN: A chart's numbers live in a table inside its plot. It is read by assistive technology and by the behaviour
       script, and never drawn: one pixel, clipped, out of the flow, so it adds no height and no scroll.
   VN: Số liệu của biểu đồ nằm trong một bảng bên trong ô đồ thị. Công nghệ hỗ trợ và kịch bản hành vi đọc nó, và
       nó không bao giờ được vẽ: một điểm ảnh, bị cắt, nằm ngoài luồng, nên không thêm chiều cao hay thanh cuộn. */
.cx-chart__data { position: absolute; left: 0; top: 0; display: block; width: 1px; height: 1px; margin: 0; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; pointer-events: none; }
/* EN: A finger dragged sideways over a chart scrubs it; dragged up or down it still scrolls the page.
   VN: Ngón tay kéo ngang trên biểu đồ để dò dữ liệu; kéo lên xuống thì vẫn cuộn trang. */
[data-chart] { touch-action: pan-y; }
.cx-cols-chart { position: relative; height: 220px; margin: 24px 24px 0 66px; display: flex; align-items: flex-end; border-bottom: 1px solid var(--border); }
.cx-col { flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; transition: opacity var(--t-feedback) var(--ease); }
.cx-col.is-dim { opacity: 0.28; }
.cx-vbar { width: 10px; height: var(--h, 0%); flex-shrink: 0; background: var(--series, var(--ink)); }   /* EN: bars are 10px wide and centred, never scaled to the column. VN: cột rộng 10px và căn giữa, không bao giờ co giãn theo ô. */
.cx-vbar--in { background: var(--ink); } .cx-vbar--out { background: var(--ink-ghost); }
.cx-zero { position: absolute; left: 0; right: 0; top: var(--at, 50%); height: 1px; background: var(--ink); z-index: 2; pointer-events: none; }
.cx-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: flex-end; }
.cx-legend li { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10px; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.cx-legend li::before { content: ""; width: 6px; height: 6px; flex: 0 0 auto; background: var(--series, var(--ink)); }
.cx-legend--start { justify-content: flex-start; }
/* EN: In a card's title bar the legend sits at the trailing edge, 16px in, on the line of the rows beneath it.
   VN: Trong thanh tiêu đề của thẻ, chú giải nằm ở mép cuối, lùi 16px, thẳng hàng với các dòng bên dưới. */
.flx-card-header .cx-legend { margin-left: auto; padding-right: 16px; align-self: center; flex-wrap: nowrap; }

/* EN: The three colour charts of C73 to C75. A series takes its colour from
       --series, set to a --chart-NN token on the element.
   VN: Ba biểu đồ màu của C73 đến C75. Chuỗi lấy màu từ --series, được đặt
       bằng một token --chart-NN trên phần tử. */
.cx-chart { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 16px 24px 20px; }
.cx-chart__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cx-chart__lead { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink-soft); text-wrap: pretty; max-width: 60ch; }
.cx-chart__plot { position: relative; height: 160px; border-bottom: 1px solid var(--rule); }
.cx-chart__plot--tall { height: 220px; }
.cx-chart__plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.cx-chart__tick { position: absolute; right: 0; font-family: var(--font-mono); font-size: 9px; line-height: 1; letter-spacing: 0.08em; color: var(--ink-faint); pointer-events: none; }
/* EN: A label inside a plot keeps a halo of the card's own surface, so a trace that passes behind it never cuts a digit.
   VN: Nhãn nằm trong vùng vẽ giữ một quầng màu của chính bề mặt thẻ, để đường biểu diễn đi phía sau không cắt ngang chữ số. */
.cx-chart__tick, .cx-plot__tick--ref { -webkit-text-stroke: 4px var(--card); paint-order: stroke fill; }
.cx-chart__tick--top { top: 0; }
.cx-chart__tick--bottom { bottom: 2px; }
.cx-chart__tick--ref { left: 0; right: auto; top: var(--at, 50%); transform: translateY(-100%); color: var(--ink-soft); }
.cx-chart__ref { stroke: var(--n-400); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 3 3; }
.cx-chart__readout { margin: 0; font-family: var(--font-mono); font-size: 13px; line-height: 1; min-height: 1em; }
.cx-chart__readout .is-credit, .cx-tip .is-credit { color: var(--credit); }
.cx-chart__readout .is-debit, .cx-tip .is-debit { color: var(--debit); }
/* C73 · Level line */
.cx-level__line { fill: none; stroke: var(--brand); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.cx-chart__plot:has(.cx-level__line) .cx-plot__cursor { background: var(--brand); }   /* EN: the level line is the brand blue, and so is the rule that reads it. VN: đường mức mang màu xanh thương hiệu, và vạch đọc nó cũng vậy. */
.cx-level__stop { stop-color: var(--brand); }
.cx-level__stop--above { stop-opacity: 0.45; }
.cx-level__stop--below { stop-opacity: 0.22; }
.cx-level__stop--faint { stop-opacity: 0.04; }
/* C74 · Band lines */
.cx-bands__trace { fill: none; stroke: var(--series); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.cx-bands__band { pointer-events: none; }
.cx-bands__stop { stop-color: var(--series); }
.cx-bands__stop--strong { stop-opacity: 0.35; }
.cx-bands__stop--faint { stop-opacity: 0.04; }
.cx-chart__readout--small { font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.cx-chart--tight { gap: 10px; }
/* C75 · Mirror wave */
.cx-wave__up   { fill: var(--series); fill-opacity: 0.22; }
.cx-wave__down { fill: var(--series); fill-opacity: 0.14; }
.cx-wave__crest { fill: none; stroke: var(--series); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.cx-wave__mid { stroke: var(--rule); stroke-width: 1; vector-effect: non-scaling-stroke; }

/* ---------- C22 · Table helpers in a console ---------- */
.cx-colhead { display: grid; align-items: center; border-bottom: 1px solid var(--border); background: var(--card); }
.cx-colhead > span { padding: 13px 16px; font-family: var(--font-mono); font-size: 9px; line-height: 1; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.cx-colhead > span.is-sorted::after { content: ' ↓'; }
.cx-scroll { overflow-x: auto; max-width: 100%; }   /* EN: a wide table scrolls inside its card, never the page. VN: bảng rộng cuộn trong thẻ của nó, không bao giờ cuộn cả trang. */
.cx-scroll > * { min-width: max-content; }
.cx-formerr { padding: 12px 16px; border-bottom: 1px solid var(--rule); font-family: var(--font-mono); font-size: 9px; line-height: 1; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; color: var(--debit); }

/* ---------- C60 · Tree rows: a row that opens rows of its own ---------- */
/* EN: The opened parent becomes the header of what it opened: dark, white
       text, and the pointer does not tint it because it is already marked.
   VN: Hàng cha đã mở trở thành tiêu đề của thứ nó mở ra: tối, chữ trắng, và
       con trỏ không phủ sắc nó vì nó đã được đánh dấu. */
.cx-tree .flx-row.is-open,
.cx-tree .flx-row.is-open:hover {
  background: var(--n-800); color: var(--n-000);
  box-shadow: inset 2px 0 0 var(--brand);
  --ink: var(--n-000); --ink-soft: var(--n-000); --ink-mid: var(--n-300); --ink-faint: var(--n-300);
}
.cx-tree .flx-row--child {
  position: relative;
  color: var(--tint-ink);
  box-shadow: inset 2px 0 0 var(--brand);
  background-repeat: no-repeat;
  --line: var(--n-400);
  --ink: var(--n-900); --ink-soft: var(--n-600); --ink-faint: var(--n-400);
}
.cx-tree .flx-row--child.is-l1, .cx-tree .flx-row--child.is-l1:hover { background-color: var(--tint-press); }
.cx-tree .flx-row--child.is-l2 { background-color: var(--tint); }
.cx-tree .flx-row--child.is-l2:hover { background-color: var(--tint-press); }
/* EN: A trunk down each level, a 12px branch to each row, an elbow on the last.
   VN: Một thân dọc mỗi cấp, một nhánh 12px tới mỗi hàng, một khuỷu ở hàng cuối. */
.cx-tree .flx-row--child::before, .cx-tree .flx-row--child::after { content: ''; position: absolute; background: var(--line); pointer-events: none; }
.cx-tree .flx-row--child::before { top: 0; bottom: 0; width: 1px; }
.cx-tree .flx-row--child::after { top: 50%; width: 12px; height: 1px; }
.cx-tree .flx-row--child.is-l1::before, .cx-tree .flx-row--child.is-l1::after { left: 22px; }
.cx-tree .flx-row--child.is-l2::before, .cx-tree .flx-row--child.is-l2::after { left: 46px; }
.cx-tree .flx-row--child.is-last::before { bottom: 50%; }
.cx-tree .flx-row--child.is-l1.has-open { background-image: linear-gradient(var(--line), var(--line)); background-size: 1px 30%; background-position: 46px 100%; }
.cx-tree .flx-row--child.is-l2:not(.under-last) { background-image: linear-gradient(var(--line), var(--line)); background-size: 1px 100%; background-position: 22px 0; }
.cx-tree .flx-row > .cx-tree__l1 { padding-left: 42px; font-weight: 500; }
.cx-tree .flx-row > .cx-tree__l2 { padding-left: 66px; }
.cx-tree .flx-cell__sub .flx-verb { padding: 0; margin-left: 8px; align-self: auto; display: inline; }
.cx-tree .flx-cell__sub .flx-verb--close { padding: 4px 6px; margin: -4px 0 -4px 8px; vertical-align: top; }   /* EN: the block must not grow the 12px line it rides on. VN: khối không được làm cao dòng 12px mà nó nằm trên. */

/* ---------- C28 · Checkbox, C38 · toggle, C39 · radio rows ---------- */
.cx-check { width: 18px; height: 18px; flex-shrink: 0; padding: 0; border-radius: 1px; border: 1px solid var(--border); background: var(--card); color: var(--on-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background var(--t-feedback) var(--ease), border-color var(--t-feedback) var(--ease); }
.cx-check svg { width: 14px; height: 14px; stroke-width: 2; opacity: 0; }
.cx-check.is-on, .cx-check[aria-checked="true"] { background: var(--ink); border-color: var(--ink); }
.cx-check.is-on svg, .cx-check[aria-checked="true"] svg { opacity: 1; }
.cx-checkrow { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: none; background: transparent; color: inherit; font-size: 13px; line-height: 1; cursor: pointer; }
.cx-checkrow[disabled] { color: var(--ink-ghost); cursor: default; }
.cx-toggle { position: relative; width: 40px; height: 22px; flex-shrink: 0; padding: 0; border: none; border-radius: 2px; background: var(--border); cursor: pointer; transition: background var(--t-feedback) var(--ease); }
.cx-toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: var(--n-000); transition: left var(--t-feedback) var(--ease); }
.cx-toggle.is-on, .cx-toggle[aria-checked="true"] { background: var(--brand); }
.cx-toggle.is-on::after, .cx-toggle[aria-checked="true"]::after { left: 21px; }
/* EN: C38 · A disabled toggle: a setting the reader may see but not change (Chris, 17 Nov 2026). Pale track with a
       hairline border, a grey knob 2px inside it, no pointer and no hover.
   VN: C38 · Công tắc bị vô hiệu: thiết lập người đọc xem được nhưng không đổi được (Chris, 17/11/2026). Rãnh nhạt có
       viền mảnh, núm xám cách viền 2px, không con trỏ và không hiệu ứng rê chuột. */
.cx-toggle[disabled], .cx-toggle[disabled].is-on, .cx-toggle[disabled][aria-checked="true"] { background: var(--track); border: 1px solid var(--n-100); cursor: not-allowed; }
.cx-toggle[disabled]::after { top: 2px; left: 2px; background: var(--n-200); }
.cx-toggle[disabled].is-on::after, .cx-toggle[disabled][aria-checked="true"]::after { left: 20px; }
.cx-radio { display: flex; align-items: flex-start; gap: 14px; width: 100%; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 1px; background: var(--card); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: background var(--t-feedback) var(--ease), color var(--t-feedback) var(--ease), border-color var(--t-feedback) var(--ease); }
.cx-radio__ring { width: 18px; height: 18px; flex-shrink: 0; border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.cx-radio__label { display: block; font-size: 14px; font-weight: 500; line-height: 1; }   /* EN: the first line of two is bold; the help under it is not. VN: dòng đầu trong hai dòng được tô đậm; dòng trợ giúp bên dưới thì không. */
/* EN: An unpicked choice answers the pointer as every row does: the tint and the brand bar. The picked one is ink and does not change.
   VN: Lựa chọn chưa được chọn phản hồi con trỏ như mọi hàng: sắc phủ và vạch thương hiệu. Lựa chọn đã chọn có màu mực và không đổi. */
.cx-radio:not(.is-on):not([aria-checked="true"]):hover { background: var(--tint); color: var(--tint-ink); --ink-soft: var(--n-600); box-shadow: inset 2px 0 0 var(--brand); }
.cx-radio__help { display: block; margin-top: 6px; font-size: 12px; line-height: 1.3; color: var(--ink-soft); }
.cx-radio.is-on, .cx-radio[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.cx-radio.is-on .cx-radio__ring, .cx-radio[aria-checked="true"] .cx-radio__ring { border-color: var(--n-000); }
.cx-radio.is-on .cx-radio__ring::after, .cx-radio[aria-checked="true"] .cx-radio__ring::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--n-000); }
.cx-radio.is-on .cx-radio__help, .cx-radio[aria-checked="true"] .cx-radio__help { color: var(--n-300); }

/* ---------- C29 · Drawer, C32 and C33 · dialog ---------- */
.cx-drawer { --card: var(--drawer); --field: var(--drawer-field); --cell: var(--drawer-cell); position: fixed; top: 57px; right: 0; bottom: 0; width: var(--drawer-w); max-width: 100%; z-index: 50; background: var(--card); border-left: 1px solid var(--border); box-shadow: var(--shadow-drawer); transform: translateX(100%); visibility: hidden; transition: transform var(--t-exit) var(--ease-out), visibility 0s linear var(--t-exit); display: flex; flex-direction: column; }   /* EN: this is the way out: 200ms; the way in is on .is-open. VN: đây là lối ra: 200ms; lối vào nằm ở .is-open. */
.cx-drawer.is-open { transform: translateX(0); visibility: visible; transition: transform var(--t-feedback) cubic-bezier(0.2, 0.9, 0.24, 1), visibility 0s; }
.cx-drawer .flx-row:not(.is-clickable):hover { background: transparent; color: inherit; box-shadow: none; }
.cx-drawer .flx-colhead__cell { padding: 8px 16px; }
.cx-curtain { position: fixed; top: 0; bottom: 0; right: 0; left: var(--cx-rail-w); z-index: 45; background: rgba(0, 0, 0, 0.56); opacity: 0; pointer-events: none; transition: opacity var(--t-feedback) var(--ease); }
.cx-curtain.is-on { opacity: 1; pointer-events: auto; }
.cx-dialog { position: fixed; left: 50%; top: 50%; z-index: 50; width: 440px; max-width: calc(100vw - 40px); max-height: calc(100vh - 80px); display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); opacity: 0; pointer-events: none; visibility: hidden; transform: translate(-50%, -50%) scale(0.985); transition: transform 200ms cubic-bezier(0.4, 0, 1, 1), opacity 200ms, visibility 0s linear 200ms; }
.cx-dialog.is-open { opacity: 1; pointer-events: auto; visibility: visible; transform: translate(-50%, -50%) scale(1); transition: transform 420ms cubic-bezier(0.2, 0.9, 0.24, 1), opacity 420ms, visibility 0s; }
.cx-dialog--wide { width: 640px; }
/* EN: C18 · The chart overlay: 92% of the content column's width and 86% of the viewport's height, centred on the
       column the curtain covers rather than on the window, so it never reaches under the master menu. Every other
       value is the dialog's own (Chris, 25 Sep 2026, confirmed 17 Nov 2026).
   VN: C18 · Lớp phủ biểu đồ: 92% chiều rộng cột nội dung và 86% chiều cao khung nhìn, căn giữa trên cột mà tấm màn che
       chứ không phải trên cửa sổ, nên không bao giờ lấn xuống dưới menu chính. Mọi giá trị khác là của hộp thoại
       (Chris, 25/9/2026, xác nhận 17/11/2026). */
.cx-dialog--chart { left: calc(var(--cx-rail-w) + (100vw - var(--cx-rail-w)) / 2); width: calc((100vw - var(--cx-rail-w)) * 0.92); max-width: none; height: 86vh; max-height: none; }
/* EN: The body hands its height to the plot: the copy of the card's plot fills what the axis and footer leave.
   VN: Phần thân nhường chiều cao cho ô đồ thị: bản sao ô đồ thị của thẻ lấp đầy phần trục và chân thẻ chừa lại. */
.cx-dialog--chart .cx-dialog__body { flex: 1 1 auto; min-height: 0; gap: 0; padding: 0; overflow: hidden; }
.cx-dialog--chart .cx-dialog__body > [data-chart] { flex: 1 1 auto; height: auto; min-height: 260px; }
.cx-dialog__body { display: flex; flex-direction: column; gap: 16px; padding: 20px 16px; overflow-y: auto; }
/* EN: C32 · Spill (3.6.1). A dialog short enough never to scroll drops the body's scroll box, so a select's list
       opens over the actions instead of being cut to a strip. A dialog that can scroll keeps the box: the open
       dialog is transformed, so a list fixed to the viewport would still be placed inside it.
   VN: C32 · Tràn (3.6.1). Hộp thoại đủ ngắn để không bao giờ cuộn thì bỏ hộp cuộn của thân, để danh sách của ô chọn
       mở đè lên dải hành động thay vì bị cắt thành một dải hẹp. Hộp thoại có thể cuộn thì giữ hộp: hộp thoại đang mở
       có transform, nên danh sách cố định theo khung nhìn vẫn bị đặt bên trong nó. */
.cx-dialog__body--spill { overflow: visible; }
/* EN: C88 · Shown once: the dialog only its own verb closes never shows a close cell.
   VN: C88 · Chỉ hiện một lần: hộp thoại chỉ động từ của nó đóng được thì không bao giờ có ô đóng. */
.cx-dialog--once .flx-overlay-header__trail { display: none; }
/* EN: Fact rows inside a dialog run edge to edge under a top rule, so their 44px cells stand in the header cell's column
       and no gap opens between the dialog's border and the rows (Chris, 26 Nov 2026, of C88).
   VN: Các hàng dữ kiện trong hộp thoại chạy tràn hai mép dưới một đường trên, để ô 44px của chúng đứng thẳng cột với ô
       của phần đầu và không có khe giữa viền hộp thoại và các hàng (Chris, 26/11/2026, về C88). */
.cx-dialog__facts { margin: 0 -16px; border-top: 1px solid var(--rule); }
.cx-dialog__line { font-family: var(--font-display); font-size: 22px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; margin: 0; }
.cx-dialog__text { font-size: 14px; line-height: 1.65; color: var(--ink-soft); margin: 0; }
.cx-label { display: block; font-family: var(--font-mono); font-size: 9px; line-height: 1; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }   /* EN: alias of .flx-label. VN: bí danh của .flx-label. */

/* ---------- C36 · Select, C37 · date picker ---------- */
.cx-select, .cx-datepick, .cx-timepick { position: relative; }
.cx-pop { position: absolute; top: calc(100% + 4px); left: 0; z-index: 30; min-width: 100%; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-pop); }
.cx-pop.is-up { top: auto; bottom: calc(100% + 4px); }   /* EN: no room below: it opens upward. VN: không đủ chỗ phía dưới: mở lên trên. */
.cx-pop.is-end { left: auto; right: 0; }
.cx-opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: none; border-bottom: 1px solid var(--hairline); background: var(--card); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: background var(--t-feedback) var(--ease), color var(--t-feedback) var(--ease); }
.cx-opt:last-child { border-bottom: none; }
.cx-opt:hover { background: var(--tint); color: var(--tint-ink); box-shadow: inset 2px 0 0 var(--brand); }
.cx-opt.is-on { background: var(--n-050); }
.cx-opt svg:not(.flx-flag) { width: 20px; height: 20px; stroke-width: 1.6; flex-shrink: 0; }   /* EN: a flag in an option keeps its 14px row size (C58). VN: lá cờ trong một lựa chọn giữ cỡ hàng 14px (C58). */
.cx-opt__body { flex: 1; min-width: 0; }
.cx-opt__label { display: block; font-size: 13px; line-height: 1; }
.cx-opt__body:has(> .cx-opt__hint) > .cx-opt__label { font-weight: 500; }   /* EN: the first line of two is bold. VN: dòng đầu trong hai dòng được tô đậm. */
.cx-opt__hint { display: block; margin-top: 4px; font-size: 12px; font-weight: 400; line-height: 1.3; white-space: normal; color: var(--opt-soft, var(--ink-soft)); }
.cx-opt__code { font-family: var(--font-mono); font-size: 9px; line-height: 1; letter-spacing: 0.14em; color: var(--opt-soft, var(--ink-soft)); }
.cx-opt__tick { display: flex; flex-shrink: 0; }
.cx-opt .cx-opt__tick svg { width: 16px; height: 16px; }
/* EN: A leading code, an inert option and the None option (C36). VN: Mã đứng đầu, lựa chọn bất động và lựa chọn Không có (C36). */
.cx-opt__lead { flex: 0 0 48px; font-family: var(--font-mono); font-size: 11px; line-height: 1; color: var(--opt-soft, var(--ink-soft)); }
.cx-opt[disabled] { cursor: default; color: var(--n-500); }
.cx-opt[disabled]:hover, .cx-pop--list .cx-opt[disabled]:hover { background: transparent; box-shadow: none; color: var(--n-500); --opt-soft: var(--n-400); }
.cx-pop--list .cx-opt[disabled] { color: var(--n-500); }
.cx-opt--none .cx-opt__label { color: var(--opt-soft, var(--ink-soft)); }
.cx-select--search > .flx-field { cursor: text; }
/* EN: The list panel of every select and picker is a flat dark surface, so it
       reads at once as a layer above the page (Chris, 15 Nov 2026). The
       pointed option takes the tint and the 2px brand bar; the chosen one is
       told by weight and a tick, never by a ground of its own.
   VN: Bảng danh sách của mọi ô chọn và bộ chọn là bề mặt tối phẳng, để được
       nhận ra ngay là một lớp nằm trên trang (Chris, 15/11/2026). Lựa chọn
       được trỏ nhận sắc phủ và vạch xanh 2px; lựa chọn đã chọn được nhận biết
       bằng độ đậm và dấu tích, không bao giờ bằng nền riêng. */
.cx-pop--list { width: max-content; max-width: max(100%, 360px); background: var(--n-800); border-color: var(--n-800); color: var(--n-025); --opt-soft: var(--n-400); }
.cx-pop--list .cx-pop__list { max-height: 280px; overflow-y: auto; }
.cx-pop--list .cx-opt { background: transparent; color: var(--n-025); border-bottom-color: var(--n-700); }
.cx-pop--list .cx-opt:hover, .cx-pop--list .cx-opt.is-active { background: var(--tint); color: var(--tint-ink); box-shadow: inset 2px 0 0 var(--brand); --opt-soft: var(--n-600); }
.cx-pop--list .cx-opt.is-on { background: transparent; }
.cx-pop--list .cx-opt.is-on .cx-opt__label { font-weight: 500; }
.cx-pop--list .cx-opt.is-on:hover, .cx-pop--list .cx-opt.is-on.is-active { background: var(--tint); }
.cx-pop--list .flx-field { background: transparent; border: none; border-bottom: 1px solid var(--n-700); border-radius: 0; }
.cx-pop--list .flx-field input { color: var(--n-025); }
.cx-pop--list .flx-field input::placeholder, .cx-pop--list .flx-field .flx-field__icon, .cx-pop--list .flx-row__empty { color: var(--n-400); }
.cx-date { display: grid; grid-template-columns: 72px 140px 80px; }
/* EN: C81 · The time picker is the date picker with two columns, hours then minutes, each as wide as the day column.
       A time is chosen, never typed, so a time that does not exist cannot be entered.
   VN: C81 · Bộ chọn giờ là bộ chọn ngày với hai cột, giờ rồi phút, mỗi cột rộng bằng cột ngày. Giờ được chọn, không bao
       giờ được gõ, nên không thể nhập một giờ không tồn tại. */
.cx-date--time { grid-template-columns: 72px 72px; }
.cx-date__col { max-height: 200px; overflow-y: auto; border-right: 1px solid var(--hairline); }
.cx-date__col:last-child { border-right: none; }
.cx-date__item { display: block; width: 100%; padding: 8px 12px; border: none; background: var(--card); color: var(--ink); font-family: var(--font-body); font-size: 13px; line-height: 1; text-align: left; cursor: pointer; transition: background var(--t-feedback) var(--ease), color var(--t-feedback) var(--ease); }
.cx-date__item:hover { background: var(--tint); color: var(--tint-ink); box-shadow: inset 2px 0 0 var(--brand); }
.cx-date__item.is-num { font-family: var(--font-mono); }
.cx-date__item.is-on { background: var(--ink); color: var(--on-ink); box-shadow: none; }

/* ---------- C40 · Accordion ---------- */
.cx-acc__head { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px 16px; border: none; border-bottom: 1px solid var(--hairline); background: transparent; color: var(--ink); font-family: var(--font-body); font-size: 13px; line-height: 1; text-align: left; cursor: pointer; transition: background var(--t-feedback) var(--ease), color var(--t-feedback) var(--ease); }
.cx-acc__head:hover { background: var(--tint); color: var(--tint-ink); box-shadow: inset 2px 0 0 var(--brand); }
.cx-acc__head svg { width: 18px; height: 18px; margin: -3px 0; stroke-width: 1.6; transform: rotate(90deg); transition: transform var(--t-feedback) var(--ease); }
.cx-acc__item.is-open .cx-acc__head { font-weight: 500; }
.cx-acc__item.is-open .cx-acc__head svg { transform: rotate(270deg); }
.cx-acc__body { display: none; }
.cx-acc__item.is-open .cx-acc__body { display: block; }
.cx-acc__body p { margin: 0; padding: 16px; font-size: 14px; line-height: 1.65; color: var(--ink-soft); max-width: 720px; border-bottom: 1px solid var(--hairline); }

/* ---------- C43 · Save bar ---------- */
.cx-savebar { position: fixed; left: var(--cx-rail-w); right: 0; bottom: 0; z-index: 20; height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; background: var(--card); border-top: 1px solid var(--rule); }
.cx-savebar__count { font-family: var(--font-mono); font-size: 11px; line-height: 1; color: var(--ink-soft); }
.cx-savebar__actions { display: flex; gap: 8px; }
.cx-savebar-space { height: 64px; flex-shrink: 0; }   /* EN: keeps the last card clear of the bar. VN: giữ thẻ cuối không bị thanh che. */

/* ---------- C45 · Code block: never inverts, no syntax colours ---------- */
.cx-code { background: #141414; color: #ffffff; }
.cx-code__band { display: flex; align-items: stretch; height: 39px; border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.cx-code__tab { display: flex; align-items: center; padding: 0 14px; line-height: 1; border: none; background: transparent; color: rgba(255, 255, 255, 0.55); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; }
.cx-code__tab.is-on { color: #ffffff; box-shadow: inset 0 -1px 0 #ffffff; }
.cx-code__band .flx-copy { margin-left: auto; }
.cx-code pre { margin: 0; padding: 14px 16px; font-family: var(--font-mono); font-size: 11px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; color: rgba(255, 255, 255, 0.85); }
.cx-code .flx-copy { --copy-size: 38px; }
.cx-code--inset { margin-left: 126px; }           /* EN: the payload of an expanded log row (C44). VN: nội dung của hàng nhật ký đã mở (C44). */
/* EN: C45 · Syntax colours (3.7.0, Chris 24 and 26 Nov 2026): the Spectrum's 200 tones, the soft tone that reads on the
       dark block. A highlighter labels the code with these names; whatever it labels otherwise stays white at 0.85.
   VN: C45 · Màu cú pháp (3.7.0, Chris 24 và 26/11/2026): các tông 200 của Spectrum, tông dịu đọc được trên khối tối.
       Bộ tô màu gắn nhãn mã bằng các tên này; phần nào được gắn nhãn khác vẫn trắng ở 0.85. */
.cx-code pre .cx-tok-keyword, .cx-code pre .cx-tok-type { color: var(--fx-blue-200); }
.cx-code pre .cx-tok-string, .cx-code pre .cx-tok-regexp { color: var(--fx-green-200); }
.cx-code pre .cx-tok-number, .cx-code pre .cx-tok-literal { color: var(--fx-amber-200); }
.cx-code pre .cx-tok-title, .cx-code pre .cx-tok-built_in { color: var(--fx-violet-200); }
.cx-code pre .cx-tok-comment { color: var(--n-400); }

/* ---------- C47 · Empty page ---------- */
.cx-empty { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 72px 24px; border: 1px dashed var(--border); background: var(--field); text-align: center; }
.cx-empty svg { width: 96px; height: 96px; stroke-width: 0.6; }
.cx-empty .flx-btn svg { width: 16px; height: 16px; stroke-width: 1.6; }
.cx-empty__line { font-family: var(--font-display); font-size: 22px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.cx-empty__text { font-size: 14px; line-height: 1.5; color: var(--ink-soft); max-width: 420px; }
.cx-state { min-height: 150px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; padding: 20px; }   /* EN: the body of a panel in one of its five states (C48). VN: thân của bảng ở một trong năm trạng thái (C48). */
.cx-state__line { font-size: 13px; line-height: 1.45; }
.cx-state__note { font-size: 12px; line-height: 1.45; color: var(--ink-soft); }

/* ---------- C52 · Documentation contents ---------- */
.cx-toc { position: sticky; top: 77px; width: 240px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.cx-toc { max-height: calc(100vh - 97px); overflow-y: auto; }   /* EN: a long document's contents stay usable: the one card that scrolls (C52). VN: mục lục của tài liệu dài vẫn dùng được: thẻ duy nhất được cuộn (C52). */
.cx-toc__band { display: flex; align-items: stretch; height: 46px; margin-top: -1px; background: var(--field); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.cx-toc__cell { width: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--cell); border-right: 1px solid var(--rule); }
.cx-toc__cell svg { width: 18px; height: 18px; stroke-width: 1.6; }
.cx-toc__band-label { flex: 1; display: flex; align-items: center; padding: 0 16px; font-family: var(--font-mono); font-size: 10px; line-height: 1; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; }
.cx-toc__row { display: flex; align-items: stretch; background: var(--card); border-bottom: 1px solid var(--rule); transition: background var(--t-feedback) var(--ease), color var(--t-feedback) var(--ease); }
.cx-toc__row:hover { background: var(--tint); color: var(--tint-ink); box-shadow: inset 2px 0 0 var(--brand); }
.cx-toc__label { flex: 1; min-width: 0; display: flex; align-items: center; padding: 14px 16px; border: none; background: transparent; color: inherit; font-family: var(--font-body); font-size: 13px; line-height: 1; text-align: left; text-decoration: none; cursor: pointer; }
.cx-toc__row.is-child .cx-toc__label { padding-left: 60px; }
.cx-toc__row.is-open { background: var(--tint); color: var(--tint-ink); }   /* EN: an open branch is tinted with no bar; the bar is the current section's alone. VN: nhánh đang mở được phủ sắc, không có vạch; vạch chỉ thuộc về mục hiện tại. */
.cx-toc__row.is-open:hover { background: var(--tint-press); }
.cx-toc__row.is-open .cx-toc__label { font-weight: 500; }
.cx-toc__row.is-current { background: var(--tint); color: var(--tint-ink); box-shadow: inset 2px 0 0 var(--brand); }
.cx-toc__row.is-current .cx-toc__label { font-weight: 500; }
.cx-toc__row.is-current:hover { background: var(--tint-press); }
.cx-toc__chev { width: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; padding: 0; border: none; border-left: 1px solid var(--rule); background: transparent; color: inherit; cursor: pointer; transition: background var(--t-feedback) var(--ease); }
.cx-toc__chev:hover { background: var(--tint-press); }
.cx-toc__chev svg { width: 18px; height: 18px; stroke-width: 1.6; transition: transform var(--t-feedback) var(--ease); }
.cx-toc__chev[aria-expanded="true"] svg { transform: rotate(90deg); }

/* EN: A documentation page: contents beside one column (3.6.1). The column stops at the 720px measure plus the card's
       two 1px borders; the measure already includes the prose inset (every box is border-box), so the inset is never
       added twice. Wider, every card ran on as an empty band beside its text.
   VN: Trang tài liệu: mục lục cạnh một cột (3.6.1). Cột dừng ở độ rộng đọc 720px cộng hai viền 1px của thẻ; độ rộng
       đọc đã gồm phần lề trong của văn bản (mọi hộp là border-box), nên phần lề không bao giờ bị cộng hai lần. Rộng
       hơn thì mỗi thẻ kéo dài thành một dải trống bên cạnh chữ. */
.cx-docs { display: grid; grid-template-columns: 240px minmax(0, 722px); gap: 20px; align-items: start; }
.cx-doc-anchor { scroll-margin-top: 77px; }       /* EN: a section jumped to lands below the sticky header. VN: phần được nhảy tới nằm dưới thanh đầu dính. */
/* EN: C19 · The console's company strip (3.7.0): a reporting strip held at the foot of the content column, edge to edge,
       its text on the cards' left border (the column's 20px), never on their text.
   VN: C19 · Dải công ty của bảng điều khiển (3.7.0): một dải báo cáo giữ ở chân cột nội dung, tràn hai mép, chữ đứng trên
       viền trái của các thẻ (20px của cột), không bao giờ trên chữ của chúng. */
.cx-sitefoot { position: sticky; bottom: 0; z-index: 10; margin: auto -20px -20px; padding: 0 20px; }

/* ---------- C64 · Record rows: one layout for reading and editing ---------- */
.cx-rec { display: grid; grid-template-columns: 44px 220px minmax(0, 1fr) 44px; align-items: center; column-gap: 20px; border-bottom: 1px solid var(--hairline); min-width: 0; }
.cx-rec:last-child { border-bottom: 0; }
/* EN: A record row being read answers the pointer like a table row, in three parts (§2.11, amended by Chris on 20 Nov
       2026): the row takes the tint and the brand bar, its icon cell steps to --tint-press, its glyph turns --brand. A row
       holding a field is being edited and stays still, so a highlight never moves under the input in hand.
   VN: Hàng hồ sơ đang được đọc phản hồi con trỏ như hàng của bảng, theo ba phần (§2.11, Chris sửa đổi ngày 20/11/2026):
       hàng nhận sắc phủ và thanh màu thương hiệu, ô biểu tượng chuyển sang --tint-press, glyph chuyển --brand. Hàng chứa
       ô nhập là hàng đang sửa và đứng yên, để vùng tô sáng không bao giờ chạy dưới ô đang gõ. */
.cx-rec:not(:has(.flx-field)):hover { background: var(--tint); box-shadow: inset 2px 0 0 var(--brand); }
.cx-rec:not(:has(.flx-field)):hover > .cx-rec__cell { background: var(--tint-press); }
.cx-rec:not(:has(.flx-field)):hover > .cx-rec__cell svg { stroke: var(--brand); color: var(--brand); }
.cx-rec__cell { align-self: stretch; display: grid; place-items: center; min-height: 44px; background: var(--cell); border-right: 1px solid var(--rule); color: var(--ink-soft); }
.cx-rec__cell svg { width: 18px; height: 18px; stroke-width: 1.6; }
.cx-rec__value { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 1px 0; }
.cx-rec__read { padding: 10px 0; font-size: 15px; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
.cx-rec__read.is-empty { color: var(--ink-faint); }
/* EN: A value that is a block sits centred in the 44px row and never grows it.
   VN: Giá trị là một khối thì nằm giữa hàng 44px và không bao giờ làm hàng cao thêm. */
.cx-rec__read:has(> .flx-status, > .cx-ch) { display: flex; align-items: center; gap: 8px; padding: 0; min-height: 42px; }
.cx-rec__help { align-self: stretch; display: grid; place-items: center; }
/* EN: In a row the icon lives in the row's own cell, so the field does not draw it twice.
   VN: Trong hàng, biểu tượng nằm ở ô của chính hàng, nên ô nhập không vẽ lần hai. */
.cx-rec .flx-field__icon { display: none; }
/* EN: A list panel opened from a field in a row is not the row's field: its search keeps the glyph C36 gives it.
   VN: Bảng danh sách mở từ một ô nhập trong hàng không phải là ô nhập của hàng: ô tìm của nó giữ glyph mà C36 cho nó. */
.cx-rec .cx-pop .flx-field__icon { display: flex; }
/* EN: The lead row names the record: label above, value larger and bold.
   VN: Hàng đầu nêu tên bản ghi: nhãn ở trên, giá trị lớn hơn và đậm. */
.cx-rec--lead { grid-template-columns: 44px minmax(0, 1fr) 44px; }
.cx-rec--lead .cx-rec__cell, .cx-rec--lead .cx-rec__help { grid-row: 1 / span 2; }
.cx-rec--lead .flx-label { grid-column: 2; padding-top: 16px; }
.cx-rec--lead .cx-rec__value { grid-column: 2; padding: 8px 0 16px; }
.cx-rec--lead .cx-rec__help { grid-column: 3; }
.cx-rec--lead .cx-rec__read { padding: 0; font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 1.25; }
.cx-rowblock { border-bottom: 1px solid var(--rule); }

/* ---------- C65 · Search card ---------- */
/* EN: .cx-fields is the same grid for a form's fields inside a card; a field that needs the whole line takes .cx-fields__wide.
   VN: .cx-fields là cùng lưới đó cho các ô của biểu mẫu trong thẻ; ô cần trọn dòng nhận .cx-fields__wide. */
.cx-fields { display: grid; align-items: end; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; padding: 20px 16px; }
.cx-fields__wide { grid-column: 1 / -1; }
.cx-search { display: grid; align-items: end; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; padding: 20px 16px; }
.cx-search__bar { grid-column: -2 / -1; display: flex; justify-content: flex-end; gap: 8px; white-space: nowrap; }   /* EN: the last column of the last line, whenever it is free. VN: cột cuối của dòng cuối, mỗi khi còn trống. */
/* EN: One long field (3.7.0): the field takes the row and its verbs keep the last track, so a web address is read whole.
   VN: Một trường dài (3.7.0): trường chiếm cả hàng và các động từ giữ cột cuối, để địa chỉ web được đọc trọn. */
.cx-search--single { grid-template-columns: minmax(0, 1fr) auto; }
.cx-filters { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
/* EN: FILTERS BELONG TO WHAT THEY FILTER (Chris, 17 Nov 2026: "if they are filtering something, they must belong to
       the table, so they have to be on top of the table"). Chips that narrow a table are the first band inside
       that table's card, under its title bar and above its column header. The search stays outside, above the
       card, because a search may reach further than one table. A second group (a date window) sits at the
       band's trailing edge.
   VN: BỘ LỌC THUỘC VỀ THỨ NÓ LỌC (Chris, 17/11/2026: "nếu chúng lọc thứ gì thì phải thuộc về bảng, nên phải nằm trên
       đầu bảng"). Các chip thu hẹp một bảng là dải đầu tiên bên trong thẻ của bảng đó, dưới thanh tiêu đề và trên
       hàng tiêu đề cột. Ô tìm kiếm ở bên ngoài, phía trên thẻ, vì tìm kiếm có thể vươn xa hơn một bảng. Nhóm thứ hai
       (khoảng ngày) nằm ở mép cuối của dải. */
.cx-filterband { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
.cx-filterband__end { margin-left: auto; }
.cx-filterband__label { font-family: var(--font-mono); font-size: 9px; line-height: 1; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); white-space: nowrap; }   /* EN: a filter group's name (C21). VN: tên của một nhóm bộ lọc (C21). */
.cx-filterband__hint { font-size: 12px; line-height: 1.3; color: var(--ink-mid); }
.cx-filters__search { width: 33.33%; min-width: 260px; }

/* ---------- C66 · Navigation tiles, C67 · drop zone ---------- */
.cx-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 225px), 1fr)); gap: 20px; padding: 20px; }
.cx-navtile { display: flex; flex-direction: column; min-height: 112px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-card); color: var(--ink); text-decoration: none;
  transition: background var(--t-feedback) var(--ease), border-color var(--t-feedback) var(--ease), color var(--t-feedback) var(--ease); }
.cx-navtile__top { display: flex; align-items: stretch; justify-content: space-between; border-bottom: 1px solid var(--rule); }
.cx-navtile__cell { flex: none; width: 48px; min-height: 48px; display: grid; place-items: center; background: var(--cell); border-right: 1px solid var(--rule); transition: background var(--t-feedback) var(--ease); }
.cx-navtile__cell svg { width: 22px; height: 22px; stroke-width: 1.25; opacity: 0.62; transition: stroke var(--t-feedback) var(--ease), opacity var(--t-feedback) var(--ease); }
.cx-navtile__name { flex: 1; min-width: 0; align-self: center; padding: 6px 12px; font-family: var(--font-display); font-size: 15px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; transition: color var(--t-feedback) var(--ease); }
.cx-navtile__index { flex: none; align-self: center; padding: 0 14px 0 0; font-family: var(--font-mono); font-size: 11px; line-height: 1; letter-spacing: 0.1em; color: var(--ink-faint); }
.cx-navtile__body { flex: 1; display: flex; flex-direction: column; padding: 12px 14px 14px; }
.cx-navtile__text { font-size: 12px; line-height: 1.5; color: var(--n-700); transition: color var(--t-feedback) var(--ease); }
/* EN: Hover: the tint, a brand edge, the cell one step deeper, glyph and
       name in brand blue, the description in full ink. Nothing moves.
   VN: Rê chuột: sắc phủ, viền xanh thương hiệu, ô đậm thêm một bậc, glyph và
       tên màu xanh thương hiệu, mô tả ở mực đầy. Không gì dịch chuyển. */
.cx-navtile:hover, .cx-navtile:focus-visible, .cx-navtile.is-ghost { background: var(--tint); border-color: var(--brand); color: var(--tint-ink); outline: none; }
.cx-navtile:hover .cx-navtile__cell, .cx-navtile.is-ghost .cx-navtile__cell { background: var(--tint-press); }
.cx-navtile:hover .cx-navtile__cell svg, .cx-navtile.is-ghost .cx-navtile__cell svg { stroke: var(--brand); color: var(--brand); opacity: 1; }
.cx-navtile:hover .cx-navtile__name, .cx-navtile.is-ghost .cx-navtile__name { color: var(--brand); }
.cx-navtile:hover .cx-navtile__text, .cx-navtile.is-ghost .cx-navtile__text { color: var(--n-900); }
.cx-navtile.is-pending .cx-navtile__name { color: var(--ink-faint); }
.cx-navtile.is-pending .cx-navtile__cell svg { opacity: 1; stroke: var(--ink-faint); }
.cx-navtile.is-pending:hover .cx-navtile__name { color: var(--brand); }
.cx-navtile.is-pending:hover .cx-navtile__cell svg { stroke: var(--brand); }
.cx-navtile.is-draggable { cursor: grab; }
.cx-navtile.is-dragging { opacity: 0.35; }
.cx-navtile.is-ghost { background: #ffffff; transition: none; }   /* EN: the copy carried under the pointer during a drag. VN: bản sao được mang theo con trỏ khi kéo. */
.cx-navtile__remove { flex: none; align-self: stretch; width: 48px; display: grid; place-items: center; padding: 0; border: 0; border-left: 1px solid var(--rule); background: transparent; color: var(--ink-soft); cursor: pointer; transition: background var(--t-feedback) var(--ease), color var(--t-feedback) var(--ease); }
.cx-navtile__remove svg { width: 14px; height: 14px; stroke-width: 1.6; }
.cx-navtile__remove:hover { background: var(--tint-press); color: var(--brand); }
@media (hover: none) { .cx-navtile:active { background: var(--tint); transition-duration: 120ms; } }
.cx-dragcurtain { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, 0.25); backdrop-filter: blur(2px); pointer-events: none; }
.cx-zone { position: relative; transition: background var(--t-feedback) var(--ease); }
.cx-zone.is-target { z-index: 60; outline: 2px dashed var(--brand); outline-offset: -2px; background: var(--tint); }
.cx-zone.is-over { outline-style: solid; background: var(--tint-press); }
.cx-zone__prompt { color: var(--brand); font-weight: 500; }
.cx-zone__empty { margin: 20px; padding: 28px 20px; border: 1px dashed var(--rule); font-family: var(--font-mono); font-size: 10px; line-height: 1; letter-spacing: 0.1em; text-transform: uppercase; text-align: center; color: var(--ink-soft); }

/* ---------- C76 · Steps, C77 · file picker (new in 3.0.0) ---------- */
/* EN: Steps: the segmented control's cells, inert, saying where a multi-step
       act stands. Done is full ink with a tick, current is filled, later is faint.
   VN: Các bước: các ô của điều khiển phân đoạn, trơ, cho biết một thao tác
       nhiều bước đang ở đâu. Xong là mực đầy kèm dấu tích, hiện tại được tô,
       sau đó thì nhạt. */
.cx-steps { display: flex; border: 1px solid var(--border); border-radius: 2px; overflow: hidden; background: var(--card); }
/* EN: A step is two cells: a square that holds its number, then its name. The square is as wide as the step is
       tall (29px), and a 1px rule divides the two, as a title bar divides its glyph from its title.
   VN: Một bước gồm hai ô: ô vuông chứa số thứ tự, rồi tới tên bước. Ô vuông rộng bằng chiều cao của bước (29px),
       và một vạch 1px ngăn hai ô, như thanh tiêu đề ngăn glyph khỏi tiêu đề. */
.cx-step { flex: 1; min-width: 0; display: flex; align-items: stretch; font-family: var(--font-mono); font-size: 11px; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); white-space: nowrap; }
.cx-step + .cx-step { border-left: 1px solid var(--border); }
.cx-step__n { flex: 0 0 29px; display: flex; align-items: center; justify-content: center; border-right: 1px solid var(--border); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.cx-step__label { flex: 1; min-width: 0; padding: 9px 16px; text-align: center; overflow: hidden; text-overflow: ellipsis; }
.cx-step svg { width: 12px; height: 12px; stroke-width: 2.2; }
/* EN: Done is the tint: light blue ground, the tick in brand blue where the number was, the name in full ink.
   VN: Đã xong là màu tint: nền xanh nhạt, dấu tích màu xanh thương hiệu ở chỗ con số, tên bước ở mực đậm. */
.cx-step.is-done { background: var(--tint); color: var(--tint-ink); }
.cx-step.is-done .cx-step__n { color: var(--brand); }
.cx-step.is-on { background: var(--ink); color: var(--on-ink); }
.cx-step.is-on .cx-step__n { border-right-color: rgba(255, 255, 255, 0.16); }
.cx-file { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 28px 20px; border: 1px dashed var(--border); background: var(--field); text-align: center; transition: background var(--t-feedback) var(--ease), border-color var(--t-feedback) var(--ease); }
.cx-file svg { width: 40px; height: 40px; stroke-width: 1; color: var(--ink-faint); }
.cx-file .flx-btn svg { width: 16px; height: 16px; stroke-width: 1.6; color: inherit; }
.cx-file__line { font-family: var(--font-mono); font-size: 10px; line-height: 1; letter-spacing: 0.14em; text-transform: uppercase; }
.cx-file__text { font-size: 12px; line-height: 1.45; color: var(--ink-soft); max-width: 420px; }
.cx-file.is-over { background: var(--tint); border-color: var(--brand); border-style: solid; }

/* ---------- Compositions the catalogue's own examples rely on ----------
   EN: Each of these was an inline style in a snippet of the specification. A snippet is what a reader copies, so
       whatever it needs is a rule here.
   VN: Mỗi quy tắc dưới đây từng là một kiểu nội tuyến trong đoạn mã của đặc tả. Đoạn mã là thứ người đọc sao chép,
       nên bất cứ điều gì nó cần đều là một quy tắc ở đây. */
/* EN: A panel's state (C48): the verb and the empty line sit flush with the state's own padding.
   VN: Trạng thái của bảng (C48): động từ và dòng trống nằm sát phần đệm của chính trạng thái. */
.cx-state .flx-verb { align-self: flex-start; padding: 0; }
.cx-state .flx-row__empty { padding: 0; }
/* EN: The first row under a hero figure is ruled off from it.
   VN: Hàng đầu tiên dưới con số chính được kẻ vạch tách khỏi nó. */
/* EN: A label written above the hero figure stands 10px clear of it.
   VN: Nhãn viết phía trên con số chính cách nó 10px. */
.cx-herofig > .flx-label + .cx-herofig__row { margin-top: 10px; }
.cx-herofig + .flx-row, .cx-herofig + .flx-fact { box-shadow: inset 0 1px 0 var(--hairline); }   /* EN: drawn inside the row, so the row keeps its height. VN: vẽ bên trong hàng, nên hàng giữ nguyên chiều cao. */
/* EN: Stacked column (C15): one 10px column whose segments stack from the baseline up, 1px apart. --h is the
       column's height in the plot; each segment's --share is its part of the column.
   VN: Cột xếp chồng (C15): một cột 10px có các đoạn xếp từ đường gốc lên, cách nhau 1px. --h là chiều cao của cột
       trong vùng vẽ; --share của mỗi đoạn là phần của nó trong cột. */
.cx-vstack { display: flex; flex-direction: column-reverse; gap: 1px; width: 10px; height: var(--h, 0%); flex-shrink: 0; }
.cx-vstack > span { flex: 0 0 var(--share, auto); background: var(--series, var(--ink)); }
.cx-vstack > span.is-rest { flex: 1 1 0; }
/* EN: Range columns (C16): bars hang from where they start (--at, from the top of the plot) for their height (--h),
       above and below a zero line; the plot has no baseline rule of its own.
   VN: Cột khoảng (C16): cột treo từ điểm bắt đầu (--at, tính từ đỉnh vùng vẽ) với chiều cao (--h), trên và dưới
       đường số không; vùng vẽ không có vạch đường gốc riêng. */
.cx-cols-chart--range { align-items: stretch; border-bottom: none; }
.cx-cols-chart--range .cx-col { align-items: flex-start; }
.cx-cols-chart--range .cx-vbar { position: relative; top: var(--at, 0%); }


/* EN: Two statuses of one record, its own and the one in effect, with the caption between them (C24).
   VN: Hai trạng thái của một bản ghi, của chính nó và trạng thái đang có hiệu lực, với chú thích ở giữa (C24). */
.cx-statuspair { display: inline-flex; align-items: center; gap: 8px; }
.cx-statuspair__by { font-family: var(--font-mono); font-size: 9px; line-height: 1; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }

/* EN: A computed answer beside the button that asked for it: the outcome's status, then why (C35).
   VN: Câu trả lời được tính bên cạnh nút đã yêu cầu nó: trạng thái kết quả, rồi lý do (C35). */
.cx-outcome { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cx-outcome__why { font-size: 13px; line-height: 1.45; color: var(--ink-soft); }

/* EN: C87 flow diagram: lanes, boxes, lines and the live states of one case. The product places the geometry; every look is here.
   VN: C87 sơ đồ quy trình: làn, ô, đường nối và trạng thái trực tiếp của một hồ sơ. Sản phẩm đặt hình học; mọi diện mạo nằm ở đây. */
.cx-flow { display: block; font-family: var(--font-body); }
.cx-flow__lane { fill: var(--card); }
.cx-flow__lane.is-alt { fill: var(--field); }
.cx-flow__lanehead { fill: var(--ink); }
.cx-flow__lanetext { fill: var(--n-000); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; text-anchor: middle; }
.cx-flow__edge { fill: none; stroke: var(--border); stroke-width: 1; }
.cx-flow__edge.is-on { stroke: var(--ink); stroke-width: 1.5; }
.cx-flow__head { fill: var(--border); }
.cx-flow__head.is-on { fill: var(--ink); }
.cx-flow__box { cursor: pointer; outline: none; }
.cx-flow--still .cx-flow__box { cursor: default; }
.cx-flow__shape { fill: var(--card); stroke: var(--border); stroke-width: 1; }
.cx-flow__label { fill: var(--ink-mid); font-size: 12px; text-anchor: middle; }
.cx-flow--still .cx-flow__label, .cx-flow__box.is-visited .cx-flow__label, .cx-flow__box.is-here .cx-flow__label, .cx-flow__box.is-selected .cx-flow__label { fill: var(--ink); }
.cx-flow__box.is-visited .cx-flow__shape { stroke: var(--ink); }
.cx-flow__box.is-ok .cx-flow__shape { fill: var(--credit-wash); stroke: var(--credit); }
.cx-flow__box.is-bad .cx-flow__shape { fill: var(--debit-wash); stroke: var(--debit); }
/* EN: The start stays ink whatever state a live case gives it, so its white label is never lost on a wash.
   VN: Ô bắt đầu luôn giữ màu mực dù hồ sơ trực tiếp gán trạng thái nào, để nhãn trắng không bao giờ chìm vào nền nhạt. */
.cx-flow__box.is-start .cx-flow__shape { fill: var(--ink); stroke: var(--ink); }
.cx-flow__box.is-start .cx-flow__label { fill: var(--n-000); font-weight: 500; }
.cx-flow__box.is-here .cx-flow__shape { stroke: var(--ink); stroke-width: 2; }
.cx-flow__box.is-selected .cx-flow__shape, .cx-flow__box:focus-visible .cx-flow__shape { stroke: var(--brand); stroke-width: 2; }
.cx-flow__count { fill: var(--ink); }
.cx-flow__counttext { fill: var(--n-000); font-family: var(--font-mono); font-size: 10px; text-anchor: middle; }
.cx-flow__tag { fill: var(--field); stroke: var(--rule); stroke-width: 1; }
.cx-flow__tagtext { fill: var(--ink); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; text-anchor: middle; }
.cx-flow__here { fill: var(--brand); }
.cx-flow__heretext { fill: var(--ink); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; }
