

.ai-chat__foot.ai-foot2 {
  display: block;
  padding: 10px 12px 12px;
  background: none;
  border-top: 1px solid rgba(160, 200, 255, .10);
  border-radius: 0 0 24px 24px;
}

.ai-foot2 .ai-ex {
  position: relative;
  background: rgba(6, 10, 22, .72);
  border: 1px solid rgba(160, 200, 255, .16);
  border-radius: 22px;
  transition: border-radius .25s ease, border-color .2s ease, box-shadow .2s ease;
}

.ai-foot2 .ai-input {
  display: block;
  width: 100%;
  height: 42px;
  min-height: 0;
  max-height: 120px;
  margin: 0;
  padding: 11px 50px 11px 16px;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: rgba(255, 255, 255, .94);
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.45;
  resize: none;
  overflow: hidden;
  transition: height .25s ease;
}

.ai-foot2 .ai-input:focus {
  border: 0;
  outline: 0;
}

.ai-foot2 .ai-input::placeholder {
  color: rgba(255, 255, 255, .36);
}

.ai-foot2 .ai-send {
  position: absolute;
  right: 5px;
  bottom: 4px;
  width: 34px;
  height: 34px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .07);
  color: rgba(255, 255, 255, .32);
  box-shadow: none;
  font-size: 0;
  cursor: default;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .14s ease, opacity .18s ease;
}

.ai-foot2 .ai-send svg {
  width: 17px;
  height: 17px;
}

.ai-foot2 .ai-send:hover {
  transform: none;
  filter: none;
}

.ai-foot2.has-text .ai-send {
  cursor: pointer;
  background: linear-gradient(135deg, #6c92c2, #d4e5fb);
  color: #0d1a2e;
  box-shadow: 0 6px 20px rgba(108, 146, 194, .45), inset 0 1px 0 rgba(255, 255, 255, .5);
}

.ai-foot2.has-text .ai-send:hover {
  transform: translateY(-1px);
}

.ai-foot2.busy .ai-send {
  opacity: .45;
  pointer-events: none;
}


.ai-foot2 .ai-ex__more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .25s ease;
}

.ai-foot2 .ai-ex__more > div {
  min-height: 0;
  overflow: hidden;
}

.ai-foot2 .ai-ex__tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  padding: 0 46px 8px 8px;
}

.ai-foot2 .ai-ex__tb {
  height: 30px;
  padding: 0 9px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: rgba(255, 255, 255, .55);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background .14s ease, color .14s ease;
}

.ai-foot2 .ai-ex__tb:hover {
  background: rgba(156, 194, 240, .10);
  color: #9cc2f0;
}

.ai-foot2 .ai-ex__cnt {
  margin-left: auto;
  padding-right: 6px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, .32);
  font-variant-numeric: tabular-nums;
}

.ai-foot2 .ai-ex__cnt.warn {
  color: #f0a44a;
}


.ai-foot2.open .ai-ex {
  border-radius: 16px;
  border-color: rgba(156, 194, 240, .32);
  background: rgba(10, 16, 30, .82);
}

.ai-foot2.open .ai-input {
  height: 66px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(160, 200, 255, .25) transparent;
}

.ai-foot2.open .ai-ex__more {
  grid-template-rows: 1fr;
}


.ai-chat .ai-msg.user {
  background: linear-gradient(135deg, #7da2d1, #cfe1f8);
  border-color: transparent;
  color: #0d1a2e;
}

.ai-chat .ai-msg.user::after {
  background: #a9c5ea;
}

.ai-chat .ai-msg.user .ai-from__name,
.ai-chat .ai-msg.user .ai-from__time {
  color: #0d1a2e;
  opacity: .55;
}

.ai-chat .ai-typing span {
  background: #9cc2f0;
}


.ai-chat .ai-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 2px 0 12px;
}

.ai-chat .ai-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 10px;
  border-radius: 14px;
  font-size: 12.5px;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  text-wrap: balance;
}

.ai-chat .ai-chip:hover {
  border-color: rgba(156, 194, 240, .45);
  background: rgba(156, 194, 240, .10);
}

@media (max-width: 480px) {
  
  .ai-foot2 .ai-input {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-foot2 .ai-ex,
  .ai-foot2 .ai-input,
  .ai-foot2 .ai-ex__more {
    transition: none;
  }
}
