.split {
  --dsh-scrollbar-thumb: var(--dsw-alias-scrollbar-bg-l2);
  --dsh-scrollbar-thumb-hover: var(--dsw-alias-scrollbar-hover-l2);

  position: relative;
  display: flex;
  flex: 1;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  background: var(--dsw-alias-bg-layer-1);
  container-type: inline-size;
}

.tablePane {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: var(--dsh-trajectory-bottom-clearance, 0px);
  container: trajectory-table / inline-size;
}

.historyLoading {
  position: sticky;
  z-index: 5;
  top: 0;
  height: 0;
  overflow: visible;
  pointer-events: none;
}

.historyLoadingBar {
  display: flex;
  width: 100%;
  height: 30px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  border-bottom: 1px solid var(--dsw-alias-border-l2);
  background: var(--dsw-alias-bg-layer-1);
  color: var(--dsw-alias-label-secondary);
  font: var(--dsw-font-xxs-12);
}

.historyLoadingSpinner {
  width: 10px;
  height: 10px;
  box-sizing: border-box;
  border: 1.5px solid var(--dsw-alias-border-l2);
  border-top-color: var(--dsw-alias-state-business-primary);
  border-radius: 50%;
  animation: history-loading-spin 700ms linear infinite;
}

.table tbody .historyLoadRow td {
  height: 30px;
  padding: 0;
}

/* The pagination control does not create a trajectory turn boundary. */
.table tbody .historyLoadRow + tr[data-turn-start='true'] td::before {
  content: none;
}

.historyLoadButton {
  display: flex;
  width: 100%;
  height: 29px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  background: var(--dsw-alias-bg-layer-1);
  color: var(--dsw-alias-label-secondary);
  cursor: pointer;
  font: var(--dsw-font-xxs-12);
}

.historyLoadButton:hover:not(:disabled) {
  background: var(--dsw-alias-interactive-bg-hover);
  color: var(--dsw-alias-label-primary);
}

.historyLoadButton:focus-visible {
  outline: 2px solid var(--dsw-alias-state-business-primary);
  outline-offset: -2px;
}

.historyLoadButton:disabled {
  cursor: default;
}

.visuallyHidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.table:not([data-scroll-ready='true']) {
  visibility: hidden;
}

@keyframes history-loading-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .historyLoadingSpinner {
    animation: none;
  }
}

.table {
  --trajectory-turn-accent: color-mix(
    in srgb,
    var(--dsw-static-blue-500) 22%,
    var(--dsw-alias-bg-layer-1)
  );

  width: 100%;
  min-width: 0;
  border-spacing: 0;
  table-layout: fixed;
  color: var(--dsw-alias-label-primary);
  background: var(--dsw-alias-bg-layer-1);
  font: var(--dsw-font-xxs-12);
}

.eventColumn {
  width: 122px;
}

.contentColumn {
  width: auto;
}

.table th {
  position: sticky;
  top: 0;
  z-index: 3;
  box-sizing: border-box;
  height: 30px;
  padding: 0 8px;
  overflow: hidden;
  border-bottom: 1px solid var(--dsw-alias-border-l2);
  color: var(--dsw-alias-label-tertiary);
  background: var(--dsw-specific-sidebar-fill);
  font: var(--dsw-font-xxs-12);
  font-weight: 500;
  text-align: left;
  text-overflow: ellipsis;
  user-select: none;
  white-space: nowrap;
}

.eventHeader {
  padding-right: 4px !important;
  text-align: right !important;
}

