:root {
  --card-bg: #f4f4f7;
  --card-border: #4f5eff;
  --title: #0d1952;
  --body: #495285;
  --button-a: #5c66ff;
  --button-b: #b652ed;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Roboto", sans-serif;
  color: var(--body);
  background: #ffffff;
}

.page-shell {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 20px;
}

.health-card {
  width: min(820px, 100%);
  min-height: 228px;
  border: 1px solid var(--card-border);
  border-left-width: 4px;
  border-radius: 4px;
  background: #fff;
  padding: 20px 24px 16px;
  display: grid;
  grid-template-rows: auto auto auto auto;
  row-gap: 16px;
  position: relative;
  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .health-card:hover:not(:has(.action-tooltip:hover)) {
    box-shadow: 0 8px 24px rgba(13, 25, 82, 0.08);
    border-color: #6062ff;
  }
}

.card-header {
  display: flex;
  align-items: center;
  gap: 15px;
}

.card-header h1 {
  margin: 0;
  color: var(--Primary-Dark-Blue-500, #000646);
  font-feature-settings: "liga" off, "clig" off;
  font-family: "Roboto", sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 28px;
}

.app-badge {
  display: flex;
  width: 40px;
  height: 40px;
  padding: 10px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  aspect-ratio: 1 / 1;
  border-radius: 100px;
  border: 1px solid var(--Primary-Grey-Scale-White, #fff);
  background: radial-gradient(
    161.77% 161.77% at 106.25% -5%,
    rgba(96, 98, 255, 0.9) 0%,
    rgba(209, 94, 250, 0.9) 100%
  );
}

.app-badge img {
  width: 26.31px;
  height: 24.036px;
  flex-shrink: 0;
  aspect-ratio: 26.31 / 24.04;
  display: block;
}

.app-badge.is-gif {
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}

.app-badge.is-gif img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: 50%;
}

.lead {
  margin: 0;
  max-width: 860px;
  color: var(--Primary-Dark-Blue-300, #4d517e);
  font-feature-settings: "liga" off, "clig" off;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
}

.actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  margin-top: 4px;
  margin-bottom: 8px;
  position: relative;
}

.actions[hidden] {
  display: none !important;
}

.actions .action-tooltip {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  margin-left: 0;
  width: min(198px, calc(100vw - 32px));
  padding: 10px 20px 10px 12px;
  border-radius: 12px;
  background: #0165fc;
  color: #ffffff;
  font-family: "Roboto", sans-serif;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 1px 2px rgba(5, 33, 90, 0.12),
    0 6px 16px rgba(5, 33, 90, 0.12);
  opacity: 0;
  transform: translate3d(0, calc(-50% + 6px), 0);
  transform-origin: left center;
  pointer-events: auto;
  z-index: 5;
  transition:
    opacity 160ms ease-out,
    transform 160ms ease-out;
}

.actions .action-tooltip-title,
.actions .action-tooltip-subcopy {
  color: #fff;
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
}

.actions .action-tooltip-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.actions .action-tooltip-subcopy {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.4;
}

.actions .action-tooltip-close {
  position: absolute;
  top: 8px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 4px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #ffffff;
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  filter: none;
}

.actions .action-tooltip-close:hover {
  background: rgba(255, 255, 255, 0.18);
}

.actions .action-tooltip-close:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 1px;
}

.actions .action-tooltip-close span {
  display: block;
  line-height: 1;
}

.actions .action-tooltip::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 50%;
  width: 10px;
  height: 10px;
  background: #0165fc;
  border-radius: 2px;
  box-shadow: -1px 2px 8px rgba(5, 33, 90, 0.12);
  transform: translateY(-50%) rotate(45deg);
}

.actions .action-tooltip.is-visible {
  opacity: 1;
  transform: translate3d(0, -50%, 0);
  animation: tooltip-attention-nudge 2800ms ease-in-out 260ms infinite;
}

