/* v2.64 — (1) Cảnh báo: 2 nút "Kiểm tra ngay" / "Tạo cảnh báo" CÙNG 1 HÀNG, chia đều, nằm dưới tiêu đề (điện thoại dọc).
           (2) Nhãn "Trực tiếp" + hiệu ứng nháy giá cho biểu đồ chạy giá tự động. Chỉ thêm quy tắc, không đổi file cũ. */
html body #view .view-h.vh-al{display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;align-items:stretch!important;gap:10px;margin-bottom:6px!important}
html body #view .view-h.vh-al>.al-ht{flex:0 0 auto;min-width:0}
html body #view .view-h.vh-al>.al-btns{display:grid!important;grid-template-columns:1fr 1fr;gap:8px;width:100%!important;margin:0!important;flex:none}
html body #view .view-h.vh-al .al-btns .btn{width:100%!important;min-width:0;height:42px;min-height:42px;padding:0 8px;font-size:14px;font-weight:600;line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0!important;display:inline-flex;align-items:center;justify-content:center;gap:6px}
@media(max-width:360px){html body #view .view-h.vh-al .al-btns .btn{font-size:13px;padding:0 6px}}
@media(min-width:901px){
  html body #view .view-h.vh-al{flex-direction:row!important;align-items:flex-start!important;justify-content:space-between}
  html body #view .view-h.vh-al>.al-ht{flex:1 1 auto}
  html body #view .view-h.vh-al>.al-btns{display:flex!important;width:auto!important;flex:0 0 auto}
  html body #view .view-h.vh-al .al-btns .btn{width:auto!important;height:36px;min-height:36px;padding:0 14px}
}

/* Nhãn trạng thái giá chạy */
.nl-chip{display:inline-flex;align-items:center;gap:5px;margin:4px 0 0 0;padding:2px 9px;border-radius:999px;font-size:11.5px;font-weight:600;line-height:18px;white-space:nowrap;background:rgba(138,151,166,.16);color:var(--text3,#5b6c7d);vertical-align:middle}
.nl-chip.live{background:rgba(20,194,154,.14);color:#0d8f72}
.nl-chip.live::first-letter{animation:nl-pulse 1.4s ease-in-out infinite}
.nl-chip.warn{background:rgba(245,166,35,.16);color:#a86a00}
.nl-chip.err{background:rgba(214,69,80,.14);color:#c0392b}
#cp-px .big.nl-up{animation:nl-up .7s ease-out}
#cp-px .big.nl-dn{animation:nl-dn .7s ease-out}
@keyframes nl-up{0%{background:rgba(20,194,154,.38)}100%{background:transparent}}
@keyframes nl-dn{0%{background:rgba(214,69,80,.34)}100%{background:transparent}}
@keyframes nl-pulse{0%,100%{opacity:1}50%{opacity:.25}}
@media(prefers-reduced-motion:reduce){#cp-px .big.nl-up,#cp-px .big.nl-dn,.nl-chip.live::first-letter{animation:none}}
