.hsp-page-intro {
  position: relative;
  margin-bottom: 22px;
  padding: 25px 28px 27px;
  overflow: hidden;
  border: 1px solid rgba(80, 18, 20, 0.12);
  border-radius: 20px;
  background:
    radial-gradient(circle at 92% 18%, rgba(215, 189, 138, 0.24), transparent 17rem),
    linear-gradient(112deg, #ffffff 0%, #fbf6ed 100%);
  box-shadow: 0 14px 30px rgba(80, 18, 20, 0.07);
}

.hsp-page-intro::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--base-maroon), var(--base-gold));
  content: "";
}

.hsp-kicker,
#hsp-page .hsp-view-label {
  color: var(--base-maroon);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hsp-page-title {
  margin: 5px 0 7px;
  color: var(--base-ink);
  font-family: var(--base-font-display);
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 700;
  line-height: 1;
}

.hsp-page-copy {
  max-width: 880px;
  margin: 0;
  color: var(--base-muted);
  font-size: 14px;
  line-height: 1.55;
}

#hsp-page {
  color: var(--base-ink);
}

#hsp-page > .card,
#hsp-page .bslib-grid > .card,
#hsp-page .hsp-visual-card,
#hsp-page .hsp-table-card {
  border: 1px solid rgba(80, 18, 20, 0.11);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(80, 18, 20, 0.055);
}

#hsp-page .card-header {
  padding: 16px 18px 14px;
  border-bottom: 1px solid rgba(80, 18, 20, 0.09);
  background: transparent;
  color: var(--base-ink);
  font-family: var(--base-font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

#hsp-page .card-body {
  padding: 18px;
}

#hsp-page .form-group {
  margin-bottom: 14px;
}

#hsp-page label {
  margin-bottom: 6px;
  color: var(--base-ink);
  font-size: 12px;
  font-weight: 700;
}

#hsp-page .selectize-input,
#hsp-page .form-control {
  min-height: 42px;
  border-color: rgba(80, 18, 20, 0.18);
  border-radius: 10px;
  box-shadow: none;
}

.hsp-helper,
.hsp-card-copy,
.hsp-section-copy,
.hsp-view-row p {
  color: var(--base-muted);
  font-size: 12px;
  line-height: 1.45;
}

.hsp-helper {
  margin: -2px 0 8px;
}

.hsp-status-wrap {
  margin-top: 10px;
}

.hsp-status {
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--base-success-soft);
  color: var(--base-success);
  font-size: 12px;
  font-weight: 700;
}

.hsp-status.error {
  background: var(--base-danger-soft);
  color: var(--base-danger);
}

.hsp-meta-card {
  display: flex;
  min-height: 168px;
  flex-direction: column;
  justify-content: center;
  padding: 18px 20px;
  border: 1px solid rgba(80, 18, 20, 0.09);
  border-radius: 15px;
  background:
    linear-gradient(130deg, rgba(80, 18, 20, 0.035), rgba(215, 189, 138, 0.12));
}

.hsp-meta-name {
  color: var(--base-maroon);
  font-family: var(--base-font-display);
  font-size: 28px;
  font-weight: 700;
}

.hsp-meta-line {
  margin-top: 4px;
  color: var(--base-ink);
  font-size: 13px;
  font-weight: 700;
}

.hsp-meta-detail {
  margin-top: 5px;
  color: var(--base-muted);
  font-size: 12px;
}

.hsp-meta-badge {
  align-self: flex-start;
  margin-top: 13px;
  padding: 5px 10px;
  border: 1px solid rgba(80, 18, 20, 0.15);
  border-radius: 999px;
  background: #ffffff;
  color: var(--base-maroon);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

#hsp-page .hsp-view-card {
  margin-bottom: 16px;
  background: linear-gradient(90deg, rgba(80, 18, 20, 0.035), rgba(215, 189, 138, 0.10));
}

.hsp-view-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.hsp-view-row p {
  margin: 4px 0 0;
}

.hsp-view-row .form-group {
  margin: 0;
  white-space: nowrap;
}