.table td {
  box-sizing: border-box;
  height: 30px;
  padding: 0 8px;
  overflow: hidden;
  border-bottom: 1px solid var(--dsw-alias-border-l1);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table tbody .virtualSpacer {
  pointer-events: none;
}

.table tbody .virtualSpacer td {
  height: var(--trajectory-virtual-spacer-height);
  padding: 0;
  border: 0;
}

.table tbody tr:not([data-collapsed-summary]):not([data-virtual-spacer]):not([data-history-load]) {
  cursor: default;
  outline: none;
  transition:
    background-color 120ms var(--ds-ease-in-out),
    opacity 120ms var(--ds-ease-in-out);
}

.table tbody tr[data-timeline-focus='outside'] {
  opacity: 0.24;
}

.table tbody tr:not([data-collapsed-summary]):not([data-virtual-spacer]):not([data-history-load]):not([data-selected='true']):hover {
  background: var(--dsw-alias-interactive-bg-hover);
}

.table tbody tr[data-request-only='true']:hover {
  background: transparent;
}

.table tbody tr[data-request-only='true'] td {
  height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.table tbody tr[data-terminal-request-boundary='true'] td {
  /* Retain the lower half of the 16px boundary marker at the table's end. */
  height: 9px;
}

.table tbody tr[data-request-only='true'] .turnRail {
  top: -15px;
  bottom: 0;
}

.table tbody tr:not([data-collapsed-summary]):focus-visible {
  box-shadow: inset 0 0 0 1px var(--dsw-alias-state-business-primary);
}

.table tbody tr[data-selected='true'] {
  background: var(--dsw-alias-interactive-bg-active);
}

.requestBoundaryControl {
  --request-boundary-base-left: 12px;

  position: absolute;
  z-index: 6;
  top: -8px;
  left: calc(var(--request-boundary-base-left) + var(--request-boundary-offset, 0px));
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.requestBoundaryControl::before {
  position: absolute;
  top: 5.5px;
  left: 5.5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--dsw-alias-label-caption);
  box-shadow:
    0 0 0 2px var(--dsw-alias-bg-layer-1),
    0 0 0 3px transparent;
  content: '';
  transition:
    background 120ms var(--ds-ease-in-out),
    box-shadow 120ms var(--ds-ease-in-out);
}

.requestBoundaryControl::after {
  position: absolute;
  top: 2px;
  left: 17px;
  width: max-content;
  padding: 0 4px;
  border: 1px solid var(--dsw-alias-border-l1);
  border-radius: 2px;
  color: var(--dsw-alias-label-secondary);
  background: var(--dsw-alias-bg-layer-1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  content: attr(data-label);
  font: 9px/12px var(--ds-font-family-code);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-2px);
  transition:
    opacity 120ms var(--ds-ease-in-out),
    transform 120ms var(--ds-ease-in-out);
  user-select: none;
  white-space: nowrap;
}

.requestBoundaryControl:hover::before,
.requestBoundaryControl:focus-visible::before {
  background: var(--dsw-alias-brand-primary-new-colorprimary-new-color);
}

.requestBoundaryControlActive::before,
.requestBoundaryControlActive:hover::before,
.requestBoundaryControlActive:focus-visible::before {
  background: color-mix(
    in srgb,
    var(--dsw-alias-brand-primary-new-colorprimary-new-color) 18%,
    var(--dsw-alias-bg-layer-1)
  );
  box-shadow: 0 0 0 1.5px var(--dsw-alias-brand-primary-new-colorprimary-new-color);
}

.requestBoundaryControl[data-request-status='error']::before,
.requestBoundaryControl[data-request-status='error']:hover::before,
.requestBoundaryControl[data-request-status='error']:focus-visible::before {
  background: var(--dsw-alias-state-error-primary);
}

.requestBoundaryControl:hover::after,
.requestBoundaryControl:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}

.requestBoundaryControl:focus-visible {
  outline: none;
}

.table tbody tr:has(.requestBoundaryControl:hover):not([data-selected='true']) {
  background: transparent;
}

.event {
  position: relative;
}

.turnRail,
.selectionRail {
  position: absolute;
  left: 0;
  background: var(--dsw-alias-brand-primary-new-colorprimary-new-color);
  pointer-events: none;
}

.turnRail {
  z-index: 4;
  top: -1px;
  bottom: -1px;
  width: 2px;
  background: var(--trajectory-turn-accent);
}

.table tbody tr[data-turn-end='true'] .turnRail {
  bottom: 0;
}

.selectionRail {
  z-index: 5;
  top: 0;
  bottom: 0;
  width: 3px;
}

.table tbody tr[data-error='true'] .turnRail {
  background: color-mix(
    in srgb,
    var(--dsw-alias-state-error-primary) 22%,
    var(--dsw-alias-bg-layer-1)
  );
}

.table tbody tr[data-error='true'] .selectionRail {
  background: var(--dsw-alias-state-error-primary);
}

.table tbody tr[data-turn-start='true'] td {
  position: relative;
  overflow: visible;
}

.table tbody tr[data-turn-start='true']:not(:first-child) td::before {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--dsw-alias-border-l1);
  content: '';
  pointer-events: none;
  transform: translateY(-50%);
}

.event {
  overflow: visible !important;
  padding-right: 4px !important;
  padding-left: 36px !important;
}

.turnLabel {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  display: inline-grid;
  flex: none;
  align-items: center;
  box-sizing: border-box;
  width: max-content;
  padding: 1px 5px;
  border-radius: 0 0 2px;
  color: var(--dsw-alias-label-tertiary);
  background: var(--dsw-alias-bg-module-platform);
  font: 8px/10px var(--ds-font-family-code);
  font-variant-numeric: tabular-nums;
  user-select: none;
  white-space: nowrap;
}

.turnLabelFull,
.turnLabelCompact {
  grid-area: 1 / 1;
  max-width: 64px;
  overflow: hidden;
  opacity: 1;
  white-space: nowrap;
}

.turnLabelCompact {
  max-width: 0;
  opacity: 0;
}

