h1,
h2,
h3,
h4,
h5,
body {
  padding: 0;
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

body {
  font-family: "Open Sans", sans-serif;
  display: flex;
  flex-direction: column;
  word-break: break-word;
  background-color: #fff;

  --code-font: "Source Code Pro", monospace;
}

button,
input,
select {
  font-family: inherit;
}

#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.root {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
  outline: 0;
  /*
    If we do set an underline, offset it.
    We often render underscores in links, and the underscores
    are not clearly visible unless we offset the underline.
  */
  text-underline-offset: 4px;
}

button {
  outline: 0;
  margin: 0;
}

/** Container **/

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 32px;
  box-sizing: border-box;
}

.container.narrow {
  max-width: 800px;
}

/** Menu **/

.menu {
  height: 90px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  font-weight: 700;
  font-size: 24px;
  z-index: 2;
  position: relative;
  background-color: #212121;
  color: #fff;
}

.menu.light {
  background-color: #fff;
  color: #000;
}

.menu .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.menu .container div {
  display: flex;
  align-items: center;
}

.menu .title img {
  height: 40px;
}

.menu-child-title {
  margin-left: 8px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
}

.menu .icon {
  padding-top: 1px;
  cursor: pointer;
}

.menu .profile-photo {
  height: 40px;
  width: 40px;
  border-radius: 20px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.95);
}

.menu .default-photo {
  padding: 8px;
  box-sizing: border-box;
}

.menu-control {
  cursor: pointer;
  opacity: 0.8;
}

.menu .title {
  color: rgba(255, 255, 255, 0.9);
}

