:root {
  font-family: system-ui, sans-serif;
  color: #142c31;
  background: #eef4f2;
  line-height: 1.55;
  font-size: 17px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
main {
  max-width: 840px;
  margin: auto;
  padding: 24px 16px 64px;
}
h1 {
  font-size: 2rem;
  line-height: 1.15;
}
h2 {
  font-size: 1.3rem;
}
.label {
  color: #1c6565;
  font-weight: 750;
}
.notice {
  border-left: 5px solid #ac710b;
  background: #fff4d6;
  padding: 14px;
}
section {
  background: white;
  border: 1px solid #cedbd7;
  border-radius: 12px;
  padding: 18px;
  margin: 18px 0;
}
section section {
  padding: 14px;
}
label {
  display: grid;
  gap: 6px;
  margin: 16px 0;
  font-weight: 650;
}
input,
select,
textarea,
button {
  font: inherit;
  min-height: 48px;
  border-radius: 7px;
  max-width: 100%;
}
input,
select,
textarea {
  border: 1px solid #677e7a;
  width: 100%;
  padding: 10px;
  min-width: 0;
  background: white;
  color: #142c31;
}
button {
  background: #145d59;
  color: white;
  border: 2px solid #145d59;
  padding: 10px 18px;
  cursor: pointer;
}
button:disabled {
  background: #657b79;
  cursor: wait;
}
:focus-visible {
  outline: 3px solid #b97800;
  outline-offset: 3px;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
#status {
  min-height: 28px;
  overflow-wrap: anywhere;
  font-weight: 650;
}
.record {
  border-top: 1px solid #d8e2de;
  padding: 12px 0;
  overflow-wrap: anywhere;
}
.record p {
  margin: 5px 0;
}
[hidden] {
  display: none !important;
}
a {
  color: #145d59;
  display: inline-block;
  min-height: 44px;
  padding: 8px 0;
}
@media (max-width: 400px) {
  main {
    padding-inline: 12px;
  }
  section {
    padding: 14px;
  }
  h1 {
    font-size: 1.7rem;
  }
}

#record-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
#record-nav button {
  flex: 1 1 130px;
}
#record-nav button[aria-current='true'] {
  background: #093f3b;
  outline: 3px solid #d29b43;
  outline-offset: 1px;
}
#master-records {
  overflow-wrap: anywhere;
}
#master-records h3 {
  margin-top: 10px;
}
#master-records button {
  margin: 6px 6px 6px 0;
}
#master-records label:has(input[type='checkbox']) {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-weight: 500;
}
#master-records input[type='checkbox'] {
  width: 24px;
  height: 24px;
  min-height: 24px;
  flex-shrink: 0;
  order: -1;
}
fieldset {
  min-width: 0;
  padding: 12px;
  border: 1px solid #677e7a;
  border-radius: 8px;
}
legend {
  font-weight: 650;
  max-width: 100%;
}
summary {
  min-height: 48px;
  padding: 12px 0;
  font-weight: 650;
  cursor: pointer;
}
details {
  border-top: 1px solid #cedbd7;
  padding: 6px 0;
}
.duplicate-card {
  border: 1px solid #cedbd7;
  padding: 16px;
  border-radius: 10px;
  margin: 16px 0;
}
[role='alert'] {
  color: #8b271d;
  font-weight: 650;
}