.turnLabelActive {
  color: color-mix(
    in srgb,
    var(--dsw-static-blue-500) 55%,
    var(--dsw-alias-label-tertiary)
  );
  background: var(--trajectory-turn-accent);
}

.eventInner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  height: 100%;
}

.kindSlot {
  display: flex;
  flex: none;
  align-items: flex-end;
  justify-content: flex-end;
  width: 76px;
}

.kindSlot :global([role='tooltip']) {
  border: 1px solid var(--dsw-alias-border-l2);
  background: var(--dsw-alias-bg-layer-2);
  box-shadow: var(--dsw-shadow-lv2);
  color: var(--dsw-alias-label-primary);
}

.content {
  padding-left: 4px !important;
  color: var(--dsw-alias-label-primary);
}

.kindTag {
  display: inline-flex;
  flex: none;
  align-items: center;
  box-sizing: border-box;
  height: 19px;
  padding: 0 5px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 10px;
  line-height: 16px;
  font-weight: 650;
  letter-spacing: 0.035em;
  user-select: none;
}

.kindTagIcon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 0;
  height: 13px;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.8);
}

.kindTagLabel {
  display: inline-block;
  max-width: 72px;
  overflow: hidden;
  opacity: 1;
  white-space: nowrap;
}

.table .kindSlot .message {
  justify-content: center;
  width: 100%;
}

