.app72-chat-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1500;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  font-size: 14px;
  color: #091022;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  padding: 13px 18px;
  box-shadow: 0 10px 30px rgba(67, 109, 255, 0.35);
}

.app72-chat-launcher:hover {
  transform: translateY(-1px);
}

body.app72-chat-on .floating-max {
  display: none !important;
}

.app72-chat-panel {
  position: fixed;
  z-index: 1600;
  display: none;
  flex-direction: column;
  background: #10152a;
  color: var(--text);
  border: 1px solid var(--stroke);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.app72-chat-panel.open {
  display: flex;
}

@media (min-width: 861px) {
  .app72-chat-panel {
    right: 18px;
    bottom: 72px;
    width: 380px;
    height: min(640px, calc(100vh - 110px));
    border-radius: 18px;
  }
}

@media (max-width: 860px) {
  .app72-chat-launcher {
    right: 12px;
    bottom: 72px;
  }

  .app72-chat-panel {
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: 0;
  }

  body.app72-chat-open {
    overflow: hidden;
  }
}

.app72-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--stroke);
  background: rgba(21, 25, 45, 0.9);
}

.app72-chat-head strong {
  display: block;
  font-size: 14px;
}

.app72-chat-head span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.app72-chat-head button {
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.app72-chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app72-chat-msg {
  max-width: 92%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.app72-chat-msg.bot {
  align-self: flex-start;
  background: rgba(124, 131, 255, 0.14);
  border: 1px solid var(--stroke);
}

.app72-chat-msg.user {
  align-self: flex-end;
  background: rgba(100, 246, 211, 0.16);
}

.app72-chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 14px 8px;
}

.app72-chat-chips button {
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--stroke);
  background: rgba(21, 25, 45, 0.9);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}

.app72-chat-chips button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.app72-chat-form {
  display: flex;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--stroke);
}

.app72-chat-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--stroke);
  background: #090b14;
  color: var(--text);
  border-radius: 12px;
  padding: 12px 12px;
  font: inherit;
  font-size: 16px;
}

.app72-chat-form button[type="submit"] {
  flex: 0 0 auto;
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
  color: #091022;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
