 /* ============================================================
   assistant-enhancements.css
   Small, additive layer on top of styles.css:
   - dismissible suggestion chips
   - always-visible "copy" button on Connor's answers (mobile too)
   - slightly denser, more "premium" type scale in the chat panel
   Loaded after styles.css, so these rules simply refine it.
============================================================ */

/* ---------- tighter, premium type scale in the chat panel ---------- */
.assistant-popup .msgs {
  font-size: 13.5px;
  line-height: 1.55;
}

.assistant-popup .bub {
  font-size: 13.5px;
  line-height: 1.55;
  letter-spacing: 0.1px;
}

.assistant-popup .bub h4 {
  font-size: 13px;
}

.assistant-popup .assistant-title {
  font-size: 13.5px;
}

.assistant-popup .assistant-title i {
  opacity: .5;
  padding: 0 2px;
}

.assistant-popup #cin {
  font-size: 13.5px;
}

.assistant-popup .sugg-row button {
  font-size: 12px;
}

/* ---------- copy button on assistant answers ---------- */
/* sits as a sibling under the bubble, not inside it, so streamed
   token updates (which replace .bub's innerHTML) never remove it */
.msg.ai {
  display: flex;
  flex-direction: column;
}

.bub-copy {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.045);
  color: var(--txt-3, #9aa0ac);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.bub-copy i {
  font-size: 12px;
  line-height: 1;
}

.bub-copy span {
  transform: translateY(0.5px);
}

.bub-copy:hover,
.bub-copy:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
}

.bub-copy.done {
  color: var(--good, #4ade80);
  border-color: var(--good, #4ade80);
  background: rgba(74, 222, 128, 0.08);
}

/* keep it fully visible on touch devices (no hover state to reveal it) */
@media (hover: none) and (pointer: coarse) {
  .bub-copy {
    padding: 5px 10px;
    font-size: 11.5px;
  }
}

/* ---------- dismissible quick-start suggestions ---------- */
.sugg {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding-right: 26px;
  transition: opacity 0.18s ease, max-height 0.22s ease, margin 0.22s ease;
}

.sugg-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}

.sugg-close {
  position: absolute;
  top: 13%;
  right: 2%;
  width: 30px;
  height: 30px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--txt-3, #9aa0ac);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, color 0.15s ease;
}

.sugg-close i {
  font-size: 20px;
}

.sugg-close:hover,
.sugg-close:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

#absol1 {
  rotate: 15deg;
  position: absolute;
  filter: blur(2px);
  right: 8%;
  top: 11%;
}

#absol1 img {
  width: 100px;
}

#absol2 {
  rotate: -15deg;
  position: absolute;
  filter: blur(2px);
  left: 1%;
  bottom: -2%;
}

#absol2 img {
  width: 150px;
}



/* wider tap target on touch devices without inflating the visual size */
@media (hover: none) and (pointer: coarse) {
  .sugg-close {
    width: 26px;
    height: 26px;
  }
}

.sugg.is-hidden {
  opacity: 0;
  max-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  pointer-events: none;
}