.menu-child {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/** Side menu **/

.side-menu-container {
  position: absolute;
}

.side-menu-shade {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.side-menu {
  position: absolute;
  top: 46px;
  right: 8px;
  background-color: #212121;
  color: #fff;
  padding: 8px 32px 32px 32px;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  z-index: 1;
  font-size: 18px;
}

.side-menu li {
  margin-top: 16px;
  font-weight: 700;
  cursor: pointer;
}

/** Shelf **/

.shelf {
  background-color: #f8f8f8;
  border-bottom: 1px solid #eaeaea;
  padding: 32px 0;
  font-size: 14px;
}

.shelf b {
  font-weight: 600;
}

.shelf .titles {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
}

.shelf .title {
  font-weight: 600;
  font-size: 32px;
  margin-right: 16px;
  margin-bottom: 8px;
}

.shelf .subtitle {
  font-size: 18px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.8);
  margin-bottom: 8px;
}

.shelf.success {
  border-bottom: 6px solid #8bc34a;
}

.shelf.failure {
  border-bottom: 6px solid #f44336;
}

.shelf.in-progress {
  border-bottom: 6px solid #03a9f4;
}

.shelf.disconnected {
  border-bottom: 6px solid #aaa;
}

.shelf.neutral {
  border-bottom: 6px solid #888;
}

.breadcrumbs {
  font-size: 16px;
  color: #aaa;
  margin-bottom: 8px;
}

.breadcrumbs > :not(:last-child)::after {
  content: "›";
  padding: 0 8px;
  color: #ccc;
  font-weight: 600;
}

.shelf .details {
  font-size: 16px;
  line-height: 1.6em;
  color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.shelf .detail {
  display: flex;
  align-items: center;
  margin-right: 32px;
  margin-top: 8px;
}

.shelf .details .icon {
  margin-right: 8px;
}

.shelf .details img:first-of-type {
  margin-left: 0;
}

svg.icon {
  /* Default icon color is gray */
  stroke: #616161;
  /* By default, icons should not get squished */
  flex-shrink: 0;
}

svg.icon.white {
  stroke: #fff;
}

svg.icon.gray,
svg.icon.grey {
  stroke: #616161;
}

svg.icon.black {
  stroke: #000;
}

svg.icon.green {
  stroke: #8bc34a;
}

svg.icon.red {
  stroke: #f44336;
}

svg.icon.blue {
  stroke: #03a9f4;
}

svg.icon.brown {
  stroke: #774a21;
}

svg.icon.purple {
  stroke: #673ab7;
}

svg.icon.orange {
  stroke: #ff6f00;
}

.rotate-90 {
  transform: rotate(90deg);
}

.org-button {
  float: right;
  background-color: #212121;
  padding: 8px 16px;
  border-radius: 32px;
  margin-top: -6px;
  color: #fff;
  font-weight: 600;
}

/** Tabs **/

.tabs {
  display: flex;
  align-items: center;
  margin-top: 16px;
  flex-wrap: wrap;
}

.tab {
  border-radius: 50px;
  border: 1px solid #eee;
  margin-right: 8px;
  padding: 12px 24px;
  cursor: pointer;
  margin-top: 8px;
  color: #9e9e9e;
  text-align: center;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  user-select: none;
  background: #fff;
}

.tab:hover {
  background: #fafafa;
}

.tab:active {
  background: #f5f5f5;
}

.tab.selected {
  background: #212121;
  color: #fff;
}

/** Runs **/

.runs {
  display: flex;
  align-items: center;
  margin-top: 16px;
  flex-wrap: wrap;
}

.run {
  box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  margin-right: 8px;
  padding: 12px 32px 8px 32px;
  cursor: pointer;
  margin-top: 8px;
  text-align: center;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 4px solid transparent;
}

.run-grid .run {
  margin-right: 6px;
  margin-top: 6px;
  width: 20px;
  height: 20px;
  padding: 0;
  border-radius: 2px;
  color: transparent;
  overflow: hidden;
}

.run.test-passed {
  background-color: #8bc34a;
}

.run.test-failed {
  background-color: #f44336;
}

.run.test-error {
  background-color: #000;
}

.run.test-flaky {
  background-color: #888;
}

.run.selected {
  border-bottom: 4px solid rgba(0, 0, 0, 0.2);
}

/** Card **/

body {
  /* Shadow stacks based on: https://twitter.com/pixeljanitor/status/1735758919509684360 */
  --shadow-2: 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-4: 0px 0px 0px 1px rgba(0, 0, 0, 0.06), 0px 1px 1px -0.5px rgba(0, 0, 0, 0.06),
    0px 3px 3px -1.5px rgba(0, 0, 0, 0.06), 0px 6px 6px -3px rgba(0, 0, 0, 0.06);
  --shadow-6: 0px 0px 0px 1px rgba(0, 0, 0, 0.06), 0px 1px 1px -0.5px rgba(0, 0, 0, 0.06),
    0px 3px 3px -1.5px rgba(0, 0, 0, 0.06), 0px 6px 6px -3px rgba(0, 0, 0, 0.06), 0px 8px 12px -6px rgba(0, 0, 0, 0.06),
    0px 10px 24px -12px rgba(0, 0, 0, 0.06);
}

.card {
  box-shadow: var(--shadow-4);
  margin: 32px 0;
  padding: 32px;
  border-radius: 8px;
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  background-color: #fff;
}

a.card:hover {
  box-shadow: var(--shadow-6);
}

.card.selected-keyboard-shortcuts {
  outline: 2px solid #2196f3;
}

.card.card-success {
  border-left: 6px solid #8bc34a;
}

.card.card-skipped {
  border-left: 6px solid #673ab7;
}

.card.card-failure {
  border-left: 6px solid #f44336;
}

.card.card-flaky {
  border-left: 6px solid #ff6f00;
}

.card.card-timeout {
  border-left: 6px solid #616161;
}

.card.card-broken {
  border-left: 6px solid #000;
}

.card.card-neutral {
  border-left: 6px solid #888;
}

.card.card-disconnected {
  border-left: 6px solid #aaa;
}

.card.card-in-progress {
  border-left: 6px solid #03a9f4;
}

.card.card-suggestion {
  border-left: 6px solid transparent;
}

.card-suggestion.card-suggestion-bot {
  background: #2196f3;
  color: #fff;
}

.card-suggestion.card-suggestion-bot svg {
  stroke: white;
}

.card.dark {
  background-color: #212121;
  color: #fff;
}

.card.light-terminal {
  background-color: #fff;
}

.dense .card.light-terminal:hover {
  box-shadow: none;
}

.history .card-hover {
  display: flex;
}

.history .card-hover .details {
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: start;
}

.history .card-hover .details.details {
  margin-top: 8px;
  gap: 4px;
}

.history .card-hover .role-badge {
  font-size: 13px;
  padding: 1px 8px;
  border-radius: 12px;
}

.history .card-hover .details .detail {
  margin-right: 0;
  margin-top: 0;
}

.history .card-hover .icon {
  width: 16px;
  height: 16px;
}

.history .card .details:empty {
  display: none;
}

.card.card-success:hover {
  border-left: 6px solid #7cb342;
}

.card.card-failure:hover {
  border-left: 6px solid #e53935;
}

.card-hover {
  margin: 8px;
  min-width: 400px;
  padding: 16px 24px;
  box-sizing: border-box;
}

.card.card-hover .title.title {
  font-size: 16px;
  margin-right: 16px;
}

.card.card-hover .subtitle {
  font-size: 14px;
}

.card > .icon,
.card .title .icon {
  margin-right: 16px;
  padding-top: 1px;
}

.card .title {
  font-weight: 700;
  font-size: 18px;
}

.card .content {
  flex-grow: 1;
  width: 1px;
}

.card .details {
  line-height: 1.6em;
  word-break: break-all;
  white-space: pre-wrap;
}

.card .details:not(:first-child) {
  margin-top: 16px;
}

.card .more {
  margin-top: 16px;
  font-weight: 600;
  color: #212121;
  cursor: pointer;
  user-select: none;
}

.card .more-loading {
  margin-top: 16px;
  color: #757575;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 16px;
  user-select: none;
}

.card-suggestion-message {
  word-break: normal;
  max-width: 800px;
}

.card-suggestion-message a {
  text-decoration: underline;
}

.card-suggestion-reason {
  margin-top: 8px;
  font-size: 0.8em;
  opacity: 0.7;
  max-width: 800px;
}

.card-suggestion .bazel-flag {
  white-space: nowrap;
}

.card-suggestion p {
  margin-top: 0;
}

.card-suggestion .suggestions-tab-link {
  margin-top: 8px;
}

.card-suggestion .break-all {
  word-break: break-all;
}

.card-suggestion .details {
  word-break: initial;
}

.suggestions .settings-link {
  font-size: 14px;
}

.dense .suggestions .settings-link {
  margin-left: 20px;
}

/** Home **/

.home {
  margin-top: 32px;
  margin-bottom: 72px;
}

.home .title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
}

.home h2 {
  margin-top: 48px;
  margin-bottom: 16px;
}

.home b {
  font-weight: 600;
}

code {
  border: 1px solid #eee;
  border-radius: 4px;
  background-color: #fafafa;
  font-family: "Source Code Pro", monospace;
  box-sizing: border-box;
}

.code-font {
  font-family: var(--code-font);
}

code:not(.inline-code) {
  display: block;
  padding: 24px 32px;
  border-radius: 8px;
  margin-top: 16px;
  margin-bottom: 16px;
  line-height: 1.6em;
  white-space: nowrap;
  overflow-y: auto;
  max-width: 100%;
  position: relative;
}

code.wrap {
  white-space: pre-wrap;
}

code button {
  position: absolute;
  top: 4px;
  right: 4px;
  padding: 2px 16px;
  border: 0;
  background-color: #eee;
  border-radius: 8px;
  font-size: 0.6em;
  font-weight: bold;
  outline: 0;
  box-shadow: 0;
  cursor: pointer;
  line-height: inherit;
  text-transform: uppercase;
}

code[data-header] {
  padding: 40px 32px 24px 32px;
}

code[data-header]:before {
  content: attr(data-header);
  position: absolute;
  top: 0;
  left: 0;
  padding: 2px 32px;
  border-right: 1px solid #eee;
  border-bottom: 1px solid #eee;
  border-bottom-right-radius: 8px;
  font-size: 0.8em;
  font-weight: bold;
  pointer-events: none;
}

.code {
  font-family: "Source Code Pro", monospace;
}

code .comment {
  color: #888;
}

.home p {
  margin-top: 32px;
}

.home p.callout {
  background-color: #ffe082;
  padding: 16px 32px;
  border-radius: 8px;
}

.home a:not(.link-button) {
  text-decoration: underline;
}

.setup .setup-step-header {
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 600;
}

.setup-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
  /* negate 8px margin-top on children, to prevent the first row from having a top margin */
  margin-top: -8px;
}

.setup-controls > * {
  margin-top: 8px;
  margin-right: 8px;
}