@container trajectory-table (max-width: 620px) {
  .eventColumn {
    width: 50px;
  }

  .event {
    padding-right: 3px !important;
    padding-left: 28px !important;
  }

  .requestBoundaryControl {
    --request-boundary-base-left: 6px;
  }

  .kindSlot {
    width: 19px;
  }

  .kindTag,
  .table .kindSlot .message {
    justify-content: center;
    width: 19px;
    padding-right: 0;
    padding-left: 0;
  }

  .kindTagIcon {
    width: 13px;
    opacity: 1;
    transform: scale(1);
  }

  .kindTagLabel {
    max-width: 0;
    opacity: 0;
  }

  .turnLabelFull {
    max-width: 0;
    opacity: 0;
  }

  .turnLabelCompact {
    max-width: 64px;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .eventColumn,
  .event,
  .requestBoundaryControl,
  .kindSlot,
  .kindTag,
  .kindTagIcon,
  .kindTagLabel,
  .turnLabelFull,
  .turnLabelCompact {
    transition-duration: 180ms;
    transition-timing-function: var(--ds-ease-in-out);
  }

  .eventColumn,
  .kindSlot {
    transition-property: width;
  }

  .event {
    transition-property: padding-right, padding-left;
  }

  .requestBoundaryControl {
    transition-property: left;
  }

  .kindTag {
    transition-property: padding-right, padding-left;
  }

  .kindTagIcon {
    transition-property: width, opacity, transform;
  }

  .kindTagLabel,
  .turnLabelFull,
  .turnLabelCompact {
    transition-property: max-width, opacity;
  }
}

.user {
  color: var(--dsw-alias-state-business-primary);
  background: var(--dsw-alias-state-business-tertiary);
}

.systemNeutral {
  color: var(--dsw-alias-label-secondary);
  background: var(--dsw-alias-bg-module-platform);
}

.contextGreen {
  color: color-mix(
    in srgb,
    var(--dsw-alias-state-success-primary) 68%,
    var(--dsw-alias-label-secondary)
  );
  background: var(--dsw-alias-state-success-tertiary);
}

.compacted {
  color: var(--dsw-alias-label-secondary);
  background: var(--dsw-alias-bg-module-platform);
}

.compactedSummary {
  margin-top: 12px;
  padding: 0 0 14px;
  font: var(--dsw-font-xs-13);
}

.promptDiffSections {
  display: flex;
  max-height: 100%;
  flex-direction: column;
  padding: 10px 14px 14px;
  gap: 14px;
  overflow: auto;
}

.promptDiffSection {
  min-width: 0;
}

.promptDiffTitle {
  margin: 0 0 6px;
  color: var(--dsw-alias-label-secondary);
  font: var(--dsw-font-xs-strong-13);
  user-select: none;
}

.promptDiff {
  margin: 0;
  overflow: auto;
  color: var(--dsw-alias-label-primary);
  background: var(--dsw-alias-bg-layer-1);
  font: 11px/17px var(--ds-font-family-code);
  white-space: pre;
}

.promptDiff span {
  display: block;
  min-width: max-content;
  padding: 0 6px;
}

.promptDiffLinemeta {
  color: var(--dsw-alias-label-caption);
  background: var(--dsw-alias-bg-module-platform);
  user-select: none;
}

.promptDiffLinecontext {
  color: var(--dsw-alias-label-secondary);
}

.promptDiffLineadded {
  color: color-mix(
    in srgb,
    var(--dsw-alias-state-success-primary) 72%,
    var(--dsw-alias-label-primary)
  );
  background: var(--dsw-alias-state-success-tertiary);
}

.promptDiffLineremoved {
  color: var(--dsw-alias-state-error-primary);
  background: color-mix(
    in srgb,
    var(--dsw-alias-state-error-primary) 12%,
    var(--dsw-alias-bg-layer-1)
  );
}

.assistantVioletBright {
  color: color-mix(
    in srgb,
    var(--dsw-alias-brand-primary-new-colorprimary-new-color) 60%,
    var(--dsw-alias-state-error-secondary)
  );
  background: color-mix(
    in srgb,
    color-mix(
      in srgb,
      var(--dsw-alias-brand-primary-new-colorprimary-new-color) 55%,
      var(--dsw-alias-state-error-secondary)
    ) 15%,
    var(--dsw-alias-bg-layer-1)
  );
}

.toolAmber {
  color: var(--dsw-alias-state-warn-label);
  background: var(--dsw-alias-state-warn-tertiary);
}

.subtoolAmber {
  color: color-mix(
    in srgb,
    var(--dsw-alias-state-warn-label) 62%,
    var(--dsw-alias-label-tertiary)
  );
  background: color-mix(
    in srgb,
    var(--dsw-alias-state-warn-tertiary) 58%,
    var(--dsw-alias-bg-layer-1)
  );
}

.contentText {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toolCallOnly {
  color: var(--dsw-alias-label-tertiary);
}

.table tbody tr[data-collapsed-summary='turn'] td,
.table tbody tr[data-collapsed-summary='assistant'] td {
  height: 20px;
}

.table tbody tr[data-collapsed-summary] {
  cursor: pointer;
  outline: none;
  transition: background-color 120ms var(--ds-ease-in-out);
}

.table tbody tr[data-collapsed-summary]:hover {
  background: var(--dsw-alias-interactive-bg-hover);
}

.table tbody tr[data-collapsed-summary]:focus-visible {
  box-shadow: inset 0 0 0 1px var(--dsw-alias-state-business-primary);
}

.collapsedTurnContent {
  display: flex;
  align-items: center;
  min-width: 0;
  color: var(--dsw-alias-label-secondary);
  font-size: 12px;
  line-height: 16px;
}

.collapsedTurnEllipsis {
  flex: none;
  margin-right: 6px;
  color: var(--dsw-alias-label-tertiary);
  font-weight: 600;
  user-select: none;
}

.collapsedTurnText {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resultPreview {
  display: grid;
  grid-template-columns:
    clamp(
      180px,
      var(--trajectory-tool-request-width, calc(36cqw - 56px)),
      480px
    )
    minmax(0, 1fr);
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.resultRequest,
.inlineResultText {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toolCallNameTypeface {
  color: var(--dsw-alias-label-primary);
  font: 400 12px/18px Menlo, Consolas, 'Liberation Mono', 'PingFang SC',
    'Microsoft YaHei';
}

.toolCallPayload {
  margin-left: 7px;
  color: var(--dsw-alias-label-secondary);
  font: 400 12px/18px var(--ds-font-family-code);
}

.table tbody tr[data-kind='tool'] .contentText,
.table tbody tr[data-kind='subtool'] .contentText,
.table tbody tr[data-kind='tool'] .resultPreview,
.table tbody tr[data-kind='subtool'] .resultPreview {
  font-family: var(--ds-font-family-code);
  font-size: 12px;
}

.table tbody tr[data-kind='subtool'] .content {
  padding-left: 26px;
}

.inlineResult {
  display: flex;
  align-items: center;
  min-width: 0;
  color: var(--dsw-alias-label-secondary);
}

.noOutputText {
  color: var(--dsw-alias-label-caption);
}

.arrow {
  flex: none;
  margin-right: 8px;
  color: var(--dsw-alias-label-caption);
}

.error {
  color: var(--dsw-alias-state-error-primary);
}

.overview dd.error {
  color: var(--dsw-alias-state-error-primary);
}

.details .errorPayload {
  color: var(--dsw-alias-state-error-primary);
}

.details .errorPayload .resultBlockText {
  color: inherit;
}

.details .jsonPayload.errorPayload,
.details .jsonPreview.errorPayload {
  --json-tree-property: var(--dsw-alias-state-error-primary);
  --json-tree-string: var(--dsw-alias-state-error-primary);
  --json-tree-number: var(--dsw-alias-state-error-primary);
  --json-tree-keyword: var(--dsw-alias-state-error-primary);
  --json-tree-punctuation: var(--dsw-alias-state-error-primary);
  --json-tree-icon: var(--dsw-alias-state-error-primary);
}

.details {
  position: relative;
  display: flex;
  flex: none;
  flex-direction: column;
  width: clamp(320px, 38%, 440px);
  max-width: calc(100% - 280px);
  min-width: 0;
  min-height: 0;
  border-left: 1px solid var(--dsw-alias-border-l2);
  background: var(--dsw-alias-bg-layer-1);
}

.detailsResizeHandle {
  position: absolute;
  z-index: 6;
  top: 0;
  bottom: 0;
  left: -4px;
  width: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: col-resize;
  touch-action: none;
  user-select: none;
}

.detailsResizeHandle:focus-visible {
  outline: none;
}

.detailsHeader {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  height: 42px;
  padding: 0 8px 0 12px;
  border-bottom: 1px solid var(--dsw-alias-border-l2);
}

.detailsTitle {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
  color: var(--dsw-alias-label-primary);
}

.requestDetailsDot {
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--dsw-alias-label-secondary);
}

.requestDetailsName {
  flex: none;
  font: 500 12px/16px var(--ds-font-family-code);
}

.detailsLocation {
  min-width: 0;
  overflow: hidden;
  color: var(--dsw-alias-label-tertiary);
  font: 11px/16px var(--ds-font-family-code);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.close {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: var(--dsw-alias-label-secondary);
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  line-height: 18px;
}

.close:hover {
  color: var(--dsw-alias-label-primary);
  background: var(--dsw-alias-interactive-bg-hover);
}

.detailTabs {
  display: flex;
  flex: none;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 34px;
  padding: 0 8px;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 1px;
  border-bottom: 1px solid var(--dsw-alias-border-l2);
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  white-space: nowrap;
}

.detailTabs::-webkit-scrollbar {
  display: none;
}

.detailTab {
  position: relative;
  flex: none;
  padding: 0 9px;
  border: 0;
  color: var(--dsw-alias-label-tertiary);
  background: transparent;
  cursor: pointer;
  font: var(--dsw-font-xs-13);
}

.detailTab:hover {
  color: var(--dsw-alias-label-primary);
  background: var(--dsw-alias-interactive-bg-hover);
}

.detailTabActive {
  color: var(--dsw-alias-state-business-primary);
}

.detailTabActive::after {
  position: absolute;
  right: 9px;
  bottom: 0;
  left: 9px;
  height: 2px;
  border-radius: 1px 1px 0 0;
  background: var(--dsw-alias-state-business-primary);
  content: '';
}

.close:focus-visible,
.detailTab:focus-visible {
  outline: 1px solid var(--dsw-alias-state-business-primary);
  outline-offset: -1px;
}

.detailBody {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: var(--dsh-trajectory-bottom-clearance, 0px);
  scrollbar-gutter: stable;
}

.detailBodySummary {
  display: flex;
  box-sizing: border-box;
  flex-direction: column;
  padding-bottom: calc(12px + var(--dsh-trajectory-bottom-clearance, 0px));
  overflow: hidden;
}

.detailBodySummary > .overview {
  flex: 0 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.detailBodySummary > .compactedSummary {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.summaryScrollRegion {
  --dsh-scrollbar-thumb: transparent;
  --dsh-scrollbar-thumb-hover: transparent;
}

.summaryScrollRegion:hover,
.summaryScrollRegion:focus-within {
  --dsh-scrollbar-thumb: var(--dsw-alias-scrollbar-bg-l2);
  --dsh-scrollbar-thumb-hover: var(--dsw-alias-scrollbar-hover-l2);
}

.compactedSummary .markdownPayload {
  padding-right: 18px;
}

.overview {
  margin: 0;
  padding: 8px 0;
  font: var(--dsw-font-xs-13);
}

.overviewParentLinks {
  display: flex;
  gap: 14px;
}

.overviewHierarchyNavLink {
  all: unset;
  display: inline-flex;
  align-items: center;
  color: var(--dsw-alias-label-secondary);
  cursor: pointer;
  font: inherit;
  gap: 1px;
  opacity: 1;
}

.overviewHierarchyNavLink:hover {
  color: var(--dsw-alias-label-primary);
}

.overviewHierarchyJumpIconTight {
  flex: none;
  color: var(--dsw-alias-label-caption);
}

.overviewHierarchyNavLink:hover .overviewHierarchyJumpIconTight,
.overviewHierarchyNavLink:focus-visible .overviewHierarchyJumpIconTight {
  color: var(--dsw-alias-label-primary);
}

.overviewHierarchyNavLink:focus-visible {
  color: var(--dsw-alias-label-primary);
  outline: 1px solid var(--dsw-alias-state-business-primary);
  outline-offset: 2px;
}

.overview > div {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  min-height: 22px;
  padding: 0 14px;
  align-items: center;
}

.overview > .requestTokenDetail dt {
  padding-left: 12px;
}

.usagePanel {
  padding: 4px 0 10px;
}

.usageGroup + .usageGroup {
  margin-top: 8px;
}

.usageHeading {
  margin: 0;
  padding: 4px 14px 1px;
  color: var(--dsw-alias-label-secondary);
  font: var(--dsw-font-xs-strong-13);
  user-select: none;
}

.usageGroup .overview {
  padding: 0;
}

.overview dt {
  color: var(--dsw-alias-label-tertiary);
}

.overview dd {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--dsw-alias-label-primary);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timestampToggle {
  all: unset;
  color: inherit;
  cursor: pointer;
  font: inherit;
  user-select: text;
}

.timestampToggle:focus-visible {
  outline: 1px solid var(--dsw-alias-state-business-primary);
  outline-offset: 2px;
}

.overviewSections {
  display: flex;
  flex: 1;
  min-height: min-content;
  flex-direction: column;
  overflow: hidden;
  border-top: 0;
}

.overviewSection {
  display: flex;
  flex: 1 1 0;
  max-height: max-content;
  min-height: 28px;
  flex-direction: column;
  overflow: hidden;
}

.overviewSection + .overviewSection {
  padding-top: 8px;
}

.overviewHeading {
  display: flex;
  flex: none;
  align-items: flex-end;
  box-sizing: border-box;
  width: 100%;
  height: 28px;
  margin: 0;
  padding: 0 0 3px 14px;
  color: var(--dsw-alias-label-secondary);
  background: var(--dsw-alias-bg-layer-1);
  font: var(--dsw-font-xs-strong-13);
  user-select: none;
}

.overviewTitle {
  display: inline-flex;
  flex: none;
  width: max-content;
  height: auto;
  align-items: center;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
  gap: 3px;
  line-height: 1;
  user-select: none;
}

.overviewTitleIcon {
  flex: none;
  color: var(--dsw-alias-label-caption);
}

.overviewTitle:hover .overviewTitleIcon {
  color: var(--dsw-alias-label-primary);
}

.overviewTitle:focus-visible {
  outline: 1px solid var(--dsw-alias-state-business-primary);
  outline-offset: 2px;
}

.overviewTitle:focus-visible .overviewTitleIcon {
  color: var(--dsw-alias-state-business-primary);
}

.overviewPreview {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--dsw-alias-bg-layer-1);
}

.overviewPreview > :last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

.overviewPreview .jsonPreview > :first-child,
.overviewPreview .schemaTree > :first-child {
  padding-bottom: 0;
}

.overviewPreview .schemaTree {
  margin-bottom: 0;
}

.overviewPreview .overview {
  padding: 2px 0 0;
}

.overviewPreview .overview > div {
  min-height: 22px;
}

.markdownPreview,
.markdownPayload {
  color: var(--dsw-alias-label-primary);
}

.markdownPreview > div,
.markdownPayload > div {
  gap: 8px;
  font: var(--dsw-font-xs-13);
}

.markdownPreview > div h1,
.markdownPayload > div h1 {
  font: 600 16px/22px var(--dsw-font-family);
}

.markdownPreview > div h2,
.markdownPayload > div h2 {
  font: 600 15px/22px var(--dsw-font-family);
}

.markdownPreview > div :where(h3, h4, h5, h6),
.markdownPayload > div :where(h3, h4, h5, h6) {
  font: 600 14px/20px var(--dsw-font-family);
}

.markdownPreview > div :not(pre) > code,
.markdownPayload > div :not(pre) > code {
  font: 12px/18px var(--ds-font-family-code);
}

.markdownPreview > div table,
.markdownPayload > div table {
  font: var(--dsw-font-xs-13);
}

.markdownPreview > div > :first-child {
  margin-top: 0;
}

.markdownPreview > div > :last-child {
  margin-bottom: 0;
}

.markdownPreview > div :where(h1, h2, h3) {
  margin: 12px 0 6px;
}

.markdownPreview > div :where(h4, h5, h6) {
  margin: 10px 0 5px;
}

.markdownPreview > div :where(p, ul, ol) {
  margin: 8px 0;
}

.markdownPreview > div li:not(:first-child) {
  margin-top: 3px;
}

.markdownPreview > div blockquote {
  margin-top: 8px;
}

.markdownPreview > div hr {
  margin: 14px 0;
}

.markdownPreview > div > :global(.md-code-block) {
  margin: 10px 0;
}

.assistantContent .markdownPayload,
.assistantContent .payload {
  min-height: 0;
}

.thinkingQuote {
  margin: 6px 14px 0 12px;
  padding-left: 6px;
  border-left: 2px solid var(--dsw-alias-markdown-citation);
  color: var(--dsw-alias-label-secondary);
  background: transparent;
}

.thinkingQuoteOnlyPreview {
  margin-bottom: 8px;
}

.detailBody > .assistantContentRendered .thinkingQuote {
  margin-top: 14px;
}

.thinkingToggle {
  display: flex;
  align-items: center;
  width: max-content;
  height: 18px;
  padding: 0;
  border: 0;
  color: var(--dsw-alias-label-tertiary);
  background: transparent;
  cursor: pointer;
  font: 600 12px/18px var(--dsw-font-family);
  gap: 2px;
  user-select: none;
}

.thinkingChevron {
  flex: none;
  transition: transform 120ms var(--ds-ease-in-out);
}

.thinkingToggle[aria-expanded='true'] .thinkingChevron {
  transform: rotate(90deg);
}

.thinkingToggle:hover {
  color: var(--dsw-alias-label-secondary);
}

.thinkingToggle:focus-visible {
  outline: 1px solid var(--dsw-alias-state-business-primary);
  outline-offset: 2px;
}

.thinkingQuote .markdownPreview,
.thinkingQuote .markdownPayload,
.thinkingQuote .payload {
  min-height: 0;
  padding: 2px 0;
  color: var(--dsw-alias-label-secondary);
  background: transparent;
}

.assistantOutput {
  background: var(--dsw-alias-bg-layer-1);
}

.markdownPreview {
  padding: 6px 14px 8px;
}

.markdownPayload {
  min-height: 100%;
  padding: 14px;
}

.jsonPayload {
  min-height: 100%;
}

.jsonPreview {
  min-height: 0;
}

.schema {
  min-height: 100%;
  background: var(--dsw-alias-bg-layer-1);
}

.schemaPreview {
  min-height: 0;
}

.schemaIntro {
  padding: 12px 14px 6px;
}

.schemaPreview .schemaIntro {
  padding-top: 6px;
}

.schemaName {
  margin: 0;
  color: var(--dsw-alias-label-primary);
  font: 600 12px/18px var(--ds-font-family-code);
}

.schemaDescription {
  margin: 2px 0 0;
  color: var(--dsw-alias-label-secondary);
  font: var(--dsw-font-xs-13);
  white-space: pre-wrap;
}

.schemaParameters {
  min-width: 0;
}

.schemaParametersTitle {
  margin: 0;
  padding: 4px 14px 2px;
  color: var(--dsw-alias-label-tertiary);
  font: 600 11px/16px var(--dsw-font-family);
  user-select: none;
}

.schemaTree {
  margin: 0 6px 8px 0;
}

.payload {
  box-sizing: border-box;
  min-height: 100%;
  margin: 0;
  padding: 14px;
  overflow-wrap: anywhere;
  color: var(--dsw-alias-label-primary);
  background: var(--dsw-alias-markdown-code-block);
  font: 12px/19px var(--ds-font-family-code);
  tab-size: 2;
  white-space: pre-wrap;
}

.payloadPreview {
  min-height: 0;
  padding: 6px 14px 8px;
}

.sourceBlocks {
  box-sizing: border-box;
  min-height: 100%;
  padding: 12px 14px;
}

.sourceBlock + .sourceBlock {
  margin-top: 14px;
}

.sourceBlockHeader,
.sourceBlockJumpTarget {
  display: flex;
  align-items: center;
  width: max-content;
  margin-bottom: 3px;
  gap: 3px;
  user-select: none;
}

.sourceBlockJumpTarget {
  all: unset;
  display: flex;
  align-items: center;
  width: max-content;
  margin-bottom: 3px;
  gap: 3px;
  cursor: pointer;
  user-select: none;
}

.sourceBlockLabel {
  color: var(--dsw-alias-label-tertiary);
  font: 11px/16px var(--ds-font-family-code);
}

.sourceBlockJumpIcon {
  flex: none;
  color: var(--dsw-alias-label-caption);
}

.sourceBlockJumpTarget:hover .sourceBlockJumpIcon {
  color: var(--dsw-alias-label-primary);
}

.sourceBlockJumpTarget:focus-visible {
  outline: none;
}

.sourceBlockJumpTarget:focus-visible .sourceBlockJumpIcon {
  color: var(--dsw-alias-state-business-primary);
}

.sourceBlockContent {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--dsw-alias-label-primary);
  background: transparent;
  font: 12px/19px var(--ds-font-family-code);
  tab-size: 2;
  white-space: pre-wrap;
}

.panelImageLink {
  display: block;
  width: auto;
  max-width: 100%;
  overflow: hidden;
  border-radius: 4px;
  cursor: zoom-in;
}

.panelImageLinkPreview {
  max-height: 140px;
}

.panelImage {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 320px;
  margin: 0;
  border-radius: inherit;
  background: var(--dsw-alias-bg-base);
  object-fit: contain;
}

.panelImageLinkPreview .panelImage {
  max-height: 140px;
}

.messageImages {
  display: flex;
  flex-direction: column;
  margin: 8px 14px 14px;
  gap: 8px;
}

.messageImagesPreview {
  margin: 6px 14px 8px;
  gap: 6px;
}

.assistantToolCalls {
  box-sizing: border-box;
  max-width: 100%;
  margin: 2px 14px 12px;
  padding: 0;
  color: var(--dsw-alias-label-secondary);
  font: 11px/17px var(--ds-font-family-code);
  list-style: none;
}

.assistantToolCallsPreview {
  margin-top: 2px;
  margin-bottom: 8px;
}

.assistantToolCalls li {
  min-width: 0;
}

.assistantToolCallButton {
  all: unset;
  display: flex;
  box-sizing: border-box;
  width: calc(100% + 4px);
  min-width: 0;
  height: 19px;
  align-items: center;
  margin-left: -4px;
  padding: 0 4px;
  border-radius: 3px;
  cursor: pointer;
}

.assistantToolCallButton:hover {
  background: var(--dsw-alias-interactive-bg-hover);
}

.assistantToolCallButton:focus-visible {
  background: var(--dsw-alias-interactive-bg-hover);
  outline: 1px solid var(--dsw-alias-state-business-primary);
  outline-offset: -1px;
}

.assistantToolCallIcon {
  flex: none;
  margin-right: 5px;
  color: var(--dsw-alias-label-caption);
}

.assistantToolCallButton:hover .assistantToolCallIcon,
.assistantToolCallButton:focus-visible .assistantToolCallIcon {
  color: var(--dsw-alias-label-secondary);
}

.assistantToolCallText {
  display: flex;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.assistantToolCallName {
  flex: none;
  margin-right: 5px;
  color: var(--dsw-alias-label-secondary);
  font-weight: 500;
}

.assistantToolCallArgs {
  min-width: 0;
  overflow: hidden;
  color: var(--dsw-alias-label-tertiary);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.systemPrompt {
  box-sizing: border-box;
}

.toolCatalog {
  min-height: 100%;
  padding: 8px 0 16px;
}

.toolCatalogItem {
  border-bottom: 1px solid var(--dsw-alias-border-l1);
}

.toolCatalogSummary {
  display: grid;
  grid-template-columns: 12px 12px max-content minmax(0, 1fr);
  align-items: center;
  box-sizing: border-box;
  min-height: 30px;
  padding: 4px 12px;
  gap: 5px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.toolCatalogSummary::-webkit-details-marker {
  display: none;
}

.toolCatalogSummary:hover {
  background: var(--dsw-alias-interactive-bg-hover);
}

.toolCatalogSummary:focus-visible {
  background: var(--dsw-alias-interactive-bg-hover);
  outline: 1px solid var(--dsw-alias-state-business-primary);
  outline-offset: -1px;
}

.toolCatalogChevron,
.toolCatalogIcon {
  color: var(--dsw-alias-label-caption);
}

.toolCatalogChevron {
  transition: transform 100ms var(--ds-ease-in-out);
}

.toolCatalogItem[open] .toolCatalogChevron {
  transform: rotate(90deg);
}

.toolCatalogName {
  color: var(--dsw-alias-label-primary);
  font: 500 12px/18px var(--ds-font-family-code);
}

.toolCatalogDescription {
  min-width: 0;
  overflow: hidden;
  color: var(--dsw-alias-label-tertiary);
  font: var(--dsw-font-xs-13);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toolCatalogDefinition {
  padding: 0 0 8px 29px;
  background: var(--dsw-alias-bg-base);
}

.toolCatalogFullDescription {
  margin: 0;
  padding: 7px 14px 4px 0;
  color: var(--dsw-alias-label-secondary);
  font: var(--dsw-font-xs-13);
  white-space: pre-wrap;
}

.toolCatalogTree {
  margin-left: -14px;
  margin-right: 6px;
}

.resultBlocks {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  box-sizing: border-box;
  padding: 14px;
  gap: 10px;
}

.resultBlocksPreview {
  min-height: 0;
  padding: 6px 14px 8px;
  gap: 6px;
}

.resultBlockText {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--dsw-alias-label-primary);
  background: transparent;
  font: 12px/19px var(--ds-font-family-code);
  tab-size: 2;
  white-space: pre-wrap;
}

.overviewPreview .noPayload {
  padding: 6px 14px 8px;
}

.noPayload {
  margin: 0;
  padding: 18px 14px;
  color: var(--dsw-alias-label-tertiary);
  font: var(--dsw-font-xs-13);
}

@media (max-width: 760px) {
  .details {
    position: absolute;
    z-index: 5;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(92%, 420px);
    max-width: 92%;
    border-left-color: var(--dsw-alias-border-l3);
    box-shadow: -12px 0 32px rgba(0, 0, 0, 0.14);
  }
}
