.pgt-app {
  margin: 1.5rem 0 2rem;
}

.pgt-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.pgt-toolbar input,
.pgt-toolbar select {
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--md-default-fg-color--lightest, #d0d7de);
  border-radius: 8px;
  background: var(--md-default-bg-color, #fff);
  color: var(--md-typeset-color, #1f2328);
  min-width: 220px;
}

.pgt-toolbar button,
.pgt-button {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--md-primary-fg-color, #0d9488);
  background: var(--md-primary-fg-color, #0d9488);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}

.pgt-button.secondary {
  background: transparent;
  color: var(--md-primary-fg-color, #0d9488);
}

.pgt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.pgt-card {
  border-radius: 14px;
  border: 1px solid var(--md-default-fg-color--lightest, #e5e7eb);
  background: var(--md-default-bg-color, #fff);
  padding: 1rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.pgt-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.pgt-meta {
  color: var(--md-default-fg-color--light, #6b7280);
  font-size: 0.9rem;
}

.pgt-actions {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pgt-link {
  text-decoration: none;
  color: var(--md-primary-fg-color, #0d9488);
  font-weight: 600;
}

.pgt-score {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.15);
  color: var(--md-primary-fg-color, #0d9488);
  font-weight: 700;
  font-size: 0.85rem;
}

.pgt-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pgt-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--md-default-fg-color--lightest, #e5e7eb);
}

.pgt-row strong {
  font-weight: 700;
}

.pgt-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-size: 0.75rem;
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
  font-weight: 600;
}

.pgt-chart {
  margin-top: 0.5rem;
  display: grid;
  gap: 0.35rem;
}

.pgt-bar {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(13, 148, 136, 0.85), rgba(14, 116, 144, 0.7));
  width: calc(var(--value, 0.5) * 100%);
}

.pgt-section {
  margin-top: 1.5rem;
}

.pgt-empty {
  padding: 1rem;
  border-radius: 12px;
  border: 1px dashed var(--md-default-fg-color--lightest, #e5e7eb);
  color: var(--md-default-fg-color--light, #6b7280);
}

.pgt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.pgt-table th,
.pgt-table td {
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--md-default-fg-color--lightest, #e5e7eb);
  text-align: left;
}

.pgt-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
  font-weight: 600;
  font-size: 0.75rem;
}

.pgt-evidence {
  margin-top: 0.5rem;
  background: rgba(15, 23, 42, 0.04);
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--md-default-fg-color--light, #6b7280);
}

.pgt-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--md-default-fg-color--light, #6b7280);
}