.setup-controls .group-container {
  background-color: #fafafa;
  border: 1px solid #eee;
  padding: 4px 16px 4px 0;
  min-height: 40px;
  box-sizing: border-box;
  border-radius: 4px;
  flex-grow: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.setup-controls input {
  vertical-align: middle;
  margin-left: 16px;
}

.setup-controls label {
  padding-left: 8px;
  vertical-align: middle;
  user-select: none;
}

.setup-controls input,
.setup-controls label {
  cursor: pointer;
}

.setup-controls .group {
  display: flex;
  align-items: baseline;
}

.setup-controls .credential-picker {
  max-width: 256px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.setup .no-api-keys {
  background: #e1f5fe;
  padding: 16px;
  border-radius: 8px;
}

.setup .no-api-keys-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  /* negate margin-top on children */
  margin-top: -8px;
}

.setup .no-api-keys-content > * {
  margin-top: 8px;
  margin-right: 8px;
}

.setup .downloads {
  display: flex;
  margin-top: 16px;
  margin-bottom: 16px;
}

.setup .downloads a {
  background-color: #212121;
  color: #fff;
  padding: 7px 16px;
  margin-right: 8px;
  border-radius: 8px;
  text-decoration: none;
}

.setup-notice {
  padding: 16px 24px;
  border-radius: 8px;
  background-color: #e1f5fe;
  margin-top: -16px;
  margin-bottom: 16px;
}

.group-section {
  display: flex;
  align-items: baseline;
}

/** Footer **/

.footer {
  color: #aaa;
  font-size: 0.8em;
  padding: 32px 32px 32px 32px;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.footer > :not(:last-child) {
  margin-right: 16px;
}

.footer img {
  height: 16px;
  opacity: 0.7;
}

/** History **/

.history .card {
  padding: 24 32px;
  margin: 32px 0;
}

.card .titles {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 0;
}

.history .card .title {
  font-size: 24px;
  flex-shrink: 0;
  margin-right: 16px;

  max-width: 100%;
  overflow-x: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card .subtitle {
  color: #aaa;
}

.history .details {
  font-size: 14px;
  line-height: 1.6em;
  color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
  flex-shrink: 1;
}

.history .detail {
  display: flex;
  align-items: center;
  margin-right: 24px;
  margin-top: 8px;
}

.history .details .icon {
  margin-right: 8px;
}

.history .details .icon:first-of-type {
  margin-left: 0;
}

.titles .role-badge {
  margin-right: 8px;
}

.role-badge {
  border-radius: 14px;
  padding: 2px 8px;
  flex-shrink: 0;
}

.role-badge.CI_RUNNER {
  background: #212121;
  color: white;
}

.role-badge.CI {
  background: #cfd8dc;
}

.role-badge.HOSTED_BAZEL {
  background: #0d47a1;
  color: white;
}

.empty-state .button {
  width: 100%;
  padding: 16px 32px;
  border: 2px solid #000;
  font-size: 16px;
  font-weight: 600;
  border-radius: 64px;
  margin-bottom: 32px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  box-sizing: border-box;
  line-height: 24px;
  max-width: 560px;
}

.empty-state b {
  font-weight: 600;
}

.load-more {
  width: 100%;
  padding: 24px 0;
  background-color: #212121;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border: 0;
  border-radius: 8px;
  margin-bottom: 32px;
  cursor: pointer;
}

.load-more:disabled {
  background-color: #aaa;
  color: #fff;
}

/** Misc **/

.build-logs-card {
  position: relative;
  padding-bottom: 24px;
}

.inline-code {
  font-family: "Source Code Pro", monospace;
  background: #eee;
  border-radius: 4px;
  padding: 2px;
}

.disclaimer {
  color: #aaa;
  margin-top: 4px;
}

.list-grid {
  display: flex;
  color: #888;
  line-height: 1.8em;
}

.list-grid div:first-of-type {
  width: 1px;
  flex-grow: 2;
  color: #444;
  font-weight: 600;
}

.list-grid div {
  width: 1px;
  flex-grow: 1;
}

.list-grid div:last-of-type {
  text-align: right;
  color: #aaa;
}

.list-title {
  margin: 32px 0 8px 0;
  font-weight: 700;
  display: flex;
  font-size: 20px;
}

.timing .list-grid div:first-of-type {
  font-size: 12px;
  font-weight: 500;
}

.list-percent {
  background-color: #8bc34a;
  height: 6px;
  min-width: 1px;
  max-width: 100%;
  margin-top: 2px;
  margin-bottom: 2px;
  position: relative;
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
}

.list-percent:after {
  content: attr(data-percent);
  font-size: 8px;
  color: #888;
  font-weight: 300;
  display: block;
  position: absolute;
  right: -104px;
  top: -8px;
  width: 100px;
}

.sort-controls {
  display: flex;
  flex-wrap: wrap;
}

.sort-control {
  color: #888;
  margin-top: 4px;
  margin-right: 12px;
}

.sort-control:after {
  content: "•";
  margin-left: 12px;
}

.sort-control:last-of-type:after {
  display: none;
}

.sort-control .selected {
  color: #000;
  font-weight: 600;
}

.empty-state {
  margin-top: 16px;
  font-size: 16px;
}

.empty-state h2 {
  margin-top: 32px;
  margin-bottom: 16px;
}

.empty-state .link {
  font-weight: bold;
  text-decoration: underline;
}

.target-status-icon {
  display: none;
}

.clickable {
  cursor: pointer;
}

.artifact-line {
  display: flex;
}

.artifact-line.sub-item {
  padding-left: 16px;
}

.artifact-view {
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  color: #888;
  white-space: nowrap;
}

.artifact-view svg {
  width: 16px;
  height: 16px;
}

.artifact-section-title {
  color: #757575;
  margin-top: 8px;
}

.artifacts .artifact-list {
  padding-left: 32px;
}

.artifacts :is(.artifact-line, .artifact-hidden-count) {
  margin-top: 4px;
}

.artifacts .artifact-hidden-count {
  color: #bdbdbd;
  margin-bottom: 8px;
}

.scorecard-target-name {
  margin-top: 8px;
  color: #757575;
  display: block;
}

.scorecard-action-id {
  display: block;
  margin-top: 4px;
  font-weight: 600;
  text-decoration: underline;
}

.scorecard-action-id-list {
  padding-left: 32px;
  margin-bottom: 8px;
}

.scorecard-hidden-count {
  color: #bdbdbd;
  margin-top: 4px;
  margin-bottom: 8px;
}

.stat-cards {
  display: flex;
  flex-wrap: wrap;
}

.stat-cards .card {
  margin-right: 16px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  padding: 16px 32px;
  flex-grow: 1;
  flex-shrink: 0;
}

.stat-cards .stat {
  font-size: 32px;
  font-weight: 600;
}

/** Tests **/

.target-page button {
  display: flex;
  margin-left: 8px;
  gap: 8px;
}

.flaky-target-chip {
  display: flex;
  margin-left: 8px;
  gap: 8px;
}

.flaky-target-chip .icon.icon {
  margin-right: 0;
}

.test-subtitle {
  margin-bottom: 8px;
  color: #aaa;
}

.test-suite-metrics {
  display: flex;
}

.test-case {
  display: flex;
  color: #888;
  line-height: 1.8em;
}

.test-case div:first-of-type {
  width: 1px;
  flex-grow: 2;
  color: #444;
  font-weight: 600;
}

.test-case div {
  width: 1px;
  flex-grow: 1;
}

.test-case div:last-of-type {
  text-align: right;
  color: #aaa;
}

.test-case-info {
  padding-left: 16px;
  border-left: 4px solid #eee;
}

.test-case-message {
  font-weight: 700;
}

.test-case-contents {
  white-space: pre-wrap;
  font-family: "Source Code Pro", monospace;
}

.test-class {
  font-weight: 300;
}

.command-line-arg {
  margin-left: 32px;
  margin-top: 8px;
  font-family: "Source Code Pro", monospace;
}

.command-line-arg:first-of-type {
  margin-left: 0;
}

/** Invocation */

.invocation-section {
  display: flex;
}

.invocation-section div {
  flex-grow: 1;
}

.invocation-command-line {
  border-top: 1px solid #eee;
  margin-top: 32px;
  padding-top: 32px;
}

.invocation-command-line:last-of-type {
  border-bottom: 0px;
  margin-bottom: 0;
}

.invocation-command-line-title {
  font-weight: 700;
  font-size: 18px;
  color: #212121;
  margin-bottom: 16px;
}

.invocation-section div.invocation-section-title {
  width: 20%;
  flex-grow: 0;
  flex-shrink: 0;
  text-align: right;
  margin-right: 16px;
  font-weight: 700;
}

.invocation-option-name {
  font-weight: 600;
  color: #444;
  margin-right: 4px;
}

.invocation-option-value {
  color: #212121;
}

.invocation-option-dash,
.invocation-option-equal {
  color: #aaa;
  margin-right: 4px;
}

.invocation-chunk {
  color: #444;
  font-weight: 600;
}

.raw-event-title {
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
}

/** Login **/

.login {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.login .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  flex-direction: column;
}

.login-hero {
  line-height: 1.6em;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-hero-title {
  font-weight: 700;
  font-size: 36px;
  line-height: 1.3em;
  margin-bottom: 8px;
  display: block;
}

.login-box {
  display: flex;
  justify-content: center;
}

.login-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.login-buttons button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 32px;
  font-weight: 600;
  border: 0;
  border-radius: 100px;
  margin-bottom: 12px;
  font-size: 18px;
  cursor: pointer;
  border: 3px solid rgba(255, 255, 255, 0.9);
  background-color: #000;
  color: #fff;
  min-width: 360px;
  transition: 300ms ease-in-out;
}

.login-buttons .login-button,
.login-buttons .sso-button,
.login-buttons .google-button,
.login-buttons .github-button {
  background-color: #fff;
  color: #212121;
  border: 3px solid #212121;
}

.login-buttons .login-button:hover,
.login-buttons .sso-button:hover,
.login-buttons .google-button:hover,
.login-buttons .github-button:hover {
  background-color: #f5f5f5;
  color: #000;
  border-color: #000;
}

.login-buttons .anon-button {
  border: 0;
  background: transparent;
  color: #9e9e9e;
}

.login-buttons .anon-button:hover {
  color: #757575;
}

.login-buttons button svg {
  margin-right: 16px;
}

.login-interstitial {
  background-color: #212121;
  min-height: calc(100vh - 200px);
}

.login-interstitial,
.login-interstitial .container,
.login-interstitial .login-box {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.login-interstitial .login-buttons {
  padding: 32px;
  border-radius: 16px;
}

.login-interstitial .login-buttons h2 {
  font-size: 18px;
  margin-bottom: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
}

.sso {
  margin: 0;
}

.sso-prompt {
  transition: all 300ms ease-in-out;
  max-height: 500px;
  opacity: 1;
  overflow: hidden;
}

.sso-prompt.hidden {
  max-height: 0;
  opacity: 0;
}

.sso-title {
  margin-top: 16px;
  margin-bottom: 4px;
  font-weight: 700;
}

.sso input {
  margin-bottom: 8px;
  width: 100%;
  padding: 16px 32px;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 12px;
  font-size: 18px;
  border: 3px solid #9e9e9e;
  height: initial;
}

.sso input:focus {
  outline: none;
  border: 3px solid #2196f3;
}

@media (min-width: 801px) {
  .login-hero {
    border-right: 1px solid rgba(255, 255, 255, 0.5);
    padding-right: 32px;
    margin-right: 32px;
    max-width: 40%;
  }
}

@media (max-width: 800px) {
  .hide-on-mobile {
    display: none !important;
  }

  .login-box {
    flex-direction: column;
  }

  .login-hero {
    padding: 24px;
    text-align: center;
  }

  .login-buttons {
    padding: 0 8px;
  }
}

/** Grid **/

.grid {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
}

.grid-grow .grid-block {
  flex-grow: 1;
}

.grid-block {
  display: block;
  min-width: 16px;
  height: 16px;
  margin-right: 2px;
  margin-bottom: 2px;
  border-radius: 2px;
  flex-shrink: 0;
  box-sizing: border-box;
}

.grid-block-success {
  background-color: #8bc34a;
}

.grid-block-failure {
  background-color: #f44336;
}

.grid-block-neutral {
  background-color: #888;
}

.grid-block-disconnected {
  background-color: #aaa;
}

.grid-block-in-progress {
  background-color: #03a9f4;
}

.grid-block-success:hover {
  background-color: #7cb342;
}

.grid-block-failure:hover {
  background-color: #e53935;
}

.grid-block-neutral:hover {
  background-color: #666;
}

.grid-block-disconnected:hover {
  background-color: #bbb;
}

.grid-block-in-progress:hover {
  background-color: #039be5;
}

/** Dense mode **/

.dense .container {
  max-width: 100%;
  padding: 0 16px;
}

.dense .nopadding-dense {
  padding: 0;
}

.dense .shelf {
  padding: 16px 0;
  border-bottom: 0;
}

.dense .menu {
  height: 64px;
}

.dense .menu .title img {
  height: 32px;
}

.dense .grid {
  padding: 0 16px;
  margin-bottom: 8px;
}

.dense .empty-state {
  padding: 0;
}

.dense .tabs {
  margin: 0;
}

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

.dense .tab {
  margin-top: 0;
  padding: 12px 16px;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  color: #444;
}

.dense .tab.selected {
  background-color: transparent;
  color: #616161;
  position: relative;
}

.dense .tab.selected:after {
  display: block;
  content: " ";
  background-color: #616161;
  height: 4px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}

.dense .card {
  margin: 0;
  border-radius: 0;
  padding: 16px;
  box-shadow: none;
  border-top: 1px solid #eee;
}

.dense .card.card-hover {
  margin-top: 4px;
  border-radius: 8px;
  border-top: 0;
  box-shadow:
    0px 1px 4px rgba(0, 0, 0, 0.1),
    0px 1px 6px rgba(0, 0, 0, 0.05);
}

.dense .card .details {
  margin-top: 0px;
}

.dense .card > .icon,
.dense .card .title .icon {
  display: none;
}

.dense .list-grid div:first-of-type {
  font-weight: 400;
}

.dense .list-grid div:last-of-type {
  color: #888;
}

.dense .card .target-status-icon.target-status-icon {
  flex-grow: 0;
  display: initial;
  width: 16px;
}

.dense .card .target-status-icon .icon {
  display: initial;
  width: 16px;
  padding-top: 0;
}

.dense-invocation {
  padding: 8px 16px;
}

.dense-invocation-title {
  font-weight: 700;
  font-size: 12px;
}

.dense-invocation-status-bar {
  border-top: 4px solid #888;
  background-color: #eee;
  padding: 4px 16px;
  display: flex;
  justify-content: space-between;
}

.dense-invocation-status-bar.success {
  border-top: 4px solid #8bc34a;
  background-color: #e8f5e9;
}

.dense-invocation-status-bar.failure {
  border-top: 4px solid #f44336;
  background-color: #ffebee;
}

.dense-invocation-status-bar.in-progress {
  border-top: 4px solid #03a9f4;
  background-color: #e3f2fd;
}

.dense-invocation-status-bar.disconnected {
  border-top: 4px solid #aaa;
  background-color: #eee;
}

.dense-invocation-status-bar.neutral {
  border-top: 4px solid #888;
  background-color: #eee;
}

.dense-invocation-overview-grid {
  display: flex;
  background-color: #fff;
  overflow: auto;
}

.dense-invocation-overview-grid-chunk {
  flex-grow: 1;
  padding: 8px 16px;
  border-right: 1px solid #eee;
}

.dense-invocation-overview-grid-value {
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.dense-invocation-overview-grid-value .icon {
  margin-right: 8px;
}

.dense .load-more {
  margin-bottom: 0;
  border-radius: 0;
}

.dense .history .card .title {
  font-size: 20px;
}

.dense .detail {
  margin-top: 4px;
}

/* Scrollbars */

.root-main {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  overflow: auto;
  background-color: #fff;
}

.root-code,
.root-login {
  overflow-y: initial;
}

.content {
  flex-grow: 1;
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

.sticky-loading-overlay {
  position: sticky;
  top: 0;
  z-index: 1;
}

.loading {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
}

.loading:not(.loading-slim) {
  height: 100%;
}

.sticky-loading-overlay .loading {
  height: 100vh;
  position: absolute;
  background: #fffc;
}

.loading:before {
  content: "";
  display: block;
  animation: rotate 2s linear infinite;
  width: 32px;
  height: 32px;
  opacity: 0.8;
  background-image: url("/image/loader.svg");
  background-size: cover;
}

.loading.loading-dark {
  background: #212121;
}

.loading.loading-dark-terminal {
  background: #212121;
}

.loading.loading-dark:before,
.loading.loading-dark-terminal:before {
  background-image: url("/image/loader-white.svg");
}

.copy-icon {
  color: #888;
  cursor: pointer;
  height: 0.8em;
  width: 0.8em;
  margin-left: 0.2em;
}

.copy-icon.green {
  color: #4caf50;
}

.coverage-percent {
  font-weight: 700;
}

.coverage-details {
  color: #aaa;
}

.coverage-record-total {
  border-top: 1px solid #eee;
  padding-top: 8px;
  margin-top: 8px;
}

.coverage-total-label {
  font-weight: 600;
}

.alert-banner {
  position: absolute;
  z-index: 9000;

  left: 50%;
  margin-top: 32px;

  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.27),
    0 3px 5px rgba(0, 0, 0, 0.12);
}

.alert-banner.hidden {
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%) translateY(-16px);
  transition: 128ms ease-in;
}

.alert-banner.visible {
  opacity: 1;
  transform: translateX(-50%);
  transition: 128ms ease-out;
}

.alert-banner > :not(:last-child) {
  margin-right: 8px;
}

.picker-container {
  height: 50vh;
}

.picker {
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -2px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  max-width: 450px;
  width: 80vw;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  max-height: 50vh;
  display: flex;
  flex-direction: column;
}

.picker-options {
  padding: 4px 0;
  overflow-y: auto;
}

.picker-option {
  cursor: pointer;
  padding: 6px 16px;
}

.picker-option.selected {
  background-color: #f0f0f0;
}

.picker-options-label {
  padding: 8px 16px 4px 16px;
  color: #888;
  font-size: 0.8em;
}

.picker-search {
  display: flex;
  align-items: center;
}

.picker-search svg {
  position: absolute;
  width: 16px;
  height: 16px;
  padding: 12px;
  color: #888;
}

.picker input {
  width: 100%;
  border: 0;
  padding: 12px 8px;
  padding-left: 40px;
  outline: 0;
  border-bottom: 1px solid #eee;
  background: transparent;
  font-family: inherit;
  font-size: inherit;
}

.search-bar-container {
  position: relative;
  z-index: 100;
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: 10px;
  max-height: 42px;
}

.search-bar {
  background-color: #eeeeee;
  border-radius: 0.5rem;
  border: 1px solid #eeeeee;
  max-height: 50vh;
  display: flex;
  flex-direction: column;
}

.search-bar-container.focused .search-bar {
  background-color: #fff;
  border: 1px solid #e5e7eb;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.search-bar-results {
  padding: 4px 0;
  overflow-y: auto;
  border-top: 1px solid #eee;
}

.search-bar-result {
  cursor: pointer;
  padding: 6px 16px;
}

.search-bar-result pre {
  font-size: 0.8em;
}

.search-bar-result.selected {
  background-color: #f0f0f0;
}

.search-bar-results-label {
  padding: 8px 16px 4px 16px;
  color: #888;
  font-size: 0.8em;
}

.search-bar-input {
  display: flex;
  align-items: center;
  height: 40px;
}

.search-bar-input svg {
  position: absolute;
  width: 16px;
  height: 16px;
  padding: 12px;
  color: #888;
}

.search-bar-input input {
  width: 100%;
  border: 0;
  padding: 12px 8px;
  padding-left: 40px;
  outline: 0;
  background: transparent;
  font-family: inherit;
  font-size: inherit;
}

.compare-invocations .header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.compare-invocations .header > :not(:last-child) {
  margin-right: 16px;
}

.compare-invocations .show-changes-only-button {
  margin-left: auto;
}

@media (max-width: 1024px) {
  .compare-invocations .header {
    flex-direction: column;
    align-items: start;
  }

  .compare-invocations .header > :not(:last-child) {
    margin-right: 0;
    margin-bottom: 8px;
  }

  .compare-invocations .show-changes-only-button {
    margin-left: 0;
    margin-right: auto;
  }
}

.compare-invocations .tabs {
  margin-top: 0;
}

.compare-invocations .error-container {
  background: #ffebee;
  padding: 16px;
  border-radius: 8px;
  margin: 16px 0;

  display: flex;
  align-items: center;
}

.compare-invocations .error-container > :not(:last-child) {
  margin-right: 8px;
}

.compare-invocations .error-container img {
  width: 24px;
  height: 24px;
}

.compare-invocations .compare-table {
  display: table;
  padding-top: 16px;
  width: 100%;
}

.compare-invocations .compare-row {
  display: table-row;
  white-space: pre-wrap;
}

.compare-invocations .compare-row.different {
  background: #fff8e1;
}

.compare-invocations .compare-row div {
  display: table-cell;
  padding: 4px 16px;
  width: 40%;
}

.compare-invocations .compare-row div:first-of-type {
  font-weight: 600;
  text-align: right;
  width: 20%;
  text-decoration: none !important;
}

.compare-invocations .difference-left {
  font-weight: 600;
  color: #d84315;
  background-color: #ffe0b2;
}

.compare-invocations .difference-right {
  font-weight: 600;
  color: #1565c0;
  background-color: #bbdefb;
}

.invocation-execution-row-file {
  display: flex;
  align-items: center;
  gap: 2px;
}

.invocation-execution-row-file svg {
  height: 16px;
}

.invocation-execution-row-file .invocation-execution-row-header {
  display: flex;
  align-items: center;
  margin-bottom: 0;
  flex-grow: 1;
}

.invocation-execution-row-file .invocation-execution-row-header-status {
  flex-grow: 1;
}

.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;
}

.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-sort-controls {
  display: flex;
  align-items: center;
}

.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;
    top: 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);
}

.trace-viewer {
  width: 100%;
  /* Disable text selection since it conflicts with mouse panning.
     (Also, canvas text isn't selectable.) */
  user-select: none;
}

.trace-viewer .panel {
  position: absolute;
  inset: 0;
  overflow-x: scroll;
  overflow-y: scroll;
}

.trace-viewer canvas {
  position: sticky;
  top: 0;
  left: 0;
}

.trace-viewer .panel-container:not(:last-child) {
  margin-bottom: 16px;
}

.trace-viewer .panel-container {
  border-radius: 2px;
  border: 2px solid #eee;
  box-sizing: border-box;
}

.trace-viewer .panel::-webkit-scrollbar-thumb {
  background: #bdbdbd;
  border-radius: 1px;
}
.trace-viewer .panel::-webkit-scrollbar-thumb:hover {
  background: #9e9e9e;
}
.trace-viewer .panel::-webkit-scrollbar-thumb:active {
  background: #757575;
}
.trace-viewer .panel::-webkit-scrollbar-corner {
  background: #e0e0e0;
}

.trace-viewer .panel::-webkit-scrollbar {
  width: var(--scrollbar-size);
  height: var(--scrollbar-size);
  background: #fafafa;
}

.trace-viewer .panel-controls {
  position: absolute;
  right: var(--scrollbar-size);
  display: flex;
  padding: 8px;
  gap: 4px;
}

.trace-viewer .button {
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
  outline: none;
  background: rgba(250, 250, 250, 0.6);
  backdrop-filter: blur(3px);
  border-radius: 4px;
  color: #616161;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: 70ms ease-out;
  border: 1px solid transparent;
  box-sizing: border-box;
  cursor: pointer;
}

.trace-viewer .button:hover {
  opacity: 1;
}

.trace-viewer .button:focus {
  border: 1px solid #64b5f6;
}

.trace-viewer .button:active {
  background: #f5f5f5;
  border: 1px solid #757575;
  color: black;
}

.trace-viewer .icon-button {
  padding: 0;
  width: 32px;
}

.trace-viewer .button .icon {
  width: 20px;
  height: 20px;
}

.trace-viewer-hovercard {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.27);
  padding: 8px;
  border-radius: 4px;
  font-size: 12px;
  backdrop-filter: blur(3px);
  max-width: calc(min(640px, 100vw));
  word-break: break-all;
}

