.ps-hero {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  border-radius: 1.25rem;
  background: #f7f8fb;
  color: #111827;
  margin: 1.5rem 0;
}

.ps-hero-compact h1 {
  margin: 0.25rem 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
}

.ps-eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  opacity: 0.75;
}

.ps-hero-actions,
.ps-form-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ps-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
}

.ps-button-primary {
  background: #111827;
  color: #ffffff;
}

.ps-button-secondary {
  background: #ffffff;
  color: #111827;
  border-color: #d1d5db;
}

.ps-grid {
  display: grid;
  gap: 1rem;
  margin: 1rem 0;
}

.ps-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ps-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ps-panel,
.ps-stat-card,
.ps-upgrade-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}

.ps-muted-panel {
  background: #f9fafb;
}

.ps-stat-card span,
.ps-stat-card small {
  display: block;
  color: #6b7280;
}

.ps-stat-card strong {
  display: block;
  font-size: 2rem;
  line-height: 1.1;
  margin: 0.35rem 0;
}

.ps-panel-header,
.ps-upgrade-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ps-list {
  display: grid;
  gap: 0.75rem;
}

.ps-list-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem;
  border-radius: 0.85rem;
  background: #f9fafb;
}

.ps-list-row small {
  display: block;
  color: #6b7280;
  margin-top: 0.2rem;
}

.ps-empty {
  padding: 1.25rem;
  border: 1px dashed #d1d5db;
  border-radius: 1rem;
  background: #fbfbfd;
}

.ps-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.ps-panel label {
  display: grid;
  gap: 0.35rem;
  margin: 0.75rem 0;
  font-weight: 650;
}

.ps-panel input,
.ps-panel select,
.ps-panel textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.75rem;
  font: inherit;
}

.ps-fieldset {
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 0.75rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
}

.ps-fieldset label,
.ps-inline-check {
  display: flex !important;
  align-items: center;
  gap: 0.5rem !important;
  margin: 0 !important;
  font-weight: 500 !important;
}

.ps-fieldset input,
.ps-inline-check input {
  width: auto;
}

.ps-preset-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ps-preset,
.ps-pill {
  border: 1px solid #d1d5db;
  background: #ffffff;
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
}

.ps-preset.is-active {
  background: #111827;
  color: white;
  border-color: #111827;
}

.ps-pill {
  cursor: default;
  font-size: 0.8rem;
  color: #4b5563;
}

.ps-check-list {
  padding-left: 1.2rem;
}

.ps-check-list li {
  margin: 0.4rem 0;
}

.ps-callout {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 1rem;
  background: #f3f4f6;
}

.ps-form-message {
  min-height: 1.25rem;
  font-weight: 700;
}

.ps-form-message.is-error {
  color: #b91c1c;
}

.ps-form-message.is-success {
  color: #047857;
}

@media (max-width: 800px) {
  .ps-hero,
  .ps-panel-header,
  .ps-upgrade-card {
    display: block;
  }

  .ps-grid-2,
  .ps-grid-4,
  .ps-form-grid {
    grid-template-columns: 1fr;
  }

  .ps-fieldset {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ps-hero-actions {
    margin-top: 1rem;
  }
}
