.st-match-panel {
  --st-match: #0c7c7e;
  max-width: 1180px;
  margin: 1.5rem auto;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid #cfe0dc;
  border-radius: 22px;
  background: linear-gradient(145deg, #ffffff, #f4faf8);
  color: #173338;
  box-shadow: 0 16px 38px rgba(13, 56, 63, 0.1);
}

.st-match-panel__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.st-match-score {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border: 8px solid #dcecea;
  border-top-color: var(--st-match);
  border-radius: 50%;
  background: #fff;
  color: #073f45;
  font-size: 1.35rem;
  font-weight: 900;
}

.st-match-panel h2,
.st-match-panel h3 {
  color: #12383d !important;
}

.st-match-panel h2 {
  margin: 0.15rem 0 0.3rem;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.st-match-panel p {
  margin: 0;
  color: #577076;
}

.st-match-private {
  align-self: start;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: #e7f4ef;
  color: #16634f;
  font-size: 0.74rem;
  font-weight: 850;
  white-space: nowrap;
}

.st-match-components {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.st-match-component {
  padding: 0.8rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #d9e6e3;
}

.st-match-component strong,
.st-match-component span {
  display: block;
}

.st-match-next {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #073f45;
  color: #fff;
}

.st-match-next strong {
  font-size: 0.92rem;
}

.st-match-next a {
  color: #f3cf6b !important;
  font-weight: 850;
  white-space: nowrap;
  text-decoration: none !important;
}

.st-match-component strong {
  color: #073f45;
  font-size: 1.05rem;
}

.st-match-component span {
  margin-top: 0.15rem;
  color: #657b80;
  font-size: 0.72rem;
}

.st-match-requirements {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.st-match-requirement {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #dce7e5;
  border-radius: 12px;
  background: #fff;
}

.st-match-requirement strong,
.st-match-requirement span {
  display: block;
}

.st-match-requirement span {
  margin-top: 0.15rem;
  color: #6b7d81;
  font-size: 0.72rem;
}

.st-match-requirement b {
  font-size: 0.76rem;
  white-space: nowrap;
}

.st-match-requirement--matched b { color: #17734e; }
.st-match-requirement--partial b { color: #9a6410; }
.st-match-requirement--gap b { color: #a43b3b; }

.st-match-outcomes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.st-match-outcomes section {
  padding: 1rem;
  border: 1px solid #d7e6e3;
  border-radius: 14px;
  background: #fff;
}

.st-match-outcomes h3 {
  margin: 0 0 .65rem;
  font-size: 1rem;
}

.st-match-outcome-list {
  display: grid;
  gap: .45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.st-match-outcome-list li {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: .45rem;
  align-items: center;
  font-size: .82rem;
}

.st-match-outcome-list li span { color: #17734e; font-weight: 900; }
.st-match-outcome-list .st-match-requirement--partial span,
.st-match-outcome-list .st-match-requirement--gap span { color: #a36b13; }
.st-match-outcome-list li b { color: #667b7f; font-size: .7rem; }

.st-match-note {
  margin-top: 1rem !important;
  font-size: 0.78rem;
  line-height: 1.55;
}

.st-match-credentials {
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: 14px;
  background: #eef7f4;
}

.st-match-credentials h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.st-match-credentials ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.st-match-credentials li {
  display: grid;
  gap: 0.1rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid #cfe2dd;
  border-radius: 10px;
  background: #fff;
}

.st-match-credentials li span,
.st-match-credentials li b {
  color: #667b7f;
  font-size: 0.68rem;
}

.st-job-match-summary {
  display: flex;
  gap: 0.55rem;
  align-items: baseline;
  margin: 0.55rem 0 0;
  color: #526a70;
  font-size: 0.76rem;
}

.st-job-match-summary strong {
  color: #086f72;
  font-size: 1rem;
}

.st-match-guest .st-match-panel__head {
  grid-template-columns: minmax(0, 1fr) auto;
}

.st-match-button {
  display: inline-flex;
  justify-content: center;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  background: #087f82;
  color: #fff !important;
  font-weight: 850;
  text-decoration: none !important;
}

@media (max-width: 760px) {
  .st-match-panel__head,
  .st-match-guest .st-match-panel__head {
    grid-template-columns: 1fr;
  }

  .st-match-score { width: 80px; height: 80px; }
  .st-match-private { justify-self: start; }
  .st-match-next { align-items: flex-start; flex-direction: column; }
  .st-match-components { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-match-requirements { grid-template-columns: 1fr; }
  .st-match-outcomes { grid-template-columns: 1fr; }
}
