/* ═══════════════════════════════════════════════════════════
   chart.css — Lá Số Tử Vi 4×4 Grid
   Tất cả CSS cần thiết để renderChart() hiển thị đúng
   Khớp hoàn toàn với renderCung() và renderChart() trong engine
═══════════════════════════════════════════════════════════ */

/* ── CSS variables dùng trong chart ── */
#kq-chart-container,
#kq-chart-container * {
  --gold:        #c9a84c;
  --gold-light:  #e0c070;
  --gold-dim:    #7a6030;
  --gold-border: #3d3010;
  --text:        #e8e0d0;
  --text-muted:  #8a8070;
  --text-dim:    #5a5448;
  --border:      #2a2a40;
}

/* ── Wrapper ── */
#kq-chart-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 !important;
}
/* Mobile override moved to main mobile section below */

/* ── Title ── */
.la-so-title {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 15px;
  text-align: center;
  margin-bottom: 14px;
  letter-spacing: .1em;
  opacity: .85;
}

/* ── 4×4 Grid ── */
.la-so-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, auto) auto;  /* 4 data rows + legend row */
  gap: 3px;
  min-width: 480px;
  /* aspect-ratio removed: ô cung tự co giãn theo nội dung */
  width: 100%;
}

/* ══════════════════════════════════════════
   CUNG CELL — 4 zones
══════════════════════════════════════════ */
.cung-cell {
  background: #0b0b18;
  border: 1px solid #222236;
  border-radius: 5px;
  display: grid;
  grid-template-rows: auto auto auto auto;   /* auto: tự mở rộng theo nội dung */
  padding: 0;
  overflow: visible;    /* cho phép chiều cao tự mở rộng */
  opacity: 0;
  animation: cellIn .4s ease forwards;
  position: relative;
}
@keyframes cellIn {
  from { opacity: 0; transform: scale(.97); }
  to   { opacity: 1; transform: scale(1); }
}
.cung-cell:hover {
  background: #101022;
  border-color: #3a3a55;
  transition: background .18s, border-color .18s;
}

/* Cung Mệnh */
.cung-cell.is-menh {
  border: 2px solid var(--gold);
  box-shadow: inset 0 0 20px rgba(201,168,76,.08), 0 0 10px rgba(201,168,76,.1);
}
/* Cung Thân */
.cung-cell.is-than {
  border: 2px solid #6a9fd8;
  box-shadow: inset 0 0 16px rgba(106,159,216,.08);
}

/* Tuần / Triệt */
.cung-co-tuan   { border-top: 3px solid #f97316 !important; }
.cung-co-triet  { border-top: 3px solid #dc2626 !important; }
.cung-co-ca-hai {
  border-top: 3px solid #dc2626 !important;
  box-shadow: inset 0 2px 0 #f97316;
}
.cung-co-tuan  .cung-chinh-tinh,
.cung-co-triet .cung-chinh-tinh,
.cung-co-ca-hai .cung-chinh-tinh { opacity: .65; filter: grayscale(20%); }

/* ── Zone 1: Header (tên cung + địa chi) ── */
.cung-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 6px 2px;
  background: #08080f;
  border-bottom: 1px solid #1c1c2e;
  gap: 4px;
  flex-shrink: 0;
}
.cung-name {
  font-size: clamp(7px, .9vw, 10px);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-dim);
  line-height: 1;
}
.cung-chi {
  font-family: 'Playfair Display', serif;
  font-size: clamp(10px, 1.3vw, 13px);
  font-weight: 600;
  color: #6b7280;
  line-height: 1;
  flex-shrink: 0;
}

