/* Version inspector in the existing chat tools panel */
.version-tool,
.version-tool-empty {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 12px;
}

.version-tool-empty {
  justify-items: center;
  padding-top: 42px;
  text-align: center;
}

.version-tool-empty > span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: color-mix(in srgb, #775ce5 13%, var(--surface-2));
  color: #735bdd;
}

.version-tool-empty strong { font-size: 13px; }
.version-tool-empty p,
.version-tool > p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }

.version-tool > header {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 11px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-2) 78%, transparent);
}

.version-tool > header > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, #775ce5 13%, var(--surface));
  color: #735bdd;
}

.version-tool > header > div { min-width: 0; display: grid; gap: 2px; }
.version-tool > header small { color: var(--muted); font-size: 8px; }
.version-tool > header strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.version-tool > header b { padding: 5px 7px; border-radius: 99px; background: rgba(47,188,143,.12); color: #2da47d; font-size: 8px; }

.version-tool-branch {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--muted);
  font-size: 9px;
}

.version-tool-branch svg { width: 14px; height: 14px; }
.version-tool-branch span { color: var(--text); font-weight: 800; }
.version-tool-branch b { margin-left: auto; color: #2da47d; font-size: 8px; }

.version-tool-list {
  position: relative;
  display: grid;
}

.version-tool-list::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: linear-gradient(#745de1, #35c3a7);
}

.version-tool-list article {
  position: relative;
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 7px;
  min-height: 47px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 68%, transparent);
}

.version-tool-list article > div { min-width: 0; display: grid; gap: 2px; }
.version-tool-list strong,
.version-tool-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.version-tool-list strong { font-size: 9px; }
.version-tool-list small { color: var(--muted); font-size: 7px; }
.version-tool-list button { padding: 5px 6px; border-radius: 7px; background: var(--surface-2); color: var(--muted); font-size: 7px; }

.version-tool-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.version-tool-actions button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 9px;
  background: color-mix(in srgb, #775ce5 10%, var(--surface-2));
  color: #7159db;
  font-size: 8px;
  font-weight: 800;
}

.version-tool-actions svg { width: 13px; height: 13px; }

