/* =====================================================================
   flexo-components.css: every component the product and the console share.

   EN: Each class carries its real values, so a build applies a decision
       instead of re-making it. flexo.md gives every component an ID, its
       HTML and its rules; this sheet is where the values live. Load order:
         flexo-tokens.css → flexo-components.css → flexo-spectrum.css → flexo-console.css
   VN: Mỗi lớp mang giá trị thật, để bản dựng áp dụng một quyết định thay vì
       quyết định lại. flexo.md cho mỗi thành phần một mã, HTML và quy tắc;
       bảng kiểu này là nơi giữ giá trị. Thứ tự tải như trên.

   EN: Rules that bind any use of this file.
       1. Never redefine a .flx- class in a product. If it does not fit, ask.
       2. Never add a colour, size, padding, duration or easing that is not
          in flexo-tokens.css.
       3. Heights are arithmetic: padding is declared, line-height is pinned.
   VN: Quy tắc ràng buộc mọi cách dùng tệp này.
       1. Không bao giờ định nghĩa lại lớp .flx- trong sản phẩm. Không vừa thì hỏi.
       2. Không thêm màu, cỡ, đệm, thời lượng hay đường cong nào ngoài flexo-tokens.css.
       3. Chiều cao là số học: đệm được khai báo, line-height được ghim.
   ===================================================================== */

:root {
  /* EN: The z-index scale: eight surface layers, nothing outside them (§2.9).
     VN: Thang z-index: tám lớp bề mặt, không gì nằm ngoài (§2.9). */
  --flx-z-content: 1;
  --flx-z-menu: 30;        /* EN: dropdowns anchored in content. VN: bảng thả neo trong nội dung. */
  --flx-z-header: 40;      /* EN: content overlays pass UNDER it. VN: lớp phủ nội dung đi DƯỚI nó. */
  --flx-z-header-pop: 42;  /* EN: an overlay anchored in the header. VN: lớp phủ neo trong thanh đầu. */
  --flx-z-curtain: 45;     /* EN: above the header: the curtain dims the whole frame. VN: trên thanh đầu: tấm màn làm tối cả khung. */
  --flx-z-overlay: 50;     /* EN: drawer, dialog. VN: ngăn kéo, hộp thoại. */
  --flx-z-toast: 60;       /* EN: toast and tooltip: above everything in the product. VN: thông báo và chú giải: trên mọi thứ trong sản phẩm. */
  --flx-z-site: 200;       /* EN: the design-system site's own tab bar. Never used by a product. VN: thanh tab của trang hệ thống thiết kế. Sản phẩm không bao giờ dùng. */

  --flx-ease: cubic-bezier(0.2, 0, 0, 1);
  --flx-ease-in: cubic-bezier(0.2, 0.9, 0.24, 1);
  --flx-ease-out: cubic-bezier(0.4, 0, 1, 1);
  --flx-dur: 420ms;
  --flx-dur-overlay: 320ms;
  --flx-dur-touch: 120ms;
}

/* ---------------------------------------------------------------------
   1. TYPE: the seventeen roles (§2.4). There is no eighteenth.
   --------------------------------------------------------------------- */

.flx-display-xl, .flx-display-l, .flx-display-m,
.flx-title-l, .flx-title-m, .flx-title-s { font-family: 'Space Grotesk', sans-serif; }

.flx-display-xl { font-size: 96px; font-weight: 300; letter-spacing: -0.045em; line-height: 1; }
.flx-display-l  { font-size: 54px; font-weight: 300; letter-spacing: -0.04em;  line-height: 1.05; }
.flx-display-m  { font-size: 34px; font-weight: 300; letter-spacing: -0.03em;  line-height: 1.08; margin: 0; }   /* EN: weight 300; build 39 shipped 500 by mistake. VN: độ đậm 300; build 39 phát hành nhầm 500. */
.flx-title-l    { font-size: 22px; font-weight: 500; letter-spacing: -0.02em;  line-height: 1.25; }
.flx-title-m    { font-size: 16px; font-weight: 500; letter-spacing: -0.02em;  line-height: 1.3; }
.flx-title-s    { font-size: 15px; font-weight: 500; letter-spacing: -0.02em;  line-height: 1.15; }

.flx-body    { font-family: 'IBM Plex Sans', sans-serif; font-size: 14px; line-height: 1.55; }
.flx-body-l  { font-family: 'IBM Plex Sans', sans-serif; font-size: 15px; line-height: 1.45; }
.flx-body-s  { font-family: 'IBM Plex Sans', sans-serif; font-size: 13px; line-height: 1; }
.flx-body-xs { font-family: 'IBM Plex Sans', sans-serif; font-size: 12px; line-height: 1; }
.flx-prose   { font-family: 'IBM Plex Sans', sans-serif; font-size: 14px; line-height: 1.65; color: var(--ink-soft); text-wrap: pretty; }
/* EN: C84 · Prose. What a paragraph of running text may hold: a link, a list, a quote, a rule, a keyboard key. Blocks
       inside one prose container stand one line apart. A link is the signal blue over a 1px line of the same blue;
       a list is indented 18px and never deeper than two levels; a quote stands behind a 1px border.
   VN: C84 · Văn bản. Những gì một đoạn văn có thể chứa: liên kết, danh sách, trích dẫn, vạch ngang, phím bàn phím. Các
       khối trong cùng một vùng văn bản cách nhau một dòng. Liên kết mang màu xanh tín hiệu trên một vạch 1px cùng
       màu; danh sách lùi vào 18px và không sâu quá hai cấp; trích dẫn đứng sau một đường viền 1px. */
/* EN: The reset is written with :where so it weighs no more than the gap rule below it (3.6.1). Written with :is it
       weighed one element more, took the 14px away from every paragraph and list after another block, and the
       text touched the code block, table or paragraph above it.
   VN: Lệnh đặt lại được viết bằng :where để nó không nặng hơn quy tắc khoảng cách bên dưới (3.6.1). Viết bằng :is thì
       nó nặng hơn một phần tử, lấy mất 14px của mọi đoạn văn và danh sách đứng sau một khối khác, và chữ dính vào
       khối mã, bảng hay đoạn văn phía trên. */
.flx-prose > :where(p, ul, ol, blockquote) { margin: 0; }
.flx-prose > * + * { margin-top: 14px; }
.flx-prose a { color: var(--signal); text-decoration: none; border-bottom: 1px solid var(--signal); }
.flx-prose :is(ul, ol) { padding-left: 18px; }
.flx-prose :is(ul, ol) :is(ul, ol) { margin: 0; }
.flx-prose ol > li::marker { font-family: 'Space Grotesk', sans-serif; font-variant-numeric: tabular-nums; }
.flx-prose blockquote { padding: 4px 0 4px 18px; border-left: 1px solid var(--border); }
.flx-prose hr { margin: 24px 0; border: none; border-top: 1px solid var(--hairline); }
/* EN: Code inside a sentence, and the one table whose cells are sentences (C84). VN: Mã trong một câu, và bảng duy nhất có ô là câu văn (C84). */
.flx-prose h3 { margin-top: 24px; font-family: 'Space Grotesk', sans-serif; font-size: 15px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); }   /* EN: a sub-heading inside a section is title-s (C84). VN: tiêu đề phụ trong một mục là title-s (C84). */
.flx-prose code { font-family: 'JetBrains Mono', monospace; font-size: 13px; padding: 1px 5px; background: var(--field); border: 1px solid var(--rule); }
.flx-prose table { width: 100%; border-collapse: collapse; }
.flx-prose th { padding: 10px 16px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; font-family: 'JetBrains Mono', monospace; font-size: 9px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1; color: var(--ink); }
.flx-prose td { padding: 10px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; font-size: 13px; line-height: 1.45; color: var(--ink-soft); }
.flx-kbd { display: inline-block; padding: 5px 9px; border: 1px solid var(--border); border-radius: 2px; font-family: 'JetBrains Mono', monospace; font-size: 11px; line-height: 1; color: var(--ink-soft); white-space: nowrap; }

/* EN: C82 · One-time code. One box per digit, so the reader sees how many are owed and how many are in. The digit
       is a figure, in the display face. A box holding a digit takes the ink border; the box in focus the brand one.
   VN: C82 · Mã dùng một lần. Mỗi chữ số một ô, để người đọc thấy còn thiếu bao nhiêu và đã nhập bao nhiêu. Chữ số là
       một con số, dùng phông hiển thị. Ô đã có chữ số nhận viền mực; ô đang có tiêu điểm nhận viền thương hiệu. */
.flx-otp { display: flex; gap: 8px; }
.flx-otp__box { width: 46px; height: 52px; padding: 0; border: 1px solid var(--border); border-radius: 1px; background: var(--card); color: var(--ink); font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 300; line-height: 1; text-align: center; font-variant-numeric: tabular-nums; outline: none; transition: border-color var(--flx-dur) var(--flx-ease); }
.flx-otp__box.is-filled { border-color: var(--ink); }
.flx-otp__box:focus { border-color: var(--brand); }
.flx-otp.is-error .flx-otp__box { border-color: var(--debit); }

/* EN: C83 · Stepper. A small whole number set one step at a time: 40px cells for minus and plus around a 68px value,
       as tall as a field so it sits in a form grid. A cell at its bound goes inert.
   VN: C83 · Bộ tăng giảm. Một số nguyên nhỏ được đặt từng bước một: hai ô 40px cho trừ và cộng quanh giá trị rộng 68px,
       cao bằng một ô nhập để nằm vừa trong lưới biểu mẫu. Ô chạm giới hạn thì thành trơ. */
.flx-stepper { display: inline-flex; align-items: stretch; align-self: flex-start; width: max-content; height: 42px; border: 1px solid var(--border); border-radius: 2px; background: var(--card); }
.flx-stepper__btn { width: 40px; padding: 0; border: none; background: transparent; color: var(--ink); font-family: 'JetBrains Mono', monospace; font-size: 14px; line-height: 1; cursor: pointer; transition: background var(--flx-dur) var(--flx-ease), color var(--flx-dur) var(--flx-ease); }
.flx-stepper__btn:hover { background: var(--tint); color: var(--tint-ink); }
.flx-stepper__btn[disabled] { background: transparent; color: var(--ink-ghost); cursor: default; }
.flx-stepper__value { width: 68px; display: flex; align-items: center; justify-content: center; border-left: 1px solid var(--hairline); border-right: 1px solid var(--hairline); font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); }

 /* EN: C85 · Range. A value inside known bounds: the label and its figure above a 4px track, the chosen part in brand
       blue up to --fill, which the behaviour script keeps true; the handle is the toggle's square knob.
   VN: C85 · Thanh trượt. Một giá trị trong giới hạn đã biết: nhãn và con số của nó phía trên rãnh 4px, phần đã chọn
       màu xanh thương hiệu tới --fill, do script hành vi giữ cho đúng; tay nắm là núm vuông của công tắc. */
.flx-range { display: flex; flex-direction: column; }
.flx-range__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.flx-range__value { display: flex; flex-shrink: 0; }   /* EN: the figure keeps its width; the label gives way. VN: con số giữ bề rộng; nhãn nhường chỗ. */
.flx-range__input { -webkit-appearance: none; appearance: none; width: 100%; height: 16px; margin: 0; padding: 0; background: transparent; cursor: pointer; }
.flx-range__input::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(to right, var(--brand) 0 var(--fill, 0%), var(--track) var(--fill, 0%) 100%); }
.flx-range__input::-moz-range-track { height: 4px; background: linear-gradient(to right, var(--brand) 0 var(--fill, 0%), var(--track) var(--fill, 0%) 100%); }
.flx-range__input::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; margin-top: -6px; border: 1px solid var(--brand); border-radius: 1px; background: var(--brand); transition: border-color var(--t-feedback) var(--ease); }
.flx-range__input::-moz-range-thumb { width: 16px; height: 16px; box-sizing: border-box; border: 1px solid var(--brand); border-radius: 1px; background: var(--brand); transition: border-color var(--t-feedback) var(--ease); }
.flx-range__input:hover::-webkit-slider-thumb, .flx-range__input:focus-visible::-webkit-slider-thumb { border-color: var(--ink); }
.flx-range__input:hover::-moz-range-thumb, .flx-range__input:focus-visible::-moz-range-thumb { border-color: var(--ink); }
.flx-range__input:focus-visible { outline: none; }
.flx-range__input:disabled { cursor: default; --brand: var(--ink-ghost); }
.flx-range__ends { display: flex; justify-content: space-between; margin-top: 6px; font-family: 'JetBrains Mono', monospace; font-size: 10px; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink-ghost); }

/* EN: C86 · Progress. A 4px track with an ink fill to --share; amber when the screen marks a limit as near; a label
       of what it measures after it.
   VN: C86 · Tiến độ. Rãnh 4px với phần tô màu mực tới --share; màu hổ phách khi màn hình đánh dấu giới hạn sắp chạm;
       nhãn nói nó đo cái gì đứng sau. */
.flx-progress { flex: 1; min-width: 0; height: 4px; background: var(--track); }
.flx-progress__fill { display: block; width: var(--share, 0%); height: 100%; background: var(--ink); transition: width var(--t-feedback) var(--ease); }
.flx-progress.is-near .flx-progress__fill { background: var(--pending); }
.flx-progress-row { display: flex; align-items: center; gap: 12px; }
.flx-progress__label { flex-shrink: 0; font-family: 'JetBrains Mono', monospace; font-size: 10px; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink-mid); }

.flx-mono-value { font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1; font-variant-numeric: tabular-nums; }
.flx-mono-meta  { font-family: 'JetBrains Mono', monospace; font-size: 11px; line-height: 1; }
.flx-mono-label { font-family: 'JetBrains Mono', monospace; font-size: 10px; line-height: 1; letter-spacing: 0.14em; text-transform: uppercase; }
.flx-mono-micro { font-family: 'JetBrains Mono', monospace; font-size: 9px;  line-height: 1; letter-spacing: 0.14em; text-transform: uppercase; }

/* EN: The wordmark is artwork, not type: four named sizes, and it carries
       data-flx="wordmark" so the type audit can skip it.
   VN: Chữ thương hiệu là hình vẽ, không phải chữ: bốn cỡ có tên, và mang
       data-flx="wordmark" để phép kiểm cỡ chữ bỏ qua. */
.flx-wordmark { font-family: 'Space Grotesk', sans-serif; font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.flx-wordmark--96 { font-size: 96px; font-weight: 300; letter-spacing: -0.055em; }
.flx-wordmark--44 { font-size: 44px; }
.flx-wordmark--22 { font-size: 22px; }
.flx-wordmark--16 { font-size: 16px; }

.flx-w-medium { font-weight: 500; }
.flx-w-bold   { font-weight: 700; }

/* EN: Quiet text is a solid neutral, never an opacity (§2.3). The four
       -dim- names are kept so older markup resolves to the same greys.
   VN: Chữ dịu là màu trung tính đặc, không bao giờ là độ mờ (§2.3). Bốn tên
       -dim- được giữ để mã cũ ra đúng các màu xám này. */
.flx-ink-soft,  .flx-dim-70, .flx-dim-62 { color: var(--ink-soft); }
.flx-ink-faint, .flx-dim-45 { color: var(--ink-faint); }
.flx-ink-ghost, .flx-dim-30 { color: var(--ink-ghost); }

/* EN: THE TINT SCOPE. The tint is a light surface wherever it falls, so anything
       tinted re-pins the ink roles to their light values. No child of a
       tinted element then needs its colour named.
   VN: PHẠM VI SẮC PHỦ. Sắc phủ là bề mặt sáng dù rơi vào đâu, nên thứ gì
       được phủ sắc sẽ ghim lại các vai trò mực về giá trị sáng. Nhờ đó không
       phần tử con nào cần nêu màu riêng. */
.flx-tinted,
.flx-row:not(.is-static):hover,
.flx-row.is-selected,
.flx-popover__row:hover,
.flx-chip:hover,
.flx-verb:hover,
.flx-rail__cell:hover {
  --ink: var(--n-900);
  --ink-soft: var(--n-600);
  --ink-mid: var(--n-500);
  --ink-faint: var(--n-400);
  --ink-ghost: var(--n-300);
}

/* ---------------------------------------------------------------------
   2. CARD and its title bar (C06). Three grounds: surface, bar, cell.
   --------------------------------------------------------------------- */

.flx-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0;
  box-shadow: var(--shadow-card);   /* EN: never changes on hover. VN: không đổi khi rê chuột. */
}

.flx-card-header {
  display: flex;
  align-items: center;
  height: 45px;   /* EN: 44 of content + its 1px rule, so the icon cell stays square. VN: 44 nội dung + vạch 1px, để ô biểu tượng luôn vuông. */
  background: var(--n-050);   /* EN: one ramp step past --field, so a card's title bar reads as its head (Chris, 19 Nov 2026). VN: hơn --field một bậc, để thanh tiêu đề của thẻ đọc ra là phần đầu của nó (Chris, 19/11/2026). */
  border-bottom: 1px solid var(--rule);
  flex-shrink: 0;
}
.flx-card-header__cell {
  width: 44px;
  flex-shrink: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--n-100);   /* EN: one ramp step past the title bar it sits in (Chris, 19 Nov 2026). VN: hơn thanh tiêu đề chứa nó một bậc (Chris, 19/11/2026). */
  border-right: 1px solid var(--rule);
}
.flx-card-header__cell svg { width: 18px; height: 18px; stroke-width: 1.6; }
.flx-card-header__title {
  flex: 1 1 auto;   /* EN: the title is the last thing in the bar to give up width: the trailing note is cut first. VN: tiêu đề là thứ cuối cùng trong thanh nhường chiều rộng: ghi chú ở cuối bị cắt trước. */
  min-width: 0;
  padding: 0 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.flx-card-header__trail {
  flex: 0 1000 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);        /* EN: a count or note; a verb in the bar is .flx-verb. VN: số đếm hoặc ghi chú; động từ trong thanh là .flx-verb. */
  white-space: nowrap;
}
/* EN: An action cell: a 44px trailing square holding one glyph that acts on the card (grow a chart).
   VN: Ô hành động: ô vuông 44px ở cuối chứa một glyph tác động lên thẻ (phóng to biểu đồ). */
.flx-card-header--plain { padding-left: 16px; gap: 12px; }   /* EN: a bar with no icon cell: an endpoint's bar leads with its method chip (C46). VN: thanh không có ô biểu tượng: thanh của endpoint mở đầu bằng chip phương thức (C46). */
.flx-card-header .cx-legend { padding-right: 16px; }
.flx-card-header__spacer { flex: 1; }           /* EN: pushes what follows to the bar's trailing edge. VN: đẩy phần theo sau về mép cuối của thanh. */
.flx-card-header__figure { padding-right: 16px; display: flex; align-items: center; }
.flx-card-header__action { width: 44px; flex-shrink: 0; align-self: stretch; display: flex; align-items: center; justify-content: center; padding: 0; border: none; border-left: 1px solid var(--rule); background: transparent; color: var(--ink-soft); cursor: pointer; transition: background var(--flx-dur) var(--flx-ease), color var(--flx-dur) var(--flx-ease); }
.flx-card-header__action svg { width: 18px; height: 18px; stroke-width: 1.6; }
.flx-card-header__action:hover { background: var(--tint); color: var(--brand); }
/* EN: C06 · Refresh. The cell is disabled while the screen is read again, so a second press never starts a second read.
   VN: C06 · Làm mới. Ô bị vô hiệu khi màn hình đang được đọc lại, để lần bấm thứ hai không bao giờ mở lần đọc thứ hai. */
.flx-card-header__action:disabled { cursor: default; pointer-events: none; }
.flx-card-header__help {          /* EN: a 44px trailing cell holding the help mark (C68). VN: ô cuối 44px chứa dấu trợ giúp (C68). */
  width: 44px; flex-shrink: 0; align-self: stretch;
  display: grid; place-items: center;
}

/* ---------------------------------------------------------------------
   3. TABLE (C22): one table, everywhere.
   Row heights: 33 · 35 · 41 single-line, 52 tiled, 63 two-line.
   --------------------------------------------------------------------- */

