탐색

v2.1.0
데이터 표시

트레이스

에이전트나 작업이 수행한 내용을 단계마다 간결한 한 줄로 보여 주며, 세부 내용이 있는 줄은 펼쳐서 확인할 수 있습니다.

이 페이지의 내용

트레이스는 에이전트나 작업이 무엇을 했는지 단계별로 보여 줍니다. 무엇을 생각하고, 검색하고, 읽고, 실행했는지 확인할 수 있습니다. 각 단계는 간결한 한 줄로 표시되며, 같은 열에 놓인 마커는 아주 가는 선으로 이어집니다. 세부 내용이 있는 단계는 브라우저 기본 <details> 요소를 사용하므로 스크립트 없이도 해당 줄에서 세부 내용을 펼칠 수 있습니다. 세부 내용이 없는 단계는 일반 줄로 표시됩니다.

트레이스

<div class="card max-w(440) mx-auto">  <div class="trace">    <details class="trace-step">      <summary class="trace-summary">        <span class="trace-marker"></span>Thought about the migration<span class="trace-meta">8s</span><svg class="icon trace-chevron" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">          <path d="M6 3.5L10.3586 7.8586A0.2 0.2 0 0 1 10.3586 8.1414L6 12.5" transform="rotate(90 8 8)" />        </svg>      </summary>      <div class="trace-detail">        The table has two million rows, so the column is added as nullable first and filled in batches.      </div>    </details>    <details class="trace-step" open>      <summary class="trace-summary">        <span class="trace-marker"></span>Searched the codebase<span class="trace-meta">12 files</span><svg class="icon trace-chevron" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">          <path d="M6 3.5L10.3586 7.8586A0.2 0.2 0 0 1 10.3586 8.1414L6 12.5" transform="rotate(90 8 8)" />        </svg>      </summary>      <div class="trace-detail">        <code class="code">orders.status</code> is read in 12 files, 3 of them in the billing service.      </div>    </details>    <div class="trace-step">      <p class="trace-summary">        <span class="trace-marker"></span>Read schema.prisma<span class="trace-meta">0.4s</span>      </p>    </div>    <div class="trace-step" aria-busy="true">      <p class="trace-summary"><span class="trace-marker"></span>Writing the migration</p>    </div>  </div></div>
import ChevronDownIcon from '@master/icons-react/native/16/soft/chevron-down'<div className="card max-w(440) mx-auto">  <div className="trace">    <details className="trace-step">      <summary className="trace-summary">        <span className="trace-marker"></span>Thought about the migration<span className="trace-meta">8s</span><ChevronDownIcon className="icon trace-chevron" />      </summary>      <div className="trace-detail">        The table has two million rows, so the column is added as nullable first and filled in batches.      </div>    </details>    <details className="trace-step" open>      <summary className="trace-summary">        <span className="trace-marker"></span>Searched the codebase<span className="trace-meta">12 files</span><ChevronDownIcon className="icon trace-chevron" />      </summary>      <div className="trace-detail">        <code className="code">orders.status</code> is read in 12 files, 3 of them in the billing service.      </div>    </details>    <div className="trace-step">      <p className="trace-summary">        <span className="trace-marker"></span>Read schema.prisma<span className="trace-meta">0.4s</span>      </p>    </div>    <div className="trace-step" aria-busy="true">      <p className="trace-summary"><span className="trace-marker"></span>Writing the migration</p>    </div>  </div></div>
<script>  import ChevronDownIcon from '@master/icons-svelte/native/16/soft/chevron-down'</script><div class="card max-w(440) mx-auto">  <div class="trace">    <details class="trace-step">      <summary class="trace-summary">        <span class="trace-marker"></span>Thought about the migration<span class="trace-meta">8s</span><ChevronDownIcon class="icon trace-chevron" />      </summary>      <div class="trace-detail">        The table has two million rows, so the column is added as nullable first and filled in batches.      </div>    </details>    <details class="trace-step" open>      <summary class="trace-summary">        <span class="trace-marker"></span>Searched the codebase<span class="trace-meta">12 files</span><ChevronDownIcon class="icon trace-chevron" />      </summary>      <div class="trace-detail">        <code class="code">orders.status</code> is read in 12 files, 3 of them in the billing service.      </div>    </details>    <div class="trace-step">      <p class="trace-summary">        <span class="trace-marker"></span>Read schema.prisma<span class="trace-meta">0.4s</span>      </p>    </div>    <div class="trace-step" aria-busy="true">      <p class="trace-summary"><span class="trace-marker"></span>Writing the migration</p>    </div>  </div></div>
<script setup>import ChevronDownIcon from '@master/icons-vue/native/16/soft/chevron-down'</script><template>  <div class="card max-w(440) mx-auto">    <div class="trace">      <details class="trace-step">        <summary class="trace-summary">          <span class="trace-marker"></span>Thought about the migration<span class="trace-meta">8s</span><ChevronDownIcon class="icon trace-chevron" />        </summary>        <div class="trace-detail">          The table has two million rows, so the column is added as nullable first and filled in batches.        </div>      </details>      <details class="trace-step" open>        <summary class="trace-summary">          <span class="trace-marker"></span>Searched the codebase<span class="trace-meta">12 files</span><ChevronDownIcon class="icon trace-chevron" />        </summary>        <div class="trace-detail">          <code class="code">orders.status</code> is read in 12 files, 3 of them in the billing service.        </div>      </details>      <div class="trace-step">        <p class="trace-summary">          <span class="trace-marker"></span>Read schema.prisma<span class="trace-meta">0.4s</span>        </p>      </div>      <div class="trace-step" aria-busy="true">        <p class="trace-summary"><span class="trace-marker"></span>Writing the migration</p>      </div>    </div>  </div></template>

