/* Artifacts pane (the detail panel's "artifacts-list" view) + the generic
   artifact card it lists, plus the chat's floating artifacts toggle. */

.sg-detail-panel__artifacts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sg-detail-panel__artifacts-empty {
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.sg-artifact-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg-secondary);
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.sg-artifact-card:hover,
.sg-artifact-card:focus-visible {
  background: var(--color-sidebar-hover);
  border-color: var(--color-primary);
  outline: none;
}

.sg-artifact-card__icon {
  display: flex;
  flex-shrink: 0;
  color: var(--color-primary);
}

.sg-artifact-card__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sg-artifact-card__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sg-artifact-card__subtitle {
  font-size: 11px;
  color: var(--color-text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Expanded tweet view in the right detail panel. */
.sg-detail-panel__social-post {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 16px;
  background: var(--color-bg-secondary);
}

.sg-detail-panel__social-post-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.sg-detail-panel__social-post-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.sg-detail-panel__social-post-name {
  font-weight: 600;
  color: var(--color-text);
}

.sg-detail-panel__social-post-body {
  white-space: pre-wrap;
  color: var(--color-text);
  line-height: 1.5;
  margin-bottom: 12px;
}

.sg-detail-panel__social-post-link-placeholder {
  color: var(--color-text-secondary);
  font-style: italic;
  word-break: break-all;
}