.actions .action-tooltip.is-hiding {
  opacity: 0;
  transform: translate3d(0, calc(-50% + 4px), 0);
  animation: none;
}

.latest-test-run {
  margin: 0;
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
  color: var(--Primary-Dark-Blue-300, #4d517e);
  font-feature-settings: "liga" off, "clig" off;
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 18px;
  font-variant-numeric: tabular-nums;
}

.actions > button {
  display: flex;
  height: 32px;
  min-width: 100px;
  padding: 8px 16px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 14px;
  font-weight: 400;
  color: #ffffff;
  background: var(
    --Ai-Gradient-Color,
    linear-gradient(270deg, #d15efa 0%, #6062ff 100%)
  );
  cursor: pointer;
  transition:
    filter 0.18s ease,
    box-shadow 0.18s ease;
}

.actions > button img {
  width: 14px;
  height: 14px;
  display: none;
}

.actions > button.is-rerun {
  height: 40px;
  min-width: 172px;
  padding: 12px 16px;
  gap: 4px;
  border-radius: 100px;
  background: linear-gradient(90deg, #6062ff 0%, #d15efa 100%);
  font-size: 14px;
  line-height: 14px;
}

.actions > button.is-rerun img {
  display: block;
}

.actions > button:hover:not(:disabled) {
  filter: brightness(1.03);
  box-shadow: 0 3px 10px rgba(96, 98, 255, 0.16);
}

.actions > button:focus-visible {
  outline: 2px solid #6062ff;
  outline-offset: 2px;
}

.actions > button:disabled {
  opacity: 0.9;
  cursor: default;
}

.reset-fab {
  position: fixed;
  right: 48px;
  bottom: 48px;
  transform: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #cfd6e6;
  box-shadow: none;
  cursor: pointer;
  z-index: 20;
  transition:
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.reset-fab[hidden] {
  display: none !important;
}

.reset-fab:hover {
  background: #f7f8fc;
  box-shadow: none;
}

.reset-fab:focus-visible {
  outline: 2px solid #6062ff;
  outline-offset: 2px;
}

.reset-fab svg {
  width: 16px;
  height: 16px;
  display: block;
  color: #0d1952;
}

.progress-panel {
  border-radius: 8px;
  border: 1px solid #bc6cff;
  background: #f2eaf7;
  padding: 14px 14px 16px;
  display: grid;
  row-gap: 14px;
}

.progress-panel[hidden] {
  display: none !important;
}

.actions,
.progress-panel,
.attention-accordion {
  will-change: height, opacity, transform;
}

.progress-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.progress-title {
  margin: 0;
  color: var(--Primary-Dark-Blue-500, #000646);
  font-feature-settings: "liga" off, "clig" off;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-variant-numeric: tabular-nums;
}

.progress-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-meta p {
  margin: 0;
  display: flex;
  align-items: center;
  color: #000646;
  font-feature-settings: "liga" off, "clig" off;
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  white-space: nowrap;
}

.meta-clock {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-right: -8px;
  display: inline-flex;
  align-items: center;
}

.meta-clock img {
  width: 100%;
  height: 100%;
  display: block;
}

.meta-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid rgba(95, 96, 233, 0.22);
  border-top-color: #5f60e9;
  border-right-color: #5f60e9;
  display: inline-block;
  will-change: transform;
  animation: spin 0.72s linear infinite;
}

.meta-stop {
  width: 16px;
  height: 16px;
  background: #5f60e9;
  display: inline-block;
  border-radius: 2px;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.18s ease;
}

.meta-stop:hover {
  background: #4b4fd6;
}

.meta-stop:focus-visible {
  background: #4b4fd6;
  outline: none;
}

.health-card.is-stopped .meta-spinner {
  animation-play-state: paused;
  opacity: 0.45;
}

.health-card.is-complete .progress-panel {
  border-color: #32c20f;
  background: #e8f4e6;
}

.health-card.is-attention .progress-panel {
  border-color: #d5d9e5;
  background: #ffffff;
}

.health-card.is-complete .progress-panel-header {
  justify-content: flex-start;
}

.health-card.is-attention .progress-panel-header {
  justify-content: flex-start;
}

.health-card.is-complete .progress-meta {
  display: none;
}

.health-card.is-complete #attentionStatus {
  display: none;
}

.health-card.is-attention .progress-meta {
  display: none;
}

.health-card.is-stopped .progress-meta {
  display: none;
}

.progress-track {
  --progress-success-width: 0px;
  --progress-attention-width: 0px;
  --progress-attention-offset: 0px;
  --progress-total-width: 0px;
  height: 16px;
  border-radius: 4px;
  background: #eef1f6;
  overflow: hidden;
  position: relative;
}

.progress-track::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -14px;
  width: calc(var(--progress-total-width) + 14px);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.16) 0 4px,
    rgba(255, 255, 255, 0) 4px 10px
  );
  background-size: 14px 14px;
  background-repeat: repeat;
  background-position: -7px 0;
  opacity: 0;
  pointer-events: none;
  will-change: width, transform;
  transform: translate3d(0, 0, 0);
  z-index: 3;
}