.trace-viewer-hovercard .data {
  color: #000;
}

.trace-viewer-hovercard.no-block-hovered {
  color: #888;
}

.trace-viewer-hovercard .hovercard-title {
  font-size: 13px;
  font-weight: bold;
}

.trace-viewer-hovercard .hovercard-details {
  color: #888;
}

.trace-viewer-hovercard .duration {
  font-size: 14px;
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid #eee;
  margin-bottom: 4px;
}

.trace-viewer .filter {
  margin-bottom: 16px;
}

.terminal {
  --scrollbar-width: 8px;
  background: #212121;
  display: flex;
}
.terminal.light-terminal {
  background: #fff;
}

.terminal .terminal-search {
  display: flex;
  align-items: center;
}

@media (max-width: 1024px) {
  .terminal .terminal-search {
    display: none;
  }
}

.terminal .search-navigation {
  display: flex;
  align-items: center;
}

@media (max-width: 1280px) {
  .terminal .search-navigation {
    display: none;
  }
}

.terminal .terminal-search-input {
  height: 32px;
  max-width: 180px;
  border: 1px solid #eee;
  border-radius: 8px;
}

.terminal .terminal-text {
  height: 400px;
  overflow: visible;
}

.terminal .terminal-top-bar {
  display: flex;
  padding-right: var(--scrollbar-width);
}