/* Badge MỆNH / THÂN */
.badge-mt {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .03em;
  padding: 1px 4px;
  border-radius: 2px;
  line-height: 1.4;
  flex-shrink: 0;
}
.badge-m { background: rgba(201,168,76,.18); color: var(--gold); border: 1px solid var(--gold-dim); }
.badge-t { background: rgba(96,165,250,.15); color: #93c5fd; border: 1px solid #1d4ed8; }

/* Badge Tuần / Triệt */
.badge-tuan {
  font-size: 8px; color: #fb923c;
  border: 1px solid #f97316; padding: 0 3px; border-radius: 2px;
  margin-left: 2px; cursor: default;
}
.badge-triet {
  font-size: 8px; color: #fca5a5;
  border: 1px solid #dc2626; padding: 0 3px; border-radius: 2px;
  margin-left: 2px; cursor: default;
}

/* ── Zone 2: Phụ tinh 2 cột (trái=cát, phải=hung) ── */
.cung-sao-wrapper {
  display: flex;
  gap: 4px;
  padding: 3px 5px 2px;
  min-height: 0;
  overflow: visible;
  width: 100%;
}
.cung-sao-tot,
.cung-sao-xau {
  flex: 1 1 0;
  min-width: 0;
  max-width: 50%;
  font-size: clamp(7px, .8vw, 9px);
  line-height: 1.5;
  overflow: visible;
  word-break: break-word;
}
.cung-sao-xau { text-align: right; overflow: visible; }
.phu-tinh-item {
  display: block;
  white-space: normal;
  word-break: keep-all;   /* không cắt ngang chữ */
  overflow-wrap: anywhere;
  overflow: visible;
  min-width: 0;
}

/* Tứ Hóa tooltip */
.tu-hoa-item { letter-spacing: -.01em; }
.tu-hoa-item[data-tooltip],
.hoa-suffix[data-tooltip],
.hoa-badge[data-tooltip] { position: relative; cursor: default; }
.tu-hoa-item[data-tooltip]::after,
.hoa-suffix[data-tooltip]::after,
.hoa-badge[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a2e;
  color: #e8e0d0;
  font-size: 10px;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #3a3a55;
  box-shadow: 0 4px 12px rgba(0,0,0,.6);
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s;
  z-index: 200;
}
.tu-hoa-item[data-tooltip]:hover::after,
.hoa-suffix[data-tooltip]:hover::after,
.hoa-badge[data-tooltip]:hover::after { opacity: 1; }

/* ── Zone 3: Chính tinh ── */
.cung-chinh-tinh {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5px 4px;
  gap: 2px;
  border-top: 1px solid #151528;
  border-bottom: 1px solid #151528;
  text-align: center;
}
.chinh-tinh-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  animation: saoIn .35s ease both;
}
@keyframes saoIn {
  from { opacity: 0; transform: scale(.85); }
  to   { opacity: 1; transform: scale(1); }
}
.ct-name {
  font-size: clamp(9px, 1.2vw, 13px);
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: .01em;
  line-height: 1.2;
}
.chinh-tinh-item.has-hoa .ct-name { filter: brightness(1.15); }

/* Hóa suffix */
.hoa-suffix {
  font-size: 8px;
  font-weight: 700;
  margin-left: 2px;
  vertical-align: middle;
  position: relative;
  cursor: default;
}

