.atlas-artifact {
  background: var(--surface-2); border: 1px solid var(--border-2);
  border-radius: 8px; margin: 8px 0; overflow: hidden;
}
.atlas-artifact-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; background: var(--surface-3, rgba(255,255,255,.03));
  border-bottom: 1px solid var(--border-2); font-size: 11px; font-weight: 600;
  color: var(--text-2); text-transform: uppercase; letter-spacing: .04em;
}
.atlas-artifact-actions { display: flex; gap: 4px; }
.atlas-artifact-actions button {
  padding: 3px 8px; font-size: 10px; background: var(--surface);
  border: 1px solid var(--border-2); border-radius: 3px; color: var(--text-2);
  cursor: pointer; transition: all .12s;
}
.atlas-artifact-actions button:hover { border-color: var(--border); color: var(--text); }
.atlas-artifact-actions button.accent { background: var(--accent-soft); color: var(--accent-2); }
.atlas-artifact-body { padding: 12px; overflow-x: auto; }
.atlas-artifact-body table {
  width: 100%; border-collapse: collapse; font-size: 12px;
}
.atlas-artifact-body th {
  background: var(--surface-3, rgba(255,255,255,.04));
  padding: 6px 10px; text-align: left; font-weight: 600; font-size: 11px;
  border-bottom: 2px solid var(--border-2); color: var(--text-2);
}
.atlas-artifact-body td {
  padding: 6px 10px; border-bottom: 1px solid var(--border-2);
  vertical-align: top; line-height: 1.45;
}
.atlas-artifact-body tr:hover td { background: rgba(255,255,255,.02); }
.artifact-msg { padding: 0 8px; }
.artifact-strong td { color: #4a4; }
.artifact-weak td { color: #a44; opacity: .8; }

/* ─── TIMELINE ──────────────────────────────────────────────────────────── */
.artifact-timeline { padding: 4px 0; }
.artifact-timeline-item {
  display: flex; gap: 12px; padding: 8px 0;
  border-left: 2px solid var(--accent, #9a2a2a); margin-left: 8px; padding-left: 16px;
  position: relative;
}
.artifact-timeline-item::before {
  content: ''; position: absolute; left: -5px; top: 12px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent, #9a2a2a);
}
.artifact-timeline-date {
  min-width: 80px; font-size: 11px; color: var(--text-3);
  font-weight: 600; white-space: nowrap;
}
.artifact-timeline-content { flex: 1; }
.artifact-timeline-content p { margin: 4px 0 0; font-size: 12px; color: var(--text-2); }

/* ─── DOC SUMMARY / PETITION ────────────────────────────────────────────── */
.artifact-field { margin: 6px 0; font-size: 12px; line-height: 1.5; }
.artifact-field ul { margin: 4px 0 0 16px; padding: 0; }
.artifact-field li { margin: 2px 0; }
.artifact-section { margin: 8px 0; }
.artifact-section-heading {
  font-weight: 700; font-size: 12px; color: var(--text-2);
  text-transform: uppercase; margin-bottom: 4px;
}

/* ─── AGENT/MCP STUDIO ──────────────────────────────────────────────────── */
.agent-studio { padding: 4px 0; }
.agent-studio-section { margin-bottom: 12px; }
.agent-studio-section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 10px; font-size: 11px; font-weight: 700;
  color: var(--text-2); text-transform: uppercase; letter-spacing: .04em;
  border-bottom: 1px solid var(--border-2);
}
.agent-studio-add-btn {
  padding: 2px 8px; font-size: 10px; background: var(--accent-soft);
  border: 1px solid var(--border-2); border-radius: 3px;
  color: var(--accent-2); cursor: pointer; transition: all .12s;
}
.agent-studio-add-btn:hover { background: var(--accent); color: #fff; }
.agent-studio-tool-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-bottom: 1px solid var(--border-2, rgba(255,255,255,.06));
  transition: background .1s;
}
.agent-studio-tool-row:hover { background: rgba(255,255,255,.03); }
.agent-studio-tool-icon { font-size: 16px; min-width: 24px; text-align: center; }
.agent-studio-tool-info { flex: 1; min-width: 0; }
.agent-studio-tool-name { font-size: 12px; font-weight: 600; color: var(--text); }
.agent-studio-tool-desc { font-size: 10px; color: var(--text-3); margin-top: 1px; }
.agent-studio-badge {
  padding: 1px 6px; font-size: 9px; border-radius: 3px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .03em; white-space: nowrap;
}
.agent-studio-badge.core { background: rgba(154,42,42,.15); color: var(--accent-2, #c44); }
.agent-studio-badge.active { background: rgba(42,154,42,.15); color: #4a4; }
.agent-studio-badge.inactive { background: rgba(255,255,255,.06); color: var(--text-3); }
.agent-studio-tool-actions { display: flex; gap: 2px; }
.agent-studio-tool-actions button {
  padding: 2px 6px; font-size: 11px; background: transparent;
  border: 1px solid var(--border-2); border-radius: 3px;
  color: var(--text-3); cursor: pointer; transition: all .12s;
}
.agent-studio-tool-actions button:hover { border-color: var(--border); color: var(--text); }
.agent-studio-empty {
  padding: 12px 10px; font-size: 11px; color: var(--text-3);
