.hp-debt-tool {
  --hp-dpc-border: rgba(194, 214, 203, 0.92);
  --hp-dpc-shadow: 0 16px 40px rgba(13, 43, 29, 0.08);
  --hp-dpc-text: #163328;
  --hp-dpc-muted: #587065;
  --hp-dpc-soft: rgba(243, 248, 245, 0.96);
  --hp-dpc-accent: #1f7a4d;
  color: var(--hp-dpc-text);
}

.hp-debt-tool__intro {
  max-width: 46rem;
  margin-bottom: 1.5rem;
}

.hp-debt-tool__intro > * + * {
  margin-top: 0.8rem;
}

.hp-debt-tool__intro p {
  color: var(--hp-dpc-muted);
  line-height: 1.72;
}

.hp-debt-tool__disclaimer,
.hp-debt-tool__sample-note {
  font-size: 0.94rem;
}

.hp-debt-tool__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
  gap: 1rem;
  align-items: start;
}

.hp-debt-tool__panel {
  padding: clamp(1.15rem, 2vw, 1.6rem);
  border: 1px solid var(--hp-dpc-border);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, var(--hp-dpc-soft) 100%);
  box-shadow: var(--hp-dpc-shadow);
}

.hp-debt-tool__field-grid {
  display: grid;
  gap: 1rem;
}

.hp-debt-tool__field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 700;
  color: var(--hp-dpc-text);
}

.hp-debt-tool__helper {
  margin: 0 0 0.7rem;
  color: var(--hp-dpc-muted);
  font-size: 0.93rem;
  line-height: 1.62;
}

.hp-debt-tool__input {
  width: 100%;
  min-height: 3.2rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(186, 208, 196, 0.95);
  border-radius: 16px;
  background: #ffffff;
  color: var(--hp-dpc-text);
  font: inherit;
  box-shadow: inset 0 1px 2px rgba(13, 43, 29, 0.03);
}

.hp-debt-tool__input:focus {
  outline: 2px solid rgba(31, 122, 77, 0.18);
  outline-offset: 2px;
  border-color: rgba(31, 122, 77, 0.58);
}

.hp-debt-tool__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.hp-debt-tool__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.95rem;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hp-debt-tool__button:hover,
.hp-debt-tool__button:focus {
  transform: translateY(-1px);
}

.hp-debt-tool__button--primary {
  background: var(--hp-dpc-accent);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(20, 82, 53, 0.16);
}

.hp-debt-tool__button--primary:hover,
.hp-debt-tool__button--primary:focus {
  background: #145235;
  color: #ffffff;
}

.hp-debt-tool__button--secondary {
  border-color: var(--hp-dpc-border);
  background: rgba(255, 255, 255, 0.94);
  color: var(--hp-dpc-text);
}

.hp-debt-tool__summary {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(194, 214, 203, 0.82);
}

.hp-debt-tool__summary-text {
  margin: 0.5rem 0 0;
  color: var(--hp-dpc-text);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.5;
}

.hp-debt-tool__result-grid,
.hp-debt-tool__comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.hp-debt-tool__result-card,
.hp-debt-tool__comparison-card {
  padding: 1rem;
  border: 1px solid rgba(196, 215, 204, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
}

.hp-debt-tool__result-label,
.hp-debt-tool__comparison-label {
  margin: 0;
  color: var(--hp-dpc-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.hp-debt-tool__result-value,
.hp-debt-tool__comparison-value {
  margin: 0.35rem 0 0;
  color: var(--hp-dpc-text);
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  font-weight: 800;
  line-height: 1.08;
}

.hp-debt-tool__result-value--date,
.hp-debt-tool__result-value--impact {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.3;
}

.hp-debt-tool__comparison {
  margin-top: 1.2rem;
}

.hp-debt-tool__comparison-header p {
  margin-top: 0.45rem;
  color: var(--hp-dpc-muted);
  line-height: 1.6;
}

.hp-debt-tool__comparison-card--accent {
  background: linear-gradient(180deg, rgba(249, 252, 250, 0.96) 0%, rgba(242, 247, 244, 0.98) 100%);
}

.hp-debt-tool__comparison-meta,
.hp-debt-tool__footnote {
  margin: 0.55rem 0 0;
  color: var(--hp-dpc-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.hp-debt-tool__footnote {
  padding-top: 1rem;
  border-top: 1px solid rgba(194, 214, 203, 0.82);
}

@media (max-width: 980px) {
  .hp-debt-tool__layout,
  .hp-debt-tool__result-grid,
  .hp-debt-tool__comparison-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 781px) {
  .hp-debt-tool__intro {
    margin-bottom: 1rem;
  }

  .hp-debt-tool__panel {
    padding: 1rem;
    border-radius: 20px;
  }

  .hp-debt-tool__actions {
    flex-direction: column;
  }

  .hp-debt-tool__button {
    width: 100%;
  }
}