
/* ARK UI V12 */

/* Chon tat ca / Bo chon tat ca */

.ark-bulk-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;

  margin: 10px 0 12px;
  min-height: 32px;
}

.ark-bulk-bar .ark-bulk-count {
  font-size: 12px;
  color: var(--muted, #aaa);
  margin-left: 2px;
}

.ark-bulk-bar button {
  min-height: 30px;
  padding: 5px 10px;

  border: 1px solid var(--line, #393436);

  color: var(--ink, #f4f1f1);
  background: var(--raise, #222226);

  border-radius: 9px;
  cursor: pointer;

  font: inherit;
  font-size: 12px;
}

.ark-bulk-bar button:hover {
  border-color: var(--accent, #e11d2e);
}

.ark-bulk-bar button:focus-visible {
  outline: 2px solid var(--accent, #e11d2e);
  outline-offset: 2px;
}

.ark-bulk-group {
  margin: 6px 0 8px;
  gap: 6px;
}

#agTools .tgroup {
  min-width: 0;
}

#agTools .tgroup .ark-bulk-bar button {
  font-size: 11px;
}

/* An tuy chon Web va Auto Review
   nhung van giu input cho JS su dung */

label:has(> #webOn),
label:has(> #autoReview) {
  display: none !important;
}

/* =======================================
   SO SANH HAI MODEL
   ======================================= */

#chatLog .cmprow {
  width: 100%;
  max-width: 100%;

  box-sizing: border-box;

  display: grid !important;

  grid-template-columns:
    repeat(2, minmax(0, 1fr)) !important;

  align-items: stretch;

  gap: 12px;
  margin: 12px 0;
}

/* Hai khung tra loi bang nhau */

#chatLog .cmprow > .msg {
  min-width: 0 !important;
  width: 100% !important;
  max-width: none !important;

  margin: 0 !important;

  box-sizing: border-box;
  overflow-wrap: anywhere;
}

#chatLog .cmprow > .msg .md {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Code, bang va anh khong tran cot */

#chatLog .cmprow > .msg :is(
  pre,
  .cb,
  .codeblock,
  table
) {
  max-width: 100%;
  overflow-x: auto;
}

#chatLog .cmprow > .msg img {
  max-width: 100%;
  height: auto;
}

/* Ten model hien trong tung khung */

#chatLog .cmprow > .msg .mtag {
  position: sticky;
  top: 0;
  z-index: 1;

  background: var(--surface, #19191c);

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Man hinh hep:
   xep doc de khong cat noi dung */

@media (max-width: 760px) {
  #chatLog .cmprow {
    grid-template-columns:
      minmax(0, 1fr) !important;

    gap: 10px;
  }
}
