@charset "UTF-8";
/**
 * Standalone chat message styles for surfaces outside the app shell (e.g. homepage).
 * App shell continues to get these via main.scss @use of _agent-chat-message.scss.
 */
.agent-chat-message {
  display: flex;
  flex-direction: column;
  margin: 0 0 26px;
  gap: 4px;
}

.agent-chat-message--user {
  align-items: flex-end;
}

.agent-chat-message--assistant {
  align-items: flex-start;
}

.agent-chat-message__content {
  max-width: min(88%, 680px);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.agent-chat-message__footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  max-width: min(88%, 680px);
}

.agent-chat-message--user .agent-chat-message__footer {
  align-items: flex-end;
}

.agent-chat-message__footer--has-sources {
  width: 100%;
}

.agent-chat-message__footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2px 8px;
  width: auto;
  max-width: 100%;
}

.agent-chat-message__footer--has-sources .agent-chat-message__footer-bar {
  width: 100%;
}

.agent-chat-message__actions {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 28px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.agent-chat-message--live .agent-chat-message__actions {
  display: none !important;
}

.agent-chat-message:hover .agent-chat-message__actions,
.agent-chat-message:focus-within .agent-chat-message__actions,
.agent-chat-message__actions--visible,
.agent-chat-message__footer--has-sources .agent-chat-message__actions {
  opacity: 1;
}

.agent-chat-message__copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.agent-chat-message__copy:hover {
  background: #eef1f4;
  color: var(--text);
}

.agent-chat-message__copy:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.agent-chat-message__copy--done {
  color: var(--primary);
}

.agent-chat-message__sources {
  flex: 1 1 12rem;
  min-width: 0;
  max-width: 100%;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.agent-chat-message__sources--pending {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  font-style: italic;
  font-weight: 500;
}

.agent-chat-message__sources-summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  list-style: none;
  cursor: pointer;
  user-select: none;
  color: var(--muted);
  font-weight: 600;
}

.agent-chat-message__sources-summary::-webkit-details-marker {
  display: none;
}

.agent-chat-message__sources-summary::before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 4px 0 4px 6px;
  border-color: transparent transparent transparent currentColor;
  opacity: 0.75;
  transition: transform 0.15s ease;
}

.agent-chat-message__sources[open] > .agent-chat-message__sources-summary::before {
  transform: rotate(90deg);
}

.agent-chat-message__sources-summary:hover {
  color: var(--text);
}

.agent-chat-message__sources-list {
  margin: 4px 0 0;
  padding: 0 0 0 1.15em;
  color: var(--text);
}

.agent-chat-message__sources-list li + li {
  margin-top: 0.35em;
}

.agent-chat-message__sources-list a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.agent-chat-message__sources-meta {
  margin-left: 0.4em;
  color: var(--muted);
  font-size: 0.92em;
  white-space: nowrap;
}

.agent-chat-message__sources-meta::before {
  content: "·";
  margin-right: 0.35em;
}

@media (hover: none) {
  .agent-chat-message__actions {
    opacity: 1;
  }
}
.agent-chat-message__content--md {
  white-space: normal;
}

.agent-chat-message__content--md p {
  margin: 0 0 0.8em;
}

.agent-chat-message__content--md p:last-child {
  margin-bottom: 0;
}

.agent-chat-message__content--md ol,
.agent-chat-message__content--md ul {
  margin: 0 0 0.8em;
  padding-left: 1.35em;
}

.agent-chat-message__content--md li + li {
  margin-top: 0.35em;
}

.agent-chat-message__content--md strong {
  font-weight: 600;
}

.agent-chat-message__content--md em {
  font-style: italic;
}

.agent-chat-message__content--md code {
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: #eef1f4;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.agent-chat-message__content--md pre {
  margin: 0 0 0.8em;
  padding: 12px 14px;
  overflow-x: auto;
  border-radius: 10px;
  background: #f4f6f8;
}

.agent-chat-message__content--md pre code {
  padding: 0;
  background: transparent;
  font-size: 0.88em;
}

.agent-chat-message__content--md h1,
.agent-chat-message__content--md h2,
.agent-chat-message__content--md h3,
.agent-chat-message__content--md h4,
.agent-chat-message__content--md h5,
.agent-chat-message__content--md h6 {
  margin: 0 0 0.55em;
  font-size: 1em;
  font-weight: 600;
  line-height: 1.35;
}

.agent-chat-message__content--md a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.agent-chat-message--user .agent-chat-message__content {
  padding: 10px 15px;
  border-radius: 18px 18px 5px 18px;
  background: #eef1f4;
  line-height: 1.5;
}

.agent-chat-message--assistant {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.agent-chat-message__live,
.agent-chat-activity {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  width: min(88%, 680px);
  max-width: 100%;
  box-sizing: border-box;
  color: var(--muted);
}

.agent-chat-activity__mark {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  overflow: visible;
}

.agent-chat-activity__icon {
  display: block;
  width: 32px;
  height: 32px;
  border: 0;
  pointer-events: none;
}

.agent-chat-activity__text {
  min-height: 1.35em;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

.agent-chat-activity__status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.agent-chat-message__content--error {
  color: var(--danger);
}

.chat-message-scope {
  --muted: #64748b;
  --text: #0f172a;
  --primary: #007AFF;
  --danger: #e03131;
}

/*# sourceMappingURL=chat-message.css.map */