.terminal .terminal-titles {
  display: flex;
  color: white;
}

.terminal.light-terminal .terminal-titles {
  color: black;
}

.terminal .terminal-actions {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.terminal button.terminal-action {
  appearance: none;
  background: none;
  border: none;
  background: none;
  cursor: pointer;

  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.terminal .terminal-action .icon {
  width: 20px;
  height: 20px;
}

.terminal .terminal-action:disabled {
  opacity: 0.3;
}

.terminal .terminal-action:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
}
.terminal.light-terminal .terminal-action:hover:not(:disabled) {
  background: #eee;
}

.terminal .terminal-action:focus:not(:disabled) {
  border: 2px solid rgba(255, 255, 255, 0.1);
}
.terminal.light-terminal .terminal-action:focus:not(:disabled) {
  border: 2px solid #eee;
}

.terminal .terminal-action:active:not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
}
.terminal.light-terminal .terminal-action:active:not(:disabled) {
  background: #bdbdbd;
}

.terminal .terminal-action:not(.active) .icon {
  stroke: #9e9e9e;
}
.terminal.light-terminal .terminal-action:not(.active) .icon {
  stroke: #cfd8dc;
}

.terminal .terminal-line {
  /* Render whitespace as-is and disable native line wrapping, since wrapping is
     handled programmatically. Lines need to be fixed height so that
     react-window can efficiently determine which lines are currently in the
     viewport and need to be rendered. */
  white-space: pre;
  font-family: "Source Code Pro", monospace;
}

