.pbp-tool-form .pbp-field {
  margin-bottom: 1rem;
}

.pbp-tool-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.pbp-tool-form input,
.pbp-tool-form select {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}

.pbp-tool-form .pbp-hint {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.25rem;
}

.pbp-tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.pbp-tool-results {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.pbp-tool-results.is-hidden,
.pbp-tool-error.is-hidden {
  display: none;
}

.pbp-tool-error {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 0.5rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 0.875rem;
}

.pbp-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.pbp-stat-box {
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #fff;
}

.pbp-stat-box .label {
  font-size: 0.75rem;
  color: #64748b;
}

.pbp-stat-box .value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 0.25rem;
}

.pbp-bar-row {
  margin-bottom: 0.75rem;
}

.pbp-bar-row .row-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.pbp-bar-track {
  height: 0.5rem;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
}

.pbp-bar-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(to right, var(--brand-primary, #0d9488), #3b82f6);
}

.pbp-data-table {
  width: 100%;
  font-size: 0.875rem;
  border-collapse: collapse;
  margin-top: 1rem;
}

.pbp-data-table th,
.pbp-data-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #f1f5f9;
  text-align: left;
}

.pbp-insights {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 0.75rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  font-size: 0.875rem;
  color: #1e3a5f;
}

.pbp-readiness-q {
  padding: 1rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.pbp-readiness-q legend {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.pbp-readiness-q label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 400;
  margin-bottom: 0.35rem;
  cursor: pointer;
}

.pbp-tool-card-link {
  display: block;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.pbp-tool-card-link:hover {
  border-color: rgba(13, 148, 136, 0.4);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}
