/* A local product guide, kept separate from live network controls. */
.al-help {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 55;
  color: #18372f;
  font-family: var(--body, Inter, Arial, sans-serif);
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: normal;
}
.al-help [hidden] { display: none !important; }
.al-help button,
.al-help textarea,
.al-help a { font-family: inherit; }
.al-help button:focus-visible,
.al-help a:focus-visible,
.al-help [tabindex]:focus-visible {
  outline: 2px solid #2774d4;
  outline-offset: 3px;
}
.al-help-launcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  margin-left: auto;
  padding: 0 19px;
  border: 1px solid #3c7ec7;
  border-radius: 30px;
  background: #1765c1;
  color: #fff;
  box-shadow: 0 5px 18px #082c431c, 0 1px 3px #0b2f4d1c;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 550;
  transition: background .18s, box-shadow .18s, transform .18s;
}
.al-help-launcher:hover { background: #1255a6; box-shadow: 0 7px 25px #082c432b; transform: translateY(-1px); }
.al-help-launcher-icon { display: flex; align-items: center; }
.al-help.is-open .al-help-launcher { min-height: 43px; padding: 0 16px; font-size: 12px; }
.al-help.is-open .al-help-launcher-icon svg { width: 17px; height: 17px; }
.al-help-panel {
  display: flex;
  flex-direction: column;
  width: 398px;
  height: min(590px, calc(100dvh - 110px));
  min-height: 260px;
  margin-bottom: 13px;
  overflow: hidden;
  border: 1px solid #cbdcd6;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 20px 65px #0c2e3526, 0 3px 12px #17382e0d;
}
.al-help-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 79px;
  padding: 15px 13px 15px 18px;
  border-bottom: 1px solid #dae5df;
  background: #f8fbfa;
}
.al-help-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 38px;
  flex-shrink: 0;
}
.al-help-mark img { width: 32px; height: 32px; object-fit: contain; }
.al-help-heading { flex: 1 1 auto; min-width: 0; }
.al-help-heading h2 { margin: 0; color: #15382e; font-family: var(--display, Manrope, Arial, sans-serif); font-size: 15px; font-weight: 650; letter-spacing: -.025em; line-height: 1.4; }
.al-help-heading p { margin: 4px 0 0; color: #6b7c75; font-size: 10px; line-height: 1.4; white-space: nowrap; }
.al-help-heading p span { padding: 0 3px; color: #97aaa2; }
.al-help-icon-button { display: grid; place-items: center; width: 32px; height: 35px; padding: 0; color: #6b7f76; border-radius: 5px; flex-shrink: 0; }
.al-help-icon-button:hover { background: #eaf1ed; color: #184b3c; }
.al-help-thread {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px 20px 22px;
  scrollbar-width: thin;
  scrollbar-color: #cedbd6 transparent;
  background: #fff;
}
.al-help-message { max-width: 100%; margin: 0 0 21px; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.al-help-speaker { display: block; margin-bottom: 7px; color: #6b8077; font-size: 10px; font-weight: 600; line-height: 1.4; letter-spacing: .02em; }
.al-help-message-assistant > p { margin: 0 0 12px; color: #355247; font-size: 14px; line-height: 1.7; }
.al-help-message-assistant > p:last-child { margin-bottom: 0; }
.al-help-message-assistant.al-help-welcome > p:first-of-type { margin-bottom: 9px; color: #173c30; font-family: var(--display, Manrope, Arial, sans-serif); font-size: 23px; line-height: 1.35; letter-spacing: -.04em; font-weight: 500; }
.al-help-message-assistant ul { list-style: disc; padding-left: 18px; margin: 0 0 14px; }
.al-help-message-assistant li { margin-bottom: 7px; padding-left: 2px; color: #355247; }
.al-help-message-user { margin-left: 30px; padding: 12px 15px; border: 1px solid #d5e3f0; border-radius: 9px 9px 2px 9px; background: #edf4fc; }
.al-help-message-user .al-help-speaker { color: #4f73a1; margin-bottom: 4px; }
.al-help-message-user p { margin: 0; color: #264b77; font-size: 14px; line-height: 1.6; white-space: pre-wrap; }
.al-help-answer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; margin-top: 15px; }
.al-help-answer-links a { display: inline-flex; align-items: center; gap: 9px; color: #1764af; border-bottom: 1px solid #c1d6ed; padding-bottom: 3px; font-size: 12px; line-height: 1.5; font-weight: 550; }
.al-help-answer-links a:hover { border-color: #2476ca; color: #104d91; }
.al-help-answer-links a span { display: inline-flex; }
.al-help-suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -1px; }
.al-help-suggestions button { padding: 9px 12px; border: 1px solid #d3e1da; border-radius: 6px; background: #f7faf8; color: #2a5b47; font-size: 12px; line-height: 1.45; text-align: left; }
.al-help-suggestions button:hover { background: #ecf5ef; border-color: #a6c9b5; }
.al-help-composer { flex: 0 0 auto; padding: 14px 17px 12px; border-top: 1px solid #e4ece7; background: #f9fbfa; }
.al-help-composer form { display: flex; align-items: flex-end; gap: 7px; padding: 6px 6px 6px 13px; border: 1px solid #c7d8ce; border-radius: 7px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.al-help-composer form:focus-within { border-color: #669ccb; box-shadow: 0 0 0 2px #e5eff9; }
.al-help-composer textarea { display: block; flex: 1 1 auto; width: 100%; min-width: 0; max-height: 104px; min-height: 34px; padding: 7px 0 5px; border: 0; border-radius: 0; outline: 0; resize: none; background: transparent; color: #203d31; font-size: 13px; line-height: 1.55; box-shadow: none; }
.al-help-composer textarea:focus-visible { outline: 0; }
.al-help-composer textarea::placeholder { color: #83948a; opacity: 1; }
.al-help-send { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; margin-bottom: 1px; border-radius: 5px; background: #1765bd; color: #fff; }
.al-help-send:hover:not(:disabled) { background: #1053a1; }
.al-help-send:disabled { background: #e9f0ed; color: #92a79b; opacity: 1; }
.al-help-composer > p { margin: 9px 0 0; color: #8a9b91; font-size: 9px; line-height: 1.5; text-align: center; }
.al-help-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
body.dialog-open .al-help { visibility: hidden; }
@media (max-width: 520px) {
  .al-help { right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); }
  .al-help-panel { width: calc(100vw - 24px - env(safe-area-inset-right) - env(safe-area-inset-left)); height: min(590px, calc(100dvh - 90px)); min-height: 220px; margin-bottom: 10px; }
  .al-help-launcher { min-height: 46px; padding: 0 16px; font-size: 12px; }
  .al-help-header { padding-left: 14px; gap: 8px; }
  .al-help-heading h2 { font-size: 14px; }
  .al-help-thread { padding: 20px 18px; }
  .al-help-composer textarea { font-size: 16px; min-height: 35px; padding-top: 5px; }
  .al-help-composer { padding: 12px 13px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .al-help-launcher { transition: none; }
}

@media(max-height:440px){
 .al-help{bottom:max(10px,env(safe-area-inset-bottom))}
 .al-help-panel{height:calc(100dvh - 78px);min-height:0;margin-bottom:10px}
 .al-help-header{min-height:61px;padding-top:8px;padding-bottom:8px}
 .al-help-thread{padding-top:14px;padding-bottom:14px}
 .al-help-composer{padding-top:8px;padding-bottom:8px}
}
