/* #region zone:monitor.css.ops-chat-media — แชท Agent: ปุ่มแนบรูป พรีวิว รูปในฟอง สถานะสด และป้ายคำตอบไม่ครบ */
/* Row 2 of the composer tools: [attach][cost estimate ...] and the send button on the right. */
.ops2-extras {
  grid-column: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.ops2-extras .ops2-cost {
  flex: 1 1 auto;
  min-width: 0;
}
.ops2-attach.has-image {
  color: var(--accent-text);
  background: var(--accent-soft);
}
.ops2-preview {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-width: 0;
  padding: var(--s-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  background: var(--surface-2);
}
.ops2-preview[hidden] {
  display: none;
}
.ops2-thumb {
  flex: none;
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-soft);
  background: var(--surface-3);
}
.ops2-preview-note {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--text-2);
  font-size: var(--fs-xs);
}
.ops2-preview .btn {
  flex: none;
}
.ops-chat2.is-dragover,
.ops2-composer.is-dragover {
  outline: 2px dashed var(--accent);
  outline-offset: calc(var(--s-1) * -1);
  border-radius: var(--r-md);
  background: var(--accent-soft);
}
.ops2-picture {
  display: block;
  max-width: min(100%, 320px);
  max-height: 240px;
  object-fit: contain;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-soft);
  background: var(--surface-2);
}
/* Live status line of the pending bubble: what the Agent does now, the step count and the clock. */
.ops2-pending .ops-chat-pending-heading {
  flex-wrap: wrap;
  row-gap: var(--s-1);
}
.ops2-live {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text-1);
  font-weight: var(--fw-medium);
}
.ops2-count {
  flex: none;
  padding: 0 var(--s-2);
  border-radius: var(--r-full);
  background: var(--surface-3);
  color: var(--text-2);
  font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
}
.ops2-pending.is-typing .ops2-live {
  color: var(--accent-text);
}
/* The answer is incomplete (tool budget spent): a banner next to the text, not only words inside it. */
.ops2-partial {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  margin: 0;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm);
  background: var(--warning-soft);
  color: var(--warning-fg);
  font-size: var(--fs-sm);
}
.ops2-partial-glyph {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
}
@media (max-width: 480px) {
  .ops2-thumb {
    width: 44px;
    height: 44px;
  }
  .ops2-picture {
    max-width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ops2-pending .ops-chat-typing > span {
    animation: none;
    opacity: 1;
  }
}
/* #endregion */
