@font-face {
  font-family: Geist;
  src: url("/fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ground: #090b0c;
  --surface: #0e1113;
  --raised: #171d20;
  --line: #293237;
  --text: #edf3f4;
  --muted: #a3afb5;
  --mint: #a2f5d1;
  --violet: #b9acfb;
  --error: #ff9b94;
  --amber: #efca83;
  --label-width: 246px;
  --field-width: 820px;
  font-family: Geist, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-synthesis: none;
  background: var(--ground);
  color: var(--text);
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
select {
  font: inherit;
}
button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
select {
  color: var(--text);
  background: var(--surface);
  border: 1px solid #455158;
  border-radius: 4px;
  min-height: 42px;
}
button {
  padding: 9px 15px;
  cursor: pointer;
}
button:hover {
  background: #222d30;
  border-color: var(--muted);
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button[aria-pressed="true"] {
  color: var(--ground);
  background: var(--mint);
  border-color: var(--mint);
}
select {
  padding: 7px 30px 7px 11px;
  max-width: 220px;
  text-overflow: ellipsis;
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 4px;
}
::selection {
  background: var(--mint);
  color: var(--ground);
}
* {
  scrollbar-width: thin;
  scrollbar-color: #526167 var(--surface);
}
body [hidden] {
  display: none;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
.skip-link {
  position: absolute;
  z-index: 10;
  left: 24px;
  top: -70px;
  padding: 14px;
  background: var(--mint);
  color: var(--ground);
}
.skip-link:focus {
  top: 12px;
}
.masthead {
  min-height: 77px;
  padding: 20px 3.2vw;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.03em;
}
.wordmark svg {
  color: var(--mint);
}
.wordmark-divider {
  color: #5f6f77;
  margin: 0 5px;
  font-weight: 400;
}
.wordmark-place {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
}
.protocol {
  font-size: 12px;
  color: var(--muted);
}
.protocol span {
  margin: 0 12px;
  color: #5f6f77;
}
main {
  padding: 0 3.2vw;
  max-width: 2000px;
  margin: auto;
}
.opening {
  padding: 48px 0 36px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}
h1 {
  font-size: clamp(44px, 5.5vw, 80px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.title-dot {
  color: var(--mint);
}
.intro {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
  margin-top: 18px;
}
.intro br {
  display: none;
}
.feed-controls {
  padding-bottom: 3px;
  flex-shrink: 0;
}
.feed-state {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  font-size: 12px;
  justify-content: flex-end;
}
.feed-state strong {
  font-weight: 550;
}
#freshness {
  color: var(--muted);
  padding-left: 5px;
}
.state-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
}
.state-dot[data-state="live"] {
  background: var(--mint);
}
.state-dot[data-state="demo"] {
  background: var(--violet);
}
.state-dot[data-state="disconnected"],
.state-dot[data-state="stale"] {
  background: var(--amber);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
#demo {
  border-color: #758c83;
}
.instrument {
  border: 1px solid var(--line);
  background: var(--surface);
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 17px 22px;
  min-height: 80px;
}
.window-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
}
.window-label strong {
  font-size: 13px;
  font-weight: 500;
}
#sample-label {
  color: var(--muted);
}
.scope-symbol {
  width: 15px;
  height: 15px;
  border: 1px solid var(--mint);
  border-radius: 50%;
  position: relative;
}
.scope-symbol::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--mint);
  border-radius: 50%;
}
.filters {
  display: flex;
  align-items: center;
  gap: 14px;
}
.filters label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
}
.quiet {
  color: var(--muted);
  border-color: transparent;
  padding-inline: 8px;
}
.notice {
  padding: 11px 22px;
  background: #161d1d;
  color: #bdcdc7;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.6;
}
.notice[data-tone="warning"] {
  background: #211d15;
  color: var(--amber);
}
.notice[data-tone="demo"] {
  background: #1d1a29;
  color: #d2c7ff;
}
.workspace {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  min-height: 435px;
}
.trace-index {
  border-right: 1px solid var(--line);
  min-width: 0;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 20px 0;
}
h2 {
  font-size: 14px;
  font-weight: 550;
  letter-spacing: -0.01em;
}
.count {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: var(--mint);
}
.filter-hint {
  color: var(--muted);
  font-size: 12px;
  padding: 9px 20px 17px;
}
.trace-list {
  max-height: 435px;
  overflow-y: auto;
  padding: 0 8px 12px;
}
.trace-button {
  text-align: left;
  width: 100%;
  display: block;
  min-height: 89px;
  margin: 8px 0;
  padding: 13px 12px;
  border-color: transparent;
  background: transparent;
}
.trace-button[aria-pressed="true"] {
  background: #1d2e29;
  color: var(--text);
  border-color: #395e50;
}
.trace-button:hover {
  background: #1c2426;
}
.trace-name {
  font-size: 14px;
  font-weight: 550;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 7px;
}
.trace-meta,
.trace-id {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.trace-id {
  margin-top: 8px;
  font-family: ui-monospace, monospace;
  color: #a0b4ac;
}
.trace-error {
  color: var(--error);
}
.index-empty {
  padding: 18px 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.trace-stage {
  min-width: 0;
  position: relative;
}
.stage-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 24px 16px;
}
.stage-heading h2 {
  font-size: 17px;
  overflow-wrap: anywhere;
}
.stage-heading p {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 8px;
}
.field-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--muted);
  white-space: nowrap;
  padding-top: 4px;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 19px;
  color: var(--muted);
  font-size: 12px;
  padding: 0 24px 18px;
}
.legend > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.legend i {
  display: inline-block;
  width: 17px;
  height: 2px;
  background: #7d9b90;
}
.legend .legend-bar {
  height: 7px;
  background: var(--mint);
}
.legend .legend-link {
  background: none;
  border-top: 1px dashed var(--violet);
}
.legend .legend-error {
  height: 7px;
  width: 7px;
  background: var(--error);
}
.empty-state {
  min-height: 300px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: 32px 24px 45px;
  position: relative;
  text-align: center;
  overflow: hidden;
}
.empty-reticle {
  width: 156px;
  height: 70px;
  border-top: 1px solid #3a4d47;
  border-bottom: 1px solid #3a4d47;
  margin-bottom: 28px;
  position: relative;
}
.empty-reticle::before {
  content: "";
  position: absolute;
  height: 110px;
  width: 1px;
  left: 50%;
  top: -20px;
  background: #3a4d47;
}
.empty-reticle::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  left: calc(50% - 6px);
  top: 28px;
  background: var(--surface);
  border: 1px solid #839e92;
  transform: rotate(45deg);
}
.empty-state h3 {
  font-size: 24px;
  font-weight: 450;
  letter-spacing: -0.025em;
}
.empty-state p {
  max-width: 48ch;
  color: var(--muted);
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.7;
}
.empty-state button {
  margin-top: 20px;
  color: var(--mint);
  border-color: #3e6153;
}
.timeline-scroll {
  overflow: auto;
  max-height: 427px;
  border-top: 1px solid var(--line);
}
.timeline {
  min-width: calc(var(--label-width) + var(--field-width));
}
.ruler {
  height: 35px;
  margin-left: var(--label-width);
  position: sticky;
  top: 0;
  z-index: 3;
  background: #111719;
  border-bottom: 1px solid var(--line);
  font:
    12px ui-monospace,
    monospace;
  color: var(--muted);
}
.ruler span {
  position: absolute;
  bottom: 10px;
  white-space: nowrap;
  transform: translateX(-50%);
}
.ruler span:first-child {
  transform: none;
}
.ruler span:last-child {
  transform: translateX(-100%);
}
.timing-field {
  position: relative;
}
.connections {
  position: absolute;
  width: calc(100% - var(--label-width));
  left: var(--label-width);
  top: 0;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.parent-edge {
  stroke: #5b8474;
  stroke-width: 1;
  fill: none;
}
.link-edge {
  stroke: var(--violet);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  fill: none;
}
.span-row {
  display: grid;
  grid-template-columns: var(--label-width) minmax(0, 1fr);
  height: 48px;
  margin-bottom: 8px;
  position: relative;
  align-items: stretch;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #1b2427;
  border-radius: 0;
  text-align: left;
}
.span-row:hover {
  background: #182321;
}
.span-row[aria-pressed="true"] {
  background: #1a2a25;
  color: var(--text);
  border-bottom-color: #375548;
}
.span-label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 16px 0 24px;
  min-width: 0;
  background: #101517;
  position: relative;
  z-index: 2;
}
.span-row[aria-pressed="true"] .span-label {
  background: #1a2a25;
}
.span-label-text {
  min-width: 0;
}
.footer strong {
  color: #d2ddda;
  font-weight: 500;
}
.span-label strong {
  font-size: 12px;
  font-weight: 450;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.span-label small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.status-marker {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  background: var(--mint);
}
.status-marker[data-status="error"] {
  background: var(--error);
}
.status-marker[data-status="unset"] {
  background: transparent;
  border: 1px solid var(--muted);
}
.span-track {
  position: relative;
  background-image: linear-gradient(to right, #29323788 1px, transparent 1px);
  background-size: 20% 100%;
}
.span-bar {
  position: absolute;
  height: 10px;
  top: 19px;
  background: var(--mint);
  min-width: 2px;
  z-index: 2;
}
.span-bar[data-status="error"] {
  background: var(--error);
}
.span-bar[data-status="unset"] {
  background: #829b92;
}
.span-row[aria-pressed="true"] .span-bar {
  height: 16px;
  top: 16px;
  outline: 1px solid #c8ffe7;
  outline-offset: 3px;
}
.span-row.is-context .span-bar {
  opacity: 0.35;
}
.span-row.is-context .span-label strong {
  color: var(--muted);
}
.span-measure {
  position: absolute;
  top: 7px;
  right: 12px;
  color: var(--text);
  font:
    12px ui-monospace,
    monospace;
  background: #101517;
  padding: 2px 4px;
  z-index: 2;
}
.stage-foot {
  border-top: 1px solid var(--line);
  padding: 13px 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.stage-foot > span:last-child {
  white-space: nowrap;
}
.inspector {
  padding: 21px 24px 24px;
  border-top: 1px solid var(--line);
}
.inspector-heading {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
#span-position {
  color: var(--muted);
  font-size: 12px;
}
.span-detail {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr) minmax(0, 1.6fr);
  gap: 30px;
}
.detail-placeholder {
  color: var(--muted);
  font-size: 13px;
  grid-column: 1 / -1;
}
.detail-name {
  font-size: 18px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.detail-service {
  color: var(--mint);
  font-size: 12px;
  margin-top: 8px;
}
.detail-ids {
  margin-top: 14px;
  color: var(--muted);
  font:
    12px / 1.7 ui-monospace,
    monospace;
  overflow-wrap: anywhere;
}
.detail-facts {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px 20px;
}
.detail-facts dt {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}
.detail-facts dd {
  margin: 0;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.relations h3 {
  color: var(--muted);
  font-size: 12px;
  font-weight: 450;
  margin-bottom: 8px;
}
.relations p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.relations button {
  min-height: 42px;
  padding: 6px 9px;
  margin: 0 6px 6px 0;
  font-size: 12px;
  color: var(--violet);
  border-color: #514969;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: left;
}
.relation-missing {
  display: block;
  color: var(--amber);
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  margin-bottom: 6px;
}
.footer {
  padding: 24px 0 32px;
  display: flex;
  justify-content: space-between;
  gap: 60px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.footer p:first-child {
  max-width: 78ch;
}
.footer p:last-child {
  max-width: 48ch;
}
@media (min-width: 1600px) {
  :root {
    --field-width: 1000px;
  }
  .workspace {
    grid-template-columns: 300px minmax(0, 1fr);
  }
}
@media (max-width: 1100px) {
  .protocol {
    display: none;
  }
  .toolbar {
    align-items: flex-start;
  }
  .window-label {
    max-width: 230px;
  }
  .window-label #sample-label {
    margin-left: 27px;
  }
  .workspace {
    grid-template-columns: 235px minmax(0, 1fr);
  }
  .field-label {
    display: none;
  }
  .opening {
    padding-top: 34px;
  }
  .intro br {
    display: block;
  }
  .span-detail {
    grid-template-columns: 1fr 1fr;
  }
  .relations {
    grid-column: 1 / -1;
  }
}
@media (max-width: 700px) {
  .masthead {
    min-height: 64px;
    padding: 18px 20px;
  }
  .wordmark {
    font-size: 17px;
    gap: 9px;
  }
  .wordmark-divider {
    margin: 0;
  }
  .wordmark-place {
    font-size: 12px;
  }
  main {
    padding: 0 16px;
  }
  .opening {
    display: block;
    padding: 32px 4px 24px;
  }
  h1 {
    font-size: clamp(40px, 10.8vw, 68px);
  }
  .intro {
    margin-top: 13px;
    font-size: 14px;
  }
  .intro br {
    display: none;
  }
  .feed-controls {
    margin-top: 27px;
  }
  .feed-state,
  .actions {
    justify-content: flex-start;
  }
  .feed-state {
    flex-wrap: wrap;
  }
  .toolbar {
    padding: 16px;
    display: block;
  }
  .window-label {
    max-width: none;
    gap: 9px;
  }
  .window-label #sample-label {
    margin-left: 0;
  }
  .filters {
    margin-top: 16px;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
  }
  .filters label {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }
  select {
    width: 100%;
    max-width: 100%;
  }
  .notice {
    padding: 11px 16px;
  }
  .workspace {
    display: block;
  }
  .trace-index {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .panel-heading {
    padding: 17px 16px 0;
  }
  .filter-hint {
    padding: 8px 16px 10px;
  }
  .trace-list {
    max-height: 200px;
  }
  .trace-button {
    min-height: 80px;
    padding: 10px 8px;
  }
  .trace-id {
    margin-top: 5px;
  }
  .stage-heading {
    padding: 22px 16px 16px;
  }
  .legend {
    padding-inline: 16px;
    gap: 13px;
  }
  .stage-foot {
    padding: 12px 16px;
    display: block;
  }
  .stage-foot > span {
    display: block;
  }
  .stage-foot > span:last-child {
    margin-top: 5px;
  }
  .timeline-scroll {
    max-height: 371px;
  }
  .inspector {
    padding: 20px 16px;
  }
  .inspector-heading {
    align-items: flex-start;
  }
  #span-position {
    max-width: 150px;
    text-align: right;
    line-height: 1.5;
  }
  .span-detail {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .relations {
    grid-column: auto;
  }
  .footer {
    display: block;
    padding: 23px 4px;
  }
  .footer p + p {
    margin-top: 14px;
  }
  .empty-state {
    min-height: 330px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .span-bar {
    animation: register-span 450ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  @keyframes register-span {
    from {
      clip-path: inset(0 100% 0 0);
    }
    to {
      clip-path: inset(0 0 0 0);
    }
  }
}