.flx-colhead {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.flx-colhead__cell {
  padding: 13px 16px;             /* EN: 35px band: 13 + a 9px pinned line + 13. VN: dải 35px: 13 + dòng 9px đã ghim + 13. */
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;   /* EN: column headers are bold (Chris, 19 Nov 2026); every page loads mono 700 for them. VN: tiêu đề cột in đậm (Chris, 19/11/2026); mọi trang tải mono 700 cho chúng. */
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  min-width: 0;
}
/* EN: The sorted column carries its arrow: up for ascending (A to Z, small to large, old to new), down for descending.
   VN: Cột đang sắp xếp mang mũi tên của nó: lên là tăng dần (A tới Z, nhỏ tới lớn, cũ tới mới), xuống là giảm dần. */
.flx-colhead__cell.is-sorted { color: var(--ink); }
.flx-colhead__cell.is-sorted::after { content: ' ↓'; }
.flx-colhead__cell.is-sorted[data-dir="asc"]::after { content: ' ↑'; }
.flx-colhead__cell.is-actions { width: 44px; flex-shrink: 0; padding-left: 0; padding-right: 0; }
.flx-colhead__cell.is-icon, .flx-cell.is-icon { text-align: center; justify-content: center; }   /* EN: a column holding only a glyph or a block is centred. VN: cột chỉ chứa glyph hoặc khối thì căn giữa. */
.flx-colhead__cell.is-num { text-align: right; }

.flx-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--hairline);
  background: transparent;
  color: inherit;
  text-decoration: none;
  transition: background var(--flx-dur) var(--flx-ease), color var(--flx-dur) var(--flx-ease), box-shadow var(--flx-dur) var(--flx-ease);
}
.flx-row > * { padding: 14px 16px; }                 /* 41px */
.flx-row--tiled > * { padding: 14px 16px; }          /* 52px: the 24px tile sets it */
.flx-row--child > * { padding: 11px 16px; }          /* 35px */
.flx-row--drawer > * { padding: 10px 16px; }         /* 33px */
.flx-row--two-line > * { padding: 17px 16px; }       /* 63px: 13 + 4 + 12 */
/* EN: The height law gives a row its height from its 13px text. A row whose cells hold only a 9px label and a
   block has no 13px line, so each row type also states its height as a floor: the ladder holds whatever is in it.
   VN: Luật chiều cao cho hàng chiều cao từ dòng chữ 13px. Hàng mà các ô chỉ chứa nhãn 9px và một khối thì không có
   dòng 13px, nên mỗi loại hàng còn nêu chiều cao của nó như một mức sàn: thang chiều cao đúng với mọi nội dung. */
.flx-row { min-height: 42px; }
.flx-row--tiled { min-height: 53px; }
.flx-row--child { min-height: 36px; }
.flx-row--drawer { min-height: 34px; }
.flx-row--two-line { min-height: 64px; }

/* EN: A status cell gives back 6px so a 21px block never changes a row.
   VN: Ô trạng thái trả lại 6px để khối 21px không bao giờ đổi chiều cao hàng. */
/* EN: A cell that holds a block (a status, a Yes / No, a Spectrum chip) centres it and gives back the padding the
   block's height would add, so the row keeps its height. The class says it; :has() catches the cell that forgot.
   VN: Ô chứa một khối (trạng thái, Có / Không, chip Spectrum) căn giữa khối và trả lại phần đệm mà chiều cao khối
   sẽ cộng thêm, nên hàng giữ nguyên chiều cao. Lớp nói rõ điều đó; :has() bắt ô đã quên lớp. */
.flx-row > :is(.flx-cell--status, .flx-cell:has(> .flx-status, > .cx-ch)) { padding-top: 8px; padding-bottom: 8px; }
.flx-row--child > :is(.flx-cell--status, .flx-cell:has(> .flx-status, > .cx-ch)) { padding-top: 5px; padding-bottom: 5px; }
.flx-row--two-line > :is(.flx-cell--status, .flx-cell:has(> .flx-status, > .cx-ch)) { padding-top: 11px; padding-bottom: 11px; }
.flx-row--drawer > :is(.flx-cell--status, .flx-cell:has(> .flx-status, > .cx-ch)) { padding-top: 6px; padding-bottom: 6px; }
/* EN: A lead cell holding a 20px tile gives back padding the same way, so the row stays 33 or 35.
   VN: Ô đầu chứa ô vuông 20px cũng trả lại đệm như vậy, để hàng giữ 33 hoặc 35. */
.flx-row--drawer > .flx-cell--lead { padding-top: 6px; padding-bottom: 6px; }
.flx-row--child > .flx-cell--lead { padding-top: 7px; padding-bottom: 7px; }

.flx-cell { min-width: 0; font-family: 'IBM Plex Sans', sans-serif; font-size: 13px; line-height: 1; }
/* EN: A cell holding a field in a row being edited: 7px above and below, so a 42px field makes a 56px row, and a select's panel is let out (C22).
   VN: Ô chứa một ô nhập trong hàng đang sửa: 7px trên và dưới, để ô nhập 42px tạo hàng 56px, và bảng chọn được thoát ra ngoài (C22). */
.flx-row > .flx-cell--field { padding-top: 7px; padding-bottom: 7px; overflow: visible; }
/* EN: The one cell that wraps: a before or after value shown whole (C79). VN: Ô duy nhất được xuống dòng: giá trị trước hoặc sau hiện trọn vẹn (C79). */
.flx-row > .flx-cell--wrap { align-self: flex-start; white-space: normal; overflow-wrap: anywhere; line-height: 1.45; contain: inline-size; }   /* EN: its width comes from the row, never from its text, so a long value wraps instead of widening the table. VN: độ rộng lấy từ hàng, không bao giờ từ chữ, để giá trị dài xuống dòng thay vì làm bảng rộng ra. */
/* EN: A group band leads the rows of one group and never answers the pointer (C22). VN: Dải nhóm dẫn đầu các hàng của một nhóm và không bao giờ phản hồi con trỏ (C22). */
.flx-row--group { gap: 12px; min-height: 35px; background: var(--field); }   /* EN: 12 + 10 + 12 and its rule. VN: 12 + 10 + 12 và đường kẻ của nó. */
.flx-row--group > * { padding: 0; }
.flx-row.flx-row--group { padding: 12px 16px; font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1; }
.flx-row__count { color: var(--ink-faint); }
/* EN: The name column names the record the card is about (a customer in Customers), so it is always weight 500: the eye
       finds the record before its facts (Chris, 26 Nov 2026).
   VN: Cột tên gọi tên bản ghi mà thẻ nói về (một khách hàng trong Khách hàng), nên luôn ở độ đậm 500: mắt tìm thấy bản
       ghi trước các dữ kiện của nó (Chris, 26/11/2026). */
.flx-cell--name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.flx-cell--meta { font-family: 'JetBrains Mono', monospace; font-size: 11px; line-height: 1; color: var(--ink-soft); }
.flx-cell--num  { text-align: right; font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1; font-variant-numeric: tabular-nums; }
.flx-cell--code { font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1; font-variant-numeric: tabular-nums; }   /* EN: a machine value that is the row's subject: an account number, a parameter name. VN: giá trị máy là chủ thể của hàng: số tài khoản, tên tham số. */
.flx-cell--label { font-family: 'JetBrains Mono', monospace; font-size: 10px; line-height: 1; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }   /* EN: a fact's label in a card row. VN: nhãn của dữ kiện trong hàng của thẻ. */
:is(.flx-cell--status, .flx-cell:has(> .flx-status, > .cx-ch)) { display: flex; align-items: center; }
.flx-cell--lead { display: flex; align-items: center; gap: 14px; }   /* EN: a tile, then the row's name. VN: một ô vuông, rồi tên của hàng. */
.flx-cell__sub  { display: block; font-size: 12px; line-height: 1; margin-top: 4px; color: var(--ink-soft); font-weight: 400; }
/* EN: THE FIRST LINE OF TWO IS BOLD (Chris, 17 Nov 2026; first built on Noba FX). Where a row says a name and then,
       under it, a line that explains it, the name is weight 500 in full ink and the explanation is 400 in soft
       ink. The rule is carried by the sheet, from the second line's presence, so no screen sets a weight.
   VN: DÒNG ĐẦU TRONG HAI DÒNG ĐƯỢC TÔ ĐẬM (Chris, 17/11/2026; dựng lần đầu trên Noba FX). Khi một hàng nêu tên rồi, bên
       dưới, một dòng giải thích, thì tên có độ đậm 500 với mực đậm còn dòng giải thích là 400 với mực nhạt. Quy tắc
       do bảng kiểu đảm nhận, dựa vào sự có mặt của dòng thứ hai, nên không màn hình nào phải đặt độ đậm. */
:is(.flx-cell, .flx-cell > span):has(> .flx-cell__sub) { font-weight: 500; }

/* EN: Column widths: a closed ladder, so a table is sized without a style of its own. The class goes on the
       header cell and on the same cell of every row. One column of a table takes .flx-w-grow.
   VN: Chiều rộng cột: một thang đóng, để bảng được định cỡ mà không cần kiểu riêng. Lớp đặt trên ô tiêu đề
       và trên ô tương ứng của mọi hàng. Một cột của bảng nhận .flx-w-grow. */
.flx-w-grow { flex: 1 1 0; min-width: 0; }
.flx-w-44  { width: 44px;  flex: 0 0 44px; }
.flx-w-64  { width: 64px;  flex: 0 0 64px; }
.flx-w-88  { width: 88px;  flex: 0 0 88px; }
.flx-w-104 { width: 104px; flex: 0 0 104px; }
.flx-w-120 { width: 120px; flex: 0 0 120px; }
.flx-w-140 { width: 140px; flex: 0 0 140px; }
.flx-w-160 { width: 160px; flex: 0 0 160px; }
.flx-w-180 { width: 180px; flex: 0 0 180px; }
.flx-w-200 { width: 200px; flex: 0 0 200px; }
.flx-w-220 { width: 220px; flex: 0 0 220px; }
.flx-w-260 { width: 260px; flex: 0 0 260px; }
.flx-w-320 { width: 320px; flex: 0 0 320px; }
.flx-w-380 { width: 380px; flex: 0 0 380px; }

/* EN: Row states (§C22). Every row answers the pointer with the tint and the
       2px brand bar, whether or not it opens something (Chris, 14 Nov 2026).
       A selected row keeps the bar when the pointer leaves.
   VN: Trạng thái hàng (§C22). Mọi hàng phản hồi con trỏ bằng sắc phủ và vạch
       xanh 2px, dù có mở gì hay không (Chris, 14/11/2026). Hàng được chọn giữ
       vạch khi con trỏ rời đi. */
.flx-row:not(.is-static):hover {
  background: var(--tint);
  color: var(--tint-ink);
  --tile-knockout: var(--tint);
  box-shadow: inset 2px 0 0 var(--brand);
}
.flx-row.is-clickable { cursor: pointer; }
.flx-row.is-selected {
  background: var(--tint);
  color: var(--tint-ink);
  --tile-knockout: var(--tint);
  box-shadow: inset 2px 0 0 var(--brand);
}
.flx-row.is-selected:hover { background: var(--tint-press); --tile-knockout: var(--tint-press); }
.flx-row.is-inert { cursor: default; }
/* EN: A changed row (C79): an amber bar on its leading edge over the amber at half its wash, so a change waiting for a
       decision is never mistaken for a row under the pointer or a selected one. It is a mark, not a state: under the
       pointer the row answers like every other (§2.11), and the amber returns when the pointer leaves (Chris, 20 Nov 2026).
   VN: Hàng đã thay đổi (C79): thanh hổ phách ở mép đầu trên nền hổ phách bằng nửa độ nhạt thường, để thay đổi đang chờ
       quyết định không bao giờ bị nhầm với hàng dưới con trỏ hay hàng được chọn. Đó là dấu, không phải trạng thái: dưới
       con trỏ hàng phản hồi như mọi hàng khác (§2.11), và màu hổ phách trở lại khi con trỏ rời đi (Chris, 20/11/2026). */
.flx-row.is-changed { background: var(--change-wash); box-shadow: inset 2px 0 0 var(--pending); }
/* EN: Its help mark says what changed, so it takes the row's amber instead of the faint of an optional explanation (C68;
       Chris, 20 Nov 2026: "the information glyph must be amber color"). Under the pointer it turns --brand like every mark.
   VN: Dấu trợ giúp của nó cho biết điều gì đã đổi, nên nó mang màu hổ phách của hàng thay vì màu nhạt của lời giải thích
       tùy chọn (C68; Chris, 20/11/2026: "glyph thông tin phải màu hổ phách"). Dưới con trỏ nó chuyển --brand như mọi dấu. */
.flx-row.is-changed .flx-help { color: var(--pending); }
.flx-row.is-changed .flx-help:hover, .flx-row.is-changed .flx-help:focus-visible { color: var(--brand); }
/* EN: A table's help column: a 44px cell that holds a help mark centred, and stays empty on a row with nothing to say, so
       the column holds (C68, C79).
   VN: Cột trợ giúp của bảng: ô 44px giữ dấu trợ giúp ở giữa, và để trống ở hàng không có gì để nói, nên cột vẫn giữ (C68, C79). */
.flx-row > .flx-cell--help { align-self: stretch; display: grid; place-items: center; padding: 0; }
/* EN: .is-static is a row that holds controls being edited: it never tints.
   VN: .is-static là hàng chứa ô đang được sửa: không bao giờ phủ sắc. */
.flx-row.is-static { cursor: default; }
.flx-row__empty { padding: 14px 16px; font-family: 'JetBrains Mono', monospace; font-size: 10px; line-height: 1; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }

/* EN: The icon column is square: the cell is 44px wide and never shorter.
   VN: Cột biểu tượng là hình vuông: ô rộng 44px và không bao giờ thấp hơn. */
[data-spine-row], .flx-row--spine { align-items: stretch; }
[data-spine-row] > [data-cell], .flx-row--spine > [data-cell] { min-height: 44px; align-self: stretch; }

/* EN: Resizable columns. A cell keeps to its column and ends in an ellipsis.
   VN: Cột đổi được kích thước. Ô giữ trong cột của nó và kết thúc bằng dấu ba chấm. */
[data-resizable] .flx-colhead__cell,
[data-resizable] .flx-row > :not(.flx-row__actions):not(.flx-menu):not(.flx-cell--field):not(.flx-cell--wrap) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* EN: A column the reader resized: its width is data, set on the header cell and on the same cell of every row.
   VN: Cột mà người đọc đã đổi kích thước: chiều rộng của nó là dữ liệu, đặt trên ô tiêu đề và ô tương ứng của mọi hàng. */
.flx-colhead__cell.is-sized, .flx-cell.is-sized { flex: 0 0 var(--col); width: var(--col); }
[data-resizable] .flx-colhead__cell { position: relative; }
/* EN: THE TABLE HEADER ANSWERS THE POINTER (Chris, 17 Nov 2026: "one of the most important elements"). While the
       pointer is on the header row the separation line of every column appears, full height, in --border. The
       header cell under the pointer takes the tint and full ink. The line under the pointer, or being dragged,
       turns --brand, and the cell being resized steps to --tint-press. The handles are added by the behaviour
       script to every table, so no screen writes one.
   VN: TIÊU ĐỀ BẢNG PHẢN HỒI CON TRỎ (Chris, 17/11/2026: "một trong những phần tử quan trọng nhất"). Khi con trỏ ở trên
       hàng tiêu đề, vạch phân cách của mọi cột hiện ra, cao hết hàng, màu --border. Ô tiêu đề dưới con trỏ nhận sắc
       phủ và mực đậm. Vạch dưới con trỏ, hoặc đang được kéo, chuyển sang --brand, và ô đang đổi kích thước lùi một
       bậc tới --tint-press. Các tay nắm do kịch bản hành vi thêm vào mọi bảng, nên không màn hình nào phải viết. */
.flx-colhead__cell { transition: background var(--flx-dur) var(--flx-ease), color var(--flx-dur) var(--flx-ease); }
[data-resizable] .flx-colhead__cell:not(.is-actions):hover { background: var(--tint); color: var(--tint-ink); }
.flx-colhead__cell[data-sort] { cursor: pointer; }
.flx-colhead__cell[data-sort]:focus-visible { outline: none; background: var(--tint); color: var(--tint-ink); box-shadow: inset 0 -1px 0 var(--brand); }
.flx-colhead__cell:has(> .flx-colresize.is-dragging) { background: var(--tint-press); color: var(--tint-ink); }
.flx-colresize { position: absolute; top: 0; right: 0; width: 9px; height: 100%; cursor: col-resize; touch-action: none; z-index: 1; }
.flx-colresize::after { content: ''; position: absolute; top: 0; bottom: 0; right: 0; width: 1px; background: var(--border); opacity: 0; transition: opacity var(--flx-dur) var(--flx-ease), background var(--flx-dur) var(--flx-ease); }
.flx-colhead:hover .flx-colresize::after { opacity: 1; }
.flx-colresize:hover::after, .flx-colresize.is-dragging::after { opacity: 1; background: var(--brand); }
body.is-col-resizing, body.is-col-resizing * { cursor: col-resize !important; user-select: none; }

/* ---- The mono verb (C30): a button with no box. It fills its band's height. */
.flx-verb {
  align-self: stretch;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 14px;
  background: transparent; border: none; border-radius: 0;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--flx-dur) var(--flx-ease), color var(--flx-dur) var(--flx-ease);
}
.flx-verb--advance { color: var(--signal); }
.flx-verb--return  { color: var(--ink); }
.flx-verb:hover    { background: var(--tint); color: var(--tint-ink); }
.flx-verb:active   { background: var(--tint-press); color: var(--tint-ink); }
.flx-verb[disabled], .flx-verb[aria-disabled="true"] { color: var(--ink-ghost); background: transparent; cursor: default; }
.flx-verb--close { padding: 4px 6px; align-self: center; background: var(--debit); color: var(--n-000); }   /* EN: the verb that closes an opened group (C60). VN: động từ đóng nhóm đã mở (C60). */
.flx-verb--close:hover { background: var(--ink); color: var(--on-ink); }

/* ---- The footer strip (C19): ONE band, two kinds of content. ---------- */
.flx-footer {
  height: 39px;   /* EN: 38 of content + the 1px rule above. VN: 38 nội dung + vạch 1px phía trên. */
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  background: var(--field);
  border-top: 1px solid var(--rule);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  flex-shrink: 0;
}
.flx-footer--drawer { height: 35px; font-size: 9px; }
.flx-footer--actions { height: auto; padding: 12px 16px; justify-content: flex-end; }
.flx-footer--copy { padding-right: 0; }          /* EN: a strip that ends in a copy cell. VN: dải kết thúc bằng một ô sao chép. */
.flx-footer .flx-copy { --copy-size: 38px; }
.flx-footer .flx-verb { margin: 0 -14px; }      /* EN: a verb in a strip sits flush with the strip's inset. VN: động từ trong dải nằm sát lề của dải. */   /* EN: a card whose footer holds a button (Add row). VN: thẻ có chân chứa một nút (Thêm hàng). */

/* ---- The pager (C27): numbered squares, centred; the range on the left.
   EN: Three tracks so the pager stays in the middle whatever the range reads.
   VN: Ba rãnh để bộ phân trang luôn ở giữa dù dòng phạm vi dài hay ngắn. */
.flx-pager { display: grid; grid-template-columns: 1fr auto 1fr; }
.flx-pager__range { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1; color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flx-pages { display: flex; align-items: center; gap: 6px; }
.flx-page {
  width: 34px; height: 34px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1; font-variant-numeric: tabular-nums;
  letter-spacing: 0; text-transform: none;   /* EN: a page number is a value: it does not take the strip's label tracking. VN: số trang là một giá trị: không nhận độ giãn chữ của nhãn trong dải. */
  background: var(--card); border: 1px solid var(--rule); border-radius: 2px;
  color: var(--n-700); text-decoration: none; cursor: pointer;
  transition: border-color var(--flx-dur) var(--flx-ease), color var(--flx-dur) var(--flx-ease), background var(--flx-dur) var(--flx-ease);
}
.flx-page svg { width: 14px; height: 14px; stroke-width: 1.6; }
.flx-page:hover, .flx-page:focus-visible { border-color: var(--ink); color: var(--ink); outline: none; }
.flx-page.is-current { background: var(--ink); border-color: var(--ink); color: var(--on-ink); pointer-events: none; }
.flx-page.is-inert { color: var(--ink-ghost); pointer-events: none; }   /* EN: keeps its place so the row never reflows. VN: giữ chỗ để hàng không bao giờ xô lệch. */
.flx-page--prev svg { transform: rotate(180deg); }
.flx-page-gap { font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1; color: var(--ink-faint); padding: 0 6px; }
.flx-drawer .flx-pager__range { font-size: 9px; }

/* ---- Tabs (C41): views of ONE record or ONE page. --------------------- */
.flx-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--rule); flex-shrink: 0; overflow-x: auto; }
.flx-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 0;
  border: none; background: transparent;
  font-family: 'IBM Plex Sans', sans-serif; font-size: 14px; line-height: 1;
  color: var(--ink-mid); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: color var(--flx-dur) var(--flx-ease), box-shadow var(--flx-dur) var(--flx-ease);
}
.flx-tab:hover, .flx-tab:focus-visible { color: var(--ink); outline: none; }
.flx-tab.is-on { color: var(--ink); font-weight: 500; box-shadow: inset 0 -1px 0 var(--ink); }
.flx-tab .flx-badge { margin: -2px 0; }   /* EN: an 18px badge must not make its tab taller than the others. VN: huy hiệu 18px không được làm tab của nó cao hơn các tab khác. */

