/* Shared Actax agent action-card styles (shell chat + Host skins). */
.actax-chat-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.actax-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  color: #0f172a;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}

.actax-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.actax-card__agent {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.actax-card__title {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 600;
}

.actax-badge {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.actax-badge--ok { background: #dcfce7; color: #166534; }
.actax-badge--info { background: #e0f2fe; color: #075985; }
.actax-badge--warn { background: #fef3c7; color: #92400e; }
.actax-badge--fail { background: #fee2e2; color: #991b1b; }

.actax-card__summary {
  margin: 0 0 8px;
  color: #334155;
}

.actax-card__meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin: 0 0 10px;
  padding: 8px;
  background: #f8fafc;
  border-radius: 8px;
}

.actax-card__meta dt {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

.actax-card__meta dd {
  margin: 1px 0 0;
  color: #0f172a;
}

.actax-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.actax-btn {
  border: 0;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.actax-btn--primary { background: #1d4ed8; color: #ffffff; }
.actax-btn--secondary { background: #e2e8f0; color: #0f172a; }

.actax-trace {
  margin-top: 8px;
  border-top: 1px solid #f1f5f9;
  padding-top: 6px;
  font-size: 11px;
  color: #64748b;
}

.actax-trace > summary {
  cursor: pointer;
  user-select: none;
}

/* Collapsed by default — payload only visible when toggled open */
.actax-trace:not([open]) pre {
  display: none;
}

.actax-trace pre {
  margin: 6px 0 0;
  padding: 8px;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 6px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 180px;
}
