.worksheet-section { padding: 3rem 0 3.5rem; border-top: 1px solid var(--rule); }
.worksheet { max-width: 1080px; margin-inline: auto; padding: 2.3rem; border: 1px solid var(--sapphire); background: var(--paper); }
.worksheet h2 { margin: .65rem 0 1rem; }
.worksheet-intro { max-width: 66ch; }
.cost-fields { border: 0; padding: 0; margin: 1.6rem 0 0; min-width: 0; }
.cost-fields legend { margin-bottom: .8rem; padding: 0; font-weight: 600; font-size: 18px; }
.cost-row, .cost-column-heads { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: center; }
.cost-column-heads { padding-bottom: .8rem; font-size: 16px; color: var(--muted); }
.cost-row { border-top: 1px solid var(--rule); padding: 1rem 0; }
.cost-category { font-weight: 600; font-size: 18px; }
.cost-category small { display: block; font-weight: 400; font-size: 16px; color: var(--muted); }
.cost-entry { display: block; min-width: 0; }
.cost-input-label { display: block; }
.cost-entry input { width: 100%; min-width: 0; min-height: 52px; padding: .6rem .7rem; font-size: 18px; line-height: 1.4; border: 1px solid #8b9dba; border-radius: 2px; background: var(--ground); }
.cost-entry input::placeholder { color: var(--muted); opacity: 1; }
.cost-entry input[aria-invalid="true"] { border: 2px solid var(--sapphire); }
.include-button { display: block; width: 100%; min-height: 44px; margin-top: .2rem; padding: .25rem .4rem; border: 0; border-bottom: 1px solid var(--rule); color: var(--sapphire); background: var(--paper); font-size: 16px; line-height: 1.4; text-decoration: underline; text-underline-offset: .15em; }
.include-button:hover { background: var(--wash); }
.mobile-field-label { display: none; font-size: 16px; margin-bottom: .3rem; }
.worksheet-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; }
.worksheet-error { margin-top: 1rem; color: var(--sapphire); font-weight: 600; }
.cost-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; padding: 1.3rem; background: var(--wash); }
.cost-summary .summary-label { margin-top: 0; font-family: var(--sans); font-size: 18px; font-weight: 600; line-height: 1.5; }
.cost-summary p { margin-top: .4rem; }
.cost-amount { display: block; font-family: var(--serif); font-size: 2rem; line-height: 1.3; color: var(--sapphire); overflow-wrap: anywhere; }
.worksheet-questions { margin-top: 1.7rem; }
.worksheet-questions h3 { margin-bottom: .6rem; }
.worksheet-questions ul { padding-left: 1.25rem; }
.worksheet-questions li { margin-top: .6rem; }
.worksheet-note { margin-top: 1.3rem; color: var(--muted); font-size: 16px; }

@media (max-width: 700px) {
  .worksheet-section { padding: 2.5rem 0; }
  .worksheet { padding: 1.5rem 1.05rem; }
  .cost-column-heads { display: none; }
  .cost-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .65rem; }
  .cost-category { grid-column: 1 / -1; }
  .mobile-field-label { display: block; }
  .cost-entry input { font-size: 17px; padding: .6rem .5rem; }
  .cost-summary { grid-template-columns: minmax(0, 1fr); padding: 1.15rem; }
  .worksheet-actions .action-button { width: 100%; }
}