.hsp-stat-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hsp-stat-group {
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(80, 18, 20, 0.09);
  border-radius: 16px;
  background: #fbf8f3;
}

.hsp-stat-group-title {
  margin-bottom: 11px;
  color: var(--base-maroon);
  font-family: var(--base-font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.hsp-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.hsp-stat-tile {
  min-height: 79px;
  padding: 12px 11px;
  border-radius: 13px;
  background: var(--base-maroon);
  box-shadow: 0 8px 18px rgba(80, 18, 20, 0.10);
}

.hsp-stat-label {
  min-height: 24px;
  color: rgba(255, 255, 255, 0.70);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.065em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hsp-stat-value {
  color: #ffffff;
  font-family: var(--base-font-data);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.hsp-section-label {
  margin: 30px 0 7px;
  color: var(--base-ink);
  font-family: var(--base-font-display);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.hsp-section-copy {
  margin: 0 0 14px;
}

#hsp-page .hsp-filter-card {
  margin-bottom: 14px;
  background: #fbf8f3;
}

.hsp-filter-summary {
  padding: 9px 11px;
  border-radius: 9px;
  background: rgba(80, 18, 20, 0.055);
  color: var(--base-muted);
  font-size: 11px;
}

.hsp-filter-summary strong {
  color: var(--base-maroon);
}

#hsp-page .hsp-visual-card {
  overflow: hidden;
}

#hsp-page .hsp-visual-card .card-body {
  background: #ffffff;
}

.hsp-card-copy {
  margin: 0 0 7px;
}

#hsp-page .hsp-table-card {
  margin-bottom: 14px;
  overflow: hidden;
}

#hsp-page .hsp-table-card .card-header {
  padding: 15px 18px 13px;
  background: linear-gradient(90deg, rgba(80, 18, 20, 0.045), rgba(215, 189, 138, 0.08));
}

#hsp-page .cpp-table-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
}

#hsp-page .cpp-table-title {
  color: var(--base-maroon);
  font-family: var(--base-font-display);
  font-size: 18px;
  font-weight: 700;
}

#hsp-page .cpp-table-subtitle {
  color: var(--base-muted);
  font-family: var(--base-font-body);
  font-size: 11px;
  font-weight: 500;
  text-align: right;
}

#hsp-page .hsp-table-body {
  padding: 14px 18px 17px;
  overflow-x: auto;
}

#hsp-page .hsp-table-card-wide .cpp-performance-table {
  min-width: 1120px;
}

#hsp-page .cpp-performance-table {
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(80, 18, 20, 0.09);
  border-radius: 12px;
  font-family: var(--base-font-body);
}

#hsp-page .cpp-performance-table .rt-tr:hover .rt-td {
  background: #f4ecdf !important;
}

#hsp-page .cpp-table-pitch,
#hsp-page .cpp-pct-bar,
#hsp-page .cpp-pct-bar-fill,
#hsp-page .cpp-pct-bar-label,
#hsp-page .cpp-table-pitch-dot {
  box-sizing: border-box;
}

#hsp-page .cpp-table-pitch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

#hsp-page .cpp-table-pitch-dot {
  width: 9px;
  height: 9px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(80, 18, 20, 0.16);
}

#hsp-page .cpp-pct-bar {
  position: relative;
  min-width: 70px;
  height: 24px;
  overflow: hidden;
  border: 1px solid rgba(80, 18, 20, 0.10);
  border-radius: 7px;
  background: rgba(80, 18, 20, 0.04);
}

#hsp-page .cpp-pct-bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, rgba(80, 18, 20, 0.16), rgba(215, 189, 138, 0.46));
}

#hsp-page .cpp-pct-bar-label {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  padding: 0 7px;
  font-family: var(--base-font-data);
  font-size: 11px;
  font-weight: 800;
}

@media (max-width: 900px) {
  .hsp-stat-groups { grid-template-columns: 1fr; }
  .hsp-view-row { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 650px) {
  .hsp-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #hsp-page .cpp-table-heading { display: block; }
  #hsp-page .cpp-table-subtitle { margin-top: 4px; text-align: left; }
}
