.hot-tool {
  --budget-ink: #172b26;
  --budget-muted: #52635d;
  --budget-line: #d3ded8;
  --budget-green: #17684d;
  color: var(--budget-ink);
  max-width: 860px;
  margin: 0 auto 2.5rem;
}
.hot-tool * { box-sizing: border-box; }
.hot-tool .budget-form, .hot-tool .budget-result {
  border: 1px solid var(--budget-line);
  border-radius: 16px;
  background: #fff;
  padding: clamp(1rem, 4vw, 2rem);
  box-shadow: 0 8px 26px rgb(23 43 38 / 6%);
}
.hot-tool .tool-kicker { color: var(--budget-green); font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 .45rem; }
.hot-tool h2 { margin: 0 0 .65rem; }
.hot-tool h3 { margin: 0; font-size: 1rem; }
.hot-tool p { line-height: 1.6; }
.hot-tool label { display: grid; gap: .35rem; font-size: .9rem; font-weight: 650; }
.hot-tool input { width: 100%; min-width: 0; min-height: 44px; border: 1px solid #9aaca4; border-radius: 8px; padding: .65rem .75rem; background: #fff; color: var(--budget-ink); font: inherit; }
.hot-tool input:focus, .hot-tool button:focus-visible { outline: 3px solid #80c4a4; outline-offset: 2px; }
.hot-tool .top-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.3rem 0 1.5rem; }
.hot-tool .category-heading { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; margin-bottom: .6rem; }
.hot-tool .category-heading span { color: var(--budget-muted); font-size: .82rem; }
.hot-tool .category-labels, .hot-tool .category-row { display: grid; grid-template-columns: minmax(8rem, 1.5fr) minmax(5rem, .8fr) minmax(5rem, .8fr) auto; gap: .55rem; align-items: end; }
.hot-tool .category-labels { padding: 0 .2rem .4rem; color: var(--budget-muted); font-size: .78rem; }
.hot-tool .category-row { padding: .65rem 0; border-top: 1px solid #e8eeea; }
.hot-tool .category-row input { min-height: 42px; }
.hot-tool button { min-height: 42px; border-radius: 8px; padding: .6rem .9rem; font: inherit; font-weight: 700; cursor: pointer; }
.hot-tool .button-primary { border: 1px solid var(--budget-green); background: var(--budget-green); color: #fff; }
.hot-tool .button-secondary { border: 1px solid #9aaca4; background: #fff; color: var(--budget-ink); }
.hot-tool .remove-category { min-height: 42px; padding-inline: .55rem; border: 1px solid transparent; background: transparent; color: #52635d; font-size: .78rem; }
.hot-tool button:disabled { opacity: .45; cursor: not-allowed; }
.hot-tool .form-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; margin-top: 1rem; }
.hot-tool .error-message { color: #a32121; font-weight: 650; }
.hot-tool .budget-result { margin-top: 1.25rem; }
.hot-tool .result-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.hot-tool .result-toolbar > div { display: flex; flex-wrap: wrap; gap: .55rem; }
.hot-tool .result-month { margin: 0 0 .5rem; font-size: 1.2rem; font-weight: 700; }
.hot-tool .planning-note, .hot-tool .result-caveat { color: var(--budget-muted); font-size: .88rem; }
.hot-tool .table-scroll { overflow-x: auto; }
.hot-tool .budget-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .93rem; }
.hot-tool .budget-table th, .hot-tool .budget-table td { border-bottom: 1px solid var(--budget-line); padding: .7rem .55rem; text-align: right; white-space: nowrap; }
.hot-tool .budget-table th:first-child { text-align: left; white-space: normal; }
.hot-tool .budget-table thead th { color: var(--budget-muted); font-size: .82rem; }
.hot-tool .budget-table small { font-weight: 400; }
.hot-tool .budget-table tfoot { font-weight: 750; }
.hot-tool .summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin: 1rem 0; }
.hot-tool .summary-grid div { padding: .8rem; border-radius: 9px; background: #f2f7f4; }
.hot-tool .summary-grid dt { color: var(--budget-muted); font-size: .82rem; }
.hot-tool .summary-grid dd { margin: .25rem 0 0; font-size: 1.08rem; font-weight: 750; }
.hot-tool .summary-grid .remaining { background: #e6f3eb; }
.hot-tool .copy-status { min-height: 1.4em; color: var(--budget-green); }
.hot-tool .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.hot-tool .copy-fallback { position: fixed; left: -10000px; top: 0; }
.guide-copy { max-width: 760px; margin: 2.5rem auto; }
.guide-copy h2 { margin-top: 2rem; }
.guide-copy p { line-height: 1.75; }
@media (max-width: 600px) {
  .hot-tool .top-fields { grid-template-columns: 1fr; }
  .hot-tool .category-labels { display: none; }
  .hot-tool .category-row { grid-template-columns: minmax(0, 1.5fr) minmax(4.5rem, .8fr) minmax(4.5rem, .8fr); gap: .4rem; }
  .hot-tool .category-row .remove-category { grid-column: 1 / -1; justify-self: end; }
  .hot-tool .result-toolbar { align-items: flex-start; flex-direction: column; }
  .hot-tool .result-toolbar > div { width: 100%; }
  .hot-tool .result-toolbar button { flex: 1 1 12rem; }
  .hot-tool .budget-table { font-size: .82rem; }
  .hot-tool .budget-table th, .hot-tool .budget-table td { padding: .6rem .35rem; }
}
@media print {
  .hot-tool { max-width: none; margin: 0; color: #000; }
  .hot-tool .budget-form, .hot-tool .result-toolbar > div, .hot-tool .copy-status { display: none !important; }
  .hot-tool .budget-result { display: block !important; margin: 0; padding: 0; border: 0; box-shadow: none; }
  .hot-tool .budget-table th, .hot-tool .budget-table td { border-color: #888; }
}
