/* Help has its own scroll area; the platform remains usable underneath. */
.operational-help-trigger,
.operational-help-panel { box-sizing: border-box; font-family: Nunito, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.operational-help-trigger[hidden], .operational-help-panel[hidden] { display: none !important; }
.operational-help-trigger,
.tcd-rail .operational-help-trigger {
  display: grid; place-items: center; width: 44px; height: 44px; min-height: 44px;
  padding: 7px; border: 1px solid #dbe5f6; border-radius: 14px;
  background: #fff; box-shadow: 0 3px 11px #20345410; cursor: pointer;
}
.operational-help-trigger.is-floating {
  position: fixed; z-index: 1310; right: max(12px, env(safe-area-inset-right, 0px));
  bottom: max(18px, env(safe-area-inset-bottom, 0px));
}
.operational-help-logo { width: 30px; height: 30px; object-fit: contain; }
.operational-help-panel {
  position: fixed; z-index: 1410; right: var(--operational-help-right, 80px);
  bottom: max(var(--operational-help-bottom, 16px), env(safe-area-inset-bottom, 0px));
  width: min(390px, calc(100vw - 100px)); height: var(--operational-help-height, min(580px, calc(100dvh - 36px)));
  max-height: calc(100dvh - 24px); display: flex; flex-direction: column; overflow: hidden;
  color: #203454; background: #fff; border: 1px solid #dbe5f3; border-radius: 20px;
  box-shadow: 0 16px 54px #20345426, 0 2px 8px #2034540a;
}
.operational-help-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; border-bottom: 1px solid #e7edf6; flex-shrink: 0; }
.operational-help-head-logo { width: 28px; height: 28px; object-fit: contain; }
.operational-help-title { margin: 0; flex: 1; font-size: 17px; line-height: 1.3; font-weight: 800; color: #203454; }
.operational-help-panel button { font: inherit; cursor: pointer; letter-spacing: normal; text-transform: none; }
.operational-help-panel .operational-help-close { display: grid; place-items: center; width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 11px; background: transparent; color: #657690; font-size: 25px; line-height: 1; }
.operational-help-messages { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.operational-help-messages:empty { display: none; }
.operational-help-message { max-width: 100%; flex-shrink: 0; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.operational-help-message-text { white-space: pre-wrap; }
.operational-help-message.is-user { align-self: flex-end; max-width: 90%; padding: 10px 13px; border-radius: 15px 15px 4px 15px; background: #edf3ff; color: #284e91; }
.operational-help-message.is-assistant { align-self: stretch; }
.operational-help-destinations { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.operational-help-panel .operational-help-destination { padding: 9px 13px; min-height: 44px; border: 1px solid #cbdcf8; border-radius: 10px; color: #2854a3; background: #f4f7ff; font-size: 13px; font-weight: 800; text-align: left; white-space: normal; }
.operational-help-starters { display: flex; flex: 1; flex-direction: column; align-items: stretch; justify-content: center; gap: 9px; padding: 16px; }
.operational-help-starters[hidden] { display: none; }
.operational-help-panel .operational-help-starter { padding: 11px 14px; min-height: 44px; border: 1px solid #dfe7f3; border-radius: 12px; color: #466181; background: #fff; font-size: 14px; font-weight: 700; text-align: left; }
.operational-help-status { padding: 0 16px; min-height: 0; color: #718098; font-size: 12px; line-height: 1.45; }
.operational-help-status:not(:empty) { padding-bottom: 10px; }
.operational-help-status.is-error { color: #b33643; }
.operational-help-composer { display: flex; gap: 10px; align-items: flex-end; margin: 0; padding: 12px 14px; border-top: 1px solid #e7edf6; background: #fff; flex-shrink: 0; }
.operational-help-panel .operational-help-input { box-sizing: border-box; flex: 1; min-width: 0; min-height: 48px; max-height: 120px; margin: 0; padding: 10px 11px; resize: none; border: 1px solid #dbe4f1; border-radius: 11px; background: #f9fbfe; color: #203454; font: inherit; font-size: 16px; line-height: 1.4; box-shadow: none; }
.operational-help-input::placeholder { color: #8492a7; }
.operational-help-panel .operational-help-send { min-height: 46px; padding: 10px 14px; border: 0; border-radius: 11px; background: #315fc9; color: white; font-size: 13px; font-weight: 800; box-shadow: none; }
.operational-help-panel button:disabled { opacity: .55; cursor: default; }
.operational-help-trigger, .operational-help-panel button { touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.operational-help-trigger:focus-visible, .operational-help-panel button:focus-visible, .operational-help-input:focus-visible { outline: 3px solid #94b4ff; outline-offset: 2px; }
.operational-help-trigger:active, .operational-help-panel button:not(:disabled):active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .operational-help-trigger:hover, .tcd-rail .operational-help-trigger:hover { background: #edf3ff; }
  .operational-help-panel .operational-help-close:hover, .operational-help-panel .operational-help-starter:hover, .operational-help-panel .operational-help-destination:hover { background: #edf3ff; }
  .operational-help-panel .operational-help-send:hover { background: #244fae; }
}
@media (max-width: 640px) {
  .operational-help-trigger.is-floating { bottom: max(82px, calc(72px + env(safe-area-inset-bottom, 0px))); }
  .operational-help-panel { width: calc(100vw - 16px); border-radius: 18px; right: max(8px, env(safe-area-inset-right, 0px)); }
  .operational-help-composer { padding-bottom: max(12px, env(safe-area-inset-bottom, 0px)); }
}
body.product-tour-active .operational-help-trigger,
body.product-tour-active .operational-help-panel,
body.academy-welcome-active .operational-help-trigger,
body.academy-welcome-active .operational-help-panel { visibility: hidden; }