#단계

단계는 trace-summary를 감싸는 trace-step입니다. 한 줄에 마커와 설명을 표시하며, 소요 시간이나 찾은 항목 수처럼 수치로 나타낼 수 있는 정보는 줄 끝에 trace-meta를 추가해 표시할 수 있습니다.

세부 내용이 있는 단계는 <details> 요소로 작성하고, <summary>에 단계 요약을, 그 뒤의 trace-detail에 세부 내용을 넣습니다. 스타일시트는 세부 내용이 있으면 그 줄을 펼치고 접을 수 있게 표시합니다. 설명 뒤에 trace-chevron 아이콘을 넣으세요. 이 아이콘은 단계가 펼쳐져 있는 동안 아래를 가리킵니다. 브라우저가 ::details-content의 전환을 지원하면 세부 내용이 실제 높이까지 부드럽게 펼쳐지고, 그 외에는 즉시 펼쳐집니다. 페이지 내 검색은 다른 <details> 요소에서와 마찬가지로 일치하는 내용이 있는 접힌 단계를 자동으로 펼칩니다.

#마커

비어 있는 trace-marker는 작은 점으로 표시됩니다. 마커에 아이콘을 넣어 단계의 종류를 나타내거나, 단계가 실행 중일 때 spinner-inline이 적용된 스피너를 표시할 수 있습니다.

마커

