* { box-sizing: border-box; }

body {
  font-family: "Cascadia Code", "Consolas", monospace;
  max-width: 720px;
  margin: 0.5rem auto;
  padding: 0 0.75rem;
}

h1 {
  font-size: 1.35rem;
  line-height: 1.1;
  margin: 0.5rem 0 0.25rem;
  padding-right: 12rem;
}

h2 {
  font-size: 1rem;
  line-height: 1.15;
  margin: 0.75rem 0 0.25rem;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem 0.75rem;
}

label { display: flex; flex-direction: column; font-size: 0.8rem; }
label span { margin-bottom: 0.1rem; }
label.full-width { grid-column: 1 / -1; }

input[type="number"], select {
  font-family: inherit;
  font-size: 0.95rem;
  width: 100%;
  padding: 0.2rem 0.35rem;
  line-height: 1.1;
}

table { width: 100%; border-collapse: collapse; }
thead th { text-align: left; padding: 0.25rem 0.5rem; border-bottom: 1px solid; }
thead th:nth-child(2) { text-align: right; }
tbody td { padding: 0.15rem 0.5rem; }
tbody td:nth-child(2) { text-align: right; }
tbody tr.sub td { padding-left: 2rem; font-size: 0.85rem; color: #666; }
tbody tr.total td { border-top: 2px solid; font-weight: 700; }

.notes { font-size: 0.8rem; color: #666; }

.ac-summary { display: flex; gap: 1rem; flex-wrap: wrap; }
.ac-box .value { font-size: 1.2rem; font-weight: 700; }
.ac-box .label { font-size: 0.75rem; color: #666; }

.error { color: red; font-weight: 700; }

#testResults { font-size: 0.85rem; margin-top: 1rem; }
#testResults .pass { color: green; }
#testResults .fail { color: red; font-weight: 700; }
#testResults .header { color: #666; margin-top: 0.5rem; }

#testSection { display: none; }

#deployStamp { font-size: 0.7rem; color: #999; position: absolute; top: 0.5rem; right: 0.5rem; text-align: right; }
