.profile-precision-route {
  display: grid;
  gap: 18px;
  color: var(--ink, #153a37);
}

.profile-precision-route__head,
.profile-auto-audit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.profile-precision-route__score {
  display: grid;
  min-width: 92px;
  text-align: right;
}

.profile-precision-route__score strong {
  color: #0d8178;
  font-family: var(--font-display, inherit);
  font-size: clamp(1.875rem, calc(7vw * var(--app-font-scale)), 2.875rem);
  line-height: .9;
}

.profile-precision-route__score small,
.profile-auto-audit small {
  color: var(--muted, #738784);
  font-size: 0.6875rem;
}

.profile-precision-route__meter {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(13, 129, 120, .1);
}

.profile-precision-route__meter::before {
  display: block;
  width: var(--profile-route-completion, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0c736d, #55c8b6);
  content: "";
  transition: width .35s ease;
}

.profile-source-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-source-list > li { min-width: 0; }

.profile-source-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(15, 91, 86, .12);
  border-radius: 18px;
  background: rgba(255, 255, 255, .72);
  color: inherit;
  text-align: left;
  box-shadow: 0 10px 30px rgba(24, 70, 66, .06);
  overflow: hidden;
  transition: border-color .24s ease, box-shadow .24s ease, transform .24s ease;
}

.profile-source-card::before,
.profile-source-card::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.profile-source-card::before {
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--source-accent, #38bdb1);
  box-shadow: 0 0 20px color-mix(in srgb, var(--source-accent, #38bdb1) 42%, transparent);
}

.profile-source-card::after {
  inset: -58px -38px auto auto;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--source-accent, #38bdb1) 18%, transparent), transparent 68%);
}

.profile-source-list > li:nth-child(1) .profile-source-card { --source-accent: #25b9aa; }
.profile-source-list > li:nth-child(2) .profile-source-card { --source-accent: #8172d9; }
.profile-source-list > li:nth-child(3) .profile-source-card { --source-accent: #d8a936; }

.profile-source-card:where(:hover, :focus-visible) {
  border-color: color-mix(in srgb, var(--source-accent, #38bdb1) 42%, transparent);
  box-shadow: 0 16px 38px rgba(24, 70, 66, .11);
  transform: translateY(-2px);
}

.profile-source-card > i {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: #e7f7f3;
  color: var(--source-accent, #0d8178);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--source-accent, #0d8178) 22%, transparent), 0 8px 22px color-mix(in srgb, var(--source-accent, #0d8178) 14%, transparent);
}

.profile-source-card span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.profile-source-card span strong { font-size: clamp(1rem, 2.5vw, 1.125rem); line-height: 1.2; }
.profile-source-card span small { color: var(--muted, #738784); font-size: 0.8125rem; line-height: 1.42; }
.profile-source-card > b { color: var(--source-accent, #0d8178); font-size: 0.75rem; line-height: 1.25; text-align: right; }
.profile-source-card > u { display: none; }
.profile-source-card.is-complete { border-color: rgba(13, 129, 120, .28); background: #f2fbf8; }
.profile-source-card.is-active { border-color: rgba(13, 129, 120, .22); }

.profile-auto-audit {
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0b3d3a, #0d615b);
  color: white;
}

.profile-auto-audit > i { flex: 0 0 auto; }
.profile-auto-audit span { display: grid; gap: 3px; }
.profile-auto-audit small { color: rgba(255, 255, 255, .65); }

html[data-theme="dark"] .profile-source-card { background: rgba(15, 37, 35, .9); border-color: rgba(111, 216, 198, .16); }
html[data-theme="dark"] .profile-source-card.is-complete { background: rgba(10, 77, 70, .34); }
html[data-theme="dark"] .profile-source-card > i { background: rgba(61, 153, 143, .18); color: #72ddd1; }

@media (min-width: 760px) {
  .profile-source-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-source-list > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .profile-source-card { transition: none; }
}
