.sp-page {
  display: grid;
  align-content: start;
  gap: 1.4rem;
  min-width: 0;
}
.sp-page h1,
.sp-page h2,
.sp-page p,
.sp-dialog p {
  margin: 0;
}
.sp-page h1 {
  overflow-wrap: anywhere;
}
.sp-heading,
.sp-section-heading,
.sp-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}
.sp-heading-actions {
  display: flex;
  align-items: end;
  gap: 0.65rem;
  flex-wrap: wrap;
  max-width: 100%;
}
.sp-heading > div:first-child {
  min-width: 0;
  flex: 1 1 17rem;
}
.sp-heading p {
  color: var(--muted);
  margin-top: 0.45rem;
}
.sp-back {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  justify-self: start;
  color: var(--green);
  font-weight: 600;
  font-size: 0.88rem;
}
.sp-retry {
  justify-self: start;
}
.sp-scope {
  width: min(100%, 12rem);
}
.sp-search,
.sp-panel,
.sp-metric {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  min-width: 0;
}
.sp-search {
  padding: 1.15rem 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.7rem;
}
.sp-panel {
  container: sp-data / inline-size;
  overflow: hidden;
}
.sp-section-heading {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.sp-section-heading h2 {
  font-size: 1.08rem;
  font-weight: 650;
  letter-spacing: -0.025em;
}
.sp-scroll {
  overflow-x: auto;
}
.sp-table {
  width: 100%;
  border-spacing: 0;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.89rem;
}
.sp-table td,
.sp-table th {
  padding: 0.8rem 1.2rem;
  vertical-align: middle;
  border-bottom: 1px solid #e8ebe4;
}
.sp-table th {
  background: #f5f7f2;
  color: #4a5b4f;
  font-size: 0.79rem;
  font-weight: 650;
}
.sp-cell:empty::after {
  content: "—";
  color: var(--muted);
}
.sp-table tbody tr:last-child td {
  border-bottom: 0;
}
.sp-table tr[aria-current="location"] {
  background: #f4f4da;
  box-shadow: inset 3px 0 #7f8e46;
  scroll-margin-block: 4.5rem;
}
.sp-table code,
.sp-cell {
  overflow-wrap: anywhere;
}
.sp-table code,
.sp-table small {
  display: block;
  font-size: 0.79rem;
  line-height: 1.45;
  color: var(--muted);
}
.sp-cell > * + * {
  margin-top: 0.15rem;
}
.sp-table a,
.sp-back:hover {
  color: var(--green);
  text-decoration: underline;
  text-decoration-color: #9fb3a3;
  text-underline-offset: 0.17em;
}
.sp-table a {
  display: block;
  width: fit-content;
}
.sp-table a:hover {
  text-decoration-color: currentColor;
}
.sp-table .sp-number {
  text-align: end;
  font-variant-numeric: tabular-nums;
}
.sp-table .sp-number a {
  margin-inline-start: auto;
}
.sp-table summary {
  cursor: pointer;
  font-size: 0.83rem;
  color: var(--green);
}
.sp-mobile-label {
  display: none;
}
.sp-table .sp-status,
.sp-env {
  display: inline-block;
  padding: 0.12rem 0.52rem;
  background: #edf0e9;
  color: #4f5c50;
  border-radius: 1rem;
  font-weight: 650;
  font-size: 0.77rem;
  line-height: 1.5;
}
.sp-status {
  text-transform: capitalize;
}
.sp-status.is-active,
.sp-stripe_live {
  background: #e4efe5;
  color: #27563d;
}
.sp-stripe_test {
  background: #f0e9f8;
  color: #664578;
}
.sp-demo {
  background: #f0eadd;
  color: #67542e;
}
.sp-context {
  padding: 0.8rem 1.35rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
  font-size: 0.91rem;
}
.sp-action {
  min-width: 0;
  border: 0;
  padding: 1.15rem 1.35rem;
  margin: 0;
  display: grid;
  gap: 1rem;
}
.sp-action-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  border-top: 1px solid var(--line);
  padding: 0.9rem 1.35rem;
}
.sp-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.sp-impact h3 {
  margin: 0 0 0.75rem;
}
.sp-impact-values {
  margin: 0 0 0.85rem;
  padding: 0.8rem 1rem;
  background: #f2f5ef;
  border-radius: 7px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}