/* Badge Miếu/Vượng/Đắc/Hãm */
.badge-mieu  { background:#0d2b1a; color:#4ade80; font-size:7px; padding:1px 5px; border-radius:2px; border:1px solid #166534; }
.badge-vuong { background:#0c1e3a; color:#93c5fd; font-size:7px; padding:1px 5px; border-radius:2px; border:1px solid #1d4ed8; }
.badge-dac   { background:#1e1e1e; color:#d1d5db; font-size:7px; padding:1px 5px; border-radius:2px; border:1px solid #374151; }
.badge-binh  { background:#111;    color:#6b7280; font-size:7px; padding:1px 5px; border-radius:2px; border:1px solid #2a2a2a; }
.badge-ham   { background:#2d0a0a; color:#fca5a5; font-size:7px; padding:1px 5px; border-radius:2px; border:1px solid #7f1d1d; }

/* Badge Tứ Hóa */
.badge-hoa-loc   { background:#78350f; color:#fbbf24; font-size:7px; padding:1px 6px; border-radius:2px; border:1px solid #92400e; }
.badge-hoa-quyen { background:#7c2d12; color:#fb923c; font-size:7px; padding:1px 6px; border-radius:2px; border:1px solid #9a3412; }
.badge-hoa-khoa  { background:#4c1d95; color:#c4b5fd; font-size:7px; padding:1px 6px; border-radius:2px; border:1px solid #5b21b6; }
.badge-hoa-ky    { background:#7f1d1d; color:#fca5a5; font-size:7px; padding:1px 6px; border-radius:2px; border:1px solid #991b1b; }
.hoa-badge       { display:inline-flex; align-items:center; font-weight:700; letter-spacing:.02em; }
.hoa-badge-row   { display:flex; justify-content:center; margin-top:1px; }

/* ── Zone 4: Vòng Tràng Sinh ── */
.cung-trang-sinh {
  text-align: center;
  font-size: clamp(7px, .8vw, 9px);
  font-style: italic;
  padding: 2px 4px;
  border-top: 1px solid #111124;
  color: var(--text-dim);
  opacity: .82;
  line-height: 1.3;
  transition: opacity .2s;
  white-space: nowrap;
}
.cung-trang-sinh.trang-sinh-tot {
  font-weight: 600;
  font-style: normal;
  letter-spacing: .02em;
}
.cung-trang-sinh.trang-sinh-xau {
  font-style: italic;
  text-decoration: underline dotted 1px;
}

/* ── Ô trung tâm 2×2 ── */
.cell-center {
  grid-column: 2 / 4;
  grid-row: 2 / 4;
  background: #080810;
  border: 1px solid #1e1e32;
  border-radius: 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 10px;
  gap: 5px;
  text-align: center;
  position: relative;
  overflow: visible;
}
.cell-center::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(201,168,76,.04) 0%, transparent 70%);
  pointer-events: none;
}
.c-name {
  font-family: var(--tvtt-thienban-font, 'Playfair Display', serif);
  font-size: var(--tvtt-thienban-name-size, clamp(12px, 2vw, 16px));
  font-weight: 600;
  color: var(--tvtt-thienban-name-color, var(--gold));
  line-height: 1.2;
  word-break: break-word;
  position: relative;
}
.c-year {
  font-size: clamp(9px, 1.3vw, 12px);
  color: var(--text-muted);
  font-style: italic;
  position: relative;
}
.c-line {
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  opacity: .5;
  margin: 1px 0;
  position: relative;
}
.c-row {
  font-size: var(--tvtt-thienban-row-size, clamp(9px, 1.2vw, 12px));
  color: var(--tvtt-thienban-row-color, var(--text-muted));
  line-height: 1.5;
  position: relative;
}
.c-row span { color: var(--tvtt-thienban-val-color, var(--gold-light)); font-weight: 500; }
.c-gender {
  font-size: 9px;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid var(--gold-border);
  color: var(--gold);
  background: rgba(201,168,76,.06);
  margin-top: 1px;
  position: relative;
}

/* ── Responsive ── */
/* ═══════════════════════════════════════════
   MOBILE RESPONSIVE — Fit 4x4 grid on phone
═══════════════════════════════════════════ */
/* ══════════════════════════════════════════
   MOBILE — Full width, fluid font, no truncation
   ══════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── 1. Break chart OUT of page padding ── */
  #kq-chart-container {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    padding: 0 !important;
    overflow: visible !important;
    box-sizing: border-box;
  }

  .la-so-wrapper {
    width: 100vw;
    padding: 0;
    overflow: visible;
  }

  /* ── 2. Grid: fill full viewport ── */
  .la-so-grid {
    width: 100vw !important;
    min-width: 0 !important;
    gap: 1.5px;
    border-radius: 0;
    /* Font scales with viewport: 4 cols → each col = 25vw → 1vw ≈ 4px */
    font-size: clamp(5px, 1.6vw, 7px);
  }

  /* ── 3. Cung Cell: auto height, no clip ── */
  .cung-cell {
    min-height: 0;
    height: auto;
    padding: 0;
    border-radius: 2px;
    overflow: visible;
  }

  /* ── 4. Header: cung name + chi + ĐV ── */
  .cung-header {
    padding: 1px 2px;
    min-height: 0;
    flex-wrap: wrap;
  }
  .cung-name  { font-size: clamp(5px, 1.4vw, 6px); font-weight: 700; }
  .cung-chi   { font-size: clamp(5.5px, 1.6vw, 7px); font-weight: 700; }
  .dv-tuoi-badge {
    font-size: clamp(5px, 1.3vw, 6px);
    padding: 0 2px;
    border-radius: 2px;
  }

  /* ── 5. Badges ── */
  .badge-menh, .badge-than,
  .badge-tuan, .badge-triet,
  .badge-luu-tuan, .badge-luu-triet {
    font-size: clamp(4px, 1.2vw, 5.5px);
    padding: 0 2px;
    border-radius: 2px;
  }

  /* ── 6. Chính tinh ── */
  .cung-chinh-tinh {
    padding: 2px 2px 0;
    min-height: 0;
    justify-content: flex-start;
  }
  .ct-name {
    font-size: clamp(7px, 2.4vw, 10px);
    letter-spacing: -.02em;
    white-space: normal;
    word-break: keep-all;
  }
  .ct-mucdo { font-size: clamp(5px, 1.4vw, 6px); margin-left: 1px; }

  /* ── 7. Phụ tinh — all stars visible ── */
  .cung-sao-wrapper {
    padding: 1px 2px;
    gap: 1px;
    overflow: visible;
  }
  .cung-sao-tot,
  .cung-sao-xau {
    font-size: clamp(5px, 1.5vw, 6.5px);
    line-height: 1.3;
    max-width: 50%;
    white-space: normal;
    word-break: break-all;
    overflow: visible;
  }
  .phu-tinh-item {
    font-size: clamp(4.5px, 1.4vw, 6px);
    line-height: 1.3;
    white-space: normal;
    word-break: break-all;
    overflow: visible;
  }
  .pti-mieu, .pti-annot { font-size: clamp(4px, 1.2vw, 5px); }

  /* ── 8. Tràng Sinh / Lưu / ĐV rows ── */
  .cung-trang-sinh {
    font-size: clamp(5px, 1.4vw, 6px);
    padding: 1px 2px;
  }
  .cung-luu-dv-row {
    padding: 1px 2px;
    gap: 1px;
    flex-wrap: wrap;
  }
  .luu-label, .dv-label {
    font-size: clamp(4.5px, 1.3vw, 5.5px);
    padding: 0 2px;
    border-radius: 2px;
  }
  .cung-tuan-triet {
    font-size: clamp(5px, 1.4vw, 6px);
    padding: 1px 2px;
  }

  /* ── 9. Cung trung tâm (info) ── */
  .cell-center {
    padding: 3px 4px;
    gap: 1px;
    overflow: visible;
  }
  .c-name   { font-size: clamp(9px, 2.8vw, 12px) !important; }
  .c-year   { font-size: clamp(6.5px, 2vw, 8px) !important; }
  .c-row    { font-size: clamp(6px, 1.8vw, 7.5px) !important; line-height: 1.4; }
  .c-row span { font-size: inherit; }
  .c-gender { font-size: clamp(6px, 1.8vw, 7.5px); padding: 1px 4px; }
  .c-line   { margin: 1px 0; }
  .c-thuan-nghich { font-size: clamp(7px, 2vw, 8px) !important; }

  /* ── 10. Title ── */
  .la-so-title {
    font-size: clamp(8px, 2.5vw, 11px);
    margin-bottom: 4px;
    padding: 0 4px;
  }
}

/* ── Summary section (renderSummary) ── */
.kq-summary-wrap .summary-card {
  background: #0f0f18;
  border: 1px solid #2a2a40;
  border-radius: 14px;
  padding: 24px;
  margin-top: 24px;
}

/* ══════════════════════════════════════
   Summary section (renderSummary output)
══════════════════════════════════════ */
.kq-summary-content {
  margin-top: 20px;
}
.sum-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.sum-table tr {
  border-bottom: .5px solid rgba(42,42,64,.8);
}
.sum-table tr:last-child { border-bottom: none; }
.sum-table td {
  padding: 8px 10px;
  vertical-align: top;
  line-height: 1.5;
  color: #8a8070;
}
.sum-table td:first-child {
  color: #5a5448;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  width: 130px;
  padding-right: 16px;
}
.sum-table td .hl {
  color: #e0c070;
  font-weight: 500;
}
.sao-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  margin: 2px 3px 2px 0;
  background: rgba(42,42,64,.6);
  border: .5px solid #2a2a40;
  border-radius: 4px;
  font-size: 11px;
  color: #8a8070;
}
.sao-chip .sc { color: #c9a84c; font-weight: 500; }

/* ══════════════════════════════════════
   Lưu Niên / Đại Vận / Tiểu Hạn Labels
══════════════════════════════════════ */

/* Zone 5: bottom info row */
.cung-luu-dv-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px 5px 4px;
  border-top: .5px solid #111124;
  background: rgba(0,0,0,.2);
  min-height: 16px;
  overflow: visible;
}

/* Lưu Cung label (L.Mệnh, L.Quan Lộc...) */
.luu-cung-label {
  font-size: 9px; font-weight: 600;
  color: #93c5fd;
  background: rgba(59,130,246,.12);
  border: .5px solid rgba(59,130,246,.3);
  border-radius: 3px;
  padding: 1px 5px;
  white-space: nowrap;
}

/* ĐV Cung label */
.dv-cung-label {
  font-size: 9px; font-weight: 600;
  color: #c4b5fd;
  background: rgba(139,92,246,.12);
  border: .5px solid rgba(139,92,246,.3);
  border-radius: 3px;
  padding: 1px 5px;
  white-space: nowrap;
}

/* Tiểu Hạn badge */
.tieu-han-label {
  font-size: 9px; font-weight: 700;
  color: #fbbf24;
  background: rgba(245,158,11,.15);
  border: .5px solid rgba(245,158,11,.4);
  border-radius: 3px;
  padding: 1px 5px;
  white-space: nowrap;
}

/* Lộc Kỵ nhập labels */
.loc-nhap, .luu-loc-nhap, .dv-loc-nhap {
  font-size: 9px; font-weight: 600;
  color: #fbbf24;
  padding: 1px 4px;
  border-radius: 3px;
  white-space: nowrap;
}
.loc-nhap     { background: rgba(201,168,76,.15); border: .5px solid rgba(201,168,76,.35); }
.luu-loc-nhap { background: rgba(59,130,246,.12); border: .5px solid rgba(59,130,246,.3); color:#93c5fd; }
.dv-loc-nhap  { background: rgba(139,92,246,.12); border: .5px solid rgba(139,92,246,.3); color:#c4b5fd; }

.ky-nhap, .luu-ky-nhap, .dv-ky-nhap {
  font-size: 9px; font-weight: 600;
  color: #fca5a5;
  padding: 1px 4px;
  border-radius: 3px;
  white-space: nowrap;
}
.ky-nhap     { background: rgba(240,128,128,.12); border: .5px solid rgba(240,128,128,.3); }
.luu-ky-nhap { background: rgba(59,130,246,.08);  border: .5px solid rgba(59,130,246,.2); color:#fca5a5; }
.dv-ky-nhap  { background: rgba(139,92,246,.08);  border: .5px solid rgba(139,92,246,.2); color:#fca5a5; }

/* Lưu Tuần Triệt badges */
.badge-luu-tuan {
  font-size: 8px; color: #fdba74;
  border: .5px solid #f97316; padding: 0 3px; border-radius: 2px;
  margin-left: 2px;
}
.badge-luu-triet {
  font-size: 8px; color: #fda4af;
  border: .5px solid #dc2626; padding: 0 3px; border-radius: 2px;
  margin-left: 2px;
}

/* Lưu/ĐV tinh items in zones 2 (different color coding) */
.phu-tinh-item.is-luu    { opacity: .85; font-style: italic; }
.phu-tinh-item.is-daivan { opacity: .85; font-weight: 500; }

/* ── Đại Vận tuổi badge in cung header ── */
.dv-tuoi-badge {
  font-size: 8px;
  font-weight: 600;
  color: #c4b5fd;
  background: rgba(139,92,246,.15);
  border: .5px solid rgba(139,92,246,.3);
  border-radius: 3px;
  padding: 1px 4px;
  white-space: nowrap;
  letter-spacing: .02em;
}

/* ── Phụ tinh typography — controlled by CSS vars from Typography admin ── */
.phu-tinh-item {
  display: block;
  font-family: var(--tvtt-font-star, inherit);
  font-size: var(--tvtt-size-pt, 9px);
  line-height: 1.45;
  white-space: nowrap;
}

/* Bản mệnh nhóm sao */
.pti-cat   { color: var(--tvtt-color-cat,  #86efac); }
.pti-hung  { color: var(--tvtt-color-hung, #fca5a5); }
.pti-trung { color: var(--tvtt-color-trung,#d4d4d4); }

/* Lưu Niên & Đại Vận */
.pti-luu { color: var(--tvtt-color-luu, #93c5fd); font-style: italic; }
.pti-dv  { color: var(--tvtt-color-dv,  #c4b5fd); }

/* Tứ Hóa bản mệnh — màu giữ nguyên từ HOA_COLORS, chỉ size theo var */
.pti-tu-hoa { font-weight: 700; font-size: var(--tvtt-size-tu-hoa, var(--tvtt-size-pt, 9px)); }

/* Mức độ badge */
.pti-mieu  { font-size: 75%; margin-left: 1px; }
.pti-annot { font-size: 75%; margin-left: 1px; }

/* ── Mệnh/Thân watermark — ghost text center of cung cell ── */
.cung-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold, #c9a84c);
  opacity: .15;
  pointer-events: none;
  text-align: center;
  line-height: 1.1;
  white-space: nowrap;
  z-index: 0;
  user-select: none;
}
/* Ensure cung-cell has relative positioning for watermark */
.cung-cell { position: relative; }

/* Center cung-name text */
.cung-name { text-align: center; flex: 1; }

/* ── Thiên Bàn center cell — typography vars ── */
/* NOTE: redundant .cell-center .c-name/.c-row !important overrides removed —
   base .c-name/.c-row rules above already apply color vars, and removing
   the compound-selector duplicates here lets Typography PC/Mobile tabs
   (plain .c-name/.c-row selectors) take effect without being blocked by
   higher specificity. */

/* ── Chú thích ngũ hành & mức độ — dưới Thiên Bàn ── */
.la-so-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px 14px;
  padding: 8px 16px 7px;
  background: rgba(5,2,15,.6);
  border-top: 1px solid rgba(201,168,76,.12);
  font-size: 11px;
  color: rgba(200,190,175,.55);
  /* Span full width below grid */
  grid-column: 1 / -1;
  border-radius: 0 0 10px 10px;
}
.legend-mucdo b { color: rgba(200,190,175,.9); }
.legend-sep    { opacity: .35; }
.legend-divider { opacity: .3; margin: 0 4px; }
.legend-hanh   { font-weight: 600; font-size: 12px; }
@media (max-width: 768px) {
  .la-so-legend { font-size: 9px; gap: 4px 8px; padding: 6px 8px 4px; }
  .legend-hanh  { font-size: 10px; }
}
