.invocation .invocation-filter,
.invocation .raw-logs-filter {
  margin-top: 24px;
}

.dense .invocation .filter-input-container {
  border-radius: 0;
  margin-top: 0;
  height: 36px;
}

.invocation-raw-logs-card .download-raw-logs-button {
  display: flex;
  gap: 8px;
  position: absolute;
  right: 0;
  top: 0;
  font-size: 14px;
}

.invocation-raw-logs-card .content {
  position: relative;
}

.input-tree {
  width: 200px;
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 6px 4px 4px 14px;
  flex-shrink: 0;
  overflow: scroll;
  box-sizing: border-box;
}

.input-tree-node {
  cursor: pointer;
  user-select: none;
}

.input-tree-node .input-tree-node-size {
  background-color: #eee;
  border-radius: 4px;
  color: #000;
  margin-left: 8px;
  padding: 0 8px;
  white-space: nowrap;
}

.input-tree-node-name .digest-component {
  margin-left: 8px;
}

.input-tree-node-name .icon {
  opacity: 0.7;
}

.input-tree-node-name:hover .icon {
  opacity: 1;
}

.input-tree-node-children {
  border-left: 1px solid #ccc;
  padding-left: 8px;
  margin-left: 8px;
}

.input-tree-node-name {
  display: flex;
  margin-bottom: 2px;
  align-items: flex-start;
}

.input-tree-node-name .folder-icon {
  /* Adjust optical alignment of folder icons */
  transform: translateY(-1px);
}

.input-tree-node-label {
  padding-top: 1px;
}

.invocation-action-card .text-link {
  font-weight: 600;
  text-decoration: underline;
  color: #212121;
}