.sp-impact dt {
  color: var(--muted);
  font-size: 0.84rem;
}
.sp-impact dd {
  margin: 0.2rem 0 0;
  overflow-wrap: anywhere;
}
.sp-impact-values dd {
  font-weight: 650;
  font-size: 1.18rem;
  font-variant-numeric: tabular-nums;
}
.sp-review-reason {
  margin: 0.85rem 0 0;
}
.sp-review-reason dd {
  white-space: pre-wrap;
}
.sp-account-summary {
  display: grid;
  gap: 0.85rem;
}
.sp-account-summary .sp-scope {
  width: min(100%, 16rem);
}
.sp-metrics {
  display: grid;
  gap: 0.8rem;
}
.sp-account-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.sp-report-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.sp-metric {
  padding: 1.1rem 1.15rem;
  display: grid;
  align-content: space-between;
  gap: 0.6rem;
  overflow-wrap: anywhere;
}
.sp-metric strong {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1.12;
}
.sp-metric span,
.sp-empty {
  font-size: 0.88rem;
  color: var(--muted);
}
.sp-sections {
  display: flex;
  border-bottom: 1px solid var(--line);
  gap: 1.2rem;
  flex-wrap: wrap;
}
.sp-sections a {
  padding: 0.48rem 0.08rem 0.63rem;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}
.sp-sections a:hover {
  color: var(--ink);
}
.sp-sections a[aria-current] {
  color: var(--green);
  border-bottom-color: var(--green);
}
.sp-empty {
  padding: 1.05rem 1.25rem;
}
.sp-note,
.sp-error,
.sp-success {
  padding: 0.75rem 1rem;
  border-radius: 7px;
}
.sp-panel > .sp-note {
  margin: 0.75rem 1.2rem;
}
.sp-note {
  background: #fbf6e8;
  color: #654914;
}
.sp-error,
.sp-warning {
  color: #942d24;
}
.sp-error {
  background: #fff0eb;
}
.sp-success {
  background: #ebf4ec;
  color: #285133;
}
.sp-warning {
  display: block;
  font-size: 0.8rem;
}
.sp-ranks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  align-items: start;
  gap: 1rem;
}
@container sp-data (max-width: 565px) {
  .sp-table.sp-stack,
  .sp-stack tbody {
    display: block;
  }
  .sp-stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .sp-stack tbody tr {
    display: grid;
    gap: 0.36rem;
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid var(--line);
  }
  .sp-stack tbody tr:last-child {
    border: 0;
  }
  .sp-stack tbody td {
    display: grid;
    align-items: baseline;
    grid-template-columns: minmax(5rem, 30%) minmax(0, 1fr);
    gap: 0.7rem;
    border: 0;
    padding: 0;
    text-align: start;
  }
  .sp-stack .sp-mobile-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
  }
  .sp-stack tbody td.sp-number {
    text-align: start;
  }
  .sp-stack .sp-number a {
    margin-inline-start: 0;
  }
}
@media (max-width: 940px) {
  .sp-report-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 670px) {
  .sp-page {
    gap: 1.1rem;
  }
  .sp-metric {
    padding: 0.85rem 0.75rem;
  }
  .sp-scope {
    max-width: 100%;
  }
  .sp-search {
    padding: 1rem;
  }
  .sp-account-metrics {
    gap: 0.5rem;
  }
  .sp-context,
  .sp-action,
  .sp-action-footer {
    padding-inline: 1rem;
  }
}
@media (max-width: 460px) {
  .sp-search {
    grid-template-columns: 1fr;
  }
  .sp-search button[type="submit"] {
    justify-self: end;
  }
  .sp-account-metrics {
    grid-template-columns: 1fr;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
  }
  .sp-account-metrics .sp-metric {
    grid-template-columns: 1fr auto;
    align-items: center;
    border: 0;
    background: transparent;
  }
  .sp-account-metrics .sp-metric + .sp-metric {
    border-top: 1px solid var(--line);
    border-radius: 0;
  }
  .sp-account-metrics .sp-metric strong {
    font-size: 1.2rem;
  }
}