/* ---------------------------------------------------------------------
   4. STATUS (C24): the block. One geometry, 21px, everywhere.
   EN: 5 + 9 + 5 of padding and line, + 2 of border = 21px, shorter than
       every row, so a status never moves a row. One status is one hue.
   VN: 5 + 9 + 5 đệm và dòng, + 2 viền = 21px, thấp hơn mọi hàng, nên trạng
       thái không bao giờ làm xê dịch hàng. Một trạng thái là một màu.
   --------------------------------------------------------------------- */

.flx-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  line-height: 1;
  border-radius: 0;
  font: inherit;
  vertical-align: middle;
}
.flx-status__sq { width: 6px; height: 6px; flex-shrink: 0; }
.flx-status__label {
  font-family: 'JetBrains Mono', monospace; font-size: 9px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  line-height: 1; white-space: nowrap;
}

.flx-status--credit  { background: var(--credit-wash); border: 1px solid var(--credit); color: var(--credit); }
.flx-status--credit  .flx-status__sq { background: var(--credit); }
.flx-status--credit  .flx-status__label { color: var(--credit); }

.flx-status--pending { background: var(--pending-wash); border: 1px solid var(--pending); color: var(--pending); }
.flx-status--pending .flx-status__sq { background: var(--pending); }
.flx-status--pending .flx-status__label { color: var(--pending); }

.flx-status--debit   { background: var(--debit-wash); border: 1px solid var(--debit); color: var(--debit); }
.flx-status--debit   .flx-status__sq { background: var(--debit); }
.flx-status--debit   .flx-status__label { color: var(--debit); }

.flx-status--info    { background: var(--info-wash); border: 1px solid var(--info); color: var(--info); }
.flx-status--info    .flx-status__sq { background: var(--info); }
.flx-status--info    .flx-status__label { color: var(--info); }

/* EN: "Off" is a state someone switched off, so it is ink, not the grey of
       "has not happened yet" (Chris, 15 Nov 2026).
   VN: "Tắt" là trạng thái do ai đó tắt đi, nên là màu mực, không phải màu xám
       của "chưa xảy ra" (Chris, 15/11/2026). */
.flx-status--off     { background: var(--off-wash); border: 1px solid var(--ink); color: var(--ink); }
.flx-status--off     .flx-status__sq { background: var(--ink); }
.flx-status--off     .flx-status__label { color: var(--ink); }

.flx-status-none { color: var(--ink-ghost); line-height: 1; }        /* EN: renders "—", never an empty wash. VN: hiện "—", không bao giờ là nền trống. */

/* EN: Yes / No (C62): the block with a 9px glyph in place of the square,
       one fixed width so a column of answers lines up.
   VN: Có / Không (C62): khối với glyph 9px thay cho ô vuông, một chiều rộng
       cố định để cột câu trả lời thẳng hàng. */
.flx-status--yn { width: 60px; justify-content: center; }
.flx-status--yn svg { width: 9px; height: 9px; stroke-width: 2.6; flex-shrink: 0; }

/* EN: A status offered as a choice (C63): the block grown to 33px.
   VN: Trạng thái được đưa ra để chọn (C63): khối lớn lên 33px. */
.flx-status--choice { padding: 11px 14px; gap: 8px; cursor: pointer; transition: background var(--flx-dur) var(--flx-ease), opacity var(--flx-dur) var(--flx-ease); }
.flx-status--choice.is-on.flx-status--credit  { background: var(--credit); }
.flx-status--choice.is-on.flx-status--debit   { background: var(--debit); }
.flx-status--choice.is-on.flx-status--pending { background: var(--pending); }
.flx-status--choice.is-on.flx-status--info    { background: var(--info); }
.flx-status--choice.is-on.flx-status--off     { background: var(--ink); }
.flx-status--choice.is-on .flx-status__sq    { background: var(--n-000); }
.flx-status--choice.is-on .flx-status__label { color: var(--n-000); }
.flx-status--choice.is-dim { opacity: 0.3; }
.flx-status--choice.is-dim:hover, .flx-status--choice.is-dim:focus-visible { opacity: 1; outline: none; }

.flx-keystrip { display: flex; flex-wrap: wrap; gap: 10px; padding: 10px 16px; background: var(--field); }
.flx-keystrip--bare { padding: 10px 0 0; background: none; }   /* EN: a key that sits directly under its bar, inside a padded body. VN: chú giải nằm ngay dưới thanh của nó, trong phần thân đã có đệm. */

/* EN: The count badge (C59): the one round shape in the system.
   VN: Huy hiệu đếm (C59): hình tròn duy nhất trong hệ thống. */
.flx-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px;
  background: var(--debit); color: var(--n-000);
  font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 500; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.flx-badge--waiting { background: var(--pending); color: var(--n-900); }   /* EN: dark figures: white on amber cannot be read. VN: chữ số tối: trắng trên hổ phách không đọc được. */

/* ---------------------------------------------------------------------
   5. TILE (C23): filled = the record exists, outlined = staged.
   EN: The fill is ink, or the event's own hue where the kind of event is
       the news (win, loss, transfer); the amount keeps the direction.
   VN: Nền là màu mực, hoặc màu của chính sự kiện khi loại sự kiện là điều
       cần báo (thắng, thua, chuyển khoản); số tiền giữ hướng tiền.
   --------------------------------------------------------------------- */

.flx-tile {
  width: 24px; height: 24px;
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink);
  color: var(--tile-knockout, var(--on-ink));
}
.flx-tile svg { width: 15px; height: 15px; stroke-width: 1.6; }   /* 0.62 × the side */
.flx-tile--sm { width: 20px; height: 20px; }
.flx-tile--sm svg { width: 13px; height: 13px; }
.flx-tile--lg { width: 32px; height: 32px; }
.flx-tile--lg svg { width: 20px; height: 20px; }
.flx-tile--credit  { background: var(--credit); }
.flx-tile--debit   { background: var(--debit); }
.flx-tile--pending { background: var(--pending); }
.flx-tile--none { background: var(--ink-faint); }
.flx-tile--outline { background: transparent; border: 1px solid currentColor; color: inherit; }
.flx-tile--outline.is-invalid { color: var(--debit); }

/* EN: The identity monogram: initials on --tile, never a button.
   VN: Chữ lồng danh tính: chữ viết tắt trên --tile, không bao giờ là nút. */
.flx-monogram {
  width: 28px; height: 28px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--tile); color: var(--tile-ink);
  font-family: 'JetBrains Mono', monospace; font-size: 10px; line-height: 1; letter-spacing: 0.06em; text-transform: uppercase;
}
.flx-monogram--row { width: 24px; height: 24px; font-size: 9px; }

/* EN: A flag is a flat 4:3 SVG, never an emoji. Three heights.
   VN: Cờ là SVG phẳng tỉ lệ 4:3, không bao giờ là emoji. Ba chiều cao. */
.flx-flag { display: inline-block; height: 14px; width: auto; aspect-ratio: 4 / 3; vertical-align: middle; flex-shrink: 0; }
.flx-flag--lead  { height: 21px; }
.flx-flag--title { height: 24px; }
.flx-flagged { display: inline-flex; align-items: center; gap: 8px; min-width: 0; vertical-align: middle; }   /* EN: a flag, then the word that names the place (C58). VN: lá cờ, rồi chữ gọi tên nơi đó (C58). */
.flx-flagged > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }   /* EN: in a narrow cell the word gives way, never the flag. VN: trong ô hẹp, chữ nhường chỗ, không bao giờ là lá cờ. */

/* ---------------------------------------------------------------------
   6. MONEY: the Ledger Figure (C54) and the signed amount (C55).
   --------------------------------------------------------------------- */

.flx-figure {
  display: inline-flex;
  align-items: baseline;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 300;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  line-height: 1.08;              /* EN: the height of one odometer wheel, so a still figure and a moving one are the same box. VN: chiều cao của một bánh số, để con số đứng yên và con số đang chạy cùng một hộp. */
  color: var(--ink);
  font-size: 32px;
}
.flx-figure--display { font-size: 64px; }
.flx-figure--title { font-size: 22px; }           /* EN: the net that leads a wave card's body (C75). VN: con số ròng đứng đầu phần thân của thẻ sóng (C75). */
.flx-figure--xl { font-size: 88px; }
.flx-figure__sym   { font-size: 0.5em; color: var(--ink-faint); margin-right: 0.06em; }
.flx-figure__sep   { color: var(--ink-mid); }
.flx-figure__cents { font-size: 0.58em; }
.flx-figure__code  { font-family: 'JetBrains Mono', monospace; font-size: 0.42em; color: var(--ink-faint); margin-left: 0.14em; letter-spacing: 0; }
.flx-figure--credit { color: var(--credit); }
/* EN: The moving figure (flexo-figure.js). Its parts are the still figure's parts; only the digits are wheels.
   A wheel is a 1ch window, one row tall, onto a strip of 0 to 9 and 0 again; --roll is how many rows the strip
   has turned, set by the script on every frame. The mask fades a digit as it enters and leaves the window.
   VN: Con số chuyển động (flexo-figure.js). Các bộ phận của nó là của con số đứng yên; chỉ các chữ số là bánh số.
   Bánh số là một ô cửa rộng 1ch, cao một hàng, nhìn vào dải số 0 đến 9 rồi lại 0; --roll là số hàng mà dải đã
   quay, do kịch bản đặt ở mỗi khung hình. Lớp mặt nạ làm mờ chữ số khi nó vào và rời ô cửa. */
.flx-figure--live { line-height: 1; transition: opacity 120ms linear; }
.flx-figure--live.is-fading { opacity: 0; }
.flx-figure__body { display: inline-flex; align-items: baseline; }
.flx-figure__wheel { display: inline-block; width: 1ch; height: 1.08em; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%); }
.flx-figure__strip { display: flex; flex-direction: column; will-change: transform; transform: translateY(calc(var(--roll, 0) * -1.08em)); }
.flx-figure__digit { height: 1.08em; display: flex; align-items: center; justify-content: center; line-height: 1; }
.flx-figure--debit  { color: var(--debit); }
.flx-figure--limit  { color: var(--signal); }
.flx-figure--over   { color: var(--debit); }
/* EN: In a coloured figure the separators keep the figure's hue at 55%.
   VN: Trong con số có màu, dấu phân cách giữ màu của con số ở 55%. */
.flx-figure--credit .flx-figure__sep, .flx-figure--debit .flx-figure__sep,
.flx-figure--limit .flx-figure__sep, .flx-figure--over .flx-figure__sep { color: color-mix(in srgb, currentColor 55%, transparent); }

.flx-amount { font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; color: inherit; }
.flx-amount--credit { color: var(--credit); }
.flx-amount--debit  { color: var(--debit); }
.flx-amount--void   { color: var(--ink-faint); text-decoration: line-through; }   /* EN: returned or reversed. VN: đã hoàn hoặc đảo. */
.flx-amount--none   { color: var(--ink-faint); }   /* EN: no amount: the dash that stands where one would be. VN: không có số tiền: dấu gạch đứng ở chỗ lẽ ra có số tiền. */
.flx-amount__code   { margin-left: 0.5em; color: var(--ink-faint); }
.flx-money { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }   /* EN: the amount, then its flag. VN: số tiền, rồi lá cờ của nó. */
/* EN: The flag trails the amount whatever order the markup gives them: in a right-aligned column the flags then stand in
       one line at the cell's edge and the digits in another, however wide each amount is (Chris, 19 Nov 2026).
   VN: Lá cờ đứng sau số tiền dù đánh dấu xếp chúng theo thứ tự nào: trong cột căn phải, các lá cờ đứng thành một hàng ở
       mép ô và các chữ số thành một hàng khác, bất kể mỗi số tiền rộng bao nhiêu (Chris, 19/11/2026). */
.flx-money > .flx-flag { order: 1; }

/* ---------------------------------------------------------------------
   7. CONTROLS
   --------------------------------------------------------------------- */

.flx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; line-height: 1; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 13px 20px;             /* EN: 39px tall: 13 + 11 + 13 + 2 of border. VN: cao 39px: 13 + 11 + 13 + 2 viền. */
  border: 1px solid transparent;
  border-radius: 2px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--flx-dur) var(--flx-ease), color var(--flx-dur) var(--flx-ease), border-color var(--flx-dur) var(--flx-ease);
}
.flx-btn svg { width: 16px; height: 16px; stroke-width: 1.6; flex-shrink: 0; margin: -3px 0; }   /* EN: the negative margin keeps a glyph button 39px tall. VN: lề âm giữ nút có glyph cao 39px. */
/* EN: C56 · Working. A button whose act is under way keeps its fill and its label, leads with a 6px square that
       breathes on the skeleton's rhythm, and takes no second press. There is no spinner in Flexo: a turning
       wheel promises progress the client cannot measure.
   VN: C56 · Đang xử lý. Nút có thao tác đang diễn ra giữ nguyên nền và nhãn, đứng đầu là ô vuông 6px "thở" theo nhịp
       của khung chờ, và không nhận lần nhấn thứ hai. Flexo không có vòng xoay: bánh xe quay hứa hẹn một tiến độ mà
       phía máy khách không đo được. */
.flx-btn.is-working { cursor: wait; pointer-events: none; }
.flx-btn.is-working::before { content: ''; width: 6px; height: 6px; flex: 0 0 auto; background: currentColor; animation: flx-breathe 1400ms cubic-bezier(0.4, 0, 0.6, 1) infinite; }
/* EN: Every confirm is the primary, however final the act it confirms (Chris, 20 Nov 2026). Signal and Danger are
       retired: their names still draw the primary so a product that has not moved yet confirms the same way, but no
       new markup writes them (C56).
   VN: Mọi xác nhận đều là nút chính, dù hành động được xác nhận cuối cùng đến đâu (Chris, 20/11/2026). Signal và
       Danger đã ngừng dùng: tên của chúng vẫn vẽ nút chính để sản phẩm chưa chuyển đổi vẫn xác nhận cùng một cách,
       nhưng không mã mới nào viết chúng (C56). */
.flx-btn--primary, .flx-btn--signal, .flx-btn--danger { background: var(--ink); color: var(--on-ink); }
.flx-btn--primary:hover, .flx-btn--signal:hover, .flx-btn--danger:hover { background: var(--brand); color: #ffffff; }
.flx-btn--secondary { background: transparent; border-color: var(--border); color: var(--ink); }
.flx-btn--secondary:hover { background: var(--tint); color: var(--tint-ink); border-color: var(--ink); }
/* EN: Refuse (C56): a refusal, such as Reject beside Approve. At rest it is red only in outline, the Debit wash behind a
       Debit border and label, so it reads as the refusal without the weight of a fill; on rollover it takes the Debit
       fill with a white label (Chris, 20 Nov 2026, from his drawings). It is not Danger: Danger is filled red at rest,
       for an act that destroys.
   VN: Từ chối (C56): một hành động từ chối, như Từ chối cạnh Phê duyệt. Khi nghỉ nó chỉ đỏ ở đường viền, nền nhạt Debit
       sau viền và nhãn Debit, nên đọc ra là từ chối mà không nặng như nền đặc; khi rê chuột thì tô nền Debit với nhãn
       trắng (Chris, 20/11/2026, theo bản vẽ của anh). Đây không phải Danger: Danger tô đỏ ngay khi nghỉ, dành cho hành
       động phá hủy. */
.flx-btn--refuse { background: var(--debit-wash); border-color: var(--debit); color: var(--debit); }
.flx-btn--refuse:hover { background: var(--debit); border-color: var(--debit); color: #ffffff; }
.flx-btn--tertiary { background: transparent; border-color: var(--rule); color: var(--ink-mid); }
.flx-btn--tertiary:hover { background: var(--tint); color: var(--tint-ink); }
.flx-btn[disabled], .flx-btn.is-inert { background: var(--track); border-color: transparent; color: var(--ink-ghost); cursor: default; pointer-events: none; }
.flx-btn--icon { width: 44px; height: 44px; padding: 0; flex: none; }   /* EN: a square button holding one glyph. VN: nút vuông chứa một glyph. */
.flx-btn--icon svg { width: 18px; height: 18px; margin: 0; }
/* EN: C56 · The small button: the second and last size (Chris, 17 Nov 2026). 10 + 16 + 2 = 28px, for a place where a
       39px button would stand taller than what it sits beside.
   VN: C56 · Nút nhỏ: cỡ thứ hai và cũng là cuối cùng (Chris, 17/11/2026). 10 + 16 + 2 = 28px, cho chỗ mà nút 39px sẽ
       cao hơn thứ nằm cạnh nó. */
.flx-btn--sm { padding: 8px 12px; font-size: 10px; gap: 8px; }
.flx-btn--sm svg { width: 14px; height: 14px; }
/* EN: The favourite (C61): the heart filled in Debit, the edge in the same red.
   VN: Yêu thích (C61): trái tim tô màu Debit, viền cùng màu đỏ đó. */
.flx-fav.is-on, .flx-fav.is-on:hover, .flx-fav.is-on.is-inert { color: var(--debit); border-color: var(--debit); background: transparent; }
.flx-fav.is-on svg { fill: currentColor; }

/* ---- The token field (C35) and its family. One height: 42px. ---------- */
.flx-formfield { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.flx-label { display: block; font-family: 'JetBrains Mono', monospace; font-size: 9px; line-height: 1; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }   /* EN: a field's label and glyph take the header line's --ink-soft, legible at 9px (Chris, 20 Nov 2026: "too pale"). VN: nhãn và glyph của trường dùng --ink-soft như dòng phụ của đầu trang, đọc được ở cỡ 9px (Chris, 20/11/2026: "quá nhạt"). */
.flx-label__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.flx-req { margin-left: 4px; color: var(--debit); }
.flx-error { font-family: 'JetBrains Mono', monospace; font-size: 9px; line-height: 1; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; color: var(--debit); }

.flx-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;               /* EN: 13 + 14 + 13 + 2 of border, for every control. VN: 13 + 14 + 13 + 2 viền, cho mọi ô điều khiển. */
  padding: 0 13px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1px;
  color: var(--ink);
  font: inherit;
  text-align: left;
  transition: border-color var(--flx-dur) var(--flx-ease);
}
.flx-field__icon { flex-shrink: 0; display: flex; color: var(--ink-soft); transition: color var(--flx-dur) var(--flx-ease); }
.flx-field__icon svg { width: 18px; height: 18px; stroke-width: 1.6; }
.flx-field input, .flx-field textarea {
  flex: 1; min-width: 0;
  font-family: 'IBM Plex Sans', sans-serif; font-size: 14px; line-height: 1;
  padding: 0;
  border: none; background: transparent; color: var(--ink);
}
/* EN: A browser ignores a line-height below normal on a text input, so the input is given its height
       outright: 40 of content inside the field's 1px border makes every field 42px, whatever its face.
   VN: Trình duyệt bỏ qua line-height thấp hơn mức thường trên ô nhập chữ, nên ô được đặt chiều cao trực
       tiếp: 40 nội dung trong viền 1px của ô khiến mọi ô cao 42px, bất kể phông chữ. */
.flx-field input { height: 40px; }
/* EN: A placeholder sits one step lighter than the label, at --ink-mid, so it is legible and never reads as a typed value (Chris, 20 Nov 2026).
   VN: Chữ giữ chỗ nhạt hơn nhãn một bậc, ở --ink-mid, để đọc được mà không bao giờ bị đọc như giá trị đã gõ (Chris, 20/11/2026). */
.flx-field input::placeholder, .flx-field textarea::placeholder { color: var(--ink-mid); }
.flx-field input.is-num { font-family: 'JetBrains Mono', monospace; font-size: 13px; font-variant-numeric: tabular-nums; }
.flx-field input:focus, .flx-field textarea:focus { outline: none; }
.flx-field input[type="search"]::-webkit-search-cancel-button { display: none; }
.flx-field__text { flex: 1; min-width: 0; padding: 13px 0; font-size: 14px; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* EN: A verb inside a field or a read value (Reveal, Clear) stands at its trailing edge (C35). VN: Động từ bên trong ô nhập hoặc giá trị đọc (Hiện, Xóa) đứng ở mép cuối (C35). */
.flx-field__verb { margin-left: auto; flex-shrink: 0; }
.flx-field:has(> .flx-field__verb) { padding-right: 0; }   /* EN: the verb runs to the field's edge, its own padding is the gap. VN: động từ chạy tới mép ô nhập, phần đệm của nó là khoảng cách. */
/* EN: A field that opens a list or a calendar is a button: it takes the pointer, and inert it sits on --field (C36, C37).
   VN: Ô nhập mở danh sách hay lịch là một nút: nó nhận con trỏ, và khi bất động thì nằm trên --field (C36, C37). */
button.flx-field { cursor: pointer; text-align: left; }
button.flx-field[disabled] { background: var(--field); cursor: default; }
.flx-field__text.is-empty { color: var(--ink-mid); }
.flx-field__text.is-num { font-family: 'JetBrains Mono', monospace; font-size: 13px; }
/* EN: Focus is border AND icon, both, always.
   VN: Tiêu điểm là viền VÀ biểu tượng, cả hai, luôn luôn. */
.flx-field:focus-within, .flx-field.is-open { border-color: var(--brand); }
.flx-field:focus-within .flx-field__icon, .flx-field.is-open .flx-field__icon { color: var(--brand); }
.flx-field__marker { flex-shrink: 0; font-family: 'JetBrains Mono', monospace; font-size: 9px; line-height: 1; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }
.flx-field__marker.is-complete { color: var(--ink); }
.flx-field__marker.is-error { font-weight: 500; color: var(--debit); }
.flx-field__chev { flex-shrink: 0; display: flex; color: var(--ink-faint); }
.flx-field__chev svg { width: 16px; height: 16px; stroke-width: 1.6; transform: rotate(90deg); transition: transform var(--flx-dur) var(--flx-ease); }
.flx-field.is-open .flx-field__chev svg { transform: rotate(270deg); }
.flx-field.is-invalid, .flx-field.is-invalid:focus-within { border-color: var(--debit); }
/* EN: The amount input (C34): the figure is what is seen; a transparent input lies over the whole block and takes
       the keystrokes, and a 1px ink caret blinks after the cents while it has focus.
   VN: Ô nhập số tiền (C34): con số là thứ được thấy; một ô nhập trong suốt phủ lên cả khối và nhận phím gõ, và
       một con trỏ mực 1px nhấp nháy sau phần xu khi ô có tiêu điểm. */
.flx-field--amount { position: relative; padding: 8px 13px; }
.flx-field--amount input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: text; }
.flx-field--amount .flx-figure { flex: 1; }
.flx-field--amount.is-empty .flx-figure { color: var(--ink-ghost); }
.flx-field--amount:focus-within { border-color: var(--brand); }
.flx-field--amount:focus-within .flx-figure::after { content: ''; align-self: stretch; width: 1px; margin-left: 2px; background: var(--ink); animation: flx-caret 1100ms steps(1) infinite; }
@keyframes flx-caret { 50% { opacity: 0; } }
.flx-field--amount.is-over, .flx-field--amount.is-over:focus-within { border-color: var(--debit); }
.flx-field--amount.is-over .flx-figure { color: var(--debit); }
/* EN: A locked field: a value that cannot be edited while the form is edited.
   VN: Ô khóa: giá trị không sửa được trong khi biểu mẫu đang được sửa. */
.flx-field--locked { background: var(--field); border-color: var(--rule); color: var(--ink-mid); }
.flx-field--locked .flx-field__text { color: var(--ink-mid); }
/* EN: Prefix and suffix cells, one step darker than the field.
   VN: Ô tiền tố và hậu tố, tối hơn ô nhập một bậc. */
.flx-field--affix { padding: 0; gap: 0; }
.flx-field--affix input { padding: 0 13px; font-family: 'JetBrains Mono', monospace; font-size: 13px; }
.flx-field__affix { align-self: stretch; display: grid; place-items: center; min-width: 40px; padding: 0 12px; background: var(--cell); border-right: 1px solid var(--border); color: var(--ink-faint); font-family: 'JetBrains Mono', monospace; font-size: 14px; line-height: 1; }
.flx-field__affix--suffix { border-right: 0; border-left: 1px solid var(--border); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; }
/* EN: A textarea is the same field, grown; its text takes the prose line-height.
   VN: Ô nhiều dòng là cùng ô nhập đó, cao hơn; chữ dùng line-height của văn xuôi. */
.flx-field--area { align-items: flex-start; }
.flx-field--area .flx-field__icon { padding-top: 12px; }
.flx-field--area textarea { resize: vertical; line-height: 1.55; padding: 10px 0; min-height: 88px; }

.flx-chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; line-height: 1; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 9px 14px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink-soft);
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--flx-dur) var(--flx-ease), color var(--flx-dur) var(--flx-ease), border-color var(--flx-dur) var(--flx-ease);
}
.flx-chip:hover { background: var(--tint); color: var(--tint-ink); }
/* EN: C29 · A toggle chip waiting on a save is disabled: it neither answers the pointer nor takes a second press.
   VN: C29 · Chip bật tắt đang chờ lưu bị vô hiệu: nó không phản hồi con trỏ và không nhận lần bấm thứ hai. */
