:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
  color: #183342;
  background: #f1f5f6;
  font-synthesis: none;
  --navy: #102b39;
  --green: #bcf175;
  --muted: #576c76;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  background: var(--navy);
  color: white;
  padding: 22px max(20px, calc((100vw - 1050px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 850;
  letter-spacing: 1.5px;
  font-size: 18px;
}
.brand small {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2.6px;
  margin-top: 5px;
  color: #c3d1d6;
}
.shield {
  background: var(--green);
  color: var(--navy);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 50% 100%, 0 72%);
  padding: 12px 9px 18px;
  font-size: 16px;
}
.connection {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  background: #e2eadd;
  padding: 10px max(20px, calc((100vw - 1050px) / 2));
  font-size: 12px;
  font-weight: 650;
}
.connection.offline {
  background: #ffedc9;
}
main {
  max-width: 1050px;
  margin: auto;
  padding: 30px 20px 130px;
}
h1 {
  font-size: clamp(28px, 5vw, 38px);
  letter-spacing: -1.2px;
  margin: 0 0 8px;
}
h2 {
  font-size: 20px;
  margin: 0 0 18px;
}
p {
  line-height: 1.55;
}
.intro {
  color: var(--muted);
  margin: 0 0 26px;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  color: #507042;
  margin: 0 0 10px;
}
.card {
  background: white;
  border: 1px solid #dce5e8;
  border-radius: 16px;
  padding: 22px;
  margin: 0 0 18px;
  box-shadow: 0 3px 12px #152e3803;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.number {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #eaf3e2;
  color: #42612e;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}
.section-title h2 {
  margin: 0;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.full {
  grid-column: 1/-1;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 650;
  margin-bottom: 7px;
}
input,
textarea,
select {
  font: inherit;
  width: 100%;
  padding: 14px;
  border: 1px solid #b7c7ce;
  border-radius: 9px;
  color: #102b39;
  background: #fff;
  min-height: 50px;
}
input:focus,
textarea:focus,
button:focus-visible,
select:focus {
  outline: 3px solid #83b64c;
  outline-offset: 2px;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
input[type="checkbox"] {
  width: 22px;
  min-height: 22px;
  margin: 0;
  accent-color: #35592e;
}
.check {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  font-weight: 500;
  line-height: 1.5;
}
.hint {
  font-size: 12px;
  color: var(--muted);
  margin: 7px 0 0;
  line-height: 1.5;
}
.mono {
  font-family: ui-monospace, monospace;
  letter-spacing: 0.6px;
}
button,
.capture {
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  min-height: 48px;
  border-radius: 9px;
  padding: 12px 18px;
  cursor: pointer;
  border: 1px solid #bbcbd1;
  background: #fff;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.primary {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.accent {
  background: var(--green);
  border-color: var(--green);
}
.ghost {
  background: transparent;
  color: inherit;
  border-color: #607681;
}
.capture {
  background: #f6f9f8;
  border: 1px dashed #9bb6a0;
  width: 100%;
  margin: 12px 0 0;
}
.capture input {
  position: absolute;
  opacity: 0;
  width: 1px;
  min-height: 0;
  height: 1px;
}
.capture:focus-within {
  outline: 3px solid #83b64c;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.actions > * {
  flex: 1;
}
.save-bar {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}
.save-bar .primary {
  min-width: 220px;
}
.pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 750;
  padding: 5px 9px;
  border-radius: 6px;
  background: #eaf3e2;
  color: #365525;
}
.pill.pending {
  background: #fff0cc;
  color: #755319;
}
.pill.failed {
  background: #ffe5e2;
  color: #8f2824;
}
.warning {
  border-left: 4px solid #cf9631;
  background: #fff5df;
  padding: 14px;
  font-size: 13px;
  line-height: 1.6;
  margin: 14px 0;
}
.record {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 20px;
  border: 0;
  border-bottom: 1px solid #e4eaed;
  border-radius: 0;
  align-items: flex-start;
}
.record:last-child {
  border-bottom: 0;
}
.record strong {
  display: block;
  font-size: 17px;
  margin-bottom: 6px;
}
.record small {
  display: block;
  font-weight: 450;
  color: var(--muted);
  margin-top: 5px;
}
.record .right {
  text-align: right;
  white-space: nowrap;
}
.list {
  padding: 0;
  overflow: hidden;
}
.search {
  margin: 20px 0;
  display: flex;
  gap: 12px;
}
.search input {
  flex: 1;
}
.search select {
  width: 175px;
}
.empty {
  text-align: center;
  padding: 45px 20px;
  color: var(--muted);
}
nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid #dce5e8;
  display: flex;
  justify-content: center;
  padding: 9px 10px calc(9px + env(safe-area-inset-bottom));
  gap: 8px;
  z-index: 5;
}
nav button {
  border: 0;
  min-width: 130px;
  color: #60727a;
  flex-direction: column;
  gap: 3px;
  font-size: 20px;
}
nav button span {
  font-size: 11px;
}
nav button.active {
  background: #edf4e8;
  color: #284d20;
}
#message {
  position: fixed;
  bottom: 105px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90vw;
  width: 550px;
  background: var(--navy);
  color: white;
  padding: 16px 20px;
  border-radius: 12px;
  z-index: 20;
  box-shadow: 0 6px 30px #0003;
}
.photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.photo {
  border: 1px solid #dce5e8;
  border-radius: 10px;
  overflow: hidden;
  padding: 8px;
}
.photo img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
}
.photo button {
  width: 100%;
  padding: 8px;
  font-size: 12px;
  margin-top: 6px;
}
.photo small {
  display: block;
  margin: 5px 0;
  color: var(--muted);
}
dialog {
  border: 0;
  border-radius: 15px;
  width: min(700px, 95vw);
  max-height: 90vh;
  padding: 22px;
  box-shadow: 0 20px 80px #0005;
}
dialog::backdrop {
  background: #0a1d29c9;
}
dialog img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  display: block;
  margin-top: 15px;
}
.auth {
  max-width: 480px;
  margin: 20px auto;
}
.auth .primary {
  width: 100%;
  margin-top: 14px;
}
.metric {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -2px;
}
dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  font-size: 14px;
}
dt {
  color: var(--muted);
}
dd {
  margin: 0;
  overflow-wrap: anywhere;
}
[hidden] {
  display: none !important;
}
@media (min-width: 850px) {
  form .columns {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 20px;
    align-items: start;
  }
  nav button {
    min-width: 180px;
    flex-direction: row;
    gap: 10px;
  }
  nav button span {
    font-size: 13px;
  }
}
@media (max-width: 520px) {
  main {
    padding: 24px 15px 130px;
  }
  .card {
    padding: 18px;
  }
  .list {
    padding: 0;
  }
  .grid {
    gap: 14px;
  }
  .save-bar {
    display: block;
  }
  .save-bar button {
    width: 100%;
    margin-top: 15px;
  }
  .record {
    padding: 16px;
    display: block;
  }
  .record .right {
    text-align: left;
    margin-top: 10px;
  }
  .search {
    flex-direction: column;
  }
  .search select {
    width: 100%;
  }
  nav button {
    min-width: 0;
    flex: 1;
    padding: 9px 3px;
  }
  .connection {
    font-size: 11px;
  }
  #account {
    max-width: 55%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .actions {
    flex-direction: column;
  }
}
