.alpha-chat { font-family: inherit; color: #172238; }
.alpha-chat-trigger {
  position: fixed; right: 24px; bottom: 22px; z-index: 500;
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 48px; padding: 12px 18px; border: 1px solid #4338ca;
  border-radius: 999px; background: #4338ca; color: #fff;
  font: inherit; font-size: 14px; font-weight: 650; cursor: pointer;
  box-shadow: 0 6px 20px #24325326;
}
.alpha-chat-trigger:hover { background: #3730a3; border-color: #3730a3; }
.alpha-chat-trigger svg, .alpha-chat-close svg { width: 21px; height: 21px; flex: none; }
.alpha-chat-trigger:focus-visible, .alpha-chat-close:focus-visible,
.alpha-chat-footer a:focus-visible { outline: 3px solid #818cf8; outline-offset: 3px; }
.alpha-chat-panel {
  position: fixed; right: 24px; bottom: 82px; z-index: 501;
  display: flex; flex-direction: column;
  width: min(390px, calc(100vw - 32px)); height: 560px;
  max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px);
  overflow: hidden; background: #fff; border: 1px solid #dce2ed;
  border-radius: 18px; box-shadow: 0 16px 56px #2432532b;
}
.alpha-chat-panel[hidden] { display: none; }
.alpha-chat-header {
  display: flex; align-items: center; gap: 11px; flex: none;
  padding: 16px; border-bottom: 1px solid #e8edf4; background: #fafbff;
}
.alpha-chat-mark {
  width: 36px; height: 36px; display: grid; place-items: center; flex: none;
  background: #eeedff; color: #4338ca; border-radius: 10px;
}
.alpha-chat-mark svg { width: 21px; height: 21px; }
.alpha-chat-header h2 { margin: 0; color: #172238; font-size: 16px; line-height: 1.3; font-weight: 650; }
.alpha-chat-header p { margin: 3px 0 0; color: #67738a; font-size: 12px; line-height: 1.4; }
.alpha-chat-close {
  display: grid; place-items: center; margin-left: auto; min-width: 36px; min-height: 36px;
  padding: 7px; border: 0; border-radius: 8px; background: transparent; color: #536078; cursor: pointer;
}
.alpha-chat-close:hover { background: #e9edf5; }
.alpha-chat-content { position: relative; flex: 1; min-height: 120px; display: flex; flex-direction: column; }
.alpha-chat-status { margin: 0; padding: 10px 16px; font-size: 12px; line-height: 1.45; color: #67738a; background: #fff; }
.alpha-chat-frame { width: 100%; flex: 1; min-height: 0; border: 0; background: #fff; }
.alpha-chat-footer { flex: none; padding: 11px 16px 14px; border-top: 1px solid #e8edf4; background: #fafbff; }
.alpha-chat-footer p { margin: 0 0 5px; color: #67738a; font-size: 12px; line-height: 1.4; }
.alpha-chat-footer a { display: inline-flex; align-items: center; gap: 6px; color: #4338ca; font-size: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.alpha-chat-footer a svg { width: 14px; height: 14px; flex: none; }
@media (max-width: 600px) {
  .alpha-chat-trigger { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); min-height: 46px; padding: 11px 15px; }
  .alpha-chat-panel { right: 12px; bottom: calc(74px + env(safe-area-inset-bottom)); width: calc(100vw - 24px); max-height: calc(100dvh - 94px - env(safe-area-inset-bottom)); border-radius: 14px; }
}
@media (max-height: 450px) {
  .alpha-chat-content { min-height: 0; }
  .alpha-chat-panel { top: 8px; bottom: 64px; height: auto; max-height: none; }
  .alpha-chat-header { padding: 8px 12px; }
  .alpha-chat-footer { padding: 7px 12px; }
}
