.aia-widget {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 9;
  width: min(350px, calc(100vw - 32px));
  display: grid;
  justify-items: end;
  gap: 9px;
  pointer-events: none;
}
.aia-widget > * { pointer-events: auto; }
.aia-widget [hidden] { display: none; }
.aia-launcher,.aia-panel {
  background: #101a2e;
  border: 1px solid #4969af;
  color: #f5f7ff;
  box-shadow: 0 10px 32px #02060a88;
}
.aia-launcher {
  cursor: pointer;
  border-radius: 30px;
  font: 700 14px 'DM Sans', system-ui, sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 5px;
}
.aia-launcher:hover { background: #1b2d51; }
.aia-avatar {
  display: block;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  background: #030a18 url("aia-illustration.png") 35% 14% / 380% auto no-repeat;
}
.aia-panel {
  position: relative;
  width: 100%;
  max-height: min(410px, calc(100dvh - 90px));
  overflow: auto;
  padding: 14px;
  border-radius: 13px;
}
.aia-panel-header { display: flex; align-items: center; gap: 9px; padding-right: 35px; }
.aia-panel-header strong { display: block; line-height: 1.2; }
.aia-panel-header small { color: #abc0ef; font-size: 12px; }
.aia-panel .close { position: absolute; right: 9px; top: 9px; min-width: 32px; min-height: 32px; }
.aia-panel h2 { font-size: 22px; margin: 13px 0 8px; }
.aia-panel p { color: #d0dcf2; font-size: 14px; margin: 10px 0; }
.aia-panel .button { white-space: normal; }
.aia-chat-quick { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.aia-chat-quick a { border: 1px solid #405886; padding: 5px 8px; border-radius: 6px; color: #bbd0ff; font-size: 13px; }
.aia-chat-quick a:hover { background: #1b2d51; }
.aia-notice:not([hidden]) { animation: aia-appear .3s ease-out both; }
@keyframes aia-appear { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .aia-notice:not([hidden]) { animation: none; } }
.aia-panel .aia-notice {
  margin-top: 14px;
  background: #162442;
  border-color: #3c578c;
  box-shadow: none;
}