<div class="card max-w(440) mx-auto">  <div class="trace">    <div class="trace-step">      <p class="trace-summary">        <span class="trace-marker">          <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">            <circle cx="7" cy="7" r="4.5" /><path d="M10.182 10.182L14 14" />          </svg>        </span>Searched for "rate limit"<span class="trace-meta">4 results</span>      </p>    </div>    <div class="trace-step">      <p class="trace-summary">        <span class="trace-marker">          <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">            <path d="M4.5 2L9.0858 2A1 1 0 0 1 9.7929 2.2929L12.2071 4.7071A1 1 0 0 1 12.5 5.4142L12.5 13A1 1 0 0 1 11.5 14L4.5 14A1 1 0 0 1 3.5 13L3.5 3A1 1 0 0 1 4.5 2Z" /><path d="M10 2.5V4.4A0.1 0.1 0 0 0 10.1 4.5H12L12.2409 4.7427A0.9993 0.9993 0 0 1 12.5 5.4142V5.5H10.1Q9.6444 5.5 9.3222 5.1778Q9 4.8556 9 4.4V2A1.1002 1.1002 0 0 1 9.3761 2.0431A1.0001 1.0001 0 0 1 9.7929 2.2929L10 2.5Z" fill="currentColor" stroke="none" fill-rule="evenodd" />          </svg>        </span>Read limits.ts<span class="trace-meta">214 lines</span>      </p>    </div>    <div class="trace-step">      <p class="trace-summary">        <span class="trace-marker">          <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">            <rect x="2" y="3" width="12" height="10" rx="1" /><path d="M4.5 6L6.3586 7.8586A0.2 0.2 0 0 1 6.3586 8.1414L4.5 10" /><path d="M9 10L11.5 10" />          </svg>        </span>Ran the tests<span class="trace-meta">48 passed</span>      </p>    </div>    <div class="trace-step" aria-busy="true">      <p class="trace-summary">        <span class="trace-marker">          <span class="spinner spinner-inline" aria-hidden="true"></span>        </span>Writing the answer      </p>    </div>  </div></div>
import SearchIcon from '@master/icons-react/native/16/soft/search'import FileIcon from '@master/icons-react/native/16/soft/file'import TerminalIcon from '@master/icons-react/native/16/soft/terminal'<div className="card max-w(440) mx-auto">  <div className="trace">    <div className="trace-step">      <p className="trace-summary">        <span className="trace-marker"><SearchIcon className="icon" /></span>Searched for "rate limit"<span className="trace-meta">4 results</span>      </p>    </div>    <div className="trace-step">      <p className="trace-summary">        <span className="trace-marker"><FileIcon className="icon" /></span>Read limits.ts<span className="trace-meta">214 lines</span>      </p>    </div>    <div className="trace-step">      <p className="trace-summary">        <span className="trace-marker"><TerminalIcon className="icon" /></span>Ran the tests<span className="trace-meta">48 passed</span>      </p>    </div>    <div className="trace-step" aria-busy="true">      <p className="trace-summary">        <span className="trace-marker">          <span className="spinner spinner-inline" aria-hidden="true"></span>        </span>Writing the answer      </p>    </div>  </div></div>
<script>  import SearchIcon from '@master/icons-svelte/native/16/soft/search'  import FileIcon from '@master/icons-svelte/native/16/soft/file'  import TerminalIcon from '@master/icons-svelte/native/16/soft/terminal'</script><div class="card max-w(440) mx-auto">  <div class="trace">    <div class="trace-step">      <p class="trace-summary">        <span class="trace-marker"><SearchIcon class="icon" /></span>Searched for "rate limit"<span class="trace-meta">4 results</span>      </p>    </div>    <div class="trace-step">      <p class="trace-summary">        <span class="trace-marker"><FileIcon class="icon" /></span>Read limits.ts<span class="trace-meta">214 lines</span>      </p>    </div>    <div class="trace-step">      <p class="trace-summary">        <span class="trace-marker"><TerminalIcon class="icon" /></span>Ran the tests<span class="trace-meta">48 passed</span>      </p>    </div>    <div class="trace-step" aria-busy="true">      <p class="trace-summary">        <span class="trace-marker">          <span class="spinner spinner-inline" aria-hidden="true"></span>        </span>Writing the answer      </p>    </div>  </div></div>
<script setup>import SearchIcon from '@master/icons-vue/native/16/soft/search'import FileIcon from '@master/icons-vue/native/16/soft/file'import TerminalIcon from '@master/icons-vue/native/16/soft/terminal'</script><template>  <div class="card max-w(440) mx-auto">    <div class="trace">      <div class="trace-step">        <p class="trace-summary">          <span class="trace-marker"><SearchIcon class="icon" /></span>Searched for "rate limit"<span class="trace-meta">4 results</span>        </p>      </div>      <div class="trace-step">        <p class="trace-summary">          <span class="trace-marker"><FileIcon class="icon" /></span>Read limits.ts<span class="trace-meta">214 lines</span>        </p>      </div>      <div class="trace-step">        <p class="trace-summary">          <span class="trace-marker"><TerminalIcon class="icon" /></span>Ran the tests<span class="trace-meta">48 passed</span>        </p>      </div>      <div class="trace-step" aria-busy="true">        <p class="trace-summary">          <span class="trace-marker">            <span class="spinner spinner-inline" aria-hidden="true"></span>          </span>Writing the answer        </p>      </div>    </div>  </div></template>

