.property-estimate {
  padding: .25rem 0 1.35rem;
  margin-bottom: 1.12rem;
  border-bottom: 1px solid var(--line);
}
.case-body .property-estimate h3 {
  margin: 0 0 .95rem;
  font-size: clamp(1.36rem, 3.6vw, 1.95rem);
  line-height: 1.12;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.estimate-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: .7rem .85rem;
}
.estimate-fields label {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .32rem;
  font-size: .94rem;
  font-weight: 620;
}
.estimate-input {
  display: flex;
  align-items: center;
  padding-right: .8rem;
  min-height: 3rem;
  border: 1px solid #a99faf;
  border-radius: .38rem;
  background: #fffdfa;
  color: var(--muted);
}
.estimate-input:focus-within { outline: 2px solid #684993; outline-offset: 2px; }
.estimate-input:has([aria-invalid="true"]) { border-color: #95372f; }
.estimate-input input {
  flex: 1 1 auto;
  width: 0;
  min-width: 0;
  padding: .65rem .65rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: inherit;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 570;
  font-variant-numeric: tabular-nums;
}
.estimate-input input:focus-visible { outline: none; }
.estimate-input input::placeholder { color: #706b74; font-weight: 400; opacity: 1; }
.estimate-input > span { flex: none; font-size: .9rem; font-weight: 450; }
.estimate-error { color: #88362e; font-size: .875rem; font-weight: 500; line-height: 1.35; }
.estimate-terms { margin-block: .45rem .65rem; }
.estimate-terms > summary {
  display: grid;
  grid-template-columns: 1fr auto .58rem;
  align-items: center;
  min-height: 2.9rem;
  gap: .2rem .55rem;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.32;
}
.estimate-terms > summary strong { color: var(--ink); font-weight: 620; white-space: nowrap; }
.estimate-terms > summary i {
  width: .45rem;
  height: .45rem;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg) translateY(-2px);
}
.estimate-terms[open] > summary i { transform: rotate(225deg); }
.estimate-terms[open] { padding-bottom: .35rem; }
.estimate-result {
  padding: 1rem clamp(.8rem,3vw,1.2rem);
  border-radius: .5rem;
  background: #312a38;
  color: #faf6ee;
}
.estimate-result > p:first-child { font-size: .94rem; font-weight: 550; }
.estimate-result > strong {
  display: block;
  margin: .2rem 0;
  color: #e5f590;
  font-size: clamp(1.85rem,6.5vw,2.6rem);
  line-height: 1.13;
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.estimate-note,.estimate-legend { font-size: .9rem; color: #eee9f2; }
.estimate-funding { margin-top: .9rem; }
.estimate-bars { display: flex; height: .35rem; border-radius: .2rem; overflow: hidden; background: #bda3d3; }
.estimate-bars span { display: block; height: 100%; background: #e5f590; }
.estimate-legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .15rem .65rem; margin-top: .4rem; }
.estimate-legend span::before { content: ""; display: inline-block; width: .46rem; height: .46rem; border-radius: 50%; margin-right: .35rem; background: #e5f590; }
.estimate-legend span + span::before { background: #bda3d3; }
.estimate-assumption,.estimate-mail-note { font-size: .875rem; color: var(--muted); line-height: 1.4; }
.estimate-assumption { margin: .45rem 0 .8rem; }
.estimate-contact a.draft-link {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 3rem;
  margin: 0;
  padding: .62rem .75rem;
  background: #e4efad;
  border: 1px solid #b9c780;
  border-radius: .4rem;
  color: #242520;
  text-decoration: none;
  text-align: center;
  font-weight: 670;
  font-size: 1rem;
}
.estimate-contact a.draft-link:hover { background: #d8e99a; }
.estimate-mail-note { margin-top: .35rem; }
.budget-estimate { padding: 0; margin: 0; border: 0; }
.budget-age { min-width: 0; padding: 0; margin: .8rem 0 0; border: 0; }
.budget-age legend { margin-bottom: .35rem; padding: 0; font-size: .94rem; font-weight: 620; }
.budget-age-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }
.budget-age-options label {
  display: flex;
  align-items: center;
  min-height: 2.85rem;
  gap: .45rem;
  padding: .42rem .55rem;
  border: 1px solid #b5aeb7;
  border-radius: .38rem;
  background: #fffdfa;
  line-height: 1.25;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
}
.budget-age-options small { display: block; color: var(--muted); font-size: .83rem; font-weight: 450; }
.budget-age-options input { flex: none; margin: 0; accent-color: #604779; }
.budget-age-options label:has(:checked) { background: #eee8f2; border-color: #725685; }
.budget-age-options label:has(:focus-visible) { outline: 2px solid #684993; outline-offset: 2px; }
.budget-estimate .estimate-terms { margin: .25rem 0; }
.budget-estimate .estimate-result {
  margin: .3rem 0;
  padding: .8rem 1rem;
  color: var(--ink);
  background: #eee8f2;
  border-left: 3px solid #9a81ac;
  border-radius: .25rem;
}
.budget-estimate .estimate-result > strong { color: #332a3a; }
.budget-estimate .estimate-note { color: var(--muted); }
.budget-estimate .estimate-contact a.draft-link {
  display: inline-flex;
  min-height: 44px;
  padding: .5rem 0;
  background: transparent;
  color: #4f3b64;
  border: 0;
  text-decoration: underline;
}
.budget-estimate .estimate-contact a.draft-link:hover { color: var(--ink); }
.budget-prep { margin-top: .15rem; border-top: 1px solid var(--line); }
.budget-prep > summary { align-items: center; gap: .6rem; min-height: 44px; font-size: .9rem; color: var(--muted); }
.budget-prep > summary::after { content: ""; width: .42rem; height: .42rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.budget-prep[open] > summary::after { transform: rotate(225deg); }
@media (max-width: 480px) {
  .property-estimate > .estimate-fields { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 365px) {
  .estimate-terms > summary { grid-template-columns: 1fr .58rem; }
  .estimate-terms > summary strong { grid-column: 1; }
  .estimate-terms > summary i { grid-column: 2; grid-row: 1 / 3; }
  .estimate-terms .estimate-fields { grid-template-columns: minmax(0,1fr); }
  .budget-estimate .estimate-terms > summary { grid-template-columns: 1fr auto .58rem; }
  .budget-estimate .estimate-terms > summary strong,.budget-estimate .estimate-terms > summary i { grid-column: auto; grid-row: auto; }
}
@media (forced-colors: active) {
  .estimate-result,.estimate-contact a.draft-link { border: 1px solid ButtonText; }
}
