.ps-page {
  padding: 22px;
  background: #f7f5fb;
}

.ps-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 26px;
  border-radius: 24px;
  background: linear-gradient(135deg, #4e256c 0%, #7648c9 58%, #76dda5 140%);
  color: #fff;
  margin-bottom: 18px;
  box-shadow: 0 18px 45px rgba(78, 37, 108, 0.22);
}

.ps-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.86;
  margin-bottom: 8px;
}

.ps-hero h2 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.1;
}

.ps-hero p {
  margin: 0;
  max-width: 760px;
  opacity: 0.92;
}

.ps-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(78, 37, 108, 0.08);
  margin-bottom: 18px;
}

.ps-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #575756;
}

.ps-field input,
.ps-field select {
  width: 100%;
  height: 42px;
  border: 1px solid #e4dff0;
  border-radius: 14px;
  padding: 0 12px;
  background: #fff;
  color: #3c3c3b;
  outline: none;
}

.ps-field input:focus,
.ps-field select:focus {
  border-color: #7648c9;
  box-shadow: 0 0 0 3px rgba(118, 72, 201, 0.12);
}

.ps-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ps-primary,
.ps-secondary {
  height: 42px;
  border: 0;
  border-radius: 14px;
  padding: 0 15px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.ps-primary {
  background: #48c976;
  color: #fff;
}

.ps-secondary {
  background: #f0ebfa;
  color: #4e256c;
}

.ps-grid {
  display: grid;
  gap: 14px;
}

.ps-kpis {
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  margin-bottom: 18px;
}

.ps-card,
.ps-panel {
  background: #fff;
  border: 1px solid rgba(118, 72, 201, 0.10);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(78, 37, 108, 0.08);
}

.ps-card {
  padding: 18px;
}

.ps-card span {
  display: block;
  color: #575756;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.ps-card strong {
  display: block;
  color: #4e256c;
  font-size: 30px;
  line-height: 1;
  margin-bottom: 8px;
}

.ps-card small {
  color: #777;
}

.ps-panel {
  padding: 18px;
  margin-bottom: 18px;
}

.ps-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.ps-panel h3 {
  margin: 0 0 4px;
  color: #3c3c3b;
  font-size: 20px;
}

.ps-panel p {
  margin: 0;
  color: #6b6b6b;
}

.ps-recommendations {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
}

.ps-rec {
  padding: 16px;
  border-radius: 18px;
  background: #f7f5fb;
  border: 1px solid #eee7fb;
}

.ps-rec span {
  display: inline-block;
  margin-bottom: 8px;
  color: #7648c9;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.ps-rec p {
  color: #3c3c3b;
  font-weight: 650;
}

.ps-table-wrap {
  overflow-x: auto;
}

.ps-table {
  width: 100%;
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
}

.ps-table th {
  text-align: left;
  padding: 12px;
  background: #f7f5fb;
  color: #4e256c;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #ece4f7;
}

.ps-table td {
  padding: 13px 12px;
  border-bottom: 1px solid #f0edf5;
  color: #3c3c3b;
  vertical-align: top;
}

.ps-table tr:hover td {
  background: #fbf9ff;
}

.ps-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: #efe9fa;
  color: #4e256c;
  font-weight: 800;
  font-size: 12px;
}

.ps-empty {
  padding: 16px;
  border-radius: 16px;
  background: #f7f5fb;
  color: #575756;
}

@media (max-width: 1100px) {
  .ps-filters {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .ps-kpis,
  .ps-recommendations {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .ps-hero {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 680px) {
  .ps-page {
    padding: 14px;
  }

  .ps-filters,
  .ps-kpis,
  .ps-recommendations {
    grid-template-columns: 1fr;
  }

  .ps-hero h2 {
    font-size: 24px;
  }
}