#실행 중 및 실패 상태

실행 중인 단계에는 aria-busy="true"를 지정합니다. 설명에는 강조 텍스트 색상이 적용되고, 마커가 점으로만 표시된 경우에는 점 주위로 원형 파동이 퍼집니다. 사용자가 동작 줄이기를 설정한 경우에는 점 주위에 움직이지 않는 원형 테두리가 표시됩니다. 단계가 끝나면 이 속성을 제거합니다.

실패한 단계에는 trace-failed 클래스를 적용합니다. 마커와 줄 끝의 수치 정보에는 위험 상태 색상이 적용됩니다. ARIA에는 목록 항목의 실패 상태를 나타내는 방법이 없으므로 클래스를 사용합니다. 색상만으로 실패를 알리지 않도록 단계의 설명이나 세부 내용에 무엇이 실패했는지 텍스트로 적습니다.

실패

<div class="card max-w(440) mx-auto">  <div class="trace">    <div class="trace-step">      <p class="trace-summary">        <span class="trace-marker"></span>Installed dependencies<span class="trace-meta">14s</span>      </p>    </div>    <div class="trace-step">      <p class="trace-summary">        <span class="trace-marker"></span>Compiled 38 routes<span class="trace-meta">48s</span>      </p>    </div>    <details class="trace-step trace-failed" open>      <summary class="trace-summary">        <span class="trace-marker"></span>Ran the test suite<span class="trace-meta">2 failed</span><svg class="icon trace-chevron" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">          <path d="M6 3.5L10.3586 7.8586A0.2 0.2 0 0 1 10.3586 8.1414L6 12.5" transform="rotate(90 8 8)" />        </svg>      </summary>      <div class="trace-detail">        orders.spec.ts expected the status to be "paid" and received "pending", twice.      </div>    </details>  </div></div>
import ChevronDownIcon from '@master/icons-react/native/16/soft/chevron-down'<div className="card max-w(440) mx-auto">  <div className="trace">    <div className="trace-step">      <p className="trace-summary">        <span className="trace-marker"></span>Installed dependencies<span className="trace-meta">14s</span>      </p>    </div>    <div className="trace-step">      <p className="trace-summary">        <span className="trace-marker"></span>Compiled 38 routes<span className="trace-meta">48s</span>      </p>    </div>    <details className="trace-step trace-failed" open>      <summary className="trace-summary">        <span className="trace-marker"></span>Ran the test suite<span className="trace-meta">2 failed</span><ChevronDownIcon className="icon trace-chevron" />      </summary>      <div className="trace-detail">        orders.spec.ts expected the status to be "paid" and received "pending", twice.      </div>    </details>  </div></div>
<script>  import ChevronDownIcon from '@master/icons-svelte/native/16/soft/chevron-down'</script><div class="card max-w(440) mx-auto">  <div class="trace">    <div class="trace-step">      <p class="trace-summary">        <span class="trace-marker"></span>Installed dependencies<span class="trace-meta">14s</span>      </p>    </div>    <div class="trace-step">      <p class="trace-summary">        <span class="trace-marker"></span>Compiled 38 routes<span class="trace-meta">48s</span>      </p>    </div>    <details class="trace-step trace-failed" open>      <summary class="trace-summary">        <span class="trace-marker"></span>Ran the test suite<span class="trace-meta">2 failed</span><ChevronDownIcon class="icon trace-chevron" />      </summary>      <div class="trace-detail">        orders.spec.ts expected the status to be "paid" and received "pending", twice.      </div>    </details>  </div></div>
<script setup>import ChevronDownIcon from '@master/icons-vue/native/16/soft/chevron-down'</script><template>  <div class="card max-w(440) mx-auto">    <div class="trace">      <div class="trace-step">        <p class="trace-summary">          <span class="trace-marker"></span>Installed dependencies<span class="trace-meta">14s</span>        </p>      </div>      <div class="trace-step">        <p class="trace-summary">          <span class="trace-marker"></span>Compiled 38 routes<span class="trace-meta">48s</span>        </p>      </div>      <details class="trace-step trace-failed" open>        <summary class="trace-summary">          <span class="trace-marker"></span>Ran the test suite<span class="trace-meta">2 failed</span><ChevronDownIcon class="icon trace-chevron" />        </summary>        <div class="trace-detail">          orders.spec.ts expected the status to be "paid" and received "pending", twice.        </div>      </details>    </div>  </div></template>

