/* Scoped, local-only FAQ widget. It remains a non-modal region. */
.help-assistant[hidden], .help-assistant [hidden] { display: none !important; }
.help-assistant { position: fixed; z-index: 60; right: max(24px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif; color: #14273e; }
.help-assistant button, .help-assistant input { font: inherit; }
.help-assistant button { cursor: pointer; }
.help-assistant button:focus-visible, .help-assistant a:focus-visible, .help-assistant input:focus-visible, .help-assistant__log:focus-visible { outline: 3px solid #35a78f; outline-offset: 3px; }
.help-assistant svg { display: block; flex-shrink: 0; }
.help-assistant__toggle { display: flex; align-items: center; gap: 11px; min-height: 54px; border: 1px solid #294356; border-radius: 18px 18px 5px 18px; padding: 12px 17px; color: #fff; background: #10283f; box-shadow: 0 8px 26px #10283f30; font-size: .86rem; font-weight: 600; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.help-assistant__toggle:hover { background: #17374f; transform: translateY(-2px); box-shadow: 0 12px 30px #10283f35; }
.help-assistant__toggle-icon { color: #5de0bd; }
.help-assistant__toggle-dot { width: 6px; height: 6px; border-radius: 50%; background: #5de0bd; }
.help-assistant__panel { position: absolute; right: 0; bottom: calc(100% + 14px); width: min(390px, calc(100vw - 48px)); max-height: min(680px, calc(100dvh - 115px)); display: flex; flex-direction: column; border: 1px solid #d4e1e8; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 70px #10283f30, 0 3px 14px #10283f0c; background: #fff; animation: help-assistant-enter .2s ease-out; }
.help-assistant__header { display: flex; align-items: center; gap: 11px; padding: 19px 19px 18px; color: #fff; background: #10283f; }
.help-assistant__avatar { display: grid; place-items: center; width: 39px; height: 39px; flex-shrink: 0; border: 1px solid #ffffff20; border-radius: 12px; color: #5de0bd; background: #ffffff08; }
.help-assistant__header h2 { color: #fff; margin: 0 0 4px; font-size: .96rem; line-height: 1.3; font-weight: 650; letter-spacing: -.02em; }
.help-assistant__header p { color: #b7cad7; margin: 0; font-size: .68rem; line-height: 1.4; }
.help-assistant__close { display: grid; place-items: center; min-width: 40px; min-height: 40px; margin-left: auto; border: 0; border-radius: 9px; color: #cedfe7; background: transparent; }
.help-assistant__close:hover { background: #ffffff12; color: #fff; }
.help-assistant__body { display: flex; flex-direction: column; min-height: 0; padding: 17px 17px 14px; gap: 13px; overflow-y: auto; overscroll-behavior: contain; }
.help-assistant__intro { margin: 0; color: #586b80; font-size: .7rem; line-height: 1.6; }
.help-assistant__intro-row { display: flex; align-items: start; gap: 10px; }
.help-assistant__clear { flex-shrink: 0; min-height: 36px; padding: 6px 8px; border: 1px solid #dce5ec; border-radius: 7px; color: #64768a; background: #fff; font-size: .66rem; }
.help-assistant__clear:hover { background: #f0f4f8; color: #304963; }
.help-assistant__log { overflow-y: auto; overscroll-behavior: contain; min-height: 98px; max-height: min(255px, 32dvh); flex: 1 1 auto; padding: 2px 5px 4px 1px; }
.help-assistant__message { max-width: 94%; margin: 0 0 10px; border-radius: 12px 12px 12px 3px; padding: 11px 13px; font-size: .77rem; line-height: 1.65; background: #edf5f2; color: #264d45; overflow-wrap: anywhere; }
.help-assistant__message:last-child { margin-bottom: 0; }
.help-assistant__message p { margin: 0; }
.help-assistant__speaker { display: block; font-size: .6rem; font-weight: 650; color: #3c6759; margin-bottom: 3px; }
.help-assistant__message--question { margin-left: auto; background: #f0f3f7; color: #45586e; border-radius: 12px 12px 3px 12px; }
.help-assistant__message--question .help-assistant__speaker { color: #54667c; }
.help-assistant__questions { display: flex; flex-wrap: wrap; gap: 7px; }
.help-assistant__questions button { min-height: 36px; border: 1px solid #d5e3df; border-radius: 7px; padding: 6px 10px; background: #fff; color: #296857; font-size: .7rem; font-weight: 600; line-height: 1.4; transition: border-color .16s ease, background .16s ease; }
.help-assistant__questions button:hover { background: #eef7f2; border-color: #99c7b7; }
.help-assistant__form { margin: 0; }
.help-assistant__form label { display: block; font-size: .64rem; font-weight: 650; color: #586b80; margin-bottom: 6px; }
.help-assistant__input-row { display: flex; align-items: center; gap: 7px; }
.help-assistant__input-row input { width: 100%; min-width: 0; min-height: 44px; border: 1px solid #ccdbe3; border-radius: 8px; padding: 10px 12px; color: #24394d; background: #fbfcfe; font-size: .78rem; }
.help-assistant__input-row input::placeholder { color: #657589; }
.help-assistant__input-row button { display: grid; place-items: center; min-width: 44px; min-height: 44px; border: 1px solid #107568; border-radius: 8px; padding: 0; background: #107568; color: #fff; }
.help-assistant__input-row button:hover { background: #095e53; }
.help-assistant__privacy { margin: 0; color: #657589; font-size: .59rem; line-height: 1.6; }
.help-assistant__footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 17px; padding: 12px 14px; background: #f7f9fc; border-top: 1px solid #e6edf2; }
.help-assistant__footer a { color: #53687e; font-size: .65rem; text-decoration: none; text-underline-offset: 3px; }
.help-assistant__footer a:hover { color: #107568; text-decoration: underline; }
@keyframes help-assistant-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 480px) {
  .help-assistant { right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); }
  .help-assistant__panel { width: calc(100vw - 28px); max-height: calc(100dvh - 103px); bottom: calc(100% + 10px); }
  .help-assistant__toggle { min-height: 49px; padding: 10px 13px; font-size: .8rem; }
  .help-assistant__body { gap: 10px; padding: 14px; }
  .help-assistant__header { padding: 14px; }
}
@media (max-height: 560px) {
  .help-assistant__panel { max-height: calc(100dvh - 95px); }
  .help-assistant__intro, .help-assistant__privacy { display: none; }
  .help-assistant__body { padding: 12px; gap: 8px; }
  .help-assistant__header { padding: 10px 13px; }
  .help-assistant__log { min-height: 65px; }
}
@media (prefers-reduced-motion: reduce) {
  .help-assistant__panel { animation: none; }
  .help-assistant__toggle, .help-assistant__questions button { transition: none; }
  .help-assistant__toggle:hover { transform: none; }
}
