/* investment-property-analyzer — extracted from inline <style> */
.evvy-ipa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.evvy-ipa-grade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-right: 0.75rem;
  flex-shrink: 0;
}
.evvy-ipa-grade-a { background: #16a34a; }
.evvy-ipa-grade-b { background: #65a30d; }
.evvy-ipa-grade-c { background: #f59e0b; }
.evvy-ipa-grade-d { background: #ea580c; }
.evvy-ipa-grade-f { background: #dc2626; }
.evvy-ipa-grade-wrap {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--bs-body-bg, #fff);
  border: 1px solid var(--evvy-border-color, #DEE2E6);
  border-radius: var(--evvy-radius-lg, 12px);
  margin-top: 0.75rem;
}
.evvy-ipa-grade-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--evvy-text-primary, #333);
}
.evvy-ipa-grade-sub {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--evvy-text-secondary, #666);
  margin-top: 0.125rem;
}
.evvy-ipa-slider-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.35rem;
}
.evvy-ipa-slider-value {
  font-weight: 700;
  font-size: 1rem;
  color: var(--cluster-dark);
  font-variant-numeric: tabular-nums;
}
.evvy-ipa-projection-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  margin-top: 0.75rem;
  font-variant-numeric: tabular-nums;
}
.evvy-ipa-projection-table th {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--evvy-text-secondary, #666);
  padding: 0.5rem 0.625rem;
  border-bottom: 2px solid var(--evvy-border-color, #DEE2E6);
  text-align: right;
  white-space: nowrap;
}
.evvy-ipa-projection-table th:first-child { text-align: left; }
.evvy-ipa-projection-table td {
  padding: 0.4375rem 0.625rem;
  border-bottom: 1px solid var(--evvy-border-color, #DEE2E6);
  text-align: right;
  color: var(--evvy-text-primary, #333);
}
.evvy-ipa-projection-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--cluster-dark);
}
.evvy-ipa-projection-table tbody tr:hover {
  background: var(--cluster-surface);
}
.evvy-ipa-brrrr-wrap {
  margin-top: 1rem;
  background: var(--bs-body-bg, #fff);
  border: 1px solid var(--evvy-border-color, #DEE2E6);
  border-radius: var(--evvy-radius-lg, 12px);
  padding: 1.25rem 1.5rem;
}
.evvy-ipa-brrrr-header {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--evvy-text-secondary, #666);
  margin-bottom: 0.75rem;
}
.evvy-ipa-bd-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.375rem 0;
}
.evvy-ipa-bd-row span:first-child {
  color: var(--evvy-text-secondary, #666);
  font-size: 0.875rem;
}
.evvy-ipa-bd-row span:last-child {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
  font-size: 0.875rem;
}
.evvy-ipa-bd-divider {
  border-top: 1px dashed var(--evvy-border-color, #DEE2E6);
  margin: 0.25rem 0;
}
.evvy-ipa-bd-total span:first-child {
  font-weight: 600;
  color: var(--evvy-text-primary, #333);
}
.evvy-ipa-bd-total span:last-child {
  font-weight: 700;
  color: var(--cluster-dark);
}
.evvy-ipa-bar-recycled {
  height: 1.5rem;
  border-radius: var(--bs-border-radius-pill, 50rem);
  background: var(--evvy-gray-100, #F8F9FA);
  overflow: hidden;
  margin-top: 0.5rem;
}
.evvy-ipa-bar-fill {
  height: 100%;
  border-radius: var(--bs-border-radius-pill, 50rem);
  background: var(--cluster-dark);
  transition: width 0.5s ease;
}
.evvy-ipa-compare-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.evvy-ipa-compare-col {
  background: var(--bs-body-bg, #fff);
  border: 1px solid var(--evvy-border-color, #DEE2E6);
  border-radius: var(--evvy-radius-lg, 12px);
  padding: 1rem;
}
.evvy-ipa-compare-col-header {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cluster-dark);
  margin-bottom: 0.75rem;
  text-align: center;
}
.evvy-ipa-compare-row {
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 0;
  font-size: 0.8125rem;
}
.evvy-ipa-compare-row span:first-child {
  color: var(--evvy-text-secondary, #666);
}
.evvy-ipa-compare-row span:last-child {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.evvy-ipa-compare-rank {
  text-align: center;
  margin-top: 0.5rem;
  padding: 0.375rem 0.75rem;
  background: var(--cluster-surface);
  border-radius: var(--bs-border-radius-pill, 50rem);
  font-size: 0.75rem;
  font-weight: 700;
}
.evvy-ipa-loss { color: #dc3545 !important; }
.evvy-ipa-brrrr-only { display: none; }
[data-bs-theme="dark"] .evvy-ipa-grade-wrap,
[data-bs-theme="dark"] .evvy-ipa-brrrr-wrap,
[data-bs-theme="dark"] .evvy-ipa-compare-col {
  background: var(--evvy-gray-100, #1E1E1E);
}
[data-bs-theme="dark"] .evvy-ipa-projection-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}
@media (max-width: 575.98px) {
  .evvy-ipa-grid { grid-template-columns: 1fr; }
  .evvy-ipa-compare-grid { grid-template-columns: 1fr; }
  .evvy-ipa-projection-table { font-size: 0.75rem; }
  .evvy-ipa-projection-table th,
  .evvy-ipa-projection-table td { padding: 0.375rem 0.375rem; }
  #results-area .evvy-results-row { grid-template-columns: 1fr 1fr !important; }
}
