/* Financial Literacy for Teens: the money boxes and tries (money-tools.js).
   Brand colors only. Phone first: everything stacks at 390px. */
.money-tool { margin: 1.4em 0 1.8em; padding: 18px 18px 14px; background: #fff; border: 1px solid #a7b1c2; border-left: 6px solid #f59070; border-radius: 12px; }
.money-tool > p:first-child { margin-top: 0; }
.money-label { display: block; font-weight: 600; color: #30455c; margin: .6em 0 .3em; }
.money-input { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.money-input input, .money-amount { font: inherit; width: 7.5em; max-width: 100%; padding: 8px 10px; border: 1px solid #a7b1c2; border-radius: 8px; color: #30455c; background: #fff; }
.money-input input:focus, .money-amount:focus { outline: 3px solid #07c4c8; outline-offset: 1px; }
.money-out, .money-left { font-weight: 600; color: #30455c; min-height: 1.4em; }
.money-left.is-over { color: #b23c17; }
.money-left.is-done { color: #046e71; }
.money-fine, .money-fixed { color: #63697a; font-size: .95em; }
.money-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin: .5em 0; }
.money-row .money-label { margin: 0; }
.money-value { font-weight: 600; color: #30455c; }
.money-budget-table { width: 100%; }
.money-stepper { display: inline-flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.money-stepper .money-amount { width: 4.5em; text-align: center; padding: 8px 4px; }
.money-step { min-width: 44px; min-height: 44px; font: inherit; font-size: 1.2em; font-weight: 700; color: #30455c; background: #e6ecf0; border: 1px solid #a7b1c2; border-radius: 8px; cursor: pointer; }
.money-step:hover { background: #d6dee4; }
.money-step:focus-visible { outline: 3px solid #07c4c8; outline-offset: 1px; }
.money-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.money-after { margin-top: 1em; }
.money-saved { font-weight: 600; color: #046e71; }
.money-starter { margin: .2em 0 .4em; font-style: italic; color: #30455c; }
.money-try-title { margin-top: 0; }
.lesson-layout .prose .lesson-case.money-try, .lesson-layout .prose .lesson-case.money-plan { margin: 1.4em 0 1.8em; }
@media (max-width: 480px) {
  .money-budget-table th, .money-budget-table td { padding-left: 6px; padding-right: 6px; }
  .money-stepper .money-amount { width: 3.8em; }
}
