/* Quantum-Like Lab by Ethan Dickey. */
.timeline.history-tree {
  display: block;
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  max-height: 470px;
  padding: 0;
  margin-top: 14px;
  overflow: auto;
  overscroll-behavior: contain;
  contain: inline-size;
  border: 1px solid var(--line, #29434f);
  border-radius: 14px;
  background: #07151f;
  scrollbar-color: #4d6978 #0b1b26;
}
.history-tree-canvas {
  position: relative;
  isolation: isolate;
}
.history-tree-connectors {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
}
.history-tree-link {
  fill: none;
  stroke: #6a8190;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.history-tree-link.on-path {
  stroke: var(--teal, #61e2c4);
  stroke-width: 3;
}
.history-tree-link.to-selected {
  stroke-width: 4;
}
.history-tree-lane-label {
  position: absolute;
  left: 16px;
  width: 116px;
  padding: 17px 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text, #edf5f8);
}
.history-tree-lane-label strong,
.history-tree-lane-label span {
  display: block;
}
.history-tree-lane-label span {
  margin-top: 5px;
  font-size: 0.72rem;
  color: #b6c9d3;
}
.history-tree .checkpoint.history-tree-node {
  position: absolute;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 11px 13px 45px;
  border: 1px solid #526c7c;
  border-radius: 10px;
  background: #0d202d;
  color: var(--text, #edf5f8);
  text-align: left;
  font-size: 0.78rem;
  line-height: 1.3;
  transition:
    border-color 120ms,
    background 120ms;
}
.history-tree .checkpoint.history-tree-node.on-path {
  border-color: #4ca78f;
  background: #10292d;
}
.history-tree .checkpoint.history-tree-node.active {
  border: 2px solid var(--teal, #61e2c4);
  background: #16382f;
  box-shadow: 0 0 0 3px #61e2c41a;
  padding: 10px 12px 44px;
}
.history-tree .checkpoint.history-tree-node:hover {
  background: #1a3542;
  border-color: #c8e0ec;
}
.history-tree .checkpoint.history-tree-node:focus-visible {
  outline: 3px solid var(--amber, #ffc175);
  outline-offset: 3px;
}
.history-tree-node-heading {
  display: flex;
  justify-content: space-between;
  width: 100%;
  color: #b9cbd4;
  font-size: 0.66rem;
}
.active .history-tree-node-heading {
  color: #9aefd5;
}
.history-tree-node-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-weight: 600;
  line-height: 1.32;
}
.history-tree .checkpoint small {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 6px;
  margin: 0;
  color: #becfd8;
  font-size: 0.66rem;
}
.history-tree-empty {
  padding: 16px;
  color: var(--muted, #9db3c0);
}
@media (max-width: 650px) {
  .timeline.history-tree {
    max-height: 390px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .history-tree .checkpoint.history-tree-node {
    transition: none;
  }
}

.history-tree-inspect {
  position: absolute;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 27px;
  padding: 3px 7px;
  border: 1px solid #507282;
  border-radius: 6px;
  background: #132e3b;
  color: #d7e9f0;
  font-size: 0.67rem;
  line-height: 1.2;
}
.history-tree-inspect:hover {
  background: #245063;
  border-color: #b9dbe8;
}
.history-tree-inspect:focus-visible {
  outline: 3px solid var(--amber, #ffc175);
  outline-offset: 2px;
}