.invocation-targets-card .targets-table {
  display: grid;
  grid-template-columns: auto max-content;

  --border-color: #eee;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

.invocation-targets-card .target-row {
  display: contents;
  user-select: text;
}

.invocation-targets-card .target-row > * {
  padding: 4px;
  display: flex;
  align-items: center;
  line-height: initial;
}

.invocation-targets-card .target-row > :first-child {
  padding-left: 8px;
}

.invocation-targets-card .target-row > :last-child {
  padding-right: 8px;
}

.invocation-targets-card .target-row:hover > * {
  background: #f5f5f5;
}

.invocation-targets-card .target-row:not(:last-child) > * {
  border-bottom: 1px solid var(--border-color);
}

.invocation-targets-card .target-row > * {
  min-height: 26px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.invocation-targets-card .chevron-icon .icon {
  width: 20px;
  height: 20px;
  margin-right: -4px; /* offset flex gap */
}

.dense .invocation-targets-card .chevron-icon {
  display: none; /* show target status icon instead */
}

.dense .invocation-targets-card .title {
  margin-bottom: 4px;
}

.invocation-targets-card .target-label {
  display: flex;
  gap: 8px;
  font-weight: 600;
  color: #212121;
}

.invocation-targets-card .target-cache-status {
  border-radius: 16px;
  color: #212121ad;
  background: #eee;
  line-height: 1;
  flex-shrink: 0;

  font-size: 0.8em;
  word-break: break-word;
  white-space: nowrap;
  margin-left: auto;
  margin-right: 8px;
  padding: 2px 6px;
}

.invocation-targets-card .root-cause-badge {
  background: #eee;
  flex-shrink: 0;
  padding: 0 8px;
  border-radius: 16px;
  word-break: break-word;
}

.invocation-targets-card .target-duration {
  padding-left: 8px;
  color: #757575;
}

.invocation-flaky-chip-alignment-hack {
  display: inline-block;
  vertical-align: top;
  margin-top: -10px;
}

.invocation-action-card .icon.file-icon,
.invocation-action-card .icon.folder-icon,
.invocation-action-card .icon.file-question-icon {
  margin-right: 4px;
  width: 18px;
  height: 18px;
}

.invocation-action-card .tree-node-symlink {
  display: flex;
  align-items: center;
  gap: 4px;

  .icon {
    opacity: 0.7;
    width: 18px;
    height: 18px;
  }

  .icon:hover {
    opacity: 1;
  }
}

.invocation-error-card .error-contents {
  background: #fafafa;
  border-radius: 8px;
  padding: 8px 16px;
  max-height: 360px;
  white-space: pre-wrap;
  overflow-y: scroll;
}

.file-name {
  display: flex;
  align-items: flex-start;
}

.file-name:hover {
  color: #888;
}

.file-name .digest-component {
  margin-left: 8px;
}

.invocation .trace-viewer {
  margin-top: 24px;
}

.cache-requests-card.card {
  /* 'overflow: hidden' styling prevents sticky spinner from working properly. */
  overflow: initial;
}

.cache-requests-card .action-id {
  font-weight: 600;
}

.cache-requests-card .action-id .digest-component {
  text-decoration: underline;
}

.cache-requests-card .chevron {
  margin-right: 0;
  width: 12px;
  height: 12px;
}

.cache-requests-card .title {
  display: flex;
  align-items: center;
}

.cache-requests-card .row {
  display: flex;
  align-items: center;
}

.cache-requests-card .column {
  display: flex;
  flex-direction: column;
}

.cache-requests-card .controls {
  gap: 8px;
}

.cache-requests-card .controls .separator {
  border-left: 1px solid #eee;
  align-self: stretch;
}

.cache-requests-card .controls button {
  font-weight: inherit;
  font-size: inherit;
}

.cache-requests-card .column-headers > div {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.cache-requests-card .row.action-label {
  gap: 4px;
  overflow: hidden;
}

.cache-requests-card .action-label > div {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cache-requests-card .action-mnemonic {
  /* Don't let a really long target label cause the mnemonic to get truncated. */
  flex-shrink: 0;
}

.cache-requests-card .details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cache-requests-card .caption {
  color: #757575;
}

.cache-requests-card .group-title {
  display: flex;
  align-items: baseline;
  width: 100%;
  box-sizing: border-box;
  background: #eee;
}

.cache-requests-card .group-title > * {
  padding: 4px;
}

.cache-requests-card .target-id {
  background: #f5f5f5;
}

.cache-requests-card .group-contents {
  font-size: 14px;
}

.cache-requests-card .results-table {
  border: 1px solid #eee;
  border-radius: 4px;
  position: relative;
}

.cache-requests-card .loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;

  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: grayscale(100%);
}

.cache-requests-card .loading.results-updating {
  position: sticky;
  top: 0;
  height: 0;
  overflow: visible;
  z-index: 1;
  transform: translateY(32px);
}

.cache-requests-card .column-headers {
  border-bottom: 1px solid #eee;
}

.cache-requests-card .results-list,
.cache-requests-card .column-headers {
  display: flex;
  width: 100%;
}

.cache-requests-card .results-list > :nth-child(2n + 1) {
  background: #fafafa;
}

.cache-requests-card .results-list > .row {
  gap: 0;
}

.cache-requests-card .results-list > .row > div,
.cache-requests-card .row.column-headers > div {
  padding: 4px;

  display: flex;
  align-items: center;
  gap: 6px;
}

.cache-requests-card .row.column-headers svg {
  width: 16px;
  height: 16px;
}

.cache-requests-card :is(.results-list .row, .column-headers.row) > div:not(:first-child) {
  border-left: 1px solid #eee;
}

.cache-requests-card .digest-column {
  width: 168px;
}

.cache-requests-card .digest-component-size {
  text-align: right;
}

.cache-requests-card .compressed-size-column {
  width: 88px;
  text-align: right;
}

.cache-requests-card .cache-type-column {
  width: 42px;
}

.cache-requests-card .duration-column {
  width: 80px;
  text-align: right;
}

.cache-requests-card .status-column {
  width: 60px;
}

.cache-requests-card .download-button {
  width: 18px;
  height: 18px;
  padding: 4px;
  margin: -2px;
  border-radius: 8px;
  stroke: #2196f3;
  cursor: pointer;
}

.cache-requests-card .download-button:hover {
  stroke: #03a9f4;
  background: #eee;
}

.cache-requests-card .name-column {
  width: 28%;
  max-width: 300px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;

  .name-content {
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.cache-requests-card.group-by-target .name-column {
  /* When showing only action mnemonic, make the name column a bit smaller */
  width: 20%;
  max-width: 220px;
}

.cache-requests-card .column-with-icon {
  position: relative;
}

.cache-requests-card .column-with-icon > span {
  padding-left: 20px;
}

.cache-requests-card .column-with-icon .icon {
  /* remove icon from normal flow */
  position: absolute;
  left: 4px;
  width: 16px;
  height: 16px;
  padding-top: 3px;
}

.cache-requests-card .compressed-size-column .icon {
  stroke: #bdbdbd;
}

.cache-requests-card .compressed-size-column.uncompressed {
  color: #bdbdbd;
}

.cache-requests-card .icon.green {
  stroke: #4caf50;
}

.cache-requests-card .results-list div.waterfall-column {
  display: flex;
  align-items: center;
  align-self: stretch;
  flex-grow: 1;
  --min-bar-width: 2px;
  padding-left: 0;
  /* prevent bars from rendering slightly outside the table */
  padding-right: var(--min-bar-width);
  position: relative;
}

@media (max-width: 1300px) {
  .cache-requests-card div.waterfall-column.waterfall-column {
    display: none;
  }
}

.cache-requests-card .waterfall-bar {
  background-color: #2196f3;
  border-radius: 2px;
  min-width: var(--min-bar-width);
  height: 8px;
}

.cache-requests-card .waterfall-gridlines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
}

.cache-requests-card .waterfall-gridlines > :first-child {
  border-left: 1px solid #eee;
}

.cache-requests-card .waterfall-gridlines > div:not(:last-child) {
  border-right: 1px solid #f5f5f5;
}

.cache-requests-card .waterfall-gridlines > div {
  flex-grow: 1;
}

.cache-requests-card .load-more-button {
  gap: 8px;
}

.cache-requests-card-hovercard {
  margin: 12px;
  background: rgba(255, 255, 255, 1);
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  font-size: 14px;
  backdrop-filter: blur(3px);
  display: flex;
}

.cache-result-hovercard {
  margin: 12px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  font-size: 14px;
  backdrop-filter: blur(3px);

  display: grid;
  grid-template-columns: min-content auto;
  grid-gap: 0 16px;
}

.cache-result-hovercard > * {
  white-space: nowrap;
}

.cache-result-hovercard .compression-savings.positive,
.cache-requests-card .compression-savings.positive {
  color: #43a047;
}

.cache-result-hovercard .compression-savings.negative,
.cache-requests-card .compression-savings.negative {
  color: #757575;
}

.link-repo-modal {
  outline: none;
}

.link-repo-modal .dialog-footer {
  justify-content: end;
}

.link-repo-modal .dialog-footer button {
  margin-right: 10px;
}

.popup.cache-miss-popup {
  right: auto;
  flex-direction: column;
  padding: 12px;
  width: max-content;
}

.popup.cache-miss-popup .title {
  font-weight: 600;
  font-size: 15px;
  background: white;
  padding: 4px;
}

.popup.cache-miss-popup button {
  margin-top: 5px;
}

.popup.cache-miss-popup .checkbox-row {
  display: flex;
  width: 100%;
  margin-bottom: 5px;
}

.debug-cache-miss-container {
  position: relative;
}

.debug-cache-miss-container button {
  font-size: 14px;
}

.debug-cache-miss-button {
  padding-left: 5px;
}

.action-line {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgb(238, 238, 238);
}

.action-title {
  font-weight: 700;
  font-size: 18px;
  color: #212121;
}

.action-header {
  display: flex;
  justify-content: space-between;
}

.action-list {
  display: block;
}

.action-section {
  display: flex;
  margin-bottom: 16px;
  color: #212121;
}

.action-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.action-header .base-button {
  flex-shrink: 0;
}

.action-header .base-button .icon.copy-icon {
  width: 16px;
  height: 16px;
  margin-right: 4px;
}

.action-section > div {
  flex-grow: 1;
}

.action-section .action-property-title {
  width: 20%;
  flex-grow: 0;
  flex-shrink: 0;
  word-break: break-word;
  text-align: right;
  margin-right: 16px;
  font-weight: 700;
  font-size: 14px;
}

.action-section .platform-property-overridden * {
  color: #757575;
}

.action-section .platform-property-note {
  color: #757575;
}

.action-section .grpc-status-error {
  color: #d32f2f;
}

.action-section .server-log-title {
  align-self: center;
}

.cache-sections {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
}

.cache-section {
  min-width: 350px;
  width: calc(50% - 32px);
  margin-bottom: 32px;
  margin-right: 32px;
}

.cache-title {
  margin-top: 32px;
  font-weight: 700;
  display: flex;
  font-size: 20px;
}

.cache-subtitle {
  margin-bottom: 24px;
  margin-top: 4px;
  color: #888;
  font-size: 14px;
}

.cache-details {
  color: #888;
  display: flex;
  flex-wrap: wrap;
}

.cache-details .icon {
  opacity: 0.7;
  margin-right: 6px;
  margin-top: 2px;
  width: 18px;
  height: 18px;
}

.cache-chart {
  display: flex;
  font-size: 16px;
  align-items: center;
}

.cache-chart-container {
  height: 80px;
  width: 80px;
  margin-right: 32px;
}

.cache-chart .recharts-responsive-container {
  flex-shrink: 0;
  margin-right: 32px;
}

.cache-stat {
  font-weight: 600;
  font-weight: 20px;
}

.cache-stat-duration {
  min-width: 60px;
  display: inline-block;
}

.cache-stat-description {
  font-weight: normal;
}

.cache-chart-label {
  display: flex;
  white-space: nowrap;
}

.color-swatch {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  margin-right: 8px;
  margin-top: 3px;
  display: block;
  background-color: #eee;
}

.cache-chart-label .compressed-size {
  font-size: 14px;
  margin-bottom: 2px;
}

.cache-chart-label .size-savings.positive {
  color: #388e3c;
}

.cache-chart-label .size-savings.negative {
  color: #888;
}

.header {
  display: flex;
  justify-content: space-between;
}

.header .button {
  flex-grow: 0;
}

.button .download-gz-file {
  font-size: 14px;
}

.download-color-swatch {
  background-color: #03a9f4;
}

.upload-color-swatch {
  background-color: #3f51b5;
}

.cache-hit-color-swatch {
  background-color: #4caf50;
}

.cache-miss-color-swatch {
  background-color: #f44336;
}

.no-cache-stats {
  margin-top: 32px;
  font-size: 16px;
}

.fetch-url {
  font-weight: 300;
  text-decoration: italic;
  margin-top: 8px;
}

.dense-invocation {
  display: flex;
  justify-content: space-between;
}

.invocation .breadcrumbs-and-buttons {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap-reverse;
  gap: 8px;
}

.invocation .breadcrumbs-and-buttons .breadcrumbs {
  width: 260px;
  flex-grow: 10;
}

.invocation-share-button svg,
.invocation-ask-button svg {
  margin-right: 12px;
  margin-left: -4px;
  width: 16px;
  height: 16px;
}

.filled-button.invocation-ask-button {
  background-color: #2196f3;
}

.invocation-share-dialog .row {
  display: flex;
  flex-direction: row;
}

.invocation-share-dialog .row > :not(:last-child) {
  margin-right: 8px;
}

.invocation-share-dialog .link-input {
  flex-grow: 1;
  text-overflow: ellipsis;
}

.invocation-share-dialog > :not(:last-child) {
  margin-bottom: 32px;
}

.invocation-share-dialog .visibility-explanation {
  margin-top: 8px;
  color: #333;
}

.invocation-share-dialog select {
  min-width: 50%;
}

.invocation-share-dialog .visibility-header {
  font-weight: 600;
  margin-bottom: 8px;
}

.invocation-share-dialog .changing-permissions-disabled-explanation {
  margin-top: 16px;
  padding: 16px;
  border-radius: 8px;
  background: #e1f5fe;
}

.invocation-share-dialog .error-message {
  margin-top: 16px;
  padding: 16px;
  border-radius: 8px;
  background: #ffebee;
}

.invocation-share-dialog-footer .loading-message {
  flex-shrink: 0;
}

.invocation-execution-table {
  margin-top: 16px;
}

.invocation-execution-row {
  display: flex;
  border-top: 1px solid #eee;
  padding: 16px 0;
  position: relative;
}

.invocation-execution-row.nested {
  padding-left: 32px;
}

.invocation-execution-row:last-child {
  border-bottom: 1px solid #eee;
}

.invocation-execution-row:hover {
  background: #fafafa;
}

.invocation-execution-row-image {
  margin-left: 4px;
  margin-right: 16px;
}

.invocation-execution-row-image .rotating {
  animation: rotate 2s linear infinite;
}

.invocation-execution-row .execution-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 15px;
}

.invocation-execution-row .execution-label {
  font-weight: 600;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}

.invocation-execution-row .breadcrumb-separator {
  /* Use em units to match text size. */
  width: 1em;
  height: 1em;
  /* Offset for optical alignment. */
  transform: translateY(0.15em);
}

.invocation-execution-row .command-snippet {
  font-size: 12px;
  color: #757575;
  border-radius: 4px;
  margin-bottom: 8px;
}

.invocation-execution-row-header-status {
  font-weight: 600;
}

.invocation-execution-row .status {
  color: #000;
  display: flex;
  gap: 8px;
  margin-bottom: 2px;
}

.invocation-execution-row .status-name {
  font-weight: 600;
}

.invocation-execution-row .status-name.error {
  color: #f44336;
}

.invocation-execution-row .invocation-execution-row-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;

  color: #757575;
  font-size: 12px;
}

.invocation-execution-empty-state {
  margin-top: 32px;
}

.invocation-execution-empty-actions {
  margin-top: 8px;
}

.invocation-top-right-buttons {
  display: flex;
  align-items: center;
  margin-left: 8px;
  flex-shrink: 0;
  justify-content: flex-end;
  flex-grow: 1;
}

.invocation-top-right-buttons > :not(:last-child) {
  margin-right: 8px;
}

.invocation-compare-button-container {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.comparison-buffer-illustration {
  display: flex;
  align-items: center;
  margin-left: -4px;
  margin-right: 8px;

  --illustration-color: #ddd;
}

.base-button:hover .comparison-buffer-illustration,
.comparison-buffer-illustration.buffered {
  --illustration-color: #212121;
}

.comparison-buffer-icon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-sizing: border-box;
  transition: 100ms;
}

.comparison-buffer-icon-a {
  background: var(--illustration-color);
  margin-right: 4px;
}

.comparison-buffer-icon-b {
  background: transparent;
  border: 1px solid var(--illustration-color);
}

.invocation-cancel-button-container {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.invocation-cancel-button-container .icon {
  margin-right: 6px;
  margin-top: 2px;
  width: 16px;
  height: 16px;
}

.invocation-menu-container {
  position: relative;
}

.invocation-menu-container .base-button.invocation-menu-button {
  width: 40px;
  height: 40px;
  border: none;
  padding: 0;
  justify-content: center;
}

.invocation-delete-dialog .error-description {
  margin-top: 16px;
  background: #ffebee;
  padding: 16px;
  border-radius: 8px;
}

.invocation-sort-title {
  margin-right: 8px;
  margin-left: 12px;
}

.invocation-filter-title {
  margin-right: 8px;
}

.invocation-filter-control select {
  max-width: 160px;
}

.invocation-sort-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.invocation-content-header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  grid-gap: 8px;
}

.invocation-content-header .title {
  display: flex;
  gap: 8px;
  align-items: center;
}

.download-exec-log-button {
  width: 16px;
  height: 16px;
  cursor: pointer;
  color: #888;
}

.metadata-title {
  font-weight: 600;
  color: #212121;
  margin-bottom: 2px;
}

.metadata-title:not(:first-child),
.snapshot-id-container {
  margin-top: 8px;
  border-top: 1px solid #eee;
  padding-top: 8px;
}

.metadata-detail {
  font-weight: 300;
  color: #444;
  display: flex;
  justify-content: space-between;
}

.snapshot-id-details {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
}

.snapshot-id-container {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
}

.invalidate-button {
  font-weight: bold;
  color: #d32f2f;
  text-decoration: underline;
  cursor: default;
}

.invalidate-button:hover {
  color: #af2626;
}

.snapshot-more-button {
  margin-left: 10px;
}

.prop-name {
  color: #212121;
  font-weight: 600;
}

.prop-value .detail {
  color: #aaa;
}

.action-list .expected-output {
  display: flex;
  align-items: center;
  gap: 4px;

  .icon {
    opacity: 0.7;
  }

  .expected-output-label {
    color: #444;
  }
}

.action-list .missing-output {
  display: flex;
  align-items: center;

  .icon {
    height: 18px;
    width: 18px;
    opacity: 0.7;
  }

  .expected-output-label {
    color: #444;
  }
}

.state-page .runner-execution-status {
  display: flex;
  align-items: center;
}

.state-page button.impersonate-button,
.stage-page button.impersonate-button:hover {
  margin-top: 8px;
  background-color: #ffc107;
  color: black;
}

.state-page button.request-button {
  margin-top: 16px;
}

.state-page button.switch-button {
  margin-top: 8px;
}

.state-page .error-text {
  color: #d32f2f;
}

.workflow-rerun-button > :not(:last-child) {
  margin-right: 8px;
}

.workflow-rerun-button svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.workflow-rerun-button .spinner {
  --size: 16px;
}

.workflow-rerun-button .loading {
  --spinner-size: 18px;

  width: var(--spinner-size);
  height: var(--spinner-size);
  margin-left: -2px;
}

.workflow-rerun-button .loading::before {
  width: var(--spinner-size);
  height: var(--spinner-size);
}

.invocation-query-graph-card {
  padding: 0;
  background: #fafafa;
  box-shadow:
    0px 1px 4px rgba(0, 0, 0, 0.2),
    0px 1px 6px rgba(0, 0, 0, 0.1);
}

.invocation-query-graph-card:hover {
  box-shadow:
    0px 2px 6px rgba(0, 0, 0, 0.2),
    0px 1px 10px rgba(0, 0, 0, 0.1);
}

svg.invocation-query-graph {
  width: 100%;
  cursor: all-scroll;
}

svg.invocation-query-graph .nodes {
  fill: #fff;
  stroke: #212121;
  stroke-width: 4px;
}
svg.invocation-query-graph .nodes text {
  fill: #000;
}

svg.invocation-query-graph path {
  stroke: #212121;
  fill: #212121;
  stroke-width: 2px;
}

svg.invocation-query-graph .nodes text {
  stroke-width: 0;
  font-size: 0.9em;
}

svg.invocation-query-graph .nodes rect {
  rx: 8px;
  ry: 8px;
}

.invocation-query-graph-hidden-card .show-anyway {
  font-weight: 600;
  text-decoration: underline;
}

.invocation-query-graph-summary-card .graph-summary {
  margin-top: 16px;
}

.invocation-query-graph-summary-card .summary-section {
  margin-top: 16px;
}

.invocation-query-graph-summary-card .summary-header {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.invocation-query-graph-summary-card .summary-explanation {
  margin-bottom: 8px;
  color: #616161;
}

.invocation-query-graph-summary-card .summary-table {
  display: grid;
  margin-top: 8px;
  gap: 4px 16px;
  grid-template-columns: auto 1fr;
}

.invocation-query-graph-summary-card .summary-numeric-value {
  font-weight: 600;
  min-width: 48px;
  color: #212121;
  text-align: right;
}

.invocation .build-logs-card .loading.loading-dark {
  background: transparent;
}

.invocation .invocation-tab-loading {
  margin-top: 32px;
}

.invocation .more-buttons button {
  margin-top: 16px;
  margin-right: 16px;
}

.invocation .more-buttons.nested {
  margin-top: 0;
  margin-bottom: 32px;
  margin-left: 32px;
}

.workflow-details-header {
  margin-top: 32px;
  margin-bottom: 16px;
}

.child-invocations-section {
  margin-top: 16px;
}

.child-invocations-section .child-invocations-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0;
}

.child-invocation-card.status-succeeded {
  --status-color: #8bc34a;
}
.child-invocation-card.status-failed {
  --status-color: #f44336;
}
.child-invocation-card.status-in-progress {
  --status-color: #03a9f4;
}
.child-invocation-card:is(.status-queued, .status-not-run) {
  --status-color: #3f51b5;
}

.child-invocation-card {
  margin: 0;
  padding: 16px;

  border-radius: 4px;
  border-left: 4px solid var(--status-color);

  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
}

.child-invocation-card.status-failed {
  border: 1px solid var(--status-color);
  border-left: 4px solid var(--status-color);
}

.child-invocation-card .command {
  font-weight: 600;
}

.child-invocation-card .duration {
  color: #616161;
}

.child-invocation-card:is(.status-not-run, .status-queued) :is(.duration, .command) {
  color: var(--status-color);
}

.child-invocation-card.clickable {
  box-shadow: var(--shadow-2);
  transition: box-shadow 100ms ease-out;
}

.child-invocation-card.clickable:hover {
  box-shadow: var(--shadow-4);
  background: #fafafa;
}

.child-invocation-card .icon {
  width: 20px;
  height: 20px;
}

.child-invocation-card .icon {
  stroke: var(--status-color);
}

.child-invocation-card .duration {
  text-align: right;
  margin-left: auto;
  white-space: nowrap;
}

.timing.card .progress-bar {
  height: 8px;
  border-radius: 4px;
  max-width: 300px;
  overflow: clip;
  background: #bbdefb;
}

.timing.card .progress-label {
  margin-bottom: 4px;
  font-size: 13px;
  color: #616161;
}

.timing.card .progress-bar-inner {
  height: 100%;
  background: #2196f3;
  transform-origin: left;
}

.invocation-card {
  position: relative;

  .comparison-buffer-illustration {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 16px;
    margin-right: 0;
  }
}

.target-more-buttons {
  display: flex;
  gap: 16px;
}

.target-more-buttons div {
  display: flex;
  align-items: center;
}

.target-more-buttons svg {
  height: 16px;
  color: rgba(0, 0, 0, 0.5);
}

.invocation-compare-button-container-mini {
  position: absolute;
  top: 8px;
  right: 8px;
}

.invocation-compare-button-container-mini .invocation-menu-button {
  width: 40px;
  height: 40px;
  border: none;
  padding: 0;
  justify-content: center;
}