.terminal .terminal-line.selected {
  background-color: rgba(255, 255, 255, 0.25);
}

.terminal .search-result-count {
  /* Fit 6-digit result counts without layout shifting. */
  min-width: 128px;
  font-size: 13px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  color: white;
}

.terminal.light-terminal .search-result-count {
  color: black;
}

.terminal .no-results {
  opacity: 0.3;
}

.terminal .lines-list {
  /* See https://github.com/mozilla-frontend-infra/react-lazylog/issues/90#issuecomment-988285254 */
  overflow-x: scroll !important;
}

.terminal .terminal-line {
  color: white;
}
.terminal.light-terminal .terminal-line {
  color: #212121;
}

/* Scrollbars */

.terminal ::-webkit-scrollbar {
  width: var(--scrollbar-width);
  height: var(--scrollbar-width);
}

.terminal ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: calc(var(--scrollbar-width) / 2);
}

.terminal.light-terminal ::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
}

.terminal ::-webkit-scrollbar-corner {
  background-color: transparent;
}

/* ANSI styles */

.terminal .ansi-bold {
  font-weight: bold;
}
.terminal .ansi-italic {
  font-style: italic;
}
.terminal .ansi-underline {
  text-decoration: underline;
}

/* Dark terminal colors */

.terminal .ansi-fg-black {
  color: black;
}
.terminal .ansi-fg-green {
  color: #66bb6a;
}
.terminal .ansi-fg-red {
  color: #ef5350;
}
.terminal .ansi-fg-yellow {
  color: #ffee58;
}
.terminal .ansi-fg-blue {
  color: #42a5f5;
}
.terminal .ansi-fg-magenta {
  color: #ab47bc;
}
.terminal .ansi-fg-cyan {
  color: #26c6da;
}
.terminal .ansi-fg-white {
  color: white;
}
.terminal .ansi-fg-grey {
  color: #bdbdbd;
}
.terminal .ansi-bg-black {
  background-color: black;
}
.terminal .ansi-bg-green {
  background-color: #66bb6a;
}
.terminal .ansi-bg-red {
  background-color: #ef5350;
}
.terminal .ansi-bg-yellow {
  background-color: #ffee58;
}
.terminal .ansi-bg-blue {
  background-color: #42a5f5;
}
.terminal .ansi-bg-magenta {
  background-color: #ab47bc;
}
.terminal .ansi-bg-cyan {
  background-color: #26c6da;
}
.terminal .ansi-bg-white {
  background-color: white;
}
.terminal .ansi-bg-grey {
  background-color: #bdbdbd;
}