.flx-chip:disabled { cursor: default; pointer-events: none; }
.flx-chip.is-on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.flx-chip--sm { padding: 5px 9px; }
/* EN: A chip carrying a flag never fills with ink: picked is the tint behind an ink border.
   VN: Chip mang cờ không bao giờ tô màu mực: khi chọn là sắc phủ sau viền mực. */
.flx-chip--flag.is-on { background: var(--tint); color: var(--tint-ink); border-color: var(--ink); font-weight: 500; }
.flx-chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* EN: The help mark and the tooltip panel (C68).
   VN: Dấu trợ giúp và bảng chú giải (C68). */
.flx-help { display: inline-grid; place-items: center; width: 24px; height: 24px; padding: 0; border: none; background: transparent; color: var(--ink-faint); cursor: help; transition: color var(--flx-dur) var(--flx-ease); }
.flx-help svg { width: 18px; height: 18px; stroke-width: 1.6; }
/* EN: In a column header the 24px mark gives back its height, so the band stays 36px.
   VN: Trong tiêu đề cột, dấu 24px trả lại chiều cao của nó, nên dải vẫn cao 36px. */
.flx-colhead__cell .flx-help { margin: -8px 0 -7px; vertical-align: top; }
.flx-help:hover, .flx-help:focus-visible { color: var(--brand); outline: none; }
.flx-tip {
  position: fixed; z-index: var(--flx-z-toast);
  left: var(--x, 0); top: var(--y, 0);   /* EN: placed by flexo-behaviour.js, which measures the mark it explains. VN: được flexo-behaviour.js đặt vị trí, sau khi đo dấu mà nó giải thích. */
  width: max-content; max-width: 280px;
  padding: 10px 12px;
  background: #141414; color: #ffffff;
  box-shadow: var(--shadow-pop);
  font-family: 'IBM Plex Sans', sans-serif; font-size: 12px; font-weight: 400; line-height: 1.5;
  letter-spacing: 0; text-transform: none; white-space: normal;
  pointer-events: none;
}

/* EN: The notice (C70): something the reader must read or act on, inside the
       page. Colour never fills it; the glyph says what kind it is.
   VN: Thông báo tại chỗ (C70): điều người đọc phải đọc hoặc xử lý, ngay trong
       trang. Màu không bao giờ tô nền; glyph cho biết loại. */
.flx-notice { display: flex; align-items: stretch; background: var(--card); border: 1px solid var(--border); color: var(--ink); }
.flx-notice__cell { width: 44px; flex-shrink: 0; display: flex; align-items: flex-start; justify-content: center; padding-top: 13px; background: var(--cell); border-right: 1px solid var(--rule); }
.flx-notice__cell svg { width: 18px; height: 18px; stroke-width: 1.6; }
.flx-notice__cell[data-state="credit"] svg  { stroke: var(--credit); }
.flx-notice__cell[data-state="debit"] svg   { stroke: var(--debit); }
.flx-notice__cell[data-state="pending"] svg { stroke: var(--pending); }
.flx-notice__text { flex: 1; min-width: 0; padding: 13px 16px 16px; }
.flx-notice__line { font-size: 14px; line-height: 1.55; }
.flx-notice__detail { margin-top: 4px; font-size: 12px; line-height: 1.45; color: var(--ink-soft); }
.flx-notice__actions { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------------------------------------------------------------------
   8. OVERLAYS: drawer, dialog. The same header as a card.
   --------------------------------------------------------------------- */

.flx-curtain {
  position: absolute; inset: 0 0 0 56px;    /* EN: the rail is never curtained. VN: thanh điều hướng không bao giờ bị che. */
  background: rgba(0, 0, 0, 0.56);
  z-index: var(--flx-z-curtain);
}

.flx-drawer {
  --card: var(--drawer);
  --rule: var(--drawer-rule);
  --hairline: var(--drawer-hairline);
  --border: var(--drawer-border);
  --field: var(--drawer-field);
  --cell: var(--drawer-cell);
  position: absolute; right: 0; bottom: 0;
  width: var(--drawer-w);
  max-width: 100%;
  display: flex; flex-direction: column;
  background: var(--card);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-drawer);
  z-index: var(--flx-z-overlay);
  animation: flx-drawer-in var(--flx-dur) var(--flx-ease-in);
}
@keyframes flx-drawer-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
/* EN: A list inside a drawer is inert: a drawer is about one record.
   VN: Danh sách trong ngăn kéo là trơ: ngăn kéo nói về một bản ghi. */
.flx-drawer .flx-row:not(.is-clickable):hover { background: transparent; color: inherit; box-shadow: none; }

.flx-dialog {
  position: absolute; left: 50%; top: 50%;
  width: 440px;
  max-width: calc(100% - 40px);
  transform: translate(-50%, -50%);
  background: var(--card);
  border: 1px solid var(--border);
  z-index: var(--flx-z-overlay);
  animation: flx-dialog-in 420ms cubic-bezier(0.2, 0.9, 0.24, 1);   /* EN: the overlay entry of §2.10. VN: hiệu ứng vào của lớp phủ theo §2.10. */
}
@keyframes flx-dialog-in { from { transform: translate(-50%, -50%) scale(0.985); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }

.flx-overlay-header {
  display: flex; align-items: stretch;
  height: 45px;
  flex-shrink: 0;
  background: var(--field);
  border-bottom: 1px solid var(--rule);
}
.flx-overlay-header__tile {        /* EN: the FILLED tile: a record's kind. VN: ô TÔ ĐẦY: loại của bản ghi. */
  width: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink);
  color: var(--on-ink);
}
.flx-overlay-header__tile svg { width: 27px; height: 27px; stroke-width: 1.6; }
.flx-overlay-header__cell {        /* EN: the plain cell: a status glyph. VN: ô thường: glyph trạng thái. */
  width: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--cell);
  border-right: 1px solid var(--rule);
}
.flx-overlay-header__cell svg { width: 18px; height: 18px; stroke-width: 1.6; }
.flx-overlay-header__title {
  display: flex; align-items: center; flex: 1; min-width: 0;
  padding: 0 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; line-height: 1; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
}
.flx-overlay-header__trail {       /* EN: the close cell or the step count. VN: ô đóng hoặc số bước. */
  width: 44px; flex-shrink: 0; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border: none; border-left: 1px solid var(--rule);
  background: transparent;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; line-height: 1; letter-spacing: 0.14em;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background var(--flx-dur) var(--flx-ease), color var(--flx-dur) var(--flx-ease);
}
.flx-overlay-header__trail svg { width: 18px; height: 18px; stroke-width: 1.6; }
button.flx-overlay-header__trail:hover { background: var(--tint); color: var(--tint-ink); }
.flx-overlay-body { flex: 1; min-height: 0; overflow-y: auto; }
.flx-overlay-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 16px; border-top: 1px solid var(--rule); flex-shrink: 0; }

/* EN: A drawer's fact row (C71): the 44px spine cell, a label over its value.
   VN: Hàng dữ kiện của ngăn kéo (C71): ô sống 44px, nhãn nằm trên giá trị. */
.flx-fact { display: flex; align-items: stretch; border-bottom: 1px solid var(--rule); }
.flx-fact__cell { width: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-right: 1px solid var(--hairline); color: var(--ink-soft); }
.flx-fact__cell svg { width: 18px; height: 18px; stroke-width: 1.6; }
.flx-fact__text { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 10px 16px; }
.flx-fact__label { font-family: 'JetBrains Mono', monospace; font-size: 9px; line-height: 1; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }
.flx-fact__value { font-size: 13px; line-height: 1; overflow-wrap: anywhere; }
.flx-fact__value.is-mono { font-family: 'JetBrains Mono', monospace; }
.flx-fact__value.is-wrap { line-height: 1.45; }
/* EN: One column of cells (3.7.0, Chris 26 Nov 2026): in a card of facts, a paragraph or a field is a row of its own
       beside its glyph cell, like every fact. The paragraph keeps the prose type and loses its own margins.
   VN: Một cột ô (3.7.0, Chris 26/11/2026): trong thẻ dữ kiện, một đoạn văn hay một trường là một hàng riêng bên ô biểu
       tượng của nó, như mọi dữ kiện. Đoạn văn giữ kiểu chữ văn bản và bỏ lề riêng của nó. */
.flx-fact__text > .flx-prose { margin: 0; }
/* EN: C88 · A secret shown once is selected whole by one click, so it can be copied by hand when the copy cell fails.
   VN: C88 · Bí mật chỉ hiện một lần được chọn trọn bằng một cú bấm, để có thể chép tay khi ô sao chép thất bại. */
.flx-fact__value.is-secret { user-select: all; }
.flx-fact--amount .flx-fact__text { padding: 18px 16px 16px; gap: 12px; }

.flx-drawer-band {
  display: flex; align-items: center;
  height: 35px;
  background: var(--hairline);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.flx-drawer-band__cell { width: 44px; flex-shrink: 0; align-self: stretch; display: flex; align-items: center; justify-content: center; border-right: 1px solid var(--border); }
.flx-drawer-band__cell svg { width: 18px; height: 18px; stroke-width: 1.6; }
.flx-drawer-band__name { flex: 1; padding: 0 16px; font-family: 'JetBrains Mono', monospace; font-size: 10px; line-height: 1; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; }
.flx-drawer-band__count { padding-right: 16px; font-family: 'JetBrains Mono', monospace; font-size: 10px; line-height: 1; color: var(--ink-faint); }
.flx-drawer .flx-colhead__cell { padding: 8px 16px; }   /* EN: 25px band inside a drawer. VN: dải 25px trong ngăn kéo. */

.flx-popover {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-menu);
  z-index: var(--flx-z-menu);
}
.flx-popover__row {
  display: flex; align-items: stretch;
  width: 100%;
  min-height: 46px;
  padding: 0;
  border: none;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background var(--flx-dur) var(--flx-ease), color var(--flx-dur) var(--flx-ease);
}
.flx-popover__row:hover { background: var(--tint); color: var(--tint-ink); }
/* EN: THE ROW ROLLOVER (Chris, 17 Nov 2026: "the rollover always has the blue side on the left, which must be used
       for all the rollovers, not once in a while"). Every row that answers the pointer answers the same way: the
       tint, and a 2px brand bar on its leading edge. A table row has it above (C22); this is the same bar on a
       menu item. Two rows do not take it and are the only exceptions: a fact row, which answers nothing, and the
       destructive row, whose rollover is the red wash and never the tint.
   VN: HIỆU ỨNG RÊ CHUỘT CỦA HÀNG (Chris, 17/11/2026: "hiệu ứng rê chuột luôn có vạch xanh bên trái, phải dùng cho mọi
       hiệu ứng rê chuột, không phải thỉnh thoảng"). Mọi hàng phản hồi con trỏ đều phản hồi cùng một cách: sắc phủ,
       và một vạch thương hiệu 2px ở mép đầu. Hàng của bảng đã có ở trên (C22); đây là cùng vạch đó trên mục menu.
       Hai loại hàng không nhận nó và là ngoại lệ duy nhất: hàng dữ kiện, vốn không phản hồi gì, và hàng hủy bỏ,
       có hiệu ứng rê chuột là lớp phủ đỏ chứ không bao giờ là sắc phủ. */
.flx-popover__row:not(.is-fact):not(.flx-menu__row--danger):hover { box-shadow: inset 2px 0 0 var(--brand); }
.flx-popover__row:last-child { border-bottom: none; }
.flx-popover__row.is-fact { cursor: default; }
.flx-popover__row.is-fact:hover { background: transparent; color: inherit; }
/* EN: The account menu (C78) is five rows of one height: its header is one of them, and a row whose value is a
   set of chips puts them beside its label, never under it, so no row is taller than another. 5 × 47 + 1 = 236.
   VN: Menu tài khoản (C78) gồm năm hàng cùng chiều cao: phần đầu là một trong số đó, và hàng có giá trị là một bộ
   chip đặt chúng cạnh nhãn, không bao giờ bên dưới, nên không hàng nào cao hơn hàng khác. 5 × 47 + 1 = 236. */
.flx-popover > .flx-overlay-header { height: 47px; }
.flx-popover__row.is-fact .flx-fact__text:has(> .flx-chips) { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.flx-popover__cell { width: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-right: 1px solid var(--rule); color: var(--ink-soft); transition: background var(--flx-dur) var(--flx-ease); }
.flx-popover__cell svg { width: 18px; height: 18px; stroke-width: 1.6; }
/* EN: The trailing cell of a menu row that opens a separate window (C78). VN: Ô cuối của hàng menu mở một cửa sổ riêng (C78). */
.flx-popover__trail { width: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-left: 1px solid var(--rule); color: var(--ink-soft); }
.flx-popover__trail svg { width: 18px; height: 18px; stroke-width: 1.6; }

/* EN: A row with a divided icon cell: the row tints, the cell steps one
       further, the glyph turns brand blue. One behaviour, three parts.
   VN: Hàng có ô biểu tượng tách riêng: hàng phủ sắc, ô đậm thêm một bậc,
       glyph chuyển xanh thương hiệu. Một hành vi, ba phần. */
[data-row-icon]:hover > [data-cell],
.flx-popover__row:not(.is-fact):not(.flx-menu__row--danger):hover > .flx-popover__cell { background: var(--tint-press); }   /* EN: the destructive row is red end to end, its icon cell included (Chris, 19 Nov 2026). VN: hàng hủy bỏ đỏ từ đầu đến cuối, kể cả ô biểu tượng (Chris, 19/11/2026). */
[data-row-icon]:hover > [data-cell] svg[fill="none"],
.flx-popover__row:not(.is-fact):not(.flx-menu__row--danger):hover > .flx-popover__cell svg { stroke: var(--brand); color: var(--brand); }
[data-row-danger]:hover > [data-cell],
.flx-menu__row--danger:hover > .flx-popover__cell { background: rgba(230, 34, 0, 0.1); }
[data-row-danger]:hover > [data-cell] svg[fill="none"],
.flx-menu__row--danger:hover > .flx-popover__cell svg { stroke: var(--debit); color: var(--debit); }

.flx-menu { width: 240px; }
.flx-menu__label { flex: 1; display: flex; align-items: center; padding: 0 16px; font-size: 13px; line-height: 1; }
.flx-menu__row--danger .flx-menu__label {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft);
}
.flx-menu__row--danger:hover { background: rgba(230, 34, 0, 0.1); color: inherit; }
.flx-menu__row--danger:hover .flx-menu__label { color: var(--debit); }
.flx-row__actions {
  position: relative;
  width: 44px; flex-shrink: 0; align-self: stretch;
  display: flex; align-items: center; justify-content: center;
  padding: 0 !important;
  border: none; border-left: 1px solid var(--hairline);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background var(--flx-dur) var(--flx-ease), color var(--flx-dur) var(--flx-ease);
}
.flx-row__actions svg { width: 18px; height: 18px; }
.flx-row__actions:hover, .flx-row__actions.is-open { background: var(--tint-press); color: var(--tint-ink); }
/* EN: The menu hangs from its own cell: under it, right edges aligned.
   VN: Menu treo từ chính ô của nó: bên dưới, mép phải thẳng hàng. */
.flx-row__actions > .flx-menu { position: absolute; top: 100%; right: 0; cursor: default; }   /* EN: the 2.x form, nested in the cell. VN: dạng 2.x, lồng trong ô. */
/* EN: The menu sits beside its cell in the markup and is fixed to the viewport at --x and --y, which the behaviour
   script sets from the cell. A scroller around the table can therefore never clip it, and its items are real
   buttons a keyboard can reach, which they could not be inside the cell's own button.
   VN: Trong mã, menu nằm cạnh ô của nó và được ghim vào khung nhìn tại --x và --y do kịch bản hành vi đặt theo ô.
   Vì thế khung cuộn quanh bảng không bao giờ cắt được nó, và các mục của nó là nút thật mà bàn phím tới được,
   điều không thể làm khi chúng nằm trong chính nút của ô. */
.flx-row > .flx-menu { position: fixed; left: var(--x, 0); top: var(--y, 0); z-index: var(--flx-z-menu); cursor: default; }
/* EN: A menu or panel written inside a row is not a cell: the cell padding of `.flx-row > *` never reaches it, so its
       rows run edge to edge like the account menu's (Chris, 19 Nov 2026).
   VN: Menu hay bảng viết bên trong một hàng không phải là ô: phần đệm ô của `.flx-row > *` không bao giờ chạm tới nó,
       nên các hàng của nó chạy sát mép như menu tài khoản (Chris, 19/11/2026). */
.flx-row > .flx-popover { padding: 0; }
/* EN: The same cell as the chevron of an expandable row (C44): it points down when closed and up when open.
   VN: Cùng ô đó khi là mũi tên của hàng mở rộng được (C44): chỉ xuống khi đóng và chỉ lên khi mở. */
.flx-row__actions svg { transition: transform var(--flx-dur) var(--flx-ease); }
.flx-row__actions.is-down svg { transform: rotate(90deg); }
.flx-row__actions.is-up svg { transform: rotate(270deg); }

