#budget-water {
  color: var(--mint);
  border-color: #aac7c4;
  font-weight: 650;
}
#budget-dialog {
  width: min(1050px, 95vw);
  max-height: 92svh;
  padding: 19px 22px;
  overflow: auto;
}
.budget-head, .budget-group {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}
.budget-head h2 { font-size: clamp(20px, 3vw, 29px); }
.budget-head p { color: var(--muted); }
.budget-head button { flex: none; }
.budget-design {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0;
  font-weight: 650;
}
.budget-design select { max-width: 100%; }
.budget-columns {
  display: grid;
  grid-template-columns: minmax(0, .90fr) minmax(0, 1.1fr);
  gap: 22px;
}
.budget-columns section { min-width: 0; border-top: 3px solid #73938d; padding-top: 8px; }
.budget-columns section + section { border-color: #87986b; }
.budget-group h3 { font-size: clamp(16px, 2.2vw, 21px); }
#budget-total {
  color: #233f3b;
  font-size: clamp(14px, 1.9vw, 19px);
  line-height: 1.4;
}
.budget-table { border-collapse: collapse; margin: 8px 0; width: 100%; font-size: 12px; }
.budget-table th, .budget-table td { border-bottom: 1px solid var(--line); padding: 6px 5px; text-align: right; vertical-align: top; }
.budget-table th:first-child, .budget-table td:first-child { text-align: left; }
.budget-table thead th { color: var(--muted); font-size: 11px; }
.budget-table tbody th { font-weight: 600; }
.budget-table small { font-weight: 400; display: block; }
.budget-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 8px;
  margin: 7px 0;
  padding: 8px;
  border: 1px solid #d6e4e1;
  background: #eff5f4;
}
.budget-fields label { display: block; color: var(--muted); font-size: 11px; }
.budget-fields small { font-size: inherit; }
.budget-fields select, .budget-fields input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 31px;
  padding: 4px 5px;
  border: 1px solid #c8d9d8;
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
}
.budget-note, .budget-method p { font-size: 12px; margin: 6px 0; color: var(--muted); }
.budget-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0; font-size: 12px; }
.budget-links a, .budget-method summary { color: #27626a; }
.budget-method { border-top: 1px solid var(--line); padding-top: 6px; }
.budget-method summary { font-weight: 650; }
@media (max-width: 750px) {
  #budget-dialog { width: 94vw; padding: 13px; }
  .budget-columns { grid-template-columns: 1fr; gap: 15px; }
  .budget-group h3 { font-size: 17px; }
}
@media (max-width: 400px) {
  .budget-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .budget-table th, .budget-table td { padding: 5px 3px; }
}