/* Light terminal color overrides */

.terminal.light-terminal .ansi-fg-green {
  color: #388e3c;
}
.terminal.light-terminal .ansi-fg-red {
  color: #e53935;
}
.terminal.light-terminal .ansi-fg-yellow {
  color: #f9a825;
}
.terminal.light-terminal .ansi-fg-blue {
  color: #1e88e5;
}
.terminal.light-terminal .ansi-fg-magenta {
  color: #8e24aa;
}
.terminal.light-terminal .ansi-fg-cyan {
  color: #00acc1;
}
.terminal.light-terminal .ansi-fg-grey {
  color: #757575;
}

.terminal .search-match {
  background: #424242;
  color: white;
}
.terminal.light-terminal .search-match {
  background: #eceff1;
  color: black;
}

.terminal .active-search-match {
  background: #757575;
}
.terminal.light-terminal .active-search-match {
  background: #b0bec5;
}

/* Page-specific overrides */

.expanded .terminal .terminal-text,
.test-log .terminal-text {
  height: calc(100vh - 200px);
}

.invocation-action-card .terminal {
  padding: 8px 16px;
  border-radius: 8px;
}

.banner {
  border-radius: 8px;
  padding: 16px;

  display: flex;
  align-items: start;
}

.banner.banner-info {
  background: #e1f5fe;
}

.banner.banner-success {
  background: #c8e6c9;
}

.banner.banner-warning {
  background: #fff3e0;
}

.banner.banner-error {
  background: #ffcdd2;
}

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

.base-button {
  padding: 8px 16px;
  min-height: 40px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  border: 0;
  border-radius: 8px;
  transition: border 200ms ease;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
  line-height: normal;
  -webkit-font-smoothing: inherit;
  -moz-osx-font-smoothing: inherit;

  flex-shrink: 0;
  align-self: center;
  display: inline-flex;
  align-items: center;
  outline: 2px solid transparent;
}

.filled-button {
  background-color: #212121;
  color: #fff;
}

.filled-button:focus {
  outline: 2px solid #2196f3;
}

.filled-button.destructive {
  background-color: #c62828;
}

.filled-button:hover {
  background-color: #616161;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.filled-button.destructive:hover {
  background-color: #d32f2f;
}

.filled-button.destructive:active {
  background-color: #b71c1c;
}

.filled-button:active {
  box-shadow: none;
}

/* Extra specificity here so the [disabled] style takes precedence. */
.filled-button.filled-button.filled-button[disabled],
.filled-button.filled-button.filled-button[disabled]:hover {
  background: #bbb;
  cursor: not-allowed;
  box-shadow: none;
}

.outlined-button {
  background: transparent;
  border: 1px solid rgba(20, 20, 20, 0.1);
  flex-shrink: 1;
  overflow: hidden;
}

.outlined-button:focus {
  border: 1px solid black;
}

.outlined-button.destructive {
  color: #c62828;
}

.outlined-button:hover:not(:active) {
  transition: background-color 200ms ease;
  background: rgba(20, 20, 20, 0.1);
}

.outlined-button:hover:not(:focus) {
  border: 1px solid #9e9e9e;
}

.outlined-button:active {
  background: rgba(20, 20, 20, 0.2);
}

/* Extra specificity here so the [disabled] style takes precedence. */
.outlined-button.outlined-button.outlined-button[disabled],
.outlined-button.outlined-button.outlined-button[disabled]:hover {
  background: transparent;
  border: 1px solid rgba(20, 20, 20, 0.1);
  cursor: not-allowed;
}

.outlined-button span {
  text-overflow: ellipsis;
  overflow: hidden;
}

.base-button.checkbox-button {
  padding: 0;
}

.checkbox-button label {
  padding: 8px 16px;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.checkbox-button input {
  cursor: pointer;
}

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

.outlined-button-group {
  background: transparent;
  display: flex;
  border-radius: 8px;
  box-sizing: border-box;
  border: 1px solid rgba(20, 20, 20, 0.1);
}

.outlined-button-group > .outlined-button.outlined-button.outlined-button,
.outlined-button-group > .outlined-button.outlined-button.outlined-button:hover {
  border: none;
  min-height: 38px; /* = 40px usual min-height - 1px for top + bottom border from parent */
}

.outlined-button-group > .outlined-button.outlined-button:not(:last-child),
.outlined-button-group > .outlined-button.outlined-button:not(:last-child):hover {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: 1px solid rgba(20, 20, 20, 0.1);
}

.outlined-button-group > .outlined-button:not(:first-child) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.icon-button {
  padding: 0;
  width: 40px;
  justify-content: center;
  flex-shrink: 0;
}

.big-button {
  padding: 16px 32px;
}

.small-button {
  font-size: 14px;
  padding: 4px 16px;
  line-height: 14px;
  min-height: 28px;
}

.dialog-wrapper {
  max-height: 100%;
}

.dialog-card {
  max-height: inherit;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: clip;

  max-width: 80vw;
  width: 640px;
  background: white;
  border-radius: 8px;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.27),
    0 3px 5px rgba(0, 0, 0, 0.12);

  padding: 16px 0;
  --dialog-side-padding: 24px;
}

.dialog-card .dialog-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  margin-top: 8px;
  padding: 0 var(--dialog-side-padding);
}

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