/* ---------------------------------------------------------------------
   9. THE PRODUCT RAIL (the customer front end). Consoles use .cx-rail.
   --------------------------------------------------------------------- */

.flx-rail { width: 56px; flex-shrink: 0; display: flex; flex-direction: column; border-right: 1px solid var(--rule); overflow: hidden; }
.flx-rail__cell {
  display: flex; align-items: center;
  width: 100%; height: 56px;
  padding: 0;
  background: none;
  border: none;
  border-left: 2px solid transparent;
  border-left-color: transparent;   /* EN: the longhand is declared in every state, or a stale bar is left behind. VN: thuộc tính dài được khai báo ở mọi trạng thái, nếu không sẽ sót lại vạch cũ. */
  cursor: pointer;
  transition: background var(--flx-dur) var(--flx-ease), color var(--flx-dur) var(--flx-ease);
}
.flx-rail__cell:hover { background: var(--tint); color: var(--tint-ink); }
.flx-rail__cell.is-active { border-left-color: var(--ink); font-weight: 500; }
.flx-rail__icon { width: 54px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.flx-rail__icon svg { width: 20px; height: 20px; stroke-width: 1.6; }
.flx-rail__cell:hover .flx-rail__icon { box-shadow: inset 0 0 0 1px currentColor; }

/* ---------------------------------------------------------------------
   10. FEEDBACK: toast, skeleton, announcement.
   --------------------------------------------------------------------- */

.flx-toast {                       /* EN: a black surface with white ink on every page. VN: nền đen, chữ trắng trên mọi trang. */
  position: absolute;
  right: 28px;
  top: 84px;                       /* EN: 56px header + 28px. VN: thanh đầu 56px + 28px. */
  width: 364px;
  display: flex; align-items: stretch;
  min-height: 56px;
  background: #141414;
  color: #ffffff;
  border-radius: 2px;
  box-shadow: var(--shadow-toast);
  animation: flx-toast-in var(--flx-dur-overlay) var(--flx-ease);
  z-index: var(--flx-z-toast);
}
@keyframes flx-toast-in { from { transform: translateX(24px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.flx-toast__tile { width: 56px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #ffffff; }
.flx-toast__tile svg { width: 35px; height: 35px; stroke-width: 1.6; }
.flx-toast--success .flx-toast__tile { background: var(--brand); }    /* EN: success is BLUE: green means money arriving. VN: thành công là XANH DƯƠNG: xanh lá nghĩa là tiền đến. */
.flx-toast--pending .flx-toast__tile { background: var(--pending); }
.flx-toast--failed  .flx-toast__tile { background: var(--debit); }
.flx-toast--info    .flx-toast__tile { background: var(--info); }
.flx-toast__body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 0 16px; }
.flx-toast__line { font-size: 13px; line-height: 1; }
.flx-toast__detail { font-family: 'JetBrains Mono', monospace; font-size: 11px; line-height: 1; color: rgba(255, 255, 255, 0.55); }
.flx-toast__verb {
  display: flex; align-items: center; padding: 0 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: #ffffff; background: none; border-top: none; border-right: none; border-bottom: none; cursor: pointer;
  transition: color var(--flx-dur) var(--flx-ease);
}
.flx-toast__verb:hover { color: #a8b6ff; }
.flx-toasts { position: fixed; right: 28px; top: 85px; z-index: var(--flx-z-toast); display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.flx-toasts .flx-toast { position: static; pointer-events: auto; }

.flx-skeleton { display: block; width: var(--w, 100%); height: var(--h, 13px); background: var(--rule); border-radius: 0; }
.flx-skeleton--secondary { background: var(--hairline); }
.flx-skeleton--end { margin-left: auto; }   /* EN: a placeholder for a right-aligned value. VN: khối giữ chỗ cho giá trị căn phải. */
.flx-skeleton-group { animation: flx-breathe 1400ms cubic-bezier(0.4, 0, 0.6, 1) infinite; }
@keyframes flx-breathe { 0% { opacity: 1; } 50% { opacity: 0.45; } 100% { opacity: 1; } }

.flx-announce {                    /* EN: the product dashboard's announcement slot: 169px, fixed. VN: ô thông báo của bảng điều khiển sản phẩm: 169px, cố định. */
  position: relative;
  display: flex;
  height: 169px;
  background: var(--tint);
  color: var(--tint-ink);
  overflow: hidden;
  transition: height var(--flx-dur) var(--flx-ease), margin-bottom var(--flx-dur) var(--flx-ease);
}
.flx-announce.is-dismissed { height: 0; margin-bottom: -20px; }
.flx-announce__close { position: absolute; right: 0; top: 0; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; transition: background var(--flx-dur) var(--flx-ease); }
.flx-announce__close:hover { background: rgba(27, 58, 255, 0.1); }
.flx-announce__art { width: 168px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-left: 1px solid rgba(27, 58, 255, 0.14); }

/* ---------------------------------------------------------------------
   10b. THE COMPANY FIELD. LOCKED v1.0 (B06).
   EN: The surface that carries the field, and the four tiers it is composed
       in: the lines, the scrim, the signal line alone, the content. The
       drawing itself is flexo-field.js; these rules give its lines their
       stroke and keep the tiers in their order. Live: white 0.85px at 0.52.
       Still: white 0.85px at 0.30. On light: neutral-900, 0.7px at 0.16, and
       no signal line. The signal line is the brand blue, 1.8px, at full
       strength, and nothing may dim it.
   VN: Bề mặt mang trường, và bốn tầng bố cục của nó: các đường, lớp phủ, riêng
       đường tín hiệu, nội dung. Bản vẽ là flexo-field.js; các quy tắc này cho
       các đường nét vẽ của chúng và giữ các tầng đúng thứ tự. Động: trắng
       0,85px ở 0,52. Tĩnh: trắng 0,85px ở 0,30. Trên nền sáng: neutral-900,
       0,7px ở 0,16, và không có đường tín hiệu. Đường tín hiệu mang màu xanh
       thương hiệu, 1,8px, đậm tối đa, và không gì được làm mờ nó.
   --------------------------------------------------------------------- */
.flx-company-field { position: relative; overflow: hidden; background: #000000; color: #ffffff; }
.flx-company-field--light { background: var(--n-000); color: var(--n-900); }
.flx-company-field__layer { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.flx-company-field__layer--signal { z-index: 1; }
.flx-company-field__line { fill: none; stroke: currentColor; stroke-width: 0.85; opacity: 0.52; }
.flx-company-field[data-field="still"] .flx-company-field__line { opacity: 0.3; }
.flx-company-field--light .flx-company-field__line, .flx-company-field--light[data-field="still"] .flx-company-field__line { stroke-width: 0.7; opacity: 0.16; }
.flx-company-field__signal-line { fill: none; stroke: var(--brand); stroke-width: 1.8; opacity: 1; }
/* EN: Everything a section puts over its field stands above both line layers.
   VN: Mọi thứ một phần đặt lên trên trường của nó đều đứng trên cả hai lớp đường. */
.flx-company-field > :not(.flx-company-field__layer):not(.flx-company-field__scrim) { position: relative; z-index: 2; }
/* EN: Type never sits on raw lines. A soft radial scrim sits behind it, between the lines and the signal line; it is
       never a box. --x and --y place its centre. These are the hero's own values.
   VN: Chữ không bao giờ nằm trực tiếp trên các đường. Một lớp phủ tỏa tròn mềm nằm phía sau, giữa các đường và đường
       tín hiệu; nó không bao giờ là một hộp. --x và --y đặt tâm của nó. Đây là các giá trị của chính phần hero. */
.flx-company-field__scrim { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(46% 88% at var(--x, 20%) var(--y, 44%), rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.74) 46%, rgba(0, 0, 0, 0) 82%); }
.flx-company-field--light .flx-company-field__scrim { background: radial-gradient(46% 88% at var(--x, 20%) var(--y, 44%), rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0) 82%); }

/* ---------------------------------------------------------------------
   11. GLASS OVER FIELD: the one exception to the tint.
   --------------------------------------------------------------------- */

.flx-panel-on-field { background: rgba(0, 0, 0, 0.25); backdrop-filter: blur(2px); border: 1px solid rgba(255, 255, 255, 0.14); }
.flx-glass { background: rgba(255, 255, 255, 0); transition: background var(--flx-dur) var(--flx-ease), color var(--flx-dur) var(--flx-ease); }
.flx-glass:hover { background: rgba(255, 255, 255, 0.25); color: #ffffff; }
.flx-glass:active { background: rgba(255, 255, 255, 0.34); }
.flx-glass--light:hover { background: rgba(0, 0, 0, 0.06); color: var(--ink); }
.flx-glass--light:active { background: rgba(0, 0, 0, 0.09); }

/* ---------------------------------------------------------------------
   11b. BRANDING (B01 to B17): the classes that carry the brand.
   EN: The brand is the mark, the wordmark, their lockup, the endorsement,
       the company field and what stands on it, and the login page. These
       rules are added to the shared sheet after the rules they sit beside
       (.flx-wordmark, .flx-company-field, .flx-panel-on-field, .flx-glass,
       .flx-btn), which they reuse and never restate. The field's drawing is
       flexo-field.js and the mark's is flexo-icons.js; nothing here draws
       either one.
   VN: Thương hiệu gồm biểu tượng, chữ thương hiệu, cụm ghép của hai thứ đó,
       dòng bảo chứng, trường công ty cùng những gì đứng trên nó, và trang
       đăng nhập. Các quy tắc này được thêm vào bảng kiểu dùng chung, sau các
       quy tắc mà chúng đứng cạnh (.flx-wordmark, .flx-company-field,
       .flx-panel-on-field, .flx-glass, .flx-btn); chúng dùng lại chứ không
       bao giờ viết lại các quy tắc ấy. Bản vẽ của trường là flexo-field.js và
       bản vẽ của biểu tượng là flexo-icons.js; không gì ở đây vẽ hai thứ đó.
   --------------------------------------------------------------------- */

/* ---- B01 · Mark ------------------------------------------------------ */

/* EN: The mark is one filled contour drawn in the ink of whatever holds it, so it is never given a colour of its
       own; it must not be squeezed by a row it shares with text.
   VN: Biểu tượng là một đường bao tô đặc, vẽ bằng màu mực của phần tử chứa nó, nên không bao giờ được gán màu
       riêng; nó không được bị ép hẹp trong một hàng dùng chung với chữ. */
.flx-mark { flex-shrink: 0; }

/* EN: The five sizes the mark is shown at when it stands alone. 16px is the smallest: below it the loop's
       counter closes. Each size also names itself in --flx-mark so the clear space can be measured from it.
   VN: Năm cỡ của biểu tượng khi đứng một mình. 16px là cỡ nhỏ nhất: dưới mức đó phần rỗng của vòng nhỏ bị
       bít lại. Mỗi cỡ còn ghi chính nó vào --flx-mark để khoảng trống quanh biểu tượng được đo từ đó. */
.flx-mark--72 { --flx-mark: 72px; width: 72px; height: 72px; }
.flx-mark--48 { --flx-mark: 48px; width: 48px; height: 48px; }
.flx-mark--32 { --flx-mark: 32px; width: 32px; height: 32px; }
.flx-mark--24 { --flx-mark: 24px; width: 24px; height: 24px; }
.flx-mark--16 { --flx-mark: 16px; width: 16px; height: 16px; }

/* EN: Clear space is the mark's own height on every side, so nothing can be set against it.
   VN: Khoảng trống quanh biểu tượng bằng đúng chiều cao của nó ở mọi phía, để không thứ gì được đặt sát vào. */
.flx-mark--clear { margin: calc(var(--flx-mark) / 2); }   /* EN: half the mark's height on every side (Chris, 17 Nov 2026). VN: một nửa chiều cao của dấu hiệu ở mọi phía (Chris, 17/11/2026). */

/* EN: The reversed ground: black with white ink, for the mark and the lockup on black. The two values are steps
       of the neutral ramp and not surface roles, because a reversed ground never changes.
   VN: Nền đảo màu: đen với mực trắng, dành cho biểu tượng và cụm ghép trên nền đen. Hai giá trị là bậc của thang
       trung tính chứ không phải vai trò bề mặt, vì nền đảo màu không bao giờ thay đổi. */
.flx-reversed { background: var(--n-1000); color: var(--n-000); }

/* EN: The construction drawing: the mark at 180px with the circles and axes it is built on drawn over it in the
       brand blue, so the proportions can be read and never re-measured.
   VN: Bản vẽ dựng hình: biểu tượng ở cỡ 180px với các đường tròn và trục dựng nên nó được vẽ đè lên bằng màu
       xanh thương hiệu, để các tỷ lệ được đọc trực tiếp và không bao giờ phải đo lại. */
.flx-mark-construction { display: block; width: 180px; height: 180px; }
.flx-mark-construction__guides { fill: none; stroke: var(--brand); stroke-width: 0.4; }

/* ---- B03 · Lockup ---------------------------------------------------- */

/* EN: The lockup is the wordmark element itself with the mark inside it, so the mark is measured in the
       wordmark's own em and holds its proportion at every named size.
   VN: Cụm ghép chính là phần tử chữ thương hiệu có biểu tượng nằm bên trong, nên biểu tượng được đo bằng đơn vị
       em của chính chữ thương hiệu và giữ đúng tỷ lệ ở mọi cỡ có tên. */
.flx-lockup { display: inline-flex; align-items: center; gap: 16px; white-space: nowrap; }

/* EN: Beside the letters the mark is 0.66 of the wordmark's size, sits 0.09em below centre so it rests on the
       baseline, and the letters are pulled 9px toward it: an optical kern, because the mark's drawing does not
       fill its box.
   VN: Cạnh các chữ cái, biểu tượng bằng 0,66 cỡ chữ thương hiệu, hạ xuống 0,09em so với tâm để tựa lên đường
       chân chữ, và các chữ cái được kéo lại gần nó 9px: một phép chỉnh khoảng cách bằng mắt, vì hình vẽ của biểu
       tượng không lấp đầy khung của nó. */
.flx-lockup__mark { flex-shrink: 0; width: 0.66em; height: 0.66em; margin-right: -9px; transform: translateY(0.09em); }

/* EN: The lockup's clear space is the height of the mark inside it, on every side.
   VN: Khoảng trống quanh cụm ghép bằng chiều cao của biểu tượng bên trong nó, ở mọi phía. */
.flx-lockup--clear { margin: 0.33em; }   /* EN: half the mark's height, the mark being 0.66em (Chris, 17 Nov 2026). VN: một nửa chiều cao của dấu hiệu, vốn bằng 0.66em (Chris, 17/11/2026). */

/* ---- B04 · Endorsement ----------------------------------------------- */

/* EN: "Powered by flexo" is the only form in which the Flexo mark enters a partner's product, so it is one fixed
       line: the words, a hairline, the lockup at its smallest named size.
   VN: "Powered by flexo" là hình thức duy nhất để biểu tượng Flexo xuất hiện trong sản phẩm của đối tác, nên nó
       là một dòng cố định: dòng chữ, một vạch mảnh, rồi cụm ghép ở cỡ có tên nhỏ nhất. */
.flx-endorsement { display: inline-flex; align-items: center; gap: 24px; }
.flx-endorsement__by { flex-shrink: 0; font-family: var(--font-mono); font-size: var(--t-mono-label); line-height: var(--lh-ui); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mid); }
.flx-endorsement__rule { width: 1px; height: 18px; flex-shrink: 0; background: var(--border); }

/* ---- B06 · Company field: what is written on it ---------------------- */

/* EN: A label on the field is a rung of the ramp, never white at an opacity: neutral-400 on black, because the
       field's ground never changes.
   VN: Nhãn trên trường là một bậc của thang trung tính, không bao giờ là màu trắng giảm độ đậm: neutral-400 trên
       nền đen, vì nền của trường không bao giờ đổi. */
.flx-company-field__label { margin: 0; font-family: var(--font-mono); font-size: var(--t-mono-label); line-height: var(--lh-ui); letter-spacing: 0.14em; text-transform: uppercase; color: var(--n-400); }

/* ---- B08 · Edge fade ------------------------------------------------- */

/* EN: A field that enters from an edge and ends inside the page dissolves toward its inner side: opaque to 42%,
       gone by 92%. The mask is on both line layers, the signal line included, because the fade is the field's
       boundary; the ground and the content are not masked.
   VN: Trường đi vào từ một mép và kết thúc bên trong trang sẽ tan dần về phía trong: đặc đến 42%, biến mất ở 92%.
       Mặt nạ đặt trên cả hai lớp đường, kể cả đường tín hiệu, vì phần mờ dần chính là ranh giới của trường; nền
       và nội dung không bị che. */
.flx-company-field--fade-to-top > .flx-company-field__layer { -webkit-mask-image: linear-gradient(to top, #000 0%, #000 42%, transparent 92%); mask-image: linear-gradient(to top, #000 0%, #000 42%, transparent 92%); }
.flx-company-field--fade-to-right > .flx-company-field__layer { -webkit-mask-image: linear-gradient(to right, #000 0%, #000 42%, transparent 92%); mask-image: linear-gradient(to right, #000 0%, #000 42%, transparent 92%); }
.flx-company-field--fade-to-bottom > .flx-company-field__layer { -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 42%, transparent 92%); mask-image: linear-gradient(to bottom, #000 0%, #000 42%, transparent 92%); }
.flx-company-field--fade-to-left > .flx-company-field__layer { -webkit-mask-image: linear-gradient(to left, #000 0%, #000 42%, transparent 92%); mask-image: linear-gradient(to left, #000 0%, #000 42%, transparent 92%); }

/* ---- B10 · Panel on field -------------------------------------------- */

/* EN: What a panel on the field says: a label and a line of supporting text, inset from the panel's hairline.
       Supporting text on black is neutral-300.
   VN: Nội dung của một tấm trên trường: một nhãn và một dòng chữ phụ, lùi vào so với vạch mảnh của tấm. Chữ phụ
       trên nền đen là neutral-300. */
.flx-panel-on-field__body { padding: 22px 24px; }
.flx-panel-on-field__text { margin: 8px 0 0; font-family: var(--font-body); font-size: var(--t-body-xs); line-height: 1.55; color: var(--n-300); }

/* ---- B11 · Glass over field ------------------------------------------ */

/* EN: A bordered glass button keeps the field's own ink and lifts its border with its fill, so the button is
       read by its edge while the curves stay visible through it. A button does not inherit ink, so it is told to.
   VN: Nút kính có viền giữ màu mực của chính trường và nâng viền lên cùng với nền, để nút được nhận ra nhờ đường
       viền trong khi các đường cong vẫn hiện qua nó. Nút không tự kế thừa màu mực, nên phải được chỉ định. */
.flx-glass--bordered { border: 1px solid rgba(255, 255, 255, 0.28); color: inherit; transition: background var(--flx-dur) var(--flx-ease), color var(--flx-dur) var(--flx-ease), border-color var(--flx-dur) var(--flx-ease); }
.flx-glass--bordered:hover { border-color: rgba(255, 255, 255, 0.5); }

/* EN: Leaving the account is the one act whose feedback is coloured: over the field its wash is red at 34%.
   VN: Rời khỏi tài khoản là thao tác duy nhất có phản hồi mang màu: trên trường, lớp phủ của nó là đỏ ở 34%. */
.flx-glass--danger:hover { background: rgba(230, 34, 0, 0.34); }

/* EN: The cells of a panel on the field (a trust bar, a popover's rows): equal columns divided by the panel's own
       hairline, their labels at neutral-300 until the pointer lifts them to white.
   VN: Các ô của một tấm trên trường (thanh tin cậy, các hàng của bảng nổi): các cột bằng nhau, ngăn bởi chính
       vạch mảnh của tấm, nhãn ở neutral-300 cho đến khi con trỏ nâng chúng lên màu trắng. */
.flx-glass-cells { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.flx-glass-cell { padding: 22px 24px; font-family: var(--font-mono); font-size: var(--t-mono-label); line-height: var(--lh-ui); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: var(--n-300); cursor: pointer; }
.flx-glass-cell + .flx-glass-cell { border-left: 1px solid rgba(255, 255, 255, 0.14); }

/* EN: The filled button on the field is white with ink, the reverse of the primary, because an ink fill cannot
       be seen on black; like every filled button it swaps to the brand blue and never darkens.
   VN: Nút tô đặc trên trường có nền trắng và chữ màu mực, đảo ngược của nút chính, vì nền màu mực không thể nhìn
       thấy trên nền đen; như mọi nút tô đặc, nó đổi sang xanh thương hiệu và không bao giờ sẫm lại. */
.flx-btn--on-field { background: var(--n-000); color: var(--n-900); }
.flx-btn--on-field:hover { background: var(--brand); color: var(--n-000); }

/* ---- B12 · Hero on the field ----------------------------------------- */

/* EN: The brand hero holds two things and keeps them apart: the lockup with its line at the top, the label and
       its figure at the bottom, both 40px in from the leading edge. The parts sit inside one body so they can be
       placed against the hero's corners without leaving the tier the field gives its content.
   VN: Phần hero thương hiệu chứa hai thứ và giữ chúng tách nhau: cụm ghép cùng dòng chữ của nó ở trên, nhãn cùng
       con số ở dưới, cả hai lùi 40px từ mép đầu. Các phần nằm trong một thân duy nhất để có thể đặt vào các góc
       của hero mà không rời khỏi tầng trường dành cho nội dung. */
.flx-hero { display: flex; min-height: 440px; }
.flx-hero__body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 36px 40px; }
.flx-hero__head { display: flex; align-items: center; gap: 18px; }
.flx-hero__rule { width: 1px; height: 22px; flex-shrink: 0; background: rgba(255, 255, 255, 0.32); }
.flx-hero__foot { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }

/* EN: A figure on the field is white. The field's ground is black, so a figure standing on it
       cannot follow the page's ink; its symbol, separators and code keep their own roles.
   VN: Con số trên trường có màu trắng. Nền của trường là màu đen, nên con số đứng trên đó
       không thể theo màu mực của trang; ký hiệu, dấu phân cách và mã tiền tệ của nó giữ nguyên vai trò riêng. */
.flx-figure--on-field { color: var(--n-000); }

/* ---- B13 · Menu tail field ------------------------------------------- */

/* EN: The open master menu's empty tail carries a still field. The tail takes whatever height the destinations
       leave and clips to it, so the band can never sit behind a destination.
   VN: Phần đuôi trống của menu chính khi mở mang một trường tĩnh. Phần đuôi nhận phần chiều cao mà các điểm đến
       để lại và cắt theo đó, nên dải trường không bao giờ nằm sau một điểm đến. */
.flx-menu-tail { position: relative; flex: 1; min-height: 0; overflow: hidden; }

/* EN: The band is 480px, anchored to the tail's bottom, on the menu's own ground and not the field's black; it
       takes no pointer, and it arrives with the menu over the same 420ms.
   VN: Dải cao 480px, neo vào đáy phần đuôi, nằm trên nền của chính menu chứ không phải nền đen của trường; nó
       không nhận con trỏ, và hiện ra cùng menu trong đúng 420ms. */
.flx-menu-tail__field { position: absolute; left: 0; right: 0; bottom: 0; height: 480px; background: transparent; pointer-events: none; opacity: 0; transition: opacity var(--flx-dur) var(--flx-ease); }
.cx-rail:hover .flx-menu-tail__field, .cx-rail:focus-within .flx-menu-tail__field { opacity: 1; }

/* ---- B14 · Login page ------------------------------------------------ */

/* EN: The stage is the company field itself, filling the viewport. The measure is the width the content is
       centred on and the two scrims are placed against, so on a wide screen only the ground and the field grow.
   VN: Sân khấu chính là trường công ty, phủ kín khung nhìn. Bề rộng chuẩn là bề rộng mà nội dung được căn giữa
       theo và hai lớp phủ được đặt theo, nên trên màn hình rộng chỉ có nền và trường lớn thêm. */
.flx-login { --flx-login-measure: 1352px; min-height: 100vh; display: flex; flex-direction: column; }

/* EN: Two scrims, never one: the first behind the panel, the second behind the headline. Each centre is an
       offset from the middle of the stage and each width a share of the measure, both capped, so the scrims stay
       behind the panel and the headline however wide the screen is.
   VN: Hai lớp phủ, không bao giờ một: lớp thứ nhất sau tấm đăng nhập, lớp thứ hai sau tiêu đề. Mỗi tâm là một
       độ lệch so với giữa sân khấu và mỗi bề rộng là một phần của bề rộng chuẩn, đều có giới hạn, nên các lớp phủ
       luôn nằm sau tấm đăng nhập và tiêu đề dù màn hình rộng đến đâu. */
.flx-login__scrim--panel { background: radial-gradient(min(52%, calc(var(--flx-login-measure) * 0.52)) 74% at calc(50% - min(24%, calc(var(--flx-login-measure) * 0.24))) 52%, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.8) 44%, rgba(0, 0, 0, 0) 84%); }
.flx-login__scrim--headline { background: radial-gradient(min(46%, calc(var(--flx-login-measure) * 0.46)) 56% at calc(50% + min(28%, calc(var(--flx-login-measure) * 0.28))) 44%, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.68) 46%, rgba(0, 0, 0, 0) 86%); }

/* EN: The content is one column on the measure: the bar with the lockup, then the group, which takes the rest of
       the height so the panel and the tagline stand in the middle of it.
   VN: Nội dung là một cột trên bề rộng chuẩn: thanh chứa cụm ghép, rồi đến nhóm; nhóm nhận phần chiều cao còn
       lại để tấm đăng nhập và khẩu hiệu đứng ở giữa. */
.flx-login__content { flex: 1; min-height: 0; display: flex; flex-direction: column; width: 100%; max-width: var(--flx-login-measure); align-self: center; }
.flx-login__bar { display: flex; align-items: center; gap: 13px; padding: 34px 40px; flex-shrink: 0; }
.flx-login__bar-rule { width: 1px; height: 17px; flex-shrink: 0; background: rgba(255, 255, 255, 0.22); }
.flx-login__client { display: block; height: 24px; width: auto; flex-shrink: 0; }   /* EN: a client's sign-in shows the client's white logo in the lockup's place (B14). VN: trang đăng nhập của khách hàng hiện logo trắng của khách hàng thay cho cụm biểu trưng (B14). */

/* EN: The panel and the tagline are one group, centred both ways: 420px, 72px between, the tagline up to 620px.
   VN: Tấm đăng nhập và khẩu hiệu là một nhóm, căn giữa theo cả hai chiều: 420px, cách nhau 72px, khẩu hiệu tối
       đa 620px. */
.flx-login__group { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 620px); gap: 72px; align-items: center; justify-content: center; padding: 0 40px 56px; }

/* ---- B15 · Login panel ----------------------------------------------- */

/* EN: The panel is opaque white with no blur, border or shadow: the curves stop at its edge, and that hard stop
       is what makes it the subject of the page. White and ink are ramp steps because the panel never changes.
   VN: Tấm đăng nhập có màu trắng đục, không làm mờ, không viền, không bóng: các đường cong dừng lại ở mép của nó,
       và chính điểm dừng dứt khoát đó khiến nó trở thành chủ thể của trang. Trắng và màu mực là các bậc của
       thang trung tính vì tấm này không bao giờ thay đổi. */
.flx-login__panel { display: flex; flex-direction: column; background: var(--n-000); color: var(--n-900); }

/* EN: The panel says what it is for in one heading and one line before it asks for anything.
   VN: Tấm đăng nhập nói rõ mục đích của nó bằng một tiêu đề và một dòng chữ trước khi yêu cầu bất cứ điều gì. */
.flx-login__intro { padding: 26px 24px 6px; }
.flx-login__heading { margin: 0; }
.flx-login__lead { margin: 10px 0 0; font-family: var(--font-body); font-size: var(--t-body-s); line-height: 1.45; color: var(--ink-soft); text-wrap: pretty; }

/* EN: The fields stand 16px apart, 24px in from the panel's edge; the action row closes the panel, and its
       button runs the panel's full width because it is the only thing to press.
   VN: Các ô nhập cách nhau 16px, lùi 24px từ mép tấm; hàng thao tác khép tấm lại, và nút của nó chạy hết bề rộng
       tấm vì đó là thứ duy nhất để nhấn. */
.flx-login__fields { display: flex; flex-direction: column; gap: 16px; padding: 20px 24px 0; }
.flx-login__actions { display: flex; flex-direction: column; padding: 24px; }

/* EN: The hint says why the button is inert, so no error is thrown at a field the person has not finished.
   VN: Dòng gợi ý nói vì sao nút chưa nhấn được, để không lỗi nào bị ném vào một ô mà người dùng chưa điền xong. */
.flx-login__hint { margin: 14px 0 0; font-family: var(--font-mono); font-size: var(--t-mono-micro); line-height: var(--lh-ui); letter-spacing: 0.14em; text-transform: uppercase; text-align: center; color: var(--ink-ghost); }

/* ---- B16 · Authorise step -------------------------------------------- */

/* EN: The second step replaces the first inside the same panel and arrives from the trailing side, so it reads
       as the next step and not as a new surface.
   VN: Bước thứ hai thay thế bước thứ nhất ngay trong cùng tấm và đi vào từ phía cuối, nên nó được hiểu là bước
       kế tiếp chứ không phải một bề mặt mới. */
.flx-login__step { animation: flx-login-step-in var(--flx-dur) var(--flx-ease) both; }
@keyframes flx-login-step-in { from { transform: translateX(28px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* EN: The code, its label and one line of help, centred above the recap.
   VN: Mã, nhãn của nó và một dòng hướng dẫn, căn giữa phía trên phần tóm tắt. */
.flx-authorise { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 28px 24px 24px; border-bottom: 1px solid var(--rule); }
.flx-authorise__text { text-align: center; }
.flx-authorise__help { margin: 9px 0 0; max-width: 300px; font-family: var(--font-body); font-size: var(--t-body-s); line-height: 1.45; color: var(--ink-soft); text-wrap: pretty; }

/* EN: The tile is 174px square and white, because a code is scanned by a camera.
   VN: Ô chứa mã là hình vuông 174px màu trắng, vì mã được máy ảnh quét. */
.flx-authorise__tile { width: 174px; height: 174px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--n-000); border: 1px solid var(--border); color: var(--n-900); }
.flx-authorise__code { display: block; width: 150px; height: 150px; }

/* EN: An expired code is replaced in place by the clock glyph at 0.3: the tile keeps its place and says nothing
       can be scanned.
   VN: Mã hết hạn được thay ngay tại chỗ bằng glyph đồng hồ ở 0,3: ô giữ nguyên vị trí và cho biết không còn gì
       để quét. */
.flx-authorise__tile.is-expired svg { width: 52px; height: 52px; opacity: 0.3; }

/* EN: A scanned code is replaced in place by the brand square with the white check, which arrives at 0.9 of its
       size over 320ms: it confirms, it does not celebrate.
   VN: Mã đã quét được thay ngay tại chỗ bằng ô vuông màu thương hiệu với dấu tích trắng, đi vào từ 0,9 kích thước
       trong 320ms: nó xác nhận chứ không ăn mừng. */
.flx-authorise__tile.is-done { background: var(--brand); border-color: var(--brand); color: var(--n-000); animation: flx-authorise-done var(--t-enter) var(--flx-ease) both; }
.flx-authorise__tile.is-done svg { width: 76px; height: 76px; }
@keyframes flx-authorise-done { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* EN: The step's footer: Back at the leading edge, and at the trailing edge either the waiting status or the one
       button that carries on. A primary here takes the room that is left.
   VN: Chân của bước: Back ở mép đầu, còn ở mép cuối là trạng thái chờ hoặc nút duy nhất để đi tiếp. Nút chính ở
       đây nhận phần chỗ còn lại. */
.flx-login__footer { display: flex; align-items: center; gap: 14px; padding: 18px 24px; }
.flx-login__footer .flx-btn--primary { flex: 1; }

/* EN: The waiting status is two mono lines: what is being waited for, and how long the code still holds. The
       countdown is the interface accent and turns to the debit hue under 30 seconds; it is the only countdown.
   VN: Trạng thái chờ gồm hai dòng mono: đang chờ điều gì, và mã còn hiệu lực bao lâu. Bộ đếm ngược mang màu nhấn
       của giao diện và chuyển sang màu ghi nợ khi còn dưới 30 giây; đây là bộ đếm ngược duy nhất. */
.flx-authorise__wait { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; font-family: var(--font-mono); font-size: var(--t-mono-label); line-height: var(--lh-ui); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.flx-authorise__valid { font-weight: var(--w-medium); font-variant-numeric: tabular-nums; color: var(--signal); }
.flx-authorise__valid.is-ending { color: var(--debit); }

/* ---- B17 · Tagline and trust row ------------------------------------- */

/* EN: The tagline is one eyebrow, one headline and one supporting line, in that order and never more: a login is
       not a landing page. The supporting line is neutral-300, the solid rung for supporting text on black.
   VN: Khẩu hiệu gồm một dòng dẫn, một tiêu đề và một dòng phụ, theo đúng thứ tự đó và không bao giờ nhiều hơn:
       trang đăng nhập không phải trang đích. Dòng phụ là neutral-300, bậc màu đặc dành cho chữ phụ trên nền đen. */
.flx-login__tagline { min-width: 0; max-width: 620px; }
.flx-login__headline { margin: 22px 0 0; text-wrap: pretty; }
.flx-login__support { margin: 26px 0 0; max-width: 480px; font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: var(--n-300); text-wrap: pretty; }

/* EN: The trust row is mono items divided by neutral-700 rules. Only the first item carries colour, a 6px credit
       square: the words never do.
   VN: Hàng tin cậy gồm các mục mono ngăn bởi các vạch neutral-700. Chỉ mục đầu tiên mang màu, một ô vuông 6px
       màu ghi có: chữ thì không bao giờ mang màu. */
.flx-login__trust { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; margin-top: 40px; }
.flx-login__trust-item { display: flex; align-items: center; gap: 9px; }
.flx-login__trust-sq { width: 6px; height: 6px; flex-shrink: 0; background: var(--credit); }
.flx-login__trust-rule { width: 1px; height: 11px; flex-shrink: 0; background: var(--n-700); }
/* EN: B14 · The company row at the foot of the stage: the trust row's idiom on the bar's insets mirrored, 40px from the
       measure's edge so its first letter stands under the mark, 34px above the bottom as the bar stands 34px below the top.
   VN: B14 · Hàng công ty ở chân sân khấu: cách viết của hàng tin cậy trên khoảng thụt của thanh, đối xứng, cách mép bề
       rộng chuẩn 40px để chữ đầu đứng dưới biểu trưng, cách đáy 34px như thanh cách đỉnh 34px. */
.flx-login__foot { margin-top: 0; padding: 0 40px 34px; flex-shrink: 0; }

/* ---------------------------------------------------------------------
   11c. THE PRODUCT (§5.2 to §5.7).
   EN: The customer front end's own parts: the frame, its header, a surface
       over the field, the balance band, the dashboard and its chart widgets,
       the title band, settings, batch transfer, and drawers and the dialog in
       the product. Each value was read from the product as it was built and
       given a class; where a value equals a token it is the token. Nothing
       here redefines a shared class: a product need on an existing component
       sits on a second class beside it, or under a product class.
   VN: Các phần riêng của giao diện khách hàng: khung, phần đầu trang, bề mặt
       trên trường, dải số dư, bảng điều khiển và các tiện ích biểu đồ, dải
       tiêu đề, cài đặt, chuyển khoản theo lô, ngăn kéo và hộp thoại trong sản
       phẩm. Mỗi giá trị được đọc từ sản phẩm như khi nó được dựng và đặt
       thành một lớp; giá trị nào trùng token thì là token. Không gì ở đây định
       nghĩa lại lớp dùng chung: nhu cầu của sản phẩm trên một thành phần sẵn
       có nằm ở lớp thứ hai bên cạnh, hoặc dưới một lớp của sản phẩm.
   --------------------------------------------------------------------- */
/* ---------------------------------------------------------------------
   1. THE PRODUCT FRAME (§5.2)
   --------------------------------------------------------------------- */

/* EN: The fixed canvas: 1194px so it lands whole on every iPad Pro in landscape, centred with margin so it can
       never be pushed off the leading edge, a definite height so the lists inside it can scroll. `contain: layout`
       makes the frame the box that fixed things inside it are placed against: the master menu (C02), the curtain
       and the toasts (C31) are fixed to the window in the sheets, and in the product the window is the frame.
   VN: Khung cố định: rộng 1194px để nằm trọn trên mọi iPad Pro đặt ngang, căn giữa bằng margin để không bao giờ bị
       đẩy khỏi mép đầu, chiều cao xác định để các danh sách bên trong cuộn được. `contain: layout` biến khung thành
       hộp mà các phần tử cố định bên trong được đặt theo: menu chính (C02), tấm màn và thông báo (C31) được ghim
       vào cửa sổ trong các bảng kiểu, còn trong sản phẩm thì cửa sổ chính là khung. */
.flx-frame {
  position: relative;
  z-index: var(--flx-z-content);
  width: 1194px;
  height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  contain: layout;
  background: var(--app);
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 0 64px 6px rgba(0, 0, 0, 0.62), 0 0 160px 40px rgba(0, 0, 0, 0.5);
  transition: background var(--flx-dur) var(--flx-ease);
}

/* EN: Under the header: the master menu's black column, then the content column. Drawers and the dialog are placed
       against this box, so a drawer's top is measured from the header's bottom edge and carries no header term (§5.6).
   VN: Dưới thanh đầu: cột đen của menu chính, rồi cột nội dung. Ngăn kéo và hộp thoại được đặt theo hộp này, nên
       mép trên của ngăn kéo được đo từ mép dưới của thanh đầu và không chứa số hạng nào của thanh đầu (§5.6). */
.flx-frame__body { position: relative; flex: 1; min-height: 0; display: flex; }
.flx-frame__column { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }

/* EN: The working area is the one scroll container of a screen: 20px of air around it and 20px between cards, and
       no card has a scrollbar of its own. Its children keep their natural height; the area absorbs the rest.
   VN: Vùng làm việc là khung cuộn duy nhất của một màn hình: 20px khoảng trống xung quanh và 20px giữa các thẻ, và
       không thẻ nào có thanh cuộn riêng. Các phần tử con giữ chiều cao tự nhiên; vùng này hấp thụ phần còn lại. */
.flx-frame__work {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column; gap: 20px;
  padding: 20px;
  overflow-y: auto;
  background: var(--field);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.flx-frame__work > * { flex-shrink: 0; }
/* EN: A screen whose first block is the search row sits it 16px above its card, not 20: the row belongs to the card.
   VN: Màn hình có khối đầu là hàng tìm kiếm thì hàng ấy cách thẻ 16px, không phải 20: hàng ấy thuộc về thẻ. */
.flx-frame__work--filtered { gap: 16px; }
.flx-frame__work::-webkit-scrollbar { width: 6px; height: 6px; }
.flx-frame__work::-webkit-scrollbar-thumb { background: var(--border); }
.flx-frame__work::-webkit-scrollbar-track { background: transparent; }

/* ---------------------------------------------------------------------
   2. THE PRODUCT HEADER (§5.3)
   --------------------------------------------------------------------- */

/* EN: 56px on the box, the hairline included: identity at the leading edge, the session at the trailing edge, and
       no navigation. It sits above content overlays, so a drawer passes under it. The lockup itself is B03's.
   VN: Cao 56px tính cả vạch mảnh: danh tính ở mép đầu, phiên làm việc ở mép cuối, và không có điều hướng. Nó nằm
       trên các lớp phủ nội dung, nên ngăn kéo đi qua bên dưới nó. Bản thân cụm ghép biểu trưng là của B03. */
.flx-header {
  position: relative;
  z-index: var(--flx-z-header);
  height: 56px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding-left: 16px;
  background: var(--card);
  border-bottom: 1px solid var(--rule);
}
.flx-header__brand { display: flex; align-items: center; gap: 16px; }
.flx-header__hair { width: 1px; height: 16px; flex-shrink: 0; background: var(--border); }
.flx-header__context { font-family: var(--font-mono); font-size: 10px; line-height: 1; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; }
/* EN: The session's cells run the header's full height and are divided by hairlines, never by gaps.
   VN: Các ô của phiên làm việc cao trọn thanh đầu và được chia bằng vạch mảnh, không bao giờ bằng khoảng trống. */
.flx-header__cells { display: flex; align-items: stretch; height: 100%; }
.flx-header__cell { display: flex; align-items: center; padding: 0 18px; }
.flx-header__cell + .flx-header__cell { border-left: 1px solid var(--rule); }
.flx-header__clock { font-family: var(--font-mono); font-size: 10px; line-height: 1; letter-spacing: 0.1em; text-transform: uppercase; font-variant-numeric: tabular-nums; color: var(--ink-faint); white-space: nowrap; }
/* EN: The account cell's wrapper is pulled over the header's own hairline, so the popover that hangs at
       `top: 100%` starts flush under the header and never needs a 1px correction (§5.3).
   VN: Khối bao của ô tài khoản được kéo đè lên vạch mảnh của thanh đầu, để bảng nổi treo ở `top: 100%` bắt đầu sát
       ngay dưới thanh đầu và không bao giờ cần chỉnh 1px (§5.3). */
.flx-header__account { align-items: stretch; padding: 0; margin-bottom: -1px; }

/* ---------------------------------------------------------------------
   3. A SURFACE OVER THE COMPANY FIELD (§5.3, B10, B11)
   --------------------------------------------------------------------- */

/* EN: The field's ground is black, so whatever stands on it cannot follow the page's roles. This
       scope re-pins the roles once, the way a drawer redeclares the ramp: ink is white, a label is neutral-400,
       supporting text neutral-300 (§2.3), a line is the glass panel's own border, and the tint becomes glass over
       field, so the popover's rows, its icon cells and the copy cell step in translucency (B11) through the rules
       they already have. Credit takes its lifted value for black (§2.1).
   VN: Nền của trường là màu đen, nên thứ gì đứng trên nó không thể theo các vai trò của trang.
       Phạm vi này ghim lại các vai trò một lần, giống cách ngăn kéo khai báo lại dải màu: mực là trắng, nhãn là
       neutral-400, chữ phụ là neutral-300 (§2.3), đường kẻ là viền của chính tấm kính, và sắc phủ trở thành kính trên
       trường, để các hàng của bảng nổi, các ô biểu tượng và ô sao chép đổi độ trong suốt (B11) qua chính các quy tắc
       chúng đã có. Màu credit lấy giá trị nâng sáng dành cho nền đen (§2.1). */
.flx-on-field,
.flx-on-field .flx-popover__row:hover {
  --ink: var(--n-000);
  --ink-soft: var(--n-300);
  --ink-mid: var(--n-500);
  --ink-faint: var(--n-400);
  --ink-ghost: var(--n-600);
  --rule: rgba(255, 255, 255, 0.14);
  --hairline: rgba(255, 255, 255, 0.14);
  --border: rgba(255, 255, 255, 0.14);
  --tint: rgba(255, 255, 255, 0.25);
  --tint-press: rgba(255, 255, 255, 0.34);
  --tint-ink: var(--n-000);
  --credit: #00c257;
}
.flx-on-field { color: var(--ink); }
/* EN: The glass panel carries no shadow and no opaque ground: the field shows through it (B10).
   VN: Tấm kính không có bóng và không có nền đặc: trường hiện xuyên qua nó (B10). */
.flx-popover.flx-on-field { box-shadow: none; }
.flx-popover.flx-on-field > .flx-overlay-header,
.flx-popover.flx-on-field .flx-overlay-header__cell { background: transparent; }
/* EN: Sign out over the field: the row's own wash is B11's danger glass; its icon cell takes the same 0.34 wash and
       its label and glyph stay white, because the debit red does not read on black.
   VN: Đăng xuất trên trường: lớp phủ của chính hàng là kính hủy bỏ của B11; ô biểu tượng của nó nhận cùng lớp phủ
       0,34 và nhãn cùng glyph giữ màu trắng, vì màu đỏ debit không đọc được trên nền đen. */
.flx-on-field .flx-menu__row--danger:hover > .flx-popover__cell { background: rgba(230, 34, 0, 0.34); }
.flx-on-field .flx-menu__row--danger:hover .flx-menu__label,
.flx-on-field .flx-menu__row--danger:hover > .flx-popover__cell svg { color: var(--n-000); stroke: var(--n-000); }

/* EN: The account popover is translucent over the field, so nothing filled may sit under its footprint: the
       balance band's buttons fade out for as long as it is open (§5.3, B10). The sheet opens the popover, so the
       sheet fades them.
   VN: Bảng tài khoản trong mờ trên trường, nên không thứ gì tô đặc được nằm dưới phạm vi của nó: các nút của dải số
       dư mờ đi trong suốt thời gian bảng mở (§5.3, B10). Bảng kiểu mở bảng nổi, nên bảng kiểu cũng làm mờ các nút. */
.flx-frame:has(.cx-account:not(.is-closed):hover, .cx-account:not(.is-closed):focus-within) .flx-balance__actions { opacity: 0; pointer-events: none; }

/* ---------------------------------------------------------------------
   4. THE BALANCE BAND: THE PRODUCT'S HERO (§5.5)
   --------------------------------------------------------------------- */

/* EN: 236px, constant at every viewport: the account's balance over Field · Live. It is the product's own hero;
       `.flx-hero` is the site's (B12, 440px and more) and is not borrowed. The field enters from the top edge, so
       it takes the shared downward edge fade (B08).
   VN: Cao 236px, không đổi ở mọi khung nhìn: số dư tài khoản trên Field · Live. Đây là hero riêng của sản phẩm;
       `.flx-hero` là của trang giới thiệu (B12, từ 440px trở lên) và không được mượn. Trường đi vào từ mép trên, nên
       nó dùng mép mờ hướng xuống của bảng kiểu dùng chung (B08). */
.flx-balance { height: 236px; flex-shrink: 0; display: flex; justify-content: space-between; }
.flx-balance__content { padding: 40px 0 0 34px; }
.flx-balance__figure { display: flex; margin-top: 14px; }
/* EN: Under the balance: what changed today, a hairline, and the account the balance belongs to with its copy cell.
   VN: Dưới số dư: thay đổi trong ngày, một vạch mảnh, và tài khoản mà số dư thuộc về cùng ô sao chép của nó. */
.flx-balance__meta { display: flex; align-items: center; gap: 13px; margin-top: 16px; }
.flx-balance__delta { font-family: var(--font-mono); font-size: 11px; line-height: 1; font-variant-numeric: tabular-nums; color: var(--credit); }
.flx-balance__hair { width: 1px; height: 11px; flex-shrink: 0; background: rgba(255, 255, 255, 0.22); }
.flx-balance__account { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; line-height: 1; color: var(--ink-soft); }
/* EN: The copy cell beside the account number is a 24px square with no dividing rule: it sits on a line of text, not in a band.
   VN: Ô sao chép cạnh số tài khoản là ô vuông 24px không có vạch chia: nó nằm trên một dòng chữ, không nằm trong một dải. */
.flx-balance__copy { --copy-size: 24px; border-left: none; }
/* EN: The band's two buttons stand in its trailing corner and fade as one when the account popover covers them.
   VN: Hai nút của dải đứng ở góc cuối và cùng mờ đi khi bảng tài khoản phủ lên chúng. */
.flx-balance__actions { align-self: flex-end; display: flex; gap: 8px; margin: 0 30px 28px 0; transition: opacity var(--flx-dur) var(--flx-ease); }

/* ---------------------------------------------------------------------
   5. THE DASHBOARD (§5.5)
   --------------------------------------------------------------------- */

/* EN: Two columns: the left takes the room and holds the announcement and the ledger; the right is 380px of
       widgets. 20px between the columns and between the cards in each.
   VN: Hai cột: cột trái chiếm phần còn lại và chứa thông báo cùng sổ cái; cột phải rộng 380px chứa các tiện ích.
       20px giữa hai cột và giữa các thẻ trong mỗi cột. */
.flx-dash { display: flex; align-items: flex-start; gap: 20px; }
.flx-dash__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.flx-dash__side { width: 380px; flex-shrink: 0; display: flex; flex-direction: column; gap: 20px; }

/* EN: The parts of a layout announcement, designed to the 169px box. The slot itself, its artwork cell and its
       close cell are in the shared sheet; these are what stands inside them.
   VN: Các phần của một thông báo dạng bố cục, thiết kế theo ô 169px. Bản thân ô, ô hình minh họa và ô đóng nằm trong
       bảng kiểu dùng chung; đây là những gì đứng bên trong chúng. */
.flx-announce__body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 18px 24px; }
.flx-announce__eyebrow { display: flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 9px; line-height: 1; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; color: var(--brand); }
.flx-announce__eyebrow::before { content: ""; width: 5px; height: 5px; flex-shrink: 0; background: var(--brand); }
.flx-announce__headline { max-width: 430px; margin: 11px 0 0; font-family: var(--font-display); font-size: 22px; font-weight: 500; line-height: 1.14; letter-spacing: -0.03em; text-wrap: pretty; }
.flx-announce__row { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.flx-announce__line { max-width: 300px; margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink-soft); text-wrap: pretty; }
.flx-announce__art svg { width: 82px; height: 82px; stroke-width: 0.9; color: var(--brand); opacity: 0.2; }
.flx-announce__close svg { width: 14px; height: 14px; opacity: 0.55; }
/* EN: Dismissing collapses the slot: the sheet takes its height to 0 and closes the column's 20px gap behind it;
       the slot also fades, over the same 420ms, and stops taking the pointer. To be folded into the slot's own rule.
   VN: Đóng thông báo làm ô co lại: bảng kiểu đưa chiều cao về 0 và khép khoảng 20px của cột phía sau nó; ô cũng mờ
       đi, trong cùng 420ms, và ngừng nhận con trỏ. Sẽ được gộp vào quy tắc của chính ô. */
.flx-announce--slot { flex-shrink: 0; transition: height var(--flx-dur) var(--flx-ease), opacity var(--flx-dur) var(--flx-ease), margin-bottom var(--flx-dur) var(--flx-ease); }
.flx-announce--slot.is-dismissed { opacity: 0; pointer-events: none; }

/* EN: The shortcut widget: a 2 × 2 grid of the four most used beneficiaries, divided by hairlines. The whole cell
       takes the tint and is the target; it opens the transfer drawer with that beneficiary already chosen.
   VN: Tiện ích lối tắt: lưới 2 × 2 gồm bốn người thụ hưởng dùng nhiều nhất, chia bằng vạch mảnh. Cả ô nhận sắc phủ
       và là vùng bấm; nó mở ngăn kéo chuyển tiền với người thụ hưởng ấy đã được chọn sẵn. */
.flx-shortcuts { display: flex; flex-wrap: wrap; }
.flx-shortcut {
  width: 50%;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border: none; background: transparent; color: inherit; font: inherit; text-align: left;
  cursor: pointer;
  --tile-knockout: var(--card);
  transition: background var(--flx-dur) var(--flx-ease), color var(--flx-dur) var(--flx-ease);
}
.flx-shortcut:nth-child(odd) { border-right: 1px solid var(--hairline); }
.flx-shortcut:nth-child(-n+2) { border-bottom: 1px solid var(--hairline); }
.flx-shortcut:hover {
  background: var(--tint); color: var(--tint-ink);
  --ink: var(--n-900); --ink-soft: var(--n-600); --ink-mid: var(--n-500); --ink-faint: var(--n-400); --ink-ghost: var(--n-300);
}
.flx-shortcut:active { background: var(--tint-press); }
.flx-shortcut__text { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.flx-shortcut__name { font-size: 13px; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flx-shortcut__bank { font-family: var(--font-mono); font-size: 10px; line-height: 1; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-mid); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------------------------------------------------------------
   6. A CHART WIDGET ON THE PRODUCT DASHBOARD (§5.5)
   --------------------------------------------------------------------- */

/* EN: The body of a chart widget: a mono label over one headline figure with a one-line verdict, then the plot at
       a definite height. A chart is a whole widget and is never squeezed.
   VN: Thân của một tiện ích biểu đồ: nhãn mono trên một con số chính kèm một dòng nhận định, rồi ô đồ thị có chiều
       cao xác định. Biểu đồ là một tiện ích trọn vẹn và không bao giờ bị ép nhỏ. */
.flx-chart { padding: 20px 20px 18px; }
.flx-chart__figure { display: flex; margin-top: 7px; }
.flx-chart__verdict { margin-top: 8px; font-family: var(--font-mono); font-size: 9px; line-height: 1; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }

/* EN: The product's plot: a 42px gutter of three tick labels, then the bars over their labels. It is drawn in the
       neutral ramp and has an axis and gridlines and that is all.
   VN: Ô đồ thị của sản phẩm: lề 42px chứa ba nhãn vạch, rồi các cột trên nhãn của chúng. Nó được vẽ bằng dải trung
       tính và chỉ có một trục cùng các đường lưới, không gì khác. */
.flx-plot { position: relative; display: flex; height: 148px; margin-top: 20px; }
.flx-plot__ticks { width: 42px; flex-shrink: 0; display: flex; flex-direction: column; justify-content: space-between; padding-bottom: 21px; font-family: var(--font-mono); font-size: 9px; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; font-variant-numeric: tabular-nums; color: var(--ink-faint); }
.flx-plot__area { flex: 1; min-width: 0; display: flex; flex-direction: column; }
/* EN: Beside the bar chart's own class, which the behaviour script reads: the product's plot takes the room its
       widget leaves, has no margin of its own, and closes on a solid neutral-200 baseline.
   VN: Đứng cạnh lớp của chính biểu đồ cột, thứ mà kịch bản hành vi đọc: ô đồ thị của sản phẩm chiếm phần tiện ích
       để lại, không có lề riêng, và khép bằng một đường đáy neutral-200 liền nét. */
.flx-plot__bars { flex: 1; min-height: 0; height: auto; margin: 0; gap: 6px; border-bottom: 1px solid var(--border); }
/* EN: Bars stand above the gridlines and under the zero line: gridlines 0, bars 1, zero line 2 (§2.9).
   VN: Các cột đứng trên đường lưới và dưới đường số không: đường lưới 0, cột 1, đường số không 2 (§2.9). */
.flx-plot__bars > .cx-col { position: relative; z-index: 1; }
.flx-plot__grid { position: absolute; left: 0; right: 0; top: var(--at, 0%); height: 1px; border-top: 1px dashed var(--rule); pointer-events: none; }
.flx-plot__grid--base { top: auto; bottom: 0; }
.flx-plot__zero { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--border); z-index: 2; pointer-events: none; }
/* EN: A diverging column holds two bars in one 10px line: received grows up from zero, sent grows down from it.
   VN: Một cột phân kỳ chứa hai thanh trên cùng một đường 10px: tiền nhận mọc lên từ số không, tiền gửi mọc xuống từ đó. */
.flx-plot__bars .flx-plot__col--mirror { flex-direction: column; align-items: center; justify-content: flex-start; gap: 0; }
.flx-plot__labels { display: flex; align-items: center; gap: 6px; height: 21px; }
.flx-plot__labels > span { flex: 1; min-width: 0; text-align: center; font-family: var(--font-mono); font-size: 9px; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
/* EN: Seven columns stand 8px apart where twelve stand 6px apart, so the bars keep their 10px and the plot its width.
   VN: Bảy cột cách nhau 8px trong khi mười hai cột cách nhau 6px, để các thanh giữ 10px và ô đồ thị giữ chiều rộng. */
.flx-plot--week .flx-plot__bars, .flx-plot--week .flx-plot__labels { gap: 8px; }

/* EN: The strip of period totals that closes a chart widget: 56px, cells divided by a rule, a mono label over its value.
   VN: Dải tổng theo kỳ khép lại một tiện ích biểu đồ: 56px, các ô chia bằng một vạch, nhãn mono nằm trên giá trị. */
.flx-totals { display: flex; align-items: stretch; height: 56px; border-top: 1px solid var(--rule); }
.flx-totals__cell { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 0 20px; }
.flx-totals__cell + .flx-totals__cell { border-left: 1px solid var(--rule); }
.flx-totals__value { font-family: var(--font-mono); font-size: 13px; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); }
.flx-totals__value--quiet { color: var(--ink-soft); }

/* ---------------------------------------------------------------------
   7. THE TITLE BAND (§5.6)
   --------------------------------------------------------------------- */

/* EN: What a screen without the balance band opens with: a mono eyebrow over one line that says what the screen
       is, and at the trailing edge the available balance or the screen's one action.
   VN: Thứ mở đầu một màn hình không có dải số dư: một dòng mono nhỏ phía trên một dòng nói màn hình này là gì, và ở
       mép cuối là số dư khả dụng hoặc hành động duy nhất của màn hình. */
.flx-band { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 30px 30px 22px; flex-shrink: 0; border-bottom: 1px solid var(--rule); }
.flx-band__eyebrow { font-family: var(--font-mono); font-size: 10px; line-height: 1; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }
.flx-band__title { margin: 8px 0 0; font-family: var(--font-display); font-size: 22px; font-weight: 500; line-height: 1; letter-spacing: -0.02em; }
.flx-band__aside { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
/* EN: The settings band leads with the person: a 56px monogram, the name, then the business and the role on one line.
   VN: Dải của màn hình cài đặt mở đầu bằng con người: chữ lồng 56px, tên, rồi doanh nghiệp và vai trò trên một dòng. */
.flx-band--profile { align-items: center; justify-content: flex-start; padding-bottom: 26px; }
.flx-band--profile .flx-band__title { margin-top: 0; }
.flx-band__meta { display: flex; align-items: center; gap: 12px; margin-top: 7px; font-size: 13px; line-height: 1; color: var(--ink-soft); }
.flx-band__hair { width: 1px; height: 11px; background: var(--border); }
.flx-band__end { margin-left: auto; }

/* EN: Two more sizes of the monogram: 34px beside a name that heads a drawer, 56px beside the name that heads the
       settings screen. The letters grow with the square; the ground stays `--tile`.
   VN: Thêm hai cỡ của chữ lồng: 34px cạnh tên mở đầu một ngăn kéo, 56px cạnh tên mở đầu màn hình cài đặt. Chữ lớn
       theo ô vuông; nền vẫn là `--tile`. */
.flx-monogram--lg { width: 34px; height: 34px; font-size: 11px; }
.flx-monogram--xl { width: 56px; height: 56px; font-family: var(--font-display); font-size: 22px; font-weight: 500; letter-spacing: 0; }

/* ---------------------------------------------------------------------
   8. SETTINGS (§5.5, §2.2)
   --------------------------------------------------------------------- */

/* EN: A cell that holds a control gives back its padding, so the control never makes its row taller than the others.
   VN: Ô chứa một ô điều khiển trả lại phần đệm của nó, để ô điều khiển không bao giờ làm hàng cao hơn các hàng khác. */
.flx-row > .flx-cell--control { display: flex; align-items: center; padding-top: 6px; padding-bottom: 6px; }

/* ---------------------------------------------------------------------
   9. BATCH TRANSFER (§5.7)
   --------------------------------------------------------------------- */

/* EN: The failure strip under the file's row: a rejected row blocks the whole batch, and the strip says why in the
       44px icon column with the alert glyph in the debit hue.
   VN: Dải báo lỗi dưới hàng của tệp: một hàng bị từ chối chặn cả lô, và dải nói lý do trong cột biểu tượng 44px với
       glyph cảnh báo mang màu debit. */
.flx-failure { display: flex; align-items: stretch; background: var(--field); border-bottom: 1px solid var(--hairline); }
.flx-failure__cell { width: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-right: 1px solid var(--hairline); color: var(--debit); }
.flx-failure__cell svg { width: 18px; height: 18px; stroke-width: 1.6; }
.flx-failure__text { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 12px 16px; }
.flx-failure__label { font-family: var(--font-mono); font-size: 9px; line-height: 1; letter-spacing: 0.14em; text-transform: uppercase; color: var(--debit); }
.flx-failure__line { font-size: 13px; line-height: 1.45; color: var(--ink-soft); text-wrap: pretty; }
/* EN: What closes the staging card: the batch total at the leading edge and the one button that advances.
   VN: Thứ khép lại thẻ chuẩn bị: tổng của lô ở mép đầu và nút duy nhất để đi tiếp. */
.flx-closing { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-top: 1px solid var(--rule); }
.flx-closing__total { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
/* EN: A run opened in place: its child rows stand on the tint with the run's row, as one band, and lead at a 46px
       indent so a child's name sits past its parent's. They are read, never acted on.
   VN: Một lượt chạy được mở tại chỗ: các hàng con đứng trên sắc phủ cùng hàng của lượt chạy, thành một dải, và lùi
       vào 46px để tên của hàng con nằm quá tên của hàng cha. Chúng để đọc, không bao giờ để thao tác. */
.flx-row--band {
  background: var(--tint); color: var(--tint-ink);
  --tile-knockout: var(--tint);
  --ink: var(--n-900); --ink-soft: var(--n-600); --ink-mid: var(--n-500); --ink-faint: var(--n-400); --ink-ghost: var(--n-300);
}
.flx-row--band > .flx-cell--lead { padding-left: 46px; gap: 8px; }

/* ---------------------------------------------------------------------
   10. DRAWERS AND THE DIALOG IN THE PRODUCT (§5.6)
   --------------------------------------------------------------------- */

/* EN: Where a product drawer starts: on the balance band's bottom edge in the overview, on the title band's on
       other screens, at the height §5.6 states.
   VN: Nơi ngăn kéo của sản phẩm bắt đầu: ở mép dưới của dải số dư trên màn hình tổng quan, ở mép dưới của dải tiêu
       đề trên các màn hình khác, theo chiều cao mà §5.6 nêu. */
.flx-drawer--under-hero { top: 236px; }
.flx-drawer--under-band { top: 183px; }
/* EN: A dialog that holds a review may be taller than the frame: it stops 24px short of each edge and its body scrolls.
   VN: Hộp thoại chứa phần xem lại có thể cao hơn khung: nó dừng cách mỗi mép 24px và phần thân của nó cuộn. */
.flx-dialog--review { display: flex; flex-direction: column; max-height: calc(100% - 48px); box-shadow: var(--shadow-drawer); }

/* EN: Who a drawer is about: a 34px monogram, the alias the customer uses, the registered name beneath.
   VN: Ngăn kéo nói về ai: chữ lồng 34px, bí danh mà khách hàng dùng, tên đăng ký bên dưới. */
.flx-identity { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--rule); }
.flx-identity__text { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.flx-identity__name { font-size: 14px; font-weight: 500; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flx-identity__sub { font-size: 12px; line-height: 1; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* EN: Fields in a drawer. Inputs you complete stand as one group with no lines between them; fields you edit one
       at a time on a record are divided by hairlines, because each is a fact of that record.
   VN: Các ô nhập trong ngăn kéo. Những ô bạn điền đứng thành một nhóm không có vạch ở giữa; những ô bạn sửa từng cái
       trên một bản ghi thì chia bằng vạch mảnh, vì mỗi ô là một dữ kiện của bản ghi đó. */
.flx-form { display: flex; flex-direction: column; gap: 16px; padding: 18px 20px 16px; }
.flx-form--ruled { border-bottom: 1px solid var(--rule); }
.flx-form--divided { gap: 0; padding: 0; }
.flx-form--divided > .flx-formfield { padding: 14px 20px; border-bottom: 1px solid var(--hairline); }
/* EN: One quiet mono line above a drawer's buttons: what the act costs and how long it takes.
   VN: Một dòng mono lặng phía trên các nút của ngăn kéo: thao tác tốn bao nhiêu và mất bao lâu. */
.flx-note { margin: 0; padding: 14px 20px; font-family: var(--font-mono); font-size: 10px; line-height: 1; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-ghost); }

/* EN: The second step of an act slides in inside the same surface: it is never a second overlay.
   VN: Bước thứ hai của một thao tác trượt vào ngay trong cùng bề mặt: nó không bao giờ là lớp phủ thứ hai. */
.flx-step { animation: flx-step-in var(--flx-dur) var(--flx-ease) both; }
@keyframes flx-step-in { from { transform: translateX(28px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* EN: The scan block that heads a confirm step: the code on its tile, a mono label, one line of help.
   VN: Khối quét mã mở đầu bước xác nhận: mã trên ô của nó, một nhãn mono, một dòng hướng dẫn. */
.flx-scan { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 26px 20px 24px; border-bottom: 1px solid var(--rule); text-align: center; }
.flx-scan__label { font-family: var(--font-mono); font-size: 9px; line-height: 1; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }
/* EN: The tile is 174px square. While it holds a code it is white with a 1px border: a code must be read by a
       camera.
   VN: Ô vuông 174px. Khi chứa mã, nó màu trắng với viền 1px: mã phải được máy ảnh đọc. */
.flx-scan__tile { width: 174px; height: 174px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--border); background: transparent; color: var(--ink); }
.flx-scan__tile--code { background: var(--n-000); cursor: pointer; }
.flx-scan__code { display: block; width: 150px; height: 150px; }
.flx-scan__modules { fill: var(--n-900); stroke: none; }
/* EN: An expired code is replaced in place by the `scheduled` glyph, quiet: the tile keeps its size so nothing moves.
   VN: Mã hết hạn được thay tại chỗ bằng glyph `scheduled`, lặng lẽ: ô giữ nguyên kích thước nên không gì dịch chuyển. */
.flx-scan__tile--expired svg { width: 52px; height: 52px; stroke-width: 1.6; color: var(--ink-ghost); }
/* EN: On scan the tile becomes the brand square with the white check, entering once at 0.9 over 320ms.
   VN: Khi quét xong, ô trở thành ô vuông màu thương hiệu với dấu tích trắng, đi vào một lần từ 0,9 trong 320ms. */
.flx-scan__tile--done { background: var(--brand); border-color: var(--brand); color: var(--n-000); animation: flx-scan-in var(--t-enter) var(--flx-ease) both; }
.flx-scan__tile--done svg { width: 76px; height: 76px; stroke-width: 1.6; }
@keyframes flx-scan-in { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.flx-scan__help { max-width: 280px; margin: 8px 0 0; font-size: 13px; line-height: 1.45; color: var(--ink-soft); text-wrap: pretty; }

/* EN: A footer whose two sides are different things: the way back at the leading edge, the status at the trailing one.
   VN: Phần chân có hai phía là hai thứ khác nhau: đường quay lại ở mép đầu, trạng thái ở mép cuối. */
.flx-overlay-actions--split { justify-content: space-between; align-items: center; }
/* EN: The waiting status: two mono lines at the footer's trailing edge. The countdown is the only one in Flexo; it
       is the signal colour and steps to debit under 30 seconds. A timer may expire a code; it never advances a step.
   VN: Trạng thái chờ: hai dòng mono ở mép cuối của phần chân. Bộ đếm ngược là cái duy nhất trong Flexo; nó mang màu
       tín hiệu và chuyển sang debit khi còn dưới 30 giây. Bộ hẹn giờ có thể làm mã hết hạn; nó không bao giờ đẩy
       sang bước kế. */
.flx-waiting { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.flx-waiting__line { font-family: var(--font-mono); font-size: 10px; line-height: 1; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.flx-countdown { font-family: var(--font-mono); font-size: 10px; line-height: 1; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--signal); }
.flx-countdown.is-ending { color: var(--debit); }

/* ---------------------------------------------------------------------
   12. TOUCH: no hover; the tint fires on press. 44px minimum.
   --------------------------------------------------------------------- */

@media (hover: none) {
  .flx-row:hover, .flx-chip:hover, .flx-popover__row:hover, .flx-rail__cell:hover { background: transparent; color: inherit; box-shadow: none; }
  .flx-row:not(.is-static):active, .flx-chip:active, .flx-popover__row:active, .flx-rail__cell:active {
    background: var(--tint); color: var(--tint-ink);
    transition-duration: var(--flx-dur-touch);
  }
}

/* ---------------------------------------------------------------------
   13. THE COPY BUTTON (C53): an icon, never a word.
   EN: A script adds .is-copied on click, swaps the glyph to the check, and
       removes both after 1600ms. No toast.
   VN: Kịch bản thêm .is-copied khi bấm, đổi glyph sang dấu tích, rồi gỡ cả
       hai sau 1600ms. Không có thông báo.
   --------------------------------------------------------------------- */
.flx-copy { width: var(--copy-size, 44px); height: var(--copy-size, 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: rgba(20, 20, 20, 0.62); cursor: pointer; transition: background var(--t-feedback) var(--ease), color var(--t-feedback) var(--ease); }
.flx-copy svg { width: 18px; height: 18px; stroke-width: 1.6; }
.flx-copy:hover, .flx-copy.is-hover, .flx-copy.is-copied { background: var(--tint); color: var(--brand); }
.flx-copy.is-copied svg { animation: flx-check-in 320ms var(--ease); }
@keyframes flx-check-in { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.flx-copy--row { height: auto; align-self: stretch; border-left-color: var(--hairline); }
.flx-copy--dark { color: rgba(255, 255, 255, 0.62); border-left-color: rgba(255, 255, 255, 0.16); }
.flx-copy--dark:hover, .flx-copy--dark.is-hover, .flx-copy--dark.is-copied { background: #eef1ff; color: #1b3aff; }

/* EN: A verb that closes a row is the row's trailing action: 16px in from the edge, centred on the line.
   VN: Động từ kết thúc một hàng là hành động cuối của hàng: lùi 16px từ mép, căn giữa theo dòng. */
.flx-row > .flx-verb { padding: 0 16px; align-self: center; }
/* EN: In a fact row the status sits under the value at its own width, never stretched across the row.
   VN: Trong hàng dữ kiện, trạng thái nằm dưới giá trị với chiều rộng riêng, không bao giờ bị kéo giãn hết hàng. */
.flx-fact__text > .flx-status { align-self: flex-start; }

/* ---------------------------------------------------------------------
   11d. THE PRODUCT BELOW ITS FRAME, AND ON A PHONE (§5.10).
   EN: Only the product changes shape: a back office is never seen on a phone (§4.3), so every rule here is held
       inside the product frame and none reaches a console. Below 1194px the frame is the window; at 820px and below
       the product takes its phone form. At the end of the sheet on purpose: a rule in a media query weighs no more
       than the same rule outside it, so these come after the components they adjust, and each names the frame so
       it also outranks the console sheet that loads after this one.
   VN: Chỉ sản phẩm đổi hình dạng: back office không bao giờ được xem trên điện thoại (§4.3), nên mọi quy tắc ở đây
       nằm trong khung sản phẩm và không quy tắc nào chạm tới console. Dưới 1194px khung chính là cửa sổ; từ 820px trở
       xuống sản phẩm chuyển sang dạng điện thoại. Cố ý đặt cuối bảng kiểu: quy tắc trong media query không nặng hơn
       chính quy tắc đó ở ngoài, nên chúng đứng sau các thành phần mà chúng điều chỉnh, và mỗi quy tắc nêu tên khung
       để thắng cả bảng kiểu console được nạp sau bảng này.
   --------------------------------------------------------------------- */

/* EN: The frame is 1194px so it lands whole on an iPad in landscape. A narrower window cannot hold it, so the frame
       becomes the window: full width, no desk around it and so no shadow.
   VN: Khung rộng 1194px để nằm trọn trên iPad đặt ngang. Cửa sổ hẹp hơn không chứa nổi nó, nên khung trở thành
       chính cửa sổ: rộng hết, không có nền bao quanh và vì thế không có bóng. */
@media (max-width: 1193px) {
  .flx-frame { width: 100%; box-shadow: none; }
  /* EN: An 88px balance and the hero's two actions do not fit side by side in less than the frame: the actions drop
         under the balance and the hero takes its own height. A drawer can then no longer stand on the hero's bottom
         edge at 236px, so it takes the whole body under the header.
     VN: Số dư 88px và hai nút hành động của khối chính không vừa cạnh nhau khi hẹp hơn khung: các nút xuống dưới số
         dư và khối chính lấy chiều cao tự nhiên. Khi đó ngăn kéo không thể đứng trên mép dưới 236px của khối chính
         nữa, nên nó chiếm toàn bộ phần thân dưới thanh đầu. */
  .flx-frame .flx-balance { height: auto; flex-direction: column; justify-content: flex-start; }
  .flx-frame .flx-balance__actions { align-self: flex-start; margin: 24px 0 28px 34px; }
  .flx-frame .flx-drawer, .flx-frame .flx-drawer--under-hero, .flx-frame .flx-drawer--under-band { top: 0; }
  /* EN: The overview's 380px side column only stands beside the main one inside the full frame; narrower, the main
         column would squeeze the announcement out of its 169px slot. The side column moves under the main one.
     VN: Cột phụ 380px của trang tổng quan chỉ đứng cạnh cột chính khi khung đủ rộng; hẹp hơn, cột chính sẽ ép thông
         báo tràn khỏi ô 169px của nó. Cột phụ chuyển xuống dưới cột chính. */
  .flx-frame .flx-dash { flex-direction: column; align-items: stretch; }
  .flx-frame .flx-dash__side { width: auto; }
}

@media (max-width: 820px) {
  /* EN: The frame is the phone's own height, which the dynamic unit keeps true while the browser's bars come and go.
     VN: Khung cao đúng bằng chiều cao của điện thoại; đơn vị động giữ đúng chiều cao đó khi các thanh của trình duyệt
         hiện ra và ẩn đi. */
  .flx-frame { height: 100dvh; }
  /* EN: On a phone the whole column scrolls, the hero and the page band with it: a fixed hero would keep a third of
         the screen for a figure already read. The working area stops being a scroller of its own.
     VN: Trên điện thoại cả cột cuộn, khối chính và dải tiêu đề cuộn theo: khối chính cố định sẽ giữ một phần ba màn
         hình cho một con số đã đọc rồi. Vùng làm việc thôi là một vùng cuộn riêng. */
  .flx-frame .flx-frame__column { overflow: hidden auto; }
  .flx-frame .flx-frame__work { flex: 1 0 auto; overflow: visible; }

  /* EN: The header keeps the mark, the context and the account. The status and the clock go: a phone has room for
         three things in 56px, and the account is the one a person needs.
     VN: Thanh đầu giữ dấu hiệu, ngữ cảnh và tài khoản. Trạng thái và đồng hồ bị bỏ: điện thoại chỉ đủ chỗ cho ba
         thứ trong 56px, và tài khoản là thứ người dùng cần. */
  .flx-frame .flx-header__cell:not(.flx-header__account) { display: none; }
  .flx-frame .cx-account__who { display: none; }
  .flx-frame .flx-header__context { overflow: hidden; text-overflow: ellipsis; }
  .flx-frame .flx-header__brand { min-width: 0; }
  .flx-frame .cx-account__pop { width: min(380px, 100vw); }

  /* EN: The master menu is locked to the bottom of the phone, never in the header (Chris, 17 Nov 2026): a black bar
         of 44px icon cells spread across the width, no text, no dividers, no tail, clear of the phone's home bar. It
         is where a native application keeps it, and this system also builds the native one. It never opens on a
         phone: there is no pointer to open it, and the cell's glyph is its name.
     VN: Menu chính được khóa ở đáy điện thoại, không bao giờ ở thanh đầu (Chris, 17/11/2026): một thanh đen gồm các ô
         biểu tượng 44px trải đều theo chiều ngang, không chữ, không vạch chia, không phần đuôi, tránh thanh home của
         điện thoại. Đó là chỗ ứng dụng gốc đặt nó, và hệ thống này cũng dựng ứng dụng gốc. Trên điện thoại nó không
         bao giờ mở ra: không có con trỏ để mở, và biểu tượng của ô là tên của nó. */
  .flx-frame .flx-frame__body { flex-direction: column; }
  .flx-frame .cx-rail-spacer { display: none; }
  .flx-frame .flx-frame__column { order: 1; }
  .flx-frame .cx-rail, .flx-frame .cx-rail:hover, .flx-frame .cx-rail:focus-within {
    order: 2; position: relative; top: auto; bottom: auto; left: auto; flex-shrink: 0;
    width: 100%; flex-direction: row; justify-content: space-between; gap: 0;
    padding: 6px 10px calc(6px + env(safe-area-inset-bottom, 0px)); overflow: hidden; box-shadow: none;
  }
  .flx-frame .cx-rail__row { width: 44px; flex-shrink: 0; }
  .flx-frame .cx-rail__text, .flx-frame .cx-rail__divider, .flx-frame .flx-menu-tail { display: none; }
  .flx-frame .cx-curtain { left: 0; }

  /* EN: The hero cannot hold a seven-digit balance at 88px in 350px: it steps down the figure ladder to 32px. The
         change and the account each take a line, and the two actions take the full width.
     VN: Khối chính không chứa nổi số dư bảy chữ số ở cỡ 88px trong 350px: nó lùi trên thang cỡ số xuống 32px. Phần
         thay đổi và tài khoản mỗi thứ một dòng, và hai nút hành động chiếm hết chiều ngang. */
  .flx-frame .flx-balance__content { padding: 28px 20px 0; }
  .flx-frame .flx-balance .flx-figure--xl { font-size: var(--t-figure-inline); }
  .flx-frame .flx-balance__meta { flex-direction: column; align-items: flex-start; gap: 10px; }
  .flx-frame .flx-balance__hair { display: none; }
  .flx-frame .flx-balance__actions { align-self: stretch; margin: 20px; }
  .flx-frame .flx-balance__actions > .flx-btn { flex: 1; justify-content: center; }

  /* EN: The page band keeps 20px to the edge like the working area; its trailing block drops under the title.
     VN: Dải tiêu đề trang giữ 20px tới mép như vùng làm việc; khối cuối của nó xuống dưới tiêu đề. */
  .flx-frame .flx-band { flex-wrap: wrap; align-items: flex-start; padding: 24px 20px 18px; }
  .flx-frame .flx-band__aside { align-items: flex-start; }
  .flx-frame .flx-band__end { margin-left: 0; }

  /* EN: The announcement stands at its own height instead of the 169px slot, loses its picture, and its action takes
         the full width under the line.
     VN: Thông báo đứng ở chiều cao tự nhiên thay vì ô 169px, bỏ hình minh họa, và nút hành động chiếm hết chiều ngang
         dưới dòng chữ. */
  .flx-frame .flx-announce:not(.is-dismissed) { height: auto; }
  .flx-frame .flx-announce__art { display: none; }
  .flx-frame .flx-announce__body { padding: 18px 20px; }
  .flx-frame .flx-announce__row { flex-wrap: wrap; }
  .flx-frame .flx-announce__row > .flx-btn { flex: 1 0 100%; justify-content: center; }

  /* EN: The filter band stacks its groups: each group's label stands above its own chips instead of at the far end of
         a line it no longer shares.
     VN: Dải bộ lọc xếp các nhóm chồng lên nhau: nhãn của mỗi nhóm đứng trên các nút của chính nhóm đó thay vì ở cuối
         một dòng mà nó không còn dùng chung. */
  .flx-frame .cx-filterband { flex-direction: column; align-items: flex-start; }
  .flx-frame .cx-filterband__end { margin-left: 0; }

  /* EN: A table on a phone keeps the name and the amount (Chris, 17 Nov 2026): the lead column, the number column and
         any cell the screen marks .is-kept stay, with the row's actions; every other column goes, and the rest of
         the record is one tap away in its drawer. The name takes the width that is left.
     VN: Bảng trên điện thoại giữ tên và số tiền (Chris, 17/11/2026): cột dẫn đầu, cột số và ô nào màn hình đánh dấu
         .is-kept được giữ lại, cùng các thao tác của hàng; mọi cột khác bị bỏ, và phần còn lại của bản ghi chỉ cách
         một lần chạm trong ngăn kéo của nó. Tên chiếm phần bề rộng còn lại. */
  .flx-frame .flx-row > .flx-cell:not(.flx-cell--lead):not(.flx-cell--num):not(.is-kept),
  .flx-frame .flx-colhead > .flx-colhead__cell:not(:first-child):not(.is-num):not(.is-kept) { display: none; }
  .flx-frame .cx-scroll > div { min-width: 0; }
  .flx-frame .flx-row > .flx-cell--lead, .flx-frame .flx-colhead > .flx-colhead__cell:first-child { flex: 1 1 0; width: auto; min-width: 0; }
  .flx-frame .flx-row > .flx-cell--lead > :not(:last-child) { flex-shrink: 0; }   /* EN: the glyph or tile keeps its size; the name gives way. VN: glyph hoặc ô giữ nguyên cỡ; tên nhường chỗ. */

  /* EN: Cards that stand side by side stand one under the other.
     VN: Các thẻ đứng cạnh nhau chuyển thành đứng chồng lên nhau. */
  .flx-frame .cx-cols, .flx-frame .cx-halves, .flx-frame .cx-thirds, .flx-frame .cx-quarters, .flx-frame .cx-grid { grid-template-columns: minmax(0, 1fr); }
  .flx-frame .flx-totals__cell { padding: 0 12px; }

  /* EN: A drawer takes the full width: a 410px panel does not fit. A dialog already keeps 20px of the curtain on each
         side.
     VN: Ngăn kéo chiếm hết chiều ngang: bảng 410px không vừa. Hộp thoại vốn đã giữ 20px của tấm màn ở mỗi bên. */
  .flx-frame .flx-drawer { width: 100%; border-left: none; }

  /* EN: A footer cannot hold the range and the pager side by side on a phone: the range takes its own line above
         the pager, both centred, and the strip grows to hold them.
     VN: Chân thẻ không chứa nổi dải số và bộ phân trang cạnh nhau trên điện thoại: dải số chiếm một dòng riêng phía
         trên bộ phân trang, cả hai căn giữa, và dải chân cao lên để chứa chúng. */
  .flx-frame .flx-footer.flx-pager { grid-template-columns: minmax(0, 1fr); justify-items: center; row-gap: 10px; height: auto; padding-top: 12px; padding-bottom: 12px; }
  .flx-frame .flx-footer.flx-pager > :empty { display: none; }

  /* EN: C31, locked: on a phone the header IS the toast. Full width, 56px, over the header and never under it,
         sliding in from the right edge over 340ms; one at a time, the newest replacing it; no verb, because the
         whole header is the place a person taps.
     VN: C31, đã khóa: trên điện thoại thanh đầu CHÍNH LÀ thông báo. Rộng hết, cao 56px, nằm đè lên thanh đầu chứ
         không bao giờ dưới nó, trượt vào từ mép phải trong 340ms; mỗi lần một cái, cái mới nhất thay thế; không có
         động từ, vì cả thanh đầu là nơi người dùng chạm vào. */
  .flx-frame .flx-toasts { top: 0; left: 0; right: 0; gap: 0; }
  .flx-frame .flx-toast { width: 100%; height: 56px; border-radius: 0; box-shadow: none; animation: flx-toast-header 340ms var(--flx-ease); }
  .flx-frame .flx-toast:not(:first-child), .flx-frame .flx-toast__verb { display: none; }
}
/* EN: The header toast enters from beyond the right edge, all the way, so the header's own title is pushed off by it.
   VN: Thông báo trên thanh đầu đi vào từ ngoài mép phải, trọn vẹn, nên tiêu đề của thanh đầu bị nó đẩy khuất. */
@keyframes flx-toast-header { from { transform: translateX(100%); } to { transform: translateX(0); } }