.health-card.is-attention .progress-track {
  border: 0;
}

.progress-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  display: block;
  will-change: width, left;
}

.progress-fill-success {
  background: #32c20f;
  width: var(--progress-success-width);
  border-radius: 4px;
  z-index: 1;
}

.progress-track.has-attention-segment .progress-fill-success {
  border-radius: 4px 0 0 4px;
}

.progress-fill-attention {
  background: #e53935;
  left: var(--progress-attention-offset);
  width: var(--progress-attention-width);
  border-radius: 0 4px 4px 0;
  z-index: 2;
}

.health-card.is-checking .progress-track::after {
  opacity: 1;
  animation: progress-hatch 0.7s linear infinite;
}

.progress-statuses {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.progress-status {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--Primary-Dark-Blue-500, #000646);
  font-feature-settings: "liga" off, "clig" off;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
}

.progress-status[hidden] {
  display: none !important;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.status-dot.is-success {
  background: #32c20f;
}

.status-dot.is-attention {
  background: #e53935;
}

.progress-status b {
  color: var(--Primary-Dark-Blue-500, #000646);
  font-feature-settings: "liga" off, "clig" off;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
}

.attention-accordion {
  border: 0;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}

.attention-accordion-toggle {
  width: 100%;
  border: 0;
  padding: 16px;
  background: #ffecf4;
  display: flex;
  align-items: center;
  gap: 16px;
  align-self: stretch;
  justify-content: space-between;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.18s ease;
}

.attention-accordion-toggle:hover {
  background: #ffeff6;
}

.attention-accordion-toggle:focus-visible {
  outline: 2px solid #6062ff;
  outline-offset: 2px;
}

.attention-accordion-toggle[aria-expanded="true"] {
  border-radius: 4px 4px 0 0;
}

.attention-accordion-label {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--Primary-Dark-Blue-500, #000646);
  font-feature-settings: "liga" off, "clig" off;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
}

.attention-accordion .status-dot {
  width: 8px;
  height: 8px;
}

.attention-accordion-chevron {
  display: inline-flex;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  transform: rotate(0deg);
  transition: transform 0.2s ease;
}

.attention-accordion-chevron img {
  width: 100%;
  height: 100%;
  display: block;
}

.attention-accordion-toggle[aria-expanded="true"] .attention-accordion-chevron {
  transform: rotate(180deg);
}

.attention-accordion-panel {
  height: 0;
  overflow: clip;
  background: transparent;
  border-radius: 0 0 4px 4px;
  visibility: hidden;
  pointer-events: none;
  transition: height 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: height;
}

.attention-accordion-toggle[aria-expanded="true"] + .attention-accordion-panel {
  visibility: visible;
  pointer-events: auto;
}

.attention-accordion-panel-content {
  padding: 24px;
  border-top: 1px solid #c5cbe3;
  background: #ffecf4;
  border-radius: 0 0 4px 4px;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.18s ease-out;
  will-change: transform, opacity;
}

.attention-accordion-toggle[aria-expanded="true"] + .attention-accordion-panel .attention-accordion-panel-content {
  opacity: 1;
  transform: translateY(0);
}

.attention-accordion-panel ol {
  margin: 0;
  padding-left: 16px;
  color: var(--Primary-Dark-Blue-500, #000646);
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 20px;
}

.attention-accordion-panel li {
  margin-bottom: 20px;
  padding-left: 0;
}

.attention-accordion-panel li:last-child {
  margin-bottom: 0;
}

.attention-accordion-panel p {
  margin: 0;
  color: var(--Primary-Dark-Blue-500, #000646);
  font-feature-settings: "liga" off, "clig" off;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
}

.attention-accordion-panel strong {
  color: var(--Primary-Dark-Blue-500, #000646);
  font-feature-settings: "liga" off, "clig" off;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 20px;
}

.attention-accordion-panel a {
  color: #4b5fff;
}

@media (prefers-reduced-motion: reduce) {
  .attention-accordion-chevron,
  .attention-accordion-panel,
  .attention-accordion-panel-content,
  .progress-fill {
    transition: none;
  }

  .health-card.is-checking .progress-track::after {
    animation: none;
  }
}

.disclaimer {
  padding-top: 16px;
  border-top: 1px solid #e6e9f2;
}

.disclaimer-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: block;
}

.disclaimer p {
  flex: 1;
  min-width: 0;
  margin: 0;
  color: var(--Secondary-Dark-grey-500, #65738e);
  font-feature-settings: "liga" off, "clig" off;
  font-family: "Roboto", sans-serif;
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
  line-height: 14px;
}

.disclaimer a {
  color: var(--Primary-Neon-Blue-500, #6062ff);
  font-feature-settings: "liga" off, "clig" off;
  font-family: "Roboto", sans-serif;
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
  line-height: 14px;
  text-decoration: none;
}

@media (max-width: 900px) {
  .health-card {
    min-height: auto;
    row-gap: 14px;
    padding: 16px;
  }

  .card-header {
    gap: 12px;
  }

  .app-badge {
    width: 40px;
    height: 40px;
    padding: 10px;
  }

  .lead {
    max-width: 100%;
  }

  .progress-panel-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .progress-meta {
    flex-wrap: wrap;
  }

  .progress-meta p {
    white-space: normal;
  }

  .progress-track {
    height: 16px;
  }

  .actions > button {
    width: auto;
  }

  .actions .action-tooltip {
    right: 50%;
    left: auto;
    top: auto;
    bottom: calc(100% + 12px);
    transform: translate3d(50%, 8px, 0);
    width: min(198px, calc(100vw - 24px));
    padding: 10px 20px 10px 12px;
    transform-origin: bottom center;
  }

  .actions .action-tooltip.is-visible {
    transform: translate3d(50%, 0, 0);
    animation: tooltip-attention-nudge 2800ms ease-in-out 260ms infinite;
  }

  .actions .action-tooltip.is-hiding {
    transform: translate3d(50%, 4px, 0);
    animation: none;
  }

  .actions .action-tooltip::before {
    left: 50%;
    top: 100%;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(5, 33, 90, 0.12);
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .reset-fab {
    right: 24px;
    bottom: 24px;
    transform: none;
  }

  .disclaimer-group {
    align-items: center;
  }
}

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

@keyframes progress-hatch {
  to {
    transform: translate3d(14px, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .actions .action-tooltip {
    transition: none;
    animation: none !important;
  }
}

@keyframes tooltip-attention-nudge {
  0% {
    margin-left: 0;
  }
  6% {
    margin-left: 3px;
  }
  12% {
    margin-left: -3px;
  }
  18% {
    margin-left: 2px;
  }
  24% {
    margin-left: -1px;
  }
  30% {
    margin-left: 0;
  }
  100% {
    margin-left: 0;
  }
}
