/* Cursor-like messages: full-width user prompt shell; assistant on-page */
.ws-thread #thread {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.ws-msg {
  margin: 0 0 18px;
  animation: up 0.25s both;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.ws-msg-user {
  display: block;
}
.ws-user-bubble {
  width: 100%;
  box-sizing: border-box;
  padding: 12px var(--ws-text-inset, 18px);
  border-radius: 16px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg2) 82%, var(--card));
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  text-align: left;
}.ws-msg-assistant .ws-page {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  /* padding set on .cmsg.ws-msg-assistant .ws-page (higher specificity) */
  overflow-wrap: break-word;
  word-break: break-word;
  font-size: var(--t-md);
  line-height: 1.65;
  color: var(--ink);
}
/* Thread Rock projections — on-page (not card surfaces). */
.ws-msg-assistant .dcards {
  gap: 16px;
  margin: 0 0 12px;
}
.ws-msg-assistant .rcpt,
.ws-msg-assistant .rcpt.show {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 8px 0 0;
  margin-top: 8px;
}.ws-msg-assistant .ws-page .prose {
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 400;
  font-size: var(--t-md);
  line-height: 1.65;
  color: var(--ink);
  max-width: 100%;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}
.ws-msg-assistant .ws-page .prose p {
  margin: 0 0 0.85em;
}
.ws-msg-assistant .ws-page .prose p:last-child {
  margin-bottom: 0;
}
.ws-msg-assistant .ws-page .prose ul,
.ws-msg-assistant .ws-page .prose ol {
  margin: 0.35em 0 0.75em;
  padding-left: 1.35em;
  max-width: 100%;
  box-sizing: border-box;
}
.ws-msg-assistant .ws-page .prose li {
  margin: 0.2em 0;
}
.ws-msg-assistant .ws-page .prose li + li {
  margin-top: 0.45em;
}
.ws-msg-assistant .ws-page .draft {
  border: 1.5px dashed var(--line);
  background: var(--bg);
  border-radius: var(--r-card);
  padding: 12px 14px;
  margin: 10px 0;
  white-space: pre-wrap;
  color: var(--ink2);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: var(--t-md);
}
.ws-msg-assistant .ws-page .fchips {
  margin-top: 14px;
}
.ws-msg-assistant .ws-page .dcards {
  margin-bottom: 12px;
}
.ws-msg-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 10px;
  min-height: 28px;
  opacity: 0;
  transition: opacity 0.15s;
}
.ws-msg-assistant:hover .ws-msg-foot {
  opacity: 1;
}
#wsChatCol .ws-msg-foot{display:none}
#wsChatCol .ws-ask-bubble[data-bubble="ask"]{
  align-self:flex-start;
  max-width:88%;
  padding:var(--s-2) var(--s-3);
  border-radius:var(--r-card);
  font-size:var(--t-md);
  line-height:1.5;
  background:var(--card);
  border:1px solid var(--line);
  color:var(--ink2);
}
.ws-msg-foot-btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ws-msg-foot-btn:hover {
  background: var(--hover);
  color: var(--ink2);
}
.ws-composer {
  position: sticky;
  bottom: 0;
  flex-shrink: 0;
  z-index: 5;
  width: 100%;
  padding: 12px 0 calc(14px + env(safe-area-inset-bottom) + var(--vv-bottom-inset, 0px));
  background: linear-gradient(180deg, transparent, var(--bg) 36%);
}
@media (max-width: 560px) {
  .ws-composer {
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px) + var(--vv-bottom-inset, 0px));
  }
  .ws-stage {
    scroll-padding-bottom: calc(200px + env(safe-area-inset-bottom, 0px) + var(--vv-bottom-inset, 0px));
  }
  .ws-stage:not(.is-empty) .ws-thread {
    padding-bottom: calc(180px + env(safe-area-inset-bottom, 0px) + var(--vv-bottom-inset, 0px));
  }
  .ws-center {
    padding-inline: 12px;
  }
}

.ws-ctx {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.ws-ctx-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink2);
}
.ws-ctx-chip.mode {
  border-color: color-mix(in srgb,var(--ember) 8%,transparent);
  background: color-mix(in srgb,var(--ember) 8%,transparent);
  color: var(--ember);
}
.ws-ctx-chip button {
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  opacity: 0.7;
}
.ws-ctx-chip button:hover { opacity: 1; }

