/* home-equity-calculator — extracted from inline <style> */
.evvy-equity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.evvy-equity-bar-wrap {
  margin-top: 1.25rem;
  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);
}
.evvy-equity-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--evvy-text-secondary, #666);
  margin-bottom: 0.5rem;
}
.evvy-equity-bar {
  height: 2rem;
  border-radius: var(--bs-border-radius-pill, 50rem);
  background: var(--evvy-gray-100, #F8F9FA);
  overflow: hidden;
  display: flex;
}
.evvy-equity-bar-fill {
  height: 100%;
  transition: width 0.6s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #fff;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}
.evvy-equity-bar-equity {
  background: var(--cluster-dark);
  border-radius: var(--bs-border-radius-pill, 50rem) 0 0 var(--bs-border-radius-pill, 50rem);
}
.evvy-equity-bar-mortgage {
  background: #94a3b8;
  border-radius: 0 var(--bs-border-radius-pill, 50rem) var(--bs-border-radius-pill, 50rem) 0;
}
.evvy-equity-bar-legend {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--evvy-text-secondary, #666);
}
.evvy-equity-bar-legend span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.evvy-equity-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}
.evvy-equity-swatch-eq { background: var(--cluster-dark); }
.evvy-equity-swatch-mort { background: #94a3b8; }
.evvy-equity-bar-amounts {
  display: flex;
  justify-content: space-between;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.evvy-heloc-section {
  margin-top: 1.25rem;
  padding: 1.25rem;
  background: var(--cluster-surface);
  border-radius: var(--evvy-radius-lg, 12px);
  border: 1px solid var(--evvy-border-color, #DEE2E6);
}
.evvy-heloc-section .evvy-input-label {
  margin-bottom: 0.5rem;
}
.evvy-heloc-result {
  text-align: center;
  margin-top: 0.75rem;
}
.evvy-heloc-result-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--evvy-text-secondary, #666);
}
.evvy-heloc-result-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--cluster-dark);
  font-variant-numeric: tabular-nums;
}
.evvy-heloc-formula {
  font-size: 0.75rem;
  color: var(--evvy-text-secondary, #666);
  text-align: center;
  margin-top: 0.375rem;
}
.evvy-projection-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  margin-top: 0.75rem;
}
.evvy-projection-table th,
.evvy-projection-table td {
  padding: 0.5rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--evvy-border-color, #DEE2E6);
  font-variant-numeric: tabular-nums;
}
.evvy-projection-table th {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--evvy-text-secondary, #666);
}
.evvy-projection-table td:not(:first-child) {
  text-align: right;
}
.evvy-projection-table th:not(:first-child) {
  text-align: right;
}
.evvy-refi-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.75rem;
}
.evvy-refi-card {
  background: var(--bs-body-bg, #fff);
  border: 1px solid var(--evvy-border-color, #DEE2E6);
  border-radius: var(--evvy-radius-lg, 12px);
  padding: 1rem;
  text-align: center;
}
.evvy-refi-card .evvy-col-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cluster-dark);
  margin-bottom: 0.5rem;
}
.evvy-refi-amount {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--evvy-text-primary, #333);
  font-variant-numeric: tabular-nums;
}
.evvy-refi-note {
  font-size: 0.6875rem;
  color: var(--evvy-text-secondary, #666);
  margin-top: 0.25rem;
}
.evvy-negative-equity {
  color: #dc3545 !important;
}
[data-bs-theme="dark"] .evvy-equity-bar-wrap {
  background: var(--evvy-gray-100, #1E1E1E);
}
[data-bs-theme="dark"] .evvy-equity-bar {
  background: color-mix(in srgb, var(--evvy-gray-100, #1E1E1E) 80%, #000);
}
[data-bs-theme="dark"] .evvy-heloc-section {
  background: var(--evvy-gray-100, #1E1E1E);
}
[data-bs-theme="dark"] .evvy-refi-card {
  background: var(--evvy-gray-100, #1E1E1E);
}
@media (max-width: 575.98px) {
  .evvy-equity-grid { grid-template-columns: 1fr; }
  .evvy-refi-compare { grid-template-columns: 1fr; }
  #results-area .evvy-results-row { grid-template-columns: 1fr !important; }
}
/* ===== Dark-mode contrast fixes (cluster-dark backgrounds) ===== */
[data-bs-theme="dark"] .evvy-equity-bar-equity { color: var(--evvy-dark-text); }
