body {
  margin: 0;
  color: #222;
  background: #f7f7f7;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: #075985;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 2rem;
  background: #fff;
  border-bottom: 1px solid #ddd;
}

.brand {
  color: #111;
  font-weight: 700;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin: 1rem 0 2rem;
}

.summary-grid div,
.form-panel {
  padding: 1rem;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.summary-label {
  display: block;
  color: #555;
  font-size: 0.9rem;
}

.summary-grid strong {
  font-size: 2rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  padding: 0.75rem;
  border: 1px solid #ddd;
  text-align: left;
  vertical-align: top;
}

th {
  background: #eee;
}

label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.help-text {
  display: block;
  max-width: 42rem;
  margin-bottom: 0.35rem;
  color: #555;
  font-size: 0.9rem;
}

input,
textarea,
select {
  box-sizing: border-box;
  width: 100%;
  max-width: 42rem;
  padding: 0.5rem;
  border: 1px solid #bbb;
  border-radius: 4px;
  font: inherit;
}

button,
.button {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  color: #fff;
  background: #1f2937;
  border: 0;
  border-radius: 4px;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.inline-form {
  display: inline;
}

.link-button {
  padding: 0;
  color: #075985;
  background: transparent;
  text-decoration: underline;
}

.messages,
.error-list {
  padding-left: 1.25rem;
}

.messages li {
  margin-bottom: 0.5rem;
}

.errorlist,
.error-list {
  color: #991b1b;
}

@media (max-width: 700px) {
  .site-header,
  nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .page {
    padding: 1rem;
  }

  table {
    display: block;
    overflow-x: auto;
  }
}
