.git-history-editor {
  --ng-bg: var(--bs-body-bg);
  --ng-side: var(--bs-tertiary-bg);
  --ng-bar: var(--bs-secondary-bg);
  --ng-fg: var(--bs-body-color);
  --ng-muted: var(--bs-secondary-color);
  --ng-border: var(--bs-border-color);
  --ng-selected: color-mix(in srgb, var(--bs-primary) 15%, transparent);
  --ng-lane-0: var(--bs-primary);
  --ng-lane-1: var(--bs-info);
  --ng-lane-2: var(--bs-warning);
  --ng-row-height: 44px;
  text-align: left;
  container-type: inline-size;
  font: inherit;
  color: var(--ng-fg);
}
.git-history-editor * { box-sizing: border-box; }
.git-history-editor .ng-window { background: var(--ng-bg); }
.git-history-editor .ng-title {
  background: var(--ng-bar);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  padding: 12px 16px;
}
.git-history-editor .ng-title strong { font-weight: 500; }
.git-history-editor .ng-disclaimer { font-size: 0.8rem; color: var(--ng-muted); }
.git-history-editor .ng-body {
  display: grid;
  grid-template-columns: minmax(300px, 40%) minmax(0, 1fr);
}
.git-history-editor .ng-history { min-width: 0; background: var(--ng-side); }
.git-history-editor .ng-heading {
  padding: 12px 16px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  font-weight: 500;
}
.git-history-editor .ng-rows { position: relative; }
.git-history-editor .ng-graph {
  position: absolute;
  left: 8px;
  top: 0;
  width: 82px;
  pointer-events: none;
}
.git-history-editor .ng-row {
  display: flex;
  width: 100%;
  height: var(--ng-row-height);
  min-height: var(--ng-row-height);
  align-items: center;
  border: 0;
  border-radius: 0;
  padding: 3px 12px 3px 100px;
  text-align: left;
  background: transparent;
  color: var(--ng-fg);
  font: inherit;
  gap: 6px;
}
.git-history-editor .ng-row[aria-pressed="true"] { background: var(--ng-selected); }
.git-history-editor .ng-row:hover { background: var(--ng-selected); }
.git-history-editor .ng-row-info { min-width: 0; line-height: 1.3; }
.git-history-editor .ng-message { display: block; font-size: 0.82rem; }
.git-history-editor .ng-hash {
  font: 0.72rem/1.4 var(--quarto-font-monospace);
  color: var(--ng-muted);
}
.git-history-editor .ng-ref {
  display: inline;
  margin-left: 6px;
  padding: 1px 4px;
  border: 1px solid var(--ng-border);
  border-radius: 3px;
  font-size: 0.72rem;
}
.git-history-editor .ng-editor { min-width: 0; }
.git-history-editor .ng-filebar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  background: var(--ng-side);
  border-left: 1px solid var(--ng-border);
  padding: 10px 14px;
}
.git-history-editor .ng-filename {
  font-family: var(--quarto-font-monospace);
  flex: 1 1 auto;
}
.git-history-editor .ng-mode { display: flex; gap: 2px; }
.git-history-editor .ng-mode button {
  border: 0;
  background: transparent;
  color: var(--ng-fg);
  padding: 4px 8px;
  font: inherit;
}
.git-history-editor .ng-mode button[aria-pressed="true"] { background: var(--ng-selected); }
.git-history-editor .ng-revision {
  padding: 9px 14px;
  color: var(--ng-muted);
  font: 0.8rem/1.5 var(--quarto-font-monospace);
  overflow-wrap: anywhere;
}
.git-history-editor .ng-code.sourceCode {
  background-color: var(--quarto-scss-export-code-block-bg);
  padding: 12px;
  margin: 0;
  min-height: 408px;
  font-family: var(--quarto-font-monospace);
  font-size: var(--dact-code-font-size);
  line-height: var(--dact-code-line-height);
}
.git-history-editor .ng-line { display: grid; grid-template-columns: 28px minmax(0, 1fr); }
.git-history-editor .ng-num {
  color: inherit;
  opacity: 0.65;
  text-align: right;
  padding-right: 10px;
  user-select: none;
}
.git-history-editor .ng-code code {
  font: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: transparent;
  color: inherit;
  padding: 0;
}
.git-history-editor .ng-diff-line { white-space: pre-wrap; overflow-wrap: anywhere; }
.git-history-editor .ng-diff-add { background: color-mix(in srgb, var(--bs-success) 18%, transparent); }
.git-history-editor .ng-diff-remove { background: color-mix(in srgb, var(--bs-danger) 18%, transparent); }
.git-history-editor .ng-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 7px 16px;
  background: var(--ng-bar);
  font-size: 0.8rem;
}
.git-history-editor button:focus-visible {
  outline: 2px solid var(--bs-primary);
  outline-offset: -2px;
}
@media (pointer: coarse) {
  .git-history-editor .ng-mode button { min-height: 44px; min-width: 44px; }
}
@container (max-width: 620px) {
  .git-history-editor .ng-body { grid-template-columns: minmax(0, 1fr); }
  .git-history-editor .ng-filebar { border-left: 0; border-top: 1px solid var(--ng-border); }
  .git-history-editor .ng-code { min-height: 0; }
}
@media (max-width: 620px) {
  .git-history-editor .ng-body { grid-template-columns: minmax(0, 1fr); }
  .git-history-editor .ng-filebar { border-left: 0; border-top: 1px solid var(--ng-border); }
  .git-history-editor .ng-code { min-height: 0; }
}
