/* Cụm nút nổi gom 1 (kế hoạch mục 9). Gom: Hỏi AI · Góp ý · Cỡ chữ Aa · Lên đầu trang vào 1 nút 48px góc dưới phải.
   Tự ẩn khi cuộn xuống/gõ/bàn phím bật; hiện lại khi cuộn lên. Bỏ chấm đỏ "1" giả của Hỏi AI. Không đổi chữ/HTML nội dung. */
#smc-aiv-badge { display: none !important; }
body.sm-fab-on .sm-fab {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 900; display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  transition: transform 200ms cubic-bezier(.2, .8, .2, 1), opacity 200ms ease;
}
body.sm-fab-on .sm-fab.is-away { transform: translateY(calc(100% + 32px)); opacity: 0; pointer-events: none; }
body.sm-fab-on .sm-fab__list { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
body.sm-fab-on .sm-fab:not(.is-open) .sm-fab__list { display: none; }
body.sm-fab-on .sm-fab__list > * {
  position: static !important; inset: auto !important; margin: 0 !important; transform: none !important;
  z-index: auto !important; opacity: 1 !important; visibility: visible !important; pointer-events: auto !important;
  animation: sm-fab-in 200ms ease both;
}
@keyframes sm-fab-in { from { opacity: 0; transform: translateY(8px) scale(.9); } to { opacity: 1; transform: none; } }
body.sm-fab-on .sm-fab__list #smc-aiv-launcher { width: 48px !important; height: 48px !important; }
body.sm-fab-on .sm-fab__list #smc-aiv-launcher .sm-aiv-bubble { position: static !important; width: 48px !important; height: 48px !important; margin: 0 !important; }
body.sm-fab-on .sm-fab__list .sm-aiv-preview { display: none !important; }
body.sm-fab-on .sm-fab__list #smfb-fab { width: 48px !important; height: 48px !important; }
body.sm-fab-on .sm-fab__list [class*="-btt"] { width: 48px !important; height: 48px !important; }
body.sm-fab-on .sm-fab__list [class*="-btt"].sm-fab-hide { display: none !important; }
.sm-fab__toggle {
  width: 48px; height: 48px; border-radius: 50%; padding: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20, 18, 12, .94); border: 1px solid rgba(201, 169, 110, .55); color: #e8d6a8;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .45);
  transition: border-color 200ms ease, background 200ms ease;
}
.sm-fab__toggle:hover { border-color: rgba(201, 169, 110, .9); background: rgba(34, 30, 20, .96); }
.sm-fab__toggle:focus-visible { outline: 2px solid #c8a24a; outline-offset: 2px; }
.sm-fab__toggle svg { width: 22px; height: 22px; transition: transform 200ms ease; }
.sm-fab.is-open .sm-fab__toggle svg { transform: rotate(45deg); }
@media (prefers-reduced-motion: reduce) {
  body.sm-fab-on .sm-fab, body.sm-fab-on .sm-fab__list > *, .sm-fab__toggle svg { transition: none; animation: none; }
}
@media print { .sm-fab { display: none !important; } }
/* Đồng bộ dáng 4 nút trong cụm: nền tối, viền vàng cổ 1px, tròn 48px, cùng bóng; bỏ vầng sáng/quỹ đạo trang trí lệch kích thước. */
body.sm-fab-on .sm-fab__list [class*="-btt"],
body.sm-fab-on .sm-fab__list #smfb-fab,
body.sm-fab-on .sm-fab__list .sm-aiv-bubble,
body.sm-fab-on .sm-fab__list .sm-chuto {
  background: rgba(20, 18, 12, .94) !important; border: 1px solid rgba(201, 169, 110, .55) !important;
  border-radius: 999px !important; box-shadow: 0 4px 16px rgba(0, 0, 0, .45) !important; color: #e8d6a8 !important;
}
body.sm-fab-on .sm-fab__list [class*="-btt"],
body.sm-fab-on .sm-fab__list #smfb-fab,
body.sm-fab-on .sm-fab__list .sm-aiv-bubble { display: flex !important; align-items: center; justify-content: center; padding: 0 !important; }
body.sm-fab-on .sm-fab__list .smfb-fab__glow,
body.sm-fab-on .sm-fab__list .sm-aiv-bubble__orbit { display: none !important; }
body.sm-fab-on .sm-fab__list .sm-chuto { min-width: 48px; min-height: 48px; padding: 0 !important; align-items: center; justify-content: center; }
body.sm-fab-on .sm-fab__list [class*="-btt"] svg { width: 20px; height: 20px; }
