.homeeq-shell .homeeq-layout {
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
}

.homeeq-shell .homeeq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: 18px;
}

.homeeq-shell .adcalc-field small {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

.homeeq-shell .adcalc-validation:empty {
  margin: 0;
  min-height: 0;
}

.homeeq-shell .adcalc-validation:not(:empty) {
  margin-top: 10px;
  min-height: 20px;
}

.homeeq-shell .homeeq-percent-input {
  grid-template-columns: 1fr auto;
}

.homeeq-shell .homeeq-affix-suffix {
  border-right: 0;
  border-left: 1px solid #bcc8df;
}

.homeeq-results {
  display: grid;
  align-content: start;
}

.homeeq-gauge {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin: 10px 0 16px;
}

.homeeq-gauge-ring {
  --homeeq-equity: 50%;
  width: 138px;
  aspect-ratio: 1;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: conic-gradient(#2563eb 0 var(--homeeq-equity), #e2e8f0 var(--homeeq-equity) 100%);
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .08);
}

.homeeq-gauge-ring::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: inherit;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e2e8f0;
}

.homeeq-gauge-ring span {
  position: relative;
  z-index: 1;
  color: #0f172a;
  font-weight: 800;
  font-size: 24px;
}

.homeeq-gauge-legend {
  display: grid;
  gap: 8px;
  color: #475569;
  font-size: 14px;
}

.homeeq-gauge-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.homeeq-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.homeeq-dot-equity {
  background: #2563eb;
}

.homeeq-dot-debt {
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
}

.homeeq-shell .homeeq-kpis {
  grid-template-columns: 1fr;
}

.homeeq-positive {
  color: #047857;
}

.homeeq-negative {
  color: #b91c1c;
}

.homeeq-scenarios h2 {
  margin: 0 0 8px;
}

.homeeq-scenarios p {
  margin: 0 0 14px;
  color: #475569;
  line-height: 1.6;
}

.homeeq-table-wrap {
  overflow-x: auto;
}

.homeeq-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.homeeq-table th,
.homeeq-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  text-align: right;
  white-space: nowrap;
}

.homeeq-table th:first-child,
.homeeq-table td:first-child {
  text-align: left;
}

.homeeq-table th {
  color: #475569;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

@media (max-width: 900px) {
  .homeeq-shell .homeeq-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .homeeq-shell .homeeq-grid {
    grid-template-columns: 1fr;
  }

  .homeeq-gauge {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}
