/* ==========================================================
   AI Assistant page — builds on styles.css and feature.css
   ========================================================== */

/* a chat between a user and UlapBAI */
.chat {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.bubble {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.45;
}

.bubble--me {
  justify-self: end;
  border-bottom-right-radius: 4px;
  background: var(--dark);
  color: #fff;
}

.bubble--ai {
  justify-self: start;
  border-bottom-left-radius: 4px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
}

.bubble--ai .tbl {
  margin-top: 8px;
}

.bubble--ai .tbl td {
  padding: 6px 0;
}

.ask {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
}

.ask b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
}

.file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
}

.file i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: #1f7a45;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

@media (max-width: 600px) {
  .bubble {
    max-width: 100%;
  }
}