#한 줄

한 단계로 된 트레이스는 어시스턴트가 답변 위에 표시하는 한 줄입니다. 수행한 작업과 소요 시간을 보여 주며, 펼치면 그 작업의 판단 근거를 확인할 수 있습니다.

단일 단계

<div class="trace max-w(440) mx-auto">  <details class="trace-step">    <summary class="trace-summary">      <span class="trace-marker"></span>Thought for 12 seconds<svg class="icon trace-chevron" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">        <path d="M6 3.5L10.3586 7.8586A0.2 0.2 0 0 1 10.3586 8.1414L6 12.5" transform="rotate(90 8 8)" />      </svg>    </summary>    <div class="trace-detail">      The question is about the fallback, not the feature, so the answer starts from a browser without anchor positioning.    </div>  </details></div>
import ChevronDownIcon from '@master/icons-react/native/16/soft/chevron-down'<div className="trace max-w(440) mx-auto">  <details className="trace-step">    <summary className="trace-summary">      <span className="trace-marker"></span>Thought for 12 seconds<ChevronDownIcon className="icon trace-chevron" />    </summary>    <div className="trace-detail">      The question is about the fallback, not the feature, so the answer starts from a browser without anchor positioning.    </div>  </details></div>
<script>  import ChevronDownIcon from '@master/icons-svelte/native/16/soft/chevron-down'</script><div class="trace max-w(440) mx-auto">  <details class="trace-step">    <summary class="trace-summary">      <span class="trace-marker"></span>Thought for 12 seconds<ChevronDownIcon class="icon trace-chevron" />    </summary>    <div class="trace-detail">      The question is about the fallback, not the feature, so the answer starts from a browser without anchor positioning.    </div>  </details></div>
<script setup>import ChevronDownIcon from '@master/icons-vue/native/16/soft/chevron-down'</script><template>  <div class="trace max-w(440) mx-auto">    <details class="trace-step">      <summary class="trace-summary">        <span class="trace-marker"></span>Thought for 12 seconds<ChevronDownIcon class="icon trace-chevron" />      </summary>      <div class="trace-detail">        The question is about the fallback, not the feature, so the answer starts from a browser without anchor positioning.      </div>    </details>  </div></template>

#트레이스, 타임라인, 단계 표시기

트레이스는 작업의 수행 과정을 보여 줍니다. 각 단계는 실행 중이거나 실패한 상태일 수 있습니다. 세부 내용이 있는 단계는 펼쳐서 확인할 수 있습니다. 타임라인은 이벤트와 발생 시각을 기록합니다. 단계 표시기는 사용자가 정해진 순서대로 진행할 단계를 보여 줍니다.

#접근성

  • 펼칠 수 있는 단계는 <details> 요소입니다. 브라우저는 단계의 한 줄에 펼침 컨트롤의 역할과 상태를 부여하고 키보드 조작을 지원합니다.
  • 스타일시트가 그리는 마커는 보조 기술이 읽어 주지 않습니다. 마커 안의 아이콘은 장식용이므로 단계에서 무엇을 했는지 해당 줄에 텍스트로 적습니다.
  • 화면에 표시된 상태에서 단계가 계속 추가되는 트레이스는 aria-live="polite" 속성이 지정된 영역에 배치합니다. 그러면 새 단계가 추가될 때마다 보조 기술이 해당 단계를 알려 줍니다. 실행 중인 단계에 aria-busy를 지정하면 해당 상태를 화면에 표시하고 보조 기술에도 전달할 수 있습니다.
  • 터치 화면에서 각 줄의 높이는 44px입니다.

#클래스

