[data-gf-tool="roofing-calculator"] [hidden] { display: none !important; }
.roofing-breadcrumb { font-size: var(--fs-sm); margin-bottom: .65rem; }
.roof-form .field input { width: 100%; min-width: 0; }
.roof-form .reset { font: inherit; min-height: 44px; padding: .45rem .7rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--primary); cursor: pointer; }
.roof-error { color: #913713; }
.roof-ticket { margin-top: 1rem; align-self: start; }
.roof-ticket dl { margin: .4rem 0; }
.roof-ticket dd { margin: 0; text-align: right; font: 600 var(--fs-sm) var(--font-mono); }
.roof-options { margin-top: 1rem; padding-top: .85rem; border-top: 1px solid var(--line); }
.roof-options summary { font-weight: 600; color: var(--primary); cursor: pointer; }
.roof-options .field-row { margin-top: .75rem; }
.tool:has(.roof-form) + .prose { margin-top: 1.5rem; }
.tool:has(.roof-form) + .prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.25rem; font-size: var(--fs-sm); background: var(--surface); }
.tool:has(.roof-form) + .prose :is(th, td) { padding: .55rem .7rem; border: 1px solid var(--line); text-align: left; }
.tool:has(.roof-form) + .prose thead { background: var(--bg); }
@media (min-width: 850px) {
  .roof-form { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 1.25rem; align-items: start; }
  .roof-form .field-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .roof-form .roof-ticket { margin-top: 0; }
  .roof-options, .roof-error { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .hero:has(.roofing-breadcrumb) { padding-block: 1rem; }
  .roof-form .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .roof-form .field-row > .field:last-child { grid-column: 1 / -1; }
  .roof-form .tool-actions { margin-top: .75rem; }
}