/* Trợ lý Đình Huy Academy (js-wp/assistant-float.js) — khung chat nổi: nền trắng, đầu xanh navy, điểm nhấn vàng của DHA. */
#dhaa-root { --dhaa-navy: #071367; --dhaa-navy-2: #0d1e8a; --dhaa-bg: #fff; --dhaa-soft: #f4f6fb; --dhaa-line: #e3e7f1; --dhaa-text: #111c52;
  --dhaa-muted: #6b7393; --dhaa-gold: #ff9908; --dhaa-gold-grad: linear-gradient(180deg, #ffdb82, #ff9908);
  position: fixed; right: 18px; bottom: 18px; z-index: 9990; font-family: Roboto, "Be Vietnam Pro", system-ui, sans-serif; color: var(--dhaa-text);
  font-size: 14px; line-height: 1.5; text-align: left; }
#dhaa-root * { box-sizing: border-box; }
.dhaa-fab { display: flex; align-items: center; gap: 8px; margin-left: auto; padding: 13px 20px; border: 0; border-radius: 999px; background: var(--dhaa-gold-grad);
  color: var(--dhaa-navy); font: 800 15px/1 inherit; font-family: inherit; cursor: pointer; box-shadow: 0 12px 28px -10px #ff9908cc, inset 0 1px #ffffffa0; }
.dhaa-fab:hover { filter: brightness(1.04); }
#dhaa-root button:focus-visible, #dhaa-root a:focus-visible { outline: 2px solid var(--dhaa-navy); outline-offset: 2px; }
.dhaa-panel { position: absolute; right: 0; bottom: 64px; display: flex; flex-direction: column; width: min(400px, calc(100vw - 36px)); height: min(620px, calc(100dvh - 100px));
  overflow: hidden; border: 1px solid var(--dhaa-line); border-radius: 22px; background: var(--dhaa-bg); box-shadow: 0 30px 70px -24px #07136766; }
.dhaa-panel[hidden] { display: none; }
.dhaa-head { display: flex; align-items: center; gap: 12px; padding: 15px 14px 14px 16px; background: linear-gradient(135deg, var(--dhaa-navy), var(--dhaa-navy-2)); color: #fff; }
.dhaa-head > div { flex: 1; min-width: 0; }
.dhaa-head b { display: block; font-size: 15px; font-weight: 800; }
.dhaa-head small { display: block; margin-top: 2px; color: #c9cff0; font-size: 12px; }
.dhaa-avatar { position: relative; display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--dhaa-gold-grad); color: var(--dhaa-navy); }
.dhaa-avatar i { position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border: 2px solid var(--dhaa-navy); border-radius: 50%; background: #22c55e; }
.dhaa-x { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: #c9cff0; cursor: pointer; }
.dhaa-x:hover { background: #ffffff1a; color: #fff; }
.dhaa-body { flex: 1; overflow-y: auto; padding: 16px; background: var(--dhaa-soft); overscroll-behavior: contain; }
.dhaa-row { display: flex; gap: 8px; margin-bottom: 12px; }
.dhaa-user { justify-content: flex-end; }
.dhaa-mini { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--dhaa-navy); color: #ffdb82; }
.dhaa-mini svg { width: 16px; height: 16px; }
.dhaa-msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--dhaa-line); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.dhaa-assistant .dhaa-msg { border-top-left-radius: 6px; }
.dhaa-user .dhaa-msg { border: 0; border-top-right-radius: 6px; background: var(--dhaa-navy); color: #fff; }
.dhaa-msg a { color: #0d3fd8; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.dhaa-user .dhaa-msg a { color: #ffdb82; }
.dhaa-li { display: block; position: relative; padding-left: 14px; }
.dhaa-li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: var(--dhaa-gold); }
.dhaa-typing .dhaa-msg { color: var(--dhaa-muted); animation: dhaa-pulse 1s infinite alternate; }
@keyframes dhaa-pulse { to { opacity: .4; } }
.dhaa-chips { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 4px 0 12px 36px; }
.dhaa-chip { padding: 8px 13px; border: 1px solid #ff990866; border-radius: 999px; background: #fff8ec; color: var(--dhaa-text); font: 600 13px/1.35 inherit; font-family: inherit; text-align: left; cursor: pointer; }
.dhaa-chip:hover { border-color: var(--dhaa-gold); background: #fff0d6; }
.dhaa-form { display: flex; gap: 8px; margin: 0; padding: 12px 14px 10px; border-top: 1px solid var(--dhaa-line); background: #fff; }
.dhaa-form textarea { flex: 1; min-height: 46px; max-height: 120px; margin: 0; padding: 12px 14px; border: 1px solid var(--dhaa-line); border-radius: 14px; background: var(--dhaa-soft);
  color: var(--dhaa-text); font: 14px/1.45 inherit; font-family: inherit; resize: none; }
.dhaa-form textarea::placeholder { color: var(--dhaa-muted); }
.dhaa-form textarea:focus { outline: none; border-color: var(--dhaa-navy); background: #fff; }
.dhaa-form button { display: grid; place-items: center; flex: none; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 14px; background: var(--dhaa-gold-grad); color: var(--dhaa-navy); cursor: pointer; }
.dhaa-zalo { display: flex; align-items: center; gap: 10px; margin: 0 14px 8px; padding: 8px 10px; border: 1px solid #0068ff40; border-radius: 12px; background: #0068ff0d; color: var(--dhaa-text); text-decoration: none; }
.dhaa-zalo:hover { background: #0068ff1a; }
.dhaa-zalo > span { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: #0068ff; color: #fff; font-size: 10px; font-weight: 800; }
.dhaa-zalo b { display: block; color: #0052cc; font-size: 13px; }
.dhaa-zalo small { display: block; color: var(--dhaa-muted); font-size: 11.5px; }
.dhaa-foot { margin: 0; padding: 0 16px 12px; background: #fff; color: var(--dhaa-muted); font-size: 11px; line-height: 1.5; text-align: center; }
@media (max-width: 480px) {
  #dhaa-root { right: 12px; bottom: 12px; }
  .dhaa-fab span { display: none; }
  .dhaa-fab { padding: 14px; }
  #dhaa-root.is-open .dhaa-panel { position: fixed; inset: 8px 8px 76px; width: auto; height: auto; }
}
@media print { #dhaa-root { display: none; } }