클래스설명
trace단계를 세로로 배치하고 각 단계의 표시점을 가는 선으로 연결합니다
trace-step단계 하나를 나타냅니다. 세부 내용이 있으면 details 요소를, 없으면 아무 블록 요소나 사용하세요
trace-failed실패한 단계입니다. 점이나 아이콘과 행 끝의 상태 정보에 위험 상태용 잉크색을 적용합니다적용할 클래스는 trace-step입니다
trace-summary높이 32px인 단계 행에는 표시점과 텍스트가 있고 끝에는 관련 정보가 표시됩니다. summary에 적용하면 행이 토글로 동작하고 텍스트 뒤에 꺾쇠가 표시됩니다
trace-chevron세부 내용이 있는 단계의 설명 뒤에 있는 꺾쇠 아이콘입니다. 단계가 펼쳐져 있는 동안 아래를 가리킵니다
trace-marker줄 시작의 표식에는 내용이 없으면 점을, 아이콘이 있으면 아이콘을 표시합니다. 단계가 진행 중이면 spinner-inline을 표시합니다.
trace-meta소요 시간이나 검색 결과 수 같은 정보를 행 끝에 고정폭 숫자로 표시합니다.
trace-detail단계의 세부 내용을 행 아래에 표시하고, 왼쪽 가장자리를 행의 텍스트 시작점에 맞춥니다.

#사용자 지정 속성

속성기본값설명
--trace-marker1.25rem표식 열의 너비입니다.

#소스

