/* Hallmark · shape: app screen · genre: editorial · theme: brand · redesign: restyle
 * paper: oklch(96% 0.012 85) · accent: oklch(per company, --brand) · display: Noto Serif Display · body: Be Vietnam Pro
 * nav: kept · signature: the company seal logo, name running round the ring, trade emblem at the centre, beside the red time stamp · states: kept (loading text, empty lists, error toast)
 * axes: light/high-contrast-serif/chromatic-brand · posture: kept · contrast: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V3 · weakest: V, a restyle keeps every layout, so variety lives in the per-company logo builder, four looks by 24 emblems by 12 colours */
/* Hallmark · waive 38iii · the second sentence sits on its own line in --brand, once per page, in the hero and the create form · it is the promise and its colour follows the company name typed above it */
/* Hallmark · waive 24b · 10px, 14px and 18px rhythm across 1,700 lines of app CSS · restyle keeps the shipped layout of every app screen; respacing would move controls staff already know */
/* Chấm Công Nhanh — kiểu dáng dùng chung. Màu chủ đạo --brand đổi theo từng công ty (đặt bằng JS). */
@font-face { font-family: 'Be Vietnam Pro'; font-weight: 400; font-display: swap; src: url(/fonts/be-vietnam-pro-400-vietnamese.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Be Vietnam Pro'; font-weight: 400; font-display: swap; src: url(/fonts/be-vietnam-pro-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Be Vietnam Pro'; font-weight: 500; font-display: swap; src: url(/fonts/be-vietnam-pro-500-vietnamese.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Be Vietnam Pro'; font-weight: 500; font-display: swap; src: url(/fonts/be-vietnam-pro-500-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Be Vietnam Pro'; font-weight: 600; font-display: swap; src: url(/fonts/be-vietnam-pro-600-vietnamese.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Be Vietnam Pro'; font-weight: 600; font-display: swap; src: url(/fonts/be-vietnam-pro-600-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Be Vietnam Pro'; font-weight: 700; font-display: swap; src: url(/fonts/be-vietnam-pro-700-vietnamese.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Be Vietnam Pro'; font-weight: 700; font-display: swap; src: url(/fonts/be-vietnam-pro-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Be Vietnam Pro'; font-weight: 800; font-display: swap; src: url(/fonts/be-vietnam-pro-800-vietnamese.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Be Vietnam Pro'; font-weight: 800; font-display: swap; src: url(/fonts/be-vietnam-pro-800-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Noto Serif Display (OFL, tự lưu): chữ có chân nét thanh nét đậm cho tiêu đề và logo. Một tệp biến thiên cho mọi độ đậm 400–700. */
@font-face { font-family: 'Noto Serif Display'; font-weight: 400 700; font-display: swap; src: url(/fonts/noto-serif-display-vietnamese.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Noto Serif Display'; font-weight: 400 700; font-display: swap; src: url(/fonts/noto-serif-display-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --brand: #1f6f50;
  --brand-ink: #fffdf6;
  --brand-soft: color-mix(in srgb, var(--brand) 9%, var(--card));
  --brand-line: color-mix(in srgb, var(--brand) 26%, var(--card));
  --brand-deep: color-mix(in srgb, var(--brand) 80%, #000000);
  /* giấy ngà, mực nâu đen, đường kẻ ấm: một bộ màu trung tính cho mọi màn hình */
  --paper: #f5f1e9;
  --paper-2: #ece6da;
  --card: #fffdf8;
  --white: #fffefa;                 /* trắng ngà: không dùng trắng tinh */
  --black: #15120d;
  --shade: #2d2416;                 /* bóng đổ ấm */
  --gold: #f2cf86;                  /* chữ vàng trên dải tối */
  --info: #1d5fa8;
  --warn-deep: #6d3807;
  --in-xam: #4a463f; --in-nhat: #8f897e; --in-nen: #efebe4;   /* bản in */
  --ink: #1d1b17;
  --muted: #5d584f;
  --faint: #6e685d;                 /* đạt 4,9:1 trên nền giấy */
  --line: #e4ddcf;
  --line-2: #d2c9b8;
  --stamp: #b8321f;
  --ok: #1d6b43; --ok-soft: #e3efe4;
  --warn: #975010; --warn-soft: #f8ecda;
  --bad: #a6291f; --bad-soft: #f7e2de;
  --scrim: rgba(29, 25, 18, .5);
  --r: 14px;
  --shadow: 0 1px 1px rgba(45, 36, 22, .05), 0 10px 26px -12px rgba(45, 36, 22, .18);
  --f: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fd: 'Noto Serif Display', 'Be Vietnam Pro', Georgia, serif;   /* tiêu đề, tên đơn vị */
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; text-rendering: optimizeLegibility; }
body { margin: 0; overflow-x: clip; font: 400 15.5px/1.55 var(--f); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; font-kerning: normal; font-variant-numeric: lining-nums; hyphens: manual; font-synthesis: none; }
/* tiêu đề chữ có chân, ngắt dòng cân hai bên; đoạn văn tránh để một chữ lẻ loi ở dòng cuối */
h1, h2, h3 { margin: 0; font-family: var(--fd); font-weight: 600; line-height: 1.18; letter-spacing: -.006em; text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
p, li, dd, label, .goi-y, small { text-wrap: pretty; }
a { color: var(--brand-deep); text-underline-offset: .18em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.so { font-variant-numeric: tabular-nums lining-nums; }
.nb { white-space: nowrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); font-weight: 600; cursor: pointer; text-decoration: none; color: var(--ink); line-height: 1.25; text-align: center; text-wrap: balance; transition: transform .08s, background-color .15s, border-color .15s, color .15s; }
.btn:hover { border-color: var(--faint); background: var(--white); }
.btn:active { transform: scale(.98); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .62; cursor: not-allowed; transform: none; background: var(--paper-2); border-color: var(--line); color: var(--faint); }
.btn.chinh { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.chinh:hover { background: var(--brand-deep); }
.btn.nhe { background: var(--brand-soft); border-color: transparent; color: var(--brand-deep); }
.btn.do { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--card)); }
.btn.nho { min-height: 36px; padding: 6px 12px; font-size: 13.5px; border-radius: 10px; }
.btn.to { min-height: 54px; font-size: 16.5px; border-radius: 14px; }
.btn.rong { width: 100%; }
:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 2px; transition: none; }

.the { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.nhan { display: block; font-size: 13.5px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.o { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 11px; background: var(--white); font-size: 16px; }
.o:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.truong { margin-bottom: 14px; }
.goi-y { font-size: 13.5px; line-height: 1.55; color: var(--muted); margin: 6px 0 0; }
.loi { color: var(--bad); font-size: 14px; min-height: 0; }
.loi:empty { display: none; }

/* logo tự tạo theo tên công ty (con dấu, bảng hiệu, mái vòm, chỉ tên) */
.logo { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; overflow: hidden; background: var(--brand); color: var(--brand-ink); }
.logo img, .logo svg { width: 100%; height: 100%; object-fit: cover; display: block; }
/* logo tự tạo có hai bản trong cùng một SVG: bản đầy đủ (có tên chạy vòng) và bản gọn (khung + biểu tượng to).
   Ô logo nhỏ hơn 68 px (đầu trang, khung điện thoại) thì hiện bản gọn cho rõ. Trình duyệt cũ không hiểu thì giữ bản đầy đủ. */
.logo { container-type: inline-size; }
.lg-nho { display: none; }
@container (max-width: 68px) { .co-nho .lg-to { display: none; } .co-nho .lg-nho { display: inline; } }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--paper); color: var(--muted); white-space: nowrap; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.canh { background: var(--warn-soft); color: var(--warn); }
.chip.xau { background: var(--bad-soft); color: var(--bad); }
.chip.brand { background: var(--brand-soft); color: var(--brand-deep); }

/* thông báo nổi */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 90; max-width: min(92vw, 460px); padding: 12px 18px; border-radius: 12px; background: var(--ink); color: var(--card); font-weight: 500; box-shadow: 0 10px 30px color-mix(in srgb, var(--black) 25%, transparent); }
.toast.xau { background: var(--bad); }

/* bảng trượt từ dưới lên (điện thoại) / hộp giữa màn hình (máy tính) */
.man, .man-ra { position: fixed; inset: 0; z-index: 80; background: var(--scrim); display: flex; align-items: flex-end; justify-content: center; }
.hop, .hop-ra { width: 100%; max-width: 520px; max-height: 92dvh; overflow-y: auto; background: var(--card); border-radius: 20px 20px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); }
@media (min-width: 700px) { .man, .man-ra { align-items: center; } .hop, .hop-ra { border-radius: 18px; } }
.hop-dau { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.hop-dau h3 { font-size: 21px; }
.dong-x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--paper); font-size: 20px; cursor: pointer; flex: none; }
.hang-nut { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.hang-nut .btn { flex: 1 1 140px; }

/* con dấu đỏ son: chữ ký hình ảnh của Chấm Công Nhanh */
.dau { color: var(--stamp); }
.dau .vien-chu { font: 700 8.6px var(--f); fill: currentColor; }
.dau .gio-dau { font: 800 23px var(--f); fill: currentColor; letter-spacing: -.02em; }
.dau .ngay-dau { font: 600 8.4px var(--f); fill: currentColor; }
.dau .nhan-trong { font: 700 9px var(--f); fill: currentColor; }
.dau.trong { color: var(--faint); }
@keyframes dong-dau { 0% { transform: scale(1.5) rotate(-14deg); opacity: 0; } 60% { transform: scale(.94) rotate(-5deg); opacity: 1; } 100% { transform: scale(1) rotate(var(--goc, -6deg)); } }
.dau.vua-dong svg { animation: dong-dau .42s cubic-bezier(.16, 1, .3, 1) both; }
.dau svg { transform: rotate(var(--goc, -6deg)); display: block; width: 100%; height: auto; }
@media (prefers-reduced-motion: reduce) { .dau.vua-dong svg { animation: none; } .btn { transition: none; } }

.tai { color: var(--muted); padding: 40px 16px; text-align: center; }
.man-hoi { position: fixed; inset: 0; z-index: 90; background: var(--scrim); display: flex; align-items: center; justify-content: center; padding: 16px; }
.man-hoi .hop { border-radius: 18px; max-width: 420px; width: 100%; }

/* ===== Bản in (phiếu lương, bảng lương) ===== */
#vung-in { display: none; }
@media print {
  body.dang-in > *:not(#vung-in) { display: none !important; }
  body.dang-in { background: var(--white) !important; }
  body.dang-in #vung-in { display: block; color: var(--black); font-family: var(--f); font-size: 11pt; }
}
#vung-in table { width: 100%; border-collapse: collapse; }
#vung-in .in-tieu { text-align: center; margin: 0 0 4mm; }
#vung-in .in-tieu b { display: block; font-size: 15pt; letter-spacing: .02em; }
#vung-in .in-tieu span { font-size: 10pt; }
#vung-in .in-bang th, #vung-in .in-bang td { border: 1px solid var(--in-xam); padding: 4px 6px; font-size: 9.5pt; vertical-align: top; }
#vung-in .in-bang th { background: var(--in-nen); font-weight: 700; }
#vung-in .in-bang .so { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
#vung-in .in-bang small { display: block; color: var(--in-xam); font-size: 8.5pt; }
#vung-in .in-bang tfoot td { font-weight: 800; background: var(--in-nen); }
#vung-in .in-ky { display: flex; justify-content: space-around; text-align: center; margin-top: 8mm; font-size: 10.5pt; }
#vung-in .in-ky div { min-width: 45mm; }
#vung-in .in-ky i { display: block; font-size: 9pt; color: var(--in-xam); margin-bottom: 16mm; }
#vung-in .in-ghi { font-size: 9pt; color: var(--in-xam); margin: 2mm 0 0; }
#vung-in .in-phieu { break-inside: avoid; page-break-inside: avoid; height: 132mm; box-sizing: border-box; padding: 6mm 4mm; border-bottom: 1px dashed var(--in-nhat); display: flex; flex-direction: column; }
#vung-in .in-phieu:nth-child(2n+1) { break-after: auto; }
#vung-in .in-phieu .in-dau { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--black); padding-bottom: 2mm; margin-bottom: 3mm; }
#vung-in .in-phieu .in-dau b { font-size: 12pt; }
#vung-in .in-phieu .in-dau span { font-size: 13pt; font-weight: 800; letter-spacing: .03em; }
#vung-in .in-phieu .in-nv { display: grid; grid-template-columns: 1fr 1fr; gap: 1mm 6mm; font-size: 10.5pt; margin-bottom: 3mm; }
#vung-in .in-phieu .in-dong td { padding: 1.6mm 0; border-bottom: 1px dotted var(--in-nhat); font-size: 10.5pt; }
#vung-in .in-phieu .in-dong td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
#vung-in .in-phieu .in-dong small { display: block; font-size: 9pt; color: var(--in-xam); }
#vung-in .in-phieu .in-dong tr.tong td { border-bottom: 0; border-top: 2px solid var(--black); font-size: 13pt; font-weight: 800; padding-top: 2.5mm; }
#vung-in .in-phieu .in-ky { margin-top: auto; }
#vung-in .in-phieu .in-ky i { margin-bottom: 12mm; }
.btn.nho.nhe-do { background: none; border-color: transparent; color: var(--bad); font-weight: 600; }
.btn.nho.nhe-do:hover { background: var(--bad-soft); }
.tac-gia { font-size: 13px; color: var(--faint); }
.tac-gia a { color: var(--faint); text-underline-offset: 2px; }
.tac-gia a:hover { color: var(--brand-deep); }

/* ===== Mời thêm vào màn hình chính ===== */
.cai-app { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--brand-soft); border: 1px solid var(--brand-line); font-size: 14px; line-height: 1.5; }
.cai-app > b { display: block; font-size: 14.5px; color: var(--brand-deep); }
.cai-app p { margin: 4px 0 8px; color: var(--ink); }
.cai-app .hang-nut { margin-top: 6px; }
.cai-app .hang-nut .btn { flex: 0 0 auto; }

/* ô nhập tiền: chữ "đ" nằm cuối ô, số có dấu chấm hàng nghìn */
.o-tien { position: relative; display: block; min-width: 0; }
.o-tien .o { padding-right: 30px; text-align: right; font-variant-numeric: tabular-nums; }
.o-tien::after { content: "đ"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted, var(--muted)); pointer-events: none; font-size: 15px; }

/* ===== Hiệu ứng chuyển động (hieu-ung.js, GSAP). html.hu = đang bật; html.hu-cho = đang chờ cảnh mở màn ===== */
.hu .dau.vua-dong svg { animation: none; }
.hu-tu { display: inline-block; }
.hu-muc { position: absolute; inset: 4%; border-radius: 50%; border: 3px solid currentColor; pointer-events: none; }
.hu-giot { position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; border-radius: 50%; background: currentColor; pointer-events: none; }
.hu-song { position: absolute; border-radius: 50%; background: currentColor; pointer-events: none; }
.hu-radar { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 2px solid currentColor; pointer-events: none; }
.man-ra { pointer-events: none; z-index: 79; }

/* ===== Bộ chọn logo (trang tạo công ty, Cài đặt → Thương hiệu) ===== */
.chon-logo { display: grid; gap: 16px; }
.cl-nhom .nhan { margin-bottom: 8px; }
.cl-goi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cl-goi button { display: grid; place-items: center; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); cursor: pointer; transition: border-color .15s, background-color .15s; }
.cl-goi .logo { width: 100%; max-width: 92px; height: auto; aspect-ratio: 1; border-radius: 11px; }
.cl-goi button:hover { border-color: var(--line-2); background: var(--white); }
.cl-goi button[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--white); }
.cl-goi button:active, .cl-kieu button:active, .cl-bieu button:active { transform: scale(.97); }
.cl-chinh { border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.cl-chinh > summary { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 14px; font-weight: 600; font-size: 14.5px; color: var(--ink); cursor: pointer; list-style: none; }
.cl-chinh > summary::-webkit-details-marker { display: none; }
.cl-chinh > summary::before { content: ""; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(-45deg); transition: transform .15s; flex: none; }
.cl-chinh[open] > summary::before { transform: rotate(45deg); }
.cl-chinh > summary:hover { color: var(--brand-deep); }
.cl-chinh > summary:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 2px; border-radius: 13px; }
.cl-ruot { display: grid; gap: 16px; padding: 4px 14px 16px; }
.cl-tim { min-height: 42px; margin-bottom: 8px; font-size: 15.5px; }
.cl-ghi:empty { display: none; }
.cl-them { margin-top: 8px; padding: 6px 2px; border: 0; background: none; color: var(--brand-deep); font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.cl-them:hover { color: var(--ink); }
.cl-kieu { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cl-kieu button { display: grid; justify-items: center; gap: 7px; min-width: 0; padding: 9px 4px 8px; border: 1px solid var(--line); border-radius: 13px; background: var(--card); color: var(--muted); font-size: 13px; font-weight: 600; line-height: 1.2; cursor: pointer; transition: border-color .15s, color .15s, background-color .15s; }
.cl-kieu .logo { width: 100%; max-width: 76px; height: auto; aspect-ratio: 1; border-radius: 10px; }
.cl-kieu button:hover { border-color: var(--line-2); color: var(--ink); }
.cl-kieu button[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); background: var(--white); }
.cl-bieu { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 6px; }
.cl-bieu button { display: grid; place-items: center; min-height: 46px; padding: 0; border: 1px solid var(--line); border-radius: 11px; background: var(--card); color: var(--ink); cursor: pointer; transition: border-color .15s, background-color .15s, color .15s; }
.cl-bieu button[data-b="tu"] { grid-column: span 2; display: flex; justify-content: center; align-items: center; gap: 6px; padding: 0 8px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.cl-bieu svg { width: 24px; height: 24px; flex: none; }
.cl-bieu button:hover { border-color: var(--line-2); background: var(--white); }
.cl-bieu button[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: var(--card); }
.cl-hai { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cl-tach { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.cl-tach button { flex: 1 1 0; min-width: 0; min-height: 40px; padding: 4px 6px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color .15s, color .15s; }
.cl-tach button:hover { color: var(--ink); }
.cl-tach button[aria-checked="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px color-mix(in srgb, var(--shade) 12%, transparent); }
@media (max-width: 380px) { .cl-hai { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .cl-goi button, .cl-kieu button, .cl-bieu button, .cl-tach button, .cl-chinh > summary::before { transition: none; } }

/* biểu tượng nét mảnh dùng trong chữ (thay cho emoji) */
.bt { display: inline-block; width: 1.05em; height: 1.05em; vertical-align: -.16em; flex: none; }
