/* One row of the queue: a divider, as in every other list of the app, instead of a bare stack. */
.chat-lc-outbox li + li {
  border-top: 1px solid color-mix(in srgb, var(--lc-edge) 45%, transparent);
}

.chat-lc-queue-dialog .lc-modal-tool {
  min-height: 30px;
  border: 0;
  border-radius: var(--ds-radius-lg);
  background: var(--lc-well);
  color: var(--lc-text);
}

.chat-lc-queue-dialog .lc-modal-tool:hover:not(:disabled) {
  background: var(--lc-well-hover);
}

.chat-lc-outbox {
  margin: 0;
  padding: 0;
  color: var(--lc-text);
}

.chat-lc-outbox ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chat-lc-outbox li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 0;
}

.chat-lc-outbox li > .lc-icon {
  width: 21px;
  height: 21px;
  color: var(--lc-accent);
}

.chat-lc-outbox li > .chat-lc-outbox-type {
  animation: none;
}

.chat-lc-outbox li.is-failed > .lc-icon {
  color: var(--ds-red);
  animation: none;
}

.chat-lc-outbox-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.chat-lc-outbox-copy strong {
  overflow: hidden;
  color: var(--lc-text);
  font: 700 var(--ds-fs-label)/1.35 var(--lc-font);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-lc-outbox-copy span {
  overflow: hidden;
  color: var(--lc-muted);
  font-size: var(--ds-fs-micro);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-lc-outbox-progress {
  grid-column: 2 / 3;
  width: 100%;
  height: 4px;
  accent-color: var(--lc-accent);
}

.chat-lc-outbox button {
  min-height: 34px;
  padding: 6px 11px;
  border: 0;
  border-radius: var(--ds-radius-lg);
  background: var(--lc-well);
  color: var(--lc-text);
  cursor: pointer;
  font: 600 var(--ds-fs-micro)/1 var(--lc-font);
}

.chat-lc-outbox button:hover {
  background: var(--lc-well-hover);
}

.chat-lc-outbox button:focus-visible {
  outline: 2px solid var(--lc-accent);
  outline-offset: 2px;
}

@keyframes lc-queue-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .chat-lc-outbox li > .lc-icon { animation: none; }
}