@master/ui/components/trace.css
/* * Trace: what an agent or a job did, step by step. * Each step is one quiet line with a marker on a column, and a hairline joins the markers. A step that has * something behind it (the query it ran, the lines it read, why it failed) is a native <details>: its line * is the <summary>, with a small chevron after the words, and the detail opens under it to its own height. * A step with nothing behind it is a plain line. * A bare marker is a dot; it may hold an icon instead, or a spinner-inline while the step runs. The step that is running carries * aria-busy: its words take the strong ink and its dot sends out a ring. A step that failed is trace-failed, * a class because ARIA has no word for it here; the reason, in words, is in the line or behind it. * Geometry: a 32px row, a 20px marker column, and the detail on the edge of the words. */@layer components.ui {  .trace {    --trace-marker: 1.25rem;    --trace-padding: .375rem;    --trace-closed: -90deg;    display: grid;    min-width: 0;    margin: 0;    padding: 0;    color: var(--color-text-body);    font: 400 .84375rem/1.25rem var(--font-family-sans);    font-feature-settings: inherit;    list-style: none;    @media (pointer: coarse) {      --trace-padding: .75rem;    }  }  .trace-step {    position: relative;    min-width: 0;    /* Lets block-size travel from 0 to auto. */    interpolate-size: allow-keywords;    /* The line from under this marker to the next one. */    &:not(:last-child)::before {      content: '';      position: absolute;      inset-block: calc(var(--trace-padding) + var(--trace-marker) + .125rem) calc(-1 * var(--trace-padding) + .125rem);      inset-inline-start: calc(var(--trace-marker) / 2 - .5px);      width: 1px;      background: var(--color-line-divider);    }    &::details-content {      block-size: 0;      overflow-y: clip;      opacity: 0;      transition-property: block-size, opacity, content-visibility;      transition-duration: var(--duration-base);      transition-timing-function: var(--easing-glide);      transition-behavior: allow-discrete;    }    &[open]::details-content {      block-size: auto;      opacity: 1;    }    /* The chevron points down while its step is open. A closed step nested in an open one keeps its own. */    &[open] .trace-summary:has(~ .trace-detail) .trace-chevron {      rotate: none;    }    &[open] .trace-step:not([open]) .trace-summary:has(~ .trace-detail) .trace-chevron {      rotate: var(--trace-closed);    }    /* Running: the words come forward and a bare dot sends out a ring. */    &[aria-busy="true"] {      .trace-summary {        color: var(--color-text-strong);      }      .trace-marker:empty::before {        background: var(--color-text-strong);        animation: trace-live 1.8s var(--easing-glide) infinite;      }    }    /* Failed: the dot, an icon and the fact at the end of the line take the danger ink. */    &.trace-failed {      .trace-marker {        --icon-color: var(--color-danger);        color: var(--color-danger);      }      .trace-marker:empty::before {        background: var(--color-danger);      }      .trace-meta {        color: var(--color-danger);      }    }    @media (prefers-reduced-motion: reduce) {      &::details-content {        transition-property: opacity, content-visibility;      }      &[aria-busy="true"] .trace-marker:empty::before {        box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-text-strong) 12%, transparent);        animation: none;      }    }    /* Colors that are not system colors turn to Canvas here, so the line and the dots of a running or failed step name one. */    @media (forced-colors: active) {      &:not(:last-child)::before {        background: CanvasText;      }      &[aria-busy="true"] .trace-marker:empty::before {        background: Highlight;      }      &.trace-failed .trace-marker:empty::before {        background: CanvasText;      }    }  }  /* The step's line: the marker, the words, and a fact at the end. On a <summary> it is the toggle. */  .trace-summary {    display: flex;    align-items: flex-start;    gap: .5rem;    min-height: calc(var(--trace-marker) + var(--trace-padding) * 2);    margin: 0;    padding: var(--trace-padding) 0;    border-radius: calc((var(--radius-chip) - 2px) * var(--corner-scale));    corner-shape: var(--corner-shape);    list-style: none;    overflow-wrap: anywhere;    -webkit-tap-highlight-color: transparent;    &::-webkit-details-marker {      display: none;    }    /* With a detail after it, the line is a toggle: a chevron follows the words. */    &:has(~ .trace-detail) {      cursor: pointer;      touch-action: manipulation;      user-select: none;      -webkit-user-select: none;      .trace-chevron {        order: 1;        flex: none;        width: .875rem;        height: .875rem;        margin-block: .1875rem;        margin-inline-start: -.25rem;        color: var(--color-text-muted);        rotate: var(--trace-closed);        transition: rotate var(--duration-base) var(--easing-glide);      }      /* Closed, the chevron points the way the words run. */      &:dir(rtl) {        --trace-closed: 90deg;      }      @media (hover: hover) {        &:hover {          color: var(--color-text-strong);        }        &:hover .trace-chevron {          color: var(--color-text-strong);        }      }      /* Pressed: the strong ink, as under the pointer, so a tap is answered too. */      &:active {        color: var(--color-text-strong);      }      &:active .trace-chevron {        color: var(--color-text-strong);      }    }    &:focus-visible {      @apply --focus-ring;    }    @media (prefers-reduced-motion: reduce) {      .trace-chevron {        transition: none;      }    }    @media (forced-colors: active) {      &:has(~ .trace-detail) .trace-chevron, &:has(~ .trace-detail):is(:hover, :active) .trace-chevron {        color: CanvasText;      }    }  }  /* The marker's column, as tall as the first line of words. Empty, it is a dot. */  .trace-marker {    --icon-size: .875rem;    --icon-color: var(--color-text-muted);    display: grid;    flex: none;    place-items: center;    width: var(--trace-marker);    height: var(--trace-marker);    color: var(--color-text-muted);    &:empty::before {      content: '';      width: .375rem;      height: .375rem;      border-radius: 999px;      background: var(--color-line-mark);    }    @media (forced-colors: active) {      &:empty::before {        background: CanvasText;      }    }  }  /* A fact at the end of the line: how long it took, how many it found. */  .trace-meta {    order: 2;    flex: none;    margin-inline-start: auto;    padding-inline-start: .5rem;    color: var(--color-text-muted);    font-size: .78125rem;    font-variant-numeric: tabular-nums;  }  /* What stands behind the step, on the edge of its words. */  .trace-detail {    margin-inline-start: calc(var(--trace-marker) + .5rem);    padding: .125rem 0 .625rem;    color: var(--color-text-muted);    font-size: .8125rem;    line-height: 1.55;    text-wrap: pretty;    overflow-wrap: anywhere;  }}@keyframes trace-live {  from {    box-shadow: 0 0 0 0 color-mix(in oklab, var(--color-text-strong) 40%, transparent);  }  70%, to {    box-shadow: 0 0 0 5px transparent;  }}