.azimut-chat-open {
  position: fixed;
  inset-inline-end: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 22;
  background: #101820;
  color: white;
  border: 1px solid #58636b;
  border-radius: 2rem;
  padding: .7rem 1.15rem;
  font-size: .9rem;
  font-weight: 800;
  box-shadow: 0 3px 14px #10182030;
}
.azimut-chat-open:hover { background: #23323d; }
.azimut-chat-open:not([hidden]) { display: flex; align-items: center; gap: .5rem; padding: .35rem .95rem .35rem .35rem; }
.azimut-chat-open img { width: 2rem; height: 2rem; border-radius: 50%; object-fit: cover; }
.azimut-chat {
  box-sizing: border-box;
  width: min(26rem, calc(100% - 1.5rem));
  height: min(34rem, calc(100dvh - 2rem));
  max-height: calc(100% - 1.5rem);
  inset: auto max(.75rem, env(safe-area-inset-right)) max(.75rem, env(safe-area-inset-bottom)) auto;
  margin: 0;
  border: 1px solid #dce0df;
  border-radius: .9rem;
  padding: 0;
  background: white;
  color: #142029;
  box-shadow: 0 12px 40px #10182030;
  overflow: hidden;
}
.azimut-chat[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; }
.azimut-chat::backdrop { background: #10182038; }
.azimut-chat header { display: flex; align-items: center; gap: .75rem; background: #101820; color: white; padding: .75rem 1rem; }
.azimut-chat-avatar { width: 2.75rem; height: 2.75rem; border-radius: 50%; object-fit: cover; }
.azimut-chat header h2 { margin: 0; font: 800 .95rem/1.4 var(--font); }
.azimut-chat header p { margin: 0; font-size: .875rem; color: #dce0df; }
.azimut-chat header button { margin-inline-start: auto; color: inherit; border: 0; background: transparent; font-size: 1.5rem; }
.azimut-chat button { min-height: 2.75rem; }
.azimut-chat-messages { overflow: auto; overscroll-behavior: contain; padding: .75rem 1rem; font-size: 1rem; }
.azimut-chat-messages p { margin: 0 0 .65rem; padding: .6rem .75rem; border-radius: .5rem; overflow-wrap: anywhere; line-height: 1.5; white-space: pre-line; }
.azimut-chat-reply { background: #f0f3f4; }
.azimut-chat-messages .azimut-chat-question { background: #101820; color: white; margin-inline-start: 1.5rem; }
.azimut-chat-reply a { display: block; margin-top: .35rem; color: #173e65; text-decoration: underline; font-weight: 700; }
.azimut-chat-topics { display: flex; flex-wrap: wrap; gap: .25rem; padding: 0 1rem .5rem; }
.azimut-chat-topics button { border: 1px solid #dce0df; background: white; border-radius: .5rem; padding: .2rem .5rem; font-size: .875rem; }
.azimut-chat-form { padding: .6rem 1rem 1rem; border-top: 1px solid #dce0df; }
.azimut-chat-form label { display: block; margin-bottom: .25rem; font-size: .875rem; font-weight: 800; }
.azimut-chat-form div { display: flex; gap: .5rem; }
.azimut-chat-form input { min-width: 0; flex: 1; padding: .35rem .5rem; border: 1px solid #647078; border-radius: .35rem; font-size: 1rem; }
.azimut-chat-form button { background: #ad2721; color: white; border: 0; border-radius: .35rem; padding: 0 .7rem; font-weight: 800; }
