* {
  box-sizing: border-box;
}
body {
  font:
    17px/1.5 system-ui,
    sans-serif;
  color: #202020;
  background: #fff;
  max-width: 1100px;
  margin: auto;
  padding: 1rem;
}
header {
  border-bottom: 1px solid #bbb;
  padding-bottom: 1rem;
}
h1 {
  font-size: 1.7rem;
}
h2 {
  font-size: 1.35rem;
}
h3 {
  font-size: 1.1rem;
}
nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
a {
  color: #174b88;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  min-height: 44px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
}
input,
select,
textarea {
  max-width: 100%;
  min-height: 44px;
  padding: 0.35rem;
  border: 1px solid #777;
  border-radius: 2px;
}
input:not([type="checkbox"]),
select,
textarea {
  width: 100%;
}
input[type="checkbox"] {
  width: 1.2rem;
  vertical-align: middle;
}
label {
  display: block;
  margin: 0.6rem 0;
}
textarea {
  min-height: 90px;
}
fieldset {
  border: 1px solid #aaa;
  margin: 1rem 0;
  padding: 1rem;
  min-width: 0;
}
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1rem;
}
.checks {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  border: 1px solid #bbb;
  text-align: left;
  padding: 0.6rem;
  vertical-align: top;
}
th {
  background: #f4f4f4;
}
.text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.muted {
  color: #555;
}
.notice {
  border-left: 4px solid #555;
  padding: 0.5rem 1rem;
  background: #f5f5f5;
}
#status:not(:empty) {
  padding: 0.8rem;
  border: 1px solid #555;
  white-space: pre-wrap;
}
#status.error {
  border-color: #a00;
  color: #900;
}
article {
  border-bottom: 1px solid #ccc;
  padding: 0.6rem 0;
}
details {
  margin: 1rem 0;
}
summary {
  cursor: pointer;
  padding: 0.5rem 0;
}
.inline {
  display: flex;
  gap: 0.5rem;
  align-items: end;
  flex-wrap: wrap;
}
.inline label {
  flex: 1;
}
.badge {
  font-weight: bold;
}
small {
  display: block;
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
:focus-visible {
  outline: 3px solid #3269bb;
  outline-offset: 2px;
}
.print-only {
  display: none;
}
@media (max-width: 650px) {
  body {
    padding: 0.7rem;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .agenda thead {
    display: none;
  }
  .agenda,
  .agenda tbody,
  .agenda tr,
  .agenda td {
    display: block;
    width: 100%;
  }
  .agenda tr {
    border: 1px solid #aaa;
    margin: 0.8rem 0;
  }
  .agenda td {
    border: 0;
    padding: 0.4rem 0.6rem;
  }
  .agenda td:first-child {
    font-weight: bold;
    background: #f4f4f4;
  }
  .agenda td:before {
    content: attr(data-label);
    font-weight: bold;
    margin-right: 0.4rem;
  }
}
@media print {
  @page {
    margin: 15mm;
  }
  body {
    max-width: none;
    padding: 0;
    font-size: 11pt;
  }
  header,
  nav,
  button,
  form,
  #status,
  .no-print {
    display: none !important;
  }
  .print-only {
    display: block;
  }
  h1,
  h2,
  h3 {
    break-after: avoid;
  }
  tr,
  article {
    break-inside: avoid;
  }
  a {
    color: inherit;
    text-decoration: none;
  }
  .table-wrap {
    overflow: visible;
  }
  .agenda,
  .agenda tbody {
    display: table-row-group;
  }
  .agenda tr {
    display: table-row;
  }
  .agenda td {
    display: table-cell;
  }
  .agenda thead {
    display: table-header-group;
  }
  .agenda td:before {
    content: none;
  }
}