.dialog-title {
  font-size: 28px;
}

.dialog-body {
  padding: 8px var(--dialog-side-padding);
  overflow-y: auto;
}

.dialog-body p {
  margin-top: 0;
}

.dialog-footer {
  display: flex;
  padding: 0 var(--dialog-side-padding);
  margin-top: 8px;
  /* Convert bottom margin to padding so that the shadow can render. */
  padding-bottom: 8px;
  margin-bottom: -8px;
}

.dialog-footer-buttons {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.dialog-footer-buttons > :not(:last-child) {
  margin-right: 16px;
}

.dialog-form {
  margin: 0;
}

.digest-component {
  display: inline-flex;
  align-items: center;
  color: #000;
  border-radius: 4px;
  overflow: hidden;
}

.digest-component-hash {
  padding: 0 8px;
  max-width: 64px;
  min-width: 24px;
  overflow: hidden;
  display: inline-block;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: all 0.5s ease;
}

.digest-component .digest-component-hash.fixed-width,
.digest-component .digest-component-size.fixed-width {
  max-width: initial;
  min-width: initial;
  box-sizing: border-box;
}

.digest-component.expand-on-hover .digest-component-hash:hover {
  max-width: 500px;
}

.digest-component.expanded .digest-component-hash {
  max-width: initial;
}

.digest-component.expanded .digest-component-hash:hover {
  max-width: initial;
}

.digest-component-size {
  padding: 0 8px;
  display: inline-block;
  white-space: nowrap;
  background-color: #eee;
}

.text-input {
  height: 40px;
  font-family: inherit;
  font-size: inherit;
  padding: 8px 16px;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #9e9e9e;
  border-radius: 8px;
}

.text-input.dark {
  background-color: #212121;
  color: white;
  caret-color: white;
}

.text-input::placeholder {
  color: #aaa;
}

.text-input[readonly] {
  background: #eee;
}

.text-input.invalid {
  border: 1px solid #e53935;
}

/* Hide up/down buttons on number inputs. */
.text-input::-webkit-outer-spin-button,
.text-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
.text-input[type="number"] {
  -moz-appearance: textfield;
}

.filter-input-container {
  border-radius: 21px;
  height: 42px;
  background-color: #f3f3f3;
  box-sizing: border-box;
  width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.filter-input-container .icon {
  width: 16px;
  height: 100%;
  position: absolute;
  left: 20px;
  pointer-events: none;
  transition: stroke 300ms ease-out;
}

.filter-input-container .filter-input {
  outline: 0;
  border: 0;
  appearance: none;
  background: transparent;
  padding: 0 42px;
  height: 100%;
  font-family: inherit;
  font-size: 14px;
  color: black;
  width: 100%;
}

.filter-input-container .filter-input::placeholder {
  color: #aaa;
}

.filter-input-container.is-filtering .icon {
  stroke: #1e88e5;
}

.text-link {
  text-decoration: underline;
  cursor: pointer;
  color: #1565c0;
}

.text-link.plain {
  font-weight: 600;
}

.text-link.plain:not(:hover) {
  color: #000;
}

.text-link:hover {
  color: #2196f3;
}

.menu-list {
  margin: 0;
  padding: 8px 0;
  list-style: none;
}

.menu-list-item {
  margin: 0;
  padding: 8px 16px;
  font-size: 16px;
  cursor: pointer;

  white-space: nowrap;
}

.menu-list-item:hover {
  background: #eee;
}

.menu-list-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: transparent;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;

  padding: 24px;
  box-sizing: border-box;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(1px) saturate(25%);

  z-index: 1000;
}

.modal-content:focus {
  outline: none;
}

.modal-content {
  animation: 50ms ease-out modal-content-animate-in;
}

.modal-content .bold {
  font-weight: 600;
}

@keyframes modal-content-animate-in {
  from {
    opacity: 0.5;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    perspective: none;
    transform: none;
  }
}

.popup-shade {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.1);
  z-index: 6;
}

.popup {
  position: absolute;
  top: 100%;

  z-index: 6;

  border-radius: 4px;
  background: white;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.27),
    0 3px 5px rgba(0, 0, 0, 0.12);
}

.popup.anchor-right {
  right: 0;
}

.popup.anchor-left {
  left: 0;
}

.popup-container {
  position: relative;
}

.select-wrapper {
  position: relative;
  display: inline-block;
}

.select {
  font-size: inherit;
  font-family: inherit;
  height: 40px;
  padding: 8px 16px;
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px solid #9e9e9e;
  transition: border 200ms ease;
  background-color: transparent;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
  text-overflow: ellipsis;
  overflow: clip;
  /** make the select element fill the .select-wrapper parent */
  width: 100%;
}

.select:focus {
  border: 1px solid black;
}

.select:hover:not(:active) {
  transition: background-color 200ms ease;
  background-color: rgba(20, 20, 20, 0.1);
}

.select:hover:not(:focus) {
  border: 1px solid #9e9e9e;
}

.select-wrapper .dropdown-icon-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40px;
  height: 100%;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
}

.select:disabled {
  color: black;
  background: #bbb;
}

.small-select {
  font-size: 14px;
  padding: 4px 40px 4px 16px;
  line-height: 14px;
  min-height: 28px;
  height: auto;
}

.horizontal-slider {
  padding: 8px 16px 24px 16px;
}

.slider-track {
  height: 4px;
  margin-top: 4px;
  background-color: #212121;
}

.slider-track-0 {
  background-color: #e0e0e0;
  border-top-left-radius: 2px;
  border-bottom-left-radius: 2px;
}

.slider-track-2 {
  background-color: #e0e0e0;
  border-top-right-radius: 2px;
  border-bottom-right-radius: 2px;
}

.slider-thumb {
  width: 12px;
  height: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.slider-thumb-circle {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #212121;
}

.slider-thumb-value {
  position: absolute;
  width: 36px;
  height: 36px;
  font-size: 12px;
  margin-top: 14px;
}

.slider-thumb-0 .slider-thumb-value {
  text-align: right;
  padding-right: 30px;
}

.slider-thumb-1 .slider-thumb-value {
  text-align: left;
  padding-left: 30px;
}

.radio-input {
  --radio-size: 16px;

  cursor: pointer;
  margin: 0;
  width: var(--radio-size);
  height: var(--radio-size);
}

.checkbox-input {
  --checkbox-size: 16px;

  cursor: pointer;
  margin: 0;
  width: var(--checkbox-size);
  height: var(--checkbox-size);
}

.spinner {
  --size: 24px;

  width: var(--size);
  height: var(--size);

  opacity: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner:before {
  content: "";
  display: block;
  animation: rotate 2s linear infinite;
  width: inherit;
  height: inherit;
  background-image: url("/image/loader.svg");
  background-size: cover;
}

.spinner.white:before {
  background-image: url("/image/loader-white.svg");
}

.spinner.small-spinner {
  --size: 16px;
}

