/* ĐỀ XUẤT css/ff-tokens.css (R-93b, Boss duyệt 11/10): MỘT chỗ cho cỡ chữ, vùng chạm, cặp màu nút chính, chữ phụ.
   Nạp TRƯỚC mọi CSS khác của trang (index.html, creator/, account/, commerce/); mọi màn MỚI chỉ dùng biến này.
   Tỉ lệ tương phản tính theo WCAG (KTS tính tay cho nút chính; Coder/T1 xác nhận bằng script cho các cặp còn lại). */
:root{
  --font-ui:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text",Inter,"Segoe UI Variable","Segoe UI",sans-serif;
  /* OWNER760/761 (23/10): Grid rhythm replaces the former blanket big-type priority.
     Legacy main/secondary values remain compatibility defaults for unreviewed
     titles/forms/inputs; they are NOT mandatory minimums for every component.
     Migrate mapped consumers by role; keep touch44/48 and decorative floor12. */
  --fs-control:12px;      /* buttons, view tabs, Repeat, part CTA; Grid10/10.5 becomes readable12 */
  --fs-meta:12px;         /* supporting label/access notice; existing decorative floor preserved */
  --fs-profile-work-title:12px; /* Profile Works title: measured Grid11.5 normalized to readable12 */
  --fs-feed-desc:12.5px; /* measured Grid mobile feed description; independent of generic body */
  --fs-body:14px;         /* mapped body copy; not an implicit title or form-input override */
  --fs-main:16px;          /* thân bài, nhãn nút, ô nhập, tiêu đề hàng, thông báo lỗi */
  --fs-secondary:14px;     /* giờ đăng, thẻ nhỏ (Post/Paid/Game · 3 levels), chú thích, đếm */
  --fs-nav:12px;           /* nhãn thanh dưới (Home/Explore/Create/Library/Account) — đi kèm icon */
  --fs-micro:12px;         /* LIMITED exception (KTS SIGN_UI1_UI2, Boss 20/10): ONLY decorative secondary text - the kind badge, the relative time, a counter, a #tag / cover chip. NEVER a title, a description, an author name, comment text, a button, a nav label or an input. Floor 12 px; text colour >= 4.5:1 (--text-muted). */
  --icon-nav:24px;
  --lh-main:1.5;
  /* Vùng chạm (Boss: ≥44×44; điện thoại ≥48) */
  --tap-min:44px;
  --tap-min-mobile:48px;
  /* COMPACT FRAME (Boss #700/#701, KTS SPEC_COMPACT_FRAME_HIT_AREA_20261019): the VISIBLE height of a chip / a small button; the area under the finger stays --tap (css/ff-l2.css ::after) */
  --chip-h:30px;
  --btn-h:34px;
  /* Nút chính: chữ trắng trên nền xanh đậm. #1a70dc ↔ #fff = 4.78:1 (đạt AA 4.5:1; cũ #0a97ff = 3.05:1, #258afa = 3.45:1) */
  --btn-primary-bg:#1a70dc;
  --btn-primary-bg-hover:#165fbd;   /* tối hơn ⇒ tương phản cao hơn */
  --btn-primary-bg-active:#124fa0;
  --btn-primary-fg:#ffffff;
  --btn-primary-ring:#8fc4ff;       /* viền focus nhìn thấy trên nền tối */
  /* Chữ phụ trên nền tối (card #081a2e/#0b2037): cần ≥4.5:1; T1 đo chữ phụ Create hiện 2.68–3.77:1 */
  --text-main:#f5f8fc;
  --text-muted:#a9b9ce;             /* ≈7:1 trên #0b2037 (Coder xác nhận bằng script) */
  --text-disabled:#8aa0bb;          /* vẫn ≥4.5:1; trạng thái mờ phân biệt bằng icon/chữ, không chỉ màu */
  /* Chỗ bấm luôn có cả icon/chữ, không chỉ màu (R-93b) */
}
/* Sàn bắt buộc cho điều khiển (áp bằng lớp tiện ích; màn mới dùng trực tiếp) */
.ff-tap{min-width:var(--tap-min);min-height:var(--tap-min)}
@media (pointer:coarse),(max-width:600px){.ff-tap{min-width:var(--tap-min-mobile);min-height:var(--tap-min-mobile)}}
.ff-btn-primary{background:var(--btn-primary-bg);color:var(--btn-primary-fg);font-size:var(--fs-main);font-weight:700;border:0;border-radius:12px;padding:0 20px}
.ff-btn-primary:hover{background:var(--btn-primary-bg-hover)}
.ff-btn-primary:active{background:var(--btn-primary-bg-active)}
.ff-btn-primary:focus-visible{outline:2px solid var(--btn-primary-ring);outline-offset:2px}

/* Create (lot 16): the watermark of each kind of Work: the kind's own icon, large, very faint, bottom right of the window. AA is kept: text on it stays above 4.5:1 (tests/e2e/create-identity.e2e.cjs measures the brightest point) */
:root{--wm-color:#cfe0ff;--wm-op:.04}

/* HOME-HARMONY #760/#761: measured Grid reference scale; scoped consumers use these. */
:root{
 --ff-feed-font:-apple-system,system-ui,"SF Pro Display","SF Pro Text",Inter,"Segoe UI Variable","Segoe UI",sans-serif;
 --ff-filter-font:12px;
 --ff-filter-height:36px;
 --ff-header-bottom:12px;
}
