:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  background: #f5f7f8;
  color: #17202a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
}

.shell {
  position: relative;
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 20px;
}

.header {
  min-height: 112px;
  padding: 18px 116px 10px 0;
}

.header.compact {
  max-width: 680px;
}

.site-logo {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 86px;
  height: auto;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #546471;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: 30px;
}

h2 {
  margin-bottom: 14px;
  font-size: 20px;
}

h3 {
  margin-bottom: 10px;
  font-size: 16px;
}

.form section, .relief-card, .log-row, .table-wrap {
  margin: 14px 0;
  padding: 16px;
  border: 1px solid #d6dde2;
  border-radius: 8px;
  background: #fff;
}

label, .signature-field span {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
}

input, textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border: 1px solid #aeb9c2;
  border-radius: 6px;
  font: inherit;
  background: #fff;
}

textarea {
  resize: vertical;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.signature-field {
  margin: 12px 0;
}

.signature-field canvas {
  display: block;
  width: 100%;
  height: 150px;
  border: 1px solid #8794a0;
  border-radius: 6px;
  background: #fff;
  touch-action: none;
}

.signature-field.small canvas {
  height: 105px;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
}

.check input {
  width: auto;
  margin: 0;
}

button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: 6px;
  background: #176f63;
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

button.secondary {
  min-height: 36px;
  margin-top: 8px;
  background: #e8edf0;
  color: #17202a;
}

button.add-row {
  width: 48px;
  min-height: 48px;
  padding: 0;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
}

#save {
  width: 100%;
  margin: 10px 0 30px;
}

.errors {
  margin: 14px 0;
  padding: 12px;
  border: 1px solid #d14343;
  border-radius: 6px;
  background: #fff3f3;
  color: #8b1c1c;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 10px;
  border-bottom: 1px solid #d6dde2;
  text-align: left;
  vertical-align: top;
}

th {
  font-size: 13px;
  color: #546471;
}

@media (max-width: 680px) {
  .shell {
    padding: 14px;
  }

  .header {
    min-height: 96px;
    padding-right: 92px;
  }

  .site-logo {
    top: 14px;
    right: 14px;
    width: 72px;
  }

  h1 {
    font-size: 25px;
  }

  .grid, .grid.two {
    grid-template-columns: 1fr;
  }
}
